1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Sv||Iv(),n.schedule(e,t,r)},e}),{}),Pv=Cv.reduce((function(e,t){return e[t]=Ov[t].cancel,e}),{}),jv=(Cv.reduce((function(e,t){return e[t]=function(){return Ov[t].process(Ev)},e}),{}),function(e){return Ov[e].process(Ev)}),Av=function e(t){Sv=!1,Ev.delta=kv?bv:Math.max(Math.min(t-Ev.timestamp,40),1),Ev.timestamp=t,_v=!0,Cv.forEach(jv),_v=!1,Sv&&(kv=!1,wv(e))},Iv=function(){Sv=!0,kv=!0,_v||wv(Av)},Rv=function(){return Ev},Mv=Tv;function Nv(e,t){return e-t-(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)}var Lv=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return Mv.update(t,!0)},stop:function(){return Pv.update(t)}}};function Dv(e){var t,n,r,i,a,o=e.from,s=e.autoplay,u=void 0===s||s,l=e.driver,c=void 0===l?Lv:l,d=e.elapsed,f=void 0===d?0:d,h=e.repeat,p=void 0===h?0:h,v=e.repeatType,g=void 0===v?"loop":v,m=e.repeatDelay,y=void 0===m?0:m,b=e.onPlay,x=e.onStop,w=e.onComplete,k=e.onRepeat,S=e.onUpdate,_=Ed(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),E=_.to,C=0,O=_.duration,T=!1,P=!0,j=function(e){if(Array.isArray(e.to))return mv;if(yv[e.type])return yv[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?mv:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?yp:mv}(_);(null===(n=(t=j).needsInterpolation)||void 0===n?void 0:n.call(t,o,E))&&(a=Qp([0,100],[o,E],{clamp:!1}),o=0,E=100);var A=j(Object.assign(Object.assign({},_),{from:o,to:E}));function I(){C++,"reverse"===g?f=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?t-(e-t)+n:Nv(t+-e,t,n)}(f,O,y,P=C%2===0):(f=Nv(f,O,y),"mirror"===g&&A.flipTarget()),T=!1,k&&k()}function R(e){if(P||(e=-e),f+=e,!T){var t=A.next(Math.max(0,f));i=t.value,a&&(i=a(i)),T=P?t.done:f<=0}null===S||void 0===S||S(i),T&&(0===C&&(null!==O&&void 0!==O||(O=f)),C=t+n:e<=-n}(f,O,y,P)&&I():(r.stop(),w&&w()))}return u&&(null===b||void 0===b||b(),(r=c(R)).start()),{stop:function(){null===x||void 0===x||x(),r.stop()}}}function Fv(e,t){return t?e*(1e3/t):0}var zv=function(e){return 1e3*e},Bv=function(e,t){return 1-3*t+3*e},Vv=function(e,t){return 3*t-6*e},Uv=function(e){return 3*e},Wv=function(e,t,n){return((Bv(t,n)*e+Vv(t,n))*e+Uv(t))*e},Hv=function(e,t,n){return 3*Bv(t,n)*e*e+2*Vv(t,n)*e+Uv(t)},qv=1e-7,Yv=10;var Kv=8,Gv=.001;var Xv=11,$v=1/(Xv-1);function Jv(e,t,n,r){if(e===t&&n===r)return rv;for(var i=new Float32Array(Xv),a=0;a=Gv?function(e,t,n,r){for(var i=0;i0?n=o:t=o}while(Math.abs(a)>qv&&++ss}function _(e){return void 0===o?s:void 0===s||Math.abs(o-e)j||-1===A&&e2&&void 0!==arguments[2]&&arguments[2]&&i,s=a?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&o.add(e),-1===s.indexOf(e)&&(s.push(e),a&&i&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:function(u){if(i)a=!0;else{i=!0;var l=[n,t];if(t=l[0],(n=l[1]).length=0,r=t.length)for(var c=0;c1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Pg||zg(),n.schedule(e,t,r)},e}),{}),Ng=Ig.reduce((function(e,t){return e[t]=Rg[t].cancel,e}),{}),Lg=Ig.reduce((function(e,t){return e[t]=function(){return Rg[t].process(Ag)},e}),{}),Dg=function(e){return Rg[e].process(Ag)},Fg=function e(t){Pg=!1,Ag.delta=Tg?Eg:Math.max(Math.min(t-Ag.timestamp,40),1),Ag.timestamp=t,jg=!0,Ig.forEach(Dg),jg=!1,Pg&&(Tg=!1,Og(e))},zg=function(){Pg=!0,Tg=!0,jg||Og(Fg)},Bg=function(){return Ag},Vg=Mg;function Ug(e,t){-1===e.indexOf(t)&&e.push(t)}function Wg(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Hg=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Ug(this.subscriptions,e),function(){return Wg(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var i=0;ip&&m,k=Array.isArray(g)?g:[g],S=k.reduce(a,{});!1===y&&(S={});var _=v.prevResolvedValues,E=void 0===_?{}:_,C=_d(_d({},E),S),O=function(e){w=!0,f.delete(e),v.needsAnimating[e]=!0};for(var T in C){var P=S[T],j=E[T];h.hasOwnProperty(T)||(P!==j?dh(P)&&dh(j)?!ap(P,j)||x?O(T):v.protectedKeys[T]=!0:void 0!==P?O(T):f.add(T):void 0!==P&&f.has(T)?O(T):v.protectedKeys[T]=!0)}v.prevProp=g,v.prevResolvedValues=S,v.isActive&&(h=_d(_d({},h),S)),i&&e.blockInitialAnimation&&(w=!1),w&&!b&&d.push.apply(d,Td([],Od(k.map((function(e){return{animation:e,options:_d({type:r},o)}}))),!1))},g=0;g=3;if(t||n){var i=e.point,a=Bg().timestamp;r.history.push(_d(_d({},i),{timestamp:a}));var o=r.handlers,s=o.onStart,u=o.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),u&&u(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=mm(t,r.transformPagePoint),Sh(e)&&0===e.buttons?r.handlePointerUp(e,t):Vg.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,i=n.onEnd,a=n.onSessionEnd,o=bm(mm(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,o),a&&a(e,o)},!(_h(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var a=mm(Th(e),this.transformPagePoint),o=a.point,s=Bg().timestamp;this.history=[_d(_d({},o),{timestamp:s})];var u=t.onSessionStart;u&&u(e,bm(a,this.history)),this.removeListeners=Kh(Lh(window,"pointermove",this.handlePointerMove),Lh(window,"pointerup",this.handlePointerUp),Lh(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Ng.update(this.updatePoint)},e}();function mm(e,t){return t?{point:t(e.point)}:e}function ym(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bm(e,t){var n=e.point;return{point:n,delta:ym(n,wm(t)),offset:ym(n,xm(t)),velocity:km(t,.1)}}function xm(e){return e[0]}function wm(e){return e[e.length-1]}function km(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=wm(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>zv(t)));)n--;if(!r)return{x:0,y:0};var a=(i.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Sm(e){return e.max-e.min}function _m(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),vm(e,t)t?n="y":Math.abs(e.x)>t&&(n="x");return n}(u),void(null!==n.currentDirection&&(null===o||void 0===o||o(n.currentDirection)));n.updateAxis("x",t.point,u),n.updateAxis("y",t.point,u),n.visualElement.syncRender(),null===s||void 0===s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;null===i||void 0===i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(yh.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&ty(e,r,this.currentDirection)){var i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,i=t.max;return void 0!==r&&ei&&(e=n?wp(i,e,n.max):Math.min(e,i)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,a=this.constraints;n&&qd(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,a=t.right;return{x:jm(e.x,r,a),y:jm(e.y,n,i)}}(i.actual,n),this.elastic=function(e){return void 0===e&&(e=Im),!1===e?e=0:!0===e&&(e=Im),{x:Rm(e,"left","right"),y:Rm(e,"top","bottom")}}(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Dm((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!qd(t))return!1;var r=t.current;Rd(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var i=this.visualElement.projection;if(!i||!i.layout)return!1;var a=function(e,t,n){var r=Qm(e,n),i=t.scroll;return i&&(Km(r.x,i.x),Km(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o=function(e,t){return{x:Am(e.x,t.x),y:Am(e.y,t.y)}}(i.layout.actual,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(o));this.hasMutatedConstraints=!!s,s&&(o=Fm(s))}return o},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,a=n.dragElastic,o=n.dragTransition,s=n.dragSnapToOrigin,u=n.onDragTransitionEnd,l=this.constraints||{},c=Dm((function(n){var u;if(ty(n,r,t.currentDirection)){var c=null!==(u=null===l||void 0===l?void 0:l[n])&&void 0!==u?u:{};s&&(c={min:0,max:0});var d=a?200:1e6,f=a?40:1e7,h=_d(_d({type:"inertia",velocity:i?e[n]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},o),c);return t.startAxisValueAnimation(n,h)}}));return Promise.all(c).then(u)},e.prototype.startAxisValueAnimation=function(e,t){return kg(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Dm((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Dm((function(n){if(ty(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n],o=a.min,s=a.max;i.set(e[n]-wp(o,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,a=this.visualElement.projection;if(qd(i)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};Dm((function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();o[e]=function(e,t){var n=.5,r=Sm(e),i=Sm(t);return i>r?n=xp(t.min,t.max-r,e.min):r>i&&(n=xp(e.min,e.max-i,t.min)),op(0,1,n)}({min:r,max:r},t.constraints[e])}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),Dm((function(e){if(ty(e,r,null)){var n=t.getAxisMotionValue(e),i=t.constraints[e],a=i.min,s=i.max;n.set(wp(a,s,o[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Zm.set(this.visualElement,this);var n=Lh(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)})),r=function(){qd(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,a=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();var o=wh(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return i.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(Dm((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){o(),n(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,i=void 0!==r&&r,a=e.dragPropagation,o=void 0!==a&&a,s=e.dragConstraints,u=void 0!==s&&s,l=e.dragElastic,c=void 0===l?Im:l,d=e.dragMomentum,f=void 0===d||d;return _d(_d({},e),{drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:u,dragElastic:c,dragMomentum:f})},e}();function ty(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}var ny={pan:rp((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,a=e.visualElement,o=t||n||r||i,s=(0,f.useRef)(null),u=(0,f.useContext)(Dd).transformPagePoint,l={onSessionStart:i,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};(0,f.useEffect)((function(){null!==s.current&&s.current.updateHandlers(l)})),Dh(a,"pointerdown",o&&function(e){s.current=new gm(e,l,{transformPagePoint:u})}),qh((function(){return s.current&&s.current.end()}))})),drag:rp((function(e){var t=e.dragControls,n=e.visualElement,r=gd((function(){return new ey(n)}));(0,f.useEffect)((function(){return t&&t.subscribe(r)}),[r,t]),(0,f.useEffect)((function(){return r.addListeners()}),[r])}))},ry=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];var iy=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,a=e.makeTargetAnimatable,o=e.measureViewportBox,s=e.render,u=e.readValueFromInstance,l=e.removeValueFromRenderState,c=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,h=e.props,p=e.presenceId,v=e.blockInitialAnimation,g=e.visualState,m=e.shouldReduceMotion;void 0===t&&(t={});var y,b,x=!1,w=g.latestValues,k=g.renderState,S=function(){var e=ry.map((function(){return new Hg})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){ry.forEach((function(r){var i,a="on"+r,o=e[a];null===(i=t[r])||void 0===i||i.call(t),o&&(t[r]=n[a](o))}))}};return e.forEach((function(e,t){n["on"+ry[t]]=function(t){return e.add(t)},n["notify"+ry[t]]=function(){for(var t=[],n=0;n=0?window.pageYOffset:null,l=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),a=getComputedStyle(i),o=a.display,s={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=wy[e](r,a)})),t.syncRender();var u=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);vy(r,s[n]),e[n]=wy[n](u,a)})),e}(t,e,s);return a.length&&a.forEach((function(t){var n=Od(t,2),r=n[0],i=n[1];e.getValue(r).set(i)})),e.syncRender(),null!==u&&window.scrollTo({top:u}),{target:l,transitionEnd:r}}return{target:t,transitionEnd:r}};var Sy=function(e,t,n,r){var i=function(e,t,n){var r,i=Ed(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:i,transitionEnd:n};for(var o in n&&(n=_d({},n)),e.forEachValue((function(e){var t=e.get();if(sy(t)){var n=cy(t,a);n&&e.set(n)}})),i){var s=i[o];if(sy(s)){var u=cy(s,a);u&&(i[o]=u,n&&(null!==(r=n[o])&&void 0!==r||(n[o]=s)))}}return{target:i,transitionEnd:n}}(e,t,r);return function(e,t,n,r){return py(t)?ky(e,t,n,r):{target:t,transitionEnd:r}}(e,t=i.target,n,r=i.transitionEnd)};var _y={treeType:"dom",readValueFromInstance:function(e,t){if(vf(t)){var n=hg(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(wf(t)?i.getPropertyValue(t):i[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Qm(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;void 0===r&&(r=!0);var a=t.transition,o=t.transitionEnd,s=Ed(t,["transition","transitionEnd"]),u=function(e,t,n){var r,i,a={};for(var o in e)a[o]=null!==(r=em(o,t))&&void 0!==r?r:null===(i=n.getValue(o))||void 0===i?void 0:i.get();return a}(s,a||{},e);if(i&&(o&&(o=i(o)),s&&(s=i(s)),u&&(u=i(u))),r){!function(e,t,n){var r,i,a,o,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),u=s.length;if(u)for(var l=0;l5)return i;var u=Wp.createTransformer(e),l="number"!==typeof s[0]?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;s[0+l]/=c,s[1+l]/=d;var f=wp(c,d,.5);"number"===typeof s[2+l]&&(s[2+l]/=f),"number"===typeof s[3+l]&&(s[3+l]/=f);var h=u(s);if(a){var p=0;h=h.replace(jy,(function(){var e=o[p];return p++,e}))}return h}},Iy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Sd(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,a=n.switchLayoutGroup,o=n.layoutId,s=r.projection;e=Ry,Object.assign(cf,e),s&&((null===i||void 0===i?void 0:i.group)&&i.group.add(s),(null===a||void 0===a?void 0:a.register)&&o&&a.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(_d(_d({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),ef.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,a=n.drag,o=n.isPresent,s=i.projection;return s?(s.isPresent=o,a||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||Vg.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null===n||void 0===n?void 0:n.group)&&n.group.remove(i),(null===r||void 0===r?void 0:r.deregister)&&r.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null===e||void 0===e||e()},t.prototype.render=function(){return null},t}(f.Component);var Ry={borderRadius:_d(_d({},Py),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Py,borderTopRightRadius:Py,borderBottomLeftRadius:Py,borderBottomRightRadius:Py,boxShadow:Ay},My={measureLayout:function(e){var t=Od(xd(),2),n=t[0],r=t[1],i=(0,f.useContext)(nf);return f.createElement(Iy,_d({},e,{layoutGroup:i,switchLayoutGroup:(0,f.useContext)(rf),isPresent:n,safeToRemove:r}))}};var Ny=["TopLeft","TopRight","BottomLeft","BottomRight"],Ly=Ny.length,Dy=function(e){return"string"===typeof e?parseFloat(e):e},Fy=function(e){return"number"===typeof e||If.test(e)};function zy(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var By=Uy(0,.5,uv),Vy=Uy(.5,.95,rv);function Uy(e,t,n){return function(r){return rt?1:n(xp(e,t,r))}}function Wy(e,t){e.min=t.min,e.max=t.max}function Hy(e,t){Wy(e.x,t.x),Wy(e.y,t.y)}function qy(e,t,n,r,i){return e=Wm(e-=t,1/n,r),void 0!==i&&(e=Wm(e,1/i,r)),e}function Yy(e,t,n,r,i){var a=Od(n,3),o=a[0],s=a[1],u=a[2];!function(e,t,n,r,i,a,o){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===o&&(o=e),Af.test(t)&&(t=parseFloat(t),t=wp(o.min,o.max,t/100)-o.min),"number"===typeof t){var s=wp(a.min,a.max,r);e===a&&(s-=t),e.min=qy(e.min,t,n,s,i),e.max=qy(e.max,t,n,s,i)}}(e,t[o],t[s],t[u],t.scale,r,i)}var Ky=["x","scaleX","originX"],Gy=["y","scaleY","originY"];function Xy(e,t,n,r){Yy(e.x,t,Ky,null===n||void 0===n?void 0:n.x,null===r||void 0===r?void 0:r.x),Yy(e.y,t,Gy,null===n||void 0===n?void 0:n.y,null===r||void 0===r?void 0:r.y)}function $y(e){return 0===e.translate&&1===e.scale}function Jy(e){return $y(e.x)&&$y(e.y)}function Qy(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Zy=function(){function e(){this.members=[]}return e.prototype.add=function(e){Ug(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Wg(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,i,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===a||a.call(i)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),eb="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function tb(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,a="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var o=n.rotate,s=n.rotateX,u=n.rotateY;o&&(a+="rotate(".concat(o,"deg) ")),s&&(a+="rotateX(".concat(s,"deg) ")),u&&(a+="rotateY(".concat(u,"deg) "))}var l=e.x.scale*t.x,c=e.y.scale*t.y;return(a+="scale(".concat(l,", ").concat(c,")"))===eb?"none":a}var nb=function(e,t){return e.depth-t.depth},rb=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Ug(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Wg(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(nb),this.isDirty=!1,this.children.forEach(e)},e}(),ib=1e3;function ab(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,r){var i=this;void 0===t&&(t={}),void 0===r&&(r=null===n||void 0===n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(fb),i.nodes.forEach(hb)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Td(Td([],Od(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var i=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function wb(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function kb(e){wb(e.x),wb(e.y)}var Sb=ab({attachResizeListener:function(e,t){return wh(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),_b={current:void 0},Eb=ab({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!_b.current){var e=new Sb(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),_b.current=e}return _b.current},resetTransform:function(e,t){e.style.transform=null!==t&&void 0!==t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),Cb=_d(_d(_d(_d({},dm),ip),ny),My),Ob=sf((function(e,t){return function(e,t,n,r,i){var a=t.forwardMotionProps,o=void 0!==a&&a,s=lf(e)?bh:xh;return _d(_d({},s),{preloadedFeatures:n,useRender:nh(o),createVisualElement:r,projectionNodeConstructor:i,Component:e})}(e,t,Cb,Oy,Eb)}));var Tb=new Set([].concat(lt(Xn),["textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),Pb=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function jb(e){return Pb.has(e)||!Tb.has(e)}var Ab=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},Ib=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Rb=Ab((function(e){return Ib.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Mb=function(e){return"theme"!==e},Nb=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?Rb:Mb},Lb=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},Db=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Ve(t,n,r);Me((function(){return Ue(t,n,r)}));return null},Fb=function e(t,n){var r,i,a=t.__emotion_real===t,o=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=Lb(t,n,a),u=s||Nb(o),l=!u("as");return function(){var c=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{0,d.push(c[0][0]);for(var h=c.length,p=1;p1?n-1:0),i=1;i` or ``");return e}Xb.displayName="ToastComponent";var Qb=n(77),Zb=["styleConfig"];function ex(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.styleConfig,i=d(n,Zb),a=function(){var e=at(),t=Jb();return l(l({},e),{},{theme:t})}(),o=a.theme,s=a.colorMode,u=e?ar(o,"components.".concat(e)):void 0,c=r||u,h=mt({theme:o,colorMode:s},null!=(t=null==c?void 0:c.defaultProps)?t:{},sr(function(e,t){var n={};return Object.keys(e).forEach((function(r){t.includes(r)||(n[r]=e[r])})),n}(i,["children"]))),p=(0,f.useRef)({});if(c){var v=function(e){return function(t){var n,r=t.variant,i=t.size,a=rr(t.theme);return mt({},ht(null!=(n=e.baseStyle)?n:{},t),a(e,"sizes",i,t),a(e,"variants",r,t))}}(c),g=v(h);Qb(p.current,g)||(p.current=g)}return p.current}function tx(e){return ex(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function nx(e){return ex(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}var rx=["as","viewBox","color","focusable","children","className","__css"],ix={path:(0,e.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,e.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,e.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,e.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},ax=$b((function(t,n){var r=t.as,i=t.viewBox,a=t.color,o=void 0===a?"currentColor":a,s=t.focusable,u=void 0!==s&&s,c=t.children,f=t.className,h=t.__css,p=d(t,rx),v=dt("chakra-icon",f),g=tx("Icon",t),m={ref:n,focusable:u,className:v,__css:l(l({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o},h),g)},y=null!=i?i:ix.viewBox;if(r&&"string"!==typeof r)return(0,e.jsx)(Kb.svg,l(l({as:r},m),p));var b=null!=c?c:ix.path;return(0,e.jsx)(Kb.svg,l(l(l({verticalAlign:"middle",viewBox:y},m),p),{},{children:b}))}));ax.displayName="Icon";function ox(t){return(0,e.jsx)(ax,l(l({viewBox:"0 0 24 24"},t),{},{children:(0,e.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})}))}var sx=["label","thickness","speed","emptyColor","className"],ux=function(){var e=He.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),lx=$b((function(t,n){var r=tx("Spinner",t),i=ir(t),a=i.label,o=void 0===a?"Loading...":a,s=i.thickness,u=void 0===s?"2px":s,c=i.speed,f=void 0===c?"0.45s":c,h=i.emptyColor,p=void 0===h?"transparent":h,v=i.className,g=d(i,sx),m=dt("chakra-spinner",v),y=l({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:u,borderBottomColor:p,borderLeftColor:p,animation:"".concat(ux," ").concat(f," linear infinite")},r);return(0,e.jsx)(Kb.div,l(l({ref:n,__css:y,className:m},g),{},{children:o&&(0,e.jsx)(Kb.span,{srOnly:!0,children:o})}))}));lx.displayName="Spinner";var cx=Qe(Ze({name:"AlertContext",hookName:"useAlertContext",providerName:""}),2),dx=cx[0],fx=cx[1],hx=Qe(Ze({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),2),px=hx[0],vx=hx[1],gx={info:{icon:function(t){return(0,e.jsx)(ax,l(l({viewBox:"0 0 24 24"},t),{},{children:(0,e.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})}))},colorScheme:"blue"},warning:{icon:ox,colorScheme:"orange"},success:{icon:function(t){return(0,e.jsx)(ax,l(l({viewBox:"0 0 24 24"},t),{},{children:(0,e.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})}))},colorScheme:"green"},error:{icon:ox,colorScheme:"red"},loading:{icon:lx,colorScheme:"blue"}};var mx=["status","addRole"],yx=$b((function(t,n){var r,i=ir(t),a=i.status,o=void 0===a?"info":a,s=i.addRole,u=void 0===s||s,c=d(i,mx),f=null!=(r=t.colorScheme)?r:function(e){return gx[e].colorScheme}(o),h=nx("Alert",l(l({},t),{},{colorScheme:f})),p=l({width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden"},h.container);return(0,e.jsx)(dx,{value:{status:o},children:(0,e.jsx)(px,{value:h,children:(0,e.jsx)(Kb.div,l(l({role:u?"alert":void 0,ref:n},c),{},{className:dt("chakra-alert",t.className),__css:p}))})})}));function bx(t){var n=fx().status,r=function(e){return gx[e].icon}(n),i=vx(),a="loading"===n?i.spinner:i.icon;return(0,e.jsx)(Kb.span,l(l({display:"inherit"},t),{},{className:dt("chakra-alert__icon",t.className),__css:a,children:t.children||(0,e.jsx)(r,{h:"100%",w:"100%"})}))}yx.displayName="Alert",bx.displayName="AlertIcon";var xx=$b((function(t,n){var r=vx();return(0,e.jsx)(Kb.div,l(l({ref:n},t),{},{className:dt("chakra-alert__title",t.className),__css:r.title}))}));xx.displayName="AlertTitle";var wx=$b((function(t,n){var r=l({display:"inline"},vx().description);return(0,e.jsx)(Kb.div,l(l({ref:n},t),{},{className:dt("chakra-alert__desc",t.className),__css:r}))}));wx.displayName="AlertDescription";var kx=["children","isDisabled","__css"];function Sx(t){return(0,e.jsx)(ax,l(l({focusable:"false","aria-hidden":!0},t),{},{children:(0,e.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})}))}var _x=$b((function(t,n){var r=tx("CloseButton",t),i=ir(t),a=i.children,o=i.isDisabled,s=i.__css,u=d(i,kx);return(0,e.jsx)(Kb.button,l(l({type:"button","aria-label":"Close",ref:n,disabled:o,__css:l(l(l({},{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}),r),s)},u),{},{children:a||(0,e.jsx)(Sx,{width:"1em",height:"1em"})}))}));_x.displayName="CloseButton";var Ex=function(e){var t=e,n=new Set,r=function(e){t=e(t),n.forEach((function(e){return e()}))};return{getState:function(){return t},subscribe:function(t){return n.add(t),function(){r((function(){return e})),n.delete(t)}},removeToast:function(e,t){r((function(n){return l(l({},n),{},s({},t,n[t].filter((function(t){return t.id!=e}))))}))},notify:function(e,t){var n=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Cx+=1;var i=null!=(t=r.id)?t:Cx,a=null!=(n=r.position)?n:"bottom";return{id:i,message:e,position:a,duration:r.duration,onCloseComplete:r.onCloseComplete,onRequestRemove:function(){return Ex.removeToast(String(i),a)},status:r.status,requestClose:!1,containerStyle:r.containerStyle}}(e,t),i=n.position,a=n.id;return r((function(e){var t,r,a=i.includes("top")?[n].concat(lt(null!=(t=e[i])?t:[])):[].concat(lt(null!=(r=e[i])?r:[]),[n]);return l(l({},e),{},s({},i,a))})),a},update:function(e,t){e&&r((function(n){var r=l({},n),i=cd(r,e),a=i.position,o=i.index;return a&&-1!==o&&(r[a][o]=l(l(l({},r[a][o]),t),{},{message:Tx(t)})),r}))},closeAll:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).positions;r((function(t){return(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((function(e,n){return e[n]=t[n].map((function(e){return l(l({},e),{},{requestClose:!0})})),e}),l({},t))}))},close:function(e){r((function(t){var n=dd(t,e);return n?l(l({},t),{},s({},n,t[n].map((function(t){return t.id==e?l(l({},t),{},{requestClose:!0}):t})))):t}))},isActive:function(e){return Boolean(cd(Ex.getState(),e).position)}}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]});var Cx=0;var Ox=function(t){var n=t.status,r=t.variant,i=void 0===r?"solid":r,a=t.id,o=t.title,s=t.isClosable,u=t.onClose,l=t.description,c=t.icon,d=a?{root:"toast-".concat(a),title:"toast-".concat(a,"-title"),description:"toast-".concat(a,"-description")}:void 0;return(0,e.jsxs)(yx,{addRole:!1,status:n,variant:i,id:null==d?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",children:[(0,e.jsx)(bx,{children:c}),(0,e.jsxs)(Kb.div,{flex:"1",maxWidth:"100%",children:[o&&(0,e.jsx)(xx,{id:null==d?void 0:d.title,children:o}),l&&(0,e.jsx)(wx,{id:null==d?void 0:d.description,display:"block",children:l})]}),s&&(0,e.jsx)(_x,{size:"sm",onClick:u,position:"absolute",insetEnd:1,top:1})]})};function Tx(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.render,r=t.toastComponent,i=void 0===r?Ox:r;return function(r){return"function"===typeof n?n(l(l({},r),t)):(0,e.jsx)(i,l(l({},r),t))}}function Px(){var e=(0,f.useRef)(!1);return Bd((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var jx=function(e){var t=e.children,n=e.initial,r=e.isPresent,i=e.onExitComplete,a=e.custom,o=e.presenceAffectsLayout,s=gd(Ax),u=bd(),l=(0,f.useMemo)((function(){return{id:u,initial:n,isPresent:r,custom:a,onExitComplete:function(e){var t,n;s.set(e,!0);try{for(var r=Cd(s.values()),a=r.next();!a.done;a=r.next()){if(!a.value)return}}catch(o){t={error:o}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null===i||void 0===i||i()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}}),o?void 0:[r]);return(0,f.useMemo)((function(){s.forEach((function(e,t){return s.set(t,!1)}))}),[r]),f.useEffect((function(){!r&&!s.size&&(null===i||void 0===i||i())}),[r]),f.createElement(vd.Provider,{value:l},t)};function Ax(){return new Map}var Ix=function(e){return e.key||""};var Rx=function(e){var t=e.children,n=e.custom,r=e.initial,i=void 0===r||r,a=e.onExitComplete,o=e.exitBeforeEnter,s=e.presenceAffectsLayout,u=void 0===s||s,l=Od(function(){var e=Px(),t=Od((0,f.useState)(0),2),n=t[0],r=t[1],i=(0,f.useCallback)((function(){e.current&&r(n+1)}),[n]);return[(0,f.useCallback)((function(){return Vg.postRender(i)}),[i]),n]}(),1),c=l[0],d=(0,f.useContext)(nf).forceRender;d&&(c=d);var h=Px(),p=function(e){var t=[];return f.Children.forEach(e,(function(e){(0,f.isValidElement)(e)&&t.push(e)})),t}(t),v=p,g=new Set,m=(0,f.useRef)(v),y=(0,f.useRef)(new Map).current,b=(0,f.useRef)(!0);if(Bd((function(){b.current=!1,function(e,t){e.forEach((function(e){var n=Ix(e);t.set(n,e)}))}(p,y),m.current=v})),qh((function(){b.current=!0,y.clear(),g.clear()})),b.current)return f.createElement(f.Fragment,null,v.map((function(e){return f.createElement(jx,{key:Ix(e),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:u},e)})));v=Td([],Od(v),!1);for(var x=m.current.map(Ix),w=p.map(Ix),k=x.length,S=0;S1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),f.createElement(f.Fragment,null,g.size?v:v.map((function(e){return(0,f.cloneElement)(e)})))},Mx=n(4164),Nx=["containerRef"],Lx=Qe(Ze({strict:!1,name:"PortalContext"}),2),Dx=Lx[0],Fx=Lx[1],zx="chakra-portal",Bx=function(t){return(0,e.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:t.zIndex,top:0,left:0,right:0},children:t.children})},Vx=function(t){var n=t.appendToParentPortal,r=t.children,i=Qe((0,f.useState)(null),2),a=i[0],o=i[1],s=(0,f.useRef)(null),u=Qe((0,f.useState)({}),2)[1];(0,f.useEffect)((function(){return u({})}),[]);var l=Fx(),c=nt();xr((function(){if(a){var e=a.ownerDocument,t=n&&null!=l?l:e.body;if(t){s.current=e.createElement("div"),s.current.className=zx,t.appendChild(s.current),u({});var r=s.current;return function(){t.contains(r)&&t.removeChild(r)}}}}),[a]);var d=(null==c?void 0:c.zIndex)?(0,e.jsx)(Bx,{zIndex:null==c?void 0:c.zIndex,children:r}):r;return s.current?(0,Mx.createPortal)((0,e.jsx)(Dx,{value:s.current,children:d}),s.current):(0,e.jsx)("span",{ref:function(e){e&&o(e)}})},Ux=function(t){var n=t.children,r=t.containerRef,i=t.appendToParentPortal,a=r.current,o=null!=a?a:"undefined"!==typeof window?document.body:void 0,s=(0,f.useMemo)((function(){var e=null==a?void 0:a.ownerDocument.createElement("div");return e&&(e.className=zx),e}),[a]),u=Qe((0,f.useState)({}),2)[1];return xr((function(){return u({})}),[]),xr((function(){if(s&&o)return o.appendChild(s),function(){o.removeChild(s)}}),[s,o]),o&&s?(0,Mx.createPortal)((0,e.jsx)(Dx,{value:i?s:null,children:n}),s):null};function Wx(t){var n=l({appendToParentPortal:!0},t),r=n.containerRef,i=d(n,Nx);return r?(0,e.jsx)(Ux,l({containerRef:r},i)):(0,e.jsx)(Vx,l({},i))}Wx.className=zx,Wx.selector=".chakra-portal",Wx.displayName="Portal";var Hx=Qe(Ze({name:"ToastOptionsContext",strict:!1}),2),qx=Hx[0],Yx=(Hx[1],function(t){var n=(0,f.useSyncExternalStore)(Ex.subscribe,Ex.getState,Ex.getState),r=t.motionVariants,i=t.component,a=void 0===i?Xb:i,o=t.portalProps,s=Object.keys(n).map((function(t){var i=n[t];return(0,e.jsx)("ul",{role:"region","aria-live":"polite",id:"chakra-toast-manager-".concat(t),style:fd(t),children:(0,e.jsx)(Rx,{initial:!1,children:i.map((function(t){return(0,e.jsx)(a,l({motionVariants:r},t),t.id)}))})},t)}));return(0,e.jsx)(Wx,l(l({},o),{},{children:s}))}),Kx=["children","theme","toastOptions"],Gx=function(t){return function(n){var r=n.children,i=n.theme,a=void 0===i?t:i,o=n.toastOptions,s=d(n,Kx);return(0,e.jsxs)(Cr,l(l({theme:a},s),{},{children:[(0,e.jsx)(qx,{value:null==o?void 0:o.defaultOptions,children:r}),(0,e.jsx)(Yx,l({},o))]}))}},Xx=Gx(sd),$x=(Gx(ud),n(1250)),Jx=n(4682);function Qx(e,t){if(e in t){for(var n=t[e],r=arguments.length,i=new Array(r>2?r-2:0),a=2;a1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=cw(e,["unmount","static"]),o=a.as,u=void 0===o?r:o,l=a.children,c=a.refName,h=void 0===c?"ref":c,p=d(a,nw),v=void 0!==e.ref?s({},h,e.ref):{},g="function"==typeof l?l(n):l;"className"in p&&p.className&&"function"==typeof p.className&&(p.className=p.className(n));var m={};if(n){for(var y=!1,b=[],x=0,w=Object.entries(n);x0){if(!(0,f.isValidElement)(g)||Array.isArray(g)&&g.length>1)throw new Error(['Passing props on "Fragment"!',"","The current component <".concat(i,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(p).map((function(e){return" - ".concat(e)})).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((function(e){return" - ".concat(e)})).join("\n")].join("\n"));var E=Zx(null==(t=g.props)?void 0:t.className,p.className),C=E?{className:E}:{};return(0,f.cloneElement)(g,Object.assign({},sw(g.props,lw(cw(p,["ref"]))),m,v,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?r-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e),i=st(n);try{for(i.s();!(t=i.n()).done;){var a=t.value;a in r&&delete r[a]}}catch(o){i.e(o)}finally{i.f()}return r}var dw=Object.defineProperty,fw=function(e,t,n){return function(e,t,n){t in e?dw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},hw=function(){function e(){Qi(this,e),fw(this,"current",this.detect()),fw(this,"handoffState","pending"),fw(this,"currentId",0)}return Ji(e,[{key:"set",value:function(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}},{key:"reset",value:function(){this.set(this.detect())}},{key:"nextId",value:function(){return++this.currentId}},{key:"isServer",get:function(){return"server"===this.current}},{key:"isClient",get:function(){return"client"===this.current}},{key:"detect",value:function(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}},{key:"handoff",value:function(){"pending"===this.handoffState&&(this.handoffState="complete")}},{key:"isHandoffComplete",get:function(){return"complete"===this.handoffState}}]),e}(),pw=new hw,vw=function(e,t){pw.isServer?(0,f.useEffect)(e,t):(0,f.useLayoutEffect)(e,t)};function gw(e){var t=(0,f.useRef)(e);return vw((function(){t.current=e}),[e]),t}var mw,yw=function(e){var t=gw(e);return f.useCallback((function(){return t.current.apply(t,arguments)}),[t])},bw=Symbol();function xw(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object.assign(e,s({},bw,t))}function ww(){for(var e=arguments.length,t=new Array(e),n=0;n is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(n,Ww),n}return t}Uw.displayName="DisclosureContext";var Hw=(0,f.createContext)(null);function qw(e){var t=(0,f.useContext)(Hw);if(null===t){var n=new Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(n,qw),n}return t}Hw.displayName="DisclosureAPIContext";var Yw=(0,f.createContext)(null);function Kw(e,t){return Qx(t.type,Vw,e,t)}Yw.displayName="DisclosurePanelContext";var Gw=f.Fragment;var Xw="button";var $w="div",Jw=rw.RenderStrategy|rw.Static;var Qw=uw((function(e,t){var n,r=e.defaultOpen,i=void 0!==r&&r,a=d(e,Lw),o=(0,f.useRef)(null),u=ww(t,xw((function(e){o.current=e}),void 0===e.as||e.as===f.Fragment)),l=(0,f.useRef)(null),c=(0,f.useRef)(null),h=(0,f.useReducer)(Kw,{disclosureState:i?0:1,linkedPanel:!1,buttonRef:c,panelRef:l,buttonId:null,panelId:null}),p=Qe(h,2),v=p[0],g=v.disclosureState,m=v.buttonId,y=p[1],b=yw((function(e){y({type:1});var t=Rw(o);if(t&&m){var n=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(m):t.getElementById(m);null==n||n.focus()}})),x=(0,f.useMemo)((function(){return{close:b}}),[b]),w=(0,f.useMemo)((function(){return{open:0===g,close:b}}),[g,b]),k={ref:u};return f.createElement(Uw.Provider,{value:h},f.createElement(Hw.Provider,{value:x},f.createElement(jw,{value:Qx(g,(n={},s(n,0,Tw.Open),s(n,1,Tw.Closed),n))},aw({ourProps:k,theirProps:a,slot:w,defaultTag:Gw,name:"Disclosure"}))))})),Zw=uw((function(e,t){var n=Sw(),r=e.id,i=void 0===r?"headlessui-disclosure-button-".concat(n):r,a=d(e,Dw),o=Qe(Ww("Disclosure.Button"),2),s=o[0],u=o[1],l=(0,f.useContext)(Yw),c=null!==l&&l===s.panelId,h=(0,f.useRef)(null),p=ww(h,t,c?null:s.buttonRef);(0,f.useEffect)((function(){if(!c)return u({type:2,buttonId:i}),function(){u({type:2,buttonId:null})}}),[i,u,c]);var v=yw((function(e){var t;if(c){if(1===s.disclosureState)return;switch(e.key){case _w.Space:case _w.Enter:e.preventDefault(),e.stopPropagation(),u({type:0}),null==(t=s.buttonRef.current)||t.focus()}}else switch(e.key){case _w.Space:case _w.Enter:e.preventDefault(),e.stopPropagation(),u({type:0})}})),g=yw((function(e){if(e.key===_w.Space)e.preventDefault()})),m=yw((function(t){var n;Ew(t.currentTarget)||e.disabled||(c?(u({type:0}),null==(n=s.buttonRef.current)||n.focus()):u({type:0}))})),y=(0,f.useMemo)((function(){return{open:0===s.disclosureState}}),[s]),b=Iw(e,h);return aw({ourProps:c?{ref:p,type:b,onKeyDown:v,onClick:m}:{ref:p,id:i,type:b,"aria-expanded":e.disabled?void 0:0===s.disclosureState,"aria-controls":s.linkedPanel?s.panelId:void 0,onKeyDown:v,onKeyUp:g,onClick:m},theirProps:a,slot:y,defaultTag:Xw,name:"Disclosure.Button"})})),ek=uw((function(e,t){var n=Sw(),r=e.id,i=void 0===r?"headlessui-disclosure-panel-".concat(n):r,a=d(e,Fw),o=Qe(Ww("Disclosure.Panel"),2),s=o[0],u=o[1],l=qw("Disclosure.Panel").close,c=ww(t,s.panelRef,(function(e){Nw((function(){return u({type:e?4:5})}))}));(0,f.useEffect)((function(){return u({type:3,panelId:i}),function(){u({type:3,panelId:null})}}),[i,u]);var h=Pw(),p=null!==h?(h&Tw.Open)===Tw.Open:0===s.disclosureState,v=(0,f.useMemo)((function(){return{open:0===s.disclosureState,close:l}}),[s,l]),g={ref:c,id:i};return f.createElement(Yw.Provider,{value:s.panelId},aw({ourProps:g,theirProps:a,slot:v,defaultTag:$w,features:Jw,visible:p,name:"Disclosure.Panel"}))})),tk=Object.assign(Qw,{Button:Zw,Panel:ek});function nk(){var e=[],t={addEventListener:function(e,n,r,i){return e.addEventListener(n,r,i),t.add((function(){return e.removeEventListener(n,r,i)}))},requestAnimationFrame:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=requestAnimationFrame.apply(void 0,arguments);return t.add((function(){return cancelAnimationFrame(e)}))})),nextFrame:function(){for(var e=arguments.length,n=new Array(e),r=0;r=0){var r,i=st(e.splice(n,1));try{for(i.s();!(r=i.n()).done;){(0,r.value)()}}catch(a){i.e(a)}finally{i.f()}}}},dispose:function(){var t,n=st(e.splice(0));try{for(n.s();!(t=n.n()).done;){(0,t.value)()}}catch(r){n.e(r)}finally{n.f()}}};return t}function rk(){var e=Qe((0,f.useState)(nk),1)[0];return(0,f.useEffect)((function(){return function(){return e.dispose()}}),[e]),e}var ik=function(e){return e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e}(ik||{});function ak(e,t){var n=t.resolveItems();if(n.length<=0)return null;var r=t.resolveActiveIndex(),i=null!=r?r:-1,a=function(){switch(e.focus){case 0:return n.findIndex((function(e){return!t.resolveDisabled(e)}));case 1:var r=n.slice().reverse().findIndex((function(e,n,r){return!(-1!==i&&r.length-n-1>=i)&&!t.resolveDisabled(e)}));return-1===r?r:n.length-1-r;case 2:return n.findIndex((function(e,n){return!(n<=i)&&!t.resolveDisabled(e)}));case 3:var a=n.slice().reverse().findIndex((function(e){return!t.resolveDisabled(e)}));return-1===a?a:n.length-1-a;case 4:return n.findIndex((function(n){return t.resolveId(n)===e.id}));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}();return-1===a?r:a}var ok=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((function(e){return"".concat(e,":not([tabindex='-1'])")})).join(","),sk=function(e){return e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e}(sk||{}),uk=function(e){return e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e}(uk||{}),lk=function(e){return e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e}(lk||{});function ck(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(ok)).sort((function(e,t){return Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))}))}var dk=function(e){return e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e}(dk||{});function fk(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(n=Rw(e))?void 0:n.body)&&Qx(r,(s(t={},0,(function(){return e.matches(ok)})),s(t,1,(function(){for(var t=e;null!==t;){if(t.matches(ok))return!0;t=t.parentElement}return!1})),t))}function hk(e){var t=Rw(e);nk().nextFrame((function(){t&&!fk(t.activeElement,0)&&function(e){null==e||e.focus({preventScroll:!0})}(e)}))}var pk=["textarea","input"].join(",");function vk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};return e.slice().sort((function(e,n){var r=t(e),i=t(n);if(null===r||null===i)return 0;var a=r.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function gk(e,t){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.sorted,i=void 0===r||r,a=n.relativeTo,o=void 0===a?null:a,s=n.skipElements,u=void 0===s?[]:s,l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,c=Array.isArray(e)?i?vk(e):e:ck(e);u.length>0&&c.length>1&&(c=c.filter((function(e){return!u.includes(e)}))),o=null!=o?o:l.activeElement;var d,f=function(){if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),h=function(){if(1&t)return 0;if(2&t)return Math.max(0,c.indexOf(o))-1;if(4&t)return Math.max(0,c.indexOf(o))+1;if(8&t)return c.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),p=32&t?{preventScroll:!0}:{},v=0,g=c.length;do{if(v>=g||v+g<=0)return 0;var m=h+v;if(16&t)m=(m+g)%g;else{if(m<0)return 3;if(m>=g)return 1}null==(d=c[m])||d.focus(p),v+=f}while(d!==l.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,pk))&&n}(d)&&d.select(),d.hasAttribute("tabindex")||d.setAttribute("tabindex","0"),2}(ck(),t,{relativeTo:e})}function mk(e,t,n){var r=gw(t);(0,f.useEffect)((function(){function t(e){r.current(e)}return document.addEventListener(e,t,n),function(){return document.removeEventListener(e,t,n)}}),[e,n])}function yk(e){return[e.screenX,e.screenY]}var bk,xk=["id"],wk=["id"],kk=["id","disabled"],Sk=function(e){return e[e.Open=0]="Open",e[e.Closed=1]="Closed",e}(Sk||{}),_k=function(e){return e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e}(_k||{}),Ek=function(e){return e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e}(Ek||{});function Ck(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=vk(t(e.items.slice()),(function(e){return e.dataRef.current.domRef.current})),i=n?r.indexOf(n):null;return-1===i&&(i=null),{items:r,activeItemIndex:i}}var Ok=(s(bk={},1,(function(e){return 1===e.menuState?e:l(l({},e),{},{activeItemIndex:null,menuState:1})})),s(bk,0,(function(e){return 0===e.menuState?e:l(l({},e),{},{menuState:0})})),s(bk,2,(function(e,t){var n,r=Ck(e),i=ak(t,{resolveItems:function(){return r.items},resolveActiveIndex:function(){return r.activeItemIndex},resolveId:function(e){return e.id},resolveDisabled:function(e){return e.dataRef.current.disabled}});return l(l(l({},e),r),{},{searchQuery:"",activeItemIndex:i,activationTrigger:null!=(n=t.trigger)?n:1})})),s(bk,3,(function(e,t){var n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find((function(e){var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled})),a=i?e.items.indexOf(i):-1;return-1===a||a===e.activeItemIndex?l(l({},e),{},{searchQuery:r}):l(l({},e),{},{searchQuery:r,activeItemIndex:a,activationTrigger:1})})),s(bk,4,(function(e){return""===e.searchQuery?e:l(l({},e),{},{searchQuery:"",searchActiveItemIndex:null})})),s(bk,5,(function(e,t){var n=Ck(e,(function(e){return[].concat(lt(e),[{id:t.id,dataRef:t.dataRef}])}));return l(l({},e),n)})),s(bk,6,(function(e,t){var n=Ck(e,(function(e){var n=e.findIndex((function(e){return e.id===t.id}));return-1!==n&&e.splice(n,1),e}));return l(l(l({},e),n),{},{activationTrigger:1})})),bk),Tk=(0,f.createContext)(null);function Pk(e){var t=(0,f.useContext)(Tk);if(null===t){var n=new Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(n,Pk),n}return t}function jk(e,t){return Qx(t.type,Ok,e,t)}Tk.displayName="MenuContext";var Ak=f.Fragment;var Ik="button";var Rk="div",Mk=rw.RenderStrategy|rw.Static;var Nk=f.Fragment;var Lk=uw((function(e,t){var n,r=(0,f.useReducer)(jk,{menuState:1,buttonRef:(0,f.createRef)(),itemsRef:(0,f.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),i=Qe(r,2),a=i[0],o=a.menuState,u=a.itemsRef,l=a.buttonRef,c=i[1],d=ww(t);!function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=(0,f.useRef)(!1);function i(n,i){if(r.current&&!n.defaultPrevented){var a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),o=i(n);if(null!==o&&o.getRootNode().contains(o)){var s,u=st(a);try{for(u.s();!(s=u.n()).done;){var l=s.value;if(null!==l){var c=l instanceof HTMLElement?l:l.current;if(null!=c&&c.contains(o)||n.composed&&n.composedPath().includes(c))return}}}catch(d){u.e(d)}finally{u.f()}return!fk(o,dk.Loose)&&-1!==o.tabIndex&&n.preventDefault(),t(n,o)}}}(0,f.useEffect)((function(){requestAnimationFrame((function(){r.current=n}))}),[n]);var a=(0,f.useRef)(null);mk("mousedown",(function(e){var t,n;r.current&&(a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),mk("click",(function(e){a.current&&(i(e,(function(){return a.current})),a.current=null)}),!0),mk("blur",(function(e){return i(e,(function(){return window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null}))}),!0)}([l,u],(function(e,t){var n;c({type:1}),fk(t,dk.Loose)||(e.preventDefault(),null==(n=l.current)||n.focus())}),0===o);var h=yw((function(){c({type:1})})),p=(0,f.useMemo)((function(){return{open:0===o,close:h}}),[o,h]),v=e,g={ref:d};return f.createElement(Tk.Provider,{value:r},f.createElement(jw,{value:Qx(o,(n={},s(n,0,Tw.Open),s(n,1,Tw.Closed),n))},aw({ourProps:g,theirProps:v,slot:p,defaultTag:Ak,name:"Menu"})))})),Dk=uw((function(e,t){var n,r=Sw(),i=e.id,a=void 0===i?"headlessui-menu-button-".concat(r):i,o=d(e,xk),s=Qe(Pk("Menu.Button"),2),u=s[0],l=s[1],c=ww(u.buttonRef,t),h=rk(),p=yw((function(e){switch(e.key){case _w.Space:case _w.Enter:case _w.ArrowDown:e.preventDefault(),e.stopPropagation(),l({type:0}),h.nextFrame((function(){return l({type:2,focus:ik.First})}));break;case _w.ArrowUp:e.preventDefault(),e.stopPropagation(),l({type:0}),h.nextFrame((function(){return l({type:2,focus:ik.Last})}))}})),v=yw((function(e){if(e.key===_w.Space)e.preventDefault()})),g=yw((function(t){if(Ew(t.currentTarget))return t.preventDefault();e.disabled||(0===u.menuState?(l({type:1}),h.nextFrame((function(){var e;return null==(e=u.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(t.preventDefault(),l({type:0})))})),m=(0,f.useMemo)((function(){return{open:0===u.menuState}}),[u]);return aw({ourProps:{ref:c,id:a,type:Iw(e,u.buttonRef),"aria-haspopup":"menu","aria-controls":null==(n=u.itemsRef.current)?void 0:n.id,"aria-expanded":e.disabled?void 0:0===u.menuState,onKeyDown:p,onKeyUp:v,onClick:g},theirProps:o,slot:m,defaultTag:Ik,name:"Menu.Button"})})),Fk=uw((function(e,t){var n,r,i=Sw(),a=e.id,o=void 0===a?"headlessui-menu-items-".concat(i):a,s=d(e,wk),u=Qe(Pk("Menu.Items"),2),l=u[0],c=u[1],h=ww(l.itemsRef,t),p=function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),i=1;i0&&(t=e.classList).add.apply(t,r)}function Wk(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0&&(t=e.classList).remove.apply(t,r)}function Hk(e,t,n,r){var i=n?"enter":"leave",a=nk(),o=void 0!==r?function(e){var t={called:!1};return function(){if(!t.called)return t.called=!0,e.apply(void 0,arguments)}}(r):function(){};"enter"===i&&(e.removeAttribute("hidden"),e.style.display="");var s=Qx(i,{enter:function(){return t.enter},leave:function(){return t.leave}}),u=Qx(i,{enter:function(){return t.enterTo},leave:function(){return t.leaveTo}}),l=Qx(i,{enter:function(){return t.enterFrom},leave:function(){return t.leaveFrom}});return Wk.apply(void 0,[e].concat(lt(t.enter),lt(t.enterTo),lt(t.enterFrom),lt(t.leave),lt(t.leaveFrom),lt(t.leaveTo),lt(t.entered))),Uk.apply(void 0,[e].concat(lt(s),lt(l))),a.nextFrame((function(){Wk.apply(void 0,[e].concat(lt(l))),Uk.apply(void 0,[e].concat(lt(u))),function(e,t){var n=nk();if(!e)return n.dispose;var r=getComputedStyle(e),i=[r.transitionDuration,r.transitionDelay].map((function(e){var t=e.split(",").filter(Boolean).map((function(e){return e.includes("ms")?parseFloat(e):1e3*parseFloat(e)})).sort((function(e,t){return t-e})),n=Qe(t,1)[0];return void 0===n?0:n})),a=Qe(i,2),o=a[0]+a[1];if(0!==o){n.group((function(n){n.setTimeout((function(){t(),n.dispose()}),o),n.addEventListener(e,"transitionrun",(function(e){e.target===e.currentTarget&&n.dispose()}))}));var s=n.addEventListener(e,"transitionend",(function(e){e.target===e.currentTarget&&(t(),s())}))}else t();n.add((function(){return t()})),n.dispose}(e,(function(){return Wk.apply(void 0,[e].concat(lt(s))),Uk.apply(void 0,[e].concat(lt(t.entered))),o()}))})),a.dispose}function qk(e){var t=e.container,n=e.direction,r=e.classes,i=e.onStart,a=e.onStop,o=Vk(),s=rk(),u=gw(n);vw((function(){var e=nk();s.add(e.dispose);var n=t.current;if(n&&"idle"!==u.current&&o.current)return e.dispose(),i.current(u.current),e.add(Hk(n,r.current,"enter"===u.current,(function(){e.dispose(),a.current(u.current)}))),e.dispose}),[n])}var Yk=["beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"],Kk=["show","appear","unmount"];function Gk(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(" ").filter((function(e){return e.trim().length>1}))}var Xk=(0,f.createContext)(null);Xk.displayName="TransitionContext";var $k=function(e){return e.Visible="visible",e.Hidden="hidden",e}($k||{});var Jk=(0,f.createContext)(null);function Qk(e){return"children"in e?Qk(e.children):e.current.filter((function(e){return null!==e.el.current})).filter((function(e){return"visible"===e.state})).length>0}function Zk(e,t){var n=gw(e),r=(0,f.useRef)([]),i=Vk(),a=rk(),o=yw((function(e){var t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iw.Hidden,u=r.current.findIndex((function(t){return t.el===e}));-1!==u&&(Qx(o,(s(t={},iw.Unmount,(function(){r.current.splice(u,1)})),s(t,iw.Hidden,(function(){r.current[u].state="hidden"})),t)),a.microTask((function(){var e;!Qk(r)&&i.current&&(null==(e=n.current)||e.call(n))})))})),u=yw((function(e){var t=r.current.find((function(t){return t.el===e}));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),function(){return o(e,iw.Unmount)}})),l=(0,f.useRef)([]),c=(0,f.useRef)(Promise.resolve()),d=(0,f.useRef)({enter:[],leave:[],idle:[]}),h=yw((function(e,n,r){l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((function(t){return Qe(t,1)[0]!==e}))),null==t||t.chains.current[n].push([e,new Promise((function(e){l.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((function(e){Promise.all(d.current[n].map((function(e){var t=Qe(e,2);t[0];return t[1]}))).then((function(){return e()}))}))]),"enter"===n?c.current=c.current.then((function(){return null==t?void 0:t.wait.current})).then((function(){return r(n)})):r(n)})),p=yw((function(e,t,n){Promise.all(d.current[t].splice(0).map((function(e){var t=Qe(e,2);t[0];return t[1]}))).then((function(){var e;null==(e=l.current.shift())||e()})).then((function(){return n(t)}))}));return(0,f.useMemo)((function(){return{children:r,register:u,unregister:o,onStart:h,onStop:p,wait:c,chains:d}}),[u,o,r,h,p,d,c])}function eS(){}Jk.displayName="NestingContext";var tS=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nS(e){var t,n,r={},i=st(tS);try{for(i.s();!(n=i.n()).done;){var a=n.value;r[a]=null!=(t=e[a])?t:eS}}catch(o){i.e(o)}finally{i.f()}return r}var rS="div",iS=rw.RenderStrategy;var aS=uw((function(e,t){var n=e.show,r=e.appear,i=void 0!==r&&r,a=e.unmount,o=d(e,Kk),s=(0,f.useRef)(null),u=ww(s,t);kw();var c=Pw();if(void 0===n&&null!==c&&(n=(c&Tw.Open)===Tw.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");var h=Qe((0,f.useState)(n?"visible":"hidden"),2),p=h[0],v=h[1],g=Zk((function(){v("hidden")})),m=Qe((0,f.useState)(!0),2),y=m[0],b=m[1],x=(0,f.useRef)([n]);vw((function(){!1!==y&&x.current[x.current.length-1]!==n&&(x.current.push(n),b(!1))}),[x,n]);var w=(0,f.useMemo)((function(){return{show:n,appear:i,initial:y}}),[n,i,y]);(0,f.useEffect)((function(){if(n)v("visible");else if(Qk(g)){var e=s.current;if(!e)return;var t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&v("hidden")}else v("hidden")}),[n,g]);var k={unmount:a};return f.createElement(Jk.Provider,{value:g},f.createElement(Xk.Provider,{value:w},aw({ourProps:l(l({},k),{},{as:f.Fragment,children:f.createElement(oS,l(l({ref:u},k),o))}),theirProps:{},defaultTag:f.Fragment,features:iS,visible:"visible"===p,name:"Transition"})))})),oS=uw((function(e,t){var n,r=e.beforeEnter,i=e.afterEnter,a=e.beforeLeave,o=e.afterLeave,u=e.enter,c=e.enterFrom,h=e.enterTo,p=e.entered,v=e.leave,g=e.leaveFrom,m=e.leaveTo,y=d(e,Yk),b=(0,f.useRef)(null),x=ww(b,t),w=y.unmount?iw.Unmount:iw.Hidden,k=function(){var e=(0,f.useContext)(Xk);if(null===e)throw new Error("A is used but it is missing a parent or .");return e}(),S=k.show,_=k.appear,E=k.initial,C=Qe((0,f.useState)(S?"visible":"hidden"),2),O=C[0],T=C[1],P=function(){var e=(0,f.useContext)(Jk);if(null===e)throw new Error("A is used but it is missing a parent or .");return e}(),j=P.register,A=P.unregister,I=(0,f.useRef)(null);(0,f.useEffect)((function(){return j(b)}),[j,b]),(0,f.useEffect)((function(){var e;if(w===iw.Hidden&&b.current)return S&&"visible"!==O?void T("visible"):Qx(O,(s(e={},"hidden",(function(){return A(b)})),s(e,"visible",(function(){return j(b)})),e))}),[O,b,j,A,S,w]);var R=gw({enter:Gk(u),enterFrom:Gk(c),enterTo:Gk(h),entered:Gk(p),leave:Gk(v),leaveFrom:Gk(g),leaveTo:Gk(m)}),M=function(e){var t=(0,f.useRef)(nS(e));return(0,f.useEffect)((function(){t.current=nS(e)}),[e]),t}({beforeEnter:r,afterEnter:i,beforeLeave:a,afterLeave:o}),N=kw();(0,f.useEffect)((function(){if(N&&"visible"===O&&null===b.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[b,O,N]);var L=E&&!_,D=!N||L||I.current===S?"idle":S?"enter":"leave",F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=Qe((0,f.useState)(e),2),n=t[0],r=t[1],i=(0,f.useCallback)((function(e){return r((function(t){return t|e}))}),[n]),a=(0,f.useCallback)((function(e){return Boolean(n&e)}),[n]),o=(0,f.useCallback)((function(e){return r((function(t){return t&~e}))}),[r]),s=(0,f.useCallback)((function(e){return r((function(t){return t^e}))}),[r]);return{flags:n,addFlag:i,hasFlag:a,removeFlag:o,toggleFlag:s}}(0),z=yw((function(e){return Qx(e,{enter:function(){F.addFlag(Tw.Opening),M.current.beforeEnter()},leave:function(){F.addFlag(Tw.Closing),M.current.beforeLeave()},idle:function(){}})})),B=yw((function(e){return Qx(e,{enter:function(){F.removeFlag(Tw.Opening),M.current.afterEnter()},leave:function(){F.removeFlag(Tw.Closing),M.current.afterLeave()},idle:function(){}})})),V=Zk((function(){T("hidden"),A(b)}),P);qk({container:b,classes:R,direction:D,onStart:gw((function(e){V.onStart(b,e,z)})),onStop:gw((function(e){V.onStop(b,e,B),"leave"===e&&!Qk(V)&&(T("hidden"),A(b))}))}),(0,f.useEffect)((function(){L&&(w===iw.Hidden?I.current=null:I.current=S)}),[S,L,O]);var U=y,W={ref:x};return _&&S&&pw.isServer&&(U=l(l({},U),{},{className:Zx.apply(void 0,[y.className].concat(lt(R.current.enter),lt(R.current.enterFrom)))})),f.createElement(Jk.Provider,{value:V},f.createElement(jw,{value:Qx(O,(n={},s(n,"visible",Tw.Open),s(n,"hidden",Tw.Closed),n))|F.flags},aw({ourProps:W,theirProps:U,defaultTag:rS,features:iS,visible:"visible"===O,name:"Transition.Child"})))})),sS=uw((function(e,t){var n=null!==(0,f.useContext)(Xk),r=null!==Pw();return f.createElement(f.Fragment,null,!n&&r?f.createElement(aS,l({ref:t},e)):f.createElement(oS,l({ref:t},e)))})),uS=Object.assign(aS,{Child:sS,Root:aS}),lS=n(7907),cS=n(1423),dS=n.p+"static/media/whitelogo.285af99e718158dacbfc.png",fS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAEAYAAAD6+a2dAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAGYktHRAAAAAAAAPlDu38AAAAJcEhZcwAAAGAAAABgAPBrQs8AABpaSURBVHja3V15YBRF9v6qe7qn58pM7hBACCKBcIgSzigxsMu5nIuLEvEAgorCrgeruyyrrquusB64oiggx4ILJggihwgmShAiyBFBDhMCS8hJMskkmbNnun5/lEMiSciEzGT47ffPzPR017x69VXVe69e1RD8j2Pwx4M/ntOnXz9tX21fzZKkJGzHdk9dcjJ2Yid5vGdPzMIs/OWWW7z30wF0AH2YUpzGafLwuXNIQQrJy8nh9nJ7sXTv3vAd4TvK1n75ZXp6enp6uscT7Pq1FSTYAgwpHFI4+42wsJzOOZ1XP2M232g5AwYMGDB3rlYrbBO2eeJffZWm03S6ODVVbVabxUPh4fy3/Lf8h6Tt9Y1HPHZfvoxv8A2uLF0a0Tuid0TNihXpGekZLxGXK9j6bC2CRoBhOcNyZq187TV5vjzfnf388/yL/Iuq59asyRmfM/6j3rNmtfT88D8M/8Ps4l69ZKNshOadd9z3ue9zv5mSggfxIC7xvEaj0Wg0AM/zPM8HsCJTMRXffv+98qTyJP3z/fd/Q74h7/0uPz9Yem0tgkaAwUcGH3lkZnm5Mk+Z5yGRkd7r3Hvcezy9coVcJpfJw+vXky6kC98pNxd/w9+Uv/bqpWxVtipHZ8ygg+lgz7AuXSiltGG5giAIogio1Wq1Wt1+9aFL6BKcr6nhHuceVzaOHZv5feb374cfPBgs/fqKdifAoLxBefN3hYTQGXSGZZPF4u/ytVqtVqcDOI7jOK69aweQ2Zgm7KqtVb/I/bFb/JAhu/O/si744vTp9pfEN7S7ilSiSrR1/d3vAlYhjuP8MNPfMOhqZMjjDAZ+hpKkzc7NnbM+ZSqly5bNWZZMqdKpU/AkaxrtTgDlmHKMlvTsGajyPR6PR1Hau1aNYc2GfOIRlcr2BarOnFmwALeTgyDnz6cZUj6ldMWKuWnJlCoREcGWs937ytC7h949p8+6dW6H2+G688EH/V2+KIqiILBXSWrv2jUNngdCQ4FRo9jrr38NkI1IFcWqKvIUtQMvvVSdH7kfePfd9PT0dELaz71sNwI88spdtVSJjCw+g8gVR44eNZ9z9j20vHNnv1eIEMJxgE6n0+l07VU73yEIQEwMEBsLzJ8PqFSA0QiQzfQJICuL3O85AKSmfvhh9tuElJQEWp6ATwGzFo6opTQlhf+t8HuQH34wOLhB/dz+b3gvKKVUUdjrL/2DmwOyDJSWAuXlwNq1DeSeTpYDKSnKQVUScPTo7JgRJqoMHx5oeQJGgLRuIx6kdMoULpzeB+zaVbXIk5+ZGRNTWel2f/lloKvFcDMSwAu7HcjLAxwO4OLFBl8MwXtAhw5kk7ITZO/etNxkSul99wVKDr8TIG1BSiKl8+ZRrTIHyMhAPmyAJOl0HNezJ2C1ut2/qHCAQAgh7eENhIcbDCoVMGpUv34hIYDJpNO1JvDkcAA//dTEFxvIXwBRpKkkG9i4cbY15SSljz/ub/lV/ipoTp9kSpUHHqCpeBl4913YyAtAfROIIiGxsYAo8nxEBOB0ut1XrvheviiqVBwHuFxu9/WsfJVKpRIE9j4QBOjcOTxcEIBp04YMCQ0FRo7s0yckBGDSAUVFZrMsA/Pnr1lTWAjYbC7X9eSVZeC60ZAh5AWA48gppADLl88Zm+Ki1OFYtTtLJGTNmrbWp80qSjMkU6r85jdKMTcaZOtW8hRkZto0DbPZ48nKAgoL7faGc2BzWLx40qSwMGDcuIQERQGKi+vqBAHYtu34cacT+PTTI0fq6gCr1elUFP8FgkwmrZbngaFDe/TQ6YCkpB499HpgwIBbb9VqWybX7t0nTlgswLJlu3dfj+ghIUBSEhAZCdx/vw+CWTEakGVyP+kATJq0cmLmQ4Ts3n2j9bxhAsx+I5lSpXt38gD5HuToUSwif2TV8Q15eQ7HokWAzeZ2X77c/H0ff/zYY5GRQFycydTUUgulbKgvKqqr0+mAAwcuXhRF1hNdLsBisds9HsDhkGVFYQ1HCKDTqdUcx4Zwnge6do2MVKuBbt2iotRqoHv3mBhRBDjuxqYSWfZ4KAWmTXvzzQsX2IjX1EjQagJ4EYtpQG2tYkcIMHDgR0uzZhJy7lxr5Wz1FDB/19juVFGrbf3t1SCbN7e24b3o2lWtfvZZ4MwZj+fpp+ut92sRHq7TXc+YI4RZ+7GxoaE8D9x7b0yMydRaafwPQeB5QhixBAE4d66kxOlsfB/HARrNDfxAMTIAg4HT083AJ588RJMppYMHryPfEEIcDl+LafUgac9zbAVeeYX8lUwF7rzzxhVESGgoIEk8Hx3d/H1Mjb4hmCHg5qBWC8L1piJvHOCGUUemA/36CaXco8BLL7X2cZ8JMKs0mVKlTx/kYCfIggX+UpBWy/Nxcc1/ryi+O3M3o9vnnQqag1oN1Kej3DioHheBp5+e02dEDlX69fP1OZ8IQCkh5Dy3AeT996HDHhbP8g8MBp6//fbmvxdFX50qFgG82SBJzY8APA+Ion8IcNX4vp9eBpYt8/W5FlWWtn3EOmDMGLIGHwF33eVvBRmNHJeY2Nhvj4/v0IGt6/O82+1LSTzfnuv/vmLgQOY1XAuNBujWjdkA/utOAC5gOcg996RtTKZU+dWvWrq9RSNQCacc8Oc/B3J6ValYTw8NZday2Qw8//y4ccy0pFSWGz+zbduJE243kJtbVKQogChKktkMDB/eu7ei1Fv1MTEmU1sU7HK53ZQCp09fvmyzMb8eAKqqrFaPB+B51r8TEjp2lCTgllsiIkSx/vmxY/v3DwkBNm8+dKiqCrBYbDaPB5Ak4LbbAqdTepHbAixaxD7t29es7pv7Iu3vIxIpHTaMrqEB6fnXQhA4LiyMvauqAuLjIyOb6vlz527Y4HAAJ09evux0AoLAQjAcx3GyDGRmnjnT0Ab2unt33hkXp9UCf/rT5MnR0c27dwUFZWVOJ/DEE6tW5eUBdXV2uyyz1DJBACRJkiSpPgLohbdhn3tu4sToaODuu3v21OsBjUYUOQ4YPrxXL70e+Pzzo0ctFjb0x8QEUKE/jwRzliVTSocMWfX7bwghOTnX3tYsAWgS8kEfeQQXcUcg1gw5jhBFAR54YMSITZuAuLjYWJsNKC6uqYmOZha93V5/f3GxxeI1pigFtm6dNy8kBIiKioqKigIoFQSDAaipYX5/fn5pqdMJnDx56RIjzKVLNhtw8eKVK7LM/P2GPdWLbdsOH66srI88Dh0aHx8aCtx1V69eISHAyJF9+xqNjFgNrZOyMotFloEdO44ds1jqCeDF8OG33RYTA0yY0L27ogAqFQvfbNyYlRUeDly8WFbWpYv/9Uz+wm0FHn6YfWpMgEZNy/xJSRK2cdOBkhLsxBXA/571HXfcemtuLvDoo2PHrl5df91icTojIwGjUa32JVSsKFptTAxQWyvLkgTYbCwiGBVlNKr8FugGvGkmV67U1MgyEBqq06lUzM3zxf28csVsDgkBYmIE4cSJ+usFBaWlcXHAkiUZGU895W8tA7iA44DFYnjZfhLo0OGtYTmdCanvWo2MQGEhOQGMHh2ohvdCp5Mkq7XxdUJ8TYeQJIMBcLu7d//Vr4DU1H/96+JF4L773n77p5+AWbM++ODSJQCIiLiem9k8mFdRVERIx47A9Olvv11QAKSmvvNOfj6wcOGmTWVlAM936zZoEMAmieZLo7RpN1Wvl6S6ukBpGUAc7gCMxhq7diVoY6OwEQHoYoQCI0cGUCQAwPnzJSVNNYxarVI1FTG7FoRERfXsCahUen1YGCBJbK4HvIpmDSiKPXrcfTdrqMGDfZGMzfUqVULCyJGAwXDbbQMGAHa7y+UlJqWAXq/VCgLAcTpdRATAcQbD9QJalDZN6/Pn2QgQaJDBymNASkqj69demDM0JZHSU6fQGwagd+9AC/bii9Onv/wyEBMTGcmGfI+Hqcq3fH5K1erQUKCiwu02mYDS0qoqhwOIjo6IMJmA8HCtlpXn8fjmTl4LlUqSgMLCykqnE7DZbDaHA+jUKSJCrQZ0Ot98DLO5vJzjgMhIScrLY5JTCqxYsXv3nDnAiRMXLvTvH0BFvwYnkJu7KjLrICH1v3R1BEidP7Y7VUJC8DYmAgkJARTlFygqKi2NjAQIqaysqgIIqaryLo/6FtpVFI8HCAvTaglh7phGA4SHq9VsJLnRhvfC7XY4gM6djUZKWXyiNQ3vRUgIx5WVsXpWVwOKUlVltQI//HDhgu9xuzagAGOAfv3mfZJMqVJvnl4lgJa4FgHx8ViJrPaMqh86lJ/PnMxfpnB99dXZs76FdhkBbnb897/l5TU17D2lQEWF3R4dDSgKCwYFHD+3q3sf/zZIjx7ey1d/mma6Hwbi49tbMadPl5QkJACKQohKBdjtskwI8J//HDniy5oWIU0Him4WmM11dW43cOxYYWHD5ewffywpaZeefw2UUfigYTvXE+BL8gpIIDzRFgRSFIXjgB07Tp+eOhUoLKyr4zjg7NnSUpcLuH7+Dxs3fBkBCFEUtxvgOFlmPdHj+SXBFMXlAjjO5bJY2P3+INauXceOsawfq1VRgOpqWY6KArZsOXIkcNtjrqOvbDof6NrV+7neUz5PZgIGA4Cv2l8sYOfO3NyJE4H09B9+6NiRmYLvvAOsWXPokMcDpKUlJTVlFBLiKwGczooKgBC322ZjCzGEAJQyI48QNtcDXi9ClmtrWZyhY8fW5xgqCpvSdu48dsxqBSh1OpOSgOPHz53zhmWCAS6XPgRqMAB4AmhIgEI89jMBggqHw+32zpUAsHFjTo7TCTz00ODBGg2L0DXdECyh5N139+wpLwd27Tp6tKIC4HmVSq2uDxnHxppMhACpqQMH8jwQHx8V5XIBly5VVfE8sH79d995PEBhodnscDB5CgrqI4ejR/fvbzQCY8bcfrvB0HxIefv2I0fcbqCqym6vrgZ0OsAX9zbQoGHkIEh9As9VApBnMANQqzEeHwVTQNYr6z87nbIsy8CCBZ98IgjAihUzZjS0v61Wl4tSIDX1n/88dw4oK6uudjhYjwVYjqAkAbLMMgvy88vLKQVeemnnTl9381Nan9Fz7lxJSXk5kJl58mRNDfDCC/fe26EDYDBIEs8DpaXV1R4PsHp1VlZpaTA12QwOoYwtRTHU259DEc2SlIOPpob63FwWy1+48NNPZZnZDgAwe/b69XZ7fcNfi0Alh586dfmywwEsXfr55+XlwOXLLBv4ySdXr66sZIS7tsffFPkKr2MrUB+DvToC0KcQD9TVkXXBlrBpAnhx4MBPP9lswIgRb73F882niXudSllmI4ggCII/1929NkF+fkmJogBz5374YVERm/ubijsQcpMQ4Fl0AeqDz/VTwCXsB62sZB+CJ5+vCRJOpyw3NP5UKrYy73azZRtvA0mSSuXxAL17x8ZyXH3Wb9++HToAQJ8+HTooCnD+fEUFIcDx4yxHuaTEYlEUtsgkCEBBQXm5x8N+h+eB6mqr1e0GzGarteGqZXO4WQhA7PgU+Lmd0ZAAt9JuIAUFNCu4mZWiyHHXi6k3B2/Di6JKJYrA2rXz53fvXp+gQYjbbbUChMgy4z8hPA9QyvOSBCQmGo1OJ5CYGBcny2x5WadjXoLBAGRmnjqlKMCSJTt2eHc2tSYHkeNuBhMboI/SbcD58/gn7gAaEMAzgrwPmp/PzUBQRwCNhhDvMQre2bs1ina53G6XCzh8OC/P5WIEUKtZQ+r19a+NFPNzPkFzWLfu66+9M+eNJJ8KAtsaHmxwFuUAaEHB1c/eN7XjIhzAmTP0b5j4y1SM9odKxdyrthzutHLlvn3FxcxYbMpG4Dins7oa4Pna2oICgOMcjqbyD7Kzz5zxeICysrq68vIbl8d7RkCw4G3Xqqrob4D6DSRXCZCekZ5BOJcLFxABHD0aPFEZeJ7jbmjDxM+wWh0Omw0YP/7VV/PygMOH8/Nraxso5OoQr1aHhQGKIgghIWwHEaXAJ58cPOh0Av/4x2efXW/nkq8QBCCY54GQNegM+t13V9v5ZzTKmeEW0Smg2dm0O/kIJPC5gM1Bkng+Npbl1bd+w1M9amvtdpsNePrpNWvy8xmxeJ5l8ogi0LFjWFhEBAs5W61AZaXNVlLSvDXfWhDC8v/YbwVLmwDtTk+AHDhw7fVGdim5jQwEPvsseKIy6PU8H4hsBI+HrR663ayBS0pqa6urgStXrFaz2X8N74UkAV26MCIE9LzCFkD2km+Bbduuvd6IAB+uzDoDcvgw9tIPAJZUFQyEhvJ8UpL/9/l7yxMEQWiPfQSBTv9uEX1RCPz3v6tWZWUBx45d+3WTnikhlJI4xIJu3Bgsub1zplrN9gv4C95t4+11gITBACQmBv53msVofA9s2ACwdm2kj+ae43XcPJDly7370YMlv9GoUiUl+a+89jo7SJLYoqsgAFFRgf+9RvV8CwLgdmOPYgRdsaK5+5olwIqdmesJKSrCUjoEtPHc0V6IjlapJk1ixps/Qrlet7A599BfMBrbI7W2eZBx9AUgPX3V778hhGvej2kxOKksI4UgixdfZVQ7w2u19+kTGenPfCWn0+l0Oq9NRGs79HqVKjISiIwUhMAdh3kd9MV+wOOhm5V04OWXW7rd51kwLSZlCFVWr6a/gQak5dO8W4sBA4YOtdmAUaMmTqyqAjp27NTJZgMIcblYCDczc9kyYMyYdes4DqitdTj8QUe1Wq2WpLYvFnlj/a+/PmmSIAC9e/fu3b07YLXGxU2fDpSWFheLIpCTk5UlisCJEzk5ggA4nQ6HX22RVHIcdNWqVSmZ1YRLS2tRbl/L9R5tqtzDbQA5fRpZ+IgdbNI6eE/umTJlxozqamD48JEjKysBtVoUr78+bzYXFQFnznz22fr1wOzZn33GcW2f073GoFar1er1N758PGFCQkJoKLBgwZgxbjcgy4MGPf00IEl6fVM7lGy2ujpCgP37v/hCrQa++mr7drUaqK42m29o0WgxTgGVlaqzqn2gCQkrRu+9nXAtxy5bXVl2gOHMmeQ39A6Q9et9fW7s2KlTq6uBceMmT66oYEeotNa0ZOf7HDmSkQFs356dnZcHvPba/v0siaRtRNBoNBqttvX/LzBgQKdOJhPw2muTJ9fUADZbjx5z5gAhId26teY4TLebjWcHD+7bp1YD27b9+98aDVBba7H4QknaCwlAaurqZ7KWE/Lxxz7r9EYVNtuZ0o3SzZvJE+gCNE5vTE4ePbquDpgyZfr08nK2c8c/KVGUMiJ88cWSJcCWLT/+SCnwxhssyqUoTZ811BIkSZI0GnbMnC97CpOSunY1GoHFi8eNY7mDUVGJiYAkJSZOmND2WtrtNhshwJ49W7ZIErBvHxshnE67vSEhaDI2A5s2rZ6ZFUVIq46ZAtAGAng3GLidai1ITs4wT/Jf6up6954wYdq0igrAaDQYArmkRKnNVlcHcNxXXy1bBpw8yXbePPvs3r2CwE4Ha42N0NIIIIo8L4rA3LlJSYQAkyb168eWjfX6Dh0ARRk48NFHAVFUqwMRX7BY2NSwY8emTZIEHM78epX4U15epU7xkD6JiRv/tTufcA2zKX1Dm0W9FH74aIV+woTYS53LKl/Ytg1q2t8zvv1SH4hSfbBoLaXgsyvXFtWrfsWKY8cEAdg06+TfEefxOIbL45TzjZvWawPodDpdw2VicQTfAw86HGNUCRXccw7HzLRBU9DXZDKZvEtUGo3RCHCWoWOf1FksJEy0iY+26bgnn6AcVerIe+XlZ//xwxPiidGje2ckZegyGu43bqX+/CWYWy4vKzh/773wuAuduZs3Q4VY2rP9dhhxtHpV8UxFoVx29Jqe7MgIZhuYTCYTcORIYSGlwO5tpx52veN2n8osuuC5IMshd2g/VNmdzqHzbs0WT1Da39lpLr4LDe3XLzaWhYyvJY1GYzIBPD+s1+PLzWZAiJLy2dEWgQWZghyzGVS5D4PvuYdw+llh4SdPtrlUf4vpebyy6KJ99mz6lqvMvnvlSqhoTLsSQXbeaVntclHx6Lsfu0SRWQxtB6mLWHnr6y4XZ7wz7P4ylwvgVgrGplJL/AxK7sK/KyoATKXPjR9POO3icMfhw/4qPmANQ6l5cOEbY8Z4Kl3D7G9u3w6TstC9139pmYSwbdyEsD+GIIRt8ABY4AhU/s72Y0WFYj7Vd/vf9XpqKtt/Np7d4Zu3oFbr9QBXnFA8YWNJCekcParnluhoAJG4tV2muOfxTF4eKL+QTxs3jnDSLcZh/v83soD3TEorR1482KuXcloZ5P7XgQM0Xp7vWtyaIZPN0YQIglYLcJxazWZhjmvdCSDyT3apspIWltxyqtzlomLNvhKN0YgQzwL7M2o1qdM+Ej7RYkFd1Hs9h9hsJM6Y2elgTAyAXhjlz7NGWlIYeRMLMzMBz1bh+PTphDMcMxyrqAjUz7Xb0Mz8dJ6nr1e8cmFGRobyrDzLsXjy5GYFI6Ko0QAcx04CuVnPAfQDMsgihwPAKvrwiy8C2v2hg5YuZcZp4P/9KGjpn5RWHLlAJ09W8jw73cvXrKHdlEfdI00mjpMko7F+aP+fBSWbsOHrrwElC4758wmn3xD2x1On2luMoJ+uy0YGQkCrNxXqZs4EUS/VH3/mGYBmIzIYG6gDVVHyMkk7exbAYuWDv/6VcFpdeER6erDFCjoBroV3qgDs8dXvjx8PCuAfjz0GQr+kW0aPRvsZYTeKKzivKKBkFPntnj0ALiDl/fdBNC7T2l272NB+8xxpcdMRoDlQ6niuurpbN8CzVfl82jQA/SCOGwfgedCkJLS3sQZ8j02yDEry4f72WxD6OkJ37wb4aO5sejohUrbplQsXgq23lvD/hgDNgSrmSnOl0Qii/ideHzYMwBb07dsXIMnYn5AASieRi/HxAH6gv46MBCFrURsSAtBXYW34Pwfk93BYLAB9EPqaGgD9yJdXrgDkU9rh3DlQugeJp0+DYBS+PHkS1PkBdh06RLiw8LBw//8Fbnvh/wAiFyQkQC2KVwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMy0wMy0xNFQxMjoxNzoxNyswMDowMBIpZEsAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjMtMDMtMTRUMTI6MTc6MTcrMDA6MDBjdNz3AAAAKHRFWHRkYXRlOnRpbWVzdGFtcAAyMDIzLTAzLTE0VDEyOjE3OjE3KzAwOjAwNGH9KAAAAABJRU5ErkJggg==",hS=[{name:"HOME",href:"/",current:!1},{name:"ABOUT US",href:"/aboutus",current:!1},{name:"COURSES",href:"/coursecat",current:!1},{name:"GUIDE",href:"/popup",current:!1}];function pS(t){var n=t.text,r=t.href,i=(0,Jx.h5)().speak;return(0,e.jsx)("a",{href:r,className:"block px-4 py-2 text-sm text-gray-700",onMouseOver:function(){return i({text:n})},children:n})}function vS(t){var n=t.item,r=n.name,i=n.href,a=n.current;return(0,e.jsx)("a",{href:i,className:"block rounded-md px-3 py-2 text-sm font-medium ".concat(a?"bg-gray-900 text-white":"text-gray-300 hover:bg-gray-700 hover:text-white"),children:r})}function gS(t){t.fixed;var n=(0,Jx.h5)().speak,r="Shiksha logo.",i=Qe(f.useState(!1),2);i[0],i[1];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(tk,{as:"nav",className:"bg-gray-800",children:function(t){var i=t.open;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"px-2 mx-auto max-w-7xl sm:px-6 lg:px-8",children:(0,e.jsxs)("div",{className:"relative flex items-center justify-between h-16",children:[(0,e.jsx)("div",{className:"absolute inset-y-0 left-0 flex items-center sm:hidden",children:(0,e.jsxs)(tk.Button,{className:"inline-flex items-center justify-center p-2 text-gray-400 rounded-md hover:bg-gray-700 hover:text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white",children:[(0,e.jsx)("span",{className:"sr-only",children:"Open main menu"}),i?(0,e.jsx)(lS,{className:"block w-6 h-6","aria-hidden":"true"}):(0,e.jsx)(cS,{className:"block w-6 h-6","aria-hidden":"true"})]})}),(0,e.jsxs)("div",{className:"flex items-center justify-center flex-1 sm:items-stretch sm:justify-start",children:[(0,e.jsxs)("div",{className:"flex items-center flex-shrink-0",children:[(0,e.jsx)("img",{className:"block w-auto h-8 lg:hidden",src:dS,alt:"logo",onMouseOver:function(){return n({text:r})}}),(0,e.jsx)("img",{className:"hidden w-auto h-8 lg:block",src:dS,alt:"logo",onMouseOver:function(){return n({text:r})}})]}),(0,e.jsx)("div",{className:"hidden sm:ml-10 sm:block",children:(0,e.jsx)("div",{className:"flex space-x-4",children:hS.map((function(t){return(0,e.jsx)(vS,{item:t},t.name)}))})})]}),(0,e.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0",children:(0,e.jsxs)(Bk,{as:"div",className:"relative ml-3",children:[(0,e.jsx)("div",{children:(0,e.jsxs)(Bk.Button,{className:"flex text-sm bg-gray-800 rounded-full focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-gray-800",children:[(0,e.jsx)("span",{className:"sr-only",children:"Profile"}),(0,e.jsx)("img",{className:"w-8 h-8 rounded-full",src:fS,alt:"Profile",onMouseOver:function(){return n({text:"Profile."})}})]})}),(0,e.jsx)(uS,{enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,e.jsxs)(Bk.Items,{className:"absolute right-0 z-10 w-48 py-1 mt-2 origin-top-right bg-white rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:[(0,e.jsx)(Bk.Item,{children:function(t){t.active;return(0,e.jsx)(pS,{text:"Your stats.",href:"/profile"})}}),(0,e.jsx)(Bk.Item,{children:function(t){t.active;return(0,e.jsx)(pS,{text:"Settings.",href:"#"})}})]})})]})})]})}),(0,e.jsx)(tk.Panel,{className:"sm:hidden",children:(0,e.jsx)("div",{className:"px-2 pt-2 pb-3 space-y-1",children:hS.map((function(t){return(0,e.jsx)(vS,{item:t},t.name)}))})})]})}})})}var mS=n.p+"static/media/e2.838419899fbc9eb4c8ce.jpg",yS=n(5717),bS=n(1694),xS=n.n(bS),wS=["as","disabled"];function kS(e){var t=e.tagName,n=e.disabled,r=e.href,i=e.target,a=e.rel,o=e.role,s=e.onClick,u=e.tabIndex,l=void 0===u?0:u,c=e.type;t||(t=null!=r||null!=i||null!=a?"a":"button");var d={tagName:t};if("button"===t)return[{type:c||"button",disabled:n},d];var f=function(e){(n||"a"===t&&function(e){return!e||"#"===e.trim()}(r))&&e.preventDefault(),n?e.stopPropagation():null==s||s(e)};return"a"===t&&(r||(r="#"),n&&(r=void 0)),[{role:null!=o?o:"button",disabled:void 0,tabIndex:n?void 0:l,href:r,target:"a"===t?i:void 0,"aria-disabled":n||void 0,rel:"a"===t?a:void 0,onClick:f,onKeyDown:function(e){" "===e.key&&(e.preventDefault(),f(e))}},d]}var SS=f.forwardRef((function(t,n){var r=t.as,i=t.disabled,a=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(t,wS),o=Qe(kS(Object.assign({tagName:r,disabled:i},a)),2),s=o[0],u=o[1].tagName;return(0,e.jsx)(u,Object.assign({},a,s,{ref:n}))}));SS.displayName="Button";var _S=["xxl","xl","lg","md","sm","xs"],ES="xs",CS=f.createContext({prefixes:{},breakpoints:_S,minBreakpoint:ES});CS.Consumer,CS.Provider;function OS(e,t){var n=(0,f.useContext)(CS).prefixes;return e||n[t]||t}var TS=["as","bsPrefix","variant","size","active","className"],PS=f.forwardRef((function(t,n){var r=t.as,i=t.bsPrefix,a=t.variant,o=t.size,s=t.active,u=t.className,c=d(t,TS),f=OS(i,"btn"),h=Qe(kS(l({tagName:r},c)),2),p=h[0],v=h[1].tagName;return(0,e.jsx)(v,l(l(l({},p),c),{},{ref:n,className:xS()(u,f,s&&"active",a&&"".concat(f,"-").concat(a),o&&"".concat(f,"-").concat(o),c.href&&c.disabled&&"disabled")}))}));PS.displayName="Button",PS.defaultProps={variant:"primary",active:!1,disabled:!1};var jS=PS,AS=/-(.)/g;var IS=["className","bsPrefix","as"],RS=function(e){return e[0].toUpperCase()+(t=e,t.replace(AS,(function(e,t){return t.toUpperCase()}))).slice(1);var t};function MS(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.displayName,i=void 0===r?RS(t):r,a=n.Component,o=n.defaultProps,s=f.forwardRef((function(n,r){var i=n.className,o=n.bsPrefix,s=n.as,u=void 0===s?a||"div":s,c=d(n,IS),f=OS(o,t);return(0,e.jsx)(u,l({ref:r,className:xS()(i,f)},c))}));return s.defaultProps=o,s.displayName=i,s}var NS=function(t){return f.forwardRef((function(n,r){return(0,e.jsx)("div",l(l({},n),{},{ref:r,className:xS()(n.className,t)}))}))},LS=["bsPrefix","className","variant","as"],DS=f.forwardRef((function(t,n){var r=t.bsPrefix,i=t.className,a=t.variant,o=t.as,s=void 0===o?"img":o,u=d(t,LS),c=OS(r,"card-img");return(0,e.jsx)(s,l({ref:n,className:xS()(a?"".concat(c,"-").concat(a):c,i)},u))}));DS.displayName="CardImg";var FS=DS,zS=f.createContext(null);zS.displayName="CardHeaderContext";var BS=zS,VS=["bsPrefix","className","as"],US=f.forwardRef((function(t,n){var r=t.bsPrefix,i=t.className,a=t.as,o=void 0===a?"div":a,s=d(t,VS),u=OS(r,"card-header"),c=(0,f.useMemo)((function(){return{cardHeaderBsPrefix:u}}),[u]);return(0,e.jsx)(BS.Provider,{value:c,children:(0,e.jsx)(o,l(l({ref:n},s),{},{className:xS()(i,u)}))})}));US.displayName="CardHeader";var WS=US,HS=["bsPrefix","className","bg","text","border","body","children","as"],qS=NS("h5"),YS=NS("h6"),KS=MS("card-body"),GS=MS("card-title",{Component:qS}),XS=MS("card-subtitle",{Component:YS}),$S=MS("card-link",{Component:"a"}),JS=MS("card-text",{Component:"p"}),QS=MS("card-footer"),ZS=MS("card-img-overlay"),e_=f.forwardRef((function(t,n){var r=t.bsPrefix,i=t.className,a=t.bg,o=t.text,s=t.border,u=t.body,c=t.children,f=t.as,h=void 0===f?"div":f,p=d(t,HS),v=OS(r,"card");return(0,e.jsx)(h,l(l({ref:n},p),{},{className:xS()(i,v,a&&"bg-".concat(a),o&&"text-".concat(o),s&&"border-".concat(s)),children:u?(0,e.jsx)(KS,{children:c}):c}))}));e_.displayName="Card",e_.defaultProps={body:!1};var t_=Object.assign(e_,{Img:FS,Title:GS,Subtitle:XS,Body:KS,Link:$S,Text:JS,Header:WS,Footer:QS,ImgOverlay:ZS}),n_=n.p+"static/media/e3.31911f70e953484d2dd1.jpg",r_=n.p+"static/media/course2.c23a51219b52516a5c35.jpg",i_=n.p+"static/media/course5.923a0c6259fec07dc285.jpg",a_=n.p+"static/media/blacklogo.3cadd41e4a388fd92eb5.png",o_=n.p+"static/media/blacklogomirror.10d88b81a22473f3c300.png",s_=function(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("footer",{className:"footer p-10 bg-base-200 text-base-content",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("span",{className:"footer-title",children:"Services"}),(0,e.jsx)("a",{className:"hover:bg-slate-300",href:"/coursecat",children:"Courses"}),(0,e.jsx)("a",{className:"hover:bg-slate-300",href:"/",children:"Teaching"}),(0,e.jsx)("a",{className:"hover:bg-slate-300",href:"/",children:"Assessments"}),(0,e.jsx)("a",{className:"hover:bg-slate-300",href:"/",children:"Materials"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("span",{className:"footer-title",children:"Company"}),(0,e.jsx)("a",{className:" hover:bg-slate-300",href:"/aboutus",children:"About us"}),(0,e.jsx)("a",{className:"hover:bg-slate-300",href:"",children:"Contact"}),(0,e.jsx)("a",{className:"hover:bg-slate-300",href:"/popup",children:"Guide"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("span",{className:"footer-title",children:"Legal"}),(0,e.jsx)("a",{className:"hover:bg-slate-300",href:"",children:"Terms of use"}),(0,e.jsx)("a",{className:"hover:bg-slate-300",href:"",children:"Privacy policy"}),(0,e.jsx)("a",{className:"hover:bg-slate-300",href:"",children:"Cookie policy"})]})]}),(0,e.jsxs)("footer",{className:"footer px-10 py-4 border-t bg-base-200 text-base-content border-base-300",children:[(0,e.jsxs)("div",{className:"items-center grid-flow-col",children:[(0,e.jsx)("img",{className:"h-8",src:a_,alt:"logo"}),(0,e.jsxs)("p",{children:["Empowering Abilities,",(0,e.jsx)("br",{})," Unlocking Potential: Education for All"]}),(0,e.jsx)("img",{className:"h-8",src:o_,alt:"logo mirror"})]}),(0,e.jsx)("div",{className:"md:place-self-center md:justify-self-end",children:(0,e.jsxs)("div",{className:"grid grid-flow-col gap-4",children:[(0,e.jsx)("a",{children:(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:"fill-current",children:(0,e.jsx)("path",{d:"M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z"})})}),(0,e.jsx)("a",{children:(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:"fill-current",children:(0,e.jsx)("path",{d:"M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z"})})}),(0,e.jsx)("a",{children:(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:"fill-current",children:(0,e.jsx)("path",{d:"M9 8h-3v4h3v12h5v-12h3.642l.358-4h-4v-1.667c0-.955.192-1.333 1.115-1.333h2.885v-5h-3.808c-3.596 0-5.192 1.583-5.192 4.615v3.385z"})})})]})})]})]})},u_=function(){return(0,e.jsxs)("div",{children:[(0,e.jsx)(gS,{}),(0,e.jsx)("div",{children:(0,e.jsx)("img",{className:"w-full h-[500px] ",src:mS,alt:""})}),(0,e.jsx)("div",{children:(0,e.jsx)("img",{className:"w-full h-[400px] p-24 ",src:mS,alt:""})}),(0,e.jsx)("section",{class:"text-gray-600 bg-black body-font",children:(0,e.jsxs)("div",{class:"container px-5 py-12 ",children:[(0,e.jsx)("div",{children:(0,e.jsx)("h1",{className:"text-bold text-white text-center mb-12",children:"Testimonials"})}),(0,e.jsxs)("div",{class:"flex -m-4",children:["+",(0,e.jsx)("div",{className:"lg:w-1/3 lg:mb-0 mb-6 mx-2 bg-white rounded-xl hover:bg-amber-300 ",children:(0,e.jsxs)("div",{class:"h-full text-center rounded-xl hover:bg-yellow-400 ",children:[(0,e.jsx)("img",{alt:"testimonial",class:"w-20 h-20 mb-8 mt-4 object-cover object-center rounded-full inline-block border-2 border-gray-200 bg-gray-100",src:"https://dummyimage.com/302x302"}),(0,e.jsx)("p",{class:"leading-relaxed ",children:"Edison bulb retro cloud bread echo park, helvetica stumptown taiyaki taxidermy 90's cronut +1 kinfolk. Single-origin coffee ennui shaman taiyaki vape DIY tote bag drinking vinegar cronut adaptogen squid fanny pack vaporware."}),(0,e.jsx)("span",{class:"inline-block h-1 w-10 rounded bg-black mt-6 mb-4"}),(0,e.jsx)("h2",{class:"text-gray-900 font-medium title-font tracking-wider text-sm",children:"HOLDEN CAULFIELD"}),(0,e.jsx)("p",{class:"text-gray-500",children:"Senior Product Designer"})]})}),(0,e.jsx)("div",{className:"lg:w-1/3 lg:mb-0 mb-6 mx-2 bg-white rounded-xl hover:bg-amber-300 ",children:(0,e.jsxs)("div",{class:"h-full text-center rounded-xl hover:bg-yellow-400 ",children:[(0,e.jsx)("img",{alt:"testimonial",class:"w-20 h-20 mb-8 mt-4 object-cover object-center rounded-full inline-block border-2 border-gray-200 bg-gray-100",src:"https://dummyimage.com/302x302"}),(0,e.jsx)("p",{class:"leading-relaxed ",children:"Edison bulb retro cloud bread echo park, helvetica stumptown taiyaki taxidermy 90's cronut +1 kinfolk. Single-origin coffee ennui shaman taiyaki vape DIY tote bag drinking vinegar cronut adaptogen squid fanny pack vaporware."}),(0,e.jsx)("span",{class:"inline-block h-1 w-10 rounded bg-black mt-6 mb-4"}),(0,e.jsx)("h2",{class:"text-gray-900 font-medium title-font tracking-wider text-sm",children:"HOLDEN CAULFIELD"}),(0,e.jsx)("p",{class:"text-gray-500",children:"Senior Product Designer"})]})}),(0,e.jsx)("div",{className:"lg:w-1/3 lg:mb-0 mb-6 mx-2 bg-white rounded-xl hover:bg-amber-300 ",children:(0,e.jsxs)("div",{class:"h-full text-center rounded-xl hover:bg-yellow-400 ",children:[(0,e.jsx)("img",{alt:"testimonial",class:"w-20 h-20 mb-8 mt-4 object-cover object-center rounded-full inline-block border-2 border-gray-200 bg-gray-100",src:"https://dummyimage.com/302x302"}),(0,e.jsx)("p",{class:"leading-relaxed ",children:"Edison bulb retro cloud bread echo park, helvetica stumptown taiyaki taxidermy 90's cronut +1 kinfolk. Single-origin coffee ennui shaman taiyaki vape DIY tote bag drinking vinegar cronut adaptogen squid fanny pack vaporware."}),(0,e.jsx)("span",{class:"inline-block h-1 w-10 rounded bg-black mt-6 mb-4"}),(0,e.jsx)("h2",{class:"text-gray-900 font-medium title-font tracking-wider text-sm",children:"HOLDEN CAULFIELD"}),(0,e.jsx)("p",{class:"text-gray-500",children:"Senior Product Designer"})]})})]})]})}),(0,e.jsxs)("div",{className:" p-8 h-96 bg-black text-white",children:[(0,e.jsx)("h2",{className:"p-2 text-center ",children:" Our Recruiters"}),(0,e.jsxs)(yS.Z,l(l({className:"mx-4 mt-4"},{dots:!0,infinite:!0,speed:500,slidesToShow:3,slidesToScroll:3}),{},{children:[(0,e.jsx)("div",{children:(0,e.jsxs)(t_,{className:"p-2 mt-6",style:{width:"18rem"},children:[(0,e.jsx)(t_.Img,{variant:"top",src:n_}),(0,e.jsx)(t_.Body,{children:(0,e.jsx)(t_.Title,{className:"text-black",children:"iTest Factory"})})]})}),(0,e.jsx)("div",{children:(0,e.jsxs)(t_,{className:"p-2 mt-6",style:{width:"18rem"},children:[(0,e.jsx)(t_.Img,{variant:"top",src:r_}),(0,e.jsx)(t_.Body,{children:(0,e.jsx)(t_.Title,{className:"text-black",children:"Digitech Galaxy"})})]})}),(0,e.jsx)("div",{children:(0,e.jsxs)(t_,{className:"p-2 mt-6",style:{width:"18rem"},children:[(0,e.jsx)(t_.Img,{variant:"top",src:i_}),(0,e.jsx)(t_.Body,{children:(0,e.jsx)(t_.Title,{className:"text-black",children:"Nesta Caterers"})})]})}),(0,e.jsx)("div",{children:(0,e.jsxs)(t_,{className:"p-2 mt-6",style:{width:"18rem"},children:[(0,e.jsx)(t_.Img,{variant:"top",src:mS}),(0,e.jsx)(t_.Body,{children:(0,e.jsx)(t_.Title,{className:"text-black",children:"My Cakes"})})]})}),(0,e.jsx)("div",{children:(0,e.jsxs)(t_,{className:"p-2 mt-6",style:{width:"18rem"},children:[(0,e.jsx)(t_.Img,{variant:"top",src:mS}),(0,e.jsx)(t_.Body,{children:(0,e.jsx)(t_.Title,{className:"text-black",children:"Card Title"})})]})}),(0,e.jsx)("div",{children:(0,e.jsxs)(t_,{className:"p-2 mt-6",style:{width:"18rem"},children:[(0,e.jsx)(t_.Img,{variant:"top",src:mS}),(0,e.jsx)(t_.Body,{children:(0,e.jsx)(t_.Title,{className:"text-black",children:"Card Title"})})]})}),(0,e.jsx)("div",{children:(0,e.jsxs)(t_,{className:"p-2",style:{width:"18rem"},children:[(0,e.jsx)(t_.Img,{variant:"top",src:mS}),(0,e.jsxs)(t_.Body,{children:[(0,e.jsx)(t_.Title,{className:"text-black",children:"Card Title"}),(0,e.jsx)(t_.Text,{className:"text-black",children:"Some quick example text to build on the card title and make up the bulk of the card's content."}),(0,e.jsx)(jS,{variant:"primary",children:"Go somewhere"})]})]})}),(0,e.jsx)("div",{children:(0,e.jsxs)(t_,{className:"p-2",style:{width:"18rem"},children:[(0,e.jsx)(t_.Img,{variant:"top",src:n_}),(0,e.jsxs)(t_.Body,{children:[(0,e.jsx)(t_.Title,{className:"text-black",children:"Card Title"}),(0,e.jsx)(t_.Text,{className:"text-black",children:"Some quick example text to build on the card title and make up the bulk of the card's content."}),(0,e.jsx)(jS,{variant:"primary",children:"Go somewhere"})]})]})}),(0,e.jsx)("div",{children:(0,e.jsxs)(t_,{className:"p-2",style:{width:"18rem"},children:[(0,e.jsx)(t_.Img,{variant:"top",src:mS}),(0,e.jsxs)(t_.Body,{children:[(0,e.jsx)(t_.Title,{className:"text-black",children:"Card Title"}),(0,e.jsx)(t_.Text,{className:"text-black",children:"Some quick example text to build on the card title and make up the bulk of the card's content."}),(0,e.jsx)(jS,{variant:"primary",children:"Go somewhere"})]})]})})]}))]}),(0,e.jsx)(s_,{})]})},l_=(n.p,{_origin:"https://api.emailjs.com"}),c_=function(e,t,n){if(!e)throw"The public key is required. Visit https://dashboard.emailjs.com/admin/account";if(!t)throw"The service ID is required. Visit https://dashboard.emailjs.com/admin";if(!n)throw"The template ID is required. Visit https://dashboard.emailjs.com/admin/templates";return!0},d_=Ji((function e(t){Qi(this,e),this.status=t?t.status:0,this.text=t?t.responseText:"Network Error"})),f_=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(r,i){var a=new XMLHttpRequest;a.addEventListener("load",(function(e){var t=e.target,n=new d_(t);200===n.status||"OK"===n.text?r(n):i(n)})),a.addEventListener("error",(function(e){var t=e.target;i(new d_(t))})),a.open("POST",l_._origin+e,!0),Object.keys(n).forEach((function(e){a.setRequestHeader(e,n[e])})),a.send(t)}))},h_=function(e,t,n,r){var i=r||l_._userID,a=function(e){var t;if(!(t="string"===typeof e?document.querySelector(e):e)||"FORM"!==t.nodeName)throw"The 3rd parameter is expected to be the HTML form element or the style selector of form";return t}(n);c_(i,e,t);var o=new FormData(a);return o.append("lib_version","3.10.0"),o.append("service_id",e),o.append("template_id",t),o.append("user_id",i),f_("/api/v1.0/email/send-form",o)},p_=n.p+"static/media/feedback.5c2b81b70cbabaf87c6b.png",v_=function(){var t=(0,f.useRef)();return(0,e.jsx)("form",{ref:t,onSubmit:function(e){e.preventDefault(),h_("service_v6z4web","template_71rki5m",t.current,"WBsHhIONN4glZMqDK").then((function(e){console.log(e.text)}),(function(e){console.log(e.text)}))},children:(0,e.jsx)("section",{class:"text-gray-600 body-font relative",children:(0,e.jsxs)("div",{class:"container px-5 py-4 mx-auto flex sm:flex-nowrap flex-wrap",children:[(0,e.jsx)("div",{class:" lg:max-w-lg lg:w-full md:w-1/2 w-5/6 mb-10 mt-2 md:mb-0",children:(0,e.jsx)("img",{class:" object-cover object-center rounded",alt:"hero",src:p_})}),(0,e.jsxs)("div",{class:" lg:w-1/2 md:w-1/2 bg-white flex flex-col md:ml-auto w-full md:py-8 md:mt-0",children:[(0,e.jsx)("h2",{class:"text-black text-2xl text-center mb-1 font-bold title-font",children:"Feedback Form"}),(0,e.jsx)("p",{class:"leading-relaxed text-center text-black"}),(0,e.jsxs)("div",{class:"relative mb-1",children:[(0,e.jsx)("label",{for:"name",class:"leading-7 text-center text-sm text-black",children:"Name"}),(0,e.jsx)("input",{type:"text",id:"name",name:"name",class:"w-full bg-gray-200 rounded border border-gray-300 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out"})]}),(0,e.jsxs)("div",{class:"relative mb-1",children:[(0,e.jsx)("label",{for:"email",class:"leading-7 text-center text-sm text-black",children:"Email"}),(0,e.jsx)("input",{type:"email",id:"email",name:"email",class:"w-full bg-gray-200 rounded border border-gray-300 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out"})]}),(0,e.jsxs)("div",{class:"relative mb-1",children:[(0,e.jsx)("label",{for:"message",class:"leading-7 text-center text-sm text-black",children:"Feedback Message"}),(0,e.jsx)("textarea",{id:"message",name:"message",class:"w-full bg-gray-200 rounded border border-gray-300 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 h-32 text-base outline-none text-gray-700 py-1 px-3 resize-none leading-6 transition-colors duration-200 ease-in-out"})]}),(0,e.jsx)("button",{class:"text-white bg-gray-900 border-0 py-2 px-6 focus:outline-none hover:bg-black rounded text-lg",children:"Submit"})]})]})})})},g_=(n.p,"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAA7wAAAO8B1JFQ0AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIISURBVFiFzZc7aFRBFIa/k0cjhKBliK8IppAQ0PgghQZBLOwslpgUAQshRWIjVoEg9mmCmDaNRSohiF0Kq5BORPCBD9TCxrwgAc3jpNh/4bjs3t1sbpgMDDPzz5nzf8tcZmbN3UlZmpK6HxaAmZ0zsxkzu1Mz2N1zr8AU4KovgdNVYxtIfgGYBnozYk4B3wPEBvDowADARWBZSV/XiG0BHgJrAeRxwwDApWDuwGKVuBNAcxh3AV+1ZhcY2jcA0AesBPOKAMAgsA28BfqD3gG817q/wEDdAMDlCubVAAphfheYKvsu1jX3AWiqCSDz1QrmWVswVrZVk2HuQdDvZgIAVzLMqwJo7Rngd4gdDHOL0pY05gnwR2ax/ssw/w8AOA48BW6V/YBNxX4pfZjA/ZDjBnUY1QMwLm0bGAv6cIi/J62N4rngwAQNmpcDdAM/wtyI9NZgNh/iF6TN5nIXuPtHoAd4J6kgfYvingOcD0t+lrTcLiN3XwOea3jTzI6p/0btWTNrVv9X7gCNltwAzKwdGNVwwd031b+u9pu776jfqfZTLgBm1k1x/3skzUlvBa6VzMKSkxFgKweG20q6A4y7+6z0AlD6Fl4Iqg24Ku0zpD6Ikh/FR/YyOhLXcVic7kESkqR7koVk6R6lIXG6Z/k+IOv+Y9LC4ZRnFE/AeXd/lRVoIk5Wkl/HexoE8wpDV61GAAAAAElFTkSuQmCC"),m_=n.p+"static/media/info1.58df92a8fb6809b9d5a6.png",y_=n.p+"static/media/info2.35e6cf9748f072fb5668.png",b_=n.p+"static/media/info3.77ddff7322af8c0a9611.png",x_=[{name:"Comprehensive Curriculum",description:"Covers a wide range of topics"},{name:"Online Course Catalogs",description:"Providing easy access to the differently-abled children"},{name:"Trusted by educators",description:"Over 100 tutors with 300+ lectures"},{name:"Immersive Learning Experience",description:"Children are taught with fun and interactive sessions to enhance their learning potential"},{name:"Includes",description:"Support of multilingual / Regional language content"},{name:"Communication and social learning",description:"Discussion boards, Chats, Forums, Learning communities."}],w_=function(){var t=(0,Jx.h5)(),n=t.speak,r=(t.pause,"Why Shiksha? Shiksha is designed in such a way that it is accessible to students with various difficulties, like visual, auditory etc. Our platform will have features like captioning, audio to text, screen reading and many more. Shiksha will foster an inclusive learning environment by promoting diversity and acceptance. Visual aids like pictures, diagrams, and videos can make thoughts and ideas easier to understand for nonverbal or non-speaking people.");return(0,e.jsx)("div",{className:"w-full bg-white py-4 px-8",children:(0,e.jsx)("div",{className:"bg-white",children:(0,e.jsxs)("div",{className:"mx-auto grid max-w-2xl grid-cols-1 items-center gap-y-16 gap-x-8 py-24 px-4 sm:px-6 sm:py-32 lg:max-w-7xl lg:grid-cols-2 lg:px-8",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{className:"text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl",onMouseOver:function(){return n({text:r})},children:"Why Shiksha?"}),(0,e.jsx)("button",{onClick:function(){return n({text:r})},children:(0,e.jsx)("img",{src:g_,alt:"volume"})}),(0,e.jsx)("p",{className:"mt-4 text-gray-500",children:"Shiksha is designed in such a way that it is accessible to students with various difficulties, like visual, auditory etc. Our platform will have features like captioning, audio to text, screen reading and many more. Shiksha will foster an inclusive learning environment by promoting diversity and acceptance. Visual aids like pictures, diagrams, and videos can make thoughts and ideas easier to understand for nonverbal or non-speaking people."}),(0,e.jsx)("dl",{className:"mt-16 grid grid-cols-1 gap-x-6 gap-y-10 sm:grid-cols-2 sm:gap-y-16 lg:gap-x-8",children:x_.map((function(t){return(0,e.jsxs)("div",{className:"border-t border-gray-200 pt-4",children:[(0,e.jsx)("dt",{className:"font-medium text-gray-900",onMouseOver:function(){return n({text:t.name})},children:t.name}),(0,e.jsx)("dd",{className:"mt-2 text-sm text-gray-500",onMouseOver:function(){return n({text:t.description})},children:t.description})]},t.name)}))})]}),(0,e.jsxs)("div",{className:"grid grid-cols-2 grid-rows-2 gap-4 sm:gap-6 lg:gap-8",children:[(0,e.jsx)("img",{src:m_,alt:"Walnut card tray with white powder coated steel divider and 3 punchout holes.",className:"rounded-lg bg-gray-100 shadow-xl\t"}),(0,e.jsx)("img",{src:y_,alt:"Top down view of walnut card tray with embedded magnets and card groove.",className:"rounded-lg bg-gray-100 shadow-xl\t"}),(0,e.jsx)("img",{src:b_,alt:"Side of walnut card tray with card groove and recessed card area.",className:"rounded-lg bg-gray-100 shadow-xl\t"}),(0,e.jsx)("img",{src:m_,alt:"Walnut card tray filled with cards and card angled in dedicated groove.",className:"rounded-lg bg-gray-100 shadow-xl\t"})]})]})})})},k_=n.p+"static/media/maths.e858dce9c59bec0ada54.png",S_=n.p+"static/media/sci.05348ac6811b9d3b1c2c.png",__=n.p+"static/media/eng.4cc1f5ffb0d9f40e806e.png",E_=n.p+"static/media/hin.1cd2e20d98d60c77d81c.png",C_=[{name:"Science",description:"",imageSrc:S_,imageAlt:"Science image",href:"/coursecat"},{name:"Mathematics",description:"",imageSrc:k_,imageAlt:"",href:"/coursecat"},{name:"English",description:"",imageSrc:__,imageAlt:"",href:"/coursecat"},{name:"Hindi",description:"",imageSrc:E_,imageAlt:"",href:"/coursecat"}];function O_(){var t=(0,Jx.h5)().speak;return(0,e.jsx)("div",{className:"bg-gray-100",children:(0,e.jsx)("div",{className:"px-4 mx-auto max-w-7xl sm:px-6 lg:px-8",children:(0,e.jsxs)("div",{className:"max-w-2xl py-16 mx-auto sm:py-24 lg:max-w-none lg:py-32",children:[(0,e.jsx)("h2",{className:"text-2xl font-bold text-gray-900",onMouseOver:function(){return t({text:"Subjects Taught"})},children:"Subjects Taught"}),(0,e.jsx)("div",{className:"mt-6 space-y-12 lg:grid lg:grid-cols-4 lg:gap-x-6 lg:space-y-0",children:C_.map((function(n){return(0,e.jsxs)("div",{className:"relative text-xl group",children:[(0,e.jsx)("div",{className:"relative w-full overflow-hidden bg-white rounded-lg h-80 sm:aspect-h-1 sm:aspect-w-2 lg:aspect-h-1 lg:aspect-w-1 group-hover:opacity-75 sm:h-64",children:(0,e.jsx)("img",{src:n.imageSrc,alt:n.imageAlt,className:"object-cover object-center w-full h-full"})}),(0,e.jsx)("h2",{className:"mt-6 text-sm font-semibold text-gray-500",onMouseOver:function(){return t({text:n.name})},children:(0,e.jsxs)("a",{href:n.href,className:"text-xl",children:[(0,e.jsx)("span",{className:"absolute inset-0 text-l"}),n.name]})}),(0,e.jsx)("p",{className:"text-base font-semibold text-gray-900",children:n.description})]},n.name)}))})]})})})}var T_=function(e){var t=(0,f.useRef)(e);return(0,f.useEffect)((function(){t.current=e}),[e]),t};function P_(e){var t=T_(e);return(0,f.useCallback)((function(){return t.current&&t.current.apply(t,arguments)}),[t])}var j_=function(e,t){var n=(0,f.useRef)(!0);(0,f.useEffect)((function(){if(!n.current)return e();n.current=!1}),t)};function A_(e){var t=function(e){var t=(0,f.useRef)(e);return t.current=e,t}(e);(0,f.useEffect)((function(){return function(){return t.current()}}),[])}var I_=Math.pow(2,31)-1;function R_(e,t,n){var r=n-Date.now();e.current=r<=I_?setTimeout(t,r):setTimeout((function(){return R_(e,t,n)}),I_)}function M_(){var e=function(){var e=(0,f.useRef)(!0),t=(0,f.useRef)((function(){return e.current}));return(0,f.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),t.current}(),t=(0,f.useRef)();return A_((function(){return clearTimeout(t.current)})),(0,f.useMemo)((function(){var n=function(){return clearTimeout(t.current)};return{set:function(r,i){void 0===i&&(i=0),e()&&(n(),i<=I_?t.current=setTimeout(r,i):R_(t,r,Date.now()+i))},clear:n}}),[])}var N_="undefined"!==typeof n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product;"undefined"!==typeof document||N_?f.useLayoutEffect:f.useEffect,new WeakMap;var L_=["onKeyDown"];var D_=f.forwardRef((function(t,n){var r,i=t.onKeyDown,a=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(t,L_),o=Qe(kS(Object.assign({tagName:"a"},a)),1)[0],s=P_((function(e){o.onKeyDown(e),null==i||i(e)}));return(r=a.href)&&"#"!==r.trim()&&"button"!==a.role?(0,e.jsx)("a",Object.assign({ref:n},a,{onKeyDown:i})):(0,e.jsx)("a",Object.assign({ref:n},a,o,{onKeyDown:s}))}));D_.displayName="Anchor";var F_=D_;n(2176);function z_(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function B_(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}function V_(e,t){return Object.keys(t).reduce((function(n,r){var i,a=n,o=a[z_(r)],s=a[r],u=c(a,[z_(r),r].map(B_)),l=t[r],d=function(e,t,n){var r=(0,f.useRef)(void 0!==e),i=(0,f.useState)(t),a=i[0],o=i[1],s=void 0!==e,u=r.current;return r.current=s,!s&&u&&a!==t&&o(t),[s?e:a,(0,f.useCallback)((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;iJ?"next":"prev"),s&&X(!0),Q(v||0))}),[v,G,J,s]),(0,f.useEffect)((function(){B.current&&(B.current=null)}));var Z,ee=0;!function(e,t){var n=0;f.Children.forEach(e,(function(e){f.isValidElement(e)&&t(e,n++)}))}(L,(function(e,t){++ee,t===v&&(Z=e.props.interval)}));var te=T_(Z),ne=(0,f.useCallback)((function(e){if(!G){var t=J-1;if(t<0){if(!E)return;t=ee-1}B.current="prev",null==g||g(t,e)}}),[G,J,g,E,ee]),re=P_((function(e){if(!G){var t=J+1;if(t>=ee){if(!E)return;t=0}B.current="next",null==g||g(t,e)}})),ie=(0,f.useRef)();(0,f.useImperativeHandle)(n,(function(){return{element:ie.current,prev:ne,next:re}}));var ae=P_((function(){!document.hidden&&function(e){if(!e||!e.style||!e.parentNode||!e.parentNode.style)return!1;var t=getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&"none"!==getComputedStyle(e.parentNode).display}(ie.current)&&(z?ne():re())})),oe="next"===U?"start":"end";j_((function(){s||(null==m||m(J,oe),null==y||y(J,oe))}),[J]);var se="".concat(F,"-item-").concat(U),ue="".concat(F,"-item-").concat(oe),le=(0,f.useCallback)((function(e){!function(e){e.offsetHeight}(e),null==m||m(J,oe)}),[m,J,oe]),ce=(0,f.useCallback)((function(){X(!1),null==y||y(J,oe)}),[y,J,oe]),de=(0,f.useCallback)((function(e){if(x&&!/input|textarea/i.test(e.target.tagName))switch(e.key){case"ArrowLeft":return e.preventDefault(),void(z?re(e):ne(e));case"ArrowRight":return e.preventDefault(),void(z?ne(e):re(e))}null==w||w(e)}),[x,w,ne,re,z]),fe=(0,f.useCallback)((function(e){"hover"===k&&Y(!0),null==S||S(e)}),[k,S]),he=(0,f.useCallback)((function(e){Y(!1),null==_||_(e)}),[_]),pe=(0,f.useRef)(0),ve=(0,f.useRef)(0),ge=M_(),me=(0,f.useCallback)((function(e){pe.current=e.touches[0].clientX,ve.current=0,"hover"===k&&Y(!0),null==O||O(e)}),[k,O]),ye=(0,f.useCallback)((function(e){e.touches&&e.touches.length>1?ve.current=0:ve.current=e.touches[0].clientX-pe.current,null==T||T(e)}),[T]),be=(0,f.useCallback)((function(e){if(C){var t=ve.current;Math.abs(t)>40&&(t>0?ne(e):re(e))}"hover"===k&&ge.set((function(){Y(!1)}),b||void 0),null==P||P(e)}),[C,k,ne,re,ge,b,P]),xe=null!=b&&!q&&!G,we=(0,f.useRef)();(0,f.useEffect)((function(){var e,t;if(xe){var n=z?ne:re;return we.current=window.setInterval(document.visibilityState?ae:n,null!=(e=null!=(t=te.current)?t:b)?e:void 0),function(){null!==we.current&&clearInterval(we.current)}}}),[xe,ne,re,te,b,ae,z]);var ke=(0,f.useMemo)((function(){return h&&Array.from({length:ee},(function(e,t){return function(e){null==g||g(t,e)}}))}),[h,ee,g]);return(0,e.jsxs)(a,l(l({ref:ie},D),{},{onKeyDown:de,onMouseOver:fe,onMouseOut:he,onTouchStart:me,onTouchMove:ye,onTouchEnd:be,className:xS()(N,F,s&&"slide",u&&"".concat(F,"-fade"),M&&"".concat(F,"-").concat(M)),children:[h&&(0,e.jsx)("div",{className:"".concat(F,"-indicators"),children:X_(L,(function(t,n){return(0,e.jsx)("button",{type:"button","data-bs-target":"","aria-label":null!=p&&p.length?p[n]:"Slide ".concat(n+1),className:n===J?"active":void 0,onClick:ke?ke[n]:void 0,"aria-current":n===J},n)}))}),(0,e.jsx)("div",{className:"".concat(F,"-inner"),children:X_(L,(function(t,n){var r=n===J;return s?(0,e.jsx)(TE,{in:r,onEnter:r?le:void 0,onEntered:r?ce:void 0,addEndListener:fE,children:function(e,n){return f.cloneElement(t,l(l({},n),{},{className:xS()(t.props.className,r&&"entered"!==e&&se,("entered"===e||"exiting"===e)&&"active",("entering"===e||"exiting"===e)&&ue)}))}}):f.cloneElement(t,{className:xS()(t.props.className,r&&"active")})}))}),c&&(0,e.jsxs)(e.Fragment,{children:[(E||0!==v)&&(0,e.jsxs)(F_,{className:"".concat(F,"-control-prev"),onClick:ne,children:[j,A&&(0,e.jsx)("span",{className:"visually-hidden",children:A})]}),(E||v!==ee-1)&&(0,e.jsxs)(F_,{className:"".concat(F,"-control-next"),onClick:re,children:[I,R&&(0,e.jsx)("span",{className:"visually-hidden",children:R})]})]})]}))}));AE.displayName="Carousel",AE.defaultProps=jE;var IE=Object.assign(AE,{Caption:q_,Item:G_}),RE=n.p+"static/media/cimg1.64d5a19a7bb2fd1ec618.png",ME=n.p+"static/media/cimg2.0bbeb4480ddb829f0d5a.png",NE=n.p+"static/media/cimg3.cf05bae3ccd17734f9d4.png",LE=n.p+"static/media/shikshaIntro.b3aca1938af5ecf61e68.gif",DE=function(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(gS,{}),(0,e.jsx)("div",{children:(0,e.jsxs)(IE,{slide:!1,children:[(0,e.jsx)(IE.Item,{children:(0,e.jsx)("img",{className:"d-block w-100",src:LE,alt:"Intro slide"})}),(0,e.jsx)(IE.Item,{children:(0,e.jsx)("img",{className:"d-block w-100",src:RE,alt:"First slide"})}),(0,e.jsx)(IE.Item,{children:(0,e.jsx)("img",{className:"d-block w-100",src:ME,alt:"Second slide"})}),(0,e.jsx)(IE.Item,{children:(0,e.jsx)("img",{className:"d-block w-100",src:NE,alt:"Third slide"})})]})}),(0,e.jsx)(w_,{}),(0,e.jsx)(O_,{}),(0,e.jsx)(v_,{}),(0,e.jsx)(s_,{})]})};var FE;function zE(){return zE=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function GE(e,t,n,r){void 0===r&&(r={});var i=r,a=i.window,o=void 0===a?document.defaultView:a,s=i.v5Compat,u=void 0!==s&&s,l=o.history,c=FE.Pop,d=null,f=h();function h(){return(l.state||{idx:null}).idx}function p(){c=FE.Pop;var e=h(),t=null==e?null:e-f;f=e,d&&d({action:c,location:g.location,delta:t})}function v(e){var t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"===typeof e?e:YE(e);return UE(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==f&&(f=0,l.replaceState(zE({},l.state,{idx:f}),""));var g={get action(){return c},get location(){return e(o,l)},listen:function(e){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(VE,p),d=e,function(){o.removeEventListener(VE,p),d=null}},createHref:function(e){return t(o,e)},createURL:v,encodeLocation:function(e){var t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=FE.Push;var r=qE(g.location,e,t);n&&n(r,e);var i=HE(r,f=h()+1),a=g.createHref(r);try{l.pushState(i,"",a)}catch(s){o.location.assign(a)}u&&d&&d({action:c,location:g.location,delta:1})},replace:function(e,t){c=FE.Replace;var r=qE(g.location,e,t);n&&n(r,e);var i=HE(r,f=h()),a=g.createHref(r);l.replaceState(i,"",a),u&&d&&d({action:c,location:g.location,delta:0})},go:function(e){return l.go(e)}};return g}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(BE||(BE={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function XE(e,t,n){void 0===n&&(n="/");var r=lC(("string"===typeof t?KE(t):t).pathname||"/",n);if(null==r)return null;var i=$E(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(i);for(var a=null,o=0;null==a&&o0&&(UE(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),$E(e.children,t,u,s)),(null!=e.path||e.index)&&t.push({path:s,score:aC(s,e.index),routesMeta:u})};return e.forEach((function(e,t){var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?")){var r,a=st(JE(e.path));try{for(a.s();!(r=a.n()).done;){var o=r.value;i(e,t,o)}}catch(s){a.e(s)}finally{a.f()}}else i(e,t)})),t}function JE(e){var t=e.split("/");if(0===t.length)return[];var n=ct(t),r=n[0],i=n.slice(1),a=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===i.length)return a?[o,""]:[o];var s=JE(i.join("/")),u=[];return u.push.apply(u,lt(s.map((function(e){return""===e?o:[o,e].join("/")})))),a&&u.push.apply(u,lt(s)),u.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var QE=/^:\w+$/,ZE=3,eC=2,tC=1,nC=10,rC=-2,iC=function(e){return"*"===e};function aC(e,t){var n=e.split("/"),r=n.length;return n.some(iC)&&(r+=rC),t&&(r+=eC),n.filter((function(e){return!iC(e)})).reduce((function(e,t){return e+(QE.test(t)?ZE:""===t?tC:nC)}),r)}function oC(e,t){for(var n=e.routesMeta,r={},i="/",a=[],o=0;o and the router will parse it for you.'}function dC(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function fC(e,t,n,r){var i;void 0===r&&(r=!1),"string"===typeof e?i=KE(e):(UE(!(i=zE({},e)).pathname||!i.pathname.includes("?"),cC("?","pathname","search",i)),UE(!i.pathname||!i.pathname.includes("#"),cC("#","pathname","hash",i)),UE(!i.search||!i.search.includes("#"),cC("#","search","hash",i)));var a,o=""===e||""===i.pathname,s=o?"/":i.pathname;if(r||null==s)a=n;else{var u=t.length-1;if(s.startsWith("..")){for(var l=s.split("/");".."===l[0];)l.shift(),u-=1;i.pathname=l.join("/")}a=u>=0?t[u]:"/"}var c=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?KE(e):e,r=n.pathname,i=n.search,a=void 0===i?"":i,o=n.hash,s=void 0===o?"":o,u=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:u,search:vC(a),hash:gC(s)}}(i,a),d=s&&"/"!==s&&s.endsWith("/"),f=(o||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!d&&!f||(c.pathname+="/"),c}var hC=function(e){return e.join("/").replace(/\/\/+/g,"/")},pC=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},vC=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},gC=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},mC=function(e){ea(n,e);var t=aa(n);function n(){return Qi(this,n),t.apply(this,arguments)}return Ji(n)}(sa(Error));function yC(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var bC=["post","put","patch","delete"],xC=(new Set(bC),["get"].concat(bC));new Set(xC),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!==typeof window&&"undefined"!==typeof window.document&&window.document.createElement;Symbol("deferred");var wC="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},kC=f.useState,SC=f.useEffect,_C=f.useLayoutEffect,EC=f.useDebugValue;function CC(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!wC(n,r)}catch(i){return!0}}"undefined"===typeof window||"undefined"===typeof window.document||window.document.createElement,h.useSyncExternalStore;var OC=f.createContext(null);var TC=f.createContext(null);var PC=f.createContext(null);var jC=f.createContext(null);var AC=f.createContext(null);var IC=f.createContext({outlet:null,matches:[]});var RC=f.createContext(null);function MC(){return MC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||UE(!1),r=r.slice(0,Math.min(r.length,a+1))}return r.reduceRight((function(e,a,o){var s=a.route.id?null==i?void 0:i[a.route.id]:null,u=null;n&&(u=a.route.ErrorBoundary?f.createElement(a.route.ErrorBoundary,null):a.route.errorElement?a.route.errorElement:f.createElement(zC,null));var l=t.concat(r.slice(0,o+1)),c=function(){var t=e;return s?t=u:a.route.Component?t=f.createElement(a.route.Component,null):a.route.element&&(t=a.route.element),f.createElement(WC,{match:a,routeContext:{outlet:e,matches:l},children:t})};return n&&(a.route.ErrorBoundary||a.route.errorElement||0===o)?f.createElement(UC,{location:n.location,component:u,error:s,children:c(),routeContext:{outlet:null,matches:l}}):c()}),null)}function qC(e){var t=f.useContext(TC);return t||UE(!1),t}function YC(e){var t=function(e){var t=f.useContext(IC);return t||UE(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||UE(!1),n.route.id}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"}(BC||(BC={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(VC||(VC={}));var KC;function GC(e){UE(!1)}function XC(e){var t=e.basename,n=void 0===t?"/":t,r=e.children,i=void 0===r?null:r,a=e.location,o=e.navigationType,s=void 0===o?FE.Pop:o,u=e.navigator,l=e.static,c=void 0!==l&&l;NC()&&UE(!1);var d=n.replace(/^\/*/,"/"),h=f.useMemo((function(){return{basename:d,navigator:u,static:c}}),[d,u,c]);"string"===typeof a&&(a=KE(a));var p=a,v=p.pathname,g=void 0===v?"/":v,m=p.search,y=void 0===m?"":m,b=p.hash,x=void 0===b?"":b,w=p.state,k=void 0===w?null:w,S=p.key,_=void 0===S?"default":S,E=f.useMemo((function(){var e=lC(g,d);return null==e?null:{location:{pathname:e,search:y,hash:x,state:k,key:_},navigationType:s}}),[d,g,y,x,k,_,s]);return null==E?null:f.createElement(jC.Provider,{value:h},f.createElement(AC.Provider,{children:i,value:E}))}function $C(e){var t=e.children,n=e.location,r=f.useContext(OC);return function(e,t){NC()||UE(!1);var n,r=f.useContext(jC).navigator,i=f.useContext(TC),a=f.useContext(IC).matches,o=a[a.length-1],s=o?o.params:{},u=(o&&o.pathname,o?o.pathnameBase:"/"),l=(o&&o.route,LC());if(t){var c,d="string"===typeof t?KE(t):t;"/"===u||(null==(c=d.pathname)?void 0:c.startsWith(u))||UE(!1),n=d}else n=l;var h=n.pathname||"/",p=XE(e,{pathname:"/"===u?h:h.slice(u.length)||"/"}),v=HC(p&&p.map((function(e){return Object.assign({},e,{params:Object.assign({},s,e.params),pathname:hC([u,r.encodeLocation?r.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:hC([u,r.encodeLocation?r.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),a,i||void 0);return t&&v?f.createElement(AC.Provider,{value:{location:MC({pathname:"/",search:"",hash:"",state:null,key:"default"},n),navigationType:FE.Pop}},v):v}(r&&!t?r.router.routes:QC(t),n)}!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(KC||(KC={}));var JC=new Promise((function(){}));f.Component;function QC(e,t){void 0===t&&(t=[]);var n=[];return f.Children.forEach(e,(function(e,r){if(f.isValidElement(e))if(e.type!==f.Fragment){e.type!==GC&&UE(!1),e.props.index&&e.props.children&&UE(!1);var i=[].concat(lt(t),[r]),a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=QC(e.props.children,i)),n.push(a)}else n.push.apply(n,QC(e.props.children,t))})),n}function ZC(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var eO={data:""},tO=function(e){return"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||eO},nO=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,rO=/\/\*[^]*?\*\/| +/g,iO=/\n+/g,aO=function e(t,n){var r="",i="",a="",o=function(o){var s=t[o];"@"==o[0]?"i"==o[1]?r=o+" "+s+";":i+="f"==o[1]?e(s,o):o+"{"+e(s,"k"==o[1]?"":n)+"}":"object"==typeof s?i+=e(s,n?n.replace(/([^,])+/g,(function(e){return o.replace(/(^:.*)|([^,])+/g,(function(t){return/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t}))})):o):null!=s&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=e.p?e.p(o,s):o+":"+s+";")};for(var s in t)o(s);return r+(n&&a?n+"{"+a+"}":a)+i},oO={},sO=function e(t){if("object"==typeof t){var n="";for(var r in t)n+=r+e(t[r]);return n}return t},uO=function(e,t,n,r,i){var a=sO(e),o=oO[a]||(oO[a]=function(e){for(var t=0,n=11;t>>0;return"go"+n}(a));if(!oO[o]){var u=a!==e?e:function(e){for(var t,n,r=[{}];t=nO.exec(e.replace(rO,""));)t[4]?r.shift():t[3]?(n=t[3].replace(iO," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(iO," ").trim();return r[0]}(e);oO[o]=aO(i?s({},"@keyframes "+o,u):u,n?"":"."+o)}var l=n&&oO.g?oO.g:null;return n&&(oO.g=oO[o]),function(e,t,n,r){r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)}(oO[o],t,r,l),o},lO=function(e,t,n){return e.reduce((function(e,r,i){var a=t[i];if(a&&a.call){var o=a(n),s=o&&o.props&&o.props.className||/^go/.test(o)&&o;a=s?"."+s:o&&"object"==typeof o?o.props?"":aO(o,""):!1===o?"":o}return e+r+(null==a?"":a)}),"")};function cO(e){var t=this||{},n=e.call?e(t.p):e;return uO(n.unshift?n.raw?lO(n,[].slice.call(arguments,1),t.p):n.reduce((function(e,n){return Object.assign(e,n&&n.call?n(t.p):n)}),{}):n,tO(t.target),t.g,t.o,t.k)}cO.bind({g:1});var dO,fO,hO,pO,vO,gO,mO,yO,bO,xO,wO,kO,SO,_O,EO,CO,OO,TO,PO,jO=cO.bind({k:1});function AO(e,t){var n=this||{};return function(){var r=arguments;function i(a,o){var s=Object.assign({},a),u=s.className||i.className;n.p=Object.assign({theme:fO&&fO()},s),n.o=/ *go\d+/.test(u),s.className=cO.apply(n,r)+(u?" "+u:""),t&&(s.ref=o);var l=e;return e[0]&&(l=s.as||e,delete s.as),hO&&l[0]&&hO(s),dO(l,s)}return t?t(i):i}}var IO=function(e,t){return function(e){return"function"==typeof e}(e)?e(t):e},RO=function(){var e=0;return function(){return(++e).toString()}}(),MO=function(){var e;return function(){if(void 0===e&&typeof window<"u"){var t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}}(),NO=new Map,LO=function(e){if(!NO.has(e)){var t=setTimeout((function(){NO.delete(e),BO({type:4,toastId:e})}),1e3);NO.set(e,t)}},DO=function e(t,n){switch(n.type){case 0:return l(l({},t),{},{toasts:[n.toast].concat(lt(t.toasts)).slice(0,20)});case 1:return n.toast.id&&function(e){var t=NO.get(e);t&&clearTimeout(t)}(n.toast.id),l(l({},t),{},{toasts:t.toasts.map((function(e){return e.id===n.toast.id?l(l({},e),n.toast):e}))});case 2:var r=n.toast;return t.toasts.find((function(e){return e.id===r.id}))?e(t,{type:1,toast:r}):e(t,{type:0,toast:r});case 3:var i=n.toastId;return i?LO(i):t.toasts.forEach((function(e){LO(e.id)})),l(l({},t),{},{toasts:t.toasts.map((function(e){return e.id===i||void 0===i?l(l({},e),{},{visible:!1}):e}))});case 4:return void 0===n.toastId?l(l({},t),{},{toasts:[]}):l(l({},t),{},{toasts:t.toasts.filter((function(e){return e.id!==n.toastId}))});case 5:return l(l({},t),{},{pausedAt:n.time});case 6:var a=n.time-(t.pausedAt||0);return l(l({},t),{},{pausedAt:void 0,toasts:t.toasts.map((function(e){return l(l({},e),{},{pauseDuration:e.pauseDuration+a})}))})}},FO=[],zO={toasts:[],pausedAt:void 0},BO=function(e){zO=DO(zO,e),FO.forEach((function(e){e(zO)}))},VO={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},UO=function(e){return function(t,n){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",n=arguments.length>2?arguments[2]:void 0;return l(l({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0},n),{},{id:(null==n?void 0:n.id)||RO()})}(t,e,n);return BO({type:2,toast:r}),r.id}},WO=function(e,t){return UO("blank")(e,t)};WO.error=UO("error"),WO.success=UO("success"),WO.loading=UO("loading"),WO.custom=UO("custom"),WO.dismiss=function(e){BO({type:3,toastId:e})},WO.remove=function(e){return BO({type:4,toastId:e})},WO.promise=function(e,t,n){var r=WO.loading(t.loading,l(l({},n),null==n?void 0:n.loading));return e.then((function(e){return WO.success(IO(t.success,e),l(l({id:r},n),null==n?void 0:n.success)),e})).catch((function(e){WO.error(IO(t.error,e),l(l({id:r},n),null==n?void 0:n.error))})),e};var HO=function(e,t){BO({type:1,toast:{id:e,height:t}})},qO=function(){BO({type:5,time:Date.now()})},YO=function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Qe((0,f.useState)(zO),2),n=t[0],r=t[1];(0,f.useEffect)((function(){return FO.push(r),function(){var e=FO.indexOf(r);e>-1&&FO.splice(e,1)}}),[n]);var i=n.toasts.map((function(t){var n,r;return l(l(l(l({},e),e[t.type]),t),{},{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||VO[t.type],style:l(l(l({},e.style),null==(r=e[t.type])?void 0:r.style),t.style)})}));return l(l({},n),{},{toasts:i})}(e),n=t.toasts,r=t.pausedAt;(0,f.useEffect)((function(){if(!r){var e=Date.now(),t=n.map((function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((function(){return WO.dismiss(t.id)}),n);t.visible&&WO.dismiss(t.id)}}));return function(){t.forEach((function(e){return e&&clearTimeout(e)}))}}}),[n,r]);var i=(0,f.useCallback)((function(){r&&BO({type:6,time:Date.now()})}),[r]),a=(0,f.useCallback)((function(e,t){var r,i=t||{},a=i.reverseOrder,o=void 0!==a&&a,s=i.gutter,u=void 0===s?8:s,l=i.defaultPosition,c=n.filter((function(t){return(t.position||l)===(e.position||l)&&t.height})),d=c.findIndex((function(t){return t.id===e.id})),f=c.filter((function(e,t){return t * {\n pointer-events: auto;\n }\n"]))),pT=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,a=e.gutter,o=e.children,s=e.containerStyle,u=e.containerClassName,c=YO(i),d=c.toasts,h=c.handlers;return f.createElement("div",{style:l({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},s),className:u,onMouseEnter:h.startPause,onMouseLeave:h.endPause},d.map((function(e){var n=e.position||r,i=function(e,t){var n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return l(l({left:0,right:0,display:"flex",position:"absolute",transition:MO()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(t*(n?1:-1),"px)")},r),i)}(n,h.calculateOffset(e,{reverseOrder:t,gutter:a,defaultPosition:r}));return f.createElement(fT,{id:e.id,key:e.id,onHeightUpdate:h.updateHeight,className:e.visible?hT:"",style:i},"custom"===e.type?IO(e.message,e):o?o(e):f.createElement(dT,{toast:e,position:n}))})))};n(8736);function vT(){var t=DC();var n=[{name:"Science",description:"Science helps us understand the world around us by exploring natural phenomena, conducting experiments, and making observations.",imageSrc:S_},{name:"Mathematics",description:"Mathematics is the language of the universe, and it plays a vital role in various fields of science and technology.",imageSrc:k_},{name:"English",description:"English is a global language, and it's essential for communication, literature, and many other aspects of life.",imageSrc:__},{name:"Hindi",description:"Hindi, as one of India's official languages, plays a crucial role in fostering cultural identity and communication among its diverse population.",imageSrc:E_}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(pT,{}),(0,e.jsx)("div",{className:"pt-6 pb-12 bg-gray-300",children:n.map((function(n){return(0,e.jsx)("div",{className:"container flex flex-col mx-auto mt-4 w-96 lg:w-4/5",children:(0,e.jsxs)("div",{className:"flex flex-col mx-2 overflow-hidden bg-white rounded-lg shadow-xl hover:shadow-sm hover:cursor-pointer md:flex-row w-100",children:[(0,e.jsx)("div",{className:"w-auto h-64 md:w-1/2",children:(0,e.jsx)("img",{className:"inset-0 object-cover object-center w-full h-full",src:n.imageSrc,alt:"".concat(n.name," Image")})}),(0,e.jsxs)("div",{className:"flex flex-col justify-between w-full px-6 py-4 text-gray-800",children:[(0,e.jsx)("h3",{className:"self-center text-3xl font-semibold leading-tight uppercase truncate",children:n.name}),(0,e.jsx)("p",{className:"mt-1",children:n.description}),(0,e.jsx)("button",{className:"w-[80%] lg:w-[30%] inline-flex items-center justify-center p-0.5 mb-2 overflow-hidden text-sm font-medium text-[#212427] rounded-lg group bg-gradient-to-br from-[#A2DFD9] to-[#CB88FF] group-hover:from-[#A2DFD9] group-hover:to-[#CB88FF] hover:text-[#EFEEE9] focus:ring-2 focus:outline-none focus:ring-[#EFEEE9]",type:"button",onClick:function(){return t("/".concat(n.name.toLowerCase()))},children:(0,e.jsx)("span",{className:"px-5 py-2.5 transition-all ease-in duration-75 bg-transparent dark:bg-gray-900 rounded-md group-hover:bg-opacity-0",children:"GO TO COURSE"})}),(0,e.jsx)("p",{className:"mt-1 text-sm font-semibold tracking-wide text-gray-700 uppercase",children:"REV-2019'C' Scheme"})]})]})},n.name)}))})]})}var gT=n.p+"static/media/coursecatbg.5a24f732f59d58766ab0.png",mT=n(91);function yT(){return(0,e.jsxs)("div",{className:"relative isolate flex items-center gap-x-6 overflow-hidden bg-gray-50 px-6 py-2.5 sm:px-3.5 sm:before:flex-1",children:[(0,e.jsx)("div",{className:"absolute left-[max(-7rem,calc(50%-52rem))] top-1/2 -z-10 -translate-y-1/2 transform-gpu blur-2xl","aria-hidden":"true",children:(0,e.jsx)("div",{className:"aspect-[577/310] w-[36.0625rem] bg-gradient-to-r from-[#ff80b5] to-[#9089fc] opacity-30",style:{clipPath:"polygon(74.8% 41.9%, 97.2% 73.2%, 100% 34.9%, 92.5% 0.4%, 87.5% 0%, 75% 28.6%, 58.5% 54.6%, 50.1% 56.8%, 46.9% 44%, 48.3% 17.4%, 24.7% 53.9%, 0% 27.9%, 11.9% 74.2%, 24.9% 54.1%, 68.6% 100%, 74.8% 41.9%)"}})}),(0,e.jsx)("div",{className:"absolute left-[max(45rem,calc(50%+8rem))] top-1/2 -z-10 -translate-y-1/2 transform-gpu blur-2xl","aria-hidden":"true",children:(0,e.jsx)("div",{className:"aspect-[577/310] w-[36.0625rem] bg-gradient-to-r from-[#ff80b5] to-[#9089fc] opacity-30",style:{clipPath:"polygon(74.8% 41.9%, 97.2% 73.2%, 100% 34.9%, 92.5% 0.4%, 87.5% 0%, 75% 28.6%, 58.5% 54.6%, 50.1% 56.8%, 46.9% 44%, 48.3% 17.4%, 24.7% 53.9%, 0% 27.9%, 11.9% 74.2%, 24.9% 54.1%, 68.6% 100%, 74.8% 41.9%)"}})}),(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-2",children:[(0,e.jsxs)("p",{className:"text-sm leading-6 text-gray-900",children:[(0,e.jsx)("strong",{className:"font-semibold",children:"Shiksha Exclusive"}),(0,e.jsx)("svg",{viewBox:"0 0 2 2",className:"mx-2 inline h-0.5 w-0.5 fill-current","aria-hidden":"true",children:(0,e.jsx)("circle",{cx:1,cy:1,r:1})}),"Evolve yourself with premium features"]}),(0,e.jsxs)("a",{href:"#",className:"flex-none rounded-full bg-gray-900 px-3.5 py-1 text-sm font-semibold text-white shadow-sm hover:bg-gray-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900",children:["Register now ",(0,e.jsx)("span",{"aria-hidden":"true",children:"\u2192"})]})]}),(0,e.jsx)("div",{className:"flex flex-1 justify-end",children:(0,e.jsxs)("button",{type:"button",className:"-m-3 p-3 focus-visible:outline-offset-[-4px]",children:[(0,e.jsx)("span",{className:"sr-only",children:"Dismiss"}),(0,e.jsx)(mT,{className:"h-5 w-5 text-gray-900","aria-hidden":"true"})]})})]})}var bT=function(){return(0,e.jsxs)("div",{children:[(0,e.jsx)(gS,{}),(0,e.jsxs)("div",{children:[(0,e.jsx)("img",{src:gT,alt:"bg",width:"100%",height:"400",class:"acc1"}),(0,e.jsx)("div",{class:"position-relative"}),(0,e.jsxs)("div",{class:"position-absolute top-50 start-50 translate-middle",children:[(0,e.jsx)("p",{class:"text-warning display-3 fw-semibold"}),(0,e.jsx)("p",{class:"text-white fs-3 fw-light my-1"})]})]}),(0,e.jsx)(vT,{}),(0,e.jsx)(s_,{})]})},xT=[{name:"Aayush Talreja",role:"Founder / CEO",imageUrl:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"},{name:"Mansi Bellani",role:"Co-Founder / CIO",imageUrl:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"},{name:"Niranjan Yeole",role:"CFO",imageUrl:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"},{name:"Anuj Bagad",role:"COO",imageUrl:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"}];function wT(){return(0,e.jsx)("div",{className:"bg-white py-24 sm:py-32",children:(0,e.jsxs)("div",{className:"mx-auto grid max-w-7xl gap-y-20 gap-x-8 px-6 lg:px-8 xl:grid-cols-3",children:[(0,e.jsxs)("div",{className:"max-w-2xl",children:[(0,e.jsx)("h2",{className:"text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl",children:"Meet our leadership"}),(0,e.jsx)("p",{className:"mt-6 text-lg leading-8 text-gray-600",children:"Libero fames augue nisl porttitor nisi, quis. Id ac elit odio vitae elementum enim vitae ullamcorper suspendisse."})]}),(0,e.jsx)("ul",{role:"list",className:"grid gap-x-8 gap-y-12 sm:grid-cols-2 sm:gap-y-16 xl:col-span-2",children:xT.map((function(t){return(0,e.jsx)("li",{children:(0,e.jsxs)("div",{className:"flex items-center gap-x-6",children:[(0,e.jsx)("img",{className:"h-16 w-16 rounded-full",src:t.imageUrl,alt:""}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"text-base font-semibold leading-7 tracking-tight text-gray-900",children:t.name}),(0,e.jsx)("p",{className:"text-sm font-semibold leading-6 text-indigo-600",children:t.role})]})]})},t.name)}))})]})})}var kT=[{name:"Open roles",href:"#"},{name:"Our Services",href:"#"},{name:"Our values",href:"#"},{name:"Meet our leadership",href:"#leadership"}],ST=[{name:"Full-Time Tutors",value:"160+"},{name:"Students Tutored",value:"300+"},{name:"Lecture Videos",value:"450+"},{name:"Price",value:"Free"}],_T=[{name:"Aayush Talreja",role:"Founder + CEO",imageUrl:"https://media.licdn.com/dms/image/C4D03AQGjVJnZjakikg/profile-displayphoto-shrink_200_200/0/1657648501282?e=1700092800&v=beta&t=2hsLm8z_INY3nH59HSVzYgUFC3wyNXZ_MTRUTVCHgXA"},{name:"Sudhanshu Sabale",role:"CTO + HR",imageUrl:"https://media.licdn.com/dms/image/D4D03AQGGyi7iO4NFKw/profile-displayphoto-shrink_100_100/0/1679249654187?e=1700092800&v=beta&t=52x6MXU8vQmG6xyf4d9VXrZPmZk-eynVeylJu4eqKI4"},{name:"Anshita Talreja",role:"Co-Founder + COO",imageUrl:"https://media.licdn.com/dms/image/D5603AQHwd4NbcDAYyA/profile-displayphoto-shrink_100_100/0/1682758978080?e=1700092800&v=beta&t=Q6y7SLBAwemKPD7GNmlbu8OZyIePNlkXzx97cnuBnhg"},{name:"Cheshta Gurbaxani",role:"CFO",imageUrl:"https://images.unsplash.com/photo-1634926878768-2a5b3c42f139?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MjJ8fGNhcnRvb24lMjBnaXJsfGVufDB8fDB8fHww"},{name:"Mansi Bellani",role:"Data Analyst + CIO",imageUrl:"https://media.licdn.com/dms/image/D4D03AQF_sjSz2esQWA/profile-displayphoto-shrink_100_100/0/1689216851927?e=1695859200&v=beta&t=PcC2gr_o7cAiThV_uHFBsv3K_udJjZjd2d2scy55nfc"},{name:"Anuj Bagad",role:"Backend Dev + MD",imageUrl:"https://media.licdn.com/dms/image/C4D03AQG7ln3Kb53VZA/profile-displayphoto-shrink_100_100/0/1641273867979?e=1695859200&v=beta&t=La4q8Eg25kwPNzgMgDugEziMUXBECbFoAVDxSACt8pg"},{name:"Niranjan Yeole",role:"PR-Head",imageUrl:"https://media.licdn.com/dms/image/C4E03AQFMaAxosx5O8A/profile-displayphoto-shrink_100_100/0/1642847850390?e=1695859200&v=beta&t=nUjDR1YwYcLXZ7Qjxx7jPxPVPSYupqjHXzIGXWoVvGU"}];var ET=function(){var t=(0,Jx.h5)().speak;return(0,e.jsxs)("div",{className:"relative overflow-hidden bg-gray-900 py-35 sm:py-40",children:[(0,e.jsx)("img",{className:"absolute inset-0 object-cover object-right w-full h-full bg-gradient-to-t -z-10 md:object-center"}),(0,e.jsx)("svg",{viewBox:"0 0 1097 845","aria-hidden":"true",className:"hidden transform-gpu blur-3xl sm:absolute sm:-top-10 sm:right-1/2 sm:-z-10 sm:mr-10 sm:block sm:w-[68.5625rem]"}),(0,e.jsx)("svg",{viewBox:"0 0 1097 845","aria-hidden":"true",className:"absolute left-1/2 -top-52 -z-10 w-[68.5625rem] -translate-x-1/2 transform-gpu blur-3xl sm:top-[-28rem] sm:ml-16 sm:translate-x-0"}),(0,e.jsxs)("div",{className:"px-6 mx-auto max-w-7xl lg:px-8",children:[(0,e.jsxs)("div",{className:"max-w-2xl lg:mx-0",children:[(0,e.jsx)("h2",{className:"text-4xl font-bold tracking-tight text-blue-500 sm:text-6xl",children:"OUR VISION"}),(0,e.jsx)("p",{className:"mt-6 text-lg leading-8 text-white",children:"Our aim is to provide equal opportunity of Education to everyone irrespective of their disability."})]}),(0,e.jsxs)("div",{className:"max-w-2xl mx-auto mt-10 ml-8 lg:mx-0 lg:max-w-none",children:[(0,e.jsx)("div",{className:"grid grid-cols-1 text-base font-semibold leading-7 text-blue-500 gap-y-6 gap-x-8 sm:grid-cols-2 md:flex lg:gap-x-10",children:kT.map((function(n){return(0,e.jsxs)("a",{href:n.href,onMouseOver:function(){return t({text:n.name})},children:[n.name," ",(0,e.jsx)("span",{"aria-hidden":"true",children:"\u2192"})]},n.name)}))}),(0,e.jsx)("dl",{className:"grid grid-cols-1 gap-8 mt-16 sm:mt-20 sm:grid-cols-2 lg:grid-cols-4",children:ST.map((function(t){return(0,e.jsxs)("div",{className:"flex flex-col-reverse",children:[(0,e.jsx)("dt",{className:"text-base leading-7 text-blue-500",children:t.name}),(0,e.jsx)("dd",{className:"text-2xl font-bold leading-9 tracking-tight text-white",children:t.value})]},t.name)}))})]})]}),(0,e.jsx)("div",{className:"py-24 mt-40 bg-gradient-to-t sm:py-32",id:"leadership",children:(0,e.jsxs)("div",{className:"grid px-6 mx-auto max-w-7xl gap-y-20 gap-x-8 lg:px-8 xl:grid-cols-3",children:[(0,e.jsxs)("div",{className:"max-w-2xl",children:[(0,e.jsx)("h2",{className:"text-3xl font-bold tracking-tight text-gray-300 sm:text-4xl",children:"Meet our leadership"}),(0,e.jsx)("p",{className:"mt-6 text-lg leading-8 text-gray-300"})]}),(0,e.jsx)("ul",{role:"list",className:"grid gap-x-8 gap-y-12 sm:grid-cols-2 sm:gap-y-16 xl:col-span-2",children:_T.map((function(t){return(0,e.jsx)("li",{children:(0,e.jsxs)("div",{className:"flex items-center gap-x-6",children:[(0,e.jsx)("img",{className:"rounded-full h-25 w-25",src:t.imageUrl,alt:""}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"text-base font-semibold leading-7 tracking-tight text-gray-300",children:t.name}),(0,e.jsx)("p",{className:"text-sm font-semibold leading-6 text-indigo-600",children:t.role})]})]})},t.name)}))})]})})]})},CT=n.p+"static/media/aboutus.bdddd44dcb6d8472a2bf.png";var OT=function(){return(0,e.jsxs)("div",{children:[(0,e.jsx)(gS,{}),(0,e.jsxs)("div",{children:[(0,e.jsx)("img",{src:CT,width:"100%",height:"600",class:"acc1",alt:"bg"}),(0,e.jsx)("div",{class:"position-relative"}),(0,e.jsx)("div",{class:"position-absolute top-50 start-50 translate-middle"})]}),(0,e.jsx)(ET,{}),(0,e.jsx)(s_,{})]})};var TT=function(){return(0,e.jsxs)("div",{children:[(0,e.jsx)(gS,{}),(0,e.jsx)("h3",{class:"text-black d-flex justify-content-center pt-5",children:"A Big Step to Open New Doors"}),(0,e.jsxs)("h5",{class:"text-black d-flex justify-content-center ",children:["your each Rupee Counts"," "]}),(0,e.jsx)("div",{class:"p-5",children:(0,e.jsx)("div",{class:"card mx-auto",style:{width:"25rem"},children:(0,e.jsxs)("div",{class:"card-body",children:[(0,e.jsx)("h5",{class:"card-title",children:"Donation Details"}),(0,e.jsx)("div",{className:"container my-3",children:(0,e.jsxs)("div",{className:"row my-5",children:[(0,e.jsx)("div",{className:"col md-4 p-2",children:(0,e.jsx)("button",{type:"button",class:"btn btn-info",children:"Rs.1000"})}),(0,e.jsx)("div",{className:"col md-4 p-2",children:(0,e.jsxs)("button",{type:"button",class:"btn btn-info",children:["Rs.5000"," "]})}),(0,e.jsx)("div",{className:"col md-4 p-2",children:(0,e.jsx)("button",{type:"button",class:"btn btn-info",children:"Rs.10000"})}),(0,e.jsx)("div",{className:"col md-4 p-2",children:(0,e.jsx)("button",{type:"button",class:"btn btn-info",children:"Rs.25000"})}),(0,e.jsx)("div",{className:"col md-4 p-2",children:(0,e.jsx)("button",{type:"button",class:"btn btn-info",children:"Rs.50000"})}),(0,e.jsx)("div",{className:"col md-4 p-2",children:(0,e.jsx)("button",{type:"button",class:"btn btn-info",children:"Rs.75000"})})]})}),(0,e.jsx)("p",{class:"card-text",children:"Other Amount"}),(0,e.jsx)("form",{children:(0,e.jsx)("input",{type:"text"})}),(0,e.jsx)("div",{class:"p-5",children:(0,e.jsx)("button",{type:"button",class:"btn btn-dark",children:"Donate"})})]})})}),(0,e.jsx)(s_,{})]})};function PT(){return PT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var AT=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function IT(e){var t=e.basename,n=e.children,r=e.window,i=f.useRef();null==i.current&&(i.current=function(e){return void 0===e&&(e={}),GE((function(e,t){var n=e.location;return qE("",{pathname:n.pathname,search:n.search,hash:n.hash},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:YE(t)}),null,e)}({window:r,v5Compat:!0}));var a=i.current,o=Qe(f.useState({action:a.action,location:a.location}),2),s=o[0],u=o[1];return f.useLayoutEffect((function(){return a.listen(u)}),[a]),f.createElement(XC,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a})}var RT="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,MT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,NT=f.forwardRef((function(e,t){var n,r=e.onClick,i=e.relative,a=e.reloadDocument,o=e.replace,s=e.state,u=e.target,l=e.to,c=e.preventScrollReset,d=jT(e,AT),h=f.useContext(jC).basename,p=!1;if("string"===typeof l&&MT.test(l)&&(n=l,RT)){var v=new URL(window.location.href),g=l.startsWith("//")?new URL(v.protocol+l):new URL(l),m=lC(g.pathname,h);g.origin===v.origin&&null!=m?l=m+g.search+g.hash:p=!0}var y=function(e,t){var n=(void 0===t?{}:t).relative;NC()||UE(!1);var r=f.useContext(jC),i=r.basename,a=r.navigator,o=FC(e,{relative:n}),s=o.hash,u=o.pathname,l=o.search,c=u;return"/"!==i&&(c="/"===u?i:hC([i,u])),a.createHref({pathname:c,search:l,hash:s})}(l,{relative:i}),b=function(e,t){var n=void 0===t?{}:t,r=n.target,i=n.replace,a=n.state,o=n.preventScrollReset,s=n.relative,u=DC(),l=LC(),c=FC(e,{relative:s});return f.useCallback((function(t){if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();var n=void 0!==i?i:YE(l)===YE(c);u(e,{replace:n,state:a,preventScrollReset:o,relative:s})}}),[l,u,c,i,a,r,e,o,s])}(l,{replace:o,state:s,target:u,preventScrollReset:c,relative:i});return f.createElement("a",PT({},d,{href:n||y,onClick:p||a?r:function(e){r&&r(e),e.defaultPrevented||b(e)},ref:t,target:u}))}));var LT,DT;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(LT||(LT={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(DT||(DT={}));var FT=function(){return(0,e.jsxs)("div",{children:[(0,e.jsx)(gS,{}),(0,e.jsx)("a",{href:"/login",class:"btn btn-warning",children:(0,e.jsx)("h1",{class:"text-black d-flex text-l justify-content-center",children:"Create Profile"})}),(0,e.jsx)("div",{class:"p-5 mx-auto d-flex flex-column align-items-center",children:(0,e.jsx)("div",{class:"card",style:{width:"50rem"},children:(0,e.jsx)("div",{class:"card-body",children:(0,e.jsx)("div",{class:"my-3 mx-3",children:(0,e.jsxs)("div",{class:"row g-0 text-center",children:[(0,e.jsxs)("div",{class:"col-sm-6 col-md-8 text-start ",children:[(0,e.jsx)("h5",{class:"card-title",children:"Profile"}),(0,e.jsxs)("div",{class:"p-3",children:[(0,e.jsx)("p",{class:"card-text fw-light",children:"ID: xyz"}),(0,e.jsx)("p",{class:"card-text fw-light",children:"Contact No - +91 ***** *****"}),(0,e.jsx)("p",{class:"card-text fw-light",children:"Email - profile@gmail.com"}),(0,e.jsx)("p",{class:"card-text fw-light",children:"Address - 12, Road No 2, Teen Dongri, Yashwant Nagar, Goregaon West, Mumbai, Maharashtra"})]})]}),(0,e.jsx)("div",{class:"col-6 col-md-4 text-black",children:(0,e.jsx)("a",{href:"#",class:"btn btn-warning",style:{width:"10rem"},children:(0,e.jsx)(NT,{to:"/",class:"nav-link active",children:"Sign Out"})})})]})})})})}),(0,e.jsx)(s_,{})]})},zT=function(t){return(0,e.jsx)(Kb.div,l(l({className:"chakra-stack__item"},t),{},{__css:l({display:"inline-block",flex:"0 0 auto",minWidth:0},t.__css)}))};zT.displayName="StackItem";Object.freeze(["base","sm","md","lg","xl","2xl"]);function BT(e,t){return Array.isArray(e)?e.map((function(e){return null===e?null:t(e)})):ft(e)?Object.keys(e).reduce((function(n,r){return n[r]=t(e[r]),n}),{}):null!=e?t(e):null}var VT="& > *:not(style) ~ *:not(style)";var UT=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],WT=$b((function(t,n){var r=t.isInline,i=t.direction,a=t.align,o=t.justify,u=t.spacing,c=void 0===u?"0.5rem":u,h=t.wrap,p=t.children,v=t.divider,g=t.className,m=t.shouldWrapChildren,y=d(t,UT),b=r?"row":null!=i?i:"column",x=(0,f.useMemo)((function(){return function(e){var t=e.spacing,n=e.direction,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return s({flexDirection:n},VT,BT(n,(function(e){return r[e]})))}({direction:b,spacing:c})}),[b,c]),w=(0,f.useMemo)((function(){return function(e){var t=e.spacing,n=e.direction,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":BT(n,(function(e){return r[e]}))}}({spacing:c,direction:b})}),[c,b]),k=!!v,S=!m&&!k,_=(0,f.useMemo)((function(){var t=function(e){return f.Children.toArray(e).filter((function(e){return(0,f.isValidElement)(e)}))}(p);return S?t:t.map((function(n,r){var i="undefined"!==typeof n.key?n.key:r,a=r+1===t.length,o=m?(0,e.jsx)(zT,{children:n},i):n;if(!k)return o;var s=(0,f.cloneElement)(v,{__css:w}),u=a?null:s;return(0,e.jsxs)(f.Fragment,{children:[o,u]},i)}))}),[v,w,k,S,m,p]),E=dt("chakra-stack",g);return(0,e.jsx)(Kb.div,l(l({ref:n,display:"flex",alignItems:a,justifyContent:o,flexDirection:x.flexDirection,flexWrap:h,className:E,__css:k?{}:s({},VT,x[VT])},y),{},{children:_}))}));WT.displayName="Stack";var HT=$b((function(t,n){return(0,e.jsx)(WT,l(l({align:"center"},t),{},{direction:"column",ref:n}))}));HT.displayName="VStack";var qT=["className"],YT=$b((function(t,n){var r=tx("Heading",t),i=ir(t),a=(i.className,d(i,qT));return(0,e.jsx)(Kb.h2,l(l({ref:n,className:dt("chakra-heading",t.className)},a),{},{__css:r}))}));YT.displayName="Heading";var KT=["className","align","decoration","casing"],GT=$b((function(t,n){var r=tx("Text",t),i=ir(t),a=(i.className,i.align,i.decoration,i.casing,d(i,KT)),o=function(e){var t=Object.assign({},e);for(var n in t)void 0===t[n]&&delete t[n];return t}({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return(0,e.jsx)(Kb.p,l(l(l({ref:n,className:dt("chakra-text",t.className)},o),a),{},{__css:r}))}));GT.displayName="Text";var XT=Qe(Ze({strict:!1,name:"ButtonGroupContext"}),2),$T=(XT[0],XT[1]),JT=["children","className"];function QT(t){var n=t.children,r=t.className,i=d(t,JT),a=(0,f.isValidElement)(n)?(0,f.cloneElement)(n,{"aria-hidden":!0,focusable:!1}):n,o=dt("chakra-button__icon",r);return(0,e.jsx)(Kb.span,l(l({display:"inline-flex",alignSelf:"center",flexShrink:0},i),{},{className:o,children:a}))}QT.displayName="ButtonIcon";var ZT=["label","placement","spacing","children","className","__css"];function eP(t){var n=t.label,r=t.placement,i=t.spacing,a=void 0===i?"0.5rem":i,o=t.children,u=void 0===o?(0,e.jsx)(lx,{color:"currentColor",width:"1em",height:"1em"}):o,c=t.className,h=t.__css,p=d(t,ZT),v=dt("chakra-button__spinner",c),g="start"===r?"marginEnd":"marginStart",m=(0,f.useMemo)((function(){var e;return l((s(e={display:"flex",alignItems:"center",position:n?"relative":"absolute"},g,n?a:0),s(e,"fontSize","1em"),s(e,"lineHeight","normal"),e),h)}),[h,n,g,a]);return(0,e.jsx)(Kb.div,l(l({className:v},p),{},{__css:m,children:u}))}function tP(){for(var e=arguments.length,t=new Array(e),n=0;n" ')}),2),uP=sP[0],lP=(sP[1],["className","children","direction","justify","align"]),cP=$b((function(t,n){var r=ir(t),i=r.className,a=r.children,o=r.direction,s=void 0===o?"column":o,u=r.justify,c=r.align,f=d(r,lP),h=nx("Card",t);return(0,e.jsx)(Kb.div,l(l({ref:n,className:dt("chakra-card",i),__css:l({display:"flex",flexDirection:s,justifyContent:u,alignItems:c,position:"relative",minWidth:0,wordWrap:"break-word"},h.container)},f),{},{children:(0,e.jsx)(uP,{value:h,children:a})}))})),dP=function(){var t=[{name:"Lecture Title",description:"This is a sample video for testing and demo. This is called description.This is a sample video for testing and demo. This is called description.This is a sample video for testing and demo. This is called description.This is a sample video for testing and demo. This is called description."}],n=Qe(f.useState(!1),2),r=n[0],i=n[1],a=["https://firebasestorage.googleapis.com/v0/b/shiksha-b8390.appspot.com/o/Photosynthesis.mp4?alt=media&token=21b4de4c-9057-4085-a64b-4cbb09123519","https://firebasestorage.googleapis.com/v0/b/shiksha-b8390.appspot.com/o/earthquake.mp4?alt=media&token=eb918051-aabe-4631-8696-b812b4915706","https://firebasestorage.googleapis.com/v0/b/shiksha-b8390.appspot.com/o/Photosynthesis.mp4?alt=media&token=21b4de4c-9057-4085-a64b-4cbb09123519","https://firebasestorage.googleapis.com/v0/b/shiksha-b8390.appspot.com/o/earthquake.mp4?alt=media&token=eb918051-aabe-4631-8696-b812b4915706","https://firebasestorage.googleapis.com/v0/b/shiksha-b8390.appspot.com/o/Photosynthesis.mp4?alt=media&token=21b4de4c-9057-4085-a64b-4cbb09123519","https://firebasestorage.googleapis.com/v0/b/shiksha-b8390.appspot.com/o/earthquake.mp4?alt=media&token=eb918051-aabe-4631-8696-b812b4915706","https://firebasestorage.googleapis.com/v0/b/shiksha-b8390.appspot.com/o/Photosynthesis.mp4?alt=media&token=21b4de4c-9057-4085-a64b-4cbb09123519","https://firebasestorage.googleapis.com/v0/b/shiksha-b8390.appspot.com/o/earthquake.mp4?alt=media&token=eb918051-aabe-4631-8696-b812b4915706"],o=Qe((0,f.useState)(a[0]),2),s=o[0],u=o[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(gS,{}),(0,e.jsxs)(WT,{direction:["column","row"],h:"100vh",children:[(0,e.jsxs)(HT,{w:"full",children:[(0,e.jsx)("video",{controls:!0,controlsList:"nodownload",src:s,style:{width:"100%",marginTop:"0.6rem"},onClick:function(){var n={videoSrc:s};n.on("timeupdate",(function(){n.currentTime()/n.duration()>=.5&&console.log("The user spent at least 50% of the video.")})),t.map((function(t){return(0,e.jsxs)(cP,{maxW:"l",children:[(0,e.jsx)(YT,{children:t.name},t.name),(0,e.jsx)(GT,{children:t.description},t.description)]})}))}},t),r?(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("p",{className:"text-gray-800 hover:text-sky-400 w-auto",children:"This is a sample video for testing and demo. This is called description.This is a sample video for testing and demo. This is called description.This is a sample video for testing and demo. This is called description.This is a sample video for testing and demo. This is called description."})}):null,(0,e.jsx)("button",{className:"overflow-x-hidden overflow-y-hidden bg-gray-800 text-white active:bg-gray-600 font-bold uppercase text-xl px-4 py-2 shadow hover:shadow-lg outline-none rounded focus:outline-none ease-linear transition-all duration-150",type:"button",onClick:function(){return i(!0)},onDoubleClick:function(){return i(!1)},children:"Lecture Description"})]}),(0,e.jsx)(HT,{w:["full","xl"],alignItems:"stretch",p:"8",spacing:"8",overflowY:"auto",children:a.map((function(t,n){return(0,e.jsxs)(iP,{variant:"contained",colorScheme:"blue",onClick:function(){return u(t)},children:["Lecture ",n+1]})}))})]}),(0,e.jsx)(s_,{})]})};function fP(e,t){var n=(0,f.useId)();return(0,f.useMemo)((function(){return e||[t,n].filter(Boolean).join("-")}),[e,t,n])}function hP(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}var pP=hP()?f.useLayoutEffect:f.useEffect;function vP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,f.useRef)(e);return pP((function(){n.current=e})),(0,f.useCallback)((function(){for(var e,t,r=arguments.length,i=new Array(r),a=0;a1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return l(l({role:"dialog"},e),{},{ref:tP(t,p),id:y,tabIndex:-1,"aria-modal":!0,"aria-labelledby":E?b:void 0,"aria-describedby":T?x:void 0,onClick:gt(e.onClick,(function(e){return e.stopPropagation()}))})}),[x,T,y,b,E]),A=(0,f.useCallback)((function(e){e.stopPropagation(),w.current===e.target&&yP.isTopModal(p.current)&&(a&&(null==n||n()),null==d||d())}),[n,a,d]),I=(0,f.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return l(l({},e),{},{ref:tP(t,v),onClick:gt(e.onClick,A),onKeyDown:gt(e.onKeyDown,S),onMouseDown:gt(e.onMouseDown,k)})}),[S,k,A]);return{isOpen:t,onClose:n,headerId:b,bodyId:x,setBodyMounted:P,setHeaderMounted:C,dialogRef:p,overlayRef:v,getDialogProps:j,getDialogContainerProps:I}}var PP=Qe(Ze({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),2),jP=PP[0],AP=PP[1],IP=Qe(Ze({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),2),RP=IP[0],MP=IP[1],NP=function(t){var n=l({scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0},t),r=n.portalProps,i=n.children,a=n.autoFocus,o=n.trapFocus,s=n.initialFocusRef,u=n.finalFocusRef,c=n.returnFocusOnClose,d=n.blockScrollOnMount,f=n.allowPinchZoom,h=n.preserveScrollBarGap,p=n.motionPreset,v=n.lockFocusAcrossFrames,g=n.onCloseComplete,m=nx("Modal",n),y=l(l({},TP(n)),{},{autoFocus:a,trapFocus:o,initialFocusRef:s,finalFocusRef:u,returnFocusOnClose:c,blockScrollOnMount:d,allowPinchZoom:f,preserveScrollBarGap:h,motionPreset:p,lockFocusAcrossFrames:v});return(0,e.jsx)(RP,{value:y,children:(0,e.jsx)(jP,{value:m,children:(0,e.jsx)(Rx,{onExitComplete:g,children:y.isOpen&&(0,e.jsx)(Wx,l(l({},r),{},{children:i}))})})})};NP.displayName="Modal";var LP=["isOpen","onClose","placement","children"],DP=Qe(Ze(),2),FP=DP[0],zP=DP[1],BP={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function VP(t){var n,r=t.isOpen,i=t.onClose,a=t.placement,o=void 0===a?"right":a,s=t.children,u=d(t,LP),c=Jb(),f=null==(n=c.components)?void 0:n.Drawer,h=function(e,t){var n,r;if(e)return null!=(r=null==(n=BP[e])?void 0:n[t])?r:e}(o,c.direction);return(0,e.jsx)(FP,{value:{placement:h},children:(0,e.jsx)(NP,l(l({isOpen:r,onClose:i,styleConfig:f},u),{},{children:s}))})}var UP={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},WP={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function HP(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return WP.slideRight;case"left":return WP.slideLeft;case"bottom":return WP.slideDown;case"top":return WP.slideUp}}var qP={enter:{duration:.2,ease:UP.easeOut},exit:{duration:.1,ease:UP.easeIn}},YP=function(e,t){return l(l({},e),{},{delay:"number"===typeof t?t:null==t?void 0:t.enter})},KP=function(e,t){return l(l({},e),{},{delay:"number"===typeof t?t:null==t?void 0:t.exit})},GP=["unmountOnExit","in","className","transition","transitionEnd","delay"],XP={enter:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.transition,r=t.transitionEnd,i=t.delay;return{opacity:1,transition:null!=(e=null==n?void 0:n.enter)?e:YP(qP.enter,i),transitionEnd:null==r?void 0:r.enter}},exit:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.transition,r=t.transitionEnd,i=t.delay;return{opacity:0,transition:null!=(e=null==n?void 0:n.exit)?e:KP(qP.exit,i),transitionEnd:null==r?void 0:r.exit}}},$P={initial:"exit",animate:"enter",exit:"exit",variants:XP},JP=(0,f.forwardRef)((function(t,n){var r=t.unmountOnExit,i=t.in,a=t.className,o=t.transition,s=t.transitionEnd,u=t.delay,c=d(t,GP),f=i||r?"enter":"exit",h=!r||i&&r,p={transition:o,transitionEnd:s,delay:u};return(0,e.jsx)(Rx,{custom:p,children:h&&(0,e.jsx)(Ob.div,l(l({ref:n,className:dt("chakra-fade",a),custom:p},$P),{},{animate:f},c))})}));JP.displayName="Fade";var QP=["className","transition","motionProps"],ZP=Kb(Ob.div),ej=$b((function(t,n){var r=t.className,i=(t.transition,t.motionProps),a=d(t,QP),o=dt("chakra-modal__overlay",r),s=l({pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh"},AP().overlay),u=MP().motionPreset,c=i||("none"===u?{}:$P);return(0,e.jsx)(ZP,l(l({},c),{},{__css:s,ref:n,className:o},a))}));ej.displayName="ModalOverlay";var tj="data-focus-lock",nj="data-focus-lock-disabled";function rj(e,t){return function(e,t){var n=(0,f.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}var ij={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},aj=function(e){var t=e.children;return f.createElement(f.Fragment,null,f.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:ij}),t,t&&f.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:ij}))};aj.propTypes={},aj.defaultProps={children:null};function oj(e){return e}function sj(e,t){void 0===t&&(t=oj);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter((function(e){return e!==i}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}};return i}function uj(e,t){return void 0===t&&(t=oj),sj(e,t)}function lj(e){void 0===e&&(e={});var t=sj(null);return t.options=_d({async:!0,ssr:!1},e),t}var cj=uj({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),dj=uj(),fj=uj(),hj=lj({async:!0}),pj=[],vj=f.forwardRef((function(e,t){var n,r=f.useState(),i=r[0],a=r[1],o=f.useRef(),s=f.useRef(!1),u=f.useRef(null),l=e.children,c=e.disabled,d=e.noFocusGuards,h=e.persistentFocus,p=e.crossFrame,v=e.autoFocus,g=(e.allowTextSelection,e.group),m=e.className,y=e.whiteList,b=e.hasPositiveIndices,x=e.shards,w=void 0===x?pj:x,k=e.as,S=void 0===k?"div":k,_=e.lockProps,E=void 0===_?{}:_,C=e.sideCar,O=e.returnFocus,T=e.focusOptions,P=e.onActivation,j=e.onDeactivation,A=f.useState({})[0],I=f.useCallback((function(){u.current=u.current||document&&document.activeElement,o.current&&P&&P(o.current),s.current=!0}),[P]),R=f.useCallback((function(){s.current=!1,j&&j(o.current)}),[j]);(0,f.useEffect)((function(){c||(u.current=null)}),[]);var M=f.useCallback((function(e){var t=u.current;if(t&&t.focus){var n="function"===typeof O?O(t):O;if(n){var r="object"===typeof n?n:void 0;u.current=null,e?Promise.resolve().then((function(){return t.focus(r)})):t.focus(r)}}}),[O]),N=f.useCallback((function(e){s.current&&cj.useMedium(e)}),[]),L=dj.useMedium,D=f.useCallback((function(e){o.current!==e&&(o.current=e,a(e))}),[]);var F=ye(((n={})[nj]=c&&"disabled",n[tj]=g,n),E),z=!0!==d,B=z&&"tail"!==d,V=rj([t,D]);return f.createElement(f.Fragment,null,z&&[f.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:c?-1:0,style:ij}),b?f.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:c?-1:1,style:ij}):null],!c&&f.createElement(C,{id:A,sideCar:hj,observed:i,disabled:c,persistentFocus:h,crossFrame:p,autoFocus:v,whiteList:y,shards:w,onActivation:I,onDeactivation:R,returnFocus:M,focusOptions:T}),f.createElement(S,ye({ref:V},F,{className:m,onBlur:L,onFocus:N}),l),B&&f.createElement("div",{"data-focus-guard":!0,tabIndex:c?-1:0,style:ij}))}));vj.propTypes={},vj.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var gj=vj;var mj=function(e,t){return function(n){var r,i=[];function a(){r=e(i.map((function(e){return e.props}))),t(r)}var o=function(e){function t(){return e.apply(this,arguments)||this}hE(t,e),t.peek=function(){return r};var o=t.prototype;return o.componentDidMount=function(){i.push(this),a()},o.componentDidUpdate=function(){a()},o.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),a()},o.render=function(){return f.createElement(n,this.props)},t}(f.PureComponent);return s(o,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),o}},yj=function(e){for(var t=Array(e.length),n=0;n=0})).sort(Rj)},Nj=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),Lj="".concat(Nj,", [data-focus-guard]"),Dj=function e(t,n){return yj((t.shadowRoot||t).children).reduce((function(t,r){return t.concat(r.matches(n?Lj:Nj)?[r]:[],e(r))}),[])},Fj=function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?zj([e.contentDocument.body],t):[e]},zj=function(e,t){return e.reduce((function(e,n){var r,i=Dj(n,t),a=(r=[]).concat.apply(r,i.map((function(e){return Fj(e,t)})));return e.concat(a,n.parentNode?yj(n.parentNode.querySelectorAll(Nj)).filter((function(e){return e===n})):[])}),[])},Bj=function(e,t){return yj(e).filter((function(e){return _j(t,e)})).filter((function(e){return function(e){return!((Oj(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},Vj=function(e,t){return void 0===t&&(t=new Map),yj(e).filter((function(e){return Ej(t,e)}))},Uj=function(e,t,n){return Mj(Bj(zj(e,n),t),!0,n)},Wj=function(e,t){return Mj(Bj(zj(e),t),!1)},Hj=function(e,t){return Bj(function(e){var t=e.querySelectorAll("[".concat("data-autofocus-inside","]"));return yj(t).map((function(e){return zj([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e),t)},qj=function e(t,n){return t.shadowRoot?e(t.shadowRoot,n):!(void 0===Object.getPrototypeOf(t).contains||!Object.getPrototypeOf(t).contains.call(t,n))||yj(t.children).some((function(t){var r;if(t instanceof HTMLIFrameElement){var i=null===(r=t.contentDocument)||void 0===r?void 0:r.body;return!!i&&e(i,n)}return e(t,n)}))},Yj=function e(t){if(void 0===t&&(t=document),t&&t.activeElement){var n=t.activeElement;return n.shadowRoot?e(n.shadowRoot):n instanceof HTMLIFrameElement&&function(e){try{return e()}catch(eO){return}}((function(){return n.contentWindow.document}))?e(n.contentWindow.document):n}},Kj=function e(t){return t.parentNode?e(t.parentNode):t},Gj=function(e){return bj(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(tj);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(i),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(yj(Kj(t).querySelectorAll("[".concat(tj,'="').concat(n,'"]:not([').concat(nj,'="disabled"])')))):[t]),e}),[])},Xj=function(e,t){return void 0===t&&(t=Yj(xj(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&Gj(e).some((function(e){return qj(e,t)||function(e,t){return Boolean(yj(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},$j=function(e,t){return Tj(e)&&e.name?function(e,t){return t.filter(Tj).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},Jj=function(e){return e[0]&&e.length>1?$j(e[0],e):e[0]},Qj=function(e,t){return e.length>1?e.indexOf($j(e[t],e)):t},Zj="NEW_FOCUS",eA=function(e,t,n,r){var i=e.length,a=e[0],o=e[i-1],s=jj(n);if(!(n&&e.indexOf(n)>=0)){var u=void 0!==n?t.indexOf(n):-1,l=r?t.indexOf(r):u,c=r?e.indexOf(r):-1,d=u-l,f=t.indexOf(a),h=t.indexOf(o),p=function(e){var t=new Set;return e.forEach((function(n){return t.add($j(n,e))})),e.filter((function(e){return t.has(e)}))}(t),v=(void 0!==n?p.indexOf(n):-1)-(r?p.indexOf(r):u),g=Qj(e,0),m=Qj(e,i-1);return-1===u||-1===c?Zj:!d&&c>=0?c:u<=f&&s&&Math.abs(d)>1?m:u>=h&&s&&Math.abs(d)>1?g:d&&Math.abs(v)>1?c:u<=f?m:u>h?g:d?Math.abs(d)>1?c:(i+c+d)%i:void 0}},tA=function(e,t,n){var r,i=e.map((function(e){return e.node})),a=Vj(i.filter((r=n,function(e){var t,n=null===(t=Cj(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0})));return a&&a.length?Jj(a):Jj(Vj(t))},nA=function e(t,n){return void 0===n&&(n=[]),n.push(t),t.parentNode&&e(t.parentNode.host||t.parentNode,n),n},rA=function(e,t){for(var n=nA(e),r=nA(t),i=0;i=0)return a}return!1},iA=function(e,t,n){var r=bj(e),i=bj(t),a=r[0],o=!1;return i.filter(Boolean).forEach((function(e){o=rA(o||e,e)||o,n.filter(Boolean).forEach((function(e){var t=rA(a,e);t&&(o=!o||qj(t,o)?t:rA(t,o))}))})),o},aA=function(e,t){var n=Yj(bj(e).length>0?document:xj(e).ownerDocument),r=Gj(e).filter(Aj),i=iA(n||e,e,r),a=new Map,o=Wj(r,a),s=Uj(r,a).filter((function(e){var t=e.node;return Aj(t)}));if(s[0]||(s=o)[0]){var u=Wj([i],a).map((function(e){return e.node})),l=function(e,t){var n=new Map;return t.forEach((function(e){return n.set(e.node,e)})),e.map((function(e){return n.get(e)})).filter(Ij)}(u,s),c=l.map((function(e){return e.node})),d=eA(c,u,n,t);if(d===Zj){var f=tA(o,c,function(e,t){return e.reduce((function(e,n){return e.concat(Hj(n,t))}),[])}(r,a));return f?{node:f}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===d?d:l[d]}},oA=0,sA=!1,uA=function(e,t,n){void 0===n&&(n={});var r,i,a=aA(e,t);if(!sA&&a){if(oA>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),sA=!0,void setTimeout((function(){sA=!1}),1);oA++,r=a.node,i=n.focusOptions,"focus"in r&&r.focus(i),"contentWindow"in r&&r.contentWindow&&r.contentWindow.focus(),oA--}},lA=function(e){var t=Gj(e).filter(Aj),n=iA(e,e,t),r=new Map,i=Uj([n],r,!0),a=Uj(t,r).filter((function(e){var t=e.node;return Aj(t)})).map((function(e){return e.node}));return i.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:a.indexOf(t)>=0,guard:jj(t)}}))};function cA(e){var t=window.setImmediate;"undefined"!==typeof t?t(e):setTimeout(e,1)}var dA=function(){return document&&document.activeElement===document.body||function(e){void 0===e&&(e=document);var t=Yj(e);return!!t&&yj(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return qj(e,t)}))}()},fA=null,hA=null,pA=null,vA=!1,gA=function(){return!0};function mA(e,t,n,r){var i=null,a=e;do{var o=r[a];if(o.guard)o.node.dataset.focusAutoGuard&&(i=o);else{if(!o.lockItem)break;if(a!==e)return;i=null}}while((a+=n)!==t);i&&(i.node.tabIndex=0)}var yA=function(e){return e&&"current"in e?e.current:e},bA=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},xA=function(){var e,t=!1;if(fA){var n=fA,r=n.observed,i=n.persistentFocus,a=n.autoFocus,o=n.shards,s=n.crossFrame,u=n.focusOptions,l=r||pA&&pA.portaledElement,c=document&&document.activeElement;if(l){var d=[l].concat(o.map(yA).filter(Boolean));if(c&&!function(e){return(fA.whiteList||gA)(e)}(c)||(i||(s?Boolean(vA):"meanwhile"===vA)||!dA()||!hA&&a)&&(l&&!(Xj(d)||c&&function(e,t){return t.some((function(t){return bA(e,t,t)}))}(c,d)||(e=c,pA&&pA.portaledElement===e))&&(document&&!hA&&c&&!a?(c.blur&&c.blur(),document.body.focus()):(t=uA(d,hA,{focusOptions:u}),pA={})),vA=!1,hA=document&&document.activeElement),document){var f=document&&document.activeElement,h=lA(d),p=h.map((function(e){return e.node})).indexOf(f);p>-1&&(h.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),mA(p,h.length,1,h),mA(p,-1,-1,h))}}}return t},wA=function(e){xA()&&e&&(e.stopPropagation(),e.preventDefault())},kA=function(){return cA(xA)},SA=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(pA={observerNode:n,portaledElement:t})},_A=function(){vA="just",setTimeout((function(){vA="meanwhile"}),0)},EA=function(){document.addEventListener("focusin",wA),document.addEventListener("focusout",kA),window.addEventListener("blur",_A)},CA=function(){document.removeEventListener("focusin",wA),document.removeEventListener("focusout",kA),window.removeEventListener("blur",_A)};cj.assignSyncMedium(SA),dj.assignMedium(kA),fj.assignMedium((function(e){return e({moveFocusInside:uA,focusInside:Xj})}));var OA=mj((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!fA&&EA();var n=fA,r=n&&t&&t.id===n.id;fA=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(hA=null,r&&n.observed===t.observed||t.onActivation(),xA(!0),cA(xA)):(CA(),hA=null)}))((function(){return null})),TA=f.forwardRef((function(e,t){return f.createElement(gj,ye({sideCar:OA,ref:t},e))})),PA=gj.propTypes||{};PA.sideCar,c(PA,["sideCar"]);TA.propTypes={};var jA=TA;function AA(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}var IA=function(e){return e.hasAttribute("tabindex")};function RA(e){return!(!e.parentElement||!RA(e.parentElement))||e.hidden}function MA(e){if(!function(e){var t;return!!AA(e)&&e instanceof(null!=(t=e.ownerDocument.defaultView)?t:window).HTMLElement}(e)||RA(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;var t=e.localName;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;var n={a:function(){return e.hasAttribute("href")},audio:function(){return e.hasAttribute("controls")},video:function(){return e.hasAttribute("controls")}};return t in n?n[t]():!!function(e){var t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||IA(e)}var NA,LA=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join(),DA=function(e){return e.offsetWidth>0&&e.offsetHeight>0};function FA(e){var t=Array.from(e.querySelectorAll(LA));return t.unshift(e),t.filter((function(e){return MA(e)&&DA(e)}))}var zA=null!=(NA=jA.default)?NA:jA,BA=function(t){var n=t.initialFocusRef,r=t.finalFocusRef,i=t.contentRef,a=t.restoreFocus,o=t.children,s=t.isDisabled,u=t.autoFocus,l=t.persistentFocus,c=t.lockFocusAcrossFrames,d=(0,f.useCallback)((function(){if(null==n?void 0:n.current)n.current.focus();else if(null==i?void 0:i.current){0===FA(i.current).length&&requestAnimationFrame((function(){var e;null==(e=i.current)||e.focus()}))}}),[n,i]),h=(0,f.useCallback)((function(){var e;null==(e=null==r?void 0:r.current)||e.focus()}),[r]),p=a&&!r;return(0,e.jsx)(zA,{crossFrame:c,persistentFocus:l,autoFocus:u,disabled:s,onActivation:d,onDeactivation:h,returnFocus:p,children:o})};BA.displayName="FocusLock";var VA="right-scroll-bar-position",UA="width-before-scroll-bar",WA=lj(),HA=function(){},qA=f.forwardRef((function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:HA,onWheelCapture:HA,onTouchMoveCapture:HA}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,u=e.className,l=e.removeScrollBar,c=e.enabled,d=e.shards,h=e.sideCar,p=e.noIsolation,v=e.inert,g=e.allowPinchZoom,m=e.as,y=void 0===m?"div":m,b=Ed(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=h,w=rj([n,t]),k=_d(_d({},b),i);return f.createElement(f.Fragment,null,c&&f.createElement(x,{sideCar:WA,removeScrollBar:l,shards:d,noIsolation:p,inert:v,setCallbacks:a,allowPinchZoom:!!g,lockRef:n}),o?f.cloneElement(f.Children.only(s),_d(_d({},k),{ref:w})):f.createElement(y,_d({},k,{className:u,ref:w}),s))}));qA.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},qA.classNames={fullWidth:UA,zeroRight:VA};var YA,KA=function(e){var t=e.sideCar,n=Ed(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,_d({},n))};KA.isSideCarExport=!0;var GA=function(){return YA||n.nc};var XA=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=GA();return t&&e.setAttribute("nonce",t),e}())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$A=function(){var e=function(){var e=XA();return function(t,n){f.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},JA={left:0,top:0,right:0,gap:0},QA=function(e){return parseInt(e||"",10)||0},ZA=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return JA;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[QA(n),QA(r),QA(i)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},eI=$A(),tI=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(VA," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(UA," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(VA," .").concat(VA," {\n right: 0 ").concat(r,";\n }\n \n .").concat(UA," .").concat(UA," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},nI=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,a=f.useMemo((function(){return ZA(i)}),[i]);return f.createElement(eI,{styles:tI(a,!t,i,n?"":"!important")})},rI=!1;if("undefined"!==typeof window)try{var iI=Object.defineProperty({},"passive",{get:function(){return rI=!0,!0}});window.addEventListener("test",iI,iI),window.removeEventListener("test",iI,iI)}catch(r0){rI=!1}var aI=!!rI&&{passive:!1},oI=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},sI=function(e,t){var n=t;do{if("undefined"!==typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),uI(e,n)){var r=lI(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},uI=function(e,t){return"v"===e?function(e){return oI(e,"overflowY")}(t):function(e){return oI(e,"overflowX")}(t)},lI=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},cI=function(e,t,n,r,i){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,u=t.contains(s),l=!1,c=o>0,d=0,f=0;do{var h=lI(e,s),p=h[0],v=h[1]-h[2]-a*p;(p||v)&&uI(e,s)&&(d+=v,f+=p),s=s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return(c&&(i&&0===d||!i&&o>d)||!c&&(i&&0===f||!i&&-o>f))&&(l=!0),l},dI=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fI=function(e){return[e.deltaX,e.deltaY]},hI=function(e){return e&&"current"in e?e.current:e},pI=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vI=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},gI=0,mI=[];var yI,bI=(yI=function(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),i=f.useState(gI++)[0],a=f.useState((function(){return $A()}))[0],o=f.useRef(e);f.useEffect((function(){o.current=e}),[e]),f.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=Td([e.lockRef.current],(e.shards||[]).map(hI),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!o.current.allowPinchZoom;var i,a=dI(e),s=n.current,u="deltaX"in e?e.deltaX:s[0]-a[0],l="deltaY"in e?e.deltaY:s[1]-a[1],c=e.target,d=Math.abs(u)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=sI(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=sI(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||l)&&(r.current=i),!i)return!0;var h=r.current||i;return cI(h,t,e,"h"===h?u:l,!0)}),[]),u=f.useCallback((function(e){var n=e;if(mI.length&&mI[mI.length-1]===a){var r="deltaY"in n?fI(n):dI(n),i=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&pI(e.delta,r)}))[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var u=(o.current.shards||[]).map(hI).filter(Boolean).filter((function(e){return e.contains(n.target)}));(u.length>0?s(n,u[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=f.useCallback((function(e,n,r,i){var a={name:e,delta:n,target:r,should:i};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),c=f.useCallback((function(e){n.current=dI(e),r.current=void 0}),[]),d=f.useCallback((function(t){l(t.type,fI(t),t.target,s(t,e.lockRef.current))}),[]),h=f.useCallback((function(t){l(t.type,dI(t),t.target,s(t,e.lockRef.current))}),[]);f.useEffect((function(){return mI.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",u,aI),document.addEventListener("touchmove",u,aI),document.addEventListener("touchstart",c,aI),function(){mI=mI.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,aI),document.removeEventListener("touchmove",u,aI),document.removeEventListener("touchstart",c,aI)}}),[]);var p=e.removeScrollBar,v=e.inert;return f.createElement(f.Fragment,null,v?f.createElement(a,{styles:vI(i)}):null,p?f.createElement(nI,{gapMode:"margin"}):null)},WA.useMedium(yI),KA),xI=f.forwardRef((function(e,t){return f.createElement(qA,_d({},e,{ref:t,sideCar:bI}))}));xI.classNames=qA.classNames;var wI=xI;function kI(t){var n=MP(),r=n.autoFocus,i=n.trapFocus,a=n.dialogRef,o=n.initialFocusRef,s=n.blockScrollOnMount,u=n.allowPinchZoom,l=n.finalFocusRef,c=n.returnFocusOnClose,d=n.preserveScrollBarGap,h=n.lockFocusAcrossFrames,p=n.isOpen,v=Qe(xd(),2),g=v[0],m=v[1];(0,f.useEffect)((function(){!g&&m&&setTimeout(m)}),[g,m]);var y=bP(a,p);return(0,e.jsx)(BA,{autoFocus:r,isDisabled:!i,initialFocusRef:o,finalFocusRef:l,restoreFocus:c,contentRef:a,lockFocusAcrossFrames:h,children:(0,e.jsx)(wI,{removeScrollBar:!d,allowPinchZoom:u,enabled:1===y&&s,forwardProps:!0,children:t.children})})}var SI=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay","motionProps"],_I={exit:{duration:.15,ease:UP.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},EI={exit:function(e){var t,n=e.direction,r=e.transition,i=e.transitionEnd,a=e.delay;return l(l({},HP({direction:n}).exit),{},{transition:null!=(t=null==r?void 0:r.exit)?t:KP(_I.exit,a),transitionEnd:null==i?void 0:i.exit})},enter:function(e){var t,n=e.direction,r=e.transitionEnd,i=e.transition,a=e.delay;return l(l({},HP({direction:n}).enter),{},{transition:null!=(t=null==i?void 0:i.enter)?t:YP(_I.enter,a),transitionEnd:null==r?void 0:r.enter})}},CI=(0,f.forwardRef)((function(t,n){var r=t.direction,i=void 0===r?"right":r,a=t.style,o=t.unmountOnExit,s=t.in,u=t.className,c=t.transition,f=t.transitionEnd,h=t.delay,p=t.motionProps,v=d(t,SI),g=HP({direction:i}),m=Object.assign({position:"fixed"},g.position,a),y=!o||s&&o,b=s||o?"enter":"exit",x={transitionEnd:f,transition:c,direction:i,delay:h};return(0,e.jsx)(Rx,{custom:x,children:y&&(0,e.jsx)(Ob.div,l(l({},v),{},{ref:n,initial:"exit",className:dt("chakra-slide",u),animate:b,exit:"exit",custom:x,variants:EI,style:m},p))})}));CI.displayName="Slide";var OI=["className","children","motionProps","containerProps"],TI=Kb(CI),PI=$b((function(t,n){var r=t.className,i=t.children,a=t.motionProps,o=t.containerProps,s=d(t,OI),u=MP(),c=u.getDialogProps,f=u.getDialogContainerProps,h=u.isOpen,p=c(s,n),v=f(o),g=dt("chakra-modal__content",r),m=AP(),y=l({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},m.dialog),b=l({display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0},m.dialogContainer),x=zP().placement;return(0,e.jsx)(kI,{children:(0,e.jsx)(Kb.div,l(l({},v),{},{className:"chakra-modal__content-container",__css:b,children:(0,e.jsx)(TI,l(l({motionProps:a,direction:x,in:h,className:g},p),{},{__css:y,children:i}))}))})}));PI.displayName="DrawerContent";var jI=["onClick","className"],AI=$b((function(t,n){var r=t.onClick,i=t.className,a=d(t,jI),o=MP().onClose,s=dt("chakra-modal__close-btn",i),u=AP();return(0,e.jsx)(_x,l({ref:n,__css:u.closeButton,className:s,onClick:gt(r,(function(e){e.stopPropagation(),o()}))},a))}));AI.displayName="ModalCloseButton";var II=["className"],RI=$b((function(t,n){var r=t.className,i=d(t,II),a=MP(),o=a.headerId,s=a.setHeaderMounted;(0,f.useEffect)((function(){return s(!0),function(){return s(!1)}}),[s]);var u=dt("chakra-modal__header",r),c=l({flex:0},AP().header);return(0,e.jsx)(Kb.header,l(l({ref:n,className:u,id:o},i),{},{__css:c}))}));RI.displayName="ModalHeader";var MI=["className"],NI=$b((function(t,n){var r=t.className,i=d(t,MI),a=MP(),o=a.bodyId,s=a.setBodyMounted;(0,f.useEffect)((function(){return s(!0),function(){return s(!1)}}),[s]);var u=dt("chakra-modal__body",r),c=AP();return(0,e.jsx)(Kb.div,l(l({ref:n,className:u,id:o},i),{},{__css:c.body}))}));NI.displayName="ModalBody";var LI={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},DI=f.createContext&&f.createContext(LI),FI=function(){return FI=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=e.onOpen,r=e.isOpen,i=e.id,a=vP(n),o=vP(t),s=Qe((0,f.useState)(e.defaultIsOpen||!1),2),u=s[0],c=s[1],d=function(e,t){var n=void 0!==e;return[n,n&&"undefined"!==typeof e?e:t]}(r,u),h=Qe(d,2),p=h[0],v=h[1],g=fP(i,"disclosure"),m=(0,f.useCallback)((function(){p||c(!1),null==o||o()}),[p,o]),y=(0,f.useCallback)((function(){p||c(!0),null==a||a()}),[p,a]),b=(0,f.useCallback)((function(){(v?m:y)()}),[v,y,m]);return{isOpen:!!v,onOpen:y,onClose:m,onToggle:b,isControlled:p,getButtonProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l(l({},e),{},{"aria-expanded":v,"aria-controls":g,onClick:lr(e.onClick,b)})},getDisclosureProps:function(){return l(l({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{hidden:!v,id:g})}}}(),n=t.isOpen,r=t.onOpen,i=t.onClose;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(iP,{zIndex:"overlay",pos:"fixed",top:"4",left:"4",colorScheme:"blue",p:"0",w:"10",h:"10",borderRadius:"full",onClick:r,children:(0,e.jsx)(WI,{})}),(0,e.jsx)(VP,{isOpen:n,placement:"left",onClose:i,children:(0,e.jsx)(ej,{children:(0,e.jsxs)(PI,{children:[(0,e.jsx)(AI,{}),(0,e.jsx)(RI,{children:" Lessons"}),(0,e.jsx)(NI,{children:(0,e.jsxs)(HT,{alignItems:"flex-start",children:[(0,e.jsx)(iP,{onClick:i,variant:"ghost",colorScheme:"blue",children:(0,e.jsx)(NT,{to:"/basic",children:"Basic"})}),(0,e.jsx)(iP,{onClick:i,variant:"ghost",colorScheme:"blue",children:(0,e.jsx)(NT,{to:"/inventory",children:"Tracking Inventory"})}),(0,e.jsx)(iP,{onClick:i,variant:"ghost",colorScheme:"blue",children:(0,e.jsx)(NT,{to:"/quiz1",children:"Quiz 1"})}),(0,e.jsx)(iP,{onClick:i,variant:"ghost",colorScheme:"blue",children:(0,e.jsx)(NT,{to:"/video",children:"Lectures"})}),(0,e.jsx)(iP,{onClick:i,variant:"ghost",colorScheme:"blue",children:(0,e.jsx)(NT,{to:"/",children:"Bonds"})}),(0,e.jsx)(iP,{onClick:i,variant:"ghost",colorScheme:"blue",children:(0,e.jsx)(NT,{to:"/",children:"Quiz 2"})}),(0,e.jsx)(iP,{onClick:i,variant:"ghost",colorScheme:"blue",children:(0,e.jsx)(NT,{to:"/",children:"Case Study"})}),(0,e.jsx)(iP,{variant:"ghost",colorScheme:"blue",children:(0,e.jsx)(NT,{to:"/",children:"Projects"})})]})})]})})})]})};n(7399);Object.create(null);var qI=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,YI={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"\u2026","…":"\u2026","/":"/","/":"/"},KI=function(e){return YI[e]};function GI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XI(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};$I=XI(XI({},$I),e)}(e.options.react),function(e){e}(e)}};(0,f.createContext)(),function(){function e(){Qi(this,e),this.usedNamespaces={}}Ji(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}])}();var QI=n(5801);function ZI(){return ZI="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ta(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},ZI.apply(this,arguments)}function eR(){eR=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(r0){l=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var a=t&&t.prototype instanceof h?t:h,o=Object.create(a.prototype),s=new C(i||[]);return r(o,"_invoke",{value:k(e,n,s)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r0){return{type:"throw",arg:r0}}}e.wrap=c;var f={};function h(){}function p(){}function v(){}var g={};l(g,o,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(O([])));y&&y!==t&&n.call(y,o)&&(g=y);var b=v.prototype=h.prototype=Object.create(g);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(r,o,s,u){var l=d(e[r],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==a(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,s,u)}),(function(e){i("throw",e,s,u)})):t.resolve(f).then((function(e){c.value=e,s(c)}),(function(e){return i("throw",e,s,u)}))}u(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function k(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return T()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=S(o,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=d(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function O(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function tR(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function nR(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){tR(a,r,i,o,s,"next",e)}function s(e){tR(a,r,i,o,s,"throw",e)}o(void 0)}))}}var rR=function(e){for(var t=[],n=0,r=0;r>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},iR={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i>2,d=(3&a)<<4|s>>4,f=(15&s)<<2|l>>6,h=63&l;u||(h=64,o||(f=64)),r.push(n[c],n[d],n[f],n[h])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(rR(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,r=0;n191&&i<224){var a=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(i>239&&i<365){var o=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{var s=e[n++],u=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&u)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i>4;if(r.push(l),64!==s){var c=o<<4&240|s>>2;if(r.push(c),64!==u){var d=s<<6&192|u;r.push(d)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},aR=function(e){ea(n,e);var t=aa(n);function n(){var e;return Qi(this,n),(e=t.apply(this,arguments)).name="DecodeBase64StringError",e}return Ji(n)}(sa(Error)),oR=function(e){return function(e){var t=rR(e);return iR.encodeByteArray(t,!0)}(e).replace(/\./g,"")},sR=function(e){try{return iR.decodeString(e,!0)}catch(eO){console.error("base64Decode failed: ",eO)}return null};var uR=function(){return function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__},lR=function(){try{return uR()||function(){if("undefined"!==typeof process){var e={NODE_ENV:"production",PUBLIC_URL:"/shiksha",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0}}()||function(){if("undefined"!==typeof document){var e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(eO){return}var t=e&&sR(e[1]);return t&&JSON.parse(t)}}()}catch(eO){return void console.info("Unable to get __FIREBASE_DEFAULTS__ due to: ".concat(eO))}},cR=function(e){var t,n;return null===(n=null===(t=lR())||void 0===t?void 0:t.emulatorHosts)||void 0===n?void 0:n[e]},dR=function(){var e;return null===(e=lR())||void 0===e?void 0:e.config},fR=function(e){var t;return null===(t=lR())||void 0===t?void 0:t["_".concat(e)]},hR=function(){function e(){var t=this;Qi(this,e),this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}return Ji(e,[{key:"wrapCallback",value:function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"===typeof e&&(t.promise.catch((function(){})),1===e.length?e(n):e(n,r))}}}]),e}();function pR(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function vR(){var e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id}function gR(){try{return"object"===typeof indexedDB}catch(eO){return!1}}function mR(){return new Promise((function(e,t){try{var n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=function(){i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=function(){n=!1},i.onerror=function(){var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(a){t(a)}}))}var yR=function(e){ea(n,e);var t=aa(n);function n(e,r,i){var a;return Qi(this,n),(a=t.call(this,r)).code=e,a.customData=i,a.name="FirebaseError",Object.setPrototypeOf(ra(a),n.prototype),Error.captureStackTrace&&Error.captureStackTrace(ra(a),bR.prototype.create),a}return Ji(n)}(sa(Error)),bR=function(){function e(t,n,r){Qi(this,e),this.service=t,this.serviceName=n,this.errors=r}return Ji(e,[{key:"create",value:function(e){var t=(arguments.length<=1?void 0:arguments[1])||{},n="".concat(this.service,"/").concat(e),r=this.errors[e],i=r?function(e,t){return e.replace(xR,(function(e,n){var r=t[n];return null!=r?String(r):"<".concat(n,"?>")}))}(r,t):"Error",a="".concat(this.serviceName,": ").concat(i," (").concat(n,").");return new yR(n,a,t)}}]),e}();var xR=/\{\$([^}]+)}/g;function wR(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function kR(e,t){if(e===t)return!0;for(var n=Object.keys(e),r=Object.keys(t),i=0,a=n;i0?n:void 0)}var OR=function(){function e(t,n){var r=this;Qi(this,e),this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then((function(){t(r)})).catch((function(e){r.error(e)}))}return Ji(e,[{key:"next",value:function(e){this.forEachObserver((function(t){t.next(e)}))}},{key:"error",value:function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)}},{key:"complete",value:function(){this.forEachObserver((function(e){e.complete()})),this.close()}},{key:"subscribe",value:function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(e,t){if("object"!==typeof e||null===e)return!1;var n,r=st(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i in e&&"function"===typeof e[i])return!0}}catch(r0){r.e(r0)}finally{r.f()}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n}).next&&(r.next=TR),void 0===r.error&&(r.error=TR),void 0===r.complete&&(r.complete=TR);var a=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(eO){}})),this.observers.push(r),a}},{key:"unsubscribeOne",value:function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}},{key:"forEachObserver",value:function(e){if(!this.finalized)for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:jR,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:PR)*Math.pow(t,e),r=Math.round(IR*n*(Math.random()-.5)*2);return Math.min(AR,n+r)}function MR(e){return e&&e._delegate?e._delegate:e}var NR=function(){function e(t,n,r){Qi(this,e),this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return Ji(e,[{key:"setInstantiationMode",value:function(e){return this.instantiationMode=e,this}},{key:"setMultipleInstances",value:function(e){return this.multipleInstances=e,this}},{key:"setServiceProps",value:function(e){return this.serviceProps=e,this}},{key:"setInstanceCreatedCallback",value:function(e){return this.onInstanceCreated=e,this}}]),e}(),LR="[DEFAULT]",DR=function(){function e(t,n){Qi(this,e),this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}return Ji(e,[{key:"get",value:function(e){var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new hR;if(this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize())try{var r=this.getOrInitializeService({instanceIdentifier:t});r&&n.resolve(r)}catch(eO){}}return this.instancesDeferred.get(t).promise}},{key:"getImmediate",value:function(e){var t,n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),r=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error("Service ".concat(this.name," is not available"))}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(eO){if(r)return null;throw eO}}},{key:"getComponent",value:function(){return this.component}},{key:"setComponent",value:function(e){if(e.name!==this.name)throw Error("Mismatching Component ".concat(e.name," for Provider ").concat(this.name,"."));if(this.component)throw Error("Component for ".concat(this.name," has already been provided"));if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:LR})}catch(eO){}var t,n=st(this.instancesDeferred.entries());try{for(n.s();!(t=n.n()).done;){var r=Qe(t.value,2),i=r[0],a=r[1],o=this.normalizeInstanceIdentifier(i);try{var s=this.getOrInitializeService({instanceIdentifier:o});a.resolve(s)}catch(eO){}}}catch(r0){n.e(r0)}finally{n.f()}}}},{key:"clearInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:LR;this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}},{key:"delete",value:function(){var e=nR(eR().mark((function e(){var t;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Array.from(this.instances.values()),e.next=3,Promise.all([].concat(lt(t.filter((function(e){return"INTERNAL"in e})).map((function(e){return e.INTERNAL.delete()}))),lt(t.filter((function(e){return"_delete"in e})).map((function(e){return e._delete()})))));case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"isComponentSet",value:function(){return null!=this.component}},{key:"isInitialized",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:LR;return this.instances.has(e)}},{key:"getOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:LR;return this.instancesOptions.get(e)||{}}},{key:"initialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.options,n=void 0===t?{}:t,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error("".concat(this.name,"(").concat(r,") has already been initialized"));if(!this.isComponentSet())throw Error("Component ".concat(this.name," has not been registered yet"));var i,a=this.getOrInitializeService({instanceIdentifier:r,options:n}),o=st(this.instancesDeferred.entries());try{for(o.s();!(i=o.n()).done;){var s=Qe(i.value,2),u=s[0],l=s[1];r===this.normalizeInstanceIdentifier(u)&&l.resolve(a)}}catch(r0){o.e(r0)}finally{o.f()}return a}},{key:"onInit",value:function(e,t){var n,r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);var a=this.instances.get(r);return a&&e(a,r),function(){i.delete(e)}}},{key:"invokeOnInitCallbacks",value:function(e,t){var n=this.onInitCallbacks.get(t);if(n){var r,i=st(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;try{a(e,t)}catch(mo){}}}catch(r0){i.e(r0)}finally{i.f()}}}},{key:"getOrInitializeService",value:function(e){var t=e.instanceIdentifier,n=e.options,r=void 0===n?{}:n,i=this.instances.get(t);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:FR(t),options:r}),this.instances.set(t,i),this.instancesOptions.set(t,r),this.invokeOnInitCallbacks(i,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,i)}catch(mo){}return i||null}},{key:"normalizeInstanceIdentifier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:LR;return this.component?this.component.multipleInstances?e:LR:e}},{key:"shouldAutoInitialize",value:function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}]),e}();function FR(e){return e===LR?void 0:e}var zR,BR,VR=function(){function e(t){Qi(this,e),this.name=t,this.providers=new Map}return Ji(e,[{key:"addComponent",value:function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component ".concat(e.name," has already been registered with ").concat(this.name));t.setComponent(e)}},{key:"addOrOverwriteComponent",value:function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}},{key:"getProvider",value:function(e){if(this.providers.has(e))return this.providers.get(e);var t=new DR(e,this);return this.providers.set(e,t),t}},{key:"getProviders",value:function(){return Array.from(this.providers.values())}}]),e}(),UR=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(BR||(BR={}));var WR={debug:BR.DEBUG,verbose:BR.VERBOSE,info:BR.INFO,warn:BR.WARN,error:BR.ERROR,silent:BR.SILENT},HR=BR.INFO,qR=(s(zR={},BR.DEBUG,"log"),s(zR,BR.VERBOSE,"log"),s(zR,BR.INFO,"info"),s(zR,BR.WARN,"warn"),s(zR,BR.ERROR,"error"),zR),YR=function(e,t){if(!(t2?a-2:0),s=2;s1?n-1:0),i=1;i1?u-1:0),c=1;c1&&void 0!==arguments[1]?arguments[1]:{},n=e;"object"!==typeof t&&(t={name:t});var r=Object.assign({name:mM,automaticDataCollectionEnabled:!1},t),i=r.name;if("string"!==typeof i||!i)throw EM.create("bad-app-name",{appName:String(i)});if(n||(n=dR()),!n)throw EM.create("no-options");var a=bM.get(i);if(a){if(kR(n,a.options)&&kR(r,a.config))return a;throw EM.create("duplicate-app",{appName:i})}var o,s=new VR(i),u=st(xM.values());try{for(u.s();!(o=u.n()).done;){var l=o.value;s.addComponent(l)}}catch(r0){u.e(r0)}finally{u.f()}var c=new CM(n,r,s);return bM.set(i,c),c}function PM(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mM,t=bM.get(e);if(!t&&e===mM&&dR())return TM();if(!t)throw EM.create("no-app",{appName:e});return t}function jM(e,t,n){var r,i=null!==(r=yM[e])&&void 0!==r?r:e;n&&(i+="-".concat(n));var a=i.match(/\s|\//),o=t.match(/\s|\//);if(a||o){var s=['Unable to register library "'.concat(i,'" with version "').concat(t,'":')];return a&&s.push('library name "'.concat(i,'" contains illegal characters (whitespace or "/")')),a&&o&&s.push("and"),o&&s.push('version name "'.concat(t,'" contains illegal characters (whitespace or "/")')),void gM.warn(s.join(" "))}kM(new NR("".concat(i,"-version"),(function(){return{library:i,version:t}}),"VERSION"))}var AM="firebase-heartbeat-database",IM=1,RM="firebase-heartbeat-store",MM=null;function NM(){return MM||(MM=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.blocked,i=n.upgrade,a=n.blocking,o=n.terminated,s=indexedDB.open(e,t),u=aM(s);return i&&s.addEventListener("upgradeneeded",(function(e){i(aM(s.result),e.oldVersion,e.newVersion,aM(s.transaction),e)})),r&&s.addEventListener("blocked",(function(e){return r(e.oldVersion,e.newVersion,e)})),u.then((function(e){o&&e.addEventListener("close",(function(){return o()})),a&&e.addEventListener("versionchange",(function(e){return a(e.oldVersion,e.newVersion,e)}))})).catch((function(){})),u}(AM,IM,{upgrade:function(e,t){if(0===t)e.createObjectStore(RM)}}).catch((function(e){throw EM.create("idb-open",{originalErrorMessage:e.message})}))),MM}function LM(e){return DM.apply(this,arguments)}function DM(){return DM=nR(eR().mark((function e(t){var n,r,i;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,NM();case 3:return n=e.sent,e.next=6,n.transaction(RM).objectStore(RM).get(BM(t));case 6:return r=e.sent,e.abrupt("return",r);case 10:e.prev=10,e.t0=e.catch(0),e.t0 instanceof yR?gM.warn(e.t0.message):(i=EM.create("idb-get",{originalErrorMessage:null===e.t0||void 0===e.t0?void 0:e.t0.message}),gM.warn(i.message));case 13:case"end":return e.stop()}}),e,null,[[0,10]])}))),DM.apply(this,arguments)}function FM(e,t){return zM.apply(this,arguments)}function zM(){return zM=nR(eR().mark((function e(t,n){var r,i,a,o;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,NM();case 3:return r=e.sent,i=r.transaction(RM,"readwrite"),a=i.objectStore(RM),e.next=8,a.put(n,BM(t));case 8:return e.next=10,i.done;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),e.t0 instanceof yR?gM.warn(e.t0.message):(o=EM.create("idb-set",{originalErrorMessage:null===e.t0||void 0===e.t0?void 0:e.t0.message}),gM.warn(o.message));case 15:case"end":return e.stop()}}),e,null,[[0,12]])}))),zM.apply(this,arguments)}function BM(e){return"".concat(e.name,"!").concat(e.options.appId)}var VM=1024,UM=function(){function e(t){var n=this;Qi(this,e),this.container=t,this._heartbeatsCache=null;var r=this.container.getProvider("app").getImmediate();this._storage=new KM(r),this._heartbeatsCachePromise=this._storage.read().then((function(e){return n._heartbeatsCache=e,e}))}return Ji(e,[{key:"triggerHeartbeat",value:function(){var e=nR(eR().mark((function e(){var t,n,r;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.container.getProvider("platform-logger").getImmediate(),n=t.getPlatformInfoString(),r=WM(),null!==this._heartbeatsCache){e.next=7;break}return e.next=6,this._heartbeatsCachePromise;case 6:this._heartbeatsCache=e.sent;case 7:if(this._heartbeatsCache.lastSentHeartbeatDate!==r&&!this._heartbeatsCache.heartbeats.some((function(e){return e.date===r}))){e.next=11;break}return e.abrupt("return");case 11:this._heartbeatsCache.heartbeats.push({date:r,agent:n});case 12:return this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((function(e){var t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),e.abrupt("return",this._storage.overwrite(this._heartbeatsCache));case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getHeartbeatsHeader",value:function(){var e=nR(eR().mark((function e(){var t,n,r,i,a;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==this._heartbeatsCache){e.next=3;break}return e.next=3,this._heartbeatsCachePromise;case 3:if(null!==this._heartbeatsCache&&0!==this._heartbeatsCache.heartbeats.length){e.next=5;break}return e.abrupt("return","");case 5:if(t=WM(),n=HM(this._heartbeatsCache.heartbeats),r=n.heartbeatsToSend,i=n.unsentEntries,a=oR(JSON.stringify({version:2,heartbeats:r})),this._heartbeatsCache.lastSentHeartbeatDate=t,!(i.length>0)){e.next=15;break}return this._heartbeatsCache.heartbeats=i,e.next=13,this._storage.overwrite(this._heartbeatsCache);case 13:e.next=17;break;case 15:this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache);case 17:return e.abrupt("return",a);case 18:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function WM(){return(new Date).toISOString().substring(0,10)}function HM(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:VM,r=[],i=e.slice(),a=st(e);try{var o=function(){var e=t.value,a=r.find((function(t){return t.agent===e.agent}));if(a){if(a.dates.push(e.date),GM(r)>n)return a.dates.pop(),"break"}else if(r.push({agent:e.agent,dates:[e.date]}),GM(r)>n)return r.pop(),"break";i=i.slice(1)};for(a.s();!(t=a.n()).done;){if("break"===o())break}}catch(r0){a.e(r0)}finally{a.f()}return{heartbeatsToSend:r,unsentEntries:i}}var qM,YM,KM=function(){function e(t){Qi(this,e),this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}return Ji(e,[{key:"runIndexedDBEnvironmentCheck",value:function(){var e=nR(eR().mark((function e(){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(gR()){e.next=4;break}return e.abrupt("return",!1);case 4:return e.abrupt("return",mR().then((function(){return!0})).catch((function(){return!1})));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"read",value:function(){var e=nR(eR().mark((function e(){var t;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._canUseIndexedDBPromise;case 2:if(e.sent){e.next=7;break}return e.abrupt("return",{heartbeats:[]});case 7:return e.next=9,LM(this.app);case 9:return t=e.sent,e.abrupt("return",t||{heartbeats:[]});case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"overwrite",value:function(){var e=nR(eR().mark((function e(t){var n,r;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._canUseIndexedDBPromise;case 2:if(e.sent){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,this.read();case 9:return r=e.sent,e.abrupt("return",FM(this.app,{lastSentHeartbeatDate:null!==(n=t.lastSentHeartbeatDate)&&void 0!==n?n:r.lastSentHeartbeatDate,heartbeats:t.heartbeats}));case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"add",value:function(){var e=nR(eR().mark((function e(t){var n,r;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._canUseIndexedDBPromise;case 2:if(e.sent){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,this.read();case 9:return r=e.sent,e.abrupt("return",FM(this.app,{lastSentHeartbeatDate:null!==(n=t.lastSentHeartbeatDate)&&void 0!==n?n:r.lastSentHeartbeatDate,heartbeats:[].concat(lt(r.heartbeats),lt(t.heartbeats))}));case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}();function GM(e){return oR(JSON.stringify({version:2,heartbeats:e})).length}qM="",kM(new NR("platform-logger",(function(e){return new hM(e)}),"PRIVATE")),kM(new NR("heartbeat",(function(e){return new UM(e)}),"PRIVATE")),jM(pM,vM,qM),jM(pM,vM,"esm2017"),jM("fire-js","");function XM(){return s({},"dependent-sdk-initialized-before-auth","Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.")}var $M=XM,JM=new bR("auth","Firebase",XM()),QM=new KR("@firebase/auth");function ZM(e){if(QM.logLevel<=BR.WARN){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r2?n-2:0),i=2;it,"Short delay should be less than long delay!"),this.isMobile="undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(pR())||"object"===typeof navigator&&"ReactNative"===navigator.product}return Ji(e,[{key:"get",value:function(){return"undefined"!==typeof navigator&&navigator&&"onLine"in navigator&&"boolean"===typeof navigator.onLine&&(lN()||vR()||"connection"in navigator)&&!navigator.onLine?Math.min(5e3,this.shortDelay):this.isMobile?this.longDelay:this.shortDelay}}]),e}();function fN(e,t){sN(e.emulator,"Emulator should always be set here");var n=e.emulator.url;return t?"".concat(n).concat(t.startsWith("/")?t.slice(1):t):n}var hN=function(){function e(){Qi(this,e)}return Ji(e,null,[{key:"initialize",value:function(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}},{key:"fetch",value:function(){return this.fetchImpl?this.fetchImpl:"undefined"!==typeof self&&"fetch"in self?self.fetch:void oN("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}},{key:"headers",value:function(){return this.headersImpl?this.headersImpl:"undefined"!==typeof self&&"Headers"in self?self.Headers:void oN("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}},{key:"response",value:function(){return this.responseImpl?this.responseImpl:"undefined"!==typeof self&&"Response"in self?self.Response:void oN("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}]),e}(),pN=(s(YM={},"CREDENTIAL_MISMATCH","custom-token-mismatch"),s(YM,"MISSING_CUSTOM_TOKEN","internal-error"),s(YM,"INVALID_IDENTIFIER","invalid-email"),s(YM,"MISSING_CONTINUE_URI","internal-error"),s(YM,"INVALID_PASSWORD","wrong-password"),s(YM,"MISSING_PASSWORD","missing-password"),s(YM,"EMAIL_EXISTS","email-already-in-use"),s(YM,"PASSWORD_LOGIN_DISABLED","operation-not-allowed"),s(YM,"INVALID_IDP_RESPONSE","invalid-credential"),s(YM,"INVALID_PENDING_TOKEN","invalid-credential"),s(YM,"FEDERATED_USER_ID_ALREADY_LINKED","credential-already-in-use"),s(YM,"MISSING_REQ_TYPE","internal-error"),s(YM,"EMAIL_NOT_FOUND","user-not-found"),s(YM,"RESET_PASSWORD_EXCEED_LIMIT","too-many-requests"),s(YM,"EXPIRED_OOB_CODE","expired-action-code"),s(YM,"INVALID_OOB_CODE","invalid-action-code"),s(YM,"MISSING_OOB_CODE","internal-error"),s(YM,"CREDENTIAL_TOO_OLD_LOGIN_AGAIN","requires-recent-login"),s(YM,"INVALID_ID_TOKEN","invalid-user-token"),s(YM,"TOKEN_EXPIRED","user-token-expired"),s(YM,"USER_NOT_FOUND","user-token-expired"),s(YM,"TOO_MANY_ATTEMPTS_TRY_LATER","too-many-requests"),s(YM,"INVALID_CODE","invalid-verification-code"),s(YM,"INVALID_SESSION_INFO","invalid-verification-id"),s(YM,"INVALID_TEMPORARY_PROOF","invalid-credential"),s(YM,"MISSING_SESSION_INFO","missing-verification-id"),s(YM,"SESSION_EXPIRED","code-expired"),s(YM,"MISSING_ANDROID_PACKAGE_NAME","missing-android-pkg-name"),s(YM,"UNAUTHORIZED_DOMAIN","unauthorized-continue-uri"),s(YM,"INVALID_OAUTH_CLIENT_ID","invalid-oauth-client-id"),s(YM,"ADMIN_ONLY_OPERATION","admin-restricted-operation"),s(YM,"INVALID_MFA_PENDING_CREDENTIAL","invalid-multi-factor-session"),s(YM,"MFA_ENROLLMENT_NOT_FOUND","multi-factor-info-not-found"),s(YM,"MISSING_MFA_ENROLLMENT_ID","missing-multi-factor-info"),s(YM,"MISSING_MFA_PENDING_CREDENTIAL","missing-multi-factor-session"),s(YM,"SECOND_FACTOR_EXISTS","second-factor-already-in-use"),s(YM,"SECOND_FACTOR_LIMIT_EXCEEDED","maximum-second-factor-count-exceeded"),s(YM,"BLOCKING_FUNCTION_ERROR_RESPONSE","internal-error"),s(YM,"RECAPTCHA_NOT_ENABLED","recaptcha-not-enabled"),s(YM,"MISSING_RECAPTCHA_TOKEN","missing-recaptcha-token"),s(YM,"INVALID_RECAPTCHA_TOKEN","invalid-recaptcha-token"),s(YM,"INVALID_RECAPTCHA_ACTION","invalid-recaptcha-action"),s(YM,"MISSING_CLIENT_TYPE","missing-client-type"),s(YM,"MISSING_RECAPTCHA_VERSION","missing-recaptcha-version"),s(YM,"INVALID_RECAPTCHA_VERSION","invalid-recaptcha-version"),s(YM,"INVALID_REQ_TYPE","invalid-req-type"),YM),vN=new dN(3e4,6e4);function gN(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}function mN(e,t,n,r){return yN.apply(this,arguments)}function yN(){return yN=nR(eR().mark((function e(t,n,r,i){var a,o=arguments;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=o.length>4&&void 0!==o[4]?o[4]:{},e.abrupt("return",bN(t,a,nR(eR().mark((function e(){var a,o,s,u;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={},o={},i&&("GET"===n?o=i:a={body:JSON.stringify(i)}),s=_R(Object.assign({key:t.config.apiKey},o)).slice(1),e.next=6,t._getAdditionalHeaders();case 6:return(u=e.sent)["Content-Type"]="application/json",t.languageCode&&(u["X-Firebase-Locale"]=t.languageCode),e.abrupt("return",hN.fetch()(SN(t,t.config.apiHost,r,s),Object.assign({method:n,headers:u,referrerPolicy:"no-referrer"},a)));case 10:case"end":return e.stop()}}),e)})))));case 2:case"end":return e.stop()}}),e)}))),yN.apply(this,arguments)}function bN(e,t,n){return xN.apply(this,arguments)}function xN(){return xN=nR(eR().mark((function e(t,n,r){var i,a,o,s,u,l,c,d,f,h;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t._canInitEmulator=!1,i=Object.assign(Object.assign({},pN),n),e.prev=2,a=new _N(t),e.next=6,Promise.race([r(),a.promise]);case 6:return o=e.sent,a.clearNetworkTimeout(),e.next=10,o.json();case 10:if(!("needConfirmation"in(s=e.sent))){e.next=13;break}throw EN(t,"account-exists-with-different-credential",s);case 13:if(!o.ok||"errorMessage"in s){e.next=17;break}return e.abrupt("return",s);case 17:if(u=o.ok?s.errorMessage:s.error.message,l=u.split(" : "),c=Qe(l,2),d=c[0],f=c[1],"FEDERATED_USER_ID_ALREADY_LINKED"!==d){e.next=23;break}throw EN(t,"credential-already-in-use",s);case 23:if("EMAIL_EXISTS"!==d){e.next=27;break}throw EN(t,"email-already-in-use",s);case 27:if("USER_DISABLED"!==d){e.next=29;break}throw EN(t,"user-disabled",s);case 29:if(h=i[d]||d.toLowerCase().replace(/[_\s]+/g,"-"),!f){e.next=34;break}throw rN(t,h,f);case 34:tN(t,h);case 35:e.next=42;break;case 37:if(e.prev=37,e.t0=e.catch(2),!(e.t0 instanceof yR)){e.next=41;break}throw e.t0;case 41:tN(t,"network-request-failed",{message:String(e.t0)});case 42:case"end":return e.stop()}}),e,null,[[2,37]])}))),xN.apply(this,arguments)}function wN(e,t,n,r){return kN.apply(this,arguments)}function kN(){return kN=nR(eR().mark((function e(t,n,r,i){var a,o,s=arguments;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>4&&void 0!==s[4]?s[4]:{},e.next=3,mN(t,n,r,i,a);case 3:return"mfaPendingCredential"in(o=e.sent)&&tN(t,"multi-factor-auth-required",{_serverResponse:o}),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)}))),kN.apply(this,arguments)}function SN(e,t,n,r){var i="".concat(t).concat(n,"?").concat(r);return e.config.emulator?fN(e.config,i):"".concat(e.config.apiScheme,"://").concat(i)}var _N=function(){function e(t){var n=this;Qi(this,e),this.auth=t,this.timer=null,this.promise=new Promise((function(e,t){n.timer=setTimeout((function(){return t(nN(n.auth,"network-request-failed"))}),vN.get())}))}return Ji(e,[{key:"clearNetworkTimeout",value:function(){clearTimeout(this.timer)}}]),e}();function EN(e,t,n){var r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);var i=nN(e,t,r);return i.customData._tokenResponse=n,i}function CN(e,t){return ON.apply(this,arguments)}function ON(){return ON=nR(eR().mark((function e(t,n){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",mN(t,"POST","/v1/accounts:delete",n));case 1:case"end":return e.stop()}}),e)}))),ON.apply(this,arguments)}function TN(e,t){return PN.apply(this,arguments)}function PN(){return PN=nR(eR().mark((function e(t,n){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",mN(t,"POST","/v1/accounts:lookup",n));case 1:case"end":return e.stop()}}),e)}))),PN.apply(this,arguments)}function jN(e){if(e)try{var t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(eO){}}function AN(){return AN=nR(eR().mark((function e(t){var n,r,i,a,o,s,u=arguments;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=u.length>1&&void 0!==u[1]&&u[1],r=MR(t),e.next=4,r.getIdToken(n);case 4:return i=e.sent,aN((a=RN(i))&&a.exp&&a.auth_time&&a.iat,r.auth,"internal-error"),o="object"===typeof a.firebase?a.firebase:void 0,s=null===o||void 0===o?void 0:o.sign_in_provider,e.abrupt("return",{claims:a,token:i,authTime:jN(IN(a.auth_time)),issuedAtTime:jN(IN(a.iat)),expirationTime:jN(IN(a.exp)),signInProvider:s||null,signInSecondFactor:(null===o||void 0===o?void 0:o.sign_in_second_factor)||null});case 10:case"end":return e.stop()}}),e)}))),AN.apply(this,arguments)}function IN(e){return 1e3*Number(e)}function RN(e){var t=Qe(e.split("."),3),n=t[0],r=t[1],i=t[2];if(void 0===n||void 0===r||void 0===i)return eN("JWT malformed, contained fewer than 3 sections"),null;try{var a=sR(r);return a?JSON.parse(a):(eN("Failed to decode base64 JWT payload"),null)}catch(eO){return eN("Caught error parsing JWT payload as JSON",null===eO||void 0===eO?void 0:eO.toString()),null}}function MN(e,t){return NN.apply(this,arguments)}function NN(){return NN=nR(eR().mark((function e(t,n){var r=arguments;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r.length>2&&void 0!==r[2]&&r[2])){e.next=3;break}return e.abrupt("return",n);case 3:return e.prev=3,e.next=6,n;case 6:return e.abrupt("return",e.sent);case 9:if(e.prev=9,e.t0=e.catch(3),!(e.t0 instanceof yR&&LN(e.t0))){e.next=15;break}if(t.auth.currentUser!==t){e.next=15;break}return e.next=15,t.auth.signOut();case 15:throw e.t0;case 16:case"end":return e.stop()}}),e,null,[[3,9]])}))),NN.apply(this,arguments)}function LN(e){var t=e.code;return t==="auth/".concat("user-disabled")||t==="auth/".concat("user-token-expired")}var DN=function(){function e(t){Qi(this,e),this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}return Ji(e,[{key:"_start",value:function(){this.isRunning||(this.isRunning=!0,this.schedule())}},{key:"_stop",value:function(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}},{key:"getInterval",value:function(e){var t;if(e){var n=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),n}this.errorBackoff=3e4;var r=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,r)}},{key:"schedule",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isRunning){var n=this.getInterval(t);this.timerId=setTimeout(nR(eR().mark((function t(){return eR().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.iteration();case 2:case"end":return t.stop()}}),t)}))),n)}}},{key:"iteration",value:function(){var e=nR(eR().mark((function e(){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.user.getIdToken(!0);case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),(null===e.t0||void 0===e.t0?void 0:e.t0.code)==="auth/".concat("network-request-failed")&&this.schedule(!0),e.abrupt("return");case 9:this.schedule();case 10:case"end":return e.stop()}}),e,this,[[0,5]])})));return function(){return e.apply(this,arguments)}}()}]),e}(),FN=function(){function e(t,n){Qi(this,e),this.createdAt=t,this.lastLoginAt=n,this._initializeTime()}return Ji(e,[{key:"_initializeTime",value:function(){this.lastSignInTime=jN(this.lastLoginAt),this.creationTime=jN(this.createdAt)}},{key:"_copy",value:function(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}},{key:"toJSON",value:function(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}]),e}();function zN(e){return BN.apply(this,arguments)}function BN(){return BN=nR(eR().mark((function e(t){var n,r,i,a,o,s,u,l,c,d,f;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.auth,e.next=3,t.getIdToken();case 3:return i=e.sent,e.next=6,MN(t,TN(r,{idToken:i}));case 6:aN(null===(a=e.sent)||void 0===a?void 0:a.users.length,r,"internal-error"),o=a.users[0],t._notifyReloadListener(o),s=(null===(n=o.providerUserInfo)||void 0===n?void 0:n.length)?o.providerUserInfo.map((function(e){var t=e.providerId,n=Ed(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}})):[],u=UN(t.providerData,s),l=t.isAnonymous,c=!(t.email&&o.passwordHash)&&!(null===u||void 0===u?void 0:u.length),d=!!l&&c,f={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:u,metadata:new FN(o.createdAt,o.lastLoginAt),isAnonymous:d},Object.assign(t,f);case 17:case"end":return e.stop()}}),e)}))),BN.apply(this,arguments)}function VN(){return(VN=nR(eR().mark((function e(t){var n;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=MR(t),e.next=3,zN(n);case 3:return e.next=5,n.auth._persistUserIfCurrent(n);case 5:n.auth._notifyListenersIfCurrent(n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function UN(e,t){var n=e.filter((function(e){return!t.some((function(t){return t.providerId===e.providerId}))}));return[].concat(lt(n),lt(t))}function WN(e,t){return HN.apply(this,arguments)}function HN(){return HN=nR(eR().mark((function e(t,n){var r;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,bN(t,{},nR(eR().mark((function e(){var r,i,a,o,s,u;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=_R({grant_type:"refresh_token",refresh_token:n}).slice(1),i=t.config,a=i.tokenApiHost,o=i.apiKey,s=SN(t,a,"/v1/token","key=".concat(o)),e.next=5,t._getAdditionalHeaders();case 5:return(u=e.sent)["Content-Type"]="application/x-www-form-urlencoded",e.abrupt("return",hN.fetch()(s,{method:"POST",headers:u,body:r}));case 8:case"end":return e.stop()}}),e)}))));case 2:return r=e.sent,e.abrupt("return",{accessToken:r.access_token,expiresIn:r.expires_in,refreshToken:r.refresh_token});case 4:case"end":return e.stop()}}),e)}))),HN.apply(this,arguments)}var qN=function(){function e(){Qi(this,e),this.refreshToken=null,this.accessToken=null,this.expirationTime=null}return Ji(e,[{key:"isExpired",get:function(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}},{key:"updateFromServerResponse",value:function(e){aN(e.idToken,"internal-error"),aN("undefined"!==typeof e.idToken,"internal-error"),aN("undefined"!==typeof e.refreshToken,"internal-error");var t="expiresIn"in e&&"undefined"!==typeof e.expiresIn?Number(e.expiresIn):function(e){var t=RN(e);return aN(t,"internal-error"),aN("undefined"!==typeof t.exp,"internal-error"),aN("undefined"!==typeof t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}},{key:"getToken",value:function(){var e=nR(eR().mark((function e(t){var n,r=arguments;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.length>1&&void 0!==r[1]&&r[1],aN(!this.accessToken||this.refreshToken,t,"user-token-expired"),n||!this.accessToken||this.isExpired){e.next=4;break}return e.abrupt("return",this.accessToken);case 4:if(!this.refreshToken){e.next=8;break}return e.next=7,this.refresh(t,this.refreshToken);case 7:return e.abrupt("return",this.accessToken);case 8:return e.abrupt("return",null);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"clearRefreshToken",value:function(){this.refreshToken=null}},{key:"refresh",value:function(){var e=nR(eR().mark((function e(t,n){var r,i,a,o;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,WN(t,n);case 2:r=e.sent,i=r.accessToken,a=r.refreshToken,o=r.expiresIn,this.updateTokensAndExpiration(i,a,Number(o));case 7:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"updateTokensAndExpiration",value:function(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}},{key:"toJSON",value:function(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}},{key:"_assign",value:function(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}},{key:"_clone",value:function(){return Object.assign(new e,this.toJSON())}},{key:"_performRefresh",value:function(){return oN("not implemented")}}],[{key:"fromJSON",value:function(t,n){var r=n.refreshToken,i=n.accessToken,a=n.expirationTime,o=new e;return r&&(aN("string"===typeof r,"internal-error",{appName:t}),o.refreshToken=r),i&&(aN("string"===typeof i,"internal-error",{appName:t}),o.accessToken=i),a&&(aN("number"===typeof a,"internal-error",{appName:t}),o.expirationTime=a),o}}]),e}();function YN(e,t){aN("string"===typeof e||"undefined"===typeof e,"internal-error",{appName:t})}var KN=function(){function e(t){Qi(this,e);var n=t.uid,r=t.auth,i=t.stsTokenManager,a=Ed(t,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new DN(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=a.displayName||null,this.email=a.email||null,this.emailVerified=a.emailVerified||!1,this.phoneNumber=a.phoneNumber||null,this.photoURL=a.photoURL||null,this.isAnonymous=a.isAnonymous||!1,this.tenantId=a.tenantId||null,this.providerData=a.providerData?lt(a.providerData):[],this.metadata=new FN(a.createdAt||void 0,a.lastLoginAt||void 0)}return Ji(e,[{key:"getIdToken",value:function(){var e=nR(eR().mark((function e(t){var n;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,MN(this,this.stsTokenManager.getToken(this.auth,t));case 2:if(aN(n=e.sent,this.auth,"internal-error"),this.accessToken===n){e.next=9;break}return this.accessToken=n,e.next=8,this.auth._persistUserIfCurrent(this);case 8:this.auth._notifyListenersIfCurrent(this);case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getIdTokenResult",value:function(e){return function(e){return AN.apply(this,arguments)}(this,e)}},{key:"reload",value:function(){return function(e){return VN.apply(this,arguments)}(this)}},{key:"_assign",value:function(e){this!==e&&(aN(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map((function(e){return Object.assign({},e)})),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}},{key:"_clone",value:function(t){var n=new e(Object.assign(Object.assign({},this),{auth:t,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}},{key:"_onReload",value:function(e){aN(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}},{key:"_notifyReloadListener",value:function(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}},{key:"_startProactiveRefresh",value:function(){this.proactiveRefresh._start()}},{key:"_stopProactiveRefresh",value:function(){this.proactiveRefresh._stop()}},{key:"_updateTokensIfNecessary",value:function(){var e=nR(eR().mark((function e(t){var n,r,i=arguments;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>1&&void 0!==i[1]&&i[1],r=!1,t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),r=!0),!n){e.next=6;break}return e.next=6,zN(this);case 6:return e.next=8,this.auth._persistUserIfCurrent(this);case 8:r&&this.auth._notifyListenersIfCurrent(this);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=nR(eR().mark((function e(){var t;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getIdToken();case 2:return t=e.sent,e.next=5,MN(this,CN(this.auth,{idToken:t}));case 5:return this.stsTokenManager.clearRefreshToken(),e.abrupt("return",this.auth.signOut());case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"toJSON",value:function(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map((function(e){return Object.assign({},e)})),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}},{key:"refreshToken",get:function(){return this.stsTokenManager.refreshToken||""}}],[{key:"_fromJSON",value:function(t,n){var r,i,a,o,s,u,l,c,d=null!==(r=n.displayName)&&void 0!==r?r:void 0,f=null!==(i=n.email)&&void 0!==i?i:void 0,h=null!==(a=n.phoneNumber)&&void 0!==a?a:void 0,p=null!==(o=n.photoURL)&&void 0!==o?o:void 0,v=null!==(s=n.tenantId)&&void 0!==s?s:void 0,g=null!==(u=n._redirectEventId)&&void 0!==u?u:void 0,m=null!==(l=n.createdAt)&&void 0!==l?l:void 0,y=null!==(c=n.lastLoginAt)&&void 0!==c?c:void 0,b=n.uid,x=n.emailVerified,w=n.isAnonymous,k=n.providerData,S=n.stsTokenManager;aN(b&&S,t,"internal-error");var _=qN.fromJSON(this.name,S);aN("string"===typeof b,t,"internal-error"),YN(d,t.name),YN(f,t.name),aN("boolean"===typeof x,t,"internal-error"),aN("boolean"===typeof w,t,"internal-error"),YN(h,t.name),YN(p,t.name),YN(v,t.name),YN(g,t.name),YN(m,t.name),YN(y,t.name);var E=new e({uid:b,auth:t,email:f,emailVerified:x,displayName:d,isAnonymous:w,photoURL:p,phoneNumber:h,tenantId:v,stsTokenManager:_,createdAt:m,lastLoginAt:y});return k&&Array.isArray(k)&&(E.providerData=k.map((function(e){return Object.assign({},e)}))),g&&(E._redirectEventId=g),E}},{key:"_fromIdTokenResponse",value:function(){var t=nR(eR().mark((function t(n,r){var i,a,o,s=arguments;return eR().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=s.length>2&&void 0!==s[2]&&s[2],(a=new qN).updateFromServerResponse(r),o=new e({uid:r.localId,auth:n,stsTokenManager:a,isAnonymous:i}),t.next=6,zN(o);case 6:return t.abrupt("return",o);case 7:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}]),e}(),GN=new Map;function XN(e){sN(e instanceof Function,"Expected a class definition");var t=GN.get(e);return t?(sN(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,GN.set(e,t),t)}var $N=function(){function e(){Qi(this,e),this.type="NONE",this.storage={}}return Ji(e,[{key:"_isAvailable",value:function(){var e=nR(eR().mark((function e(){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"_set",value:function(){var e=nR(eR().mark((function e(t,n){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.storage[t]=n;case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_get",value:function(){var e=nR(eR().mark((function e(t){var n;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.storage[t],e.abrupt("return",void 0===n?null:n);case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_remove",value:function(){var e=nR(eR().mark((function e(t){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:delete this.storage[t];case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_addListener",value:function(e,t){}},{key:"_removeListener",value:function(e,t){}}]),e}();$N.type="NONE";var JN=$N;function QN(e,t,n){return"firebase".concat(":",e,":").concat(t,":").concat(n)}var ZN=function(){function e(t,n,r){Qi(this,e),this.persistence=t,this.auth=n,this.userKey=r;var i=this.auth,a=i.config,o=i.name;this.fullUserKey=QN(this.userKey,a.apiKey,o),this.fullPersistenceKey=QN("persistence",a.apiKey,o),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}return Ji(e,[{key:"setCurrentUser",value:function(e){return this.persistence._set(this.fullUserKey,e.toJSON())}},{key:"getCurrentUser",value:function(){var e=nR(eR().mark((function e(){var t;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.persistence._get(this.fullUserKey);case 2:return t=e.sent,e.abrupt("return",t?KN._fromJSON(this.auth,t):null);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"removeCurrentUser",value:function(){return this.persistence._remove(this.fullUserKey)}},{key:"savePersistenceForRedirect",value:function(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}},{key:"setPersistence",value:function(){var e=nR(eR().mark((function e(t){var n;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.persistence!==t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.getCurrentUser();case 4:return n=e.sent,e.next=7,this.removeCurrentUser();case 7:if(this.persistence=t,!n){e.next=10;break}return e.abrupt("return",this.setCurrentUser(n));case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"delete",value:function(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}}],[{key:"create",value:function(){var t=nR(eR().mark((function t(n,r){var i,a,o,s,u,l,c,d,f,h,p,v=arguments;return eR().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=v.length>2&&void 0!==v[2]?v[2]:"authUser",r.length){t.next=3;break}return t.abrupt("return",new e(XN(JN),n,i));case 3:return t.next=5,Promise.all(r.map(function(){var e=nR(eR().mark((function e(t){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._isAvailable();case 2:if(!e.sent){e.next=4;break}return e.abrupt("return",t);case 4:return e.abrupt("return",void 0);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:a=t.sent.filter((function(e){return e})),o=a[0]||XN(JN),s=QN(i,n.config.apiKey,n.name),u=null,l=st(r),t.prev=10,l.s();case 12:if((c=l.n()).done){t.next=29;break}return d=c.value,t.prev=14,t.next=17,d._get(s);case 17:if(!(f=t.sent)){t.next=23;break}return h=KN._fromJSON(n,f),d!==o&&(u=h),o=d,t.abrupt("break",29);case 23:t.next=27;break;case 25:t.prev=25,t.t0=t.catch(14);case 27:t.next=12;break;case 29:t.next=34;break;case 31:t.prev=31,t.t1=t.catch(10),l.e(t.t1);case 34:return t.prev=34,l.f(),t.finish(34);case 37:if(p=a.filter((function(e){return e._shouldAllowMigration})),o._shouldAllowMigration&&p.length){t.next=40;break}return t.abrupt("return",new e(o,n,i));case 40:if(o=p[0],!u){t.next=44;break}return t.next=44,o._set(s,u.toJSON());case 44:return t.next=46,Promise.all(r.map(function(){var e=nR(eR().mark((function e(t){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t===o){e.next=8;break}return e.prev=1,e.next=4,t._remove(s);case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t){return e.apply(this,arguments)}}()));case 46:return t.abrupt("return",new e(o,n,i));case 47:case"end":return t.stop()}}),t,null,[[10,31,34,37],[14,25]])})));return function(e,n){return t.apply(this,arguments)}}()}]),e}();function eL(e){var t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(iL(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(tL(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(oL(t))return"Blackberry";if(sL(t))return"Webos";if(nL(t))return"Safari";if((t.includes("chrome/")||rL(t))&&!t.includes("edge/"))return"Chrome";if(aL(t))return"Android";var n=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);return 2===(null===n||void 0===n?void 0:n.length)?n[1]:"Other"}function tL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pR();return/firefox\//i.test(e)}function nL(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:pR()).toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function rL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pR();return/crios\//i.test(e)}function iL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pR();return/iemobile/i.test(e)}function aL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pR();return/android/i.test(e)}function oL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pR();return/blackberry/i.test(e)}function sL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pR();return/webos/i.test(e)}function uL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pR();return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function lL(){return function(){var e=pR();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}()&&10===document.documentMode}function cL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pR();return uL(e)||aL(e)||sL(e)||oL(e)||/windows phone/i.test(e)||iL(e)}function dL(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];switch(e){case"Browser":t=eL(pR());break;case"Worker":t="".concat(eL(pR()),"-").concat(e);break;default:t=e}var r=n.length?n.join(","):"FirebaseCore-web";return"".concat(t,"/","JsCore","/").concat(OM,"/").concat(r)}function fL(e,t){return hL.apply(this,arguments)}function hL(){return hL=nR(eR().mark((function e(t,n){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",mN(t,"GET","/v2/recaptchaConfig",gN(t,n)));case 1:case"end":return e.stop()}}),e)}))),hL.apply(this,arguments)}function pL(e){return void 0!==e&&void 0!==e.enterprise}var vL=Ji((function e(t){if(Qi(this,e),this.siteKey="",this.emailPasswordEnabled=!1,void 0===t.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=t.recaptchaKey.split("/")[3],this.emailPasswordEnabled=t.recaptchaEnforcementState.some((function(e){return"EMAIL_PASSWORD_PROVIDER"===e.provider&&"OFF"!==e.enforcementState}))}));function gL(e){return new Promise((function(t,n){var r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=function(e){var t=nN("internal-error");t.customData=e,n(t)},r.type="text/javascript",r.charset="UTF-8",function(){var e,t;return null!==(t=null===(e=document.getElementsByTagName("head"))||void 0===e?void 0:e[0])&&void 0!==t?t:document}().appendChild(r)}))}function mL(e){return"__".concat(e).concat(Math.floor(1e6*Math.random()))}var yL=function(){function e(t){Qi(this,e),this.type="recaptcha-enterprise",this.auth=SL(t)}return Ji(e,[{key:"verify",value:function(){var e=nR(eR().mark((function e(){var t,n,r,i,a,o=this,s=arguments;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=function(e,n,r){var i=window.grecaptcha;pL(i)?i.enterprise.ready((function(){i.enterprise.execute(e,{action:t}).then((function(e){n(e)})).catch((function(){n("NO_RECAPTCHA")}))})):r(Error("No reCAPTCHA enterprise script loaded."))},i=function(){return i=nR(eR().mark((function e(t){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=5;break}if(null!=t.tenantId||null==t._agentRecaptchaConfig){e.next=3;break}return e.abrupt("return",t._agentRecaptchaConfig.siteKey);case 3:if(null==t.tenantId||void 0===t._tenantRecaptchaConfigs[t.tenantId]){e.next=5;break}return e.abrupt("return",t._tenantRecaptchaConfigs[t.tenantId].siteKey);case 5:return e.abrupt("return",new Promise(function(){var e=nR(eR().mark((function e(n,r){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:fL(t,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then((function(e){if(void 0!==e.recaptchaKey){var i=new vL(e);return null==t.tenantId?t._agentRecaptchaConfig=i:t._tenantRecaptchaConfigs[t.tenantId]=i,n(i.siteKey)}r(new Error("recaptcha Enterprise site key undefined"))})).catch((function(e){r(e)}));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 6:case"end":return e.stop()}}),e)}))),i.apply(this,arguments)},r=function(e){return i.apply(this,arguments)},t=s.length>0&&void 0!==s[0]?s[0]:"verify",n=s.length>1&&void 0!==s[1]&&s[1],e.abrupt("return",new Promise((function(e,t){r(o.auth).then((function(r){if(!n&&pL(window.grecaptcha))a(r,e,t);else{if("undefined"===typeof window)return void t(new Error("RecaptchaVerifier is only supported in browser"));gL("https://www.google.com/recaptcha/enterprise.js?render="+r).then((function(){a(r,e,t)})).catch((function(e){t(e)}))}})).catch((function(e){t(e)}))})));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}]),e}();function bL(e,t,n){return xL.apply(this,arguments)}function xL(){return xL=nR(eR().mark((function e(t,n,r){var i,a,o,s,u=arguments;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=u.length>3&&void 0!==u[3]&&u[3],a=new yL(t),e.prev=2,e.next=5,a.verify(r);case 5:o=e.sent,e.next=13;break;case 8:return e.prev=8,e.t0=e.catch(2),e.next=12,a.verify(r,!0);case 12:o=e.sent;case 13:return s=Object.assign({},n),i?Object.assign(s,{captchaResp:o}):Object.assign(s,{captchaResponse:o}),Object.assign(s,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(s,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),e.abrupt("return",s);case 18:case"end":return e.stop()}}),e,null,[[2,8]])}))),xL.apply(this,arguments)}var wL=function(){function e(t){Qi(this,e),this.auth=t,this.queue=[]}return Ji(e,[{key:"pushCallback",value:function(e,t){var n=this,r=function(t){return new Promise((function(n,r){try{n(e(t))}catch(eO){r(eO)}}))};r.onAbort=t,this.queue.push(r);var i=this.queue.length-1;return function(){n.queue[i]=function(){return Promise.resolve()}}}},{key:"runMiddleware",value:function(){var e=nR(eR().mark((function e(t){var n,r,i,a,o,s,u;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.auth.currentUser!==t){e.next=2;break}return e.abrupt("return");case 2:n=[],e.prev=3,r=st(this.queue),e.prev=5,r.s();case 7:if((i=r.n()).done){e.next=14;break}return a=i.value,e.next=11,a(t);case 11:a.onAbort&&n.push(a.onAbort);case 12:e.next=7;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(5),r.e(e.t0);case 19:return e.prev=19,r.f(),e.finish(19);case 22:e.next=30;break;case 24:e.prev=24,e.t1=e.catch(3),n.reverse(),o=st(n);try{for(o.s();!(s=o.n()).done;){u=s.value;try{u()}catch(Qk){}}}catch(r0){o.e(r0)}finally{o.f()}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null===e.t1||void 0===e.t1?void 0:e.t1.message});case 30:case"end":return e.stop()}}),e,this,[[3,24],[5,16,19,22]])})));return function(t){return e.apply(this,arguments)}}()}]),e}(),kL=function(){function e(t,n,r,i){Qi(this,e),this.app=t,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new _L(this),this.idTokenSubscription=new _L(this),this.beforeStateQueue=new wL(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=JM,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=i.sdkClientVersion}return Ji(e,[{key:"_initializeWithPersistence",value:function(e,t){var n=this;return t&&(this._popupRedirectResolver=XN(t)),this._initializationPromise=this.queue(nR(eR().mark((function r(){var i,a;return eR().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n._deleted){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,ZN.create(n,e);case 4:if(n.persistenceManager=r.sent,!n._deleted){r.next=7;break}return r.abrupt("return");case 7:if(!(null===(i=n._popupRedirectResolver)||void 0===i?void 0:i._shouldInitProactively)){r.next=15;break}return r.prev=8,r.next=11,n._popupRedirectResolver._initialize(n);case 11:r.next=15;break;case 13:r.prev=13,r.t0=r.catch(8);case 15:return r.next=17,n.initializeCurrentUser(t);case 17:if(n.lastNotifiedUid=(null===(a=n.currentUser)||void 0===a?void 0:a.uid)||null,!n._deleted){r.next=20;break}return r.abrupt("return");case 20:n._isInitialized=!0;case 21:case"end":return r.stop()}}),r,null,[[8,13]])})))),this._initializationPromise}},{key:"_onStorageEvent",value:function(){var e=nR(eR().mark((function e(){var t;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._deleted){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.assertedPersistence.getCurrentUser();case 4:if(t=e.sent,this.currentUser||t){e.next=7;break}return e.abrupt("return");case 7:if(!this.currentUser||!t||this.currentUser.uid!==t.uid){e.next=12;break}return this._currentUser._assign(t),e.next=11,this.currentUser.getIdToken();case 11:return e.abrupt("return");case 12:return e.next=14,this._updateCurrentUser(t,!0);case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"initializeCurrentUser",value:function(){var e=nR(eR().mark((function e(t){var n,r,i,a,o,s,u;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.assertedPersistence.getCurrentUser();case 2:if(r=e.sent,i=r,a=!1,!t||!this.config.authDomain){e.next=14;break}return e.next=8,this.getOrInitRedirectPersistenceManager();case 8:return o=null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId,s=null===i||void 0===i?void 0:i._redirectEventId,e.next=12,this.tryRedirectSignIn(t);case 12:u=e.sent,o&&o!==s||!(null===u||void 0===u?void 0:u.user)||(i=u.user,a=!0);case 14:if(i){e.next=16;break}return e.abrupt("return",this.directlySetCurrentUser(null));case 16:if(i._redirectEventId){e.next=32;break}if(!a){e.next=27;break}return e.prev=18,e.next=21,this.beforeStateQueue.runMiddleware(i);case 21:e.next=27;break;case 23:e.prev=23,e.t0=e.catch(18),i=r,this._popupRedirectResolver._overrideRedirectResult(this,(function(){return Promise.reject(e.t0)}));case 27:if(!i){e.next=31;break}return e.abrupt("return",this.reloadAndSetCurrentUserOrClear(i));case 31:return e.abrupt("return",this.directlySetCurrentUser(null));case 32:return aN(this._popupRedirectResolver,this,"argument-error"),e.next=35,this.getOrInitRedirectPersistenceManager();case 35:if(!this.redirectUser||this.redirectUser._redirectEventId!==i._redirectEventId){e.next=37;break}return e.abrupt("return",this.directlySetCurrentUser(i));case 37:return e.abrupt("return",this.reloadAndSetCurrentUserOrClear(i));case 38:case"end":return e.stop()}}),e,this,[[18,23]])})));return function(t){return e.apply(this,arguments)}}()},{key:"tryRedirectSignIn",value:function(){var e=nR(eR().mark((function e(t){var n;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=null,e.prev=1,e.next=4,this._popupRedirectResolver._completeRedirectFn(this,t,!0);case 4:n=e.sent,e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),e.next=11,this._setRedirectUser(null);case 11:return e.abrupt("return",n);case 12:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"reloadAndSetCurrentUserOrClear",value:function(){var e=nR(eR().mark((function e(t){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,zN(t);case 3:e.next=9;break;case 5:if(e.prev=5,e.t0=e.catch(0),(null===e.t0||void 0===e.t0?void 0:e.t0.code)==="auth/".concat("network-request-failed")){e.next=9;break}return e.abrupt("return",this.directlySetCurrentUser(null));case 9:return e.abrupt("return",this.directlySetCurrentUser(t));case 10:case"end":return e.stop()}}),e,this,[[0,5]])})));return function(t){return e.apply(this,arguments)}}()},{key:"useDeviceLanguage",value:function(){this.languageCode=function(){if("undefined"===typeof navigator)return null;var e=navigator;return e.languages&&e.languages[0]||e.language||null}()}},{key:"_delete",value:function(){var e=nR(eR().mark((function e(){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._deleted=!0;case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"updateCurrentUser",value:function(){var e=nR(eR().mark((function e(t){var n;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=t?MR(t):null)&&aN(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),e.abrupt("return",this._updateCurrentUser(n&&n._clone(this)));case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_updateCurrentUser",value:function(){var e=nR(eR().mark((function e(t){var n,r=this,i=arguments;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>1&&void 0!==i[1]&&i[1],!this._deleted){e.next=3;break}return e.abrupt("return");case 3:if(t&&aN(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),n){e.next=7;break}return e.next=7,this.beforeStateQueue.runMiddleware(t);case 7:return e.abrupt("return",this.queue(nR(eR().mark((function e(){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.directlySetCurrentUser(t);case 2:r.notifyAuthListeners();case 3:case"end":return e.stop()}}),e)})))));case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signOut",value:function(){var e=nR(eR().mark((function e(){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.beforeStateQueue.runMiddleware(null);case 2:if(!this.redirectPersistenceManager&&!this._popupRedirectResolver){e.next=5;break}return e.next=5,this._setRedirectUser(null);case 5:return e.abrupt("return",this._updateCurrentUser(null,!0));case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setPersistence",value:function(e){var t=this;return this.queue(nR(eR().mark((function n(){return eR().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.assertedPersistence.setPersistence(XN(e));case 2:case"end":return n.stop()}}),n)}))))}},{key:"initializeRecaptchaConfig",value:function(){var e=nR(eR().mark((function e(){var t,n;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fL(this,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"});case 2:t=e.sent,n=new vL(t),null==this.tenantId?this._agentRecaptchaConfig=n:this._tenantRecaptchaConfigs[this.tenantId]=n,n.emailPasswordEnabled&&new yL(this).verify();case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_getRecaptchaConfig",value:function(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}},{key:"_getPersistence",value:function(){return this.assertedPersistence.persistence.type}},{key:"_updateErrorMap",value:function(e){this._errorFactory=new bR("auth","Firebase",e())}},{key:"onAuthStateChanged",value:function(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}},{key:"beforeAuthStateChanged",value:function(e,t){return this.beforeStateQueue.pushCallback(e,t)}},{key:"onIdTokenChanged",value:function(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}},{key:"toJSON",value:function(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}},{key:"_setRedirectUser",value:function(){var e=nR(eR().mark((function e(t,n){var r;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getOrInitRedirectPersistenceManager(n);case 2:return r=e.sent,e.abrupt("return",null===t?r.removeCurrentUser():r.setCurrentUser(t));case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"getOrInitRedirectPersistenceManager",value:function(){var e=nR(eR().mark((function e(t){var n;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.redirectPersistenceManager){e.next=9;break}return aN(n=t&&XN(t)||this._popupRedirectResolver,this,"argument-error"),e.next=5,ZN.create(this,[XN(n._redirectPersistence)],"redirectUser");case 5:return this.redirectPersistenceManager=e.sent,e.next=8,this.redirectPersistenceManager.getCurrentUser();case 8:this.redirectUser=e.sent;case 9:return e.abrupt("return",this.redirectPersistenceManager);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_redirectUserForId",value:function(){var e=nR(eR().mark((function e(t){var n,r;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isInitialized){e.next=3;break}return e.next=3,this.queue(nR(eR().mark((function e(){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))));case 3:if((null===(n=this._currentUser)||void 0===n?void 0:n._redirectEventId)!==t){e.next=5;break}return e.abrupt("return",this._currentUser);case 5:if((null===(r=this.redirectUser)||void 0===r?void 0:r._redirectEventId)!==t){e.next=7;break}return e.abrupt("return",this.redirectUser);case 7:return e.abrupt("return",null);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_persistUserIfCurrent",value:function(){var e=nR(eR().mark((function e(t){var n=this;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==this.currentUser){e.next=2;break}return e.abrupt("return",this.queue(nR(eR().mark((function e(){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.directlySetCurrentUser(t));case 1:case"end":return e.stop()}}),e)})))));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_notifyListenersIfCurrent",value:function(e){e===this.currentUser&&this.notifyAuthListeners()}},{key:"_key",value:function(){return"".concat(this.config.authDomain,":").concat(this.config.apiKey,":").concat(this.name)}},{key:"_startProactiveRefresh",value:function(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}},{key:"_stopProactiveRefresh",value:function(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}},{key:"_currentUser",get:function(){return this.currentUser}},{key:"notifyAuthListeners",value:function(){var e,t;if(this._isInitialized){this.idTokenSubscription.next(this.currentUser);var n=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}}},{key:"registerStateListener",value:function(e,t,n,r){var i=this;if(this._deleted)return function(){};var a="function"===typeof t?t:t.next.bind(t),o=this._isInitialized?Promise.resolve():this._initializationPromise;return aN(o,this,"internal-error"),o.then((function(){return a(i.currentUser)})),"function"===typeof t?e.addObserver(t,n,r):e.addObserver(t)}},{key:"directlySetCurrentUser",value:function(){var e=nR(eR().mark((function e(t){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.currentUser&&this.currentUser!==t&&this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh(),this.currentUser=t,!t){e.next=8;break}return e.next=6,this.assertedPersistence.setCurrentUser(t);case 6:e.next=10;break;case 8:return e.next=10,this.assertedPersistence.removeCurrentUser();case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"queue",value:function(e){return this.operations=this.operations.then(e,e),this.operations}},{key:"assertedPersistence",get:function(){return aN(this.persistenceManager,this,"internal-error"),this.persistenceManager}},{key:"_logFramework",value:function(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=dL(this.config.clientPlatform,this._getFrameworks()))}},{key:"_getFrameworks",value:function(){return this.frameworks}},{key:"_getAdditionalHeaders",value:function(){var e=nR(eR().mark((function e(){var t,n,r,i;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s({},"X-Client-Version",this.clientVersion),this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId),e.next=4,null===(t=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===t?void 0:t.getHeartbeatsHeader();case 4:return(r=e.sent)&&(n["X-Firebase-Client"]=r),e.next=8,this._getAppCheckToken();case 8:return(i=e.sent)&&(n["X-Firebase-AppCheck"]=i),e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_getAppCheckToken",value:function(){var e=nR(eR().mark((function e(){var t,n;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=this.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===t?void 0:t.getToken();case 2:return(null===(n=e.sent)||void 0===n?void 0:n.error)&&ZM("Error while retrieving App Check token: ".concat(n.error)),e.abrupt("return",null===n||void 0===n?void 0:n.token);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function SL(e){return MR(e)}var _L=function(){function e(t){var n=this;Qi(this,e),this.auth=t,this.observer=null,this.addObserver=function(e,t){var n=new OR(e,t);return n.subscribe.bind(n)}((function(e){return n.observer=e}))}return Ji(e,[{key:"next",get:function(){return aN(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}]),e}();function EL(e,t,n){var r=SL(e);aN(r._canInitEmulator,r,"emulator-config-failed"),aN(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");var i=!!(null===n||void 0===n?void 0:n.disableWarnings),a=CL(t),o=function(e){var t=CL(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};var r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){var a=i[1];return{host:a,port:OL(r.substr(a.length+1))}}var o=Qe(r.split(":"),2);return{host:o[0],port:OL(o[1])}}(t),s=o.host,u=o.port,l=null===u?"":":".concat(u);r.config.emulator={url:"".concat(a,"//").concat(s).concat(l,"/")},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:s,port:u,protocol:a.replace(":",""),options:Object.freeze({disableWarnings:i})}),i||function(){function e(){var e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!==typeof console&&"function"===typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials.");"undefined"!==typeof window&&"undefined"!==typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}()}function CL(e){var t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function OL(e){if(!e)return null;var t=Number(e);return isNaN(t)?null:t}var TL=function(){function e(t,n){Qi(this,e),this.providerId=t,this.signInMethod=n}return Ji(e,[{key:"toJSON",value:function(){return oN("not implemented")}},{key:"_getIdTokenResponse",value:function(e){return oN("not implemented")}},{key:"_linkToIdToken",value:function(e,t){return oN("not implemented")}},{key:"_getReauthenticationResolver",value:function(e){return oN("not implemented")}}]),e}();function PL(e,t){return jL.apply(this,arguments)}function jL(){return jL=nR(eR().mark((function e(t,n){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",mN(t,"POST","/v1/accounts:update",n));case 1:case"end":return e.stop()}}),e)}))),jL.apply(this,arguments)}function AL(e,t){return IL.apply(this,arguments)}function IL(){return IL=nR(eR().mark((function e(t,n){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",wN(t,"POST","/v1/accounts:signInWithPassword",gN(t,n)));case 1:case"end":return e.stop()}}),e)}))),IL.apply(this,arguments)}function RL(e,t){return ML.apply(this,arguments)}function ML(){return ML=nR(eR().mark((function e(t,n){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",wN(t,"POST","/v1/accounts:signInWithEmailLink",gN(t,n)));case 1:case"end":return e.stop()}}),e)}))),ML.apply(this,arguments)}function NL(e,t){return LL.apply(this,arguments)}function LL(){return LL=nR(eR().mark((function e(t,n){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",wN(t,"POST","/v1/accounts:signInWithEmailLink",gN(t,n)));case 1:case"end":return e.stop()}}),e)}))),LL.apply(this,arguments)}var DL=function(e){ea(n,e);var t=aa(n);function n(e,r,i){var a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Qi(this,n),(a=t.call(this,"password",i))._email=e,a._password=r,a._tenantId=o,a}return Ji(n,[{key:"toJSON",value:function(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}},{key:"_getIdTokenResponse",value:function(){var e=nR(eR().mark((function e(t){var n,r,i;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.signInMethod,e.next="password"===e.t0?3:"emailLink"===e.t0?12:13;break;case 3:if(r={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},!(null===(n=t._getRecaptchaConfig())||void 0===n?void 0:n.emailPasswordEnabled)){e.next=11;break}return e.next=7,bL(t,r,"signInWithPassword");case 7:return i=e.sent,e.abrupt("return",AL(t,i));case 11:return e.abrupt("return",AL(t,r).catch(function(){var e=nR(eR().mark((function e(n){var i;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.code!=="auth/".concat("missing-recaptcha-token")){e.next=8;break}return console.log("Sign-in with email address and password is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow."),e.next=4,bL(t,r,"signInWithPassword");case 4:return i=e.sent,e.abrupt("return",AL(t,i));case 8:return e.abrupt("return",Promise.reject(n));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 12:return e.abrupt("return",RL(t,{email:this._email,oobCode:this._password}));case 13:tN(t,"internal-error");case 14:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_linkToIdToken",value:function(){var e=nR(eR().mark((function e(t,n){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.signInMethod,e.next="password"===e.t0?3:"emailLink"===e.t0?4:5;break;case 3:return e.abrupt("return",PL(t,{idToken:n,returnSecureToken:!0,email:this._email,password:this._password}));case 4:return e.abrupt("return",NL(t,{idToken:n,email:this._email,oobCode:this._password}));case 5:tN(t,"internal-error");case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_getReauthenticationResolver",value:function(e){return this._getIdTokenResponse(e)}}],[{key:"_fromEmailAndPassword",value:function(e,t){return new n(e,t,"password")}},{key:"_fromEmailAndCode",value:function(e,t){return new n(e,t,"emailLink",arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"fromJSON",value:function(e){var t="string"===typeof e?JSON.parse(e):e;if((null===t||void 0===t?void 0:t.email)&&(null===t||void 0===t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}}]),n}(TL);function FL(e,t){return zL.apply(this,arguments)}function zL(){return zL=nR(eR().mark((function e(t,n){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",wN(t,"POST","/v1/accounts:signInWithIdp",gN(t,n)));case 1:case"end":return e.stop()}}),e)}))),zL.apply(this,arguments)}var BL=function(e){ea(n,e);var t=aa(n);function n(){var e;return Qi(this,n),(e=t.apply(this,arguments)).pendingToken=null,e}return Ji(n,[{key:"toJSON",value:function(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}},{key:"_getIdTokenResponse",value:function(e){return FL(e,this.buildRequest())}},{key:"_linkToIdToken",value:function(e,t){var n=this.buildRequest();return n.idToken=t,FL(e,n)}},{key:"_getReauthenticationResolver",value:function(e){var t=this.buildRequest();return t.autoCreate=!1,FL(e,t)}},{key:"buildRequest",value:function(){var e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{var t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=_R(t)}return e}}],[{key:"_fromParams",value:function(e){var t=new n(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):tN("argument-error"),t}},{key:"fromJSON",value:function(e){var t="string"===typeof e?JSON.parse(e):e,r=t.providerId,i=t.signInMethod,a=Ed(t,["providerId","signInMethod"]);if(!r||!i)return null;var o=new n(r,i);return o.idToken=a.idToken||void 0,o.accessToken=a.accessToken||void 0,o.secret=a.secret,o.nonce=a.nonce,o.pendingToken=a.pendingToken||null,o}}]),n}(TL);function VL(e,t){return UL.apply(this,arguments)}function UL(){return UL=nR(eR().mark((function e(t,n){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",mN(t,"POST","/v1/accounts:sendVerificationCode",gN(t,n)));case 1:case"end":return e.stop()}}),e)}))),UL.apply(this,arguments)}function WL(){return WL=nR(eR().mark((function e(t,n){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",wN(t,"POST","/v1/accounts:signInWithPhoneNumber",gN(t,n)));case 1:case"end":return e.stop()}}),e)}))),WL.apply(this,arguments)}function HL(){return HL=nR(eR().mark((function e(t,n){var r;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,wN(t,"POST","/v1/accounts:signInWithPhoneNumber",gN(t,n));case 2:if(!(r=e.sent).temporaryProof){e.next=5;break}throw EN(t,"account-exists-with-different-credential",r);case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)}))),HL.apply(this,arguments)}var qL=s({},"USER_NOT_FOUND","user-not-found");function YL(){return YL=nR(eR().mark((function e(t,n){var r;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object.assign(Object.assign({},n),{operation:"REAUTH"}),e.abrupt("return",wN(t,"POST","/v1/accounts:signInWithPhoneNumber",gN(t,r),qL));case 2:case"end":return e.stop()}}),e)}))),YL.apply(this,arguments)}var KL=function(e){ea(n,e);var t=aa(n);function n(e){var r;return Qi(this,n),(r=t.call(this,"phone","phone")).params=e,r}return Ji(n,[{key:"_getIdTokenResponse",value:function(e){return function(e,t){return WL.apply(this,arguments)}(e,this._makeVerificationRequest())}},{key:"_linkToIdToken",value:function(e,t){return function(e,t){return HL.apply(this,arguments)}(e,Object.assign({idToken:t},this._makeVerificationRequest()))}},{key:"_getReauthenticationResolver",value:function(e){return function(e,t){return YL.apply(this,arguments)}(e,this._makeVerificationRequest())}},{key:"_makeVerificationRequest",value:function(){var e=this.params,t=e.temporaryProof,n=e.phoneNumber,r=e.verificationId,i=e.verificationCode;return t&&n?{temporaryProof:t,phoneNumber:n}:{sessionInfo:r,code:i}}},{key:"toJSON",value:function(){var e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}}],[{key:"_fromVerification",value:function(e,t){return new n({verificationId:e,verificationCode:t})}},{key:"_fromTokenResponse",value:function(e,t){return new n({phoneNumber:e,temporaryProof:t})}},{key:"fromJSON",value:function(e){"string"===typeof e&&(e=JSON.parse(e));var t=e,r=t.verificationId,i=t.verificationCode,a=t.phoneNumber,o=t.temporaryProof;return i||r||a||o?new n({verificationId:r,verificationCode:i,phoneNumber:a,temporaryProof:o}):null}}]),n}(TL);var GL=function(){function e(t){var n,r,i,a,o,s;Qi(this,e);var u=ER(CR(t)),l=null!==(n=u.apiKey)&&void 0!==n?n:null,c=null!==(r=u.oobCode)&&void 0!==r?r:null,d=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(i=u.mode)&&void 0!==i?i:null);aN(l&&c&&d,"argument-error"),this.apiKey=l,this.operation=d,this.code=c,this.continueUrl=null!==(a=u.continueUrl)&&void 0!==a?a:null,this.languageCode=null!==(o=u.languageCode)&&void 0!==o?o:null,this.tenantId=null!==(s=u.tenantId)&&void 0!==s?s:null}return Ji(e,null,[{key:"parseLink",value:function(t){var n=function(e){var t=ER(CR(e)).link,n=t?ER(CR(t)).deep_link_id:null,r=ER(CR(e)).deep_link_id;return(r?ER(CR(r)).link:null)||r||n||t||e}(t);try{return new e(n)}catch(mo){return null}}}]),e}();var XL=function(){function e(){Qi(this,e),this.providerId=e.PROVIDER_ID}return Ji(e,null,[{key:"credential",value:function(e,t){return DL._fromEmailAndPassword(e,t)}},{key:"credentialWithLink",value:function(e,t){var n=GL.parseLink(t);return aN(n,"argument-error"),DL._fromEmailAndCode(e,n.code,n.tenantId)}}]),e}();XL.PROVIDER_ID="password",XL.EMAIL_PASSWORD_SIGN_IN_METHOD="password",XL.EMAIL_LINK_SIGN_IN_METHOD="emailLink";var $L=function(){function e(t){Qi(this,e),this.providerId=t,this.defaultLanguageCode=null,this.customParameters={}}return Ji(e,[{key:"setDefaultLanguage",value:function(e){this.defaultLanguageCode=e}},{key:"setCustomParameters",value:function(e){return this.customParameters=e,this}},{key:"getCustomParameters",value:function(){return this.customParameters}}]),e}(),JL=function(e){ea(n,e);var t=aa(n);function n(){var e;return Qi(this,n),(e=t.apply(this,arguments)).scopes=[],e}return Ji(n,[{key:"addScope",value:function(e){return this.scopes.includes(e)||this.scopes.push(e),this}},{key:"getScopes",value:function(){return lt(this.scopes)}}]),n}($L),QL=function(e){ea(n,e);var t=aa(n);function n(){return Qi(this,n),t.call(this,"facebook.com")}return Ji(n,null,[{key:"credential",value:function(e){return BL._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return n.credential(t.oauthAccessToken)}catch(mo){return null}}}]),n}(JL);QL.FACEBOOK_SIGN_IN_METHOD="facebook.com",QL.PROVIDER_ID="facebook.com";var ZL=function(e){ea(n,e);var t=aa(n);function n(){var e;return Qi(this,n),(e=t.call(this,"google.com")).addScope("profile"),e}return Ji(n,null,[{key:"credential",value:function(e,t){return BL._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t)return null;var r=t.oauthIdToken,i=t.oauthAccessToken;if(!r&&!i)return null;try{return n.credential(r,i)}catch(mo){return null}}}]),n}(JL);ZL.GOOGLE_SIGN_IN_METHOD="google.com",ZL.PROVIDER_ID="google.com";var eD=function(e){ea(n,e);var t=aa(n);function n(){return Qi(this,n),t.call(this,"github.com")}return Ji(n,null,[{key:"credential",value:function(e){return BL._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.GITHUB_SIGN_IN_METHOD,accessToken:e})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return n.credential(t.oauthAccessToken)}catch(mo){return null}}}]),n}(JL);eD.GITHUB_SIGN_IN_METHOD="github.com",eD.PROVIDER_ID="github.com";var tD=function(e){ea(n,e);var t=aa(n);function n(){return Qi(this,n),t.call(this,"twitter.com")}return Ji(n,null,[{key:"credential",value:function(e,t){return BL._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t)return null;var r=t.oauthAccessToken,i=t.oauthTokenSecret;if(!r||!i)return null;try{return n.credential(r,i)}catch(mo){return null}}}]),n}(JL);function nD(e,t){return rD.apply(this,arguments)}function rD(){return rD=nR(eR().mark((function e(t,n){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",wN(t,"POST","/v1/accounts:signUp",gN(t,n)));case 1:case"end":return e.stop()}}),e)}))),rD.apply(this,arguments)}tD.TWITTER_SIGN_IN_METHOD="twitter.com",tD.PROVIDER_ID="twitter.com";var iD=function(){function e(t){Qi(this,e),this.user=t.user,this.providerId=t.providerId,this._tokenResponse=t._tokenResponse,this.operationType=t.operationType}return Ji(e,null,[{key:"_fromIdTokenResponse",value:function(){var t=nR(eR().mark((function t(n,r,i){var a,o,s,u,l=arguments;return eR().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=l.length>3&&void 0!==l[3]&&l[3],t.next=3,KN._fromIdTokenResponse(n,i,a);case 3:return o=t.sent,s=aD(i),u=new e({user:o,providerId:s,_tokenResponse:i,operationType:r}),t.abrupt("return",u);case 7:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()},{key:"_forOperation",value:function(){var t=nR(eR().mark((function t(n,r,i){var a;return eR().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n._updateTokensIfNecessary(i,!0);case 2:return a=aD(i),t.abrupt("return",new e({user:n,providerId:a,_tokenResponse:i,operationType:r}));case 4:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()}]),e}();function aD(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}var oD=function(e){ea(n,e);var t=aa(n);function n(e,r,i,a){var o,s;return Qi(this,n),(o=t.call(this,r.code,r.message)).operationType=i,o.user=a,Object.setPrototypeOf(ra(o),n.prototype),o.customData={appName:e.name,tenantId:null!==(s=e.tenantId)&&void 0!==s?s:void 0,_serverResponse:r.customData._serverResponse,operationType:i},o}return Ji(n,null,[{key:"_fromErrorAndOperation",value:function(e,t,r,i){return new n(e,t,r,i)}}]),n}(yR);function sD(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch((function(n){if(n.code==="auth/".concat("multi-factor-auth-required"))throw oD._fromErrorAndOperation(e,n,t,r);throw n}))}function uD(e,t){return lD.apply(this,arguments)}function lD(){return lD=nR(eR().mark((function e(t,n){var r,i,a=arguments;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>2&&void 0!==a[2]&&a[2],e.t0=MN,e.t1=t,e.t2=n,e.t3=t.auth,e.next=7,t.getIdToken();case 7:return e.t4=e.sent,e.t5=e.t2._linkToIdToken.call(e.t2,e.t3,e.t4),e.t6=r,e.next=12,(0,e.t0)(e.t1,e.t5,e.t6);case 12:return i=e.sent,e.abrupt("return",iD._forOperation(t,"link",i));case 14:case"end":return e.stop()}}),e)}))),lD.apply(this,arguments)}function cD(e,t){return dD.apply(this,arguments)}function dD(){return dD=nR(eR().mark((function e(t,n){var r,i,a,o,s,u,l=arguments;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=l.length>2&&void 0!==l[2]&&l[2],i=t.auth,a="reauthenticate",e.prev=3,e.next=6,MN(t,sD(i,a,n,t),r);case 6:return aN((o=e.sent).idToken,i,"internal-error"),aN(s=RN(o.idToken),i,"internal-error"),u=s.sub,aN(t.uid===u,i,"user-mismatch"),e.abrupt("return",iD._forOperation(t,a,o));case 15:throw e.prev=15,e.t0=e.catch(3),(null===e.t0||void 0===e.t0?void 0:e.t0.code)==="auth/".concat("user-not-found")&&tN(i,"user-mismatch"),e.t0;case 19:case"end":return e.stop()}}),e,null,[[3,15]])}))),dD.apply(this,arguments)}function fD(e,t){return hD.apply(this,arguments)}function hD(){return hD=nR(eR().mark((function e(t,n){var r,i,a,o,s=arguments;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.length>2&&void 0!==s[2]&&s[2],i="signIn",e.next=4,sD(t,i,n);case 4:return a=e.sent,e.next=7,iD._fromIdTokenResponse(t,i,a);case 7:if(o=e.sent,r){e.next=11;break}return e.next=11,t._updateCurrentUser(o.user);case 11:return e.abrupt("return",o);case 12:case"end":return e.stop()}}),e)}))),hD.apply(this,arguments)}function pD(e,t){return vD.apply(this,arguments)}function vD(){return(vD=nR(eR().mark((function e(t,n){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",fD(SL(t),n));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gD(e,t,n){return mD.apply(this,arguments)}function mD(){return mD=nR(eR().mark((function e(t,n,r){var i,a,o,s,u,l,c;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=SL(t),o={returnSecureToken:!0,email:n,password:r,clientType:"CLIENT_TYPE_WEB"},!(null===(i=a._getRecaptchaConfig())||void 0===i?void 0:i.emailPasswordEnabled)){e.next=9;break}return e.next=5,bL(a,o,"signUpPassword");case 5:u=e.sent,s=nD(a,u),e.next=10;break;case 9:s=nD(a,o).catch(function(){var e=nR(eR().mark((function e(t){var n;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.code!=="auth/".concat("missing-recaptcha-token")){e.next=8;break}return console.log("Sign-up is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-up flow."),e.next=4,bL(a,o,"signUpPassword");case 4:return n=e.sent,e.abrupt("return",nD(a,n));case 8:return e.abrupt("return",Promise.reject(t));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 10:return e.next=12,s.catch((function(e){return Promise.reject(e)}));case 12:return l=e.sent,e.next=15,iD._fromIdTokenResponse(a,"signIn",l);case 15:return c=e.sent,e.next=18,a._updateCurrentUser(c.user);case 18:return e.abrupt("return",c);case 19:case"end":return e.stop()}}),e)}))),mD.apply(this,arguments)}function yD(e,t,n){return pD(MR(e),XL.credential(t,n))}function bD(e,t){return mN(e,"POST","/v2/accounts/mfaEnrollment:start",gN(e,t))}function xD(e,t){return mN(e,"POST","/v2/accounts/mfaEnrollment:start",gN(e,t))}function wD(e,t){return mN(e,"POST","/v2/accounts/mfaEnrollment:finalize",gN(e,t))}new WeakMap;var kD="__sak",SD=function(){function e(t,n){Qi(this,e),this.storageRetriever=t,this.type=n}return Ji(e,[{key:"_isAvailable",value:function(){try{return this.storage?(this.storage.setItem(kD,"1"),this.storage.removeItem(kD),Promise.resolve(!0)):Promise.resolve(!1)}catch(mo){return Promise.resolve(!1)}}},{key:"_set",value:function(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}},{key:"_get",value:function(e){var t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}},{key:"_remove",value:function(e){return this.storage.removeItem(e),Promise.resolve()}},{key:"storage",get:function(){return this.storageRetriever()}}]),e}();var _D=function(e){ea(n,e);var t=aa(n);function n(){var e;return Qi(this,n),(e=t.call(this,(function(){return window.localStorage}),"LOCAL")).boundEventHandler=function(t,n){return e.onStorageEvent(t,n)},e.listeners={},e.localCache={},e.pollTimer=null,e.safariLocalStorageNotSynced=function(){var e=pR();return nL(e)||uL(e)}()&&function(){try{return!(!window||window===window.top)}catch(eO){return!1}}(),e.fallbackToPolling=cL(),e._shouldAllowMigration=!0,e}return Ji(n,[{key:"forAllChangedKeys",value:function(e){for(var t=0,n=Object.keys(this.listeners);t1&&void 0!==arguments[1]&&arguments[1];if(e.key){var r=e.key;if(n?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){var i=this.storage.getItem(r);if(e.newValue!==i)null!==e.newValue?this.storage.setItem(r,e.newValue):this.storage.removeItem(r);else if(this.localCache[r]===e.newValue&&!n)return}var a=function(){var e=t.storage.getItem(r);(n||t.localCache[r]!==e)&&t.notifyListeners(r,e)},o=this.storage.getItem(r);lL()&&o!==e.newValue&&e.newValue!==e.oldValue?setTimeout(a,10):a()}else this.forAllChangedKeys((function(e,n,r){t.notifyListeners(e,r)}))}},{key:"notifyListeners",value:function(e,t){this.localCache[e]=t;var n=this.listeners[e];if(n)for(var r=0,i=Array.from(n);r0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n="",r=0;r2&&void 0!==u[2]?u[2]:50,i="undefined"!==typeof MessageChannel?new MessageChannel:null){e.next=4;break}throw new Error("connection_unavailable");case 4:return e.abrupt("return",new Promise((function(e,u){var l=jD("",20);i.port1.start();var c=setTimeout((function(){u(new Error("unsupported_event"))}),r);o={messageChannel:i,onMessage:function(t){var n=t;if(n.data.eventId===l)switch(n.data.status){case"ack":clearTimeout(c),a=setTimeout((function(){u(new Error("timeout"))}),3e3);break;case"done":clearTimeout(a),e(n.data.response);break;default:clearTimeout(c),clearTimeout(a),u(new Error("invalid_response"))}}},s.handlers.add(o),i.port1.addEventListener("message",o.onMessage),s.target.postMessage({eventType:t,eventId:l,data:n},[i.port2])})).finally((function(){o&&s.removeMessageHandler(o)})));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}]),e}();function ID(){return window}function RD(e){ID().location.href=e}function MD(){return"undefined"!==typeof ID().WorkerGlobalScope&&"function"===typeof ID().importScripts}function ND(){return LD.apply(this,arguments)}function LD(){return(LD=nR(eR().mark((function e(){var t;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===navigator||void 0===navigator?void 0:navigator.serviceWorker){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,navigator.serviceWorker.ready;case 5:return t=e.sent,e.abrupt("return",t.active);case 9:return e.prev=9,e.t0=e.catch(2),e.abrupt("return",null);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}function DD(){var e;return(null===(e=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===e?void 0:e.controller)||null}var FD="firebaseLocalStorageDb",zD=1,BD="firebaseLocalStorage",VD="fbase_key",UD=function(){function e(t){Qi(this,e),this.request=t}return Ji(e,[{key:"toPromise",value:function(){var e=this;return new Promise((function(t,n){e.request.addEventListener("success",(function(){t(e.request.result)})),e.request.addEventListener("error",(function(){n(e.request.error)}))}))}}]),e}();function WD(e,t){return e.transaction([BD],t?"readwrite":"readonly").objectStore(BD)}function HD(){var e=indexedDB.deleteDatabase(FD);return new UD(e).toPromise()}function qD(){var e=indexedDB.open(FD,zD);return new Promise((function(t,n){e.addEventListener("error",(function(){n(e.error)})),e.addEventListener("upgradeneeded",(function(){var t=e.result;try{t.createObjectStore(BD,{keyPath:VD})}catch(eO){n(eO)}})),e.addEventListener("success",nR(eR().mark((function n(){var r;return eR().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if((r=e.result).objectStoreNames.contains(BD)){n.next=12;break}return r.close(),n.next=5,HD();case 5:return n.t0=t,n.next=8,qD();case 8:n.t1=n.sent,(0,n.t0)(n.t1),n.next=13;break;case 12:t(r);case 13:case"end":return n.stop()}}),n)}))))}))}function YD(e,t,n){return KD.apply(this,arguments)}function KD(){return KD=nR(eR().mark((function e(t,n,r){var i,a;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=WD(t,!0).put((s(i={},VD,n),s(i,"value",r),i)),e.abrupt("return",new UD(a).toPromise());case 2:case"end":return e.stop()}}),e)}))),KD.apply(this,arguments)}function GD(e,t){return XD.apply(this,arguments)}function XD(){return XD=nR(eR().mark((function e(t,n){var r,i;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=WD(t,!1).get(n),e.next=3,new UD(r).toPromise();case 3:return i=e.sent,e.abrupt("return",void 0===i?null:i.value);case 5:case"end":return e.stop()}}),e)}))),XD.apply(this,arguments)}function $D(e,t){var n=WD(e,!0).delete(t);return new UD(n).toPromise()}var JD=function(){function e(){Qi(this,e),this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then((function(){}),(function(){}))}return Ji(e,[{key:"_openDb",value:function(){var e=nR(eR().mark((function e(){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.db){e.next=2;break}return e.abrupt("return",this.db);case 2:return e.next=4,qD();case 4:return this.db=e.sent,e.abrupt("return",this.db);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_withRetries",value:function(){var e=nR(eR().mark((function e(t){var n,r;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0;case 1:return e.prev=2,e.next=5,this._openDb();case 5:return r=e.sent,e.next=8,t(r);case 8:return e.abrupt("return",e.sent);case 11:if(e.prev=11,e.t0=e.catch(2),!(n++>3)){e.next=15;break}throw e.t0;case 15:this.db&&(this.db.close(),this.db=void 0);case 16:e.next=1;break;case 18:case"end":return e.stop()}}),e,this,[[2,11]])})));return function(t){return e.apply(this,arguments)}}()},{key:"initializeServiceWorkerMessaging",value:function(){var e=nR(eR().mark((function e(){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",MD()?this.initializeReceiver():this.initializeSender());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"initializeReceiver",value:function(){var e=nR(eR().mark((function e(){var t=this;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.receiver=PD._getInstance(MD()?self:null),this.receiver._subscribe("keyChanged",function(){var e=nR(eR().mark((function e(n,r){var i;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._poll();case 2:return i=e.sent,e.abrupt("return",{keyProcessed:i.includes(r.key)});case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),this.receiver._subscribe("ping",function(){var e=nR(eR().mark((function e(t,n){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",["keyChanged"]);case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"initializeSender",value:function(){var e=nR(eR().mark((function e(){var t,n,r;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ND();case 2:if(this.activeServiceWorker=e.sent,this.activeServiceWorker){e.next=5;break}return e.abrupt("return");case 5:return this.sender=new AD(this.activeServiceWorker),e.next=8,this.sender._send("ping",{},800);case 8:if(r=e.sent){e.next=11;break}return e.abrupt("return");case 11:(null===(t=r[0])||void 0===t?void 0:t.fulfilled)&&(null===(n=r[0])||void 0===n?void 0:n.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0);case 12:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"notifyServiceWorker",value:function(){var e=nR(eR().mark((function e(t){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.sender&&this.activeServiceWorker&&DD()===this.activeServiceWorker){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50);case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(2);case 9:case"end":return e.stop()}}),e,this,[[2,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_isAvailable",value:function(){var e=nR(eR().mark((function e(){var t;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,indexedDB){e.next=3;break}return e.abrupt("return",!1);case 3:return e.next=5,qD();case 5:return t=e.sent,e.next=8,YD(t,kD,"1");case 8:return e.next=10,$D(t,kD);case 10:return e.abrupt("return",!0);case 13:e.prev=13,e.t0=e.catch(0);case 15:return e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(){return e.apply(this,arguments)}}()},{key:"_withPendingWrite",value:function(){var e=nR(eR().mark((function e(t){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.pendingWrites++,e.prev=1,e.next=4,t();case 4:return e.prev=4,this.pendingWrites--,e.finish(4);case 7:case"end":return e.stop()}}),e,this,[[1,,4,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_set",value:function(){var e=nR(eR().mark((function e(t,n){var r=this;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._withPendingWrite(nR(eR().mark((function e(){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r._withRetries((function(e){return YD(e,t,n)}));case 2:return r.localCache[t]=n,e.abrupt("return",r.notifyServiceWorker(t));case 4:case"end":return e.stop()}}),e)})))));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_get",value:function(){var e=nR(eR().mark((function e(t){var n;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._withRetries((function(e){return GD(e,t)}));case 2:return n=e.sent,this.localCache[t]=n,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_remove",value:function(){var e=nR(eR().mark((function e(t){var n=this;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._withPendingWrite(nR(eR().mark((function e(){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n._withRetries((function(e){return $D(e,t)}));case 2:return delete n.localCache[t],e.abrupt("return",n.notifyServiceWorker(t));case 4:case"end":return e.stop()}}),e)})))));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_poll",value:function(){var e=nR(eR().mark((function e(){var t,n,r,i,a,o,s,u,l,c,d;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._withRetries((function(e){var t=WD(e,!1).getAll();return new UD(t).toPromise()}));case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return",[]);case 5:if(0===this.pendingWrites){e.next=7;break}return e.abrupt("return",[]);case 7:n=[],r=new Set,i=st(t);try{for(i.s();!(a=i.n()).done;)o=a.value,s=o.fbase_key,u=o.value,r.add(s),JSON.stringify(this.localCache[s])!==JSON.stringify(u)&&(this.notifyListeners(s,u),n.push(s))}catch(r0){i.e(r0)}finally{i.f()}for(l=0,c=Object.keys(this.localCache);l4&&void 0!==arguments[4]&&arguments[4];Qi(this,e),this.auth=t,this.resolver=r,this.user=i,this.bypassAuthState=a,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}return Ji(e,[{key:"execute",value:function(){var e=this;return new Promise(function(){var t=nR(eR().mark((function t(n,r){return eR().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.pendingPromise={resolve:n,reject:r},t.prev=1,t.next=4,e.resolver._initialize(e.auth);case 4:return e.eventManager=t.sent,t.next=7,e.onExecution();case 7:e.eventManager.registerConsumer(e),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),e.reject(t.t0);case 13:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(e,n){return t.apply(this,arguments)}}())}},{key:"onAuthEvent",value:function(){var e=nR(eR().mark((function e(t){var n,r,i,a,o,s,u;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.urlResponse,r=t.sessionId,i=t.postBody,a=t.tenantId,o=t.error,s=t.type,!o){e.next=4;break}return this.reject(o),e.abrupt("return");case 4:return u={auth:this.auth,requestUri:n,sessionId:r,tenantId:a||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState},e.prev=5,e.t0=this,e.next=9,this.getIdpTask(s)(u);case 9:e.t1=e.sent,e.t0.resolve.call(e.t0,e.t1),e.next=16;break;case 13:e.prev=13,e.t2=e.catch(5),this.reject(e.t2);case 16:case"end":return e.stop()}}),e,this,[[5,13]])})));return function(t){return e.apply(this,arguments)}}()},{key:"onError",value:function(e){this.reject(e)}},{key:"getIdpTask",value:function(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return sF;case"linkViaPopup":case"linkViaRedirect":return lF;case"reauthViaPopup":case"reauthViaRedirect":return uF;default:tN(this.auth,"internal-error")}}},{key:"resolve",value:function(e){sN(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}},{key:"reject",value:function(e){sN(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}},{key:"unregisterAndCleanUp",value:function(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}]),e}(),fF=new dN(2e3,1e4);var hF=function(e){ea(n,e);var t=aa(n);function n(e,r,i,a,o){var s;return Qi(this,n),(s=t.call(this,e,r,a,o)).provider=i,s.authWindow=null,s.pollId=null,n.currentPopupAction&&n.currentPopupAction.cancel(),n.currentPopupAction=ra(s),s}return Ji(n,[{key:"executeNotNull",value:function(){var e=nR(eR().mark((function e(){var t;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.execute();case 2:return aN(t=e.sent,this.auth,"internal-error"),e.abrupt("return",t);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"onExecution",value:function(){var e=nR(eR().mark((function e(){var t,n=this;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return sN(1===this.filter.length,"Popup operations only handle one event"),t=jD(),e.next=4,this.resolver._openPopup(this.auth,this.provider,this.filter[0],t);case 4:this.authWindow=e.sent,this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch((function(e){n.reject(e)})),this.resolver._isIframeWebStorageSupported(this.auth,(function(e){e||n.reject(nN(n.auth,"web-storage-unsupported"))})),this.pollUserCancellation();case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"eventId",get:function(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}},{key:"cancel",value:function(){this.reject(nN(this.auth,"cancelled-popup-request"))}},{key:"cleanUp",value:function(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,n.currentPopupAction=null}},{key:"pollUserCancellation",value:function(){var e=this;!function t(){var n,r;(null===(r=null===(n=e.authWindow)||void 0===n?void 0:n.window)||void 0===r?void 0:r.closed)?e.pollId=window.setTimeout((function(){e.pollId=null,e.reject(nN(e.auth,"popup-closed-by-user"))}),8e3):e.pollId=window.setTimeout(t,fF.get())}()}}]),n}(dF);hF.currentPopupAction=null;var pF="pendingRedirect",vF=new Map,gF=function(e){ea(n,e);var t=aa(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Qi(this,n),(i=t.call(this,e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],r,void 0,a)).eventId=null,i}return Ji(n,[{key:"execute",value:function(){var e=nR(eR().mark((function e(){var t,r;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=vF.get(this.auth._key())){e.next=21;break}return e.prev=2,e.next=5,mF(this.resolver,this.auth);case 5:if(!e.sent){e.next=12;break}return e.next=9,ZI(ta(n.prototype),"execute",this).call(this);case 9:e.t0=e.sent,e.next=13;break;case 12:e.t0=null;case 13:r=e.t0,t=function(){return Promise.resolve(r)},e.next=20;break;case 17:e.prev=17,e.t1=e.catch(2),t=function(){return Promise.reject(e.t1)};case 20:vF.set(this.auth._key(),t);case 21:return this.bypassAuthState||vF.set(this.auth._key(),(function(){return Promise.resolve(null)})),e.abrupt("return",t());case 23:case"end":return e.stop()}}),e,this,[[2,17]])})));return function(){return e.apply(this,arguments)}}()},{key:"onAuthEvent",value:function(){var e=nR(eR().mark((function e(t){var r;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("signInViaRedirect"!==t.type){e.next=4;break}return e.abrupt("return",ZI(ta(n.prototype),"onAuthEvent",this).call(this,t));case 4:if("unknown"!==t.type){e.next=7;break}return this.resolve(null),e.abrupt("return");case 7:if(!t.eventId){e.next=17;break}return e.next=10,this.auth._redirectUserForId(t.eventId);case 10:if(!(r=e.sent)){e.next=16;break}return this.user=r,e.abrupt("return",ZI(ta(n.prototype),"onAuthEvent",this).call(this,t));case 16:this.resolve(null);case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"onExecution",value:function(){var e=nR(eR().mark((function e(){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"cleanUp",value:function(){}}]),n}(dF);function mF(e,t){return yF.apply(this,arguments)}function yF(){return yF=nR(eR().mark((function e(t,n){var r,i,a;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=wF(n),i=xF(t),e.next=4,i._isAvailable();case 4:if(e.sent){e.next=6;break}return e.abrupt("return",!1);case 6:return e.next=8,i._get(r);case 8:return e.t0=e.sent,a="true"===e.t0,e.next=12,i._remove(r);case 12:return e.abrupt("return",a);case 13:case"end":return e.stop()}}),e)}))),yF.apply(this,arguments)}function bF(e,t){vF.set(e._key(),t)}function xF(e){return XN(e._redirectPersistence)}function wF(e){return QN(pF,e.config.apiKey,e.name)}function kF(e,t){return SF.apply(this,arguments)}function SF(){return SF=nR(eR().mark((function e(t,n){var r,i,a,o,s,u=arguments;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=u.length>2&&void 0!==u[2]&&u[2],i=SL(t),a=aF(i,n),o=new gF(i,a,r),e.next=6,o.execute();case 6:if(!(s=e.sent)||r){e.next=13;break}return delete s.user._redirectEventId,e.next=11,i._persistUserIfCurrent(s.user);case 11:return e.next=13,i._setRedirectUser(null,n);case 13:return e.abrupt("return",s);case 14:case"end":return e.stop()}}),e)}))),SF.apply(this,arguments)}var _F=function(){function e(t){Qi(this,e),this.auth=t,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}return Ji(e,[{key:"registerConsumer",value:function(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}},{key:"unregisterConsumer",value:function(e){this.consumers.delete(e)}},{key:"onEvent",value:function(e){var t=this;if(this.hasEventBeenHandled(e))return!1;var n=!1;return this.consumers.forEach((function(r){t.isEventForConsumer(e,r)&&(n=!0,t.sendToConsumer(e,r),t.saveEventToCache(e))})),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return CF(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}},{key:"sendToConsumer",value:function(e,t){var n;if(e.error&&!CF(e)){var r=(null===(n=e.error.code)||void 0===n?void 0:n.split("auth/")[1])||"internal-error";t.onError(nN(this.auth,r))}else t.onAuthEvent(e)}},{key:"isEventForConsumer",value:function(e,t){var n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}},{key:"hasEventBeenHandled",value:function(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(EF(e))}},{key:"saveEventToCache",value:function(e){this.cachedEventUids.add(EF(e)),this.lastProcessedEventTime=Date.now()}}]),e}();function EF(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter((function(e){return e})).join("-")}function CF(e){var t=e.type,n=e.error;return"unknown"===t&&(null===n||void 0===n?void 0:n.code)==="auth/".concat("no-auth-event")}function OF(e){return TF.apply(this,arguments)}function TF(){return TF=nR(eR().mark((function e(t){var n,r=arguments;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},e.abrupt("return",mN(t,"GET","/v1/projects",n));case 2:case"end":return e.stop()}}),e)}))),TF.apply(this,arguments)}var PF=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,jF=/^https?/;function AF(){return(AF=nR(eR().mark((function e(t){var n,r,i,a,o;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.config.emulator){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,OF(t);case 4:n=e.sent,r=n.authorizedDomains,i=st(r),e.prev=7,i.s();case 9:if((a=i.n()).done){e.next=20;break}if(o=a.value,e.prev=11,!IF(o)){e.next=14;break}return e.abrupt("return");case 14:e.next=18;break;case 16:e.prev=16,e.t0=e.catch(11);case 18:e.next=9;break;case 20:e.next=25;break;case 22:e.prev=22,e.t1=e.catch(7),i.e(e.t1);case 25:return e.prev=25,i.f(),e.finish(25);case 28:tN(t,"unauthorized-domain");case 29:case"end":return e.stop()}}),e,null,[[7,22,25,28],[11,16]])})))).apply(this,arguments)}function IF(e){var t=uN(),n=new URL(t),r=n.protocol,i=n.hostname;if(e.startsWith("chrome-extension://")){var a=new URL(e);return""===a.hostname&&""===i?"chrome-extension:"===r&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===r&&a.hostname===i}if(!jF.test(r))return!1;if(PF.test(e))return i===e;var o=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+o+"|"+o+")$","i").test(i)}var RF=new dN(3e4,6e4);function MF(){var e=ID().___jsl;if(null===e||void 0===e?void 0:e.H)for(var t=0,n=Object.keys(e.H);t3&&void 0!==arguments[3]?arguments[3]:YF,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:KF,a=Math.max((window.screen.availHeight-i)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString(),s="",u=Object.assign(Object.assign({},qF),{width:r.toString(),height:i.toString(),top:a,left:o}),l=pR().toLowerCase();n&&(s=rL(l)?GF:n),tL(l)&&(t=t||XF,u.scrollbars="yes");var c=Object.entries(u).reduce((function(e,t){var n=Qe(t,2),r=n[0],i=n[1];return"".concat(e).concat(r,"=").concat(i,",")}),"");if(function(){var e;return uL(arguments.length>0&&void 0!==arguments[0]?arguments[0]:pR())&&!!(null===(e=window.navigator)||void 0===e?void 0:e.standalone)}(l)&&"_self"!==s)return function(e,t){var n=document.createElement("a");n.href=e,n.target=t;var r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}(t||"",s),new $F(null);var d=window.open(t||"",s,c);aN(d,e,"popup-blocked");try{d.focus()}catch(eO){}return new $F(d)}var QF="__/auth/handler",ZF="emulator/auth/handler",ez=encodeURIComponent("fac");function tz(e,t,n,r,i,a){return nz.apply(this,arguments)}function nz(){return nz=nR(eR().mark((function e(t,n,r,i,a,o){var s,u,l,c,d,f,h,p,v,g,m,y,b;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(aN(t.config.authDomain,t,"auth-domain-config-required"),aN(t.config.apiKey,t,"invalid-api-key"),s={apiKey:t.config.apiKey,appName:t.name,authType:r,redirectUrl:i,v:OM,eventId:a},n instanceof $L)for(n.setDefaultLanguage(t.languageCode),s.providerId=n.providerId||"",wR(n.getCustomParameters())||(s.customParameters=JSON.stringify(n.getCustomParameters())),u=0,l=Object.entries(o||{});u0&&(s.scopes=h.join(",")),t.tenantId&&(s.tid=t.tenantId),p=s,v=0,g=Object.keys(p);v0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}]),e}();var gz,mz=fR("authIdTokenMaxAge")||300,yz=null,bz=function(e){return function(){var t=nR(eR().mark((function t(n){var r,i,a;return eR().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=n,!t.t0){t.next=5;break}return t.next=4,n.getIdTokenResult();case 4:t.t0=t.sent;case 5:if(r=t.t0,!((i=r&&((new Date).getTime()-Date.parse(r.issuedAtTime))/1e3)&&i>mz)){t.next=9;break}return t.abrupt("return");case 9:if(a=null===r||void 0===r?void 0:r.token,yz!==a){t.next=12;break}return t.abrupt("return");case 12:return yz=a,t.next=15,fetch(e,{method:a?"POST":"DELETE",headers:a?{Authorization:"Bearer ".concat(a)}:{}});case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()};function xz(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:PM(),t=SM(e,"auth");if(t.isInitialized())return t.getImmediate();var n=function(e,t){var n=SM(e,"auth");if(n.isInitialized()){var r=n.getImmediate();if(kR(n.getOptions(),null!==t&&void 0!==t?t:{}))return r;tN(r,"already-initialized")}return n.initialize({options:t})}(e,{popupRedirectResolver:oz,persistence:[QD,ED,OD]}),r=fR("authTokenSyncURL");if(r){var i=bz(r);!function(e,t,n){MR(e).beforeAuthStateChanged(t,n)}(n,i,(function(){return i(n.currentUser)})),function(e,t,n,r){MR(e).onIdTokenChanged(t,n,r)}(n,(function(e){return i(e)}))}var a=cR("auth");return a&&EL(n,"http://".concat(a)),n}gz="Browser",kM(new NR("auth",(function(e,t){var n=t.options,r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),a=e.getProvider("app-check-internal"),o=r.options,s=o.apiKey,u=o.authDomain;aN(s&&!s.includes(":"),"invalid-api-key",{appName:r.name});var l={apiKey:s,authDomain:u,clientPlatform:gz,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:dL(gz)},c=new kL(r,i,a,l);return function(e,t){var n=(null===t||void 0===t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(XN);(null===t||void 0===t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null===t||void 0===t?void 0:t.popupRedirectResolver)}(c,n),c}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((function(e,t,n){e.getProvider("auth-internal").initialize()}))),kM(new NR("auth-internal",(function(e){return function(e){return new vz(e)}(SL(e.getProvider("auth").getImmediate()))}),"PRIVATE").setInstantiationMode("EXPLICIT")),jM(hz,pz,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(gz)),jM(hz,pz,"esm2017");jM("firebase","9.22.2","app");var wz,kz,Sz=function(e,t){return t.some((function(t){return e instanceof t}))};var _z=new WeakMap,Ez=new WeakMap,Cz=new WeakMap,Oz=new WeakMap,Tz=new WeakMap;var Pz={get:function(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return Ez.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Cz.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Iz(e[t])},set:function(e,t,n){return e[t]=n,!0},has:function(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function jz(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(kz||(kz=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i1?u-1:0),c=1;c=500&&n.status<600)){e.next=5;break}return e.abrupt("return",t());case 5:return e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function rB(e,t){return iB.apply(this,arguments)}function iB(){return iB=nR(eR().mark((function e(t,n){var r,i,a,o,s,u,l,c,d,f,h,p;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.appConfig,i=t.heartbeatServiceProvider,a=n.fid,o=Xz(r),s=Zz(r),!(u=i.getImmediate({optional:!0}))){e.next=10;break}return e.next=8,u.getHeartbeatsHeader();case 8:(l=e.sent)&&s.append("x-firebase-client",l);case 10:return c={fid:a,authVersion:Wz,appId:r.appId,sdkVersion:Uz},d={method:"POST",headers:s,body:JSON.stringify(c)},e.next=14,tB((function(){return fetch(o,d)}));case 14:if(!(f=e.sent).ok){e.next=23;break}return e.next=18,f.json();case 18:return h=e.sent,p={fid:h.fid||a,registrationStatus:2,refreshToken:h.refreshToken,authToken:$z(h.authToken)},e.abrupt("return",p);case 23:return e.next=25,Jz("Create Installation",f);case 25:throw e.sent;case 26:case"end":return e.stop()}}),e)}))),iB.apply(this,arguments)}function aB(e){return new Promise((function(t){setTimeout(t,e)}))}var oB=/^[cdef][\w-]{21}$/,sB="";function uB(){try{var e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;var t=function(e){var t=(n=e,btoa(String.fromCharCode.apply(String,lt(n))).replace(/\+/g,"-").replace(/\//g,"_"));var n;return t.substr(0,22)}(e);return oB.test(t)?t:sB}catch(mo){return sB}}function lB(e){return"".concat(e.appName,"!").concat(e.appId)}var cB=new Map;function dB(e,t){var n=lB(e);fB(n,t),function(e,t){var n=pB();n&&n.postMessage({key:e,fid:t});vB()}(n,t)}function fB(e,t){var n=cB.get(e);if(n){var r,i=st(n);try{for(i.s();!(r=i.n()).done;){(0,r.value)(t)}}catch(r0){i.e(r0)}finally{i.f()}}}var hB=null;function pB(){return!hB&&"BroadcastChannel"in self&&((hB=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(e){fB(e.data.key,e.data.fid)}),hB}function vB(){0===cB.size&&hB&&(hB.close(),hB=null)}var gB="firebase-installations-database",mB=1,yB="firebase-installations-store",bB=null;function xB(){return bB||(bB=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.blocked,i=n.upgrade,a=n.blocking,o=n.terminated,s=indexedDB.open(e,t),u=Iz(s);return i&&s.addEventListener("upgradeneeded",(function(e){i(Iz(s.result),e.oldVersion,e.newVersion,Iz(s.transaction))})),r&&s.addEventListener("blocked",(function(){return r()})),u.then((function(e){o&&e.addEventListener("close",(function(){return o()})),a&&e.addEventListener("versionchange",(function(){return a()}))})).catch((function(){})),u}(gB,mB,{upgrade:function(e,t){if(0===t)e.createObjectStore(yB)}})),bB}function wB(e,t){return kB.apply(this,arguments)}function kB(){return kB=nR(eR().mark((function e(t,n){var r,i,a,o,s;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=lB(t),e.next=3,xB();case 3:return i=e.sent,a=i.transaction(yB,"readwrite"),o=a.objectStore(yB),e.next=8,o.get(r);case 8:return s=e.sent,e.next=11,o.put(n,r);case 11:return e.next=13,a.done;case 13:return s&&s.fid===n.fid||dB(t,n.fid),e.abrupt("return",n);case 15:case"end":return e.stop()}}),e)}))),kB.apply(this,arguments)}function SB(e){return _B.apply(this,arguments)}function _B(){return _B=nR(eR().mark((function e(t){var n,r,i;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=lB(t),e.next=3,xB();case 3:return r=e.sent,i=r.transaction(yB,"readwrite"),e.next=7,i.objectStore(yB).delete(n);case 7:return e.next=9,i.done;case 9:case"end":return e.stop()}}),e)}))),_B.apply(this,arguments)}function EB(e,t){return CB.apply(this,arguments)}function CB(){return CB=nR(eR().mark((function e(t,n){var r,i,a,o,s,u;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=lB(t),e.next=3,xB();case 3:return i=e.sent,a=i.transaction(yB,"readwrite"),o=a.objectStore(yB),e.next=8,o.get(r);case 8:if(s=e.sent,void 0!==(u=n(s))){e.next=15;break}return e.next=13,o.delete(r);case 13:e.next=17;break;case 15:return e.next=17,o.put(u,r);case 17:return e.next=19,a.done;case 19:return!u||s&&s.fid===u.fid||dB(t,u.fid),e.abrupt("return",u);case 21:case"end":return e.stop()}}),e)}))),CB.apply(this,arguments)}function OB(e){return TB.apply(this,arguments)}function TB(){return(TB=nR(eR().mark((function e(t){var n,r;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,EB(t.appConfig,(function(e){var r=PB(e),i=jB(t,r);return n=i.registrationPromise,i.installationEntry}));case 2:if((r=e.sent).fid!==sB){e.next=8;break}return e.next=6,n;case 6:return e.t0=e.sent,e.abrupt("return",{installationEntry:e.t0});case 8:return e.abrupt("return",{installationEntry:r,registrationPromise:n});case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function PB(e){return NB(e||{fid:uB(),registrationStatus:0})}function jB(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(Kz.create("app-offline"))};var n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=function(e,t){return AB.apply(this,arguments)}(e,n);return{installationEntry:n,registrationPromise:r}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:IB(e)}:{installationEntry:t}}function AB(){return(AB=nR(eR().mark((function e(t,n){var r;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,rB(t,n);case 3:return r=e.sent,e.abrupt("return",wB(t.appConfig,r));case 7:if(e.prev=7,e.t0=e.catch(0),!Gz(e.t0)||409!==e.t0.customData.serverCode){e.next=14;break}return e.next=12,SB(t.appConfig);case 12:e.next=16;break;case 14:return e.next=16,wB(t.appConfig,{fid:n.fid,registrationStatus:0});case 16:throw e.t0;case 17:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function IB(e){return RB.apply(this,arguments)}function RB(){return(RB=nR(eR().mark((function e(t){var n,r,i,a;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,MB(t.appConfig);case 2:n=e.sent;case 3:if(1!==n.registrationStatus){e.next=11;break}return e.next=6,aB(100);case 6:return e.next=8,MB(t.appConfig);case 8:n=e.sent,e.next=3;break;case 11:if(0!==n.registrationStatus){e.next=22;break}return e.next=14,OB(t);case 14:if(r=e.sent,i=r.installationEntry,!(a=r.registrationPromise)){e.next=21;break}return e.abrupt("return",a);case 21:return e.abrupt("return",i);case 22:return e.abrupt("return",n);case 23:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function MB(e){return EB(e,(function(e){if(!e)throw Kz.create("installation-not-found");return NB(e)}))}function NB(e){return 1===(t=e).registrationStatus&&t.registrationTime+Vz1&&void 0!==o[1]&&o[1],e.next=3,EB(t.appConfig,(function(e){if(!YB(e))throw Kz.create("not-registered");var i=e.authToken;if(!n&&KB(i))return e;if(1===i.requestStatus)return r=VB(t,n),e;if(!navigator.onLine)throw Kz.create("app-offline");var a=GB(e);return r=HB(t,a),a}));case 3:if(i=e.sent,!r){e.next=10;break}return e.next=7,r;case 7:e.t0=e.sent,e.next=11;break;case 10:e.t0=i.authToken;case 11:return a=e.t0,e.abrupt("return",a);case 13:case"end":return e.stop()}}),e)}))),BB.apply(this,arguments)}function VB(e,t){return UB.apply(this,arguments)}function UB(){return(UB=nR(eR().mark((function e(t,n){var r,i;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,WB(t.appConfig);case 2:r=e.sent;case 3:if(1!==r.authToken.requestStatus){e.next=11;break}return e.next=6,aB(100);case 6:return e.next=8,WB(t.appConfig);case 8:r=e.sent,e.next=3;break;case 11:if(0!==(i=r.authToken).requestStatus){e.next=16;break}return e.abrupt("return",zB(t,n));case 16:return e.abrupt("return",i);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function WB(e){return EB(e,(function(e){if(!YB(e))throw Kz.create("not-registered");var t,n=e.authToken;return 1===(t=n).requestStatus&&t.requestTime+Vz1&&void 0!==a[1]&&a[1],r=t,e.next=4,JB(r);case 4:return e.next=6,zB(r,n);case 6:return i=e.sent,e.abrupt("return",i.token);case 8:case"end":return e.stop()}}),e)}))),$B.apply(this,arguments)}function JB(e){return QB.apply(this,arguments)}function QB(){return(QB=nR(eR().mark((function e(t){var n,r;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,OB(t);case 2:if(n=e.sent,!(r=n.registrationPromise)){e.next=7;break}return e.next=7,r;case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ZB(e){return Kz.create("missing-app-config-values",{valueName:e})}var eV,tV="installations",nV="installations-internal",rV=function(e){var t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw ZB("App Configuration");if(!e.name)throw ZB("App Name");for(var t=0,n=["projectId","apiKey","appId"];t1?o-1:0),u=1;u0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;Qi(this,e),this.throttleMetadata=t,this.intervalMillis=n}return Ji(e,[{key:"getThrottleMetadata",value:function(e){return this.throttleMetadata[e]}},{key:"setThrottleMetadata",value:function(e,t){this.throttleMetadata[e]=t}},{key:"deleteThrottleMetadata",value:function(e){delete this.throttleMetadata[e]}}]),e}(),EV=new _V;function CV(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}function OV(e){return TV.apply(this,arguments)}function TV(){return TV=nR(eR().mark((function e(t){var n,r,i,a,o,s,u,l;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.appId,i=t.apiKey,a={method:"GET",headers:CV(i)},o=lV.replace("{app-id}",r),e.next=5,fetch(o,a);case 5:if(200===(s=e.sent).status||304===s.status){e.next=18;break}return u="",e.prev=8,e.next=11,s.json();case 11:l=e.sent,(null===(n=l.error)||void 0===n?void 0:n.message)&&(u=l.error.message),e.next=17;break;case 15:e.prev=15,e.t0=e.catch(8);case 17:throw hV.create("config-fetch-failed",{httpStatus:s.status,responseMessage:u});case 18:return e.abrupt("return",s.json());case 19:case"end":return e.stop()}}),e,null,[[8,15]])}))),TV.apply(this,arguments)}function PV(e){return jV.apply(this,arguments)}function jV(){return jV=nR(eR().mark((function e(t){var n,r,i,a,o,s,u,l,c=arguments;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=c.length>1&&void 0!==c[1]?c[1]:EV,r=c.length>2?c[2]:void 0,i=t.options,a=i.appId,o=i.apiKey,s=i.measurementId,a){e.next=5;break}throw hV.create("no-app-id");case 5:if(o){e.next=9;break}if(!s){e.next=8;break}return e.abrupt("return",{measurementId:s,appId:a});case 8:throw hV.create("no-api-key");case 9:return u=n.getThrottleMetadata(a)||{backoffCount:0,throttleEndTimeMillis:Date.now()},l=new DV,setTimeout(nR(eR().mark((function e(){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l.abort();case 1:case"end":return e.stop()}}),e)}))),void 0!==r?r:uV),e.abrupt("return",AV({appId:a,apiKey:o,measurementId:s},u,l,n));case 13:case"end":return e.stop()}}),e)}))),jV.apply(this,arguments)}function AV(e,t,n){return IV.apply(this,arguments)}function IV(){return IV=nR(eR().mark((function e(t,n,r){var i,a,o,s,u,l,c,d,f,h,p=arguments;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.throttleEndTimeMillis,a=n.backoffCount,o=p.length>3&&void 0!==p[3]?p[3]:EV,u=t.appId,l=t.measurementId,e.prev=3,e.next=6,RV(r,i);case 6:e.next=14;break;case 8:if(e.prev=8,e.t0=e.catch(3),!l){e.next=13;break}return dV.warn("Timed out fetching this Firebase app's measurement ID from the server."+" Falling back to the measurement ID ".concat(l)+' provided in the "measurementId" field in the local Firebase config. ['.concat(null===e.t0||void 0===e.t0?void 0:e.t0.message,"]")),e.abrupt("return",{appId:u,measurementId:l});case 13:throw e.t0;case 14:return e.prev=14,e.next=17,OV(t);case 17:return c=e.sent,o.deleteThrottleMetadata(u),e.abrupt("return",c);case 22:if(e.prev=22,e.t1=e.catch(14),MV(d=e.t1)){e.next=33;break}if(o.deleteThrottleMetadata(u),!l){e.next=32;break}return dV.warn("Failed to fetch this Firebase app's measurement ID from the server."+" Falling back to the measurement ID ".concat(l)+' provided in the "measurementId" field in the local Firebase config. ['.concat(null===d||void 0===d?void 0:d.message,"]")),e.abrupt("return",{appId:u,measurementId:l});case 32:throw e.t1;case 33:return f=503===Number(null===(s=null===d||void 0===d?void 0:d.customData)||void 0===s?void 0:s.httpStatus)?RR(a,o.intervalMillis,SV):RR(a,o.intervalMillis),h={throttleEndTimeMillis:Date.now()+f,backoffCount:a+1},o.setThrottleMetadata(u,h),dV.debug("Calling attemptFetch again in ".concat(f," millis")),e.abrupt("return",AV(t,h,r,o));case 38:case"end":return e.stop()}}),e,null,[[3,8],[14,22]])}))),IV.apply(this,arguments)}function RV(e,t){return new Promise((function(n,r){var i=Math.max(t-Date.now(),0),a=setTimeout(n,i);e.addEventListener((function(){clearTimeout(a),r(hV.create("fetch-throttle",{throttleEndTimeMillis:t}))}))}))}function MV(e){if(!(e instanceof yR)||!e.customData)return!1;var t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}var NV,LV,DV=function(){function e(){Qi(this,e),this.listeners=[]}return Ji(e,[{key:"addEventListener",value:function(e){this.listeners.push(e)}},{key:"abort",value:function(){this.listeners.forEach((function(e){return e()}))}}]),e}();function FV(){return FV=nR(eR().mark((function e(t,n,r,i,a){var o,s;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a||!a.global){e.next=5;break}return t("event",r,i),e.abrupt("return");case 5:return e.next=7,n;case 7:o=e.sent,s=Object.assign(Object.assign({},i),{send_to:o}),t("event",r,s);case 10:case"end":return e.stop()}}),e)}))),FV.apply(this,arguments)}function zV(e){LV=e}function BV(e){NV=e}function VV(){return UV.apply(this,arguments)}function UV(){return(UV=nR(eR().mark((function e(){return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(gR()){e.next=5;break}return dV.warn(hV.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),e.abrupt("return",!1);case 5:return e.prev=5,e.next=8,mR();case 8:e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(5),dV.warn(hV.create("indexeddb-unavailable",{errorInfo:null===e.t0||void 0===e.t0?void 0:e.t0.toString()}).message),e.abrupt("return",!1);case 14:return e.abrupt("return",!0);case 15:case"end":return e.stop()}}),e,null,[[5,10]])})))).apply(this,arguments)}function WV(){return WV=nR(eR().mark((function e(t,n,r,i,a,o,s){var u,l,c,d,f,h,p,v;return eR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(l=PV(t)).then((function(e){r[e.measurementId]=e.appId,t.options.measurementId&&e.measurementId!==t.options.measurementId&&dV.warn("The measurement ID in the local Firebase config (".concat(t.options.measurementId,")")+" does not match the measurement ID fetched from the server (".concat(e.measurementId,").")+" To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.")})).catch((function(e){return dV.error(e)})),n.push(l),c=VV().then((function(e){return e?i.getId():void 0})),e.next=6,Promise.all([l,c]);case 6:return d=e.sent,f=Qe(d,2),h=f[0],p=f[1],kV(o)||gV(o,h.measurementId),LV&&(a("consent","default",LV),zV(void 0)),a("js",new Date),(v=null!==(u=null===s||void 0===s?void 0:s.config)&&void 0!==u?u:{})[sV]="firebase",v.update=!0,null!=p&&(v[oV]=p),a("config",h.measurementId,v),NV&&(a("set",NV),BV(void 0)),e.abrupt("return",h.measurementId);case 20:case"end":return e.stop()}}),e)}))),WV.apply(this,arguments)}var HV,qV,YV=function(){function e(t){Qi(this,e),this.app=t}return Ji(e,[{key:"_delete",value:function(){return delete KV[this.app.options.appId],Promise.resolve()}}]),e}(),KV={},GV=[],XV={},$V="dataLayer",JV="gtag",QV=!1;function ZV(){var e=[];if(vR()&&e.push("This is a browser extension environment."),"undefined"!==typeof navigator&&navigator.cookieEnabled||e.push("Cookies are not available."),e.length>0){var t=e.map((function(e,t){return"(".concat(t+1,") ").concat(e)})).join(" "),n=hV.create("invalid-analytics-context",{errorInfo:t});dV.warn(n.message)}}function eU(e,t,n){ZV();var r=e.options.appId;if(!r)throw hV.create("no-app-id");if(!e.options.apiKey){if(!e.options.measurementId)throw hV.create("no-api-key");dV.warn('The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest'+" measurement ID for this Firebase app. Falling back to the measurement ID ".concat(e.options.measurementId)+' provided in the "measurementId" field in the local Firebase config.')}if(null!=KV[r])throw hV.create("already-exists",{id:r});if(!QV){!function(e){var t=[];Array.isArray(window[e])?t=window[e]:window[e]=t}($V);var i=wV(KV,GV,XV,$V,JV),a=i.wrappedGtag,o=i.gtagCore;qV=a,HV=o,QV=!0}return KV[r]=function(e,t,n,r,i,a,o){return WV.apply(this,arguments)}(e,GV,XV,t,HV,$V,n),new YV(e)}function tU(e,t,n,r){e=MR(e),function(e,t,n,r,i){return FV.apply(this,arguments)}(qV,KV[e.app.options.appId],t,n,r).catch((function(e){return dV.error(e)}))}var nU="@firebase/analytics",rU="0.10.0";kM(new NR(aV,(function(e,t){var n=t.options;return eU(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),n)}),"PUBLIC")),kM(new NR("analytics-internal",(function(e){try{var t=e.getProvider(aV).getImmediate();return{logEvent:function(e,n,r){return tU(t,e,n,r)}}}catch(eO){throw hV.create("interop-component-reg-failed",{reason:eO})}}),"PRIVATE")),jM(nU,rU),jM(nU,rU,"esm2017");var iU=TM({apiKey:"AIzaSyAa_hJ6cq2ZZbtZUI5__6yOkhxe14qP9wE",authDomain:"shiksha-b8390.firebaseapp.com",projectId:"shiksha-b8390",storageBucket:"shiksha-b8390.appspot.com",messagingSenderId:"183113807478",appId:"1:183113807478:web:197666b2474c38bb865157",measurementId:"G-JH8VJ4XFBL"}),aU=(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:PM(),t=SM(e=MR(e),aV);t.isInitialized()?t.getImmediate():function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=SM(e,aV);if(n.isInitialized()){var r=n.getImmediate();if(kR(t,n.getOptions()))return r;throw hV.create("already-initialized")}var i=n.initialize({options:t})}(e)}(iU),iU),oU=n.p+"static/media/bluelogo.5f2bad951af9d559682c.png";var sU=function(){var t=xz(aU),n=(0,Jx.h5)().speak,r=Qe((0,f.useState)(""),2),i=r[0],a=r[1],o=Qe((0,f.useState)(""),2),s=o[0],u=o[1],l=DC();return(0,f.useEffect)((function(){gD||yD?l("/home"):alert("Error!!")}),[]),(0,e.jsx)("div",{className:"App",children:(0,e.jsx)("div",{className:"flex min-h-full items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,e.jsxs)("div",{className:"w-full max-w-md space-y-8",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("img",{className:"mx-auto h-12 w-auto",src:oU,alt:"Shiksha Logo"}),(0,e.jsx)("h2",{className:"mt-6 text-center text-3xl font-bold tracking-tight text-gray-900",children:"Sign in to your account"}),(0,e.jsxs)("p",{className:"mt-2 text-center text-sm text-gray-600",children:["And"," ",(0,e.jsx)("a",{href:"/coursecat",className:"font-medium text-gray-500 hover:text-gray-900",children:"Get access to the courses"})]})]}),(0,e.jsxs)("form",{className:"mt-8 space-y-6",children:[(0,e.jsx)("input",{type:"hidden",name:"remember",defaultValue:"true"}),(0,e.jsxs)("div",{className:"rounded-md shadow-sm",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"sr-only",children:"Email address"}),(0,e.jsx)("input",{id:"email-address",name:"email",onMouseOver:function(){return n({text:"Enter your email"})},type:"email",autoComplete:"email",required:!0,className:"relative block w-full rounded-t-md border-0 py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",placeholder:" Email address",onChange:function(e){return a(e.target.value)}})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"sr-only",children:"Password"}),(0,e.jsx)("input",{id:"password",name:"password",onMouseOver:function(){return n({text:"Enter the password"})},type:"password",autoComplete:"current-password",required:!0,className:"relative block w-full rounded-b-md border-0 py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",placeholder:" Password",onChange:function(e){return u(e.target.value)}})]})]}),(0,e.jsx)("div",{className:"flex items-center justify-between",children:(0,e.jsxs)("div",{className:"flex items-center",children:[(0,e.jsx)("input",{id:"remember-me",name:"remember-me",type:"checkbox",className:"h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600"}),(0,e.jsx)("label",{htmlFor:"remember-me",className:"ml-2 block text-sm text-gray-900",children:"Remember me"})]})}),(0,e.jsxs)("div",{children:[(0,e.jsx)("button",{onMouseOver:function(){return n({text:"Create Account"})},className:"bg-transparent hover:bg-blue-500 text-gray-900 font-semibold hover:text-gray-500 py-2 px-4 border border-blue-500 rounded",onClick:function(){gD(t,i,s).then((function(e){var t=e.user;console.log(t),alert("Successfully created an account")})).catch((function(e){var t=e.code;e.message;alert(t)}))},children:"Create account"}),(0,e.jsx)("button",{onMouseOver:function(){return n({text:"Sign In"})},className:"bg-transparent mt-2 mb-2 ml-2 hover:bg-blue-500 text-gray-900 font-semibold hover:text-gray 500 py-2 px-4 border border-blue-500 hover:border-transparent rounded",onClick:function(){yD(t,i,s).then((function(e){var t=e.user;console.log(t),alert("You are now signed in")})).catch((function(e){var t=e.code;e.message;alert(t)}))},children:"Sign in"})]})]})]})})})};function uU(){var t=Qe(f.useState(!1),2),n=t[0],r=t[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("button",{className:"w-full h-full justify-center items-center flex overflow-x-hidden overflow-y-auto fixed bg-gray-800 text-white active:bg-gray-600 font-bold uppercase text-3xl px-6 py-3 shadow hover:shadow-lg outline-none focus:outline-none j ease-linear transition-all duration-150",type:"button",onClick:function(){return r(!0)},children:"Coming Soon!"}),n?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto fixed inset-0 z-50 outline-none focus:outline-none",children:(0,e.jsx)("div",{className:"relative w-auto my-6 mx-auto max-w-3xl",children:(0,e.jsxs)("div",{className:"border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none",children:[(0,e.jsxs)("div",{className:"flex items-start justify-between p-5 border-b border-solid border-slate-200 rounded-t",children:[(0,e.jsx)("h3",{className:"text-3xl font-bold",children:"COMING SOON..."}),(0,e.jsx)("button",{className:"p-1 ml-auto bg-transparent border-0 text-black opacity-5 float-right text-3xl leading-none font-semibold outline-none focus:outline-none",onClick:function(){return r(!1)}})]}),(0,e.jsxs)("div",{className:"relative p-6 flex-auto",children:[(0,e.jsx)("p",{className:"my-4 text-slate-500 text-lg leading-relaxed",children:"The Guide page is currently undergoing development. Our team is working diligently to ensure that this feature is fully operational as soon as possible."}),(0,e.jsx)("p",{className:"my-4 text-slate-500 text-lg leading-relaxed",children:"We appreciate your patience and understanding during this time. We will keep you updated on the progress and let you know as soon as the feature is available again."})]}),(0,e.jsx)("div",{className:"flex items-center justify-end p-6 border-t border-solid border-slate-200 rounded-b",children:(0,e.jsx)("button",{className:"bg-gray-800 text-white active:bg-gray-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150",type:"button",onClick:function(){return r(!1)},children:"Okay"})})]})})}),(0,e.jsx)("div",{className:"opacity-25 fixed inset-0 z-40 bg-black"})]}):null]})}function lU(e){return e+.5|0}var cU=function(e,t,n){return Math.max(Math.min(e,n),t)};function dU(e){return cU(lU(2.55*e),0,255)}function fU(e){return cU(lU(255*e),0,255)}function hU(e){return cU(lU(e/2.55)/100,0,1)}function pU(e){return cU(lU(100*e),0,100)}var vU={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},gU=lt("0123456789ABCDEF"),mU=function(e){return gU[15&e]},yU=function(e){return gU[(240&e)>>4]+gU[15&e]},bU=function(e){return(240&e)>>4===(15&e)},xU=function(e){return bU(e.r)&&bU(e.g)&&bU(e.b)&&bU(e.a)};var wU=function(e,t){return e<255?t(e):""};var kU=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function SU(e,t,n){var r=t*Math.min(n,1-n),i=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-r*Math.max(Math.min(i-3,9-i,1),-1)};return[i(0),i(8),i(4)]}function _U(e,t,n){var r=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+e/60)%6;return n-n*t*Math.max(Math.min(i,4-i,1),0)};return[r(5),r(3),r(1)]}function EU(e,t,n){var r,i=SU(e,1,.5);for(t+n>1&&(t*=r=1/(t+n),n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function CU(e){var t,n,r,i=e.r/255,a=e.g/255,o=e.b/255,s=Math.max(i,a,o),u=Math.min(i,a,o),l=(s+u)/2;return s!==u&&(r=s-u,n=l>.5?r/(2-s-u):r/(s+u),t=function(e,t,n,r,i){return e===i?(t-n)/r+(t>16&255,n>>8&255,255&n]}return a}(),AU.transparent=[0,0,0,0]);var t=AU[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}var NU=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;var LU=function(e){return e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055},DU=function(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)};function FU(e,t,n){if(e){var r=CU(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=TU(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function zU(e,t){return e?Object.assign(t||{},e):e}function BU(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=fU(e[3]))):(t=zU(e,{r:0,g:0,b:0,a:1})).a=fU(t.a),t}function VU(e){return"r"===e.charAt(0)?function(e){var t,n,r,i=NU.exec(e),a=255;if(i){if(i[7]!==t){var o=+i[7];a=i[8]?dU(o):cU(255*o,0,255)}return t=+i[1],n=+i[3],r=+i[5],{r:t=255&(i[2]?dU(t):cU(t,0,255)),g:n=255&(i[4]?dU(n):cU(n,0,255)),b:r=255&(i[6]?dU(r):cU(r,0,255)),a:a}}}(e):jU(e)}var UU=function(){function e(t){if(Qi(this,e),t instanceof e)return t;var n,r=typeof t;"object"===r?n=BU(t):"string"===r&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*vU[e[1]],g:255&17*vU[e[2]],b:255&17*vU[e[3]],a:5===n?17*vU[e[4]]:255}:7!==n&&9!==n||(t={r:vU[e[1]]<<4|vU[e[2]],g:vU[e[3]]<<4|vU[e[4]],b:vU[e[5]]<<4|vU[e[6]],a:9===n?vU[e[7]]<<4|vU[e[8]]:255})),t}(t)||MU(t)||VU(t)),this._rgb=n,this._valid=!!n}return Ji(e,[{key:"valid",get:function(){return this._valid}},{key:"rgb",get:function(){var e=zU(this._rgb);return e&&(e.a=hU(e.a)),e},set:function(e){this._rgb=BU(e)}},{key:"rgbString",value:function(){return this._valid?function(e){return e&&(e.a<255?"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(hU(e.a),")"):"rgb(".concat(e.r,", ").concat(e.g,", ").concat(e.b,")"))}(this._rgb):void 0}},{key:"hexString",value:function(){return this._valid?function(e){var t=xU(e)?mU:yU;return e?"#"+t(e.r)+t(e.g)+t(e.b)+wU(e.a,t):void 0}(this._rgb):void 0}},{key:"hslString",value:function(){return this._valid?function(e){if(e){var t=CU(e),n=t[0],r=pU(t[1]),i=pU(t[2]);return e.a<255?"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(hU(e.a),")"):"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)")}}(this._rgb):void 0}},{key:"mix",value:function(e,t){if(e){var n,r=this.rgb,i=e.rgb,a=t===n?.5:t,o=2*a-1,s=r.a-i.a,u=((o*s===-1?o:(o+s)/(1+o*s))+1)/2;n=1-u,r.r=255&u*r.r+n*i.r+.5,r.g=255&u*r.g+n*i.g+.5,r.b=255&u*r.b+n*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}},{key:"interpolate",value:function(e,t){return e&&(this._rgb=function(e,t,n){var r=DU(hU(e.r)),i=DU(hU(e.g)),a=DU(hU(e.b));return{r:fU(LU(r+n*(DU(hU(t.r))-r))),g:fU(LU(i+n*(DU(hU(t.g))-i))),b:fU(LU(a+n*(DU(hU(t.b))-a))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}},{key:"clone",value:function(){return new e(this.rgb)}},{key:"alpha",value:function(e){return this._rgb.a=fU(e),this}},{key:"clearer",value:function(e){return this._rgb.a*=1-e,this}},{key:"greyscale",value:function(){var e=this._rgb,t=lU(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}},{key:"opaquer",value:function(e){return this._rgb.a*=1+e,this}},{key:"negate",value:function(){var e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}},{key:"lighten",value:function(e){return FU(this._rgb,2,e),this}},{key:"darken",value:function(e){return FU(this._rgb,2,-e),this}},{key:"saturate",value:function(e){return FU(this._rgb,1,e),this}},{key:"desaturate",value:function(e){return FU(this._rgb,1,-e),this}},{key:"rotate",value:function(e){return function(e,t){var n=CU(e);n[0]=PU(n[0]+t),n=TU(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}]),e}();function WU(){}var HU=function(){var e=0;return function(){return e++}}();function qU(e){return null===e||"undefined"===typeof e}function YU(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function KU(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function GU(e){return("number"===typeof e||e instanceof Number)&&isFinite(+e)}function XU(e,t){return GU(e)?e:t}function $U(e,t){return"undefined"===typeof e?t:e}var JU=function(e,t){return"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e};function QU(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)}function ZU(e,t,n,r){var i,a,o;if(YU(e))if(a=e.length,r)for(i=a-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;iu&&l3&&void 0!==arguments[3]?arguments[3]:1e-6;return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function FW(e,t,n){n=n||function(n){return e[n]1;)n(r=a+i>>1)?a=r:i=r;return{lo:a,hi:i}}var zW=function(e,t,n,r){return FW(e,n,r?function(r){var i=e[r][t];return i=n}))};var VW=["push","pop","shift","splice","unshift"];function UW(e,t){var n=e._chartjs;if(n){var r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(VW.forEach((function(t){delete e[t]})),delete e._chartjs)}}function WW(e){var t=new Set(e);return t.size===e.length?e:Array.from(t)}var HW="undefined"===typeof window?function(e){return e()}:window.requestAnimationFrame;function qW(e,t){var n=[],r=!1;return function(){for(var i=arguments.length,a=new Array(i),o=0;o=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){return $W(e)?e:JW(e,.075,.3)},easeOutElastic:function(e){return $W(e)?e:QW(e,.075,.3)},easeInOutElastic:function(e){var t=.1125;return $W(e)?e:e<.5?.5*JW(2*e,t,.45):.5+.5*QW(2*e-1,t,.45)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-ZW.easeOutBounce(1-e)},easeOutBounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*ZW.easeInBounce(2*e):.5*ZW.easeOutBounce(2*e-1)+.5}};function eH(e){if(e&&"object"===typeof e){var t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function tH(e){return eH(e)?e:new UU(e)}function nH(e){return eH(e)?e:new UU(e).saturate(.5).darken(.1).hexString()}var rH=["x","y","borderWidth","radius","tension"],iH=["color","borderColor","backgroundColor"];var aH=new Map;function oH(e,t,n){return function(e,t){t=t||{};var n=e+JSON.stringify(t),r=aH.get(n);return r||(r=new Intl.NumberFormat(e,t),aH.set(n,r)),r}(t,n).format(e)}var sH={values:function(e){return YU(e)?e:""+e},numeric:function(e,t,n){if(0===e)return"0";var r,i=this.chart.options.locale,a=e;if(n.length>1){var o=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(o<1e-4||o>1e15)&&(r="scientific"),a=function(e,t){var n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}var s=kW(Math.abs(a)),u=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:r,minimumFractionDigits:u,maximumFractionDigits:u};return Object.assign(l,this.options.ticks.format),oH(e,i,l)},logarithmic:function(e,t,n){if(0===e)return"0";var r=n[t].significand||e/Math.pow(10,Math.floor(kW(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?sH.numeric.call(this,e,t,n):""}};var uH={formatters:sH};var lH=Object.create(null),cH=Object.create(null);function dH(e,t){if(!t)return e;for(var n=t.split("."),r=0,i=n.length;rr&&(r=a),r}function gH(e,t,n,r){var i=(r=r||{}).data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;var o,s,u,l,c,d=0,f=n.length;for(o=0;on.length){for(o=0;o0&&e.stroke()}}function wH(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y5&&void 0!==arguments[5]?arguments[5]:{},u=YU(t)?t:[t],l=s.strokeWidth>0&&""!==s.strokeColor;for(e.save(),e.font=i.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),qU(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,s),a=0;a1&&void 0!==arguments[1]?arguments[1]:[""],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return e[0]},a=(arguments.length>2?arguments[2]:void 0)||e;"undefined"===typeof r&&(r=QH("_fallback",e));var o=(s(t={},Symbol.toStringTag,"Object"),s(t,"_cacheable",!0),s(t,"_scopes",e),s(t,"_rootScopes",a),s(t,"_fallback",r),s(t,"_getTarget",i),s(t,"override",(function(t){return VH([t].concat(lt(e)),n,a,r)})),t);return new Proxy(o,{deleteProperty:function(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get:function(t,r){return YH(t,r,(function(){return function(e,t,n,r){var i,a,o=st(t);try{for(o.s();!(a=o.n()).done;){var s=a.value;if("undefined"!==typeof(i=QH(HH(s,e),n)))return qH(e,i)?$H(n,r,e,i):i}}catch(r0){o.e(r0)}finally{o.f()}}(r,n,e,t)}))},getOwnPropertyDescriptor:function(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e[0])},has:function(e,t){return ZH(e).includes(t)},ownKeys:function(e){return ZH(e)},set:function(e,t,n){var r=e._storage||(e._storage=i());return e[t]=r[t]=n,delete e._keys,!0}})}function UH(e,t,n,r){var i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:WH(e,r),setContext:function(t){return UH(e,t,n,r)},override:function(i){return UH(e.override(i),t,n,r)}};return new Proxy(i,{deleteProperty:function(t,n){return delete t[n],delete e[n],!0},get:function(e,t,n){return YH(e,t,(function(){return function(e,t,n){var r=e._proxy,i=e._context,a=e._subProxy,o=e._descriptors,s=r[t];fW(s)&&o.isScriptable(t)&&(s=function(e,t,n,r){var i=n._proxy,a=n._context,o=n._subProxy,s=n._stack;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);var u=t(a,o||r);s.delete(e),qH(e,u)&&(u=$H(i._scopes,i,e,u));return u}(t,s,e,n));YU(s)&&s.length&&(s=function(e,t,n,r){var i=n._proxy,a=n._context,o=n._subProxy,s=n._descriptors;if("undefined"!==typeof a.index&&r(e))return t[a.index%t.length];if(KU(t[0])){var u=t,l=i._scopes.filter((function(e){return e!==u}));t=[];var c,d=st(u);try{for(d.s();!(c=d.n()).done;){var f=$H(l,i,e,c.value);t.push(UH(f,a,o&&o[e],s))}}catch(r0){d.e(r0)}finally{d.f()}}return t}(t,s,e,o.isIndexable));qH(t,s)&&(s=UH(s,i,a&&a[t],o));return s}(e,t,n)}))},getOwnPropertyDescriptor:function(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e)},has:function(t,n){return Reflect.has(e,n)},ownKeys:function(){return Reflect.ownKeys(e)},set:function(t,n,r){return e[n]=r,delete t[n],!0}})}function WH(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0},n=e._scriptable,r=void 0===n?t.scriptable:n,i=e._indexable,a=void 0===i?t.indexable:i,o=e._allKeys;return{allKeys:void 0===o?t.allKeys:o,scriptable:r,indexable:a,isScriptable:fW(r)?r:function(){return r},isIndexable:fW(a)?a:function(){return a}}}var HH=function(e,t){return e?e+cW(t):t},qH=function(e,t){return KU(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object)};function YH(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];var r=n();return e[t]=r,r}function KH(e,t,n){return fW(e)?e(t,n):e}var GH=function(e,t){return!0===e?t:"string"===typeof e?lW(t,e):void 0};function XH(e,t,n,r,i){var a,o=st(t);try{for(o.s();!(a=o.n()).done;){var s=a.value,u=GH(n,s);if(u){e.add(u);var l=KH(u._fallback,n,i);if("undefined"!==typeof l&&l!==n&&l!==r)return l}else if(!1===u&&"undefined"!==typeof r&&n!==r)return null}}catch(r0){o.e(r0)}finally{o.f()}return!1}function $H(e,t,n,r){var i=t._rootScopes,a=KH(t._fallback,n,r),o=[].concat(lt(e),lt(i)),s=new Set;s.add(r);var u=JH(s,o,n,a||n,r);return null!==u&&(("undefined"===typeof a||a===n||null!==(u=JH(s,o,a,u,r)))&&VH(Array.from(s),[""],i,a,(function(){return function(e,t,n){var r=e._getTarget();t in r||(r[t]={});var i=r[t];if(YU(i)&&KU(n))return n;return i||{}}(t,n,r)})))}function JH(e,t,n,r,i){for(;n;)n=XH(e,t,n,r,i);return n}function QH(e,t){var n,r=st(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i){var a=i[e];if("undefined"!==typeof a)return a}}}catch(r0){r.e(r0)}finally{r.f()}}function ZH(e){var t=e._keys;return t||(t=e._keys=function(e){var t,n=new Set,r=st(e);try{for(r.s();!(t=r.n()).done;){var i,a=t.value,o=st(Object.keys(a).filter((function(e){return!e.startsWith("_")})));try{for(o.s();!(i=o.n()).done;){var s=i.value;n.add(s)}}catch(r0){o.e(r0)}finally{o.f()}}}catch(r0){r.e(r0)}finally{r.f()}return Array.from(n)}(e._scopes)),t}function eq(e,t,n,r){var i,a,o,s,u=e.iScale,l=this._parsing.key,c=void 0===l?"r":l,d=new Array(r);for(i=0,a=r;i1&&void 0!==arguments[1]?arguments[1]:"x",a=rq(i),o=e.length,s=Array(o).fill(0),u=Array(o),l=nq(e,0);for(t=0;t2&&void 0!==arguments[2]?arguments[2]:"x",o=rq(a),s=e.length,u=nq(e,0),l=0;l0||t>0)&&(!n||!n.shadowRoot)};function vq(e,t){if("native"in e)return e;var n=t.canvas,r=t.currentDevicePixelRatio,i=dq(n),a="border-box"===i.boxSizing,o=hq(i,"padding"),s=hq(i,"border","width"),u=function(e,t){var n,r,i=e.touches,a=i&&i.length?i[0]:e,o=a.offsetX,s=a.offsetY,u=!1;if(pq(o,s,e.target))n=o,r=s;else{var l=t.getBoundingClientRect();n=a.clientX-l.left,r=a.clientY-l.top,u=!0}return{x:n,y:r,box:u}}(e,n),l=u.x,c=u.y,d=u.box,f=o.left+(d&&s.left),h=o.top+(d&&s.top),p=t.width,v=t.height;return a&&(p-=o.width+s.width,v-=o.height+s.height),{x:Math.round((l-f)/p*n.width/r),y:Math.round((c-h)/v*n.height/r)}}var gq=function(e){return Math.round(10*e)/10};function mq(e,t,n,r){var i=dq(e),a=hq(i,"margin"),o=cq(i.maxWidth,e,"clientWidth")||mW,s=cq(i.maxHeight,e,"clientHeight")||mW,u=function(e,t,n){var r,i;if(void 0===t||void 0===n){var a=lq(e);if(a){var o=a.getBoundingClientRect(),s=dq(a),u=hq(s,"border","width"),l=hq(s,"padding");t=o.width-l.width-u.width,n=o.height-l.height-u.height,r=cq(s.maxWidth,a,"clientWidth"),i=cq(s.maxHeight,a,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||mW,maxHeight:i||mW}}(e,t,n),l=u.width,c=u.height;if("content-box"===i.boxSizing){var d=hq(i,"border","width"),f=hq(i,"padding");l-=f.width+d.width,c-=f.height+d.height}return l=Math.max(0,l-a.width),c=Math.max(0,r?l/r:c-a.height),l=gq(Math.min(l,o,u.maxWidth)),c=gq(Math.min(c,s,u.maxHeight)),l&&!c&&(c=gq(l/2)),(void 0!==t||void 0!==n)&&r&&u.height&&c>u.height&&(c=u.height,l=gq(Math.floor(c*r))),{width:l,height:c}}function yq(e,t,n){var r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);var o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height="".concat(e.height,"px"),o.style.width="".concat(e.width,"px")),(e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a)&&(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0)}var bq=function(){var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(eO){}return e}();function xq(e,t){var n=function(e,t){return dq(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function wq(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function kq(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function Sq(e,t,n,r){var i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=wq(e,i,n),s=wq(i,a,n),u=wq(a,t,n),l=wq(o,s,n),c=wq(s,u,n);return wq(l,c,n)}var _q=function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}},Eq=function(){return{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}};function Cq(e,t,n){return e?_q(t,n):Eq()}function Oq(e,t){var n,r;"ltr"!==t&&"rtl"!==t||(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function Tq(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Pq(e){return"angle"===e?{between:NW,compare:RW,normalize:MW}:{between:DW,compare:function(e,t){return e-t},normalize:function(e){return e}}}function jq(e){var t=e.start,n=e.end,r=e.count;return{start:t%r,end:n%r,loop:e.loop&&(n-t+1)%r===0,style:e.style}}function Aq(e,t,n){if(!n)return[e];for(var r,i,a,o=n.property,s=n.start,u=n.end,l=t.length,c=Pq(o),d=c.compare,f=c.between,h=c.normalize,p=function(e,t,n){var r,i,a=n.property,o=n.start,s=n.end,u=Pq(a),l=u.between,c=u.normalize,d=t.length,f=e.start,h=e.end,p=e.loop;if(p){for(f+=d,h+=d,r=0,i=d;r0&&void 0!==arguments[0]?arguments[0]:Date.now(),n=0;this._charts.forEach((function(r,i){if(r.running&&r.items.length){for(var a,o=r.items,s=o.length-1,u=!1;s>=0;--s)(a=o[s])._active?(a._total>r.duration&&(r.duration=a._total),a.tick(t),u=!0):(o[s]=o[o.length-1],o.pop());u&&(i.draw(),e._notify(i,r,t,"progress")),o.length||(r.running=!1,e._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}})),this._lastDate=t,0===n&&(this._running=!1)}},{key:"_getAnims",value:function(e){var t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}},{key:"listen",value:function(e,t,n){this._getAnims(e).listeners[t].push(n)}},{key:"add",value:function(e,t){var n;t&&t.length&&(n=this._getAnims(e).items).push.apply(n,lt(t))}},{key:"has",value:function(e){return this._getAnims(e).items.length>0}},{key:"start",value:function(e){var t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((function(e,t){return Math.max(e,t._duration)}),0),this._refresh())}},{key:"running",value:function(e){if(!this._running)return!1;var t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}},{key:"stop",value:function(e){var t=this._charts.get(e);if(t&&t.items.length){for(var n=t.items,r=n.length-1;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}}},{key:"remove",value:function(e){return this._charts.delete(e)}}]),e}(),Dq=new Lq,Fq="transparent",zq={boolean:function(e,t,n){return n>.5?t:e},color:function(e,t,n){var r=tH(e||Fq),i=r.valid&&tH(t||Fq);return i&&i.valid?i.mix(r,n).hexString():t},number:function(e,t,n){return e+(t-e)*n}},Bq=function(){function e(t,n,r,i){Qi(this,e);var a=n[r];i=zH([t.to,i,a,t.from]);var o=zH([t.from,a,i]);this._active=!0,this._fn=t.fn||zq[t.type||typeof o],this._easing=ZW[t.easing]||ZW.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}return Ji(e,[{key:"active",value:function(){return this._active}},{key:"update",value:function(e,t,n){if(this._active){this._notify(!1);var r=this._target[this._prop],i=n-this._start,a=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=zH([e.to,t,r,e.from]),this._from=zH([e.from,r,t])}}},{key:"cancel",value:function(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}},{key:"tick",value:function(e){var t,n=e-this._start,r=this._duration,i=this._prop,a=this._from,o=this._loop,s=this._to;if(this._active=a!==s&&(o||n1?2-t:t,t=this._easing(Math.min(1,Math.max(0,t))),this._target[i]=this._fn(a,s,t))}},{key:"wait",value:function(){var e=this._promises||(this._promises=[]);return new Promise((function(t,n){e.push({res:t,rej:n})}))}},{key:"_notify",value:function(e){for(var t=e?"res":"rej",n=this._promises||[],r=0;r=0;--n){var u=o[n];if("$"!==u.charAt(0))if("options"!==u){var l=t[u],c=a[u],d=r.get(u);if(c){if(d&&c.active()){c.update(d,l,s);continue}c.cancel()}d&&d.duration?(a[u]=c=new Bq(d,e,u,l),i.push(c)):e[u]=l}else i.push.apply(i,lt(this._animateOptions(e,t)))}return i}},{key:"update",value:function(e,t){if(0!==this._properties.size){var n=this._createAnimations(e,t);return n.length?(Dq.add(this._chart,n),!0):void 0}Object.assign(e,t)}}]),e}();function Uq(e,t){var n=e&&e.options||{},r=n.reverse,i=void 0===n.min?t:0,a=void 0===n.max?t:0;return{start:r?a:i,end:r?i:a}}function Wq(e,t){var n,r,i=[],a=e._getSortedDatasetMetas(t);for(n=0,r=a.length;n3&&void 0!==arguments[3]?arguments[3]:{},u=e.keys,l="single"===s.mode;if(null!==t){for(r=0,i=u.length;r0||!n&&s<0)return o.index}}catch(r0){a.e(r0)}finally{a.f()}return null}function Gq(e,t){for(var n,r=e.chart,i=e._cachedMeta,a=r._stacks||(r._stacks={}),o=i.iScale,s=i.vScale,u=i.index,l=o.axis,c=s.axis,d=function(e,t,n){return"".concat(e.id,".").concat(t.id,".").concat(n.stack||n.type)}(o,s,i),f=t.length,h=0;h0&&a._parsed[e-1];if(!1===this._parsing)a._parsed=o,a._sorted=!0,i=o;else{i=YU(o[e])?this.parseArrayData(a,o,e,t):KU(o[e])?this.parseObjectData(a,o,e,t):this.parsePrimitiveData(a,o,e,t);for(n=0;nt||h=0;--n)if(!p()){this.updateRangeFromParsed(c,e,r,l);break}return c}},{key:"getAllParsedValues",value:function(e){var t,n,r,i=this._cachedMeta._parsed,a=[];for(t=0,n=i.length;t=0&&e1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2?arguments[2]:void 0,i="active"===n,a=this._cachedDataOpts,o=e+"-"+n,s=a[o],u=this.enableOptionSharing&&dW(r);if(s)return Qq(s,u);var l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),d=i?["".concat(e,"Hover"),"hover",e,""]:[e,""],f=l.getOptionScopes(this.getDataset(),c),h=Object.keys(pH.elements[e]),p=l.resolveNamedOptions(f,h,(function(){return t.getContext(r,i,n)}),d);return p.$shared&&(p.$shared=u,a[o]=Object.freeze(Qq(p,u))),p}},{key:"_resolveAnimations",value:function(e,t,n){var r,i=this.chart,a=this._cachedDataOpts,o="animation-".concat(t),s=a[o];if(s)return s;if(!1!==i.options.animation){var u=this.chart.config,l=u.datasetAnimationScopeKeys(this._type,t),c=u.getOptionScopes(this.getDataset(),l);r=u.createResolver(c,this.getContext(e,n,t))}var d=new Vq(i,r&&r.animations);return r&&r._cacheable&&(a[o]=Object.freeze(d)),d}},{key:"getSharedOptions",value:function(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}},{key:"includeOptions",value:function(e,t){return!t||Jq(e)||this.chart._animationsDisabled}},{key:"_getSharedOptions",value:function(e,t){var n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,i=this.getSharedOptions(n),a=this.includeOptions(t,i)||i!==r;return this.updateSharedOptions(i,t,n),{sharedOptions:i,includeOptions:a}}},{key:"updateElement",value:function(e,t,n,r){Jq(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}},{key:"updateSharedOptions",value:function(e,t,n){e&&!Jq(t)&&this._resolveAnimations(void 0,t).update(e,n)}},{key:"_setStyle",value:function(e,t,n,r){e.active=r;var i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}},{key:"removeHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!1)}},{key:"setHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!0)}},{key:"_removeDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}},{key:"_setDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}},{key:"_resyncElements",value:function(e){var t,n=this._data,r=this._cachedMeta.data,i=st(this._syncList);try{for(i.s();!(t=i.n()).done;){var a=Qe(t.value,3),o=a[0],s=a[1],u=a[2];this[o](s,u)}}catch(r0){i.e(r0)}finally{i.f()}this._syncList=[];var l=r.length,c=n.length,d=Math.min(c,l);d&&this.parse(0,d),c>l?this._insertElements(l,c-l,e):c2&&void 0!==arguments[2])||arguments[2],i=this._cachedMeta,a=i.data,o=e+t,s=function(e){for(e.length+=t,n=e.length-1;n>=o;n--)e[n]=e[n-t]};for(s(a),n=e;nMath.abs(s)&&(u=s,l=o),t[n.axis]=l,t._custom={barStart:u,barEnd:l,start:i,end:a,min:o,max:s}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function nY(e,t,n,r){var i,a,o,s,u=e.iScale,l=e.vScale,c=u.getLabels(),d=u===l,f=[];for(i=n,a=n+r;ie.x,n="left",r="right"):(t=e.base=n?1:-1)}(n,i,c)*l,p===c&&(y-=n/2);var b=i.getPixelForDecimal(0),x=i.getPixelForDecimal(1),w=Math.min(b,x),k=Math.max(b,x);t=(y=Math.max(Math.min(y,k),w))+n,a&&!h&&(d._stacks[i.axis]._visualValues[o]=i.getValueForPixel(t)-i.getValueForPixel(y))}if(y===i.getPixelForValue(c)){var S=SW(n)*i.getLineWidthForValue(c)/2;y+=S,n-=S}return{size:n,base:y,head:t,center:t+n/2}}},{key:"_calculateBarIndexPixels",value:function(e,t){var n,r,i=t.scale,a=this.options,o=a.skipNull,s=$U(a.maxBarThickness,1/0);if(t.grouped){var u=o?this._getStackCount(e):t.stackCount,l="flex"===a.barThickness?function(e,t,n,r){var i=t.pixels,a=i[e],o=e>0?i[e-1]:null,s=e=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart.data.labels||[],r=t.xScale,i=t.yScale,a=this.getParsed(e),o=r.getLabelForValue(a.x),s=i.getLabelForValue(a.y),u=a._custom;return{label:n[e]||"",value:"("+o+", "+s+(u?", "+u:"")+")"}}},{key:"update",value:function(e){var t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i="reset"===r,a=this._cachedMeta,o=a.iScale,s=a.vScale,u=this._getSharedOptions(t,r),l=u.sharedOptions,c=u.includeOptions,d=o.axis,f=s.axis,h=t;h0&&!isNaN(e)?vW*(Math.abs(e)/t):0}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=oH(t._parsed[e],n.options.locale);return{label:r[e]||"",value:i}}},{key:"getMaxBorderWidth",value:function(e){var t,n,r,i,a,o=0,s=this.chart;if(!e)for(t=0,n=s.data.datasets.length;t0&&this.getParsed(t-1),S=0;S=x)E.skip=!0;else{var C=this.getParsed(S),O=qU(C[p]),T=E[h]=o.getPixelForValue(C[h],S),P=E[p]=i||O?s.getBasePixel():s.getPixelForValue(u?this.applyStack(s,C,u):C[p],S);E.skip=isNaN(T)||isNaN(P)||O,E.stop=S>0&&Math.abs(C[h]-k[h])>y,m&&(E.parsed=C,E.raw=l.data[S]),f&&(E.options=d||this.resolveDataElementOptions(S,_.active?"active":r)),b||this.updateElement(_,S,E,r),k=C}}}},{key:"getMaxOverflow",value:function(){var e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;var i=r[0].size(this.resolveDataElementOptions(0)),a=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,a)/2}},{key:"draw",value:function(){var e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),ZI(ta(n.prototype),"draw",this).call(this)}}]),n}(Zq);s(dY,"id","line"),s(dY,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),s(dY,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});var fY=function(e){ea(n,e);var t=aa(n);function n(e,r){var i;return Qi(this,n),(i=t.call(this,e,r)).innerRadius=void 0,i.outerRadius=void 0,i}return Ji(n,[{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=oH(t._parsed[e].r,n.options.locale);return{label:r[e]||"",value:i}}},{key:"parseObjectData",value:function(e,t,n,r){return eq.bind(this)(e,t,n,r)}},{key:"update",value:function(e){var t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}},{key:"getMinMax",value:function(){var e=this,t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((function(t,r){var i=e.getParsed(r).r;!isNaN(i)&&e.chart.getDataVisibility(r)&&(in.max&&(n.max=i))})),n}},{key:"_updateRadius",value:function(){var e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),i=Math.max(r/2,0),a=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=i-a*this.index,this.innerRadius=this.outerRadius-a}},{key:"updateElements",value:function(e,t,n,r){var i,a="reset"===r,o=this.chart,s=o.options.animation,u=this._cachedMeta.rScale,l=u.xCenter,c=u.yCenter,d=u.getIndexAngle(0)-.5*pW,f=d,h=360/this.countVisibleElements();for(i=0;i0&&this.getParsed(t-1),w=t;w0&&Math.abs(S[h]-x[h])>y,m&&(_.parsed=S,_.raw=l.data[w]),f&&(_.options=d||this.resolveDataElementOptions(w,k.active?"active":r)),b||this.updateElement(k,w,_,r),x=S}this.updateSharedOptions(d,r,c)}},{key:"getMaxOverflow",value:function(){var e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){for(var n=0,r=t.length-1;r>=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}var i=e.dataset,a=i.options&&i.options.borderWidth||0;if(!t.length)return a;var o=t[0].size(this.resolveDataElementOptions(0)),s=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(a,o,s)/2}}]),n}(Zq);s(vY,"id","scatter"),s(vY,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),s(vY,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var gY=Object.freeze({__proto__:null,BarController:uY,BubbleController:lY,DoughnutController:cY,LineController:dY,PieController:hY,PolarAreaController:fY,RadarController:pY,ScatterController:vY});function mY(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var yY=function(){function e(t){Qi(this,e),s(this,"options",void 0),this.options=t||{}}return Ji(e,[{key:"init",value:function(){}},{key:"formats",value:function(){return mY()}},{key:"parse",value:function(){return mY()}},{key:"format",value:function(){return mY()}},{key:"add",value:function(){return mY()}},{key:"diff",value:function(){return mY()}},{key:"startOf",value:function(){return mY()}},{key:"endOf",value:function(){return mY()}}],[{key:"override",value:function(t){Object.assign(e.prototype,t)}}]),e}(),bY={_date:yY};function xY(e,t,n,r){var i=e.controller,a=e.data,o=e._sorted,s=i._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&o&&a.length){var u=s._reversePixels?BW:zW;if(!r)return u(a,t,n);if(i._sharedOptions){var l=a[0],c="function"===typeof l.getRange&&l.getRange(t);if(c){var d=u(a,t,n-c),f=u(a,t,n+c);return{lo:d.lo,hi:f.hi}}}}return{lo:0,hi:a.length-1}}function wY(e,t,n,r,i){for(var a=e.getSortedVisibleDatasetMetas(),o=n[t],s=0,u=a.length;s0){var u=s[0].datasetIndex,l=e.getDatasetMeta(u).data;s=[];for(var c=0;ci)return function(e,t,n,r){var i,a=0,o=n[0];for(r=Math.ceil(r),i=0;ii)return u}return Math.max(i,1)}(a,t,i);if(o>0){var d,f,h=o>1?Math.round((u-s)/(o-1)):null;for(aK(t,l,c,qU(h)?0:s-h,s),d=0,f=o-1;ds+u)))return l}function dK(e){return e.drawTicks?e.tickLength:0}function fK(e,t){if(!e.display)return 0;var n=FH(e.font,t),r=DH(e.padding);return(YU(e.text)?e.text.length:1)*n.lineHeight+r.height}function hK(e,t,n){var r=YW(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=oK(r)),r}var pK=function(e){ea(n,e);var t=aa(n);function n(e){var r;return Qi(this,n),(r=t.call(this)).id=e.id,r.type=e.type,r.options=void 0,r.ctx=e.ctx,r.chart=e.chart,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.width=void 0,r.height=void 0,r._margins={left:0,right:0,top:0,bottom:0},r.maxWidth=void 0,r.maxHeight=void 0,r.paddingTop=void 0,r.paddingBottom=void 0,r.paddingLeft=void 0,r.paddingRight=void 0,r.axis=void 0,r.labelRotation=void 0,r.min=void 0,r.max=void 0,r._range=void 0,r.ticks=[],r._gridLineItems=null,r._labelItems=null,r._labelSizes=null,r._length=0,r._maxLength=0,r._longestTextCache={},r._startPixel=void 0,r._endPixel=void 0,r._reversePixels=!1,r._userMax=void 0,r._userMin=void 0,r._suggestedMax=void 0,r._suggestedMin=void 0,r._ticksLength=0,r._borderValue=0,r._cache={},r._dataLimitsCached=!1,r.$context=void 0,r}return Ji(n,[{key:"init",value:function(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}},{key:"parse",value:function(e,t){return e}},{key:"getUserBounds",value:function(){var e=this._userMin,t=this._userMax,n=this._suggestedMin,r=this._suggestedMax;return e=XU(e,Number.POSITIVE_INFINITY),t=XU(t,Number.NEGATIVE_INFINITY),n=XU(n,Number.POSITIVE_INFINITY),r=XU(r,Number.NEGATIVE_INFINITY),{min:XU(e,n),max:XU(t,r),minDefined:GU(e),maxDefined:GU(t)}}},{key:"getMinMax",value:function(e){var t,n=this.getUserBounds(),r=n.min,i=n.max,a=n.minDefined,o=n.maxDefined;if(a&&o)return{min:r,max:i};for(var s=this.getMatchingVisibleMetas(),u=0,l=s.length;ui?i:r,XU(i=a&&r>i?r:i,r)),max:XU(i,XU(r,i))}}},{key:"getPadding",value:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}},{key:"getTicks",value:function(){return this.ticks}},{key:"getLabels",value:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}},{key:"getLabelItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.chart.chartArea;return this._labelItems||(this._labelItems=this._computeLabelItems(e))}},{key:"beforeLayout",value:function(){this._cache={},this._dataLimitsCached=!1}},{key:"beforeUpdate",value:function(){QU(this.options.beforeUpdate,[this])}},{key:"update",value:function(e,t,n){var r=this.options,i=r.beginAtZero,a=r.grace,o=r.ticks,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){var r=e.min,i=e.max,a=JU(t,(i-r)/2),o=function(e,t){return n&&0===e?0:e+t};return{min:o(r,-Math.abs(a)),max:o(i,a)}}(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();var u=s=s||a<=1||!this.isHorizontal())this.labelRotation=o;else{var l=this._getLabelSizes(),c=l.widest.width,d=l.highest.height,f=LW(this.chart.width-c,0,this.maxWidth);c+6>(e=r.offset?this.maxWidth/a:f/(a-1))&&(e=f/(a-(r.offset?.5:1)),t=this.maxHeight-dK(r.grid)-i.padding-fK(r.title,this.chart.options.font),n=Math.sqrt(c*c+d*d),u=PW(Math.min(Math.asin(LW((l.highest.height+6)/e,-1,1)),Math.asin(LW(t/n,-1,1))-Math.asin(LW(d/n,-1,1)))),u=Math.max(o,Math.min(s,u))),this.labelRotation=u}}},{key:"afterCalculateLabelRotation",value:function(){QU(this.options.afterCalculateLabelRotation,[this])}},{key:"afterAutoSkip",value:function(){}},{key:"beforeFit",value:function(){QU(this.options.beforeFit,[this])}},{key:"fit",value:function(){var e={width:0,height:0},t=this.chart,n=this.options,r=n.ticks,i=n.title,a=n.grid,o=this._isVisible(),s=this.isHorizontal();if(o){var u=fK(i,t.options.font);if(s?(e.width=this.maxWidth,e.height=dK(a)+u):(e.height=this.maxHeight,e.width=dK(a)+u),r.display&&this.ticks.length){var l=this._getLabelSizes(),c=l.first,d=l.last,f=l.widest,h=l.highest,p=2*r.padding,v=TW(this.labelRotation),g=Math.cos(v),m=Math.sin(v);if(s){var y=r.mirror?0:m*f.width+g*h.height;e.height=Math.min(this.maxHeight,e.height+y+p)}else{var b=r.mirror?0:g*f.width+m*h.height;e.width=Math.min(this.maxWidth,e.width+b+p)}this._calculatePadding(c,d,m,g)}}this._handleMargins(),s?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}},{key:"_calculatePadding",value:function(e,t,n,r){var i=this.options,a=i.ticks,o=a.align,s=a.padding,u=i.position,l=0!==this.labelRotation,c="top"!==u&&"x"===this.axis;if(this.isHorizontal()){var d=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1),h=0,p=0;l?c?(h=r*e.width,p=n*t.height):(h=n*e.height,p=r*t.width):"start"===o?p=t.width:"end"===o?h=e.width:"inner"!==o&&(h=e.width/2,p=t.width/2),this.paddingLeft=Math.max((h-d+s)*this.width/(this.width-d),0),this.paddingRight=Math.max((p-f+s)*this.width/(this.width-f),0)}else{var v=t.height/2,g=e.height/2;"start"===o?(v=0,g=e.height):"end"===o&&(v=t.height,g=0),this.paddingTop=v+s,this.paddingBottom=g+s}}},{key:"_handleMargins",value:function(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}},{key:"afterFit",value:function(){QU(this.options.afterFit,[this])}},{key:"isHorizontal",value:function(){var e=this.options,t=e.axis,n=e.position;return"top"===n||"bottom"===n||"x"===t}},{key:"isFullSize",value:function(){return this.options.fullSize}},{key:"_convertTicksToLabels",value:function(e){var t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;tt){for(n=0;nt.length-1?null:this.getPixelForValue(t[e].value)}},{key:"getPixelForDecimal",value:function(e){this._reversePixels&&(e=1-e);var t=this._startPixel+e*this._length;return LW(this._alignToPixels?mH(this.chart,t,0):t,-32768,32767)}},{key:"getDecimalForPixel",value:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}},{key:"getBasePixel",value:function(){return this.getPixelForValue(this.getBaseValue())}},{key:"getBaseValue",value:function(){var e=this.min,t=this.max;return e<0&&t<0?t:e>0&&t>0?e:0}},{key:"getContext",value:function(e){var t=this.ticks||[];if(e>=0&&eo*r?o/n:s/r:s*r0}},{key:"_computeGridLineItems",value:function(e){var t,n,r,i,a,o,s,u,l,c,d,f,h=this.axis,p=this.chart,v=this.options,g=v.grid,m=v.position,y=v.border,b=g.offset,x=this.isHorizontal(),w=this.ticks.length+(b?1:0),k=dK(g),S=[],_=y.setContext(this.getContext()),E=_.display?_.width:0,C=E/2,O=function(e){return mH(p,e,E)};if("top"===m)t=O(this.bottom),o=this.bottom-k,u=t-C,c=O(e.top)+C,f=e.bottom;else if("bottom"===m)t=O(this.top),c=e.top,f=O(e.bottom)-C,o=t+C,u=this.top+k;else if("left"===m)t=O(this.right),a=this.right-k,s=t-C,l=O(e.left)+C,d=e.right;else if("right"===m)t=O(this.left),l=e.left,d=O(e.right)-C,a=t+C,s=this.left+k;else if("x"===h){if("center"===m)t=O((e.top+e.bottom)/2+.5);else if(KU(m)){var T=Object.keys(m)[0],P=m[T];t=O(this.chart.scales[T].getPixelForValue(P))}c=e.top,f=e.bottom,u=(o=t+C)+k}else if("y"===h){if("center"===m)t=O((e.left+e.right)/2);else if(KU(m)){var j=Object.keys(m)[0],A=m[j];t=O(this.chart.scales[j].getPixelForValue(A))}s=(a=t-C)-k,l=e.left,d=e.right}var I=$U(v.ticks.maxTicksLimit,w),R=Math.max(1,Math.ceil(w/I));for(n=0;n=0?t.setContext(this.getContext(n)).lineWidth:0}},{key:"drawGrid",value:function(e){var t,n,r=this.options.grid,i=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e)),o=function(e,t,n){n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.stroke(),i.restore())};if(r.display)for(t=0,n=a.length;t1?t-1:0),r=1;r1&&kK(e[0].toLowerCase());if(s)return s}throw new Error("Cannot determine type of '".concat(e,"' axis. Please provide 'axis' or 'position' option."))}function EK(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function CK(e,t){var n=lH[e.type]||{scales:{}},r=t.scales||{},i=wK(e.type,t),a=Object.create(null);return Object.keys(r).forEach((function(t){var o=r[t];if(!KU(o))return console.error("Invalid scale configuration for scale: ".concat(t));if(o._proxy)return console.warn("Ignoring resolver passed as options for scale: ".concat(t));var s=_K(t,o,function(e,t){if(t.data&&t.data.datasets){var n=t.data.datasets.filter((function(t){return t.xAxisID===e||t.yAxisID===e}));if(n.length)return EK(e,"x",n[0])||EK(e,"y",n[0])}return{}}(t,e),pH.scales[o.type]),u=function(e,t){return e===t?"_index_":"_value_"}(s,i),l=n.scales||{};a[t]=aW(Object.create(null),[{axis:s},o,l[s],l[u]])})),e.data.datasets.forEach((function(n){var i=n.type||e.type,o=n.indexAxis||wK(i,t),s=(lH[i]||{}).scales||{};Object.keys(s).forEach((function(e){var t=function(e,t){var n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,o),i=n[t+"AxisID"]||t;a[i]=a[i]||Object.create(null),aW(a[i],[{axis:t},r[i],s[e]])}))})),Object.keys(a).forEach((function(e){var t=a[e];aW(t,[pH.scales[t.type],pH.scale])})),a}function OK(e){var t=e.options||(e.options={});t.plugins=$U(t.plugins,{}),t.scales=CK(e,t)}function TK(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}var PK=new Map,jK=new Set;function AK(e,t){var n=PK.get(e);return n||(n=t(),PK.set(e,n),jK.add(n)),n}var IK=function(e,t,n){var r=lW(t,n);void 0!==r&&e.add(r)},RK=function(){function e(t){Qi(this,e),this._config=function(e){return(e=e||{}).data=TK(e.data),OK(e),e}(t),this._scopeCache=new Map,this._resolverCache=new Map}return Ji(e,[{key:"platform",get:function(){return this._config.platform}},{key:"type",get:function(){return this._config.type},set:function(e){this._config.type=e}},{key:"data",get:function(){return this._config.data},set:function(e){this._config.data=TK(e)}},{key:"options",get:function(){return this._config.options},set:function(e){this._config.options=e}},{key:"plugins",get:function(){return this._config.plugins}},{key:"update",value:function(){var e=this._config;this.clearCache(),OK(e)}},{key:"clearCache",value:function(){this._scopeCache.clear(),this._resolverCache.clear()}},{key:"datasetScopeKeys",value:function(e){return AK(e,(function(){return[["datasets.".concat(e),""]]}))}},{key:"datasetAnimationScopeKeys",value:function(e,t){return AK("".concat(e,".transition.").concat(t),(function(){return[["datasets.".concat(e,".transitions.").concat(t),"transitions.".concat(t)],["datasets.".concat(e),""]]}))}},{key:"datasetElementScopeKeys",value:function(e,t){return AK("".concat(e,"-").concat(t),(function(){return[["datasets.".concat(e,".elements.").concat(t),"datasets.".concat(e),"elements.".concat(t),""]]}))}},{key:"pluginScopeKeys",value:function(e){var t=e.id,n=this.type;return AK("".concat(n,"-plugin-").concat(t),(function(){return[["plugins.".concat(t)].concat(lt(e.additionalOptionScopes||[]))]}))}},{key:"_cachedScopes",value:function(e,t){var n=this._scopeCache,r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}},{key:"getOptionScopes",value:function(e,t,n){var r=this.options,i=this.type,a=this._cachedScopes(e,n),o=a.get(t);if(o)return o;var s=new Set;t.forEach((function(t){e&&(s.add(e),t.forEach((function(t){return IK(s,e,t)}))),t.forEach((function(e){return IK(s,r,e)})),t.forEach((function(e){return IK(s,lH[i]||{},e)})),t.forEach((function(e){return IK(s,pH,e)})),t.forEach((function(e){return IK(s,cH,e)}))}));var u=Array.from(s);return 0===u.length&&u.push(Object.create(null)),jK.has(t)&&a.set(t,u),u}},{key:"chartOptionScopes",value:function(){var e=this.options,t=this.type;return[e,lH[t]||{},pH.datasets[t]||{},{type:t},pH,cH]}},{key:"resolveNamedOptions",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""],i={$shared:!0},a=MK(this._resolverCache,e,r),o=a.resolver,s=a.subPrefixes,u=o;(function(e,t){var n,r=WH(e),i=r.isScriptable,a=r.isIndexable,o=st(t);try{for(o.s();!(n=o.n()).done;){var s=n.value,u=i(s),l=a(s),c=(l||u)&&e[s];if(u&&(fW(c)||NK(c))||l&&YU(c))return!0}}catch(r0){o.e(r0)}finally{o.f()}return!1})(o,t)&&(i.$shared=!1,u=UH(o,n=fW(n)?n():n,this.createResolver(e,n,s)));var l,c=st(t);try{for(c.s();!(l=c.n()).done;){var d=l.value;i[d]=u[d]}}catch(r0){c.e(r0)}finally{c.f()}return i}},{key:"createResolver",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],r=arguments.length>3?arguments[3]:void 0,i=MK(this._resolverCache,e,n).resolver;return KU(t)?UH(i,t,void 0,r):i}}]),e}();function MK(e,t,n){var r=e.get(t);r||(r=new Map,e.set(t,r));var i=n.join(),a=r.get(i);a||(a={resolver:VH(t,n),subPrefixes:n.filter((function(e){return!e.toLowerCase().includes("hover")}))},r.set(i,a));return a}var NK=function(e){return KU(e)&&Object.getOwnPropertyNames(e).reduce((function(t,n){return t||fW(e[n])}),!1)};var LK=["top","bottom","left","right","chartArea"];function DK(e,t){return"top"===e||"bottom"===e||-1===LK.indexOf(e)&&"x"===t}function FK(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function zK(e){var t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),QU(n&&n.onComplete,[e],t)}function BK(e){var t=e.chart,n=t.options.animation;QU(n&&n.onProgress,[e],t)}function VK(e){return uq()&&"string"===typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var UK={},WK=function(e){var t=VK(e);return Object.values(UK).filter((function(e){return e.canvas===t})).pop()};function HK(e,t,n){for(var r=0,i=Object.keys(e);r=t){var s=e[a];delete e[a],(n>0||o>t)&&(e[o+n]=s)}}}var qK=function(){function e(t,n){var r=this;Qi(this,e);var i=this.config=new RK(n),a=VK(t),o=WK(a);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");var s=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(e){return!uq()||"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?VY:nK}(a)),this.platform.updateConfig(i);var u=this.platform.acquireContext(a,s.aspectRatio),l=u&&u.canvas,c=l&&l.height,d=l&&l.width;this.id=HU(),this.ctx=u,this.canvas=l,this.width=d,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new yK,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){var n;return function(){for(var r=arguments.length,i=new Array(r),a=0;at){for(var r=t;rn.length&&delete this._stacks,t.forEach((function(t,r){0===n.filter((function(e){return e===t._dataset})).length&&e._destroyDatasetMeta(r)}))}},{key:"buildOrUpdateControllers",value:function(){var e,t,n=[],r=this.data.datasets;for(this._removeUnreferencedMetasets(),e=0,t=r.length;e=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}}},{key:"_drawDataset",value:function(e){var t=this.ctx,n=e._clip,r=!n.disabled,i=function(e){var t=e.xScale,n=e.yScale;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}(e)||this.chartArea,a={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(r&&kH(t,{left:!1===n.left?0:i.left-n.left,right:!1===n.right?this.width:i.right+n.right,top:!1===n.top?0:i.top-n.top,bottom:!1===n.bottom?this.height:i.bottom+n.bottom}),e.controller.draw(),r&&SH(t),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}},{key:"isPointInArea",value:function(e){return wH(e,this.chartArea,this._minPadding)}},{key:"getElementsAtEventForMode",value:function(e,t,n,r){var i=CY.modes[t];return"function"===typeof i?i(this,e,n,r):[]}},{key:"getDatasetMeta",value:function(e){var t=this.data.datasets[e],n=this._metasets,r=n.filter((function(e){return e&&e._dataset===t})).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}},{key:"getContext",value:function(){return this.$context||(this.$context=BH(null,{chart:this,type:"chart"}))}},{key:"getVisibleDatasetCount",value:function(){return this.getSortedVisibleDatasetMetas().length}},{key:"isDatasetVisible",value:function(e){var t=this.data.datasets[e];if(!t)return!1;var n=this.getDatasetMeta(e);return"boolean"===typeof n.hidden?!n.hidden:!t.hidden}},{key:"setDatasetVisibility",value:function(e,t){this.getDatasetMeta(e).hidden=!t}},{key:"toggleDataVisibility",value:function(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}},{key:"getDataVisibility",value:function(e){return!this._hiddenIndices[e]}},{key:"_updateVisibility",value:function(e,t,n){var r=n?"show":"hide",i=this.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,r);dW(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),a.update(i,{visible:n}),this.update((function(t){return t.datasetIndex===e?r:void 0})))}},{key:"hide",value:function(e,t){this._updateVisibility(e,t,!1)}},{key:"show",value:function(e,t){this._updateVisibility(e,t,!0)}},{key:"_destroyDatasetMeta",value:function(e){var t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}},{key:"_stop",value:function(){var e,t;for(this.stop(),Dq.remove(this),e=0,t=this.data.datasets.length;e0?c+r+n+l:0,h=0,p=i-u;if(r){var v=((c>0?c-r:0)+(d>0?d-r:0))/2;h=(p-(0!==v?p*v/(v+r):p))/2}var g=(p-Math.max(.001,p*d-n/pW)/d)/2,m=u+g+h,y=i-g-h,b=KK(t,f,d,y-m),x=b.outerStart,w=b.outerEnd,k=b.innerStart,S=b.innerEnd,_=d-x,E=d-w,C=m+x/_,O=y-w/E,T=f+k,P=f+S,j=m+k/T,A=y-S/P;if(e.beginPath(),a){var I=(C+O)/2;if(e.arc(o,s,d,C,I),e.arc(o,s,d,I,O),w>0){var R=GK(E,O,o,s);e.arc(R.x,R.y,w,O,y+bW)}var M=GK(P,y,o,s);if(e.lineTo(M.x,M.y),S>0){var N=GK(P,A,o,s);e.arc(N.x,N.y,S,y+bW,A+Math.PI)}var L=(y-S/f+(m+k/f))/2;if(e.arc(o,s,f,y-S/f,L,!0),e.arc(o,s,f,L,m+k/f,!0),k>0){var D=GK(T,j,o,s);e.arc(D.x,D.y,k,j+Math.PI,m-bW)}var F=GK(_,m,o,s);if(e.lineTo(F.x,F.y),x>0){var z=GK(_,C,o,s);e.arc(z.x,z.y,x,m-bW,C)}}else{e.moveTo(o,s);var B=Math.cos(C)*d+o,V=Math.sin(C)*d+s;e.lineTo(B,V);var U=Math.cos(O)*d+o,W=Math.sin(O)*d+s;e.lineTo(U,W)}e.closePath()}function $K(e,t,n,r,i){var a=t.fullCircles,o=t.startAngle,s=t.circumference,u=t.options,l=u.borderWidth,c=u.borderJoinStyle,d=u.borderDash,f=u.borderDashOffset,h="inner"===u.borderAlign;if(l){e.setLineDash(d||[]),e.lineDashOffset=f,h?(e.lineWidth=2*l,e.lineJoin=c||"round"):(e.lineWidth=l,e.lineJoin=c||"bevel");var p=t.endAngle;if(a){XK(e,t,n,r,p,i);for(var v=0;vi?(l=i/u,e.arc(a,o,u,n+l,r-l,!0)):e.arc(a,o,i,n+bW,r-bW),e.closePath(),e.clip()}(e,t,p),a||(XK(e,t,n,r,p,i),e.stroke())}}s(qK,"defaults",pH),s(qK,"instances",UK),s(qK,"overrides",lH),s(qK,"registry",mK),s(qK,"version","4.3.0"),s(qK,"getChart",WK);var JK=function(e){ea(n,e);var t=aa(n);function n(e){var r;return Qi(this,n),s(ra(r=t.call(this)),"circumference",void 0),s(ra(r),"endAngle",void 0),s(ra(r),"fullCircles",void 0),s(ra(r),"innerRadius",void 0),s(ra(r),"outerRadius",void 0),s(ra(r),"pixelMargin",void 0),s(ra(r),"startAngle",void 0),r.options=void 0,r.circumference=void 0,r.startAngle=void 0,r.endAngle=void 0,r.innerRadius=void 0,r.outerRadius=void 0,r.pixelMargin=0,r.fullCircles=0,e&&Object.assign(ra(r),e),r}return Ji(n,[{key:"inRange",value:function(e,t,n){var r=AW(this.getProps(["x","y"],n),{x:e,y:t}),i=r.angle,a=r.distance,o=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),s=o.startAngle,u=o.endAngle,l=o.innerRadius,c=o.outerRadius,d=o.circumference,f=(this.options.spacing+this.options.borderWidth)/2,h=$U(d,u-s)>=vW||NW(i,s,u),p=DW(a,l+f,c+f);return h&&p}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),n=t.x,r=t.y,i=t.startAngle,a=t.endAngle,o=t.innerRadius,s=t.outerRadius,u=this.options,l=u.offset,c=(i+a)/2,d=(o+s+u.spacing+l)/2;return{x:n+Math.cos(c)*d,y:r+Math.sin(c)*d}}},{key:"tooltipPosition",value:function(e){return this.getCenterPoint(e)}},{key:"draw",value:function(e){var t=this.options,n=this.circumference,r=(t.offset||0)/4,i=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>vW?Math.floor(n/vW):0,!(0===n||this.innerRadius<0||this.outerRadius<0)){e.save();var o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*r,Math.sin(o)*r);var s=r*(1-Math.sin(Math.min(pW,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,r,i){var a=t.fullCircles,o=t.startAngle,s=t.circumference,u=t.endAngle;if(a){XK(e,t,n,r,u,i);for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:t;e.lineCap=$U(n.borderCapStyle,t.borderCapStyle),e.setLineDash($U(n.borderDash,t.borderDash)),e.lineDashOffset=$U(n.borderDashOffset,t.borderDashOffset),e.lineJoin=$U(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=$U(n.borderWidth,t.borderWidth),e.strokeStyle=$U(n.borderColor,t.borderColor)}function ZK(e,t,n){e.lineTo(n.x,n.y)}function eG(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.length,i=n.start,a=void 0===i?0:i,o=n.end,s=void 0===o?r-1:o,u=t.start,l=t.end,c=Math.max(a,u),d=Math.min(s,l),f=al&&s>l;return{count:r,start:c,loop:t.loop,ilen:du&&(u=_),b=(x*b+S)/++x):(k(),e.lineTo(S,_),o=E,x=0,s=u=_),l=_}k()}function rG(e){var t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&"monotone"!==t.cubicInterpolationMode&&!t.stepped&&!n?nG:tG}s(JK,"id","arc"),s(JK,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),s(JK,"defaultRoutes",{backgroundColor:"backgroundColor"}),s(JK,"descriptors",{_scriptable:!0,_indexable:function(e){return"borderDash"!==e}});var iG="function"===typeof Path2D;function aG(e,t,n,r){iG&&!t.options.segment?function(e,t,n,r){var i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),QK(e,t.options),e.stroke(i)}(e,t,n,r):function(e,t,n,r){var i,a=t.segments,o=t.options,s=rG(t),u=st(a);try{for(u.s();!(i=u.n()).done;){var l=i.value;QK(e,o,l.style),e.beginPath(),s(e,t,l,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}}catch(r0){u.e(r0)}finally{u.f()}}(e,t,n,r)}var oG=function(e){ea(n,e);var t=aa(n);function n(e){var r;return Qi(this,n),(r=t.call(this)).animated=!0,r.options=void 0,r._chart=void 0,r._loop=void 0,r._fullLoop=void 0,r._path=void 0,r._points=void 0,r._segments=void 0,r._decimated=!1,r._pointsUpdated=!1,r._datasetIndex=void 0,e&&Object.assign(ra(r),e),r}return Ji(n,[{key:"updateControlPoints",value:function(e,t){var n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){var r=n.spanGaps?this._loop:this._fullLoop;sq(this._points,n,e,r,t),this._pointsUpdated=!0}}},{key:"points",get:function(){return this._points},set:function(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}},{key:"segments",get:function(){return this._segments||(this._segments=function(e,t){var n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];var a=!!e._loop,o=function(e,t,n,r){var i=0,a=t-1;if(n&&!r)for(;ii&&e[a%t].skip;)a--;return{start:i,end:a%=t}}(n,i,a,r),s=o.start,u=o.end;return Rq(e,!0===r?[{start:s,end:u,loop:a}]:function(e,t,n,r){var i,a=e.length,o=[],s=t,u=e[t];for(i=t+1;i<=n;++i){var l=e[i%a];l.skip||l.stop?u.skip||(r=!1,o.push({start:t%a,end:(i-1)%a,loop:r}),t=s=l.stop?i:null):(s=i,u.skip&&(t=i)),u=l}return null!==s&&o.push({start:t%a,end:s%a,loop:r}),o}(n,s,u2&&void 0!==arguments[2]?arguments[2]:{},r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,a=(e.x+e.w!==n.x+n.w?t:0)-r,o=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+a,h:e.h+o,radius:e.radius}}s(uG,"id","point"),s(uG,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),s(uG,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var vG=function(e){ea(n,e);var t=aa(n);function n(e){var r;return Qi(this,n),(r=t.call(this)).options=void 0,r.horizontal=void 0,r.base=void 0,r.width=void 0,r.height=void 0,r.inflateAmount=void 0,e&&Object.assign(ra(r),e),r}return Ji(n,[{key:"draw",value:function(e){var t,n=this.inflateAmount,r=this.options,i=r.borderColor,a=r.backgroundColor,o=dG(this),s=o.inner,u=o.outer,l=(t=u.radius).topLeft||t.topRight||t.bottomLeft||t.bottomRight?PH:hG;e.save(),u.w===s.w&&u.h===s.h||(e.beginPath(),l(e,pG(u,n,s)),e.clip(),l(e,pG(s,-n,u)),e.fillStyle=i,e.fill("evenodd")),e.beginPath(),l(e,pG(s,n)),e.fillStyle=a,e.fill(),e.restore()}},{key:"inRange",value:function(e,t,n){return fG(this,e,t,n)}},{key:"inXRange",value:function(e,t){return fG(this,e,null,t)}},{key:"inYRange",value:function(e,t){return fG(this,null,e,t)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","base","horizontal"],e),n=t.x,r=t.y,i=t.base,a=t.horizontal;return{x:a?(n+i)/2:n,y:a?r:(r+i)/2}}},{key:"getRange",value:function(e){return"x"===e?this.width/2:this.height/2}}]),n}(rK);s(vG,"id","bar"),s(vG,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),s(vG,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var gG=Object.freeze({__proto__:null,ArcElement:JK,BarElement:vG,LineElement:oG,PointElement:uG}),mG=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],yG=mG.map((function(e){return e.replace("rgb(","rgba(").replace(")",", 0.5)")}));function bG(e){return mG[e%mG.length]}function xG(e){return yG[e%yG.length]}function wG(e){var t=0;return function(n,r){var i=e.getDatasetMeta(r).controller;i instanceof cY?t=function(e,t){return e.backgroundColor=e.data.map((function(){return bG(t++)})),t}(n,t):i instanceof fY?t=function(e,t){return e.backgroundColor=e.data.map((function(){return xG(t++)})),t}(n,t):i&&(t=function(e,t){return e.borderColor=bG(t),e.backgroundColor=xG(t),++t}(n,t))}}function kG(e){var t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}var SG={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout:function(e,t,n){if(n.enabled){var r=e.config,i=r.data.datasets,a=r.options,o=a.elements;if(n.forceOverride||!(kG(i)||(s=a,s&&(s.borderColor||s.backgroundColor))||o&&kG(o))){var s,u=wG(e);i.forEach(u)}}}};function _G(e){if(e._decimated){var t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function EG(e){e.data.datasets.forEach((function(e){_G(e)}))}var CG={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:function(e,t,n){if(n.enabled){var r=e.width;e.data.datasets.forEach((function(t,i){var a=t._data,o=t.indexAxis,s=e.getDatasetMeta(i),u=a||t.data;if("y"!==zH([o,e.options.indexAxis])&&s.controller.supportsDecimation){var c=e.scales[s.xAxisID];if(("linear"===c.type||"time"===c.type)&&!e.options.parsing){var d=function(e,t){var n=t.length,r=0,i=e.iScale,a=i.getUserBounds(),o=a.min,s=a.max,u=a.minDefined,l=a.maxDefined;return u&&(r=LW(zW(t,i.axis,o).lo,0,n-1)),{start:r,count:l?LW(zW(t,i.axis,s).hi+1,r,n)-r:n-r}}(s,u),f=d.start,h=d.count;if(h<=(n.threshold||4*r))_G(t);else{var p;switch(qU(a)&&(t._data=u,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":p=function(e,t,n,r,i){var a=i.samples||r;if(a>=n)return e.slice(t,t+n);var o,s,u,l,c,d=[],f=(n-2)/(a-2),h=0,p=t+n-1,v=t;for(d[h++]=e[v],o=0;ou&&(u=l,s=e[y],c=y);d[h++]=s,v=c}return d[h++]=e[p],d}(u,f,h,r,n);break;case"min-max":p=function(e,t,n,r){var i,a,o,s,u,c,d,f,h,p,v=0,g=0,m=[],y=t+n-1,b=e[t].x,x=e[y].x-b;for(i=t;ip&&(p=s,d=i),v=(g*v+a.x)/++g;else{var k=i-1;if(!qU(c)&&!qU(d)){var S=Math.min(c,d),_=Math.max(c,d);S!==f&&S!==k&&m.push(l(l({},e[S]),{},{x:v})),_!==f&&_!==k&&m.push(l(l({},e[_]),{},{x:v}))}i>0&&k!==f&&m.push(e[k]),m.push(a),u=w,g=0,h=p=s,c=d=f=i}}return m}(u,f,h,r);break;default:throw new Error("Unsupported decimation algorithm '".concat(n.algorithm,"'"))}t._decimated=p}}}}))}else EG(e)},destroy:function(e){EG(e)}};function OG(e,t,n,r){if(!r){var i=t[e],a=n[e];return"angle"===e&&(i=MW(i),a=MW(a)),{property:e,start:i,end:a}}}function TG(e,t,n){for(;t>e;t--){var r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function PG(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function jG(e,t){var n=[],r=!1;return YU(e)?(r=!0,n=e):n=function(e,t){var n=e||{},r=n.x,i=void 0===r?null:r,a=n.y,o=void 0===a?null:a,s=t.points,u=[];return t.segments.forEach((function(e){var t=e.start,n=e.end;n=TG(t,n,s);var r=s[t],a=s[n];null!==o?(u.push({x:r.x,y:o}),u.push({x:a.x,y:o})):null!==i&&(u.push({x:i,y:r.y}),u.push({x:i,y:a.y}))})),u}(e,t),n.length?new oG({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function AG(e){return e&&!1!==e.fill}function IG(e,t,n){var r,i=e[t].fill,a=[t];if(!n)return i;for(;!1!==i&&-1===a.indexOf(i);){if(!GU(i))return i;if(!(r=e[i]))return!1;if(r.visible)return i;a.push(i),i=r.fill}return!1}function RG(e,t,n){var r=function(e){var t=e.options,n=t.fill,r=$U(n&&n.target,n);void 0===r&&(r=!!t.backgroundColor);if(!1===r||null===r)return!1;if(!0===r)return"origin";return r}(e);if(KU(r))return!isNaN(r.value)&&r;var i=parseFloat(r);return GU(i)&&Math.floor(i)===i?function(e,t,n,r){"-"!==e&&"+"!==e||(n=t+n);if(n===t||n<0||n>=r)return!1;return n}(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function MG(e,t,n){for(var r=[],i=0;i=0;--o){var s=i[o].$filler;s&&(s.line.updateControlPoints(a,s.axis),r&&s.fill&&FG(e.ctx,s,a))}},beforeDatasetsDraw:function(e,t,n){if("beforeDatasetsDraw"===n.drawTime)for(var r=e.getSortedVisibleDatasetMetas(),i=r.length-1;i>=0;--i){var a=r[i].$filler;AG(a)&&FG(e.ctx,a,e.chartArea)}},beforeDatasetDraw:function(e,t,n){var r=t.meta.$filler;AG(r)&&"beforeDatasetDraw"===n.drawTime&&FG(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},HG=function(e,t){var n=e.boxHeight,r=void 0===n?t:n,i=e.boxWidth,a=void 0===i?t:i;return e.usePointStyle&&(r=Math.min(r,t),a=e.pointStyleWidth||Math.min(a,t)),{boxWidth:a,boxHeight:r,itemHeight:Math.max(t,r)}},qG=function(e){ea(n,e);var t=aa(n);function n(e){var r;return Qi(this,n),(r=t.call(this))._added=!1,r.legendHitBoxes=[],r._hoveredItem=null,r.doughnutMode=!1,r.chart=e.chart,r.options=e.options,r.ctx=e.ctx,r.legendItems=void 0,r.columnSizes=void 0,r.lineWidths=void 0,r.maxHeight=void 0,r.maxWidth=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.height=void 0,r.width=void 0,r._margins=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return Ji(n,[{key:"update",value:function(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}},{key:"setDimensions",value:function(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}},{key:"buildLabels",value:function(){var e=this,t=this.options.labels||{},n=QU(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter((function(n){return t.filter(n,e.chart.data)}))),t.sort&&(n=n.sort((function(n,r){return t.sort(n,r,e.chart.data)}))),this.options.reverse&&n.reverse(),this.legendItems=n}},{key:"fit",value:function(){var e=this.options,t=this.ctx;if(e.display){var n,r,i=e.labels,a=FH(i.font),o=a.size,s=this._computeTitleHeight(),u=HG(i,o),l=u.boxWidth,c=u.itemHeight;t.font=a.string,this.isHorizontal()?(n=this.maxWidth,r=this._fitRows(s,o,l,c)+10):(r=this.maxHeight,n=this._fitCols(s,a,l,c)+10),this.width=Math.min(n,e.maxWidth||this.maxWidth),this.height=Math.min(r,e.maxHeight||this.maxHeight)}else this.width=this.height=0}},{key:"_fitRows",value:function(e,t,n,r){var i=this.ctx,a=this.maxWidth,o=this.options.labels.padding,s=this.legendHitBoxes=[],u=this.lineWidths=[0],l=r+o,c=e;i.textAlign="left",i.textBaseline="middle";var d=-1,f=-l;return this.legendItems.forEach((function(e,h){var p=n+t/2+i.measureText(e.text).width;(0===h||u[u.length-1]+p+2*o>a)&&(c+=l,u[u.length-(h>0?0:1)]=0,f+=l,d++),s[h]={left:0,top:f,row:d,width:p,height:r},u[u.length-1]+=p+o})),c}},{key:"_fitCols",value:function(e,t,n,r){var i=this.ctx,a=this.maxHeight,o=this.options.labels.padding,s=this.legendHitBoxes=[],u=this.columnSizes=[],l=a-e,c=o,d=0,f=0,h=0,p=0;return this.legendItems.forEach((function(e,a){var v=function(e,t,n,r,i){var a=function(e,t,n,r){var i=e.text;i&&"string"!==typeof i&&(i=i.reduce((function(e,t){return e.length>t.length?e:t})));return t+n.size/2+r.measureText(i).width}(r,e,t,n),o=function(e,t,n){var r=e;"string"!==typeof t.text&&(r=YG(t,n));return r}(i,r,t.lineHeight);return{itemWidth:a,itemHeight:o}}(n,t,i,e,r),g=v.itemWidth,m=v.itemHeight;a>0&&f+m+2*o>l&&(c+=d+o,u.push({width:d,height:f}),h+=d+o,p++,d=f=0),s[a]={left:h,top:f,col:p,width:g,height:m},d=Math.max(d,g),f+=m+o})),c+=d,u.push({width:d,height:f}),c}},{key:"adjustHitBoxes",value:function(){if(this.options.display){var e=this._computeTitleHeight(),t=this.legendHitBoxes,n=this.options,r=n.align,i=n.labels.padding,a=Cq(n.rtl,this.left,this.width);if(this.isHorizontal()){var o,s=0,u=KW(r,this.left+i,this.right-this.lineWidths[s]),l=st(t);try{for(l.s();!(o=l.n()).done;){var c=o.value;s!==c.row&&(s=c.row,u=KW(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+e+i,c.left=a.leftForLtr(a.x(u),c.width),u+=c.width+i}}catch(r0){l.e(r0)}finally{l.f()}}else{var d,f=0,h=KW(r,this.top+e+i,this.bottom-this.columnSizes[f].height),p=st(t);try{for(p.s();!(d=p.n()).done;){var v=d.value;v.col!==f&&(f=v.col,h=KW(r,this.top+e+i,this.bottom-this.columnSizes[f].height)),v.top=h,v.left+=this.left+i,v.left=a.leftForLtr(a.x(v.left),v.width),h+=v.height+i}}catch(r0){p.e(r0)}finally{p.f()}}}}},{key:"isHorizontal",value:function(){return"top"===this.options.position||"bottom"===this.options.position}},{key:"draw",value:function(){if(this.options.display){var e=this.ctx;kH(e,this),this._draw(),SH(e)}}},{key:"_draw",value:function(){var e,t=this,n=this.options,r=this.columnSizes,i=this.lineWidths,a=this.ctx,o=n.align,s=n.labels,u=pH.color,l=Cq(n.rtl,this.left,this.width),c=FH(s.font),d=s.padding,f=c.size,h=f/2;this.drawTitle(),a.textAlign=l.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=c.string;var p=HG(s,f),v=p.boxWidth,g=p.boxHeight,m=p.itemHeight,y=this.isHorizontal(),b=this._computeTitleHeight();e=y?{x:KW(o,this.left+d,this.right-i[0]),y:this.top+d+b,line:0}:{x:this.left+d,y:KW(o,this.top+b+d,this.bottom-r[0].height),line:0},Oq(this.ctx,n.textDirection);var x=m+d;this.legendItems.forEach((function(p,w){a.strokeStyle=p.fontColor,a.fillStyle=p.fontColor;var k=a.measureText(p.text).width,S=l.textAlign(p.textAlign||(p.textAlign=s.textAlign)),_=v+h+k,E=e.x,C=e.y;if(l.setWidth(t.width),y?w>0&&E+_+d>t.right&&(C=e.y+=x,e.line++,E=e.x=KW(o,t.left+d,t.right-i[e.line])):w>0&&C+x>t.bottom&&(E=e.x=E+r[e.line].width+d,e.line++,C=e.y=KW(o,t.top+b+d,t.bottom-r[e.line].height)),function(e,t,n){if(!(isNaN(v)||v<=0||isNaN(g)||g<0)){a.save();var r=$U(n.lineWidth,1);if(a.fillStyle=$U(n.fillStyle,u),a.lineCap=$U(n.lineCap,"butt"),a.lineDashOffset=$U(n.lineDashOffset,0),a.lineJoin=$U(n.lineJoin,"miter"),a.lineWidth=r,a.strokeStyle=$U(n.strokeStyle,u),a.setLineDash($U(n.lineDash,[])),s.usePointStyle){var i={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},o=l.xPlus(e,v/2);xH(a,i,o,t+h,s.pointStyleWidth&&v)}else{var c=t+Math.max((f-g)/2,0),d=l.leftForLtr(e,v),p=LH(n.borderRadius);a.beginPath(),Object.values(p).some((function(e){return 0!==e}))?PH(a,{x:d,y:c,w:v,h:g,radius:p}):a.rect(d,c,v,g),a.fill(),0!==r&&a.stroke()}a.restore()}}(l.x(E),C,p),E=function(e,t,n,r){return e===(r?"left":"right")?n:"center"===e?(t+n)/2:t}(S,E+v+h,y?E+_:t.right,n.rtl),function(e,t,n){TH(a,n.text,e,t+m/2,c,{strikethrough:n.hidden,textAlign:l.textAlign(n.textAlign)})}(l.x(E),C,p),y)e.x+=_+d;else if("string"!==typeof p.text){var O=c.lineHeight;e.y+=YG(p,O)}else e.y+=x})),Tq(this.ctx,n.textDirection)}},{key:"drawTitle",value:function(){var e=this.options,t=e.title,n=FH(t.font),r=DH(t.padding);if(t.display){var i,a=Cq(e.rtl,this.left,this.width),o=this.ctx,s=t.position,u=n.size/2,l=r.top+u,c=this.left,d=this.width;if(this.isHorizontal())d=Math.max.apply(Math,lt(this.lineWidths)),i=this.top+l,c=KW(e.align,c,this.right-d);else{var f=this.columnSizes.reduce((function(e,t){return Math.max(e,t.height)}),0);i=l+KW(e.align,this.top,this.bottom-f-e.labels.padding-this._computeTitleHeight())}var h=KW(s,c,c+d);o.textAlign=a.textAlign(YW(s)),o.textBaseline="middle",o.strokeStyle=t.color,o.fillStyle=t.color,o.font=n.string,TH(o,t.text,h,i,n)}}},{key:"_computeTitleHeight",value:function(){var e=this.options.title,t=FH(e.font),n=DH(e.padding);return e.display?t.lineHeight+n.height:0}},{key:"_getLegendItemAt",value:function(e,t){var n,r,i;if(DW(e,this.left,this.right)&&DW(t,this.top,this.bottom))for(i=this.legendHitBoxes,n=0;n