(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode("")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),r=require("react"),m=require("clsx"),ne=require("react-popper"),fe=require("react-dom"),dt=require("@popperjs/core"),ae=require("framer-motion"),me=r.forwardRef(({breakpoint:e,fluid:t,children:s,className:a,tag:n="div",...o},i)=>{const l=m(`${t?"container-fluid":`container${e?"-"+e:""}`}`,a);return c.jsx(n,{className:l,...o,ref:i,children:s})});me.displayName="MDBContainer";const pe=r.forwardRef(({center:e,children:t,className:s,end:a,lg:n,md:o,offsetLg:i,offsetMd:l,offsetSm:u,order:d,size:f,sm:b,start:p,tag:g="div",xl:v,xxl:y,xs:h,...x},B)=>{const R=m(f&&`col-${f}`,h&&`col-xs-${h}`,b&&`col-sm-${b}`,o&&`col-md-${o}`,n&&`col-lg-${n}`,v&&`col-xl-${v}`,y&&`col-xxl-${y}`,!f&&!h&&!b&&!o&&!n&&!v&&!y?"col":"",d&&`order-${d}`,p&&"align-self-start",e&&"align-self-center",a&&"align-self-end",u&&`offset-sm-${u}`,l&&`offset-md-${l}`,i&&`offset-lg-${i}`,s);return c.jsx(g,{className:R,ref:B,...x,children:t})});pe.displayName="MDBCol";const ge=r.forwardRef(({className:e,color:t="primary",pill:s,light:a,dot:n,tag:o="span",children:i,notification:l,...u},d)=>{const f=m("badge",a?t&&`badge-${t}`:t&&`bg-${t}`,n&&"badge-dot",s&&"rounded-pill",l&&"badge-notification",e);return c.jsx(o,{className:f,ref:d,...u,children:i})});ge.displayName="MDBBadge";const ft=({...e})=>{const[t,s]=r.useState(!1),a=m("ripple-wave",t&&"active");return r.useEffect(()=>{const n=setTimeout(()=>{s(!0)},50);return()=>{clearTimeout(n)}},[]),c.jsx("div",{className:a,...e})},mt=(...e)=>{const t=r.useRef();return r.useEffect(()=>{e.forEach(s=>{s&&(typeof s=="function"?s(t.current):s.current=t.current)})},[e]),t},re=r.forwardRef(({className:e,rippleTag:t="div",rippleCentered:s,rippleDuration:a=500,rippleUnbound:n,rippleRadius:o=0,rippleColor:i="dark",children:l,onMouseDown:u,...d},f)=>{const b=r.useRef(null),p=mt(f,b),g="rgba({{color}}, 0.2) 0, rgba({{color}}, 0.3) 40%, rgba({{color}}, 0.4) 50%, rgba({{color}}, 0.5) 60%, rgba({{color}}, 0) 70%",v=[0,0,0],y=["primary","secondary","success","danger","warning","info","light","dark"],[h,x]=r.useState([]),[B,R]=r.useState(!1),D=m("ripple","ripple-surface",n&&"ripple-surface-unbound",B&&`ripple-surface-${i}`,e),T=()=>{if(y.find(M=>M===(i==null?void 0:i.toLowerCase())))return R(!0);{const M=I(i).join(",");return`radial-gradient(circle, ${g.split("{{color}}").join(`${M}`)})`}},I=E=>{const M=j=>(j.length<7&&(j=`#${j[1]}${j[1]}${j[2]}${j[2]}${j[3]}${j[3]}`),[parseInt(j.substr(1,2),16),parseInt(j.substr(3,2),16),parseInt(j.substr(5,2),16)]),w=j=>{const L=document.body.appendChild(document.createElement("fictum")),A="rgb(1, 2, 3)";return L.style.color=A,L.style.color!==A||(L.style.color=j,L.style.color===A||L.style.color==="")?v:(j=getComputedStyle(L).color,document.body.removeChild(L),j)},G=j=>(j=j.match(/[.\d]+/g).map(L=>+Number(L)),j.length=3,j);return E.toLowerCase()==="transparent"?v:E[0]==="#"?M(E):(E.indexOf("rgb")===-1&&(E=w(E)),E.indexOf("rgb")===0?G(E):v)},N=E=>{const{offsetX:M,offsetY:w,height:G,width:j}=E,L=w<=G/2,A=M<=j/2,F=(Y,X)=>Math.sqrt(Y**2+X**2),k=w===G/2&&M===j/2,q={first:L===!0&&A===!1,second:L===!0&&A===!0,third:L===!1&&A===!0,fourth:L===!1&&A===!1},P={topLeft:F(M,w),topRight:F(j-M,w),bottomLeft:F(M,G-w),bottomRight:F(j-M,G-w)};let H=0;return k||q.fourth?H=P.topLeft:q.third?H=P.topRight:q.second?H=P.bottomRight:q.first&&(H=P.bottomLeft),H*2},C=E=>{var H;const M=(H=p.current)==null?void 0:H.getBoundingClientRect(),w=E.clientX-M.left,G=E.clientY-M.top,j=M.height,L=M.width,A={offsetX:s?j/2:w,offsetY:s?L/2:G,height:j,width:L},F={delay:a&&a*.5,duration:a&&a-a*.5},k=N(A),q=o||k/2,P={left:s?`${L/2-q}px`:`${w-q}px`,top:s?`${j/2-q}px`:`${G-q}px`,height:o?`${o*2}px`:`${k}px`,width:o?`${o*2}px`:`${k}px`,transitionDelay:`0s, ${F.delay}ms`,transitionDuration:`${a}ms, ${F.duration}ms`};return B?P:{...P,backgroundImage:`${T()}`}},W=E=>{const M=C(E),w=h.concat(M);x(w),u&&u(E)};return r.useEffect(()=>{const E=setTimeout(()=>{h.length>0&&x(h.splice(1,h.length-1))},a);return()=>{clearTimeout(E)}},[a,h]),c.jsxs(t,{className:D,onMouseDown:E=>W(E),ref:p,...d,children:[l,h.map((E,M)=>c.jsx(ft,{style:E},M))]})});re.displayName="MDBRipple";const Q=r.forwardRef(({className:e,color:t="primary",outline:s,children:a,rounded:n,disabled:o,floating:i,size:l,href:u,block:d,active:f,toggle:b,noRipple:p,tag:g="button",role:v="button",...y},h)=>{const[x,B]=r.useState(f||!1);let R;const D=t&&["light","link"].includes(t)||s?"dark":"light";t!=="none"?s?t?R=`btn-outline-${t}`:R="btn-outline-primary":t?R=`btn-${t}`:R="btn-primary":R="";const T=m(t!=="none"&&"btn",R,n&&"btn-rounded",i&&"btn-floating",l&&`btn-${l}`,`${(u||g!=="button")&&o?"disabled":""}`,d&&"btn-block",x&&"active",e);return u&&g!=="a"&&(g="a"),["hr","img","input"].includes(g)||p?c.jsx(g,{className:T,onClick:b?()=>{B(!x)}:void 0,disabled:o&&g==="button"?!0:void 0,href:u,ref:h,role:v,...y,children:a}):c.jsx(re,{rippleTag:g,rippleColor:D,className:T,onClick:b?()=>{B(!x)}:void 0,disabled:o&&g==="button"?!0:void 0,href:u,ref:h,role:v,...y,children:a})});Q.displayName="MDBBtn";const be=r.forwardRef(({className:e,children:t,shadow:s,toolbar:a,size:n,vertical:o,tag:i="div",role:l="group",...u},d)=>{let f;a?f="btn-toolbar":o?f="btn-group-vertical":f="btn-group";const b=m(f,s&&`shadow-${s}`,n&&`btn-group-${n}`,e);return c.jsx(i,{className:b,ref:d,role:l,...u,children:t})});be.displayName="MDBBtnGroup";const he=r.forwardRef(({className:e,children:t,tag:s="div",color:a,grow:n,size:o,...i},l)=>{const u=m(`${n?"spinner-grow":"spinner-border"}`,a&&`text-${a}`,`${o?n?"spinner-grow-"+o:"spinner-border-"+o:""}`,e);return c.jsx(s,{className:u,ref:l,...i,children:t})});he.displayName="MDBSpinner";const ve=r.forwardRef(({className:e,children:t,border:s,background:a,tag:n="div",shadow:o,alignment:i,...l},u)=>{const d=m("card",s&&`border border-${s}`,a&&`bg-${a}`,o&&`shadow-${o}`,i&&`text-${i}`,e);return c.jsx(n,{className:d,ref:u,...l,children:t})});ve.displayName="MDBCard";const ye=r.forwardRef(({className:e,children:t,border:s,background:a,tag:n="div",...o},i)=>{const l=m("card-header",s&&`border-${s}`,a&&`bg-${a}`,e);return c.jsx(n,{className:l,...o,ref:i,children:t})});ye.displayName="MDBCardHeader";const Be=r.forwardRef(({className:e,children:t,tag:s="p",...a},n)=>{const o=m("card-subtitle",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});Be.displayName="MDBCardSubTitle";const Me=r.forwardRef(({className:e,children:t,tag:s="h5",...a},n)=>{const o=m("card-title",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});Me.displayName="MDBCardTitle";const xe=r.forwardRef(({className:e,children:t,tag:s="p",...a},n)=>{const o=m("card-text",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});xe.displayName="MDBCardText";const De=r.forwardRef(({className:e,children:t,tag:s="div",...a},n)=>{const o=m("card-body",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});De.displayName="MDBCardBody";const Ne=r.forwardRef(({className:e,children:t,border:s,background:a,tag:n="div",...o},i)=>{const l=m("card-footer",s&&`border-${s}`,a&&`bg-${a}`,e);return c.jsx(n,{className:l,...o,ref:i,children:t})});Ne.displayName="MDBCardFooter";const pt=({className:e,children:t,overlay:s,position:a,fluid:n,...o})=>{const i=m(a&&`card-img-${a}`,n&&"img-fluid",s&&"card-img",e);return c.jsx("img",{className:i,...o,children:t})},we=r.forwardRef(({className:e,children:t,tag:s="div",...a},n)=>{const o=m("card-img-overlay",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});we.displayName="MDBCardOverlay";const gt=({className:e,children:t,...s})=>{const a=m("card-link",e);return c.jsx("a",{className:a,...s,children:t})},je=r.forwardRef(({className:e,children:t,tag:s="div",...a},n)=>{const o=m("card-group",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});je.displayName="MDBCardGroup";const Ee=r.forwardRef(({className:e,tag:t="ul",horizontal:s,horizontalSize:a,light:n,numbered:o,children:i,small:l,...u},d)=>{const f=m("list-group",s&&(a?`list-group-horizontal-${a}`:"list-group-horizontal"),n&&"list-group-light",o&&"list-group-numbered",l&&"list-group-small",e);return c.jsx(t,{className:f,ref:d,...u,children:i})});Ee.displayName="MDBListGroup";const Se=r.forwardRef(({className:e,tag:t="li",active:s,disabled:a,action:n,color:o,children:i,noBorders:l,...u},d)=>{const f=t==="button",b=m("list-group-item",s&&"active",a&&!f&&"disabled",n&&"list-group-item-action",o&&`list-group-item-${o}`,l&&"border-0",e);return c.jsx(t,{className:b,disabled:f&&a,ref:d,...u,children:i})});Se.displayName="MDBListGroupItem";const ee=({children:e,containerRef:t,disablePortal:s})=>{const[a,n]=r.useState(!1);return r.useEffect(()=>{!s&&n(!0)},[s]),s?c.jsx(c.Fragment,{children:e}):a?fe.createPortal(c.jsx(c.Fragment,{children:e}),(t==null?void 0:t.current)||document.body):null},bt=({className:e,children:t,disableMouseDown:s,tag:a=Q,tooltipTag:n="div",options:o,placement:i="top",title:l,wrapperProps:u,wrapperClass:d,onOpen:f,onClose:b,onMouseEnter:p,onMouseLeave:g,type:v,...y})=>{const[h,x]=r.useState(null),[B,R]=r.useState(null),[D,T]=r.useState(!1),[I,N]=r.useState(!1),[C,W]=r.useState(!1),[E,M]=r.useState(!1),w=m("tooltip",C&&"show","fade",e),{styles:G,attributes:j}=ne.usePopper(h,B,{placement:i,...o});r.useEffect(()=>{let k,q;return D||I?(M(!0),k=setTimeout(()=>{W(!0)},4)):(W(!1),q=setTimeout(()=>{M(!1)},300)),()=>{clearTimeout(k),clearTimeout(q)}},[D,I]);const L=k=>{f==null||f(k),!k.defaultPrevented&&T(!0),p==null||p(k)},A=k=>{b==null||b(k),!k.defaultPrevented&&T(!1),g==null||g(k)},F=r.useCallback(k=>{k.target===h?N(!0):N(!1)},[h]);return r.useEffect(()=>{if(!s)return document.addEventListener("mousedown",F),()=>{document.removeEventListener("mousedown",F)}},[F,s]),c.jsxs(c.Fragment,{children:[c.jsx(a,{className:d,onMouseEnter:L,onMouseLeave:A,ref:x,...u,type:v,children:t}),E&&c.jsx(ee,{children:c.jsx(n,{ref:R,className:w,style:G.popper,...j.popper,role:"tooltip",...y,children:c.jsx("div",{className:"tooltip-inner",children:l})})})]})},Te=r.forwardRef(({around:e,between:t,bottom:s,center:a,children:n,className:o,evenly:i,end:l,middle:u,start:d,tag:f="div",top:b,...p},g)=>{const v=m("row",e&&"justify-content-around",t&&"justify-content-between",s&&"align-self-end",a&&"justify-content-center",i&&"justifty-content-evenly",l&&"justify-content-end",u&&"align-self-center",d&&"justify-content-start",b&&"align-self-start",o);return c.jsx(f,{className:v,...p,ref:g,children:n})});Te.displayName="MDBRow";const ht=({animate:e,className:t,icon:s,fab:a,fas:n,fal:o,far:i,flag:l,spin:u,fixed:d,flip:f,list:b,size:p,pull:g,pulse:v,color:y,border:h,rotate:x,inverse:B,stack:R,iconType:D,children:T,...I})=>{let N;l?N="flag":a?N="fab":n?N="fas":i?N="far":o?N="fal":N="fa";const C=m(D?`fa-${D}`:N,e&&`fa-${e}`,l?`flag-${l}`:s&&`fa-${s}`,p&&`fa-${p}`,y&&`text-${y}`,h&&"fa-border",x&&`fa-rotate-${x}`,g&&`fa-pull-${g}`,u&&!e&&"fa-spin",b&&"fa-li",d&&"fa-fw",v&&!e&&"fa-pulse",B&&"fa-inverse",f&&`fa-flip-${f}`,R&&`fa-stack-${R}`,t);return c.jsx("i",{className:C,...I,children:T})},Re=r.forwardRef(({className:e,children:t,tag:s="p",variant:a,color:n,blockquote:o,note:i,noteColor:l,listUnStyled:u,listInLine:d,...f},b)=>{const p=m(a&&a,o&&"blockquote",i&&"note",n&&`text-${n}`,l&&`note-${l}`,u&&"list-unstyled",d&&"list-inline",e);return o&&(s="blockquote"),(u||d)&&(s="ul"),c.jsx(s,{className:p,ref:b,...f,children:t})});Re.displayName="MDBTypography";const Ce=r.forwardRef(({className:e,color:t,uppercase:s,bold:a,children:n,...o},i)=>{const l=m("breadcrumb",a&&"font-weight-bold",t&&`text-${t}`,s&&"text-uppercase",e);return c.jsx("nav",{"aria-label":"breadcrumb",children:c.jsx("ol",{className:l,ref:i,...o,children:n})})});Ce.displayName="MDBBreadcrumb";const Ie=r.forwardRef(({className:e,active:t,current:s="page",children:a,...n},o)=>{const i=m("breadcrumb-item",t&&"active",e);return c.jsx("li",{className:i,ref:o,"aria-current":t&&s,...n,children:a})});Ie.displayName="MDBBreadcrumbItem";const vt=e=>{if(e!==!1)return`navbar-expand-${e}`},ke=r.forwardRef(({className:e,children:t,light:s,dark:a,scrolling:n,fixed:o,sticky:i,scrollingNavbarOffset:l,color:u,transparent:d,expand:f,tag:b="nav",bgColor:p,...g},v)=>{const[y,h]=r.useState(!1),x=m({"navbar-light":s,"navbar-dark":a,"scrolling-navbar":n||l,"top-nav-collapse":y,[`text-${u}`]:u&&d?y:u},o&&`fixed-${o}`,i&&"sticky-top","navbar",f&&vt(f),p&&`bg-${p}`,e),B=r.useCallback(()=>{l&&window.pageYOffset>l?h(!0):h(!1)},[l]);return r.useEffect(()=>((n||l)&&window.addEventListener("scroll",B),()=>{window.removeEventListener("scroll",B)}),[B,n,l]),c.jsx(b,{className:x,role:"navigation",...g,ref:v,children:t})});ke.displayName="MDBNavbar";const $e=r.forwardRef(({children:e,className:t="",disabled:s=!1,active:a=!1,tag:n="a",...o},i)=>{const l=m("nav-link",s?"disabled":a?"active":"",t);return c.jsx(n,{"data-test":"nav-link",className:l,style:{cursor:"pointer"},ref:i,...o,children:e})});$e.displayName="MDBNavbarLink";const Le=r.forwardRef(({className:e,children:t,tag:s="a",...a},n)=>{const o=m("navbar-brand",e);return c.jsx(s,{className:o,ref:n,...a,children:t})});Le.displayName="MDBNavbarBrand";const Ae=r.forwardRef(({children:e,className:t,active:s,text:a,tag:n="li",...o},i)=>{const l=m("nav-item",s&&"active",a&&"navbar-text",t);return c.jsx(n,{...o,className:l,ref:i,children:e})});Ae.displayName="MDBNavbarItem";const Fe=r.forwardRef(({children:e,className:t,right:s,fullWidth:a=!0,left:n,tag:o="ul",...i},l)=>{const u=m("navbar-nav",a&&"w-100",s&&"ms-auto",n&&"me-auto",t);return c.jsx(o,{className:u,ref:l,...i,children:e})});Fe.displayName="MDBNavbarNav";const Oe=r.forwardRef(({children:e,className:t,tag:s="button",...a},n)=>{const o=m("navbar-toggler",t);return c.jsx(s,{...a,className:o,ref:n,children:e})});Oe.displayName="MDBNavbarToggler";const Pe=r.forwardRef(({children:e,bgColor:t,color:s,className:a,...n},o)=>{const i=m(t&&`bg-${t}`,s&&`text-${s}`,a);return c.jsx("footer",{className:i,...n,ref:o,children:e})});Pe.displayName="MDBFooter";const He=r.forwardRef(({children:e,size:t,circle:s,center:a,end:n,start:o,className:i,...l},u)=>{const d=m("pagination",a&&"justify-content-center",s&&"pagination-circle",n&&"justify-content-end",t&&`pagination-${t}`,o&&"justify-content-start",i);return c.jsx("ul",{className:d,...l,ref:u,children:e})});He.displayName="MDBPagination";const We=r.forwardRef(({children:e,className:t,tag:s="a",...a},n)=>{const o=m("page-link",t);return c.jsx(s,{className:o,...a,ref:n,children:e})});We.displayName="MDBPaginationLink";const Ge=r.forwardRef(({children:e,className:t,active:s,disabled:a,...n},o)=>{const i=m("page-item",s&&"active",a&&"disabled",t);return c.jsx("li",{className:i,...n,ref:o,children:e})});Ge.displayName="MDBPaginationItem";const yt=({className:e,classNameResponsive:t,responsive:s,align:a,borderColor:n,bordered:o,borderless:i,children:l,color:u,hover:d,small:f,striped:b,...p})=>{const g=m("table",a&&`align-${a}`,n&&`border-${n}`,o&&"table-bordered",i&&"table-borderless",u&&`table-${u}`,d&&"table-hover",f&&"table-sm",b&&"table-striped",e),v=r.useMemo(()=>c.jsx("table",{className:g,...p,children:l}),[l,g,p]);if(s){const y=m(typeof s=="string"?`table-responsive-${s}`:"table-responsive",t);return c.jsx("div",{className:y,children:v})}else return v},Bt=({className:e,children:t,dark:s,light:a,...n})=>{const o=m(s&&"table-dark",a&&"table-light",e);return c.jsx("thead",{className:o,...n,children:t})},Mt=({className:e,children:t,...s})=>{const a=m(e);return c.jsx("tbody",{className:a,...s,children:t})},oe=r.forwardRef(({animated:e,children:t,className:s,style:a,tag:n="div",valuenow:o,valuemax:i,striped:l,bgColor:u,valuemin:d,width:f,...b},p)=>{const g=m("progress-bar",u&&`bg-${u}`,l&&"progress-bar-striped",e&&"progress-bar-animated",s),v={width:`${f}%`,...a};return c.jsx(n,{className:g,style:v,ref:p,role:"progressbar",...b,"aria-valuenow":Number(f)??o,"aria-valuemin":Number(d),"aria-valuemax":Number(i),children:t})});oe.displayName="MDBProgressBar";const qe=r.forwardRef(({className:e,children:t,tag:s="div",height:a,style:n,...o},i)=>{const l=m("progress",e),u={height:`${a}px`,...n};return c.jsx(s,{className:l,ref:i,style:u,...o,children:r.Children.map(t,d=>{if(!r.isValidElement(d)||d.type!==oe){console.error("Progress component only allows ProgressBar as child");return}else return d})})});qe.displayName="MDBProgress";const xt=e=>{const[t,s]=r.useState(!1),[a,n]=r.useState(null);return r.useEffect(()=>{n(()=>new IntersectionObserver(([o])=>{s(o.isIntersecting)}))},[]),r.useEffect(()=>{if(!(!e.current||!a))return a.observe(e.current),()=>a.disconnect()},[a,e]),t},Xe=(e,t)=>r.useMemo(()=>t!==void 0?t:e,[t,e]),Ye=r.forwardRef(({className:e,size:t,contrast:s,value:a,defaultValue:n,id:o,labelClass:i,wrapperClass:l,wrapperStyle:u,wrapperTag:d="div",label:f,onChange:b,children:p,labelRef:g,labelStyle:v,type:y,onBlur:h,readonly:x=!1,showCounter:B=!1,...R},D)=>{var $;const[T,I]=r.useState(n),N=r.useMemo(()=>a!==void 0?a:T,[a,T]),[C,W]=r.useState(0),[E,M]=r.useState(!1),[w,G]=r.useState(0),j=r.useRef(null),L=xt(j),A=r.useRef(null),F=g||A;r.useImperativeHandle(D,()=>j.current);const k=m("form-outline",s&&"form-white",l),P=["date","time","datetime-local","month","week"].includes(y),H=m("form-control",E&&"active",P&&"active",t&&`form-control-${t}`,e),Y=m("form-label",i),X=r.useCallback(()=>{var O;(O=F.current)!=null&&O.clientWidth&&W(F.current.clientWidth*.8+8)},[F]),V=O=>{I(O.target.value),B&&G(O.target.value.length),b==null||b(O)},S=r.useCallback(O=>{j.current&&(M(!!N),h&&h(O))},[N,h]);return r.useEffect(()=>{X()},[($=F.current)==null?void 0:$.clientWidth,X,L]),r.useEffect(()=>{if(N)return M(!0);M(!1)},[N]),c.jsxs(d,{className:k,style:u,children:[c.jsx("input",{type:y,readOnly:x,className:H,onBlur:S,onChange:V,onFocus:X,value:a,defaultValue:n,id:o,ref:j,...R}),f&&c.jsx("label",{className:Y,style:v,htmlFor:o,ref:F,children:f}),c.jsxs("div",{className:"form-notch",children:[c.jsx("div",{className:"form-notch-leading"}),c.jsx("div",{className:"form-notch-middle",style:{width:C}}),c.jsx("div",{className:"form-notch-trailing"})]}),p,B&&R.maxLength&&c.jsx("div",{className:"form-helper",children:c.jsx("div",{className:"form-counter",children:`${w}/${R.maxLength}`})})]})});Ye.displayName="MDBInput";const te=r.forwardRef(({className:e,inputRef:t,labelClass:s,wrapperClass:a,labelStyle:n,wrapperTag:o="div",wrapperStyle:i,label:l,inline:u,btn:d,id:f,btnColor:b,disableWrapper:p,toggleSwitch:g,...v},y)=>{let h="form-check-input",x="form-check-label";d&&(h="btn-check",b?x=`btn btn-${b}`:x="btn btn-primary");const B=m(l&&!d&&"form-check",u&&!d&&"form-check-inline",g&&"form-switch",a),R=m(h,e),D=m(x,s),T=c.jsxs(c.Fragment,{children:[c.jsx("input",{className:R,id:f,ref:t,...v}),l&&c.jsx("label",{className:D,style:n,htmlFor:f,children:l})]});return c.jsx(c.Fragment,{children:p?T:c.jsx(o,{style:i,className:B,ref:y,children:T})})});te.displayName="InputTemplate";const Dt=({...e})=>c.jsx(te,{type:"checkbox",...e}),Nt=({...e})=>c.jsx(te,{type:"radio",...e});function wt({showCollapse:e,setCollapseHeight:t,refCollapse:s,contentRef:a}){r.useEffect(()=>{e||t("0px")},[e]),r.useEffect(()=>{const n=s.current,o=l=>{if(!n)return;const u=l.contentRect.height,d=window.getComputedStyle(n),f=parseFloat(d.paddingTop)+parseFloat(d.paddingBottom)+parseFloat(d.marginBottom)+parseFloat(d.marginTop),b=`${u+f}px`;t(b)},i=new ResizeObserver(([l])=>{o(l)});return i.observe(a.current),()=>{i.disconnect()}},[])}const _e=({className:e,children:t,open:s=!1,id:a,navbar:n,tag:o="div",collapseRef:i,style:l,onOpen:u,onClose:d,...f})=>{const[b,p]=r.useState(!1),[g,v]=r.useState(void 0),[y,h]=r.useState(!1),x=m(y?"collapsing":"collapse",!y&&b&&"show",n&&"navbar-collapse",e),B=r.useRef(null),R=i??B,D=r.useRef(null),T=r.useCallback(()=>{b&&v(void 0)},[b]);return r.useEffect(()=>(window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)}),[T]),wt({showCollapse:b,setCollapseHeight:v,refCollapse:R,contentRef:D}),r.useEffect(()=>{b!==s&&(s?u==null||u():d==null||d(),p(s)),b&&h(!0);const I=setTimeout(()=>{h(!1)},350);return()=>{clearTimeout(I)}},[s,b,u,d]),c.jsx(o,{style:{height:g,...l},id:a,className:x,...f,ref:R,children:c.jsx("div",{ref:D,className:"collapse-content",children:t})})},Ve=r.createContext(null),jt=({children:e,isOpen:t=!1,options:s,animation:a=!0,dropup:n,dropright:o,dropleft:i,onClose:l,onOpen:u})=>{const[d,f]=r.useState(t),[b,p]=r.useState(null),[g,v]=r.useState(null),[y,h]=r.useState(-1);return c.jsx(Ve.Provider,{value:{animation:a,activeIndex:y,isOpenState:d,setReferenceElement:p,setPopperElement:v,setActiveIndex:h,popperElement:g,setIsOpenState:f,referenceElement:b,onClose:l,onOpen:u,dropup:n,options:s,dropright:o,dropleft:i},children:e})},Et=e=>e instanceof HTMLElement,St=e=>e instanceof Node,J=()=>{const e=r.useContext(Ve);if(!e)throw new Error("Missing context data");return e},Tt=()=>{const{isOpenState:e,setIsOpenState:t,setActiveIndex:s,popperElement:a,referenceElement:n,onClose:o}=J(),i=r.useCallback(l=>{e&&(o==null||o(l)),!(!e||!St(l.target)||a&&a.contains(l.target)||n&&n.contains(l.target)||l.defaultPrevented)&&(t(!1),setTimeout(()=>s(-1),300))},[e,t,s,a,n,o]);r.useEffect(()=>(document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)),[i])},Rt=({className:e,tag:t="div",group:s,children:a,dropup:n,dropright:o,dropleft:i,wrapper:l,...u})=>{Tt();const d=m(s?"btn-group":"dropdown",n&&"dropup",o&&"dropend",i&&"dropstart",e);return l?c.jsx(t,{className:d,...u,children:a}):c.jsx(c.Fragment,{children:a})},Ct=({animation:e,onClose:t,onOpen:s,wrapper:a=!0,...n})=>c.jsx(jt,{animation:e,onClose:t,onOpen:s,...n,children:c.jsx(Rt,{wrapper:a,...n})}),It=({childTag:e,children:t,disabled:s,link:a,divider:n,header:o,href:i="#"})=>{const l=m("dropdown-item",s&&"disabled");return a?e?c.jsx(e,{className:l,children:t}):c.jsx("a",{href:i,className:l,children:t}):n?e?c.jsx(e,{className:"dropdown-divider",children:t}):c.jsx("hr",{className:"dropdown-divider"}):o?e?c.jsx(e,{className:"dropdown-header",children:t}):c.jsx("h6",{className:"dropdown-header",children:t}):c.jsx(c.Fragment,{children:t})},kt=({onClick:e,tag:t="li",childTag:s,children:a,style:n,link:o,divider:i,header:l,disabled:u,href:d,preventCloseOnClick:f,...b})=>{const{setIsOpenState:p,onClose:g,setActiveIndex:v}=J(),y=h=>{g==null||g(h),e==null||e(h),!(u||f||h.defaultPrevented)&&(setTimeout(()=>v(-1),300),p(!1))};return c.jsx(t,{style:n,onClick:y,...b,children:c.jsx(It,{link:o,divider:i,header:l,disabled:u,href:d,childTag:s,children:a})})},ue=(e,t,s)=>s==="up"?e<=0?t[t.length-1].props.divider===!0||t[t.length-1].props.disabled===!0:t[e-1].props.divider===!0||t[e-1].props.disabled===!0:e===t.length-1?t[0].props.divider===!0||t[0].props.disabled===!0:t[e+1].props.divider===!0||t[e+1].props.disabled===!0,$t=e=>{const{activeIndex:t,isOpenState:s,setIsOpenState:a,setActiveIndex:n,onClose:o}=J(),i=r.useCallback(l=>{const u=["ArrowUp","ArrowDown","Tab","Enter","Escape"];if(!(!Array.isArray(e)||!u.includes(l.key))){if(Et(document.activeElement)&&document.activeElement.blur(),l.key==="ArrowUp"){l.preventDefault();const d=ue(t,e,"up");if(t===1){n(d?e.length-1:0);return}if(t<=0){n(d?e.length-2:e.length-1);return}n(f=>d?f-2:f-1)}if(l.key==="ArrowDown"||l.key==="Tab"){l.preventDefault();const d=ue(t,e,"down");if(t===e.length-2){n(f=>d?0:f+1);return}if(t===e.length-1){n(d?1:0);return}n(f=>d?f+2:f+1)}if(l.key==="Enter"){const d=document.querySelector('[data-active="true"]'),f=d==null?void 0:d.firstElementChild;if(f)return f.click();if(o==null||o(l),l.defaultPrevented)return;a(!1),setTimeout(()=>n(-1),300)}if(l.key==="Escape"){if(o==null||o(l),l.defaultPrevented)return;a(!1),setTimeout(()=>n(-1),300)}}},[e,a,n,t,o]);r.useEffect(()=>(s&&document.addEventListener("keydown",i),()=>{s&&document.removeEventListener("keydown",i)}),[s,i]),r.useEffect(()=>{const l=document.querySelector('[data-active="true"]'),u=l==null?void 0:l.firstElementChild;return u==null||u.focus(),()=>u==null?void 0:u.blur()},[t])},Lt=()=>{const{isOpenState:e}=J(),[t,s]=r.useState(!1),[a,n]=r.useState(!1),[o,i]=r.useState(e);return r.useEffect(()=>{let l;return e||(n(!0),s(!1),l=setTimeout(()=>{n(!1),i(!1)},300)),e&&(s(!0),n(!1),i(!0),l=setTimeout(()=>{s(!1)},300)),()=>clearTimeout(l)},[e]),{open:o,isFadeIn:t,isFadeOut:a}},At=({className:e,tag:t="ul",children:s,style:a,dark:n,responsive:o="",appendToBody:i=!1,alwaysOpen:l,...u})=>{const{activeIndex:d,setPopperElement:f,isOpenState:b,animation:p,referenceElement:g,popperElement:v,options:y,dropleft:h,dropup:x,dropright:B}=J(),{open:R,isFadeIn:D,isFadeOut:T}=Lt();$t(s);const I=()=>{if(B)return"right-start";if(h)return"left-start";const E=v&&getComputedStyle(v).getPropertyValue("--mdb-position").trim()==="end";return x?E?"top-end":"top-start":E?"bottom-end":"bottom-start"},{styles:N}=ne.usePopper(g,v,{placement:I(),modifiers:[dt.flip],...y}),C=m("dropdown-menu",n&&"dropdown-menu-dark",b&&"show",p&&"animation",D&&"fade-in",T&&"fade-out",o&&`dropdown-menu-${o}`,e);if(!R&&!l)return null;const W=c.jsx(t,{className:C,style:{position:"absolute",zIndex:1e3,...N.popper,...a},ref:f,...u,children:r.Children.map(s,(E,M)=>r.cloneElement(E,{tabIndex:0,"data-active":d===M&&!0,className:m(d===M?"active":"",E.props.className)}))});return c.jsx(ee,{disablePortal:!i,children:W})},Ft=({className:e,tag:t=Q,children:s,onClick:a,split:n,...o})=>{const{setIsOpenState:i,setReferenceElement:l,isOpenState:u,setActiveIndex:d,onClose:f,onOpen:b}=J(),p=m("dropdown-toggle",n&&"dropdown-toggle-split",e),g=v=>{a==null||a(v),u?f==null||f(v):b==null||b(v),!v.defaultPrevented&&(i(y=>!y),setTimeout(()=>d(-1),300))};return c.jsx(t,{onClick:g,ref:l,className:p,"aria-expanded":!!u,...o,children:s})},Ot=({className:e,btnClassName:t,btnChildren:s,children:a,tag:n=Q,onOpen:o,onClose:i,popperTag:l="div",open:u,placement:d="bottom",dismiss:f,options:b,poperStyle:p,onClick:g,disablePortal:v=!1,...y})=>{const[h,x]=r.useState(),[B,R]=r.useState(),{styles:D,attributes:T}=ne.usePopper(h,B,{placement:d,...b}),[I,N]=r.useState(u??!1),C=Xe(I,u),[W,E]=r.useState(!1),[M,w]=r.useState(!1),G=m("popover fade",W&&C&&"show",e),j=A=>{C&&!f?i==null||i():C||o==null||o(),f?(w(!0),N(!0)):N(!C),g&&g(A)},L=r.useCallback(A=>{M&&B&&C&&h&&!h.contains(A.target)&&(N(!1),i==null||i())},[M,C,B,h,i]);return r.useEffect(()=>{const A=setTimeout(()=>{E(C)},150);return()=>{clearTimeout(A)}},[C]),r.useEffect(()=>(C&&document.addEventListener("mousedown",L),()=>{document.removeEventListener("mousedown",L)}),[L,C]),c.jsxs(c.Fragment,{children:[c.jsx(n,{onClick:j,className:t,...y,ref:x,children:s}),(W||C)&&c.jsx(ee,{disablePortal:v,children:c.jsx(l,{className:G,ref:R,style:{...D.popper,...p},...T.popper,children:a})})]})},Pt=({className:e,children:t,tag:s="div",...a})=>{const n=m("popover-body",e);return c.jsx(s,{className:n,...a,children:t})},Ht=({className:e,children:t,tag:s="h3",...a})=>{const n=m("popover-header",e);return c.jsx(s,{className:n,...a,children:t})},Wt=e=>r.useCallback(()=>e==="top"?{top:-50,left:0}:e==="bottom"?{top:50,left:0}:e==="left"?{top:0,left:-50}:e==="right"?{top:0,left:50}:{top:0,left:0},[e])(),Gt=e=>{const t=e instanceof HTMLElement?e:e.current;if(!t)return[];const s=Array.from(t.querySelectorAll("button, a, input, select, textarea, [tabindex]")).map(n=>({element:n,focused:n===document.activeElement}));return s?s.filter(n=>n.element.tabIndex!==-1).sort((n,o)=>n.element.tabIndex===o.element.tabIndex?0:o.element.tabIndex===null?-1:n.element.tabIndex===null?1:n.element.tabIndex-o.element.tabIndex):[]},qt=(e,t,s)=>{let a=e;return t?a=e-1<0?s-1:e-1:a=e+1>=s?0:e+1,a},Xt={opacity:1,top:0,left:0},Yt=({animationDirection:e="top",appendToBody:t,backdrop:s=!0,children:a,className:n,closeOnEsc:o=!0,leaveHiddenModal:i=!1,modalRef:l,onClose:u,onClosePrevented:d,onOpen:f,open:b,defaultOpen:p=!1,staticBackdrop:g,nonInvasive:v=!1,tag:y="div",animationVariants:h={},...x})=>{const[B,R]=r.useState(p),D=Xe(B,b),[T,I]=r.useState(!1),[N,C]=r.useState([]),W=r.useMemo(()=>ae.motion(y),[y]),E=r.useRef(null),M=l||E,w={opacity:0,...Wt(e),...h.initial?h.initial:{}},G={...Xt,...h.animate?h.animate:{}},j={...w,...h.exit?h.exit:{}},L=m("modal",T&&"modal-static",e,D&&v&&"modal-non-invasive-show",n),A=m("modal-backdrop"),F=r.useCallback(()=>{R(!1),u==null||u()},[u]),k=r.useCallback(()=>{I(!0),d==null||d(),setTimeout(()=>{I(!1)},300)},[d]),q=r.useCallback(H=>{v&&!D||D&&H.target===M.current&&(g?k():F())},[D,M,g,F,v,k]),P=r.useCallback(H=>{if(D&&H.key==="Tab"){H.preventDefault();const Y=H.shiftKey,X=N.findIndex(S=>S.focused),V=qt(X,Y,N.length);C(S=>S==null?void 0:S.map(($,O)=>({...$,focused:O===V}))),N[V].element.focus()}o&&D&&H.key==="Escape"&&(H.preventDefault(),g?k():F())},[D,o,g,F,k,N]);return r.useEffect(()=>{if(!M||!D){C([]);return}C(()=>Gt(M))},[M,D,a]),r.useEffect(()=>{const H=()=>{const X=document.documentElement.clientWidth;return Math.abs(window.innerWidth-X)},Y=window.innerWidth>document.documentElement.clientWidth&&window.innerWidth>=576;if(D&&Y&&!v){const X=H();document.body.classList.add("modal-open"),document.body.style.overflow="hidden",document.body.style.paddingRight=`${X}px`}else document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight="";return()=>{document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight=""}},[D,v]),r.useEffect(()=>{const H=Y=>{Y.target.closest(".modal-dialog")||window.addEventListener("mouseup",q,{once:!0})};return window.addEventListener("mousedown",H),window.addEventListener("keydown",P),()=>{window.removeEventListener("mousedown",H),window.removeEventListener("keydown",P)}},[P,q]),c.jsx(ee,{disablePortal:!t,children:c.jsxs(ae.AnimatePresence,{children:[(D||i)&&c.jsxs(c.Fragment,{children:[c.jsx(W,{initial:w,animate:G,exit:j,className:L,ref:M,style:{display:D?"block":"none",pointerEvents:v?"none":"initial"},...x,children:a}),s&&D&&!v&&c.jsx(ae.motion.div,{initial:{opacity:0},animate:{opacity:.5},exit:{opacity:0},onClick:()=>{g?d==null||d():F()},className:A})]}),"),"]})})},Ke=r.forwardRef(({className:e,centered:t,children:s,size:a,scrollable:n,tag:o="div",...i},l)=>{const u=m("modal-dialog",n&&"modal-dialog-scrollable",t&&"modal-dialog-centered",a&&`modal-${a}`,e);return c.jsx(o,{className:u,...i,ref:l,children:s})});Ke.displayName="MDBModalDialog";const Ue=r.forwardRef(({className:e,children:t,tag:s="div",...a},n)=>{const o=m("modal-content",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});Ue.displayName="MDBModalContent";const Je=r.forwardRef(({className:e,children:t,tag:s="div",...a},n)=>{const o=m("modal-header",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});Je.displayName="MDBModalHeader";const Qe=r.forwardRef(({className:e,children:t,tag:s="h5",...a},n)=>{const o=m("modal-title",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});Qe.displayName="MDBModalTitle";const Ze=r.forwardRef(({className:e,children:t,tag:s="div",...a},n)=>{const o=m("modal-body",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});Ze.displayName="MDBModalBody";const ze=r.forwardRef(({className:e,children:t,tag:s="div",...a},n)=>{const o=m("modal-footer",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});ze.displayName="MDBModalFooter";const ce=r.createContext({activeElement:null,setTargets:null}),_t=({container:e=typeof window!==void 0?window:null,className:t,children:s,offset:a=10,...n})=>{const o=m("sticky-top",t),[i,l]=r.useState(null),[u,d]=r.useState([]),f=e instanceof Window,b=r.useCallback(()=>{var x,B,R;if(!u.length)return;const p=f?window.pageYOffset:(x=e==null?void 0:e.current)==null?void 0:x.scrollTop,g=Number(a),v=(B=u[u.length-1])==null?void 0:B.current,y=(R=u[0])==null?void 0:R.current;p+g{var W;const I=(W=u[T+1])==null?void 0:W.current,N=D.current;if(p>N.offsetTop-g&&p<(I==null?void 0:I.offsetTop)-g){l(N);return}}),p>v.offsetTop-g&&l(v)},[a,u,f,e]);return r.useEffect(()=>{const p=f?e:e==null?void 0:e.current;return b(),p==null||p.addEventListener("scroll",b),()=>{p==null||p.removeEventListener("scroll",b)}},[b,e,f]),c.jsx("div",{className:o,...n,children:c.jsx("ul",{className:"nav flex-column nav-pills menu-sidebar",children:c.jsx(ce.Provider,{value:{activeElement:i,setTargets:d},children:s})})})},Vt=({className:e,collapsible:t,targetRef:s,children:a,subsections:n,onClick:o,onActivate:i,...l})=>{var y;const{activeElement:u,setTargets:d}=r.useContext(ce),f=()=>n==null?void 0:n.some(h=>h.current.id===(u==null?void 0:u.id)),b=(u==null?void 0:u.id)===((y=s.current)==null?void 0:y.id),p=b||f();b&&(i==null||i(u==null?void 0:u.id));const g=m("nav-link",t&&"collapsible-scrollspy",p&&"active",e),v=h=>{const x=s==null?void 0:s.current;x==null||x.scrollIntoView({behavior:"smooth"}),o==null||o(h)};return r.useEffect(()=>{d(h=>[...h,s])},[d,s]),c.jsx("li",{className:"nav-item",style:{cursor:"pointer"},children:c.jsx("a",{className:g,onClick:v,...l,children:a})})},Kt=({collapsible:e,className:t,children:s,style:a,...n})=>{const[o,i]=r.useState("0px"),{activeElement:l}=r.useContext(ce),u=m("nav flex-column",t),d=r.useRef(null);r.useEffect(()=>{const b=()=>e==null?void 0:e.some(g=>g.current.id===(l==null?void 0:l.id)),p=d.current;b()?i(`${p==null?void 0:p.scrollHeight}px`):i("0px")},[l,e]);const f={overflow:"hidden",height:o,transition:"height .5s ease",flexWrap:"nowrap",...a};return c.jsx("ul",{className:u,ref:d,style:e?f:a,...n,children:s})},Ut=({...e})=>c.jsx(te,{type:"checkbox",toggleSwitch:!0,...e}),Jt=({value:e,min:t="0",max:s="100",showThumb:a})=>{const n=Number(e),[o,i]=r.useState((n||0-Number(t))*100/(Number(s)-Number(t))),l=m("thumb",a&&"thumb-active");return r.useEffect(()=>{i((Number(e)-Number(t))*100/(Number(s)-Number(t)))},[e,s,t]),c.jsx("span",{className:l,style:{left:`calc(${o}% + (${8-o*.15}px))`},children:c.jsx("span",{className:"thumb-value",children:e})})},Qt=({className:e,defaultValue:t=0,disableTooltip:s,labelId:a,max:n,min:o,onMouseDown:i,onMouseUp:l,onTouchStart:u,onTouchEnd:d,onChange:f,labelClass:b,value:p,label:g,id:v,inputRef:y,...h})=>{const[x,B]=r.useState(t),[R,D]=r.useState(!1),T=m("form-range",e),I=m("form-label",b),N=w=>{D(!0),i&&i(w)},C=w=>{D(!1),l&&l(w)},W=w=>{D(!0),u&&u(w)},E=w=>{D(!1),d&&d(w)},M=w=>{B(w.target.value),f&&f(w)};return c.jsxs(c.Fragment,{children:[g&&c.jsx("label",{className:I,id:a,htmlFor:v,children:g}),c.jsxs("div",{className:"range",children:[c.jsx("input",{type:"range",onMouseDown:N,onMouseUp:C,onTouchStart:W,onTouchEnd:E,onChange:M,className:T,value:p||x,id:v,min:o,max:n,ref:y,...h}),!s&&c.jsx(Jt,{value:p||x,showThumb:R,min:o,max:n})]})]})},et=r.forwardRef(({className:e,labelClass:t,labelStyle:s,inputRef:a,size:n,label:o,id:i,...l},u)=>{const d=m("form-control",`form-control-${n}`,e),f=m("form-label",t),b=r.useRef(null);return r.useImperativeHandle(u,()=>b.current||(a==null?void 0:a.current)),c.jsxs(c.Fragment,{children:[o&&c.jsx("label",{className:f,style:s,htmlFor:i,children:o}),c.jsx("input",{className:d,type:"file",id:i,ref:b,...l})]})});et.displayName="MDBFile";const tt=r.forwardRef(({className:e,children:t,noBorder:s,textBefore:a,textAfter:n,noWrap:o,tag:i="div",textTag:l="span",textClass:u,size:d,textProps:f,...b},p)=>{const g=m("input-group",o&&"flex-nowrap",d&&`input-group-${d}`,e),v=m("input-group-text",s&&"border-0",u),y=h=>c.jsx(c.Fragment,{children:h&&Array.isArray(h)?h.map((x,B)=>c.jsx(l,{className:v,...f,children:x},B)):c.jsx(l,{className:v,...f,children:h})});return c.jsxs(i,{className:g,ref:p,...b,children:[a&&y(a),t,n&&y(n)]})});tt.displayName="MDBInputGroup";const st=r.forwardRef(({className:e,children:t,isValidated:s=!1,onReset:a,onSubmit:n,noValidate:o=!0,...i},l)=>{const[u,d]=r.useState(s),f=m("needs-validation",u&&"was-validated",e),b=g=>{g.preventDefault(),d(!0),n&&n(g)},p=g=>{g.preventDefault(),d(!1),a&&a(g)};return r.useEffect(()=>{d(s)},[s]),c.jsx("form",{className:f,onSubmit:b,onReset:p,ref:l,noValidate:o,...i,children:t})});st.displayName="MDBValidation";const at=r.forwardRef(({className:e,fill:t,pills:s,justify:a,children:n,...o},i)=>{const l=m("nav",s?"nav-pills":"nav-tabs",t&&"nav-fill",a&&"nav-justified",e);return c.jsx("ul",{className:l,ref:i,...o,children:n})});at.displayName="MDBTabs";const nt=r.forwardRef(({className:e,children:t,style:s,tag:a="li",...n},o)=>{const i=m("nav-item",e);return c.jsx(a,{className:i,style:{cursor:"pointer",...s},role:"presentation",ref:o,...n,children:t})});nt.displayName="MDBTabsItem";const rt=r.forwardRef(({className:e,color:t,active:s,onOpen:a,onClose:n,children:o,...i},l)=>{const u=m("nav-link",s&&"active",t&&`bg-${t}`,e);return r.useEffect(()=>{s?a==null||a():n==null||n()},[s]),c.jsx("a",{className:u,ref:l,...i,children:o})});rt.displayName="MDBTabsLink";const ot=r.forwardRef(({className:e,tag:t="div",children:s,...a},n)=>{const o=m("tab-content",e);return c.jsx(t,{className:o,ref:n,...a,children:s})});ot.displayName="MDBTabsContent";const ct=r.forwardRef(({className:e,tag:t="div",open:s,children:a,...n},o)=>{const[i,l]=r.useState(!1),u=m("tab-pane","fade",i&&"show",s&&"active",e);return r.useEffect(()=>{let d;return s?d=setTimeout(()=>{l(!0)},100):l(!1),()=>{clearTimeout(d)}},[s]),c.jsx(t,{className:u,role:"tabpanel",ref:o,...n,children:a})});ct.displayName="MDBTabsPane";const le=r.createContext({active:0}),Zt=({imagesCount:e,to:t})=>{const{active:s}=r.useContext(le);return c.jsx("ol",{className:"carousel-indicators",children:Array.from(Array(e)).map((a,n)=>c.jsx("li",{"data-mdb-target":n,className:m(s===n&&"active"),onClick:()=>t(n)},n))})},zt=({move:e})=>c.jsxs(c.Fragment,{children:[c.jsxs("a",{role:"button",className:"carousel-control-prev",onClick:()=>e("prev"),children:[c.jsx("span",{className:"carousel-control-prev-icon"}),c.jsx("span",{className:"visually-hidden",children:"Previous"})]}),c.jsxs("a",{role:"button",className:"carousel-control-next",onClick:()=>e("next"),children:[c.jsx("span",{className:"carousel-control-next-icon"}),c.jsx("span",{className:"visually-hidden",children:"Next"})]})]}),es=e=>{const t=getComputedStyle(e),s=getComputedStyle(e==null?void 0:e.parentNode);return t.display!=="none"&&s.display!=="none"&&t.visibility!=="hidden"},ts=e=>Array.from(e==null?void 0:e.querySelectorAll(".carousel-item")),ss=e=>e.offsetHeight,as=(e,t,s=!0)=>{if(!s){de(e);return}const a=ns(t);t.addEventListener("transitionend",()=>de(e),{once:!0}),os(t,a)},de=e=>{typeof e=="function"&&e()},ns=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:s}=window.getComputedStyle(e);const a=Number.parseFloat(t),n=Number.parseFloat(s);return!a&&!n?0:(t=t.split(",")[0],s=s.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(s))*1e3)},rs=e=>{e.dispatchEvent(new Event("transitionend"))},os=(e,t)=>{let s=!1;const n=t+5;function o(){s=!0,e.removeEventListener("transitionend",o)}e.addEventListener("transitionend",o),setTimeout(()=>{s||rs(e)},n)},cs=({fade:e=!1,className:t,carouselInnerClassName:s,dark:a,children:n,interval:o=5e3,keyboard:i=!1,touch:l=!0,showControls:u,showIndicators:d,onSlide:f,...b})=>{const p=r.useRef([]),g=r.useRef(null),v=r.useRef(0),y=r.useRef(!1),[h,x]=r.useState(0),[B,R]=r.useState(0),[D,T]=r.useState({initialX:0,initialY:0}),[I,N]=r.useState(!1),C=r.useRef(null),W=m("carousel","slide",e&&"carousel-fade",a&&"carousel-dark",t),E=m("carousel-inner",s),M=r.useCallback((S,$)=>{if($!==void 0)v.current=$,x($);else{const O=h===B-1?0:h+1,K=h===0?B-1:h-1;v.current=S==="next"?O:K,x(S==="next"?O:K)}},[h,B]),w=r.useCallback(()=>{g.current&&(clearInterval(g.current),g.current=null)},[]),G=r.useCallback((S,$,O)=>{var ie;if(!p.current||p.current.length<2)return;N(!0);const _=p.current[h],U=Boolean(g.current),Z=S==="next",z=Z?"carousel-item-start":"carousel-item-end",se=Z?"carousel-item-next":"carousel-item-prev";if($.classList.contains("active")){y.current=!1;return}M(S,O),!(!_||!$)&&(y.current=!0,U&&w(),(ie=C.current)!=null&&ie.classList.contains("slide")?($.classList.add(se),ss($),_.classList.add(z),$.classList.add(z),as(()=>{N(!1),$.classList.remove(z,se),$.classList.add("active"),_.classList.remove("active",se,z),y.current=!1},_,!0)):(_.classList.remove("active"),$.classList.add("active"),y.current=!1))},[C,h,M,w]),j=S=>{y.current||(y.current=!0,setTimeout(()=>{y.current=!1},S))},L=r.useCallback(S=>{const $=S==="prev",_=(v.current+($?-1:1))%B,U=p.current;return _===-1?U[B-1]:U[_]},[B]),A=S=>{const $=v.current,O=S>$?"next":"prev",K=p.current;return{direction:O,nextElement:K[S]}},F=S=>{if(y.current||(j(700),S>B-1||S<0))return;const{direction:$,nextElement:O}=A(S);G($,O,S)},k=r.useCallback(S=>{if(y.current)return;j(600);const $=L(S);G(S,$)},[L,G]),q=r.useCallback(()=>{const{visibilityState:S,hidden:$}=document;if(S)return $||!es(C.current)?void 0:k("next");k("next")},[C,k]),P=r.useCallback(()=>{var $,O;const S=(O=($=n==null?void 0:n[h])==null?void 0:$.props)==null?void 0:O.interval;g.current&&(clearInterval(g.current),g.current=null),g.current=setInterval(q,S||o)},[q,o,n,h]),H=S=>{l&&T({initialX:S.touches[0].clientX,initialY:S.touches[0].clientY})},Y=S=>{y.current=!0;const{initialX:$,initialY:O}=D;if(!$||!O)return;const K=S.touches[0].clientX,_=S.touches[0].clientY,U=$-K,Z=O-_;Math.abs(U)>Math.abs(Z)&&(U>0?k("prev"):k("next")),T({initialX:0,initialY:0})},X=()=>{y.current=!1},V=r.useCallback(S=>{switch(S.key){case"ArrowLeft":S.preventDefault(),k("prev");break;case"ArrowRight":S.preventDefault(),k("next");break}},[k]);return r.useEffect(()=>{if(i)return window.addEventListener("keydown",V),()=>{window.removeEventListener("keydown",V)}},[V,i]),r.useEffect(()=>{const S=C.current,$=ts(S);p.current=$,R($.length)},[C]),r.useEffect(()=>{I&&(f==null||f())},[I,f]),r.useEffect(()=>(P(),()=>{w()}),[P,w]),c.jsx("div",{onTouchStart:H,onTouchMove:Y,onTouchEnd:X,onMouseEnter:w,onMouseLeave:P,className:W,ref:C,...b,children:c.jsx("div",{className:E,children:c.jsxs(le.Provider,{value:{active:h},children:[d&&c.jsx(Zt,{to:F,imagesCount:B}),n,u&&c.jsx(zt,{move:k})]})})})},ls=({className:e,children:t,itemId:s,...a})=>{const{active:n}=r.useContext(le),o=r.useRef(!0),i=r.useRef(null),l=m("carousel-item",e);return r.useEffect(()=>{if(o.current&&n===s-1){const u=i.current;u==null||u.classList.add("active")}o.current=!1},[n,s]),c.jsx("div",{className:l,ref:i,...a,children:t})},is=({className:e,children:t,...s})=>{const a=m("carousel-caption d-none d-md-block",e);return c.jsx("div",{className:a,...s,children:t})},lt=r.createContext({activeItem:0,setActiveItem:null,alwaysOpen:!1,initialActive:0}),it=r.forwardRef(({alwaysOpen:e,borderless:t,className:s,flush:a,active:n,initialActive:o=0,tag:i="div",children:l,onChange:u,...d},f)=>{const b=r.useMemo(()=>typeof n<"u",[n]),p=m("accordion",a&&"accordion-flush",t&&"accordion-borderless",s),[g,v]=r.useState(o);return c.jsx(i,{className:p,ref:f,...d,children:c.jsx(lt.Provider,{value:{activeItem:b?n:g,setActiveItem:v,alwaysOpen:e,initialActive:o,onChange:u},children:l})})});it.displayName="MDBAccordion";const ut=r.forwardRef(({className:e,bodyClassName:t,bodyStyle:s,headerClassName:a,collapseId:n,headerTitle:o,headerStyle:i,btnClassName:l,tag:u="div",children:d,...f},b)=>{const{activeItem:p,setActiveItem:g,alwaysOpen:v,onChange:y}=r.useContext(lt),h=r.useMemo(()=>Array.isArray(p)?p.includes(n):p===n,[p,n]),x=m("accordion-item",e),B=m("accordion-header",a),R=m("accordion-body",t),D=m("accordion-button",!h&&"collapsed",l),T=r.useCallback(I=>{let N=I;Array.isArray(p)?p.includes(I)?N=p.filter(W=>W!==I):N=v?[...p,I]:[I]:(N=p===I?0:I,v&&(N=[N])),y==null||y(N),g(N)},[y,p,g,v]);return c.jsxs(u,{className:x,ref:b,...f,children:[c.jsx("h2",{className:B,style:i,children:c.jsx("button",{onClick:()=>T(n),className:D,type:"button",children:o})}),c.jsx(_e,{id:n.toString(),open:h,children:c.jsx("div",{className:R,style:s,children:d})})]})});ut.displayName="MDBAccordionItem";const us=({className:e,size:t,contrast:s,value:a,defaultValue:n,id:o,labelClass:i,wrapperClass:l,wrapperStyle:u,wrapperTag:d="div",label:f,onChange:b,children:p,labelRef:g,labelStyle:v,inputRef:y,onBlur:h,readonly:x=!1,...B})=>{var q;const R=r.useRef(null),D=r.useRef(null),T=g||R,I=y||D,[N,C]=r.useState(a||n),[W,E]=r.useState(0),[M,w]=r.useState(a!==void 0&&a.length>0||n!==void 0&&n.length>0),G=m("form-outline",s&&"form-white",l),j=m("form-control",M&&"active",t&&`form-control-${t}`,e),L=m("form-label",i);r.useEffect(()=>{var P;T.current&&((P=T.current)==null?void 0:P.clientWidth)!==0&&E(T.current.clientWidth*.8+8)},[T,(q=T.current)==null?void 0:q.clientWidth]);const A=()=>{T.current&&E(T.current.clientWidth*.8+8)};r.useEffect(()=>{a!==void 0&&(a.length>0?w(!0):w(!1))},[a]),r.useEffect(()=>{n!==void 0&&(n.length>0?w(!0):w(!1))},[n]);const F=P=>{C(P.currentTarget.value),b&&b(P)},k=r.useCallback(P=>{N!==void 0&&N.length>0||a!==void 0&&a.length>0?w(!0):w(!1),h&&h(P)},[N,a,h]);return c.jsxs(d,{className:G,style:{...u},children:[c.jsx("textarea",{readOnly:x,className:j,onBlur:k,onChange:F,onFocus:A,defaultValue:n,value:a,id:o,ref:I,...B}),f&&c.jsx("label",{className:L,style:v,htmlFor:o,ref:T,children:f}),c.jsxs("div",{className:"form-notch",children:[c.jsx("div",{className:"form-notch-leading"}),c.jsx("div",{className:"form-notch-middle",style:{width:W}}),c.jsx("div",{className:"form-notch-trailing"})]}),p]})},ds=({children:e,invalid:t,feedback:s="Looks good!",tooltip:a,tag:n="div",...o})=>{const[i,l]=r.useState(null),u=r.useRef(null),d=m(t?`invalid-${a?"tooltip":"feedback"}`:`valid-${a?"tooltip":"feedback"}`);return r.useEffect(()=>{var b,p;const f=(p=(b=u.current)==null?void 0:b.querySelector("input, textarea"))==null?void 0:p.parentElement;f&&l(f)},[]),c.jsxs(n,{ref:u,...o,children:[i&&fe.createPortal(c.jsx("div",{className:d,children:s}),i),e]})},fs=({children:e})=>{const[t,s]=r.useState(!1);return r.useEffect(()=>{s(!0)},[]),c.jsx(c.Fragment,{children:t?e:null})};exports.MDBAccordion=it;exports.MDBAccordionItem=ut;exports.MDBBadge=ge;exports.MDBBreadcrumb=Ce;exports.MDBBreadcrumbItem=Ie;exports.MDBBtn=Q;exports.MDBBtnGroup=be;exports.MDBCard=ve;exports.MDBCardBody=De;exports.MDBCardFooter=Ne;exports.MDBCardGroup=je;exports.MDBCardHeader=ye;exports.MDBCardImage=pt;exports.MDBCardLink=gt;exports.MDBCardOverlay=we;exports.MDBCardSubTitle=Be;exports.MDBCardText=xe;exports.MDBCardTitle=Me;exports.MDBCarousel=cs;exports.MDBCarouselCaption=is;exports.MDBCarouselItem=ls;exports.MDBCheckbox=Dt;exports.MDBClientOnly=fs;exports.MDBCol=pe;exports.MDBCollapse=_e;exports.MDBContainer=me;exports.MDBDropdown=Ct;exports.MDBDropdownItem=kt;exports.MDBDropdownMenu=At;exports.MDBDropdownToggle=Ft;exports.MDBFile=et;exports.MDBFooter=Pe;exports.MDBIcon=ht;exports.MDBInput=Ye;exports.MDBInputGroup=tt;exports.MDBListGroup=Ee;exports.MDBListGroupItem=Se;exports.MDBModal=Yt;exports.MDBModalBody=Ze;exports.MDBModalContent=Ue;exports.MDBModalDialog=Ke;exports.MDBModalFooter=ze;exports.MDBModalHeader=Je;exports.MDBModalTitle=Qe;exports.MDBNavbar=ke;exports.MDBNavbarBrand=Le;exports.MDBNavbarItem=Ae;exports.MDBNavbarLink=$e;exports.MDBNavbarNav=Fe;exports.MDBNavbarToggler=Oe;exports.MDBPagination=He;exports.MDBPaginationItem=Ge;exports.MDBPaginationLink=We;exports.MDBPopover=Ot;exports.MDBPopoverBody=Pt;exports.MDBPopoverHeader=Ht;exports.MDBProgress=qe;exports.MDBProgressBar=oe;exports.MDBRadio=Nt;exports.MDBRange=Qt;exports.MDBRipple=re;exports.MDBRow=Te;exports.MDBScrollspy=_t;exports.MDBScrollspyLink=Vt;exports.MDBScrollspySubList=Kt;exports.MDBSpinner=he;exports.MDBSwitch=Ut;exports.MDBTable=yt;exports.MDBTableBody=Mt;exports.MDBTableHead=Bt;exports.MDBTabs=at;exports.MDBTabsContent=ot;exports.MDBTabsItem=nt;exports.MDBTabsLink=rt;exports.MDBTabsPane=ct;exports.MDBTextArea=us;exports.MDBTooltip=bt;exports.MDBTypography=Re;exports.MDBValidation=st;exports.MDBValidationItem=ds;