idea-react 3.0.0-beta.1 → 3.0.0-beta.2

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.
Files changed (87) hide show
  1. package/AGENTS.md +9 -1
  2. package/ReadMe.md +34 -6
  3. package/dist/index.d.mts +270 -186
  4. package/dist/index.d.ts +270 -186
  5. package/dist/index.js +16 -16
  6. package/dist/index.mjs +15 -15
  7. package/dist/style.css +0 -3
  8. package/package.json +1 -1
  9. package/source/Accordion.tsx +61 -37
  10. package/source/Alert.tsx +30 -15
  11. package/source/Avatar.tsx +55 -50
  12. package/source/Badge.tsx +16 -16
  13. package/source/Breadcrumb.tsx +36 -22
  14. package/source/Button.tsx +63 -69
  15. package/source/ButtonGroup.tsx +21 -25
  16. package/source/Card.tsx +67 -59
  17. package/source/Carousel/index.tsx +22 -21
  18. package/source/CloseButton.tsx +20 -15
  19. package/source/Collapse.tsx +74 -19
  20. package/source/Drawer.tsx +40 -17
  21. package/source/Extension/ClickBoundary.tsx +24 -5
  22. package/source/Extension/CodeBlock.tsx +64 -0
  23. package/source/Extension/Countdown.tsx +21 -9
  24. package/source/Extension/Editor.tsx +53 -18
  25. package/source/Extension/EditorHTML.tsx +7 -3
  26. package/source/Extension/HorizontalMarquee/index.tsx +69 -45
  27. package/source/Extension/Icon.tsx +15 -14
  28. package/source/Extension/Loading.tsx +20 -17
  29. package/source/Extension/MonthCalendar.tsx +26 -10
  30. package/source/Extension/OverlayBox.tsx +28 -15
  31. package/source/Extension/PageNav.tsx +16 -7
  32. package/source/Extension/ScrollNav/Scroller.tsx +21 -5
  33. package/source/Extension/ScrollNav/index.tsx +32 -7
  34. package/source/Extension/Select.tsx +12 -11
  35. package/source/Extension/SpinnerButton.tsx +19 -24
  36. package/source/Extension/TableSpinner.tsx +10 -14
  37. package/source/Extension/TextTruncate/index.tsx +17 -13
  38. package/source/Extension/Time.tsx +7 -5
  39. package/source/Extension/TimeDistance.tsx +22 -18
  40. package/source/Extension/Timeline/index.tsx +37 -34
  41. package/source/Extension/TypeEcho/Content.tsx +79 -14
  42. package/source/Extension/TypeEcho/index.tsx +13 -5
  43. package/source/Extension/UserRank/Address.tsx +17 -15
  44. package/source/Extension/UserRank/index.tsx +79 -84
  45. package/source/Extension/VerticalMarquee/index.tsx +14 -16
  46. package/source/Extension/ZodiacBar.tsx +40 -32
  47. package/source/Form/Adorn.tsx +30 -32
  48. package/source/Form/Checkbox.tsx +9 -5
  49. package/source/Form/ChipInput.tsx +9 -5
  50. package/source/Form/Chips.tsx +41 -39
  51. package/source/Form/Combobox.tsx +80 -61
  52. package/source/Form/Control.tsx +53 -58
  53. package/source/Form/DatePicker.tsx +74 -65
  54. package/source/Form/Feedback.tsx +18 -19
  55. package/source/Form/FloatingLabel.tsx +16 -19
  56. package/source/Form/InputGroup.tsx +27 -26
  57. package/source/Form/OTP.tsx +30 -12
  58. package/source/Form/Primitives.tsx +47 -39
  59. package/source/Form/Radio.tsx +25 -22
  60. package/source/Form/Range.tsx +30 -12
  61. package/source/Form/Switch.tsx +43 -40
  62. package/source/Grid.tsx +67 -59
  63. package/source/Image.tsx +10 -6
  64. package/source/ListGroup.tsx +57 -69
  65. package/source/Menu.tsx +128 -66
  66. package/source/NativeDialog/index.tsx +51 -29
  67. package/source/Nav.tsx +46 -46
  68. package/source/NavOverflow/index.tsx +26 -10
  69. package/source/Navbar.tsx +60 -55
  70. package/source/Pagination.tsx +63 -69
  71. package/source/Placeholder.tsx +47 -43
  72. package/source/Polymorphic.ts +57 -0
  73. package/source/Popover.tsx +34 -31
  74. package/source/Progress/index.tsx +59 -54
  75. package/source/ScrollSpy/index.tsx +48 -33
  76. package/source/Spinner.tsx +27 -23
  77. package/source/Stack.tsx +25 -0
  78. package/source/Stepper.tsx +46 -40
  79. package/source/Tab.tsx +40 -27
  80. package/source/Table.tsx +53 -42
  81. package/source/Toast.tsx +62 -47
  82. package/source/ToggleButton.tsx +40 -37
  83. package/source/Toggler.tsx +17 -8
  84. package/source/Tooltip.tsx +31 -29
  85. package/source/index.ts +2 -0
  86. package/source/Extension/CodeBlock/index.tsx +0 -58
  87. package/source/Extension/CodeBlock/style.module.css +0 -3
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-5iZMYShA.js");let t=require("@swc/helpers/_/_apply_decs_2203_r"),n=require("@swc/helpers/_/_class_private_field_get"),r=require("@swc/helpers/_/_class_private_field_init"),i=require("@swc/helpers/_/_class_private_field_set"),a=require("@swc/helpers/_/_define_property"),o=require("@swc/helpers/_/_identity"),s=require("@swc/helpers/_/_object_spread"),c=require("@swc/helpers/_/_object_spread_props"),l=require("@swc/helpers/_/_object_without_properties"),u=require("react/jsx-runtime"),d=require("classnames");d=e.n(d);let f=require("mobx"),p=require("mobx-react"),m=require("react");m=e.n(m);let h=require("@shikijs/langs/javascript");h=e.n(h);let g=require("@shikijs/langs/jsx");g=e.n(g);let _=require("@shikijs/langs/tsx");_=e.n(_);let v=require("@shikijs/langs/typescript");v=e.n(v);let y=require("@shikijs/themes/github-dark");y=e.n(y);let b=require("@shikijs/themes/github-light");b=e.n(b);let x=require("shiki/core"),S=require("shiki/engine/javascript"),C=require("mobx-react-helper"),w=require("web-utility"),T=require("iterable-observer"),E=require("@swc/helpers/_/_async_to_generator"),D=require("react-editor-js"),O=require("editorjs-html");O=e.n(O);let k=require("react-live"),A=require("react-dom"),j=require("html2canvas");j=e.n(j);let M=require("react-dom/server");const N=e=>typeof e.href==`string`,ee=e=>e.preventDefault(),P=e=>{let{variant:t,theme:n,size:r,icon:i,styled:a,disabled:o,active:f,className:p}=e,m=(0,l._)(e,[`variant`,`theme`,`size`,`icon`,`styled`,`disabled`,`active`,`className`]),h=(0,d.default)(t===!1?void 0:t?`btn-${t}`:i?void 0:`btn`,n&&`theme-${n}`,r&&`btn-${r}`,{"btn-icon":i,"btn-styled":a,disabled:o,active:f},p);return N(m)?/*#__PURE__*/ (0,u.jsx)(`a`,(0,c._)((0,s._)({},m),{className:h,href:o?void 0:m.href,"aria-disabled":o||void 0,"aria-pressed":m.role===`button`?f==null?m[`aria-pressed`]:f:m[`aria-pressed`],tabIndex:o?-1:m.tabIndex,onClick:o?ee:m.onClick})):/*#__PURE__*/ (0,u.jsx)(`button`,(0,c._)((0,s._)({},m),{type:m.type||`button`,className:h,disabled:o,"aria-pressed":f==null?m[`aria-pressed`]:f}))},te=e=>{let{variant:t,theme:n,size:r,icon:i,styled:a,active:o,className:f,type:p=`button`}=e,m=(0,l._)(e,[`variant`,`theme`,`size`,`icon`,`styled`,`active`,`className`,`type`]);return/*#__PURE__*/ (0,u.jsx)(`input`,(0,c._)((0,s._)({},m),{type:p,className:(0,d.default)(t===!1?void 0:t?`btn-${t}`:`btn`,n&&`theme-${n}`,r&&`btn-${r}`,{"btn-icon":i,"btn-styled":a,active:o},f)}))};P.displayName=`Button`,te.displayName=`ButtonInput`;const F=e=>{let{className:t,style:n,name:r,size:i}=e,a=(0,l._)(e,[`className`,`style`,`name`,`size`]);return/*#__PURE__*/ (0,u.jsx)(`span`,(0,s._)({className:(0,d.default)(`bi-${r}`,t),style:(0,s._)({fontSize:i&&`${i}rem`},n)},a))};F.displayName=`Icon`;let ne;var I,L,re,ie,ae,oe,se;const ce=e=>{let{theme:t,size:n,flush:r,gap:i,className:a}=e,o=(0,l._)(e,[`theme`,`size`,`flush`,`gap`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},o),{className:(0,d.default)(`accordion`,t&&`theme-${t}`,n&&`accordion-${n}`,{"accordion-flush":r,"accordion-gap":i},a)}))},le=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`details`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`accordion-item`,t)}))},ue=e=>{let{icon:t=`chevron-down`,className:n,children:r}=e,i=(0,l._)(e,[`icon`,`className`,`children`]);return/*#__PURE__*/ (0,u.jsxs)(`summary`,(0,c._)((0,s._)({},i),{className:(0,d.default)(`accordion-header`,n),children:[r,t&&/*#__PURE__*/ (0,u.jsx)(F,{name:t,className:`accordion-icon`,"aria-hidden":`true`})]}))},de=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`accordion-body`,t)}))};ce.displayName=`Accordion`,le.displayName=`AccordionItem`,ue.displayName=`AccordionHeader`,de.displayName=`AccordionBody`;let fe;new(ne=(I=/*#__PURE__*/ new WeakMap,L=class extends (ae=m.Component){get expanded(){return(0,n._)(this,I)}set expanded(e){(0,i._)(this,I,e)}get items(){var e,t;return[...(e=(t=document.querySelector(this.props.target))==null?void 0:t.querySelectorAll(`:scope > .accordion-item`))==null?[]:e]}componentDidMount(){document.addEventListener(`toggle`,this.refresh,!0),this.refresh()}componentDidUpdate(e){e.target!==this.props.target&&(this.restoreNames(),this.refresh())}componentWillUnmount(){document.removeEventListener(`toggle`,this.refresh,!0),this.restoreNames()}render(){let e=this.props,{target:t}=e,n=(0,l._)(e,[`target`]);return/*#__PURE__*/ (0,u.jsx)(P,(0,c._)((0,s._)({},n),{"aria-expanded":this.expanded,onClick:this.handleClick}))}constructor(...e){super(...e),(0,r._)(this,I,{writable:!0,value:(se(this),oe(this,!1))}),(0,a._)(this,`names`,/* @__PURE__ */ new Map),(0,a._)(this,`restoreNames`,()=>{for(let[e,t]of this.names)e.setAttribute(`name`,t);this.names.clear()}),(0,a._)(this,`refresh`,(0,f.action)(()=>{let{items:e}=this;this.expanded=!!e.length&&e.every(({open:e})=>e)})),(0,a._)(this,`handleClick`,e=>{var t,n;if((t=(n=this.props).onClick)==null||t.call(n,e),e.defaultPrevented)return;let{items:r,expanded:i}=this;for(let e of r){let t=e.getAttribute(`name`);!i&&t&&(this.names.set(e,t),e.removeAttribute(`name`)),e.open=!i}i&&this.restoreNames(),this.refresh()})}},{e:[oe,se],c:[fe,ie]}=(0,t._)(L,[[f.observable,1,`expanded`]],[p.observer],ae),L),re=class extends o._{constructor(){super(fe),(0,a._)(this,`displayName`,`AccordionToggle`),ie()}},(0,a._)(re,ne,void 0),re);const R=e=>{let{dismiss:t,className:n,type:r=`button`,"aria-label":i=`Close`}=e,a=(0,l._)(e,[`dismiss`,`className`,`type`,`aria-label`]);return/*#__PURE__*/ (0,u.jsx)(`button`,(0,c._)((0,s._)({},a),{type:r,className:(0,d.default)(`btn-close`,n),"data-bs-dismiss":t,"aria-label":i}))};R.displayName=`CloseButton`;let pe;var z,B,me,he,ge,_e,ve,ye,be;let V;new(pe=(z=/*#__PURE__*/ new WeakMap,B=/*#__PURE__*/ new WeakMap,me=class extends (_e=m.Component){get hiding(){return(0,n._)(this,z)}set hiding(e){(0,i._)(this,z,e)}get closed(){return(0,n._)(this,B)}set closed(e){(0,i._)(this,B,e)}componentDidUpdate(){if(this.closed&&!this.notified){var e,t;this.notified=!0,(e=(t=this.props).onClosed)==null||e.call(t)}}componentWillUnmount(){clearTimeout(this.timer)}render(){var e;let t=this.props,{theme:n,dismissible:r,instant:i,closeLabel:a=`Close`,onClose:o,onClosed:f,className:p,children:m}=t,h=(0,l._)(t,[`theme`,`dismissible`,`instant`,`closeLabel`,`onClose`,`onClosed`,`className`,`children`]);return this.closed?null:/*#__PURE__*/ (0,u.jsxs)(`div`,(0,c._)((0,s._)({},h),{ref:this.root,role:(e=h.role)==null?`alert`:e,className:(0,d.default)(`alert`,n&&`theme-${n}`,{"alert-instant":i,hiding:this.hiding},p),onTransitionEnd:this.handleTransitionEnd,children:[m,r&&/*#__PURE__*/ (0,u.jsx)(R,{className:`ms-auto`,"aria-label":a,onClick:this.handleClose})]}))}constructor(...e){super(...e),(0,r._)(this,z,{writable:!0,value:(be(this),ve(this,!1))}),(0,r._)(this,B,{writable:!0,value:ye(this,!1)}),(0,a._)(this,`root`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`timer`,void 0),(0,a._)(this,`notified`,!1),(0,a._)(this,`finishClose`,(0,f.action)(()=>{this.closed||(clearTimeout(this.timer),this.closed=!0)})),(0,a._)(this,`close`,(0,f.action)(()=>{var e,t;if(this.hiding||this.closed)return;if((e=(t=this.props).onClose)==null||e.call(t),this.props.instant)return this.finishClose();this.hiding=!0;let n=getComputedStyle(this.root.current),r=n.transitionDuration.split(`,`).map(V.milliseconds),i=n.transitionDelay.split(`,`).map(V.milliseconds),a=Math.max(0,...r.map((e,t)=>e+(i[t%i.length]||0)));this.timer=setTimeout(this.finishClose,a)})),(0,a._)(this,`handleClose`,e=>{e.defaultPrevented||this.close()}),(0,a._)(this,`handleTransitionEnd`,e=>{var t,n;(t=(n=this.props).onTransitionEnd)==null||t.call(n,e),e.target===e.currentTarget&&this.hiding&&this.finishClose()})}},{e:[ve,ye,be],c:[V,ge]}=(0,t._)(me,[[f.observable,1,`hiding`],[f.observable,1,`closed`]],[p.observer],_e),me),he=class extends o._{constructor(){super(V),(0,a._)(this,`displayName`,`Alert`),(0,a._)(this,`milliseconds`,e=>(parseFloat(e)||0)*(e.trim().endsWith(`ms`)?1:1e3)),ge()}},(0,a._)(he,pe,void 0),he);const xe=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`a`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`alert-link`,t)}))},Se=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`h4`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`alert-heading`,t)}))};xe.displayName=`AlertLink`,Se.displayName=`AlertHeading`;function Ce(e){return t=>{t&&new IntersectionObserver(([{isIntersecting:t,target:n}],r)=>{if(!t)return;let i=[`animate__animated`,`animate__${e}`];n.classList.add(...i),n.addEventListener(`animationend`,()=>n.classList.remove(...i),{once:!0}),r.disconnect()}).observe(t)}}const we=e=>{let{className:t,style:n,size:r,theme:i,subtle:a,src:o,alt:f,status:p,statusLabel:m=p,children:h}=e,g=(0,l._)(e,[`className`,`style`,`size`,`theme`,`subtle`,`src`,`alt`,`status`,`statusLabel`,`children`]);return/*#__PURE__*/ (0,u.jsxs)(`span`,(0,c._)((0,s._)({className:(0,d.default)(`avatar`,typeof r==`string`&&`avatar-${r}`,i&&`theme-${i}`,a&&`avatar-subtle`,t),style:typeof r==`number`?(0,s._)({"--bs-avatar-size":`${r}rem`},n):n},g),{children:[o?/*#__PURE__*/ (0,u.jsx)(`img`,{className:`avatar-img`,src:o,alt:f}):h,p&&/*#__PURE__*/ (0,u.jsx)(`span`,{className:`avatar-status status-${p}`,role:`img`,"aria-label":m})]}))};we.displayName=`Avatar`;const Te=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`img`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`avatar-img`,t)}))};Te.displayName=`AvatarImage`;const Ee=e=>{let{className:t,size:n,children:r}=e,i=(0,l._)(e,[`className`,`size`,`children`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({className:(0,d.default)(`avatar-stack`,n&&`avatar-stack-${n}`,t)},i),{children:r}))};Ee.displayName=`AvatarStack`;const De=e=>typeof e.href==`string`,Oe=e=>{let{variant:t=`solid`,theme:n,pill:r,className:i}=e,a=(0,l._)(e,[`variant`,`theme`,`pill`,`className`]),o=(0,d.default)(`badge`,t!==`solid`&&`badge-${t}`,n&&`theme-${n}`,{"rounded-pill":r},i);return De(a)?/*#__PURE__*/ (0,u.jsx)(`a`,(0,c._)((0,s._)({},a),{className:o})):/*#__PURE__*/ (0,u.jsx)(`span`,(0,c._)((0,s._)({},a),{className:o}))};Oe.displayName=`Badge`;const ke=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`ol`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`breadcrumb`,t)}))},Ae=e=>/*#__PURE__*/ (0,u.jsx)(`li`,(0,c._)((0,s._)({},e),{className:(0,d.default)(`breadcrumb-item`,e.className)})),je=e=>{let{active:t,className:n,"aria-current":r=t?`page`:void 0}=e,i=(0,l._)(e,[`active`,`className`,`aria-current`]);return/*#__PURE__*/ (0,u.jsx)(`a`,(0,c._)((0,s._)({},i),{className:(0,d.default)(`breadcrumb-link`,{active:t},n),"aria-current":r}))},Me=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`li`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`breadcrumb-divider`,t),"aria-hidden":`true`}))};ke.displayName=`Breadcrumb`,Ae.displayName=`BreadcrumbItem`,je.displayName=`BreadcrumbLink`,Me.displayName=`BreadcrumbDivider`;const Ne=e=>{let{vertical:t,size:n,divider:r,role:i=`group`,className:a}=e,o=(0,l._)(e,[`vertical`,`size`,`divider`,`role`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({role:i},o),{className:(0,d.default)(t?`btn-group-vertical`:`btn-group`,n&&`btn-group-${n}`,r&&`btn-group-divider`,a)}))};Ne.displayName=`ButtonGroup`;const Pe=e=>{let{className:t,role:n=`toolbar`}=e,r=(0,l._)(e,[`className`,`role`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({role:n},r),{className:(0,d.default)(`btn-toolbar`,t)}))};Pe.displayName=`ButtonToolbar`;const Fe=e=>{let{row:t,body:n,theme:r,subtle:i,translucent:a,className:o}=e,f=(0,l._)(e,[`row`,`body`,`theme`,`subtle`,`translucent`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},f),{className:(0,d.default)(`card`,{"card-row":t,"card-body":n,"card-subtle":i,"card-translucent":a},r&&`theme-${r}`,o)}))},Ie=e=>{let{placement:t,className:n}=e,r=(0,l._)(e,[`placement`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`img`,(0,c._)((0,s._)({},r),{className:(0,d.default)(t?`card-img-${t}`:`card-img`,n)}))},Le=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`p`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`card-subtitle`,t)}))},Re=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`card-group`,t)}))},ze=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`card-img-overlay`,t)}))},Be=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`card-header`,t)}))},Ve=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`card-body`,t)}))},He=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`card-footer`,t)}))},Ue=e=>{let{as:t=`h4`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`card-title`,n)}))},We=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`p`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`card-text`,t)}))};Fe.displayName=`Card`,Ie.displayName=`CardImage`,Le.displayName=`CardSubtitle`,Re.displayName=`CardGroup`,ze.displayName=`CardImageOverlay`,Be.displayName=`CardHeader`,Ve.displayName=`CardBody`,He.displayName=`CardFooter`,Ue.displayName=`CardTitle`,We.displayName=`CardText`;var Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et=/*#__PURE__*/ new WeakMap,tt=/*#__PURE__*/ new WeakMap,nt=class{get activeIndex(){return(0,n._)(this,et)}set activeIndex(e){(0,i._)(this,et,e)}get playing(){return(0,n._)(this,tt)}set playing(e){(0,i._)(this,tt,e)}constructor(e,t,n){(0,a._)(this,`count`,void 0),(0,a._)(this,`ends`,void 0),(0,a._)(this,`interval`,void 0),(0,r._)(this,et,{writable:!0,value:void 0}),(0,r._)(this,tt,{writable:!0,value:void 0}),(0,a._)(this,`timer`,void 0),(0,a._)(this,`hovering`,void 0),(0,a._)(this,`visible`,void 0),(0,a._)(this,`onChange`,void 0),(0,a._)(this,`onNavigate`,void 0),(0,a._)(this,`setIndex`,void 0),(0,a._)(this,`next`,void 0),(0,a._)(this,`previous`,void 0),(0,a._)(this,`play`,void 0),(0,a._)(this,`pause`,void 0),(0,a._)(this,`toggle`,void 0),(0,a._)(this,`setHovering`,void 0),(0,a._)(this,`setVisible`,void 0),(0,a._)(this,`update`,void 0),(0,a._)(this,`dispose`,void 0),(0,a._)(this,`schedule`,void 0),(0,a._)(this,`clearTimer`,void 0),this.count=e,this.ends=t,this.interval=n,(0,i._)(this,et,($e(this),Ge(this,0))),(0,i._)(this,tt,Ke(this,!1)),this.hovering=!1,this.visible=!0,this.setIndex=qe(this,(e,t=!1,n,r=!1)=>{let i=Math.max(0,Math.min(e,this.count-1));if(i!==this.activeIndex){var a,o,s,c;let e=this.activeIndex;this.activeIndex=i,(a=(o=this).onChange)==null||a.call(o,i),r||(s=(c=this).onNavigate)==null||s.call(c,i,e,n)}t?this.pause():this.schedule()}),this.next=Je(this,(e=!1)=>{this.activeIndex===this.count-1&&this.ends===`stop`?e||this.pause():this.setIndex(this.activeIndex===this.count-1?0:this.activeIndex+1,e,1)}),this.previous=Ye(this,(e=!1)=>{this.activeIndex===0&&this.ends===`stop`?e||this.pause():this.setIndex(this.activeIndex===0?this.count-1:this.activeIndex-1,e,-1)}),this.play=Xe(this,()=>{this.playing=!0,this.schedule()}),this.pause=Ze(this,()=>{this.playing=!1,this.clearTimer()}),this.toggle=Qe(this,()=>this.playing?this.pause():this.play()),this.setHovering=e=>{this.hovering=e,this.schedule()},this.setVisible=e=>{this.visible=e,this.schedule()},this.update=(e,t,n)=>{this.count=e,this.ends=t,this.interval=n,this.activeIndex>=e?this.setIndex(Math.max(0,e-1)):this.schedule()},this.dispose=()=>this.clearTimer(),this.schedule=()=>{this.clearTimer(),!this.playing||this.hovering||!this.visible||this.count<2||(this.timer=setTimeout(this.next,Math.max(0,this.interval(this.activeIndex))))},this.clearTimer=()=>{this.timer&&clearTimeout(this.timer),this.timer=void 0}}};({e:[Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e]}=(0,t._)(nt,[[f.observable,1,`activeIndex`],[f.observable,1,`playing`],[f.action,0,`setIndex`],[f.action,0,`next`],[f.action,0,`previous`],[f.action,0,`play`],[f.action,0,`pause`],[f.action,0,`toggle`]],[]));var rt=class{get looping(){return!!this.clone||this.frame!==void 0}constructor(){(0,a._)(this,`frame`,void 0),(0,a._)(this,`clone`,void 0),(0,a._)(this,`track`,void 0),(0,a._)(this,`snap`,``),(0,a._)(this,`navigate`,(e,t,n)=>{this.dispose(),!n||e.scrollLeft===t?e.scrollTo({left:t,behavior:`instant`}):(this.track=e,this.snap=e.style.scrollSnapType,e.style.scrollSnapType=`none`,this.animate(e,e.scrollLeft,t))}),(0,a._)(this,`loop`,(e,t,n,r)=>{this.dispose(),this.track=e,this.snap=e.style.scrollSnapType;let i=n.cloneNode(!0);i.removeAttribute(`id`);for(let e of i.querySelectorAll(`[id]`))e.removeAttribute(`id`);i.setAttribute(`aria-hidden`,`true`),i.inert=!0,i.dataset.carouselClone=`true`,i.classList.remove(`active`),this.clone=i,e.style.scrollSnapType=`none`,r?e.append(i):e.prepend(i);let a=t.offsetLeft,o=i.offsetLeft;e.scrollTo({left:a,behavior:`instant`}),this.animate(e,a,o,()=>{this.dispose(),e.scrollTo({left:n.offsetLeft,behavior:`instant`})})}),(0,a._)(this,`animate`,(e,t,n,r=this.dispose)=>{let i=window.performance.now(),a=o=>{let s=Math.min(1,(o-i)/400),c=1-Math.pow(1-s,3);e.scrollTo({left:t+(n-t)*c,behavior:`instant`}),s<1?this.frame=window.requestAnimationFrame(a):r()};this.frame=window.requestAnimationFrame(a)}),(0,a._)(this,`dispose`,()=>{var e;this.frame!==void 0&&window.cancelAnimationFrame(this.frame),this.frame=void 0,(e=this.clone)==null||e.remove(),this.clone=void 0,this.track&&(this.track.style.scrollSnapType=this.snap),this.track=void 0})}};let it;var at,ot,st,ct;const lt=e=>{let{interval:t,active:n,className:r,children:i}=e,a=(0,l._)(e,[`interval`,`active`,`className`,`children`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},a),{className:(0,d.default)(`carousel-item`,{active:n},r),"data-bs-interval":t,children:i}))};lt.displayName=`CarouselSlide`;let ut;new(it=(at=class extends (ct=m.Component){componentDidMount(){var e;this.updateStore(),this.props.autoplay&&this.store.play(),document.addEventListener(`visibilitychange`,this.handleVisibilityChange),(e=this.track.current)==null||e.addEventListener(`scroll`,this.handleScroll,{passive:!0})}componentDidUpdate(){this.updateStore()}componentWillUnmount(){var e;this.store.dispose(),this.scroller.dispose(),document.removeEventListener(`visibilitychange`,this.handleVisibilityChange),(e=this.track.current)==null||e.removeEventListener(`scroll`,this.handleScroll)}render(){var e,t;let n=this.getSlides(),r=this.props,{autoplay:i,center:a,children:o,className:f,controls:p,controlsPlacement:m=`overlay`,dark:h,ends:g,fade:_,fade:v,indicators:y,interval:b,items:x,itemsGap:S,itemsPeek:C,keyboard:w,onChange:T,onClick:E,pause:D,playPause:O,style:k}=r,A=(0,l._)(r,[`autoplay`,`center`,`children`,`className`,`controls`,`controlsPlacement`,`dark`,`ends`,`fade`,`fade`,`indicators`,`interval`,`items`,`itemsGap`,`itemsPeek`,`keyboard`,`onChange`,`onClick`,`pause`,`playPause`,`style`]),j=m===`overlay`,M=(0,s._)({},k,x&&{"--bs-carousel-items":x},S!==void 0&&{"--bs-carousel-items-gap":S},C!==void 0&&{"--bs-carousel-items-peek":C}),N=/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`d-flex justify-content-between align-items-center gap-2`,children:[this.renderIndicators(),/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`d-flex align-items-center gap-2`,children:[this.renderPlayPause(),this.renderControls()]})]});return/*#__PURE__*/ (0,u.jsxs)(`div`,(0,c._)((0,s._)({},A),{ref:this.root,className:(0,d.default)(`carousel`,{"carousel-fade":v,"carousel-dark":h,"carousel-center":a},f),style:M,role:`region`,"aria-label":(e=this.props[`aria-label`])==null?`Carousel`:e,"aria-roledescription":`carousel`,onClick:this.handleClick,onKeyDown:this.handleKeyDown,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocusCapture:this.handleFocusCapture,onBlurCapture:this.handleBlurCapture,children:[m===`top`&&N,/*#__PURE__*/ (0,u.jsx)(`div`,{ref:this.track,className:`carousel-inner`,tabIndex:0,"aria-label":(t=this.props[`aria-label`])==null?`Carousel slides`:t,onScroll:this.handleScroll,children:n.map(this.renderSlide)}),j&&this.renderControls(),m===`bottom`&&N,j&&(this.props.playPause||this.props.autoplay)&&this.renderPlayPause(),j&&this.renderIndicators()]}))}constructor(...e){super(...e),(0,a._)(this,`root`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`track`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`store`,new nt(0,`loop`,()=>5e3)),(0,a._)(this,`scroller`,new rt),(0,a._)(this,`getSlides`,()=>m.Children.toArray(this.props.children)),(0,a._)(this,`getSlideInterval`,e=>{var t;let n=this.getSlides()[e],r=/*#__PURE__*/ (0,m.isValidElement)(n)?n.props.interval:void 0;return(t=r==null?this.props.interval:r)==null?5e3:t}),(0,a._)(this,`updateStore`,()=>{var e;let t=this.getSlides();this.store.onChange=this.props.onChange,this.store.onNavigate=this.scrollToActive,this.store.update(t.length,(e=this.props.ends)==null?`loop`:e,this.getSlideInterval)}),(0,a._)(this,`handleVisibilityChange`,()=>this.store.setVisible(!document.hidden)),(0,a._)(this,`handleMouseEnter`,()=>{this.props.pause!==!1&&this.store.setHovering(!0)}),(0,a._)(this,`handleMouseLeave`,()=>this.store.setHovering(!1)),(0,a._)(this,`handleFocusCapture`,()=>{this.props.pause!==!1&&this.store.setHovering(!0)}),(0,a._)(this,`handleBlurCapture`,({currentTarget:e,relatedTarget:t})=>{t instanceof Node&&e.contains(t)||this.store.setHovering(!1)}),(0,a._)(this,`handleScroll`,()=>{let e=this.track.current;if(!e||this.scroller.looping)return;let t=[...e.children],n=t.reduce((n,r,i)=>{var a;return Math.abs(r.offsetLeft-e.scrollLeft)<Math.abs(((a=t[n])==null?void 0:a.offsetLeft)-e.scrollLeft)?i:n},0);n!==this.store.activeIndex&&this.store.setIndex(n,!0,void 0,!0)}),(0,a._)(this,`handleKeyDown`,e=>{var t,n;(t=(n=this.props).onKeyDown)==null||t.call(n,e),e.defaultPrevented||this.scroller.looping||this.props.keyboard===!1||e.altKey||e.ctrlKey||e.metaKey||e.target instanceof HTMLElement&&/^(INPUT|TEXTAREA|SELECT)$/.test(e.target.tagName)||(e.key===`ArrowLeft`?(e.preventDefault(),this.store.previous(!0)):e.key===`ArrowRight`&&(e.preventDefault(),this.store.next(!0)))}),(0,a._)(this,`handleClick`,e=>{var t,n,r;if((n=(r=this.props).onClick)==null||n.call(r,e),e.defaultPrevented||this.scroller.looping)return;let i=e.target instanceof Element?e.target.closest(`[data-carousel-action]`):null,{carouselAction:a,index:o}=(t=i==null?void 0:i.dataset)==null?{}:t;switch(a){case`previous`:this.store.previous(!0);break;case`next`:this.store.next(!0);break;case`slide`:o!==void 0&&this.store.setIndex(Number(o),!0);break;case`toggle`:this.store.toggle()}}),(0,a._)(this,`scrollToActive`,(e,t,n)=>{var r;let i=this.track.current,a=this.root.current;if(!i||!a)return;this.scroller.dispose();let o=[...i.children],s=o[e];if(!s)return;let c=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,l=getComputedStyle(a),u=Number.parseFloat(l.getPropertyValue(`--bs-carousel-items`))||1,d=Number.parseFloat(l.getPropertyValue(`--bs-carousel-items-peek`))||0,f=o.some(e=>e.style.width||e.style.flexBasis),p=n===1&&e===0&&t===o.length-1||n===-1&&t===0&&e===o.length-1,m=((r=this.props.ends)==null?`loop`:r)===`loop`&&!this.props.fade&&!c&&u===1&&d===0&&!this.props.center&&!f;p&&m?this.scroller.loop(i,o[t],s,n===1):this.scroller.navigate(i,s.offsetLeft,!p&&!c)}),(0,a._)(this,`renderSlide`,(e,t)=>{let n=this.store.activeIndex===t;return/*#__PURE__*/ (0,m.isValidElement)(e)&&typeof e.type!=`string`?/*#__PURE__*/ (0,m.cloneElement)(e,{active:n,"aria-hidden":!n}):/*#__PURE__*/ (0,u.jsx)(lt,{active:n,"aria-hidden":!n,children:e},t)}),(0,a._)(this,`renderControls`,()=>{let{controls:e=!0,ends:t=`loop`}=this.props;if(!e)return null;let n=this.store.activeIndex===0,r=this.store.activeIndex===this.getSlides().length-1,i=this.props.controlsPlacement===`overlay`?`carousel-control-prev`:`btn btn-subtle theme-secondary`;return/*#__PURE__*/ (0,u.jsxs)(u.Fragment,{children:[/*#__PURE__*/ (0,u.jsxs)(`button`,{type:`button`,className:i,"data-carousel-action":`previous`,"aria-label":`Previous`,disabled:t===`stop`&&n,children:[/*#__PURE__*/ (0,u.jsx)(F,{name:`chevron-left`,"aria-hidden":`true`}),/*#__PURE__*/ (0,u.jsx)(`span`,{className:`visually-hidden`,children:`Previous`})]}),/*#__PURE__*/ (0,u.jsxs)(`button`,{type:`button`,className:this.props.controlsPlacement===`overlay`?`carousel-control-next`:`btn btn-subtle theme-secondary`,"data-carousel-action":`next`,"aria-label":`Next`,disabled:t===`stop`&&r,children:[/*#__PURE__*/ (0,u.jsx)(F,{name:`chevron-right`,"aria-hidden":`true`}),/*#__PURE__*/ (0,u.jsx)(`span`,{className:`visually-hidden`,children:`Next`})]})]})}),(0,a._)(this,`renderIndicators`,()=>this.props.indicators&&this.getSlides().length>1?/*#__PURE__*/ (0,u.jsx)(`div`,{className:`carousel-indicators`,children:this.getSlides().map((e,t)=>/*#__PURE__*/ (0,u.jsx)(`button`,{type:`button`,"data-carousel-action":`slide`,"data-index":t,"aria-label":`Slide ${t+1}`,"aria-current":this.store.activeIndex===t?`true`:void 0,className:(0,d.default)({active:this.store.activeIndex===t})},t))}):null),(0,a._)(this,`renderPlayPause`,()=>(this.props.playPause||this.props.autoplay)&&/*#__PURE__*/ (0,u.jsx)(`button`,{type:`button`,className:`btn-icon btn-sm carousel-control-play-pause`,"data-carousel-action":`toggle`,"aria-label":this.store.playing?`Pause`:`Play`,children:/*#__PURE__*/ (0,u.jsx)(F,{name:this.store.playing?`pause-fill`:`play-fill`,"aria-hidden":`true`})}))}},{c:[ut,st]}=(0,t._)(at,[],[p.observer],ct),at),ot=class extends o._{constructor(){super(ut),(0,a._)(this,`displayName`,`Carousel`),st()}},(0,a._)(ot,it,void 0),ot);let dt,ft;var pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot;const kt=`idea-react:collapse-toggle`,At=`idea-react:collapse-change`,jt=`idea-react:collapse-open`;let Mt;new(dt=(pt=/*#__PURE__*/ new WeakMap,mt=class extends (xt=m.Component){get expanded(){return(0,n._)(this,pt)}set expanded(e){(0,i._)(this,pt,e)}get isOpen(){var e;return(e=this.props.open)==null?this.expanded:e}componentDidMount(){this.root.current.addEventListener(kt,this.handleToggle),document.addEventListener(jt,this.handlePeerOpen),this.notify(),this.isOpen&&this.notifyOpen()}componentDidUpdate(e){e.open!==this.props.open&&this.isOpen&&this.notifyOpen(),this.notify()}componentWillUnmount(){this.root.current.removeEventListener(kt,this.handleToggle),document.removeEventListener(jt,this.handlePeerOpen)}render(){let e=this.props,{open:t,defaultOpen:n,parent:r,onOpenChange:i,horizontal:a,className:o}=e,f=(0,l._)(e,[`open`,`defaultOpen`,`parent`,`onOpenChange`,`horizontal`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},f),{ref:this.root,className:(0,d.default)(`collapse`,{"collapse-horizontal":a,show:this.isOpen},o)}))}constructor(...e){var t;super(...e),(0,r._)(this,pt,{writable:!0,value:(Ct(this),St(this,(t=this.props.defaultOpen)!=null&&t))}),(0,a._)(this,`root`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`notify`,()=>this.root.current.dispatchEvent(new Event(At,{bubbles:!0}))),(0,a._)(this,`notifyOpen`,()=>this.root.current.dispatchEvent(new Event(jt,{bubbles:!0}))),(0,a._)(this,`setOpen`,(0,f.action)(e=>{var t,n;e!==this.isOpen&&((t=(n=this.props).onOpenChange)==null||t.call(n,e),this.props.open===void 0&&(this.expanded=e,e&&this.notifyOpen()))})),(0,a._)(this,`handleToggle`,e=>{e.target===this.root.current&&this.setOpen(!this.isOpen)}),(0,a._)(this,`handlePeerOpen`,({target:e})=>{let{parent:t}=this.props,n=this.root.current,r=t?n==null?void 0:n.closest(t):null;t&&r&&e instanceof Element&&e!==n&&e.closest(t)===r&&this.setOpen(!1)})}},{e:[St,Ct],c:[Mt,bt]}=(0,t._)(mt,[[f.observable,1,`expanded`]],[p.observer],xt),mt),ht=class extends o._{constructor(){super(Mt),(0,a._)(this,`displayName`,`Collapse`),bt()}},(0,a._)(ht,dt,void 0),ht);let Nt;new(ft=(gt=/*#__PURE__*/ new WeakMap,_t=/*#__PURE__*/ new WeakMap,vt=class extends (Tt=m.Component){get expanded(){return(0,n._)(this,gt)}set expanded(e){(0,i._)(this,gt,e)}get controls(){return(0,n._)(this,_t)}set controls(e){(0,i._)(this,_t,e)}get targets(){return[...document.querySelectorAll(this.props.target)]}componentDidMount(){document.addEventListener(At,this.refresh),this.refresh()}componentDidUpdate(e){e.target!==this.props.target&&this.refresh()}componentWillUnmount(){document.removeEventListener(At,this.refresh)}render(){var e;let t=this.props,{target:n,href:r}=t,i=(0,l._)(t,[`target`,`href`]);return/*#__PURE__*/ (0,u.jsx)(P,(0,c._)((0,s._)({},i),{role:(e=i.role)==null?`button`:e,href:r,"aria-controls":this.controls||void 0,"aria-expanded":this.expanded,onClick:this.handleClick}))}constructor(...e){super(...e),(0,r._)(this,gt,{writable:!0,value:(Ot(this),Et(this,!1))}),(0,r._)(this,_t,{writable:!0,value:Dt(this,``)}),(0,a._)(this,`refresh`,(0,f.action)(()=>{let{targets:e}=this;this.expanded=e.some(e=>e.classList.contains(`show`)),this.controls=e.map(({id:e})=>e).filter(Boolean).join(` `)})),(0,a._)(this,`handleClick`,e=>{var t,n;if((t=(n=this.props).onClick)==null||t.call(n,e),!e.defaultPrevented){e.preventDefault();for(let e of this.targets)e.dispatchEvent(new Event(kt))}})}},{e:[Et,Dt,Ot],c:[Nt,wt]}=(0,t._)(vt,[[f.observable,1,`expanded`],[f.observable,1,`controls`]],[p.observer],Tt),vt),yt=class extends o._{constructor(){super(Nt),(0,a._)(this,`displayName`,`CollapseToggle`),wt()}},(0,a._)(yt,ft,void 0),yt);const Pt=[`primary`,`secondary`,`success`,`danger`,`warning`,`info`,`dark`,`light`];function Ft(e,t=[]){let n=t[0]?Pt.filter(e=>!t.find(t=>t===e)):Pt;return n[[...e].reduce((e,t)=>e+t.charCodeAt(0),0)%n.length]}var It={hiddenBackdrop:`Ocw1GG_hiddenBackdrop`};const Lt=e=>(parseFloat(e)||0)*(e.trim().endsWith(`ms`)?1:1e3),Rt=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`dialog-header`,t)}))},zt=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`h1`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`dialog-title`,t)}))},Bt=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`dialog-body`,t)}))},Vt=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`dialog-footer`,t)}))};var Ht=class e extends m.Component{get open(){var e,t;return(e=(t=this.element.current)==null?void 0:t.open)!=null&&e}componentDidMount(){this.props.open&&this.show()}componentDidUpdate({open:e,modal:t,scroll:n}){let r=this.props.modal!==t,i=this.props.open!==e,a=this.open;(i||r||this.props.scroll!==n)&&(this.open&&this.props.modal!==t&&(this.switchingMode=!0,this.close()),this.props.scroll?this.unlockScroll():this.open&&this.props.modal!==!1&&this.lockScroll(),(i||r)&&(this.props.open||!i&&r&&a?this.show():this.close()))}componentWillUnmount(){this.finishClose()}render(){let e=this.props,{open:t,modal:n,keyboard:r,backdrop:i=!0,theme:a,dialog:o=!0,size:f,fullscreen:p,scrollable:m,animation:h=`fade`,scroll:g,className:_,onCancel:v,onClick:y,onKeyDown:b,onClose:x}=e,S=(0,l._)(e,[`open`,`modal`,`keyboard`,`backdrop`,`theme`,`dialog`,`size`,`fullscreen`,`scrollable`,`animation`,`scroll`,`className`,`onCancel`,`onClick`,`onKeyDown`,`onClose`]);return/*#__PURE__*/ (0,u.jsx)(`dialog`,(0,c._)((0,s._)({},S),{ref:this.element,className:(0,d.default)(o&&`dialog`,o&&f&&`dialog-${f}`,o&&p&&(p===!0?`dialog-fullscreen`:`${p}-down:dialog-fullscreen`),o&&m&&`dialog-scrollable`,o&&h!==`fade`&&`dialog-${h}`,i===!1&&It.hiddenBackdrop,_),"data-backdrop":i===!1?`false`:void 0,"data-bs-theme":a,onCancel:this.handleCancel,onKeyDown:this.handleKeyDown,onClick:this.handleClick,onClose:this.handleClose}))}constructor(...t){super(...t),(0,a._)(this,`element`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`returnFocus`,void 0),(0,a._)(this,`switchingMode`,!1),(0,a._)(this,`closeTimer`,void 0),(0,a._)(this,`show`,()=>{var e;if(clearTimeout(this.closeTimer),(e=this.element.current)==null||e.classList.remove(`hiding`),this.open)return;let t=this.element.current;t&&(!this.switchingMode&&document.activeElement instanceof HTMLElement&&(this.returnFocus=document.activeElement),this.props.modal===!1?t.show():t.showModal(),this.props.modal!==!1&&!this.props.scroll&&this.lockScroll())}),(0,a._)(this,`lockScroll`,()=>{let{scrollLocks:t}=e;t.size||(e.bodyOverflow=document.body.style.overflow,document.body.style.overflow=`hidden`),t.add(this)}),(0,a._)(this,`unlockScroll`,()=>{let{scrollLocks:t}=e;t.delete(this)&&(t.size||(document.body.style.overflow=e.bodyOverflow))}),(0,a._)(this,`close`,()=>{let e=this.element.current;if(!this.open||!e||this.switchingMode)return this.finishClose();let{transitionDuration:t,transitionDelay:n}=getComputedStyle(e),r=t.split(`,`).map(Lt),i=n.split(`,`).map(Lt),a=Math.max(0,...r.map((e,t)=>e+i[t%i.length]));if(!a)return this.finishClose();e.classList.contains(`hiding`)||(e.classList.add(`hiding`),this.closeTimer=setTimeout(this.finishClose,a))}),(0,a._)(this,`finishClose`,()=>{var e,t,n;clearTimeout(this.closeTimer),(e=this.element.current)==null||e.classList.remove(`hiding`),this.unlockScroll(),this.open&&((t=this.element.current)==null||t.close(),(n=this.returnFocus)==null||n.focus())}),(0,a._)(this,`handleClose`,e=>{var t,n;if(this.switchingMode||(t=(n=this.props).onClose)==null||t.call(n,e),!this.open){var r;this.unlockScroll(),(r=this.returnFocus)==null||r.focus()}this.switchingMode=!1}),(0,a._)(this,`handleCancel`,e=>{let{onCancel:t,keyboard:n=!0}=this.props;t==null||t(e);let{defaultPrevented:r}=e;e.preventDefault(),n&&!r&&this.close()}),(0,a._)(this,`handleKeyDown`,e=>{let{onKeyDown:t,keyboard:n=!0}=this.props;t==null||t(e);let{key:r,defaultPrevented:i}=e;r===`Escape`&&n&&!i&&(e.preventDefault(),this.close())}),(0,a._)(this,`handleClick`,e=>{let{onClick:t,backdrop:n=!0}=this.props;t==null||t(e);let{defaultPrevented:r,target:i,currentTarget:a,clientX:o,clientY:s}=e;if(n!==!0||r||i!==a)return;let{left:c,right:l,top:u,bottom:d}=a.getBoundingClientRect();(o<c||o>l||s<u||s>d)&&this.close()})}};(0,a._)(Ht,`scrollLocks`,/* @__PURE__ */ new Set),(0,a._)(Ht,`bodyOverflow`,``);let Ut;var Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt;const Qt=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`drawer-header`,t)}))},$t=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`h5`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`drawer-title`,t)}))},en=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`drawer-body`,t)}))},tn=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`drawer-footer`,t)}))},nn={sm:576,md:768,lg:1024,xl:1280,"2xl":1536};let rn;new(Ut=(Wt=/*#__PURE__*/ new WeakMap,Gt=class extends (Jt=m.Component){get expanded(){return(0,n._)(this,Wt)}set expanded(e){(0,i._)(this,Wt,e)}componentDidMount(){this.observeBreakpoint()}componentDidUpdate({responsive:e,open:t}){e!==this.props.responsive&&this.observeBreakpoint(),t!==this.props.open&&this.props.open&&(this.dismissed=!1)}componentWillUnmount(){var e;(e=this.media)==null||e.removeEventListener(`change`,this.handleBreakpoint)}render(){let e=this.props,{title:t,placement:n=`end`,footer:r,bodyClassName:i,onDismiss:a,sheet:o,translucent:f,responsive:p,animation:m=`slide`,fullscreen:h,open:g,modal:_,scroll:v,backdrop:y,className:b,children:x}=e,S=(0,l._)(e,[`title`,`placement`,`footer`,`bodyClassName`,`onDismiss`,`sheet`,`translucent`,`responsive`,`animation`,`fullscreen`,`open`,`modal`,`scroll`,`backdrop`,`className`,`children`]);return/*#__PURE__*/ (0,u.jsxs)(Ht,(0,c._)((0,s._)({},S),{ref:this.dialog,open:this.expanded||g,modal:this.expanded?!1:_==null?!(v&&y===!1):_,scroll:v,backdrop:y,dialog:!1,tabIndex:-1,"aria-label":typeof t==`string`?t:S[`aria-label`],className:(0,d.default)(p?`${p}:drawer`:`drawer`,`drawer-${n}`,{"drawer-sheet":o,"drawer-translucent":f,"drawer-instant":m===`instant`,"drawer-fullscreen":h===!0},b),onClose:this.handleClose,children:[/*#__PURE__*/ (0,u.jsxs)(Qt,{children:[/*#__PURE__*/ (0,u.jsx)($t,{children:t}),/*#__PURE__*/ (0,u.jsx)(R,{onClick:this.handleDismiss})]}),/*#__PURE__*/ (0,u.jsx)(en,{className:i,children:x}),r&&/*#__PURE__*/ (0,u.jsx)(tn,{children:r})]}))}constructor(...e){super(...e),(0,r._)(this,Wt,{writable:!0,value:(Zt(this),Yt(this,!1))}),(0,a._)(this,`dialog`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`media`,void 0),(0,a._)(this,`dismissed`,!1),(0,a._)(this,`observeBreakpoint`,()=>{var e,t;(e=this.media)==null||e.removeEventListener(`change`,this.handleBreakpoint);let{responsive:n}=this.props;this.media=n?window.matchMedia(`(min-width: ${nn[n]}px)`):void 0,this.handleBreakpoint(),(t=this.media)==null||t.addEventListener(`change`,this.handleBreakpoint)}),(0,a._)(this,`handleBreakpoint`,Xt(this,()=>{var e,t;return this.expanded=(e=(t=this.media)==null?void 0:t.matches)!=null&&e})),(0,a._)(this,`handleDismiss`,()=>{var e,t,n;(e=(t=this.props).onDismiss)==null||e.call(t),this.dismissed=!0,(n=this.dialog.current)==null||n.close()}),(0,a._)(this,`handleClose`,()=>{var e,t;this.dismissed||this.expanded||(e=(t=this.props).onDismiss)==null||e.call(t),this.dismissed=!1})}},{e:[Yt,Xt,Zt],c:[rn,qt]}=(0,t._)(Gt,[[f.observable,1,`expanded`],[f.action,0,`handleBreakpoint`]],[p.observer],Jt),Gt),Kt=class extends o._{constructor(){super(rn),(0,a._)(this,`displayName`,`Drawer`),qt()}},(0,a._)(Kt,Ut,void 0),Kt);var an=class extends m.PureComponent{componentDidMount(){window.addEventListener(`click`,this.switchClick,!0)}componentWillUnmount(){window.removeEventListener(`click`,this.switchClick,!0)}render(){let e=this.props,{children:t,onInnerClick:n,onOuterClick:r}=e,i=(0,l._)(e,[`children`,`onInnerClick`,`onOuterClick`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({ref:this.root},i),{children:t}))}constructor(...e){super(...e),(0,a._)(this,`root`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`switchClick`,e=>{var t;let{onInnerClick:n,onOuterClick:r}=this.props;(t=this.root.current)!=null&&t.contains(e.target)?n==null||n(e):r==null||r(e)})}};
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-5iZMYShA.js");let t=require("@swc/helpers/_/_apply_decs_2203_r"),n=require("@swc/helpers/_/_class_private_field_get"),r=require("@swc/helpers/_/_class_private_field_init"),i=require("@swc/helpers/_/_class_private_field_set"),a=require("@swc/helpers/_/_define_property"),o=require("@swc/helpers/_/_identity"),s=require("@swc/helpers/_/_object_spread"),c=require("@swc/helpers/_/_object_spread_props"),l=require("@swc/helpers/_/_object_without_properties"),u=require("react/jsx-runtime"),d=require("classnames");d=e.n(d);let f=require("mobx"),p=require("mobx-react"),m=require("react");m=e.n(m);let h=require("@shikijs/langs/css");h=e.n(h);let g=require("@shikijs/langs/html");g=e.n(g);let _=require("@shikijs/langs/javascript");_=e.n(_);let v=require("@shikijs/langs/json");v=e.n(v);let y=require("@shikijs/langs/jsx");y=e.n(y);let b=require("@shikijs/langs/sh");b=e.n(b);let x=require("@shikijs/langs/tsx");x=e.n(x);let S=require("@shikijs/langs/typescript");S=e.n(S);let C=require("@shikijs/themes/github-dark");C=e.n(C);let w=require("@shikijs/themes/github-light");w=e.n(w);let T=require("shiki/core"),E=require("shiki/engine/javascript"),D=require("mobx-react-helper"),O=require("web-utility"),k=require("iterable-observer"),A=require("@swc/helpers/_/_async_to_generator"),j=require("react-editor-js"),M=require("editorjs-html");M=e.n(M);let N=require("react-live"),P=require("react-dom"),F=require("html2canvas");F=e.n(F);let I=require("react-dom/server");const L=e=>e,ee=e=>typeof e.href==`string`,te=e=>e.preventDefault(),R=L(e=>{let{as:t,variant:n,theme:r,size:i,icon:a,styled:o,disabled:f,active:p,className:m}=e,h=(0,l._)(e,[`as`,`variant`,`theme`,`size`,`icon`,`styled`,`disabled`,`active`,`className`]),g=ee(h),_=t==null?g?`a`:`button`:t,v=_===`button`,y=(0,d.default)(n===!1?void 0:n?`btn-${n}`:a?void 0:`btn`,r&&`theme-${r}`,i&&`btn-${i}`,{"btn-icon":a,"btn-styled":o,disabled:f,active:p},m);return/*#__PURE__*/ (0,u.jsx)(_,(0,c._)((0,s._)({},h),{className:y,type:v?h.type||`button`:h.type,href:f?void 0:h.href,disabled:v||typeof _!=`string`?f:void 0,"aria-disabled":!v&&f||void 0,"aria-pressed":!g||h.role===`button`?p==null?h[`aria-pressed`]:p:h[`aria-pressed`],tabIndex:!v&&f?-1:h.tabIndex,onClick:!v&&f?te:h.onClick}))});R.displayName=`Button`;const ne=L(e=>{let{as:t=`input`,variant:n,theme:r,size:i,icon:a,styled:o,active:f,className:p,type:m=`button`}=e,h=(0,l._)(e,[`as`,`variant`,`theme`,`size`,`icon`,`styled`,`active`,`className`,`type`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},h),{type:m,className:(0,d.default)(n===!1?void 0:n?`btn-${n}`:`btn`,r&&`theme-${r}`,i&&`btn-${i}`,{"btn-icon":a,"btn-styled":o,active:f},p)}))});ne.displayName=`ButtonInput`;const z=L(e=>{let{as:t=`span`,className:n,style:r,name:i,size:a}=e,o=(0,l._)(e,[`as`,`className`,`style`,`name`,`size`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,s._)({className:(0,d.default)(`bi-${i}`,n),style:(0,s._)({fontSize:a&&`${a}rem`},r)},o))});z.displayName=`Icon`;let re;var B,ie,ae,oe,se,ce,le;const ue=L(e=>{let{as:t=`div`,theme:n,size:r,flush:i,gap:a,className:o}=e,f=(0,l._)(e,[`as`,`theme`,`size`,`flush`,`gap`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},f),{className:(0,d.default)(`accordion`,n&&`theme-${n}`,r&&`accordion-${r}`,{"accordion-flush":i,"accordion-gap":a},o)}))});ue.displayName=`Accordion`;const de=L(e=>{let{as:t=`details`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`accordion-item`,n)}))});de.displayName=`AccordionItem`;const fe=L(e=>{let{as:t=`summary`,icon:n=`chevron-down`,className:r,children:i}=e,a=(0,l._)(e,[`as`,`icon`,`className`,`children`]);return/*#__PURE__*/ (0,u.jsxs)(t,(0,c._)((0,s._)({},a),{className:(0,d.default)(`accordion-header`,r),children:[i,n&&/*#__PURE__*/ (0,u.jsx)(z,{name:n,className:`accordion-icon`,"aria-hidden":`true`})]}))});fe.displayName=`AccordionHeader`;const pe=L(e=>{let{as:t=`div`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`accordion-body`,n)}))});pe.displayName=`AccordionBody`;let me;new(re=(B=/*#__PURE__*/ new WeakMap,ie=class extends (se=m.Component){get componentProps(){return this.props}get expanded(){return(0,n._)(this,B)}set expanded(e){(0,i._)(this,B,e)}get items(){var e,t;return[...(e=(t=document.querySelector(this.componentProps.target))==null?void 0:t.querySelectorAll(`:scope > .accordion-item`))==null?[]:e]}componentDidMount(){document.addEventListener(`toggle`,this.refresh,!0),this.refresh()}componentDidUpdate(e){e.target!==this.componentProps.target&&(this.restoreNames(),this.refresh())}componentWillUnmount(){document.removeEventListener(`toggle`,this.refresh,!0),this.restoreNames()}render(){let e=this.componentProps,{target:t}=e,n=(0,l._)(e,[`target`]);return/*#__PURE__*/ (0,u.jsx)(R,(0,c._)((0,s._)({as:this.componentProps.as},n),{"aria-expanded":this.expanded,onClick:this.handleClick}))}constructor(...e){super(...e),(0,r._)(this,B,{writable:!0,value:(le(this),ce(this,!1))}),(0,a._)(this,`names`,/* @__PURE__ */ new Map),(0,a._)(this,`restoreNames`,()=>{for(let[e,t]of this.names)e.setAttribute(`name`,t);this.names.clear()}),(0,a._)(this,`refresh`,(0,f.action)(()=>{let{items:e}=this;this.expanded=!!e.length&&e.every(({open:e})=>e)})),(0,a._)(this,`handleClick`,e=>{var t,n;if((t=(n=this.componentProps).onClick)==null||t.call(n,e),e.defaultPrevented)return;let{items:r,expanded:i}=this;for(let e of r){let t=e.getAttribute(`name`);!i&&t&&(this.names.set(e,t),e.removeAttribute(`name`)),e.open=!i}i&&this.restoreNames(),this.refresh()})}},{e:[ce,le],c:[me,oe]}=(0,t._)(ie,[[f.observable,1,`expanded`]],[p.observer],se),ie),ae=class extends o._{constructor(){super(me),(0,a._)(this,`displayName`,`AccordionToggle`),oe()}},(0,a._)(ae,re,void 0),ae);const V=L(e=>{let{as:t=`button`,dismiss:n,className:r,type:i=`button`,"aria-label":a=`Close`}=e,o=(0,l._)(e,[`as`,`dismiss`,`className`,`type`,`aria-label`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},o),{type:i,className:(0,d.default)(`btn-close`,r),"data-bs-dismiss":n,"aria-label":a}))});V.displayName=`CloseButton`;let he;var ge,_e,ve,ye,be,xe,Se,Ce,we;let H;new(he=(ge=/*#__PURE__*/ new WeakMap,_e=/*#__PURE__*/ new WeakMap,ve=class extends (xe=m.Component){get componentProps(){return this.props}get hiding(){return(0,n._)(this,ge)}set hiding(e){(0,i._)(this,ge,e)}get closed(){return(0,n._)(this,_e)}set closed(e){(0,i._)(this,_e,e)}componentDidUpdate(){if(this.closed&&!this.notified){var e,t;this.notified=!0,(e=(t=this.componentProps).onClosed)==null||e.call(t)}}componentWillUnmount(){clearTimeout(this.timer)}render(){var e,t;let n=(e=this.componentProps.as)==null?`div`:e,r=this.componentProps,{as:i,theme:a,dismissible:o,instant:f,closeLabel:p=`Close`,onClose:m,onClosed:h,className:g,children:_}=r,v=(0,l._)(r,[`as`,`theme`,`dismissible`,`instant`,`closeLabel`,`onClose`,`onClosed`,`className`,`children`]);return this.closed?null:/*#__PURE__*/ (0,u.jsxs)(n,(0,c._)((0,s._)({},v),{ref:this.root,role:(t=v.role)==null?`alert`:t,className:(0,d.default)(`alert`,a&&`theme-${a}`,{"alert-instant":f,hiding:this.hiding},g),onTransitionEnd:this.handleTransitionEnd,children:[_,o&&/*#__PURE__*/ (0,u.jsx)(V,{className:`ms-auto`,"aria-label":p,onClick:this.handleClose})]}))}constructor(...e){super(...e),(0,r._)(this,ge,{writable:!0,value:(we(this),Se(this,!1))}),(0,r._)(this,_e,{writable:!0,value:Ce(this,!1)}),(0,a._)(this,`root`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`timer`,void 0),(0,a._)(this,`notified`,!1),(0,a._)(this,`finishClose`,(0,f.action)(()=>{this.closed||(clearTimeout(this.timer),this.closed=!0)})),(0,a._)(this,`close`,(0,f.action)(()=>{var e,t;if(this.hiding||this.closed)return;if((e=(t=this.componentProps).onClose)==null||e.call(t),this.componentProps.instant)return this.finishClose();this.hiding=!0;let n=getComputedStyle(this.root.current),r=n.transitionDuration.split(`,`).map(H.milliseconds),i=n.transitionDelay.split(`,`).map(H.milliseconds),a=Math.max(0,...r.map((e,t)=>e+(i[t%i.length]||0)));this.timer=setTimeout(this.finishClose,a)})),(0,a._)(this,`handleClose`,e=>{e.defaultPrevented||this.close()}),(0,a._)(this,`handleTransitionEnd`,e=>{var t,n;(t=(n=this.componentProps).onTransitionEnd)==null||t.call(n,e),e.target===e.currentTarget&&this.hiding&&this.finishClose()})}},{e:[Se,Ce,we],c:[H,be]}=(0,t._)(ve,[[f.observable,1,`hiding`],[f.observable,1,`closed`]],[p.observer],xe),ve),ye=class extends o._{constructor(){super(H),(0,a._)(this,`displayName`,`Alert`),(0,a._)(this,`milliseconds`,e=>(parseFloat(e)||0)*(e.trim().endsWith(`ms`)?1:1e3)),be()}},(0,a._)(ye,he,void 0),ye);const Te=L(e=>{let{as:t=`a`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`alert-link`,n)}))});Te.displayName=`AlertLink`;const Ee=L(e=>{let{as:t=`h4`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`alert-heading`,n)}))});Ee.displayName=`AlertHeading`;function De(e){return t=>{t&&new IntersectionObserver(([{isIntersecting:t,target:n}],r)=>{if(!t)return;let i=[`animate__animated`,`animate__${e}`];n.classList.add(...i),n.addEventListener(`animationend`,()=>n.classList.remove(...i),{once:!0}),r.disconnect()}).observe(t)}}const Oe=L(e=>{let{as:t=`span`,className:n,style:r,size:i,theme:a,subtle:o,src:f,alt:p,status:m,statusLabel:h=m,children:g}=e,_=(0,l._)(e,[`as`,`className`,`style`,`size`,`theme`,`subtle`,`src`,`alt`,`status`,`statusLabel`,`children`]);return/*#__PURE__*/ (0,u.jsxs)(t,(0,c._)((0,s._)({className:(0,d.default)(`avatar`,typeof i==`string`&&`avatar-${i}`,a&&`theme-${a}`,o&&`avatar-subtle`,n),style:typeof i==`number`?(0,s._)({"--bs-avatar-size":`${i}rem`},r):r},_),{children:[f?/*#__PURE__*/ (0,u.jsx)(`img`,{className:`avatar-img`,src:f,alt:p}):g,m&&/*#__PURE__*/ (0,u.jsx)(`span`,{className:`avatar-status status-${m}`,role:`img`,"aria-label":h})]}))});Oe.displayName=`Avatar`;const ke=L(e=>{let{as:t=`img`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`avatar-img`,n)}))});ke.displayName=`AvatarImage`;const Ae=L(e=>{let{as:t=`div`,className:n,size:r,children:i}=e,a=(0,l._)(e,[`as`,`className`,`size`,`children`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({className:(0,d.default)(`avatar-stack`,r&&`avatar-stack-${r}`,n)},a),{children:i}))});Ae.displayName=`AvatarStack`;const je=e=>typeof e.href==`string`,U=L(e=>{let{as:t,variant:n=`solid`,theme:r,pill:i,className:a}=e,o=(0,l._)(e,[`as`,`variant`,`theme`,`pill`,`className`]),f=t==null?je(o)?`a`:`span`:t,p=(0,d.default)(`badge`,n!==`solid`&&`badge-${n}`,r&&`theme-${r}`,{"rounded-pill":i},a);return/*#__PURE__*/ (0,u.jsx)(f,(0,c._)((0,s._)({},o),{className:p}))});U.displayName=`Badge`;const Me=L(e=>{let{as:t=`ol`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`breadcrumb`,n)}))});Me.displayName=`Breadcrumb`;const Ne=L(e=>{let{as:t=`li`}=e,n=(0,l._)(e,[`as`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},n),{className:(0,d.default)(`breadcrumb-item`,n.className)}))});Ne.displayName=`BreadcrumbItem`;const Pe=L(e=>{let{as:t=`a`,active:n,className:r,"aria-current":i=n?`page`:void 0}=e,a=(0,l._)(e,[`as`,`active`,`className`,`aria-current`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},a),{className:(0,d.default)(`breadcrumb-link`,{active:n},r),"aria-current":i}))});Pe.displayName=`BreadcrumbLink`;const Fe=L(e=>{let{as:t=`li`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`breadcrumb-divider`,n),"aria-hidden":`true`}))});Fe.displayName=`BreadcrumbDivider`;const Ie=L(e=>{let{as:t=`div`,vertical:n,size:r,divider:i,role:a=`group`,className:o}=e,f=(0,l._)(e,[`as`,`vertical`,`size`,`divider`,`role`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({role:a},f),{className:(0,d.default)(n?`btn-group-vertical`:`btn-group`,r&&`btn-group-${r}`,i&&`btn-group-divider`,o)}))});Ie.displayName=`ButtonGroup`;const Le=L(e=>{let{as:t=`div`,className:n,role:r=`toolbar`}=e,i=(0,l._)(e,[`as`,`className`,`role`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({role:r},i),{className:(0,d.default)(`btn-toolbar`,n)}))});Le.displayName=`ButtonToolbar`;const Re=L(e=>{let{as:t=`div`,row:n,body:r,theme:i,subtle:a,translucent:o,className:f}=e,p=(0,l._)(e,[`as`,`row`,`body`,`theme`,`subtle`,`translucent`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},p),{className:(0,d.default)(`card`,{"card-row":n,"card-body":r,"card-subtle":a,"card-translucent":o},i&&`theme-${i}`,f)}))});Re.displayName=`Card`;const ze=L(e=>{let{as:t=`img`,placement:n,className:r}=e,i=(0,l._)(e,[`as`,`placement`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},i),{className:(0,d.default)(n?`card-img-${n}`:`card-img`,r)}))});ze.displayName=`CardImage`;const Be=L(e=>{let{as:t=`p`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`card-subtitle`,n)}))});Be.displayName=`CardSubtitle`;const Ve=L(e=>{let{as:t=`div`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`card-group`,n)}))});Ve.displayName=`CardGroup`;const He=L(e=>{let{as:t=`div`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`card-img-overlay`,n)}))});He.displayName=`CardImageOverlay`;const Ue=L(e=>{let{as:t=`div`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`card-header`,n)}))});Ue.displayName=`CardHeader`;const We=L(e=>{let{as:t=`div`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`card-body`,n)}))});We.displayName=`CardBody`;const Ge=L(e=>{let{as:t=`div`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`card-footer`,n)}))});Ge.displayName=`CardFooter`;const Ke=L(e=>{let{as:t=`h4`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`card-title`,n)}))});Ke.displayName=`CardTitle`;const qe=L(e=>{let{as:t=`p`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`card-text`,n)}))});qe.displayName=`CardText`;var Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,W=/*#__PURE__*/ new WeakMap,rt=/*#__PURE__*/ new WeakMap,it=class{get activeIndex(){return(0,n._)(this,W)}set activeIndex(e){(0,i._)(this,W,e)}get playing(){return(0,n._)(this,rt)}set playing(e){(0,i._)(this,rt,e)}constructor(e,t,n){(0,a._)(this,`count`,void 0),(0,a._)(this,`ends`,void 0),(0,a._)(this,`interval`,void 0),(0,r._)(this,W,{writable:!0,value:void 0}),(0,r._)(this,rt,{writable:!0,value:void 0}),(0,a._)(this,`timer`,void 0),(0,a._)(this,`hovering`,void 0),(0,a._)(this,`visible`,void 0),(0,a._)(this,`onChange`,void 0),(0,a._)(this,`onNavigate`,void 0),(0,a._)(this,`setIndex`,void 0),(0,a._)(this,`next`,void 0),(0,a._)(this,`previous`,void 0),(0,a._)(this,`play`,void 0),(0,a._)(this,`pause`,void 0),(0,a._)(this,`toggle`,void 0),(0,a._)(this,`setHovering`,void 0),(0,a._)(this,`setVisible`,void 0),(0,a._)(this,`update`,void 0),(0,a._)(this,`dispose`,void 0),(0,a._)(this,`schedule`,void 0),(0,a._)(this,`clearTimer`,void 0),this.count=e,this.ends=t,this.interval=n,(0,i._)(this,W,(nt(this),Je(this,0))),(0,i._)(this,rt,Ye(this,!1)),this.hovering=!1,this.visible=!0,this.setIndex=Xe(this,(e,t=!1,n,r=!1)=>{let i=Math.max(0,Math.min(e,this.count-1));if(i!==this.activeIndex){var a,o,s,c;let e=this.activeIndex;this.activeIndex=i,(a=(o=this).onChange)==null||a.call(o,i),r||(s=(c=this).onNavigate)==null||s.call(c,i,e,n)}t?this.pause():this.schedule()}),this.next=Ze(this,(e=!1)=>{this.activeIndex===this.count-1&&this.ends===`stop`?e||this.pause():this.setIndex(this.activeIndex===this.count-1?0:this.activeIndex+1,e,1)}),this.previous=Qe(this,(e=!1)=>{this.activeIndex===0&&this.ends===`stop`?e||this.pause():this.setIndex(this.activeIndex===0?this.count-1:this.activeIndex-1,e,-1)}),this.play=$e(this,()=>{this.playing=!0,this.schedule()}),this.pause=et(this,()=>{this.playing=!1,this.clearTimer()}),this.toggle=tt(this,()=>this.playing?this.pause():this.play()),this.setHovering=e=>{this.hovering=e,this.schedule()},this.setVisible=e=>{this.visible=e,this.schedule()},this.update=(e,t,n)=>{this.count=e,this.ends=t,this.interval=n,this.activeIndex>=e?this.setIndex(Math.max(0,e-1)):this.schedule()},this.dispose=()=>this.clearTimer(),this.schedule=()=>{this.clearTimer(),!this.playing||this.hovering||!this.visible||this.count<2||(this.timer=setTimeout(this.next,Math.max(0,this.interval(this.activeIndex))))},this.clearTimer=()=>{this.timer&&clearTimeout(this.timer),this.timer=void 0}}};({e:[Je,Ye,Xe,Ze,Qe,$e,et,tt,nt]}=(0,t._)(it,[[f.observable,1,`activeIndex`],[f.observable,1,`playing`],[f.action,0,`setIndex`],[f.action,0,`next`],[f.action,0,`previous`],[f.action,0,`play`],[f.action,0,`pause`],[f.action,0,`toggle`]],[]));var at=class{get looping(){return!!this.clone||this.frame!==void 0}constructor(){(0,a._)(this,`frame`,void 0),(0,a._)(this,`clone`,void 0),(0,a._)(this,`track`,void 0),(0,a._)(this,`snap`,``),(0,a._)(this,`navigate`,(e,t,n)=>{this.dispose(),!n||e.scrollLeft===t?e.scrollTo({left:t,behavior:`instant`}):(this.track=e,this.snap=e.style.scrollSnapType,e.style.scrollSnapType=`none`,this.animate(e,e.scrollLeft,t))}),(0,a._)(this,`loop`,(e,t,n,r)=>{this.dispose(),this.track=e,this.snap=e.style.scrollSnapType;let i=n.cloneNode(!0);i.removeAttribute(`id`);for(let e of i.querySelectorAll(`[id]`))e.removeAttribute(`id`);i.setAttribute(`aria-hidden`,`true`),i.inert=!0,i.dataset.carouselClone=`true`,i.classList.remove(`active`),this.clone=i,e.style.scrollSnapType=`none`,r?e.append(i):e.prepend(i);let a=t.offsetLeft,o=i.offsetLeft;e.scrollTo({left:a,behavior:`instant`}),this.animate(e,a,o,()=>{this.dispose(),e.scrollTo({left:n.offsetLeft,behavior:`instant`})})}),(0,a._)(this,`animate`,(e,t,n,r=this.dispose)=>{let i=window.performance.now(),a=o=>{let s=Math.min(1,(o-i)/400),c=1-Math.pow(1-s,3);e.scrollTo({left:t+(n-t)*c,behavior:`instant`}),s<1?this.frame=window.requestAnimationFrame(a):r()};this.frame=window.requestAnimationFrame(a)}),(0,a._)(this,`dispose`,()=>{var e;this.frame!==void 0&&window.cancelAnimationFrame(this.frame),this.frame=void 0,(e=this.clone)==null||e.remove(),this.clone=void 0,this.track&&(this.track.style.scrollSnapType=this.snap),this.track=void 0})}};let ot;var st,ct,lt,ut;const dt=L(e=>{let{as:t=`div`,interval:n,active:r,className:i,children:a}=e,o=(0,l._)(e,[`as`,`interval`,`active`,`className`,`children`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},o),{className:(0,d.default)(`carousel-item`,{active:r},i),"data-bs-interval":n,children:a}))});dt.displayName=`CarouselSlide`;let ft;new(ot=(st=class extends (ut=m.Component){componentDidMount(){var e;this.updateStore(),this.props.autoplay&&this.store.play(),document.addEventListener(`visibilitychange`,this.handleVisibilityChange),(e=this.track.current)==null||e.addEventListener(`scroll`,this.handleScroll,{passive:!0})}componentDidUpdate(){this.updateStore()}componentWillUnmount(){var e;this.store.dispose(),this.scroller.dispose(),document.removeEventListener(`visibilitychange`,this.handleVisibilityChange),(e=this.track.current)==null||e.removeEventListener(`scroll`,this.handleScroll)}render(){var e,t,n;let r=(e=this.props.as)==null?`div`:e,i=this.getSlides(),a=this.props,{as:o,autoplay:f,center:p,children:m,className:h,controls:g,controlsPlacement:_=`overlay`,dark:v,ends:y,fade:b,fade:x,indicators:S,interval:C,items:w,itemsGap:T,itemsPeek:E,keyboard:D,onChange:O,onClick:k,pause:A,playPause:j,style:M}=a,N=(0,l._)(a,[`as`,`autoplay`,`center`,`children`,`className`,`controls`,`controlsPlacement`,`dark`,`ends`,`fade`,`fade`,`indicators`,`interval`,`items`,`itemsGap`,`itemsPeek`,`keyboard`,`onChange`,`onClick`,`pause`,`playPause`,`style`]),P=_===`overlay`,F=(0,s._)({},M,w&&{"--bs-carousel-items":w},T!==void 0&&{"--bs-carousel-items-gap":T},E!==void 0&&{"--bs-carousel-items-peek":E}),I=/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`d-flex justify-content-between align-items-center gap-2`,children:[this.renderIndicators(),/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`d-flex align-items-center gap-2`,children:[this.renderPlayPause(),this.renderControls()]})]});return/*#__PURE__*/ (0,u.jsxs)(r,(0,c._)((0,s._)({},N),{ref:this.root,className:(0,d.default)(`carousel`,{"carousel-fade":x,"carousel-dark":v,"carousel-center":p},h),style:F,role:`region`,"aria-label":(t=this.props[`aria-label`])==null?`Carousel`:t,"aria-roledescription":`carousel`,onClick:this.handleClick,onKeyDown:this.handleKeyDown,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocusCapture:this.handleFocusCapture,onBlurCapture:this.handleBlurCapture,children:[_===`top`&&I,/*#__PURE__*/ (0,u.jsx)(`div`,{ref:this.track,className:`carousel-inner`,tabIndex:0,"aria-label":(n=this.props[`aria-label`])==null?`Carousel slides`:n,onScroll:this.handleScroll,children:i.map(this.renderSlide)}),P&&this.renderControls(),_===`bottom`&&I,P&&(this.props.playPause||this.props.autoplay)&&this.renderPlayPause(),P&&this.renderIndicators()]}))}constructor(...e){super(...e),(0,a._)(this,`root`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`track`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`store`,new it(0,`loop`,()=>5e3)),(0,a._)(this,`scroller`,new at),(0,a._)(this,`getSlides`,()=>m.Children.toArray(this.props.children)),(0,a._)(this,`getSlideInterval`,e=>{var t;let n=this.getSlides()[e],r=/*#__PURE__*/ (0,m.isValidElement)(n)?n.props.interval:void 0;return(t=r==null?this.props.interval:r)==null?5e3:t}),(0,a._)(this,`updateStore`,()=>{var e;let t=this.getSlides();this.store.onChange=this.props.onChange,this.store.onNavigate=this.scrollToActive,this.store.update(t.length,(e=this.props.ends)==null?`loop`:e,this.getSlideInterval)}),(0,a._)(this,`handleVisibilityChange`,()=>this.store.setVisible(!document.hidden)),(0,a._)(this,`handleMouseEnter`,()=>{this.props.pause!==!1&&this.store.setHovering(!0)}),(0,a._)(this,`handleMouseLeave`,()=>this.store.setHovering(!1)),(0,a._)(this,`handleFocusCapture`,()=>{this.props.pause!==!1&&this.store.setHovering(!0)}),(0,a._)(this,`handleBlurCapture`,({currentTarget:e,relatedTarget:t})=>{t instanceof Node&&e.contains(t)||this.store.setHovering(!1)}),(0,a._)(this,`handleScroll`,()=>{let e=this.track.current;if(!e||this.scroller.looping)return;let t=[...e.children],n=t.reduce((n,r,i)=>{var a;return Math.abs(r.offsetLeft-e.scrollLeft)<Math.abs(((a=t[n])==null?void 0:a.offsetLeft)-e.scrollLeft)?i:n},0);n!==this.store.activeIndex&&this.store.setIndex(n,!0,void 0,!0)}),(0,a._)(this,`handleKeyDown`,e=>{var t,n;(t=(n=this.props).onKeyDown)==null||t.call(n,e),e.defaultPrevented||this.scroller.looping||this.props.keyboard===!1||e.altKey||e.ctrlKey||e.metaKey||e.target instanceof HTMLElement&&/^(INPUT|TEXTAREA|SELECT)$/.test(e.target.tagName)||(e.key===`ArrowLeft`?(e.preventDefault(),this.store.previous(!0)):e.key===`ArrowRight`&&(e.preventDefault(),this.store.next(!0)))}),(0,a._)(this,`handleClick`,e=>{var t,n,r;if((n=(r=this.props).onClick)==null||n.call(r,e),e.defaultPrevented||this.scroller.looping)return;let i=e.target instanceof Element?e.target.closest(`[data-carousel-action]`):null,{carouselAction:a,index:o}=(t=i==null?void 0:i.dataset)==null?{}:t;switch(a){case`previous`:this.store.previous(!0);break;case`next`:this.store.next(!0);break;case`slide`:o!==void 0&&this.store.setIndex(Number(o),!0);break;case`toggle`:this.store.toggle()}}),(0,a._)(this,`scrollToActive`,(e,t,n)=>{var r;let i=this.track.current,a=this.root.current;if(!i||!a)return;this.scroller.dispose();let o=[...i.children],s=o[e];if(!s)return;let c=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,l=getComputedStyle(a),u=Number.parseFloat(l.getPropertyValue(`--bs-carousel-items`))||1,d=Number.parseFloat(l.getPropertyValue(`--bs-carousel-items-peek`))||0,f=o.some(e=>e.style.width||e.style.flexBasis),p=n===1&&e===0&&t===o.length-1||n===-1&&t===0&&e===o.length-1,m=((r=this.props.ends)==null?`loop`:r)===`loop`&&!this.props.fade&&!c&&u===1&&d===0&&!this.props.center&&!f;p&&m?this.scroller.loop(i,o[t],s,n===1):this.scroller.navigate(i,s.offsetLeft,!p&&!c)}),(0,a._)(this,`renderSlide`,(e,t)=>{let n=this.store.activeIndex===t;return/*#__PURE__*/ (0,m.isValidElement)(e)&&typeof e.type!=`string`?/*#__PURE__*/ (0,m.cloneElement)(e,{active:n,"aria-hidden":!n}):/*#__PURE__*/ (0,u.jsx)(dt,{active:n,"aria-hidden":!n,children:e},t)}),(0,a._)(this,`renderControls`,()=>{let{controls:e=!0,ends:t=`loop`}=this.props;if(!e)return null;let n=this.store.activeIndex===0,r=this.store.activeIndex===this.getSlides().length-1,i=this.props.controlsPlacement===`overlay`?`carousel-control-prev`:`btn btn-subtle theme-secondary`;return/*#__PURE__*/ (0,u.jsxs)(u.Fragment,{children:[/*#__PURE__*/ (0,u.jsxs)(`button`,{type:`button`,className:i,"data-carousel-action":`previous`,"aria-label":`Previous`,disabled:t===`stop`&&n,children:[/*#__PURE__*/ (0,u.jsx)(z,{name:`chevron-left`,"aria-hidden":`true`}),/*#__PURE__*/ (0,u.jsx)(`span`,{className:`visually-hidden`,children:`Previous`})]}),/*#__PURE__*/ (0,u.jsxs)(`button`,{type:`button`,className:this.props.controlsPlacement===`overlay`?`carousel-control-next`:`btn btn-subtle theme-secondary`,"data-carousel-action":`next`,"aria-label":`Next`,disabled:t===`stop`&&r,children:[/*#__PURE__*/ (0,u.jsx)(z,{name:`chevron-right`,"aria-hidden":`true`}),/*#__PURE__*/ (0,u.jsx)(`span`,{className:`visually-hidden`,children:`Next`})]})]})}),(0,a._)(this,`renderIndicators`,()=>this.props.indicators&&this.getSlides().length>1?/*#__PURE__*/ (0,u.jsx)(`div`,{className:`carousel-indicators`,children:this.getSlides().map((e,t)=>/*#__PURE__*/ (0,u.jsx)(`button`,{type:`button`,"data-carousel-action":`slide`,"data-index":t,"aria-label":`Slide ${t+1}`,"aria-current":this.store.activeIndex===t?`true`:void 0,className:(0,d.default)({active:this.store.activeIndex===t})},t))}):null),(0,a._)(this,`renderPlayPause`,()=>(this.props.playPause||this.props.autoplay)&&/*#__PURE__*/ (0,u.jsx)(`button`,{type:`button`,className:`btn-icon btn-sm carousel-control-play-pause`,"data-carousel-action":`toggle`,"aria-label":this.store.playing?`Pause`:`Play`,children:/*#__PURE__*/ (0,u.jsx)(z,{name:this.store.playing?`pause-fill`:`play-fill`,"aria-hidden":`true`})}))}},{c:[ft,lt]}=(0,t._)(st,[],[p.observer],ut),st),ct=class extends o._{constructor(){super(ft),(0,a._)(this,`displayName`,`Carousel`),lt()}},(0,a._)(ct,ot,void 0),ct);let pt,mt;var ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At;const jt=`idea-react:collapse-toggle`,Mt=`idea-react:collapse-change`,Nt=`idea-react:collapse-open`;let Pt;new(pt=(ht=/*#__PURE__*/ new WeakMap,gt=class extends (Ct=m.Component){get componentProps(){return this.props}get expanded(){return(0,n._)(this,ht)}set expanded(e){(0,i._)(this,ht,e)}get isOpen(){var e;return(e=this.componentProps.open)==null?this.expanded:e}componentDidMount(){this.root.current.addEventListener(jt,this.handleToggle),document.addEventListener(Nt,this.handlePeerOpen),this.notify(),this.isOpen&&this.notifyOpen()}componentDidUpdate(e){e.open!==this.componentProps.open&&this.isOpen&&this.notifyOpen(),this.notify()}componentWillUnmount(){this.root.current.removeEventListener(jt,this.handleToggle),document.removeEventListener(Nt,this.handlePeerOpen)}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,n=this.componentProps,{as:r,open:i,defaultOpen:a,parent:o,onOpenChange:f,horizontal:p,className:m}=n,h=(0,l._)(n,[`as`,`open`,`defaultOpen`,`parent`,`onOpenChange`,`horizontal`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},h),{ref:this.root,className:(0,d.default)(`collapse`,{"collapse-horizontal":p,show:this.isOpen},m)}))}constructor(...e){var t;super(...e),(0,r._)(this,ht,{writable:!0,value:(Tt(this),wt(this,(t=this.componentProps.defaultOpen)!=null&&t))}),(0,a._)(this,`root`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`notify`,()=>this.root.current.dispatchEvent(new Event(Mt,{bubbles:!0}))),(0,a._)(this,`notifyOpen`,()=>this.root.current.dispatchEvent(new Event(Nt,{bubbles:!0}))),(0,a._)(this,`setOpen`,(0,f.action)(e=>{var t,n;e!==this.isOpen&&((t=(n=this.componentProps).onOpenChange)==null||t.call(n,e),this.componentProps.open===void 0&&(this.expanded=e,e&&this.notifyOpen()))})),(0,a._)(this,`handleToggle`,e=>{e.target===this.root.current&&this.setOpen(!this.isOpen)}),(0,a._)(this,`handlePeerOpen`,({target:e})=>{let{parent:t}=this.componentProps,n=this.root.current,r=t?n==null?void 0:n.closest(t):null;t&&r&&e instanceof Element&&e!==n&&e.closest(t)===r&&this.setOpen(!1)})}},{e:[wt,Tt],c:[Pt,St]}=(0,t._)(gt,[[f.observable,1,`expanded`]],[p.observer],Ct),gt),_t=class extends o._{constructor(){super(Pt),(0,a._)(this,`displayName`,`Collapse`),St()}},(0,a._)(_t,pt,void 0),_t);let Ft;new(mt=(vt=/*#__PURE__*/ new WeakMap,yt=/*#__PURE__*/ new WeakMap,bt=class extends (Dt=m.Component){get componentProps(){return this.props}get expanded(){return(0,n._)(this,vt)}set expanded(e){(0,i._)(this,vt,e)}get controls(){return(0,n._)(this,yt)}set controls(e){(0,i._)(this,yt,e)}get targets(){return[...document.querySelectorAll(this.componentProps.target)]}componentDidMount(){document.addEventListener(Mt,this.refresh),this.refresh()}componentDidUpdate(e){e.target!==this.componentProps.target&&this.refresh()}componentWillUnmount(){document.removeEventListener(Mt,this.refresh)}render(){var e;let t=this.componentProps,{as:n,target:r,href:i,type:a=`button`,variant:o,theme:f,size:p,disabled:m,icon:h,styled:g,className:_}=t,v=(0,l._)(t,[`as`,`target`,`href`,`type`,`variant`,`theme`,`size`,`disabled`,`icon`,`styled`,`className`]),y=n==null?i?`a`:`button`:n,b=y===`button`,x=(0,d.default)(o===!1?void 0:o?`btn-${o}`:h?void 0:`btn`,f&&`theme-${f}`,p&&`btn-${p}`,{"btn-icon":h,"btn-styled":g,disabled:m},_);return/*#__PURE__*/ (0,u.jsx)(y,(0,c._)((0,s._)({},v),{type:b?a:void 0,href:m?void 0:i,disabled:b||typeof y!=`string`?m:void 0,"aria-disabled":!b&&m||void 0,tabIndex:!b&&m?-1:v.tabIndex,className:x,role:(e=v.role)==null?`button`:e,"aria-controls":this.controls||void 0,"aria-expanded":this.expanded,onClick:this.handleClick}))}constructor(...e){super(...e),(0,r._)(this,vt,{writable:!0,value:(At(this),Ot(this,!1))}),(0,r._)(this,yt,{writable:!0,value:kt(this,``)}),(0,a._)(this,`refresh`,(0,f.action)(()=>{let{targets:e}=this;this.expanded=e.some(e=>e.classList.contains(`show`)),this.controls=e.map(({id:e})=>e).filter(Boolean).join(` `)})),(0,a._)(this,`handleClick`,e=>{var t,n;if((t=(n=this.componentProps).onClick)==null||t.call(n,e),!e.defaultPrevented&&(e.preventDefault(),!this.componentProps.disabled))for(let e of this.targets)e.dispatchEvent(new Event(jt))})}},{e:[Ot,kt,At],c:[Ft,Et]}=(0,t._)(bt,[[f.observable,1,`expanded`],[f.observable,1,`controls`]],[p.observer],Dt),bt),xt=class extends o._{constructor(){super(Ft),(0,a._)(this,`displayName`,`CollapseToggle`),Et()}},(0,a._)(xt,mt,void 0),xt);const It=[`primary`,`secondary`,`success`,`danger`,`warning`,`info`,`dark`,`light`];function Lt(e,t=[]){let n=t[0]?It.filter(e=>!t.find(t=>t===e)):It;return n[[...e].reduce((e,t)=>e+t.charCodeAt(0),0)%n.length]}var Rt={hiddenBackdrop:`Ocw1GG_hiddenBackdrop`};const zt=e=>(parseFloat(e)||0)*(e.trim().endsWith(`ms`)?1:1e3),Bt=L(e=>{let{as:t=`div`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`dialog-header`,n)}))});Bt.displayName=`DialogHeader`;const Vt=L(e=>{let{as:t=`h1`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`dialog-title`,n)}))});Vt.displayName=`DialogTitle`;const Ht=L(e=>{let{as:t=`div`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`dialog-body`,n)}))});Ht.displayName=`DialogBody`;const Ut=L(e=>{let{as:t=`div`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`dialog-footer`,n)}))});Ut.displayName=`DialogFooter`;var Wt=class e extends m.Component{get componentProps(){return this.props}get open(){var e,t;return(e=(t=this.element.current)==null?void 0:t.open)!=null&&e}componentDidMount(){this.componentProps.open&&this.show()}componentDidUpdate({open:e,modal:t,scroll:n}){let r=this.componentProps.modal!==t,i=this.componentProps.open!==e,a=this.open;(i||r||this.componentProps.scroll!==n)&&(this.open&&this.componentProps.modal!==t&&(this.switchingMode=!0,this.close()),this.componentProps.scroll?this.unlockScroll():this.open&&this.componentProps.modal!==!1&&this.lockScroll(),(i||r)&&(this.componentProps.open||!i&&r&&a?this.show():this.close()))}componentWillUnmount(){this.finishClose()}render(){var e;let t=(e=this.componentProps.as)==null?`dialog`:e,n=this.componentProps,{as:r,open:i,modal:a,keyboard:o,backdrop:f=!0,theme:p,dialog:m=!0,size:h,fullscreen:g,scrollable:_,animation:v=`fade`,scroll:y,className:b,onCancel:x,onClick:S,onKeyDown:C,onClose:w}=n,T=(0,l._)(n,[`as`,`open`,`modal`,`keyboard`,`backdrop`,`theme`,`dialog`,`size`,`fullscreen`,`scrollable`,`animation`,`scroll`,`className`,`onCancel`,`onClick`,`onKeyDown`,`onClose`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},T),{ref:this.element,className:(0,d.default)(m&&`dialog`,m&&h&&`dialog-${h}`,m&&g&&(g===!0?`dialog-fullscreen`:`${g}-down:dialog-fullscreen`),m&&_&&`dialog-scrollable`,m&&v!==`fade`&&`dialog-${v}`,f===!1&&Rt.hiddenBackdrop,b),"data-backdrop":f===!1?`false`:void 0,"data-bs-theme":p,onCancel:this.handleCancel,onKeyDown:this.handleKeyDown,onClick:this.handleClick,onClose:this.handleClose}))}constructor(...t){super(...t),(0,a._)(this,`element`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`returnFocus`,void 0),(0,a._)(this,`switchingMode`,!1),(0,a._)(this,`closeTimer`,void 0),(0,a._)(this,`show`,()=>{var e;if(clearTimeout(this.closeTimer),(e=this.element.current)==null||e.classList.remove(`hiding`),this.open)return;let t=this.element.current;t&&(!this.switchingMode&&document.activeElement instanceof HTMLElement&&(this.returnFocus=document.activeElement),this.componentProps.modal===!1?t.show():t.showModal(),this.componentProps.modal!==!1&&!this.componentProps.scroll&&this.lockScroll())}),(0,a._)(this,`lockScroll`,()=>{let{scrollLocks:t}=e;t.size||(e.bodyOverflow=document.body.style.overflow,document.body.style.overflow=`hidden`),t.add(this)}),(0,a._)(this,`unlockScroll`,()=>{let{scrollLocks:t}=e;t.delete(this)&&(t.size||(document.body.style.overflow=e.bodyOverflow))}),(0,a._)(this,`close`,()=>{let e=this.element.current;if(!this.open||!e||this.switchingMode)return this.finishClose();let{transitionDuration:t,transitionDelay:n}=getComputedStyle(e),r=t.split(`,`).map(zt),i=n.split(`,`).map(zt),a=Math.max(0,...r.map((e,t)=>e+i[t%i.length]));if(!a)return this.finishClose();e.classList.contains(`hiding`)||(e.classList.add(`hiding`),this.closeTimer=setTimeout(this.finishClose,a))}),(0,a._)(this,`finishClose`,()=>{var e,t,n;clearTimeout(this.closeTimer),(e=this.element.current)==null||e.classList.remove(`hiding`),this.unlockScroll(),this.open&&((t=this.element.current)==null||t.close(),(n=this.returnFocus)==null||n.focus())}),(0,a._)(this,`handleClose`,e=>{var t,n;if(this.switchingMode||(t=(n=this.componentProps).onClose)==null||t.call(n,e),!this.open){var r;this.unlockScroll(),(r=this.returnFocus)==null||r.focus()}this.switchingMode=!1}),(0,a._)(this,`handleCancel`,e=>{let{onCancel:t,keyboard:n=!0}=this.componentProps;t==null||t(e);let{defaultPrevented:r}=e;e.preventDefault(),n&&!r&&this.close()}),(0,a._)(this,`handleKeyDown`,e=>{let{onKeyDown:t,keyboard:n=!0}=this.componentProps;t==null||t(e);let{key:r,defaultPrevented:i}=e;r===`Escape`&&n&&!i&&(e.preventDefault(),this.close())}),(0,a._)(this,`handleClick`,e=>{let{onClick:t,backdrop:n=!0}=this.componentProps;t==null||t(e);let{defaultPrevented:r,target:i,currentTarget:a,clientX:o,clientY:s}=e;if(n!==!0||r||i!==a)return;let{left:c,right:l,top:u,bottom:d}=a.getBoundingClientRect();(o<c||o>l||s<u||s>d)&&this.close()})}};(0,a._)(Wt,`scrollLocks`,/* @__PURE__ */ new Set),(0,a._)(Wt,`bodyOverflow`,``);let Gt;var Kt,qt,Jt,Yt,Xt,Zt,Qt,$t;const en=L(e=>{let{as:t=`div`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`drawer-header`,n)}))});en.displayName=`DrawerHeader`;const tn=L(e=>{let{as:t=`h5`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`drawer-title`,n)}))});tn.displayName=`DrawerTitle`;const nn=L(e=>{let{as:t=`div`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`drawer-body`,n)}))});nn.displayName=`DrawerBody`;const rn=L(e=>{let{as:t=`div`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`drawer-footer`,n)}))});rn.displayName=`DrawerFooter`;const an={sm:576,md:768,lg:1024,xl:1280,"2xl":1536};let on;new(Gt=(Kt=/*#__PURE__*/ new WeakMap,qt=class extends (Xt=m.Component){get componentProps(){return this.props}get expanded(){return(0,n._)(this,Kt)}set expanded(e){(0,i._)(this,Kt,e)}componentDidMount(){this.observeBreakpoint()}componentDidUpdate({responsive:e,open:t}){e!==this.componentProps.responsive&&this.observeBreakpoint(),t!==this.componentProps.open&&this.componentProps.open&&(this.dismissed=!1)}componentWillUnmount(){var e;(e=this.media)==null||e.removeEventListener(`change`,this.handleBreakpoint)}render(){let e=this.componentProps,{as:t,title:n,placement:r=`end`,footer:i,bodyClassName:a,onDismiss:o,sheet:f,translucent:p,responsive:m,animation:h=`slide`,fullscreen:g,open:_,modal:v,scroll:y,backdrop:b,className:x,children:S}=e,C=(0,l._)(e,[`as`,`title`,`placement`,`footer`,`bodyClassName`,`onDismiss`,`sheet`,`translucent`,`responsive`,`animation`,`fullscreen`,`open`,`modal`,`scroll`,`backdrop`,`className`,`children`]);return/*#__PURE__*/ (0,u.jsxs)(Wt,(0,c._)((0,s._)({as:this.componentProps.as},C),{ref:this.dialog,open:this.expanded||_,modal:this.expanded?!1:v==null?!(y&&b===!1):v,scroll:y,backdrop:b,dialog:!1,tabIndex:-1,"aria-label":typeof n==`string`?n:C[`aria-label`],className:(0,d.default)(m?`${m}:drawer`:`drawer`,`drawer-${r}`,{"drawer-sheet":f,"drawer-translucent":p,"drawer-instant":h===`instant`,"drawer-fullscreen":g===!0},x),onClose:this.handleClose,children:[/*#__PURE__*/ (0,u.jsxs)(en,{children:[/*#__PURE__*/ (0,u.jsx)(tn,{children:n}),/*#__PURE__*/ (0,u.jsx)(V,{onClick:this.handleDismiss})]}),/*#__PURE__*/ (0,u.jsx)(nn,{className:a,children:S}),i&&/*#__PURE__*/ (0,u.jsx)(rn,{children:i})]}))}constructor(...e){super(...e),(0,r._)(this,Kt,{writable:!0,value:($t(this),Zt(this,!1))}),(0,a._)(this,`dialog`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`media`,void 0),(0,a._)(this,`dismissed`,!1),(0,a._)(this,`observeBreakpoint`,()=>{var e,t;(e=this.media)==null||e.removeEventListener(`change`,this.handleBreakpoint);let{responsive:n}=this.componentProps;this.media=n?window.matchMedia(`(min-width: ${an[n]}px)`):void 0,this.handleBreakpoint(),(t=this.media)==null||t.addEventListener(`change`,this.handleBreakpoint)}),(0,a._)(this,`handleBreakpoint`,Qt(this,()=>{var e,t;return this.expanded=(e=(t=this.media)==null?void 0:t.matches)!=null&&e})),(0,a._)(this,`handleDismiss`,()=>{var e,t,n;(e=(t=this.componentProps).onDismiss)==null||e.call(t),this.dismissed=!0,(n=this.dialog.current)==null||n.close()}),(0,a._)(this,`handleClose`,()=>{var e,t;this.dismissed||this.expanded||(e=(t=this.componentProps).onDismiss)==null||e.call(t),this.dismissed=!1})}},{e:[Zt,Qt,$t],c:[on,Yt]}=(0,t._)(qt,[[f.observable,1,`expanded`],[f.action,0,`handleBreakpoint`]],[p.observer],Xt),qt),Jt=class extends o._{constructor(){super(on),(0,a._)(this,`displayName`,`Drawer`),Yt()}},(0,a._)(Jt,Gt,void 0),Jt);var sn=class extends m.PureComponent{get componentProps(){return this.props}componentDidMount(){window.addEventListener(`click`,this.switchClick,!0)}componentWillUnmount(){window.removeEventListener(`click`,this.switchClick,!0)}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,n=this.componentProps,{as:r,children:i,onInnerClick:a,onOuterClick:o}=n,d=(0,l._)(n,[`as`,`children`,`onInnerClick`,`onOuterClick`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({ref:this.root},d),{children:i}))}constructor(...e){super(...e),(0,a._)(this,`root`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`switchClick`,e=>{var t;let{onInnerClick:n,onOuterClick:r}=this.componentProps;(t=this.root.current)!=null&&t.contains(e.target)?n==null||n(e):r==null||r(e)})}};
2
2
  /*!
3
3
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
4
4
  *
5
5
  * Copyright (c) 2014-2017, Jon Schlinkert.
6
6
  * Released under the MIT License.
7
7
  */
8
- function on(e){return Object.prototype.toString.call(e)===`[object Object]`}function sn(e){var t,n;return on(e)!==!1&&(t=e.constructor,t===void 0||(n=t.prototype,on(n)!==!1&&n.hasOwnProperty(`isPrototypeOf`)!==!1))}var cn=/* @__PURE__ */ e.t(((e,t,n)=>{var r=n&&n.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.prettyPrint=void 0;var a=[];function o(e){var t=typeof e;return e!==null&&(t===`object`||t===`function`)}function s(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function c(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function l(e,t,n){n===void 0&&(n=``);var u=r(r({},{indent:` `,singleQuotes:!0}),t),d=u.inlineCharacterLimit===void 0?{newLine:`
8
+ function cn(e){return Object.prototype.toString.call(e)===`[object Object]`}function ln(e){var t,n;return cn(e)!==!1&&(t=e.constructor,t===void 0||(n=t.prototype,cn(n)!==!1&&n.hasOwnProperty(`isPrototypeOf`)!==!1))}var un=/* @__PURE__ */ e.t(((e,t,n)=>{var r=n&&n.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.prettyPrint=void 0;var a=[];function o(e){var t=typeof e;return e!==null&&(t===`object`||t===`function`)}function s(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function c(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function l(e,t,n){n===void 0&&(n=``);var u=r(r({},{indent:` `,singleQuotes:!0}),t),d=u.inlineCharacterLimit===void 0?{newLine:`
9
9
  `,newLineOrSpace:`
10
10
  `,pad:n,indent:n+u.indent}:{newLine:`@@__PRETTY_PRINT_NEW_LINE__@@`,newLineOrSpace:`@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@`,pad:`@@__PRETTY_PRINT_PAD__@@`,indent:`@@__PRETTY_PRINT_INDENT__@@`},f=function(e){if(u.inlineCharacterLimit===void 0)return e;var t=e.replace(new RegExp(d.newLine,`g`),``).replace(new RegExp(d.newLineOrSpace,`g`),` `).replace(RegExp(d.pad+`|`+d.indent,`g`),``);return t.length<=u.inlineCharacterLimit?t:e.replace(RegExp(d.newLine+`|`+d.newLineOrSpace,`g`),`
11
11
  `).replace(new RegExp(d.pad,`g`),n).replace(new RegExp(d.indent,`g`),n+u.indent)};if(a.indexOf(e)!==-1)return`"[Circular]"`;if(e==null||typeof e==`number`||typeof e==`boolean`||typeof e==`function`||typeof e==`symbol`||s(e))return String(e);if(e instanceof Date)return`new Date('${e.toISOString()}')`;if(Array.isArray(e)){if(e.length===0)return`[]`;a.push(e);var p=`[`+d.newLine+e.map(function(t,r){var i=e.length-1===r?d.newLine:`,`+d.newLineOrSpace,a=l(t,u,n+u.indent);return u.transform&&(a=u.transform(e,r,a)),d.indent+a+i}).join(``)+d.pad+`]`;return a.pop(),f(p)}if(o(e)){var m=i(i([],Object.keys(e),!0),c(e),!0);if(u.filter&&(m=m.filter(function(t){return u.filter&&u.filter(e,t)})),m.length===0)return`{}`;a.push(e);var p=`{`+d.newLine+m.map(function(t,r){var i=m.length-1===r?d.newLine:`,`+d.newLineOrSpace,a=typeof t==`symbol`,o=!a&&/^[a-z$_][a-z$_0-9]*$/i.test(t.toString()),s=a||o?t:l(t,u),c=l(e[t],u,n+u.indent);return u.transform&&(c=u.transform(e,t,c)),d.indent+String(s)+`: `+c+i}).join(``)+d.pad+`}`;return a.pop(),f(p)}return e=String(e).replace(/[\r\n]/g,function(e){return e===`
12
- `?`\\n`:`\\r`}),u.singleQuotes?(e=e.replace(/\\?'/g,`\\'`),`'${e}'`):(e=e.replace(/"/g,`\\"`),`"${e}"`)}e.prettyPrint=l})),ln=/* @__PURE__ */ e.t((e=>{
12
+ `?`\\n`:`\\r`}),u.singleQuotes?(e=e.replace(/\\?'/g,`\\'`),`'${e}'`):(e=e.replace(/"/g,`\\"`),`"${e}"`)}e.prettyPrint=l})),dn=/* @__PURE__ */ e.t((e=>{
13
13
  /** @license React v16.13.1
14
14
  * react-is.production.min.js
15
15
  *
@@ -18,7 +18,7 @@ function on(e){return Object.prototype.toString.call(e)===`[object Object]`}func
18
18
  * This source code is licensed under the MIT license found in the
19
19
  * LICENSE file in the root directory of this source tree.
20
20
  */
21
- var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e=e&&e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),un=/* @__PURE__ */ e.t((e=>{
21
+ var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e=e&&e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),fn=/* @__PURE__ */ e.t((e=>{
22
22
  /** @license React v16.13.1
23
23
  * react-is.development.js
24
24
  *
@@ -27,15 +27,15 @@ var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):6010
27
27
  * This source code is licensed under the MIT license found in the
28
28
  * LICENSE file in the root directory of this source tree.
29
29
  */
30
- process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)}function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case l:case u:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case c:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var S=l,C=u,w=c,T=s,E=n,D=d,O=i,k=h,A=m,j=r,M=o,N=a,ee=f,P=!1;function te(e){return P||(P=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.`)),F(e)||x(e)===l}function F(e){return x(e)===u}function ne(e){return x(e)===c}function I(e){return x(e)===s}function L(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function re(e){return x(e)===d}function ie(e){return x(e)===i}function ae(e){return x(e)===h}function oe(e){return x(e)===m}function se(e){return x(e)===r}function ce(e){return x(e)===o}function le(e){return x(e)===a}function ue(e){return x(e)===f}e.AsyncMode=S,e.ConcurrentMode=C,e.ContextConsumer=w,e.ContextProvider=T,e.Element=E,e.ForwardRef=D,e.Fragment=O,e.Lazy=k,e.Memo=A,e.Portal=j,e.Profiler=M,e.StrictMode=N,e.Suspense=ee,e.isAsyncMode=te,e.isConcurrentMode=F,e.isContextConsumer=ne,e.isContextProvider=I,e.isElement=L,e.isForwardRef=re,e.isFragment=ie,e.isLazy=ae,e.isMemo=oe,e.isPortal=se,e.isProfiler=ce,e.isStrictMode=le,e.isSuspense=ue,e.isValidElementType=b,e.typeOf=x})()})),dn=/* @__PURE__ */ e.t(((e,t)=>{t.exports=process.env.NODE_ENV===`production`?ln():un()})),fn=cn(),H=dn(),U=(function(e,t){return e===0?``:Array(e*t).fill(` `).join(``)});function pn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mn(e){if(Array.isArray(e))return pn(e)}function hn(e,t,n){return(t=Sn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gn(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function _n(){throw TypeError(`Invalid attempt to spread non-iterable instance.
31
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?vn(Object(n),!0).forEach(function(t){hn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bn(e){return mn(e)||gn(e)||Cn(e)||_n()}function xn(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Sn(e){var t=xn(e,`string`);return typeof t==`symbol`?t:t+``}function W(e){"@babel/helpers - typeof";return W=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},W(e)}function Cn(e,t){if(e){if(typeof e==`string`)return pn(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pn(e,t):void 0}}function wn(e,t){if(e===null||W(e)!==`object`||e instanceof Date||e instanceof RegExp)return e;if(/*#__PURE__*/ m.isValidElement(e)){var n=yn({},e);return delete n._owner,n}return t.add(e),Array.isArray(e)?e.map(function(e){return wn(e,t)}):Object.keys(e).sort().reduce(function(n,r){return n[r]=r===`current`||t.has(e[r])?`[Circular]`:wn(e[r],t),n},{})}function Tn(e){return wn(e,/* @__PURE__ */ new WeakSet)}var En=function(e){return{type:`string`,value:e}},Dn=function(e){return{type:`number`,value:e}},On=function(e,t,n,r){return{type:`ReactElement`,displayName:e,props:t,defaultProps:n,childrens:r}},kn=function(e,t){return{type:`ReactFragment`,key:e,childrens:t}},An=!!m.Fragment,jn=function(e){return!e.name||e.name===`_default`?`No Display Name`:e.name},Mn=function(e){switch(!0){case!!e.displayName:return e.displayName;case e.$$typeof===H.Memo:return Mn(e.type);case e.$$typeof===H.ForwardRef:return Mn(e.render);default:return jn(e)}},Nn=function(e){switch(!0){case typeof e.type==`string`:return e.type;case typeof e.type==`function`:return e.type.displayName?e.type.displayName:jn(e.type);case(0,H.isForwardRef)(e):case(0,H.isMemo)(e):return Mn(e.type);case(0,H.isContextConsumer)(e):return`${e.type._context.displayName||`Context`}.Consumer`;case(0,H.isContextProvider)(e):return`${e.type.displayName||`Context`}.Provider`;case(0,H.isLazy)(e):return`Lazy`;case(0,H.isProfiler)(e):return`Profiler`;case(0,H.isStrictMode)(e):return`StrictMode`;case(0,H.isSuspense)(e):return`Suspense`;default:return`UnknownElementType`}},Pn=function(e,t){return t!==`children`},Fn=function(e){return e!==!0&&e!==!1&&e!==null&&e!==``},In=function(e,t){var n={};return Object.keys(e).filter(function(n){return t(e[n],n)}).forEach(function(t){return n[t]=e[t]}),n},G=function(e,t){var n=t.displayName,r=n===void 0?Nn:n;if(typeof e==`string`)return En(e);if(typeof e==`number`)return Dn(e);if(!/*#__PURE__*/ m.default.isValidElement(e))throw Error(`react-element-to-jsx-string: Expected a React.Element, got \`${W(e)}\``);var i=r(e),a=In(e.props,Pn),o=e.key;typeof o==`string`&&o.search(/^\./)&&(a.key=o);var s=In(e.type.defaultProps||{},Pn),c=m.default.Children.toArray(e.props.children).filter(Fn).map(function(e){return G(e,t)});return An&&e.type===m.Fragment?kn(o,c):On(i,a,s,c)};function Ln(){}var Rn=function(e){return e.toString().split(`
32
- `).map(function(e){return e.trim()}).join(``)},zn=(function(e,t){var n=t.functionValue,r=n===void 0?Rn:n;return!t.showFunctions&&r===Rn?r(Ln):r(e)}),Bn=(function(e,t,n,r){var i=Tn(e),a=(0,fn.prettyPrint)(i,{transform:function(e,t,i){var a=e[t];return a&&/*#__PURE__*/ (0,m.isValidElement)(a)?K(G(a,r),!0,n,r):typeof a==`function`?zn(a,r):i}});return t?a.replace(/\s+/g,` `).replace(/{ /g,`{`).replace(/ }/g,`}`).replace(/\[ /g,`[`).replace(/ ]/g,`]`):a.replace(/\t/g,U(1,r.tabStop)).replace(/\n([^$])/g,`
33
- ${U(n+1,r.tabStop)}$1`)}),Vn=function(e){return e.replace(/"/g,`&quot;`)},Hn=function(e,t,n,r){if(typeof e==`number`)return`{${String(e)}}`;if(typeof e==`string`)return`"${Vn(e)}"`;if(W(e)===`symbol`){var i=e.valueOf().toString().replace(/Symbol\((.*)\)/,`$1`);return i?`{Symbol('${i}')}`:`{Symbol()}`}return typeof e==`function`?`{${zn(e,r)}}`:/*#__PURE__*/ (0,m.isValidElement)(e)?`{${K(G(e,r),!0,n,r)}}`:e instanceof Date?isNaN(e.valueOf())?`{new Date(NaN)}`:`{new Date("${e.toISOString()}")}`:sn(e)||Array.isArray(e)?`{${Bn(e,t,n,r)}}`:`{${String(e)}}`},Un=(function(e,t,n,r,i,a,o,s){if(!t&&!r)throw Error(`The prop "${e}" has no value and no default: could not be formatted`);var c=t?n:i,l=s.useBooleanShorthandSyntax,u=s.tabStop,d=Hn(c,a,o,s),f=` `,p=`
34
- ${U(o+1,u)}`,m=d.includes(`
35
- `);return l&&d===`{true}`?(f+=`${e}`,p+=`${e}`):(f+=`${e}=${d}`,p+=`${e}=${d}`),{attributeFormattedInline:f,attributeFormattedMultiline:p,isMultilineAttribute:m}}),Wn=(function(e,t){var n=e.slice(0,e.length>0?e.length-1:0),r=e[e.length-1];return r&&(t.type===`string`||t.type===`number`)&&(r.type===`string`||r.type===`number`)?n.push(En(String(r.value)+String(t.value))):(r&&n.push(r),n.push(t)),n}),Gn=function(e){return[`key`,`ref`].includes(e)},Kn=(function(e){return function(t){var n=t.includes(`key`),r=t.includes(`ref`),i=t.filter(function(e){return!Gn(e)}),a=bn(e?i.sort():i);return r&&a.unshift(`ref`),n&&a.unshift(`key`),a}});function qn(e,t){return Array.isArray(t)?function(e){return t.indexOf(e)===-1}:function(n){return t(e[n],n)}}var Jn=function(e,t,n,r,i){var a=i.tabStop;return e.type===`string`?t.split(`
36
- `).map(function(e,t){return t===0?e:`${U(r,a)}${e}`}).join(`
37
- `):t},Yn=function(e,t,n){return function(r){return Jn(r,K(r,e,t,n),e,t,n)}},Xn=function(e,t){return function(n){var r=Object.keys(e).includes(n);return!r||r&&e[n]!==t[n]}},Zn=function(e,t,n,r,i){return i?U(n,r).length+t.length>i:e.length>1},Qn=function(e,t,n,r,i,a,o){return(Zn(e,t,i,a,o)||n)&&!r},$n=(function(e,t,n,r){var i=e.type,a=e.displayName,o=a===void 0?``:a,s=e.childrens,c=e.props,l=c===void 0?{}:c,u=e.defaultProps,d=u===void 0?{}:u;if(i!==`ReactElement`)throw Error(`The "formatReactElementNode" function could only format node of type "ReactElement". Given: ${i}`);var f=r.filterProps,p=r.maxInlineAttributesLineLength,m=r.showDefaultProps,h=r.sortProps,g=r.tabStop,_=`<${o}`,v=_,y=_,b=!1,x=[],S=qn(l,f);Object.keys(l).filter(S).filter(Xn(d,l)).forEach(function(e){return x.push(e)}),Object.keys(d).filter(S).filter(function(){return m}).filter(function(e){return!x.includes(e)}).forEach(function(e){return x.push(e)});var C=Kn(h)(x);if(C.forEach(function(e){var i=Un(e,Object.keys(l).includes(e),l[e],Object.keys(d).includes(e),d[e],t,n,r),a=i.attributeFormattedInline,o=i.attributeFormattedMultiline;i.isMultilineAttribute&&(b=!0),v+=a,y+=o}),y+=`
38
- ${U(n,g)}`,_=Qn(C,v,b,t,n,g,p)?y:v,s&&s.length>0){var w=n+1;_+=`>`,t||(_+=`
39
- `,_+=U(w,g)),_+=s.reduce(Wn,[]).map(Yn(t,w,r)).join(t?``:`
40
- ${U(w,g)}`),t||(_+=`
41
- `,_+=U(w-1,g)),_+=`</${o}>`}else Zn(C,v,n,g,p)||(_+=` `),_+=`/>`;return _}),er=``,tr=`React.Fragment`,nr=function(e,t,n){var r={};return t&&(r={key:t}),{type:`ReactElement`,displayName:e,props:r,defaultProps:{},childrens:n}},rr=function(e){return!!e.key},ir=function(e){return e.childrens.length===0},ar=(function(e,t,n,r){var i=e.type,a=e.key,o=e.childrens;if(i!==`ReactFragment`)throw Error(`The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: ${i}`);return $n(nr(r.useFragmentShortSyntax?ir(e)||rr(e)?tr:er:tr,a,o),t,n,r)}),or=[`<`,`>`,`{`,`}`],sr=function(e){return or.some(function(t){return e.includes(t)})},cr=function(e){return sr(e)?`{\`${e}\`}`:e},lr=function(e){var t=e;return t.endsWith(` `)&&(t=t.replace(/^(.*?)(\s+)$/,`$1{'$2'}`)),t.startsWith(` `)&&(t=t.replace(/^(\s+)(.*)$/,`{'$1'}$2`)),t},K=(function(e,t,n,r){if(e.type===`number`)return String(e.value);if(e.type===`string`)return e.value?`${lr(cr(String(e.value)))}`:``;if(e.type===`ReactElement`)return $n(e,t,n,r);if(e.type===`ReactFragment`)return ar(e,t,n,r);throw TypeError(`Unknow format type "${e.type}"`)}),ur=(function(e,t){return K(e,!1,0,t)}),dr=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.filterProps,r=n===void 0?[]:n,i=t.showDefaultProps,a=i===void 0||i,o=t.showFunctions,s=o!==void 0&&o,c=t.functionValue,l=t.tabStop,u=l===void 0?2:l,d=t.useBooleanShorthandSyntax,f=d===void 0||d,p=t.useFragmentShortSyntax,m=p===void 0||p,h=t.sortProps,g=h===void 0||h,_=t.maxInlineAttributesLineLength,v=t.displayName;if(!e)throw Error(`react-element-to-jsx-string: Expected a ReactElement`);var y={filterProps:r,showDefaultProps:a,showFunctions:s,functionValue:c,tabStop:u,useBooleanShorthandSyntax:f,useFragmentShortSyntax:m,sortProps:g,maxInlineAttributesLineLength:_,displayName:v};return ur(G(e,y),y)},fr={code:`eJn_MW_code`};const pr=(0,x.createHighlighterCoreSync)({themes:[b.default,y.default],langs:[h.default,g.default,v.default,_.default],engine:(0,S.createJavaScriptRegexEngine)()}),mr=e=>{let{className:t=``,language:n,header:r,children:i}=e,a=(0,l._)(e,[`className`,`language`,`header`,`children`]),o=typeof i==`string`?i:dr(/*#__PURE__*/ (0,m.isValidElement)(i)?i:/*#__PURE__*/ (0,u.jsx)(u.Fragment,{children:i})),d=pr.codeToHtml(o,{lang:n,themes:{light:`github-light`,dark:`github-dark`},defaultColor:!1,structure:`inline`}),f=/*#__PURE__*/ (0,u.jsx)(`pre`,(0,c._)((0,s._)({className:`m-0 shiki language-${n} ${fr.code} ${t}`},a),{children:/*#__PURE__*/ (0,u.jsx)(`code`,{dangerouslySetInnerHTML:{__html:d},className:`language-${n}`})}));return r?/*#__PURE__*/ (0,u.jsxs)(`figure`,{className:`m-0 border rounded overflow-hidden`,children:[/*#__PURE__*/ (0,u.jsx)(`figcaption`,{className:`px-3 py-2 bg-body-tertiary border-bottom`,children:r}),f]}):f};let hr;var q,gr,_r,vr,yr,br=(0,C.reaction)(e=>e.observedProps.endTime),xr,Sr;let Cr;new(hr=(q=/*#__PURE__*/ new WeakMap,gr=class extends (yr=C.ObservedComponent){get rest(){return(0,n._)(this,q)}set rest(e){(0,i._)(this,q,e)}get endTimestamp(){return+new Date(this.props.endTime||Date.now())}get timeSections(){let{units:e}=this.observedProps,{rest:t}=this;return e.reduce((n,{label:r},i)=>{let a=e.slice(i).map(({scale:e})=>e).reduce((e,t)=>e*t,1),o=~~(t/a);return t-=o*a,n.push({value:o,label:r}),n},[])}stop(){this.timer&&(window.clearInterval(this.timer),this.timer=0)}componentDidMount(){super.componentDidMount(),this.initTimer()}initTimer(){this.stop(),this.tick(),this.timer=window.setInterval(this.tick,w.Second)}componentWillUnmount(){super.componentWillUnmount(),this.stop()}render(){let e=this.props,{className:t=``,itemClassName:n=`border rounded px-4 py-3 d-flex flex-column justify-content-center align-items-center`,units:r,endTime:i,onEnd:a}=e,o=(0,l._)(e,[`className`,`itemClassName`,`units`,`endTime`,`onEnd`]),{timeSections:d}=this;return/*#__PURE__*/ (0,u.jsx)(`ol`,(0,c._)((0,s._)({className:`list-unstyled m-0 ${t}`},o),{children:d.map(({value:e,label:t})=>/*#__PURE__*/ (0,u.jsxs)(`li`,{className:n,children:[/*#__PURE__*/ (0,u.jsx)(`strong`,{children:(e+``).padStart(2,`0`)}),/*#__PURE__*/ (0,u.jsx)(`span`,{children:t})]},t))}))}constructor(...e){super(...e),(0,r._)(this,q,{writable:!0,value:(Sr(this),xr(this,0))}),(0,a._)(this,`timer`,0),(0,a._)(this,`tick`,()=>{let{onEnd:e,endTime:t}=this.props,n=this.endTimestamp-Date.now();n>0?this.rest=n:(this.rest=0,this.stop(),e==null||e(t))})}},{e:[xr,Sr],c:[Cr,vr]}=(0,t._)(gr,[[f.observable,1,`rest`],[f.computed,3,`timeSections`],[br,2,`initTimer`]],[p.observer],yr),gr),_r=class extends o._{constructor(){super(Cr),(0,a._)(this,`displayName`,`Countdown`),vr()}},(0,a._)(_r,hr,void 0),_r);var wr,Tr,Er,Dr=class extends Error{constructor(e=`Dialog closed`){super(e)}},Or=/*#__PURE__*/ new WeakMap,kr=/*#__PURE__*/ new WeakMap,Ar=class{get input(){return(0,n._)(this,Or)}set input(e){(0,i._)(this,Or,e)}get defer(){return(0,n._)(this,kr)}set defer(e){(0,i._)(this,kr,e)}open(e){e&&(this.input=e);let t=new T.Defer;this.defer=t;let n=(0,f.action)(()=>this.defer===t&&(this.defer=void 0));return t.promise.then(n,n),t.promise}constructor(e){(0,r._)(this,Or,{writable:!0,value:(Er(this),wr(this,{}))}),(0,r._)(this,kr,{writable:!0,value:Tr(this)}),(0,a._)(this,`Component`,void 0),this.Component=(0,p.observer)(t=>/*#__PURE__*/ (0,u.jsx)(e,(0,c._)((0,s._)({},t,this.input),{defer:this.defer}))),this.Component.displayName=`DialogComponent`}};({e:[wr,Tr,Er]}=(0,t._)(Ar,[[f.observable,1,`input`],[f.observable,1,`defer`],[f.action,2,`open`]],[]));let jr;var Mr,Nr,Pr,Fr,Ir,Lr,Rr;const zr=(0,D.createReactEditorJS)();let Br;new(jr=(Mr=/*#__PURE__*/ new WeakMap,Nr=class extends (Ir=m.Component){get innerValue(){return(0,n._)(this,Mr)}set innerValue(e){(0,i._)(this,Mr,e)}render(){let e=this.props,{name:t,required:n,children:r}=e,i=(0,l._)(e,[`name`,`required`,`children`]),{innerValue:a}=this;return/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`form-control`,tabIndex:-1,onBlur:this.save,children:[/*#__PURE__*/ (0,u.jsx)(`input`,{hidden:!0,name:t,required:n,value:JSON.stringify(a)}),/*#__PURE__*/ (0,u.jsx)(zr,(0,c._)((0,s._)({},i),{onInitialize:e=>{var t;this.core=e,(t=i.onInitialize)==null||t.call(i,e)}}))]})}constructor(...e){var t;super(...e),t=this,(0,a._)(this,`core`,void 0),(0,r._)(this,Mr,{writable:!0,value:(Rr(this),Lr(this,this.props.defaultValue))}),(0,a._)(this,`save`,()=>(0,E._)(function*(){return t.core&&(t.innerValue=yield t.core.save())})())}},{e:[Lr,Rr],c:[Br,Fr]}=(0,t._)(Nr,[[f.observable,1,`innerValue`]],[p.observer],Ir),Nr),Pr=class extends o._{constructor(){super(Br),(0,a._)(this,`displayName`,`Editor`),Fr()}},(0,a._)(Pr,jr,void 0),Pr);const Vr=(0,O.default)({link:({data:{link:e}})=>`<a href="${e}">${e}</a>`}),Hr=e=>{let{data:t}=e,n=(0,l._)(e,[`data`]);return/*#__PURE__*/ (0,u.jsx)(`article`,(0,c._)((0,s._)({},n),{dangerouslySetInnerHTML:{__html:Vr.parse(t)}}))};Hr.displayName=`EditorHTML`;const Ur=e=>{let{className:t=``,children:n,maxWidth:r=`100%`,duration:i,height:a}=e,o=(0,l._)(e,[`className`,`children`,`maxWidth`,`duration`,`height`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({className:`overflow-hidden max-w-100 ${t}`},o),{children:/*#__PURE__*/ (0,u.jsx)(`div`,{className:`d-inline-block align-top text-nowrap ONAURG_scrollWrap`,style:{maxWidth:r,animationDuration:i,height:a,lineHeight:a},children:/*#__PURE__*/ (0,u.jsx)(`div`,{className:`d-inline-block ONAURG_scrollItem`,style:{animationDuration:i},children:n})})}))},Wr=({children:e,maxWidth:t,duration:n,height:r})=>r?/*#__PURE__*/ (0,u.jsx)(`div`,{className:`overflow-hidden ONAURG_scrollHeightWrap`,style:{maxWidth:t,"--scroll-height":r},children:/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`d-inline-block overflow-hidden max-w-100 ONAURG_scrollContainer`,children:[/*#__PURE__*/ (0,u.jsx)(`div`,{className:`d-block overflow-hidden text-wrap text-break ONAURG_unScrollItem`,children:e}),/*#__PURE__*/ (0,u.jsx)(Ur,{duration:n,children:e})]})}):/*#__PURE__*/ (0,u.jsx)(Ur,{maxWidth:t,duration:n,height:r,children:e});Ur.displayName=`HorizontalMarquee`;const Gr=({scope:e,children:t})=>{let n=typeof t==`string`?t:dr(/*#__PURE__*/ (0,m.isValidElement)(t)?t:/*#__PURE__*/ (0,u.jsx)(u.Fragment,{children:t}));return/*#__PURE__*/ (0,u.jsxs)(k.LiveProvider,{code:n,scope:e,language:`tsx`,children:[/*#__PURE__*/ (0,u.jsx)(k.LivePreview,{className:`mb-3`}),/*#__PURE__*/ (0,u.jsx)(k.LiveEditor,{}),/*#__PURE__*/ (0,u.jsx)(k.LiveError,{className:`fg-danger small p-2`})]})},J=e=>{let{animation:t=`border`,size:n,theme:r,className:i,role:a=`status`}=e,o=(0,l._)(e,[`animation`,`size`,`theme`,`className`,`role`]);return/*#__PURE__*/ (0,u.jsx)(`span`,(0,c._)((0,s._)({},o),{role:a,className:(0,d.default)(`spinner-${t}`,n&&`spinner-${n}`,r&&`theme-${r}`,i)}))},Kr=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(F,(0,c._)((0,s._)({},n),{className:(0,d.default)(`spinner-rotate`,t)}))};J.displayName=`Spinner`,Kr.displayName=`SpinnerIcon`;const qr=e=>{let{className:t=``,children:n=`Loading...`,opacity:r=25,style:i}=e,a=(0,l._)(e,[`className`,`children`,`opacity`,`style`]);return/*#__PURE__*/ (0,u.jsxs)(`div`,(0,c._)((0,s._)({className:`fixed-top h-100 w-100 d-flex justify-content-center align-items-center bg-black ${t}`,style:(0,c._)((0,s._)({},i),{opacity:r/100})},a),{children:[/*#__PURE__*/ (0,u.jsx)(J,{theme:`success`}),/*#__PURE__*/ (0,u.jsx)(`span`,{className:`ms-3 fg-white`,children:n})]}))};qr.displayName=`Loading`;var Jr,Yr,Xr,Zr,Qr;const $r={sm:576,md:768,lg:1024,xl:1280,"2xl":1536},ei={top:`bottom`,bottom:`top`,left:`right`,right:`left`};var ti=/*#__PURE__*/ new WeakMap,ni=/*#__PURE__*/ new WeakMap,ri=/*#__PURE__*/ new WeakMap,Y=class{get placement(){return(0,n._)(this,ti)}set placement(e){(0,i._)(this,ti,e)}get style(){return(0,n._)(this,ni)}set style(e){(0,i._)(this,ni,e)}get arrowStyle(){return(0,n._)(this,ri)}set arrowStyle(e){(0,i._)(this,ri,e)}attach(e,t,n){this.dispose(),this.reference=e,this.element=t,this.options=n,window.addEventListener(`resize`,this.update),document.addEventListener(`scroll`,this.update,!0),this.resize=new window.ResizeObserver(this.update),this.resize.observe(e),this.resize.observe(t),this.update()}constructor(){(0,r._)(this,ti,{writable:!0,value:(Qr(this),Jr(this,`top`))}),(0,r._)(this,ni,{writable:!0,value:Yr(this,{})}),(0,r._)(this,ri,{writable:!0,value:Xr(this,{})}),(0,a._)(this,`reference`,void 0),(0,a._)(this,`element`,void 0),(0,a._)(this,`resize`,void 0),(0,a._)(this,`options`,{}),(0,a._)(this,`dispose`,()=>{var e;window.removeEventListener(`resize`,this.update),document.removeEventListener(`scroll`,this.update,!0),(e=this.resize)==null||e.disconnect(),this.resize=void 0,this.reference=void 0,this.element=void 0}),(0,a._)(this,`update`,Zr(this,()=>{let{reference:e,element:t,options:n}=this;if(!e||!t)return;let{responsivePlacement:r,offset:i=0,padding:a=8,flip:o=!0}=n,s=Object.keys($r).reverse().find(e=>window.innerWidth>=$r[e]&&(r==null?void 0:r[e])),[c,l]=(s&&(r==null?void 0:r[s])||n.placement||`top`).split(`-`),u=e.getBoundingClientRect(),d=t.getBoundingClientRect(),[f,p]=typeof i==`number`?[0,i]:i,m={top:u.top-a,bottom:window.innerHeight-u.bottom-a,left:u.left-a,right:window.innerWidth-u.right-a},h=(c===`top`||c===`bottom`?d.height:d.width)+p,g=o&&m[c]<h&&m[ei[c]]>m[c]?ei[c]:c,_=u.left+(u.width-d.width)/2,v=u.top+(u.height-d.height)/2;g===`top`||g===`bottom`?(v=g===`top`?u.top-d.height-p:u.bottom+p,l&&(_=l===`start`?u.left:u.right-d.width),_+=f):(_=g===`left`?u.left-d.width-p:u.right+p,l&&(v=l===`start`?u.top:u.bottom-d.height),v+=f),_=Math.max(a,Math.min(_,window.innerWidth-d.width-a)),v=Math.max(a,Math.min(v,window.innerHeight-d.height-a));let y=g===`top`||g===`bottom`?{left:Math.max(8,Math.min(d.width-8,u.left+u.width/2-_))}:{top:Math.max(8,Math.min(d.height-8,u.top+u.height/2-v))};(this.arrowStyle.left!==y.left||this.arrowStyle.top!==y.top)&&(this.arrowStyle=y);let b=t.offsetParent,x=b instanceof HTMLElement&&(b!==document.body||getComputedStyle(b).position!==`static`)?b:void 0,S=x==null?void 0:x.getBoundingClientRect();_+=x?x.scrollLeft-S.left-x.clientLeft:window.scrollX,v+=x?x.scrollTop-S.top-x.clientTop:window.scrollY;let C=l?`${g}-${l}`:g;this.placement!==C&&(this.placement=C);let w=Math.max(0,window.innerWidth-a*2),T=Math.max(0,window.innerHeight-a*2);(this.style.left!==_||this.style.top!==v||this.style.maxWidth!==w||this.style.maxHeight!==T)&&(this.style={position:`absolute`,left:_,top:v,right:`auto`,bottom:`auto`,margin:0,maxWidth:w,maxHeight:T})}))}};({e:[Jr,Yr,Xr,Zr,Qr]}=(0,t._)(Y,[[f.observable,1,`placement`],[f.observable,1,`style`],[f.observable,1,`arrowStyle`],[f.action,0,`update`]],[]));const ii={top:`top`,right:`end`,bottom:`bottom`,left:`start`},ai={top:`position-absolute start-50 translate-middle-x`,right:`position-absolute top-50 translate-middle-y`,bottom:`position-absolute start-50 translate-middle-x`,left:`position-absolute top-50 translate-middle-y`},oi=e=>{let{title:t,placement:n=`top`,show:r=!0,role:i=`tooltip`,className:a,children:o,arrowStyle:f}=e,p=(0,l._)(e,[`title`,`placement`,`show`,`role`,`className`,`children`,`arrowStyle`]);return/*#__PURE__*/ (0,u.jsxs)(`div`,(0,c._)((0,s._)({},p),{className:(0,d.default)(`popover`,{show:r},`bs-popover-${ii[n]}`,a),role:i,hidden:!r,"data-bs-placement":n,children:[/*#__PURE__*/ (0,u.jsx)(`div`,{style:f,className:(0,d.default)(`popover-arrow`,ai[n])}),t!=null&&/*#__PURE__*/ (0,u.jsx)(`h3`,{className:`popover-header`,children:t}),/*#__PURE__*/ (0,u.jsx)(`div`,{className:`popover-body`,children:o})]}))};oi.displayName=`Popover`;const si=e=>{let{placement:t=`top`,show:n=!0,role:r=`tooltip`,className:i,children:a,arrowStyle:o}=e,f=(0,l._)(e,[`placement`,`show`,`role`,`className`,`children`,`arrowStyle`]);return/*#__PURE__*/ (0,u.jsxs)(`div`,(0,c._)((0,s._)({},f),{className:(0,d.default)(`tooltip`,{show:n},`bs-tooltip-${ii[t]}`,i),role:r,hidden:!n,"data-bs-placement":t,children:[/*#__PURE__*/ (0,u.jsx)(`div`,{style:o,className:(0,d.default)(`tooltip-arrow`,ai[t])}),/*#__PURE__*/ (0,u.jsx)(`div`,{className:`tooltip-inner`,children:a})]}))};si.displayName=`Tooltip`;let ci;var li,ui,di,fi,pi,mi,hi,gi;let _i;new(ci=(li=/*#__PURE__*/ new WeakMap,ui=class extends (pi=m.Component){get open(){return(0,n._)(this,li)}set open(e){(0,i._)(this,li,e)}componentWillUnmount(){document.removeEventListener(`pointerdown`,this.handleOutside),clearTimeout(this.timer),this.position.dispose()}componentDidMount(){document.addEventListener(`pointerdown`,this.handleOutside)}componentDidUpdate(e){let{open:t,root:n,overlay:r,props:i,position:a}=this,{placement:o=`top`,responsivePlacement:s,offset:c=i.detail==null?8:12,padding:l,flip:u,container:d}=i;if(!t)return a.dispose();n.current&&r.current&&(a.element!==r.current||e.placement!==i.placement||e.responsivePlacement!==s||e.offset!==i.offset||e.padding!==l||e.flip!==u||e.container!==d?a.attach(n.current,r.current,{placement:o,responsivePlacement:s,offset:c,padding:l,flip:u}):a.update())}render(){let e=this.props,{title:t,detail:n,placement:r=`top`,responsivePlacement:i,container:a,offset:o,padding:f,flip:p,trigger:h,delay:g,overlayClassName:_,children:v,className:y=``,onMouseEnter:b,onMouseLeave:x,onFocus:S,onBlur:C,onClick:w,onKeyDown:T}=e,E=(0,l._)(e,[`title`,`detail`,`placement`,`responsivePlacement`,`container`,`offset`,`padding`,`flip`,`trigger`,`delay`,`overlayClassName`,`children`,`className`,`onMouseEnter`,`onMouseLeave`,`onFocus`,`onBlur`,`onClick`,`onKeyDown`]),D=this.open?this.id:void 0,O=this.position.element?this.position.placement.split(`-`)[0]:r,k=(0,d.default)(`w-max`,_),j=n==null?/*#__PURE__*/ (0,u.jsx)(si,{ref:this.overlay,id:D,style:(0,s._)({},this.position.style),arrowStyle:(0,s._)({},this.position.arrowStyle),className:k,placement:O,children:t}):/*#__PURE__*/ (0,u.jsx)(oi,{ref:this.overlay,id:D,style:(0,s._)({},this.position.style),arrowStyle:(0,s._)({},this.position.arrowStyle),className:k,title:t,placement:O,children:n}),M=this.open&&a?typeof a==`string`?document.querySelector(a):typeof a==`function`?a():a:void 0;if(this.open&&a&&!M)throw Error(`Overlay container was not found`);let N=/*#__PURE__*/ (0,m.isValidElement)(v)?/*#__PURE__*/ (0,m.cloneElement)(v,{"aria-describedby":[v.props[`aria-describedby`],D].filter(Boolean).join(` `)||void 0}):v;return/*#__PURE__*/ (0,u.jsxs)(`span`,(0,c._)((0,s._)({},E),{ref:this.root,className:`position-relative d-inline-block ${y}`,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,onKeyDown:this.handleKeyDown,children:[N,this.open&&(M?/*#__PURE__*/ (0,A.createPortal)(j,M):j)]}))}constructor(...e){super(...e),(0,r._)(this,li,{writable:!0,value:(gi(this),mi(this,!1))}),(0,a._)(this,`id`,(0,w.uniqueID)()),(0,a._)(this,`root`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`overlay`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`position`,new Y),(0,a._)(this,`timer`,void 0),(0,a._)(this,`setOpen`,hi(this,e=>this.open=e)),(0,a._)(this,`hide`,()=>{clearTimeout(this.timer),this.setOpen(!1)}),(0,a._)(this,`setOpenAfterDelay`,e=>{clearTimeout(this.timer);let{delay:t}=this.props,n=typeof t==`number`?t:t==null?void 0:t[e?`show`:`hide`];if(!n)return this.setOpen(e);this.timer=setTimeout(()=>this.setOpen(e),n)}),(0,a._)(this,`contains`,e=>{var t,n;return e instanceof Node&&(!!((t=this.root.current)!=null&&t.contains(e))||!!((n=this.overlay.current)!=null&&n.contains(e)))}),(0,a._)(this,`hasTrigger`,e=>(this.props.trigger?Array.isArray(this.props.trigger)?this.props.trigger:[this.props.trigger]:[`hover`,`focus`]).includes(e)),(0,a._)(this,`handleMouseEnter`,e=>{var t,n;(t=(n=this.props).onMouseEnter)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`hover`)&&this.setOpenAfterDelay(!0)}),(0,a._)(this,`handleMouseLeave`,e=>{var t,n;(t=(n=this.props).onMouseLeave)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`hover`)&&!this.contains(e.relatedTarget)&&!this.contains(document.activeElement)&&this.setOpenAfterDelay(!1)}),(0,a._)(this,`handleFocus`,e=>{var t,n;(t=(n=this.props).onFocus)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`focus`)&&this.setOpenAfterDelay(!0)}),(0,a._)(this,`handleBlur`,e=>{var t,n;(t=(n=this.props).onBlur)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`focus`)&&!this.contains(e.relatedTarget)&&this.setOpenAfterDelay(!1)}),(0,a._)(this,`handleClick`,e=>{var t,n,r;(t=(n=this.props).onClick)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`click`)&&!(e.target instanceof Node&&(r=this.overlay.current)!=null&&r.contains(e.target))&&this.setOpenAfterDelay(!this.open)}),(0,a._)(this,`handleOutside`,({target:e})=>{e instanceof Node&&!this.contains(e)&&this.hide()}),(0,a._)(this,`handleKeyDown`,e=>{var t,n;(t=(n=this.props).onKeyDown)==null||t.call(n,e),!e.defaultPrevented&&e.key===`Escape`&&this.open&&(e.preventDefault(),this.hide())})}},{e:[mi,hi,gi],c:[_i,fi]}=(0,t._)(ui,[[f.observable,1,`open`],[f.action,0,`setOpen`]],[p.observer],pi),ui),di=class extends o._{constructor(){super(_i),(0,a._)(this,`displayName`,`OverlayBox`),fi()}},(0,a._)(di,ci,void 0),di);let vi;var yi,bi,xi,Si,Ci,wi,Ti;let Ei;new(vi=(yi=/*#__PURE__*/ new WeakMap,bi=class extends (Ci=C.ObservedComponent){get weekFormatter(){var e;let{locale:t=(e=globalThis.navigator)==null?void 0:e.language}=this.observedProps;return new Intl.DateTimeFormat(t,{weekday:`long`})}get currentDate(){return(0,n._)(this,yi)}set currentDate(e){(0,i._)(this,yi,e)}get dateGrid(){let e=new Date(this.currentDate);e.setDate(1),e=/* @__PURE__ */ new Date(+e-e.getDay()*w.Day);let t=Array.from(Array(42),(t,n)=>new Date(+e+n*w.Day));return(0,w.splitArray)(t,7)}changeMonth(e){var t,n;this.currentDate=(0,w.changeMonth)(this.currentDate,e),(t=(n=this.props).onChange)==null||t.call(n,this.currentDate)}render(){let{weekFormatter:e,currentDate:t,dateGrid:n}=this,r=this.observedProps,{className:i=``,style:a,theme:o=`primary`,onChange:d,onSelect:f}=r,p=(0,l._)(r,[`className`,`style`,`theme`,`onChange`,`onSelect`]);return/*#__PURE__*/ (0,u.jsxs)(`table`,(0,c._)((0,s._)({},p),{className:`table ${i}`,style:(0,s._)({tableLayout:`fixed`},a),children:[/*#__PURE__*/ (0,u.jsx)(`caption`,{children:/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`d-flex justify-content-between align-items-center`,children:[/*#__PURE__*/ (0,u.jsx)(P,{theme:o,onClick:this.changePreviousMonth,children:`<`}),(0,w.formatDate)(t,`YYYY-MM`),/*#__PURE__*/ (0,u.jsx)(P,{theme:o,onClick:this.changeNextMonth,children:`>`})]})}),/*#__PURE__*/ (0,u.jsx)(`thead`,{children:/*#__PURE__*/ (0,u.jsx)(`tr`,{children:n[0].map((t,n,{length:r})=>/*#__PURE__*/ (0,u.jsx)(`th`,{className:`theme-${o} theme-contrast`,style:{width:`calc(100% / ${r})`},scope:`col`,children:e.format(t)},n))})}),/*#__PURE__*/ (0,u.jsx)(`tbody`,{children:n.map(e=>/*#__PURE__*/ (0,u.jsx)(`tr`,{children:e.map(this.renderDate)},e[0]+``))})]}))}constructor(...e){super(...e),(0,r._)(this,yi,{writable:!0,value:(Ti(this),wi(this,/* @__PURE__ */ new Date))}),(0,a._)(this,`changePreviousMonth`,()=>this.changeMonth(-1)),(0,a._)(this,`changeNextMonth`,()=>this.changeMonth(1)),(0,a._)(this,`handleCellClick`,({target:e,currentTarget:t})=>{var n,r,i;if(!(e instanceof Element))return;let a=e.closest(`[data-calendar-index]`);if(!a||!t.contains(a))return;let o=a.dataset.calendarDate,s=Number(a.dataset.calendarIndex),c=(n=this.props.value)==null?void 0:n.filter(({date:e})=>(0,w.formatDate)(e,`YYYY-MM-DD`)===o),l=c==null?void 0:c[s];l&&((r=(i=this.props).onSelect)==null||r.call(i,l))}),(0,a._)(this,`renderDate`,e=>{let{value:t}=this.observedProps,n=(0,w.formatDate)(e,`YYYY-MM-DD`),r=t==null?void 0:t.filter(({date:e})=>(0,w.formatDate)(e,`YYYY-MM-DD`)===n);return/*#__PURE__*/ (0,u.jsxs)(`td`,{className:(0,d.default)({"opacity-50":e.getMonth()!==this.currentDate.getMonth(),"fw-bold":n===(0,w.formatDate)(/* @__PURE__ */ new Date,`YYYY-MM-DD`)}),onClick:this.handleCellClick,children:[/*#__PURE__*/ (0,u.jsx)(`time`,{className:`d-block`,dateTime:e.toJSON(),children:e.getDate()}),r==null?void 0:r.map((e,t)=>typeof e.content==`object`?e.content:/*#__PURE__*/ (0,u.jsx)(_i,{title:e.content,children:/*#__PURE__*/ (0,u.jsx)(Oe,{className:`d-inline-block text-decoration-none w-100 text-truncate`,theme:Ft(e.content+``,[`light`]),"data-calendar-date":n,"data-calendar-index":t,href:e.link,children:e.content})},`${n}-${t}`))]},e+``)})}},{e:[wi,Ti],c:[Ei,Si]}=(0,t._)(bi,[[f.computed,3,`weekFormatter`],[f.observable,1,`currentDate`],[f.computed,3,`dateGrid`],[f.action,2,`changeMonth`]],[p.observer],Ci),bi),xi=class extends o._{constructor(){super(Ei),(0,a._)(this,`displayName`,`MonthCalendar`),Si()}},(0,a._)(xi,vi,void 0),xi);const Di=({avatar:e,name:t})=>/*#__PURE__*/ (0,u.jsxs)(u.Fragment,{children:[/*#__PURE__*/ (0,u.jsx)(we,{size:2,style:{marginRight:`0.5rem`},src:e}),/*#__PURE__*/ (0,u.jsx)(`span`,{className:`align-middle`,children:t})]});Di.displayName=`Nameplate`;const X=e=>{let{variant:t,vertical:n,fill:r,justified:i,cardHeader:a,navbar:o,className:f}=e,p=(0,l._)(e,[`variant`,`vertical`,`fill`,`justified`,`cardHeader`,`navbar`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`nav`,(0,c._)((0,s._)({},p),{className:(0,d.default)(`nav`,o&&`navbar-nav`,t&&`nav-${t}`,a&&t===`tabs`&&`card-header-tabs`,n&&(t===`pills`?`nav-pills-vertical`:`flex-column`),{"nav-fill":r,"nav-justified":i},f)}))},Oi=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`li`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`nav-item`,t)}))},ki=e=>{let{disabled:t,active:n,className:r,href:i,onClick:a,tabIndex:o}=e,f=(0,l._)(e,[`disabled`,`active`,`className`,`href`,`onClick`,`tabIndex`]);return/*#__PURE__*/ (0,u.jsx)(`a`,(0,c._)((0,s._)({},f),{href:t?void 0:i,tabIndex:t?-1:o,"aria-disabled":t||void 0,"aria-current":n?`page`:f[`aria-current`],className:(0,d.default)(`nav-link`,{active:n,disabled:t,"pe-none":t},r),onClick:t?void 0:a}))};X.displayName=`Nav`,Oi.displayName=`NavItem`,ki.displayName=`NavLink`;let Ai;var ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi;const Bi=Array.from({length:6},(e,t)=>`h${t+1}`).join(`,`);let Vi;new(Ai=(ji=/*#__PURE__*/ new WeakMap,Mi=/*#__PURE__*/ new WeakMap,Ni=class extends (Ii=m.Component){get list(){return(0,n._)(this,ji)}set list(e){(0,i._)(this,ji,e)}get scrollY(){return(0,n._)(this,Mi)}set scrollY(e){(0,i._)(this,Mi,e)}get currentActiveId(){var e;let{list:t,scrollY:n}=this,r=t.findIndex(({top:e})=>e>n);return(e=t[r<0?t.length-1:r-1])==null?void 0:e.id}componentDidMount(){globalThis.document&&(window.addEventListener(`scroll`,this.updateScrollY),window.addEventListener(`resize`,this.updateScrollY),this.initList(),this.updateScrollY())}static slugOf(e){let t=e.toLowerCase().replace(/\W+/g,`-`).replace(/^-+|-+$/g,``);return!t||document.getElementById(t)?(0,w.uniqueID)():t}initList(){let{rootSelector:e}=this.props,t=e?document.querySelector(e):document;t&&(this.list=Array.from(t.querySelectorAll(Bi),e=>{var t;let n=e.textContent.trim();(t=e).id||(t.id=Vi.slugOf(n));let{id:r,tagName:i}=e,a=e.getBoundingClientRect().top+window.scrollY;return{id:r,level:+i[1],text:n,top:a}}))}componentWillUnmount(){window.removeEventListener(`scroll`,this.updateScrollY),window.removeEventListener(`resize`,this.updateScrollY)}render(){let{list:e}=this,t=this.props,{depth:n,minDepth:r,rootSelector:i,onItemClick:a}=t,o=(0,l._)(t,[`depth`,`minDepth`,`rootSelector`,`onItemClick`]);return/*#__PURE__*/ (0,u.jsx)(X,(0,c._)((0,s._)({},o),{variant:`underline`,vertical:!0,children:e.map(this.renderLink)}))}constructor(...e){super(...e),(0,r._)(this,ji,{writable:!0,value:(zi(this),Li(this,[]))}),(0,r._)(this,Mi,{writable:!0,value:Ri(this,0)}),(0,a._)(this,`updateScrollY`,(0,f.action)(()=>{this.scrollY=window.scrollY,this.list=this.list.map(e=>{let t=document.getElementById(e.id);return t?(0,c._)((0,s._)({},e),{top:t.getBoundingClientRect().top+this.scrollY}):e})})),(0,a._)(this,`scrollTo`,e=>()=>{var t,n;setTimeout(()=>(0,w.scrollTo)(`[id="${e.id}"]`)),(t=(n=this.props).onItemClick)==null||t.call(n,e)}),(0,a._)(this,`renderLink`,({id:e,level:t,text:n,top:r})=>{let{currentActiveId:i}=this,{depth:a=1/0,minDepth:o=1}=this.props;return o<=t&&t<=a&&/*#__PURE__*/ (0,u.jsx)(ki,{className:(0,d.default)(`justify-content-start text-wrap min-w-0`,i===e&&`active`),style:{paddingInlineStart:`${t-o+.75}rem`},href:`#${e}`,"aria-current":i===e?`location`:void 0,onClick:this.scrollTo({id:e,level:t,text:n,top:r}),children:n},e)})}},{e:[Li,Ri,zi],c:[Vi,Fi]}=(0,t._)(Ni,[[f.observable,1,`list`],[f.observable,1,`scrollY`],[f.computed,3,`currentActiveId`],[f.action,2,`initList`]],[p.observer],Ii),Ni),Pi=class extends o._{constructor(){super(Vi),(0,a._)(this,`displayName`,`PageNav`),Fi()}},(0,a._)(Pi,Ai,void 0),Pi);var Hi,Ui,Wi,Gi,Ki,qi,Ji;let Yi;var Xi=/*#__PURE__*/ new WeakMap,Zi=/*#__PURE__*/ new WeakMap,Qi=/*#__PURE__*/ new WeakMap,$i=class extends (Ui=m.Component){get scrollLeft(){return(0,n._)(this,Xi)}set scrollLeft(e){(0,i._)(this,Xi,e)}get scrollWidth(){return(0,n._)(this,Zi)}set scrollWidth(e){(0,i._)(this,Zi,e)}get clientWidth(){return(0,n._)(this,Qi)}set clientWidth(e){(0,i._)(this,Qi,e)}get canScrollLeft(){return this.scrollLeft>0}get canScrollRight(){return this.scrollLeft+this.clientWidth<this.scrollWidth}componentDidMount(){let e=this.updateScroll();e&&(e.addEventListener(`scroll`,this.updateScroll),this.resizeObserver=new ResizeObserver(this.updateScroll),this.resizeObserver.observe(e))}componentWillUnmount(){var e,t;(e=this.resizeObserver)==null||e.disconnect(),(t=this.scrollerRef.current)==null||t.removeEventListener(`scroll`,this.updateScroll)}render(){let{canScrollLeft:e,canScrollRight:t}=this,{className:n=``,children:r}=this.props;return/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`position-relative overflow-y-hidden ${n}`,children:[e&&/*#__PURE__*/ (0,u.jsx)(`button`,{type:`button`,className:`position-absolute top-0 bottom-0 start-0 z-1 border-0 px-2 nZcgHq_scrollButtonLeft`,"aria-label":`Scroll left`,onClick:this.scrollBackward,children:/*#__PURE__*/ (0,u.jsx)(F,{name:`caret-left-fill`})}),/*#__PURE__*/ (0,u.jsx)(`div`,{ref:this.scrollerRef,className:`overflow-x-auto nZcgHq_scrollerInner`,children:r}),t&&/*#__PURE__*/ (0,u.jsx)(`button`,{type:`button`,className:`position-absolute top-0 bottom-0 end-0 z-1 border-0 px-2 nZcgHq_scrollButtonRight`,"aria-label":`Scroll right`,onClick:this.scrollForward,children:/*#__PURE__*/ (0,u.jsx)(F,{name:`caret-right-fill`})})]})}constructor(...e){super(...e),(0,a._)(this,`scrollerRef`,(Ji(this),/*#__PURE__*/ (0,m.createRef)())),(0,r._)(this,Xi,{writable:!0,value:Wi(this,0)}),(0,r._)(this,Zi,{writable:!0,value:Gi(this,0)}),(0,r._)(this,Qi,{writable:!0,value:Ki(this,0)}),(0,a._)(this,`updateScroll`,qi(this,()=>{let e=this.scrollerRef.current;return e&&(this.scrollLeft=e.scrollLeft,this.scrollWidth=e.scrollWidth,this.clientWidth=e.clientWidth),e})),(0,a._)(this,`resizeObserver`,void 0),(0,a._)(this,`scrollBy`,e=>{let t=this.scrollerRef.current;t==null||t.scrollBy({left:e*t.clientWidth*.8,behavior:`smooth`})}),(0,a._)(this,`scrollBackward`,()=>this.scrollBy(-1)),(0,a._)(this,`scrollForward`,()=>this.scrollBy(1))}};({e:[Wi,Gi,Ki,qi,Ji],c:[Yi,Hi]}=(0,t._)($i,[[f.observable,1,`scrollLeft`],[f.observable,1,`scrollWidth`],[f.observable,1,`clientWidth`],[f.computed,3,`canScrollLeft`],[f.computed,3,`canScrollRight`],[f.action,0,`updateScroll`]],[p.observer],Ui)),Hi();const ea=e=>{let{className:t=``,children:n}=e,r=(0,l._)(e,[`className`,`children`]);return/*#__PURE__*/ (0,u.jsx)(Yi,{className:t,children:/*#__PURE__*/ (0,u.jsx)(X,(0,c._)((0,s._)({},r),{className:`flex-nowrap`,children:n}))})};ea.displayName=`ScrollNav`;var ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa;const pa=e=>{let{active:t,selected:n,className:r}=e,i=(0,l._)(e,[`active`,`selected`,`className`]);return/*#__PURE__*/ (0,u.jsx)(P,(0,c._)((0,s._)({},i),{"aria-current":t||n&&i.href?`true`:i[`aria-current`],"aria-pressed":i.href||n==null?i[`aria-pressed`]:n,className:(0,d.default)(`menu-item`,{active:t,selected:n},r)}))},ma=e=>{let{theme:t,translucent:n,scrollable:r,show:i,className:a}=e,o=(0,l._)(e,[`theme`,`translucent`,`scrollable`,`show`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},o),{"data-bs-theme":t,className:(0,d.default)(`menu`,{show:i},n&&`menu-translucent`,r&&`menu-scrollable`,a)}))},ha=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(F,(0,c._)((0,s._)({"aria-hidden":`true`},n),{className:(0,d.default)(`menu-item-icon`,t)}))},ga=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(F,(0,c._)((0,s._)({"aria-hidden":`true`},n),{name:`check`,className:(0,d.default)(`menu-item-check`,t)}))},_a=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`span`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`menu-text`,t)}))},va=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`h6`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`menu-header`,t)}))},ya=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`hr`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`menu-divider`,t)}))},ba=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`span`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`menu-item-content`,t)}))},xa=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`small`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`menu-item-description`,t)}))};let Sa;var Ca=/*#__PURE__*/ new WeakMap,wa=class extends (na=m.Component){get open(){return(0,n._)(this,Ca)}set open(e){(0,i._)(this,Ca,e)}componentDidUpdate(){let{position:e,panel:t,trigger:n}=this;if(!this.open)return e.dispose();t.current&&n.current&&(e.element===t.current?e.update():e.attach(n.current,t.current,{placement:`right-start`,offset:2}))}componentWillUnmount(){this.position.dispose()}render(){let{label:e,className:t,children:n}=this.props,{open:r}=this;return/*#__PURE__*/ (0,u.jsxs)(`div`,{className:(0,d.default)(`submenu`,{show:r},t),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onKeyDown:this.handleKeyDown,children:[/*#__PURE__*/ (0,u.jsx)(P,{ref:this.trigger,className:`menu-item`,"aria-haspopup":`true`,"aria-expanded":r,onClick:this.handleClick,children:e}),/*#__PURE__*/ (0,u.jsx)(`div`,{ref:this.panel,style:(0,s._)({},this.position.style),"data-bs-placement":this.position.placement,className:(0,d.default)(`menu start-100 top-0`,{show:r}),hidden:!r,children:n})]})}constructor(...e){super(...e),(0,r._)(this,Ca,{writable:!0,value:(aa(this),ra(this,!1))}),(0,a._)(this,`panel`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`trigger`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`position`,new Y),(0,a._)(this,`setOpen`,ia(this,e=>this.open=e)),(0,a._)(this,`handleClick`,()=>this.setOpen(!this.open)),(0,a._)(this,`handleMouseEnter`,()=>this.setOpen(!0)),(0,a._)(this,`handleMouseLeave`,()=>this.setOpen(!1)),(0,a._)(this,`handleKeyDown`,e=>{let{key:t}=e;if(t===`ArrowRight`&&(e.preventDefault(),e.stopPropagation(),this.setOpen(!0),queueMicrotask(()=>{var e,t;return(t=this.panel.current)==null||(e=t.querySelector(`a[href], button:not(:disabled)`))==null?void 0:e.focus()})),(t===`ArrowLeft`||t===`Escape`)&&this.open){var n;e.preventDefault(),e.stopPropagation(),this.setOpen(!1),(n=this.trigger.current)==null||n.focus()}})}};({e:[ra,ia,aa],c:[Sa,ta]}=(0,t._)(wa,[[f.observable,1,`open`],[f.action,0,`setOpen`]],[p.observer],na)),ta();const Ta={"top-start":[`bottom-100`,`start-0`],"top-end":[`bottom-100`,`end-0`],"bottom-start":[`top-100`,`start-0`],"bottom-end":[`top-100`,`end-0`],"left-start":[`end-100`,`top-0`],"left-end":[`end-100`,`bottom-0`],"right-start":[`start-100`,`top-0`],"right-end":[`start-100`,`bottom-0`]},Ea={sm:576,md:768,lg:1024,xl:1280,"2xl":1536};let Z;var Da=/*#__PURE__*/ new WeakMap,Oa=/*#__PURE__*/ new WeakMap,ka=class extends (sa=m.Component){get open(){return(0,n._)(this,Da)}set open(e){(0,i._)(this,Da,e)}get responsiveDirection(){return(0,n._)(this,Oa)}set responsiveDirection(e){(0,i._)(this,Oa,e)}componentDidMount(){document.addEventListener(`pointerdown`,this.handleOutside),this.observePlacement()}componentDidUpdate({responsivePlacement:e}){var t,n;let{trigger:r,panel:i,position:a,props:o}=this;if(e!==o.responsivePlacement&&this.observePlacement(),!this.open)return a.dispose();if(!r.current||!i.current)return;let{placement:s,align:c,offset:l,padding:u,flip:d}=o,f={placement:(t=(n=this.responsiveDirection)==null?s:n)==null?`bottom-${c==null?`end`:c}`:t,offset:l,padding:u,flip:d};a.element===i.current?(a.options=f,a.update()):a.attach(r.current,i.current,f)}componentWillUnmount(){document.removeEventListener(`pointerdown`,this.handleOutside),this.position.dispose();for(let{query:e}of this.media)e.removeEventListener(`change`,this.handlePlacement)}items(e=this.panel.current){var t;return[...(t=e==null?void 0:e.querySelectorAll(`a[href]:not([aria-disabled="true"]), button:not(:disabled):not([aria-disabled="true"])`))==null?[]:t].filter(t=>!t.closest(`[hidden]`)&&t.closest(`.menu`)===e)}render(){var e;let t=this.props,{label:n,autoClose:r,align:i=`end`,placement:a,responsivePlacement:o,theme:f,translucent:p,scrollable:m,split:h,nav:g,offset:_,padding:v,flip:y,menuClassName:b,toggleProps:x,onOpenChange:S,onKeyDown:C,onBlur:w,children:T,className:E,id:D}=t,O=(0,l._)(t,[`label`,`autoClose`,`align`,`placement`,`responsivePlacement`,`theme`,`translucent`,`scrollable`,`split`,`nav`,`offset`,`padding`,`flip`,`menuClassName`,`toggleProps`,`onOpenChange`,`onKeyDown`,`onBlur`,`children`,`className`,`id`]),{open:k}=this,A=(e=this.responsiveDirection)==null?a:e,j=this.position.element?this.position.placement:A,M=j?Ta[j]:[`top-100`,i===`end`?`end-0`:`start-0`];return/*#__PURE__*/ (0,u.jsxs)(`div`,(0,c._)((0,s._)({},O),{ref:this.root,id:D,"data-bs-theme":f,className:(0,d.default)(h?`btn-group`:`d-inline-block`,`position-relative`,E),onKeyDown:this.handleKeyDown,onBlur:this.handleBlur,children:[/*#__PURE__*/ (0,u.jsx)(P,(0,c._)((0,s._)({variant:!g&&void 0},x),{ref:this.trigger,"aria-expanded":k,"aria-haspopup":`true`,className:(0,d.default)(x==null?void 0:x.className,h&&`menu-toggle-split`,g&&`nav-link`),"aria-controls":D?`${D}-menu`:void 0,onClick:this.handleToggle,children:n})),/*#__PURE__*/ (0,u.jsx)(`div`,{ref:this.panel,id:D?`${D}-menu`:void 0,"data-bs-placement":j==null?`bottom-${i}`:j,style:(0,s._)({},this.position.style),className:(0,d.default)(`menu`,M,p&&`menu-translucent`,m&&`menu-scrollable`,{show:k},b),hidden:!k,onClick:this.handleSelect,children:T})]}))}constructor(...e){super(...e),(0,r._)(this,Da,{writable:!0,value:(fa(this),ca(this,!1))}),(0,r._)(this,Oa,{writable:!0,value:la(this)}),(0,a._)(this,`root`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`trigger`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`panel`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`media`,[]),(0,a._)(this,`position`,new Y),(0,a._)(this,`observePlacement`,()=>{for(let{query:e}of this.media)e.removeEventListener(`change`,this.handlePlacement);this.media=Object.keys(Ea).flatMap(e=>{var t;let n=(t=this.props.responsivePlacement)==null?void 0:t[e];if(!n)return[];let r=window.matchMedia(`(min-width: ${Ea[e]}px)`);return r.addEventListener(`change`,this.handlePlacement),[{query:r,placement:n}]}),this.handlePlacement()}),(0,a._)(this,`handlePlacement`,ua(this,()=>{var e;return this.responsiveDirection=(e=[...this.media].reverse().find(({query:e})=>e.matches))==null?void 0:e.placement})),(0,a._)(this,`setOpen`,da(this,e=>{var t,n;this.open!==e&&(this.open=e,(t=(n=this.props).onOpenChange)==null||t.call(n,e))})),(0,a._)(this,`handleOutside`,({target:e})=>{var t;let{autoClose:n=!0}=this.props;n!==!1&&n!==`inside`&&e instanceof Node&&!((t=this.root.current)!=null&&t.contains(e))&&this.setOpen(!1)}),(0,a._)(this,`handleKeyDown`,e=>{var t,n;(t=(n=this.props).onKeyDown)==null||t.call(n,e);let{key:r,defaultPrevented:i}=e;if(!i){if(r===`Escape`&&this.open){var a;return e.preventDefault(),this.setOpen(!1),(a=this.trigger.current)==null?void 0:a.focus()}if(r===`Tab`)return this.setOpen(!1);e.target instanceof Element&&e.target.matches(`input, textarea, select, [contenteditable="true"]`)||[`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(r)&&(e.preventDefault(),this.setOpen(!0),queueMicrotask(()=>{var t;let n=e.target instanceof Element?e.target.closest(`.menu`):void 0,i=this.items(n==null?this.panel.current:n),a=i.findIndex(e=>e===document.activeElement),o=r===`Home`?0:i.length-1;r===`ArrowDown`&&(o=(a+1)%i.length),r===`ArrowUp`&&(o=a<=0?i.length-1:a-1),(t=i[o])==null||t.focus()}))}}),(0,a._)(this,`handleBlur`,e=>{let{onBlur:t,autoClose:n=!0}=this.props;t==null||t(e);let{defaultPrevented:r,currentTarget:i,relatedTarget:a}=e;!r&&n!==!1&&n!==`inside`&&!i.contains(a)&&this.setOpen(!1)}),(0,a._)(this,`handleToggle`,()=>this.setOpen(!this.open)),(0,a._)(this,`handleSelect`,({target:e,defaultPrevented:t})=>{let{autoClose:n=!0}=this.props;n&&!t&&n!==`outside`&&e instanceof Element&&!e.closest(`.submenu > .menu-item`)&&e.closest(`a[href], button:not(:disabled)`)&&this.setOpen(!1)})}};({e:[ca,la,ua,da,fa],c:[Z,oa]}=(0,t._)(ka,[[f.observable,1,`open`],[f.observable,1,`responsiveDirection`],[f.action,0,`handlePlacement`],[f.action,0,`setOpen`]],[p.observer],sa)),oa();const Aa=e=>{let{value:t,className:n,children:r}=e,i=(0,l._)(e,[`value`,`className`,`children`]);return/*#__PURE__*/ (0,u.jsx)(`button`,(0,c._)((0,s._)({},i),{type:`button`,className:(0,d.default)(`menu-item`,n),"data-value":t,children:r}))};Aa.displayName=`Option`;var ja=class extends m.Component{render(){var e,t;let{align:n,className:r,menuClassName:i,children:a,theme:o=`primary`,variant:s=`solid`,size:c,disabled:l,style:f,value:p,onChange:h,valueRender:g,name:_,placeholder:v,"aria-label":y}=this.props,b=m.Children.toArray(a).find(e=>/*#__PURE__*/ (0,m.isValidElement)(e)&&e.type===Aa&&e.props.value===p);return/*#__PURE__*/ (0,u.jsxs)(u.Fragment,{children:[/*#__PURE__*/ (0,u.jsx)(Z,{align:n,className:`w-100`,menuClassName:i,label:(e=(t=g==null?void 0:g(p==null?``:p))==null?b==null?void 0:b.props.children:t)==null?v:e,toggleProps:{className:(0,d.default)(`w-100 d-flex justify-content-between align-items-center`,r),theme:o,variant:s,size:c,disabled:l,style:f,"aria-label":y},onClick:this.handleSelect,children:m.Children.map(a,this.renderOption)}),_&&/*#__PURE__*/ (0,u.jsx)(`input`,{type:`hidden`,name:_,value:p==null?``:p,disabled:l})]})}constructor(...e){super(...e),(0,a._)(this,`handleSelect`,({target:e,defaultPrevented:t})=>{var n,r,i;if(t||this.props.disabled||!(e instanceof Element))return;let a=e.closest(`[data-value]`);a&&!a.disabled&&a.getAttribute(`aria-disabled`)!==`true`&&((r=(i=this.props).onChange)==null||r.call(i,(n=a.dataset.value)==null?``:n))}),(0,a._)(this,`renderOption`,e=>/*#__PURE__*/ (0,m.isValidElement)(e)&&e.type===Aa?/*#__PURE__*/ (0,m.cloneElement)(e,{className:(0,d.default)(e.props.className,e.props.value===this.props.value&&`selected`),"aria-selected":e.props.value===this.props.value}):e)}};(0,a._)(ja,`displayName`,`Select`);const Q=e=>{let{fluid:t,thumbnail:n,className:r}=e,i=(0,l._)(e,[`fluid`,`thumbnail`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`img`,(0,c._)((0,s._)({},i),{className:(0,d.default)({"img-fluid":t,"img-thumbnail":n},r)}))};Q.displayName=`Image`;let Ma;var Na,Pa,Fa,Ia,La,Ra,za,Ba,Va;function Ha(e,t,n){return(0,E._)(function*(){let r=yield(0,j.default)(e,{useCORS:!0});return new Promise((e,i)=>r.toBlob(t=>t?e(URL.createObjectURL(t)):i(),t,n))})()}let Ua;new(Ma=(Na=/*#__PURE__*/ new WeakMap,Pa=/*#__PURE__*/ new WeakMap,Fa=class extends (Ra=m.Component){get loading(){return(0,n._)(this,Na)}set loading(e){(0,i._)(this,Na,e)}get imageURI(){return(0,n._)(this,Pa)}set imageURI(e){(0,i._)(this,Pa,e)}componentDidMount(){var e,t;(e=(t=globalThis).addEventListener)==null||e.call(t,`resize`,this.generateImage)}componentWillUnmount(){var e,t;(e=(t=globalThis).removeEventListener)==null||e.call(t,`resize`,this.generateImage)}render(){let e=this.props,{className:t=``,children:n}=e,r=(0,l._)(e,[`className`,`children`]),{loading:i,imageURI:a}=this;return/*#__PURE__*/ (0,u.jsxs)(u.Fragment,{children:[i&&/*#__PURE__*/ (0,u.jsx)(qr,{}),/*#__PURE__*/ (0,u.jsxs)(`div`,(0,c._)((0,s._)({},r),{ref:this.root,className:`position-relative ${t}`,onMouseEnter:a?void 0:this.generateImage,onTouchStart:a?void 0:this.generateImage,children:[n,a&&/*#__PURE__*/ (0,u.jsx)(Q,{className:`position-absolute start-0 top-0 w-100 h-100`,src:a,alt:`Share Image`,fluid:!0,onClick:this.share})]}))]})}constructor(...e){var t;super(...e),t=this,(0,a._)(this,`root`,(Va(this),/*#__PURE__*/ (0,m.createRef)())),(0,r._)(this,Na,{writable:!0,value:za(this,!1)}),(0,r._)(this,Pa,{writable:!0,value:Ba(this,``)}),(0,a._)(this,`generateImage`,()=>(0,E._)(function*(){t.imageURI&&(URL.revokeObjectURL(t.imageURI),t.imageURI=``),t.loading=!0,t.imageURI=yield Ha(t.root.current),t.loading=!1})()),(0,a._)(this,`share`,e=>(0,E._)(function*(){var n,r;e.stopPropagation();let i=yield(0,w.blobOf)(t.imageURI),a=new File([i],`${t.props.title}.png`,{type:i.type});yield(n=(r=navigator).share)==null?void 0:n.call(r,(0,s._)({files:[a]},t.props))})())}},{e:[za,Ba,Va],c:[Ua,La]}=(0,t._)(Fa,[[f.observable,1,`loading`],[f.observable,1,`imageURI`]],[p.observer],Ra),Fa),Ia=class extends o._{constructor(){super(Ua),(0,a._)(this,`displayName`,`ShareBox`),La()}},(0,a._)(Ia,Ma,void 0),Ia);const Wa=e=>{let{animation:t,loading:n,disabled:r,children:i}=e,a=(0,l._)(e,[`animation`,`loading`,`disabled`,`children`]);return/*#__PURE__*/ (0,u.jsxs)(P,(0,c._)((0,s._)({},a),{disabled:n||r,children:[n&&/*#__PURE__*/ (0,u.jsxs)(u.Fragment,{children:[/*#__PURE__*/ (0,u.jsx)(J,{className:i?`me-2`:``,size:`sm`,animation:t,role:`status`,"aria-hidden":`true`}),!i&&/*#__PURE__*/ (0,u.jsx)(`span`,{className:`visually-hidden`,children:`Loading...`})]}),i]}))};Wa.displayName=`SpinnerButton`;const Ga=e=>{let{animation:t=`border`,theme:n=`primary`,size:r,colSpan:i}=e,a=(0,l._)(e,[`animation`,`theme`,`size`,`colSpan`]);return/*#__PURE__*/ (0,u.jsx)(`tr`,(0,c._)((0,s._)({},a),{children:/*#__PURE__*/ (0,u.jsx)(`td`,{className:`text-center p-4`,colSpan:i,children:/*#__PURE__*/ (0,u.jsx)(J,{animation:t,theme:n,size:r,role:`status`,"aria-label":`Loading`})})}))};Ga.displayName=`TableSpinner`;let Ka;var qa,Ja,Ya,Xa,Za,Qa,$a,eo,to;let no;new(Ka=(qa=/*#__PURE__*/ new WeakMap,Ja=/*#__PURE__*/ new WeakMap,Ya=class extends (Qa=m.Component){get expanded(){return(0,n._)(this,qa)}set expanded(e){(0,i._)(this,qa,e)}get overflowed(){return(0,n._)(this,Ja)}set overflowed(e){(0,i._)(this,Ja,e)}componentDidMount(){this.checkOverflow(),window.addEventListener(`resize`,this.checkOverflow)}componentDidUpdate({rows:e,children:t}){this.expanded||t===this.props.children&&e===this.props.rows||this.checkOverflow()}componentWillUnmount(){window.removeEventListener(`resize`,this.checkOverflow)}render(){let{children:e,rows:t=3,expandText:n=`⏬`,collapseText:r}=this.props,{expanded:i,overflowed:a}=this,o={overflow:`hidden`,display:`-webkit-box`,WebkitBoxOrient:`vertical`,WebkitLineClamp:t};return/*#__PURE__*/ (0,u.jsxs)(u.Fragment,{children:[/*#__PURE__*/ (0,u.jsx)(`div`,{ref:this.contentRef,style:i?void 0:o,children:e}),(a||i)&&/*#__PURE__*/ (0,u.jsx)(`button`,{type:`button`,className:`bg-transparent border-0 p-0`,"aria-expanded":i,onClick:this.toggle,children:i?r:n})]})}constructor(...e){super(...e),(0,r._)(this,qa,{writable:!0,value:(to(this),$a(this,!1))}),(0,r._)(this,Ja,{writable:!0,value:eo(this,!1)}),(0,a._)(this,`contentRef`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`checkOverflow`,(0,f.action)(()=>{let{current:e}=this.contentRef;e&&(this.overflowed=e.scrollHeight>e.clientHeight)})),(0,a._)(this,`toggle`,(0,f.action)(()=>{this.expanded=!this.expanded,this.expanded||requestAnimationFrame(this.checkOverflow)}))}},{e:[$a,eo,to],c:[no,Za]}=(0,t._)(Ya,[[f.observable,1,`expanded`],[f.observable,1,`overflowed`]],[p.observer],Qa),Ya),Xa=class extends o._{constructor(){super(no),(0,a._)(this,`displayName`,`TextTruncateContent`),Za()}},(0,a._)(Xa,Ka,void 0),Xa);const ro=e=>{let{rows:t=3,expandText:n=`⏬`,collapseText:r=`⏫`,children:i}=e,a=(0,l._)(e,[`rows`,`expandText`,`collapseText`,`children`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},a),{children:/*#__PURE__*/ (0,u.jsx)(no,{rows:t,expandText:n,collapseText:r,children:i})}))};ro.displayName=`TextTruncate`;const io=e=>{let{dateTime:t,format:n}=e,r=(0,l._)(e,[`dateTime`,`format`]);return/*#__PURE__*/ (0,u.jsx)(`time`,(0,c._)((0,s._)({dateTime:new Date(t).toJSON()},r),{children:(0,w.formatDate)(t,n)}))};io.displayName=`Time`;const ao={ms:`millisecond(s)`,s:`second(s)`,m:`minute(s)`,H:`hour(s)`,D:`day(s)`,W:`week(s)`,M:`month(s)`,Y:`year(s)`},oo=e=>{let{date:t,unitWords:n=ao,beforeWord:r=` before`,afterWord:i=` after`}=e,a=(0,l._)(e,[`date`,`unitWords`,`beforeWord`,`afterWord`]);t=new Date(t);let{distance:o,unit:d}=(0,w.diffTime)(t);return/*#__PURE__*/ (0,u.jsxs)(`time`,(0,c._)((0,s._)({},a),{dateTime:t.toJSON(),title:t.toLocaleString(),children:[Math.abs(o),` `,n[d],o<0?r:i]}))};oo.displayName=`TimeDistance`;const so=e=>{let{className:t,events:n,timeFormat:r}=e,i=(0,l._)(e,[`className`,`events`,`timeFormat`]);return/*#__PURE__*/ (0,u.jsx)(`ol`,(0,c._)((0,s._)({className:`list-unstyled M_u5hG_timeline ${t}`},i),{children:n.map(({title:e,summary:t,time:n,link:i,people:a})=>/*#__PURE__*/ (0,u.jsx)(`li`,{className:`position-relative M_u5hG_timelineItem M_u5hG_right`,children:/*#__PURE__*/ (0,u.jsx)(Fe,{children:/*#__PURE__*/ (0,u.jsxs)(Ve,{className:`p-4 d-flex flex-column gap-3 align-items-center`,children:[/*#__PURE__*/ (0,u.jsx)(Ue,{className:`h5 m-0`,children:/*#__PURE__*/ (0,u.jsx)(`a`,{className:`text-decoration-none stretched-link`,href:i,children:e})}),/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`small fg-3 d-flex gap-2`,children:[`⏲️`,/*#__PURE__*/ (0,u.jsx)(io,{dateTime:n[0],format:r}),n[1]&&`~`,n[1]&&/*#__PURE__*/ (0,u.jsx)(io,{dateTime:n[1],format:r})]}),/*#__PURE__*/ (0,u.jsx)(`ul`,{className:`list-unstyled m-0 d-flex gap-2 flex-wrap justify-content-around`,children:a==null?void 0:a.map(e=>/*#__PURE__*/ (0,u.jsx)(`li`,{children:/*#__PURE__*/ (0,u.jsx)(Di,(0,s._)({},e))},e.name))}),/*#__PURE__*/ (0,u.jsx)(We,{className:`m-0`,children:t})]})})},e))}))};so.displayName=`Timeline`;var co,lo,uo,fo,po;let mo;var ho=/*#__PURE__*/ new WeakMap,go=/*#__PURE__*/ new WeakMap,_o=class extends (lo=m.Component){get echoed(){return(0,n._)(this,ho)}set echoed(e){(0,i._)(this,ho,e)}get started(){return(0,n._)(this,go)}set started(e){(0,i._)(this,go,e)}componentDidMount(){this.start()}render(){let e=this.props,{className:t,text:n,intervals:r}=e,i=(0,l._)(e,[`className`,`text`,`intervals`]),{started:a,echoed:o}=this;return/*#__PURE__*/ (0,u.jsx)(`pre`,(0,c._)((0,s._)({},i),{ref:this.init,className:(0,d.default)(`text-wrap`,t),children:a?o+(o===n?``:`_`):n}))}constructor(...e){var t;super(...e),t=this,(0,r._)(this,ho,{writable:!0,value:(po(this),uo(this,``))}),(0,r._)(this,go,{writable:!0,value:fo(this,!1)}),(0,a._)(this,`start`,(0,f.action)(()=>this.started=!0)),(0,a._)(this,`echo`,(0,f.action)(e=>this.echoed+=e)),(0,a._)(this,`init`,e=>{e&&new IntersectionObserver(([{isIntersecting:e}],n)=>(0,E._)(function*(){if(!e)return;n.disconnect();let{text:r,intervals:i=150}=t.props;for(let e of r)yield(0,w.sleep)(i/1e3),t.echo(e)})()).observe(e)})}};({e:[uo,fo,po],c:[mo,co]}=(0,t._)(_o,[[f.observable,1,`echoed`],[f.observable,1,`started`]],[p.observer],lo)),co();const vo=e=>{let{text:t,intervals:n}=e,r=(0,l._)(e,[`text`,`intervals`]);return/*#__PURE__*/ (0,u.jsx)(mo,(0,c._)((0,s._)({},r),{text:t,intervals:n}))};vo.displayName=`TypeEcho`;const yo=e=>{let{fluid:t,breakpoint:n,className:r}=e,i=(0,l._)(e,[`fluid`,`breakpoint`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},i),{className:(0,d.default)(n?`${n}:container`:t?`container-fluid`:`container`,r)}))},bo=e=>{let{cols:t,sm:n,md:r,lg:i,xl:a,"2xl":o,className:f}=e,p=(0,l._)(e,[`cols`,`sm`,`md`,`lg`,`xl`,`2xl`,`className`]),m=[[`sm`,n],[`md`,r],[`lg`,i],[`xl`,a],[`2xl`,o]];return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},p),{className:(0,d.default)(`row`,t!==void 0&&`row-cols-${t}`,m.map(([e,t])=>t!==void 0&&`${e}:row-cols-${t}`),f)}))},$=e=>{let{span:t,sm:n,md:r,lg:i,xl:a,"2xl":o,className:f}=e,p=(0,l._)(e,[`span`,`sm`,`md`,`lg`,`xl`,`2xl`,`className`]),m=[[`sm`,n],[`md`,r],[`lg`,i],[`xl`,a],[`2xl`,o]],h=m.some(([,e])=>e!==void 0);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},p),{className:(0,d.default)(!t&&!h&&`col`,t!==void 0&&`col-${t}`,m.map(([e,t])=>t!==void 0&&(t===!0?`${e}:col`:`${e}:col-${t}`)),f)}))};yo.displayName=`Container`,bo.displayName=`Row`,$.displayName=`Col`;const xo=e=>{let{striped:t,stripedColumns:n,hover:r,bordered:i,borderless:a,small:o,responsive:f,className:p}=e,m=(0,l._)(e,[`striped`,`stripedColumns`,`hover`,`bordered`,`borderless`,`small`,`responsive`,`className`]),h=/*#__PURE__*/ (0,u.jsx)(`table`,(0,c._)((0,s._)({},m),{className:(0,d.default)(`table`,{"table-striped":t,"table-striped-columns":n,"table-hover":r,"table-bordered":i,"table-borderless":a,"table-sm":o},p)}));return f?/*#__PURE__*/ (0,u.jsx)(`div`,{className:(0,d.default)(`table-responsive`,f!==!0&&`${f}:table-responsive`),children:h}):h};xo.displayName=`Table`;const So=({email:e,website:t})=>/*#__PURE__*/ (0,u.jsxs)(`address`,{className:`mb-0 d-flex justify-content-around gap-2`,children:[e&&/*#__PURE__*/ (0,u.jsx)(`a`,{rel:`noreferrer`,target:`_blank`,href:`mailto:`+e,children:/*#__PURE__*/ (0,u.jsx)(F,{name:`envelope`})}),t&&/*#__PURE__*/ (0,u.jsx)(`a`,{rel:`noreferrer`,target:`_blank`,href:t,children:/*#__PURE__*/ (0,u.jsx)(F,{name:`globe2`})})]}),Co=`UcKh3G_image`,wo=e=>{let{className:t=``,title:n,rank:r=[],linkOf:i}=e,a=(0,l._)(e,[`className`,`title`,`rank`,`linkOf`]);return/*#__PURE__*/ (0,u.jsx)(yo,(0,c._)((0,s._)({className:t},a),{children:/*#__PURE__*/ (0,u.jsxs)(bo,{className:`UcKh3G_rankBox`,children:[/*#__PURE__*/ (0,u.jsxs)($,{span:12,lg:7,children:[/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`shadow rounded-3 UcKh3G_title`,children:[/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`UcKh3G_medal`,children:[/*#__PURE__*/ (0,u.jsx)(`i`,{className:`d-inline-block ms-1 overflow-hidden rounded-circle`}),/*#__PURE__*/ (0,u.jsx)(`i`,{className:`d-inline-block ms-1 overflow-hidden rounded-circle`}),/*#__PURE__*/ (0,u.jsx)(`i`,{className:`d-inline-block ms-1 overflow-hidden rounded-circle`})]}),/*#__PURE__*/ (0,u.jsx)(`h3`,{"data-text":n,className:`position-relative m-auto mb-0 fw-bold text-center`,children:n})]}),/*#__PURE__*/ (0,u.jsx)(`ul`,{className:`row mt-2 g-0 align-items-end text-center ps-0 pt-2 list-unstyled UcKh3G_topUsers`,children:r.slice(0,3).map(e=>/*#__PURE__*/ (0,u.jsxs)(`li`,{className:`col`,children:[/*#__PURE__*/ (0,u.jsx)(`div`,{className:`shadow-lg overflow-hidden rounded-circle m-auto ${Co}`,children:/*#__PURE__*/ (0,u.jsx)(Q,{src:e.avatar,alt:e.name,loading:`lazy`,fluid:!0})}),/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`position-relative overflow-hidden UcKh3G_topUser`,children:[/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`position-relative`,children:[/*#__PURE__*/ (0,u.jsx)(`i`,{className:`d-block overflow-hidden m-auto mb-1 rounded-circle`}),/*#__PURE__*/ (0,u.jsx)(`a`,{className:`d-block mb-0 stretched-link`,href:(i==null?void 0:i(e))||`#`,children:e.name}),/*#__PURE__*/ (0,u.jsx)(`strong`,{children:e.score})]}),/*#__PURE__*/ (0,u.jsx)(So,(0,s._)({},e))]})]},e.id))})]}),/*#__PURE__*/ (0,u.jsx)($,{span:12,lg:5,children:/*#__PURE__*/ (0,u.jsx)(xo,{className:`my-3 pt-2 UcKh3G_restUsers`,responsive:!0,children:/*#__PURE__*/ (0,u.jsx)(`tbody`,{children:r.slice(3,10).map((e,t,{length:n})=>/*#__PURE__*/ (0,u.jsxs)(`tr`,{className:`position-relative`,children:[/*#__PURE__*/ (0,u.jsx)(`td`,{className:`align-middle`,children:/*#__PURE__*/ (0,u.jsx)(Oe,{className:`fw-bold fst-italic`,children:(t+4+``).padStart((n+``).length,`0`)})}),/*#__PURE__*/ (0,u.jsxs)(`td`,{className:`position-relative text-truncate UcKh3G_name`,children:[/*#__PURE__*/ (0,u.jsx)(`div`,{className:`d-inline-block overflow-hidden align-middle rounded-circle ${Co}`,children:/*#__PURE__*/ (0,u.jsx)(Q,{src:e.avatar,alt:e.name,loading:`lazy`,fluid:!0})}),/*#__PURE__*/ (0,u.jsx)(`a`,{className:`ms-2 d-inline-block align-middle stretched-link`,style:{color:`rgb(248, ${(t+2)*15}, ${(t+2)*35})`},href:(i==null?void 0:i(e))||`#`,children:e.name})]}),/*#__PURE__*/ (0,u.jsx)(`td`,{className:`align-middle`,children:e.score}),/*#__PURE__*/ (0,u.jsx)(`td`,{className:`align-middle`,children:/*#__PURE__*/ (0,u.jsx)(So,(0,s._)({},e))})]},e.id))})})})]})}))};wo.displayName=`UserRankView`;const To=e=>{let{className:t=``,children:n,duration:r}=e,i=(0,l._)(e,[`className`,`children`,`duration`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({className:`overflow-hidden h-100 ${t}`},i),{children:/*#__PURE__*/ (0,u.jsx)(`div`,{className:`d-inline-block max-w-100 max-h-100 x8UL2q_scrollWrap`,style:{"--duration":r},children:/*#__PURE__*/ (0,u.jsx)(`div`,{className:`d-inline-block x8UL2q_scrollItem`,children:n})})}))};To.displayName=`VerticalMarquee`;const Eo=[`🐵`,`🐔`,`🐶`,`🐷`,`🐭`,`🐮`,`🐯`,`🐰`,`🐲`,`🐍`,`🐴`,`🐐`],Do=e=>{let t=e<0?e+1:e;return Eo[(t%12+12)%12]},Oo=e=>{let{className:t=``,itemClassName:n=`border rounded px-4 py-3 d-flex flex-column justify-content-center align-items-center`,startYear:r,endYear:i=(/* @__PURE__ */ new Date()).getFullYear(),itemOf:a}=e,o=(0,l._)(e,[`className`,`itemClassName`,`startYear`,`endYear`,`itemOf`]);return/*#__PURE__*/ (0,u.jsx)(`ol`,(0,c._)((0,s._)({className:`list-unstyled m-0 d-flex flex-wrap justify-content-center gap-3 ${t}`},o),{children:Array.from({length:i-r+1},(e,t)=>{let r=i-t;if(r===0)return null;let o=Do(r),{link:s=`#`,title:c}=(a==null?void 0:a(r,o))||{};return/*#__PURE__*/ (0,u.jsx)(`li`,{className:n,children:/*#__PURE__*/ (0,u.jsxs)(`a`,{className:`d-inline-block p-3 text-decoration-none text-center`,href:s,children:[/*#__PURE__*/ (0,u.jsx)(`div`,{className:`fs-3xl`,children:o}),c]})},r)})}))};Oo.displayName=`ZodiacBar`;const ko=e=>{let{className:t,end:n,size:r,validation:i}=e,a=(0,l._)(e,[`className`,`end`,`size`,`validation`]);return/*#__PURE__*/ (0,u.jsx)(`label`,(0,c._)((0,s._)({},a),{className:(0,d.default)(`form-control form-adorn`,n&&`form-adorn-end`,r&&`form-control-${r}`,i&&`is-${i}`,t)}))};ko.displayName=`FormAdornment`;const Ao=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`span`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`form-adorn-text`,t)}))};Ao.displayName=`FormAdornmentText`;const jo=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(F,(0,c._)((0,s._)({},n),{className:(0,d.default)(`form-adorn-icon`,t)}))};jo.displayName=`FormAdornmentIcon`;const Mo=e=>{let{className:t,validation:n}=e,r=(0,l._)(e,[`className`,`validation`]);return/*#__PURE__*/ (0,u.jsx)(`input`,(0,c._)((0,s._)({},r),{"aria-invalid":n?n===`invalid`:r[`aria-invalid`],className:(0,d.default)(`form-ghost`,n&&`is-${n}`,t)}))};Mo.displayName=`FormGhost`;var No=class extends m.Component{componentDidMount(){this.setIndeterminate()}componentDidUpdate(){this.setIndeterminate()}render(){let e=this.props,{className:t,size:n,theme:r,validation:i,indeterminate:a,forwardedRef:o}=e,f=(0,l._)(e,[`className`,`size`,`theme`,`validation`,`indeterminate`,`forwardedRef`]);return/*#__PURE__*/ (0,u.jsx)(`input`,(0,c._)((0,s._)({},f),{ref:this.setInputRef,type:`checkbox`,"aria-invalid":i?i===`invalid`:f[`aria-invalid`],"aria-checked":a?`mixed`:f[`aria-checked`],className:(0,d.default)(`check`,n&&`check-${n}`,r&&`theme-${r}`,i&&`is-${i}`,t)}))}constructor(...e){super(...e),(0,a._)(this,`input`,void 0),(0,a._)(this,`setIndeterminate`,()=>{this.input&&(this.input.indeterminate=this.props.indeterminate||!1)}),(0,a._)(this,`setInputRef`,e=>{this.input=e||void 0;let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)})}};const Po=/*#__PURE__*/ (0,m.forwardRef)((e,t)=>/*#__PURE__*/ (0,u.jsx)(No,(0,c._)((0,s._)({},e),{forwardedRef:t})));Po.displayName=`Checkbox`;var Fo=class extends m.Component{updatePlugin(){}componentDidMount(){this.initialize()}componentDidUpdate(e){this.configurationChanged(e)?(this.dispose(),this.initialize()):this.updatePlugin()}componentWillUnmount(){this.dispose()}dispose(){var e;this.revision++,(e=this.instance)==null||e.dispose(),this.instance=void 0}constructor(...e){var t;super(...e),t=this,(0,a._)(this,`element`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`instance`,void 0),(0,a._)(this,`revision`,0),(0,a._)(this,`initialize`,()=>(0,E._)(function*(){let e=++t.revision,n=yield t.load();e===t.revision&&t.element.current&&(t.instance=n(t.element.current),t.updatePlugin())})())}},Io=class extends Fo{render(){let e=this.props,{className:t,theme:n,separator:r,allowDuplicates:i,maxChips:a,createOnBlur:o,dismissible:f,placeholder:p,onValuesChange:m,forwardedRef:h,validation:g}=e,_=(0,l._)(e,[`className`,`theme`,`separator`,`allowDuplicates`,`maxChips`,`createOnBlur`,`dismissible`,`placeholder`,`onValuesChange`,`forwardedRef`,`validation`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},_),{ref:this.setRef,className:(0,d.default)(`chip-input`,n&&`theme-${n}`,g&&`is-${g}`,t),"data-bs-chips":``,"data-bs-separator":r,"data-bs-allow-duplicates":i,"data-bs-max-chips":a,"data-bs-create-on-blur":o}))}constructor(...e){var t;super(...e),t=this,(0,a._)(this,`configurationChanged`,e=>e.separator!==this.props.separator||e.allowDuplicates!==this.props.allowDuplicates||e.maxChips!==this.props.maxChips||e.createOnBlur!==this.props.createOnBlur||e.dismissible!==this.props.dismissible||e.placeholder!==this.props.placeholder),(0,a._)(this,`load`,()=>(0,E._)(function*(){let[{default:e},{default:n}]=yield Promise.all([import(`bootstrap/js/src/chips.js`),import(`bootstrap/js/src/dom/event-handler.js`)]),{separator:r=`,`,allowDuplicates:i=!1,maxChips:a=null,createOnBlur:o=!0,dismissible:s=!0,placeholder:c=``}=t.props;return l=>{let d=e.getOrCreateInstance(l,{separator:r,allowDuplicates:i,maxChips:a,createOnBlur:o,dismissible:s,placeholder:c,dismissIcon:(0,M.renderToStaticMarkup)(/*#__PURE__*/ (0,u.jsx)(F,{name:`x-lg`,"aria-hidden":`true`}))});return l.addEventListener(`change.bs.chips`,t.handleValuesChange),{dispose:()=>{l.removeEventListener(`change.bs.chips`,t.handleValuesChange),n.off(l,`.bs.chips`),d.dispose()}}}})()),(0,a._)(this,`handleValuesChange`,e=>{var t,n;return(t=(n=this.props).onValuesChange)==null?void 0:t.call(n,e.values)}),(0,a._)(this,`setRef`,e=>{this.element.current=e;let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)})}};const Lo=/*#__PURE__*/ (0,m.forwardRef)((e,t)=>/*#__PURE__*/ (0,u.jsx)(Io,(0,c._)((0,s._)({},e),{forwardedRef:t})));Lo.displayName=`ChipInput`;const Ro=e=>{let{className:t,active:n,theme:r}=e,i=(0,l._)(e,[`className`,`active`,`theme`]);return/*#__PURE__*/ (0,u.jsx)(`button`,(0,c._)((0,s._)({},i),{className:(0,d.default)(`chip`,n&&`active`,r&&`theme-${r}`,t),type:`button`,"aria-pressed":n}))};Ro.displayName=`Chip`;const zo=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(F,(0,c._)((0,s._)({},n),{className:(0,d.default)(`chip-icon`,t)}))};zo.displayName=`ChipIcon`;const Bo=e=>{let{className:t,alt:n=``}=e,r=(0,l._)(e,[`className`,`alt`]);return/*#__PURE__*/ (0,u.jsx)(`img`,(0,c._)((0,s._)({},r),{alt:n,className:(0,d.default)(`chip-img`,t)}))};Bo.displayName=`ChipImage`;const Vo=e=>{let{className:t,children:n,"aria-label":r=`Remove`}=e,i=(0,l._)(e,[`className`,`children`,`aria-label`]);return/*#__PURE__*/ (0,u.jsx)(`button`,(0,c._)((0,s._)({},i),{type:`button`,"aria-label":r,className:(0,d.default)(`chip-dismiss`,t),children:n==null?/*#__PURE__*/ (0,u.jsx)(F,{name:`x-lg`,"aria-hidden":`true`}):n}))};Vo.displayName=`ChipDismiss`;const Ho=e=>{let{className:t,active:n,theme:r}=e,i=(0,l._)(e,[`className`,`active`,`theme`]);var a;return/*#__PURE__*/ (0,u.jsx)(`span`,(0,c._)((0,s._)({},i),{tabIndex:(a=i.tabIndex)==null?0:a,className:(0,d.default)(`chip`,n&&`active`,r&&`theme-${r}`,t)}))};Ho.displayName=`ChipToken`;const Uo=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`label`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`chip-input-label`,t)}))};Uo.displayName=`ChipInputLabel`;let Wo;var Go,Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts,ns,rs,is,as,os;const ss=e=>{let{className:t,value:n,children:r,description:i,icon:a,checkedIcon:o,searchText:f}=e,p=(0,l._)(e,[`className`,`value`,`children`,`description`,`icon`,`checkedIcon`,`searchText`]);var m;return/*#__PURE__*/ (0,u.jsxs)(`button`,(0,c._)((0,s._)({},p),{type:`button`,role:`option`,"aria-selected":(m=p[`aria-selected`])!=null&&m,className:(0,d.default)(`menu-item`,t),"data-bs-value":n,"data-search-text":f,"data-label":ls(r),"data-option-hidden":p.hidden||void 0,children:[a&&/*#__PURE__*/ (0,u.jsx)(F,{name:a,className:`menu-item-icon`,"aria-hidden":`true`}),i?/*#__PURE__*/ (0,u.jsxs)(ba,{children:[r,/*#__PURE__*/ (0,u.jsx)(xa,{children:i})]}):r,o&&/*#__PURE__*/ (0,u.jsx)(F,{name:`check-lg`,className:`menu-item-check`,"aria-hidden":`true`})]}))};ss.displayName=`ComboboxOption`;const cs=e=>{let{label:t,children:n}=e,r=(0,l._)(e,[`label`,`children`]);return/*#__PURE__*/ (0,u.jsxs)(`div`,(0,c._)((0,s._)({},r),{role:`group`,"aria-label":typeof t==`string`?t:void 0,children:[/*#__PURE__*/ (0,u.jsx)(va,{children:t}),n]}))};cs.displayName=`ComboboxGroup`;const ls=e=>m.Children.toArray(e).map(e=>/*#__PURE__*/ (0,m.isValidElement)(e)?ls(e.props.children):String(e)).join(` `),us=e=>m.Children.toArray(e).flatMap(e=>/*#__PURE__*/ (0,m.isValidElement)(e)&&e.type===ss?[e]:/*#__PURE__*/ (0,m.isValidElement)(e)?us(e.props.children):[]);let ds;new(Wo=(Go=/*#__PURE__*/ new WeakMap,Ko=/*#__PURE__*/ new WeakMap,qo=/*#__PURE__*/ new WeakMap,Jo=/*#__PURE__*/ new WeakMap,Yo=class extends (Qo=m.Component){get query(){return(0,n._)(this,Go)}set query(e){(0,i._)(this,Go,e)}get current(){return(0,n._)(this,Ko)}set current(e){(0,i._)(this,Ko,e)}get visibleOptionCount(){return(0,n._)(this,qo)}set visibleOptionCount(e){(0,i._)(this,qo,e)}get selectedLabel(){return(0,n._)(this,Jo)}set selectedLabel(e){(0,i._)(this,Jo,e)}get values(){var e;let t=(e=this.props.value)==null?this.current:e;return Array.isArray(t)?t:t?[t]:[]}componentDidMount(){var e;this.updateAccessibility(),this.optionObserver=new MutationObserver(this.updateAccessibility);let t=(e=this.menu.current)==null?void 0:e.panel.current;t&&this.optionObserver.observe(t,{childList:!0,subtree:!0,characterData:!0})}componentDidUpdate(){this.updateAccessibility()}componentWillUnmount(){var e;(e=this.optionObserver)==null||e.disconnect()}render(){var e,t,n;let r=this.props,{className:i,id:a,name:o,value:f,defaultValue:p,placeholder:h=`Select an item…`,disabled:g,multiple:_,onChange:v,onClick:y,menuClassName:b,children:x,controlSize:S,search:C,searchNormalize:w,searchPlaceholder:T=`Search…`,noResultsText:E=`No results found`,validation:D}=r,O=(0,l._)(r,[`className`,`id`,`name`,`value`,`defaultValue`,`placeholder`,`disabled`,`multiple`,`onChange`,`onClick`,`menuClassName`,`children`,`controlSize`,`search`,`searchNormalize`,`searchPlaceholder`,`noResultsText`,`validation`]),k=us(x).filter(e=>this.values.includes(e.props.value)),A=k.length>0||!!this.selectedLabel,j=_&&k.length>1?`${k.length} selected`:(e=(n=k[0])==null?void 0:n.props.children)==null?this.selectedLabel:e,M=this.visibleOptionCount===0;return/*#__PURE__*/ (0,u.jsxs)(`div`,(0,c._)((0,s._)({},O),{className:(0,d.default)(`combobox`,i),children:[/*#__PURE__*/ (0,u.jsxs)(Z,{ref:this.menu,className:`w-100`,id:a?`${a}-combobox`:void 0,label:/*#__PURE__*/ (0,u.jsxs)(u.Fragment,{children:[/*#__PURE__*/ (0,u.jsx)(`span`,{className:(0,d.default)(`combobox-value`,!A&&`combobox-placeholder`),children:A?j:h}),/*#__PURE__*/ (0,u.jsx)(F,{name:`chevron-down`,className:`combobox-caret`,"aria-hidden":`true`})]}),toggleProps:{id:a,className:(0,d.default)(`form-control combobox-toggle`,S&&`form-control-${S}`,D&&`is-${D}`),variant:!1,disabled:g,"aria-haspopup":`listbox`,"aria-label":(t=this.props[`aria-label`])==null?h:t,"aria-labelledby":this.props[`aria-labelledby`],"aria-describedby":this.props[`aria-describedby`],"aria-invalid":D?D===`invalid`:this.props[`aria-invalid`]},autoClose:!_,menuClassName:(0,d.default)(b,`combobox-menu`),onClick:this.handleClick,children:[C&&/*#__PURE__*/ (0,u.jsx)(`div`,{className:`combobox-search`,children:/*#__PURE__*/ (0,u.jsx)(`input`,{type:`search`,className:`form-control combobox-search-input`,"aria-label":T,placeholder:T,autoComplete:`off`,value:this.query,onChange:this.handleSearch})}),m.Children.map(x,this.renderChild),C&&M&&/*#__PURE__*/ (0,u.jsx)(`div`,{className:`combobox-empty`,role:`status`,children:E})]}),this.values.length||_?this.values.map(this.renderHiddenInput):this.renderHiddenInput(``)]}))}constructor(...e){var t;super(...e),(0,r._)(this,Go,{writable:!0,value:(os(this),$o(this,``))}),(0,r._)(this,Ko,{writable:!0,value:es(this,(t=this.props.defaultValue)==null?this.props.multiple?[]:``:t)}),(0,r._)(this,qo,{writable:!0,value:ts(this,0)}),(0,r._)(this,Jo,{writable:!0,value:ns(this,``)}),(0,a._)(this,`menu`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`optionObserver`,void 0),(0,a._)(this,`updateAccessibility`,rs(this,()=>{var e,t,n,r,i,a,o,s;let c=(a=this.menu.current)==null?void 0:a.panel.current,l=[...(e=c==null?void 0:c.querySelectorAll(`[data-bs-value]`))==null?[]:e],u=[],d=0;for(let e of l){var f,p,m,h,g;let t=(f=e.dataset.bsValue)==null?``:f,n=(p=(m=e.dataset.searchText)==null?e.textContent:m)==null?``:p,r=e.dataset.optionHidden!==`true`&&this.normalize(n).includes(this.normalize(this.query)),i=this.values.includes(t);e.setAttribute(`role`,`option`),e.setAttribute(`aria-selected`,String(i)),e.classList.toggle(`selected`,i),e.hidden=!r,e.style.display=r?``:`none`,r&&d++,i&&u.push((h=(g=e.dataset.label)==null?e.textContent:g)==null?``:h)}for(let e of(t=c==null?void 0:c.querySelectorAll(`[role="group"]`))==null?[]:t){let t=[...e.querySelectorAll(`[data-bs-value]`)].some(({hidden:e})=>!e);e.hidden=!t,e.style.display=t?``:`none`}this.visibleOptionCount=d,this.selectedLabel=this.props.multiple&&u.length>1?`${u.length} selected`:(n=u[0])==null?``:n,c==null||c.setAttribute(`role`,`listbox`),c==null||c.setAttribute(`aria-multiselectable`,String(!!this.props.multiple)),c==null||c.setAttribute(`aria-label`,(r=(i=this.props[`aria-label`])==null?this.props.placeholder:i)==null?`Options`:r),(s=this.menu.current)==null||(o=s.trigger.current)==null||o.setAttribute(`aria-haspopup`,`listbox`)})),(0,a._)(this,`setCurrent`,is(this,e=>this.current=e)),(0,a._)(this,`handleSearch`,as(this,({currentTarget:{value:e}})=>this.query=e)),(0,a._)(this,`handleClick`,e=>{var t,n,r,i,a;(n=(r=this.props).onClick)==null||n.call(r,e);let{target:o,defaultPrevented:s}=e;if(s||this.props.disabled||!(o instanceof Element))return;let c=o.closest(`[data-bs-value]`);if(!c||c.disabled||c.getAttribute(`aria-disabled`)===`true`)return;let l=(t=c.dataset.bsValue)==null?``:t,u=this.props.multiple?this.values.includes(l)?this.values.filter(e=>e!==l):[...this.values,l]:l;(i=(a=this.props).onChange)==null||i.call(a,u),this.props.value===void 0&&this.setCurrent(u)}),(0,a._)(this,`normalize`,e=>{let t=e.toLocaleLowerCase();return this.props.searchNormalize?t.normalize(`NFD`).replace(RegExp(`[\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1-\\u05C2\\u05C4-\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7-\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u0897-\\u089F\\u08CA-\\u08E1\\u08E3-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962-\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7-\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2-\\u09E3\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47-\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70-\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2-\\u0AE3\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47-\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B62-\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C00-\\u0C04\\u0C3C\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55-\\u0C56\\u0C62-\\u0C63\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5-\\u0CD6\\u0CE2-\\u0CE3\\u0CF3\\u0D00-\\u0D03\\u0D3B-\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62-\\u0D63\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2-\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EBC\\u0EC8-\\u0ECE\\u0F18-\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F3F\\u0F71-\\u0F84\\u0F86-\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102B-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1062-\\u1064\\u1067-\\u106D\\u1071-\\u1074\\u1082-\\u108D\\u108F\\u109A-\\u109D\\u135D-\\u135F\\u1712-\\u1715\\u1732-\\u1734\\u1752-\\u1753\\u1772-\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u180F\\u1885-\\u1886\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F\\u1AB0-\\u1ADD\\u1AE0-\\u1AEB\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DFF\\u20D0-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099-\\u309A\\uA66F-\\uA672\\uA674-\\uA67D\\uA69E-\\uA69F\\uA6F0-\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\uA880-\\uA881\\uA8B4-\\uA8C5\\uA8E0-\\uA8F1\\uA8FF\\uA926-\\uA92D\\uA947-\\uA953\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9E5\\uAA29-\\uAA36\\uAA43\\uAA4C-\\uAA4D\\uAA7B-\\uAA7D\\uAAB0\\uAAB2-\\uAAB4\\uAAB7-\\uAAB8\\uAABE-\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5-\\uAAF6\\uABE3-\\uABEA\\uABEC-\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F\\u{101FD}\\u{102E0}\\u{10376}-\\u{1037A}\\u{10A01}-\\u{10A03}\\u{10A05}-\\u{10A06}\\u{10A0C}-\\u{10A0F}\\u{10A38}-\\u{10A3A}\\u{10A3F}\\u{10AE5}-\\u{10AE6}\\u{10D24}-\\u{10D27}\\u{10D69}-\\u{10D6D}\\u{10EAB}-\\u{10EAC}\\u{10EFA}-\\u{10EFF}\\u{10F46}-\\u{10F50}\\u{10F82}-\\u{10F85}\\u{11000}-\\u{11002}\\u{11038}-\\u{11046}\\u{11070}\\u{11073}-\\u{11074}\\u{1107F}-\\u{11082}\\u{110B0}-\\u{110BA}\\u{110C2}\\u{11100}-\\u{11102}\\u{11127}-\\u{11134}\\u{11145}-\\u{11146}\\u{11173}\\u{11180}-\\u{11182}\\u{111B3}-\\u{111C0}\\u{111C9}-\\u{111CC}\\u{111CE}-\\u{111CF}\\u{1122C}-\\u{11237}\\u{1123E}\\u{11241}\\u{112DF}-\\u{112EA}\\u{11300}-\\u{11303}\\u{1133B}-\\u{1133C}\\u{1133E}-\\u{11344}\\u{11347}-\\u{11348}\\u{1134B}-\\u{1134D}\\u{11357}\\u{11362}-\\u{11363}\\u{11366}-\\u{1136C}\\u{11370}-\\u{11374}\\u{113B8}-\\u{113C0}\\u{113C2}\\u{113C5}\\u{113C7}-\\u{113CA}\\u{113CC}-\\u{113D0}\\u{113D2}\\u{113E1}-\\u{113E2}\\u{11435}-\\u{11446}\\u{1145E}\\u{114B0}-\\u{114C3}\\u{115AF}-\\u{115B5}\\u{115B8}-\\u{115C0}\\u{115DC}-\\u{115DD}\\u{11630}-\\u{11640}\\u{116AB}-\\u{116B7}\\u{1171D}-\\u{1172B}\\u{1182C}-\\u{1183A}\\u{11930}-\\u{11935}\\u{11937}-\\u{11938}\\u{1193B}-\\u{1193E}\\u{11940}\\u{11942}-\\u{11943}\\u{119D1}-\\u{119D7}\\u{119DA}-\\u{119E0}\\u{119E4}\\u{11A01}-\\u{11A0A}\\u{11A33}-\\u{11A39}\\u{11A3B}-\\u{11A3E}\\u{11A47}\\u{11A51}-\\u{11A5B}\\u{11A8A}-\\u{11A99}\\u{11B60}-\\u{11B67}\\u{11C2F}-\\u{11C36}\\u{11C38}-\\u{11C3F}\\u{11C92}-\\u{11CA7}\\u{11CA9}-\\u{11CB6}\\u{11D31}-\\u{11D36}\\u{11D3A}\\u{11D3C}-\\u{11D3D}\\u{11D3F}-\\u{11D45}\\u{11D47}\\u{11D8A}-\\u{11D8E}\\u{11D90}-\\u{11D91}\\u{11D93}-\\u{11D97}\\u{11EF3}-\\u{11EF6}\\u{11F00}-\\u{11F01}\\u{11F03}\\u{11F34}-\\u{11F3A}\\u{11F3E}-\\u{11F42}\\u{11F5A}\\u{13440}\\u{13447}-\\u{13455}\\u{1611E}-\\u{1612F}\\u{16AF0}-\\u{16AF4}\\u{16B30}-\\u{16B36}\\u{16F4F}\\u{16F51}-\\u{16F87}\\u{16F8F}-\\u{16F92}\\u{16FE4}\\u{16FF0}-\\u{16FF1}\\u{1BC9D}-\\u{1BC9E}\\u{1CF00}-\\u{1CF2D}\\u{1CF30}-\\u{1CF46}\\u{1D165}-\\u{1D169}\\u{1D16D}-\\u{1D172}\\u{1D17B}-\\u{1D182}\\u{1D185}-\\u{1D18B}\\u{1D1AA}-\\u{1D1AD}\\u{1D242}-\\u{1D244}\\u{1DA00}-\\u{1DA36}\\u{1DA3B}-\\u{1DA6C}\\u{1DA75}\\u{1DA84}\\u{1DA9B}-\\u{1DA9F}\\u{1DAA1}-\\u{1DAAF}\\u{1E000}-\\u{1E006}\\u{1E008}-\\u{1E018}\\u{1E01B}-\\u{1E021}\\u{1E023}-\\u{1E024}\\u{1E026}-\\u{1E02A}\\u{1E08F}\\u{1E130}-\\u{1E136}\\u{1E2AE}\\u{1E2EC}-\\u{1E2EF}\\u{1E4EC}-\\u{1E4EF}\\u{1E5EE}-\\u{1E5EF}\\u{1E6E3}\\u{1E6E6}\\u{1E6EE}-\\u{1E6EF}\\u{1E6F5}\\u{1E8D0}-\\u{1E8D6}\\u{1E944}-\\u{1E94A}\\u{E0100}-\\u{E01EF}]`,`gu`),``):t}),(0,a._)(this,`matches`,e=>{var t;return this.normalize((t=e.props.searchText)==null?ls(e.props.children):t).includes(this.normalize(this.query))}),(0,a._)(this,`renderChild`,e=>{if(!/*#__PURE__*/ (0,m.isValidElement)(e))return e;if(e.type===ss){let t=e,n=this.values.includes(t.props.value);return/*#__PURE__*/ (0,m.cloneElement)(t,{hidden:t.props.hidden||!this.matches(t),className:(0,d.default)(t.props.className,n&&`selected`),"aria-selected":n,role:`option`})}let t=us(e.props.children);return/*#__PURE__*/ (0,m.cloneElement)(e,(0,c._)((0,s._)({},e.type===cs&&{hidden:!t.some(this.matches)}),{children:m.Children.map(e.props.children,this.renderChild)}))}),(0,a._)(this,`renderHiddenInput`,e=>/*#__PURE__*/ (0,u.jsx)(`input`,{type:`hidden`,name:this.props.name,value:e,disabled:this.props.disabled},e))}},{e:[$o,es,ts,ns,rs,is,as,os],c:[ds,Zo]}=(0,t._)(Yo,[[f.observable,1,`query`],[f.observable,1,`current`],[f.observable,1,`visibleOptionCount`],[f.observable,1,`selectedLabel`],[f.action,0,`updateAccessibility`],[f.action,0,`setCurrent`],[f.action,0,`handleSearch`]],[p.observer],Qo),Yo),Xo=class extends o._{constructor(){super(ds),(0,a._)(this,`displayName`,`Combobox`),Zo()}},(0,a._)(Xo,Wo,void 0),Xo);const fs={sm:`form-control-sm`,lg:`form-control-lg`},ps=e=>{let{className:t,plaintext:n,ghost:r,caret:i,color:a,controlSize:o,validation:f}=e,p=(0,l._)(e,[`className`,`plaintext`,`ghost`,`caret`,`color`,`controlSize`,`validation`]);return/*#__PURE__*/ (0,u.jsx)(`input`,(0,c._)((0,s._)({},p),{"aria-invalid":f?f===`invalid`:p[`aria-invalid`],className:(0,d.default)(r?`form-ghost`:n?`form-control-plaintext`:`form-control`,!r&&i&&`form-control-caret`,!r&&!n&&a&&`form-control-color`,!r&&!n&&o&&fs[o],f&&`is-${f}`,t)}))};ps.displayName=`FormControl`;const ms=e=>{let{className:t,controlSize:n,validation:r}=e,i=(0,l._)(e,[`className`,`controlSize`,`validation`]);return/*#__PURE__*/ (0,u.jsx)(`textarea`,(0,c._)((0,s._)({},i),{"aria-invalid":r?r===`invalid`:i[`aria-invalid`],className:(0,d.default)(`form-control`,n&&fs[n],r&&`is-${r}`,t)}))};ms.displayName=`FormTextArea`;const hs=e=>{let{className:t,controlSize:n,validation:r}=e,i=(0,l._)(e,[`className`,`controlSize`,`validation`]);return/*#__PURE__*/ (0,u.jsx)(`select`,(0,c._)((0,s._)({},i),{"aria-invalid":r?r===`invalid`:i[`aria-invalid`],className:(0,d.default)(`form-control`,n&&fs[n],r&&`is-${r}`,t)}))};hs.displayName=`FormSelect`;var gs=class extends Fo{render(){let e=this.props,{className:t,enhanced:n,inline:r,selectionMode:i,min:a,max:o,options:f,displayMonthsCount:p,selectedDates:m,firstWeekday:h,placement:g,datepickerTheme:_,onDatesChange:v,ghost:y,controlSize:b,validation:x,kind:S=`input`,hostProps:C,leadingIcon:w,forwardedRef:T}=e,E=(0,l._)(e,[`className`,`enhanced`,`inline`,`selectionMode`,`min`,`max`,`options`,`displayMonthsCount`,`selectedDates`,`firstWeekday`,`placement`,`datepickerTheme`,`onDatesChange`,`ghost`,`controlSize`,`validation`,`kind`,`hostProps`,`leadingIcon`,`forwardedRef`]),D={"data-bs-toggle":n||S!==`input`?`datepicker`:void 0,"data-bs-inline":r||S===`div`||void 0,"data-bs-selection-mode":i,"data-bs-display-months-count":p,"data-bs-selected-dates":m?JSON.stringify(m):void 0,"data-bs-first-weekday":h,"data-bs-placement":g,"data-bs-datepicker-theme":_,"data-bs-date-min":n?a:void 0,"data-bs-date-max":n?o:void 0};if(S===`button`){let{children:e}=C,t=(0,l._)(C,[`children`]);return/*#__PURE__*/ (0,u.jsxs)(P,(0,c._)((0,s._)({},t,D),{ref:this.setRef,children:[w&&/*#__PURE__*/ (0,u.jsx)(F,{name:w,"aria-hidden":`true`}),/*#__PURE__*/ (0,u.jsx)(`span`,{"data-bs-datepicker-display":``,children:e})]}))}return S===`div`?/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},C,D),{ref:this.setRef})):/*#__PURE__*/ (0,u.jsx)(`input`,(0,c._)((0,s._)({},E,D),{ref:this.setRef,className:(0,d.default)(y?`form-ghost`:`form-control`,b&&`form-control-${b}`,x&&`is-${x}`,t),"aria-invalid":x?x===`invalid`:E[`aria-invalid`],type:n?`text`:`date`,min:a,max:o}))}constructor(...e){var t;super(...e),t=this,(0,a._)(this,`configurationChanged`,e=>e.options!==this.props.options||e.enhanced!==this.props.enhanced||e.inline!==this.props.inline||e.selectionMode!==this.props.selectionMode||e.displayMonthsCount!==this.props.displayMonthsCount||e.firstWeekday!==this.props.firstWeekday||e.placement!==this.props.placement||e.datepickerTheme!==this.props.datepickerTheme||e.min!==this.props.min||e.max!==this.props.max||JSON.stringify(e.selectedDates)!==JSON.stringify(this.props.selectedDates)),(0,a._)(this,`load`,()=>(0,E._)(function*(){let{enhanced:e,kind:n=`input`}=t.props;if(!e&&n===`input`)return()=>({dispose:()=>void 0});let{ReactDatepicker:r}=yield Promise.resolve().then(()=>require("./DatePickerPlugin-CpGuQRsi.js")),{options:i,inline:a,selectionMode:o,min:c,max:l,displayMonthsCount:u,selectedDates:d,firstWeekday:f,placement:p,datepickerTheme:m}=t.props,h=(0,s._)({},i,a!==void 0&&{inline:a},o!==void 0&&{selectionMode:o},c!==void 0&&{dateMin:String(c)},l!==void 0&&{dateMax:String(l)},u!==void 0&&{displayMonthsCount:u},d!==void 0&&{selectedDates:d},f!==void 0&&{firstWeekday:f},p!==void 0&&{placement:p},m!==void 0&&{datepickerTheme:m});return e=>{let n=[...e.childNodes],i=r.getOrCreateInstance(e,h);return e.addEventListener(`change.bs.datepicker`,t.handleDatesChange),{dispose:()=>{e.removeEventListener(`change.bs.datepicker`,t.handleDatesChange),i.dispose(),t.props.kind===`div`&&e.replaceChildren(...n)}}}})()),(0,a._)(this,`handleDatesChange`,e=>{var t,n;return(t=(n=this.props).onDatesChange)==null?void 0:t.call(n,e.dates)}),(0,a._)(this,`setRef`,e=>{this.element.current=e;let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)})}};const _s=/*#__PURE__*/ (0,m.forwardRef)((e,t)=>/*#__PURE__*/ (0,u.jsx)(gs,(0,c._)((0,s._)({},e),{forwardedRef:t})));_s.displayName=`DatePicker`;const vs=/*#__PURE__*/ (0,m.forwardRef)((e,t)=>{let[n,...r]=[e,t],{options:i,inline:a,selectionMode:o,displayMonthsCount:s,selectedDates:c,firstWeekday:d,placement:f,datepickerTheme:p,onDatesChange:m,leadingIcon:h}=n,g=(0,l._)(n,[`options`,`inline`,`selectionMode`,`displayMonthsCount`,`selectedDates`,`firstWeekday`,`placement`,`datepickerTheme`,`onDatesChange`,`leadingIcon`]),[_]=r;return/*#__PURE__*/ (0,u.jsx)(gs,{kind:`button`,leadingIcon:h,hostProps:g,forwardedRef:_,options:i,inline:a,selectionMode:o,displayMonthsCount:s,selectedDates:c,firstWeekday:d,placement:f,datepickerTheme:p,onDatesChange:m})});vs.displayName=`DatePickerButton`;const ys=/*#__PURE__*/ (0,m.forwardRef)((e,t)=>{let[n,...r]=[e,t],{options:i,selectionMode:a,displayMonthsCount:o,selectedDates:s,firstWeekday:c,placement:d,datepickerTheme:f,onDatesChange:p,inline:m=!0}=n,h=(0,l._)(n,[`options`,`selectionMode`,`displayMonthsCount`,`selectedDates`,`firstWeekday`,`placement`,`datepickerTheme`,`onDatesChange`,`inline`]),[g]=r;return/*#__PURE__*/ (0,u.jsx)(gs,{kind:`div`,hostProps:h,forwardedRef:g,options:i,inline:m,selectionMode:a,displayMonthsCount:o,selectedDates:s,firstWeekday:c,placement:d,datepickerTheme:f,onDatesChange:p})});ys.displayName=`DatePickerInline`;const bs=e=>{let{className:t,block:n}=e,r=(0,l._)(e,[`className`,`block`]);return/*#__PURE__*/ (0,u.jsx)(`small`,(0,c._)((0,s._)({},r),{className:(0,d.default)(`form-text`,n&&`d-block`,t)}))};bs.displayName=`FormText`;const xs=e=>{let{className:t,type:n=`invalid`,tooltip:r}=e,i=(0,l._)(e,[`className`,`type`,`tooltip`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},i),{className:(0,d.default)(r&&`tooltip`,r?`${n}-tooltip`:`${n}-feedback`,t)}))};xs.displayName=`FormFeedback`;const Ss=e=>{let{className:t,validated:n}=e,r=(0,l._)(e,[`className`,`validated`]);return/*#__PURE__*/ (0,u.jsx)(`form`,(0,c._)((0,s._)({},r),{className:(0,d.default)(n&&`was-validated`,t)}))};Ss.displayName=`Form`;const Cs=e=>/*#__PURE__*/ (0,u.jsx)(`fieldset`,(0,s._)({},e));Cs.displayName=`FormFieldset`;const ws=e=>{let{className:t,card:n}=e,r=(0,l._)(e,[`className`,`card`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},r),{className:(0,d.default)(`form-field`,n&&`form-field-card`,t)}))};ws.displayName=`FormField`;const Ts=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`form-group`,t)}))};Ts.displayName=`FormGroup`;const Es=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`form-field-content`,t)}))};Es.displayName=`FormFieldContent`;const Ds=e=>{let{className:t,plain:n,column:r,controlSize:i}=e,a=(0,l._)(e,[`className`,`plain`,`column`,`controlSize`]);return/*#__PURE__*/ (0,u.jsx)(`label`,(0,c._)((0,s._)({},a),{className:(0,d.default)(r?`col-form-label`:!n&&`form-label`,r&&i&&`col-form-label-${i}`,t)}))};Ds.displayName=`FormLabel`;const Os=e=>{let{className:t,column:n,controlSize:r}=e,i=(0,l._)(e,[`className`,`column`,`controlSize`]);return/*#__PURE__*/ (0,u.jsx)(`legend`,(0,c._)((0,s._)({},i),{className:(0,d.default)(n&&`col-form-label`,n&&r&&`col-form-label-${r}`,t)}))};Os.displayName=`FormLegend`;const ks=e=>/*#__PURE__*/ (0,m.isValidElement)(e)&&(e.type===`label`||e.type===Ds),As=e=>{let{className:t,always:n,children:r}=e,i=(0,l._)(e,[`className`,`always`,`children`]),a=m.Children.toArray(r);return/*#__PURE__*/ (0,u.jsxs)(`div`,(0,c._)((0,s._)({},i),{className:(0,d.default)(`form-floating`,n&&`form-floating-always`,t),children:[a.filter(ks),a.filter(e=>!ks(e))]}))};As.displayName=`FormFloatingLabel`;const js=e=>{let{className:t,size:n}=e,r=(0,l._)(e,[`className`,`size`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},r),{className:(0,d.default)(`input-group`,n&&`input-group-${n}`,t)}))};js.displayName=`InputGroup`;const Ms=e=>typeof e.htmlFor==`string`,Ns=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]),r=(0,d.default)(`input-group-text`,t);return Ms(n)?/*#__PURE__*/ (0,u.jsx)(`label`,(0,c._)((0,s._)({},n),{className:r})):/*#__PURE__*/ (0,u.jsx)(`span`,(0,c._)((0,s._)({},n),{className:r}))};Ns.displayName=`InputGroupText`;const Ps=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(P,(0,c._)((0,s._)({},n),{className:(0,d.default)(`input-group-btn`,t)}))};Ps.displayName=`InputGroupButton`;const Fs=({children:e})=>/*#__PURE__*/ (0,m.cloneElement)(e,{className:(0,d.default)(`input-group-ignore`,e.props.className)});Fs.displayName=`InputGroupIgnore`;var Is=class extends Z{componentDidMount(){var e,t;this.root.current=(e=(t=this.trigger.current)==null?void 0:t.closest(`.input-group`))==null?null:e,super.componentDidMount()}render(){return/*#__PURE__*/ (0,u.jsx)(Ls,(0,c._)((0,s._)({},this.props),{owner:this}))}constructor(...e){super(...e),(0,a._)(this,`handlePanelClick`,e=>{var t,n;(t=(n=this.props).onClick)==null||t.call(n,e),e.defaultPrevented||this.handleSelect(e)}),(0,a._)(this,`handleTriggerKeyDown`,this.handleKeyDown),(0,a._)(this,`handleBlur`,e=>{var t,n,r;(t=(n=this.props).onBlur)==null||t.call(n,e);let{autoClose:i=!0}=this.props;!e.defaultPrevented&&i!==!1&&i!==`inside`&&!((r=this.root.current)!=null&&r.contains(e.relatedTarget))&&this.setOpen(!1)})}};(0,a._)(Is,`displayName`,`InputGroupMenu`);const Ls=(0,p.observer)(({owner:{open:e,trigger:t,panel:n,handleToggle:r,handleTriggerKeyDown:i,handleBlur:a,handlePanelClick:o,handleKeyDown:l},id:f,label:p,split:m,toggleProps:h,className:g,children:_,align:v=`end`,menuClassName:y})=>{var b;return/*#__PURE__*/ (0,u.jsxs)(u.Fragment,{children:[/*#__PURE__*/ (0,u.jsx)(P,(0,c._)((0,s._)({},h),{ref:t,className:(0,d.default)(`input-group-btn`,m&&`menu-toggle-split`,h==null?void 0:h.className,g),"aria-label":m?(b=h==null?void 0:h[`aria-label`])==null?`Toggle menu`:b:h==null?void 0:h[`aria-label`],"aria-expanded":e,"aria-controls":f?`${f}-menu`:void 0,onClick:r,onKeyDown:i,onBlur:a,children:p})),/*#__PURE__*/ (0,u.jsx)(`div`,{ref:n,id:f?`${f}-menu`:void 0,className:(0,d.default)(`menu top-100`,v===`end`?`end-0`:`start-0`,e&&`show`,y),hidden:!e,onClick:o,onKeyDown:l,onBlur:a,children:_})]})});var Rs=class extends Fo{updatePlugin(){var e,t,n,r;let{value:i}=this.props,a=(t=this.element.current)==null?void 0:t.querySelector(`.otp-slots`);a==null||a.classList.add(`min-w-0`,`max-w-100`);for(let t of(e=a==null?void 0:a.querySelectorAll(`.otp-slot`))==null?[]:e)t.classList.add(`min-w-0`);i!==void 0&&((n=this.instance)==null?void 0:n.getValue())!==String(i)&&((r=this.instance)==null||r.setValue(String(i)))}dispose(){var e,t;(e=this.element.current)==null||e.removeEventListener(`complete.bs.otpInput`,this.handleComplete),(t=this.element.current)==null||t.removeEventListener(`input.bs.otpInput`,this.handleValueChange),super.dispose()}render(){let e=this.props,{className:t,wrapperClassName:n,length:r,type:i=`numeric`,mask:a,groups:o,separator:f,connected:p,size:m,validation:h,onComplete:g,onValueChange:_,forwardedRef:v,autoComplete:y=`one-time-code`}=e,b=(0,l._)(e,[`className`,`wrapperClassName`,`length`,`type`,`mask`,`groups`,`separator`,`connected`,`size`,`validation`,`onComplete`,`onValueChange`,`forwardedRef`,`autoComplete`]);return/*#__PURE__*/ (0,u.jsx)(`div`,{ref:this.element,className:(0,d.default)(`otp min-w-0 max-w-100`,p&&`otp-connected`,m&&`otp-${m}`,h&&`is-${h}`,n),"data-bs-otp":``,"data-bs-length":r,"data-bs-type":i,"data-bs-mask":a||void 0,"data-bs-groups":o?JSON.stringify(o):void 0,"data-bs-separator":f,children:/*#__PURE__*/ (0,u.jsx)(`input`,(0,c._)((0,s._)({},b),{ref:v,type:`text`,maxLength:r,autoComplete:y,inputMode:i===`numeric`?`numeric`:`text`,"aria-invalid":h?h===`invalid`:b[`aria-invalid`],pattern:i===`numeric`?`[0-9]*`:i===`alpha`?`[A-Za-z]*`:`[A-Za-z0-9]*`,className:(0,d.default)(`otp-input`,t)}))})}constructor(...e){var t;super(...e),t=this,(0,a._)(this,`configurationChanged`,e=>e.length!==this.props.length||e.type!==this.props.type||e.mask!==this.props.mask||e.separator!==this.props.separator||JSON.stringify(e.groups)!==JSON.stringify(this.props.groups)),(0,a._)(this,`load`,()=>(0,E._)(function*(){let{default:e}=yield import(`bootstrap/js/src/otp-input.js`),{length:n,type:r=`numeric`,mask:i=!1,groups:a=null,separator:o=`·`}=t.props;return s=>(s.addEventListener(`complete.bs.otpInput`,t.handleComplete),s.addEventListener(`input.bs.otpInput`,t.handleValueChange),e.getOrCreateInstance(s,{length:n,type:r,mask:i,groups:a,separator:o}))})()),(0,a._)(this,`handleComplete`,e=>{var t,n;return(t=(n=this.props).onComplete)==null?void 0:t.call(n,e.value)}),(0,a._)(this,`handleValueChange`,e=>{var t,n;return(t=(n=this.props).onValueChange)==null?void 0:t.call(n,e.value)})}};const zs=/*#__PURE__*/ (0,m.forwardRef)((e,t)=>/*#__PURE__*/ (0,u.jsx)(Rs,(0,c._)((0,s._)({},e),{forwardedRef:t})));zs.displayName=`OTPInput`;const Bs=[`weak`,`fair`,`good`,`strong`];var Vs=class extends m.Component{componentDidMount(){this.mounted=!0,this.initialize()}componentDidUpdate(e){e.input!==this.props.input||e.minLength!==this.props.minLength||e.messages!==this.props.messages||e.weights!==this.props.weights||e.thresholds!==this.props.thresholds||e.scorer!==this.props.scorer||e.variant!==this.props.variant||e.strength!==this.props.strength||e.showText!==this.props.showText?(this.dispose(),this.initialize()):this.props.strength===void 0&&this.handleInput()}componentWillUnmount(){this.mounted=!1,this.dispose()}render(){var e,t;let n=this.props,{className:r,input:i,minLength:a,messages:o,weights:f,thresholds:p,scorer:m,forwardedRef:h,variant:g=`segments`,strength:_,showText:v=!0}=n,y=(0,l._)(n,[`className`,`input`,`minLength`,`messages`,`weights`,`thresholds`,`scorer`,`forwardedRef`,`variant`,`strength`,`showText`]),b=g===`bar`,x=_?Bs.indexOf(_)+1:0;return/*#__PURE__*/ (0,u.jsxs)(u.Fragment,{children:[/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},y),{ref:this.setMeterRef,className:(0,d.default)(b?`strength-bar`:`strength`,r),"data-bs-strength":_,role:`meter`,"aria-valuemin":0,"aria-valuemax":Bs.length,"aria-valuenow":x,"aria-valuetext":_||`Empty`,children:!b&&Bs.map((e,t)=>/*#__PURE__*/ (0,u.jsx)(`div`,{className:(0,d.default)(`strength-segment`,t<x&&`active`)},e))})),v&&/*#__PURE__*/ (0,u.jsx)(`span`,{className:`strength-text`,"data-bs-strength":_,children:_&&((e=(t=this.props.messages)==null?void 0:t[_])==null?_:e)})]})}constructor(...e){var t;super(...e),t=this,(0,a._)(this,`meter`,void 0),(0,a._)(this,`instance`,void 0),(0,a._)(this,`instanceElement`,void 0),(0,a._)(this,`passwordInput`,void 0),(0,a._)(this,`mounted`,!1),(0,a._)(this,`revision`,0),(0,a._)(this,`initialize`,()=>(0,E._)(function*(){var e,n,r;let i=++t.revision,a=t.meter;if(!a||t.props.strength!==void 0)return;let{default:o}=yield import(`bootstrap/js/src/strength.js`),{input:c,minLength:l,messages:u,weights:d,thresholds:f,scorer:p}=t.props,m=(0,s._)({},c!==void 0&&{input:c},l!==void 0&&{minLength:l},u!==void 0&&{messages:(0,s._)({},o.Default.messages,u)},d!==void 0&&{weights:d},f!==void 0&&{thresholds:f},p!==void 0&&{scorer:p});t.mounted&&t.meter===a&&i===t.revision&&(t.instanceElement=a,t.instance=o.getOrCreateInstance(a,m),t.passwordInput=typeof c==`string`?document.querySelector(c)||void 0:c||((e=a.parentElement)==null?void 0:e.querySelector(`input[type="password"]`))||void 0,(n=t.passwordInput)==null||n.addEventListener(`input`,t.handleInput),(r=t.passwordInput)==null||r.addEventListener(`change`,t.handleInput),t.handleInput())})()),(0,a._)(this,`handleInput`,()=>{var e;let t=(e=this.instance)==null?void 0:e.getStrength(),n=t?Bs.indexOf(t)+1:0,r=this.instanceElement;r==null||r.setAttribute(`aria-valuenow`,String(n)),r==null||r.setAttribute(`aria-valuetext`,t||`Empty`)}),(0,a._)(this,`dispose`,()=>{var e,t,n;this.revision++,(e=this.passwordInput)==null||e.removeEventListener(`input`,this.handleInput),(t=this.passwordInput)==null||t.removeEventListener(`change`,this.handleInput),(n=this.instance)==null||n.dispose(),this.instance=void 0,this.instanceElement=void 0,this.passwordInput=void 0}),(0,a._)(this,`setMeterRef`,e=>{this.meter=e||void 0;let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)})}};const Hs=/*#__PURE__*/ (0,m.forwardRef)((e,t)=>/*#__PURE__*/ (0,u.jsx)(Vs,(0,c._)((0,s._)({},e),{forwardedRef:t})));Hs.displayName=`PasswordStrength`;const Us=e=>{let{className:t,size:n,theme:r,validation:i}=e,a=(0,l._)(e,[`className`,`size`,`theme`,`validation`]);return/*#__PURE__*/ (0,u.jsx)(`input`,(0,c._)((0,s._)({},a),{type:`radio`,"aria-invalid":i?i===`invalid`:a[`aria-invalid`],className:(0,d.default)(`radio`,n&&`radio-${n}`,r&&`theme-${r}`,i&&`is-${i}`,t)}))};Us.displayName=`Radio`;const Ws=e=>{let{type:t=`checkbox`,indeterminate:n}=e,r=(0,l._)(e,[`type`,`indeterminate`]);return t===`checkbox`?/*#__PURE__*/ (0,u.jsx)(Po,(0,c._)((0,s._)({},r),{indeterminate:n})):/*#__PURE__*/ (0,u.jsx)(Us,(0,s._)({},r))};Ws.displayName=`FormCheck`;var Gs=class extends Fo{dispose(){var e;(e=this.element.current)==null||e.removeEventListener(`changed.bs.range`,this.handleValueChange),super.dispose()}render(){var e;let t=this.props,{className:n,wrapperClassName:r,min:i=0,max:a=100,value:o,defaultValue:f,bubble:p,theme:m,formatter:h,onValueChange:g,forwardedRef:_,validation:v,style:y}=t,b=(0,l._)(t,[`className`,`wrapperClassName`,`min`,`max`,`value`,`defaultValue`,`bubble`,`theme`,`formatter`,`onValueChange`,`forwardedRef`,`validation`,`style`]),x=Number((e=o==null?f:o)==null?(Number(i)+Number(a))/2:e),S=Number(a)<=Number(i)?0:Math.max(0,Math.min(1,(x-Number(i))/(Number(a)-Number(i))));return/*#__PURE__*/ (0,u.jsx)(`div`,{ref:this.element,className:(0,d.default)(`form-range`,m&&`theme-${m}`,v&&`is-${v}`,r),"data-bs-bubble":p||void 0,style:{"--bs-range-fill":S},children:/*#__PURE__*/ (0,u.jsx)(`input`,(0,c._)((0,s._)({},b),{ref:_,type:`range`,min:i,max:a,value:o,defaultValue:f,"aria-invalid":v?v===`invalid`:b[`aria-invalid`],className:(0,d.default)(`form-range-input`,v&&`is-${v}`,n),style:y}))})}constructor(...e){var t;super(...e),t=this,(0,a._)(this,`configurationChanged`,e=>e.bubble!==this.props.bubble||e.formatter!==this.props.formatter||e.list!==this.props.list||e.min!==this.props.min||e.max!==this.props.max),(0,a._)(this,`load`,()=>(0,E._)(function*(){let{default:e}=yield import(`bootstrap/js/src/range.js`),{bubble:n=!1,formatter:r=null}=t.props;return i=>(i.addEventListener(`changed.bs.range`,t.handleValueChange),e.getOrCreateInstance(i,{bubble:n,formatter:r}))})()),(0,a._)(this,`updatePlugin`,()=>{var e;return(e=this.instance)==null?void 0:e.update()}),(0,a._)(this,`handleValueChange`,e=>{var t,n;return(t=(n=this.props).onValueChange)==null?void 0:t.call(n,e.value)})}};const Ks=/*#__PURE__*/ (0,m.forwardRef)((e,t)=>/*#__PURE__*/ (0,u.jsx)(Gs,(0,c._)((0,s._)({},e),{forwardedRef:t})));Ks.displayName=`FormRange`;const qs=e=>{let{className:t,inputProps:n,size:r,theme:i,validation:a,width:o,indicatorWidth:f,style:p,children:m}=e,h=(0,l._)(e,[`className`,`inputProps`,`size`,`theme`,`validation`,`width`,`indicatorWidth`,`style`,`children`]);return/*#__PURE__*/ (0,u.jsxs)(`label`,(0,c._)((0,s._)({},h),{className:(0,d.default)(`switch`,r&&`switch-${r}`,i&&`theme-${i}`,a&&`is-${a}`,t),style:(0,s._)({"--bs-switch-width":o,"--bs-switch-indicator-width":f},p),children:[/*#__PURE__*/ (0,u.jsx)(`input`,(0,c._)((0,s._)({role:`switch`},n),{type:`checkbox`,"aria-invalid":a?a===`invalid`:n==null?void 0:n[`aria-invalid`],className:(0,d.default)(a&&`is-${a}`,n==null?void 0:n.className)})),m]}))};qs.displayName=`FormSwitch`;const Js=e=>{let{flush:t,numbered:n,horizontal:r,className:i}=e,a=(0,l._)(e,[`flush`,`numbered`,`horizontal`,`className`]),o=(0,d.default)(`list-group`,{"list-group-flush":t,"list-group-numbered":n},r&&(r===!0?`list-group-horizontal`:`${r}:list-group-horizontal`),i);if(a.as===`ol`){let{as:e}=a,t=(0,l._)(a,[`as`]);return/*#__PURE__*/ (0,u.jsx)(`ol`,(0,c._)((0,s._)({},t),{className:o}))}if(a.as===`div`){let{as:e}=a,t=(0,l._)(a,[`as`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},t),{className:o}))}let{as:f}=a,p=(0,l._)(a,[`as`]);return/*#__PURE__*/ (0,u.jsx)(`ul`,(0,c._)((0,s._)({},p),{className:o}))},Ys=e=>typeof e.href==`string`,Xs=e=>typeof e.type==`string`,Zs=e=>{let{theme:t,action:n,active:r,disabled:i,className:a}=e,o=(0,l._)(e,[`theme`,`action`,`active`,`disabled`,`className`]),f=(0,d.default)(`list-group-item`,t&&`theme-${t}`,n&&`list-group-item-action`,{active:r,disabled:i},i&&`pe-none`,a);return Ys(o)?/*#__PURE__*/ (0,u.jsx)(`a`,(0,c._)((0,s._)({},o),{className:f,href:i?void 0:o.href,"aria-current":r?`true`:void 0,"aria-disabled":i||void 0,tabIndex:i?-1:o.tabIndex,onClick:i?void 0:o.onClick})):Xs(o)?/*#__PURE__*/ (0,u.jsx)(`button`,(0,c._)((0,s._)({},o),{type:o.type||`button`,className:f,"aria-current":r?`true`:void 0,disabled:i})):/*#__PURE__*/ (0,u.jsx)(`li`,(0,c._)((0,s._)({},o),{className:f,"aria-current":r?`true`:void 0,"aria-disabled":i||void 0}))};Js.displayName=`ListGroup`,Zs.displayName=`ListGroupItem`;const Qs=e=>{let{expand:t,theme:n,translucent:r,className:i}=e,a=(0,l._)(e,[`expand`,`theme`,`translucent`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`nav`,(0,c._)((0,s._)({},a),{className:(0,d.default)(`navbar`,r&&`navbar-translucent`,t&&(t===!0?`navbar-expand`:`${t}:navbar-expand`),i),"data-bs-theme":n}))},$s=e=>{if(e.as===`span`){let{as:t,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`span`,(0,c._)((0,s._)({},r),{className:(0,d.default)(`navbar-brand`,n)}))}let{as:t,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`a`,(0,c._)((0,s._)({},r),{className:(0,d.default)(`navbar-brand`,n)}))},ec=e=>{let{variant:t,nav:n,className:r}=e,i=(0,l._)(e,[`variant`,`nav`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`ul`,(0,c._)((0,s._)({},i),{className:(0,d.default)(`navbar-nav`,(n||t)&&`nav`,t&&`nav-${t}`,r)}))},tc=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`span`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`navbar-text`,t)}))},nc=e=>{let{expanded:t,className:n,"aria-label":r=`Toggle navigation`}=e,i=(0,l._)(e,[`expanded`,`className`,`aria-label`]);return/*#__PURE__*/ (0,u.jsx)(P,(0,c._)((0,s._)({},i),{type:`button`,className:(0,d.default)(`navbar-toggler`,n),"aria-label":r,"aria-expanded":t,icon:!0,children:/*#__PURE__*/ (0,u.jsx)(`span`,{className:`navbar-toggler-icon`,"aria-hidden":`true`})}))};Qs.displayName=`Navbar`,$s.displayName=`NavbarBrand`,ec.displayName=`NavbarNav`,tc.displayName=`NavbarText`,nc.displayName=`NavbarToggler`;var rc,ic,ac,oc,sc,cc,lc,uc=/*#__PURE__*/ new WeakMap,dc=/*#__PURE__*/ new WeakMap,fc=/*#__PURE__*/ new WeakMap,pc=class{get initialized(){return(0,n._)(this,uc)}set initialized(e){(0,i._)(this,uc,e)}get open(){return(0,n._)(this,dc)}set open(e){(0,i._)(this,dc,e)}get overflowIndices(){return(0,n._)(this,fc)}set overflowIndices(e){(0,i._)(this,fc,e)}constructor(){(0,r._)(this,uc,{writable:!0,value:(lc(this),rc(this,!1))}),(0,r._)(this,dc,{writable:!0,value:ic(this,!1)}),(0,r._)(this,fc,{writable:!0,value:ac(this,[])}),(0,a._)(this,`setOpen`,oc(this,e=>this.open=e)),(0,a._)(this,`toggle`,sc(this,()=>this.open=!this.open)),(0,a._)(this,`setOverflowIndices`,cc(this,e=>{this.initialized=!0,this.overflowIndices=e}))}};({e:[rc,ic,ac,oc,sc,cc,lc]}=(0,t._)(pc,[[f.observable,1,`initialized`],[f.observable,1,`open`],[f.observable,1,`overflowIndices`],[f.action,0,`setOpen`],[f.action,0,`toggle`],[f.action,0,`setOverflowIndices`]],[]));let mc;var hc,gc,_c,vc;let yc;new(mc=(hc=class extends (vc=m.Component){componentDidMount(){if(this.updateOverflow(),window.addEventListener(`resize`,this.updateOverflow),document.addEventListener(`pointerdown`,this.handleOutside),typeof ResizeObserver<`u`){var e,t;this.resizeObserver=new ResizeObserver(this.updateOverflow),this.root.current&&this.resizeObserver.observe(this.root.current),this.nav.current&&this.resizeObserver.observe(this.nav.current);for(let n of(e=(t=this.nav.current)==null?void 0:t.children)==null?[]:e)this.resizeObserver.observe(n)}}componentDidUpdate(){this.updateOverflow()}componentWillUnmount(){var e;(e=this.resizeObserver)==null||e.disconnect(),window.removeEventListener(`resize`,this.updateOverflow),document.removeEventListener(`pointerdown`,this.handleOutside)}render(){let e=this.props,{children:t,className:n,collapseBelow:r,fill:i,iconPlacement:a=`start`,justified:o,menuPlacement:f=`bottom-end`,menuStrategy:p=`absolute`,minimumVisibleItems:h,moreIcon:g,moreText:_=`More`,onClick:v,onKeyDown:y,onOverflowChange:b,threshold:x,"aria-label":S,variant:C}=e,w=(0,l._)(e,[`children`,`className`,`collapseBelow`,`fill`,`iconPlacement`,`justified`,`menuPlacement`,`menuStrategy`,`minimumVisibleItems`,`moreIcon`,`moreText`,`onClick`,`onKeyDown`,`onOverflowChange`,`threshold`,`aria-label`,`variant`]),T=m.Children.toArray(t),E=this.store.overflowIndices.length>0,D=`${this.props.id}-menu`,[O,k]=f.split(`-`),A=O===`top`?[`bottom-100`,k===`end`?`end-0`:`start-0`]:O===`bottom`?[`top-100`,k===`end`?`end-0`:`start-0`]:O===`left`?[`end-100`,k===`end`?`bottom-0`:`top-0`]:[`start-100`,k===`end`?`bottom-0`:`top-0`],j=g==null?/*#__PURE__*/ (0,u.jsx)(F,{name:`three-dots`,"aria-hidden":`true`}):g,M=_===!1?null:_;return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},w),{ref:this.root,className:(0,d.default)(`nav-overflow d-flex align-items-start position-relative`,this.store.initialized&&`nav-overflow-initialized`,n),onClick:this.handleClick,onKeyDown:this.handleKeyDown,children:/*#__PURE__*/ (0,u.jsxs)(X,{ref:this.nav,variant:C,fill:i,justified:o,"aria-label":S,className:`flex-nowrap flex-grow-1`,children:[T.map((e,t)=>this.renderChild(e,t)),/*#__PURE__*/ (0,u.jsxs)(`div`,{className:(0,d.default)(`nav-item nav-overflow-item flex-shrink-0`,!E&&`position-absolute invisible`),"data-menu-placement":f,children:[/*#__PURE__*/ (0,u.jsxs)(`button`,{ref:this.toggleButton,type:`button`,className:`nav-link`,"aria-haspopup":`menu`,"aria-expanded":this.store.open,"aria-controls":D,"aria-label":M?void 0:`More`,"data-overflow-toggle":!0,children:[a===`start`&&j,M,a===`end`&&j]}),/*#__PURE__*/ (0,u.jsx)(`div`,{id:D,className:(0,d.default)(`menu nav-overflow-menu`,A,p===`fixed`&&`position-fixed`,{show:this.store.open&&E}),role:`menu`,hidden:!this.store.open||!E,children:this.store.overflowIndices.map(e=>this.renderChild(T[e],e,!0))})]})]})}))}constructor(...e){super(...e),(0,a._)(this,`root`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`nav`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`toggleButton`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`store`,new pc),(0,a._)(this,`resizeObserver`,void 0),(0,a._)(this,`updateOverflow`,()=>{var e,t,n,r,i,a;let o=this.root.current,s=this.nav.current;if(!o||!s)return;let c=[...s.children].filter(e=>{var t;return e!==((t=this.toggleButton.current)==null?void 0:t.parentElement)}),l=c.map(e=>e.getBoundingClientRect().width||e.offsetWidth),u=Number.parseFloat(getComputedStyle(s).columnGap)||0,d=l.reduce((e,t)=>e+t,0)+u*Math.max(0,c.length-1),f=((n=this.toggleButton.current)==null?void 0:n.getBoundingClientRect().width)||((r=this.toggleButton.current)==null?void 0:r.offsetWidth)||0,p=o.clientWidth,m=this.getCollapseBelow(),h=m>0&&p>0&&p<m,g=c.map(e=>e.classList.contains(`nav-overflow-keep`)),_=c.map((e,t)=>t),v=Math.max(0,Math.min((e=(t=this.props.minimumVisibleItems)==null?this.props.threshold:t)==null?0:e,c.length)),y=d;if(h)for(let e=_.length-1;e>=0;e--)g[e]||_.splice(e,1);else if(p>0&&d>p)for(;y+f>p&&_.length>v;){let e=_.findLast(e=>!g[e]);if(e===void 0)break;y-=l[e]+(_.length>1?u:0),_.splice(_.indexOf(e),1)}let b=new Set(_),x=c.map((e,t)=>t).filter(e=>!b.has(e)),S=this.store.overflowIndices,C=S.length!==x.length||S.some((e,t)=>e!==x[t]);(!this.store.initialized||C)&&this.store.setOverflowIndices(x),C&&((i=(a=this.props).onOverflowChange)==null||i.call(a,x.length,_.length))}),(0,a._)(this,`getCollapseBelow`,()=>{let{collapseBelow:e=0}=this.props;if(typeof e==`number`)return e;let t=getComputedStyle(this.root.current).getPropertyValue(`--bs-breakpoint-${e}`);return Number.parseFloat(t)||0}),(0,a._)(this,`handleClick`,e=>{var t,n;(t=(n=this.props).onClick)==null||t.call(n,e);let r=e.target instanceof Element?e.target:null;e.defaultPrevented||(r!=null&&r.closest(`[data-overflow-toggle]`)?this.store.toggle():r!=null&&r.closest(`.nav-overflow-menu`)&&!r.closest(`[aria-haspopup="true"]`)&&this.store.setOpen(!1))}),(0,a._)(this,`handleKeyDown`,e=>{var t,n;if((t=(n=this.props).onKeyDown)==null||t.call(n,e),!e.defaultPrevented){if(e.key===`Escape`&&this.store.open){var r;this.store.setOpen(!1),(r=this.toggleButton.current)==null||r.focus()}else e.key===`ArrowDown`&&e.target===this.toggleButton.current&&(e.preventDefault(),this.store.setOpen(!0),queueMicrotask(()=>{var e,t;return(t=this.root.current)==null||(e=t.querySelector(`.nav-overflow-menu a[href]:not([aria-disabled="true"]), .nav-overflow-menu button:not(:disabled)`))==null?void 0:e.focus()}))}}),(0,a._)(this,`handleOutside`,e=>{var t;e.target instanceof Node&&!((t=this.root.current)!=null&&t.contains(e.target))&&this.store.setOpen(!1)}),(0,a._)(this,`renderChild`,(e,t,n=!1)=>{if(!/*#__PURE__*/ (0,m.isValidElement)(e))return/*#__PURE__*/ (0,u.jsx)(`span`,{children:e},t);if(n)return e.type===Z?/*#__PURE__*/ (0,m.cloneElement)(e,{className:(0,d.default)(e.props.className,`nav-overflow-submenu`)}):/*#__PURE__*/ (0,m.cloneElement)(e,{className:(0,d.default)(e.props.className,`menu-item`),role:`menuitem`});let r=this.store.overflowIndices.includes(t);return/*#__PURE__*/ (0,m.cloneElement)(e,{className:(0,d.default)(e.props.className,r&&`position-absolute invisible`),"aria-hidden":r||void 0,tabIndex:r?-1:e.props.tabIndex})})}},{c:[yc,_c]}=(0,t._)(hc,[],[p.observer],vc),hc),gc=class extends o._{constructor(){super(yc),(0,a._)(this,`displayName`,`NavOverflow`),_c()}},(0,a._)(gc,mc,void 0),gc);const bc=e=>{let{theme:t,size:n,className:r}=e,i=(0,l._)(e,[`theme`,`size`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`ul`,(0,c._)((0,s._)({},i),{className:(0,d.default)(`pagination`,t&&`theme-${t}`,n&&`pagination-${n}`,r)}))},xc=e=>{let{active:t,disabled:n,className:r,children:i}=e,a=(0,l._)(e,[`active`,`disabled`,`className`,`children`]);var o,f;let p=/*#__PURE__*/ (0,m.isValidElement)(i)&&i.type===Sc?/*#__PURE__*/ (0,m.cloneElement)(i,{active:(o=i.props.active)==null?t:o,disabled:(f=i.props.disabled)==null?n:f}):i;return/*#__PURE__*/ (0,u.jsx)(`li`,(0,c._)((0,s._)({},a),{className:(0,d.default)(`page-item`,{active:t,disabled:n},r),children:p}))},Sc=e=>{let{active:t,disabled:n,className:r,href:i,tabIndex:a,onClick:o,"aria-current":f}=e,p=(0,l._)(e,[`active`,`disabled`,`className`,`href`,`tabIndex`,`onClick`,`aria-current`]),m=(0,c._)((0,s._)({},p),{className:(0,d.default)(`page-link`,r),tabIndex:n?-1:a,"aria-disabled":n||void 0,"aria-current":f==null?t?`page`:void 0:f});return i===void 0?/*#__PURE__*/ (0,u.jsx)(`span`,(0,c._)((0,s._)({},p),{className:(0,d.default)(`page-link`,r),"aria-disabled":n||void 0,"aria-current":f==null?t?`page`:void 0:f})):/*#__PURE__*/ (0,u.jsx)(`a`,(0,c._)((0,s._)({},m),{href:n?void 0:i,onClick:n?void 0:o}))},Cc=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`span`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`page-link`,t)}))};bc.displayName=`Pagination`,xc.displayName=`PageItem`,Sc.displayName=`PageLink`,Cc.displayName=`PageText`;const wc=e=>{let{size:t,animation:n,theme:r,width:i,className:a,style:o,"aria-hidden":f=!0}=e,p=(0,l._)(e,[`size`,`animation`,`theme`,`width`,`className`,`style`,`aria-hidden`]);return/*#__PURE__*/ (0,u.jsx)(`span`,(0,c._)((0,s._)({},p),{className:(0,d.default)(`placeholder`,t&&`placeholder-${t}`,n&&`placeholder-${n}`,r&&`bg-${r}`,a),style:(0,s._)({width:i},o),"aria-hidden":f}))},Tc=e=>{let{animation:t=`wave`,className:n}=e,r=(0,l._)(e,[`animation`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},r),{className:(0,d.default)(`placeholder-${t}`,n),"aria-hidden":`true`}))},Ec=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(P,(0,c._)((0,s._)({},n),{className:(0,d.default)(`placeholder`,t),"aria-hidden":`true`,disabled:!0}))};wc.displayName=`Placeholder`,Tc.displayName=`PlaceholderAnimation`,Ec.displayName=`PlaceholderButton`;const Dc=e=>{let{value:t,min:n=0,max:r=100,theme:i,striped:a,animated:o,barProps:f={},className:p,style:m,children:h}=e,g=(0,l._)(e,[`value`,`min`,`max`,`theme`,`striped`,`animated`,`barProps`,`className`,`style`,`children`]);if(![t,n,r].every(Number.isFinite)||r<=n)throw RangeError(`Progress requires finite values and max greater than min`);let _=Math.min(r,Math.max(n,t)),v=`${(_-n)/(r-n)*100}%`,y=(0,c._)((0,s._)({},m),{"--_progress-width":v}),{className:b,style:x}=f,S=(0,l._)(f,[`className`,`style`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},g),{className:(0,d.default)(`progress`,p),style:y,role:`progressbar`,"aria-valuenow":_,"aria-valuemin":n,"aria-valuemax":r,children:/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},S),{className:(0,d.default)(`progress-bar`,i&&`theme-${i}`,{"progress-bar-striped":a||o,"progress-bar-animated":o},b),style:x,children:h}))}))},Oc=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`progress-stacked`,t)}))};Dc.displayName=`Progress`,Oc.displayName=`ProgressStack`;var kc,Ac,jc,Mc,Nc,Pc=/*#__PURE__*/ new WeakMap,Fc=/*#__PURE__*/ new WeakMap,Ic=class{get activeId(){return(0,n._)(this,Pc)}set activeId(e){(0,i._)(this,Pc,e)}get guides(){return(0,n._)(this,Fc)}set guides(e){(0,i._)(this,Fc,e)}constructor(){(0,r._)(this,Pc,{writable:!0,value:(Nc(this),kc(this,``))}),(0,r._)(this,Fc,{writable:!0,value:Ac(this)}),(0,a._)(this,`setGuides`,jc(this,e=>this.guides=e)),(0,a._)(this,`setActiveId`,Mc(this,e=>this.activeId=e))}};({e:[kc,Ac,jc,Mc,Nc]}=(0,t._)(Ic,[[f.observable,1,`activeId`],[f.observable,1,`guides`],[f.action,0,`setGuides`],[f.action,0,`setActiveId`]],[]));let Lc;var Rc,zc,Bc,Vc;let Hc;new(Lc=(Rc=class extends (Vc=m.Component){componentDidMount(){var e;this.mounted=!0,this.refresh(),(e=this.root.current)==null||e.addEventListener(`scroll`,this.handleScroll,{passive:!0}),window.addEventListener(`scroll`,this.handleScroll,{passive:!0}),window.addEventListener(`resize`,this.handleResize),document.addEventListener(`click`,this.handleNavigationClick)}componentDidUpdate(e){(e.children!==this.props.children||e.target!==this.props.target||e.rootMargin!==this.props.rootMargin||e.topMargin!==this.props.topMargin||e.threshold!==this.props.threshold||e.scrollRoot!==this.props.scrollRoot)&&this.refresh(),e.debug!==this.props.debug&&this.updateGuides()}componentWillUnmount(){var e,t,n;this.mounted=!1,(e=this.observer)==null||e.disconnect(),(t=this.bottomObserver)==null||t.disconnect(),(n=this.root.current)==null||n.removeEventListener(`scroll`,this.handleScroll),window.removeEventListener(`scroll`,this.handleScroll),window.removeEventListener(`resize`,this.handleResize),document.removeEventListener(`click`,this.handleNavigationClick)}render(){var e,t;let n=this.props,{children:r,className:i,debug:a,onActiveChange:o,onClick:f,onKeyDown:p,rootMargin:m,scrollRoot:h,smoothScroll:g,target:_,threshold:v,topMargin:y}=n,b=(0,l._)(n,[`children`,`className`,`debug`,`onActiveChange`,`onClick`,`onKeyDown`,`rootMargin`,`scrollRoot`,`smoothScroll`,`target`,`threshold`,`topMargin`]);return/*#__PURE__*/ (0,u.jsxs)(`div`,(0,c._)((0,s._)({},b),{ref:this.root,className:(0,d.default)(`scrollspy`,i),"data-active-id":this.store.activeId||void 0,"data-bs-root-margin":(e=this.props.rootMargin)==null?void 0:e,tabIndex:(t=this.props.tabIndex)==null?0:t,onClick:this.props.onClick,onKeyDown:this.props.onKeyDown,children:[r,/*#__PURE__*/ (0,u.jsx)(`div`,{ref:this.sentinel,className:`position-relative invisible m-0 border-0 p-0 w-0 h-0`,"aria-hidden":`true`}),this.renderDebug()]}))}constructor(...e){super(...e),(0,a._)(this,`root`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`store`,new Ic),(0,a._)(this,`entries`,[]),(0,a._)(this,`observer`,void 0),(0,a._)(this,`bottomObserver`,void 0),(0,a._)(this,`intersecting`,/* @__PURE__ */ new Set),(0,a._)(this,`atBottom`,!1),(0,a._)(this,`mounted`,!1),(0,a._)(this,`sentinel`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`refresh`,()=>{var e;let t=this.root.current;if(!t)return;let n=this.props.target?document.querySelector(this.props.target):t,r=[...(e=n==null?void 0:n.querySelectorAll(`a[href^="#"]`))==null?[]:e];this.entries=r.flatMap(e=>{var t;let n=(t=e.getAttribute(`href`))==null?void 0:t.slice(1);if(!n)return[];let r=decodeURIComponent(n),i=document.getElementById(r);return!i||i.hidden||i.closest(`[hidden]`)||i.getAttribute(`aria-hidden`)===`true`||getComputedStyle(i).display===`none`||getComputedStyle(i).visibility===`hidden`?[]:[{id:r,link:e,section:i}]}),this.entries.sort((e,t)=>e.section.getBoundingClientRect().top-t.section.getBoundingClientRect().top),this.rebuildObservers(),this.updateActive(),this.updateGuides()}),(0,a._)(this,`handleResize`,()=>{this.rebuildObservers(),this.updateGuides()}),(0,a._)(this,`handleScroll`,()=>this.updateGuides()),(0,a._)(this,`getRootHeight`,()=>{var e,t;return this.props.scrollRoot===`window`?document.documentElement.clientHeight||window.innerHeight:(e=(t=this.root.current)==null?void 0:t.clientHeight)==null?0:e}),(0,a._)(this,`getRootMargin`,()=>{if(this.props.rootMargin!=null)return this.props.rootMargin;let{topMargin:e=`12%`}=this.props,t=Number.parseFloat(e)||0,n=this.getRootHeight(),r=e.endsWith(`%`)?t:n?t/n*100:12;return`0px 0px -${Math.min(Math.max(100-r,0),100)}% 0px`}),(0,a._)(this,`rebuildObservers`,()=>{var e,t,n;(t=this.observer)==null||t.disconnect(),(n=this.bottomObserver)==null||n.disconnect(),this.intersecting.clear(),this.atBottom=!1;let r=this.props.scrollRoot===`window`?null:this.root.current,i=new window.IntersectionObserver(e=>{if(this.mounted&&this.observer===i){for(let t of e)t.isIntersecting?this.intersecting.add(t.target):this.intersecting.delete(t.target);this.updateActive()}},{root:r,rootMargin:this.getRootMargin(),threshold:(e=this.props.threshold)==null?[0]:e});this.observer=i;for(let e of new Set(this.entries.map(e=>e.section)))i.observe(e);let a=new window.IntersectionObserver(e=>{var t,n;if(!this.mounted||this.bottomObserver!==a)return;let i=(t=r==null?document.scrollingElement:r)==null?document.documentElement:t;this.atBottom=!!((n=e.at(-1))!=null&&n.isIntersecting)&&i.scrollHeight>i.clientHeight,this.updateActive(),this.updateGuides()},{root:r,threshold:[0]});this.bottomObserver=a,this.sentinel.current&&a.observe(this.sentinel.current)}),(0,a._)(this,`handleNavigationClick`,e=>{if(!this.props.smoothScroll||e.defaultPrevented)return;let t=e.target instanceof Element?e.target.closest(`a[href^="#"]`):null,n=this.entries.find(e=>e.link===t);if(!t||!n)return;e.preventDefault();let r=this.root.current,{scrollRoot:i=`self`}=this.props;if(i===`window`)window.scrollTo({top:window.scrollY+n.section.getBoundingClientRect().top,behavior:`smooth`});else if(r){let e=r.scrollTop+n.section.getBoundingClientRect().top-r.getBoundingClientRect().top;r.scrollTo({top:e,behavior:`smooth`})}window.history.replaceState(null,``,`#${encodeURIComponent(n.id)}`);let a=!n.section.hasAttribute(`tabindex`);a&&(n.section.tabIndex=-1),n.section.focus({preventScroll:!0}),a&&n.section.removeAttribute(`tabindex`),this.updateActive()}),(0,a._)(this,`getActivationLine`,e=>{var t;let n=this.getRootMargin().trim().split(/\s+/),r=(t=n[2])==null?n[0]:t,i=Number.parseFloat(r)||0;return e+(r.endsWith(`%`)?e*i/100:i)}),(0,a._)(this,`updateGuides`,()=>{let e=this.root.current;if(!this.props.debug||!e)return this.store.setGuides(void 0);let t=e.getBoundingClientRect(),n=this.getRootHeight();this.store.setGuides({top:this.props.scrollRoot===`window`?0:t.top,left:this.props.scrollRoot===`window`?0:t.left,width:this.props.scrollRoot===`window`?window.innerWidth:e.clientWidth,height:n,line:this.getActivationLine(n),atBottom:this.atBottom})}),(0,a._)(this,`updateActive`,()=>{var e,t,n,r,i,a;if(!this.root.current||!this.entries.length)return;let o=this.entries.at(-1),s=(e=(t=(n=this.atBottom?o:void 0)==null?[...this.entries].reverse().find(({section:e})=>this.intersecting.has(e)):n)==null?this.entries.find(e=>e.id===this.store.activeId):t)==null?this.entries[0]:e,c=new Set(this.entries.filter(e=>e.id===s.id).map(e=>e.link)),l=s.link.closest(`.nav`),u=l==null||(r=l.parentElement)==null?void 0:r.closest(`.nav`);for(;u&&u!==this.root.current;){var d;let e=[...this.entries].reverse().find(e=>e.link.closest(`.nav`)===u&&!!(e.section.compareDocumentPosition(s.section)&Node.DOCUMENT_POSITION_FOLLOWING));e&&c.add(e.link),l=u,u=(d=l.parentElement)==null?void 0:d.closest(`.nav`)}for(let{link:e}of this.entries){let t=c.has(e);e.classList.toggle(`active`,t),t?e.setAttribute(`aria-current`,`location`):e.removeAttribute(`aria-current`)}s.id!==this.store.activeId&&(this.store.setActiveId(s.id),(i=(a=this.props).onActiveChange)==null||i.call(a,s.id))}),(0,a._)(this,`renderDebug`,()=>{let e=this.store.guides;if(!this.props.debug||!e)return null;let{top:t,left:n,width:r,height:i,line:a,atBottom:o}=e;return/*#__PURE__*/ (0,A.createPortal)(/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`position-fixed overflow-hidden pe-none`,style:{top:t,left:n,width:r,height:i,zIndex:1080},"aria-hidden":`true`,"data-scrollspy-debug":!0,children:[/*#__PURE__*/ (0,u.jsx)(`div`,{className:`position-absolute start-0 end-0 border-top border-danger border-2`,style:{top:a,borderTopStyle:`dashed`},"data-scrollspy-line":!0}),/*#__PURE__*/ (0,u.jsx)(`div`,{className:`position-absolute bottom-0 start-0 end-0 border-top border-danger`,style:{height:12,borderTop:`1px solid #dc3545`,background:o?`rgb(220 53 69 / 40%)`:`rgb(220 53 69 / 10%)`},"data-scrollspy-bottom":o?`reached`:`pending`})]}),document.body)})}},{c:[Hc,Bc]}=(0,t._)(Rc,[],[p.observer],Vc),Rc),zc=class extends o._{constructor(){super(Hc),(0,a._)(this,`displayName`,`ScrollSpy`),Bc()}},(0,a._)(zc,Lc,void 0),zc);const Uc=(e,t)=>(0,d.default)(`stepper`,e===!0?`stepper-horizontal`:e&&`${e}:stepper-horizontal`,t),Wc=e=>{let{horizontal:t,className:n}=e,r=(0,l._)(e,[`horizontal`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`ol`,(0,c._)((0,s._)({},r),{className:Uc(t,n)}))},Gc=e=>{let{horizontal:t,className:n}=e,r=(0,l._)(e,[`horizontal`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`nav`,(0,c._)((0,s._)({},r),{className:Uc(t,n)}))},Kc=e=>{let{active:t,theme:n,className:r}=e,i=(0,l._)(e,[`active`,`theme`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`li`,(0,c._)((0,s._)({},i),{className:(0,d.default)(`stepper-item`,{active:t},n&&`theme-${n}`,r)}))},qc=e=>{let{active:t,theme:n,className:r}=e,i=(0,l._)(e,[`active`,`theme`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`a`,(0,c._)((0,s._)({},i),{className:(0,d.default)(`stepper-item`,{active:t},n&&`theme-${n}`,r)}))},Jc=e=>{let{active:t,theme:n,className:r,type:i=`button`}=e,a=(0,l._)(e,[`active`,`theme`,`className`,`type`]);return/*#__PURE__*/ (0,u.jsx)(`button`,(0,c._)((0,s._)({},a),{type:i,className:(0,d.default)(`stepper-item p-0 border-0 bg-transparent`,{active:t},n&&`theme-${n}`,r)}))},Yc=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`stepper-overflow`,t)}))};Wc.displayName=`Stepper`,Gc.displayName=`StepperNav`,Kc.displayName=`StepperItem`,qc.displayName=`StepperLink`,Jc.displayName=`StepperButton`,Yc.displayName=`StepperOverflow`;let Xc;var Zc,Qc,$c,el,tl,nl,rl,il;const al=e=>{let{eventKey:t,label:n,disabled:r}=e,i=(0,l._)(e,[`eventKey`,`label`,`disabled`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,s._)({},i))};al.displayName=`Tab`;let ol;new(Xc=(Zc=/*#__PURE__*/ new WeakMap,Qc=class extends (tl=m.Component){get tabs(){return m.Children.toArray(this.props.children).filter(e=>typeof e!=`string`||e.trim()).map(e=>{if(!/*#__PURE__*/ (0,m.isValidElement)(e)||typeof e.props.eventKey!=`string`||!(`label`in e.props))throw TypeError(`Tabs children must be Tab elements.`);return e})}get selectedKey(){return(0,n._)(this,Zc)}set selectedKey(e){(0,i._)(this,Zc,e)}get activeKey(){var e,t,n;let r=(e=this.props.activeKey)==null?this.selectedKey:e;return this.tabs.some(({props:e})=>e.eventKey===r&&!e.disabled)?r:(t=(n=this.tabs.find(({props:e})=>!e.disabled))==null?void 0:n.props.eventKey)==null?``:t}render(){let e=this.props,{activeKey:t,className:n,defaultActiveKey:r,fade:i,onChange:a,onClick:o,onKeyDown:d,id:f,orientation:p,children:m,variant:h}=e,g=(0,l._)(e,[`activeKey`,`className`,`defaultActiveKey`,`fade`,`onChange`,`onClick`,`onKeyDown`,`id`,`orientation`,`children`,`variant`]);return/*#__PURE__*/ (0,u.jsxs)(`div`,(0,c._)((0,s._)({},g),{ref:this.root,id:this.props.id,className:n,onClick:this.handleClick,onKeyDown:this.handleKeyDown,children:[this.renderTabs(),this.renderPanels()]}))}constructor(...e){var t,n,i,o,s;super(...e),(0,a._)(this,`root`,(il(this),/*#__PURE__*/ (0,m.createRef)())),(0,r._)(this,Zc,{writable:!0,value:nl(this,(t=(n=(i=this.props.defaultActiveKey)==null?(o=this.tabs.find(({props:e})=>!e.disabled))==null?void 0:o.props.eventKey:i)==null?(s=this.tabs[0])==null?void 0:s.props.eventKey:n)==null?``:t)}),(0,a._)(this,`handleClick`,e=>{var t,n,r;if((t=(n=this.props).onClick)==null||t.call(n,e),e.defaultPrevented)return;let i=e.target.closest(`[data-tab-index]`),a=i&&((r=this.tabs[Number(i.dataset.tabIndex)])==null?void 0:r.props);a&&!a.disabled&&this.activate(a.eventKey)}),(0,a._)(this,`handleKeyDown`,e=>{var t,n,r,i;if((t=(n=this.props).onKeyDown)==null||t.call(n,e),e.defaultPrevented)return;let a=e.target.closest(`[data-tab-index]`),o=Number(a==null?void 0:a.dataset.tabIndex),s=this.tabs;if(!a||Number.isNaN(o))return;let c=this.props.orientation!==`vertical`,l=c?e.key===`ArrowLeft`:e.key===`ArrowUp`,u=c?e.key===`ArrowRight`:e.key===`ArrowDown`,d=s.map(({props:e},t)=>e.disabled?-1:t).filter(e=>e>=0),f=d.indexOf(o),p=e.key===`Home`?d[0]:e.key===`End`?d.at(-1):l?d[(f-1+d.length)%d.length]:u?d[(f+1)%d.length]:void 0;if(p===void 0)return;e.preventDefault();let m=s[p];this.activate(m.props.eventKey),(i=this.root.current)==null||(r=i.querySelector(`[data-tab-index="${p}"]`))==null||r.focus()}),(0,a._)(this,`activate`,rl(this,e=>{var t,n;(t=(n=this.props).onChange)==null||t.call(n,e),this.props.activeKey===void 0&&(this.selectedKey=e)})),(0,a._)(this,`tabId`,e=>`${this.props.id}-tab-${encodeURIComponent(e)}`),(0,a._)(this,`panelId`,e=>`${this.props.id}-panel-${encodeURIComponent(e)}`),(0,a._)(this,`renderTabs`,()=>{var e;let{orientation:t=`horizontal`,variant:n=`tabs`}=this.props,r=n===`list-group`;return/*#__PURE__*/ (0,u.jsx)(`div`,{className:(0,d.default)(r?`list-group`:`nav`,!r&&`nav-${n}`,t===`vertical`&&(r?`flex-column`:n===`pills`?`nav-pills-vertical`:`flex-column`)),role:`tablist`,"aria-label":(e=this.props[`aria-label`])==null?`Tabs`:e,"aria-orientation":t,children:this.tabs.map(({props:e},t)=>{let n=e.eventKey===this.activeKey;return/*#__PURE__*/ (0,u.jsx)(`button`,{id:this.tabId(e.eventKey),type:`button`,role:`tab`,"data-tab-index":t,"aria-controls":this.panelId(e.eventKey),"aria-selected":n,"aria-disabled":e.disabled||void 0,tabIndex:n?0:-1,disabled:e.disabled,className:(0,d.default)(r?`list-group-item list-group-item-action`:`nav-link`,{active:n},e.disabled&&`disabled`),children:e.label},e.eventKey)})})}),(0,a._)(this,`renderPanels`,()=>{let{fade:e=!0}=this.props;return/*#__PURE__*/ (0,u.jsx)(`div`,{className:`tab-content`,children:this.tabs.map(t=>{var n;let{eventKey:r,className:i}=t.props,a=r===this.activeKey;return/*#__PURE__*/ (0,m.cloneElement)(t,{key:r,id:this.panelId(r),role:`tabpanel`,"aria-labelledby":this.tabId(r),"aria-hidden":!a,tabIndex:(n=t.props.tabIndex)==null?0:n,className:(0,d.default)(`tab-pane`,{active:a,show:a&&e},!e&&`tab-pane-instant`,i),hidden:!a})})})})}},{e:[nl,rl,il],c:[ol,el]}=(0,t._)(Qc,[[f.observable,1,`selectedKey`],[f.action,0,`activate`]],[p.observer],tl),Qc),$c=class extends o._{constructor(){super(ol),(0,a._)(this,`displayName`,`Tabs`),el()}},(0,a._)($c,Xc,void 0),$c);var sl,cl;const ll={"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`},ul=e=>{let{position:t=`top-end`,className:n,"aria-live":r=`polite`,"aria-atomic":i=!0}=e,a=(0,l._)(e,[`position`,`className`,`aria-live`,`aria-atomic`]),o=t===`static`;return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},a),{className:(0,d.default)(`toast-container`,!o&&`position-fixed`,!o&&`p-3`,o?`position-static`:ll[t],n),"aria-live":r,"aria-atomic":i}))},dl=e=>{let{theme:t,show:n=!0,translucent:r,instant:i,role:a=`status`,className:o}=e,f=(0,l._)(e,[`theme`,`show`,`translucent`,`instant`,`role`,`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},f),{className:(0,d.default)(`toast`,{show:n,"toast-translucent":r,"toast-instant":i},t&&`theme-${t}`,o),role:a}))},fl=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`toast-header`,t)}))},pl=e=>{let{className:t}=e,n=(0,l._)(e,[`className`]);return/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},n),{className:(0,d.default)(`toast-body`,t)}))};var ml=/*#__PURE__*/ new WeakMap,hl=class{get messages(){return(0,n._)(this,ml)}set messages(e){(0,i._)(this,ml,e)}open(e){var t,n;let r=(t=e.id)==null?(0,w.uniqueID)():t;this.close(r);let i=Date.now(),{promise:a,resolve:o}=Promise.withResolvers(),l=e.delay===0?void 0:setTimeout(()=>this.close(r),(n=e.delay)==null?3e3:n),u=(0,c._)((0,s._)({},e),{id:r,openedAt:i,resolve:o,timer:l});return this.messages=[...this.messages,u],a}close(e){let t=this.messages.find(t=>t.id===e);if(!t)return;let{resolve:n,timer:r}=t,i=(0,l._)(t,[`resolve`,`timer`]);clearTimeout(r),n==null||n((0,c._)((0,s._)({},i),{closedAt:Date.now()})),this.messages=this.messages.filter(t=>t.id!==e)}constructor(e=w.Timestamp){(0,a._)(this,`TimeScalar`,void 0),(0,r._)(this,ml,{writable:!0,value:void 0}),(0,a._)(this,`Component`,void 0),(0,a._)(this,`renderMessage`,void 0),(0,a._)(this,`handleDismiss`,void 0),this.TimeScalar=e,(0,i._)(this,ml,(cl(this),sl(this,[]))),this.Component=(0,p.observer)(({position:e})=>/*#__PURE__*/ (0,u.jsx)(ul,{position:e,onClick:this.handleDismiss,children:this.messages.map(this.renderMessage)})),this.renderMessage=({id:e,openedAt:t,title:n,body:r,theme:i,translucent:a,instant:o,role:s,delay:c=3e3})=>{let l=!!n||c===0,d=this.TimeScalar.distanceOf(Date.now(),t).toShortString();return/*#__PURE__*/ (0,u.jsxs)(dl,{theme:i,translucent:a,instant:o,role:s,children:[l&&/*#__PURE__*/ (0,u.jsxs)(fl,{children:[/*#__PURE__*/ (0,u.jsx)(`strong`,{className:`me-auto`,children:n}),/*#__PURE__*/ (0,u.jsx)(`small`,{children:d}),/*#__PURE__*/ (0,u.jsx)(R,{"data-toast-dismiss":e})]}),/*#__PURE__*/ (0,u.jsx)(pl,{children:r})]},e)},this.handleDismiss=({target:e})=>{var t;if(!(e instanceof Element))return;let n=(t=e.closest(`[data-toast-dismiss]`))==null?void 0:t.dataset.toastDismiss;n&&this.close(n)},this.Component.displayName=`ToastComponent`}};({e:[sl,cl]}=(0,t._)(hl,[[f.observable,1,`messages`],[f.action,2,`open`],[f.action,2,`close`]],[]));const gl=e=>{let{type:t=`checkbox`,variant:n=`solid`,theme:r,name:i,value:a,checked:o,defaultChecked:f,disabled:p,required:m,size:h,inputProps:g,onChange:_,className:v,children:y}=e,b=(0,l._)(e,[`type`,`variant`,`theme`,`name`,`value`,`checked`,`defaultChecked`,`disabled`,`required`,`size`,`inputProps`,`onChange`,`className`,`children`]);return/*#__PURE__*/ (0,u.jsxs)(`label`,(0,c._)((0,s._)({},b),{className:(0,d.default)(`btn-check`,`btn-${n}`,r&&`theme-${r}`,h&&`btn-${h}`,v),children:[/*#__PURE__*/ (0,u.jsx)(`input`,(0,c._)((0,s._)({},g),{type:t,name:i,value:a,checked:o,defaultChecked:f,disabled:p,required:m,autoComplete:`off`,onChange:_})),y]}))};gl.displayName=`ToggleButton`;var _l=class extends m.Component{render(){var e,t;let n=this.props,{as:r=`button`,target:i,attribute:a,value:o,onToggled:f,theme:p,variant:m,disabled:h}=n,g=(0,l._)(n,[`as`,`target`,`attribute`,`value`,`onToggled`,`theme`,`variant`,`disabled`]);return r===`button`?/*#__PURE__*/ (0,u.jsx)(P,(0,c._)((0,s._)({},g),{theme:p,variant:m,disabled:h,onClick:this.handleClick})):/*#__PURE__*/ (0,u.jsx)(r,(0,c._)((0,s._)({},g),{className:(0,d.default)(p&&`theme-${p}`,m&&`btn-${m}`,g.className),role:(e=g.role)==null?`button`:e,tabIndex:h?-1:(t=g.tabIndex)==null?0:t,"aria-disabled":h||void 0,onClick:this.handleClick,onKeyDown:this.handleKeyDown}))}constructor(...e){super(...e),(0,a._)(this,`handleClick`,e=>{var t,n;if((t=(n=this.props).onClick)==null||t.call(n,e),e.defaultPrevented||this.props.disabled)return;let{target:r,attribute:i=`class`,value:a,onToggled:o}=this.props,s=r?[...document.querySelectorAll(r)]:[e.currentTarget],c=s.map(e=>{var t,n;return{element:e,attribute:(t=e.dataset.bsAttribute)==null?i:t,value:(n=e.dataset.bsValue)==null?a:n}});if(c.some(({attribute:e})=>e.toLowerCase()===`id`))throw TypeError(`Toggler cannot change the id attribute`);for(let{element:e,attribute:t,value:n}of c){if(n==null)continue;let r=String(n),i=new window.CustomEvent(`toggle.bs.toggler`,{cancelable:!0});if(e.dispatchEvent(i)){if(t===`class`)for(let t of r.split(/\s+/).filter(Boolean))e.classList.toggle(t);else e.getAttribute(t)===r?e.removeAttribute(t):e.setAttribute(t,r);e.dispatchEvent(new window.CustomEvent(`toggled.bs.toggler`))}}o==null||o(s)}),(0,a._)(this,`handleKeyDown`,e=>{var t,n;(t=(n=this.props).onKeyDown)==null||t.call(n,e),e.defaultPrevented||this.props.disabled||e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),e.currentTarget.click())})}};(0,a._)(_l,`displayName`,`Toggler`),exports.Accordion=ce,exports.AccordionBody=de,exports.AccordionHeader=ue,exports.AccordionItem=le,Object.defineProperty(exports,"AccordionToggle",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(exports,"Alert",{enumerable:!0,get:function(){return V}}),exports.AlertHeading=Se,exports.AlertLink=xe,exports.Avatar=we,exports.AvatarImage=Te,exports.AvatarStack=Ee,exports.Badge=Oe,exports.Breadcrumb=ke,exports.BreadcrumbDivider=Me,exports.BreadcrumbItem=Ae,exports.BreadcrumbLink=je,exports.Button=P,exports.ButtonGroup=Ne,exports.ButtonInput=te,exports.ButtonToolbar=Pe,exports.Card=Fe,exports.CardBody=Ve,exports.CardFooter=He,exports.CardGroup=Re,exports.CardHeader=Be,exports.CardImage=Ie,exports.CardImageOverlay=ze,exports.CardSubtitle=Le,exports.CardText=We,exports.CardTitle=Ue,Object.defineProperty(exports,"Carousel",{enumerable:!0,get:function(){return ut}}),exports.CarouselSlide=lt,exports.Checkbox=Po,exports.Chip=Ro,exports.ChipDismiss=Vo,exports.ChipIcon=zo,exports.ChipImage=Bo,exports.ChipInput=Lo,exports.ChipInputLabel=Uo,exports.ChipToken=Ho,exports.ClickBoundary=an,exports.CloseButton=R,exports.CodeBlock=mr,exports.Col=$,Object.defineProperty(exports,"Collapse",{enumerable:!0,get:function(){return Mt}}),Object.defineProperty(exports,"CollapseToggle",{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(exports,"Combobox",{enumerable:!0,get:function(){return ds}}),exports.ComboboxGroup=cs,exports.ComboboxOption=ss,exports.Container=yo,Object.defineProperty(exports,"Countdown",{enumerable:!0,get:function(){return Cr}}),exports.DatePicker=_s,exports.DatePickerButton=vs,exports.DatePickerInline=ys,exports.Dialog=Ar,exports.DialogBody=Bt,exports.DialogClose=Dr,exports.DialogFooter=Vt,exports.DialogHeader=Rt,exports.DialogTitle=zt,Object.defineProperty(exports,"Drawer",{enumerable:!0,get:function(){return rn}}),exports.DrawerBody=en,exports.DrawerFooter=tn,exports.DrawerHeader=Qt,exports.DrawerTitle=$t,Object.defineProperty(exports,"Editor",{enumerable:!0,get:function(){return Br}}),exports.EditorHTML=Hr,exports.FloatingPosition=Y,exports.Form=Ss,exports.FormAdornment=ko,exports.FormAdornmentIcon=jo,exports.FormAdornmentText=Ao,exports.FormCheck=Ws,exports.FormControl=ps,exports.FormFeedback=xs,exports.FormField=ws,exports.FormFieldContent=Es,exports.FormFieldset=Cs,exports.FormFloatingLabel=As,exports.FormGhost=Mo,exports.FormGroup=Ts,exports.FormLabel=Ds,exports.FormLegend=Os,exports.FormRange=Ks,exports.FormSelect=hs,exports.FormSwitch=qs,exports.FormText=bs,exports.FormTextArea=ms,exports.HorizontalMarquee=Ur,exports.HorizontalMarqueeBox=Wr,exports.Icon=F,exports.Image=Q,exports.InputGroup=js,exports.InputGroupButton=Ps,exports.InputGroupIgnore=Fs,exports.InputGroupMenu=Is,exports.InputGroupText=Ns,exports.ListGroup=Js,exports.ListGroupItem=Zs,exports.LiveTSX=Gr,exports.Loading=qr,Object.defineProperty(exports,"Menu",{enumerable:!0,get:function(){return Z}}),exports.MenuDivider=ya,exports.MenuHeader=va,exports.MenuItem=pa,exports.MenuItemCheck=ga,exports.MenuItemContent=ba,exports.MenuItemDescription=xa,exports.MenuItemIcon=ha,exports.MenuPanel=ma,Object.defineProperty(exports,"MenuSubmenu",{enumerable:!0,get:function(){return Sa}}),exports.MenuText=_a,Object.defineProperty(exports,"MonthCalendar",{enumerable:!0,get:function(){return Ei}}),exports.Nameplate=Di,exports.NativeDialog=Ht,exports.Nav=X,exports.NavItem=Oi,exports.NavLink=ki,Object.defineProperty(exports,"NavOverflow",{enumerable:!0,get:function(){return yc}}),exports.Navbar=Qs,exports.NavbarBrand=$s,exports.NavbarNav=ec,exports.NavbarText=tc,exports.NavbarToggler=nc,exports.OTPInput=zs,exports.OVERLAY_ARROW_POSITIONS=ai,exports.OVERLAY_DIRECTIONS=ii,exports.Option=Aa,Object.defineProperty(exports,"OverlayBox",{enumerable:!0,get:function(){return _i}}),exports.PageItem=xc,exports.PageLink=Sc,Object.defineProperty(exports,"PageNav",{enumerable:!0,get:function(){return Vi}}),exports.PageText=Cc,exports.Pagination=bc,exports.PasswordStrength=Hs,exports.Placeholder=wc,exports.PlaceholderAnimation=Tc,exports.PlaceholderButton=Ec,exports.Popover=oi,exports.Progress=Dc,exports.ProgressStack=Oc,exports.Radio=Us,exports.Row=bo,exports.ScrollNav=ea,Object.defineProperty(exports,"ScrollSpy",{enumerable:!0,get:function(){return Hc}}),exports.Select=ja,Object.defineProperty(exports,"ShareBox",{enumerable:!0,get:function(){return Ua}}),exports.Spinner=J,exports.SpinnerButton=Wa,exports.SpinnerIcon=Kr,exports.Stepper=Wc,exports.StepperButton=Jc,exports.StepperItem=Kc,exports.StepperLink=qc,exports.StepperNav=Gc,exports.StepperOverflow=Yc,exports.Tab=al,exports.Table=xo,exports.TableSpinner=Ga,Object.defineProperty(exports,"Tabs",{enumerable:!0,get:function(){return ol}}),exports.TextTruncate=ro,exports.Time=io,exports.TimeDistance=oo,exports.Timeline=so,exports.Toast=hl,exports.ToastBody=pl,exports.ToastContainer=ul,exports.ToastHeader=fl,exports.ToastItem=dl,exports.ToggleButton=gl,exports.Toggler=_l,exports.Tooltip=si,exports.TypeEcho=vo,exports.UserRankView=wo,exports.VariantColors=Pt,exports.VerticalMarquee=To,exports.ZodiacBar=Oo,exports.ZodiacSigns=Eo,exports.animate=Ce,exports.elementToImage=Ha,exports.parser=Vr,exports.text2color=Ft,exports.zodiacOf=Do;
30
+ process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)}function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case l:case u:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case c:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var S=l,C=u,w=c,T=s,E=n,D=d,O=i,k=h,A=m,j=r,M=o,N=a,P=f,F=!1;function I(e){return F||(F=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.`)),L(e)||x(e)===l}function L(e){return x(e)===u}function ee(e){return x(e)===c}function te(e){return x(e)===s}function R(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function ne(e){return x(e)===d}function z(e){return x(e)===i}function re(e){return x(e)===h}function B(e){return x(e)===m}function ie(e){return x(e)===r}function ae(e){return x(e)===o}function oe(e){return x(e)===a}function se(e){return x(e)===f}e.AsyncMode=S,e.ConcurrentMode=C,e.ContextConsumer=w,e.ContextProvider=T,e.Element=E,e.ForwardRef=D,e.Fragment=O,e.Lazy=k,e.Memo=A,e.Portal=j,e.Profiler=M,e.StrictMode=N,e.Suspense=P,e.isAsyncMode=I,e.isConcurrentMode=L,e.isContextConsumer=ee,e.isContextProvider=te,e.isElement=R,e.isForwardRef=ne,e.isFragment=z,e.isLazy=re,e.isMemo=B,e.isPortal=ie,e.isProfiler=ae,e.isStrictMode=oe,e.isSuspense=se,e.isValidElementType=b,e.typeOf=x})()})),pn=/* @__PURE__ */ e.t(((e,t)=>{t.exports=process.env.NODE_ENV===`production`?dn():fn()})),mn=un(),G=pn(),K=(function(e,t){return e===0?``:Array(e*t).fill(` `).join(``)});function hn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gn(e){if(Array.isArray(e))return hn(e)}function _n(e,t,n){return(t=wn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vn(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function yn(){throw TypeError(`Invalid attempt to spread non-iterable instance.
31
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bn(Object(n),!0).forEach(function(t){_n(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sn(e){return gn(e)||vn(e)||Tn(e)||yn()}function Cn(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function wn(e){var t=Cn(e,`string`);return typeof t==`symbol`?t:t+``}function q(e){"@babel/helpers - typeof";return q=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},q(e)}function Tn(e,t){if(e){if(typeof e==`string`)return hn(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hn(e,t):void 0}}function En(e,t){if(e===null||q(e)!==`object`||e instanceof Date||e instanceof RegExp)return e;if(/*#__PURE__*/ m.isValidElement(e)){var n=xn({},e);return delete n._owner,n}return t.add(e),Array.isArray(e)?e.map(function(e){return En(e,t)}):Object.keys(e).sort().reduce(function(n,r){return n[r]=r===`current`||t.has(e[r])?`[Circular]`:En(e[r],t),n},{})}function Dn(e){return En(e,/* @__PURE__ */ new WeakSet)}var On=function(e){return{type:`string`,value:e}},kn=function(e){return{type:`number`,value:e}},An=function(e,t,n,r){return{type:`ReactElement`,displayName:e,props:t,defaultProps:n,childrens:r}},jn=function(e,t){return{type:`ReactFragment`,key:e,childrens:t}},Mn=!!m.Fragment,Nn=function(e){return!e.name||e.name===`_default`?`No Display Name`:e.name},Pn=function(e){switch(!0){case!!e.displayName:return e.displayName;case e.$$typeof===G.Memo:return Pn(e.type);case e.$$typeof===G.ForwardRef:return Pn(e.render);default:return Nn(e)}},Fn=function(e){switch(!0){case typeof e.type==`string`:return e.type;case typeof e.type==`function`:return e.type.displayName?e.type.displayName:Nn(e.type);case(0,G.isForwardRef)(e):case(0,G.isMemo)(e):return Pn(e.type);case(0,G.isContextConsumer)(e):return`${e.type._context.displayName||`Context`}.Consumer`;case(0,G.isContextProvider)(e):return`${e.type.displayName||`Context`}.Provider`;case(0,G.isLazy)(e):return`Lazy`;case(0,G.isProfiler)(e):return`Profiler`;case(0,G.isStrictMode)(e):return`StrictMode`;case(0,G.isSuspense)(e):return`Suspense`;default:return`UnknownElementType`}},In=function(e,t){return t!==`children`},Ln=function(e){return e!==!0&&e!==!1&&e!==null&&e!==``},Rn=function(e,t){var n={};return Object.keys(e).filter(function(n){return t(e[n],n)}).forEach(function(t){return n[t]=e[t]}),n},zn=function(e,t){var n=t.displayName,r=n===void 0?Fn:n;if(typeof e==`string`)return On(e);if(typeof e==`number`)return kn(e);if(!/*#__PURE__*/ m.default.isValidElement(e))throw Error(`react-element-to-jsx-string: Expected a React.Element, got \`${q(e)}\``);var i=r(e),a=Rn(e.props,In),o=e.key;typeof o==`string`&&o.search(/^\./)&&(a.key=o);var s=Rn(e.type.defaultProps||{},In),c=m.default.Children.toArray(e.props.children).filter(Ln).map(function(e){return zn(e,t)});return Mn&&e.type===m.Fragment?jn(o,c):An(i,a,s,c)};function Bn(){}var Vn=function(e){return e.toString().split(`
32
+ `).map(function(e){return e.trim()}).join(``)},Hn=(function(e,t){var n=t.functionValue,r=n===void 0?Vn:n;return!t.showFunctions&&r===Vn?r(Bn):r(e)}),Un=(function(e,t,n,r){var i=Dn(e),a=(0,mn.prettyPrint)(i,{transform:function(e,t,i){var a=e[t];return a&&/*#__PURE__*/ (0,m.isValidElement)(a)?pr(zn(a,r),!0,n,r):typeof a==`function`?Hn(a,r):i}});return t?a.replace(/\s+/g,` `).replace(/{ /g,`{`).replace(/ }/g,`}`).replace(/\[ /g,`[`).replace(/ ]/g,`]`):a.replace(/\t/g,K(1,r.tabStop)).replace(/\n([^$])/g,`
33
+ ${K(n+1,r.tabStop)}$1`)}),Wn=function(e){return e.replace(/"/g,`&quot;`)},Gn=function(e,t,n,r){if(typeof e==`number`)return`{${String(e)}}`;if(typeof e==`string`)return`"${Wn(e)}"`;if(q(e)===`symbol`){var i=e.valueOf().toString().replace(/Symbol\((.*)\)/,`$1`);return i?`{Symbol('${i}')}`:`{Symbol()}`}return typeof e==`function`?`{${Hn(e,r)}}`:/*#__PURE__*/ (0,m.isValidElement)(e)?`{${pr(zn(e,r),!0,n,r)}}`:e instanceof Date?isNaN(e.valueOf())?`{new Date(NaN)}`:`{new Date("${e.toISOString()}")}`:ln(e)||Array.isArray(e)?`{${Un(e,t,n,r)}}`:`{${String(e)}}`},Kn=(function(e,t,n,r,i,a,o,s){if(!t&&!r)throw Error(`The prop "${e}" has no value and no default: could not be formatted`);var c=t?n:i,l=s.useBooleanShorthandSyntax,u=s.tabStop,d=Gn(c,a,o,s),f=` `,p=`
34
+ ${K(o+1,u)}`,m=d.includes(`
35
+ `);return l&&d===`{true}`?(f+=`${e}`,p+=`${e}`):(f+=`${e}=${d}`,p+=`${e}=${d}`),{attributeFormattedInline:f,attributeFormattedMultiline:p,isMultilineAttribute:m}}),qn=(function(e,t){var n=e.slice(0,e.length>0?e.length-1:0),r=e[e.length-1];return r&&(t.type===`string`||t.type===`number`)&&(r.type===`string`||r.type===`number`)?n.push(On(String(r.value)+String(t.value))):(r&&n.push(r),n.push(t)),n}),Jn=function(e){return[`key`,`ref`].includes(e)},Yn=(function(e){return function(t){var n=t.includes(`key`),r=t.includes(`ref`),i=t.filter(function(e){return!Jn(e)}),a=Sn(e?i.sort():i);return r&&a.unshift(`ref`),n&&a.unshift(`key`),a}});function Xn(e,t){return Array.isArray(t)?function(e){return t.indexOf(e)===-1}:function(n){return t(e[n],n)}}var Zn=function(e,t,n,r,i){var a=i.tabStop;return e.type===`string`?t.split(`
36
+ `).map(function(e,t){return t===0?e:`${K(r,a)}${e}`}).join(`
37
+ `):t},Qn=function(e,t,n){return function(r){return Zn(r,pr(r,e,t,n),e,t,n)}},$n=function(e,t){return function(n){var r=Object.keys(e).includes(n);return!r||r&&e[n]!==t[n]}},er=function(e,t,n,r,i){return i?K(n,r).length+t.length>i:e.length>1},tr=function(e,t,n,r,i,a,o){return(er(e,t,i,a,o)||n)&&!r},nr=(function(e,t,n,r){var i=e.type,a=e.displayName,o=a===void 0?``:a,s=e.childrens,c=e.props,l=c===void 0?{}:c,u=e.defaultProps,d=u===void 0?{}:u;if(i!==`ReactElement`)throw Error(`The "formatReactElementNode" function could only format node of type "ReactElement". Given: ${i}`);var f=r.filterProps,p=r.maxInlineAttributesLineLength,m=r.showDefaultProps,h=r.sortProps,g=r.tabStop,_=`<${o}`,v=_,y=_,b=!1,x=[],S=Xn(l,f);Object.keys(l).filter(S).filter($n(d,l)).forEach(function(e){return x.push(e)}),Object.keys(d).filter(S).filter(function(){return m}).filter(function(e){return!x.includes(e)}).forEach(function(e){return x.push(e)});var C=Yn(h)(x);if(C.forEach(function(e){var i=Kn(e,Object.keys(l).includes(e),l[e],Object.keys(d).includes(e),d[e],t,n,r),a=i.attributeFormattedInline,o=i.attributeFormattedMultiline;i.isMultilineAttribute&&(b=!0),v+=a,y+=o}),y+=`
38
+ ${K(n,g)}`,_=tr(C,v,b,t,n,g,p)?y:v,s&&s.length>0){var w=n+1;_+=`>`,t||(_+=`
39
+ `,_+=K(w,g)),_+=s.reduce(qn,[]).map(Qn(t,w,r)).join(t?``:`
40
+ ${K(w,g)}`),t||(_+=`
41
+ `,_+=K(w-1,g)),_+=`</${o}>`}else er(C,v,n,g,p)||(_+=` `),_+=`/>`;return _}),rr=``,ir=`React.Fragment`,ar=function(e,t,n){var r={};return t&&(r={key:t}),{type:`ReactElement`,displayName:e,props:r,defaultProps:{},childrens:n}},or=function(e){return!!e.key},sr=function(e){return e.childrens.length===0},cr=(function(e,t,n,r){var i=e.type,a=e.key,o=e.childrens;if(i!==`ReactFragment`)throw Error(`The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: ${i}`);return nr(ar(r.useFragmentShortSyntax?sr(e)||or(e)?ir:rr:ir,a,o),t,n,r)}),lr=[`<`,`>`,`{`,`}`],ur=function(e){return lr.some(function(t){return e.includes(t)})},dr=function(e){return ur(e)?`{\`${e}\`}`:e},fr=function(e){var t=e;return t.endsWith(` `)&&(t=t.replace(/^(.*?)(\s+)$/,`$1{'$2'}`)),t.startsWith(` `)&&(t=t.replace(/^(\s+)(.*)$/,`{'$1'}$2`)),t},pr=(function(e,t,n,r){if(e.type===`number`)return String(e.value);if(e.type===`string`)return e.value?`${fr(dr(String(e.value)))}`:``;if(e.type===`ReactElement`)return nr(e,t,n,r);if(e.type===`ReactFragment`)return cr(e,t,n,r);throw TypeError(`Unknow format type "${e.type}"`)}),mr=(function(e,t){return pr(e,!1,0,t)}),hr=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.filterProps,r=n===void 0?[]:n,i=t.showDefaultProps,a=i===void 0||i,o=t.showFunctions,s=o!==void 0&&o,c=t.functionValue,l=t.tabStop,u=l===void 0?2:l,d=t.useBooleanShorthandSyntax,f=d===void 0||d,p=t.useFragmentShortSyntax,m=p===void 0||p,h=t.sortProps,g=h===void 0||h,_=t.maxInlineAttributesLineLength,v=t.displayName;if(!e)throw Error(`react-element-to-jsx-string: Expected a ReactElement`);var y={filterProps:r,showDefaultProps:a,showFunctions:s,functionValue:c,tabStop:u,useBooleanShorthandSyntax:f,useFragmentShortSyntax:m,sortProps:g,maxInlineAttributesLineLength:_,displayName:v};return mr(zn(e,y),y)};const gr=(0,T.createHighlighterCoreSync)({themes:[w.default,C.default],langs:[h.default,g.default,_.default,v.default,y.default,b.default,S.default,x.default],engine:(0,E.createJavaScriptRegexEngine)()}),_r=L(e=>{let{as:t=`pre`,className:n=``,language:r,header:i,children:a}=e,o=(0,l._)(e,[`as`,`className`,`language`,`header`,`children`]),d=typeof a==`string`?a:hr(/*#__PURE__*/ (0,m.isValidElement)(a)?a:/*#__PURE__*/ (0,u.jsx)(u.Fragment,{children:a})),f=gr.codeToHtml(d,{lang:r,themes:{light:`github-light`,dark:`github-dark`},defaultColor:!1,structure:`inline`,transformers:[{span:({properties:e})=>{e.style=`${e.style};color:light-dark(var(--shiki-light),var(--shiki-dark))`}}]}),p=/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({className:`m-0 shiki language-${r} ${n}`},o),{children:/*#__PURE__*/ (0,u.jsx)(`code`,{dangerouslySetInnerHTML:{__html:f},className:`language-${r}`})}));return i?/*#__PURE__*/ (0,u.jsxs)(`figure`,{className:`m-0`,children:[/*#__PURE__*/ (0,u.jsx)(`figcaption`,{className:`px-3 pb-6 mb-6 bg-body-tertiary border-bottom`,children:i}),p]}):p});_r.displayName=`CodeBlock`;let vr;var yr,br,xr,Sr,Cr,wr=(0,D.reaction)(e=>e.componentProps.endTime),Tr,Er;let Dr;new(vr=(yr=/*#__PURE__*/ new WeakMap,br=class extends (Cr=D.ObservedComponent){get componentProps(){return this.observedProps}get rest(){return(0,n._)(this,yr)}set rest(e){(0,i._)(this,yr,e)}get endTimestamp(){return+new Date(this.componentProps.endTime||Date.now())}get timeSections(){let{units:e}=this.componentProps,{rest:t}=this;return e.reduce((n,{label:r},i)=>{let a=e.slice(i).map(({scale:e})=>e).reduce((e,t)=>e*t,1),o=~~(t/a);return t-=o*a,n.push({value:o,label:r}),n},[])}stop(){this.timer&&(window.clearInterval(this.timer),this.timer=0)}componentDidMount(){super.componentDidMount(),this.initTimer()}initTimer(){this.stop(),this.tick(),this.timer=window.setInterval(this.tick,O.Second)}componentWillUnmount(){super.componentWillUnmount(),this.stop()}render(){let e=this.componentProps,{as:t,className:n=``,itemClassName:r=`border rounded px-4 py-3 d-flex flex-column justify-content-center align-items-center`,units:i,endTime:a,onEnd:o}=e,d=(0,l._)(e,[`as`,`className`,`itemClassName`,`units`,`endTime`,`onEnd`]),f=t==null?`ol`:t,{timeSections:p}=this;return/*#__PURE__*/ (0,u.jsx)(f,(0,c._)((0,s._)({className:`list-unstyled m-0 ${n}`},d),{children:p.map(({value:e,label:t})=>/*#__PURE__*/ (0,u.jsxs)(`li`,{className:r,children:[/*#__PURE__*/ (0,u.jsx)(`strong`,{children:(e+``).padStart(2,`0`)}),/*#__PURE__*/ (0,u.jsx)(`span`,{children:t})]},t))}))}constructor(...e){super(...e),(0,r._)(this,yr,{writable:!0,value:(Er(this),Tr(this,0))}),(0,a._)(this,`timer`,0),(0,a._)(this,`tick`,()=>{let{onEnd:e,endTime:t}=this.componentProps,n=this.endTimestamp-Date.now();n>0?this.rest=n:(this.rest=0,this.stop(),e==null||e(t))})}},{e:[Tr,Er],c:[Dr,Sr]}=(0,t._)(br,[[f.observable,1,`rest`],[f.computed,3,`timeSections`],[wr,2,`initTimer`]],[p.observer],Cr),br),xr=class extends o._{constructor(){super(Dr),(0,a._)(this,`displayName`,`Countdown`),Sr()}},(0,a._)(xr,vr,void 0),xr);var Or,kr,Ar,jr=class extends Error{constructor(e=`Dialog closed`){super(e)}},Mr=/*#__PURE__*/ new WeakMap,Nr=/*#__PURE__*/ new WeakMap,Pr=class{get input(){return(0,n._)(this,Mr)}set input(e){(0,i._)(this,Mr,e)}get defer(){return(0,n._)(this,Nr)}set defer(e){(0,i._)(this,Nr,e)}open(e){e&&(this.input=e);let t=new k.Defer;this.defer=t;let n=(0,f.action)(()=>this.defer===t&&(this.defer=void 0));return t.promise.then(n,n),t.promise}constructor(e){(0,r._)(this,Mr,{writable:!0,value:(Ar(this),Or(this,{}))}),(0,r._)(this,Nr,{writable:!0,value:kr(this)}),(0,a._)(this,`Component`,void 0),this.Component=(0,p.observer)(t=>/*#__PURE__*/ (0,u.jsx)(e,(0,c._)((0,s._)({},t,this.input),{defer:this.defer}))),this.Component.displayName=`DialogComponent`}};({e:[Or,kr,Ar]}=(0,t._)(Pr,[[f.observable,1,`input`],[f.observable,1,`defer`],[f.action,2,`open`]],[]));let Fr;var Ir,Lr,Rr,zr,Br,Vr,Hr;const Ur=(0,j.createReactEditorJS)();let Wr;new(Fr=(Ir=/*#__PURE__*/ new WeakMap,Lr=class extends (Br=m.Component){get componentProps(){return this.props}get innerValue(){return(0,n._)(this,Ir)}set innerValue(e){(0,i._)(this,Ir,e)}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,n=this.componentProps,{as:r,name:i,required:a,className:o,style:f,tabIndex:p=-1,onBlur:m,children:h}=n,g=(0,l._)(n,[`as`,`name`,`required`,`className`,`style`,`tabIndex`,`onBlur`,`children`]),{innerValue:_}=this;return/*#__PURE__*/ (0,u.jsxs)(t,(0,c._)((0,s._)({},this.componentProps.as?g:{}),{className:(0,d.default)(`form-control`,o),style:f,tabIndex:p,onBlur:this.handleBlur,children:[/*#__PURE__*/ (0,u.jsx)(`input`,{hidden:!0,name:i,required:a,value:JSON.stringify(_)}),/*#__PURE__*/ (0,u.jsx)(Ur,(0,c._)((0,s._)({},g),{onInitialize:this.initialize}))]}))}constructor(...e){var t;super(...e),t=this,(0,a._)(this,`core`,void 0),(0,r._)(this,Ir,{writable:!0,value:(Hr(this),Vr(this,this.componentProps.defaultValue))}),(0,a._)(this,`setInnerValue`,(0,f.action)(e=>this.innerValue=e)),(0,a._)(this,`handleBlur`,e=>(0,A._)(function*(){var n,r;(n=(r=t.componentProps).onBlur)==null||n.call(r,e),t.core&&t.setInnerValue(yield t.core.save())})()),(0,a._)(this,`initialize`,e=>{var t,n;(t=(n=this.componentProps).onInitialize)==null||t.call(n,e),this.core=e})}},{e:[Vr,Hr],c:[Wr,zr]}=(0,t._)(Lr,[[f.observable,1,`innerValue`]],[p.observer],Br),Lr),Rr=class extends o._{constructor(){super(Wr),(0,a._)(this,`displayName`,`Editor`),zr()}},(0,a._)(Rr,Fr,void 0),Rr);const Gr=(0,M.default)({link:({data:{link:e}})=>`<a href="${e}">${e}</a>`}),Kr=L(e=>{let{as:t=`article`,data:n}=e,r=(0,l._)(e,[`as`,`data`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{dangerouslySetInnerHTML:{__html:Gr.parse(n)}}))});Kr.displayName=`EditorHTML`;const qr=L(e=>{let{as:t=`div`,className:n=``,children:r,maxWidth:i=`100%`,duration:a,height:o}=e,d=(0,l._)(e,[`as`,`className`,`children`,`maxWidth`,`duration`,`height`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({className:`overflow-hidden max-w-100 ${n}`},d),{children:/*#__PURE__*/ (0,u.jsx)(`div`,{className:`d-inline-block align-top text-nowrap ONAURG_scrollWrap`,style:{maxWidth:i,animationDuration:a,height:o,lineHeight:o},children:/*#__PURE__*/ (0,u.jsx)(`div`,{className:`d-inline-block ONAURG_scrollItem`,style:{animationDuration:a},children:r})})}))}),Jr=L(e=>{let{as:t,children:n,className:r=``,style:i,maxWidth:a,duration:o,height:d}=e,f=(0,l._)(e,[`as`,`children`,`className`,`style`,`maxWidth`,`duration`,`height`]);return d?/*#__PURE__*/ (0,u.jsx)(t==null?`div`:t,(0,c._)((0,s._)({},f),{className:`overflow-hidden ONAURG_scrollHeightWrap ${r}`,style:(0,s._)({maxWidth:a,"--scroll-height":d},i),children:/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`d-inline-block overflow-hidden max-w-100 ONAURG_scrollContainer`,children:[/*#__PURE__*/ (0,u.jsx)(`div`,{className:`d-block overflow-hidden text-wrap text-break ONAURG_unScrollItem`,children:n}),/*#__PURE__*/ (0,u.jsx)(qr,{duration:o,children:n})]})})):/*#__PURE__*/ (0,u.jsx)(qr,(0,c._)((0,s._)({as:t},f),{className:r,style:i,maxWidth:a,duration:o,height:d,children:n}))});qr.displayName=`HorizontalMarquee`,Jr.displayName=`HorizontalMarqueeBox`;const Yr=({scope:e,children:t})=>{let n=typeof t==`string`?t:hr(/*#__PURE__*/ (0,m.isValidElement)(t)?t:/*#__PURE__*/ (0,u.jsx)(u.Fragment,{children:t}));return/*#__PURE__*/ (0,u.jsxs)(N.LiveProvider,{code:n,scope:e,language:`tsx`,children:[/*#__PURE__*/ (0,u.jsx)(N.LivePreview,{className:`mb-3`}),/*#__PURE__*/ (0,u.jsx)(N.LiveEditor,{}),/*#__PURE__*/ (0,u.jsx)(N.LiveError,{className:`fg-danger small p-2`})]})},J=L(e=>{let{as:t=`span`,animation:n=`border`,size:r,theme:i,className:a,role:o=`status`}=e,f=(0,l._)(e,[`as`,`animation`,`size`,`theme`,`className`,`role`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},f),{role:o,className:(0,d.default)(`spinner-${n}`,r&&`spinner-${r}`,i&&`theme-${i}`,a)}))});J.displayName=`Spinner`;const Xr=L(e=>{let{as:t,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(z,(0,c._)((0,s._)({as:t},r),{className:(0,d.default)(`spinner-rotate`,n)}))});Xr.displayName=`SpinnerIcon`;const Zr=L(e=>{let{as:t=`div`,className:n=``,children:r=`Loading...`,opacity:i=25,style:a}=e,o=(0,l._)(e,[`as`,`className`,`children`,`opacity`,`style`]);return/*#__PURE__*/ (0,u.jsxs)(t,(0,c._)((0,s._)({className:`fixed-top h-100 w-100 d-flex justify-content-center align-items-center bg-black ${n}`,style:(0,c._)((0,s._)({},a),{opacity:i/100})},o),{children:[/*#__PURE__*/ (0,u.jsx)(J,{theme:`success`}),/*#__PURE__*/ (0,u.jsx)(`span`,{className:`ms-3 fg-white`,children:r})]}))});Zr.displayName=`Loading`;var Qr,$r,ei,ti,ni;const ri={sm:576,md:768,lg:1024,xl:1280,"2xl":1536},ii={top:`bottom`,bottom:`top`,left:`right`,right:`left`};var ai=/*#__PURE__*/ new WeakMap,oi=/*#__PURE__*/ new WeakMap,si=/*#__PURE__*/ new WeakMap,Y=class{get placement(){return(0,n._)(this,ai)}set placement(e){(0,i._)(this,ai,e)}get style(){return(0,n._)(this,oi)}set style(e){(0,i._)(this,oi,e)}get arrowStyle(){return(0,n._)(this,si)}set arrowStyle(e){(0,i._)(this,si,e)}attach(e,t,n){this.dispose(),this.reference=e,this.element=t,this.options=n,window.addEventListener(`resize`,this.update),document.addEventListener(`scroll`,this.update,!0),this.resize=new window.ResizeObserver(this.update),this.resize.observe(e),this.resize.observe(t),this.update()}constructor(){(0,r._)(this,ai,{writable:!0,value:(ni(this),Qr(this,`top`))}),(0,r._)(this,oi,{writable:!0,value:$r(this,{})}),(0,r._)(this,si,{writable:!0,value:ei(this,{})}),(0,a._)(this,`reference`,void 0),(0,a._)(this,`element`,void 0),(0,a._)(this,`resize`,void 0),(0,a._)(this,`options`,{}),(0,a._)(this,`dispose`,()=>{var e;window.removeEventListener(`resize`,this.update),document.removeEventListener(`scroll`,this.update,!0),(e=this.resize)==null||e.disconnect(),this.resize=void 0,this.reference=void 0,this.element=void 0}),(0,a._)(this,`update`,ti(this,()=>{let{reference:e,element:t,options:n}=this;if(!e||!t)return;let{responsivePlacement:r,offset:i=0,padding:a=8,flip:o=!0}=n,s=Object.keys(ri).reverse().find(e=>window.innerWidth>=ri[e]&&(r==null?void 0:r[e])),[c,l]=(s&&(r==null?void 0:r[s])||n.placement||`top`).split(`-`),u=e.getBoundingClientRect(),d=t.getBoundingClientRect(),[f,p]=typeof i==`number`?[0,i]:i,m={top:u.top-a,bottom:window.innerHeight-u.bottom-a,left:u.left-a,right:window.innerWidth-u.right-a},h=(c===`top`||c===`bottom`?d.height:d.width)+p,g=o&&m[c]<h&&m[ii[c]]>m[c]?ii[c]:c,_=u.left+(u.width-d.width)/2,v=u.top+(u.height-d.height)/2;g===`top`||g===`bottom`?(v=g===`top`?u.top-d.height-p:u.bottom+p,l&&(_=l===`start`?u.left:u.right-d.width),_+=f):(_=g===`left`?u.left-d.width-p:u.right+p,l&&(v=l===`start`?u.top:u.bottom-d.height),v+=f),_=Math.max(a,Math.min(_,window.innerWidth-d.width-a)),v=Math.max(a,Math.min(v,window.innerHeight-d.height-a));let y=g===`top`||g===`bottom`?{left:Math.max(8,Math.min(d.width-8,u.left+u.width/2-_))}:{top:Math.max(8,Math.min(d.height-8,u.top+u.height/2-v))};(this.arrowStyle.left!==y.left||this.arrowStyle.top!==y.top)&&(this.arrowStyle=y);let b=t.offsetParent,x=b instanceof HTMLElement&&(b!==document.body||getComputedStyle(b).position!==`static`)?b:void 0,S=x==null?void 0:x.getBoundingClientRect();_+=x?x.scrollLeft-S.left-x.clientLeft:window.scrollX,v+=x?x.scrollTop-S.top-x.clientTop:window.scrollY;let C=l?`${g}-${l}`:g;this.placement!==C&&(this.placement=C);let w=Math.max(0,window.innerWidth-a*2),T=Math.max(0,window.innerHeight-a*2);(this.style.left!==_||this.style.top!==v||this.style.maxWidth!==w||this.style.maxHeight!==T)&&(this.style={position:`absolute`,left:_,top:v,right:`auto`,bottom:`auto`,margin:0,maxWidth:w,maxHeight:T})}))}};({e:[Qr,$r,ei,ti,ni]}=(0,t._)(Y,[[f.observable,1,`placement`],[f.observable,1,`style`],[f.observable,1,`arrowStyle`],[f.action,0,`update`]],[]));const ci={top:`top`,right:`end`,bottom:`bottom`,left:`start`},li={top:`position-absolute start-50 translate-middle-x`,right:`position-absolute top-50 translate-middle-y`,bottom:`position-absolute start-50 translate-middle-x`,left:`position-absolute top-50 translate-middle-y`},ui=L(e=>{let{as:t=`div`,title:n,placement:r=`top`,show:i=!0,role:a=`tooltip`,className:o,children:f,arrowStyle:p}=e,m=(0,l._)(e,[`as`,`title`,`placement`,`show`,`role`,`className`,`children`,`arrowStyle`]);return/*#__PURE__*/ (0,u.jsxs)(t,(0,c._)((0,s._)({},m),{className:(0,d.default)(`popover`,{show:i},`bs-popover-${ci[r]}`,o),role:a,hidden:!i,"data-bs-placement":r,children:[/*#__PURE__*/ (0,u.jsx)(`div`,{style:p,className:(0,d.default)(`popover-arrow`,li[r])}),n!=null&&/*#__PURE__*/ (0,u.jsx)(`h3`,{className:`popover-header`,children:n}),/*#__PURE__*/ (0,u.jsx)(`div`,{className:`popover-body`,children:f})]}))});ui.displayName=`Popover`;const di=L(e=>{let{as:t=`div`,placement:n=`top`,show:r=!0,role:i=`tooltip`,className:a,children:o,arrowStyle:f}=e,p=(0,l._)(e,[`as`,`placement`,`show`,`role`,`className`,`children`,`arrowStyle`]);return/*#__PURE__*/ (0,u.jsxs)(t,(0,c._)((0,s._)({},p),{className:(0,d.default)(`tooltip`,{show:r},`bs-tooltip-${ci[n]}`,a),role:i,hidden:!r,"data-bs-placement":n,children:[/*#__PURE__*/ (0,u.jsx)(`div`,{style:f,className:(0,d.default)(`tooltip-arrow`,li[n])}),/*#__PURE__*/ (0,u.jsx)(`div`,{className:`tooltip-inner`,children:o})]}))});di.displayName=`Tooltip`;let fi;var X,pi,mi,hi,gi,_i,vi,yi;let bi;new(fi=(X=/*#__PURE__*/ new WeakMap,pi=class extends (gi=m.Component){get componentProps(){return this.props}get open(){return(0,n._)(this,X)}set open(e){(0,i._)(this,X,e)}componentWillUnmount(){document.removeEventListener(`pointerdown`,this.handleOutside),clearTimeout(this.timer),this.position.dispose()}componentDidMount(){document.addEventListener(`pointerdown`,this.handleOutside)}componentDidUpdate(e){let{open:t,root:n,overlay:r,props:i,position:a}=this,{placement:o=`top`,responsivePlacement:s,offset:c=i.detail==null?8:12,padding:l,flip:u,container:d}=i;if(!t)return a.dispose();n.current&&r.current&&(a.element!==r.current||e.placement!==i.placement||e.responsivePlacement!==s||e.offset!==i.offset||e.padding!==l||e.flip!==u||e.container!==d?a.attach(n.current,r.current,{placement:o,responsivePlacement:s,offset:c,padding:l,flip:u}):a.update())}render(){var e;let t=(e=this.componentProps.as)==null?`span`:e,n=this.componentProps,{as:r,title:i,detail:a,placement:o=`top`,responsivePlacement:f,container:p,offset:h,padding:g,flip:_,trigger:v,delay:y,overlayClassName:b,children:x,className:S=``,onMouseEnter:C,onMouseLeave:w,onFocus:T,onBlur:E,onClick:D,onKeyDown:O}=n,k=(0,l._)(n,[`as`,`title`,`detail`,`placement`,`responsivePlacement`,`container`,`offset`,`padding`,`flip`,`trigger`,`delay`,`overlayClassName`,`children`,`className`,`onMouseEnter`,`onMouseLeave`,`onFocus`,`onBlur`,`onClick`,`onKeyDown`]),A=this.open?this.id:void 0,j=this.position.element?this.position.placement.split(`-`)[0]:o,M=(0,d.default)(`w-max`,b),N=a==null?/*#__PURE__*/ (0,u.jsx)(di,{ref:this.overlay,id:A,style:(0,s._)({},this.position.style),arrowStyle:(0,s._)({},this.position.arrowStyle),className:M,placement:j,children:i}):/*#__PURE__*/ (0,u.jsx)(ui,{ref:this.overlay,id:A,style:(0,s._)({},this.position.style),arrowStyle:(0,s._)({},this.position.arrowStyle),className:M,title:i,placement:j,children:a}),F=this.open&&p?typeof p==`string`?document.querySelector(p):typeof p==`function`?p():p:void 0;if(this.open&&p&&!F)throw Error(`Overlay container was not found`);let I=/*#__PURE__*/ (0,m.isValidElement)(x)?/*#__PURE__*/ (0,m.cloneElement)(x,{"aria-describedby":[x.props[`aria-describedby`],A].filter(Boolean).join(` `)||void 0}):x;return/*#__PURE__*/ (0,u.jsxs)(t,(0,c._)((0,s._)({},k),{ref:this.root,className:`position-relative d-inline-block ${S}`,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,onKeyDown:this.handleKeyDown,children:[I,this.open&&(F?/*#__PURE__*/ (0,P.createPortal)(N,F):N)]}))}constructor(...e){super(...e),(0,r._)(this,X,{writable:!0,value:(yi(this),_i(this,!1))}),(0,a._)(this,`id`,(0,O.uniqueID)()),(0,a._)(this,`root`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`overlay`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`position`,new Y),(0,a._)(this,`timer`,void 0),(0,a._)(this,`setOpen`,vi(this,e=>this.open=e)),(0,a._)(this,`hide`,()=>{clearTimeout(this.timer),this.setOpen(!1)}),(0,a._)(this,`setOpenAfterDelay`,e=>{clearTimeout(this.timer);let{delay:t}=this.componentProps,n=typeof t==`number`?t:t==null?void 0:t[e?`show`:`hide`];if(!n)return this.setOpen(e);this.timer=setTimeout(()=>this.setOpen(e),n)}),(0,a._)(this,`contains`,e=>{var t,n;return e instanceof Node&&(!!((t=this.root.current)!=null&&t.contains(e))||!!((n=this.overlay.current)!=null&&n.contains(e)))}),(0,a._)(this,`hasTrigger`,e=>(this.componentProps.trigger?Array.isArray(this.componentProps.trigger)?this.componentProps.trigger:[this.componentProps.trigger]:[`hover`,`focus`]).includes(e)),(0,a._)(this,`handleMouseEnter`,e=>{var t,n;(t=(n=this.componentProps).onMouseEnter)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`hover`)&&this.setOpenAfterDelay(!0)}),(0,a._)(this,`handleMouseLeave`,e=>{var t,n;(t=(n=this.componentProps).onMouseLeave)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`hover`)&&!this.contains(e.relatedTarget)&&!this.contains(document.activeElement)&&this.setOpenAfterDelay(!1)}),(0,a._)(this,`handleFocus`,e=>{var t,n;(t=(n=this.componentProps).onFocus)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`focus`)&&this.setOpenAfterDelay(!0)}),(0,a._)(this,`handleBlur`,e=>{var t,n;(t=(n=this.componentProps).onBlur)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`focus`)&&!this.contains(e.relatedTarget)&&this.setOpenAfterDelay(!1)}),(0,a._)(this,`handleClick`,e=>{var t,n,r;(t=(n=this.componentProps).onClick)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`click`)&&!(e.target instanceof Node&&(r=this.overlay.current)!=null&&r.contains(e.target))&&this.setOpenAfterDelay(!this.open)}),(0,a._)(this,`handleOutside`,({target:e})=>{e instanceof Node&&!this.contains(e)&&this.hide()}),(0,a._)(this,`handleKeyDown`,e=>{var t,n;(t=(n=this.componentProps).onKeyDown)==null||t.call(n,e),!e.defaultPrevented&&e.key===`Escape`&&this.open&&(e.preventDefault(),this.hide())})}},{e:[_i,vi,yi],c:[bi,hi]}=(0,t._)(pi,[[f.observable,1,`open`],[f.action,0,`setOpen`]],[p.observer],gi),pi),mi=class extends o._{constructor(){super(bi),(0,a._)(this,`displayName`,`OverlayBox`),hi()}},(0,a._)(mi,fi,void 0),mi);let xi;var Si,Ci,wi,Ti,Ei,Di,Oi;let ki;new(xi=(Si=/*#__PURE__*/ new WeakMap,Ci=class extends (Ei=D.ObservedComponent){get componentProps(){return this.props}get observedComponentProps(){return this.observedProps}get weekFormatter(){var e;let{locale:t=(e=globalThis.navigator)==null?void 0:e.language}=this.observedComponentProps;return new Intl.DateTimeFormat(t,{weekday:`long`})}get currentDate(){return(0,n._)(this,Si)}set currentDate(e){(0,i._)(this,Si,e)}get dateGrid(){let e=new Date(this.currentDate);e.setDate(1),e=/* @__PURE__ */ new Date(+e-e.getDay()*O.Day);let t=Array.from(Array(42),(t,n)=>new Date(+e+n*O.Day));return(0,O.splitArray)(t,7)}changeMonth(e){var t,n;this.currentDate=(0,O.changeMonth)(this.currentDate,e),(t=(n=this.componentProps).onChange)==null||t.call(n,this.currentDate)}render(){var e;let t=(e=this.componentProps.as)==null?`table`:e,{weekFormatter:n,currentDate:r,dateGrid:i}=this,a=this.observedComponentProps,{as:o,className:d=``,style:f,theme:p=`primary`,onChange:m,onSelect:h}=a,g=(0,l._)(a,[`as`,`className`,`style`,`theme`,`onChange`,`onSelect`]);return/*#__PURE__*/ (0,u.jsxs)(t,(0,c._)((0,s._)({},g),{className:`table ${d}`,style:(0,s._)({tableLayout:`fixed`},f),children:[/*#__PURE__*/ (0,u.jsx)(`caption`,{children:/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`d-flex justify-content-between align-items-center`,children:[/*#__PURE__*/ (0,u.jsx)(R,{theme:p,onClick:this.changePreviousMonth,children:`<`}),(0,O.formatDate)(r,`YYYY-MM`),/*#__PURE__*/ (0,u.jsx)(R,{theme:p,onClick:this.changeNextMonth,children:`>`})]})}),/*#__PURE__*/ (0,u.jsx)(`thead`,{children:/*#__PURE__*/ (0,u.jsx)(`tr`,{children:i[0].map((e,t,{length:r})=>/*#__PURE__*/ (0,u.jsx)(`th`,{className:`theme-${p} theme-contrast`,style:{width:`calc(100% / ${r})`},scope:`col`,children:n.format(e)},t))})}),/*#__PURE__*/ (0,u.jsx)(`tbody`,{children:i.map(e=>/*#__PURE__*/ (0,u.jsx)(`tr`,{children:e.map(this.renderDate)},e[0]+``))})]}))}constructor(...e){super(...e),(0,r._)(this,Si,{writable:!0,value:(Oi(this),Di(this,/* @__PURE__ */ new Date))}),(0,a._)(this,`changePreviousMonth`,()=>this.changeMonth(-1)),(0,a._)(this,`changeNextMonth`,()=>this.changeMonth(1)),(0,a._)(this,`handleCellClick`,({target:e,currentTarget:t})=>{var n,r,i;if(!(e instanceof Element))return;let a=e.closest(`[data-calendar-index]`);if(!a||!t.contains(a))return;let o=a.dataset.calendarDate,s=Number(a.dataset.calendarIndex),c=(n=this.componentProps.value)==null?void 0:n.filter(({date:e})=>(0,O.formatDate)(e,`YYYY-MM-DD`)===o),l=c==null?void 0:c[s];l&&((r=(i=this.componentProps).onSelect)==null||r.call(i,l))}),(0,a._)(this,`renderDate`,e=>{let{value:t}=this.observedComponentProps,n=(0,O.formatDate)(e,`YYYY-MM-DD`),r=t==null?void 0:t.filter(({date:e})=>(0,O.formatDate)(e,`YYYY-MM-DD`)===n);return/*#__PURE__*/ (0,u.jsxs)(`td`,{className:(0,d.default)({"opacity-50":e.getMonth()!==this.currentDate.getMonth(),"fw-bold":n===(0,O.formatDate)(/* @__PURE__ */ new Date,`YYYY-MM-DD`)}),onClick:this.handleCellClick,children:[/*#__PURE__*/ (0,u.jsx)(`time`,{className:`d-block`,dateTime:e.toJSON(),children:e.getDate()}),r==null?void 0:r.map((e,t)=>typeof e.content==`object`?e.content:/*#__PURE__*/ (0,u.jsx)(bi,{title:e.content,children:/*#__PURE__*/ (0,u.jsx)(U,{className:`d-inline-block text-decoration-none w-100 text-truncate`,theme:Lt(e.content+``,[`light`]),"data-calendar-date":n,"data-calendar-index":t,href:e.link,children:e.content})},`${n}-${t}`))]},e+``)})}},{e:[Di,Oi],c:[ki,Ti]}=(0,t._)(Ci,[[f.computed,3,`weekFormatter`],[f.observable,1,`currentDate`],[f.computed,3,`dateGrid`],[f.action,2,`changeMonth`]],[p.observer],Ei),Ci),wi=class extends o._{constructor(){super(ki),(0,a._)(this,`displayName`,`MonthCalendar`),Ti()}},(0,a._)(wi,xi,void 0),wi);const Ai=({avatar:e,name:t})=>/*#__PURE__*/ (0,u.jsxs)(u.Fragment,{children:[/*#__PURE__*/ (0,u.jsx)(Oe,{size:2,style:{marginRight:`0.5rem`},src:e}),/*#__PURE__*/ (0,u.jsx)(`span`,{className:`align-middle`,children:t})]});Ai.displayName=`Nameplate`;const Z=L(e=>{let{as:t=`nav`,variant:n,vertical:r,fill:i,justified:a,cardHeader:o,navbar:f,className:p}=e,m=(0,l._)(e,[`as`,`variant`,`vertical`,`fill`,`justified`,`cardHeader`,`navbar`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},m),{className:(0,d.default)(`nav`,f&&`navbar-nav`,n&&`nav-${n}`,o&&n===`tabs`&&`card-header-tabs`,r&&(n===`pills`?`nav-pills-vertical`:`flex-column`),{"nav-fill":i,"nav-justified":a},p)}))});Z.displayName=`Nav`;const ji=L(e=>{let{as:t=`li`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`nav-item`,n)}))});ji.displayName=`NavItem`;const Mi=L(e=>{let{as:t=`a`,disabled:n,active:r,className:i,href:a,onClick:o,tabIndex:f}=e,p=(0,l._)(e,[`as`,`disabled`,`active`,`className`,`href`,`onClick`,`tabIndex`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},p),{href:n?void 0:a,tabIndex:n?-1:f,"aria-disabled":n||void 0,"aria-current":r?`page`:p[`aria-current`],className:(0,d.default)(`nav-link`,{active:r,disabled:n,"pe-none":n},i),onClick:n?void 0:o}))});Mi.displayName=`NavLink`;let Ni;var Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi;const Ui=Array.from({length:6},(e,t)=>`h${t+1}`).join(`,`);let Wi;new(Ni=(Pi=/*#__PURE__*/ new WeakMap,Fi=/*#__PURE__*/ new WeakMap,Ii=class extends (zi=m.Component){get componentProps(){return this.props}get list(){return(0,n._)(this,Pi)}set list(e){(0,i._)(this,Pi,e)}get scrollY(){return(0,n._)(this,Fi)}set scrollY(e){(0,i._)(this,Fi,e)}get currentActiveId(){var e;let{list:t,scrollY:n}=this,r=t.findIndex(({top:e})=>e>n);return(e=t[r<0?t.length-1:r-1])==null?void 0:e.id}componentDidMount(){globalThis.document&&(window.addEventListener(`scroll`,this.updateScrollY),window.addEventListener(`resize`,this.updateScrollY),this.initList(),this.updateScrollY())}static slugOf(e){let t=e.toLowerCase().replace(/\W+/g,`-`).replace(/^-+|-+$/g,``);return!t||document.getElementById(t)?(0,O.uniqueID)():t}initList(){let{rootSelector:e}=this.componentProps,t=e?document.querySelector(e):document;t&&(this.list=Array.from(t.querySelectorAll(Ui),e=>{var t;let n=e.textContent.trim();(t=e).id||(t.id=Wi.slugOf(n));let{id:r,tagName:i}=e,a=e.getBoundingClientRect().top+window.scrollY;return{id:r,level:+i[1],text:n,top:a}}))}componentWillUnmount(){window.removeEventListener(`scroll`,this.updateScrollY),window.removeEventListener(`resize`,this.updateScrollY)}render(){let{list:e}=this,t=this.componentProps,{depth:n,minDepth:r,rootSelector:i,onItemClick:a}=t,o=(0,l._)(t,[`depth`,`minDepth`,`rootSelector`,`onItemClick`]);return/*#__PURE__*/ (0,u.jsx)(Z,(0,c._)((0,s._)({as:this.componentProps.as},o),{variant:`underline`,vertical:!0,children:e.map(this.renderLink)}))}constructor(...e){super(...e),(0,r._)(this,Pi,{writable:!0,value:(Hi(this),Bi(this,[]))}),(0,r._)(this,Fi,{writable:!0,value:Vi(this,0)}),(0,a._)(this,`updateScrollY`,(0,f.action)(()=>{this.scrollY=window.scrollY,this.list=this.list.map(e=>{let t=document.getElementById(e.id);return t?(0,c._)((0,s._)({},e),{top:t.getBoundingClientRect().top+this.scrollY}):e})})),(0,a._)(this,`scrollTo`,e=>()=>{var t,n;setTimeout(()=>(0,O.scrollTo)(`[id="${e.id}"]`)),(t=(n=this.componentProps).onItemClick)==null||t.call(n,e)}),(0,a._)(this,`renderLink`,({id:e,level:t,text:n,top:r})=>{let{currentActiveId:i}=this,{depth:a=1/0,minDepth:o=1}=this.componentProps;return o<=t&&t<=a&&/*#__PURE__*/ (0,u.jsx)(Mi,{className:(0,d.default)(`justify-content-start text-wrap min-w-0`,i===e&&`active`),style:{paddingInlineStart:`${t-o+.75}rem`},href:`#${e}`,"aria-current":i===e?`location`:void 0,onClick:this.scrollTo({id:e,level:t,text:n,top:r}),children:n},e)})}},{e:[Bi,Vi,Hi],c:[Wi,Ri]}=(0,t._)(Ii,[[f.observable,1,`list`],[f.observable,1,`scrollY`],[f.computed,3,`currentActiveId`],[f.action,2,`initList`]],[p.observer],zi),Ii),Li=class extends o._{constructor(){super(Wi),(0,a._)(this,`displayName`,`PageNav`),Ri()}},(0,a._)(Li,Ni,void 0),Li);var Gi,Ki,qi,Ji,Yi,Xi,Zi;let Qi;var $i=/*#__PURE__*/ new WeakMap,ea=/*#__PURE__*/ new WeakMap,ta=/*#__PURE__*/ new WeakMap,na=class extends (Ki=m.Component){get componentProps(){return this.props}get scrollLeft(){return(0,n._)(this,$i)}set scrollLeft(e){(0,i._)(this,$i,e)}get scrollWidth(){return(0,n._)(this,ea)}set scrollWidth(e){(0,i._)(this,ea,e)}get clientWidth(){return(0,n._)(this,ta)}set clientWidth(e){(0,i._)(this,ta,e)}get canScrollLeft(){return this.scrollLeft>0}get canScrollRight(){return this.scrollLeft+this.clientWidth<this.scrollWidth}componentDidMount(){let e=this.updateScroll();e&&(e.addEventListener(`scroll`,this.updateScroll),this.resizeObserver=new ResizeObserver(this.updateScroll),this.resizeObserver.observe(e))}componentWillUnmount(){var e,t;(e=this.resizeObserver)==null||e.disconnect(),(t=this.scrollerRef.current)==null||t.removeEventListener(`scroll`,this.updateScroll)}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,{canScrollLeft:n,canScrollRight:r}=this,i=this.componentProps,{as:a,className:o=``,children:d,rootRef:f}=i,p=(0,l._)(i,[`as`,`className`,`children`,`rootRef`]);return/*#__PURE__*/ (0,u.jsxs)(t,(0,c._)((0,s._)({},p),{ref:f,className:`position-relative overflow-y-hidden ${o}`,children:[n&&/*#__PURE__*/ (0,u.jsx)(`button`,{type:`button`,className:`position-absolute top-0 bottom-0 start-0 z-1 border-0 px-2 nZcgHq_scrollButtonLeft`,"aria-label":`Scroll left`,onClick:this.scrollBackward,children:/*#__PURE__*/ (0,u.jsx)(z,{name:`caret-left-fill`})}),/*#__PURE__*/ (0,u.jsx)(`div`,{ref:this.scrollerRef,className:`overflow-x-auto nZcgHq_scrollerInner`,children:d}),r&&/*#__PURE__*/ (0,u.jsx)(`button`,{type:`button`,className:`position-absolute top-0 bottom-0 end-0 z-1 border-0 px-2 nZcgHq_scrollButtonRight`,"aria-label":`Scroll right`,onClick:this.scrollForward,children:/*#__PURE__*/ (0,u.jsx)(z,{name:`caret-right-fill`})})]}))}constructor(...e){super(...e),(0,a._)(this,`scrollerRef`,(Zi(this),/*#__PURE__*/ (0,m.createRef)())),(0,r._)(this,$i,{writable:!0,value:qi(this,0)}),(0,r._)(this,ea,{writable:!0,value:Ji(this,0)}),(0,r._)(this,ta,{writable:!0,value:Yi(this,0)}),(0,a._)(this,`updateScroll`,Xi(this,()=>{let e=this.scrollerRef.current;return e&&(this.scrollLeft=e.scrollLeft,this.scrollWidth=e.scrollWidth,this.clientWidth=e.clientWidth),e})),(0,a._)(this,`resizeObserver`,void 0),(0,a._)(this,`scrollBy`,e=>{let t=this.scrollerRef.current;t==null||t.scrollBy({left:e*t.clientWidth*.8,behavior:`smooth`})}),(0,a._)(this,`scrollBackward`,()=>this.scrollBy(-1)),(0,a._)(this,`scrollForward`,()=>this.scrollBy(1))}};({e:[qi,Ji,Yi,Xi,Zi],c:[Qi,Gi]}=(0,t._)(na,[[f.observable,1,`scrollLeft`],[f.observable,1,`scrollWidth`],[f.observable,1,`clientWidth`],[f.computed,3,`canScrollLeft`],[f.computed,3,`canScrollRight`],[f.action,0,`updateScroll`]],[p.observer],Ki)),Gi();const ra=L(e=>{let{as:t,className:n=``,children:r,ref:i,variant:a,vertical:o,fill:d,justified:f,cardHeader:p,navbar:m}=e,h=(0,l._)(e,[`as`,`className`,`children`,`ref`,`variant`,`vertical`,`fill`,`justified`,`cardHeader`,`navbar`]);return/*#__PURE__*/ (0,u.jsx)(Qi,(0,c._)((0,s._)({as:t},t?h:{}),{rootRef:t?i:void 0,className:n,children:/*#__PURE__*/ (0,u.jsx)(Z,(0,c._)((0,s._)({},t?{}:h),{ref:t?void 0:i,className:`flex-nowrap`,variant:a,vertical:o,fill:d,justified:f,cardHeader:p,navbar:m,children:r}))}))});ra.displayName=`ScrollNav`;let ia,aa;var oa,sa,ca,la,ua,da,fa,pa,ma,ha,ga,_a,va,ya,ba,xa,Sa,Ca,wa;const Ta=L(e=>{let{as:t,active:n,selected:r,className:i}=e,a=(0,l._)(e,[`as`,`active`,`selected`,`className`]);return/*#__PURE__*/ (0,u.jsx)(R,(0,c._)((0,s._)({as:t},a),{className:(0,d.default)(`menu-item`,{active:n,selected:r},i),"aria-current":n||r&&a.href?`true`:a[`aria-current`],"aria-pressed":a.href||r==null?a[`aria-pressed`]:r}))});Ta.displayName=`MenuItem`;const Ea=L(e=>{let{as:t=`div`,theme:n,translucent:r,scrollable:i,show:a,className:o}=e,f=(0,l._)(e,[`as`,`theme`,`translucent`,`scrollable`,`show`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},f),{"data-bs-theme":n,className:(0,d.default)(`menu`,{show:a},r&&`menu-translucent`,i&&`menu-scrollable`,o)}))});Ea.displayName=`MenuPanel`;const Da=L(e=>{let{as:t,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(z,(0,c._)((0,s._)({as:t,"aria-hidden":`true`},r),{className:(0,d.default)(`menu-item-icon`,n)}))});Da.displayName=`MenuItemIcon`;const Oa=L(e=>{let{as:t,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(z,(0,c._)((0,s._)({as:t,"aria-hidden":`true`},r),{name:`check`,className:(0,d.default)(`menu-item-check`,n)}))});Oa.displayName=`MenuItemCheck`;const ka=L(e=>{let{as:t=`span`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`menu-text`,n)}))});ka.displayName=`MenuText`;const Aa=L(e=>{let{as:t=`h6`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`menu-header`,n)}))});Aa.displayName=`MenuHeader`;const ja=L(e=>{let{as:t=`hr`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`menu-divider`,n)}))});ja.displayName=`MenuDivider`;const Ma=L(e=>{let{as:t=`span`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`menu-item-content`,n)}))});Ma.displayName=`MenuItemContent`;const Na=L(e=>{let{as:t=`small`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`menu-item-description`,n)}))});Na.displayName=`MenuItemDescription`;let Pa;new(ia=(oa=/*#__PURE__*/ new WeakMap,sa=class extends (ma=m.Component){get componentProps(){return this.props}get open(){return(0,n._)(this,oa)}set open(e){(0,i._)(this,oa,e)}componentDidUpdate(){let{position:e,panel:t,trigger:n}=this;if(!this.open)return e.dispose();t.current&&n.current&&(e.element===t.current?e.update():e.attach(n.current,t.current,{placement:`right-start`,offset:2}))}componentWillUnmount(){this.position.dispose()}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,n=this.componentProps,{as:r,label:i,className:a,children:o}=n,f=(0,l._)(n,[`as`,`label`,`className`,`children`]),{open:p}=this;return/*#__PURE__*/ (0,u.jsxs)(t,(0,c._)((0,s._)({},f),{className:(0,d.default)(`submenu`,{show:p},a),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onKeyDown:this.handleKeyDown,children:[/*#__PURE__*/ (0,u.jsx)(R,{ref:this.trigger,className:`menu-item`,"aria-haspopup":`true`,"aria-expanded":p,onClick:this.handleClick,children:i}),/*#__PURE__*/ (0,u.jsx)(`div`,{ref:this.panel,style:(0,s._)({},this.position.style),"data-bs-placement":this.position.placement,className:(0,d.default)(`menu start-100 top-0`,{show:p}),hidden:!p,children:o})]}))}constructor(...e){super(...e),(0,r._)(this,oa,{writable:!0,value:(_a(this),ha(this,!1))}),(0,a._)(this,`panel`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`trigger`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`position`,new Y),(0,a._)(this,`setOpen`,ga(this,e=>this.open=e)),(0,a._)(this,`handleClick`,()=>this.setOpen(!this.open)),(0,a._)(this,`handleMouseEnter`,e=>{var t,n;(t=(n=this.componentProps).onMouseEnter)==null||t.call(n,e),e.defaultPrevented||this.setOpen(!0)}),(0,a._)(this,`handleMouseLeave`,e=>{var t,n;(t=(n=this.componentProps).onMouseLeave)==null||t.call(n,e),e.defaultPrevented||this.setOpen(!1)}),(0,a._)(this,`handleKeyDown`,e=>{var t,n;if((t=(n=this.componentProps).onKeyDown)==null||t.call(n,e),e.defaultPrevented)return;let{key:r}=e;if(r===`ArrowRight`&&(e.preventDefault(),e.stopPropagation(),this.setOpen(!0),queueMicrotask(()=>{var e,t;return(t=this.panel.current)==null||(e=t.querySelector(`a[href], button:not(:disabled)`))==null?void 0:e.focus()})),(r===`ArrowLeft`||r===`Escape`)&&this.open){var i;e.preventDefault(),e.stopPropagation(),this.setOpen(!1),(i=this.trigger.current)==null||i.focus()}})}},{e:[ha,ga,_a],c:[Pa,pa]}=(0,t._)(sa,[[f.observable,1,`open`],[f.action,0,`setOpen`]],[p.observer],ma),sa),ca=class extends o._{constructor(){super(Pa),(0,a._)(this,`displayName`,`MenuSubmenu`),pa()}},(0,a._)(ca,ia,void 0),ca);const Fa={"top-start":[`bottom-100`,`start-0`],"top-end":[`bottom-100`,`end-0`],"bottom-start":[`top-100`,`start-0`],"bottom-end":[`top-100`,`end-0`],"left-start":[`end-100`,`top-0`],"left-end":[`end-100`,`bottom-0`],"right-start":[`start-100`,`top-0`],"right-end":[`start-100`,`bottom-0`]},Ia={sm:576,md:768,lg:1024,xl:1280,"2xl":1536};let Q;new(aa=(la=/*#__PURE__*/ new WeakMap,ua=/*#__PURE__*/ new WeakMap,da=class extends (ya=m.Component){get componentProps(){return this.props}get open(){return(0,n._)(this,la)}set open(e){(0,i._)(this,la,e)}get responsiveDirection(){return(0,n._)(this,ua)}set responsiveDirection(e){(0,i._)(this,ua,e)}componentDidMount(){document.addEventListener(`pointerdown`,this.handleOutside),this.observePlacement()}componentDidUpdate({responsivePlacement:e}){var t,n;e!==this.componentProps.responsivePlacement&&this.observePlacement();let{trigger:r,panel:i,position:a,componentProps:o}=this;if(!this.open)return a.dispose();if(!r.current||!i.current)return;let{placement:s,align:c,offset:l,padding:u,flip:d}=o,f={placement:(t=(n=this.responsiveDirection)==null?s:n)==null?`bottom-${c==null?`end`:c}`:t,offset:l,padding:u,flip:d};a.element===i.current?(a.options=f,a.update()):a.attach(r.current,i.current,f)}componentWillUnmount(){document.removeEventListener(`pointerdown`,this.handleOutside),this.position.dispose();for(let{query:e}of this.media)e.removeEventListener(`change`,this.handlePlacement)}items(e=this.panel.current){var t;return[...(t=e==null?void 0:e.querySelectorAll(`a[href]:not([aria-disabled="true"]), button:not(:disabled):not([aria-disabled="true"])`))==null?[]:t].filter(t=>!t.closest(`[hidden]`)&&t.closest(`.menu`)===e)}render(){var e,t;let n=(e=this.componentProps.as)==null?`div`:e,r=this.componentProps,{as:i,label:a,autoClose:o,align:f=`end`,placement:p,responsivePlacement:m,theme:h,translucent:g,scrollable:_,split:v,nav:y,offset:b,padding:x,flip:S,menuClassName:C,toggleProps:w,onOpenChange:T,onKeyDown:E,onBlur:D,children:O,className:k,id:A}=r,j=(0,l._)(r,[`as`,`label`,`autoClose`,`align`,`placement`,`responsivePlacement`,`theme`,`translucent`,`scrollable`,`split`,`nav`,`offset`,`padding`,`flip`,`menuClassName`,`toggleProps`,`onOpenChange`,`onKeyDown`,`onBlur`,`children`,`className`,`id`]),{open:M}=this,N=(t=this.responsiveDirection)==null?p:t,P=this.position.element?this.position.placement:N,F=P?Fa[P]:[`top-100`,f===`end`?`end-0`:`start-0`];return/*#__PURE__*/ (0,u.jsxs)(n,(0,c._)((0,s._)({},j),{ref:this.root,id:A,"data-bs-theme":h,className:(0,d.default)(v?`btn-group`:`d-inline-block`,`position-relative`,k),onKeyDown:this.handleKeyDown,onBlur:this.handleBlur,children:[/*#__PURE__*/ (0,u.jsx)(R,(0,c._)((0,s._)({variant:!y&&void 0},w),{ref:this.trigger,"aria-expanded":M,"aria-haspopup":`true`,className:(0,d.default)(w==null?void 0:w.className,v&&`menu-toggle-split`,y&&`nav-link`),"aria-controls":A?`${A}-menu`:void 0,onClick:this.handleToggle,children:a})),/*#__PURE__*/ (0,u.jsx)(`div`,{ref:this.panel,id:A?`${A}-menu`:void 0,"data-bs-placement":P==null?`bottom-${f}`:P,style:(0,s._)({},this.position.style),className:(0,d.default)(`menu`,F,g&&`menu-translucent`,_&&`menu-scrollable`,{show:M},C),hidden:!M,onClick:this.handleSelect,children:O})]}))}constructor(...e){super(...e),(0,r._)(this,la,{writable:!0,value:(wa(this),ba(this,!1))}),(0,r._)(this,ua,{writable:!0,value:xa(this)}),(0,a._)(this,`root`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`trigger`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`panel`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`media`,[]),(0,a._)(this,`position`,new Y),(0,a._)(this,`observePlacement`,()=>{for(let{query:e}of this.media)e.removeEventListener(`change`,this.handlePlacement);this.media=Object.keys(Ia).flatMap(e=>{var t;let n=(t=this.componentProps.responsivePlacement)==null?void 0:t[e];if(!n)return[];let r=window.matchMedia(`(min-width: ${Ia[e]}px)`);return r.addEventListener(`change`,this.handlePlacement),[{query:r,placement:n}]}),this.handlePlacement()}),(0,a._)(this,`handlePlacement`,Sa(this,()=>{var e;return this.responsiveDirection=(e=[...this.media].reverse().find(({query:e})=>e.matches))==null?void 0:e.placement})),(0,a._)(this,`setOpen`,Ca(this,e=>{var t,n;this.open!==e&&(this.open=e,(t=(n=this.componentProps).onOpenChange)==null||t.call(n,e))})),(0,a._)(this,`handleOutside`,({target:e})=>{var t;let{autoClose:n=!0}=this.componentProps;n!==!1&&n!==`inside`&&e instanceof Node&&!((t=this.root.current)!=null&&t.contains(e))&&this.setOpen(!1)}),(0,a._)(this,`handleKeyDown`,e=>{var t,n;(t=(n=this.componentProps).onKeyDown)==null||t.call(n,e);let{key:r,defaultPrevented:i}=e;if(!i){if(r===`Escape`&&this.open){var a;return e.preventDefault(),this.setOpen(!1),(a=this.trigger.current)==null?void 0:a.focus()}if(r===`Tab`)return this.setOpen(!1);e.target instanceof Element&&e.target.matches(`input, textarea, select, [contenteditable="true"]`)||[`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(r)&&(e.preventDefault(),this.setOpen(!0),queueMicrotask(()=>{var t;let n=e.target instanceof Element?e.target.closest(`.menu`):void 0,i=this.items(n==null?this.panel.current:n),a=i.findIndex(e=>e===document.activeElement),o=r===`Home`?0:i.length-1;r===`ArrowDown`&&(o=(a+1)%i.length),r===`ArrowUp`&&(o=a<=0?i.length-1:a-1),(t=i[o])==null||t.focus()}))}}),(0,a._)(this,`handleBlur`,e=>{let{onBlur:t,autoClose:n=!0}=this.componentProps;t==null||t(e);let{defaultPrevented:r,currentTarget:i,relatedTarget:a}=e;!r&&n!==!1&&n!==`inside`&&!i.contains(a)&&this.setOpen(!1)}),(0,a._)(this,`handleToggle`,()=>this.setOpen(!this.open)),(0,a._)(this,`handleSelect`,({target:e,defaultPrevented:t})=>{let{autoClose:n=!0}=this.componentProps;n&&!t&&n!==`outside`&&e instanceof Element&&!e.closest(`.submenu > .menu-item`)&&e.closest(`a[href], button:not(:disabled)`)&&this.setOpen(!1)})}},{e:[ba,xa,Sa,Ca,wa],c:[Q,va]}=(0,t._)(da,[[f.observable,1,`open`],[f.observable,1,`responsiveDirection`],[f.action,0,`handlePlacement`],[f.action,0,`setOpen`]],[p.observer],ya),da),fa=class extends o._{constructor(){super(Q),(0,a._)(this,`displayName`,`Menu`),va()}},(0,a._)(fa,aa,void 0),fa);const La=L(e=>{let{as:t=`button`,value:n,className:r,children:i}=e,a=(0,l._)(e,[`as`,`value`,`className`,`children`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},a),{type:`button`,className:(0,d.default)(`menu-item`,r),"data-value":n,children:i}))});La.displayName=`Option`;var Ra=class extends m.Component{render(){var e,t;let{align:n,className:r,menuClassName:i,children:a,theme:o=`primary`,variant:s=`solid`,size:c,disabled:l,style:f,value:p,onChange:h,valueRender:g,name:_,placeholder:v,"aria-label":y}=this.props,b=m.Children.toArray(a).find(e=>/*#__PURE__*/ (0,m.isValidElement)(e)&&e.type===La&&e.props.value===p);return/*#__PURE__*/ (0,u.jsxs)(u.Fragment,{children:[/*#__PURE__*/ (0,u.jsx)(Q,{align:n,className:`w-100`,menuClassName:i,label:(e=(t=g==null?void 0:g(p==null?``:p))==null?b==null?void 0:b.props.children:t)==null?v:e,toggleProps:{className:(0,d.default)(`w-100 d-flex justify-content-between align-items-center`,r),theme:o,variant:s,size:c,disabled:l,style:f,"aria-label":y},onClick:this.handleSelect,children:m.Children.map(a,this.renderOption)}),_&&/*#__PURE__*/ (0,u.jsx)(`input`,{type:`hidden`,name:_,value:p==null?``:p,disabled:l})]})}constructor(...e){super(...e),(0,a._)(this,`handleSelect`,({target:e,defaultPrevented:t})=>{var n,r,i;if(t||this.props.disabled||!(e instanceof Element))return;let a=e.closest(`[data-value]`);a&&!a.disabled&&a.getAttribute(`aria-disabled`)!==`true`&&((r=(i=this.props).onChange)==null||r.call(i,(n=a.dataset.value)==null?``:n))}),(0,a._)(this,`renderOption`,e=>/*#__PURE__*/ (0,m.isValidElement)(e)&&e.type===La?/*#__PURE__*/ (0,m.cloneElement)(e,{className:(0,d.default)(e.props.className,e.props.value===this.props.value&&`selected`),"aria-selected":e.props.value===this.props.value}):e)}};(0,a._)(Ra,`displayName`,`Select`);const $=L(e=>{let{as:t=`img`,fluid:n,thumbnail:r,className:i}=e,a=(0,l._)(e,[`as`,`fluid`,`thumbnail`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},a),{className:(0,d.default)({"img-fluid":n,"img-thumbnail":r},i)}))});$.displayName=`Image`;let za;var Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja;function Ya(e,t,n){return(0,A._)(function*(){let r=yield(0,F.default)(e,{useCORS:!0});return new Promise((e,i)=>r.toBlob(t=>t?e(URL.createObjectURL(t)):i(),t,n))})()}let Xa;new(za=(Ba=/*#__PURE__*/ new WeakMap,Va=/*#__PURE__*/ new WeakMap,Ha=class extends (Ga=m.Component){get loading(){return(0,n._)(this,Ba)}set loading(e){(0,i._)(this,Ba,e)}get imageURI(){return(0,n._)(this,Va)}set imageURI(e){(0,i._)(this,Va,e)}componentDidMount(){var e,t;(e=(t=globalThis).addEventListener)==null||e.call(t,`resize`,this.generateImage)}componentWillUnmount(){var e,t;(e=(t=globalThis).removeEventListener)==null||e.call(t,`resize`,this.generateImage)}render(){let e=this.props,{className:t=``,children:n}=e,r=(0,l._)(e,[`className`,`children`]),{loading:i,imageURI:a}=this;return/*#__PURE__*/ (0,u.jsxs)(u.Fragment,{children:[i&&/*#__PURE__*/ (0,u.jsx)(Zr,{}),/*#__PURE__*/ (0,u.jsxs)(`div`,(0,c._)((0,s._)({},r),{ref:this.root,className:`position-relative ${t}`,onMouseEnter:a?void 0:this.generateImage,onTouchStart:a?void 0:this.generateImage,children:[n,a&&/*#__PURE__*/ (0,u.jsx)($,{className:`position-absolute start-0 top-0 w-100 h-100`,src:a,alt:`Share Image`,fluid:!0,onClick:this.share})]}))]})}constructor(...e){var t;super(...e),t=this,(0,a._)(this,`root`,(Ja(this),/*#__PURE__*/ (0,m.createRef)())),(0,r._)(this,Ba,{writable:!0,value:Ka(this,!1)}),(0,r._)(this,Va,{writable:!0,value:qa(this,``)}),(0,a._)(this,`generateImage`,()=>(0,A._)(function*(){t.imageURI&&(URL.revokeObjectURL(t.imageURI),t.imageURI=``),t.loading=!0,t.imageURI=yield Ya(t.root.current),t.loading=!1})()),(0,a._)(this,`share`,e=>(0,A._)(function*(){var n,r;e.stopPropagation();let i=yield(0,O.blobOf)(t.imageURI),a=new File([i],`${t.props.title}.png`,{type:i.type});yield(n=(r=navigator).share)==null?void 0:n.call(r,(0,s._)({files:[a]},t.props))})())}},{e:[Ka,qa,Ja],c:[Xa,Wa]}=(0,t._)(Ha,[[f.observable,1,`loading`],[f.observable,1,`imageURI`]],[p.observer],Ga),Ha),Ua=class extends o._{constructor(){super(Xa),(0,a._)(this,`displayName`,`ShareBox`),Wa()}},(0,a._)(Ua,za,void 0),Ua);const Za=L(e=>{let{as:t,animation:n,loading:r,disabled:i,children:a}=e,o=(0,l._)(e,[`as`,`animation`,`loading`,`disabled`,`children`]);return/*#__PURE__*/ (0,u.jsxs)(R,(0,c._)((0,s._)({as:t},o),{disabled:r||i,children:[r&&/*#__PURE__*/ (0,u.jsxs)(u.Fragment,{children:[/*#__PURE__*/ (0,u.jsx)(J,{className:a?`me-2`:``,size:`sm`,animation:n,role:`status`,"aria-hidden":`true`}),!a&&/*#__PURE__*/ (0,u.jsx)(`span`,{className:`visually-hidden`,children:`Loading...`})]}),a]}))});Za.displayName=`SpinnerButton`;const Qa=L(e=>{let{as:t=`tr`,animation:n=`border`,theme:r=`primary`,size:i,colSpan:a}=e,o=(0,l._)(e,[`as`,`animation`,`theme`,`size`,`colSpan`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},o),{children:/*#__PURE__*/ (0,u.jsx)(`td`,{className:`text-center p-4`,colSpan:a,children:/*#__PURE__*/ (0,u.jsx)(J,{animation:n,theme:r,size:i,role:`status`,"aria-label":`Loading`})})}))});Qa.displayName=`TableSpinner`;let $a;var eo,to,no,ro,io,ao,oo,so,co;let lo;new($a=(eo=/*#__PURE__*/ new WeakMap,to=/*#__PURE__*/ new WeakMap,no=class extends (ao=m.Component){get expanded(){return(0,n._)(this,eo)}set expanded(e){(0,i._)(this,eo,e)}get overflowed(){return(0,n._)(this,to)}set overflowed(e){(0,i._)(this,to,e)}componentDidMount(){this.checkOverflow(),window.addEventListener(`resize`,this.checkOverflow)}componentDidUpdate({rows:e,children:t}){this.expanded||t===this.props.children&&e===this.props.rows||this.checkOverflow()}componentWillUnmount(){window.removeEventListener(`resize`,this.checkOverflow)}render(){let{children:e,rows:t=3,expandText:n=`⏬`,collapseText:r}=this.props,{expanded:i,overflowed:a}=this,o={overflow:`hidden`,display:`-webkit-box`,WebkitBoxOrient:`vertical`,WebkitLineClamp:t};return/*#__PURE__*/ (0,u.jsxs)(u.Fragment,{children:[/*#__PURE__*/ (0,u.jsx)(`div`,{ref:this.contentRef,style:i?void 0:o,children:e}),(a||i)&&/*#__PURE__*/ (0,u.jsx)(`button`,{type:`button`,className:`bg-transparent border-0 p-0`,"aria-expanded":i,onClick:this.toggle,children:i?r:n})]})}constructor(...e){super(...e),(0,r._)(this,eo,{writable:!0,value:(co(this),oo(this,!1))}),(0,r._)(this,to,{writable:!0,value:so(this,!1)}),(0,a._)(this,`contentRef`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`checkOverflow`,(0,f.action)(()=>{let{current:e}=this.contentRef;e&&(this.overflowed=e.scrollHeight>e.clientHeight)})),(0,a._)(this,`toggle`,(0,f.action)(()=>{this.expanded=!this.expanded,this.expanded||requestAnimationFrame(this.checkOverflow)}))}},{e:[oo,so,co],c:[lo,io]}=(0,t._)(no,[[f.observable,1,`expanded`],[f.observable,1,`overflowed`]],[p.observer],ao),no),ro=class extends o._{constructor(){super(lo),(0,a._)(this,`displayName`,`TextTruncateContent`),io()}},(0,a._)(ro,$a,void 0),ro);const uo=L(e=>{let{as:t=`div`,rows:n=3,expandText:r=`⏬`,collapseText:i=`⏫`,children:a}=e,o=(0,l._)(e,[`as`,`rows`,`expandText`,`collapseText`,`children`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},o),{children:/*#__PURE__*/ (0,u.jsx)(lo,{rows:n,expandText:r,collapseText:i,children:a})}))});uo.displayName=`TextTruncate`;const fo=L(e=>{let{as:t=`time`,dateTime:n,format:r}=e,i=(0,l._)(e,[`as`,`dateTime`,`format`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({dateTime:new Date(n).toJSON()},i),{children:(0,O.formatDate)(n,r)}))});fo.displayName=`Time`;const po={ms:`millisecond(s)`,s:`second(s)`,m:`minute(s)`,H:`hour(s)`,D:`day(s)`,W:`week(s)`,M:`month(s)`,Y:`year(s)`},mo=L(e=>{let{as:t=`time`,date:n,unitWords:r=po,beforeWord:i=` before`,afterWord:a=` after`}=e,o=(0,l._)(e,[`as`,`date`,`unitWords`,`beforeWord`,`afterWord`]);n=new Date(n);let{distance:d,unit:f}=(0,O.diffTime)(n);return/*#__PURE__*/ (0,u.jsxs)(t,(0,c._)((0,s._)({},o),{dateTime:n.toJSON(),title:n.toLocaleString(),children:[Math.abs(d),` `,r[f],d<0?i:a]}))});mo.displayName=`TimeDistance`;const ho=L(e=>{let{as:t=`ol`,className:n,events:r,timeFormat:i}=e,a=(0,l._)(e,[`as`,`className`,`events`,`timeFormat`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({className:`list-unstyled M_u5hG_timeline ${n}`},a),{children:r.map(({title:e,summary:t,time:n,link:r,people:a})=>/*#__PURE__*/ (0,u.jsx)(`li`,{className:`position-relative M_u5hG_timelineItem M_u5hG_right`,children:/*#__PURE__*/ (0,u.jsx)(Re,{children:/*#__PURE__*/ (0,u.jsxs)(We,{className:`p-4 d-flex flex-column gap-3 align-items-center`,children:[/*#__PURE__*/ (0,u.jsx)(Ke,{className:`h5 m-0`,children:/*#__PURE__*/ (0,u.jsx)(`a`,{className:`text-decoration-none stretched-link`,href:r,children:e})}),/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`small fg-3 d-flex gap-2`,children:[`⏲️`,/*#__PURE__*/ (0,u.jsx)(fo,{dateTime:n[0],format:i}),n[1]&&`~`,n[1]&&/*#__PURE__*/ (0,u.jsx)(fo,{dateTime:n[1],format:i})]}),/*#__PURE__*/ (0,u.jsx)(`ul`,{className:`list-unstyled m-0 d-flex gap-2 flex-wrap justify-content-around`,children:a==null?void 0:a.map(e=>/*#__PURE__*/ (0,u.jsx)(`li`,{children:/*#__PURE__*/ (0,u.jsx)(Ai,(0,s._)({},e))},e.name))}),/*#__PURE__*/ (0,u.jsx)(qe,{className:`m-0`,children:t})]})})},e))}))});ho.displayName=`Timeline`;let go;var _o,vo,yo,bo,xo,So,Co,wo,To;let Eo;new(go=(_o=/*#__PURE__*/ new WeakMap,vo=/*#__PURE__*/ new WeakMap,yo=class extends (So=m.Component){get componentProps(){return this.props}get echoed(){return(0,n._)(this,_o)}set echoed(e){(0,i._)(this,_o,e)}get started(){return(0,n._)(this,vo)}set started(e){(0,i._)(this,vo,e)}componentDidMount(){this.start()}componentWillUnmount(){var e;(e=this.visibilityObserver)==null||e.disconnect()}componentDidUpdate(){var e;this.forwardRootRef((e=this.root)==null?null:e)}render(){var e;let t=(e=this.componentProps.as)==null?`pre`:e,n=this.componentProps,{as:r,rootRef:i,className:a,text:o,intervals:f}=n,p=(0,l._)(n,[`as`,`rootRef`,`className`,`text`,`intervals`]),{started:m,echoed:h}=this;return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},p),{ref:this.init,className:(0,d.default)(`text-wrap`,a),children:m?h+(h===o?``:`_`):o}))}constructor(...e){var t;super(...e),t=this,(0,r._)(this,_o,{writable:!0,value:(To(this),Co(this,``))}),(0,r._)(this,vo,{writable:!0,value:wo(this,!1)}),(0,a._)(this,`visibilityObserver`,void 0),(0,a._)(this,`root`,void 0),(0,a._)(this,`forwardedRootRef`,void 0),(0,a._)(this,`releaseRootRef`,void 0),(0,a._)(this,`start`,(0,f.action)(()=>this.started=!0)),(0,a._)(this,`echo`,(0,f.action)(e=>this.echoed+=e)),(0,a._)(this,`forwardRootRef`,e=>{var t,n;let{rootRef:r}=this.componentProps;if((this.root!==e||this.forwardedRootRef!==r)&&((t=(n=this).releaseRootRef)==null||t.call(n),this.releaseRootRef=void 0,this.root=e,this.forwardedRootRef=r,e)){if(typeof r==`function`){let t=r(e);this.releaseRootRef=typeof t==`function`?t:()=>r(null)}else r&&(r.current=e,this.releaseRootRef=()=>r.current=null)}}),(0,a._)(this,`init`,e=>{var n;(n=this.visibilityObserver)==null||n.disconnect(),this.forwardRootRef(e),e&&(this.visibilityObserver=new IntersectionObserver(([{isIntersecting:e}],n)=>(0,A._)(function*(){if(!e)return;n.disconnect();let{text:r,intervals:i=150}=t.componentProps;for(let e of r)yield(0,O.sleep)(i/1e3),t.echo(e)})()),this.visibilityObserver.observe(e))})}},{e:[Co,wo,To],c:[Eo,xo]}=(0,t._)(yo,[[f.observable,1,`echoed`],[f.observable,1,`started`]],[p.observer],So),yo),bo=class extends o._{constructor(){super(Eo),(0,a._)(this,`displayName`,`TypeEchoContent`),xo()}},(0,a._)(bo,go,void 0),bo);const Do=L(e=>{let{as:t,text:n,intervals:r,ref:i}=e,a=(0,l._)(e,[`as`,`text`,`intervals`,`ref`]);return/*#__PURE__*/ (0,u.jsx)(Eo,(0,c._)((0,s._)({as:t},a),{rootRef:i,text:n,intervals:r}))});Do.displayName=`TypeEcho`;const Oo=L(e=>{let{as:t=`div`,fluid:n,breakpoint:r,className:i}=e,a=(0,l._)(e,[`as`,`fluid`,`breakpoint`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},a),{className:(0,d.default)(r?`${r}:container`:n?`container-fluid`:`container`,i)}))});Oo.displayName=`Container`;const ko=L(e=>{let{as:t=`div`,cols:n,sm:r,md:i,lg:a,xl:o,"2xl":f,className:p}=e,m=(0,l._)(e,[`as`,`cols`,`sm`,`md`,`lg`,`xl`,`2xl`,`className`]),h=[[`sm`,r],[`md`,i],[`lg`,a],[`xl`,o],[`2xl`,f]];return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},m),{className:(0,d.default)(`row`,n!==void 0&&`row-cols-${n}`,h.map(([e,t])=>t!==void 0&&`${e}:row-cols-${t}`),p)}))});ko.displayName=`Row`;const Ao=L(e=>{let{as:t=`div`,span:n,sm:r,md:i,lg:a,xl:o,"2xl":f,className:p}=e,m=(0,l._)(e,[`as`,`span`,`sm`,`md`,`lg`,`xl`,`2xl`,`className`]),h=[[`sm`,r],[`md`,i],[`lg`,a],[`xl`,o],[`2xl`,f]],g=h.some(([,e])=>e!==void 0);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},m),{className:(0,d.default)(!n&&!g&&`col`,n!==void 0&&`col-${n}`,h.map(([e,t])=>t!==void 0&&(t===!0?`${e}:col`:`${e}:col-${t}`)),p)}))});Ao.displayName=`Col`;const jo=L(e=>{let{as:t,striped:n,stripedColumns:r,hover:i,bordered:a,borderless:o,small:f,responsive:p,className:m,children:h}=e,g=(0,l._)(e,[`as`,`striped`,`stripedColumns`,`hover`,`bordered`,`borderless`,`small`,`responsive`,`className`,`children`]),_=t==null?`div`:t,v=/*#__PURE__*/ (0,u.jsx)(!p&&t?t:`table`,(0,c._)((0,s._)({},p&&t?{}:g),{className:(0,d.default)(`table`,{"table-striped":n,"table-striped-columns":r,"table-hover":i,"table-bordered":a,"table-borderless":o,"table-sm":f},p&&t?void 0:m),children:h}));return p?/*#__PURE__*/ (0,u.jsx)(_,(0,c._)((0,s._)({},t?g:{}),{className:(0,d.default)(`table-responsive`,p!==!0&&`${p}:table-responsive`,t&&m),children:v})):v});jo.displayName=`Table`;const Mo=L(({as:e=`address`,email:t,website:n})=>/*#__PURE__*/ (0,u.jsxs)(e,{className:`mb-0 d-flex justify-content-around gap-2`,children:[t&&/*#__PURE__*/ (0,u.jsx)(`a`,{rel:`noreferrer`,target:`_blank`,href:`mailto:`+t,children:/*#__PURE__*/ (0,u.jsx)(z,{name:`envelope`})}),n&&/*#__PURE__*/ (0,u.jsx)(`a`,{rel:`noreferrer`,target:`_blank`,href:n,children:/*#__PURE__*/ (0,u.jsx)(z,{name:`globe2`})})]}));Mo.displayName=`UserAddress`;const No=`UcKh3G_image`,Po=L(e=>{let{as:t,className:n=``,title:r,rank:i=[],linkOf:a}=e,o=(0,l._)(e,[`as`,`className`,`title`,`rank`,`linkOf`]);return/*#__PURE__*/ (0,u.jsx)(Oo,(0,c._)((0,s._)({as:t,className:n},o),{children:/*#__PURE__*/ (0,u.jsxs)(ko,{className:`UcKh3G_rankBox`,children:[/*#__PURE__*/ (0,u.jsxs)(Ao,{span:12,lg:7,children:[/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`shadow rounded-3 UcKh3G_title`,children:[/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`UcKh3G_medal`,children:[/*#__PURE__*/ (0,u.jsx)(`i`,{className:`d-inline-block ms-1 overflow-hidden rounded-circle`}),/*#__PURE__*/ (0,u.jsx)(`i`,{className:`d-inline-block ms-1 overflow-hidden rounded-circle`}),/*#__PURE__*/ (0,u.jsx)(`i`,{className:`d-inline-block ms-1 overflow-hidden rounded-circle`})]}),/*#__PURE__*/ (0,u.jsx)(`h3`,{"data-text":r,className:`position-relative m-auto mb-0 fw-bold text-center`,children:r})]}),/*#__PURE__*/ (0,u.jsx)(`ul`,{className:`row mt-2 g-0 align-items-end text-center ps-0 pt-2 list-unstyled UcKh3G_topUsers`,children:i.slice(0,3).map(e=>/*#__PURE__*/ (0,u.jsxs)(`li`,{className:`col`,children:[/*#__PURE__*/ (0,u.jsx)(`div`,{className:`shadow-lg overflow-hidden rounded-circle m-auto ${No}`,children:/*#__PURE__*/ (0,u.jsx)($,{src:e.avatar,alt:e.name,loading:`lazy`,fluid:!0})}),/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`position-relative overflow-hidden UcKh3G_topUser`,children:[/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`position-relative`,children:[/*#__PURE__*/ (0,u.jsx)(`i`,{className:`d-block overflow-hidden m-auto mb-1 rounded-circle`}),/*#__PURE__*/ (0,u.jsx)(`a`,{className:`d-block mb-0 stretched-link`,href:(a==null?void 0:a(e))||`#`,children:e.name}),/*#__PURE__*/ (0,u.jsx)(`strong`,{children:e.score})]}),/*#__PURE__*/ (0,u.jsx)(Mo,(0,s._)({},e))]})]},e.id))})]}),/*#__PURE__*/ (0,u.jsx)(Ao,{span:12,lg:5,children:/*#__PURE__*/ (0,u.jsx)(jo,{className:`my-3 pt-2 UcKh3G_restUsers`,responsive:!0,children:/*#__PURE__*/ (0,u.jsx)(`tbody`,{children:i.slice(3,10).map((e,t,{length:n})=>/*#__PURE__*/ (0,u.jsxs)(`tr`,{className:`position-relative`,children:[/*#__PURE__*/ (0,u.jsx)(`td`,{className:`align-middle`,children:/*#__PURE__*/ (0,u.jsx)(U,{className:`fw-bold fst-italic`,children:(t+4+``).padStart((n+``).length,`0`)})}),/*#__PURE__*/ (0,u.jsxs)(`td`,{className:`position-relative text-truncate UcKh3G_name`,children:[/*#__PURE__*/ (0,u.jsx)(`div`,{className:`d-inline-block overflow-hidden align-middle rounded-circle ${No}`,children:/*#__PURE__*/ (0,u.jsx)($,{src:e.avatar,alt:e.name,loading:`lazy`,fluid:!0})}),/*#__PURE__*/ (0,u.jsx)(`a`,{className:`ms-2 d-inline-block align-middle stretched-link`,style:{color:`rgb(248, ${(t+2)*15}, ${(t+2)*35})`},href:(a==null?void 0:a(e))||`#`,children:e.name})]}),/*#__PURE__*/ (0,u.jsx)(`td`,{className:`align-middle`,children:e.score}),/*#__PURE__*/ (0,u.jsx)(`td`,{className:`align-middle`,children:/*#__PURE__*/ (0,u.jsx)(Mo,(0,s._)({},e))})]},e.id))})})})]})}))});Po.displayName=`UserRankView`;const Fo=L(e=>{let{as:t=`div`,className:n=``,children:r,duration:i}=e,a=(0,l._)(e,[`as`,`className`,`children`,`duration`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({className:`overflow-hidden h-100 ${n}`},a),{children:/*#__PURE__*/ (0,u.jsx)(`div`,{className:`d-inline-block max-w-100 max-h-100 x8UL2q_scrollWrap`,style:{"--duration":i},children:/*#__PURE__*/ (0,u.jsx)(`div`,{className:`d-inline-block x8UL2q_scrollItem`,children:r})})}))});Fo.displayName=`VerticalMarquee`;const Io=[`🐵`,`🐔`,`🐶`,`🐷`,`🐭`,`🐮`,`🐯`,`🐰`,`🐲`,`🐍`,`🐴`,`🐐`],Lo=e=>{let t=e<0?e+1:e;return Io[(t%12+12)%12]},Ro=L(e=>{let{as:t=`ol`,className:n=``,itemClassName:r=`border rounded px-4 py-3 d-flex flex-column justify-content-center align-items-center`,startYear:i,endYear:a=(/* @__PURE__ */ new Date()).getFullYear(),itemOf:o}=e,d=(0,l._)(e,[`as`,`className`,`itemClassName`,`startYear`,`endYear`,`itemOf`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({className:`list-unstyled m-0 d-flex flex-wrap justify-content-center gap-3 ${n}`},d),{children:Array.from({length:a-i+1},(e,t)=>{let n=a-t;if(n===0)return null;let i=Lo(n),{link:s=`#`,title:c}=(o==null?void 0:o(n,i))||{};return/*#__PURE__*/ (0,u.jsx)(`li`,{className:r,children:/*#__PURE__*/ (0,u.jsxs)(`a`,{className:`d-inline-block p-3 text-decoration-none text-center`,href:s,children:[/*#__PURE__*/ (0,u.jsx)(`div`,{className:`fs-3xl`,children:i}),c]})},n)})}))});Ro.displayName=`ZodiacBar`;const zo=L(e=>{let{as:t=`label`,className:n,end:r,size:i,validation:a}=e,o=(0,l._)(e,[`as`,`className`,`end`,`size`,`validation`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},o),{className:(0,d.default)(`form-control form-adorn`,r&&`form-adorn-end`,i&&`form-control-${i}`,a&&`is-${a}`,n)}))});zo.displayName=`FormAdornment`;const Bo=L(e=>{let{as:t=`span`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`form-adorn-text`,n)}))});Bo.displayName=`FormAdornmentText`;const Vo=L(e=>{let{as:t,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(z,(0,c._)((0,s._)({as:t},r),{className:(0,d.default)(`form-adorn-icon`,n)}))});Vo.displayName=`FormAdornmentIcon`;const Ho=L(e=>{let{as:t=`input`,className:n,validation:r}=e,i=(0,l._)(e,[`as`,`className`,`validation`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},i),{"aria-invalid":r?r===`invalid`:i[`aria-invalid`],className:(0,d.default)(`form-ghost`,r&&`is-${r}`,n)}))});Ho.displayName=`FormGhost`;var Uo=class extends m.Component{componentDidMount(){this.setIndeterminate()}componentDidUpdate(){this.setIndeterminate()}render(){let e=this.props,{as:t=`input`,className:n,size:r,theme:i,validation:a,indeterminate:o,forwardedRef:f}=e,p=(0,l._)(e,[`as`,`className`,`size`,`theme`,`validation`,`indeterminate`,`forwardedRef`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},p),{ref:this.setInputRef,type:`checkbox`,"aria-invalid":a?a===`invalid`:p[`aria-invalid`],"aria-checked":o?`mixed`:p[`aria-checked`],className:(0,d.default)(`check`,r&&`check-${r}`,i&&`theme-${i}`,a&&`is-${a}`,n)}))}constructor(...e){super(...e),(0,a._)(this,`input`,void 0),(0,a._)(this,`setIndeterminate`,()=>{this.input&&(this.input.indeterminate=this.props.indeterminate||!1)}),(0,a._)(this,`setInputRef`,e=>{this.input=e||void 0;let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)})}};const Wo=L(/*#__PURE__*/ (0,m.forwardRef)((e,t)=>/*#__PURE__*/ (0,u.jsx)(Uo,(0,c._)((0,s._)({},e),{forwardedRef:t}))));Wo.displayName=`Checkbox`;var Go=class extends m.Component{updatePlugin(){}componentDidMount(){this.initialize()}componentDidUpdate(e){this.configurationChanged(e)?(this.dispose(),this.initialize()):this.updatePlugin()}componentWillUnmount(){this.dispose()}dispose(){var e;this.revision++,(e=this.instance)==null||e.dispose(),this.instance=void 0}constructor(...e){var t;super(...e),t=this,(0,a._)(this,`element`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`instance`,void 0),(0,a._)(this,`revision`,0),(0,a._)(this,`initialize`,()=>(0,A._)(function*(){let e=++t.revision,n=yield t.load();e===t.revision&&t.element.current&&(t.instance=n(t.element.current),t.updatePlugin())})())}},Ko=class extends Go{render(){let e=this.props,{as:t=`div`,className:n,theme:r,separator:i,allowDuplicates:a,maxChips:o,createOnBlur:f,dismissible:p,placeholder:m,onValuesChange:h,forwardedRef:g,validation:_}=e,v=(0,l._)(e,[`as`,`className`,`theme`,`separator`,`allowDuplicates`,`maxChips`,`createOnBlur`,`dismissible`,`placeholder`,`onValuesChange`,`forwardedRef`,`validation`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},v),{ref:this.setRef,className:(0,d.default)(`chip-input`,r&&`theme-${r}`,_&&`is-${_}`,n),"data-bs-chips":``,"data-bs-separator":i,"data-bs-allow-duplicates":a,"data-bs-max-chips":o,"data-bs-create-on-blur":f}))}constructor(...e){var t;super(...e),t=this,(0,a._)(this,`configurationChanged`,e=>e.separator!==this.props.separator||e.allowDuplicates!==this.props.allowDuplicates||e.maxChips!==this.props.maxChips||e.createOnBlur!==this.props.createOnBlur||e.dismissible!==this.props.dismissible||e.placeholder!==this.props.placeholder),(0,a._)(this,`load`,()=>(0,A._)(function*(){let[{default:e},{default:n}]=yield Promise.all([import(`bootstrap/js/src/chips.js`),import(`bootstrap/js/src/dom/event-handler.js`)]),{separator:r=`,`,allowDuplicates:i=!1,maxChips:a=null,createOnBlur:o=!0,dismissible:s=!0,placeholder:c=``}=t.props;return l=>{let d=e.getOrCreateInstance(l,{separator:r,allowDuplicates:i,maxChips:a,createOnBlur:o,dismissible:s,placeholder:c,dismissIcon:(0,I.renderToStaticMarkup)(/*#__PURE__*/ (0,u.jsx)(z,{name:`x-lg`,"aria-hidden":`true`}))});return l.addEventListener(`change.bs.chips`,t.handleValuesChange),{dispose:()=>{l.removeEventListener(`change.bs.chips`,t.handleValuesChange),n.off(l,`.bs.chips`),d.dispose()}}}})()),(0,a._)(this,`handleValuesChange`,e=>{var t,n;return(t=(n=this.props).onValuesChange)==null?void 0:t.call(n,e.values)}),(0,a._)(this,`setRef`,e=>{this.element.current=e;let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)})}};const qo=L(/*#__PURE__*/ (0,m.forwardRef)((e,t)=>/*#__PURE__*/ (0,u.jsx)(Ko,(0,c._)((0,s._)({},e),{forwardedRef:t}))));qo.displayName=`ChipInput`;const Jo=L(e=>{let{as:t=`button`,className:n,active:r,theme:i}=e,a=(0,l._)(e,[`as`,`className`,`active`,`theme`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},a),{className:(0,d.default)(`chip`,{active:r},i&&`theme-${i}`,n),type:`button`,"aria-pressed":r}))});Jo.displayName=`Chip`;const Yo=L(e=>{let{as:t,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(z,(0,c._)((0,s._)({as:t},r),{className:(0,d.default)(`chip-icon`,n)}))});Yo.displayName=`ChipIcon`;const Xo=L(e=>{let{as:t=`img`,className:n,alt:r=``}=e,i=(0,l._)(e,[`as`,`className`,`alt`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},i),{alt:r,className:(0,d.default)(`chip-img`,n)}))});Xo.displayName=`ChipImage`;const Zo=L(e=>{let{as:t=`button`,className:n,children:r,"aria-label":i=`Remove`}=e,a=(0,l._)(e,[`as`,`className`,`children`,`aria-label`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},a),{type:`button`,"aria-label":i,className:(0,d.default)(`chip-dismiss`,n),children:r==null?/*#__PURE__*/ (0,u.jsx)(z,{name:`x-lg`,"aria-hidden":`true`}):r}))});Zo.displayName=`ChipDismiss`;const Qo=L(e=>{let{as:t=`span`,className:n,active:r,theme:i}=e,a=(0,l._)(e,[`as`,`className`,`active`,`theme`]);var o;return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},a),{tabIndex:(o=a.tabIndex)==null?0:o,className:(0,d.default)(`chip`,{active:r},i&&`theme-${i}`,n)}))});Qo.displayName=`ChipToken`;const $o=L(e=>{let{as:t=`label`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`chip-input-label`,n)}))});$o.displayName=`ChipInputLabel`;let es;var ts,ns,rs,is,as,os,ss,cs,ls,us,ds,fs,ps,ms,hs,gs;const _s=L(e=>{let{as:t=`button`,className:n,value:r,children:i,description:a,icon:o,checkedIcon:f,searchText:p}=e,m=(0,l._)(e,[`as`,`className`,`value`,`children`,`description`,`icon`,`checkedIcon`,`searchText`]);var h;return/*#__PURE__*/ (0,u.jsxs)(t,(0,c._)((0,s._)({},m),{type:`button`,role:`option`,"aria-selected":(h=m[`aria-selected`])!=null&&h,className:(0,d.default)(`menu-item`,n),"data-bs-value":r,"data-search-text":p,"data-label":ys(i),"data-option-hidden":m.hidden||void 0,children:[o&&/*#__PURE__*/ (0,u.jsx)(z,{name:o,className:`menu-item-icon`,"aria-hidden":`true`}),a?/*#__PURE__*/ (0,u.jsxs)(Ma,{children:[i,/*#__PURE__*/ (0,u.jsx)(Na,{children:a})]}):i,f&&/*#__PURE__*/ (0,u.jsx)(z,{name:`check-lg`,className:`menu-item-check`,"aria-hidden":`true`})]}))});_s.displayName=`ComboboxOption`;const vs=L(e=>{let{as:t=`div`,label:n,children:r}=e,i=(0,l._)(e,[`as`,`label`,`children`]);return/*#__PURE__*/ (0,u.jsxs)(t,(0,c._)((0,s._)({},i),{role:`group`,"aria-label":typeof n==`string`?n:void 0,children:[/*#__PURE__*/ (0,u.jsx)(Aa,{children:n}),r]}))});vs.displayName=`ComboboxGroup`;const ys=e=>m.Children.toArray(e).map(e=>/*#__PURE__*/ (0,m.isValidElement)(e)?ys(e.props.children):String(e)).join(` `),bs=e=>m.Children.toArray(e).flatMap(e=>/*#__PURE__*/ (0,m.isValidElement)(e)&&e.type===_s?[e]:/*#__PURE__*/ (0,m.isValidElement)(e)?bs(e.props.children):[]);let xs;new(es=(ts=/*#__PURE__*/ new WeakMap,ns=/*#__PURE__*/ new WeakMap,rs=/*#__PURE__*/ new WeakMap,is=/*#__PURE__*/ new WeakMap,as=class extends (cs=m.Component){get componentProps(){return this.props}get query(){return(0,n._)(this,ts)}set query(e){(0,i._)(this,ts,e)}get current(){return(0,n._)(this,ns)}set current(e){(0,i._)(this,ns,e)}get visibleOptionCount(){return(0,n._)(this,rs)}set visibleOptionCount(e){(0,i._)(this,rs,e)}get selectedLabel(){return(0,n._)(this,is)}set selectedLabel(e){(0,i._)(this,is,e)}get values(){var e;let t=(e=this.componentProps.value)==null?this.current:e;return Array.isArray(t)?t:t?[t]:[]}componentDidMount(){var e;this.updateAccessibility(),this.optionObserver=new MutationObserver(this.updateAccessibility);let t=(e=this.menu.current)==null?void 0:e.panel.current;t&&this.optionObserver.observe(t,{childList:!0,subtree:!0,characterData:!0})}componentDidUpdate(){this.updateAccessibility()}componentWillUnmount(){var e;(e=this.optionObserver)==null||e.disconnect()}render(){var e,t,n,r;let i=(e=this.componentProps.as)==null?`div`:e,a=this.componentProps,{as:o,className:f,id:p,name:h,value:g,defaultValue:_,placeholder:v=`Select an item…`,disabled:y,multiple:b,onChange:x,onClick:S,menuClassName:C,children:w,controlSize:T,search:E,searchNormalize:D,searchPlaceholder:O=`Search…`,noResultsText:k=`No results found`,validation:A}=a,j=(0,l._)(a,[`as`,`className`,`id`,`name`,`value`,`defaultValue`,`placeholder`,`disabled`,`multiple`,`onChange`,`onClick`,`menuClassName`,`children`,`controlSize`,`search`,`searchNormalize`,`searchPlaceholder`,`noResultsText`,`validation`]),M=bs(w).filter(e=>this.values.includes(e.props.value)),N=M.length>0||!!this.selectedLabel,P=b&&M.length>1?`${M.length} selected`:(t=(r=M[0])==null?void 0:r.props.children)==null?this.selectedLabel:t,F=this.visibleOptionCount===0;return/*#__PURE__*/ (0,u.jsxs)(i,(0,c._)((0,s._)({},j),{className:(0,d.default)(`combobox`,f),children:[/*#__PURE__*/ (0,u.jsxs)(Q,{ref:this.menu,className:`w-100`,id:p?`${p}-combobox`:void 0,label:/*#__PURE__*/ (0,u.jsxs)(u.Fragment,{children:[/*#__PURE__*/ (0,u.jsx)(`span`,{className:(0,d.default)(`combobox-value`,!N&&`combobox-placeholder`),children:N?P:v}),/*#__PURE__*/ (0,u.jsx)(z,{name:`chevron-down`,className:`combobox-caret`,"aria-hidden":`true`})]}),toggleProps:{id:p,className:(0,d.default)(`form-control combobox-toggle`,T&&`form-control-${T}`,A&&`is-${A}`),variant:!1,disabled:y,"aria-haspopup":`listbox`,"aria-label":(n=this.componentProps[`aria-label`])==null?v:n,"aria-labelledby":this.componentProps[`aria-labelledby`],"aria-describedby":this.componentProps[`aria-describedby`],"aria-invalid":A?A===`invalid`:this.componentProps[`aria-invalid`]},autoClose:!b,menuClassName:(0,d.default)(C,`combobox-menu`),onClick:this.handleClick,children:[E&&/*#__PURE__*/ (0,u.jsx)(`div`,{className:`combobox-search`,children:/*#__PURE__*/ (0,u.jsx)(`input`,{type:`search`,className:`form-control combobox-search-input`,"aria-label":O,placeholder:O,autoComplete:`off`,value:this.query,onChange:this.handleSearch})}),m.Children.map(w,this.renderChild),E&&F&&/*#__PURE__*/ (0,u.jsx)(`div`,{className:`combobox-empty`,role:`status`,children:k})]}),this.values.length||b?this.values.map(this.renderHiddenInput):this.renderHiddenInput(``)]}))}constructor(...e){var t;super(...e),(0,r._)(this,ts,{writable:!0,value:(gs(this),ls(this,``))}),(0,r._)(this,ns,{writable:!0,value:us(this,(t=this.componentProps.defaultValue)==null?this.componentProps.multiple?[]:``:t)}),(0,r._)(this,rs,{writable:!0,value:ds(this,0)}),(0,r._)(this,is,{writable:!0,value:fs(this,``)}),(0,a._)(this,`menu`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`optionObserver`,void 0),(0,a._)(this,`updateAccessibility`,ps(this,()=>{var e,t,n,r,i,a,o,s;let c=(a=this.menu.current)==null?void 0:a.panel.current,l=[...(e=c==null?void 0:c.querySelectorAll(`[data-bs-value]`))==null?[]:e],u=[],d=0;for(let e of l){var f,p,m,h,g;let t=(f=e.dataset.bsValue)==null?``:f,n=(p=(m=e.dataset.searchText)==null?e.textContent:m)==null?``:p,r=e.dataset.optionHidden!==`true`&&this.normalize(n).includes(this.normalize(this.query)),i=this.values.includes(t);e.setAttribute(`role`,`option`),e.setAttribute(`aria-selected`,String(i)),e.classList.toggle(`selected`,i),e.hidden=!r,e.style.display=r?``:`none`,r&&d++,i&&u.push((h=(g=e.dataset.label)==null?e.textContent:g)==null?``:h)}for(let e of(t=c==null?void 0:c.querySelectorAll(`[role="group"]`))==null?[]:t){let t=[...e.querySelectorAll(`[data-bs-value]`)].some(({hidden:e})=>!e);e.hidden=!t,e.style.display=t?``:`none`}this.visibleOptionCount=d,this.selectedLabel=this.componentProps.multiple&&u.length>1?`${u.length} selected`:(n=u[0])==null?``:n,c==null||c.setAttribute(`role`,`listbox`),c==null||c.setAttribute(`aria-multiselectable`,String(!!this.componentProps.multiple)),c==null||c.setAttribute(`aria-label`,(r=(i=this.componentProps[`aria-label`])==null?this.componentProps.placeholder:i)==null?`Options`:r),(s=this.menu.current)==null||(o=s.trigger.current)==null||o.setAttribute(`aria-haspopup`,`listbox`)})),(0,a._)(this,`setCurrent`,ms(this,e=>this.current=e)),(0,a._)(this,`handleSearch`,hs(this,({currentTarget:{value:e}})=>this.query=e)),(0,a._)(this,`handleClick`,e=>{var t,n,r,i,a;(n=(r=this.componentProps).onClick)==null||n.call(r,e);let{target:o,defaultPrevented:s}=e;if(s||this.componentProps.disabled||!(o instanceof Element))return;let c=o.closest(`[data-bs-value]`);if(!c||c.disabled||c.getAttribute(`aria-disabled`)===`true`)return;let l=(t=c.dataset.bsValue)==null?``:t,u=this.componentProps.multiple?this.values.includes(l)?this.values.filter(e=>e!==l):[...this.values,l]:l;(i=(a=this.componentProps).onChange)==null||i.call(a,u),this.componentProps.value===void 0&&this.setCurrent(u)}),(0,a._)(this,`normalize`,e=>{let t=e.toLocaleLowerCase();return this.componentProps.searchNormalize?t.normalize(`NFD`).replace(RegExp(`[\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1-\\u05C2\\u05C4-\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7-\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u0897-\\u089F\\u08CA-\\u08E1\\u08E3-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962-\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7-\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2-\\u09E3\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47-\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70-\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2-\\u0AE3\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47-\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B62-\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C00-\\u0C04\\u0C3C\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55-\\u0C56\\u0C62-\\u0C63\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5-\\u0CD6\\u0CE2-\\u0CE3\\u0CF3\\u0D00-\\u0D03\\u0D3B-\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62-\\u0D63\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2-\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EBC\\u0EC8-\\u0ECE\\u0F18-\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F3F\\u0F71-\\u0F84\\u0F86-\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102B-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1062-\\u1064\\u1067-\\u106D\\u1071-\\u1074\\u1082-\\u108D\\u108F\\u109A-\\u109D\\u135D-\\u135F\\u1712-\\u1715\\u1732-\\u1734\\u1752-\\u1753\\u1772-\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u180F\\u1885-\\u1886\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F\\u1AB0-\\u1ADD\\u1AE0-\\u1AEB\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DFF\\u20D0-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099-\\u309A\\uA66F-\\uA672\\uA674-\\uA67D\\uA69E-\\uA69F\\uA6F0-\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\uA880-\\uA881\\uA8B4-\\uA8C5\\uA8E0-\\uA8F1\\uA8FF\\uA926-\\uA92D\\uA947-\\uA953\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9E5\\uAA29-\\uAA36\\uAA43\\uAA4C-\\uAA4D\\uAA7B-\\uAA7D\\uAAB0\\uAAB2-\\uAAB4\\uAAB7-\\uAAB8\\uAABE-\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5-\\uAAF6\\uABE3-\\uABEA\\uABEC-\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F\\u{101FD}\\u{102E0}\\u{10376}-\\u{1037A}\\u{10A01}-\\u{10A03}\\u{10A05}-\\u{10A06}\\u{10A0C}-\\u{10A0F}\\u{10A38}-\\u{10A3A}\\u{10A3F}\\u{10AE5}-\\u{10AE6}\\u{10D24}-\\u{10D27}\\u{10D69}-\\u{10D6D}\\u{10EAB}-\\u{10EAC}\\u{10EFA}-\\u{10EFF}\\u{10F46}-\\u{10F50}\\u{10F82}-\\u{10F85}\\u{11000}-\\u{11002}\\u{11038}-\\u{11046}\\u{11070}\\u{11073}-\\u{11074}\\u{1107F}-\\u{11082}\\u{110B0}-\\u{110BA}\\u{110C2}\\u{11100}-\\u{11102}\\u{11127}-\\u{11134}\\u{11145}-\\u{11146}\\u{11173}\\u{11180}-\\u{11182}\\u{111B3}-\\u{111C0}\\u{111C9}-\\u{111CC}\\u{111CE}-\\u{111CF}\\u{1122C}-\\u{11237}\\u{1123E}\\u{11241}\\u{112DF}-\\u{112EA}\\u{11300}-\\u{11303}\\u{1133B}-\\u{1133C}\\u{1133E}-\\u{11344}\\u{11347}-\\u{11348}\\u{1134B}-\\u{1134D}\\u{11357}\\u{11362}-\\u{11363}\\u{11366}-\\u{1136C}\\u{11370}-\\u{11374}\\u{113B8}-\\u{113C0}\\u{113C2}\\u{113C5}\\u{113C7}-\\u{113CA}\\u{113CC}-\\u{113D0}\\u{113D2}\\u{113E1}-\\u{113E2}\\u{11435}-\\u{11446}\\u{1145E}\\u{114B0}-\\u{114C3}\\u{115AF}-\\u{115B5}\\u{115B8}-\\u{115C0}\\u{115DC}-\\u{115DD}\\u{11630}-\\u{11640}\\u{116AB}-\\u{116B7}\\u{1171D}-\\u{1172B}\\u{1182C}-\\u{1183A}\\u{11930}-\\u{11935}\\u{11937}-\\u{11938}\\u{1193B}-\\u{1193E}\\u{11940}\\u{11942}-\\u{11943}\\u{119D1}-\\u{119D7}\\u{119DA}-\\u{119E0}\\u{119E4}\\u{11A01}-\\u{11A0A}\\u{11A33}-\\u{11A39}\\u{11A3B}-\\u{11A3E}\\u{11A47}\\u{11A51}-\\u{11A5B}\\u{11A8A}-\\u{11A99}\\u{11B60}-\\u{11B67}\\u{11C2F}-\\u{11C36}\\u{11C38}-\\u{11C3F}\\u{11C92}-\\u{11CA7}\\u{11CA9}-\\u{11CB6}\\u{11D31}-\\u{11D36}\\u{11D3A}\\u{11D3C}-\\u{11D3D}\\u{11D3F}-\\u{11D45}\\u{11D47}\\u{11D8A}-\\u{11D8E}\\u{11D90}-\\u{11D91}\\u{11D93}-\\u{11D97}\\u{11EF3}-\\u{11EF6}\\u{11F00}-\\u{11F01}\\u{11F03}\\u{11F34}-\\u{11F3A}\\u{11F3E}-\\u{11F42}\\u{11F5A}\\u{13440}\\u{13447}-\\u{13455}\\u{1611E}-\\u{1612F}\\u{16AF0}-\\u{16AF4}\\u{16B30}-\\u{16B36}\\u{16F4F}\\u{16F51}-\\u{16F87}\\u{16F8F}-\\u{16F92}\\u{16FE4}\\u{16FF0}-\\u{16FF1}\\u{1BC9D}-\\u{1BC9E}\\u{1CF00}-\\u{1CF2D}\\u{1CF30}-\\u{1CF46}\\u{1D165}-\\u{1D169}\\u{1D16D}-\\u{1D172}\\u{1D17B}-\\u{1D182}\\u{1D185}-\\u{1D18B}\\u{1D1AA}-\\u{1D1AD}\\u{1D242}-\\u{1D244}\\u{1DA00}-\\u{1DA36}\\u{1DA3B}-\\u{1DA6C}\\u{1DA75}\\u{1DA84}\\u{1DA9B}-\\u{1DA9F}\\u{1DAA1}-\\u{1DAAF}\\u{1E000}-\\u{1E006}\\u{1E008}-\\u{1E018}\\u{1E01B}-\\u{1E021}\\u{1E023}-\\u{1E024}\\u{1E026}-\\u{1E02A}\\u{1E08F}\\u{1E130}-\\u{1E136}\\u{1E2AE}\\u{1E2EC}-\\u{1E2EF}\\u{1E4EC}-\\u{1E4EF}\\u{1E5EE}-\\u{1E5EF}\\u{1E6E3}\\u{1E6E6}\\u{1E6EE}-\\u{1E6EF}\\u{1E6F5}\\u{1E8D0}-\\u{1E8D6}\\u{1E944}-\\u{1E94A}\\u{E0100}-\\u{E01EF}]`,`gu`),``):t}),(0,a._)(this,`matches`,e=>{var t;return this.normalize((t=e.props.searchText)==null?ys(e.props.children):t).includes(this.normalize(this.query))}),(0,a._)(this,`renderChild`,e=>{if(!/*#__PURE__*/ (0,m.isValidElement)(e))return e;if(e.type===_s){let t=e,n=this.values.includes(t.props.value);return/*#__PURE__*/ (0,m.cloneElement)(t,{hidden:t.props.hidden||!this.matches(t),className:(0,d.default)(t.props.className,n&&`selected`),"aria-selected":n,role:`option`})}let t=bs(e.props.children);return/*#__PURE__*/ (0,m.cloneElement)(e,(0,c._)((0,s._)({},e.type===vs&&{hidden:!t.some(this.matches)}),{children:m.Children.map(e.props.children,this.renderChild)}))}),(0,a._)(this,`renderHiddenInput`,e=>/*#__PURE__*/ (0,u.jsx)(`input`,{type:`hidden`,name:this.componentProps.name,value:e,disabled:this.componentProps.disabled},e))}},{e:[ls,us,ds,fs,ps,ms,hs,gs],c:[xs,ss]}=(0,t._)(as,[[f.observable,1,`query`],[f.observable,1,`current`],[f.observable,1,`visibleOptionCount`],[f.observable,1,`selectedLabel`],[f.action,0,`updateAccessibility`],[f.action,0,`setCurrent`],[f.action,0,`handleSearch`]],[p.observer],cs),as),os=class extends o._{constructor(){super(xs),(0,a._)(this,`displayName`,`Combobox`),ss()}},(0,a._)(os,es,void 0),os);const Ss={sm:`form-control-sm`,lg:`form-control-lg`},Cs=L(e=>{let{as:t=`input`,className:n,plaintext:r,ghost:i,caret:a,color:o,controlSize:f,validation:p}=e,m=(0,l._)(e,[`as`,`className`,`plaintext`,`ghost`,`caret`,`color`,`controlSize`,`validation`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},m),{"aria-invalid":p?p===`invalid`:m[`aria-invalid`],className:(0,d.default)(i?`form-ghost`:r?`form-control-plaintext`:`form-control`,!i&&a&&`form-control-caret`,!i&&!r&&o&&`form-control-color`,!i&&!r&&f&&Ss[f],p&&`is-${p}`,n)}))});Cs.displayName=`FormControl`;const ws=L(e=>{let{as:t=`textarea`,className:n,controlSize:r,validation:i}=e,a=(0,l._)(e,[`as`,`className`,`controlSize`,`validation`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},a),{"aria-invalid":i?i===`invalid`:a[`aria-invalid`],className:(0,d.default)(`form-control`,r&&Ss[r],i&&`is-${i}`,n)}))});ws.displayName=`FormTextArea`;const Ts=L(e=>{let{as:t=`select`,className:n,controlSize:r,validation:i}=e,a=(0,l._)(e,[`as`,`className`,`controlSize`,`validation`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},a),{"aria-invalid":i?i===`invalid`:a[`aria-invalid`],className:(0,d.default)(`form-control`,r&&Ss[r],i&&`is-${i}`,n)}))});Ts.displayName=`FormSelect`;var Es=class extends Go{render(){let e=this.props,{as:t,className:n,enhanced:r,inline:i,selectionMode:a,min:o,max:f,options:p,displayMonthsCount:m,selectedDates:h,firstWeekday:g,placement:_,datepickerTheme:v,onDatesChange:y,ghost:b,controlSize:x,validation:S,kind:C=`input`,hostProps:w,leadingIcon:T,forwardedRef:E}=e,D=(0,l._)(e,[`as`,`className`,`enhanced`,`inline`,`selectionMode`,`min`,`max`,`options`,`displayMonthsCount`,`selectedDates`,`firstWeekday`,`placement`,`datepickerTheme`,`onDatesChange`,`ghost`,`controlSize`,`validation`,`kind`,`hostProps`,`leadingIcon`,`forwardedRef`]),O=t==null?C===`div`?`div`:`input`:t,k={"data-bs-toggle":r||C!==`input`?`datepicker`:void 0,"data-bs-inline":i||C===`div`||void 0,"data-bs-selection-mode":a,"data-bs-display-months-count":m,"data-bs-selected-dates":h?JSON.stringify(h):void 0,"data-bs-first-weekday":g,"data-bs-placement":_,"data-bs-datepicker-theme":v,"data-bs-date-min":r?o:void 0,"data-bs-date-max":r?f:void 0};if(C===`button`){let{children:e}=w,n=(0,l._)(w,[`children`]);return/*#__PURE__*/ (0,u.jsxs)(R,(0,c._)((0,s._)({as:t},n,k),{ref:this.setRef,children:[T&&/*#__PURE__*/ (0,u.jsx)(z,{name:T,"aria-hidden":`true`}),/*#__PURE__*/ (0,u.jsx)(`span`,{"data-bs-datepicker-display":``,children:e})]}))}return C===`div`?/*#__PURE__*/ (0,u.jsx)(O,(0,c._)((0,s._)({},w,k),{ref:this.setRef})):/*#__PURE__*/ (0,u.jsx)(O,(0,c._)((0,s._)({},D,k),{ref:this.setRef,className:(0,d.default)(b?`form-ghost`:`form-control`,x&&`form-control-${x}`,S&&`is-${S}`,n),"aria-invalid":S?S===`invalid`:D[`aria-invalid`],type:r?`text`:`date`,min:o,max:f}))}constructor(...e){var t;super(...e),t=this,(0,a._)(this,`configurationChanged`,e=>e.options!==this.props.options||e.enhanced!==this.props.enhanced||e.inline!==this.props.inline||e.selectionMode!==this.props.selectionMode||e.displayMonthsCount!==this.props.displayMonthsCount||e.firstWeekday!==this.props.firstWeekday||e.placement!==this.props.placement||e.datepickerTheme!==this.props.datepickerTheme||e.min!==this.props.min||e.max!==this.props.max||JSON.stringify(e.selectedDates)!==JSON.stringify(this.props.selectedDates)),(0,a._)(this,`load`,()=>(0,A._)(function*(){let{enhanced:e,kind:n=`input`}=t.props;if(!e&&n===`input`)return()=>({dispose:()=>void 0});let{ReactDatepicker:r}=yield Promise.resolve().then(()=>require("./DatePickerPlugin-CpGuQRsi.js")),{options:i,inline:a,selectionMode:o,min:c,max:l,displayMonthsCount:u,selectedDates:d,firstWeekday:f,placement:p,datepickerTheme:m}=t.props,h=(0,s._)({},i,a!==void 0&&{inline:a},o!==void 0&&{selectionMode:o},c!==void 0&&{dateMin:String(c)},l!==void 0&&{dateMax:String(l)},u!==void 0&&{displayMonthsCount:u},d!==void 0&&{selectedDates:d},f!==void 0&&{firstWeekday:f},p!==void 0&&{placement:p},m!==void 0&&{datepickerTheme:m});return e=>{let n=[...e.childNodes],i=r.getOrCreateInstance(e,h);return e.addEventListener(`change.bs.datepicker`,t.handleDatesChange),{dispose:()=>{e.removeEventListener(`change.bs.datepicker`,t.handleDatesChange),i.dispose(),t.props.kind===`div`&&e.replaceChildren(...n)}}}})()),(0,a._)(this,`handleDatesChange`,e=>{var t,n;return(t=(n=this.props).onDatesChange)==null?void 0:t.call(n,e.dates)}),(0,a._)(this,`setRef`,e=>{this.element.current=e;let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)})}};const Ds=L(/*#__PURE__*/ (0,m.forwardRef)((e,t)=>/*#__PURE__*/ (0,u.jsx)(Es,(0,c._)((0,s._)({},e),{forwardedRef:t}))));Ds.displayName=`DatePicker`;const Os=L(/*#__PURE__*/ (0,m.forwardRef)((e,t)=>{let[n,...r]=[e,t],{as:i,options:a,inline:o,selectionMode:s,displayMonthsCount:c,selectedDates:d,firstWeekday:f,placement:p,datepickerTheme:m,onDatesChange:h,leadingIcon:g}=n,_=(0,l._)(n,[`as`,`options`,`inline`,`selectionMode`,`displayMonthsCount`,`selectedDates`,`firstWeekday`,`placement`,`datepickerTheme`,`onDatesChange`,`leadingIcon`]),[v]=r;return/*#__PURE__*/ (0,u.jsx)(Es,{as:i,kind:`button`,leadingIcon:g,hostProps:_,forwardedRef:v,options:a,inline:o,selectionMode:s,displayMonthsCount:c,selectedDates:d,firstWeekday:f,placement:p,datepickerTheme:m,onDatesChange:h})}));Os.displayName=`DatePickerButton`;const ks=L(/*#__PURE__*/ (0,m.forwardRef)((e,t)=>{let[n,...r]=[e,t],{as:i,options:a,selectionMode:o,displayMonthsCount:s,selectedDates:c,firstWeekday:d,placement:f,datepickerTheme:p,onDatesChange:m,inline:h=!0}=n,g=(0,l._)(n,[`as`,`options`,`selectionMode`,`displayMonthsCount`,`selectedDates`,`firstWeekday`,`placement`,`datepickerTheme`,`onDatesChange`,`inline`]),[_]=r;return/*#__PURE__*/ (0,u.jsx)(Es,{as:i,kind:`div`,hostProps:g,forwardedRef:_,options:a,inline:h,selectionMode:o,displayMonthsCount:s,selectedDates:c,firstWeekday:d,placement:f,datepickerTheme:p,onDatesChange:m})}));ks.displayName=`DatePickerInline`;const As=L(e=>{let{as:t=`small`,className:n,block:r}=e,i=(0,l._)(e,[`as`,`className`,`block`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},i),{className:(0,d.default)(`form-text`,r&&`d-block`,n)}))});As.displayName=`FormText`;const js=L(e=>{let{as:t=`div`,className:n,type:r=`invalid`,tooltip:i}=e,a=(0,l._)(e,[`as`,`className`,`type`,`tooltip`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},a),{className:(0,d.default)({tooltip:i},i?`${r}-tooltip`:`${r}-feedback`,n)}))});js.displayName=`FormFeedback`;const Ms=L(e=>{let{as:t=`form`,className:n,validated:r}=e,i=(0,l._)(e,[`as`,`className`,`validated`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},i),{className:(0,d.default)(r&&`was-validated`,n)}))});Ms.displayName=`Form`;const Ns=L(e=>{let{as:t=`fieldset`}=e,n=(0,l._)(e,[`as`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,s._)({},n))});Ns.displayName=`FormFieldset`;const Ps=L(e=>{let{as:t=`div`,className:n,card:r}=e,i=(0,l._)(e,[`as`,`className`,`card`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},i),{className:(0,d.default)(`form-field`,r&&`form-field-card`,n)}))});Ps.displayName=`FormField`;const Fs=L(e=>{let{as:t=`div`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`form-group`,n)}))});Fs.displayName=`FormGroup`;const Is=L(e=>{let{as:t=`div`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`form-field-content`,n)}))});Is.displayName=`FormFieldContent`;const Ls=L(e=>{let{as:t=`label`,className:n,plain:r,column:i,controlSize:a}=e,o=(0,l._)(e,[`as`,`className`,`plain`,`column`,`controlSize`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},o),{className:(0,d.default)(i?`col-form-label`:!r&&`form-label`,i&&a&&`col-form-label-${a}`,n)}))});Ls.displayName=`FormLabel`;const Rs=L(e=>{let{as:t=`legend`,className:n,column:r,controlSize:i}=e,a=(0,l._)(e,[`as`,`className`,`column`,`controlSize`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},a),{className:(0,d.default)(r&&`col-form-label`,r&&i&&`col-form-label-${i}`,n)}))});Rs.displayName=`FormLegend`;const zs=e=>/*#__PURE__*/ (0,m.isValidElement)(e)&&(e.type===`label`||e.type===Ls),Bs=L(e=>{let{as:t=`div`,className:n,always:r,children:i}=e,a=(0,l._)(e,[`as`,`className`,`always`,`children`]),o=m.Children.toArray(i);return/*#__PURE__*/ (0,u.jsxs)(t,(0,c._)((0,s._)({},a),{className:(0,d.default)(`form-floating`,r&&`form-floating-always`,n),children:[o.filter(zs),o.filter(e=>!zs(e))]}))});Bs.displayName=`FormFloatingLabel`;const Vs=L(e=>{let{as:t=`div`,className:n,size:r}=e,i=(0,l._)(e,[`as`,`className`,`size`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},i),{className:(0,d.default)(`input-group`,r&&`input-group-${r}`,n)}))});Vs.displayName=`InputGroup`;const Hs=L(e=>{let{as:t,className:n}=e,r=(0,l._)(e,[`as`,`className`]),i=t==null?typeof r.htmlFor==`string`?`label`:`span`:t;return/*#__PURE__*/ (0,u.jsx)(i,(0,c._)((0,s._)({},r),{className:(0,d.default)(`input-group-text`,n)}))});Hs.displayName=`InputGroupText`;const Us=L(e=>{let{as:t,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(R,(0,c._)((0,s._)({as:t},r),{className:(0,d.default)(`input-group-btn`,n)}))});Us.displayName=`InputGroupButton`;const Ws=L(e=>{let{as:t,children:n}=e,r=(0,l._)(e,[`as`,`children`]),i=(0,c._)((0,s._)({},n.props,r),{className:(0,d.default)(`input-group-ignore`,n.props.className)});return t?/*#__PURE__*/ (0,m.createElement)(t,i):/*#__PURE__*/ (0,m.cloneElement)(n,i)});Ws.displayName=`InputGroupIgnore`;var Gs=class extends Q{componentDidMount(){var e,t;this.root.current=(e=(t=this.trigger.current)==null?void 0:t.closest(`.input-group`))==null?null:e,super.componentDidMount()}render(){return/*#__PURE__*/ (0,u.jsx)(Ks,(0,c._)((0,s._)({},this.props),{owner:this}))}constructor(...e){super(...e),(0,a._)(this,`handlePanelClick`,e=>{var t,n;(t=(n=this.props).onClick)==null||t.call(n,e),e.defaultPrevented||this.handleSelect(e)}),(0,a._)(this,`handleTriggerKeyDown`,this.handleKeyDown),(0,a._)(this,`handleBlur`,e=>{var t,n,r;(t=(n=this.props).onBlur)==null||t.call(n,e);let{autoClose:i=!0}=this.props;!e.defaultPrevented&&i!==!1&&i!==`inside`&&!((r=this.root.current)!=null&&r.contains(e.relatedTarget))&&this.setOpen(!1)})}};(0,a._)(Gs,`displayName`,`InputGroupMenu`);const Ks=(0,p.observer)(({owner:{open:e,trigger:t,panel:n,handleToggle:r,handleTriggerKeyDown:i,handleBlur:a,handlePanelClick:o,handleKeyDown:l},id:f,label:p,split:m,toggleProps:h,className:g,children:_,align:v=`end`,menuClassName:y})=>{var b;return/*#__PURE__*/ (0,u.jsxs)(u.Fragment,{children:[/*#__PURE__*/ (0,u.jsx)(R,(0,c._)((0,s._)({},h),{ref:t,className:(0,d.default)(`input-group-btn`,m&&`menu-toggle-split`,h==null?void 0:h.className,g),"aria-label":m?(b=h==null?void 0:h[`aria-label`])==null?`Toggle menu`:b:h==null?void 0:h[`aria-label`],"aria-expanded":e,"aria-controls":f?`${f}-menu`:void 0,onClick:r,onKeyDown:i,onBlur:a,children:p})),/*#__PURE__*/ (0,u.jsx)(`div`,{ref:n,id:f?`${f}-menu`:void 0,className:(0,d.default)(`menu top-100`,v===`end`?`end-0`:`start-0`,e&&`show`,y),hidden:!e,onClick:o,onKeyDown:l,onBlur:a,children:_})]})});var qs=class extends Go{updatePlugin(){var e,t,n,r;let{value:i}=this.props,a=(t=this.element.current)==null?void 0:t.querySelector(`.otp-slots`);a==null||a.classList.add(`min-w-0`,`max-w-100`);for(let t of(e=a==null?void 0:a.querySelectorAll(`.otp-slot`))==null?[]:e)t.classList.add(`min-w-0`);i!==void 0&&((n=this.instance)==null?void 0:n.getValue())!==String(i)&&((r=this.instance)==null||r.setValue(String(i)))}dispose(){var e,t;(e=this.element.current)==null||e.removeEventListener(`complete.bs.otpInput`,this.handleComplete),(t=this.element.current)==null||t.removeEventListener(`input.bs.otpInput`,this.handleValueChange),super.dispose()}render(){let e=this.props,{as:t=`div`,className:n,wrapperClassName:r,length:i,type:a=`numeric`,mask:o,groups:f,separator:p,connected:m,size:h,validation:g,onComplete:_,onValueChange:v,forwardedRef:y,autoComplete:b=`one-time-code`}=e,x=(0,l._)(e,[`as`,`className`,`wrapperClassName`,`length`,`type`,`mask`,`groups`,`separator`,`connected`,`size`,`validation`,`onComplete`,`onValueChange`,`forwardedRef`,`autoComplete`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},this.props.as?x:{}),{ref:this.setRootRef,className:(0,d.default)(`otp min-w-0 max-w-100`,m&&`otp-connected`,h&&`otp-${h}`,g&&`is-${g}`,r),"data-bs-otp":``,"data-bs-length":i,"data-bs-type":a,"data-bs-mask":o||void 0,"data-bs-groups":f?JSON.stringify(f):void 0,"data-bs-separator":p,children:/*#__PURE__*/ (0,u.jsx)(`input`,(0,c._)((0,s._)({},this.props.as?{}:x),{ref:this.props.as?void 0:this.forwardRef,name:x.name,type:`text`,maxLength:i,autoComplete:b,inputMode:a===`numeric`?`numeric`:`text`,"aria-invalid":g?g===`invalid`:x[`aria-invalid`],pattern:a===`numeric`?`[0-9]*`:a===`alpha`?`[A-Za-z]*`:`[A-Za-z0-9]*`,className:(0,d.default)(`otp-input`,n)}))}))}constructor(...e){var t;super(...e),t=this,(0,a._)(this,`configurationChanged`,e=>e.length!==this.props.length||e.type!==this.props.type||e.mask!==this.props.mask||e.separator!==this.props.separator||JSON.stringify(e.groups)!==JSON.stringify(this.props.groups)),(0,a._)(this,`load`,()=>(0,A._)(function*(){let{default:e}=yield import(`bootstrap/js/src/otp-input.js`),{length:n,type:r=`numeric`,mask:i=!1,groups:a=null,separator:o=`·`}=t.props;return s=>(s.addEventListener(`complete.bs.otpInput`,t.handleComplete),s.addEventListener(`input.bs.otpInput`,t.handleValueChange),e.getOrCreateInstance(s,{length:n,type:r,mask:i,groups:a,separator:o}))})()),(0,a._)(this,`handleComplete`,e=>{var t,n;return(t=(n=this.props).onComplete)==null?void 0:t.call(n,e.value)}),(0,a._)(this,`handleValueChange`,e=>{var t,n;return(t=(n=this.props).onValueChange)==null?void 0:t.call(n,e.value)}),(0,a._)(this,`forwardRef`,e=>{let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)}),(0,a._)(this,`setRootRef`,e=>{this.element.current=e,this.props.as&&this.forwardRef(e)})}};const Js=L(/*#__PURE__*/ (0,m.forwardRef)((e,t)=>/*#__PURE__*/ (0,u.jsx)(qs,(0,c._)((0,s._)({},e),{forwardedRef:t}))));Js.displayName=`OTPInput`;const Ys=[`weak`,`fair`,`good`,`strong`];var Xs=class extends m.Component{componentDidMount(){this.mounted=!0,this.initialize()}componentDidUpdate(e){e.input!==this.props.input||e.minLength!==this.props.minLength||e.messages!==this.props.messages||e.weights!==this.props.weights||e.thresholds!==this.props.thresholds||e.scorer!==this.props.scorer||e.variant!==this.props.variant||e.strength!==this.props.strength||e.showText!==this.props.showText?(this.dispose(),this.initialize()):this.props.strength===void 0&&this.handleInput()}componentWillUnmount(){this.mounted=!1,this.dispose()}render(){var e,t;let n=this.props,{className:r,input:i,minLength:a,messages:o,weights:f,thresholds:p,scorer:m,forwardedRef:h,variant:g=`segments`,strength:_,showText:v=!0}=n,y=(0,l._)(n,[`className`,`input`,`minLength`,`messages`,`weights`,`thresholds`,`scorer`,`forwardedRef`,`variant`,`strength`,`showText`]),b=g===`bar`,x=_?Ys.indexOf(_)+1:0;return/*#__PURE__*/ (0,u.jsxs)(u.Fragment,{children:[/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},y),{ref:this.setMeterRef,className:(0,d.default)(b?`strength-bar`:`strength`,r),"data-bs-strength":_,role:`meter`,"aria-valuemin":0,"aria-valuemax":Ys.length,"aria-valuenow":x,"aria-valuetext":_||`Empty`,children:!b&&Ys.map((e,t)=>/*#__PURE__*/ (0,u.jsx)(`div`,{className:(0,d.default)(`strength-segment`,t<x&&`active`)},e))})),v&&/*#__PURE__*/ (0,u.jsx)(`span`,{className:`strength-text`,"data-bs-strength":_,children:_&&((e=(t=this.props.messages)==null?void 0:t[_])==null?_:e)})]})}constructor(...e){var t;super(...e),t=this,(0,a._)(this,`meter`,void 0),(0,a._)(this,`instance`,void 0),(0,a._)(this,`instanceElement`,void 0),(0,a._)(this,`passwordInput`,void 0),(0,a._)(this,`mounted`,!1),(0,a._)(this,`revision`,0),(0,a._)(this,`initialize`,()=>(0,A._)(function*(){var e,n,r;let i=++t.revision,a=t.meter;if(!a||t.props.strength!==void 0)return;let{default:o}=yield import(`bootstrap/js/src/strength.js`),{input:c,minLength:l,messages:u,weights:d,thresholds:f,scorer:p}=t.props,m=(0,s._)({},c!==void 0&&{input:c},l!==void 0&&{minLength:l},u!==void 0&&{messages:(0,s._)({},o.Default.messages,u)},d!==void 0&&{weights:d},f!==void 0&&{thresholds:f},p!==void 0&&{scorer:p});t.mounted&&t.meter===a&&i===t.revision&&(t.instanceElement=a,t.instance=o.getOrCreateInstance(a,m),t.passwordInput=typeof c==`string`?document.querySelector(c)||void 0:c||((e=a.parentElement)==null?void 0:e.querySelector(`input[type="password"]`))||void 0,(n=t.passwordInput)==null||n.addEventListener(`input`,t.handleInput),(r=t.passwordInput)==null||r.addEventListener(`change`,t.handleInput),t.handleInput())})()),(0,a._)(this,`handleInput`,()=>{var e;let t=(e=this.instance)==null?void 0:e.getStrength(),n=t?Ys.indexOf(t)+1:0,r=this.instanceElement;r==null||r.setAttribute(`aria-valuenow`,String(n)),r==null||r.setAttribute(`aria-valuetext`,t||`Empty`)}),(0,a._)(this,`dispose`,()=>{var e,t,n;this.revision++,(e=this.passwordInput)==null||e.removeEventListener(`input`,this.handleInput),(t=this.passwordInput)==null||t.removeEventListener(`change`,this.handleInput),(n=this.instance)==null||n.dispose(),this.instance=void 0,this.instanceElement=void 0,this.passwordInput=void 0}),(0,a._)(this,`setMeterRef`,e=>{this.meter=e||void 0;let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)})}};const Zs=/*#__PURE__*/ (0,m.forwardRef)((e,t)=>/*#__PURE__*/ (0,u.jsx)(Xs,(0,c._)((0,s._)({},e),{forwardedRef:t})));Zs.displayName=`PasswordStrength`;const Qs=L(e=>{let{as:t=`input`,className:n,size:r,theme:i,validation:a}=e,o=(0,l._)(e,[`as`,`className`,`size`,`theme`,`validation`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},o),{type:`radio`,"aria-invalid":a?a===`invalid`:o[`aria-invalid`],className:(0,d.default)(`radio`,r&&`radio-${r}`,i&&`theme-${i}`,a&&`is-${a}`,n)}))});Qs.displayName=`Radio`;const $s=L(e=>{let{as:t,type:n=`checkbox`,indeterminate:r}=e,i=(0,l._)(e,[`as`,`type`,`indeterminate`]);return n===`checkbox`?/*#__PURE__*/ (0,u.jsx)(Wo,(0,c._)((0,s._)({as:t},i),{indeterminate:r})):/*#__PURE__*/ (0,u.jsx)(Qs,(0,s._)({as:t},i))});$s.displayName=`FormCheck`;var ec=class extends Go{dispose(){var e;(e=this.element.current)==null||e.removeEventListener(`changed.bs.range`,this.handleValueChange),super.dispose()}render(){var e;let t=this.props,{as:n=`div`,className:r,wrapperClassName:i,min:a=0,max:o=100,value:f,defaultValue:p,bubble:m,theme:h,formatter:g,onValueChange:_,forwardedRef:v,validation:y,style:b}=t,x=(0,l._)(t,[`as`,`className`,`wrapperClassName`,`min`,`max`,`value`,`defaultValue`,`bubble`,`theme`,`formatter`,`onValueChange`,`forwardedRef`,`validation`,`style`]),S=Number((e=f==null?p:f)==null?(Number(a)+Number(o))/2:e),C=Number(o)<=Number(a)?0:Math.max(0,Math.min(1,(S-Number(a))/(Number(o)-Number(a))));return/*#__PURE__*/ (0,u.jsx)(n,(0,c._)((0,s._)({},this.props.as?x:{}),{ref:this.setRootRef,className:(0,d.default)(`form-range`,h&&`theme-${h}`,y&&`is-${y}`,i),"data-bs-bubble":m||void 0,style:{"--bs-range-fill":C},children:/*#__PURE__*/ (0,u.jsx)(`input`,(0,c._)((0,s._)({},this.props.as?{}:x),{ref:this.props.as?void 0:this.forwardRef,name:x.name,type:`range`,min:a,max:o,value:f,defaultValue:p,"aria-invalid":y?y===`invalid`:x[`aria-invalid`],className:(0,d.default)(`form-range-input`,y&&`is-${y}`,r),style:b}))}))}constructor(...e){var t;super(...e),t=this,(0,a._)(this,`configurationChanged`,e=>e.bubble!==this.props.bubble||e.formatter!==this.props.formatter||e.list!==this.props.list||e.min!==this.props.min||e.max!==this.props.max),(0,a._)(this,`load`,()=>(0,A._)(function*(){let{default:e}=yield import(`bootstrap/js/src/range.js`),{bubble:n=!1,formatter:r=null}=t.props;return i=>(i.addEventListener(`changed.bs.range`,t.handleValueChange),e.getOrCreateInstance(i,{bubble:n,formatter:r}))})()),(0,a._)(this,`updatePlugin`,()=>{var e;return(e=this.instance)==null?void 0:e.update()}),(0,a._)(this,`handleValueChange`,e=>{var t,n;return(t=(n=this.props).onValueChange)==null?void 0:t.call(n,e.value)}),(0,a._)(this,`forwardRef`,e=>{let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)}),(0,a._)(this,`setRootRef`,e=>{this.element.current=e,this.props.as&&this.forwardRef(e)})}};const tc=L(/*#__PURE__*/ (0,m.forwardRef)((e,t)=>/*#__PURE__*/ (0,u.jsx)(ec,(0,c._)((0,s._)({},e),{forwardedRef:t}))));tc.displayName=`FormRange`;const nc=L(e=>{let{as:t=`label`,className:n,inputProps:r,size:i,theme:a,validation:o,width:f,indicatorWidth:p,style:m,children:h}=e,g=(0,l._)(e,[`as`,`className`,`inputProps`,`size`,`theme`,`validation`,`width`,`indicatorWidth`,`style`,`children`]);return/*#__PURE__*/ (0,u.jsxs)(t,(0,c._)((0,s._)({},g),{className:(0,d.default)(`switch`,i&&`switch-${i}`,a&&`theme-${a}`,o&&`is-${o}`,n),style:(0,s._)({"--bs-switch-width":f,"--bs-switch-indicator-width":p},m),children:[/*#__PURE__*/ (0,u.jsx)(`input`,(0,c._)((0,s._)({role:`switch`},r),{type:`checkbox`,"aria-invalid":o?o===`invalid`:r==null?void 0:r[`aria-invalid`],className:(0,d.default)(o&&`is-${o}`,r==null?void 0:r.className)})),h]}))});nc.displayName=`FormSwitch`;const rc=L(e=>{let{as:t=`ul`,flush:n,numbered:r,horizontal:i,className:a}=e,o=(0,l._)(e,[`as`,`flush`,`numbered`,`horizontal`,`className`]),f=(0,d.default)(`list-group`,{"list-group-flush":n,"list-group-numbered":r},i&&(i===!0?`list-group-horizontal`:`${i}:list-group-horizontal`),a);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},o),{className:f}))});rc.displayName=`ListGroup`;const ic=e=>typeof e.href==`string`,ac=e=>typeof e.type==`string`,oc=L(e=>{let{as:t,theme:n,action:r,active:i,disabled:a,className:o}=e,f=(0,l._)(e,[`as`,`theme`,`action`,`active`,`disabled`,`className`]),p=t==null?`a`:t,m=t==null?`button`:t,h=t==null?`li`:t,g=(0,d.default)(`list-group-item`,n&&`theme-${n}`,r&&`list-group-item-action`,{active:i,disabled:a},a&&`pe-none`,o);return ic(f)?/*#__PURE__*/ (0,u.jsx)(p,(0,c._)((0,s._)({},f),{className:g,href:a?void 0:f.href,"aria-current":i?`true`:void 0,"aria-disabled":a||void 0,tabIndex:a?-1:f.tabIndex,onClick:a?void 0:f.onClick})):ac(f)?/*#__PURE__*/ (0,u.jsx)(m,(0,c._)((0,s._)({},f),{type:f.type||`button`,className:g,"aria-current":i?`true`:void 0,disabled:a})):/*#__PURE__*/ (0,u.jsx)(h,(0,c._)((0,s._)({},f),{className:g,"aria-current":i?`true`:void 0,"aria-disabled":a||void 0}))});oc.displayName=`ListGroupItem`;const sc=L(e=>{let{as:t=`nav`,expand:n,theme:r,translucent:i,className:a}=e,o=(0,l._)(e,[`as`,`expand`,`theme`,`translucent`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},o),{className:(0,d.default)(`navbar`,i&&`navbar-translucent`,n&&(n===!0?`navbar-expand`:`${n}:navbar-expand`),a),"data-bs-theme":r}))});sc.displayName=`Navbar`;const cc=L(e=>{let{as:t=`a`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`navbar-brand`,n)}))});cc.displayName=`NavbarBrand`;const lc=L(e=>{let{as:t=`ul`,variant:n,nav:r,className:i}=e,a=(0,l._)(e,[`as`,`variant`,`nav`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},a),{className:(0,d.default)(`navbar-nav`,(r||n)&&`nav`,n&&`nav-${n}`,i)}))});lc.displayName=`NavbarNav`;const uc=L(e=>{let{as:t=`span`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`navbar-text`,n)}))});uc.displayName=`NavbarText`;const dc=L(e=>{let{as:t,expanded:n,className:r,"aria-label":i=`Toggle navigation`}=e,a=(0,l._)(e,[`as`,`expanded`,`className`,`aria-label`]);return/*#__PURE__*/ (0,u.jsx)(R,(0,c._)((0,s._)({as:t},a),{type:`button`,className:(0,d.default)(`navbar-toggler`,r),"aria-label":i,"aria-expanded":n,icon:!0,children:/*#__PURE__*/ (0,u.jsx)(`span`,{className:`navbar-toggler-icon`,"aria-hidden":`true`})}))});dc.displayName=`NavbarToggler`;var fc,pc,mc,hc,gc,_c,vc,yc=/*#__PURE__*/ new WeakMap,bc=/*#__PURE__*/ new WeakMap,xc=/*#__PURE__*/ new WeakMap,Sc=class{get initialized(){return(0,n._)(this,yc)}set initialized(e){(0,i._)(this,yc,e)}get open(){return(0,n._)(this,bc)}set open(e){(0,i._)(this,bc,e)}get overflowIndices(){return(0,n._)(this,xc)}set overflowIndices(e){(0,i._)(this,xc,e)}constructor(){(0,r._)(this,yc,{writable:!0,value:(vc(this),fc(this,!1))}),(0,r._)(this,bc,{writable:!0,value:pc(this,!1)}),(0,r._)(this,xc,{writable:!0,value:mc(this,[])}),(0,a._)(this,`setOpen`,hc(this,e=>this.open=e)),(0,a._)(this,`toggle`,gc(this,()=>this.open=!this.open)),(0,a._)(this,`setOverflowIndices`,_c(this,e=>{this.initialized=!0,this.overflowIndices=e}))}};({e:[fc,pc,mc,hc,gc,_c,vc]}=(0,t._)(Sc,[[f.observable,1,`initialized`],[f.observable,1,`open`],[f.observable,1,`overflowIndices`],[f.action,0,`setOpen`],[f.action,0,`toggle`],[f.action,0,`setOverflowIndices`]],[]));let Cc;var wc,Tc,Ec,Dc;let Oc;new(Cc=(wc=class extends (Dc=m.Component){get componentProps(){return this.props}componentDidMount(){if(this.updateOverflow(),window.addEventListener(`resize`,this.updateOverflow),document.addEventListener(`pointerdown`,this.handleOutside),typeof ResizeObserver<`u`){var e,t;this.resizeObserver=new ResizeObserver(this.updateOverflow),this.root.current&&this.resizeObserver.observe(this.root.current),this.nav.current&&this.resizeObserver.observe(this.nav.current);for(let n of(e=(t=this.nav.current)==null?void 0:t.children)==null?[]:e)this.resizeObserver.observe(n)}}componentDidUpdate(){this.updateOverflow()}componentWillUnmount(){var e;(e=this.resizeObserver)==null||e.disconnect(),window.removeEventListener(`resize`,this.updateOverflow),document.removeEventListener(`pointerdown`,this.handleOutside)}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,n=this.componentProps,{as:r,children:i,className:a,collapseBelow:o,fill:f,iconPlacement:p=`start`,justified:h,menuPlacement:g=`bottom-end`,menuStrategy:_=`absolute`,minimumVisibleItems:v,moreIcon:y,moreText:b=`More`,onClick:x,onKeyDown:S,onOverflowChange:C,threshold:w,"aria-label":T,variant:E}=n,D=(0,l._)(n,[`as`,`children`,`className`,`collapseBelow`,`fill`,`iconPlacement`,`justified`,`menuPlacement`,`menuStrategy`,`minimumVisibleItems`,`moreIcon`,`moreText`,`onClick`,`onKeyDown`,`onOverflowChange`,`threshold`,`aria-label`,`variant`]),O=m.Children.toArray(i),k=this.store.overflowIndices.length>0,A=`${this.componentProps.id}-menu`,[j,M]=g.split(`-`),N=j===`top`?[`bottom-100`,M===`end`?`end-0`:`start-0`]:j===`bottom`?[`top-100`,M===`end`?`end-0`:`start-0`]:j===`left`?[`end-100`,M===`end`?`bottom-0`:`top-0`]:[`start-100`,M===`end`?`bottom-0`:`top-0`],P=y==null?/*#__PURE__*/ (0,u.jsx)(z,{name:`three-dots`,"aria-hidden":`true`}):y,F=b===!1?null:b;return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},D),{ref:this.root,className:(0,d.default)(`nav-overflow d-flex align-items-start position-relative`,this.store.initialized&&`nav-overflow-initialized`,a),onClick:this.handleClick,onKeyDown:this.handleKeyDown,children:/*#__PURE__*/ (0,u.jsxs)(Z,{ref:this.nav,variant:E,fill:f,justified:h,"aria-label":T,className:`flex-nowrap flex-grow-1`,children:[O.map((e,t)=>this.renderChild(e,t)),/*#__PURE__*/ (0,u.jsxs)(`div`,{className:(0,d.default)(`nav-item nav-overflow-item flex-shrink-0`,!k&&`position-absolute invisible`),"data-menu-placement":g,children:[/*#__PURE__*/ (0,u.jsxs)(`button`,{ref:this.toggleButton,type:`button`,className:`nav-link`,"aria-haspopup":`menu`,"aria-expanded":this.store.open,"aria-controls":A,"aria-label":F?void 0:`More`,"data-overflow-toggle":!0,children:[p===`start`&&P,F,p===`end`&&P]}),/*#__PURE__*/ (0,u.jsx)(`div`,{id:A,className:(0,d.default)(`menu nav-overflow-menu`,N,_===`fixed`&&`position-fixed`,{show:this.store.open&&k}),role:`menu`,hidden:!this.store.open||!k,children:this.store.overflowIndices.map(e=>this.renderChild(O[e],e,!0))})]})]})}))}constructor(...e){super(...e),(0,a._)(this,`root`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`nav`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`toggleButton`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`store`,new Sc),(0,a._)(this,`resizeObserver`,void 0),(0,a._)(this,`updateOverflow`,()=>{var e,t,n,r,i,a;let o=this.root.current,s=this.nav.current;if(!o||!s)return;let c=[...s.children].filter(e=>{var t;return e!==((t=this.toggleButton.current)==null?void 0:t.parentElement)}),l=c.map(e=>e.getBoundingClientRect().width||e.offsetWidth),u=Number.parseFloat(getComputedStyle(s).columnGap)||0,d=l.reduce((e,t)=>e+t,0)+u*Math.max(0,c.length-1),f=((n=this.toggleButton.current)==null?void 0:n.getBoundingClientRect().width)||((r=this.toggleButton.current)==null?void 0:r.offsetWidth)||0,p=o.clientWidth,m=this.getCollapseBelow(),h=m>0&&p>0&&p<m,g=c.map(e=>e.classList.contains(`nav-overflow-keep`)),_=c.map((e,t)=>t),v=Math.max(0,Math.min((e=(t=this.componentProps.minimumVisibleItems)==null?this.componentProps.threshold:t)==null?0:e,c.length)),y=d;if(h)for(let e=_.length-1;e>=0;e--)g[e]||_.splice(e,1);else if(p>0&&d>p)for(;y+f>p&&_.length>v;){let e=_.findLast(e=>!g[e]);if(e===void 0)break;y-=l[e]+(_.length>1?u:0),_.splice(_.indexOf(e),1)}let b=new Set(_),x=c.map((e,t)=>t).filter(e=>!b.has(e)),S=this.store.overflowIndices,C=S.length!==x.length||S.some((e,t)=>e!==x[t]);(!this.store.initialized||C)&&this.store.setOverflowIndices(x),C&&((i=(a=this.componentProps).onOverflowChange)==null||i.call(a,x.length,_.length))}),(0,a._)(this,`getCollapseBelow`,()=>{let{collapseBelow:e=0}=this.componentProps;if(typeof e==`number`)return e;let t=getComputedStyle(this.root.current).getPropertyValue(`--bs-breakpoint-${e}`);return Number.parseFloat(t)||0}),(0,a._)(this,`handleClick`,e=>{var t,n;(t=(n=this.componentProps).onClick)==null||t.call(n,e);let r=e.target instanceof Element?e.target:null;e.defaultPrevented||(r!=null&&r.closest(`[data-overflow-toggle]`)?this.store.toggle():r!=null&&r.closest(`.nav-overflow-menu`)&&!r.closest(`[aria-haspopup="true"]`)&&this.store.setOpen(!1))}),(0,a._)(this,`handleKeyDown`,e=>{var t,n;if((t=(n=this.componentProps).onKeyDown)==null||t.call(n,e),!e.defaultPrevented){if(e.key===`Escape`&&this.store.open){var r;this.store.setOpen(!1),(r=this.toggleButton.current)==null||r.focus()}else e.key===`ArrowDown`&&e.target===this.toggleButton.current&&(e.preventDefault(),this.store.setOpen(!0),queueMicrotask(()=>{var e,t;return(t=this.root.current)==null||(e=t.querySelector(`.nav-overflow-menu a[href]:not([aria-disabled="true"]), .nav-overflow-menu button:not(:disabled)`))==null?void 0:e.focus()}))}}),(0,a._)(this,`handleOutside`,e=>{var t;e.target instanceof Node&&!((t=this.root.current)!=null&&t.contains(e.target))&&this.store.setOpen(!1)}),(0,a._)(this,`renderChild`,(e,t,n=!1)=>{if(!/*#__PURE__*/ (0,m.isValidElement)(e))return/*#__PURE__*/ (0,u.jsx)(`span`,{children:e},t);if(n)return e.type===Q?/*#__PURE__*/ (0,m.cloneElement)(e,{className:(0,d.default)(e.props.className,`nav-overflow-submenu`)}):/*#__PURE__*/ (0,m.cloneElement)(e,{className:(0,d.default)(e.props.className,`menu-item`),role:`menuitem`});let r=this.store.overflowIndices.includes(t);return/*#__PURE__*/ (0,m.cloneElement)(e,{className:(0,d.default)(e.props.className,r&&`position-absolute invisible`),"aria-hidden":r||void 0,tabIndex:r?-1:e.props.tabIndex})})}},{c:[Oc,Ec]}=(0,t._)(wc,[],[p.observer],Dc),wc),Tc=class extends o._{constructor(){super(Oc),(0,a._)(this,`displayName`,`NavOverflow`),Ec()}},(0,a._)(Tc,Cc,void 0),Tc);const kc=L(e=>{let{as:t=`ul`,theme:n,size:r,className:i}=e,a=(0,l._)(e,[`as`,`theme`,`size`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},a),{className:(0,d.default)(`pagination`,n&&`theme-${n}`,r&&`pagination-${r}`,i)}))});kc.displayName=`Pagination`;const Ac=L(e=>{let{as:t=`li`,active:n,disabled:r,className:i,children:a}=e,o=(0,l._)(e,[`as`,`active`,`disabled`,`className`,`children`]);var f,p;let h=/*#__PURE__*/ (0,m.isValidElement)(a)&&a.type===jc?/*#__PURE__*/ (0,m.cloneElement)(a,{active:(f=a.props.active)==null?n:f,disabled:(p=a.props.disabled)==null?r:p}):a;return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},o),{className:(0,d.default)(`page-item`,{active:n,disabled:r},i),children:h}))});Ac.displayName=`PageItem`;const jc=L(e=>{let{as:t,active:n,disabled:r,className:i,href:a,tabIndex:o,onClick:f,"aria-current":p}=e,m=(0,l._)(e,[`as`,`active`,`disabled`,`className`,`href`,`tabIndex`,`onClick`,`aria-current`]);return/*#__PURE__*/ (0,u.jsx)(t==null?a===void 0?`span`:`a`:t,(0,c._)((0,s._)({},m),{className:(0,d.default)(`page-link`,i),href:r?void 0:a,tabIndex:r?-1:o,"aria-disabled":r||void 0,"aria-current":p==null?n?`page`:void 0:p,onClick:r?void 0:f}))});jc.displayName=`PageLink`;const Mc=L(e=>{let{as:t=`span`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`page-link`,n)}))});Mc.displayName=`PageText`;const Nc=L(e=>{let{as:t=`span`,size:n,animation:r,theme:i,width:a,className:o,style:f,"aria-hidden":p=!0}=e,m=(0,l._)(e,[`as`,`size`,`animation`,`theme`,`width`,`className`,`style`,`aria-hidden`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},m),{className:(0,d.default)(`placeholder`,n&&`placeholder-${n}`,r&&`placeholder-${r}`,i&&`bg-${i}`,o),style:(0,s._)({width:a},f),"aria-hidden":p}))});Nc.displayName=`Placeholder`;const Pc=L(e=>{let{as:t=`div`,animation:n=`wave`,className:r}=e,i=(0,l._)(e,[`as`,`animation`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},i),{className:(0,d.default)(`placeholder-${n}`,r),"aria-hidden":`true`}))});Pc.displayName=`PlaceholderAnimation`;const Fc=L(e=>{let{as:t,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(R,(0,c._)((0,s._)({as:t},r),{className:(0,d.default)(`placeholder`,n),"aria-hidden":`true`,disabled:!0}))});Fc.displayName=`PlaceholderButton`;const Ic=L(e=>{let{as:t=`div`,value:n,min:r=0,max:i=100,theme:a,striped:o,animated:f,barProps:p={},className:m,style:h,children:g}=e,_=(0,l._)(e,[`as`,`value`,`min`,`max`,`theme`,`striped`,`animated`,`barProps`,`className`,`style`,`children`]);if(![n,r,i].every(Number.isFinite)||i<=r)throw RangeError(`Progress requires finite values and max greater than min`);let v=Math.min(i,Math.max(r,n)),y=`${(v-r)/(i-r)*100}%`,b=(0,c._)((0,s._)({},h),{"--_progress-width":y}),{className:x,style:S}=p,C=(0,l._)(p,[`className`,`style`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},_),{className:(0,d.default)(`progress`,m),style:b,role:`progressbar`,"aria-valuenow":v,"aria-valuemin":r,"aria-valuemax":i,children:/*#__PURE__*/ (0,u.jsx)(`div`,(0,c._)((0,s._)({},C),{className:(0,d.default)(`progress-bar`,a&&`theme-${a}`,{"progress-bar-striped":o||f,"progress-bar-animated":f},x),style:S,children:g}))}))});Ic.displayName=`Progress`;const Lc=L(e=>{let{as:t=`div`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`progress-stacked`,n)}))});Lc.displayName=`ProgressStack`;var Rc,zc,Bc,Vc,Hc,Uc=/*#__PURE__*/ new WeakMap,Wc=/*#__PURE__*/ new WeakMap,Gc=class{get activeId(){return(0,n._)(this,Uc)}set activeId(e){(0,i._)(this,Uc,e)}get guides(){return(0,n._)(this,Wc)}set guides(e){(0,i._)(this,Wc,e)}constructor(){(0,r._)(this,Uc,{writable:!0,value:(Hc(this),Rc(this,``))}),(0,r._)(this,Wc,{writable:!0,value:zc(this)}),(0,a._)(this,`setGuides`,Bc(this,e=>this.guides=e)),(0,a._)(this,`setActiveId`,Vc(this,e=>this.activeId=e))}};({e:[Rc,zc,Bc,Vc,Hc]}=(0,t._)(Gc,[[f.observable,1,`activeId`],[f.observable,1,`guides`],[f.action,0,`setGuides`],[f.action,0,`setActiveId`]],[]));let Kc;var qc,Jc,Yc,Xc;let Zc;new(Kc=(qc=class extends (Xc=m.Component){get componentProps(){return this.props}componentDidMount(){var e;this.mounted=!0,this.refresh(),(e=this.root.current)==null||e.addEventListener(`scroll`,this.handleScroll,{passive:!0}),window.addEventListener(`scroll`,this.handleScroll,{passive:!0}),window.addEventListener(`resize`,this.handleResize),document.addEventListener(`click`,this.handleNavigationClick)}componentDidUpdate(e){(e.children!==this.componentProps.children||e.target!==this.componentProps.target||e.rootMargin!==this.componentProps.rootMargin||e.topMargin!==this.componentProps.topMargin||e.threshold!==this.componentProps.threshold||e.scrollRoot!==this.componentProps.scrollRoot)&&this.refresh(),e.debug!==this.componentProps.debug&&this.updateGuides()}componentWillUnmount(){var e,t,n;this.mounted=!1,(e=this.observer)==null||e.disconnect(),(t=this.bottomObserver)==null||t.disconnect(),(n=this.root.current)==null||n.removeEventListener(`scroll`,this.handleScroll),window.removeEventListener(`scroll`,this.handleScroll),window.removeEventListener(`resize`,this.handleResize),document.removeEventListener(`click`,this.handleNavigationClick)}render(){var e,t,n;let r=(e=this.componentProps.as)==null?`div`:e,i=this.componentProps,{as:a,children:o,className:f,debug:p,onActiveChange:m,onClick:h,onKeyDown:g,rootMargin:_,scrollRoot:v,smoothScroll:y,target:b,threshold:x,topMargin:S}=i,C=(0,l._)(i,[`as`,`children`,`className`,`debug`,`onActiveChange`,`onClick`,`onKeyDown`,`rootMargin`,`scrollRoot`,`smoothScroll`,`target`,`threshold`,`topMargin`]);return/*#__PURE__*/ (0,u.jsxs)(r,(0,c._)((0,s._)({},C),{ref:this.root,className:(0,d.default)(`scrollspy`,f),"data-active-id":this.store.activeId||void 0,"data-bs-root-margin":(t=this.componentProps.rootMargin)==null?void 0:t,tabIndex:(n=this.componentProps.tabIndex)==null?0:n,onClick:this.componentProps.onClick,onKeyDown:this.componentProps.onKeyDown,children:[o,/*#__PURE__*/ (0,u.jsx)(`div`,{ref:this.sentinel,className:`position-relative invisible m-0 border-0 p-0 w-0 h-0`,"aria-hidden":`true`}),this.renderDebug()]}))}constructor(...e){super(...e),(0,a._)(this,`root`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`store`,new Gc),(0,a._)(this,`entries`,[]),(0,a._)(this,`observer`,void 0),(0,a._)(this,`bottomObserver`,void 0),(0,a._)(this,`intersecting`,/* @__PURE__ */ new Set),(0,a._)(this,`atBottom`,!1),(0,a._)(this,`mounted`,!1),(0,a._)(this,`sentinel`,/*#__PURE__*/ (0,m.createRef)()),(0,a._)(this,`refresh`,()=>{var e;let t=this.root.current;if(!t)return;let n=this.componentProps.target?document.querySelector(this.componentProps.target):t,r=[...(e=n==null?void 0:n.querySelectorAll(`a[href^="#"]`))==null?[]:e];this.entries=r.flatMap(e=>{var t;let n=(t=e.getAttribute(`href`))==null?void 0:t.slice(1);if(!n)return[];let r=decodeURIComponent(n),i=document.getElementById(r);return!i||i.hidden||i.closest(`[hidden]`)||i.getAttribute(`aria-hidden`)===`true`||getComputedStyle(i).display===`none`||getComputedStyle(i).visibility===`hidden`?[]:[{id:r,link:e,section:i}]}),this.entries.sort((e,t)=>e.section.getBoundingClientRect().top-t.section.getBoundingClientRect().top),this.rebuildObservers(),this.updateActive(),this.updateGuides()}),(0,a._)(this,`handleResize`,()=>{this.rebuildObservers(),this.updateGuides()}),(0,a._)(this,`handleScroll`,()=>this.updateGuides()),(0,a._)(this,`getRootHeight`,()=>{var e,t;return this.componentProps.scrollRoot===`window`?document.documentElement.clientHeight||window.innerHeight:(e=(t=this.root.current)==null?void 0:t.clientHeight)==null?0:e}),(0,a._)(this,`getRootMargin`,()=>{if(this.componentProps.rootMargin!=null)return this.componentProps.rootMargin;let{topMargin:e=`12%`}=this.componentProps,t=Number.parseFloat(e)||0,n=this.getRootHeight(),r=e.endsWith(`%`)?t:n?t/n*100:12;return`0px 0px -${Math.min(Math.max(100-r,0),100)}% 0px`}),(0,a._)(this,`rebuildObservers`,()=>{var e,t,n;(t=this.observer)==null||t.disconnect(),(n=this.bottomObserver)==null||n.disconnect(),this.intersecting.clear(),this.atBottom=!1;let r=this.componentProps.scrollRoot===`window`?null:this.root.current,i=new window.IntersectionObserver(e=>{if(this.mounted&&this.observer===i){for(let t of e)t.isIntersecting?this.intersecting.add(t.target):this.intersecting.delete(t.target);this.updateActive()}},{root:r,rootMargin:this.getRootMargin(),threshold:(e=this.componentProps.threshold)==null?[0]:e});this.observer=i;for(let e of new Set(this.entries.map(e=>e.section)))i.observe(e);let a=new window.IntersectionObserver(e=>{var t,n;if(!this.mounted||this.bottomObserver!==a)return;let i=(t=r==null?document.scrollingElement:r)==null?document.documentElement:t;this.atBottom=!!((n=e.at(-1))!=null&&n.isIntersecting)&&i.scrollHeight>i.clientHeight,this.updateActive(),this.updateGuides()},{root:r,threshold:[0]});this.bottomObserver=a,this.sentinel.current&&a.observe(this.sentinel.current)}),(0,a._)(this,`handleNavigationClick`,e=>{if(!this.componentProps.smoothScroll||e.defaultPrevented)return;let t=e.target instanceof Element?e.target.closest(`a[href^="#"]`):null,n=this.entries.find(e=>e.link===t);if(!t||!n)return;e.preventDefault();let r=this.root.current,{scrollRoot:i=`self`}=this.componentProps;if(i===`window`)window.scrollTo({top:window.scrollY+n.section.getBoundingClientRect().top,behavior:`smooth`});else if(r){let e=r.scrollTop+n.section.getBoundingClientRect().top-r.getBoundingClientRect().top;r.scrollTo({top:e,behavior:`smooth`})}window.history.replaceState(null,``,`#${encodeURIComponent(n.id)}`);let a=!n.section.hasAttribute(`tabindex`);a&&(n.section.tabIndex=-1),n.section.focus({preventScroll:!0}),a&&n.section.removeAttribute(`tabindex`),this.updateActive()}),(0,a._)(this,`getActivationLine`,e=>{var t;let n=this.getRootMargin().trim().split(/\s+/),r=(t=n[2])==null?n[0]:t,i=Number.parseFloat(r)||0;return e+(r.endsWith(`%`)?e*i/100:i)}),(0,a._)(this,`updateGuides`,()=>{let e=this.root.current;if(!this.componentProps.debug||!e)return this.store.setGuides(void 0);let t=e.getBoundingClientRect(),n=this.getRootHeight();this.store.setGuides({top:this.componentProps.scrollRoot===`window`?0:t.top,left:this.componentProps.scrollRoot===`window`?0:t.left,width:this.componentProps.scrollRoot===`window`?window.innerWidth:e.clientWidth,height:n,line:this.getActivationLine(n),atBottom:this.atBottom})}),(0,a._)(this,`updateActive`,()=>{var e,t,n,r,i,a;if(!this.root.current||!this.entries.length)return;let o=this.entries.at(-1),s=(e=(t=(n=this.atBottom?o:void 0)==null?[...this.entries].reverse().find(({section:e})=>this.intersecting.has(e)):n)==null?this.entries.find(e=>e.id===this.store.activeId):t)==null?this.entries[0]:e,c=new Set(this.entries.filter(e=>e.id===s.id).map(e=>e.link)),l=s.link.closest(`.nav`),u=l==null||(r=l.parentElement)==null?void 0:r.closest(`.nav`);for(;u&&u!==this.root.current;){var d;let e=[...this.entries].reverse().find(e=>e.link.closest(`.nav`)===u&&!!(e.section.compareDocumentPosition(s.section)&Node.DOCUMENT_POSITION_FOLLOWING));e&&c.add(e.link),l=u,u=(d=l.parentElement)==null?void 0:d.closest(`.nav`)}for(let{link:e}of this.entries){let t=c.has(e);e.classList.toggle(`active`,t),t?e.setAttribute(`aria-current`,`location`):e.removeAttribute(`aria-current`)}s.id!==this.store.activeId&&(this.store.setActiveId(s.id),(i=(a=this.componentProps).onActiveChange)==null||i.call(a,s.id))}),(0,a._)(this,`renderDebug`,()=>{let e=this.store.guides;if(!this.componentProps.debug||!e)return null;let{top:t,left:n,width:r,height:i,line:a,atBottom:o}=e;return/*#__PURE__*/ (0,P.createPortal)(/*#__PURE__*/ (0,u.jsxs)(`div`,{className:`position-fixed overflow-hidden pe-none`,style:{top:t,left:n,width:r,height:i,zIndex:1080},"aria-hidden":`true`,"data-scrollspy-debug":!0,children:[/*#__PURE__*/ (0,u.jsx)(`div`,{className:`position-absolute start-0 end-0 border-top border-danger border-2`,style:{top:a,borderTopStyle:`dashed`},"data-scrollspy-line":!0}),/*#__PURE__*/ (0,u.jsx)(`div`,{className:`position-absolute bottom-0 start-0 end-0 border-top border-danger`,style:{height:12,borderTop:`1px solid #dc3545`,background:o?`rgb(220 53 69 / 40%)`:`rgb(220 53 69 / 10%)`},"data-scrollspy-bottom":o?`reached`:`pending`})]}),document.body)})}},{c:[Zc,Yc]}=(0,t._)(qc,[],[p.observer],Xc),qc),Jc=class extends o._{constructor(){super(Zc),(0,a._)(this,`displayName`,`ScrollSpy`),Yc()}},(0,a._)(Jc,Kc,void 0),Jc);const Qc=L(e=>{let{as:t=`div`,direction:n=`vertical`,gap:r,className:i}=e,a=(0,l._)(e,[`as`,`direction`,`gap`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},a),{className:(0,d.default)(n===`horizontal`?`hstack`:`vstack`,r!==void 0&&`gap-${r}`,i)}))});Qc.displayName=`Stack`;const $c=(e,t)=>(0,d.default)(`stepper`,e===!0?`stepper-horizontal`:e&&`${e}:stepper-horizontal`,t),el=L(e=>{let{as:t=`ol`,horizontal:n,className:r}=e,i=(0,l._)(e,[`as`,`horizontal`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},i),{className:$c(n,r)}))});el.displayName=`Stepper`;const tl=L(e=>{let{as:t=`nav`,horizontal:n,className:r}=e,i=(0,l._)(e,[`as`,`horizontal`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},i),{className:$c(n,r)}))});tl.displayName=`StepperNav`;const nl=L(e=>{let{as:t=`li`,active:n,theme:r,className:i}=e,a=(0,l._)(e,[`as`,`active`,`theme`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},a),{className:(0,d.default)(`stepper-item`,{active:n},r&&`theme-${r}`,i)}))});nl.displayName=`StepperItem`;const rl=L(e=>{let{as:t=`a`,active:n,theme:r,className:i}=e,a=(0,l._)(e,[`as`,`active`,`theme`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},a),{className:(0,d.default)(`stepper-item`,{active:n},r&&`theme-${r}`,i)}))});rl.displayName=`StepperLink`;const il=L(e=>{let{as:t=`button`,active:n,theme:r,className:i,type:a=`button`}=e,o=(0,l._)(e,[`as`,`active`,`theme`,`className`,`type`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},o),{type:a,className:(0,d.default)(`stepper-item p-0 border-0 bg-transparent`,{active:n},r&&`theme-${r}`,i)}))});il.displayName=`StepperButton`;const al=L(e=>{let{as:t=`div`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`stepper-overflow`,n)}))});al.displayName=`StepperOverflow`;let ol;var sl,cl,ll,ul,dl,fl,pl,ml;const hl=L(e=>{let{as:t=`div`,eventKey:n,label:r,disabled:i}=e,a=(0,l._)(e,[`as`,`eventKey`,`label`,`disabled`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,s._)({},a))});hl.displayName=`Tab`;let gl;new(ol=(sl=/*#__PURE__*/ new WeakMap,cl=class extends (dl=m.Component){get componentProps(){return this.props}get tabs(){return m.Children.toArray(this.componentProps.children).filter(e=>typeof e!=`string`||e.trim()).map(e=>{if(!/*#__PURE__*/ (0,m.isValidElement)(e)||typeof e.props.eventKey!=`string`||!(`label`in e.props))throw TypeError(`Tabs children must be Tab elements.`);return e})}get selectedKey(){return(0,n._)(this,sl)}set selectedKey(e){(0,i._)(this,sl,e)}get activeKey(){var e,t,n;let r=(e=this.componentProps.activeKey)==null?this.selectedKey:e;return this.tabs.some(({props:e})=>e.eventKey===r&&!e.disabled)?r:(t=(n=this.tabs.find(({props:e})=>!e.disabled))==null?void 0:n.props.eventKey)==null?``:t}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,n=this.componentProps,{as:r,activeKey:i,className:a,defaultActiveKey:o,fade:d,onChange:f,onClick:p,onKeyDown:m,id:h,orientation:g,children:_,variant:v}=n,y=(0,l._)(n,[`as`,`activeKey`,`className`,`defaultActiveKey`,`fade`,`onChange`,`onClick`,`onKeyDown`,`id`,`orientation`,`children`,`variant`]);return/*#__PURE__*/ (0,u.jsxs)(t,(0,c._)((0,s._)({},y),{ref:this.root,id:this.componentProps.id,className:a,onClick:this.handleClick,onKeyDown:this.handleKeyDown,children:[this.renderTabs(),this.renderPanels()]}))}constructor(...e){var t,n,i,o,s;super(...e),(0,a._)(this,`root`,(ml(this),/*#__PURE__*/ (0,m.createRef)())),(0,r._)(this,sl,{writable:!0,value:fl(this,(t=(n=(i=this.componentProps.defaultActiveKey)==null?(o=this.tabs.find(({props:e})=>!e.disabled))==null?void 0:o.props.eventKey:i)==null?(s=this.tabs[0])==null?void 0:s.props.eventKey:n)==null?``:t)}),(0,a._)(this,`handleClick`,e=>{var t,n,r;if((t=(n=this.componentProps).onClick)==null||t.call(n,e),e.defaultPrevented)return;let i=e.target.closest(`[data-tab-index]`),a=i&&((r=this.tabs[Number(i.dataset.tabIndex)])==null?void 0:r.props);a&&!a.disabled&&this.activate(a.eventKey)}),(0,a._)(this,`handleKeyDown`,e=>{var t,n,r,i;if((t=(n=this.componentProps).onKeyDown)==null||t.call(n,e),e.defaultPrevented)return;let a=e.target.closest(`[data-tab-index]`),o=Number(a==null?void 0:a.dataset.tabIndex),{tabs:s}=this;if(!a||Number.isNaN(o))return;let c=this.componentProps.orientation!==`vertical`,l=c?e.key===`ArrowLeft`:e.key===`ArrowUp`,u=c?e.key===`ArrowRight`:e.key===`ArrowDown`,d=s.map(({props:e},t)=>e.disabled?-1:t).filter(e=>e>=0),f=d.indexOf(o),p=e.key===`Home`?d[0]:e.key===`End`?d.at(-1):l?d[(f-1+d.length)%d.length]:u?d[(f+1)%d.length]:void 0;if(p===void 0)return;e.preventDefault();let m=s[p];this.activate(m.props.eventKey),(i=this.root.current)==null||(r=i.querySelector(`[data-tab-index="${p}"]`))==null||r.focus()}),(0,a._)(this,`activate`,pl(this,e=>{var t,n;(t=(n=this.componentProps).onChange)==null||t.call(n,e),this.componentProps.activeKey===void 0&&(this.selectedKey=e)})),(0,a._)(this,`tabId`,e=>`${this.componentProps.id}-tab-${encodeURIComponent(e)}`),(0,a._)(this,`panelId`,e=>`${this.componentProps.id}-panel-${encodeURIComponent(e)}`),(0,a._)(this,`renderTabs`,()=>{var e;let{orientation:t=`horizontal`,variant:n=`tabs`}=this.componentProps,r=n===`list-group`;return/*#__PURE__*/ (0,u.jsx)(`div`,{className:(0,d.default)(r?`list-group`:`nav`,!r&&`nav-${n}`,t===`vertical`&&(r?`flex-column`:n===`pills`?`nav-pills-vertical`:`flex-column`)),role:`tablist`,"aria-label":(e=this.componentProps[`aria-label`])==null?`Tabs`:e,"aria-orientation":t,children:this.tabs.map(({props:e},t)=>{let n=e.eventKey===this.activeKey;return/*#__PURE__*/ (0,u.jsx)(`button`,{id:this.tabId(e.eventKey),type:`button`,role:`tab`,"data-tab-index":t,"aria-controls":this.panelId(e.eventKey),"aria-selected":n,"aria-disabled":e.disabled||void 0,tabIndex:n?0:-1,disabled:e.disabled,className:(0,d.default)(r?`list-group-item list-group-item-action`:`nav-link`,{active:n},e.disabled&&`disabled`),children:e.label},e.eventKey)})})}),(0,a._)(this,`renderPanels`,()=>{let{fade:e=!0}=this.componentProps;return/*#__PURE__*/ (0,u.jsx)(`div`,{className:`tab-content`,children:this.tabs.map(t=>{var n;let{eventKey:r,className:i}=t.props,a=r===this.activeKey;return/*#__PURE__*/ (0,m.cloneElement)(t,{key:r,id:this.panelId(r),role:`tabpanel`,"aria-labelledby":this.tabId(r),"aria-hidden":!a,tabIndex:(n=t.props.tabIndex)==null?0:n,className:(0,d.default)(`tab-pane`,{active:a,show:a&&e},!e&&`tab-pane-instant`,i),hidden:!a})})})})}},{e:[fl,pl,ml],c:[gl,ul]}=(0,t._)(cl,[[f.observable,1,`selectedKey`],[f.action,0,`activate`]],[p.observer],dl),cl),ll=class extends o._{constructor(){super(gl),(0,a._)(this,`displayName`,`Tabs`),ul()}},(0,a._)(ll,ol,void 0),ll);var _l,vl;const yl={"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`},bl=L(e=>{let{as:t=`div`,position:n=`top-end`,className:r,"aria-live":i=`polite`,"aria-atomic":a=!0}=e,o=(0,l._)(e,[`as`,`position`,`className`,`aria-live`,`aria-atomic`]),f=n===`static`;return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},o),{className:(0,d.default)(`toast-container`,!f&&`position-fixed`,!f&&`p-3`,f?`position-static`:yl[n],r),"aria-live":i,"aria-atomic":a}))});bl.displayName=`ToastContainer`;const xl=L(e=>{let{as:t=`div`,theme:n,show:r=!0,translucent:i,instant:a,role:o=`status`,className:f}=e,p=(0,l._)(e,[`as`,`theme`,`show`,`translucent`,`instant`,`role`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},p),{className:(0,d.default)(`toast`,{show:r,"toast-translucent":i,"toast-instant":a},n&&`theme-${n}`,f),role:o}))});xl.displayName=`ToastItem`;const Sl=L(e=>{let{as:t=`div`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`toast-header`,n)}))});Sl.displayName=`ToastHeader`;const Cl=L(e=>{let{as:t=`div`,className:n}=e,r=(0,l._)(e,[`as`,`className`]);return/*#__PURE__*/ (0,u.jsx)(t,(0,c._)((0,s._)({},r),{className:(0,d.default)(`toast-body`,n)}))});Cl.displayName=`ToastBody`;var wl=/*#__PURE__*/ new WeakMap,Tl=class{get messages(){return(0,n._)(this,wl)}set messages(e){(0,i._)(this,wl,e)}open(e){var t,n;let r=(t=e.id)==null?(0,O.uniqueID)():t;this.close(r);let i=Date.now(),{promise:a,resolve:o}=Promise.withResolvers(),l=e.delay===0?void 0:setTimeout(()=>this.close(r),(n=e.delay)==null?3e3:n),u=(0,c._)((0,s._)({},e),{id:r,openedAt:i,resolve:o,timer:l});return this.messages=[...this.messages,u],a}close(e){let t=this.messages.find(t=>t.id===e);if(!t)return;let{resolve:n,timer:r}=t,i=(0,l._)(t,[`resolve`,`timer`]);clearTimeout(r),n==null||n((0,c._)((0,s._)({},i),{closedAt:Date.now()})),this.messages=this.messages.filter(t=>t.id!==e)}constructor(e=O.Timestamp){(0,a._)(this,`TimeScalar`,void 0),(0,r._)(this,wl,{writable:!0,value:void 0}),(0,a._)(this,`Component`,void 0),(0,a._)(this,`renderMessage`,void 0),(0,a._)(this,`handleDismiss`,void 0),this.TimeScalar=e,(0,i._)(this,wl,(vl(this),_l(this,[]))),this.Component=(0,p.observer)(({position:e})=>/*#__PURE__*/ (0,u.jsx)(bl,{position:e,onClick:this.handleDismiss,children:this.messages.map(this.renderMessage)})),this.renderMessage=({id:e,openedAt:t,title:n,body:r,theme:i,translucent:a,instant:o,role:s,delay:c=3e3})=>{let l=!!n||c===0,d=this.TimeScalar.distanceOf(Date.now(),t).toShortString();return/*#__PURE__*/ (0,u.jsxs)(xl,{theme:i,translucent:a,instant:o,role:s,children:[l&&/*#__PURE__*/ (0,u.jsxs)(Sl,{children:[/*#__PURE__*/ (0,u.jsx)(`strong`,{className:`me-auto`,children:n}),/*#__PURE__*/ (0,u.jsx)(`small`,{children:d}),/*#__PURE__*/ (0,u.jsx)(V,{"data-toast-dismiss":e})]}),/*#__PURE__*/ (0,u.jsx)(Cl,{children:r})]},e)},this.handleDismiss=({target:e})=>{var t;if(!(e instanceof Element))return;let n=(t=e.closest(`[data-toast-dismiss]`))==null?void 0:t.dataset.toastDismiss;n&&this.close(n)},this.Component.displayName=`ToastComponent`}};({e:[_l,vl]}=(0,t._)(Tl,[[f.observable,1,`messages`],[f.action,2,`open`],[f.action,2,`close`]],[]));const El=L(e=>{let{as:t=`label`,type:n=`checkbox`,variant:r=`solid`,theme:i,name:a,value:o,checked:f,defaultChecked:p,disabled:m,required:h,size:g,inputProps:_,onChange:v,className:y,children:b}=e,x=(0,l._)(e,[`as`,`type`,`variant`,`theme`,`name`,`value`,`checked`,`defaultChecked`,`disabled`,`required`,`size`,`inputProps`,`onChange`,`className`,`children`]);return/*#__PURE__*/ (0,u.jsxs)(t,(0,c._)((0,s._)({},x),{className:(0,d.default)(`btn-check`,`btn-${r}`,i&&`theme-${i}`,g&&`btn-${g}`,y),children:[/*#__PURE__*/ (0,u.jsx)(`input`,(0,c._)((0,s._)({},_),{type:n,name:a,value:o,checked:f,defaultChecked:p,disabled:m,required:h,autoComplete:`off`,onChange:v})),b]}))});El.displayName=`ToggleButton`;var Dl=class extends m.Component{get componentProps(){return this.props}render(){var e,t;let n=this.componentProps,{as:r=`button`,target:i,attribute:a,value:o,onToggled:f,theme:p,variant:m,disabled:h}=n,g=(0,l._)(n,[`as`,`target`,`attribute`,`value`,`onToggled`,`theme`,`variant`,`disabled`]);return r===`button`?/*#__PURE__*/ (0,u.jsx)(R,(0,c._)((0,s._)({},g),{theme:p,variant:m,disabled:h,onClick:this.handleClick})):/*#__PURE__*/ (0,u.jsx)(r,(0,c._)((0,s._)({},g),{className:(0,d.default)(p&&`theme-${p}`,m&&`btn-${m}`,g.className),role:(e=g.role)==null?`button`:e,tabIndex:h?-1:(t=g.tabIndex)==null?0:t,"aria-disabled":h||void 0,onClick:this.handleClick,onKeyDown:this.handleKeyDown}))}constructor(...e){super(...e),(0,a._)(this,`handleClick`,e=>{var t,n;if((t=(n=this.componentProps).onClick)==null||t.call(n,e),e.defaultPrevented||this.componentProps.disabled)return;let{target:r,attribute:i=`class`,value:a,onToggled:o}=this.componentProps,s=r?[...document.querySelectorAll(r)]:[e.currentTarget],c=s.map(e=>{var t,n;return{element:e,attribute:(t=e.dataset.bsAttribute)==null?i:t,value:(n=e.dataset.bsValue)==null?a:n}});if(c.some(({attribute:e})=>e.toLowerCase()===`id`))throw TypeError(`Toggler cannot change the id attribute`);for(let{element:e,attribute:t,value:n}of c){if(n==null)continue;let r=String(n),i=new window.CustomEvent(`toggle.bs.toggler`,{cancelable:!0});if(e.dispatchEvent(i)){if(t===`class`)for(let t of r.split(/\s+/).filter(Boolean))e.classList.toggle(t);else e.getAttribute(t)===r?e.removeAttribute(t):e.setAttribute(t,r);e.dispatchEvent(new window.CustomEvent(`toggled.bs.toggler`))}}o==null||o(s)}),(0,a._)(this,`handleKeyDown`,e=>{var t,n;(t=(n=this.componentProps).onKeyDown)==null||t.call(n,e),e.defaultPrevented||this.componentProps.disabled||e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),e.currentTarget.click())})}};(0,a._)(Dl,`displayName`,`Toggler`),exports.Accordion=ue,exports.AccordionBody=pe,exports.AccordionHeader=fe,exports.AccordionItem=de,Object.defineProperty(exports,"AccordionToggle",{enumerable:!0,get:function(){return me}}),Object.defineProperty(exports,"Alert",{enumerable:!0,get:function(){return H}}),exports.AlertHeading=Ee,exports.AlertLink=Te,exports.Avatar=Oe,exports.AvatarImage=ke,exports.AvatarStack=Ae,exports.Badge=U,exports.Breadcrumb=Me,exports.BreadcrumbDivider=Fe,exports.BreadcrumbItem=Ne,exports.BreadcrumbLink=Pe,exports.Button=R,exports.ButtonGroup=Ie,exports.ButtonInput=ne,exports.ButtonToolbar=Le,exports.Card=Re,exports.CardBody=We,exports.CardFooter=Ge,exports.CardGroup=Ve,exports.CardHeader=Ue,exports.CardImage=ze,exports.CardImageOverlay=He,exports.CardSubtitle=Be,exports.CardText=qe,exports.CardTitle=Ke,Object.defineProperty(exports,"Carousel",{enumerable:!0,get:function(){return ft}}),exports.CarouselSlide=dt,exports.Checkbox=Wo,exports.Chip=Jo,exports.ChipDismiss=Zo,exports.ChipIcon=Yo,exports.ChipImage=Xo,exports.ChipInput=qo,exports.ChipInputLabel=$o,exports.ChipToken=Qo,exports.ClickBoundary=sn,exports.CloseButton=V,exports.CodeBlock=_r,exports.Col=Ao,Object.defineProperty(exports,"Collapse",{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(exports,"CollapseToggle",{enumerable:!0,get:function(){return Ft}}),Object.defineProperty(exports,"Combobox",{enumerable:!0,get:function(){return xs}}),exports.ComboboxGroup=vs,exports.ComboboxOption=_s,exports.Container=Oo,Object.defineProperty(exports,"Countdown",{enumerable:!0,get:function(){return Dr}}),exports.DatePicker=Ds,exports.DatePickerButton=Os,exports.DatePickerInline=ks,exports.Dialog=Pr,exports.DialogBody=Ht,exports.DialogClose=jr,exports.DialogFooter=Ut,exports.DialogHeader=Bt,exports.DialogTitle=Vt,Object.defineProperty(exports,"Drawer",{enumerable:!0,get:function(){return on}}),exports.DrawerBody=nn,exports.DrawerFooter=rn,exports.DrawerHeader=en,exports.DrawerTitle=tn,Object.defineProperty(exports,"Editor",{enumerable:!0,get:function(){return Wr}}),exports.EditorHTML=Kr,exports.FloatingPosition=Y,exports.Form=Ms,exports.FormAdornment=zo,exports.FormAdornmentIcon=Vo,exports.FormAdornmentText=Bo,exports.FormCheck=$s,exports.FormControl=Cs,exports.FormFeedback=js,exports.FormField=Ps,exports.FormFieldContent=Is,exports.FormFieldset=Ns,exports.FormFloatingLabel=Bs,exports.FormGhost=Ho,exports.FormGroup=Fs,exports.FormLabel=Ls,exports.FormLegend=Rs,exports.FormRange=tc,exports.FormSelect=Ts,exports.FormSwitch=nc,exports.FormText=As,exports.FormTextArea=ws,exports.HorizontalMarquee=qr,exports.HorizontalMarqueeBox=Jr,exports.Icon=z,exports.Image=$,exports.InputGroup=Vs,exports.InputGroupButton=Us,exports.InputGroupIgnore=Ws,exports.InputGroupMenu=Gs,exports.InputGroupText=Hs,exports.ListGroup=rc,exports.ListGroupItem=oc,exports.LiveTSX=Yr,exports.Loading=Zr,Object.defineProperty(exports,"Menu",{enumerable:!0,get:function(){return Q}}),exports.MenuDivider=ja,exports.MenuHeader=Aa,exports.MenuItem=Ta,exports.MenuItemCheck=Oa,exports.MenuItemContent=Ma,exports.MenuItemDescription=Na,exports.MenuItemIcon=Da,exports.MenuPanel=Ea,Object.defineProperty(exports,"MenuSubmenu",{enumerable:!0,get:function(){return Pa}}),exports.MenuText=ka,Object.defineProperty(exports,"MonthCalendar",{enumerable:!0,get:function(){return ki}}),exports.Nameplate=Ai,exports.NativeDialog=Wt,exports.Nav=Z,exports.NavItem=ji,exports.NavLink=Mi,Object.defineProperty(exports,"NavOverflow",{enumerable:!0,get:function(){return Oc}}),exports.Navbar=sc,exports.NavbarBrand=cc,exports.NavbarNav=lc,exports.NavbarText=uc,exports.NavbarToggler=dc,exports.OTPInput=Js,exports.OVERLAY_ARROW_POSITIONS=li,exports.OVERLAY_DIRECTIONS=ci,exports.Option=La,Object.defineProperty(exports,"OverlayBox",{enumerable:!0,get:function(){return bi}}),exports.PageItem=Ac,exports.PageLink=jc,Object.defineProperty(exports,"PageNav",{enumerable:!0,get:function(){return Wi}}),exports.PageText=Mc,exports.Pagination=kc,exports.PasswordStrength=Zs,exports.Placeholder=Nc,exports.PlaceholderAnimation=Pc,exports.PlaceholderButton=Fc,exports.Popover=ui,exports.Progress=Ic,exports.ProgressStack=Lc,exports.Radio=Qs,exports.Row=ko,exports.ScrollNav=ra,Object.defineProperty(exports,"ScrollSpy",{enumerable:!0,get:function(){return Zc}}),exports.Select=Ra,Object.defineProperty(exports,"ShareBox",{enumerable:!0,get:function(){return Xa}}),exports.Spinner=J,exports.SpinnerButton=Za,exports.SpinnerIcon=Xr,exports.Stack=Qc,exports.Stepper=el,exports.StepperButton=il,exports.StepperItem=nl,exports.StepperLink=rl,exports.StepperNav=tl,exports.StepperOverflow=al,exports.Tab=hl,exports.Table=jo,exports.TableSpinner=Qa,Object.defineProperty(exports,"Tabs",{enumerable:!0,get:function(){return gl}}),exports.TextTruncate=uo,exports.Time=fo,exports.TimeDistance=mo,exports.Timeline=ho,exports.Toast=Tl,exports.ToastBody=Cl,exports.ToastContainer=bl,exports.ToastHeader=Sl,exports.ToastItem=xl,exports.ToggleButton=El,exports.Toggler=Dl,exports.Tooltip=di,exports.TypeEcho=Do,exports.UserRankView=Po,exports.VariantColors=It,exports.VerticalMarquee=Fo,exports.ZodiacBar=Ro,exports.ZodiacSigns=Io,exports.animate=De,exports.elementToImage=Ya,exports.parser=Gr,exports.polymorphic=L,exports.text2color=Lt,exports.zodiacOf=Lo;