var yc=e=>{throw TypeError(e)};var fl=(e,t,n)=>t.has(e)||yc("Cannot "+n);var T=(e,t,n)=>(fl(e,t,"read from private field"),n?n.call(e):t.get(e)),te=(e,t,n)=>t.has(e)?yc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),K=(e,t,n,r)=>(fl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),be=(e,t,n)=>(fl(e,t,"access private method"),n);var hi=(e,t,n,r)=>({set _(o){K(e,t,o,n)},get _(){return T(e,t,r)}});function bv(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Ef(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kf={exports:{}},js={},Cf={exports:{}},Z={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ri=Symbol.for("react.element"),Pv=Symbol.for("react.portal"),Tv=Symbol.for("react.fragment"),Nv=Symbol.for("react.strict_mode"),Rv=Symbol.for("react.profiler"),jv=Symbol.for("react.provider"),Ov=Symbol.for("react.context"),_v=Symbol.for("react.forward_ref"),Mv=Symbol.for("react.suspense"),Av=Symbol.for("react.memo"),Lv=Symbol.for("react.lazy"),wc=Symbol.iterator;function Dv(e){return e===null||typeof e!="object"?null:(e=wc&&e[wc]||e["@@iterator"],typeof e=="function"?e:null)}var bf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Pf=Object.assign,Tf={};function to(e,t,n){this.props=e,this.context=t,this.refs=Tf,this.updater=n||bf}to.prototype.isReactComponent={};to.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};to.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Nf(){}Nf.prototype=to.prototype;function eu(e,t,n){this.props=e,this.context=t,this.refs=Tf,this.updater=n||bf}var tu=eu.prototype=new Nf;tu.constructor=eu;Pf(tu,to.prototype);tu.isPureReactComponent=!0;var xc=Array.isArray,Rf=Object.prototype.hasOwnProperty,nu={current:null},jf={key:!0,ref:!0,__self:!0,__source:!0};function Of(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Rf.call(t,r)&&!jf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,$=P[W];if(0>>1;Wo(I,L))ee<$&&0>o(Y,I)?(P[W]=Y,P[ee]=L,W=ee):(P[W]=I,P[F]=L,W=F);else if(ee<$&&0>o(Y,L))P[W]=Y,P[ee]=L,W=ee;else break e}}return N}function o(P,N){var L=P.sortIndex-N.sortIndex;return L!==0?L:P.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,f=null,h=3,d=!1,x=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(P){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=P)r(u),N.sortIndex=N.expirationTime,t(a,N);else break;N=n(u)}}function E(P){if(v=!1,g(P),!x)if(n(a)!==null)x=!0,U(k);else{var N=n(u);N!==null&&V(E,N.startTime-P)}}function k(P,N){x=!1,v&&(v=!1,m(R),R=-1),d=!0;var L=h;try{for(g(N),f=n(a);f!==null&&(!(f.expirationTime>N)||P&&!B());){var W=f.callback;if(typeof W=="function"){f.callback=null,h=f.priorityLevel;var $=W(f.expirationTime<=N);N=e.unstable_now(),typeof $=="function"?f.callback=$:f===n(a)&&r(a),g(N)}else r(a);f=n(a)}if(f!==null)var X=!0;else{var F=n(u);F!==null&&V(E,F.startTime-N),X=!1}return X}finally{f=null,h=L,d=!1}}var C=!1,b=null,R=-1,O=5,M=-1;function B(){return!(e.unstable_now()-MP||125W?(P.sortIndex=L,t(u,P),n(a)===null&&P===n(u)&&(v?(m(R),R=-1):v=!0,V(E,L-W))):(P.sortIndex=$,t(a,P),x||d||(x=!0,U(k))),P},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(P){var N=h;return function(){var L=h;h=N;try{return P.apply(this,arguments)}finally{h=L}}}})(zf);Df.exports=zf;var Kv=Df.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Yv=y,Xe=Kv;function j(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ql=Object.prototype.hasOwnProperty,Gv=/^[: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]*$/,Ec={},kc={};function Xv(e){return Ql.call(kc,e)?!0:Ql.call(Ec,e)?!1:Gv.test(e)?kc[e]=!0:(Ec[e]=!0,!1)}function qv(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 Zv(e,t,n,r){if(t===null||typeof t>"u"||qv(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 De(e,t,n,r,o,i,s){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=s}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new De(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ce[t]=new De(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new De(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){Ce[e]=new De(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new De(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new De(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new De(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var ou=/[\-:]([a-z])/g;function iu(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(ou,iu);Ce[t]=new De(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(ou,iu);Ce[t]=new De(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(ou,iu);Ce[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});function su(e,t,n,r){var o=Ce.hasOwnProperty(t)?Ce[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` `+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{ml=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xo(e):""}function Jv(e){switch(e.tag){case 5:return xo(e.type);case 16:return xo("Lazy");case 13:return xo("Suspense");case 19:return xo("SuspenseList");case 0:case 2:case 15:return e=vl(e.type,!1),e;case 11:return e=vl(e.type.render,!1),e;case 1:return e=vl(e.type,!0),e;default:return""}}function Xl(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 gr:return"Fragment";case vr:return"Portal";case Kl:return"Profiler";case lu:return"StrictMode";case Yl:return"Suspense";case Gl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $f:return(e.displayName||"Context")+".Consumer";case Ff:return(e._context.displayName||"Context")+".Provider";case au:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case uu:return t=e.displayName||null,t!==null?t:Xl(e.type)||"Memo";case un:t=e._payload,e=e._init;try{return Xl(e(t))}catch{}}return null}function eg(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 Xl(t);case 8:return t===lu?"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 Rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Uf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tg(e){var t=Uf(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(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gi(e){e._valueTracker||(e._valueTracker=tg(e))}function Vf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Uf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zi(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 ql(e,t){var n=t.checked;return fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rn(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 Wf(e,t){t=t.checked,t!=null&&su(e,"checked",t,!1)}function Zl(e,t){Wf(e,t);var n=Rn(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")?Jl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Jl(e,t.type,Rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pc(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 Jl(e,t,n){(t!=="number"||Zi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var So=Array.isArray;function Nr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=yi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Lo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Co={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},ng=["Webkit","ms","Moz","O"];Object.keys(Co).forEach(function(e){ng.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Co[t]=Co[e]})});function Yf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Co.hasOwnProperty(e)&&Co[e]?(""+t).trim():t+"px"}function Gf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Yf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var rg=fe({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 na(e,t){if(t){if(rg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function ra(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 oa=null;function cu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ia=null,Rr=null,jr=null;function Rc(e){if(e=si(e)){if(typeof ia!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Ls(t),ia(e.stateNode,e.type,t))}}function Xf(e){Rr?jr?jr.push(e):jr=[e]:Rr=e}function qf(){if(Rr){var e=Rr,t=jr;if(jr=Rr=null,Rc(e),t)for(e=0;e>>=0,e===0?32:31-(hg(e)/mg|0)|0}var wi=64,xi=4194304;function Eo(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 ns(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=Eo(l):(i&=s,i!==0&&(r=Eo(i)))}else s=n&~o,s!==0?r=Eo(s):i!==0&&(r=Eo(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 oi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yt(t),e[t]=n}function wg(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=Po),Ic=" ",Fc=!1;function gp(e,t){switch(e){case"keyup":return Kg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yr=!1;function Gg(e,t){switch(e){case"compositionend":return yp(t);case"keypress":return t.which!==32?null:(Fc=!0,Ic);case"textInput":return e=t.data,e===Ic&&Fc?null:e;default:return null}}function Xg(e,t){if(yr)return e==="compositionend"||!yu&&gp(e,t)?(e=mp(),$i=mu=yn=null,yr=!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=Vc(n)}}function Ep(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ep(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kp(){for(var e=window,t=Zi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zi(e.document)}return t}function wu(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 iy(e){var t=kp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ep(n.ownerDocument.documentElement,n)){if(r!==null&&wu(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=Wc(n,i);var s=Wc(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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,wr=null,da=null,No=null,fa=!1;function Hc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fa||wr==null||wr!==Zi(r)||(r=wr,"selectionStart"in r&&wu(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}),No&&Bo(No,r)||(No=r,r=is(da,"onSelect"),0Er||(e.current=ya[Er],ya[Er]=null,Er--)}function oe(e,t){Er++,ya[Er]=e.current,e.current=t}var jn={},je=Dn(jn),$e=Dn(!1),tr=jn;function Qr(e,t){var n=e.type.contextTypes;if(!n)return jn;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 Be(e){return e=e.childContextTypes,e!=null}function ls(){le($e),le(je)}function Zc(e,t,n){if(je.current!==jn)throw Error(j(168));oe(je,t),oe($e,n)}function _p(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(j(108,eg(e)||"Unknown",o));return fe({},n,r)}function as(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jn,tr=je.current,oe(je,e),oe($e,$e.current),!0}function Jc(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=_p(e,t,tr),r.__reactInternalMemoizedMergedChildContext=e,le($e),le(je),oe(je,e)):le($e),oe($e,n)}var Bt=null,Ds=!1,jl=!1;function Mp(e){Bt===null?Bt=[e]:Bt.push(e)}function gy(e){Ds=!0,Mp(e)}function zn(){if(!jl&&Bt!==null){jl=!0;var e=0,t=ne;try{var n=Bt;for(ne=1;e>=s,o-=s,Vt=1<<32-yt(t)+o|n<R?(O=b,b=null):O=b.sibling;var M=h(m,b,g[R],E);if(M===null){b===null&&(b=O);break}e&&b&&M.alternate===null&&t(m,b),p=i(M,p,R),C===null?k=M:C.sibling=M,C=M,b=O}if(R===g.length)return n(m,b),ue&&Un(m,R),k;if(b===null){for(;RR?(O=b,b=null):O=b.sibling;var B=h(m,b,M.value,E);if(B===null){b===null&&(b=O);break}e&&b&&B.alternate===null&&t(m,b),p=i(B,p,R),C===null?k=B:C.sibling=B,C=B,b=O}if(M.done)return n(m,b),ue&&Un(m,R),k;if(b===null){for(;!M.done;R++,M=g.next())M=f(m,M.value,E),M!==null&&(p=i(M,p,R),C===null?k=M:C.sibling=M,C=M);return ue&&Un(m,R),k}for(b=r(m,b);!M.done;R++,M=g.next())M=d(b,m,R,M.value,E),M!==null&&(e&&M.alternate!==null&&b.delete(M.key===null?R:M.key),p=i(M,p,R),C===null?k=M:C.sibling=M,C=M);return e&&b.forEach(function(D){return t(m,D)}),ue&&Un(m,R),k}function w(m,p,g,E){if(typeof g=="object"&&g!==null&&g.type===gr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case vi:e:{for(var k=g.key,C=p;C!==null;){if(C.key===k){if(k=g.type,k===gr){if(C.tag===7){n(m,C.sibling),p=o(C,g.props.children),p.return=m,m=p;break e}}else if(C.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===un&&nd(k)===C.type){n(m,C.sibling),p=o(C,g.props),p.ref=mo(m,C,g),p.return=m,m=p;break e}n(m,C);break}else t(m,C);C=C.sibling}g.type===gr?(p=er(g.props.children,m.mode,E,g.key),p.return=m,m=p):(E=Yi(g.type,g.key,g.props,null,m.mode,E),E.ref=mo(m,p,g),E.return=m,m=E)}return s(m);case vr:e:{for(C=g.key;p!==null;){if(p.key===C)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(m,p.sibling),p=o(p,g.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Il(g,m.mode,E),p.return=m,m=p}return s(m);case un:return C=g._init,w(m,p,C(g._payload),E)}if(So(g))return x(m,p,g,E);if(uo(g))return v(m,p,g,E);Ti(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,g),p.return=m,m=p):(n(m,p),p=zl(g,m.mode,E),p.return=m,m=p),s(m)):n(m,p)}return w}var Yr=zp(!0),Ip=zp(!1),ds=Dn(null),fs=null,br=null,ku=null;function Cu(){ku=br=fs=null}function bu(e){var t=ds.current;le(ds),e._currentValue=t}function Sa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _r(e,t){fs=e,ku=br=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Fe=!0),e.firstContext=null)}function it(e){var t=e._currentValue;if(ku!==e)if(e={context:e,memoizedValue:t,next:null},br===null){if(fs===null)throw Error(j(308));br=e,fs.dependencies={lanes:0,firstContext:e}}else br=br.next=e;return t}var Hn=null;function Pu(e){Hn===null?Hn=[e]:Hn.push(e)}function Fp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Pu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Yt(e,r)}function Yt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var cn=!1;function Tu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $p(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ht(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Yt(e,n)}return o=r.interleaved,o===null?(t.next=t,Pu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Yt(e,n)}function Ui(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fu(e,n)}}function rd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ps(e,t,n,r){var o=e.updateQueue;cn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(i!==null){var f=o.baseState;s=0,c=u=a=null,l=i;do{var h=l.lane,d=l.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:d,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,v=l;switch(h=t,d=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){f=x.call(d,f,h);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,h=typeof x=="function"?x.call(d,f,h):x,h==null)break e;f=fe({},f,h);break e;case 2:cn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[l]:h.push(l))}else d={eventTime:d,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=d,a=f):c=c.next=d,s|=h;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;h=l,l=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(c===null&&(a=f),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);or|=s,e.lanes=s,e.memoizedState=f}}function od(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=_l.transition;_l.transition={};try{e(!1),t()}finally{ne=n,_l.transition=r}}function rh(){return st().memoizedState}function Sy(e,t,n){var r=Tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},oh(e))ih(t,n);else if(n=Fp(e,t,n,r),n!==null){var o=Ae();wt(n,e,r,o),sh(n,t,r)}}function Ey(e,t,n){var r=Tn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(oh(e))ih(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,xt(l,s)){var a=t.interleaved;a===null?(o.next=o,Pu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Fp(e,t,o,r),n!==null&&(o=Ae(),wt(n,e,r,o),sh(n,t,r))}}function oh(e){var t=e.alternate;return e===de||t!==null&&t===de}function ih(e,t){Ro=ms=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fu(e,n)}}var vs={readContext:it,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useInsertionEffect:Pe,useLayoutEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useMutableSource:Pe,useSyncExternalStore:Pe,useId:Pe,unstable_isNewReconciler:!1},ky={readContext:it,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:sd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wi(4194308,4,Zp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wi(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pt();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=Sy.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:id,useDebugValue:Lu,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=id(!1),t=e[0];return e=xy.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=de,o=Pt();if(ue){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),Se===null)throw Error(j(349));rr&30||Wp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,sd(Qp.bind(null,r,i,e),[e]),r.flags|=2048,Go(9,Hp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Se.identifierPrefix;if(ue){var n=Wt,r=Vt;n=(r&~(1<<32-yt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ko++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[jt]=t,e[Wo]=r,vh(e,t,!1,!1),t.stateNode=e;e:{switch(s=ra(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;oqr&&(t.flags|=128,r=!0,vo(i,!1),t.lanes=4194304)}else{if(!r)if(e=hs(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ue)return Te(t),null}else 2*me()-i.renderingStartTime>qr&&n!==1073741824&&(t.flags|=128,r=!0,vo(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=me(),t.sibling=null,n=ce.current,oe(ce,r?n&1|2:n&1),t):(Te(t),null);case 22:case 23:return Bu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?He&1073741824&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function Oy(e,t){switch(Su(t),t.tag){case 1:return Be(t.type)&&ls(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gr(),le($e),le(je),ju(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ru(t),null;case 13:if(le(ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Kr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(ce),null;case 4:return Gr(),null;case 10:return bu(t.type._context),null;case 22:case 23:return Bu(),null;case 24:return null;default:return null}}var Ri=!1,Re=!1,_y=typeof WeakSet=="function"?WeakSet:Set,z=null;function Pr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){he(e,t,r)}else n.current=null}function ja(e,t,n){try{n()}catch(r){he(e,t,r)}}var gd=!1;function My(e,t){if(pa=rs,e=kp(),wu(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 s=0,l=-1,a=-1,u=0,c=0,f=e,h=null;t:for(;;){for(var d;f!==n||o!==0&&f.nodeType!==3||(l=s+o),f!==i||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(d=f.firstChild)!==null;)h=f,f=d;for(;;){if(f===e)break t;if(h===n&&++u===o&&(l=s),h===i&&++c===r&&(a=s),(d=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=d}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ha={focusedElem:e,selectionRange:n},rs=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,w=x.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:ft(t.type,v),w);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(E){he(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return x=gd,gd=!1,x}function jo(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&&ja(t,n,i)}o=o.next}while(o!==r)}}function Fs(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 Oa(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 wh(e){var t=e.alternate;t!==null&&(e.alternate=null,wh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jt],delete t[Wo],delete t[ga],delete t[my],delete t[vy])),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 xh(e){return e.tag===5||e.tag===3||e.tag===4}function yd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _a(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ss));else if(r!==4&&(e=e.child,e!==null))for(_a(e,t,n),e=e.sibling;e!==null;)_a(e,t,n),e=e.sibling}function Ma(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(Ma(e,t,n),e=e.sibling;e!==null;)Ma(e,t,n),e=e.sibling}var Ee=null,vt=!1;function on(e,t,n){for(n=n.child;n!==null;)Sh(e,t,n),n=n.sibling}function Sh(e,t,n){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(Os,n)}catch{}switch(n.tag){case 5:Re||Pr(n,t);case 6:var r=Ee,o=vt;Ee=null,on(e,t,n),Ee=r,vt=o,Ee!==null&&(vt?(e=Ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(vt?(e=Ee,n=n.stateNode,e.nodeType===8?Rl(e.parentNode,n):e.nodeType===1&&Rl(e,n),Fo(e)):Rl(Ee,n.stateNode));break;case 4:r=Ee,o=vt,Ee=n.stateNode.containerInfo,vt=!0,on(e,t,n),Ee=r,vt=o;break;case 0:case 11:case 14:case 15:if(!Re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&ja(n,t,s),o=o.next}while(o!==r)}on(e,t,n);break;case 1:if(!Re&&(Pr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){he(n,t,l)}on(e,t,n);break;case 21:on(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,on(e,t,n),Re=r):on(e,t,n);break;default:on(e,t,n)}}function wd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new _y),t.forEach(function(r){var o=Uy.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ly(r/1960))-r,10e?16:e,wn===null)var r=!1;else{if(e=wn,wn=null,ws=0,J&6)throw Error(j(331));var o=J;for(J|=4,z=e.current;z!==null;){var i=z,s=i.child;if(z.flags&16){var l=i.deletions;if(l!==null){for(var a=0;ame()-Fu?Jn(e,0):Iu|=n),Ue(e,t)}function Rh(e,t){t===0&&(e.mode&1?(t=xi,xi<<=1,!(xi&130023424)&&(xi=4194304)):t=1);var n=Ae();e=Yt(e,t),e!==null&&(oi(e,t,n),Ue(e,n))}function By(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Rh(e,n)}function Uy(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(j(314))}r!==null&&r.delete(t),Rh(e,n)}var jh;jh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$e.current)Fe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Fe=!1,Ry(e,t,n);Fe=!!(e.flags&131072)}else Fe=!1,ue&&t.flags&1048576&&Ap(t,cs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hi(e,t),e=t.pendingProps;var o=Qr(t,je.current);_r(t,n),o=_u(null,t,r,e,o,n);var i=Mu();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,Be(r)?(i=!0,as(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Tu(t),o.updater=Is,t.stateNode=o,o._reactInternals=t,ka(t,r,e,n),t=Pa(null,t,r,!0,i,n)):(t.tag=0,ue&&i&&xu(t),_e(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Wy(r),e=ft(r,e),o){case 0:t=ba(null,t,r,e,n);break e;case 1:t=hd(null,t,r,e,n);break e;case 11:t=fd(null,t,r,e,n);break e;case 14:t=pd(null,t,r,ft(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ft(r,o),ba(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ft(r,o),hd(e,t,r,o,n);case 3:e:{if(ph(t),e===null)throw Error(j(387));r=t.pendingProps,i=t.memoizedState,o=i.element,$p(e,t),ps(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Xr(Error(j(423)),t),t=md(e,t,r,n,o);break e}else if(r!==o){o=Xr(Error(j(424)),t),t=md(e,t,r,n,o);break e}else for(Ke=Cn(t.stateNode.containerInfo.firstChild),Ye=t,ue=!0,gt=null,n=Ip(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Kr(),r===o){t=Gt(e,t,n);break e}_e(e,t,r,n)}t=t.child}return t;case 5:return Bp(t),e===null&&xa(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,ma(r,o)?s=null:i!==null&&ma(r,i)&&(t.flags|=32),fh(e,t),_e(e,t,s,n),t.child;case 6:return e===null&&xa(t),null;case 13:return hh(e,t,n);case 4:return Nu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yr(t,null,r,n):_e(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ft(r,o),fd(e,t,r,o,n);case 7:return _e(e,t,t.pendingProps,n),t.child;case 8:return _e(e,t,t.pendingProps.children,n),t.child;case 12:return _e(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,oe(ds,r._currentValue),r._currentValue=s,i!==null)if(xt(i.value,s)){if(i.children===o.children&&!$e.current){t=Gt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Ht(-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),Sa(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(j(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Sa(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}_e(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,_r(t,n),o=it(o),r=r(o),t.flags|=1,_e(e,t,r,n),t.child;case 14:return r=t.type,o=ft(r,t.pendingProps),o=ft(r.type,o),pd(e,t,r,o,n);case 15:return ch(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ft(r,o),Hi(e,t),t.tag=1,Be(r)?(e=!0,as(t)):e=!1,_r(t,n),lh(t,r,o),ka(t,r,o,n),Pa(null,t,r,!0,e,n);case 19:return mh(e,t,n);case 22:return dh(e,t,n)}throw Error(j(156,t.tag))};function Oh(e,t){return op(e,t)}function Vy(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 rt(e,t,n,r){return new Vy(e,t,n,r)}function Vu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wy(e){if(typeof e=="function")return Vu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===au)return 11;if(e===uu)return 14}return 2}function Nn(e,t){var n=e.alternate;return n===null?(n=rt(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 Yi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Vu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case gr:return er(n.children,o,i,t);case lu:s=8,o|=8;break;case Kl:return e=rt(12,n,t,o|2),e.elementType=Kl,e.lanes=i,e;case Yl:return e=rt(13,n,t,o),e.elementType=Yl,e.lanes=i,e;case Gl:return e=rt(19,n,t,o),e.elementType=Gl,e.lanes=i,e;case Bf:return Bs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ff:s=10;break e;case $f:s=9;break e;case au:s=11;break e;case uu:s=14;break e;case un:s=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=rt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function er(e,t,n,r){return e=rt(7,e,r,t),e.lanes=n,e}function Bs(e,t,n,r){return e=rt(22,e,r,t),e.elementType=Bf,e.lanes=n,e.stateNode={isHidden:!1},e}function zl(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function Il(e,t,n){return t=rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hy(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=yl(0),this.expirationTimes=yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Wu(e,t,n,r,o,i,s,l,a){return e=new Hy(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=rt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Tu(i),e}function Qy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lh)}catch(e){console.error(e)}}Lh(),Lf.exports=qe;var ai=Lf.exports;const Dh=Ef(ai);var zh,Td=ai;zh=Td.createRoot,Td.hydrateRoot;const qy=1,Zy=1e6;let Fl=0;function Jy(){return Fl=(Fl+1)%Number.MAX_SAFE_INTEGER,Fl.toString()}const $l=new Map,Nd=e=>{if($l.has(e))return;const t=setTimeout(()=>{$l.delete(e),Mo({type:"REMOVE_TOAST",toastId:e})},Zy);$l.set(e,t)},e0=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,qy)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Nd(n):e.toasts.forEach(r=>{Nd(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Gi=[];let Xi={toasts:[]};function Mo(e){Xi=e0(Xi,e),Gi.forEach(t=>{t(Xi)})}function t0({...e}){const t=Jy(),n=o=>Mo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Mo({type:"DISMISS_TOAST",toastId:t});return Mo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function n0(){const[e,t]=y.useState(Xi);return y.useEffect(()=>(Gi.push(t),()=>{const n=Gi.indexOf(t);n>-1&&Gi.splice(n,1)}),[e]),{...e,toast:t0,dismiss:n=>Mo({type:"DISMISS_TOAST",toastId:n})}}function ye(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 Rd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ih(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Rd(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var m;const{scope:h,children:d,...x}=f,v=((m=h==null?void 0:h[e])==null?void 0:m[a])||l,w=y.useMemo(()=>x,Object.values(x));return S.jsx(v.Provider,{value:w,children:d})};u.displayName=i+"Provider";function c(f,h){var v;const d=((v=h==null?void 0:h[e])==null?void 0:v[a])||l,x=y.useContext(d);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>y.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,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 s=r.reduce((l,{useScope:a,scopeName:u})=>{const f=a(i)[`__scope${u}`];return{...l,...f}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Es(e){const t=i0(e),n=y.forwardRef((r,o)=>{const{children:i,...s}=r,l=y.Children.toArray(i),a=l.find(l0);if(a){const u=a.props.children,c=l.map(f=>f===a?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:f);return S.jsx(t,{...s,ref:o,children:y.isValidElement(u)?y.cloneElement(u,void 0,c):null})}return S.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var o0=Es("Slot");function i0(e){const t=y.forwardRef((n,r)=>{const{children:o,...i}=n;if(y.isValidElement(o)){const s=u0(o),l=a0(i,o.props);return o.type!==y.Fragment&&(l.ref=r?Ih(r,s):s),y.cloneElement(o,l)}return y.Children.count(o)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fh=Symbol("radix.slottable");function s0(e){const t=({children:n})=>S.jsx(S.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Fh,t}function l0(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fh}function a0(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]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function u0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function c0(e){const t=e+"CollectionProvider",[n,r]=Qs(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:w,children:m}=v,p=_.useRef(null),g=_.useRef(new Map).current;return S.jsx(o,{scope:w,itemMap:g,collectionRef:p,children:m})};s.displayName=t;const l=e+"CollectionSlot",a=Es(l),u=_.forwardRef((v,w)=>{const{scope:m,children:p}=v,g=i(l,m),E=St(w,g.collectionRef);return S.jsx(a,{ref:E,children:p})});u.displayName=l;const c=e+"CollectionItemSlot",f="data-radix-collection-item",h=Es(c),d=_.forwardRef((v,w)=>{const{scope:m,children:p,...g}=v,E=_.useRef(null),k=St(w,E),C=i(c,m);return _.useEffect(()=>(C.itemMap.set(E,{ref:E,...g}),()=>void C.itemMap.delete(E))),S.jsx(h,{[f]:"",ref:k,children:p})});d.displayName=c;function x(v){const w=i(e+"CollectionConsumer",v);return _.useCallback(()=>{const p=w.collectionRef.current;if(!p)return[];const g=Array.from(p.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((C,b)=>g.indexOf(C.ref.current)-g.indexOf(b.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:u,ItemSlot:d},x,r]}var d0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=d0.reduce((e,t)=>{const n=Es(`Primitive.${t}`),r=y.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function $h(e,t){e&&ai.flushSync(()=>e.dispatchEvent(t))}function On(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function f0(e,t=globalThis==null?void 0:globalThis.document){const n=On(e);y.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var p0="DismissableLayer",Ia="dismissableLayer.update",h0="dismissableLayer.pointerDownOutside",m0="dismissableLayer.focusOutside",jd,Bh=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yu=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=y.useContext(Bh),[c,f]=y.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=y.useState({}),x=St(t,b=>f(b)),v=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=v.indexOf(w),p=c?v.indexOf(c):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,E=p>=m,k=g0(b=>{const R=b.target,O=[...u.branches].some(M=>M.contains(R));!E||O||(o==null||o(b),s==null||s(b),b.defaultPrevented||l==null||l())},h),C=y0(b=>{const R=b.target;[...u.branches].some(M=>M.contains(R))||(i==null||i(b),s==null||s(b),b.defaultPrevented||l==null||l())},h);return f0(b=>{p===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&l&&(b.preventDefault(),l()))},h),y.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(jd=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Od(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=jd)}},[c,h,n,u]),y.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Od())},[c,u]),y.useEffect(()=>{const b=()=>d({});return document.addEventListener(Ia,b),()=>document.removeEventListener(Ia,b)},[]),S.jsx(We.div,{...a,ref:x,style:{pointerEvents:g?E?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,k.onPointerDownCapture)})});Yu.displayName=p0;var v0="DismissableLayerBranch",Uh=y.forwardRef((e,t)=>{const n=y.useContext(Bh),r=y.useRef(null),o=St(t,r);return y.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),S.jsx(We.div,{...e,ref:o})});Uh.displayName=v0;function g0(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=y.useRef(!1),o=y.useRef(()=>{});return y.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){Vh(h0,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function y0(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=y.useRef(!1);return y.useEffect(()=>{const o=i=>{i.target&&!r.current&&Vh(m0,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 Od(){const e=new CustomEvent(Ia);document.dispatchEvent(e)}function Vh(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?$h(o,i):o.dispatchEvent(i)}var w0=Yu,x0=Uh,_n=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},S0="Portal",Wh=y.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=y.useState(!1);_n(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?Dh.createPortal(S.jsx(We.div,{...r,ref:t}),s):null});Wh.displayName=S0;function E0(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var Gu=e=>{const{present:t,children:n}=e,r=k0(t),o=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=St(r.ref,C0(o));return typeof n=="function"||r.isPresent?y.cloneElement(o,{ref:i}):null};Gu.displayName="Presence";function k0(e){const[t,n]=y.useState(),r=y.useRef(null),o=y.useRef(e),i=y.useRef("none"),s=e?"mounted":"unmounted",[l,a]=E0(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=_i(r.current);i.current=l==="mounted"?u:"none"},[l]),_n(()=>{const u=r.current,c=o.current;if(c!==e){const h=i.current,d=_i(u);e?a("MOUNT"):d==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&h!==d?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),_n(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=d=>{const v=_i(r.current).includes(d.animationName);if(d.target===t&&v&&(a("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=d=>{d.target===t&&(i.current=_i(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:y.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function _i(e){return(e==null?void 0:e.animationName)||"none"}function C0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var b0=Mf[" useInsertionEffect ".trim().toString()]||_n;function P0({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=T0({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const c=y.useRef(e!==void 0);y.useEffect(()=>{const f=c.current;f!==l&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=l},[l,r])}const u=y.useCallback(c=>{var f;if(l){const h=N0(c)?c(e):c;h!==e&&((f=s.current)==null||f.call(s,h))}else i(c)},[l,e,i,s]);return[a,u]}function T0({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),o=y.useRef(n),i=y.useRef(t);return b0(()=>{i.current=t},[t]),y.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function N0(e){return typeof e=="function"}var R0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),j0="VisuallyHidden",Ks=y.forwardRef((e,t)=>S.jsx(We.span,{...e,ref:t,style:{...R0,...e.style}}));Ks.displayName=j0;var O0=Ks,Xu="ToastProvider",[qu,_0,M0]=c0("Toast"),[Hh,PE]=Qs("Toast",[M0]),[A0,Ys]=Hh(Xu),Qh=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,a]=y.useState(null),[u,c]=y.useState(0),f=y.useRef(!1),h=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Xu}\`. Expected non-empty \`string\`.`),S.jsx(qu.Provider,{scope:t,children:S.jsx(A0,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:y.useCallback(()=>c(d=>d+1),[]),onToastRemove:y.useCallback(()=>c(d=>d-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:s})})};Qh.displayName=Xu;var Kh="ToastViewport",L0=["F8"],Fa="toast.viewportPause",$a="toast.viewportResume",Yh=y.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=L0,label:o="Notifications ({hotkey})",...i}=e,s=Ys(Kh,n),l=_0(n),a=y.useRef(null),u=y.useRef(null),c=y.useRef(null),f=y.useRef(null),h=St(t,f,s.onViewportChange),d=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=s.toastCount>0;y.useEffect(()=>{const w=m=>{var g;r.length!==0&&r.every(E=>m[E]||m.code===E)&&((g=f.current)==null||g.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),y.useEffect(()=>{const w=a.current,m=f.current;if(x&&w&&m){const p=()=>{if(!s.isClosePausedRef.current){const C=new CustomEvent(Fa);m.dispatchEvent(C),s.isClosePausedRef.current=!0}},g=()=>{if(s.isClosePausedRef.current){const C=new CustomEvent($a);m.dispatchEvent(C),s.isClosePausedRef.current=!1}},E=C=>{!w.contains(C.relatedTarget)&&g()},k=()=>{w.contains(document.activeElement)||g()};return w.addEventListener("focusin",p),w.addEventListener("focusout",E),w.addEventListener("pointermove",p),w.addEventListener("pointerleave",k),window.addEventListener("blur",p),window.addEventListener("focus",g),()=>{w.removeEventListener("focusin",p),w.removeEventListener("focusout",E),w.removeEventListener("pointermove",p),w.removeEventListener("pointerleave",k),window.removeEventListener("blur",p),window.removeEventListener("focus",g)}}},[x,s.isClosePausedRef]);const v=y.useCallback(({tabbingDirection:w})=>{const p=l().map(g=>{const E=g.ref.current,k=[E,...Y0(E)];return w==="forwards"?k:k.reverse()});return(w==="forwards"?p.reverse():p).flat()},[l]);return y.useEffect(()=>{const w=f.current;if(w){const m=p=>{var k,C,b;const g=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!g){const R=document.activeElement,O=p.shiftKey;if(p.target===w&&O){(k=u.current)==null||k.focus();return}const D=v({tabbingDirection:O?"backwards":"forwards"}),H=D.findIndex(A=>A===R);Bl(D.slice(H+1))?p.preventDefault():O?(C=u.current)==null||C.focus():(b=c.current)==null||b.focus()}};return w.addEventListener("keydown",m),()=>w.removeEventListener("keydown",m)}},[l,v]),S.jsxs(x0,{ref:a,role:"region","aria-label":o.replace("{hotkey}",d),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&S.jsx(Ba,{ref:u,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"forwards"});Bl(w)}}),S.jsx(qu.Slot,{scope:n,children:S.jsx(We.ol,{tabIndex:-1,...i,ref:h})}),x&&S.jsx(Ba,{ref:c,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"backwards"});Bl(w)}})]})});Yh.displayName=Kh;var Gh="ToastFocusProxy",Ba=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Ys(Gh,n);return S.jsx(Ks,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const l=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});Ba.displayName=Gh;var ui="Toast",D0="toast.swipeStart",z0="toast.swipeMove",I0="toast.swipeCancel",F0="toast.swipeEnd",Xh=y.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[l,a]=P0({prop:r,defaultProp:o??!0,onChange:i,caller:ui});return S.jsx(Gu,{present:n||l,children:S.jsx(U0,{open:l,...s,ref:t,onClose:()=>a(!1),onPause:On(e.onPause),onResume:On(e.onResume),onSwipeStart:ye(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ye(e.onSwipeMove,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:ye(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ye(e.onSwipeEnd,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),a(!1)})})})});Xh.displayName=ui;var[$0,B0]=Hh(ui,{onClose(){}}),U0=y.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:l,onPause:a,onResume:u,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:d,...x}=e,v=Ys(ui,n),[w,m]=y.useState(null),p=St(t,A=>m(A)),g=y.useRef(null),E=y.useRef(null),k=o||v.duration,C=y.useRef(0),b=y.useRef(k),R=y.useRef(0),{onToastAdd:O,onToastRemove:M}=v,B=On(()=>{var q;(w==null?void 0:w.contains(document.activeElement))&&((q=v.viewport)==null||q.focus()),s()}),D=y.useCallback(A=>{!A||A===1/0||(window.clearTimeout(R.current),C.current=new Date().getTime(),R.current=window.setTimeout(B,A))},[B]);y.useEffect(()=>{const A=v.viewport;if(A){const q=()=>{D(b.current),u==null||u()},U=()=>{const V=new Date().getTime()-C.current;b.current=b.current-V,window.clearTimeout(R.current),a==null||a()};return A.addEventListener(Fa,U),A.addEventListener($a,q),()=>{A.removeEventListener(Fa,U),A.removeEventListener($a,q)}}},[v.viewport,k,a,u,D]),y.useEffect(()=>{i&&!v.isClosePausedRef.current&&D(k)},[i,k,v.isClosePausedRef,D]),y.useEffect(()=>(O(),()=>M()),[O,M]);const H=y.useMemo(()=>w?rm(w):null,[w]);return v.viewport?S.jsxs(S.Fragment,{children:[H&&S.jsx(V0,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:H}),S.jsx($0,{scope:n,onClose:B,children:ai.createPortal(S.jsx(qu.ItemSlot,{scope:n,children:S.jsx(w0,{asChild:!0,onEscapeKeyDown:ye(l,()=>{v.isFocusedToastEscapeKeyDownRef.current||B(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:S.jsx(We.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":v.swipeDirection,...x,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ye(e.onKeyDown,A=>{A.key==="Escape"&&(l==null||l(A.nativeEvent),A.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,B()))}),onPointerDown:ye(e.onPointerDown,A=>{A.button===0&&(g.current={x:A.clientX,y:A.clientY})}),onPointerMove:ye(e.onPointerMove,A=>{if(!g.current)return;const q=A.clientX-g.current.x,U=A.clientY-g.current.y,V=!!E.current,P=["left","right"].includes(v.swipeDirection),N=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,L=P?N(0,q):0,W=P?0:N(0,U),$=A.pointerType==="touch"?10:2,X={x:L,y:W},F={originalEvent:A,delta:X};V?(E.current=X,Mi(z0,f,F,{discrete:!1})):_d(X,v.swipeDirection,$)?(E.current=X,Mi(D0,c,F,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(q)>$||Math.abs(U)>$)&&(g.current=null)}),onPointerUp:ye(e.onPointerUp,A=>{const q=E.current,U=A.target;if(U.hasPointerCapture(A.pointerId)&&U.releasePointerCapture(A.pointerId),E.current=null,g.current=null,q){const V=A.currentTarget,P={originalEvent:A,delta:q};_d(q,v.swipeDirection,v.swipeThreshold)?Mi(F0,d,P,{discrete:!0}):Mi(I0,h,P,{discrete:!0}),V.addEventListener("click",N=>N.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),V0=e=>{const{__scopeToast:t,children:n,...r}=e,o=Ys(ui,t),[i,s]=y.useState(!1),[l,a]=y.useState(!1);return Q0(()=>s(!0)),y.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:S.jsx(Wh,{asChild:!0,children:S.jsx(Ks,{...r,children:i&&S.jsxs(S.Fragment,{children:[o.label," ",n]})})})},W0="ToastTitle",qh=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(We.div,{...r,ref:t})});qh.displayName=W0;var H0="ToastDescription",Zh=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(We.div,{...r,ref:t})});Zh.displayName=H0;var Jh="ToastAction",em=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?S.jsx(nm,{altText:n,asChild:!0,children:S.jsx(Zu,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Jh}\`. Expected non-empty \`string\`.`),null)});em.displayName=Jh;var tm="ToastClose",Zu=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=B0(tm,n);return S.jsx(nm,{asChild:!0,children:S.jsx(We.button,{type:"button",...r,ref:t,onClick:ye(e.onClick,o.onClose)})})});Zu.displayName=tm;var nm=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return S.jsx(We.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function rm(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),K0(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...rm(r))}}),t}function Mi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?$h(o,i):o.dispatchEvent(i)}var _d=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function Q0(e=()=>{}){const t=On(e);_n(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function K0(e){return e.nodeType===e.ELEMENT_NODE}function Y0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Bl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var G0=Qh,om=Yh,im=Xh,sm=qh,lm=Zh,am=em,um=Zu;function cm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Ad=dm,fm=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Ad(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=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 h=Md(c)||Md(f);return o[u][h]}),l=n&&Object.entries(n).reduce((u,c)=>{let[f,h]=c;return h===void 0||(u[f]=h),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:h,...d}=c;return Object.entries(d).every(x=>{let[v,w]=x;return Array.isArray(w)?w.includes({...i,...l}[v]):{...i,...l}[v]===w})?[...u,f,h]:u},[]);return Ad(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const X0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var q0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Z0=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>y.createElement("svg",{ref:a,...q0,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:pm("lucide",o),...l},[...s.map(([u,c])=>y.createElement(u,c)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Gs=(e,t)=>{const n=y.forwardRef(({className:r,...o},i)=>y.createElement(Z0,{ref:i,iconNode:t,className:pm(`lucide-${X0(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const J0=Gs("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ew=Gs("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tw=Gs("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Xs=Gs("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ju="-",nw=e=>{const t=ow(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(Ju);return l[0]===""&&l.length!==1&&l.shift(),hm(l,t)||rw(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},hm=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?hm(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Ju);return(s=t.validators.find(({validator:l})=>l(i)))==null?void 0:s.classGroupId},Ld=/^\[(.+)\]$/,rw=e=>{if(Ld.test(e)){const t=Ld.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ow=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return sw(Object.entries(e.classGroups),n).forEach(([i,s])=>{Ua(s,r,i,t)}),r},Ua=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Dd(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(iw(o)){Ua(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Ua(s,Dd(t,i),n,r)})})},Dd=(e,t)=>{let n=e;return t.split(Ju).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},iw=e=>e.isThemeGetter,sw=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[t+s,l])):i);return[n,o]}):e,lw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},mm="!",aw=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=l=>{const a=[];let u=0,c=0,f;for(let w=0;wc?f-c:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:x,maybePostfixModifierPosition:v}};return n?l=>n({className:l,parseClassName:s}):s},uw=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},cw=e=>({cache:lw(e.cacheSize),parseClassName:aw(e),...nw(e)}),dw=/\s+/,fw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(dw);let l="";for(let a=s.length-1;a>=0;a-=1){const u=s[a],{modifiers:c,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:d}=n(u);let x=!!d,v=r(x?h.substring(0,d):h);if(!v){if(!x){l=u+(l.length>0?" "+l:l);continue}if(v=r(h),!v){l=u+(l.length>0?" "+l:l);continue}x=!1}const w=uw(c).join(":"),m=f?w+mm:w,p=m+v;if(i.includes(p))continue;i.push(p);const g=o(v,x);for(let E=0;E0?" "+l:l)}return l};function pw(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(c),e());return n=cw(u),r=n.cache.get,o=n.cache.set,i=l,l(a)}function l(a){const u=r(a);if(u)return u;const c=fw(a,n);return o(a,c),c}return function(){return i(pw.apply(null,arguments))}}const ie=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},gm=/^\[(?:([a-z-]+):)?(.+)\]$/i,mw=/^\d+\/\d+$/,vw=new Set(["px","full","screen"]),gw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yw=/\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$/,ww=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,xw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Sw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,It=e=>Ar(e)||vw.has(e)||mw.test(e),sn=e=>oo(e,"length",Rw),Ar=e=>!!e&&!Number.isNaN(Number(e)),Ul=e=>oo(e,"number",Ar),yo=e=>!!e&&Number.isInteger(Number(e)),Ew=e=>e.endsWith("%")&&Ar(e.slice(0,-1)),G=e=>gm.test(e),ln=e=>gw.test(e),kw=new Set(["length","size","percentage"]),Cw=e=>oo(e,kw,ym),bw=e=>oo(e,"position",ym),Pw=new Set(["image","url"]),Tw=e=>oo(e,Pw,Ow),Nw=e=>oo(e,"",jw),wo=()=>!0,oo=(e,t,n)=>{const r=gm.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Rw=e=>yw.test(e)&&!ww.test(e),ym=()=>!1,jw=e=>xw.test(e),Ow=e=>Sw.test(e),_w=()=>{const e=ie("colors"),t=ie("spacing"),n=ie("blur"),r=ie("brightness"),o=ie("borderColor"),i=ie("borderRadius"),s=ie("borderSpacing"),l=ie("borderWidth"),a=ie("contrast"),u=ie("grayscale"),c=ie("hueRotate"),f=ie("invert"),h=ie("gap"),d=ie("gradientColorStops"),x=ie("gradientColorStopPositions"),v=ie("inset"),w=ie("margin"),m=ie("opacity"),p=ie("padding"),g=ie("saturate"),E=ie("scale"),k=ie("sepia"),C=ie("skew"),b=ie("space"),R=ie("translate"),O=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",G,t],D=()=>[G,t],H=()=>["",It,sn],A=()=>["auto",Ar,G],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",G],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[Ar,G];return{cacheSize:500,separator:":",theme:{colors:[wo],spacing:[It,sn],blur:["none","",ln,G],brightness:W(),borderColor:[e],borderRadius:["none","","full",ln,G],borderSpacing:D(),borderWidth:H(),contrast:W(),grayscale:N(),hueRotate:W(),invert:N(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[Ew,sn],inset:B(),margin:B(),opacity:W(),padding:D(),saturate:W(),scale:W(),sepia:N(),skew:W(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",G]}],container:["container"],columns:[{columns:[ln]}],"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","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...q(),G]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",yo,G]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",G]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",yo,G]}],"grid-cols":[{"grid-cols":[wo]}],"col-start-end":[{col:["auto",{span:["full",yo,G]},G]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[wo]}],"row-start-end":[{row:["auto",{span:[yo,G]},G]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",G]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",G]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[b]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[b]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",G,t]}],"min-w":[{"min-w":[G,t,"min","max","fit"]}],"max-w":[{"max-w":[G,t,"none","full","min","max","fit","prose",{screen:[ln]},ln]}],h:[{h:[G,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[G,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ln,sn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ul]}],"font-family":[{font:[wo]}],"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-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",G]}],"line-clamp":[{"line-clamp":["none",Ar,Ul]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",It,G]}],"list-image":[{"list-image":["none",G]}],"list-style-type":[{list:["none","disc","decimal",G]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",It,sn]}],"underline-offset":[{"underline-offset":["auto",It,G]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G]}],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",G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),bw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Cw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Tw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],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:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:U()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[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:["",...U()]}],"outline-offset":[{"outline-offset":[It,G]}],"outline-w":[{outline:[It,sn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[It,sn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ln,Nw]}],"shadow-color":[{shadow:[wo]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",ln,G]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[g]}],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":[m]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",G]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",G]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",G]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[yo,G]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",G]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",G]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",G]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[It,sn,Ul]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","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"]}}},Mw=hw(_w);function In(...e){return Mw(dm(e))}const Aw=G0,wm=y.forwardRef(({className:e,...t},n)=>S.jsx(om,{ref:n,className:In("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));wm.displayName=om.displayName;const Lw=fm("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),xm=y.forwardRef(({className:e,variant:t,...n},r)=>S.jsx(im,{ref:r,className:In(Lw({variant:t}),e),...n}));xm.displayName=im.displayName;const Dw=y.forwardRef(({className:e,...t},n)=>S.jsx(am,{ref:n,className:In("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));Dw.displayName=am.displayName;const Sm=y.forwardRef(({className:e,...t},n)=>S.jsx(um,{ref:n,className:In("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:S.jsx(Xs,{className:"h-4 w-4"})}));Sm.displayName=um.displayName;const Em=y.forwardRef(({className:e,...t},n)=>S.jsx(sm,{ref:n,className:In("text-sm font-semibold",e),...t}));Em.displayName=sm.displayName;const km=y.forwardRef(({className:e,...t},n)=>S.jsx(lm,{ref:n,className:In("text-sm opacity-90",e),...t}));km.displayName=lm.displayName;function zw(){const{toasts:e}=n0();return S.jsxs(Aw,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return S.jsxs(xm,{...i,children:[S.jsxs("div",{className:"grid gap-1",children:[n&&S.jsx(Em,{children:n}),r&&S.jsx(km,{children:r})]}),o,S.jsx(Sm,{})]},t)}),S.jsx(wm,{})]})}var zd=["light","dark"],Iw="(prefers-color-scheme: dark)",Fw=y.createContext(void 0),$w={setTheme:e=>{},themes:[]},Bw=()=>{var e;return(e=y.useContext(Fw))!=null?e:$w};y.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:l,nonce:a})=>{let u=i==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=o?zd.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(x,v=!1,w=!0)=>{let m=s?s[x]:x,p=v?x+"|| ''":`'${m}'`,g="";return o&&w&&!v&&zd.includes(x)&&(g+=`d.style.colorScheme = '${x}';`),n==="class"?v||m?g+=`c.add(${p})`:g+="null":m&&(g+=`d[s](n,${p})`),g},d=e?`!function(){${c}${h(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Iw}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}${u?"":"else{"+h(i,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${f}}catch(t){}}();`;return y.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:d}})});var Uw=e=>{switch(e){case"success":return Hw;case"info":return Kw;case"warning":return Qw;case"error":return Yw;default:return null}},Vw=Array(12).fill(0),Ww=({visible:e,className:t})=>_.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},_.createElement("div",{className:"sonner-spinner"},Vw.map((n,r)=>_.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Hw=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Qw=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},_.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Kw=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Yw=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Gw=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},_.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),_.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Xw=()=>{let[e,t]=_.useState(document.hidden);return _.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Va=1,qw=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Va++,i=this.toasts.find(l=>l.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:s,title:n}):l):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,i,s=r.then(async a=>{if(i=["resolve",a],_.isValidElement(a))o=!1,this.create({id:n,type:"default",message:a});else if(Jw(a)&&!a.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(a):t.success,c=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async a=>{if(i=["reject",a],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(a):t.error,c=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var a;o&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),l=()=>new Promise((a,u)=>s.then(()=>i[0]==="reject"?u(i[1]):a(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Va++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ze=new qw,Zw=(e,t)=>{let n=(t==null?void 0:t.id)||Va++;return ze.addToast({title:e,...t,id:n}),n},Jw=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",ex=Zw,tx=()=>ze.toasts,nx=()=>ze.getActiveToasts();Object.assign(ex,{success:ze.success,info:ze.info,warning:ze.warning,error:ze.error,custom:ze.custom,message:ze.message,promise:ze.promise,dismiss:ze.dismiss,loading:ze.loading},{getHistory:tx,getToasts:nx});function rx(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}rx(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function Ai(e){return e.label!==void 0}var ox=3,ix="32px",sx="16px",Id=4e3,lx=356,ax=14,ux=20,cx=200;function dt(...e){return e.filter(Boolean).join(" ")}function dx(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var fx=e=>{var t,n,r,o,i,s,l,a,u,c,f;let{invert:h,toast:d,unstyled:x,interacting:v,setHeights:w,visibleToasts:m,heights:p,index:g,toasts:E,expanded:k,removeToast:C,defaultRichColors:b,closeButton:R,style:O,cancelButtonStyle:M,actionButtonStyle:B,className:D="",descriptionClassName:H="",duration:A,position:q,gap:U,loadingIcon:V,expandByDefault:P,classNames:N,icons:L,closeButtonAriaLabel:W="Close toast",pauseWhenPageIsHidden:$}=e,[X,F]=_.useState(null),[I,ee]=_.useState(null),[Y,zt]=_.useState(!1),[Ct,Fn]=_.useState(!1),[Jt,ur]=_.useState(!1),[en,di]=_.useState(!1),[al,fi]=_.useState(!1),[ul,lo]=_.useState(0),[cr,fc]=_.useState(0),ao=_.useRef(d.duration||A||Id),pc=_.useRef(null),$n=_.useRef(null),vv=g===0,gv=g+1<=m,Je=d.type,dr=d.dismissible!==!1,yv=d.className||"",wv=d.descriptionClassName||"",pi=_.useMemo(()=>p.findIndex(Q=>Q.toastId===d.id)||0,[p,d.id]),xv=_.useMemo(()=>{var Q;return(Q=d.closeButton)!=null?Q:R},[d.closeButton,R]),hc=_.useMemo(()=>d.duration||A||Id,[d.duration,A]),cl=_.useRef(0),fr=_.useRef(0),mc=_.useRef(0),pr=_.useRef(null),[Sv,Ev]=q.split("-"),vc=_.useMemo(()=>p.reduce((Q,re,ae)=>ae>=pi?Q:Q+re.height,0),[p,pi]),gc=Xw(),kv=d.invert||h,dl=Je==="loading";fr.current=_.useMemo(()=>pi*U+vc,[pi,vc]),_.useEffect(()=>{ao.current=hc},[hc]),_.useEffect(()=>{zt(!0)},[]),_.useEffect(()=>{let Q=$n.current;if(Q){let re=Q.getBoundingClientRect().height;return fc(re),w(ae=>[{toastId:d.id,height:re,position:d.position},...ae]),()=>w(ae=>ae.filter(lt=>lt.toastId!==d.id))}},[w,d.id]),_.useLayoutEffect(()=>{if(!Y)return;let Q=$n.current,re=Q.style.height;Q.style.height="auto";let ae=Q.getBoundingClientRect().height;Q.style.height=re,fc(ae),w(lt=>lt.find(at=>at.toastId===d.id)?lt.map(at=>at.toastId===d.id?{...at,height:ae}:at):[{toastId:d.id,height:ae,position:d.position},...lt])},[Y,d.title,d.description,w,d.id]);let tn=_.useCallback(()=>{Fn(!0),lo(fr.current),w(Q=>Q.filter(re=>re.toastId!==d.id)),setTimeout(()=>{C(d)},cx)},[d,C,w,fr]);_.useEffect(()=>{if(d.promise&&Je==="loading"||d.duration===1/0||d.type==="loading")return;let Q;return k||v||$&&gc?(()=>{if(mc.current{var re;(re=d.onAutoClose)==null||re.call(d,d),tn()},ao.current)),()=>clearTimeout(Q)},[k,v,d,Je,$,gc,tn]),_.useEffect(()=>{d.delete&&tn()},[tn,d.delete]);function Cv(){var Q,re,ae;return L!=null&&L.loading?_.createElement("div",{className:dt(N==null?void 0:N.loader,(Q=d==null?void 0:d.classNames)==null?void 0:Q.loader,"sonner-loader"),"data-visible":Je==="loading"},L.loading):V?_.createElement("div",{className:dt(N==null?void 0:N.loader,(re=d==null?void 0:d.classNames)==null?void 0:re.loader,"sonner-loader"),"data-visible":Je==="loading"},V):_.createElement(Ww,{className:dt(N==null?void 0:N.loader,(ae=d==null?void 0:d.classNames)==null?void 0:ae.loader),visible:Je==="loading"})}return _.createElement("li",{tabIndex:0,ref:$n,className:dt(D,yv,N==null?void 0:N.toast,(t=d==null?void 0:d.classNames)==null?void 0:t.toast,N==null?void 0:N.default,N==null?void 0:N[Je],(n=d==null?void 0:d.classNames)==null?void 0:n[Je]),"data-sonner-toast":"","data-rich-colors":(r=d.richColors)!=null?r:b,"data-styled":!(d.jsx||d.unstyled||x),"data-mounted":Y,"data-promise":!!d.promise,"data-swiped":al,"data-removed":Ct,"data-visible":gv,"data-y-position":Sv,"data-x-position":Ev,"data-index":g,"data-front":vv,"data-swiping":Jt,"data-dismissible":dr,"data-type":Je,"data-invert":kv,"data-swipe-out":en,"data-swipe-direction":I,"data-expanded":!!(k||P&&Y),style:{"--index":g,"--toasts-before":g,"--z-index":E.length-g,"--offset":`${Ct?ul:fr.current}px`,"--initial-height":P?"auto":`${cr}px`,...O,...d.style},onDragEnd:()=>{ur(!1),F(null),pr.current=null},onPointerDown:Q=>{dl||!dr||(pc.current=new Date,lo(fr.current),Q.target.setPointerCapture(Q.pointerId),Q.target.tagName!=="BUTTON"&&(ur(!0),pr.current={x:Q.clientX,y:Q.clientY}))},onPointerUp:()=>{var Q,re,ae,lt;if(en||!dr)return;pr.current=null;let at=Number(((Q=$n.current)==null?void 0:Q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),nn=Number(((re=$n.current)==null?void 0:re.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Bn=new Date().getTime()-((ae=pc.current)==null?void 0:ae.getTime()),ut=X==="x"?at:nn,rn=Math.abs(ut)/Bn;if(Math.abs(ut)>=ux||rn>.11){lo(fr.current),(lt=d.onDismiss)==null||lt.call(d,d),ee(X==="x"?at>0?"right":"left":nn>0?"down":"up"),tn(),di(!0),fi(!1);return}ur(!1),F(null)},onPointerMove:Q=>{var re,ae,lt,at;if(!pr.current||!dr||((re=window.getSelection())==null?void 0:re.toString().length)>0)return;let nn=Q.clientY-pr.current.y,Bn=Q.clientX-pr.current.x,ut=(ae=e.swipeDirections)!=null?ae:dx(q);!X&&(Math.abs(Bn)>1||Math.abs(nn)>1)&&F(Math.abs(Bn)>Math.abs(nn)?"x":"y");let rn={x:0,y:0};X==="y"?(ut.includes("top")||ut.includes("bottom"))&&(ut.includes("top")&&nn<0||ut.includes("bottom")&&nn>0)&&(rn.y=nn):X==="x"&&(ut.includes("left")||ut.includes("right"))&&(ut.includes("left")&&Bn<0||ut.includes("right")&&Bn>0)&&(rn.x=Bn),(Math.abs(rn.x)>0||Math.abs(rn.y)>0)&&fi(!0),(lt=$n.current)==null||lt.style.setProperty("--swipe-amount-x",`${rn.x}px`),(at=$n.current)==null||at.style.setProperty("--swipe-amount-y",`${rn.y}px`)}},xv&&!d.jsx?_.createElement("button",{"aria-label":W,"data-disabled":dl,"data-close-button":!0,onClick:dl||!dr?()=>{}:()=>{var Q;tn(),(Q=d.onDismiss)==null||Q.call(d,d)},className:dt(N==null?void 0:N.closeButton,(o=d==null?void 0:d.classNames)==null?void 0:o.closeButton)},(i=L==null?void 0:L.close)!=null?i:Gw):null,d.jsx||y.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:_.createElement(_.Fragment,null,Je||d.icon||d.promise?_.createElement("div",{"data-icon":"",className:dt(N==null?void 0:N.icon,(s=d==null?void 0:d.classNames)==null?void 0:s.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Cv():null,d.type!=="loading"?d.icon||(L==null?void 0:L[Je])||Uw(Je):null):null,_.createElement("div",{"data-content":"",className:dt(N==null?void 0:N.content,(l=d==null?void 0:d.classNames)==null?void 0:l.content)},_.createElement("div",{"data-title":"",className:dt(N==null?void 0:N.title,(a=d==null?void 0:d.classNames)==null?void 0:a.title)},typeof d.title=="function"?d.title():d.title),d.description?_.createElement("div",{"data-description":"",className:dt(H,wv,N==null?void 0:N.description,(u=d==null?void 0:d.classNames)==null?void 0:u.description)},typeof d.description=="function"?d.description():d.description):null),y.isValidElement(d.cancel)?d.cancel:d.cancel&&Ai(d.cancel)?_.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||M,onClick:Q=>{var re,ae;Ai(d.cancel)&&dr&&((ae=(re=d.cancel).onClick)==null||ae.call(re,Q),tn())},className:dt(N==null?void 0:N.cancelButton,(c=d==null?void 0:d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,y.isValidElement(d.action)?d.action:d.action&&Ai(d.action)?_.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||B,onClick:Q=>{var re,ae;Ai(d.action)&&((ae=(re=d.action).onClick)==null||ae.call(re,Q),!Q.defaultPrevented&&tn())},className:dt(N==null?void 0:N.actionButton,(f=d==null?void 0:d.classNames)==null?void 0:f.actionButton)},d.action.label):null))};function Fd(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function px(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",l=i?sx:ix;function a(u){["top","right","bottom","left"].forEach(c=>{n[`${s}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=l:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}var hx=y.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:s,className:l,offset:a,mobileOffset:u,theme:c="light",richColors:f,duration:h,style:d,visibleToasts:x=ox,toastOptions:v,dir:w=Fd(),gap:m=ax,loadingIcon:p,icons:g,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:k}=e,[C,b]=_.useState([]),R=_.useMemo(()=>Array.from(new Set([r].concat(C.filter($=>$.position).map($=>$.position)))),[C,r]),[O,M]=_.useState([]),[B,D]=_.useState(!1),[H,A]=_.useState(!1),[q,U]=_.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=_.useRef(null),P=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=_.useRef(null),L=_.useRef(!1),W=_.useCallback($=>{b(X=>{var F;return(F=X.find(I=>I.id===$.id))!=null&&F.delete||ze.dismiss($.id),X.filter(({id:I})=>I!==$.id)})},[]);return _.useEffect(()=>ze.subscribe($=>{if($.dismiss){b(X=>X.map(F=>F.id===$.id?{...F,delete:!0}:F));return}setTimeout(()=>{Dh.flushSync(()=>{b(X=>{let F=X.findIndex(I=>I.id===$.id);return F!==-1?[...X.slice(0,F),{...X[F],...$},...X.slice(F+1)]:[$,...X]})})})}),[]),_.useEffect(()=>{if(c!=="system"){U(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?U("dark"):U("light")),typeof window>"u")return;let $=window.matchMedia("(prefers-color-scheme: dark)");try{$.addEventListener("change",({matches:X})=>{U(X?"dark":"light")})}catch{$.addListener(({matches:F})=>{try{U(F?"dark":"light")}catch(I){console.error(I)}})}},[c]),_.useEffect(()=>{C.length<=1&&D(!1)},[C]),_.useEffect(()=>{let $=X=>{var F,I;o.every(ee=>X[ee]||X.code===ee)&&(D(!0),(F=V.current)==null||F.focus()),X.code==="Escape"&&(document.activeElement===V.current||(I=V.current)!=null&&I.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[o]),_.useEffect(()=>{if(V.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,L.current=!1)}},[V.current]),_.createElement("section",{ref:t,"aria-label":`${E} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map(($,X)=>{var F;let[I,ee]=$.split("-");return C.length?_.createElement("ol",{key:$,dir:w==="auto"?Fd():w,tabIndex:-1,ref:V,className:l,"data-sonner-toaster":!0,"data-theme":q,"data-y-position":I,"data-lifted":B&&C.length>1&&!i,"data-x-position":ee,style:{"--front-toast-height":`${((F=O[0])==null?void 0:F.height)||0}px`,"--width":`${lx}px`,"--gap":`${m}px`,...d,...px(a,u)},onBlur:Y=>{L.current&&!Y.currentTarget.contains(Y.relatedTarget)&&(L.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||L.current||(L.current=!0,N.current=Y.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{H||D(!1)},onDragEnd:()=>D(!1),onPointerDown:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||A(!0)},onPointerUp:()=>A(!1)},C.filter(Y=>!Y.position&&X===0||Y.position===$).map((Y,zt)=>{var Ct,Fn;return _.createElement(fx,{key:Y.id,icons:g,index:zt,toast:Y,defaultRichColors:f,duration:(Ct=v==null?void 0:v.duration)!=null?Ct:h,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:x,closeButton:(Fn=v==null?void 0:v.closeButton)!=null?Fn:s,interacting:H,position:$,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:W,toasts:C.filter(Jt=>Jt.position==Y.position),heights:O.filter(Jt=>Jt.position==Y.position),setHeights:M,expandByDefault:i,gap:m,loadingIcon:p,expanded:B,pauseWhenPageIsHidden:k,swipeDirections:e.swipeDirections})})):null}))});const mx=({...e})=>{const{theme:t="system"}=Bw();return S.jsx(hx,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},vx=["top","right","bottom","left"],Mn=Math.min,Qe=Math.max,ks=Math.round,Li=Math.floor,At=e=>({x:e,y:e}),gx={left:"right",right:"left",bottom:"top",top:"bottom"},yx={start:"end",end:"start"};function Wa(e,t,n){return Qe(e,Mn(t,n))}function Xt(e,t){return typeof e=="function"?e(t):e}function qt(e){return e.split("-")[0]}function io(e){return e.split("-")[1]}function ec(e){return e==="x"?"y":"x"}function tc(e){return e==="y"?"height":"width"}const wx=new Set(["top","bottom"]);function Ot(e){return wx.has(qt(e))?"y":"x"}function nc(e){return ec(Ot(e))}function xx(e,t,n){n===void 0&&(n=!1);const r=io(e),o=nc(e),i=tc(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Cs(s)),[s,Cs(s)]}function Sx(e){const t=Cs(e);return[Ha(e),t,Ha(t)]}function Ha(e){return e.replace(/start|end/g,t=>yx[t])}const $d=["left","right"],Bd=["right","left"],Ex=["top","bottom"],kx=["bottom","top"];function Cx(e,t,n){switch(e){case"top":case"bottom":return n?t?Bd:$d:t?$d:Bd;case"left":case"right":return t?Ex:kx;default:return[]}}function bx(e,t,n,r){const o=io(e);let i=Cx(qt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ha)))),i}function Cs(e){return e.replace(/left|right|bottom|top/g,t=>gx[t])}function Px(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cm(e){return typeof e!="number"?Px(e):{top:e,right:e,bottom:e,left:e}}function bs(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ud(e,t,n){let{reference:r,floating:o}=e;const i=Ot(t),s=nc(t),l=tc(s),a=qt(t),u=i==="y",c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[l]/2-o[l]/2;let d;switch(a){case"top":d={x:c,y:r.y-o.height};break;case"bottom":d={x:c,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:f};break;case"left":d={x:r.x-o.width,y:f};break;default:d={x:r.x,y:r.y}}switch(io(t)){case"start":d[s]-=h*(n&&u?-1:1);break;case"end":d[s]+=h*(n&&u?-1:1);break}return d}const Tx=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=Ud(u,r,a),h=r,d={},x=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:c=0}=Xt(e,t)||{};if(u==null)return{};const f=Cm(c),h={x:n,y:r},d=nc(o),x=tc(d),v=await s.getDimensions(u),w=d==="y",m=w?"top":"left",p=w?"bottom":"right",g=w?"clientHeight":"clientWidth",E=i.reference[x]+i.reference[d]-h[d]-i.floating[x],k=h[d]-i.reference[d],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let b=C?C[g]:0;(!b||!await(s.isElement==null?void 0:s.isElement(C)))&&(b=l.floating[g]||i.floating[x]);const R=E/2-k/2,O=b/2-v[x]/2-1,M=Mn(f[m],O),B=Mn(f[p],O),D=M,H=b-v[x]-B,A=b/2-v[x]/2+R,q=Wa(D,A,H),U=!a.arrow&&io(o)!=null&&A!==q&&i.reference[x]/2-(AA<=0)){var B,D;const A=(((B=i.flip)==null?void 0:B.index)||0)+1,q=b[A];if(q&&(!(f==="alignment"?p!==Ot(q):!1)||M.every(P=>P.overflows[0]>0&&Ot(P.placement)===p)))return{data:{index:A,overflows:M},reset:{placement:q}};let U=(D=M.filter(V=>V.overflows[0]<=0).sort((V,P)=>V.overflows[1]-P.overflows[1])[0])==null?void 0:D.placement;if(!U)switch(d){case"bestFit":{var H;const V=(H=M.filter(P=>{if(C){const N=Ot(P.placement);return N===p||N==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(N=>N>0).reduce((N,L)=>N+L,0)]).sort((P,N)=>P[1]-N[1])[0])==null?void 0:H[0];V&&(U=V);break}case"initialPlacement":U=l;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function Vd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wd(e){return vx.some(t=>e[t]>=0)}const jx=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Xt(e,t);switch(r){case"referenceHidden":{const i=await qo(t,{...o,elementContext:"reference"}),s=Vd(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Wd(s)}}}case"escaped":{const i=await qo(t,{...o,altBoundary:!0}),s=Vd(i,n.floating);return{data:{escapedOffsets:s,escaped:Wd(s)}}}default:return{}}}}},bm=new Set(["left","top"]);async function Ox(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=qt(n),l=io(n),a=Ot(n)==="y",u=bm.has(s)?-1:1,c=i&&a?-1:1,f=Xt(t,e);let{mainAxis:h,crossAxis:d,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof x=="number"&&(d=l==="end"?x*-1:x),a?{x:d*c,y:h*u}:{x:h*u,y:d*c}}const _x=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,a=await Ox(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},Mx=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:s=!1,limiter:l={fn:w=>{let{x:m,y:p}=w;return{x:m,y:p}}},...a}=Xt(e,t),u={x:n,y:r},c=await qo(t,a),f=Ot(qt(o)),h=ec(f);let d=u[h],x=u[f];if(i){const w=h==="y"?"top":"left",m=h==="y"?"bottom":"right",p=d+c[w],g=d-c[m];d=Wa(p,d,g)}if(s){const w=f==="y"?"top":"left",m=f==="y"?"bottom":"right",p=x+c[w],g=x-c[m];x=Wa(p,x,g)}const v=l.fn({...t,[h]:d,[f]:x});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[h]:i,[f]:s}}}}}},Ax=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=Xt(e,t),c={x:n,y:r},f=Ot(o),h=ec(f);let d=c[h],x=c[f];const v=Xt(l,t),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(a){const g=h==="y"?"height":"width",E=i.reference[h]-i.floating[g]+w.mainAxis,k=i.reference[h]+i.reference[g]-w.mainAxis;dk&&(d=k)}if(u){var m,p;const g=h==="y"?"width":"height",E=bm.has(qt(o)),k=i.reference[f]-i.floating[g]+(E&&((m=s.offset)==null?void 0:m[f])||0)+(E?0:w.crossAxis),C=i.reference[f]+i.reference[g]+(E?0:((p=s.offset)==null?void 0:p[f])||0)-(E?w.crossAxis:0);xC&&(x=C)}return{[h]:d,[f]:x}}}},Lx=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:a=()=>{},...u}=Xt(e,t),c=await qo(t,u),f=qt(o),h=io(o),d=Ot(o)==="y",{width:x,height:v}=i.floating;let w,m;f==="top"||f==="bottom"?(w=f,m=h===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(m=f,w=h==="end"?"top":"bottom");const p=v-c.top-c.bottom,g=x-c.left-c.right,E=Mn(v-c[w],p),k=Mn(x-c[m],g),C=!t.middlewareData.shift;let b=E,R=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=g),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(b=p),C&&!h){const M=Qe(c.left,0),B=Qe(c.right,0),D=Qe(c.top,0),H=Qe(c.bottom,0);d?R=x-2*(M!==0||B!==0?M+B:Qe(c.left,c.right)):b=v-2*(D!==0||H!==0?D+H:Qe(c.top,c.bottom))}await a({...t,availableWidth:R,availableHeight:b});const O=await s.getDimensions(l.floating);return x!==O.width||v!==O.height?{reset:{rects:!0}}:{}}}};function qs(){return typeof window<"u"}function so(e){return Pm(e)?(e.nodeName||"").toLowerCase():"#document"}function Ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Dt(e){var t;return(t=(Pm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Pm(e){return qs()?e instanceof Node||e instanceof Ge(e).Node:!1}function Et(e){return qs()?e instanceof Element||e instanceof Ge(e).Element:!1}function Lt(e){return qs()?e instanceof HTMLElement||e instanceof Ge(e).HTMLElement:!1}function Hd(e){return!qs()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ge(e).ShadowRoot}const Dx=new Set(["inline","contents"]);function ci(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Dx.has(o)}const zx=new Set(["table","td","th"]);function Ix(e){return zx.has(so(e))}const Fx=[":popover-open",":modal"];function Zs(e){return Fx.some(t=>{try{return e.matches(t)}catch{return!1}})}const $x=["transform","translate","scale","rotate","perspective"],Bx=["transform","translate","scale","rotate","perspective","filter"],Ux=["paint","layout","strict","content"];function rc(e){const t=oc(),n=Et(e)?kt(e):e;return $x.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Bx.some(r=>(n.willChange||"").includes(r))||Ux.some(r=>(n.contain||"").includes(r))}function Vx(e){let t=An(e);for(;Lt(t)&&!Zr(t);){if(rc(t))return t;if(Zs(t))return null;t=An(t)}return null}function oc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Wx=new Set(["html","body","#document"]);function Zr(e){return Wx.has(so(e))}function kt(e){return Ge(e).getComputedStyle(e)}function Js(e){return Et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function An(e){if(so(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Hd(e)&&e.host||Dt(e);return Hd(t)?t.host:t}function Tm(e){const t=An(e);return Zr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Lt(t)&&ci(t)?t:Tm(t)}function Zo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Tm(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ge(o);if(i){const l=Qa(s);return t.concat(s,s.visualViewport||[],ci(o)?o:[],l&&n?Zo(l):[])}return t.concat(o,Zo(o,[],n))}function Qa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Nm(e){const t=kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Lt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=ks(n)!==i||ks(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function ic(e){return Et(e)?e:e.contextElement}function Lr(e){const t=ic(e);if(!Lt(t))return At(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Nm(t);let s=(i?ks(n.width):n.width)/r,l=(i?ks(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Hx=At(0);function Rm(e){const t=Ge(e);return!oc()||!t.visualViewport?Hx:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qx(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ge(e)?!1:t}function sr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ic(e);let s=At(1);t&&(r?Et(r)&&(s=Lr(r)):s=Lr(e));const l=Qx(i,n,r)?Rm(i):At(0);let a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,c=o.width/s.x,f=o.height/s.y;if(i){const h=Ge(i),d=r&&Et(r)?Ge(r):r;let x=h,v=Qa(x);for(;v&&r&&d!==x;){const w=Lr(v),m=v.getBoundingClientRect(),p=kt(v),g=m.left+(v.clientLeft+parseFloat(p.paddingLeft))*w.x,E=m.top+(v.clientTop+parseFloat(p.paddingTop))*w.y;a*=w.x,u*=w.y,c*=w.x,f*=w.y,a+=g,u+=E,x=Ge(v),v=Qa(x)}}return bs({width:c,height:f,x:a,y:u})}function sc(e,t){const n=Js(e).scrollLeft;return t?t.left+n:sr(Dt(e)).left+n}function jm(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:sc(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function Kx(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Dt(r),l=t?Zs(t.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=At(1);const c=At(0),f=Lt(r);if((f||!f&&!i)&&((so(r)!=="body"||ci(s))&&(a=Js(r)),Lt(r))){const d=sr(r);u=Lr(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}const h=s&&!f&&!i?jm(s,a,!0):At(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-a.scrollTop*u.y+c.y+h.y}}function Yx(e){return Array.from(e.getClientRects())}function Gx(e){const t=Dt(e),n=Js(e),r=e.ownerDocument.body,o=Qe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Qe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+sc(e);const l=-n.scrollTop;return kt(r).direction==="rtl"&&(s+=Qe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function Xx(e,t){const n=Ge(e),r=Dt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const u=oc();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}const qx=new Set(["absolute","fixed"]);function Zx(e,t){const n=sr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Lt(e)?Lr(e):At(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:l,x:a,y:u}}function Qd(e,t,n){let r;if(t==="viewport")r=Xx(e,n);else if(t==="document")r=Gx(Dt(e));else if(Et(t))r=Zx(t,n);else{const o=Rm(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return bs(r)}function Om(e,t){const n=An(e);return n===t||!Et(n)||Zr(n)?!1:kt(n).position==="fixed"||Om(n,t)}function Jx(e,t){const n=t.get(e);if(n)return n;let r=Zo(e,[],!1).filter(l=>Et(l)&&so(l)!=="body"),o=null;const i=kt(e).position==="fixed";let s=i?An(e):e;for(;Et(s)&&!Zr(s);){const l=kt(s),a=rc(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&qx.has(o.position)||ci(s)&&!a&&Om(e,s))?r=r.filter(c=>c!==s):o=l,s=An(s)}return t.set(e,r),r}function e1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Zs(t)?[]:Jx(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const f=Qd(t,c,o);return u.top=Qe(f.top,u.top),u.right=Mn(f.right,u.right),u.bottom=Mn(f.bottom,u.bottom),u.left=Qe(f.left,u.left),u},Qd(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function t1(e){const{width:t,height:n}=Nm(e);return{width:t,height:n}}function n1(e,t,n){const r=Lt(t),o=Dt(t),i=n==="fixed",s=sr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=At(0);function u(){a.x=sc(o)}if(r||!r&&!i)if((so(t)!=="body"||ci(o))&&(l=Js(t)),r){const d=sr(t,!0,i,t);a.x=d.x+t.clientLeft,a.y=d.y+t.clientTop}else o&&u();i&&!r&&o&&u();const c=o&&!r&&!i?jm(o,l):At(0),f=s.left+l.scrollLeft-a.x-c.x,h=s.top+l.scrollTop-a.y-c.y;return{x:f,y:h,width:s.width,height:s.height}}function Vl(e){return kt(e).position==="static"}function Kd(e,t){if(!Lt(e)||kt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Dt(e)===n&&(n=n.ownerDocument.body),n}function _m(e,t){const n=Ge(e);if(Zs(e))return n;if(!Lt(e)){let o=An(e);for(;o&&!Zr(o);){if(Et(o)&&!Vl(o))return o;o=An(o)}return n}let r=Kd(e,t);for(;r&&Ix(r)&&Vl(r);)r=Kd(r,t);return r&&Zr(r)&&Vl(r)&&!rc(r)?n:r||Vx(e)||n}const r1=async function(e){const t=this.getOffsetParent||_m,n=this.getDimensions,r=await n(e.floating);return{reference:n1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function o1(e){return kt(e).direction==="rtl"}const i1={convertOffsetParentRelativeRectToViewportRelativeRect:Kx,getDocumentElement:Dt,getClippingRect:e1,getOffsetParent:_m,getElementRects:r1,getClientRects:Yx,getDimensions:t1,getScale:Lr,isElement:Et,isRTL:o1};function Mm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function s1(e,t){let n=null,r;const o=Dt(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const u=e.getBoundingClientRect(),{left:c,top:f,width:h,height:d}=u;if(l||t(),!h||!d)return;const x=Li(f),v=Li(o.clientWidth-(c+h)),w=Li(o.clientHeight-(f+d)),m=Li(c),g={rootMargin:-x+"px "+-v+"px "+-w+"px "+-m+"px",threshold:Qe(0,Mn(1,a))||1};let E=!0;function k(C){const b=C[0].intersectionRatio;if(b!==a){if(!E)return s();b?s(!1,b):r=setTimeout(()=>{s(!1,1e-7)},1e3)}b===1&&!Mm(u,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(k,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,g)}n.observe(e)}return s(!0),i}function l1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=ic(e),c=o||i?[...u?Zo(u):[],...Zo(t)]:[];c.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const f=u&&l?s1(u,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(m=>{let[p]=m;p&&p.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var g;(g=d)==null||g.observe(t)})),n()}),u&&!a&&d.observe(u),d.observe(t));let x,v=a?sr(e):null;a&&w();function w(){const m=sr(e);v&&!Mm(v,m)&&n(),v=m,x=requestAnimationFrame(w)}return n(),()=>{var m;c.forEach(p=>{o&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),f==null||f(),(m=d)==null||m.disconnect(),d=null,a&&cancelAnimationFrame(x)}}const a1=_x,u1=Mx,c1=Rx,d1=Lx,f1=jx,Yd=Nx,p1=Ax,h1=(e,t,n)=>{const r=new Map,o={platform:i1,...n},i={...o.platform,_c:r};return Tx(e,t,{...o,platform:i})};var m1=typeof document<"u",v1=function(){},qi=m1?y.useLayoutEffect:v1;function Ps(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(!Ps(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)&&!Ps(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Am(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gd(e,t){const n=Am(e);return Math.round(t*n)/n}function Wl(e){const t=y.useRef(e);return qi(()=>{t.current=e}),t}function g1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[c,f]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,d]=y.useState(r);Ps(h,r)||d(r);const[x,v]=y.useState(null),[w,m]=y.useState(null),p=y.useCallback(P=>{P!==C.current&&(C.current=P,v(P))},[]),g=y.useCallback(P=>{P!==b.current&&(b.current=P,m(P))},[]),E=i||x,k=s||w,C=y.useRef(null),b=y.useRef(null),R=y.useRef(c),O=a!=null,M=Wl(a),B=Wl(o),D=Wl(u),H=y.useCallback(()=>{if(!C.current||!b.current)return;const P={placement:t,strategy:n,middleware:h};B.current&&(P.platform=B.current),h1(C.current,b.current,P).then(N=>{const L={...N,isPositioned:D.current!==!1};A.current&&!Ps(R.current,L)&&(R.current=L,ai.flushSync(()=>{f(L)}))})},[h,t,n,B,D]);qi(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(P=>({...P,isPositioned:!1})))},[u]);const A=y.useRef(!1);qi(()=>(A.current=!0,()=>{A.current=!1}),[]),qi(()=>{if(E&&(C.current=E),k&&(b.current=k),E&&k){if(M.current)return M.current(E,k,H);H()}},[E,k,H,M,O]);const q=y.useMemo(()=>({reference:C,floating:b,setReference:p,setFloating:g}),[p,g]),U=y.useMemo(()=>({reference:E,floating:k}),[E,k]),V=y.useMemo(()=>{const P={position:n,left:0,top:0};if(!U.floating)return P;const N=Gd(U.floating,c.x),L=Gd(U.floating,c.y);return l?{...P,transform:"translate("+N+"px, "+L+"px)",...Am(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:L}},[n,l,U.floating,c.x,c.y]);return y.useMemo(()=>({...c,update:H,refs:q,elements:U,floatingStyles:V}),[c,H,q,U,V])}const y1=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?Yd({element:r.current,padding:o}).fn(n):{}:r?Yd({element:r,padding:o}).fn(n):{}}}},w1=(e,t)=>({...a1(e),options:[e,t]}),x1=(e,t)=>({...u1(e),options:[e,t]}),S1=(e,t)=>({...p1(e),options:[e,t]}),E1=(e,t)=>({...c1(e),options:[e,t]}),k1=(e,t)=>({...d1(e),options:[e,t]}),C1=(e,t)=>({...f1(e),options:[e,t]}),b1=(e,t)=>({...y1(e),options:[e,t]});var P1="Arrow",Lm=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return S.jsx(We.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});Lm.displayName=P1;var T1=Lm;function N1(e){const[t,n]=y.useState(void 0);return _n(()=>{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 s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Dm="Popper",[zm,Im]=Qs(Dm),[TE,Fm]=zm(Dm),$m="PopperAnchor",Bm=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Fm($m,n),s=y.useRef(null),l=St(t,s);return y.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:S.jsx(We.div,{...o,ref:l})});Bm.displayName=$m;var lc="PopperContent",[R1,j1]=zm(lc),Um=y.forwardRef((e,t)=>{var Y,zt,Ct,Fn,Jt,ur;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:x,...v}=e,w=Fm(lc,n),[m,p]=y.useState(null),g=St(t,en=>p(en)),[E,k]=y.useState(null),C=N1(E),b=(C==null?void 0:C.width)??0,R=(C==null?void 0:C.height)??0,O=r+(i!=="center"?"-"+i:""),M=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},B=Array.isArray(u)?u:[u],D=B.length>0,H={padding:M,boundary:B.filter(_1),altBoundary:D},{refs:A,floatingStyles:q,placement:U,isPositioned:V,middlewareData:P}=g1({strategy:"fixed",placement:O,whileElementsMounted:(...en)=>l1(...en,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[w1({mainAxis:o+R,alignmentAxis:s}),a&&x1({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?S1():void 0,...H}),a&&E1({...H}),k1({...H,apply:({elements:en,rects:di,availableWidth:al,availableHeight:fi})=>{const{width:ul,height:lo}=di.reference,cr=en.floating.style;cr.setProperty("--radix-popper-available-width",`${al}px`),cr.setProperty("--radix-popper-available-height",`${fi}px`),cr.setProperty("--radix-popper-anchor-width",`${ul}px`),cr.setProperty("--radix-popper-anchor-height",`${lo}px`)}}),E&&b1({element:E,padding:l}),M1({arrowWidth:b,arrowHeight:R}),h&&C1({strategy:"referenceHidden",...H})]}),[N,L]=Hm(U),W=On(x);_n(()=>{V&&(W==null||W())},[V,W]);const $=(Y=P.arrow)==null?void 0:Y.x,X=(zt=P.arrow)==null?void 0:zt.y,F=((Ct=P.arrow)==null?void 0:Ct.centerOffset)!==0,[I,ee]=y.useState();return _n(()=>{m&&ee(window.getComputedStyle(m).zIndex)},[m]),S.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:V?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:I,"--radix-popper-transform-origin":[(Fn=P.transformOrigin)==null?void 0:Fn.x,(Jt=P.transformOrigin)==null?void 0:Jt.y].join(" "),...((ur=P.hide)==null?void 0:ur.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:S.jsx(R1,{scope:n,placedSide:N,onArrowChange:k,arrowX:$,arrowY:X,shouldHideArrow:F,children:S.jsx(We.div,{"data-side":N,"data-align":L,...v,ref:g,style:{...v.style,animation:V?void 0:"none"}})})})});Um.displayName=lc;var Vm="PopperArrow",O1={top:"bottom",right:"left",bottom:"top",left:"right"},Wm=y.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=j1(Vm,r),s=O1[i.placedSide];return S.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:S.jsx(T1,{...o,ref:n,style:{...o.style,display:"block"}})})});Wm.displayName=Vm;function _1(e){return e!==null}var M1=e=>({name:"transformOrigin",options:e,fn(t){var w,m,p;const{placement:n,rects:r,middlewareData:o}=t,s=((w=o.arrow)==null?void 0:w.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,c]=Hm(n),f={start:"0%",center:"50%",end:"100%"}[c],h=(((m=o.arrow)==null?void 0:m.x)??0)+l/2,d=(((p=o.arrow)==null?void 0:p.y)??0)+a/2;let x="",v="";return u==="bottom"?(x=s?f:`${h}px`,v=`${-a}px`):u==="top"?(x=s?f:`${h}px`,v=`${r.floating.height+a}px`):u==="right"?(x=`${-a}px`,v=s?f:`${d}px`):u==="left"&&(x=`${r.floating.width+a}px`,v=s?f:`${d}px`),{data:{x,y:v}}}});function Hm(e){const[t,n="center"]=e.split("-");return[t,n]}var A1=Bm,L1=Um,D1=Wm,[el,NE]=Qs("Tooltip",[Im]),ac=Im(),Qm="TooltipProvider",z1=700,Xd="tooltip.open",[I1,Km]=el(Qm),Ym=e=>{const{__scopeTooltip:t,delayDuration:n=z1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=y.useRef(!0),l=y.useRef(!1),a=y.useRef(0);return y.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),S.jsx(I1,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:y.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};Ym.displayName=Qm;var Gm="Tooltip",[RE,tl]=el(Gm),Ka="TooltipTrigger",F1=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tl(Ka,n),i=Km(Ka,n),s=ac(n),l=y.useRef(null),a=St(t,l,o.onTriggerChange),u=y.useRef(!1),c=y.useRef(!1),f=y.useCallback(()=>u.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),S.jsx(A1,{asChild:!0,...s,children:S.jsx(We.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:ye(e.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:ye(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:ye(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ye(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ye(e.onBlur,o.onClose),onClick:ye(e.onClick,o.onClose)})})});F1.displayName=Ka;var $1="TooltipPortal",[jE,B1]=el($1,{forceMount:void 0}),Jr="TooltipContent",Xm=y.forwardRef((e,t)=>{const n=B1(Jr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=tl(Jr,e.__scopeTooltip);return S.jsx(Gu,{present:r||s.open,children:s.disableHoverableContent?S.jsx(qm,{side:o,...i,ref:t}):S.jsx(U1,{side:o,...i,ref:t})})}),U1=y.forwardRef((e,t)=>{const n=tl(Jr,e.__scopeTooltip),r=Km(Jr,e.__scopeTooltip),o=y.useRef(null),i=St(t,o),[s,l]=y.useState(null),{trigger:a,onClose:u}=n,c=o.current,{onPointerInTransitChange:f}=r,h=y.useCallback(()=>{l(null),f(!1)},[f]),d=y.useCallback((x,v)=>{const w=x.currentTarget,m={x:x.clientX,y:x.clientY},p=K1(m,w.getBoundingClientRect()),g=Y1(m,p),E=G1(v.getBoundingClientRect()),k=q1([...g,...E]);l(k),f(!0)},[f]);return y.useEffect(()=>()=>h(),[h]),y.useEffect(()=>{if(a&&c){const x=w=>d(w,c),v=w=>d(w,a);return a.addEventListener("pointerleave",x),c.addEventListener("pointerleave",v),()=>{a.removeEventListener("pointerleave",x),c.removeEventListener("pointerleave",v)}}},[a,c,d,h]),y.useEffect(()=>{if(s){const x=v=>{const w=v.target,m={x:v.clientX,y:v.clientY},p=(a==null?void 0:a.contains(w))||(c==null?void 0:c.contains(w)),g=!X1(m,s);p?h():g&&(h(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[a,c,s,u,h]),S.jsx(qm,{...e,ref:i})}),[V1,W1]=el(Gm,{isInside:!1}),H1=s0("TooltipContent"),qm=y.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=tl(Jr,n),u=ac(n),{onClose:c}=a;return y.useEffect(()=>(document.addEventListener(Xd,c),()=>document.removeEventListener(Xd,c)),[c]),y.useEffect(()=>{if(a.trigger){const f=h=>{const d=h.target;d!=null&&d.contains(a.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,c]),S.jsx(Yu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:S.jsxs(L1,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.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)"},children:[S.jsx(H1,{children:r}),S.jsx(V1,{scope:n,isInside:!0,children:S.jsx(O0,{id:a.contentId,role:"tooltip",children:o||r})})]})})});Xm.displayName=Jr;var Zm="TooltipArrow",Q1=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ac(n);return W1(Zm,n).isInside?null:S.jsx(D1,{...o,...r,ref:t})});Q1.displayName=Zm;function K1(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 Y1(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 G1(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 X1(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=h>r&&n<(f-u)*(r-c)/(h-c)+u&&(o=!o)}return o}function q1(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),Z1(t)}function Z1(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.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],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.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)}var J1=Ym,Jm=Xm;const eS=J1,tS=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>S.jsx(Jm,{ref:r,sideOffset:t,className:In("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}));tS.displayName=Jm.displayName;var nl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},rl=typeof window>"u"||"Deno"in globalThis;function pt(){}function nS(e,t){return typeof e=="function"?e(t):e}function rS(e){return typeof e=="number"&&e>=0&&e!==1/0}function oS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ya(e,t){return typeof e=="function"?e(t):e}function iS(e,t){return typeof e=="function"?e(t):e}function qd(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==uc(s,t.options))return!1}else if(!ei(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||i&&!i(t))}function Zd(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Jo(t.options.mutationKey)!==Jo(i))return!1}else if(!ei(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function uc(e,t){return((t==null?void 0:t.queryKeyHashFn)||Jo)(e)}function Jo(e){return JSON.stringify(e,(t,n)=>Ga(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ei(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ei(e[n],t[n])):!1}function ev(e,t){if(e===t)return e;const n=Jd(e)&&Jd(t);if(n||Ga(e)&&Ga(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,l=n?[]:{},a=new Set(r);let u=0;for(let c=0;c{setTimeout(t,e)})}function lS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ev(e,t):t}function aS(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function uS(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var cc=Symbol();function tv(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===cc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Kn,pn,zr,hf,cS=(hf=class extends nl{constructor(){super();te(this,Kn);te(this,pn);te(this,zr);K(this,zr,t=>{if(!rl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,pn)||this.setEventListener(T(this,zr))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,pn))==null||t.call(this),K(this,pn,void 0))}setEventListener(t){var n;K(this,zr,t),(n=T(this,pn))==null||n.call(this),K(this,pn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){T(this,Kn)!==t&&(K(this,Kn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,Kn)=="boolean"?T(this,Kn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Kn=new WeakMap,pn=new WeakMap,zr=new WeakMap,hf),nv=new cS,Ir,hn,Fr,mf,dS=(mf=class extends nl{constructor(){super();te(this,Ir,!0);te(this,hn);te(this,Fr);K(this,Fr,t=>{if(!rl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){T(this,hn)||this.setEventListener(T(this,Fr))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,hn))==null||t.call(this),K(this,hn,void 0))}setEventListener(t){var n;K(this,Fr,t),(n=T(this,hn))==null||n.call(this),K(this,hn,t(this.setOnline.bind(this)))}setOnline(t){T(this,Ir)!==t&&(K(this,Ir,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return T(this,Ir)}},Ir=new WeakMap,hn=new WeakMap,Fr=new WeakMap,mf),Ts=new dS;function fS(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function pS(e){return Math.min(1e3*2**e,3e4)}function rv(e){return(e??"online")==="online"?Ts.isOnline():!0}var ov=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Hl(e){return e instanceof ov}function iv(e){let t=!1,n=0,r=!1,o;const i=fS(),s=v=>{var w;r||(h(new ov(v)),(w=e.abort)==null||w.call(e))},l=()=>{t=!0},a=()=>{t=!1},u=()=>nv.isFocused()&&(e.networkMode==="always"||Ts.isOnline())&&e.canRun(),c=()=>rv(e.networkMode)&&e.canRun(),f=v=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,v),o==null||o(),i.resolve(v))},h=v=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,v),o==null||o(),i.reject(v))},d=()=>new Promise(v=>{var w;o=m=>{(r||u())&&v(m)},(w=e.onPause)==null||w.call(e)}).then(()=>{var v;o=void 0,r||(v=e.onContinue)==null||v.call(e)}),x=()=>{if(r)return;let v;const w=n===0?e.initialPromise:void 0;try{v=w??e.fn()}catch(m){v=Promise.reject(m)}Promise.resolve(v).then(f).catch(m=>{var C;if(r)return;const p=e.retry??(rl?0:3),g=e.retryDelay??pS,E=typeof g=="function"?g(n,m):g,k=p===!0||typeof p=="number"&&nu()?void 0:d()).then(()=>{t?h(m):x()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:l,continueRetry:a,canStart:c,start:()=>(c()?x():d().then(x),i)}}var hS=e=>setTimeout(e,0);function mS(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=hS;const i=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||s()}return a},batchCalls:l=>(...a)=>{i(()=>{l(...a)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Me=mS(),Yn,vf,sv=(vf=class{constructor(){te(this,Yn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),rS(this.gcTime)&&K(this,Yn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(rl?1/0:5*60*1e3))}clearGcTimeout(){T(this,Yn)&&(clearTimeout(T(this,Yn)),K(this,Yn,void 0))}},Yn=new WeakMap,vf),$r,Gn,et,Xn,Ne,ti,qn,ht,Ft,gf,vS=(gf=class extends sv{constructor(t){super();te(this,ht);te(this,$r);te(this,Gn);te(this,et);te(this,Xn);te(this,Ne);te(this,ti);te(this,qn);K(this,qn,!1),K(this,ti,t.defaultOptions),this.setOptions(t.options),this.observers=[],K(this,Xn,t.client),K(this,et,T(this,Xn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,K(this,$r,yS(this.options)),this.state=t.state??T(this,$r),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,Ne))==null?void 0:t.promise}setOptions(t){this.options={...T(this,ti),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,et).remove(this)}setData(t,n){const r=lS(this.state.data,t,this.options);return be(this,ht,Ft).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){be(this,ht,Ft).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=T(this,Ne))==null?void 0:r.promise;return(o=T(this,Ne))==null||o.cancel(t),n?n.then(pt).catch(pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,$r))}isActive(){return this.observers.some(t=>iS(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ya(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!oS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Ne))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Ne))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,et).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,Ne)&&(T(this,qn)?T(this,Ne).cancel({revert:!0}):T(this,Ne).cancelRetry()),this.scheduleGc()),T(this,et).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||be(this,ht,Ft).call(this,{type:"invalidate"})}fetch(t,n){var u,c,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,Ne))return T(this,Ne).continueRetry(),T(this,Ne).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(d=>d.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(K(this,qn,!0),r.signal)})},i=()=>{const h=tv(this.options,n),x=(()=>{const v={client:T(this,Xn),queryKey:this.queryKey,meta:this.meta};return o(v),v})();return K(this,qn,!1),this.options.persister?this.options.persister(h,x,this):h(x)},l=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,Xn),state:this.state,fetchFn:i};return o(h),h})();(u=this.options.behavior)==null||u.onFetch(l,this),K(this,Gn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=l.fetchOptions)==null?void 0:c.meta))&&be(this,ht,Ft).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta});const a=h=>{var d,x,v,w;Hl(h)&&h.silent||be(this,ht,Ft).call(this,{type:"error",error:h}),Hl(h)||((x=(d=T(this,et).config).onError)==null||x.call(d,h,this),(w=(v=T(this,et).config).onSettled)==null||w.call(v,this.state.data,h,this)),this.scheduleGc()};return K(this,Ne,iv({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var d,x,v,w;if(h===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(m){a(m);return}(x=(d=T(this,et).config).onSuccess)==null||x.call(d,h,this),(w=(v=T(this,et).config).onSettled)==null||w.call(v,h,this.state.error,this),this.scheduleGc()},onError:a,onFail:(h,d)=>{be(this,ht,Ft).call(this,{type:"failed",failureCount:h,error:d})},onPause:()=>{be(this,ht,Ft).call(this,{type:"pause"})},onContinue:()=>{be(this,ht,Ft).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),T(this,Ne).start()}},$r=new WeakMap,Gn=new WeakMap,et=new WeakMap,Xn=new WeakMap,Ne=new WeakMap,ti=new WeakMap,qn=new WeakMap,ht=new WeakSet,Ft=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...gS(r.data,this.options),fetchMeta:t.meta??null};case"success":return K(this,Gn,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Hl(o)&&o.revert&&T(this,Gn)?{...T(this,Gn),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Me.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,et).notify({query:this,type:"updated",action:t})})},gf);function gS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:rv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function yS(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Tt,yf,wS=(yf=class extends nl{constructor(t={}){super();te(this,Tt);this.config=t,K(this,Tt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??uc(o,n);let s=this.get(i);return s||(s=new vS({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){T(this,Tt).has(t.queryHash)||(T(this,Tt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,Tt).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,Tt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Me.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Tt).get(t)}getAll(){return[...T(this,Tt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>qd(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>qd(t,r)):n}notify(t){Me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Me.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Me.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Tt=new WeakMap,yf),Nt,Oe,Zn,Rt,an,wf,xS=(wf=class extends sv{constructor(t){super();te(this,Rt);te(this,Nt);te(this,Oe);te(this,Zn);this.mutationId=t.mutationId,K(this,Oe,t.mutationCache),K(this,Nt,[]),this.state=t.state||SS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,Nt).includes(t)||(T(this,Nt).push(t),this.clearGcTimeout(),T(this,Oe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){K(this,Nt,T(this,Nt).filter(n=>n!==t)),this.scheduleGc(),T(this,Oe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,Nt).length||(this.state.status==="pending"?this.scheduleGc():T(this,Oe).remove(this))}continue(){var t;return((t=T(this,Zn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,l,a,u,c,f,h,d,x,v,w,m,p,g,E,k,C,b,R;const n=()=>{be(this,Rt,an).call(this,{type:"continue"})};K(this,Zn,iv({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,M)=>{be(this,Rt,an).call(this,{type:"failed",failureCount:O,error:M})},onPause:()=>{be(this,Rt,an).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Oe).canRun(this)}));const r=this.state.status==="pending",o=!T(this,Zn).canStart();try{if(r)n();else{be(this,Rt,an).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=T(this,Oe).config).onMutate)==null?void 0:s.call(i,t,this));const M=await((a=(l=this.options).onMutate)==null?void 0:a.call(l,t));M!==this.state.context&&be(this,Rt,an).call(this,{type:"pending",context:M,variables:t,isPaused:o})}const O=await T(this,Zn).start();return await((c=(u=T(this,Oe).config).onSuccess)==null?void 0:c.call(u,O,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,O,t,this.state.context)),await((x=(d=T(this,Oe).config).onSettled)==null?void 0:x.call(d,O,null,this.state.variables,this.state.context,this)),await((w=(v=this.options).onSettled)==null?void 0:w.call(v,O,null,t,this.state.context)),be(this,Rt,an).call(this,{type:"success",data:O}),O}catch(O){try{throw await((p=(m=T(this,Oe).config).onError)==null?void 0:p.call(m,O,t,this.state.context,this)),await((E=(g=this.options).onError)==null?void 0:E.call(g,O,t,this.state.context)),await((C=(k=T(this,Oe).config).onSettled)==null?void 0:C.call(k,void 0,O,this.state.variables,this.state.context,this)),await((R=(b=this.options).onSettled)==null?void 0:R.call(b,void 0,O,t,this.state.context)),O}finally{be(this,Rt,an).call(this,{type:"error",error:O})}}finally{T(this,Oe).runNext(this)}}},Nt=new WeakMap,Oe=new WeakMap,Zn=new WeakMap,Rt=new WeakSet,an=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Me.batch(()=>{T(this,Nt).forEach(r=>{r.onMutationUpdate(t)}),T(this,Oe).notify({mutation:this,type:"updated",action:t})})},wf);function SS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ut,mt,ni,xf,ES=(xf=class extends nl{constructor(t={}){super();te(this,Ut);te(this,mt);te(this,ni);this.config=t,K(this,Ut,new Set),K(this,mt,new Map),K(this,ni,0)}build(t,n,r){const o=new xS({mutationCache:this,mutationId:++hi(this,ni)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){T(this,Ut).add(t);const n=Di(t);if(typeof n=="string"){const r=T(this,mt).get(n);r?r.push(t):T(this,mt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,Ut).delete(t)){const n=Di(t);if(typeof n=="string"){const r=T(this,mt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&T(this,mt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Di(t);if(typeof n=="string"){const r=T(this,mt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Di(t);if(typeof n=="string"){const o=(r=T(this,mt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Me.batch(()=>{T(this,Ut).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,Ut).clear(),T(this,mt).clear()})}getAll(){return Array.from(T(this,Ut))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Zd(n,r))}findAll(t={}){return this.getAll().filter(n=>Zd(t,n))}notify(t){Me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Me.batch(()=>Promise.all(t.map(n=>n.continue().catch(pt))))}},Ut=new WeakMap,mt=new WeakMap,ni=new WeakMap,xf);function Di(e){var t;return(t=e.options.scope)==null?void 0:t.id}function tf(e){return{onFetch:(t,n)=>{var c,f,h,d,x;const r=t.options,o=(h=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,i=((d=t.state.data)==null?void 0:d.pages)||[],s=((x=t.state.data)==null?void 0:x.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let v=!1;const w=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},m=tv(t.options,t.fetchOptions),p=async(g,E,k)=>{if(v)return Promise.reject();if(E==null&&g.pages.length)return Promise.resolve(g);const b=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:E,direction:k?"backward":"forward",meta:t.options.meta};return w(B),B})(),R=await m(b),{maxPages:O}=t.options,M=k?uS:aS;return{pages:M(g.pages,R,O),pageParams:M(g.pageParams,E,O)}};if(o&&i.length){const g=o==="backward",E=g?kS:nf,k={pages:i,pageParams:s},C=E(r,k);l=await p(k,C,g)}else{const g=e??i.length;do{const E=a===0?s[0]??r.initialPageParam:nf(r,l);if(a>0&&E==null)break;l=await p(l,E),a++}while(a{var v,w;return(w=(v=t.options).persister)==null?void 0:w.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function nf(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function kS(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var pe,mn,vn,Br,Ur,gn,Vr,Wr,Sf,CS=(Sf=class{constructor(e={}){te(this,pe);te(this,mn);te(this,vn);te(this,Br);te(this,Ur);te(this,gn);te(this,Vr);te(this,Wr);K(this,pe,e.queryCache||new wS),K(this,mn,e.mutationCache||new ES),K(this,vn,e.defaultOptions||{}),K(this,Br,new Map),K(this,Ur,new Map),K(this,gn,0)}mount(){hi(this,gn)._++,T(this,gn)===1&&(K(this,Vr,nv.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,pe).onFocus())})),K(this,Wr,Ts.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,pe).onOnline())})))}unmount(){var e,t;hi(this,gn)._--,T(this,gn)===0&&((e=T(this,Vr))==null||e.call(this),K(this,Vr,void 0),(t=T(this,Wr))==null||t.call(this),K(this,Wr,void 0))}isFetching(e){return T(this,pe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,mn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,pe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,pe).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ya(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return T(this,pe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=T(this,pe).get(r.queryHash),i=o==null?void 0:o.state.data,s=nS(t,i);if(s!==void 0)return T(this,pe).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Me.batch(()=>T(this,pe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,pe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,pe);Me.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,pe);return Me.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Me.batch(()=>T(this,pe).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(pt).catch(pt)}invalidateQueries(e,t={}){return Me.batch(()=>(T(this,pe).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Me.batch(()=>T(this,pe).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(pt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(pt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,pe).build(this,t);return n.isStaleByTime(Ya(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(pt).catch(pt)}fetchInfiniteQuery(e){return e.behavior=tf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(pt).catch(pt)}ensureInfiniteQueryData(e){return e.behavior=tf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ts.isOnline()?T(this,mn).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,pe)}getMutationCache(){return T(this,mn)}getDefaultOptions(){return T(this,vn)}setDefaultOptions(e){K(this,vn,e)}setQueryDefaults(e,t){T(this,Br).set(Jo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Br).values()],n={};return t.forEach(r=>{ei(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){T(this,Ur).set(Jo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Ur).values()],n={};return t.forEach(r=>{ei(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,vn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=uc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===cc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,vn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,pe).clear(),T(this,mn).clear()}},pe=new WeakMap,mn=new WeakMap,vn=new WeakMap,Br=new WeakMap,Ur=new WeakMap,gn=new WeakMap,Vr=new WeakMap,Wr=new WeakMap,Sf),bS=y.createContext(void 0),PS=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.jsx(bS.Provider,{value:e,children:t}));/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ns(){return Ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function lv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function NS(){return Math.random().toString(36).substr(2,8)}function of(e,t){return{usr:e.state,key:e.key,idx:t}}function Xa(e,t,n,r){return n===void 0&&(n=null),Ns({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ol(t):t,{state:n,key:t&&t.key||r||NS()})}function av(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ol(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function RS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=xn.Pop,a=null,u=c();u==null&&(u=0,s.replaceState(Ns({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){l=xn.Pop;let w=c(),m=w==null?null:w-u;u=w,a&&a({action:l,location:v.location,delta:m})}function h(w,m){l=xn.Push;let p=Xa(v.location,w,m);u=c()+1;let g=of(p,u),E=v.createHref(p);try{s.pushState(g,"",E)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(E)}i&&a&&a({action:l,location:v.location,delta:1})}function d(w,m){l=xn.Replace;let p=Xa(v.location,w,m);u=c();let g=of(p,u),E=v.createHref(p);s.replaceState(g,"",E),i&&a&&a({action:l,location:v.location,delta:0})}function x(w){let m=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof w=="string"?w:av(w);return p=p.replace(/ $/,"%20"),Ve(m,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,m)}let v={get action(){return l},get location(){return e(o,s)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(rf,f),a=w,()=>{o.removeEventListener(rf,f),a=null}},createHref(w){return t(o,w)},createURL:x,encodeLocation(w){let m=x(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:d,go(w){return s.go(w)}};return v}var sf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(sf||(sf={}));function jS(e,t,n){return n===void 0&&(n="/"),OS(e,t,n,!1)}function OS(e,t,n,r){let o=typeof t=="string"?ol(t):t,i=dv(o.pathname||"/",n);if(i==null)return null;let s=uv(e);_S(s);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(Ve(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Dr([r,a.relativePath]),c=n.concat(a);i.children&&i.children.length>0&&(Ve(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),uv(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:FS(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of cv(i.path))o(i,s,a)}),t}function cv(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=cv(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function _S(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:$S(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const MS=/^:[\w-]+$/,AS=3,LS=2,DS=1,zS=10,IS=-2,lf=e=>e==="*";function FS(e,t){let n=e.split("/"),r=n.length;return n.some(lf)&&(r+=IS),t&&(r+=LS),n.filter(o=>!lf(o)).reduce((o,i)=>o+(MS.test(i)?AS:i===""?DS:zS),r)}function $S(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function BS(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let l=0;l{let{paramName:h,isOptional:d}=c;if(h==="*"){let v=l[f]||"";s=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const x=l[f];return d&&!x?u[h]=void 0:u[h]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function US(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),lv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function VS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return lv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function dv(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Dr=e=>e.join("/").replace(/\/\/+/g,"/"),WS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function HS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const fv=["post","put","patch","delete"];new Set(fv);const QS=["get",...fv];new Set(QS);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Rs(){return Rs=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},w,{params:Object.assign({},l,w.params),pathname:Dr([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:Dr([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&v?y.createElement(il.Provider,{value:{location:Rs({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:xn.Pop}},v):v}function qS(){let e=iE(),t=HS(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:o},n):null,null)}const ZS=y.createElement(qS,null);class JS extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(sl.Provider,{value:this.props.routeContext},y.createElement(hv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function eE(e){let{routeContext:t,match:n,children:r}=e,o=y.useContext(KS);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(sl.Provider,{value:t},r)}function tE(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let c=s.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);c>=0||Ve(!1),s=s.slice(0,Math.min(s.length,c+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,f,h)=>{let d,x=!1,v=null,w=null;n&&(d=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||ZS,a&&(u<0&&h===0?(x=!0,w=null):u===h&&(x=!0,w=f.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,h+1)),p=()=>{let g;return d?g=v:x?g=w:f.route.Component?g=y.createElement(f.route.Component,null):f.route.element?g=f.route.element:g=c,y.createElement(eE,{match:f,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:g})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?y.createElement(JS,{location:n.location,revalidation:n.revalidation,component:v,error:d,children:p(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):p()},null)}var qa=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(qa||{});function nE(e){let t=y.useContext(YS);return t||Ve(!1),t}function rE(e){let t=y.useContext(sl);return t||Ve(!1),t}function oE(e){let t=rE(),n=t.matches[t.matches.length-1];return n.route.id||Ve(!1),n.route.id}function iE(){var e;let t=y.useContext(hv),n=nE(qa.UseRouteError),r=oE(qa.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function sE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Za(e){Ve(!1)}function lE(e){let{basename:t="/",children:n=null,location:r,navigationType:o=xn.Pop,navigator:i,static:s=!1,future:l}=e;dc()&&Ve(!1);let a=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:a,navigator:i,static:s,future:Rs({v7_relativeSplatPath:!1},l)}),[a,l,i,s]);typeof r=="string"&&(r=ol(r));let{pathname:c="/",search:f="",hash:h="",state:d=null,key:x="default"}=r,v=y.useMemo(()=>{let w=dv(c,a);return w==null?null:{location:{pathname:w,search:f,hash:h,state:d,key:x},navigationType:o}},[a,c,f,h,d,x,o]);return v==null?null:y.createElement(pv.Provider,{value:u},y.createElement(il.Provider,{children:n,value:v}))}function aE(e){let{children:t,location:n}=e;return GS(Ja(t),n)}new Promise(()=>{});function Ja(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,o)=>{if(!y.isValidElement(r))return;let i=[...t,o];if(r.type===y.Fragment){n.push.apply(n,Ja(r.props.children,i));return}r.type!==Za&&Ve(!1),!r.props.index||!r.props.children||Ve(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Ja(r.props.children,i)),n.push(s)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */const uE="6";try{window.__reactRouterVersion=uE}catch{}const cE="startTransition",uf=Mf[cE];function dE(e){let{basename:t,children:n,future:r,window:o}=e,i=y.useRef();i.current==null&&(i.current=TS({window:o,v5Compat:!0}));let s=i.current,[l,a]=y.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=y.useCallback(f=>{u&&uf?uf(()=>a(f)):a(f)},[a,u]);return y.useLayoutEffect(()=>s.listen(c),[s,c]),y.useEffect(()=>sE(r),[r]),y.createElement(lE,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}var cf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(cf||(cf={}));var df;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(df||(df={}));const fE=fm("inline-flex items-center justify-center gap-2 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{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"}}),eo=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?o0:"button";return S.jsx(s,{className:In(fE({variant:t,size:n,className:e})),ref:i,...o})});eo.displayName="Button";const ff=({duration:e,isActive:t,onComplete:n,position:r="left",isGlobal:o=!1})=>{const[i,s]=y.useState(e),l=r==="right"?"right-6":"left-6",a=i<=300;y.useEffect(()=>{s(e)},[e,t]),y.useEffect(()=>{if(!t||i<=0){i===0&&n&&n();return}const c=setInterval(()=>{s(f=>f<=1?(clearInterval(c),0):f-1)},1e3);return()=>clearInterval(c)},[t,i,n]);const u=c=>{if(c>=60){const f=Math.floor(c/60),h=c%60;return`${f.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`}return c.toString().padStart(3,"0")};if(o){if(!t&&i===e)return S.jsx("div",{className:`absolute top-6 ${l} z-50`,children:S.jsx("div",{className:"bg-black/60 border border-blue-800/40 rounded-lg px-3 py-1.5 shadow-sm",children:S.jsx("div",{className:"font-mono text-lg font-medium text-blue-800/70 tracking-wider",children:"READY"})})});const c=a?"border-red-900/40":"border-blue-800/40",f=a?"text-red-900":"text-blue-700",h=a?"rgba(127, 29, 29, 0.3)":"rgba(30, 64, 175, 0.3)";return S.jsx("div",{className:`absolute top-6 ${l} z-50`,children:S.jsx("div",{className:`bg-black/60 border ${c} rounded-lg px-3 py-1.5 shadow-sm`,children:S.jsx("div",{className:`font-mono text-lg font-medium ${f} tracking-wider`,style:{textShadow:`0 0 8px ${h}`},children:u(i)})})})}return!t&&i===e&&e>60?S.jsx("div",{className:`absolute top-6 ${l} z-50`,children:S.jsx("div",{className:"bg-black border-2 border-yellow-500/50 rounded-lg px-4 py-2 shadow-lg animate-pulse",children:S.jsx("div",{className:"font-mono text-2xl font-bold text-yellow-400 tracking-wider",style:{textShadow:"0 0 10px rgba(234, 179, 8, 0.5)"},children:"READY"})})}):S.jsx("div",{className:`absolute top-6 ${l} z-50`,children:S.jsx("div",{className:"bg-black border-2 border-green-500/50 rounded-lg px-4 py-2 shadow-lg",children:S.jsx("div",{className:"font-mono text-3xl font-bold text-green-400 tracking-wider",style:{textShadow:"0 0 10px rgba(34, 197, 94, 0.5)"},children:u(i)})})})},pE=({currentSlide:e,totalSlides:t,slideTitles:n,onSlideSelect:r})=>{const[o,i]=y.useState(!1),s=l=>{r(l),i(!1)};return S.jsxs(S.Fragment,{children:[S.jsxs("button",{onClick:()=>i(!o),className:"text-sm text-white font-medium bg-black/30 px-4 py-2 rounded-full backdrop-blur-sm hover:bg-black/50 transition-colors cursor-pointer",children:[e+1," / ",t]}),o&&S.jsx("div",{className:"fixed inset-0 bg-black/80 backdrop-blur-sm z-[100] flex items-center justify-center p-4",children:S.jsxs("div",{className:"bg-gray-900 rounded-lg shadow-2xl w-[90vw] max-w-[600px] h-[40px] overflow-hidden border border-gray-700 flex items-center gap-2 px-3",children:[S.jsx("div",{className:"flex items-center gap-2 overflow-x-auto scrollbar-hide flex-1",children:n.map((l,a)=>S.jsx("button",{onClick:()=>s(a),className:`shrink-0 h-[28px] px-3 rounded text-xs font-medium transition-all ${a===e?"bg-cyan-600 text-white":"bg-gray-800 text-gray-300 hover:bg-gray-700"}`,children:a+1},a))}),S.jsx(eo,{variant:"ghost",size:"icon",onClick:()=>i(!1),className:"text-white hover:bg-gray-800 h-7 w-7 shrink-0",children:S.jsx(Xs,{className:"h-4 w-4"})})]})})]})},hE=({isOpen:e,onClose:t,isMobile:n=!1})=>{if(y.useEffect(()=>{if(!e)return;const i=s=>{s.key==="Escape"&&(s.preventDefault(),s.stopPropagation(),t())};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[e,t]),!e)return null;const r=[{key:"→ or Space",action:"Next slide"},{key:"←",action:"Previous slide"},{key:"F",action:"Toggle fullscreen"},{key:"Escape",action:"Exit fullscreen"},{key:"S",action:"Start global timer"},{key:"R",action:"Reset global timer"},{key:"?",action:"Show/hide shortcuts"}],o=[{key:"Tap Right Half",action:"Next slide/step"},{key:"Tap Left Half",action:"Previous slide/step"},{key:"Swipe Left",action:"Next slide"},{key:"Swipe Right",action:"Previous slide"}];return S.jsx("div",{className:"fixed inset-0 bg-black/80 backdrop-blur-sm z-[100] flex items-center justify-center p-8",children:S.jsxs("div",{className:"bg-gray-900 rounded-lg shadow-2xl w-full max-w-md overflow-hidden border border-gray-700",children:[S.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-gray-700",children:[S.jsx("h2",{className:"text-2xl font-bold text-white",children:n?"Touch Controls":"Keyboard Shortcuts"}),S.jsx(eo,{variant:"ghost",size:"icon",onClick:t,className:"text-white hover:bg-gray-800",children:S.jsx(Xs,{className:"h-5 w-5"})})]}),S.jsxs("div",{className:"p-6 space-y-3",children:[n&&S.jsx(S.Fragment,{children:o.map((i,s)=>S.jsxs("div",{className:"flex items-center justify-between py-3 px-4 bg-gray-800 rounded-lg",children:[S.jsx("span",{className:"text-gray-300 text-sm",children:i.action}),S.jsx("kbd",{className:"px-3 py-1.5 text-xs font-semibold text-white bg-gray-700 border border-gray-600 rounded",children:i.key})]},`touch-${s}`))}),!n&&S.jsx(S.Fragment,{children:r.map((i,s)=>S.jsxs("div",{className:"flex items-center justify-between py-3 px-4 bg-gray-800 rounded-lg",children:[S.jsx("span",{className:"text-gray-300 text-sm",children:i.action}),S.jsx("kbd",{className:"px-3 py-1.5 text-xs font-semibold text-white bg-gray-700 border border-gray-600 rounded",children:i.key})]},`keyboard-${s}`))})]})]})})},mE=({isOpen:e,onClose:t})=>(y.useEffect(()=>{if(!e)return;const n=r=>{r.key==="Escape"&&(r.preventDefault(),r.stopPropagation(),t())};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[e,t]),e?S.jsx("div",{className:"fixed inset-0 bg-black/80 backdrop-blur-sm z-[100] flex items-center justify-center p-8",children:S.jsxs("div",{className:"bg-gray-900 rounded-lg shadow-2xl w-full max-w-lg overflow-hidden border border-gray-700",children:[S.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-gray-700",children:[S.jsx("h2",{className:"text-2xl font-bold text-white",children:"Credits"}),S.jsx(eo,{variant:"ghost",size:"icon",onClick:t,className:"text-white hover:bg-gray-800",children:S.jsx(Xs,{className:"h-5 w-5"})})]}),S.jsxs("div",{className:"p-8 space-y-6",children:[S.jsxs("p",{className:"text-white text-lg leading-relaxed",children:["This presentation was prepared by ",S.jsx("span",{className:"font-semibold",children:"Kristijan Lukačin, M.Sc."}),","]}),S.jsx("p",{className:"text-white text-lg",children:"with assistance from:"}),S.jsxs("div",{className:"space-y-3 pl-4",children:[S.jsx("p",{className:"text-gray-300 text-lg",children:"Grok AI, Ph.D."}),S.jsx("p",{className:"text-gray-300 text-lg",children:"ChatGPT AI, Ph.D."}),S.jsx("p",{className:"text-gray-300 text-lg",children:"Gemini AI, Ph.D."}),S.jsx("p",{className:"text-gray-400 text-lg italic",children:"Claude AI, Ph.D. wanted to participate, but was too expensive."})]})]})]})}):null);function vE(){const[e,t]=y.useState("desktop");return y.useEffect(()=>{var s;let n;const r=()=>{var x,v;const l="ontouchstart"in window||navigator.maxTouchPoints>0,a=/iPhone|iPad|iPod|Android|webOS|BlackBerry|Windows Phone|Mobile/i.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,u=(v=(x=window.screen)==null?void 0:x.orientation)==null?void 0:v.type,c=u?u.includes("portrait"):null,f=window.matchMedia("(orientation: portrait)").matches,h=window.innerHeight>window.innerWidth;t(l&&a?(c!==null?c:f!==void 0?f:h)?"portrait-mobile":"landscape-mobile":"desktop")},o=()=>{clearTimeout(n),n=setTimeout(r,100)};r();const i=(s=window.screen)==null?void 0:s.orientation;return i?window.screen.orientation.addEventListener("change",o):window.addEventListener("orientationchange",o),window.addEventListener("resize",o),()=>{clearTimeout(n),i?window.screen.orientation.removeEventListener("change",o):window.removeEventListener("orientationchange",o),window.removeEventListener("resize",o)}},[]),e}const gE=()=>{const e=vE(),[t,n]=y.useState(()=>localStorage.getItem("forcedDeviceMode"));return y.useEffect(()=>{const i=s=>{s.key==="forcedDeviceMode"&&n(s.newValue)};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[]),{deviceMode:t?t==="mobile"?"portrait-mobile":"desktop":e,forcedMode:t,setForcedMode:i=>{i===null?localStorage.removeItem("forcedDeviceMode"):localStorage.setItem("forcedDeviceMode",i),n(i)},isForced:t!==null}},yE=({children:e,slideDurations:t,slideImages:n,slideTitles:r=[]})=>{const[o,i]=y.useState(0),[s,l]=y.useState(0),[a,u]=y.useState(!1),[c,f]=y.useState(0),[h,d]=y.useState(!1),[x,v]=y.useState(!1),[w,m]=y.useState(!1),p=Array.isArray(e)?e.length:1,g=15,{deviceMode:E,forcedMode:k,setForcedMode:C,isForced:b}=gE(),R=E==="portrait-mobile"||E==="landscape-mobile",O=E==="portrait-mobile",[M,B]=y.useState(null),D=y.useRef(0),H=y.useRef(0),A=y.useRef(null),q=F=>{if(!R)return;const I=F.target;if(I.tagName==="A"||I.closest("a")||I.closest("button")||I.closest('[role="dialog"]')||I.closest("aside")||I.closest("canvas")||I.closest("[data-animated-slide]"))return;const ee=F.clientX,Y=window.innerWidth;ee(t==null?void 0:t[o])??g;y.useEffect(()=>{if(!n)return;(()=>{for(let I=1;I<=2;I++){const ee=o+I;if(ee{const Ct=new Image;Ct.src=zt})}}})()},[o,n]),y.useEffect(()=>{var I;const F=(I=A.current)==null?void 0:I.querySelector("[data-speaker-notes]");B(F?F.textContent:null)},[o,e]);const V=()=>{document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen()};y.useEffect(()=>{const F=I=>{I.key==="ArrowRight"||I.key===" "?(I.preventDefault(),P()):I.key==="ArrowLeft"?(I.preventDefault(),N()):I.key==="f"||I.key==="F"?(I.preventDefault(),V()):I.key==="Escape"&&document.fullscreenElement?(I.preventDefault(),document.exitFullscreen()):I.key==="s"||I.key==="S"?(I.preventDefault(),u(!0)):I.key==="r"||I.key==="R"?(I.preventDefault(),f(ee=>ee+1),u(!1)):I.key==="?"&&(I.preventDefault(),v(ee=>!ee))};return window.addEventListener("keydown",F),()=>window.removeEventListener("keydown",F)},[o]);const P=()=>{d(!0),i(F=>{const I=Math.min(F+1,p-1);return I!==F&&l(ee=>ee+1),I})},N=()=>{i(F=>{const I=Math.max(F-1,0);return I!==F&&l(ee=>ee+1),I})},L=F=>{F>=0&&FI+1))},W=F=>{R&&(D.current=F.touches[0].clientX)},$=F=>{R&&(H.current=F.touches[0].clientX)},X=F=>{if(!R)return;const I=50,ee=D.current-H.current;if(Math.abs(ee)>I){const Y=F.target;if(Y.closest("a")||Y.closest("button")||Y.closest("canvas")||Y.closest("[data-animated-slide]")||Y.closest("[data-scrollable]")){D.current=0,H.current=0;return}ee>0?P():N()}D.current=0,H.current=0};return S.jsxs("div",{ref:A,className:"fixed inset-0 bg-black flex items-center justify-center overflow-hidden",onTouchStart:W,onTouchMove:$,onTouchEnd:X,children:[!O&&S.jsx("div",{className:"absolute top-6 right-6 z-50",children:S.jsx(ff,{duration:1800,isActive:a,position:"right",isGlobal:!0},c)}),S.jsx("div",{className:`w-full h-full flex justify-center ${O?"items-start pt-[10px]":"items-center"}`,children:S.jsxs("div",{className:`w-full relative ${O?"h-[60vh]":E==="landscape-mobile"?"h-full":"h-full max-w-[177.78vh] max-h-[56.25vw]"}`,children:[!O&&S.jsx(ff,{duration:U(),isActive:o>0||h},s),S.jsx("div",{className:"w-full h-full relative [&_[data-speaker-notes]]:hidden",onClick:q,children:Array.isArray(e)?e[o]:e})]})}),M&&S.jsx("div",{className:`absolute left-0 right-0 z-40 ${O?"bottom-16 px-4":"bottom-20 px-8"}`,children:S.jsx("aside",{className:`text-center text-white opacity-90 bg-black/30 backdrop-blur-sm rounded-lg py-2 px-3 ${O?"text-xs":"text-sm"}`,children:M})}),S.jsxs("div",{className:`absolute z-50 flex items-center ${O?"bottom-4 left-0 right-0 justify-between px-4":"bottom-8 left-0 right-0 justify-between px-8"}`,children:[S.jsx("button",{onClick:()=>m(!0),className:`text-white/70 hover:text-white underline underline-offset-2 transition-colors ${O?"text-xs":"text-sm"}`,children:"Made by"}),S.jsxs("div",{className:`flex items-center ${O?"gap-4":"gap-8"}`,children:[S.jsx(eo,{variant:"ghost",size:"icon",onClick:N,disabled:o===0,className:`smooth-transition bg-transparent border-0 hover:bg-transparent text-white ${O?"h-8 w-8":""}`,children:S.jsx(J0,{className:O?"h-3 w-3":"h-4 w-4"})}),S.jsx(pE,{currentSlide:o,totalSlides:p,slideTitles:r,onSlideSelect:L}),S.jsx(eo,{variant:"ghost",size:"icon",onClick:P,disabled:o===p-1,className:`smooth-transition bg-transparent border-0 hover:bg-transparent text-white ${O?"h-8 w-8":""}`,children:S.jsx(ew,{className:O?"h-3 w-3":"h-4 w-4"})})]}),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsxs("button",{onClick:()=>{C(k===null?R?"desktop":"mobile":k==="mobile"?"desktop":"mobile")},className:`text-white bg-black/30 hover:bg-black/50 backdrop-blur-sm rounded-full px-3 py-1.5 transition-colors ${O?"text-[10px]":"text-xs"}`,"aria-label":"Toggle device mode",children:[R?"DESKTOP":"MOBILE",b&&" ✓"]}),S.jsx("button",{onClick:()=>v(!0),className:`text-white bg-black/30 hover:bg-black/50 backdrop-blur-sm rounded-full flex items-center justify-center transition-colors ${O?"w-8 h-8":"w-10 h-10"}`,"aria-label":"Show keyboard shortcuts",children:S.jsx(tw,{className:O?"h-4 w-4":"h-5 w-5"})})]})]}),S.jsx(hE,{isOpen:x,onClose:()=>v(!1),isMobile:R}),S.jsx(mE,{isOpen:w,onClose:()=>m(!1)})]})},ll=({children:e,className:t="",showLogo:n=!0,logoVariant:r="light",backgroundImage:o})=>S.jsxs("div",{className:`w-full h-full p-4 md:p-12 flex flex-col font-body relative ${t}`,children:[o&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"absolute inset-0 -z-10",style:{backgroundImage:`url(${o})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),S.jsx("div",{className:"absolute inset-0 -z-10 bg-black/80"})]}),!o&&S.jsx("div",{className:"absolute inset-0 -z-10 bg-gradient-to-br from-rose-950 via-pink-950/80 to-red-950"}),e]}),mr=({statement:e,subtitle:t,icon:n,speakerNotes:r,backgroundImage:o})=>S.jsxs(ll,{className:"justify-center items-center",backgroundImage:o,children:[S.jsxs("div",{className:"max-w-5xl mx-auto text-center space-y-4 md:space-y-8",children:[n&&S.jsx("div",{className:"flex justify-center mb-4 md:mb-8",children:S.jsx("img",{src:n,alt:"",className:"w-16 h-16 md:w-32 md:h-32 object-contain"})}),S.jsx("h2",{className:"text-3xl md:text-6xl font-heading font-bold text-slide-foreground leading-tight px-4 md:px-12",children:e}),t&&S.jsx("p",{className:"text-lg md:text-2xl text-slide-muted font-body mt-4 md:mt-6",children:t}),S.jsx("div",{className:"w-16 md:w-32 h-1 bg-gradient-to-r from-pink-400 via-rose-400 to-red-400 mx-auto mt-4 md:mt-8 rounded-full"})]}),r&&S.jsx("aside",{className:"absolute bottom-0 left-0 right-0 px-4 md:px-12 pb-2 text-center text-white text-xs md:text-sm opacity-90","data-speaker-notes":!0,children:r})]}),pf=({title:e,items:t=[],images:n=[],image:r,imageAlt:o,backgroundImage:i,speakerNotes:s})=>{const[l,a]=y.useState(0),[u,c]=y.useState(!1),[f,h]=y.useState("none"),[d,x]=y.useState(!1),v=n.length>0?n.length:t.length+(r?1:0);y.useEffect(()=>{const k=()=>{const C=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)||window.innerWidth<=768;x(C)};return k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[]),y.useEffect(()=>{const k=C=>{u||(C.key==="ArrowRight"||C.key===" "?l0&&(C.preventDefault(),C.stopPropagation(),m()))};return window.addEventListener("keydown",k,!0),()=>window.removeEventListener("keydown",k,!0)},[l,u,v]);const w=()=>{l===0?(a(1),h("slideIn"),c(!0),setTimeout(()=>{h("none"),c(!1)},500)):l{a(l+1),h("slideIn"),setTimeout(()=>{h("none"),c(!1)},500)},500))},m=()=>{l>0&&(h("slideOut"),c(!0),setTimeout(()=>{a(l-1),h("slideIn"),setTimeout(()=>{h("none"),c(!1)},500)},500))},p=()=>l===0?null:n.length>0&&l<=n.length?S.jsx("img",{src:n[l-1],alt:`Slide ${l}`,className:"max-w-[90vw] md:max-w-[61.6rem] max-h-[50vh] md:max-h-[70vh] w-auto object-contain mx-auto"}):l<=t.length?S.jsx("div",{className:"text-3xl md:text-6xl lg:text-7xl font-bold text-white text-center px-4",children:t[l-1]}):r&&l===t.length+1?S.jsx("img",{src:r,alt:o,className:"max-w-[90vw] md:max-w-[61.6rem] max-h-[50vh] md:max-h-[70vh] w-auto object-contain mx-auto"}):null,g=()=>f==="slideIn"?"animate-slide-in-from-right":f==="slideOut"?"animate-slide-out-to-left":"",E=k=>{if(!d||u)return;const C=k.clientX,b=window.innerWidth,R=C0&&m():l0&&S.jsx("div",{className:g(),children:p()},l),d&&f==="none"&&S.jsxs("div",{className:"fixed bottom-20 left-0 right-0 flex justify-between px-8 text-center pointer-events-none z-50",children:[l>0&&S.jsx("p",{className:"text-xs md:text-sm text-pink-400/70 animate-pulse",children:"← Tap"}),l{const r=Array.from({length:20},(i,s)=>({id:s,left:`${Math.random()*100}%`,size:Math.random()*24+12,duration:`${Math.random()*6+6}s`,delay:`${Math.random()*8}s`,opacity:Math.random()*.4+.1})),o=Array.from({length:12},(i,s)=>({id:s,left:`${Math.random()*100}%`,top:`${Math.random()*100}%`,duration:`${Math.random()*3+2}s`,delay:`${Math.random()*5}s`}));return S.jsxs(ll,{className:"justify-center items-center text-center relative overflow-hidden",showLogo:!1,children:[S.jsx("div",{className:"absolute inset-0 -z-10 bg-gradient-to-br from-rose-950 via-pink-950 to-red-950"}),S.jsx("div",{className:"absolute inset-0 -z-10 bg-gradient-to-t from-black/40 to-transparent"}),r.map(i=>S.jsx("div",{className:"absolute animate-float-heart pointer-events-none",style:{left:i.left,bottom:"-50px",fontSize:`${i.size}px`,"--duration":i.duration,"--delay":i.delay,opacity:i.opacity,zIndex:5},children:"❤️"},i.id)),o.map(i=>S.jsx("div",{className:"absolute animate-sparkle pointer-events-none text-yellow-300",style:{left:i.left,top:i.top,"--duration":i.duration,"--delay":i.delay,fontSize:"14px",zIndex:5},children:"✦"},i.id)),S.jsxs("div",{className:"space-y-6 relative z-20 px-4 md:px-12 max-w-5xl mx-auto",children:[S.jsx("h1",{className:"text-4xl md:text-7xl font-heading font-bold text-white leading-tight animate-pulse-glow",children:e}),S.jsx("div",{className:"w-16 md:w-24 h-1 bg-gradient-to-r from-pink-400 via-rose-400 to-red-400 mx-auto rounded-full"}),t&&S.jsx("p",{className:"text-xl md:text-3xl text-pink-200/90 max-w-4xl mx-auto font-body animate-gentle-float",children:t}),n&&S.jsx("p",{className:"text-lg md:text-xl text-pink-300/80 mt-8 font-body italic",children:n})]})]})},xE=()=>{const[e,t]=y.useState(!1);y.useEffect(()=>{const o=setTimeout(()=>t(!0),500);return()=>clearTimeout(o)},[]);const n=Array.from({length:30},(o,i)=>({id:i,left:`${Math.random()*100}%`,size:Math.random()*30+16,duration:`${Math.random()*5+5}s`,delay:`${Math.random()*6}s`,opacity:Math.random()*.5+.2})),r=Array.from({length:20},(o,i)=>({id:i,left:`${Math.random()*100}%`,top:`${Math.random()*100}%`,duration:`${Math.random()*3+1.5}s`,delay:`${Math.random()*4}s`}));return S.jsxs(ll,{className:"justify-center items-center text-center relative overflow-hidden",showLogo:!1,children:[S.jsx("div",{className:"absolute inset-0 -z-10 bg-gradient-to-br from-rose-950 via-pink-950 to-red-950"}),n.map(o=>S.jsx("div",{className:"absolute animate-float-heart pointer-events-none",style:{left:o.left,bottom:"-50px",fontSize:`${o.size}px`,"--duration":o.duration,"--delay":o.delay,opacity:o.opacity,zIndex:5},children:Math.random()>.5?"❤️":"💕"},o.id)),r.map(o=>S.jsx("div",{className:"absolute animate-sparkle pointer-events-none",style:{left:o.left,top:o.top,"--duration":o.duration,"--delay":o.delay,fontSize:"18px",zIndex:5},children:["✦","✧","💫","⭐"][Math.floor(Math.random()*4)]},o.id)),S.jsxs("div",{className:`space-y-8 relative z-20 px-4 md:px-12 max-w-5xl mx-auto transition-all duration-2000 ${e?"opacity-100 scale-100":"opacity-0 scale-90"}`,children:[S.jsx("div",{className:"text-7xl md:text-9xl animate-gentle-float",children:"❤️"}),S.jsx("h1",{className:"text-4xl md:text-8xl font-heading font-bold text-white leading-tight animate-pulse-glow",children:"Volim te zauvijek"}),S.jsx("div",{className:"w-24 md:w-32 h-1 bg-gradient-to-r from-pink-400 via-rose-300 to-pink-400 mx-auto rounded-full"}),S.jsx("p",{className:"text-2xl md:text-4xl text-pink-200 font-body italic animate-gentle-float",style:{animationDelay:"1s"},children:"Tvoj Kiki 💕"})]})]})},SE=()=>{const e=["Za moju Mare","Od svih čuda...","Naša ljubav","9 čuda","Jutarnja molitva","Superwoman","Lijep kaos","Naš put","Hvala ti","Zauvijek"];return S.jsxs(yE,{slideTitles:e,children:[S.jsx(wE,{title:"Za moju Mare ❤️",subtitle:"Valentinovo 2026",author:"S ljubavlju, tvoj Kiki"}),S.jsx(mr,{statement:"Od svih čuda koja sam vidio u životu...",subtitle:"...ti si najljepše ✨"}),S.jsx(mr,{statement:"Naša ljubav u brojevima",subtitle:"9 djece • tisuće molitvi • beskonačno zagrljaja • 1 zauvijek 💕"}),S.jsx(pf,{title:"9 razloga zašto je naša ljubav savršena",items:["❤️ Tadej — naš prvi, koji nas je naučio biti roditelji","❤️ Magdalena — naša Megi, puna života i smijeha","❤️ Mihaela — naša Miha, nježna i snažna","❤️ Franjo — naš Frenki, uvijek spreman za avanturu","❤️ Josip — naš Joza, s osmijehom koji topi srce","❤️ Jona Kristijan — naš Jona, mir u oluji","❤️ Mirjam — naša mala princeza","❤️ Ivan — naš hrabri vitez","❤️ Martin — naš najmlađi, kruna naše ljubavi"]}),S.jsx(mr,{statement:"🙏 Svako jutro molimo zajedno",subtitle:"To je naš najsvetiji trenutak — ti i ja pred Bogom, prije nego svijet počne"}),S.jsx(mr,{statement:"Ti si superwoman 💪",subtitle:"Vodiš NOSCO, odgajaš 9 djece, i još uspiješ biti najljepša žena na svijetu"}),S.jsx(mr,{statement:"Naš život je lijep kaos 🌪️❤️",subtitle:"9 djece, 2 firme, jutarnje molitve u 5:30, škola, trening, posao... i ne bih mijenjao nijednu sekundu"}),S.jsx(mr,{statement:"S tobom sam naučio što znači vjera 🕊️",subtitle:"Neokatekumenski put, zajednica, molitva — sve ima smisla jer hodamo zajedno"}),S.jsx(pf,{title:"Hvala ti, Mare...",items:["💕 ...što si izabrala mene","💕 ...što si mi dala 9 najljepših darova","💕 ...što me podnosiš kad sam nemoguć","💕 ...što se moliš sa mnom svako jutro","💕 ...što si moj dom, ma gdje bili","💕 ...što si dokaz da Bog odgovara na molitve"]}),S.jsx(xE,{})]})},EE=()=>{const e=mv();return y.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),S.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-100",children:S.jsxs("div",{className:"text-center",children:[S.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),S.jsx("p",{className:"mb-4 text-xl text-gray-600",children:"Oops! Page not found"}),S.jsx("a",{href:"/",className:"text-blue-500 underline hover:text-blue-700",children:"Return to Home"})]})})},kE=new CS,CE=()=>S.jsx(PS,{client:kE,children:S.jsxs(eS,{children:[S.jsx(zw,{}),S.jsx(mx,{}),S.jsx(dE,{children:S.jsxs(aE,{children:[S.jsx(Za,{path:"/",element:S.jsx(SE,{})}),S.jsx(Za,{path:"*",element:S.jsx(EE,{})})]})})]})});zh(document.getElementById("root")).render(S.jsx(CE,{}));