react-bootstrap 2.1.0 → 2.1.1

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.
package/cjs/Overlay.js CHANGED
@@ -63,21 +63,22 @@ const Overlay = /*#__PURE__*/React.forwardRef(({
63
63
  transition: actualTransition,
64
64
  children: (overlayProps, {
65
65
  arrowProps,
66
- placement,
67
66
  popper: popperObj,
68
67
  show
69
68
  }) => {
70
69
  var _popperObj$state, _popperObj$state$modi;
71
70
 
72
- wrapRefs(overlayProps, arrowProps);
71
+ wrapRefs(overlayProps, arrowProps); // Need to get placement from popper object, handling case when overlay is flipped using 'flip' prop
72
+
73
+ const updatedPlacement = popperObj == null ? void 0 : popperObj.placement;
73
74
  const popper = Object.assign(popperRef.current, {
74
75
  state: popperObj == null ? void 0 : popperObj.state,
75
76
  scheduleUpdate: popperObj == null ? void 0 : popperObj.update,
76
- placement,
77
+ placement: updatedPlacement,
77
78
  outOfBoundaries: (popperObj == null ? void 0 : (_popperObj$state = popperObj.state) == null ? void 0 : (_popperObj$state$modi = _popperObj$state.modifiersData.hide) == null ? void 0 : _popperObj$state$modi.isReferenceHidden) || false
78
79
  });
79
80
  if (typeof overlay === 'function') return overlay({ ...overlayProps,
80
- placement,
81
+ placement: updatedPlacement,
81
82
  show,
82
83
  ...(!transition && show && {
83
84
  className: 'show'
@@ -86,7 +87,7 @@ const Overlay = /*#__PURE__*/React.forwardRef(({
86
87
  arrowProps
87
88
  });
88
89
  return /*#__PURE__*/React.cloneElement(overlay, { ...overlayProps,
89
- placement,
90
+ placement: updatedPlacement,
90
91
  arrowProps,
91
92
  popper,
92
93
  className: (0, _classnames.default)(overlay.props.className, !transition && show && 'show'),
@@ -4,7 +4,7 @@ export interface ThemeContextValue {
4
4
  dir?: string;
5
5
  }
6
6
  export interface ThemeProviderProps extends Partial<ThemeContextValue> {
7
- children: React.ElementType;
7
+ children: React.ReactNode;
8
8
  }
9
9
  declare const Consumer: React.Consumer<ThemeContextValue>;
10
10
  declare function ThemeProvider({ prefixes, dir, children }: ThemeProviderProps): JSX.Element;
@@ -13,6 +13,8 @@ declare namespace ThemeProvider {
13
13
  }
14
14
  export declare function useBootstrapPrefix(prefix: string | undefined, defaultPrefix: string): string;
15
15
  export declare function useIsRTL(): boolean;
16
- declare function createBootstrapComponent(Component: any, opts: any): React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
16
+ declare function createBootstrapComponent(Component: any, opts: any): React.ForwardRefExoticComponent<{
17
+ bsPrefix?: string | undefined;
18
+ } & React.RefAttributes<any>>;
17
19
  export { createBootstrapComponent, Consumer as ThemeConsumer };
18
20
  export default ThemeProvider;
@@ -1626,8 +1626,8 @@ function createBootstrapComponent(Component, opts) {
1626
1626
  bsPrefix: bsPrefix
1627
1627
  }, void 0, false, {
1628
1628
  fileName: ThemeProvider_jsxFileName,
1629
- lineNumber: 56,
1630
- columnNumber: 12
1629
+ lineNumber: 57,
1630
+ columnNumber: 14
1631
1631
  }, this);
1632
1632
  });
1633
1633
  Wrapped.displayName = `Bootstrap(${Component.displayName || Component.name})`;
@@ -13966,21 +13966,22 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
13966
13966
  transition: actualTransition,
13967
13967
  children: (overlayProps, {
13968
13968
  arrowProps,
13969
- placement,
13970
13969
  popper: popperObj,
13971
13970
  show
13972
13971
  }) => {
13973
13972
  var _popperObj$state, _popperObj$state$modi;
13974
13973
 
13975
- wrapRefs(overlayProps, arrowProps);
13974
+ wrapRefs(overlayProps, arrowProps); // Need to get placement from popper object, handling case when overlay is flipped using 'flip' prop
13975
+
13976
+ const updatedPlacement = popperObj == null ? void 0 : popperObj.placement;
13976
13977
  const popper = Object.assign(popperRef.current, {
13977
13978
  state: popperObj == null ? void 0 : popperObj.state,
13978
13979
  scheduleUpdate: popperObj == null ? void 0 : popperObj.update,
13979
- placement,
13980
+ placement: updatedPlacement,
13980
13981
  outOfBoundaries: (popperObj == null ? void 0 : (_popperObj$state = popperObj.state) == null ? void 0 : (_popperObj$state$modi = _popperObj$state.modifiersData.hide) == null ? void 0 : _popperObj$state$modi.isReferenceHidden) || false
13981
13982
  });
13982
13983
  if (typeof overlay === 'function') return overlay({ ...overlayProps,
13983
- placement,
13984
+ placement: updatedPlacement,
13984
13985
  show,
13985
13986
  ...(!transition && show && {
13986
13987
  className: 'show'
@@ -13989,7 +13990,7 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
13989
13990
  arrowProps
13990
13991
  });
13991
13992
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement(overlay, { ...overlayProps,
13992
- placement,
13993
+ placement: updatedPlacement,
13993
13994
  arrowProps,
13994
13995
  popper,
13995
13996
  className: classnames_default()(overlay.props.className, !transition && show && 'show'),
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see react-bootstrap.min.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrap=t(require("react"),require("react-dom")):e.ReactBootstrap=t(e.React,e.ReactDOM)}(self,(function(e,t){return(()=>{var n={814:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var s=o.apply(null,n);s&&e.push(s)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var i in n)r.call(n,i)&&n[i]&&e.push(i);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},286:e=>{"use strict";e.exports=function(e,t,n,r,o,a,s,i){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,s,i],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},946:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];function r(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=null;return t.forEach((function(e){if(null==o){var t=e.apply(void 0,n);null!=t&&(o=t)}})),o}return(0,o.default)(r)};var r,o=(r=n(844))&&r.__esModule?r:{default:r};e.exports=t.default},844:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,r,o,a,s){var i=o||"<<anonymous>>",l=s||r;if(null==n[r])return t?new Error("Required "+a+" `"+l+"` was not specified in `"+i+"`."):null;for(var c=arguments.length,u=Array(c>6?c-6:0),d=6;d<c;d++)u[d-6]=arguments[d];return e.apply(void 0,[n,r,i,a,l].concat(u))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},e.exports=t.default},428:(e,t,n)=>{"use strict";var r=n(134);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,s){if(s!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},526:(e,t,n)=>{e.exports=n(428)()},134:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},356:(e,t,n)=>{"use strict";var r=n(787),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),t.Fragment=a("react.fragment")}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:s.current}}t.jsx=c,t.jsxs=c},373:(e,t,n)=>{"use strict";e.exports=n(356)},459:e=>{"use strict";e.exports=function(){}},787:t=>{"use strict";t.exports=e},156:e=>{"use strict";e.exports=t}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.r(a),o.d(a,{Accordion:()=>Oe,AccordionButton:()=>ye,AccordionCollapse:()=>pe,AccordionContext:()=>de,Alert:()=>nt,Anchor:()=>rt,Badge:()=>at,Breadcrumb:()=>ct,BreadcrumbItem:()=>it,Button:()=>dt,ButtonGroup:()=>pt,ButtonToolbar:()=>vt,Card:()=>St,CardGroup:()=>Mt,CardImg:()=>bt,Carousel:()=>Vt,CarouselItem:()=>Kt,CloseButton:()=>Ue,Col:()=>Xt,Collapse:()=>le,Container:()=>ta,Dropdown:()=>go,DropdownButton:()=>No,Fade:()=>We,Figure:()=>ca,FloatingLabel:()=>Yo,Form:()=>Qo,FormCheck:()=>Mo,FormControl:()=>Io,FormFloating:()=>Lo,FormGroup:()=>Bo,FormLabel:()=>Ko,FormSelect:()=>zo,FormText:()=>Uo,Image:()=>oa,InputGroup:()=>fa,ListGroup:()=>ka,ListGroupItem:()=>Oa,Modal:()=>cs,ModalBody:()=>Xa,ModalDialog:()=>Ja,ModalFooter:()=>Qa,ModalTitle:()=>os,Nav:()=>ms,NavDropdown:()=>Bs,NavItem:()=>us,NavLink:()=>fs,Navbar:()=>Ls,NavbarBrand:()=>hs,Offcanvas:()=>$s,OffcanvasBody:()=>ws,OffcanvasHeader:()=>Os,OffcanvasTitle:()=>Ps,Overlay:()=>Gs,OverlayTrigger:()=>Zs,PageItem:()=>Qs,Pagination:()=>ii,Placeholder:()=>fi,PlaceholderButton:()=>ui,Popover:()=>Vs,PopoverBody:()=>_s,PopoverHeader:()=>Hs,ProgressBar:()=>hi,Ratio:()=>gi,Row:()=>wi,SSRProvider:()=>Pi,Spinner:()=>Ni,SplitButton:()=>Oi,Stack:()=>$i,Tab:()=>Xi,TabContainer:()=>Wi,TabContent:()=>zi,TabPane:()=>Ui,Table:()=>Yi,Tabs:()=>el,ThemeProvider:()=>y,Toast:()=>cl,ToastBody:()=>il,ToastContainer:()=>fl,ToastHeader:()=>sl,ToggleButton:()=>vl,ToggleButtonGroup:()=>bl,Tooltip:()=>xl,useAccordionButton:()=>ge});var e=o(814),t=o.n(e),n=o(787),r=o.n(n);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var l=o(286),c=o.n(l);function u(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function d(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function f(e,t,r){var o=(0,n.useRef)(void 0!==e),a=(0,n.useState)(t),s=a[0],i=a[1],l=void 0!==e,c=o.current;return o.current=l,!l&&c&&s!==t&&i(t),[l?e:s,(0,n.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];r&&r.apply(void 0,[e].concat(n)),i(e)}),[r])]}function p(e,t){return Object.keys(t).reduce((function(n,r){var o,a=n,l=a[u(r)],c=a[r],p=i(a,[u(r),r].map(d)),m=t[r],v=f(c,l,e[m]),h=v[0],b=v[1];return s({},p,((o={})[r]=h,o[m]=b,o))}),e)}var m=o(373);const v=n.createContext({prefixes:{}}),{Consumer:h,Provider:b}=v;function g(e,t){const{prefixes:r}=(0,n.useContext)(v);return e||r[t]||t}function x(){const{dir:e}=(0,n.useContext)(v);return"rtl"===e}const y=function({prefixes:e={},dir:t,children:r}){const o=(0,n.useMemo)((()=>({prefixes:{...e},dir:t})),[e,t]);return(0,m.jsx)(b,{value:o,children:r})};function w(e){return e&&e.ownerDocument||document}var E=/([A-Z])/g,N=/^ms-/;function C(e){return function(e){return e.replace(E,"-$1").toLowerCase()}(e).replace(N,"-ms-")}var j=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const O=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(C(t))||function(e,t){return function(e){var t=w(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue(C(t));Object.keys(t).forEach((function(o){var a=t[o];a||0===a?function(e){return!(!e||!j.test(e))}(o)?r+=o+"("+a+") ":n+=C(o)+": "+a+";":e.style.removeProperty(C(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var k=o(526),R=o.n(k),T=o(156),$=o.n(T);const S=r().createContext(null);var M="unmounted",D="exited",I="entering",L="entered",A="exiting",B=function(e){var t,n;function o(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=D,r.appearStatus=I):o=L:o=t.unmountOnExit||t.mountOnEnter?M:D,r.state={status:o},r.nextCallback=null,r}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,P(t,n),o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===M?{status:D}:null};var a=o.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==I&&n!==L&&(t=I):n!==I&&n!==L||(t=A)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},a.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===I?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===D&&this.setState({status:M})},a.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[$().findDOMNode(this),r],a=o[0],s=o[1],i=this.getTimeouts(),l=r?i.appear:i.enter;e||n?(this.props.onEnter(a,s),this.safeSetState({status:I},(function(){t.props.onEntering(a,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:L},(function(){t.props.onEntered(a,s)}))}))}))):this.safeSetState({status:L},(function(){t.props.onEntered(a)}))},a.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:$().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:A},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:D},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:D},(function(){e.props.onExited(r)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:$().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],s=o[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===M)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,i(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r().createElement(S.Provider,{value:null},"function"==typeof n?n(e,o):r().cloneElement(r().Children.only(n),o))},o}(r().Component);function F(){}B.contextType=S,B.propTypes={},B.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:F,onEntering:F,onEntered:F,onExit:F,onExiting:F,onExited:F},B.UNMOUNTED=M,B.EXITED=D,B.ENTERING=I,B.ENTERED=L,B.EXITING=A;const K=B,H=!("undefined"==typeof window||!window.document||!window.document.createElement);var _=!1,W=!1;try{var z={get passive(){return _=!0},get once(){return W=_=!0}};H&&(window.addEventListener("test",z,z),window.removeEventListener("test",z,!0))}catch(e){}const V=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!W){var o=r.once,a=r.capture,s=n;!W&&o&&(s=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=s),e.addEventListener(t,s,_?r:a)}e.addEventListener(t,n,r)},U=function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)},q=function(e,t,n,r){return V(e,t,n,r),function(){U(e,t,n,r)}};function G(e,t,n,r){var o,a;null==n&&(a=-1===(o=O(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(o)*a||0);var s=function(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",n,r),e.dispatchEvent(o)}}(e,0,!0)}),t+n),a=q(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),a()}}(e,n,r),i=q(e,"transitionend",t);return function(){s(),i()}}function X(e,t){const n=O(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function Y(e,t){const n=X(e,"transitionDuration"),r=X(e,"transitionDelay"),o=G(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}const Z=function(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)};function J(e){e.offsetHeight}var Q=function(e){return e&&"function"!=typeof e?function(t){e.current=t}:e};const ee=function(e,t){return(0,n.useMemo)((function(){return function(e,t){var n=Q(e),r=Q(t);return function(e){n&&n(e),r&&r(e)}}(e,t)}),[e,t])};function te(e){return e&&"setState"in e?$().findDOMNode(e):null!=e?e:null}const ne=r().forwardRef((({onEnter:e,onEntering:t,onEntered:o,onExit:a,onExiting:s,onExited:i,addEndListener:l,children:c,childRef:u,...d},f)=>{const p=(0,n.useRef)(null),v=ee(p,u),h=e=>{v(te(e))},b=e=>t=>{e&&p.current&&e(p.current,t)},g=(0,n.useCallback)(b(e),[e]),x=(0,n.useCallback)(b(t),[t]),y=(0,n.useCallback)(b(o),[o]),w=(0,n.useCallback)(b(a),[a]),E=(0,n.useCallback)(b(s),[s]),N=(0,n.useCallback)(b(i),[i]),C=(0,n.useCallback)(b(l),[l]);return(0,m.jsx)(K,{ref:f,...d,onEnter:g,onEntered:y,onEntering:x,onExit:w,onExited:N,onExiting:E,addEndListener:C,nodeRef:p,children:"function"==typeof c?(e,t)=>c(e,{...t,ref:h}):r().cloneElement(c,{ref:h})})})),re={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function oe(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=re[e];return n+parseInt(O(t,r[0]),10)+parseInt(O(t,r[1]),10)}const ae={[D]:"collapse",[A]:"collapsing",[I]:"collapsing",[L]:"collapse show"},se={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,getDimensionValue:oe},ie=r().forwardRef((({onEnter:e,onEntering:o,onEntered:a,onExit:s,onExiting:i,className:l,children:c,dimension:u="height",getDimensionValue:d=oe,...f},p)=>{const v="function"==typeof u?u():u,h=(0,n.useMemo)((()=>Z((e=>{e.style[v]="0"}),e)),[v,e]),b=(0,n.useMemo)((()=>Z((e=>{const t=`scroll${v[0].toUpperCase()}${v.slice(1)}`;e.style[v]=`${e[t]}px`}),o)),[v,o]),g=(0,n.useMemo)((()=>Z((e=>{e.style[v]=null}),a)),[v,a]),x=(0,n.useMemo)((()=>Z((e=>{e.style[v]=`${d(v,e)}px`,J(e)}),s)),[s,d,v]),y=(0,n.useMemo)((()=>Z((e=>{e.style[v]=null}),i)),[v,i]);return(0,m.jsx)(ne,{ref:p,addEndListener:Y,...f,"aria-expanded":f.role?f.in:null,onEnter:h,onEntering:b,onEntered:g,onExit:x,onExiting:y,childRef:c.ref,children:(e,n)=>r().cloneElement(c,{...n,className:t()(l,c.props.className,ae[e],"width"===v&&"collapse-horizontal")})})}));ie.defaultProps=se;const le=ie;function ce(e,t){return Array.isArray(e)?e.includes(t):e===t}const ue=n.createContext({});ue.displayName="AccordionContext";const de=ue,fe=n.forwardRef((({as:e="div",bsPrefix:r,className:o,children:a,eventKey:s,...i},l)=>{const{activeEventKey:c}=(0,n.useContext)(de);return r=g(r,"accordion-collapse"),(0,m.jsx)(le,{ref:l,in:ce(c,s),...i,className:t()(o,r),children:(0,m.jsx)(e,{children:n.Children.only(a)})})}));fe.displayName="AccordionCollapse";const pe=fe,me=n.createContext({eventKey:""});me.displayName="AccordionItemContext";const ve=me,he=n.forwardRef((({as:e="div",bsPrefix:r,className:o,...a},s)=>{r=g(r,"accordion-body");const{eventKey:i}=(0,n.useContext)(ve);return(0,m.jsx)(pe,{eventKey:i,children:(0,m.jsx)(e,{ref:s,...a,className:t()(o,r)})})}));he.displayName="AccordionBody";const be=he;function ge(e,t){const{activeEventKey:r,onSelect:o,alwaysOpen:a}=(0,n.useContext)(de);return n=>{let s=e===r?null:e;a&&(s=Array.isArray(r)?r.includes(e)?r.filter((t=>t!==e)):[...r,e]:[e]),null==o||o(s,n),null==t||t(n)}}const xe=n.forwardRef((({as:e="button",bsPrefix:r,className:o,onClick:a,...s},i)=>{r=g(r,"accordion-button");const{eventKey:l}=(0,n.useContext)(ve),c=ge(l,a),{activeEventKey:u}=(0,n.useContext)(de);return"button"===e&&(s.type="button"),(0,m.jsx)(e,{ref:i,onClick:c,...s,"aria-expanded":l===u,className:t()(o,r,!ce(u,l)&&"collapsed")})}));xe.displayName="AccordionButton";const ye=xe,we=n.forwardRef((({as:e="h2",bsPrefix:n,className:r,children:o,onClick:a,...s},i)=>(n=g(n,"accordion-header"),(0,m.jsx)(e,{ref:i,...s,className:t()(r,n),children:(0,m.jsx)(ye,{onClick:a,children:o})}))));we.displayName="AccordionHeader";const Ee=we,Ne=n.forwardRef((({as:e="div",bsPrefix:r,className:o,eventKey:a,...s},i)=>{r=g(r,"accordion-item");const l=(0,n.useMemo)((()=>({eventKey:a})),[a]);return(0,m.jsx)(ve.Provider,{value:l,children:(0,m.jsx)(e,{ref:i,...s,className:t()(o,r)})})}));Ne.displayName="AccordionItem";const Ce=Ne,je=n.forwardRef(((e,r)=>{const{as:o="div",activeKey:a,bsPrefix:s,className:i,onSelect:l,flush:c,alwaysOpen:u,...d}=p(e,{activeKey:"onSelect"}),f=g(s,"accordion"),v=(0,n.useMemo)((()=>({activeEventKey:a,onSelect:l,alwaysOpen:u})),[a,l,u]);return(0,m.jsx)(de.Provider,{value:v,children:(0,m.jsx)(o,{ref:r,...d,className:t()(i,f,c&&`${f}-flush`)})})}));je.displayName="Accordion";const Oe=Object.assign(je,{Button:ye,Collapse:pe,Item:Ce,Header:Ee,Body:be}),Pe=function(e){var t=(0,n.useRef)(e);return(0,n.useEffect)((function(){t.current=e}),[e]),t};function ke(e){var t=Pe(e);return(0,n.useCallback)((function(){return t.current&&t.current.apply(t,arguments)}),[t])}function Re(){return(0,n.useState)(null)}function Te(e){var t=function(e){var t=(0,n.useRef)(e);return(0,n.useEffect)((function(){t.current=e}),[e]),t}(e);return(0,n.useCallback)((function(){return t.current&&t.current.apply(t,arguments)}),[t])}function $e(){var e=(0,n.useRef)(!0),t=(0,n.useRef)((function(){return e.current}));return(0,n.useEffect)((function(){return function(){e.current=!1}}),[]),t.current}function Se(e){var t=(0,n.useRef)(null);return(0,n.useEffect)((function(){t.current=e})),t.current}var Me=void 0!==o.g&&o.g.navigator&&"ReactNative"===o.g.navigator.product;"undefined"!=typeof document||Me?n.useLayoutEffect:n.useEffect,new WeakMap;const De=["as","disabled"];function Ie({tagName:e,disabled:t,href:n,target:r,rel:o,onClick:a,tabIndex:s=0,type:i}){e||(e=null!=n||null!=r||null!=o?"a":"button");const l={tagName:e};if("button"===e)return[{type:i||"button",disabled:t},l];const c=r=>{(t||"a"===e&&function(e){return!e||"#"===e.trim()}(n))&&r.preventDefault(),t?r.stopPropagation():null==a||a(r)};return[{role:"button",disabled:void 0,tabIndex:t?void 0:s,href:"a"===e&&t?void 0:n,target:"a"===e?r:void 0,"aria-disabled":t||void 0,rel:"a"===e?o:void 0,onClick:c,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),c(e))}},l]}const Le=n.forwardRef(((e,t)=>{let{as:n,disabled:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,De);const[a,{tagName:s}]=Ie(Object.assign({tagName:n,disabled:r},o));return(0,m.jsx)(s,Object.assign({},o,a,{ref:t}))}));Le.displayName="Button";const Ae=Le,Be=["onKeyDown"],Fe=n.forwardRef(((e,t)=>{let{onKeyDown:n}=e,r=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Be);const[o]=Ie(Object.assign({tagName:"a"},r)),a=Te((e=>{o.onKeyDown(e),null==n||n(e)}));return((s=r.href)&&"#"!==s.trim()||r.role)&&"button"!==r.role?(0,m.jsx)("a",Object.assign({ref:t},r,{onKeyDown:n})):(0,m.jsx)("a",Object.assign({ref:t},r,o,{onKeyDown:a}));var s}));Fe.displayName="Anchor";const Ke=Fe,He={[I]:"show",[L]:"show"},_e=n.forwardRef((({className:e,children:r,transitionClasses:o={},...a},s)=>{const i=(0,n.useCallback)(((e,t)=>{J(e),null==a.onEnter||a.onEnter(e,t)}),[a]);return(0,m.jsx)(ne,{ref:s,addEndListener:Y,...a,onEnter:i,childRef:r.ref,children:(a,s)=>n.cloneElement(r,{...s,className:t()("fade",e,r.props.className,He[a],o[a])})})}));_e.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},_e.displayName="Fade";const We=_e,ze={"aria-label":R().string,onClick:R().func,variant:R().oneOf(["white"])},Ve=n.forwardRef((({className:e,variant:n,...r},o)=>(0,m.jsx)("button",{ref:o,type:"button",className:t()("btn-close",n&&`btn-close-${n}`,e),...r})));Ve.displayName="CloseButton",Ve.propTypes=ze,Ve.defaultProps={"aria-label":"Close"};const Ue=Ve,qe=e=>n.forwardRef(((n,r)=>(0,m.jsx)("div",{...n,ref:r,className:t()(n.className,e)})));var Ge=/-(.)/g;const Xe=e=>{return e[0].toUpperCase()+(t=e,t.replace(Ge,(function(e,t){return t.toUpperCase()}))).slice(1);var t};function Ye(e,{displayName:r=Xe(e),Component:o,defaultProps:a}={}){const s=n.forwardRef((({className:n,bsPrefix:r,as:a=o||"div",...s},i)=>{const l=g(r,e);return(0,m.jsx)(a,{ref:i,className:t()(n,l),...s})}));return s.defaultProps=a,s.displayName=r,s}const Ze=qe("h4");Ze.displayName="DivStyledAsH4";const Je=Ye("alert-heading",{Component:Ze}),Qe=Ye("alert-link",{Component:Ke}),et={variant:"primary",show:!0,transition:We,closeLabel:"Close alert"},tt=n.forwardRef(((e,n)=>{const{bsPrefix:r,show:o,closeLabel:a,closeVariant:s,className:i,children:l,variant:c,onClose:u,dismissible:d,transition:f,...v}=p(e,{show:"onClose"}),h=g(r,"alert"),b=ke((e=>{u&&u(!1,e)})),x=!0===f?We:f,y=(0,m.jsxs)("div",{role:"alert",...x?void 0:v,ref:n,className:t()(i,h,c&&`${h}-${c}`,d&&`${h}-dismissible`),children:[d&&(0,m.jsx)(Ue,{onClick:b,"aria-label":a,variant:s}),l]});return x?(0,m.jsx)(x,{unmountOnExit:!0,...v,ref:void 0,in:o,children:y}):o?y:null}));tt.displayName="Alert",tt.defaultProps=et;const nt=Object.assign(tt,{Link:Qe,Heading:Je}),rt=Ke,ot=n.forwardRef((({bsPrefix:e,bg:n,pill:r,text:o,className:a,as:s="span",...i},l)=>{const c=g(e,"badge");return(0,m.jsx)(s,{ref:l,...i,className:t()(a,c,r&&"rounded-pill",o&&`text-${o}`,n&&`bg-${n}`)})}));ot.displayName="Badge",ot.defaultProps={bg:"primary",pill:!1};const at=ot,st=n.forwardRef((({bsPrefix:e,active:n,children:r,className:o,as:a="li",linkAs:s=Ke,linkProps:i,href:l,title:c,target:u,...d},f)=>{const p=g(e,"breadcrumb-item");return(0,m.jsx)(a,{ref:f,...d,className:t()(p,o,{active:n}),"aria-current":n?"page":void 0,children:n?r:(0,m.jsx)(s,{...i,href:l,title:c,target:u,children:r})})}));st.displayName="BreadcrumbItem",st.defaultProps={active:!1,linkProps:{}};const it=st,lt=n.forwardRef((({bsPrefix:e,className:n,listProps:r,children:o,label:a,as:s="nav",...i},l)=>{const c=g(e,"breadcrumb");return(0,m.jsx)(s,{"aria-label":a,className:n,ref:l,...i,children:(0,m.jsx)("ol",{...r,className:t()(c,null==r?void 0:r.className),children:o})})}));lt.displayName="Breadcrumb",lt.defaultProps={label:"breadcrumb",listProps:{}};const ct=Object.assign(lt,{Item:it}),ut=n.forwardRef((({as:e,bsPrefix:n,variant:r,size:o,active:a,className:s,...i},l)=>{const c=g(n,"btn"),[u,{tagName:d}]=Ie({tagName:e,...i}),f=d;return(0,m.jsx)(f,{...i,...u,ref:l,className:t()(s,c,a&&"active",r&&`${c}-${r}`,o&&`${c}-${o}`,i.href&&i.disabled&&"disabled")})}));ut.displayName="Button",ut.defaultProps={variant:"primary",active:!1,disabled:!1};const dt=ut,ft=n.forwardRef((({bsPrefix:e,size:n,vertical:r,className:o,as:a="div",...s},i)=>{const l=g(e,"btn-group");let c=l;return r&&(c=`${l}-vertical`),(0,m.jsx)(a,{...s,ref:i,className:t()(o,c,n&&`${l}-${n}`)})}));ft.displayName="ButtonGroup",ft.defaultProps={vertical:!1,role:"group"};const pt=ft,mt=n.forwardRef((({bsPrefix:e,className:n,...r},o)=>{const a=g(e,"btn-toolbar");return(0,m.jsx)("div",{...r,ref:o,className:t()(n,a)})}));mt.displayName="ButtonToolbar",mt.defaultProps={role:"toolbar"};const vt=mt,ht=n.forwardRef((({bsPrefix:e,className:n,variant:r,as:o="img",...a},s)=>{const i=g(e,"card-img");return(0,m.jsx)(o,{ref:s,className:t()(r?`${i}-${r}`:i,n),...a})}));ht.displayName="CardImg";const bt=ht,gt=n.createContext(null);gt.displayName="CardHeaderContext";const xt=gt,yt=n.forwardRef((({bsPrefix:e,className:r,as:o="div",...a},s)=>{const i=g(e,"card-header"),l=(0,n.useMemo)((()=>({cardHeaderBsPrefix:i})),[i]);return(0,m.jsx)(xt.Provider,{value:l,children:(0,m.jsx)(o,{ref:s,...a,className:t()(r,i)})})}));yt.displayName="CardHeader";const wt=yt,Et=qe("h5"),Nt=qe("h6"),Ct=Ye("card-body"),jt=Ye("card-title",{Component:Et}),Ot=Ye("card-subtitle",{Component:Nt}),Pt=Ye("card-link",{Component:"a"}),kt=Ye("card-text",{Component:"p"}),Rt=Ye("card-footer"),Tt=Ye("card-img-overlay"),$t=n.forwardRef((({bsPrefix:e,className:n,bg:r,text:o,border:a,body:s,children:i,as:l="div",...c},u)=>{const d=g(e,"card");return(0,m.jsx)(l,{ref:u,...c,className:t()(n,d,r&&`bg-${r}`,o&&`text-${o}`,a&&`border-${a}`),children:s?(0,m.jsx)(Ct,{children:i}):i})}));$t.displayName="Card",$t.defaultProps={body:!1};const St=Object.assign($t,{Img:bt,Title:jt,Subtitle:Ot,Body:Ct,Link:Pt,Text:kt,Header:wt,Footer:Rt,ImgOverlay:Tt}),Mt=Ye("card-group");function Dt(e){var t,r,o=(t=e,(r=(0,n.useRef)(t)).current=t,r);(0,n.useEffect)((function(){return function(){return o.current()}}),[])}var It=Math.pow(2,31)-1;function Lt(e,t,n){var r=n-Date.now();e.current=r<=It?setTimeout(t,r):setTimeout((function(){return Lt(e,t,n)}),It)}function At(){var e=function(){var e=(0,n.useRef)(!0),t=(0,n.useRef)((function(){return e.current}));return(0,n.useEffect)((function(){return function(){e.current=!1}}),[]),t.current}(),t=(0,n.useRef)();return Dt((function(){return clearTimeout(t.current)})),(0,n.useMemo)((function(){var n=function(){return clearTimeout(t.current)};return{set:function(r,o){void 0===o&&(o=0),e()&&(n(),o<=It?t.current=setTimeout(r,o):Lt(t,r,Date.now()+o))},clear:n}}),[])}const Bt=Ye("carousel-caption"),Ft=n.forwardRef((({as:e="div",bsPrefix:n,className:r,...o},a)=>{const s=t()(r,g(n,"carousel-item"));return(0,m.jsx)(e,{ref:a,...o,className:s})}));Ft.displayName="CarouselItem";const Kt=Ft;function Ht(e,t){let r=0;return n.Children.map(e,(e=>n.isValidElement(e)?t(e,r++):e))}function _t(e,t){let r=0;n.Children.forEach(e,(e=>{n.isValidElement(e)&&t(e,r++)}))}const Wt={slide:!0,fade:!1,controls:!0,indicators:!0,indicatorLabels:[],defaultActiveIndex:0,interval:5e3,keyboard:!0,pause:"hover",wrap:!0,touch:!0,prevIcon:(0,m.jsx)("span",{"aria-hidden":"true",className:"carousel-control-prev-icon"}),prevLabel:"Previous",nextIcon:(0,m.jsx)("span",{"aria-hidden":"true",className:"carousel-control-next-icon"}),nextLabel:"Next"},zt=n.forwardRef(((e,r)=>{const{as:o="div",bsPrefix:a,slide:s,fade:i,controls:l,indicators:c,indicatorLabels:u,activeIndex:d,onSelect:f,onSlide:v,onSlid:h,interval:b,keyboard:y,onKeyDown:w,pause:E,onMouseOver:N,onMouseOut:C,wrap:j,touch:O,onTouchStart:P,onTouchMove:k,onTouchEnd:R,prevIcon:T,prevLabel:$,nextIcon:S,nextLabel:M,variant:D,className:I,children:L,...A}=p(e,{activeIndex:"onSelect"}),B=g(a,"carousel"),F=x(),K=(0,n.useRef)(null),[H,_]=(0,n.useState)("next"),[W,z]=(0,n.useState)(!1),[V,U]=(0,n.useState)(!1),[q,G]=(0,n.useState)(d||0);V||d===q||(K.current?_(K.current):_((d||0)>q?"next":"prev"),s&&U(!0),G(d||0)),(0,n.useEffect)((()=>{K.current&&(K.current=null)}));let X,Z=0;_t(L,((e,t)=>{++Z,t===d&&(X=e.props.interval)}));const Q=Pe(X),ee=(0,n.useCallback)((e=>{if(V)return;let t=q-1;if(t<0){if(!j)return;t=Z-1}K.current="prev",null==f||f(t,e)}),[V,q,f,j,Z]),te=ke((e=>{if(V)return;let t=q+1;if(t>=Z){if(!j)return;t=0}K.current="next",null==f||f(t,e)})),re=(0,n.useRef)();(0,n.useImperativeHandle)(r,(()=>({element:re.current,prev:ee,next:te})));const oe=ke((()=>{!document.hidden&&function(e){if(!(e&&e.style&&e.parentNode&&e.parentNode.style))return!1;const t=getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&"none"!==getComputedStyle(e.parentNode).display}(re.current)&&(F?ee():te())})),ae="next"===H?"start":"end";var se,ie,le;se=()=>{s||(null==v||v(q,ae),null==h||h(q,ae))},ie=[q],le=(0,n.useRef)(!0),(0,n.useEffect)((function(){if(!le.current)return se();le.current=!1}),ie);const ce=`${B}-item-${H}`,ue=`${B}-item-${ae}`,de=(0,n.useCallback)((e=>{J(e),null==v||v(q,ae)}),[v,q,ae]),fe=(0,n.useCallback)((()=>{U(!1),null==h||h(q,ae)}),[h,q,ae]),pe=(0,n.useCallback)((e=>{if(y&&!/input|textarea/i.test(e.target.tagName))switch(e.key){case"ArrowLeft":return e.preventDefault(),void(F?te(e):ee(e));case"ArrowRight":return e.preventDefault(),void(F?ee(e):te(e))}null==w||w(e)}),[y,w,ee,te,F]),me=(0,n.useCallback)((e=>{"hover"===E&&z(!0),null==N||N(e)}),[E,N]),ve=(0,n.useCallback)((e=>{z(!1),null==C||C(e)}),[C]),he=(0,n.useRef)(0),be=(0,n.useRef)(0),ge=At(),xe=(0,n.useCallback)((e=>{he.current=e.touches[0].clientX,be.current=0,"hover"===E&&z(!0),null==P||P(e)}),[E,P]),ye=(0,n.useCallback)((e=>{e.touches&&e.touches.length>1?be.current=0:be.current=e.touches[0].clientX-he.current,null==k||k(e)}),[k]),we=(0,n.useCallback)((e=>{if(O){const t=be.current;Math.abs(t)>40&&(t>0?ee(e):te(e))}"hover"===E&&ge.set((()=>{z(!1)}),b||void 0),null==R||R(e)}),[O,E,ee,te,ge,b,R]),Ee=null!=b&&!W&&!V,Ne=(0,n.useRef)();(0,n.useEffect)((()=>{var e,t;if(!Ee)return;const n=F?ee:te;return Ne.current=window.setInterval(document.visibilityState?oe:n,null!=(e=null!=(t=Q.current)?t:b)?e:void 0),()=>{null!==Ne.current&&clearInterval(Ne.current)}}),[Ee,ee,te,Q,b,oe,F]);const Ce=(0,n.useMemo)((()=>c&&Array.from({length:Z},((e,t)=>e=>{null==f||f(t,e)}))),[c,Z,f]);return(0,m.jsxs)(o,{ref:re,...A,onKeyDown:pe,onMouseOver:me,onMouseOut:ve,onTouchStart:xe,onTouchMove:ye,onTouchEnd:we,className:t()(I,B,s&&"slide",i&&`${B}-fade`,D&&`${B}-${D}`),children:[c&&(0,m.jsx)("div",{className:`${B}-indicators`,children:Ht(L,((e,t)=>(0,m.jsx)("button",{type:"button","data-bs-target":"","aria-label":null!=u&&u.length?u[t]:`Slide ${t+1}`,className:t===q?"active":void 0,onClick:Ce?Ce[t]:void 0,"aria-current":t===q},t)))}),(0,m.jsx)("div",{className:`${B}-inner`,children:Ht(L,((e,r)=>{const o=r===q;return s?(0,m.jsx)(ne,{in:o,onEnter:o?de:void 0,onEntered:o?fe:void 0,addEndListener:Y,children:(r,a)=>n.cloneElement(e,{...a,className:t()(e.props.className,o&&"entered"!==r&&ce,("entered"===r||"exiting"===r)&&"active",("entering"===r||"exiting"===r)&&ue)})}):n.cloneElement(e,{className:t()(e.props.className,o&&"active")})}))}),l&&(0,m.jsxs)(m.Fragment,{children:[(j||0!==d)&&(0,m.jsxs)(Ke,{className:`${B}-control-prev`,onClick:ee,children:[T,$&&(0,m.jsx)("span",{className:"visually-hidden",children:$})]}),(j||d!==Z-1)&&(0,m.jsxs)(Ke,{className:`${B}-control-next`,onClick:te,children:[S,M&&(0,m.jsx)("span",{className:"visually-hidden",children:M})]})]})]})}));zt.displayName="Carousel",zt.defaultProps=Wt;const Vt=Object.assign(zt,{Caption:Bt,Item:Kt}),Ut=["xxl","xl","lg","md","sm","xs"];function qt({as:e,bsPrefix:n,className:r,...o}){n=g(n,"col");const a=[],s=[];return Ut.forEach((e=>{const t=o[e];let r,i,l;delete o[e],"object"==typeof t&&null!=t?({span:r,offset:i,order:l}=t):r=t;const c="xs"!==e?`-${e}`:"";r&&a.push(!0===r?`${n}${c}`:`${n}${c}-${r}`),null!=l&&s.push(`order${c}-${l}`),null!=i&&s.push(`offset${c}-${i}`)})),[{...o,className:t()(r,...a,...s)},{as:e,bsPrefix:n,spans:a}]}const Gt=n.forwardRef(((e,n)=>{const[{className:r,...o},{as:a="div",bsPrefix:s,spans:i}]=qt(e);return(0,m.jsx)(a,{...o,ref:n,className:t()(r,!i.length&&s)})}));Gt.displayName="Col";const Xt=Gt;var Yt=Function.prototype.bind.call(Function.prototype.call,[].slice);function Zt(e,t){return Yt(e.querySelectorAll(t))}function Jt(){return(0,n.useReducer)((function(e){return!e}),!1)[1]}const Qt=n.createContext(null);var en=Object.prototype.hasOwnProperty;function tn(e,t,n){for(n of e.keys())if(nn(n,t))return n}function nn(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&nn(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"==typeof o&&!(o=tn(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"==typeof o&&!(o=tn(t,o)))return!1;if(!nn(r[1],t.get(o)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(en.call(e,n)&&++r&&!en.call(t,n))return!1;if(!(n in t)||!nn(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function rn(e){return e.split("-")[0]}function on(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function an(e){return e instanceof on(e).Element||e instanceof Element}function sn(e){return e instanceof on(e).HTMLElement||e instanceof HTMLElement}function ln(e){return"undefined"!=typeof ShadowRoot&&(e instanceof on(e).ShadowRoot||e instanceof ShadowRoot)}var cn=Math.round;function un(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(sn(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(r=n.width/s||1),a>0&&(o=n.height/a||1)}return{width:cn(n.width/r),height:cn(n.height/o),top:cn(n.top/o),right:cn(n.right/r),bottom:cn(n.bottom/o),left:cn(n.left/r),x:cn(n.left/r),y:cn(n.top/o)}}function dn(e){var t=un(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function fn(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ln(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pn(e){return e?(e.nodeName||"").toLowerCase():null}function mn(e){return on(e).getComputedStyle(e)}function vn(e){return["table","td","th"].indexOf(pn(e))>=0}function hn(e){return((an(e)?e.ownerDocument:e.document)||window.document).documentElement}function bn(e){return"html"===pn(e)?e:e.assignedSlot||e.parentNode||(ln(e)?e.host:null)||hn(e)}function gn(e){return sn(e)&&"fixed"!==mn(e).position?e.offsetParent:null}function xn(e){for(var t=on(e),n=gn(e);n&&vn(n)&&"static"===mn(n).position;)n=gn(n);return n&&("html"===pn(n)||"body"===pn(n)&&"static"===mn(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&sn(e)&&"fixed"===mn(e).position)return null;for(var n=bn(e);sn(n)&&["html","body"].indexOf(pn(n))<0;){var r=mn(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function yn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var wn=Math.max,En=Math.min,Nn=Math.round;function Cn(e,t,n){return wn(e,En(t,n))}function jn(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function On(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Pn="top",kn="bottom",Rn="right",Tn="left",$n="auto",Sn=[Pn,kn,Rn,Tn],Mn="start",Dn="end",In="viewport",Ln="popper",An=Sn.reduce((function(e,t){return e.concat([t+"-"+Mn,t+"-"+Dn])}),[]),Bn=[].concat(Sn,[$n]).reduce((function(e,t){return e.concat([t,t+"-"+Mn,t+"-"+Dn])}),[]),Fn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Kn(e){return e.split("-")[1]}var Hn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _n(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Nn(Nn(t*r)/r)||0,y:Nn(Nn(n*r)/r)||0}}(s):"function"==typeof u?u(s):s,f=d.x,p=void 0===f?0:f,m=d.y,v=void 0===m?0:m,h=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),g=Tn,x=Pn,y=window;if(c){var w=xn(n),E="clientHeight",N="clientWidth";w===on(n)&&"static"!==mn(w=hn(n)).position&&"absolute"===i&&(E="scrollHeight",N="scrollWidth"),w=w,o!==Pn&&(o!==Tn&&o!==Rn||a!==Dn)||(x=kn,v-=w[E]-r.height,v*=l?1:-1),o!==Tn&&(o!==Pn&&o!==kn||a!==Dn)||(g=Rn,p-=w[N]-r.width,p*=l?1:-1)}var C,j=Object.assign({position:i},c&&Hn);return l?Object.assign({},j,((C={})[x]=b?"0":"",C[g]=h?"0":"",C.transform=(y.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",C)):Object.assign({},j,((t={})[x]=b?v+"px":"",t[g]=h?p+"px":"",t.transform="",t))}var Wn={passive:!0},zn={left:"right",right:"left",bottom:"top",top:"bottom"};function Vn(e){return e.replace(/left|right|bottom|top/g,(function(e){return zn[e]}))}var Un={start:"end",end:"start"};function qn(e){return e.replace(/start|end/g,(function(e){return Un[e]}))}function Gn(e){var t=on(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xn(e){return un(hn(e)).left+Gn(e).scrollLeft}function Yn(e){var t=mn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Zn(e){return["html","body","#document"].indexOf(pn(e))>=0?e.ownerDocument.body:sn(e)&&Yn(e)?e:Zn(bn(e))}function Jn(e,t){var n;void 0===t&&(t=[]);var r=Zn(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=on(r),s=o?[a].concat(a.visualViewport||[],Yn(r)?r:[]):r,i=t.concat(s);return o?i:i.concat(Jn(bn(s)))}function Qn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function er(e,t){return t===In?Qn(function(e){var t=on(e),n=hn(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,i=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,i=r.offsetTop)),{width:o,height:a,x:s+Xn(e),y:i}}(e)):sn(t)?function(e){var t=un(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Qn(function(e){var t,n=hn(e),r=Gn(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=wn(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=wn(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+Xn(e),l=-r.scrollTop;return"rtl"===mn(o||n).direction&&(i+=wn(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}(hn(e)))}function tr(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?rn(o):null,s=o?Kn(o):null,i=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case Pn:t={x:i,y:n.y-r.height};break;case kn:t={x:i,y:n.y+n.height};break;case Rn:t={x:n.x+n.width,y:l};break;case Tn:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?yn(a):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Mn:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Dn:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function nr(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.boundary,s=void 0===a?"clippingParents":a,i=n.rootBoundary,l=void 0===i?In:i,c=n.elementContext,u=void 0===c?Ln:c,d=n.altBoundary,f=void 0!==d&&d,p=n.padding,m=void 0===p?0:p,v=jn("number"!=typeof m?m:On(m,Sn)),h=u===Ln?"reference":Ln,b=e.rects.popper,g=e.elements[f?h:u],x=function(e,t,n){var r="clippingParents"===t?function(e){var t=Jn(bn(e)),n=["absolute","fixed"].indexOf(mn(e).position)>=0&&sn(e)?xn(e):e;return an(n)?t.filter((function(e){return an(e)&&fn(e,n)&&"body"!==pn(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o[0],s=o.reduce((function(t,n){var r=er(e,n);return t.top=wn(r.top,t.top),t.right=En(r.right,t.right),t.bottom=En(r.bottom,t.bottom),t.left=wn(r.left,t.left),t}),er(e,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(an(g)?g:g.contextElement||hn(e.elements.popper),s,l),y=un(e.elements.reference),w=tr({reference:y,element:b,strategy:"absolute",placement:o}),E=Qn(Object.assign({},b,w)),N=u===Ln?E:y,C={top:x.top-N.top+v.top,bottom:N.bottom-x.bottom+v.bottom,left:x.left-N.left+v.left,right:N.right-x.right+v.right},j=e.modifiersData.offset;if(u===Ln&&j){var O=j[o];Object.keys(C).forEach((function(e){var t=[Rn,kn].indexOf(e)>=0?1:-1,n=[Pn,kn].indexOf(e)>=0?"y":"x";C[e]+=O[n]*t}))}return C}function rr(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function or(e){return[Pn,Rn,kn,Tn].some((function(t){return e[t]>=0}))}function ar(e,t,n){void 0===n&&(n=!1);var r,o,a=sn(t),s=sn(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return 1!==n||1!==r}(t),i=hn(t),l=un(e,s),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==pn(t)||Yn(i))&&(c=(r=t)!==on(r)&&sn(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Gn(r)),sn(t)?((u=un(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=Xn(i))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function sr(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ir={placement:"bottom",modifiers:[],strategy:"absolute"};function lr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}const cr=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?ir:o;return function(e,t,n){void 0===n&&(n=a);var o,s,i={placement:"bottom",orderedModifiers:[],options:Object.assign({},ir,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:i,setOptions:function(n){var o="function"==typeof n?n(i.options):n;d(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:an(e)?Jn(e):e.contextElement?Jn(e.contextElement):[],popper:Jn(t)};var s,c,f=function(e){var t=sr(e);return Fn.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(r,i.options.modifiers),c=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return i.orderedModifiers=f.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:i,name:t,instance:u,options:r});l.push(a||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=i.elements,t=e.reference,n=e.popper;if(lr(t,n)){i.rects={reference:ar(t,xn(n),"fixed"===i.options.strategy),popper:dn(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,s=o.options,l=void 0===s?{}:s,d=o.name;"function"==typeof a&&(i=a({state:i,options:l,name:d,instance:u})||i)}else i.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(i)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){d(),c=!0}};if(!lr(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}({defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=nr(t,{elementContext:"reference"}),i=nr(t,{altBoundary:!0}),l=rr(s,r),c=rr(i,o,a),u=or(l),d=or(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=tr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,s=void 0===a||a,i=n.roundOffsets,l=void 0===i||i,c={placement:rn(t.placement),variation:Kn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,_n(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,_n(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,s=r.resize,i=void 0===s||s,l=on(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,Wn)})),i&&l.addEventListener("resize",n.update,Wn),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Wn)})),i&&l.removeEventListener("resize",n.update,Wn)}},data:{}},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,s=Bn.reduce((function(e,n){return e[n]=function(e,t,n){var r=rn(e),o=[Tn,Pn].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=a[0],i=a[1];return s=s||0,i=(i||0)*o,[Tn,Rn].indexOf(r)>=0?{x:i,y:s}:{x:s,y:i}}(n,t.rects,a),e}),{}),i=s[t.placement],l=i.x,c=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,s=n.altAxis,i=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,v=n.allowedAutoPlacements,h=t.options.placement,b=rn(h),g=l||(b!==h&&m?function(e){if(rn(e)===$n)return[];var t=Vn(e);return[qn(e),t,qn(t)]}(h):[Vn(h)]),x=[h].concat(g).reduce((function(e,n){return e.concat(rn(n)===$n?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Bn:l,u=Kn(r),d=u?i?An:An.filter((function(e){return Kn(e)===u})):Sn,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=nr(e,{placement:n,boundary:o,rootBoundary:a,padding:s})[rn(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:v}):n)}),[]),y=t.rects.reference,w=t.rects.popper,E=new Map,N=!0,C=x[0],j=0;j<x.length;j++){var O=x[j],P=rn(O),k=Kn(O)===Mn,R=[Pn,kn].indexOf(P)>=0,T=R?"width":"height",$=nr(t,{placement:O,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),S=R?k?Rn:Tn:k?kn:Pn;y[T]>w[T]&&(S=Vn(S));var M=Vn(S),D=[];if(a&&D.push($[P]<=0),i&&D.push($[S]<=0,$[M]<=0),D.every((function(e){return e}))){C=O,N=!1;break}E.set(O,D)}if(N)for(var I=function(e){var t=x.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},L=m?3:1;L>0&&"break"!==I(L);L--);t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,s=n.altAxis,i=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,v=void 0===m?0:m,h=nr(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),b=rn(t.placement),g=Kn(t.placement),x=!g,y=yn(b),w="x"===y?"y":"x",E=t.modifiersData.popperOffsets,N=t.rects.reference,C=t.rects.popper,j="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,O={x:0,y:0};if(E){if(a||i){var P="y"===y?Pn:Tn,k="y"===y?kn:Rn,R="y"===y?"height":"width",T=E[y],$=E[y]+h[P],S=E[y]-h[k],M=p?-C[R]/2:0,D=g===Mn?N[R]:C[R],I=g===Mn?-C[R]:-N[R],L=t.elements.arrow,A=p&&L?dn(L):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=B[P],K=B[k],H=Cn(0,N[R],A[R]),_=x?N[R]/2-M-H-F-j:D-H-F-j,W=x?-N[R]/2+M+H+K+j:I+H+K+j,z=t.elements.arrow&&xn(t.elements.arrow),V=z?"y"===y?z.clientTop||0:z.clientLeft||0:0,U=t.modifiersData.offset?t.modifiersData.offset[t.placement][y]:0,q=E[y]+_-U-V,G=E[y]+W-U;if(a){var X=Cn(p?En($,q):$,T,p?wn(S,G):S);E[y]=X,O[y]=X-T}if(i){var Y="x"===y?Pn:Tn,Z="x"===y?kn:Rn,J=E[w],Q=J+h[Y],ee=J-h[Z],te=Cn(p?En(Q,q):Q,J,p?wn(ee,G):ee);E[w]=te,O[w]=te-J}}t.modifiersData[r]=O}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,i=rn(n.placement),l=yn(i),c=[Tn,Rn].indexOf(i)>=0?"height":"width";if(a&&s){var u=function(e,t){return jn("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:On(e,Sn))}(o.padding,n),d=dn(a),f="y"===l?Pn:Tn,p="y"===l?kn:Rn,m=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],v=s[l]-n.rects.reference[l],h=xn(a),b=h?"y"===l?h.clientHeight||0:h.clientWidth||0:0,g=m/2-v/2,x=u[f],y=b-d[c]-u[p],w=b/2-d[c]/2+g,E=Cn(x,w,y),N=l;n.modifiersData[r]=((t={})[N]=E,t.centerOffset=E-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&fn(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}),ur=["enabled","placement","strategy","modifiers"],dr={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},fr={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const e=(t.getAttribute("aria-describedby")||"").split(",").filter((e=>e.trim()!==n.id));e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===o&&"setAttribute"in r){const e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},pr=[],mr=function(e,t,r={}){let{enabled:o=!0,placement:a="bottom",strategy:s="absolute",modifiers:i=pr}=r,l=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,ur);const c=(0,n.useRef)(i),u=(0,n.useRef)(),d=(0,n.useCallback)((()=>{var e;null==(e=u.current)||e.update()}),[]),f=(0,n.useCallback)((()=>{var e;null==(e=u.current)||e.forceUpdate()}),[]),[p,m]=(b=(0,n.useState)({placement:a,update:d,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}}),g=$e(),[b[0],(0,n.useCallback)((function(e){if(g())return b[1](e)}),[g,b[1]])]),v=(0,n.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{const t={},n={};Object.keys(e.elements).forEach((r=>{t[r]=e.styles[r],n[r]=e.attributes[r]})),m({state:e,styles:t,attributes:n,update:d,forceUpdate:f,placement:e.placement})}})),[d,f,m]),h=(0,n.useMemo)((()=>(nn(c.current,i)||(c.current=i),c.current)),[i]);var b,g;return(0,n.useEffect)((()=>{u.current&&o&&u.current.setOptions({placement:a,strategy:s,modifiers:[...h,v,dr]})}),[s,a,v,o,h]),(0,n.useEffect)((()=>{if(o&&null!=e&&null!=t)return u.current=cr(e,t,Object.assign({},l,{placement:a,strategy:s,modifiers:[...h,fr,v]})),()=>{null!=u.current&&(u.current.destroy(),u.current=void 0,m((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[o,e,t]),p};function vr(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var hr=o(459),br=o.n(hr);const gr=()=>{},xr=e=>e&&("current"in e?e.current:e),yr=function(e,t,{disabled:r,clickTrigger:o="click"}={}){const a=(0,n.useRef)(!1),s=t||gr,i=(0,n.useCallback)((t=>{const n=xr(e);var r;br()(!!n,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),a.current=!(n&&(r=t,!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey))&&function(e){return 0===e.button}(t)&&!vr(n,t.target))}),[e]),l=Te((e=>{a.current||s(e)})),c=Te((e=>{27===e.keyCode&&s(e)}));(0,n.useEffect)((()=>{if(r||null==e)return;const t=w(xr(e));let n=(t.defaultView||window).event;const a=q(t,o,i,!0),s=q(t,o,(e=>{e!==n?l(e):n=void 0})),u=q(t,"keyup",(e=>{e!==n?c(e):n=void 0}));let d=[];return"ontouchstart"in t.documentElement&&(d=[].slice.call(t.body.children).map((e=>q(e,"mousemove",gr)))),()=>{a(),s(),u(),d.forEach((e=>e()))}}),[e,r,o,i,l,c])};function wr(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}function Er({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:a,containerPadding:s,arrowElement:i,popperConfig:l={}}){var c,u,d,f;const p=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:a?"fixed":l.strategy,modifiers:wr(Object.assign({},p,{eventListeners:{enabled:t},preventOverflow:Object.assign({},p.preventOverflow,{options:s?Object.assign({padding:s},null==(c=p.preventOverflow)?void 0:c.options):null==(u=p.preventOverflow)?void 0:u.options}),offset:{options:Object.assign({offset:o},null==(d=p.offset)?void 0:d.options)},arrow:Object.assign({},p.arrow,{enabled:!!i,options:Object.assign({},null==(f=p.arrow)?void 0:f.options,{element:i})}),flip:Object.assign({enabled:!!r},p.flip)}))})}const Nr=["children"],Cr=()=>{};function jr(e={}){const t=(0,n.useContext)(Qt),[r,o]=Re(),a=(0,n.useRef)(!1),{flip:s,offset:i,rootCloseEvent:l,fixed:c=!1,placement:u,popperConfig:d={},enableEventListeners:f=!0,usePopper:p=!!t}=e,m=null==(null==t?void 0:t.show)?!!e.show:t.show;m&&!a.current&&(a.current=!0);const{placement:v,setMenu:h,menuElement:b,toggleElement:g}=t||{},x=mr(g,b,Er({placement:u||v||"bottom-start",enabled:p,enableEvents:null==f?m:f,offset:i,flip:s,fixed:c,arrowElement:r,popperConfig:d})),y=Object.assign({ref:h||Cr,"aria-labelledby":null==g?void 0:g.id},x.attributes.popper,{style:x.styles.popper}),w={show:m,placement:v,hasShown:a.current,toggle:null==t?void 0:t.toggle,popper:p?x:null,arrowProps:p?Object.assign({ref:o},x.attributes.arrow,{style:x.styles.arrow}):{}};return yr(b,(e=>{null==t||t.toggle(!1,e)}),{clickTrigger:l,disabled:!m}),[y,w]}function Or(e){let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Nr);const[r,o]=jr(n);return(0,m.jsx)(m.Fragment,{children:t(r,o)})}Or.displayName="DropdownMenu",Or.defaultProps={usePopper:!0};const Pr=Or,kr={prefix:Math.round(1e10*Math.random()),current:0},Rr=r().createContext(kr);let Tr=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function $r(e){let t=(0,n.useContext)(Rr);return t!==kr||Tr||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),(0,n.useMemo)((()=>e||"react-aria-"+t.prefix+"-"+ ++t.current),[e])}const Sr=e=>{var t;return"menu"===(null==(t=e.getAttribute("role"))?void 0:t.toLowerCase())},Mr=()=>{};function Dr(){const e=$r(),{show:t=!1,toggle:r=Mr,setToggle:o,menuElement:a}=(0,n.useContext)(Qt)||{},s=(0,n.useCallback)((e=>{r(!t,e)}),[t,r]),i={id:e,ref:o||Mr,onClick:s,"aria-expanded":!!t};return a&&Sr(a)&&(i["aria-haspopup"]=!0),[i,{show:t,toggle:r}]}function Ir({children:e}){const[t,n]=Dr();return(0,m.jsx)(m.Fragment,{children:e(t,n)})}Ir.displayName="DropdownToggle";const Lr=Ir,Ar=(e,t=null)=>null!=e?String(e):t||null,Br=n.createContext(null),Fr=n.createContext(null);Fr.displayName="NavContext";const Kr=Fr;function Hr(e){return`data-rr-ui-${e}`}const _r=["eventKey","disabled","onClick","active","as"];function Wr({key:e,href:t,active:r,disabled:o,onClick:a}){const s=(0,n.useContext)(Br),i=(0,n.useContext)(Kr),{activeKey:l}=i||{},c=Ar(e,t),u=null==r&&null!=e?Ar(l)===c:r;return[{onClick:Te((e=>{o||(null==a||a(e),s&&!e.isPropagationStopped()&&s(c,e))})),"aria-disabled":o||void 0,"aria-selected":u,[Hr("dropdown-item")]:""},{isActive:u}]}const zr=n.forwardRef(((e,t)=>{let{eventKey:n,disabled:r,onClick:o,active:a,as:s=Ae}=e,i=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,_r);const[l]=Wr({key:n,href:i.href,disabled:r,onClick:o,active:a});return(0,m.jsx)(s,Object.assign({},i,{ref:t},l))}));zr.displayName="DropdownItem";const Vr=zr,Ur=(0,n.createContext)(H?window:void 0);function qr(){return(0,n.useContext)(Ur)}function Gr(){const e=Jt(),t=(0,n.useRef)(null),r=(0,n.useCallback)((n=>{t.current=n,e()}),[e]);return[t,r]}function Xr({defaultShow:e,show:t,onSelect:r,onToggle:o,itemSelector:a=`* [${Hr("dropdown-item")}]`,focusFirstItemOnShow:s,placement:i="bottom-start",children:l}){const c=qr(),[u,d]=f(t,e,o),[p,v]=Gr(),h=p.current,[b,g]=Gr(),x=b.current,y=Se(u),w=(0,n.useRef)(null),E=(0,n.useRef)(!1),N=(0,n.useContext)(Br),C=(0,n.useCallback)(((e,t,n=(null==t?void 0:t.type))=>{d(e,{originalEvent:t,source:n})}),[d]),j=Te(((e,t)=>{null==r||r(e,t),C(!1,t,"select"),t.isPropagationStopped()||null==N||N(e,t)})),O=(0,n.useMemo)((()=>({toggle:C,placement:i,show:u,menuElement:h,toggleElement:x,setMenu:v,setToggle:g})),[C,i,u,h,x,v,g]);h&&y&&!u&&(E.current=h.contains(h.ownerDocument.activeElement));const P=Te((()=>{x&&x.focus&&x.focus()})),k=Te((()=>{const e=w.current;let t=s;if(null==t&&(t=!(!p.current||!Sr(p.current))&&"keyboard"),!1===t||"keyboard"===t&&!/^key.+$/.test(e))return;const n=Zt(p.current,a)[0];n&&n.focus&&n.focus()}));(0,n.useEffect)((()=>{u?k():E.current&&(E.current=!1,P())}),[u,E,P,k]),(0,n.useEffect)((()=>{w.current=null}));const R=(e,t)=>{if(!p.current)return null;const n=Zt(p.current,a);let r=n.indexOf(e)+t;return r=Math.max(0,Math.min(r,n.length)),n[r]};return function(e,t,r,o){void 0===o&&(o=!1);var a=Te((e=>{var t,n;const{key:r}=e,o=e.target,a=null==(t=p.current)?void 0:t.contains(o),s=null==(n=b.current)?void 0:n.contains(o);if(/input|textarea/i.test(o.tagName)&&(" "===r||"Escape"!==r&&a))return;if(!a&&!s)return;if(!("Tab"!==r||p.current&&u))return;w.current=e.type;const i={originalEvent:e,source:e.type};switch(r){case"ArrowUp":{const t=R(o,-1);return t&&t.focus&&t.focus(),void e.preventDefault()}case"ArrowDown":if(e.preventDefault(),u){const e=R(o,1);e&&e.focus&&e.focus()}else d(!0,i);return;case"Tab":V(o.ownerDocument,"keyup",(e=>{var t;("Tab"!==e.key||e.target)&&null!=(t=p.current)&&t.contains(e.target)||d(!1,i)}),{once:!0});break;case"Escape":"Escape"===r&&(e.preventDefault(),e.stopPropagation()),d(!1,i)}}));(0,n.useEffect)((function(){var n="function"==typeof e?e():e;return n.addEventListener(t,a,o),function(){return n.removeEventListener(t,a,o)}}),[e])}((0,n.useCallback)((()=>c.document),[c]),"keydown"),(0,m.jsx)(Br.Provider,{value:j,children:(0,m.jsx)(Qt.Provider,{value:O,children:l})})}Ur.Provider,Xr.displayName="Dropdown",Xr.Menu=Pr,Xr.Toggle=Lr,Xr.Item=Vr;const Yr=Xr,Zr=n.createContext({});Zr.displayName="DropdownContext";const Jr=Zr,Qr=n.forwardRef((({bsPrefix:e,className:n,eventKey:r,disabled:o=!1,onClick:a,active:s,as:i=Ke,...l},c)=>{const u=g(e,"dropdown-item"),[d,f]=Wr({key:r,href:l.href,disabled:o,onClick:a,active:s});return(0,m.jsx)(i,{...l,...d,ref:c,className:t()(n,u,f.isActive&&"active",o&&"disabled")})}));Qr.displayName="DropdownItem";const eo=Qr;var to=void 0!==o.g&&o.g.navigator&&"ReactNative"===o.g.navigator.product;const no="undefined"!=typeof document||to?n.useLayoutEffect:n.useEffect,ro=n.createContext(null);ro.displayName="InputGroupContext";const oo=ro,ao=n.createContext(null);ao.displayName="NavbarContext";const so=ao;function io(e,t){return e}function lo(e,t,n){let r=e?n?"bottom-start":"bottom-end":n?"bottom-end":"bottom-start";return"up"===t?r=e?n?"top-start":"top-end":n?"top-end":"top-start":"end"===t?r=e?n?"left-end":"right-end":n?"left-start":"right-start":"start"===t&&(r=e?n?"right-end":"left-end":n?"right-start":"left-start"),r}const co=n.forwardRef((({bsPrefix:e,className:r,align:o,rootCloseEvent:a,flip:s,show:i,renderOnMount:l,as:c="div",popperConfig:u,variant:d,...f},p)=>{let v=!1;const h=(0,n.useContext)(so),b=g(e,"dropdown-menu"),{align:x,drop:y,isRTL:w}=(0,n.useContext)(Jr);o=o||x;const E=(0,n.useContext)(oo),N=[];if(o)if("object"==typeof o){const e=Object.keys(o);if(e.length){const t=e[0],n=o[t];v="start"===n,N.push(`${b}-${t}-${n}`)}}else"end"===o&&(v=!0);const C=lo(v,y,w),[j,{hasShown:O,popper:P,show:k,toggle:R}]=jr({flip:s,rootCloseEvent:a,show:i,usePopper:!h&&0===N.length,offset:[0,2],popperConfig:u,placement:C});if(j.ref=ee(io(p),j.ref),no((()=>{k&&(null==P||P.update())}),[k]),!O&&!l&&!E)return null;"string"!=typeof c&&(j.show=k,j.close=()=>null==R?void 0:R(!1),j.align=o);let T=f.style;return null!=P&&P.placement&&(T={...f.style,...j.style},f["x-placement"]=P.placement),(0,m.jsx)(c,{...f,...j,style:T,...(N.length||h)&&{"data-bs-popper":"static"},className:t()(r,b,k&&"show",v&&`${b}-end`,d&&`${b}-${d}`,...N)})}));co.displayName="DropdownMenu",co.defaultProps={flip:!0};const uo=co,fo=n.forwardRef((({bsPrefix:e,split:r,className:o,childBsPrefix:a,as:s=dt,...i},l)=>{const c=g(e,"dropdown-toggle"),u=(0,n.useContext)(Qt),d=(0,n.useContext)(oo);void 0!==a&&(i.bsPrefix=a);const[f]=Dr();return f.ref=ee(f.ref,io(l)),(0,m.jsx)(s,{className:t()(o,c,r&&`${c}-split`,!!d&&(null==u?void 0:u.show)&&"show"),...f,...i})}));fo.displayName="DropdownToggle";const po=fo,mo=Ye("dropdown-header",{defaultProps:{role:"heading"}}),vo=Ye("dropdown-divider",{Component:"hr",defaultProps:{role:"separator"}}),ho=Ye("dropdown-item-text",{Component:"span"}),bo=n.forwardRef(((e,r)=>{const{bsPrefix:o,drop:a,show:s,className:i,align:l,onSelect:c,onToggle:u,focusFirstItemOnShow:d,as:f="div",navbar:v,autoClose:h,...b}=p(e,{show:"onToggle"}),y=(0,n.useContext)(oo),w=g(o,"dropdown"),E=x(),N=ke(((e,t)=>{var n;t.originalEvent.currentTarget!==document||"keydown"===t.source&&"Escape"!==t.originalEvent.key||(t.source="rootClose"),n=t.source,(!1===h?"click"===n:"inside"===h?"rootClose"!==n:"outside"!==h||"select"!==n)&&(null==u||u(e,t))})),C=lo("end"===l,a,E),j=(0,n.useMemo)((()=>({align:l,drop:a,isRTL:E})),[l,a,E]);return(0,m.jsx)(Jr.Provider,{value:j,children:(0,m.jsx)(Yr,{placement:C,show:s,onSelect:c,onToggle:N,focusFirstItemOnShow:d,itemSelector:`.${w}-item:not(.disabled):not(:disabled)`,children:y?b.children:(0,m.jsx)(f,{...b,ref:r,className:t()(i,s&&"show",(!a||"down"===a)&&w,"up"===a&&"dropup","end"===a&&"dropend","start"===a&&"dropstart")})})})}));bo.displayName="Dropdown",bo.defaultProps={navbar:!1,align:"start",autoClose:!0};const go=Object.assign(bo,{Toggle:po,Menu:uo,Item:eo,ItemText:ho,Divider:vo,Header:mo}),xo=R().oneOf(["start","end"]),yo=R().oneOfType([xo,R().shape({sm:xo}),R().shape({md:xo}),R().shape({lg:xo}),R().shape({xl:xo}),R().shape({xxl:xo})]),wo={id:R().string,href:R().string,onClick:R().func,title:R().node.isRequired,disabled:R().bool,align:yo,menuRole:R().string,renderMenuOnMount:R().bool,rootCloseEvent:R().string,menuVariant:R().oneOf(["dark"]),bsPrefix:R().string,variant:R().string,size:R().string},Eo=n.forwardRef((({title:e,children:t,bsPrefix:n,rootCloseEvent:r,variant:o,size:a,menuRole:s,renderMenuOnMount:i,disabled:l,href:c,id:u,menuVariant:d,...f},p)=>(0,m.jsxs)(go,{ref:p,...f,children:[(0,m.jsx)(po,{id:u,href:c,size:a,variant:o,disabled:l,childBsPrefix:n,children:e}),(0,m.jsx)(uo,{role:s,renderOnMount:i,rootCloseEvent:r,variant:d,children:t})]})));Eo.displayName="DropdownButton",Eo.propTypes=wo;const No=Eo,Co={type:R().string,tooltip:R().bool,as:R().elementType},jo=n.forwardRef((({as:e="div",className:n,type:r="valid",tooltip:o=!1,...a},s)=>(0,m.jsx)(e,{...a,ref:s,className:t()(n,`${r}-${o?"tooltip":"feedback"}`)})));jo.displayName="Feedback",jo.propTypes=Co;const Oo=jo,Po=n.createContext({}),ko=n.forwardRef((({id:e,bsPrefix:r,className:o,type:a="checkbox",isValid:s=!1,isInvalid:i=!1,as:l="input",...c},u)=>{const{controlId:d}=(0,n.useContext)(Po);return r=g(r,"form-check-input"),(0,m.jsx)(l,{...c,ref:u,type:a,id:e||d,className:t()(o,r,s&&"is-valid",i&&"is-invalid")})}));ko.displayName="FormCheckInput";const Ro=ko,To=n.forwardRef((({bsPrefix:e,className:r,htmlFor:o,...a},s)=>{const{controlId:i}=(0,n.useContext)(Po);return e=g(e,"form-check-label"),(0,m.jsx)("label",{...a,ref:s,htmlFor:o||i,className:t()(r,e)})}));To.displayName="FormCheckLabel";const $o=To,So=n.forwardRef((({id:e,bsPrefix:r,bsSwitchPrefix:o,inline:a=!1,disabled:s=!1,isValid:i=!1,isInvalid:l=!1,feedbackTooltip:c=!1,feedback:u,feedbackType:d,className:f,style:p,title:v="",type:h="checkbox",label:b,children:x,as:y="input",...w},E)=>{r=g(r,"form-check"),o=g(o,"form-switch");const{controlId:N}=(0,n.useContext)(Po),C=(0,n.useMemo)((()=>({controlId:e||N})),[N,e]),j=!x&&null!=b&&!1!==b||function(e,t){return n.Children.toArray(e).some((e=>n.isValidElement(e)&&e.type===t))}(x,$o),O=(0,m.jsx)(Ro,{...w,type:"switch"===h?"checkbox":h,ref:E,isValid:i,isInvalid:l,disabled:s,as:y});return(0,m.jsx)(Po.Provider,{value:C,children:(0,m.jsx)("div",{style:p,className:t()(f,j&&r,a&&`${r}-inline`,"switch"===h&&o),children:x||(0,m.jsxs)(m.Fragment,{children:[O,j&&(0,m.jsx)($o,{title:v,children:b}),u&&(0,m.jsx)(Oo,{type:d,tooltip:c,children:u})]})})})}));So.displayName="FormCheck";const Mo=Object.assign(So,{Input:Ro,Label:$o}),Do=n.forwardRef((({bsPrefix:e,type:r,size:o,htmlSize:a,id:s,className:i,isValid:l=!1,isInvalid:c=!1,plaintext:u,readOnly:d,as:f="input",...p},v)=>{const{controlId:h}=(0,n.useContext)(Po);let b;return e=g(e,"form-control"),b=u?{[`${e}-plaintext`]:!0}:{[e]:!0,[`${e}-${o}`]:o},(0,m.jsx)(f,{...p,type:r,size:a,ref:v,readOnly:d,id:s||h,className:t()(i,b,l&&"is-valid",c&&"is-invalid","color"===r&&`${e}-color`)})}));Do.displayName="FormControl";const Io=Object.assign(Do,{Feedback:Oo}),Lo=Ye("form-floating"),Ao=n.forwardRef((({controlId:e,as:t="div",...r},o)=>{const a=(0,n.useMemo)((()=>({controlId:e})),[e]);return(0,m.jsx)(Po.Provider,{value:a,children:(0,m.jsx)(t,{...r,ref:o})})}));Ao.displayName="FormGroup";const Bo=Ao,Fo=n.forwardRef((({as:e="label",bsPrefix:r,column:o,visuallyHidden:a,className:s,htmlFor:i,...l},c)=>{const{controlId:u}=(0,n.useContext)(Po);r=g(r,"form-label");let d="col-form-label";"string"==typeof o&&(d=`${d} ${d}-${o}`);const f=t()(s,r,a&&"visually-hidden",o&&d);return i=i||u,o?(0,m.jsx)(Xt,{ref:c,as:"label",className:f,htmlFor:i,...l}):(0,m.jsx)(e,{ref:c,className:f,htmlFor:i,...l})}));Fo.displayName="FormLabel",Fo.defaultProps={column:!1,visuallyHidden:!1};const Ko=Fo,Ho=n.forwardRef((({bsPrefix:e,className:r,id:o,...a},s)=>{const{controlId:i}=(0,n.useContext)(Po);return e=g(e,"form-range"),(0,m.jsx)("input",{...a,type:"range",ref:s,className:t()(r,e),id:o||i})}));Ho.displayName="FormRange";const _o=Ho,Wo=n.forwardRef((({bsPrefix:e,size:r,htmlSize:o,className:a,isValid:s=!1,isInvalid:i=!1,id:l,...c},u)=>{const{controlId:d}=(0,n.useContext)(Po);return e=g(e,"form-select"),(0,m.jsx)("select",{...c,size:o,ref:u,className:t()(a,e,r&&`${e}-${r}`,s&&"is-valid",i&&"is-invalid"),id:l||d})}));Wo.displayName="FormSelect";const zo=Wo,Vo=n.forwardRef((({bsPrefix:e,className:n,as:r="small",muted:o,...a},s)=>(e=g(e,"form-text"),(0,m.jsx)(r,{...a,ref:s,className:t()(n,e,o&&"text-muted")}))));Vo.displayName="FormText";const Uo=Vo,qo=n.forwardRef(((e,t)=>(0,m.jsx)(Mo,{...e,ref:t,type:"switch"})));qo.displayName="Switch";const Go=Object.assign(qo,{Input:Mo.Input,Label:Mo.Label}),Xo=n.forwardRef((({bsPrefix:e,className:n,children:r,controlId:o,label:a,...s},i)=>(e=g(e,"form-floating"),(0,m.jsxs)(Bo,{ref:i,className:t()(n,e),controlId:o,...s,children:[r,(0,m.jsx)("label",{htmlFor:o,children:a})]}))));Xo.displayName="FloatingLabel";const Yo=Xo,Zo={_ref:R().any,validated:R().bool,as:R().elementType},Jo=n.forwardRef((({className:e,validated:n,as:r="form",...o},a)=>(0,m.jsx)(r,{...o,ref:a,className:t()(e,n&&"was-validated")})));Jo.displayName="Form",Jo.propTypes=Zo;const Qo=Object.assign(Jo,{Group:Bo,Control:Io,Floating:Lo,Check:Mo,Switch:Go,Label:Ko,Text:Uo,Range:_o,Select:zo,FloatingLabel:Yo}),ea=n.forwardRef((({bsPrefix:e,fluid:n,as:r="div",className:o,...a},s)=>{const i=g(e,"container"),l="string"==typeof n?`-${n}`:"-fluid";return(0,m.jsx)(r,{ref:s,...a,className:t()(o,n?`${i}${l}`:i)})}));ea.displayName="Container",ea.defaultProps={fluid:!1};const ta=ea,na={bsPrefix:R().string,fluid:R().bool,rounded:R().bool,roundedCircle:R().bool,thumbnail:R().bool},ra=n.forwardRef((({bsPrefix:e,className:n,fluid:r,rounded:o,roundedCircle:a,thumbnail:s,...i},l)=>(e=g(e,"img"),(0,m.jsx)("img",{ref:l,...i,className:t()(n,r&&`${e}-fluid`,o&&"rounded",a&&"rounded-circle",s&&`${e}-thumbnail`)}))));ra.displayName="Image",ra.defaultProps={fluid:!1,rounded:!1,roundedCircle:!1,thumbnail:!1};const oa=ra,aa=n.forwardRef((({className:e,...n},r)=>(0,m.jsx)(oa,{ref:r,...n,className:t()(e,"figure-img")})));aa.displayName="FigureImage",aa.propTypes=na,aa.defaultProps={fluid:!0};const sa=aa,ia=Ye("figure-caption",{Component:"figcaption"}),la=Ye("figure",{Component:"figure"}),ca=Object.assign(la,{Image:sa,Caption:ia}),ua=Ye("input-group-text",{Component:"span"}),da=n.forwardRef((({bsPrefix:e,size:r,hasValidation:o,className:a,as:s="div",...i},l)=>{e=g(e,"input-group");const c=(0,n.useMemo)((()=>({})),[]);return(0,m.jsx)(oo.Provider,{value:c,children:(0,m.jsx)(s,{ref:l,...i,className:t()(a,e,r&&`${e}-${r}`,o&&"has-validation")})})}));da.displayName="InputGroup";const fa=Object.assign(da,{Text:ua,Radio:e=>(0,m.jsx)(ua,{children:(0,m.jsx)(Ro,{type:"radio",...e})}),Checkbox:e=>(0,m.jsx)(ua,{children:(0,m.jsx)(Ro,{type:"checkbox",...e})})});var pa=function(e){return e&&"function"!=typeof e?function(t){e.current=t}:e};const ma=function(e,t){return(0,n.useMemo)((function(){return function(e,t){var n=pa(e),r=pa(t);return function(e){n&&n(e),r&&r(e)}}(e,t)}),[e,t])},va=n.createContext(null),ha=["as","active","eventKey"];function ba({key:e,onClick:t,active:r,id:o,role:a,disabled:s}){const i=(0,n.useContext)(Br),l=(0,n.useContext)(Kr);let c=r;const u={role:a};if(l){a||"tablist"!==l.role||(u.role="tab");const t=l.getControllerId(null!=e?e:null),n=l.getControlledId(null!=e?e:null);u[Hr("event-key")]=e,u.id=t||o,u["aria-controls"]=n,c=null==r&&null!=e?l.activeKey===e:r}return"tab"===u.role&&(s&&(u.tabIndex=-1,u["aria-disabled"]=!0),c?u["aria-selected"]=c:u.tabIndex=-1),u.onClick=Te((n=>{s||(null==t||t(n),null!=e&&i&&!n.isPropagationStopped()&&i(e,n))})),[u,{isActive:c}]}const ga=n.forwardRef(((e,t)=>{let{as:n=Ae,active:r,eventKey:o}=e,a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,ha);const[s,i]=ba(Object.assign({key:Ar(o,a.href),active:r},a));return s[Hr("active")]=i.isActive,(0,m.jsx)(n,Object.assign({},a,s,{ref:t}))}));ga.displayName="NavItem";const xa=ga,ya=["as","onSelect","activeKey","role","onKeyDown"],wa=()=>{},Ea=Hr("event-key"),Na=n.forwardRef(((e,t)=>{let{as:r="div",onSelect:o,activeKey:a,role:s,onKeyDown:i}=e,l=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,ya);const c=Jt(),u=(0,n.useRef)(!1),d=(0,n.useContext)(Br),f=(0,n.useContext)(va);let p,v;f&&(s=s||"tablist",a=f.activeKey,p=f.getControlledId,v=f.getControllerId);const h=(0,n.useRef)(null),b=e=>{const t=h.current;if(!t)return null;const n=Zt(t,`[${Ea}]:not([aria-disabled=true])`),r=t.querySelector("[aria-selected=true]");if(!r)return null;const o=n.indexOf(r);if(-1===o)return null;let a=o+e;return a>=n.length&&(a=0),a<0&&(a=n.length-1),n[a]},g=(e,t)=>{null!=e&&(null==o||o(e,t),null==d||d(e,t))};(0,n.useEffect)((()=>{if(h.current&&u.current){const e=h.current.querySelector(`[${Ea}][aria-selected=true]`);null==e||e.focus()}u.current=!1}));const x=ma(t,h);return(0,m.jsx)(Br.Provider,{value:g,children:(0,m.jsx)(Kr.Provider,{value:{role:s,activeKey:Ar(a),getControlledId:p||wa,getControllerId:v||wa},children:(0,m.jsx)(r,Object.assign({},l,{onKeyDown:e=>{if(null==i||i(e),!f)return;let t;switch(e.key){case"ArrowLeft":case"ArrowUp":t=b(-1);break;case"ArrowRight":case"ArrowDown":t=b(1);break;default:return}t&&(e.preventDefault(),g(t.dataset[("EventKey","rrUiEventKey")]||null,e),u.current=!0,c())},ref:x,role:s}))})})}));Na.displayName="Nav";const Ca=Object.assign(Na,{Item:xa}),ja=n.forwardRef((({bsPrefix:e,active:n,disabled:r,eventKey:o,className:a,variant:s,action:i,as:l,...c},u)=>{e=g(e,"list-group-item");const[d,f]=ba({key:Ar(o,c.href),active:n,...c}),p=ke((e=>{if(r)return e.preventDefault(),void e.stopPropagation();d.onClick(e)}));r&&void 0===c.tabIndex&&(c.tabIndex=-1,c["aria-disabled"]=!0);const v=l||(i?c.href?"a":"button":"div");return(0,m.jsx)(v,{ref:u,...c,...d,onClick:p,className:t()(a,e,f.isActive&&"active",r&&"disabled",s&&`${e}-${s}`,i&&`${e}-action`)})}));ja.displayName="ListGroupItem";const Oa=ja,Pa=n.forwardRef(((e,n)=>{const{className:r,bsPrefix:o,variant:a,horizontal:s,numbered:i,as:l="div",...c}=p(e,{activeKey:"onSelect"}),u=g(o,"list-group");let d;return s&&(d=!0===s?"horizontal":`horizontal-${s}`),(0,m.jsx)(Ca,{ref:n,...c,as:l,className:t()(r,u,a&&`${u}-${a}`,d&&`${u}-${d}`,i&&`${u}-numbered`)})}));Pa.displayName="ListGroup";const ka=Object.assign(Pa,{Item:Oa});var Ra;function Ta(e){if((!Ra&&0!==Ra||e)&&H){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Ra=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Ra}function $a(e){void 0===e&&(e=w());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}const Sa=Hr("modal-open"),Ma=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt(O(r,n)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(Sa,""),O(r,t)}reset(){[...this.modals].forEach((e=>this.remove(e)))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(Sa),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,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}},Da=(e,t)=>{var n;return H?null==e?(t||w()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),null!=(n=e)&&n.nodeType&&e||null):null};function Ia(e,t){const r=qr(),[o,a]=(0,n.useState)((()=>Da(e,null==r?void 0:r.document)));if(!o){const t=Da(e);t&&a(t)}return(0,n.useEffect)((()=>{t&&o&&t(o)}),[t,o]),(0,n.useEffect)((()=>{const t=Da(e);t!==o&&a(t)}),[e,o]),o}const La=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","backdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let Aa;const Ba=(0,n.forwardRef)(((e,t)=>{let{show:r=!1,role:o="dialog",className:a,style:s,children:i,backdrop:l=!0,keyboard:c=!0,onBackdropClick:u,onEscapeKeyDown:d,transition:f,backdropTransition:p,autoFocus:v=!0,enforceFocus:h=!0,restoreFocus:b=!0,restoreFocusOptions:g,renderDialog:x,renderBackdrop:y=(e=>(0,m.jsx)("div",Object.assign({},e))),manager:w,container:E,onShow:N,onHide:C=(()=>{}),onExit:j,onExited:O,onExiting:P,onEnter:k,onEntering:R,onEntered:T}=e,S=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,La);const M=Ia(E),D=function(e){const t=qr(),r=e||function(e){return Aa||(Aa=new Ma({ownerDocument:null==e?void 0:e.document})),Aa}(t),o=(0,n.useRef)({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>r.add(o.current),remove:()=>r.remove(o.current),isTopModal:()=>r.isTopModal(o.current),setDialogRef:(0,n.useCallback)((e=>{o.current.dialog=e}),[]),setBackdropRef:(0,n.useCallback)((e=>{o.current.backdrop=e}),[])})}(w),I=$e(),L=Se(r),[A,B]=(0,n.useState)(!r),F=(0,n.useRef)(null);(0,n.useImperativeHandle)(t,(()=>D),[D]),H&&!L&&r&&(F.current=$a()),f||r||A?r&&A&&B(!1):B(!0);const K=Te((()=>{if(D.add(),Z.current=q(document,"keydown",X),Y.current=q(document,"focus",(()=>setTimeout(U)),!0),N&&N(),v){const e=$a(document);D.dialog&&e&&!vr(D.dialog,e)&&(F.current=e,D.dialog.focus())}})),_=Te((()=>{var e;D.remove(),null==Z.current||Z.current(),null==Y.current||Y.current(),b&&(null==(e=F.current)||null==e.focus||e.focus(g),F.current=null)}));var W,z,V;(0,n.useEffect)((()=>{r&&M&&K()}),[r,M,K]),(0,n.useEffect)((()=>{A&&_()}),[A,_]),W=()=>{_()},(z=(0,n.useRef)(W)).current=W,V=z,(0,n.useEffect)((function(){return function(){return V.current()}}),[]);const U=Te((()=>{if(!h||!I()||!D.isTopModal())return;const e=$a();D.dialog&&e&&!vr(D.dialog,e)&&D.dialog.focus()})),G=Te((e=>{e.target===e.currentTarget&&(null==u||u(e),!0===l&&C())})),X=Te((e=>{c&&27===e.keyCode&&D.isTopModal()&&(null==d||d(e),e.defaultPrevented||C())})),Y=(0,n.useRef)(),Z=(0,n.useRef)(),J=f;if(!M||!(r||J&&!A))return null;const Q=Object.assign({role:o,ref:D.setDialogRef,"aria-modal":"dialog"===o||void 0},S,{style:s,className:a,tabIndex:-1});let ee=x?x(Q):(0,m.jsx)("div",Object.assign({},Q,{children:n.cloneElement(i,{role:"document"})}));J&&(ee=(0,m.jsx)(J,{appear:!0,unmountOnExit:!0,in:!!r,onExit:j,onExiting:P,onExited:(...e)=>{B(!0),null==O||O(...e)},onEnter:k,onEntering:R,onEntered:T,children:ee}));let te=null;if(l){const e=p;te=y({ref:D.setBackdropRef,onClick:G}),e&&(te=(0,m.jsx)(e,{appear:!0,in:!!r,children:te}))}return(0,m.jsx)(m.Fragment,{children:$().createPortal((0,m.jsxs)(m.Fragment,{children:[te,ee]}),M)})}));Ba.displayName="Modal";const Fa=Object.assign(Ba,{Manager:Ma});function Ka(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}function Ha(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const _a=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Wa=".sticky-top",za=".navbar-toggler";class Va extends Ma{adjustAndStore(e,t,n){const r=t.style[e];t.dataset[e]=r,O(t,{[e]:`${parseFloat(O(t,e))+n}px`})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],O(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,r;if(r="modal-open",(n=t).classList?n.classList.add(r):Ka(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";Zt(t,_a).forEach((t=>this.adjustAndStore(o,t,e.scrollBarWidth))),Zt(t,Wa).forEach((t=>this.adjustAndStore(a,t,-e.scrollBarWidth))),Zt(t,za).forEach((t=>this.adjustAndStore(a,t,e.scrollBarWidth)))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,r;r="modal-open",(n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Ha(n.className,r):n.setAttribute("class",Ha(n.className&&n.className.baseVal||"",r));const o=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";Zt(t,_a).forEach((e=>this.restore(o,e))),Zt(t,Wa).forEach((e=>this.restore(a,e))),Zt(t,za).forEach((e=>this.restore(a,e)))}}let Ua;function qa(e){return Ua||(Ua=new Va(e)),Ua}const Ga=Va,Xa=Ye("modal-body"),Ya=n.createContext({onHide(){}}),Za=n.forwardRef((({bsPrefix:e,className:n,contentClassName:r,centered:o,size:a,fullscreen:s,children:i,scrollable:l,...c},u)=>{const d=`${e=g(e,"modal")}-dialog`,f="string"==typeof s?`${e}-fullscreen-${s}`:`${e}-fullscreen`;return(0,m.jsx)("div",{...c,ref:u,className:t()(d,n,a&&`${e}-${a}`,o&&`${d}-centered`,l&&`${d}-scrollable`,s&&f),children:(0,m.jsx)("div",{className:t()(`${e}-content`,r),children:i})})}));Za.displayName="ModalDialog";const Ja=Za,Qa=Ye("modal-footer"),es=n.forwardRef((({closeLabel:e,closeVariant:t,closeButton:r,onHide:o,children:a,...s},i)=>{const l=(0,n.useContext)(Ya),c=ke((()=>{null==l||l.onHide(),null==o||o()}));return(0,m.jsxs)("div",{ref:i,...s,children:[a,r&&(0,m.jsx)(Ue,{"aria-label":e,variant:t,onClick:c})]})}));es.defaultProps={closeLabel:"Close",closeButton:!1};const ts=es,ns=n.forwardRef((({bsPrefix:e,className:n,...r},o)=>(e=g(e,"modal-header"),(0,m.jsx)(ts,{ref:o,...r,className:t()(n,e)}))));ns.displayName="ModalHeader",ns.defaultProps={closeLabel:"Close",closeButton:!1};const rs=ns,os=Ye("modal-title",{Component:qe("h4")}),as={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,animation:!0,dialogAs:Ja};function ss(e){return(0,m.jsx)(We,{...e,timeout:null})}function is(e){return(0,m.jsx)(We,{...e,timeout:null})}const ls=n.forwardRef((({bsPrefix:e,className:r,style:o,dialogClassName:a,contentClassName:s,children:i,dialogAs:l,"aria-labelledby":c,show:u,animation:d,backdrop:f,keyboard:p,onEscapeKeyDown:v,onShow:h,onHide:b,container:y,autoFocus:E,enforceFocus:N,restoreFocus:C,restoreFocusOptions:j,onEntered:O,onExit:P,onExiting:k,onEnter:R,onEntering:T,onExited:$,backdropClassName:S,manager:M,...D},I)=>{const[L,A]=(0,n.useState)({}),[B,F]=(0,n.useState)(!1),K=(0,n.useRef)(!1),_=(0,n.useRef)(!1),W=(0,n.useRef)(null),[z,q]=(0,n.useState)(null),X=ee(I,q),Y=ke(b),Z=x();e=g(e,"modal");const J=(0,n.useMemo)((()=>({onHide:Y})),[Y]);function Q(){return M||qa({isRTL:Z})}function te(e){if(!H)return;const t=Q().getScrollbarWidth()>0,n=e.scrollHeight>w(e).documentElement.clientHeight;A({paddingRight:t&&!n?Ta():void 0,paddingLeft:!t&&n?Ta():void 0})}const ne=ke((()=>{z&&te(z.dialog)}));Dt((()=>{U(window,"resize",ne),null==W.current||W.current()}));const re=()=>{K.current=!0},oe=e=>{K.current&&z&&e.target===z.dialog&&(_.current=!0),K.current=!1},ae=()=>{F(!0),W.current=G(z.dialog,(()=>{F(!1)}))},se=e=>{"static"!==f?_.current||e.target!==e.currentTarget?_.current=!1:null==b||b():(e=>{e.target===e.currentTarget&&ae()})(e)},ie=(0,n.useCallback)((n=>(0,m.jsx)("div",{...n,className:t()(`${e}-backdrop`,S,!d&&"show")})),[d,S,e]),le={...o,...L};return d||(le.display="block"),(0,m.jsx)(Ya.Provider,{value:J,children:(0,m.jsx)(Fa,{show:u,ref:X,backdrop:f,container:y,keyboard:!0,autoFocus:E,enforceFocus:N,restoreFocus:C,restoreFocusOptions:j,onEscapeKeyDown:e=>{p||"static"!==f?p&&v&&v(e):(e.preventDefault(),ae())},onShow:h,onHide:b,onEnter:(e,t)=>{e&&(e.style.display="block",te(e)),null==R||R(e,t)},onEntering:(e,t)=>{null==T||T(e,t),V(window,"resize",ne)},onEntered:O,onExit:e=>{null==W.current||W.current(),null==P||P(e)},onExiting:k,onExited:e=>{e&&(e.style.display=""),null==$||$(e),U(window,"resize",ne)},manager:Q(),transition:d?ss:void 0,backdropTransition:d?is:void 0,renderBackdrop:ie,renderDialog:n=>(0,m.jsx)("div",{role:"dialog",...n,style:le,className:t()(r,e,B&&`${e}-static`),onClick:f?se:void 0,onMouseUp:oe,"aria-labelledby":c,children:(0,m.jsx)(l,{...D,onMouseDown:re,className:a,contentClassName:s,children:i})})})})}));ls.displayName="Modal",ls.defaultProps=as;const cs=Object.assign(ls,{Body:Xa,Header:rs,Title:os,Footer:Qa,Dialog:Ja,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});o(946);const us=Ye("nav-item"),ds=n.forwardRef((({bsPrefix:e,className:n,as:r=Ke,active:o,eventKey:a,...s},i)=>{e=g(e,"nav-link");const[l,c]=ba({key:Ar(a,s.href),active:o,...s});return(0,m.jsx)(r,{...s,...l,ref:i,className:t()(n,e,s.disabled&&"disabled",c.isActive&&"active")})}));ds.displayName="NavLink",ds.defaultProps={disabled:!1};const fs=ds,ps=n.forwardRef(((e,r)=>{const{as:o="div",bsPrefix:a,variant:s,fill:i,justify:l,navbar:c,navbarScroll:u,className:d,activeKey:f,...v}=p(e,{activeKey:"onSelect"}),h=g(a,"nav");let b,x,y=!1;const w=(0,n.useContext)(so),E=(0,n.useContext)(xt);return w?(b=w.bsPrefix,y=null==c||c):E&&({cardHeaderBsPrefix:x}=E),(0,m.jsx)(Ca,{as:o,ref:r,activeKey:f,className:t()(d,{[h]:!y,[`${b}-nav`]:y,[`${b}-nav-scroll`]:y&&u,[`${x}-${s}`]:!!x,[`${h}-${s}`]:!!s,[`${h}-fill`]:i,[`${h}-justified`]:l}),...v})}));ps.displayName="Nav",ps.defaultProps={justify:!1,fill:!1};const ms=Object.assign(ps,{Item:us,Link:fs}),vs=n.forwardRef((({bsPrefix:e,className:n,as:r,...o},a)=>{e=g(e,"navbar-brand");const s=r||(o.href?"a":"span");return(0,m.jsx)(s,{...o,ref:a,className:t()(n,e)})}));vs.displayName="NavbarBrand";const hs=vs,bs=n.forwardRef((({children:e,bsPrefix:t,...r},o)=>{t=g(t,"navbar-collapse");const a=(0,n.useContext)(so);return(0,m.jsx)(le,{in:!(!a||!a.expanded),...r,children:(0,m.jsx)("div",{ref:o,className:t,children:e})})}));bs.displayName="NavbarCollapse";const gs=bs,xs=n.forwardRef((({bsPrefix:e,className:r,children:o,label:a,as:s="button",onClick:i,...l},c)=>{e=g(e,"navbar-toggler");const{onToggle:u,expanded:d}=(0,n.useContext)(so)||{},f=ke((e=>{i&&i(e),u&&u()}));return"button"===s&&(l.type="button"),(0,m.jsx)(s,{...l,ref:c,onClick:f,"aria-label":a,className:t()(r,e,!d&&"collapsed"),children:o||(0,m.jsx)("span",{className:`${e}-icon`})})}));xs.displayName="NavbarToggle",xs.defaultProps={label:"Toggle navigation"};const ys=xs,ws=Ye("offcanvas-body"),Es={[I]:"show",[L]:"show"},Ns=n.forwardRef((({bsPrefix:e,className:r,children:o,...a},s)=>(e=g(e,"offcanvas"),(0,m.jsx)(ne,{ref:s,addEndListener:Y,...a,childRef:o.ref,children:(a,s)=>n.cloneElement(o,{...s,className:t()(r,o.props.className,(a===I||a===A)&&`${e}-toggling`,Es[a])})}))));Ns.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1},Ns.displayName="OffcanvasToggling";const Cs=Ns,js=n.forwardRef((({bsPrefix:e,className:n,...r},o)=>(e=g(e,"offcanvas-header"),(0,m.jsx)(ts,{ref:o,...r,className:t()(n,e)}))));js.displayName="OffcanvasHeader",js.defaultProps={closeLabel:"Close",closeButton:!1};const Os=js,Ps=Ye("offcanvas-title",{Component:qe("h5")});function ks(e){return(0,m.jsx)(Cs,{...e})}function Rs(e){return(0,m.jsx)(We,{...e})}const Ts=n.forwardRef((({bsPrefix:e,className:r,children:o,"aria-labelledby":a,placement:s,show:i,backdrop:l,keyboard:c,scroll:u,onEscapeKeyDown:d,onShow:f,onHide:p,container:v,autoFocus:h,enforceFocus:b,restoreFocus:x,restoreFocusOptions:y,onEntered:w,onExit:E,onExiting:N,onEnter:C,onEntering:j,onExited:O,backdropClassName:P,manager:k,...R},T)=>{const $=(0,n.useRef)();e=g(e,"offcanvas");const{onToggle:S}=(0,n.useContext)(so)||{},M=ke((()=>{null==S||S(),null==p||p()})),D=(0,n.useMemo)((()=>({onHide:M})),[M]),I=(0,n.useCallback)((n=>(0,m.jsx)("div",{...n,className:t()(`${e}-backdrop`,P)})),[P,e]);return(0,m.jsx)(Ya.Provider,{value:D,children:(0,m.jsx)(Fa,{show:i,ref:T,backdrop:l,container:v,keyboard:c,autoFocus:h,enforceFocus:b&&!u,restoreFocus:x,restoreFocusOptions:y,onEscapeKeyDown:d,onShow:f,onHide:M,onEnter:(e,...t)=>{e&&(e.style.visibility="visible"),null==C||C(e,...t)},onEntering:j,onEntered:w,onExit:E,onExiting:N,onExited:(e,...t)=>{e&&(e.style.visibility=""),null==O||O(...t)},manager:k||(u?($.current||($.current=new Ga({handleContainerOverflow:!1})),$.current):qa()),transition:ks,backdropTransition:Rs,renderBackdrop:I,renderDialog:n=>(0,m.jsx)("div",{role:"dialog",...n,...R,className:t()(r,e,`${e}-${s}`),"aria-labelledby":a,children:o})})})}));Ts.displayName="Offcanvas",Ts.defaultProps={show:!1,backdrop:!0,keyboard:!0,scroll:!1,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,placement:"start"};const $s=Object.assign(Ts,{Body:ws,Header:Os,Title:Ps}),Ss=n.forwardRef(((e,t)=>{const r=(0,n.useContext)(so);return(0,m.jsx)($s,{ref:t,show:!(null==r||!r.expanded),...e})}));Ss.displayName="NavbarOffcanvas";const Ms=Ss,Ds=Ye("navbar-text",{Component:"span"}),Is=n.forwardRef(((e,r)=>{const{bsPrefix:o,expand:a,variant:s,bg:i,fixed:l,sticky:c,className:u,as:d="nav",expanded:f,onToggle:v,onSelect:h,collapseOnSelect:b,...x}=p(e,{expanded:"onToggle"}),y=g(o,"navbar"),w=(0,n.useCallback)(((...e)=>{null==h||h(...e),b&&f&&(null==v||v(!1))}),[h,b,f,v]);void 0===x.role&&"nav"!==d&&(x.role="navigation");let E=`${y}-expand`;"string"==typeof a&&(E=`${E}-${a}`);const N=(0,n.useMemo)((()=>({onToggle:()=>null==v?void 0:v(!f),bsPrefix:y,expanded:!!f})),[y,f,v]);return(0,m.jsx)(so.Provider,{value:N,children:(0,m.jsx)(Br.Provider,{value:w,children:(0,m.jsx)(d,{ref:r,...x,className:t()(u,y,a&&E,s&&`${y}-${s}`,i&&`bg-${i}`,c&&`sticky-${c}`,l&&`fixed-${l}`)})})})}));Is.defaultProps={expand:!0,variant:"light",collapseOnSelect:!1},Is.displayName="Navbar";const Ls=Object.assign(Is,{Brand:hs,Collapse:gs,Offcanvas:Ms,Text:Ds,Toggle:ys}),As=n.forwardRef((({id:e,title:n,children:r,bsPrefix:o,className:a,rootCloseEvent:s,menuRole:i,disabled:l,active:c,renderMenuOnMount:u,menuVariant:d,...f},p)=>{const v=g(void 0,"nav-item");return(0,m.jsxs)(go,{ref:p,...f,className:t()(a,v),children:[(0,m.jsx)(go.Toggle,{id:e,eventKey:null,active:c,disabled:l,childBsPrefix:o,as:fs,children:n}),(0,m.jsx)(go.Menu,{role:i,renderOnMount:u,rootCloseEvent:s,variant:d,children:r})]})}));As.displayName="NavDropdown";const Bs=Object.assign(As,{Item:go.Item,ItemText:go.ItemText,Divider:go.Divider,Header:go.Header}),Fs=n.forwardRef(((e,t)=>{const{flip:r,offset:o,placement:a,containerPadding:s,popperConfig:i={},transition:l}=e,[c,u]=Re(),[d,f]=Re(),p=ma(u,t),v=Ia(e.container),h=Ia(e.target),[b,g]=(0,n.useState)(!e.show),x=mr(h,c,Er({placement:a,enableEvents:!!e.show,containerPadding:s||5,flip:r,offset:o,arrowElement:d,popperConfig:i}));e.show?b&&g(!1):e.transition||b||g(!0);const y=(...t)=>{g(!0),e.onExited&&e.onExited(...t)},w=e.show||l&&!b;if(yr(c,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!w)return null;let E=e.children(Object.assign({},x.attributes.popper,{style:x.styles.popper,ref:p}),{popper:x,placement:a,show:!!e.show,arrowProps:Object.assign({},x.attributes.arrow,{style:x.styles.arrow,ref:f})});if(l){const{onExit:t,onExiting:n,onEnter:r,onEntering:o,onEntered:a}=e;E=(0,m.jsx)(l,{in:e.show,appear:!0,onExit:t,onExiting:n,onExited:y,onEnter:r,onEntering:o,onEntered:a,children:E})}return v?$().createPortal(E,v):null}));Fs.displayName="Overlay";const Ks=Fs,Hs=Ye("popover-header"),_s=Ye("popover-body");function Ws(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}n.Component;const zs=n.forwardRef((({bsPrefix:e,placement:n,className:r,style:o,children:a,body:s,arrowProps:i,popper:l,show:c,...u},d)=>{const f=g(e,"popover"),p=x(),[v]=(null==n?void 0:n.split("-"))||[],h=Ws(v,p);return(0,m.jsxs)("div",{ref:d,role:"tooltip",style:o,"x-placement":v,className:t()(r,f,v&&`bs-popover-${h}`),...u,children:[(0,m.jsx)("div",{className:"popover-arrow",...i}),s?(0,m.jsx)(_s,{children:a}):a]})}));zs.defaultProps={placement:"right"};const Vs=Object.assign(zs,{Header:Hs,Body:_s,POPPER_OFFSET:[0,8]}),Us={transition:We,rootClose:!1,show:!1,placement:"top"},qs=n.forwardRef((({children:e,transition:r,popperConfig:o={},...a},s)=>{const i=(0,n.useRef)({}),[l,c]=function(){const e=(0,n.useRef)(null),t=g(void 0,"popover"),r=(0,n.useMemo)((()=>({name:"offset",options:{offset:()=>e.current&&Ka(e.current,t)?Vs.POPPER_OFFSET:[0,0]}})),[t]);return[e,[r]]}(),u=ee(s,l),d=!0===r?We:r||void 0;return(0,m.jsx)(Ks,{...a,ref:u,popperConfig:{...o,modifiers:c.concat(o.modifiers||[])},transition:d,children:(o,{arrowProps:a,placement:s,popper:l,show:c})=>{var u,d;!function(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n(te(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(te(e)))}(o,a);const f=Object.assign(i.current,{state:null==l?void 0:l.state,scheduleUpdate:null==l?void 0:l.update,placement:s,outOfBoundaries:(null==l||null==(u=l.state)||null==(d=u.modifiersData.hide)?void 0:d.isReferenceHidden)||!1});return"function"==typeof e?e({...o,placement:s,show:c,...!r&&c&&{className:"show"},popper:f,arrowProps:a}):n.cloneElement(e,{...o,placement:s,arrowProps:a,popper:f,className:t()(e.props.className,!r&&c&&"show"),style:{...e.props.style,...o.style}})}})}));qs.displayName="Overlay",qs.defaultProps=Us;const Gs=qs;function Xs(e,t,n){const[r]=t,o=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];a&&a===o||vr(o,a)||e(...t)}function Ys({trigger:e,overlay:t,children:r,popperConfig:o={},show:a,defaultShow:s=!1,onToggle:i,delay:l,placement:c,flip:u=c&&-1!==c.indexOf("auto"),...d}){const p=(0,n.useRef)(null),v=ee(p,r.ref),h=At(),b=(0,n.useRef)(""),[g,x]=f(a,s,i),y=function(e){return e&&"object"==typeof e?e:{show:e,hide:e}}(l),{onFocus:w,onBlur:E,onClick:N}="function"!=typeof r?n.Children.only(r).props:{},C=(0,n.useCallback)((()=>{h.clear(),b.current="show",y.show?h.set((()=>{"show"===b.current&&x(!0)}),y.show):x(!0)}),[y.show,x,h]),j=(0,n.useCallback)((()=>{h.clear(),b.current="hide",y.hide?h.set((()=>{"hide"===b.current&&x(!1)}),y.hide):x(!1)}),[y.hide,x,h]),O=(0,n.useCallback)(((...e)=>{C(),null==w||w(...e)}),[C,w]),P=(0,n.useCallback)(((...e)=>{j(),null==E||E(...e)}),[j,E]),k=(0,n.useCallback)(((...e)=>{x(!g),null==N||N(...e)}),[N,x,g]),R=(0,n.useCallback)(((...e)=>{Xs(C,e,"fromElement")}),[C]),T=(0,n.useCallback)(((...e)=>{Xs(j,e,"toElement")}),[j]),$=null==e?[]:[].concat(e),S={ref:e=>{v(te(e))}};return-1!==$.indexOf("click")&&(S.onClick=k),-1!==$.indexOf("focus")&&(S.onFocus=O,S.onBlur=P),-1!==$.indexOf("hover")&&(S.onMouseOver=R,S.onMouseOut=T),(0,m.jsxs)(m.Fragment,{children:["function"==typeof r?r(S):(0,n.cloneElement)(r,S),(0,m.jsx)(Gs,{...d,show:g,onHide:j,flip:u,placement:c,popperConfig:o,target:p.current,children:t})]})}Ys.defaultProps={defaultShow:!1,trigger:["hover","focus"]};const Zs=Ys,Js=n.forwardRef((({active:e,disabled:n,className:r,style:o,activeLabel:a,children:s,...i},l)=>{const c=e||n?"span":Ke;return(0,m.jsx)("li",{ref:l,style:o,className:t()(r,"page-item",{active:e,disabled:n}),children:(0,m.jsxs)(c,{className:"page-link",disabled:n,...i,children:[s,e&&a&&(0,m.jsx)("span",{className:"visually-hidden",children:a})]})})}));Js.defaultProps={active:!1,disabled:!1,activeLabel:"(current)"},Js.displayName="PageItem";const Qs=Js;function ei(e,t,n=e){function r({children:e,...r}){return(0,m.jsxs)(Js,{...r,children:[(0,m.jsx)("span",{"aria-hidden":"true",children:e||t}),(0,m.jsx)("span",{className:"visually-hidden",children:n})]})}return r.displayName=e,r}const ti=ei("First","«"),ni=ei("Prev","‹","Previous"),ri=ei("Ellipsis","…","More"),oi=ei("Next","›"),ai=ei("Last","»"),si=n.forwardRef((({bsPrefix:e,className:n,size:r,...o},a)=>{const s=g(e,"pagination");return(0,m.jsx)("ul",{ref:a,...o,className:t()(n,s,r&&`${s}-${r}`)})}));si.displayName="Pagination";const ii=Object.assign(si,{First:ti,Prev:ni,Ellipsis:ri,Item:Qs,Next:oi,Last:ai});function li({animation:e,bg:n,bsPrefix:r,size:o,...a}){r=g(r,"placeholder");const[{className:s,...i}]=qt(a);return{...i,className:t()(s,e?`${r}-${e}`:r,o&&`${r}-${o}`,n&&`bg-${n}`)}}const ci=n.forwardRef(((e,t)=>{const n=li(e);return(0,m.jsx)(dt,{...n,ref:t,disabled:!0,tabIndex:-1})}));ci.displayName="PlaceholderButton";const ui=ci,di=n.forwardRef((({as:e="span",...t},n)=>{const r=li(t);return(0,m.jsx)(e,{...r,ref:n})}));di.displayName="Placeholder";const fi=Object.assign(di,{Button:ui});function pi(e,t,n){const r=(e-t)/(n-t)*100;return Math.round(1e3*r)/1e3}function mi({min:e,now:n,max:r,label:o,visuallyHidden:a,striped:s,animated:i,className:l,style:c,variant:u,bsPrefix:d,...f},p){return(0,m.jsx)("div",{ref:p,...f,role:"progressbar",className:t()(l,`${d}-bar`,{[`bg-${u}`]:u,[`${d}-bar-animated`]:i,[`${d}-bar-striped`]:i||s}),style:{width:`${pi(n,e,r)}%`,...c},"aria-valuenow":n,"aria-valuemin":e,"aria-valuemax":r,children:a?(0,m.jsx)("span",{className:"visually-hidden",children:o}):o})}const vi=n.forwardRef((({isChild:e,...r},o)=>{if(r.bsPrefix=g(r.bsPrefix,"progress"),e)return mi(r,o);const{min:a,now:s,max:i,label:l,visuallyHidden:c,striped:u,animated:d,bsPrefix:f,variant:p,className:v,children:h,...b}=r;return(0,m.jsx)("div",{ref:o,...b,className:t()(v,f),children:h?Ht(h,(e=>(0,n.cloneElement)(e,{isChild:!0}))):mi({min:a,now:s,max:i,label:l,visuallyHidden:c,striped:u,animated:d,bsPrefix:f,variant:p},o)})}));vi.displayName="ProgressBar",vi.defaultProps={min:0,max:100,animated:!1,isChild:!1,visuallyHidden:!1,striped:!1};const hi=vi,bi=n.forwardRef((({bsPrefix:e,className:r,children:o,aspectRatio:a,style:s,...i},l)=>{e=g(e,"ratio");const c="number"==typeof a;return(0,m.jsx)("div",{ref:l,...i,style:{...s,...c&&{"--bs-aspect-ratio":(u=a,u<=0||u>100?"100%":u<1?100*u+"%":`${u}%`)}},className:t()(e,r,!c&&`${e}-${a}`),children:n.Children.only(o)});var u}));bi.defaultProps={aspectRatio:"1x1"};const gi=bi,xi=["xxl","xl","lg","md","sm","xs"],yi=n.forwardRef((({bsPrefix:e,className:n,as:r="div",...o},a)=>{const s=g(e,"row"),i=`${s}-cols`,l=[];return xi.forEach((e=>{const t=o[e];let n;delete o[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const r="xs"!==e?`-${e}`:"";null!=n&&l.push(`${i}${r}-${n}`)})),(0,m.jsx)(r,{ref:a,...o,className:t()(n,s,...l)})}));yi.displayName="Row";const wi=yi,Ei=n.forwardRef((({bsPrefix:e,variant:n,animation:r,size:o,as:a="div",className:s,...i},l)=>{const c=`${e=g(e,"spinner")}-${r}`;return(0,m.jsx)(a,{ref:l,...i,className:t()(s,c,o&&`${c}-${o}`,n&&`text-${n}`)})}));Ei.displayName="Spinner";const Ni=Ei,Ci={id:R().string,toggleLabel:R().string,href:R().string,target:R().string,onClick:R().func,title:R().node.isRequired,type:R().string,disabled:R().bool,align:yo,menuRole:R().string,renderMenuOnMount:R().bool,rootCloseEvent:R().string,bsPrefix:R().string,variant:R().string,size:R().string},ji=n.forwardRef((({id:e,bsPrefix:t,size:n,variant:r,title:o,type:a,toggleLabel:s,children:i,onClick:l,href:c,target:u,menuRole:d,renderMenuOnMount:f,rootCloseEvent:p,...v},h)=>(0,m.jsxs)(go,{ref:h,...v,as:pt,children:[(0,m.jsx)(dt,{size:n,variant:r,disabled:v.disabled,bsPrefix:t,href:c,target:u,onClick:l,type:a,children:o}),(0,m.jsx)(go.Toggle,{split:!0,id:e,size:n,variant:r,disabled:v.disabled,childBsPrefix:t,children:(0,m.jsx)("span",{className:"visually-hidden",children:s})}),(0,m.jsx)(go.Menu,{role:d,renderOnMount:f,rootCloseEvent:p,children:i})]})));ji.propTypes=Ci,ji.defaultProps={toggleLabel:"Toggle dropdown",type:"button"},ji.displayName="SplitButton";const Oi=ji,Pi=function(e){let t=(0,n.useContext)(Rr),o=(0,n.useMemo)((()=>({prefix:t===kr?0:++t.prefix,current:0})),[t]);return r().createElement(Rr.Provider,{value:o},e.children)},ki=["xxl","xl","lg","md","sm","xs"];function Ri(e){const t=[];return Object.entries(e).forEach((([e,n])=>{null!=n&&("object"==typeof n?ki.forEach((r=>{const o=n[r];if(null!=o){const n="xs"!==r?`-${r}`:"";t.push(`${e}${n}-${o}`)}})):t.push(`${e}-${n}`))})),t}const Ti=n.forwardRef((({as:e="div",bsPrefix:n,className:r,direction:o,gap:a,...s},i)=>(n=g(n,"horizontal"===o?"hstack":"vstack"),(0,m.jsx)(e,{...s,ref:i,className:t()(r,n,...Ri({gap:a}))}))));Ti.displayName="Stack";const $i=Ti,Si=function({children:e,in:t,mountOnEnter:r,unmountOnExit:o}){const a=(0,n.useRef)(t);return(0,n.useEffect)((()=>{t&&(a.current=!0)}),[t]),t?e:o||!a.current&&r?null:e},Mi=["active","eventKey","mountOnEnter","transition","unmountOnExit"],Di=["activeKey","getControlledId","getControllerId"],Ii=["as"];function Li(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ai(e){let{active:t,eventKey:r,mountOnEnter:o,transition:a,unmountOnExit:s}=e,i=Li(e,Mi);const l=(0,n.useContext)(va);if(!l)return[i,{eventKey:r,isActive:t,mountOnEnter:o,transition:a,unmountOnExit:s}];const{activeKey:c,getControlledId:u,getControllerId:d}=l,f=Li(l,Di),p=Ar(r);return[Object.assign({},i,{id:u(r),"aria-labelledby":d(r)}),{eventKey:r,isActive:null==t&&null!=p?Ar(c)===p:t,transition:a||f.transition,mountOnEnter:null!=o?o:f.mountOnEnter,unmountOnExit:null!=s?s:f.unmountOnExit}]}const Bi=n.forwardRef(((e,t)=>{let{as:n="div"}=e,r=Li(e,Ii);const[o,{isActive:a,onEnter:s,onEntering:i,onEntered:l,onExit:c,onExiting:u,onExited:d,mountOnEnter:f,unmountOnExit:p,transition:v=Si}]=Ai(r);return(0,m.jsx)(va.Provider,{value:null,children:(0,m.jsx)(Br.Provider,{value:null,children:(0,m.jsx)(v,{in:a,onEnter:s,onEntering:i,onEntered:l,onExit:c,onExiting:u,onExited:d,mountOnEnter:f,unmountOnExit:p,children:(0,m.jsx)(n,Object.assign({},o,{ref:t,role:"tabpanel",hidden:!a,"aria-hidden":!a}))})})})}));Bi.displayName="TabPanel";const Fi=e=>{const{id:t,generateChildId:r,onSelect:o,activeKey:a,defaultActiveKey:s,transition:i,mountOnEnter:l,unmountOnExit:c,children:u}=e,[d,p]=f(a,s,o),v=$r(t),h=(0,n.useMemo)((()=>r||((e,t)=>v?`${v}-${t}-${e}`:null)),[v,r]),b=(0,n.useMemo)((()=>({onSelect:p,activeKey:d,transition:i,mountOnEnter:l||!1,unmountOnExit:c||!1,getControlledId:e=>h(e,"tabpane"),getControllerId:e=>h(e,"tab")})),[p,d,i,l,c,h]);return(0,m.jsx)(va.Provider,{value:b,children:(0,m.jsx)(Br.Provider,{value:p||null,children:u})})};Fi.Panel=Bi;const Ki=Fi;function Hi(e){return"boolean"==typeof e?e?We:void 0:e}const _i=({transition:e,...t})=>(0,m.jsx)(Ki,{...t,transition:Hi(e)});_i.displayName="TabContainer";const Wi=_i,zi=Ye("tab-content"),Vi=n.forwardRef((({bsPrefix:e,transition:n,...r},o)=>{const[{className:a,as:s="div",...i},{isActive:l,onEnter:c,onEntering:u,onEntered:d,onExit:f,onExiting:p,onExited:v,mountOnEnter:h,unmountOnExit:b,transition:x=Si}]=Ai({...r,transition:Hi(n)}),y=g(e,"tab-pane");return(0,m.jsx)(va.Provider,{value:null,children:(0,m.jsx)(Br.Provider,{value:null,children:(0,m.jsx)(x,{in:l,onEnter:c,onEntering:u,onEntered:d,onExit:f,onExiting:p,onExited:v,mountOnEnter:h,unmountOnExit:b,children:(0,m.jsx)(s,{...i,ref:o,className:t()(a,y,l&&"active")})})})})}));Vi.displayName="TabPane";const Ui=Vi,qi={eventKey:R().oneOfType([R().string,R().number]),title:R().node.isRequired,disabled:R().bool,tabClassName:R().string},Gi=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};Gi.propTypes=qi;const Xi=Object.assign(Gi,{Container:Wi,Content:zi,Pane:Ui}),Yi=n.forwardRef((({bsPrefix:e,className:n,striped:r,bordered:o,borderless:a,hover:s,size:i,variant:l,responsive:c,...u},d)=>{const f=g(e,"table"),p=t()(n,f,l&&`${f}-${l}`,i&&`${f}-${i}`,r&&`${f}-striped`,o&&`${f}-bordered`,a&&`${f}-borderless`,s&&`${f}-hover`),v=(0,m.jsx)("table",{...u,className:p,ref:d});if(c){let e=`${f}-responsive`;return"string"==typeof c&&(e=`${e}-${c}`),(0,m.jsx)("div",{className:e,children:v})}return v}));function Zi(e){let t;return _t(e,(e=>{null==t&&(t=e.props.eventKey)})),t}function Ji(e){const{title:t,eventKey:n,disabled:r,tabClassName:o,id:a}=e.props;return null==t?null:(0,m.jsx)(us,{as:"li",role:"presentation",children:(0,m.jsx)(fs,{as:"button",type:"button",eventKey:n,disabled:r,id:a,className:o,children:t})})}const Qi=e=>{const{id:t,onSelect:n,transition:r,mountOnEnter:o,unmountOnExit:a,children:s,activeKey:i=Zi(s),...l}=p(e,{activeKey:"onSelect"});return(0,m.jsxs)(Ki,{id:t,activeKey:i,onSelect:n,transition:Hi(r),mountOnEnter:o,unmountOnExit:a,children:[(0,m.jsx)(ms,{...l,role:"tablist",as:"ul",children:Ht(s,Ji)}),(0,m.jsx)(zi,{children:Ht(s,(e=>{const t={...e.props};return delete t.title,delete t.disabled,delete t.tabClassName,(0,m.jsx)(Ui,{...t})}))})]})};Qi.defaultProps={variant:"tabs",mountOnEnter:!1,unmountOnExit:!1},Qi.displayName="Tabs";const el=Qi,tl={[I]:"showing",[A]:"showing show"},nl=n.forwardRef(((e,t)=>(0,m.jsx)(We,{...e,ref:t,transitionClasses:tl})));nl.displayName="ToastFade";const rl=nl,ol=n.createContext({onClose(){}}),al=n.forwardRef((({bsPrefix:e,closeLabel:r,closeVariant:o,closeButton:a,className:s,children:i,...l},c)=>{e=g(e,"toast-header");const u=(0,n.useContext)(ol),d=ke((e=>{null==u||null==u.onClose||u.onClose(e)}));return(0,m.jsxs)("div",{ref:c,...l,className:t()(e,s),children:[i,a&&(0,m.jsx)(Ue,{"aria-label":r,variant:o,onClick:d,"data-dismiss":"toast"})]})}));al.displayName="ToastHeader",al.defaultProps={closeLabel:"Close",closeButton:!0};const sl=al,il=Ye("toast-body"),ll=n.forwardRef((({bsPrefix:e,className:r,transition:o=rl,show:a=!0,animation:s=!0,delay:i=5e3,autohide:l=!1,onClose:c,bg:u,...d},f)=>{e=g(e,"toast");const p=(0,n.useRef)(i),v=(0,n.useRef)(c);(0,n.useEffect)((()=>{p.current=i,v.current=c}),[i,c]);const h=At(),b=!(!l||!a),x=(0,n.useCallback)((()=>{b&&(null==v.current||v.current())}),[b]);(0,n.useEffect)((()=>{h.set(x,p.current)}),[h,x]);const y=(0,n.useMemo)((()=>({onClose:c})),[c]),w=!(!o||!s),E=(0,m.jsx)("div",{...d,ref:f,className:t()(e,r,u&&`bg-${u}`,!w&&(a?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return(0,m.jsx)(ol.Provider,{value:y,children:w&&o?(0,m.jsx)(o,{in:a,unmountOnExit:!0,children:E}):E})}));ll.displayName="Toast";const cl=Object.assign(ll,{Body:il,Header:sl}),ul={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},dl=n.forwardRef((({bsPrefix:e,position:n,className:r,as:o="div",...a},s)=>(e=g(e,"toast-container"),(0,m.jsx)(o,{ref:s,...a,className:t()(e,n&&`position-absolute ${ul[n]}`,r)}))));dl.displayName="ToastContainer";const fl=dl,pl=()=>{},ml=n.forwardRef((({bsPrefix:e,name:n,className:r,checked:o,type:a,onChange:s,value:i,disabled:l,id:c,inputRef:u,...d},f)=>(e=g(e,"btn-check"),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("input",{className:e,name:n,type:a,value:i,ref:u,autoComplete:"off",checked:!!o,disabled:!!l,onChange:s||pl,id:c}),(0,m.jsx)(dt,{...d,ref:f,className:t()(r,l&&"disabled"),type:void 0,as:"label",htmlFor:c})]}))));ml.displayName="ToggleButton";const vl=ml,hl=n.forwardRef(((e,t)=>{const{children:r,type:o,name:a,value:s,onChange:i,...l}=p(e,{value:"onChange"}),u=()=>null==s?[]:[].concat(s);return"radio"!==o||a||c()(!1),(0,m.jsx)(pt,{...l,ref:t,children:Ht(r,(e=>{const t=u(),{value:r,onChange:s}=e.props;return n.cloneElement(e,{type:o,name:e.name||a,checked:-1!==t.indexOf(r),onChange:Z(s,(e=>((e,t)=>{if(!i)return;const n=u(),r=-1!==n.indexOf(e);"radio"!==o?i(r?n.filter((t=>t!==e)):[...n,e],t):!r&&i&&i(e,t)})(r,e)))})}))})}));hl.defaultProps={type:"radio",vertical:!1};const bl=Object.assign(hl,{Button:vl}),gl=n.forwardRef((({bsPrefix:e,placement:n,className:r,style:o,children:a,arrowProps:s,popper:i,show:l,...c},u)=>{e=g(e,"tooltip");const d=x(),[f]=(null==n?void 0:n.split("-"))||[],p=Ws(f,d);return(0,m.jsxs)("div",{ref:u,style:o,role:"tooltip","x-placement":f,className:t()(r,e,`bs-tooltip-${p}`),...c,children:[(0,m.jsx)("div",{className:"tooltip-arrow",...s}),(0,m.jsx)("div",{className:`${e}-inner`,children:a})]})}));gl.defaultProps={placement:"right"},gl.displayName="Tooltip";const xl=gl})(),a})()}));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrap=t(require("react"),require("react-dom")):e.ReactBootstrap=t(e.React,e.ReactDOM)}(self,(function(e,t){return(()=>{var n={814:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var s=o.apply(null,n);s&&e.push(s)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var i in n)r.call(n,i)&&n[i]&&e.push(i);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},286:e=>{"use strict";e.exports=function(e,t,n,r,o,a,s,i){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,s,i],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},946:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];function r(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=null;return t.forEach((function(e){if(null==o){var t=e.apply(void 0,n);null!=t&&(o=t)}})),o}return(0,o.default)(r)};var r,o=(r=n(844))&&r.__esModule?r:{default:r};e.exports=t.default},844:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,r,o,a,s){var i=o||"<<anonymous>>",l=s||r;if(null==n[r])return t?new Error("Required "+a+" `"+l+"` was not specified in `"+i+"`."):null;for(var c=arguments.length,u=Array(c>6?c-6:0),d=6;d<c;d++)u[d-6]=arguments[d];return e.apply(void 0,[n,r,i,a,l].concat(u))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},e.exports=t.default},428:(e,t,n)=>{"use strict";var r=n(134);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,s){if(s!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},526:(e,t,n)=>{e.exports=n(428)()},134:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},356:(e,t,n)=>{"use strict";var r=n(787),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),t.Fragment=a("react.fragment")}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:s.current}}t.jsx=c,t.jsxs=c},373:(e,t,n)=>{"use strict";e.exports=n(356)},459:e=>{"use strict";e.exports=function(){}},787:t=>{"use strict";t.exports=e},156:e=>{"use strict";e.exports=t}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.r(a),o.d(a,{Accordion:()=>Oe,AccordionButton:()=>ye,AccordionCollapse:()=>pe,AccordionContext:()=>de,Alert:()=>nt,Anchor:()=>rt,Badge:()=>at,Breadcrumb:()=>ct,BreadcrumbItem:()=>it,Button:()=>dt,ButtonGroup:()=>pt,ButtonToolbar:()=>vt,Card:()=>St,CardGroup:()=>Mt,CardImg:()=>bt,Carousel:()=>Vt,CarouselItem:()=>Kt,CloseButton:()=>Ue,Col:()=>Xt,Collapse:()=>le,Container:()=>ta,Dropdown:()=>go,DropdownButton:()=>No,Fade:()=>We,Figure:()=>ca,FloatingLabel:()=>Yo,Form:()=>Qo,FormCheck:()=>Mo,FormControl:()=>Io,FormFloating:()=>Lo,FormGroup:()=>Bo,FormLabel:()=>Ko,FormSelect:()=>zo,FormText:()=>Uo,Image:()=>oa,InputGroup:()=>fa,ListGroup:()=>ka,ListGroupItem:()=>Oa,Modal:()=>cs,ModalBody:()=>Xa,ModalDialog:()=>Ja,ModalFooter:()=>Qa,ModalTitle:()=>os,Nav:()=>ms,NavDropdown:()=>Bs,NavItem:()=>us,NavLink:()=>fs,Navbar:()=>Ls,NavbarBrand:()=>hs,Offcanvas:()=>$s,OffcanvasBody:()=>ws,OffcanvasHeader:()=>Os,OffcanvasTitle:()=>Ps,Overlay:()=>Gs,OverlayTrigger:()=>Zs,PageItem:()=>Qs,Pagination:()=>ii,Placeholder:()=>fi,PlaceholderButton:()=>ui,Popover:()=>Vs,PopoverBody:()=>_s,PopoverHeader:()=>Hs,ProgressBar:()=>hi,Ratio:()=>gi,Row:()=>wi,SSRProvider:()=>Pi,Spinner:()=>Ni,SplitButton:()=>Oi,Stack:()=>$i,Tab:()=>Xi,TabContainer:()=>Wi,TabContent:()=>zi,TabPane:()=>Ui,Table:()=>Yi,Tabs:()=>el,ThemeProvider:()=>y,Toast:()=>cl,ToastBody:()=>il,ToastContainer:()=>fl,ToastHeader:()=>sl,ToggleButton:()=>vl,ToggleButtonGroup:()=>bl,Tooltip:()=>xl,useAccordionButton:()=>ge});var e=o(814),t=o.n(e),n=o(787),r=o.n(n);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var l=o(286),c=o.n(l);function u(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function d(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function f(e,t,r){var o=(0,n.useRef)(void 0!==e),a=(0,n.useState)(t),s=a[0],i=a[1],l=void 0!==e,c=o.current;return o.current=l,!l&&c&&s!==t&&i(t),[l?e:s,(0,n.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];r&&r.apply(void 0,[e].concat(n)),i(e)}),[r])]}function p(e,t){return Object.keys(t).reduce((function(n,r){var o,a=n,l=a[u(r)],c=a[r],p=i(a,[u(r),r].map(d)),m=t[r],v=f(c,l,e[m]),h=v[0],b=v[1];return s({},p,((o={})[r]=h,o[m]=b,o))}),e)}var m=o(373);const v=n.createContext({prefixes:{}}),{Consumer:h,Provider:b}=v;function g(e,t){const{prefixes:r}=(0,n.useContext)(v);return e||r[t]||t}function x(){const{dir:e}=(0,n.useContext)(v);return"rtl"===e}const y=function({prefixes:e={},dir:t,children:r}){const o=(0,n.useMemo)((()=>({prefixes:{...e},dir:t})),[e,t]);return(0,m.jsx)(b,{value:o,children:r})};function w(e){return e&&e.ownerDocument||document}var E=/([A-Z])/g,N=/^ms-/;function C(e){return function(e){return e.replace(E,"-$1").toLowerCase()}(e).replace(N,"-ms-")}var j=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const O=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(C(t))||function(e,t){return function(e){var t=w(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue(C(t));Object.keys(t).forEach((function(o){var a=t[o];a||0===a?function(e){return!(!e||!j.test(e))}(o)?r+=o+"("+a+") ":n+=C(o)+": "+a+";":e.style.removeProperty(C(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var k=o(526),R=o.n(k),T=o(156),$=o.n(T);const S=r().createContext(null);var M="unmounted",D="exited",I="entering",L="entered",A="exiting",B=function(e){var t,n;function o(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=D,r.appearStatus=I):o=L:o=t.unmountOnExit||t.mountOnEnter?M:D,r.state={status:o},r.nextCallback=null,r}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,P(t,n),o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===M?{status:D}:null};var a=o.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==I&&n!==L&&(t=I):n!==I&&n!==L||(t=A)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},a.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===I?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===D&&this.setState({status:M})},a.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[$().findDOMNode(this),r],a=o[0],s=o[1],i=this.getTimeouts(),l=r?i.appear:i.enter;e||n?(this.props.onEnter(a,s),this.safeSetState({status:I},(function(){t.props.onEntering(a,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:L},(function(){t.props.onEntered(a,s)}))}))}))):this.safeSetState({status:L},(function(){t.props.onEntered(a)}))},a.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:$().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:A},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:D},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:D},(function(){e.props.onExited(r)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:$().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],s=o[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===M)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,i(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r().createElement(S.Provider,{value:null},"function"==typeof n?n(e,o):r().cloneElement(r().Children.only(n),o))},o}(r().Component);function F(){}B.contextType=S,B.propTypes={},B.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:F,onEntering:F,onEntered:F,onExit:F,onExiting:F,onExited:F},B.UNMOUNTED=M,B.EXITED=D,B.ENTERING=I,B.ENTERED=L,B.EXITING=A;const K=B,H=!("undefined"==typeof window||!window.document||!window.document.createElement);var _=!1,W=!1;try{var z={get passive(){return _=!0},get once(){return W=_=!0}};H&&(window.addEventListener("test",z,z),window.removeEventListener("test",z,!0))}catch(e){}const V=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!W){var o=r.once,a=r.capture,s=n;!W&&o&&(s=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=s),e.addEventListener(t,s,_?r:a)}e.addEventListener(t,n,r)},U=function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)},q=function(e,t,n,r){return V(e,t,n,r),function(){U(e,t,n,r)}};function G(e,t,n,r){var o,a;null==n&&(a=-1===(o=O(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(o)*a||0);var s=function(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",n,r),e.dispatchEvent(o)}}(e,0,!0)}),t+n),a=q(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),a()}}(e,n,r),i=q(e,"transitionend",t);return function(){s(),i()}}function X(e,t){const n=O(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function Y(e,t){const n=X(e,"transitionDuration"),r=X(e,"transitionDelay"),o=G(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}const Z=function(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)};function J(e){e.offsetHeight}var Q=function(e){return e&&"function"!=typeof e?function(t){e.current=t}:e};const ee=function(e,t){return(0,n.useMemo)((function(){return function(e,t){var n=Q(e),r=Q(t);return function(e){n&&n(e),r&&r(e)}}(e,t)}),[e,t])};function te(e){return e&&"setState"in e?$().findDOMNode(e):null!=e?e:null}const ne=r().forwardRef((({onEnter:e,onEntering:t,onEntered:o,onExit:a,onExiting:s,onExited:i,addEndListener:l,children:c,childRef:u,...d},f)=>{const p=(0,n.useRef)(null),v=ee(p,u),h=e=>{v(te(e))},b=e=>t=>{e&&p.current&&e(p.current,t)},g=(0,n.useCallback)(b(e),[e]),x=(0,n.useCallback)(b(t),[t]),y=(0,n.useCallback)(b(o),[o]),w=(0,n.useCallback)(b(a),[a]),E=(0,n.useCallback)(b(s),[s]),N=(0,n.useCallback)(b(i),[i]),C=(0,n.useCallback)(b(l),[l]);return(0,m.jsx)(K,{ref:f,...d,onEnter:g,onEntered:y,onEntering:x,onExit:w,onExited:N,onExiting:E,addEndListener:C,nodeRef:p,children:"function"==typeof c?(e,t)=>c(e,{...t,ref:h}):r().cloneElement(c,{ref:h})})})),re={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function oe(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=re[e];return n+parseInt(O(t,r[0]),10)+parseInt(O(t,r[1]),10)}const ae={[D]:"collapse",[A]:"collapsing",[I]:"collapsing",[L]:"collapse show"},se={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,getDimensionValue:oe},ie=r().forwardRef((({onEnter:e,onEntering:o,onEntered:a,onExit:s,onExiting:i,className:l,children:c,dimension:u="height",getDimensionValue:d=oe,...f},p)=>{const v="function"==typeof u?u():u,h=(0,n.useMemo)((()=>Z((e=>{e.style[v]="0"}),e)),[v,e]),b=(0,n.useMemo)((()=>Z((e=>{const t=`scroll${v[0].toUpperCase()}${v.slice(1)}`;e.style[v]=`${e[t]}px`}),o)),[v,o]),g=(0,n.useMemo)((()=>Z((e=>{e.style[v]=null}),a)),[v,a]),x=(0,n.useMemo)((()=>Z((e=>{e.style[v]=`${d(v,e)}px`,J(e)}),s)),[s,d,v]),y=(0,n.useMemo)((()=>Z((e=>{e.style[v]=null}),i)),[v,i]);return(0,m.jsx)(ne,{ref:p,addEndListener:Y,...f,"aria-expanded":f.role?f.in:null,onEnter:h,onEntering:b,onEntered:g,onExit:x,onExiting:y,childRef:c.ref,children:(e,n)=>r().cloneElement(c,{...n,className:t()(l,c.props.className,ae[e],"width"===v&&"collapse-horizontal")})})}));ie.defaultProps=se;const le=ie;function ce(e,t){return Array.isArray(e)?e.includes(t):e===t}const ue=n.createContext({});ue.displayName="AccordionContext";const de=ue,fe=n.forwardRef((({as:e="div",bsPrefix:r,className:o,children:a,eventKey:s,...i},l)=>{const{activeEventKey:c}=(0,n.useContext)(de);return r=g(r,"accordion-collapse"),(0,m.jsx)(le,{ref:l,in:ce(c,s),...i,className:t()(o,r),children:(0,m.jsx)(e,{children:n.Children.only(a)})})}));fe.displayName="AccordionCollapse";const pe=fe,me=n.createContext({eventKey:""});me.displayName="AccordionItemContext";const ve=me,he=n.forwardRef((({as:e="div",bsPrefix:r,className:o,...a},s)=>{r=g(r,"accordion-body");const{eventKey:i}=(0,n.useContext)(ve);return(0,m.jsx)(pe,{eventKey:i,children:(0,m.jsx)(e,{ref:s,...a,className:t()(o,r)})})}));he.displayName="AccordionBody";const be=he;function ge(e,t){const{activeEventKey:r,onSelect:o,alwaysOpen:a}=(0,n.useContext)(de);return n=>{let s=e===r?null:e;a&&(s=Array.isArray(r)?r.includes(e)?r.filter((t=>t!==e)):[...r,e]:[e]),null==o||o(s,n),null==t||t(n)}}const xe=n.forwardRef((({as:e="button",bsPrefix:r,className:o,onClick:a,...s},i)=>{r=g(r,"accordion-button");const{eventKey:l}=(0,n.useContext)(ve),c=ge(l,a),{activeEventKey:u}=(0,n.useContext)(de);return"button"===e&&(s.type="button"),(0,m.jsx)(e,{ref:i,onClick:c,...s,"aria-expanded":l===u,className:t()(o,r,!ce(u,l)&&"collapsed")})}));xe.displayName="AccordionButton";const ye=xe,we=n.forwardRef((({as:e="h2",bsPrefix:n,className:r,children:o,onClick:a,...s},i)=>(n=g(n,"accordion-header"),(0,m.jsx)(e,{ref:i,...s,className:t()(r,n),children:(0,m.jsx)(ye,{onClick:a,children:o})}))));we.displayName="AccordionHeader";const Ee=we,Ne=n.forwardRef((({as:e="div",bsPrefix:r,className:o,eventKey:a,...s},i)=>{r=g(r,"accordion-item");const l=(0,n.useMemo)((()=>({eventKey:a})),[a]);return(0,m.jsx)(ve.Provider,{value:l,children:(0,m.jsx)(e,{ref:i,...s,className:t()(o,r)})})}));Ne.displayName="AccordionItem";const Ce=Ne,je=n.forwardRef(((e,r)=>{const{as:o="div",activeKey:a,bsPrefix:s,className:i,onSelect:l,flush:c,alwaysOpen:u,...d}=p(e,{activeKey:"onSelect"}),f=g(s,"accordion"),v=(0,n.useMemo)((()=>({activeEventKey:a,onSelect:l,alwaysOpen:u})),[a,l,u]);return(0,m.jsx)(de.Provider,{value:v,children:(0,m.jsx)(o,{ref:r,...d,className:t()(i,f,c&&`${f}-flush`)})})}));je.displayName="Accordion";const Oe=Object.assign(je,{Button:ye,Collapse:pe,Item:Ce,Header:Ee,Body:be}),Pe=function(e){var t=(0,n.useRef)(e);return(0,n.useEffect)((function(){t.current=e}),[e]),t};function ke(e){var t=Pe(e);return(0,n.useCallback)((function(){return t.current&&t.current.apply(t,arguments)}),[t])}function Re(){return(0,n.useState)(null)}function Te(e){var t=function(e){var t=(0,n.useRef)(e);return(0,n.useEffect)((function(){t.current=e}),[e]),t}(e);return(0,n.useCallback)((function(){return t.current&&t.current.apply(t,arguments)}),[t])}function $e(){var e=(0,n.useRef)(!0),t=(0,n.useRef)((function(){return e.current}));return(0,n.useEffect)((function(){return function(){e.current=!1}}),[]),t.current}function Se(e){var t=(0,n.useRef)(null);return(0,n.useEffect)((function(){t.current=e})),t.current}var Me=void 0!==o.g&&o.g.navigator&&"ReactNative"===o.g.navigator.product;"undefined"!=typeof document||Me?n.useLayoutEffect:n.useEffect,new WeakMap;const De=["as","disabled"];function Ie({tagName:e,disabled:t,href:n,target:r,rel:o,onClick:a,tabIndex:s=0,type:i}){e||(e=null!=n||null!=r||null!=o?"a":"button");const l={tagName:e};if("button"===e)return[{type:i||"button",disabled:t},l];const c=r=>{(t||"a"===e&&function(e){return!e||"#"===e.trim()}(n))&&r.preventDefault(),t?r.stopPropagation():null==a||a(r)};return[{role:"button",disabled:void 0,tabIndex:t?void 0:s,href:"a"===e&&t?void 0:n,target:"a"===e?r:void 0,"aria-disabled":t||void 0,rel:"a"===e?o:void 0,onClick:c,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),c(e))}},l]}const Le=n.forwardRef(((e,t)=>{let{as:n,disabled:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,De);const[a,{tagName:s}]=Ie(Object.assign({tagName:n,disabled:r},o));return(0,m.jsx)(s,Object.assign({},o,a,{ref:t}))}));Le.displayName="Button";const Ae=Le,Be=["onKeyDown"],Fe=n.forwardRef(((e,t)=>{let{onKeyDown:n}=e,r=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Be);const[o]=Ie(Object.assign({tagName:"a"},r)),a=Te((e=>{o.onKeyDown(e),null==n||n(e)}));return((s=r.href)&&"#"!==s.trim()||r.role)&&"button"!==r.role?(0,m.jsx)("a",Object.assign({ref:t},r,{onKeyDown:n})):(0,m.jsx)("a",Object.assign({ref:t},r,o,{onKeyDown:a}));var s}));Fe.displayName="Anchor";const Ke=Fe,He={[I]:"show",[L]:"show"},_e=n.forwardRef((({className:e,children:r,transitionClasses:o={},...a},s)=>{const i=(0,n.useCallback)(((e,t)=>{J(e),null==a.onEnter||a.onEnter(e,t)}),[a]);return(0,m.jsx)(ne,{ref:s,addEndListener:Y,...a,onEnter:i,childRef:r.ref,children:(a,s)=>n.cloneElement(r,{...s,className:t()("fade",e,r.props.className,He[a],o[a])})})}));_e.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},_e.displayName="Fade";const We=_e,ze={"aria-label":R().string,onClick:R().func,variant:R().oneOf(["white"])},Ve=n.forwardRef((({className:e,variant:n,...r},o)=>(0,m.jsx)("button",{ref:o,type:"button",className:t()("btn-close",n&&`btn-close-${n}`,e),...r})));Ve.displayName="CloseButton",Ve.propTypes=ze,Ve.defaultProps={"aria-label":"Close"};const Ue=Ve,qe=e=>n.forwardRef(((n,r)=>(0,m.jsx)("div",{...n,ref:r,className:t()(n.className,e)})));var Ge=/-(.)/g;const Xe=e=>{return e[0].toUpperCase()+(t=e,t.replace(Ge,(function(e,t){return t.toUpperCase()}))).slice(1);var t};function Ye(e,{displayName:r=Xe(e),Component:o,defaultProps:a}={}){const s=n.forwardRef((({className:n,bsPrefix:r,as:a=o||"div",...s},i)=>{const l=g(r,e);return(0,m.jsx)(a,{ref:i,className:t()(n,l),...s})}));return s.defaultProps=a,s.displayName=r,s}const Ze=qe("h4");Ze.displayName="DivStyledAsH4";const Je=Ye("alert-heading",{Component:Ze}),Qe=Ye("alert-link",{Component:Ke}),et={variant:"primary",show:!0,transition:We,closeLabel:"Close alert"},tt=n.forwardRef(((e,n)=>{const{bsPrefix:r,show:o,closeLabel:a,closeVariant:s,className:i,children:l,variant:c,onClose:u,dismissible:d,transition:f,...v}=p(e,{show:"onClose"}),h=g(r,"alert"),b=ke((e=>{u&&u(!1,e)})),x=!0===f?We:f,y=(0,m.jsxs)("div",{role:"alert",...x?void 0:v,ref:n,className:t()(i,h,c&&`${h}-${c}`,d&&`${h}-dismissible`),children:[d&&(0,m.jsx)(Ue,{onClick:b,"aria-label":a,variant:s}),l]});return x?(0,m.jsx)(x,{unmountOnExit:!0,...v,ref:void 0,in:o,children:y}):o?y:null}));tt.displayName="Alert",tt.defaultProps=et;const nt=Object.assign(tt,{Link:Qe,Heading:Je}),rt=Ke,ot=n.forwardRef((({bsPrefix:e,bg:n,pill:r,text:o,className:a,as:s="span",...i},l)=>{const c=g(e,"badge");return(0,m.jsx)(s,{ref:l,...i,className:t()(a,c,r&&"rounded-pill",o&&`text-${o}`,n&&`bg-${n}`)})}));ot.displayName="Badge",ot.defaultProps={bg:"primary",pill:!1};const at=ot,st=n.forwardRef((({bsPrefix:e,active:n,children:r,className:o,as:a="li",linkAs:s=Ke,linkProps:i,href:l,title:c,target:u,...d},f)=>{const p=g(e,"breadcrumb-item");return(0,m.jsx)(a,{ref:f,...d,className:t()(p,o,{active:n}),"aria-current":n?"page":void 0,children:n?r:(0,m.jsx)(s,{...i,href:l,title:c,target:u,children:r})})}));st.displayName="BreadcrumbItem",st.defaultProps={active:!1,linkProps:{}};const it=st,lt=n.forwardRef((({bsPrefix:e,className:n,listProps:r,children:o,label:a,as:s="nav",...i},l)=>{const c=g(e,"breadcrumb");return(0,m.jsx)(s,{"aria-label":a,className:n,ref:l,...i,children:(0,m.jsx)("ol",{...r,className:t()(c,null==r?void 0:r.className),children:o})})}));lt.displayName="Breadcrumb",lt.defaultProps={label:"breadcrumb",listProps:{}};const ct=Object.assign(lt,{Item:it}),ut=n.forwardRef((({as:e,bsPrefix:n,variant:r,size:o,active:a,className:s,...i},l)=>{const c=g(n,"btn"),[u,{tagName:d}]=Ie({tagName:e,...i}),f=d;return(0,m.jsx)(f,{...i,...u,ref:l,className:t()(s,c,a&&"active",r&&`${c}-${r}`,o&&`${c}-${o}`,i.href&&i.disabled&&"disabled")})}));ut.displayName="Button",ut.defaultProps={variant:"primary",active:!1,disabled:!1};const dt=ut,ft=n.forwardRef((({bsPrefix:e,size:n,vertical:r,className:o,as:a="div",...s},i)=>{const l=g(e,"btn-group");let c=l;return r&&(c=`${l}-vertical`),(0,m.jsx)(a,{...s,ref:i,className:t()(o,c,n&&`${l}-${n}`)})}));ft.displayName="ButtonGroup",ft.defaultProps={vertical:!1,role:"group"};const pt=ft,mt=n.forwardRef((({bsPrefix:e,className:n,...r},o)=>{const a=g(e,"btn-toolbar");return(0,m.jsx)("div",{...r,ref:o,className:t()(n,a)})}));mt.displayName="ButtonToolbar",mt.defaultProps={role:"toolbar"};const vt=mt,ht=n.forwardRef((({bsPrefix:e,className:n,variant:r,as:o="img",...a},s)=>{const i=g(e,"card-img");return(0,m.jsx)(o,{ref:s,className:t()(r?`${i}-${r}`:i,n),...a})}));ht.displayName="CardImg";const bt=ht,gt=n.createContext(null);gt.displayName="CardHeaderContext";const xt=gt,yt=n.forwardRef((({bsPrefix:e,className:r,as:o="div",...a},s)=>{const i=g(e,"card-header"),l=(0,n.useMemo)((()=>({cardHeaderBsPrefix:i})),[i]);return(0,m.jsx)(xt.Provider,{value:l,children:(0,m.jsx)(o,{ref:s,...a,className:t()(r,i)})})}));yt.displayName="CardHeader";const wt=yt,Et=qe("h5"),Nt=qe("h6"),Ct=Ye("card-body"),jt=Ye("card-title",{Component:Et}),Ot=Ye("card-subtitle",{Component:Nt}),Pt=Ye("card-link",{Component:"a"}),kt=Ye("card-text",{Component:"p"}),Rt=Ye("card-footer"),Tt=Ye("card-img-overlay"),$t=n.forwardRef((({bsPrefix:e,className:n,bg:r,text:o,border:a,body:s,children:i,as:l="div",...c},u)=>{const d=g(e,"card");return(0,m.jsx)(l,{ref:u,...c,className:t()(n,d,r&&`bg-${r}`,o&&`text-${o}`,a&&`border-${a}`),children:s?(0,m.jsx)(Ct,{children:i}):i})}));$t.displayName="Card",$t.defaultProps={body:!1};const St=Object.assign($t,{Img:bt,Title:jt,Subtitle:Ot,Body:Ct,Link:Pt,Text:kt,Header:wt,Footer:Rt,ImgOverlay:Tt}),Mt=Ye("card-group");function Dt(e){var t,r,o=(t=e,(r=(0,n.useRef)(t)).current=t,r);(0,n.useEffect)((function(){return function(){return o.current()}}),[])}var It=Math.pow(2,31)-1;function Lt(e,t,n){var r=n-Date.now();e.current=r<=It?setTimeout(t,r):setTimeout((function(){return Lt(e,t,n)}),It)}function At(){var e=function(){var e=(0,n.useRef)(!0),t=(0,n.useRef)((function(){return e.current}));return(0,n.useEffect)((function(){return function(){e.current=!1}}),[]),t.current}(),t=(0,n.useRef)();return Dt((function(){return clearTimeout(t.current)})),(0,n.useMemo)((function(){var n=function(){return clearTimeout(t.current)};return{set:function(r,o){void 0===o&&(o=0),e()&&(n(),o<=It?t.current=setTimeout(r,o):Lt(t,r,Date.now()+o))},clear:n}}),[])}const Bt=Ye("carousel-caption"),Ft=n.forwardRef((({as:e="div",bsPrefix:n,className:r,...o},a)=>{const s=t()(r,g(n,"carousel-item"));return(0,m.jsx)(e,{ref:a,...o,className:s})}));Ft.displayName="CarouselItem";const Kt=Ft;function Ht(e,t){let r=0;return n.Children.map(e,(e=>n.isValidElement(e)?t(e,r++):e))}function _t(e,t){let r=0;n.Children.forEach(e,(e=>{n.isValidElement(e)&&t(e,r++)}))}const Wt={slide:!0,fade:!1,controls:!0,indicators:!0,indicatorLabels:[],defaultActiveIndex:0,interval:5e3,keyboard:!0,pause:"hover",wrap:!0,touch:!0,prevIcon:(0,m.jsx)("span",{"aria-hidden":"true",className:"carousel-control-prev-icon"}),prevLabel:"Previous",nextIcon:(0,m.jsx)("span",{"aria-hidden":"true",className:"carousel-control-next-icon"}),nextLabel:"Next"},zt=n.forwardRef(((e,r)=>{const{as:o="div",bsPrefix:a,slide:s,fade:i,controls:l,indicators:c,indicatorLabels:u,activeIndex:d,onSelect:f,onSlide:v,onSlid:h,interval:b,keyboard:y,onKeyDown:w,pause:E,onMouseOver:N,onMouseOut:C,wrap:j,touch:O,onTouchStart:P,onTouchMove:k,onTouchEnd:R,prevIcon:T,prevLabel:$,nextIcon:S,nextLabel:M,variant:D,className:I,children:L,...A}=p(e,{activeIndex:"onSelect"}),B=g(a,"carousel"),F=x(),K=(0,n.useRef)(null),[H,_]=(0,n.useState)("next"),[W,z]=(0,n.useState)(!1),[V,U]=(0,n.useState)(!1),[q,G]=(0,n.useState)(d||0);V||d===q||(K.current?_(K.current):_((d||0)>q?"next":"prev"),s&&U(!0),G(d||0)),(0,n.useEffect)((()=>{K.current&&(K.current=null)}));let X,Z=0;_t(L,((e,t)=>{++Z,t===d&&(X=e.props.interval)}));const Q=Pe(X),ee=(0,n.useCallback)((e=>{if(V)return;let t=q-1;if(t<0){if(!j)return;t=Z-1}K.current="prev",null==f||f(t,e)}),[V,q,f,j,Z]),te=ke((e=>{if(V)return;let t=q+1;if(t>=Z){if(!j)return;t=0}K.current="next",null==f||f(t,e)})),re=(0,n.useRef)();(0,n.useImperativeHandle)(r,(()=>({element:re.current,prev:ee,next:te})));const oe=ke((()=>{!document.hidden&&function(e){if(!(e&&e.style&&e.parentNode&&e.parentNode.style))return!1;const t=getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&"none"!==getComputedStyle(e.parentNode).display}(re.current)&&(F?ee():te())})),ae="next"===H?"start":"end";var se,ie,le;se=()=>{s||(null==v||v(q,ae),null==h||h(q,ae))},ie=[q],le=(0,n.useRef)(!0),(0,n.useEffect)((function(){if(!le.current)return se();le.current=!1}),ie);const ce=`${B}-item-${H}`,ue=`${B}-item-${ae}`,de=(0,n.useCallback)((e=>{J(e),null==v||v(q,ae)}),[v,q,ae]),fe=(0,n.useCallback)((()=>{U(!1),null==h||h(q,ae)}),[h,q,ae]),pe=(0,n.useCallback)((e=>{if(y&&!/input|textarea/i.test(e.target.tagName))switch(e.key){case"ArrowLeft":return e.preventDefault(),void(F?te(e):ee(e));case"ArrowRight":return e.preventDefault(),void(F?ee(e):te(e))}null==w||w(e)}),[y,w,ee,te,F]),me=(0,n.useCallback)((e=>{"hover"===E&&z(!0),null==N||N(e)}),[E,N]),ve=(0,n.useCallback)((e=>{z(!1),null==C||C(e)}),[C]),he=(0,n.useRef)(0),be=(0,n.useRef)(0),ge=At(),xe=(0,n.useCallback)((e=>{he.current=e.touches[0].clientX,be.current=0,"hover"===E&&z(!0),null==P||P(e)}),[E,P]),ye=(0,n.useCallback)((e=>{e.touches&&e.touches.length>1?be.current=0:be.current=e.touches[0].clientX-he.current,null==k||k(e)}),[k]),we=(0,n.useCallback)((e=>{if(O){const t=be.current;Math.abs(t)>40&&(t>0?ee(e):te(e))}"hover"===E&&ge.set((()=>{z(!1)}),b||void 0),null==R||R(e)}),[O,E,ee,te,ge,b,R]),Ee=null!=b&&!W&&!V,Ne=(0,n.useRef)();(0,n.useEffect)((()=>{var e,t;if(!Ee)return;const n=F?ee:te;return Ne.current=window.setInterval(document.visibilityState?oe:n,null!=(e=null!=(t=Q.current)?t:b)?e:void 0),()=>{null!==Ne.current&&clearInterval(Ne.current)}}),[Ee,ee,te,Q,b,oe,F]);const Ce=(0,n.useMemo)((()=>c&&Array.from({length:Z},((e,t)=>e=>{null==f||f(t,e)}))),[c,Z,f]);return(0,m.jsxs)(o,{ref:re,...A,onKeyDown:pe,onMouseOver:me,onMouseOut:ve,onTouchStart:xe,onTouchMove:ye,onTouchEnd:we,className:t()(I,B,s&&"slide",i&&`${B}-fade`,D&&`${B}-${D}`),children:[c&&(0,m.jsx)("div",{className:`${B}-indicators`,children:Ht(L,((e,t)=>(0,m.jsx)("button",{type:"button","data-bs-target":"","aria-label":null!=u&&u.length?u[t]:`Slide ${t+1}`,className:t===q?"active":void 0,onClick:Ce?Ce[t]:void 0,"aria-current":t===q},t)))}),(0,m.jsx)("div",{className:`${B}-inner`,children:Ht(L,((e,r)=>{const o=r===q;return s?(0,m.jsx)(ne,{in:o,onEnter:o?de:void 0,onEntered:o?fe:void 0,addEndListener:Y,children:(r,a)=>n.cloneElement(e,{...a,className:t()(e.props.className,o&&"entered"!==r&&ce,("entered"===r||"exiting"===r)&&"active",("entering"===r||"exiting"===r)&&ue)})}):n.cloneElement(e,{className:t()(e.props.className,o&&"active")})}))}),l&&(0,m.jsxs)(m.Fragment,{children:[(j||0!==d)&&(0,m.jsxs)(Ke,{className:`${B}-control-prev`,onClick:ee,children:[T,$&&(0,m.jsx)("span",{className:"visually-hidden",children:$})]}),(j||d!==Z-1)&&(0,m.jsxs)(Ke,{className:`${B}-control-next`,onClick:te,children:[S,M&&(0,m.jsx)("span",{className:"visually-hidden",children:M})]})]})]})}));zt.displayName="Carousel",zt.defaultProps=Wt;const Vt=Object.assign(zt,{Caption:Bt,Item:Kt}),Ut=["xxl","xl","lg","md","sm","xs"];function qt({as:e,bsPrefix:n,className:r,...o}){n=g(n,"col");const a=[],s=[];return Ut.forEach((e=>{const t=o[e];let r,i,l;delete o[e],"object"==typeof t&&null!=t?({span:r,offset:i,order:l}=t):r=t;const c="xs"!==e?`-${e}`:"";r&&a.push(!0===r?`${n}${c}`:`${n}${c}-${r}`),null!=l&&s.push(`order${c}-${l}`),null!=i&&s.push(`offset${c}-${i}`)})),[{...o,className:t()(r,...a,...s)},{as:e,bsPrefix:n,spans:a}]}const Gt=n.forwardRef(((e,n)=>{const[{className:r,...o},{as:a="div",bsPrefix:s,spans:i}]=qt(e);return(0,m.jsx)(a,{...o,ref:n,className:t()(r,!i.length&&s)})}));Gt.displayName="Col";const Xt=Gt;var Yt=Function.prototype.bind.call(Function.prototype.call,[].slice);function Zt(e,t){return Yt(e.querySelectorAll(t))}function Jt(){return(0,n.useReducer)((function(e){return!e}),!1)[1]}const Qt=n.createContext(null);var en=Object.prototype.hasOwnProperty;function tn(e,t,n){for(n of e.keys())if(nn(n,t))return n}function nn(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&nn(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"==typeof o&&!(o=tn(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"==typeof o&&!(o=tn(t,o)))return!1;if(!nn(r[1],t.get(o)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(en.call(e,n)&&++r&&!en.call(t,n))return!1;if(!(n in t)||!nn(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function rn(e){return e.split("-")[0]}function on(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function an(e){return e instanceof on(e).Element||e instanceof Element}function sn(e){return e instanceof on(e).HTMLElement||e instanceof HTMLElement}function ln(e){return"undefined"!=typeof ShadowRoot&&(e instanceof on(e).ShadowRoot||e instanceof ShadowRoot)}var cn=Math.round;function un(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(sn(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(r=n.width/s||1),a>0&&(o=n.height/a||1)}return{width:cn(n.width/r),height:cn(n.height/o),top:cn(n.top/o),right:cn(n.right/r),bottom:cn(n.bottom/o),left:cn(n.left/r),x:cn(n.left/r),y:cn(n.top/o)}}function dn(e){var t=un(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function fn(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ln(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pn(e){return e?(e.nodeName||"").toLowerCase():null}function mn(e){return on(e).getComputedStyle(e)}function vn(e){return["table","td","th"].indexOf(pn(e))>=0}function hn(e){return((an(e)?e.ownerDocument:e.document)||window.document).documentElement}function bn(e){return"html"===pn(e)?e:e.assignedSlot||e.parentNode||(ln(e)?e.host:null)||hn(e)}function gn(e){return sn(e)&&"fixed"!==mn(e).position?e.offsetParent:null}function xn(e){for(var t=on(e),n=gn(e);n&&vn(n)&&"static"===mn(n).position;)n=gn(n);return n&&("html"===pn(n)||"body"===pn(n)&&"static"===mn(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&sn(e)&&"fixed"===mn(e).position)return null;for(var n=bn(e);sn(n)&&["html","body"].indexOf(pn(n))<0;){var r=mn(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function yn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var wn=Math.max,En=Math.min,Nn=Math.round;function Cn(e,t,n){return wn(e,En(t,n))}function jn(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function On(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Pn="top",kn="bottom",Rn="right",Tn="left",$n="auto",Sn=[Pn,kn,Rn,Tn],Mn="start",Dn="end",In="viewport",Ln="popper",An=Sn.reduce((function(e,t){return e.concat([t+"-"+Mn,t+"-"+Dn])}),[]),Bn=[].concat(Sn,[$n]).reduce((function(e,t){return e.concat([t,t+"-"+Mn,t+"-"+Dn])}),[]),Fn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Kn(e){return e.split("-")[1]}var Hn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _n(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Nn(Nn(t*r)/r)||0,y:Nn(Nn(n*r)/r)||0}}(s):"function"==typeof u?u(s):s,f=d.x,p=void 0===f?0:f,m=d.y,v=void 0===m?0:m,h=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),g=Tn,x=Pn,y=window;if(c){var w=xn(n),E="clientHeight",N="clientWidth";w===on(n)&&"static"!==mn(w=hn(n)).position&&"absolute"===i&&(E="scrollHeight",N="scrollWidth"),w=w,o!==Pn&&(o!==Tn&&o!==Rn||a!==Dn)||(x=kn,v-=w[E]-r.height,v*=l?1:-1),o!==Tn&&(o!==Pn&&o!==kn||a!==Dn)||(g=Rn,p-=w[N]-r.width,p*=l?1:-1)}var C,j=Object.assign({position:i},c&&Hn);return l?Object.assign({},j,((C={})[x]=b?"0":"",C[g]=h?"0":"",C.transform=(y.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",C)):Object.assign({},j,((t={})[x]=b?v+"px":"",t[g]=h?p+"px":"",t.transform="",t))}var Wn={passive:!0},zn={left:"right",right:"left",bottom:"top",top:"bottom"};function Vn(e){return e.replace(/left|right|bottom|top/g,(function(e){return zn[e]}))}var Un={start:"end",end:"start"};function qn(e){return e.replace(/start|end/g,(function(e){return Un[e]}))}function Gn(e){var t=on(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xn(e){return un(hn(e)).left+Gn(e).scrollLeft}function Yn(e){var t=mn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Zn(e){return["html","body","#document"].indexOf(pn(e))>=0?e.ownerDocument.body:sn(e)&&Yn(e)?e:Zn(bn(e))}function Jn(e,t){var n;void 0===t&&(t=[]);var r=Zn(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=on(r),s=o?[a].concat(a.visualViewport||[],Yn(r)?r:[]):r,i=t.concat(s);return o?i:i.concat(Jn(bn(s)))}function Qn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function er(e,t){return t===In?Qn(function(e){var t=on(e),n=hn(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,i=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,i=r.offsetTop)),{width:o,height:a,x:s+Xn(e),y:i}}(e)):sn(t)?function(e){var t=un(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Qn(function(e){var t,n=hn(e),r=Gn(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=wn(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=wn(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+Xn(e),l=-r.scrollTop;return"rtl"===mn(o||n).direction&&(i+=wn(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}(hn(e)))}function tr(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?rn(o):null,s=o?Kn(o):null,i=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case Pn:t={x:i,y:n.y-r.height};break;case kn:t={x:i,y:n.y+n.height};break;case Rn:t={x:n.x+n.width,y:l};break;case Tn:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?yn(a):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Mn:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Dn:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function nr(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.boundary,s=void 0===a?"clippingParents":a,i=n.rootBoundary,l=void 0===i?In:i,c=n.elementContext,u=void 0===c?Ln:c,d=n.altBoundary,f=void 0!==d&&d,p=n.padding,m=void 0===p?0:p,v=jn("number"!=typeof m?m:On(m,Sn)),h=u===Ln?"reference":Ln,b=e.rects.popper,g=e.elements[f?h:u],x=function(e,t,n){var r="clippingParents"===t?function(e){var t=Jn(bn(e)),n=["absolute","fixed"].indexOf(mn(e).position)>=0&&sn(e)?xn(e):e;return an(n)?t.filter((function(e){return an(e)&&fn(e,n)&&"body"!==pn(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o[0],s=o.reduce((function(t,n){var r=er(e,n);return t.top=wn(r.top,t.top),t.right=En(r.right,t.right),t.bottom=En(r.bottom,t.bottom),t.left=wn(r.left,t.left),t}),er(e,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(an(g)?g:g.contextElement||hn(e.elements.popper),s,l),y=un(e.elements.reference),w=tr({reference:y,element:b,strategy:"absolute",placement:o}),E=Qn(Object.assign({},b,w)),N=u===Ln?E:y,C={top:x.top-N.top+v.top,bottom:N.bottom-x.bottom+v.bottom,left:x.left-N.left+v.left,right:N.right-x.right+v.right},j=e.modifiersData.offset;if(u===Ln&&j){var O=j[o];Object.keys(C).forEach((function(e){var t=[Rn,kn].indexOf(e)>=0?1:-1,n=[Pn,kn].indexOf(e)>=0?"y":"x";C[e]+=O[n]*t}))}return C}function rr(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function or(e){return[Pn,Rn,kn,Tn].some((function(t){return e[t]>=0}))}function ar(e,t,n){void 0===n&&(n=!1);var r,o,a=sn(t),s=sn(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return 1!==n||1!==r}(t),i=hn(t),l=un(e,s),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==pn(t)||Yn(i))&&(c=(r=t)!==on(r)&&sn(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Gn(r)),sn(t)?((u=un(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=Xn(i))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function sr(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ir={placement:"bottom",modifiers:[],strategy:"absolute"};function lr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}const cr=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?ir:o;return function(e,t,n){void 0===n&&(n=a);var o,s,i={placement:"bottom",orderedModifiers:[],options:Object.assign({},ir,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:i,setOptions:function(n){var o="function"==typeof n?n(i.options):n;d(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:an(e)?Jn(e):e.contextElement?Jn(e.contextElement):[],popper:Jn(t)};var s,c,f=function(e){var t=sr(e);return Fn.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(r,i.options.modifiers),c=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return i.orderedModifiers=f.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:i,name:t,instance:u,options:r});l.push(a||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=i.elements,t=e.reference,n=e.popper;if(lr(t,n)){i.rects={reference:ar(t,xn(n),"fixed"===i.options.strategy),popper:dn(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,s=o.options,l=void 0===s?{}:s,d=o.name;"function"==typeof a&&(i=a({state:i,options:l,name:d,instance:u})||i)}else i.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(i)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){d(),c=!0}};if(!lr(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}({defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=nr(t,{elementContext:"reference"}),i=nr(t,{altBoundary:!0}),l=rr(s,r),c=rr(i,o,a),u=or(l),d=or(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=tr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,s=void 0===a||a,i=n.roundOffsets,l=void 0===i||i,c={placement:rn(t.placement),variation:Kn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,_n(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,_n(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,s=r.resize,i=void 0===s||s,l=on(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,Wn)})),i&&l.addEventListener("resize",n.update,Wn),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Wn)})),i&&l.removeEventListener("resize",n.update,Wn)}},data:{}},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,s=Bn.reduce((function(e,n){return e[n]=function(e,t,n){var r=rn(e),o=[Tn,Pn].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=a[0],i=a[1];return s=s||0,i=(i||0)*o,[Tn,Rn].indexOf(r)>=0?{x:i,y:s}:{x:s,y:i}}(n,t.rects,a),e}),{}),i=s[t.placement],l=i.x,c=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,s=n.altAxis,i=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,v=n.allowedAutoPlacements,h=t.options.placement,b=rn(h),g=l||(b!==h&&m?function(e){if(rn(e)===$n)return[];var t=Vn(e);return[qn(e),t,qn(t)]}(h):[Vn(h)]),x=[h].concat(g).reduce((function(e,n){return e.concat(rn(n)===$n?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Bn:l,u=Kn(r),d=u?i?An:An.filter((function(e){return Kn(e)===u})):Sn,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=nr(e,{placement:n,boundary:o,rootBoundary:a,padding:s})[rn(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:v}):n)}),[]),y=t.rects.reference,w=t.rects.popper,E=new Map,N=!0,C=x[0],j=0;j<x.length;j++){var O=x[j],P=rn(O),k=Kn(O)===Mn,R=[Pn,kn].indexOf(P)>=0,T=R?"width":"height",$=nr(t,{placement:O,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),S=R?k?Rn:Tn:k?kn:Pn;y[T]>w[T]&&(S=Vn(S));var M=Vn(S),D=[];if(a&&D.push($[P]<=0),i&&D.push($[S]<=0,$[M]<=0),D.every((function(e){return e}))){C=O,N=!1;break}E.set(O,D)}if(N)for(var I=function(e){var t=x.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},L=m?3:1;L>0&&"break"!==I(L);L--);t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,s=n.altAxis,i=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,v=void 0===m?0:m,h=nr(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),b=rn(t.placement),g=Kn(t.placement),x=!g,y=yn(b),w="x"===y?"y":"x",E=t.modifiersData.popperOffsets,N=t.rects.reference,C=t.rects.popper,j="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,O={x:0,y:0};if(E){if(a||i){var P="y"===y?Pn:Tn,k="y"===y?kn:Rn,R="y"===y?"height":"width",T=E[y],$=E[y]+h[P],S=E[y]-h[k],M=p?-C[R]/2:0,D=g===Mn?N[R]:C[R],I=g===Mn?-C[R]:-N[R],L=t.elements.arrow,A=p&&L?dn(L):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=B[P],K=B[k],H=Cn(0,N[R],A[R]),_=x?N[R]/2-M-H-F-j:D-H-F-j,W=x?-N[R]/2+M+H+K+j:I+H+K+j,z=t.elements.arrow&&xn(t.elements.arrow),V=z?"y"===y?z.clientTop||0:z.clientLeft||0:0,U=t.modifiersData.offset?t.modifiersData.offset[t.placement][y]:0,q=E[y]+_-U-V,G=E[y]+W-U;if(a){var X=Cn(p?En($,q):$,T,p?wn(S,G):S);E[y]=X,O[y]=X-T}if(i){var Y="x"===y?Pn:Tn,Z="x"===y?kn:Rn,J=E[w],Q=J+h[Y],ee=J-h[Z],te=Cn(p?En(Q,q):Q,J,p?wn(ee,G):ee);E[w]=te,O[w]=te-J}}t.modifiersData[r]=O}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,i=rn(n.placement),l=yn(i),c=[Tn,Rn].indexOf(i)>=0?"height":"width";if(a&&s){var u=function(e,t){return jn("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:On(e,Sn))}(o.padding,n),d=dn(a),f="y"===l?Pn:Tn,p="y"===l?kn:Rn,m=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],v=s[l]-n.rects.reference[l],h=xn(a),b=h?"y"===l?h.clientHeight||0:h.clientWidth||0:0,g=m/2-v/2,x=u[f],y=b-d[c]-u[p],w=b/2-d[c]/2+g,E=Cn(x,w,y),N=l;n.modifiersData[r]=((t={})[N]=E,t.centerOffset=E-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&fn(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}),ur=["enabled","placement","strategy","modifiers"],dr={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},fr={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const e=(t.getAttribute("aria-describedby")||"").split(",").filter((e=>e.trim()!==n.id));e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===o&&"setAttribute"in r){const e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},pr=[],mr=function(e,t,r={}){let{enabled:o=!0,placement:a="bottom",strategy:s="absolute",modifiers:i=pr}=r,l=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,ur);const c=(0,n.useRef)(i),u=(0,n.useRef)(),d=(0,n.useCallback)((()=>{var e;null==(e=u.current)||e.update()}),[]),f=(0,n.useCallback)((()=>{var e;null==(e=u.current)||e.forceUpdate()}),[]),[p,m]=(b=(0,n.useState)({placement:a,update:d,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}}),g=$e(),[b[0],(0,n.useCallback)((function(e){if(g())return b[1](e)}),[g,b[1]])]),v=(0,n.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{const t={},n={};Object.keys(e.elements).forEach((r=>{t[r]=e.styles[r],n[r]=e.attributes[r]})),m({state:e,styles:t,attributes:n,update:d,forceUpdate:f,placement:e.placement})}})),[d,f,m]),h=(0,n.useMemo)((()=>(nn(c.current,i)||(c.current=i),c.current)),[i]);var b,g;return(0,n.useEffect)((()=>{u.current&&o&&u.current.setOptions({placement:a,strategy:s,modifiers:[...h,v,dr]})}),[s,a,v,o,h]),(0,n.useEffect)((()=>{if(o&&null!=e&&null!=t)return u.current=cr(e,t,Object.assign({},l,{placement:a,strategy:s,modifiers:[...h,fr,v]})),()=>{null!=u.current&&(u.current.destroy(),u.current=void 0,m((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[o,e,t]),p};function vr(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var hr=o(459),br=o.n(hr);const gr=()=>{},xr=e=>e&&("current"in e?e.current:e),yr=function(e,t,{disabled:r,clickTrigger:o="click"}={}){const a=(0,n.useRef)(!1),s=t||gr,i=(0,n.useCallback)((t=>{const n=xr(e);var r;br()(!!n,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),a.current=!(n&&(r=t,!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey))&&function(e){return 0===e.button}(t)&&!vr(n,t.target))}),[e]),l=Te((e=>{a.current||s(e)})),c=Te((e=>{27===e.keyCode&&s(e)}));(0,n.useEffect)((()=>{if(r||null==e)return;const t=w(xr(e));let n=(t.defaultView||window).event;const a=q(t,o,i,!0),s=q(t,o,(e=>{e!==n?l(e):n=void 0})),u=q(t,"keyup",(e=>{e!==n?c(e):n=void 0}));let d=[];return"ontouchstart"in t.documentElement&&(d=[].slice.call(t.body.children).map((e=>q(e,"mousemove",gr)))),()=>{a(),s(),u(),d.forEach((e=>e()))}}),[e,r,o,i,l,c])};function wr(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}function Er({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:a,containerPadding:s,arrowElement:i,popperConfig:l={}}){var c,u,d,f;const p=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:a?"fixed":l.strategy,modifiers:wr(Object.assign({},p,{eventListeners:{enabled:t},preventOverflow:Object.assign({},p.preventOverflow,{options:s?Object.assign({padding:s},null==(c=p.preventOverflow)?void 0:c.options):null==(u=p.preventOverflow)?void 0:u.options}),offset:{options:Object.assign({offset:o},null==(d=p.offset)?void 0:d.options)},arrow:Object.assign({},p.arrow,{enabled:!!i,options:Object.assign({},null==(f=p.arrow)?void 0:f.options,{element:i})}),flip:Object.assign({enabled:!!r},p.flip)}))})}const Nr=["children"],Cr=()=>{};function jr(e={}){const t=(0,n.useContext)(Qt),[r,o]=Re(),a=(0,n.useRef)(!1),{flip:s,offset:i,rootCloseEvent:l,fixed:c=!1,placement:u,popperConfig:d={},enableEventListeners:f=!0,usePopper:p=!!t}=e,m=null==(null==t?void 0:t.show)?!!e.show:t.show;m&&!a.current&&(a.current=!0);const{placement:v,setMenu:h,menuElement:b,toggleElement:g}=t||{},x=mr(g,b,Er({placement:u||v||"bottom-start",enabled:p,enableEvents:null==f?m:f,offset:i,flip:s,fixed:c,arrowElement:r,popperConfig:d})),y=Object.assign({ref:h||Cr,"aria-labelledby":null==g?void 0:g.id},x.attributes.popper,{style:x.styles.popper}),w={show:m,placement:v,hasShown:a.current,toggle:null==t?void 0:t.toggle,popper:p?x:null,arrowProps:p?Object.assign({ref:o},x.attributes.arrow,{style:x.styles.arrow}):{}};return yr(b,(e=>{null==t||t.toggle(!1,e)}),{clickTrigger:l,disabled:!m}),[y,w]}function Or(e){let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Nr);const[r,o]=jr(n);return(0,m.jsx)(m.Fragment,{children:t(r,o)})}Or.displayName="DropdownMenu",Or.defaultProps={usePopper:!0};const Pr=Or,kr={prefix:Math.round(1e10*Math.random()),current:0},Rr=r().createContext(kr);let Tr=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function $r(e){let t=(0,n.useContext)(Rr);return t!==kr||Tr||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),(0,n.useMemo)((()=>e||"react-aria-"+t.prefix+"-"+ ++t.current),[e])}const Sr=e=>{var t;return"menu"===(null==(t=e.getAttribute("role"))?void 0:t.toLowerCase())},Mr=()=>{};function Dr(){const e=$r(),{show:t=!1,toggle:r=Mr,setToggle:o,menuElement:a}=(0,n.useContext)(Qt)||{},s=(0,n.useCallback)((e=>{r(!t,e)}),[t,r]),i={id:e,ref:o||Mr,onClick:s,"aria-expanded":!!t};return a&&Sr(a)&&(i["aria-haspopup"]=!0),[i,{show:t,toggle:r}]}function Ir({children:e}){const[t,n]=Dr();return(0,m.jsx)(m.Fragment,{children:e(t,n)})}Ir.displayName="DropdownToggle";const Lr=Ir,Ar=(e,t=null)=>null!=e?String(e):t||null,Br=n.createContext(null),Fr=n.createContext(null);Fr.displayName="NavContext";const Kr=Fr;function Hr(e){return`data-rr-ui-${e}`}const _r=["eventKey","disabled","onClick","active","as"];function Wr({key:e,href:t,active:r,disabled:o,onClick:a}){const s=(0,n.useContext)(Br),i=(0,n.useContext)(Kr),{activeKey:l}=i||{},c=Ar(e,t),u=null==r&&null!=e?Ar(l)===c:r;return[{onClick:Te((e=>{o||(null==a||a(e),s&&!e.isPropagationStopped()&&s(c,e))})),"aria-disabled":o||void 0,"aria-selected":u,[Hr("dropdown-item")]:""},{isActive:u}]}const zr=n.forwardRef(((e,t)=>{let{eventKey:n,disabled:r,onClick:o,active:a,as:s=Ae}=e,i=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,_r);const[l]=Wr({key:n,href:i.href,disabled:r,onClick:o,active:a});return(0,m.jsx)(s,Object.assign({},i,{ref:t},l))}));zr.displayName="DropdownItem";const Vr=zr,Ur=(0,n.createContext)(H?window:void 0);function qr(){return(0,n.useContext)(Ur)}function Gr(){const e=Jt(),t=(0,n.useRef)(null),r=(0,n.useCallback)((n=>{t.current=n,e()}),[e]);return[t,r]}function Xr({defaultShow:e,show:t,onSelect:r,onToggle:o,itemSelector:a=`* [${Hr("dropdown-item")}]`,focusFirstItemOnShow:s,placement:i="bottom-start",children:l}){const c=qr(),[u,d]=f(t,e,o),[p,v]=Gr(),h=p.current,[b,g]=Gr(),x=b.current,y=Se(u),w=(0,n.useRef)(null),E=(0,n.useRef)(!1),N=(0,n.useContext)(Br),C=(0,n.useCallback)(((e,t,n=(null==t?void 0:t.type))=>{d(e,{originalEvent:t,source:n})}),[d]),j=Te(((e,t)=>{null==r||r(e,t),C(!1,t,"select"),t.isPropagationStopped()||null==N||N(e,t)})),O=(0,n.useMemo)((()=>({toggle:C,placement:i,show:u,menuElement:h,toggleElement:x,setMenu:v,setToggle:g})),[C,i,u,h,x,v,g]);h&&y&&!u&&(E.current=h.contains(h.ownerDocument.activeElement));const P=Te((()=>{x&&x.focus&&x.focus()})),k=Te((()=>{const e=w.current;let t=s;if(null==t&&(t=!(!p.current||!Sr(p.current))&&"keyboard"),!1===t||"keyboard"===t&&!/^key.+$/.test(e))return;const n=Zt(p.current,a)[0];n&&n.focus&&n.focus()}));(0,n.useEffect)((()=>{u?k():E.current&&(E.current=!1,P())}),[u,E,P,k]),(0,n.useEffect)((()=>{w.current=null}));const R=(e,t)=>{if(!p.current)return null;const n=Zt(p.current,a);let r=n.indexOf(e)+t;return r=Math.max(0,Math.min(r,n.length)),n[r]};return function(e,t,r,o){void 0===o&&(o=!1);var a=Te((e=>{var t,n;const{key:r}=e,o=e.target,a=null==(t=p.current)?void 0:t.contains(o),s=null==(n=b.current)?void 0:n.contains(o);if(/input|textarea/i.test(o.tagName)&&(" "===r||"Escape"!==r&&a))return;if(!a&&!s)return;if(!("Tab"!==r||p.current&&u))return;w.current=e.type;const i={originalEvent:e,source:e.type};switch(r){case"ArrowUp":{const t=R(o,-1);return t&&t.focus&&t.focus(),void e.preventDefault()}case"ArrowDown":if(e.preventDefault(),u){const e=R(o,1);e&&e.focus&&e.focus()}else d(!0,i);return;case"Tab":V(o.ownerDocument,"keyup",(e=>{var t;("Tab"!==e.key||e.target)&&null!=(t=p.current)&&t.contains(e.target)||d(!1,i)}),{once:!0});break;case"Escape":"Escape"===r&&(e.preventDefault(),e.stopPropagation()),d(!1,i)}}));(0,n.useEffect)((function(){var n="function"==typeof e?e():e;return n.addEventListener(t,a,o),function(){return n.removeEventListener(t,a,o)}}),[e])}((0,n.useCallback)((()=>c.document),[c]),"keydown"),(0,m.jsx)(Br.Provider,{value:j,children:(0,m.jsx)(Qt.Provider,{value:O,children:l})})}Ur.Provider,Xr.displayName="Dropdown",Xr.Menu=Pr,Xr.Toggle=Lr,Xr.Item=Vr;const Yr=Xr,Zr=n.createContext({});Zr.displayName="DropdownContext";const Jr=Zr,Qr=n.forwardRef((({bsPrefix:e,className:n,eventKey:r,disabled:o=!1,onClick:a,active:s,as:i=Ke,...l},c)=>{const u=g(e,"dropdown-item"),[d,f]=Wr({key:r,href:l.href,disabled:o,onClick:a,active:s});return(0,m.jsx)(i,{...l,...d,ref:c,className:t()(n,u,f.isActive&&"active",o&&"disabled")})}));Qr.displayName="DropdownItem";const eo=Qr;var to=void 0!==o.g&&o.g.navigator&&"ReactNative"===o.g.navigator.product;const no="undefined"!=typeof document||to?n.useLayoutEffect:n.useEffect,ro=n.createContext(null);ro.displayName="InputGroupContext";const oo=ro,ao=n.createContext(null);ao.displayName="NavbarContext";const so=ao;function io(e,t){return e}function lo(e,t,n){let r=e?n?"bottom-start":"bottom-end":n?"bottom-end":"bottom-start";return"up"===t?r=e?n?"top-start":"top-end":n?"top-end":"top-start":"end"===t?r=e?n?"left-end":"right-end":n?"left-start":"right-start":"start"===t&&(r=e?n?"right-end":"left-end":n?"right-start":"left-start"),r}const co=n.forwardRef((({bsPrefix:e,className:r,align:o,rootCloseEvent:a,flip:s,show:i,renderOnMount:l,as:c="div",popperConfig:u,variant:d,...f},p)=>{let v=!1;const h=(0,n.useContext)(so),b=g(e,"dropdown-menu"),{align:x,drop:y,isRTL:w}=(0,n.useContext)(Jr);o=o||x;const E=(0,n.useContext)(oo),N=[];if(o)if("object"==typeof o){const e=Object.keys(o);if(e.length){const t=e[0],n=o[t];v="start"===n,N.push(`${b}-${t}-${n}`)}}else"end"===o&&(v=!0);const C=lo(v,y,w),[j,{hasShown:O,popper:P,show:k,toggle:R}]=jr({flip:s,rootCloseEvent:a,show:i,usePopper:!h&&0===N.length,offset:[0,2],popperConfig:u,placement:C});if(j.ref=ee(io(p),j.ref),no((()=>{k&&(null==P||P.update())}),[k]),!O&&!l&&!E)return null;"string"!=typeof c&&(j.show=k,j.close=()=>null==R?void 0:R(!1),j.align=o);let T=f.style;return null!=P&&P.placement&&(T={...f.style,...j.style},f["x-placement"]=P.placement),(0,m.jsx)(c,{...f,...j,style:T,...(N.length||h)&&{"data-bs-popper":"static"},className:t()(r,b,k&&"show",v&&`${b}-end`,d&&`${b}-${d}`,...N)})}));co.displayName="DropdownMenu",co.defaultProps={flip:!0};const uo=co,fo=n.forwardRef((({bsPrefix:e,split:r,className:o,childBsPrefix:a,as:s=dt,...i},l)=>{const c=g(e,"dropdown-toggle"),u=(0,n.useContext)(Qt),d=(0,n.useContext)(oo);void 0!==a&&(i.bsPrefix=a);const[f]=Dr();return f.ref=ee(f.ref,io(l)),(0,m.jsx)(s,{className:t()(o,c,r&&`${c}-split`,!!d&&(null==u?void 0:u.show)&&"show"),...f,...i})}));fo.displayName="DropdownToggle";const po=fo,mo=Ye("dropdown-header",{defaultProps:{role:"heading"}}),vo=Ye("dropdown-divider",{Component:"hr",defaultProps:{role:"separator"}}),ho=Ye("dropdown-item-text",{Component:"span"}),bo=n.forwardRef(((e,r)=>{const{bsPrefix:o,drop:a,show:s,className:i,align:l,onSelect:c,onToggle:u,focusFirstItemOnShow:d,as:f="div",navbar:v,autoClose:h,...b}=p(e,{show:"onToggle"}),y=(0,n.useContext)(oo),w=g(o,"dropdown"),E=x(),N=ke(((e,t)=>{var n;t.originalEvent.currentTarget!==document||"keydown"===t.source&&"Escape"!==t.originalEvent.key||(t.source="rootClose"),n=t.source,(!1===h?"click"===n:"inside"===h?"rootClose"!==n:"outside"!==h||"select"!==n)&&(null==u||u(e,t))})),C=lo("end"===l,a,E),j=(0,n.useMemo)((()=>({align:l,drop:a,isRTL:E})),[l,a,E]);return(0,m.jsx)(Jr.Provider,{value:j,children:(0,m.jsx)(Yr,{placement:C,show:s,onSelect:c,onToggle:N,focusFirstItemOnShow:d,itemSelector:`.${w}-item:not(.disabled):not(:disabled)`,children:y?b.children:(0,m.jsx)(f,{...b,ref:r,className:t()(i,s&&"show",(!a||"down"===a)&&w,"up"===a&&"dropup","end"===a&&"dropend","start"===a&&"dropstart")})})})}));bo.displayName="Dropdown",bo.defaultProps={navbar:!1,align:"start",autoClose:!0};const go=Object.assign(bo,{Toggle:po,Menu:uo,Item:eo,ItemText:ho,Divider:vo,Header:mo}),xo=R().oneOf(["start","end"]),yo=R().oneOfType([xo,R().shape({sm:xo}),R().shape({md:xo}),R().shape({lg:xo}),R().shape({xl:xo}),R().shape({xxl:xo})]),wo={id:R().string,href:R().string,onClick:R().func,title:R().node.isRequired,disabled:R().bool,align:yo,menuRole:R().string,renderMenuOnMount:R().bool,rootCloseEvent:R().string,menuVariant:R().oneOf(["dark"]),bsPrefix:R().string,variant:R().string,size:R().string},Eo=n.forwardRef((({title:e,children:t,bsPrefix:n,rootCloseEvent:r,variant:o,size:a,menuRole:s,renderMenuOnMount:i,disabled:l,href:c,id:u,menuVariant:d,...f},p)=>(0,m.jsxs)(go,{ref:p,...f,children:[(0,m.jsx)(po,{id:u,href:c,size:a,variant:o,disabled:l,childBsPrefix:n,children:e}),(0,m.jsx)(uo,{role:s,renderOnMount:i,rootCloseEvent:r,variant:d,children:t})]})));Eo.displayName="DropdownButton",Eo.propTypes=wo;const No=Eo,Co={type:R().string,tooltip:R().bool,as:R().elementType},jo=n.forwardRef((({as:e="div",className:n,type:r="valid",tooltip:o=!1,...a},s)=>(0,m.jsx)(e,{...a,ref:s,className:t()(n,`${r}-${o?"tooltip":"feedback"}`)})));jo.displayName="Feedback",jo.propTypes=Co;const Oo=jo,Po=n.createContext({}),ko=n.forwardRef((({id:e,bsPrefix:r,className:o,type:a="checkbox",isValid:s=!1,isInvalid:i=!1,as:l="input",...c},u)=>{const{controlId:d}=(0,n.useContext)(Po);return r=g(r,"form-check-input"),(0,m.jsx)(l,{...c,ref:u,type:a,id:e||d,className:t()(o,r,s&&"is-valid",i&&"is-invalid")})}));ko.displayName="FormCheckInput";const Ro=ko,To=n.forwardRef((({bsPrefix:e,className:r,htmlFor:o,...a},s)=>{const{controlId:i}=(0,n.useContext)(Po);return e=g(e,"form-check-label"),(0,m.jsx)("label",{...a,ref:s,htmlFor:o||i,className:t()(r,e)})}));To.displayName="FormCheckLabel";const $o=To,So=n.forwardRef((({id:e,bsPrefix:r,bsSwitchPrefix:o,inline:a=!1,disabled:s=!1,isValid:i=!1,isInvalid:l=!1,feedbackTooltip:c=!1,feedback:u,feedbackType:d,className:f,style:p,title:v="",type:h="checkbox",label:b,children:x,as:y="input",...w},E)=>{r=g(r,"form-check"),o=g(o,"form-switch");const{controlId:N}=(0,n.useContext)(Po),C=(0,n.useMemo)((()=>({controlId:e||N})),[N,e]),j=!x&&null!=b&&!1!==b||function(e,t){return n.Children.toArray(e).some((e=>n.isValidElement(e)&&e.type===t))}(x,$o),O=(0,m.jsx)(Ro,{...w,type:"switch"===h?"checkbox":h,ref:E,isValid:i,isInvalid:l,disabled:s,as:y});return(0,m.jsx)(Po.Provider,{value:C,children:(0,m.jsx)("div",{style:p,className:t()(f,j&&r,a&&`${r}-inline`,"switch"===h&&o),children:x||(0,m.jsxs)(m.Fragment,{children:[O,j&&(0,m.jsx)($o,{title:v,children:b}),u&&(0,m.jsx)(Oo,{type:d,tooltip:c,children:u})]})})})}));So.displayName="FormCheck";const Mo=Object.assign(So,{Input:Ro,Label:$o}),Do=n.forwardRef((({bsPrefix:e,type:r,size:o,htmlSize:a,id:s,className:i,isValid:l=!1,isInvalid:c=!1,plaintext:u,readOnly:d,as:f="input",...p},v)=>{const{controlId:h}=(0,n.useContext)(Po);let b;return e=g(e,"form-control"),b=u?{[`${e}-plaintext`]:!0}:{[e]:!0,[`${e}-${o}`]:o},(0,m.jsx)(f,{...p,type:r,size:a,ref:v,readOnly:d,id:s||h,className:t()(i,b,l&&"is-valid",c&&"is-invalid","color"===r&&`${e}-color`)})}));Do.displayName="FormControl";const Io=Object.assign(Do,{Feedback:Oo}),Lo=Ye("form-floating"),Ao=n.forwardRef((({controlId:e,as:t="div",...r},o)=>{const a=(0,n.useMemo)((()=>({controlId:e})),[e]);return(0,m.jsx)(Po.Provider,{value:a,children:(0,m.jsx)(t,{...r,ref:o})})}));Ao.displayName="FormGroup";const Bo=Ao,Fo=n.forwardRef((({as:e="label",bsPrefix:r,column:o,visuallyHidden:a,className:s,htmlFor:i,...l},c)=>{const{controlId:u}=(0,n.useContext)(Po);r=g(r,"form-label");let d="col-form-label";"string"==typeof o&&(d=`${d} ${d}-${o}`);const f=t()(s,r,a&&"visually-hidden",o&&d);return i=i||u,o?(0,m.jsx)(Xt,{ref:c,as:"label",className:f,htmlFor:i,...l}):(0,m.jsx)(e,{ref:c,className:f,htmlFor:i,...l})}));Fo.displayName="FormLabel",Fo.defaultProps={column:!1,visuallyHidden:!1};const Ko=Fo,Ho=n.forwardRef((({bsPrefix:e,className:r,id:o,...a},s)=>{const{controlId:i}=(0,n.useContext)(Po);return e=g(e,"form-range"),(0,m.jsx)("input",{...a,type:"range",ref:s,className:t()(r,e),id:o||i})}));Ho.displayName="FormRange";const _o=Ho,Wo=n.forwardRef((({bsPrefix:e,size:r,htmlSize:o,className:a,isValid:s=!1,isInvalid:i=!1,id:l,...c},u)=>{const{controlId:d}=(0,n.useContext)(Po);return e=g(e,"form-select"),(0,m.jsx)("select",{...c,size:o,ref:u,className:t()(a,e,r&&`${e}-${r}`,s&&"is-valid",i&&"is-invalid"),id:l||d})}));Wo.displayName="FormSelect";const zo=Wo,Vo=n.forwardRef((({bsPrefix:e,className:n,as:r="small",muted:o,...a},s)=>(e=g(e,"form-text"),(0,m.jsx)(r,{...a,ref:s,className:t()(n,e,o&&"text-muted")}))));Vo.displayName="FormText";const Uo=Vo,qo=n.forwardRef(((e,t)=>(0,m.jsx)(Mo,{...e,ref:t,type:"switch"})));qo.displayName="Switch";const Go=Object.assign(qo,{Input:Mo.Input,Label:Mo.Label}),Xo=n.forwardRef((({bsPrefix:e,className:n,children:r,controlId:o,label:a,...s},i)=>(e=g(e,"form-floating"),(0,m.jsxs)(Bo,{ref:i,className:t()(n,e),controlId:o,...s,children:[r,(0,m.jsx)("label",{htmlFor:o,children:a})]}))));Xo.displayName="FloatingLabel";const Yo=Xo,Zo={_ref:R().any,validated:R().bool,as:R().elementType},Jo=n.forwardRef((({className:e,validated:n,as:r="form",...o},a)=>(0,m.jsx)(r,{...o,ref:a,className:t()(e,n&&"was-validated")})));Jo.displayName="Form",Jo.propTypes=Zo;const Qo=Object.assign(Jo,{Group:Bo,Control:Io,Floating:Lo,Check:Mo,Switch:Go,Label:Ko,Text:Uo,Range:_o,Select:zo,FloatingLabel:Yo}),ea=n.forwardRef((({bsPrefix:e,fluid:n,as:r="div",className:o,...a},s)=>{const i=g(e,"container"),l="string"==typeof n?`-${n}`:"-fluid";return(0,m.jsx)(r,{ref:s,...a,className:t()(o,n?`${i}${l}`:i)})}));ea.displayName="Container",ea.defaultProps={fluid:!1};const ta=ea,na={bsPrefix:R().string,fluid:R().bool,rounded:R().bool,roundedCircle:R().bool,thumbnail:R().bool},ra=n.forwardRef((({bsPrefix:e,className:n,fluid:r,rounded:o,roundedCircle:a,thumbnail:s,...i},l)=>(e=g(e,"img"),(0,m.jsx)("img",{ref:l,...i,className:t()(n,r&&`${e}-fluid`,o&&"rounded",a&&"rounded-circle",s&&`${e}-thumbnail`)}))));ra.displayName="Image",ra.defaultProps={fluid:!1,rounded:!1,roundedCircle:!1,thumbnail:!1};const oa=ra,aa=n.forwardRef((({className:e,...n},r)=>(0,m.jsx)(oa,{ref:r,...n,className:t()(e,"figure-img")})));aa.displayName="FigureImage",aa.propTypes=na,aa.defaultProps={fluid:!0};const sa=aa,ia=Ye("figure-caption",{Component:"figcaption"}),la=Ye("figure",{Component:"figure"}),ca=Object.assign(la,{Image:sa,Caption:ia}),ua=Ye("input-group-text",{Component:"span"}),da=n.forwardRef((({bsPrefix:e,size:r,hasValidation:o,className:a,as:s="div",...i},l)=>{e=g(e,"input-group");const c=(0,n.useMemo)((()=>({})),[]);return(0,m.jsx)(oo.Provider,{value:c,children:(0,m.jsx)(s,{ref:l,...i,className:t()(a,e,r&&`${e}-${r}`,o&&"has-validation")})})}));da.displayName="InputGroup";const fa=Object.assign(da,{Text:ua,Radio:e=>(0,m.jsx)(ua,{children:(0,m.jsx)(Ro,{type:"radio",...e})}),Checkbox:e=>(0,m.jsx)(ua,{children:(0,m.jsx)(Ro,{type:"checkbox",...e})})});var pa=function(e){return e&&"function"!=typeof e?function(t){e.current=t}:e};const ma=function(e,t){return(0,n.useMemo)((function(){return function(e,t){var n=pa(e),r=pa(t);return function(e){n&&n(e),r&&r(e)}}(e,t)}),[e,t])},va=n.createContext(null),ha=["as","active","eventKey"];function ba({key:e,onClick:t,active:r,id:o,role:a,disabled:s}){const i=(0,n.useContext)(Br),l=(0,n.useContext)(Kr);let c=r;const u={role:a};if(l){a||"tablist"!==l.role||(u.role="tab");const t=l.getControllerId(null!=e?e:null),n=l.getControlledId(null!=e?e:null);u[Hr("event-key")]=e,u.id=t||o,u["aria-controls"]=n,c=null==r&&null!=e?l.activeKey===e:r}return"tab"===u.role&&(s&&(u.tabIndex=-1,u["aria-disabled"]=!0),c?u["aria-selected"]=c:u.tabIndex=-1),u.onClick=Te((n=>{s||(null==t||t(n),null!=e&&i&&!n.isPropagationStopped()&&i(e,n))})),[u,{isActive:c}]}const ga=n.forwardRef(((e,t)=>{let{as:n=Ae,active:r,eventKey:o}=e,a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,ha);const[s,i]=ba(Object.assign({key:Ar(o,a.href),active:r},a));return s[Hr("active")]=i.isActive,(0,m.jsx)(n,Object.assign({},a,s,{ref:t}))}));ga.displayName="NavItem";const xa=ga,ya=["as","onSelect","activeKey","role","onKeyDown"],wa=()=>{},Ea=Hr("event-key"),Na=n.forwardRef(((e,t)=>{let{as:r="div",onSelect:o,activeKey:a,role:s,onKeyDown:i}=e,l=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,ya);const c=Jt(),u=(0,n.useRef)(!1),d=(0,n.useContext)(Br),f=(0,n.useContext)(va);let p,v;f&&(s=s||"tablist",a=f.activeKey,p=f.getControlledId,v=f.getControllerId);const h=(0,n.useRef)(null),b=e=>{const t=h.current;if(!t)return null;const n=Zt(t,`[${Ea}]:not([aria-disabled=true])`),r=t.querySelector("[aria-selected=true]");if(!r)return null;const o=n.indexOf(r);if(-1===o)return null;let a=o+e;return a>=n.length&&(a=0),a<0&&(a=n.length-1),n[a]},g=(e,t)=>{null!=e&&(null==o||o(e,t),null==d||d(e,t))};(0,n.useEffect)((()=>{if(h.current&&u.current){const e=h.current.querySelector(`[${Ea}][aria-selected=true]`);null==e||e.focus()}u.current=!1}));const x=ma(t,h);return(0,m.jsx)(Br.Provider,{value:g,children:(0,m.jsx)(Kr.Provider,{value:{role:s,activeKey:Ar(a),getControlledId:p||wa,getControllerId:v||wa},children:(0,m.jsx)(r,Object.assign({},l,{onKeyDown:e=>{if(null==i||i(e),!f)return;let t;switch(e.key){case"ArrowLeft":case"ArrowUp":t=b(-1);break;case"ArrowRight":case"ArrowDown":t=b(1);break;default:return}t&&(e.preventDefault(),g(t.dataset[("EventKey","rrUiEventKey")]||null,e),u.current=!0,c())},ref:x,role:s}))})})}));Na.displayName="Nav";const Ca=Object.assign(Na,{Item:xa}),ja=n.forwardRef((({bsPrefix:e,active:n,disabled:r,eventKey:o,className:a,variant:s,action:i,as:l,...c},u)=>{e=g(e,"list-group-item");const[d,f]=ba({key:Ar(o,c.href),active:n,...c}),p=ke((e=>{if(r)return e.preventDefault(),void e.stopPropagation();d.onClick(e)}));r&&void 0===c.tabIndex&&(c.tabIndex=-1,c["aria-disabled"]=!0);const v=l||(i?c.href?"a":"button":"div");return(0,m.jsx)(v,{ref:u,...c,...d,onClick:p,className:t()(a,e,f.isActive&&"active",r&&"disabled",s&&`${e}-${s}`,i&&`${e}-action`)})}));ja.displayName="ListGroupItem";const Oa=ja,Pa=n.forwardRef(((e,n)=>{const{className:r,bsPrefix:o,variant:a,horizontal:s,numbered:i,as:l="div",...c}=p(e,{activeKey:"onSelect"}),u=g(o,"list-group");let d;return s&&(d=!0===s?"horizontal":`horizontal-${s}`),(0,m.jsx)(Ca,{ref:n,...c,as:l,className:t()(r,u,a&&`${u}-${a}`,d&&`${u}-${d}`,i&&`${u}-numbered`)})}));Pa.displayName="ListGroup";const ka=Object.assign(Pa,{Item:Oa});var Ra;function Ta(e){if((!Ra&&0!==Ra||e)&&H){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Ra=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Ra}function $a(e){void 0===e&&(e=w());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}const Sa=Hr("modal-open"),Ma=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt(O(r,n)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(Sa,""),O(r,t)}reset(){[...this.modals].forEach((e=>this.remove(e)))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(Sa),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,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}},Da=(e,t)=>{var n;return H?null==e?(t||w()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),null!=(n=e)&&n.nodeType&&e||null):null};function Ia(e,t){const r=qr(),[o,a]=(0,n.useState)((()=>Da(e,null==r?void 0:r.document)));if(!o){const t=Da(e);t&&a(t)}return(0,n.useEffect)((()=>{t&&o&&t(o)}),[t,o]),(0,n.useEffect)((()=>{const t=Da(e);t!==o&&a(t)}),[e,o]),o}const La=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","backdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let Aa;const Ba=(0,n.forwardRef)(((e,t)=>{let{show:r=!1,role:o="dialog",className:a,style:s,children:i,backdrop:l=!0,keyboard:c=!0,onBackdropClick:u,onEscapeKeyDown:d,transition:f,backdropTransition:p,autoFocus:v=!0,enforceFocus:h=!0,restoreFocus:b=!0,restoreFocusOptions:g,renderDialog:x,renderBackdrop:y=(e=>(0,m.jsx)("div",Object.assign({},e))),manager:w,container:E,onShow:N,onHide:C=(()=>{}),onExit:j,onExited:O,onExiting:P,onEnter:k,onEntering:R,onEntered:T}=e,S=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,La);const M=Ia(E),D=function(e){const t=qr(),r=e||function(e){return Aa||(Aa=new Ma({ownerDocument:null==e?void 0:e.document})),Aa}(t),o=(0,n.useRef)({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>r.add(o.current),remove:()=>r.remove(o.current),isTopModal:()=>r.isTopModal(o.current),setDialogRef:(0,n.useCallback)((e=>{o.current.dialog=e}),[]),setBackdropRef:(0,n.useCallback)((e=>{o.current.backdrop=e}),[])})}(w),I=$e(),L=Se(r),[A,B]=(0,n.useState)(!r),F=(0,n.useRef)(null);(0,n.useImperativeHandle)(t,(()=>D),[D]),H&&!L&&r&&(F.current=$a()),f||r||A?r&&A&&B(!1):B(!0);const K=Te((()=>{if(D.add(),Z.current=q(document,"keydown",X),Y.current=q(document,"focus",(()=>setTimeout(U)),!0),N&&N(),v){const e=$a(document);D.dialog&&e&&!vr(D.dialog,e)&&(F.current=e,D.dialog.focus())}})),_=Te((()=>{var e;D.remove(),null==Z.current||Z.current(),null==Y.current||Y.current(),b&&(null==(e=F.current)||null==e.focus||e.focus(g),F.current=null)}));var W,z,V;(0,n.useEffect)((()=>{r&&M&&K()}),[r,M,K]),(0,n.useEffect)((()=>{A&&_()}),[A,_]),W=()=>{_()},(z=(0,n.useRef)(W)).current=W,V=z,(0,n.useEffect)((function(){return function(){return V.current()}}),[]);const U=Te((()=>{if(!h||!I()||!D.isTopModal())return;const e=$a();D.dialog&&e&&!vr(D.dialog,e)&&D.dialog.focus()})),G=Te((e=>{e.target===e.currentTarget&&(null==u||u(e),!0===l&&C())})),X=Te((e=>{c&&27===e.keyCode&&D.isTopModal()&&(null==d||d(e),e.defaultPrevented||C())})),Y=(0,n.useRef)(),Z=(0,n.useRef)(),J=f;if(!M||!(r||J&&!A))return null;const Q=Object.assign({role:o,ref:D.setDialogRef,"aria-modal":"dialog"===o||void 0},S,{style:s,className:a,tabIndex:-1});let ee=x?x(Q):(0,m.jsx)("div",Object.assign({},Q,{children:n.cloneElement(i,{role:"document"})}));J&&(ee=(0,m.jsx)(J,{appear:!0,unmountOnExit:!0,in:!!r,onExit:j,onExiting:P,onExited:(...e)=>{B(!0),null==O||O(...e)},onEnter:k,onEntering:R,onEntered:T,children:ee}));let te=null;if(l){const e=p;te=y({ref:D.setBackdropRef,onClick:G}),e&&(te=(0,m.jsx)(e,{appear:!0,in:!!r,children:te}))}return(0,m.jsx)(m.Fragment,{children:$().createPortal((0,m.jsxs)(m.Fragment,{children:[te,ee]}),M)})}));Ba.displayName="Modal";const Fa=Object.assign(Ba,{Manager:Ma});function Ka(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}function Ha(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const _a=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Wa=".sticky-top",za=".navbar-toggler";class Va extends Ma{adjustAndStore(e,t,n){const r=t.style[e];t.dataset[e]=r,O(t,{[e]:`${parseFloat(O(t,e))+n}px`})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],O(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,r;if(r="modal-open",(n=t).classList?n.classList.add(r):Ka(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";Zt(t,_a).forEach((t=>this.adjustAndStore(o,t,e.scrollBarWidth))),Zt(t,Wa).forEach((t=>this.adjustAndStore(a,t,-e.scrollBarWidth))),Zt(t,za).forEach((t=>this.adjustAndStore(a,t,e.scrollBarWidth)))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,r;r="modal-open",(n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Ha(n.className,r):n.setAttribute("class",Ha(n.className&&n.className.baseVal||"",r));const o=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";Zt(t,_a).forEach((e=>this.restore(o,e))),Zt(t,Wa).forEach((e=>this.restore(a,e))),Zt(t,za).forEach((e=>this.restore(a,e)))}}let Ua;function qa(e){return Ua||(Ua=new Va(e)),Ua}const Ga=Va,Xa=Ye("modal-body"),Ya=n.createContext({onHide(){}}),Za=n.forwardRef((({bsPrefix:e,className:n,contentClassName:r,centered:o,size:a,fullscreen:s,children:i,scrollable:l,...c},u)=>{const d=`${e=g(e,"modal")}-dialog`,f="string"==typeof s?`${e}-fullscreen-${s}`:`${e}-fullscreen`;return(0,m.jsx)("div",{...c,ref:u,className:t()(d,n,a&&`${e}-${a}`,o&&`${d}-centered`,l&&`${d}-scrollable`,s&&f),children:(0,m.jsx)("div",{className:t()(`${e}-content`,r),children:i})})}));Za.displayName="ModalDialog";const Ja=Za,Qa=Ye("modal-footer"),es=n.forwardRef((({closeLabel:e,closeVariant:t,closeButton:r,onHide:o,children:a,...s},i)=>{const l=(0,n.useContext)(Ya),c=ke((()=>{null==l||l.onHide(),null==o||o()}));return(0,m.jsxs)("div",{ref:i,...s,children:[a,r&&(0,m.jsx)(Ue,{"aria-label":e,variant:t,onClick:c})]})}));es.defaultProps={closeLabel:"Close",closeButton:!1};const ts=es,ns=n.forwardRef((({bsPrefix:e,className:n,...r},o)=>(e=g(e,"modal-header"),(0,m.jsx)(ts,{ref:o,...r,className:t()(n,e)}))));ns.displayName="ModalHeader",ns.defaultProps={closeLabel:"Close",closeButton:!1};const rs=ns,os=Ye("modal-title",{Component:qe("h4")}),as={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,animation:!0,dialogAs:Ja};function ss(e){return(0,m.jsx)(We,{...e,timeout:null})}function is(e){return(0,m.jsx)(We,{...e,timeout:null})}const ls=n.forwardRef((({bsPrefix:e,className:r,style:o,dialogClassName:a,contentClassName:s,children:i,dialogAs:l,"aria-labelledby":c,show:u,animation:d,backdrop:f,keyboard:p,onEscapeKeyDown:v,onShow:h,onHide:b,container:y,autoFocus:E,enforceFocus:N,restoreFocus:C,restoreFocusOptions:j,onEntered:O,onExit:P,onExiting:k,onEnter:R,onEntering:T,onExited:$,backdropClassName:S,manager:M,...D},I)=>{const[L,A]=(0,n.useState)({}),[B,F]=(0,n.useState)(!1),K=(0,n.useRef)(!1),_=(0,n.useRef)(!1),W=(0,n.useRef)(null),[z,q]=(0,n.useState)(null),X=ee(I,q),Y=ke(b),Z=x();e=g(e,"modal");const J=(0,n.useMemo)((()=>({onHide:Y})),[Y]);function Q(){return M||qa({isRTL:Z})}function te(e){if(!H)return;const t=Q().getScrollbarWidth()>0,n=e.scrollHeight>w(e).documentElement.clientHeight;A({paddingRight:t&&!n?Ta():void 0,paddingLeft:!t&&n?Ta():void 0})}const ne=ke((()=>{z&&te(z.dialog)}));Dt((()=>{U(window,"resize",ne),null==W.current||W.current()}));const re=()=>{K.current=!0},oe=e=>{K.current&&z&&e.target===z.dialog&&(_.current=!0),K.current=!1},ae=()=>{F(!0),W.current=G(z.dialog,(()=>{F(!1)}))},se=e=>{"static"!==f?_.current||e.target!==e.currentTarget?_.current=!1:null==b||b():(e=>{e.target===e.currentTarget&&ae()})(e)},ie=(0,n.useCallback)((n=>(0,m.jsx)("div",{...n,className:t()(`${e}-backdrop`,S,!d&&"show")})),[d,S,e]),le={...o,...L};return d||(le.display="block"),(0,m.jsx)(Ya.Provider,{value:J,children:(0,m.jsx)(Fa,{show:u,ref:X,backdrop:f,container:y,keyboard:!0,autoFocus:E,enforceFocus:N,restoreFocus:C,restoreFocusOptions:j,onEscapeKeyDown:e=>{p||"static"!==f?p&&v&&v(e):(e.preventDefault(),ae())},onShow:h,onHide:b,onEnter:(e,t)=>{e&&(e.style.display="block",te(e)),null==R||R(e,t)},onEntering:(e,t)=>{null==T||T(e,t),V(window,"resize",ne)},onEntered:O,onExit:e=>{null==W.current||W.current(),null==P||P(e)},onExiting:k,onExited:e=>{e&&(e.style.display=""),null==$||$(e),U(window,"resize",ne)},manager:Q(),transition:d?ss:void 0,backdropTransition:d?is:void 0,renderBackdrop:ie,renderDialog:n=>(0,m.jsx)("div",{role:"dialog",...n,style:le,className:t()(r,e,B&&`${e}-static`),onClick:f?se:void 0,onMouseUp:oe,"aria-labelledby":c,children:(0,m.jsx)(l,{...D,onMouseDown:re,className:a,contentClassName:s,children:i})})})})}));ls.displayName="Modal",ls.defaultProps=as;const cs=Object.assign(ls,{Body:Xa,Header:rs,Title:os,Footer:Qa,Dialog:Ja,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});o(946);const us=Ye("nav-item"),ds=n.forwardRef((({bsPrefix:e,className:n,as:r=Ke,active:o,eventKey:a,...s},i)=>{e=g(e,"nav-link");const[l,c]=ba({key:Ar(a,s.href),active:o,...s});return(0,m.jsx)(r,{...s,...l,ref:i,className:t()(n,e,s.disabled&&"disabled",c.isActive&&"active")})}));ds.displayName="NavLink",ds.defaultProps={disabled:!1};const fs=ds,ps=n.forwardRef(((e,r)=>{const{as:o="div",bsPrefix:a,variant:s,fill:i,justify:l,navbar:c,navbarScroll:u,className:d,activeKey:f,...v}=p(e,{activeKey:"onSelect"}),h=g(a,"nav");let b,x,y=!1;const w=(0,n.useContext)(so),E=(0,n.useContext)(xt);return w?(b=w.bsPrefix,y=null==c||c):E&&({cardHeaderBsPrefix:x}=E),(0,m.jsx)(Ca,{as:o,ref:r,activeKey:f,className:t()(d,{[h]:!y,[`${b}-nav`]:y,[`${b}-nav-scroll`]:y&&u,[`${x}-${s}`]:!!x,[`${h}-${s}`]:!!s,[`${h}-fill`]:i,[`${h}-justified`]:l}),...v})}));ps.displayName="Nav",ps.defaultProps={justify:!1,fill:!1};const ms=Object.assign(ps,{Item:us,Link:fs}),vs=n.forwardRef((({bsPrefix:e,className:n,as:r,...o},a)=>{e=g(e,"navbar-brand");const s=r||(o.href?"a":"span");return(0,m.jsx)(s,{...o,ref:a,className:t()(n,e)})}));vs.displayName="NavbarBrand";const hs=vs,bs=n.forwardRef((({children:e,bsPrefix:t,...r},o)=>{t=g(t,"navbar-collapse");const a=(0,n.useContext)(so);return(0,m.jsx)(le,{in:!(!a||!a.expanded),...r,children:(0,m.jsx)("div",{ref:o,className:t,children:e})})}));bs.displayName="NavbarCollapse";const gs=bs,xs=n.forwardRef((({bsPrefix:e,className:r,children:o,label:a,as:s="button",onClick:i,...l},c)=>{e=g(e,"navbar-toggler");const{onToggle:u,expanded:d}=(0,n.useContext)(so)||{},f=ke((e=>{i&&i(e),u&&u()}));return"button"===s&&(l.type="button"),(0,m.jsx)(s,{...l,ref:c,onClick:f,"aria-label":a,className:t()(r,e,!d&&"collapsed"),children:o||(0,m.jsx)("span",{className:`${e}-icon`})})}));xs.displayName="NavbarToggle",xs.defaultProps={label:"Toggle navigation"};const ys=xs,ws=Ye("offcanvas-body"),Es={[I]:"show",[L]:"show"},Ns=n.forwardRef((({bsPrefix:e,className:r,children:o,...a},s)=>(e=g(e,"offcanvas"),(0,m.jsx)(ne,{ref:s,addEndListener:Y,...a,childRef:o.ref,children:(a,s)=>n.cloneElement(o,{...s,className:t()(r,o.props.className,(a===I||a===A)&&`${e}-toggling`,Es[a])})}))));Ns.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1},Ns.displayName="OffcanvasToggling";const Cs=Ns,js=n.forwardRef((({bsPrefix:e,className:n,...r},o)=>(e=g(e,"offcanvas-header"),(0,m.jsx)(ts,{ref:o,...r,className:t()(n,e)}))));js.displayName="OffcanvasHeader",js.defaultProps={closeLabel:"Close",closeButton:!1};const Os=js,Ps=Ye("offcanvas-title",{Component:qe("h5")});function ks(e){return(0,m.jsx)(Cs,{...e})}function Rs(e){return(0,m.jsx)(We,{...e})}const Ts=n.forwardRef((({bsPrefix:e,className:r,children:o,"aria-labelledby":a,placement:s,show:i,backdrop:l,keyboard:c,scroll:u,onEscapeKeyDown:d,onShow:f,onHide:p,container:v,autoFocus:h,enforceFocus:b,restoreFocus:x,restoreFocusOptions:y,onEntered:w,onExit:E,onExiting:N,onEnter:C,onEntering:j,onExited:O,backdropClassName:P,manager:k,...R},T)=>{const $=(0,n.useRef)();e=g(e,"offcanvas");const{onToggle:S}=(0,n.useContext)(so)||{},M=ke((()=>{null==S||S(),null==p||p()})),D=(0,n.useMemo)((()=>({onHide:M})),[M]),I=(0,n.useCallback)((n=>(0,m.jsx)("div",{...n,className:t()(`${e}-backdrop`,P)})),[P,e]);return(0,m.jsx)(Ya.Provider,{value:D,children:(0,m.jsx)(Fa,{show:i,ref:T,backdrop:l,container:v,keyboard:c,autoFocus:h,enforceFocus:b&&!u,restoreFocus:x,restoreFocusOptions:y,onEscapeKeyDown:d,onShow:f,onHide:M,onEnter:(e,...t)=>{e&&(e.style.visibility="visible"),null==C||C(e,...t)},onEntering:j,onEntered:w,onExit:E,onExiting:N,onExited:(e,...t)=>{e&&(e.style.visibility=""),null==O||O(...t)},manager:k||(u?($.current||($.current=new Ga({handleContainerOverflow:!1})),$.current):qa()),transition:ks,backdropTransition:Rs,renderBackdrop:I,renderDialog:n=>(0,m.jsx)("div",{role:"dialog",...n,...R,className:t()(r,e,`${e}-${s}`),"aria-labelledby":a,children:o})})})}));Ts.displayName="Offcanvas",Ts.defaultProps={show:!1,backdrop:!0,keyboard:!0,scroll:!1,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,placement:"start"};const $s=Object.assign(Ts,{Body:ws,Header:Os,Title:Ps}),Ss=n.forwardRef(((e,t)=>{const r=(0,n.useContext)(so);return(0,m.jsx)($s,{ref:t,show:!(null==r||!r.expanded),...e})}));Ss.displayName="NavbarOffcanvas";const Ms=Ss,Ds=Ye("navbar-text",{Component:"span"}),Is=n.forwardRef(((e,r)=>{const{bsPrefix:o,expand:a,variant:s,bg:i,fixed:l,sticky:c,className:u,as:d="nav",expanded:f,onToggle:v,onSelect:h,collapseOnSelect:b,...x}=p(e,{expanded:"onToggle"}),y=g(o,"navbar"),w=(0,n.useCallback)(((...e)=>{null==h||h(...e),b&&f&&(null==v||v(!1))}),[h,b,f,v]);void 0===x.role&&"nav"!==d&&(x.role="navigation");let E=`${y}-expand`;"string"==typeof a&&(E=`${E}-${a}`);const N=(0,n.useMemo)((()=>({onToggle:()=>null==v?void 0:v(!f),bsPrefix:y,expanded:!!f})),[y,f,v]);return(0,m.jsx)(so.Provider,{value:N,children:(0,m.jsx)(Br.Provider,{value:w,children:(0,m.jsx)(d,{ref:r,...x,className:t()(u,y,a&&E,s&&`${y}-${s}`,i&&`bg-${i}`,c&&`sticky-${c}`,l&&`fixed-${l}`)})})})}));Is.defaultProps={expand:!0,variant:"light",collapseOnSelect:!1},Is.displayName="Navbar";const Ls=Object.assign(Is,{Brand:hs,Collapse:gs,Offcanvas:Ms,Text:Ds,Toggle:ys}),As=n.forwardRef((({id:e,title:n,children:r,bsPrefix:o,className:a,rootCloseEvent:s,menuRole:i,disabled:l,active:c,renderMenuOnMount:u,menuVariant:d,...f},p)=>{const v=g(void 0,"nav-item");return(0,m.jsxs)(go,{ref:p,...f,className:t()(a,v),children:[(0,m.jsx)(go.Toggle,{id:e,eventKey:null,active:c,disabled:l,childBsPrefix:o,as:fs,children:n}),(0,m.jsx)(go.Menu,{role:i,renderOnMount:u,rootCloseEvent:s,variant:d,children:r})]})}));As.displayName="NavDropdown";const Bs=Object.assign(As,{Item:go.Item,ItemText:go.ItemText,Divider:go.Divider,Header:go.Header}),Fs=n.forwardRef(((e,t)=>{const{flip:r,offset:o,placement:a,containerPadding:s,popperConfig:i={},transition:l}=e,[c,u]=Re(),[d,f]=Re(),p=ma(u,t),v=Ia(e.container),h=Ia(e.target),[b,g]=(0,n.useState)(!e.show),x=mr(h,c,Er({placement:a,enableEvents:!!e.show,containerPadding:s||5,flip:r,offset:o,arrowElement:d,popperConfig:i}));e.show?b&&g(!1):e.transition||b||g(!0);const y=(...t)=>{g(!0),e.onExited&&e.onExited(...t)},w=e.show||l&&!b;if(yr(c,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!w)return null;let E=e.children(Object.assign({},x.attributes.popper,{style:x.styles.popper,ref:p}),{popper:x,placement:a,show:!!e.show,arrowProps:Object.assign({},x.attributes.arrow,{style:x.styles.arrow,ref:f})});if(l){const{onExit:t,onExiting:n,onEnter:r,onEntering:o,onEntered:a}=e;E=(0,m.jsx)(l,{in:e.show,appear:!0,onExit:t,onExiting:n,onExited:y,onEnter:r,onEntering:o,onEntered:a,children:E})}return v?$().createPortal(E,v):null}));Fs.displayName="Overlay";const Ks=Fs,Hs=Ye("popover-header"),_s=Ye("popover-body");function Ws(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}n.Component;const zs=n.forwardRef((({bsPrefix:e,placement:n,className:r,style:o,children:a,body:s,arrowProps:i,popper:l,show:c,...u},d)=>{const f=g(e,"popover"),p=x(),[v]=(null==n?void 0:n.split("-"))||[],h=Ws(v,p);return(0,m.jsxs)("div",{ref:d,role:"tooltip",style:o,"x-placement":v,className:t()(r,f,v&&`bs-popover-${h}`),...u,children:[(0,m.jsx)("div",{className:"popover-arrow",...i}),s?(0,m.jsx)(_s,{children:a}):a]})}));zs.defaultProps={placement:"right"};const Vs=Object.assign(zs,{Header:Hs,Body:_s,POPPER_OFFSET:[0,8]}),Us={transition:We,rootClose:!1,show:!1,placement:"top"},qs=n.forwardRef((({children:e,transition:r,popperConfig:o={},...a},s)=>{const i=(0,n.useRef)({}),[l,c]=function(){const e=(0,n.useRef)(null),t=g(void 0,"popover"),r=(0,n.useMemo)((()=>({name:"offset",options:{offset:()=>e.current&&Ka(e.current,t)?Vs.POPPER_OFFSET:[0,0]}})),[t]);return[e,[r]]}(),u=ee(s,l),d=!0===r?We:r||void 0;return(0,m.jsx)(Ks,{...a,ref:u,popperConfig:{...o,modifiers:c.concat(o.modifiers||[])},transition:d,children:(o,{arrowProps:a,popper:s,show:l})=>{var c,u;!function(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n(te(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(te(e)))}(o,a);const d=null==s?void 0:s.placement,f=Object.assign(i.current,{state:null==s?void 0:s.state,scheduleUpdate:null==s?void 0:s.update,placement:d,outOfBoundaries:(null==s||null==(c=s.state)||null==(u=c.modifiersData.hide)?void 0:u.isReferenceHidden)||!1});return"function"==typeof e?e({...o,placement:d,show:l,...!r&&l&&{className:"show"},popper:f,arrowProps:a}):n.cloneElement(e,{...o,placement:d,arrowProps:a,popper:f,className:t()(e.props.className,!r&&l&&"show"),style:{...e.props.style,...o.style}})}})}));qs.displayName="Overlay",qs.defaultProps=Us;const Gs=qs;function Xs(e,t,n){const[r]=t,o=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];a&&a===o||vr(o,a)||e(...t)}function Ys({trigger:e,overlay:t,children:r,popperConfig:o={},show:a,defaultShow:s=!1,onToggle:i,delay:l,placement:c,flip:u=c&&-1!==c.indexOf("auto"),...d}){const p=(0,n.useRef)(null),v=ee(p,r.ref),h=At(),b=(0,n.useRef)(""),[g,x]=f(a,s,i),y=function(e){return e&&"object"==typeof e?e:{show:e,hide:e}}(l),{onFocus:w,onBlur:E,onClick:N}="function"!=typeof r?n.Children.only(r).props:{},C=(0,n.useCallback)((()=>{h.clear(),b.current="show",y.show?h.set((()=>{"show"===b.current&&x(!0)}),y.show):x(!0)}),[y.show,x,h]),j=(0,n.useCallback)((()=>{h.clear(),b.current="hide",y.hide?h.set((()=>{"hide"===b.current&&x(!1)}),y.hide):x(!1)}),[y.hide,x,h]),O=(0,n.useCallback)(((...e)=>{C(),null==w||w(...e)}),[C,w]),P=(0,n.useCallback)(((...e)=>{j(),null==E||E(...e)}),[j,E]),k=(0,n.useCallback)(((...e)=>{x(!g),null==N||N(...e)}),[N,x,g]),R=(0,n.useCallback)(((...e)=>{Xs(C,e,"fromElement")}),[C]),T=(0,n.useCallback)(((...e)=>{Xs(j,e,"toElement")}),[j]),$=null==e?[]:[].concat(e),S={ref:e=>{v(te(e))}};return-1!==$.indexOf("click")&&(S.onClick=k),-1!==$.indexOf("focus")&&(S.onFocus=O,S.onBlur=P),-1!==$.indexOf("hover")&&(S.onMouseOver=R,S.onMouseOut=T),(0,m.jsxs)(m.Fragment,{children:["function"==typeof r?r(S):(0,n.cloneElement)(r,S),(0,m.jsx)(Gs,{...d,show:g,onHide:j,flip:u,placement:c,popperConfig:o,target:p.current,children:t})]})}Ys.defaultProps={defaultShow:!1,trigger:["hover","focus"]};const Zs=Ys,Js=n.forwardRef((({active:e,disabled:n,className:r,style:o,activeLabel:a,children:s,...i},l)=>{const c=e||n?"span":Ke;return(0,m.jsx)("li",{ref:l,style:o,className:t()(r,"page-item",{active:e,disabled:n}),children:(0,m.jsxs)(c,{className:"page-link",disabled:n,...i,children:[s,e&&a&&(0,m.jsx)("span",{className:"visually-hidden",children:a})]})})}));Js.defaultProps={active:!1,disabled:!1,activeLabel:"(current)"},Js.displayName="PageItem";const Qs=Js;function ei(e,t,n=e){function r({children:e,...r}){return(0,m.jsxs)(Js,{...r,children:[(0,m.jsx)("span",{"aria-hidden":"true",children:e||t}),(0,m.jsx)("span",{className:"visually-hidden",children:n})]})}return r.displayName=e,r}const ti=ei("First","«"),ni=ei("Prev","‹","Previous"),ri=ei("Ellipsis","…","More"),oi=ei("Next","›"),ai=ei("Last","»"),si=n.forwardRef((({bsPrefix:e,className:n,size:r,...o},a)=>{const s=g(e,"pagination");return(0,m.jsx)("ul",{ref:a,...o,className:t()(n,s,r&&`${s}-${r}`)})}));si.displayName="Pagination";const ii=Object.assign(si,{First:ti,Prev:ni,Ellipsis:ri,Item:Qs,Next:oi,Last:ai});function li({animation:e,bg:n,bsPrefix:r,size:o,...a}){r=g(r,"placeholder");const[{className:s,...i}]=qt(a);return{...i,className:t()(s,e?`${r}-${e}`:r,o&&`${r}-${o}`,n&&`bg-${n}`)}}const ci=n.forwardRef(((e,t)=>{const n=li(e);return(0,m.jsx)(dt,{...n,ref:t,disabled:!0,tabIndex:-1})}));ci.displayName="PlaceholderButton";const ui=ci,di=n.forwardRef((({as:e="span",...t},n)=>{const r=li(t);return(0,m.jsx)(e,{...r,ref:n})}));di.displayName="Placeholder";const fi=Object.assign(di,{Button:ui});function pi(e,t,n){const r=(e-t)/(n-t)*100;return Math.round(1e3*r)/1e3}function mi({min:e,now:n,max:r,label:o,visuallyHidden:a,striped:s,animated:i,className:l,style:c,variant:u,bsPrefix:d,...f},p){return(0,m.jsx)("div",{ref:p,...f,role:"progressbar",className:t()(l,`${d}-bar`,{[`bg-${u}`]:u,[`${d}-bar-animated`]:i,[`${d}-bar-striped`]:i||s}),style:{width:`${pi(n,e,r)}%`,...c},"aria-valuenow":n,"aria-valuemin":e,"aria-valuemax":r,children:a?(0,m.jsx)("span",{className:"visually-hidden",children:o}):o})}const vi=n.forwardRef((({isChild:e,...r},o)=>{if(r.bsPrefix=g(r.bsPrefix,"progress"),e)return mi(r,o);const{min:a,now:s,max:i,label:l,visuallyHidden:c,striped:u,animated:d,bsPrefix:f,variant:p,className:v,children:h,...b}=r;return(0,m.jsx)("div",{ref:o,...b,className:t()(v,f),children:h?Ht(h,(e=>(0,n.cloneElement)(e,{isChild:!0}))):mi({min:a,now:s,max:i,label:l,visuallyHidden:c,striped:u,animated:d,bsPrefix:f,variant:p},o)})}));vi.displayName="ProgressBar",vi.defaultProps={min:0,max:100,animated:!1,isChild:!1,visuallyHidden:!1,striped:!1};const hi=vi,bi=n.forwardRef((({bsPrefix:e,className:r,children:o,aspectRatio:a,style:s,...i},l)=>{e=g(e,"ratio");const c="number"==typeof a;return(0,m.jsx)("div",{ref:l,...i,style:{...s,...c&&{"--bs-aspect-ratio":(u=a,u<=0||u>100?"100%":u<1?100*u+"%":`${u}%`)}},className:t()(e,r,!c&&`${e}-${a}`),children:n.Children.only(o)});var u}));bi.defaultProps={aspectRatio:"1x1"};const gi=bi,xi=["xxl","xl","lg","md","sm","xs"],yi=n.forwardRef((({bsPrefix:e,className:n,as:r="div",...o},a)=>{const s=g(e,"row"),i=`${s}-cols`,l=[];return xi.forEach((e=>{const t=o[e];let n;delete o[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const r="xs"!==e?`-${e}`:"";null!=n&&l.push(`${i}${r}-${n}`)})),(0,m.jsx)(r,{ref:a,...o,className:t()(n,s,...l)})}));yi.displayName="Row";const wi=yi,Ei=n.forwardRef((({bsPrefix:e,variant:n,animation:r,size:o,as:a="div",className:s,...i},l)=>{const c=`${e=g(e,"spinner")}-${r}`;return(0,m.jsx)(a,{ref:l,...i,className:t()(s,c,o&&`${c}-${o}`,n&&`text-${n}`)})}));Ei.displayName="Spinner";const Ni=Ei,Ci={id:R().string,toggleLabel:R().string,href:R().string,target:R().string,onClick:R().func,title:R().node.isRequired,type:R().string,disabled:R().bool,align:yo,menuRole:R().string,renderMenuOnMount:R().bool,rootCloseEvent:R().string,bsPrefix:R().string,variant:R().string,size:R().string},ji=n.forwardRef((({id:e,bsPrefix:t,size:n,variant:r,title:o,type:a,toggleLabel:s,children:i,onClick:l,href:c,target:u,menuRole:d,renderMenuOnMount:f,rootCloseEvent:p,...v},h)=>(0,m.jsxs)(go,{ref:h,...v,as:pt,children:[(0,m.jsx)(dt,{size:n,variant:r,disabled:v.disabled,bsPrefix:t,href:c,target:u,onClick:l,type:a,children:o}),(0,m.jsx)(go.Toggle,{split:!0,id:e,size:n,variant:r,disabled:v.disabled,childBsPrefix:t,children:(0,m.jsx)("span",{className:"visually-hidden",children:s})}),(0,m.jsx)(go.Menu,{role:d,renderOnMount:f,rootCloseEvent:p,children:i})]})));ji.propTypes=Ci,ji.defaultProps={toggleLabel:"Toggle dropdown",type:"button"},ji.displayName="SplitButton";const Oi=ji,Pi=function(e){let t=(0,n.useContext)(Rr),o=(0,n.useMemo)((()=>({prefix:t===kr?0:++t.prefix,current:0})),[t]);return r().createElement(Rr.Provider,{value:o},e.children)},ki=["xxl","xl","lg","md","sm","xs"];function Ri(e){const t=[];return Object.entries(e).forEach((([e,n])=>{null!=n&&("object"==typeof n?ki.forEach((r=>{const o=n[r];if(null!=o){const n="xs"!==r?`-${r}`:"";t.push(`${e}${n}-${o}`)}})):t.push(`${e}-${n}`))})),t}const Ti=n.forwardRef((({as:e="div",bsPrefix:n,className:r,direction:o,gap:a,...s},i)=>(n=g(n,"horizontal"===o?"hstack":"vstack"),(0,m.jsx)(e,{...s,ref:i,className:t()(r,n,...Ri({gap:a}))}))));Ti.displayName="Stack";const $i=Ti,Si=function({children:e,in:t,mountOnEnter:r,unmountOnExit:o}){const a=(0,n.useRef)(t);return(0,n.useEffect)((()=>{t&&(a.current=!0)}),[t]),t?e:o||!a.current&&r?null:e},Mi=["active","eventKey","mountOnEnter","transition","unmountOnExit"],Di=["activeKey","getControlledId","getControllerId"],Ii=["as"];function Li(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ai(e){let{active:t,eventKey:r,mountOnEnter:o,transition:a,unmountOnExit:s}=e,i=Li(e,Mi);const l=(0,n.useContext)(va);if(!l)return[i,{eventKey:r,isActive:t,mountOnEnter:o,transition:a,unmountOnExit:s}];const{activeKey:c,getControlledId:u,getControllerId:d}=l,f=Li(l,Di),p=Ar(r);return[Object.assign({},i,{id:u(r),"aria-labelledby":d(r)}),{eventKey:r,isActive:null==t&&null!=p?Ar(c)===p:t,transition:a||f.transition,mountOnEnter:null!=o?o:f.mountOnEnter,unmountOnExit:null!=s?s:f.unmountOnExit}]}const Bi=n.forwardRef(((e,t)=>{let{as:n="div"}=e,r=Li(e,Ii);const[o,{isActive:a,onEnter:s,onEntering:i,onEntered:l,onExit:c,onExiting:u,onExited:d,mountOnEnter:f,unmountOnExit:p,transition:v=Si}]=Ai(r);return(0,m.jsx)(va.Provider,{value:null,children:(0,m.jsx)(Br.Provider,{value:null,children:(0,m.jsx)(v,{in:a,onEnter:s,onEntering:i,onEntered:l,onExit:c,onExiting:u,onExited:d,mountOnEnter:f,unmountOnExit:p,children:(0,m.jsx)(n,Object.assign({},o,{ref:t,role:"tabpanel",hidden:!a,"aria-hidden":!a}))})})})}));Bi.displayName="TabPanel";const Fi=e=>{const{id:t,generateChildId:r,onSelect:o,activeKey:a,defaultActiveKey:s,transition:i,mountOnEnter:l,unmountOnExit:c,children:u}=e,[d,p]=f(a,s,o),v=$r(t),h=(0,n.useMemo)((()=>r||((e,t)=>v?`${v}-${t}-${e}`:null)),[v,r]),b=(0,n.useMemo)((()=>({onSelect:p,activeKey:d,transition:i,mountOnEnter:l||!1,unmountOnExit:c||!1,getControlledId:e=>h(e,"tabpane"),getControllerId:e=>h(e,"tab")})),[p,d,i,l,c,h]);return(0,m.jsx)(va.Provider,{value:b,children:(0,m.jsx)(Br.Provider,{value:p||null,children:u})})};Fi.Panel=Bi;const Ki=Fi;function Hi(e){return"boolean"==typeof e?e?We:void 0:e}const _i=({transition:e,...t})=>(0,m.jsx)(Ki,{...t,transition:Hi(e)});_i.displayName="TabContainer";const Wi=_i,zi=Ye("tab-content"),Vi=n.forwardRef((({bsPrefix:e,transition:n,...r},o)=>{const[{className:a,as:s="div",...i},{isActive:l,onEnter:c,onEntering:u,onEntered:d,onExit:f,onExiting:p,onExited:v,mountOnEnter:h,unmountOnExit:b,transition:x=Si}]=Ai({...r,transition:Hi(n)}),y=g(e,"tab-pane");return(0,m.jsx)(va.Provider,{value:null,children:(0,m.jsx)(Br.Provider,{value:null,children:(0,m.jsx)(x,{in:l,onEnter:c,onEntering:u,onEntered:d,onExit:f,onExiting:p,onExited:v,mountOnEnter:h,unmountOnExit:b,children:(0,m.jsx)(s,{...i,ref:o,className:t()(a,y,l&&"active")})})})})}));Vi.displayName="TabPane";const Ui=Vi,qi={eventKey:R().oneOfType([R().string,R().number]),title:R().node.isRequired,disabled:R().bool,tabClassName:R().string},Gi=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};Gi.propTypes=qi;const Xi=Object.assign(Gi,{Container:Wi,Content:zi,Pane:Ui}),Yi=n.forwardRef((({bsPrefix:e,className:n,striped:r,bordered:o,borderless:a,hover:s,size:i,variant:l,responsive:c,...u},d)=>{const f=g(e,"table"),p=t()(n,f,l&&`${f}-${l}`,i&&`${f}-${i}`,r&&`${f}-striped`,o&&`${f}-bordered`,a&&`${f}-borderless`,s&&`${f}-hover`),v=(0,m.jsx)("table",{...u,className:p,ref:d});if(c){let e=`${f}-responsive`;return"string"==typeof c&&(e=`${e}-${c}`),(0,m.jsx)("div",{className:e,children:v})}return v}));function Zi(e){let t;return _t(e,(e=>{null==t&&(t=e.props.eventKey)})),t}function Ji(e){const{title:t,eventKey:n,disabled:r,tabClassName:o,id:a}=e.props;return null==t?null:(0,m.jsx)(us,{as:"li",role:"presentation",children:(0,m.jsx)(fs,{as:"button",type:"button",eventKey:n,disabled:r,id:a,className:o,children:t})})}const Qi=e=>{const{id:t,onSelect:n,transition:r,mountOnEnter:o,unmountOnExit:a,children:s,activeKey:i=Zi(s),...l}=p(e,{activeKey:"onSelect"});return(0,m.jsxs)(Ki,{id:t,activeKey:i,onSelect:n,transition:Hi(r),mountOnEnter:o,unmountOnExit:a,children:[(0,m.jsx)(ms,{...l,role:"tablist",as:"ul",children:Ht(s,Ji)}),(0,m.jsx)(zi,{children:Ht(s,(e=>{const t={...e.props};return delete t.title,delete t.disabled,delete t.tabClassName,(0,m.jsx)(Ui,{...t})}))})]})};Qi.defaultProps={variant:"tabs",mountOnEnter:!1,unmountOnExit:!1},Qi.displayName="Tabs";const el=Qi,tl={[I]:"showing",[A]:"showing show"},nl=n.forwardRef(((e,t)=>(0,m.jsx)(We,{...e,ref:t,transitionClasses:tl})));nl.displayName="ToastFade";const rl=nl,ol=n.createContext({onClose(){}}),al=n.forwardRef((({bsPrefix:e,closeLabel:r,closeVariant:o,closeButton:a,className:s,children:i,...l},c)=>{e=g(e,"toast-header");const u=(0,n.useContext)(ol),d=ke((e=>{null==u||null==u.onClose||u.onClose(e)}));return(0,m.jsxs)("div",{ref:c,...l,className:t()(e,s),children:[i,a&&(0,m.jsx)(Ue,{"aria-label":r,variant:o,onClick:d,"data-dismiss":"toast"})]})}));al.displayName="ToastHeader",al.defaultProps={closeLabel:"Close",closeButton:!0};const sl=al,il=Ye("toast-body"),ll=n.forwardRef((({bsPrefix:e,className:r,transition:o=rl,show:a=!0,animation:s=!0,delay:i=5e3,autohide:l=!1,onClose:c,bg:u,...d},f)=>{e=g(e,"toast");const p=(0,n.useRef)(i),v=(0,n.useRef)(c);(0,n.useEffect)((()=>{p.current=i,v.current=c}),[i,c]);const h=At(),b=!(!l||!a),x=(0,n.useCallback)((()=>{b&&(null==v.current||v.current())}),[b]);(0,n.useEffect)((()=>{h.set(x,p.current)}),[h,x]);const y=(0,n.useMemo)((()=>({onClose:c})),[c]),w=!(!o||!s),E=(0,m.jsx)("div",{...d,ref:f,className:t()(e,r,u&&`bg-${u}`,!w&&(a?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return(0,m.jsx)(ol.Provider,{value:y,children:w&&o?(0,m.jsx)(o,{in:a,unmountOnExit:!0,children:E}):E})}));ll.displayName="Toast";const cl=Object.assign(ll,{Body:il,Header:sl}),ul={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},dl=n.forwardRef((({bsPrefix:e,position:n,className:r,as:o="div",...a},s)=>(e=g(e,"toast-container"),(0,m.jsx)(o,{ref:s,...a,className:t()(e,n&&`position-absolute ${ul[n]}`,r)}))));dl.displayName="ToastContainer";const fl=dl,pl=()=>{},ml=n.forwardRef((({bsPrefix:e,name:n,className:r,checked:o,type:a,onChange:s,value:i,disabled:l,id:c,inputRef:u,...d},f)=>(e=g(e,"btn-check"),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("input",{className:e,name:n,type:a,value:i,ref:u,autoComplete:"off",checked:!!o,disabled:!!l,onChange:s||pl,id:c}),(0,m.jsx)(dt,{...d,ref:f,className:t()(r,l&&"disabled"),type:void 0,as:"label",htmlFor:c})]}))));ml.displayName="ToggleButton";const vl=ml,hl=n.forwardRef(((e,t)=>{const{children:r,type:o,name:a,value:s,onChange:i,...l}=p(e,{value:"onChange"}),u=()=>null==s?[]:[].concat(s);return"radio"!==o||a||c()(!1),(0,m.jsx)(pt,{...l,ref:t,children:Ht(r,(e=>{const t=u(),{value:r,onChange:s}=e.props;return n.cloneElement(e,{type:o,name:e.name||a,checked:-1!==t.indexOf(r),onChange:Z(s,(e=>((e,t)=>{if(!i)return;const n=u(),r=-1!==n.indexOf(e);"radio"!==o?i(r?n.filter((t=>t!==e)):[...n,e],t):!r&&i&&i(e,t)})(r,e)))})}))})}));hl.defaultProps={type:"radio",vertical:!1};const bl=Object.assign(hl,{Button:vl}),gl=n.forwardRef((({bsPrefix:e,placement:n,className:r,style:o,children:a,arrowProps:s,popper:i,show:l,...c},u)=>{e=g(e,"tooltip");const d=x(),[f]=(null==n?void 0:n.split("-"))||[],p=Ws(f,d);return(0,m.jsxs)("div",{ref:u,style:o,role:"tooltip","x-placement":f,className:t()(r,e,`bs-tooltip-${p}`),...c,children:[(0,m.jsx)("div",{className:"tooltip-arrow",...s}),(0,m.jsx)("div",{className:`${e}-inner`,children:a})]})}));gl.defaultProps={placement:"right"},gl.displayName="Tooltip";const xl=gl})(),a})()}));
package/esm/Overlay.js CHANGED
@@ -45,21 +45,22 @@ const Overlay = /*#__PURE__*/React.forwardRef(({
45
45
  transition: actualTransition,
46
46
  children: (overlayProps, {
47
47
  arrowProps,
48
- placement,
49
48
  popper: popperObj,
50
49
  show
51
50
  }) => {
52
51
  var _popperObj$state, _popperObj$state$modi;
53
52
 
54
- wrapRefs(overlayProps, arrowProps);
53
+ wrapRefs(overlayProps, arrowProps); // Need to get placement from popper object, handling case when overlay is flipped using 'flip' prop
54
+
55
+ const updatedPlacement = popperObj == null ? void 0 : popperObj.placement;
55
56
  const popper = Object.assign(popperRef.current, {
56
57
  state: popperObj == null ? void 0 : popperObj.state,
57
58
  scheduleUpdate: popperObj == null ? void 0 : popperObj.update,
58
- placement,
59
+ placement: updatedPlacement,
59
60
  outOfBoundaries: (popperObj == null ? void 0 : (_popperObj$state = popperObj.state) == null ? void 0 : (_popperObj$state$modi = _popperObj$state.modifiersData.hide) == null ? void 0 : _popperObj$state$modi.isReferenceHidden) || false
60
61
  });
61
62
  if (typeof overlay === 'function') return overlay({ ...overlayProps,
62
- placement,
63
+ placement: updatedPlacement,
63
64
  show,
64
65
  ...(!transition && show && {
65
66
  className: 'show'
@@ -68,7 +69,7 @@ const Overlay = /*#__PURE__*/React.forwardRef(({
68
69
  arrowProps
69
70
  });
70
71
  return /*#__PURE__*/React.cloneElement(overlay, { ...overlayProps,
71
- placement,
72
+ placement: updatedPlacement,
72
73
  arrowProps,
73
74
  popper,
74
75
  className: classNames(overlay.props.className, !transition && show && 'show'),
@@ -4,7 +4,7 @@ export interface ThemeContextValue {
4
4
  dir?: string;
5
5
  }
6
6
  export interface ThemeProviderProps extends Partial<ThemeContextValue> {
7
- children: React.ElementType;
7
+ children: React.ReactNode;
8
8
  }
9
9
  declare const Consumer: React.Consumer<ThemeContextValue>;
10
10
  declare function ThemeProvider({ prefixes, dir, children }: ThemeProviderProps): JSX.Element;
@@ -13,6 +13,8 @@ declare namespace ThemeProvider {
13
13
  }
14
14
  export declare function useBootstrapPrefix(prefix: string | undefined, defaultPrefix: string): string;
15
15
  export declare function useIsRTL(): boolean;
16
- declare function createBootstrapComponent(Component: any, opts: any): React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
16
+ declare function createBootstrapComponent(Component: any, opts: any): React.ForwardRefExoticComponent<{
17
+ bsPrefix?: string | undefined;
18
+ } & React.RefAttributes<any>>;
17
19
  export { createBootstrapComponent, Consumer as ThemeConsumer };
18
20
  export default ThemeProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-bootstrap",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Bootstrap 5 components built with React",
5
5
  "keywords": [
6
6
  "react",