react-luminus-components 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./InvalidFeedback.module-BGAwT2d5.js"),o=require("./hasClass-Cu3nPEbB.js"),d=require("react"),Le=require("react-dom");function Ie(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,a.get?a:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const m=Ie(d),We=()=>n.jsxRuntimeExports.jsxs("div",{className:n.classNames("luminus-loading",n.classes.loading),children:[n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",n.classes.spinnerGrow,"text-primary"),role:"status"}),n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",n.classes.spinnerGrow,"text-primary",n.classes.second),role:"status"}),n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",n.classes.spinnerGrow,"text-primary",n.classes.third),role:"status"})]}),_e=({variant:t,className:e,children:s})=>{switch(t){case"h1":return n.jsxRuntimeExports.jsx("h1",{className:n.classNames("luminus-text-primary luminus-h1",n.classes$1.h1,e),children:s});case"h3":return n.jsxRuntimeExports.jsx("h3",{className:n.classNames("luminus-text luminus-h3",n.classes$1.h3,e),children:s});case"h6":return n.jsxRuntimeExports.jsx("h6",{className:n.classNames("luminus-text luminus-h6",n.classes$1.h6,e),children:s});case"subtitle":return n.jsxRuntimeExports.jsx("div",{className:n.classNames("luminus-text luminus-subtitle",n.classes$1.subtitle,e),children:s});case"body":return n.jsxRuntimeExports.jsx("div",{className:n.classNames("luminus-text luminus-body",n.classes$1.body,e),children:s});case"body2":return n.jsxRuntimeExports.jsx("div",{className:n.classNames("luminus-text luminus-body2",n.classes$1.body2,e),children:s});case"caption":return n.jsxRuntimeExports.jsx("div",{className:n.classNames("luminus-text-muted luminus-caption",n.classes$1.caption,e),children:s});default:return n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:s})}},He=({variant:t,className:e,children:s})=>n.jsxRuntimeExports.jsx(_e,{variant:t,className:e,children:s}),Ue=t=>m.forwardRef((e,s)=>n.jsxRuntimeExports.jsx("div",{...e,ref:s,className:n.classNames(e.className,t)}));function ye(t){const e=d.useRef(null);return d.useEffect(()=>{e.current=t}),e.current}const Pe={"aria-label":o.PropTypes.string,onClick:o.PropTypes.func,variant:o.PropTypes.oneOf(["white"])},me=m.forwardRef(({className:t,variant:e,"aria-label":s="Close",...a},r)=>n.jsxRuntimeExports.jsx("button",{ref:r,type:"button",className:n.classNames("btn-close",e&&`btn-close-${e}`,t),"aria-label":s,...a}));me.displayName="CloseButton";me.propTypes=Pe;const Ke=me;var Ge=Function.prototype.bind.call(Function.prototype.call,[].slice);function j(t,e){return Ge(t.querySelectorAll(e))}const qe="data-rr-ui-",ze="rrUi";function Re(t){return`${qe}${t}`}function Ve(t){return`${ze}${t}`}var J;function ge(t){if((!J&&J!==0||t)&&o.canUseDOM){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),J=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return J}function ce(t){t===void 0&&(t=o.ownerDocument());try{var e=t.activeElement;return!e||!e.nodeName?null:e}catch{return t.body}}function Xe(t=document){const e=t.defaultView;return Math.abs(e.innerWidth-t.documentElement.clientWidth)}const xe=Re("modal-open");class Ye{constructor({ownerDocument:e,handleContainerOverflow:s=!0,isRTL:a=!1}={}){this.handleContainerOverflow=s,this.isRTL=a,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return Xe(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const s={overflow:"hidden"},a=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[a]:r.style[a]},e.scrollBarWidth&&(s[a]=`${parseInt(o.style(r,a)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(xe,""),o.style(r,s)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){const s=this.getElement();s.removeAttribute(xe),Object.assign(s.style,e.style)}add(e){let s=this.modals.indexOf(e);return s!==-1||(s=this.modals.length,this.modals.push(e),this.setModalAttributes(e),s!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),s}remove(e){const s=this.modals.indexOf(e);s!==-1&&(this.modals.splice(s,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}const fe=Ye,Je=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Qe(t,e){if(t==null)return{};var s={},a=Object.keys(t),r,l;for(l=0;l<a.length;l++)r=a[l],!(e.indexOf(r)>=0)&&(s[r]=t[r]);return s}let de;function Ze(t){return de||(de=new fe({ownerDocument:t==null?void 0:t.document})),de}function et(t){const e=o.useWindow(),s=t||Ze(e),a=d.useRef({dialog:null,backdrop:null});return Object.assign(a.current,{add:()=>s.add(a.current),remove:()=>s.remove(a.current),isTopModal:()=>s.isTopModal(a.current),setDialogRef:d.useCallback(r=>{a.current.dialog=r},[]),setBackdropRef:d.useCallback(r=>{a.current.backdrop=r},[])})}const ve=d.forwardRef((t,e)=>{let{show:s=!1,role:a="dialog",className:r,style:l,children:E,backdrop:p=!0,keyboard:y=!0,onBackdropClick:b,onEscapeKeyDown:h,transition:S,runTransition:R,backdropTransition:N,runBackdropTransition:Q,autoFocus:_=!0,enforceFocus:Z=!0,restoreFocus:T=!0,restoreFocusOptions:ee,renderDialog:H,renderBackdrop:te=c=>n.jsxRuntimeExports.jsx("div",Object.assign({},c)),manager:se,container:ne,onShow:U,onHide:$=()=>{},onExit:oe,onExited:D,onExiting:P,onEnter:K,onEntering:G,onEntered:q}=t,ae=Qe(t,Je);const g=o.useWindow(),M=o.useWaitForDOMRef(ne),u=et(se),re=o.useMounted(),z=ye(s),[v,w]=d.useState(!s),f=d.useRef(null);d.useImperativeHandle(e,()=>u,[u]),o.canUseDOM&&!z&&s&&(f.current=ce(g==null?void 0:g.document)),s&&v&&w(!1);const x=o.useEventCallback(()=>{if(u.add(),C.current=o.listen(document,"keydown",le),L.current=o.listen(document,"focus",()=>setTimeout(ie),!0),U&&U(),_){var c,Y;const W=ce((c=(Y=u.dialog)==null?void 0:Y.ownerDocument)!=null?c:g==null?void 0:g.document);u.dialog&&W&&!o.contains(u.dialog,W)&&(f.current=W,u.dialog.focus())}}),F=o.useEventCallback(()=>{if(u.remove(),C.current==null||C.current(),L.current==null||L.current(),T){var c;(c=f.current)==null||c.focus==null||c.focus(ee),f.current=null}});d.useEffect(()=>{!s||!M||x()},[s,M,x]),d.useEffect(()=>{v&&F()},[v,F]),o.useWillUnmount(()=>{F()});const ie=o.useEventCallback(()=>{if(!Z||!re()||!u.isTopModal())return;const c=ce(g==null?void 0:g.document);u.dialog&&c&&!o.contains(u.dialog,c)&&u.dialog.focus()}),V=o.useEventCallback(c=>{c.target===c.currentTarget&&(b==null||b(c),p===!0&&$())}),le=o.useEventCallback(c=>{y&&o.isEscKey(c)&&u.isTopModal()&&(h==null||h(c),c.defaultPrevented||$())}),L=d.useRef(),C=d.useRef(),X=(...c)=>{w(!0),D==null||D(...c)};if(!M)return null;const k=Object.assign({role:a,ref:u.setDialogRef,"aria-modal":a==="dialog"?!0:void 0},ae,{style:l,className:r,tabIndex:-1});let I=H?H(k):n.jsxRuntimeExports.jsx("div",Object.assign({},k,{children:m.cloneElement(E,{role:"document"})}));I=o.renderTransition(S,R,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!s,onExit:oe,onExiting:P,onExited:X,onEnter:K,onEntering:G,onEntered:q,children:I});let O=null;return p&&(O=te({ref:u.setBackdropRef,onClick:V}),O=o.renderTransition(N,Q,{in:!!s,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:O})),n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:Le.createPortal(n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[O,I]}),M)})});ve.displayName="Modal";const tt=Object.assign(ve,{Manager:fe});function st(t,e){t.classList?t.classList.add(e):o.hasClass(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function Ee(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function nt(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=Ee(t.className,e):t.setAttribute("class",Ee(t.className&&t.className.baseVal||"",e))}const A={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class ot extends fe{adjustAndStore(e,s,a){const r=s.style[e];s.dataset[e]=r,o.style(s,{[e]:`${parseFloat(o.style(s,e))+a}px`})}restore(e,s){const a=s.dataset[e];a!==void 0&&(delete s.dataset[e],o.style(s,{[e]:a}))}setContainerStyle(e){super.setContainerStyle(e);const s=this.getElement();if(st(s,"modal-open"),!e.scrollBarWidth)return;const a=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";j(s,A.FIXED_CONTENT).forEach(l=>this.adjustAndStore(a,l,e.scrollBarWidth)),j(s,A.STICKY_CONTENT).forEach(l=>this.adjustAndStore(r,l,-e.scrollBarWidth)),j(s,A.NAVBAR_TOGGLER).forEach(l=>this.adjustAndStore(r,l,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);const s=this.getElement();nt(s,"modal-open");const a=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";j(s,A.FIXED_CONTENT).forEach(l=>this.restore(a,l)),j(s,A.STICKY_CONTENT).forEach(l=>this.restore(r,l)),j(s,A.NAVBAR_TOGGLER).forEach(l=>this.restore(r,l))}}let ue;function at(t){return ue||(ue=new ot(t)),ue}const je=m.forwardRef(({className:t,bsPrefix:e,as:s="div",...a},r)=>(e=o.useBootstrapPrefix(e,"modal-body"),n.jsxRuntimeExports.jsx(s,{ref:r,className:n.classNames(t,e),...a})));je.displayName="ModalBody";const rt=je,it=m.createContext({onHide(){}}),be=it,Ne=m.forwardRef(({bsPrefix:t,className:e,contentClassName:s,centered:a,size:r,fullscreen:l,children:E,scrollable:p,...y},b)=>{t=o.useBootstrapPrefix(t,"modal");const h=`${t}-dialog`,S=typeof l=="string"?`${t}-fullscreen-${l}`:`${t}-fullscreen`;return n.jsxRuntimeExports.jsx("div",{...y,ref:b,className:n.classNames(h,e,r&&`${t}-${r}`,a&&`${h}-centered`,p&&`${h}-scrollable`,l&&S),children:n.jsxRuntimeExports.jsx("div",{className:n.classNames(`${t}-content`,s),children:E})})});Ne.displayName="ModalDialog";const Te=Ne,Me=m.forwardRef(({className:t,bsPrefix:e,as:s="div",...a},r)=>(e=o.useBootstrapPrefix(e,"modal-footer"),n.jsxRuntimeExports.jsx(s,{ref:r,className:n.classNames(t,e),...a})));Me.displayName="ModalFooter";const lt=Me,ct=m.forwardRef(({closeLabel:t="Close",closeVariant:e,closeButton:s=!1,onHide:a,children:r,...l},E)=>{const p=d.useContext(be),y=o.useEventCallback(()=>{p==null||p.onHide(),a==null||a()});return n.jsxRuntimeExports.jsxs("div",{ref:E,...l,children:[r,s&&n.jsxRuntimeExports.jsx(Ke,{"aria-label":t,variant:e,onClick:y})]})}),dt=ct,we=m.forwardRef(({bsPrefix:t,className:e,closeLabel:s="Close",closeButton:a=!1,...r},l)=>(t=o.useBootstrapPrefix(t,"modal-header"),n.jsxRuntimeExports.jsx(dt,{ref:l,...r,className:n.classNames(e,t),closeLabel:s,closeButton:a})));we.displayName="ModalHeader";const ut=we,mt=Ue("h4"),Ce=m.forwardRef(({className:t,bsPrefix:e,as:s=mt,...a},r)=>(e=o.useBootstrapPrefix(e,"modal-title"),n.jsxRuntimeExports.jsx(s,{ref:r,className:n.classNames(t,e),...a})));Ce.displayName="ModalTitle";const ft=Ce;function pt(t){return n.jsxRuntimeExports.jsx(o.Fade,{...t,timeout:null})}function ht(t){return n.jsxRuntimeExports.jsx(o.Fade,{...t,timeout:null})}const ke=m.forwardRef(({bsPrefix:t,className:e,style:s,dialogClassName:a,contentClassName:r,children:l,dialogAs:E=Te,"data-bs-theme":p,"aria-labelledby":y,"aria-describedby":b,"aria-label":h,show:S=!1,animation:R=!0,backdrop:N=!0,keyboard:Q=!0,onEscapeKeyDown:_,onShow:Z,onHide:T,container:ee,autoFocus:H=!0,enforceFocus:te=!0,restoreFocus:se=!0,restoreFocusOptions:ne,onEntered:U,onExit:$,onExiting:oe,onEnter:D,onEntering:P,onExited:K,backdropClassName:G,manager:q,...ae},g)=>{const[M,u]=d.useState({}),[re,z]=d.useState(!1),v=d.useRef(!1),w=d.useRef(!1),f=d.useRef(null),[x,F]=o.useCallbackRef(),ie=o.useMergedRefs(g,F),V=o.useEventCallback(T),le=o.useIsRTL();t=o.useBootstrapPrefix(t,"modal");const L=d.useMemo(()=>({onHide:V}),[V]);function C(){return q||at({isRTL:le})}function X(i){if(!o.canUseDOM)return;const B=C().getScrollbarWidth()>0,he=i.scrollHeight>o.ownerDocument(i).documentElement.clientHeight;u({paddingRight:B&&!he?ge():void 0,paddingLeft:!B&&he?ge():void 0})}const k=o.useEventCallback(()=>{x&&X(x.dialog)});o.useWillUnmount(()=>{o.removeEventListener(window,"resize",k),f.current==null||f.current()});const I=()=>{v.current=!0},O=i=>{v.current&&x&&i.target===x.dialog&&(w.current=!0),v.current=!1},c=()=>{z(!0),f.current=o.transitionEnd(x.dialog,()=>{z(!1)})},Y=i=>{i.target===i.currentTarget&&c()},W=i=>{if(N==="static"){Y(i);return}if(w.current||i.target!==i.currentTarget){w.current=!1;return}T==null||T()},Oe=i=>{Q?_==null||_(i):(i.preventDefault(),N==="static"&&c())},Be=(i,B)=>{i&&X(i),D==null||D(i,B)},Ae=i=>{f.current==null||f.current(),$==null||$(i)},Se=(i,B)=>{P==null||P(i,B),o.addEventListener(window,"resize",k)},$e=i=>{i&&(i.style.display=""),K==null||K(i),o.removeEventListener(window,"resize",k)},De=d.useCallback(i=>n.jsxRuntimeExports.jsx("div",{...i,className:n.classNames(`${t}-backdrop`,G,!R&&"show")}),[R,G,t]),pe={...s,...M};pe.display="block";const Fe=i=>n.jsxRuntimeExports.jsx("div",{role:"dialog",...i,style:pe,className:n.classNames(e,t,re&&`${t}-static`,!R&&"show"),onClick:N?W:void 0,onMouseUp:O,"data-bs-theme":p,"aria-label":h,"aria-labelledby":y,"aria-describedby":b,children:n.jsxRuntimeExports.jsx(E,{...ae,onMouseDown:I,className:a,contentClassName:r,children:l})});return n.jsxRuntimeExports.jsx(be.Provider,{value:L,children:n.jsxRuntimeExports.jsx(tt,{show:S,ref:ie,backdrop:N,container:ee,keyboard:!0,autoFocus:H,enforceFocus:te,restoreFocus:se,restoreFocusOptions:ne,onEscapeKeyDown:Oe,onShow:Z,onHide:T,onEnter:Be,onEntering:Se,onEntered:U,onExit:Ae,onExiting:oe,onExited:$e,manager:C(),transition:R?pt:void 0,backdropTransition:R?ht:void 0,renderBackdrop:De,renderDialog:Fe})})});ke.displayName="Modal";const gt=Object.assign(ke,{Body:rt,Header:ut,Title:ft,Footer:lt,Dialog:Te,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});exports.Loading=We;exports.Modal=gt;exports.Typography=He;exports.dataAttr=Re;exports.dataProp=Ve;exports.qsa=j;exports.usePrevious=ye;
@@ -1,5 +1,5 @@
1
- import { j as a, d, k as S, l as x } from "./InvalidFeedback.module-BTzZvI1d.mjs";
2
- import { P as he, c as Me, o as Se, s as G, u as Fe, a as Ze, b as et, d as y, l as Ne, e as Ce, f as Le, i as tt, r as je, h as nt, g as $, j as ot, k as st, m as at, n as ke, F as $e, p as rt, t as it } from "./hasClass-nlTORjDr.mjs";
1
+ import { j as a, e as d, f as S, g as x } from "./InvalidFeedback.module-DClnS0tk.mjs";
2
+ import { P as he, c as Me, o as Se, s as G, u as Fe, a as Ze, b as et, d as y, l as Ne, e as Ce, f as Le, i as tt, r as je, h as nt, g as $, j as ot, k as st, m as at, n as ke, F as $e, p as rt, t as it } from "./hasClass-D8_VfO6J.mjs";
3
3
  import * as u from "react";
4
4
  import { useRef as v, useEffect as ve, forwardRef as lt, useState as Ee, useImperativeHandle as dt, useCallback as Te, useContext as ct, useMemo as ut } from "react";
5
5
  import ft from "react-dom";
@@ -1 +1 @@
1
- "use strict";const M=require("./InvalidFeedback.module-OyWIsbgH.js"),b=require("./hasClass-ou9-zvO_.js"),O=require("react"),Ut=require("react-dom");function Vt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const z=Vt(O);function De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},De.apply(this,arguments)}function Je(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function qt(e){var t=zt(e,"string");return typeof t=="symbol"?t:String(t)}function zt(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pt(e,t,r){var n=O.useRef(e!==void 0),o=O.useState(t),i=o[0],c=o[1],u=e!==void 0,a=n.current;return n.current=u,!u&&a&&i!==t&&c(t),[u?e:i,O.useCallback(function(f){for(var s=arguments.length,d=new Array(s>1?s-1:0),m=1;m<s;m++)d[m-1]=arguments[m];r&&r.apply(void 0,[f].concat(d)),c(f)},[r])]}function Xt(e,t){return Object.keys(t).reduce(function(r,n){var o,i=r,c=i[Je(n)],u=i[n],a=b._objectWithoutPropertiesLoose(i,[Je(n),n].map(qt)),f=t[n],s=pt(u,c,e[f]),d=s[0],m=s[1];return De({},a,(o={},o[n]=d,o[f]=m,o))},e)}const Te=2**31-1;function dt(e,t,r){const n=r-Date.now();e.current=n<=Te?setTimeout(t,n):setTimeout(()=>dt(e,t,r),Te)}function Yt(){const e=b.useMounted(),t=O.useRef();return b.useWillUnmount(()=>clearTimeout(t.current)),O.useMemo(()=>{const r=()=>clearTimeout(t.current);function n(o,i=0){e()&&(r(),i<=Te?t.current=setTimeout(o,i):dt(t,o,Date.now()+i))}return{set:n,clear:r,handleRef:t}},[])}var Qe=Object.prototype.hasOwnProperty;function Ze(e,t,r){for(r of e.keys())if(ue(r,t))return r}function ue(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&ue(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=Ze(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=Ze(t,o),!o)||!ue(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Qe.call(e,r)&&++n&&!Qe.call(t,r)||!(r in t)||!ue(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Kt(e){const t=b.useMounted();return[e[0],O.useCallback(r=>{if(t())return e[1](r)},[t,e[1]])]}var B="top",W="bottom",H="right",k="left",$e="auto",de=[B,W,H,k],te="start",le="end",Gt="clippingParents",vt="viewport",se="popper",Jt="reference",et=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+le])},[]),mt=[].concat(de,[$e]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+le])},[]),Qt="beforeRead",Zt="read",er="afterRead",tr="beforeMain",rr="main",nr="afterMain",or="beforeWrite",ir="write",ar="afterWrite",sr=[Qt,Zt,er,tr,rr,nr,or,ir,ar];function I(e){return e.split("-")[0]}function F(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Z(e){var t=F(e).Element;return e instanceof t||e instanceof Element}function U(e){var t=F(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Be(e){if(typeof ShadowRoot>"u")return!1;var t=F(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Q=Math.max,Ee=Math.min,re=Math.round;function Me(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ht(){return!/^((?!chrome|android).)*safari/i.test(Me())}function ne(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&U(e)&&(o=e.offsetWidth>0&&re(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&re(n.height)/e.offsetHeight||1);var c=Z(e)?F(e):window,u=c.visualViewport,a=!ht()&&r,f=(n.left+(a&&u?u.offsetLeft:0))/o,s=(n.top+(a&&u?u.offsetTop:0))/i,d=n.width/o,m=n.height/i;return{width:d,height:m,top:s,right:f+d,bottom:s+m,left:f,x:f,y:s}}function ke(e){var t=ne(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function gt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Be(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function X(e){return e?(e.nodeName||"").toLowerCase():null}function V(e){return F(e).getComputedStyle(e)}function ur(e){return["table","td","th"].indexOf(X(e))>=0}function Y(e){return((Z(e)?e.ownerDocument:e.document)||window.document).documentElement}function Re(e){return X(e)==="html"?e:e.assignedSlot||e.parentNode||(Be(e)?e.host:null)||Y(e)}function tt(e){return!U(e)||V(e).position==="fixed"?null:e.offsetParent}function cr(e){var t=/firefox/i.test(Me()),r=/Trident/i.test(Me());if(r&&U(e)){var n=V(e);if(n.position==="fixed")return null}var o=Re(e);for(Be(o)&&(o=o.host);U(o)&&["html","body"].indexOf(X(o))<0;){var i=V(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function ve(e){for(var t=F(e),r=tt(e);r&&ur(r)&&V(r).position==="static";)r=tt(r);return r&&(X(r)==="html"||X(r)==="body"&&V(r).position==="static")?t:r||cr(e)||t}function Le(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return Q(e,Ee(t,r))}function fr(e,t,r){var n=ce(e,t,r);return n>r?r:n}function yt(){return{top:0,right:0,bottom:0,left:0}}function wt(e){return Object.assign({},yt(),e)}function bt(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var lr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,wt(typeof t!="number"?t:bt(t,de))};function pr(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,c=r.modifiersData.popperOffsets,u=I(r.placement),a=Le(u),f=[k,H].indexOf(u)>=0,s=f?"height":"width";if(!(!i||!c)){var d=lr(o.padding,r),m=ke(i),p=a==="y"?B:k,v=a==="y"?W:H,g=r.rects.reference[s]+r.rects.reference[a]-c[a]-r.rects.popper[s],l=c[a]-r.rects.reference[a],y=ve(i),h=y?a==="y"?y.clientHeight||0:y.clientWidth||0:0,E=g/2-l/2,w=d[p],R=h-m[s]-d[v],x=h/2-m[s]/2+E,j=ce(w,x,R),C=a;r.modifiersData[n]=(t={},t[C]=j,t.centerOffset=j-x,t)}}function dr(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||gt(t.elements.popper,o)&&(t.elements.arrow=o))}const vr={name:"arrow",enabled:!0,phase:"main",fn:pr,effect:dr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oe(e){return e.split("-")[1]}var mr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hr(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:re(r*o)/o||0,y:re(n*o)/o||0}}function rt(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,c=e.offsets,u=e.position,a=e.gpuAcceleration,f=e.adaptive,s=e.roundOffsets,d=e.isFixed,m=c.x,p=m===void 0?0:m,v=c.y,g=v===void 0?0:v,l=typeof s=="function"?s({x:p,y:g}):{x:p,y:g};p=l.x,g=l.y;var y=c.hasOwnProperty("x"),h=c.hasOwnProperty("y"),E=k,w=B,R=window;if(f){var x=ve(r),j="clientHeight",C="clientWidth";if(x===F(r)&&(x=Y(r),V(x).position!=="static"&&u==="absolute"&&(j="scrollHeight",C="scrollWidth")),x=x,o===B||(o===k||o===H)&&i===le){w=W;var A=d&&x===R&&R.visualViewport?R.visualViewport.height:x[j];g-=A-n.height,g*=a?1:-1}if(o===k||(o===B||o===W)&&i===le){E=H;var P=d&&x===R&&R.visualViewport?R.visualViewport.width:x[C];p-=P-n.width,p*=a?1:-1}}var D=Object.assign({position:u},f&&mr),L=s===!0?hr({x:p,y:g},F(r)):{x:p,y:g};if(p=L.x,g=L.y,a){var T;return Object.assign({},D,(T={},T[w]=h?"0":"",T[E]=y?"0":"",T.transform=(R.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",T))}return Object.assign({},D,(t={},t[w]=h?g+"px":"",t[E]=y?p+"px":"",t.transform="",t))}function gr(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,c=i===void 0?!0:i,u=r.roundOffsets,a=u===void 0?!0:u,f={placement:I(t.placement),variation:oe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,rt(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,rt(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const yr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gr,data:{}};var be={passive:!0};function wr(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,c=n.resize,u=c===void 0?!0:c,a=F(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(s){s.addEventListener("scroll",r.update,be)}),u&&a.addEventListener("resize",r.update,be),function(){i&&f.forEach(function(s){s.removeEventListener("scroll",r.update,be)}),u&&a.removeEventListener("resize",r.update,be)}}const br={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wr,data:{}};var xr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return xr[t]})}var Or={start:"end",end:"start"};function nt(e){return e.replace(/start|end/g,function(t){return Or[t]})}function Ne(e){var t=F(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Fe(e){return ne(Y(e)).left+Ne(e).scrollLeft}function Er(e,t){var r=F(e),n=Y(e),o=r.visualViewport,i=n.clientWidth,c=n.clientHeight,u=0,a=0;if(o){i=o.width,c=o.height;var f=ht();(f||!f&&t==="fixed")&&(u=o.offsetLeft,a=o.offsetTop)}return{width:i,height:c,x:u+Fe(e),y:a}}function Rr(e){var t,r=Y(e),n=Ne(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Q(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=Q(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-n.scrollLeft+Fe(e),a=-n.scrollTop;return V(o||r).direction==="rtl"&&(u+=Q(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:c,x:u,y:a}}function We(e){var t=V(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function xt(e){return["html","body","#document"].indexOf(X(e))>=0?e.ownerDocument.body:U(e)&&We(e)?e:xt(Re(e))}function fe(e,t){var r;t===void 0&&(t=[]);var n=xt(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=F(n),c=o?[i].concat(i.visualViewport||[],We(n)?n:[]):n,u=t.concat(c);return o?u:u.concat(fe(Re(c)))}function Se(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function jr(e,t){var r=ne(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ot(e,t,r){return t===vt?Se(Er(e,r)):Z(t)?jr(t,r):Se(Rr(Y(e)))}function Pr(e){var t=fe(Re(e)),r=["absolute","fixed"].indexOf(V(e).position)>=0,n=r&&U(e)?ve(e):e;return Z(n)?t.filter(function(o){return Z(o)&&gt(o,n)&&X(o)!=="body"}):[]}function Cr(e,t,r,n){var o=t==="clippingParents"?Pr(e):[].concat(t),i=[].concat(o,[r]),c=i[0],u=i.reduce(function(a,f){var s=ot(e,f,n);return a.top=Q(s.top,a.top),a.right=Ee(s.right,a.right),a.bottom=Ee(s.bottom,a.bottom),a.left=Q(s.left,a.left),a},ot(e,c,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function Ot(e){var t=e.reference,r=e.element,n=e.placement,o=n?I(n):null,i=n?oe(n):null,c=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,a;switch(o){case B:a={x:c,y:t.y-r.height};break;case W:a={x:c,y:t.y+t.height};break;case H:a={x:t.x+t.width,y:u};break;case k:a={x:t.x-r.width,y:u};break;default:a={x:t.x,y:t.y}}var f=o?Le(o):null;if(f!=null){var s=f==="y"?"height":"width";switch(i){case te:a[f]=a[f]-(t[s]/2-r[s]/2);break;case le:a[f]=a[f]+(t[s]/2-r[s]/2);break}}return a}function pe(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,c=i===void 0?e.strategy:i,u=r.boundary,a=u===void 0?Gt:u,f=r.rootBoundary,s=f===void 0?vt:f,d=r.elementContext,m=d===void 0?se:d,p=r.altBoundary,v=p===void 0?!1:p,g=r.padding,l=g===void 0?0:g,y=wt(typeof l!="number"?l:bt(l,de)),h=m===se?Jt:se,E=e.rects.popper,w=e.elements[v?h:m],R=Cr(Z(w)?w:w.contextElement||Y(e.elements.popper),a,s,c),x=ne(e.elements.reference),j=Ot({reference:x,element:E,strategy:"absolute",placement:o}),C=Se(Object.assign({},E,j)),A=m===se?C:x,P={top:R.top-A.top+y.top,bottom:A.bottom-R.bottom+y.bottom,left:R.left-A.left+y.left,right:A.right-R.right+y.right},D=e.modifiersData.offset;if(m===se&&D){var L=D[o];Object.keys(P).forEach(function(T){var $=[H,W].indexOf(T)>=0?1:-1,S=[B,W].indexOf(T)>=0?"y":"x";P[T]+=L[S]*$})}return P}function Ar(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,c=r.padding,u=r.flipVariations,a=r.allowedAutoPlacements,f=a===void 0?mt:a,s=oe(n),d=s?u?et:et.filter(function(v){return oe(v)===s}):de,m=d.filter(function(v){return f.indexOf(v)>=0});m.length===0&&(m=d);var p=m.reduce(function(v,g){return v[g]=pe(e,{placement:g,boundary:o,rootBoundary:i,padding:c})[I(g)],v},{});return Object.keys(p).sort(function(v,g){return p[v]-p[g]})}function Dr(e){if(I(e)===$e)return[];var t=xe(e);return[nt(e),t,nt(t)]}function Tr(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,c=r.altAxis,u=c===void 0?!0:c,a=r.fallbackPlacements,f=r.padding,s=r.boundary,d=r.rootBoundary,m=r.altBoundary,p=r.flipVariations,v=p===void 0?!0:p,g=r.allowedAutoPlacements,l=t.options.placement,y=I(l),h=y===l,E=a||(h||!v?[xe(l)]:Dr(l)),w=[l].concat(E).reduce(function(ee,q){return ee.concat(I(q)===$e?Ar(t,{placement:q,boundary:s,rootBoundary:d,padding:f,flipVariations:v,allowedAutoPlacements:g}):q)},[]),R=t.rects.reference,x=t.rects.popper,j=new Map,C=!0,A=w[0],P=0;P<w.length;P++){var D=w[P],L=I(D),T=oe(D)===te,$=[B,W].indexOf(L)>=0,S=$?"width":"height",N=pe(t,{placement:D,boundary:s,rootBoundary:d,altBoundary:m,padding:f}),_=$?T?H:k:T?W:B;R[S]>x[S]&&(_=xe(_));var me=xe(_),K=[];if(i&&K.push(N[L]<=0),u&&K.push(N[_]<=0,N[me]<=0),K.every(function(ee){return ee})){A=D,C=!1;break}j.set(D,K)}if(C)for(var he=v?3:1,je=function(q){var ae=w.find(function(ye){var G=j.get(ye);if(G)return G.slice(0,q).every(function(Pe){return Pe})});if(ae)return A=ae,"break"},ie=he;ie>0;ie--){var ge=je(ie);if(ge==="break")break}t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}}const Mr={name:"flip",enabled:!0,phase:"main",fn:Tr,requiresIfExists:["offset"],data:{_skip:!1}};function it(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function at(e){return[B,H,W,k].some(function(t){return e[t]>=0})}function Sr(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,c=pe(t,{elementContext:"reference"}),u=pe(t,{altBoundary:!0}),a=it(c,n),f=it(u,o,i),s=at(a),d=at(f);t.modifiersData[r]={referenceClippingOffsets:a,popperEscapeOffsets:f,isReferenceHidden:s,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":d})}const $r={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Sr};function Br(e,t,r){var n=I(e),o=[k,B].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=i[0],u=i[1];return c=c||0,u=(u||0)*o,[k,H].indexOf(n)>=0?{x:u,y:c}:{x:c,y:u}}function kr(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,c=mt.reduce(function(s,d){return s[d]=Br(d,t.rects,i),s},{}),u=c[t.placement],a=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=c}const Lr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kr};function Nr(e){var t=e.state,r=e.name;t.modifiersData[r]=Ot({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Fr={name:"popperOffsets",enabled:!0,phase:"read",fn:Nr,data:{}};function Wr(e){return e==="x"?"y":"x"}function Hr(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,c=r.altAxis,u=c===void 0?!1:c,a=r.boundary,f=r.rootBoundary,s=r.altBoundary,d=r.padding,m=r.tether,p=m===void 0?!0:m,v=r.tetherOffset,g=v===void 0?0:v,l=pe(t,{boundary:a,rootBoundary:f,padding:d,altBoundary:s}),y=I(t.placement),h=oe(t.placement),E=!h,w=Le(y),R=Wr(w),x=t.modifiersData.popperOffsets,j=t.rects.reference,C=t.rects.popper,A=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,P=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(x){if(i){var T,$=w==="y"?B:k,S=w==="y"?W:H,N=w==="y"?"height":"width",_=x[w],me=_+l[$],K=_-l[S],he=p?-C[N]/2:0,je=h===te?j[N]:C[N],ie=h===te?-C[N]:-j[N],ge=t.elements.arrow,ee=p&&ge?ke(ge):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:yt(),ae=q[$],ye=q[S],G=ce(0,j[N],ee[N]),Pe=E?j[N]/2-he-G-ae-P.mainAxis:je-G-ae-P.mainAxis,Nt=E?-j[N]/2+he+G+ye+P.mainAxis:ie+G+ye+P.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),Ft=Ce?w==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ie=(T=D==null?void 0:D[w])!=null?T:0,Wt=_+Pe-Ie-Ft,Ht=_+Nt-Ie,Ue=ce(p?Ee(me,Wt):me,_,p?Q(K,Ht):K);x[w]=Ue,L[w]=Ue-_}if(u){var Ve,_t=w==="x"?B:k,It=w==="x"?W:H,J=x[R],we=R==="y"?"height":"width",qe=J+l[_t],ze=J-l[It],Ae=[B,k].indexOf(y)!==-1,Xe=(Ve=D==null?void 0:D[R])!=null?Ve:0,Ye=Ae?qe:J-j[we]-C[we]-Xe+P.altAxis,Ke=Ae?J+j[we]+C[we]-Xe-P.altAxis:ze,Ge=p&&Ae?fr(Ye,J,Ke):ce(p?Ye:qe,J,p?Ke:ze);x[R]=Ge,L[R]=Ge-J}t.modifiersData[n]=L}}const _r={name:"preventOverflow",enabled:!0,phase:"main",fn:Hr,requiresIfExists:["offset"]};function Ir(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ur(e){return e===F(e)||!U(e)?Ne(e):Ir(e)}function Vr(e){var t=e.getBoundingClientRect(),r=re(t.width)/e.offsetWidth||1,n=re(t.height)/e.offsetHeight||1;return r!==1||n!==1}function qr(e,t,r){r===void 0&&(r=!1);var n=U(t),o=U(t)&&Vr(t),i=Y(t),c=ne(e,o,r),u={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(n||!n&&!r)&&((X(t)!=="body"||We(i))&&(u=Ur(t)),U(t)?(a=ne(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):i&&(a.x=Fe(i))),{x:c.left+u.scrollLeft-a.x,y:c.top+u.scrollTop-a.y,width:c.width,height:c.height}}function zr(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var c=[].concat(i.requires||[],i.requiresIfExists||[]);c.forEach(function(u){if(!r.has(u)){var a=t.get(u);a&&o(a)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function Xr(e){var t=zr(e);return sr.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Yr(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Kr(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var st={placement:"bottom",modifiers:[],strategy:"absolute"};function ut(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Gr(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?st:o;return function(u,a,f){f===void 0&&(f=i);var s={placement:"bottom",orderedModifiers:[],options:Object.assign({},st,i),modifiersData:{},elements:{reference:u,popper:a},attributes:{},styles:{}},d=[],m=!1,p={state:s,setOptions:function(y){var h=typeof y=="function"?y(s.options):y;g(),s.options=Object.assign({},i,s.options,h),s.scrollParents={reference:Z(u)?fe(u):u.contextElement?fe(u.contextElement):[],popper:fe(a)};var E=Xr(Kr([].concat(n,s.options.modifiers)));return s.orderedModifiers=E.filter(function(w){return w.enabled}),v(),p.update()},forceUpdate:function(){if(!m){var y=s.elements,h=y.reference,E=y.popper;if(ut(h,E)){s.rects={reference:qr(h,ve(E),s.options.strategy==="fixed"),popper:ke(E)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(P){return s.modifiersData[P.name]=Object.assign({},P.data)});for(var w=0;w<s.orderedModifiers.length;w++){if(s.reset===!0){s.reset=!1,w=-1;continue}var R=s.orderedModifiers[w],x=R.fn,j=R.options,C=j===void 0?{}:j,A=R.name;typeof x=="function"&&(s=x({state:s,options:C,name:A,instance:p})||s)}}}},update:Yr(function(){return new Promise(function(l){p.forceUpdate(),l(s)})}),destroy:function(){g(),m=!0}};if(!ut(u,a))return p;p.setOptions(f).then(function(l){!m&&f.onFirstUpdate&&f.onFirstUpdate(l)});function v(){s.orderedModifiers.forEach(function(l){var y=l.name,h=l.options,E=h===void 0?{}:h,w=l.effect;if(typeof w=="function"){var R=w({state:s,name:y,instance:p,options:E}),x=function(){};d.push(R||x)}})}function g(){d.forEach(function(l){return l()}),d=[]}return p}}const Jr=Gr({defaultModifiers:[$r,Fr,yr,br,Lr,Mr,_r,vr]}),Qr=["enabled","placement","strategy","modifiers"];function Zr(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}const en={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},tn={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:r}=e.elements;if("removeAttribute"in t){const n=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==r.id);n.length?t.setAttribute("aria-describedby",n.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:r,reference:n}=e.elements,o=(t=r.getAttribute("role"))==null?void 0:t.toLowerCase();if(r.id&&o==="tooltip"&&"setAttribute"in n){const i=n.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(r.id)!==-1)return;n.setAttribute("aria-describedby",i?`${i},${r.id}`:r.id)}}},rn=[];function Et(e,t,r={}){let{enabled:n=!0,placement:o="bottom",strategy:i="absolute",modifiers:c=rn}=r,u=Zr(r,Qr);const a=O.useRef(c),f=O.useRef(),s=O.useCallback(()=>{var l;(l=f.current)==null||l.update()},[]),d=O.useCallback(()=>{var l;(l=f.current)==null||l.forceUpdate()},[]),[m,p]=Kt(O.useState({placement:o,update:s,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),v=O.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:l})=>{const y={},h={};Object.keys(l.elements).forEach(E=>{y[E]=l.styles[E],h[E]=l.attributes[E]}),p({state:l,styles:y,attributes:h,update:s,forceUpdate:d,placement:l.placement})}}),[s,d,p]),g=O.useMemo(()=>(ue(a.current,c)||(a.current=c),a.current),[c]);return O.useEffect(()=>{!f.current||!n||f.current.setOptions({placement:o,strategy:i,modifiers:[...g,v,en]})},[i,o,v,n,g]),O.useEffect(()=>{if(!(!n||e==null||t==null))return f.current=Jr(e,t,Object.assign({},u,{placement:o,strategy:i,modifiers:[...g,tn,v]})),()=>{f.current!=null&&(f.current.destroy(),f.current=void 0,p(l=>Object.assign({},l,{attributes:{},styles:{popper:{}}})))}},[n,e,t]),m}var nn=process.env.NODE_ENV!=="production",Rt=function(){};if(nn){var on=function(t,r){var n=arguments.length;r=new Array(n>1?n-1:0);for(var o=1;o<n;o++)r[o-1]=arguments[o];var i=0,c="Warning: "+t.replace(/%s/g,function(){return r[i++]});typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}};Rt=function(e,t,r){var n=arguments.length;r=new Array(n>2?n-2:0);for(var o=2;o<n;o++)r[o-2]=arguments[o];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||on.apply(null,[t].concat(r))}}var an=Rt;const He=M.getDefaultExportFromCjs(an),ct=()=>{};function sn(e){return e.button===0}function un(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Oe=e=>e&&("current"in e?e.current:e),ft={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function jt(e,t=ct,{disabled:r,clickTrigger:n="click"}={}){const o=O.useRef(!1),i=O.useRef(!1),c=O.useCallback(f=>{const s=Oe(e);He(!!s,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!s||un(f)||!sn(f)||!!b.contains(s,f.target)||i.current,i.current=!1},[e]),u=b.useEventCallback(f=>{const s=Oe(e);s&&b.contains(s,f.target)&&(i.current=!0)}),a=b.useEventCallback(f=>{o.current||t(f)});O.useEffect(()=>{var f,s;if(r||e==null)return;const d=b.ownerDocument(Oe(e)),m=d.defaultView||window;let p=(f=m.event)!=null?f:(s=m.parent)==null?void 0:s.event,v=null;ft[n]&&(v=b.listen(d,ft[n],u,!0));const g=b.listen(d,n,c,!0),l=b.listen(d,n,h=>{if(h===p){p=void 0;return}a(h)});let y=[];return"ontouchstart"in d.documentElement&&(y=[].slice.call(d.body.children).map(h=>b.listen(h,"mousemove",ct))),()=>{v==null||v(),g(),l(),y.forEach(h=>h())}},[e,r,n,c,u,a])}function cn(e){const t={};return Array.isArray(e)?(e==null||e.forEach(r=>{t[r.name]=r}),t):e||t}function fn(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Pt({enabled:e,enableEvents:t,placement:r,flip:n,offset:o,fixed:i,containerPadding:c,arrowElement:u,popperConfig:a={}}){var f,s,d,m,p;const v=cn(a.modifiers);return Object.assign({},a,{placement:r,enabled:e,strategy:i?"fixed":a.strategy,modifiers:fn(Object.assign({},v,{eventListeners:{enabled:t,options:(f=v.eventListeners)==null?void 0:f.options},preventOverflow:Object.assign({},v.preventOverflow,{options:c?Object.assign({padding:c},(s=v.preventOverflow)==null?void 0:s.options):(d=v.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:o},(m=v.offset)==null?void 0:m.options)},arrow:Object.assign({},v.arrow,{enabled:!!u,options:Object.assign({},(p=v.arrow)==null?void 0:p.options,{element:u})}),flip:Object.assign({enabled:!!n},v.flip)}))})}const ln=()=>{};function pn(e,t,{disabled:r,clickTrigger:n}={}){const o=t||ln;jt(e,o,{disabled:r,clickTrigger:n});const i=b.useEventCallback(c=>{b.isEscKey(c)&&o(c)});O.useEffect(()=>{if(r||e==null)return;const c=b.ownerDocument(Oe(e));let u=(c.defaultView||window).event;const a=b.listen(c,"keyup",f=>{if(f===u){u=void 0;return}i(f)});return()=>{a()}},[e,r,i])}const Ct=z.forwardRef((e,t)=>{const{flip:r,offset:n,placement:o,containerPadding:i,popperConfig:c={},transition:u,runTransition:a}=e,[f,s]=b.useCallbackRef(),[d,m]=b.useCallbackRef(),p=b.useMergedRefs(s,t),v=b.useWaitForDOMRef(e.container),g=b.useWaitForDOMRef(e.target),[l,y]=O.useState(!e.show),h=Et(g,f,Pt({placement:o,enableEvents:!!e.show,containerPadding:i||5,flip:r,offset:n,arrowElement:d,popperConfig:c}));e.show&&l&&y(!1);const E=(...D)=>{y(!0),e.onExited&&e.onExited(...D)},w=e.show||!l;if(pn(f,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!w)return null;const{onExit:R,onExiting:x,onEnter:j,onEntering:C,onEntered:A}=e;let P=e.children(Object.assign({},h.attributes.popper,{style:h.styles.popper,ref:p}),{popper:h,placement:o,show:!!e.show,arrowProps:Object.assign({},h.attributes.arrow,{style:h.styles.arrow,ref:m})});return P=b.renderTransition(u,a,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:P,onExit:R,onExiting:x,onExited:E,onEnter:j,onEntering:C,onEntered:A}),v?Ut.createPortal(P,v):null});Ct.displayName="Overlay";const dn=Ct,At=z.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=b.useBootstrapPrefix(t,"popover-header"),M.jsxRuntimeExports.jsx(r,{ref:o,className:M.classNames(e,t),...n})));At.displayName="PopoverHeader";const vn=At,Dt=z.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=b.useBootstrapPrefix(t,"popover-body"),M.jsxRuntimeExports.jsx(r,{ref:o,className:M.classNames(e,t),...n})));Dt.displayName="PopoverBody";const Tt=Dt;function Mt(e,t){let r=e;return e==="left"?r=t?"end":"start":e==="right"&&(r=t?"start":"end"),r}function St(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const mn=z.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:n,children:o,body:i,arrowProps:c,hasDoneInitialMeasure:u,popper:a,show:f,...s},d)=>{const m=b.useBootstrapPrefix(e,"popover"),p=b.useIsRTL(),[v]=(t==null?void 0:t.split("-"))||[],g=Mt(v,p);let l=n;return f&&!u&&(l={...n,...St(a==null?void 0:a.strategy)}),M.jsxRuntimeExports.jsxs("div",{ref:d,role:"tooltip",style:l,"x-placement":v,className:M.classNames(r,m,v&&`bs-popover-${g}`),...s,children:[M.jsxRuntimeExports.jsx("div",{className:"popover-arrow",...c}),i?M.jsxRuntimeExports.jsx(Tt,{children:o}):o]})}),$t=Object.assign(mn,{Header:vn,Body:Tt,POPPER_OFFSET:[0,8]}),Bt=z.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:n,children:o,arrowProps:i,hasDoneInitialMeasure:c,popper:u,show:a,...f},s)=>{e=b.useBootstrapPrefix(e,"tooltip");const d=b.useIsRTL(),[m]=(t==null?void 0:t.split("-"))||[],p=Mt(m,d);let v=n;return a&&!c&&(v={...n,...St(u==null?void 0:u.strategy)}),M.jsxRuntimeExports.jsxs("div",{ref:s,style:v,role:"tooltip","x-placement":m,className:M.classNames(r,e,`bs-tooltip-${p}`),...f,children:[M.jsxRuntimeExports.jsx("div",{className:"tooltip-arrow",...i}),M.jsxRuntimeExports.jsx("div",{className:`${e}-inner`,children:o})]})});Bt.displayName="Tooltip";const _e=Object.assign(Bt,{TOOLTIP_OFFSET:[0,6]});function hn(e){const t=O.useRef(null),r=b.useBootstrapPrefix(void 0,"popover"),n=b.useBootstrapPrefix(void 0,"tooltip"),o=O.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(b.hasClass(t.current,r))return $t.POPPER_OFFSET;if(b.hasClass(t.current,n))return _e.TOOLTIP_OFFSET}return[0,0]}}}),[e,r,n]);return[t,[o]]}function gn(e,t){const{ref:r}=e,{ref:n}=t;e.ref=r.__wrapped||(r.__wrapped=o=>r(b.safeFindDOMNode(o))),t.ref=n.__wrapped||(n.__wrapped=o=>n(b.safeFindDOMNode(o)))}const kt=z.forwardRef(({children:e,transition:t=b.Fade,popperConfig:r={},rootClose:n=!1,placement:o="top",show:i=!1,...c},u)=>{const a=O.useRef({}),[f,s]=O.useState(null),[d,m]=hn(c.offset),p=b.useMergedRefs(u,d),v=t===!0?b.Fade:t||void 0,g=b.useEventCallback(l=>{s(l),r==null||r.onFirstUpdate==null||r.onFirstUpdate(l)});return b.useIsomorphicEffect(()=>{f&&c.target&&(a.current.scheduleUpdate==null||a.current.scheduleUpdate())},[f,c.target]),O.useEffect(()=>{i||s(null)},[i]),M.jsxRuntimeExports.jsx(dn,{...c,ref:p,popperConfig:{...r,modifiers:m.concat(r.modifiers||[]),onFirstUpdate:g},transition:v,rootClose:n,placement:o,show:i,children:(l,{arrowProps:y,popper:h,show:E})=>{var w,R;gn(l,y);const x=h==null?void 0:h.placement,j=Object.assign(a.current,{state:h==null?void 0:h.state,scheduleUpdate:h==null?void 0:h.update,placement:x,outOfBoundaries:(h==null||(w=h.state)==null||(R=w.modifiersData.hide)==null?void 0:R.isReferenceHidden)||!1,strategy:r.strategy}),C=!!f;return typeof e=="function"?e({...l,placement:x,show:E,...!t&&E&&{className:"show"},popper:j,arrowProps:y,hasDoneInitialMeasure:C}):z.cloneElement(e,{...l,placement:x,arrowProps:y,popper:j,hasDoneInitialMeasure:C,className:M.classNames(e.props.className,!t&&E&&"show"),style:{...e.props.style,...l.style}})}})});kt.displayName="Overlay";const yn=kt;function wn(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function lt(e,t,r){const[n]=t,o=n.currentTarget,i=n.relatedTarget||n.nativeEvent[r];(!i||i!==o)&&!b.contains(o,i)&&e(...t)}b.PropTypes.oneOf(["click","hover","focus"]);const bn=({trigger:e=["hover","focus"],overlay:t,children:r,popperConfig:n={},show:o,defaultShow:i=!1,onToggle:c,delay:u,placement:a,flip:f=a&&a.indexOf("auto")!==-1,...s})=>{const d=O.useRef(null),m=b.useMergedRefs(d,r.ref),p=Yt(),v=O.useRef(""),[g,l]=pt(o,i,c),y=wn(u),{onFocus:h,onBlur:E,onClick:w}=typeof r!="function"?z.Children.only(r).props:{},R=S=>{m(b.safeFindDOMNode(S))},x=O.useCallback(()=>{if(p.clear(),v.current="show",!y.show){l(!0);return}p.set(()=>{v.current==="show"&&l(!0)},y.show)},[y.show,l,p]),j=O.useCallback(()=>{if(p.clear(),v.current="hide",!y.hide){l(!1);return}p.set(()=>{v.current==="hide"&&l(!1)},y.hide)},[y.hide,l,p]),C=O.useCallback((...S)=>{x(),h==null||h(...S)},[x,h]),A=O.useCallback((...S)=>{j(),E==null||E(...S)},[j,E]),P=O.useCallback((...S)=>{l(!g),w==null||w(...S)},[w,l,g]),D=O.useCallback((...S)=>{lt(x,S,"fromElement")},[x]),L=O.useCallback((...S)=>{lt(j,S,"toElement")},[j]),T=e==null?[]:[].concat(e),$={ref:R};return T.indexOf("click")!==-1&&($.onClick=P),T.indexOf("focus")!==-1&&($.onFocus=C,$.onBlur=A),T.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&He(T.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),$.onMouseOver=D,$.onMouseOut=L),M.jsxRuntimeExports.jsxs(M.jsxRuntimeExports.Fragment,{children:[typeof r=="function"?r($):O.cloneElement(r,$),M.jsxRuntimeExports.jsx(yn,{...s,show:g,onHide:j,flip:f,placement:a,popperConfig:n,target:d.current,children:t})]})},Lt=bn,xn=({text:e,placement:t,children:r})=>M.jsxRuntimeExports.jsx(Lt,{placement:t,overlay:M.jsxRuntimeExports.jsx(_e,{className:"luminus-tooltip",children:e}),children:r});exports.OverlayTrigger=Lt;exports.Popover=$t;exports.SimpleTooltip=xn;exports.Tooltip=_e;exports.mergeOptionsWithPopperConfig=Pt;exports.useClickOutside=jt;exports.usePopper=Et;exports.useUncontrolled=Xt;exports.warning=He;
1
+ "use strict";const M=require("./InvalidFeedback.module-BGAwT2d5.js"),b=require("./hasClass-Cu3nPEbB.js"),O=require("react"),Ut=require("react-dom");function Vt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const z=Vt(O);function De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},De.apply(this,arguments)}function Je(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function qt(e){var t=zt(e,"string");return typeof t=="symbol"?t:String(t)}function zt(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pt(e,t,r){var n=O.useRef(e!==void 0),o=O.useState(t),i=o[0],c=o[1],u=e!==void 0,a=n.current;return n.current=u,!u&&a&&i!==t&&c(t),[u?e:i,O.useCallback(function(f){for(var s=arguments.length,d=new Array(s>1?s-1:0),m=1;m<s;m++)d[m-1]=arguments[m];r&&r.apply(void 0,[f].concat(d)),c(f)},[r])]}function Xt(e,t){return Object.keys(t).reduce(function(r,n){var o,i=r,c=i[Je(n)],u=i[n],a=b._objectWithoutPropertiesLoose(i,[Je(n),n].map(qt)),f=t[n],s=pt(u,c,e[f]),d=s[0],m=s[1];return De({},a,(o={},o[n]=d,o[f]=m,o))},e)}const Te=2**31-1;function dt(e,t,r){const n=r-Date.now();e.current=n<=Te?setTimeout(t,n):setTimeout(()=>dt(e,t,r),Te)}function Yt(){const e=b.useMounted(),t=O.useRef();return b.useWillUnmount(()=>clearTimeout(t.current)),O.useMemo(()=>{const r=()=>clearTimeout(t.current);function n(o,i=0){e()&&(r(),i<=Te?t.current=setTimeout(o,i):dt(t,o,Date.now()+i))}return{set:n,clear:r,handleRef:t}},[])}var Qe=Object.prototype.hasOwnProperty;function Ze(e,t,r){for(r of e.keys())if(ue(r,t))return r}function ue(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&ue(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=Ze(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=Ze(t,o),!o)||!ue(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Qe.call(e,r)&&++n&&!Qe.call(t,r)||!(r in t)||!ue(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Kt(e){const t=b.useMounted();return[e[0],O.useCallback(r=>{if(t())return e[1](r)},[t,e[1]])]}var B="top",W="bottom",H="right",k="left",$e="auto",de=[B,W,H,k],te="start",le="end",Gt="clippingParents",vt="viewport",se="popper",Jt="reference",et=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+le])},[]),mt=[].concat(de,[$e]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+le])},[]),Qt="beforeRead",Zt="read",er="afterRead",tr="beforeMain",rr="main",nr="afterMain",or="beforeWrite",ir="write",ar="afterWrite",sr=[Qt,Zt,er,tr,rr,nr,or,ir,ar];function I(e){return e.split("-")[0]}function F(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Z(e){var t=F(e).Element;return e instanceof t||e instanceof Element}function U(e){var t=F(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Be(e){if(typeof ShadowRoot>"u")return!1;var t=F(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Q=Math.max,Ee=Math.min,re=Math.round;function Me(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ht(){return!/^((?!chrome|android).)*safari/i.test(Me())}function ne(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&U(e)&&(o=e.offsetWidth>0&&re(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&re(n.height)/e.offsetHeight||1);var c=Z(e)?F(e):window,u=c.visualViewport,a=!ht()&&r,f=(n.left+(a&&u?u.offsetLeft:0))/o,s=(n.top+(a&&u?u.offsetTop:0))/i,d=n.width/o,m=n.height/i;return{width:d,height:m,top:s,right:f+d,bottom:s+m,left:f,x:f,y:s}}function ke(e){var t=ne(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function gt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Be(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function X(e){return e?(e.nodeName||"").toLowerCase():null}function V(e){return F(e).getComputedStyle(e)}function ur(e){return["table","td","th"].indexOf(X(e))>=0}function Y(e){return((Z(e)?e.ownerDocument:e.document)||window.document).documentElement}function Re(e){return X(e)==="html"?e:e.assignedSlot||e.parentNode||(Be(e)?e.host:null)||Y(e)}function tt(e){return!U(e)||V(e).position==="fixed"?null:e.offsetParent}function cr(e){var t=/firefox/i.test(Me()),r=/Trident/i.test(Me());if(r&&U(e)){var n=V(e);if(n.position==="fixed")return null}var o=Re(e);for(Be(o)&&(o=o.host);U(o)&&["html","body"].indexOf(X(o))<0;){var i=V(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function ve(e){for(var t=F(e),r=tt(e);r&&ur(r)&&V(r).position==="static";)r=tt(r);return r&&(X(r)==="html"||X(r)==="body"&&V(r).position==="static")?t:r||cr(e)||t}function Le(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return Q(e,Ee(t,r))}function fr(e,t,r){var n=ce(e,t,r);return n>r?r:n}function yt(){return{top:0,right:0,bottom:0,left:0}}function wt(e){return Object.assign({},yt(),e)}function bt(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var lr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,wt(typeof t!="number"?t:bt(t,de))};function pr(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,c=r.modifiersData.popperOffsets,u=I(r.placement),a=Le(u),f=[k,H].indexOf(u)>=0,s=f?"height":"width";if(!(!i||!c)){var d=lr(o.padding,r),m=ke(i),p=a==="y"?B:k,v=a==="y"?W:H,g=r.rects.reference[s]+r.rects.reference[a]-c[a]-r.rects.popper[s],l=c[a]-r.rects.reference[a],y=ve(i),h=y?a==="y"?y.clientHeight||0:y.clientWidth||0:0,E=g/2-l/2,w=d[p],R=h-m[s]-d[v],x=h/2-m[s]/2+E,j=ce(w,x,R),C=a;r.modifiersData[n]=(t={},t[C]=j,t.centerOffset=j-x,t)}}function dr(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||gt(t.elements.popper,o)&&(t.elements.arrow=o))}const vr={name:"arrow",enabled:!0,phase:"main",fn:pr,effect:dr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oe(e){return e.split("-")[1]}var mr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hr(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:re(r*o)/o||0,y:re(n*o)/o||0}}function rt(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,c=e.offsets,u=e.position,a=e.gpuAcceleration,f=e.adaptive,s=e.roundOffsets,d=e.isFixed,m=c.x,p=m===void 0?0:m,v=c.y,g=v===void 0?0:v,l=typeof s=="function"?s({x:p,y:g}):{x:p,y:g};p=l.x,g=l.y;var y=c.hasOwnProperty("x"),h=c.hasOwnProperty("y"),E=k,w=B,R=window;if(f){var x=ve(r),j="clientHeight",C="clientWidth";if(x===F(r)&&(x=Y(r),V(x).position!=="static"&&u==="absolute"&&(j="scrollHeight",C="scrollWidth")),x=x,o===B||(o===k||o===H)&&i===le){w=W;var A=d&&x===R&&R.visualViewport?R.visualViewport.height:x[j];g-=A-n.height,g*=a?1:-1}if(o===k||(o===B||o===W)&&i===le){E=H;var P=d&&x===R&&R.visualViewport?R.visualViewport.width:x[C];p-=P-n.width,p*=a?1:-1}}var D=Object.assign({position:u},f&&mr),L=s===!0?hr({x:p,y:g},F(r)):{x:p,y:g};if(p=L.x,g=L.y,a){var T;return Object.assign({},D,(T={},T[w]=h?"0":"",T[E]=y?"0":"",T.transform=(R.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",T))}return Object.assign({},D,(t={},t[w]=h?g+"px":"",t[E]=y?p+"px":"",t.transform="",t))}function gr(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,c=i===void 0?!0:i,u=r.roundOffsets,a=u===void 0?!0:u,f={placement:I(t.placement),variation:oe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,rt(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,rt(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const yr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gr,data:{}};var be={passive:!0};function wr(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,c=n.resize,u=c===void 0?!0:c,a=F(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(s){s.addEventListener("scroll",r.update,be)}),u&&a.addEventListener("resize",r.update,be),function(){i&&f.forEach(function(s){s.removeEventListener("scroll",r.update,be)}),u&&a.removeEventListener("resize",r.update,be)}}const br={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wr,data:{}};var xr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return xr[t]})}var Or={start:"end",end:"start"};function nt(e){return e.replace(/start|end/g,function(t){return Or[t]})}function Ne(e){var t=F(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Fe(e){return ne(Y(e)).left+Ne(e).scrollLeft}function Er(e,t){var r=F(e),n=Y(e),o=r.visualViewport,i=n.clientWidth,c=n.clientHeight,u=0,a=0;if(o){i=o.width,c=o.height;var f=ht();(f||!f&&t==="fixed")&&(u=o.offsetLeft,a=o.offsetTop)}return{width:i,height:c,x:u+Fe(e),y:a}}function Rr(e){var t,r=Y(e),n=Ne(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Q(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=Q(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-n.scrollLeft+Fe(e),a=-n.scrollTop;return V(o||r).direction==="rtl"&&(u+=Q(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:c,x:u,y:a}}function We(e){var t=V(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function xt(e){return["html","body","#document"].indexOf(X(e))>=0?e.ownerDocument.body:U(e)&&We(e)?e:xt(Re(e))}function fe(e,t){var r;t===void 0&&(t=[]);var n=xt(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=F(n),c=o?[i].concat(i.visualViewport||[],We(n)?n:[]):n,u=t.concat(c);return o?u:u.concat(fe(Re(c)))}function Se(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function jr(e,t){var r=ne(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ot(e,t,r){return t===vt?Se(Er(e,r)):Z(t)?jr(t,r):Se(Rr(Y(e)))}function Pr(e){var t=fe(Re(e)),r=["absolute","fixed"].indexOf(V(e).position)>=0,n=r&&U(e)?ve(e):e;return Z(n)?t.filter(function(o){return Z(o)&&gt(o,n)&&X(o)!=="body"}):[]}function Cr(e,t,r,n){var o=t==="clippingParents"?Pr(e):[].concat(t),i=[].concat(o,[r]),c=i[0],u=i.reduce(function(a,f){var s=ot(e,f,n);return a.top=Q(s.top,a.top),a.right=Ee(s.right,a.right),a.bottom=Ee(s.bottom,a.bottom),a.left=Q(s.left,a.left),a},ot(e,c,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function Ot(e){var t=e.reference,r=e.element,n=e.placement,o=n?I(n):null,i=n?oe(n):null,c=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,a;switch(o){case B:a={x:c,y:t.y-r.height};break;case W:a={x:c,y:t.y+t.height};break;case H:a={x:t.x+t.width,y:u};break;case k:a={x:t.x-r.width,y:u};break;default:a={x:t.x,y:t.y}}var f=o?Le(o):null;if(f!=null){var s=f==="y"?"height":"width";switch(i){case te:a[f]=a[f]-(t[s]/2-r[s]/2);break;case le:a[f]=a[f]+(t[s]/2-r[s]/2);break}}return a}function pe(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,c=i===void 0?e.strategy:i,u=r.boundary,a=u===void 0?Gt:u,f=r.rootBoundary,s=f===void 0?vt:f,d=r.elementContext,m=d===void 0?se:d,p=r.altBoundary,v=p===void 0?!1:p,g=r.padding,l=g===void 0?0:g,y=wt(typeof l!="number"?l:bt(l,de)),h=m===se?Jt:se,E=e.rects.popper,w=e.elements[v?h:m],R=Cr(Z(w)?w:w.contextElement||Y(e.elements.popper),a,s,c),x=ne(e.elements.reference),j=Ot({reference:x,element:E,strategy:"absolute",placement:o}),C=Se(Object.assign({},E,j)),A=m===se?C:x,P={top:R.top-A.top+y.top,bottom:A.bottom-R.bottom+y.bottom,left:R.left-A.left+y.left,right:A.right-R.right+y.right},D=e.modifiersData.offset;if(m===se&&D){var L=D[o];Object.keys(P).forEach(function(T){var $=[H,W].indexOf(T)>=0?1:-1,S=[B,W].indexOf(T)>=0?"y":"x";P[T]+=L[S]*$})}return P}function Ar(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,c=r.padding,u=r.flipVariations,a=r.allowedAutoPlacements,f=a===void 0?mt:a,s=oe(n),d=s?u?et:et.filter(function(v){return oe(v)===s}):de,m=d.filter(function(v){return f.indexOf(v)>=0});m.length===0&&(m=d);var p=m.reduce(function(v,g){return v[g]=pe(e,{placement:g,boundary:o,rootBoundary:i,padding:c})[I(g)],v},{});return Object.keys(p).sort(function(v,g){return p[v]-p[g]})}function Dr(e){if(I(e)===$e)return[];var t=xe(e);return[nt(e),t,nt(t)]}function Tr(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,c=r.altAxis,u=c===void 0?!0:c,a=r.fallbackPlacements,f=r.padding,s=r.boundary,d=r.rootBoundary,m=r.altBoundary,p=r.flipVariations,v=p===void 0?!0:p,g=r.allowedAutoPlacements,l=t.options.placement,y=I(l),h=y===l,E=a||(h||!v?[xe(l)]:Dr(l)),w=[l].concat(E).reduce(function(ee,q){return ee.concat(I(q)===$e?Ar(t,{placement:q,boundary:s,rootBoundary:d,padding:f,flipVariations:v,allowedAutoPlacements:g}):q)},[]),R=t.rects.reference,x=t.rects.popper,j=new Map,C=!0,A=w[0],P=0;P<w.length;P++){var D=w[P],L=I(D),T=oe(D)===te,$=[B,W].indexOf(L)>=0,S=$?"width":"height",N=pe(t,{placement:D,boundary:s,rootBoundary:d,altBoundary:m,padding:f}),_=$?T?H:k:T?W:B;R[S]>x[S]&&(_=xe(_));var me=xe(_),K=[];if(i&&K.push(N[L]<=0),u&&K.push(N[_]<=0,N[me]<=0),K.every(function(ee){return ee})){A=D,C=!1;break}j.set(D,K)}if(C)for(var he=v?3:1,je=function(q){var ae=w.find(function(ye){var G=j.get(ye);if(G)return G.slice(0,q).every(function(Pe){return Pe})});if(ae)return A=ae,"break"},ie=he;ie>0;ie--){var ge=je(ie);if(ge==="break")break}t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}}const Mr={name:"flip",enabled:!0,phase:"main",fn:Tr,requiresIfExists:["offset"],data:{_skip:!1}};function it(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function at(e){return[B,H,W,k].some(function(t){return e[t]>=0})}function Sr(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,c=pe(t,{elementContext:"reference"}),u=pe(t,{altBoundary:!0}),a=it(c,n),f=it(u,o,i),s=at(a),d=at(f);t.modifiersData[r]={referenceClippingOffsets:a,popperEscapeOffsets:f,isReferenceHidden:s,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":d})}const $r={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Sr};function Br(e,t,r){var n=I(e),o=[k,B].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=i[0],u=i[1];return c=c||0,u=(u||0)*o,[k,H].indexOf(n)>=0?{x:u,y:c}:{x:c,y:u}}function kr(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,c=mt.reduce(function(s,d){return s[d]=Br(d,t.rects,i),s},{}),u=c[t.placement],a=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=c}const Lr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kr};function Nr(e){var t=e.state,r=e.name;t.modifiersData[r]=Ot({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Fr={name:"popperOffsets",enabled:!0,phase:"read",fn:Nr,data:{}};function Wr(e){return e==="x"?"y":"x"}function Hr(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,c=r.altAxis,u=c===void 0?!1:c,a=r.boundary,f=r.rootBoundary,s=r.altBoundary,d=r.padding,m=r.tether,p=m===void 0?!0:m,v=r.tetherOffset,g=v===void 0?0:v,l=pe(t,{boundary:a,rootBoundary:f,padding:d,altBoundary:s}),y=I(t.placement),h=oe(t.placement),E=!h,w=Le(y),R=Wr(w),x=t.modifiersData.popperOffsets,j=t.rects.reference,C=t.rects.popper,A=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,P=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(x){if(i){var T,$=w==="y"?B:k,S=w==="y"?W:H,N=w==="y"?"height":"width",_=x[w],me=_+l[$],K=_-l[S],he=p?-C[N]/2:0,je=h===te?j[N]:C[N],ie=h===te?-C[N]:-j[N],ge=t.elements.arrow,ee=p&&ge?ke(ge):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:yt(),ae=q[$],ye=q[S],G=ce(0,j[N],ee[N]),Pe=E?j[N]/2-he-G-ae-P.mainAxis:je-G-ae-P.mainAxis,Nt=E?-j[N]/2+he+G+ye+P.mainAxis:ie+G+ye+P.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),Ft=Ce?w==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ie=(T=D==null?void 0:D[w])!=null?T:0,Wt=_+Pe-Ie-Ft,Ht=_+Nt-Ie,Ue=ce(p?Ee(me,Wt):me,_,p?Q(K,Ht):K);x[w]=Ue,L[w]=Ue-_}if(u){var Ve,_t=w==="x"?B:k,It=w==="x"?W:H,J=x[R],we=R==="y"?"height":"width",qe=J+l[_t],ze=J-l[It],Ae=[B,k].indexOf(y)!==-1,Xe=(Ve=D==null?void 0:D[R])!=null?Ve:0,Ye=Ae?qe:J-j[we]-C[we]-Xe+P.altAxis,Ke=Ae?J+j[we]+C[we]-Xe-P.altAxis:ze,Ge=p&&Ae?fr(Ye,J,Ke):ce(p?Ye:qe,J,p?Ke:ze);x[R]=Ge,L[R]=Ge-J}t.modifiersData[n]=L}}const _r={name:"preventOverflow",enabled:!0,phase:"main",fn:Hr,requiresIfExists:["offset"]};function Ir(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ur(e){return e===F(e)||!U(e)?Ne(e):Ir(e)}function Vr(e){var t=e.getBoundingClientRect(),r=re(t.width)/e.offsetWidth||1,n=re(t.height)/e.offsetHeight||1;return r!==1||n!==1}function qr(e,t,r){r===void 0&&(r=!1);var n=U(t),o=U(t)&&Vr(t),i=Y(t),c=ne(e,o,r),u={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(n||!n&&!r)&&((X(t)!=="body"||We(i))&&(u=Ur(t)),U(t)?(a=ne(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):i&&(a.x=Fe(i))),{x:c.left+u.scrollLeft-a.x,y:c.top+u.scrollTop-a.y,width:c.width,height:c.height}}function zr(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var c=[].concat(i.requires||[],i.requiresIfExists||[]);c.forEach(function(u){if(!r.has(u)){var a=t.get(u);a&&o(a)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function Xr(e){var t=zr(e);return sr.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Yr(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Kr(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var st={placement:"bottom",modifiers:[],strategy:"absolute"};function ut(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Gr(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?st:o;return function(u,a,f){f===void 0&&(f=i);var s={placement:"bottom",orderedModifiers:[],options:Object.assign({},st,i),modifiersData:{},elements:{reference:u,popper:a},attributes:{},styles:{}},d=[],m=!1,p={state:s,setOptions:function(y){var h=typeof y=="function"?y(s.options):y;g(),s.options=Object.assign({},i,s.options,h),s.scrollParents={reference:Z(u)?fe(u):u.contextElement?fe(u.contextElement):[],popper:fe(a)};var E=Xr(Kr([].concat(n,s.options.modifiers)));return s.orderedModifiers=E.filter(function(w){return w.enabled}),v(),p.update()},forceUpdate:function(){if(!m){var y=s.elements,h=y.reference,E=y.popper;if(ut(h,E)){s.rects={reference:qr(h,ve(E),s.options.strategy==="fixed"),popper:ke(E)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(P){return s.modifiersData[P.name]=Object.assign({},P.data)});for(var w=0;w<s.orderedModifiers.length;w++){if(s.reset===!0){s.reset=!1,w=-1;continue}var R=s.orderedModifiers[w],x=R.fn,j=R.options,C=j===void 0?{}:j,A=R.name;typeof x=="function"&&(s=x({state:s,options:C,name:A,instance:p})||s)}}}},update:Yr(function(){return new Promise(function(l){p.forceUpdate(),l(s)})}),destroy:function(){g(),m=!0}};if(!ut(u,a))return p;p.setOptions(f).then(function(l){!m&&f.onFirstUpdate&&f.onFirstUpdate(l)});function v(){s.orderedModifiers.forEach(function(l){var y=l.name,h=l.options,E=h===void 0?{}:h,w=l.effect;if(typeof w=="function"){var R=w({state:s,name:y,instance:p,options:E}),x=function(){};d.push(R||x)}})}function g(){d.forEach(function(l){return l()}),d=[]}return p}}const Jr=Gr({defaultModifiers:[$r,Fr,yr,br,Lr,Mr,_r,vr]}),Qr=["enabled","placement","strategy","modifiers"];function Zr(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}const en={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},tn={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:r}=e.elements;if("removeAttribute"in t){const n=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==r.id);n.length?t.setAttribute("aria-describedby",n.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:r,reference:n}=e.elements,o=(t=r.getAttribute("role"))==null?void 0:t.toLowerCase();if(r.id&&o==="tooltip"&&"setAttribute"in n){const i=n.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(r.id)!==-1)return;n.setAttribute("aria-describedby",i?`${i},${r.id}`:r.id)}}},rn=[];function Et(e,t,r={}){let{enabled:n=!0,placement:o="bottom",strategy:i="absolute",modifiers:c=rn}=r,u=Zr(r,Qr);const a=O.useRef(c),f=O.useRef(),s=O.useCallback(()=>{var l;(l=f.current)==null||l.update()},[]),d=O.useCallback(()=>{var l;(l=f.current)==null||l.forceUpdate()},[]),[m,p]=Kt(O.useState({placement:o,update:s,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),v=O.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:l})=>{const y={},h={};Object.keys(l.elements).forEach(E=>{y[E]=l.styles[E],h[E]=l.attributes[E]}),p({state:l,styles:y,attributes:h,update:s,forceUpdate:d,placement:l.placement})}}),[s,d,p]),g=O.useMemo(()=>(ue(a.current,c)||(a.current=c),a.current),[c]);return O.useEffect(()=>{!f.current||!n||f.current.setOptions({placement:o,strategy:i,modifiers:[...g,v,en]})},[i,o,v,n,g]),O.useEffect(()=>{if(!(!n||e==null||t==null))return f.current=Jr(e,t,Object.assign({},u,{placement:o,strategy:i,modifiers:[...g,tn,v]})),()=>{f.current!=null&&(f.current.destroy(),f.current=void 0,p(l=>Object.assign({},l,{attributes:{},styles:{popper:{}}})))}},[n,e,t]),m}var nn=process.env.NODE_ENV!=="production",Rt=function(){};if(nn){var on=function(t,r){var n=arguments.length;r=new Array(n>1?n-1:0);for(var o=1;o<n;o++)r[o-1]=arguments[o];var i=0,c="Warning: "+t.replace(/%s/g,function(){return r[i++]});typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}};Rt=function(e,t,r){var n=arguments.length;r=new Array(n>2?n-2:0);for(var o=2;o<n;o++)r[o-2]=arguments[o];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||on.apply(null,[t].concat(r))}}var an=Rt;const He=M.getDefaultExportFromCjs(an),ct=()=>{};function sn(e){return e.button===0}function un(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Oe=e=>e&&("current"in e?e.current:e),ft={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function jt(e,t=ct,{disabled:r,clickTrigger:n="click"}={}){const o=O.useRef(!1),i=O.useRef(!1),c=O.useCallback(f=>{const s=Oe(e);He(!!s,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!s||un(f)||!sn(f)||!!b.contains(s,f.target)||i.current,i.current=!1},[e]),u=b.useEventCallback(f=>{const s=Oe(e);s&&b.contains(s,f.target)&&(i.current=!0)}),a=b.useEventCallback(f=>{o.current||t(f)});O.useEffect(()=>{var f,s;if(r||e==null)return;const d=b.ownerDocument(Oe(e)),m=d.defaultView||window;let p=(f=m.event)!=null?f:(s=m.parent)==null?void 0:s.event,v=null;ft[n]&&(v=b.listen(d,ft[n],u,!0));const g=b.listen(d,n,c,!0),l=b.listen(d,n,h=>{if(h===p){p=void 0;return}a(h)});let y=[];return"ontouchstart"in d.documentElement&&(y=[].slice.call(d.body.children).map(h=>b.listen(h,"mousemove",ct))),()=>{v==null||v(),g(),l(),y.forEach(h=>h())}},[e,r,n,c,u,a])}function cn(e){const t={};return Array.isArray(e)?(e==null||e.forEach(r=>{t[r.name]=r}),t):e||t}function fn(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Pt({enabled:e,enableEvents:t,placement:r,flip:n,offset:o,fixed:i,containerPadding:c,arrowElement:u,popperConfig:a={}}){var f,s,d,m,p;const v=cn(a.modifiers);return Object.assign({},a,{placement:r,enabled:e,strategy:i?"fixed":a.strategy,modifiers:fn(Object.assign({},v,{eventListeners:{enabled:t,options:(f=v.eventListeners)==null?void 0:f.options},preventOverflow:Object.assign({},v.preventOverflow,{options:c?Object.assign({padding:c},(s=v.preventOverflow)==null?void 0:s.options):(d=v.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:o},(m=v.offset)==null?void 0:m.options)},arrow:Object.assign({},v.arrow,{enabled:!!u,options:Object.assign({},(p=v.arrow)==null?void 0:p.options,{element:u})}),flip:Object.assign({enabled:!!n},v.flip)}))})}const ln=()=>{};function pn(e,t,{disabled:r,clickTrigger:n}={}){const o=t||ln;jt(e,o,{disabled:r,clickTrigger:n});const i=b.useEventCallback(c=>{b.isEscKey(c)&&o(c)});O.useEffect(()=>{if(r||e==null)return;const c=b.ownerDocument(Oe(e));let u=(c.defaultView||window).event;const a=b.listen(c,"keyup",f=>{if(f===u){u=void 0;return}i(f)});return()=>{a()}},[e,r,i])}const Ct=z.forwardRef((e,t)=>{const{flip:r,offset:n,placement:o,containerPadding:i,popperConfig:c={},transition:u,runTransition:a}=e,[f,s]=b.useCallbackRef(),[d,m]=b.useCallbackRef(),p=b.useMergedRefs(s,t),v=b.useWaitForDOMRef(e.container),g=b.useWaitForDOMRef(e.target),[l,y]=O.useState(!e.show),h=Et(g,f,Pt({placement:o,enableEvents:!!e.show,containerPadding:i||5,flip:r,offset:n,arrowElement:d,popperConfig:c}));e.show&&l&&y(!1);const E=(...D)=>{y(!0),e.onExited&&e.onExited(...D)},w=e.show||!l;if(pn(f,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!w)return null;const{onExit:R,onExiting:x,onEnter:j,onEntering:C,onEntered:A}=e;let P=e.children(Object.assign({},h.attributes.popper,{style:h.styles.popper,ref:p}),{popper:h,placement:o,show:!!e.show,arrowProps:Object.assign({},h.attributes.arrow,{style:h.styles.arrow,ref:m})});return P=b.renderTransition(u,a,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:P,onExit:R,onExiting:x,onExited:E,onEnter:j,onEntering:C,onEntered:A}),v?Ut.createPortal(P,v):null});Ct.displayName="Overlay";const dn=Ct,At=z.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=b.useBootstrapPrefix(t,"popover-header"),M.jsxRuntimeExports.jsx(r,{ref:o,className:M.classNames(e,t),...n})));At.displayName="PopoverHeader";const vn=At,Dt=z.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=b.useBootstrapPrefix(t,"popover-body"),M.jsxRuntimeExports.jsx(r,{ref:o,className:M.classNames(e,t),...n})));Dt.displayName="PopoverBody";const Tt=Dt;function Mt(e,t){let r=e;return e==="left"?r=t?"end":"start":e==="right"&&(r=t?"start":"end"),r}function St(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const mn=z.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:n,children:o,body:i,arrowProps:c,hasDoneInitialMeasure:u,popper:a,show:f,...s},d)=>{const m=b.useBootstrapPrefix(e,"popover"),p=b.useIsRTL(),[v]=(t==null?void 0:t.split("-"))||[],g=Mt(v,p);let l=n;return f&&!u&&(l={...n,...St(a==null?void 0:a.strategy)}),M.jsxRuntimeExports.jsxs("div",{ref:d,role:"tooltip",style:l,"x-placement":v,className:M.classNames(r,m,v&&`bs-popover-${g}`),...s,children:[M.jsxRuntimeExports.jsx("div",{className:"popover-arrow",...c}),i?M.jsxRuntimeExports.jsx(Tt,{children:o}):o]})}),$t=Object.assign(mn,{Header:vn,Body:Tt,POPPER_OFFSET:[0,8]}),Bt=z.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:n,children:o,arrowProps:i,hasDoneInitialMeasure:c,popper:u,show:a,...f},s)=>{e=b.useBootstrapPrefix(e,"tooltip");const d=b.useIsRTL(),[m]=(t==null?void 0:t.split("-"))||[],p=Mt(m,d);let v=n;return a&&!c&&(v={...n,...St(u==null?void 0:u.strategy)}),M.jsxRuntimeExports.jsxs("div",{ref:s,style:v,role:"tooltip","x-placement":m,className:M.classNames(r,e,`bs-tooltip-${p}`),...f,children:[M.jsxRuntimeExports.jsx("div",{className:"tooltip-arrow",...i}),M.jsxRuntimeExports.jsx("div",{className:`${e}-inner`,children:o})]})});Bt.displayName="Tooltip";const _e=Object.assign(Bt,{TOOLTIP_OFFSET:[0,6]});function hn(e){const t=O.useRef(null),r=b.useBootstrapPrefix(void 0,"popover"),n=b.useBootstrapPrefix(void 0,"tooltip"),o=O.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(b.hasClass(t.current,r))return $t.POPPER_OFFSET;if(b.hasClass(t.current,n))return _e.TOOLTIP_OFFSET}return[0,0]}}}),[e,r,n]);return[t,[o]]}function gn(e,t){const{ref:r}=e,{ref:n}=t;e.ref=r.__wrapped||(r.__wrapped=o=>r(b.safeFindDOMNode(o))),t.ref=n.__wrapped||(n.__wrapped=o=>n(b.safeFindDOMNode(o)))}const kt=z.forwardRef(({children:e,transition:t=b.Fade,popperConfig:r={},rootClose:n=!1,placement:o="top",show:i=!1,...c},u)=>{const a=O.useRef({}),[f,s]=O.useState(null),[d,m]=hn(c.offset),p=b.useMergedRefs(u,d),v=t===!0?b.Fade:t||void 0,g=b.useEventCallback(l=>{s(l),r==null||r.onFirstUpdate==null||r.onFirstUpdate(l)});return b.useIsomorphicEffect(()=>{f&&c.target&&(a.current.scheduleUpdate==null||a.current.scheduleUpdate())},[f,c.target]),O.useEffect(()=>{i||s(null)},[i]),M.jsxRuntimeExports.jsx(dn,{...c,ref:p,popperConfig:{...r,modifiers:m.concat(r.modifiers||[]),onFirstUpdate:g},transition:v,rootClose:n,placement:o,show:i,children:(l,{arrowProps:y,popper:h,show:E})=>{var w,R;gn(l,y);const x=h==null?void 0:h.placement,j=Object.assign(a.current,{state:h==null?void 0:h.state,scheduleUpdate:h==null?void 0:h.update,placement:x,outOfBoundaries:(h==null||(w=h.state)==null||(R=w.modifiersData.hide)==null?void 0:R.isReferenceHidden)||!1,strategy:r.strategy}),C=!!f;return typeof e=="function"?e({...l,placement:x,show:E,...!t&&E&&{className:"show"},popper:j,arrowProps:y,hasDoneInitialMeasure:C}):z.cloneElement(e,{...l,placement:x,arrowProps:y,popper:j,hasDoneInitialMeasure:C,className:M.classNames(e.props.className,!t&&E&&"show"),style:{...e.props.style,...l.style}})}})});kt.displayName="Overlay";const yn=kt;function wn(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function lt(e,t,r){const[n]=t,o=n.currentTarget,i=n.relatedTarget||n.nativeEvent[r];(!i||i!==o)&&!b.contains(o,i)&&e(...t)}b.PropTypes.oneOf(["click","hover","focus"]);const bn=({trigger:e=["hover","focus"],overlay:t,children:r,popperConfig:n={},show:o,defaultShow:i=!1,onToggle:c,delay:u,placement:a,flip:f=a&&a.indexOf("auto")!==-1,...s})=>{const d=O.useRef(null),m=b.useMergedRefs(d,r.ref),p=Yt(),v=O.useRef(""),[g,l]=pt(o,i,c),y=wn(u),{onFocus:h,onBlur:E,onClick:w}=typeof r!="function"?z.Children.only(r).props:{},R=S=>{m(b.safeFindDOMNode(S))},x=O.useCallback(()=>{if(p.clear(),v.current="show",!y.show){l(!0);return}p.set(()=>{v.current==="show"&&l(!0)},y.show)},[y.show,l,p]),j=O.useCallback(()=>{if(p.clear(),v.current="hide",!y.hide){l(!1);return}p.set(()=>{v.current==="hide"&&l(!1)},y.hide)},[y.hide,l,p]),C=O.useCallback((...S)=>{x(),h==null||h(...S)},[x,h]),A=O.useCallback((...S)=>{j(),E==null||E(...S)},[j,E]),P=O.useCallback((...S)=>{l(!g),w==null||w(...S)},[w,l,g]),D=O.useCallback((...S)=>{lt(x,S,"fromElement")},[x]),L=O.useCallback((...S)=>{lt(j,S,"toElement")},[j]),T=e==null?[]:[].concat(e),$={ref:R};return T.indexOf("click")!==-1&&($.onClick=P),T.indexOf("focus")!==-1&&($.onFocus=C,$.onBlur=A),T.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&He(T.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),$.onMouseOver=D,$.onMouseOut=L),M.jsxRuntimeExports.jsxs(M.jsxRuntimeExports.Fragment,{children:[typeof r=="function"?r($):O.cloneElement(r,$),M.jsxRuntimeExports.jsx(yn,{...s,show:g,onHide:j,flip:f,placement:a,popperConfig:n,target:d.current,children:t})]})},Lt=bn,xn=({text:e,placement:t,children:r})=>M.jsxRuntimeExports.jsx(Lt,{placement:t,overlay:M.jsxRuntimeExports.jsx(_e,{className:"luminus-tooltip",children:e}),children:r});exports.OverlayTrigger=Lt;exports.Popover=$t;exports.SimpleTooltip=xn;exports.Tooltip=_e;exports.mergeOptionsWithPopperConfig=Pt;exports.useClickOutside=jt;exports.usePopper=Et;exports.useUncontrolled=Xt;exports.warning=He;
@@ -1,5 +1,5 @@
1
- import { m as tr, j as C, d as me } from "./InvalidFeedback.module-BTzZvI1d.mjs";
2
- import { _ as rr, b as Rt, f as nr, e as We, d as Pe, o as At, l as ue, i as or, j as it, k as _e, a as at, r as ir, g as te, m as jt, h as st, q as ar, F as ct, v as Fe, P as sr } from "./hasClass-nlTORjDr.mjs";
1
+ import { h as tr, j as C, e as me } from "./InvalidFeedback.module-DClnS0tk.mjs";
2
+ import { _ as rr, b as Rt, f as nr, e as We, d as Pe, o as At, l as ue, i as or, j as it, k as _e, a as at, r as ir, g as te, m as jt, h as st, q as ar, F as ct, v as Fe, P as sr } from "./hasClass-D8_VfO6J.mjs";
3
3
  import * as z from "react";
4
4
  import { useRef as U, useState as $e, useCallback as F, useMemo as De, useEffect as pe, cloneElement as cr } from "react";
5
5
  import ur from "react-dom";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./InvalidFeedback.module-OyWIsbgH.js"),e=require("react"),d=require("./Modal-Bi-0FFlg.js"),C=require("./useConfirm-U1xKKPOh.js"),p=({children:u})=>{const[o,n]=e.useState(!1),[t,r]=e.useState(""),a=e.useCallback(x=>{n(!0),r(x)},[]),c=e.useCallback(()=>{n(!1)},[]),i=e.useMemo(()=>({show:o,text:t,showConfirm:a,hideConfirm:c}),[o,t,a,c]);return s.jsxRuntimeExports.jsxs(s.ConfirmContext.Provider,{value:i,children:[s.jsxRuntimeExports.jsx(b,{}),u]})},g=()=>s.jsxRuntimeExports.jsx(s.Ie,{toastOptions:{icon:s.jsxRuntimeExports.jsx(s.MdOutlineQuestionMark,{}),className:s.classNames("luminus-toast rounded shadow",s.classes.toast),success:{className:s.classNames("luminus-toast-success rounded shadow",s.classes.toast),icon:s.jsxRuntimeExports.jsx(s.MdOutlineCheck,{})},error:{className:s.classNames("luminus-toast-danger rounded shadow",s.classes.toast),icon:s.jsxRuntimeExports.jsx(s.MdOutlineError,{})}}}),h=({axiosInstance:u,LinkComponent:o,language:n,axiosTexts:t,confirmTexts:r,formValidationTexts:a,employeePickerModalTexts:c,homeDashboardTexts:i,children:x})=>{const m=e.useMemo(()=>({axiosInstance:u,LinkComponent:o,language:n,axiosTexts:t,confirmTexts:r,formValidationTexts:a,employeePickerModalTexts:c,homeDashboardTexts:i}),[u,o,n,t,r,a,c,i]);return s.jsxRuntimeExports.jsx(s.LuminusComponentsContext.Provider,{value:m,children:s.jsxRuntimeExports.jsxs(p,{children:[s.jsxRuntimeExports.jsx(g,{}),x]})})},v=({children:u})=>{const[o,n]=e.useState(!1),[t]=e.useState(new Set),r=e.useCallback(i=>{t.add(i),n(!0)},[t]),a=e.useCallback(i=>{t.delete(i),t.size===0&&n(!1)},[t]),c=e.useMemo(()=>({isLoading:o,startLoading:r,stopLoading:a}),[o,r,a]);return s.jsxRuntimeExports.jsxs(s.LoadingContext.Provider,{value:c,children:[o&&s.jsxRuntimeExports.jsx(d.Loading,{}),u]})},E=({children:u})=>{const o=s.useAxios(),n=e.useCallback(()=>{const l=localStorage.getItem("user")??null;return l?JSON.parse(l):null},[]),[t,r]=e.useState(n()),a=e.useCallback(async()=>{let l=null;return await o.get("/user/detail").then(j=>{l=j.data}).catch(()=>{l=null}),localStorage.setItem("user",JSON.stringify(l)),l},[o]),c=e.useCallback(()=>{localStorage.removeItem("user")},[]),i=e.useCallback(async()=>{const l=await a();return l?(r(l),!0):!1},[a]),x=e.useCallback(()=>{c(),r(null)},[c]),m=e.useMemo(()=>({user:t,loginUser:i,logoutUser:x}),[t,i,x]);return e.useEffect(()=>{r(n())},[n]),s.jsxRuntimeExports.jsx(s.UserContext.Provider,{value:m,children:u})},b=()=>{const{confirmTexts:u}=e.useContext(s.LuminusComponentsContext),{onConfirm:o,onCancel:n,text:t,show:r}=C.useConfirm();return s.jsxRuntimeExports.jsx(d.Modal,{show:r,size:"sm",centered:!0,onHide:n,children:s.jsxRuntimeExports.jsxs(d.Modal.Body,{children:[s.jsxRuntimeExports.jsx("div",{className:"mb-5 text-center",children:s.jsxRuntimeExports.jsx(d.Typography,{variant:"h6",children:t})}),s.jsxRuntimeExports.jsxs("div",{className:"w-100 d-flex gap-5",children:[s.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-secondary w-100",onClick:n,children:u.no}),s.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary w-100 ml",onClick:o,children:u.yes})]})]})})};exports.LoadingContext=s.LoadingContext;exports.LuminusComponentsContext=s.LuminusComponentsContext;exports.UserContext=s.UserContext;exports.LoadingProvider=v;exports.LuminusComponentsProvider=h;exports.UserProvider=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./InvalidFeedback.module-BGAwT2d5.js"),t=require("react"),d=require("./Modal-Bw1h9tng.js"),j=require("./useConfirm-DUEZWmp7.js"),p=({children:u})=>{const[o,n]=t.useState(!1),[s,r]=t.useState(""),i=t.useCallback(x=>{n(!0),r(x)},[]),l=t.useCallback(()=>{n(!1)},[]),a=t.useMemo(()=>({show:o,text:s,showConfirm:i,hideConfirm:l}),[o,s,i,l]);return e.jsxRuntimeExports.jsxs(e.ConfirmContext.Provider,{value:a,children:[e.jsxRuntimeExports.jsx(f,{}),u]})},g=({axiosInstance:u,LinkComponent:o,language:n,axiosTexts:s,confirmTexts:r,formValidationTexts:i,employeePickerModalTexts:l,homeDashboardTexts:a,children:x})=>{const m=t.useMemo(()=>({axiosInstance:u,LinkComponent:o,language:n,axiosTexts:s,confirmTexts:r,formValidationTexts:i,employeePickerModalTexts:l,homeDashboardTexts:a}),[u,o,n,s,r,i,l,a]);return e.jsxRuntimeExports.jsx(e.LuminusComponentsContext.Provider,{value:m,children:e.jsxRuntimeExports.jsxs(p,{children:[e.jsxRuntimeExports.jsx(e.Ie,{}),x]})})},v=({children:u})=>{const[o,n]=t.useState(!1),[s]=t.useState(new Set),r=t.useCallback(a=>{s.add(a),n(!0)},[s]),i=t.useCallback(a=>{s.delete(a),s.size===0&&n(!1)},[s]),l=t.useMemo(()=>({isLoading:o,startLoading:r,stopLoading:i}),[o,r,i]);return e.jsxRuntimeExports.jsxs(e.LoadingContext.Provider,{value:l,children:[o&&e.jsxRuntimeExports.jsx(d.Loading,{}),u]})},b=({children:u})=>{const o=e.useAxios(),n=t.useCallback(()=>{const c=localStorage.getItem("user")??null;return c?JSON.parse(c):null},[]),[s,r]=t.useState(n()),i=t.useCallback(async()=>{let c=null;return await o.get("/user/detail").then(C=>{c=C.data}).catch(()=>{c=null}),localStorage.setItem("user",JSON.stringify(c)),c},[o]),l=t.useCallback(()=>{localStorage.removeItem("user")},[]),a=t.useCallback(async()=>{const c=await i();return c?(r(c),!0):!1},[i]),x=t.useCallback(()=>{l(),r(null)},[l]),m=t.useMemo(()=>({user:s,loginUser:a,logoutUser:x}),[s,a,x]);return t.useEffect(()=>{r(n())},[n]),e.jsxRuntimeExports.jsx(e.UserContext.Provider,{value:m,children:u})},f=()=>{const{confirmTexts:u}=t.useContext(e.LuminusComponentsContext),{onConfirm:o,onCancel:n,text:s,show:r}=j.useConfirm();return e.jsxRuntimeExports.jsx(d.Modal,{show:r,size:"sm",centered:!0,onHide:n,children:e.jsxRuntimeExports.jsxs(d.Modal.Body,{children:[e.jsxRuntimeExports.jsx("div",{className:"mb-5 text-center",children:e.jsxRuntimeExports.jsx(d.Typography,{variant:"h6",children:s})}),e.jsxRuntimeExports.jsxs("div",{className:"w-100 d-flex gap-5",children:[e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-secondary w-100",onClick:n,children:u.no}),e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary w-100 ml",onClick:o,children:u.yes})]})]})})};exports.LoadingContext=e.LoadingContext;exports.LuminusComponentsContext=e.LuminusComponentsContext;exports.UserContext=e.UserContext;exports.LoadingProvider=v;exports.LuminusComponentsProvider=g;exports.UserProvider=b;
@@ -1,99 +1,88 @@
1
- import { j as s, C as p, I as w, M as b, d as f, e as h, f as y, g as L, L as C, h as N, b as S, U } from "./InvalidFeedback.module-BTzZvI1d.mjs";
2
- import { useState as m, useCallback as u, useMemo as x, useEffect as M, useContext as P } from "react";
3
- import { L as I, M as j, T as O } from "./Modal-D0kprPUb.mjs";
4
- import { u as k } from "./useConfirm-BMGNfVyZ.mjs";
5
- const z = ({ children: r }) => {
6
- const [o, e] = m(!1), [t, n] = m(""), a = u((d) => {
7
- e(!0), n(d);
8
- }, []), i = u(() => {
1
+ import { j as s, C as j, L as h, I as v, d as p, b, U as w } from "./InvalidFeedback.module-DClnS0tk.mjs";
2
+ import { useState as m, useCallback as u, useMemo as x, useEffect as y, useContext as L } from "react";
3
+ import { L as S, M as g, T as U } from "./Modal-CntHDyOV.mjs";
4
+ import { u as P } from "./useConfirm-Dn-9wfJs.mjs";
5
+ const I = ({ children: r }) => {
6
+ const [n, e] = m(!1), [t, o] = m(""), i = u((d) => {
7
+ e(!0), o(d);
8
+ }, []), a = u(() => {
9
9
  e(!1);
10
- }, []), c = x(() => ({ show: o, text: t, showConfirm: a, hideConfirm: i }), [o, t, a, i]);
11
- return /* @__PURE__ */ s.jsxs(p.Provider, { value: c, children: [
12
- /* @__PURE__ */ s.jsx(J, {}),
10
+ }, []), c = x(() => ({ show: n, text: t, showConfirm: i, hideConfirm: a }), [n, t, i, a]);
11
+ return /* @__PURE__ */ s.jsxs(j.Provider, { value: c, children: [
12
+ /* @__PURE__ */ s.jsx(N, {}),
13
13
  r
14
14
  ] });
15
- }, E = () => /* @__PURE__ */ s.jsx(w, { toastOptions: {
16
- icon: /* @__PURE__ */ s.jsx(b, {}),
17
- className: f("luminus-toast rounded shadow", h.toast),
18
- success: {
19
- className: f("luminus-toast-success rounded shadow", h.toast),
20
- icon: /* @__PURE__ */ s.jsx(y, {})
21
- },
22
- error: {
23
- className: f("luminus-toast-danger rounded shadow", h.toast),
24
- icon: /* @__PURE__ */ s.jsx(L, {})
25
- }
26
- } }), R = ({ axiosInstance: r, LinkComponent: o, language: e, axiosTexts: t, confirmTexts: n, formValidationTexts: a, employeePickerModalTexts: i, homeDashboardTexts: c, children: d }) => {
27
- const g = x(() => ({
15
+ }, O = ({ axiosInstance: r, LinkComponent: n, language: e, axiosTexts: t, confirmTexts: o, formValidationTexts: i, employeePickerModalTexts: a, homeDashboardTexts: c, children: d }) => {
16
+ const f = x(() => ({
28
17
  axiosInstance: r,
29
- LinkComponent: o,
18
+ LinkComponent: n,
30
19
  language: e,
31
20
  axiosTexts: t,
32
- confirmTexts: n,
33
- formValidationTexts: a,
34
- employeePickerModalTexts: i,
21
+ confirmTexts: o,
22
+ formValidationTexts: i,
23
+ employeePickerModalTexts: a,
35
24
  homeDashboardTexts: c
36
25
  }), [
37
26
  r,
38
- o,
27
+ n,
39
28
  e,
40
29
  t,
41
- n,
42
- a,
30
+ o,
43
31
  i,
32
+ a,
44
33
  c
45
34
  ]);
46
- return /* @__PURE__ */ s.jsx(C.Provider, { value: g, children: /* @__PURE__ */ s.jsxs(z, { children: [
47
- /* @__PURE__ */ s.jsx(E, {}),
35
+ return /* @__PURE__ */ s.jsx(h.Provider, { value: f, children: /* @__PURE__ */ s.jsxs(I, { children: [
36
+ /* @__PURE__ */ s.jsx(v, {}),
48
37
  d
49
38
  ] }) });
50
- }, q = ({ children: r }) => {
51
- const [o, e] = m(!1), [t] = m(/* @__PURE__ */ new Set()), n = u((c) => {
39
+ }, k = ({ children: r }) => {
40
+ const [n, e] = m(!1), [t] = m(/* @__PURE__ */ new Set()), o = u((c) => {
52
41
  t.add(c), e(!0);
53
- }, [t]), a = u((c) => {
42
+ }, [t]), i = u((c) => {
54
43
  t.delete(c), t.size === 0 && e(!1);
55
- }, [t]), i = x(() => ({ isLoading: o, startLoading: n, stopLoading: a }), [o, n, a]);
56
- return /* @__PURE__ */ s.jsxs(N.Provider, { value: i, children: [
57
- o && /* @__PURE__ */ s.jsx(I, {}),
44
+ }, [t]), a = x(() => ({ isLoading: n, startLoading: o, stopLoading: i }), [n, o, i]);
45
+ return /* @__PURE__ */ s.jsxs(p.Provider, { value: a, children: [
46
+ n && /* @__PURE__ */ s.jsx(S, {}),
58
47
  r
59
48
  ] });
60
- }, D = ({ children: r }) => {
61
- const o = S(), e = u(() => {
49
+ }, A = ({ children: r }) => {
50
+ const n = b(), e = u(() => {
62
51
  const l = localStorage.getItem("user") ?? null;
63
52
  return l ? JSON.parse(l) : null;
64
- }, []), [t, n] = m(e()), a = u(async () => {
53
+ }, []), [t, o] = m(e()), i = u(async () => {
65
54
  let l = null;
66
- return await o.get("/user/detail").then((v) => {
67
- l = v.data;
55
+ return await n.get("/user/detail").then((C) => {
56
+ l = C.data;
68
57
  }).catch(() => {
69
58
  l = null;
70
59
  }), localStorage.setItem("user", JSON.stringify(l)), l;
71
- }, [o]), i = u(() => {
60
+ }, [n]), a = u(() => {
72
61
  localStorage.removeItem("user");
73
62
  }, []), c = u(async () => {
74
- const l = await a();
75
- return l ? (n(l), !0) : !1;
76
- }, [a]), d = u(() => {
77
- i(), n(null);
78
- }, [i]), g = x(() => ({ user: t, loginUser: c, logoutUser: d }), [t, c, d]);
79
- return M(() => {
80
- n(e());
81
- }, [e]), /* @__PURE__ */ s.jsx(U.Provider, { value: g, children: r });
82
- }, J = () => {
83
- const { confirmTexts: r } = P(C), { onConfirm: o, onCancel: e, text: t, show: n } = k();
84
- return /* @__PURE__ */ s.jsx(j, { show: n, size: "sm", centered: !0, onHide: e, children: /* @__PURE__ */ s.jsxs(j.Body, { children: [
85
- /* @__PURE__ */ s.jsx("div", { className: "mb-5 text-center", children: /* @__PURE__ */ s.jsx(O, { variant: "h6", children: t }) }),
63
+ const l = await i();
64
+ return l ? (o(l), !0) : !1;
65
+ }, [i]), d = u(() => {
66
+ a(), o(null);
67
+ }, [a]), f = x(() => ({ user: t, loginUser: c, logoutUser: d }), [t, c, d]);
68
+ return y(() => {
69
+ o(e());
70
+ }, [e]), /* @__PURE__ */ s.jsx(w.Provider, { value: f, children: r });
71
+ }, N = () => {
72
+ const { confirmTexts: r } = L(h), { onConfirm: n, onCancel: e, text: t, show: o } = P();
73
+ return /* @__PURE__ */ s.jsx(g, { show: o, size: "sm", centered: !0, onHide: e, children: /* @__PURE__ */ s.jsxs(g.Body, { children: [
74
+ /* @__PURE__ */ s.jsx("div", { className: "mb-5 text-center", children: /* @__PURE__ */ s.jsx(U, { variant: "h6", children: t }) }),
86
75
  /* @__PURE__ */ s.jsxs("div", { className: "w-100 d-flex gap-5", children: [
87
76
  /* @__PURE__ */ s.jsx("button", { type: "button", className: "btn btn-secondary w-100", onClick: e, children: r.no }),
88
- /* @__PURE__ */ s.jsx("button", { type: "button", className: "btn btn-primary w-100 ml", onClick: o, children: r.yes })
77
+ /* @__PURE__ */ s.jsx("button", { type: "button", className: "btn btn-primary w-100 ml", onClick: n, children: r.yes })
89
78
  ] })
90
79
  ] }) });
91
80
  };
92
81
  export {
93
- N as LoadingContext,
94
- q as LoadingProvider,
95
- C as LuminusComponentsContext,
96
- R as LuminusComponentsProvider,
97
- U as UserContext,
98
- D as UserProvider
82
+ p as LoadingContext,
83
+ k as LoadingProvider,
84
+ h as LuminusComponentsContext,
85
+ O as LuminusComponentsProvider,
86
+ w as UserContext,
87
+ A as UserProvider
99
88
  };
@@ -1,4 +1,4 @@
1
- "use strict";const p=require("react"),G=require("./InvalidFeedback.module-OyWIsbgH.js"),J=require("react-dom");function ut(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return n.default=e,Object.freeze(n)}const ie=ut(p);function Ve(e,n){if(e==null)return{};var i={},r=Object.keys(e),o,t;for(t=0;t<r.length;t++)o=r[t],!(n.indexOf(o)>=0)&&(i[o]=e[o]);return i}function Oe(e,n){return Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Oe(e,n)}function ct(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Oe(e,n)}const ft=["xxl","xl","lg","md","sm","xs"],lt="xs",se=ie.createContext({prefixes:{},breakpoints:ft,minBreakpoint:lt});function dt(e,n){const{prefixes:i}=p.useContext(se);return e||i[n]||n}function pt(){const{breakpoints:e}=p.useContext(se);return e}function vt(){const{minBreakpoint:e}=p.useContext(se);return e}function Et(){const{dir:e}=p.useContext(se);return e==="rtl"}function we(e){return e&&e.ownerDocument||document}function yt(e){var n=we(e);return n&&n.defaultView||window}function mt(e,n){return yt(e).getComputedStyle(e,n)}var ht=/([A-Z])/g;function bt(e){return e.replace(ht,"-$1").toLowerCase()}var xt=/^ms-/;function re(e){return bt(e).replace(xt,"-ms-")}var Tt=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function gt(e){return!!(e&&Tt.test(e))}function je(e,n){var i="",r="";if(typeof n=="string")return e.style.getPropertyValue(re(n))||mt(e).getPropertyValue(re(n));Object.keys(n).forEach(function(o){var t=n[o];!t&&t!==0?e.style.removeProperty(re(o)):gt(o)?r+=o+"("+t+") ":i+=re(o)+": "+t+";"}),r&&(i+="transform: "+r+";"),e.style.cssText+=";"+i}var Se={exports:{}},oe={exports:{}},_={};/** @license React v16.13.1
1
+ "use strict";const p=require("react"),G=require("./InvalidFeedback.module-BGAwT2d5.js"),J=require("react-dom");function ut(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return n.default=e,Object.freeze(n)}const ie=ut(p);function Ve(e,n){if(e==null)return{};var i={},r=Object.keys(e),o,t;for(t=0;t<r.length;t++)o=r[t],!(n.indexOf(o)>=0)&&(i[o]=e[o]);return i}function Oe(e,n){return Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Oe(e,n)}function ct(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Oe(e,n)}const ft=["xxl","xl","lg","md","sm","xs"],lt="xs",se=ie.createContext({prefixes:{},breakpoints:ft,minBreakpoint:lt});function dt(e,n){const{prefixes:i}=p.useContext(se);return e||i[n]||n}function pt(){const{breakpoints:e}=p.useContext(se);return e}function vt(){const{minBreakpoint:e}=p.useContext(se);return e}function Et(){const{dir:e}=p.useContext(se);return e==="rtl"}function we(e){return e&&e.ownerDocument||document}function yt(e){var n=we(e);return n&&n.defaultView||window}function mt(e,n){return yt(e).getComputedStyle(e,n)}var ht=/([A-Z])/g;function bt(e){return e.replace(ht,"-$1").toLowerCase()}var xt=/^ms-/;function re(e){return bt(e).replace(xt,"-ms-")}var Tt=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function gt(e){return!!(e&&Tt.test(e))}function je(e,n){var i="",r="";if(typeof n=="string")return e.style.getPropertyValue(re(n))||mt(e).getPropertyValue(re(n));Object.keys(n).forEach(function(o){var t=n[o];!t&&t!==0?e.style.removeProperty(re(o)):gt(o)?r+=o+"("+t+") ":i+=re(o)+": "+t+";"}),r&&(i+="transform: "+r+";"),e.style.cssText+=";"+i}var Se={exports:{}},oe={exports:{}},_={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -1,6 +1,6 @@
1
1
  import * as ue from "react";
2
2
  import K, { useContext as ne, useMemo as ot, useRef as Y, useCallback as $, useEffect as H, useState as Ae, useLayoutEffect as it, createContext as at, cloneElement as De } from "react";
3
- import { m as st, j as Q, d as ut } from "./InvalidFeedback.module-BTzZvI1d.mjs";
3
+ import { h as st, j as Q, e as ut } from "./InvalidFeedback.module-DClnS0tk.mjs";
4
4
  import ee from "react-dom";
5
5
  function ct(e, n) {
6
6
  if (e == null)
@@ -1,4 +1,4 @@
1
1
  declare const useNotifications: () => {
2
- addNotification: (message: string, type: 'success' | 'info' | 'danger') => void;
2
+ addNotification: (message: string, type: 'success' | 'info' | 'danger' | 'warning') => void;
3
3
  };
4
4
  export default useNotifications;