var oy=e=>{throw TypeError(e)};var Nf=(e,t,n)=>t.has(e)||oy("Cannot "+n);var S=(e,t,n)=>(Nf(e,t,"read from private field"),n?n.call(e):t.get(e)),le=(e,t,n)=>t.has(e)?oy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Z=(e,t,n,r)=>(Nf(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ye=(e,t,n)=>(Nf(e,t,"access private method"),n);var gc=(e,t,n,r)=>({set _(i){Z(e,t,i,n)},get _(){return S(e,t,r)}});function GE(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function tb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nb={exports:{}},yu={},rb={exports:{}},be={};/** * @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 Xl=Symbol.for("react.element"),qE=Symbol.for("react.portal"),KE=Symbol.for("react.fragment"),ZE=Symbol.for("react.strict_mode"),QE=Symbol.for("react.profiler"),YE=Symbol.for("react.provider"),JE=Symbol.for("react.context"),XE=Symbol.for("react.forward_ref"),eT=Symbol.for("react.suspense"),tT=Symbol.for("react.memo"),nT=Symbol.for("react.lazy"),ly=Symbol.iterator;function rT(e){return e===null||typeof e!="object"?null:(e=ly&&e[ly]||e["@@iterator"],typeof e=="function"?e:null)}var sb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ib=Object.assign,ab={};function mo(e,t,n){this.props=e,this.context=t,this.refs=ab,this.updater=n||sb}mo.prototype.isReactComponent={};mo.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")};mo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ob(){}ob.prototype=mo.prototype;function Ap(e,t,n){this.props=e,this.context=t,this.refs=ab,this.updater=n||sb}var Pp=Ap.prototype=new ob;Pp.constructor=Ap;ib(Pp,mo.prototype);Pp.isPureReactComponent=!0;var cy=Array.isArray,lb=Object.prototype.hasOwnProperty,_p={current:null},cb={key:!0,ref:!0,__self:!0,__source:!0};function db(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)lb.call(t,r)&&!cb.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,Ae=_[me];if(0>>1;mei(mn,X))Tti(oe,mn)?(_[me]=oe,_[Tt]=X,me=Tt):(_[me]=mn,_[it]=X,me=it);else if(Tti(oe,X))_[me]=oe,_[Tt]=X,me=Tt;else break e}}return z}function i(_,z){var X=_.sortIndex-z.sortIndex;return X!==0?X:_.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],d=[],u=1,f=null,m=3,y=!1,b=!1,x=!1,w=typeof setTimeout=="function"?setTimeout:null,g=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 v(_){for(var z=n(d);z!==null;){if(z.callback===null)r(d);else if(z.startTime<=_)r(d),z.sortIndex=z.expirationTime,t(c,z);else break;z=n(d)}}function j(_){if(x=!1,v(_),!b)if(n(c)!==null)b=!0,q(N);else{var z=n(d);z!==null&&K(j,z.startTime-_)}}function N(_,z){b=!1,x&&(x=!1,g(E),E=-1),y=!0;var X=m;try{for(v(z),f=n(c);f!==null&&(!(f.expirationTime>z)||_&&!B());){var me=f.callback;if(typeof me=="function"){f.callback=null,m=f.priorityLevel;var Ae=me(f.expirationTime<=z);z=e.unstable_now(),typeof Ae=="function"?f.callback=Ae:f===n(c)&&r(c),v(z)}else r(c);f=n(c)}if(f!==null)var St=!0;else{var it=n(d);it!==null&&K(j,it.startTime-z),St=!1}return St}finally{f=null,m=X,y=!1}}var T=!1,k=null,E=-1,A=5,R=-1;function B(){return!(e.unstable_now()-R_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(_){switch(m){case 1:case 2:case 3:var z=3;break;default:z=m}var X=m;m=z;try{return _()}finally{m=X}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,z){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var X=m;m=_;try{return z()}finally{m=X}},e.unstable_scheduleCallback=function(_,z,X){var me=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0me?(_.sortIndex=X,t(d,_),n(c)===null&&_===n(d)&&(x?(g(E),E=-1):x=!0,K(j,X-me))):(_.sortIndex=Ae,t(c,_),b||y||(b=!0,q(N))),_},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(_){var z=m;return function(){var X=m;m=z;try{return _.apply(this,arguments)}finally{m=X}}}})(xb);pb.exports=xb;var hT=pb.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 pT=h,Nn=hT;function V(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"),Tm=Object.prototype.hasOwnProperty,xT=/^[: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]*$/,uy={},fy={};function gT(e){return Tm.call(fy,e)?!0:Tm.call(uy,e)?!1:xT.test(e)?fy[e]=!0:(uy[e]=!0,!1)}function yT(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 vT(e,t,n,r){if(t===null||typeof t>"u"||yT(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 tn(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var It={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){It[e]=new tn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];It[t]=new tn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){It[e]=new tn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){It[e]=new tn(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){It[e]=new tn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){It[e]=new tn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){It[e]=new tn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){It[e]=new tn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){It[e]=new tn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ip=/[\-:]([a-z])/g;function Mp(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(Ip,Mp);It[t]=new tn(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(Ip,Mp);It[t]=new tn(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(Ip,Mp);It[t]=new tn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){It[e]=new tn(e,1,!1,e.toLowerCase(),null,!1,!1)});It.xlinkHref=new tn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){It[e]=new tn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Lp(e,t,n,r){var i=It.hasOwnProperty(t)?It[t]:null;(i!==null?i.type!==0:r||!(2l||i[o]!==a[l]){var c=` `+i[o].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=o&&0<=l);break}}}finally{kf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Oo(e):""}function wT(e){switch(e.tag){case 5:return Oo(e.type);case 16:return Oo("Lazy");case 13:return Oo("Suspense");case 19:return Oo("SuspenseList");case 0:case 2:case 15:return e=Ef(e.type,!1),e;case 11:return e=Ef(e.type.render,!1),e;case 1:return e=Ef(e.type,!0),e;default:return""}}function Rm(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 ia:return"Fragment";case sa:return"Portal";case Am:return"Profiler";case Dp:return"StrictMode";case Pm:return"Suspense";case _m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case vb:return(e.displayName||"Context")+".Consumer";case yb:return(e._context.displayName||"Context")+".Provider";case Op:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fp:return t=e.displayName||null,t!==null?t:Rm(e.type)||"Memo";case ls:t=e._payload,e=e._init;try{return Rm(e(t))}catch{}}return null}function bT(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 Rm(t);case 8:return t===Dp?"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 Ds(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jT(e){var t=bb(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 i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wc(e){e._valueTracker||(e._valueTracker=jT(e))}function jb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=bb(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gd(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 Im(e,t){var n=t.checked;return Xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function hy(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ds(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 Nb(e,t){t=t.checked,t!=null&&Lp(e,"checked",t,!1)}function Mm(e,t){Nb(e,t);var n=Ds(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")?Lm(e,t.type,n):t.hasOwnProperty("defaultValue")&&Lm(e,t.type,Ds(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function py(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 Lm(e,t,n){(t!=="number"||gd(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fo=Array.isArray;function ja(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=bc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ml(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zo={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},NT=["Webkit","ms","Moz","O"];Object.keys(Zo).forEach(function(e){NT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zo[t]=Zo[e]})});function Eb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zo.hasOwnProperty(e)&&Zo[e]?(""+t).trim():t+"px"}function Tb(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Eb(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var CT=Xe({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 Fm(e,t){if(t){if(CT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function Vm(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 zm=null;function Vp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Um=null,Na=null,Ca=null;function yy(e){if(e=nc(e)){if(typeof Um!="function")throw Error(V(280));var t=e.stateNode;t&&(t=Nu(t),Um(e.stateNode,e.type,t))}}function Ab(e){Na?Ca?Ca.push(e):Ca=[e]:Na=e}function Pb(){if(Na){var e=Na,t=Ca;if(Ca=Na=null,yy(e),t)for(e=0;e>>=0,e===0?32:31-(LT(e)/DT|0)|0}var jc=64,Nc=4194304;function Vo(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 bd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=Vo(l):(a&=o,a!==0&&(r=Vo(a)))}else o=n&~i,o!==0?r=Vo(o):a!==0&&(r=Vo(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&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 ec(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zn(t),e[t]=n}function zT(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=Yo),Ey=" ",Ty=!1;function Qb(e,t){switch(e){case"keyup":return hA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var aa=!1;function xA(e,t){switch(e){case"compositionend":return Yb(t);case"keypress":return t.which!==32?null:(Ty=!0,Ey);case"textInput":return e=t.data,e===Ey&&Ty?null:e;default:return null}}function gA(e,t){if(aa)return e==="compositionend"||!qp&&Qb(e,t)?(e=Kb(),Yc=Wp=js=null,aa=!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=Ry(n)}}function tj(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tj(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nj(){for(var e=window,t=gd();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gd(e.document)}return t}function Kp(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 kA(e){var t=nj(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&tj(n.ownerDocument.documentElement,n)){if(r!==null&&Kp(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 i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Iy(n,a);var o=Iy(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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,oa=null,qm=null,Xo=null,Km=!1;function My(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Km||oa==null||oa!==gd(r)||(r=oa,"selectionStart"in r&&Kp(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}),Xo&&vl(Xo,r)||(Xo=r,r=Cd(qm,"onSelect"),0da||(e.current=eh[da],eh[da]=null,da--)}function Ue(e,t){da++,eh[da]=e.current,e.current=t}var Os={},$t=Zs(Os),ln=Zs(!1),ki=Os;function Ka(e,t){var n=e.type.contextTypes;if(!n)return Os;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function cn(e){return e=e.childContextTypes,e!=null}function kd(){He(ln),He($t)}function Uy(e,t,n){if($t.current!==Os)throw Error(V(168));Ue($t,t),Ue(ln,n)}function uj(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(V(108,bT(e)||"Unknown",i));return Xe({},n,r)}function Ed(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Os,ki=$t.current,Ue($t,e),Ue(ln,ln.current),!0}function By(e,t,n){var r=e.stateNode;if(!r)throw Error(V(169));n?(e=uj(e,t,ki),r.__reactInternalMemoizedMergedChildContext=e,He(ln),He($t),Ue($t,e)):He(ln),Ue(ln,n)}var _r=null,Cu=!1,Uf=!1;function fj(e){_r===null?_r=[e]:_r.push(e)}function FA(e){Cu=!0,fj(e)}function Qs(){if(!Uf&&_r!==null){Uf=!0;var e=0,t=Oe;try{var n=_r;for(Oe=1;e>=o,i-=o,Dr=1<<32-Zn(t)+i|n<E?(A=k,k=null):A=k.sibling;var R=m(g,k,v[E],j);if(R===null){k===null&&(k=A);break}e&&k&&R.alternate===null&&t(g,k),p=a(R,p,E),T===null?N=R:T.sibling=R,T=R,k=A}if(E===v.length)return n(g,k),qe&&si(g,E),N;if(k===null){for(;EE?(A=k,k=null):A=k.sibling;var B=m(g,k,R.value,j);if(B===null){k===null&&(k=A);break}e&&k&&B.alternate===null&&t(g,k),p=a(B,p,E),T===null?N=B:T.sibling=B,T=B,k=A}if(R.done)return n(g,k),qe&&si(g,E),N;if(k===null){for(;!R.done;E++,R=v.next())R=f(g,R.value,j),R!==null&&(p=a(R,p,E),T===null?N=R:T.sibling=R,T=R);return qe&&si(g,E),N}for(k=r(g,k);!R.done;E++,R=v.next())R=y(k,g,E,R.value,j),R!==null&&(e&&R.alternate!==null&&k.delete(R.key===null?E:R.key),p=a(R,p,E),T===null?N=R:T.sibling=R,T=R);return e&&k.forEach(function(L){return t(g,L)}),qe&&si(g,E),N}function w(g,p,v,j){if(typeof v=="object"&&v!==null&&v.type===ia&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case vc:e:{for(var N=v.key,T=p;T!==null;){if(T.key===N){if(N=v.type,N===ia){if(T.tag===7){n(g,T.sibling),p=i(T,v.props.children),p.return=g,g=p;break e}}else if(T.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===ls&&Hy(N)===T.type){n(g,T.sibling),p=i(T,v.props),p.ref=Ao(g,T,v),p.return=g,g=p;break e}n(g,T);break}else t(g,T);T=T.sibling}v.type===ia?(p=Ni(v.props.children,g.mode,j,v.key),p.return=g,g=p):(j=id(v.type,v.key,v.props,null,g.mode,j),j.ref=Ao(g,p,v),j.return=g,g=j)}return o(g);case sa:e:{for(T=v.key;p!==null;){if(p.key===T)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(g,p.sibling),p=i(p,v.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=Zf(v,g.mode,j),p.return=g,g=p}return o(g);case ls:return T=v._init,w(g,p,T(v._payload),j)}if(Fo(v))return b(g,p,v,j);if(Co(v))return x(g,p,v,j);Pc(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(g,p.sibling),p=i(p,v),p.return=g,g=p):(n(g,p),p=Kf(v,g.mode,j),p.return=g,g=p),o(g)):n(g,p)}return w}var Qa=xj(!0),gj=xj(!1),Pd=Zs(null),_d=null,ma=null,Jp=null;function Xp(){Jp=ma=_d=null}function ex(e){var t=Pd.current;He(Pd),e._currentValue=t}function rh(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 ka(e,t){_d=e,Jp=ma=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(on=!0),e.firstContext=null)}function Ln(e){var t=e._currentValue;if(Jp!==e)if(e={context:e,memoizedValue:t,next:null},ma===null){if(_d===null)throw Error(V(308));ma=e,_d.dependencies={lanes:0,firstContext:e}}else ma=ma.next=e;return t}var ci=null;function tx(e){ci===null?ci=[e]:ci.push(e)}function yj(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,tx(t)):(n.next=i.next,i.next=n),t.interleaved=n,Hr(e,r)}function Hr(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 cs=!1;function nx(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vj(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 Vr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ps(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ke&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Hr(e,n)}return i=r.interleaved,i===null?(t.next=t,tx(r)):(t.next=i.next,i.next=t),r.interleaved=t,Hr(e,n)}function Xc(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,Up(e,n)}}function Gy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,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 Rd(e,t,n,r){var i=e.updateQueue;cs=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,d=c.next;c.next=null,o===null?a=d:o.next=d,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==o&&(l===null?u.firstBaseUpdate=d:l.next=d,u.lastBaseUpdate=c))}if(a!==null){var f=i.baseState;o=0,u=d=c=null,l=a;do{var m=l.lane,y=l.eventTime;if((r&m)===m){u!==null&&(u=u.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var b=e,x=l;switch(m=t,y=n,x.tag){case 1:if(b=x.payload,typeof b=="function"){f=b.call(y,f,m);break e}f=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=x.payload,m=typeof b=="function"?b.call(y,f,m):b,m==null)break e;f=Xe({},f,m);break e;case 2:cs=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else y={eventTime:y,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(d=u=y,c=f):u=u.next=y,o|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(u===null&&(c=f),i.baseState=c,i.firstBaseUpdate=d,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Ai|=o,e.lanes=o,e.memoizedState=f}}function qy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=$f.transition;$f.transition={};try{e(!1),t()}finally{Oe=n,$f.transition=r}}function Dj(){return Dn().memoizedState}function BA(e,t,n){var r=Rs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Oj(e))Fj(t,n);else if(n=yj(e,t,n,r),n!==null){var i=Jt();Qn(n,e,r,i),Vj(n,t,r)}}function $A(e,t,n){var r=Rs(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Oj(e))Fj(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,l=a(o,n);if(i.hasEagerState=!0,i.eagerState=l,Jn(l,o)){var c=t.interleaved;c===null?(i.next=i,tx(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=yj(e,t,i,r),n!==null&&(i=Jt(),Qn(n,e,r,i),Vj(n,t,r))}}function Oj(e){var t=e.alternate;return e===Je||t!==null&&t===Je}function Fj(e,t){el=Md=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vj(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Up(e,n)}}var Ld={readContext:Ln,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useInsertionEffect:Dt,useLayoutEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useMutableSource:Dt,useSyncExternalStore:Dt,useId:Dt,unstable_isNewReconciler:!1},WA={readContext:Ln,useCallback:function(e,t){return sr().memoizedState=[e,t===void 0?null:t],e},useContext:Ln,useEffect:Zy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,td(4194308,4,_j.bind(null,t,e),n)},useLayoutEffect:function(e,t){return td(4194308,4,e,t)},useInsertionEffect:function(e,t){return td(4,2,e,t)},useMemo:function(e,t){var n=sr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sr();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=BA.bind(null,Je,e),[r.memoizedState,e]},useRef:function(e){var t=sr();return e={current:e},t.memoizedState=e},useState:Ky,useDebugValue:dx,useDeferredValue:function(e){return sr().memoizedState=e},useTransition:function(){var e=Ky(!1),t=e[0];return e=UA.bind(null,e[1]),sr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Je,i=sr();if(qe){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),Et===null)throw Error(V(349));Ti&30||Nj(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Zy(Sj.bind(null,r,a,e),[e]),r.flags|=2048,El(9,Cj.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=sr(),t=Et.identifierPrefix;if(qe){var n=Or,r=Dr;n=(r&~(1<<32-Zn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Sl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[cr]=t,e[jl]=r,Zj(e,t,!1,!1),t.stateNode=e;e:{switch(o=Vm(n,r),n){case"dialog":We("cancel",e),We("close",e),i=r;break;case"iframe":case"object":case"embed":We("load",e),i=r;break;case"video":case"audio":for(i=0;iXa&&(t.flags|=128,r=!0,Po(a,!1),t.lanes=4194304)}else{if(!r)if(e=Id(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Po(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!qe)return Ot(t),null}else 2*ct()-a.renderingStartTime>Xa&&n!==1073741824&&(t.flags|=128,r=!0,Po(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ct(),t.sibling=null,n=Qe.current,Ue(Qe,r?n&1|2:n&1),t):(Ot(t),null);case 22:case 23:return xx(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xn&1073741824&&(Ot(t),t.subtreeFlags&6&&(t.flags|=8192)):Ot(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function JA(e,t){switch(Qp(t),t.tag){case 1:return cn(t.type)&&kd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ya(),He(ln),He($t),ix(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sx(t),null;case 13:if(He(Qe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));Za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return He(Qe),null;case 4:return Ya(),null;case 10:return ex(t.type._context),null;case 22:case 23:return xx(),null;case 24:return null;default:return null}}var Rc=!1,zt=!1,XA=typeof WeakSet=="function"?WeakSet:Set,ee=null;function ha(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){nt(e,t,r)}else n.current=null}function fh(e,t,n){try{n()}catch(r){nt(e,t,r)}}var av=!1;function eP(e,t){if(Zm=jd,e=nj(),Kp(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 i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,l=-1,c=-1,d=0,u=0,f=e,m=null;t:for(;;){for(var y;f!==n||i!==0&&f.nodeType!==3||(l=o+i),f!==a||r!==0&&f.nodeType!==3||(c=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(y=f.firstChild)!==null;)m=f,f=y;for(;;){if(f===e)break t;if(m===n&&++d===i&&(l=o),m===a&&++u===r&&(c=o),(y=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=y}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qm={focusedElem:e,selectionRange:n},jd=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var x=b.memoizedProps,w=b.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?x:Un(t.type,x),w);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(j){nt(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return b=av,av=!1,b}function tl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&fh(t,n,a)}i=i.next}while(i!==r)}}function Eu(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 mh(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 Jj(e){var t=e.alternate;t!==null&&(e.alternate=null,Jj(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[cr],delete t[jl],delete t[Xm],delete t[DA],delete t[OA])),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 Xj(e){return e.tag===5||e.tag===3||e.tag===4}function ov(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xj(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 hh(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=Sd));else if(r!==4&&(e=e.child,e!==null))for(hh(e,t,n),e=e.sibling;e!==null;)hh(e,t,n),e=e.sibling}function ph(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(ph(e,t,n),e=e.sibling;e!==null;)ph(e,t,n),e=e.sibling}var Pt=null,$n=!1;function ns(e,t,n){for(n=n.child;n!==null;)e1(e,t,n),n=n.sibling}function e1(e,t,n){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(vu,n)}catch{}switch(n.tag){case 5:zt||ha(n,t);case 6:var r=Pt,i=$n;Pt=null,ns(e,t,n),Pt=r,$n=i,Pt!==null&&($n?(e=Pt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pt.removeChild(n.stateNode));break;case 18:Pt!==null&&($n?(e=Pt,n=n.stateNode,e.nodeType===8?zf(e.parentNode,n):e.nodeType===1&&zf(e,n),gl(e)):zf(Pt,n.stateNode));break;case 4:r=Pt,i=$n,Pt=n.stateNode.containerInfo,$n=!0,ns(e,t,n),Pt=r,$n=i;break;case 0:case 11:case 14:case 15:if(!zt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&fh(n,t,o),i=i.next}while(i!==r)}ns(e,t,n);break;case 1:if(!zt&&(ha(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){nt(n,t,l)}ns(e,t,n);break;case 21:ns(e,t,n);break;case 22:n.mode&1?(zt=(r=zt)||n.memoizedState!==null,ns(e,t,n),zt=r):ns(e,t,n);break;default:ns(e,t,n)}}function lv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new XA),t.forEach(function(r){var i=cP.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Fn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=ct()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*nP(r/1960))-r,10e?16:e,Ns===null)var r=!1;else{if(e=Ns,Ns=null,Fd=0,ke&6)throw Error(V(331));var i=ke;for(ke|=4,ee=e.current;ee!==null;){var a=ee,o=a.child;if(ee.flags&16){var l=a.deletions;if(l!==null){for(var c=0;cct()-hx?ji(e,0):mx|=n),dn(e,t)}function l1(e,t){t===0&&(e.mode&1?(t=Nc,Nc<<=1,!(Nc&130023424)&&(Nc=4194304)):t=1);var n=Jt();e=Hr(e,t),e!==null&&(ec(e,t,n),dn(e,n))}function lP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),l1(e,n)}function cP(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(V(314))}r!==null&&r.delete(t),l1(e,n)}var c1;c1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ln.current)on=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return on=!1,QA(e,t,n);on=!!(e.flags&131072)}else on=!1,qe&&t.flags&1048576&&mj(t,Ad,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;nd(e,t),e=t.pendingProps;var i=Ka(t,$t.current);ka(t,n),i=ox(null,t,r,e,i,n);var a=lx();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,cn(r)?(a=!0,Ed(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,nx(t),i.updater=ku,t.stateNode=i,i._reactInternals=t,ih(t,r,e,n),t=lh(null,t,r,!0,a,n)):(t.tag=0,qe&&a&&Zp(t),Qt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(nd(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=uP(r),e=Un(r,e),i){case 0:t=oh(null,t,r,e,n);break e;case 1:t=rv(null,t,r,e,n);break e;case 11:t=tv(null,t,r,e,n);break e;case 14:t=nv(null,t,r,Un(r.type,e),n);break e}throw Error(V(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Un(r,i),oh(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Un(r,i),rv(e,t,r,i,n);case 3:e:{if(Gj(t),e===null)throw Error(V(387));r=t.pendingProps,a=t.memoizedState,i=a.element,vj(e,t),Rd(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Ja(Error(V(423)),t),t=sv(e,t,r,n,i);break e}else if(r!==i){i=Ja(Error(V(424)),t),t=sv(e,t,r,n,i);break e}else for(vn=As(t.stateNode.containerInfo.firstChild),wn=t,qe=!0,Wn=null,n=gj(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Za(),r===i){t=Gr(e,t,n);break e}Qt(e,t,r,n)}t=t.child}return t;case 5:return wj(t),e===null&&nh(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Ym(r,i)?o=null:a!==null&&Ym(r,a)&&(t.flags|=32),Hj(e,t),Qt(e,t,o,n),t.child;case 6:return e===null&&nh(t),null;case 13:return qj(e,t,n);case 4:return rx(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Qa(t,null,r,n):Qt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Un(r,i),tv(e,t,r,i,n);case 7:return Qt(e,t,t.pendingProps,n),t.child;case 8:return Qt(e,t,t.pendingProps.children,n),t.child;case 12:return Qt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Ue(Pd,r._currentValue),r._currentValue=o,a!==null)if(Jn(a.value,o)){if(a.children===i.children&&!ln.current){t=Gr(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(a.tag===1){c=Vr(-1,n&-n),c.tag=2;var d=a.updateQueue;if(d!==null){d=d.shared;var u=d.pending;u===null?c.next=c:(c.next=u.next,u.next=c),d.pending=c}}a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),rh(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(V(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),rh(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Qt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ka(t,n),i=Ln(i),r=r(i),t.flags|=1,Qt(e,t,r,n),t.child;case 14:return r=t.type,i=Un(r,t.pendingProps),i=Un(r.type,i),nv(e,t,r,i,n);case 15:return $j(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Un(r,i),nd(e,t),t.tag=1,cn(r)?(e=!0,Ed(t)):e=!1,ka(t,n),zj(t,r,i),ih(t,r,i,n),lh(null,t,r,!0,e,n);case 19:return Kj(e,t,n);case 22:return Wj(e,t,n)}throw Error(V(156,t.tag))};function d1(e,t){return Ob(e,t)}function dP(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 In(e,t,n,r){return new dP(e,t,n,r)}function yx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function uP(e){if(typeof e=="function")return yx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Op)return 11;if(e===Fp)return 14}return 2}function Is(e,t){var n=e.alternate;return n===null?(n=In(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 id(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")yx(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ia:return Ni(n.children,i,a,t);case Dp:o=8,i|=8;break;case Am:return e=In(12,n,t,i|2),e.elementType=Am,e.lanes=a,e;case Pm:return e=In(13,n,t,i),e.elementType=Pm,e.lanes=a,e;case _m:return e=In(19,n,t,i),e.elementType=_m,e.lanes=a,e;case wb:return Au(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case yb:o=10;break e;case vb:o=9;break e;case Op:o=11;break e;case Fp:o=14;break e;case ls:o=16,r=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=In(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Ni(e,t,n,r){return e=In(7,e,r,t),e.lanes=n,e}function Au(e,t,n,r){return e=In(22,e,r,t),e.elementType=wb,e.lanes=n,e.stateNode={isHidden:!1},e}function Kf(e,t,n){return e=In(6,e,null,t),e.lanes=n,e}function Zf(e,t,n){return t=In(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fP(e,t,n,r,i){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=Af(0),this.expirationTimes=Af(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Af(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function vx(e,t,n,r,i,a,o,l,c){return e=new fP(e,t,n,l,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=In(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},nx(a),e}function mP(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(h1)}catch(e){console.error(e)}}h1(),hb.exports=Sn;var $i=hb.exports;const yP=tb($i);var p1,xv=$i;p1=xv.createRoot,xv.hydrateRoot;function vP(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,i,a,o=[],l="",c=e.split("/");for(c[0]||c.shift();i=c.shift();)n=i[0],n==="*"?(o.push(n),l+=i[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=i.indexOf("?",1),a=i.indexOf(".",1),o.push(i.substring(1,~r?r:~a?a:i.length)),l+=~r&&!~a?"(?:/([^/]+?))?":"/([^/]+?)",~a&&(l+=(~r?"?":"")+"\\"+i.substring(a))):l+="/"+i;return{keys:o,pattern:new RegExp("^"+l+(t?"(?=$|/)":"/?$"),"i")}}var x1={exports:{}},g1={};/** * @license React * use-sync-external-store-shim.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 eo=h;function wP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bP=typeof Object.is=="function"?Object.is:wP,jP=eo.useState,NP=eo.useEffect,CP=eo.useLayoutEffect,SP=eo.useDebugValue;function kP(e,t){var n=t(),r=jP({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return CP(function(){i.value=n,i.getSnapshot=t,Qf(i)&&a({inst:i})},[e,n,t]),NP(function(){return Qf(i)&&a({inst:i}),e(function(){Qf(i)&&a({inst:i})})},[e]),SP(n),n}function Qf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bP(e,n)}catch{return!0}}function EP(e,t){return t()}var TP=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?EP:kP;g1.useSyncExternalStore=eo.useSyncExternalStore!==void 0?eo.useSyncExternalStore:TP;x1.exports=g1;var AP=x1.exports;const PP=fb.useInsertionEffect,_P=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",RP=_P?h.useLayoutEffect:h.useEffect,IP=PP||RP,y1=e=>{const t=h.useRef([e,(...n)=>t[0](...n)]).current;return IP(()=>{t[0]=e}),t[1]},MP="popstate",Nx="pushState",Cx="replaceState",LP="hashchange",gv=[MP,Nx,Cx,LP],DP=e=>{for(const t of gv)addEventListener(t,e);return()=>{for(const t of gv)removeEventListener(t,e)}},v1=(e,t)=>AP.useSyncExternalStore(DP,e,t),OP=()=>location.search,FP=({ssrSearch:e=""}={})=>v1(OP,()=>e),yv=()=>location.pathname,VP=({ssrPath:e}={})=>v1(yv,e?()=>e:yv),zP=(e,{replace:t=!1,state:n=null}={})=>history[t?Cx:Nx](n,"",e),UP=(e={})=>[VP(e),zP],vv=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[vv]>"u"){for(const e of[Nx,Cx]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,vv,{value:!0})}const BP=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",w1=(e="")=>e==="/"?"":e,$P=(e,t)=>e[0]==="~"?e.slice(1):w1(t)+e,WP=(e="",t)=>BP(wv(w1(e)),wv(t)),wv=e=>{try{return decodeURI(e)}catch{return e}},b1={hook:UP,searchHook:FP,parser:vP,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:e=>e},j1=h.createContext(b1),xo=()=>h.useContext(j1),N1={},C1=h.createContext(N1),HP=()=>h.useContext(C1),Mu=e=>{const[t,n]=e.hook(e);return[WP(e.base,t),y1((r,i)=>n($P(r,e.base),i))]},go=()=>Mu(xo()),Sx=(e,t,n,r)=>{const{pattern:i,keys:a}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),o=i.exec(n)||[],[l,...c]=o;return l!==void 0?[!0,(()=>{const d=a!==!1?Object.fromEntries(a.map((f,m)=>[f,c[m]])):o.groups;let u={...c};return d&&Object.assign(u,d),u})(),...r?[l]:[]]:[!1,null]},S1=e=>Sx(xo().parser,e,go()[0]),GP=({children:e,...t})=>{var u,f;const n=xo(),r=t.hook?b1:n;let i=r;const[a,o]=((u=t.ssrPath)==null?void 0:u.split("?"))??[];o&&(t.ssrSearch=o,t.ssrPath=a),t.hrefs=t.hrefs??((f=t.hook)==null?void 0:f.hrefs);let l=h.useRef({}),c=l.current,d=c;for(let m in r){const y=m==="base"?r[m]+(t[m]||""):t[m]||r[m];c===d&&y!==d[m]&&(l.current=d={...d}),d[m]=y,y!==r[m]&&(i=d)}return h.createElement(j1.Provider,{value:i,children:e})},bv=({children:e,component:t},n)=>t?h.createElement(t,{params:n}):typeof e=="function"?e(n):e,qP=e=>{let t=h.useRef(N1),n=t.current;for(const r in e)e[r]!==n[r]&&(n=e);return Object.keys(e).length===0&&(n=e),t.current=n},Ge=({path:e,nest:t,match:n,...r})=>{const i=xo(),[a]=Mu(i),[o,l,c]=n??Sx(i.parser,e,a,t),d=qP({...HP(),...l});if(!o)return null;const u=c?h.createElement(GP,{base:c},bv(r,d)):bv(r,d);return h.createElement(C1.Provider,{value:d,children:u})},lt=h.forwardRef((e,t)=>{const n=xo(),[r,i]=Mu(n),{to:a="",href:o=a,onClick:l,asChild:c,children:d,className:u,replace:f,state:m,...y}=e,b=y1(w=>{w.ctrlKey||w.metaKey||w.altKey||w.shiftKey||w.button!==0||(l==null||l(w),w.defaultPrevented||(w.preventDefault(),i(o,e)))}),x=n.hrefs(o[0]==="~"?o.slice(1):n.base+o,n);return c&&h.isValidElement(d)?h.cloneElement(d,{onClick:b,href:x}):h.createElement("a",{...y,onClick:b,href:x,className:u!=null&&u.call?u(r===o):u,children:d,ref:t})}),k1=e=>Array.isArray(e)?e.flatMap(t=>k1(t&&t.type===h.Fragment?t.props.children:t)):[e],KP=({children:e,location:t})=>{const n=xo(),[r]=Mu(n);for(const i of k1(e)){let a=0;if(h.isValidElement(i)&&(a=Sx(n.parser,i.props.path,t||r,i.props.nest))[0])return h.cloneElement(i,{match:a})}return null};var yo=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(){}},_i=typeof window>"u"||"Deno"in globalThis;function Pn(){}function ZP(e,t){return typeof e=="function"?e(t):e}function wh(e){return typeof e=="number"&&e>=0&&e!==1/0}function E1(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ta(e,t){return typeof e=="function"?e(t):e}function Hn(e,t){return typeof e=="function"?e(t):e}function jv(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==kx(o,t.options))return!1}else if(!Al(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||a&&!a(t))}function Nv(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Ri(t.options.mutationKey)!==Ri(a))return!1}else if(!Al(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function kx(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ri)(e)}function Ri(e){return JSON.stringify(e,(t,n)=>bh(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Al(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Al(e[n],t[n])):!1}function T1(e,t){if(e===t)return e;const n=Cv(e)&&Cv(t);if(n||bh(e)&&bh(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),o=a.length,l=n?[]:{};let c=0;for(let d=0;d{setTimeout(t,e)})}function jh(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?T1(e,t):t}function YP(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function JP(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ex=Symbol();function A1(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ex?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var pi,ms,Ma,Hw,XP=(Hw=class extends yo{constructor(){super();le(this,pi);le(this,ms);le(this,Ma);Z(this,Ma,t=>{if(!_i&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){S(this,ms)||this.setEventListener(S(this,Ma))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,ms))==null||t.call(this),Z(this,ms,void 0))}setEventListener(t){var n;Z(this,Ma,t),(n=S(this,ms))==null||n.call(this),Z(this,ms,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){S(this,pi)!==t&&(Z(this,pi,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof S(this,pi)=="boolean"?S(this,pi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},pi=new WeakMap,ms=new WeakMap,Ma=new WeakMap,Hw),Tx=new XP,La,hs,Da,Gw,e_=(Gw=class extends yo{constructor(){super();le(this,La,!0);le(this,hs);le(this,Da);Z(this,Da,t=>{if(!_i&&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(){S(this,hs)||this.setEventListener(S(this,Da))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,hs))==null||t.call(this),Z(this,hs,void 0))}setEventListener(t){var n;Z(this,Da,t),(n=S(this,hs))==null||n.call(this),Z(this,hs,t(this.setOnline.bind(this)))}setOnline(t){S(this,La)!==t&&(Z(this,La,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return S(this,La)}},La=new WeakMap,hs=new WeakMap,Da=new WeakMap,Gw),Bd=new e_;function Nh(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function t_(e){return Math.min(1e3*2**e,3e4)}function P1(e){return(e??"online")==="online"?Bd.isOnline():!0}var _1=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Yf(e){return e instanceof _1}function R1(e){let t=!1,n=0,r=!1,i;const a=Nh(),o=x=>{var w;r||(m(new _1(x)),(w=e.abort)==null||w.call(e))},l=()=>{t=!0},c=()=>{t=!1},d=()=>Tx.isFocused()&&(e.networkMode==="always"||Bd.isOnline())&&e.canRun(),u=()=>P1(e.networkMode)&&e.canRun(),f=x=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,x),i==null||i(),a.resolve(x))},m=x=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,x),i==null||i(),a.reject(x))},y=()=>new Promise(x=>{var w;i=g=>{(r||d())&&x(g)},(w=e.onPause)==null||w.call(e)}).then(()=>{var x;i=void 0,r||(x=e.onContinue)==null||x.call(e)}),b=()=>{if(r)return;let x;const w=n===0?e.initialPromise:void 0;try{x=w??e.fn()}catch(g){x=Promise.reject(g)}Promise.resolve(x).then(f).catch(g=>{var T;if(r)return;const p=e.retry??(_i?0:3),v=e.retryDelay??t_,j=typeof v=="function"?v(n,g):v,N=p===!0||typeof p=="number"&&nd()?void 0:y()).then(()=>{t?m(g):b()})})};return{promise:a,cancel:o,continue:()=>(i==null||i(),a),cancelRetry:l,continueRetry:c,canStart:u,start:()=>(u()?b():y().then(b),a)}}function n_(){let e=[],t=0,n=l=>{l()},r=l=>{l()},i=l=>setTimeout(l,0);const a=l=>{t?e.push(l):i(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&i(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},batchCalls:l=>(...c)=>{a(()=>{l(...c)})},schedule:a,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{i=l}}}var Nt=n_(),xi,qw,I1=(qw=class{constructor(){le(this,xi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wh(this.gcTime)&&Z(this,xi,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(_i?1/0:5*60*1e3))}clearGcTimeout(){S(this,xi)&&(clearTimeout(S(this,xi)),Z(this,xi,void 0))}},xi=new WeakMap,qw),Oa,Fa,An,Ft,Zl,gi,Bn,Tr,Kw,r_=(Kw=class extends I1{constructor(t){super();le(this,Bn);le(this,Oa);le(this,Fa);le(this,An);le(this,Ft);le(this,Zl);le(this,gi);Z(this,gi,!1),Z(this,Zl,t.defaultOptions),this.setOptions(t.options),this.observers=[],Z(this,An,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Z(this,Oa,s_(this.options)),this.state=t.state??S(this,Oa),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=S(this,Ft))==null?void 0:t.promise}setOptions(t){this.options={...S(this,Zl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,An).remove(this)}setData(t,n){const r=jh(this.state.data,t,this.options);return ye(this,Bn,Tr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ye(this,Bn,Tr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=S(this,Ft))==null?void 0:r.promise;return(i=S(this,Ft))==null||i.cancel(t),n?n.then(Pn).catch(Pn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,Oa))}isActive(){return this.observers.some(t=>Hn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ex||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!E1(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=S(this,Ft))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=S(this,Ft))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),S(this,An).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(S(this,Ft)&&(S(this,gi)?S(this,Ft).cancel({revert:!0}):S(this,Ft).cancelRetry()),this.scheduleGc()),S(this,An).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ye(this,Bn,Tr).call(this,{type:"invalidate"})}fetch(t,n){var c,d,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(S(this,Ft))return S(this,Ft).continueRetry(),S(this,Ft).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(m=>m.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(Z(this,gi,!0),r.signal)})},a=()=>{const f=A1(this.options,n),m={queryKey:this.queryKey,meta:this.meta};return i(m),Z(this,gi,!1),this.options.persister?this.options.persister(f,m,this):f(m)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(o),(c=this.options.behavior)==null||c.onFetch(o,this),Z(this,Fa,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=o.fetchOptions)==null?void 0:d.meta))&&ye(this,Bn,Tr).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const l=f=>{var m,y,b,x;Yf(f)&&f.silent||ye(this,Bn,Tr).call(this,{type:"error",error:f}),Yf(f)||((y=(m=S(this,An).config).onError)==null||y.call(m,f,this),(x=(b=S(this,An).config).onSettled)==null||x.call(b,this.state.data,f,this)),this.scheduleGc()};return Z(this,Ft,R1({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var m,y,b,x;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(w){l(w);return}(y=(m=S(this,An).config).onSuccess)==null||y.call(m,f,this),(x=(b=S(this,An).config).onSettled)==null||x.call(b,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,m)=>{ye(this,Bn,Tr).call(this,{type:"failed",failureCount:f,error:m})},onPause:()=>{ye(this,Bn,Tr).call(this,{type:"pause"})},onContinue:()=>{ye(this,Bn,Tr).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),S(this,Ft).start()}},Oa=new WeakMap,Fa=new WeakMap,An=new WeakMap,Ft=new WeakMap,Zl=new WeakMap,gi=new WeakMap,Bn=new WeakSet,Tr=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,...M1(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...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 i=t.error;return Yf(i)&&i.revert&&S(this,Fa)?{...S(this,Fa),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Nt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),S(this,An).notify({query:this,type:"updated",action:t})})},Kw);function M1(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:P1(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function s_(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 ir,Zw,i_=(Zw=class extends yo{constructor(t={}){super();le(this,ir);this.config=t,Z(this,ir,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??kx(i,n);let o=this.get(a);return o||(o=new r_({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){S(this,ir).has(t.queryHash)||(S(this,ir).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=S(this,ir).get(t.queryHash);n&&(t.destroy(),n===t&&S(this,ir).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Nt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return S(this,ir).get(t)}getAll(){return[...S(this,ir).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>jv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>jv(t,r)):n}notify(t){Nt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Nt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Nt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ir=new WeakMap,Zw),ar,qt,yi,or,is,Qw,a_=(Qw=class extends I1{constructor(t){super();le(this,or);le(this,ar);le(this,qt);le(this,yi);this.mutationId=t.mutationId,Z(this,qt,t.mutationCache),Z(this,ar,[]),this.state=t.state||L1(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){S(this,ar).includes(t)||(S(this,ar).push(t),this.clearGcTimeout(),S(this,qt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Z(this,ar,S(this,ar).filter(n=>n!==t)),this.scheduleGc(),S(this,qt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){S(this,ar).length||(this.state.status==="pending"?this.scheduleGc():S(this,qt).remove(this))}continue(){var t;return((t=S(this,yi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,o,l,c,d,u,f,m,y,b,x,w,g,p,v,j,N,T,k;Z(this,yi,R1({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(E,A)=>{ye(this,or,is).call(this,{type:"failed",failureCount:E,error:A})},onPause:()=>{ye(this,or,is).call(this,{type:"pause"})},onContinue:()=>{ye(this,or,is).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,qt).canRun(this)}));const n=this.state.status==="pending",r=!S(this,yi).canStart();try{if(!n){ye(this,or,is).call(this,{type:"pending",variables:t,isPaused:r}),await((a=(i=S(this,qt).config).onMutate)==null?void 0:a.call(i,t,this));const A=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));A!==this.state.context&&ye(this,or,is).call(this,{type:"pending",context:A,variables:t,isPaused:r})}const E=await S(this,yi).start();return await((d=(c=S(this,qt).config).onSuccess)==null?void 0:d.call(c,E,t,this.state.context,this)),await((f=(u=this.options).onSuccess)==null?void 0:f.call(u,E,t,this.state.context)),await((y=(m=S(this,qt).config).onSettled)==null?void 0:y.call(m,E,null,this.state.variables,this.state.context,this)),await((x=(b=this.options).onSettled)==null?void 0:x.call(b,E,null,t,this.state.context)),ye(this,or,is).call(this,{type:"success",data:E}),E}catch(E){try{throw await((g=(w=S(this,qt).config).onError)==null?void 0:g.call(w,E,t,this.state.context,this)),await((v=(p=this.options).onError)==null?void 0:v.call(p,E,t,this.state.context)),await((N=(j=S(this,qt).config).onSettled)==null?void 0:N.call(j,void 0,E,this.state.variables,this.state.context,this)),await((k=(T=this.options).onSettled)==null?void 0:k.call(T,void 0,E,t,this.state.context)),E}finally{ye(this,or,is).call(this,{type:"error",error:E})}}finally{S(this,qt).runNext(this)}}},ar=new WeakMap,qt=new WeakMap,yi=new WeakMap,or=new WeakSet,is=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),Nt.batch(()=>{S(this,ar).forEach(r=>{r.onMutationUpdate(t)}),S(this,qt).notify({mutation:this,type:"updated",action:t})})},Qw);function L1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pn,Ql,Yw,o_=(Yw=class extends yo{constructor(t={}){super();le(this,pn);le(this,Ql);this.config=t,Z(this,pn,new Map),Z(this,Ql,Date.now())}build(t,n,r){const i=new a_({mutationCache:this,mutationId:++gc(this,Ql)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Lc(t),r=S(this,pn).get(n)??[];r.push(t),S(this,pn).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Lc(t);if(S(this,pn).has(n)){const i=(r=S(this,pn).get(n))==null?void 0:r.filter(a=>a!==t);i&&(i.length===0?S(this,pn).delete(n):S(this,pn).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=S(this,pn).get(Lc(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=S(this,pn).get(Lc(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Nt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...S(this,pn).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Nv(n,r))}findAll(t={}){return this.getAll().filter(n=>Nv(t,n))}notify(t){Nt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Nt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Pn))))}},pn=new WeakMap,Ql=new WeakMap,Yw);function Lc(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function kv(e){return{onFetch:(t,n)=>{var u,f,m,y,b;const r=t.options,i=(m=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:m.direction,a=((y=t.state.data)==null?void 0:y.pages)||[],o=((b=t.state.data)==null?void 0:b.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const d=async()=>{let x=!1;const w=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?x=!0:t.signal.addEventListener("abort",()=>{x=!0}),t.signal)})},g=A1(t.options,t.fetchOptions),p=async(v,j,N)=>{if(x)return Promise.reject();if(j==null&&v.pages.length)return Promise.resolve(v);const T={queryKey:t.queryKey,pageParam:j,direction:N?"backward":"forward",meta:t.options.meta};w(T);const k=await g(T),{maxPages:E}=t.options,A=N?JP:YP;return{pages:A(v.pages,k,E),pageParams:A(v.pageParams,j,E)}};if(i&&a.length){const v=i==="backward",j=v?l_:Ev,N={pages:a,pageParams:o},T=j(r,N);l=await p(N,T,v)}else{const v=e??a.length;do{const j=c===0?o[0]??r.initialPageParam:Ev(r,l);if(c>0&&j==null)break;l=await p(l,j),c++}while(c{var x,w;return(w=(x=t.options).persister)==null?void 0:w.call(x,d,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=d}}}function Ev(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 l_(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 et,ps,xs,Va,za,gs,Ua,Ba,Jw,c_=(Jw=class{constructor(e={}){le(this,et);le(this,ps);le(this,xs);le(this,Va);le(this,za);le(this,gs);le(this,Ua);le(this,Ba);Z(this,et,e.queryCache||new i_),Z(this,ps,e.mutationCache||new o_),Z(this,xs,e.defaultOptions||{}),Z(this,Va,new Map),Z(this,za,new Map),Z(this,gs,0)}mount(){gc(this,gs)._++,S(this,gs)===1&&(Z(this,Ua,Tx.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,et).onFocus())})),Z(this,Ba,Bd.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,et).onOnline())})))}unmount(){var e,t;gc(this,gs)._--,S(this,gs)===0&&((e=S(this,Ua))==null||e.call(this),Z(this,Ua,void 0),(t=S(this,Ba))==null||t.call(this),Z(this,Ba,void 0))}isFetching(e){return S(this,et).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return S(this,ps).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=S(this,et).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=S(this,et).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Ta(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return S(this,et).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=S(this,et).get(r.queryHash),a=i==null?void 0:i.state.data,o=ZP(t,a);if(o!==void 0)return S(this,et).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Nt.batch(()=>S(this,et).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=S(this,et).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=S(this,et);Nt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=S(this,et),r={type:"active",...e};return Nt.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Nt.batch(()=>S(this,et).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Pn).catch(Pn)}invalidateQueries(e={},t={}){return Nt.batch(()=>{if(S(this,et).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Nt.batch(()=>S(this,et).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(Pn)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Pn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=S(this,et).build(this,t);return n.isStaleByTime(Ta(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pn).catch(Pn)}fetchInfiniteQuery(e){return e.behavior=kv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pn).catch(Pn)}ensureInfiniteQueryData(e){return e.behavior=kv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Bd.isOnline()?S(this,ps).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,et)}getMutationCache(){return S(this,ps)}getDefaultOptions(){return S(this,xs)}setDefaultOptions(e){Z(this,xs,e)}setQueryDefaults(e,t){S(this,Va).set(Ri(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...S(this,Va).values()];let n={};return t.forEach(r=>{Al(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){S(this,za).set(Ri(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...S(this,za).values()];let n={};return t.forEach(r=>{Al(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...S(this,xs).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=kx(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.enabled!==!0&&t.queryFn===Ex&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...S(this,xs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){S(this,et).clear(),S(this,ps).clear()}},et=new WeakMap,ps=new WeakMap,xs=new WeakMap,Va=new WeakMap,za=new WeakMap,gs=new WeakMap,Ua=new WeakMap,Ba=new WeakMap,Jw),rn,Ne,Yl,Kt,vi,$a,ys,lr,Jl,Wa,Ha,wi,bi,vs,Ga,Ie,Uo,Ch,Sh,kh,Eh,Th,Ah,Ph,D1,Xw,d_=(Xw=class extends yo{constructor(t,n){super();le(this,Ie);le(this,rn);le(this,Ne);le(this,Yl);le(this,Kt);le(this,vi);le(this,$a);le(this,ys);le(this,lr);le(this,Jl);le(this,Wa);le(this,Ha);le(this,wi);le(this,bi);le(this,vs);le(this,Ga,new Set);this.options=n,Z(this,rn,t),Z(this,lr,null),Z(this,ys,Nh()),this.options.experimental_prefetchInRender||S(this,ys).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,Ne).addObserver(this),Tv(S(this,Ne),this.options)?ye(this,Ie,Uo).call(this):this.updateResult(),ye(this,Ie,Eh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _h(S(this,Ne),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _h(S(this,Ne),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ye(this,Ie,Th).call(this),ye(this,Ie,Ah).call(this),S(this,Ne).removeObserver(this)}setOptions(t,n){const r=this.options,i=S(this,Ne);if(this.options=S(this,rn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Hn(this.options.enabled,S(this,Ne))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ye(this,Ie,Ph).call(this),S(this,Ne).setOptions(this.options),r._defaulted&&!Ud(this.options,r)&&S(this,rn).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,Ne),observer:this});const a=this.hasListeners();a&&Av(S(this,Ne),i,this.options,r)&&ye(this,Ie,Uo).call(this),this.updateResult(n),a&&(S(this,Ne)!==i||Hn(this.options.enabled,S(this,Ne))!==Hn(r.enabled,S(this,Ne))||Ta(this.options.staleTime,S(this,Ne))!==Ta(r.staleTime,S(this,Ne)))&&ye(this,Ie,Ch).call(this);const o=ye(this,Ie,Sh).call(this);a&&(S(this,Ne)!==i||Hn(this.options.enabled,S(this,Ne))!==Hn(r.enabled,S(this,Ne))||o!==S(this,vs))&&ye(this,Ie,kh).call(this,o)}getOptimisticResult(t){const n=S(this,rn).getQueryCache().build(S(this,rn),t),r=this.createResult(n,t);return f_(this,r)&&(Z(this,Kt,r),Z(this,$a,this.options),Z(this,vi,S(this,Ne).state)),r}getCurrentResult(){return S(this,Kt)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){S(this,Ga).add(t)}getCurrentQuery(){return S(this,Ne)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=S(this,rn).defaultQueryOptions(t),r=S(this,rn).getQueryCache().build(S(this,rn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ye(this,Ie,Uo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,Kt)))}createResult(t,n){var E;const r=S(this,Ne),i=this.options,a=S(this,Kt),o=S(this,vi),l=S(this,$a),d=t!==r?t.state:S(this,Yl),{state:u}=t;let f={...u},m=!1,y;if(n._optimisticResults){const A=this.hasListeners(),R=!A&&Tv(t,n),B=A&&Av(t,r,n,i);(R||B)&&(f={...f,...M1(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:b,errorUpdatedAt:x,status:w}=f;if(n.select&&f.data!==void 0)if(a&&f.data===(o==null?void 0:o.data)&&n.select===S(this,Jl))y=S(this,Wa);else try{Z(this,Jl,n.select),y=n.select(f.data),y=jh(a==null?void 0:a.data,y,n),Z(this,Wa,y),Z(this,lr,null)}catch(A){Z(this,lr,A)}else y=f.data;if(n.placeholderData!==void 0&&y===void 0&&w==="pending"){let A;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))A=a.data;else if(A=typeof n.placeholderData=="function"?n.placeholderData((E=S(this,Ha))==null?void 0:E.state.data,S(this,Ha)):n.placeholderData,n.select&&A!==void 0)try{A=n.select(A),Z(this,lr,null)}catch(R){Z(this,lr,R)}A!==void 0&&(w="success",y=jh(a==null?void 0:a.data,A,n),m=!0)}S(this,lr)&&(b=S(this,lr),y=S(this,Wa),x=Date.now(),w="error");const g=f.fetchStatus==="fetching",p=w==="pending",v=w==="error",j=p&&g,N=y!==void 0,k={status:w,fetchStatus:f.fetchStatus,isPending:p,isSuccess:w==="success",isError:v,isInitialLoading:j,isLoading:j,data:y,dataUpdatedAt:f.dataUpdatedAt,error:b,errorUpdatedAt:x,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>d.dataUpdateCount||f.errorUpdateCount>d.errorUpdateCount,isFetching:g,isRefetching:g&&!p,isLoadingError:v&&!N,isPaused:f.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:v&&N,isStale:Ax(t,n),refetch:this.refetch,promise:S(this,ys)};if(this.options.experimental_prefetchInRender){const A=L=>{k.status==="error"?L.reject(k.error):k.data!==void 0&&L.resolve(k.data)},R=()=>{const L=Z(this,ys,k.promise=Nh());A(L)},B=S(this,ys);switch(B.status){case"pending":t.queryHash===r.queryHash&&A(B);break;case"fulfilled":(k.status==="error"||k.data!==B.value)&&R();break;case"rejected":(k.status!=="error"||k.error!==B.reason)&&R();break}}return k}updateResult(t){const n=S(this,Kt),r=this.createResult(S(this,Ne),this.options);if(Z(this,vi,S(this,Ne).state),Z(this,$a,this.options),S(this,vi).data!==void 0&&Z(this,Ha,S(this,Ne)),Ud(r,n))return;Z(this,Kt,r);const i={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!S(this,Ga).size)return!0;const c=new Set(l??S(this,Ga));return this.options.throwOnError&&c.add("error"),Object.keys(S(this,Kt)).some(d=>{const u=d;return S(this,Kt)[u]!==n[u]&&c.has(u)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),ye(this,Ie,D1).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ye(this,Ie,Eh).call(this)}},rn=new WeakMap,Ne=new WeakMap,Yl=new WeakMap,Kt=new WeakMap,vi=new WeakMap,$a=new WeakMap,ys=new WeakMap,lr=new WeakMap,Jl=new WeakMap,Wa=new WeakMap,Ha=new WeakMap,wi=new WeakMap,bi=new WeakMap,vs=new WeakMap,Ga=new WeakMap,Ie=new WeakSet,Uo=function(t){ye(this,Ie,Ph).call(this);let n=S(this,Ne).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Pn)),n},Ch=function(){ye(this,Ie,Th).call(this);const t=Ta(this.options.staleTime,S(this,Ne));if(_i||S(this,Kt).isStale||!wh(t))return;const r=E1(S(this,Kt).dataUpdatedAt,t)+1;Z(this,wi,setTimeout(()=>{S(this,Kt).isStale||this.updateResult()},r))},Sh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,Ne)):this.options.refetchInterval)??!1},kh=function(t){ye(this,Ie,Ah).call(this),Z(this,vs,t),!(_i||Hn(this.options.enabled,S(this,Ne))===!1||!wh(S(this,vs))||S(this,vs)===0)&&Z(this,bi,setInterval(()=>{(this.options.refetchIntervalInBackground||Tx.isFocused())&&ye(this,Ie,Uo).call(this)},S(this,vs)))},Eh=function(){ye(this,Ie,Ch).call(this),ye(this,Ie,kh).call(this,ye(this,Ie,Sh).call(this))},Th=function(){S(this,wi)&&(clearTimeout(S(this,wi)),Z(this,wi,void 0))},Ah=function(){S(this,bi)&&(clearInterval(S(this,bi)),Z(this,bi,void 0))},Ph=function(){const t=S(this,rn).getQueryCache().build(S(this,rn),this.options);if(t===S(this,Ne))return;const n=S(this,Ne);Z(this,Ne,t),Z(this,Yl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},D1=function(t){Nt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(S(this,Kt))}),S(this,rn).getQueryCache().notify({query:S(this,Ne),type:"observerResultsUpdated"})})},Xw);function u_(e,t){return Hn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Tv(e,t){return u_(e,t)||e.state.data!==void 0&&_h(e,t,t.refetchOnMount)}function _h(e,t,n){if(Hn(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Ax(e,t)}return!1}function Av(e,t,n,r){return(e!==t||Hn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ax(e,n)}function Ax(e,t){return Hn(t.enabled,e)!==!1&&e.isStaleByTime(Ta(t.staleTime,e))}function f_(e,t){return!Ud(e.getCurrentResult(),t)}var ws,bs,sn,Ir,Br,ad,Rh,eb,m_=(eb=class extends yo{constructor(n,r){super();le(this,Br);le(this,ws);le(this,bs);le(this,sn);le(this,Ir);Z(this,ws,n),this.setOptions(r),this.bindMethods(),ye(this,Br,ad).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=S(this,ws).defaultMutationOptions(n),Ud(this.options,r)||S(this,ws).getMutationCache().notify({type:"observerOptionsUpdated",mutation:S(this,sn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ri(r.mutationKey)!==Ri(this.options.mutationKey)?this.reset():((i=S(this,sn))==null?void 0:i.state.status)==="pending"&&S(this,sn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=S(this,sn))==null||n.removeObserver(this)}onMutationUpdate(n){ye(this,Br,ad).call(this),ye(this,Br,Rh).call(this,n)}getCurrentResult(){return S(this,bs)}reset(){var n;(n=S(this,sn))==null||n.removeObserver(this),Z(this,sn,void 0),ye(this,Br,ad).call(this),ye(this,Br,Rh).call(this)}mutate(n,r){var i;return Z(this,Ir,r),(i=S(this,sn))==null||i.removeObserver(this),Z(this,sn,S(this,ws).getMutationCache().build(S(this,ws),this.options)),S(this,sn).addObserver(this),S(this,sn).execute(n)}},ws=new WeakMap,bs=new WeakMap,sn=new WeakMap,Ir=new WeakMap,Br=new WeakSet,ad=function(){var r;const n=((r=S(this,sn))==null?void 0:r.state)??L1();Z(this,bs,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Rh=function(n){Nt.batch(()=>{var r,i,a,o,l,c,d,u;if(S(this,Ir)&&this.hasListeners()){const f=S(this,bs).variables,m=S(this,bs).context;(n==null?void 0:n.type)==="success"?((i=(r=S(this,Ir)).onSuccess)==null||i.call(r,n.data,f,m),(o=(a=S(this,Ir)).onSettled)==null||o.call(a,n.data,null,f,m)):(n==null?void 0:n.type)==="error"&&((c=(l=S(this,Ir)).onError)==null||c.call(l,n.error,f,m),(u=(d=S(this,Ir)).onSettled)==null||u.call(d,void 0,n.error,f,m))}this.listeners.forEach(f=>{f(S(this,bs))})})},eb),O1=h.createContext(void 0),Lu=e=>{const t=h.useContext(O1);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},h_=({client:e,children:t})=>(h.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),s.jsx(O1.Provider,{value:e,children:t})),F1=h.createContext(!1),p_=()=>h.useContext(F1);F1.Provider;function x_(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var g_=h.createContext(x_()),y_=()=>h.useContext(g_);function V1(e,t){return typeof e=="function"?e(...t):!!e}function Ih(){}var v_=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},w_=e=>{h.useEffect(()=>{e.clearReset()},[e])},b_=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&V1(n,[e.error,r]),j_=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},N_=(e,t)=>e.isLoading&&e.isFetching&&!t,C_=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Pv=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function S_(e,t,n){var u,f,m,y,b;const r=Lu(),i=p_(),a=y_(),o=r.defaultQueryOptions(e);(f=(u=r.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||f.call(u,o),o._optimisticResults=i?"isRestoring":"optimistic",j_(o),v_(o,a),w_(a);const l=!r.getQueryCache().get(o.queryHash),[c]=h.useState(()=>new t(r,o)),d=c.getOptimisticResult(o);if(h.useSyncExternalStore(h.useCallback(x=>{const w=i?Ih:c.subscribe(Nt.batchCalls(x));return c.updateResult(),w},[c,i]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),h.useEffect(()=>{c.setOptions(o,{listeners:!1})},[o,c]),C_(o,d))throw Pv(o,c,a);if(b_({result:d,errorResetBoundary:a,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash)}))throw d.error;if((y=(m=r.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||y.call(m,o,d),o.experimental_prefetchInRender&&!_i&&N_(d,i)){const x=l?Pv(o,c,a):(b=r.getQueryCache().get(o.queryHash))==null?void 0:b.promise;x==null||x.catch(Ih).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?d:c.trackResult(d)}function $d(e,t){return S_(e,d_)}function Aa(e,t){const n=Lu(),[r]=h.useState(()=>new m_(n,e));h.useEffect(()=>{r.setOptions(e)},[r,e]);const i=h.useSyncExternalStore(h.useCallback(o=>r.subscribe(Nt.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=h.useCallback((o,l)=>{r.mutate(o,l).catch(Ih)},[r]);if(i.error&&V1(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}let Bo=null;function z1(){return Bo||(Bo=localStorage.getItem("session-id")||`session_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,localStorage.setItem("session-id",Bo)),Bo}function U1(e){Bo=e,localStorage.setItem("session-id",e)}async function B1(e){if(!e.ok){const t=await e.text()||e.statusText;throw new Error(`${e.status}: ${t}`)}}async function Mr(e,t,n){const r={"x-session-id":z1()};n&&(r["Content-Type"]="application/json");const i=await fetch(t,{method:e,headers:r,body:n?JSON.stringify(n):void 0,credentials:"include"}),a=i.headers.get("x-session-id");return a&&U1(a),await B1(i),i}const k_=({on401:e})=>async({queryKey:t})=>{const n=await fetch(t[0],{credentials:"include",headers:{"x-session-id":z1()}}),r=n.headers.get("x-session-id");return r&&U1(r),e==="returnNull"&&n.status===401?null:(await B1(n),await n.json())},E_=new c_({defaultOptions:{queries:{queryFn:k_({on401:"throw"}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}}),T_=1,A_=1e6;let Jf=0;function P_(){return Jf=(Jf+1)%Number.MAX_SAFE_INTEGER,Jf.toString()}const Xf=new Map,_v=e=>{if(Xf.has(e))return;const t=setTimeout(()=>{Xf.delete(e),sl({type:"REMOVE_TOAST",toastId:e})},A_);Xf.set(e,t)},__=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,T_)};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?_v(n):e.toasts.forEach(r=>{_v(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)}}},od=[];let ld={toasts:[]};function sl(e){ld=__(ld,e),od.forEach(t=>{t(ld)})}function R_({...e}){const t=P_(),n=i=>sl({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>sl({type:"DISMISS_TOAST",toastId:t});return sl({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function Wi(){const[e,t]=h.useState(ld);return h.useEffect(()=>(od.push(t),()=>{const n=od.indexOf(t);n>-1&&od.splice(n,1)}),[e]),{...e,toast:R_,dismiss:n=>sl({type:"DISMISS_TOAST",toastId:n})}}function ae(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Rv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $1(...e){return t=>{let n=!1;const r=e.map(i=>{const a=Rv(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i{const{children:o,...l}=a,c=h.useMemo(()=>l,Object.values(l));return s.jsx(n.Provider,{value:c,children:o})};r.displayName=e+"Provider";function i(a){const o=h.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,i]}function On(e,t=[]){let n=[];function r(a,o){const l=h.createContext(o),c=n.length;n=[...n,o];const d=f=>{var g;const{scope:m,children:y,...b}=f,x=((g=m==null?void 0:m[e])==null?void 0:g[c])||l,w=h.useMemo(()=>b,Object.values(b));return s.jsx(x.Provider,{value:w,children:y})};d.displayName=a+"Provider";function u(f,m){var x;const y=((x=m==null?void 0:m[e])==null?void 0:x[c])||l,b=h.useContext(y);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[d,u]}const i=()=>{const a=n.map(o=>h.createContext(o));return function(l){const c=(l==null?void 0:l[e])||a;return h.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return i.scopeName=e,[r,M_(i,...t)]}function M_(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=r.reduce((l,{useScope:c,scopeName:d})=>{const f=c(a)[`__scope${d}`];return{...l,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function to(e){const t=L_(e),n=h.forwardRef((r,i)=>{const{children:a,...o}=r,l=h.Children.toArray(a),c=l.find(O_);if(c){const d=c.props.children,u=l.map(f=>f===c?h.Children.count(d)>1?h.Children.only(null):h.isValidElement(d)?d.props.children:null:f);return s.jsx(t,{...o,ref:i,children:h.isValidElement(d)?h.cloneElement(d,void 0,u):null})}return s.jsx(t,{...o,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}var W1=to("Slot");function L_(e){const t=h.forwardRef((n,r)=>{const{children:i,...a}=n;if(h.isValidElement(i)){const o=V_(i),l=F_(a,i.props);return i.type!==h.Fragment&&(l.ref=r?$1(r,o):o),h.cloneElement(i,l)}return h.Children.count(i)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var H1=Symbol("radix.slottable");function D_(e){const t=({children:n})=>s.jsx(s.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=H1,t}function O_(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===H1}function F_(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...l)=>{a(...l),i(...l)}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function V_(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Du(e){const t=e+"CollectionProvider",[n,r]=On(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=x=>{const{scope:w,children:g}=x,p=ie.useRef(null),v=ie.useRef(new Map).current;return s.jsx(i,{scope:w,itemMap:v,collectionRef:p,children:g})};o.displayName=t;const l=e+"CollectionSlot",c=to(l),d=ie.forwardRef((x,w)=>{const{scope:g,children:p}=x,v=a(l,g),j=Fe(w,v.collectionRef);return s.jsx(c,{ref:j,children:p})});d.displayName=l;const u=e+"CollectionItemSlot",f="data-radix-collection-item",m=to(u),y=ie.forwardRef((x,w)=>{const{scope:g,children:p,...v}=x,j=ie.useRef(null),N=Fe(w,j),T=a(u,g);return ie.useEffect(()=>(T.itemMap.set(j,{ref:j,...v}),()=>void T.itemMap.delete(j))),s.jsx(m,{[f]:"",ref:N,children:p})});y.displayName=u;function b(x){const w=a(e+"CollectionConsumer",x);return ie.useCallback(()=>{const p=w.collectionRef.current;if(!p)return[];const v=Array.from(p.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((T,k)=>v.indexOf(T.ref.current)-v.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:o,Slot:d,ItemSlot:y},b,r]}var z_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ue=z_.reduce((e,t)=>{const n=to(`Primitive.${t}`),r=h.forwardRef((i,a)=>{const{asChild:o,...l}=i,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function G1(e,t){e&&$i.flushSync(()=>e.dispatchEvent(t))}function un(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function U_(e,t=globalThis==null?void 0:globalThis.document){const n=un(e);h.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var B_="DismissableLayer",Mh="dismissableLayer.update",$_="dismissableLayer.pointerDownOutside",W_="dismissableLayer.focusOutside",Iv,q1=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sc=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:l,...c}=e,d=h.useContext(q1),[u,f]=h.useState(null),m=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=h.useState({}),b=Fe(t,k=>f(k)),x=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),g=x.indexOf(w),p=u?x.indexOf(u):-1,v=d.layersWithOutsidePointerEventsDisabled.size>0,j=p>=g,N=G_(k=>{const E=k.target,A=[...d.branches].some(R=>R.contains(E));!j||A||(i==null||i(k),o==null||o(k),k.defaultPrevented||l==null||l())},m),T=q_(k=>{const E=k.target;[...d.branches].some(R=>R.contains(E))||(a==null||a(k),o==null||o(k),k.defaultPrevented||l==null||l())},m);return U_(k=>{p===d.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),h.useEffect(()=>{if(u)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Iv=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Mv(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Iv)}},[u,m,n,d]),h.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Mv())},[u,d]),h.useEffect(()=>{const k=()=>y({});return document.addEventListener(Mh,k),()=>document.removeEventListener(Mh,k)},[]),s.jsx(ue.div,{...c,ref:b,style:{pointerEvents:v?j?"auto":"none":void 0,...e.style},onFocusCapture:ae(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ae(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ae(e.onPointerDownCapture,N.onPointerDownCapture)})});sc.displayName=B_;var H_="DismissableLayerBranch",K1=h.forwardRef((e,t)=>{const n=h.useContext(q1),r=h.useRef(null),i=Fe(t,r);return h.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),s.jsx(ue.div,{...e,ref:i})});K1.displayName=H_;function G_(e,t=globalThis==null?void 0:globalThis.document){const n=un(e),r=h.useRef(!1),i=h.useRef(()=>{});return h.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let c=function(){Z1($_,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function q_(e,t=globalThis==null?void 0:globalThis.document){const n=un(e),r=h.useRef(!1);return h.useEffect(()=>{const i=a=>{a.target&&!r.current&&Z1(W_,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Mv(){const e=new CustomEvent(Mh);document.dispatchEvent(e)}function Z1(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?G1(i,a):i.dispatchEvent(a)}var K_=sc,Z_=K1,Mt=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},Q_="Portal",Ou=h.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[i,a]=h.useState(!1);Mt(()=>a(!0),[]);const o=n||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?yP.createPortal(s.jsx(ue.div,{...r,ref:t}),o):null});Ou.displayName=Q_;function Y_(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Ys=e=>{const{present:t,children:n}=e,r=J_(t),i=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),a=Fe(r.ref,X_(i));return typeof n=="function"||r.isPresent?h.cloneElement(i,{ref:a}):null};Ys.displayName="Presence";function J_(e){const[t,n]=h.useState(),r=h.useRef({}),i=h.useRef(e),a=h.useRef("none"),o=e?"mounted":"unmounted",[l,c]=Y_(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const d=Dc(r.current);a.current=l==="mounted"?d:"none"},[l]),Mt(()=>{const d=r.current,u=i.current;if(u!==e){const m=a.current,y=Dc(d);e?c("MOUNT"):y==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(u&&m!==y?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),Mt(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,f=y=>{const x=Dc(r.current).includes(y.animationName);if(y.target===t&&x&&(c("ANIMATION_END"),!i.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},m=y=>{y.target===t&&(a.current=Dc(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function Dc(e){return(e==null?void 0:e.animationName)||"none"}function X_(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function wr({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=e4({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,l=un(n),c=h.useCallback(d=>{if(a){const f=typeof d=="function"?d(e):d;f!==e&&l(f)}else i(d)},[a,e,i,l]);return[o,c]}function e4({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,i=h.useRef(r),a=un(t);return h.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}var t4="VisuallyHidden",ic=h.forwardRef((e,t)=>s.jsx(ue.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ic.displayName=t4;var n4=ic,Px="ToastProvider",[_x,r4,s4]=Du("Toast"),[Q1,Cz]=On("Toast",[s4]),[i4,Fu]=Q1(Px),Y1=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:a=50,children:o}=e,[l,c]=h.useState(null),[d,u]=h.useState(0),f=h.useRef(!1),m=h.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Px}\`. Expected non-empty \`string\`.`),s.jsx(_x.Provider,{scope:t,children:s.jsx(i4,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:a,toastCount:d,viewport:l,onViewportChange:c,onToastAdd:h.useCallback(()=>u(y=>y+1),[]),onToastRemove:h.useCallback(()=>u(y=>y-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:m,children:o})})};Y1.displayName=Px;var J1="ToastViewport",a4=["F8"],Lh="toast.viewportPause",Dh="toast.viewportResume",X1=h.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=a4,label:i="Notifications ({hotkey})",...a}=e,o=Fu(J1,n),l=r4(n),c=h.useRef(null),d=h.useRef(null),u=h.useRef(null),f=h.useRef(null),m=Fe(t,f,o.onViewportChange),y=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=o.toastCount>0;h.useEffect(()=>{const w=g=>{var v;r.length!==0&&r.every(j=>g[j]||g.code===j)&&((v=f.current)==null||v.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),h.useEffect(()=>{const w=c.current,g=f.current;if(b&&w&&g){const p=()=>{if(!o.isClosePausedRef.current){const T=new CustomEvent(Lh);g.dispatchEvent(T),o.isClosePausedRef.current=!0}},v=()=>{if(o.isClosePausedRef.current){const T=new CustomEvent(Dh);g.dispatchEvent(T),o.isClosePausedRef.current=!1}},j=T=>{!w.contains(T.relatedTarget)&&v()},N=()=>{w.contains(document.activeElement)||v()};return w.addEventListener("focusin",p),w.addEventListener("focusout",j),w.addEventListener("pointermove",p),w.addEventListener("pointerleave",N),window.addEventListener("blur",p),window.addEventListener("focus",v),()=>{w.removeEventListener("focusin",p),w.removeEventListener("focusout",j),w.removeEventListener("pointermove",p),w.removeEventListener("pointerleave",N),window.removeEventListener("blur",p),window.removeEventListener("focus",v)}}},[b,o.isClosePausedRef]);const x=h.useCallback(({tabbingDirection:w})=>{const p=l().map(v=>{const j=v.ref.current,N=[j,...v4(j)];return w==="forwards"?N:N.reverse()});return(w==="forwards"?p.reverse():p).flat()},[l]);return h.useEffect(()=>{const w=f.current;if(w){const g=p=>{var N,T,k;const v=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!v){const E=document.activeElement,A=p.shiftKey;if(p.target===w&&A){(N=d.current)==null||N.focus();return}const L=x({tabbingDirection:A?"backwards":"forwards"}),F=L.findIndex(D=>D===E);em(L.slice(F+1))?p.preventDefault():A?(T=d.current)==null||T.focus():(k=u.current)==null||k.focus()}};return w.addEventListener("keydown",g),()=>w.removeEventListener("keydown",g)}},[l,x]),s.jsxs(Z_,{ref:c,role:"region","aria-label":i.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&s.jsx(Oh,{ref:d,onFocusFromOutsideViewport:()=>{const w=x({tabbingDirection:"forwards"});em(w)}}),s.jsx(_x.Slot,{scope:n,children:s.jsx(ue.ol,{tabIndex:-1,...a,ref:m})}),b&&s.jsx(Oh,{ref:u,onFocusFromOutsideViewport:()=>{const w=x({tabbingDirection:"backwards"});em(w)}})]})});X1.displayName=J1;var eN="ToastFocusProxy",Oh=h.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,a=Fu(eN,n);return s.jsx(ic,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var d;const l=o.relatedTarget;!((d=a.viewport)!=null&&d.contains(l))&&r()}})});Oh.displayName=eN;var Vu="Toast",o4="toast.swipeStart",l4="toast.swipeMove",c4="toast.swipeCancel",d4="toast.swipeEnd",tN=h.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:a,...o}=e,[l=!0,c]=wr({prop:r,defaultProp:i,onChange:a});return s.jsx(Ys,{present:n||l,children:s.jsx(m4,{open:l,...o,ref:t,onClose:()=>c(!1),onPause:un(e.onPause),onResume:un(e.onResume),onSwipeStart:ae(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ae(e.onSwipeMove,d=>{const{x:u,y:f}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:ae(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ae(e.onSwipeEnd,d=>{const{x:u,y:f}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),c(!1)})})})});tN.displayName=Vu;var[u4,f4]=Q1(Vu,{onClose(){}}),m4=h.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:a,onClose:o,onEscapeKeyDown:l,onPause:c,onResume:d,onSwipeStart:u,onSwipeMove:f,onSwipeCancel:m,onSwipeEnd:y,...b}=e,x=Fu(Vu,n),[w,g]=h.useState(null),p=Fe(t,D=>g(D)),v=h.useRef(null),j=h.useRef(null),N=i||x.duration,T=h.useRef(0),k=h.useRef(N),E=h.useRef(0),{onToastAdd:A,onToastRemove:R}=x,B=un(()=>{var se;(w==null?void 0:w.contains(document.activeElement))&&((se=x.viewport)==null||se.focus()),o()}),L=h.useCallback(D=>{!D||D===1/0||(window.clearTimeout(E.current),T.current=new Date().getTime(),E.current=window.setTimeout(B,D))},[B]);h.useEffect(()=>{const D=x.viewport;if(D){const se=()=>{L(k.current),d==null||d()},q=()=>{const K=new Date().getTime()-T.current;k.current=k.current-K,window.clearTimeout(E.current),c==null||c()};return D.addEventListener(Lh,q),D.addEventListener(Dh,se),()=>{D.removeEventListener(Lh,q),D.removeEventListener(Dh,se)}}},[x.viewport,N,c,d,L]),h.useEffect(()=>{a&&!x.isClosePausedRef.current&&L(N)},[a,N,x.isClosePausedRef,L]),h.useEffect(()=>(A(),()=>R()),[A,R]);const F=h.useMemo(()=>w?lN(w):null,[w]);return x.viewport?s.jsxs(s.Fragment,{children:[F&&s.jsx(h4,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:F}),s.jsx(u4,{scope:n,onClose:B,children:$i.createPortal(s.jsx(_x.ItemSlot,{scope:n,children:s.jsx(K_,{asChild:!0,onEscapeKeyDown:ae(l,()=>{x.isFocusedToastEscapeKeyDownRef.current||B(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:s.jsx(ue.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":x.swipeDirection,...b,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ae(e.onKeyDown,D=>{D.key==="Escape"&&(l==null||l(D.nativeEvent),D.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,B()))}),onPointerDown:ae(e.onPointerDown,D=>{D.button===0&&(v.current={x:D.clientX,y:D.clientY})}),onPointerMove:ae(e.onPointerMove,D=>{if(!v.current)return;const se=D.clientX-v.current.x,q=D.clientY-v.current.y,K=!!j.current,_=["left","right"].includes(x.swipeDirection),z=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,X=_?z(0,se):0,me=_?0:z(0,q),Ae=D.pointerType==="touch"?10:2,St={x:X,y:me},it={originalEvent:D,delta:St};K?(j.current=St,Oc(l4,f,it,{discrete:!1})):Lv(St,x.swipeDirection,Ae)?(j.current=St,Oc(o4,u,it,{discrete:!1}),D.target.setPointerCapture(D.pointerId)):(Math.abs(se)>Ae||Math.abs(q)>Ae)&&(v.current=null)}),onPointerUp:ae(e.onPointerUp,D=>{const se=j.current,q=D.target;if(q.hasPointerCapture(D.pointerId)&&q.releasePointerCapture(D.pointerId),j.current=null,v.current=null,se){const K=D.currentTarget,_={originalEvent:D,delta:se};Lv(se,x.swipeDirection,x.swipeThreshold)?Oc(d4,y,_,{discrete:!0}):Oc(c4,m,_,{discrete:!0}),K.addEventListener("click",z=>z.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),h4=e=>{const{__scopeToast:t,children:n,...r}=e,i=Fu(Vu,t),[a,o]=h.useState(!1),[l,c]=h.useState(!1);return g4(()=>o(!0)),h.useEffect(()=>{const d=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(d)},[]),l?null:s.jsx(Ou,{asChild:!0,children:s.jsx(ic,{...r,children:a&&s.jsxs(s.Fragment,{children:[i.label," ",n]})})})},p4="ToastTitle",nN=h.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return s.jsx(ue.div,{...r,ref:t})});nN.displayName=p4;var x4="ToastDescription",rN=h.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return s.jsx(ue.div,{...r,ref:t})});rN.displayName=x4;var sN="ToastAction",iN=h.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?s.jsx(oN,{altText:n,asChild:!0,children:s.jsx(Rx,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${sN}\`. Expected non-empty \`string\`.`),null)});iN.displayName=sN;var aN="ToastClose",Rx=h.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=f4(aN,n);return s.jsx(oN,{asChild:!0,children:s.jsx(ue.button,{type:"button",...r,ref:t,onClick:ae(e.onClick,i.onClose)})})});Rx.displayName=aN;var oN=h.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return s.jsx(ue.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function lN(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),y4(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!i)if(a){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...lN(r))}}),t}function Oc(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?G1(i,a):i.dispatchEvent(a)}var Lv=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t==="left"||t==="right"?a&&r>n:!a&&i>n};function g4(e=()=>{}){const t=un(e);Mt(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function y4(e){return e.nodeType===e.ELEMENT_NODE}function v4(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function em(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var w4=Y1,cN=X1,dN=tN,uN=nN,fN=rN,mN=iN,hN=Rx;function pN(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Ov=xN,ac=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Ov(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(d=>{const u=n==null?void 0:n[d],f=a==null?void 0:a[d];if(u===null)return null;const m=Dv(u)||Dv(f);return i[d][m]}),l=n&&Object.entries(n).reduce((d,u)=>{let[f,m]=u;return m===void 0||(d[f]=m),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,u)=>{let{class:f,className:m,...y}=u;return Object.entries(y).every(b=>{let[x,w]=b;return Array.isArray(w)?w.includes({...a,...l}[x]):{...a,...l}[x]===w})?[...d,f,m]:d},[]);return Ov(e,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const b4=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gN=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var j4={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.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const N4=h.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:o,...l},c)=>h.createElement("svg",{ref:c,...j4,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:gN("lucide",i),...l},[...o.map(([d,u])=>h.createElement(d,u)),...Array.isArray(a)?a:[a]]));/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $=(e,t)=>{const n=h.forwardRef(({className:r,...i},a)=>h.createElement(N4,{ref:a,iconNode:t,className:gN(`lucide-${b4(e)}`,r),...i}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yN=$("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fn=$("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Js=$("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const C4=$("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const S4=$("BookMarked",[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Be=$("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fh=$("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const k4=$("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const vN=$("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wN=$("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bN=$("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ii=$("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const E4=$("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wd=$("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zu=$("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fv=$("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const T4=$("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jN=$("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Vh=$("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const he=$("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Uu=$("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.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Vv=$("Clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Hi=$("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const A4=$("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zh=$("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const P4=$("CopyCheck",[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const no=$("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const NN=$("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Bu=$("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _4=$("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Uh=$("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const CN=$("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ke=$("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const R4=$("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const oc=$("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Cr=$("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const I4=$("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const M4=$("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const SN=$("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const L4=$("Leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $u=$("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const kN=$("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ix=$("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const D4=$("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qr=$("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Mx=$("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const O4=$("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Bh=$("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const F4=$("MessagesSquare",[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z",key:"p1xzt8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const V4=$("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const EN=$("PenTool",[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const z4=$("PencilLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}],["path",{d:"m15 5 3 3",key:"1w25hb"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const TN=$("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cd=$("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const AN=$("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const U4=$("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const B4=$("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const PN=$("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $4=$("School",[["path",{d:"M14 22v-4a2 2 0 1 0-4 0v4",key:"hhkicm"}],["path",{d:"m18 10 4 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-8l4-2",key:"1vwozw"}],["path",{d:"M18 5v17",key:"1sw6gf"}],["path",{d:"m4 6 8-4 8 4",key:"1q0ilc"}],["path",{d:"M6 5v17",key:"1xfsm0"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const W4=$("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hr=$("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const H4=$("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wu=$("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _N=$("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Hu=$("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Hd=$("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Lx=$("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const RN=$("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Dx=$("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const IN=$("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const G4=$("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Gu=$("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const q4=$("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wt=$("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const MN=$("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qu=$("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fs=$("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Ox="-",K4=e=>{const t=Q4(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const l=o.split(Ox);return l[0]===""&&l.length!==1&&l.shift(),LN(l,t)||Z4(o)},getConflictingClassGroupIds:(o,l)=>{const c=n[o]||[];return l&&r[o]?[...c,...r[o]]:c}}},LN=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?LN(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(Ox);return(o=t.validators.find(({validator:l})=>l(a)))==null?void 0:o.classGroupId},zv=/^\[(.+)\]$/,Z4=e=>{if(zv.test(e)){const t=zv.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Q4=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return J4(Object.entries(e.classGroups),n).forEach(([a,o])=>{$h(o,r,a,t)}),r},$h=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:Uv(t,i);a.classGroupId=n;return}if(typeof i=="function"){if(Y4(i)){$h(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([a,o])=>{$h(o,Uv(t,a),n,r)})})},Uv=(e,t)=>{let n=e;return t.split(Ox).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Y4=e=>e.isThemeGetter,J4=(e,t)=>t?e.map(([n,r])=>{const i=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,l])=>[t+o,l])):a);return[n,i]}):e,X4=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(a,o)=>{n.set(a,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let o=n.get(a);if(o!==void 0)return o;if((o=r.get(a))!==void 0)return i(a,o),o},set(a,o){n.has(a)?n.set(a,o):i(a,o)}}},DN="!",eR=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],a=t.length,o=l=>{const c=[];let d=0,u=0,f;for(let w=0;wu?f-u:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:b,maybePostfixModifierPosition:x}};return n?l=>n({className:l,parseClassName:o}):o},tR=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},nR=e=>({cache:X4(e.cacheSize),parseClassName:eR(e),...K4(e)}),rR=/\s+/,sR=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(rR);let l="";for(let c=o.length-1;c>=0;c-=1){const d=o[c],{modifiers:u,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:y}=n(d);let b=!!y,x=r(b?m.substring(0,y):m);if(!x){if(!b){l=d+(l.length>0?" "+l:l);continue}if(x=r(m),!x){l=d+(l.length>0?" "+l:l);continue}b=!1}const w=tR(u).join(":"),g=f?w+DN:w,p=g+x;if(a.includes(p))continue;a.push(p);const v=i(x,b);for(let j=0;j0?" "+l:l)}return l};function iR(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(u),e());return n=nR(d),r=n.cache.get,i=n.cache.set,a=l,l(c)}function l(c){const d=r(c);if(d)return d;const u=sR(c,n);return i(c,u),u}return function(){return a(iR.apply(null,arguments))}}const $e=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},FN=/^\[(?:([a-z-]+):)?(.+)\]$/i,oR=/^\d+\/\d+$/,lR=new Set(["px","full","screen"]),cR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dR=/\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$/,uR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kr=e=>Pa(e)||lR.has(e)||oR.test(e),rs=e=>vo(e,"length",bR),Pa=e=>!!e&&!Number.isNaN(Number(e)),tm=e=>vo(e,"number",Pa),Ro=e=>!!e&&Number.isInteger(Number(e)),hR=e=>e.endsWith("%")&&Pa(e.slice(0,-1)),ge=e=>FN.test(e),ss=e=>cR.test(e),pR=new Set(["length","size","percentage"]),xR=e=>vo(e,pR,VN),gR=e=>vo(e,"position",VN),yR=new Set(["image","url"]),vR=e=>vo(e,yR,NR),wR=e=>vo(e,"",jR),Io=()=>!0,vo=(e,t,n)=>{const r=FN.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},bR=e=>dR.test(e)&&!uR.test(e),VN=()=>!1,jR=e=>fR.test(e),NR=e=>mR.test(e),CR=()=>{const e=$e("colors"),t=$e("spacing"),n=$e("blur"),r=$e("brightness"),i=$e("borderColor"),a=$e("borderRadius"),o=$e("borderSpacing"),l=$e("borderWidth"),c=$e("contrast"),d=$e("grayscale"),u=$e("hueRotate"),f=$e("invert"),m=$e("gap"),y=$e("gradientColorStops"),b=$e("gradientColorStopPositions"),x=$e("inset"),w=$e("margin"),g=$e("opacity"),p=$e("padding"),v=$e("saturate"),j=$e("scale"),N=$e("sepia"),T=$e("skew"),k=$e("space"),E=$e("translate"),A=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",ge,t],L=()=>[ge,t],F=()=>["",kr,rs],D=()=>["auto",Pa,ge],se=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>["start","end","center","between","around","evenly","stretch"],z=()=>["","0",ge],X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],me=()=>[Pa,ge];return{cacheSize:500,separator:":",theme:{colors:[Io],spacing:[kr,rs],blur:["none","",ss,ge],brightness:me(),borderColor:[e],borderRadius:["none","","full",ss,ge],borderSpacing:L(),borderWidth:F(),contrast:me(),grayscale:z(),hueRotate:me(),invert:z(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[hR,rs],inset:B(),margin:B(),opacity:me(),padding:L(),saturate:me(),scale:me(),sepia:z(),skew:me(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",ge]}],container:["container"],columns:[{columns:[ss]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"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:[...se(),ge]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ro,ge]}],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",ge]}],grow:[{grow:z()}],shrink:[{shrink:z()}],order:[{order:["first","last","none",Ro,ge]}],"grid-cols":[{"grid-cols":[Io]}],"col-start-end":[{col:["auto",{span:["full",Ro,ge]},ge]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[Io]}],"row-start-end":[{row:["auto",{span:[Ro,ge]},ge]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ge]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",..._()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._(),"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":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ge,t]}],"min-w":[{"min-w":[ge,t,"min","max","fit"]}],"max-w":[{"max-w":[ge,t,"none","full","min","max","fit","prose",{screen:[ss]},ss]}],h:[{h:[ge,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ge,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ge,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ge,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ss,rs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",tm]}],"font-family":[{font:[Io]}],"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",ge]}],"line-clamp":[{"line-clamp":["none",Pa,tm]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",kr,ge]}],"list-image":[{"list-image":["none",ge]}],"list-style-type":[{list:["none","disc","decimal",ge]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",kr,rs]}],"underline-offset":[{"underline-offset":["auto",kr,ge]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge]}],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",ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...se(),gR]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xR]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vR]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"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":[g]}],"border-style":[{border:[...q(),"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":[g]}],"divide-style":[{divide:q()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[kr,ge]}],"outline-w":[{outline:[kr,rs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[kr,rs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ss,wR]}],"shadow-color":[{shadow:[Io]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ss,ge]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ge]}],duration:[{duration:me()}],ease:[{ease:["linear","in","out","in-out",ge]}],delay:[{delay:me()}],animate:[{animate:["none","spin","ping","pulse","bounce",ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[Ro,ge]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ge]}],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",ge]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[kr,rs,tm]}],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"]}}},SR=aR(CR);function re(...e){return SR(xN(e))}const kR=w4,zN=h.forwardRef(({className:e,...t},n)=>s.jsx(cN,{ref:n,className:re("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}));zN.displayName=cN.displayName;const ER=ac("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"}}),UN=h.forwardRef(({className:e,variant:t,...n},r)=>s.jsx(dN,{ref:r,className:re(ER({variant:t}),e),...n}));UN.displayName=dN.displayName;const TR=h.forwardRef(({className:e,...t},n)=>s.jsx(mN,{ref:n,className:re("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 hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));TR.displayName=mN.displayName;const BN=h.forwardRef(({className:e,...t},n)=>s.jsx(hN,{ref:n,className:re("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:s.jsx(qu,{className:"h-4 w-4"})}));BN.displayName=hN.displayName;const $N=h.forwardRef(({className:e,...t},n)=>s.jsx(uN,{ref:n,className:re("text-sm font-semibold",e),...t}));$N.displayName=uN.displayName;const WN=h.forwardRef(({className:e,...t},n)=>s.jsx(fN,{ref:n,className:re("text-sm opacity-90",e),...t}));WN.displayName=fN.displayName;function AR(){const{toasts:e}=Wi();return s.jsxs(kR,{children:[e.map(function({id:t,title:n,description:r,action:i,...a}){return s.jsxs(UN,{...a,children:[s.jsxs("div",{className:"grid gap-1",children:[n&&s.jsx($N,{children:n}),r&&s.jsx(WN,{children:r})]}),i,s.jsx(BN,{})]},t)}),s.jsx(zN,{})]})}var PR=fb[" useId ".trim().toString()]||(()=>{}),_R=0;function pr(e){const[t,n]=h.useState(PR());return Mt(()=>{n(r=>r??String(_R++))},[e]),t?`radix-${t}`:""}const RR=["top","right","bottom","left"],Vs=Math.min,yn=Math.max,Gd=Math.round,Fc=Math.floor,xr=e=>({x:e,y:e}),IR={left:"right",right:"left",bottom:"top",top:"bottom"},MR={start:"end",end:"start"};function Wh(e,t,n){return yn(e,Vs(t,n))}function Kr(e,t){return typeof e=="function"?e(t):e}function Zr(e){return e.split("-")[0]}function wo(e){return e.split("-")[1]}function Fx(e){return e==="x"?"y":"x"}function Vx(e){return e==="y"?"height":"width"}function zs(e){return["top","bottom"].includes(Zr(e))?"y":"x"}function zx(e){return Fx(zs(e))}function LR(e,t,n){n===void 0&&(n=!1);const r=wo(e),i=zx(e),a=Vx(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=qd(o)),[o,qd(o)]}function DR(e){const t=qd(e);return[Hh(e),t,Hh(t)]}function Hh(e){return e.replace(/start|end/g,t=>MR[t])}function OR(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function FR(e,t,n,r){const i=wo(e);let a=OR(Zr(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Hh)))),a}function qd(e){return e.replace(/left|right|bottom|top/g,t=>IR[t])}function VR(e){return{top:0,right:0,bottom:0,left:0,...e}}function HN(e){return typeof e!="number"?VR(e):{top:e,right:e,bottom:e,left:e}}function Kd(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Bv(e,t,n){let{reference:r,floating:i}=e;const a=zs(t),o=zx(t),l=Vx(o),c=Zr(t),d=a==="y",u=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,m=r[l]/2-i[l]/2;let y;switch(c){case"top":y={x:u,y:r.y-i.height};break;case"bottom":y={x:u,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:f};break;case"left":y={x:r.x-i.width,y:f};break;default:y={x:r.x,y:r.y}}switch(wo(t)){case"start":y[o]-=m*(n&&d?-1:1);break;case"end":y[o]+=m*(n&&d?-1:1);break}return y}const zR=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,l=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:f}=Bv(d,r,c),m=r,y={},b=0;for(let x=0;x({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:l,middlewareData:c}=t,{element:d,padding:u=0}=Kr(e,t)||{};if(d==null)return{};const f=HN(u),m={x:n,y:r},y=zx(i),b=Vx(y),x=await o.getDimensions(d),w=y==="y",g=w?"top":"left",p=w?"bottom":"right",v=w?"clientHeight":"clientWidth",j=a.reference[b]+a.reference[y]-m[y]-a.floating[b],N=m[y]-a.reference[y],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d));let k=T?T[v]:0;(!k||!await(o.isElement==null?void 0:o.isElement(T)))&&(k=l.floating[v]||a.floating[b]);const E=j/2-N/2,A=k/2-x[b]/2-1,R=Vs(f[g],A),B=Vs(f[p],A),L=R,F=k-x[b]-B,D=k/2-x[b]/2+E,se=Wh(L,D,F),q=!c.arrow&&wo(i)!=null&&D!==se&&a.reference[b]/2-(DD<=0)){var B,L;const D=(((B=a.flip)==null?void 0:B.index)||0)+1,se=k[D];if(se)return{data:{index:D,overflows:R},reset:{placement:se}};let q=(L=R.filter(K=>K.overflows[0]<=0).sort((K,_)=>K.overflows[1]-_.overflows[1])[0])==null?void 0:L.placement;if(!q)switch(y){case"bestFit":{var F;const K=(F=R.filter(_=>{if(T){const z=zs(_.placement);return z===p||z==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(z=>z>0).reduce((z,X)=>z+X,0)]).sort((_,z)=>_[1]-z[1])[0])==null?void 0:F[0];K&&(q=K);break}case"initialPlacement":q=l;break}if(i!==q)return{reset:{placement:q}}}return{}}}};function $v(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wv(e){return RR.some(t=>e[t]>=0)}const $R=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Kr(e,t);switch(r){case"referenceHidden":{const a=await Pl(t,{...i,elementContext:"reference"}),o=$v(a,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Wv(o)}}}case"escaped":{const a=await Pl(t,{...i,altBoundary:!0}),o=$v(a,n.floating);return{data:{escapedOffsets:o,escaped:Wv(o)}}}default:return{}}}}};async function WR(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Zr(n),l=wo(n),c=zs(n)==="y",d=["left","top"].includes(o)?-1:1,u=a&&c?-1:1,f=Kr(t,e);let{mainAxis:m,crossAxis:y,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof b=="number"&&(y=l==="end"?b*-1:b),c?{x:y*u,y:m*d}:{x:m*d,y:y*u}}const HR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:l}=t,c=await WR(t,e);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:o}}}}},GR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:l={fn:w=>{let{x:g,y:p}=w;return{x:g,y:p}}},...c}=Kr(e,t),d={x:n,y:r},u=await Pl(t,c),f=zs(Zr(i)),m=Fx(f);let y=d[m],b=d[f];if(a){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",p=y+u[w],v=y-u[g];y=Wh(p,y,v)}if(o){const w=f==="y"?"top":"left",g=f==="y"?"bottom":"right",p=b+u[w],v=b-u[g];b=Wh(p,b,v)}const x=l.fn({...t,[m]:y,[f]:b});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[m]:a,[f]:o}}}}}},qR=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=Kr(e,t),u={x:n,y:r},f=zs(i),m=Fx(f);let y=u[m],b=u[f];const x=Kr(l,t),w=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(c){const v=m==="y"?"height":"width",j=a.reference[m]-a.floating[v]+w.mainAxis,N=a.reference[m]+a.reference[v]-w.mainAxis;yN&&(y=N)}if(d){var g,p;const v=m==="y"?"width":"height",j=["top","left"].includes(Zr(i)),N=a.reference[f]-a.floating[v]+(j&&((g=o.offset)==null?void 0:g[f])||0)+(j?0:w.crossAxis),T=a.reference[f]+a.reference[v]+(j?0:((p=o.offset)==null?void 0:p[f])||0)-(j?w.crossAxis:0);bT&&(b=T)}return{[m]:y,[f]:b}}}},KR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:o,elements:l}=t,{apply:c=()=>{},...d}=Kr(e,t),u=await Pl(t,d),f=Zr(i),m=wo(i),y=zs(i)==="y",{width:b,height:x}=a.floating;let w,g;f==="top"||f==="bottom"?(w=f,g=m===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(g=f,w=m==="end"?"top":"bottom");const p=x-u.top-u.bottom,v=b-u.left-u.right,j=Vs(x-u[w],p),N=Vs(b-u[g],v),T=!t.middlewareData.shift;let k=j,E=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=p),T&&!m){const R=yn(u.left,0),B=yn(u.right,0),L=yn(u.top,0),F=yn(u.bottom,0);y?E=b-2*(R!==0||B!==0?R+B:yn(u.left,u.right)):k=x-2*(L!==0||F!==0?L+F:yn(u.top,u.bottom))}await c({...t,availableWidth:E,availableHeight:k});const A=await o.getDimensions(l.floating);return b!==A.width||x!==A.height?{reset:{rects:!0}}:{}}}};function Ku(){return typeof window<"u"}function bo(e){return GN(e)?(e.nodeName||"").toLowerCase():"#document"}function bn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Sr(e){var t;return(t=(GN(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function GN(e){return Ku()?e instanceof Node||e instanceof bn(e).Node:!1}function Xn(e){return Ku()?e instanceof Element||e instanceof bn(e).Element:!1}function br(e){return Ku()?e instanceof HTMLElement||e instanceof bn(e).HTMLElement:!1}function Hv(e){return!Ku()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bn(e).ShadowRoot}function lc(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=er(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function ZR(e){return["table","td","th"].includes(bo(e))}function Zu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ux(e){const t=Bx(),n=Xn(e)?er(e):e;return["transform","translate","scale","rotate","perspective"].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)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function QR(e){let t=Us(e);for(;br(t)&&!ro(t);){if(Ux(t))return t;if(Zu(t))return null;t=Us(t)}return null}function Bx(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ro(e){return["html","body","#document"].includes(bo(e))}function er(e){return bn(e).getComputedStyle(e)}function Qu(e){return Xn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Us(e){if(bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Hv(e)&&e.host||Sr(e);return Hv(t)?t.host:t}function qN(e){const t=Us(e);return ro(t)?e.ownerDocument?e.ownerDocument.body:e.body:br(t)&&lc(t)?t:qN(t)}function _l(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=qN(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=bn(i);if(a){const l=Gh(o);return t.concat(o,o.visualViewport||[],lc(i)?i:[],l&&n?_l(l):[])}return t.concat(i,_l(i,[],n))}function Gh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function KN(e){const t=er(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=br(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,l=Gd(n)!==a||Gd(r)!==o;return l&&(n=a,r=o),{width:n,height:r,$:l}}function $x(e){return Xn(e)?e:e.contextElement}function _a(e){const t=$x(e);if(!br(t))return xr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=KN(t);let o=(a?Gd(n.width):n.width)/r,l=(a?Gd(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const YR=xr(0);function ZN(e){const t=bn(e);return!Bx()||!t.visualViewport?YR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function JR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==bn(e)?!1:t}function Mi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=$x(e);let o=xr(1);t&&(r?Xn(r)&&(o=_a(r)):o=_a(e));const l=JR(a,n,r)?ZN(a):xr(0);let c=(i.left+l.x)/o.x,d=(i.top+l.y)/o.y,u=i.width/o.x,f=i.height/o.y;if(a){const m=bn(a),y=r&&Xn(r)?bn(r):r;let b=m,x=Gh(b);for(;x&&r&&y!==b;){const w=_a(x),g=x.getBoundingClientRect(),p=er(x),v=g.left+(x.clientLeft+parseFloat(p.paddingLeft))*w.x,j=g.top+(x.clientTop+parseFloat(p.paddingTop))*w.y;c*=w.x,d*=w.y,u*=w.x,f*=w.y,c+=v,d+=j,b=bn(x),x=Gh(b)}}return Kd({width:u,height:f,x:c,y:d})}function Wx(e,t){const n=Qu(e).scrollLeft;return t?t.left+n:Mi(Sr(e)).left+n}function QN(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Wx(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function XR(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=Sr(r),l=t?Zu(t.floating):!1;if(r===o||l&&a)return n;let c={scrollLeft:0,scrollTop:0},d=xr(1);const u=xr(0),f=br(r);if((f||!f&&!a)&&((bo(r)!=="body"||lc(o))&&(c=Qu(r)),br(r))){const y=Mi(r);d=_a(r),u.x=y.x+r.clientLeft,u.y=y.y+r.clientTop}const m=o&&!f&&!a?QN(o,c,!0):xr(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+u.x+m.x,y:n.y*d.y-c.scrollTop*d.y+u.y+m.y}}function eI(e){return Array.from(e.getClientRects())}function tI(e){const t=Sr(e),n=Qu(e),r=e.ownerDocument.body,i=yn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=yn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Wx(e);const l=-n.scrollTop;return er(r).direction==="rtl"&&(o+=yn(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:l}}function nI(e,t){const n=bn(e),r=Sr(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,l=0,c=0;if(i){a=i.width,o=i.height;const d=Bx();(!d||d&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:l,y:c}}function rI(e,t){const n=Mi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=br(e)?_a(e):xr(1),o=e.clientWidth*a.x,l=e.clientHeight*a.y,c=i*a.x,d=r*a.y;return{width:o,height:l,x:c,y:d}}function Gv(e,t,n){let r;if(t==="viewport")r=nI(e,n);else if(t==="document")r=tI(Sr(e));else if(Xn(t))r=rI(t,n);else{const i=ZN(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Kd(r)}function YN(e,t){const n=Us(e);return n===t||!Xn(n)||ro(n)?!1:er(n).position==="fixed"||YN(n,t)}function sI(e,t){const n=t.get(e);if(n)return n;let r=_l(e,[],!1).filter(l=>Xn(l)&&bo(l)!=="body"),i=null;const a=er(e).position==="fixed";let o=a?Us(e):e;for(;Xn(o)&&!ro(o);){const l=er(o),c=Ux(o);!c&&l.position==="fixed"&&(i=null),(a?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||lc(o)&&!c&&YN(e,o))?r=r.filter(u=>u!==o):i=l,o=Us(o)}return t.set(e,r),r}function iI(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?Zu(t)?[]:sI(t,this._c):[].concat(n),r],l=o[0],c=o.reduce((d,u)=>{const f=Gv(t,u,i);return d.top=yn(f.top,d.top),d.right=Vs(f.right,d.right),d.bottom=Vs(f.bottom,d.bottom),d.left=yn(f.left,d.left),d},Gv(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function aI(e){const{width:t,height:n}=KN(e);return{width:t,height:n}}function oI(e,t,n){const r=br(t),i=Sr(t),a=n==="fixed",o=Mi(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const c=xr(0);if(r||!r&&!a)if((bo(t)!=="body"||lc(i))&&(l=Qu(t)),r){const m=Mi(t,!0,a,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else i&&(c.x=Wx(i));const d=i&&!r&&!a?QN(i,l):xr(0),u=o.left+l.scrollLeft-c.x-d.x,f=o.top+l.scrollTop-c.y-d.y;return{x:u,y:f,width:o.width,height:o.height}}function nm(e){return er(e).position==="static"}function qv(e,t){if(!br(e)||er(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Sr(e)===n&&(n=n.ownerDocument.body),n}function JN(e,t){const n=bn(e);if(Zu(e))return n;if(!br(e)){let i=Us(e);for(;i&&!ro(i);){if(Xn(i)&&!nm(i))return i;i=Us(i)}return n}let r=qv(e,t);for(;r&&ZR(r)&&nm(r);)r=qv(r,t);return r&&ro(r)&&nm(r)&&!Ux(r)?n:r||QR(e)||n}const lI=async function(e){const t=this.getOffsetParent||JN,n=this.getDimensions,r=await n(e.floating);return{reference:oI(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function cI(e){return er(e).direction==="rtl"}const dI={convertOffsetParentRelativeRectToViewportRelativeRect:XR,getDocumentElement:Sr,getClippingRect:iI,getOffsetParent:JN,getElementRects:lI,getClientRects:eI,getDimensions:aI,getScale:_a,isElement:Xn,isRTL:cI};function XN(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function uI(e,t){let n=null,r;const i=Sr(e);function a(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:u,top:f,width:m,height:y}=d;if(l||t(),!m||!y)return;const b=Fc(f),x=Fc(i.clientWidth-(u+m)),w=Fc(i.clientHeight-(f+y)),g=Fc(u),v={rootMargin:-b+"px "+-x+"px "+-w+"px "+-g+"px",threshold:yn(0,Vs(1,c))||1};let j=!0;function N(T){const k=T[0].intersectionRatio;if(k!==c){if(!j)return o();k?o(!1,k):r=setTimeout(()=>{o(!1,1e-7)},1e3)}k===1&&!XN(d,e.getBoundingClientRect())&&o(),j=!1}try{n=new IntersectionObserver(N,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(N,v)}n.observe(e)}return o(!0),a}function fI(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=$x(e),u=i||a?[...d?_l(d):[],..._l(t)]:[];u.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),a&&g.addEventListener("resize",n)});const f=d&&l?uI(d,n):null;let m=-1,y=null;o&&(y=new ResizeObserver(g=>{let[p]=g;p&&p.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var v;(v=y)==null||v.observe(t)})),n()}),d&&!c&&y.observe(d),y.observe(t));let b,x=c?Mi(e):null;c&&w();function w(){const g=Mi(e);x&&!XN(x,g)&&n(),x=g,b=requestAnimationFrame(w)}return n(),()=>{var g;u.forEach(p=>{i&&p.removeEventListener("scroll",n),a&&p.removeEventListener("resize",n)}),f==null||f(),(g=y)==null||g.disconnect(),y=null,c&&cancelAnimationFrame(b)}}const mI=HR,hI=GR,pI=BR,xI=KR,gI=$R,Kv=UR,yI=qR,vI=(e,t,n)=>{const r=new Map,i={platform:dI,...n},a={...i.platform,_c:r};return zR(e,t,{...i,platform:a})};var dd=typeof document<"u"?h.useLayoutEffect:h.useEffect;function Zd(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,i;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(!Zd(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!Zd(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function eC(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zv(e,t){const n=eC(e);return Math.round(t*n)/n}function rm(e){const t=h.useRef(e);return dd(()=>{t.current=e}),t}function wI(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[u,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,y]=h.useState(r);Zd(m,r)||y(r);const[b,x]=h.useState(null),[w,g]=h.useState(null),p=h.useCallback(_=>{_!==T.current&&(T.current=_,x(_))},[]),v=h.useCallback(_=>{_!==k.current&&(k.current=_,g(_))},[]),j=a||b,N=o||w,T=h.useRef(null),k=h.useRef(null),E=h.useRef(u),A=c!=null,R=rm(c),B=rm(i),L=rm(d),F=h.useCallback(()=>{if(!T.current||!k.current)return;const _={placement:t,strategy:n,middleware:m};B.current&&(_.platform=B.current),vI(T.current,k.current,_).then(z=>{const X={...z,isPositioned:L.current!==!1};D.current&&!Zd(E.current,X)&&(E.current=X,$i.flushSync(()=>{f(X)}))})},[m,t,n,B,L]);dd(()=>{d===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(_=>({..._,isPositioned:!1})))},[d]);const D=h.useRef(!1);dd(()=>(D.current=!0,()=>{D.current=!1}),[]),dd(()=>{if(j&&(T.current=j),N&&(k.current=N),j&&N){if(R.current)return R.current(j,N,F);F()}},[j,N,F,R,A]);const se=h.useMemo(()=>({reference:T,floating:k,setReference:p,setFloating:v}),[p,v]),q=h.useMemo(()=>({reference:j,floating:N}),[j,N]),K=h.useMemo(()=>{const _={position:n,left:0,top:0};if(!q.floating)return _;const z=Zv(q.floating,u.x),X=Zv(q.floating,u.y);return l?{..._,transform:"translate("+z+"px, "+X+"px)",...eC(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:X}},[n,l,q.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:F,refs:se,elements:q,floatingStyles:K}),[u,F,se,q,K])}const bI=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Kv({element:r.current,padding:i}).fn(n):{}:r?Kv({element:r,padding:i}).fn(n):{}}}},jI=(e,t)=>({...mI(e),options:[e,t]}),NI=(e,t)=>({...hI(e),options:[e,t]}),CI=(e,t)=>({...yI(e),options:[e,t]}),SI=(e,t)=>({...pI(e),options:[e,t]}),kI=(e,t)=>({...xI(e),options:[e,t]}),EI=(e,t)=>({...gI(e),options:[e,t]}),TI=(e,t)=>({...bI(e),options:[e,t]});var AI="Arrow",tC=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...a}=e;return s.jsx(ue.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});tC.displayName=AI;var PI=tC;function nC(e){const[t,n]=h.useState(void 0);return Mt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,l;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;o=d.inlineSize,l=d.blockSize}else o=e.offsetWidth,l=e.offsetHeight;n({width:o,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Hx="Popper",[rC,Yu]=On(Hx),[_I,sC]=rC(Hx),iC=e=>{const{__scopePopper:t,children:n}=e,[r,i]=h.useState(null);return s.jsx(_I,{scope:t,anchor:r,onAnchorChange:i,children:n})};iC.displayName=Hx;var aC="PopperAnchor",oC=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=sC(aC,n),o=h.useRef(null),l=Fe(t,o);return h.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:s.jsx(ue.div,{...i,ref:l})});oC.displayName=aC;var Gx="PopperContent",[RI,II]=rC(Gx),lC=h.forwardRef((e,t)=>{var oe,ze,ut,Me,Ee,Pe;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:y="optimized",onPlaced:b,...x}=e,w=sC(Gx,n),[g,p]=h.useState(null),v=Fe(t,Gt=>p(Gt)),[j,N]=h.useState(null),T=nC(j),k=(T==null?void 0:T.width)??0,E=(T==null?void 0:T.height)??0,A=r+(a!=="center"?"-"+a:""),R=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},B=Array.isArray(d)?d:[d],L=B.length>0,F={padding:R,boundary:B.filter(LI),altBoundary:L},{refs:D,floatingStyles:se,placement:q,isPositioned:K,middlewareData:_}=wI({strategy:"fixed",placement:A,whileElementsMounted:(...Gt)=>fI(...Gt,{animationFrame:y==="always"}),elements:{reference:w.anchor},middleware:[jI({mainAxis:i+E,alignmentAxis:o}),c&&NI({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?CI():void 0,...F}),c&&SI({...F}),kI({...F,apply:({elements:Gt,rects:hn,availableWidth:ni,availableHeight:es})=>{const{width:ts,height:wf}=hn.reference,Zi=Gt.floating.style;Zi.setProperty("--radix-popper-available-width",`${ni}px`),Zi.setProperty("--radix-popper-available-height",`${es}px`),Zi.setProperty("--radix-popper-anchor-width",`${ts}px`),Zi.setProperty("--radix-popper-anchor-height",`${wf}px`)}}),j&&TI({element:j,padding:l}),DI({arrowWidth:k,arrowHeight:E}),m&&EI({strategy:"referenceHidden",...F})]}),[z,X]=uC(q),me=un(b);Mt(()=>{K&&(me==null||me())},[K,me]);const Ae=(oe=_.arrow)==null?void 0:oe.x,St=(ze=_.arrow)==null?void 0:ze.y,it=((ut=_.arrow)==null?void 0:ut.centerOffset)!==0,[mn,Tt]=h.useState();return Mt(()=>{g&&Tt(window.getComputedStyle(g).zIndex)},[g]),s.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...se,transform:K?se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:mn,"--radix-popper-transform-origin":[(Me=_.transformOrigin)==null?void 0:Me.x,(Ee=_.transformOrigin)==null?void 0:Ee.y].join(" "),...((Pe=_.hide)==null?void 0:Pe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(RI,{scope:n,placedSide:z,onArrowChange:N,arrowX:Ae,arrowY:St,shouldHideArrow:it,children:s.jsx(ue.div,{"data-side":z,"data-align":X,...x,ref:v,style:{...x.style,animation:K?void 0:"none"}})})})});lC.displayName=Gx;var cC="PopperArrow",MI={top:"bottom",right:"left",bottom:"top",left:"right"},dC=h.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,a=II(cC,r),o=MI[a.placedSide];return s.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:s.jsx(PI,{...i,ref:n,style:{...i.style,display:"block"}})})});dC.displayName=cC;function LI(e){return e!==null}var DI=e=>({name:"transformOrigin",options:e,fn(t){var w,g,p;const{placement:n,rects:r,middlewareData:i}=t,o=((w=i.arrow)==null?void 0:w.centerOffset)!==0,l=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[d,u]=uC(n),f={start:"0%",center:"50%",end:"100%"}[u],m=(((g=i.arrow)==null?void 0:g.x)??0)+l/2,y=(((p=i.arrow)==null?void 0:p.y)??0)+c/2;let b="",x="";return d==="bottom"?(b=o?f:`${m}px`,x=`${-c}px`):d==="top"?(b=o?f:`${m}px`,x=`${r.floating.height+c}px`):d==="right"?(b=`${-c}px`,x=o?f:`${y}px`):d==="left"&&(b=`${r.floating.width+c}px`,x=o?f:`${y}px`),{data:{x:b,y:x}}}});function uC(e){const[t,n="center"]=e.split("-");return[t,n]}var OI=iC,fC=oC,mC=lC,hC=dC,[Ju,Sz]=On("Tooltip",[Yu]),qx=Yu(),pC="TooltipProvider",FI=700,Qv="tooltip.open",[VI,xC]=Ju(pC),gC=e=>{const{__scopeTooltip:t,delayDuration:n=FI,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=h.useRef(!0),l=h.useRef(!1),c=h.useRef(0);return h.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),s.jsx(VI,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:h.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:h.useCallback(d=>{l.current=d},[]),disableHoverableContent:i,children:a})};gC.displayName=pC;var yC="Tooltip",[kz,Xu]=Ju(yC),qh="TooltipTrigger",zI=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Xu(qh,n),a=xC(qh,n),o=qx(n),l=h.useRef(null),c=Fe(t,l,i.onTriggerChange),d=h.useRef(!1),u=h.useRef(!1),f=h.useCallback(()=>d.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),s.jsx(fC,{asChild:!0,...o,children:s.jsx(ue.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:c,onPointerMove:ae(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:ae(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:ae(e.onPointerDown,()=>{i.open&&i.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ae(e.onFocus,()=>{d.current||i.onOpen()}),onBlur:ae(e.onBlur,i.onClose),onClick:ae(e.onClick,i.onClose)})})});zI.displayName=qh;var UI="TooltipPortal",[Ez,BI]=Ju(UI,{forceMount:void 0}),so="TooltipContent",vC=h.forwardRef((e,t)=>{const n=BI(so,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,o=Xu(so,e.__scopeTooltip);return s.jsx(Ys,{present:r||o.open,children:o.disableHoverableContent?s.jsx(wC,{side:i,...a,ref:t}):s.jsx($I,{side:i,...a,ref:t})})}),$I=h.forwardRef((e,t)=>{const n=Xu(so,e.__scopeTooltip),r=xC(so,e.__scopeTooltip),i=h.useRef(null),a=Fe(t,i),[o,l]=h.useState(null),{trigger:c,onClose:d}=n,u=i.current,{onPointerInTransitChange:f}=r,m=h.useCallback(()=>{l(null),f(!1)},[f]),y=h.useCallback((b,x)=>{const w=b.currentTarget,g={x:b.clientX,y:b.clientY},p=KI(g,w.getBoundingClientRect()),v=ZI(g,p),j=QI(x.getBoundingClientRect()),N=JI([...v,...j]);l(N),f(!0)},[f]);return h.useEffect(()=>()=>m(),[m]),h.useEffect(()=>{if(c&&u){const b=w=>y(w,u),x=w=>y(w,c);return c.addEventListener("pointerleave",b),u.addEventListener("pointerleave",x),()=>{c.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",x)}}},[c,u,y,m]),h.useEffect(()=>{if(o){const b=x=>{const w=x.target,g={x:x.clientX,y:x.clientY},p=(c==null?void 0:c.contains(w))||(u==null?void 0:u.contains(w)),v=!YI(g,o);p?m():v&&(m(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,u,o,d,m]),s.jsx(wC,{...e,ref:a})}),[WI,HI]=Ju(yC,{isInside:!1}),GI=D_("TooltipContent"),wC=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...l}=e,c=Xu(so,n),d=qx(n),{onClose:u}=c;return h.useEffect(()=>(document.addEventListener(Qv,u),()=>document.removeEventListener(Qv,u)),[u]),h.useEffect(()=>{if(c.trigger){const f=m=>{const y=m.target;y!=null&&y.contains(c.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,u]),s.jsx(sc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:s.jsxs(mC,{"data-state":c.stateAttribute,...d,...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(GI,{children:r}),s.jsx(WI,{scope:n,isInside:!0,children:s.jsx(n4,{id:c.contentId,role:"tooltip",children:i||r})})]})})});vC.displayName=so;var bC="TooltipArrow",qI=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=qx(n);return HI(bC,n).isInside?null:s.jsx(hC,{...i,...r,ref:t})});qI.displayName=bC;function KI(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ZI(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 QI(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function YI(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,o=t.length-1;ar!=u>r&&n<(d-l)*(r-c)/(u-c)+l&&(i=!i)}return i}function JI(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),XI(t)}function XI(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const a=t[t.length-1],o=t[t.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const a=n[n.length-1],o=n[n.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}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 eM=gC,jC=vC;const tM=eM,nM=h.forwardRef(({className:e,sideOffset:t=4,...n},r)=>s.jsx(jC,{ref:r,sideOffset:t,className:re("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 origin-[--radix-tooltip-content-transform-origin]",e),...n}));nM.displayName=jC.displayName;function rM(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function ef(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Kh=e=>Array.isArray(e);function NC(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Kx(e,t,n,r){if(typeof t=="function"){const[i,a]=Yv(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=Yv(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function tf(e,t,n){const r=e.getProps();return Kx(r,t,n!==void 0?n:r.custom,e)}const Zx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Qx=["initial",...Zx],cc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gi=new Set(cc),zr=e=>e*1e3,Ur=e=>e/1e3,sM={type:"spring",stiffness:500,damping:25,restSpeed:10},iM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),aM={type:"keyframes",duration:.8},oM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lM=(e,{keyframes:t})=>t.length>2?aM:Gi.has(e)?e.startsWith("scale")?iM(t[1]):sM:oM;function Yx(e,t){return e?e[t]||e.default||e:void 0}const cM={skipAnimations:!1,useManualTiming:!1},dM=e=>e!==null;function nf(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(dM),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Bt=e=>e;let Zh=Bt;function uM(e){let t=new Set,n=new Set,r=!1,i=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(d){a.has(d)&&(c.schedule(d),e()),d(o)}const c={schedule:(d,u=!1,f=!1)=>{const y=f&&r?t:n;return u&&a.add(d),y.has(d)||y.add(d),d},cancel:d=>{n.delete(d),a.delete(d)},process:d=>{if(o=d,r){i=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(l),r=!1,i&&(i=!1,c.process(d))}};return c}const Vc=["read","resolveKeyframes","update","preRender","render","postRender"],fM=40;function CC(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Vc.reduce((g,p)=>(g[p]=uM(a),g),{}),{read:l,resolveKeyframes:c,update:d,preRender:u,render:f,postRender:m}=o,y=()=>{const g=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,fM),1),i.timestamp=g,i.isProcessing=!0,l.process(i),c.process(i),d.process(i),u.process(i),f.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},b=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:Vc.reduce((g,p)=>{const v=o[p];return g[p]=(j,N=!1,T=!1)=>(n||b(),v.schedule(j,N,T)),g},{}),cancel:g=>{for(let p=0;p(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mM=1e-7,hM=12;function pM(e,t,n,r,i){let a,o,l=0;do o=t+(n-t)/2,a=SC(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>mM&&++lpM(a,0,1,e,n);return a=>a===0||a===1?a:SC(i(a),t,r)}const kC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,EC=e=>t=>1-e(1-t),TC=dc(.33,1.53,.69,.99),Jx=EC(TC),AC=kC(Jx),PC=e=>(e*=2)<1?.5*Jx(e):.5*(2-Math.pow(2,-10*(e-1))),Xx=e=>1-Math.sin(Math.acos(e)),_C=EC(Xx),RC=kC(Xx),IC=e=>/^0[^.\s]+$/u.test(e);function xM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||IC(e):!0}const MC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),LC=e=>t=>typeof t=="string"&&t.startsWith(e),DC=LC("--"),gM=LC("var(--"),eg=e=>gM(e)?yM.test(e.split("/*")[0].trim()):!1,yM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,vM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wM(e){const t=vM.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function OC(e,t,n=1){const[r,i]=wM(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return MC(o)?parseFloat(o):o}return eg(i)?OC(i,t,n+1):i}const Qr=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Il={...jo,transform:e=>Qr(0,1,e)},zc={...jo,default:1},uc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),as=uc("deg"),gr=uc("%"),ce=uc("px"),bM=uc("vh"),jM=uc("vw"),Jv={...gr,parse:e=>gr.parse(e)/100,transform:e=>gr.transform(e*100)},NM=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Xv=e=>e===jo||e===ce,e0=(e,t)=>parseFloat(e.split(", ")[t]),t0=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return e0(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?e0(a[1],e):0}},CM=new Set(["x","y","z"]),SM=cc.filter(e=>!CM.has(e));function kM(e){const t=[];return SM.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const io={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:t0(4,13),y:t0(5,14)};io.translateX=io.x;io.translateY=io.y;const FC=e=>t=>t.test(e),EM={test:e=>e==="auto",parse:e=>e},VC=[jo,ce,gr,as,jM,bM,EM],n0=e=>VC.find(FC(e)),Ci=new Set;let Qh=!1,Yh=!1;function zC(){if(Yh){const e=Array.from(Ci).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=kM(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,o])=>{var l;(l=r.getValue(a))===null||l===void 0||l.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Yh=!1,Qh=!1,Ci.forEach(e=>e.complete()),Ci.clear()}function UC(){Ci.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yh=!0)})}function TM(){UC(),zC()}class tg{constructor(t,n,r,i,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ci.add(this),Qh||(Qh=!0,Ve.read(UC),Ve.resolveKeyframes(zC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;aMath.round(e*1e5)/1e5,ng=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function AM(e){return e==null}const PM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,rg=(e,t)=>n=>!!(typeof n=="string"&&PM.test(n)&&n.startsWith(e)||t&&!AM(n)&&Object.prototype.hasOwnProperty.call(n,t)),BC=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,l]=r.match(ng);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},_M=e=>Qr(0,255,e),im={...jo,transform:e=>Math.round(_M(e))},ui={test:rg("rgb","red"),parse:BC("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+im.transform(e)+", "+im.transform(t)+", "+im.transform(n)+", "+il(Il.transform(r))+")"};function RM(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Jh={test:rg("#"),parse:RM,transform:ui.transform},xa={test:rg("hsl","hue"),parse:BC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+gr.transform(il(t))+", "+gr.transform(il(n))+", "+il(Il.transform(r))+")"},Vt={test:e=>ui.test(e)||Jh.test(e)||xa.test(e),parse:e=>ui.test(e)?ui.parse(e):xa.test(e)?xa.parse(e):Jh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ui.transform(e):xa.transform(e)},IM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function MM(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ng))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(IM))===null||n===void 0?void 0:n.length)||0)>0}const $C="number",WC="color",LM="var",DM="var(",r0="${}",OM=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ml(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const l=t.replace(OM,c=>(Vt.test(c)?(r.color.push(a),i.push(WC),n.push(Vt.parse(c))):c.startsWith(DM)?(r.var.push(a),i.push(LM),n.push(c)):(r.number.push(a),i.push($C),n.push(parseFloat(c))),++a,r0)).split(r0);return{values:n,split:l,indexes:r,types:i}}function HC(e){return Ml(e).values}function GC(e){const{split:t,types:n}=Ml(e),r=t.length;return i=>{let a="";for(let o=0;otypeof e=="number"?0:e;function VM(e){const t=HC(e);return GC(e)(t.map(FM))}const $s={test:MM,parse:HC,createTransformer:GC,getAnimatableNone:VM},zM=new Set(["brightness","contrast","saturate","opacity"]);function UM(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ng)||[];if(!r)return e;const i=n.replace(r,"");let a=zM.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const BM=/\b([a-z-]*)\(.*?\)/gu,Xh={...$s,getAnimatableNone:e=>{const t=e.match(BM);return t?t.map(UM).join(" "):e}},$M={borderWidth:ce,borderTopWidth:ce,borderRightWidth:ce,borderBottomWidth:ce,borderLeftWidth:ce,borderRadius:ce,radius:ce,borderTopLeftRadius:ce,borderTopRightRadius:ce,borderBottomRightRadius:ce,borderBottomLeftRadius:ce,width:ce,maxWidth:ce,height:ce,maxHeight:ce,top:ce,right:ce,bottom:ce,left:ce,padding:ce,paddingTop:ce,paddingRight:ce,paddingBottom:ce,paddingLeft:ce,margin:ce,marginTop:ce,marginRight:ce,marginBottom:ce,marginLeft:ce,backgroundPositionX:ce,backgroundPositionY:ce},WM={rotate:as,rotateX:as,rotateY:as,rotateZ:as,scale:zc,scaleX:zc,scaleY:zc,scaleZ:zc,skew:as,skewX:as,skewY:as,distance:ce,translateX:ce,translateY:ce,translateZ:ce,x:ce,y:ce,z:ce,perspective:ce,transformPerspective:ce,opacity:Il,originX:Jv,originY:Jv,originZ:ce},s0={...jo,transform:Math.round},sg={...$M,...WM,zIndex:s0,size:ce,fillOpacity:Il,strokeOpacity:Il,numOctaves:s0},HM={...sg,color:Vt,backgroundColor:Vt,outlineColor:Vt,fill:Vt,stroke:Vt,borderColor:Vt,borderTopColor:Vt,borderRightColor:Vt,borderBottomColor:Vt,borderLeftColor:Vt,filter:Xh,WebkitFilter:Xh},ig=e=>HM[e];function qC(e,t){let n=ig(e);return n!==Xh&&(n=$s),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const GM=new Set(["auto","none","0"]);function qM(e,t,n){let r=0,i;for(;r{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}}function ag(e){return typeof e=="function"}let ud;function KM(){ud=void 0}const yr={now:()=>(ud===void 0&&yr.set(_t.isProcessing||cM.useManualTiming?_t.timestamp:performance.now()),ud),set:e=>{ud=e,queueMicrotask(KM)}},i0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&($s.test(e)||e==="0")&&!e.startsWith("url("));function ZM(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nYM?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&TM(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=yr.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:o,onComplete:l,onUpdate:c,isGenerator:d}=this.options;if(!d&&!QM(t,r,i,a))if(o)this.options.duration=0;else{c==null||c(nf(t,this.options,n)),l==null||l(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ao=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},QC=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a{const u=d*o,f=u*e,m=u-n,y=ep(d,o),b=Math.exp(-f);return am-m/y*b},a=d=>{const f=d*o*e,m=f*n+n,y=Math.pow(o,2)*Math.pow(d,2)*e,b=Math.exp(-f),x=ep(Math.pow(d,2),o);return(-i(d)+am>0?-1:1)*((m-y)*b)/x}):(i=d=>{const u=Math.exp(-d*e),f=(d-n)*e+1;return-am+u*f},a=d=>{const u=Math.exp(-d*e),f=(n-d)*(e*e);return u*f});const l=5/e,c=t6(i,a,l);if(e=zr(e),isNaN(c))return{stiffness:tt.stiffness,damping:tt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:o*2*Math.sqrt(r*d),duration:e}}}const e6=12;function t6(e,t,n){let r=n;for(let i=1;i=tp?1/0:t}const n6=["duration","bounce"],r6=["stiffness","damping","mass"];function a0(e,t){return t.some(n=>e[n]!==void 0)}function s6(e){let t={velocity:tt.velocity,stiffness:tt.stiffness,damping:tt.damping,mass:tt.mass,isResolvedFromDuration:!1,...e};if(!a0(e,r6)&&a0(e,n6))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Qr(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:tt.mass,stiffness:i,damping:a}}else{const n=XM(e);t={...t,...n,mass:tt.mass},t.isResolvedFromDuration=!0}return t}function e2(e=tt.visualDuration,t=tt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:c,damping:d,mass:u,duration:f,velocity:m,isResolvedFromDuration:y}=s6({...n,velocity:-Ur(n.velocity||0)}),b=m||0,x=d/(2*Math.sqrt(c*u)),w=o-a,g=Ur(Math.sqrt(c/u)),p=Math.abs(w)<5;r||(r=p?tt.restSpeed.granular:tt.restSpeed.default),i||(i=p?tt.restDelta.granular:tt.restDelta.default);let v;if(x<1){const N=ep(g,x);v=T=>{const k=Math.exp(-x*g*T);return o-k*((b+x*g*w)/N*Math.sin(N*T)+w*Math.cos(N*T))}}else if(x===1)v=N=>o-Math.exp(-g*N)*(w+(b+g*w)*N);else{const N=g*Math.sqrt(x*x-1);v=T=>{const k=Math.exp(-x*g*T),E=Math.min(N*T,300);return o-k*((b+x*g*w)*Math.sinh(E)+N*w*Math.cosh(E))/N}}const j={calculatedDuration:y&&f||null,next:N=>{const T=v(N);if(y)l.done=N>=f;else{let k=0;x<1&&(k=N===0?zr(b):JC(v,N,T));const E=Math.abs(k)<=r,A=Math.abs(o-T)<=i;l.done=E&&A}return l.value=l.done?o:T,l},toString:()=>{const N=Math.min(XC(j),tp),T=QC(k=>j.next(N*k).value,N,30);return N+"ms "+T}};return j}function o0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:l,max:c,restDelta:d=.5,restSpeed:u}){const f=e[0],m={done:!1,value:f},y=E=>l!==void 0&&Ec,b=E=>l===void 0?c:c===void 0||Math.abs(l-E)-x*Math.exp(-E/r),v=E=>g+p(E),j=E=>{const A=p(E),R=v(E);m.done=Math.abs(A)<=d,m.value=m.done?g:R};let N,T;const k=E=>{y(m.value)&&(N=E,T=e2({keyframes:[m.value,b(m.value)],velocity:JC(v,E,m.value),damping:i,stiffness:a,restDelta:d,restSpeed:u}))};return k(0),{calculatedDuration:null,next:E=>{let A=!1;return!T&&N===void 0&&(A=!0,j(E),k(E)),N!==void 0&&E>=N?T.next(E-N):(!A&&j(E),m)}}}const i6=dc(.42,0,1,1),a6=dc(0,0,.58,1),t2=dc(.42,0,.58,1),o6=e=>Array.isArray(e)&&typeof e[0]!="number",og=e=>Array.isArray(e)&&typeof e[0]=="number",l0={linear:Bt,easeIn:i6,easeInOut:t2,easeOut:a6,circIn:Xx,circInOut:RC,circOut:_C,backIn:Jx,backInOut:AC,backOut:TC,anticipate:PC},c0=e=>{if(og(e)){Zh(e.length===4);const[t,n,r,i]=e;return dc(t,n,r,i)}else if(typeof e=="string")return Zh(l0[e]!==void 0),l0[e];return e},l6=(e,t)=>n=>t(e(n)),Ms=(...e)=>e.reduce(l6),Ye=(e,t,n)=>e+(t-e)*n;function om(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function c6({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=om(c,l,e+1/3),a=om(c,l,e),o=om(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Qd(e,t){return n=>n>0?t:e}const lm=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},d6=[Jh,ui,xa],u6=e=>d6.find(t=>t.test(e));function d0(e){const t=u6(e);if(!t)return!1;let n=t.parse(e);return t===xa&&(n=c6(n)),n}const u0=(e,t)=>{const n=d0(e),r=d0(t);if(!n||!r)return Qd(e,t);const i={...n};return a=>(i.red=lm(n.red,r.red,a),i.green=lm(n.green,r.green,a),i.blue=lm(n.blue,r.blue,a),i.alpha=Ye(n.alpha,r.alpha,a),ui.transform(i))},np=new Set(["none","hidden"]);function f6(e,t){return np.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function m6(e,t){return n=>Ye(e,t,n)}function lg(e){return typeof e=="number"?m6:typeof e=="string"?eg(e)?Qd:Vt.test(e)?u0:x6:Array.isArray(e)?n2:typeof e=="object"?Vt.test(e)?u0:h6:Qd}function n2(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>lg(a)(a,t[o]));return a=>{for(let o=0;o{for(const a in r)n[a]=r[a](i);return n}}function p6(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a{const n=$s.createTransformer(t),r=Ml(e),i=Ml(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?np.has(e)&&!i.values.length||np.has(t)&&!r.values.length?f6(e,t):Ms(n2(p6(r,i),i.values),n):Qd(e,t)};function r2(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ye(e,t,n):lg(e)(e,t)}function g6(e,t,n){const r=[],i=n||r2,a=e.length-1;for(let o=0;ot[0];if(a===2&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=g6(t,r,i),l=o.length,c=d=>{let u=0;if(l>1)for(;uc(Qr(e[0],e[a-1],d)):c}function v6(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ao(0,t,r);e.push(Ye(n,1,i))}}function w6(e){const t=[0];return v6(t,e.length-1),t}function b6(e,t){return e.map(n=>n*t)}function j6(e,t){return e.map(()=>t||t2).splice(0,e.length-1)}function Yd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=o6(r)?r.map(c0):c0(r),a={done:!1,value:t[0]},o=b6(n&&n.length===t.length?n:w6(t),e),l=y6(o,t,{ease:Array.isArray(i)?i:j6(t,i)});return{calculatedDuration:e,next:c=>(a.value=l(c),a.done=c>=e,a)}}const N6=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ve.update(t,!0),stop:()=>Bs(t),now:()=>_t.isProcessing?_t.timestamp:yr.now()}},C6={decay:o0,inertia:o0,tween:Yd,keyframes:Yd,spring:e2},S6=e=>e/100;class cg extends ZC{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,o=(i==null?void 0:i.KeyframeResolver)||tg,l=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new o(a,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=this.options,l=ag(n)?n:C6[n]||Yd;let c,d;l!==Yd&&typeof t[0]!="number"&&(c=Ms(S6,r2(t[0],t[1])),t=[0,100]);const u=l({...this.options,keyframes:t});a==="mirror"&&(d=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=XC(u));const{calculatedDuration:f}=u,m=f+i,y=m*(r+1)-i;return{generator:u,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:f,resolvedDuration:m,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:E}=this.options;return{done:!0,value:E[E.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:d,totalDuration:u,resolvedDuration:f}=r;if(this.startTime===null)return a.next(0);const{delay:m,repeat:y,repeatType:b,repeatDelay:x,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-m*(this.speed>=0?1:-1),p=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let v=this.currentTime,j=a;if(y){const E=Math.min(this.currentTime,u)/f;let A=Math.floor(E),R=E%1;!R&&E>=1&&(R=1),R===1&&A--,A=Math.min(A,y+1),!!(A%2)&&(b==="reverse"?(R=1-R,x&&(R-=x/f)):b==="mirror"&&(j=o)),v=Qr(0,1,R)*f}const N=p?{done:!1,value:c[0]}:j.next(v);l&&(N.value=l(N.value));let{done:T}=N;!p&&d!==null&&(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(N.value=nf(c,this.options,i)),w&&w(N.value),k&&this.finish(),N}get duration(){const{resolved:t}=this;return t?Ur(t.calculatedDuration):0}get time(){return Ur(this.currentTime)}set time(t){t=zr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ur(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=N6,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const k6=new Set(["opacity","clipPath","filter","transform"]);function dg(e){let t;return()=>(t===void 0&&(t=e()),t)}const E6={linearEasing:void 0};function T6(e,t){const n=dg(e);return()=>{var r;return(r=E6[t])!==null&&r!==void 0?r:n()}}const Jd=T6(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function s2(e){return!!(typeof e=="function"&&Jd()||!e||typeof e=="string"&&(e in rp||Jd())||og(e)||Array.isArray(e)&&e.every(s2))}const $o=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,rp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$o([0,.65,.55,1]),circOut:$o([.55,0,1,.45]),backIn:$o([.31,.01,.66,-.59]),backOut:$o([.33,1.53,.69,.99])};function i2(e,t){if(e)return typeof e=="function"&&Jd()?QC(e,t):og(e)?$o(e):Array.isArray(e)?e.map(n=>i2(n,t)||rp.easeOut):rp[e]}function A6(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:l="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const u=i2(l,i);return Array.isArray(u)&&(d.easing=u),e.animate(d,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}function f0(e,t){e.timeline=t,e.onfinish=null}const P6=dg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Xd=10,_6=2e4;function R6(e){return ag(e.type)||e.type==="spring"||!s2(e.ease)}function I6(e,t){const n=new cg({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<_6;)r=n.sample(a),i.push(r.value),a+=Xd;return{times:void 0,keyframes:i,duration:a-Xd,ease:"linear"}}const a2={anticipate:PC,backInOut:AC,circInOut:RC};function M6(e){return e in a2}class m0 extends ZC{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new KC(a,(o,l)=>this.onKeyframesResolved(o,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:a,ease:o,type:l,motionValue:c,name:d,startTime:u}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof o=="string"&&Jd()&&M6(o)&&(o=a2[o]),R6(this.options)){const{onComplete:m,onUpdate:y,motionValue:b,element:x,...w}=this.options,g=I6(t,w);t=g.keyframes,t.length===1&&(t[1]=t[0]),i=g.duration,a=g.times,o=g.ease,l="keyframes"}const f=A6(c.owner.current,d,t,{...this.options,duration:i,times:a,ease:o});return f.startTime=u??this.calcStartTime(),this.pendingTimeline?(f0(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:m}=this.options;c.set(nf(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:i,times:a,type:l,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ur(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ur(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=zr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Bt;const{animation:r}=n;f0(r,t)}return Bt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:a,ease:o,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:u,onComplete:f,element:m,...y}=this.options,b=new cg({...y,keyframes:r,duration:i,type:a,ease:o,times:l,isGenerator:!0}),x=zr(this.time);d.setWithVelocity(b.sample(x-Xd).value,b.sample(x).value,Xd)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:o,type:l}=t;return P6()&&r&&k6.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&a!=="mirror"&&o!==0&&l!=="inertia"}}const L6=dg(()=>window.ScrollTimeline!==void 0);class D6{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;rL6()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function O6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:l,from:c,elapsed:d,...u}){return!!Object.keys(u).length}const ug=(e,t,n,r={},i,a)=>o=>{const l=Yx(r,e)||{},c=l.delay||r.delay||0;let{elapsed:d=0}=r;d=d-zr(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:m=>{t.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:a?void 0:i};O6(l)||(u={...u,...lM(e,u)}),u.duration&&(u.duration=zr(u.duration)),u.repeatDelay&&(u.repeatDelay=zr(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(f=!0)),f&&!a&&t.get()!==void 0){const m=nf(u.keyframes,l);if(m!==void 0)return Ve.update(()=>{u.onUpdate(m),u.onComplete()}),new D6([])}return!a&&m0.supports(u)?new m0(u):new cg(u)},F6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),V6=e=>Kh(e)?e[e.length-1]||0:e;function fg(e,t){e.indexOf(t)===-1&&e.push(t)}function mg(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class hg{constructor(){this.subscriptions=[]}add(t){return fg(this.subscriptions,t),()=>mg(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a!isNaN(parseFloat(e));class U6{constructor(t,n={}){this.version="11.13.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=yr.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=yr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=z6(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new hg);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ve.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=yr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>h0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,h0);return YC(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ll(e,t){return new U6(e,t)}function B6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ll(n))}function $6(e,t){const n=tf(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const l=V6(a[o]);B6(e,o,l)}}const pg=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),W6="framerAppearId",o2="data-"+pg(W6);function l2(e){return e.props[o2]}const Ut=e=>!!(e&&e.getVelocity);function H6(e){return!!(Ut(e)&&e.add)}function sp(e,t){const n=e.getValue("willChange");if(H6(n))return n.add(t)}function G6({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function c2(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(o=r);const d=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const f in c){const m=e.getValue(f,(a=e.latestValues[f])!==null&&a!==void 0?a:null),y=c[f];if(y===void 0||u&&G6(u,f))continue;const b={delay:n,...Yx(o||{},f)};let x=!1;if(window.MotionHandoffAnimation){const g=l2(e);if(g){const p=window.MotionHandoffAnimation(g,f,Ve);p!==null&&(b.startTime=p,x=!0)}}sp(e,f),m.start(ug(f,m,y,e.shouldReduceMotion&&Gi.has(f)?{type:!1}:b,e,x));const w=m.animation;w&&d.push(w)}return l&&Promise.all(d).then(()=>{Ve.update(()=>{l&&$6(e,l)})}),d}function ip(e,t,n={}){var r;const i=tf(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(c2(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:m}=a;return q6(e,t,u+d,f,m,n)}:()=>Promise.resolve(),{when:c}=a;if(c){const[d,u]=c==="beforeChildren"?[o,l]:[l,o];return d().then(()=>u())}else return Promise.all([o(),l(n.delay)])}function q6(e,t,n=0,r=0,i=1,a){const o=[],l=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>l-d*r;return Array.from(e.variantChildren).sort(K6).forEach((d,u)=>{d.notify("AnimationStart",t),o.push(ip(d,t,{...a,delay:n+c(u)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(o)}function K6(e,t){return e.sortNodePosition(t)}function Z6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>ip(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=ip(e,t,n);else{const i=typeof t=="function"?tf(e,t,n.custom):t;r=Promise.all(c2(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Q6=Qx.length;function d2(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?d2(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>Z6(e,n,r)))}function e3(e){let t=X6(e),n=p0(),r=!0;const i=c=>(d,u)=>{var f;const m=tf(e,u,c==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(m){const{transition:y,transitionEnd:b,...x}=m;d={...d,...x,...b}}return d};function a(c){t=c(e)}function o(c){const{props:d}=e,u=d2(e.parent)||{},f=[],m=new Set;let y={},b=1/0;for(let w=0;wb&&j,A=!1;const R=Array.isArray(v)?v:[v];let B=R.reduce(i(g),{});N===!1&&(B={});const{prevResolvedValues:L={}}=p,F={...L,...B},D=K=>{E=!0,m.has(K)&&(A=!0,m.delete(K)),p.needsAnimating[K]=!0;const _=e.getValue(K);_&&(_.liveStyle=!1)};for(const K in F){const _=B[K],z=L[K];if(y.hasOwnProperty(K))continue;let X=!1;Kh(_)&&Kh(z)?X=!NC(_,z):X=_!==z,X?_!=null?D(K):m.add(K):_!==void 0&&m.has(K)?D(K):p.protectedKeys[K]=!0}p.prevProp=v,p.prevResolvedValues=B,p.isActive&&(y={...y,...B}),r&&e.blockInitialAnimation&&(E=!1),E&&(!(T&&k)||A)&&f.push(...R.map(K=>({animation:K,options:{type:g}})))}if(m.size){const w={};m.forEach(g=>{const p=e.getBaseTarget(g),v=e.getValue(g);v&&(v.liveStyle=!0),w[g]=p??null}),f.push({animation:w})}let x=!!f.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(f):Promise.resolve()}function l(c,d){var u;if(n[c].isActive===d)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(m=>{var y;return(y=m.animationState)===null||y===void 0?void 0:y.setActive(c,d)}),n[c].isActive=d;const f=o(c);for(const m in n)n[m].protectedKeys={};return f}return{animateChanges:o,setActive:l,setAnimateFunction:a,getState:()=>n,reset:()=>{n=p0(),r=!0}}}function t3(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!NC(t,e):!1}function ri(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function p0(){return{animate:ri(!0),whileInView:ri(),whileHover:ri(),whileTap:ri(),whileDrag:ri(),whileFocus:ri(),exit:ri()}}class Xs{constructor(t){this.isMounted=!1,this.node=t}update(){}}class n3 extends Xs{constructor(t){super(t),t.animationState||(t.animationState=e3(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ef(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let r3=0;class s3 extends Xs{constructor(){super(...arguments),this.id=r3++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const i3={animation:{Feature:n3},exit:{Feature:s3}};function a3(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const Vn={x:!1,y:!1};function u2(){return Vn.x||Vn.y}function x0(e){return t=>{t.pointerType==="touch"||u2()||e(t)}}function o3(e,t,n={}){const r=new AbortController,i={passive:!0,...n,signal:r.signal},a=x0(o=>{const{target:l}=o,c=t(o);if(!c||!l)return;const d=x0(u=>{c(u),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,i)});return a3(e).forEach(o=>{o.addEventListener("pointerenter",a,i)}),()=>r.abort()}function l3(e){return e==="x"||e==="y"?Vn[e]?null:(Vn[e]=!0,()=>{Vn[e]=!1}):Vn.x||Vn.y?null:(Vn.x=Vn.y=!0,()=>{Vn.x=Vn.y=!1})}const f2=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function fc(e){return{point:{x:e.pageX,y:e.pageY}}}const c3=e=>t=>f2(t)&&e(t,fc(t));function Fr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ls(e,t,n,r){return Fr(e,t,c3(n),r)}const g0=(e,t)=>Math.abs(e-t);function d3(e,t){const n=g0(e.x,t.x),r=g0(e.y,t.y);return Math.sqrt(n**2+r**2)}class m2{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=dm(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,y=d3(f.offset,{x:0,y:0})>=3;if(!m&&!y)return;const{point:b}=f,{timestamp:x}=_t;this.history.push({...b,timestamp:x});const{onStart:w,onMove:g}=this.handlers;m||(w&&w(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=cm(m,this.transformPagePoint),Ve.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:y,onSessionEnd:b,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=dm(f.type==="pointercancel"?this.lastMoveEventInfo:cm(m,this.transformPagePoint),this.history);this.startEvent&&y&&y(f,w),b&&b(f,w)},!f2(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=fc(t),l=cm(o,this.transformPagePoint),{point:c}=l,{timestamp:d}=_t;this.history=[{...c,timestamp:d}];const{onSessionStart:u}=n;u&&u(t,dm(l,this.history)),this.removeListeners=Ms(Ls(this.contextWindow,"pointermove",this.handlePointerMove),Ls(this.contextWindow,"pointerup",this.handlePointerUp),Ls(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Bs(this.updatePoint)}}function cm(e,t){return t?{point:t(e.point)}:e}function y0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function dm({point:e},t){return{point:e,delta:y0(e,h2(t)),offset:y0(e,u3(t)),velocity:f3(t,.1)}}function u3(e){return e[0]}function h2(e){return e[e.length-1]}function f3(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=h2(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>zr(t)));)n--;if(!r)return{x:0,y:0};const a=Ur(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function ga(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const p2=1e-4,m3=1-p2,h3=1+p2,x2=.01,p3=0-x2,x3=0+x2;function Cn(e){return e.max-e.min}function g3(e,t,n){return Math.abs(e-t)<=n}function v0(e,t,n,r=.5){e.origin=r,e.originPoint=Ye(t.min,t.max,e.origin),e.scale=Cn(n)/Cn(t),e.translate=Ye(n.min,n.max,e.origin)-e.originPoint,(e.scale>=m3&&e.scale<=h3||isNaN(e.scale))&&(e.scale=1),(e.translate>=p3&&e.translate<=x3||isNaN(e.translate))&&(e.translate=0)}function al(e,t,n,r){v0(e.x,t.x,n.x,r?r.originX:void 0),v0(e.y,t.y,n.y,r?r.originY:void 0)}function w0(e,t,n){e.min=n.min+t.min,e.max=e.min+Cn(t)}function y3(e,t,n){w0(e.x,t.x,n.x),w0(e.y,t.y,n.y)}function b0(e,t,n){e.min=t.min-n.min,e.max=e.min+Cn(t)}function ol(e,t,n){b0(e.x,t.x,n.x),b0(e.y,t.y,n.y)}function v3(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Ye(n,e,r.max):Math.min(e,n)),e}function j0(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function w3(e,{top:t,left:n,bottom:r,right:i}){return{x:j0(e.x,n,i),y:j0(e.y,t,r)}}function N0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ao(t.min,t.max-r,e.min):r>i&&(n=ao(e.min,e.max-i,t.min)),Qr(0,1,n)}function N3(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const ap=.35;function C3(e=ap){return e===!1?e=0:e===!0&&(e=ap),{x:C0(e,"left","right"),y:C0(e,"top","bottom")}}function C0(e,t,n){return{min:S0(e,t),max:S0(e,n)}}function S0(e,t){return typeof e=="number"?e:e[t]||0}const k0=()=>({translate:0,scale:1,origin:0,originPoint:0}),ya=()=>({x:k0(),y:k0()}),E0=()=>({min:0,max:0}),at=()=>({x:E0(),y:E0()});function Tn(e){return[e("x"),e("y")]}function g2({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function S3({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function k3(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function um(e){return e===void 0||e===1}function op({scale:e,scaleX:t,scaleY:n}){return!um(e)||!um(t)||!um(n)}function ai(e){return op(e)||y2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function y2(e){return T0(e.x)||T0(e.y)}function T0(e){return e&&e!=="0%"}function eu(e,t,n){const r=e-n,i=t*r;return n+i}function A0(e,t,n,r,i){return i!==void 0&&(e=eu(e,i,r)),eu(e,n,r)+t}function lp(e,t=0,n=1,r,i){e.min=A0(e.min,t,n,r,i),e.max=A0(e.max,t,n,r,i)}function v2(e,{x:t,y:n}){lp(e.x,t.translate,t.scale,t.originPoint),lp(e.y,n.translate,n.scale,n.originPoint)}const P0=.999999999999,_0=1.0000000000001;function E3(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let l=0;lP0&&(t.x=1),t.y<_0&&t.y>P0&&(t.y=1)}function va(e,t){e.min=e.min+t,e.max=e.max+t}function R0(e,t,n,r,i=.5){const a=Ye(e.min,e.max,i);lp(e,t,n,a,r)}function wa(e,t){R0(e.x,t.x,t.scaleX,t.scale,t.originX),R0(e.y,t.y,t.scaleY,t.scale,t.originY)}function w2(e,t){return g2(k3(e.getBoundingClientRect(),t))}function T3(e,t,n){const r=w2(e,n),{scroll:i}=t;return i&&(va(r.x,i.offset.x),va(r.y,i.offset.y)),r}const b2=({current:e})=>e?e.ownerDocument.defaultView:null,A3=new WeakMap;class P3{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=at(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=u=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(fc(u).point)},a=(u,f)=>{const{drag:m,dragPropagation:y,onDragStart:b}=this.getProps();if(m&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=l3(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Tn(w=>{let g=this.getAxisMotionValue(w).get()||0;if(gr.test(g)){const{projection:p}=this.visualElement;if(p&&p.layout){const v=p.layout.layoutBox[w];v&&(g=Cn(v)*(parseFloat(g)/100))}}this.originPoint[w]=g}),b&&Ve.postRender(()=>b(u,f)),sp(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},o=(u,f)=>{const{dragPropagation:m,dragDirectionLock:y,onDirectionLock:b,onDrag:x}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:w}=f;if(y&&this.currentDirection===null){this.currentDirection=_3(w),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",f.point,w),this.updateAxis("y",f.point,w),this.visualElement.render(),x&&x(u,f)},l=(u,f)=>this.stop(u,f),c=()=>Tn(u=>{var f;return this.getAnimationState(u)==="paused"&&((f=this.getAxisMotionValue(u).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new m2(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:b2(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Ve.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Uc(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=v3(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&ga(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=w3(i.layoutBox,n):this.constraints=!1,this.elastic=C3(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Tn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=N3(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ga(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=T3(r,i.root,this.visualElement.getTransformPagePoint());let o=b3(i.layout.layoutBox,a);if(n){const l=n(S3(o));this.hasMutatedConstraints=!!l,l&&(o=g2(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=Tn(u=>{if(!Uc(u,n,this.currentDirection))return;let f=c&&c[u]||{};o&&(f={min:0,max:0});const m=i?200:1e6,y=i?40:1e7,b={type:"inertia",velocity:r?t[u]:0,bounceStiffness:m,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(u,b)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return sp(this.visualElement,t),r.start(ug(t,r,0,n,this.visualElement,!1))}stopAnimation(){Tn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Tn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Tn(n=>{const{drag:r}=this.getProps();if(!Uc(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:l}=i.layout.layoutBox[n];a.set(t[n]-Ye(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ga(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Tn(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const c=l.get();i[o]=j3({min:c,max:c},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Tn(o=>{if(!Uc(o,t,null))return;const l=this.getAxisMotionValue(o),{min:c,max:d}=this.constraints[o];l.set(Ye(c,d,i[o]))})}addListeners(){if(!this.visualElement.current)return;A3.set(this.visualElement,this);const t=this.visualElement.current,n=Ls(t,"pointerdown",c=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();ga(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ve.read(r);const o=Fr(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Tn(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=ap,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:l}}}function Uc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function _3(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class R3 extends Xs{constructor(t){super(t),this.removeGroupControls=Bt,this.removeListeners=Bt,this.controls=new P3(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Bt}unmount(){this.removeGroupControls(),this.removeListeners()}}const I0=e=>(t,n)=>{e&&Ve.postRender(()=>e(t,n))};class I3 extends Xs{constructor(){super(...arguments),this.removePointerDownListener=Bt}onPointerDown(t){this.session=new m2(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:b2(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:I0(t),onStart:I0(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&Ve.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=Ls(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const rf=h.createContext(null);function M3(){const e=h.useContext(rf);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=h.useId();h.useEffect(()=>r(i),[]);const a=h.useCallback(()=>n&&n(i),[i,n]);return!t&&n?[!1,a]:[!0]}const xg=h.createContext({}),j2=h.createContext({}),fd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function M0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Mo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ce.test(e))e=parseFloat(e);else return e;const n=M0(e,t.target.x),r=M0(e,t.target.y);return`${n}% ${r}%`}},L3={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=$s.parse(e);if(i.length>5)return r;const a=$s.createTransformer(e),o=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=l,i[1+o]/=c;const d=Ye(l,c,.5);return typeof i[2+o]=="number"&&(i[2+o]/=d),typeof i[3+o]=="number"&&(i[3+o]/=d),a(i)}},tu={};function D3(e){Object.assign(tu,e)}const{schedule:gg,cancel:Tz}=CC(queueMicrotask,!1);class O3 extends h.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;D3(F3),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),fd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,o=r.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Ve.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),gg.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function N2(e){const[t,n]=M3(),r=h.useContext(xg);return s.jsx(O3,{...e,layoutGroup:r,switchLayoutGroup:h.useContext(j2),isPresent:t,safeToRemove:n})}const F3={borderRadius:{...Mo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Mo,borderTopRightRadius:Mo,borderBottomLeftRadius:Mo,borderBottomRightRadius:Mo,boxShadow:L3},C2=["TopLeft","TopRight","BottomLeft","BottomRight"],V3=C2.length,L0=e=>typeof e=="string"?parseFloat(e):e,D0=e=>typeof e=="number"||ce.test(e);function z3(e,t,n,r,i,a){i?(e.opacity=Ye(0,n.opacity!==void 0?n.opacity:1,U3(r)),e.opacityExit=Ye(t.opacity!==void 0?t.opacity:1,0,B3(r))):a&&(e.opacity=Ye(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(ao(e,t,r))}function F0(e,t){e.min=t.min,e.max=t.max}function En(e,t){F0(e.x,t.x),F0(e.y,t.y)}function V0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function z0(e,t,n,r,i){return e-=t,e=eu(e,1/n,r),i!==void 0&&(e=eu(e,1/i,r)),e}function $3(e,t=0,n=1,r=.5,i,a=e,o=e){if(gr.test(t)&&(t=parseFloat(t),t=Ye(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=Ye(a.min,a.max,r);e===a&&(l-=t),e.min=z0(e.min,t,n,l,i),e.max=z0(e.max,t,n,l,i)}function U0(e,t,[n,r,i],a,o){$3(e,t[n],t[r],t[i],t.scale,a,o)}const W3=["x","scaleX","originX"],H3=["y","scaleY","originY"];function B0(e,t,n,r){U0(e.x,t,W3,n?n.x:void 0,r?r.x:void 0),U0(e.y,t,H3,n?n.y:void 0,r?r.y:void 0)}function $0(e){return e.translate===0&&e.scale===1}function k2(e){return $0(e.x)&&$0(e.y)}function W0(e,t){return e.min===t.min&&e.max===t.max}function G3(e,t){return W0(e.x,t.x)&&W0(e.y,t.y)}function H0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function E2(e,t){return H0(e.x,t.x)&&H0(e.y,t.y)}function G0(e){return Cn(e.x)/Cn(e.y)}function q0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class q3{constructor(){this.members=[]}add(t){fg(this.members,t),t.scheduleRender()}remove(t){if(mg(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function K3(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:u,rotateX:f,rotateY:m,skewX:y,skewY:b}=n;d&&(r=`perspective(${d}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),m&&(r+=`rotateY(${m}deg) `),y&&(r+=`skewX(${y}deg) `),b&&(r+=`skewY(${b}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const Z3=(e,t)=>e.depth-t.depth;class Q3{constructor(){this.children=[],this.isDirty=!1}add(t){fg(this.children,t),this.isDirty=!0}remove(t){mg(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Z3),this.isDirty=!1,this.children.forEach(t)}}function md(e){const t=Ut(e)?e.get():e;return F6(t)?t.toValue():t}function Y3(e,t){const n=yr.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Bs(r),e(a-t))};return Ve.read(r,!0),()=>Bs(r)}function J3(e){return e instanceof SVGElement&&e.tagName!=="svg"}function X3(e,t,n){const r=Ut(e)?e:Ll(e);return r.start(ug("",r,t,n)),r.animation}const oi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Wo=typeof window<"u"&&window.MotionDebug!==void 0,fm=["","X","Y","Z"],eL={visibility:"hidden"},K0=1e3;let tL=0;function mm(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function T2(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=l2(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ve,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&T2(r)}function A2({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},l=t==null?void 0:t()){this.id=tL++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Wo&&(oi.totalNodes=oi.resolvedTargetDeltas=oi.recalculatedProjection=0),this.nodes.forEach(sL),this.nodes.forEach(cL),this.nodes.forEach(dL),this.nodes.forEach(iL),Wo&&window.MotionDebug.record(oi)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;cthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Y3(m,250),fd.hasAnimatedSinceResize&&(fd.hasAnimatedSinceResize=!1,this.nodes.forEach(Q0))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||d)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:m,hasRelativeTargetChanged:y,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||u.getDefaultTransition()||pL,{onLayoutAnimationStart:w,onLayoutAnimationComplete:g}=u.getProps(),p=!this.targetLayout||!E2(this.targetLayout,b)||y,v=!m&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||m&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,v);const j={...Yx(x,"layout"),onPlay:w,onComplete:g};(u.shouldReduceMotion||this.options.layoutRoot)&&(j.delay=0,j.type=!1),this.startAnimation(j)}else m||Q0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Bs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(uL),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&T2(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c{const N=j/1e3;Y0(f.x,o.x,N),Y0(f.y,o.y,N),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ol(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mL(this.relativeTarget,this.relativeTargetOrigin,m,N),v&&G3(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=at()),En(v,this.relativeTarget)),x&&(this.animationValues=u,z3(u,d,this.latestValues,N,p,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=N},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Bs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ve.update(()=>{fd.hasAnimatedSinceResize=!0,this.currentAnimation=X3(0,K0,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(K0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:u}=o;if(!(!l||!c||!d)){if(this!==o&&this.layout&&d&&P2(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||at();const f=Cn(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+f;const m=Cn(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+m}En(l,c),wa(l,u),al(this.projectionDeltaWithTransform,this.layoutCorrected,l,u)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new q3),this.sharedNodes.get(o).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const d={};c.z&&mm("z",o,d,this.animationValues);for(let u=0;u{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Z0),this.root.sharedNodes.clear()}}}function nL(e){e.updateLayout()}function rL(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,o=n.source!==e.layout.source;a==="size"?Tn(f=>{const m=o?n.measuredBox[f]:n.layoutBox[f],y=Cn(m);m.min=r[f].min,m.max=m.min+y}):P2(a,n.layoutBox,r)&&Tn(f=>{const m=o?n.measuredBox[f]:n.layoutBox[f],y=Cn(r[f]);m.max=m.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+y)});const l=ya();al(l,r,n.layoutBox);const c=ya();o?al(c,e.applyTransform(i,!0),n.measuredBox):al(c,r,n.layoutBox);const d=!k2(l);let u=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:m,layout:y}=f;if(m&&y){const b=at();ol(b,n.layoutBox,m.layoutBox);const x=at();ol(x,r,y.layoutBox),E2(b,x)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=b,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function sL(e){Wo&&oi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function iL(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function aL(e){e.clearSnapshot()}function Z0(e){e.clearMeasurements()}function oL(e){e.isLayoutDirty=!1}function lL(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Q0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function cL(e){e.resolveTargetDelta()}function dL(e){e.calcProjection()}function uL(e){e.resetSkewAndRotation()}function fL(e){e.removeLeadSnapshot()}function Y0(e,t,n){e.translate=Ye(t.translate,0,n),e.scale=Ye(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function J0(e,t,n,r){e.min=Ye(t.min,n.min,r),e.max=Ye(t.max,n.max,r)}function mL(e,t,n,r){J0(e.x,t.x,n.x,r),J0(e.y,t.y,n.y,r)}function hL(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const pL={duration:.45,ease:[.4,0,.1,1]},X0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ew=X0("applewebkit/")&&!X0("chrome/")?Math.round:Bt;function tw(e){e.min=ew(e.min),e.max=ew(e.max)}function xL(e){tw(e.x),tw(e.y)}function P2(e,t,n){return e==="position"||e==="preserve-aspect"&&!g3(G0(t),G0(n),.2)}function gL(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const yL=A2({attachResizeListener:(e,t)=>Fr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),hm={current:void 0},_2=A2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hm.current){const e=new yL({});e.mount(window),e.setOptions({layoutScroll:!0}),hm.current=e}return hm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),vL={pan:{Feature:I3},drag:{Feature:R3,ProjectionNode:_2,MeasureLayout:N2}};function nw(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n);const i=r[n?"onHoverStart":"onHoverEnd"];i&&Ve.postRender(()=>i(t,fc(t)))}class wL extends Xs{mount(){const{current:t,props:n}=this.node;t&&(this.unmount=o3(t,r=>(nw(this.node,r,!0),i=>nw(this.node,i,!1)),{passive:!n.onHoverStart&&!n.onHoverEnd}))}unmount(){}}class bL extends Xs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ms(Fr(this.node.current,"focus",()=>this.onFocus()),Fr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const R2=(e,t)=>t?e===t?!0:R2(e,t.parentElement):!1;function pm(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,fc(n))}class jL extends Xs{constructor(){super(...arguments),this.removeStartListeners=Bt,this.removeEndListeners=Bt,this.removeAccessibleListeners=Bt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),a=Ls(window,"pointerup",(l,c)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:u,globalTapTarget:f}=this.node.getProps(),m=!f&&!R2(this.node.current,l.target)?u:d;m&&Ve.update(()=>m(l,c))},{passive:!(r.onTap||r.onPointerUp)}),o=Ls(window,"pointercancel",(l,c)=>this.cancelPress(l,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Ms(a,o),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const o=l=>{l.key!=="Enter"||!this.checkPressEnd()||pm("up",(c,d)=>{const{onTap:u}=this.node.getProps();u&&Ve.postRender(()=>u(c,d))})};this.removeEndListeners(),this.removeEndListeners=Fr(this.node.current,"keyup",o),pm("down",(l,c)=>{this.startPress(l,c)})},n=Fr(this.node.current,"keydown",t),r=()=>{this.isPressing&&pm("cancel",(a,o)=>this.cancelPress(a,o))},i=Fr(this.node.current,"blur",r);this.removeAccessibleListeners=Ms(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ve.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!u2()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ve.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Ls(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Fr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ms(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const cp=new WeakMap,xm=new WeakMap,NL=e=>{const t=cp.get(e.target);t&&t(e)},CL=e=>{e.forEach(NL)};function SL({root:e,...t}){const n=e||document;xm.has(n)||xm.set(n,{});const r=xm.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(CL,{root:e,...t})),r[i]}function kL(e,t,n){const r=SL(t);return cp.set(e,n),r.observe(e),()=>{cp.delete(e),r.unobserve(e)}}const EL={some:0,all:1};class TL extends Xs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:EL[i]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),m=d?u:f;m&&m(c)};return kL(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(AL(t,n))&&this.startObserver()}unmount(){}}function AL({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const PL={inView:{Feature:TL},tap:{Feature:jL},focus:{Feature:bL},hover:{Feature:wL}},_L={layout:{ProjectionNode:_2,MeasureLayout:N2}},yg=h.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),sf=h.createContext({}),vg=typeof window<"u",I2=vg?h.useLayoutEffect:h.useEffect,M2=h.createContext({strict:!1});function RL(e,t,n,r,i){var a,o;const{visualElement:l}=h.useContext(sf),c=h.useContext(M2),d=h.useContext(rf),u=h.useContext(yg).reducedMotion,f=h.useRef();r=r||c.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:l,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:u}));const m=f.current,y=h.useContext(j2);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&IL(f.current,n,i,y);const b=h.useRef(!1);h.useInsertionEffect(()=>{m&&b.current&&m.update(n,d)});const x=n[o2],w=h.useRef(!!x&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,x))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,x)));return I2(()=>{m&&(b.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),gg.render(m.render),w.current&&m.animationState&&m.animationState.animateChanges())}),h.useEffect(()=>{m&&(!w.current&&m.animationState&&m.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var g;(g=window.MotionHandoffMarkAsComplete)===null||g===void 0||g.call(window,x)}),w.current=!1))}),m}function IL(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:l,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:L2(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||l&&ga(l),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function L2(e){if(e)return e.options.allowProjection!==!1?e.projection:L2(e.parent)}function ML(e,t,n){return h.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ga(n)&&(n.current=r))},[t])}function af(e){return ef(e.animate)||Qx.some(t=>Rl(e[t]))}function D2(e){return!!(af(e)||e.variants)}function LL(e,t){if(af(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Rl(n)?n:void 0,animate:Rl(r)?r:void 0}}return e.inherit!==!1?t:{}}function DL(e){const{initial:t,animate:n}=LL(e,h.useContext(sf));return h.useMemo(()=>({initial:t,animate:n}),[rw(t),rw(n)])}function rw(e){return Array.isArray(e)?e.join(" "):e}const sw={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},oo={};for(const e in sw)oo[e]={isEnabled:t=>sw[e].some(n=>!!t[n])};function OL(e){for(const t in e)oo[t]={...oo[t],...e[t]}}const FL=Symbol.for("motionComponentSymbol");function VL({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&OL(e);function a(l,c){let d;const u={...h.useContext(yg),...l,layoutId:zL(l)},{isStatic:f}=u,m=DL(l),y=r(l,f);if(!f&&vg){UL();const b=BL(u);d=b.MeasureLayout,m.visualElement=RL(i,y,u,t,b.ProjectionNode)}return s.jsxs(sf.Provider,{value:m,children:[d&&m.visualElement?s.jsx(d,{visualElement:m.visualElement,...u}):null,n(i,l,ML(y,m.visualElement,c),y,f,m.visualElement)]})}const o=h.forwardRef(a);return o[FL]=i,o}function zL({layoutId:e}){const t=h.useContext(xg).id;return t&&e!==void 0?t+"-"+e:e}function UL(e,t){h.useContext(M2).strict}function BL(e){const{drag:t,layout:n}=oo;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const $L=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function wg(e){return typeof e!="string"||e.includes("-")?!1:!!($L.indexOf(e)>-1||/[A-Z]/u.test(e))}function O2(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const F2=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function V2(e,t,n,r){O2(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(F2.has(i)?i:pg(i),t.attrs[i])}function z2(e,{layout:t,layoutId:n}){return Gi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!tu[e]||e==="opacity")}function bg(e,t,n){var r;const{style:i}=e,a={};for(const o in i)(Ut(i[o])||t.style&&Ut(t.style[o])||z2(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[o]=i[o]);return a}function U2(e,t,n){const r=bg(e,t,n);for(const i in e)if(Ut(e[i])||Ut(t[i])){const a=cc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}function jg(e){const t=h.useRef(null);return t.current===null&&(t.current=e()),t.current}function WL({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){const o={latestValues:HL(r,i,a,e),renderState:t()};return n&&(o.mount=l=>n(r,l,o)),o}const B2=e=>(t,n)=>{const r=h.useContext(sf),i=h.useContext(rf),a=()=>WL(e,t,r,i);return n?a():jg(a)};function HL(e,t,n,r){const i={},a=r(e,{});for(const m in a)i[m]=md(a[m]);let{initial:o,animate:l}=e;const c=af(e),d=D2(e);t&&d&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const f=u?l:o;if(f&&typeof f!="boolean"&&!ef(f)){const m=Array.isArray(f)?f:[f];for(let y=0;y({style:{},transform:{},transformOrigin:{},vars:{}}),$2=()=>({...Ng(),attrs:{}}),W2=(e,t)=>t&&typeof e=="number"?t.transform(e):e,GL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},qL=cc.length;function KL(e,t,n){let r="",i=!0;for(let a=0;atypeof e=="string"&&e.toLowerCase()==="svg",XL={useVisualState:B2({scrapeMotionValuesFromProps:U2,createRenderState:$2,onMount:(e,t,{renderState:n,latestValues:r})=>{Ve.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ve.render(()=>{Sg(n,r,kg(t.tagName),e.transformTemplate),V2(t,n)})}})},eD={useVisualState:B2({scrapeMotionValuesFromProps:bg,createRenderState:Ng})};function H2(e,t,n){for(const r in t)!Ut(t[r])&&!z2(r,n)&&(e[r]=t[r])}function tD({transformTemplate:e},t){return h.useMemo(()=>{const n=Ng();return Cg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function nD(e,t){const n=e.style||{},r={};return H2(r,n,e),Object.assign(r,tD(e,t)),r}function rD(e,t){const n={},r=nD(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const sD=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function nu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||sD.has(e)}let G2=e=>!nu(e);function iD(e){e&&(G2=t=>t.startsWith("on")?!nu(t):e(t))}try{iD(require("@emotion/is-prop-valid").default)}catch{}function aD(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(G2(i)||n===!0&&nu(i)||!t&&!nu(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function oD(e,t,n,r){const i=h.useMemo(()=>{const a=$2();return Sg(a,t,kg(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};H2(a,e.style,e),i.style={...a,...i.style}}return i}function lD(e=!1){return(n,r,i,{latestValues:a},o)=>{const c=(wg(n)?oD:rD)(r,a,o,n),d=aD(r,typeof n=="string",e),u=n!==h.Fragment?{...d,...c,ref:i}:{},{children:f}=r,m=h.useMemo(()=>Ut(f)?f.get():f,[f]);return h.createElement(n,{...u,children:m})}}function cD(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...wg(r)?XL:eD,preloadedFeatures:e,useRender:lD(i),createVisualElement:t,Component:r};return VL(o)}}const dp={current:null},q2={current:!1};function dD(){if(q2.current=!0,!!vg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>dp.current=e.matches;e.addListener(t),t()}else dp.current=!1}function uD(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Ut(i))e.addValue(r,i);else if(Ut(a))e.addValue(r,Ll(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Ll(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const aw=new WeakMap,fD=[...VC,Vt,$s],mD=e=>fD.find(FC(e)),ow=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class hD{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tg,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=yr.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),q2.current||dD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:dp.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){aw.delete(this.current),this.projection&&this.projection.unmount(),Bs(this.notifyUpdate),Bs(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Gi.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Ve.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in oo){const n=oo[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):at()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ll(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(MC(i)||IC(i))?i=parseFloat(i):!mD(i)&&$s.test(n)&&(i=qC(t,n)),this.setBaseTarget(t,Ut(i)?i.get():i)),Ut(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=Kx(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Ut(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new hg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class K2 extends hD{constructor(){super(...arguments),this.KeyframeResolver=KC}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ut(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function pD(e){return window.getComputedStyle(e)}class xD extends K2{constructor(){super(...arguments),this.type="html",this.renderInstance=O2}readValueFromInstance(t,n){if(Gi.has(n)){const r=ig(n);return r&&r.default||0}else{const r=pD(t),i=(DC(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return w2(t,n)}build(t,n,r){Cg(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return bg(t,n,r)}}class gD extends K2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Gi.has(n)){const r=ig(n);return r&&r.default||0}return n=F2.has(n)?n:pg(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return U2(t,n,r)}build(t,n,r){Sg(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){V2(t,n,r,i)}mount(t){this.isSVGTag=kg(t.tagName),super.mount(t)}}const yD=(e,t)=>wg(e)?new gD(t):new xD(t,{allowProjection:e!==h.Fragment}),vD=cD({...i3,...PL,...vL,..._L},yD),M=rM(vD);class wD extends h.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function bD({children:e,isPresent:t}){const n=h.useId(),r=h.useRef(null),i=h.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=h.useContext(yg);return h.useInsertionEffect(()=>{const{width:o,height:l,top:c,left:d}=i.current;if(t||!r.current||!o||!l)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return a&&(u.nonce=a),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${o}px !important; height: ${l}px !important; top: ${c}px !important; left: ${d}px !important; } `),()=>{document.head.removeChild(u)}},[t]),s.jsx(wD,{isPresent:t,childRef:r,sizeRef:i,children:h.cloneElement(e,{ref:r})})}const jD=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o})=>{const l=jg(ND),c=h.useId(),d=h.useCallback(f=>{l.set(f,!0);for(const m of l.values())if(!m)return;r&&r()},[l,r]),u=h.useMemo(()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:d,register:f=>(l.set(f,!1),()=>l.delete(f))}),a?[Math.random(),d]:[n,d]);return h.useMemo(()=>{l.forEach((f,m)=>l.set(m,!1))},[n]),h.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=s.jsx(bD,{isPresent:n,children:e})),s.jsx(rf.Provider,{value:u,children:e})};function ND(){return new Map}const Bc=e=>e.key||"";function lw(e){const t=[];return h.Children.forEach(e,n=>{h.isValidElement(n)&&t.push(n)}),t}const Li=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:o="sync"})=>{const l=h.useMemo(()=>lw(e),[e]),c=l.map(Bc),d=h.useRef(!0),u=h.useRef(l),f=jg(()=>new Map),[m,y]=h.useState(l),[b,x]=h.useState(l);I2(()=>{d.current=!1,u.current=l;for(let p=0;p{const v=Bc(p),j=l===b||c.includes(v),N=()=>{if(f.has(v))f.set(v,!0);else return;let T=!0;f.forEach(k=>{k||(T=!1)}),T&&(g==null||g(),x(u.current),i&&i())};return s.jsx(jD,{isPresent:j,initial:!d.current||r?void 0:!1,custom:j?void 0:n,presenceAffectsLayout:a,mode:o,onExitComplete:j?void 0:N,children:p},v)})})};function CD({className:e,size:t="md",text:n}){const r={sm:"h-4 w-4",md:"h-8 w-8",lg:"h-12 w-12"};return s.jsxs("div",{className:re("flex flex-col items-center justify-center",e),children:[s.jsx(Ix,{className:re("animate-spin text-primary",r[t])}),n&&s.jsx("p",{className:"mt-2 text-sm text-primary/80 font-medium",children:n})]})}function SD({children:e}){const[t]=go(),[n,r]=h.useState(!1),[i,a]=h.useState(t),[o,l]=h.useState("fadeIn");h.useEffect(()=>{if(t!==i){l("fadeOut"),r(!0);const d=setTimeout(()=>{a(t),l("fadeIn"),setTimeout(()=>{r(!1)},100)},250);return()=>clearTimeout(d)}},[t,i]);const c={fadeIn:{opacity:1,y:0,transition:{duration:.3,ease:"easeInOut"}},fadeOut:{opacity:0,y:20,transition:{duration:.2,ease:"easeInOut"}}};return s.jsxs(s.Fragment,{children:[s.jsx(Li,{mode:"wait",children:s.jsx(M.div,{variants:c,animate:o,initial:"fadeOut",className:"min-h-screen flex flex-col",children:e},i)}),s.jsx(Li,{children:n&&s.jsx(M.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-primary/5 backdrop-blur-sm z-50 flex items-center justify-center",children:s.jsx(CD,{size:"lg",text:"Loading..."})})})]})}const Z2=h.createContext(void 0);function kD({children:e}){const[t,n]=h.useState("apa"),[r]=go();return h.useEffect(()=>{const a={"/apa-citation-generator":"apa","/mla-citation-generator":"mla","/chicago-citation-generator":"chicago","/harvard-citation-generator":"harvard","/ieee-citation-generator":"ieee"}[r];a&&n(a)},[r]),h.useEffect(()=>{const i=localStorage.getItem("selectedCitationStyle");i&&["apa","mla","chicago","harvard","ieee","ama","vancouver","turabian","acs","bluebook","ctr"].includes(i)&&n(i)},[]),h.useEffect(()=>{localStorage.setItem("selectedCitationStyle",t)},[t]),s.jsx(Z2.Provider,{value:{selectedStyle:t,setSelectedStyle:n},children:e})}function ED(){const e=h.useContext(Z2);if(e===void 0)throw new Error("useCitationStyle must be used within a CitationStyleProvider");return e}const cw={"/":{title:"Free Citation Generator - APA, MLA, Harvard, Chicago & IEEE | Cite.ai",description:"Generate perfect citations in APA, MLA, Harvard, Chicago, and IEEE formats instantly. Free AI-powered citation generator for students and researchers. No sign-up required.",keywords:"free citation generator, apa citation generator, mla citation generator, harvard citation generator, chicago citation generator, ieee citation generator, citation machine, bibliography generator",canonicalUrl:"https://cite-ai.replit.app"},"/apa-citation-generator":{title:"Free APA Citation Generator - 7th Edition Format | Cite.ai",description:"Create perfect APA 7th edition citations instantly. Free APA citation generator for websites, books, journals. Accurate formatting guaranteed for students and researchers.",keywords:"apa citation generator, apa 7th edition, apa format generator, apa style citations, free apa citation tool, apa bibliography generator",canonicalUrl:"https://cite-ai.replit.app/apa-citation-generator"},"/mla-citation-generator":{title:"Free MLA Citation Generator - 9th Edition Format | Cite.ai",description:"Generate accurate MLA 9th edition citations for free. Perfect MLA format for websites, books, articles. Easy-to-use MLA citation generator for students.",keywords:"mla citation generator, mla 9th edition, mla format generator, mla style citations, free mla citation tool, works cited generator",canonicalUrl:"https://cite-ai.replit.app/mla-citation-generator"},"/harvard-citation-generator":{title:"Free Harvard Citation Generator - UK & Australian Style | Cite.ai",description:"Create perfect Harvard citations instantly. Free Harvard referencing generator for UK and Australian universities. Accurate formatting for all source types.",keywords:"harvard citation generator, harvard referencing generator, harvard style citations, uk harvard format, australian harvard style, free harvard citation tool",canonicalUrl:"https://cite-ai.replit.app/harvard-citation-generator"},"/chicago-citation-generator":{title:"Free Chicago Citation Generator - 17th Edition Format | Cite.ai",description:"Generate accurate Chicago 17th edition citations. Free Chicago style generator with notes-bibliography and author-date formats. Perfect for history papers.",keywords:"chicago citation generator, chicago 17th edition, chicago style citations, chicago format generator, turabian citation generator, free chicago citation tool",canonicalUrl:"https://cite-ai.replit.app/chicago-citation-generator"},"/ieee-citation-generator":{title:"Free IEEE Citation Generator - Engineering & Technology | Cite.ai",description:"Create perfect IEEE citations for engineering and technology papers. Free IEEE citation generator with numbered reference system. Accurate formatting guaranteed.",keywords:"ieee citation generator, ieee format generator, ieee style citations, engineering citation tool, technology citation generator, ieee bibliography generator",canonicalUrl:"https://cite-ai.replit.app/ieee-citation-generator"},"/citation-guide":{title:"Complete Citation Guide - APA, MLA, Harvard, Chicago & IEEE Formats",description:"Master academic citations with our comprehensive guide. Learn APA, MLA, Harvard, Chicago, and IEEE citation styles with examples and formatting rules.",keywords:"citation guide, citation styles, academic writing guide, referencing guide, how to cite sources, citation format examples",canonicalUrl:"https://cite-ai.replit.app/citation-guide"}};function TD(e){const t="https://cite-ai.replit.app",n={"@type":"Organization","@id":`${t}/#organization`,name:"Cite.ai",url:t,description:"Free AI-powered citation generator for academic research",foundingDate:"2025",sameAs:["https://github.com/cite-ai","https://twitter.com/cite_ai"]};if(e==="/")return{"@context":"https://schema.org","@graph":[n,{"@type":"WebApplication",name:"Cite.ai Citation Generator",url:t,description:"Free AI-powered citation generator supporting APA, MLA, Harvard, Chicago, and IEEE formats",applicationCategory:"EducationalApplication",operatingSystem:"Web Browser",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},featureList:["APA 7th Edition Citations","MLA 9th Edition Citations","Harvard Referencing","Chicago 17th Edition","IEEE Citations","Automatic URL Detection","DOI Citation Support","ISBN Book Citations","AI-Powered Accuracy","Real-time Validation"],author:n,publisher:n}]};if(e.includes("citation-generator")){const r=e.split("-")[0].replace("/","").toUpperCase();return{"@context":"https://schema.org","@graph":[n,{"@type":"WebPage","@id":`${t}${e}#webpage`,url:`${t}${e}`,name:`Free ${r} Citation Generator`,description:`Generate perfect ${r} citations instantly`,isPartOf:{"@id":`${t}/#website`},about:{"@type":"Thing",name:`${r} Citation Style`},mainEntity:{"@type":"WebApplication",name:`${r} Citation Generator`,description:`Free tool to generate ${r} citations`,applicationCategory:"EducationalApplication"}}]}}return{"@context":"https://schema.org","@graph":[n]}}function AD(e){document.title=e.title,[{name:"description",content:e.description},{name:"keywords",content:e.keywords},{property:"og:title",content:e.title},{property:"og:description",content:e.description},{property:"og:url",content:e.canonicalUrl},{property:"og:type",content:"website"},{property:"og:site_name",content:"Cite.ai"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:e.title},{name:"twitter:description",content:e.description},{name:"robots",content:"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1"},{name:"googlebot",content:"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1"}].forEach(({name:a,property:o,content:l})=>{const c=a?`meta[name="${a}"]`:`meta[property="${o}"]`;let d=document.querySelector(c);d||(d=document.createElement("meta"),a&&(d.name=a),o&&d.setAttribute("property",o),document.head.appendChild(d)),d.content=l});let n=document.querySelector('link[rel="canonical"]');n||(n=document.createElement("link"),n.rel="canonical",document.head.appendChild(n)),n.href=e.canonicalUrl;const r=TD(window.location.pathname);let i=document.querySelector('script[type="application/ld+json"]');i||(i=document.createElement("script"),i.type="application/ld+json",document.head.appendChild(i)),i.textContent=JSON.stringify(r)}function PD(){const[e]=go();return h.useEffect(()=>{const t=cw[e]||cw["/"];AD(t)},[e]),null}const _D=ac("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full 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-6 py-2",sm:"h-9 px-4",lg:"h-12 px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),J=h.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>{const o=r?W1:"button";return s.jsx(o,{className:re(_D({variant:t,size:n,className:e})),ref:a,...i})});J.displayName="Button";function rt(){const[e,t]=h.useState(!1);return h.useState(!1),s.jsx("header",{className:"bg-background border-b border-border",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs("nav",{className:"flex items-center justify-between h-16",children:[s.jsx("a",{href:"/",className:"flex items-center",children:s.jsx("span",{className:"text-2xl font-semibold tracking-tight",children:"Cite.ai"})}),s.jsxs("div",{className:"hidden md:flex items-center gap-8",children:[s.jsx("a",{href:"/about",className:"text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:"About"}),s.jsx("a",{href:"/learn",className:"text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:"Learn"}),s.jsx("a",{href:"/help",className:"text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:"Help"}),s.jsx("a",{href:"/contact",className:"text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:"Contact"}),s.jsx(J,{size:"sm",asChild:!0,children:s.jsx("a",{href:"/pricing",children:"Pricing"})})]}),s.jsx("button",{type:"button",className:"md:hidden p-2",onClick:()=>t(!e),children:e?s.jsx(qu,{className:"h-5 w-5"}):s.jsx(O4,{className:"h-5 w-5"})})]}),e&&s.jsx("div",{className:"md:hidden border-t border-border",children:s.jsxs("div",{className:"py-4 space-y-2",children:[s.jsx("a",{href:"/about",className:"block px-4 py-2 text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",onClick:()=>t(!1),children:"About"}),s.jsx("a",{href:"/learn",className:"block px-4 py-2 text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",onClick:()=>t(!1),children:"Learn"}),s.jsx("a",{href:"/help",className:"block px-4 py-2 text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",onClick:()=>t(!1),children:"Help"}),s.jsx("a",{href:"/contact",className:"block px-4 py-2 text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",onClick:()=>t(!1),children:"Contact"}),s.jsx("div",{className:"px-4 pt-2",children:s.jsx(J,{size:"sm",className:"w-full",asChild:!0,children:s.jsx("a",{href:"/pricing",children:"Pricing"})})})]})})]})})}function st(){return s.jsx("footer",{className:"bg-background border-t border-border pt-24 pb-12",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-12 mb-16",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx("span",{className:"text-2xl font-semibold text-muted-foreground",children:'"'}),s.jsx("h2",{className:"text-xl font-semibold",children:"Cite.ai"})]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"The premier academic citation generator trusted by students, researchers, and educators worldwide."})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx(Mx,{className:"h-4 w-4 text-muted-foreground flex-shrink-0 mt-0.5"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"37 Braunstone gate, Apartment 8, United Kingdom"})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(qr,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"citeai@deepplaystudio.com"})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(TN,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"+44 7810 211 572"})]})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-6",children:"Company"}),s.jsxs("ul",{className:"space-y-3",children:[s.jsx("li",{children:s.jsx("a",{href:"/about",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:"About Us"})}),s.jsx("li",{children:s.jsx("a",{href:"/privacy",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:"Privacy Policy"})}),s.jsx("li",{children:s.jsx("a",{href:"/terms",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:"Terms of Service"})}),s.jsx("li",{children:s.jsx("a",{href:"/contact",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:"Contact Us"})}),s.jsx("li",{children:s.jsx("a",{href:"/blogs",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:"Blog"})}),s.jsx("li",{children:s.jsx("a",{href:"/careers",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:"Careers"})})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-6",children:"Product"}),s.jsxs("ul",{className:"space-y-3",children:[s.jsx("li",{children:s.jsx("a",{href:"/help",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:"Help Center"})}),s.jsx("li",{children:s.jsx("a",{href:"/api",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:"API"})}),s.jsx("li",{children:s.jsx("a",{href:"/pricing",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:"Pricing"})}),s.jsx("li",{children:s.jsx("a",{href:"/integrations",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:"Integrations"})}),s.jsx("li",{children:s.jsx("a",{href:"/status",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:"System Status"})})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-6",children:"Citation Generators"}),s.jsxs("ul",{className:"space-y-3",children:[s.jsx("li",{children:s.jsx("a",{href:"/apa-citation-generator",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:"APA Citation Generator"})}),s.jsx("li",{children:s.jsx("a",{href:"/mla-citation-generator",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:"MLA Citation Generator"})}),s.jsx("li",{children:s.jsx("a",{href:"/chicago-citation-generator",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:"Chicago Citation Generator"})}),s.jsx("li",{children:s.jsx("a",{href:"/harvard-citation-generator",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:"Harvard Citation Generator"})}),s.jsx("li",{children:s.jsx("a",{href:"/ieee-citation-generator",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:"IEEE Citation Generator"})}),s.jsx("li",{children:s.jsx("a",{href:"/citation-styles-comparison",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:"Compare Citation Styles"})})]})]})]}),s.jsx("div",{className:"pt-8 border-t border-border",children:s.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between",children:[s.jsxs("p",{className:"text-muted-foreground text-sm mb-4 md:mb-0",children:["© ",new Date().getFullYear()," Cite.ai - Academic Citation Generator. All rights reserved."]}),s.jsxs("div",{className:"flex items-center gap-6 text-muted-foreground text-sm",children:[s.jsx("a",{href:"/privacy",className:"hover:text-foreground transition-colors",children:"Privacy"}),s.jsx("a",{href:"/terms",className:"hover:text-foreground transition-colors",children:"Terms"}),s.jsx("a",{href:"/cookies",className:"hover:text-foreground transition-colors",children:"Cookies"})]})]})})]})})}var RD="Separator",dw="horizontal",ID=["horizontal","vertical"],Q2=h.forwardRef((e,t)=>{const{decorative:n,orientation:r=dw,...i}=e,a=MD(r)?r:dw,l=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return s.jsx(ue.div,{"data-orientation":a,...l,...i,ref:t})});Q2.displayName=RD;function MD(e){return ID.includes(e)}var Y2=Q2;const je=h.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},i)=>s.jsx(Y2,{ref:i,decorative:n,orientation:t,className:re("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));je.displayName=Y2.displayName;const LD={"@context":"https://schema.org","@type":"WebPage",name:"Page Not Found - Cite.ai",description:"The page you're looking for doesn't exist. Find what you need with our citation generator and academic resources.",url:"https://academicite.com/404",isPartOf:{"@type":"WebSite",url:"https://academicite.com/",name:"Cite.ai"}};function DD(){const[e,t]=go();return h.useEffect(()=>{document.title="404 - Page Not Found | Cite.ai",typeof window<"u"&&window.history&&window.history.replaceState(null,"",window.location.pathname)},[]),s.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(LD)}}),s.jsx(rt,{}),s.jsx("section",{className:"min-h-screen bg-background",children:s.jsx("div",{className:"container mx-auto px-6 py-16",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 min-h-[80vh] items-center",children:[s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsxs("h1",{className:"text-6xl lg:text-8xl font-semibold tracking-tight leading-none",children:["404",s.jsx("br",{}),s.jsx("span",{className:"text-muted-foreground",children:"Not Found"})]}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-lg",children:"The page you're looking for doesn't exist or has been moved. Let's get you back on track."})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s.jsxs(J,{size:"lg",className:"rounded-full",onClick:()=>t("/"),children:[s.jsx(M4,{className:"mr-2 h-4 w-4"}),"Back to Home"]}),s.jsxs(J,{size:"lg",variant:"outline",className:"rounded-full",onClick:()=>window.history.back(),children:[s.jsx(yN,{className:"mr-2 h-4 w-4"}),"Go Back"]})]})]}),s.jsx("div",{className:"bg-muted rounded-sm p-12 flex items-center justify-center",children:s.jsxs("div",{className:"text-center space-y-6",children:[s.jsx(CN,{className:"h-16 w-16 mx-auto text-muted-foreground"}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"text-3xl font-semibold",children:"Page Missing"}),s.jsx("div",{className:"text-muted-foreground",children:"Let's find what you need"})]})]})})]})})}),s.jsx(je,{}),s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-16 text-center",children:"Popular Pages"}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[s.jsx("div",{className:"bg-background p-8 rounded-sm border cursor-pointer hover:border-primary transition-colors",onClick:()=>t("/"),children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"bg-primary/10 p-4 rounded-sm",children:s.jsx(hr,{className:"h-6 w-6 text-primary"})}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-xl font-semibold tracking-tight",children:"Citation Generator"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Generate perfect citations from any URL, DOI, or ISBN instantly."})]})]})}),s.jsx("div",{className:"bg-background p-8 rounded-sm border cursor-pointer hover:border-primary transition-colors",onClick:()=>t("/learn"),children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"bg-primary/10 p-4 rounded-sm",children:s.jsx(Be,{className:"h-6 w-6 text-primary"})}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-xl font-semibold tracking-tight",children:"Learn Citations"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Master citation formats through interactive lessons and quizzes."})]})]})}),s.jsx("div",{className:"bg-background p-8 rounded-sm border cursor-pointer hover:border-primary transition-colors",onClick:()=>t("/help"),children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"bg-primary/10 p-4 rounded-sm",children:s.jsx(Uu,{className:"h-6 w-6 text-primary"})}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-xl font-semibold tracking-tight",children:"Get Help"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Find answers to common questions and get support."})]})]})})]})]})}),s.jsx(st,{})]})}var Ce;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(l=>typeof i[i[l]]!="number"),o={};for(const l of a)o[l]=i[l];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(const o of i)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(Ce||(Ce={}));var up;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(up||(up={}));const Q=Ce.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Rr=e=>{switch(typeof e){case"undefined":return Q.undefined;case"string":return Q.string;case"number":return isNaN(e)?Q.nan:Q.number;case"boolean":return Q.boolean;case"function":return Q.function;case"bigint":return Q.bigint;case"symbol":return Q.symbol;case"object":return Array.isArray(e)?Q.array:e===null?Q.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Q.promise:typeof Map<"u"&&e instanceof Map?Q.map:typeof Set<"u"&&e instanceof Set?Q.set:typeof Date<"u"&&e instanceof Date?Q.date:Q.object;default:return Q.unknown}},O=Ce.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),OD=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class jn extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let l=r,c=0;for(;cn.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}jn.create=e=>new jn(e);const lo=(e,t)=>{let n;switch(e.code){case O.invalid_type:e.received===Q.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case O.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ce.jsonStringifyReplacer)}`;break;case O.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ce.joinValues(e.keys,", ")}`;break;case O.invalid_union:n="Invalid input";break;case O.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ce.joinValues(e.options)}`;break;case O.invalid_enum_value:n=`Invalid enum value. Expected ${Ce.joinValues(e.options)}, received '${e.received}'`;break;case O.invalid_arguments:n="Invalid function arguments";break;case O.invalid_return_type:n="Invalid function return type";break;case O.invalid_date:n="Invalid date";break;case O.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ce.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case O.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case O.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case O.custom:n="Invalid input";break;case O.invalid_intersection_types:n="Intersection results could not be merged";break;case O.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case O.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ce.assertNever(e)}return{message:n}};let J2=lo;function FD(e){J2=e}function ru(){return J2}const su=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let l="";const c=r.filter(d=>!!d).slice().reverse();for(const d of c)l=d(o,{data:t,defaultError:l}).message;return{...i,path:a,message:l}},VD=[];function G(e,t){const n=ru(),r=su({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===lo?void 0:lo].filter(i=>!!i)});e.common.issues.push(r)}class Ht{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return fe;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const a=await i.key,o=await i.value;r.push({key:a,value:o})}return Ht.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return fe;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(r[a.value]=o.value)}return{status:t.value,value:r}}}const fe=Object.freeze({status:"aborted"}),ba=e=>({status:"dirty",value:e}),Xt=e=>({status:"valid",value:e}),fp=e=>e.status==="aborted",mp=e=>e.status==="dirty",Di=e=>e.status==="valid",Dl=e=>typeof Promise<"u"&&e instanceof Promise;function iu(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function X2(e,t,n,r,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var ne;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ne||(ne={}));var Ho,Go;class jr{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const uw=(e,t)=>{if(Di(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new jn(e.common.issues);return this._error=n,this._error}}};function xe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,l)=>{var c,d;const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??l.defaultError}:typeof l.data>"u"?{message:(c=u??r)!==null&&c!==void 0?c:l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:(d=u??n)!==null&&d!==void 0?d:l.defaultError}},description:i}}class ve{get description(){return this._def.description}_getType(t){return Rr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Rr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ht,ctx:{common:t.parent.common,data:t.data,parsedType:Rr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Dl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Rr(t)},a=this._parseSync({data:t,path:i.path,parent:i});return uw(i,a)}"~validate"(t){var n,r;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Rr(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:i});return Di(a)?{value:a.value}:{issues:i.common.issues}}catch(a){!((r=(n=a==null?void 0:a.message)===null||n===void 0?void 0:n.toLowerCase())===null||r===void 0)&&r.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:i}).then(a=>Di(a)?{value:a.value}:{issues:i.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Rr(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(Dl(i)?i:Promise.resolve(i));return uw(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const o=t(i),l=()=>a.addIssue({code:O.custom,...r(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(l(),!1)):o?!0:(l(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new tr({schema:this,typeName:de.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return vr.create(this,this._def)}nullable(){return qs.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Yn.create(this)}promise(){return uo.create(this,this._def)}or(t){return zl.create([this,t],this._def)}and(t){return Ul.create(this,t,this._def)}transform(t){return new tr({...xe(this._def),schema:this,typeName:de.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Gl({...xe(this._def),innerType:this,defaultValue:n,typeName:de.ZodDefault})}brand(){return new Eg({typeName:de.ZodBranded,type:this,...xe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new ql({...xe(this._def),innerType:this,catchValue:n,typeName:de.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return mc.create(this,t)}readonly(){return Kl.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const zD=/^c[^\s-]{8,}$/i,UD=/^[0-9a-z]+$/,BD=/^[0-9A-HJKMNP-TV-Z]{26}$/i,$D=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,WD=/^[a-z0-9_-]{21}$/i,HD=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,GD=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,qD=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,KD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let gm;const ZD=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,QD=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,YD=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,JD=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,XD=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,eO=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,eS="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",tO=new RegExp(`^${eS}$`);function tS(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function nO(e){return new RegExp(`^${tS(e)}$`)}function nS(e){let t=`${eS}T${tS(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function rO(e,t){return!!((t==="v4"||!t)&&ZD.test(e)||(t==="v6"||!t)&&YD.test(e))}function sO(e,t){if(!HD.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||!i.typ||!i.alg||t&&i.alg!==t)}catch{return!1}}function iO(e,t){return!!((t==="v4"||!t)&&QD.test(e)||(t==="v6"||!t)&&JD.test(e))}class Kn extends ve{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Q.string){const a=this._getOrReturnCtx(t);return G(a,{code:O.invalid_type,expected:Q.string,received:a.parsedType}),fe}const r=new Ht;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.lengtha.value&&(i=this._getOrReturnCtx(t,i),G(i,{code:O.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const o=t.data.length>a.value,l=t.data.lengtht.test(i),{validation:n,code:O.invalid_string,...ne.errToObj(r)})}_addCheck(t){return new Kn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ne.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ne.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ne.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ne.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ne.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ne.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ne.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ne.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ne.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ne.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ne.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ne.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ne.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...ne.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ne.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ne.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ne.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ne.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ne.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ne.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ne.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ne.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ne.errToObj(n)})}nonempty(t){return this.min(1,ne.errToObj(t))}trim(){return new Kn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Kn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Kn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Kn({checks:[],typeName:de.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...xe(e)})};function aO(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}class Ws extends ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Q.number){const a=this._getOrReturnCtx(t);return G(a,{code:O.invalid_type,expected:Q.number,received:a.parsedType}),fe}let r;const i=new Ht;for(const a of this._def.checks)a.kind==="int"?Ce.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),G(r,{code:O.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.dataa.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),G(r,{code:O.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?aO(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),G(r,{code:O.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),G(r,{code:O.not_finite,message:a.message}),i.dirty()):Ce.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ne.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ne.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ne.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ne.toString(n))}setLimit(t,n,r,i){return new Ws({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ne.toString(i)}]})}_addCheck(t){return new Ws({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ne.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ne.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ne.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ne.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ne.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ne.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ne.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ne.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ne.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&Ce.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew Ws({checks:[],typeName:de.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...xe(e)});class Hs extends ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Q.bigint)return this._getInvalidInput(t);let r;const i=new Ht;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.dataa.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),G(r,{code:O.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),G(r,{code:O.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):Ce.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return G(n,{code:O.invalid_type,expected:Q.bigint,received:n.parsedType}),fe}gte(t,n){return this.setLimit("min",t,!0,ne.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ne.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ne.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ne.toString(n))}setLimit(t,n,r,i){return new Hs({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ne.toString(i)}]})}_addCheck(t){return new Hs({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ne.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ne.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ne.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ne.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ne.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Hs({checks:[],typeName:de.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...xe(e)})};class Ol extends ve{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Q.boolean){const r=this._getOrReturnCtx(t);return G(r,{code:O.invalid_type,expected:Q.boolean,received:r.parsedType}),fe}return Xt(t.data)}}Ol.create=e=>new Ol({typeName:de.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...xe(e)});class Oi extends ve{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Q.date){const a=this._getOrReturnCtx(t);return G(a,{code:O.invalid_type,expected:Q.date,received:a.parsedType}),fe}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return G(a,{code:O.invalid_date}),fe}const r=new Ht;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()a.value&&(i=this._getOrReturnCtx(t,i),G(i,{code:O.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):Ce.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Oi({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ne.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ne.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew Oi({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:de.ZodDate,...xe(e)});class au extends ve{_parse(t){if(this._getType(t)!==Q.symbol){const r=this._getOrReturnCtx(t);return G(r,{code:O.invalid_type,expected:Q.symbol,received:r.parsedType}),fe}return Xt(t.data)}}au.create=e=>new au({typeName:de.ZodSymbol,...xe(e)});class Fl extends ve{_parse(t){if(this._getType(t)!==Q.undefined){const r=this._getOrReturnCtx(t);return G(r,{code:O.invalid_type,expected:Q.undefined,received:r.parsedType}),fe}return Xt(t.data)}}Fl.create=e=>new Fl({typeName:de.ZodUndefined,...xe(e)});class Vl extends ve{_parse(t){if(this._getType(t)!==Q.null){const r=this._getOrReturnCtx(t);return G(r,{code:O.invalid_type,expected:Q.null,received:r.parsedType}),fe}return Xt(t.data)}}Vl.create=e=>new Vl({typeName:de.ZodNull,...xe(e)});class co extends ve{constructor(){super(...arguments),this._any=!0}_parse(t){return Xt(t.data)}}co.create=e=>new co({typeName:de.ZodAny,...xe(e)});class Si extends ve{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Xt(t.data)}}Si.create=e=>new Si({typeName:de.ZodUnknown,...xe(e)});class Yr extends ve{_parse(t){const n=this._getOrReturnCtx(t);return G(n,{code:O.invalid_type,expected:Q.never,received:n.parsedType}),fe}}Yr.create=e=>new Yr({typeName:de.ZodNever,...xe(e)});class ou extends ve{_parse(t){if(this._getType(t)!==Q.undefined){const r=this._getOrReturnCtx(t);return G(r,{code:O.invalid_type,expected:Q.void,received:r.parsedType}),fe}return Xt(t.data)}}ou.create=e=>new ou({typeName:de.ZodVoid,...xe(e)});class Yn extends ve{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Q.array)return G(n,{code:O.invalid_type,expected:Q.array,received:n.parsedType}),fe;if(i.exactLength!==null){const o=n.data.length>i.exactLength.value,l=n.data.lengthi.maxLength.value&&(G(n,{code:O.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,l)=>i.type._parseAsync(new jr(n,o,n.path,l)))).then(o=>Ht.mergeArray(r,o));const a=[...n.data].map((o,l)=>i.type._parseSync(new jr(n,o,n.path,l)));return Ht.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new Yn({...this._def,minLength:{value:t,message:ne.toString(n)}})}max(t,n){return new Yn({...this._def,maxLength:{value:t,message:ne.toString(n)}})}length(t,n){return new Yn({...this._def,exactLength:{value:t,message:ne.toString(n)}})}nonempty(t){return this.min(1,t)}}Yn.create=(e,t)=>new Yn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:de.ZodArray,...xe(t)});function ta(e){if(e instanceof Ze){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=vr.create(ta(r))}return new Ze({...e._def,shape:()=>t})}else return e instanceof Yn?new Yn({...e._def,type:ta(e.element)}):e instanceof vr?vr.create(ta(e.unwrap())):e instanceof qs?qs.create(ta(e.unwrap())):e instanceof Nr?Nr.create(e.items.map(t=>ta(t))):e}class Ze extends ve{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Ce.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==Q.object){const d=this._getOrReturnCtx(t);return G(d,{code:O.invalid_type,expected:Q.object,received:d.parsedType}),fe}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof Yr&&this._def.unknownKeys==="strip"))for(const d in i.data)o.includes(d)||l.push(d);const c=[];for(const d of o){const u=a[d],f=i.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new jr(i,f,i.path,d)),alwaysSet:d in i.data})}if(this._def.catchall instanceof Yr){const d=this._def.unknownKeys;if(d==="passthrough")for(const u of l)c.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(d==="strict")l.length>0&&(G(i,{code:O.unrecognized_keys,keys:l}),r.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const d=this._def.catchall;for(const u of l){const f=i.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new jr(i,f,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const d=[];for(const u of c){const f=await u.key,m=await u.value;d.push({key:f,value:m,alwaysSet:u.alwaysSet})}return d}).then(d=>Ht.mergeObjectSync(r,d)):Ht.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return ne.errToObj,new Ze({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,a,o,l;const c=(o=(a=(i=this._def).errorMap)===null||a===void 0?void 0:a.call(i,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(l=ne.errToObj(t).message)!==null&&l!==void 0?l:c}:{message:c}}}:{}})}strip(){return new Ze({...this._def,unknownKeys:"strip"})}passthrough(){return new Ze({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ze({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ze({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:de.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ze({...this._def,catchall:t})}pick(t){const n={};return Ce.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Ze({...this._def,shape:()=>n})}omit(t){const n={};return Ce.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Ze({...this._def,shape:()=>n})}deepPartial(){return ta(this)}partial(t){const n={};return Ce.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new Ze({...this._def,shape:()=>n})}required(t){const n={};return Ce.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof vr;)a=a._def.innerType;n[r]=a}}),new Ze({...this._def,shape:()=>n})}keyof(){return rS(Ce.objectKeys(this.shape))}}Ze.create=(e,t)=>new Ze({shape:()=>e,unknownKeys:"strip",catchall:Yr.create(),typeName:de.ZodObject,...xe(t)});Ze.strictCreate=(e,t)=>new Ze({shape:()=>e,unknownKeys:"strict",catchall:Yr.create(),typeName:de.ZodObject,...xe(t)});Ze.lazycreate=(e,t)=>new Ze({shape:e,unknownKeys:"strip",catchall:Yr.create(),typeName:de.ZodObject,...xe(t)});class zl extends ve{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const l of a)if(l.result.status==="valid")return l.result;for(const l of a)if(l.result.status==="dirty")return n.common.issues.push(...l.ctx.common.issues),l.result;const o=a.map(l=>new jn(l.ctx.common.issues));return G(n,{code:O.invalid_union,unionErrors:o}),fe}if(n.common.async)return Promise.all(r.map(async a=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];for(const c of r){const d={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:d});if(u.status==="valid")return u;u.status==="dirty"&&!a&&(a={result:u,ctx:d}),d.common.issues.length&&o.push(d.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const l=o.map(c=>new jn(c));return G(n,{code:O.invalid_union,unionErrors:l}),fe}}get options(){return this._def.options}}zl.create=(e,t)=>new zl({options:e,typeName:de.ZodUnion,...xe(t)});const Ar=e=>e instanceof $l?Ar(e.schema):e instanceof tr?Ar(e.innerType()):e instanceof Wl?[e.value]:e instanceof Gs?e.options:e instanceof Hl?Ce.objectValues(e.enum):e instanceof Gl?Ar(e._def.innerType):e instanceof Fl?[void 0]:e instanceof Vl?[null]:e instanceof vr?[void 0,...Ar(e.unwrap())]:e instanceof qs?[null,...Ar(e.unwrap())]:e instanceof Eg||e instanceof Kl?Ar(e.unwrap()):e instanceof ql?Ar(e._def.innerType):[];class of extends ve{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Q.object)return G(n,{code:O.invalid_type,expected:Q.object,received:n.parsedType}),fe;const r=this.discriminator,i=n.data[r],a=this.optionsMap.get(i);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(G(n,{code:O.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),fe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const a of n){const o=Ar(a.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const l of o){if(i.has(l))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(l)}`);i.set(l,a)}}return new of({typeName:de.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...xe(r)})}}function hp(e,t){const n=Rr(e),r=Rr(t);if(e===t)return{valid:!0,data:e};if(n===Q.object&&r===Q.object){const i=Ce.objectKeys(t),a=Ce.objectKeys(e).filter(l=>i.indexOf(l)!==-1),o={...e,...t};for(const l of a){const c=hp(e[l],t[l]);if(!c.valid)return{valid:!1};o[l]=c.data}return{valid:!0,data:o}}else if(n===Q.array&&r===Q.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a{if(fp(a)||fp(o))return fe;const l=hp(a.value,o.value);return l.valid?((mp(a)||mp(o))&&n.dirty(),{status:n.value,value:l.data}):(G(r,{code:O.invalid_intersection_types}),fe)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,o])=>i(a,o)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Ul.create=(e,t,n)=>new Ul({left:e,right:t,typeName:de.ZodIntersection,...xe(n)});class Nr extends ve{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.array)return G(r,{code:O.invalid_type,expected:Q.array,received:r.parsedType}),fe;if(r.data.lengththis._def.items.length&&(G(r,{code:O.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((o,l)=>{const c=this._def.items[l]||this._def.rest;return c?c._parse(new jr(r,o,r.path,l)):null}).filter(o=>!!o);return r.common.async?Promise.all(a).then(o=>Ht.mergeArray(n,o)):Ht.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new Nr({...this._def,rest:t})}}Nr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Nr({items:e,typeName:de.ZodTuple,rest:null,...xe(t)})};class Bl extends ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.object)return G(r,{code:O.invalid_type,expected:Q.object,received:r.parsedType}),fe;const i=[],a=this._def.keyType,o=this._def.valueType;for(const l in r.data)i.push({key:a._parse(new jr(r,l,r.path,l)),value:o._parse(new jr(r,r.data[l],r.path,l)),alwaysSet:l in r.data});return r.common.async?Ht.mergeObjectAsync(n,i):Ht.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof ve?new Bl({keyType:t,valueType:n,typeName:de.ZodRecord,...xe(r)}):new Bl({keyType:Kn.create(),valueType:t,typeName:de.ZodRecord,...xe(n)})}}class lu extends ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.map)return G(r,{code:O.invalid_type,expected:Q.map,received:r.parsedType}),fe;const i=this._def.keyType,a=this._def.valueType,o=[...r.data.entries()].map(([l,c],d)=>({key:i._parse(new jr(r,l,r.path,[d,"key"])),value:a._parse(new jr(r,c,r.path,[d,"value"]))}));if(r.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const c of o){const d=await c.key,u=await c.value;if(d.status==="aborted"||u.status==="aborted")return fe;(d.status==="dirty"||u.status==="dirty")&&n.dirty(),l.set(d.value,u.value)}return{status:n.value,value:l}})}else{const l=new Map;for(const c of o){const d=c.key,u=c.value;if(d.status==="aborted"||u.status==="aborted")return fe;(d.status==="dirty"||u.status==="dirty")&&n.dirty(),l.set(d.value,u.value)}return{status:n.value,value:l}}}}lu.create=(e,t,n)=>new lu({valueType:t,keyType:e,typeName:de.ZodMap,...xe(n)});class Fi extends ve{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.set)return G(r,{code:O.invalid_type,expected:Q.set,received:r.parsedType}),fe;const i=this._def;i.minSize!==null&&r.data.sizei.maxSize.value&&(G(r,{code:O.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function o(c){const d=new Set;for(const u of c){if(u.status==="aborted")return fe;u.status==="dirty"&&n.dirty(),d.add(u.value)}return{status:n.value,value:d}}const l=[...r.data.values()].map((c,d)=>a._parse(new jr(r,c,r.path,d)));return r.common.async?Promise.all(l).then(c=>o(c)):o(l)}min(t,n){return new Fi({...this._def,minSize:{value:t,message:ne.toString(n)}})}max(t,n){return new Fi({...this._def,maxSize:{value:t,message:ne.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Fi.create=(e,t)=>new Fi({valueType:e,minSize:null,maxSize:null,typeName:de.ZodSet,...xe(t)});class Ra extends ve{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Q.function)return G(n,{code:O.invalid_type,expected:Q.function,received:n.parsedType}),fe;function r(l,c){return su({data:l,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ru(),lo].filter(d=>!!d),issueData:{code:O.invalid_arguments,argumentsError:c}})}function i(l,c){return su({data:l,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ru(),lo].filter(d=>!!d),issueData:{code:O.invalid_return_type,returnTypeError:c}})}const a={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof uo){const l=this;return Xt(async function(...c){const d=new jn([]),u=await l._def.args.parseAsync(c,a).catch(y=>{throw d.addIssue(r(c,y)),d}),f=await Reflect.apply(o,this,u);return await l._def.returns._def.type.parseAsync(f,a).catch(y=>{throw d.addIssue(i(f,y)),d})})}else{const l=this;return Xt(function(...c){const d=l._def.args.safeParse(c,a);if(!d.success)throw new jn([r(c,d.error)]);const u=Reflect.apply(o,this,d.data),f=l._def.returns.safeParse(u,a);if(!f.success)throw new jn([i(u,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ra({...this._def,args:Nr.create(t).rest(Si.create())})}returns(t){return new Ra({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ra({args:t||Nr.create([]).rest(Si.create()),returns:n||Si.create(),typeName:de.ZodFunction,...xe(r)})}}class $l extends ve{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}$l.create=(e,t)=>new $l({getter:e,typeName:de.ZodLazy,...xe(t)});class Wl extends ve{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return G(n,{received:n.data,code:O.invalid_literal,expected:this._def.value}),fe}return{status:"valid",value:t.data}}get value(){return this._def.value}}Wl.create=(e,t)=>new Wl({value:e,typeName:de.ZodLiteral,...xe(t)});function rS(e,t){return new Gs({values:e,typeName:de.ZodEnum,...xe(t)})}class Gs extends ve{constructor(){super(...arguments),Ho.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return G(n,{expected:Ce.joinValues(r),received:n.parsedType,code:O.invalid_type}),fe}if(iu(this,Ho)||X2(this,Ho,new Set(this._def.values)),!iu(this,Ho).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return G(n,{received:n.data,code:O.invalid_enum_value,options:r}),fe}return Xt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Gs.create(t,{...this._def,...n})}exclude(t,n=this._def){return Gs.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Ho=new WeakMap;Gs.create=rS;class Hl extends ve{constructor(){super(...arguments),Go.set(this,void 0)}_parse(t){const n=Ce.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Q.string&&r.parsedType!==Q.number){const i=Ce.objectValues(n);return G(r,{expected:Ce.joinValues(i),received:r.parsedType,code:O.invalid_type}),fe}if(iu(this,Go)||X2(this,Go,new Set(Ce.getValidEnumValues(this._def.values))),!iu(this,Go).has(t.data)){const i=Ce.objectValues(n);return G(r,{received:r.data,code:O.invalid_enum_value,options:i}),fe}return Xt(t.data)}get enum(){return this._def.values}}Go=new WeakMap;Hl.create=(e,t)=>new Hl({values:e,typeName:de.ZodNativeEnum,...xe(t)});class uo extends ve{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Q.promise&&n.common.async===!1)return G(n,{code:O.invalid_type,expected:Q.promise,received:n.parsedType}),fe;const r=n.parsedType===Q.promise?n.data:Promise.resolve(n.data);return Xt(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}uo.create=(e,t)=>new uo({type:e,typeName:de.ZodPromise,...xe(t)});class tr extends ve{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===de.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:o=>{G(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const o=i.transform(r.data,a);if(r.common.async)return Promise.resolve(o).then(async l=>{if(n.value==="aborted")return fe;const c=await this._def.schema._parseAsync({data:l,path:r.path,parent:r});return c.status==="aborted"?fe:c.status==="dirty"||n.value==="dirty"?ba(c.value):c});{if(n.value==="aborted")return fe;const l=this._def.schema._parseSync({data:o,path:r.path,parent:r});return l.status==="aborted"?fe:l.status==="dirty"||n.value==="dirty"?ba(l.value):l}}if(i.type==="refinement"){const o=l=>{const c=i.refinement(l,a);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return l.status==="aborted"?fe:(l.status==="dirty"&&n.dirty(),o(l.value),{status:n.value,value:l.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>l.status==="aborted"?fe:(l.status==="dirty"&&n.dirty(),o(l.value).then(()=>({status:n.value,value:l.value}))))}if(i.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Di(o))return o;const l=i.transform(o.value,a);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:l}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>Di(o)?Promise.resolve(i.transform(o.value,a)).then(l=>({status:n.value,value:l})):o);Ce.assertNever(i)}}tr.create=(e,t,n)=>new tr({schema:e,typeName:de.ZodEffects,effect:t,...xe(n)});tr.createWithPreprocess=(e,t,n)=>new tr({schema:t,effect:{type:"preprocess",transform:e},typeName:de.ZodEffects,...xe(n)});class vr extends ve{_parse(t){return this._getType(t)===Q.undefined?Xt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}vr.create=(e,t)=>new vr({innerType:e,typeName:de.ZodOptional,...xe(t)});class qs extends ve{_parse(t){return this._getType(t)===Q.null?Xt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}qs.create=(e,t)=>new qs({innerType:e,typeName:de.ZodNullable,...xe(t)});class Gl extends ve{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Q.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Gl.create=(e,t)=>new Gl({innerType:e,typeName:de.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...xe(t)});class ql extends ve{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Dl(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new jn(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new jn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ql.create=(e,t)=>new ql({innerType:e,typeName:de.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...xe(t)});class cu extends ve{_parse(t){if(this._getType(t)!==Q.nan){const r=this._getOrReturnCtx(t);return G(r,{code:O.invalid_type,expected:Q.nan,received:r.parsedType}),fe}return{status:"valid",value:t.data}}}cu.create=e=>new cu({typeName:de.ZodNaN,...xe(e)});const oO=Symbol("zod_brand");class Eg extends ve{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class mc extends ve{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?fe:a.status==="dirty"?(n.dirty(),ba(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?fe:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new mc({in:t,out:n,typeName:de.ZodPipeline})}}class Kl extends ve{_parse(t){const n=this._def.innerType._parse(t),r=i=>(Di(i)&&(i.value=Object.freeze(i.value)),i);return Dl(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}Kl.create=(e,t)=>new Kl({innerType:e,typeName:de.ZodReadonly,...xe(t)});function fw(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function sS(e,t={},n){return e?co.create().superRefine((r,i)=>{var a,o;const l=e(r);if(l instanceof Promise)return l.then(c=>{var d,u;if(!c){const f=fw(t,r),m=(u=(d=f.fatal)!==null&&d!==void 0?d:n)!==null&&u!==void 0?u:!0;i.addIssue({code:"custom",...f,fatal:m})}});if(!l){const c=fw(t,r),d=(o=(a=c.fatal)!==null&&a!==void 0?a:n)!==null&&o!==void 0?o:!0;i.addIssue({code:"custom",...c,fatal:d})}}):co.create()}const lO={object:Ze.lazycreate};var de;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(de||(de={}));const cO=(e,t={message:`Input not instance of ${e.name}`})=>sS(n=>n instanceof e,t),iS=Kn.create,aS=Ws.create,dO=cu.create,uO=Hs.create,oS=Ol.create,fO=Oi.create,mO=au.create,hO=Fl.create,pO=Vl.create,xO=co.create,gO=Si.create,yO=Yr.create,vO=ou.create,wO=Yn.create,bO=Ze.create,jO=Ze.strictCreate,NO=zl.create,CO=of.create,SO=Ul.create,kO=Nr.create,EO=Bl.create,TO=lu.create,AO=Fi.create,PO=Ra.create,_O=$l.create,RO=Wl.create,IO=Gs.create,MO=Hl.create,LO=uo.create,mw=tr.create,DO=vr.create,OO=qs.create,FO=tr.createWithPreprocess,VO=mc.create,zO=()=>iS().optional(),UO=()=>aS().optional(),BO=()=>oS().optional(),$O={string:e=>Kn.create({...e,coerce:!0}),number:e=>Ws.create({...e,coerce:!0}),boolean:e=>Ol.create({...e,coerce:!0}),bigint:e=>Hs.create({...e,coerce:!0}),date:e=>Oi.create({...e,coerce:!0})},WO=fe;var Le=Object.freeze({__proto__:null,defaultErrorMap:lo,setErrorMap:FD,getErrorMap:ru,makeIssue:su,EMPTY_PATH:VD,addIssueToContext:G,ParseStatus:Ht,INVALID:fe,DIRTY:ba,OK:Xt,isAborted:fp,isDirty:mp,isValid:Di,isAsync:Dl,get util(){return Ce},get objectUtil(){return up},ZodParsedType:Q,getParsedType:Rr,ZodType:ve,datetimeRegex:nS,ZodString:Kn,ZodNumber:Ws,ZodBigInt:Hs,ZodBoolean:Ol,ZodDate:Oi,ZodSymbol:au,ZodUndefined:Fl,ZodNull:Vl,ZodAny:co,ZodUnknown:Si,ZodNever:Yr,ZodVoid:ou,ZodArray:Yn,ZodObject:Ze,ZodUnion:zl,ZodDiscriminatedUnion:of,ZodIntersection:Ul,ZodTuple:Nr,ZodRecord:Bl,ZodMap:lu,ZodSet:Fi,ZodFunction:Ra,ZodLazy:$l,ZodLiteral:Wl,ZodEnum:Gs,ZodNativeEnum:Hl,ZodPromise:uo,ZodEffects:tr,ZodTransformer:tr,ZodOptional:vr,ZodNullable:qs,ZodDefault:Gl,ZodCatch:ql,ZodNaN:cu,BRAND:oO,ZodBranded:Eg,ZodPipeline:mc,ZodReadonly:Kl,custom:sS,Schema:ve,ZodSchema:ve,late:lO,get ZodFirstPartyTypeKind(){return de},coerce:$O,any:xO,array:wO,bigint:uO,boolean:oS,date:fO,discriminatedUnion:CO,effect:mw,enum:IO,function:PO,instanceof:cO,intersection:SO,lazy:_O,literal:RO,map:TO,nan:dO,nativeEnum:MO,never:yO,null:pO,nullable:OO,number:aS,object:bO,oboolean:BO,onumber:UO,optional:DO,ostring:zO,pipeline:VO,preprocess:FO,promise:LO,record:EO,set:AO,strictObject:jO,string:iS,symbol:mO,transformer:mw,tuple:kO,undefined:hO,union:NO,unknown:gO,void:vO,NEVER:WO,ZodIssueCode:O,quotelessJson:OD,ZodError:jn}),hc=e=>e.type==="checkbox",fi=e=>e instanceof Date,Yt=e=>e==null;const lS=e=>typeof e=="object";var dt=e=>!Yt(e)&&!Array.isArray(e)&&lS(e)&&!fi(e),cS=e=>dt(e)&&e.target?hc(e.target)?e.target.checked:e.target.value:e,HO=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,dS=(e,t)=>e.has(HO(t)),GO=e=>{const t=e.constructor&&e.constructor.prototype;return dt(t)&&t.hasOwnProperty("isPrototypeOf")},Tg=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function At(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Tg&&(e instanceof Blob||r))&&(n||dt(e)))if(t=n?[]:{},!n&&!GO(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=At(e[i]));else return e;return t}var lf=e=>Array.isArray(e)?e.filter(Boolean):[],ot=e=>e===void 0,H=(e,t,n)=>{if(!t||!dt(e))return n;const r=lf(t.split(/[,[\].]+?/)).reduce((i,a)=>Yt(i)?i:i[a],e);return ot(r)||r===e?ot(e[t])?n:e[t]:r},gn=e=>typeof e=="boolean",Ag=e=>/^\w*$/.test(e),uS=e=>lf(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Re=(e,t,n)=>{let r=-1;const i=Ag(t)?[t]:uS(t),a=i.length,o=a-1;for(;++rie.useContext(fS),qO=e=>{const{children:t,...n}=e;return ie.createElement(fS.Provider,{value:n},t)};var mS=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Gn.all&&(t._proxyFormState[o]=!r||Gn.all),n&&(n[o]=!0),e[o]}});return i};function KO(e){const t=cf(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,l]=ie.useState(n._formState),c=ie.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=ie.useRef(i);return d.current=i,ie.useEffect(()=>n._subscribe({name:d.current,formState:c.current,exact:a,callback:u=>{!r&&l({...n._formState,...u})}}),[n,r,a]),ie.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),ie.useMemo(()=>mS(o,n,c.current,!1),[o,n])}var ur=e=>typeof e=="string",hS=(e,t,n,r,i)=>ur(e)?(r&&t.watch.add(e),H(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),H(n,a))):(r&&(t.watchAll=!0),n);function ZO(e){const t=cf(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},l=ie.useRef(r),c=ie.useRef(i);l.current=r,ie.useEffect(()=>n._subscribe({name:l.current,formState:{values:!0},exact:o,callback:f=>!a&&u(hS(l.current,n._names,f.values||n._formValues,!1,c.current))}),[n,a,o]);const[d,u]=ie.useState(n._getWatch(r,i));return ie.useEffect(()=>n._removeUnmounted()),d}function QO(e){const t=cf(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a}=e,o=dS(i._names.array,n),l=ZO({control:i,name:n,defaultValue:H(i._formValues,n,H(i._defaultValues,n,e.defaultValue)),exact:!0}),c=KO({control:i,name:n,exact:!0}),d=ie.useRef(e),u=ie.useRef(i.register(n,{...e.rules,value:l,...gn(e.disabled)?{disabled:e.disabled}:{}})),f=ie.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!H(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!H(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!H(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!H(c.validatingFields,n)},error:{enumerable:!0,get:()=>H(c.errors,n)}}),[c,n]),m=ie.useCallback(w=>u.current.onChange({target:{value:cS(w),name:n},type:du.CHANGE}),[n]),y=ie.useCallback(()=>u.current.onBlur({target:{value:H(i._formValues,n),name:n},type:du.BLUR}),[n,i._formValues]),b=ie.useCallback(w=>{const g=H(i._fields,n);g&&w&&(g._f.ref={focus:()=>w.focus(),select:()=>w.select(),setCustomValidity:p=>w.setCustomValidity(p),reportValidity:()=>w.reportValidity()})},[i._fields,n]),x=ie.useMemo(()=>({name:n,value:l,...gn(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:m,onBlur:y,ref:b}),[n,r,c.disabled,m,y,b,l]);return ie.useEffect(()=>{const w=i._options.shouldUnregister||a;i.register(n,{...d.current.rules,...gn(d.current.disabled)?{disabled:d.current.disabled}:{}});const g=(p,v)=>{const j=H(i._fields,p);j&&j._f&&(j._f.mount=v)};if(g(n,!0),w){const p=At(H(i._options.defaultValues,n));Re(i._defaultValues,n,p),ot(H(i._formValues,n))&&Re(i._formValues,n,p)}return!o&&i.register(n),()=>{(o?w&&!i._state.action:w)?i.unregister(n):g(n,!1)}},[n,i,o,a]),ie.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),ie.useMemo(()=>({field:x,formState:c,fieldState:f}),[x,c,f])}const YO=e=>e.render(QO(e));var pS=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ll=e=>Array.isArray(e)?e:[e],hw=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},pp=e=>Yt(e)||!lS(e);function fs(e,t){if(pp(e)||pp(t))return e===t;if(fi(e)&&fi(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(fi(a)&&fi(o)||dt(a)&&dt(o)||Array.isArray(a)&&Array.isArray(o)?!fs(a,o):a!==o)return!1}}return!0}var Zt=e=>dt(e)&&!Object.keys(e).length,Pg=e=>e.type==="file",qn=e=>typeof e=="function",uu=e=>{if(!Tg)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},xS=e=>e.type==="select-multiple",_g=e=>e.type==="radio",JO=e=>_g(e)||hc(e),ym=e=>uu(e)&&e.isConnected;function XO(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const t in e)if(qn(e[t]))return!0;return!1};function fu(e,t={}){const n=Array.isArray(e);if(dt(e)||n)for(const r in e)Array.isArray(e[r])||dt(e[r])&&!gS(e[r])?(t[r]=Array.isArray(e[r])?[]:{},fu(e[r],t[r])):Yt(e[r])||(t[r]=!0);return t}function yS(e,t,n){const r=Array.isArray(e);if(dt(e)||r)for(const i in e)Array.isArray(e[i])||dt(e[i])&&!gS(e[i])?ot(t)||pp(n[i])?n[i]=Array.isArray(e[i])?fu(e[i],[]):{...fu(e[i])}:yS(e[i],Yt(t)?{}:t[i],n[i]):n[i]=!fs(e[i],t[i]);return n}var Lo=(e,t)=>yS(e,t,fu(t));const pw={value:!1,isValid:!1},xw={value:!0,isValid:!0};var vS=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ot(e[0].attributes.value)?ot(e[0].value)||e[0].value===""?xw:{value:e[0].value,isValid:!0}:xw:pw}return pw},wS=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ot(e)?e:t?e===""?NaN:e&&+e:n&&ur(e)?new Date(e):r?r(e):e;const gw={isValid:!1,value:null};var bS=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,gw):gw;function yw(e){const t=e.ref;return Pg(t)?t.files:_g(t)?bS(e.refs).value:xS(t)?[...t.selectedOptions].map(({value:n})=>n):hc(t)?vS(e.refs).value:wS(ot(t.value)?e.ref.value:t.value,e)}var t5=(e,t,n,r)=>{const i={};for(const a of e){const o=H(t,a);o&&Re(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},mu=e=>e instanceof RegExp,Do=e=>ot(e)?e:mu(e)?e.source:dt(e)?mu(e.value)?e.value.source:e.value:e,vw=e=>({isOnSubmit:!e||e===Gn.onSubmit,isOnBlur:e===Gn.onBlur,isOnChange:e===Gn.onChange,isOnAll:e===Gn.all,isOnTouch:e===Gn.onTouched});const ww="AsyncFunction";var n5=e=>!!e&&!!e.validate&&!!(qn(e.validate)&&e.validate.constructor.name===ww||dt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===ww)),r5=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),bw=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const cl=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=H(e,i);if(a){const{_f:o,...l}=a;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(cl(l,t))break}else if(dt(l)&&cl(l,t))break}}};function jw(e,t,n){const r=H(e,n);if(r||Ag(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=H(t,a),l=H(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(l&&l.type)return{name:a,error:l};i.pop()}return{name:n}}var s5=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Zt(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Gn.all))},i5=(e,t,n)=>!e||!t||e===t||ll(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),a5=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,o5=(e,t)=>!lf(H(e,t)).length&&xt(e,t),l5=(e,t,n)=>{const r=ll(H(e,n));return Re(r,"root",t[n]),Re(e,n,r),e},hd=e=>ur(e);function Nw(e,t,n="validate"){if(hd(e)||Array.isArray(e)&&e.every(hd)||gn(e)&&!e)return{type:n,message:hd(e)?e:"",ref:t}}var Yi=e=>dt(e)&&!mu(e)?e:{value:e,message:""},Cw=async(e,t,n,r,i,a)=>{const{ref:o,refs:l,required:c,maxLength:d,minLength:u,min:f,max:m,pattern:y,validate:b,name:x,valueAsNumber:w,mount:g}=e._f,p=H(n,x);if(!g||t.has(x))return{};const v=l?l[0]:o,j=L=>{i&&v.reportValidity&&(v.setCustomValidity(gn(L)?"":L||""),v.reportValidity())},N={},T=_g(o),k=hc(o),E=T||k,A=(w||Pg(o))&&ot(o.value)&&ot(p)||uu(o)&&o.value===""||p===""||Array.isArray(p)&&!p.length,R=pS.bind(null,x,r,N),B=(L,F,D,se=Er.maxLength,q=Er.minLength)=>{const K=L?F:D;N[x]={type:L?se:q,message:K,ref:o,...R(L?se:q,K)}};if(a?!Array.isArray(p)||!p.length:c&&(!E&&(A||Yt(p))||gn(p)&&!p||k&&!vS(l).isValid||T&&!bS(l).isValid)){const{value:L,message:F}=hd(c)?{value:!!c,message:c}:Yi(c);if(L&&(N[x]={type:Er.required,message:F,ref:v,...R(Er.required,F)},!r))return j(F),N}if(!A&&(!Yt(f)||!Yt(m))){let L,F;const D=Yi(m),se=Yi(f);if(!Yt(p)&&!isNaN(p)){const q=o.valueAsNumber||p&&+p;Yt(D.value)||(L=q>D.value),Yt(se.value)||(F=qnew Date(new Date().toDateString()+" "+X),_=o.type=="time",z=o.type=="week";ur(D.value)&&p&&(L=_?K(p)>K(D.value):z?p>D.value:q>new Date(D.value)),ur(se.value)&&p&&(F=_?K(p)+L.value,se=!Yt(F.value)&&p.length<+F.value;if((D||se)&&(B(D,L.message,F.message),!r))return j(N[x].message),N}if(y&&!A&&ur(p)){const{value:L,message:F}=Yi(y);if(mu(L)&&!p.match(L)&&(N[x]={type:Er.pattern,message:F,ref:o,...R(Er.pattern,F)},!r))return j(F),N}if(b){if(qn(b)){const L=await b(p,n),F=Nw(L,v);if(F&&(N[x]={...F,...R(Er.validate,F.message)},!r))return j(F.message),N}else if(dt(b)){let L={};for(const F in b){if(!Zt(L)&&!r)break;const D=Nw(await b[F](p,n),v,F);D&&(L={...D,...R(F,D.message)},j(D.message),r&&(N[x]=L))}if(!Zt(L)&&(N[x]={ref:v,...L},!r))return N}}return j(!0),N};const c5={mode:Gn.onSubmit,reValidateMode:Gn.onChange,shouldFocusError:!0};function d5(e={}){let t={...c5,...e},n={submitCount:0,isDirty:!1,isLoading:qn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1};const r={};let i=dt(t.defaultValues)||dt(t.values)?At(t.values||t.defaultValues)||{}:{},a=t.shouldUnregister?{}:At(i),o={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f={...u};const m={array:hw(),state:hw()},y=vw(t.mode),b=vw(t.reValidateMode),x=t.criteriaMode===Gn.all,w=C=>P=>{clearTimeout(d),d=setTimeout(C,P)},g=async C=>{if(!t.disabled&&(u.isValid||f.isValid||C)){const P=t.resolver?Zt((await A()).errors):await B(r,!0);P!==n.isValid&&m.state.next({isValid:P})}},p=(C,P)=>{!t.disabled&&(u.isValidating||u.validatingFields||f.isValidating||f.validatingFields)&&((C||Array.from(l.mount)).forEach(I=>{I&&(P?Re(n.validatingFields,I,P):xt(n.validatingFields,I))}),m.state.next({validatingFields:n.validatingFields,isValidating:!Zt(n.validatingFields)}))},v=(C,P=[],I,Y,W=!0,U=!0)=>{if(Y&&I&&!t.disabled){if(o.action=!0,U&&Array.isArray(H(r,C))){const te=I(H(r,C),Y.argA,Y.argB);W&&Re(r,C,te)}if(U&&Array.isArray(H(n.errors,C))){const te=I(H(n.errors,C),Y.argA,Y.argB);W&&Re(n.errors,C,te),o5(n.errors,C)}if((u.touchedFields||f.touchedFields)&&U&&Array.isArray(H(n.touchedFields,C))){const te=I(H(n.touchedFields,C),Y.argA,Y.argB);W&&Re(n.touchedFields,C,te)}(u.dirtyFields||f.dirtyFields)&&(n.dirtyFields=Lo(i,a)),m.state.next({name:C,isDirty:F(C,P),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Re(a,C,P)},j=(C,P)=>{Re(n.errors,C,P),m.state.next({errors:n.errors})},N=C=>{n.errors=C,m.state.next({errors:n.errors,isValid:!1})},T=(C,P,I,Y)=>{const W=H(r,C);if(W){const U=H(a,C,ot(I)?H(i,C):I);ot(U)||Y&&Y.defaultChecked||P?Re(a,C,P?U:yw(W._f)):q(C,U),o.mount&&g()}},k=(C,P,I,Y,W)=>{let U=!1,te=!1;const Te={name:C};if(!t.disabled){if(!I||Y){(u.isDirty||f.isDirty)&&(te=n.isDirty,n.isDirty=Te.isDirty=F(),U=te!==Te.isDirty);const ft=fs(H(i,C),P);te=!!H(n.dirtyFields,C),ft?xt(n.dirtyFields,C):Re(n.dirtyFields,C,!0),Te.dirtyFields=n.dirtyFields,U=U||(u.dirtyFields||f.dirtyFields)&&te!==!ft}if(I){const ft=H(n.touchedFields,C);ft||(Re(n.touchedFields,C,I),Te.touchedFields=n.touchedFields,U=U||(u.touchedFields||f.touchedFields)&&ft!==I)}U&&W&&m.state.next(Te)}return U?Te:{}},E=(C,P,I,Y)=>{const W=H(n.errors,C),U=(u.isValid||f.isValid)&&gn(P)&&n.isValid!==P;if(t.delayError&&I?(c=w(()=>j(C,I)),c(t.delayError)):(clearTimeout(d),c=null,I?Re(n.errors,C,I):xt(n.errors,C)),(I?!fs(W,I):W)||!Zt(Y)||U){const te={...Y,...U&&gn(P)?{isValid:P}:{},errors:n.errors,name:C};n={...n,...te},m.state.next(te)}},A=async C=>{p(C,!0);const P=await t.resolver(a,t.context,t5(C||l.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return p(C),P},R=async C=>{const{errors:P}=await A(C);if(C)for(const I of C){const Y=H(P,I);Y?Re(n.errors,I,Y):xt(n.errors,I)}else n.errors=P;return P},B=async(C,P,I={valid:!0})=>{for(const Y in C){const W=C[Y];if(W){const{_f:U,...te}=W;if(U){const Te=l.array.has(U.name),ft=W._f&&n5(W._f);ft&&u.validatingFields&&p([Y],!0);const Lt=await Cw(W,l.disabled,a,x,t.shouldUseNativeValidation&&!P,Te);if(ft&&u.validatingFields&&p([Y]),Lt[U.name]&&(I.valid=!1,P))break;!P&&(H(Lt,U.name)?Te?l5(n.errors,Lt,U.name):Re(n.errors,U.name,Lt[U.name]):xt(n.errors,U.name))}!Zt(te)&&await B(te,P,I)}}return I.valid},L=()=>{for(const C of l.unMount){const P=H(r,C);P&&(P._f.refs?P._f.refs.every(I=>!ym(I)):!ym(P._f.ref))&&ut(C)}l.unMount=new Set},F=(C,P)=>!t.disabled&&(C&&P&&Re(a,C,P),!fs(Ae(),i)),D=(C,P,I)=>hS(C,l,{...o.mount?a:ot(P)?i:ur(C)?{[C]:P}:P},I,P),se=C=>lf(H(o.mount?a:i,C,t.shouldUnregister?H(i,C,[]):[])),q=(C,P,I={})=>{const Y=H(r,C);let W=P;if(Y){const U=Y._f;U&&(!U.disabled&&Re(a,C,wS(P,U)),W=uu(U.ref)&&Yt(P)?"":P,xS(U.ref)?[...U.ref.options].forEach(te=>te.selected=W.includes(te.value)):U.refs?hc(U.ref)?U.refs.length>1?U.refs.forEach(te=>(!te.defaultChecked||!te.disabled)&&(te.checked=Array.isArray(W)?!!W.find(Te=>Te===te.value):W===te.value)):U.refs[0]&&(U.refs[0].checked=!!W):U.refs.forEach(te=>te.checked=te.value===W):Pg(U.ref)?U.ref.value="":(U.ref.value=W,U.ref.type||m.state.next({name:C,values:At(a)})))}(I.shouldDirty||I.shouldTouch)&&k(C,W,I.shouldTouch,I.shouldDirty,!0),I.shouldValidate&&me(C)},K=(C,P,I)=>{for(const Y in P){const W=P[Y],U=`${C}.${Y}`,te=H(r,U);(l.array.has(C)||dt(W)||te&&!te._f)&&!fi(W)?K(U,W,I):q(U,W,I)}},_=(C,P,I={})=>{const Y=H(r,C),W=l.array.has(C),U=At(P);Re(a,C,U),W?(m.array.next({name:C,values:At(a)}),(u.isDirty||u.dirtyFields||f.isDirty||f.dirtyFields)&&I.shouldDirty&&m.state.next({name:C,dirtyFields:Lo(i,a),isDirty:F(C,U)})):Y&&!Y._f&&!Yt(U)?K(C,U,I):q(C,U,I),bw(C,l)&&m.state.next({...n}),m.state.next({name:o.mount?C:void 0,values:At(a)})},z=async C=>{o.mount=!0;const P=C.target;let I=P.name,Y=!0;const W=H(r,I),U=te=>{Y=Number.isNaN(te)||fi(te)&&isNaN(te.getTime())||fs(te,H(a,I,te))};if(W){let te,Te;const ft=P.type?yw(W._f):cS(C),Lt=C.type===du.BLUR||C.type===du.FOCUS_OUT,$E=!r5(W._f)&&!t.resolver&&!H(n.errors,I)&&!W._f.deps||a5(Lt,H(n.touchedFields,I),n.isSubmitted,b,y),bf=bw(I,l,Lt);Re(a,I,ft),Lt?(W._f.onBlur&&W._f.onBlur(C),c&&c(0)):W._f.onChange&&W._f.onChange(C);const jf=k(I,ft,Lt),WE=!Zt(jf)||bf;if(!Lt&&m.state.next({name:I,type:C.type,values:At(a)}),$E)return(u.isValid||f.isValid)&&(t.mode==="onBlur"?Lt&&g():Lt||g()),WE&&m.state.next({name:I,...bf?{}:jf});if(!Lt&&bf&&m.state.next({...n}),t.resolver){const{errors:iy}=await A([I]);if(U(ft),Y){const HE=jw(n.errors,r,I),ay=jw(iy,r,HE.name||I);te=ay.error,I=ay.name,Te=Zt(iy)}}else p([I],!0),te=(await Cw(W,l.disabled,a,x,t.shouldUseNativeValidation))[I],p([I]),U(ft),Y&&(te?Te=!1:(u.isValid||f.isValid)&&(Te=await B(r,!0)));Y&&(W._f.deps&&me(W._f.deps),E(I,Te,te,jf))}},X=(C,P)=>{if(H(n.errors,P)&&C.focus)return C.focus(),1},me=async(C,P={})=>{let I,Y;const W=ll(C);if(t.resolver){const U=await R(ot(C)?C:W);I=Zt(U),Y=C?!W.some(te=>H(U,te)):I}else C?(Y=(await Promise.all(W.map(async U=>{const te=H(r,U);return await B(te&&te._f?{[U]:te}:te)}))).every(Boolean),!(!Y&&!n.isValid)&&g()):Y=I=await B(r);return m.state.next({...!ur(C)||(u.isValid||f.isValid)&&I!==n.isValid?{}:{name:C},...t.resolver||!C?{isValid:I}:{},errors:n.errors}),P.shouldFocus&&!Y&&cl(r,X,C?W:l.mount),Y},Ae=C=>{const P={...o.mount?a:i};return ot(C)?P:ur(C)?H(P,C):C.map(I=>H(P,I))},St=(C,P)=>({invalid:!!H((P||n).errors,C),isDirty:!!H((P||n).dirtyFields,C),error:H((P||n).errors,C),isValidating:!!H(n.validatingFields,C),isTouched:!!H((P||n).touchedFields,C)}),it=C=>{C&&ll(C).forEach(P=>xt(n.errors,P)),m.state.next({errors:C?n.errors:{}})},mn=(C,P,I)=>{const Y=(H(r,C,{_f:{}})._f||{}).ref,W=H(n.errors,C)||{},{ref:U,message:te,type:Te,...ft}=W;Re(n.errors,C,{...ft,...P,ref:Y}),m.state.next({name:C,errors:n.errors,isValid:!1}),I&&I.shouldFocus&&Y&&Y.focus&&Y.focus()},Tt=(C,P)=>qn(C)?m.state.subscribe({next:I=>C(D(void 0,P),I)}):D(C,P,!0),oe=C=>m.state.subscribe({next:P=>{i5(C.name,P.name,C.exact)&&s5(P,C.formState||u,Zi,C.reRenderRoot)&&C.callback({values:{...a},...n,...P})}}).unsubscribe,ze=C=>(o.mount=!0,f={...f,...C.formState},oe({...C,formState:f})),ut=(C,P={})=>{for(const I of C?ll(C):l.mount)l.mount.delete(I),l.array.delete(I),P.keepValue||(xt(r,I),xt(a,I)),!P.keepError&&xt(n.errors,I),!P.keepDirty&&xt(n.dirtyFields,I),!P.keepTouched&&xt(n.touchedFields,I),!P.keepIsValidating&&xt(n.validatingFields,I),!t.shouldUnregister&&!P.keepDefaultValue&&xt(i,I);m.state.next({values:At(a)}),m.state.next({...n,...P.keepDirty?{isDirty:F()}:{}}),!P.keepIsValid&&g()},Me=({disabled:C,name:P})=>{(gn(C)&&o.mount||C||l.disabled.has(P))&&(C?l.disabled.add(P):l.disabled.delete(P))},Ee=(C,P={})=>{let I=H(r,C);const Y=gn(P.disabled)||gn(t.disabled);return Re(r,C,{...I||{},_f:{...I&&I._f?I._f:{ref:{name:C}},name:C,mount:!0,...P}}),l.mount.add(C),I?Me({disabled:gn(P.disabled)?P.disabled:t.disabled,name:C}):T(C,!0,P.value),{...Y?{disabled:P.disabled||t.disabled}:{},...t.progressive?{required:!!P.required,min:Do(P.min),max:Do(P.max),minLength:Do(P.minLength),maxLength:Do(P.maxLength),pattern:Do(P.pattern)}:{},name:C,onChange:z,onBlur:z,ref:W=>{if(W){Ee(C,P),I=H(r,C);const U=ot(W.value)&&W.querySelectorAll&&W.querySelectorAll("input,select,textarea")[0]||W,te=JO(U),Te=I._f.refs||[];if(te?Te.find(ft=>ft===U):U===I._f.ref)return;Re(r,C,{_f:{...I._f,...te?{refs:[...Te.filter(ym),U,...Array.isArray(H(i,C))?[{}]:[]],ref:{type:U.type,name:C}}:{ref:U}}}),T(C,!1,void 0,U)}else I=H(r,C,{}),I._f&&(I._f.mount=!1),(t.shouldUnregister||P.shouldUnregister)&&!(dS(l.array,C)&&o.action)&&l.unMount.add(C)}}},Pe=()=>t.shouldFocusError&&cl(r,X,l.mount),Gt=C=>{gn(C)&&(m.state.next({disabled:C}),cl(r,(P,I)=>{const Y=H(r,I);Y&&(P.disabled=Y._f.disabled||C,Array.isArray(Y._f.refs)&&Y._f.refs.forEach(W=>{W.disabled=Y._f.disabled||C}))},0,!1))},hn=(C,P)=>async I=>{let Y;I&&(I.preventDefault&&I.preventDefault(),I.persist&&I.persist());let W=At(a);if(m.state.next({isSubmitting:!0}),t.resolver){const{errors:U,values:te}=await A();n.errors=U,W=te}else await B(r);if(l.disabled.size)for(const U of l.disabled)Re(W,U,void 0);if(xt(n.errors,"root"),Zt(n.errors)){m.state.next({errors:{}});try{await C(W,I)}catch(U){Y=U}}else P&&await P({...n.errors},I),Pe(),setTimeout(Pe);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Zt(n.errors)&&!Y,submitCount:n.submitCount+1,errors:n.errors}),Y)throw Y},ni=(C,P={})=>{H(r,C)&&(ot(P.defaultValue)?_(C,At(H(i,C))):(_(C,P.defaultValue),Re(i,C,At(P.defaultValue))),P.keepTouched||xt(n.touchedFields,C),P.keepDirty||(xt(n.dirtyFields,C),n.isDirty=P.defaultValue?F(C,At(H(i,C))):F()),P.keepError||(xt(n.errors,C),u.isValid&&g()),m.state.next({...n}))},es=(C,P={})=>{const I=C?At(C):i,Y=At(I),W=Zt(C),U=W?i:Y;if(P.keepDefaultValues||(i=I),!P.keepValues){if(P.keepDirtyValues){const te=new Set([...l.mount,...Object.keys(Lo(i,a))]);for(const Te of Array.from(te))H(n.dirtyFields,Te)?Re(U,Te,H(a,Te)):_(Te,H(U,Te))}else{if(Tg&&ot(C))for(const te of l.mount){const Te=H(r,te);if(Te&&Te._f){const ft=Array.isArray(Te._f.refs)?Te._f.refs[0]:Te._f.ref;if(uu(ft)){const Lt=ft.closest("form");if(Lt){Lt.reset();break}}}}for(const te of l.mount)_(te,H(U,te))}a=At(U),m.array.next({values:{...U}}),m.state.next({values:{...U}})}l={mount:P.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!P.keepIsValid||!!P.keepDirtyValues,o.watch=!!t.shouldUnregister,m.state.next({submitCount:P.keepSubmitCount?n.submitCount:0,isDirty:W?!1:P.keepDirty?n.isDirty:!!(P.keepDefaultValues&&!fs(C,i)),isSubmitted:P.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:W?{}:P.keepDirtyValues?P.keepDefaultValues&&a?Lo(i,a):n.dirtyFields:P.keepDefaultValues&&C?Lo(i,C):P.keepDirty?n.dirtyFields:{},touchedFields:P.keepTouched?n.touchedFields:{},errors:P.keepErrors?n.errors:{},isSubmitSuccessful:P.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},ts=(C,P)=>es(qn(C)?C(a):C,P),wf=(C,P={})=>{const I=H(r,C),Y=I&&I._f;if(Y){const W=Y.refs?Y.refs[0]:Y.ref;W.focus&&(W.focus(),P.shouldSelect&&qn(W.select)&&W.select())}},Zi=C=>{n={...n,...C}},sy={control:{register:Ee,unregister:ut,getFieldState:St,handleSubmit:hn,setError:mn,_subscribe:oe,_runSchema:A,_getWatch:D,_getDirty:F,_setValid:g,_setFieldArray:v,_setDisabledField:Me,_setErrors:N,_getFieldArray:se,_reset:es,_resetDefaultValues:()=>qn(t.defaultValues)&&t.defaultValues().then(C=>{ts(C,t.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:L,_disableForm:Gt,_subjects:m,_proxyFormState:u,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(C){o=C},get _defaultValues(){return i},get _names(){return l},set _names(C){l=C},get _formState(){return n},get _options(){return t},set _options(C){t={...t,...C}}},subscribe:ze,trigger:me,register:Ee,handleSubmit:hn,watch:Tt,setValue:_,getValues:Ae,reset:ts,resetField:ni,clearErrors:it,unregister:ut,setError:mn,setFocus:wf,getFieldState:St};return{...sy,formControl:sy}}function Rg(e={}){const t=ie.useRef(void 0),n=ie.useRef(void 0),[r,i]=ie.useState({isDirty:!1,isValidating:!1,isLoading:qn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:qn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...e.formControl?e.formControl:d5(e),formState:r},e.formControl&&e.defaultValues&&!qn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions));const a=t.current.control;return a._options=e,ie.useLayoutEffect(()=>a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0}),[a]),ie.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),ie.useEffect(()=>{if(a._proxyFormState.isDirty){const o=a._getDirty();o!==r.isDirty&&a._subjects.state.next({isDirty:o})}},[a,r.isDirty]),ie.useEffect(()=>{e.values&&!fs(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i(o=>({...o}))):a._resetDefaultValues()},[e.values,a]),ie.useEffect(()=>{e.errors&&!Zt(e.errors)&&a._setErrors(e.errors)},[e.errors,a]),ie.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),ie.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=mS(r,a),t.current}const Sw=(e,t,n)=>{if(e&&"reportValidity"in e){const r=H(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},jS=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Sw(r.ref,n,e):r.refs&&r.refs.forEach(i=>Sw(i,n,e))}},u5=(e,t)=>{t.shouldUseNativeValidation&&jS(e,t);const n={};for(const r in e){const i=H(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(f5(t.names||Object.keys(e),r)){const o=Object.assign({},H(n,r));Re(o,"root",a),Re(n,r,o)}else Re(n,r,a)}return n},f5=(e,t)=>e.some(n=>n.startsWith(t+"."));var m5=function(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var l=r.unionErrors[0].errors[0];n[o]={message:l.message,type:l.code}}else n[o]={message:a,type:i};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(f){return e.push(f)})}),t){var c=n[o].types,d=c&&c[r.code];n[o]=pS(o,t,n,i,d?[].concat(d,r.message):r.message)}e.shift()}return n},Ig=function(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,l){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(d){return a.shouldUseNativeValidation&&jS({},a),{errors:{},values:n.raw?r:d}})}catch(d){return l(d)}return c&&c.then?c.then(void 0,l):c}(0,function(o){if(function(l){return Array.isArray(l==null?void 0:l.errors)}(o))return{values:{},errors:u5(m5(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}}},h5="Label",NS=h.forwardRef((e,t)=>s.jsx(ue.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));NS.displayName=h5;var CS=NS;const p5=ac("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),nn=h.forwardRef(({className:e,...t},n)=>s.jsx(CS,{ref:n,className:re(p5(),e),...t}));nn.displayName=CS.displayName;const Mg=qO,SS=h.createContext({}),gt=({...e})=>s.jsx(SS.Provider,{value:{name:e.name},children:s.jsx(YO,{...e})}),df=()=>{const e=h.useContext(SS),t=h.useContext(kS),{getFieldState:n,formState:r}=cf(),i=n(e.name,r);if(!e)throw new Error("useFormField should be used within ");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},kS=h.createContext({}),mt=h.forwardRef(({className:e,...t},n)=>{const r=h.useId();return s.jsx(kS.Provider,{value:{id:r},children:s.jsx("div",{ref:n,className:re("space-y-2",e),...t})})});mt.displayName="FormItem";const yt=h.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:i}=df();return s.jsx(nn,{ref:n,className:re(r&&"text-destructive",e),htmlFor:i,...t})});yt.displayName="FormLabel";const vt=h.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:i,formMessageId:a}=df();return s.jsx(W1,{ref:t,id:r,"aria-describedby":n?`${i} ${a}`:`${i}`,"aria-invalid":!!n,...e})});vt.displayName="FormControl";const x5=h.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=df();return s.jsx("p",{ref:n,id:r,className:re("text-sm text-muted-foreground",e),...t})});x5.displayName="FormDescription";const wt=h.forwardRef(({className:e,children:t,...n},r)=>{const{error:i,formMessageId:a}=df(),o=i?String((i==null?void 0:i.message)??""):t;return o?s.jsx("p",{ref:r,id:a,className:re("text-sm font-medium text-destructive",e),...n,children:o}):null});wt.displayName="FormMessage";const jt=h.forwardRef(({className:e,type:t,...n},r)=>s.jsx("input",{type:t,className:re("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));jt.displayName="Input";function kw(e,[t,n]){return Math.min(n,Math.max(t,e))}var g5=h.createContext(void 0);function uf(e){const t=h.useContext(g5);return e||t||"ltr"}var vm=0;function ES(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ew()),document.body.insertAdjacentElement("beforeend",e[1]??Ew()),vm++,()=>{vm===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),vm--}},[])}function Ew(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var wm="focusScope.autoFocusOnMount",bm="focusScope.autoFocusOnUnmount",Tw={bubbles:!1,cancelable:!0},y5="FocusScope",Lg=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[l,c]=h.useState(null),d=un(i),u=un(a),f=h.useRef(null),m=Fe(t,x=>c(x)),y=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let x=function(v){if(y.paused||!l)return;const j=v.target;l.contains(j)?f.current=j:os(f.current,{select:!0})},w=function(v){if(y.paused||!l)return;const j=v.relatedTarget;j!==null&&(l.contains(j)||os(f.current,{select:!0}))},g=function(v){if(document.activeElement===document.body)for(const N of v)N.removedNodes.length>0&&os(l)};document.addEventListener("focusin",x),document.addEventListener("focusout",w);const p=new MutationObserver(g);return l&&p.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",w),p.disconnect()}}},[r,l,y.paused]),h.useEffect(()=>{if(l){Pw.add(y);const x=document.activeElement;if(!l.contains(x)){const g=new CustomEvent(wm,Tw);l.addEventListener(wm,d),l.dispatchEvent(g),g.defaultPrevented||(v5(C5(TS(l)),{select:!0}),document.activeElement===x&&os(l))}return()=>{l.removeEventListener(wm,d),setTimeout(()=>{const g=new CustomEvent(bm,Tw);l.addEventListener(bm,u),l.dispatchEvent(g),g.defaultPrevented||os(x??document.body,{select:!0}),l.removeEventListener(bm,u),Pw.remove(y)},0)}}},[l,d,u,y]);const b=h.useCallback(x=>{if(!n&&!r||y.paused)return;const w=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,g=document.activeElement;if(w&&g){const p=x.currentTarget,[v,j]=w5(p);v&&j?!x.shiftKey&&g===j?(x.preventDefault(),n&&os(v,{select:!0})):x.shiftKey&&g===v&&(x.preventDefault(),n&&os(j,{select:!0})):g===p&&x.preventDefault()}},[n,r,y.paused]);return s.jsx(ue.div,{tabIndex:-1,...o,ref:m,onKeyDown:b})});Lg.displayName=y5;function v5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(os(r,{select:t}),document.activeElement!==n)return}function w5(e){const t=TS(e),n=Aw(t,e),r=Aw(t.reverse(),e);return[n,r]}function TS(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Aw(e,t){for(const n of e)if(!b5(n,{upTo:t}))return n}function b5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function j5(e){return e instanceof HTMLInputElement&&"select"in e}function os(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&j5(e)&&t&&e.select()}}var Pw=N5();function N5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=_w(e,t),e.unshift(t)},remove(t){var n;e=_w(e,t),(n=e[0])==null||n.resume()}}}function _w(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function C5(e){return e.filter(t=>t.tagName!=="A")}function AS(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var S5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ji=new WeakMap,$c=new WeakMap,Wc={},jm=0,PS=function(e){return e&&(e.host||PS(e.parentNode))},k5=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=PS(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},E5=function(e,t,n,r){var i=k5(t,Array.isArray(e)?e:[e]);Wc[n]||(Wc[n]=new WeakMap);var a=Wc[n],o=[],l=new Set,c=new Set(i),d=function(f){!f||l.has(f)||(l.add(f),d(f.parentNode))};i.forEach(d);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(m){if(l.has(m))u(m);else try{var y=m.getAttribute(r),b=y!==null&&y!=="false",x=(Ji.get(m)||0)+1,w=(a.get(m)||0)+1;Ji.set(m,x),a.set(m,w),o.push(m),x===1&&b&&$c.set(m,!0),w===1&&m.setAttribute(n,"true"),b||m.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",m,g)}})};return u(t),l.clear(),jm++,function(){o.forEach(function(f){var m=Ji.get(f)-1,y=a.get(f)-1;Ji.set(f,m),a.set(f,y),m||($c.has(f)||f.removeAttribute(r),$c.delete(f)),y||f.removeAttribute(n)}),jm--,jm||(Ji=new WeakMap,Ji=new WeakMap,$c=new WeakMap,Wc={})}},_S=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=S5(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),E5(r,i,n,"aria-hidden")):function(){return null}},dr=function(){return dr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r"u")return W5;var t=H5(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},q5=LS(),Ia="data-scroll-locked",K5=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,l=e.gap;return n===void 0&&(n="margin"),` .`.concat(A5,` { overflow: hidden `).concat(r,`; padding-right: `).concat(l,"px ").concat(r,`; } body[`).concat(Ia,`] { overflow: hidden `).concat(r,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` padding-left: `.concat(i,`px; padding-top: `).concat(a,`px; padding-right: `).concat(o,`px; margin-left:0; margin-top:0; margin-right: `).concat(l,"px ").concat(r,`; `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),` } .`).concat(pd,` { right: `).concat(l,"px ").concat(r,`; } .`).concat(xd,` { margin-right: `).concat(l,"px ").concat(r,`; } .`).concat(pd," .").concat(pd,` { right: 0 `).concat(r,`; } .`).concat(xd," .").concat(xd,` { margin-right: 0 `).concat(r,`; } body[`).concat(Ia,`] { `).concat(P5,": ").concat(l,`px; } `)},Iw=function(){var e=parseInt(document.body.getAttribute(Ia)||"0",10);return isFinite(e)?e:0},Z5=function(){h.useEffect(function(){return document.body.setAttribute(Ia,(Iw()+1).toString()),function(){var e=Iw()-1;e<=0?document.body.removeAttribute(Ia):document.body.setAttribute(Ia,e.toString())}},[])},Q5=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;Z5();var a=h.useMemo(function(){return G5(i)},[i]);return h.createElement(q5,{styles:K5(a,!t,i,n?"":"!important")})},xp=!1;if(typeof window<"u")try{var Hc=Object.defineProperty({},"passive",{get:function(){return xp=!0,!0}});window.addEventListener("test",Hc,Hc),window.removeEventListener("test",Hc,Hc)}catch{xp=!1}var Xi=xp?{passive:!1}:!1,Y5=function(e){return e.tagName==="TEXTAREA"},DS=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Y5(e)&&n[t]==="visible")},J5=function(e){return DS(e,"overflowY")},X5=function(e){return DS(e,"overflowX")},Mw=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=OS(e,r);if(i){var a=FS(e,r),o=a[1],l=a[2];if(o>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eF=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},tF=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},OS=function(e,t){return e==="v"?J5(t):X5(t)},FS=function(e,t){return e==="v"?eF(t):tF(t)},nF=function(e,t){return e==="h"&&t==="rtl"?-1:1},rF=function(e,t,n,r,i){var a=nF(e,window.getComputedStyle(t).direction),o=a*r,l=n.target,c=t.contains(l),d=!1,u=o>0,f=0,m=0;do{var y=FS(e,l),b=y[0],x=y[1],w=y[2],g=x-w-a*b;(b||g)&&OS(e,l)&&(f+=g,m+=b),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(u&&(Math.abs(f)<1||!i)||!u&&(Math.abs(m)<1||!i))&&(d=!0),d},Gc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Lw=function(e){return[e.deltaX,e.deltaY]},Dw=function(e){return e&&"current"in e?e.current:e},sF=function(e,t){return e[0]===t[0]&&e[1]===t[1]},iF=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},aF=0,ea=[];function oF(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),i=h.useState(aF++)[0],a=h.useState(LS)[0],o=h.useRef(e);h.useEffect(function(){o.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var x=T5([e.lockRef.current],(e.shards||[]).map(Dw),!0).filter(Boolean);return x.forEach(function(w){return w.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),x.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(x,w){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!o.current.allowPinchZoom;var g=Gc(x),p=n.current,v="deltaX"in x?x.deltaX:p[0]-g[0],j="deltaY"in x?x.deltaY:p[1]-g[1],N,T=x.target,k=Math.abs(v)>Math.abs(j)?"h":"v";if("touches"in x&&k==="h"&&T.type==="range")return!1;var E=Mw(k,T);if(!E)return!0;if(E?N=k:(N=k==="v"?"h":"v",E=Mw(k,T)),!E)return!1;if(!r.current&&"changedTouches"in x&&(v||j)&&(r.current=N),!N)return!0;var A=r.current||N;return rF(A,w,x,A==="h"?v:j,!0)},[]),c=h.useCallback(function(x){var w=x;if(!(!ea.length||ea[ea.length-1]!==a)){var g="deltaY"in w?Lw(w):Gc(w),p=t.current.filter(function(N){return N.name===w.type&&(N.target===w.target||w.target===N.shadowParent)&&sF(N.delta,g)})[0];if(p&&p.should){w.cancelable&&w.preventDefault();return}if(!p){var v=(o.current.shards||[]).map(Dw).filter(Boolean).filter(function(N){return N.contains(w.target)}),j=v.length>0?l(w,v[0]):!o.current.noIsolation;j&&w.cancelable&&w.preventDefault()}}},[]),d=h.useCallback(function(x,w,g,p){var v={name:x,delta:w,target:g,should:p,shadowParent:lF(g)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(j){return j!==v})},1)},[]),u=h.useCallback(function(x){n.current=Gc(x),r.current=void 0},[]),f=h.useCallback(function(x){d(x.type,Lw(x),x.target,l(x,e.lockRef.current))},[]),m=h.useCallback(function(x){d(x.type,Gc(x),x.target,l(x,e.lockRef.current))},[]);h.useEffect(function(){return ea.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Xi),document.addEventListener("touchmove",c,Xi),document.addEventListener("touchstart",u,Xi),function(){ea=ea.filter(function(x){return x!==a}),document.removeEventListener("wheel",c,Xi),document.removeEventListener("touchmove",c,Xi),document.removeEventListener("touchstart",u,Xi)}},[]);var y=e.removeScrollBar,b=e.inert;return h.createElement(h.Fragment,null,b?h.createElement(a,{styles:iF(i)}):null,y?h.createElement(Q5,{gapMode:e.gapMode}):null)}function lF(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const cF=O5(MS,oF);var Dg=h.forwardRef(function(e,t){return h.createElement(ff,dr({},e,{ref:t,sideCar:cF}))});Dg.classNames=ff.classNames;var dF=[" ","Enter","ArrowUp","ArrowDown"],uF=[" ","Enter"],pc="Select",[mf,hf,fF]=Du(pc),[No,Pz]=On(pc,[fF,Yu]),pf=Yu(),[mF,ei]=No(pc),[hF,pF]=No(pc),VS=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:l,onValueChange:c,dir:d,name:u,autoComplete:f,disabled:m,required:y,form:b}=e,x=pf(t),[w,g]=h.useState(null),[p,v]=h.useState(null),[j,N]=h.useState(!1),T=uf(d),[k=!1,E]=wr({prop:r,defaultProp:i,onChange:a}),[A,R]=wr({prop:o,defaultProp:l,onChange:c}),B=h.useRef(null),L=w?b||!!w.closest("form"):!0,[F,D]=h.useState(new Set),se=Array.from(F).map(q=>q.props.value).join(";");return s.jsx(OI,{...x,children:s.jsxs(mF,{required:y,scope:t,trigger:w,onTriggerChange:g,valueNode:p,onValueNodeChange:v,valueNodeHasChildren:j,onValueNodeHasChildrenChange:N,contentId:pr(),value:A,onValueChange:R,open:k,onOpenChange:E,dir:T,triggerPointerDownPosRef:B,disabled:m,children:[s.jsx(mf.Provider,{scope:t,children:s.jsx(hF,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(q=>{D(K=>new Set(K).add(q))},[]),onNativeOptionRemove:h.useCallback(q=>{D(K=>{const _=new Set(K);return _.delete(q),_})},[]),children:n})}),L?s.jsxs(dk,{"aria-hidden":!0,required:y,tabIndex:-1,name:u,autoComplete:f,value:A,onChange:q=>R(q.target.value),disabled:m,form:b,children:[A===void 0?s.jsx("option",{value:""}):null,Array.from(F)]},se):null]})})};VS.displayName=pc;var zS="SelectTrigger",US=h.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,a=pf(n),o=ei(zS,n),l=o.disabled||r,c=Fe(t,o.onTriggerChange),d=hf(n),u=h.useRef("touch"),[f,m,y]=uk(x=>{const w=d().filter(v=>!v.disabled),g=w.find(v=>v.value===o.value),p=fk(w,x,g);p!==void 0&&o.onValueChange(p.value)}),b=x=>{l||(o.onOpenChange(!0),y()),x&&(o.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})};return s.jsx(fC,{asChild:!0,...a,children:s.jsx(ue.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":ck(o.value)?"":void 0,...i,ref:c,onClick:ae(i.onClick,x=>{x.currentTarget.focus(),u.current!=="mouse"&&b(x)}),onPointerDown:ae(i.onPointerDown,x=>{u.current=x.pointerType;const w=x.target;w.hasPointerCapture(x.pointerId)&&w.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(b(x),x.preventDefault())}),onKeyDown:ae(i.onKeyDown,x=>{const w=f.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&m(x.key),!(w&&x.key===" ")&&dF.includes(x.key)&&(b(),x.preventDefault())})})})});US.displayName=zS;var BS="SelectValue",$S=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:a,placeholder:o="",...l}=e,c=ei(BS,n),{onValueNodeHasChildrenChange:d}=c,u=a!==void 0,f=Fe(t,c.onValueNodeChange);return Mt(()=>{d(u)},[d,u]),s.jsx(ue.span,{...l,ref:f,style:{pointerEvents:"none"},children:ck(c.value)?s.jsx(s.Fragment,{children:o}):a})});$S.displayName=BS;var xF="SelectIcon",WS=h.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return s.jsx(ue.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});WS.displayName=xF;var gF="SelectPortal",HS=e=>s.jsx(Ou,{asChild:!0,...e});HS.displayName=gF;var Vi="SelectContent",GS=h.forwardRef((e,t)=>{const n=ei(Vi,e.__scopeSelect),[r,i]=h.useState();if(Mt(()=>{i(new DocumentFragment)},[]),!n.open){const a=r;return a?$i.createPortal(s.jsx(qS,{scope:e.__scopeSelect,children:s.jsx(mf.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),a):null}return s.jsx(KS,{...e,ref:t})});GS.displayName=Vi;var zn=10,[qS,ti]=No(Vi),yF="SelectContentImpl",vF=to("SelectContent.RemoveScroll"),KS=h.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:f,collisionBoundary:m,collisionPadding:y,sticky:b,hideWhenDetached:x,avoidCollisions:w,...g}=e,p=ei(Vi,n),[v,j]=h.useState(null),[N,T]=h.useState(null),k=Fe(t,oe=>j(oe)),[E,A]=h.useState(null),[R,B]=h.useState(null),L=hf(n),[F,D]=h.useState(!1),se=h.useRef(!1);h.useEffect(()=>{if(v)return _S(v)},[v]),ES();const q=h.useCallback(oe=>{const[ze,...ut]=L().map(Pe=>Pe.ref.current),[Me]=ut.slice(-1),Ee=document.activeElement;for(const Pe of oe)if(Pe===Ee||(Pe==null||Pe.scrollIntoView({block:"nearest"}),Pe===ze&&N&&(N.scrollTop=0),Pe===Me&&N&&(N.scrollTop=N.scrollHeight),Pe==null||Pe.focus(),document.activeElement!==Ee))return},[L,N]),K=h.useCallback(()=>q([E,v]),[q,E,v]);h.useEffect(()=>{F&&K()},[F,K]);const{onOpenChange:_,triggerPointerDownPosRef:z}=p;h.useEffect(()=>{if(v){let oe={x:0,y:0};const ze=Me=>{var Ee,Pe;oe={x:Math.abs(Math.round(Me.pageX)-(((Ee=z.current)==null?void 0:Ee.x)??0)),y:Math.abs(Math.round(Me.pageY)-(((Pe=z.current)==null?void 0:Pe.y)??0))}},ut=Me=>{oe.x<=10&&oe.y<=10?Me.preventDefault():v.contains(Me.target)||_(!1),document.removeEventListener("pointermove",ze),z.current=null};return z.current!==null&&(document.addEventListener("pointermove",ze),document.addEventListener("pointerup",ut,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ze),document.removeEventListener("pointerup",ut,{capture:!0})}}},[v,_,z]),h.useEffect(()=>{const oe=()=>_(!1);return window.addEventListener("blur",oe),window.addEventListener("resize",oe),()=>{window.removeEventListener("blur",oe),window.removeEventListener("resize",oe)}},[_]);const[X,me]=uk(oe=>{const ze=L().filter(Ee=>!Ee.disabled),ut=ze.find(Ee=>Ee.ref.current===document.activeElement),Me=fk(ze,oe,ut);Me&&setTimeout(()=>Me.ref.current.focus())}),Ae=h.useCallback((oe,ze,ut)=>{const Me=!se.current&&!ut;(p.value!==void 0&&p.value===ze||Me)&&(A(oe),Me&&(se.current=!0))},[p.value]),St=h.useCallback(()=>v==null?void 0:v.focus(),[v]),it=h.useCallback((oe,ze,ut)=>{const Me=!se.current&&!ut;(p.value!==void 0&&p.value===ze||Me)&&B(oe)},[p.value]),mn=r==="popper"?gp:ZS,Tt=mn===gp?{side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:f,collisionBoundary:m,collisionPadding:y,sticky:b,hideWhenDetached:x,avoidCollisions:w}:{};return s.jsx(qS,{scope:n,content:v,viewport:N,onViewportChange:T,itemRefCallback:Ae,selectedItem:E,onItemLeave:St,itemTextRefCallback:it,focusSelectedItem:K,selectedItemText:R,position:r,isPositioned:F,searchRef:X,children:s.jsx(Dg,{as:vF,allowPinchZoom:!0,children:s.jsx(Lg,{asChild:!0,trapped:p.open,onMountAutoFocus:oe=>{oe.preventDefault()},onUnmountAutoFocus:ae(i,oe=>{var ze;(ze=p.trigger)==null||ze.focus({preventScroll:!0}),oe.preventDefault()}),children:s.jsx(sc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:oe=>oe.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:s.jsx(mn,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:oe=>oe.preventDefault(),...g,...Tt,onPlaced:()=>D(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:ae(g.onKeyDown,oe=>{const ze=oe.ctrlKey||oe.altKey||oe.metaKey;if(oe.key==="Tab"&&oe.preventDefault(),!ze&&oe.key.length===1&&me(oe.key),["ArrowUp","ArrowDown","Home","End"].includes(oe.key)){let Me=L().filter(Ee=>!Ee.disabled).map(Ee=>Ee.ref.current);if(["ArrowUp","End"].includes(oe.key)&&(Me=Me.slice().reverse()),["ArrowUp","ArrowDown"].includes(oe.key)){const Ee=oe.target,Pe=Me.indexOf(Ee);Me=Me.slice(Pe+1)}setTimeout(()=>q(Me)),oe.preventDefault()}})})})})})})});KS.displayName=yF;var wF="SelectItemAlignedPosition",ZS=h.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,a=ei(Vi,n),o=ti(Vi,n),[l,c]=h.useState(null),[d,u]=h.useState(null),f=Fe(t,k=>u(k)),m=hf(n),y=h.useRef(!1),b=h.useRef(!0),{viewport:x,selectedItem:w,selectedItemText:g,focusSelectedItem:p}=o,v=h.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&d&&x&&w&&g){const k=a.trigger.getBoundingClientRect(),E=d.getBoundingClientRect(),A=a.valueNode.getBoundingClientRect(),R=g.getBoundingClientRect();if(a.dir!=="rtl"){const Ee=R.left-E.left,Pe=A.left-Ee,Gt=k.left-Pe,hn=k.width+Gt,ni=Math.max(hn,E.width),es=window.innerWidth-zn,ts=kw(Pe,[zn,Math.max(zn,es-ni)]);l.style.minWidth=hn+"px",l.style.left=ts+"px"}else{const Ee=E.right-R.right,Pe=window.innerWidth-A.right-Ee,Gt=window.innerWidth-k.right-Pe,hn=k.width+Gt,ni=Math.max(hn,E.width),es=window.innerWidth-zn,ts=kw(Pe,[zn,Math.max(zn,es-ni)]);l.style.minWidth=hn+"px",l.style.right=ts+"px"}const B=m(),L=window.innerHeight-zn*2,F=x.scrollHeight,D=window.getComputedStyle(d),se=parseInt(D.borderTopWidth,10),q=parseInt(D.paddingTop,10),K=parseInt(D.borderBottomWidth,10),_=parseInt(D.paddingBottom,10),z=se+q+F+_+K,X=Math.min(w.offsetHeight*5,z),me=window.getComputedStyle(x),Ae=parseInt(me.paddingTop,10),St=parseInt(me.paddingBottom,10),it=k.top+k.height/2-zn,mn=L-it,Tt=w.offsetHeight/2,oe=w.offsetTop+Tt,ze=se+q+oe,ut=z-ze;if(ze<=it){const Ee=B.length>0&&w===B[B.length-1].ref.current;l.style.bottom="0px";const Pe=d.clientHeight-x.offsetTop-x.offsetHeight,Gt=Math.max(mn,Tt+(Ee?St:0)+Pe+K),hn=ze+Gt;l.style.height=hn+"px"}else{const Ee=B.length>0&&w===B[0].ref.current;l.style.top="0px";const Gt=Math.max(it,se+x.offsetTop+(Ee?Ae:0)+Tt)+ut;l.style.height=Gt+"px",x.scrollTop=ze-it+x.offsetTop}l.style.margin=`${zn}px 0`,l.style.minHeight=X+"px",l.style.maxHeight=L+"px",r==null||r(),requestAnimationFrame(()=>y.current=!0)}},[m,a.trigger,a.valueNode,l,d,x,w,g,a.dir,r]);Mt(()=>v(),[v]);const[j,N]=h.useState();Mt(()=>{d&&N(window.getComputedStyle(d).zIndex)},[d]);const T=h.useCallback(k=>{k&&b.current===!0&&(v(),p==null||p(),b.current=!1)},[v,p]);return s.jsx(jF,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:y,onScrollButtonChange:T,children:s.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:s.jsx(ue.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});ZS.displayName=wF;var bF="SelectPopperPosition",gp=h.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=zn,...a}=e,o=pf(n);return s.jsx(mC,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});gp.displayName=bF;var[jF,Og]=No(Vi,{}),yp="SelectViewport",QS=h.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,a=ti(yp,n),o=Og(yp,n),l=Fe(t,a.onViewportChange),c=h.useRef(0);return s.jsxs(s.Fragment,{children:[s.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),s.jsx(mf.Slot,{scope:n,children:s.jsx(ue.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:ae(i.onScroll,d=>{const u=d.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:m}=o;if(m!=null&&m.current&&f){const y=Math.abs(c.current-u.scrollTop);if(y>0){const b=window.innerHeight-zn*2,x=parseFloat(f.style.minHeight),w=parseFloat(f.style.height),g=Math.max(x,w);if(g0?j:0,f.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});QS.displayName=yp;var YS="SelectGroup",[NF,CF]=No(YS),SF=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=pr();return s.jsx(NF,{scope:n,id:i,children:s.jsx(ue.div,{role:"group","aria-labelledby":i,...r,ref:t})})});SF.displayName=YS;var JS="SelectLabel",XS=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=CF(JS,n);return s.jsx(ue.div,{id:i.id,...r,ref:t})});XS.displayName=JS;var hu="SelectItem",[kF,ek]=No(hu),tk=h.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,l=ei(hu,n),c=ti(hu,n),d=l.value===r,[u,f]=h.useState(a??""),[m,y]=h.useState(!1),b=Fe(t,p=>{var v;return(v=c.itemRefCallback)==null?void 0:v.call(c,p,r,i)}),x=pr(),w=h.useRef("touch"),g=()=>{i||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return s.jsx(kF,{scope:n,value:r,disabled:i,textId:x,isSelected:d,onItemTextChange:h.useCallback(p=>{f(v=>v||((p==null?void 0:p.textContent)??"").trim())},[]),children:s.jsx(mf.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:s.jsx(ue.div,{role:"option","aria-labelledby":x,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...o,ref:b,onFocus:ae(o.onFocus,()=>y(!0)),onBlur:ae(o.onBlur,()=>y(!1)),onClick:ae(o.onClick,()=>{w.current!=="mouse"&&g()}),onPointerUp:ae(o.onPointerUp,()=>{w.current==="mouse"&&g()}),onPointerDown:ae(o.onPointerDown,p=>{w.current=p.pointerType}),onPointerMove:ae(o.onPointerMove,p=>{var v;w.current=p.pointerType,i?(v=c.onItemLeave)==null||v.call(c):w.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ae(o.onPointerLeave,p=>{var v;p.currentTarget===document.activeElement&&((v=c.onItemLeave)==null||v.call(c))}),onKeyDown:ae(o.onKeyDown,p=>{var j;((j=c.searchRef)==null?void 0:j.current)!==""&&p.key===" "||(uF.includes(p.key)&&g(),p.key===" "&&p.preventDefault())})})})})});tk.displayName=hu;var qo="SelectItemText",nk=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...a}=e,o=ei(qo,n),l=ti(qo,n),c=ek(qo,n),d=pF(qo,n),[u,f]=h.useState(null),m=Fe(t,g=>f(g),c.onItemTextChange,g=>{var p;return(p=l.itemTextRefCallback)==null?void 0:p.call(l,g,c.value,c.disabled)}),y=u==null?void 0:u.textContent,b=h.useMemo(()=>s.jsx("option",{value:c.value,disabled:c.disabled,children:y},c.value),[c.disabled,c.value,y]),{onNativeOptionAdd:x,onNativeOptionRemove:w}=d;return Mt(()=>(x(b),()=>w(b)),[x,w,b]),s.jsxs(s.Fragment,{children:[s.jsx(ue.span,{id:c.textId,...a,ref:m}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?$i.createPortal(a.children,o.valueNode):null]})});nk.displayName=qo;var rk="SelectItemIndicator",sk=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ek(rk,n).isSelected?s.jsx(ue.span,{"aria-hidden":!0,...r,ref:t}):null});sk.displayName=rk;var vp="SelectScrollUpButton",ik=h.forwardRef((e,t)=>{const n=ti(vp,e.__scopeSelect),r=Og(vp,e.__scopeSelect),[i,a]=h.useState(!1),o=Fe(t,r.onScrollButtonChange);return Mt(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollTop>0;a(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?s.jsx(ok,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});ik.displayName=vp;var wp="SelectScrollDownButton",ak=h.forwardRef((e,t)=>{const n=ti(wp,e.__scopeSelect),r=Og(wp,e.__scopeSelect),[i,a]=h.useState(!1),o=Fe(t,r.onScrollButtonChange);return Mt(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?s.jsx(ok,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});ak.displayName=wp;var ok=h.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,a=ti("SelectScrollButton",n),o=h.useRef(null),l=hf(n),c=h.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return h.useEffect(()=>()=>c(),[c]),Mt(()=>{var u;const d=l().find(f=>f.ref.current===document.activeElement);(u=d==null?void 0:d.ref.current)==null||u.scrollIntoView({block:"nearest"})},[l]),s.jsx(ue.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:ae(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:ae(i.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:ae(i.onPointerLeave,()=>{c()})})}),EF="SelectSeparator",lk=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return s.jsx(ue.div,{"aria-hidden":!0,...r,ref:t})});lk.displayName=EF;var bp="SelectArrow",TF=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=pf(n),a=ei(bp,n),o=ti(bp,n);return a.open&&o.position==="popper"?s.jsx(hC,{...i,...r,ref:t}):null});TF.displayName=bp;function ck(e){return e===""||e===void 0}var dk=h.forwardRef((e,t)=>{const{value:n,...r}=e,i=h.useRef(null),a=Fe(t,i),o=AS(n);return h.useEffect(()=>{const l=i.current,c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==n&&u){const f=new Event("change",{bubbles:!0});u.call(l,n),l.dispatchEvent(f)}},[o,n]),s.jsx(ic,{asChild:!0,children:s.jsx("select",{...r,ref:a,defaultValue:n})})});dk.displayName="BubbleSelect";function uk(e){const t=un(e),n=h.useRef(""),r=h.useRef(0),i=h.useCallback(o=>{const l=n.current+o;t(l),function c(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),a=h.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function fk(e,t,n){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let o=AF(e,Math.max(a,0));i.length===1&&(o=o.filter(d=>d!==n));const c=o.find(d=>d.textValue.toLowerCase().startsWith(i.toLowerCase()));return c!==n?c:void 0}function AF(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var PF=VS,mk=US,_F=$S,RF=WS,IF=HS,hk=GS,MF=QS,pk=XS,xk=tk,LF=nk,DF=sk,gk=ik,yk=ak,vk=lk;const mi=PF,hi=_F,Cs=h.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(mk,{ref:r,className:re("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,s.jsx(RF,{asChild:!0,children:s.jsx(zu,{className:"h-4 w-4 opacity-50"})})]}));Cs.displayName=mk.displayName;const wk=h.forwardRef(({className:e,...t},n)=>s.jsx(gk,{ref:n,className:re("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(jN,{className:"h-4 w-4"})}));wk.displayName=gk.displayName;const bk=h.forwardRef(({className:e,...t},n)=>s.jsx(yk,{ref:n,className:re("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(zu,{className:"h-4 w-4"})}));bk.displayName=yk.displayName;const Ss=h.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>s.jsx(IF,{children:s.jsxs(hk,{ref:i,className:re("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[s.jsx(wk,{}),s.jsx(MF,{className:re("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),s.jsx(bk,{})]})}));Ss.displayName=hk.displayName;const OF=h.forwardRef(({className:e,...t},n)=>s.jsx(pk,{ref:n,className:re("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));OF.displayName=pk.displayName;const Se=h.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(xk,{ref:r,className:re("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(DF,{children:s.jsx(Wd,{className:"h-4 w-4"})})}),s.jsx(LF,{children:t})]}));Se.displayName=xk.displayName;const FF=h.forwardRef(({className:e,...t},n)=>s.jsx(vk,{ref:n,className:re("-mx-1 my-1 h-px bg-muted",e),...t}));FF.displayName=vk.displayName;var km="rovingFocusGroup.onEntryFocus",VF={bubbles:!1,cancelable:!0},xf="RovingFocusGroup",[jp,jk,zF]=Du(xf),[UF,Nk]=On(xf,[zF]),[BF,$F]=UF(xf),Ck=h.forwardRef((e,t)=>s.jsx(jp.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(jp.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx(WF,{...e,ref:t})})}));Ck.displayName=xf;var WF=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...f}=e,m=h.useRef(null),y=Fe(t,m),b=uf(a),[x=null,w]=wr({prop:o,defaultProp:l,onChange:c}),[g,p]=h.useState(!1),v=un(d),j=jk(n),N=h.useRef(!1),[T,k]=h.useState(0);return h.useEffect(()=>{const E=m.current;if(E)return E.addEventListener(km,v),()=>E.removeEventListener(km,v)},[v]),s.jsx(BF,{scope:n,orientation:r,dir:b,loop:i,currentTabStopId:x,onItemFocus:h.useCallback(E=>w(E),[w]),onItemShiftTab:h.useCallback(()=>p(!0),[]),onFocusableItemAdd:h.useCallback(()=>k(E=>E+1),[]),onFocusableItemRemove:h.useCallback(()=>k(E=>E-1),[]),children:s.jsx(ue.div,{tabIndex:g||T===0?-1:0,"data-orientation":r,...f,ref:y,style:{outline:"none",...e.style},onMouseDown:ae(e.onMouseDown,()=>{N.current=!0}),onFocus:ae(e.onFocus,E=>{const A=!N.current;if(E.target===E.currentTarget&&A&&!g){const R=new CustomEvent(km,VF);if(E.currentTarget.dispatchEvent(R),!R.defaultPrevented){const B=j().filter(q=>q.focusable),L=B.find(q=>q.active),F=B.find(q=>q.id===x),se=[L,F,...B].filter(Boolean).map(q=>q.ref.current);Ek(se,u)}}N.current=!1}),onBlur:ae(e.onBlur,()=>p(!1))})})}),Sk="RovingFocusGroupItem",kk=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,...o}=e,l=pr(),c=a||l,d=$F(Sk,n),u=d.currentTabStopId===c,f=jk(n),{onFocusableItemAdd:m,onFocusableItemRemove:y}=d;return h.useEffect(()=>{if(r)return m(),()=>y()},[r,m,y]),s.jsx(jp.ItemSlot,{scope:n,id:c,focusable:r,active:i,children:s.jsx(ue.span,{tabIndex:u?0:-1,"data-orientation":d.orientation,...o,ref:t,onMouseDown:ae(e.onMouseDown,b=>{r?d.onItemFocus(c):b.preventDefault()}),onFocus:ae(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:ae(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){d.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const x=qF(b,d.orientation,d.dir);if(x!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let g=f().filter(p=>p.focusable).map(p=>p.ref.current);if(x==="last")g.reverse();else if(x==="prev"||x==="next"){x==="prev"&&g.reverse();const p=g.indexOf(b.currentTarget);g=d.loop?KF(g,p+1):g.slice(p+1)}setTimeout(()=>Ek(g))}})})})});kk.displayName=Sk;var HF={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function GF(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function qF(e,t,n){const r=GF(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return HF[r]}function Ek(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function KF(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ZF=Ck,QF=kk,Fg="Tabs",[YF,_z]=On(Fg,[Nk]),Tk=Nk(),[JF,Vg]=YF(Fg),Ak=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:l,activationMode:c="automatic",...d}=e,u=uf(l),[f,m]=wr({prop:r,onChange:i,defaultProp:a});return s.jsx(JF,{scope:n,baseId:pr(),value:f,onValueChange:m,orientation:o,dir:u,activationMode:c,children:s.jsx(ue.div,{dir:u,"data-orientation":o,...d,ref:t})})});Ak.displayName=Fg;var Pk="TabsList",_k=h.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,a=Vg(Pk,n),o=Tk(n);return s.jsx(ZF,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:s.jsx(ue.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:t})})});_k.displayName=Pk;var Rk="TabsTrigger",Ik=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=Vg(Rk,n),l=Tk(n),c=Dk(o.baseId,r),d=Ok(o.baseId,r),u=r===o.value;return s.jsx(QF,{asChild:!0,...l,focusable:!i,active:u,children:s.jsx(ue.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":d,"data-state":u?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...a,ref:t,onMouseDown:ae(e.onMouseDown,f=>{!i&&f.button===0&&f.ctrlKey===!1?o.onValueChange(r):f.preventDefault()}),onKeyDown:ae(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(r)}),onFocus:ae(e.onFocus,()=>{const f=o.activationMode!=="manual";!u&&!i&&f&&o.onValueChange(r)})})})});Ik.displayName=Rk;var Mk="TabsContent",Lk=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,l=Vg(Mk,n),c=Dk(l.baseId,r),d=Ok(l.baseId,r),u=r===l.value,f=h.useRef(u);return h.useEffect(()=>{const m=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(m)},[]),s.jsx(Ys,{present:i||u,children:({present:m})=>s.jsx(ue.div,{"data-state":u?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!m,id:d,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:m&&a})})});Lk.displayName=Mk;function Dk(e,t){return`${e}-trigger-${t}`}function Ok(e,t){return`${e}-content-${t}`}var XF=Ak,Fk=_k,Vk=Ik,zk=Lk;const Uk=XF,zg=h.forwardRef(({className:e,...t},n)=>s.jsx(Fk,{ref:n,className:re("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));zg.displayName=Fk.displayName;const Lr=h.forwardRef(({className:e,...t},n)=>s.jsx(Vk,{ref:n,className:re("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Lr.displayName=Vk.displayName;const dl=h.forwardRef(({className:e,...t},n)=>s.jsx(zk,{ref:n,className:re("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));dl.displayName=zk.displayName;const eV=ac("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Ug=h.forwardRef(({className:e,variant:t,...n},r)=>s.jsx("div",{ref:r,role:"alert",className:re(eV({variant:t}),e),...n}));Ug.displayName="Alert";const tV=h.forwardRef(({className:e,...t},n)=>s.jsx("h5",{ref:n,className:re("mb-1 font-medium leading-none tracking-tight",e),...t}));tV.displayName="AlertTitle";const Bg=h.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:re("text-sm [&_p]:leading-relaxed",e),...t}));Bg.displayName="AlertDescription";const nV=/^10\.\d{4,9}\/[-._;()/:A-Z0-9]+$/i,rV=/^(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/i;function sV(e){if(rV.test(e))return!0;try{const t=e.startsWith("http")?e:`https://${e}`,n=new URL(t);return n.hostname.includes(".")&&n.hostname.length>3}catch{return!1}}const iV=/^(?:ISBN(?:-1[03])?:? *)?(?=[0-9X]{10}$|(?=(?:[0-9]+[- ]){3})[- 0-9X]{13}$|97[89][0-9]{10}$|(?=(?:[0-9]+[- ]){4})[- 0-9]{17}$)(?:97[89][- ]?)?[0-9]{1,5}[- ]?[0-9]+[- ]?[0-9]+[- ]?[0-9X]$/i,aV=/^\s*\(\s*([A-Za-z][A-Za-z\s,&.-]*[A-Za-z])\s*,\s*(\d{4}[a-z]?)\s*(?:,\s*(?:p\.|pp\.|para\.)?\s*[\d\-]+)?\s*\)\s*$|^\s*([A-Za-z][A-Za-z\s,&.-]*[A-Za-z])\s+\((\d{4}[a-z]?)\)\s*$|^\s*\(\s*([A-Za-z][A-Za-z\s,&.-]*[A-Za-z])\s+(\d{4}[a-z]?)\s*\)\s*$/;function ul(e){const t=e.trim();return t?aV.test(t)?"intext":t.includes("doi.org/10.")||t.includes("dx.doi.org/10.")||nV.test(t)?"doi":iV.test(t)?"isbn":sV(t)?"url":"unknown":"unknown"}const oV=e=>{const t=e.replace(/[-\\s]/g,"");if(t.length===10){let n=0;for(let i=0;i<9;i++){if(isNaN(parseInt(t[i])))return!1;n+=parseInt(t[i])*(10-i)}const r=t[9].toUpperCase();if(r==="X")n+=10;else if(!isNaN(parseInt(r)))n+=parseInt(r);else return!1;return n%11===0}else if(t.length===13){if(!t.startsWith("978")&&!t.startsWith("979"))return!1;let n=0;for(let i=0;i<12;i++){if(isNaN(parseInt(t[i])))return!1;n+=parseInt(t[i])*(i%2===0?1:3)}const r=(10-n%10)%10;return isNaN(parseInt(t[12]))?!1:r===parseInt(t[12])}return!1},lV=Le.object({format:Le.enum(["apa","mla","chicago","harvard","ieee","ama","vancouver","turabian","acs","bluebook","ctr"]),activeTab:Le.enum(["auto","intext","manual"]),sourceIdentifier:Le.string().optional(),manualTitle:Le.string().optional(),manualAuthors:Le.string().optional(),manualYear:Le.string().optional(),manualSourceType:Le.enum(["book","article","website","report","conference"]).optional(),manualPublisher:Le.string().optional(),manualUrl:Le.string().url().optional().or(Le.literal(""))}).superRefine((e,t)=>{if(e.activeTab==="auto")if(!e.sourceIdentifier||e.sourceIdentifier.trim()==="")t.addIssue({code:Le.ZodIssueCode.custom,message:"Please enter a URL, DOI, or ISBN",path:["sourceIdentifier"]});else{const n=ul(e.sourceIdentifier);if(n==="unknown")t.addIssue({code:Le.ZodIssueCode.custom,message:"Could not detect type. Please enter a valid URL, DOI, or ISBN.",path:["sourceIdentifier"]});else if(n==="isbn"&&!oV(e.sourceIdentifier))t.addIssue({code:Le.ZodIssueCode.custom,message:"Invalid ISBN format or checksum.",path:["sourceIdentifier"]});else if(n==="url")try{new URL(e.sourceIdentifier.startsWith("http")?e.sourceIdentifier:`http://${e.sourceIdentifier}`)}catch{t.addIssue({code:Le.ZodIssueCode.custom,message:"Invalid URL format.",path:["sourceIdentifier"]})}}else e.activeTab==="intext"?!e.sourceIdentifier||e.sourceIdentifier.trim()===""?t.addIssue({code:Le.ZodIssueCode.custom,message:"Please enter an in-text citation",path:["sourceIdentifier"]}):ul(e.sourceIdentifier)!=="intext"&&t.addIssue({code:Le.ZodIssueCode.custom,message:"Please enter a valid in-text citation format like (Author, Year) or Author (Year)",path:["sourceIdentifier"]}):e.activeTab==="manual"&&(!e.manualTitle||!e.manualAuthors||!e.manualYear)&&t.addIssue({code:Le.ZodIssueCode.custom,message:"Title, Authors, and Year are required for manual citation",path:["manualTitle"]})});function qi({onGenerateStart:e,onGenerateSuccess:t,onGenerateError:n,projectId:r,defaultFormat:i}){const[a,o]=h.useState(!1),[l,c]=h.useState("idle"),[d,u]=h.useState(""),[f,m]=h.useState(null),{selectedStyle:y,setSelectedStyle:b}=ED(),x=Rg({resolver:Ig(lV),defaultValues:{format:i||y||"apa",activeTab:"auto",sourceIdentifier:"",manualTitle:"",manualAuthors:"",manualYear:"",manualSourceType:"article",manualPublisher:"",manualUrl:""},mode:"onChange"}),w=x.watch("activeTab"),g=x.watch("sourceIdentifier"),p=x.watch("format");h.useEffect(()=>{const j=i||y||"apa";x.getValues("format")!==j&&x.setValue("format",j),i&&y!==i&&b(i)},[y,i,x,b]),h.useEffect(()=>{p&&p!==y&&b(p)},[p,y,b]),h.useEffect(()=>{if((w==="auto"||w==="intext")&&g){const j=ul(g);m(j)}else m(null)},[g,w,x]);async function v(j){o(!0),e(),m(null);let N=null,T=null;if(j.activeTab==="auto"){const E=ul(j.sourceIdentifier||"");if(E==="unknown"){n("Invalid input. Please provide a valid URL, DOI, or ISBN."),o(!1);return}N=E,T=j.sourceIdentifier||"",N==="isbn"?(T=T.replace(/[-\\s]/g,""),u("Fetching book information..."),c("fetching")):N==="doi"?(u("Fetching academic paper metadata..."),c("fetching")):N==="url"&&(u("Fetching webpage metadata..."),c("fetching"))}else if(j.activeTab==="intext"){if(ul(j.sourceIdentifier||"")!=="intext"){n("Invalid in-text citation format. Please provide a valid in-text citation."),o(!1);return}N="intext",T=j.sourceIdentifier||"",u("Generating reference from in-text citation..."),c("generating")}else j.activeTab==="manual"&&(N="manual",T="manual",c("generating"));if(!N||T===null){n("An unexpected error occurred determining input type."),o(!1);return}const k={format:j.format,inputType:N,sourceInput:T,...r&&{projectId:r}};N==="manual"&&(k.manualData={title:j.manualTitle||"",authors:j.manualAuthors||"",year:j.manualYear||"",sourceType:j.manualSourceType,publisher:j.manualPublisher,url:j.manualUrl});try{l!=="fetching"&&c("generating"),console.log("Sending citation request:",k);const E=r?`/api/projects/${r}/citations`:"/api/citations",A=await Mr("POST",E,k),R=await A.json(),B=r?201:200;if(A.status!==B)throw new Error(R.message||"Failed to generate citation");t(R)}catch(E){console.error("Citation generation error:",E);let A="Failed to generate citation";E instanceof Error&&(A=E.message,A=A.replace(/^\d+:\s*/,""),A=A.replace(/^{"message":\s*"([^"]+)"}.*$/,"$1"),A=A.replace(/\\n/g,` `),A=A.replace(/\\"/g,'"'),A=A.replace(/\\"$/,"")),n(A)}finally{o(!1),c("idle")}}return s.jsx("div",{className:"bg-card-material rounded-md overflow-hidden relative material-shadow",children:s.jsxs("div",{className:"p-6 sm:p-8",children:[(l==="fetching"||l==="generating")&&s.jsx(Ug,{className:"mb-6 bg-blue-50 border-0 shadow-sm rounded-md",children:s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx(hr,{className:"h-5 w-5 text-primary animate-pulse"}),s.jsx(Bg,{className:"text-gray-700",children:l==="fetching"?d:"Generating citation with AI..."})]})}),s.jsx(Mg,{...x,children:s.jsxs("form",{onSubmit:x.handleSubmit(v),className:"space-y-6",children:[s.jsx(gt,{control:x.control,name:"format",render:({field:j})=>s.jsxs(mt,{children:[s.jsx(yt,{className:"text-material-label text-base mb-1",children:"Citation Format"}),s.jsxs(mi,{onValueChange:j.onChange,defaultValue:j.value,children:[s.jsx(vt,{children:s.jsx(Cs,{className:"border-primary/20 focus:ring-primary/30",children:s.jsx(hi,{placeholder:"Select a citation format"})})}),s.jsxs(Ss,{children:[s.jsx(Se,{value:"apa",children:"APA 7th Edition"}),s.jsx(Se,{value:"mla",children:"MLA 9th Edition"}),s.jsx(Se,{value:"chicago",children:"Chicago 17th Edition"}),s.jsx(Se,{value:"harvard",children:"Harvard"}),s.jsx(Se,{value:"ieee",children:"IEEE"}),s.jsx(Se,{value:"ama",children:"AMA 11th Edition"}),s.jsx(Se,{value:"vancouver",children:"Vancouver"}),s.jsx(Se,{value:"turabian",children:"Turabian 9th Edition"}),s.jsx(Se,{value:"acs",children:"ACS 3rd Edition"}),s.jsx(Se,{value:"bluebook",children:"Bluebook 21st"}),s.jsx(Se,{value:"ctr",children:"Cite Them Right (Harvard UK)"})]})]}),s.jsx(wt,{})]})}),s.jsx(gt,{control:x.control,name:"activeTab",render:({field:j})=>s.jsx(mt,{className:"pt-2",children:s.jsxs(Uk,{value:j.value,onValueChange:N=>{j.onChange(N),x.clearErrors(),m(null)},className:"w-full",children:[s.jsxs(zg,{className:"grid w-full grid-cols-3 h-11 rounded-md material-shadow-inset mb-5",children:[s.jsxs(Lr,{value:"auto",className:"data-[state=active]:bg-primary/10 data-[state=active]:text-primary data-[state=active]:shadow-sm rounded-sm",children:[s.jsx(hr,{className:"w-4 h-4 mr-2"})," Auto-Detect"]}),s.jsxs(Lr,{value:"intext",className:"data-[state=active]:bg-primary/10 data-[state=active]:text-primary data-[state=active]:shadow-sm rounded-sm",children:[s.jsx(Ke,{className:"w-4 h-4 mr-2"})," In-Text Citation"]}),s.jsxs(Lr,{value:"manual",className:"data-[state=active]:bg-primary/10 data-[state=active]:text-primary data-[state=active]:shadow-sm rounded-sm",children:[s.jsx(z4,{className:"w-4 h-4 mr-2"})," Manual Entry"]})]}),s.jsx(dl,{value:"auto",children:s.jsx(gt,{control:x.control,name:"sourceIdentifier",render:({field:N})=>s.jsxs(mt,{children:[s.jsx(yt,{className:"text-material-label text-base",children:"Source (URL, DOI, or ISBN)"}),s.jsx(vt,{children:s.jsxs("div",{className:"relative",children:[s.jsx(jt,{placeholder:"e.g., https://example.com, 10.1234/abc, 978-1234567890",...N,className:"border-primary/20 focus:ring-primary/30 pl-10 pr-16"}),s.jsx("div",{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400",children:f==="url"?s.jsx(oc,{className:"w-4 h-4"}):f==="doi"?s.jsx(I4,{className:"w-4 h-4"}):f==="isbn"?s.jsx(k4,{className:"w-4 h-4"}):s.jsx(hr,{className:"w-4 h-4"})}),f&&f!=="unknown"&&s.jsx("span",{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-xs bg-blue-100 text-blue-700 px-2 py-0.5 rounded-full font-medium",children:f==="intext"?"IN-TEXT":f.toUpperCase()})]})}),s.jsx(wt,{})," "]})})}),s.jsx(dl,{value:"intext",children:s.jsx(gt,{control:x.control,name:"sourceIdentifier",render:({field:N})=>s.jsxs(mt,{children:[s.jsx(yt,{className:"text-material-label text-base",children:"In-Text Citation"}),s.jsx(vt,{children:s.jsxs("div",{className:"relative",children:[s.jsx(jt,{placeholder:"e.g., (Porter, 1985), Smith (2023), (Johnson & Davis, 2022)",...N,className:"border-primary/20 focus:ring-primary/30 pl-10"}),s.jsx("div",{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400",children:s.jsx(Ke,{className:"w-4 h-4"})})]})}),s.jsxs("div",{className:"mt-2 p-3 bg-blue-50 border border-blue-200 rounded-md",children:[s.jsx("p",{className:"text-sm text-blue-800 font-medium mb-1",children:"🆕 Revolutionary Feature!"}),s.jsx("p",{className:"text-sm text-blue-700",children:"Enter any in-text citation and our AI will generate the complete reference list entry. Supports APA, MLA, Chicago, and Harvard formats."})]}),s.jsx(wt,{})]})})}),s.jsxs(dl,{value:"manual",className:"space-y-4",children:[s.jsx(gt,{control:x.control,name:"manualTitle",render:({field:N})=>s.jsxs(mt,{children:[s.jsx(yt,{className:"text-material-label",children:"Title"}),s.jsx(vt,{children:s.jsx(jt,{placeholder:"The Title of the Work",...N,className:"border-primary/20 focus:ring-primary/30"})}),s.jsx(wt,{})]})}),s.jsx(gt,{control:x.control,name:"manualAuthors",render:({field:N})=>s.jsxs(mt,{children:[s.jsx(yt,{className:"text-material-label",children:"Authors"}),s.jsx(vt,{children:s.jsx(jt,{placeholder:"Author One, Author Two",...N,className:"border-primary/20 focus:ring-primary/30"})}),s.jsx(wt,{})]})}),s.jsx(gt,{control:x.control,name:"manualYear",render:({field:N})=>s.jsxs(mt,{children:[s.jsx(yt,{className:"text-material-label",children:"Year"}),s.jsx(vt,{children:s.jsx(jt,{type:"number",placeholder:"2023",...N,className:"border-primary/20 focus:ring-primary/30"})}),s.jsx(wt,{})]})}),s.jsx(gt,{control:x.control,name:"manualSourceType",render:({field:N})=>s.jsxs(mt,{children:[s.jsx(yt,{className:"text-material-label",children:"Source Type"}),s.jsxs(mi,{onValueChange:N.onChange,defaultValue:N.value,children:[s.jsx(vt,{children:s.jsx(Cs,{className:"border-primary/20 focus:ring-primary/30",children:s.jsx(hi,{placeholder:"Select the type of source"})})}),s.jsxs(Ss,{children:[s.jsx(Se,{value:"article",children:"Journal Article"}),s.jsx(Se,{value:"book",children:"Book"}),s.jsx(Se,{value:"website",children:"Website"}),s.jsx(Se,{value:"report",children:"Report"}),s.jsx(Se,{value:"conference",children:"Conference Paper"})]})]}),s.jsx(wt,{})]})}),s.jsx(gt,{control:x.control,name:"manualPublisher",render:({field:N})=>s.jsxs(mt,{children:[s.jsx(yt,{className:"text-material-label",children:"Publisher/Journal"}),s.jsx(vt,{children:s.jsx(jt,{placeholder:"Publisher Name or Journal Title",...N,className:"border-primary/20 focus:ring-primary/30"})}),s.jsx(wt,{})]})}),s.jsx(gt,{control:x.control,name:"manualUrl",render:({field:N})=>s.jsxs(mt,{children:[s.jsx(yt,{className:"text-material-label",children:"URL (Optional)"}),s.jsx(vt,{children:s.jsx(jt,{placeholder:"https://example.com/source",...N,className:"border-primary/20 focus:ring-primary/30"})}),s.jsx(wt,{})]})})]})]})})}),s.jsx(J,{type:"submit",disabled:a||l!=="idle",className:"w-full bg-primary hover:bg-primary/90 material-shadow-lg text-white font-semibold py-3 text-base disabled:opacity-70",children:a?s.jsxs(s.Fragment,{children:[s.jsx(Ix,{className:"mr-2 h-4 w-4 animate-spin"}),l==="fetching"?"Fetching...":"Generating..."]}):s.jsxs(s.Fragment,{children:[s.jsx(Ke,{className:"mr-2 h-4 w-4"})," Generate Citation"]})})]})})]})})}const pe=h.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:re("rounded-sm border bg-card text-card-foreground",e),...t}));pe.displayName="Card";const _e=h.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:re("flex flex-col space-y-2 p-8",e),...t}));_e.displayName="CardHeader";const De=h.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:re("text-2xl font-semibold leading-tight tracking-tight",e),...t}));De.displayName="CardTitle";const fo=h.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:re("text-muted-foreground leading-relaxed",e),...t}));fo.displayName="CardDescription";const we=h.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:re("p-8 pt-0",e),...t}));we.displayName="CardContent";const cV=h.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:re("flex items-center p-8 pt-0",e),...t}));cV.displayName="CardFooter";function Ki({citationResult:e,isLoading:t,errorMessage:n}){const{toast:r}=Wi(),[i,a]=h.useState(!1),[o,l]=h.useState(!1),[c,d]=h.useState(""),u=["APA style was first established in 1929 by psychologists, anthropologists, and business managers.","MLA style was developed by the Modern Language Association in 1951.","Chicago style allows for two different documentation systems: notes-bibliography and author-date.","Harvard referencing is named after Harvard University, but it wasn't actually developed there.","Including DOIs in citations helps readers locate electronic articles more easily.","Proper citations help prevent plagiarism and acknowledge original sources.","IEEE citation style is commonly used in engineering and computer science fields.","The first formal citation style was introduced in the 1906 Chicago Manual of Style.","Citation styles vary significantly between different academic disciplines.","Consistent citation formatting increases the credibility of your research."];h.useEffect(()=>{if(t){const x=Math.floor(Math.random()*u.length);d(u[x])}},[t]);const f=x=>{const w=document.createElement("div");return w.innerHTML=x,w.textContent||w.innerText||""},m=async()=>{if(e){a(!0);try{const x=f(e.formattedCitation);await navigator.clipboard.writeText(x),r({title:"Copied to clipboard",description:"Citation has been copied to your clipboard"})}catch{r({title:"Failed to copy",description:"Could not copy to clipboard. Try again later.",variant:"destructive"})}finally{a(!1)}}},y=async()=>{if(!(!e||!e.inTextCitation)){l(!0);try{await navigator.clipboard.writeText(e.inTextCitation),r({title:"Copied to clipboard",description:"In-text citation has been copied to your clipboard"})}catch{r({title:"Failed to copy",description:"Could not copy to clipboard. Try again later.",variant:"destructive"})}finally{l(!1)}}},b=()=>{if(!e)return;const x=f(e.formattedCitation),w=document.createElement("a"),g=new Blob([x],{type:"text/plain"});w.href=URL.createObjectURL(g),w.download=`citation_${e.format.toUpperCase()}_${Date.now()}.txt`,document.body.appendChild(w),w.click(),document.body.removeChild(w),r({title:"Downloaded",description:"Citation has been downloaded as a text file"})};if(t)return s.jsx(pe,{className:"mb-8 bg-card-material",children:s.jsx(we,{className:"flex justify-center items-center h-24 p-6",children:s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(Ix,{className:"h-5 w-5 text-primary animate-spin"}),s.jsxs("span",{className:"text-gray-600",children:["Generating citation... Did you know? ",c]})]})})});if(n){const x=n.split(` `),w=x[0],g=x.filter(v=>v.trim().startsWith("•")),p=x.filter(v=>v.trim().startsWith("• Try")||v.trim().startsWith("• Use")||v.trim().startsWith("• Check"));return s.jsx(pe,{className:"mb-8 bg-red-50 border border-red-200",children:s.jsx(we,{className:"p-6",children:s.jsxs("div",{className:"flex items-start",children:[s.jsx(Vh,{className:"h-5 w-5 text-red-500 mt-0.5 mr-3 flex-shrink-0"}),s.jsxs("div",{className:"flex-1",children:[s.jsx("h3",{className:"font-semibold text-red-800 mb-2",children:"Unable to generate citation"}),s.jsx("p",{className:"text-red-700 mb-4",children:w}),g.length>0&&!g.some(v=>v.includes("Try")||v.includes("Use")||v.includes("Check"))&&s.jsxs("div",{className:"mb-4",children:[s.jsx("p",{className:"text-sm font-medium text-red-800 mb-2",children:"Common causes:"}),s.jsx("ul",{className:"text-sm text-red-700 space-y-1",children:g.map((v,j)=>s.jsxs("li",{className:"flex items-start",children:[s.jsx("span",{className:"text-red-500 mr-2",children:"•"}),s.jsx("span",{children:v.replace("•","").trim()})]},j))})]}),p.length>0&&s.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:[s.jsx("p",{className:"text-sm font-medium text-blue-800 mb-2",children:"What you can try:"}),s.jsx("ul",{className:"text-sm text-blue-700 space-y-2",children:p.map((v,j)=>s.jsxs("li",{className:"flex items-start",children:[s.jsx("span",{className:"text-blue-500 mr-2",children:"•"}),s.jsx("span",{children:v.replace("•","").trim()})]},j))})]}),n.toLowerCase().includes("isbn")&&s.jsxs("div",{className:"mt-4 bg-gray-50 border border-gray-200 rounded-lg p-4",children:[s.jsx("p",{className:"text-sm font-medium text-gray-800 mb-2",children:"ISBN troubleshooting tips:"}),s.jsxs("ul",{className:"text-sm text-gray-700 space-y-1",children:[s.jsxs("li",{className:"flex items-start",children:[s.jsx("span",{className:"text-gray-500 mr-2",children:"•"}),s.jsx("span",{children:"Check that you entered the ISBN correctly (10 or 13 digits)"})]}),s.jsxs("li",{className:"flex items-start",children:[s.jsx("span",{className:"text-gray-500 mr-2",children:"•"}),s.jsx("span",{children:"Try removing or adding hyphens"})]}),s.jsxs("li",{className:"flex items-start",children:[s.jsx("span",{className:"text-gray-500 mr-2",children:"•"}),s.jsx("span",{children:"Try a different ISBN from the same book (some books have multiple)"})]}),s.jsxs("li",{className:"flex items-start",children:[s.jsx("span",{className:"text-gray-500 mr-2",children:"•"}),s.jsx("span",{children:"Some very recent or uncommon books may not be in our database"})]})]})]})]})]})})})}return e?s.jsxs(pe,{className:"mb-8 bg-card-material",children:[s.jsxs(_e,{className:"border-b border-gray-100 p-4 flex flex-row justify-between items-center",children:[s.jsx(De,{className:"text-lg font-medium text-material-label",children:"Generated Citation"}),s.jsxs("div",{className:"flex space-x-2",children:[s.jsx(J,{variant:"outline",size:"sm",onClick:m,disabled:i,className:"border-primary/20 hover:bg-primary/5",children:i?s.jsxs(s.Fragment,{children:[s.jsx(Wd,{className:"mr-2 h-4 w-4 text-green-500"}),"Copied"]}):s.jsxs(s.Fragment,{children:[s.jsx(Vv,{className:"mr-2 h-4 w-4"}),"Copy"]})}),s.jsxs(J,{variant:"outline",size:"sm",onClick:b,className:"border-primary/20 hover:bg-primary/5",children:[s.jsx(Bu,{className:"mr-2 h-4 w-4"}),"Download"]})]})]}),s.jsxs(we,{className:"p-6",children:[s.jsx("pre",{className:"font-mono text-sm bg-gray-50 p-4 rounded-md border border-gray-100 whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:e.formattedCitation}}),e.inTextCitation&&s.jsxs("div",{className:"mt-4 flex items-center justify-between bg-gray-50 px-3 py-3 rounded-md border border-gray-100",children:[s.jsxs("div",{className:"flex items-center",children:[s.jsx("span",{className:"text-sm font-medium text-gray-600 mr-2",children:"In-text Citation:"}),s.jsx("code",{className:"text-sm text-gray-800 bg-primary/10 px-1.5 py-0.5 rounded",dangerouslySetInnerHTML:{__html:e.inTextCitation}})]}),s.jsx(J,{variant:"ghost",size:"sm",onClick:y,disabled:o,className:"ml-2 flex-shrink-0 hover:bg-primary/5",children:o?s.jsx(P4,{className:"h-4 w-4 text-green-500"}):s.jsx(Vv,{className:"h-4 w-4"})})]}),s.jsx("p",{className:"mt-4 text-sm text-gray-500",children:"Citation generated based on your input."})]})]}):s.jsx(pe,{className:"text-center p-6 mb-8 bg-card-material",children:s.jsxs(we,{className:"p-6 flex flex-col items-center",children:[s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-12 w-12 text-gray-400 mb-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1",d:"M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z"})}),s.jsx("h3",{className:"font-medium text-gray-900",children:"No citations yet"}),s.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Enter a URL, DOI, or ISBN to generate a citation."})]})})}function dV(){return s.jsxs("div",{children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("h2",{className:"text-2xl font-bold bg-gradient-to-r from-blue-600 to-indigo-600 text-transparent bg-clip-text",children:"Trusted by students and researchers worldwide"}),s.jsx("p",{className:"text-gray-600 mt-2",children:"Generate citations with accuracy and confidence"})]}),s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[s.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6 text-center flex flex-col items-center transform transition-all duration-300 hover:shadow-md hover:-translate-y-1",children:[s.jsx(Cr,{className:"h-12 w-12 text-blue-500 mb-3"}),s.jsx("div",{className:"text-gray-700 font-semibold",children:"UNIVERSITY"})]}),s.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6 text-center flex flex-col items-center transform transition-all duration-300 hover:shadow-md hover:-translate-y-1",children:[s.jsx(Be,{className:"h-12 w-12 text-blue-500 mb-3"}),s.jsx("div",{className:"text-gray-700 font-semibold",children:"RESEARCH"})]}),s.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6 text-center flex flex-col items-center transform transition-all duration-300 hover:shadow-md hover:-translate-y-1",children:[s.jsx($4,{className:"h-12 w-12 text-blue-500 mb-3"}),s.jsx("div",{className:"text-gray-700 font-semibold",children:"EDUCATION"})]}),s.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6 text-center flex flex-col items-center transform transition-all duration-300 hover:shadow-md hover:-translate-y-1",children:[s.jsx(bN,{className:"h-12 w-12 text-blue-500 mb-3"}),s.jsx("div",{className:"text-gray-700 font-semibold",children:"INSTITUTES"})]})]})]})}const Em=5;function uV({history:e}){const{toast:t}=Wi(),[n,r]=h.useState(Em),i=(u,f="Citation")=>{u&&navigator.clipboard.writeText(u).then(()=>{t({description:`${f} copied to clipboard!`})}).catch(m=>{console.error(`Failed to copy ${f.toLowerCase()}:`,m),t({description:`Failed to copy ${f.toLowerCase()}.`,variant:"destructive"})})},a=()=>{r(e.length)},o=()=>{r(Em)},l=e.slice(0,n),c=e.length>n,d=n>Em;return s.jsxs(pe,{className:"bg-white rounded-xl shadow-md border border-gray-100",children:[s.jsx(_e,{children:s.jsxs(De,{className:"flex items-center space-x-2",children:[s.jsx(Hi,{className:"h-5 w-5 text-primary"}),s.jsx("span",{className:"text-xl font-bold text-gray-800",children:"Session History"})]})}),s.jsxs(we,{children:[e.length===0?s.jsx("p",{className:"text-gray-500 italic",children:"No citations generated in this session yet."}):s.jsx("ul",{className:"space-y-4",children:l.map((u,f)=>s.jsxs("li",{className:"pb-4 border-b border-gray-100 last:border-b-0",children:[s.jsx("div",{className:"text-sm text-gray-700 mb-2 citation-item overflow-wrap-break-word",style:{overflowWrap:"break-word",wordWrap:"break-word",wordBreak:"break-all"},dangerouslySetInnerHTML:{__html:u.formattedCitation}}),u.inTextCitation&&s.jsxs("div",{className:"mt-1 mb-2 flex items-center space-x-2",children:[s.jsx("span",{className:"text-xs font-medium text-gray-600",children:"In-Text:"}),s.jsx("code",{className:"text-sm bg-gray-100 px-1.5 py-0.5 rounded",children:u.inTextCitation})]}),s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsx("span",{className:"text-xs text-gray-500 uppercase font-medium tracking-wider",children:u.format}),s.jsxs("div",{className:"flex space-x-2",children:[u.inTextCitation&&s.jsxs(J,{variant:"outline",size:"sm",className:"h-7 px-2",onClick:()=>i(u.inTextCitation,"In-text citation"),title:"Copy In-Text Citation",children:[s.jsx(no,{className:"h-3 w-3"}),s.jsx("span",{className:"ml-1",children:"In-Text"})]}),s.jsxs(J,{variant:"outline",size:"sm",className:"h-7 px-2",onClick:()=>i(u.formattedCitation,"Citation"),title:"Copy Full Citation",children:[s.jsx(no,{className:"h-3 w-3"}),s.jsx("span",{className:"ml-1",children:"Copy"})]})]})]})]},f))}),(c||d)&&s.jsxs("div",{className:"mt-4 pt-4 border-t border-gray-100 text-center",children:[c&&s.jsxs(J,{variant:"ghost",size:"sm",onClick:a,className:"text-primary",children:["Show More (",e.length-n," older)",s.jsx(zu,{className:"h-4 w-4 ml-1"})]}),d&&s.jsxs(J,{variant:"ghost",size:"sm",onClick:o,className:"text-primary",children:["Show Less",s.jsx(jN,{className:"h-4 w-4 ml-1"})]})]})]})]})}function fV(){const[e,t]=h.useState(null),[n,r]=h.useState(!1),[i,a]=h.useState(""),[o,l]=h.useState([]),[c,d]=h.useState(0),u=[{style:"APA",citation:"Smith, J. A., & Johnson, M. B. (2023). The impact of artificial intelligence on academic research. Journal of Educational Technology, 45(3), 123-145. https://doi.org/10.1000/182",source:"https://example-journal.com/article/123",type:"Journal Article"},{style:"MLA",citation:'Smith, John A., and Mary B. Johnson. "The Impact of Artificial Intelligence on Academic Research." Journal of Educational Technology, vol. 45, no. 3, 2023, pp. 123-145.',source:"https://example-journal.com/article/123",type:"Journal Article"},{style:"Chicago",citation:'Smith, John A., and Mary B. Johnson. "The Impact of Artificial Intelligence on Academic Research." Journal of Educational Technology 45, no. 3 (2023): 123-145.',source:"https://example-journal.com/article/123",type:"Journal Article"},{style:"Harvard",citation:"Smith, J.A. and Johnson, M.B., 2023. The impact of artificial intelligence on academic research. Journal of Educational Technology, 45(3), pp.123-145.",source:"https://example-journal.com/article/123",type:"Journal Article"},{style:"IEEE",citation:'J. A. Smith and M. B. Johnson, "The impact of artificial intelligence on academic research," Journal of Educational Technology, vol. 45, no. 3, pp. 123-145, 2023.',source:"https://example-journal.com/article/123",type:"Journal Article"}];h.useEffect(()=>{const m=setInterval(()=>{d(y=>(y+1)%u.length)},4e3);return()=>clearInterval(m)},[u.length]);const f=()=>{var m;(m=document.getElementById("citation-tool"))==null||m.scrollIntoView({behavior:"smooth"})};return s.jsxs("div",{className:"font-sans text-gray-800 min-h-screen flex flex-col",children:[s.jsxs("section",{className:"min-h-screen bg-background",children:[s.jsx(rt,{}),s.jsx("div",{className:"container mx-auto px-6 py-16",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 min-h-[80vh] items-center",children:[s.jsxs(M.div,{className:"space-y-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut"},children:[s.jsxs("div",{className:"space-y-6",children:[s.jsxs("h1",{className:"text-6xl lg:text-8xl font-semibold tracking-tight leading-none",children:["Perfect",s.jsx("br",{}),"Citations",s.jsx("br",{}),s.jsx("span",{className:"text-muted-foreground",children:"Instantly"})]}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-lg",children:"Generate properly formatted academic citations from any URL, DOI, or ISBN. Trusted by 50,000+ students worldwide."})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s.jsx(J,{size:"lg",onClick:f,children:"Try Citation Generator"}),s.jsx(J,{size:"lg",variant:"outline",asChild:!0,children:s.jsx("a",{href:"/about",children:"See Examples"})})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-8 pt-12",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"text-2xl font-semibold",children:"5+"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Citation Styles"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"text-2xl font-semibold",children:"50K+"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Students"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"text-2xl font-semibold",children:"100%"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Free"})]})]})]}),s.jsx(M.div,{className:"bg-muted rounded-sm p-8",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.6,ease:"easeOut",delay:.2},children:s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[s.jsx(Fh,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-lg font-semibold",children:"Live Citation Examples"})]}),s.jsx("div",{className:"flex gap-2 mb-6 overflow-x-auto",children:u.map((m,y)=>s.jsx("button",{onClick:()=>d(y),className:`px-3 py-1 text-xs rounded-full font-medium whitespace-nowrap transition-all duration-300 ${y===c?"bg-primary text-primary-foreground":"bg-background text-muted-foreground hover:bg-primary/10"}`,children:m.style},m.style))}),s.jsx("div",{className:"bg-background border rounded-sm p-6 text-sm leading-relaxed min-h-[120px] relative overflow-hidden",children:s.jsx(Li,{mode:"wait",children:s.jsx(M.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.4,ease:"easeInOut"},className:"text-foreground",children:u[c].citation},c)})}),s.jsx("div",{className:"text-xs text-muted-foreground border-t pt-4",children:s.jsx(Li,{mode:"wait",children:s.jsxs(M.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,delay:.1},children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full animate-pulse"}),s.jsxs("span",{children:["Generated from: ",u[c].source]})]}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsxs("span",{children:["✓ ",u[c].style," Format"]}),s.jsxs("span",{children:["✓ ",u[c].type]}),s.jsx("span",{children:"✓ Auto-formatted"})]})]},`source-${c}`)})}),s.jsx("div",{className:"flex gap-1 justify-center pt-2",children:u.map((m,y)=>s.jsx("div",{className:`h-1 rounded-full transition-all duration-300 ${y===c?"w-8 bg-primary":"w-2 bg-border"}`},y))})]})})]})})]}),s.jsx("section",{className:"py-24 bg-muted",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"How It Works"}),s.jsx("p",{className:"text-xl text-muted-foreground",children:"Three simple steps to perfect citations"})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-12",children:[s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx("div",{className:"w-16 h-16 bg-primary text-primary-foreground rounded-full flex items-center justify-center mx-auto text-2xl font-semibold",children:"1"}),s.jsx("h3",{className:"text-xl font-semibold",children:"Paste Your Source"}),s.jsx("p",{className:"text-muted-foreground",children:"Copy and paste any URL, DOI, or ISBN into our generator"})]}),s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx("div",{className:"w-16 h-16 bg-primary text-primary-foreground rounded-full flex items-center justify-center mx-auto text-2xl font-semibold",children:"2"}),s.jsx("h3",{className:"text-xl font-semibold",children:"Choose Format"}),s.jsx("p",{className:"text-muted-foreground",children:"Select your preferred citation style (APA, MLA, Chicago, etc.)"})]}),s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx("div",{className:"w-16 h-16 bg-primary text-primary-foreground rounded-full flex items-center justify-center mx-auto text-2xl font-semibold",children:"3"}),s.jsx("h3",{className:"text-xl font-semibold",children:"Get Citation"}),s.jsx("p",{className:"text-muted-foreground",children:"Copy your perfectly formatted citation in seconds"})]})]})]})}),s.jsxs("main",{children:[s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Why Choose Cite.ai?"}),s.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Our citation generator leverages cutting-edge AI technology to deliver accurate, properly formatted citations for all your academic needs."})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-12",children:[s.jsxs("div",{className:"space-y-4",children:[s.jsx(kN,{className:"h-12 w-12 text-primary"}),s.jsx("h3",{className:"text-2xl font-semibold",children:"URL Citation"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Simply paste any webpage URL and get a properly formatted citation in seconds. Works with news articles, blogs, and academic sites."})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsx(hr,{className:"h-12 w-12 text-primary"}),s.jsx("h3",{className:"text-2xl font-semibold",children:"DOI & ISBN Support"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Enter a DOI or ISBN to automatically extract and format citation data from academic sources with pinpoint accuracy."})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsx(Ke,{className:"h-12 w-12 text-primary"}),s.jsx("h3",{className:"text-2xl font-semibold",children:"Multiple Formats"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Generate citations in APA, MLA, Chicago, Harvard, and IEEE formats with a single click. Perfect for any academic requirement."})]})]})]})}),s.jsx("div",{className:"container mx-auto px-6",children:s.jsx("div",{className:"h-px bg-border"})}),s.jsx("section",{className:"py-24",id:"citation-tool",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Create Your Citation"}),s.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Simply paste a URL, DOI, or ISBN below, or enter your source details manually. Our AI will generate a perfectly formatted citation in your chosen style."})]}),s.jsx("div",{className:"bg-card border rounded-sm p-12",children:s.jsx(qi,{onGenerateStart:()=>{r(!0),a("")},onGenerateSuccess:m=>{t(m),r(!1),a(""),l(y=>[m,...y])},onGenerateError:m=>{r(!1),a(m)}})}),s.jsx("div",{className:"mt-12",children:s.jsx(Ki,{citationResult:e,isLoading:n,errorMessage:i})}),o.length>0&&s.jsx("div",{className:"mt-16",children:s.jsx(uV,{history:o})})]})}),s.jsx("div",{className:"container mx-auto px-6",children:s.jsx("div",{className:"h-px bg-border"})}),s.jsx("section",{className:"py-24 bg-muted",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Working on Multiple Assignments?"}),s.jsx("p",{className:"text-xl text-muted-foreground max-w-4xl mx-auto",children:"Create projects for your dissertations, essays, and research papers. Keep citations organized by assignment and get perfectly sorted reference lists for each module."})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-12 mb-16",children:[s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx(AN,{className:"h-12 w-12 text-primary mx-auto"}),s.jsx("h3",{className:"text-xl font-semibold",children:"Create Projects"}),s.jsx("p",{className:"text-muted-foreground",children:"Set up separate projects for each assignment with module codes and reference styles"})]}),s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx(Fh,{className:"h-12 w-12 text-primary mx-auto"}),s.jsx("h3",{className:"text-xl font-semibold",children:"Add Citations"}),s.jsx("p",{className:"text-muted-foreground",children:"Generate and save citations directly to specific projects using our AI tool"})]}),s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx(no,{className:"h-12 w-12 text-primary mx-auto"}),s.jsx("h3",{className:"text-xl font-semibold",children:"Copy References"}),s.jsx("p",{className:"text-muted-foreground",children:"Get all citations in alphabetical order, ready to paste into your assignments"})]})]}),s.jsx("div",{className:"text-center",children:s.jsx(lt,{href:"/projects",children:s.jsx(J,{size:"lg",children:"Start Organizing Your Citations"})})})]})}),s.jsx("div",{className:"container mx-auto px-6",children:s.jsx("div",{className:"h-px bg-border"})}),s.jsx("section",{className:"py-24 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-4xl font-bold mb-4",children:"Citation Formats Supported"}),s.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Generate perfect citations in all major academic formats. Our free citation generator supports the most popular citation styles used by students worldwide."})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-6xl mx-auto",children:[s.jsx(lt,{href:"/apa-citation-generator",children:s.jsxs("div",{className:"bg-background p-6 rounded-lg border hover:shadow-lg transition-shadow cursor-pointer",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center",children:s.jsx("span",{className:"text-blue-600 font-bold text-sm",children:"APA"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold",children:"APA Citation Generator"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"7th Edition"})]})]}),s.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Perfect for psychology, education, and social sciences. Generate APA citations with proper author-date format and DOI links."}),s.jsxs("div",{className:"text-xs text-muted-foreground",children:["Example: Smith, J. (2024). ",s.jsx("em",{children:"Title of work"}),". Publisher."]})]})}),s.jsx(lt,{href:"/mla-citation-generator",children:s.jsxs("div",{className:"bg-background p-6 rounded-lg border hover:shadow-lg transition-shadow cursor-pointer",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsx("div",{className:"w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center",children:s.jsx("span",{className:"text-green-600 font-bold text-sm",children:"MLA"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold",children:"MLA Citation Generator"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"9th Edition"})]})]}),s.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Ideal for literature, humanities, and liberal arts. Create MLA citations with proper works cited formatting."}),s.jsxs("div",{className:"text-xs text-muted-foreground",children:['Example: Smith, John. "Title of Article." ',s.jsx("em",{children:"Journal"}),", 2024, pp. 1-10."]})]})}),s.jsx(lt,{href:"/harvard-citation-generator",children:s.jsxs("div",{className:"bg-background p-6 rounded-lg border hover:shadow-lg transition-shadow cursor-pointer",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsx("div",{className:"w-12 h-12 bg-red-100 rounded-lg flex items-center justify-center",children:s.jsx("span",{className:"text-red-600 font-bold text-sm",children:"HAR"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold",children:"Harvard Citation Generator"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"UK & AU Style"})]})]}),s.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Popular in UK and Australian universities. Generate Harvard referencing with author-date system and bibliography."}),s.jsxs("div",{className:"text-xs text-muted-foreground",children:["Example: Smith, J 2024, 'Title of article', ",s.jsx("em",{children:"Journal"}),", vol. 1, pp. 1-10."]})]})}),s.jsx(lt,{href:"/chicago-citation-generator",children:s.jsxs("div",{className:"bg-background p-6 rounded-lg border hover:shadow-lg transition-shadow cursor-pointer",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsx("div",{className:"w-12 h-12 bg-orange-100 rounded-lg flex items-center justify-center",children:s.jsx("span",{className:"text-orange-600 font-bold text-sm",children:"CHI"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold",children:"Chicago Citation Generator"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"17th Edition"})]})]}),s.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Essential for history and literature. Supports both notes-bibliography and author-date Chicago citation styles."}),s.jsxs("div",{className:"text-xs text-muted-foreground",children:["Example: Smith, John. ",s.jsx("em",{children:"Title of Book"}),". City: Publisher, 2024."]})]})}),s.jsx(lt,{href:"/ieee-citation-generator",children:s.jsxs("div",{className:"bg-background p-6 rounded-lg border hover:shadow-lg transition-shadow cursor-pointer",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center",children:s.jsx("span",{className:"text-purple-600 font-bold text-sm",children:"IEEE"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold",children:"IEEE Citation Generator"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Engineering Style"})]})]}),s.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Perfect for engineering and technology papers. Generate IEEE citations with numbered reference system."}),s.jsxs("div",{className:"text-xs text-muted-foreground",children:['Example: [1] J. Smith, "Title of paper," ',s.jsx("em",{children:"Journal"}),", vol. 1, pp. 1-10, 2024."]})]})}),s.jsx(lt,{href:"/citation-guide",children:s.jsxs("div",{className:"bg-background p-6 rounded-lg border hover:shadow-lg transition-shadow cursor-pointer",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded-lg flex items-center justify-center",children:s.jsx("span",{className:"text-gray-600 font-bold text-xs",children:"MORE"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold",children:"More Citation Styles"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Extended Formats"})]})]}),s.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Additional formats including Turabian, AMA, Vancouver, Bluebook, and discipline-specific citation styles."}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"View complete citation style guide →"})]})})]})]})}),s.jsx("section",{className:"py-24",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[s.jsx("h2",{className:"text-4xl font-bold mb-8",children:"Free Citation Generator for All Your Academic Needs"}),s.jsx("div",{className:"space-y-6 text-left",children:s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-2 text-lg",children:"Automatic Citation Generation"}),s.jsx("p",{className:"text-muted-foreground",children:"Our AI-powered citation machine automatically detects source types and generates properly formatted academic citations. Simply paste a URL, DOI, or ISBN to create instant citations for your bibliography."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-2 text-lg",children:"Multiple Source Types Supported"}),s.jsx("p",{className:"text-muted-foreground",children:"Cite websites, academic journals, books, news articles, reports, and more. Our citation generator works with DOI numbers, ISBN codes, and direct URLs for comprehensive source coverage."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-2 text-lg",children:"Academic Writing Tools"}),s.jsx("p",{className:"text-muted-foreground",children:"Beyond citations, access our complete suite of academic writing resources including citation guides, formatting examples, and reference management tools for students and researchers."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-2 text-lg",children:"Always Free Citation Tool"}),s.jsx("p",{className:"text-muted-foreground",children:"No subscription fees, registration, or hidden costs. Generate unlimited citations in APA, MLA, Harvard, Chicago, IEEE, and other academic formats completely free of charge."})]})]})})]})})}),s.jsx("section",{className:"py-24 bg-muted/30","aria-label":"Trusted By",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsx(dV,{})})})]}),s.jsx(st,{})]})}const mV={"@context":"https://schema.org","@type":"WebPage",name:"About Cite.ai - Academic Citation Generator",description:"Learn about Cite.ai's mission to simplify academic citations using advanced technology and intuitive design. Meet the team behind the platform.",url:"https://academicite.com/about",isPartOf:{"@type":"WebSite",url:"https://academicite.com/",name:"Cite.ai"}};function hV(){const[e,t]=h.useState(0),n=[{icon:Wt,value:"50K+",label:"Users Worldwide",color:"text-blue-500"},{icon:Fh,value:"1M+",label:"Citations Generated",color:"text-green-500"},{icon:oc,value:"150+",label:"Countries",color:"text-purple-500"},{icon:Fs,value:"99.9%",label:"Accuracy Rate",color:"text-orange-500"},{icon:Hi,value:"<3s",label:"Average Generation Time",color:"text-red-500"}];return h.useEffect(()=>{const r=setInterval(()=>{t(i=>(i+1)%n.length)},3e3);return()=>clearInterval(r)},[n.length]),s.jsxs("div",{className:"min-h-screen flex flex-col",children:[s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(mV)}}),s.jsxs("section",{className:"min-h-screen bg-background",children:[s.jsx(rt,{}),s.jsx("div",{className:"container mx-auto px-6 py-16",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 min-h-[80vh] items-center",children:[s.jsxs(M.div,{className:"space-y-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[s.jsxs("div",{className:"space-y-6",children:[s.jsxs("h1",{className:"text-6xl lg:text-8xl font-semibold tracking-tight leading-none",children:["About",s.jsx("br",{}),s.jsx("span",{className:"text-muted-foreground",children:"Cite.ai"})]}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-lg",children:"Advanced technology and intuitive design to make proper referencing accessible to everyone."})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-6 pt-8",children:[s.jsxs(M.div,{className:"space-y-2",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.5,delay:.2},children:[s.jsx("div",{className:"text-3xl font-semibold text-primary",children:"5+"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Citation Styles"})]}),s.jsxs(M.div,{className:"space-y-2",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.5,delay:.3},children:[s.jsx("div",{className:"text-3xl font-semibold text-primary",children:"24/7"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Available"})]})]})]}),s.jsx(M.div,{className:"bg-muted rounded-sm p-8",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.6,delay:.2},children:s.jsx("div",{className:"space-y-8",children:s.jsxs("div",{className:"text-center",children:[s.jsx("h3",{className:"text-lg font-semibold mb-6",children:"Live Statistics"}),s.jsx("div",{className:"bg-background border rounded-sm p-8 mb-6",children:s.jsx(Li,{mode:"wait",children:s.jsxs(M.div,{initial:{opacity:0,y:20,scale:.8},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-20,scale:.8},transition:{duration:.5,ease:"easeInOut"},className:"text-center space-y-4",children:[s.jsx("div",{className:`${n[e].color} mx-auto`,children:ie.createElement(n[e].icon,{className:"h-12 w-12 mx-auto"})}),s.jsx("div",{className:"text-4xl font-bold",children:n[e].value}),s.jsx("div",{className:"text-muted-foreground",children:n[e].label})]},e)})}),s.jsx("div",{className:"flex gap-2 justify-center mb-6",children:n.map((r,i)=>s.jsx("button",{onClick:()=>t(i),className:`h-2 rounded-full transition-all duration-300 ${i===e?"w-8 bg-primary":"w-2 bg-border hover:bg-primary/50"}`},i))}),s.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[s.jsxs(M.div,{className:"bg-background/50 rounded-sm p-3",whileHover:{scale:1.05},transition:{duration:.2},children:[s.jsx("div",{className:"font-semibold text-primary",children:"Real-time"}),s.jsx("div",{className:"text-muted-foreground",children:"Processing"})]}),s.jsxs(M.div,{className:"bg-background/50 rounded-sm p-3",whileHover:{scale:1.05},transition:{duration:.2},children:[s.jsx("div",{className:"font-semibold text-primary",children:"AI-Powered"}),s.jsx("div",{className:"text-muted-foreground",children:"Technology"})]})]})]})})})]})})]}),s.jsxs("main",{className:"flex-grow",children:[s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Our Mission"}),s.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"We believe that proper academic citation should be effortless, not overwhelming. Our platform harnesses cutting-edge AI technology to make citations simple, accurate, and accessible to students and researchers worldwide."})]}),s.jsx("div",{className:"grid md:grid-cols-3 gap-12",children:[{icon:$u,title:"Innovation",description:"Pioneering AI-powered solutions that transform how academic citations are created and managed in the digital age."},{icon:he,title:"Accuracy",description:"Ensuring every citation meets the highest academic standards with precision formatting across all major citation styles."},{icon:Wt,title:"Accessibility",description:"Making academic citation tools available to everyone, regardless of their technical expertise or institutional resources."}].map((r,i)=>s.jsxs(M.div,{className:"space-y-4 group",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:i*.1},viewport:{once:!0},whileHover:{y:-5},children:[s.jsx(M.div,{whileHover:{scale:1.1,rotate:5},transition:{duration:.2},children:s.jsx(r.icon,{className:"h-12 w-12 text-primary group-hover:text-primary/80 transition-colors"})}),s.jsx("h3",{className:"text-2xl font-semibold group-hover:text-primary transition-colors",children:r.title}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:r.description})]},r.title))})]})}),s.jsx("div",{className:"container mx-auto px-6",children:s.jsx(je,{})}),s.jsx("section",{className:"py-24 bg-muted",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight",children:"Born from Academic Frustration"}),s.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"Cite.ai was created by researchers who experienced firsthand the time-consuming and error-prone nature of manual citation creation. We understood that students and academics needed a solution that could handle the complexity of modern academic sources while maintaining the precision required by institutions."}),s.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"Today, our platform serves thousands of users worldwide, from undergraduate students to seasoned researchers, helping them focus on their work rather than formatting details."}),s.jsxs("div",{className:"grid grid-cols-2 gap-6 pt-8",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-3xl font-semibold mb-2",children:"50K+"}),s.jsx("div",{className:"text-muted-foreground",children:"Users Worldwide"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-3xl font-semibold mb-2",children:"1M+"}),s.jsx("div",{className:"text-muted-foreground",children:"Citations Generated"})]})]})]}),s.jsxs("div",{className:"bg-background border rounded-sm p-8",children:[s.jsx("h3",{className:"text-2xl font-semibold mb-6",children:"What Makes Us Different"}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx(he,{className:"h-6 w-6 text-primary mt-1 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-1",children:"AI-Powered Detection"}),s.jsx("p",{className:"text-muted-foreground",children:"Automatically identifies source types and extracts metadata with precision."})]})]}),s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx(he,{className:"h-6 w-6 text-primary mt-1 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-1",children:"Multiple Format Support"}),s.jsx("p",{className:"text-muted-foreground",children:"APA, MLA, Chicago, Harvard, and IEEE styles all perfectly formatted."})]})]}),s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx(he,{className:"h-6 w-6 text-primary mt-1 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-1",children:"Revolutionary Features"}),s.jsx("p",{className:"text-muted-foreground",children:"World-first in-text citation to reference conversion using advanced AI."})]})]})]})]})]})})}),s.jsx("div",{className:"container mx-auto px-6",children:s.jsx(je,{})}),s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Our Core Values"}),s.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"The principles that guide everything we do at Cite.ai"})]}),s.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-12",children:[s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx(Js,{className:"h-12 w-12 text-primary mx-auto"}),s.jsx("h3",{className:"text-xl font-semibold",children:"Excellence"}),s.jsx("p",{className:"text-muted-foreground",children:"Striving for the highest quality in every citation we generate."})]}),s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx(Dx,{className:"h-12 w-12 text-primary mx-auto"}),s.jsx("h3",{className:"text-xl font-semibold",children:"Innovation"}),s.jsx("p",{className:"text-muted-foreground",children:"Continuously advancing the future of academic citation technology."})]}),s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx(A4,{className:"h-12 w-12 text-primary mx-auto"}),s.jsx("h3",{className:"text-xl font-semibold",children:"Technology"}),s.jsx("p",{className:"text-muted-foreground",children:"Leveraging cutting-edge AI to solve complex citation challenges."})]}),s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx(S4,{className:"h-12 w-12 text-primary mx-auto"}),s.jsx("h3",{className:"text-xl font-semibold",children:"Education"}),s.jsx("p",{className:"text-muted-foreground",children:"Supporting academic success through reliable citation tools."})]})]})]})}),s.jsx("section",{className:"py-24 bg-muted",children:s.jsx("div",{className:"container mx-auto px-6 text-center",children:s.jsxs("div",{className:"max-w-2xl mx-auto space-y-8",children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight",children:"Ready to Get Started?"}),s.jsx("p",{className:"text-xl text-muted-foreground",children:"Join thousands of researchers and students who trust Cite.ai for their academic citations."}),s.jsxs(J,{size:"lg",className:"rounded-full px-8",children:["Try Cite.ai Now",s.jsx(fn,{className:"ml-2 h-4 w-4"})]})]})})})]}),s.jsx(st,{})]})}const pV={"@context":"https://schema.org","@type":"WebPage",name:"Privacy Policy - Cite.ai",description:"Read the Cite.ai Privacy Policy to understand how we collect, use, and protect your personal information.",url:"https://academicite.com/privacy",isPartOf:{"@type":"WebSite",url:"https://academicite.com/",name:"Cite.ai"}},xV=[{icon:NN,title:"Information We Collect",content:"We collect information you provide directly to us, such as when you create citations, use our services, or contact us. This includes source URLs, citation preferences, and usage analytics to improve our service quality."},{icon:Uh,title:"How We Use Your Information",content:"We use your information to provide, maintain, and improve our citation generation services, analyze usage patterns, and communicate with you about service updates or support matters."},{icon:_N,title:"Information Security",content:"We implement appropriate technical and organizational measures to protect your personal information against unauthorized access, alteration, disclosure, or destruction."},{icon:Gu,title:"Your Rights",content:"You have the right to access, update, or delete your personal information. You may also opt out of certain communications and request data portability where applicable."},{icon:qr,title:"Third-Party Services",content:"We may use third-party services for analytics and functionality. These services have their own privacy policies and we encourage you to review them."},{icon:Ii,title:"Data Retention",content:"We retain your information for as long as necessary to provide our services and comply with legal obligations. Citation data may be aggregated anonymously for service improvement."}],gV=["No personal data sold to third parties","Industry-standard encryption protocols","GDPR and CCPA compliant practices","Regular security audits and updates","Transparent data collection policies"];function yV(){return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(pV)}}),s.jsx(rt,{}),s.jsx("section",{className:"pt-24 pb-16 bg-gradient-to-br from-background via-muted/30 to-background",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsxs(M.div,{className:"text-center max-w-4xl mx-auto",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},children:[s.jsxs("div",{className:"inline-flex items-center gap-2 bg-primary/10 text-primary rounded-full px-6 py-3 text-sm font-medium mb-8",children:[s.jsx(D4,{className:"h-4 w-4"}),"Privacy Policy"]}),s.jsxs("h1",{className:"text-4xl sm:text-5xl md:text-6xl font-bold tracking-tight mb-6",children:["Your Privacy",s.jsx("span",{className:"block text-primary mt-2",children:"Matters to Us"})]}),s.jsx("p",{className:"text-xl text-muted-foreground leading-relaxed max-w-3xl mx-auto mb-8",children:"Transparent practices for how we collect, use, and protect your information."}),s.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-muted-foreground",children:[s.jsx(Ii,{className:"h-4 w-4"}),s.jsx("span",{children:"Last Updated: April 18, 2025"})]})]})})}),s.jsx("section",{className:"py-16 bg-muted/50",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-12",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Privacy at a Glance"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Key principles that guide our approach to protecting your privacy"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 max-w-5xl mx-auto",children:gV.map((e,t)=>s.jsxs(M.div,{className:"flex items-center gap-3 bg-background border rounded-lg p-4",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:t*.1},viewport:{once:!0},children:[s.jsx(he,{className:"h-5 w-5 text-green-500 flex-shrink-0"}),s.jsx("span",{className:"text-sm font-medium",children:e})]},t))})]})}),s.jsx("section",{className:"py-24",children:s.jsx("div",{className:"container mx-auto px-6 max-w-6xl",children:s.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:xV.map((e,t)=>s.jsx(M.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:t*.1},viewport:{once:!0},children:s.jsxs(pe,{className:"h-full hover:shadow-lg transition-shadow duration-300",children:[s.jsx(_e,{children:s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:"p-3 bg-primary/10 rounded-lg",children:s.jsx(e.icon,{className:"h-6 w-6 text-primary"})}),s.jsx(De,{className:"text-xl",children:e.title})]})}),s.jsx(we,{children:s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.content})})]})},t))})})}),s.jsx(je,{}),s.jsx("section",{className:"py-24 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Complete Privacy Policy"}),s.jsx("p",{className:"text-muted-foreground",children:"Detailed information about our privacy practices"})]}),s.jsx(M.div,{className:"prose prose-gray max-w-none dark:prose-invert",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:s.jsx(pe,{className:"p-8",children:s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{children:[s.jsxs("h3",{className:"text-2xl font-semibold mb-4 flex items-center gap-3",children:[s.jsx(NN,{className:"h-6 w-6 text-primary"}),"Information Collection"]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"At Cite.ai, we're committed to protecting your privacy and ensuring you have a positive experience on our website. This policy outlines how we collect, use, and safeguard your information."}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"We collect information when you use our citation generation services, including source URLs, citation formats, and usage patterns. This data helps us improve our service quality and provide better citation accuracy."})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-2xl font-semibold mb-4 flex items-center gap-3",children:[s.jsx(_N,{className:"h-6 w-6 text-primary"}),"Data Protection"]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"We implement industry-standard security measures to protect your personal information. All data transmission is encrypted, and we regularly update our security protocols to address emerging threats."}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Your citation data is processed securely and is not shared with unauthorized third parties. We may use aggregated, anonymized data for service improvement and research purposes."})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-2xl font-semibold mb-4 flex items-center gap-3",children:[s.jsx(Gu,{className:"h-6 w-6 text-primary"}),"Your Rights"]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"You have the right to access, correct, or delete your personal information. You may also request data portability or object to certain processing activities. To exercise these rights, please contact us through our support channels."}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"We comply with applicable data protection regulations, including GDPR and CCPA, and are committed to handling your data requests promptly and transparently."})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-2xl font-semibold mb-4 flex items-center gap-3",children:[s.jsx(qr,{className:"h-6 w-6 text-primary"}),"Contact Information"]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"If you have questions about this Privacy Policy or our data practices, please contact us at privacy@cite.ai or through our contact form. We're committed to addressing your concerns and providing clear information about our privacy practices."})]})]})})})]})}),s.jsx(st,{})]})}const vV={"@context":"https://schema.org","@type":"WebPage",name:"Terms of Service - Cite.ai",description:"Read the Cite.ai Terms of Service governing the use of our academic citation generator.",url:"https://academicite.com/terms",isPartOf:{"@type":"WebSite",url:"https://academicite.com/",name:"Cite.ai"}},wV=[{icon:Ke,title:"Use of the Service",content:"You may use our citation generation service for personal, academic, and professional purposes. You agree to use the service responsibly and in accordance with applicable laws and regulations."},{icon:Gu,title:"User Responsibilities",content:"Users are responsible for ensuring the accuracy of source information provided and for proper attribution in their academic work. You must not misuse or attempt to harm our service infrastructure."},{icon:Hu,title:"Intellectual Property",content:"The service, including its original content, features, and functionality, is owned by Cite.ai and protected by international copyright, trademark, and other intellectual property laws."},{icon:IN,title:"Limitation of Liability",content:"We provide the service 'as is' and disclaim all warranties. Our liability is limited to the maximum extent permitted by law. Users are responsible for verifying citation accuracy."},{icon:oc,title:"Service Availability",content:"We strive to maintain service availability but cannot guarantee uninterrupted access. We reserve the right to modify, suspend, or discontinue the service with appropriate notice."},{icon:PN,title:"Governing Law",content:"These terms are governed by applicable laws. Any disputes will be resolved through appropriate legal channels. Continued use of the service constitutes acceptance of these terms."}],bV=["Service provided 'as is' with best effort support","Users responsible for citation accuracy verification","Prohibited uses include harmful or illegal activities","Service modifications with reasonable notice","Compliance with academic integrity standards"];function jV(){return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(vV)}}),s.jsx(rt,{}),s.jsx("section",{className:"pt-24 pb-16 bg-gradient-to-br from-background via-muted/30 to-background",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsxs(M.div,{className:"text-center max-w-4xl mx-auto",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},children:[s.jsxs("div",{className:"inline-flex items-center gap-2 bg-primary/10 text-primary rounded-full px-6 py-3 text-sm font-medium mb-8",children:[s.jsx(W4,{className:"h-4 w-4"}),"Terms of Service"]}),s.jsxs("h1",{className:"text-4xl sm:text-5xl md:text-6xl font-bold tracking-tight mb-6",children:["Terms of",s.jsx("span",{className:"block text-primary mt-2",children:"Service"})]}),s.jsx("p",{className:"text-xl text-muted-foreground leading-relaxed max-w-3xl mx-auto mb-8",children:"Please read these terms carefully before using Cite.ai. By using our service, you agree to be bound by these terms and conditions."}),s.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-muted-foreground",children:[s.jsx(Ii,{className:"h-4 w-4"}),s.jsx("span",{children:"Last Updated: April 18, 2025"})]})]})})}),s.jsx("section",{className:"py-16 bg-muted/50",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-12",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Key Terms Overview"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Important highlights from our terms of service"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 max-w-5xl mx-auto",children:bV.map((e,t)=>s.jsxs(M.div,{className:"flex items-center gap-3 bg-background border rounded-lg p-4",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:t*.1},viewport:{once:!0},children:[s.jsx(he,{className:"h-5 w-5 text-green-500 flex-shrink-0"}),s.jsx("span",{className:"text-sm font-medium",children:e})]},t))})]})}),s.jsx("section",{className:"py-24",children:s.jsx("div",{className:"container mx-auto px-6 max-w-6xl",children:s.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:wV.map((e,t)=>s.jsx(M.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:t*.1},viewport:{once:!0},children:s.jsxs(pe,{className:"h-full hover:shadow-lg transition-shadow duration-300",children:[s.jsx(_e,{children:s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:"p-3 bg-primary/10 rounded-lg",children:s.jsx(e.icon,{className:"h-6 w-6 text-primary"})}),s.jsx(De,{className:"text-xl",children:e.title})]})}),s.jsx(we,{children:s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.content})})]})},t))})})}),s.jsx(je,{}),s.jsx("section",{className:"py-24 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Complete Terms of Service"}),s.jsx("p",{className:"text-muted-foreground",children:"Detailed terms governing your use of Cite.ai"})]}),s.jsx(M.div,{className:"prose prose-gray max-w-none dark:prose-invert",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:s.jsx(pe,{className:"p-8",children:s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{children:[s.jsxs("h3",{className:"text-2xl font-semibold mb-4 flex items-center gap-3",children:[s.jsx(Ke,{className:"h-6 w-6 text-primary"}),"1. Use of the Service"]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:'These Terms of Service ("Terms") govern your access to and use of the Cite.ai website (the "Service") operated by Deep Play Studio UK ("we," "us," and "our").'}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Your access to and use of the Service is conditioned on your acceptance of and compliance with these Terms. These Terms apply to all visitors, users, and others who access or use the Service."})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-2xl font-semibold mb-4 flex items-center gap-3",children:[s.jsx(Gu,{className:"h-6 w-6 text-primary"}),"2. Acceptable Use"]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"You may use our Service for lawful purposes only. You agree not to use the Service in any way that violates applicable federal, state, local, or international law or regulation."}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"You are responsible for maintaining the accuracy of information provided to our citation generator and for properly attributing sources in your academic work."})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-2xl font-semibold mb-4 flex items-center gap-3",children:[s.jsx(Hu,{className:"h-6 w-6 text-primary"}),"3. Intellectual Property Rights"]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"The Service and its original content, features, and functionality are and will remain the exclusive property of Cite.ai and its licensors. The Service is protected by copyright, trademark, and other laws."}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Our trademarks and trade dress may not be used in connection with any product or service without our prior written consent."})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-2xl font-semibold mb-4 flex items-center gap-3",children:[s.jsx(IN,{className:"h-6 w-6 text-primary"}),"4. Disclaimer and Limitation of Liability"]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:'The information on this website is provided on an "as is" basis. We disclaim all warranties, express or implied, regarding the accuracy, completeness, or reliability of citations generated by our service.'}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Users are responsible for verifying the accuracy of generated citations before use in academic or professional work. We shall not be liable for any errors in citations or consequences arising from their use."})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-2xl font-semibold mb-4 flex items-center gap-3",children:[s.jsx(PN,{className:"h-6 w-6 text-primary"}),"5. Changes to Terms"]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:'We reserve the right to update or change our Terms of Service at any time. We will notify you of any changes by posting the new Terms of Service on this page and updating the "Last Updated" date. Your continued use of the Service after any such changes constitutes your acceptance of the new Terms of Service.'})]})]})})})]})}),s.jsx(st,{})]})}const gf=h.forwardRef(({className:e,...t},n)=>s.jsx("textarea",{className:re("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));gf.displayName="Textarea";const NV=Le.object({name:Le.string().min(2,{message:"Name must be at least 2 characters."}),email:Le.string().email({message:"Please enter a valid email address."}),subject:Le.string().min(5,{message:"Subject must be at least 5 characters."}),message:Le.string().min(10,{message:"Message must be at least 10 characters."})}),CV={"@context":"https://schema.org","@type":"WebPage",name:"Contact Us - Cite.ai",description:"Get in touch with the Cite.ai team for support, feedback, or inquiries about our academic citation generator.",url:"https://academicite.com/contact",isPartOf:{"@type":"WebSite",url:"https://academicite.com/",name:"Cite.ai"}},qc=[{label:"General Inquiries",time:"24-48 hours"},{label:"Technical Support",time:"24 hours"},{label:"Urgent Issues",time:"4-6 hours"},{label:"Bug Reports",time:"12 hours"},{label:"Feature Requests",time:"48 hours"}];function SV(){const[e,t]=h.useState(!1),[n,r]=h.useState(0),{toast:i}=Wi(),a=Rg({resolver:Ig(NV),defaultValues:{name:"",email:"",subject:"",message:""}});h.useEffect(()=>{const l=setInterval(()=>{r(c=>(c+1)%qc.length)},3e3);return()=>clearInterval(l)},[]);function o(l){t(!0),setTimeout(()=>{t(!1),i({title:"Message Sent",description:"Thank you for your message. We'll get back to you soon.",variant:"default"}),a.reset()},1500)}return s.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(CV)}}),s.jsx(rt,{}),s.jsx("section",{className:"min-h-screen bg-background",children:s.jsx("div",{className:"container mx-auto px-6 py-16",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 lg:gap-24 items-center min-h-[80vh]",children:[s.jsxs(M.div,{className:"space-y-8",initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:.8},children:[s.jsxs("div",{className:"space-y-6",children:[s.jsxs(M.h1,{className:"text-6xl lg:text-8xl font-semibold tracking-tight leading-none",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},children:["Get in",s.jsx("br",{}),s.jsx("span",{className:"text-muted-foreground",children:"Touch"})]}),s.jsx(M.p,{className:"text-xl leading-relaxed text-muted-foreground max-w-lg",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.4},children:"Have questions about citations? Need technical support? We'd love to hear from you."})]}),s.jsxs(M.div,{className:"flex gap-4",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.6},children:[s.jsxs(J,{size:"lg",className:"rounded-full",children:[s.jsx(Bh,{className:"mr-2 h-4 w-4"}),"Start Conversation"]}),s.jsx(J,{variant:"outline",size:"lg",className:"rounded-full",children:"View FAQ"})]})]}),s.jsx(M.div,{className:"bg-muted p-12 rounded-sm",initial:{opacity:0,x:50},animate:{opacity:1,x:0},transition:{duration:.8,delay:.3},children:s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-2xl font-semibold tracking-tight mb-2",children:"Response Times"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Our commitment to fast, reliable support"})]}),s.jsx("div",{className:"h-24 flex items-center",children:s.jsx(Li,{mode:"wait",children:s.jsx(M.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.5},className:"w-full",children:s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsx("span",{className:"text-lg text-muted-foreground",children:qc[n].label}),s.jsx("span",{className:"text-2xl font-semibold tracking-tight",children:qc[n].time})]})},n)})}),s.jsx("div",{className:"flex gap-2",children:qc.map((l,c)=>s.jsx("div",{className:`h-1 flex-1 rounded-full transition-colors duration-300 ${c===n?"bg-primary":"bg-border"}`},c))})]})})]})})}),s.jsx(je,{}),s.jsx("section",{className:"py-24",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-16",children:[s.jsx(M.div,{className:"space-y-8",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"bg-primary/10 p-4 rounded-sm",children:s.jsx(qr,{className:"h-6 w-6 text-primary"})}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-xl font-semibold tracking-tight",children:"Email Us"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Our friendly team is here to help."}),s.jsx("a",{href:"mailto:citeai@deepplaystudio.com",className:"text-primary hover:underline font-medium block",children:"citeai@deepplaystudio.com"})]})]})}),s.jsx(M.div,{className:"space-y-8",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:.1},viewport:{once:!0},children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"bg-primary/10 p-4 rounded-sm",children:s.jsx(TN,{className:"h-6 w-6 text-primary"})}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-xl font-semibold tracking-tight",children:"Call Us"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Mon-Fri from 8am to 5pm."}),s.jsx("a",{href:"tel:+447810211572",className:"text-primary hover:underline font-medium block",children:"+44 7810 211 572"})]})]})}),s.jsx(M.div,{className:"space-y-8",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:.2},viewport:{once:!0},children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"bg-primary/10 p-4 rounded-sm",children:s.jsx(Mx,{className:"h-6 w-6 text-primary"})}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-xl font-semibold tracking-tight",children:"Office"}),s.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["37 Braunstone gate",s.jsx("br",{}),"Apartment 8",s.jsx("br",{}),"United Kingdom"]})]})]})})]})})}),s.jsx(je,{}),s.jsx("section",{className:"py-24 bg-muted",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Send Us a Message"}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-2xl mx-auto",children:"Whether you have a question about our services, need help with a citation, or want to provide feedback, our team is here to assist you."})]}),s.jsxs(M.div,{className:"bg-background p-12 rounded-sm border",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:.2},viewport:{once:!0},children:[s.jsx(Mg,{...a,children:s.jsxs("form",{onSubmit:a.handleSubmit(o),className:"space-y-8",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[s.jsx(gt,{control:a.control,name:"name",render:({field:l})=>s.jsxs(mt,{children:[s.jsx(yt,{className:"text-base font-medium",children:"Full Name"}),s.jsx(vt,{children:s.jsx(jt,{placeholder:"John Doe",...l,className:"h-12 rounded-sm border-border focus:border-primary focus:ring-1 focus:ring-primary/20"})}),s.jsx(wt,{})]})}),s.jsx(gt,{control:a.control,name:"email",render:({field:l})=>s.jsxs(mt,{children:[s.jsx(yt,{className:"text-base font-medium",children:"Email Address"}),s.jsx(vt,{children:s.jsx(jt,{placeholder:"john@example.com",...l,className:"h-12 rounded-sm border-border focus:border-primary focus:ring-1 focus:ring-primary/20"})}),s.jsx(wt,{})]})})]}),s.jsx(gt,{control:a.control,name:"subject",render:({field:l})=>s.jsxs(mt,{children:[s.jsx(yt,{className:"text-base font-medium",children:"Subject"}),s.jsx(vt,{children:s.jsx(jt,{placeholder:"How can we help you?",...l,className:"h-12 rounded-sm border-border focus:border-primary focus:ring-1 focus:ring-primary/20"})}),s.jsx(wt,{})]})}),s.jsx(gt,{control:a.control,name:"message",render:({field:l})=>s.jsxs(mt,{children:[s.jsx(yt,{className:"text-base font-medium",children:"Message"}),s.jsx(vt,{children:s.jsx(gf,{placeholder:"Please describe your question or issue in detail...",...l,className:"min-h-32 rounded-sm border-border focus:border-primary focus:ring-1 focus:ring-primary/20"})}),s.jsx(wt,{})]})}),s.jsx("div",{className:"pt-4",children:s.jsx(J,{type:"submit",size:"lg",className:"w-full h-14 text-base font-medium rounded-full",disabled:e,children:e?s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"h-5 w-5 border-2 border-white border-t-transparent rounded-full animate-spin"}),"Sending..."]}):s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(H4,{className:"h-5 w-5"}),"Send Message"]})})})]})}),s.jsxs("div",{className:"mt-12 grid grid-cols-1 md:grid-cols-3 gap-6",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(he,{className:"h-5 w-5 text-primary flex-shrink-0"}),s.jsx("span",{className:"text-muted-foreground",children:"Fast Response"})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(he,{className:"h-5 w-5 text-primary flex-shrink-0"}),s.jsx("span",{className:"text-muted-foreground",children:"Expert Support"})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(he,{className:"h-5 w-5 text-primary flex-shrink-0"}),s.jsx("span",{className:"text-muted-foreground",children:"Privacy Protected"})]})]})]})]})}),s.jsx(je,{}),s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Frequently Asked Questions"}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-3xl mx-auto",children:"Find quick answers to common questions about Cite.ai's services and functionality."})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[{question:"How quickly can I get a citation?",answer:"Cite.ai generates citations almost instantly. Simply enter your source information, and you'll have a properly formatted citation in seconds."},{question:"Which citation styles do you support?",answer:"We support all major citation styles including APA, MLA, Chicago, Harvard, and IEEE. We regularly update our formats to reflect the latest guidelines."},{question:"Can I save my citations?",answer:"At the moment, citations generated are not automatically saved within the tool. You should copy the generated citation and paste it where you need it. We are looking into options for saving and managing citations in future updates."},{question:"Is Cite.ai free to use?",answer:"Cite.ai offers both free and premium plans. The free plan includes basic citation generation, while premium plans include advanced features like batch processing and API access."}].map((l,c)=>s.jsxs(M.div,{className:"bg-background p-8 rounded-sm border",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:c*.1},viewport:{once:!0},children:[s.jsx("h3",{className:"text-xl font-semibold tracking-tight mb-4",children:l.question}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:l.answer})]},c))}),s.jsxs(M.div,{className:"mt-16 text-center",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:.4},viewport:{once:!0},children:[s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground mb-8",children:"Still have questions? Our team is ready to help."}),s.jsx(J,{size:"lg",className:"rounded-full",asChild:!0,children:s.jsxs("a",{href:"mailto:citeai@deepplaystudio.com",children:[s.jsx(qr,{className:"mr-2 h-4 w-4"}),"Email Our Support Team"]})})]})]})}),s.jsx(st,{})]})}function xc({url:e="https://academicite.com",name:t="Cite.ai - Academic Citation Generator",description:n="Professional academic citation generator supporting APA, MLA, Chicago, Harvard, and IEEE formats. Generate accurate citations from URLs, DOIs, and ISBNs."}){const r={"@context":"https://schema.org","@type":"WebSite",name:t,description:n,url:e,potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:e+"/?q={search_term_string}"},"query-input":"required name=search_term_string"},publisher:{"@type":"Organization",name:"Cite.ai",url:e,logo:{"@type":"ImageObject",url:e+"/app_icon_1.svg",width:512,height:512}},mainEntity:{"@type":"SoftwareApplication",name:"Cite.ai Citation Generator",applicationCategory:"EducationalApplication",operatingSystem:"Web Browser",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},featureList:["APA Citation Generator","MLA Citation Generator","Chicago Citation Generator","Harvard Citation Generator","IEEE Citation Generator","URL to Citation Conversion","DOI to Citation Conversion","ISBN to Citation Conversion"]},sameAs:[e+"/about",e+"/blog",e+"/learn"]};return s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}})}const kV=ac("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function pt({className:e,variant:t,...n}){return s.jsx("div",{className:re(kV({variant:t}),e),...n})}const EV={"@context":"https://schema.org","@type":"WebPage",name:"Pricing Plans - Cite.ai Citation Generator",description:"Choose the perfect plan for your citation needs. Free forever plan available with premium features coming soon.",url:"https://academicite.com/pricing",isPartOf:{"@type":"WebSite",url:"https://academicite.com/",name:"Cite.ai"}},TV=["Unlimited citation generation","All 5 major citation formats (APA, MLA, Chicago, Harvard, IEEE)","URL, DOI, and ISBN support","Instant citation from web pages","Project organization and management","Export and copy citations","Mobile-responsive design","No registration required"],AV=[{category:"Enhanced Productivity",features:["Bulk citation processing","Advanced citation editing tools","Citation style customization","Bibliography formatting options"]},{category:"Collaboration & Sharing",features:["Team project collaboration","Citation sharing and comments","Real-time collaborative editing","Permission management"]},{category:"Academic Integration",features:["University database integration","LMS (Canvas, Blackboard) plugins","Google Docs and Word add-ins","Reference manager sync"]},{category:"Advanced Analytics",features:["Citation usage analytics","Research trend insights","Source credibility scoring","Academic impact metrics"]}],PV=[{quote:"This citation generator has saved me countless hours during my PhD research. The accuracy is impressive.",author:"Dr. Sarah Chen",role:"PhD Student, Biology",rating:5},{quote:"Finally, a citation tool that actually works correctly with complex academic sources. Highly recommended!",author:"Prof. Michael Rodriguez",role:"History Professor",rating:5},{quote:"The interface is clean and intuitive. My students love using it for their research papers.",author:"Dr. Emily Watson",role:"English Literature",rating:5}];function _V(){const[e,t]=h.useState(""),[n,r]=h.useState(!1),i=a=>{a.preventDefault(),e.trim()&&(r(!0),t(""))};return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(xc,{url:"https://academicite.com/pricing",name:"Pricing Plans - Cite.ai",description:"Transparent pricing for academic citation tools"}),s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(EV)}}),s.jsx(rt,{}),s.jsx("section",{className:"pt-24 pb-16 bg-gradient-to-br from-background via-muted/30 to-background",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsxs(M.div,{className:"text-center max-w-4xl mx-auto",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},children:[s.jsxs("div",{className:"inline-flex items-center gap-2 bg-primary/10 text-primary rounded-full px-6 py-3 text-sm font-medium mb-8",children:[s.jsx(Fs,{className:"h-4 w-4"}),"Pricing Plans"]}),s.jsxs("h1",{className:"text-4xl sm:text-5xl md:text-6xl font-bold tracking-tight mb-6",children:["Free Forever,",s.jsx("span",{className:"block text-primary mt-2",children:"Premium Soon"})]}),s.jsx("p",{className:"text-xl text-muted-foreground leading-relaxed max-w-3xl mx-auto mb-8",children:"Start with our comprehensive free plan. Get notified when premium features launch to supercharge your academic workflow."}),s.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-muted-foreground",children:[s.jsx(he,{className:"h-4 w-4 text-green-500"}),s.jsx("span",{children:"No credit card required"})]})]})})}),s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Currently Available"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Everything you need for academic citation, completely free"})]}),s.jsx(M.div,{className:"max-w-2xl mx-auto",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:s.jsxs(pe,{className:"relative overflow-hidden border-2 border-primary/20",children:[s.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-primary to-blue-500"}),s.jsxs(_e,{className:"text-center pb-6",children:[s.jsx("div",{className:"flex items-center justify-center gap-2 mb-4",children:s.jsxs(pt,{variant:"secondary",className:"bg-green-100 text-green-700 border-green-200",children:[s.jsx(Wd,{className:"h-3 w-3 mr-1"}),"Active Now"]})}),s.jsx(De,{className:"text-3xl",children:"Free Plan"}),s.jsxs("div",{className:"flex items-center justify-center gap-2 mt-4",children:[s.jsx("span",{className:"text-4xl font-bold",children:"$0"}),s.jsx("span",{className:"text-muted-foreground",children:"forever"})]}),s.jsx("p",{className:"text-muted-foreground mt-2",children:"Complete citation solution for students and researchers"})]}),s.jsxs(we,{children:[s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-8",children:TV.map((a,o)=>s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(Wd,{className:"h-4 w-4 text-green-500 flex-shrink-0"}),s.jsx("span",{className:"text-sm",children:a})]},o))}),s.jsxs(J,{className:"w-full",size:"lg",children:["Start Using Free",s.jsx(fn,{className:"h-4 w-4 ml-2"})]})]})]})})]})}),s.jsx(je,{}),s.jsx("section",{className:"py-24 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Premium Features Coming Soon"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Enhanced productivity tools and advanced features for power users"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 max-w-6xl mx-auto",children:AV.map((a,o)=>s.jsx(M.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:o*.1},viewport:{once:!0},children:s.jsxs(pe,{className:"h-full",children:[s.jsx(_e,{children:s.jsxs(De,{className:"text-xl flex items-center gap-2",children:[s.jsx(Hd,{className:"h-5 w-5 text-yellow-500"}),a.category]})}),s.jsx(we,{children:s.jsx("ul",{className:"space-y-3",children:a.features.map((l,c)=>s.jsxs("li",{className:"flex items-center gap-3 text-sm",children:[s.jsx("div",{className:"w-2 h-2 rounded-full bg-primary flex-shrink-0"}),l]},c))})})]})},o))})]})}),s.jsx("section",{className:"py-24",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsx(M.div,{className:"max-w-2xl mx-auto text-center",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:s.jsxs(pe,{className:"p-8",children:[s.jsx("div",{className:"flex items-center justify-center mb-6",children:s.jsx("div",{className:"p-3 bg-primary/10 rounded-full",children:s.jsx(C4,{className:"h-6 w-6 text-primary"})})}),s.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Get Notified First"}),s.jsx("p",{className:"text-muted-foreground mb-8",children:"Be the first to know when premium features launch. Early subscribers get exclusive access and special pricing."}),n?s.jsxs("div",{className:"text-center",children:[s.jsx(he,{className:"h-12 w-12 text-green-500 mx-auto mb-4"}),s.jsx("h3",{className:"text-lg font-semibold mb-2",children:"You're on the list!"}),s.jsx("p",{className:"text-muted-foreground",children:"We'll notify you as soon as premium features are available."})]}):s.jsxs("form",{onSubmit:i,className:"space-y-4",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx(jt,{type:"email",placeholder:"Enter your email",value:e,onChange:a=>t(a.target.value),required:!0,className:"flex-1"}),s.jsxs(J,{type:"submit",children:[s.jsx(qr,{className:"h-4 w-4 mr-2"}),"Notify Me"]})]}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"We'll only email you about major updates. Unsubscribe anytime."})]})]})})})}),s.jsx(je,{}),s.jsx("section",{className:"py-24 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Loved by Researchers"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"See what academics and students say about our citation generator"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-6xl mx-auto",children:PV.map((a,o)=>s.jsx(M.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:o*.1},viewport:{once:!0},children:s.jsx(pe,{className:"h-full",children:s.jsxs(we,{className:"p-6",children:[s.jsx("div",{className:"flex items-center gap-1 mb-4",children:[...Array(a.rating)].map((l,c)=>s.jsx(Hd,{className:"h-4 w-4 fill-yellow-400 text-yellow-400"},c))}),s.jsxs("blockquote",{className:"text-sm leading-relaxed mb-4",children:['"',a.quote,'"']}),s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold text-sm",children:a.author}),s.jsx("div",{className:"text-xs text-muted-foreground",children:a.role})]})]})})},o))})]})}),s.jsx(st,{})]})}var $g="Collapsible",[RV,Bk]=On($g),[IV,Wg]=RV($g),$k=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...l}=e,[c=!1,d]=wr({prop:r,defaultProp:i,onChange:o});return s.jsx(IV,{scope:n,disabled:a,contentId:pr(),open:c,onOpenToggle:h.useCallback(()=>d(u=>!u),[d]),children:s.jsx(ue.div,{"data-state":Gg(c),"data-disabled":a?"":void 0,...l,ref:t})})});$k.displayName=$g;var Wk="CollapsibleTrigger",Hk=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=Wg(Wk,n);return s.jsx(ue.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Gg(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:ae(e.onClick,i.onOpenToggle)})});Hk.displayName=Wk;var Hg="CollapsibleContent",Gk=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Wg(Hg,e.__scopeCollapsible);return s.jsx(Ys,{present:n||i.open,children:({present:a})=>s.jsx(MV,{...r,ref:t,present:a})})});Gk.displayName=Hg;var MV=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...a}=e,o=Wg(Hg,n),[l,c]=h.useState(r),d=h.useRef(null),u=Fe(t,d),f=h.useRef(0),m=f.current,y=h.useRef(0),b=y.current,x=o.open||l,w=h.useRef(x),g=h.useRef(void 0);return h.useEffect(()=>{const p=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(p)},[]),Mt(()=>{const p=d.current;if(p){g.current=g.current||{transitionDuration:p.style.transitionDuration,animationName:p.style.animationName},p.style.transitionDuration="0s",p.style.animationName="none";const v=p.getBoundingClientRect();f.current=v.height,y.current=v.width,w.current||(p.style.transitionDuration=g.current.transitionDuration,p.style.animationName=g.current.animationName),c(r)}},[o.open,r]),s.jsx(ue.div,{"data-state":Gg(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!x,...a,ref:u,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:x&&i})});function Gg(e){return e?"open":"closed"}var LV=$k,DV=Hk,OV=Gk,Xr="Accordion",FV=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[qg,VV,zV]=Du(Xr),[yf,Rz]=On(Xr,[zV,Bk]),Kg=Bk(),qk=ie.forwardRef((e,t)=>{const{type:n,...r}=e,i=r,a=r;return s.jsx(qg.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?s.jsx(WV,{...a,ref:t}):s.jsx($V,{...i,ref:t})})});qk.displayName=Xr;var[Kk,UV]=yf(Xr),[Zk,BV]=yf(Xr,{collapsible:!1}),$V=ie.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[l,c]=wr({prop:n,defaultProp:r,onChange:i});return s.jsx(Kk,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:c,onItemClose:ie.useCallback(()=>a&&c(""),[a,c]),children:s.jsx(Zk,{scope:e.__scopeAccordion,collapsible:a,children:s.jsx(Qk,{...o,ref:t})})})}),WV=ie.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o=[],l]=wr({prop:n,defaultProp:r,onChange:i}),c=ie.useCallback(u=>l((f=[])=>[...f,u]),[l]),d=ie.useCallback(u=>l((f=[])=>f.filter(m=>m!==u)),[l]);return s.jsx(Kk,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:d,children:s.jsx(Zk,{scope:e.__scopeAccordion,collapsible:!0,children:s.jsx(Qk,{...a,ref:t})})})}),[HV,vf]=yf(Xr),Qk=ie.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:i,orientation:a="vertical",...o}=e,l=ie.useRef(null),c=Fe(l,t),d=VV(n),f=uf(i)==="ltr",m=ae(e.onKeyDown,y=>{var E;if(!FV.includes(y.key))return;const b=y.target,x=d().filter(A=>{var R;return!((R=A.ref.current)!=null&&R.disabled)}),w=x.findIndex(A=>A.ref.current===b),g=x.length;if(w===-1)return;y.preventDefault();let p=w;const v=0,j=g-1,N=()=>{p=w+1,p>j&&(p=v)},T=()=>{p=w-1,p{const{__scopeAccordion:n,value:r,...i}=e,a=vf(pu,n),o=UV(pu,n),l=Kg(n),c=pr(),d=r&&o.value.includes(r)||!1,u=a.disabled||e.disabled;return s.jsx(GV,{scope:n,open:d,disabled:u,triggerId:c,children:s.jsx(LV,{"data-orientation":a.orientation,"data-state":rE(d),...l,...i,ref:t,disabled:u,open:d,onOpenChange:f=>{f?o.onItemOpen(r):o.onItemClose(r)}})})});Yk.displayName=pu;var Jk="AccordionHeader",Xk=ie.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=vf(Xr,n),a=Zg(Jk,n);return s.jsx(ue.h3,{"data-orientation":i.orientation,"data-state":rE(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});Xk.displayName=Jk;var Np="AccordionTrigger",eE=ie.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=vf(Xr,n),a=Zg(Np,n),o=BV(Np,n),l=Kg(n);return s.jsx(qg.ItemSlot,{scope:n,children:s.jsx(DV,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...l,...r,ref:t})})});eE.displayName=Np;var tE="AccordionContent",nE=ie.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=vf(Xr,n),a=Zg(tE,n),o=Kg(n);return s.jsx(OV,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});nE.displayName=tE;function rE(e){return e?"open":"closed"}var qV=qk,KV=Yk,ZV=Xk,sE=eE,iE=nE;const QV=qV,aE=h.forwardRef(({className:e,...t},n)=>s.jsx(KV,{ref:n,className:re("border-b",e),...t}));aE.displayName="AccordionItem";const oE=h.forwardRef(({className:e,children:t,...n},r)=>s.jsx(ZV,{className:"flex",children:s.jsxs(sE,{ref:r,className:re("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,s.jsx(zu,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));oE.displayName=sE.displayName;const lE=h.forwardRef(({className:e,children:t,...n},r)=>s.jsx(iE,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:s.jsx("div",{className:re("pb-4 pt-0",e),children:t})}));lE.displayName=iE.displayName;const YV={"@context":"https://schema.org","@type":"WebPage",name:"Help Center - Cite.ai",description:"Find answers to frequently asked questions about using the Cite.ai academic citation generator, citation styles, and troubleshooting.",url:"https://academicite.com/help",isPartOf:{"@type":"WebSite",url:"https://academicite.com/",name:"Cite.ai"}},Ow=[{question:"How do I generate a citation?",answer:"Simply choose your desired citation style (e.g., APA, MLA), then paste a URL, DOI, or ISBN into the input field, or manually enter the source details. Click 'Generate Citation' to get your result."},{question:"What citation styles do you support?",answer:"We currently support APA 7th Edition, MLA 9th Edition, Chicago 17th Edition, Harvard, and IEEE citation styles. We are continuously working to add more styles."},{question:"Can I cite sources other than websites?",answer:"Yes! You can cite various source types including academic journals (using DOI), books (using ISBN), and more by manually entering the details if automatic extraction is not available."},{question:"Is registration required to use Cite.ai?",answer:"No, registration is not required to use the basic citation generation features. You can generate citations instantly. An account may be required for advanced features like saving citation history across devices in the future."},{question:"Why is the generated citation sometimes incomplete?",answer:"The accuracy of automatically generated citations depends heavily on the quality and availability of metadata associated with the URL, DOI, or ISBN. If metadata is missing or incorrect, the citation may be incomplete. Always review generated citations for accuracy and completeness."},{question:"How can I save my generated citations?",answer:"Currently, the tool does not save generated citations automatically. Please copy and paste the generated citation into your document or bibliography manager. We are considering features for saving and managing bibliographies in the future."},{question:"What if I find an error in a citation?",answer:"While we strive for accuracy, errors can occur due to source metadata issues. We recommend double-checking generated citations against style guidelines. If you notice a consistent error pattern, please contact us with details so we can investigate and improve the tool."},{question:"Is Cite.ai free to use?",answer:"Yes, the core citation generation functionality of Cite.ai is currently free to use. We may introduce premium features or plans in the future."}];function JV(){const[e,t]=h.useState("");h.useState("getting-started");const n=Ow.filter(i=>i.question.toLowerCase().includes(e.toLowerCase())||i.answer.toLowerCase().includes(e.toLowerCase())),r=[{id:"getting-started",title:"Getting Started",icon:Be,description:"Learn the basics of using Cite.ai"},{id:"citation-styles",title:"Citation Styles",icon:Ke,description:"Understanding different citation formats"},{id:"account",title:"Account Management",icon:q4,description:"Managing your account and settings"},{id:"troubleshooting",title:"Troubleshooting",icon:Wu,description:"Common issues and solutions"}];return s.jsxs("div",{className:"min-h-screen flex flex-col",children:[s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(YV)}}),s.jsxs("section",{className:"min-h-screen bg-background",children:[s.jsx(rt,{}),s.jsx("div",{className:"container mx-auto px-6 py-16",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 min-h-[80vh] items-center",children:[s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsxs("h1",{className:"text-6xl lg:text-8xl font-semibold tracking-tight leading-none",children:["Help",s.jsx("br",{}),s.jsx("span",{className:"text-muted-foreground",children:"Center"})]}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-lg",children:"Find answers to frequently asked questions and get the support you need."})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"relative",children:[s.jsx(hr,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground h-4 w-4"}),s.jsx(jt,{placeholder:"Search for help...",value:e,onChange:i=>t(i.target.value),className:"pl-10 rounded-full"})]}),s.jsxs(J,{size:"lg",className:"rounded-full px-8",children:["Browse Topics",s.jsx(fn,{className:"ml-2 h-4 w-4"})]})]})]}),s.jsx("div",{className:"bg-muted rounded-sm p-12 flex items-center justify-center",children:s.jsxs("div",{className:"text-center space-y-6",children:[s.jsx(Uu,{className:"h-16 w-16 mx-auto text-muted-foreground"}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"text-3xl font-semibold",children:Ow.length}),s.jsx("div",{className:"text-muted-foreground",children:"Help Articles"})]})]})})]})})]}),s.jsxs("main",{className:"flex-grow",children:[s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Browse by Topic"}),s.jsx("p",{className:"text-xl text-muted-foreground",children:"Find answers organized by category"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:r.map(i=>s.jsx(pe,{className:"border rounded-sm hover:border-primary/50 transition-colors cursor-pointer",children:s.jsxs(_e,{className:"text-center space-y-4",children:[s.jsx(i.icon,{className:"h-12 w-12 mx-auto text-primary"}),s.jsx(De,{className:"text-xl font-semibold",children:i.title}),s.jsx(fo,{className:"text-muted-foreground",children:i.description})]})},i.id))})]})}),s.jsx("div",{className:"container mx-auto px-6",children:s.jsx(je,{})}),s.jsx("section",{className:"py-24 bg-muted",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Frequently Asked Questions"}),s.jsx("p",{className:"text-xl text-muted-foreground",children:"Quick answers to common questions"})]}),s.jsxs("div",{className:"max-w-4xl mx-auto",children:[s.jsx("div",{className:"bg-background border rounded-sm",children:s.jsx(QV,{type:"single",collapsible:!0,className:"w-full",children:n.map((i,a)=>s.jsxs(aE,{value:`item-${a}`,children:[s.jsx(oE,{className:"px-6 py-6 text-left font-semibold",children:i.question}),s.jsx(lE,{className:"px-6 pb-6 text-muted-foreground leading-relaxed",children:i.answer})]},a))})}),n.length===0&&e&&s.jsxs("div",{className:"text-center py-16",children:[s.jsx(hr,{className:"h-16 w-16 mx-auto text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-xl font-semibold mb-2",children:"No results found"}),s.jsx("p",{className:"text-muted-foreground",children:"Try searching with different keywords or browse our help topics above."})]})]})]})}),s.jsx("div",{className:"container mx-auto px-6",children:s.jsx(je,{})}),s.jsx("section",{className:"py-24",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight",children:"Still Need Help?"}),s.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"Can't find what you're looking for? Our support team is here to help you get the most out of Cite.ai."}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx(qr,{className:"h-6 w-6 text-primary mt-1 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-1",children:"Email Support"}),s.jsx("p",{className:"text-muted-foreground",children:"Get detailed help via email within 24 hours."})]})]}),s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx(F4,{className:"h-6 w-6 text-primary mt-1 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-1",children:"Live Chat"}),s.jsx("p",{className:"text-muted-foreground",children:"Chat with our support team in real-time during business hours."})]})]}),s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx(Be,{className:"h-6 w-6 text-primary mt-1 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-1",children:"Documentation"}),s.jsx("p",{className:"text-muted-foreground",children:"Comprehensive guides and tutorials for advanced features."})]})]})]})]}),s.jsxs("div",{className:"bg-muted rounded-sm p-8",children:[s.jsx("h3",{className:"text-2xl font-semibold mb-6",children:"Contact Support"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium mb-2",children:"Subject"}),s.jsx(jt,{placeholder:"What can we help you with?",className:"rounded-full"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium mb-2",children:"Message"}),s.jsx("textarea",{className:"w-full p-3 border rounded-sm resize-none h-32",placeholder:"Describe your issue or question..."})]}),s.jsxs(J,{className:"rounded-full w-full",children:["Send Message",s.jsx(qr,{className:"ml-2 h-4 w-4"})]})]})]})]})})})]}),s.jsx(st,{})]})}const XV={"@context":"https://schema.org","@type":"WebPage",name:"Cookie Policy - Cite.ai",description:"Learn about how Cite.ai uses cookies and similar technologies to improve your experience on our academic citation generator.",url:"https://academicite.com/cookies",isPartOf:{"@type":"WebSite",url:"https://academicite.com/",name:"Cite.ai"}},e8=[{icon:Wu,title:"Essential Cookies",content:"These cookies are necessary for the website to function properly. They enable basic features like page navigation, form submissions, and access to secure areas of the website."},{icon:E4,title:"Analytics Cookies",content:"We use analytics cookies to understand how visitors interact with our website. This helps us improve our service quality and user experience through usage pattern analysis."},{icon:zh,title:"Functional Cookies",content:"These cookies enable enhanced functionality and personalization, such as remembering your citation style preferences and providing improved user interface features."},{icon:Hu,title:"Security Cookies",content:"Security cookies help protect against fraudulent activity and ensure the integrity of our service. They help us detect and prevent security threats."},{icon:oc,title:"Third-Party Cookies",content:"Some cookies are placed by third-party services that appear on our pages. We carefully select partners and ensure they meet our privacy standards."},{icon:SN,title:"Cookie Management",content:"You can control and manage cookies through your browser settings. Most browsers allow you to refuse cookies or alert you when cookies are being sent."}],t8=["No personal data sold through cookie tracking","Essential cookies only for core functionality","Analytics data aggregated and anonymized","Full control through browser settings","Transparent cookie usage practices"];function n8(){return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(XV)}}),s.jsx(rt,{}),s.jsx("section",{className:"pt-24 pb-16 bg-gradient-to-br from-background via-muted/30 to-background",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsxs(M.div,{className:"text-center max-w-4xl mx-auto",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},children:[s.jsxs("div",{className:"inline-flex items-center gap-2 bg-primary/10 text-primary rounded-full px-6 py-3 text-sm font-medium mb-8",children:[s.jsx(zh,{className:"h-4 w-4"}),"Cookie Policy"]}),s.jsxs("h1",{className:"text-4xl sm:text-5xl md:text-6xl font-bold tracking-tight mb-6",children:["Cookie",s.jsx("span",{className:"block text-primary mt-2",children:"Policy"})]}),s.jsx("p",{className:"text-xl text-muted-foreground leading-relaxed max-w-3xl mx-auto mb-8",children:"Learn about how we use cookies and similar technologies to improve your experience on our website."}),s.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-muted-foreground",children:[s.jsx(Ii,{className:"h-4 w-4"}),s.jsx("span",{children:"Last Updated: April 18, 2025"})]})]})})}),s.jsx("section",{className:"py-16 bg-muted/50",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-12",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Cookie Usage Summary"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Key facts about how we use cookies on our website"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 max-w-5xl mx-auto",children:t8.map((e,t)=>s.jsxs(M.div,{className:"flex items-center gap-3 bg-background border rounded-lg p-4",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:t*.1},viewport:{once:!0},children:[s.jsx(he,{className:"h-5 w-5 text-green-500 flex-shrink-0"}),s.jsx("span",{className:"text-sm font-medium",children:e})]},t))})]})}),s.jsx("section",{className:"py-24",children:s.jsx("div",{className:"container mx-auto px-6 max-w-6xl",children:s.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:e8.map((e,t)=>s.jsx(M.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:t*.1},viewport:{once:!0},children:s.jsxs(pe,{className:"h-full hover:shadow-lg transition-shadow duration-300",children:[s.jsx(_e,{children:s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:"p-3 bg-primary/10 rounded-lg",children:s.jsx(e.icon,{className:"h-6 w-6 text-primary"})}),s.jsx(De,{className:"text-xl",children:e.title})]})}),s.jsx(we,{children:s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.content})})]})},t))})})}),s.jsx(je,{}),s.jsx("section",{className:"py-24 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Complete Cookie Policy"}),s.jsx("p",{className:"text-muted-foreground",children:"Detailed information about our cookie practices"})]}),s.jsx(M.div,{className:"prose prose-gray max-w-none dark:prose-invert",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:s.jsx(pe,{className:"p-8",children:s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{children:[s.jsxs("h3",{className:"text-2xl font-semibold mb-4 flex items-center gap-3",children:[s.jsx(SN,{className:"h-6 w-6 text-primary"}),"Introduction"]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:'This Cookie Policy explains how Cite.ai ("we", "us", and "our") uses cookies and similar technologies to recognize you when you visit our website at cite.ai ("Website"). It explains what these technologies are and why we use them, as well as your rights to control our use of them.'}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"In some cases, we may use cookies to collect personal information, or that becomes personal information if we combine it with other information."})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-2xl font-semibold mb-4 flex items-center gap-3",children:[s.jsx(zh,{className:"h-6 w-6 text-primary"}),"What Are Cookies?"]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"Cookies are small data files that are placed on your computer or mobile device when you visit a website. Cookies are widely used by website owners to make their websites work, or to work more efficiently, as well as to provide reporting information."}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:'Cookies set by the website owner (in this case, Cite.ai) are called "first-party cookies." Cookies set by parties other than the website owner are called "third-party cookies."'})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-2xl font-semibold mb-4 flex items-center gap-3",children:[s.jsx(Wu,{className:"h-6 w-6 text-primary"}),"How We Use Cookies"]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:'We use first-party and third-party cookies for several reasons. Some cookies are required for technical reasons for our Website to operate, and we refer to these as "essential" or "strictly necessary" cookies.'}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Other cookies enable us to track and target the interests of our users to enhance the experience on our Website. Third parties serve cookies through our Website for analytics and other purposes."})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-2xl font-semibold mb-4 flex items-center gap-3",children:[s.jsx(Hu,{className:"h-6 w-6 text-primary"}),"Managing Cookies"]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"You have the right to decide whether to accept or reject cookies. You can exercise your cookie rights by setting your preferences in your browser settings. Most web browsers automatically accept cookies, but you can usually modify your browser setting to decline cookies if you prefer."}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"If you choose to decline cookies, you may not be able to fully experience the interactive features of our services or websites you visit. You can find more information about cookies at allaboutcookies.org."})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-2xl font-semibold mb-4 flex items-center gap-3",children:[s.jsx(Ii,{className:"h-6 w-6 text-primary"}),"Updates to This Policy"]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"We may update this Cookie Policy from time to time to reflect changes in our practices or for other operational, legal, or regulatory reasons. Please re-visit this Cookie Policy regularly to stay informed about our use of cookies and related technologies."})]})]})})})]})}),s.jsx(st,{})]})}const cE=h.forwardRef(({className:e,...t},n)=>s.jsx("div",{className:"relative w-full overflow-auto",children:s.jsx("table",{ref:n,className:re("w-full caption-bottom text-sm",e),...t})}));cE.displayName="Table";const dE=h.forwardRef(({className:e,...t},n)=>s.jsx("thead",{ref:n,className:re("[&_tr]:border-b",e),...t}));dE.displayName="TableHeader";const uE=h.forwardRef(({className:e,...t},n)=>s.jsx("tbody",{ref:n,className:re("[&_tr:last-child]:border-0",e),...t}));uE.displayName="TableBody";const r8=h.forwardRef(({className:e,...t},n)=>s.jsx("tfoot",{ref:n,className:re("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));r8.displayName="TableFooter";const Cp=h.forwardRef(({className:e,...t},n)=>s.jsx("tr",{ref:n,className:re("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Cp.displayName="TableRow";const na=h.forwardRef(({className:e,...t},n)=>s.jsx("th",{ref:n,className:re("h-16 px-6 text-left align-middle font-semibold text-foreground [&:has([role=checkbox])]:pr-0",e),...t}));na.displayName="TableHead";const ra=h.forwardRef(({className:e,...t},n)=>s.jsx("td",{ref:n,className:re("p-6 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));ra.displayName="TableCell";const s8=h.forwardRef(({className:e,...t},n)=>s.jsx("caption",{ref:n,className:re("mt-4 text-sm text-muted-foreground",e),...t}));s8.displayName="TableCaption";const i8={"@context":"https://schema.org","@type":"WebPage",name:"Careers at Cite.ai - Join Our Team",description:"Explore career opportunities at Cite.ai. Join our mission to simplify academic citations and build innovative tools for students and researchers.",url:"https://academicite.com/careers",isPartOf:{"@type":"WebSite",url:"https://academicite.com/",name:"Cite.ai"}},Fw=[{title:"Senior Frontend Engineer",department:"Engineering",location:"Remote (UK Preferred)",type:"Full-time",description:"Lead the development of our user-facing citation tools and features using React.",link:"#"},{title:"Backend Engineer",department:"Engineering",location:"Remote",type:"Full-time",description:"Build and scale the APIs and services powering Cite.ai, focusing on performance and reliability.",link:"#"},{title:"UX/UI Designer",department:"Design",location:"Remote",type:"Full-time",description:"Shape the future of academic tools by designing intuitive and beautiful interfaces.",link:"#"},{title:"Content Writer",department:"Marketing",location:"Remote",type:"Part-time",description:"Create engaging content related to academic writing, research, and citation practices.",link:"#"}];function a8(){const e=[{id:"innovation",icon:$u,title:"Innovation",description:"We push boundaries and embrace new ideas to solve challenging problems."},{id:"growth",icon:L4,title:"Growth Mindset",description:"We believe in continuous learning and personal development, embracing challenges as opportunities."},{id:"collaboration",icon:Wt,title:"Collaboration",description:"We work together across disciplines, leveraging diverse perspectives to create better solutions."},{id:"impact",icon:Fs,title:"Impact-Driven",description:"We focus on creating meaningful change in academic research through technology."}];return s.jsxs("div",{className:"min-h-screen flex flex-col",children:[s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(i8)}}),s.jsxs("section",{className:"min-h-screen bg-background",children:[s.jsx(rt,{}),s.jsx("div",{className:"container mx-auto px-6 py-16",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 min-h-[80vh] items-center",children:[s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsxs("h1",{className:"text-6xl lg:text-8xl font-semibold tracking-tight leading-none",children:["Join",s.jsx("br",{}),s.jsx("span",{className:"text-muted-foreground",children:"Our Team"})]}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-lg",children:"Help us build the future of academic citations and make research more accessible to everyone."})]}),s.jsxs(J,{size:"lg",className:"rounded-full px-8",children:["View Open Positions",s.jsx(fn,{className:"ml-2 h-4 w-4"})]})]}),s.jsx("div",{className:"bg-muted rounded-sm p-12 flex items-center justify-center",children:s.jsxs("div",{className:"text-center space-y-6",children:[s.jsx(wN,{className:"h-16 w-16 mx-auto text-muted-foreground"}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"text-3xl font-semibold",children:Fw.length}),s.jsx("div",{className:"text-muted-foreground",children:"Open Positions"})]})]})})]})})]}),s.jsxs("main",{className:"flex-grow",children:[s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Our Values"}),s.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"The principles that guide how we work and build together"})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-12",children:e.map(t=>s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx(t.icon,{className:"h-12 w-12 text-primary mx-auto"}),s.jsx("h3",{className:"text-xl font-semibold",children:t.title}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:t.description})]},t.id))})]})}),s.jsx("div",{className:"container mx-auto px-6",children:s.jsx(je,{})}),s.jsx("section",{className:"py-24 bg-muted",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Open Positions"}),s.jsx("p",{className:"text-xl text-muted-foreground",children:"Join our growing team and help shape the future of academic research"})]}),s.jsx("div",{className:"bg-background border rounded-sm overflow-hidden",children:s.jsxs(cE,{children:[s.jsx(dE,{children:s.jsxs(Cp,{children:[s.jsx(na,{className:"font-semibold",children:"Position"}),s.jsx(na,{className:"font-semibold",children:"Department"}),s.jsx(na,{className:"font-semibold",children:"Location"}),s.jsx(na,{className:"font-semibold",children:"Type"}),s.jsx(na,{className:"font-semibold"})]})}),s.jsx(uE,{children:Fw.map((t,n)=>s.jsxs(Cp,{children:[s.jsx(ra,{children:s.jsxs("div",{className:"space-y-1",children:[s.jsx("div",{className:"font-semibold",children:t.title}),s.jsx("div",{className:"text-sm text-muted-foreground",children:t.description})]})}),s.jsx(ra,{className:"text-muted-foreground",children:t.department}),s.jsx(ra,{children:s.jsxs("div",{className:"flex items-center text-muted-foreground",children:[s.jsx(Mx,{className:"h-4 w-4 mr-1"}),t.location]})}),s.jsx(ra,{children:s.jsxs("div",{className:"flex items-center text-muted-foreground",children:[s.jsx(Hi,{className:"h-4 w-4 mr-1"}),t.type]})}),s.jsx(ra,{children:s.jsx(J,{variant:"outline",size:"sm",className:"rounded-full",children:"Apply"})})]},n))})]})})]})}),s.jsx("div",{className:"container mx-auto px-6",children:s.jsx(je,{})}),s.jsx("section",{className:"py-24",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight",children:"Why Join Cite.ai?"}),s.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"We're building something meaningful - tools that help researchers and students focus on what matters most: their work. Join us in creating technology that makes academic research more accessible and efficient."}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx(B4,{className:"h-6 w-6 text-primary mt-1 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-1",children:"Fast-Growing Startup"}),s.jsx("p",{className:"text-muted-foreground",children:"Be part of a rapidly expanding team with significant growth opportunities."})]})]}),s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx(Wt,{className:"h-6 w-6 text-primary mt-1 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-1",children:"Remote-First Culture"}),s.jsx("p",{className:"text-muted-foreground",children:"Work from anywhere with flexible hours and a focus on results, not location."})]})]}),s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx(Cr,{className:"h-6 w-6 text-primary mt-1 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-1",children:"Learning & Development"}),s.jsx("p",{className:"text-muted-foreground",children:"Continuous learning opportunities with mentorship and skill development programs."})]})]})]})]}),s.jsxs("div",{className:"bg-muted rounded-sm p-8",children:[s.jsx("h3",{className:"text-2xl font-semibold mb-6",children:"Ready to Apply?"}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("p",{className:"text-muted-foreground",children:"Don't see a perfect match? We're always interested in hearing from talented individuals who share our mission."}),s.jsxs(J,{className:"rounded-full w-full",children:["Send Us Your Resume",s.jsx(qr,{className:"ml-2 h-4 w-4"})]})]})]})]})})})]}),s.jsx(st,{})]})}var Qg="Dialog",[fE,Iz]=On(Qg),[o8,nr]=fE(Qg),mE=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,l=h.useRef(null),c=h.useRef(null),[d=!1,u]=wr({prop:r,defaultProp:i,onChange:a});return s.jsx(o8,{scope:t,triggerRef:l,contentRef:c,contentId:pr(),titleId:pr(),descriptionId:pr(),open:d,onOpenChange:u,onOpenToggle:h.useCallback(()=>u(f=>!f),[u]),modal:o,children:n})};mE.displayName=Qg;var hE="DialogTrigger",pE=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=nr(hE,n),a=Fe(t,i.triggerRef);return s.jsx(ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Xg(i.open),...r,ref:a,onClick:ae(e.onClick,i.onOpenToggle)})});pE.displayName=hE;var Yg="DialogPortal",[l8,xE]=fE(Yg,{forceMount:void 0}),gE=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=nr(Yg,t);return s.jsx(l8,{scope:t,forceMount:n,children:h.Children.map(r,o=>s.jsx(Ys,{present:n||a.open,children:s.jsx(Ou,{asChild:!0,container:i,children:o})}))})};gE.displayName=Yg;var xu="DialogOverlay",yE=h.forwardRef((e,t)=>{const n=xE(xu,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=nr(xu,e.__scopeDialog);return a.modal?s.jsx(Ys,{present:r||a.open,children:s.jsx(d8,{...i,ref:t})}):null});yE.displayName=xu;var c8=to("DialogOverlay.RemoveScroll"),d8=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=nr(xu,n);return s.jsx(Dg,{as:c8,allowPinchZoom:!0,shards:[i.contentRef],children:s.jsx(ue.div,{"data-state":Xg(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),zi="DialogContent",vE=h.forwardRef((e,t)=>{const n=xE(zi,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=nr(zi,e.__scopeDialog);return s.jsx(Ys,{present:r||a.open,children:a.modal?s.jsx(u8,{...i,ref:t}):s.jsx(f8,{...i,ref:t})})});vE.displayName=zi;var u8=h.forwardRef((e,t)=>{const n=nr(zi,e.__scopeDialog),r=h.useRef(null),i=Fe(t,n.contentRef,r);return h.useEffect(()=>{const a=r.current;if(a)return _S(a)},[]),s.jsx(wE,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(e.onCloseAutoFocus,a=>{var o;a.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:ae(e.onPointerDownOutside,a=>{const o=a.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&a.preventDefault()}),onFocusOutside:ae(e.onFocusOutside,a=>a.preventDefault())})}),f8=h.forwardRef((e,t)=>{const n=nr(zi,e.__scopeDialog),r=h.useRef(!1),i=h.useRef(!1);return s.jsx(wE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,a),a.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),a.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=a.target;((d=n.triggerRef.current)==null?void 0:d.contains(o))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}})}),wE=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,l=nr(zi,n),c=h.useRef(null),d=Fe(t,c);return ES(),s.jsxs(s.Fragment,{children:[s.jsx(Lg,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:s.jsx(sc,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Xg(l.open),...o,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(m8,{titleId:l.titleId}),s.jsx(p8,{contentRef:c,descriptionId:l.descriptionId})]})]})}),Jg="DialogTitle",bE=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=nr(Jg,n);return s.jsx(ue.h2,{id:i.titleId,...r,ref:t})});bE.displayName=Jg;var jE="DialogDescription",NE=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=nr(jE,n);return s.jsx(ue.p,{id:i.descriptionId,...r,ref:t})});NE.displayName=jE;var CE="DialogClose",SE=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=nr(CE,n);return s.jsx(ue.button,{type:"button",...r,ref:t,onClick:ae(e.onClick,()=>i.onOpenChange(!1))})});SE.displayName=CE;function Xg(e){return e?"open":"closed"}var kE="DialogTitleWarning",[Mz,EE]=I_(kE,{contentName:zi,titleName:Jg,docsSlug:"dialog"}),m8=({titleId:e})=>{const t=EE(kE),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},h8="DialogDescriptionWarning",p8=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${EE(h8).contentName}}.`;return h.useEffect(()=>{var a;const i=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},x8=mE,g8=pE,y8=gE,TE=yE,AE=vE,PE=bE,_E=NE,v8=SE;const Vw=x8,w8=g8,b8=y8,RE=h.forwardRef(({className:e,...t},n)=>s.jsx(TE,{ref:n,className:re("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));RE.displayName=TE.displayName;const Sp=h.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(b8,{children:[s.jsx(RE,{}),s.jsxs(AE,{ref:r,className:re("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,s.jsxs(v8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[s.jsx(qu,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Sp.displayName=AE.displayName;const kp=({className:e,...t})=>s.jsx("div",{className:re("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});kp.displayName="DialogHeader";const Ep=h.forwardRef(({className:e,...t},n)=>s.jsx(PE,{ref:n,className:re("text-lg font-semibold leading-none tracking-tight",e),...t}));Ep.displayName=PE.displayName;const Tp=h.forwardRef(({className:e,...t},n)=>s.jsx(_E,{ref:n,className:re("text-sm text-muted-foreground",e),...t}));Tp.displayName=_E.displayName;const j8=Le.object({name:Le.string().min(1,"Project name is required"),moduleName:Le.string().min(1,"Module name is required"),moduleCode:Le.string().min(1,"Module code is required"),referenceStyle:Le.enum(["apa","mla","chicago","harvard","ieee"]),description:Le.string().optional()}),N8=[{id:"dissertation",name:"PhD Dissertation",icon:Cr,description:"Comprehensive research project with extensive citations",template:{name:"PhD Dissertation",moduleName:"Research Methodology",moduleCode:"PhD001",referenceStyle:"harvard",description:"Original research contributing new knowledge to the field with comprehensive literature review and extensive citations."},color:"from-purple-500 to-indigo-600"},{id:"research-paper",name:"Research Paper",icon:CN,description:"Academic research with primary and secondary sources",template:{name:"Research Paper",moduleName:"Advanced Studies",moduleCode:"RES101",referenceStyle:"apa",description:"In-depth analysis of research topic with peer-reviewed sources and empirical data."},color:"from-blue-500 to-cyan-600"},{id:"essay",name:"Academic Essay",icon:Ke,description:"Structured argument with supporting evidence",template:{name:"Academic Essay",moduleName:"Critical Analysis",moduleCode:"ESS201",referenceStyle:"mla",description:"Analytical essay exploring key themes with supporting academic literature."},color:"from-green-500 to-emerald-600"},{id:"literature-review",name:"Literature Review",icon:Be,description:"Comprehensive review of existing research",template:{name:"Literature Review",moduleName:"Research Methods",moduleCode:"LIT301",referenceStyle:"chicago",description:"Systematic review and synthesis of current research in the field."},color:"from-orange-500 to-red-600"},{id:"case-study",name:"Case Study",icon:$u,description:"Detailed analysis of specific examples",template:{name:"Case Study Analysis",moduleName:"Applied Research",moduleCode:"CASE401",referenceStyle:"apa",description:"In-depth examination of real-world scenarios with theoretical framework application."},color:"from-yellow-500 to-orange-600"},{id:"group-project",name:"Group Project",icon:Wt,description:"Collaborative academic assignment",template:{name:"Group Research Project",moduleName:"Collaborative Studies",moduleCode:"GRP501",referenceStyle:"ieee",description:"Collaborative research project with shared citations and coordinated references."},color:"from-pink-500 to-rose-600"},{id:"business-report",name:"Business Report",icon:bN,description:"Professional business analysis",template:{name:"Business Analysis Report",moduleName:"Business Strategy",moduleCode:"BUS601",referenceStyle:"harvard",description:"Strategic business analysis with industry reports and financial data citations."},color:"from-slate-500 to-gray-600"},{id:"policy-brief",name:"Policy Brief",icon:wN,description:"Policy analysis and recommendations",template:{name:"Policy Analysis Brief",moduleName:"Public Policy",moduleCode:"POL701",referenceStyle:"chicago",description:"Evidence-based policy recommendations with government and academic sources."},color:"from-teal-500 to-blue-600"}];function C8(){const[e,t]=h.useState(!1),[n,r]=h.useState(!1);h.useState(null);const{toast:i}=Wi(),a=Lu(),o=Rg({resolver:Ig(j8),defaultValues:{name:"",moduleName:"",moduleCode:"",referenceStyle:"apa",description:""}}),{data:l=[],isLoading:c}=$d({queryKey:["/api/projects"]}),d=Aa({mutationFn:async p=>(await Mr("POST","/api/projects",p)).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["/api/projects"]}),t(!1),o.reset(),i({title:"Success",description:"Project created successfully!"})},onError:p=>{i({title:"Error",description:p.message||"Failed to create project",variant:"destructive"})}}),u=Aa({mutationFn:async p=>Mr("DELETE",`/api/projects/${p}`),onSuccess:()=>{a.invalidateQueries({queryKey:["/api/projects"]}),i({title:"Success",description:"Project deleted successfully!"})},onError:p=>{i({title:"Error",description:p.message||"Failed to delete project",variant:"destructive"})}}),f=Aa({mutationFn:async p=>(await(await Mr("GET",`/api/projects/${p}/copy-references`)).json()).references,onSuccess:p=>{navigator.clipboard.writeText(p),i({title:"Success",description:"References copied to clipboard!"})},onError:p=>{i({title:"Error",description:p.message||"Failed to copy references",variant:"destructive"})}}),m=p=>{d.mutate(p)},y=p=>{confirm(`Are you sure you want to delete "${p.name}"? This will also delete all citations in this project.`)&&u.mutate(p.id)},b=p=>{f.mutate(p.id)},x=p=>{o.reset(p.template),r(!1),t(!0)},w=p=>p.toUpperCase(),g=p=>new Date(p).toLocaleDateString();return c?s.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-blue-50",children:s.jsx("div",{className:"container mx-auto px-4 py-8",children:s.jsxs("div",{className:"text-center py-12",children:[s.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary mx-auto"}),s.jsx("p",{className:"mt-4 text-gray-600",children:"Loading projects..."})]})})}):s.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-blue-50",children:s.jsxs("div",{className:"container mx-auto px-4 py-8",children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6 bg-gradient-to-r from-gray-900 via-primary to-purple-600 bg-clip-text text-transparent",children:"Academic Projects"}),s.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto mb-8",children:"Organize your assignments by modules and manage citations with automatic alphabetical sorting for easy reference lists."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsxs(Vw,{open:e,onOpenChange:t,children:[s.jsx(w8,{asChild:!0,children:s.jsxs(J,{size:"lg",className:"bg-gradient-to-r from-primary to-purple-600 hover:from-primary/90 hover:to-purple-600/90",children:[s.jsx(AN,{className:"mr-2 h-5 w-5"}),"Create Custom Project"]})}),s.jsxs(Sp,{className:"sm:max-w-[500px]",children:[s.jsxs(kp,{children:[s.jsx(Ep,{children:"Create New Academic Project"}),s.jsx(Tp,{children:"Set up a new project for your assignment. Choose your reference style and module details."})]}),s.jsx(Mg,{...o,children:s.jsxs("form",{onSubmit:o.handleSubmit(m),className:"space-y-4",children:[s.jsx(gt,{control:o.control,name:"name",render:({field:p})=>s.jsxs(mt,{children:[s.jsx(yt,{children:"Project Name"}),s.jsx(vt,{children:s.jsx(jt,{placeholder:"e.g., Final Essay Assignment",...p})}),s.jsx(wt,{})]})}),s.jsx(gt,{control:o.control,name:"moduleName",render:({field:p})=>s.jsxs(mt,{children:[s.jsx(yt,{children:"Module Name"}),s.jsx(vt,{children:s.jsx(jt,{placeholder:"e.g., Introduction to Psychology",...p})}),s.jsx(wt,{})]})}),s.jsx(gt,{control:o.control,name:"moduleCode",render:({field:p})=>s.jsxs(mt,{children:[s.jsx(yt,{children:"Module Code"}),s.jsx(vt,{children:s.jsx(jt,{placeholder:"e.g., PSY101",...p})}),s.jsx(wt,{})]})}),s.jsx(gt,{control:o.control,name:"referenceStyle",render:({field:p})=>s.jsxs(mt,{children:[s.jsx(yt,{children:"Reference Style"}),s.jsxs(mi,{onValueChange:p.onChange,defaultValue:p.value,children:[s.jsx(vt,{children:s.jsx(Cs,{children:s.jsx(hi,{placeholder:"Select reference style"})})}),s.jsxs(Ss,{children:[s.jsx(Se,{value:"apa",children:"APA"}),s.jsx(Se,{value:"mla",children:"MLA"}),s.jsx(Se,{value:"chicago",children:"Chicago"}),s.jsx(Se,{value:"harvard",children:"Harvard"}),s.jsx(Se,{value:"ieee",children:"IEEE"})]})]}),s.jsx(wt,{})]})}),s.jsx(gt,{control:o.control,name:"description",render:({field:p})=>s.jsxs(mt,{children:[s.jsx(yt,{children:"Description (Optional)"}),s.jsx(vt,{children:s.jsx(gf,{placeholder:"Brief description of the assignment...",className:"resize-none",...p})}),s.jsx(wt,{})]})}),s.jsxs("div",{className:"flex justify-end space-x-2 pt-4",children:[s.jsx(J,{type:"button",variant:"outline",onClick:()=>t(!1),children:"Cancel"}),s.jsx(J,{type:"submit",disabled:d.isPending,className:"bg-gradient-to-r from-primary to-purple-600",children:d.isPending?"Creating...":"Create Project"})]})]})})]})]}),s.jsxs(J,{size:"lg",variant:"outline",onClick:()=>r(!0),className:"border-2 border-primary text-primary hover:bg-primary hover:text-white",children:[s.jsx(Cr,{className:"mr-2 h-5 w-5"}),"Browse Templates"]})]})]}),l.length===0?s.jsxs("div",{className:"text-center py-12",children:[s.jsx(R4,{className:"h-16 w-16 text-gray-400 mx-auto mb-4"}),s.jsx("h3",{className:"text-xl font-semibold text-gray-600 mb-2",children:"No projects yet"}),s.jsx("p",{className:"text-gray-500 mb-6",children:"Create your first academic project to get started organizing your citations."})]}):s.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:l.map(p=>s.jsxs(pe,{className:"hover:shadow-lg transition-shadow border-0 shadow-md bg-white/80 backdrop-blur-sm",children:[s.jsx(_e,{className:"pb-3",children:s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{className:"flex-1",children:[s.jsx(De,{className:"text-lg mb-2 text-gray-900",children:p.name}),s.jsxs(fo,{className:"text-sm",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx(Be,{className:"h-4 w-4"}),p.moduleName]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Ke,{className:"h-4 w-4"}),p.moduleCode]})]})]}),s.jsx(pt,{variant:"secondary",className:"ml-2",children:w(p.referenceStyle)})]})}),s.jsxs(we,{className:"pt-0",children:[p.description&&s.jsx("p",{className:"text-sm text-gray-600 mb-4 line-clamp-2",children:p.description}),s.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-500 mb-4",children:[s.jsx(Ii,{className:"h-3 w-3"}),"Created ",g(p.createdAt)]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsx(lt,{href:`/projects/${p.id}`,children:s.jsxs(J,{size:"sm",className:"flex-1 bg-gradient-to-r from-primary to-purple-600",children:[s.jsx(V4,{className:"mr-1 h-3 w-3"}),"Open"]})}),s.jsxs(J,{size:"sm",variant:"outline",onClick:()=>b(p),disabled:f.isPending,children:[s.jsx(no,{className:"mr-1 h-3 w-3"}),"Copy Refs"]}),s.jsx(J,{size:"sm",variant:"outline",onClick:()=>y(p),disabled:u.isPending,className:"text-red-600 hover:text-red-700 hover:bg-red-50",children:s.jsx(RN,{className:"h-3 w-3"})})]})]})]},p.id))}),s.jsx(Vw,{open:n,onOpenChange:r,children:s.jsxs(Sp,{className:"sm:max-w-[900px] max-h-[80vh] overflow-y-auto",children:[s.jsxs(kp,{children:[s.jsx(Ep,{children:"Academic Project Templates"}),s.jsx(Tp,{children:"Choose from pre-configured templates to quickly set up your academic project with appropriate settings."})]}),s.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3 mt-4",children:N8.map(p=>{const v=p.icon;return s.jsxs(pe,{className:"cursor-pointer hover:shadow-lg transition-all hover:scale-105 border-2 hover:border-primary",onClick:()=>x(p),children:[s.jsxs(_e,{className:"pb-3",children:[s.jsx("div",{className:`w-12 h-12 rounded-lg bg-gradient-to-r ${p.color} flex items-center justify-center mb-3`,children:s.jsx(v,{className:"h-6 w-6 text-white"})}),s.jsx(De,{className:"text-lg",children:p.name}),s.jsx(fo,{className:"text-sm",children:p.description})]}),s.jsx(we,{className:"pt-0",children:s.jsxs("div",{className:"space-y-2 text-xs text-gray-600",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{children:"Reference Style:"}),s.jsx(pt,{variant:"outline",className:"text-xs",children:p.template.referenceStyle.toUpperCase()})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{children:"Module:"}),s.jsx("span",{className:"font-medium",children:p.template.moduleCode})]})]})})]},p.id)})})]})})]})})}function zw(e){const t=new Blob([e],{type:"text/plain"}),n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=`project-references-${new Date().toISOString().split("T")[0]}.txt`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}function S8(){const[e,t]=S1("/projects/:id"),[n,r]=h.useState(!1),[i,a]=h.useState(null),[o,l]=h.useState(""),{toast:c}=Wi(),d=Lu(),u=t!=null&&t.id?parseInt(t.id):null,{data:f,isLoading:m}=$d({queryKey:["/api/projects",u],queryFn:async()=>(await Mr("GET",`/api/projects/${u}`)).json(),enabled:!!u}),{data:y=[],isLoading:b}=$d({queryKey:["/api/projects",u,"citations"],queryFn:async()=>(await Mr("GET",`/api/projects/${u}/citations`)).json(),enabled:!!u}),x=Aa({mutationFn:async A=>Mr("DELETE",`/api/citations/${A}`),onSuccess:()=>{d.invalidateQueries({queryKey:["/api/projects",u,"citations"]}),c({title:"Success",description:"Citation deleted successfully!"})},onError:A=>{c({title:"Error",description:A.message||"Failed to delete citation",variant:"destructive"})}}),w=Aa({mutationFn:async()=>(await(await Mr("GET",`/api/projects/${u}/copy-references`)).json()).references,onSuccess:async A=>{try{if(navigator.clipboard&&window.isSecureContext){await navigator.clipboard.writeText(A),c({title:"Copied to Clipboard",description:"All references copied to your device clipboard in alphabetical order!"});return}const R=document.createElement("textarea");if(R.value=A,R.style.position="absolute",R.style.left="-9999px",R.style.top="0",R.setAttribute("readonly",""),document.body.appendChild(R),navigator.userAgent.match(/ipad|iphone/i)){R.contentEditable="true",R.readOnly=!1;const L=document.createRange();L.selectNodeContents(R);const F=window.getSelection();F==null||F.removeAllRanges(),F==null||F.addRange(L),R.setSelectionRange(0,999999)}else R.select();const B=document.execCommand("copy");if(document.body.removeChild(R),B)c({title:"Copied to Clipboard",description:"All references copied to your device clipboard in alphabetical order!"});else throw new Error("Copy command failed")}catch{c({title:"Copy Manually",description:"Please copy the references from the downloaded file or enable clipboard permissions.",variant:"default"}),zw(A)}},onError:A=>{c({title:"Error",description:A.message||"Failed to copy references",variant:"destructive"})}}),g=()=>{r(!0),l(""),a(null)},p=A=>{r(!1),a(A),d.invalidateQueries({queryKey:["/api/projects",u,"citations"]})},v=A=>{r(!1),l(A),a(null)},j=A=>{confirm(`Are you sure you want to delete this citation: "${A.title}"?`)&&x.mutate(A.id)},N=()=>{w.mutate()},T=async()=>{try{const R=await(await Mr("GET",`/api/projects/${u}/copy-references`)).json();zw(R.references),c({title:"Downloaded",description:"References downloaded as text file successfully!"})}catch{c({title:"Error",description:"Failed to download references",variant:"destructive"})}},k=A=>A.toUpperCase(),E=A=>new Date(A).toLocaleDateString();return!e||!u?s.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-blue-50",children:s.jsx("div",{className:"container mx-auto px-4 py-8",children:s.jsxs("div",{className:"text-center py-12",children:[s.jsx("p",{className:"text-red-600",children:"Invalid project ID"}),s.jsx(lt,{href:"/projects",children:s.jsx(J,{className:"mt-4",children:"Back to Projects"})})]})})}):m?s.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-blue-50",children:s.jsx("div",{className:"container mx-auto px-4 py-8",children:s.jsxs("div",{className:"text-center py-12",children:[s.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary mx-auto"}),s.jsx("p",{className:"mt-4 text-gray-600",children:"Loading project..."})]})})}):f?s.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-blue-50",children:s.jsxs("div",{className:"container mx-auto px-4 py-8",children:[s.jsxs("div",{className:"mb-8",children:[s.jsx(lt,{href:"/projects",children:s.jsxs(J,{variant:"outline",className:"mb-4",children:[s.jsx(yN,{className:"mr-2 h-4 w-4"}),"Back to Projects"]})}),s.jsxs("div",{className:"bg-white/80 backdrop-blur-sm rounded-xl shadow-md p-6 border-0",children:[s.jsxs("div",{className:"flex items-start justify-between mb-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:f.name}),s.jsxs("div",{className:"flex items-center gap-4 text-gray-600",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Be,{className:"h-4 w-4"}),f.moduleName]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Ke,{className:"h-4 w-4"}),f.moduleCode]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Ii,{className:"h-4 w-4"}),E(f.createdAt)]})]})]}),s.jsx("div",{className:"flex items-center gap-2",children:s.jsx(pt,{variant:"secondary",className:"text-sm",children:k(f.referenceStyle)})})]}),f.description&&s.jsx("p",{className:"text-gray-700 mb-4",children:f.description}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs(J,{onClick:N,disabled:w.isPending||y.length===0,className:"bg-gradient-to-r from-primary to-purple-600",children:[s.jsx(no,{className:"mr-2 h-4 w-4"}),w.isPending?"Copying...":"Copy All References"]}),s.jsxs(J,{onClick:T,disabled:y.length===0,variant:"outline",className:"border-primary text-primary hover:bg-primary hover:text-white",children:[s.jsx(Bu,{className:"mr-2 h-4 w-4"}),"Download"]}),s.jsxs("span",{className:"text-sm text-gray-600",children:["(",y.length," citation",y.length!==1?"s":"",")"]})]})]})]}),s.jsxs("div",{className:"grid gap-8 lg:grid-cols-2",children:[s.jsxs("div",{className:"bg-white/80 backdrop-blur-sm rounded-xl shadow-md p-6 border-0",children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Add New Citation"}),s.jsx(qi,{onGenerateStart:g,onGenerateSuccess:p,onGenerateError:v,projectId:u,defaultFormat:f.referenceStyle}),s.jsx("div",{className:"mt-6",children:s.jsx(Ki,{citationResult:i,isLoading:n,errorMessage:o})})]}),s.jsxs("div",{className:"bg-white/80 backdrop-blur-sm rounded-xl shadow-md p-6 border-0",children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Project Citations"}),b?s.jsxs("div",{className:"text-center py-8",children:[s.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-primary mx-auto"}),s.jsx("p",{className:"mt-2 text-gray-600",children:"Loading citations..."})]}):y.length===0?s.jsxs("div",{className:"text-center py-8",children:[s.jsx(Ke,{className:"h-12 w-12 text-gray-400 mx-auto mb-4"}),s.jsx("p",{className:"text-gray-600",children:"No citations added yet"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Create your first citation to get started"})]}):s.jsx("div",{className:"space-y-4 max-h-96 overflow-y-auto",children:y.map(A=>s.jsxs(pe,{className:"border border-gray-200",children:[s.jsx(_e,{className:"pb-2",children:s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{className:"flex-1",children:[s.jsx(De,{className:"text-base text-gray-900 mb-1",children:A.title}),s.jsxs(fo,{className:"text-sm",children:[A.authors," (",A.year,")"]})]}),s.jsx(J,{size:"sm",variant:"outline",onClick:()=>j(A),disabled:x.isPending,className:"text-red-600 hover:text-red-700 hover:bg-red-50",children:s.jsx(RN,{className:"h-3 w-3"})})]})}),s.jsxs(we,{className:"pt-0",children:[s.jsx("p",{className:"text-sm text-gray-700 mb-2",children:A.formattedCitation}),A.inTextCitation&&s.jsxs("div",{className:"text-xs text-gray-600 bg-gray-50 p-2 rounded",children:[s.jsx("strong",{children:"In-text:"})," ",A.inTextCitation]})]})]},A.id))})]})]})]})}):s.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-blue-50",children:s.jsx("div",{className:"container mx-auto px-4 py-8",children:s.jsxs("div",{className:"text-center py-12",children:[s.jsx("p",{className:"text-red-600",children:"Project not found"}),s.jsx(lt,{href:"/projects",children:s.jsx(J,{className:"mt-4",children:"Back to Projects"})})]})})})}var ey="Progress",ty=100,[k8,Lz]=On(ey),[E8,T8]=k8(ey),IE=h.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:i,getValueLabel:a=A8,...o}=e;(i||i===0)&&!Uw(i)&&console.error(P8(`${i}`,"Progress"));const l=Uw(i)?i:ty;r!==null&&!Bw(r,l)&&console.error(_8(`${r}`,"Progress"));const c=Bw(r,l)?r:null,d=gu(c)?a(c,l):void 0;return s.jsx(E8,{scope:n,value:c,max:l,children:s.jsx(ue.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":gu(c)?c:void 0,"aria-valuetext":d,role:"progressbar","data-state":DE(c,l),"data-value":c??void 0,"data-max":l,...o,ref:t})})});IE.displayName=ey;var ME="ProgressIndicator",LE=h.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,i=T8(ME,n);return s.jsx(ue.div,{"data-state":DE(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});LE.displayName=ME;function A8(e,t){return`${Math.round(e/t*100)}%`}function DE(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function gu(e){return typeof e=="number"}function Uw(e){return gu(e)&&!isNaN(e)&&e>0}function Bw(e,t){return gu(e)&&!isNaN(e)&&e<=t&&e>=0}function P8(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ty}\`.`}function _8(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: - a positive number - less than the value passed to \`max\` (or ${ty} if no \`max\` prop is set) - \`null\` or \`undefined\` if the progress is indeterminate. Defaulting to \`null\`.`}var OE=IE,R8=LE;const ny=h.forwardRef(({className:e,value:t,...n},r)=>s.jsx(OE,{ref:r,className:re("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:s.jsx(R8,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));ny.displayName=OE.displayName;const I8={"@context":"https://schema.org","@type":"Course",name:"Academic Citation Learning Center - Cite.ai",description:"Interactive learning platform for mastering academic citation formats including APA, MLA, Chicago, Harvard, and IEEE styles.",provider:{"@type":"Organization",name:"Cite.ai",url:"https://academicite.com"},educationalLevel:"University",teaches:["APA Citation Format","MLA Citation Style","Chicago Manual of Style","Harvard Referencing","IEEE Citation Format","Academic Writing Skills"]},M8=[{id:"beginner",title:"Citation Fundamentals",description:"Start your journey with basic citation principles",difficulty:"Beginner",duration:"2-3 hours",lessons:8,xp:800,color:"bg-green-500",icon:Be,topics:["What are citations?","When to cite","Basic formats","Common mistakes"]},{id:"styles",title:"Master Citation Styles",description:"Deep dive into APA, MLA, Chicago, Harvard, and IEEE",difficulty:"Intermediate",duration:"4-6 hours",lessons:15,xp:1500,color:"bg-blue-500",icon:Ke,topics:["APA 7th Edition","MLA 9th Edition","Chicago Manual","Harvard System","IEEE Standards"]},{id:"advanced",title:"Advanced Techniques",description:"Complex sources, plagiarism prevention, and best practices",difficulty:"Advanced",duration:"3-4 hours",lessons:10,xp:1200,color:"bg-purple-500",icon:vN,topics:["Complex sources","Digital citations","Legal documents","International sources"]}],L8=[{id:1,title:"APA Basics: Author-Date System",description:"Learn the fundamentals of APA in-text citations and reference formatting",format:"apa",type:"interactive",duration:15,difficulty:"beginner",completed:!1,xp:100,icon:cd,thumbnail:"/api/placeholder/300/200"},{id:2,title:"MLA Works Cited Mastery",description:"Master MLA formatting with real-world examples and practice exercises",format:"mla",type:"video",duration:20,difficulty:"beginner",completed:!0,xp:120,icon:MN,thumbnail:"/api/placeholder/300/200"},{id:3,title:"Chicago Style Deep Dive",description:"Comprehensive guide to Chicago Manual of Style with footnotes and bibliography",format:"chicago",type:"interactive",duration:25,difficulty:"intermediate",completed:!1,xp:150,icon:cd,thumbnail:"/api/placeholder/300/200"},{id:4,title:"Harvard Referencing Workshop",description:"Practice Harvard style citations with guided exercises and feedback",format:"harvard",type:"workshop",duration:30,difficulty:"intermediate",completed:!1,xp:180,icon:Wt,thumbnail:"/api/placeholder/300/200"},{id:5,title:"IEEE for Engineers",description:"Technical citation formatting for engineering and computer science papers",format:"ieee",type:"interactive",duration:22,difficulty:"advanced",completed:!1,xp:200,icon:cd,thumbnail:"/api/placeholder/300/200"},{id:6,title:"Digital Sources Challenge",description:"Learn to cite websites, social media, and online multimedia sources",format:"all",type:"challenge",duration:35,difficulty:"advanced",completed:!1,xp:250,icon:oc,thumbnail:"/api/placeholder/300/200"}],D8=[{id:1,title:"Citation Novice",description:"Complete your first lesson",icon:Hd,unlocked:!0,xpRequired:100},{id:2,title:"APA Expert",description:"Master all APA lessons",icon:Js,unlocked:!0,xpRequired:500},{id:3,title:"Style Master",description:"Complete lessons in all 5 citation styles",icon:G4,unlocked:!1,xpRequired:1e3},{id:4,title:"Citation Champion",description:"Reach level 10 and help 100 students",icon:Cr,unlocked:!1,xpRequired:2500}],O8=[{title:"Always cite direct quotes",description:"Any text copied word-for-word needs quotation marks and a citation",category:"basics"},{title:"Paraphrasing still needs citations",description:"Even when you put ideas in your own words, credit the original author",category:"basics"},{title:"Use hanging indents for references",description:"All citation styles require hanging indents in the reference list",category:"formatting"},{title:"Check publication dates carefully",description:"Online sources can have multiple dates - use the most relevant one",category:"digital"}],F8=[{title:"APA 7th Edition Quick Reference",type:"PDF Guide",downloads:15420,icon:Bu,description:"Comprehensive cheat sheet for APA formatting rules"},{title:"MLA Citation Templates",type:"Word Templates",downloads:12350,icon:Ke,description:"Pre-formatted templates for common MLA sources"},{title:"Citation Checklist",type:"Interactive Tool",downloads:8970,icon:he,description:"Step-by-step checklist to verify citation accuracy"},{title:"Academic Writing Samples",type:"Example Papers",downloads:6540,icon:Be,description:"Well-cited research papers across different disciplines"}];function V8(){h.useState("overview");const[e,t]=h.useState(""),[n,r]=h.useState("all"),[i,a]=h.useState("all"),o={level:3,xp:450,xpToNext:550,streak:5,completedLessons:8,totalLessons:25,badges:3},l=L8.filter(u=>{const f=u.title.toLowerCase().includes(e.toLowerCase())||u.description.toLowerCase().includes(e.toLowerCase()),m=n==="all"||u.difficulty===n,y=i==="all"||u.format===i;return f&&m&&y}),c=u=>{switch(u){case"beginner":return"bg-green-100 text-green-700 border-green-200";case"intermediate":return"bg-yellow-100 text-yellow-700 border-yellow-200";case"advanced":return"bg-red-100 text-red-700 border-red-200";default:return"bg-gray-100 text-gray-700 border-gray-200"}},d=u=>{switch(u){case"video":return MN;case"interactive":return cd;case"workshop":return Wt;case"challenge":return Lx;default:return Be}};return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(xc,{url:"https://academicite.com/learn",name:"Citation Learning Center - Cite.ai",description:"Interactive platform for mastering academic citation formats"}),s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(I8)}}),s.jsx(rt,{}),s.jsx("section",{className:"pt-24 pb-16 bg-gradient-to-br from-background via-muted/30 to-background",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsxs(M.div,{className:"text-center max-w-4xl mx-auto",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},children:[s.jsxs("div",{className:"inline-flex items-center gap-2 bg-primary/10 text-primary rounded-full px-6 py-3 text-sm font-medium mb-8",children:[s.jsx(Cr,{className:"h-4 w-4"}),"Learning Center"]}),s.jsxs("h1",{className:"text-4xl sm:text-5xl md:text-6xl font-bold tracking-tight mb-6",children:["Master Academic",s.jsx("span",{className:"block text-primary mt-2",children:"Citations"})]}),s.jsx("p",{className:"text-xl text-muted-foreground leading-relaxed max-w-3xl mx-auto mb-8",children:"Interactive lessons, practice exercises, and expert guidance to become a citation expert across all major academic formats."}),s.jsxs(M.div,{className:"bg-card border rounded-lg p-6 max-w-2xl mx-auto",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},children:[s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-center",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-2xl font-bold text-primary",children:o.level}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Level"})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-2xl font-bold text-primary",children:o.xp}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"XP Points"})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-2xl font-bold text-primary",children:o.streak}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Day Streak"})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"text-2xl font-bold text-primary",children:[o.completedLessons,"/",o.totalLessons]}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Completed"})]})]}),s.jsxs("div",{className:"mt-4",children:[s.jsxs("div",{className:"flex items-center justify-between text-sm mb-2",children:[s.jsxs("span",{children:["Progress to Level ",o.level+1]}),s.jsxs("span",{children:[o.xp,"/",o.xpToNext," XP"]})]}),s.jsx(ny,{value:o.xp/o.xpToNext*100,className:"h-2"})]})]})]})})}),s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Choose Your Learning Path"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Structured courses designed to take you from beginner to expert"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:M8.map((u,f)=>s.jsx(M.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:f*.1},viewport:{once:!0},children:s.jsxs(pe,{className:"h-full hover:shadow-lg transition-shadow duration-300 relative overflow-hidden",children:[s.jsx("div",{className:`absolute top-0 left-0 right-0 h-1 ${u.color}`}),s.jsxs(_e,{children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:`p-3 ${u.color} rounded-lg text-white`,children:s.jsx(u.icon,{className:"h-6 w-6"})}),s.jsxs("div",{children:[s.jsx(De,{className:"text-xl",children:u.title}),s.jsx(pt,{variant:"outline",className:"mt-1",children:u.difficulty})]})]}),s.jsx(fo,{className:"mt-4",children:u.description})]}),s.jsx(we,{children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-3 gap-4 text-center text-sm",children:[s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold",children:u.lessons}),s.jsx("div",{className:"text-muted-foreground",children:"Lessons"})]}),s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold",children:u.duration}),s.jsx("div",{className:"text-muted-foreground",children:"Duration"})]}),s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold",children:u.xp}),s.jsx("div",{className:"text-muted-foreground",children:"XP"})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"text-sm font-medium",children:"What you'll learn:"}),s.jsx("ul",{className:"text-sm text-muted-foreground space-y-1",children:u.topics.map((m,y)=>s.jsxs("li",{className:"flex items-center gap-2",children:[s.jsx(he,{className:"h-3 w-3 text-green-500 flex-shrink-0"}),m]},y))})]}),s.jsxs(J,{className:"w-full",children:["Start Learning",s.jsx(fn,{className:"h-4 w-4 ml-2"})]})]})})]})},u.id))})]})}),s.jsx(je,{}),s.jsx("section",{className:"py-24 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-8",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"text-3xl font-bold mb-2",children:"Interactive Lessons"}),s.jsx("p",{className:"text-muted-foreground",children:"Hands-on practice with instant feedback"})]}),s.jsxs("div",{className:"flex gap-4",children:[s.jsxs("div",{className:"relative",children:[s.jsx(hr,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),s.jsx(jt,{placeholder:"Search lessons...",value:e,onChange:u=>t(u.target.value),className:"pl-10 w-64"})]}),s.jsxs("select",{value:n,onChange:u=>r(u.target.value),className:"px-3 py-2 border rounded-md bg-background",children:[s.jsx("option",{value:"all",children:"All Levels"}),s.jsx("option",{value:"beginner",children:"Beginner"}),s.jsx("option",{value:"intermediate",children:"Intermediate"}),s.jsx("option",{value:"advanced",children:"Advanced"})]}),s.jsxs("select",{value:i,onChange:u=>a(u.target.value),className:"px-3 py-2 border rounded-md bg-background",children:[s.jsx("option",{value:"all",children:"All Formats"}),s.jsx("option",{value:"apa",children:"APA"}),s.jsx("option",{value:"mla",children:"MLA"}),s.jsx("option",{value:"chicago",children:"Chicago"}),s.jsx("option",{value:"harvard",children:"Harvard"}),s.jsx("option",{value:"ieee",children:"IEEE"})]})]})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:l.map((u,f)=>{const m=d(u.type);return s.jsx(M.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:f*.1},viewport:{once:!0},children:s.jsxs(pe,{className:"h-full hover:shadow-lg transition-shadow duration-300 group cursor-pointer",children:[s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"aspect-video bg-gradient-to-br from-primary/20 to-purple-500/20 rounded-t-lg flex items-center justify-center",children:s.jsx(m,{className:"h-12 w-12 text-primary"})}),u.completed&&s.jsx("div",{className:"absolute top-2 right-2 bg-green-500 text-white rounded-full p-1",children:s.jsx(he,{className:"h-4 w-4"})}),s.jsx("div",{className:"absolute bottom-2 left-2",children:s.jsx(pt,{className:c(u.difficulty),children:u.difficulty})})]}),s.jsxs(we,{className:"p-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx(pt,{variant:"outline",className:"text-xs",children:u.format.toUpperCase()}),s.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[s.jsx(Hi,{className:"h-3 w-3"}),u.duration,"min"]})]}),s.jsx("h3",{className:"font-semibold mb-2 group-hover:text-primary transition-colors",children:u.title}),s.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:u.description}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-1 text-sm text-primary",children:[s.jsx(Hd,{className:"h-3 w-3"}),u.xp," XP"]}),s.jsx(J,{size:"sm",variant:u.completed?"outline":"default",children:u.completed?"Review":"Start"})]})]})]})},u.id)})})]})}),s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Quick Citation Tips"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Essential tips to avoid common citation mistakes"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 max-w-4xl mx-auto",children:O8.map((u,f)=>s.jsx(M.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:f*.1},viewport:{once:!0},children:s.jsx(pe,{className:"p-6 hover:shadow-md transition-shadow duration-300",children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"p-2 bg-primary/10 rounded-lg flex-shrink-0",children:s.jsx(vN,{className:"h-5 w-5 text-primary"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-2",children:u.title}),s.jsx("p",{className:"text-sm text-muted-foreground",children:u.description})]})]})})},f))})]})}),s.jsx(je,{}),s.jsx("section",{className:"py-24 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Study Materials"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Downloadable resources to support your learning"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:F8.map((u,f)=>s.jsx(M.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:f*.1},viewport:{once:!0},children:s.jsx(pe,{className:"h-full hover:shadow-lg transition-shadow duration-300 cursor-pointer",children:s.jsxs(we,{className:"p-6 text-center",children:[s.jsx("div",{className:"p-4 bg-primary/10 rounded-lg inline-flex mb-4",children:s.jsx(u.icon,{className:"h-8 w-8 text-primary"})}),s.jsx("h3",{className:"font-semibold mb-2",children:u.title}),s.jsx(pt,{variant:"outline",className:"mb-3",children:u.type}),s.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:u.description}),s.jsxs("div",{className:"text-xs text-muted-foreground mb-4",children:[u.downloads.toLocaleString()," downloads"]}),s.jsxs(J,{size:"sm",className:"w-full",children:[s.jsx(Bu,{className:"h-4 w-4 mr-2"}),"Download"]})]})})},f))})]})}),s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Your Achievements"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Track your progress and unlock badges as you master citations"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 max-w-4xl mx-auto",children:D8.map((u,f)=>s.jsx(M.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:f*.1},viewport:{once:!0},children:s.jsx(pe,{className:`h-full text-center ${u.unlocked?"border-primary/50 bg-primary/5":"opacity-60"}`,children:s.jsxs(we,{className:"p-6",children:[s.jsx("div",{className:`p-4 rounded-lg inline-flex mb-4 ${u.unlocked?"bg-primary text-primary-foreground":"bg-gray-200 text-gray-500"}`,children:s.jsx(u.icon,{className:"h-8 w-8"})}),s.jsx("h3",{className:"font-semibold mb-2",children:u.title}),s.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:u.description}),s.jsxs("div",{className:"text-xs text-muted-foreground",children:[u.xpRequired," XP required"]}),u.unlocked&&s.jsxs(pt,{className:"mt-2 bg-green-100 text-green-700 border-green-200",children:[s.jsx(he,{className:"h-3 w-3 mr-1"}),"Unlocked"]})]})})},u.id))})]})}),s.jsx(st,{})]})}const z8={1:{title:"Introduction to APA Style",description:"Learn the fundamentals of APA citation format",format:"APA",difficulty:"beginner",estimatedTime:15,sections:[{id:1,title:"What is APA Style?",content:`

APA (American Psychological Association) style is a widely used citation format in psychology, education, and social sciences. It provides guidelines for:

  • In-text citations
  • Reference lists
  • Paper formatting
  • Writing style

The 7th edition of APA Style, published in 2020, is the current standard used by most academic institutions.

`,type:"content"},{id:2,title:"Basic In-Text Citation",content:`

APA in-text citations include the author's last name and year of publication:

(Smith, 2023)

For direct quotes, include the page number:

(Smith, 2023, p. 15)
`,type:"content"},{id:3,title:"Practice Quiz",content:"",type:"quiz",questions:[{id:1,question:"Which of the following is a correct APA in-text citation?",options:["(Smith 2023)","(Smith, 2023)","[Smith, 2023]","Smith (2023)"],correct:1,explanation:"APA in-text citations use parentheses with a comma between author and year."},{id:2,question:"When citing a direct quote in APA style, what additional information must be included?",options:["DOI number","Page number","Publisher","URL"],correct:1,explanation:"Direct quotes in APA require the page number to help readers locate the specific passage."}]},{id:4,title:"Reference List Format",content:`

APA reference lists appear at the end of your paper and provide full publication details:

Smith, J. A. (2023). Understanding citation formats. Academic Press.

Key elements include:

  • Author's last name, first initial
  • Publication year in parentheses
  • Title in sentence case (only first word capitalized)
  • Publisher name
`,type:"content"}]}};function U8(){var N,T;const[e,t]=S1("/learn/lesson/:id"),[n,r]=h.useState(0),[i,a]=h.useState({}),[o,l]=h.useState(!1),[c,d]=h.useState(0),[u]=h.useState(Date.now()),f=parseInt((t==null?void 0:t.id)||"1"),m=z8[f];if(h.useEffect(()=>{const k=setInterval(()=>{d(Math.floor((Date.now()-u)/1e3))},1e3);return()=>clearInterval(k)},[u]),!m)return s.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center",children:s.jsxs("div",{className:"text-center",children:[s.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Lesson Not Found"}),s.jsx(lt,{href:"/learn",children:s.jsx(J,{children:"Back to Learning"})})]})});const y=m.sections[n],b=(n+1)/m.sections.length*100,x=(k,E)=>{a(A=>({...A,[k]:E}))},w=()=>{l(!0)},g=()=>{if(y.type!=="quiz"||!y.questions)return 0;const k=y.questions.filter(E=>i[E.id]===E.correct).length;return Math.round(k/y.questions.length*100)},p=()=>{n{n>0&&(r(n-1),a({}),l(!1))},j=k=>{const E=Math.floor(k/60),A=k%60;return`${E}:${A.toString().padStart(2,"0")}`};return s.jsxs("div",{className:"min-h-screen bg-white",children:[s.jsx("div",{className:"bg-gradient-to-br from-primary via-purple-600 to-blue-700 text-white",children:s.jsx("div",{className:"container mx-auto py-6 px-4",children:s.jsx(rt,{})})}),s.jsx("div",{className:"bg-white border-b border-gray-200 sticky top-0 z-10",children:s.jsxs("div",{className:"container mx-auto px-4 py-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(lt,{href:"/learn",children:s.jsxs(J,{variant:"ghost",size:"sm",children:[s.jsx(Fv,{className:"h-4 w-4 mr-1"}),"Back to Learn"]})}),s.jsxs("div",{children:[s.jsx("h1",{className:"text-xl font-bold text-gray-900",children:m.title}),s.jsxs("p",{className:"text-sm text-gray-600",children:["Section ",n+1," of ",m.sections.length]})]})]}),s.jsxs("div",{className:"flex items-center gap-4 text-sm text-gray-600",children:[s.jsxs("div",{className:"flex items-center",children:[s.jsx(Hi,{className:"h-4 w-4 mr-1"}),j(c)]}),s.jsx(pt,{variant:"outline",children:m.format})]})]}),s.jsx(ny,{value:b,className:"h-2"})]})}),s.jsxs("main",{className:"container mx-auto px-4 py-8 max-w-4xl",children:[s.jsx(Li,{mode:"wait",children:s.jsx(M.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.3},children:s.jsxs(pe,{className:"mb-8",children:[s.jsxs(_e,{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[y.type==="quiz"?s.jsx(Lx,{className:"h-5 w-5 text-blue-600"}):s.jsx(Be,{className:"h-5 w-5 text-blue-600"}),s.jsx("span",{className:"text-sm font-medium text-gray-600",children:y.type==="quiz"?"Knowledge Check":"Lesson Content"})]}),s.jsx(De,{className:"text-2xl",children:y.title})]}),s.jsx(we,{children:y.type==="content"?s.jsx("div",{className:"prose prose-lg max-w-none",dangerouslySetInnerHTML:{__html:y.content}}):s.jsxs("div",{className:"space-y-6",children:[(N=y.questions)==null?void 0:N.map((k,E)=>s.jsxs("div",{className:"border border-gray-200 rounded-lg p-6",children:[s.jsxs("h3",{className:"text-lg font-semibold mb-4",children:["Question ",E+1,": ",k.question]}),s.jsx("div",{className:"space-y-3",children:k.options.map((A,R)=>{const B=i[k.id]===R,L=R===k.correct,F=o;return s.jsx("button",{onClick:()=>!o&&x(k.id,R),disabled:o,className:`w-full text-left p-4 rounded-lg border-2 transition-all ${F&&L?"border-green-500 bg-green-50":F&&B&&!L?"border-red-500 bg-red-50":B?"border-blue-500 bg-blue-50":"border-gray-200 hover:border-gray-300"}`,children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{children:A}),F&&L&&s.jsx(he,{className:"h-5 w-5 text-green-600"}),F&&B&&!L&&s.jsx(qu,{className:"h-5 w-5 text-red-600"})]})},R)})}),o&&s.jsx(M.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"mt-4 p-4 bg-blue-50 rounded-lg border border-blue-200",children:s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx($u,{className:"h-5 w-5 text-blue-600 mt-0.5 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium text-blue-900 mb-1",children:"Explanation:"}),s.jsx("p",{className:"text-blue-800",children:k.explanation})]})]})})]},k.id)),!o&&Object.keys(i).length===((T=y.questions)==null?void 0:T.length)&&s.jsx("div",{className:"text-center",children:s.jsx(J,{onClick:w,size:"lg",children:"Submit Quiz"})}),o&&s.jsxs(M.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"text-center p-6 bg-gray-50 rounded-lg",children:[s.jsx(Js,{className:"h-12 w-12 text-yellow-500 mx-auto mb-4"}),s.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:"Quiz Complete!"}),s.jsxs("p",{className:"text-lg text-gray-700 mb-4",children:["Your Score: ",s.jsxs("span",{className:"font-bold text-blue-600",children:[g(),"%"]})]}),s.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-gray-600",children:[s.jsx("span",{children:"+50 XP earned"}),g()===100&&s.jsxs(s.Fragment,{children:[s.jsx(je,{orientation:"vertical",className:"h-4"}),s.jsx("span",{className:"text-yellow-600 font-medium",children:"Perfect Score Bonus: +25 XP"})]})]})]})]})})]})},n)}),s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsxs(J,{variant:"outline",onClick:v,disabled:n===0,children:[s.jsx(Fv,{className:"h-4 w-4 mr-1"}),"Previous"]}),s.jsx("div",{className:"text-center",children:s.jsxs("p",{className:"text-sm text-gray-600",children:["Section ",n+1," of ",m.sections.length]})}),n===m.sections.length-1?s.jsx(lt,{href:"/learn",children:s.jsxs(J,{children:["Complete Lesson",s.jsx(he,{className:"h-4 w-4 ml-2"})]})}):s.jsxs(J,{onClick:p,disabled:y.type==="quiz"&&!o,children:["Next",s.jsx(T4,{className:"h-4 w-4 ml-1"})]})]})]}),s.jsx(st,{})]})}function B8(){const[e,t]=h.useState(null),[n,r]=h.useState(!1),[i,a]=h.useState("");return s.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[s.jsx(rt,{}),s.jsx("section",{className:"bg-background py-16",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs("div",{className:"text-center max-w-4xl mx-auto mb-16",children:[s.jsx(pt,{variant:"secondary",className:"mb-4",children:"APA 7th Edition"}),s.jsx("h1",{className:"text-5xl lg:text-6xl font-bold mb-6 tracking-tight",children:"Free APA Citation Generator"}),s.jsx("p",{className:"text-xl text-muted-foreground mb-8 max-w-3xl mx-auto",children:"Generate perfect APA 7th edition citations instantly from any URL, DOI, or ISBN. Trusted by thousands of students and researchers for accurate academic formatting."}),s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-12 max-w-2xl mx-auto",children:[s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[s.jsx(he,{className:"h-4 w-4 text-green-500"}),s.jsx("span",{children:"APA 7th Edition"})]}),s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[s.jsx(Hi,{className:"h-4 w-4 text-blue-500"}),s.jsx("span",{children:"Instant Citations"})]}),s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[s.jsx(Wt,{className:"h-4 w-4 text-purple-500"}),s.jsx("span",{children:"50K+ Users"})]}),s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[s.jsx(Js,{className:"h-4 w-4 text-orange-500"}),s.jsx("span",{children:"100% Free"})]})]})]}),s.jsx("div",{className:"max-w-4xl mx-auto",children:s.jsxs(pe,{className:"p-8",children:[s.jsxs(_e,{className:"text-center pb-6",children:[s.jsxs(De,{className:"text-2xl flex items-center justify-center gap-2",children:[s.jsx(Ke,{className:"h-6 w-6"}),"Generate APA Citations"]}),s.jsx("p",{className:"text-muted-foreground",children:"Paste a URL, DOI, or ISBN to automatically generate properly formatted APA citations"})]}),s.jsxs(we,{children:[s.jsx(qi,{onGenerateStart:()=>r(!0),onGenerateSuccess:t,onGenerateError:a,defaultFormat:"apa"}),e&&s.jsx("div",{className:"mt-8",children:s.jsx(Ki,{citationResult:e,isLoading:n,errorMessage:i})})]})]})})]})}),s.jsx("section",{className:"py-16 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Complete APA Citation Guide"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Master APA 7th edition formatting with our comprehensive guide and examples"})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-6xl mx-auto",children:[s.jsxs(pe,{children:[s.jsx(_e,{children:s.jsxs(De,{className:"flex items-center gap-2",children:[s.jsx(kN,{className:"h-5 w-5"}),"Website Citations"]})}),s.jsxs(we,{children:[s.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Generate APA citations for websites, news articles, and online sources"}),s.jsxs("div",{className:"bg-muted p-3 rounded text-xs font-mono",children:["Smith, J. (2024, March 15). Understanding climate change.",s.jsx("em",{children:"Environmental News"}),". https://example.com/article"]})]})]}),s.jsxs(pe,{children:[s.jsx(_e,{children:s.jsxs(De,{className:"flex items-center gap-2",children:[s.jsx(Be,{className:"h-5 w-5"}),"Journal Articles"]})}),s.jsxs(we,{children:[s.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Create citations for academic journals with DOI support"}),s.jsxs("div",{className:"bg-muted p-3 rounded text-xs font-mono",children:["Johnson, M. (2024). Research methods in psychology.",s.jsx("em",{children:"Journal of Psychology"}),", 45(2), 123-145. https://doi.org/10.1000/182"]})]})]}),s.jsxs(pe,{children:[s.jsx(_e,{children:s.jsxs(De,{className:"flex items-center gap-2",children:[s.jsx(Cr,{className:"h-5 w-5"}),"Books & eBooks"]})}),s.jsxs(we,{children:[s.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Format book citations using ISBN numbers automatically"}),s.jsxs("div",{className:"bg-muted p-3 rounded text-xs font-mono",children:["Brown, A. (2024). ",s.jsx("em",{children:"Academic writing guide"})," (3rd ed.). University Press."]})]})]})]})]})}),s.jsx("section",{className:"py-16",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsxs("div",{className:"max-w-4xl mx-auto",children:[s.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:"Why Choose Our APA Citation Generator?"}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex gap-4",children:[s.jsx("div",{className:"flex-shrink-0",children:s.jsx(he,{className:"h-6 w-6 text-green-500"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-2",children:"APA 7th Edition Compliant"}),s.jsx("p",{className:"text-muted-foreground text-sm",children:"Follows the latest APA Publication Manual guidelines for perfect formatting"})]})]}),s.jsxs("div",{className:"flex gap-4",children:[s.jsx("div",{className:"flex-shrink-0",children:s.jsx(he,{className:"h-6 w-6 text-green-500"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-2",children:"Automatic Source Detection"}),s.jsx("p",{className:"text-muted-foreground text-sm",children:"Automatically identifies source type and extracts metadata for accurate citations"})]})]}),s.jsxs("div",{className:"flex gap-4",children:[s.jsx("div",{className:"flex-shrink-0",children:s.jsx(he,{className:"h-6 w-6 text-green-500"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-2",children:"In-Text Citations Included"}),s.jsx("p",{className:"text-muted-foreground text-sm",children:"Get both reference list and in-text citation formats for complete APA compliance"})]})]})]}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex gap-4",children:[s.jsx("div",{className:"flex-shrink-0",children:s.jsx(he,{className:"h-6 w-6 text-green-500"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-2",children:"Multiple Source Types"}),s.jsx("p",{className:"text-muted-foreground text-sm",children:"Support for websites, journals, books, reports, and more academic sources"})]})]}),s.jsxs("div",{className:"flex gap-4",children:[s.jsx("div",{className:"flex-shrink-0",children:s.jsx(he,{className:"h-6 w-6 text-green-500"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-2",children:"DOI and ISBN Support"}),s.jsx("p",{className:"text-muted-foreground text-sm",children:"Direct citation generation from DOI numbers and ISBN codes"})]})]}),s.jsxs("div",{className:"flex gap-4",children:[s.jsx("div",{className:"flex-shrink-0",children:s.jsx(he,{className:"h-6 w-6 text-green-500"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-2",children:"Export and Share"}),s.jsx("p",{className:"text-muted-foreground text-sm",children:"Copy citations to clipboard or export to reference managers"})]})]})]})]})]})})}),s.jsx("section",{className:"py-16 bg-muted/30",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[s.jsx("h2",{className:"text-3xl font-bold mb-8",children:"APA Citation Format Examples"}),s.jsxs("div",{className:"space-y-6 text-left",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-2",children:"APA Website Citation"}),s.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"For citing websites and online articles in APA format"}),s.jsxs("div",{className:"bg-background border p-4 rounded text-sm font-mono",children:["Author, A. A. (Year, Month Date). Title of web page. ",s.jsx("em",{children:"Website Name"}),". URL"]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-2",children:"APA Journal Article Citation"}),s.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"For academic journal articles with DOI in APA style"}),s.jsxs("div",{className:"bg-background border p-4 rounded text-sm font-mono",children:["Author, A. A. (Year). Title of article. ",s.jsx("em",{children:"Journal Name"}),", Volume(Issue), pages. https://doi.org/xx.xxxx"]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-2",children:"APA Book Citation"}),s.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"For books and textbooks in APA citation format"}),s.jsxs("div",{className:"bg-background border p-4 rounded text-sm font-mono",children:["Author, A. A. (Year). ",s.jsx("em",{children:"Title of book"})," (Edition). Publisher Name."]})]})]})]})})}),s.jsx(st,{})]})}const $8={"@context":"https://schema.org","@type":"WebPage",name:"Free MLA Citation Generator | Cite.ai",description:"Generate perfect MLA citations instantly from any URL, DOI, or ISBN. Free MLA citation generator following the latest MLA 9th edition guidelines.",url:"https://academicite.com/mla-citation-generator",isPartOf:{"@type":"WebSite",url:"https://academicite.com/",name:"Cite.ai"}};function W8(){const[e,t]=h.useState(null),[n,r]=h.useState(!1),[i,a]=h.useState("");return s.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify($8)}}),s.jsx(rt,{}),s.jsx("section",{className:"min-h-screen bg-background",children:s.jsx("div",{className:"container mx-auto px-6 py-16",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 min-h-[80vh] items-center",children:[s.jsxs(M.div,{className:"space-y-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[s.jsxs("div",{className:"space-y-6",children:[s.jsxs("h1",{className:"text-6xl lg:text-8xl font-semibold tracking-tight leading-none",children:["MLA",s.jsx("br",{}),"Citation",s.jsx("br",{}),s.jsx("span",{className:"text-muted-foreground",children:"Generator"})]}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-lg",children:"Generate perfect MLA 9th edition citations instantly from any URL, DOI, or ISBN. Free, accurate, and trusted by students and teachers worldwide."})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s.jsxs(J,{size:"lg",className:"rounded-full",onClick:()=>{var o;return(o=document.getElementById("citation-tool"))==null?void 0:o.scrollIntoView({behavior:"smooth"})},children:["Start Citing Now",s.jsx(fn,{className:"ml-2 h-4 w-4"})]}),s.jsx(J,{size:"lg",variant:"outline",className:"rounded-full",asChild:!0,children:s.jsx("a",{href:"/learn",children:"Learn MLA Style"})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-6 pt-8",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(he,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-sm font-medium",children:"MLA 9th Edition"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"Latest guidelines"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ke,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-sm font-medium",children:"Works Cited"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"Perfect formatting"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Wt,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-sm font-medium",children:"50K+ Users"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"Trusted worldwide"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Js,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-sm font-medium",children:"100% Free"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"No hidden costs"})]})]})]}),s.jsx(M.div,{className:"bg-muted rounded-sm p-8",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.6,delay:.2},children:s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[s.jsx(Be,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-lg font-semibold",children:"MLA Citation Example"})]}),s.jsxs("div",{className:"bg-background border rounded-sm p-6 text-sm leading-relaxed",children:[s.jsx("div",{className:"font-medium mb-2",children:"Journal Article:"}),s.jsxs("div",{className:"text-muted-foreground",children:['Smith, John A., and Mary B. Johnson. "The Impact of Artificial Intelligence on Academic Research."',s.jsx("em",{children:"Journal of Educational Technology"}),", vol. 45, no. 3, 2023, pp. 123-145."]})]}),s.jsxs("div",{className:"bg-background border rounded-sm p-6 text-sm leading-relaxed",children:[s.jsx("div",{className:"font-medium mb-2",children:"Website:"}),s.jsxs("div",{className:"text-muted-foreground",children:['Brown, Lisa. "Understanding MLA Format." ',s.jsx("em",{children:"Academic Writing Guide"}),", 15 Mar. 2023, example.com/mla-guide."]})]})]})})]})})}),s.jsx(je,{}),s.jsx("section",{id:"citation-tool",className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Generate MLA Citations"}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-2xl mx-auto",children:"Simply paste a URL, DOI, or ISBN and get perfectly formatted MLA citations in seconds."})]}),s.jsxs("div",{className:"space-y-8",children:[s.jsx(qi,{onGenerateStart:()=>r(!0),onGenerateSuccess:t,onGenerateError:a,defaultFormat:"mla"}),e&&s.jsx(Ki,{citationResult:e,isLoading:n,errorMessage:i})]})]})}),s.jsx(je,{}),s.jsx("section",{className:"py-24 bg-muted",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"MLA Style Guidelines"}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-3xl mx-auto",children:"Understanding MLA format is essential for academic writing in literature, humanities, and liberal arts."})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[{title:"In-Text Citations",description:"Use author-page format: (Smith 45) or Smith argues that... (45).",example:"(Johnson and Lee 45)"},{title:"Works Cited",description:"Alphabetical list of all sources cited, double-spaced with hanging indent.",example:'Smith, John A. "Title of Work."'},{title:"Author Names",description:"Last name first for first author, normal order for additional authors.",example:"Smith, John A., and Mary Johnson."},{title:"Publication Info",description:"Include publisher, publication date, and location information.",example:"Oxford University Press, 2023"},{title:"Web Sources",description:"Include website name, publication date, and access date if needed.",example:"Web. 15 Mar. 2023."},{title:"Page Numbers",description:"Use page numbers for print sources, omit 'p.' or 'pp.' abbreviations.",example:"(Smith 45-47)"}].map((o,l)=>s.jsxs(M.div,{className:"bg-background p-8 rounded-sm border",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:l*.1},viewport:{once:!0},children:[s.jsx("h3",{className:"text-xl font-semibold tracking-tight mb-4",children:o.title}),s.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:o.description}),s.jsx("div",{className:"bg-muted p-3 rounded text-sm font-mono",children:o.example})]},l))})]})}),s.jsx(st,{})]})}const H8={"@context":"https://schema.org","@type":"WebPage",name:"Free Chicago Citation Generator | Cite.ai",description:"Generate perfect Chicago citations instantly from any URL, DOI, or ISBN. Free Chicago citation generator following the latest Chicago Manual of Style 17th edition guidelines.",url:"https://academicite.com/chicago-citation-generator",isPartOf:{"@type":"WebSite",url:"https://academicite.com/",name:"Cite.ai"}};function G8(){const[e,t]=h.useState(null),[n,r]=h.useState(!1),[i,a]=h.useState("");return s.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(H8)}}),s.jsx(rt,{}),s.jsx("section",{className:"min-h-screen bg-background",children:s.jsx("div",{className:"container mx-auto px-6 py-16",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 min-h-[80vh] items-center",children:[s.jsxs(M.div,{className:"space-y-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[s.jsxs("div",{className:"space-y-6",children:[s.jsxs("h1",{className:"text-6xl lg:text-8xl font-semibold tracking-tight leading-none",children:["Chicago",s.jsx("br",{}),"Citation",s.jsx("br",{}),s.jsx("span",{className:"text-muted-foreground",children:"Generator"})]}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-lg",children:"Generate perfect Chicago Manual of Style 17th edition citations instantly from any URL, DOI, or ISBN. Free, accurate, and trusted by historians and researchers worldwide."})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s.jsxs(J,{size:"lg",className:"rounded-full",onClick:()=>{var o;return(o=document.getElementById("citation-tool"))==null?void 0:o.scrollIntoView({behavior:"smooth"})},children:["Start Citing Now",s.jsx(fn,{className:"ml-2 h-4 w-4"})]}),s.jsx(J,{size:"lg",variant:"outline",className:"rounded-full",asChild:!0,children:s.jsx("a",{href:"/learn",children:"Learn Chicago Style"})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-6 pt-8",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(he,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-sm font-medium",children:"Chicago 17th Edition"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"Latest guidelines"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ke,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-sm font-medium",children:"Notes & Bibliography"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"Both styles supported"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Wt,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-sm font-medium",children:"50K+ Users"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"Trusted worldwide"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Js,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-sm font-medium",children:"100% Free"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"No hidden costs"})]})]})]}),s.jsx(M.div,{className:"bg-muted rounded-sm p-8",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.6,delay:.2},children:s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[s.jsx(Be,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-lg font-semibold",children:"Chicago Citation Examples"})]}),s.jsxs("div",{className:"bg-background border rounded-sm p-6 text-sm leading-relaxed",children:[s.jsx("div",{className:"font-medium mb-2",children:"Book (Notes-Bibliography):"}),s.jsxs("div",{className:"text-muted-foreground",children:[s.jsx("sup",{children:"1"})," John A. Smith and Mary B. Johnson, ",s.jsx("em",{children:"The Impact of Artificial Intelligence on Academic Research"})," (Chicago: University of Chicago Press, 2023), 45-67."]})]}),s.jsxs("div",{className:"bg-background border rounded-sm p-6 text-sm leading-relaxed",children:[s.jsx("div",{className:"font-medium mb-2",children:"Journal Article (Author-Date):"}),s.jsxs("div",{className:"text-muted-foreground",children:['Smith, John A., and Mary B. Johnson. "The Impact of Artificial Intelligence on Academic Research." ',s.jsx("em",{children:"Journal of Educational Technology"})," 45, no. 3 (2023): 123-145."]})]})]})})]})})}),s.jsx(je,{}),s.jsx("section",{id:"citation-tool",className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Generate Chicago Citations"}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-2xl mx-auto",children:"Simply paste a URL, DOI, or ISBN and get perfectly formatted Chicago citations in seconds."})]}),s.jsxs("div",{className:"space-y-8",children:[s.jsx(qi,{onGenerateStart:()=>r(!0),onGenerateSuccess:t,onGenerateError:a,defaultFormat:"chicago"}),e&&s.jsx(Ki,{citationResult:e,isLoading:n,errorMessage:i})]})]})}),s.jsx(je,{}),s.jsx("section",{className:"py-24 bg-muted",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Chicago Style Guidelines"}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-3xl mx-auto",children:"Understanding Chicago format is essential for academic writing in history, literature, and the arts."})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[{title:"Notes-Bibliography Style",description:"Uses footnotes or endnotes for citations and includes a bibliography at the end.",icon:Ke},{title:"Author-Date Style",description:"Uses in-text citations with author and date, similar to APA style.",icon:Be},{title:"Chicago 17th Edition",description:"Follow the latest Chicago Manual of Style guidelines for accurate citations.",icon:he}].map((o,l)=>s.jsxs(M.div,{className:"bg-background p-8 rounded-sm border",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:l*.1},viewport:{once:!0},children:[s.jsx(o.icon,{className:"h-12 w-12 text-primary mb-4"}),s.jsx("h3",{className:"text-xl font-semibold mb-4",children:o.title}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:o.description})]},l))})]})}),s.jsx(st,{})]})}const q8={"@context":"https://schema.org","@type":"WebPage",name:"Free Harvard Citation Generator | Cite.ai",description:"Generate perfect Harvard citations instantly from any URL, DOI, or ISBN. Free Harvard citation generator following the latest Harvard referencing style guidelines.",url:"https://academicite.com/harvard-citation-generator",isPartOf:{"@type":"WebSite",url:"https://academicite.com/",name:"Cite.ai"}};function K8(){const[e,t]=h.useState(null),[n,r]=h.useState(!1),[i,a]=h.useState("");return s.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(q8)}}),s.jsx(rt,{}),s.jsx("section",{className:"min-h-screen bg-background",children:s.jsx("div",{className:"container mx-auto px-6 py-16",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 min-h-[80vh] items-center",children:[s.jsxs(M.div,{className:"space-y-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[s.jsxs("div",{className:"space-y-6",children:[s.jsxs("h1",{className:"text-6xl lg:text-8xl font-semibold tracking-tight leading-none",children:["Harvard",s.jsx("br",{}),"Citation",s.jsx("br",{}),s.jsx("span",{className:"text-muted-foreground",children:"Generator"})]}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-lg",children:"Generate perfect Harvard referencing style citations instantly from any URL, DOI, or ISBN. Free, accurate, and trusted by UK students and researchers worldwide."})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s.jsxs(J,{size:"lg",className:"rounded-full",onClick:()=>{var o;return(o=document.getElementById("citation-tool"))==null?void 0:o.scrollIntoView({behavior:"smooth"})},children:["Start Citing Now",s.jsx(fn,{className:"ml-2 h-4 w-4"})]}),s.jsx(J,{size:"lg",variant:"outline",className:"rounded-full",asChild:!0,children:s.jsx("a",{href:"/learn",children:"Learn Harvard Style"})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-6 pt-8",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(he,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-sm font-medium",children:"Harvard Style"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"Latest guidelines"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ke,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-sm font-medium",children:"Author-Date Format"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"Perfect formatting"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Wt,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-sm font-medium",children:"50K+ Users"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"Trusted worldwide"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Js,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-sm font-medium",children:"100% Free"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"No hidden costs"})]})]})]}),s.jsx(M.div,{className:"bg-muted rounded-sm p-8",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.6,delay:.2},children:s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[s.jsx(Be,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-lg font-semibold",children:"Harvard Citation Examples"})]}),s.jsxs("div",{className:"bg-background border rounded-sm p-6 text-sm leading-relaxed",children:[s.jsx("div",{className:"font-medium mb-2",children:"Book:"}),s.jsxs("div",{className:"text-muted-foreground",children:["Smith, J.A. and Johnson, M.B., 2023. ",s.jsx("em",{children:"The impact of artificial intelligence on academic research"}),". Chicago: University of Chicago Press."]})]}),s.jsxs("div",{className:"bg-background border rounded-sm p-6 text-sm leading-relaxed",children:[s.jsx("div",{className:"font-medium mb-2",children:"Journal Article:"}),s.jsxs("div",{className:"text-muted-foreground",children:["Smith, J.A. and Johnson, M.B., 2023. The impact of artificial intelligence on academic research. ",s.jsx("em",{children:"Journal of Educational Technology"}),", 45(3), pp.123-145."]})]}),s.jsxs("div",{className:"bg-background border rounded-sm p-6 text-sm leading-relaxed",children:[s.jsx("div",{className:"font-medium mb-2",children:"Website:"}),s.jsxs("div",{className:"text-muted-foreground",children:["Brown, L., 2023. ",s.jsx("em",{children:"Understanding Harvard format"}),". [online] Academic Writing Guide. Available at: [Accessed 15 Mar. 2023]."]})]})]})})]})})}),s.jsx(je,{}),s.jsx("section",{id:"citation-tool",className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Generate Harvard Citations"}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-2xl mx-auto",children:"Simply paste a URL, DOI, or ISBN and get perfectly formatted Harvard citations in seconds."})]}),s.jsxs("div",{className:"space-y-8",children:[s.jsx(qi,{onGenerateStart:()=>r(!0),onGenerateSuccess:t,onGenerateError:a,defaultFormat:"harvard"}),e&&s.jsx(Ki,{citation:e,isLoading:n,error:i})]})]})}),s.jsx(je,{}),s.jsx("section",{className:"py-24 bg-muted",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Harvard Style Guidelines"}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-3xl mx-auto",children:"Understanding Harvard format is essential for academic writing in UK universities and many international institutions."})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[{title:"Author-Date System",description:"Uses in-text citations with author surname and year of publication.",icon:Ke},{title:"Reference List",description:"Alphabetical list of all sources cited in your work at the end of your document.",icon:Be},{title:"UK Standard",description:"Widely used in UK universities and accepted internationally.",icon:he}].map((o,l)=>s.jsxs(M.div,{className:"bg-background p-8 rounded-sm border",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:l*.1},viewport:{once:!0},children:[s.jsx(o.icon,{className:"h-12 w-12 text-primary mb-4"}),s.jsx("h3",{className:"text-xl font-semibold mb-4",children:o.title}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:o.description})]},l))})]})}),s.jsx(st,{})]})}const Z8={"@context":"https://schema.org","@type":"WebPage",name:"Free IEEE Citation Generator | Cite.ai",description:"Generate perfect IEEE citations instantly from any URL, DOI, or ISBN. Free IEEE citation generator following the latest IEEE citation style guidelines.",url:"https://academicite.com/ieee-citation-generator",isPartOf:{"@type":"WebSite",url:"https://academicite.com/",name:"Cite.ai"}};function Q8(){const[e,t]=h.useState(null),[n,r]=h.useState(!1),[i,a]=h.useState("");return s.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(Z8)}}),s.jsx(rt,{}),s.jsx("section",{className:"min-h-screen bg-background",children:s.jsx("div",{className:"container mx-auto px-6 py-16",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 min-h-[80vh] items-center",children:[s.jsxs(M.div,{className:"space-y-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[s.jsxs("div",{className:"space-y-6",children:[s.jsxs("h1",{className:"text-6xl lg:text-8xl font-semibold tracking-tight leading-none",children:["IEEE",s.jsx("br",{}),"Citation",s.jsx("br",{}),s.jsx("span",{className:"text-muted-foreground",children:"Generator"})]}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-lg",children:"Generate perfect IEEE citation style references instantly from any URL, DOI, or ISBN. Free, accurate, and trusted by engineers and computer scientists worldwide."})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s.jsxs(J,{size:"lg",className:"rounded-full",onClick:()=>{var o;return(o=document.getElementById("citation-tool"))==null?void 0:o.scrollIntoView({behavior:"smooth"})},children:["Start Citing Now",s.jsx(fn,{className:"ml-2 h-4 w-4"})]}),s.jsx(J,{size:"lg",variant:"outline",className:"rounded-full",asChild:!0,children:s.jsx("a",{href:"/learn",children:"Learn IEEE Style"})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-6 pt-8",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(he,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-sm font-medium",children:"IEEE Standard"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"Latest guidelines"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Fs,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-sm font-medium",children:"Numbered System"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"Sequential citations"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Wt,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-sm font-medium",children:"50K+ Users"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"Trusted worldwide"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Js,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-sm font-medium",children:"100% Free"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"No hidden costs"})]})]})]}),s.jsx(M.div,{className:"bg-muted rounded-sm p-8",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.6,delay:.2},children:s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[s.jsx(Be,{className:"h-6 w-6 text-primary"}),s.jsx("div",{className:"text-lg font-semibold",children:"IEEE Citation Examples"})]}),s.jsxs("div",{className:"bg-background border rounded-sm p-6 text-sm leading-relaxed",children:[s.jsx("div",{className:"font-medium mb-2",children:"Journal Article:"}),s.jsxs("div",{className:"text-muted-foreground",children:['J. A. Smith and M. B. Johnson, "The impact of artificial intelligence on academic research," ',s.jsx("em",{children:"Journal of Educational Technology"}),", vol. 45, no. 3, pp. 123-145, 2023."]})]}),s.jsxs("div",{className:"bg-background border rounded-sm p-6 text-sm leading-relaxed",children:[s.jsx("div",{className:"font-medium mb-2",children:"Conference Paper:"}),s.jsxs("div",{className:"text-muted-foreground",children:['J. A. Smith, "Machine learning in education," in ',s.jsx("em",{children:"Proc. IEEE Conf. Educational Technology"}),", New York, NY, USA, 2023, pp. 45-52."]})]}),s.jsxs("div",{className:"bg-background border rounded-sm p-6 text-sm leading-relaxed",children:[s.jsx("div",{className:"font-medium mb-2",children:"Website:"}),s.jsx("div",{className:"text-muted-foreground",children:'L. Brown, "Understanding IEEE format," Academic Writing Guide, Mar. 15, 2023. [Online]. Available: https://example.com/ieee-guide'})]})]})})]})})}),s.jsx(je,{}),s.jsx("section",{id:"citation-tool",className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Generate IEEE Citations"}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-2xl mx-auto",children:"Simply paste a URL, DOI, or ISBN and get perfectly formatted IEEE citations in seconds."})]}),s.jsxs("div",{className:"space-y-8",children:[s.jsx(qi,{onGenerateStart:()=>r(!0),onGenerateSuccess:t,onGenerateError:a,defaultFormat:"ieee"}),e&&s.jsx(Ki,{citation:e,isLoading:n,error:i})]})]})}),s.jsx(je,{}),s.jsx("section",{className:"py-24 bg-muted",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"IEEE Style Guidelines"}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-3xl mx-auto",children:"Understanding IEEE format is essential for academic writing in engineering, computer science, and technology fields."})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[{title:"Numbered Citations",description:"Uses sequential numbers in square brackets [1], [2], [3] for in-text citations.",icon:Ke},{title:"Reference List",description:"Numbered list of references in the order they appear in the text.",icon:Be},{title:"Engineering Standard",description:"Widely used in engineering, computer science, and technology publications.",icon:Fs}].map((o,l)=>s.jsxs(M.div,{className:"bg-background p-8 rounded-sm border",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:l*.1},viewport:{once:!0},children:[s.jsx(o.icon,{className:"h-12 w-12 text-primary mb-4"}),s.jsx("h3",{className:"text-xl font-semibold mb-4",children:o.title}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:o.description})]},l))})]})}),s.jsx(st,{})]})}const Y8={"@context":"https://schema.org","@type":"WebPage",name:"Citation Styles Comparison: APA vs MLA vs Chicago vs Harvard vs IEEE | Cite.ai",description:"Compare APA, MLA, Chicago, Harvard, and IEEE citation styles. Learn the differences, when to use each style, and see examples side by side.",url:"https://academicite.com/citation-styles-comparison",isPartOf:{"@type":"WebSite",url:"https://academicite.com/",name:"Cite.ai"}};function J8(){const e=[{name:"APA",fullName:"American Psychological Association",fields:["Psychology","Education","Social Sciences"],inTextExample:"(Smith, 2023, p. 45)",referenceExample:"Smith, J. A. (2023). The impact of AI on research. Journal of Technology, 45(3), 123-145.",keyFeatures:["Author-date system","DOI required","Hanging indent"],color:"bg-blue-50 border-blue-200",link:"/apa-citation-generator"},{name:"MLA",fullName:"Modern Language Association",fields:["Literature","Humanities","Liberal Arts"],inTextExample:"(Smith 45)",referenceExample:'Smith, John A. "The Impact of AI on Research." Journal of Technology, vol. 45, no. 3, 2023, pp. 123-145.',keyFeatures:["Author-page system","Works Cited","No cover page"],color:"bg-green-50 border-green-200",link:"/mla-citation-generator"},{name:"Chicago",fullName:"Chicago Manual of Style",fields:["History","Literature","Arts"],inTextExample:"¹Smith, The Impact of AI, 45.",referenceExample:'Smith, John A. "The Impact of AI on Research." Journal of Technology 45, no. 3 (2023): 123-145.',keyFeatures:["Notes-Bibliography","Author-Date","Footnotes/Endnotes"],color:"bg-purple-50 border-purple-200",link:"/chicago-citation-generator"},{name:"Harvard",fullName:"Harvard Referencing Style",fields:["UK Universities","Business","Sciences"],inTextExample:"(Smith 2023, p. 45)",referenceExample:"Smith, J.A., 2023. The impact of AI on research. Journal of Technology, 45(3), pp.123-145.",keyFeatures:["Author-date system","Reference list","UK standard"],color:"bg-red-50 border-red-200",link:"/harvard-citation-generator"},{name:"IEEE",fullName:"Institute of Electrical and Electronics Engineers",fields:["Engineering","Computer Science","Technology"],inTextExample:"[1]",referenceExample:'J. A. Smith, "The impact of AI on research," Journal of Technology, vol. 45, no. 3, pp. 123-145, 2023.',keyFeatures:["Numbered system","Sequential order","Abbreviated names"],color:"bg-orange-50 border-orange-200",link:"/ieee-citation-generator"}],t=[{feature:"In-text Citation",apa:"(Author, Year)",mla:"(Author Page)",chicago:"Footnote/Endnote",harvard:"(Author Year)",ieee:"[Number]"},{feature:"Reference List Name",apa:"References",mla:"Works Cited",chicago:"Bibliography",harvard:"Reference List",ieee:"References"},{feature:"Date Placement",apa:"After author",mla:"At end",chicago:"At end",harvard:"After author",ieee:"At end"},{feature:"Title Capitalization",apa:"Sentence case",mla:"Title case",chicago:"Title case",harvard:"Sentence case",ieee:"Title case"}];return s.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(Y8)}}),s.jsx(rt,{}),s.jsx("section",{className:"py-24 bg-background",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[s.jsxs("h1",{className:"text-5xl lg:text-7xl font-semibold tracking-tight leading-none mb-6",children:["Citation Styles",s.jsx("br",{}),s.jsx("span",{className:"text-muted-foreground",children:"Comparison"})]}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-3xl mx-auto",children:"Compare APA, MLA, Chicago, Harvard, and IEEE citation styles. Learn the differences, when to use each style, and see examples side by side."})]})})}),s.jsx(je,{}),s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Popular Citation Styles"}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-3xl mx-auto",children:"Each citation style has its own rules and is preferred in different academic fields."})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((n,r)=>s.jsx(M.div,{className:`p-8 rounded-sm border ${n.color}`,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:r*.1},viewport:{once:!0},children:s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-2xl font-semibold mb-2",children:n.name}),s.jsx("p",{className:"text-sm text-muted-foreground",children:n.fullName})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium mb-2",children:"Common Fields:"}),s.jsx("div",{className:"flex flex-wrap gap-2",children:n.fields.map(i=>s.jsx("span",{className:"px-2 py-1 bg-background rounded text-xs",children:i},i))})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium mb-2",children:"In-text Citation:"}),s.jsx("code",{className:"text-sm bg-background px-2 py-1 rounded",children:n.inTextExample})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium mb-2",children:"Key Features:"}),s.jsx("ul",{className:"text-sm space-y-1",children:n.keyFeatures.map(i=>s.jsxs("li",{className:"flex items-center gap-2",children:[s.jsx(he,{className:"h-3 w-3 text-primary"}),i]},i))})]}),s.jsx(J,{asChild:!0,className:"w-full",children:s.jsxs(lt,{href:n.link,children:["Use ",n.name," Generator",s.jsx(fn,{className:"ml-2 h-4 w-4"})]})})]})},n.name))})]})}),s.jsx(je,{}),s.jsx("section",{className:"py-24 bg-muted",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Side-by-Side Comparison"}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-3xl mx-auto",children:"Compare key features of each citation style to understand their differences."})]}),s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full bg-background rounded-sm border",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"border-b",children:[s.jsx("th",{className:"text-left p-4 font-semibold",children:"Feature"}),s.jsx("th",{className:"text-left p-4 font-semibold text-blue-600",children:"APA"}),s.jsx("th",{className:"text-left p-4 font-semibold text-green-600",children:"MLA"}),s.jsx("th",{className:"text-left p-4 font-semibold text-purple-600",children:"Chicago"}),s.jsx("th",{className:"text-left p-4 font-semibold text-red-600",children:"Harvard"}),s.jsx("th",{className:"text-left p-4 font-semibold text-orange-600",children:"IEEE"})]})}),s.jsx("tbody",{children:t.map((n,r)=>s.jsxs("tr",{className:"border-b",children:[s.jsx("td",{className:"p-4 font-medium",children:n.feature}),s.jsx("td",{className:"p-4",children:n.apa}),s.jsx("td",{className:"p-4",children:n.mla}),s.jsx("td",{className:"p-4",children:n.chicago}),s.jsx("td",{className:"p-4",children:n.harvard}),s.jsx("td",{className:"p-4",children:n.ieee})]},r))})]})})]})}),s.jsx(je,{}),s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"When to Use Each Style"}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-3xl mx-auto",children:"Choose the right citation style based on your academic field and institution requirements."})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[{title:"APA Style",description:"Best for psychology, education, and social sciences. Emphasizes publication date for currency of research.",icon:Cr,color:"text-blue-600"},{title:"MLA Style",description:"Ideal for literature, humanities, and liberal arts. Focuses on authorship and page numbers for easy reference.",icon:Be,color:"text-green-600"},{title:"Chicago Style",description:"Perfect for history, literature, and arts. Offers flexibility with notes-bibliography or author-date systems.",icon:Ke,color:"text-purple-600"},{title:"Harvard Style",description:"Common in UK universities and business studies. Simple author-date system with clear reference formatting.",icon:Wt,color:"text-red-600"},{title:"IEEE Style",description:"Essential for engineering, computer science, and technology. Uses numbered citations for technical precision.",icon:Fs,color:"text-orange-600"}].map((n,r)=>s.jsxs(M.div,{className:"bg-muted p-8 rounded-sm border",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:r*.1},viewport:{once:!0},children:[s.jsx(n.icon,{className:`h-12 w-12 ${n.color} mb-4`}),s.jsx("h3",{className:"text-xl font-semibold mb-4",children:n.title}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n.description})]},r))})]})}),s.jsx(je,{}),s.jsx("section",{className:"py-24 bg-muted",children:s.jsx("div",{className:"container mx-auto px-6 text-center",children:s.jsxs(M.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight mb-6",children:"Ready to Generate Citations?"}),s.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground max-w-2xl mx-auto mb-8",children:"Choose your citation style and start generating perfect citations instantly."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsx(J,{size:"lg",asChild:!0,children:s.jsxs(lt,{href:"/",children:["Start Citing Now",s.jsx(fn,{className:"ml-2 h-4 w-4"})]})}),s.jsx(J,{size:"lg",variant:"outline",asChild:!0,children:s.jsx(lt,{href:"/learn",children:"Learn More"})})]})]})})}),s.jsx(st,{})]})}const X8={"@context":"https://schema.org","@type":"Article",headline:"Complete Citation Guide: APA, MLA, Chicago, Harvard & IEEE Formats",description:"Comprehensive guide to academic citation formats including APA 7th edition, MLA 9th edition, Chicago, Harvard, and IEEE styles with examples and best practices.",author:{"@type":"Organization",name:"Cite.ai Team"},publisher:{"@type":"Organization",name:"Cite.ai",logo:{"@type":"ImageObject",url:"https://academicite.com/app_icon_1.svg"}},datePublished:"2025-06-10",dateModified:"2025-06-10"},ez=[{name:"APA 7th Edition",icon:Ke,description:"American Psychological Association format used in psychology, education, and social sciences",usage:"95% of psychology papers",keyFeatures:["Author-date in-text citations","References page alphabetically ordered","DOI or URL required for online sources","Hanging indent for reference entries"],example:{book:"Smith, J. (2023). *Research methods in psychology* (3rd ed.). Academic Press.",journal:"Johnson, M., & Williams, P. (2024). Cognitive behavioral therapy outcomes. *Journal of Psychology*, 45(2), 123-145. https://doi.org/10.1037/example",website:"National Institute of Mental Health. (2024, March 15). *Understanding anxiety disorders*. https://www.nimh.nih.gov/anxiety"},link:"/apa-citation-generator"},{name:"MLA 9th Edition",icon:Be,description:"Modern Language Association format for literature, language, and humanities research",usage:"90% of literature papers",keyFeatures:["Author-page in-text citations","Works Cited page alphabetically ordered","Container concept for complex sources","Flexible guidelines for digital sources"],example:{book:"Smith, John. *Research Methods in Literature*. Academic Press, 2023.",journal:'Johnson, Mary, and Paul Williams. "Digital Humanities Approaches." *Modern Literature Review*, vol. 45, no. 2, 2024, pp. 123-145.',website:'National Endowment for the Arts. "Supporting Literary Arts." *NEA.gov*, 15 Mar. 2024, www.arts.gov/literary-support.'},link:"/mla-citation-generator"},{name:"Chicago Style",icon:Cr,description:"University of Chicago format with notes-bibliography and author-date systems",usage:"85% of history papers",keyFeatures:["Footnotes or endnotes system","Bibliography page required","Detailed publication information","Historical document emphasis"],example:{book:"Smith, John. *Research Methods in History*. Chicago: Academic Press, 2023.",journal:'Johnson, Mary, and Paul Williams. "Historical Research Methods." *History Review* 45, no. 2 (2024): 123-145.',website:'National Archives. "Digital Collections." Accessed March 15, 2024. https://www.archives.gov/digital.'},link:"/chicago-citation-generator"},{name:"Harvard Style",icon:Wt,description:"Author-date referencing system popular in UK universities and business schools",usage:"80% of UK academic papers",keyFeatures:["Author-date in-text citations","Reference list alphabetically ordered","Emphasis on publication dates","Widely used in business and economics"],example:{book:"Smith, J 2023, *Research methods in business*, Academic Press, London.",journal:"Johnson, M & Williams, P 2024, 'Business research approaches', *Business Review*, vol. 45, no. 2, pp. 123-145.",website:"Department for Business 2024, *Supporting small business*, viewed 15 March 2024, ."},link:"/harvard-citation-generator"},{name:"IEEE Style",icon:Dx,description:"Institute of Electrical and Electronics Engineers format for engineering and technology",usage:"95% of engineering papers",keyFeatures:["Numbered reference system","References in order of appearance","Abbreviated journal names","Technical publication focus"],example:{book:"[1] J. Smith, *Research Methods in Engineering*, 3rd ed. New York: Academic Press, 2023.",journal:'[2] M. Johnson and P. Williams, "Signal processing techniques," *IEEE Trans. Signal Process.*, vol. 45, no. 2, pp. 123-145, Mar. 2024.',website:'[3] IEEE, "Engineering standards," IEEE.org, Mar. 15, 2024. [Online]. Available: https://www.ieee.org/standards'},link:"/ieee-citation-generator"}],tz=[{title:"Consistency is Key",description:"Use the same citation style throughout your entire document. Mixing styles confuses readers and violates academic standards.",tips:["Choose one style guide and stick to it","Double-check formatting requirements","Use citation management tools"]},{title:"Cite While You Write",description:"Add citations immediately when incorporating sources rather than trying to remember them later.",tips:["Keep track of all sources used","Note page numbers for direct quotes","Save complete bibliographic information"]},{title:"Verify Source Credibility",description:"Ensure all sources are credible, peer-reviewed, and appropriate for your academic level.",tips:["Use academic databases","Check publication dates","Verify author credentials"]},{title:"Avoid Plagiarism",description:"Properly attribute all ideas, quotes, and paraphrases to their original sources.",tips:["Cite direct quotes exactly","Paraphrase properly with attribution","Include page numbers when required"]}],nz=[{question:"When do I need to cite sources?",answer:"Cite sources when using direct quotes, paraphrasing ideas, referencing specific data or statistics, or building upon someone else's research. Even common knowledge should be cited if it's specific to a particular field."},{question:"How many sources should I use in my paper?",answer:"The number varies by paper length and academic level. Generally, use 1-3 sources per page for undergraduate work, 2-4 for graduate work. Quality matters more than quantity - choose relevant, credible sources."},{question:"Can I cite Wikipedia in academic papers?",answer:"Most academic institutions don't accept Wikipedia as a credible source for formal papers. However, you can use Wikipedia's reference list to find primary sources and cite those instead."},{question:"What's the difference between a reference list and bibliography?",answer:"A reference list includes only sources cited in your text, while a bibliography may include additional sources you consulted but didn't cite. Requirements vary by citation style."},{question:"How do I cite sources with multiple authors?",answer:"Citation format depends on the style guide. APA uses 'et al.' after the first author for 3+ authors, MLA lists all authors or uses 'et al.' for 3+, and other styles have specific rules."},{question:"Do I need to cite common knowledge?",answer:"No citation needed for general common knowledge (e.g., 'water boils at 100°C'), but field-specific common knowledge should be cited until you're an expert in that field."}];function rz(){return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(xc,{url:"https://academicite.com/citation-guide",name:"Complete Citation Guide - Cite.ai",description:"Master academic citations with our comprehensive guide covering all major formats"}),s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(X8)}}),s.jsx(rt,{}),s.jsx("section",{className:"pt-24 pb-16 bg-gradient-to-br from-background via-muted/30 to-background",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsxs(M.div,{className:"text-center max-w-4xl mx-auto",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},children:[s.jsxs("div",{className:"inline-flex items-center gap-2 bg-primary/10 text-primary rounded-full px-6 py-3 text-sm font-medium mb-8",children:[s.jsx(Be,{className:"h-4 w-4"}),"Citation Guide"]}),s.jsxs("h1",{className:"text-4xl sm:text-5xl md:text-6xl font-bold tracking-tight mb-6",children:["Master Academic",s.jsx("span",{className:"block text-primary mt-2",children:"Citations"})]}),s.jsx("p",{className:"text-xl text-muted-foreground leading-relaxed max-w-3xl mx-auto mb-8",children:"Complete guide to APA, MLA, Chicago, Harvard, and IEEE citation formats with examples, best practices, and common mistakes to avoid."}),s.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4 text-sm text-muted-foreground",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(he,{className:"h-4 w-4 text-green-500"}),s.jsx("span",{children:"5 Major Citation Styles"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(he,{className:"h-4 w-4 text-green-500"}),s.jsx("span",{children:"Real Examples"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(he,{className:"h-4 w-4 text-green-500"}),s.jsx("span",{children:"Best Practices"})]})]})]})})}),s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Major Citation Formats"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Comprehensive overview of the most commonly used academic citation styles"})]}),s.jsx("div",{className:"space-y-12",children:ez.map((e,t)=>s.jsx(M.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:t*.1},viewport:{once:!0},children:s.jsxs(pe,{className:"overflow-hidden",children:[s.jsx(_e,{className:"bg-muted/50",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:"p-3 bg-primary/10 rounded-lg",children:s.jsx(e.icon,{className:"h-6 w-6 text-primary"})}),s.jsxs("div",{children:[s.jsx(De,{className:"text-2xl",children:e.name}),s.jsx("p",{className:"text-muted-foreground mt-1",children:e.description})]})]}),s.jsxs("div",{className:"text-right",children:[s.jsx(pt,{variant:"secondary",className:"mb-2",children:e.usage}),s.jsx(lt,{href:e.link,children:s.jsxs("span",{className:"flex items-center gap-2 text-primary hover:underline text-sm",children:["Try Generator ",s.jsx(fn,{className:"h-4 w-4"})]})})]})]})}),s.jsx(we,{className:"p-6",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-4",children:"Key Features"}),s.jsx("ul",{className:"space-y-2",children:e.keyFeatures.map((n,r)=>s.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[s.jsx(he,{className:"h-4 w-4 text-green-500 flex-shrink-0"}),n]},r))})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-4",children:"Examples"}),s.jsxs("div",{className:"space-y-3 text-sm",children:[s.jsxs("div",{children:[s.jsx("strong",{children:"Book:"}),s.jsx("p",{className:"text-muted-foreground mt-1 font-mono text-xs bg-muted p-2 rounded",children:e.example.book})]}),s.jsxs("div",{children:[s.jsx("strong",{children:"Journal:"}),s.jsx("p",{className:"text-muted-foreground mt-1 font-mono text-xs bg-muted p-2 rounded",children:e.example.journal})]}),s.jsxs("div",{children:[s.jsx("strong",{children:"Website:"}),s.jsx("p",{className:"text-muted-foreground mt-1 font-mono text-xs bg-muted p-2 rounded",children:e.example.website})]})]})]})]})})]})},t))})]})}),s.jsx(je,{}),s.jsx("section",{className:"py-24 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Citation Best Practices"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Follow these guidelines to ensure accurate and effective academic citations"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 max-w-6xl mx-auto",children:tz.map((e,t)=>s.jsx(M.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:t*.1},viewport:{once:!0},children:s.jsxs(pe,{className:"h-full",children:[s.jsxs(_e,{children:[s.jsx(De,{className:"text-xl",children:e.title}),s.jsx("p",{className:"text-muted-foreground",children:e.description})]}),s.jsx(we,{children:s.jsx("ul",{className:"space-y-2",children:e.tips.map((n,r)=>s.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[s.jsx(he,{className:"h-4 w-4 text-green-500 flex-shrink-0"}),n]},r))})})]})},t))})]})}),s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Frequently Asked Questions"}),s.jsx("p",{className:"text-muted-foreground",children:"Common questions about academic citations and referencing"})]}),s.jsx("div",{className:"space-y-6",children:nz.map((e,t)=>s.jsx(M.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:t*.1},viewport:{once:!0},children:s.jsxs(pe,{children:[s.jsx(_e,{children:s.jsx(De,{className:"text-lg",children:e.question})}),s.jsx(we,{children:s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.answer})})]})},t))})]})}),s.jsx(st,{})]})}const sz={"@context":"https://schema.org","@type":"Article",headline:"Academic Writing Resources: Research, Citation, and Publication Guide",description:"Comprehensive academic writing resources including research methods, citation guidelines, publication strategies, and writing tools for students and researchers.",author:{"@type":"Organization",name:"Cite.ai Team"},publisher:{"@type":"Organization",name:"Cite.ai",logo:{"@type":"ImageObject",url:"https://academicite.com/app_icon_1.svg"}},datePublished:"2025-06-10",dateModified:"2025-06-10"},iz=[{icon:hr,title:"Research & Planning",description:"Develop strong research skills and create effective writing plans",duration:"25-30% of total time",resources:[{name:"Research Methodology Guide",type:"Guide",description:"Systematic approach to academic research across disciplines"},{name:"Literature Review Framework",type:"Template",description:"Structure and organize your literature review effectively"},{name:"Research Question Development",type:"Worksheet",description:"Craft focused, researchable questions for your study"}],tips:["Start with broad topics, narrow to specific research questions","Use academic databases like JSTOR, PubMed, Google Scholar","Create detailed outlines before writing","Set realistic timelines with buffer periods"]},{icon:EN,title:"Writing & Drafting",description:"Transform research into clear, compelling academic prose",duration:"40-45% of total time",resources:[{name:"Academic Writing Style Guide",type:"Reference",description:"Master formal academic writing conventions and tone"},{name:"Paragraph Structure Templates",type:"Template",description:"Build coherent paragraphs with strong topic sentences"},{name:"Transition Word Bank",type:"Resource",description:"Connect ideas smoothly with appropriate transitions"}],tips:["Write first drafts without self-editing","Use active voice and clear, concise language","Include topic sentences for each paragraph","Maintain consistent argumentation throughout"]},{icon:Ke,title:"Citation & Documentation",description:"Properly attribute sources and avoid plagiarism",duration:"15-20% of total time",resources:[{name:"Citation Style Comparison",type:"Chart",description:"Quick reference for APA, MLA, Chicago, Harvard, IEEE"},{name:"Plagiarism Prevention Checklist",type:"Checklist",description:"Ensure proper attribution and original work"},{name:"Reference Management Tools",type:"Software List",description:"Zotero, Mendeley, EndNote comparison and tutorials"}],tips:["Cite sources immediately while writing","Keep detailed records of all sources used","Use citation management software","Double-check citation format requirements"]},{icon:Lx,title:"Revision & Editing",description:"Refine arguments, improve clarity, and polish presentation",duration:"20-25% of total time",resources:[{name:"Self-Editing Checklist",type:"Checklist",description:"Systematic approach to reviewing your own work"},{name:"Peer Review Guidelines",type:"Framework",description:"Give and receive constructive feedback effectively"},{name:"Grammar and Style Handbook",type:"Reference",description:"Common errors and style improvements for academic writing"}],tips:["Read drafts aloud to catch awkward phrasing","Check for logical flow and argument coherence","Verify all citations and references","Get feedback from peers or writing centers"]}],az=[{discipline:"STEM Fields",icon:Dx,color:"bg-blue-500",description:"Science, Technology, Engineering, Mathematics",keyFeatures:["Data presentation and visualization","Methodology sections and protocols","Statistical analysis reporting","Technical terminology usage"],commonFormats:["IEEE","APA","Vancouver"],resources:["Lab Report Templates","Data Visualization Guidelines","Statistical Reporting Standards"]},{discipline:"Humanities",icon:Be,color:"bg-purple-500",description:"Literature, History, Philosophy, Languages",keyFeatures:["Textual analysis and interpretation","Historical context integration","Critical theory application","Primary source evaluation"],commonFormats:["MLA","Chicago","Harvard"],resources:["Literary Analysis Frameworks","Historical Research Methods","Critical Theory Glossary"]},{discipline:"Social Sciences",icon:Wt,color:"bg-green-500",description:"Psychology, Sociology, Anthropology, Political Science",keyFeatures:["Empirical research design","Qualitative data analysis","Ethical considerations","Cross-cultural perspectives"],commonFormats:["APA","ASA","Chicago"],resources:["Survey Design Guidelines","Interview Protocol Templates","Ethics Review Checklists"]},{discipline:"Business & Economics",icon:Cr,color:"bg-orange-500",description:"Management, Finance, Marketing, Economics",keyFeatures:["Case study methodology","Financial data analysis","Market research integration","Strategic recommendations"],commonFormats:["APA","Harvard","Chicago"],resources:["Case Study Templates","Financial Analysis Guides","Business Report Formats"]}],oz=[{category:"Citation Management",tools:[{name:"Cite.ai Citation Generator",description:"Automatic citation generation from URLs, DOIs, and ISBNs",features:["All major formats","Instant generation","Export options"],link:"/",free:!0},{name:"Zotero",description:"Free reference management with browser integration",features:["PDF organization","Group libraries","Word plugins"],external:!0,free:!0},{name:"Mendeley",description:"Reference manager with social networking features",features:["PDF annotation","Research networking","Mobile apps"],external:!0,free:!0}]},{category:"Writing & Editing",tools:[{name:"Grammarly",description:"AI-powered writing assistant for grammar and style",features:["Grammar checking","Style suggestions","Plagiarism detection"],external:!0,free:!1},{name:"Hemingway Editor",description:"Readability and clarity improvement tool",features:["Readability scores","Sentence structure","Passive voice detection"],external:!0,free:!0},{name:"LaTeX",description:"Professional document preparation system",features:["Mathematical notation","Bibliography management","Professional formatting"],external:!0,free:!0}]},{category:"Research & Organization",tools:[{name:"Notion",description:"All-in-one workspace for notes and project management",features:["Note organization","Database creation","Team collaboration"],external:!0,free:!0},{name:"Obsidian",description:"Knowledge management with linked note-taking",features:["Bidirectional linking","Graph visualization","Plugin ecosystem"],external:!0,free:!0},{name:"Roam Research",description:"Network thought organization tool",features:["Bidirectional links","Daily notes","Block references"],external:!0,free:!1}]}],lz=[{title:"Journal Selection",description:"Choose the right venue for your research",steps:["Identify journals in your field with appropriate scope","Check impact factor and acceptance rates","Review recent issues for content alignment","Consider open access vs. subscription models"]},{title:"Manuscript Preparation",description:"Format and structure for publication success",steps:["Follow journal-specific submission guidelines","Write compelling abstracts and keywords","Prepare high-quality figures and tables","Include complete author information and conflicts"]},{title:"Peer Review Process",description:"Navigate the review and revision cycle",steps:["Respond constructively to reviewer comments","Address all concerns point-by-point","Highlight changes in revised manuscripts","Maintain professional tone in responses"]}];function cz(){return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(xc,{url:"https://academicite.com/academic-writing-resources",name:"Academic Writing Resources - Cite.ai",description:"Complete academic writing resource center for students and researchers"}),s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(sz)}}),s.jsx(rt,{}),s.jsx("section",{className:"pt-24 pb-16 bg-gradient-to-br from-background via-muted/30 to-background",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsxs(M.div,{className:"text-center max-w-4xl mx-auto",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},children:[s.jsxs("div",{className:"inline-flex items-center gap-2 bg-primary/10 text-primary rounded-full px-6 py-3 text-sm font-medium mb-8",children:[s.jsx(EN,{className:"h-4 w-4"}),"Academic Writing Resources"]}),s.jsxs("h1",{className:"text-4xl sm:text-5xl md:text-6xl font-bold tracking-tight mb-6",children:["Master Academic",s.jsx("span",{className:"block text-primary mt-2",children:"Writing"})]}),s.jsx("p",{className:"text-xl text-muted-foreground leading-relaxed max-w-3xl mx-auto mb-8",children:"Comprehensive resources for academic writing, research methodology, citation management, and publication strategies across all disciplines."}),s.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4 text-sm text-muted-foreground",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(he,{className:"h-4 w-4 text-green-500"}),s.jsx("span",{children:"Research to Publication"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(he,{className:"h-4 w-4 text-green-500"}),s.jsx("span",{children:"All Disciplines"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(he,{className:"h-4 w-4 text-green-500"}),s.jsx("span",{children:"Free Resources"})]})]})]})})}),s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Academic Writing Process"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Master each stage of academic writing from research planning to final publication"})]}),s.jsx("div",{className:"space-y-12",children:iz.map((e,t)=>s.jsx(M.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:t*.1},viewport:{once:!0},children:s.jsxs(pe,{className:"overflow-hidden",children:[s.jsx(_e,{className:"bg-muted/50",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:"p-3 bg-primary/10 rounded-lg",children:s.jsx(e.icon,{className:"h-6 w-6 text-primary"})}),s.jsxs("div",{children:[s.jsx(De,{className:"text-2xl",children:e.title}),s.jsx("p",{className:"text-muted-foreground mt-1",children:e.description})]})]}),s.jsxs(pt,{variant:"outline",className:"flex items-center gap-2",children:[s.jsx(Hi,{className:"h-4 w-4"}),e.duration]})]})}),s.jsx(we,{className:"p-6",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-4",children:"Key Resources"}),s.jsx("div",{className:"space-y-3",children:e.resources.map((n,r)=>s.jsxs("div",{className:"border rounded-lg p-3",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"font-medium text-sm",children:n.name}),s.jsx(pt,{variant:"secondary",className:"text-xs",children:n.type})]}),s.jsx("p",{className:"text-xs text-muted-foreground",children:n.description})]},r))})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-4",children:"Best Practices"}),s.jsx("ul",{className:"space-y-2",children:e.tips.map((n,r)=>s.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[s.jsx(he,{className:"h-4 w-4 text-green-500 flex-shrink-0 mt-0.5"}),n]},r))})]})]})})]})},t))})]})}),s.jsx(je,{}),s.jsx("section",{className:"py-24 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Discipline-Specific Writing Guides"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Tailored guidance for writing conventions across academic disciplines"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:az.map((e,t)=>s.jsx(M.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:t*.1},viewport:{once:!0},children:s.jsxs(pe,{className:"h-full",children:[s.jsx(_e,{children:s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:`p-3 ${e.color} rounded-lg text-white`,children:s.jsx(e.icon,{className:"h-6 w-6"})}),s.jsxs("div",{children:[s.jsx(De,{className:"text-xl",children:e.discipline}),s.jsx("p",{className:"text-muted-foreground text-sm",children:e.description})]})]})}),s.jsxs(we,{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-2",children:"Key Features"}),s.jsx("ul",{className:"space-y-1",children:e.keyFeatures.map((n,r)=>s.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[s.jsx(he,{className:"h-3 w-3 text-green-500 flex-shrink-0"}),n]},r))})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-2",children:"Common Formats"}),s.jsx("div",{className:"flex flex-wrap gap-2",children:e.commonFormats.map((n,r)=>s.jsx(pt,{variant:"outline",children:n},r))})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-2",children:"Specialized Resources"}),s.jsx("ul",{className:"space-y-1",children:e.resources.map((n,r)=>s.jsxs("li",{className:"text-sm text-muted-foreground",children:["• ",n]},r))})]})]})]})},t))})]})}),s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Essential Writing Tools"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Software and tools to streamline your academic writing workflow"})]}),s.jsx("div",{className:"space-y-12",children:oz.map((e,t)=>s.jsxs(M.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:t*.1},viewport:{once:!0},children:[s.jsx("div",{className:"mb-6",children:s.jsx("h3",{className:"text-2xl font-semibold mb-2",children:e.category})}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:e.tools.map((n,r)=>s.jsxs(pe,{className:"h-full",children:[s.jsxs(_e,{children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(De,{className:"text-lg",children:n.name}),s.jsxs("div",{className:"flex gap-2",children:[n.free&&s.jsx(pt,{variant:"secondary",children:"Free"}),n.external&&s.jsx(_4,{className:"h-4 w-4 text-muted-foreground"})]})]}),s.jsx("p",{className:"text-muted-foreground text-sm",children:n.description})]}),s.jsxs(we,{children:[s.jsx("ul",{className:"space-y-1 mb-4",children:n.features.map((i,a)=>s.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[s.jsx(he,{className:"h-3 w-3 text-green-500 flex-shrink-0"}),i]},a))}),n.link&&s.jsx(lt,{href:n.link,children:s.jsxs(J,{variant:"outline",size:"sm",className:"w-full",children:["Try Now ",s.jsx(fn,{className:"h-4 w-4 ml-2"})]})})]})]},r))})]},t))})]})}),s.jsx(je,{}),s.jsx("section",{className:"py-24 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs(M.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Academic Publishing Guide"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Navigate the publication process from manuscript preparation to peer review"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-6xl mx-auto",children:lz.map((e,t)=>s.jsx(M.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:t*.1},viewport:{once:!0},children:s.jsxs(pe,{className:"h-full",children:[s.jsxs(_e,{children:[s.jsx(De,{className:"text-xl",children:e.title}),s.jsx("p",{className:"text-muted-foreground",children:e.description})]}),s.jsx(we,{children:s.jsx("ol",{className:"space-y-2",children:e.steps.map((n,r)=>s.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[s.jsx("span",{className:"flex-shrink-0 w-5 h-5 bg-primary text-primary-foreground rounded-full flex items-center justify-center text-xs font-medium",children:r+1}),n]},r))})})]})},t))})]})}),s.jsx(st,{})]})}const dz={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"How do I cite a website in APA format?",acceptedAnswer:{"@type":"Answer",text:"To cite a website in APA format: Author, A. A. (Year, Month Date). Title of webpage. Website Name. URL. If no author is available, start with the title. Include retrieval date only if content changes regularly."}},{"@type":"Question",name:"What is the difference between APA and MLA citation styles?",acceptedAnswer:{"@type":"Answer",text:"APA uses author-date format (Smith, 2024) and is common in psychology and social sciences. MLA uses author-page format (Smith 15) and is used in literature and humanities. APA requires a References page while MLA uses Works Cited."}},{"@type":"Question",name:"Can I use this citation generator for free?",acceptedAnswer:{"@type":"Answer",text:"Yes, Cite.ai is completely free to use. Generate unlimited citations in APA, MLA, Chicago, Harvard, and IEEE formats from URLs, DOIs, and ISBNs without any cost or registration required."}}]},$w=[{title:"Citation Formats",icon:Ke,color:"bg-blue-500",questions:[{question:"How do I cite a website in APA format?",answer:"To cite a website in APA format: Author, A. A. (Year, Month Date). Title of webpage. Website Name. URL. If no author is available, start with the title. Include retrieval date only if content changes regularly.",keywords:["APA","website citation","URL citation"]},{question:"What is the difference between APA and MLA citation styles?",answer:"APA uses author-date format (Smith, 2024) and is common in psychology and social sciences. MLA uses author-page format (Smith 15) and is used in literature and humanities. APA requires a References page while MLA uses Works Cited.",keywords:["APA vs MLA","citation differences","format comparison"]},{question:"How do I cite a book with multiple authors?",answer:"For APA: List all authors up to 20. For 21+ authors, list first 19, then '...' then last author. For MLA: List all authors or use 'et al.' after first author for 3+ authors. For Chicago: Similar to APA but with different punctuation.",keywords:["multiple authors","book citation","et al"]},{question:"How do I cite a journal article with a DOI?",answer:"Include the DOI at the end of the citation. APA format: Author, A. A. (Year). Title of article. Title of Journal, Volume(Issue), pages. https://doi.org/10.xxxx. Don't include 'Retrieved from' or access dates for DOI sources.",keywords:["DOI citation","journal article","academic sources"]},{question:"When should I use Chicago style citations?",answer:"Chicago style is primarily used in history, literature, and arts. It offers two systems: notes-bibliography (with footnotes) and author-date (similar to APA). Choose based on your field and professor's requirements.",keywords:["Chicago style","history papers","footnotes"]}]},{title:"Using Citation Generators",icon:Wt,color:"bg-green-500",questions:[{question:"Can I use this citation generator for free?",answer:"Yes, Cite.ai is completely free to use. Generate unlimited citations in APA, MLA, Chicago, Harvard, and IEEE formats from URLs, DOIs, and ISBNs without any cost or registration required.",keywords:["free citation generator","no cost","unlimited use"]},{question:"How accurate are automatically generated citations?",answer:"Our citation generator is highly accurate, extracting metadata directly from sources. However, always double-check generated citations against style guide requirements, especially for unusual source types or when metadata is incomplete.",keywords:["citation accuracy","automatic generation","verification needed"]},{question:"Can I export citations to reference managers like Zotero?",answer:"Yes, you can copy citations and import them into Zotero, Mendeley, or EndNote. We also provide formatted citations you can paste directly into your document's bibliography section.",keywords:["export citations","Zotero","reference managers"]},{question:"What if the automatic citation is missing information?",answer:"If our generator can't find complete metadata, manually add missing information like author names, publication dates, or page numbers. This is common with older sources or websites with limited metadata.",keywords:["missing information","manual editing","incomplete metadata"]},{question:"Can I save my citations for later use?",answer:"Yes, you can create projects to organize and save your citations. This feature helps you manage references for different papers and easily access them when writing your bibliography.",keywords:["save citations","projects","citation management"]}]},{title:"Academic Writing",icon:Be,color:"bg-purple-500",questions:[{question:"When do I need to cite sources in my paper?",answer:"Cite sources when quoting directly, paraphrasing ideas, referencing specific data or statistics, or building upon someone else's research. Even common knowledge should be cited if it's specific to a particular field.",keywords:["when to cite","plagiarism prevention","source attribution"]},{question:"How many sources should I use in my research paper?",answer:"The number varies by paper length and academic level. Generally, use 1-3 sources per page for undergraduate work, 2-4 for graduate work. Quality matters more than quantity - choose relevant, credible sources.",keywords:["number of sources","research paper","source quantity"]},{question:"What's the difference between a reference list and bibliography?",answer:"A reference list includes only sources cited in your text, while a bibliography may include additional sources you consulted but didn't cite. Requirements vary by citation style and instructor preferences.",keywords:["reference list","bibliography","works cited"]},{question:"Can I cite Wikipedia in academic papers?",answer:"Most academic institutions don't accept Wikipedia as a credible source for formal papers. However, you can use Wikipedia's reference list to find primary sources and cite those instead.",keywords:["Wikipedia citation","credible sources","academic standards"]},{question:"How do I avoid plagiarism when paraphrasing?",answer:"Change both the words and sentence structure, not just synonyms. Always cite the original source even when paraphrasing. When in doubt, use direct quotes with proper attribution rather than paraphrasing.",keywords:["plagiarism prevention","paraphrasing","academic integrity"]}]},{title:"Technical Issues",icon:Uu,color:"bg-orange-500",questions:[{question:"Why can't the generator access some URLs?",answer:"Some websites block automated access or require subscriptions. Paywalled content, privacy-protected sites, or those with anti-bot measures may not work. Try accessing the source manually and entering details.",keywords:["URL access","blocked websites","paywall content"]},{question:"What file formats can I export citations in?",answer:"You can copy citations as formatted text for direct pasting into documents. For reference managers, copy the citation text and import it into your preferred software like Zotero, Mendeley, or EndNote.",keywords:["export formats","file types","citation formats"]},{question:"Does the citation generator work on mobile devices?",answer:"Yes, Cite.ai is fully responsive and works on smartphones and tablets. The interface adapts to smaller screens while maintaining all functionality for generating and managing citations on the go.",keywords:["mobile citation","responsive design","smartphone access"]},{question:"How often is the citation generator updated?",answer:"We regularly update our citation formats to match the latest style guide editions (APA 7th, MLA 9th, etc.) and improve metadata extraction. Updates are automatic - you always get the most current citation standards.",keywords:["citation updates","style guide versions","automatic updates"]},{question:"What should I do if a citation looks incorrect?",answer:"First, verify the source information is correct. Check if it's a formatting issue or missing metadata. Contact our support team if you find consistent errors with specific source types or domains.",keywords:["incorrect citations","error reporting","citation problems"]}]}],uz=["How to cite a website in APA","MLA format for books","Chicago style footnotes","Harvard referencing guide","IEEE citation format","Free citation generator","Cite journal articles","Reference vs bibliography","Academic writing tips","Plagiarism prevention"];function fz(){const[e,t]=h.useState("");h.useState(null);const n=$w.map(r=>({...r,questions:r.questions.filter(i=>i.question.toLowerCase().includes(e.toLowerCase())||i.answer.toLowerCase().includes(e.toLowerCase())||i.keywords.some(a=>a.toLowerCase().includes(e.toLowerCase())))})).filter(r=>r.questions.length>0);return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(xc,{url:"https://academicite.com/faq",name:"FAQ - Citation Generator Help - Cite.ai",description:"Comprehensive FAQ covering citation formats and academic writing questions"}),s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(dz)}}),s.jsx(rt,{}),s.jsx("section",{className:"pt-24 pb-16 bg-gradient-to-br from-background via-muted/30 to-background",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsxs(M.div,{className:"text-center max-w-4xl mx-auto",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},children:[s.jsxs("div",{className:"inline-flex items-center gap-2 bg-primary/10 text-primary rounded-full px-6 py-3 text-sm font-medium mb-8",children:[s.jsx(Bh,{className:"h-4 w-4"}),"Frequently Asked Questions"]}),s.jsxs("h1",{className:"text-4xl sm:text-5xl md:text-6xl font-bold tracking-tight mb-6",children:["Get Instant",s.jsx("span",{className:"block text-primary mt-2",children:"Answers"})]}),s.jsx("p",{className:"text-xl text-muted-foreground leading-relaxed max-w-3xl mx-auto mb-8",children:"Find answers to common questions about citation formats, academic writing, and using our citation generator effectively."}),s.jsxs("div",{className:"relative max-w-md mx-auto mb-8",children:[s.jsx(hr,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),s.jsx(jt,{placeholder:"Search FAQ...",value:e,onChange:r=>t(r.target.value),className:"pl-10"})]}),s.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[s.jsx("span",{className:"text-sm text-muted-foreground mr-2",children:"Popular:"}),uz.slice(0,5).map((r,i)=>s.jsx(J,{variant:"outline",size:"sm",onClick:()=>t(r),className:"text-xs",children:r},i))]})]})})}),s.jsx("section",{className:"py-24",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsx("div",{className:"space-y-16",children:(e?n:$w).map((r,i)=>s.jsxs(M.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:i*.1},viewport:{once:!0},children:[s.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[s.jsx("div",{className:`p-3 ${r.color} rounded-lg text-white`,children:s.jsx(r.icon,{className:"h-6 w-6"})}),s.jsx("h2",{className:"text-3xl font-bold",children:r.title}),s.jsxs(pt,{variant:"secondary",children:[r.questions.length," questions"]})]}),s.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:r.questions.map((a,o)=>s.jsxs(pe,{className:"h-full",children:[s.jsx(_e,{children:s.jsx(De,{className:"text-lg leading-tight",children:a.question})}),s.jsxs(we,{children:[s.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:a.answer}),s.jsx("div",{className:"flex flex-wrap gap-2",children:a.keywords.map((l,c)=>s.jsx(pt,{variant:"outline",className:"text-xs",children:l},c))})]})]},o))})]},i))})})}),e&&n.length===0&&s.jsx("section",{className:"py-16",children:s.jsx("div",{className:"container mx-auto px-6 text-center",children:s.jsxs("div",{className:"max-w-md mx-auto",children:[s.jsx(Uu,{className:"h-16 w-16 text-muted-foreground mx-auto mb-4"}),s.jsx("h3",{className:"text-xl font-semibold mb-2",children:"No results found"}),s.jsx("p",{className:"text-muted-foreground mb-6",children:"We couldn't find any questions matching your search. Try different keywords or browse all categories."}),s.jsx(J,{onClick:()=>t(""),variant:"outline",children:"Clear Search"})]})})}),s.jsx(je,{}),s.jsx("section",{className:"py-24 bg-muted/30",children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsxs(M.div,{className:"text-center max-w-2xl mx-auto",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Still Need Help?"}),s.jsx("p",{className:"text-muted-foreground mb-8",children:"Can't find the answer you're looking for? Our support team is here to help with any citation or academic writing questions."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsx(lt,{href:"/contact",children:s.jsxs(J,{className:"flex items-center gap-2",children:[s.jsx(Bh,{className:"h-4 w-4"}),"Contact Support"]})}),s.jsx(lt,{href:"/citation-guide",children:s.jsxs(J,{variant:"outline",className:"flex items-center gap-2",children:[s.jsx(Be,{className:"h-4 w-4"}),"Citation Guide",s.jsx(fn,{className:"h-4 w-4"})]})})]})]})})}),s.jsx(st,{})]})}var ry="Switch",[mz,Dz]=On(ry),[hz,pz]=mz(ry),FE=h.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:i,defaultChecked:a,required:o,disabled:l,value:c="on",onCheckedChange:d,form:u,...f}=e,[m,y]=h.useState(null),b=Fe(t,v=>y(v)),x=h.useRef(!1),w=m?u||!!m.closest("form"):!0,[g=!1,p]=wr({prop:i,defaultProp:a,onChange:d});return s.jsxs(hz,{scope:n,checked:g,disabled:l,children:[s.jsx(ue.button,{type:"button",role:"switch","aria-checked":g,"aria-required":o,"data-state":UE(g),"data-disabled":l?"":void 0,disabled:l,value:c,...f,ref:b,onClick:ae(e.onClick,v=>{p(j=>!j),w&&(x.current=v.isPropagationStopped(),x.current||v.stopPropagation())})}),w&&s.jsx(xz,{control:m,bubbles:!x.current,name:r,value:c,checked:g,required:o,disabled:l,form:u,style:{transform:"translateX(-100%)"}})]})});FE.displayName=ry;var VE="SwitchThumb",zE=h.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,i=pz(VE,n);return s.jsx(ue.span,{"data-state":UE(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})});zE.displayName=VE;var xz=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,a=h.useRef(null),o=AS(n),l=nC(t);return h.useEffect(()=>{const c=a.current,d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(o!==n&&f){const m=new Event("click",{bubbles:r});f.call(c,n),c.dispatchEvent(m)}},[o,n,r]),s.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function UE(e){return e?"checked":"unchecked"}var BE=FE,gz=zE;const Ko=h.forwardRef(({className:e,...t},n)=>s.jsx(BE,{className:re("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:s.jsx(gz,{className:re("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Ko.displayName=BE.displayName;function Ww({className:e,...t}){return s.jsx("div",{className:re("animate-pulse rounded-md bg-muted",e),...t})}function yz(){var x;const[e,t]=h.useState(""),[n,r]=h.useState("url"),[i,a]=h.useState({includeUrl:!0,includeDoi:!0,includeAccessDate:!0,dateFormat:"us",nameFormat:"last-first",titleCase:"sentence",italicizeTitles:!0}),[o,l]=h.useState("apa"),{toast:c}=Wi(),d=Aa({mutationFn:async w=>{const g=await fetch("/api/citations/preview-styles",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(w)});if(!g.ok)throw new Error("Failed to generate previews");return g.json()}}),{data:u}=$d({queryKey:["/api/citations/style-guide",o],queryFn:async()=>{const w=await fetch(`/api/citations/style-guide/${o}`);if(!w.ok)throw new Error("Failed to fetch style guide");return w.json()},enabled:!!o}),f=()=>{if(!e.trim()){c({title:"Input Required",description:"Please enter a URL, DOI, or ISBN to generate previews.",variant:"destructive"});return}d.mutate({sourceInput:e.trim(),inputType:n,customizations:i})},m=(w,g)=>{navigator.clipboard.writeText(w),c({title:"Citation Copied",description:`${g} citation copied to clipboard.`})},y=w=>w.includes("doi.org")||w.startsWith("10.")?"doi":/^(978|979)/.test(w.replace(/[-\s]/g,""))?"isbn":"url";h.useEffect(()=>{if(e){const w=y(e);r(w)}},[e]);const b={APA:"bg-blue-50 border-blue-200 text-blue-800",MLA:"bg-green-50 border-green-200 text-green-800",CHICAGO:"bg-purple-50 border-purple-200 text-purple-800",HARVARD:"bg-orange-50 border-orange-200 text-orange-800",IEEE:"bg-red-50 border-red-200 text-red-800"};return s.jsxs("div",{className:"min-h-screen bg-gray-50",children:[s.jsx(rt,{}),s.jsx("div",{className:"container mx-auto px-4 py-8",children:s.jsxs(M.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[s.jsxs("div",{className:"mb-8",children:[s.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Citation Style Preview & Customization"}),s.jsx("p",{className:"text-gray-600",children:"Compare citation formats and customize formatting options to match your requirements."})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[s.jsxs("div",{className:"lg:col-span-1 space-y-6",children:[s.jsxs(pe,{children:[s.jsx(_e,{children:s.jsxs(De,{className:"flex items-center",children:[s.jsx(Fs,{className:"h-5 w-5 mr-2 text-blue-600"}),"Source Input"]})}),s.jsxs(we,{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx(nn,{htmlFor:"source",children:"URL, DOI, or ISBN"}),s.jsx(gf,{id:"source",placeholder:"Enter URL, DOI (e.g., 10.1000/xyz123), or ISBN (e.g., 978-3-16-148410-0)",value:e,onChange:w=>t(w.target.value),className:"mt-1",rows:3})]}),s.jsxs("div",{children:[s.jsx(nn,{htmlFor:"inputType",children:"Input Type"}),s.jsxs(mi,{value:n,onValueChange:w=>r(w),children:[s.jsx(Cs,{children:s.jsx(hi,{})}),s.jsxs(Ss,{children:[s.jsx(Se,{value:"url",children:"Website URL"}),s.jsx(Se,{value:"doi",children:"DOI Link"}),s.jsx(Se,{value:"isbn",children:"ISBN Code"})]})]})]}),s.jsx(J,{onClick:f,disabled:d.isPending,className:"w-full",children:d.isPending?s.jsxs(s.Fragment,{children:[s.jsx(U4,{className:"h-4 w-4 mr-2 animate-spin"}),"Generating..."]}):s.jsxs(s.Fragment,{children:[s.jsx(Uh,{className:"h-4 w-4 mr-2"}),"Generate Previews"]})})]})]}),s.jsxs(pe,{children:[s.jsx(_e,{children:s.jsxs(De,{className:"flex items-center",children:[s.jsx(Wu,{className:"h-5 w-5 mr-2 text-purple-600"}),"Customization Options"]})}),s.jsxs(we,{className:"space-y-4",children:[s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(nn,{htmlFor:"includeUrl",children:"Include URL"}),s.jsx(Ko,{id:"includeUrl",checked:i.includeUrl,onCheckedChange:w=>a(g=>({...g,includeUrl:w}))})]}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(nn,{htmlFor:"includeDoi",children:"Include DOI"}),s.jsx(Ko,{id:"includeDoi",checked:i.includeDoi,onCheckedChange:w=>a(g=>({...g,includeDoi:w}))})]}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(nn,{htmlFor:"includeAccessDate",children:"Include Access Date"}),s.jsx(Ko,{id:"includeAccessDate",checked:i.includeAccessDate,onCheckedChange:w=>a(g=>({...g,includeAccessDate:w}))})]}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(nn,{htmlFor:"italicizeTitles",children:"Italicize Titles"}),s.jsx(Ko,{id:"italicizeTitles",checked:i.italicizeTitles,onCheckedChange:w=>a(g=>({...g,italicizeTitles:w}))})]})]}),s.jsx(je,{}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx(nn,{children:"Date Format"}),s.jsxs(mi,{value:i.dateFormat,onValueChange:w=>a(g=>({...g,dateFormat:w})),children:[s.jsx(Cs,{children:s.jsx(hi,{})}),s.jsxs(Ss,{children:[s.jsx(Se,{value:"us",children:"US (MM/DD/YYYY)"}),s.jsx(Se,{value:"international",children:"International (DD/MM/YYYY)"}),s.jsx(Se,{value:"iso",children:"ISO (YYYY-MM-DD)"})]})]})]}),s.jsxs("div",{children:[s.jsx(nn,{children:"Name Format"}),s.jsxs(mi,{value:i.nameFormat,onValueChange:w=>a(g=>({...g,nameFormat:w})),children:[s.jsx(Cs,{children:s.jsx(hi,{})}),s.jsxs(Ss,{children:[s.jsx(Se,{value:"last-first",children:"Last, First"}),s.jsx(Se,{value:"first-last",children:"First Last"})]})]})]}),s.jsxs("div",{children:[s.jsx(nn,{children:"Title Case"}),s.jsxs(mi,{value:i.titleCase,onValueChange:w=>a(g=>({...g,titleCase:w})),children:[s.jsx(Cs,{children:s.jsx(hi,{})}),s.jsxs(Ss,{children:[s.jsx(Se,{value:"sentence",children:"Sentence case"}),s.jsx(Se,{value:"title",children:"Title Case"}),s.jsx(Se,{value:"capitalize",children:"CAPITALIZE"})]})]})]})]})]})]})]}),s.jsx("div",{className:"lg:col-span-2",children:s.jsxs(Uk,{value:o,onValueChange:l,children:[s.jsxs(zg,{className:"grid w-full grid-cols-5",children:[s.jsx(Lr,{value:"apa",children:"APA"}),s.jsx(Lr,{value:"mla",children:"MLA"}),s.jsx(Lr,{value:"chicago",children:"Chicago"}),s.jsx(Lr,{value:"harvard",children:"Harvard"}),s.jsx(Lr,{value:"ieee",children:"IEEE"})]}),s.jsxs("div",{className:"mt-6",children:[d.isError&&s.jsxs(Ug,{className:"mb-4",children:[s.jsx(Vh,{className:"h-4 w-4"}),s.jsx(Bg,{children:"Failed to generate previews. Please check your input and try again."})]}),d.isPending?s.jsx("div",{className:"space-y-4",children:[...Array(5)].map((w,g)=>s.jsxs(pe,{children:[s.jsx(_e,{children:s.jsx(Ww,{className:"h-6 w-20"})}),s.jsx(we,{children:s.jsx(Ww,{className:"h-20 w-full"})})]},g))}):(x=d.data)!=null&&x.previews?s.jsx("div",{className:"space-y-4",children:d.data.previews.map(w=>s.jsxs(pe,{className:`transition-all duration-200 ${w.format.toLowerCase()===o?"ring-2 ring-blue-500 shadow-lg":"hover:shadow-md"}`,children:[s.jsx(_e,{children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(pt,{className:b[w.format]||"bg-gray-100",children:w.format}),s.jsx("span",{className:"text-sm text-gray-600",children:w.commonUse})]}),s.jsx(J,{variant:"outline",size:"sm",onClick:()=>m(w.formattedCitation,w.format),children:s.jsx(no,{className:"h-4 w-4"})})]})}),s.jsx(we,{children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx(nn,{className:"text-sm font-semibold",children:"Reference Citation:"}),s.jsx("div",{className:"p-3 bg-gray-50 rounded-md border text-sm font-mono leading-relaxed mt-1",children:w.formattedCitation})]}),w.inTextCitation&&s.jsxs("div",{children:[s.jsx(nn,{className:"text-sm font-semibold",children:"In-text Citation:"}),s.jsx("div",{className:"p-3 bg-blue-50 rounded-md border text-sm font-mono mt-1",children:w.inTextCitation})]}),s.jsxs("div",{children:[s.jsx(nn,{className:"text-sm font-semibold",children:"Key Features:"}),s.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:w.keyFeatures.map((g,p)=>s.jsx(pt,{variant:"secondary",className:"text-xs",children:g},p))})]})]})})]},w.format))}):s.jsx(pe,{className:"text-center py-12",children:s.jsxs(we,{children:[s.jsx(Uh,{className:"h-12 w-12 text-gray-400 mx-auto mb-4"}),s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"No Previews Generated"}),s.jsx("p",{className:"text-gray-600 mb-4",children:'Enter a source and click "Generate Previews" to see how your citation looks in different styles.'})]})})]}),u&&s.jsx(dl,{value:o,className:"mt-6",children:s.jsxs(pe,{children:[s.jsxs(_e,{children:[s.jsxs(De,{className:"flex items-center",children:[s.jsx(Be,{className:"h-5 w-5 mr-2 text-green-600"}),u.name," Style Guide"]}),s.jsx("p",{className:"text-sm text-gray-600",children:u.fullName})]}),s.jsx(we,{children:s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-2",children:"Description"}),s.jsx("p",{className:"text-gray-700",children:u.description})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-2",children:"Key Rules"}),s.jsx("ul",{className:"space-y-1",children:u.keyRules.map((w,g)=>s.jsxs("li",{className:"flex items-start",children:[s.jsx(he,{className:"h-4 w-4 text-green-500 mr-2 mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-gray-700 text-sm",children:w})]},g))})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-2",children:"Common Mistakes"}),s.jsx("ul",{className:"space-y-1",children:u.commonMistakes.map((w,g)=>s.jsxs("li",{className:"flex items-start",children:[s.jsx(Vh,{className:"h-4 w-4 text-red-500 mr-2 mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-gray-700 text-sm",children:w})]},g))})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-2",children:"Pro Tips"}),s.jsx("ul",{className:"space-y-1",children:u.tips.map((w,g)=>s.jsxs("li",{className:"flex items-start",children:[s.jsx(Fs,{className:"h-4 w-4 text-blue-500 mr-2 mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-gray-700 text-sm",children:w})]},g))})]})]})})]})})]})})]})]})}),s.jsx(st,{})]})}function vz(){return go(),s.jsx(SD,{children:s.jsxs(KP,{children:[s.jsx(Ge,{path:"/",component:fV}),s.jsx(Ge,{path:"/about",component:hV}),s.jsx(Ge,{path:"/privacy",component:yV}),s.jsx(Ge,{path:"/terms",component:jV}),s.jsx(Ge,{path:"/contact",component:SV}),s.jsx(Ge,{path:"/pricing",component:_V}),s.jsx(Ge,{path:"/help",component:JV}),s.jsx(Ge,{path:"/cookies",component:n8}),s.jsx(Ge,{path:"/careers",component:a8}),s.jsx(Ge,{path:"/projects",component:C8}),s.jsx(Ge,{path:"/projects/:id",component:S8}),s.jsx(Ge,{path:"/learn",component:V8}),s.jsx(Ge,{path:"/learn/lesson/:id",component:U8}),s.jsx(Ge,{path:"/apa-citation-generator",component:B8}),s.jsx(Ge,{path:"/mla-citation-generator",component:W8}),s.jsx(Ge,{path:"/chicago-citation-generator",component:G8}),s.jsx(Ge,{path:"/harvard-citation-generator",component:K8}),s.jsx(Ge,{path:"/ieee-citation-generator",component:Q8}),s.jsx(Ge,{path:"/citation-styles-comparison",component:J8}),s.jsx(Ge,{path:"/citation-guide",component:rz}),s.jsx(Ge,{path:"/academic-writing-resources",component:cz}),s.jsx(Ge,{path:"/style-preview",component:yz}),s.jsx(Ge,{path:"/faq",component:fz}),s.jsx(Ge,{component:DD})]})})}function wz(){return s.jsx(h_,{client:E_,children:s.jsx(kD,{children:s.jsxs(tM,{children:[s.jsx(PD,{}),s.jsx(AR,{}),s.jsx(vz,{})]})})})}p1(document.getElementById("root")).render(s.jsx(wz,{}));