const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Home-DhXovbAP.js","assets/HomeSection6-BSDp2qjs.js","assets/HomeSection6-EKmKsbKj.css","assets/EnquireForm2-C4ny4ArF.js","assets/download-C8frmDhT.js","assets/createLucideIcon-BDIKDqFL.js","assets/Home-DoaVf4M6.css","assets/SpecialCommitteePage-BviE0qVA.js","assets/trainingplacement-O5BrE4uK.js","assets/contactus-DhKNPjH7.js","assets/AnnouncementEvents-BzUVN16q.js"])))=>i.map(i=>d[i]); function Ih(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 o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var US=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function za(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uf={exports:{}},ol={},cf={exports:{}},Y={};/** * @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 Si=Symbol.for("react.element"),Uh=Symbol.for("react.portal"),$h=Symbol.for("react.fragment"),zh=Symbol.for("react.strict_mode"),Mh=Symbol.for("react.profiler"),Bh=Symbol.for("react.provider"),Vh=Symbol.for("react.context"),Hh=Symbol.for("react.forward_ref"),Wh=Symbol.for("react.suspense"),qh=Symbol.for("react.memo"),Kh=Symbol.for("react.lazy"),sc=Symbol.iterator;function Qh(e){return e===null||typeof e!="object"?null:(e=sc&&e[sc]||e["@@iterator"],typeof e=="function"?e:null)}var df={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ff=Object.assign,pf={};function Er(e,t,n){this.props=e,this.context=t,this.refs=pf,this.updater=n||df}Er.prototype.isReactComponent={};Er.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")};Er.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mf(){}mf.prototype=Er.prototype;function Ma(e,t,n){this.props=e,this.context=t,this.refs=pf,this.updater=n||df}var Ba=Ma.prototype=new mf;Ba.constructor=Ma;ff(Ba,Er.prototype);Ba.isPureReactComponent=!0;var ac=Array.isArray,hf=Object.prototype.hasOwnProperty,Va={current:null},yf={key:!0,ref:!0,__self:!0,__source:!0};function gf(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)hf.call(t,r)&&!yf.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,xe=F[le];if(0>>1;lei(Kn,q))Fti(Gt,Kn)?(F[le]=Gt,F[Ft]=q,le=Ft):(F[le]=Kn,F[At]=q,le=At);else if(Fti(Gt,q))F[le]=Gt,F[Ft]=q,le=Ft;else break e}}return B}function i(F,B){var q=F.sortIndex-B.sortIndex;return q!==0?q:F.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],d=1,f=null,m=3,x=!1,w=!1,g=!1,E=typeof setTimeout=="function"?setTimeout:null,h=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 y(F){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=F)r(u),B.sortIndex=B.expirationTime,t(a,B);else break;B=n(u)}}function k(F){if(g=!1,y(F),!w)if(n(a)!==null)w=!0,ve(j);else{var B=n(u);B!==null&&Ae(k,B.startTime-F)}}function j(F,B){w=!1,g&&(g=!1,h(R),R=-1),x=!0;var q=m;try{for(y(B),f=n(a);f!==null&&(!(f.expirationTime>B)||F&&!M());){var le=f.callback;if(typeof le=="function"){f.callback=null,m=f.priorityLevel;var xe=le(f.expirationTime<=B);B=e.unstable_now(),typeof xe=="function"?f.callback=xe:f===n(a)&&r(a),y(B)}else r(a);f=n(a)}if(f!==null)var jn=!0;else{var At=n(u);At!==null&&Ae(k,At.startTime-B),jn=!1}return jn}finally{f=null,m=q,x=!1}}var L=!1,C=null,R=-1,U=5,T=-1;function M(){return!(e.unstable_now()-TF||125le?(F.sortIndex=q,t(u,F),n(a)===null&&F===n(u)&&(g?(h(R),R=-1):g=!0,Ae(k,q-le))):(F.sortIndex=xe,t(a,F),w||x||(w=!0,ve(j))),F},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(F){var B=m;return function(){var q=m;m=B;try{return F.apply(this,arguments)}finally{m=q}}}})(Ef);Sf.exports=Ef;var ly=Sf.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 sy=S,rt=ly;function b(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"),Rs=Object.prototype.hasOwnProperty,ay=/^[: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]*$/,cc={},dc={};function uy(e){return Rs.call(dc,e)?!0:Rs.call(cc,e)?!1:ay.test(e)?dc[e]=!0:(cc[e]=!0,!1)}function cy(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 dy(e,t,n,r){if(t===null||typeof t>"u"||cy(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 He(e,t,n,r,i,o,l){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=o,this.removeEmptyString=l}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new He(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new He(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new He(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new He(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){Le[e]=new He(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new He(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new He(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new He(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new He(e,5,!1,e.toLowerCase(),null,!1,!1)});var Wa=/[\-:]([a-z])/g;function qa(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(Wa,qa);Le[t]=new He(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(Wa,qa);Le[t]=new He(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(Wa,qa);Le[t]=new He(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new He(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new He("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new He(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ka(e,t,n,r){var i=Le.hasOwnProperty(t)?Le[t]:null;(i!==null?i.type!==0:r||!(2s||i[l]!==o[s]){var a=` `+i[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Jl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zr(e):""}function fy(e){switch(e.tag){case 5:return zr(e.type);case 16:return zr("Lazy");case 13:return zr("Suspense");case 19:return zr("SuspenseList");case 0:case 2:case 15:return e=Gl(e.type,!1),e;case 11:return e=Gl(e.type.render,!1),e;case 1:return e=Gl(e.type,!0),e;default:return""}}function Ls(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 Gn:return"Fragment";case Jn:return"Portal";case bs:return"Profiler";case Qa:return"StrictMode";case Ts:return"Suspense";case Os:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _f:return(e.displayName||"Context")+".Consumer";case Nf:return(e._context.displayName||"Context")+".Provider";case Ya:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ja:return t=e.displayName||null,t!==null?t:Ls(e.type)||"Memo";case en:t=e._payload,e=e._init;try{return Ls(e(t))}catch{}}return null}function py(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 Ls(t);case 8:return t===Qa?"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 wn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function my(e){var t=jf(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,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ii(e){e._valueTracker||(e._valueTracker=my(e))}function Pf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=jf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ko(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 As(e,t){var n=t.checked;return fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function pc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wn(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 Rf(e,t){t=t.checked,t!=null&&Ka(e,"checked",t,!1)}function Fs(e,t){Rf(e,t);var n=wn(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")?Ds(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ds(e,t.type,wn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mc(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 Ds(e,t,n){(t!=="number"||ko(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mr=Array.isArray;function ar(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ui.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ni(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hr={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},hy=["Webkit","ms","Moz","O"];Object.keys(Hr).forEach(function(e){hy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hr[t]=Hr[e]})});function Lf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hr.hasOwnProperty(e)&&Hr[e]?(""+t).trim():t+"px"}function Af(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Lf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var yy=fe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $s(e,t){if(t){if(yy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function zs(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 Ms=null;function Ga(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bs=null,ur=null,cr=null;function gc(e){if(e=Ni(e)){if(typeof Bs!="function")throw Error(b(280));var t=e.stateNode;t&&(t=cl(t),Bs(e.stateNode,e.type,t))}}function Ff(e){ur?cr?cr.push(e):cr=[e]:ur=e}function Df(){if(ur){var e=ur,t=cr;if(cr=ur=null,gc(e),t)for(e=0;e>>=0,e===0?32:31-(jy(e)/Py|0)|0}var $i=64,zi=4194304;function Br(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 jo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~i;s!==0?r=Br(s):(o&=l,o!==0&&(r=Br(o)))}else l=n&~i,l!==0?r=Br(l):o!==0&&(r=Br(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ei(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Et(t),e[t]=n}function Oy(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=qr),Cc=" ",jc=!1;function np(e,t){switch(e){case"keyup":return lg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xn=!1;function ag(e,t){switch(e){case"compositionend":return rp(t);case"keypress":return t.which!==32?null:(jc=!0,Cc);case"textInput":return e=t.data,e===Cc&&jc?null:e;default:return null}}function ug(e,t){if(Xn)return e==="compositionend"||!ou&&np(e,t)?(e=ep(),io=nu=sn=null,Xn=!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=Tc(n)}}function sp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ap(){for(var e=window,t=ko();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ko(e.document)}return t}function lu(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 vg(e){var t=ap(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sp(n.ownerDocument.documentElement,n)){if(r!==null&&lu(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,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Oc(n,o);var l=Oc(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Zn=null,Qs=null,Qr=null,Ys=!1;function Lc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ys||Zn==null||Zn!==ko(r)||(r=Zn,"selectionStart"in r&&lu(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}),Qr&&ai(Qr,r)||(Qr=r,r=bo(Qs,"onSelect"),0nr||(e.current=ta[nr],ta[nr]=null,nr--)}function re(e,t){nr++,ta[nr]=e.current,e.current=t}var Sn={},$e=kn(Sn),Ye=kn(!1),Un=Sn;function hr(e,t){var n=e.type.contextTypes;if(!n)return Sn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Je(e){return e=e.childContextTypes,e!=null}function Oo(){oe(Ye),oe($e)}function zc(e,t,n){if($e.current!==Sn)throw Error(b(168));re($e,t),re(Ye,n)}function gp(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(b(108,py(e)||"Unknown",i));return fe({},n,r)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sn,Un=$e.current,re($e,e),re(Ye,Ye.current),!0}function Mc(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=gp(e,t,Un),r.__reactInternalMemoizedMergedChildContext=e,oe(Ye),oe($e),re($e,e)):oe(Ye),re(Ye,n)}var $t=null,dl=!1,ds=!1;function vp(e){$t===null?$t=[e]:$t.push(e)}function bg(e){dl=!0,vp(e)}function Nn(){if(!ds&&$t!==null){ds=!0;var e=0,t=ee;try{var n=$t;for(ee=1;e>=l,i-=l,zt=1<<32-Et(t)+i|n<R?(U=C,C=null):U=C.sibling;var T=m(h,C,y[R],k);if(T===null){C===null&&(C=U);break}e&&C&&T.alternate===null&&t(h,C),p=o(T,p,R),L===null?j=T:L.sibling=T,L=T,C=U}if(R===y.length)return n(h,C),ae&&Pn(h,R),j;if(C===null){for(;RR?(U=C,C=null):U=C.sibling;var M=m(h,C,T.value,k);if(M===null){C===null&&(C=U);break}e&&C&&M.alternate===null&&t(h,C),p=o(M,p,R),L===null?j=M:L.sibling=M,L=M,C=U}if(T.done)return n(h,C),ae&&Pn(h,R),j;if(C===null){for(;!T.done;R++,T=y.next())T=f(h,T.value,k),T!==null&&(p=o(T,p,R),L===null?j=T:L.sibling=T,L=T);return ae&&Pn(h,R),j}for(C=r(h,C);!T.done;R++,T=y.next())T=x(C,h,R,T.value,k),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?R:T.key),p=o(T,p,R),L===null?j=T:L.sibling=T,L=T);return e&&C.forEach(function(V){return t(h,V)}),ae&&Pn(h,R),j}function E(h,p,y,k){if(typeof y=="object"&&y!==null&&y.type===Gn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Di:e:{for(var j=y.key,L=p;L!==null;){if(L.key===j){if(j=y.type,j===Gn){if(L.tag===7){n(h,L.sibling),p=i(L,y.props.children),p.return=h,h=p;break e}}else if(L.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===en&&Hc(j)===L.type){n(h,L.sibling),p=i(L,y.props),p.ref=Ar(h,L,y),p.return=h,h=p;break e}n(h,L);break}else t(h,L);L=L.sibling}y.type===Gn?(p=Dn(y.props.children,h.mode,k,y.key),p.return=h,h=p):(k=po(y.type,y.key,y.props,null,h.mode,k),k.ref=Ar(h,p,y),k.return=h,h=k)}return l(h);case Jn:e:{for(L=y.key;p!==null;){if(p.key===L)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(h,p.sibling),p=i(p,y.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=xs(y,h.mode,k),p.return=h,h=p}return l(h);case en:return L=y._init,E(h,p,L(y._payload),k)}if(Mr(y))return w(h,p,y,k);if(Rr(y))return g(h,p,y,k);Ki(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(h,p.sibling),p=i(p,y),p.return=h,h=p):(n(h,p),p=vs(y,h.mode,k),p.return=h,h=p),l(h)):n(h,p)}return E}var gr=Ep(!0),kp=Ep(!1),Do=kn(null),Io=null,or=null,cu=null;function du(){cu=or=Io=null}function fu(e){var t=Do.current;oe(Do),e._currentValue=t}function ia(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 fr(e,t){Io=e,cu=or=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Qe=!0),e.firstContext=null)}function ft(e){var t=e._currentValue;if(cu!==e)if(e={context:e,memoizedValue:t,next:null},or===null){if(Io===null)throw Error(b(308));or=e,Io.dependencies={lanes:0,firstContext:e}}else or=or.next=e;return t}var Tn=null;function pu(e){Tn===null?Tn=[e]:Tn.push(e)}function Np(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,pu(t)):(n.next=i.next,i.next=n),t.interleaved=n,Wt(e,r)}function Wt(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 tn=!1;function mu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _p(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Wt(e,n)}return i=r.interleaved,i===null?(t.next=t,pu(r)):(t.next=i.next,i.next=t),r.interleaved=t,Wt(e,n)}function lo(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,Za(e,n)}}function Wc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Uo(e,t,n,r){var i=e.updateQueue;tn=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?o=u:l.next=u,l=a;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==l&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=a))}if(o!==null){var f=i.baseState;l=0,d=u=a=null,s=o;do{var m=s.lane,x=s.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:x,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var w=e,g=s;switch(m=t,x=n,g.tag){case 1:if(w=g.payload,typeof w=="function"){f=w.call(x,f,m);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=g.payload,m=typeof w=="function"?w.call(x,f,m):w,m==null)break e;f=fe({},f,m);break e;case 2:tn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[s]:m.push(s))}else x={eventTime:x,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=x,a=f):d=d.next=x,l|=m;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(d===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Mn|=l,e.lanes=l,e.memoizedState=f}}function qc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ps.transition;ps.transition={};try{e(!1),t()}finally{ee=n,ps.transition=r}}function Bp(){return pt().memoizedState}function Ag(e,t,n){var r=gn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Vp(e))Hp(t,n);else if(n=Np(e,t,n,r),n!==null){var i=Be();kt(n,e,r,i),Wp(n,t,r)}}function Fg(e,t,n){var r=gn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Vp(e))Hp(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,n);if(i.hasEagerState=!0,i.eagerState=s,Nt(s,l)){var a=t.interleaved;a===null?(i.next=i,pu(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Np(e,t,i,r),n!==null&&(i=Be(),kt(n,e,r,i),Wp(n,t,r))}}function Vp(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Hp(e,t){Yr=zo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Za(e,n)}}var Mo={readContext:ft,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},Dg={readContext:ft,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:Qc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ao(4194308,4,Ip.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ao(4194308,4,e,t)},useInsertionEffect:function(e,t){return ao(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ag.bind(null,ce,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:Kc,useDebugValue:Eu,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=Kc(!1),t=e[0];return e=Lg.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ce,i=Pt();if(ae){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),Pe===null)throw Error(b(349));zn&30||Rp(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Qc(Tp.bind(null,r,o,e),[e]),r.flags|=2048,yi(9,bp.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Pe.identifierPrefix;if(ae){var n=Mt,r=zt;n=(r&~(1<<32-Et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[bt]=t,e[di]=r,tm(e,t,!1,!1),t.stateNode=e;e:{switch(l=zs(n,r),n){case"dialog":ie("cancel",e),ie("close",e),i=r;break;case"iframe":case"object":case"embed":ie("load",e),i=r;break;case"video":case"audio":for(i=0;iwr&&(t.flags|=128,r=!0,Fr(o,!1),t.lanes=4194304)}else{if(!r)if(e=$o(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!ae)return De(t),null}else 2*ye()-o.renderingStartTime>wr&&n!==1073741824&&(t.flags|=128,r=!0,Fr(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ye(),t.sibling=null,n=ue.current,re(ue,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return Pu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?et&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function Hg(e,t){switch(au(t),t.tag){case 1:return Je(t.type)&&Oo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vr(),oe(Ye),oe($e),gu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return yu(t),null;case 13:if(oe(ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(ue),null;case 4:return vr(),null;case 10:return fu(t.type._context),null;case 22:case 23:return Pu(),null;case 24:return null;default:return null}}var Yi=!1,Ie=!1,Wg=typeof WeakSet=="function"?WeakSet:Set,I=null;function lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pe(e,t,r)}else n.current=null}function pa(e,t,n){try{n()}catch(r){pe(e,t,r)}}var od=!1;function qg(e,t){if(Js=Po,e=ap(),lu(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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,d=0,f=e,m=null;t:for(;;){for(var x;f!==n||i!==0&&f.nodeType!==3||(s=l+i),f!==o||r!==0&&f.nodeType!==3||(a=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(x=f.firstChild)!==null;)m=f,f=x;for(;;){if(f===e)break t;if(m===n&&++u===i&&(s=l),m===o&&++d===r&&(a=l),(x=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=x}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Gs={focusedElem:e,selectionRange:n},Po=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var g=w.memoizedProps,E=w.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?g:gt(t.type,g),E);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(k){pe(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return w=od,od=!1,w}function Jr(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 o=i.destroy;i.destroy=void 0,o!==void 0&&pa(t,n,o)}i=i.next}while(i!==r)}}function ml(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 ma(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 im(e){var t=e.alternate;t!==null&&(e.alternate=null,im(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[bt],delete t[di],delete t[ea],delete t[Pg],delete t[Rg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function om(e){return e.tag===5||e.tag===3||e.tag===4}function ld(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(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 ha(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=To));else if(r!==4&&(e=e.child,e!==null))for(ha(e,t,n),e=e.sibling;e!==null;)ha(e,t,n),e=e.sibling}function ya(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(ya(e,t,n),e=e.sibling;e!==null;)ya(e,t,n),e=e.sibling}var be=null,vt=!1;function Zt(e,t,n){for(n=n.child;n!==null;)lm(e,t,n),n=n.sibling}function lm(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(ll,n)}catch{}switch(n.tag){case 5:Ie||lr(n,t);case 6:var r=be,i=vt;be=null,Zt(e,t,n),be=r,vt=i,be!==null&&(vt?(e=be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):be.removeChild(n.stateNode));break;case 18:be!==null&&(vt?(e=be,n=n.stateNode,e.nodeType===8?cs(e.parentNode,n):e.nodeType===1&&cs(e,n),li(e)):cs(be,n.stateNode));break;case 4:r=be,i=vt,be=n.stateNode.containerInfo,vt=!0,Zt(e,t,n),be=r,vt=i;break;case 0:case 11:case 14:case 15:if(!Ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&pa(n,t,l),i=i.next}while(i!==r)}Zt(e,t,n);break;case 1:if(!Ie&&(lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){pe(n,t,s)}Zt(e,t,n);break;case 21:Zt(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,Zt(e,t,n),Ie=r):Zt(e,t,n);break;default:Zt(e,t,n)}}function sd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Wg),t.forEach(function(r){var i=t0.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ht(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Qg(r/1960))-r,10e?16:e,an===null)var r=!1;else{if(e=an,an=null,Ho=0,J&6)throw Error(b(331));var i=J;for(J|=4,I=e.current;I!==null;){var o=I,l=o.child;if(I.flags&16){var s=o.deletions;if(s!==null){for(var a=0;aye()-Cu?Fn(e,0):_u|=n),Ge(e,t)}function mm(e,t){t===0&&(e.mode&1?(t=zi,zi<<=1,!(zi&130023424)&&(zi=4194304)):t=1);var n=Be();e=Wt(e,t),e!==null&&(Ei(e,t,n),Ge(e,n))}function e0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mm(e,n)}function t0(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(b(314))}r!==null&&r.delete(t),mm(e,n)}var hm;hm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ye.current)Qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qe=!1,Bg(e,t,n);Qe=!!(e.flags&131072)}else Qe=!1,ae&&t.flags&1048576&&xp(t,Fo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;uo(e,t),e=t.pendingProps;var i=hr(t,$e.current);fr(t,n),i=xu(null,t,r,e,i,n);var o=wu();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,Je(r)?(o=!0,Lo(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,mu(t),i.updater=pl,t.stateNode=i,i._reactInternals=t,la(t,r,e,n),t=ua(null,t,r,!0,o,n)):(t.tag=0,ae&&o&&su(t),ze(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(uo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=r0(r),e=gt(r,e),i){case 0:t=aa(null,t,r,e,n);break e;case 1:t=nd(null,t,r,e,n);break e;case 11:t=ed(null,t,r,e,n);break e;case 14:t=td(null,t,r,gt(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),aa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),nd(e,t,r,i,n);case 3:e:{if(Xp(t),e===null)throw Error(b(387));r=t.pendingProps,o=t.memoizedState,i=o.element,_p(e,t),Uo(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=xr(Error(b(423)),t),t=rd(e,t,r,n,i);break e}else if(r!==i){i=xr(Error(b(424)),t),t=rd(e,t,r,n,i);break e}else for(tt=mn(t.stateNode.containerInfo.firstChild),nt=t,ae=!0,xt=null,n=kp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yr(),r===i){t=qt(e,t,n);break e}ze(e,t,r,n)}t=t.child}return t;case 5:return Cp(t),e===null&&ra(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,Xs(r,i)?l=null:o!==null&&Xs(r,o)&&(t.flags|=32),Gp(e,t),ze(e,t,l,n),t.child;case 6:return e===null&&ra(t),null;case 13:return Zp(e,t,n);case 4:return hu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=gr(t,null,r,n):ze(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),ed(e,t,r,i,n);case 7:return ze(e,t,t.pendingProps,n),t.child;case 8:return ze(e,t,t.pendingProps.children,n),t.child;case 12:return ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,re(Do,r._currentValue),r._currentValue=l,o!==null)if(Nt(o.value,l)){if(o.children===i.children&&!Ye.current){t=qt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){l=o.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Bt(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),ia(o.return,n,t),s.lanes|=n;break}a=a.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(b(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),ia(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}ze(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,fr(t,n),i=ft(i),r=r(i),t.flags|=1,ze(e,t,r,n),t.child;case 14:return r=t.type,i=gt(r,t.pendingProps),i=gt(r.type,i),td(e,t,r,i,n);case 15:return Yp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),uo(e,t),t.tag=1,Je(r)?(e=!0,Lo(t)):e=!1,fr(t,n),qp(t,r,i),la(t,r,i,n),ua(null,t,r,!0,e,n);case 19:return em(e,t,n);case 22:return Jp(e,t,n)}throw Error(b(156,t.tag))};function ym(e,t){return Vf(e,t)}function n0(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 ct(e,t,n,r){return new n0(e,t,n,r)}function bu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function r0(e){if(typeof e=="function")return bu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ya)return 11;if(e===Ja)return 14}return 2}function vn(e,t){var n=e.alternate;return n===null?(n=ct(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 po(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")bu(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Gn:return Dn(n.children,i,o,t);case Qa:l=8,i|=8;break;case bs:return e=ct(12,n,t,i|2),e.elementType=bs,e.lanes=o,e;case Ts:return e=ct(13,n,t,i),e.elementType=Ts,e.lanes=o,e;case Os:return e=ct(19,n,t,i),e.elementType=Os,e.lanes=o,e;case Cf:return yl(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Nf:l=10;break e;case _f:l=9;break e;case Ya:l=11;break e;case Ja:l=14;break e;case en:l=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=ct(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Dn(e,t,n,r){return e=ct(7,e,r,t),e.lanes=n,e}function yl(e,t,n,r){return e=ct(22,e,r,t),e.elementType=Cf,e.lanes=n,e.stateNode={isHidden:!1},e}function vs(e,t,n){return e=ct(6,e,null,t),e.lanes=n,e}function xs(e,t,n){return t=ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function i0(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=Zl(0),this.expirationTimes=Zl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Tu(e,t,n,r,i,o,l,s,a){return e=new i0(e,t,n,s,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ct(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mu(o),e}function o0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wm)}catch(e){console.error(e)}}wm(),wf.exports=it;var c0=wf.exports,Sm,hd=c0;Sm=hd.createRoot,hd.hydrateRoot;/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function vi(){return vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Em(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function f0(){return Math.random().toString(36).substr(2,8)}function gd(e,t){return{usr:e.state,key:e.key,idx:t}}function Sa(e,t,n,r){return n===void 0&&(n=null),vi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_r(t):t,{state:n,key:t&&t.key||r||f0()})}function Ko(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function _r(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function p0(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,s=un.Pop,a=null,u=d();u==null&&(u=0,l.replaceState(vi({},l.state,{idx:u}),""));function d(){return(l.state||{idx:null}).idx}function f(){s=un.Pop;let E=d(),h=E==null?null:E-u;u=E,a&&a({action:s,location:g.location,delta:h})}function m(E,h){s=un.Push;let p=Sa(g.location,E,h);u=d()+1;let y=gd(p,u),k=g.createHref(p);try{l.pushState(y,"",k)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;i.location.assign(k)}o&&a&&a({action:s,location:g.location,delta:1})}function x(E,h){s=un.Replace;let p=Sa(g.location,E,h);u=d();let y=gd(p,u),k=g.createHref(p);l.replaceState(y,"",k),o&&a&&a({action:s,location:g.location,delta:0})}function w(E){let h=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof E=="string"?E:Ko(E);return p=p.replace(/ $/,"%20"),de(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let g={get action(){return s},get location(){return e(i,l)},listen(E){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(yd,f),a=E,()=>{i.removeEventListener(yd,f),a=null}},createHref(E){return t(i,E)},createURL:w,encodeLocation(E){let h=w(E);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:m,replace:x,go(E){return l.go(E)}};return g}var vd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(vd||(vd={}));function m0(e,t,n){return n===void 0&&(n="/"),h0(e,t,n,!1)}function h0(e,t,n,r){let i=typeof t=="string"?_r(t):t,o=Sr(i.pathname||"/",n);if(o==null)return null;let l=km(e);y0(l);let s=null;for(let a=0;s==null&&a{let a={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};a.relativePath.startsWith("/")&&(de(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=xn([r,a.relativePath]),d=n.concat(a);o.children&&o.children.length>0&&(de(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),km(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:k0(u,o.index),routesMeta:d})};return e.forEach((o,l)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,l);else for(let a of Nm(o.path))i(o,l,a)}),t}function Nm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=Nm(r.join("/")),s=[];return s.push(...l.map(a=>a===""?o:[o,a].join("/"))),i&&s.push(...l),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function y0(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:N0(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const g0=/^:[\w-]+$/,v0=3,x0=2,w0=1,S0=10,E0=-2,xd=e=>e==="*";function k0(e,t){let n=e.split("/"),r=n.length;return n.some(xd)&&(r+=E0),t&&(r+=x0),n.filter(i=>!xd(i)).reduce((i,o)=>i+(g0.test(o)?v0:o===""?w0:S0),r)}function N0(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function _0(e,t,n){let{routesMeta:r}=e,i={},o="/",l=[];for(let s=0;s{let{paramName:m,isOptional:x}=d;if(m==="*"){let g=s[f]||"";l=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const w=s[f];return x&&!w?u[m]=void 0:u[m]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:l,pattern:e}}function C0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Em(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function j0(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Em(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Sr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function P0(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?_r(e):e;return{pathname:n?n.startsWith("/")?n:R0(n,t):t,search:O0(r),hash:L0(i)}}function R0(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ws(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function b0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Fu(e,t){let n=b0(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Du(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=_r(e):(i=vi({},e),de(!i.pathname||!i.pathname.includes("?"),ws("?","pathname","search",i)),de(!i.pathname||!i.pathname.includes("#"),ws("#","pathname","hash",i)),de(!i.search||!i.search.includes("#"),ws("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,s;if(l==null)s=n;else{let f=t.length-1;if(!r&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),f-=1;i.pathname=m.join("/")}s=f>=0?t[f]:"/"}let a=P0(i,s),u=l&&l!=="/"&&l.endsWith("/"),d=(o||l===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}const xn=e=>e.join("/").replace(/\/\/+/g,"/"),T0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),O0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,L0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function A0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const _m=["post","put","patch","delete"];new Set(_m);const F0=["get",..._m];new Set(F0);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function xi(){return xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),S.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let f=Du(u,JSON.parse(l),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:xn([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,l,o,e])}const U0=S.createContext(null);function $0(e){let t=S.useContext(Jt).outlet;return t&&S.createElement(U0.Provider,{value:e},t)}function kl(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=S.useContext(Yt),{matches:i}=S.useContext(Jt),{pathname:o}=_n(),l=JSON.stringify(Fu(i,r.v7_relativeSplatPath));return S.useMemo(()=>Du(e,JSON.parse(l),o,n==="path"),[e,l,o,n])}function z0(e,t){return M0(e,t)}function M0(e,t,n,r){Cr()||de(!1);let{navigator:i}=S.useContext(Yt),{matches:o}=S.useContext(Jt),l=o[o.length-1],s=l?l.params:{};l&&l.pathname;let a=l?l.pathnameBase:"/";l&&l.route;let u=_n(),d;if(t){var f;let E=typeof t=="string"?_r(t):t;a==="/"||(f=E.pathname)!=null&&f.startsWith(a)||de(!1),d=E}else d=u;let m=d.pathname||"/",x=m;if(a!=="/"){let E=a.replace(/^\//,"").split("/");x="/"+m.replace(/^\//,"").split("/").slice(E.length).join("/")}let w=m0(e,{pathname:x}),g=q0(w&&w.map(E=>Object.assign({},E,{params:Object.assign({},s,E.params),pathname:xn([a,i.encodeLocation?i.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?a:xn([a,i.encodeLocation?i.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),o,n,r);return t&&g?S.createElement(El.Provider,{value:{location:xi({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:un.Pop}},g):g}function B0(){let e=J0(),t=A0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,null)}const V0=S.createElement(B0,null);class H0 extends S.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?S.createElement(Jt.Provider,{value:this.props.routeContext},S.createElement(jm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function W0(e){let{routeContext:t,match:n,children:r}=e,i=S.useContext(Sl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Jt.Provider,{value:t},r)}function q0(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let d=l.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||de(!1),l=l.slice(0,Math.min(l.length,d+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((d,f,m)=>{let x,w=!1,g=null,E=null;n&&(x=s&&f.route.id?s[f.route.id]:void 0,g=f.route.errorElement||V0,a&&(u<0&&m===0?(w=!0,E=null):u===m&&(w=!0,E=f.route.hydrateFallbackElement||null)));let h=t.concat(l.slice(0,m+1)),p=()=>{let y;return x?y=g:w?y=E:f.route.Component?y=S.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=d,S.createElement(W0,{match:f,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?S.createElement(H0,{location:n.location,revalidation:n.revalidation,component:g,error:x,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var Rm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Rm||{}),Yo=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Yo||{});function K0(e){let t=S.useContext(Sl);return t||de(!1),t}function Q0(e){let t=S.useContext(Cm);return t||de(!1),t}function Y0(e){let t=S.useContext(Jt);return t||de(!1),t}function bm(e){let t=Y0(),n=t.matches[t.matches.length-1];return n.route.id||de(!1),n.route.id}function J0(){var e;let t=S.useContext(jm),n=Q0(Yo.UseRouteError),r=bm(Yo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function G0(){let{router:e}=K0(Rm.UseNavigateStable),t=bm(Yo.UseNavigateStable),n=S.useRef(!1);return Pm(()=>{n.current=!0}),S.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,xi({fromRouteId:t},o)))},[e,t])}function X0(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function mo(e){let{to:t,replace:n,state:r,relative:i}=e;Cr()||de(!1);let{future:o,static:l}=S.useContext(Yt),{matches:s}=S.useContext(Jt),{pathname:a}=_n(),u=Ci(),d=Du(t,Fu(s,o.v7_relativeSplatPath),a,i==="path"),f=JSON.stringify(d);return S.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:i}),[u,f,i,n,r]),null}function Z0(e){return $0(e.context)}function me(e){de(!1)}function ev(e){let{basename:t="/",children:n=null,location:r,navigationType:i=un.Pop,navigator:o,static:l=!1,future:s}=e;Cr()&&de(!1);let a=t.replace(/^\/*/,"/"),u=S.useMemo(()=>({basename:a,navigator:o,static:l,future:xi({v7_relativeSplatPath:!1},s)}),[a,s,o,l]);typeof r=="string"&&(r=_r(r));let{pathname:d="/",search:f="",hash:m="",state:x=null,key:w="default"}=r,g=S.useMemo(()=>{let E=Sr(d,a);return E==null?null:{location:{pathname:E,search:f,hash:m,state:x,key:w},navigationType:i}},[a,d,f,m,x,w,i]);return g==null?null:S.createElement(Yt.Provider,{value:u},S.createElement(El.Provider,{children:n,value:g}))}function tv(e){let{children:t,location:n}=e;return z0(Ea(t),n)}new Promise(()=>{});function Ea(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(r,i)=>{if(!S.isValidElement(r))return;let o=[...t,i];if(r.type===S.Fragment){n.push.apply(n,Ea(r.props.children,o));return}r.type!==me&&de(!1),!r.props.index||!r.props.children||de(!1);let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Ea(r.props.children,o)),n.push(l)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Jo(){return Jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function nv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function rv(e,t){return e.button===0&&(!t||t==="_self")&&!nv(e)}function ka(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function iv(e,t){let n=ka(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const ov=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],lv=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],sv="6";try{window.__reactRouterVersion=sv}catch{}const av=S.createContext({isTransitioning:!1}),uv="startTransition",wd=Zh[uv];function cv(e){let{basename:t,children:n,future:r,window:i}=e,o=S.useRef();o.current==null&&(o.current=d0({window:i,v5Compat:!0}));let l=o.current,[s,a]=S.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},d=S.useCallback(f=>{u&&wd?wd(()=>a(f)):a(f)},[a,u]);return S.useLayoutEffect(()=>l.listen(d),[l,d]),S.useEffect(()=>X0(r),[r]),S.createElement(ev,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l,future:r})}const dv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cn=S.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:l,state:s,target:a,to:u,preventScrollReset:d,viewTransition:f}=t,m=Tm(t,ov),{basename:x}=S.useContext(Yt),w,g=!1;if(typeof u=="string"&&fv.test(u)&&(w=u,dv))try{let y=new URL(window.location.href),k=u.startsWith("//")?new URL(y.protocol+u):new URL(u),j=Sr(k.pathname,x);k.origin===y.origin&&j!=null?u=j+k.search+k.hash:g=!0}catch{}let E=D0(u,{relative:i}),h=mv(u,{replace:l,state:s,target:a,preventScrollReset:d,relative:i,viewTransition:f});function p(y){r&&r(y),y.defaultPrevented||h(y)}return S.createElement("a",Jo({},m,{href:w||E,onClick:g||o?r:p,ref:n,target:a}))}),Iu=S.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:l=!1,style:s,to:a,viewTransition:u,children:d}=t,f=Tm(t,lv),m=kl(a,{relative:f.relative}),x=_n(),w=S.useContext(Cm),{navigator:g,basename:E}=S.useContext(Yt),h=w!=null&&yv(m)&&u===!0,p=g.encodeLocation?g.encodeLocation(m).pathname:m.pathname,y=x.pathname,k=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;i||(y=y.toLowerCase(),k=k?k.toLowerCase():null,p=p.toLowerCase()),k&&E&&(k=Sr(k,E)||k);const j=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let L=y===p||!l&&y.startsWith(p)&&y.charAt(j)==="/",C=k!=null&&(k===p||!l&&k.startsWith(p)&&k.charAt(p.length)==="/"),R={isActive:L,isPending:C,isTransitioning:h},U=L?r:void 0,T;typeof o=="function"?T=o(R):T=[o,L?"active":null,C?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let M=typeof s=="function"?s(R):s;return S.createElement(cn,Jo({},f,{"aria-current":U,className:T,ref:n,style:M,to:a,viewTransition:u}),typeof d=="function"?d(R):d)});var Na;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Na||(Na={}));var Sd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Sd||(Sd={}));function pv(e){let t=S.useContext(Sl);return t||de(!1),t}function mv(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:l,viewTransition:s}=t===void 0?{}:t,a=Ci(),u=_n(),d=kl(e,{relative:l});return S.useCallback(f=>{if(rv(f,n)){f.preventDefault();let m=r!==void 0?r:Ko(u)===Ko(d);a(e,{replace:m,state:i,preventScrollReset:o,relative:l,viewTransition:s})}},[u,a,d,r,i,n,e,o,l,s])}function hv(e){let t=S.useRef(ka(e)),n=S.useRef(!1),r=_n(),i=S.useMemo(()=>iv(r.search,n.current?null:t.current),[r.search]),o=Ci(),l=S.useCallback((s,a)=>{const u=ka(typeof s=="function"?s(i):s);n.current=!0,o("?"+u,a)},[o,i]);return[i,l]}function yv(e,t){t===void 0&&(t={});let n=S.useContext(av);n==null&&de(!1);let{basename:r}=pv(Na.useViewTransitionState),i=kl(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Sr(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Sr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Qo(i.pathname,l)!=null||Qo(i.pathname,o)!=null}const gv="modulepreload",vv=function(e){return"/"+e},Ed={},mt=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.all(n.map(s=>{if(s=vv(s),s in Ed)return;Ed[s]=!0;const a=s.endsWith(".css"),u=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${u}`))return;const d=document.createElement("link");if(d.rel=a?"stylesheet":gv,a||(d.as="script"),d.crossOrigin="",d.href=s,l&&d.setAttribute("nonce",l),document.head.appendChild(d),a)return new Promise((f,m)=>{d.addEventListener("load",f),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${s}`)))})}))}return i.then(()=>t()).catch(o=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o})};let xv={data:""},wv=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||xv,Sv=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ev=/\/\*[^]*?\*\/| +/g,kd=/\n+/g,on=(e,t)=>{let n="",r="",i="";for(let o in e){let l=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+l+";":r+=o[1]=="f"?on(l,o):o+"{"+on(l,o[1]=="k"?"":t)+"}":typeof l=="object"?r+=on(l,t?t.replace(/([^,])+/g,s=>o.replace(/(^:.*)|([^,])+/g,a=>/&/.test(a)?a.replace(/&/g,s):s?s+" "+a:a)):o):l!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=on.p?on.p(o,l):o+":"+l+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Dt={},Om=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Om(e[n]);return t}return e},kv=(e,t,n,r,i)=>{let o=Om(e),l=Dt[o]||(Dt[o]=(a=>{let u=0,d=11;for(;u>>0;return"go"+d})(o));if(!Dt[l]){let a=o!==e?e:(u=>{let d,f,m=[{}];for(;d=Sv.exec(u.replace(Ev,""));)d[4]?m.shift():d[3]?(f=d[3].replace(kd," ").trim(),m.unshift(m[0][f]=m[0][f]||{})):m[0][d[1]]=d[2].replace(kd," ").trim();return m[0]})(e);Dt[l]=on(i?{["@keyframes "+l]:a}:a,n?"":"."+l)}let s=n&&Dt.g?Dt.g:null;return n&&(Dt.g=Dt[l]),((a,u,d,f)=>{f?u.data=u.data.replace(f,a):u.data.indexOf(a)===-1&&(u.data=d?a+u.data:u.data+a)})(Dt[l],t,r,s),l},Nv=(e,t,n)=>e.reduce((r,i,o)=>{let l=t[o];if(l&&l.call){let s=l(n),a=s&&s.props&&s.props.className||/^go/.test(s)&&s;l=a?"."+a:s&&typeof s=="object"?s.props?"":on(s,""):s===!1?"":s}return r+i+(l??"")},"");function Nl(e){let t=this||{},n=e.call?e(t.p):e;return kv(n.unshift?n.raw?Nv(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,wv(t.target),t.g,t.o,t.k)}let Lm,_a,Ca;Nl.bind({g:1});let Kt=Nl.bind({k:1});function _v(e,t,n,r){on.p=t,Lm=e,_a=n,Ca=r}function Cn(e,t){let n=this||{};return function(){let r=arguments;function i(o,l){let s=Object.assign({},o),a=s.className||i.className;n.p=Object.assign({theme:_a&&_a()},s),n.o=/ *go\d+/.test(a),s.className=Nl.apply(n,r)+(a?" "+a:"");let u=e;return e[0]&&(u=s.as||e,delete s.as),Ca&&u[0]&&Ca(s),Lm(u,s)}return i}}var Cv=e=>typeof e=="function",Go=(e,t)=>Cv(e)?e(t):e,jv=(()=>{let e=0;return()=>(++e).toString()})(),Am=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Pv=20,ho=new Map,Rv=1e3,Nd=e=>{if(ho.has(e))return;let t=setTimeout(()=>{ho.delete(e),qn({type:4,toastId:e})},Rv);ho.set(e,t)},bv=e=>{let t=ho.get(e);t&&clearTimeout(t)},ja=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Pv)};case 1:return t.toast.id&&bv(t.toast.id),{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case 2:let{toast:n}=t;return e.toasts.find(o=>o.id===n.id)?ja(e,{type:1,toast:n}):ja(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Nd(r):e.toasts.forEach(o=>{Nd(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===r||r===void 0?{...o,visible:!1}:o)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+i}))}}},yo=[],go={toasts:[],pausedAt:void 0},qn=e=>{go=ja(go,e),yo.forEach(t=>{t(go)})},Tv={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Ov=(e={})=>{let[t,n]=S.useState(go);S.useEffect(()=>(yo.push(n),()=>{let i=yo.indexOf(n);i>-1&&yo.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var o,l;return{...e,...e[i.type],...i,duration:i.duration||((o=e[i.type])==null?void 0:o.duration)||(e==null?void 0:e.duration)||Tv[i.type],style:{...e.style,...(l=e[i.type])==null?void 0:l.style,...i.style}}});return{...t,toasts:r}},Lv=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||jv()}),ji=e=>(t,n)=>{let r=Lv(t,e,n);return qn({type:2,toast:r}),r.id},H=(e,t)=>ji("blank")(e,t);H.error=ji("error");H.success=ji("success");H.loading=ji("loading");H.custom=ji("custom");H.dismiss=e=>{qn({type:3,toastId:e})};H.remove=e=>qn({type:4,toastId:e});H.promise=(e,t,n)=>{let r=H.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(H.success(Go(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{H.error(Go(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var Av=(e,t)=>{qn({type:1,toast:{id:e,height:t}})},Fv=()=>{qn({type:5,time:Date.now()})},Dv=e=>{let{toasts:t,pausedAt:n}=Ov(e);S.useEffect(()=>{if(n)return;let o=Date.now(),l=t.map(s=>{if(s.duration===1/0)return;let a=(s.duration||0)+s.pauseDuration-(o-s.createdAt);if(a<0){s.visible&&H.dismiss(s.id);return}return setTimeout(()=>H.dismiss(s.id),a)});return()=>{l.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=S.useCallback(()=>{n&&qn({type:6,time:Date.now()})},[n]),i=S.useCallback((o,l)=>{let{reverseOrder:s=!1,gutter:a=8,defaultPosition:u}=l||{},d=t.filter(x=>(x.position||u)===(o.position||u)&&x.height),f=d.findIndex(x=>x.id===o.id),m=d.filter((x,w)=>wx.visible).slice(...s?[m+1]:[0,m]).reduce((x,w)=>x+(w.height||0)+a,0)},[t]);return{toasts:t,handlers:{updateHeight:Av,startPause:Fv,endPause:r,calculateOffset:i}}},Iv=Kt` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,Uv=Kt` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,$v=Kt` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,zv=Cn("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#ff4b4b"}; position: relative; transform: rotate(45deg); animation: ${Iv} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${Uv} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${e=>e.secondary||"#fff"}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${$v} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,Mv=Kt` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,Bv=Cn("div")` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; animation: ${Mv} 1s linear infinite; `,Vv=Kt` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,Hv=Kt` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,Wv=Cn("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#61d345"}; position: relative; transform: rotate(45deg); animation: ${Vv} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${Hv} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${e=>e.secondary||"#fff"}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,qv=Cn("div")` position: absolute; `,Kv=Cn("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,Qv=Kt` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,Yv=Cn("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${Qv} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,Jv=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?S.createElement(Yv,null,t):t:n==="blank"?null:S.createElement(Kv,null,S.createElement(Bv,{...r}),n!=="loading"&&S.createElement(qv,null,n==="error"?S.createElement(zv,{...r}):S.createElement(Wv,{...r})))},Gv=e=>` 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} 100% {transform: translate3d(0,0,0) scale(1); opacity:1;} `,Xv=e=>` 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} `,Zv="0%{opacity:0;} 100%{opacity:1;}",ex="0%{opacity:1;} 100%{opacity:0;}",tx=Cn("div")` display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; `,nx=Cn("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `,rx=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=Am()?[Zv,ex]:[Gv(n),Xv(n)];return{animation:t?`${Kt(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Kt(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},ix=S.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?rx(e.position||t||"top-center",e.visible):{opacity:0},o=S.createElement(Jv,{toast:e}),l=S.createElement(nx,{...e.ariaProps},Go(e.message,e));return S.createElement(tx,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:o,message:l}):S.createElement(S.Fragment,null,o,l))});_v(S.createElement);var ox=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let o=S.useCallback(l=>{if(l){let s=()=>{let a=l.getBoundingClientRect().height;r(e,a)};s(),new MutationObserver(s).observe(l,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return S.createElement("div",{ref:o,className:t,style:n},i)},lx=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Am()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},sx=Nl` z-index: 9999; > * { pointer-events: auto; } `,Xi=16,_d=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:o,containerClassName:l})=>{let{toasts:s,handlers:a}=Dv(n);return S.createElement("div",{style:{position:"fixed",zIndex:9999,top:Xi,left:Xi,right:Xi,bottom:Xi,pointerEvents:"none",...o},className:l,onMouseEnter:a.startPause,onMouseLeave:a.endPause},s.map(u=>{let d=u.position||t,f=a.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),m=lx(d,f);return S.createElement(ox,{id:u.id,key:u.id,onHeightUpdate:a.updateHeight,className:u.visible?sx:"",style:m},u.type==="custom"?Go(u.message,u):i?i(u):S.createElement(ix,{toast:u,position:d}))}))},Ss=H;const Cd=[{title:"Home",to:"/"},{title:"About Us",to:"/About-Us"},{title:"Courses",to:"/Courses"},{title:"Faculties",to:"/Faculties"},{title:"Announcement",to:"/AnnouncementEvents"},{title:"Infrastructure",to:"/Infrastructure"},{title:"SpecialCommittee",to:"/SpecialCommittee"},{title:"Gallery",to:"/Gallery"},{title:"Academic",to:"/Academic"},{title:"Training & Placement",to:"/TrainingPlacement"},{title:"Admission",to:"/Admission"},{title:"Contact Us",to:"/ContactUs"}];var Es={exports:{}},ks,jd;function ax(){if(jd)return ks;jd=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ks=e,ks}var Ns,Pd;function ux(){if(Pd)return Ns;Pd=1;var e=ax();function t(){}function n(){}return n.resetWarningCache=t,Ns=function(){function r(l,s,a,u,d,f){if(f!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Ns}var Rd;function cx(){return Rd||(Rd=1,Es.exports=ux()()),Es.exports}var dx=cx();const We=za(dx);var fx=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function Pa(){return Pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function Zi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ra(e,t)}function Ra(e,t){return Ra=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ra(e,t)}var _l=function(e){mx(t,e);function t(){var r;return r=e.call(this)||this,r.handleExpired=r.handleExpired.bind(Zi(r)),r.handleErrored=r.handleErrored.bind(Zi(r)),r.handleChange=r.handleChange.bind(Zi(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(Zi(r)),r}var n=t.prototype;return n.getCaptchaFunction=function(i){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[i]:this.props.grecaptcha[i]:null},n.getValue=function(){var i=this.getCaptchaFunction("getResponse");return i&&this._widgetId!==void 0?i(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},n.execute=function(){var i=this.getCaptchaFunction("execute");if(i&&this._widgetId!==void 0)return i(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var i=this;return new Promise(function(o,l){i.executionResolve=o,i.executionReject=l,i.execute()})},n.reset=function(){var i=this.getCaptchaFunction("reset");i&&this._widgetId!==void 0&&i(this._widgetId)},n.forceReset=function(){var i=this.getCaptchaFunction("reset");i&&i()},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(i){this.props.onChange&&this.props.onChange(i),this.executionResolve&&(this.executionResolve(i),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){var i=this.getCaptchaFunction("render");if(i&&this._widgetId===void 0){var o=document.createElement("div");this._widgetId=i(o,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(o)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.handleRecaptchaRef=function(i){this.captcha=i},n.render=function(){var i=this.props;i.sitekey,i.onChange,i.theme,i.type,i.tabindex,i.onExpired,i.onErrored,i.size,i.stoken,i.grecaptcha,i.badge,i.hl,i.isolated;var o=px(i,fx);return S.createElement("div",Pa({},o,{ref:this.handleRecaptchaRef}))},t}(S.Component);_l.displayName="ReCAPTCHA";_l.propTypes={sitekey:We.string.isRequired,onChange:We.func,grecaptcha:We.object,theme:We.oneOf(["dark","light"]),type:We.oneOf(["image","audio"]),tabindex:We.number,onExpired:We.func,onErrored:We.func,size:We.oneOf(["compact","normal","invisible"]),stoken:We.string,hl:We.string,badge:We.oneOf(["bottomright","bottomleft","inline"]),isolated:We.bool};_l.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var Fm={exports:{}},te={};/** @license React v16.13.1 * react-is.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 Re=typeof Symbol=="function"&&Symbol.for,Uu=Re?Symbol.for("react.element"):60103,$u=Re?Symbol.for("react.portal"):60106,Cl=Re?Symbol.for("react.fragment"):60107,jl=Re?Symbol.for("react.strict_mode"):60108,Pl=Re?Symbol.for("react.profiler"):60114,Rl=Re?Symbol.for("react.provider"):60109,bl=Re?Symbol.for("react.context"):60110,zu=Re?Symbol.for("react.async_mode"):60111,Tl=Re?Symbol.for("react.concurrent_mode"):60111,Ol=Re?Symbol.for("react.forward_ref"):60112,Ll=Re?Symbol.for("react.suspense"):60113,hx=Re?Symbol.for("react.suspense_list"):60120,Al=Re?Symbol.for("react.memo"):60115,Fl=Re?Symbol.for("react.lazy"):60116,yx=Re?Symbol.for("react.block"):60121,gx=Re?Symbol.for("react.fundamental"):60117,vx=Re?Symbol.for("react.responder"):60118,xx=Re?Symbol.for("react.scope"):60119;function lt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Uu:switch(e=e.type,e){case zu:case Tl:case Cl:case Pl:case jl:case Ll:return e;default:switch(e=e&&e.$$typeof,e){case bl:case Ol:case Fl:case Al:case Rl:return e;default:return t}}case $u:return t}}}function Dm(e){return lt(e)===Tl}te.AsyncMode=zu;te.ConcurrentMode=Tl;te.ContextConsumer=bl;te.ContextProvider=Rl;te.Element=Uu;te.ForwardRef=Ol;te.Fragment=Cl;te.Lazy=Fl;te.Memo=Al;te.Portal=$u;te.Profiler=Pl;te.StrictMode=jl;te.Suspense=Ll;te.isAsyncMode=function(e){return Dm(e)||lt(e)===zu};te.isConcurrentMode=Dm;te.isContextConsumer=function(e){return lt(e)===bl};te.isContextProvider=function(e){return lt(e)===Rl};te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Uu};te.isForwardRef=function(e){return lt(e)===Ol};te.isFragment=function(e){return lt(e)===Cl};te.isLazy=function(e){return lt(e)===Fl};te.isMemo=function(e){return lt(e)===Al};te.isPortal=function(e){return lt(e)===$u};te.isProfiler=function(e){return lt(e)===Pl};te.isStrictMode=function(e){return lt(e)===jl};te.isSuspense=function(e){return lt(e)===Ll};te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Cl||e===Tl||e===Pl||e===jl||e===Ll||e===hx||typeof e=="object"&&e!==null&&(e.$$typeof===Fl||e.$$typeof===Al||e.$$typeof===Rl||e.$$typeof===bl||e.$$typeof===Ol||e.$$typeof===gx||e.$$typeof===vx||e.$$typeof===xx||e.$$typeof===yx)};te.typeOf=lt;Fm.exports=te;var wx=Fm.exports,Mu=wx,Sx={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ex={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},kx={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Im={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bu={};Bu[Mu.ForwardRef]=kx;Bu[Mu.Memo]=Im;function bd(e){return Mu.isMemo(e)?Im:Bu[e.$$typeof]||Sx}var Nx=Object.defineProperty,_x=Object.getOwnPropertyNames,Td=Object.getOwnPropertySymbols,Cx=Object.getOwnPropertyDescriptor,jx=Object.getPrototypeOf,Od=Object.prototype;function Um(e,t,n){if(typeof t!="string"){if(Od){var r=jx(t);r&&r!==Od&&Um(e,r,n)}var i=_x(t);Td&&(i=i.concat(Td(t)));for(var o=bd(e),l=bd(t),s=0;s=0)&&(n[i]=e[i]);return n}function Tx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var yt={},Ox=0;function Lx(e,t){return t=t||{},function(r){var i=r.displayName||r.name||"Component",o=function(s){Tx(a,s);function a(d,f){var m;return m=s.call(this,d,f)||this,m.state={},m.__scriptURL="",m}var u=a.prototype;return u.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+Ox++),this.__scriptLoaderID},u.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},u.asyncScriptLoaderHandleLoad=function(f){var m=this;this.setState(f,function(){return m.props.asyncScriptOnLoad&&m.props.asyncScriptOnLoad(m.state)})},u.asyncScriptLoaderTriggerOnScriptLoaded=function(){var f=yt[this.__scriptURL];if(!f||!f.loaded)throw new Error("Script is not loaded.");for(var m in f.observers)f.observers[m](f);delete window[t.callbackName]},u.componentDidMount=function(){var f=this,m=this.setupScriptURL(),x=this.asyncScriptLoaderGetScriptLoaderID(),w=t,g=w.globalName,E=w.callbackName,h=w.scriptId;if(g&&typeof window[g]<"u"&&(yt[m]={loaded:!0,observers:{}}),yt[m]){var p=yt[m];if(p&&(p.loaded||p.errored)){this.asyncScriptLoaderHandleLoad(p);return}p.observers[x]=function(C){return f.asyncScriptLoaderHandleLoad(C)};return}var y={};y[x]=function(C){return f.asyncScriptLoaderHandleLoad(C)},yt[m]={loaded:!1,observers:y};var k=document.createElement("script");k.src=m,k.async=!0;for(var j in t.attributes)k.setAttribute(j,t.attributes[j]);h&&(k.id=h);var L=function(R){if(yt[m]){var U=yt[m],T=U.observers;for(var M in T)R(T[M])&&delete T[M]}};E&&typeof window<"u"&&(window[E]=function(){return f.asyncScriptLoaderTriggerOnScriptLoaded()}),k.onload=function(){var C=yt[m];C&&(C.loaded=!0,L(function(R){return E?!1:(R(C),!0)}))},k.onerror=function(){var C=yt[m];C&&(C.errored=!0,L(function(R){return R(C),!0}))},document.body.appendChild(k)},u.componentWillUnmount=function(){var f=this.__scriptURL;if(t.removeOnUnmount===!0)for(var m=document.getElementsByTagName("script"),x=0;x-1&&m[x].parentNode&&m[x].parentNode.removeChild(m[x]);var w=yt[f];w&&(delete w.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete yt[f])},u.render=function(){var f=t.globalName,m=this.props;m.asyncScriptOnLoad;var x=m.forwardedRef,w=bx(m,["asyncScriptOnLoad","forwardedRef"]);return f&&typeof window<"u"&&(w[f]=typeof window[f]<"u"?window[f]:void 0),w.ref=x,S.createElement(r,w)},a}(S.Component),l=S.forwardRef(function(s,a){return S.createElement(o,ba({},s,{forwardedRef:a}))});return l.displayName="AsyncScriptLoader("+i+")",l.propTypes={asyncScriptOnLoad:We.func},Rx(l,r)}}var Ta="onloadcallback",Ax="grecaptcha";function Oa(){return typeof window<"u"&&window.recaptchaOptions||{}}function Fx(){var e=Oa(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+Ta+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+Ta+"&render=explicit"}const Dx=Lx(Fx,{callbackName:Ta,globalName:Ax,attributes:Oa().nonce?{nonce:Oa().nonce}:{}})(_l);var $m={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ld=he.createContext&&he.createContext($m),Ix=["attr","size","title"];function Ux(e,t){if(e==null)return{};var n=$x(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $x(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Xo(){return Xo=Object.assign?Object.assign.bind():function(e){for(var t=1;the.createElement(t.tag,Zo({key:n},t.attr),zm(t.child)))}function Dl(e){return t=>he.createElement(Vx,Xo({attr:Zo({},e.attr)},t),zm(e.child))}function Vx(e){var t=n=>{var{attr:r,size:i,title:o}=e,l=Ux(e,Ix),s=i||n.size||"1em",a;return n.className&&(a=n.className),e.className&&(a=(a?a+" ":"")+e.className),he.createElement("svg",Xo({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,l,{className:a,style:Zo(Zo({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&he.createElement("title",null,o),e.children)};return Ld!==void 0?he.createElement(Ld.Consumer,null,n=>t(n)):t($m)}function Hx(e){return Dl({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"},child:[]}]})(e)}class Pi{constructor(t=0,n="Network Error"){this.status=t,this.text=n}}const Wx=()=>{if(!(typeof localStorage>"u"))return{get:e=>Promise.resolve(localStorage.getItem(e)),set:(e,t)=>Promise.resolve(localStorage.setItem(e,t)),remove:e=>Promise.resolve(localStorage.removeItem(e))}},Te={origin:"https://api.emailjs.com",blockHeadless:!1,storageProvider:Wx()},Vu=e=>e?typeof e=="string"?{publicKey:e}:e.toString()==="[object Object]"?e:{}:{},qx=(e,t="https://api.emailjs.com")=>{if(!e)return;const n=Vu(e);Te.publicKey=n.publicKey,Te.blockHeadless=n.blockHeadless,Te.storageProvider=n.storageProvider,Te.blockList=n.blockList,Te.limitRate=n.limitRate,Te.origin=n.origin||t},Mm=async(e,t,n={})=>{const r=await fetch(Te.origin+e,{method:"POST",headers:n,body:t}),i=await r.text(),o=new Pi(r.status,i);if(r.ok)return o;throw o},Bm=(e,t,n)=>{if(!e||typeof e!="string")throw"The public key is required. Visit https://dashboard.emailjs.com/admin/account";if(!t||typeof t!="string")throw"The service ID is required. Visit https://dashboard.emailjs.com/admin";if(!n||typeof n!="string")throw"The template ID is required. Visit https://dashboard.emailjs.com/admin/templates"},Kx=e=>{if(e&&e.toString()!=="[object Object]")throw"The template params have to be the object. Visit https://www.emailjs.com/docs/sdk/send/"},Vm=e=>e.webdriver||!e.languages||e.languages.length===0,Hm=()=>new Pi(451,"Unavailable For Headless Browser"),Qx=(e,t)=>{if(!Array.isArray(e))throw"The BlockList list has to be an array";if(typeof t!="string")throw"The BlockList watchVariable has to be a string"},Yx=e=>{var t;return!((t=e.list)!=null&&t.length)||!e.watchVariable},Jx=(e,t)=>e instanceof FormData?e.get(t):e[t],Wm=(e,t)=>{if(Yx(e))return!1;Qx(e.list,e.watchVariable);const n=Jx(t,e.watchVariable);return typeof n!="string"?!1:e.list.includes(n)},qm=()=>new Pi(403,"Forbidden"),Gx=(e,t)=>{if(typeof e!="number"||e<0)throw"The LimitRate throttle has to be a positive number";if(t&&typeof t!="string")throw"The LimitRate ID has to be a non-empty string"},Xx=async(e,t,n)=>{const r=Number(await n.get(e)||0);return t-Date.now()+r},Km=async(e,t,n)=>{if(!t.throttle||!n)return!1;Gx(t.throttle,t.id);const r=t.id||e;return await Xx(r,t.throttle,n)>0?!0:(await n.set(r,Date.now().toString()),!1)},Qm=()=>new Pi(429,"Too Many Requests"),Zx=async(e,t,n,r)=>{const i=Vu(r),o=i.publicKey||Te.publicKey,l=i.blockHeadless||Te.blockHeadless,s=i.storageProvider||Te.storageProvider,a={...Te.blockList,...i.blockList},u={...Te.limitRate,...i.limitRate};return l&&Vm(navigator)?Promise.reject(Hm()):(Bm(o,e,t),Kx(n),n&&Wm(a,n)?Promise.reject(qm()):await Km(location.pathname,u,s)?Promise.reject(Qm()):Mm("/api/v1.0/email/send",JSON.stringify({lib_version:"4.4.1",user_id:o,service_id:e,template_id:t,template_params:n}),{"Content-type":"application/json"}))},e1=e=>{if(!e||e.nodeName!=="FORM")throw"The 3rd parameter is expected to be the HTML form element or the style selector of the form"},t1=e=>typeof e=="string"?document.querySelector(e):e,n1=async(e,t,n,r)=>{const i=Vu(r),o=i.publicKey||Te.publicKey,l=i.blockHeadless||Te.blockHeadless,s=Te.storageProvider||i.storageProvider,a={...Te.blockList,...i.blockList},u={...Te.limitRate,...i.limitRate};if(l&&Vm(navigator))return Promise.reject(Hm());const d=t1(n);Bm(o,e,t),e1(d);const f=new FormData(d);return Wm(a,f)?Promise.reject(qm()):await Km(location.pathname,u,s)?Promise.reject(Qm()):(f.append("lib_version","4.4.1"),f.append("service_id",e),f.append("template_id",t),f.append("user_id",o),Mm("/api/v1.0/email/send-form",f))},r1={init:qx,send:Zx,sendForm:n1,EmailJSResponseStatus:Pi},i1="service_j8xvo9z",o1="template_s2h8844",l1="XAlvZgX_TqJ7GY4iN",s1="creativehashtago2023@gmail.com",a1=({onClose:e,onSuccess:t,downloadUrl:n})=>{const[r,i]=S.useState({name:"",email:"",mobile:"",course:""}),[o,l]=S.useState({}),[s,a]=S.useState(!1),[u,d]=S.useState(!1),f=S.useRef(),m=g=>{i({...r,[g.target.name]:g.target.value})},x=()=>{const g={};return r.name.trim()||(g.name="Name is required."),r.email?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r.email)||(g.email="Invalid email."):g.email="Email is required.",r.mobile?/^\d{10}$/.test(r.mobile)||(g.mobile="Enter a valid 10-digit mobile number."):g.mobile="Mobile is required.",r.course||(g.course="Select a course."),l(g),Object.keys(g).length===0},w=async g=>{if(g.preventDefault(),!!x()){a(!0);try{const E=await f.current.executeAsync();if(f.current.reset(),!E){Ss.error("CAPTCHA failed. Please try again.");return}await r1.send(i1,o1,{...r,"g-recaptcha-response":E,to_email:s1,reply_to:r.email},l1),Ss.success("Enquiry submitted successfully!"),d(!0),i({name:"",email:"",mobile:"",course:""}),l({}),t&&t(n),setTimeout(()=>{d(!1),e&&e()},1800)}catch{Ss.error("There was an error. Please try again.")}finally{a(!1)}}};return c.jsx("div",{className:"fixed inset-0 z-50 bg-black bg-opacity-60 flex justify-center items-center px-4 py-8",children:c.jsxs("div",{className:"bg-white w-full max-w-xl rounded-md shadow-lg overflow-hidden",children:[c.jsx("div",{className:"bg-[#0D0C2B] px-6 py-4",children:c.jsxs("div",{className:"flex justify-between items-center",children:[c.jsx("h2",{className:"text-white text-lg font-semibold",children:"Enquire Now"}),c.jsx("button",{onClick:e,className:"text-white text-xl",children:c.jsx(Hx,{})})]})}),u?c.jsxs("div",{className:"flex flex-col items-center justify-center py-12",children:[c.jsx("img",{src:"/Images/success-tick.png",className:"w-20 mb-4",alt:"Success"}),c.jsx("h3",{className:"text-green-600 text-xl font-semibold mb-2",children:"Thank You!"}),c.jsx("p",{children:"Your enquiry has been submitted."})]}):c.jsxs("form",{onSubmit:w,className:"px-6 py-8 space-y-4",children:[c.jsx("input",{type:"text",name:"name",value:r.name,onChange:m,placeholder:"Name*",className:"w-full border p-3 rounded-sm focus:outline-none",disabled:s}),o.name&&c.jsx("p",{className:"text-red-500 text-sm",children:o.name}),c.jsx("input",{type:"email",name:"email",value:r.email,onChange:m,placeholder:"Email*",className:"w-full border p-3 rounded-sm focus:outline-none",disabled:s}),o.email&&c.jsx("p",{className:"text-red-500 text-sm",children:o.email}),c.jsx("input",{type:"text",name:"mobile",value:r.mobile,onChange:m,placeholder:"Mobile*",className:"w-full border p-3 rounded-sm focus:outline-none",disabled:s}),o.mobile&&c.jsx("p",{className:"text-red-500 text-sm",children:o.mobile}),c.jsxs("select",{name:"course",value:r.course,onChange:m,className:"w-full border p-3 rounded-sm focus:outline-none text-black",disabled:s,children:[c.jsx("option",{value:"",children:"Select Course"}),c.jsx("option",{value:"M.Pharm",children:"M.Pharm"}),c.jsx("option",{value:"B.Pharm",children:"B.Pharm"}),c.jsx("option",{value:"D.Pharm",children:"D.Pharm"}),c.jsx("option",{value:"B.Pharm Lateral Entry",children:"B.Pharm Lateral Entry"})]}),o.course&&c.jsx("p",{className:"text-red-500 text-sm",children:o.course}),c.jsx(Dx,{ref:f,size:"invisible",sitekey:"6Lcdq40rAAAAAMID0UjiKncSYaFJzY49ujgh6NG3"}),c.jsx("button",{type:"submit",className:"w-full bg-gradient-to-br from-green-600 to-green-800 hover:from-green-700 hover:to-green-900 text-white font-medium text-sm py-3 rounded-sm hover:bg-[#77dd77] transition disabled:opacity-50",disabled:s,children:s?"Submitting...":"SUBMIT"})]})]})})};function $S(e){return Dl({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},child:[]},{tag:"polyline",attr:{points:"7 10 12 15 17 10"},child:[]},{tag:"line",attr:{x1:"12",y1:"15",x2:"12",y2:"3"},child:[]}]})(e)}function zS(e){return Dl({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"3"},child:[]}]})(e)}function u1(e){return Dl({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"3",y1:"12",x2:"21",y2:"12"},child:[]},{tag:"line",attr:{x1:"3",y1:"6",x2:"21",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"18",x2:"21",y2:"18"},child:[]}]})(e)}const Ym=({items:e,depth:t=0,openIndexes:n,setOpenIndexes:r,stickyMenu:i})=>{const o=S.useRef([]);S.useEffect(()=>{function s(a){o.current.every(u=>u&&!u.contains(a.target))&&r([])}return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[r]);const l=s=>`block px-3 py-2 text-[13px] rounded-md transition-all duration-200 ${t?"hover:bg-gray-100 text-black":i?"hover:text-white text-white":"hover:text-blue-500 text-black font-bold"} ${s?"text-green-600 font-bold":""}`;return c.jsx("ul",{className:`flex ${t?"flex-col bg-white shadow-lg border min-w-[200px]":"gap-1"}`,children:e.map((s,a)=>{const u=n[t]===a;return c.jsx("li",{className:`relative ${t?"":"px-0"} select-none`,ref:d=>o.current[a]=d,children:s.children?c.jsxs(c.Fragment,{children:[c.jsxs("button",{type:"button",className:`block px-4 py-2 text-[13px] w-full text-left flex items-center justify-between gap-2 rounded-md transition-all duration-200 ${t?"hover:bg-gray-100 text-black":i?"text-white hover:bg-[#020394] bg-opacity-90":"text-black hover:text-[#020394]"} ${u?"font-semibold text-[#f59e0b]":""}`,onClick:d=>{d.stopPropagation(),r(f=>f.slice(0,t).concat(u?void 0:a))},children:[s.title,c.jsx("span",{className:"text-[10px]",children:u?"▲":"▼"})]}),u&&c.jsx("div",{className:`absolute left-0 ${t===0?"top-full":"left-full top-0"} z-30`,children:c.jsx(Ym,{items:s.children,depth:t+1,openIndexes:n,setOpenIndexes:r,stickyMenu:i})})]}):c.jsx(Iu,{to:s.to,className:({isActive:d})=>l(d),onClick:()=>r([]),children:s.title})},s.title+a)})})},Jm=({items:e,onNavigate:t,depth:n=0})=>{const[r,i]=S.useState({}),o=l=>i(s=>({...s,[l]:!s[l]}));return c.jsx("ul",{children:e.map((l,s)=>c.jsxs("li",{children:[c.jsxs("div",{className:`flex justify-between items-center border-b py-2 ${n&&"pl-3"}`,children:[l.to?c.jsx(Iu,{to:l.to,className:({isActive:a})=>`block text-lg ${a?"font-bold underline text-[#020394]":""}`,onClick:t,children:l.title}):c.jsx("span",{className:"block text-lg",children:l.title}),l.children&&c.jsx("button",{onClick:()=>o(s),className:"ml-2",children:c.jsx("span",{className:"text-xl",children:r[s]?"−":"+"})})]}),l.children&&r[s]&&c.jsx("div",{className:"ml-3 border-l",children:c.jsx(Jm,{items:l.children,onNavigate:t,depth:n+1})})]},l.title+s))})};function c1(){const[e,t]=S.useState(!1);S.useState(""),S.useState(null);const[n,r]=S.useState(!1),[i,o]=S.useState([]),[l,s]=S.useState(!1),[a,u]=S.useState(!1),d=S.useRef(window.scrollY);return S.useEffect(()=>{function f(){const m=window.scrollY;if(window.innerWidth<1024){s(!1),u(!1);return}m>120?m>d.current?(u(!0),s(!0)):(u(!1),s(!0)):(u(!1),s(!1)),d.current=m}return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),S.useEffect(()=>(n?document.body.style.overflow="hidden":document.body.style.overflow="",()=>document.body.style.overflow=""),[n]),c.jsxs("header",{className:"w-full shadow z-50 relative",children:[c.jsx("div",{className:`hidden lg:block bg-[#0D0C2B] text-white w-full py-2 transition-all duration-300 ${a?"-translate-y-full opacity-0":"translate-y-0 opacity-100"}`,style:{willChange:"transform, opacity"},children:c.jsxs("div",{className:`w-full bg-[#0D0C2B] text-white py-2 px-4 lg:px-[8vw] flex flex-col md:flex-row items-center justify-between gap-2 transition-all duration-300 ${a?"-translate-y-full opacity-0":"translate-y-0 opacity-100"}`,style:{willChange:"transform, opacity"},children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("a",{href:"https://www.facebook.com/share/1Banxwo39e/",target:"_blank",rel:"noopener noreferrer",children:c.jsx("div",{className:"w-6 h-6 rounded-full bg-white text-[#020394] flex justify-center items-center shadow",children:c.jsx("i",{className:"ri-facebook-fill text-sm"})})}),c.jsx("a",{href:"https://www.instagram.com/birbhumpharmacyschool?igsh=MTV6OXZpZGZjZW5hZg==",target:"_blank",rel:"noopener noreferrer",children:c.jsx("div",{className:"w-6 h-6 rounded-full bg-white text-[#020394] flex justify-center items-center shadow",children:c.jsx("i",{className:"ri-instagram-line text-sm"})})}),c.jsx("div",{className:"w-6 h-6 rounded-full bg-white text-[#020394] flex justify-center items-center shadow",children:c.jsx("i",{className:"ri-youtube-line text-sm"})})]}),c.jsxs("div",{className:"flex gap-2 mt-1 md:mt-0",children:[c.jsx("button",{className:"bg-gradient-to-br from-green-600 to-green-800 hover:from-green-700 hover:to-green-900 text-white font-medium text-sm px-3 py-1 rounded border border-green-400 transition",onClick:()=>window.open("/PDF/BPS prospectus 2025 - FAINAL.pdf","_blank"),children:"Download Brochure"}),c.jsx("button",{className:"bg-gradient-to-br from-green-600 to-green-800 hover:from-green-700 hover:to-green-900 text-white font-medium text-sm px-3 py-1 rounded border border-green-400 transition",onClick:()=>t(!0),children:"Admission Enquire"})]})]})}),c.jsxs("div",{className:`mx-[2vw] flex justify-between items-center py-2 transition-all duration-300 ${a?"-translate-y-full opacity-0":"translate-y-0 opacity-100"}`,style:{willChange:"transform, opacity"},children:[c.jsxs(Iu,{to:"/",className:"flex items-center gap-1",children:[c.jsx("img",{className:"w-[80px] md:w-[20vw] sm:w-[20vw] xs:w-[20vw] lg:w-[100px]",src:"./Images/logo1.png",alt:"Logo 1"}),c.jsx("img",{className:"w-[180px] md:w-[65vw] sm:w-[65vw] xs:w-[65vw] lg:w-[500px]",src:"./Images/logo.png",alt:"Logo 2"})]}),c.jsxs("div",{className:"hidden lg:flex gap-8",children:[c.jsxs("div",{className:"flex flex-col items-center py-1 px-3 rounded-sm min-w-[220px] border-2 border-green-800 animate-blink-border",children:[c.jsx("p",{className:"text-[#020495] font-semibold text-[14px]",children:"Admission Cell contact"}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("a",{href:"tel:9851729252",className:"flex items-center hover:underline",children:[c.jsx("i",{className:"ri-phone-fill text-[#020495] text-lg mr-1"}),c.jsx("span",{className:"font-medium text-[13px]",children:"+91-9851729252"})]}),c.jsxs("a",{href:"tel:9434945804",className:"flex items-center hover:underline",children:[c.jsx("i",{className:"ri-phone-fill text-[#020495] text-lg mr-1"}),c.jsx("span",{className:"font-medium text-[13px]",children:"+91-9434945804"})]}),c.jsxs("a",{href:"tel:9732032108",className:"flex items-center hover:underline",children:[c.jsx("i",{className:"ri-phone-fill text-[#020495] text-lg mr-1"}),c.jsx("span",{className:"font-medium text-[13px]",children:"+91-9732032108"})]})]}),c.jsx("div",{className:"flex items-center gap-1",children:c.jsxs("a",{href:"mailto:bpschool2015@gmail.com",className:"flex items-center hover:underline ml-1",children:[c.jsx("i",{className:"ri-mail-fill text-[#020495] text-lg mr-1"}),c.jsx("span",{className:"font-medium text-[13px]",children:"bpschool2015@gmail.com"})]})})]}),c.jsxs("div",{className:"flex flex-col items-center py-1 px-3 rounded-sm min-w-[180px] border-2 border-[#FF0000] animate-blink-border",children:[c.jsx("p",{className:"text-[#FF0000] font-semibold text-[14px]",children:"Ragging Free Campus"}),c.jsx("p",{className:"font-medium text-[13px]",children:"24/7 Help Line NO."}),c.jsx("div",{className:"flex items-center gap-1",children:c.jsxs("a",{href:"tel:18001805522",className:"flex items-center hover:underline",children:[c.jsx("i",{className:"ri-phone-fill text-[#FF0000] text-sm mr-1"}),c.jsx("span",{children:"1800-180-5522"})]})})]})]}),c.jsx("button",{className:"lg:hidden text-3xl ml-auto text-white bg-[#28a745] sm:w-10 p-1 sm:h-10 w-8 h-8 rounded-full cursor-pointer shadow-2xl border border-gray-100",onClick:()=>r(!0),children:c.jsx(u1,{className:"w-full h-full"})})]}),c.jsxs("nav",{className:`w-full transition-all duration-300 ${l?"fixed top-0 left-0 z-[999] lg:bg-[#020031] lg:text-white shadow-lg":"lg:bg-[#e7e7e7] lg:text-black relative"}`,style:{willChange:"background, color"},children:[c.jsx("div",{className:"hidden lg:flex justify-center items-center gap-4 relative",children:c.jsx(Ym,{items:Cd,openIndexes:i,setOpenIndexes:o,stickyMenu:l})}),n&&c.jsxs("div",{className:"fixed inset-0 z-[9999] flex",children:[c.jsxs("div",{className:"bg-white w-80 max-w-[80vw] h-full shadow-lg flex flex-col p-5 overflow-y-auto max-h-screen",children:[c.jsxs("div",{className:"flex justify-between items-center mb-4",children:[c.jsx("img",{className:"w-[130px]",src:"./Images/logo1.png",alt:"Logo"}),c.jsx("button",{onClick:()=>r(!1),className:"text-2xl",children:c.jsx("i",{className:"ri-close-line"})})]}),c.jsx(Jm,{items:Cd,onNavigate:()=>r(!1)}),c.jsxs("div",{className:"mt-6 space-y-3",children:[c.jsxs("div",{className:"border-2 border-[#FF0000] py-1 px-3 rounded-sm text-[13px] animate-blink-border",children:[c.jsx("p",{className:"text-[#020495] font-semibold",children:"Admission Cell contact"}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsxs("a",{href:"tel:9851729252",className:"flex items-center hover:underline",children:[c.jsx("i",{className:"ri-phone-fill text-[#020495] text-lg mr-1",children:"+91-9851729252"}),c.jsx("span",{})]}),c.jsxs("a",{href:"tel:9434945804",className:"flex items-center hover:underline",children:[c.jsx("i",{className:"ri-phone-fill text-[#020495] text-lg mr-1",children:"+91-9434945804"}),c.jsx("span",{})]}),c.jsxs("a",{href:"tel:9732032108",className:"flex items-center hover:underline",children:[c.jsx("i",{className:"ri-phone-fill text-[#020495] text-lg mr-1",children:"+91-9732032108"}),c.jsx("span",{})]})]}),c.jsx("div",{className:"flex items-center gap-1",children:c.jsxs("a",{href:"mailto:bpschool2015@gmail.com",className:"flex items-center hover:underline ml-1",children:[c.jsx("i",{className:"ri-mail-fill text-[#020495] text-lg mr-1",children:"bpschool2015@gmail.com"}),c.jsx("span",{})]})})]}),c.jsxs("div",{className:"border-2 border-[#FF0000] py-1 px-3 rounded-sm text-[13px] animate-blink-border",children:[c.jsx("p",{className:"text-[#FF0000] font-semibold",children:"Ragging Free Campus"}),c.jsx("p",{className:"font-medium",children:"24/7 Help Line NO."}),c.jsx("div",{className:"flex items-center gap-1",children:c.jsxs("a",{href:"tel:18001805522",className:"flex items-center hover:underline",children:[c.jsx("i",{className:"ri-phone-fill text-[#FF0000] text-sm mr-1"}),c.jsx("span",{children:"1800-180-5522"})]})})]})]}),c.jsxs("div",{className:" py-4",children:[" ",c.jsx("button",{className:"bg-green-600 hover:bg-green-700 text-white font-medium text-sm px-3 py-1 rounded border border-green-400 transition",onClick:()=>window.open("/PDF/BPS prospectus 2025 - FAINAL.pdf","_blank"),children:"Download Brochure"})]})]}),c.jsx("div",{className:"flex-1 bg-black bg-opacity-50",onClick:()=>r(!1)})]})]}),e&&c.jsx(a1,{onClose:()=>t(!1)}),c.jsx("style",{children:` @keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } } .animate-blink { animation: blink 1s infinite; } // @keyframes blink-border { // 0%,100% { box-shadow: 0 0 8px 2px #FFD700; border-color: #FFD700; } // 50% { box-shadow: 0 0 16px 4px #00ff26ff; border-color: #0dff00ff; } // } .animate-blink-border { animation: blink-border 1s infinite; } `})]})}const d1="/Images/logo1.png",f1=()=>c.jsxs("footer",{className:"bg-[#0D0C2B] text-white px-6 sm:px-10 lg:px-20 pt-12 pb-6 text-sm",children:[c.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-start lg:justify-between gap-8 mb-10",children:[c.jsx("div",{className:"flex-shrink-0 space-y-3 max-w-sm",children:c.jsx("img",{src:d1,alt:"BPS Logo",className:"w-20 h-20 object-contain"})}),c.jsx("div",{className:"text-gray-300 leading-relaxed max-w-xl lg:mt-4",children:"SREE RAMKRISHNA COLLEGE OF PHARMACY established in the year 2015, having an impressive campus is dedicated to develop and nurture pharmaceutical education and research."})]}),c.jsxs("div",{className:"border-t border-gray-600 pt-8 grid grid-cols-1 xs:grid-cols-2 sm:grid-cols-2 lg:grid-cols-3 gap-8 text-gray-300",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"text-white font-semibold mb-3",children:"USEFUL LINKS"}),c.jsxs("ul",{className:"space-y-1",children:[c.jsx("li",{children:c.jsx(cn,{to:"/courses",children:"COURSES"})}),c.jsx("li",{children:c.jsx(cn,{to:"/admission",children:"ADMISSION"})}),c.jsx("li",{children:c.jsx(cn,{to:"/admin",children:"ADMIN"})}),c.jsx("li",{children:c.jsx(cn,{to:"/privacy-policy",children:"PRIVACY POLICY"})})]})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-white font-semibold mb-3",children:"QUICK LINKS"}),c.jsxs("ul",{className:"space-y-1",children:[c.jsx("li",{children:c.jsx("a",{href:"https://www.wbut.ac.in",target:"_blank",rel:"noopener noreferrer",children:"www.wbut.ac.in"})}),c.jsx("li",{children:c.jsx("a",{href:"https://www.aicte-india.org",target:"_blank",rel:"noopener noreferrer",children:"www.aicte-india.org"})}),c.jsx("li",{children:c.jsx("a",{href:"https://www.pci.nic.in",target:"_blank",rel:"noopener noreferrer",children:"www.pci.nic.in"})})]})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-white font-semibold mb-3",children:"QUICK CONTACTS"}),c.jsxs("p",{children:["Vill: Bandhersole, ",c.jsx("br",{}),"P.S: Sadaipur, ",c.jsx("br",{}),"P.O: Hetampur, PIN: 731124,",c.jsx("br",{}),"Dist: Birbhum, West Bengal",c.jsx("br",{}),"Email: ",c.jsx("br",{}),"bpschool2015@gmail.com"]})]}),c.jsx("div",{className:"mb-3",children:c.jsxs("p",{children:["Phone: ",c.jsx("br",{}),"+91 9851729252 ",c.jsx("br",{}),"+91 9434945804 ",c.jsx("br",{}),"+91 9732032108"]})})]}),c.jsxs("div",{className:"mt-10 border-t border-gray-600 pt-4 text-center text-gray-400 text-xs",children:[c.jsx("p",{children:"2025 © SREE RAMKRISHNA COLLEGE OF PHARMACY. All Rights Reserved."}),c.jsxs("p",{className:"mt-1",children:["Powered by ",c.jsx("span",{className:"text-white font-semibold",children:"Hashtago"})]})]})]});function p1(){return c.jsxs("div",{className:"flex flex-col min-h-screen",children:[c.jsx(c1,{}),c.jsx("main",{className:"flex-1",children:c.jsx(Z0,{})}),c.jsx(f1,{})]})}const m1="/assets/logo1-DniG1c8G.png",Gm=()=>c.jsx("div",{className:"h-screen w-screen flex items-center justify-center bg-white relative",children:c.jsxs("div",{className:"relative w-32 h-32 flex items-center justify-center",children:[c.jsx("img",{src:m1,alt:"SREE RAMKRISHNA COLLEGE OF PHARMACY",className:"w-16 h-16 object-contain z-10 animate-pulse"}),c.jsx("div",{className:"absolute w-32 h-32 border-t-[3px] border-r-[1px] border-b-[1px] border-l-[3px] border-green-500 rounded-full animate-rotateRing opacity-60"}),c.jsx("div",{className:"absolute w-28 h-28 border-t-[1px] border-l-[2px] border-r-[1px] border-b-[2px] border-green-400 rounded-full animate-rotateRingSlow opacity-50"}),c.jsx("div",{className:"absolute w-24 h-24 border-t-[1px] border-r-[2px] border-b-[1px] border-l-[2px] border-green-300 rounded-full animate-rotateRingReverse opacity-30"})]})}),h1=({children:e})=>{const t=_n(),[n,r]=S.useState(!0);return S.useEffect(()=>{r(!0);const i=setTimeout(()=>{r(!1)},800);return()=>clearTimeout(i)},[t.pathname]),n?c.jsx(Gm,{}):e};function Xm(e,t){return function(){return e.apply(t,arguments)}}const{toString:y1}=Object.prototype,{getPrototypeOf:Hu}=Object,{iterator:Il,toStringTag:Zm}=Symbol,Ul=(e=>t=>{const n=y1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_t=e=>(e=e.toLowerCase(),t=>Ul(t)===e),$l=e=>t=>typeof t===e,{isArray:jr}=Array,wi=$l("undefined");function Ri(e){return e!==null&&!wi(e)&&e.constructor!==null&&!wi(e.constructor)&&Xe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const eh=_t("ArrayBuffer");function g1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&eh(e.buffer),t}const v1=$l("string"),Xe=$l("function"),th=$l("number"),bi=e=>e!==null&&typeof e=="object",x1=e=>e===!0||e===!1,vo=e=>{if(Ul(e)!=="object")return!1;const t=Hu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Zm in e)&&!(Il in e)},w1=e=>{if(!bi(e)||Ri(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},S1=_t("Date"),E1=_t("File"),k1=_t("Blob"),N1=_t("FileList"),_1=e=>bi(e)&&Xe(e.pipe),C1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xe(e.append)&&((t=Ul(e))==="formdata"||t==="object"&&Xe(e.toString)&&e.toString()==="[object FormData]"))},j1=_t("URLSearchParams"),[P1,R1,b1,T1]=["ReadableStream","Request","Response","Headers"].map(_t),O1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ti(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),jr(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ln=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rh=e=>!wi(e)&&e!==Ln;function La(){const{caseless:e}=rh(this)&&this||{},t={},n=(r,i)=>{const o=e&&nh(t,i)||i;vo(t[o])&&vo(r)?t[o]=La(t[o],r):vo(r)?t[o]=La({},r):jr(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Ti(t,(i,o)=>{n&&Xe(i)?e[o]=Xm(i,n):e[o]=i},{allOwnKeys:r}),e),A1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),F1=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},D1=(e,t,n,r)=>{let i,o,l;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)l=i[o],(!r||r(l,e,t))&&!s[l]&&(t[l]=e[l],s[l]=!0);e=n!==!1&&Hu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},I1=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},U1=e=>{if(!e)return null;if(jr(e))return e;let t=e.length;if(!th(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},$1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Hu(Uint8Array)),z1=(e,t)=>{const r=(e&&e[Il]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},M1=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},B1=_t("HTMLFormElement"),V1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Fd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),H1=_t("RegExp"),ih=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ti(n,(i,o)=>{let l;(l=t(i,o,e))!==!1&&(r[o]=l||i)}),Object.defineProperties(e,r)},W1=e=>{ih(e,(t,n)=>{if(Xe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Xe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},q1=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return jr(e)?r(e):r(String(e).split(t)),n},K1=()=>{},Q1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Y1(e){return!!(e&&Xe(e.append)&&e[Zm]==="FormData"&&e[Il])}const J1=e=>{const t=new Array(10),n=(r,i)=>{if(bi(r)){if(t.indexOf(r)>=0)return;if(Ri(r))return r;if(!("toJSON"in r)){t[i]=r;const o=jr(r)?[]:{};return Ti(r,(l,s)=>{const a=n(l,i+1);!wi(a)&&(o[s]=a)}),t[i]=void 0,o}}return r};return n(e,0)},G1=_t("AsyncFunction"),X1=e=>e&&(bi(e)||Xe(e))&&Xe(e.then)&&Xe(e.catch),oh=((e,t)=>e?setImmediate:t?((n,r)=>(Ln.addEventListener("message",({source:i,data:o})=>{i===Ln&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ln.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Xe(Ln.postMessage)),Z1=typeof queueMicrotask<"u"?queueMicrotask.bind(Ln):typeof process<"u"&&process.nextTick||oh,ew=e=>e!=null&&Xe(e[Il]),_={isArray:jr,isArrayBuffer:eh,isBuffer:Ri,isFormData:C1,isArrayBufferView:g1,isString:v1,isNumber:th,isBoolean:x1,isObject:bi,isPlainObject:vo,isEmptyObject:w1,isReadableStream:P1,isRequest:R1,isResponse:b1,isHeaders:T1,isUndefined:wi,isDate:S1,isFile:E1,isBlob:k1,isRegExp:H1,isFunction:Xe,isStream:_1,isURLSearchParams:j1,isTypedArray:$1,isFileList:N1,forEach:Ti,merge:La,extend:L1,trim:O1,stripBOM:A1,inherits:F1,toFlatObject:D1,kindOf:Ul,kindOfTest:_t,endsWith:I1,toArray:U1,forEachEntry:z1,matchAll:M1,isHTMLForm:B1,hasOwnProperty:Fd,hasOwnProp:Fd,reduceDescriptors:ih,freezeMethods:W1,toObjectSet:q1,toCamelCase:V1,noop:K1,toFiniteNumber:Q1,findKey:nh,global:Ln,isContextDefined:rh,isSpecCompliantForm:Y1,toJSONObject:J1,isAsyncFn:G1,isThenable:X1,setImmediate:oh,asap:Z1,isIterable:ew};function K(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}_.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.status}}});const lh=K.prototype,sh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{sh[e]={value:e}});Object.defineProperties(K,sh);Object.defineProperty(lh,"isAxiosError",{value:!0});K.from=(e,t,n,r,i,o)=>{const l=Object.create(lh);return _.toFlatObject(e,l,function(a){return a!==Error.prototype},s=>s!=="isAxiosError"),K.call(l,e.message,t,n,r,i),l.cause=e,l.name=e.name,o&&Object.assign(l,o),l};const tw=null;function Aa(e){return _.isPlainObject(e)||_.isArray(e)}function ah(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function Dd(e,t,n){return e?e.concat(t).map(function(i,o){return i=ah(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function nw(e){return _.isArray(e)&&!e.some(Aa)}const rw=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function zl(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,E){return!_.isUndefined(E[g])});const r=n.metaTokens,i=n.visitor||d,o=n.dots,l=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(t);if(!_.isFunction(i))throw new TypeError("visitor must be a function");function u(w){if(w===null)return"";if(_.isDate(w))return w.toISOString();if(_.isBoolean(w))return w.toString();if(!a&&_.isBlob(w))throw new K("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(w)||_.isTypedArray(w)?a&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function d(w,g,E){let h=w;if(w&&!E&&typeof w=="object"){if(_.endsWith(g,"{}"))g=r?g:g.slice(0,-2),w=JSON.stringify(w);else if(_.isArray(w)&&nw(w)||(_.isFileList(w)||_.endsWith(g,"[]"))&&(h=_.toArray(w)))return g=ah(g),h.forEach(function(y,k){!(_.isUndefined(y)||y===null)&&t.append(l===!0?Dd([g],k,o):l===null?g:g+"[]",u(y))}),!1}return Aa(w)?!0:(t.append(Dd(E,g,o),u(w)),!1)}const f=[],m=Object.assign(rw,{defaultVisitor:d,convertValue:u,isVisitable:Aa});function x(w,g){if(!_.isUndefined(w)){if(f.indexOf(w)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(w),_.forEach(w,function(h,p){(!(_.isUndefined(h)||h===null)&&i.call(t,h,_.isString(p)?p.trim():p,g,m))===!0&&x(h,g?g.concat(p):[p])}),f.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Id(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Wu(e,t){this._pairs=[],e&&zl(e,this,t)}const uh=Wu.prototype;uh.append=function(t,n){this._pairs.push([t,n])};uh.toString=function(t){const n=t?function(r){return t.call(this,r,Id)}:Id;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function iw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ch(e,t,n){if(!t)return e;const r=n&&n.encode||iw;_.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=_.isURLSearchParams(t)?t.toString():new Wu(t,n).toString(r),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Ud{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(r){r!==null&&t(r)})}}const dh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ow=typeof URLSearchParams<"u"?URLSearchParams:Wu,lw=typeof FormData<"u"?FormData:null,sw=typeof Blob<"u"?Blob:null,aw={isBrowser:!0,classes:{URLSearchParams:ow,FormData:lw,Blob:sw},protocols:["http","https","file","blob","url","data"]},qu=typeof window<"u"&&typeof document<"u",Fa=typeof navigator=="object"&&navigator||void 0,uw=qu&&(!Fa||["ReactNative","NativeScript","NS"].indexOf(Fa.product)<0),cw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dw=qu&&window.location.href||"http://localhost",fw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qu,hasStandardBrowserEnv:uw,hasStandardBrowserWebWorkerEnv:cw,navigator:Fa,origin:dw},Symbol.toStringTag,{value:"Module"})),Ue={...fw,...aw};function pw(e,t){return zl(e,new Ue.classes.URLSearchParams,{visitor:function(n,r,i,o){return Ue.isNode&&_.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function mw(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hw(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return l=!l&&_.isArray(i)?i.length:l,a?(_.hasOwnProp(i,l)?i[l]=[i[l],r]:i[l]=r,!s):((!i[l]||!_.isObject(i[l]))&&(i[l]=[]),t(n,r,i[l],o)&&_.isArray(i[l])&&(i[l]=hw(i[l])),!s)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(r,i)=>{t(mw(r),i,n,0)}),n}return null}function yw(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Oi={transitional:dh,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=_.isObject(t);if(o&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return i?JSON.stringify(fh(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t)||_.isReadableStream(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pw(t,this.formSerializer).toString();if((s=_.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return zl(s?{"files[]":t}:t,a&&new a,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),yw(t)):t}],transformResponse:[function(t){const n=this.transitional||Oi.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(_.isResponse(t)||_.isReadableStream(t))return t;if(t&&_.isString(t)&&(r&&!this.responseType||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(l)throw s.name==="SyntaxError"?K.from(s,K.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ue.classes.FormData,Blob:Ue.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],e=>{Oi.headers[e]={}});const gw=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),vw=e=>{const t={};let n,r,i;return e&&e.split(` `).forEach(function(l){i=l.indexOf(":"),n=l.substring(0,i).trim().toLowerCase(),r=l.substring(i+1).trim(),!(!n||t[n]&&gw[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},$d=Symbol("internals");function Ir(e){return e&&String(e).trim().toLowerCase()}function xo(e){return e===!1||e==null?e:_.isArray(e)?e.map(xo):String(e)}function xw(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const ww=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function _s(e,t,n,r,i){if(_.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!_.isString(t)){if(_.isString(r))return t.indexOf(r)!==-1;if(_.isRegExp(r))return r.test(t)}}function Sw(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Ew(e,t){const n=_.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,l){return this[r].call(this,t,i,o,l)},configurable:!0})})}class Ze{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,a,u){const d=Ir(a);if(!d)throw new Error("header name must be a non-empty string");const f=_.findKey(i,d);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||a]=xo(s))}const l=(s,a)=>_.forEach(s,(u,d)=>o(u,d,a));if(_.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(_.isString(t)&&(t=t.trim())&&!ww(t))l(vw(t),n);else if(_.isObject(t)&&_.isIterable(t)){let s={},a,u;for(const d of t){if(!_.isArray(d))throw TypeError("Object iterator must return a key-value pair");s[u=d[0]]=(a=s[u])?_.isArray(a)?[...a,d[1]]:[a,d[1]]:d[1]}l(s,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Ir(t),t){const r=_.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return xw(i);if(_.isFunction(n))return n.call(this,i,r);if(_.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ir(t),t){const r=_.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||_s(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(l){if(l=Ir(l),l){const s=_.findKey(r,l);s&&(!n||_s(r,r[s],s,n))&&(delete r[s],i=!0)}}return _.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||_s(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return _.forEach(this,(i,o)=>{const l=_.findKey(r,o);if(l){n[l]=xo(i),delete n[o];return}const s=t?Sw(o):String(o).trim();s!==o&&delete n[o],n[s]=xo(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return _.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&_.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[$d]=this[$d]={accessors:{}}).accessors,i=this.prototype;function o(l){const s=Ir(l);r[s]||(Ew(i,l),r[s]=!0)}return _.isArray(t)?t.forEach(o):o(t),this}}Ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.reduceDescriptors(Ze.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});_.freezeMethods(Ze);function Cs(e,t){const n=this||Oi,r=t||n,i=Ze.from(r.headers);let o=r.data;return _.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function ph(e){return!!(e&&e.__CANCEL__)}function Pr(e,t,n){K.call(this,e??"canceled",K.ERR_CANCELED,t,n),this.name="CanceledError"}_.inherits(Pr,K,{__CANCEL__:!0});function mh(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new K("Request failed with status code "+n.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function kw(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Nw(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,l;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),d=r[o];l||(l=u),n[i]=a,r[i]=u;let f=o,m=0;for(;f!==i;)m+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-l{n=d,i=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?l(u,d):(i=u,o||(o=setTimeout(()=>{o=null,l(i)},r-f)))},()=>i&&l(i)]}const el=(e,t,n=3)=>{let r=0;const i=Nw(50,250);return _w(o=>{const l=o.loaded,s=o.lengthComputable?o.total:void 0,a=l-r,u=i(a),d=l<=s;r=l;const f={loaded:l,total:s,progress:s?l/s:void 0,bytes:a,rate:u||void 0,estimated:u&&s&&d?(s-l)/u:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},zd=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Md=e=>(...t)=>_.asap(()=>e(...t)),Cw=Ue.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ue.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ue.origin),Ue.navigator&&/(msie|trident)/i.test(Ue.navigator.userAgent)):()=>!0,jw=Ue.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const l=[e+"="+encodeURIComponent(t)];_.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),_.isString(r)&&l.push("path="+r),_.isString(i)&&l.push("domain="+i),o===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Pw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Rw(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function hh(e,t,n){let r=!Pw(t);return e&&(r||n==!1)?Rw(e,t):t}const Bd=e=>e instanceof Ze?{...e}:e;function Vn(e,t){t=t||{};const n={};function r(u,d,f,m){return _.isPlainObject(u)&&_.isPlainObject(d)?_.merge.call({caseless:m},u,d):_.isPlainObject(d)?_.merge({},d):_.isArray(d)?d.slice():d}function i(u,d,f,m){if(_.isUndefined(d)){if(!_.isUndefined(u))return r(void 0,u,f,m)}else return r(u,d,f,m)}function o(u,d){if(!_.isUndefined(d))return r(void 0,d)}function l(u,d){if(_.isUndefined(d)){if(!_.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function s(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const a={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s,headers:(u,d,f)=>i(Bd(u),Bd(d),f,!0)};return _.forEach(Object.keys({...e,...t}),function(d){const f=a[d]||i,m=f(e[d],t[d],d);_.isUndefined(m)&&f!==s||(n[d]=m)}),n}const yh=e=>{const t=Vn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:l,auth:s}=t;t.headers=l=Ze.from(l),t.url=ch(hh(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&l.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let a;if(_.isFormData(n)){if(Ue.hasStandardBrowserEnv||Ue.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((a=l.getContentType())!==!1){const[u,...d]=a?a.split(";").map(f=>f.trim()).filter(Boolean):[];l.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Ue.hasStandardBrowserEnv&&(r&&_.isFunction(r)&&(r=r(t)),r||r!==!1&&Cw(t.url))){const u=i&&o&&jw.read(o);u&&l.set(i,u)}return t},bw=typeof XMLHttpRequest<"u",Tw=bw&&function(e){return new Promise(function(n,r){const i=yh(e);let o=i.data;const l=Ze.from(i.headers).normalize();let{responseType:s,onUploadProgress:a,onDownloadProgress:u}=i,d,f,m,x,w;function g(){x&&x(),w&&w(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let E=new XMLHttpRequest;E.open(i.method.toUpperCase(),i.url,!0),E.timeout=i.timeout;function h(){if(!E)return;const y=Ze.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),j={data:!s||s==="text"||s==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:y,config:e,request:E};mh(function(C){n(C),g()},function(C){r(C),g()},j),E=null}"onloadend"in E?E.onloadend=h:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(h)},E.onabort=function(){E&&(r(new K("Request aborted",K.ECONNABORTED,e,E)),E=null)},E.onerror=function(){r(new K("Network Error",K.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let k=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const j=i.transitional||dh;i.timeoutErrorMessage&&(k=i.timeoutErrorMessage),r(new K(k,j.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,E)),E=null},o===void 0&&l.setContentType(null),"setRequestHeader"in E&&_.forEach(l.toJSON(),function(k,j){E.setRequestHeader(j,k)}),_.isUndefined(i.withCredentials)||(E.withCredentials=!!i.withCredentials),s&&s!=="json"&&(E.responseType=i.responseType),u&&([m,w]=el(u,!0),E.addEventListener("progress",m)),a&&E.upload&&([f,x]=el(a),E.upload.addEventListener("progress",f),E.upload.addEventListener("loadend",x)),(i.cancelToken||i.signal)&&(d=y=>{E&&(r(!y||y.type?new Pr(null,e,E):y),E.abort(),E=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const p=kw(i.url);if(p&&Ue.protocols.indexOf(p)===-1){r(new K("Unsupported protocol "+p+":",K.ERR_BAD_REQUEST,e));return}E.send(o||null)})},Ow=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(u){if(!i){i=!0,s();const d=u instanceof Error?u:this.reason;r.abort(d instanceof K?d:new Pr(d instanceof Error?d.message:d))}};let l=t&&setTimeout(()=>{l=null,o(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))},t);const s=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=()=>_.asap(s),a}},Lw=function*(e,t){let n=e.byteLength;if(!t||n{const i=Aw(e,t);let o=0,l,s=a=>{l||(l=!0,r&&r(a))};return new ReadableStream({async pull(a){try{const{done:u,value:d}=await i.next();if(u){s(),a.close();return}let f=d.byteLength;if(n){let m=o+=f;n(m)}a.enqueue(new Uint8Array(d))}catch(u){throw s(u),u}},cancel(a){return s(a),i.return()}},{highWaterMark:2})},Ml=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",gh=Ml&&typeof ReadableStream=="function",Dw=Ml&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),vh=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Iw=gh&&vh(()=>{let e=!1;const t=new Request(Ue.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Hd=64*1024,Da=gh&&vh(()=>_.isReadableStream(new Response("").body)),tl={stream:Da&&(e=>e.body)};Ml&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!tl[t]&&(tl[t]=_.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new K(`Response type '${t}' is not supported`,K.ERR_NOT_SUPPORT,r)})})})(new Response);const Uw=async e=>{if(e==null)return 0;if(_.isBlob(e))return e.size;if(_.isSpecCompliantForm(e))return(await new Request(Ue.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(_.isArrayBufferView(e)||_.isArrayBuffer(e))return e.byteLength;if(_.isURLSearchParams(e)&&(e=e+""),_.isString(e))return(await Dw(e)).byteLength},$w=async(e,t)=>{const n=_.toFiniteNumber(e.getContentLength());return n??Uw(t)},zw=Ml&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:l,onDownloadProgress:s,onUploadProgress:a,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:m}=yh(e);u=u?(u+"").toLowerCase():"text";let x=Ow([i,o&&o.toAbortSignal()],l),w;const g=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let E;try{if(a&&Iw&&n!=="get"&&n!=="head"&&(E=await $w(d,r))!==0){let j=new Request(t,{method:"POST",body:r,duplex:"half"}),L;if(_.isFormData(r)&&(L=j.headers.get("content-type"))&&d.setContentType(L),j.body){const[C,R]=zd(E,el(Md(a)));r=Vd(j.body,Hd,C,R)}}_.isString(f)||(f=f?"include":"omit");const h="credentials"in Request.prototype;w=new Request(t,{...m,signal:x,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:h?f:void 0});let p=await fetch(w,m);const y=Da&&(u==="stream"||u==="response");if(Da&&(s||y&&g)){const j={};["status","statusText","headers"].forEach(U=>{j[U]=p[U]});const L=_.toFiniteNumber(p.headers.get("content-length")),[C,R]=s&&zd(L,el(Md(s),!0))||[];p=new Response(Vd(p.body,Hd,C,()=>{R&&R(),g&&g()}),j)}u=u||"text";let k=await tl[_.findKey(tl,u)||"text"](p,e);return!y&&g&&g(),await new Promise((j,L)=>{mh(j,L,{data:k,headers:Ze.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:w})})}catch(h){throw g&&g(),h&&h.name==="TypeError"&&/Load failed|fetch/i.test(h.message)?Object.assign(new K("Network Error",K.ERR_NETWORK,e,w),{cause:h.cause||h}):K.from(h,h&&h.code,e,w)}}),Ia={http:tw,xhr:Tw,fetch:zw};_.forEach(Ia,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Wd=e=>`- ${e}`,Mw=e=>_.isFunction(e)||e===null||e===!1,xh={getAdapter:e=>{e=_.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${s} `+(a===!1?"is not supported by the environment":"is not available in the build"));let l=t?o.length>1?`since : `+o.map(Wd).join(` `):" "+Wd(o[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:Ia};function js(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pr(null,e)}function qd(e){return js(e),e.headers=Ze.from(e.headers),e.data=Cs.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xh.getAdapter(e.adapter||Oi.adapter)(e).then(function(r){return js(e),r.data=Cs.call(e,e.transformResponse,r),r.headers=Ze.from(r.headers),r},function(r){return ph(r)||(js(e),r&&r.response&&(r.response.data=Cs.call(e,e.transformResponse,r.response),r.response.headers=Ze.from(r.response.headers))),Promise.reject(r)})}const wh="1.11.0",Bl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Bl[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Kd={};Bl.transitional=function(t,n,r){function i(o,l){return"[Axios v"+wh+"] Transitional option '"+o+"'"+l+(r?". "+r:"")}return(o,l,s)=>{if(t===!1)throw new K(i(l," has been removed"+(n?" in "+n:"")),K.ERR_DEPRECATED);return n&&!Kd[l]&&(Kd[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,l,s):!0}};Bl.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Bw(e,t,n){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],l=t[o];if(l){const s=e[o],a=s===void 0||l(s,o,e);if(a!==!0)throw new K("option "+o+" must be "+a,K.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new K("Unknown option "+o,K.ERR_BAD_OPTION)}}const wo={assertOptions:Bw,validators:Bl},jt=wo.validators;class In{constructor(t){this.defaults=t||{},this.interceptors={request:new Ud,response:new Ud}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Vn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&wo.assertOptions(r,{silentJSONParsing:jt.transitional(jt.boolean),forcedJSONParsing:jt.transitional(jt.boolean),clarifyTimeoutError:jt.transitional(jt.boolean)},!1),i!=null&&(_.isFunction(i)?n.paramsSerializer={serialize:i}:wo.assertOptions(i,{encode:jt.function,serialize:jt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),wo.assertOptions(n,{baseUrl:jt.spelling("baseURL"),withXsrfToken:jt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=o&&_.merge(o.common,o[n.method]);o&&_.forEach(["delete","get","head","post","put","patch","common"],w=>{delete o[w]}),n.headers=Ze.concat(l,o);const s=[];let a=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(a=a&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let d,f=0,m;if(!a){const w=[qd.bind(this),void 0];for(w.unshift(...s),w.push(...u),m=w.length,d=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const l=new Promise(s=>{r.subscribe(s),o=s}).then(i);return l.cancel=function(){r.unsubscribe(o)},l},t(function(o,l,s){r.reason||(r.reason=new Pr(o,l,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ku(function(i){t=i}),cancel:t}}}function Vw(e){return function(n){return e.apply(null,n)}}function Hw(e){return _.isObject(e)&&e.isAxiosError===!0}const Ua={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ua).forEach(([e,t])=>{Ua[t]=e});function Sh(e){const t=new In(e),n=Xm(In.prototype.request,t);return _.extend(n,In.prototype,t,{allOwnKeys:!0}),_.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Sh(Vn(e,i))},n}const ke=Sh(Oi);ke.Axios=In;ke.CanceledError=Pr;ke.CancelToken=Ku;ke.isCancel=ph;ke.VERSION=wh;ke.toFormData=zl;ke.AxiosError=K;ke.Cancel=ke.CanceledError;ke.all=function(t){return Promise.all(t)};ke.spread=Vw;ke.isAxiosError=Hw;ke.mergeConfig=Vn;ke.AxiosHeaders=Ze;ke.formToJSON=e=>fh(_.isHTMLForm(e)?new FormData(e):e);ke.getAdapter=xh.getAdapter;ke.HttpStatusCode=Ua;ke.default=ke;const Ww="https://birbhum.onrender.com/api",Z=ke.create({baseURL:Ww,timeout:15e4});Z.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),typeof FormData<"u"&&e.data instanceof FormData?e.headers&&e.headers["Content-Type"]&&delete e.headers["Content-Type"]:e.headers={Accept:"application/json","Content-Type":"application/json",...e.headers},e});Z.interceptors.response.use(e=>e,e=>{var r,i,o;const t=(r=e==null?void 0:e.response)==null?void 0:r.status,n=((o=(i=e==null?void 0:e.response)==null?void 0:i.data)==null?void 0:o.error)||(e==null?void 0:e.message)||"Something went wrong. Please try again.";return t===401?(localStorage.removeItem("token"),H.error("Session expired. Please log in again."),window.location.pathname!=="/login"&&window.location.replace("/login")):t>=500?H.error("Server error. Please try again later."):H.error(n),Promise.reject(e)});const Eh=S.createContext(null),Qu=()=>S.useContext(Eh);function qw({children:e}){const[t,n]=S.useState(()=>{const s=localStorage.getItem("user");return s?JSON.parse(s):null}),[r,i]=S.useState(()=>localStorage.getItem("token")||null),o=(s,a)=>{localStorage.setItem("token",s),localStorage.setItem("user",JSON.stringify(a)),n(a),i(s),Z.defaults.headers.common.Authorization=`Bearer ${s}`},l=async()=>{try{await Z.post("/auth/logout")}catch{}localStorage.removeItem("token"),localStorage.removeItem("user"),n(null),i(null),delete Z.defaults.headers.common.Authorization};return S.useEffect(()=>{r&&(Z.defaults.headers.common.Authorization=`Bearer ${r}`)},[r]),c.jsx(Eh.Provider,{value:{user:t,token:r,login:o,logout:l},children:e})}function Qd({children:e}){const{user:t,token:n}=Qu();return!t||!n?c.jsx(mo,{to:"/login",replace:!0}):e}var Li=e=>e.type==="checkbox",An=e=>e instanceof Date,Me=e=>e==null;const kh=e=>typeof e=="object";var ge=e=>!Me(e)&&!Array.isArray(e)&&kh(e)&&!An(e),Kw=e=>ge(e)&&e.target?Li(e.target)?e.target.checked:e.target.value:e,Qw=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Yw=(e,t)=>e.has(Qw(t)),Jw=e=>{const t=e.constructor&&e.constructor.prototype;return ge(t)&&t.hasOwnProperty("isPrototypeOf")},Yu=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ce(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(!(Yu&&(e instanceof Blob||r))&&(n||ge(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!Jw(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=Ce(e[i]));else return e;return t}var Vl=e=>/^\w*$/.test(e),Se=e=>e===void 0,Ju=e=>Array.isArray(e)?e.filter(Boolean):[],Gu=e=>Ju(e.replace(/["|']|\]/g,"").split(/\.|\[/)),$=(e,t,n)=>{if(!t||!ge(e))return n;const r=(Vl(t)?[t]:Gu(t)).reduce((i,o)=>Me(i)?i:i[o],e);return Se(r)||r===e?Se(e[t])?n:e[t]:r},Rt=e=>typeof e=="boolean",se=(e,t,n)=>{let r=-1;const i=Vl(t)?[t]:Gu(t),o=i.length,l=o-1;for(;++r{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const l=o;return t._proxyFormState[l]!==wt.all&&(t._proxyFormState[l]=!r||wt.all),e[l]}});return i};const Zw=typeof window<"u"?he.useLayoutEffect:he.useEffect;var Tt=e=>typeof e=="string",eS=(e,t,n,r,i)=>Tt(e)?(r&&t.watch.add(e),$(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),$(n,o))):(r&&(t.watchAll=!0),n),$a=e=>Me(e)||!kh(e);function ln(e,t,n=new WeakSet){if($a(e)||$a(t))return e===t;if(An(e)&&An(t))return e.getTime()===t.getTime();const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const o of r){const l=e[o];if(!i.includes(o))return!1;if(o!=="ref"){const s=t[o];if(An(l)&&An(s)||ge(l)&&ge(s)||Array.isArray(l)&&Array.isArray(s)?!ln(l,s,n):l!==s)return!1}}return!0}var tS=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Zr=e=>Array.isArray(e)?e:[e],Jd=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},qe=e=>ge(e)&&!Object.keys(e).length,Xu=e=>e.type==="file",St=e=>typeof e=="function",nl=e=>{if(!Yu)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Nh=e=>e.type==="select-multiple",Zu=e=>e.type==="radio",nS=e=>Zu(e)||Li(e),Ps=e=>nl(e)&&e.isConnected;function rS(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const t in e)if(St(e[t]))return!0;return!1};function rl(e,t={}){const n=Array.isArray(e);if(ge(e)||n)for(const r in e)Array.isArray(e[r])||ge(e[r])&&!_h(e[r])?(t[r]=Array.isArray(e[r])?[]:{},rl(e[r],t[r])):Me(e[r])||(t[r]=!0);return t}function Ch(e,t,n){const r=Array.isArray(e);if(ge(e)||r)for(const i in e)Array.isArray(e[i])||ge(e[i])&&!_h(e[i])?Se(t)||$a(n[i])?n[i]=Array.isArray(e[i])?rl(e[i],[]):{...rl(e[i])}:Ch(e[i],Me(t)?{}:t[i],n[i]):n[i]=!ln(e[i],t[i]);return n}var Ur=(e,t)=>Ch(e,t,rl(t));const Gd={value:!1,isValid:!1},Xd={value:!0,isValid:!0};var jh=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&&!Se(e[0].attributes.value)?Se(e[0].value)||e[0].value===""?Xd:{value:e[0].value,isValid:!0}:Xd:Gd}return Gd},Ph=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Se(e)?e:t?e===""?NaN:e&&+e:n&&Tt(e)?new Date(e):r?r(e):e;const Zd={isValid:!1,value:null};var Rh=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Zd):Zd;function ef(e){const t=e.ref;return Xu(t)?t.files:Zu(t)?Rh(e.refs).value:Nh(t)?[...t.selectedOptions].map(({value:n})=>n):Li(t)?jh(e.refs).value:Ph(Se(t.value)?e.ref.value:t.value,e)}var oS=(e,t,n,r)=>{const i={};for(const o of e){const l=$(t,o);l&&se(i,o,l._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},il=e=>e instanceof RegExp,$r=e=>Se(e)?e:il(e)?e.source:ge(e)?il(e.value)?e.value.source:e.value:e,tf=e=>({isOnSubmit:!e||e===wt.onSubmit,isOnBlur:e===wt.onBlur,isOnChange:e===wt.onChange,isOnAll:e===wt.all,isOnTouch:e===wt.onTouched});const nf="AsyncFunction";var lS=e=>!!e&&!!e.validate&&!!(St(e.validate)&&e.validate.constructor.name===nf||ge(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===nf)),sS=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),rf=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const ei=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=$(e,i);if(o){const{_f:l,...s}=o;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],i)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;if(ei(s,t))break}else if(ge(s)&&ei(s,t))break}}};function of(e,t,n){const r=$(e,n);if(r||Vl(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),l=$(t,o),s=$(e,o);if(l&&!Array.isArray(l)&&n!==o)return{name:n};if(s&&s.type)return{name:o,error:s};if(s&&s.root&&s.root.type)return{name:`${o}.root`,error:s.root};i.pop()}return{name:n}}var aS=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return qe(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(l=>t[l]===(!r||wt.all))},uS=(e,t,n)=>!e||!t||e===t||Zr(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),cS=(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,dS=(e,t)=>!Ju($(e,t)).length&&we(e,t),fS=(e,t,n)=>{const r=Zr($(e,n));return se(r,"root",t[n]),se(e,n,r),e},So=e=>Tt(e);function lf(e,t,n="validate"){if(So(e)||Array.isArray(e)&&e.every(So)||Rt(e)&&!e)return{type:n,message:So(e)?e:"",ref:t}}var Yn=e=>ge(e)&&!il(e)?e:{value:e,message:""},sf=async(e,t,n,r,i,o)=>{const{ref:l,refs:s,required:a,maxLength:u,minLength:d,min:f,max:m,pattern:x,validate:w,name:g,valueAsNumber:E,mount:h}=e._f,p=$(n,g);if(!h||t.has(g))return{};const y=s?s[0]:l,k=V=>{i&&y.reportValidity&&(y.setCustomValidity(Rt(V)?"":V||""),y.reportValidity())},j={},L=Zu(l),C=Li(l),R=L||C,U=(E||Xu(l))&&Se(l.value)&&Se(p)||nl(l)&&l.value===""||p===""||Array.isArray(p)&&!p.length,T=tS.bind(null,g,r,j),M=(V,Q,W,G=It.maxLength,ve=It.minLength)=>{const Ae=V?Q:W;j[g]={type:V?G:ve,message:Ae,ref:l,...T(V?G:ve,Ae)}};if(o?!Array.isArray(p)||!p.length:a&&(!R&&(U||Me(p))||Rt(p)&&!p||C&&!jh(s).isValid||L&&!Rh(s).isValid)){const{value:V,message:Q}=So(a)?{value:!!a,message:a}:Yn(a);if(V&&(j[g]={type:It.required,message:Q,ref:y,...T(It.required,Q)},!r))return k(Q),j}if(!U&&(!Me(f)||!Me(m))){let V,Q;const W=Yn(m),G=Yn(f);if(!Me(p)&&!isNaN(p)){const ve=l.valueAsNumber||p&&+p;Me(W.value)||(V=ve>W.value),Me(G.value)||(Q=venew Date(new Date().toDateString()+" "+q),F=l.type=="time",B=l.type=="week";Tt(W.value)&&p&&(V=F?Ae(p)>Ae(W.value):B?p>W.value:ve>new Date(W.value)),Tt(G.value)&&p&&(Q=F?Ae(p)+V.value,G=!Me(Q.value)&&p.length<+Q.value;if((W||G)&&(M(W,V.message,Q.message),!r))return k(j[g].message),j}if(x&&!U&&Tt(p)){const{value:V,message:Q}=Yn(x);if(il(V)&&!p.match(V)&&(j[g]={type:It.pattern,message:Q,ref:l,...T(It.pattern,Q)},!r))return k(Q),j}if(w){if(St(w)){const V=await w(p,n),Q=lf(V,y);if(Q&&(j[g]={...Q,...T(It.validate,Q.message)},!r))return k(Q.message),j}else if(ge(w)){let V={};for(const Q in w){if(!qe(V)&&!r)break;const W=lf(await w[Q](p,n),y,Q);W&&(V={...W,...T(Q,W.message)},k(W.message),r&&(j[g]=V))}if(!qe(V)&&(j[g]={ref:y,...V},!r))return j}}return k(!0),j};const pS={mode:wt.onSubmit,reValidateMode:wt.onChange,shouldFocusError:!0};function mS(e={}){let t={...pS,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:St(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=ge(t.defaultValues)||ge(t.values)?Ce(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Ce(i),l={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},a,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f={...d};const m={array:Jd(),state:Jd()},x=t.criteriaMode===wt.all,w=v=>N=>{clearTimeout(u),u=setTimeout(v,N)},g=async v=>{if(!t.disabled&&(d.isValid||f.isValid||v)){const N=t.resolver?qe((await C()).errors):await U(r,!0);N!==n.isValid&&m.state.next({isValid:N})}},E=(v,N)=>{!t.disabled&&(d.isValidating||d.validatingFields||f.isValidating||f.validatingFields)&&((v||Array.from(s.mount)).forEach(P=>{P&&(N?se(n.validatingFields,P,N):we(n.validatingFields,P))}),m.state.next({validatingFields:n.validatingFields,isValidating:!qe(n.validatingFields)}))},h=(v,N=[],P,D,A=!0,O=!0)=>{if(D&&P&&!t.disabled){if(l.action=!0,O&&Array.isArray($(r,v))){const z=P($(r,v),D.argA,D.argB);A&&se(r,v,z)}if(O&&Array.isArray($(n.errors,v))){const z=P($(n.errors,v),D.argA,D.argB);A&&se(n.errors,v,z),dS(n.errors,v)}if((d.touchedFields||f.touchedFields)&&O&&Array.isArray($(n.touchedFields,v))){const z=P($(n.touchedFields,v),D.argA,D.argB);A&&se(n.touchedFields,v,z)}(d.dirtyFields||f.dirtyFields)&&(n.dirtyFields=Ur(i,o)),m.state.next({name:v,isDirty:M(v,N),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else se(o,v,N)},p=(v,N)=>{se(n.errors,v,N),m.state.next({errors:n.errors})},y=v=>{n.errors=v,m.state.next({errors:n.errors,isValid:!1})},k=(v,N,P,D)=>{const A=$(r,v);if(A){const O=$(o,v,Se(P)?$(i,v):P);Se(O)||D&&D.defaultChecked||N?se(o,v,N?O:ef(A._f)):W(v,O),l.mount&&g()}},j=(v,N,P,D,A)=>{let O=!1,z=!1;const X={name:v};if(!t.disabled){if(!P||D){(d.isDirty||f.isDirty)&&(z=n.isDirty,n.isDirty=X.isDirty=M(),O=z!==X.isDirty);const ne=ln($(i,v),N);z=!!$(n.dirtyFields,v),ne?we(n.dirtyFields,v):se(n.dirtyFields,v,!0),X.dirtyFields=n.dirtyFields,O=O||(d.dirtyFields||f.dirtyFields)&&z!==!ne}if(P){const ne=$(n.touchedFields,v);ne||(se(n.touchedFields,v,P),X.touchedFields=n.touchedFields,O=O||(d.touchedFields||f.touchedFields)&&ne!==P)}O&&A&&m.state.next(X)}return O?X:{}},L=(v,N,P,D)=>{const A=$(n.errors,v),O=(d.isValid||f.isValid)&&Rt(N)&&n.isValid!==N;if(t.delayError&&P?(a=w(()=>p(v,P)),a(t.delayError)):(clearTimeout(u),a=null,P?se(n.errors,v,P):we(n.errors,v)),(P?!ln(A,P):A)||!qe(D)||O){const z={...D,...O&&Rt(N)?{isValid:N}:{},errors:n.errors,name:v};n={...n,...z},m.state.next(z)}},C=async v=>{E(v,!0);const N=await t.resolver(o,t.context,oS(v||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return E(v),N},R=async v=>{const{errors:N}=await C(v);if(v)for(const P of v){const D=$(N,P);D?se(n.errors,P,D):we(n.errors,P)}else n.errors=N;return N},U=async(v,N,P={valid:!0})=>{for(const D in v){const A=v[D];if(A){const{_f:O,...z}=A;if(O){const X=s.array.has(O.name),ne=A._f&&lS(A._f);ne&&d.validatingFields&&E([D],!0);const st=await sf(A,s.disabled,o,x,t.shouldUseNativeValidation&&!N,X);if(ne&&d.validatingFields&&E([D]),st[O.name]&&(P.valid=!1,N))break;!N&&($(st,O.name)?X?fS(n.errors,st,O.name):se(n.errors,O.name,st[O.name]):we(n.errors,O.name))}!qe(z)&&await U(z,N,P)}}return P.valid},T=()=>{for(const v of s.unMount){const N=$(r,v);N&&(N._f.refs?N._f.refs.every(P=>!Ps(P)):!Ps(N._f.ref))&&Gt(v)}s.unMount=new Set},M=(v,N)=>!t.disabled&&(v&&N&&se(o,v,N),!ln(q(),i)),V=(v,N,P)=>eS(v,s,{...l.mount?o:Se(N)?i:Tt(v)?{[v]:N}:N},P,N),Q=v=>Ju($(l.mount?o:i,v,t.shouldUnregister?$(i,v,[]):[])),W=(v,N,P={})=>{const D=$(r,v);let A=N;if(D){const O=D._f;O&&(!O.disabled&&se(o,v,Ph(N,O)),A=nl(O.ref)&&Me(N)?"":N,Nh(O.ref)?[...O.ref.options].forEach(z=>z.selected=A.includes(z.value)):O.refs?Li(O.ref)?O.refs.forEach(z=>{(!z.defaultChecked||!z.disabled)&&(Array.isArray(A)?z.checked=!!A.find(X=>X===z.value):z.checked=A===z.value||!!A)}):O.refs.forEach(z=>z.checked=z.value===A):Xu(O.ref)?O.ref.value="":(O.ref.value=A,O.ref.type||m.state.next({name:v,values:Ce(o)})))}(P.shouldDirty||P.shouldTouch)&&j(v,A,P.shouldTouch,P.shouldDirty,!0),P.shouldValidate&&B(v)},G=(v,N,P)=>{for(const D in N){if(!N.hasOwnProperty(D))return;const A=N[D],O=v+"."+D,z=$(r,O);(s.array.has(v)||ge(A)||z&&!z._f)&&!An(A)?G(O,A,P):W(O,A,P)}},ve=(v,N,P={})=>{const D=$(r,v),A=s.array.has(v),O=Ce(N);se(o,v,O),A?(m.array.next({name:v,values:Ce(o)}),(d.isDirty||d.dirtyFields||f.isDirty||f.dirtyFields)&&P.shouldDirty&&m.state.next({name:v,dirtyFields:Ur(i,o),isDirty:M(v,O)})):D&&!D._f&&!Me(O)?G(v,O,P):W(v,O,P),rf(v,s)&&m.state.next({...n,name:v}),m.state.next({name:l.mount?v:void 0,values:Ce(o)})},Ae=async v=>{l.mount=!0;const N=v.target;let P=N.name,D=!0;const A=$(r,P),O=ne=>{D=Number.isNaN(ne)||An(ne)&&isNaN(ne.getTime())||ln(ne,$(o,P,ne))},z=tf(t.mode),X=tf(t.reValidateMode);if(A){let ne,st;const Ai=N.type?ef(A._f):Kw(v),Xt=v.type===Yd.BLUR||v.type===Yd.FOCUS_OUT,Ah=!sS(A._f)&&!t.resolver&&!$(n.errors,P)&&!A._f.deps||cS(Xt,$(n.touchedFields,P),n.isSubmitted,X,z),ql=rf(P,s,Xt);se(o,P,Ai),Xt?(!N||!N.readOnly)&&(A._f.onBlur&&A._f.onBlur(v),a&&a(0)):A._f.onChange&&A._f.onChange(v);const Kl=j(P,Ai,Xt),Fh=!qe(Kl)||ql;if(!Xt&&m.state.next({name:P,type:v.type,values:Ce(o)}),Ah)return(d.isValid||f.isValid)&&(t.mode==="onBlur"?Xt&&g():Xt||g()),Fh&&m.state.next({name:P,...ql?{}:Kl});if(!Xt&&ql&&m.state.next({...n}),t.resolver){const{errors:oc}=await C([P]);if(O(Ai),D){const Dh=of(n.errors,r,P),lc=of(oc,r,Dh.name||P);ne=lc.error,P=lc.name,st=qe(oc)}}else E([P],!0),ne=(await sf(A,s.disabled,o,x,t.shouldUseNativeValidation))[P],E([P]),O(Ai),D&&(ne?st=!1:(d.isValid||f.isValid)&&(st=await U(r,!0)));D&&(A._f.deps&&B(A._f.deps),L(P,st,ne,Kl))}},F=(v,N)=>{if($(n.errors,N)&&v.focus)return v.focus(),1},B=async(v,N={})=>{let P,D;const A=Zr(v);if(t.resolver){const O=await R(Se(v)?v:A);P=qe(O),D=v?!A.some(z=>$(O,z)):P}else v?(D=(await Promise.all(A.map(async O=>{const z=$(r,O);return await U(z&&z._f?{[O]:z}:z)}))).every(Boolean),!(!D&&!n.isValid)&&g()):D=P=await U(r);return m.state.next({...!Tt(v)||(d.isValid||f.isValid)&&P!==n.isValid?{}:{name:v},...t.resolver||!v?{isValid:P}:{},errors:n.errors}),N.shouldFocus&&!D&&ei(r,F,v?A:s.mount),D},q=v=>{const N={...l.mount?o:i};return Se(v)?N:Tt(v)?$(N,v):v.map(P=>$(N,P))},le=(v,N)=>({invalid:!!$((N||n).errors,v),isDirty:!!$((N||n).dirtyFields,v),error:$((N||n).errors,v),isValidating:!!$(n.validatingFields,v),isTouched:!!$((N||n).touchedFields,v)}),xe=v=>{v&&Zr(v).forEach(N=>we(n.errors,N)),m.state.next({errors:v?n.errors:{}})},jn=(v,N,P)=>{const D=($(r,v,{_f:{}})._f||{}).ref,A=$(n.errors,v)||{},{ref:O,message:z,type:X,...ne}=A;se(n.errors,v,{...ne,...N,ref:D}),m.state.next({name:v,errors:n.errors,isValid:!1}),P&&P.shouldFocus&&D&&D.focus&&D.focus()},At=(v,N)=>St(v)?m.state.subscribe({next:P=>"values"in P&&v(V(void 0,N),P)}):V(v,N,!0),Kn=v=>m.state.subscribe({next:N=>{uS(v.name,N.name,v.exact)&&aS(N,v.formState||d,Lh,v.reRenderRoot)&&v.callback({values:{...o},...n,...N,defaultValues:i})}}).unsubscribe,Ft=v=>(l.mount=!0,f={...f,...v.formState},Kn({...v,formState:f})),Gt=(v,N={})=>{for(const P of v?Zr(v):s.mount)s.mount.delete(P),s.array.delete(P),N.keepValue||(we(r,P),we(o,P)),!N.keepError&&we(n.errors,P),!N.keepDirty&&we(n.dirtyFields,P),!N.keepTouched&&we(n.touchedFields,P),!N.keepIsValidating&&we(n.validatingFields,P),!t.shouldUnregister&&!N.keepDefaultValue&&we(i,P);m.state.next({values:Ce(o)}),m.state.next({...n,...N.keepDirty?{isDirty:M()}:{}}),!N.keepIsValid&&g()},ec=({disabled:v,name:N})=>{(Rt(v)&&l.mount||v||s.disabled.has(N))&&(v?s.disabled.add(N):s.disabled.delete(N))},Hl=(v,N={})=>{let P=$(r,v);const D=Rt(N.disabled)||Rt(t.disabled);return se(r,v,{...P||{},_f:{...P&&P._f?P._f:{ref:{name:v}},name:v,mount:!0,...N}}),s.mount.add(v),P?ec({disabled:Rt(N.disabled)?N.disabled:t.disabled,name:v}):k(v,!0,N.value),{...D?{disabled:N.disabled||t.disabled}:{},...t.progressive?{required:!!N.required,min:$r(N.min),max:$r(N.max),minLength:$r(N.minLength),maxLength:$r(N.maxLength),pattern:$r(N.pattern)}:{},name:v,onChange:Ae,onBlur:Ae,ref:A=>{if(A){Hl(v,N),P=$(r,v);const O=Se(A.value)&&A.querySelectorAll&&A.querySelectorAll("input,select,textarea")[0]||A,z=nS(O),X=P._f.refs||[];if(z?X.find(ne=>ne===O):O===P._f.ref)return;se(r,v,{_f:{...P._f,...z?{refs:[...X.filter(Ps),O,...Array.isArray($(i,v))?[{}]:[]],ref:{type:O.type,name:v}}:{ref:O}}}),k(v,!1,void 0,O)}else P=$(r,v,{}),P._f&&(P._f.mount=!1),(t.shouldUnregister||N.shouldUnregister)&&!(Yw(s.array,v)&&l.action)&&s.unMount.add(v)}}},Wl=()=>t.shouldFocusError&&ei(r,F,s.mount),bh=v=>{Rt(v)&&(m.state.next({disabled:v}),ei(r,(N,P)=>{const D=$(r,P);D&&(N.disabled=D._f.disabled||v,Array.isArray(D._f.refs)&&D._f.refs.forEach(A=>{A.disabled=D._f.disabled||v}))},0,!1))},tc=(v,N)=>async P=>{let D;P&&(P.preventDefault&&P.preventDefault(),P.persist&&P.persist());let A=Ce(o);if(m.state.next({isSubmitting:!0}),t.resolver){const{errors:O,values:z}=await C();n.errors=O,A=Ce(z)}else await U(r);if(s.disabled.size)for(const O of s.disabled)we(A,O);if(we(n.errors,"root"),qe(n.errors)){m.state.next({errors:{}});try{await v(A,P)}catch(O){D=O}}else N&&await N({...n.errors},P),Wl(),setTimeout(Wl);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:qe(n.errors)&&!D,submitCount:n.submitCount+1,errors:n.errors}),D)throw D},Th=(v,N={})=>{$(r,v)&&(Se(N.defaultValue)?ve(v,Ce($(i,v))):(ve(v,N.defaultValue),se(i,v,Ce(N.defaultValue))),N.keepTouched||we(n.touchedFields,v),N.keepDirty||(we(n.dirtyFields,v),n.isDirty=N.defaultValue?M(v,Ce($(i,v))):M()),N.keepError||(we(n.errors,v),d.isValid&&g()),m.state.next({...n}))},nc=(v,N={})=>{const P=v?Ce(v):i,D=Ce(P),A=qe(v),O=A?i:D;if(N.keepDefaultValues||(i=P),!N.keepValues){if(N.keepDirtyValues){const z=new Set([...s.mount,...Object.keys(Ur(i,o))]);for(const X of Array.from(z))$(n.dirtyFields,X)?se(O,X,$(o,X)):ve(X,$(O,X))}else{if(Yu&&Se(v))for(const z of s.mount){const X=$(r,z);if(X&&X._f){const ne=Array.isArray(X._f.refs)?X._f.refs[0]:X._f.ref;if(nl(ne)){const st=ne.closest("form");if(st){st.reset();break}}}}if(N.keepFieldsRef)for(const z of s.mount)ve(z,$(O,z));else r={}}o=t.shouldUnregister?N.keepDefaultValues?Ce(i):{}:Ce(O),m.array.next({values:{...O}}),m.state.next({values:{...O}})}s={mount:N.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!d.isValid||!!N.keepIsValid||!!N.keepDirtyValues,l.watch=!!t.shouldUnregister,m.state.next({submitCount:N.keepSubmitCount?n.submitCount:0,isDirty:A?!1:N.keepDirty?n.isDirty:!!(N.keepDefaultValues&&!ln(v,i)),isSubmitted:N.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:A?{}:N.keepDirtyValues?N.keepDefaultValues&&o?Ur(i,o):n.dirtyFields:N.keepDefaultValues&&v?Ur(i,v):N.keepDirty?n.dirtyFields:{},touchedFields:N.keepTouched?n.touchedFields:{},errors:N.keepErrors?n.errors:{},isSubmitSuccessful:N.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},rc=(v,N)=>nc(St(v)?v(o):v,N),Oh=(v,N={})=>{const P=$(r,v),D=P&&P._f;if(D){const A=D.refs?D.refs[0]:D.ref;A.focus&&(A.focus(),N.shouldSelect&&St(A.select)&&A.select())}},Lh=v=>{n={...n,...v}},ic={control:{register:Hl,unregister:Gt,getFieldState:le,handleSubmit:tc,setError:jn,_subscribe:Kn,_runSchema:C,_focusError:Wl,_getWatch:V,_getDirty:M,_setValid:g,_setFieldArray:h,_setDisabledField:ec,_setErrors:y,_getFieldArray:Q,_reset:nc,_resetDefaultValues:()=>St(t.defaultValues)&&t.defaultValues().then(v=>{rc(v,t.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:T,_disableForm:bh,_subjects:m,_proxyFormState:d,get _fields(){return r},get _formValues(){return o},get _state(){return l},set _state(v){l=v},get _defaultValues(){return i},get _names(){return s},set _names(v){s=v},get _formState(){return n},get _options(){return t},set _options(v){t={...t,...v}}},subscribe:Ft,trigger:B,register:Hl,handleSubmit:tc,watch:At,setValue:ve,getValues:q,reset:rc,resetField:Th,clearErrors:xe,unregister:Gt,setError:jn,setFocus:Oh,getFieldState:le};return{...ic,formControl:ic}}function hS(e={}){const t=he.useRef(void 0),n=he.useRef(void 0),[r,i]=he.useState({isDirty:!1,isValidating:!1,isLoading:St(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:St(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!St(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...s}=mS(e);t.current={...s,formState:r}}const o=t.current.control;return o._options=e,Zw(()=>{const l=o._subscribe({formState:o._proxyFormState,callback:()=>i({...o._formState}),reRenderRoot:!0});return i(s=>({...s,isReady:!0})),o._formState.isReady=!0,l},[o]),he.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),he.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),he.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),he.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),he.useEffect(()=>{if(o._proxyFormState.isDirty){const l=o._getDirty();l!==r.isDirty&&o._subjects.state.next({isDirty:l})}},[o,r.isDirty]),he.useEffect(()=>{e.values&&!ln(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),n.current=e.values,i(l=>({...l}))):o._resetDefaultValues()},[o,e.values]),he.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=Xw(r,o),t.current}function yS(){var m,x,w;const{register:e,handleSubmit:t,formState:{isSubmitting:n}}=hS(),{login:r}=Qu(),i=Ci(),[o,l]=S.useState(""),[s,a]=S.useState(null),u=async g=>{var h,p,y,k;const E=await Z.post("/auth/login",g);if((h=E.data)!=null&&h.ok&&((p=E.data)!=null&&p.token))return r(E.data.token,E.data.user),H.success("Logged in successfully!"),i("/admin"),!0;throw E.status===409&&((y=E.data)!=null&&y.needsForce)?{response:E}:new Error(((k=E.data)==null?void 0:k.error)||"Login failed")},d=async g=>{var E,h;try{l("");const p={email:(g.email||"").trim().toLowerCase(),password:g.password||""};await u(p)}catch(p){const y=p==null?void 0:p.response;if((y==null?void 0:y.status)===409&&((E=y==null?void 0:y.data)!=null&&E.needsForce)){const j=y.data.activeSession||{};a({email:(g.email||"").trim().toLowerCase(),password:g.password||"",info:j});const L=j.deviceName?` (${j.deviceName})`:"";H.error(`Already logged in on another device${L}.`);return}const k=((h=y==null?void 0:y.data)==null?void 0:h.error)||p.message||"Login failed";l(k),H.error(k)}},f=async()=>{var g,E;if(s)try{const{email:h,password:p}=s;await u({email:h,password:p,force:!0}),a(null)}catch(h){const p=((E=(g=h==null?void 0:h.response)==null?void 0:g.data)==null?void 0:E.error)||h.message||"Force login failed";H.error(p)}};return c.jsx("div",{className:"min-h-screen grid place-items-center bg-gray-50 p-6",children:c.jsxs("form",{onSubmit:t(d),className:"bg-white p-6 rounded-xl shadow w-full max-w-sm",children:[c.jsx("h1",{className:"text-xl font-bold mb-1",children:"Admin Login"}),c.jsx("p",{className:"text-sm text-gray-500 mb-4",children:"Use your admin credentials to continue."}),o&&c.jsx("div",{className:"text-red-600 text-sm mb-3",children:o}),c.jsx("input",{...e("email",{required:!0}),placeholder:"Email",type:"email",className:"border p-2 rounded w-full mb-3",autoComplete:"username"}),c.jsx("input",{...e("password",{required:!0}),type:"password",placeholder:"Password",className:"border p-2 rounded w-full mb-3",autoComplete:"current-password"}),c.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded w-full disabled:opacity-60",disabled:n,children:n?"Signing in...":"Login"}),c.jsx("div",{className:"text-right mt-2",children:c.jsx(cn,{to:"/admin/reset",className:"text-sm text-blue-600",children:"Forgot password?"})}),s&&c.jsxs("div",{className:"mt-4 p-3 border rounded bg-yellow-50 text-sm",children:[c.jsxs("div",{className:"mb-2",children:["You’re already logged in on"," ",c.jsx("strong",{children:((m=s.info)==null?void 0:m.deviceName)||"another device"}),(x=s.info)!=null&&x.ip?` (IP: ${s.info.ip})`:"",".",c.jsx("br",{}),"Login Time: ",(w=s.info)!=null&&w.startedAt?new Date(s.info.startedAt).toLocaleString():"Unknown"]}),c.jsx("button",{type:"button",onClick:f,className:"bg-red-600 text-white px-3 py-2 rounded w-full",children:"Logout other device and continue"})]})]})})}function gS(){const[e]=hv(),t=Ci(),n=e.get("token")||"",r=e.get("email")||"",[i,o]=S.useState(n&&r?"set":"request"),[l,s]=S.useState(r),[a,u]=S.useState(""),[d,f]=S.useState(""),[m,x]=S.useState(!1),w=S.useMemo(()=>a.length>=8&&a===d,[a,d]);S.useEffect(()=>{o(n&&r?"set":"request"),!(!n||!r)&&(async()=>{try{x(!0),await Z.get("/auth/validate-reset",{params:{token:n,email:r}})}catch{H.error("This reset link is invalid or has expired."),o("request"),t("/admin/reset",{replace:!0})}finally{x(!1)}})()},[n,r,t]);const g=async h=>{var p,y;if(h.preventDefault(),!l){H.error("Please enter your email.");return}try{x(!0),await Z.post("/auth/forgot-password",{email:l.trim().toLowerCase()}),H.success("If that email exists, a reset link has been sent.")}catch(k){H.error(((y=(p=k==null?void 0:k.response)==null?void 0:p.data)==null?void 0:y.error)||"Unable to send reset link")}finally{x(!1)}},E=async h=>{var p,y;if(h.preventDefault(),!w){H.error("Passwords must match and be at least 8 characters.");return}try{x(!0),await Z.post("/auth/reset-password",{email:l.trim().toLowerCase(),token:n,password:a}),H.success("Password changed successfully. Please log in."),t("/admin/login")}catch(k){const j=((y=(p=k==null?void 0:k.response)==null?void 0:p.data)==null?void 0:y.error)||"Reset failed. Link may be expired.";H.error(j)}finally{x(!1)}};return c.jsx("div",{className:"min-h-screen grid place-items-center bg-gray-50 p-6",children:c.jsx("div",{className:"bg-white p-6 rounded-xl shadow w-full max-w-md",children:i==="request"?c.jsxs(c.Fragment,{children:[c.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Forgot Password"}),c.jsx("p",{className:"text-sm text-gray-500 mb-4",children:"Enter your email and we’ll send you a password reset link."}),c.jsxs("form",{onSubmit:g,className:"space-y-3",children:[c.jsx("input",{type:"email",className:"border p-2 rounded w-full",placeholder:"you@example.com",value:l,onChange:h=>s(h.target.value),required:!0,autoComplete:"username"}),c.jsx("button",{type:"submit",className:"bg-green-600 text-white px-4 py-2 rounded w-full disabled:opacity-60",disabled:m,children:m?"Sending...":"Send Reset Link"})]}),c.jsxs("div",{className:"text-center text-sm mt-3",children:["Remembered it?"," ",c.jsx(cn,{to:"/admin/login",className:"text-blue-600",children:"Log in"})]})]}):c.jsxs(c.Fragment,{children:[c.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Set New Password"}),c.jsxs("p",{className:"text-sm text-gray-500 mb-4",children:["Resetting for ",c.jsx("span",{className:"font-medium",children:l})]}),c.jsxs("form",{onSubmit:E,className:"space-y-3",children:[c.jsx("input",{type:"password",className:"border p-2 rounded w-full",placeholder:"New password (min 8 chars)",value:a,onChange:h=>u(h.target.value),required:!0,minLength:8,autoComplete:"new-password"}),c.jsx("input",{type:"password",className:"border p-2 rounded w-full",placeholder:"Confirm new password",value:d,onChange:h=>f(h.target.value),required:!0,minLength:8,autoComplete:"new-password"}),c.jsx("button",{type:"submit",className:"bg-green-600 text-white px-4 py-2 rounded w-full disabled:opacity-60",disabled:!w||m,children:m?"Updating...":"Change Password"})]}),c.jsxs("div",{className:"text-center text-sm mt-3",children:["Back to"," ",c.jsx(cn,{to:"/admin/login",className:"text-blue-600",children:"Login"})]})]})})})}function vS({active:e,setActive:t}){const n=["Notices","Announcements","Placed Students","Gallery"];return c.jsx("div",{className:"flex gap-2 mb-4 flex-wrap",children:n.map(r=>c.jsx("button",{onClick:()=>t(r),className:`px-4 py-2 rounded-full border ${e===r?"bg-green-600 text-white border-green-600":"border-green-600 text-green-700"}`,children:r},r))})}function xS(){const[e,t]=S.useState([]),[n,r]=S.useState(""),[i,o]=S.useState(null),l=async()=>{const f=await Z.get("/notices");t(f.data.items)};S.useEffect(()=>{l()},[]);const s=async()=>{n.trim()&&(await Z.post("/notices",{text:n,isActive:!0}),r(""),l())},a=async()=>{await Z.patch(`/notices/${i}`,{text:n}),o(null),r(""),l()},u=async(f,m)=>{await Z.patch(`/notices/${f}`,{isActive:!m}),l()},d=async f=>{await Z.delete(`/notices/${f}`),l()};return c.jsxs("div",{children:[c.jsxs("div",{className:"flex gap-2 mb-3",children:[c.jsx("input",{value:n,onChange:f=>r(f.target.value),placeholder:i?"Edit notice...":"New notice...",className:"border p-2 rounded w-full"}),i?c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:a,className:"bg-green-600 text-white px-4 rounded",children:"Update"}),c.jsx("button",{onClick:()=>{o(null),r("")},className:"px-3 rounded border",children:"Cancel"})]}):c.jsx("button",{onClick:s,className:"bg-green-600 text-white px-4 rounded",children:"Add"})]}),c.jsx("ul",{className:"divide-y",children:e.map(f=>c.jsxs("li",{className:"py-2 flex items-center justify-between",children:[c.jsx("span",{children:f.text}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:()=>u(f._id,f.isActive),className:`px-3 py-1 rounded text-sm ${f.isActive?"bg-green-100 text-green-700":"bg-gray-100 text-gray-600"}`,children:f.isActive?"Active":"Inactive"}),c.jsx("button",{onClick:()=>{o(f._id),r(f.text)},className:"text-blue-600 text-sm",children:"Edit"}),c.jsx("button",{onClick:()=>d(f._id),className:"text-red-600 text-sm",children:"Delete"})]})]},f._id))})]})}function wS(){const[e,t]=S.useState([]),[n,r]=S.useState({type:"announcement",title:"",date:"",description:""}),[i,o]=S.useState(null),[l,s]=S.useState(null),[a,u]=S.useState(""),d=async()=>{try{u("");const g=await Z.get("/announcements");t(g.data.items)}catch{u("Failed to load")}};S.useEffect(()=>{d()},[]);const f=async g=>{g.preventDefault();const E=new FormData;Object.entries(n).forEach(([h,p])=>E.append(h,p??"")),i&&E.append("pdf",i),l?await Z.patch(`/announcements/${l}`,E,{headers:{"Content-Type":"multipart/form-data"}}):await Z.post("/announcements",E,{headers:{"Content-Type":"multipart/form-data"}}),m(),d()},m=()=>{s(null),r({type:"announcement",title:"",date:"",description:""}),o(null)},x=g=>{s(g._id),r({type:g.type||"announcement",title:g.title||"",date:g.date||"",description:g.description||""}),o(null)},w=async g=>{await Z.delete(`/announcements/${g}`),d()};return c.jsxs("div",{children:[a&&c.jsx("div",{className:"text-red-600 text-sm mb-2",children:a}),c.jsxs("form",{onSubmit:f,className:"grid md:grid-cols-2 gap-3 mb-4",children:[c.jsxs("select",{value:n.type,onChange:g=>r({...n,type:g.target.value}),className:"border p-2 rounded",children:[c.jsx("option",{value:"announcement",children:"Announcement"}),c.jsx("option",{value:"event",children:"Event"})]}),c.jsx("input",{value:n.title,onChange:g=>r({...n,title:g.target.value}),placeholder:"Title",className:"border p-2 rounded"}),c.jsx("input",{value:n.date,onChange:g=>r({...n,date:g.target.value}),placeholder:"Date (e.g., September 20, 2025)",className:"border p-2 rounded"}),c.jsx("input",{type:"file",accept:"application/pdf",onChange:g=>o(g.target.files[0]),className:"border p-2 rounded"}),c.jsx("textarea",{value:n.description,onChange:g=>r({...n,description:g.target.value}),placeholder:"Description",className:"border p-2 rounded md:col-span-2"}),c.jsxs("div",{className:"md:col-span-2 flex gap-2",children:[c.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded",children:l?"Update":"Save"}),l&&c.jsx("button",{type:"button",onClick:m,className:"px-4 py-2 border rounded",children:"Cancel"})]})]}),c.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:e.map(g=>{var E;return c.jsxs("div",{className:"border-l-4 border-r-4 border-green-600 rounded p-4 bg-white",children:[c.jsx("div",{className:"text-green-700 text-sm font-semibold",children:g.type==="announcement"?"📢 Announcement":"📅 Event"}),c.jsx("div",{className:"font-bold",children:g.title}),c.jsx("div",{className:"text-xs text-gray-500",children:g.date}),g.description&&c.jsx("p",{className:"text-sm mt-1",children:g.description}),c.jsxs("div",{className:"flex justify-between items-center mt-2 gap-3",children:[((E=g.pdf)==null?void 0:E.url)&&c.jsx("a",{href:g.pdf.url,className:"text-green-700 underline",target:"_blank",rel:"noreferrer",children:"View PDF"}),c.jsxs("div",{className:"ml-auto flex gap-3",children:[c.jsx("button",{onClick:()=>x(g),className:"text-blue-600 text-sm",children:"Edit"}),c.jsx("button",{onClick:()=>w(g._id),className:"text-red-600 text-sm",children:"Delete"})]})]})]},g._id)})})]})}const eo=10,Eo=1,SS=Eo*1024*1024;function ES(){const[e,t]=S.useState([]),[n,r]=S.useState(!0),[i,o]=S.useState(""),[l,s]=S.useState(null),[a,u]=S.useState(""),[d,f]=S.useState({}),[m,x]=S.useState({}),w=S.useMemo(()=>e.length>0,[e]),g=async()=>{var C;try{r(!0);const R=await Z.get("/gallery");t(R.data.categories||[])}catch{H.error(((C=res==null?void 0:res.data)==null?void 0:C.error)||"Failed to load gallery")}finally{r(!1)}};S.useEffect(()=>{g()},[]);const E=async C=>{var U,T;C.preventDefault();const R=i.trim();if(R)try{const M=await Z.post("/gallery",{title:R});M.data.ok?(H.success("Category created"),o(""),g()):H.error(M.data.error||"Create failed")}catch(M){H.error(((T=(U=M==null?void 0:M.response)==null?void 0:U.data)==null?void 0:T.error)||"Create failed")}},h=async C=>{var U,T;const R=a.trim();if(R)try{const M=await Z.patch(`/gallery/${C}`,{title:R});M.data.ok?(H.success("Category updated"),s(null),u(""),g()):H.error(M.data.error||"Update failed")}catch(M){H.error(((T=(U=M==null?void 0:M.response)==null?void 0:U.data)==null?void 0:T.error)||"Update failed")}},p=async(C,R)=>{var V,Q;if(!R||R.length===0)return;const U=Array.from(R);if(U.length>eo){H.error(`Too many files. Max ${eo} images at a time.`);return}const T=U.filter(W=>W.size>SS);if(T.length){const W=T.slice(0,3).map(G=>G.name).join(", ");H.error(`${T.length} file(s) exceed ${Eo}MB: ${W}${T.length>3?", ...":""}`);return}const M=new FormData;U.forEach(W=>M.append("images",W));try{x(G=>({...G,[C]:!0})),f(G=>({...G,[C]:0}));const W=await Z.post(`/gallery/${C}/images`,M,{onUploadProgress:G=>{if(!G.total)return;const ve=Math.round(G.loaded/G.total*100);f(Ae=>({...Ae,[C]:ve}))}});W.data.ok?(H.success(W.data.message||"Images uploaded"),g()):H.error(W.data.error||"Upload failed")}catch(W){const G=((Q=(V=W==null?void 0:W.response)==null?void 0:V.data)==null?void 0:Q.error)||W.message||"Upload failed";H.error(G)}finally{x(W=>({...W,[C]:!1})),f(W=>({...W,[C]:void 0}))}},y=async(C,R)=>{var U,T;try{const M=encodeURIComponent(R),V=await Z.delete(`/gallery/${C}/images/${M}`);V.data.ok?(H.success(V.data.message||"Image deleted"),g()):H.error(V.data.error||"Delete failed")}catch(M){H.error(((T=(U=M==null?void 0:M.response)==null?void 0:U.data)==null?void 0:T.error)||"Delete failed")}},k=async C=>{var R,U;if(window.confirm("Delete this category and all its images?"))try{const T=await Z.delete(`/gallery/${C}`);T.data.ok?(H.success(T.data.message||"Category deleted"),g()):H.error(T.data.error||"Delete failed")}catch(T){H.error(((U=(R=T==null?void 0:T.response)==null?void 0:R.data)==null?void 0:U.error)||"Delete failed")}},j=(C,R)=>{var T;if(R.preventDefault(),R.stopPropagation(),m[C])return;const U=R.dataTransfer;(T=U==null?void 0:U.files)!=null&&T.length&&p(C,U.files)},L=C=>{C.preventDefault(),C.stopPropagation()};return c.jsxs("div",{children:[c.jsx("h2",{className:"text-xl font-bold mb-6",children:"Manage Gallery"}),c.jsxs("form",{onSubmit:E,className:"flex flex-col sm:flex-row gap-2 mb-8",children:[c.jsx("input",{value:i,onChange:C=>o(C.target.value),placeholder:"New category title",className:"border p-2 rounded flex-1"}),c.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded",children:"Add"})]}),c.jsxs("div",{className:"text-xs text-gray-600 mb-4",children:["Max ",c.jsx("span",{className:"font-semibold",children:eo})," images per upload •"," ","Max ",c.jsxs("span",{className:"font-semibold",children:[Eo,"MB"]})," per image"]}),n&&c.jsx("div",{className:"text-sm text-gray-500",children:"Loading categories…"}),!n&&!w&&c.jsx("div",{className:"text-sm text-gray-500",children:"No categories yet. Create one above."}),c.jsx("div",{className:"space-y-10",children:e.map(C=>{const R=!!m[C._id],U=d[C._id]??0;return c.jsxs("div",{className:"border rounded-lg shadow-sm bg-white",children:[c.jsx("div",{className:"flex justify-between items-center border-b px-4 py-3",children:l===C._id?c.jsxs("div",{className:"flex gap-2 items-center w-full",children:[c.jsx("input",{value:a,onChange:T=>u(T.target.value),className:"border p-2 rounded flex-1"}),c.jsx("button",{type:"button",onClick:()=>h(C._id),className:"bg-green-600 text-white px-3 py-1 rounded",children:"Save"}),c.jsx("button",{type:"button",onClick:()=>{s(null),u("")},className:"bg-gray-400 text-white px-3 py-1 rounded",children:"Cancel"})]}):c.jsxs(c.Fragment,{children:[c.jsx("h3",{className:"font-bold text-lg",children:C.title}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:()=>{s(C._id),u(C.title)},className:"text-blue-600 text-sm",children:"Rename"}),c.jsx("button",{onClick:()=>k(C._id),className:"text-red-600 text-sm",children:"Delete"})]})]})}),c.jsx("div",{className:"p-4",children:c.jsxs("div",{className:`w-full border-2 border-dashed rounded p-6 text-center transition ${R?"opacity-60 cursor-not-allowed":"hover:bg-gray-50 cursor-pointer"}`,onDrop:T=>j(C._id,T),onDragOver:L,children:[c.jsxs("label",{className:"block",children:[c.jsx("input",{type:"file",multiple:!0,accept:"image/*",className:"hidden",disabled:R,onChange:T=>p(C._id,T.target.files)}),c.jsx("p",{className:"text-sm text-gray-600",children:"Click or drag files here to upload"}),c.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Max ",eo," images • ",Eo,"MB per image"]})]}),R&&c.jsxs("div",{className:"mt-4",children:[c.jsx("div",{className:"w-full bg-gray-200 rounded h-2 overflow-hidden",children:c.jsx("div",{className:"bg-green-600 h-2",style:{width:`${U}%`}})}),c.jsxs("div",{className:"text-xs text-gray-600 mt-1",children:["Uploading… ",U,"%"]})]})]})}),c.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 md:grid-cols-6 gap-3 p-4",children:[C.images.length===0&&c.jsx("p",{className:"col-span-full text-sm text-gray-500 text-center",children:"No images uploaded yet."}),C.images.map(T=>c.jsxs("div",{className:"relative group",children:[c.jsx("img",{src:T.url,alt:"",className:"w-full h-32 object-cover rounded",loading:"lazy"}),c.jsx("button",{onClick:()=>y(C._id,T.publicId),className:"absolute top-1 right-1 bg-red-500 text-white rounded-full p-1 text-xs opacity-0 group-hover:opacity-100 transition",title:"Delete image",children:"✕"})]},T.publicId))]})]},C._id)})})]})}function kS(){const[e,t]=S.useState([]),[n,r]=S.useState({name:"",company:"",position:"",hq:"",package:"",year:"2025"}),[i,o]=S.useState(null),[l,s]=S.useState(null),a=async()=>{const x=await Z.get("/placed");t(x.data.items)};S.useEffect(()=>{a()},[]);const u=async x=>{x.preventDefault();const w=new FormData;Object.entries(n).forEach(([g,E])=>w.append(g,E)),i&&w.append("image",i),l?await Z.patch(`/placed/${l}`,w,{headers:{"Content-Type":"multipart/form-data"}}):await Z.post("/placed",w,{headers:{"Content-Type":"multipart/form-data"}}),d(),a()},d=()=>{s(null),r({name:"",company:"",position:"",hq:"",package:"",year:"2025"}),o(null)},f=x=>{s(x._id),r({name:x.name||"",company:x.company||"",position:x.position||"",hq:x.hq||"",package:x.package||"",year:x.year||"2025"}),o(null)},m=async x=>{await Z.delete(`/placed/${x}`),a()};return c.jsxs("div",{children:[c.jsxs("form",{onSubmit:u,className:"grid md:grid-cols-3 gap-3 mb-4",children:[c.jsx("input",{className:"border p-2 rounded",placeholder:"Name",value:n.name,onChange:x=>r({...n,name:x.target.value})}),c.jsx("input",{className:"border p-2 rounded",placeholder:"Company",value:n.company,onChange:x=>r({...n,company:x.target.value})}),c.jsx("input",{className:"border p-2 rounded",placeholder:"Position",value:n.position,onChange:x=>r({...n,position:x.target.value})}),c.jsx("input",{className:"border p-2 rounded",placeholder:"Headquarter",value:n.hq,onChange:x=>r({...n,hq:x.target.value})}),c.jsx("input",{className:"border p-2 rounded",placeholder:"Package (e.g., 2.5 Lakh)",value:n.package,onChange:x=>r({...n,package:x.target.value})}),c.jsx("input",{className:"border p-2 rounded",placeholder:"Year",value:n.year,onChange:x=>r({...n,year:x.target.value})}),c.jsx("input",{className:"border p-2 rounded md:col-span-2",type:"file",accept:"image/*",onChange:x=>o(x.target.files[0])}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded",children:l?"Update":"Add"}),l&&c.jsx("button",{type:"button",onClick:d,className:"px-4 py-2 border rounded",children:"Cancel"})]})]}),c.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:e.map(x=>{var w;return c.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-4 border-l-2 border-r-2 border-green-600 bg-white p-4 rounded",children:[c.jsx("img",{src:(w=x.image)==null?void 0:w.url,alt:x.name,className:"w-20 h-20 object-cover rounded border"}),c.jsxs("div",{children:[c.jsx("div",{className:"text-green-700 font-bold",children:x.name}),c.jsxs("div",{className:"text-sm text-gray-700",children:["(Placed at ",x.company," as ",x.position,")"]}),c.jsxs("div",{className:"text-xs text-gray-600",children:["Headquarter – ",x.hq]}),c.jsxs("div",{className:"text-xs text-gray-600",children:["Package – ",x.package]}),c.jsxs("div",{className:"text-xs text-gray-600",children:["Year – ",x.year]}),c.jsxs("div",{className:"mt-2 flex gap-3",children:[c.jsx("button",{onClick:()=>f(x),className:"text-blue-600 text-sm",children:"Edit"}),c.jsx("button",{onClick:()=>m(x._id),className:"text-red-600 text-sm",children:"Delete"})]})]})]},x._id)})})]})}function af(){const{logout:e,user:t}=Qu(),[n,r]=S.useState("Notices");return c.jsxs("div",{className:"min-h-screen bg-gray-50",children:[c.jsxs("header",{className:"flex justify-between items-center p-4 bg-white shadow",children:[c.jsx("div",{className:"font-bold",children:"Admin"}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:"text-sm text-gray-600",children:t==null?void 0:t.email}),c.jsx("button",{onClick:e,className:"text-sm text-red-600",children:"Logout"})]})]}),c.jsxs("main",{className:"p-4 max-w-5xl mx-auto",children:[c.jsx(vS,{active:n,setActive:r}),c.jsxs("div",{className:"bg-white rounded-xl shadow p-4",children:[n==="Notices"&&c.jsx(xS,{}),n==="Announcements"&&c.jsx(wS,{}),n==="Placed Students"&&c.jsx(kS,{}),n==="Gallery"&&c.jsx(ES,{})]})]})]})}const NS=S.lazy(()=>mt(()=>import("./Home-DhXovbAP.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),_S=S.lazy(()=>mt(()=>import("./AboutUs-C-IrlFto.js"),[])),CS=S.lazy(()=>mt(()=>import("./Courses-BfixOnDL.js"),[])),jS=S.lazy(()=>mt(()=>import("./Admission-CIpNBMqn.js"),[])),PS=S.lazy(()=>mt(()=>import("./FacultiesPage-DT0f7KVR.js"),[])),RS=S.lazy(()=>mt(()=>import("./Academic-CEXmVecQ.js"),[])),bS=S.lazy(()=>mt(()=>import("./Infrastructure-DJEE_t3j.js"),[])),TS=S.lazy(()=>mt(()=>import("./SpecialCommitteePage-BviE0qVA.js"),__vite__mapDeps([7,5]))),OS=S.lazy(()=>mt(()=>import("./trainingplacement-O5BrE4uK.js"),__vite__mapDeps([8,1,2,5]))),LS=S.lazy(()=>mt(()=>import("./contactus-DhKNPjH7.js"),__vite__mapDeps([9,3,5]))),AS=S.lazy(()=>mt(()=>import("./gallery-q9zJfnT0.js"),[])),FS=S.lazy(()=>mt(()=>import("./AnnouncementEvents-BzUVN16q.js"),__vite__mapDeps([10,4,5])));function DS(){return c.jsxs("div",{style:{fontFamily:"Montserrat, sans-serif"},children:[c.jsx(_d,{position:"top-center",reverseOrder:!1}),c.jsx(S.Suspense,{fallback:c.jsx(Gm,{}),children:c.jsx(h1,{children:c.jsxs(tv,{children:[c.jsxs(me,{path:"/",element:c.jsx(p1,{}),children:[c.jsx(me,{index:!0,element:c.jsx(NS,{})}),c.jsx(me,{path:"About-us",element:c.jsx(_S,{})}),c.jsx(me,{path:"Courses",element:c.jsx(CS,{})}),c.jsx(me,{path:"Admission",element:c.jsx(jS,{})}),c.jsx(me,{path:"Faculties",element:c.jsx(PS,{})}),c.jsx(me,{path:"Academic",element:c.jsx(RS,{})}),c.jsx(me,{path:"Infrastructure",element:c.jsx(bS,{})}),c.jsx(me,{path:"SpecialCommittee",element:c.jsx(TS,{})}),c.jsx(me,{path:"TrainingPlacement",element:c.jsx(OS,{})}),c.jsx(me,{path:"ContactUs",element:c.jsx(LS,{})}),c.jsx(me,{path:"Gallery",element:c.jsx(AS,{})}),c.jsx(me,{path:"AnnouncementEvents",element:c.jsx(FS,{})})]}),c.jsx(me,{path:"/admin/login",element:c.jsx(yS,{})}),c.jsx(me,{path:"/admin/reset",element:c.jsx(gS,{})}),c.jsx(me,{path:"/admin",element:c.jsx(Qd,{children:c.jsx(af,{})})}),c.jsx(me,{path:"/admin/dashboard",element:c.jsx(Qd,{children:c.jsx(af,{})})}),c.jsx(me,{path:"/login",element:c.jsx(mo,{to:"/admin/login",replace:!0})}),c.jsx(me,{path:"/reset",element:c.jsx(mo,{to:"/admin/reset",replace:!0})}),c.jsx(me,{path:"*",element:c.jsx(mo,{to:"/",replace:!0})})]})})}),c.jsx(_d,{})]})}Sm(document.getElementById("root")).render(c.jsx(S.StrictMode,{children:c.jsx(qw,{children:c.jsx(cv,{children:c.jsx(DS,{})})})}));export{a1 as E,zS as F,Dl as G,he as R,Ss as _,cx as a,Z as b,US as c,$S as d,Dx as e,r1 as f,c as j,S as r};