function Gv(u,f){for(var r=0;rs[v]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}(function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const v of document.querySelectorAll('link[rel="modulepreload"]'))s(v);new MutationObserver(v=>{for(const h of v)if(h.type==="childList")for(const b of h.addedNodes)b.tagName==="LINK"&&b.rel==="modulepreload"&&s(b)}).observe(document,{childList:!0,subtree:!0});function r(v){const h={};return v.integrity&&(h.integrity=v.integrity),v.referrerPolicy&&(h.referrerPolicy=v.referrerPolicy),v.crossOrigin==="use-credentials"?h.credentials="include":v.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function s(v){if(v.ep)return;v.ep=!0;const h=r(v);fetch(v.href,h)}})();function Xv(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Ts={exports:{}},Rn={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ld;function Qv(){if(Ld)return Rn;Ld=1;var u=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function r(s,v,h){var b=null;if(h!==void 0&&(b=""+h),v.key!==void 0&&(b=""+v.key),"key"in v){h={};for(var C in v)C!=="key"&&(h[C]=v[C])}else h=v;return v=h.ref,{$$typeof:u,type:s,key:b,ref:v!==void 0?v:null,props:h}}return Rn.Fragment=f,Rn.jsx=r,Rn.jsxs=r,Rn}var Yd;function Vv(){return Yd||(Yd=1,Ts.exports=Qv()),Ts.exports}var d=Vv(),Es={exports:{}},lt={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var qd;function Zv(){if(qd)return lt;qd=1;var u=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),b=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),O=Symbol.iterator;function q(S){return S===null||typeof S!="object"?null:(S=O&&S[O]||S["@@iterator"],typeof S=="function"?S:null)}var Y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,R={};function Q(S,j,G){this.props=S,this.context=j,this.refs=R,this.updater=G||Y}Q.prototype.isReactComponent={},Q.prototype.setState=function(S,j){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,j,"setState")},Q.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function $(){}$.prototype=Q.prototype;function I(S,j,G){this.props=S,this.context=j,this.refs=R,this.updater=G||Y}var pt=I.prototype=new $;pt.constructor=I,L(pt,Q.prototype),pt.isPureReactComponent=!0;var wt=Array.isArray;function Bt(){}var at={H:null,A:null,T:null,S:null},ut=Object.prototype.hasOwnProperty;function bt(S,j,G){var Z=G.ref;return{$$typeof:u,type:S,key:j,ref:Z!==void 0?Z:null,props:G}}function Nt(S,j){return bt(S.type,j,S.props)}function k(S){return typeof S=="object"&&S!==null&&S.$$typeof===u}function tt(S){var j={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(G){return j[G]})}var jt=/\/+/g;function Yt(S,j){return typeof S=="object"&&S!==null&&S.key!=null?tt(""+S.key):j.toString(36)}function V(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(Bt,Bt):(S.status="pending",S.then(function(j){S.status==="pending"&&(S.status="fulfilled",S.value=j)},function(j){S.status==="pending"&&(S.status="rejected",S.reason=j)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function x(S,j,G,Z,P){var ct=typeof S;(ct==="undefined"||ct==="boolean")&&(S=null);var mt=!1;if(S===null)mt=!0;else switch(ct){case"bigint":case"string":case"number":mt=!0;break;case"object":switch(S.$$typeof){case u:case f:mt=!0;break;case _:return mt=S._init,x(mt(S._payload),j,G,Z,P)}}if(mt)return P=P(S),mt=Z===""?"."+Yt(S,0):Z,wt(P)?(G="",mt!=null&&(G=mt.replace(jt,"$&/")+"/"),x(P,j,G,"",function(zl){return zl})):P!=null&&(k(P)&&(P=Nt(P,G+(P.key==null||S&&S.key===P.key?"":(""+P.key).replace(jt,"$&/")+"/")+mt)),j.push(P)),1;mt=0;var kt=Z===""?".":Z+":";if(wt(S))for(var _t=0;_t>>1,St=x[et];if(0>>1;etv(G,X))Zv(P,G)?(x[et]=P,x[Z]=X,et=Z):(x[et]=G,x[j]=X,et=j);else if(Zv(P,X))x[et]=P,x[Z]=X,et=Z;else break t}}return H}function v(x,H){var X=x.sortIndex-H.sortIndex;return X!==0?X:x.id-H.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;u.unstable_now=function(){return h.now()}}else{var b=Date,C=b.now();u.unstable_now=function(){return b.now()-C}}var E=[],m=[],_=1,p=null,O=3,q=!1,Y=!1,L=!1,R=!1,Q=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;function pt(x){for(var H=r(m);H!==null;){if(H.callback===null)s(m);else if(H.startTime<=x)s(m),H.sortIndex=H.expirationTime,f(E,H);else break;H=r(m)}}function wt(x){if(L=!1,pt(x),!Y)if(r(E)!==null)Y=!0,Bt||(Bt=!0,tt());else{var H=r(m);H!==null&&V(wt,H.startTime-x)}}var Bt=!1,at=-1,ut=5,bt=-1;function Nt(){return R?!0:!(u.unstable_now()-btx&&Nt());){var et=p.callback;if(typeof et=="function"){p.callback=null,O=p.priorityLevel;var St=et(p.expirationTime<=x);if(x=u.unstable_now(),typeof St=="function"){p.callback=St,pt(x),H=!0;break e}p===r(E)&&s(E),pt(x)}else s(E);p=r(E)}if(p!==null)H=!0;else{var S=r(m);S!==null&&V(wt,S.startTime-x),H=!1}}break t}finally{p=null,O=X,q=!1}H=void 0}}finally{H?tt():Bt=!1}}}var tt;if(typeof I=="function")tt=function(){I(k)};else if(typeof MessageChannel<"u"){var jt=new MessageChannel,Yt=jt.port2;jt.port1.onmessage=k,tt=function(){Yt.postMessage(null)}}else tt=function(){Q(k,0)};function V(x,H){at=Q(function(){x(u.unstable_now())},H)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(x){x.callback=null},u.unstable_forceFrameRate=function(x){0>x||125et?(x.sortIndex=X,f(m,x),r(E)===null&&x===r(m)&&(L?($(at),at=-1):L=!0,V(wt,X-et))):(x.sortIndex=St,f(E,x),Y||q||(Y=!0,Bt||(Bt=!0,tt()))),x},u.unstable_shouldYield=Nt,u.unstable_wrapCallback=function(x){var H=O;return function(){var X=O;O=H;try{return x.apply(this,arguments)}finally{O=X}}}})(Ds)),Ds}var Qd;function Fv(){return Qd||(Qd=1,As.exports=kv()),As.exports}var Ns={exports:{}},te={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Vd;function $v(){if(Vd)return te;Vd=1;var u=ws();function f(E){var m="https://react.dev/errors/"+E;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(f){console.error(f)}}return u(),Ns.exports=$v(),Ns.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Kd;function Wv(){if(Kd)return wn;Kd=1;var u=Fv(),f=ws(),r=nh();function s(t){var e="https://react.dev/errors/"+t;if(1St||(t.current=et[St],et[St]=null,St--)}function G(t,e){St++,et[St]=t.current,t.current=e}var Z=S(null),P=S(null),ct=S(null),mt=S(null);function kt(t,e){switch(G(ct,e),G(P,t),G(Z,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?cd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=cd(e),t=sd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}j(Z),G(Z,t)}function _t(){j(Z),j(P),j(ct)}function zl(t){t.memoizedState!==null&&G(mt,t);var e=Z.current,l=sd(e,t.type);e!==l&&(G(P,t),G(Z,l))}function $l(t){P.current===t&&(j(Z),j(P)),mt.current===t&&(j(mt),Mn._currentValue=X)}var ll,Xn;function He(t){if(ll===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);ll=e&&e[1]||"",Xn=-1)":-1n||g[a]!==D[n]){var M=` `+g[a].replace(" at new "," at ");return t.displayName&&M.includes("")&&(M=M.replace("",t.displayName)),M}while(1<=a&&0<=n);break}}}finally{Ha=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?He(l):""}function su(t,e){switch(t.tag){case 26:case 27:case 5:return He(t.type);case 16:return He("Lazy");case 13:return t.child!==e&&e!==null?He("Suspense Fallback"):He("Suspense");case 19:return He("SuspenseList");case 0:case 15:return La(t.type,!1);case 11:return La(t.type.render,!1);case 1:return La(t.type,!0);case 31:return He("Activity");default:return""}}function Qn(t){try{var e="",l=null;do e+=su(t,l),l=t,t=t.return;while(t);return e}catch(a){return` Error generating stack: `+a.message+` `+a.stack}}var Wl=Object.prototype.hasOwnProperty,Ya=u.unstable_scheduleCallback,qa=u.unstable_cancelCallback,ph=u.unstable_shouldYield,Sh=u.unstable_requestPaint,oe=u.unstable_now,Th=u.unstable_getCurrentPriorityLevel,Hs=u.unstable_ImmediatePriority,Ls=u.unstable_UserBlockingPriority,Vn=u.unstable_NormalPriority,Eh=u.unstable_LowPriority,Ys=u.unstable_IdlePriority,xh=u.log,Ah=u.unstable_setDisableYieldValue,Ga=null,fe=null;function al(t){if(typeof xh=="function"&&Ah(t),fe&&typeof fe.setStrictMode=="function")try{fe.setStrictMode(Ga,t)}catch{}}var re=Math.clz32?Math.clz32:Ch,Dh=Math.log,Nh=Math.LN2;function Ch(t){return t>>>=0,t===0?32:31-(Dh(t)/Nh|0)|0}var Zn=256,Kn=262144,Jn=4194304;function Ml(t){var e=t&42;if(e!==0)return e;switch(t&-t){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function kn(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,i=t.suspendedLanes,c=t.pingedLanes;t=t.warmLanes;var o=a&134217727;return o!==0?(a=o&~i,a!==0?n=Ml(a):(c&=o,c!==0?n=Ml(c):l||(l=o&~t,l!==0&&(n=Ml(l))))):(o=a&~i,o!==0?n=Ml(o):c!==0?n=Ml(c):l||(l=a&~t,l!==0&&(n=Ml(l)))),n===0?0:e!==0&&e!==n&&(e&i)===0&&(i=n&-n,l=e&-e,i>=l||i===32&&(l&4194048)!==0)?e:n}function Xa(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function jh(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32: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+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qs(){var t=Jn;return Jn<<=1,(Jn&62914560)===0&&(Jn=4194304),t}function ou(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Qa(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function zh(t,e,l,a,n,i){var c=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var o=t.entanglements,g=t.expirationTimes,D=t.hiddenUpdates;for(l=c&~l;0"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var wh=/[\n"\\]/g;function Te(t){return t.replace(wh,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vu(t,e,l,a,n,i,c,o){t.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?t.type=c:t.removeAttribute("type"),e!=null?c==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Se(e)):t.value!==""+Se(e)&&(t.value=""+Se(e)):c!=="submit"&&c!=="reset"||t.removeAttribute("value"),e!=null?gu(t,c,Se(e)):l!=null?gu(t,c,Se(l)):a!=null&&t.removeAttribute("value"),n==null&&i!=null&&(t.defaultChecked=!!i),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+Se(o):t.removeAttribute("name")}function Ps(t,e,l,a,n,i,c,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){mu(t);return}l=l!=null?""+Se(l):"",e=e!=null?""+Se(e):l,o||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=o?t.checked:!!a,t.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.name=c),mu(t)}function gu(t,e,l){e==="number"&&Wn(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function aa(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tu=!1;if(qe)try{var Ja={};Object.defineProperty(Ja,"passive",{get:function(){Tu=!0}}),window.addEventListener("test",Ja,Ja),window.removeEventListener("test",Ja,Ja)}catch{Tu=!1}var il=null,Eu=null,Pn=null;function uo(){if(Pn)return Pn;var t,e=Eu,l=e.length,a,n="value"in il?il.value:il.textContent,i=n.length;for(t=0;t=$a),ho=" ",mo=!1;function vo(t,e){switch(t){case"keyup":return om.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function go(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ca=!1;function rm(t,e){switch(t){case"compositionend":return go(e);case"keypress":return e.which!==32?null:(mo=!0,ho);case"textInput":return t=e.data,t===ho&&mo?null:t;default:return null}}function dm(t,e){if(ca)return t==="compositionend"||!Cu&&vo(t,e)?(t=uo(),Pn=Eu=il=null,ca=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Ao(l)}}function No(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?No(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Co(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Wn(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=Wn(t.document)}return e}function Mu(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Sm=qe&&"documentMode"in document&&11>=document.documentMode,sa=null,_u=null,tn=null,Ou=!1;function jo(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ou||sa==null||sa!==Wn(a)||(a=sa,"selectionStart"in a&&Mu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),tn&&Pa(tn,a)||(tn=a,a=Ki(_u,"onSelect"),0>=c,n-=c,Ue=1<<32-re(e)+n|l<it?(rt=J,J=null):rt=J.sibling;var gt=N(T,J,A[it],U);if(gt===null){J===null&&(J=rt);break}t&&J&>.alternate===null&&e(T,J),y=i(gt,y,it),vt===null?F=gt:vt.sibling=gt,vt=gt,J=rt}if(it===A.length)return l(T,J),ht&&Xe(T,it),F;if(J===null){for(;itit?(rt=J,J=null):rt=J.sibling;var Cl=N(T,J,gt.value,U);if(Cl===null){J===null&&(J=rt);break}t&&J&&Cl.alternate===null&&e(T,J),y=i(Cl,y,it),vt===null?F=Cl:vt.sibling=Cl,vt=Cl,J=rt}if(gt.done)return l(T,J),ht&&Xe(T,it),F;if(J===null){for(;!gt.done;it++,gt=A.next())gt=w(T,gt.value,U),gt!==null&&(y=i(gt,y,it),vt===null?F=gt:vt.sibling=gt,vt=gt);return ht&&Xe(T,it),F}for(J=a(J);!gt.done;it++,gt=A.next())gt=z(J,T,it,gt.value,U),gt!==null&&(t&>.alternate!==null&&J.delete(gt.key===null?it:gt.key),y=i(gt,y,it),vt===null?F=gt:vt.sibling=gt,vt=gt);return t&&J.forEach(function(qv){return e(T,qv)}),ht&&Xe(T,it),F}function Dt(T,y,A,U){if(typeof A=="object"&&A!==null&&A.type===L&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case q:t:{for(var F=A.key;y!==null;){if(y.key===F){if(F=A.type,F===L){if(y.tag===7){l(T,y.sibling),U=n(y,A.props.children),U.return=T,T=U;break t}}else if(y.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===ut&&Gl(F)===y.type){l(T,y.sibling),U=n(y,A.props),cn(U,A),U.return=T,T=U;break t}l(T,y);break}else e(T,y);y=y.sibling}A.type===L?(U=Bl(A.props.children,T.mode,U,A.key),U.return=T,T=U):(U=oi(A.type,A.key,A.props,null,T.mode,U),cn(U,A),U.return=T,T=U)}return c(T);case Y:t:{for(F=A.key;y!==null;){if(y.key===F)if(y.tag===4&&y.stateNode.containerInfo===A.containerInfo&&y.stateNode.implementation===A.implementation){l(T,y.sibling),U=n(y,A.children||[]),U.return=T,T=U;break t}else{l(T,y);break}else e(T,y);y=y.sibling}U=Yu(A,T.mode,U),U.return=T,T=U}return c(T);case ut:return A=Gl(A),Dt(T,y,A,U)}if(V(A))return K(T,y,A,U);if(tt(A)){if(F=tt(A),typeof F!="function")throw Error(s(150));return A=F.call(A),W(T,y,A,U)}if(typeof A.then=="function")return Dt(T,y,gi(A),U);if(A.$$typeof===I)return Dt(T,y,di(T,A),U);yi(T,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,y!==null&&y.tag===6?(l(T,y.sibling),U=n(y,A),U.return=T,T=U):(l(T,y),U=Lu(A,T.mode,U),U.return=T,T=U),c(T)):l(T,y)}return function(T,y,A,U){try{un=0;var F=Dt(T,y,A,U);return pa=null,F}catch(J){if(J===ba||J===mi)throw J;var vt=he(29,J,null,T.mode);return vt.lanes=U,vt.return=T,vt}finally{}}}var Ql=Wo(!0),Io=Wo(!1),fl=!1;function Wu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Iu(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function rl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function dl(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(yt&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=si(t),wo(t,null,l),e}return ci(t,a,e,l),si(t)}function sn(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Xs(t,l)}}function Pu(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=c:i=i.next=c,l=l.next}while(l!==null);i===null?n=i=e:i=i.next=e}else n=i=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var tc=!1;function on(){if(tc){var t=ya;if(t!==null)throw t}}function fn(t,e,l,a){tc=!1;var n=t.updateQueue;fl=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var g=o,D=g.next;g.next=null,c===null?i=D:c.next=D,c=g;var M=t.alternate;M!==null&&(M=M.updateQueue,o=M.lastBaseUpdate,o!==c&&(o===null?M.firstBaseUpdate=D:o.next=D,M.lastBaseUpdate=g))}if(i!==null){var w=n.baseState;c=0,M=D=g=null,o=i;do{var N=o.lane&-536870913,z=N!==o.lane;if(z?(ft&N)===N:(a&N)===N){N!==0&&N===ga&&(tc=!0),M!==null&&(M=M.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var K=t,W=o;N=e;var Dt=l;switch(W.tag){case 1:if(K=W.payload,typeof K=="function"){w=K.call(Dt,w,N);break t}w=K;break t;case 3:K.flags=K.flags&-65537|128;case 0:if(K=W.payload,N=typeof K=="function"?K.call(Dt,w,N):K,N==null)break t;w=p({},w,N);break t;case 2:fl=!0}}N=o.callback,N!==null&&(t.flags|=64,z&&(t.flags|=8192),z=n.callbacks,z===null?n.callbacks=[N]:z.push(N))}else z={lane:N,tag:o.tag,payload:o.payload,callback:o.callback,next:null},M===null?(D=M=z,g=w):M=M.next=z,c|=N;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;z=o,o=z.next,z.next=null,n.lastBaseUpdate=z,n.shared.pending=null}}while(!0);M===null&&(g=w),n.baseState=g,n.firstBaseUpdate=D,n.lastBaseUpdate=M,i===null&&(n.shared.lanes=0),yl|=c,t.lanes=c,t.memoizedState=w}}function Po(t,e){if(typeof t!="function")throw Error(s(191,t));t.call(e)}function tf(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;ti?i:8;var c=x.T,o={};x.T=o,pc(t,!1,e,l);try{var g=n(),D=x.S;if(D!==null&&D(o,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var M=zm(g,a);hn(t,e,M,be(t))}else hn(t,e,a,be(t))}catch(w){hn(t,e,{then:function(){},status:"rejected",reason:w},be())}finally{H.p=i,c!==null&&o.types!==null&&(c.types=o.types),x.T=c}}function wm(){}function yc(t,e,l,a){if(t.tag!==5)throw Error(s(476));var n=Uf(t).queue;Of(t,n,e,X,l===null?wm:function(){return Rf(t),l(a)})}function Uf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:X},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Rf(t){var e=Uf(t);e.next===null&&(e=t.alternate.memoizedState),hn(t,e.next.queue,{},be())}function bc(){return Wt(Mn)}function wf(){return Lt().memoizedState}function Bf(){return Lt().memoizedState}function Bm(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=be();t=rl(l);var a=dl(e,t,l);a!==null&&(se(a,e,l),sn(a,e,l)),e={cache:Ju()},t.payload=e;return}e=e.return}}function Hm(t,e,l){var a=be();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ci(t)?Lf(e,l):(l=Bu(t,e,l,a),l!==null&&(se(l,t,a),Yf(l,e,a)))}function Hf(t,e,l){var a=be();hn(t,e,l,a)}function hn(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ci(t))Lf(e,n);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var c=e.lastRenderedState,o=i(c,l);if(n.hasEagerState=!0,n.eagerState=o,de(o,c))return ci(t,e,n,0),Ct===null&&ui(),!1}catch{}finally{}if(l=Bu(t,e,n,a),l!==null)return se(l,t,a),Yf(l,e,a),!0}return!1}function pc(t,e,l,a){if(a={lane:2,revertLane:Wc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ci(t)){if(e)throw Error(s(479))}else e=Bu(t,l,a,2),e!==null&&se(e,t,2)}function Ci(t){var e=t.alternate;return t===nt||e!==null&&e===nt}function Lf(t,e){Ta=Si=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Yf(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Xs(t,l)}}var mn={readContext:Wt,use:xi,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useLayoutEffect:Ut,useInsertionEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useSyncExternalStore:Ut,useId:Ut,useHostTransitionStatus:Ut,useFormState:Ut,useActionState:Ut,useOptimistic:Ut,useMemoCache:Ut,useCacheRefresh:Ut};mn.useEffectEvent=Ut;var qf={readContext:Wt,use:xi,useCallback:function(t,e){return ee().memoizedState=[t,e===void 0?null:e],t},useContext:Wt,useEffect:xf,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Di(4194308,4,Cf.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Di(4194308,4,t,e)},useInsertionEffect:function(t,e){Di(4,2,t,e)},useMemo:function(t,e){var l=ee();e=e===void 0?null:e;var a=t();if(Vl){al(!0);try{t()}finally{al(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=ee();if(l!==void 0){var n=l(e);if(Vl){al(!0);try{l(e)}finally{al(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=Hm.bind(null,nt,t),[a.memoizedState,t]},useRef:function(t){var e=ee();return t={current:t},e.memoizedState=t},useState:function(t){t=dc(t);var e=t.queue,l=Hf.bind(null,nt,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:vc,useDeferredValue:function(t,e){var l=ee();return gc(l,t,e)},useTransition:function(){var t=dc(!1);return t=Of.bind(null,nt,t.queue,!0,!1),ee().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=nt,n=ee();if(ht){if(l===void 0)throw Error(s(407));l=l()}else{if(l=e(),Ct===null)throw Error(s(349));(ft&127)!==0||cf(a,e,l)}n.memoizedState=l;var i={value:l,getSnapshot:e};return n.queue=i,xf(of.bind(null,a,i,t),[t]),a.flags|=2048,xa(9,{destroy:void 0},sf.bind(null,a,i,l,e),null),l},useId:function(){var t=ee(),e=Ct.identifierPrefix;if(ht){var l=Re,a=Ue;l=(a&~(1<<32-re(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Ti++,0<\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}i[Ft]=e,i[le]=a;t:for(c=e.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break t;for(;c.sibling===null;){if(c.return===null||c.return===e)break t;c=c.return}c.sibling.return=c.return,c=c.sibling}e.stateNode=i;t:switch(Pt(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&ke(e)}}return Mt(e),Uc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&ke(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(s(166));if(t=ct.current,ma(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=$t,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[Ft]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||id(t.nodeValue,l)),t||sl(e,!0)}else t=Ji(t).createTextNode(a),t[Ft]=e,e.stateNode=t}return Mt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=ma(e),l!==null){if(t===null){if(!a)throw Error(s(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(557));t[Ft]=e}else Hl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Mt(e),t=!1}else l=Qu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(ve(e),e):(ve(e),null);if((e.flags&128)!==0)throw Error(s(558))}return Mt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=ma(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(s(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));n[Ft]=e}else Hl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Mt(e),n=!1}else n=Qu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(ve(e),e):(ve(e),null)}return ve(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Oi(e,e.updateQueue),Mt(e),null);case 4:return _t(),t===null&&es(e.stateNode.containerInfo),Mt(e),null;case 10:return Ve(e.type),Mt(e),null;case 19:if(j(Ht),a=e.memoizedState,a===null)return Mt(e),null;if(n=(e.flags&128)!==0,i=a.rendering,i===null)if(n)gn(a,!1);else{if(Rt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=pi(t),i!==null){for(e.flags|=128,gn(a,!1),t=i.updateQueue,e.updateQueue=t,Oi(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Bo(l,t),l=l.sibling;return G(Ht,Ht.current&1|2),ht&&Xe(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&oe()>Hi&&(e.flags|=128,n=!0,gn(a,!1),e.lanes=4194304)}else{if(!n)if(t=pi(i),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Oi(e,t),gn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!ht)return Mt(e),null}else 2*oe()-a.renderingStartTime>Hi&&l!==536870912&&(e.flags|=128,n=!0,gn(a,!1),e.lanes=4194304);a.isBackwards?(i.sibling=e.child,e.child=i):(t=a.last,t!==null?t.sibling=i:e.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=oe(),t.sibling=null,l=Ht.current,G(Ht,n?l&1|2:l&1),ht&&Xe(e,a.treeForkCount),t):(Mt(e),null);case 22:case 23:return ve(e),lc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(Mt(e),e.subtreeFlags&6&&(e.flags|=8192)):Mt(e),l=e.updateQueue,l!==null&&Oi(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&j(ql),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Ve(qt),Mt(e),null;case 25:return null;case 30:return null}throw Error(s(156,e.tag))}function Xm(t,e){switch(Gu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ve(qt),_t(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return $l(e),null;case 31:if(e.memoizedState!==null){if(ve(e),e.alternate===null)throw Error(s(340));Hl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ve(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(s(340));Hl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return j(Ht),null;case 4:return _t(),null;case 10:return Ve(e.type),null;case 22:case 23:return ve(e),lc(),t!==null&&j(ql),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Ve(qt),null;case 25:return null;default:return null}}function fr(t,e){switch(Gu(e),e.tag){case 3:Ve(qt),_t();break;case 26:case 27:case 5:$l(e);break;case 4:_t();break;case 31:e.memoizedState!==null&&ve(e);break;case 13:ve(e);break;case 19:j(Ht);break;case 10:Ve(e.type);break;case 22:case 23:ve(e),lc(),t!==null&&j(ql);break;case 24:Ve(qt)}}function yn(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var i=l.create,c=l.inst;a=i(),c.destroy=a}l=l.next}while(l!==n)}}catch(o){Et(e,e.return,o)}}function vl(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&t)===t){var c=a.inst,o=c.destroy;if(o!==void 0){c.destroy=void 0,n=e;var g=l,D=o;try{D()}catch(M){Et(n,g,M)}}}a=a.next}while(a!==i)}}catch(M){Et(e,e.return,M)}}function rr(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{tf(e,l)}catch(a){Et(t,t.return,a)}}}function dr(t,e,l){l.props=Zl(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){Et(t,e,a)}}function bn(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){Et(t,e,n)}}function we(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Et(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Et(t,e,n)}else l.current=null}function hr(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Et(t,t.return,n)}}function Rc(t,e,l){try{var a=t.stateNode;fv(a,t.type,l,e),a[le]=e}catch(n){Et(t,t.return,n)}}function mr(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&El(t.type)||t.tag===4}function wc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||mr(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&El(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Bc(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=Ye));else if(a!==4&&(a===27&&El(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Bc(t,e,l),t=t.sibling;t!==null;)Bc(t,e,l),t=t.sibling}function Ui(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&El(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Ui(t,e,l),t=t.sibling;t!==null;)Ui(t,e,l),t=t.sibling}function vr(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Pt(e,a,l),e[Ft]=t,e[le]=l}catch(i){Et(t,t.return,i)}}var Fe=!1,Qt=!1,Hc=!1,gr=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function Qm(t,e){if(t=t.containerInfo,ns=tu,t=Co(t),Mu(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break t}var c=0,o=-1,g=-1,D=0,M=0,w=t,N=null;e:for(;;){for(var z;w!==l||n!==0&&w.nodeType!==3||(o=c+n),w!==i||a!==0&&w.nodeType!==3||(g=c+a),w.nodeType===3&&(c+=w.nodeValue.length),(z=w.firstChild)!==null;)N=w,w=z;for(;;){if(w===t)break e;if(N===l&&++D===n&&(o=c),N===i&&++M===a&&(g=c),(z=w.nextSibling)!==null)break;w=N,N=w.parentNode}w=z}l=o===-1||g===-1?null:{start:o,end:g}}else l=null}l=l||{start:0,end:0}}else l=null;for(is={focusedElem:t,selectionRange:l},tu=!1,Jt=e;Jt!==null;)if(e=Jt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Jt=t;else for(;Jt!==null;){switch(e=Jt,i=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l title"))),Pt(i,a,l),i[Ft]=t,Kt(i),a=i;break t;case"link":var c=Ed("link","href",n).get(a+(l.href||""));if(c){for(var o=0;oDt&&(c=Dt,Dt=W,W=c);var T=Do(o,W),y=Do(o,Dt);if(T&&y&&(z.rangeCount!==1||z.anchorNode!==T.node||z.anchorOffset!==T.offset||z.focusNode!==y.node||z.focusOffset!==y.offset)){var A=w.createRange();A.setStart(T.node,T.offset),z.removeAllRanges(),W>Dt?(z.addRange(A),z.extend(y.node,y.offset)):(A.setEnd(y.node,y.offset),z.addRange(A))}}}}for(w=[],z=o;z=z.parentNode;)z.nodeType===1&&w.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;ol?32:l,x.T=null,l=Vc,Vc=null;var i=pl,c=tl;if(Zt=0,ja=pl=null,tl=0,(yt&6)!==0)throw Error(s(331));var o=yt;if(yt|=4,Cr(i.current),Ar(i,i.current,c,l),yt=o,An(0,!1),fe&&typeof fe.onPostCommitFiberRoot=="function")try{fe.onPostCommitFiberRoot(Ga,i)}catch{}return!0}finally{H.p=n,x.T=a,Zr(t,e)}}function Jr(t,e,l){e=xe(l,e),e=xc(t.stateNode,e,2),t=dl(t,e,2),t!==null&&(Qa(t,2),Be(t))}function Et(t,e,l){if(t.tag===3)Jr(t,t,l);else for(;e!==null;){if(e.tag===3){Jr(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(bl===null||!bl.has(a))){t=xe(l,t),l=kf(2),a=dl(e,l,2),a!==null&&(Ff(l,a,e,t),Qa(a,2),Be(a));break}}e=e.return}}function kc(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new Km;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(qc=!0,n.add(l),t=Wm.bind(null,t,e,l),e.then(t,t))}function Wm(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Ct===t&&(ft&l)===l&&(Rt===4||Rt===3&&(ft&62914560)===ft&&300>oe()-Bi?(yt&2)===0&&za(t,0):Gc|=l,Ca===ft&&(Ca=0)),Be(t)}function kr(t,e){e===0&&(e=qs()),t=wl(t,e),t!==null&&(Qa(t,e),Be(t))}function Im(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),kr(t,l)}function Pm(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(e),kr(t,l)}function tv(t,e){return Ya(t,e)}var Qi=null,_a=null,Fc=!1,Vi=!1,$c=!1,Tl=0;function Be(t){t!==_a&&t.next===null&&(_a===null?Qi=_a=t:_a=_a.next=t),Vi=!0,Fc||(Fc=!0,lv())}function An(t,e){if(!$c&&Vi){$c=!0;do for(var l=!1,a=Qi;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var c=a.suspendedLanes,o=a.pingedLanes;i=(1<<31-re(42|t)+1)-1,i&=n&~(c&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Ir(a,i))}else i=ft,i=kn(a,a===Ct?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Xa(a,i)||(l=!0,Ir(a,i));a=a.next}while(l);$c=!1}}function ev(){Fr()}function Fr(){Vi=Fc=!1;var t=0;Tl!==0&&dv()&&(t=Tl);for(var e=oe(),l=null,a=Qi;a!==null;){var n=a.next,i=$r(a,e);i===0?(a.next=null,l===null?Qi=n:l.next=n,n===null&&(_a=l)):(l=a,(t!==0||(i&3)!==0)&&(Vi=!0)),a=n}Zt!==0&&Zt!==5||An(t),Tl!==0&&(Tl=0)}function $r(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,i=t.pendingLanes&-62914561;0o)break;var M=g.transferSize,w=g.initiatorType;M&&ud(w)&&(g=g.responseEnd,c+=M*(g"u"?null:document;function bd(t,e,l){var a=Oa;if(a&&typeof e=="string"&&e){var n=Te(e);n='link[rel="'+t+'"][href="http://approjects.co.za/?big="+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),yd.has(n)||(yd.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),Pt(e,"link",t),Kt(e),a.head.appendChild(e)))}}function Tv(t){el.D(t),bd("dns-prefetch",t,null)}function Ev(t,e){el.C(t,e),bd("preconnect",t,e)}function xv(t,e,l){el.L(t,e,l);var a=Oa;if(a&&t&&e){var n='link[rel="preload"][as="'+Te(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Te(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Te(l.imageSizes)+'"]')):n+='[href="http://approjects.co.za/?big="+Te(t)+'"]';var i=n;switch(e){case"style":i=Ua(t);break;case"script":i=Ra(t)}ze.has(i)||(t=p({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),ze.set(i,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(jn(i))||e==="script"&&a.querySelector(zn(i))||(e=a.createElement("link"),Pt(e,"link",t),Kt(e),a.head.appendChild(e)))}}function Av(t,e){el.m(t,e);var l=Oa;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+Te(a)+'"][href="http://approjects.co.za/?big="+Te(t)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ra(t)}if(!ze.has(i)&&(t=p({rel:"modulepreload",href:t},e),ze.set(i,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(zn(i)))return}a=l.createElement("link"),Pt(a,"link",t),Kt(a),l.head.appendChild(a)}}}function Dv(t,e,l){el.S(t,e,l);var a=Oa;if(a&&t){var n=ea(a).hoistableStyles,i=Ua(t);e=e||"default";var c=n.get(i);if(!c){var o={loading:0,preload:null};if(c=a.querySelector(jn(i)))o.loading=5;else{t=p({rel:"stylesheet",href:t,"data-precedence":e},l),(l=ze.get(i))&&ds(t,l);var g=c=a.createElement("link");Kt(g),Pt(g,"link",t),g._p=new Promise(function(D,M){g.onload=D,g.onerror=M}),g.addEventListener("load",function(){o.loading|=1}),g.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Fi(c,e,a)}c={type:"stylesheet",instance:c,count:1,state:o},n.set(i,c)}}}function Nv(t,e){el.X(t,e);var l=Oa;if(l&&t){var a=ea(l).hoistableScripts,n=Ra(t),i=a.get(n);i||(i=l.querySelector(zn(n)),i||(t=p({src:t,async:!0},e),(e=ze.get(n))&&hs(t,e),i=l.createElement("script"),Kt(i),Pt(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Cv(t,e){el.M(t,e);var l=Oa;if(l&&t){var a=ea(l).hoistableScripts,n=Ra(t),i=a.get(n);i||(i=l.querySelector(zn(n)),i||(t=p({src:t,async:!0,type:"module"},e),(e=ze.get(n))&&hs(t,e),i=l.createElement("script"),Kt(i),Pt(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function pd(t,e,l,a){var n=(n=ct.current)?ki(n):null;if(!n)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Ua(l.href),l=ea(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Ua(l.href);var i=ea(n).hoistableStyles,c=i.get(t);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,c),(i=n.querySelector(jn(t)))&&!i._p&&(c.instance=i,c.state.loading=5),ze.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},ze.set(t,l),i||jv(n,t,l,c.state))),e&&a===null)throw Error(s(528,""));return c}if(e&&a!==null)throw Error(s(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ra(l),l=ea(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function Ua(t){return'href="http://approjects.co.za/?big="+Te(t)+'"'}function jn(t){return'link[rel="stylesheet"]['+t+"]"}function Sd(t){return p({},t,{"data-precedence":t.precedence,precedence:null})}function jv(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Pt(e,"link",l),Kt(e),t.head.appendChild(e))}function Ra(t){return'[src="http://approjects.co.za/?big="+Te(t)+'"]'}function zn(t){return"script[async]"+t}function Td(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Te(l.href)+'"]');if(a)return e.instance=a,Kt(a),a;var n=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Kt(a),Pt(a,"style",n),Fi(a,l.precedence,t),e.instance=a;case"stylesheet":n=Ua(l.href);var i=t.querySelector(jn(n));if(i)return e.state.loading|=4,e.instance=i,Kt(i),i;a=Sd(l),(n=ze.get(n))&&ds(a,n),i=(t.ownerDocument||t).createElement("link"),Kt(i);var c=i;return c._p=new Promise(function(o,g){c.onload=o,c.onerror=g}),Pt(i,"link",a),e.state.loading|=4,Fi(i,l.precedence,t),e.instance=i;case"script":return i=Ra(l.src),(n=t.querySelector(zn(i)))?(e.instance=n,Kt(n),n):(a=l,(n=ze.get(i))&&(a=p({},l),hs(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Kt(n),Pt(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(s(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Fi(a,l.precedence,t));return e.instance}function Fi(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,c=0;c title"):null)}function zv(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Ad(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Mv(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Ua(a.href),i=e.querySelector(jn(n));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Wi.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=i,Kt(i);return}i=e.ownerDocument||e,a=Sd(a),(n=ze.get(n))&&ds(a,n),i=i.createElement("link"),Kt(i);var c=i;c._p=new Promise(function(o,g){c.onload=o,c.onerror=g}),Pt(i,"link",a),l.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Wi.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var ms=0;function _v(t,e){return t.stylesheets&&t.count===0&&Pi(t,t.stylesheets),0ms?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Wi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Pi(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ii=null;function Pi(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ii=new Map,e.forEach(Ov,t),Ii=null,Wi.call(t))}function Ov(t,e){if(!(e.state.loading&4)){var l=Ii.get(t);if(l)var a=l.get(null);else{l=new Map,Ii.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(f){console.error(f)}}return u(),xs.exports=Wv(),xs.exports}var Pv=Iv();nh();/** * @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 Hn(){return Hn=Object.assign?Object.assign.bind():function(u){for(var f=1;f"u")throw new Error(f)}function ih(u,f){if(!u){typeof console<"u"&&console.warn(f);try{throw new Error(f)}catch{}}}function e0(){return Math.random().toString(36).substr(2,8)}function Fd(u,f){return{usr:u.state,key:u.key,idx:f}}function Ms(u,f,r,s){return r===void 0&&(r=null),Hn({pathname:typeof u=="string"?u:u.pathname,search:"",hash:""},typeof f=="string"?Ba(f):f,{state:r,key:f&&f.key||s||e0()})}function uh(u){let{pathname:f="/",search:r="",hash:s=""}=u;return r&&r!=="?"&&(f+=r.charAt(0)==="?"?r:"?"+r),s&&s!=="#"&&(f+=s.charAt(0)==="#"?s:"#"+s),f}function Ba(u){let f={};if(u){let r=u.indexOf("#");r>=0&&(f.hash=u.substr(r),u=u.substr(0,r));let s=u.indexOf("?");s>=0&&(f.search=u.substr(s),u=u.substr(0,s)),u&&(f.pathname=u)}return f}function l0(u,f,r,s){s===void 0&&(s={});let{window:v=document.defaultView,v5Compat:h=!1}=s,b=v.history,C=jl.Pop,E=null,m=_();m==null&&(m=0,b.replaceState(Hn({},b.state,{idx:m}),""));function _(){return(b.state||{idx:null}).idx}function p(){C=jl.Pop;let R=_(),Q=R==null?null:R-m;m=R,E&&E({action:C,location:L.location,delta:Q})}function O(R,Q){C=jl.Push;let $=Ms(L.location,R,Q);m=_()+1;let I=Fd($,m),pt=L.createHref($);try{b.pushState(I,"",pt)}catch(wt){if(wt instanceof DOMException&&wt.name==="DataCloneError")throw wt;v.location.assign(pt)}h&&E&&E({action:C,location:L.location,delta:1})}function q(R,Q){C=jl.Replace;let $=Ms(L.location,R,Q);m=_();let I=Fd($,m),pt=L.createHref($);b.replaceState(I,"",pt),h&&E&&E({action:C,location:L.location,delta:0})}function Y(R){let Q=v.location.origin!=="null"?v.location.origin:v.location.href,$=typeof R=="string"?R:uh(R);return $=$.replace(/ $/,"%20"),Vt(Q,"No window.location.(origin|href) available to create URL for href: "+$),new URL($,Q)}let L={get action(){return C},get location(){return u(v,b)},listen(R){if(E)throw new Error("A history only accepts one active listener");return v.addEventListener(kd,p),E=R,()=>{v.removeEventListener(kd,p),E=null}},createHref(R){return f(v,R)},createURL:Y,encodeLocation(R){let Q=Y(R);return{pathname:Q.pathname,search:Q.search,hash:Q.hash}},push:O,replace:q,go(R){return b.go(R)}};return L}var $d;(function(u){u.data="data",u.deferred="deferred",u.redirect="redirect",u.error="error"})($d||($d={}));function a0(u,f,r){return r===void 0&&(r="/"),n0(u,f,r)}function n0(u,f,r,s){let v=typeof f=="string"?Ba(f):f,h=oh(v.pathname||"/",r);if(h==null)return null;let b=ch(u);i0(b);let C=null;for(let E=0;C==null&&E{let E={relativePath:C===void 0?h.path||"":C,caseSensitive:h.caseSensitive===!0,childrenIndex:b,route:h};E.relativePath.startsWith("/")&&(Vt(E.relativePath.startsWith(s),'Absolute route path "'+E.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),E.relativePath=E.relativePath.slice(s.length));let m=kl([s,E.relativePath]),_=r.concat(E);h.children&&h.children.length>0&&(Vt(h.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+m+'".')),ch(h.children,f,_,m)),!(h.path==null&&!h.index)&&f.push({path:m,score:d0(m,h.index),routesMeta:_})};return u.forEach((h,b)=>{var C;if(h.path===""||!((C=h.path)!=null&&C.includes("?")))v(h,b);else for(let E of sh(h.path))v(h,b,E)}),f}function sh(u){let f=u.split("/");if(f.length===0)return[];let[r,...s]=f,v=r.endsWith("?"),h=r.replace(/\?$/,"");if(s.length===0)return v?[h,""]:[h];let b=sh(s.join("/")),C=[];return C.push(...b.map(E=>E===""?h:[h,E].join("/"))),v&&C.push(...b),C.map(E=>u.startsWith("/")&&E===""?"/":E)}function i0(u){u.sort((f,r)=>f.score!==r.score?r.score-f.score:h0(f.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}const u0=/^:[\w-]+$/,c0=3,s0=2,o0=1,f0=10,r0=-2,Wd=u=>u==="*";function d0(u,f){let r=u.split("/"),s=r.length;return r.some(Wd)&&(s+=r0),f&&(s+=s0),r.filter(v=>!Wd(v)).reduce((v,h)=>v+(u0.test(h)?c0:h===""?o0:f0),s)}function h0(u,f){return u.length===f.length&&u.slice(0,-1).every((s,v)=>s===f[v])?u[u.length-1]-f[f.length-1]:0}function m0(u,f,r){let{routesMeta:s}=u,v={},h="/",b=[];for(let C=0;C{let{paramName:O,isOptional:q}=_;if(O==="*"){let L=C[p]||"";b=h.slice(0,h.length-L.length).replace(/(.)\/+$/,"$1")}const Y=C[p];return q&&!Y?m[O]=void 0:m[O]=(Y||"").replace(/%2F/g,"/"),m},{}),pathname:h,pathnameBase:b,pattern:u}}function g0(u,f,r){f===void 0&&(f=!1),r===void 0&&(r=!0),ih(u==="*"||!u.endsWith("*")||u.endsWith("/*"),'Route path "'+u+'" will be treated as if it were '+('"'+u.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+u.replace(/\*$/,"/*")+'".'));let s=[],v="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(b,C,E)=>(s.push({paramName:C,isOptional:E!=null}),E?"/?([^\\/]+)?":"/([^\\/]+)"));return u.endsWith("*")?(s.push({paramName:"*"}),v+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?v+="\\/*$":u!==""&&u!=="/"&&(v+="(?:(?=\\/|$))"),[new RegExp(v,f?void 0:"i"),s]}function y0(u){try{return u.split("/").map(f=>decodeURIComponent(f).replace(/\//g,"%2F")).join("/")}catch(f){return ih(!1,'The URL path "'+u+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+f+").")),u}}function oh(u,f){if(f==="/")return u;if(!u.toLowerCase().startsWith(f.toLowerCase()))return null;let r=f.endsWith("/")?f.length-1:f.length,s=u.charAt(r);return s&&s!=="/"?null:u.slice(r)||"/"}function b0(u,f){f===void 0&&(f="/");let{pathname:r,search:s="",hash:v=""}=typeof u=="string"?Ba(u):u;return{pathname:r?r.startsWith("/")?r:p0(r,f):f,search:E0(s),hash:x0(v)}}function p0(u,f){let r=f.replace(/\/+$/,"").split("/");return u.split("/").forEach(v=>{v===".."?r.length>1&&r.pop():v!=="."&&r.push(v)}),r.length>1?r.join("/"):"/"}function Cs(u,f,r,s){return"Cannot include a '"+u+"' character in a manually specified "+("`to."+f+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function S0(u){return u.filter((f,r)=>r===0||f.route.path&&f.route.path.length>0)}function fh(u,f){let r=S0(u);return f?r.map((s,v)=>v===r.length-1?s.pathname:s.pathnameBase):r.map(s=>s.pathnameBase)}function rh(u,f,r,s){s===void 0&&(s=!1);let v;typeof u=="string"?v=Ba(u):(v=Hn({},u),Vt(!v.pathname||!v.pathname.includes("?"),Cs("?","pathname","search",v)),Vt(!v.pathname||!v.pathname.includes("#"),Cs("#","pathname","hash",v)),Vt(!v.search||!v.search.includes("#"),Cs("#","search","hash",v)));let h=u===""||v.pathname==="",b=h?"/":v.pathname,C;if(b==null)C=r;else{let p=f.length-1;if(!s&&b.startsWith("..")){let O=b.split("/");for(;O[0]==="..";)O.shift(),p-=1;v.pathname=O.join("/")}C=p>=0?f[p]:"/"}let E=b0(v,C),m=b&&b!=="/"&&b.endsWith("/"),_=(h||b===".")&&r.endsWith("/");return!E.pathname.endsWith("/")&&(m||_)&&(E.pathname+="/"),E}const kl=u=>u.join("/").replace(/\/\/+/g,"/"),T0=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),E0=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,x0=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u;function A0(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}const dh=["post","put","patch","delete"];new Set(dh);const D0=["get",...dh];new Set(D0);/** * 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 Ln(){return Ln=Object.assign?Object.assign.bind():function(u){for(var f=1;f{C.current=!0}),B.useCallback(function(m,_){if(_===void 0&&(_={}),!C.current)return;if(typeof m=="number"){s.go(m);return}let p=rh(m,JSON.parse(b),h,_.relative==="path");u==null&&f!=="/"&&(p.pathname=p.pathname==="/"?f:kl([f,p.pathname])),(_.replace?s.replace:s.push)(p,_.state,_)},[f,s,b,h,u])}function j0(u,f){return z0(u,f)}function z0(u,f,r,s){qn()||Vt(!1);let{navigator:v}=B.useContext(Yn),{matches:h}=B.useContext(Fl),b=h[h.length-1],C=b?b.params:{};b&&b.pathname;let E=b?b.pathnameBase:"/";b&&b.route;let m=Gn(),_;if(f){var p;let R=typeof f=="string"?Ba(f):f;E==="/"||(p=R.pathname)!=null&&p.startsWith(E)||Vt(!1),_=R}else _=m;let O=_.pathname||"/",q=O;if(E!=="/"){let R=E.replace(/^\//,"").split("/");q="/"+O.replace(/^\//,"").split("/").slice(R.length).join("/")}let Y=a0(u,{pathname:q}),L=R0(Y&&Y.map(R=>Object.assign({},R,{params:Object.assign({},C,R.params),pathname:kl([E,v.encodeLocation?v.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?E:kl([E,v.encodeLocation?v.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),h,r,s);return f&&L?B.createElement(cu.Provider,{value:{location:Ln({pathname:"/",search:"",hash:"",state:null,key:"default"},_),navigationType:jl.Pop}},L):L}function M0(){let u=L0(),f=A0(u)?u.status+" "+u.statusText:u instanceof Error?u.message:JSON.stringify(u),r=u instanceof Error?u.stack:null,v={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return B.createElement(B.Fragment,null,B.createElement("h2",null,"Unexpected Application Error!"),B.createElement("h3",{style:{fontStyle:"italic"}},f),r?B.createElement("pre",{style:v},r):null,null)}const _0=B.createElement(M0,null);class O0 extends B.Component{constructor(f){super(f),this.state={location:f.location,revalidation:f.revalidation,error:f.error}}static getDerivedStateFromError(f){return{error:f}}static getDerivedStateFromProps(f,r){return r.location!==f.location||r.revalidation!=="idle"&&f.revalidation==="idle"?{error:f.error,location:f.location,revalidation:f.revalidation}:{error:f.error!==void 0?f.error:r.error,location:r.location,revalidation:f.revalidation||r.revalidation}}componentDidCatch(f,r){console.error("React Router caught the following error during render",f,r)}render(){return this.state.error!==void 0?B.createElement(Fl.Provider,{value:this.props.routeContext},B.createElement(hh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function U0(u){let{routeContext:f,match:r,children:s}=u,v=B.useContext(Bs);return v&&v.static&&v.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(v.staticContext._deepestRenderedBoundaryId=r.route.id),B.createElement(Fl.Provider,{value:f},s)}function R0(u,f,r,s){var v;if(f===void 0&&(f=[]),r===void 0&&(r=null),s===void 0&&(s=null),u==null){var h;if(!r)return null;if(r.errors)u=r.matches;else if((h=s)!=null&&h.v7_partialHydration&&f.length===0&&!r.initialized&&r.matches.length>0)u=r.matches;else return null}let b=u,C=(v=r)==null?void 0:v.errors;if(C!=null){let _=b.findIndex(p=>p.route.id&&C?.[p.route.id]!==void 0);_>=0||Vt(!1),b=b.slice(0,Math.min(b.length,_+1))}let E=!1,m=-1;if(r&&s&&s.v7_partialHydration)for(let _=0;_=0?b=b.slice(0,m+1):b=[b[0]];break}}}return b.reduceRight((_,p,O)=>{let q,Y=!1,L=null,R=null;r&&(q=C&&p.route.id?C[p.route.id]:void 0,L=p.route.errorElement||_0,E&&(m<0&&O===0?(q0("route-fallback"),Y=!0,R=null):m===O&&(Y=!0,R=p.route.hydrateFallbackElement||null)));let Q=f.concat(b.slice(0,O+1)),$=()=>{let I;return q?I=L:Y?I=R:p.route.Component?I=B.createElement(p.route.Component,null):p.route.element?I=p.route.element:I=_,B.createElement(U0,{match:p,routeContext:{outlet:_,matches:Q,isDataRoute:r!=null},children:I})};return r&&(p.route.ErrorBoundary||p.route.errorElement||O===0)?B.createElement(O0,{location:r.location,revalidation:r.revalidation,component:L,error:q,children:$(),routeContext:{outlet:null,matches:Q,isDataRoute:!0}}):$()},null)}var gh=(function(u){return u.UseBlocker="useBlocker",u.UseRevalidator="useRevalidator",u.UseNavigateStable="useNavigate",u})(gh||{}),yh=(function(u){return u.UseBlocker="useBlocker",u.UseLoaderData="useLoaderData",u.UseActionData="useActionData",u.UseRouteError="useRouteError",u.UseNavigation="useNavigation",u.UseRouteLoaderData="useRouteLoaderData",u.UseMatches="useMatches",u.UseRevalidator="useRevalidator",u.UseNavigateStable="useNavigate",u.UseRouteId="useRouteId",u})(yh||{});function w0(u){let f=B.useContext(Bs);return f||Vt(!1),f}function B0(u){let f=B.useContext(N0);return f||Vt(!1),f}function H0(u){let f=B.useContext(Fl);return f||Vt(!1),f}function bh(u){let f=H0(),r=f.matches[f.matches.length-1];return r.route.id||Vt(!1),r.route.id}function L0(){var u;let f=B.useContext(hh),r=B0(),s=bh();return f!==void 0?f:(u=r.errors)==null?void 0:u[s]}function Y0(){let{router:u}=w0(gh.UseNavigateStable),f=bh(yh.UseNavigateStable),r=B.useRef(!1);return mh(()=>{r.current=!0}),B.useCallback(function(v,h){h===void 0&&(h={}),r.current&&(typeof v=="number"?u.navigate(v):u.navigate(v,Ln({fromRouteId:f},h)))},[u,f])}const Id={};function q0(u,f,r){Id[u]||(Id[u]=!0)}function G0(u,f){u?.v7_startTransition,u?.v7_relativeSplatPath}function X0(u){let{to:f,replace:r,state:s,relative:v}=u;qn()||Vt(!1);let{future:h,static:b}=B.useContext(Yn),{matches:C}=B.useContext(Fl),{pathname:E}=Gn(),m=vh(),_=rh(f,fh(C,h.v7_relativeSplatPath),E,v==="path"),p=JSON.stringify(_);return B.useEffect(()=>m(JSON.parse(p),{replace:r,state:s,relative:v}),[m,p,v,r,s]),null}function _s(u){Vt(!1)}function Q0(u){let{basename:f="/",children:r=null,location:s,navigationType:v=jl.Pop,navigator:h,static:b=!1,future:C}=u;qn()&&Vt(!1);let E=f.replace(/^\/*/,"/"),m=B.useMemo(()=>({basename:E,navigator:h,static:b,future:Ln({v7_relativeSplatPath:!1},C)}),[E,C,h,b]);typeof s=="string"&&(s=Ba(s));let{pathname:_="/",search:p="",hash:O="",state:q=null,key:Y="default"}=s,L=B.useMemo(()=>{let R=oh(_,E);return R==null?null:{location:{pathname:R,search:p,hash:O,state:q,key:Y},navigationType:v}},[E,_,p,O,q,Y,v]);return L==null?null:B.createElement(Yn.Provider,{value:m},B.createElement(cu.Provider,{children:r,value:L}))}function V0(u){let{children:f,location:r}=u;return j0(Os(f),r)}new Promise(()=>{});function Os(u,f){f===void 0&&(f=[]);let r=[];return B.Children.forEach(u,(s,v)=>{if(!B.isValidElement(s))return;let h=[...f,v];if(s.type===B.Fragment){r.push.apply(r,Os(s.props.children,h));return}s.type!==_s&&Vt(!1),!s.props.index||!s.props.children||Vt(!1);let b={id:s.props.id||h.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(b.children=Os(s.props.children,h)),r.push(b)}),r}/** * 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 Us(u){return u===void 0&&(u=""),new URLSearchParams(typeof u=="string"||Array.isArray(u)||u instanceof URLSearchParams?u:Object.keys(u).reduce((f,r)=>{let s=u[r];return f.concat(Array.isArray(s)?s.map(v=>[r,v]):[[r,s]])},[]))}function Z0(u,f){let r=Us(u);return f&&f.forEach((s,v)=>{r.has(v)||f.getAll(v).forEach(h=>{r.append(v,h)})}),r}const K0="6";try{window.__reactRouterVersion=K0}catch{}const J0="startTransition",Pd=Jv[J0];function k0(u){let{basename:f,children:r,future:s,window:v}=u,h=B.useRef();h.current==null&&(h.current=t0({window:v,v5Compat:!0}));let b=h.current,[C,E]=B.useState({action:b.action,location:b.location}),{v7_startTransition:m}=s||{},_=B.useCallback(p=>{m&&Pd?Pd(()=>E(p)):E(p)},[E,m]);return B.useLayoutEffect(()=>b.listen(_),[b,_]),B.useEffect(()=>G0(s),[s]),B.createElement(Q0,{basename:f,children:r,location:C.location,navigationType:C.action,navigator:b,future:s})}var th;(function(u){u.UseScrollRestoration="useScrollRestoration",u.UseSubmit="useSubmit",u.UseSubmitFetcher="useSubmitFetcher",u.UseFetcher="useFetcher",u.useViewTransitionState="useViewTransitionState"})(th||(th={}));var eh;(function(u){u.UseFetcher="useFetcher",u.UseFetchers="useFetchers",u.UseScrollRestoration="useScrollRestoration"})(eh||(eh={}));function F0(u){let f=B.useRef(Us(u)),r=B.useRef(!1),s=Gn(),v=B.useMemo(()=>Z0(s.search,r.current?null:f.current),[s.search]),h=vh(),b=B.useCallback((C,E)=>{const m=Us(typeof C=="function"?C(v):C);r.current=!0,h("?"+m,E)},[h,v]);return[v,b]}const $0=()=>d.jsx("div",{className:"areaheading dynamic-price-container my-5","data-component-id":"60bf9066c3eebdbf5a6e3f039c9b54ab",children:d.jsx("div",{id:"areaheading-uid4713","data-componentname":"areaheading-uid4713",className:"area-heading","data-automation-test-id":"Areaheading-areaheading-uid4713",children:d.jsx("div",{className:"row",children:d.jsx("div",{className:"col-12 col-md-8","data-automation-test-id":"AreaheadingHeadingText-areaheading-uid4713",children:d.jsx("h2",{"data-automation-test-id":"heading-areaheading-uid4713",className:"component-heading",id:"heading-areaheading-uid4713",children:"Resources"})})})})}),W0=()=>d.jsx("div",{className:"content-card aem-GridColumn aem-GridColumn--default--12 mb-5","data-component-id":"e4caa97101f9f7cf8317c819b353e6ed",children:d.jsxs("div",{className:"row row-cols-1 row-cols-md-3 ",children:[d.jsx("div",{className:"col mb-5 mb-md-0",style:{cursor:"pointer"},"clickgroup-telemetry-enabled":!0,children:d.jsxs("div",{className:"card material-card h-100 ","data-target-uri":"https://marketingassets.microsoft.com/gdc/gdciQrVYO/original","data-bi-ecn":"Download the AI Toolkit","data-bi-ct":"Content Card","data-bi-pa":"body","data-bi-ehn":"Get the toolkit","data-bi-bhvr":"0","data-bi-hn":"Get the toolkit","data-bi-compnm":"Content card vertical 3 up - depth","data-bi-cn":"Download the AI Toolkit",children:[d.jsxs("div",{className:"card-body px-4 pt-4",children:[d.jsx("h3",{className:"component-heading h5",children:"Get the toolkit"}),d.jsx("div",{children:"Get the tools you need to adopt AI in education successfully."})]}),d.jsx("div",{className:"card-footer pt-3 px-4 pb-4",children:d.jsx("div",{className:"link-group","data-automation-test-id":"LinkGroupDiv-",children:d.jsxs("a",{"data-bi-cn":" Download the AI Toolkit","data-bi-ecn":"Download the AI Toolkit","data-bi-ct":"cta","data-bi-pa":"body",className:"cta","data-target-uri":"https://marketingassets.microsoft.com/gdc/gdciQrVYO/original","data-bi-bhvr":"0","data-automation-test-id":"cta1-","data-bi-ehn":"Get the toolkit","data-bi-hn":"Get the toolkit","data-bi-compnm":"Content card vertical 3 up - depth","data-original-text":" Download the AI Toolkit",role:" ","aria-label":"Download the AI Toolkit PDF, opens in new tab",target:"_blank",href:"https://marketingassets.microsoft.com/gdc/gdciQrVYO/original",rel:"noopener noreferrer",children:["Download the AI Toolkit",d.jsx("span",{className:"glyph"})]})})})]})}),d.jsx("div",{className:"col mb-5 mb-md-0",style:{cursor:"pointer"},children:d.jsxs("div",{className:"card material-card h-100 ","data-target-uri":"http://approjects.co.za/?big=en-us/ai/use-case?filters=industry%3Aeducation#Solutions","data-bi-ecn":"Get inspired","data-bi-ct":"Content Card","data-bi-pa":"body","data-bi-ehn":"Get inspired","data-bi-bhvr":"0","data-bi-hn":"Get inspired","data-bi-compnm":"Content card vertical 3 up - depth","data-bi-cn":"Get inspired",children:[d.jsxs("div",{className:"card-body px-4 pt-4",children:[d.jsx("h3",{className:"component-heading h5",children:"Get inspired"}),d.jsx("div",{children:"Explore our most compelling AI use cases in education."})]}),d.jsx("div",{className:"card-footer pt-3 px-4 pb-4",children:d.jsx("div",{className:"link-group","data-automation-test-id":"LinkGroupDiv-",children:d.jsxs("a",{"data-bi-cn":"Get inspired","data-bi-ecn":"Get inspired","data-bi-ct":"cta","data-bi-pa":"body",className:"cta","data-target-uri":"http://approjects.co.za/?big=en-us/ai/use-case?filters=industry%3Aeducation#Solutions","data-bi-bhvr":"0","data-automation-test-id":"cta1-","data-bi-ehn":"Get inspired","data-bi-hn":"Get inspired","data-bi-compnm":"Content card vertical 3 up - depth","data-original-text":"Get inspired",role:" ","aria-label":"Get inspired, links to AI use cases in education webpage, opens in a new tab",target:"_blank",href:"http://approjects.co.za/?big=en-us/ai/use-case?filters=industry%3Aeducation#Solutions",rel:"noopener noreferrer",children:["Get inspired",d.jsx("span",{className:"glyph"})]})})})]})}),d.jsx("div",{className:`col \r \r `,style:{cursor:"pointer"},children:d.jsxs("div",{className:"card material-card h-100 ","data-target-uri":"https://info.microsoft.com/ww-landing-Education-Stay-Informed.html?lcid=en-us","data-bi-ecn":"Stay informed","data-bi-ct":"Content Card","data-bi-pa":"body","data-bi-ehn":"Stay informed","data-bi-bhvr":"0","data-bi-hn":"Stay informed","data-bi-compnm":"Content card vertical 3 up - depth","data-bi-cn":"Stay informed",children:[d.jsxs("div",{className:"card-body px-4 pt-4",children:[d.jsx("h3",{className:"component-heading h5 ",children:"Stay informed"}),d.jsx("div",{children:"Sign up to receive information and resources to help you to build a comprehensive AI adoption strategy."})]}),d.jsx("div",{className:"card-footer pt-3 px-4 pb-4",children:d.jsx("div",{className:"link-group","data-automation-test-id":"LinkGroupDiv-",children:d.jsxs("a",{"data-bi-cn":"Stay informed","data-bi-ecn":"Stay informed","data-bi-ct":"cta","data-bi-pa":"body",className:" cta ","data-target-uri":"https://info.microsoft.com/ww-landing-Education-Stay-Informed.html?lcid=en-us","data-bi-bhvr":"0","data-automation-test-id":"cta1-","data-bi-ehn":"Stay informed","data-bi-hn":"Stay informed","data-bi-compnm":"Content card vertical 3 up - depth","data-original-text":"Stay informed",role:" ","aria-label":"Stay informed, links to Stay Informed website, opens in a new tab",target:"_blank",href:"https://info.microsoft.com/ww-landing-Education-Stay-Informed.html?lcid=en-us",rel:"noopener noreferrer",children:["Stay informed",d.jsx("span",{className:"glyph"})]})})})]})})]})}),js=(u,f)=>u.filter(r=>f.includes(r)),I0=u=>{if(u==="Virtual"||u==="In-Person")return u},P0=u=>{if(u==="true")return!0;if(u==="false")return!1},lh=u=>{try{const f=new Date(u);if(!isNaN(f.getTime())&&f.getFullYear()>=1970&&f.getFullYear()<=2100)return f}catch{return}},tg=(u,f,r)=>{const[s,v]=F0(),h=B.useRef(!0),b=B.useRef(!1);B.useEffect(()=>{if(h.current){h.current=!1,b.current=!0;const C={},E=s.get("regions");if(E&&r.regionName){const R=E.split(","),Q=js(R,r.regionName);Q.length>0&&(C.regions=Q)}const m=s.get("category");if(m&&r.category){const R=m.split(","),Q=js(R,r.category);Q.length>0&&(C.category=Q)}const _=s.get("jobFunctions");if(_&&r.jobFunctions){const R=_.split(","),Q=js(R,r.jobFunctions);Q.length>0&&(C.jobFunctions=Q)}const p=s.get("location");if(p){const R=I0(p);R&&(C.location=R)}const O=s.get("isFeaturedEvent");if(O){const R=P0(O);R!==void 0&&(C.isFeaturedEvent=R)}const q=s.get("focusArea");q&&r.focusArea&&r.focusArea.includes(q)&&(C.focusArea=q);const Y=s.get("minDate"),L=s.get("maxDate");if(Y&&L){const R=lh(Y),Q=lh(L);R&&Q&&R<=Q&&(C.date={minDate:R,maxDate:Q})}Object.keys(C).length>0&&f(C),b.current=!1}},[]),B.useEffect(()=>{if(b.current)return;const C=new URLSearchParams(s);["regions","category","jobFunctions","location","isFeaturedEvent","focusArea","minDate","maxDate"].forEach(m=>C.delete(m)),u.regions&&u.regions.length>0&&C.set("regions",u.regions.join(",")),u.category&&u.category.length>0&&C.set("category",u.category.join(",")),u.jobFunctions&&u.jobFunctions.length>0&&C.set("jobFunctions",u.jobFunctions.join(",")),u.location&&C.set("location",u.location),u.isFeaturedEvent!==void 0&&C.set("isFeaturedEvent",u.isFeaturedEvent.toString()),u.focusArea&&C.set("focusArea",u.focusArea),u.date&&(C.set("minDate",u.date.minDate.toISOString()),C.set("maxDate",u.date.maxDate.toISOString())),v(C,{replace:!0})},[u,v,s])},Bn=u=>{if(!u||u.trim()==="")return null;if(/^\d{4}-\d{2}-\d{2}$/.test(u)){const s=new Date(u);if(!isNaN(s.getTime()))return s}const r=new Date(u);return isNaN(r.getTime())?null:r},Rs=B.createContext(null),eg=({children:u})=>{const[f,r]=B.useState([]),[s,v]=B.useState(void 0),[h,b]=B.useState({}),[C,E]=B.useState(6),[m,_]=B.useState(!0);B.useEffect(()=>{let ut=!0;return(async()=>{try{_(!0);const Nt=await fetch("/en-us/education-events/api/getEvents");if(!Nt.ok)throw new Error(`Failed to fetch events: ${Nt.status}`);const k=await Nt.json();ut&&(r(k.events||[]),v(k.filterOptions))}catch(Nt){console.error("Error fetching events from API:",Nt),ut&&(r([]),v(void 0))}finally{ut&&_(!1)}})(),()=>{ut=!1}},[]);const p=new Date,O=f.filter(ut=>ut.isoDateTimeUTC?new Date(ut.isoDateTimeUTC)>=p:!1),{minDate:q,maxDate:Y}=O.reduce((ut,bt)=>{if(!bt.isoDateTimeUTC)return ut;const Nt=new Date(bt.isoDateTimeUTC);return{minDate:Ntut.maxDate?Nt:ut.maxDate}},{minDate:new Date(O[0]?.isoDateTimeUTC||p),maxDate:new Date(O[0]?.isoDateTimeUTC||p)}),L=new Date(q);L.setUTCDate(1),L.setUTCHours(0,0,0,0);const R=new Date(Y);R.setUTCMonth(R.getUTCMonth()+1,0),R.setUTCHours(23,59,59,999),tg(h,b,{...s||{}});const Q=B.useMemo(()=>{const ut=new Date,bt=f.filter(k=>{if(!k.isVisible)return!1;const tt=!k.date||k.date==="On-demand",jt=!tt&&!k.isoDateTimeUTC;if(jt){const j=Bn(k.date);if(j&&!isNaN(j.getTime())&&(j.setHours(23,59,59,999),j{if(!h.searchText)return!0;const j=h.searchText.toLowerCase();if(tt)return(k.title||"").toLowerCase().includes(j)||(k.date||"").toLowerCase().includes(j);if(jt)return(k.title||"").toLowerCase().includes(j)||k.date.toLowerCase().includes(j)||"all day".includes(j);const G=new Date(k.isoDateTimeUTC),Z=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"numeric"}).format(G).toLowerCase(),P=new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}).format(G).toLowerCase();return(k.title||"").toLowerCase().includes(j)||Z.includes(j)||P.includes(j)||k.date.toLowerCase().includes(j)||k.time&&k.time.toLowerCase().includes(j)})(),V=k.regionName.some(j=>h.regions?.length?h.regions?.includes(j):!0),x=k.category.some(j=>h.category?.length?h.category?.includes(j):!0),H=k.jobFunctions.some(j=>h.jobFunctions?.length?h.jobFunctions.includes(j):!0),X=(()=>{if(!h.date||tt)return!0;if(jt){const ll=Bn(k.date);if(!ll||isNaN(ll.getTime()))return!0;const Xn=ll.getFullYear(),He=ll.getMonth(),Ha=h.date.minDate.getUTCFullYear(),La=h.date.minDate.getUTCMonth(),su=h.date.maxDate.getUTCFullYear(),Qn=h.date.maxDate.getUTCMonth(),Wl=Xn*100+He,Ya=Ha*100+La,qa=su*100+Qn;return Wl>=Ya&&Wl<=qa}const j=new Date(k.isoDateTimeUTC),G=j.getUTCFullYear(),Z=j.getUTCMonth(),P=h.date.minDate.getUTCFullYear(),ct=h.date.minDate.getUTCMonth(),mt=h.date.maxDate.getUTCFullYear(),kt=h.date.maxDate.getUTCMonth(),_t=G*100+Z,zl=P*100+ct,$l=mt*100+kt;return _t>=zl&&_t<=$l})(),et=h.isFeaturedEvent===void 0?!0:k.isFeaturedEvent===h.isFeaturedEvent,St=h.location?h.location==="On-demand"?!k.date||k.date==="On-demand":k.location===h.location:!0,S=h.focusArea?k.focusArea===h.focusArea:!0;return Yt&&V&&x&&H&&X&&et&&St&&S}),Nt=h.sortBy||"date-asc";return Nt==="date-asc"||Nt==="date-desc"?bt.sort((k,tt)=>{const jt=!k.date||k.date==="On-demand",Yt=!tt.date||tt.date==="On-demand";if(k.isFeaturedEvent&&!tt.isFeaturedEvent)return-1;if(!k.isFeaturedEvent&&tt.isFeaturedEvent)return 1;if(k.isFeaturedEvent&&tt.isFeaturedEvent){if(jt&&!Yt)return 1;if(!jt&&Yt)return-1}if(!k.isFeaturedEvent&&!tt.isFeaturedEvent){if(jt&&!Yt)return 1;if(!jt&&Yt)return-1}if(jt&&Yt)return(k.title||"").localeCompare(tt.title||"");const V=!jt&&!k.isoDateTimeUTC,x=!Yt&&!tt.isoDateTimeUTC;let H,X;if(V){const et=Bn(k.date);H=et&&!isNaN(et.getTime())?et.getTime():0}else H=new Date(k.isoDateTimeUTC).getTime();if(x){const et=Bn(tt.date);X=et&&!isNaN(et.getTime())?et.getTime():0}else X=new Date(tt.isoDateTimeUTC).getTime();if(H===X){if(V&&!x)return 1;if(!V&&x)return-1}return Nt==="date-asc"?H-X:X-H}):Nt==="name"?bt.sort((k,tt)=>k.title.localeCompare(tt.title)):bt},[f,h]),$=B.useMemo(()=>{const ut=new Date;return f.filter(bt=>{if(!bt.isVisible)return!1;if(!(!bt.date||bt.date==="On-demand")&&!bt.isoDateTimeUTC){const tt=Bn(bt.date);if(tt&&!isNaN(tt.getTime())&&(tt.setHours(23,59,59,999),ttI.slice(0,C),[I,C]),Bt=C{E(ut=>Math.min(ut+6,pt))};return d.jsx(Rs.Provider,{value:{filters:h,setFilters:b,filterOption:{...s||{},date:{minDate:L,maxDate:R}},filteredEvents:wt,allFilteredEvents:I,baseEvents:$,visibleCount:C,totalCount:pt,loadMore:at,haAlpha XR:Bt,isLoading:m},children:u})},pe=()=>{if(Rs==null)throw new Error("Not wrapped in provider");return B.useContext(Rs)},lg=()=>{const u=pe(),f=u?.filters.category,r=!f||f.length===0,v=["All",...u?.filterOption?.category||[]];return d.jsx("div",{children:v.map(h=>d.jsx("div",{className:"filter-option-item",children:d.jsxs("label",{htmlFor:h,className:"filter-option-label",children:[d.jsx("input",{"aria-label":h==="All"?"Check the box to show all topics":`Check the box to show filter topic by ${h}`,"data-bi-cN":h==="All"?"All Solution Topics":h,"data-bi-ecn":h==="All"?"All Solution Topics":h,"data-bi-hn":"Solution Topic","data-bi-ehn":"Solution Topic","data-bi-aN":"Filter Section","data-bi-cT":"checkboxfilter","data-bi-bhvr":h==="All"?r?"checkboxfilter_on":"checkboxfilter_off":f?.includes(h)?"checkboxfilter_on":"checkboxfilter_off",type:"checkbox",id:h,name:"category",value:h,checked:h==="All"?r:f?.includes(h),onChange:()=>{h==="All"?u?.setFilters(b=>({...b,category:[]})):u?.setFilters(b=>{if(b.category?.includes(h)){const C=b.category?.filter(E=>E!==h);return{...b,category:C}}return{...b,category:[...b.category||[],h]}})}}),d.jsx("span",{className:"filter-option-text",children:h})]})},h))})},ag=({minDate:u,maxDate:f,onChange:r,initialMinSelected:s,initialMaxSelected:v,hasEvents:h=!0})=>{const b=B.useRef(null),[C,E]=B.useState(!1),[m,_]=B.useState(!1),p=(V,x)=>(x.getUTCFullYear()-V.getUTCFullYear())*12+(x.getUTCMonth()-V.getUTCMonth()),O=p(u,f),q=O===0,[Y,L]=B.useState(()=>s?p(u,s):0),[R,Q]=B.useState(()=>v?p(u,v):O);B.useEffect(()=>{if(s){const V=p(u,s);V!==Y&&L(V)}},[s,u]),B.useEffect(()=>{if(v){const V=p(u,v);V!==R&&Q(V)}},[v,u]);const $=(V,x=!1)=>{const H=new Date(u);return x?(H.setUTCMonth(H.getUTCMonth()+V+1),H.setUTCDate(0),H.setUTCHours(23,59,59,999)):(H.setUTCMonth(H.getUTCMonth()+V),H.setUTCDate(1),H.setUTCHours(0,0,0,0)),H},I=V=>`${["January","February","March","April","May","June","July","August","September","October","November","December"][V.getUTCMonth()]} ${V.getUTCFullYear()}`,pt=V=>{if(!b.current)return 0;const x=b.current.getBoundingClientRect();let X=(("touches"in V?V.touches[0].clientX:V.clientX)-x.left)/x.width;return X=Math.max(0,Math.min(1,X)),Math.round(X*O)},wt=V=>{q||(V.preventDefault(),E(!0))},Bt=V=>{q||(V.preventDefault(),_(!0))},at=V=>{if(q)return;let x=Y;V.key==="ArrowLeft"||V.key==="ArrowDown"?(V.preventDefault(),x=Math.max(0,Y-1)):V.key==="ArrowRight"||V.key==="ArrowUp"?(V.preventDefault(),x=Math.min(R,Y+1)):V.key==="Home"?(V.preventDefault(),x=0):V.key==="End"&&(V.preventDefault(),x=R),x!==Y&&(L(x),r($(x,!1),$(R,!0)))},ut=V=>{if(q)return;let x=R;V.key==="ArrowLeft"||V.key==="ArrowDown"?(V.preventDefault(),x=Math.max(Y,R-1)):V.key==="ArrowRight"||V.key==="ArrowUp"?(V.preventDefault(),x=Math.min(O,R+1)):V.key==="Home"?(V.preventDefault(),x=Y):V.key==="End"&&(V.preventDefault(),x=O),x!==R&&(Q(x),r($(Y,!1),$(x,!0)))},bt=V=>{if(q)return;const x=pt(V),H=Math.abs(x-Y),X=Math.abs(x-R);if(H{const V=H=>{if(!C&&!m)return;const X=pt(H);C?X>R?(L(R),Q(X),E(!1),_(!0),r($(R,!1),$(X,!0))):(L(X),r($(X,!1),$(R,!0))):m&&(X{E(!1),_(!1)};if(C||m)return document.addEventListener("mousemove",V),document.addEventListener("mouseup",x),document.addEventListener("touchmove",V),document.addEventListener("touchend",x),()=>{document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",V),document.removeEventListener("touchend",x)}},[C,m,Y,R,O,q]);const Nt=q?0:Y/O*100,k=q?100:R/O*100,tt=Y===R,jt=I($(Y)),Yt=I($(R));return d.jsxs("div",{style:{width:"100%",padding:"0"},children:[d.jsx("div",{style:{fontSize:"14px",color:"#333",marginBottom:"16px",fontWeight:"400"},children:"Select a range of dates"}),d.jsxs("div",{ref:b,onClick:bt,style:{position:"relative",height:"6px",backgroundColor:"#e5e7eb",borderRadius:"3px",cursor:q?"not-allowed":"pointer",marginBottom:"16px",opacity:1},children:[d.jsx("div",{style:{position:"absolute",left:`${Nt}%`,width:`${k-Nt}%`,height:"100%",backgroundColor:"#005597",borderRadius:"3px"}}),d.jsx("div",{className:"slider-handle",role:"slider","aria-label":"Minimum date","aria-valuemin":0,"aria-valuemax":O,"aria-valuenow":Y,"aria-valuetext":I($(Y)),tabIndex:q?-1:0,onMouseDown:wt,onTouchStart:wt,onKeyDown:at,"data-bi-cN":"Start Date","data-bi-ecn":"Start Date","data-bi-hn":"Date Range Slicer","data-bi-ehn":"Date Range Slicer","data-bi-aN":"Filter Section","data-bi-cT":"dateslicer","data-bi-bhvr":I($(Y)),style:{left:`${Nt}%`,zIndex:C?3:2,cursor:q?"not-allowed":"grab",opacity:1}}),d.jsx("div",{className:"slider-handle",role:"slider","aria-label":"Maximum date","aria-valuemin":0,"aria-valuemax":O,"aria-valuenow":R,"aria-valuetext":I($(R)),tabIndex:q?-1:0,onMouseDown:Bt,onTouchStart:Bt,onKeyDown:ut,"data-bi-cN":"End Date","data-bi-ecn":"End Date","data-bi-hn":"Date Range Slicer","data-bi-ehn":"Date Range Slicer","data-bi-aN":"Filter Section","data-bi-cT":"dateslicer","data-bi-bhvr":I($(R)),style:{left:`${k}%`,zIndex:m?3:2,cursor:q?"not-allowed":"grab",opacity:1}})]}),h&&d.jsx("div",{style:{display:"flex",justifyContent:tt?"center":"space-between",gap:"8px"},children:tt?d.jsx("span",{style:{fontSize:"12px",color:"#4B6388",fontWeight:"500",backgroundColor:"#e6f2ff",padding:"4px 4px",borderRadius:"6px",whiteSpace:"nowrap"},children:jt}):d.jsxs(d.Fragment,{children:[d.jsx("span",{style:{fontSize:"12px",color:"#4B6388",fontWeight:"500",backgroundColor:"#e6f2ff",padding:"4px 4px",borderRadius:"6px",whiteSpace:"nowrap"},children:jt}),d.jsx("span",{style:{fontSize:"12px",color:"#4B6388",fontWeight:"500",backgroundColor:"#e6f2ff",padding:"4px 4px",borderRadius:"6px",whiteSpace:"nowrap"},children:Yt})]})}),!h&&q&&d.jsx("div",{style:{fontSize:"13px",color:"#605e5c",textAlign:"center",marginTop:"12px",fontStyle:"italic"},children:"No Events"})]})},ng=()=>{const u=pe(),f=u?.filterOption?.date?.minDate||new Date,r=u?.filterOption?.date?.maxDate||new Date,s=u?.baseEvents.some(C=>C.isoDateTimeUTC)||!1,v=u?.filters.date?.minDate||f,h=u?.filters.date?.maxDate||r,b=(C,E)=>{C.getTime()===f.getTime()&&E.getTime()===r.getTime()?u?.setFilters(m=>{const{date:_,...p}=m;return p}):u?.setFilters(m=>({...m,date:{minDate:C,maxDate:E}}))};return d.jsx("div",{style:{width:"100%",padding:"12px"},children:d.jsx(ag,{minDate:f,maxDate:r,onChange:b,initialMinSelected:v,initialMaxSelected:h,hasEvents:s})})},ig=()=>{const u=pe(),f=u?.filters.isFeaturedEvent,r=()=>{u?.setFilters(s=>{if(s.isFeaturedEvent===!0){const{isFeaturedEvent:v,...h}=s;return h}else return{...s,isFeaturedEvent:!0}})};return d.jsxs("div",{className:"featured-event-container",children:[d.jsx("span",{className:"featured-event-label",children:"Show Featured Events only"}),d.jsxs("label",{className:"toggle-switch",children:[d.jsx("input",{type:"checkbox",checked:f===!0,onChange:r}),d.jsx("span",{className:"toggle-slider"})]})]})},ug=()=>{const u=pe(),f=u?.filters.jobFunctions,r=!f||f.length===0,v=["All",...u?.filterOption?.jobFunctions||[]];return d.jsx("div",{children:v.map(h=>d.jsx("div",{className:"filter-option-item",children:d.jsxs("label",{htmlFor:h,className:"filter-option-label",children:[d.jsx("input",{"aria-label":h==="All"?"Check the box to show all job functions":`Check the box to show filter job function by ${h}`,"data-bi-cN":h==="All"?"All Job Functions":h,"data-bi-ecn":h==="All"?"All Job Functions":h,"data-bi-hn":"Job Function","data-bi-ehn":"Job Function","data-bi-aN":"Filter Section","data-bi-cT":"checkboxfilter","data-bi-bhvr":h==="All"?r?"checkboxfilter_on":"checkboxfilter_off":f?.includes(h)?"checkboxfilter_on":"checkboxfilter_off",type:"checkbox",id:h,name:"jobFunctions",value:h,checked:h==="All"?r:f?.includes(h),onChange:()=>{h==="All"?u?.setFilters(b=>({...b,jobFunctions:[]})):u?.setFilters(b=>{if(b.jobFunctions?.includes(h)){const C=b.jobFunctions?.filter(E=>E!==h);return{...b,jobFunctions:C}}return{...b,jobFunctions:[...b.jobFunctions||[],h]}})}}),d.jsx("span",{className:"filter-option-text",children:h})]})},h))})},cg=()=>{const u=pe(),f=u?.filters.location,r=s=>{u?.setFilters(v=>{if(v.location===s){const{location:h,...b}=v;return b}else return{...v,location:s}})};return d.jsxs("div",{className:"location-container",children:[d.jsxs("div",{className:"location-toggle-item",children:[d.jsx("span",{className:"location-label",children:"Virtual"}),d.jsxs("label",{className:"toggle-switch",children:[d.jsx("input",{type:"checkbox",checked:f==="Virtual",onChange:()=>r("Virtual"),"aria-label":"Check the box to show all virtual events","data-bi-cN":"Virtual Event","data-bi-ecn":"Virtual Event","data-bi-hn":"Event Type","data-bi-ehn":"Event Type","data-bi-aN":"Filter Section","data-bi-cT":"checkboxfilter","data-bi-bhvr":f==="Virtual"?"toogle_on":"toogle_off"}),d.jsx("span",{className:"toggle-slider"})]})]}),d.jsxs("div",{className:"location-toggle-item",children:[d.jsx("span",{className:"location-label",children:"In-Person"}),d.jsxs("label",{className:"toggle-switch",children:[d.jsx("input",{type:"checkbox",checked:f==="In-Person",onChange:()=>r("In-Person"),"aria-label":"Check the box to show all In-person Events","data-bi-cN":"In-person Event","data-bi-ecn":"In-person Event","data-bi-hn":"Event Type","data-bi-ehn":"Event Type","data-bi-aN":"Filter Section","data-bi-cT":"checkboxfilter","data-bi-bhvr":f==="In-Person"?"toogle_on":"toogle_off"}),d.jsx("span",{className:"toggle-slider"})]})]})]})},sg=()=>{const u=pe(),f=u?.filters.regions,s=["All",...u?.filterOption?.regionName||[]],v=!f||f.length===0;return d.jsx("div",{children:s.map(h=>d.jsx("div",{className:"filter-option-item",children:d.jsxs("label",{htmlFor:h,className:"filter-option-label",children:[d.jsx("input",{"aria-label":h==="All"?"Check the box to show all regions":`Check the box to show filter region by ${h}`,"data-bi-cN":h==="All"?"All regions":h,"data-bi-ecn":h==="All"?"All regions":h,"data-bi-hn":"Region","data-bi-ehn":"Region","data-bi-aN":"Filter Section","data-bi-cT":"checkboxfilter","data-bi-bhvr":h==="All"?v?"checkboxfilter_on":"checkboxfilter_off":f?.includes(h)?"checkboxfilter_on":"checkboxfilter_off",type:"checkbox",id:h,name:"regions",value:h,checked:h==="All"?v:f?.includes(h),onChange:()=>{h==="All"?u?.setFilters(b=>({...b,regions:[]})):u?.setFilters(b=>{if(b.regions?.includes(h)){const C=b.regions?.filter(E=>E!==h);return{...b,regions:C}}return{...b,regions:[...b.regions||[],h]}})}}),d.jsx("span",{className:"filter-option-text",children:h})]})},h))})},og=()=>{const u=pe(),f=u?.filters.focusArea,s=["All",...u?.filterOption?.focusArea||[]],v=!f,h=(b,C)=>{const E=s;let m=C;if(b.key==="ArrowDown"||b.key==="ArrowRight")b.preventDefault(),m=(C+1)%E.length;else if(b.key==="ArrowUp"||b.key==="ArrowLeft")b.preventDefault(),m=(C-1+E.length)%E.length;else return;const _=E[m];_==="All"?u?.setFilters(p=>{const{focusArea:O,...q}=p;return q}):u?.setFilters(p=>({...p,focusArea:_})),setTimeout(()=>{document.querySelectorAll('input[name="focusArea"]')[m]?.focus()},0)};return d.jsx("div",{className:"focus-area-container",role:"radiogroup","aria-label":"Focus Area Filter",children:s.map((b,C)=>{const E=b==="All"?v:f===b;return d.jsx("div",{className:"focus-area-item",children:d.jsxs("label",{className:"focus-area-label",children:[d.jsx("input",{"aria-label":b==="All"?"Check the box to show all focus areas":`Check the box to show filter ${b}`,"data-bi-cN":b==="All"?"All Focus Areas":b,"data-bi-ecn":b==="All"?"All Focus Areas":b,"data-bi-hn":"Focus Area","data-bi-ehn":"Focus Area","data-bi-aN":"Filter Section","data-bi-cT":"checkboxfilter","data-bi-bhvr":b==="All"?v?"checkboxfilter_on":"checkboxfilter_off":s?.includes(b)?"checkboxfilter_on":"checkboxfilter_off",type:"radio",name:"focusArea",value:b,tabIndex:0,checked:E,onChange:()=>{b==="All"?u?.setFilters(m=>{const{focusArea:_,...p}=m;return p}):u?.setFilters(m=>({...m,focusArea:b}))},onKeyDown:m=>h(m,C)}),d.jsx("span",{className:"focus-area-text",children:b})]})},b)})})},fg=()=>{const u=pe(),[f,r]=B.useState(!1),[s,v]=B.useState(-1),h=B.useRef(null),b=u?.filters.searchText||"",C=u?.filteredEvents||[],m=(()=>{if(!b.trim())return[];const L=b.toLowerCase(),R=new Date;return C.filter(Q=>{const $=!Q.date||Q.date==="On-demand",I=!$&&!Q.isoDateTimeUTC;if(I){const at=new Date(Q.date);if(at.setHours(23,59,59,999),at{const L=R=>{h.current&&!h.current.contains(R.target)&&r(!1)};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[]);const _=L=>{u?.setFilters({...u.filters,searchText:L}),r(!0),v(-1)},p=L=>{u?.setFilters({...u.filters,searchText:L}),r(!1)},O=L=>{if(!(!f||m.length===0))switch(L.key){case"ArrowDown":L.preventDefault(),v(R=>RR>0?R-1:-1);break;case"Enter":L.preventDefault(),s>=0&&p(m[s].title);break;case"Escape":r(!1),v(-1);break}},q=()=>{u?.setFilters({...u.filters,searchText:""}),r(!1)},Y=(L,R)=>{if(!L.date||L.date==="On-demand")return"On-demand";if(!R)return`${L.date} • All day`;const Q=new Date(R),$=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(Q),I=new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}).format(Q);return`${$} • ${I}`};return d.jsxs("div",{className:"search-container",ref:h,children:[d.jsx("input",{type:"text",title:"Search events",placeholder:"Search events",className:"search-input",value:b,onChange:L=>_(L.target.value),onFocus:()=>r(!0),onKeyDown:O,"data-bi-cN":"Search by keyword","data-bi-ecn":"Search by keyword","data-bi-hn":"Search by keyword","data-bi-ehn":"Search by keyword","data-bi-aN":"Filter Section","data-bi-cT":"searchkeyword","data-bi-srchtype":"auto suggest","data-bi-srchq":b,"data-bi-asdisplayed":b,"data-bi-qrylngth":b,"data-bi-aslinkpos":b,"data-bi-srchlinkpos":b}),b?d.jsx("svg",{className:"search-icon clear-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",onClick:q,style:{cursor:"pointer"},children:d.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})}):d.jsx("svg",{className:"search-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:d.jsx("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"})}),f&&m.length>0&&d.jsx("div",{className:"search-suggestions",children:m.map((L,R)=>d.jsxs("div",{className:`suggestion-item ${R===s?"highlighted":""}`,onClick:()=>p(L.title),onMouseEnter:()=>v(R),children:[d.jsx("div",{className:"suggestion-title",children:L.title||"Untitled Event"}),d.jsx("div",{className:"suggestion-datetime",children:Y(L,L.isoDateTimeUTC)})]},L.id))}),f&&b&&m.length===0&&d.jsx("div",{className:"search-suggestions",children:d.jsx("div",{className:"suggestion-item no-results",children:"No events found"})})]})},rg=({isMobileFilterOpen:u})=>{const f=pe(),[r,s]=B.useState({featured:!1,region:!1,topic:!1,jobFunction:!1,eventDate:!1,eventType:!1,focusArea:!1}),[v,h]=B.useState({}),b=p=>{r[p]?(h(O=>({...O,[p]:!0})),setTimeout(()=>{s(O=>({...O,[p]:!1})),h(O=>({...O,[p]:!1}))},200)):s(O=>({...O,[p]:!0}))},C=()=>{f?.setFilters({searchText:"",regions:[],category:[],jobFunctions:[],location:void 0,isFeaturedEvent:void 0,focusArea:void 0,date:void 0,sortBy:"date-asc"})},E=(p,O)=>{const q=f?.filters;if(q)switch(p){case"regions":f?.setFilters({...q,regions:q.regions?.filter(Y=>Y!==O)});break;case"category":f?.setFilters({...q,category:q.category?.filter(Y=>Y!==O)});break;case"jobFunctions":f?.setFilters({...q,jobFunctions:q.jobFunctions?.filter(Y=>Y!==O)});break;case"location":f?.setFilters({...q,location:void 0});break;case"isFeaturedEvent":f?.setFilters({...q,isFeaturedEvent:void 0});break;case"focusArea":f?.setFilters({...q,focusArea:void 0});break;case"date":f?.setFilters({...q,date:void 0});break}},_=(()=>{const p=[],O=f?.filters;if(!O)return p;if(O.regions?.forEach(q=>{p.push({type:"regions",value:q,label:q})}),O.category?.forEach(q=>{p.push({type:"category",value:q,label:q})}),O.jobFunctions?.forEach(q=>{p.push({type:"jobFunctions",value:q,label:q})}),O.location&&p.push({type:"location",value:O.location,label:O.location}),O.isFeaturedEvent&&p.push({type:"isFeaturedEvent",value:"true",label:"Featured Events"}),O.focusArea&&p.push({type:"focusArea",value:O.focusArea,label:O.focusArea}),O.date){const q=O.date.minDate,Y=O.date.maxDate,L=pt=>new Intl.DateTimeFormat("en-US",{month:"long",year:"numeric",timeZone:"UTC"}).format(pt),R=L(q),Q=L(Y),I=q.getUTCMonth()===Y.getUTCMonth()&&q.getUTCFullYear()===Y.getUTCFullYear()?R:`${R} - ${Q}`;p.push({type:"date",value:"dateRange",label:I})}return p})();return d.jsxs("aside",{className:`filter-sidebar ${u?"mobile-open":""}`,children:[d.jsxs("div",{className:"filter-sidebar-content",children:[d.jsx("div",{className:"filter-section search-section",children:d.jsx(fg,{})}),d.jsxs("div",{className:"filter-section",children:[d.jsxs("button",{className:"filter-section-header",onClick:()=>b("featured"),"aria-expanded":r.featured,children:[d.jsx("h3",{children:"Featured Events"}),d.jsx("span",{className:`toggle-icon ${r.featured?"expanded":""}`,children:r.featured?"−":"+"})]}),(r.featured||v.featured)&&d.jsx("div",{className:`filter-section-content ${v.featured?"closing":""}`,children:d.jsx(ig,{})})]}),d.jsxs("div",{className:"filter-section","aria-label":"Page navigation links to jump directly to key page content: navigate using the link titles",children:[d.jsxs("button",{className:"filter-section-header",onClick:()=>b("region"),"aria-expanded":r.region,"aria-label":"Expand the drop down to see all Regions","data-bi-cN":"Region","data-bi-ecn":"Region","data-bi-hn":"Region","data-bi-ehn":"Region","data-bi-aN":"Filter Section","data-bi-cT":"filterdropdown","data-bi-bhvr":r.region?"filterdropdown_on":"filterdropdown_off",children:[d.jsx("h3",{children:"Region"}),d.jsx("span",{className:`toggle-icon ${r.region?"expanded":""}`,children:r.region?"−":"+"})]}),(r.region||v.region)&&d.jsx("div",{className:`filter-section-content ${v.region?"closing":""}`,children:d.jsx(sg,{})})]}),d.jsxs("div",{className:"filter-section","aria-label":"Page navigation links to jump directly to key page content: navigate using the link titles",children:[d.jsxs("button",{className:"filter-section-header",onClick:()=>b("topic"),"aria-expanded":r.topic,"aria-label":"Expand the drop down to see all Topics","data-bi-cN":"Topic","data-bi-ecn":"Topic","data-bi-hn":"Topic","data-bi-ehn":"Topic","data-bi-aN":"Filter Section","data-bi-cT":"filterdropdown","data-bi-bhvr":r.topic?"filterdropdown_on":"filterdropdown_off",children:[d.jsx("h3",{children:"Topic"}),d.jsx("span",{className:`toggle-icon ${r.topic?"expanded":""}`,children:r.topic?"−":"+"})]}),(r.topic||v.topic)&&d.jsx("div",{className:`filter-section-content ${v.topic?"closing":""}`,children:d.jsx(lg,{})})]}),d.jsxs("div",{className:"filter-section","aria-label":"Page navigation links to jump directly to key page content: navigate using the link titles",children:[d.jsxs("button",{className:"filter-section-header",onClick:()=>b("jobFunction"),"aria-expanded":r.jobFunction,"aria-label":"Expand the drop down to see all Job Functions","data-bi-cN":"Job Function","data-bi-ecn":"Job Function","data-bi-hn":"Job Function","data-bi-ehn":"Job Function","data-bi-aN":"Filter Section","data-bi-cT":"filterdropdown","data-bi-bhvr":r.jobFunction?"filterdropdown_on":"filterdropdown_off",children:[d.jsx("h3",{children:"Job Function"}),d.jsx("span",{className:`toggle-icon ${r.jobFunction?"expanded":""}`,children:r.jobFunction?"−":"+"})]}),(r.jobFunction||v.jobFunction)&&d.jsx("div",{className:`filter-section-content ${v.jobFunction?"closing":""}`,children:d.jsx(ug,{})})]}),d.jsxs("div",{className:"filter-section","aria-label":"Page navigation links to jump directly to key page content: navigate using the link titles",children:[d.jsxs("button",{className:"filter-section-header",onClick:()=>b("eventDate"),"aria-expanded":r.eventDate,"aria-label":"Expand the drop down to see all Event Dates","data-bi-cN":"Event Date","data-bi-ecn":"Event Date","data-bi-hn":"Event Date","data-bi-ehn":"Event Date","data-bi-aN":"Filter Section","data-bi-cT":"filterdropdown","data-bi-bhvr":r.eventDate?"filterdropdown_on":"filterdropdown_off",children:[d.jsx("h3",{children:"Event Date"}),d.jsx("span",{className:`toggle-icon ${r.eventDate?"expanded":""}`,children:r.eventDate?"−":"+"})]}),(r.eventDate||v.eventDate)&&d.jsx("div",{className:`filter-section-content ${v.eventDate?"closing":""}`,children:d.jsx(ng,{})})]}),d.jsxs("div",{className:"filter-section","aria-label":"Page navigation links to jump directly to key page content: navigate using the link titles",children:[d.jsxs("button",{className:"filter-section-header",onClick:()=>b("eventType"),"aria-expanded":r.eventType,"aria-label":"Expand the drop down to see all Event Type","data-bi-cN":"Event Type","data-bi-ecn":"Event Type","data-bi-hn":"Event Type","data-bi-ehn":"Event Type","data-bi-aN":"Filter Section","data-bi-cT":"filterdropdown","data-bi-bhvr":r.eventType?"filterdropdown_on":"filterdropdown_off",children:[d.jsx("h3",{children:"Event Type"}),d.jsx("span",{className:`toggle-icon ${r.eventType?"expanded":""}`,children:r.eventType?"−":"+"})]}),(r.eventType||v.eventType)&&d.jsx("div",{className:`filter-section-content ${v.eventType?"closing":""}`,children:d.jsx(cg,{})})]}),d.jsxs("div",{className:"filter-section","aria-label":"Page navigation links to jump directly to key page content: navigate using the link titles",children:[d.jsxs("button",{className:"filter-section-header",onClick:()=>b("focusArea"),"aria-expanded":r.focusArea,"aria-label":"Expand the drop down to see all Focus area","data-bi-cN":"Focus Area","data-bi-ecn":"Focus Area","data-bi-hn":"Focus Area","data-bi-ehn":"Focus Area","data-bi-aN":"Filter Section","data-bi-cT":"filterdropdown","data-bi-bhvr":r.focusArea?"filterdropdown_on":"filterdropdown_off",children:[d.jsx("h3",{children:"Focus Area"}),d.jsx("span",{className:`toggle-icon ${r.focusArea?"expanded":""}`,children:r.focusArea?"−":"+"})]}),(r.focusArea||v.focusArea)&&d.jsx("div",{className:`filter-section-content ${v.focusArea?"closing":""}`,children:d.jsx(og,{})})]})]}),d.jsxs("div",{className:"active-filters-container",children:[d.jsx("h3",{className:"applied-filters-heading",children:"Applied Filters"}),_.length>0?d.jsx("div",{className:"active-filters-list",children:_.map((p,O)=>d.jsxs("div",{className:"filter-tag",children:[d.jsx("span",{className:"filter-tag-label",children:p.label}),d.jsx("button",{className:"filter-tag-remove",onClick:()=>E(p.type,p.value),"aria-label":`Remove ${p.label} filter`,"data-bi-cN":p.label,"data-bi-ecn":p.label,"data-bi-hn":"Applied Filters","data-bi-ehn":"Applied Filters","data-bi-aN":"Filter Section","data-bi-cT":"button",children:"×"})]},`${p.type}-${p.value}-${O}`))}):d.jsx("p",{className:"no-filters-text",children:"No filters applied"})]}),d.jsx("div",{className:"clear-filters-container",children:d.jsx("button",{"data-bi-cN":"Clear filters","data-bi-ecn":"Clear filters","data-bi-hn":"Applied Filters","data-bi-ehn":"Applied Filters","data-bi-aN":"Filter Section","data-bi-cT":"button","aria-label":"Click the box to clear all filters",className:"clear-filters-button",onClick:C,children:"Clear filters"})})]})},dg=({isMobileFilterOpen:u,setIsMobileFilterOpen:f})=>{const r=pe(),[s,v]=B.useState(!1),[h,b]=B.useState(!1),C=B.useRef(null),E=r?.totalCount||0,m=r?.filters.sortBy||"date-asc",_=()=>{if(!r?.filters)return 0;let Y=0;return r.filters.category&&r.filters.category.length>0&&(Y+=r.filters.category.length),r.filters.regions&&r.filters.regions.length>0&&(Y+=r.filters.regions.length),r.filters.jobFunctions&&r.filters.jobFunctions.length>0&&(Y+=r.filters.jobFunctions.length),r.filters.location&&Y++,r.filters.focusArea&&Y++,r.filters.date&&Y++,r.filters.isFeaturedEvent&&Y++,Y},p=Y=>{r?.setFilters({...r.filters,sortBy:Y.target.value})},O=Y=>{r?.setFilters({...r.filters,sortBy:Y}),b(!0),v(!1)},q=()=>h?m==="date-asc"?"Date (ASC)":m==="date-desc"?"Date (DESC)":"Name (A-Z)":"Sort By";return B.useEffect(()=>{const Y=L=>{C.current&&!C.current.contains(L.target)&&v(!1)};return document.addEventListener("mousedown",Y),()=>{document.removeEventListener("mousedown",Y)}},[]),d.jsxs("div",{className:"filter-header",children:[d.jsxs("div",{className:"filter-header-desktop",children:[d.jsx("div",{className:"filter-count",children:d.jsxs("h2",{children:["Filter ",d.jsxs("span",{className:"event-count",children:[E," events"]})]})}),d.jsxs("div",{className:"sort-container",children:[d.jsx("label",{htmlFor:"sort-select",children:"Sort:"}),d.jsxs("select",{id:"sort-select",value:m,onChange:p,className:"sort-dropdown","data-bi-cN":m==="date-asc"?"Date (ASC)":m==="date-desc"?"Date (DESC)":"Name (A-Z)","data-bi-ecn":m==="date-asc"?"Date (ASC)":m==="date-desc"?"Date (DESC)":"Name (A-Z)","data-bi-hn":"Sort by Controls","data-bi-ehn":"Sort by Controls","data-bi-aN":"Event Sort by Controls","data-bi-cT":"sortby",children:[d.jsx("option",{value:"date-asc",children:"Date (ASC)"}),d.jsx("option",{value:"date-desc",children:"Date (DESC)"}),d.jsx("option",{value:"name",children:"Name (A-Z)"})]})]})]}),d.jsxs("div",{className:"filter-header-mobile",children:[d.jsxs("div",{className:"filter-mobile-row",children:[d.jsx("span",{className:"filter-mobile-label",children:"Filter"}),d.jsxs("span",{className:"filter-mobile-count",children:["Events (",E,")"]})]}),d.jsxs("div",{className:"filter-mobile-controls",children:[d.jsx("div",{className:"filter-dropdown-container",children:d.jsxs("button",{className:"filter-button",onClick:()=>f(!u),children:["Filters (",_(),")",d.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M2 2H10M2 6H10M2 10H10",stroke:"white",strokeWidth:"2",strokeLinecap:"round"})})]})}),d.jsxs("div",{className:"sort-dropdown-container",ref:C,children:[d.jsxs("button",{className:"sort-button",onClick:()=>v(!s),"data-bi-cN":s?"Dropdown Close":"Dropdown Open","data-bi-ecn":s?"Dropdown Close":"Dropdown Open","data-bi-hn":"Sort by Controls","data-bi-ehn":"Sort by Controls","data-bi-aN":"Event Sort by Controls","data-bi-cT":"sortby",children:[q(),d.jsx("svg",{width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M1 1L6 6L11 1",stroke:"#333",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),s&&d.jsxs("div",{className:"sort-dropdown-menu",children:[d.jsx("div",{className:`sort-option ${m==="date-asc"?"active":""}`,onClick:()=>O("date-asc"),"data-bi-cN":"Date (ASC)","data-bi-ecn":"Date (ASC)","data-bi-hn":"Sort by Controls","data-bi-ehn":"Sort by Controls","data-bi-aN":"Event Sort by Controls","data-bi-cT":"sortby",children:"Date (ASC)"}),d.jsx("div",{className:`sort-option ${m==="date-desc"?"active":""}`,onClick:()=>O("date-desc"),"data-bi-cN":"Date (DESC)","data-bi-ecn":"Date (DESC)","data-bi-hn":"Sort by Controls","data-bi-ehn":"Sort by Controls","data-bi-aN":"Event Sort by Controls","data-bi-cT":"sortby",children:"Date (DESC)"}),d.jsx("div",{className:`sort-option ${m==="name"?"active":""}`,onClick:()=>O("name"),"data-bi-cN":"Name (A-Z)","data-bi-ecn":"Name (A-Z)","data-bi-hn":"Sort by Controls","data-bi-ehn":"Sort by Controls","data-bi-aN":"Event Sort by Controls","data-bi-cT":"sortby",children:"Name (A-Z)"})]})]})]})]})]})},hg=()=>{const u=pe(),f=u?.filters.category||[],r=f.length===0,[s,v]=B.useState(!1),h=B.useRef(null),b=u?.filterOption?.category||[],C=()=>r?"All Topics":f.length===1?f[0]:`${f.length} topics selected`,E=m=>{m==="All topics"?u?.setFilters(_=>({..._,category:[]})):u?.setFilters(_=>{const p=_.category||[];return p.length===1&&p.includes(m)?{..._,category:[]}:{..._,category:[m]}})};return B.useEffect(()=>{const m=_=>{h.current&&!h.current.contains(_.target)&&v(!1)};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[]),d.jsxs("div",{className:"category-tabs-container","aria-label":"Page navigation links to jump directly to key page content: navigate using the link titles",children:[d.jsxs("div",{className:"category-tabs category-tabs-desktop",children:[d.jsxs("span",{className:"category-tabs-label",children:["Search by topic",d.jsx("span",{className:"separator",children:"|"})]}),d.jsx("button",{className:`category-tab ${r?"active":""}`,onClick:()=>E("All topics"),"data-bi-cN":"All Solution Topics","data-bi-ecn":"All Solution Topics","data-bi-hn":"All Solution Topics","data-bi-ehn":"All Solution Topics","data-bi-aN":"Search by topics","data-bi-cT":"filterbytopic","aria-label":"Click All topics to jump to the page section to learn more",children:"All topics"}),b.map(m=>d.jsx("button",{className:`category-tab ${f.includes(m)?"active":""}`,onClick:()=>E(m),"data-bi-cN":m,"data-bi-ecn":m,"data-bi-hn":m,"data-bi-ehn":m,"data-bi-aN":"Search by topics","data-bi-cT":"filterbytopic","aria-label":`Click ${m} to jump to the page section to learn more`,children:m},m))]}),d.jsxs("div",{className:"category-dropdown-mobile",ref:h,children:[d.jsxs("button",{className:"category-dropdown-button",onClick:()=>v(!s),children:[d.jsx("span",{children:C()}),d.jsx("svg",{className:`dropdown-arrow ${s?"open":""}`,width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M1 1L6 6L11 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),s&&d.jsxs("div",{className:"category-dropdown-menu",children:[d.jsxs("label",{className:"category-dropdown-item",children:[d.jsx("input",{type:"checkbox",checked:r,onChange:()=>E("All topics"),"data-bi-cN":"All Solution Topics","data-bi-ecn":"All Solution Topics","data-bi-hn":"All Solution Topics","data-bi-ehn":"All Solution Topics","data-bi-aN":"Search by topics","data-bi-cT":"filterbytopic"}),d.jsx("span",{className:"category-checkbox-label",children:"All Topics"}),r&&d.jsx("svg",{className:"check-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M13 4L6 11L3 8",stroke:"#7F35B2",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),b.map(m=>d.jsxs("label",{className:"category-dropdown-item",children:[d.jsx("input",{type:"checkbox",checked:f.includes(m),onChange:()=>E(m),"data-bi-cN":m,"data-bi-ecn":m,"data-bi-hn":m,"data-bi-ehn":m,"data-bi-aN":"Search by topics","data-bi-cT":"filterbytopic"}),d.jsx("span",{className:"category-checkbox-label",children:m}),f.includes(m)&&d.jsx("svg",{className:"check-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M13 4L6 11L3 8",stroke:"#7F35B2",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]},m))]})]})]})},mg=()=>d.jsxs("div",{style:{width:"100%",margin:0,padding:0,overflow:"hidden"},children:[d.jsx("div",{style:{display:"block"},className:"d-md-none",children:d.jsx("img",{src:"https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/Student-in-a-classroom-directs-another-students-attention-to-a-computer-monitor:VP3-1083x640?fmt=png-alpha",alt:"Student in a classroom directs another student’s attention to a computer monitor",style:{display:"block",width:"100%",maxHeight:"500px",objectFit:"cover",margin:0,padding:0}})}),d.jsxs("div",{className:"d-md-none",style:{backgroundImage:"url(https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/Blue-Dotted-Background)",backgroundSize:"cover",backgroundPosition:"center",minHeight:"250px",position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",textAlign:"left",padding:"2rem"},children:[d.jsx("h2",{style:{color:"white",margin:0,marginBottom:"1rem",fontSize:"28px"},children:"Microsoft Education Events"}),d.jsx("p",{style:{color:"white",margin:0},children:"Discover curated events and learning experiences and explore innovative solutions tailored to education scenarios."})]}),d.jsxs("div",{className:"d-none d-md-block",style:{height:"400px",position:"relative",overflow:"hidden"},children:[d.jsx("img",{src:"https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/Microsoft-Education-Events-1920x510-v2?scl=1",alt:"Student in a classroom directs another student’s attention to a computer monitor",style:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"center",display:"block",margin:0,padding:0}}),d.jsxs("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"50%",display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 5%"},children:[d.jsx("h1",{style:{color:"white",margin:0,marginBottom:"1rem",whiteSpace:"nowrap"},children:"Microsoft Education Events"}),d.jsx("p",{style:{color:"white",margin:0},children:"Discover curated events and learning experiences and explore innovative solutions tailored to education scenarios."})]})]})]}),vg=()=>d.jsxs("div",{className:"socialfollow aem-GridColumn aem-GridColumn--default--12","data-component-id":"f881184c0350e55b789024b15f22837e",children:[d.jsx("link",{rel:"canonical",href:`${window.location.href}`}),d.jsxs("section",{className:"col-12","aria-label":"Social media links",id:"socialfollow-9697a96c-588c-4f07-b80d-40d799fbd94","data-componentname":"socialfollow-9697a96c-588c-4f07-b80d-40d799fbd94",children:[d.jsx("div",{className:"base font-weight-normal d-inline align-middle mr-g",children:"Follow Microsoft Education"}),d.jsxs("ul",{className:"list-inline d-inline-block align-middle mb-0 socialfollow-ul",children:[d.jsx("li",{className:"list-inline-item mr-g socialfollow-li",children:d.jsx("a",{className:"d-inline-block action-trigger",href:"https://go.microsoft.com/fwlink/?linkid=2288034",target:"_blank","aria-label":"Follow Microsoft Education on Facebook","data-bi-ecn":"Facebook","data-bi-bhvr":"126","data-bi-cn":"Facebook","data-bi-socchn":"Facebook","data-bi-ct":"Social Button","data-bi-pa":"body","data-bi-compnm":"Social Follow - horizontal",children:d.jsx("img",{src:"https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/Facebook 2x-1?scl=1","data-src":"https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/Facebook 2x-1?scl=1",alt:"Facebook logo",title:"Facebook",width:"32",height:"32"})})}),d.jsx("li",{className:"list-inline-item mr-g socialfollow-li",children:d.jsx("a",{className:"d-inline-block action-trigger",href:"https://go.microsoft.com/fwlink/?linkid=2288243",target:"_blank","aria-label":"Follow Microsoft Education on X (formerly Twitter)","data-bi-ecn":"Twitter","data-bi-bhvr":"126","data-bi-cn":"Twitter","data-bi-socchn":"Twitter","data-bi-ct":"Social Button","data-bi-pa":"body","data-bi-compnm":"Social Follow - horizontal",children:d.jsx("img",{src:"https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/Twitter 2x-1?scl=1","data-src":"https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/Twitter 2x-1?scl=1",alt:"Twitter logo",title:"Twitter",width:"32",height:"32"})})}),d.jsx("li",{className:"list-inline-item mr-g socialfollow-li",children:d.jsx("a",{className:"d-inline-block action-trigger",href:"https://go.microsoft.com/fwlink/?linkid=2288133",target:"_blank","aria-label":"Follow Microsoft Education Teams on Instagram","data-bi-ecn":"Instagram","data-bi-bhvr":"126","data-bi-cn":"Instagram","data-bi-socchn":"Instagram","data-bi-ct":"Social Button","data-bi-pa":"body","data-bi-compnm":"Social Follow - horizontal",children:d.jsx("img",{src:"https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/Instagram 2x-1?scl=1","data-src":"https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/Instagram 2x-1?scl=1",alt:"Instagram logo",title:"Instagram",width:"32",height:"32"})})}),d.jsx("li",{className:"list-inline-item mr-g socialfollow-li",children:d.jsx("a",{className:"d-inline-block action-trigger",href:"https://go.microsoft.com/fwlink/?linkid=2288244",target:"_blank","aria-label":"Follow Microsoft Education on Linkedin","data-bi-ecn":"LinkedIn","data-bi-bhvr":"126","data-bi-cn":"LinkedIn","data-bi-socchn":"LinkedIn","data-bi-ct":"Social Button","data-bi-pa":"body","data-bi-compnm":"Social Follow - horizontal",children:d.jsx("img",{src:"https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/Linkedin 2x-1?scl=1","data-src":"https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/Linkedin 2x-1?scl=1",alt:"LinkedIn logo",title:"LinkedIn",width:"32",height:"32"})})}),d.jsx("li",{className:"list-inline-item mr-g socialfollow-li",children:d.jsx("a",{className:"d-inline-block action-trigger",href:"https://go.microsoft.com/fwlink/?linkid=2288245",target:"_blank","aria-label":"Follow Microsoft Education on Pinterest","data-bi-ecn":"Pinterest","data-bi-bhvr":"126","data-bi-cn":"Pinterest","data-bi-socchn":"Pinterest","data-bi-ct":"Social Button","data-bi-pa":"body","data-bi-compnm":"Social Follow - horizontal",children:d.jsx("img",{src:"https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/Pinterest 2x-1?scl=1","data-src":"https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/Pinterest 2x-1?scl=1",alt:"Pinterest logo",title:"Pinterest",width:"32",height:"32"})})})]}),d.jsx("script",{type:"application/ld+json",children:`{ "@context": "https://schema.org", "@type": "Organization", "name": "Microsoft", "url": "", "sameAs":["https://go.microsoft.com/fwlink/?linkid=2288034","https://go.microsoft.com/fwlink/?linkid=2288243","https://go.microsoft.com/fwlink/?linkid=2288133","https://go.microsoft.com/fwlink/?linkid=2288244","https://go.microsoft.com/fwlink/?linkid=2288245"] }`})]})]}),gg=u=>{if(!u||u.trim()==="")return null;if(/^\d{4}-\d{2}-\d{2}$/.test(u)){const s=new Date(u);if(!isNaN(s.getTime()))return s}const r=new Date(u);return isNaN(r.getTime())?null:r},zs=(u,f)=>{const r=new Date(u.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(u.toLocaleString("en-US",{timeZone:f})).getTime()-r.getTime())/6e4},dt=(u,f)=>{const r=new Date(f.getFullYear(),0,1),s=zs(r,u),v=new Date(f.getFullYear(),6,1),h=zs(v,u),b=zs(f,u);if(s===h)return!1;const C=Math.max(s,h);return b===C},yg=(u,f)=>{const r=["en-US","en-GB","en-AU","en-IN"];for(const E of r){const _=new Intl.DateTimeFormat(E,{timeZone:u,timeZoneName:"short"}).formatToParts(f).find(p=>p.type==="timeZoneName");if(_&&_.value&&!_.value.includes("GMT"))return _.value}const s={"Asia/Kolkata":"IST","Asia/Calcutta":"IST","America/New_York":dt(u,f)?"EDT":"EST","America/Detroit":dt(u,f)?"EDT":"EST","America/Chicago":dt(u,f)?"CDT":"CST","America/Denver":dt(u,f)?"MDT":"MST","America/Phoenix":"MST","America/Los_Angeles":dt(u,f)?"PDT":"PST","America/Anchorage":dt(u,f)?"AKDT":"AKST","America/Adak":dt(u,f)?"HDT":"HST","Pacific/Honolulu":"HST","America/Toronto":dt(u,f)?"EDT":"EST","America/Vancouver":dt(u,f)?"PDT":"PST","America/Edmonton":dt(u,f)?"MDT":"MST","Europe/London":dt(u,f)?"BST":"GMT","Europe/Dublin":dt(u,f)?"IST":"GMT","Europe/Paris":dt(u,f)?"CEST":"CET","Europe/Berlin":dt(u,f)?"CEST":"CET","Europe/Madrid":dt(u,f)?"CEST":"CET","Europe/Rome":dt(u,f)?"CEST":"CET","Europe/Amsterdam":dt(u,f)?"CEST":"CET","Europe/Brussels":dt(u,f)?"CEST":"CET","Europe/Vienna":dt(u,f)?"CEST":"CET","Europe/Prague":dt(u,f)?"CEST":"CET","Europe/Warsaw":dt(u,f)?"CEST":"CET","Europe/Stockholm":dt(u,f)?"CEST":"CET","Europe/Copenhagen":dt(u,f)?"CEST":"CET","Europe/Zurich":dt(u,f)?"CEST":"CET","Europe/Athens":dt(u,f)?"EEST":"EET","Europe/Bucharest":dt(u,f)?"EEST":"EET","Europe/Helsinki":dt(u,f)?"EEST":"EET","Europe/Istanbul":"TRT","Europe/Moscow":"MSK","Australia/Sydney":dt(u,f)?"AEDT":"AEST","Australia/Melbourne":dt(u,f)?"AEDT":"AEST","Australia/Brisbane":"AEST","Australia/Adelaide":dt(u,f)?"ACDT":"ACST","Australia/Perth":"AWST","Pacific/Auckland":dt(u,f)?"NZDT":"NZST","Asia/Tokyo":"JST","Asia/Seoul":"KST","Asia/Shanghai":"CST","Asia/Beijing":"CST","Asia/Hong_Kong":"HKT","Asia/Singapore":"SGT","Asia/Bangkok":"ICT","Asia/Jakarta":"WIB","Asia/Manila":"PHT","Asia/Taipei":"CST","Asia/Dubai":"GST","Asia/Karachi":"PKT","Asia/Dhaka":"BST","Asia/Colombo":"IST","Asia/Riyadh":"AST","Asia/Kuwait":"AST","Asia/Qatar":"AST","Asia/Jerusalem":dt(u,f)?"IDT":"IST","Africa/Cairo":"EET","Africa/Johannesburg":"SAST","Africa/Lagos":"WAT","Africa/Nairobi":"EAT","America/Sao_Paulo":dt(u,f)?"BRST":"BRT","America/Argentina/Buenos_Aires":"ART","America/Santiago":dt(u,f)?"CLST":"CLT","America/Bogota":"COT","America/Lima":"PET","America/Mexico_City":dt(u,f)?"CDT":"CST","America/Monterrey":dt(u,f)?"CDT":"CST","America/Guatemala":"CST","America/Panama":"EST"};if(s[u])return s[u];const v=-f.getTimezoneOffset(),h=Math.floor(Math.abs(v)/60),b=Math.abs(v)%60;return`GMT${v>=0?"+":"-"}${h}${b>0?":"+b:""}`},bg=u=>{const f=new Date(u),r=Intl.DateTimeFormat().resolvedOptions().timeZone,s=new Intl.DateTimeFormat("en-US",{timeZone:r,year:"numeric",month:"long",day:"numeric"}).format(f),v=new Intl.DateTimeFormat("en-US",{timeZone:r,hour:"numeric",minute:"2-digit",hour12:!0}).format(f),h=yg(r,f),b=`${v} ${h}`;return{formattedDate:s,formattedTime:b}},pg=({event:u})=>{const f=!u.date||u.date==="On-demand",r=!f&&!u.isoDateTimeUTC,{formattedDate:s,formattedTime:v}=f?{formattedDate:"On-demand",formattedTime:""}:r?(()=>{const p=gg(u.date);return p&&!isNaN(p.getTime())?{formattedDate:new Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"numeric"}).format(p),formattedTime:"All day"}:{formattedDate:u.date||"Date TBD",formattedTime:"All day"}})():(()=>{try{const p=bg(u.isoDateTimeUTC),O=p.formattedDate,q=p.formattedTime;return{formattedDate:O,formattedTime:q}}catch(p){console.warn("Date formatting failed, using fallback values:",p);const O=u.date||"Date TBD",q=u.time||"All day";return{formattedDate:O,formattedTime:q}}})(),[h,b]=B.useState(!1),[C,E]=B.useState(!1),m=B.useRef(null),_=u.hostedBy||[];return B.useEffect(()=>{if(m.current){const p=m.current.scrollHeight>m.current.clientHeight;E(p)}},[u.description]),d.jsxs("div",{id:`event-${u.id}`,className:"event-card",children:[d.jsx("div",{className:"event-card-header",children:u.isFeaturedEvent&&d.jsx("span",{className:"featured-badge",children:"Featured Event"})}),d.jsx("h3",{className:"event-title",title:u.title||"Untitled Event",children:u.title||"Untitled Event"}),_.length>0&&d.jsxs("div",{className:"event-partners",children:[d.jsx("span",{className:"partners-label",children:"Hosted By:"}),_.map((p,O)=>d.jsx("span",{className:"partner-name",children:p},O))]}),d.jsxs("div",{className:"event-description-container",children:[d.jsx("p",{ref:m,className:`event-description ${h?"expanded":""}`,children:u.description||"No description available"}),C&&d.jsx("button",{className:"show-more-button",onClick:()=>b(!h),children:h?"Show less":"Show more"})]}),d.jsxs("div",{className:"event-details",children:[d.jsxs("div",{className:"event-detail-item",children:[d.jsx("svg",{className:"event-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:d.jsx("path",{d:"M14 2V4M6 2V4M3 8H17M5 4H15C16.1046 4 17 4.89543 17 6V16C17 17.1046 16.1046 18 15 18H5C3.89543 18 3 17.1046 3 16V6C3 4.89543 3.89543 4 5 4Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),d.jsx("span",{children:s})]}),d.jsxs("div",{className:"event-detail-item",style:{visibility:f?"hidden":"visible"},children:[d.jsxs("svg",{className:"event-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[d.jsx("path",{d:"M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M10 6V10L13 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),d.jsx("span",{children:v})]}),d.jsxs("div",{className:"event-detail-item",children:[d.jsxs("svg",{className:"event-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[d.jsx("path",{d:"M10 10C11.1046 10 12 9.10457 12 8C12 6.89543 11.1046 6 10 6C8.89543 6 8 6.89543 8 8C8 9.10457 8.89543 10 10 10Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M10 18C13 15 16 12.4183 16 9C16 5.68629 13.3137 3 10 3C6.68629 3 4 5.68629 4 9C4 12.4183 7 15 10 18Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),d.jsx("span",{children:u.location||"Location TBD"})]})]}),d.jsxs("div",{className:"event-tags",children:[(u.regionName||[]).map(p=>d.jsx("span",{className:"event-tag",children:p},p)),(u.category||[]).map(p=>d.jsx("span",{className:"event-tag",children:p},p)),(!u.regionName||u.regionName.length===0)&&(!u.category||u.category.length===0)&&d.jsx("span",{className:"event-tag",children:"N/A"})]}),d.jsx("div",{className:"event-card-footer",children:d.jsx("div",{className:"register-button-container",children:d.jsx("a",{href:u.registrationURL,target:"_blank",rel:"noopener noreferrer",className:"register-button","aria-label":`Register for ${u.title}, opens in a new tab`,"data-bi-cN":"Register","data-bi-ecn":"Register","data-bi-hn":u.title,"data-bi-ehn":u.title,"data-bi-aN":"Event Grid","data-bi-cT":"registerlink","data-bi-product":u.title,"data-bi-sku":u.title,"data-bi-prod":u.title,children:"Register"})})})]})},Sg=()=>{const u=pe(),f=B.useRef(0);if(!u)return null;const{visibleCount:r,totalCount:s,loadMore:v,haAlpha XR:h}=u;if(B.useEffect(()=>{if(r>f.current&&f.current>0){const _=document.querySelectorAll(".event-card")[f.current];if(_){const p=_.querySelector(".show-more-button");if(p)p.focus();else{const O=_.querySelector(".event-title");O&&(O.setAttribute("tabindex","-1"),O.focus())}}}f.current=r},[r]),s===0)return d.jsx("div",{className:"load-more-container",children:d.jsx("p",{className:"no-events-message",children:"No events currently, please check back later."})});const b=Math.min(r,s),C=()=>{v()},E=m=>{(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),v())};return d.jsxs("div",{className:"load-more-container",children:[d.jsxs("p",{className:"showing-count",children:["Showing ",b," of ",s," events"]}),h&&d.jsx("button",{className:"load-more-button",onClick:C,onKeyDown:E,"data-bi-cN":"Load more","data-bi-ecn":"Load more","data-bi-hn":"Load more","data-bi-ehn":"Load more","data-bi-aN":"Event Grid","data-bi-cT":"button","aria-label":"Click on the Load more button to display all items on the page",children:"Load More"})]})},Tg=()=>{const u=pe(),f=u?.filteredEvents||[],r=u?.allFilteredEvents||[],s=u?.loadMore,v=u?.isLoading||!1,[h,b]=B.useState(!1),C=Gn();return B.useEffect(()=>{const m=new URLSearchParams(C.search).get("eventId");if(m){const _=r.findIndex(p=>p.id===m);if(_!==-1){if(_>=f.length&&s){const p=Math.ceil((_+1-f.length)/6);for(let O=0;O{const p=document.getElementById(`event-${m}`);if(p){p.scrollIntoView({behavior:"smooth",block:"center"}),p.classList.add("event-highlighted");const O=()=>{p.classList.remove("event-highlighted"),document.removeEventListener("click",O)};setTimeout(()=>{document.addEventListener("click",O)},100),setTimeout(()=>{p.classList.remove("event-highlighted"),document.removeEventListener("click",O)},3e3)}},500)}}},[C.search,r,f.length,s]),v?d.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#f5f5f5",zIndex:9999,fontSize:"1.25rem",color:"#000000",fontWeight:400},children:"Loading event details..."}):d.jsxs(d.Fragment,{children:[d.jsx(mg,{}),d.jsx(hg,{}),d.jsx(dg,{isMobileFilterOpen:h,setIsMobileFilterOpen:b}),d.jsxs("div",{className:"main-container",children:[d.jsx(rg,{isMobileFilterOpen:h}),d.jsxs("div",{className:"content-area",children:[d.jsx("div",{className:"events-grid",children:f.map(E=>d.jsx(pg,{event:E},E.id))}),d.jsx(Sg,{})]})]}),d.jsx("div",{className:"main-container",children:d.jsxs("div",{style:{width:"100%"},children:[d.jsx($0,{}),d.jsx(W0,{}),d.jsx(vg,{})]})})]})};function Eg(){return d.jsxs(V0,{children:[d.jsx(_s,{path:"*",element:d.jsx(X0,{to:"/en-us/education-events",replace:!0})}),d.jsx(_s,{path:"/en-us/education-events",element:d.jsx(Tg,{})})]})}function xg(){return new Promise((u,f)=>{if(window.oneDS){u();return}const r=document.createElement("script");r.src="https:/https://www.microsoft.com/js.monitor.azure.com/scripts/c/ms.analytics-web-3.min.js",r.type="text/javascript",r.onload=()=>u(),r.onerror=()=>f(new Error("Failed to load Azure oneDS script")),document.body.appendChild(r)})}async function Ag(){try{const u="5a56994cc104439294382c53832eff1c-4e9e2ce1-ab59-4631-a65c-3985e88c6cce-6629";if(await xg(),!window.oneDS){console.error("oneDS is not available after script load.");return}const f=new window.oneDS.ApplicationInsights,r={instrumentationKey:u,channelConfiguration:{eventsLimitInMem:50,allowedDomains:[window.location.hostname]},propertyConfiguration:{env:"PROD"},webAnalyticsConfiguration:{autoCapture:{scroll:!0,pageView:!0,onLoad:!0,onUnload:!0,click:!0,resize:!0,jsError:!0}}};f.initialize(r,[]),console.log("1DS Initialized..")}catch(u){console.error("Failed to load Azure Analytics script:",u)}}Ag();const ah=document.getElementById("root");ah?Pv.createRoot(ah).render(d.jsx(B.StrictMode,{children:d.jsx(k0,{children:d.jsx(eg,{children:d.jsx(Eg,{})})})})):console.error('Root element with id "root" not found.');