@xcelsior/ui-spreadsheets 1.2.2 → 1.3.0

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 (99) hide show
  1. package/.omc/state/agent-replay-0cead415-b3bd-40fd-b199-47371946c4db.jsonl +25 -0
  2. package/.omc/state/idle-notif-cooldown.json +3 -0
  3. package/.omc/state/last-tool-error.json +7 -0
  4. package/.omc/state/mission-state.json +179 -0
  5. package/.omc/state/subagent-tracking.json +116 -0
  6. package/.turbo/turbo-build.log +28 -28
  7. package/.turbo/turbo-lint.log +140 -0
  8. package/dist/index.d.mts +94 -4
  9. package/dist/index.d.ts +94 -4
  10. package/dist/index.js +2133 -1156
  11. package/dist/index.js.map +1 -1
  12. package/dist/index.mjs +2023 -1048
  13. package/dist/index.mjs.map +1 -1
  14. package/dist/styles/globals.css +156 -16
  15. package/dist/styles/globals.css.map +1 -1
  16. package/package.json +1 -1
  17. package/plans/20260330-1230-spreadsheet-features/phase-01-types-and-duplicates-hook.md +73 -0
  18. package/plans/20260330-1230-spreadsheet-features/phase-02-filter-dropdown-portal.md +90 -0
  19. package/plans/20260330-1230-spreadsheet-features/phase-03-header-overflow-menu.md +101 -0
  20. package/plans/20260330-1230-spreadsheet-features/phase-04-integration.md +193 -0
  21. package/plans/20260330-1230-spreadsheet-features/plan.md +59 -0
  22. package/src/components/ColorPickerPopover.tsx +77 -32
  23. package/src/components/ColumnHeaderActions.tsx +241 -1
  24. package/src/components/RowIndexColumnHeader.tsx +13 -17
  25. package/src/components/SelectionSummaryBar.tsx +103 -0
  26. package/src/components/Spreadsheet.stories.tsx +254 -0
  27. package/src/components/Spreadsheet.tsx +234 -189
  28. package/src/components/SpreadsheetCell.tsx +280 -42
  29. package/src/components/SpreadsheetFilterDropdown.tsx +178 -13
  30. package/src/components/SpreadsheetHeader.tsx +79 -24
  31. package/src/components/SpreadsheetSettingsModal.tsx +4 -0
  32. package/src/hooks/useSpreadsheetColumnResize.ts +143 -0
  33. package/src/hooks/useSpreadsheetDuplicates.ts +149 -0
  34. package/src/hooks/useSpreadsheetFiltering.ts +18 -1
  35. package/src/hooks/useSpreadsheetHighlighting.ts +23 -3
  36. package/src/hooks/useSpreadsheetKeyboardShortcuts.ts +16 -0
  37. package/src/hooks/useSpreadsheetPinning.ts +148 -134
  38. package/src/hooks/useSpreadsheetSelection.ts +10 -22
  39. package/src/hooks/useSpreadsheetSummary.ts +68 -0
  40. package/src/index.ts +4 -1
  41. package/src/styles/globals.css +51 -0
  42. package/src/types.ts +50 -2
  43. package/storybook-static/assets/Color-YHDXOIA2-CtQurLnT.js +1 -0
  44. package/storybook-static/assets/DocsRenderer-CFRXHY34-oxrW8Hvo.js +575 -0
  45. package/storybook-static/assets/Spreadsheet.stories-DvhhzuK4.js +1357 -0
  46. package/storybook-static/assets/chunk-XP5HYGXS-BpfKkqn7.js +1 -0
  47. package/storybook-static/assets/entry-preview-CkBGHCAN.js +2 -0
  48. package/storybook-static/assets/entry-preview-docs-ugJb6pa8.js +46 -0
  49. package/storybook-static/assets/iframe-CPp2u3vg.js +211 -0
  50. package/storybook-static/assets/index-BB9bPxRC.js +24 -0
  51. package/storybook-static/assets/index-BQFlzFLk.js +9 -0
  52. package/storybook-static/assets/index-CtvPRVHf.js +9 -0
  53. package/storybook-static/assets/index-DgH-xKnr.js +11 -0
  54. package/storybook-static/assets/index-DrFu-skq.js +6 -0
  55. package/storybook-static/assets/index-DrdPSA1J.js +240 -0
  56. package/storybook-static/assets/index-DzFBShOR.js +20 -0
  57. package/storybook-static/assets/index-v-1boR4t.js +1 -0
  58. package/storybook-static/assets/preview-B8lJiyuQ.js +34 -0
  59. package/storybook-static/assets/preview-BBWR9nbA.js +1 -0
  60. package/storybook-static/assets/preview-BWzBA1C2.js +396 -0
  61. package/storybook-static/assets/preview-Bm0S-uxO.css +1 -0
  62. package/storybook-static/assets/preview-CvbIS5ZJ.js +1 -0
  63. package/storybook-static/assets/preview-DD_OYowb.js +1 -0
  64. package/storybook-static/assets/preview-DGUiP6tS.js +7 -0
  65. package/storybook-static/assets/preview-DHQbi4pV.js +1 -0
  66. package/storybook-static/assets/preview-DwI0w3cI.js +1 -0
  67. package/storybook-static/assets/preview-DyR7iiFG.js +1 -0
  68. package/storybook-static/assets/preview-zxZ6Be2V.js +2 -0
  69. package/storybook-static/assets/react-18-Pj8skaX9.js +1 -0
  70. package/storybook-static/assets/test-utils-quxJ1Z79.js +9 -0
  71. package/storybook-static/favicon.svg +1 -0
  72. package/storybook-static/iframe.html +666 -0
  73. package/storybook-static/index.html +177 -0
  74. package/storybook-static/index.json +1 -0
  75. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  76. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  77. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  78. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  79. package/storybook-static/project.json +1 -0
  80. package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +3 -0
  81. package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js +12 -0
  82. package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +405 -0
  83. package/storybook-static/sb-addons/essentials-docs-4/manager-bundle.js +245 -0
  84. package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js +3 -0
  85. package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js +3 -0
  86. package/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js +3 -0
  87. package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js +3 -0
  88. package/storybook-static/sb-addons/interactions-10/manager-bundle.js +222 -0
  89. package/storybook-static/sb-addons/links-1/manager-bundle.js +3 -0
  90. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
  91. package/storybook-static/sb-common-assets/favicon.svg +1 -0
  92. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  93. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  94. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  95. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  96. package/storybook-static/sb-manager/globals-module-info.js +1052 -0
  97. package/storybook-static/sb-manager/globals-runtime.js +42127 -0
  98. package/storybook-static/sb-manager/globals.js +48 -0
  99. package/storybook-static/sb-manager/runtime.js +12048 -0
@@ -0,0 +1,20 @@
1
+ import{j as u,r as Uo}from"./index-BQFlzFLk.js";import{R as He,r as p,a as Xo,g as Qo}from"./index-CtvPRVHf.js";var Zo={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},za=He.createContext&&He.createContext(Zo),ht=function(){return ht=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ht.apply(this,arguments)},Fs=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Jo(e){return e&&e.map(function(t,r){return He.createElement(t.tag,ht({key:r},t.attr),Jo(t.child))})}function ae(e){return function(t){return He.createElement($s,ht({attr:ht({},e.attr)},t),Jo(e.child))}}function $s(e){var t=function(r){var n=e.attr,a=e.size,o=e.title,i=Fs(e,["attr","size","title"]),s=a||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),He.createElement("svg",ht({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,i,{className:l,style:ht(ht({color:e.color||r.color},r.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&He.createElement("title",null,o),e.children)};return za!==void 0?He.createElement(za.Consumer,null,function(r){return t(r)}):t(Zo)}function qs(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",clipRule:"evenodd"}}]})(e)}function $r(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}}]})(e)}function Ws(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M15.707 15.707a1 1 0 01-1.414 0l-5-5a1 1 0 010-1.414l5-5a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 010 1.414zm-6 0a1 1 0 01-1.414 0l-5-5a1 1 0 010-1.414l5-5a1 1 0 011.414 1.414L5.414 10l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"}}]})(e)}function Ys(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.293 15.707a1 1 0 010-1.414L14.586 10l-4.293-4.293a1 1 0 111.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z",clipRule:"evenodd"}},{tag:"path",attr:{fillRule:"evenodd",d:"M4.293 15.707a1 1 0 010-1.414L8.586 10 4.293 5.707a1 1 0 011.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z",clipRule:"evenodd"}}]})(e)}function en(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}}]})(e)}function ei(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"}}]})(e)}function ti(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}}]})(e)}function tn(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"}}]})(e)}function Hs(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z",clipRule:"evenodd"}}]})(e)}function eg(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z",clipRule:"evenodd"}}]})(e)}function tg(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"}}]})(e)}function rg(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M7 9a2 2 0 012-2h6a2 2 0 012 2v6a2 2 0 01-2 2H9a2 2 0 01-2-2V9z"}},{tag:"path",attr:{d:"M5 3a2 2 0 00-2 2v6a2 2 0 002 2V5h8a2 2 0 00-2-2H5z"}}]})(e)}function Bs(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}}]})(e)}function ng(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M10 12a2 2 0 100-4 2 2 0 000 4z"}},{tag:"path",attr:{fillRule:"evenodd",d:"M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z",clipRule:"evenodd"}}]})(e)}function ag(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3 3a1 1 0 011-1h12a1 1 0 011 1v3a1 1 0 01-.293.707L12 11.414V15a1 1 0 01-.293.707l-2 2A1 1 0 018 17v-5.586L3.293 6.707A1 1 0 013 6V3z",clipRule:"evenodd"}}]})(e)}function Gs(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"}}]})(e)}function Ks(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"}}]})(e)}function Us(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}}]})(e)}function ri(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"}}]})(e)}function og(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.707 3.293a1 1 0 010 1.414L5.414 7H11a7 7 0 017 7v2a1 1 0 11-2 0v-2a5 5 0 00-5-5H5.414l2.293 2.293a1 1 0 11-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"}}]})(e)}function ig(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M3 3a1 1 0 000 2h11a1 1 0 100-2H3zM3 7a1 1 0 000 2h5a1 1 0 000-2H3zM3 11a1 1 0 100 2h4a1 1 0 100-2H3zM13 16a1 1 0 102 0v-5.586l1.293 1.293a1 1 0 001.414-1.414l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 101.414 1.414L13 10.414V16z"}}]})(e)}function sg(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M3 3a1 1 0 000 2h11a1 1 0 100-2H3zM3 7a1 1 0 000 2h7a1 1 0 100-2H3zM3 11a1 1 0 100 2h4a1 1 0 100-2H3zM15 8a1 1 0 10-2 0v5.586l-1.293-1.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L15 13.586V8z"}}]})(e)}function lg(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z",clipRule:"evenodd"}}]})(e)}function cg(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M2 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1H3a1 1 0 01-1-1V4zM8 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1H9a1 1 0 01-1-1V4zM15 3a1 1 0 00-1 1v12a1 1 0 001 1h2a1 1 0 001-1V4a1 1 0 00-1-1h-2z"}}]})(e)}function qr(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}}]})(e)}function ug(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M5 8a1 1 0 011-1h1V6a1 1 0 012 0v1h1a1 1 0 110 2H9v1a1 1 0 11-2 0V9H6a1 1 0 01-1-1z"}},{tag:"path",attr:{fillRule:"evenodd",d:"M2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8zm6-4a4 4 0 100 8 4 4 0 000-8z",clipRule:"evenodd"}}]})(e)}function dg(e){return ae({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}},{tag:"path",attr:{fillRule:"evenodd",d:"M5 8a1 1 0 011-1h4a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"}}]})(e)}function fg(e){return ae({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}}]})(e)}function Xs(e){return ae({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"}}]})(e)}function Qs(e){return ae({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"}}]})(e)}function mg(e){return ae({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32z"}}]})(e)}function Zs(e){return ae({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"}}]})(e)}function Js(e){return ae({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"}}]})(e)}function el(e){return ae({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm60.1 106.5L224 336l60.1 93.5c5.1 8-.6 18.5-10.1 18.5h-34.9c-4.4 0-8.5-2.4-10.6-6.3C208.9 405.5 192 373 192 373c-6.4 14.8-10 20-36.6 68.8-2.1 3.9-6.1 6.3-10.5 6.3H110c-9.5 0-15.2-10.5-10.1-18.5l60.3-93.5-60.3-93.5c-5.2-8 .6-18.5 10.1-18.5h34.8c4.4 0 8.5 2.4 10.6 6.3 26.1 48.8 20 33.6 36.6 68.5 0 0 6.1-11.7 36.6-68.5 2.1-3.9 6.2-6.3 10.6-6.3H274c9.5-.1 15.2 10.4 10.1 18.4zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"}}]})(e)}function tl(e){return ae({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M181.9 256.1c-5-16-4.9-46.9-2-46.9 8.4 0 7.6 36.9 2 46.9zm-1.7 47.2c-7.7 20.2-17.3 43.3-28.4 62.7 18.3-7 39-17.2 62.9-21.9-12.7-9.6-24.9-23.4-34.5-40.8zM86.1 428.1c0 .8 13.2-5.4 34.9-40.2-6.7 6.3-29.1 24.5-34.9 40.2zM248 160h136v328c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V24C0 10.7 10.7 0 24 0h200v136c0 13.2 10.8 24 24 24zm-8 171.8c-20-12.2-33.3-29-42.7-53.8 4.5-18.5 11.6-46.6 6.2-64.2-4.7-29.4-42.4-26.5-47.8-6.8-5 18.3-.4 44.1 8.1 77-11.6 27.6-28.7 64.6-40.8 85.8-.1 0-.1.1-.2.1-27.1 13.9-73.6 44.5-54.5 68 5.6 6.9 16 10 21.5 10 17.9 0 35.7-18 61.1-61.8 25.8-8.5 54.1-19.1 79-23.2 21.7 11.8 47.1 19.5 64 19.5 29.2 0 31.2-32 19.7-43.4-13.9-13.6-54.3-9.7-73.6-7.2zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-74.1 255.3c4.1-2.7-2.5-11.9-42.8-9 37.1 15.8 42.8 9 42.8 9z"}}]})(e)}function rl(e){return ae({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm57.1 120H305c7.7 0 13.4 7.1 11.7 14.7l-38 168c-1.2 5.5-6.1 9.3-11.7 9.3h-38c-5.5 0-10.3-3.8-11.6-9.1-25.8-103.5-20.8-81.2-25.6-110.5h-.5c-1.1 14.3-2.4 17.4-25.6 110.5-1.3 5.3-6.1 9.1-11.6 9.1H117c-5.6 0-10.5-3.9-11.7-9.4l-37.8-168c-1.7-7.5 4-14.6 11.7-14.6h24.5c5.7 0 10.7 4 11.8 9.7 15.6 78 20.1 109.5 21 122.2 1.6-10.2 7.3-32.7 29.4-122.7 1.3-5.4 6.1-9.1 11.7-9.1h29.1c5.6 0 10.4 3.8 11.7 9.2 24 100.4 28.8 124 29.6 129.4-.2-11.2-2.6-17.8 21.6-129.2 1-5.6 5.9-9.5 11.5-9.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"}}]})(e)}function nl(e){return ae({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"}}]})(e)}function Fa(e){return ae({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"}}]})(e)}function hg(e){return ae({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 368c-26.7 0-53.1-4.1-78.4-12.1l-22.7-7.2-19.5 13.8c-14.3 10.1-33.9 21.4-57.5 29 7.3-12.1 14.4-25.7 19.9-40.2l10.6-28.1-20.6-21.8C69.7 314.1 48 282.2 48 240c0-88.2 93.3-160 208-160s208 71.8 208 160-93.3 160-208 160z"}}]})(e)}function ni(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=ni(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function al(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=ni(e))&&(n&&(n+=" "),n+=t);return n}const ia="-",ol=e=>{const t=sl(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const s=i.split(ia);return s[0]===""&&s.length!==1&&s.shift(),ai(s,t)||il(i)},getConflictingClassGroupIds:(i,s)=>{const l=r[i]||[];return s&&n[i]?[...l,...n[i]]:l}}},ai=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?ai(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(ia);return(i=t.validators.find(({validator:s})=>s(o)))==null?void 0:i.classGroupId},$a=/^\[(.+)\]$/,il=e=>{if($a.test(e)){const t=$a.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},sl=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return cl(Object.entries(e.classGroups),r).forEach(([o,i])=>{Rn(i,n,o,t)}),n},Rn=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:qa(t,a);o.classGroupId=r;return}if(typeof a=="function"){if(ll(a)){Rn(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([o,i])=>{Rn(i,qa(t,o),r,n)})})},qa=(e,t)=>{let r=e;return t.split(ia).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},ll=e=>e.isThemeGetter,cl=(e,t)=>t?e.map(([r,n])=>{const a=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,s])=>[t+i,s])):o);return[r,a]}):e,ul=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const a=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=n.get(o))!==void 0)return a(o,i),i},set(o,i){r.has(o)?r.set(o,i):a(o,i)}}},oi="!",dl=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,a=t[0],o=t.length,i=s=>{const l=[];let c=0,d=0,m;for(let y=0;y<s.length;y++){let k=s[y];if(c===0){if(k===a&&(n||s.slice(y,y+o)===t)){l.push(s.slice(d,y)),d=y+o;continue}if(k==="/"){m=y;continue}}k==="["?c++:k==="]"&&c--}const h=l.length===0?s:s.substring(d),f=h.startsWith(oi),b=f?h.substring(1):h,v=m&&m>d?m-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:b,maybePostfixModifierPosition:v}};return r?s=>r({className:s,parseClassName:i}):i},fl=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},ml=e=>({cache:ul(e.cacheSize),parseClassName:dl(e),...ol(e)}),hl=/\s+/,gl=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,o=[],i=e.trim().split(hl);let s="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:d,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:f}=r(c);let b=!!f,v=n(b?h.substring(0,f):h);if(!v){if(!b){s=c+(s.length>0?" "+s:s);continue}if(v=n(h),!v){s=c+(s.length>0?" "+s:s);continue}b=!1}const y=fl(d).join(":"),k=m?y+oi:y,N=k+v;if(o.includes(N))continue;o.push(N);const w=a(v,b);for(let R=0;R<w.length;++R){const _=w[R];o.push(k+_)}s=c+(s.length>0?" "+s:s)}return s};function pl(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ii(t))&&(n&&(n+=" "),n+=r);return n}const ii=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=ii(e[n]))&&(r&&(r+=" "),r+=t);return r};function bl(e,...t){let r,n,a,o=i;function i(l){const c=t.reduce((d,m)=>m(d),e());return r=ml(c),n=r.cache.get,a=r.cache.set,o=s,s(l)}function s(l){const c=n(l);if(c)return c;const d=gl(l,r);return a(l,d),d}return function(){return o(pl.apply(null,arguments))}}const ve=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},si=/^\[(?:([a-z-]+):)?(.+)\]$/i,vl=/^\d+\/\d+$/,yl=new Set(["px","full","screen"]),xl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wl=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,kl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Nl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ml=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,tt=e=>jt(e)||yl.has(e)||vl.test(e),lt=e=>zt(e,"length",jl),jt=e=>!!e&&!Number.isNaN(Number(e)),rn=e=>zt(e,"number",jt),Ht=e=>!!e&&Number.isInteger(Number(e)),Cl=e=>e.endsWith("%")&&jt(e.slice(0,-1)),ne=e=>si.test(e),ct=e=>xl.test(e),Sl=new Set(["length","size","percentage"]),Rl=e=>zt(e,Sl,li),_l=e=>zt(e,"position",li),Dl=new Set(["image","url"]),Tl=e=>zt(e,Dl,El),Il=e=>zt(e,"",Pl),Bt=()=>!0,zt=(e,t,r)=>{const n=si.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},jl=e=>wl.test(e)&&!kl.test(e),li=()=>!1,Pl=e=>Nl.test(e),El=e=>Ml.test(e),Ol=()=>{const e=ve("colors"),t=ve("spacing"),r=ve("blur"),n=ve("brightness"),a=ve("borderColor"),o=ve("borderRadius"),i=ve("borderSpacing"),s=ve("borderWidth"),l=ve("contrast"),c=ve("grayscale"),d=ve("hueRotate"),m=ve("invert"),h=ve("gap"),f=ve("gradientColorStops"),b=ve("gradientColorStopPositions"),v=ve("inset"),y=ve("margin"),k=ve("opacity"),N=ve("padding"),w=ve("saturate"),R=ve("scale"),_=ve("sepia"),I=ve("skew"),j=ve("space"),E=ve("translate"),z=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",ne,t],A=()=>[ne,t],O=()=>["",tt,lt],x=()=>["auto",jt,ne],C=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],S=()=>["solid","dashed","dotted","double","none"],M=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],g=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",ne],T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[jt,ne];return{cacheSize:500,separator:":",theme:{colors:[Bt],spacing:[tt,lt],blur:["none","",ct,ne],brightness:L(),borderColor:[e],borderRadius:["none","","full",ct,ne],borderSpacing:A(),borderWidth:O(),contrast:L(),grayscale:D(),hueRotate:L(),invert:D(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Cl,lt],inset:V(),margin:V(),opacity:L(),padding:A(),saturate:L(),scale:L(),sepia:D(),skew:L(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",ne]}],container:["container"],columns:[{columns:[ct]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...C(),ne]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ht,ne]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ne]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",Ht,ne]}],"grid-cols":[{"grid-cols":[Bt]}],"col-start-end":[{col:["auto",{span:["full",Ht,ne]},ne]}],"col-start":[{"col-start":x()}],"col-end":[{"col-end":x()}],"grid-rows":[{"grid-rows":[Bt]}],"row-start-end":[{row:["auto",{span:[Ht,ne]},ne]}],"row-start":[{"row-start":x()}],"row-end":[{"row-end":x()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ne]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ne]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...g()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...g(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...g(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[N]}],px:[{px:[N]}],py:[{py:[N]}],ps:[{ps:[N]}],pe:[{pe:[N]}],pt:[{pt:[N]}],pr:[{pr:[N]}],pb:[{pb:[N]}],pl:[{pl:[N]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ne,t]}],"min-w":[{"min-w":[ne,t,"min","max","fit"]}],"max-w":[{"max-w":[ne,t,"none","full","min","max","fit","prose",{screen:[ct]},ct]}],h:[{h:[ne,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ne,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ne,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ne,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ct,lt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",rn]}],"font-family":[{font:[Bt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ne]}],"line-clamp":[{"line-clamp":["none",jt,rn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",tt,ne]}],"list-image":[{"list-image":["none",ne]}],"list-style-type":[{list:["none","disc","decimal",ne]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...S(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",tt,lt]}],"underline-offset":[{"underline-offset":["auto",tt,ne]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...C(),_l]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Rl]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Tl]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...S(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:S()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...S()]}],"outline-offset":[{"outline-offset":[tt,ne]}],"outline-w":[{outline:[tt,lt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[tt,lt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ct,Il]}],"shadow-color":[{shadow:[Bt]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...M(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":M()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ct,ne]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[m]}],saturate:[{saturate:[w]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ne]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",ne]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",ne]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[Ht,ne]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ne]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ne]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ne]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[tt,lt,rn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Al=bl(Ol);function ge(e,t){const r=t.split(".");let n=e;for(const a of r){if(typeof n=="boolean"||typeof n=="string")return n;if(n==null||typeof n!="object")return;n=n[a]}return n}function Vl(e){const{theme:t,clearTheme:r,applyTheme:n,...a}=e;return a}function Fe(e,t){let r=Vl(e);return t&&(r={...t,...e}),r}const pt={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};pt.defaultMerge;function Ll(e,t){return t}function zl(e,t){return e.filter(r=>r!==void 0)}var Wa;(function(e){e[e.NOT=0]="NOT",e[e.RECORD=1]="RECORD",e[e.ARRAY=2]="ARRAY",e[e.SET=3]="SET",e[e.MAP=4]="MAP",e[e.OTHER=5]="OTHER"})(Wa||(Wa={}));function Ya(e){return typeof e!="object"||e===null?0:Array.isArray(e)?2:ql(e)?1:e instanceof Set?3:e instanceof Map?4:5}function Fl(e){const t=new Set;for(const r of e)for(const n of[...Object.keys(r),...Object.getOwnPropertySymbols(r)])t.add(n);return t}function $l(e,t){return typeof e=="object"&&Object.prototype.propertyIsEnumerable.call(e,t)}function ci(e){var n;let t=0,r=(n=e[0])==null?void 0:n[Symbol.iterator]();return{[Symbol.iterator](){return{next(){var a;do{if(r===void 0)return{done:!0,value:void 0};const o=r.next();if(o.done===!0){t+=1,r=(a=e[t])==null?void 0:a[Symbol.iterator]();continue}return{done:!1,value:o.value}}while(!0)}}}}}const Ha=["[object Object]","[object Module]"];function ql(e){if(!Ha.includes(Object.prototype.toString.call(e)))return!1;const{constructor:t}=e;if(t===void 0)return!0;const r=t.prototype;return!(r===null||typeof r!="object"||!Ha.includes(Object.prototype.toString.call(r))||!r.hasOwnProperty("isPrototypeOf"))}function Wl(e,t,r){const n={};for(const a of Fl(e)){const o=[];for(const l of e)$l(l,a)&&o.push(l[a]);if(o.length===0)continue;const i=t.metaDataUpdater(r,{key:a,parents:e}),s=di(o,t,i);s!==pt.skip&&(a==="__proto__"?Object.defineProperty(n,a,{value:s,configurable:!0,enumerable:!0,writable:!0}):n[a]=s)}return n}function Yl(e){return e.flat()}function Hl(e){return new Set(ci(e))}function Bl(e){return new Map(ci(e))}function Gl(e){return e.at(-1)}const fr={mergeRecords:Wl,mergeArrays:Yl,mergeSets:Hl,mergeMaps:Bl,mergeOthers:Gl};function Kl(...e){return ui({})(...e)}function ui(e,t){const r=Ul(e,n);function n(...a){return di(a,r,t)}return n}function Ul(e,t){return{defaultMergeFunctions:fr,mergeFunctions:{...fr,...Object.fromEntries(Object.entries(e).filter(([r,n])=>Object.hasOwn(fr,r)).map(([r,n])=>n===!1?[r,fr.mergeOthers]:[r,n]))},metaDataUpdater:e.metaDataUpdater??Ll,deepmerge:t,useImplicitDefaultMerging:e.enableImplicitDefaultMerging??!1,filterValues:e.filterValues===!1?void 0:e.filterValues??zl,actions:pt}}function di(e,t,r){var o;const n=((o=t.filterValues)==null?void 0:o.call(t,e,r))??e;if(n.length===0)return;if(n.length===1)return nn(n,t,r);const a=Ya(n[0]);if(a!==0&&a!==5){for(let i=1;i<n.length;i++)if(Ya(n[i])!==a)return nn(n,t,r)}switch(a){case 1:return Xl(n,t,r);case 2:return Ql(n,t,r);case 3:return Zl(n,t,r);case 4:return Jl(n,t,r);default:return nn(n,t,r)}}function Xl(e,t,r){const n=t.mergeFunctions.mergeRecords(e,t,r);return n===pt.defaultMerge||t.useImplicitDefaultMerging&&n===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,r):n}function Ql(e,t,r){const n=t.mergeFunctions.mergeArrays(e,t,r);return n===pt.defaultMerge||t.useImplicitDefaultMerging&&n===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):n}function Zl(e,t,r){const n=t.mergeFunctions.mergeSets(e,t,r);return n===pt.defaultMerge||t.useImplicitDefaultMerging&&n===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):n}function Jl(e,t,r){const n=t.mergeFunctions.mergeMaps(e,t,r);return n===pt.defaultMerge||t.useImplicitDefaultMerging&&n===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):n}function nn(e,t,r){const n=t.mergeFunctions.mergeOthers(e,t,r);return n===pt.defaultMerge||t.useImplicitDefaultMerging&&n===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):n}function wr(e){var t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?wr(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:wr(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?wr(n):n;return r}return e}const sa={dark:void 0,prefix:void 0,version:void 0};function ec(){return sa.dark}function fi(){return sa.prefix}function mi(){return sa.version}function tc(e){return ui({mergeOthers:(t,r)=>{if(t.some(n=>typeof n=="string")){const n=t.filter(i=>typeof i=="string"),a=new Set,o=[];for(const i of n){const s=[...new Set(i.split(/\s+/))];o.push(s.filter(l=>!a.has(l)).join(" "));for(const l of s)a.add(l)}return e(o)}return r.actions.defaultMerge}})}function _n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e))return e.length!==t.length?!1:e.every((n,a)=>_n(n,t[a]));if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const r=Object.keys(e);return r.length!==Object.keys(t).length?!1:r.every(n=>Object.prototype.hasOwnProperty.call(t,n)&&_n(e[n],t[n]))}return e!==e&&t!==t}const la="-",rc=e=>{const t=ac(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const s=i.split(la);return s[0]===""&&s.length!==1&&s.shift(),hi(s,t)||nc(i)},getConflictingClassGroupIds:(i,s)=>{const l=r[i]||[];return s&&n[i]?[...l,...n[i]]:l}}},hi=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?hi(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(la);return(i=t.validators.find(({validator:s})=>s(o)))==null?void 0:i.classGroupId},Ba=/^\[(.+)\]$/,nc=e=>{if(Ba.test(e)){const t=Ba.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ac=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const a in r)Dn(r[a],n,a,t);return n},Dn=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:Ga(t,a);o.classGroupId=r;return}if(typeof a=="function"){if(oc(a)){Dn(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([o,i])=>{Dn(i,Ga(t,o),r,n)})})},Ga=(e,t)=>{let r=e;return t.split(la).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},oc=e=>e.isThemeGetter,ic=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const a=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=n.get(o))!==void 0)return a(o,i),i},set(o,i){r.has(o)?r.set(o,i):a(o,i)}}},Tn="!",In=":",sc=In.length,lc=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=a=>{const o=[];let i=0,s=0,l=0,c;for(let b=0;b<a.length;b++){let v=a[b];if(i===0&&s===0){if(v===In){o.push(a.slice(l,b)),l=b+sc;continue}if(v==="/"){c=b;continue}}v==="["?i++:v==="]"?i--:v==="("?s++:v===")"&&s--}const d=o.length===0?a:a.substring(l),m=cc(d),h=m!==d,f=c&&c>l?c-l:void 0;return{modifiers:o,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:f}};if(t){const a=t+In,o=n;n=i=>i.startsWith(a)?o(i.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const a=n;n=o=>r({className:o,parseClassName:a})}return n},cc=e=>e.endsWith(Tn)?e.substring(0,e.length-1):e.startsWith(Tn)?e.substring(1):e,uc=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const a=[];let o=[];return n.forEach(i=>{i[0]==="["||t[i]?(a.push(...o.sort(),i),o=[]):o.push(i)}),a.push(...o.sort()),a}},dc=e=>({cache:ic(e.cacheSize),parseClassName:lc(e),sortModifiers:uc(e),...rc(e)}),fc=/\s+/,mc=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:o}=t,i=[],s=e.trim().split(fc);let l="";for(let c=s.length-1;c>=0;c-=1){const d=s[c],{isExternal:m,modifiers:h,hasImportantModifier:f,baseClassName:b,maybePostfixModifierPosition:v}=r(d);if(m){l=d+(l.length>0?" "+l:l);continue}let y=!!v,k=n(y?b.substring(0,v):b);if(!k){if(!y){l=d+(l.length>0?" "+l:l);continue}if(k=n(b),!k){l=d+(l.length>0?" "+l:l);continue}y=!1}const N=o(h).join(":"),w=f?N+Tn:N,R=w+k;if(i.includes(R))continue;i.push(R);const _=a(k,y);for(let I=0;I<_.length;++I){const j=_[I];i.push(w+j)}l=d+(l.length>0?" "+l:l)}return l};function hc(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=gi(t))&&(n&&(n+=" "),n+=r);return n}const gi=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=gi(e[n]))&&(r&&(r+=" "),r+=t);return r};function Ka(e,...t){let r,n,a,o=i;function i(l){const c=t.reduce((d,m)=>m(d),e());return r=dc(c),n=r.cache.get,a=r.cache.set,o=s,s(l)}function s(l){const c=n(l);if(c)return c;const d=mc(l,r);return a(l,d),d}return function(){return o(hc.apply(null,arguments))}}const Re=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},pi=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bi=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gc=/^\d+\/\d+$/,pc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dt=e=>gc.test(e),se=e=>!!e&&!Number.isNaN(Number(e)),xt=e=>!!e&&Number.isInteger(Number(e)),Ua=e=>e.endsWith("%")&&se(e.slice(0,-1)),ut=e=>pc.test(e),wc=()=>!0,kc=e=>bc.test(e)&&!vc.test(e),ca=()=>!1,Nc=e=>yc.test(e),Mc=e=>xc.test(e),Cc=e=>!q(e)&&!W(e),Sc=e=>Ft(e,xi,ca),q=e=>pi.test(e),wt=e=>Ft(e,wi,kc),an=e=>Ft(e,Vc,se),Rc=e=>Ft(e,vi,ca),_c=e=>Ft(e,yi,Mc),Dc=e=>Ft(e,ca,Nc),W=e=>bi.test(e),mr=e=>$t(e,wi),Tc=e=>$t(e,Lc),Ic=e=>$t(e,vi),jc=e=>$t(e,xi),Pc=e=>$t(e,yi),Ec=e=>$t(e,zc,!0),Ft=(e,t,r)=>{const n=pi.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},$t=(e,t,r=!1)=>{const n=bi.exec(e);return n?n[1]?t(n[1]):r:!1},vi=e=>e==="position",Oc=new Set(["image","url"]),yi=e=>Oc.has(e),Ac=new Set(["length","size","percentage"]),xi=e=>Ac.has(e),wi=e=>e==="length",Vc=e=>e==="number",Lc=e=>e==="family-name",zc=e=>e==="shadow",Xa=()=>{const e=Re("color"),t=Re("font"),r=Re("text"),n=Re("font-weight"),a=Re("tracking"),o=Re("leading"),i=Re("breakpoint"),s=Re("container"),l=Re("spacing"),c=Re("radius"),d=Re("shadow"),m=Re("inset-shadow"),h=Re("drop-shadow"),f=Re("blur"),b=Re("perspective"),v=Re("aspect"),y=Re("ease"),k=Re("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],I=()=>[Dt,"px","full","auto",W,q,l],j=()=>[xt,"none","subgrid",W,q],E=()=>["auto",{span:["full",xt,W,q]},W,q],z=()=>[xt,"auto",W,q],P=()=>["auto","min","max","fr",W,q],V=()=>[W,q,l],A=()=>["start","end","center","between","around","evenly","stretch","baseline"],O=()=>["start","end","center","stretch"],x=()=>[W,q,l],C=()=>["px",...x()],S=()=>["px","auto",...x()],M=()=>[Dt,"auto","px","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",W,q,l],g=()=>[e,W,q],D=()=>[Ua,wt],T=()=>["","none","full",c,W,q],L=()=>["",se,mr,wt],$=()=>["solid","dashed","dotted","double"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["","none",f,W,q],U=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W,q],X=()=>["none",se,W,q],H=()=>["none",se,W,q],ee=()=>[se,W,q],Z=()=>[Dt,"full","px",W,q,l];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ut],breakpoint:[ut],color:[wc],container:[ut],"drop-shadow":[ut],ease:["in","out","in-out"],font:[Cc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ut],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ut],shadow:[ut],spacing:[se],text:[ut],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Dt,q,W,v]}],container:["container"],columns:[{columns:[se,q,W,s]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...w(),q,W]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[xt,"auto",W,q]}],basis:[{basis:[Dt,"full","auto",W,q,s,l]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[se,Dt,"auto","initial","none",q]}],grow:[{grow:["",se,W,q]}],shrink:[{shrink:["",se,W,q]}],order:[{order:[xt,"first","last","none",W,q]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...O(),"baseline"]}],"align-self":[{self:["auto",...O(),"baseline"]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],w:[{w:[s,"screen",...M()]}],"min-w":[{"min-w":[s,"screen","none",...M()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...M()]}],h:[{h:["screen",...M()]}],"min-h":[{"min-h":["screen","none",...M()]}],"max-h":[{"max-h":["screen",...M()]}],"font-size":[{text:["base",r,mr,wt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,W,an]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ua,q]}],"font-family":[{font:[Tc,q,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,W,q]}],"line-clamp":[{"line-clamp":[se,"none",W,an]}],leading:[{leading:[W,q,o,l]}],"list-image":[{"list-image":["none",W,q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",W,q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:g()}],"text-color":[{text:g()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:[se,"from-font","auto",W,wt]}],"text-decoration-color":[{decoration:g()}],"underline-offset":[{"underline-offset":[se,"auto",W,q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:["px",...x()]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W,q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W,q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...w(),Ic,Rc]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",jc,Sc]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},xt,W,q],radial:["",W,q],conic:[xt,W,q]},Pc,_c]}],"bg-color":[{bg:g()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:g()}],"gradient-via":[{via:g()}],"gradient-to":[{to:g()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$(),"hidden","none"]}],"divide-style":[{divide:[...$(),"hidden","none"]}],"border-color":[{border:g()}],"border-color-x":[{"border-x":g()}],"border-color-y":[{"border-y":g()}],"border-color-s":[{"border-s":g()}],"border-color-e":[{"border-e":g()}],"border-color-t":[{"border-t":g()}],"border-color-r":[{"border-r":g()}],"border-color-b":[{"border-b":g()}],"border-color-l":[{"border-l":g()}],"divide-color":[{divide:g()}],"outline-style":[{outline:[...$(),"none","hidden"]}],"outline-offset":[{"outline-offset":[se,W,q]}],"outline-w":[{outline:["",se,mr,wt]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",d,Ec,Dc]}],"shadow-color":[{shadow:g()}],"inset-shadow":[{"inset-shadow":["none",W,q,m]}],"inset-shadow-color":[{"inset-shadow":g()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:g()}],"ring-offset-w":[{"ring-offset":[se,wt]}],"ring-offset-color":[{"ring-offset":g()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":g()}],opacity:[{opacity:[se,W,q]}],"mix-blend":[{"mix-blend":[...F(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none",W,q]}],blur:[{blur:Q()}],brightness:[{brightness:[se,W,q]}],contrast:[{contrast:[se,W,q]}],"drop-shadow":[{"drop-shadow":["","none",h,W,q]}],grayscale:[{grayscale:["",se,W,q]}],"hue-rotate":[{"hue-rotate":[se,W,q]}],invert:[{invert:["",se,W,q]}],saturate:[{saturate:[se,W,q]}],sepia:[{sepia:["",se,W,q]}],"backdrop-filter":[{"backdrop-filter":["","none",W,q]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[se,W,q]}],"backdrop-contrast":[{"backdrop-contrast":[se,W,q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",se,W,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[se,W,q]}],"backdrop-invert":[{"backdrop-invert":["",se,W,q]}],"backdrop-opacity":[{"backdrop-opacity":[se,W,q]}],"backdrop-saturate":[{"backdrop-saturate":[se,W,q]}],"backdrop-sepia":[{"backdrop-sepia":["",se,W,q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",W,q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[se,"initial",W,q]}],ease:[{ease:["linear","initial",y,W,q]}],delay:[{delay:[se,W,q]}],animate:[{animate:["none",k,W,q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,W,q]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:H()}],"scale-x":[{"scale-x":H()}],"scale-y":[{"scale-y":H()}],"scale-z":[{"scale-z":H()}],"scale-3d":["scale-3d"],skew:[{skew:ee()}],"skew-x":[{"skew-x":ee()}],"skew-y":[{"skew-y":ee()}],transform:[{transform:[W,q,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],accent:[{accent:g()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:g()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W,q]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W,q]}],fill:[{fill:["none",...g()]}],"stroke-w":[{stroke:[se,mr,wt,an]}],stroke:[{stroke:["none",...g()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},Fc=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:a={},override:o={}})=>(Ut(e,"cacheSize",t),Ut(e,"prefix",r),Ut(e,"experimentalParseClassName",n),hr(e.theme,o.theme),hr(e.classGroups,o.classGroups),hr(e.conflictingClassGroups,o.conflictingClassGroups),hr(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Ut(e,"orderSensitiveModifiers",o.orderSensitiveModifiers),gr(e.theme,a.theme),gr(e.classGroups,a.classGroups),gr(e.conflictingClassGroups,a.conflictingClassGroups),gr(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),ki(e,a,"orderSensitiveModifiers"),e),Ut=(e,t,r)=>{r!==void 0&&(e[t]=r)},hr=(e,t)=>{if(t)for(const r in t)Ut(e,r,t[r])},gr=(e,t)=>{if(t)for(const r in t)ki(e,t,r)},ki=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},$c=(e,...t)=>typeof e=="function"?Ka(Xa,e,...t):Ka(()=>Fc(Xa(),e),...t),Qa=new Map;function Ce(...e){const t=fi(),r=mi(),n=`${t}.${r}`,a=Qa.get(n);if(a)return a(...e);const o=$c({extend:{classGroups:{"bg-image":["bg-arrow-down-icon","bg-check-icon","bg-dash-icon","bg-dot-icon"],shadow:["shadow-sm-light"]}},prefix:t});return Qa.set(n,o),o(...e)}function Ye(...e){return qc(()=>Wc(...e),e)}function qc(e,t){const r=p.useRef(),n=p.useRef();return(!r.current||!_n(r.current,t))&&(r.current=t,n.current=e()),n.current}function Wc([e,...t],r,n){const a=ec(),o=fi(),i=mi(),s=t!=null&&t.length?t==null?void 0:t.filter(h=>h!==void 0):void 0,l=r!=null&&r.length?r==null?void 0:r.filter(h=>h!==void 0):void 0,c=n!=null&&n.length?n==null?void 0:n.filter(h=>h!==void 0):void 0,d=l!=null&&l.length||a===!1||i===4||o?wr(e):e;if(l!=null&&l.length){const h=jn(d,!1);let f=!1;for(const b of l)b&&(f=!0),Yc(h,b);f&&Bc(d,h)}let m=d;if(s!=null&&s.length&&(m=tc(Ce)(d,...s)),c!=null&&c.length&&(s!=null&&s.length)){const h=jn(d,"merge");let f=!1;for(const b of c)b!=="merge"&&(f=!0),Hc(h,b);f&&Gc(m,Kl(d,...t),h)}return m}function Yc(e,t){function r(n,a){if(typeof a=="boolean")if(typeof n=="object"&&n!==null)for(const o in n)n[o]=r(n[o],a);else return a;if(typeof a=="object"&&a!==null)for(const o in a)n[o]=r(n[o],a[o]);return n}r(e,t)}function Hc(e,t){function r(n,a){if(typeof a=="string")if(typeof n=="object"&&n!==null)for(const o in n)n[o]=r(n[o],a);else return a;if(typeof a=="object"&&a!==null)for(const o in a)n[o]=r(n[o],a[o]);return n}r(e,t)}function Bc(e,t){function r(n,a){if(a===!0)if(typeof n=="object"&&n!==null)for(const o in n)n[o]=r(n[o],a);else return"";if(typeof a=="object"&&a!==null)for(const o in a)n[o]=r(n[o],a[o]);return n}r(e,t)}function Gc(e,t,r){function n(a,o,i){if(i==="replace")if(typeof a=="object"&&a!==null)for(const s in a)a[s]=n(a[s],o[s],i);else return o;if(typeof i=="object"&&i!==null)for(const s in i)a[s]=n(a[s],o[s],i[s]);return a}n(e,t,r)}function jn(e,t){if(e===null||typeof e!="object")return t;const r={};for(const n in e)r[n]=jn(e[n],t);return r}const ua=p.forwardRef((e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",stroke:"currentColor",strokeWidth:0,viewBox:"0 0 20 20",ref:t,...e,children:u.jsx("path",{fillRule:"evenodd",stroke:"none",d:"M5.293 7.293a1 1 0 0 1 1.414 0L10 10.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 0-1.414z",clipRule:"evenodd"})}));ua.displayName="ChevronDownIcon";const Kc=p.createContext(void 0);function $e(){return p.useContext(Kc)??{}}const da=p.forwardRef(({children:e,as:t,href:r,type:n="button",...a},o)=>{const i=t||(r?"a":"button");return p.createElement(i,{ref:o,href:r,type:n,...a},e)});da.displayName="ButtonBase";const Uc=p.createContext(void 0);function Xc(){return p.useContext(Uc)}const Qc={base:"relative flex items-center justify-center rounded-lg text-center font-medium focus:outline-none focus:ring-4",disabled:"pointer-events-none opacity-50",fullSized:"w-full",grouped:"rounded-none border-l-0 first:rounded-s-lg first:border-l last:rounded-e-lg focus:ring-2",pill:"rounded-full",size:{xs:"h-8 px-3 text-xs",sm:"h-9 px-3 text-sm",md:"h-10 px-5 text-sm",lg:"h-12 px-5 text-base",xl:"h-[52px] px-6 text-base"},color:{default:"bg-primary-700 text-white hover:bg-primary-800 focus:ring-primary-300 dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800",alternative:"border border-gray-200 bg-white text-gray-900 hover:bg-gray-100 hover:text-primary-700 focus:ring-gray-100 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700",blue:"bg-blue-700 text-white hover:bg-blue-800 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",cyan:"bg-cyan-700 text-white hover:bg-cyan-800 focus:ring-cyan-300 dark:bg-cyan-600 dark:hover:bg-cyan-700 dark:focus:ring-cyan-800",dark:"bg-gray-800 text-white hover:bg-gray-900 focus:ring-gray-300 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-700",gray:"bg-gray-700 text-white hover:bg-gray-800 focus:ring-gray-300 dark:bg-gray-600 dark:hover:bg-gray-700 dark:focus:ring-gray-800",green:"bg-green-700 text-white hover:bg-green-800 focus:ring-green-300 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800",indigo:"bg-indigo-700 text-white hover:bg-indigo-800 focus:ring-indigo-300 dark:bg-indigo-600 dark:hover:bg-indigo-700 dark:focus:ring-indigo-800",light:"border border-gray-300 bg-white text-gray-900 hover:bg-gray-100 focus:ring-gray-100 dark:border-gray-600 dark:bg-gray-800 dark:text-white dark:hover:border-gray-600 dark:hover:bg-gray-700 dark:focus:ring-gray-700",lime:"bg-lime-700 text-white hover:bg-lime-800 focus:ring-lime-300 dark:bg-lime-600 dark:hover:bg-lime-700 dark:focus:ring-lime-800",pink:"bg-pink-700 text-white hover:bg-pink-800 focus:ring-pink-300 dark:bg-pink-600 dark:hover:bg-pink-700 dark:focus:ring-pink-800",purple:"bg-purple-700 text-white hover:bg-purple-800 focus:ring-purple-300 dark:bg-purple-600 dark:hover:bg-purple-700 dark:focus:ring-purple-800",red:"bg-red-700 text-white hover:bg-red-800 focus:ring-red-300 dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-800",teal:"bg-teal-700 text-white hover:bg-teal-800 focus:ring-teal-300 dark:bg-teal-600 dark:hover:bg-teal-700 dark:focus:ring-teal-800",yellow:"bg-yellow-400 text-white hover:bg-yellow-500 focus:ring-yellow-300 dark:bg-yellow-600 dark:hover:bg-yellow-400 dark:focus:ring-yellow-900"},outlineColor:{default:"border border-primary-700 text-primary-700 hover:border-primary-800 hover:bg-primary-800 hover:text-white focus:ring-primary-300 dark:border-primary-600 dark:text-primary-500 dark:hover:border-primary-700 dark:hover:bg-primary-700 dark:hover:text-white dark:focus:ring-primary-800",blue:"border border-blue-700 text-blue-700 hover:border-blue-800 hover:bg-blue-800 hover:text-white focus:ring-blue-300 dark:border-blue-500 dark:text-blue-500 dark:hover:border-blue-700 dark:hover:bg-blue-700 dark:hover:text-white dark:focus:ring-blue-800",cyan:"border border-cyan-700 text-cyan-700 hover:border-cyan-800 hover:bg-cyan-800 hover:text-white focus:ring-cyan-300 dark:border-cyan-500 dark:text-cyan-500 dark:hover:border-cyan-700 dark:hover:bg-cyan-700 dark:hover:text-white dark:focus:ring-cyan-800",dark:"border border-gray-800 text-gray-800 hover:border-gray-900 hover:bg-gray-900 hover:text-white focus:ring-gray-300 dark:border-gray-600 dark:text-gray-400 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:ring-gray-800",gray:"border border-gray-700 text-gray-700 hover:border-gray-800 hover:bg-gray-800 hover:text-white focus:ring-gray-300 dark:border-gray-600 dark:text-gray-400 dark:hover:border-gray-700 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-800",green:"border border-green-700 text-green-700 hover:border-green-800 hover:bg-green-800 hover:text-white focus:ring-green-300 dark:border-green-600 dark:text-green-500 dark:hover:border-green-700 dark:hover:bg-green-700 dark:hover:text-white dark:focus:ring-green-800",indigo:"border border-indigo-700 text-indigo-700 hover:border-indigo-800 hover:bg-indigo-800 hover:text-white focus:ring-indigo-300 dark:border-indigo-600 dark:text-indigo-400 dark:hover:border-indigo-700 dark:hover:bg-indigo-700 dark:hover:text-white dark:focus:ring-indigo-800",lime:"border border-lime-700 text-lime-700 hover:border-lime-800 hover:bg-lime-800 hover:text-white focus:ring-lime-300 dark:border-lime-600 dark:text-lime-500 dark:hover:border-lime-700 dark:hover:bg-lime-700 dark:hover:text-white dark:focus:ring-lime-800",pink:"border border-pink-700 text-pink-700 hover:border-pink-800 hover:bg-pink-800 hover:text-white focus:ring-pink-300 dark:border-pink-600 dark:text-pink-500 dark:hover:border-pink-700 dark:hover:bg-pink-700 dark:hover:text-white dark:focus:ring-pink-800",purple:"border border-purple-700 text-purple-700 hover:border-purple-800 hover:bg-purple-800 hover:text-white focus:ring-purple-300 dark:border-purple-600 dark:text-purple-400 dark:hover:border-purple-700 dark:hover:bg-purple-700 dark:hover:text-white dark:focus:ring-purple-800",red:"border border-red-700 text-red-700 hover:border-red-800 hover:bg-red-800 hover:text-white focus:ring-red-300 dark:border-red-600 dark:text-red-500 dark:hover:border-red-700 dark:hover:bg-red-700 dark:hover:text-white dark:focus:ring-red-800",teal:"border border-teal-700 text-teal-700 hover:border-teal-800 hover:bg-teal-800 hover:text-white focus:ring-teal-300 dark:border-teal-600 dark:text-teal-400 dark:hover:border-teal-700 dark:hover:bg-teal-700 dark:hover:text-white dark:focus:ring-teal-800",yellow:"border border-yellow-400 text-yellow-400 hover:border-yellow-500 hover:bg-yellow-500 hover:text-white focus:ring-yellow-300 dark:border-yellow-300 dark:text-yellow-300 dark:hover:border-yellow-400 dark:hover:bg-yellow-400 dark:hover:text-white dark:focus:ring-yellow-900"}},fa=p.forwardRef((e,t)=>{var y,k;const r=$e(),n=Ye([Qc,(y=r.theme)==null?void 0:y.button,e.theme],[ge(r.clearTheme,"button"),e.clearTheme],[ge(r.applyTheme,"button"),e.applyTheme]),{children:a,className:o,color:i="default",disabled:s,fullSized:l,outline:c,pill:d,size:m="md",...h}=Fe(e,(k=r.props)==null?void 0:k.button),f=Xc(),b=(f==null?void 0:f.outline)??c,v=(f==null?void 0:f.pill)??d;return u.jsx(da,{ref:t,disabled:s,className:Ce(n.base,n.size[m],v&&n.pill,s&&n.disabled,l&&n.fullSized,b?n.outlineColor[i]:n.color[i],f&&n.grouped,o),...h,children:a})});fa.displayName="Button";const Ni={root:{base:"",list:"flex items-center"},item:{base:"group flex items-center",chevron:"mx-1 h-4 w-4 text-gray-400 group-first:hidden md:mx-2",href:{off:"flex items-center text-sm font-medium text-gray-500 dark:text-gray-400",on:"flex items-center text-sm font-medium text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white"},icon:"mr-2 h-4 w-4"}},Mi=p.forwardRef((e,t)=>{var s,l,c;const r=$e(),n=Ye([Ni.root,(l=(s=r.theme)==null?void 0:s.breadcrumb)==null?void 0:l.root,e.theme],[ge(r.clearTheme,"breadcrumb.root"),e.clearTheme],[ge(r.applyTheme,"breadcrumb.root"),e.applyTheme]),{children:a,className:o,...i}=Fe(e,(c=r.props)==null?void 0:c.breadcrumb);return u.jsx("nav",{ref:t,"aria-label":"Breadcrumb",className:Ce(n.base,o),...i,children:u.jsx("ol",{className:n.list,children:a})})});Mi.displayName="Breadcrumb";const ma=p.forwardRef((e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 5 7 7-7 7"})}));ma.displayName="ChevronRightIcon";const Pn=p.forwardRef((e,t)=>{var m,h,f;const r=$e(),n=Ye([Ni.item,(h=(m=r.theme)==null?void 0:m.breadcrumb)==null?void 0:h.item,e.theme],[ge(r.clearTheme,"breadcrumb.item"),e.clearTheme],[ge(r.applyTheme,"breadcrumb.item"),e.applyTheme]),{children:a,className:o,href:i,icon:s,...l}=Fe(e,(f=r.props)==null?void 0:f.breadcrumbItem),c=typeof i<"u",d=c?"a":"span";return u.jsxs("li",{className:Ce(n.base,o),...l,children:[u.jsx(ma,{"aria-hidden":!0,className:n.chevron,"data-testid":"flowbite-breadcrumb-separator"}),u.jsxs(d,{ref:t,className:n.href[c?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:i,children:[s&&u.jsx(s,{"aria-hidden":!0,className:n.icon}),a]})]})});Pn.displayName="BreadcrumbItem";const Ci=p.forwardRef((e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15 19-7-7 7-7"})}));Ci.displayName="ChevronLeftIcon";function Wr(){return typeof window<"u"}function bt(e){return Si(e)?(e.nodeName||"").toLowerCase():"#document"}function Ve(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function et(e){var t;return(t=(Si(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Si(e){return Wr()?e instanceof Node||e instanceof Ve(e).Node:!1}function he(e){return Wr()?e instanceof Element||e instanceof Ve(e).Element:!1}function ke(e){return Wr()?e instanceof HTMLElement||e instanceof Ve(e).HTMLElement:!1}function Rr(e){return!Wr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ve(e).ShadowRoot}const Zc=new Set(["inline","contents"]);function er(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=We(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Zc.has(a)}const Jc=new Set(["table","td","th"]);function eu(e){return Jc.has(bt(e))}const tu=[":popover-open",":modal"];function Yr(e){return tu.some(t=>{try{return e.matches(t)}catch{return!1}})}const ru=["transform","translate","scale","rotate","perspective"],nu=["transform","translate","scale","rotate","perspective","filter"],au=["paint","layout","strict","content"];function ha(e){const t=Hr(),r=he(e)?We(e):e;return ru.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||nu.some(n=>(r.willChange||"").includes(n))||au.some(n=>(r.contain||"").includes(n))}function ou(e){let t=ot(e);for(;ke(t)&&!at(t);){if(ha(t))return t;if(Yr(t))return null;t=ot(t)}return null}function Hr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const iu=new Set(["html","body","#document"]);function at(e){return iu.has(bt(e))}function We(e){return Ve(e).getComputedStyle(e)}function Br(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ot(e){if(bt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Rr(e)&&e.host||et(e);return Rr(t)?t.host:t}function Ri(e){const t=ot(e);return at(t)?e.ownerDocument?e.ownerDocument.body:e.body:ke(t)&&er(t)?t:Ri(t)}function gt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=Ri(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),i=Ve(a);if(o){const s=En(i);return t.concat(i,i.visualViewport||[],er(a)?a:[],s&&r?gt(s):[])}return t.concat(a,gt(a,[],r))}function En(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const su=["top","right","bottom","left"],Za=["start","end"],Ja=su.reduce((e,t)=>e.concat(t,t+"-"+Za[0],t+"-"+Za[1]),[]),Ot=Math.min,Mt=Math.max,_r=Math.round,It=Math.floor,Qe=e=>({x:e,y:e}),lu={left:"right",right:"left",bottom:"top",top:"bottom"},cu={start:"end",end:"start"};function On(e,t,r){return Mt(e,Ot(t,r))}function qt(e,t){return typeof e=="function"?e(t):e}function it(e){return e.split("-")[0]}function Ze(e){return e.split("-")[1]}function _i(e){return e==="x"?"y":"x"}function ga(e){return e==="y"?"height":"width"}const uu=new Set(["top","bottom"]);function ft(e){return uu.has(it(e))?"y":"x"}function pa(e){return _i(ft(e))}function Di(e,t,r){r===void 0&&(r=!1);const n=Ze(e),a=pa(e),o=ga(a);let i=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Tr(i)),[i,Tr(i)]}function du(e){const t=Tr(e);return[Dr(e),t,Dr(t)]}function Dr(e){return e.replace(/start|end/g,t=>cu[t])}const eo=["left","right"],to=["right","left"],fu=["top","bottom"],mu=["bottom","top"];function hu(e,t,r){switch(e){case"top":case"bottom":return r?t?to:eo:t?eo:to;case"left":case"right":return t?fu:mu;default:return[]}}function gu(e,t,r,n){const a=Ze(e);let o=hu(it(e),r==="start",n);return a&&(o=o.map(i=>i+"-"+a),t&&(o=o.concat(o.map(Dr)))),o}function Tr(e){return e.replace(/left|right|bottom|top/g,t=>lu[t])}function pu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ti(e){return typeof e!="number"?pu(e):{top:e,right:e,bottom:e,left:e}}function Ir(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}/*!
2
+ * tabbable 6.3.0
3
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4
+ */var bu=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],jr=bu.join(","),Ii=typeof Element>"u",At=Ii?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Pr=!Ii&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Qt=function(t,r){var n;r===void 0&&(r=!0);var a=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),o=a===""||a==="true",i=o||r&&t&&Qt(t.parentNode);return i},vu=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},ji=function(t,r,n){if(Qt(t))return[];var a=Array.prototype.slice.apply(t.querySelectorAll(jr));return r&&At.call(t,jr)&&a.unshift(t),a=a.filter(n),a},Er=function(t,r,n){for(var a=[],o=Array.from(t);o.length;){var i=o.shift();if(!Qt(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),l=s.length?s:i.children,c=Er(l,!0,n);n.flatten?a.push.apply(a,c):a.push({scopeParent:i,candidates:c})}else{var d=At.call(i,jr);d&&n.filter(i)&&(r||!t.includes(i))&&a.push(i);var m=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),h=!Qt(m,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(m&&h){var f=Er(m===!0?i.children:m.children,!0,n);n.flatten?a.push.apply(a,f):a.push({scopeParent:i,candidates:f})}else o.unshift.apply(o,i.children)}}return a},Pi=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Ei=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||vu(t))&&!Pi(t)?0:t.tabIndex},yu=function(t,r){var n=Ei(t);return n<0&&r&&!Pi(t)?0:n},xu=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},Oi=function(t){return t.tagName==="INPUT"},wu=function(t){return Oi(t)&&t.type==="hidden"},ku=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},Nu=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},Mu=function(t){if(!t.name)return!0;var r=t.form||Pr(t),n=function(s){return r.querySelectorAll('input[type="radio"][name="'+s+'"]')},a;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")a=n(window.CSS.escape(t.name));else try{a=n(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=Nu(a,t.form);return!o||o===t},Cu=function(t){return Oi(t)&&t.type==="radio"},Su=function(t){return Cu(t)&&!Mu(t)},Ru=function(t){var r,n=t&&Pr(t),a=(r=n)===null||r===void 0?void 0:r.host,o=!1;if(n&&n!==t){var i,s,l;for(o=!!((i=a)!==null&&i!==void 0&&(s=i.ownerDocument)!==null&&s!==void 0&&s.contains(a)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!o&&a;){var c,d,m;n=Pr(a),a=(c=n)===null||c===void 0?void 0:c.host,o=!!((d=a)!==null&&d!==void 0&&(m=d.ownerDocument)!==null&&m!==void 0&&m.contains(a))}}return o},ro=function(t){var r=t.getBoundingClientRect(),n=r.width,a=r.height;return n===0&&a===0},_u=function(t,r){var n=r.displayCheck,a=r.getShadowRoot;if(n==="full-native"&&"checkVisibility"in t){var o=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!o}if(getComputedStyle(t).visibility==="hidden")return!0;var i=At.call(t,"details>summary:first-of-type"),s=i?t.parentElement:t;if(At.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof a=="function"){for(var l=t;t;){var c=t.parentElement,d=Pr(t);if(c&&!c.shadowRoot&&a(c)===!0)return ro(t);t.assignedSlot?t=t.assignedSlot:!c&&d!==t.ownerDocument?t=d.host:t=c}t=l}if(Ru(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return ro(t);return!1},Du=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var a=r.children.item(n);if(a.tagName==="LEGEND")return At.call(r,"fieldset[disabled] *")?!0:!a.contains(t)}return!0}r=r.parentElement}return!1},An=function(t,r){return!(r.disabled||Qt(r)||wu(r)||_u(r,t)||ku(r)||Du(r))},Vn=function(t,r){return!(Su(r)||Ei(r)<0||!An(t,r))},Tu=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},Ai=function(t){var r=[],n=[];return t.forEach(function(a,o){var i=!!a.scopeParent,s=i?a.scopeParent:a,l=yu(s,i),c=i?Ai(a.candidates):s;l===0?i?r.push.apply(r,c):r.push(s):n.push({documentOrder:o,tabIndex:l,item:a,isScope:i,content:c})}),n.sort(xu).reduce(function(a,o){return o.isScope?a.push.apply(a,o.content):a.push(o.content),a},[]).concat(r)},ba=function(t,r){r=r||{};var n;return r.getShadowRoot?n=Er([t],r.includeContainer,{filter:Vn.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:Tu}):n=ji(t,r.includeContainer,Vn.bind(null,r)),Ai(n)},Iu=function(t,r){r=r||{};var n;return r.getShadowRoot?n=Er([t],r.includeContainer,{filter:An.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=ji(t,r.includeContainer,An.bind(null,r)),n},Vi=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return At.call(t,jr)===!1?!1:Vn(r,t)};function Li(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function zi(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function Fi(){return/apple/i.test(navigator.vendor)}function Ln(){const e=/android/i;return e.test(Li())||e.test(zi())}function ju(){return Li().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function $i(){return zi().includes("jsdom/")}const no="data-floating-ui-focusable",Pu="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",on="ArrowLeft",sn="ArrowRight",Eu="ArrowUp",Ou="ArrowDown";function Ue(e){let t=e.activeElement;for(;((r=t)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;t=t.shadowRoot.activeElement}return t}function Te(e,t){if(!e||!t)return!1;const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&Rr(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function nt(e){return"composedPath"in e?e.composedPath()[0]:e.target}function ln(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}function Au(e){return e.matches("html,body")}function je(e){return(e==null?void 0:e.ownerDocument)||document}function va(e){return ke(e)&&e.matches(Pu)}function zn(e){return e?e.getAttribute("role")==="combobox"&&va(e):!1}function Vu(e){if(!e||$i())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Or(e){return e?e.hasAttribute(no)?e:e.querySelector("["+no+"]")||e:null}function Ct(e,t,r){return r===void 0&&(r=!0),e.filter(a=>{var o;return a.parentId===t&&(!r||((o=a.context)==null?void 0:o.open))}).flatMap(a=>[a,...Ct(e,a.id,r)])}function Lu(e,t){let r,n=-1;function a(o,i){i>n&&(r=o,n=i),Ct(e,o).forEach(l=>{a(l.id,i+1)})}return a(t,0),e.find(o=>o.id===r)}function ao(e,t){var r;let n=[],a=(r=e.find(o=>o.id===t))==null?void 0:r.parentId;for(;a;){const o=e.find(i=>i.id===a);a=o==null?void 0:o.parentId,o&&(n=n.concat(o))}return n}function Ie(e){e.preventDefault(),e.stopPropagation()}function zu(e){return"nativeEvent"in e}function qi(e){return e.mozInputSource===0&&e.isTrusted?!0:Ln()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Wi(e){return $i()?!1:!Ln()&&e.width===0&&e.height===0||Ln()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Zt(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}var Fu=typeof document<"u",$u=function(){},xe=Fu?p.useLayoutEffect:$u;const qu={...Xo};function Oe(e){const t=p.useRef(e);return xe(()=>{t.current=e}),t}const Wu=qu.useInsertionEffect,Yu=Wu||(e=>e());function Ne(e){const t=p.useRef(()=>{});return Yu(()=>{t.current=e}),p.useCallback(function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.current==null?void 0:t.current(...n)},[])}function pr(e,t,r){return Math.floor(e/t)!==r}function Xt(e,t){return t<0||t>=e.current.length}function cn(e,t){return Pe(e,{disabledIndices:t})}function oo(e,t){return Pe(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Pe(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:a,amount:o=1}=t===void 0?{}:t,i=r;do i+=n?-o:o;while(i>=0&&i<=e.current.length-1&&kr(e,i,a));return i}function Hu(e,t){let{event:r,orientation:n,loop:a,rtl:o,cols:i,disabledIndices:s,minIndex:l,maxIndex:c,prevIndex:d,stopEvent:m=!1}=t,h=d;if(r.key===Eu){if(m&&Ie(r),d===-1)h=c;else if(h=Pe(e,{startingIndex:h,amount:i,decrement:!0,disabledIndices:s}),a&&(d-i<l||h<0)){const f=d%i,b=c%i,v=c-(b-f);b===f?h=c:h=b>f?v:v-i}Xt(e,h)&&(h=d)}if(r.key===Ou&&(m&&Ie(r),d===-1?h=l:(h=Pe(e,{startingIndex:d,amount:i,disabledIndices:s}),a&&d+i>c&&(h=Pe(e,{startingIndex:d%i-i,amount:i,disabledIndices:s}))),Xt(e,h)&&(h=d)),n==="both"){const f=It(d/i);r.key===(o?on:sn)&&(m&&Ie(r),d%i!==i-1?(h=Pe(e,{startingIndex:d,disabledIndices:s}),a&&pr(h,i,f)&&(h=Pe(e,{startingIndex:d-d%i-1,disabledIndices:s}))):a&&(h=Pe(e,{startingIndex:d-d%i-1,disabledIndices:s})),pr(h,i,f)&&(h=d)),r.key===(o?sn:on)&&(m&&Ie(r),d%i!==0?(h=Pe(e,{startingIndex:d,decrement:!0,disabledIndices:s}),a&&pr(h,i,f)&&(h=Pe(e,{startingIndex:d+(i-d%i),decrement:!0,disabledIndices:s}))):a&&(h=Pe(e,{startingIndex:d+(i-d%i),decrement:!0,disabledIndices:s})),pr(h,i,f)&&(h=d));const b=It(c/i)===f;Xt(e,h)&&(a&&b?h=r.key===(o?sn:on)?c:Pe(e,{startingIndex:d-d%i-1,disabledIndices:s}):h=d)}return h}function Bu(e,t,r){const n=[];let a=0;return e.forEach((o,i)=>{let{width:s,height:l}=o,c=!1;for(r&&(a=0);!c;){const d=[];for(let m=0;m<s;m++)for(let h=0;h<l;h++)d.push(a+m+h*t);a%t+s<=t&&d.every(m=>n[m]==null)?(d.forEach(m=>{n[m]=i}),c=!0):a++}}),[...n]}function Gu(e,t,r,n,a){if(e===-1)return-1;const o=r.indexOf(e),i=t[e];switch(a){case"tl":return o;case"tr":return i?o+i.width-1:o;case"bl":return i?o+(i.height-1)*n:o;case"br":return r.lastIndexOf(e)}}function Ku(e,t){return t.flatMap((r,n)=>e.includes(r)?[n]:[])}function kr(e,t,r){if(typeof r=="function")return r(t);if(r)return r.includes(t);const n=e.current[t];return n==null||n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"}const Gr=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Yi(e,t){const r=ba(e,Gr()),n=r.length;if(n===0)return;const a=Ue(je(e)),o=r.indexOf(a),i=o===-1?t===1?0:n-1:o+t;return r[i]}function Uu(e){return Yi(je(e).body,1)||e}function Xu(e){return Yi(je(e).body,-1)||e}function io(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!Te(r,n)}function so(e,t,r){let{reference:n,floating:a}=e;const o=ft(t),i=pa(t),s=ga(i),l=it(t),c=o==="y",d=n.x+n.width/2-a.width/2,m=n.y+n.height/2-a.height/2,h=n[s]/2-a[s]/2;let f;switch(l){case"top":f={x:d,y:n.y-a.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:m};break;case"left":f={x:n.x-a.width,y:m};break;default:f={x:n.x,y:n.y}}switch(Ze(t)){case"start":f[i]-=h*(r&&c?-1:1);break;case"end":f[i]+=h*(r&&c?-1:1);break}return f}const Qu=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:o=[],platform:i}=r,s=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:m}=so(c,n,l),h=n,f={},b=0;for(let v=0;v<s.length;v++){const{name:y,fn:k}=s[v],{x:N,y:w,data:R,reset:_}=await k({x:d,y:m,initialPlacement:n,placement:h,strategy:a,middlewareData:f,rects:c,platform:i,elements:{reference:e,floating:t}});d=N??d,m=w??m,f={...f,[y]:{...f[y],...R}},_&&b<=50&&(b++,typeof _=="object"&&(_.placement&&(h=_.placement),_.rects&&(c=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:a}):_.rects),{x:d,y:m}=so(c,h,l)),v=-1)}return{x:d,y:m,placement:h,strategy:a,middlewareData:f}};async function ya(e,t){var r;t===void 0&&(t={});const{x:n,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:h=!1,padding:f=0}=qt(t,e),b=Ti(f),y=s[h?m==="floating"?"reference":"floating":m],k=Ir(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(y)))==null||r?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),N=m==="floating"?{x:n,y:a,width:i.floating.width,height:i.floating.height}:i.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),R=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},_=Ir(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:N,offsetParent:w,strategy:l}):N);return{top:(k.top-_.top+b.top)/R.y,bottom:(_.bottom-k.bottom+b.bottom)/R.y,left:(k.left-_.left+b.left)/R.x,right:(_.right-k.right+b.right)/R.x}}const Zu=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=qt(e,t)||{};if(c==null)return{};const m=Ti(d),h={x:r,y:n},f=pa(a),b=ga(f),v=await i.getDimensions(c),y=f==="y",k=y?"top":"left",N=y?"bottom":"right",w=y?"clientHeight":"clientWidth",R=o.reference[b]+o.reference[f]-h[f]-o.floating[b],_=h[f]-o.reference[f],I=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let j=I?I[w]:0;(!j||!await(i.isElement==null?void 0:i.isElement(I)))&&(j=s.floating[w]||o.floating[b]);const E=R/2-_/2,z=j/2-v[b]/2-1,P=Ot(m[k],z),V=Ot(m[N],z),A=P,O=j-v[b]-V,x=j/2-v[b]/2+E,C=On(A,x,O),S=!l.arrow&&Ze(a)!=null&&x!==C&&o.reference[b]/2-(x<A?P:V)-v[b]/2<0,M=S?x<A?x-A:x-O:0;return{[f]:h[f]+M,data:{[f]:C,centerOffset:x-C-M,...S&&{alignmentOffset:M}},reset:S}}});function Ju(e,t,r){return(e?[...r.filter(a=>Ze(a)===e),...r.filter(a=>Ze(a)!==e)]:r.filter(a=>it(a)===a)).filter(a=>e?Ze(a)===e||(t?Dr(a)!==a:!1):!0)}const ed=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,a;const{rects:o,middlewareData:i,placement:s,platform:l,elements:c}=t,{crossAxis:d=!1,alignment:m,allowedPlacements:h=Ja,autoAlignment:f=!0,...b}=qt(e,t),v=m!==void 0||h===Ja?Ju(m||null,f,h):h,y=await ya(t,b),k=((r=i.autoPlacement)==null?void 0:r.index)||0,N=v[k];if(N==null)return{};const w=Di(N,o,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(s!==N)return{reset:{placement:v[0]}};const R=[y[it(N)],y[w[0]],y[w[1]]],_=[...((n=i.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:R}],I=v[k+1];if(I)return{data:{index:k+1,overflows:_},reset:{placement:I}};const j=_.map(P=>{const V=Ze(P.placement);return[P.placement,V&&d?P.overflows.slice(0,2).reduce((A,O)=>A+O,0):P.overflows[0],P.overflows]}).sort((P,V)=>P[1]-V[1]),z=((a=j.filter(P=>P[2].slice(0,Ze(P[0])?2:3).every(V=>V<=0))[0])==null?void 0:a[0])||j[0][0];return z!==s?{data:{index:k+1,overflows:_},reset:{placement:z}}:{}}}},td=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...y}=qt(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const k=it(a),N=ft(s),w=it(s)===s,R=await(l.isRTL==null?void 0:l.isRTL(c.floating)),_=h||(w||!v?[Tr(s)]:du(s)),I=b!=="none";!h&&I&&_.push(...gu(s,v,b,R));const j=[s,..._],E=await ya(t,y),z=[];let P=((n=o.flip)==null?void 0:n.overflows)||[];if(d&&z.push(E[k]),m){const x=Di(a,i,R);z.push(E[x[0]],E[x[1]])}if(P=[...P,{placement:a,overflows:z}],!z.every(x=>x<=0)){var V,A;const x=(((V=o.flip)==null?void 0:V.index)||0)+1,C=j[x];if(C&&(!(m==="alignment"?N!==ft(C):!1)||P.every(g=>ft(g.placement)===N?g.overflows[0]>0:!0)))return{data:{index:x,overflows:P},reset:{placement:C}};let S=(A=P.filter(M=>M.overflows[0]<=0).sort((M,g)=>M.overflows[1]-g.overflows[1])[0])==null?void 0:A.placement;if(!S)switch(f){case"bestFit":{var O;const M=(O=P.filter(g=>{if(I){const D=ft(g.placement);return D===N||D==="y"}return!0}).map(g=>[g.placement,g.overflows.filter(D=>D>0).reduce((D,T)=>D+T,0)]).sort((g,D)=>g[1]-D[1])[0])==null?void 0:O[0];M&&(S=M);break}case"initialPlacement":S=s;break}if(a!==S)return{reset:{placement:S}}}return{}}}},rd=new Set(["left","top"]);async function nd(e,t){const{placement:r,platform:n,elements:a}=e,o=await(n.isRTL==null?void 0:n.isRTL(a.floating)),i=it(r),s=Ze(r),l=ft(r)==="y",c=rd.has(i)?-1:1,d=o&&l?-1:1,m=qt(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:b}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof b=="number"&&(f=s==="end"?b*-1:b),l?{x:f*d,y:h*c}:{x:h*c,y:f*d}}const ad=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await nd(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},od=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:y=>{let{x:k,y:N}=y;return{x:k,y:N}}},...l}=qt(e,t),c={x:r,y:n},d=await ya(t,l),m=ft(it(a)),h=_i(m);let f=c[h],b=c[m];if(o){const y=h==="y"?"top":"left",k=h==="y"?"bottom":"right",N=f+d[y],w=f-d[k];f=On(N,f,w)}if(i){const y=m==="y"?"top":"left",k=m==="y"?"bottom":"right",N=b+d[y],w=b-d[k];b=On(N,b,w)}const v=s.fn({...t,[h]:f,[m]:b});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[h]:o,[m]:i}}}}}};function Hi(e){const t=We(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=ke(e),o=a?e.offsetWidth:r,i=a?e.offsetHeight:n,s=_r(r)!==o||_r(n)!==i;return s&&(r=o,n=i),{width:r,height:n,$:s}}function xa(e){return he(e)?e:e.contextElement}function Pt(e){const t=xa(e);if(!ke(t))return Qe(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:o}=Hi(t);let i=(o?_r(r.width):r.width)/n,s=(o?_r(r.height):r.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const id=Qe(0);function Bi(e){const t=Ve(e);return!Hr()||!t.visualViewport?id:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sd(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ve(e)?!1:t}function St(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),o=xa(e);let i=Qe(1);t&&(n?he(n)&&(i=Pt(n)):i=Pt(e));const s=sd(o,r,n)?Bi(o):Qe(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,d=a.width/i.x,m=a.height/i.y;if(o){const h=Ve(o),f=n&&he(n)?Ve(n):n;let b=h,v=En(b);for(;v&&n&&f!==b;){const y=Pt(v),k=v.getBoundingClientRect(),N=We(v),w=k.left+(v.clientLeft+parseFloat(N.paddingLeft))*y.x,R=k.top+(v.clientTop+parseFloat(N.paddingTop))*y.y;l*=y.x,c*=y.y,d*=y.x,m*=y.y,l+=w,c+=R,b=Ve(v),v=En(b)}}return Ir({width:d,height:m,x:l,y:c})}function Kr(e,t){const r=Br(e).scrollLeft;return t?t.left+r:St(et(e)).left+r}function Gi(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Kr(e,r),a=r.top+t.scrollTop;return{x:n,y:a}}function ld(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const o=a==="fixed",i=et(n),s=t?Yr(t.floating):!1;if(n===i||s&&o)return r;let l={scrollLeft:0,scrollTop:0},c=Qe(1);const d=Qe(0),m=ke(n);if((m||!m&&!o)&&((bt(n)!=="body"||er(i))&&(l=Br(n)),ke(n))){const f=St(n);c=Pt(n),d.x=f.x+n.clientLeft,d.y=f.y+n.clientTop}const h=i&&!m&&!o?Gi(i,l):Qe(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:r.y*c.y-l.scrollTop*c.y+d.y+h.y}}function cd(e){return Array.from(e.getClientRects())}function ud(e){const t=et(e),r=Br(e),n=e.ownerDocument.body,a=Mt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=Mt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+Kr(e);const s=-r.scrollTop;return We(n).direction==="rtl"&&(i+=Mt(t.clientWidth,n.clientWidth)-a),{width:a,height:o,x:i,y:s}}const lo=25;function dd(e,t){const r=Ve(e),n=et(e),a=r.visualViewport;let o=n.clientWidth,i=n.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const d=Hr();(!d||d&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}const c=Kr(n);if(c<=0){const d=n.ownerDocument,m=d.body,h=getComputedStyle(m),f=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,b=Math.abs(n.clientWidth-m.clientWidth-f);b<=lo&&(o-=b)}else c<=lo&&(o+=c);return{width:o,height:i,x:s,y:l}}const fd=new Set(["absolute","fixed"]);function md(e,t){const r=St(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,o=ke(e)?Pt(e):Qe(1),i=e.clientWidth*o.x,s=e.clientHeight*o.y,l=a*o.x,c=n*o.y;return{width:i,height:s,x:l,y:c}}function co(e,t,r){let n;if(t==="viewport")n=dd(e,r);else if(t==="document")n=ud(et(e));else if(he(t))n=md(t,r);else{const a=Bi(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Ir(n)}function Ki(e,t){const r=ot(e);return r===t||!he(r)||at(r)?!1:We(r).position==="fixed"||Ki(r,t)}function hd(e,t){const r=t.get(e);if(r)return r;let n=gt(e,[],!1).filter(s=>he(s)&&bt(s)!=="body"),a=null;const o=We(e).position==="fixed";let i=o?ot(e):e;for(;he(i)&&!at(i);){const s=We(i),l=ha(i);!l&&s.position==="fixed"&&(a=null),(o?!l&&!a:!l&&s.position==="static"&&!!a&&fd.has(a.position)||er(i)&&!l&&Ki(e,i))?n=n.filter(d=>d!==i):a=s,i=ot(i)}return t.set(e,n),n}function gd(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const i=[...r==="clippingAncestors"?Yr(t)?[]:hd(t,this._c):[].concat(r),n],s=i[0],l=i.reduce((c,d)=>{const m=co(t,d,a);return c.top=Mt(m.top,c.top),c.right=Ot(m.right,c.right),c.bottom=Ot(m.bottom,c.bottom),c.left=Mt(m.left,c.left),c},co(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function pd(e){const{width:t,height:r}=Hi(e);return{width:t,height:r}}function bd(e,t,r){const n=ke(t),a=et(t),o=r==="fixed",i=St(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Qe(0);function c(){l.x=Kr(a)}if(n||!n&&!o)if((bt(t)!=="body"||er(a))&&(s=Br(t)),n){const f=St(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else a&&c();o&&!n&&a&&c();const d=a&&!n&&!o?Gi(a,s):Qe(0),m=i.left+s.scrollLeft-l.x-d.x,h=i.top+s.scrollTop-l.y-d.y;return{x:m,y:h,width:i.width,height:i.height}}function un(e){return We(e).position==="static"}function uo(e,t){if(!ke(e)||We(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return et(e)===r&&(r=r.ownerDocument.body),r}function Ui(e,t){const r=Ve(e);if(Yr(e))return r;if(!ke(e)){let a=ot(e);for(;a&&!at(a);){if(he(a)&&!un(a))return a;a=ot(a)}return r}let n=uo(e,t);for(;n&&eu(n)&&un(n);)n=uo(n,t);return n&&at(n)&&un(n)&&!ha(n)?r:n||ou(e)||r}const vd=async function(e){const t=this.getOffsetParent||Ui,r=this.getDimensions,n=await r(e.floating);return{reference:bd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function yd(e){return We(e).direction==="rtl"}const xd={convertOffsetParentRelativeRectToViewportRelativeRect:ld,getDocumentElement:et,getClippingRect:gd,getOffsetParent:Ui,getElementRects:vd,getClientRects:cd,getDimensions:pd,getScale:Pt,isElement:he,isRTL:yd};function Xi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function wd(e,t){let r=null,n;const a=et(e);function o(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:d,top:m,width:h,height:f}=c;if(s||t(),!h||!f)return;const b=It(m),v=It(a.clientWidth-(d+h)),y=It(a.clientHeight-(m+f)),k=It(d),w={rootMargin:-b+"px "+-v+"px "+-y+"px "+-k+"px",threshold:Mt(0,Ot(1,l))||1};let R=!0;function _(I){const j=I[0].intersectionRatio;if(j!==l){if(!R)return i();j?i(!1,j):n=setTimeout(()=>{i(!1,1e-7)},1e3)}j===1&&!Xi(c,e.getBoundingClientRect())&&i(),R=!1}try{r=new IntersectionObserver(_,{...w,root:a.ownerDocument})}catch{r=new IntersectionObserver(_,w)}r.observe(e)}return i(!0),o}function Qi(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=xa(e),d=a||o?[...c?gt(c):[],...gt(t)]:[];d.forEach(k=>{a&&k.addEventListener("scroll",r,{passive:!0}),o&&k.addEventListener("resize",r)});const m=c&&s?wd(c,r):null;let h=-1,f=null;i&&(f=new ResizeObserver(k=>{let[N]=k;N&&N.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),r()}),c&&!l&&f.observe(c),f.observe(t));let b,v=l?St(e):null;l&&y();function y(){const k=St(e);v&&!Xi(v,k)&&r(),v=k,b=requestAnimationFrame(y)}return r(),()=>{var k;d.forEach(N=>{a&&N.removeEventListener("scroll",r),o&&N.removeEventListener("resize",r)}),m==null||m(),(k=f)==null||k.disconnect(),f=null,l&&cancelAnimationFrame(b)}}const kd=ad,Nd=ed,Md=od,Cd=td,fo=Zu,Sd=(e,t,r)=>{const n=new Map,a={platform:xd,...r},o={...a.platform,_c:n};return Qu(e,t,{...a,platform:o})};var Rd=typeof document<"u",_d=function(){},Nr=Rd?p.useLayoutEffect:_d;function Ar(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Ar(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){const o=a[n];if(!(o==="_owner"&&e.$$typeof)&&!Ar(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Zi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mo(e,t){const r=Zi(e);return Math.round(t*r)/r}function dn(e){const t=p.useRef(e);return Nr(()=>{t.current=e}),t}function Dd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[d,m]=p.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=p.useState(n);Ar(h,n)||f(n);const[b,v]=p.useState(null),[y,k]=p.useState(null),N=p.useCallback(g=>{g!==I.current&&(I.current=g,v(g))},[]),w=p.useCallback(g=>{g!==j.current&&(j.current=g,k(g))},[]),R=o||b,_=i||y,I=p.useRef(null),j=p.useRef(null),E=p.useRef(d),z=l!=null,P=dn(l),V=dn(a),A=dn(c),O=p.useCallback(()=>{if(!I.current||!j.current)return;const g={placement:t,strategy:r,middleware:h};V.current&&(g.platform=V.current),Sd(I.current,j.current,g).then(D=>{const T={...D,isPositioned:A.current!==!1};x.current&&!Ar(E.current,T)&&(E.current=T,Uo.flushSync(()=>{m(T)}))})},[h,t,r,V,A]);Nr(()=>{c===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,m(g=>({...g,isPositioned:!1})))},[c]);const x=p.useRef(!1);Nr(()=>(x.current=!0,()=>{x.current=!1}),[]),Nr(()=>{if(R&&(I.current=R),_&&(j.current=_),R&&_){if(P.current)return P.current(R,_,O);O()}},[R,_,O,P,z]);const C=p.useMemo(()=>({reference:I,floating:j,setReference:N,setFloating:w}),[N,w]),S=p.useMemo(()=>({reference:R,floating:_}),[R,_]),M=p.useMemo(()=>{const g={position:r,left:0,top:0};if(!S.floating)return g;const D=mo(S.floating,d.x),T=mo(S.floating,d.y);return s?{...g,transform:"translate("+D+"px, "+T+"px)",...Zi(S.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:D,top:T}},[r,s,S.floating,d.x,d.y]);return p.useMemo(()=>({...d,update:O,refs:C,elements:S,floatingStyles:M}),[d,O,C,S,M])}const Td=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:a}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?fo({element:n.current,padding:a}).fn(r):{}:n?fo({element:n,padding:a}).fn(r):{}}}},Id=(e,t)=>({...kd(e),options:[e,t]}),jd=(e,t)=>({...Md(e),options:[e,t]}),Pd=(e,t)=>({...Cd(e),options:[e,t]}),Ed=(e,t)=>({...Nd(e),options:[e,t]}),Od=(e,t)=>({...Td(e),options:[e,t]});function Ad(e){const t=p.useRef(void 0),r=p.useCallback(n=>{const a=e.map(o=>{if(o!=null){if(typeof o=="function"){const i=o,s=i(n);return typeof s=="function"?s:()=>{i(null)}}return o.current=n,()=>{o.current=null}}});return()=>{a.forEach(o=>o==null?void 0:o())}},e);return p.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function Vd(e,t){const r=e.compareDocumentPosition(t);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}const Ji=p.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Ld(e){const{children:t,elementsRef:r,labelsRef:n}=e,[a,o]=p.useState(()=>new Set),i=p.useCallback(c=>{o(d=>new Set(d).add(c))},[]),s=p.useCallback(c=>{o(d=>{const m=new Set(d);return m.delete(c),m})},[]),l=p.useMemo(()=>{const c=new Map;return Array.from(a.keys()).sort(Vd).forEach((m,h)=>{c.set(m,h)}),c},[a]);return u.jsx(Ji.Provider,{value:p.useMemo(()=>({register:i,unregister:s,map:l,elementsRef:r,labelsRef:n}),[i,s,l,r,n]),children:t})}function zd(e){e===void 0&&(e={});const{label:t}=e,{register:r,unregister:n,map:a,elementsRef:o,labelsRef:i}=p.useContext(Ji),[s,l]=p.useState(null),c=p.useRef(null),d=p.useCallback(m=>{if(c.current=m,s!==null&&(o.current[s]=m,i)){var h;const f=t!==void 0;i.current[s]=f?t:(h=m==null?void 0:m.textContent)!=null?h:null}},[s,o,i,t]);return xe(()=>{const m=c.current;if(m)return r(m),()=>{n(m)}},[r,n]),xe(()=>{const m=c.current?a.get(c.current):null;m!=null&&l(m)},[a]),p.useMemo(()=>({ref:d,index:s??-1}),[s,d])}const Fd="data-floating-ui-focusable",ho="active",go="selected",tr="ArrowLeft",rr="ArrowRight",es="ArrowUp",Ur="ArrowDown",$d={...Xo};let po=!1,qd=0;const bo=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+qd++;function Wd(){const[e,t]=p.useState(()=>po?bo():void 0);return xe(()=>{e==null&&t(bo())},[]),p.useEffect(()=>{po=!0},[]),e}const Yd=$d.useId,ts=Yd||Wd;function Hd(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(a=>a(r))},on(t,r){e.has(t)||e.set(t,new Set),e.get(t).add(r)},off(t,r){var n;(n=e.get(t))==null||n.delete(r)}}}const Bd=p.createContext(null),Gd=p.createContext(null),Xr=()=>{var e;return((e=p.useContext(Bd))==null?void 0:e.id)||null},nr=()=>p.useContext(Gd);function Vt(e){return"data-floating-ui-"+e}function De(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const vo=Vt("safe-polygon");function fn(e,t,r){if(r&&!Zt(r))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const n=e();return typeof n=="number"?n:n==null?void 0:n[t]}return e==null?void 0:e[t]}function mn(e){return typeof e=="function"?e():e}function Kd(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,dataRef:a,events:o,elements:i}=e,{enabled:s=!0,delay:l=0,handleClose:c=null,mouseOnly:d=!1,restMs:m=0,move:h=!0}=t,f=nr(),b=Xr(),v=Oe(c),y=Oe(l),k=Oe(r),N=Oe(m),w=p.useRef(),R=p.useRef(-1),_=p.useRef(),I=p.useRef(-1),j=p.useRef(!0),E=p.useRef(!1),z=p.useRef(()=>{}),P=p.useRef(!1),V=Ne(()=>{var M;const g=(M=a.current.openEvent)==null?void 0:M.type;return(g==null?void 0:g.includes("mouse"))&&g!=="mousedown"});p.useEffect(()=>{if(!s)return;function M(g){let{open:D}=g;D||(De(R),De(I),j.current=!0,P.current=!1)}return o.on("openchange",M),()=>{o.off("openchange",M)}},[s,o]),p.useEffect(()=>{if(!s||!v.current||!r)return;function M(D){V()&&n(!1,D,"hover")}const g=je(i.floating).documentElement;return g.addEventListener("mouseleave",M),()=>{g.removeEventListener("mouseleave",M)}},[i.floating,r,n,s,v,V]);const A=p.useCallback(function(M,g,D){g===void 0&&(g=!0),D===void 0&&(D="hover");const T=fn(y.current,"close",w.current);T&&!_.current?(De(R),R.current=window.setTimeout(()=>n(!1,M,D),T)):g&&(De(R),n(!1,M,D))},[y,n]),O=Ne(()=>{z.current(),_.current=void 0}),x=Ne(()=>{if(E.current){const M=je(i.floating).body;M.style.pointerEvents="",M.removeAttribute(vo),E.current=!1}}),C=Ne(()=>a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1);p.useEffect(()=>{if(!s)return;function M($){if(De(R),j.current=!1,d&&!Zt(w.current)||mn(N.current)>0&&!fn(y.current,"open"))return;const F=fn(y.current,"open",w.current);F?R.current=window.setTimeout(()=>{k.current||n(!0,$,"hover")},F):r||n(!0,$,"hover")}function g($){if(C()){x();return}z.current();const F=je(i.floating);if(De(I),P.current=!1,v.current&&a.current.floatingContext){r||De(R),_.current=v.current({...a.current.floatingContext,tree:f,x:$.clientX,y:$.clientY,onClose(){x(),O(),C()||A($,!0,"safe-polygon")}});const U=_.current;F.addEventListener("mousemove",U),z.current=()=>{F.removeEventListener("mousemove",U)};return}(w.current==="touch"?!Te(i.floating,$.relatedTarget):!0)&&A($)}function D($){C()||a.current.floatingContext&&(v.current==null||v.current({...a.current.floatingContext,tree:f,x:$.clientX,y:$.clientY,onClose(){x(),O(),C()||A($)}})($))}function T(){De(R)}function L($){C()||A($,!1)}if(he(i.domReference)){const $=i.domReference,F=i.floating;return r&&$.addEventListener("mouseleave",D),h&&$.addEventListener("mousemove",M,{once:!0}),$.addEventListener("mouseenter",M),$.addEventListener("mouseleave",g),F&&(F.addEventListener("mouseleave",D),F.addEventListener("mouseenter",T),F.addEventListener("mouseleave",L)),()=>{r&&$.removeEventListener("mouseleave",D),h&&$.removeEventListener("mousemove",M),$.removeEventListener("mouseenter",M),$.removeEventListener("mouseleave",g),F&&(F.removeEventListener("mouseleave",D),F.removeEventListener("mouseenter",T),F.removeEventListener("mouseleave",L))}}},[i,s,e,d,h,A,O,x,n,r,k,f,y,v,a,C,N]),xe(()=>{var M;if(s&&r&&(M=v.current)!=null&&(M=M.__options)!=null&&M.blockPointerEvents&&V()){E.current=!0;const D=i.floating;if(he(i.domReference)&&D){var g;const T=je(i.floating).body;T.setAttribute(vo,"");const L=i.domReference,$=f==null||(g=f.nodesRef.current.find(F=>F.id===b))==null||(g=g.context)==null?void 0:g.elements.floating;return $&&($.style.pointerEvents=""),T.style.pointerEvents="none",L.style.pointerEvents="auto",D.style.pointerEvents="auto",()=>{T.style.pointerEvents="",L.style.pointerEvents="",D.style.pointerEvents=""}}}},[s,r,b,i,f,v,V]),xe(()=>{r||(w.current=void 0,P.current=!1,O(),x())},[r,O,x]),p.useEffect(()=>()=>{O(),De(R),De(I),x()},[s,i.domReference,O,x]);const S=p.useMemo(()=>{function M(g){w.current=g.pointerType}return{onPointerDown:M,onPointerEnter:M,onMouseMove(g){const{nativeEvent:D}=g;function T(){!j.current&&!k.current&&n(!0,D,"hover")}d&&!Zt(w.current)||r||mn(N.current)===0||P.current&&g.movementX**2+g.movementY**2<2||(De(I),w.current==="touch"?T():(P.current=!0,I.current=window.setTimeout(T,mn(N.current))))}}},[d,n,r,k,N]);return p.useMemo(()=>s?{reference:S}:{},[s,S])}let yo=0;function kt(e,t){t===void 0&&(t={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:a=!1}=t;n&&cancelAnimationFrame(yo);const o=()=>e==null?void 0:e.focus({preventScroll:r});a?o():yo=requestAnimationFrame(o)}function hn(e,t){if(!e||!t)return!1;const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&Rr(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ud(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Xd(e){return(e==null?void 0:e.ownerDocument)||document}const Et={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function xo(e){return e==="inert"?Et.inert:e==="aria-hidden"?Et["aria-hidden"]:Et.none}let br=new WeakSet,vr={},gn=0;const Qd=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,rs=e=>e&&(e.host||rs(e.parentNode)),Zd=(e,t)=>t.map(r=>{if(e.contains(r))return r;const n=rs(r);return e.contains(n)?n:null}).filter(r=>r!=null);function Jd(e,t,r,n){const a="data-floating-ui-inert",o=n?"inert":r?"aria-hidden":null,i=Zd(t,e),s=new Set,l=new Set(i),c=[];vr[a]||(vr[a]=new WeakMap);const d=vr[a];i.forEach(m),h(t),s.clear();function m(f){!f||s.has(f)||(s.add(f),f.parentNode&&m(f.parentNode))}function h(f){!f||l.has(f)||[].forEach.call(f.children,b=>{if(bt(b)!=="script")if(s.has(b))h(b);else{const v=o?b.getAttribute(o):null,y=v!==null&&v!=="false",k=xo(o),N=(k.get(b)||0)+1,w=(d.get(b)||0)+1;k.set(b,N),d.set(b,w),c.push(b),N===1&&y&&br.add(b),w===1&&b.setAttribute(a,""),!y&&o&&b.setAttribute(o,o==="inert"?"":"true")}})}return gn++,()=>{c.forEach(f=>{const b=xo(o),y=(b.get(f)||0)-1,k=(d.get(f)||0)-1;b.set(f,y),d.set(f,k),y||(!br.has(f)&&o&&f.removeAttribute(o),br.delete(f)),k||f.removeAttribute(a)}),gn--,gn||(Et.inert=new WeakMap,Et["aria-hidden"]=new WeakMap,Et.none=new WeakMap,br=new WeakSet,vr={})}}function wo(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);const n=Xd(e[0]).body;return Jd(e.concat(Array.from(n.querySelectorAll('[aria-live],[role="status"],output'))),n,t,r)}const wa={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},ko=p.forwardRef(function(t,r){const[n,a]=p.useState();xe(()=>{Fi()&&a("button")},[]);const o={ref:r,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[Vt("focus-guard")]:"",style:wa};return u.jsx("span",{...t,...o})}),ef=p.createContext(null),tf=()=>p.useContext(ef);function No(e){return p.useMemo(()=>t=>{e.forEach(r=>{r&&(r.current=t)})},e)}const rf=20;let mt=[];function ka(){mt=mt.filter(e=>e.isConnected)}function nf(e){ka(),e&&bt(e)!=="body"&&(mt.push(e),mt.length>rf&&(mt=mt.slice(-20)))}function Mo(){return ka(),mt[mt.length-1]}function af(e){const t=Gr();return Vi(e,t)?e:ba(e,t)[0]||e}function Co(e,t){var r;if(!t.current.includes("floating")&&!((r=e.getAttribute("role"))!=null&&r.includes("dialog")))return;const n=Gr(),o=Iu(e,n).filter(s=>{const l=s.getAttribute("data-tabindex")||"";return Vi(s,n)||s.hasAttribute("data-tabindex")&&!l.startsWith("-")}),i=e.getAttribute("tabindex");t.current.includes("floating")||o.length===0?i!=="0"&&e.setAttribute("tabindex","0"):(i!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const of=p.forwardRef(function(t,r){return u.jsx("button",{...t,type:"button",ref:r,tabIndex:-1,style:wa})});function sf(e){const{context:t,children:r,disabled:n=!1,order:a=["content"],guards:o=!0,initialFocus:i=0,returnFocus:s=!0,restoreFocus:l=!1,modal:c=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:m=!0,outsideElementsInert:h=!1,getInsideElements:f=()=>[]}=e,{open:b,onOpenChange:v,events:y,dataRef:k,elements:{domReference:N,floating:w}}=t,R=Ne(()=>{var G;return(G=k.current.floatingContext)==null?void 0:G.nodeId}),_=Ne(f),I=typeof i=="number"&&i<0,j=zn(N)&&I,E=Qd(),z=E?o:!0,P=!z||E&&h,V=Oe(a),A=Oe(i),O=Oe(s),x=nr(),C=tf(),S=p.useRef(null),M=p.useRef(null),g=p.useRef(!1),D=p.useRef(!1),T=p.useRef(-1),L=p.useRef(-1),$=C!=null,F=Or(w),Q=Ne(function(G){return G===void 0&&(G=F),G?ba(G,Gr()):[]}),U=Ne(G=>{const re=Q(G);return V.current.map(te=>N&&te==="reference"?N:F&&te==="floating"?F:re).filter(Boolean).flat()});p.useEffect(()=>{if(n||!c)return;function G(te){if(te.key==="Tab"){Te(F,Ue(je(F)))&&Q().length===0&&!j&&Ie(te);const ue=U(),be=nt(te);V.current[0]==="reference"&&be===N&&(Ie(te),te.shiftKey?kt(ue[ue.length-1]):kt(ue[1])),V.current[1]==="floating"&&be===F&&te.shiftKey&&(Ie(te),kt(ue[0]))}}const re=je(F);return re.addEventListener("keydown",G),()=>{re.removeEventListener("keydown",G)}},[n,N,F,c,V,j,Q,U]),p.useEffect(()=>{if(n||!w)return;function G(re){const te=nt(re),be=Q().indexOf(te);be!==-1&&(T.current=be)}return w.addEventListener("focusin",G),()=>{w.removeEventListener("focusin",G)}},[n,w,Q]),p.useEffect(()=>{if(n||!m)return;function G(){D.current=!0,setTimeout(()=>{D.current=!1})}function re(be){const ie=be.relatedTarget,Se=be.currentTarget,we=nt(be);queueMicrotask(()=>{const _e=R(),Ke=!(Te(N,ie)||Te(w,ie)||Te(ie,w)||Te(C==null?void 0:C.portalNode,ie)||ie!=null&&ie.hasAttribute(Vt("focus-guard"))||x&&(Ct(x.nodesRef.current,_e).find(K=>{var oe,B;return Te((oe=K.context)==null?void 0:oe.elements.floating,ie)||Te((B=K.context)==null?void 0:B.elements.domReference,ie)})||ao(x.nodesRef.current,_e).find(K=>{var oe,B,me;return[(oe=K.context)==null?void 0:oe.elements.floating,Or((B=K.context)==null?void 0:B.elements.floating)].includes(ie)||((me=K.context)==null?void 0:me.elements.domReference)===ie})));if(Se===N&&F&&Co(F,V),l&&Se!==N&&!(we!=null&&we.isConnected)&&Ue(je(F))===je(F).body){ke(F)&&F.focus();const K=T.current,oe=Q(),B=oe[K]||oe[oe.length-1]||F;ke(B)&&B.focus()}if(k.current.insideReactTree){k.current.insideReactTree=!1;return}(j||!c)&&ie&&Ke&&!D.current&&ie!==Mo()&&(g.current=!0,v(!1,be,"focus-out"))})}const te=!!(!x&&C);function ue(){De(L),k.current.insideReactTree=!0,L.current=window.setTimeout(()=>{k.current.insideReactTree=!1})}if(w&&ke(N))return N.addEventListener("focusout",re),N.addEventListener("pointerdown",G),w.addEventListener("focusout",re),te&&w.addEventListener("focusout",ue,!0),()=>{N.removeEventListener("focusout",re),N.removeEventListener("pointerdown",G),w.removeEventListener("focusout",re),te&&w.removeEventListener("focusout",ue,!0)}},[n,N,w,F,c,x,C,v,m,l,Q,j,R,V,k]);const X=p.useRef(null),H=p.useRef(null),ee=No([X,C==null?void 0:C.beforeInsideRef]),Z=No([H,C==null?void 0:C.afterInsideRef]);p.useEffect(()=>{var G,re;if(n||!w)return;const te=Array.from((C==null||(G=C.portalNode)==null?void 0:G.querySelectorAll("["+Vt("portal")+"]"))||[]),be=(re=(x?ao(x.nodesRef.current,R()):[]).find(we=>{var _e;return zn(((_e=we.context)==null?void 0:_e.elements.domReference)||null)}))==null||(re=re.context)==null?void 0:re.elements.domReference,ie=[w,be,...te,..._(),S.current,M.current,X.current,H.current,C==null?void 0:C.beforeOutsideRef.current,C==null?void 0:C.afterOutsideRef.current,V.current.includes("reference")||j?N:null].filter(we=>we!=null),Se=c||j?wo(ie,!P,P):wo(ie);return()=>{Se()}},[n,N,w,c,V,C,j,z,P,x,R,_]),xe(()=>{if(n||!ke(F))return;const G=je(F),re=Ue(G);queueMicrotask(()=>{const te=U(F),ue=A.current,be=(typeof ue=="number"?te[ue]:ue.current)||F,ie=Te(F,re);!I&&!ie&&b&&kt(be,{preventScroll:be===F})})},[n,b,F,I,U,A]),xe(()=>{if(n||!F)return;const G=je(F),re=Ue(G);nf(re);function te(ie){let{reason:Se,event:we,nested:_e}=ie;if(["hover","safe-polygon"].includes(Se)&&we.type==="mouseleave"&&(g.current=!0),Se==="outside-press")if(_e)g.current=!1;else if(qi(we)||Wi(we))g.current=!1;else{let Ke=!1;document.createElement("div").focus({get preventScroll(){return Ke=!0,!1}}),Ke?g.current=!1:g.current=!0}}y.on("openchange",te);const ue=G.createElement("span");ue.setAttribute("tabindex","-1"),ue.setAttribute("aria-hidden","true"),Object.assign(ue.style,wa),$&&N&&N.insertAdjacentElement("afterend",ue);function be(){if(typeof O.current=="boolean"){const ie=N||Mo();return ie&&ie.isConnected?ie:ue}return O.current.current||ue}return()=>{y.off("openchange",te);const ie=Ue(G),Se=Te(w,ie)||x&&Ct(x.nodesRef.current,R(),!1).some(_e=>{var Ke;return Te((Ke=_e.context)==null?void 0:Ke.elements.floating,ie)}),we=be();queueMicrotask(()=>{const _e=af(we);O.current&&!g.current&&ke(_e)&&(!(_e!==ie&&ie!==G.body)||Se)&&_e.focus({preventScroll:!0}),ue.remove()})}},[n,w,F,O,k,y,x,$,N,R]),p.useEffect(()=>(queueMicrotask(()=>{g.current=!1}),()=>{queueMicrotask(ka)}),[n]),xe(()=>{if(!n&&C)return C.setFocusManagerState({modal:c,closeOnFocusOut:m,open:b,onOpenChange:v,domReference:N}),()=>{C.setFocusManagerState(null)}},[n,C,c,b,v,m,N]),xe(()=>{n||F&&Co(F,V)},[n,F,V]);function le(G){return n||!d||!c?null:u.jsx(of,{ref:G==="start"?S:M,onClick:re=>v(!1,re.nativeEvent),children:typeof d=="string"?d:"Dismiss"})}const fe=!n&&z&&(c?!j:!0)&&($||c);return u.jsxs(u.Fragment,{children:[fe&&u.jsx(ko,{"data-type":"inside",ref:ee,onFocus:G=>{if(c){const te=U();kt(a[0]==="reference"?te[0]:te[te.length-1])}else if(C!=null&&C.preserveTabOrder&&C.portalNode)if(g.current=!1,io(G,C.portalNode)){const te=Uu(N);te==null||te.focus()}else{var re;(re=C.beforeOutsideRef.current)==null||re.focus()}}}),!j&&le("start"),r,le("end"),fe&&u.jsx(ko,{"data-type":"inside",ref:Z,onFocus:G=>{if(c)kt(U()[0]);else if(C!=null&&C.preserveTabOrder&&C.portalNode)if(m&&(g.current=!0),io(G,C.portalNode)){const te=Xu(N);te==null||te.focus()}else{var re;(re=C.afterOutsideRef.current)==null||re.focus()}}})]})}function So(e){return ke(e.target)&&e.target.tagName==="BUTTON"}function lf(e){return ke(e.target)&&e.target.tagName==="A"}function Ro(e){return va(e)}function cf(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,dataRef:a,elements:{domReference:o}}=e,{enabled:i=!0,event:s="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0,stickIfOpen:m=!0}=t,h=p.useRef(),f=p.useRef(!1),b=p.useMemo(()=>({onPointerDown(v){h.current=v.pointerType},onMouseDown(v){const y=h.current;v.button===0&&s!=="click"&&(Zt(y,!0)&&c||(r&&l&&(!(a.current.openEvent&&m)||a.current.openEvent.type==="mousedown")?n(!1,v.nativeEvent,"click"):(v.preventDefault(),n(!0,v.nativeEvent,"click"))))},onClick(v){const y=h.current;if(s==="mousedown"&&h.current){h.current=void 0;return}Zt(y,!0)&&c||(r&&l&&(!(a.current.openEvent&&m)||a.current.openEvent.type==="click")?n(!1,v.nativeEvent,"click"):n(!0,v.nativeEvent,"click"))},onKeyDown(v){h.current=void 0,!(v.defaultPrevented||!d||So(v))&&(v.key===" "&&!Ro(o)&&(v.preventDefault(),f.current=!0),!lf(v)&&v.key==="Enter"&&n(!(r&&l),v.nativeEvent,"click"))},onKeyUp(v){v.defaultPrevented||!d||So(v)||Ro(o)||v.key===" "&&f.current&&(f.current=!1,n(!(r&&l),v.nativeEvent,"click"))}}),[a,o,s,c,d,n,r,m,l]);return p.useMemo(()=>i?{reference:b}:{},[i,b])}const uf={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},df={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},_o=e=>{var t,r;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(r=e==null?void 0:e.outsidePress)!=null?r:!0}};function ff(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,elements:a,dataRef:o}=e,{enabled:i=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:d=!1,referencePressEvent:m="pointerdown",ancestorScroll:h=!1,bubbles:f,capture:b}=t,v=nr(),y=Ne(typeof l=="function"?l:()=>!1),k=typeof l=="function"?y:l,N=p.useRef(!1),{escapeKey:w,outsidePress:R}=_o(f),{escapeKey:_,outsidePress:I}=_o(b),j=p.useRef(!1),E=Ne(x=>{var C;if(!r||!i||!s||x.key!=="Escape"||j.current)return;const S=(C=o.current.floatingContext)==null?void 0:C.nodeId,M=v?Ct(v.nodesRef.current,S):[];if(!w&&(x.stopPropagation(),M.length>0)){let g=!0;if(M.forEach(D=>{var T;if((T=D.context)!=null&&T.open&&!D.context.dataRef.current.__escapeKeyBubbles){g=!1;return}}),!g)return}n(!1,zu(x)?x.nativeEvent:x,"escape-key")}),z=Ne(x=>{var C;const S=()=>{var M;E(x),(M=nt(x))==null||M.removeEventListener("keydown",S)};(C=nt(x))==null||C.addEventListener("keydown",S)}),P=Ne(x=>{var C;const S=o.current.insideReactTree;o.current.insideReactTree=!1;const M=N.current;if(N.current=!1,c==="click"&&M||S||typeof k=="function"&&!k(x))return;const g=nt(x),D="["+Vt("inert")+"]",T=je(a.floating).querySelectorAll(D);let L=he(g)?g:null;for(;L&&!at(L);){const U=ot(L);if(at(U)||!he(U))break;L=U}if(T.length&&he(g)&&!Au(g)&&!Te(g,a.floating)&&Array.from(T).every(U=>!Te(L,U)))return;if(ke(g)&&O){const U=at(g),X=We(g),H=/auto|scroll/,ee=U||H.test(X.overflowX),Z=U||H.test(X.overflowY),le=ee&&g.clientWidth>0&&g.scrollWidth>g.clientWidth,fe=Z&&g.clientHeight>0&&g.scrollHeight>g.clientHeight,G=X.direction==="rtl",re=fe&&(G?x.offsetX<=g.offsetWidth-g.clientWidth:x.offsetX>g.clientWidth),te=le&&x.offsetY>g.clientHeight;if(re||te)return}const $=(C=o.current.floatingContext)==null?void 0:C.nodeId,F=v&&Ct(v.nodesRef.current,$).some(U=>{var X;return ln(x,(X=U.context)==null?void 0:X.elements.floating)});if(ln(x,a.floating)||ln(x,a.domReference)||F)return;const Q=v?Ct(v.nodesRef.current,$):[];if(Q.length>0){let U=!0;if(Q.forEach(X=>{var H;if((H=X.context)!=null&&H.open&&!X.context.dataRef.current.__outsidePressBubbles){U=!1;return}}),!U)return}n(!1,x,"outside-press")}),V=Ne(x=>{var C;const S=()=>{var M;P(x),(M=nt(x))==null||M.removeEventListener(c,S)};(C=nt(x))==null||C.addEventListener(c,S)});p.useEffect(()=>{if(!r||!i)return;o.current.__escapeKeyBubbles=w,o.current.__outsidePressBubbles=R;let x=-1;function C(T){n(!1,T,"ancestor-scroll")}function S(){window.clearTimeout(x),j.current=!0}function M(){x=window.setTimeout(()=>{j.current=!1},Hr()?5:0)}const g=je(a.floating);s&&(g.addEventListener("keydown",_?z:E,_),g.addEventListener("compositionstart",S),g.addEventListener("compositionend",M)),k&&g.addEventListener(c,I?V:P,I);let D=[];return h&&(he(a.domReference)&&(D=gt(a.domReference)),he(a.floating)&&(D=D.concat(gt(a.floating))),!he(a.reference)&&a.reference&&a.reference.contextElement&&(D=D.concat(gt(a.reference.contextElement)))),D=D.filter(T=>{var L;return T!==((L=g.defaultView)==null?void 0:L.visualViewport)}),D.forEach(T=>{T.addEventListener("scroll",C,{passive:!0})}),()=>{s&&(g.removeEventListener("keydown",_?z:E,_),g.removeEventListener("compositionstart",S),g.removeEventListener("compositionend",M)),k&&g.removeEventListener(c,I?V:P,I),D.forEach(T=>{T.removeEventListener("scroll",C)}),window.clearTimeout(x)}},[o,a,s,k,c,r,n,h,i,w,R,E,_,z,P,I,V]),p.useEffect(()=>{o.current.insideReactTree=!1},[o,k,c]);const A=p.useMemo(()=>({onKeyDown:E,...d&&{[uf[m]]:x=>{n(!1,x.nativeEvent,"reference-press")},...m!=="click"&&{onClick(x){n(!1,x.nativeEvent,"reference-press")}}}}),[E,n,d,m]),O=p.useMemo(()=>({onKeyDown:E,onMouseDown(){N.current=!0},onMouseUp(){N.current=!0},[df[c]]:()=>{o.current.insideReactTree=!0}}),[E,c,o]);return p.useMemo(()=>i?{reference:A,floating:O}:{},[i,A,O])}function mf(e){const{open:t=!1,onOpenChange:r,elements:n}=e,a=ts(),o=p.useRef({}),[i]=p.useState(()=>Hd()),s=Xr()!=null,[l,c]=p.useState(n.reference),d=Ne((f,b,v)=>{o.current.openEvent=f?b:void 0,i.emit("openchange",{open:f,event:b,reason:v,nested:s}),r==null||r(f,b,v)}),m=p.useMemo(()=>({setPositionReference:c}),[]),h=p.useMemo(()=>({reference:l||n.reference||null,floating:n.floating||null,domReference:n.reference}),[l,n.reference,n.floating]);return p.useMemo(()=>({dataRef:o,open:t,onOpenChange:d,elements:h,events:i,floatingId:a,refs:m}),[t,d,h,i,a,m])}function hf(e){e===void 0&&(e={});const{nodeId:t}=e,r=mf({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,a=n.elements,[o,i]=p.useState(null),[s,l]=p.useState(null),d=(a==null?void 0:a.domReference)||o,m=p.useRef(null),h=nr();xe(()=>{d&&(m.current=d)},[d]);const f=Dd({...e,elements:{...a,...s&&{reference:s}}}),b=p.useCallback(w=>{const R=he(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),getClientRects:()=>w.getClientRects(),contextElement:w}:w;l(R),f.refs.setReference(R)},[f.refs]),v=p.useCallback(w=>{(he(w)||w===null)&&(m.current=w,i(w)),(he(f.refs.reference.current)||f.refs.reference.current===null||w!==null&&!he(w))&&f.refs.setReference(w)},[f.refs]),y=p.useMemo(()=>({...f.refs,setReference:v,setPositionReference:b,domReference:m}),[f.refs,v,b]),k=p.useMemo(()=>({...f.elements,domReference:d}),[f.elements,d]),N=p.useMemo(()=>({...f,...n,refs:y,elements:k,nodeId:t}),[f,y,k,t,n]);return xe(()=>{n.dataRef.current.floatingContext=N;const w=h==null?void 0:h.nodesRef.current.find(R=>R.id===t);w&&(w.context=N)}),p.useMemo(()=>({...f,context:N,refs:y,elements:k}),[f,y,k,N])}function pn(){return ju()&&Fi()}function gf(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,events:a,dataRef:o,elements:i}=e,{enabled:s=!0,visibleOnly:l=!0}=t,c=p.useRef(!1),d=p.useRef(-1),m=p.useRef(!0);p.useEffect(()=>{if(!s)return;const f=Ve(i.domReference);function b(){!r&&ke(i.domReference)&&i.domReference===Ue(je(i.domReference))&&(c.current=!0)}function v(){m.current=!0}function y(){m.current=!1}return f.addEventListener("blur",b),pn()&&(f.addEventListener("keydown",v,!0),f.addEventListener("pointerdown",y,!0)),()=>{f.removeEventListener("blur",b),pn()&&(f.removeEventListener("keydown",v,!0),f.removeEventListener("pointerdown",y,!0))}},[i.domReference,r,s]),p.useEffect(()=>{if(!s)return;function f(b){let{reason:v}=b;(v==="reference-press"||v==="escape-key")&&(c.current=!0)}return a.on("openchange",f),()=>{a.off("openchange",f)}},[a,s]),p.useEffect(()=>()=>{De(d)},[]);const h=p.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const b=nt(f.nativeEvent);if(l&&he(b)){if(pn()&&!f.relatedTarget){if(!m.current&&!va(b))return}else if(!Vu(b))return}n(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const b=f.relatedTarget,v=f.nativeEvent,y=he(b)&&b.hasAttribute(Vt("focus-guard"))&&b.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{var k;const N=Ue(i.domReference?i.domReference.ownerDocument:document);!b&&N===i.domReference||Te((k=o.current.floatingContext)==null?void 0:k.refs.floating.current,N)||Te(i.domReference,N)||y||n(!1,v,"focus")})}}),[o,i.domReference,n,l]);return p.useMemo(()=>s?{reference:h}:{},[s,h])}function bn(e,t,r){const n=new Map,a=r==="item";let o=e;if(a&&e){const{[ho]:i,[go]:s,...l}=e;o=l}return{...r==="floating"&&{tabIndex:-1,[Fd]:""},...o,...t.map(i=>{const s=i?i[r]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((i,s)=>(s&&Object.entries(s).forEach(l=>{let[c,d]=l;if(!(a&&[ho,go].includes(c)))if(c.indexOf("on")===0){if(n.has(c)||n.set(c,[]),typeof d=="function"){var m;(m=n.get(c))==null||m.push(d),i[c]=function(){for(var h,f=arguments.length,b=new Array(f),v=0;v<f;v++)b[v]=arguments[v];return(h=n.get(c))==null?void 0:h.map(y=>y(...b)).find(y=>y!==void 0)}}}else i[c]=d}),i),{})}}function pf(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),r=e.map(s=>s==null?void 0:s.floating),n=e.map(s=>s==null?void 0:s.item),a=p.useCallback(s=>bn(s,e,"reference"),t),o=p.useCallback(s=>bn(s,e,"floating"),r),i=p.useCallback(s=>bn(s,e,"item"),n);return p.useMemo(()=>({getReferenceProps:a,getFloatingProps:o,getItemProps:i}),[a,o,i])}const bf="Escape";function Qr(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function yr(e,t){return Qr(t,e===es||e===Ur,e===tr||e===rr)}function vn(e,t,r){return Qr(t,e===Ur,r?e===tr:e===rr)||e==="Enter"||e===" "||e===""}function Do(e,t,r){return Qr(t,r?e===tr:e===rr,e===Ur)}function To(e,t,r,n){const a=r?e===rr:e===tr,o=e===es;return t==="both"||t==="horizontal"&&n&&n>1?e===bf:Qr(t,a,o)}function vf(e,t){const{open:r,onOpenChange:n,elements:a,floatingId:o}=e,{listRef:i,activeIndex:s,onNavigate:l=()=>{},enabled:c=!0,selectedIndex:d=null,allowEscape:m=!1,loop:h=!1,nested:f=!1,rtl:b=!1,virtual:v=!1,focusItemOnOpen:y="auto",focusItemOnHover:k=!0,openOnArrowKeyDown:N=!0,disabledIndices:w=void 0,orientation:R="vertical",parentOrientation:_,cols:I=1,scrollItemIntoView:j=!0,virtualItemRef:E,itemSizes:z,dense:P=!1}=t,V=Or(a.floating),A=Oe(V),O=Xr(),x=nr();xe(()=>{e.dataRef.current.orientation=R},[e,R]);const C=Ne(()=>{l(g.current===-1?null:g.current)}),S=zn(a.domReference),M=p.useRef(y),g=p.useRef(d??-1),D=p.useRef(null),T=p.useRef(!0),L=p.useRef(C),$=p.useRef(!!a.floating),F=p.useRef(r),Q=p.useRef(!1),U=p.useRef(!1),X=Oe(w),H=Oe(r),ee=Oe(j),Z=Oe(d),[le,fe]=p.useState(),[G,re]=p.useState(),te=Ne(()=>{function K(ye){if(v){var Me;(Me=ye.id)!=null&&Me.endsWith("-fui-option")&&(ye.id=o+"-"+Math.random().toString(16).slice(2,10)),fe(ye.id),x==null||x.events.emit("virtualfocus",ye),E&&(E.current=ye)}else kt(ye,{sync:Q.current,preventScroll:!0})}const oe=i.current[g.current],B=U.current;oe&&K(oe),(Q.current?ye=>ye():requestAnimationFrame)(()=>{const ye=i.current[g.current]||oe;if(!ye)return;oe||K(ye);const Me=ee.current;Me&&be&&(B||!T.current)&&(ye.scrollIntoView==null||ye.scrollIntoView(typeof Me=="boolean"?{block:"nearest",inline:"nearest"}:Me))})});xe(()=>{c&&(r&&a.floating?M.current&&d!=null&&(U.current=!0,g.current=d,C()):$.current&&(g.current=-1,L.current()))},[c,r,a.floating,d,C]),xe(()=>{if(c&&r&&a.floating)if(s==null){if(Q.current=!1,Z.current!=null)return;if($.current&&(g.current=-1,te()),(!F.current||!$.current)&&M.current&&(D.current!=null||M.current===!0&&D.current==null)){let K=0;const oe=()=>{i.current[0]==null?(K<2&&(K?requestAnimationFrame:queueMicrotask)(oe),K++):(g.current=D.current==null||vn(D.current,R,b)||f?cn(i,X.current):oo(i,X.current),D.current=null,C())};oe()}}else Xt(i,s)||(g.current=s,te(),U.current=!1)},[c,r,a.floating,s,Z,f,i,R,b,C,te,X]),xe(()=>{var K;if(!c||a.floating||!x||v||!$.current)return;const oe=x.nodesRef.current,B=(K=oe.find(Me=>Me.id===O))==null||(K=K.context)==null?void 0:K.elements.floating,me=Ue(je(a.floating)),ye=oe.some(Me=>Me.context&&Te(Me.context.elements.floating,me));B&&!ye&&T.current&&B.focus({preventScroll:!0})},[c,a.floating,x,O,v]),xe(()=>{if(!c||!x||!v||O)return;function K(oe){re(oe.id),E&&(E.current=oe)}return x.events.on("virtualfocus",K),()=>{x.events.off("virtualfocus",K)}},[c,x,v,O,E]),xe(()=>{L.current=C,F.current=r,$.current=!!a.floating}),xe(()=>{r||(D.current=null,M.current=y)},[r,y]);const ue=s!=null,be=p.useMemo(()=>{function K(B){if(!H.current)return;const me=i.current.indexOf(B);me!==-1&&g.current!==me&&(g.current=me,C())}return{onFocus(B){let{currentTarget:me}=B;Q.current=!0,K(me)},onClick:B=>{let{currentTarget:me}=B;return me.focus({preventScroll:!0})},onMouseMove(B){let{currentTarget:me}=B;Q.current=!0,U.current=!1,k&&K(me)},onPointerLeave(B){let{pointerType:me}=B;if(!(!T.current||me==="touch")&&(Q.current=!0,!!k&&(g.current=-1,C(),!v))){var ye;(ye=A.current)==null||ye.focus({preventScroll:!0})}}}},[H,A,k,i,C,v]),ie=p.useCallback(()=>{var K;return _??(x==null||(K=x.nodesRef.current.find(oe=>oe.id===O))==null||(K=K.context)==null||(K=K.dataRef)==null?void 0:K.current.orientation)},[O,x,_]),Se=Ne(K=>{if(T.current=!1,Q.current=!0,K.which===229||!H.current&&K.currentTarget===A.current)return;if(f&&To(K.key,R,b,I)){yr(K.key,ie())||Ie(K),n(!1,K.nativeEvent,"list-navigation"),ke(a.domReference)&&(v?x==null||x.events.emit("virtualfocus",a.domReference):a.domReference.focus());return}const oe=g.current,B=cn(i,w),me=oo(i,w);if(S||(K.key==="Home"&&(Ie(K),g.current=B,C()),K.key==="End"&&(Ie(K),g.current=me,C())),I>1){const ye=z||Array.from({length:i.current.length},()=>({width:1,height:1})),Me=Bu(ye,I,P),Wt=Me.findIndex(qe=>qe!=null&&!kr(i,qe,w)),lr=Me.reduce((qe,yt,cr)=>yt!=null&&!kr(i,yt,w)?cr:qe,-1),Yt=Me[Hu({current:Me.map(qe=>qe!=null?i.current[qe]:null)},{event:K,orientation:R,loop:h,rtl:b,cols:I,disabledIndices:Ku([...(typeof w!="function"?w:null)||i.current.map((qe,yt)=>kr(i,yt,w)?yt:void 0),void 0],Me),minIndex:Wt,maxIndex:lr,prevIndex:Gu(g.current>me?B:g.current,ye,Me,I,K.key===Ur?"bl":K.key===(b?tr:rr)?"tr":"tl"),stopEvent:!0})];if(Yt!=null&&(g.current=Yt,C()),R==="both")return}if(yr(K.key,R)){if(Ie(K),r&&!v&&Ue(K.currentTarget.ownerDocument)===K.currentTarget){g.current=vn(K.key,R,b)?B:me,C();return}vn(K.key,R,b)?h?g.current=oe>=me?m&&oe!==i.current.length?-1:B:Pe(i,{startingIndex:oe,disabledIndices:w}):g.current=Math.min(me,Pe(i,{startingIndex:oe,disabledIndices:w})):h?g.current=oe<=B?m&&oe!==-1?i.current.length:me:Pe(i,{startingIndex:oe,decrement:!0,disabledIndices:w}):g.current=Math.max(B,Pe(i,{startingIndex:oe,decrement:!0,disabledIndices:w})),Xt(i,g.current)&&(g.current=-1),C()}}),we=p.useMemo(()=>v&&r&&ue&&{"aria-activedescendant":G||le},[v,r,ue,G,le]),_e=p.useMemo(()=>({"aria-orientation":R==="both"?void 0:R,...S?{}:we,onKeyDown:Se,onPointerMove(){T.current=!0}}),[we,Se,R,S]),Ke=p.useMemo(()=>{function K(B){y==="auto"&&qi(B.nativeEvent)&&(M.current=!0)}function oe(B){M.current=y,y==="auto"&&Wi(B.nativeEvent)&&(M.current=!0)}return{...we,onKeyDown(B){T.current=!1;const me=B.key.startsWith("Arrow"),ye=["Home","End"].includes(B.key),Me=me||ye,Wt=Do(B.key,R,b),lr=To(B.key,R,b,I),Yt=Do(B.key,ie(),b),qe=yr(B.key,R),yt=(f?Yt:qe)||B.key==="Enter"||B.key.trim()==="";if(v&&r){const ur=x==null?void 0:x.nodesRef.current.find(dr=>dr.parentId==null),st=x&&ur?Lu(x.nodesRef.current,ur.id):null;if(Me&&st&&E){const dr=new KeyboardEvent("keydown",{key:B.key,bubbles:!0});if(Wt||lr){var cr,Oa;const zs=((cr=st.context)==null?void 0:cr.elements.domReference)===B.currentTarget,Va=lr&&!zs?(Oa=st.context)==null?void 0:Oa.elements.domReference:Wt?i.current.find(La=>(La==null?void 0:La.id)===le):null;Va&&(Ie(B),Va.dispatchEvent(dr),re(void 0))}if((qe||ye)&&st.context&&st.context.open&&st.parentId&&B.currentTarget!==st.context.elements.domReference){var Aa;Ie(B),(Aa=st.context.elements.domReference)==null||Aa.dispatchEvent(dr);return}}return Se(B)}if(!(!r&&!N&&me)){if(yt){const ur=yr(B.key,ie());D.current=f&&ur?null:B.key}if(f){Yt&&(Ie(B),r?(g.current=cn(i,X.current),C()):n(!0,B.nativeEvent,"list-navigation"));return}qe&&(d!=null&&(g.current=d),Ie(B),!r&&N?n(!0,B.nativeEvent,"list-navigation"):Se(B),r&&C())}},onFocus(){r&&!v&&(g.current=-1,C())},onPointerDown:oe,onPointerEnter:oe,onMouseDown:K,onClick:K}},[le,we,I,Se,X,y,i,f,C,n,r,N,R,ie,b,d,x,v,E]);return p.useMemo(()=>c?{reference:Ke,floating:_e,item:be}:{},[c,Ke,_e,be])}const yf=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function xf(e,t){var r,n;t===void 0&&(t={});const{open:a,elements:o,floatingId:i}=e,{enabled:s=!0,role:l="dialog"}=t,c=ts(),d=((r=o.domReference)==null?void 0:r.id)||c,m=p.useMemo(()=>{var N;return((N=Or(o.floating))==null?void 0:N.id)||i},[o.floating,i]),h=(n=yf.get(l))!=null?n:l,b=Xr()!=null,v=p.useMemo(()=>h==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:a?m:void 0}:{"aria-expanded":a?"true":"false","aria-haspopup":h==="alertdialog"?"dialog":h,"aria-controls":a?m:void 0,...h==="listbox"&&{role:"combobox"},...h==="menu"&&{id:d},...h==="menu"&&b&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[h,m,b,a,d,l]),y=p.useMemo(()=>{const N={id:m,...h&&{role:h}};return h==="tooltip"||l==="label"?N:{...N,...h==="menu"&&{"aria-labelledby":d}}},[h,m,d,l]),k=p.useCallback(N=>{let{active:w,selected:R}=N;const _={role:"option",...w&&{id:m+"-fui-option"}};switch(l){case"select":case"combobox":return{..._,"aria-selected":R}}return{}},[m,l]);return p.useMemo(()=>s?{reference:v,floating:y,item:k}:{},[s,v,y,k])}function wf(e,t){var r;const{open:n,dataRef:a}=e,{listRef:o,activeIndex:i,onMatch:s,onTypingChange:l,enabled:c=!0,findMatch:d=null,resetMs:m=750,ignoreKeys:h=[],selectedIndex:f=null}=t,b=p.useRef(-1),v=p.useRef(""),y=p.useRef((r=f??i)!=null?r:-1),k=p.useRef(null),N=Ne(s),w=Ne(l),R=Oe(d),_=Oe(h);xe(()=>{n&&(De(b),k.current=null,v.current="")},[n]),xe(()=>{if(n&&v.current===""){var P;y.current=(P=f??i)!=null?P:-1}},[n,f,i]);const I=Ne(P=>{P?a.current.typing||(a.current.typing=P,w(P)):a.current.typing&&(a.current.typing=P,w(P))}),j=Ne(P=>{function V(S,M,g){const D=R.current?R.current(M,g):M.find(T=>(T==null?void 0:T.toLocaleLowerCase().indexOf(g.toLocaleLowerCase()))===0);return D?S.indexOf(D):-1}const A=o.current;if(v.current.length>0&&v.current[0]!==" "&&(V(A,A,v.current)===-1?I(!1):P.key===" "&&Ie(P)),A==null||_.current.includes(P.key)||P.key.length!==1||P.ctrlKey||P.metaKey||P.altKey)return;n&&P.key!==" "&&(Ie(P),I(!0)),A.every(S=>{var M,g;return S?((M=S[0])==null?void 0:M.toLocaleLowerCase())!==((g=S[1])==null?void 0:g.toLocaleLowerCase()):!0})&&v.current===P.key&&(v.current="",y.current=k.current),v.current+=P.key,De(b),b.current=window.setTimeout(()=>{v.current="",y.current=k.current,I(!1)},m);const x=y.current,C=V(A,[...A.slice((x||0)+1),...A.slice(0,(x||0)+1)],v.current);C!==-1?(N(C),k.current=C):P.key!==" "&&(v.current="",I(!1))}),E=p.useMemo(()=>({onKeyDown:j}),[j]),z=p.useMemo(()=>({onKeyDown:j,onKeyUp(P){P.key===" "&&I(!1)}}),[j,I]);return p.useMemo(()=>c?{reference:E,floating:z}:{},[c,E,z])}function ns(e,t,r){return r===void 0&&(r=!0),e.filter(a=>{var o;return a.parentId===t&&(!r||((o=a.context)==null?void 0:o.open))}).flatMap(a=>[a,...ns(e,a.id,r)])}function Io(e,t){const[r,n]=e;let a=!1;const o=t.length;for(let i=0,s=o-1;i<o;s=i++){const[l,c]=t[i]||[0,0],[d,m]=t[s]||[0,0];c>=n!=m>=n&&r<=(d-l)*(n-c)/(m-c)+l&&(a=!a)}return a}function kf(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Nf(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:r=!1,requireIntent:n=!0}=e,a={current:-1};let o=!1,i=null,s=null,l=typeof performance<"u"?performance.now():0;function c(m,h){const f=performance.now(),b=f-l;if(i===null||s===null||b===0)return i=m,s=h,l=f,null;const v=m-i,y=h-s,N=Math.sqrt(v*v+y*y)/b;return i=m,s=h,l=f,N}const d=m=>{let{x:h,y:f,placement:b,elements:v,onClose:y,nodeId:k,tree:N}=m;return function(R){function _(){De(a),y()}if(De(a),!v.domReference||!v.floating||b==null||h==null||f==null)return;const{clientX:I,clientY:j}=R,E=[I,j],z=Ud(R),P=R.type==="mouseleave",V=hn(v.floating,z),A=hn(v.domReference,z),O=v.domReference.getBoundingClientRect(),x=v.floating.getBoundingClientRect(),C=b.split("-")[0],S=h>x.right-x.width/2,M=f>x.bottom-x.height/2,g=kf(E,O),D=x.width>O.width,T=x.height>O.height,L=(D?O:x).left,$=(D?O:x).right,F=(T?O:x).top,Q=(T?O:x).bottom;if(V&&(o=!0,!P))return;if(A&&(o=!1),A&&!P){o=!0;return}if(P&&he(R.relatedTarget)&&hn(v.floating,R.relatedTarget)||N&&ns(N.nodesRef.current,k).length)return;if(C==="top"&&f>=O.bottom-1||C==="bottom"&&f<=O.top+1||C==="left"&&h>=O.right-1||C==="right"&&h<=O.left+1)return _();let U=[];switch(C){case"top":U=[[L,O.top+1],[L,x.bottom-1],[$,x.bottom-1],[$,O.top+1]];break;case"bottom":U=[[L,x.top+1],[L,O.bottom-1],[$,O.bottom-1],[$,x.top+1]];break;case"left":U=[[x.right-1,Q],[x.right-1,F],[O.left+1,F],[O.left+1,Q]];break;case"right":U=[[O.right-1,Q],[O.right-1,F],[x.left+1,F],[x.left+1,Q]];break}function X(H){let[ee,Z]=H;switch(C){case"top":{const le=[D?ee+t/2:S?ee+t*4:ee-t*4,Z+t+1],fe=[D?ee-t/2:S?ee+t*4:ee-t*4,Z+t+1],G=[[x.left,S||D?x.bottom-t:x.top],[x.right,S?D?x.bottom-t:x.top:x.bottom-t]];return[le,fe,...G]}case"bottom":{const le=[D?ee+t/2:S?ee+t*4:ee-t*4,Z-t],fe=[D?ee-t/2:S?ee+t*4:ee-t*4,Z-t],G=[[x.left,S||D?x.top+t:x.bottom],[x.right,S?D?x.top+t:x.bottom:x.top+t]];return[le,fe,...G]}case"left":{const le=[ee+t+1,T?Z+t/2:M?Z+t*4:Z-t*4],fe=[ee+t+1,T?Z-t/2:M?Z+t*4:Z-t*4];return[...[[M||T?x.right-t:x.left,x.top],[M?T?x.right-t:x.left:x.right-t,x.bottom]],le,fe]}case"right":{const le=[ee-t,T?Z+t/2:M?Z+t*4:Z-t*4],fe=[ee-t,T?Z-t/2:M?Z+t*4:Z-t*4],G=[[M||T?x.left+t:x.right,x.top],[M?T?x.left+t:x.right:x.left+t,x.bottom]];return[le,fe,...G]}}}if(!Io([I,j],U)){if(o&&!g)return _();if(!P&&n){const H=c(R.clientX,R.clientY);if(H!==null&&H<.1)return _()}Io([I,j],X([h,f]))?!o&&n&&(a.current=window.setTimeout(_,40)):_()}}};return d.__options={blockPointerEvents:r},d}const Mf=({arrowRef:e,placement:t})=>{const r=[];return r.push(Id(8)),r.push(t==="auto"?Ed():Pd()),r.push(jd({padding:8})),e!=null&&e.current&&r.push(Od({element:e.current})),r},Cf=({placement:e})=>e==="auto"?void 0:e,Sf=({placement:e})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[e.split("-")[0]],as=({open:e,arrowRef:t,placement:r="top",setOpen:n})=>hf({placement:Cf({placement:r}),open:e,onOpenChange:n,whileElementsMounted:Qi,middleware:Mf({placement:r,arrowRef:t})}),os=({context:e,trigger:t,role:r="tooltip",interactions:n=[]})=>pf([cf(e,{enabled:t==="click"}),Kd(e,{enabled:t==="hover",handleClose:Nf()}),ff(e),xf(e,{role:r}),...n]);function is({animation:e="duration-300",arrow:t=!0,children:r,className:n,content:a,placement:o="top",style:i="dark",theme:s,trigger:l="hover",minWidth:c,...d}){const m=p.useRef(null),[h,f]=p.useState(!1),b=as({open:h,placement:o,arrowRef:m,setOpen:f}),{context:v,middlewareData:{arrow:{x:y,y:k}={}},refs:N,strategy:w,update:R,x:_,y:I}=b,j=gf(v),{getFloatingProps:E,getReferenceProps:z}=os({context:v,role:"tooltip",trigger:l,interactions:[j]});return p.useEffect(()=>{if(N.reference.current&&N.floating.current&&h)return Qi(N.reference.current,N.floating.current,R)},[h,N.floating,N.reference,R]),u.jsxs(u.Fragment,{children:[u.jsx("div",{ref:N.setReference,className:s.target,"data-testid":"flowbite-tooltip-target",...z(),children:r}),u.jsxs("div",{ref:N.setFloating,"data-testid":"flowbite-tooltip",...E({className:Ce(s.base,e&&`${s.animation} ${e}`,!h&&s.hidden,s.style[i],n),style:{position:w,top:I??" ",left:_??" ",minWidth:c},...d}),children:[u.jsx("div",{className:s.content,children:a}),t&&u.jsx("div",{className:Ce(s.arrow.base,i==="dark"&&s.arrow.style.dark,i==="light"&&s.arrow.style.light,i==="auto"&&s.arrow.style.auto),"data-testid":"flowbite-tooltip-arrow",ref:m,style:{top:k??" ",left:y??" ",right:" ",bottom:" ",[Sf({placement:b.placement})]:s.arrow.placement},children:" "})]})]})}is.displayName="Floating";const Rf={target:"w-fit",animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"absolute z-10 inline-block rounded-lg px-3 py-2 text-sm font-medium shadow-sm",hidden:"invisible opacity-0",style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},content:"relative z-20"};function ss(e){var h,f;const t=$e(),r=Ye([Rf,(h=t.theme)==null?void 0:h.tooltip,e.theme],[ge(t.clearTheme,"tooltip"),e.clearTheme],[ge(t.applyTheme,"tooltip"),e.applyTheme]),{animation:n="duration-300",arrow:a=!0,children:o,className:i,content:s,placement:l="top",style:c="dark",trigger:d="hover",...m}=Fe(e,(f=t.props)==null?void 0:f.tooltip);return u.jsx(is,{animation:n,arrow:a,content:s,placement:l,style:c,theme:r,trigger:d,className:i,...m,children:o})}ss.displayName="Tooltip";const _f={base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},rightIcon:{base:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},input:{base:"block w-full border focus:outline-none focus:ring-1 disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 placeholder-gray-500 focus:border-primary-500 focus:ring-primary-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-primary-500 dark:focus:ring-primary-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withRightIcon:{on:"pr-10",off:""},withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}}}},ls=p.forwardRef((e,t)=>{var f,b;const r=$e(),n=Ye([_f,(f=r.theme)==null?void 0:f.textInput,e.theme],[ge(r.clearTheme,"textInput"),e.clearTheme],[ge(r.applyTheme,"textInput"),e.applyTheme]),{addon:a,className:o,color:i="gray",icon:s,rightIcon:l,shadow:c,sizing:d="md",type:m="text",...h}=Fe(e,(b=r.props)==null?void 0:b.textInput);return u.jsxs("div",{className:Ce(n.base,o),children:[a&&u.jsx("span",{className:n.addon,children:a}),u.jsxs("div",{className:n.field.base,children:[s&&u.jsx("div",{className:n.field.icon.base,children:u.jsx(s,{className:n.field.icon.svg})}),l&&u.jsx("div",{"data-testid":"right-icon",className:n.field.rightIcon.base,children:u.jsx(l,{className:n.field.rightIcon.svg})}),u.jsx("input",{className:Ce(n.field.input.base,n.field.input.colors[i],n.field.input.sizes[d],n.field.input.withIcon[s?"on":"off"],n.field.input.withRightIcon[l?"on":"off"],n.field.input.withAddon[a?"on":"off"],n.field.input.withShadow[c?"on":"off"]),type:m,...h,ref:t})]})]})});ls.displayName="TextInput";const cs=p.forwardRef((e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m5 15 7-7 7 7"})}));cs.displayName="ChevronUpIcon";const us=p.createContext(void 0);function Df(){const e=p.useContext(us);if(!e)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return e}const ds={arrowIcon:"ml-2 h-4 w-4",content:"py-1 focus:outline-none",floating:{animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"z-10 w-fit divide-y divide-gray-100 rounded shadow focus:outline-none",content:"py-1 text-sm text-gray-700 dark:text-gray-200",divider:"my-1 h-px bg-gray-100 dark:bg-gray-600",header:"block px-4 py-2 text-sm text-gray-700 dark:text-gray-200",hidden:"invisible opacity-0",item:{container:"",base:"flex w-full cursor-pointer items-center justify-start px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:bg-gray-600 dark:focus:text-white",icon:"mr-2 h-4 w-4"},style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},target:"w-fit"},inlineWrapper:"flex items-center"},Tf={top:cs,right:ma,bottom:ua,left:Ci};function If({refs:e,children:t,inline:r,theme:n,disabled:a,setButtonWidth:o,getReferenceProps:i,renderTrigger:s,...l}){const c=e.reference,d=i();if(p.useEffect(()=>{c.current&&(o==null||o(c.current.clientWidth))},[c,o]),s){const m=s(n);return p.cloneElement(m,{ref:e.setReference,disabled:a,...d,...m.props})}return r?u.jsx("button",{type:"button",ref:e.setReference,className:n==null?void 0:n.inlineWrapper,disabled:a,...d,children:t}):u.jsx(fa,{...l,disabled:a,type:"button",ref:e.setReference,...d,children:t})}function fs(e){var L,$;const[t,r]=p.useState(!1),[n,a]=p.useState(null),[o,i]=p.useState(null),[s,l]=p.useState(void 0),c=p.useRef([]),d=p.useRef([]),m=$e(),h=Ye([ds,(L=m.theme)==null?void 0:L.dropdown,e.theme],[ge(m.clearTheme,"dropdown"),e.clearTheme],[ge(m.applyTheme,"dropdown"),e.applyTheme]),{children:f,className:b,dismissOnClick:v=!0,enableTypeAhead:y=!0,renderTrigger:k,...N}=Fe(e,($=m.props)==null?void 0:$.dropdown),{placement:w=N.inline?"bottom-start":"bottom",trigger:R="click",label:_,inline:I,arrowIcon:j=!0,...E}=N,z=N["data-testid"]||"flowbite-dropdown-target",P=p.useCallback(F=>{i(F),r(!1)},[]),V=p.useCallback(F=>{t?a(F):P(F)},[t,P]),{context:A,floatingStyles:O,refs:x}=as({open:t,setOpen:r,placement:w}),C=vf(A,{listRef:c,activeIndex:n,selectedIndex:o,onNavigate:a}),S=wf(A,{listRef:d,activeIndex:n,selectedIndex:o,onMatch:V,enabled:y}),{getReferenceProps:M,getFloatingProps:g,getItemProps:D}=os({context:A,role:"menu",trigger:R,interactions:[C,S]}),T=p.useMemo(()=>{const[F]=w.split("-");return Tf[F]??ua},[w]);return u.jsxs(us.Provider,{value:{theme:e.theme,clearTheme:e.clearTheme,applyTheme:e.applyTheme,activeIndex:n,dismissOnClick:v,getItemProps:D,handleSelect:P},children:[u.jsxs(If,{...E,refs:x,inline:I,theme:h,"data-testid":z,className:Ce(h.floating.target,b),setButtonWidth:l,getReferenceProps:M,renderTrigger:k,children:[_,j&&u.jsx(T,{className:h.arrowIcon})]}),t&&u.jsx(sf,{context:A,modal:!1,children:u.jsx("div",{ref:x.setFloating,style:{...O,minWidth:s},"data-testid":"flowbite-dropdown","aria-expanded":t,...g({className:Ce(h.floating.base,h.floating.animation,"duration-100",!t&&h.floating.hidden,h.floating.style.auto,b)}),children:u.jsx(Ld,{elementsRef:c,labelsRef:d,children:u.jsx("ul",{className:h.content,tabIndex:-1,children:f})})})})]})}fs.displayName="Dropdown";const ms=p.forwardRef((e,t)=>{var R,_,I,j,E;const{theme:r,clearTheme:n,applyTheme:a,activeIndex:o,dismissOnClick:i,getItemProps:s,handleSelect:l}=Df(),c=$e(),d=Ye([ds.floating.item,(I=(_=(R=c.theme)==null?void 0:R.dropdown)==null?void 0:_.floating)==null?void 0:I.item,(j=r==null?void 0:r.floating)==null?void 0:j.item,e.theme],[ge(c.clearTheme,"dropdown.floating.item"),ge(n,"floating.item"),e.clearTheme],[ge(c.applyTheme,"dropdown.floating.item"),ge(a,"floating.item"),e.applyTheme]),{children:m,className:h,icon:f,onClick:b,...v}=Fe(e,(E=c.props)==null?void 0:E.dropdownItem),{ref:y,index:k}=zd({label:typeof m=="string"?m:void 0}),N=Ad([t,y]),w=o===k;return u.jsx("li",{role:"menuitem",className:d.container,children:u.jsxs(da,{ref:N,className:Ce(d.base,h),...v,...s({onClick:()=>{b==null||b(),i&&l(null)}}),tabIndex:w?0:-1,children:[f&&u.jsx(f,{className:d.icon}),m]})})});ms.displayName="DropdownItem";const jf={root:{base:"text-sm font-medium",disabled:"opacity-50",colors:{default:"text-gray-900 dark:text-white",info:"text-cyan-500 dark:text-cyan-600",failure:"text-red-700 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600",success:"text-green-700 dark:text-green-500"}}},vt=p.forwardRef((e,t)=>{var l,c;const r=$e(),n=Ye([jf,(l=r.theme)==null?void 0:l.label,e.theme],[ge(r.clearTheme,"label"),e.clearTheme],[ge(r.applyTheme,"label"),e.applyTheme]),{className:a,color:o="default",disabled:i=!1,...s}=Fe(e,(c=r.props)==null?void 0:c.label);return u.jsx("label",{ref:t,className:Ce(n.root.base,n.root.colors[o],i&&n.root.disabled,a),"data-testid":"flowbite-label",...s})});vt.displayName="Label";const Pf={base:"h-4 w-4 appearance-none rounded-full border border-gray-300 bg-gray-100 bg-[length:1em_1em] bg-center bg-no-repeat checked:border-transparent checked:bg-current checked:bg-dot-icon focus:outline-none focus:ring-2 focus:ring-offset-2 dark:border-gray-600 dark:bg-gray-700 dark:checked:border-transparent dark:checked:bg-current",color:{default:"text-primary-600 focus:ring-primary-600 dark:ring-offset-gray-800 dark:focus:ring-primary-600",dark:"text-gray-800 focus:ring-gray-800 dark:ring-offset-gray-800 dark:focus:ring-gray-800",failure:"text-red-900 focus:ring-red-900 dark:ring-offset-red-900 dark:focus:ring-red-900",gray:"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900",info:"text-cyan-800 focus:ring-cyan-800 dark:ring-offset-gray-800 dark:focus:ring-cyan-800",light:"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900",purple:"text-purple-600 focus:ring-purple-600 dark:ring-offset-purple-600 dark:focus:ring-purple-600",success:"text-green-800 focus:ring-green-800 dark:ring-offset-green-800 dark:focus:ring-green-800",warning:"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400",blue:"text-blue-700 focus:ring-blue-600 dark:ring-offset-blue-700 dark:focus:ring-blue-700",cyan:"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-cyan-600 dark:focus:ring-cyan-600",green:"text-green-600 focus:ring-green-600 dark:ring-offset-green-600 dark:focus:ring-green-600",indigo:"text-indigo-700 focus:ring-indigo-700 dark:ring-offset-indigo-700 dark:focus:ring-indigo-700",lime:"text-lime-700 focus:ring-lime-700 dark:ring-offset-lime-700 dark:focus:ring-lime-700",pink:"text-pink-600 focus:ring-pink-600 dark:ring-offset-pink-600 dark:focus:ring-pink-600",red:"text-red-600 focus:ring-red-600 dark:ring-offset-red-600 dark:focus:ring-red-600",teal:"text-teal-600 focus:ring-teal-600 dark:ring-offset-teal-600 dark:focus:ring-teal-600",yellow:"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400"}},hs=p.forwardRef((e,t)=>{var s,l;const r=$e(),n=Ye([Pf,(s=r.theme)==null?void 0:s.radio,e.theme],[ge(r.clearTheme,"radio"),e.clearTheme],[ge(r.applyTheme,"radio"),e.applyTheme]),{color:a="default",className:o,...i}=Fe(e,(l=r.props)==null?void 0:l.radio);return u.jsx("input",{ref:t,type:"radio",className:Ce(n.base,n.color[a],o),...i})});hs.displayName="Radio";const Ef={base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},select:{base:"block w-full appearance-none border bg-arrow-down-icon bg-[length:0.75em_0.75em] bg-[position:right_12px_center] bg-no-repeat pr-10 focus:outline-none focus:ring-1 disabled:cursor-not-allowed disabled:opacity-50",withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""},sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-primary-500 focus:ring-primary-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-primary-500 dark:focus:ring-primary-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}},gs=p.forwardRef((e,t)=>{var m,h;const r=$e(),n=Ye([Ef,(m=r.theme)==null?void 0:m.select,e.theme],[ge(r.clearTheme,"select"),e.clearTheme],[ge(r.applyTheme,"select"),e.applyTheme]),{addon:a,className:o,color:i="gray",icon:s,shadow:l,sizing:c="md",...d}=Fe(e,(h=r.props)==null?void 0:h.select);return u.jsxs("div",{className:Ce(n.base,o),children:[a&&u.jsx("span",{className:n.addon,children:a}),u.jsxs("div",{className:n.field.base,children:[s&&u.jsx("div",{className:n.field.icon.base,children:u.jsx(s,{className:n.field.icon.svg})}),u.jsx("select",{ref:t,className:Ce(n.field.select.base,n.field.select.colors[i],n.field.select.sizes[c],n.field.select.withIcon[s?"on":"off"],n.field.select.withAddon[a?"on":"off"],n.field.select.withShadow[l?"on":"off"]),...d})]})]})});gs.displayName="Select";const ps=p.forwardRef((e,t)=>{var o;const r=$e(),{title:n,...a}=Fe(e,(o=r.props)==null?void 0:o.tabItem);return u.jsx("div",{ref:t,...a})});ps.displayName="TabItem";const Of={base:"flex flex-col gap-2",tablist:{base:"flex text-center",variant:{default:"flex-wrap border-b border-gray-200 dark:border-gray-700",underline:"-mb-px flex-wrap border-b border-gray-200 dark:border-gray-700",pills:"flex-wrap space-x-2 text-sm font-medium text-gray-500 dark:text-gray-400",fullWidth:"grid w-full grid-flow-col divide-x divide-gray-200 rounded-none text-sm font-medium shadow dark:divide-gray-700 dark:text-gray-400"},tabitem:{base:"flex items-center justify-center rounded-t-lg p-4 text-sm font-medium first:ml-0 focus:outline-none disabled:cursor-not-allowed disabled:text-gray-400 disabled:dark:text-gray-500",variant:{default:{base:"rounded-t-lg",active:{on:"bg-gray-100 text-primary-600 dark:bg-gray-800 dark:text-primary-500",off:"text-gray-500 hover:bg-gray-50 hover:text-gray-600 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300"}},underline:{base:"rounded-t-lg",active:{on:"rounded-t-lg border-b-2 border-primary-600 text-primary-600 dark:border-primary-500 dark:text-primary-500",off:"border-b-2 border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300"}},pills:{base:"",active:{on:"rounded-lg bg-primary-600 text-white",off:"rounded-lg hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-white"}},fullWidth:{base:"ml-0 flex w-full rounded-none first:ml-0",active:{on:"rounded-none bg-gray-100 p-4 text-gray-900 dark:bg-gray-700 dark:text-white",off:"rounded-none bg-white hover:bg-gray-50 hover:text-gray-700 dark:bg-gray-800 dark:hover:bg-gray-700 dark:hover:text-white"}}},icon:"mr-2 h-5 w-5"}},tabitemcontainer:{base:"",variant:{default:"",underline:"",pills:"",fullWidth:""}},tabpanel:"py-3"},bs=p.forwardRef((e,t)=>{var _,I;const r=$e(),n=Ye([Of,(_=r.theme)==null?void 0:_.tabs,e.theme],[ge(r.clearTheme,"tabs"),e.clearTheme],[ge(r.applyTheme,"tabs"),e.applyTheme]),{children:a,className:o,onActiveTabChange:i,variant:s="default",...l}=Fe(e,(I=r.props)==null?void 0:I.tabs),c=p.useId(),d=p.useMemo(()=>p.Children.map(p.Children.toArray(a),({props:j})=>j),[a]),m=p.useRef([]),[h,f]=p.useState(Math.max(0,d.findIndex(j=>j.active))),[b,v]=p.useState(-1);function y(j){f(j),i&&i(j)}function k({target:j}){y(j),v(j)}function N({event:j,target:E}){j.key==="ArrowLeft"&&v(Math.max(0,b-1)),j.key==="ArrowRight"&&v(Math.min(d.length-1,b+1)),j.key==="Enter"&&(y(E),v(E))}const w=n.tablist.tabitem.variant[s],R=n.tabitemcontainer.variant[s];return p.useEffect(()=>{var j;(j=m.current[b])==null||j.focus()},[b]),p.useImperativeHandle(t,()=>({setActiveTab:y})),u.jsxs("div",{className:Ce(n.base,o),children:[u.jsx("div",{"aria-label":"Tabs",role:"tablist",className:Ce(n.tablist.base,n.tablist.variant[s],o),...l,children:d.map((j,E)=>u.jsxs("button",{type:"button","aria-controls":`${c}-tabpanel-${E}`,"aria-selected":E===h,className:Ce(n.tablist.tabitem.base,w.base,E===h&&w.active.on,E!==h&&!j.disabled&&w.active.off),disabled:j.disabled,id:`${c}-tab-${E}`,onClick:()=>k({target:E}),onKeyDown:z=>N({event:z,target:E}),ref:z=>{m.current[E]=z},role:"tab",tabIndex:E===b?0:-1,style:{zIndex:E===b?2:1},children:[j.icon&&u.jsx(j.icon,{className:n.tablist.tabitem.icon}),j.title]},E))}),u.jsx("div",{className:Ce(n.tabitemcontainer.base,R),children:d.map((j,E)=>u.jsx("div",{"aria-labelledby":`${c}-tab-${E}`,className:n.tabpanel,hidden:E!==h,id:`${c}-tabpanel-${E}`,role:"tabpanel",tabIndex:0,children:j.children},E))})]})});bs.displayName="Tabs";const Af={root:{base:"flex w-full max-w-xs items-center rounded-lg bg-white p-4 text-gray-500 shadow dark:bg-gray-800 dark:text-gray-400",closed:"opacity-0 ease-out"},toggle:{base:"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg bg-white p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",icon:"h-5 w-5 shrink-0"}},Vf=p.createContext(void 0),Lf={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},vs=p.forwardRef((e,t)=>{var m,h;const[r,n]=p.useState(!1),[a,o]=p.useState(!1),i=$e(),s=Ye([Af,(m=i.theme)==null?void 0:m.toast,e.theme],[ge(i.clearTheme,"toast"),e.clearTheme],[ge(i.applyTheme,"toast"),e.applyTheme]),{className:l,duration:c=300,...d}=Fe(e,(h=i.props)==null?void 0:h.toast);return a?null:u.jsx(Vf.Provider,{value:{theme:e.theme,clearTheme:e.clearTheme,applyTheme:e.applyTheme,duration:c,isClosed:r,isRemoved:a,setIsClosed:n,setIsRemoved:o},children:u.jsx("div",{ref:t,"data-testid":"flowbite-toast",role:"alert",className:Ce(s.root.base,Lf[c],r&&s.root.closed,l),...d})})});vs.displayName="Toast";function Y(...e){return Al(al(e))}const zf={base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500"},rightIcon:{base:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",svg:"h-5 w-5 text-gray-500"},input:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"sm:text-md p-4"},colors:{gray:"bg-gray-50 border-gray-300 text-gray-900 focus:border-primary focus:ring-primary",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-primary focus:ring-primary",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500"},withRightIcon:{on:"pr-10",off:""},withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm",off:""}}}},Ff={base:"relative flex items-center justify-center rounded-lg text-center font-medium focus:outline-none focus:ring-4",disabled:"pointer-events-none opacity-50",fullSized:"w-full",grouped:"rounded-none border-l-0 first:rounded-s-lg first:border-l last:rounded-e-lg focus:ring-2",pill:"rounded-full",size:{xs:"h-8 px-3 text-xs",sm:"h-9 px-3 text-sm",md:"h-10 px-5 text-sm",lg:"h-12 px-5 text-base",xl:"h-[52px] px-6 text-base"},color:{primary:"bg-primary text-white border border-transparent enabled:hover:bg-primary-400 focus:ring-4 focus:ring-primary-300",secondary:"bg-secondary text-white border border-transparent enabled:hover:bg-secondary-400 focus:ring-4 focus:ring-secondary-300",success:"bg-green-700 text-white border border-transparent enabled:hover:bg-green-800 focus:ring-4 focus:ring-green-300",error:"bg-red-700 text-white border border-transparent enabled:hover:bg-red-800 focus:ring-4 focus:ring-red-300",warning:"bg-yellow-400 text-white border border-transparent enabled:hover:bg-yellow-500 focus:ring-4 focus:ring-yellow-300",outline:"text-primary bg-white border border-primary enabled:hover:bg-primary enabled:hover:text-white focus:ring-4 focus:ring-primary-300",outlineDark:"text-gray-900 bg-white border border-gray-900 enabled:hover:bg-gray-900 enabled:hover:text-white focus:ring-4 focus:ring-gray-300",white:"text-gray-900 bg-white border border-gray-200 enabled:hover:bg-gray-100 enabled:hover:text-primary focus:ring-4 focus:ring-gray-300",default:"bg-primary-700 text-white hover:bg-primary-800 focus:ring-primary-300 dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800",alternative:"border border-gray-200 bg-white text-gray-900 hover:bg-gray-100 hover:text-primary-700 focus:ring-gray-100 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700",blue:"bg-blue-700 text-white hover:bg-blue-800 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",cyan:"bg-cyan-700 text-white hover:bg-cyan-800 focus:ring-cyan-300 dark:bg-cyan-600 dark:hover:bg-cyan-700 dark:focus:ring-cyan-800",dark:"bg-gray-800 text-white hover:bg-gray-900 focus:ring-gray-300 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-700",gray:"bg-gray-700 text-white hover:bg-gray-800 focus:ring-gray-300 dark:bg-gray-600 dark:hover:bg-gray-700 dark:focus:ring-gray-800",green:"bg-green-700 text-white hover:bg-green-800 focus:ring-green-300 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800",indigo:"bg-indigo-700 text-white hover:bg-indigo-800 focus:ring-indigo-300 dark:bg-indigo-600 dark:hover:bg-indigo-700 dark:focus:ring-indigo-800",light:"border border-gray-300 bg-white text-gray-900 hover:bg-gray-100 focus:ring-gray-100 dark:border-gray-600 dark:bg-gray-800 dark:text-white dark:hover:border-gray-600 dark:hover:bg-gray-700 dark:focus:ring-gray-700",lime:"bg-lime-700 text-white hover:bg-lime-800 focus:ring-lime-300 dark:bg-lime-600 dark:hover:bg-lime-700 dark:focus:ring-lime-800",pink:"bg-pink-700 text-white hover:bg-pink-800 focus:ring-pink-300 dark:bg-pink-600 dark:hover:bg-pink-700 dark:focus:ring-pink-800",purple:"bg-purple-700 text-white hover:bg-purple-800 focus:ring-purple-300 dark:bg-purple-600 dark:hover:bg-purple-700 dark:focus:ring-purple-800",red:"bg-red-700 text-white hover:bg-red-800 focus:ring-red-300 dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-800",teal:"bg-teal-700 text-white hover:bg-teal-800 focus:ring-teal-300 dark:bg-teal-600 dark:hover:bg-teal-700 dark:focus:ring-teal-800",yellow:"bg-yellow-400 text-white hover:bg-yellow-500 focus:ring-yellow-300 dark:bg-yellow-600 dark:hover:bg-yellow-400 dark:focus:ring-yellow-900"},outlineColor:{default:"border border-primary-700 text-primary-700 hover:border-primary-800 hover:bg-primary-800 hover:text-white focus:ring-primary-300 dark:border-primary-600 dark:text-primary-500 dark:hover:border-primary-700 dark:hover:bg-primary-700 dark:hover:text-white dark:focus:ring-primary-800",blue:"border border-blue-700 text-blue-700 hover:border-blue-800 hover:bg-blue-800 hover:text-white focus:ring-blue-300 dark:border-blue-500 dark:text-blue-500 dark:hover:border-blue-700 dark:hover:bg-blue-700 dark:hover:text-white dark:focus:ring-blue-800",cyan:"border border-cyan-700 text-cyan-700 hover:border-cyan-800 hover:bg-cyan-800 hover:text-white focus:ring-cyan-300 dark:border-cyan-500 dark:text-cyan-500 dark:hover:border-cyan-700 dark:hover:bg-cyan-700 dark:hover:text-white dark:focus:ring-cyan-800",dark:"border border-gray-800 text-gray-800 hover:border-gray-900 hover:bg-gray-900 hover:text-white focus:ring-gray-300 dark:border-gray-600 dark:text-gray-400 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:ring-gray-800",gray:"border border-gray-700 text-gray-700 hover:border-gray-800 hover:bg-gray-800 hover:text-white focus:ring-gray-300 dark:border-gray-600 dark:text-gray-400 dark:hover:border-gray-700 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-800",green:"border border-green-700 text-green-700 hover:border-green-800 hover:bg-green-800 hover:text-white focus:ring-green-300 dark:border-green-600 dark:text-green-500 dark:hover:border-green-700 dark:hover:bg-green-700 dark:hover:text-white dark:focus:ring-green-800",indigo:"border border-indigo-700 text-indigo-700 hover:border-indigo-800 hover:bg-indigo-800 hover:text-white focus:ring-indigo-300 dark:border-indigo-600 dark:text-indigo-400 dark:hover:border-indigo-700 dark:hover:bg-indigo-700 dark:hover:text-white dark:focus:ring-indigo-800",lime:"border border-lime-700 text-lime-700 hover:border-lime-800 hover:bg-lime-800 hover:text-white focus:ring-lime-300 dark:border-lime-600 dark:text-lime-500 dark:hover:border-lime-700 dark:hover:bg-lime-700 dark:hover:text-white dark:focus:ring-lime-800",pink:"border border-pink-700 text-pink-700 hover:border-pink-800 hover:bg-pink-800 hover:text-white focus:ring-pink-300 dark:border-pink-600 dark:text-pink-500 dark:hover:border-pink-700 dark:hover:bg-pink-700 dark:hover:text-white dark:focus:ring-pink-800",purple:"border border-purple-700 text-purple-700 hover:border-purple-800 hover:bg-purple-800 hover:text-white focus:ring-purple-300 dark:border-purple-600 dark:text-purple-400 dark:hover:border-purple-700 dark:hover:bg-purple-700 dark:hover:text-white dark:focus:ring-purple-800",red:"border border-red-700 text-red-700 hover:border-red-800 hover:bg-red-800 hover:text-white focus:ring-red-300 dark:border-red-600 dark:text-red-500 dark:hover:border-red-700 dark:hover:bg-red-700 dark:hover:text-white dark:focus:ring-red-800",teal:"border border-teal-700 text-teal-700 hover:border-teal-800 hover:bg-teal-800 hover:text-white focus:ring-teal-300 dark:border-teal-600 dark:text-teal-400 dark:hover:border-teal-700 dark:hover:bg-teal-700 dark:hover:text-white dark:focus:ring-teal-800",yellow:"border border-yellow-400 text-yellow-400 hover:border-yellow-500 hover:bg-yellow-500 hover:text-white focus:ring-yellow-300 dark:border-yellow-300 dark:text-yellow-300 dark:hover:border-yellow-400 dark:hover:bg-yellow-400 dark:hover:text-white dark:focus:ring-yellow-900"}},$f={base:"h-4 w-4 border border-gray-300 text-primary focus:ring-2 focus:ring-primary"},qf={base:"flex flex-col gap-2 w-full",tablist:{base:"flex text-center",variant:{default:"flex-wrap border-b border-gray-200",underline:"-mb-px flex-wrap border-b border-gray-200",pills:"flex-wrap space-x-2 text-sm font-medium text-gray-500",fullWidth:"grid w-full grid-flow-col divide-x divide-gray-200 rounded-none text-sm font-medium shadow"},tabitem:{base:"flex items-center justify-center rounded-t-lg p-4 text-sm font-medium first:ml-0 disabled:cursor-not-allowed disabled:text-gray-400",variant:{default:{base:"rounded-t-lg",active:{on:"bg-gray-100 text-primary",off:"text-gray-500 hover:bg-gray-50 hover:text-gray-600"}},underline:{base:"rounded-t-lg",active:{on:"active rounded-t-lg border-b-2 border-primary text-primary",off:"border-b-2 border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-600"}},pills:{base:"",active:{on:"rounded-lg bg-primary text-white",off:"rounded-lg hover:bg-gray-100 hover:text-gray-900"}},fullWidth:{base:"ml-0 flex w-full rounded-none first:ml-0",active:{on:"active rounded-none bg-gray-100 p-4 text-gray-900",off:"rounded-none bg-white hover:bg-gray-50 hover:text-gray-700"}}},icon:"mr-2 h-5 w-5"}},tabitemcontainer:{base:"",variant:{default:"",underline:"",pills:"",fullWidth:""}},tabpanel:"py-3"},Fn=({variant:e="primary",size:t="md",isLoading:r=!1,disabled:n=!1,fullWidth:a=!1,leftIcon:o,rightIcon:i,className:s,children:l,onClick:c,...d})=>{const m=h=>{if(n||r){h.preventDefault();return}c==null||c(h)};return u.jsxs(fa,{color:e,size:t,disabled:n||r,theme:Ff,className:Y("font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 relative",a&&"w-full",s),onClick:m,...d,children:[r&&u.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:u.jsx("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin opacity-80"})}),u.jsxs("div",{className:Y("flex items-center justify-center gap-2 transition-opacity duration-200",r&&"opacity-60"),children:[o&&u.jsx("span",{className:"shrink-0",children:o}),l&&u.jsx("span",{children:l}),i&&u.jsx("span",{className:"shrink-0",children:i})]})]})};Fn.displayName="Button";try{Fn.displayName="Button",Fn.__docgenInfo={description:"A generic button component with multiple variants and states",displayName:"Button",props:{variant:{defaultValue:{value:"primary"},description:"The variant of the button",name:"variant",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"primary"'},{value:'"secondary"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'},{value:'"white"'},{value:'"outline"'},{value:'"outlineDark"'}]}},size:{defaultValue:{value:"md"},description:"The size of the button",name:"size",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'}]}},isLoading:{defaultValue:{value:"false"},description:"Whether the button is in loading state",name:"isLoading",required:!1,type:{name:"boolean | undefined"}},disabled:{defaultValue:{value:"false"},description:"Whether the button is disabled",name:"disabled",required:!1,type:{name:"boolean | undefined"}},fullWidth:{defaultValue:{value:"false"},description:"Whether the button should take full width",name:"fullWidth",required:!1,type:{name:"boolean | undefined"}},leftIcon:{defaultValue:null,description:"Icon to display before the button text",name:"leftIcon",required:!1,type:{name:"ReactNode"}},rightIcon:{defaultValue:null,description:"Icon to display after the button text",name:"rightIcon",required:!1,type:{name:"ReactNode"}},className:{defaultValue:null,description:"Custom className for additional styling",name:"className",required:!1,type:{name:"string | undefined"}},children:{defaultValue:null,description:"Children or button text",name:"children",required:!1,type:{name:"ReactNode"}},onClick:{defaultValue:null,description:"Click handler",name:"onClick",required:!1,type:{name:"((event: MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:'"button" | null | undefined'}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined"}},href:{defaultValue:null,description:"",name:"href",required:!1,type:{name:"string | undefined"}},fullSized:{defaultValue:null,description:"",name:"fullSized",required:!1,type:{name:"boolean | undefined"}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:"boolean | undefined"}},pill:{defaultValue:null,description:"",name:"pill",required:!1,type:{name:"boolean | undefined"}}}}}catch{}const $n=({as:e="p",size:t="md",weight:r="normal",color:n="gray",align:a="left",truncate:o=!1,underline:i=!1,italic:s=!1,uppercase:l=!1,lowercase:c=!1,capitalize:d=!1,className:m,children:h,...f})=>{const b=e,v={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl","5xl":"text-5xl"},y={light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold"},k={primary:"text-primary",secondary:"text-secondary",tertiary:"text-tertiary",success:"text-green-600",warning:"text-yellow-600",error:"text-red-600",gray:"text-gray-900",white:"text-white",black:"text-black"},N={left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"},w=Y("font-poppins",v[t],y[r],k[n],N[a],{truncate:o,underline:i,italic:s,uppercase:l,lowercase:c,capitalize:d},m);return u.jsx(b,{className:w,...f,children:h})};$n.displayName="Text";try{$n.displayName="Text",$n.__docgenInfo={description:"A generic text component for consistent typography",displayName:"Text",props:{as:{defaultValue:{value:"p"},description:"The semantic HTML element to render",name:"as",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"p"'},{value:'"span"'},{value:'"div"'},{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'},{value:'"h6"'},{value:'"label"'},{value:'"small"'},{value:'"strong"'},{value:'"em"'}]}},size:{defaultValue:{value:"md"},description:"The size of the text",name:"size",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"2xl"'},{value:'"3xl"'},{value:'"4xl"'},{value:'"5xl"'}]}},weight:{defaultValue:{value:"normal"},description:"The weight of the text",name:"weight",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"light"'},{value:'"normal"'},{value:'"medium"'},{value:'"semibold"'},{value:'"bold"'},{value:'"extrabold"'}]}},color:{defaultValue:{value:"gray"},description:"The color of the text",name:"color",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'},{value:'"gray"'},{value:'"white"'},{value:'"black"'}]}},align:{defaultValue:{value:"left"},description:"The alignment of the text",name:"align",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"left"'},{value:'"right"'},{value:'"center"'},{value:'"justify"'}]}},truncate:{defaultValue:{value:"false"},description:"Whether the text should be truncated with ellipsis",name:"truncate",required:!1,type:{name:"boolean | undefined"}},underline:{defaultValue:{value:"false"},description:"Whether the text should be underlined",name:"underline",required:!1,type:{name:"boolean | undefined"}},italic:{defaultValue:{value:"false"},description:"Whether the text should be italic",name:"italic",required:!1,type:{name:"boolean | undefined"}},uppercase:{defaultValue:{value:"false"},description:"Whether the text should be uppercase",name:"uppercase",required:!1,type:{name:"boolean | undefined"}},lowercase:{defaultValue:{value:"false"},description:"Whether the text should be lowercase",name:"lowercase",required:!1,type:{name:"boolean | undefined"}},capitalize:{defaultValue:{value:"false"},description:"Whether the text should be capitalized",name:"capitalize",required:!1,type:{name:"boolean | undefined"}},className:{defaultValue:null,description:"Custom className for additional styling",name:"className",required:!1,type:{name:"string | undefined"}},children:{defaultValue:null,description:"Text content",name:"children",required:!1,type:{name:"ReactNode"}}}}}catch{}const qn=p.forwardRef(({label:e,required:t=!1,size:r="md",variant:n="default",error:a,helperText:o,leftIcon:i,rightIcon:s,containerClassName:l,labelClassName:c,inputClassName:d,fullWidth:m=!0,className:h,...f},b)=>{const v=()=>{if(a)return"failure";switch(n){case"success":return"success";case"warning":return"warning";case"error":return"failure";default:return"gray"}},y=f.id||`textinput-${Math.random().toString(36).substr(2,9)}`;return u.jsxs("div",{className:Y("w-full",!m&&"w-auto",l),children:[e&&u.jsxs(vt,{htmlFor:y,className:Y("block mb-2 text-sm font-medium text-gray-900",c),children:[e,t&&u.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),u.jsx(ls,{...f,ref:b,id:y,theme:zf,color:v(),sizing:r,icon:i,rightIcon:s,className:Y("block w-full",d,h)}),(a||o)&&u.jsxs("div",{className:"mt-2",children:[a&&u.jsx("p",{className:"text-sm text-red-600",role:"alert",children:a}),o&&!a&&u.jsx("p",{className:"text-sm text-gray-600",children:o})]})]})});qn.displayName="TextInput";try{qn.displayName="TextInput",qn.__docgenInfo={description:"A generic text input component with form validation support",displayName:"TextInput",props:{label:{defaultValue:null,description:"The label for the input field",name:"label",required:!1,type:{name:"string | undefined"}},required:{defaultValue:{value:"false"},description:"Whether the field is required",name:"required",required:!1,type:{name:"boolean | undefined"}},size:{defaultValue:{value:"md"},description:"The size of the input",name:"size",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},variant:{defaultValue:{value:"default"},description:"The variant of the input",name:"variant",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"success"'},{value:'"warning"'},{value:'"error"'},{value:'"default"'}]}},error:{defaultValue:null,description:"Error message to display",name:"error",required:!1,type:{name:"string | undefined"}},helperText:{defaultValue:null,description:"Helper text to display below the input",name:"helperText",required:!1,type:{name:"string | undefined"}},leftIcon:{defaultValue:null,description:"Icon to display on the left side of the input",name:"leftIcon",required:!1,type:{name:"FC<SVGProps<SVGSVGElement>> | undefined"}},rightIcon:{defaultValue:null,description:"Icon to display on the right side of the input",name:"rightIcon",required:!1,type:{name:"FC<SVGProps<SVGSVGElement>> | undefined"}},containerClassName:{defaultValue:null,description:"Custom className for the input container",name:"containerClassName",required:!1,type:{name:"string | undefined"}},labelClassName:{defaultValue:null,description:"Custom className for the label",name:"labelClassName",required:!1,type:{name:"string | undefined"}},inputClassName:{defaultValue:null,description:"Custom className for the input field",name:"inputClassName",required:!1,type:{name:"string | undefined"}},fullWidth:{defaultValue:{value:"true"},description:"Whether the input should take full width",name:"fullWidth",required:!1,type:{name:"boolean | undefined"}}}}}catch{}const Wn=p.forwardRef(({label:e,required:t=!1,size:r="md",variant:n="default",error:a,helperText:o,containerClassName:i,labelClassName:s,textareaClassName:l,fullWidth:c=!0,rows:d=3,resize:m="vertical",className:h,...f},b)=>{const v=()=>{if(a)return"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500";switch(n){case"success":return"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500";case"warning":return"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500";case"error":return"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500";default:return"bg-gray-50 border-gray-300 text-gray-900 focus:border-primary focus:ring-primary"}},y=()=>{switch(r){case"sm":return"p-2 text-xs";case"lg":return"p-4 text-base";default:return"p-2.5 text-sm"}},k=()=>{switch(m){case"none":return"resize-none";case"both":return"resize";case"horizontal":return"resize-x";case"vertical":return"resize-y";default:return"resize-y"}},N=f.id||`textarea-${Math.random().toString(36).substr(2,9)}`;return u.jsxs("div",{className:Y("w-full",!c&&"w-auto",i),children:[e&&u.jsxs(vt,{htmlFor:N,className:Y("block mb-2 text-sm font-medium text-gray-900",s),children:[e,t&&u.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),u.jsx("textarea",{...f,ref:b,id:N,rows:d,className:Y("block w-full border rounded-lg shadow-sm disabled:cursor-not-allowed disabled:opacity-50 focus:ring-2 focus:ring-opacity-50",v(),y(),k(),l,h)}),(a||o)&&u.jsxs("div",{className:"mt-2",children:[a&&u.jsx("p",{className:"text-sm text-red-600",role:"alert",children:a}),o&&!a&&u.jsx("p",{className:"text-sm text-gray-600",children:o})]})]})});Wn.displayName="TextArea";try{Wn.displayName="TextArea",Wn.__docgenInfo={description:"A generic textarea component with form validation support",displayName:"TextArea",props:{label:{defaultValue:null,description:"The label for the textarea field",name:"label",required:!1,type:{name:"string | undefined"}},required:{defaultValue:{value:"false"},description:"Whether the field is required",name:"required",required:!1,type:{name:"boolean | undefined"}},size:{defaultValue:{value:"md"},description:"The size of the textarea",name:"size",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},variant:{defaultValue:{value:"default"},description:"The variant of the textarea",name:"variant",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"success"'},{value:'"warning"'},{value:'"error"'},{value:'"default"'}]}},error:{defaultValue:null,description:"Error message to display",name:"error",required:!1,type:{name:"string | undefined"}},helperText:{defaultValue:null,description:"Helper text to display below the textarea",name:"helperText",required:!1,type:{name:"string | undefined"}},containerClassName:{defaultValue:null,description:"Custom className for the textarea container",name:"containerClassName",required:!1,type:{name:"string | undefined"}},labelClassName:{defaultValue:null,description:"Custom className for the label",name:"labelClassName",required:!1,type:{name:"string | undefined"}},textareaClassName:{defaultValue:null,description:"Custom className for the textarea field",name:"textareaClassName",required:!1,type:{name:"string | undefined"}},fullWidth:{defaultValue:{value:"true"},description:"Whether the textarea should take full width",name:"fullWidth",required:!1,type:{name:"boolean | undefined"}},rows:{defaultValue:{value:"3"},description:"Number of rows for the textarea",name:"rows",required:!1,type:{name:"number | undefined"}},resize:{defaultValue:{value:"vertical"},description:"Whether the textarea should resize",name:"resize",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"none"'},{value:'"both"'},{value:'"horizontal"'},{value:'"vertical"'}]}}}}}catch{}const Yn=p.forwardRef(({label:e,required:t=!1,size:r="md",variant:n="default",error:a,helperText:o,options:i=[],placeholder:s,containerClassName:l,labelClassName:c,selectClassName:d,fullWidth:m=!0,className:h,children:f,...b},v)=>{const y=()=>{if(a)return"failure";switch(n){case"success":return"success";case"warning":return"warning";case"error":return"failure";default:return"gray"}},k=b.id||`select-${Math.random().toString(36).substr(2,9)}`;return u.jsxs("div",{className:Y("w-full",!m&&"w-auto",l),children:[e&&u.jsxs(vt,{htmlFor:k,className:Y("block mb-2 text-sm font-medium text-gray-900",c),children:[e,t&&u.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),u.jsxs(gs,{...b,ref:v,id:k,color:y(),sizing:r,className:Y("block w-full",d,h),children:[s&&u.jsx("option",{value:"",disabled:!0,children:s}),i.map(N=>u.jsx("option",{value:N.value,disabled:N.disabled,children:N.label},N.value)),f]}),(a||o)&&u.jsxs("div",{className:"mt-2",children:[a&&u.jsx("p",{className:"text-sm text-red-600",role:"alert",children:a}),o&&!a&&u.jsx("p",{className:"text-sm text-gray-600",children:o})]})]})});Yn.displayName="Select";try{Yn.displayName="Select",Yn.__docgenInfo={description:"A generic select component with form validation support",displayName:"Select",props:{label:{defaultValue:null,description:"The label for the select field",name:"label",required:!1,type:{name:"string | undefined"}},required:{defaultValue:{value:"false"},description:"Whether the field is required",name:"required",required:!1,type:{name:"boolean | undefined"}},size:{defaultValue:{value:"md"},description:"The size of the select",name:"size",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},variant:{defaultValue:{value:"default"},description:"The variant of the select",name:"variant",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"success"'},{value:'"warning"'},{value:'"error"'},{value:'"default"'}]}},error:{defaultValue:null,description:"Error message to display",name:"error",required:!1,type:{name:"string | undefined"}},helperText:{defaultValue:null,description:"Helper text to display below the select",name:"helperText",required:!1,type:{name:"string | undefined"}},options:{defaultValue:{value:"[]"},description:"Options for the select",name:"options",required:!1,type:{name:"SelectOption[] | undefined"}},placeholder:{defaultValue:null,description:"Placeholder text",name:"placeholder",required:!1,type:{name:"string | undefined"}},containerClassName:{defaultValue:null,description:"Custom className for the select container",name:"containerClassName",required:!1,type:{name:"string | undefined"}},labelClassName:{defaultValue:null,description:"Custom className for the label",name:"labelClassName",required:!1,type:{name:"string | undefined"}},selectClassName:{defaultValue:null,description:"Custom className for the select field",name:"selectClassName",required:!1,type:{name:"string | undefined"}},fullWidth:{defaultValue:{value:"true"},description:"Whether the select should take full width",name:"fullWidth",required:!1,type:{name:"boolean | undefined"}}}}}catch{}var Mr={exports:{}},Wf=Mr.exports,jo;function Yf(){return jo||(jo=1,(function(e,t){(function(r,n){e.exports=n()})(Wf,(function(){var r=1e3,n=6e4,a=36e5,o="millisecond",i="second",s="minute",l="hour",c="day",d="week",m="month",h="quarter",f="year",b="date",v="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,N={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var C=["th","st","nd","rd"],S=x%100;return"["+x+(C[(S-20)%10]||C[S]||C[0])+"]"}},w=function(x,C,S){var M=String(x);return!M||M.length>=C?x:""+Array(C+1-M.length).join(S)+x},R={s:w,z:function(x){var C=-x.utcOffset(),S=Math.abs(C),M=Math.floor(S/60),g=S%60;return(C<=0?"+":"-")+w(M,2,"0")+":"+w(g,2,"0")},m:function x(C,S){if(C.date()<S.date())return-x(S,C);var M=12*(S.year()-C.year())+(S.month()-C.month()),g=C.clone().add(M,m),D=S-g<0,T=C.clone().add(M+(D?-1:1),m);return+(-(M+(S-g)/(D?g-T:T-g))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:m,y:f,w:d,d:c,D:b,h:l,m:s,s:i,ms:o,Q:h}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},_="en",I={};I[_]=N;var j="$isDayjsObject",E=function(x){return x instanceof A||!(!x||!x[j])},z=function x(C,S,M){var g;if(!C)return _;if(typeof C=="string"){var D=C.toLowerCase();I[D]&&(g=D),S&&(I[D]=S,g=D);var T=C.split("-");if(!g&&T.length>1)return x(T[0])}else{var L=C.name;I[L]=C,g=L}return!M&&g&&(_=g),g||!M&&_},P=function(x,C){if(E(x))return x.clone();var S=typeof C=="object"?C:{};return S.date=x,S.args=arguments,new A(S)},V=R;V.l=z,V.i=E,V.w=function(x,C){return P(x,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var A=(function(){function x(S){this.$L=z(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[j]=!0}var C=x.prototype;return C.parse=function(S){this.$d=(function(M){var g=M.date,D=M.utc;if(g===null)return new Date(NaN);if(V.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var T=g.match(y);if(T){var L=T[2]-1||0,$=(T[7]||"0").substring(0,3);return D?new Date(Date.UTC(T[1],L,T[3]||1,T[4]||0,T[5]||0,T[6]||0,$)):new Date(T[1],L,T[3]||1,T[4]||0,T[5]||0,T[6]||0,$)}}return new Date(g)})(S),this.init()},C.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},C.$utils=function(){return V},C.isValid=function(){return this.$d.toString()!==v},C.isSame=function(S,M){var g=P(S);return this.startOf(M)<=g&&g<=this.endOf(M)},C.isAfter=function(S,M){return P(S)<this.startOf(M)},C.isBefore=function(S,M){return this.endOf(M)<P(S)},C.$g=function(S,M,g){return V.u(S)?this[M]:this.set(g,S)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(S,M){var g=this,D=!!V.u(M)||M,T=V.p(S),L=function(Z,le){var fe=V.w(g.$u?Date.UTC(g.$y,le,Z):new Date(g.$y,le,Z),g);return D?fe:fe.endOf(c)},$=function(Z,le){return V.w(g.toDate()[Z].apply(g.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(le)),g)},F=this.$W,Q=this.$M,U=this.$D,X="set"+(this.$u?"UTC":"");switch(T){case f:return D?L(1,0):L(31,11);case m:return D?L(1,Q):L(0,Q+1);case d:var H=this.$locale().weekStart||0,ee=(F<H?F+7:F)-H;return L(D?U-ee:U+(6-ee),Q);case c:case b:return $(X+"Hours",0);case l:return $(X+"Minutes",1);case s:return $(X+"Seconds",2);case i:return $(X+"Milliseconds",3);default:return this.clone()}},C.endOf=function(S){return this.startOf(S,!1)},C.$set=function(S,M){var g,D=V.p(S),T="set"+(this.$u?"UTC":""),L=(g={},g[c]=T+"Date",g[b]=T+"Date",g[m]=T+"Month",g[f]=T+"FullYear",g[l]=T+"Hours",g[s]=T+"Minutes",g[i]=T+"Seconds",g[o]=T+"Milliseconds",g)[D],$=D===c?this.$D+(M-this.$W):M;if(D===m||D===f){var F=this.clone().set(b,1);F.$d[L]($),F.init(),this.$d=F.set(b,Math.min(this.$D,F.daysInMonth())).$d}else L&&this.$d[L]($);return this.init(),this},C.set=function(S,M){return this.clone().$set(S,M)},C.get=function(S){return this[V.p(S)]()},C.add=function(S,M){var g,D=this;S=Number(S);var T=V.p(M),L=function(Q){var U=P(D);return V.w(U.date(U.date()+Math.round(Q*S)),D)};if(T===m)return this.set(m,this.$M+S);if(T===f)return this.set(f,this.$y+S);if(T===c)return L(1);if(T===d)return L(7);var $=(g={},g[s]=n,g[l]=a,g[i]=r,g)[T]||1,F=this.$d.getTime()+S*$;return V.w(F,this)},C.subtract=function(S,M){return this.add(-1*S,M)},C.format=function(S){var M=this,g=this.$locale();if(!this.isValid())return g.invalidDate||v;var D=S||"YYYY-MM-DDTHH:mm:ssZ",T=V.z(this),L=this.$H,$=this.$m,F=this.$M,Q=g.weekdays,U=g.months,X=g.meridiem,H=function(le,fe,G,re){return le&&(le[fe]||le(M,D))||G[fe].slice(0,re)},ee=function(le){return V.s(L%12||12,le,"0")},Z=X||function(le,fe,G){var re=le<12?"AM":"PM";return G?re.toLowerCase():re};return D.replace(k,(function(le,fe){return fe||(function(G){switch(G){case"YY":return String(M.$y).slice(-2);case"YYYY":return V.s(M.$y,4,"0");case"M":return F+1;case"MM":return V.s(F+1,2,"0");case"MMM":return H(g.monthsShort,F,U,3);case"MMMM":return H(U,F);case"D":return M.$D;case"DD":return V.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return H(g.weekdaysMin,M.$W,Q,2);case"ddd":return H(g.weekdaysShort,M.$W,Q,3);case"dddd":return Q[M.$W];case"H":return String(L);case"HH":return V.s(L,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return Z(L,$,!0);case"A":return Z(L,$,!1);case"m":return String($);case"mm":return V.s($,2,"0");case"s":return String(M.$s);case"ss":return V.s(M.$s,2,"0");case"SSS":return V.s(M.$ms,3,"0");case"Z":return T}return null})(le)||T.replace(":","")}))},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(S,M,g){var D,T=this,L=V.p(M),$=P(S),F=($.utcOffset()-this.utcOffset())*n,Q=this-$,U=function(){return V.m(T,$)};switch(L){case f:D=U()/12;break;case m:D=U();break;case h:D=U()/3;break;case d:D=(Q-F)/6048e5;break;case c:D=(Q-F)/864e5;break;case l:D=Q/a;break;case s:D=Q/n;break;case i:D=Q/r;break;default:D=Q}return g?D:V.a(D)},C.daysInMonth=function(){return this.endOf(m).$D},C.$locale=function(){return I[this.$L]},C.locale=function(S,M){if(!S)return this.$L;var g=this.clone(),D=z(S,M,!0);return D&&(g.$L=D),g},C.clone=function(){return V.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},x})(),O=A.prototype;return P.prototype=O,[["$ms",o],["$s",i],["$m",s],["$H",l],["$W",c],["$M",m],["$y",f],["$D",b]].forEach((function(x){O[x[1]]=function(C){return this.$g(C,x[0],x[1])}})),P.extend=function(x,C){return x.$i||(x(C,A,P),x.$i=!0),P},P.locale=z,P.isDayjs=E,P.unix=function(x){return P(1e3*x)},P.en=I[_],P.Ls=I,P.p={},P}))})(Mr)),Mr.exports}var Hf=Yf();const Zr=Qo(Hf);var Cr={exports:{}},Bf=Cr.exports,Po;function Gf(){return Po||(Po=1,(function(e,t){(function(r,n){e.exports=n()})(Bf,(function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(k){this[y]=+k}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=(function(k){if(!k||k==="Z")return 0;var N=k.match(/([+-]|\d\d)/g),w=60*N[1]+(+N[2]||0);return w===0?0:N[0]==="+"?-w:w})(y)}],h=function(y){var k=l[y];return k&&(k.indexOf?k:k.s.concat(k.f))},f=function(y,k){var N,w=l.meridiem;if(w){for(var R=1;R<=24;R+=1)if(y.indexOf(w(R,0,k))>-1){N=R>12;break}}else N=y===(k?"pm":"PM");return N},b={A:[s,function(y){this.afternoon=f(y,!1)}],a:[s,function(y){this.afternoon=f(y,!0)}],Q:[a,function(y){this.month=3*(y-1)+1}],S:[a,function(y){this.milliseconds=100*+y}],SS:[o,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[i,d("seconds")],ss:[i,d("seconds")],m:[i,d("minutes")],mm:[i,d("minutes")],H:[i,d("hours")],h:[i,d("hours")],HH:[i,d("hours")],hh:[i,d("hours")],D:[i,d("day")],DD:[o,d("day")],Do:[s,function(y){var k=l.ordinal,N=y.match(/\d+/);if(this.day=N[0],k)for(var w=1;w<=31;w+=1)k(w).replace(/\[|\]/g,"")===y&&(this.day=w)}],w:[i,d("week")],ww:[o,d("week")],M:[i,d("month")],MM:[o,d("month")],MMM:[s,function(y){var k=h("months"),N=(h("monthsShort")||k.map((function(w){return w.slice(0,3)}))).indexOf(y)+1;if(N<1)throw new Error;this.month=N%12||N}],MMMM:[s,function(y){var k=h("months").indexOf(y)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(y){this.year=c(y)}],YYYY:[/\d{4}/,d("year")],Z:m,ZZ:m};function v(y){var k,N;k=y,N=l&&l.formats;for(var w=(y=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(P,V,A){var O=A&&A.toUpperCase();return V||N[A]||r[A]||N[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,C,S){return C||S.slice(1)}))}))).match(n),R=w.length,_=0;_<R;_+=1){var I=w[_],j=b[I],E=j&&j[0],z=j&&j[1];w[_]=z?{regex:E,parser:z}:I.replace(/^\[|\]$/g,"")}return function(P){for(var V={},A=0,O=0;A<R;A+=1){var x=w[A];if(typeof x=="string")O+=x.length;else{var C=x.regex,S=x.parser,M=P.slice(O),g=C.exec(M)[0];S.call(V,g),P=P.replace(g,"")}}return(function(D){var T=D.afternoon;if(T!==void 0){var L=D.hours;T?L<12&&(D.hours+=12):L===12&&(D.hours=0),delete D.afternoon}})(V),V}}return function(y,k,N){N.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var w=k.prototype,R=w.parse;w.parse=function(_){var I=_.date,j=_.utc,E=_.args;this.$u=j;var z=E[1];if(typeof z=="string"){var P=E[2]===!0,V=E[3]===!0,A=P||V,O=E[2];V&&(O=E[2]),l=this.$locale(),!P&&O&&(l=N.Ls[O]),this.$d=(function(M,g,D,T){try{if(["x","X"].indexOf(g)>-1)return new Date((g==="X"?1e3:1)*M);var L=v(g)(M),$=L.year,F=L.month,Q=L.day,U=L.hours,X=L.minutes,H=L.seconds,ee=L.milliseconds,Z=L.zone,le=L.week,fe=new Date,G=Q||($||F?1:fe.getDate()),re=$||fe.getFullYear(),te=0;$&&!F||(te=F>0?F-1:fe.getMonth());var ue,be=U||0,ie=X||0,Se=H||0,we=ee||0;return Z?new Date(Date.UTC(re,te,G,be,ie,Se,we+60*Z.offset*1e3)):D?new Date(Date.UTC(re,te,G,be,ie,Se,we)):(ue=new Date(re,te,G,be,ie,Se,we),le&&(ue=T(ue).week(le).toDate()),ue)}catch{return new Date("")}})(I,z,j,N),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),A&&I!=this.format(z)&&(this.$d=new Date("")),l={}}else if(z instanceof Array)for(var x=z.length,C=1;C<=x;C+=1){E[1]=z[C-1];var S=N.apply(this,E);if(S.isValid()){this.$d=S.$d,this.$L=S.$L,this.init();break}C===x&&(this.$d=new Date(""))}else R.call(this,_)}}}))})(Cr)),Cr.exports}var Kf=Gf();const Uf=Qo(Kf);function ce(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function ze(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Ee(e,t){const r=ce(e);return isNaN(t)?ze(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Be(e,t){const r=ce(e);if(isNaN(t))return ze(e,NaN);if(!t)return r;const n=r.getDate(),a=ze(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const o=a.getDate();return n>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),n),r)}const Na=6048e5,Xf=864e5;let Qf={};function ar(){return Qf}function Je(e,t){var s,l,c,d;const r=ar(),n=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,a=ce(e),o=a.getDay(),i=(o<n?7:0)+o-n;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function Rt(e){return Je(e,{weekStartsOn:1})}function ys(e){const t=ce(e),r=t.getFullYear(),n=ze(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const a=Rt(n),o=ze(e,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const i=Rt(o);return t.getTime()>=a.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function Lt(e){const t=ce(e);return t.setHours(0,0,0,0),t}function Vr(e){const t=ce(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Xe(e,t){const r=Lt(e),n=Lt(t),a=+r-Vr(r),o=+n-Vr(n);return Math.round((a-o)/Xf)}function Zf(e){const t=ys(e),r=ze(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),Rt(r)}function Hn(e,t){const r=t*7;return Ee(e,r)}function Jf(e,t){return Be(e,t*12)}function e0(e){let t;return e.forEach(function(r){const n=ce(r);(t===void 0||t<n||isNaN(Number(n)))&&(t=n)}),t||new Date(NaN)}function t0(e){let t;return e.forEach(r=>{const n=ce(r);(!t||t>n||isNaN(+n))&&(t=n)}),t||new Date(NaN)}function Ae(e,t){const r=Lt(e),n=Lt(t);return+r==+n}function Ma(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function r0(e){if(!Ma(e)&&typeof e!="number")return!1;const t=ce(e);return!isNaN(Number(t))}function Jt(e,t){const r=ce(e),n=ce(t),a=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return a*12+o}function n0(e,t,r){const n=Je(e,r),a=Je(t,r),o=+n-Vr(n),i=+a-Vr(a);return Math.round((o-i)/Na)}function Ca(e){const t=ce(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Le(e){const t=ce(e);return t.setDate(1),t.setHours(0,0,0,0),t}function xs(e){const t=ce(e),r=ze(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Sa(e,t){var s,l,c,d;const r=ar(),n=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,a=ce(e),o=a.getDay(),i=(o<n?-7:0)+6-(o-n);return a.setDate(a.getDate()+i),a.setHours(23,59,59,999),a}function ws(e){return Sa(e,{weekStartsOn:1})}const a0={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},o0=(e,t,r)=>{let n;const a=a0[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function yn(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const i0={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},s0={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},l0={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},c0={date:yn({formats:i0,defaultWidth:"full"}),time:yn({formats:s0,defaultWidth:"full"}),dateTime:yn({formats:l0,defaultWidth:"full"})},u0={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},d0=(e,t,r,n)=>u0[e];function Gt(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let a;if(n==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,s=r!=null&&r.width?String(r.width):i;a=e.formattingValues[s]||e.formattingValues[i]}else{const i=e.defaultWidth,s=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[s]||e.values[i]}const o=e.argumentCallback?e.argumentCallback(t):t;return a[o]}}const f0={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},m0={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},h0={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},g0={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},p0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},b0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},v0=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},y0={ordinalNumber:v0,era:Gt({values:f0,defaultWidth:"wide"}),quarter:Gt({values:m0,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Gt({values:h0,defaultWidth:"wide"}),day:Gt({values:g0,defaultWidth:"wide"}),dayPeriod:Gt({values:p0,defaultWidth:"wide",formattingValues:b0,defaultFormattingWidth:"wide"})};function Kt(e){return(t,r={})=>{const n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const i=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?w0(s,m=>m.test(i)):x0(s,m=>m.test(i));let c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;const d=t.slice(i.length);return{value:c,rest:d}}}function x0(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function w0(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function k0(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const a=n[0],o=t.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;const s=t.slice(a.length);return{value:i,rest:s}}}const N0=/^(\d+)(th|st|nd|rd)?/i,M0=/\d+/i,C0={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},S0={any:[/^b/i,/^(a|c)/i]},R0={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},_0={any:[/1/i,/2/i,/3/i,/4/i]},D0={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},T0={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},I0={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},j0={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},P0={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},E0={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},O0={ordinalNumber:k0({matchPattern:N0,parsePattern:M0,valueCallback:e=>parseInt(e,10)}),era:Kt({matchPatterns:C0,defaultMatchWidth:"wide",parsePatterns:S0,defaultParseWidth:"any"}),quarter:Kt({matchPatterns:R0,defaultMatchWidth:"wide",parsePatterns:_0,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Kt({matchPatterns:D0,defaultMatchWidth:"wide",parsePatterns:T0,defaultParseWidth:"any"}),day:Kt({matchPatterns:I0,defaultMatchWidth:"wide",parsePatterns:j0,defaultParseWidth:"any"}),dayPeriod:Kt({matchPatterns:P0,defaultMatchWidth:"any",parsePatterns:E0,defaultParseWidth:"any"})},ks={code:"en-US",formatDistance:o0,formatLong:c0,formatRelative:d0,localize:y0,match:O0,options:{weekStartsOn:0,firstWeekContainsDate:1}};function A0(e){const t=ce(e);return Xe(t,xs(t))+1}function Ns(e){const t=ce(e),r=+Rt(t)-+Zf(t);return Math.round(r/Na)+1}function Ms(e,t){var d,m,h,f;const r=ce(e),n=r.getFullYear(),a=ar(),o=(t==null?void 0:t.firstWeekContainsDate)??((m=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??a.firstWeekContainsDate??((f=(h=a.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,i=ze(e,0);i.setFullYear(n+1,0,o),i.setHours(0,0,0,0);const s=Je(i,t),l=ze(e,0);l.setFullYear(n,0,o),l.setHours(0,0,0,0);const c=Je(l,t);return r.getTime()>=s.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}function V0(e,t){var s,l,c,d;const r=ar(),n=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??r.firstWeekContainsDate??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,a=Ms(e,t),o=ze(e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),Je(o,t)}function Cs(e,t){const r=ce(e),n=+Je(r,t)-+V0(r,t);return Math.round(n/Na)+1}function de(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const dt={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return de(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):de(r+1,2)},d(e,t){return de(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return de(e.getHours()%12||12,t.length)},H(e,t){return de(e.getHours(),t.length)},m(e,t){return de(e.getMinutes(),t.length)},s(e,t){return de(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),a=Math.trunc(n*Math.pow(10,r-3));return de(a,t.length)}},Tt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Eo={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return dt.y(e,t)},Y:function(e,t,r,n){const a=Ms(e,n),o=a>0?a:1-a;if(t==="YY"){const i=o%100;return de(i,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):de(o,t.length)},R:function(e,t){const r=ys(e);return de(r,t.length)},u:function(e,t){const r=e.getFullYear();return de(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return de(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return de(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return dt.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return de(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const a=Cs(e,n);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):de(a,t.length)},I:function(e,t,r){const n=Ns(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):de(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):dt.d(e,t)},D:function(e,t,r){const n=A0(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):de(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return de(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return de(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return de(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let a;switch(n===12?a=Tt.noon:n===0?a=Tt.midnight:a=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let a;switch(n>=17?a=Tt.evening:n>=12?a=Tt.afternoon:n>=4?a=Tt.morning:a=Tt.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return dt.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):dt.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):de(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):de(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):dt.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):dt.s(e,t)},S:function(e,t){return dt.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Ao(n);case"XXXX":case"XX":return Nt(n);case"XXXXX":case"XXX":default:return Nt(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Ao(n);case"xxxx":case"xx":return Nt(n);case"xxxxx":case"xxx":default:return Nt(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Oo(n,":");case"OOOO":default:return"GMT"+Nt(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Oo(n,":");case"zzzz":default:return"GMT"+Nt(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return de(n,t.length)},T:function(e,t,r){const n=e.getTime();return de(n,t.length)}};function Oo(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),o=n%60;return o===0?r+String(a):r+String(a)+t+de(o,2)}function Ao(e,t){return e%60===0?(e>0?"-":"+")+de(Math.abs(e)/60,2):Nt(e,t)}function Nt(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=de(Math.trunc(n/60),2),o=de(n%60,2);return r+a+t+o}const Vo=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Ss=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},L0=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return Vo(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Vo(n,t)).replace("{{time}}",Ss(a,t))},z0={p:Ss,P:L0},F0=/^D+$/,$0=/^Y+$/,q0=["D","DD","YY","YYYY"];function W0(e){return F0.test(e)}function Y0(e){return $0.test(e)}function H0(e,t,r){const n=B0(e,t,r);if(console.warn(n),q0.includes(e))throw new RangeError(n)}function B0(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const G0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,K0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,U0=/^'([^]*?)'?$/,X0=/''/g,Q0=/[a-zA-Z]/;function _t(e,t,r){var d,m,h,f,b,v,y,k;const n=ar(),a=(r==null?void 0:r.locale)??n.locale??ks,o=(r==null?void 0:r.firstWeekContainsDate)??((m=(d=r==null?void 0:r.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(h=n.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,i=(r==null?void 0:r.weekStartsOn)??((v=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:v.weekStartsOn)??n.weekStartsOn??((k=(y=n.locale)==null?void 0:y.options)==null?void 0:k.weekStartsOn)??0,s=ce(e);if(!r0(s))throw new RangeError("Invalid time value");let l=t.match(K0).map(N=>{const w=N[0];if(w==="p"||w==="P"){const R=z0[w];return R(N,a.formatLong)}return N}).join("").match(G0).map(N=>{if(N==="''")return{isToken:!1,value:"'"};const w=N[0];if(w==="'")return{isToken:!1,value:Z0(N)};if(Eo[w])return{isToken:!0,value:N};if(w.match(Q0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:N}});a.localize.preprocessor&&(l=a.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return l.map(N=>{if(!N.isToken)return N.value;const w=N.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&Y0(w)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&W0(w))&&H0(w,t,String(e));const R=Eo[w[0]];return R(s,w,a.localize,c)}).join("")}function Z0(e){const t=e.match(U0);return t?t[1].replace(X0,"'"):e}function J0(e){const t=ce(e),r=t.getFullYear(),n=t.getMonth(),a=ze(e,0);return a.setFullYear(r,n+1,0),a.setHours(0,0,0,0),a.getDate()}function em(e){return Math.trunc(+ce(e)/1e3)}function tm(e){const t=ce(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function rm(e,t){return n0(tm(e),Le(e),t)+1}function Bn(e,t){const r=ce(e),n=ce(t);return r.getTime()>n.getTime()}function Rs(e,t){const r=ce(e),n=ce(t);return+r<+n}function Ra(e,t){const r=ce(e),n=ce(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function nm(e,t){const r=ce(e),n=ce(t);return r.getFullYear()===n.getFullYear()}function xn(e,t){return Ee(e,-t)}function wn(e,t){const r=ce(e),n=r.getFullYear(),a=r.getDate(),o=ze(e,0);o.setFullYear(n,t,15),o.setHours(0,0,0,0);const i=J0(o);return r.setMonth(t,Math.min(a,i)),r}function Lo(e,t){const r=ce(e);return isNaN(+r)?ze(e,NaN):(r.setFullYear(t),r)}var J=function(){return J=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},J.apply(this,arguments)};function am(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function _s(e,t,r){for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function or(e){return e.mode==="multiple"}function ir(e){return e.mode==="range"}function Jr(e){return e.mode==="single"}var om={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function im(e,t){return _t(e,"LLLL y",t)}function sm(e,t){return _t(e,"d",t)}function lm(e,t){return _t(e,"LLLL",t)}function cm(e){return"".concat(e)}function um(e,t){return _t(e,"cccccc",t)}function dm(e,t){return _t(e,"yyyy",t)}var fm=Object.freeze({__proto__:null,formatCaption:im,formatDay:sm,formatMonthCaption:lm,formatWeekNumber:cm,formatWeekdayName:um,formatYearCaption:dm}),mm=function(e,t,r){return _t(e,"do MMMM (EEEE)",r)},hm=function(){return"Month: "},gm=function(){return"Go to next month"},pm=function(){return"Go to previous month"},bm=function(e,t){return _t(e,"cccc",t)},vm=function(e){return"Week n. ".concat(e)},ym=function(){return"Year: "},xm=Object.freeze({__proto__:null,labelDay:mm,labelMonthDropdown:hm,labelNext:gm,labelPrevious:pm,labelWeekNumber:vm,labelWeekday:bm,labelYearDropdown:ym});function wm(){var e="buttons",t=om,r=ks,n={},a={},o=1,i={},s=new Date;return{captionLayout:e,classNames:t,formatters:fm,labels:xm,locale:r,modifiersClassNames:n,modifiers:a,numberOfMonths:o,styles:i,today:s,mode:"default"}}function km(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,a=e.toMonth,o=e.fromDate,i=e.toDate;return n?o=Le(n):t&&(o=new Date(t,0,1)),a?i=Ca(a):r&&(i=new Date(r,11,31)),{fromDate:o?Lt(o):void 0,toDate:i?Lt(i):void 0}}var Ds=p.createContext(void 0);function Nm(e){var t,r=e.initialProps,n=wm(),a=km(r),o=a.fromDate,i=a.toDate,s=(t=r.captionLayout)!==null&&t!==void 0?t:n.captionLayout;s!=="buttons"&&(!o||!i)&&(s="buttons");var l;(Jr(r)||or(r)||ir(r))&&(l=r.onSelect);var c=J(J(J({},n),r),{captionLayout:s,classNames:J(J({},n.classNames),r.classNames),components:J({},r.components),formatters:J(J({},n.formatters),r.formatters),fromDate:o,labels:J(J({},n.labels),r.labels),mode:r.mode||n.mode,modifiers:J(J({},n.modifiers),r.modifiers),modifiersClassNames:J(J({},n.modifiersClassNames),r.modifiersClassNames),onSelect:l,styles:J(J({},n.styles),r.styles),toDate:i});return u.jsx(Ds.Provider,{value:c,children:e.children})}function pe(){var e=p.useContext(Ds);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Ts(e){var t=pe(),r=t.locale,n=t.classNames,a=t.styles,o=t.formatters.formatCaption;return u.jsx("div",{className:n.caption_label,style:a.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:o(e.displayMonth,{locale:r})})}function Mm(e){return u.jsx("svg",J({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:u.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Is(e){var t,r,n=e.onChange,a=e.value,o=e.children,i=e.caption,s=e.className,l=e.style,c=pe(),d=(r=(t=c.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&r!==void 0?r:Mm;return u.jsxs("div",{className:s,style:l,children:[u.jsx("span",{className:c.classNames.vhidden,children:e["aria-label"]}),u.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:a,onChange:n,children:o}),u.jsxs("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true",children:[i,u.jsx(d,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]})]})}function Cm(e){var t,r=pe(),n=r.fromDate,a=r.toDate,o=r.styles,i=r.locale,s=r.formatters.formatMonthCaption,l=r.classNames,c=r.components,d=r.labels.labelMonthDropdown;if(!n)return u.jsx(u.Fragment,{});if(!a)return u.jsx(u.Fragment,{});var m=[];if(nm(n,a))for(var h=Le(n),f=n.getMonth();f<=a.getMonth();f++)m.push(wn(h,f));else for(var h=Le(new Date),f=0;f<=11;f++)m.push(wn(h,f));var b=function(y){var k=Number(y.target.value),N=wn(Le(e.displayMonth),k);e.onChange(N)},v=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:Is;return u.jsx(v,{name:"months","aria-label":d(),className:l.dropdown_month,style:o.dropdown_month,onChange:b,value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:i}),children:m.map(function(y){return u.jsx("option",{value:y.getMonth(),children:s(y,{locale:i})},y.getMonth())})})}function Sm(e){var t,r=e.displayMonth,n=pe(),a=n.fromDate,o=n.toDate,i=n.locale,s=n.styles,l=n.classNames,c=n.components,d=n.formatters.formatYearCaption,m=n.labels.labelYearDropdown,h=[];if(!a)return u.jsx(u.Fragment,{});if(!o)return u.jsx(u.Fragment,{});for(var f=a.getFullYear(),b=o.getFullYear(),v=f;v<=b;v++)h.push(Lo(xs(new Date),v));var y=function(N){var w=Lo(Le(r),Number(N.target.value));e.onChange(w)},k=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:Is;return u.jsx(k,{name:"years","aria-label":m(),className:l.dropdown_year,style:s.dropdown_year,onChange:y,value:r.getFullYear(),caption:d(r,{locale:i}),children:h.map(function(N){return u.jsx("option",{value:N.getFullYear(),children:d(N,{locale:i})},N.getFullYear())})})}function Rm(e,t){var r=p.useState(e),n=r[0],a=r[1],o=t===void 0?n:t;return[o,a]}function _m(e){var t=e.month,r=e.defaultMonth,n=e.today,a=t||r||n||new Date,o=e.toDate,i=e.fromDate,s=e.numberOfMonths,l=s===void 0?1:s;if(o&&Jt(o,a)<0){var c=-1*(l-1);a=Be(o,c)}return i&&Jt(a,i)<0&&(a=i),Le(a)}function Dm(){var e=pe(),t=_m(e),r=Rm(t,e.month),n=r[0],a=r[1],o=function(i){var s;if(!e.disableNavigation){var l=Le(i);a(l),(s=e.onMonthChange)===null||s===void 0||s.call(e,l)}};return[n,o]}function Tm(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,a=Le(e),o=Le(Be(a,n)),i=Jt(o,a),s=[],l=0;l<i;l++){var c=Be(a,l);s.push(c)}return r&&(s=s.reverse()),s}function Im(e,t){if(!t.disableNavigation){var r=t.toDate,n=t.pagedNavigation,a=t.numberOfMonths,o=a===void 0?1:a,i=n?o:1,s=Le(e);if(!r)return Be(s,i);var l=Jt(r,e);if(!(l<o))return Be(s,i)}}function jm(e,t){if(!t.disableNavigation){var r=t.fromDate,n=t.pagedNavigation,a=t.numberOfMonths,o=a===void 0?1:a,i=n?o:1,s=Le(e);if(!r)return Be(s,-i);var l=Jt(s,r);if(!(l<=0))return Be(s,-i)}}var js=p.createContext(void 0);function Pm(e){var t=pe(),r=Dm(),n=r[0],a=r[1],o=Tm(n,t),i=Im(n,t),s=jm(n,t),l=function(m){return o.some(function(h){return Ra(m,h)})},c=function(m,h){l(m)||(h&&Rs(m,h)?a(Be(m,1+t.numberOfMonths*-1)):a(m))},d={currentMonth:n,displayMonths:o,goToMonth:a,goToDate:c,previousMonth:s,nextMonth:i,isDateDisplayed:l};return u.jsx(js.Provider,{value:d,children:e.children})}function sr(){var e=p.useContext(js);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function zo(e){var t,r=pe(),n=r.classNames,a=r.styles,o=r.components,i=sr().goToMonth,s=function(d){i(Be(d,e.displayIndex?-e.displayIndex:0))},l=(t=o==null?void 0:o.CaptionLabel)!==null&&t!==void 0?t:Ts,c=u.jsx(l,{id:e.id,displayMonth:e.displayMonth});return u.jsxs("div",{className:n.caption_dropdowns,style:a.caption_dropdowns,children:[u.jsx("div",{className:n.vhidden,children:c}),u.jsx(Cm,{onChange:s,displayMonth:e.displayMonth}),u.jsx(Sm,{onChange:s,displayMonth:e.displayMonth})]})}function Em(e){return u.jsx("svg",J({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:u.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Om(e){return u.jsx("svg",J({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:u.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Lr=p.forwardRef(function(e,t){var r=pe(),n=r.classNames,a=r.styles,o=[n.button_reset,n.button];e.className&&o.push(e.className);var i=o.join(" "),s=J(J({},a.button_reset),a.button);return e.style&&Object.assign(s,e.style),u.jsx("button",J({},e,{ref:t,type:"button",className:i,style:s}))});function Am(e){var t,r,n=pe(),a=n.dir,o=n.locale,i=n.classNames,s=n.styles,l=n.labels,c=l.labelPrevious,d=l.labelNext,m=n.components;if(!e.nextMonth&&!e.previousMonth)return u.jsx(u.Fragment,{});var h=c(e.previousMonth,{locale:o}),f=[i.nav_button,i.nav_button_previous].join(" "),b=d(e.nextMonth,{locale:o}),v=[i.nav_button,i.nav_button_next].join(" "),y=(t=m==null?void 0:m.IconRight)!==null&&t!==void 0?t:Om,k=(r=m==null?void 0:m.IconLeft)!==null&&r!==void 0?r:Em;return u.jsxs("div",{className:i.nav,style:s.nav,children:[!e.hidePrevious&&u.jsx(Lr,{name:"previous-month","aria-label":h,className:f,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:a==="rtl"?u.jsx(y,{className:i.nav_icon,style:s.nav_icon}):u.jsx(k,{className:i.nav_icon,style:s.nav_icon})}),!e.hideNext&&u.jsx(Lr,{name:"next-month","aria-label":b,className:v,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:a==="rtl"?u.jsx(k,{className:i.nav_icon,style:s.nav_icon}):u.jsx(y,{className:i.nav_icon,style:s.nav_icon})})]})}function Fo(e){var t=pe().numberOfMonths,r=sr(),n=r.previousMonth,a=r.nextMonth,o=r.goToMonth,i=r.displayMonths,s=i.findIndex(function(b){return Ra(e.displayMonth,b)}),l=s===0,c=s===i.length-1,d=t>1&&(l||!c),m=t>1&&(c||!l),h=function(){n&&o(n)},f=function(){a&&o(a)};return u.jsx(Am,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:m,nextMonth:a,previousMonth:n,onPreviousClick:h,onNextClick:f})}function Vm(e){var t,r=pe(),n=r.classNames,a=r.disableNavigation,o=r.styles,i=r.captionLayout,s=r.components,l=(t=s==null?void 0:s.CaptionLabel)!==null&&t!==void 0?t:Ts,c;return a?c=u.jsx(l,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?c=u.jsx(zo,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?c=u.jsxs(u.Fragment,{children:[u.jsx(zo,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),u.jsx(Fo,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):c=u.jsxs(u.Fragment,{children:[u.jsx(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),u.jsx(Fo,{displayMonth:e.displayMonth,id:e.id})]}),u.jsx("div",{className:n.caption,style:o.caption,children:c})}function Lm(e){var t=pe(),r=t.footer,n=t.styles,a=t.classNames.tfoot;return r?u.jsx("tfoot",{className:a,style:n.tfoot,children:u.jsx("tr",{children:u.jsx("td",{colSpan:8,children:r})})}):u.jsx(u.Fragment,{})}function zm(e,t,r){for(var n=r?Rt(new Date):Je(new Date,{locale:e,weekStartsOn:t}),a=[],o=0;o<7;o++){var i=Ee(n,o);a.push(i)}return a}function Fm(){var e=pe(),t=e.classNames,r=e.styles,n=e.showWeekNumber,a=e.locale,o=e.weekStartsOn,i=e.ISOWeek,s=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,c=zm(a,o,i);return u.jsxs("tr",{style:r.head_row,className:t.head_row,children:[n&&u.jsx("td",{style:r.head_cell,className:t.head_cell}),c.map(function(d,m){return u.jsx("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":l(d,{locale:a}),children:s(d,{locale:a})},m)})]})}function $m(){var e,t=pe(),r=t.classNames,n=t.styles,a=t.components,o=(e=a==null?void 0:a.HeadRow)!==null&&e!==void 0?e:Fm;return u.jsx("thead",{style:n.head,className:r.head,children:u.jsx(o,{})})}function qm(e){var t=pe(),r=t.locale,n=t.formatters.formatDay;return u.jsx(u.Fragment,{children:n(e.date,{locale:r})})}var _a=p.createContext(void 0);function Wm(e){if(!or(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return u.jsx(_a.Provider,{value:t,children:e.children})}return u.jsx(Ym,{initialProps:e.initialProps,children:e.children})}function Ym(e){var t=e.initialProps,r=e.children,n=t.selected,a=t.min,o=t.max,i=function(c,d,m){var h,f;(h=t.onDayClick)===null||h===void 0||h.call(t,c,d,m);var b=!!(d.selected&&a&&(n==null?void 0:n.length)===a);if(!b){var v=!!(!d.selected&&o&&(n==null?void 0:n.length)===o);if(!v){var y=n?_s([],n):[];if(d.selected){var k=y.findIndex(function(N){return Ae(c,N)});y.splice(k,1)}else y.push(c);(f=t.onSelect)===null||f===void 0||f.call(t,y,c,d,m)}}},s={disabled:[]};n&&s.disabled.push(function(c){var d=o&&n.length>o-1,m=n.some(function(h){return Ae(h,c)});return!!(d&&!m)});var l={selected:n,onDayClick:i,modifiers:s};return u.jsx(_a.Provider,{value:l,children:r})}function Da(){var e=p.useContext(_a);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function Hm(e,t){var r=t||{},n=r.from,a=r.to;return n&&a?Ae(a,e)&&Ae(n,e)?void 0:Ae(a,e)?{from:a,to:void 0}:Ae(n,e)?void 0:Bn(n,e)?{from:e,to:a}:{from:n,to:e}:a?Bn(e,a)?{from:a,to:e}:{from:e,to:a}:n?Rs(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var Ta=p.createContext(void 0);function Bm(e){if(!ir(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return u.jsx(Ta.Provider,{value:t,children:e.children})}return u.jsx(Gm,{initialProps:e.initialProps,children:e.children})}function Gm(e){var t=e.initialProps,r=e.children,n=t.selected,a=n||{},o=a.from,i=a.to,s=t.min,l=t.max,c=function(f,b,v){var y,k;(y=t.onDayClick)===null||y===void 0||y.call(t,f,b,v);var N=Hm(f,n);(k=t.onSelect)===null||k===void 0||k.call(t,N,f,b,v)},d={range_start:[],range_end:[],range_middle:[],disabled:[]};if(o?(d.range_start=[o],i?(d.range_end=[i],Ae(o,i)||(d.range_middle=[{after:o,before:i}])):d.range_end=[o]):i&&(d.range_start=[i],d.range_end=[i]),s&&(o&&!i&&d.disabled.push({after:xn(o,s-1),before:Ee(o,s-1)}),o&&i&&d.disabled.push({after:o,before:Ee(o,s-1)}),!o&&i&&d.disabled.push({after:xn(i,s-1),before:Ee(i,s-1)})),l){if(o&&!i&&(d.disabled.push({before:Ee(o,-l+1)}),d.disabled.push({after:Ee(o,l-1)})),o&&i){var m=Xe(i,o)+1,h=l-m;d.disabled.push({before:xn(o,h)}),d.disabled.push({after:Ee(i,h)})}!o&&i&&(d.disabled.push({before:Ee(i,-l+1)}),d.disabled.push({after:Ee(i,l-1)}))}return u.jsx(Ta.Provider,{value:{selected:n,onDayClick:c,modifiers:d},children:r})}function Ia(){var e=p.useContext(Ta);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Sr(e){return Array.isArray(e)?_s([],e):e!==void 0?[e]:[]}function Km(e){var t={};return Object.entries(e).forEach(function(r){var n=r[0],a=r[1];t[n]=Sr(a)}),t}var Ge;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(Ge||(Ge={}));var Um=Ge.Selected,rt=Ge.Disabled,Xm=Ge.Hidden,Qm=Ge.Today,kn=Ge.RangeEnd,Nn=Ge.RangeMiddle,Mn=Ge.RangeStart,Zm=Ge.Outside;function Jm(e,t,r){var n,a=(n={},n[Um]=Sr(e.selected),n[rt]=Sr(e.disabled),n[Xm]=Sr(e.hidden),n[Qm]=[e.today],n[kn]=[],n[Nn]=[],n[Mn]=[],n[Zm]=[],n);return e.fromDate&&a[rt].push({before:e.fromDate}),e.toDate&&a[rt].push({after:e.toDate}),or(e)?a[rt]=a[rt].concat(t.modifiers[rt]):ir(e)&&(a[rt]=a[rt].concat(r.modifiers[rt]),a[Mn]=r.modifiers[Mn],a[Nn]=r.modifiers[Nn],a[kn]=r.modifiers[kn]),a}var Ps=p.createContext(void 0);function eh(e){var t=pe(),r=Da(),n=Ia(),a=Jm(t,r,n),o=Km(t.modifiers),i=J(J({},a),o);return u.jsx(Ps.Provider,{value:i,children:e.children})}function Es(){var e=p.useContext(Ps);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function th(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function rh(e){return!!(e&&typeof e=="object"&&"from"in e)}function nh(e){return!!(e&&typeof e=="object"&&"after"in e)}function ah(e){return!!(e&&typeof e=="object"&&"before"in e)}function oh(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function ih(e,t){var r,n=t.from,a=t.to;if(n&&a){var o=Xe(a,n)<0;o&&(r=[a,n],n=r[0],a=r[1]);var i=Xe(e,n)>=0&&Xe(a,e)>=0;return i}return a?Ae(a,e):n?Ae(n,e):!1}function sh(e){return Ma(e)}function lh(e){return Array.isArray(e)&&e.every(Ma)}function ch(e,t){return t.some(function(r){if(typeof r=="boolean")return r;if(sh(r))return Ae(e,r);if(lh(r))return r.includes(e);if(rh(r))return ih(e,r);if(oh(r))return r.dayOfWeek.includes(e.getDay());if(th(r)){var n=Xe(r.before,e),a=Xe(r.after,e),o=n>0,i=a<0,s=Bn(r.before,r.after);return s?i&&o:o||i}return nh(r)?Xe(e,r.after)>0:ah(r)?Xe(r.before,e)>0:typeof r=="function"?r(e):!1})}function ja(e,t,r){var n=Object.keys(t).reduce(function(o,i){var s=t[i];return ch(e,s)&&o.push(i),o},[]),a={};return n.forEach(function(o){return a[o]=!0}),r&&!Ra(e,r)&&(a.outside=!0),a}function uh(e,t){for(var r=Le(e[0]),n=Ca(e[e.length-1]),a,o,i=r;i<=n;){var s=ja(i,t),l=!s.disabled&&!s.hidden;if(!l){i=Ee(i,1);continue}if(s.selected)return i;s.today&&!o&&(o=i),a||(a=i),i=Ee(i,1)}return o||a}var dh=365;function Os(e,t){var r=t.moveBy,n=t.direction,a=t.context,o=t.modifiers,i=t.retry,s=i===void 0?{count:0,lastFocused:e}:i,l=a.weekStartsOn,c=a.fromDate,d=a.toDate,m=a.locale,h={day:Ee,week:Hn,month:Be,year:Jf,startOfWeek:function(y){return a.ISOWeek?Rt(y):Je(y,{locale:m,weekStartsOn:l})},endOfWeek:function(y){return a.ISOWeek?ws(y):Sa(y,{locale:m,weekStartsOn:l})}},f=h[r](e,n==="after"?1:-1);n==="before"&&c?f=e0([c,f]):n==="after"&&d&&(f=t0([d,f]));var b=!0;if(o){var v=ja(f,o);b=!v.disabled&&!v.hidden}return b?f:s.count>dh?s.lastFocused:Os(f,{moveBy:r,direction:n,context:a,modifiers:o,retry:J(J({},s),{count:s.count+1})})}var As=p.createContext(void 0);function fh(e){var t=sr(),r=Es(),n=p.useState(),a=n[0],o=n[1],i=p.useState(),s=i[0],l=i[1],c=uh(t.displayMonths,r),d=a??(s&&t.isDateDisplayed(s))?s:c,m=function(){l(a),o(void 0)},h=function(y){o(y)},f=pe(),b=function(y,k){if(a){var N=Os(a,{moveBy:y,direction:k,context:f,modifiers:r});Ae(a,N)||(t.goToDate(N,a),h(N))}},v={focusedDay:a,focusTarget:d,blur:m,focus:h,focusDayAfter:function(){return b("day","after")},focusDayBefore:function(){return b("day","before")},focusWeekAfter:function(){return b("week","after")},focusWeekBefore:function(){return b("week","before")},focusMonthBefore:function(){return b("month","before")},focusMonthAfter:function(){return b("month","after")},focusYearBefore:function(){return b("year","before")},focusYearAfter:function(){return b("year","after")},focusStartOfWeek:function(){return b("startOfWeek","before")},focusEndOfWeek:function(){return b("endOfWeek","after")}};return u.jsx(As.Provider,{value:v,children:e.children})}function Pa(){var e=p.useContext(As);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function mh(e,t){var r=Es(),n=ja(e,r,t);return n}var Ea=p.createContext(void 0);function hh(e){if(!Jr(e.initialProps)){var t={selected:void 0};return u.jsx(Ea.Provider,{value:t,children:e.children})}return u.jsx(gh,{initialProps:e.initialProps,children:e.children})}function gh(e){var t=e.initialProps,r=e.children,n=function(o,i,s){var l,c,d;if((l=t.onDayClick)===null||l===void 0||l.call(t,o,i,s),i.selected&&!t.required){(c=t.onSelect)===null||c===void 0||c.call(t,void 0,o,i,s);return}(d=t.onSelect)===null||d===void 0||d.call(t,o,o,i,s)},a={selected:t.selected,onDayClick:n};return u.jsx(Ea.Provider,{value:a,children:r})}function Vs(){var e=p.useContext(Ea);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function ph(e,t){var r=pe(),n=Vs(),a=Da(),o=Ia(),i=Pa(),s=i.focusDayAfter,l=i.focusDayBefore,c=i.focusWeekAfter,d=i.focusWeekBefore,m=i.blur,h=i.focus,f=i.focusMonthBefore,b=i.focusMonthAfter,v=i.focusYearBefore,y=i.focusYearAfter,k=i.focusStartOfWeek,N=i.focusEndOfWeek,w=function(M){var g,D,T,L;Jr(r)?(g=n.onDayClick)===null||g===void 0||g.call(n,e,t,M):or(r)?(D=a.onDayClick)===null||D===void 0||D.call(a,e,t,M):ir(r)?(T=o.onDayClick)===null||T===void 0||T.call(o,e,t,M):(L=r.onDayClick)===null||L===void 0||L.call(r,e,t,M)},R=function(M){var g;h(e),(g=r.onDayFocus)===null||g===void 0||g.call(r,e,t,M)},_=function(M){var g;m(),(g=r.onDayBlur)===null||g===void 0||g.call(r,e,t,M)},I=function(M){var g;(g=r.onDayMouseEnter)===null||g===void 0||g.call(r,e,t,M)},j=function(M){var g;(g=r.onDayMouseLeave)===null||g===void 0||g.call(r,e,t,M)},E=function(M){var g;(g=r.onDayPointerEnter)===null||g===void 0||g.call(r,e,t,M)},z=function(M){var g;(g=r.onDayPointerLeave)===null||g===void 0||g.call(r,e,t,M)},P=function(M){var g;(g=r.onDayTouchCancel)===null||g===void 0||g.call(r,e,t,M)},V=function(M){var g;(g=r.onDayTouchEnd)===null||g===void 0||g.call(r,e,t,M)},A=function(M){var g;(g=r.onDayTouchMove)===null||g===void 0||g.call(r,e,t,M)},O=function(M){var g;(g=r.onDayTouchStart)===null||g===void 0||g.call(r,e,t,M)},x=function(M){var g;(g=r.onDayKeyUp)===null||g===void 0||g.call(r,e,t,M)},C=function(M){var g;switch(M.key){case"ArrowLeft":M.preventDefault(),M.stopPropagation(),r.dir==="rtl"?s():l();break;case"ArrowRight":M.preventDefault(),M.stopPropagation(),r.dir==="rtl"?l():s();break;case"ArrowDown":M.preventDefault(),M.stopPropagation(),c();break;case"ArrowUp":M.preventDefault(),M.stopPropagation(),d();break;case"PageUp":M.preventDefault(),M.stopPropagation(),M.shiftKey?v():f();break;case"PageDown":M.preventDefault(),M.stopPropagation(),M.shiftKey?y():b();break;case"Home":M.preventDefault(),M.stopPropagation(),k();break;case"End":M.preventDefault(),M.stopPropagation(),N();break}(g=r.onDayKeyDown)===null||g===void 0||g.call(r,e,t,M)},S={onClick:w,onFocus:R,onBlur:_,onKeyDown:C,onKeyUp:x,onMouseEnter:I,onMouseLeave:j,onPointerEnter:E,onPointerLeave:z,onTouchCancel:P,onTouchEnd:V,onTouchMove:A,onTouchStart:O};return S}function bh(){var e=pe(),t=Vs(),r=Da(),n=Ia(),a=Jr(e)?t.selected:or(e)?r.selected:ir(e)?n.selected:void 0;return a}function vh(e){return Object.values(Ge).includes(e)}function yh(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(n){var a=e.modifiersClassNames[n];if(a)r.push(a);else if(vh(n)){var o=e.classNames["day_".concat(n)];o&&r.push(o)}}),r}function xh(e,t){var r=J({},e.styles.day);return Object.keys(t).forEach(function(n){var a;r=J(J({},r),(a=e.modifiersStyles)===null||a===void 0?void 0:a[n])}),r}function wh(e,t,r){var n,a,o,i=pe(),s=Pa(),l=mh(e,t),c=ph(e,l),d=bh(),m=!!(i.onDayClick||i.mode!=="default");p.useEffect(function(){var I;l.outside||s.focusedDay&&m&&Ae(s.focusedDay,e)&&((I=r.current)===null||I===void 0||I.focus())},[s.focusedDay,e,r,m,l.outside]);var h=yh(i,l).join(" "),f=xh(i,l),b=!!(l.outside&&!i.showOutsideDays||l.hidden),v=(o=(a=i.components)===null||a===void 0?void 0:a.DayContent)!==null&&o!==void 0?o:qm,y=u.jsx(v,{date:e,displayMonth:t,activeModifiers:l}),k={style:f,className:h,children:y,role:"gridcell"},N=s.focusTarget&&Ae(s.focusTarget,e)&&!l.outside,w=s.focusedDay&&Ae(s.focusedDay,e),R=J(J(J({},k),(n={disabled:l.disabled,role:"gridcell"},n["aria-selected"]=l.selected,n.tabIndex=w||N?0:-1,n)),c),_={isButton:m,isHidden:b,activeModifiers:l,selectedDays:d,buttonProps:R,divProps:k};return _}function kh(e){var t=p.useRef(null),r=wh(e.date,e.displayMonth,t);return r.isHidden?u.jsx("div",{role:"gridcell"}):r.isButton?u.jsx(Lr,J({name:"day",ref:t},r.buttonProps)):u.jsx("div",J({},r.divProps))}function Nh(e){var t=e.number,r=e.dates,n=pe(),a=n.onWeekNumberClick,o=n.styles,i=n.classNames,s=n.locale,l=n.labels.labelWeekNumber,c=n.formatters.formatWeekNumber,d=c(Number(t),{locale:s});if(!a)return u.jsx("span",{className:i.weeknumber,style:o.weeknumber,children:d});var m=l(Number(t),{locale:s}),h=function(f){a(t,r,f)};return u.jsx(Lr,{name:"week-number","aria-label":m,className:i.weeknumber,style:o.weeknumber,onClick:h,children:d})}function Mh(e){var t,r,n=pe(),a=n.styles,o=n.classNames,i=n.showWeekNumber,s=n.components,l=(t=s==null?void 0:s.Day)!==null&&t!==void 0?t:kh,c=(r=s==null?void 0:s.WeekNumber)!==null&&r!==void 0?r:Nh,d;return i&&(d=u.jsx("td",{className:o.cell,style:a.cell,children:u.jsx(c,{number:e.weekNumber,dates:e.dates})})),u.jsxs("tr",{className:o.row,style:a.row,children:[d,e.dates.map(function(m){return u.jsx("td",{className:o.cell,style:a.cell,role:"presentation",children:u.jsx(l,{displayMonth:e.displayMonth,date:m})},em(m))})]})}function $o(e,t,r){for(var n=r!=null&&r.ISOWeek?ws(t):Sa(t,r),a=r!=null&&r.ISOWeek?Rt(e):Je(e,r),o=Xe(n,a),i=[],s=0;s<=o;s++)i.push(Ee(a,s));var l=i.reduce(function(c,d){var m=r!=null&&r.ISOWeek?Ns(d):Cs(d,r),h=c.find(function(f){return f.weekNumber===m});return h?(h.dates.push(d),c):(c.push({weekNumber:m,dates:[d]}),c)},[]);return l}function Ch(e,t){var r=$o(Le(e),Ca(e),t);if(t!=null&&t.useFixedWeeks){var n=rm(e,t);if(n<6){var a=r[r.length-1],o=a.dates[a.dates.length-1],i=Hn(o,6-n),s=$o(Hn(o,1),i,t);r.push.apply(r,s)}}return r}function Sh(e){var t,r,n,a=pe(),o=a.locale,i=a.classNames,s=a.styles,l=a.hideHead,c=a.fixedWeeks,d=a.components,m=a.weekStartsOn,h=a.firstWeekContainsDate,f=a.ISOWeek,b=Ch(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:f,locale:o,weekStartsOn:m,firstWeekContainsDate:h}),v=(t=d==null?void 0:d.Head)!==null&&t!==void 0?t:$m,y=(r=d==null?void 0:d.Row)!==null&&r!==void 0?r:Mh,k=(n=d==null?void 0:d.Footer)!==null&&n!==void 0?n:Lm;return u.jsxs("table",{id:e.id,className:i.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&u.jsx(v,{}),u.jsx("tbody",{className:i.tbody,style:s.tbody,children:b.map(function(N){return u.jsx(y,{displayMonth:e.displayMonth,dates:N.dates,weekNumber:N.weekNumber},N.weekNumber)})}),u.jsx(k,{displayMonth:e.displayMonth})]})}function Rh(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var _h=Rh()?p.useLayoutEffect:p.useEffect,Cn=!1,Dh=0;function qo(){return"react-day-picker-".concat(++Dh)}function Th(e){var t,r=e??(Cn?qo():null),n=p.useState(r),a=n[0],o=n[1];return _h(function(){a===null&&o(qo())},[]),p.useEffect(function(){Cn===!1&&(Cn=!0)},[]),(t=e??a)!==null&&t!==void 0?t:void 0}function Ih(e){var t,r,n=pe(),a=n.dir,o=n.classNames,i=n.styles,s=n.components,l=sr().displayMonths,c=Th(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),d=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,m=[o.month],h=i.month,f=e.displayIndex===0,b=e.displayIndex===l.length-1,v=!f&&!b;a==="rtl"&&(t=[f,b],b=t[0],f=t[1]),f&&(m.push(o.caption_start),h=J(J({},h),i.caption_start)),b&&(m.push(o.caption_end),h=J(J({},h),i.caption_end)),v&&(m.push(o.caption_between),h=J(J({},h),i.caption_between));var y=(r=s==null?void 0:s.Caption)!==null&&r!==void 0?r:Vm;return u.jsxs("div",{className:m.join(" "),style:h,children:[u.jsx(y,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),u.jsx(Sh,{id:d,"aria-labelledby":c,displayMonth:e.displayMonth})]},e.displayIndex)}function jh(e){var t=pe(),r=t.classNames,n=t.styles;return u.jsx("div",{className:r.months,style:n.months,children:e.children})}function Ph(e){var t,r,n=e.initialProps,a=pe(),o=Pa(),i=sr(),s=p.useState(!1),l=s[0],c=s[1];p.useEffect(function(){a.initialFocus&&o.focusTarget&&(l||(o.focus(o.focusTarget),c(!0)))},[a.initialFocus,l,o.focus,o.focusTarget,o]);var d=[a.classNames.root,a.className];a.numberOfMonths>1&&d.push(a.classNames.multiple_months),a.showWeekNumber&&d.push(a.classNames.with_weeknumber);var m=J(J({},a.styles.root),a.style),h=Object.keys(n).filter(function(b){return b.startsWith("data-")}).reduce(function(b,v){var y;return J(J({},b),(y={},y[v]=n[v],y))},{}),f=(r=(t=n.components)===null||t===void 0?void 0:t.Months)!==null&&r!==void 0?r:jh;return u.jsx("div",J({className:d.join(" "),style:m,dir:a.dir,id:a.id,nonce:n.nonce,title:n.title,lang:n.lang},h,{children:u.jsx(f,{children:i.displayMonths.map(function(b,v){return u.jsx(Ih,{displayIndex:v,displayMonth:b},v)})})}))}function Eh(e){var t=e.children,r=am(e,["children"]);return u.jsx(Nm,{initialProps:r,children:u.jsx(Pm,{children:u.jsx(hh,{initialProps:r,children:u.jsx(Wm,{initialProps:r,children:u.jsx(Bm,{initialProps:r,children:u.jsx(eh,{children:u.jsx(fh,{children:t})})})})})})})}function Oh(e){return u.jsx(Eh,J({},e,{children:u.jsx(Ph,{initialProps:e})}))}Zr.extend(Uf);const zr=p.forwardRef(({label:e,required:t=!1,value:r,onChange:n,name:a,id:o,placeholder:i="Select date",disabled:s=!1,error:l,helperText:c,containerClassName:d,labelClassName:m,inputClassName:h,fullWidth:f=!0,dateFormat:b="DD-MM-YYYY",minDate:v,maxDate:y,showIcon:k=!0,returnDateObject:N=!1,...w},R)=>{const[_,I]=p.useState(!1),[j,E]=p.useState(r?Sn(r,b):""),z=o||`datepicker-${Math.random().toString(36).substr(2,9)}`,P=S=>{S&&(E(Sn(S,b)),n==null||n(N?S:Wo(S))),I(!1)},V=S=>{const M=Gn(S.target.value,b);M?(E(Sn(M,b)),n==null||n(N?M:Wo(M))):(E(""),n==null||n(void 0))},A=()=>{s||I(!_)},O=p.useCallback(S=>{S.target.closest(".datepicker-container")||I(!1)},[]);He.useEffect(()=>{if(_)return document.addEventListener("click",O),()=>document.removeEventListener("click",O)},[_,O]);const x=()=>{if(r)return typeof r=="string"?Gn(r,"YYYY-MM-DD")||void 0:r},C=S=>{const M=S.target.value,g=b.length,D=b.match(/[^a-zA-Z0-9]/g)||[],T=Array.from(new Set(D)),L=$=>/[0-9]/.test($)||T.includes($);M.length<=g&&M.split("").every(L)&&E(M)};return u.jsxs("div",{className:Y("w-full",!f&&"w-auto",d),children:[e&&u.jsxs(vt,{htmlFor:z,className:Y("block mb-2 text-sm font-medium text-gray-900",m),children:[e,t&&u.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),u.jsxs("div",{className:"datepicker-container relative",children:[u.jsxs("div",{className:"relative",children:[u.jsx("input",{ref:R,type:"text",id:z,name:a,value:j,onChange:C,onClick:A,onBlur:V,placeholder:i,disabled:s,className:Y("block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 text-sm text-gray-900","focus:border-primary focus:ring-primary","disabled:cursor-not-allowed disabled:opacity-50",l&&"border-red-500 bg-red-50 text-red-900 focus:border-red-500 focus:ring-red-500",k&&"pr-10",h),...w}),k&&u.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none",children:u.jsx(qs,{className:"h-5 w-5 text-gray-400"})})]}),_&&u.jsx("div",{className:"absolute z-10 mt-1 bg-white border border-gray-200 rounded-lg shadow-lg",children:u.jsx(Oh,{mode:"single",selected:x(),onSelect:P,disabled:[...v?[{before:v}]:[],...y?[{after:y}]:[]],components:{IconLeft:({...S})=>u.jsx(ei,{...S,className:"h-4 w-4"}),IconRight:({...S})=>u.jsx(ti,{...S,className:"h-4 w-4"})},className:"p-3",classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100",nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-gray-500 rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"text-center text-sm p-0 relative [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-accent hover:text-accent-foreground h-9 w-9 p-0 font-normal aria-selected:opacity-100",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"text-gray-500 opacity-50",day_disabled:"text-gray-500 opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible"}})})]}),(l||c)&&u.jsxs("div",{className:"mt-2",children:[l&&u.jsx("p",{className:"text-sm text-red-600",role:"alert",children:l}),c&&!l&&u.jsx("p",{className:"text-sm text-gray-600",children:c})]})]})});zr.displayName="DatePicker";function Sn(e,t){const r=typeof e=="string"?Gn(e,"YYYY-MM-DD"):e;return r?Zr(r).format(t):""}function Gn(e,t){if(!e)return null;const r=Zr(e,t,!0);return console.log(e,t,r.toDate()),r.isValid()?r.toDate():null}function Wo(e){return console.trace(e),Zr(e).format("YYYY-MM-DD")}try{zr.displayName="DatePicker",zr.__docgenInfo={description:`A generic date picker component with calendar dropdown
5
+
6
+ By default, returns dates as strings in 'YYYY-MM-DD' format to avoid timezone issues.
7
+ The display format can be customized via dateFormat prop, but values are always returned in YYYY-MM-DD format.
8
+ Can be configured to return Date objects for backward compatibility.`,displayName:"DatePicker",props:{label:{defaultValue:null,description:"The label for the date picker",name:"label",required:!1,type:{name:"string | undefined"}},required:{defaultValue:{value:"false"},description:"Whether the field is required",name:"required",required:!1,type:{name:"boolean | undefined"}},value:{defaultValue:null,description:"The selected date as a string in YYYY-MM-DD format (preferred) or Date object",name:"value",required:!1,type:{name:"string | Date | undefined"}},onChange:{defaultValue:null,description:"Callback when date is selected - receives string in YYYY-MM-DD format by default",name:"onChange",required:!1,type:{name:"((date: string | Date | undefined) => void) | undefined"}},name:{defaultValue:null,description:"The name attribute for the input",name:"name",required:!1,type:{name:"string | undefined"}},id:{defaultValue:null,description:"The id attribute for the input",name:"id",required:!1,type:{name:"string | undefined"}},placeholder:{defaultValue:{value:"Select date"},description:"Placeholder text",name:"placeholder",required:!1,type:{name:"string | undefined"}},disabled:{defaultValue:{value:"false"},description:"Whether the date picker is disabled",name:"disabled",required:!1,type:{name:"boolean | undefined"}},error:{defaultValue:null,description:"Error message to display",name:"error",required:!1,type:{name:"string | undefined"}},helperText:{defaultValue:null,description:"Helper text to display below the date picker",name:"helperText",required:!1,type:{name:"string | undefined"}},containerClassName:{defaultValue:null,description:"Custom className for the container",name:"containerClassName",required:!1,type:{name:"string | undefined"}},labelClassName:{defaultValue:null,description:"Custom className for the label",name:"labelClassName",required:!1,type:{name:"string | undefined"}},inputClassName:{defaultValue:null,description:"Custom className for the input",name:"inputClassName",required:!1,type:{name:"string | undefined"}},fullWidth:{defaultValue:{value:"true"},description:"Whether the date picker should take full width",name:"fullWidth",required:!1,type:{name:"boolean | undefined"}},dateFormat:{defaultValue:{value:"DD-MM-YYYY"},description:`The date format to display in the input (default: 'DD-MM-YYYY')
9
+ Note: Values are always returned in YYYY-MM-DD format`,name:"dateFormat",required:!1,type:{name:"string | undefined"}},minDate:{defaultValue:null,description:"Minimum selectable date",name:"minDate",required:!1,type:{name:"Date | undefined"}},maxDate:{defaultValue:null,description:"Maximum selectable date",name:"maxDate",required:!1,type:{name:"Date | undefined"}},showIcon:{defaultValue:{value:"true"},description:"Whether to show the calendar icon",name:"showIcon",required:!1,type:{name:"boolean | undefined"}},returnDateObject:{defaultValue:{value:"false"},description:`Whether to return Date objects instead of strings (for backward compatibility)
10
+ @deprecated Use string format instead to avoid timezone issues`,name:"returnDateObject",required:!1,type:{name:"boolean | undefined"}}}}}catch{}const Fr=p.forwardRef(({label:e,required:t=!1,value:r,onChange:n,name:a,id:o,placeholder:i,disabled:s=!1,error:l,helperText:c,containerClassName:d,labelClassName:m,inputClassName:h,fullWidth:f=!0,format12Hour:b=!1,includeSeconds:v=!1,showIcon:y=!0,minTime:k,maxTime:N,step:w=1,...R},_)=>{const[I,j]=p.useState(!1),[E,z]=p.useState(r||""),[P,V]=p.useState("12"),[A,O]=p.useState("00"),[x,C]=p.useState("00"),[S,M]=p.useState("AM"),g=o||`timepicker-${Math.random().toString(36).substr(2,9)}`;p.useEffect(()=>{if(r){const X=Ah(r,b);X&&(V(X.hours),O(X.minutes),C(X.seconds),M(X.period),z(r))}else z("")},[r,b]);const D=X=>{let H=Number.parseInt(P,10)+X;b?(H<1&&(H=12),H>12&&(H=1)):(H<0&&(H=23),H>23&&(H=0));const ee=H.toString().padStart(2,"0");V(ee);const Z=xr(ee,A,x,S,b,v);z(Z),n==null||n(Z)},T=X=>{let H=Number.parseInt(A,10)+X*w;H<0&&(H=60+H),H>=60&&(H=H%60);const ee=H.toString().padStart(2,"0");O(ee);const Z=xr(P,ee,x,S,b,v);z(Z),n==null||n(Z)},L=X=>{let H=Number.parseInt(x,10)+X;H<0&&(H=59),H>=60&&(H=0);const ee=H.toString().padStart(2,"0");C(ee);const Z=xr(P,A,ee,S,b,v);z(Z),n==null||n(Z)},$=()=>{const X=S==="AM"?"PM":"AM";M(X);const H=xr(P,A,x,X,b,v);z(H),n==null||n(H)},F=()=>{s||j(!I)},Q=p.useCallback(X=>{X.target.closest(".timepicker-container")||j(!1)},[]);p.useEffect(()=>{if(I)return document.addEventListener("click",Q),()=>document.removeEventListener("click",Q)},[I,Q]);const U=b?v?"HH:MM:SS AM/PM":"HH:MM AM/PM":v?"HH:MM:SS":"HH:MM";return u.jsxs("div",{className:Y("w-full",!f&&"w-auto",d),children:[e&&u.jsxs(vt,{htmlFor:g,className:Y("block mb-2 text-sm font-medium text-gray-900",m),children:[e,t&&u.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),u.jsxs("div",{className:"timepicker-container relative",children:[u.jsxs("div",{className:"relative",children:[u.jsx("input",{ref:_,type:"text",id:g,name:a,value:E,onClick:F,placeholder:i||U,disabled:s,className:Y("block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 text-sm text-gray-900","focus:border-primary focus:ring-primary","disabled:cursor-not-allowed disabled:opacity-50",l&&"border-red-500 bg-red-50 text-red-900 focus:border-red-500 focus:ring-red-500",y&&"pr-10",h),readOnly:!0,...R}),y&&u.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none",children:u.jsx(Hs,{className:"h-5 w-5 text-gray-400"})})]}),I&&u.jsx("div",{className:"absolute z-10 mt-1 bg-white border border-gray-200 rounded-lg shadow-lg p-4 min-w-[200px]",children:u.jsxs("div",{className:"flex items-center justify-center space-x-2",children:[u.jsxs("div",{className:"flex flex-col items-center",children:[u.jsx("button",{type:"button",onClick:()=>D(1),className:"p-1 hover:bg-gray-100 rounded",disabled:s,children:u.jsx(tn,{className:"h-4 w-4"})}),u.jsx("span",{className:"text-lg font-mono w-8 text-center",children:P}),u.jsx("button",{type:"button",onClick:()=>D(-1),className:"p-1 hover:bg-gray-100 rounded",disabled:s,children:u.jsx(en,{className:"h-4 w-4"})})]}),u.jsx("span",{className:"text-lg font-mono",children:":"}),u.jsxs("div",{className:"flex flex-col items-center",children:[u.jsx("button",{type:"button",onClick:()=>T(1),className:"p-1 hover:bg-gray-100 rounded",disabled:s,children:u.jsx(tn,{className:"h-4 w-4"})}),u.jsx("span",{className:"text-lg font-mono w-8 text-center",children:A}),u.jsx("button",{type:"button",onClick:()=>T(-1),className:"p-1 hover:bg-gray-100 rounded",disabled:s,children:u.jsx(en,{className:"h-4 w-4"})})]}),v&&u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"text-lg font-mono",children:":"}),u.jsxs("div",{className:"flex flex-col items-center",children:[u.jsx("button",{type:"button",onClick:()=>L(1),className:"p-1 hover:bg-gray-100 rounded",disabled:s,children:u.jsx(tn,{className:"h-4 w-4"})}),u.jsx("span",{className:"text-lg font-mono w-8 text-center",children:x}),u.jsx("button",{type:"button",onClick:()=>L(-1),className:"p-1 hover:bg-gray-100 rounded",disabled:s,children:u.jsx(en,{className:"h-4 w-4"})})]})]}),b&&u.jsx("div",{className:"flex flex-col items-center ml-2",children:u.jsx("button",{type:"button",onClick:$,className:"px-2 py-1 text-sm bg-gray-100 hover:bg-gray-200 rounded",disabled:s,children:S})})]})})]}),(l||c)&&u.jsxs("div",{className:"mt-2",children:[l&&u.jsx("p",{className:"text-sm text-red-600",role:"alert",children:l}),c&&!l&&u.jsx("p",{className:"text-sm text-gray-600",children:c})]})]})});Fr.displayName="TimePicker";function Ah(e,t){if(!e)return null;const r=e.split(" "),n=r[0],a=r[1],o=n.split(":");if(o.length<2)return null;const i=o[0].padStart(2,"0"),s=o[1].padStart(2,"0"),l=o[2]?o[2].padStart(2,"0"):"00";return{hours:i,minutes:s,seconds:l,period:t&&a||"AM"}}function xr(e,t,r,n,a,o){const i=o?`${e}:${t}:${r}`:`${e}:${t}`;return a?`${i} ${n}`:i}try{Fr.displayName="TimePicker",Fr.__docgenInfo={description:`A time picker component with dropdown controls
11
+
12
+ Uses string format (HH:MM or HH:MM:SS) to avoid timezone issues.
13
+ Supports both 12-hour and 24-hour formats.`,displayName:"TimePicker",props:{label:{defaultValue:null,description:"The label for the time picker",name:"label",required:!1,type:{name:"string | undefined"}},required:{defaultValue:{value:"false"},description:"Whether the field is required",name:"required",required:!1,type:{name:"boolean | undefined"}},value:{defaultValue:null,description:"The selected time as a string (HH:MM or HH:MM:SS format)",name:"value",required:!1,type:{name:"string | undefined"}},onChange:{defaultValue:null,description:"Callback when time is selected",name:"onChange",required:!1,type:{name:"((time: string | undefined) => void) | undefined"}},name:{defaultValue:null,description:"The name attribute for the input",name:"name",required:!1,type:{name:"string | undefined"}},id:{defaultValue:null,description:"The id attribute for the input",name:"id",required:!1,type:{name:"string | undefined"}},placeholder:{defaultValue:null,description:"Placeholder text",name:"placeholder",required:!1,type:{name:"string | undefined"}},disabled:{defaultValue:{value:"false"},description:"Whether the time picker is disabled",name:"disabled",required:!1,type:{name:"boolean | undefined"}},error:{defaultValue:null,description:"Error message to display",name:"error",required:!1,type:{name:"string | undefined"}},helperText:{defaultValue:null,description:"Helper text to display below the time picker",name:"helperText",required:!1,type:{name:"string | undefined"}},containerClassName:{defaultValue:null,description:"Custom className for the container",name:"containerClassName",required:!1,type:{name:"string | undefined"}},labelClassName:{defaultValue:null,description:"Custom className for the label",name:"labelClassName",required:!1,type:{name:"string | undefined"}},inputClassName:{defaultValue:null,description:"Custom className for the input",name:"inputClassName",required:!1,type:{name:"string | undefined"}},fullWidth:{defaultValue:{value:"true"},description:"Whether the time picker should take full width",name:"fullWidth",required:!1,type:{name:"boolean | undefined"}},format12Hour:{defaultValue:{value:"false"},description:"Whether to use 12-hour format (AM/PM) or 24-hour format",name:"format12Hour",required:!1,type:{name:"boolean | undefined"}},includeSeconds:{defaultValue:{value:"false"},description:"Whether to include seconds in the time",name:"includeSeconds",required:!1,type:{name:"boolean | undefined"}},showIcon:{defaultValue:{value:"true"},description:"Whether to show the clock icon",name:"showIcon",required:!1,type:{name:"boolean | undefined"}},minTime:{defaultValue:null,description:"Minimum time (HH:MM format)",name:"minTime",required:!1,type:{name:"string | undefined"}},maxTime:{defaultValue:null,description:"Maximum time (HH:MM format)",name:"maxTime",required:!1,type:{name:"string | undefined"}},step:{defaultValue:{value:"1"},description:"Step in minutes for time increments",name:"step",required:!1,type:{name:"number | undefined"}}}}}catch{}const Kn=p.forwardRef(({label:e,required:t=!1,value:r,onChange:n,name:a,id:o,datePlaceholder:i,timePlaceholder:s,disabled:l=!1,error:c,helperText:d,containerClassName:m,labelClassName:h,fullWidth:f=!0,dateFormat:b="dd-MM-yyyy",format12Hour:v=!1,includeSeconds:y=!1,minDate:k,maxDate:N,orientation:w="horizontal",...R},_)=>{const[I,j]=p.useState(""),[E,z]=p.useState(""),P=o||`datetime-picker-${Math.random().toString(36).substr(2,9)}`;p.useEffect(()=>{if(r){const x=zh(r,b);j(x);const C=r.getHours().toString().padStart(2,"0"),S=r.getMinutes().toString().padStart(2,"0"),M=r.getSeconds().toString().padStart(2,"0");let g=`${C}:${S}`;y&&(g+=`:${M}`),v&&(g=Fh(g)),z(g)}else j(""),z("")},[r,b,v,y]);const V=x=>{const C=typeof x=="string"?x:(x==null?void 0:x.toString())||"";j(C),O(C,E)},A=x=>{z(x||""),O(I,x||"")},O=(x,C)=>{if(!x||!C){n==null||n(null);return}try{const S=Vh(x,b);if(!S){n==null||n(null);return}const M=Lh(C,v);if(!M){n==null||n(null);return}const g=new Date(S);g.setHours(Number.parseInt(M.hours,10),Number.parseInt(M.minutes,10),y?Number.parseInt(M.seconds,10):0,0),n==null||n(g)}catch{n==null||n(null)}};return u.jsxs("div",{ref:_,className:Y("w-full",!f&&"w-auto",m),...R,children:[e&&u.jsxs(vt,{htmlFor:P,className:Y("block mb-2 text-sm font-medium text-gray-900",h),children:[e,t&&u.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),u.jsxs("div",{className:Y("flex gap-2",w==="vertical"&&"flex-col",w==="horizontal"&&"flex-row"),children:[u.jsx("div",{className:Y(w==="horizontal"&&"flex-1"),children:u.jsx(zr,{value:I,onChange:V,name:a?`${a}_date`:void 0,id:`${P}_date`,placeholder:i,disabled:l,dateFormat:b,minDate:k,maxDate:N,fullWidth:!0,showIcon:!0,error:c?"":void 0})}),u.jsx("div",{className:Y(w==="horizontal"&&"flex-1"),children:u.jsx(Fr,{value:E,onChange:A,name:a?`${a}_time`:void 0,id:`${P}_time`,placeholder:s,disabled:l,format12Hour:v,includeSeconds:y,fullWidth:!0,showIcon:!0,error:c?"":void 0})})]}),(c||d)&&u.jsxs("div",{className:"mt-2",children:[c&&u.jsx("p",{className:"text-sm text-red-600",role:"alert",children:c}),d&&!c&&u.jsx("p",{className:"text-sm text-gray-600",children:d})]})]})});Kn.displayName="DateTimePicker";function Vh(e,t){if(!e)return null;let r,n,a;if(t==="dd-MM-yyyy"){const o=e.split("-");if(o.length!==3)return null;r=Number.parseInt(o[0],10),n=Number.parseInt(o[1],10),a=Number.parseInt(o[2],10)}else if(t==="MM/dd/yyyy"){const o=e.split("/");if(o.length!==3)return null;n=Number.parseInt(o[0],10),r=Number.parseInt(o[1],10),a=Number.parseInt(o[2],10)}else return null;return Number.isNaN(n)||Number.isNaN(r)||Number.isNaN(a)?null:new Date(a,n-1,r,12,0,0)}function Lh(e,t){if(!e)return null;const r=e.split(" "),n=r[0],a=r[1],o=n.split(":");if(o.length<2)return null;let i=Number.parseInt(o[0],10);const s=Number.parseInt(o[1],10),l=o[2]?Number.parseInt(o[2],10):0;return t&&a&&(a==="PM"&&i!==12?i+=12:a==="AM"&&i===12&&(i=0)),{hours:i.toString().padStart(2,"0"),minutes:s.toString().padStart(2,"0"),seconds:l.toString().padStart(2,"0")}}function zh(e,t){const r=e.getDate().toString().padStart(2,"0"),n=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getFullYear();return t==="dd-MM-yyyy"?`${r}-${n}-${a}`:t==="MM/dd/yyyy"?`${n}/${r}/${a}`:t.replace("dd",r).replace("MM",n).replace("yyyy",a.toString())}function Fh(e){const[t,r,n]=e.split(":");let a=Number.parseInt(t,10);const o=a>=12?"PM":"AM";return a===0?a=12:a>12&&(a-=12),`${n?`${a.toString().padStart(2,"0")}:${r}:${n}`:`${a.toString().padStart(2,"0")}:${r}`} ${o}`}try{Kn.displayName="DateTimePicker",Kn.__docgenInfo={description:`A date-time picker component that combines date and time selection
14
+
15
+ Works with native Date objects for better type safety and easier handling.
16
+ The underlying date and time pickers use string formats for display.`,displayName:"DateTimePicker",props:{label:{defaultValue:null,description:"The label for the date-time picker",name:"label",required:!1,type:{name:"string | undefined"}},required:{defaultValue:{value:"false"},description:"Whether the field is required",name:"required",required:!1,type:{name:"boolean | undefined"}},value:{defaultValue:null,description:"The selected date-time as a Date object",name:"value",required:!1,type:{name:"Date | null | undefined"}},onChange:{defaultValue:null,description:"Callback when date-time is selected",name:"onChange",required:!1,type:{name:"((dateTime: Date | null) => void) | undefined"}},name:{defaultValue:null,description:"The name attribute for the input",name:"name",required:!1,type:{name:"string | undefined"}},id:{defaultValue:null,description:"The id attribute for the input",name:"id",required:!1,type:{name:"string | undefined"}},datePlaceholder:{defaultValue:null,description:"Placeholder text for the date part",name:"datePlaceholder",required:!1,type:{name:"string | undefined"}},timePlaceholder:{defaultValue:null,description:"Placeholder text for the time part",name:"timePlaceholder",required:!1,type:{name:"string | undefined"}},disabled:{defaultValue:{value:"false"},description:"Whether the date-time picker is disabled",name:"disabled",required:!1,type:{name:"boolean | undefined"}},error:{defaultValue:null,description:"Error message to display",name:"error",required:!1,type:{name:"string | undefined"}},helperText:{defaultValue:null,description:"Helper text to display below the date-time picker",name:"helperText",required:!1,type:{name:"string | undefined"}},containerClassName:{defaultValue:null,description:"Custom className for the container",name:"containerClassName",required:!1,type:{name:"string | undefined"}},labelClassName:{defaultValue:null,description:"Custom className for the label",name:"labelClassName",required:!1,type:{name:"string | undefined"}},fullWidth:{defaultValue:{value:"true"},description:"Whether the date-time picker should take full width",name:"fullWidth",required:!1,type:{name:"boolean | undefined"}},dateFormat:{defaultValue:{value:"dd-MM-yyyy"},description:"The date format to display (default: 'dd-MM-yyyy')",name:"dateFormat",required:!1,type:{name:"string | undefined"}},format12Hour:{defaultValue:{value:"false"},description:"Whether to use 12-hour format (AM/PM) or 24-hour format for time",name:"format12Hour",required:!1,type:{name:"boolean | undefined"}},includeSeconds:{defaultValue:{value:"false"},description:"Whether to include seconds in the time",name:"includeSeconds",required:!1,type:{name:"boolean | undefined"}},minDate:{defaultValue:null,description:"Minimum selectable date",name:"minDate",required:!1,type:{name:"Date | undefined"}},maxDate:{defaultValue:null,description:"Maximum selectable date",name:"maxDate",required:!1,type:{name:"Date | undefined"}},orientation:{defaultValue:{value:"horizontal"},description:"Layout orientation",name:"orientation",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"horizontal"'},{value:'"vertical"'}]}}}}}catch{}const Un=p.forwardRef(({label:e,checked:t=!1,indeterminate:r=!1,onChange:n,name:a,id:o,disabled:i=!1,required:s=!1,error:l,helperText:c,containerClassName:d,labelClassName:m,inputClassName:h,size:f="md",variant:b="primary",value:v,labelPosition:y="right",...k},N)=>{const w=o||`checkbox-${Math.random().toString(36).substr(2,9)}`,R=z=>{n==null||n(z.target.checked)},_={sm:"h-4 w-4 text-sm",md:"h-5 w-5 text-base",lg:"h-6 w-6 text-lg"},I={primary:"text-blue-600 focus:ring-blue-500",secondary:"text-gray-600 focus:ring-gray-500",success:"text-green-600 focus:ring-green-500",danger:"text-red-600 focus:ring-red-500",warning:"text-yellow-600 focus:ring-yellow-500",info:"text-cyan-600 focus:ring-cyan-500"},j=u.jsxs("div",{className:"relative",children:[u.jsx("input",{ref:N,type:"checkbox",id:w,name:a,value:v,checked:t,onChange:R,disabled:i,required:s,className:Y("rounded border-gray-300 bg-gray-50","focus:ring-2 focus:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","transition-colors duration-200",_[f],I[b],l&&"border-red-500 focus:ring-red-500",h),...k}),u.jsx("div",{className:Y("absolute inset-0 pointer-events-none","flex items-center justify-center","rounded transition-all duration-200",t||r?"opacity-100":"opacity-0",i&&"opacity-50"),children:r?u.jsx(Us,{className:Y("text-white",f==="sm"&&"h-2 w-2",f==="md"&&"h-3 w-3",f==="lg"&&"h-4 w-4")}):t?u.jsx($r,{className:Y("text-white",f==="sm"&&"h-2 w-2",f==="md"&&"h-3 w-3",f==="lg"&&"h-4 w-4")}):null})]}),E=e&&u.jsxs(vt,{htmlFor:w,className:Y("text-sm font-medium text-gray-900 cursor-pointer",i&&"cursor-not-allowed opacity-50",l&&"text-red-900",f==="sm"&&"text-xs",f==="lg"&&"text-base",m),children:[e,s&&u.jsx("span",{className:"text-red-500 ml-1",children:"*"})]});return u.jsxs("div",{className:Y("flex flex-col",d),children:[u.jsxs("div",{className:Y("flex items-center gap-2",y==="left"&&"flex-row-reverse"),children:[j,E]}),(l||c)&&u.jsxs("div",{className:"mt-2",children:[l&&u.jsx("p",{className:"text-sm text-red-600",role:"alert",children:l}),c&&!l&&u.jsx("p",{className:"text-sm text-gray-600",children:c})]})]})});Un.displayName="Checkbox";try{Un.displayName="Checkbox",Un.__docgenInfo={description:"A checkbox component with customizable styling and accessibility features",displayName:"Checkbox",props:{label:{defaultValue:null,description:"The label for the checkbox",name:"label",required:!1,type:{name:"string | undefined"}},checked:{defaultValue:{value:"false"},description:"Whether the checkbox is checked",name:"checked",required:!1,type:{name:"boolean | undefined"}},indeterminate:{defaultValue:{value:"false"},description:"Whether the checkbox is in an indeterminate state",name:"indeterminate",required:!1,type:{name:"boolean | undefined"}},onChange:{defaultValue:null,description:"Callback when checkbox state changes",name:"onChange",required:!1,type:{name:"((checked: boolean) => void) | undefined"}},name:{defaultValue:null,description:"The name attribute for the checkbox",name:"name",required:!1,type:{name:"string | undefined"}},id:{defaultValue:null,description:"The id attribute for the checkbox",name:"id",required:!1,type:{name:"string | undefined"}},disabled:{defaultValue:{value:"false"},description:"Whether the checkbox is disabled",name:"disabled",required:!1,type:{name:"boolean | undefined"}},required:{defaultValue:{value:"false"},description:"Whether the field is required",name:"required",required:!1,type:{name:"boolean | undefined"}},error:{defaultValue:null,description:"Error message to display",name:"error",required:!1,type:{name:"string | undefined"}},helperText:{defaultValue:null,description:"Helper text to display below the checkbox",name:"helperText",required:!1,type:{name:"string | undefined"}},containerClassName:{defaultValue:null,description:"Custom className for the container",name:"containerClassName",required:!1,type:{name:"string | undefined"}},labelClassName:{defaultValue:null,description:"Custom className for the label",name:"labelClassName",required:!1,type:{name:"string | undefined"}},inputClassName:{defaultValue:null,description:"Custom className for the checkbox input",name:"inputClassName",required:!1,type:{name:"string | undefined"}},size:{defaultValue:{value:"md"},description:"Size of the checkbox",name:"size",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},variant:{defaultValue:{value:"primary"},description:"Color variant of the checkbox",name:"variant",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"primary"'},{value:'"secondary"'},{value:'"success"'},{value:'"warning"'},{value:'"info"'},{value:'"danger"'}]}},value:{defaultValue:null,description:"The value attribute for the checkbox",name:"value",required:!1,type:{name:"string | undefined"}},labelPosition:{defaultValue:{value:"right"},description:"Position of the label relative to the checkbox",name:"labelPosition",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"left"'},{value:'"right"'}]}}}}}catch{}const $h={floating:{target:"w-fit",base:"z-10 w-fit divide-y divide-gray-100 rounded shadow focus:outline-none",content:"py-1 text-sm text-gray-700",divider:"my-1 h-px bg-gray-100",header:"block py-2 px-4 text-sm text-gray-700",hidden:"invisible opacity-0",item:{container:"",base:"flex w-full cursor-pointer items-center justify-start py-2 px-4 text-sm text-gray-700 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none disabled:text-gray-400",icon:"mr-2 h-4 w-4"},style:{dark:"bg-gray-900 text-white dark:bg-gray-800",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-900 dark:text-white"},arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-800",light:"bg-white",auto:"bg-white dark:bg-gray-900"},placement:"-4px"}},inlineWrapper:"flex items-center"},Yo=({options:e,trigger:t,onSelect:r,placement:n="bottom",closeOnSelect:a=!0,className:o,contentClassName:i,...s})=>{const l=c=>{c.disabled||r==null||r(c)};return u.jsx(fs,{label:"",dismissOnClick:a,placement:n,theme:$h,className:Y("focus:outline-none",o),renderTrigger:()=>u.jsx("div",{className:"cursor-pointer",children:t}),...s,children:e.map(c=>u.jsxs(ms,{onClick:()=>l(c),className:Y("flex items-center gap-2 px-4 py-2 text-sm cursor-pointer transition-colors duration-150",c.disabled?"text-gray-400 cursor-not-allowed opacity-50":"text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:bg-gray-100",i),disabled:c.disabled,children:[c.icon&&u.jsx("span",{className:"shrink-0",children:c.icon}),u.jsx("span",{children:c.label})]},c.value))})};try{Yo.displayName="DropdownMenu",Yo.__docgenInfo={description:"",displayName:"DropdownMenu",props:{options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"DropdownOption[]"}},trigger:{defaultValue:null,description:"",name:"trigger",required:!0,type:{name:"ReactNode"}},onSelect:{defaultValue:null,description:"",name:"onSelect",required:!1,type:{name:"((option: DropdownOption) => void) | undefined"}},placement:{defaultValue:{value:"bottom"},description:"",name:"placement",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"top"'},{value:'"bottom"'},{value:'"left"'},{value:'"right"'}]}},closeOnSelect:{defaultValue:{value:"true"},description:"",name:"closeOnSelect",required:!1,type:{name:"boolean | undefined"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string | undefined"}},contentClassName:{defaultValue:null,description:"",name:"contentClassName",required:!1,type:{name:"string | undefined"}}}}}catch{}const Xn=({items:e,activeTab:t,onTabChange:r,variant:n="default",className:a,contentClassName:o,...i})=>{var m;const[s,l]=He.useState(t||((m=e[0])==null?void 0:m.id)||""),c=t||s,d=h=>{t||l(h),r==null||r(h)};return u.jsx("div",{className:Y("w-full",a),children:u.jsx(bs,{"aria-label":"Tabs",variant:n,theme:qf,...i,children:e.map(h=>u.jsx(ps,{title:u.jsxs("div",{className:"flex items-center gap-2",children:[h.icon&&u.jsx("span",{className:"shrink-0",children:h.icon}),u.jsx("span",{children:h.label})]}),active:h.id===c,disabled:h.disabled,onClick:()=>!h.disabled&&d(h.id),children:u.jsx("div",{className:Y("py-4",o),children:h.content})},h.id))})})};Xn.displayName="Tabs";try{Xn.displayName="Tabs",Xn.__docgenInfo={description:"A tabs component with customizable styling and content",displayName:"Tabs",props:{items:{defaultValue:null,description:"Array of tab items",name:"items",required:!0,type:{name:"TabItem[]"}},activeTab:{defaultValue:null,description:"Currently active tab id",name:"activeTab",required:!1,type:{name:"string | undefined"}},onTabChange:{defaultValue:null,description:"Callback when tab changes",name:"onTabChange",required:!1,type:{name:"((tabId: string) => void) | undefined"}},variant:{defaultValue:{value:"default"},description:"Variant of the tabs",name:"variant",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"underline"'},{value:'"fullWidth"'},{value:'"default"'},{value:'"pills"'}]}},className:{defaultValue:null,description:"Custom className for the tabs container",name:"className",required:!1,type:{name:"string | undefined"}},contentClassName:{defaultValue:null,description:"Custom className for the tab content area",name:"contentClassName",required:!1,type:{name:"string | undefined"}}}}}catch{}const Qn=({name:e,value:t,checked:r=!1,label:n,disabled:a=!1,className:o,labelClassName:i,radioClassName:s,size:l="md",onChange:c,description:d,...m})=>{const h={sm:"h-3 w-3",md:"h-4 w-4",lg:"h-5 w-5"},f={sm:"text-sm",md:"text-base",lg:"text-lg"};return u.jsxs("div",{className:Y("flex items-start gap-2",o),children:[u.jsx(hs,{id:`${e}-${t}`,name:e,value:t,theme:$f,checked:r,disabled:a,onChange:c,className:Y(h[l],"mt-1 border-gray-300 text-primary focus:ring-primary focus:ring-2",a&&"cursor-not-allowed opacity-50",s),...m}),(n||d)&&u.jsxs("div",{className:"flex-1",children:[n&&u.jsx("label",{htmlFor:`${e}-${t}`,className:Y("font-medium text-gray-900 cursor-pointer",f[l],a&&"cursor-not-allowed opacity-50",i),children:n}),d&&u.jsx("p",{className:Y("text-gray-500 mt-1",l==="sm"?"text-xs":"text-sm",a&&"opacity-50"),children:d})]})]})};Qn.displayName="RadioButton";try{Qn.displayName="RadioButton",Qn.__docgenInfo={description:"A radio button component with customizable styling and options",displayName:"RadioButton",props:{name:{defaultValue:null,description:"The name attribute for the radio group",name:"name",required:!0,type:{name:"string"}},value:{defaultValue:null,description:"The value of the radio button",name:"value",required:!0,type:{name:"string | number"}},checked:{defaultValue:{value:"false"},description:"Whether the radio button is checked",name:"checked",required:!1,type:{name:"boolean | undefined"}},label:{defaultValue:null,description:"Label text for the radio button",name:"label",required:!1,type:{name:"string | undefined"}},disabled:{defaultValue:{value:"false"},description:"Whether the radio button is disabled",name:"disabled",required:!1,type:{name:"boolean | undefined"}},className:{defaultValue:null,description:"Custom className for the container",name:"className",required:!1,type:{name:"string | undefined"}},labelClassName:{defaultValue:null,description:"Custom className for the label",name:"labelClassName",required:!1,type:{name:"string | undefined"}},radioClassName:{defaultValue:null,description:"Custom className for the radio input",name:"radioClassName",required:!1,type:{name:"string | undefined"}},size:{defaultValue:{value:"md"},description:"Size of the radio button",name:"size",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},onChange:{defaultValue:null,description:"Callback when the radio button is selected",name:"onChange",required:!1,type:{name:"((event: ChangeEvent<HTMLInputElement>) => void) | undefined"}},description:{defaultValue:null,description:"Optional description text below the label",name:"description",required:!1,type:{name:"string | undefined"}}}}}catch{}const Zn=({items:e,showHomeIcon:t=!0,separator:r,className:n,maxItems:a,...o})=>{const i=He.useMemo(()=>{if(!a||e.length<=a)return e;const l=e.slice(0,1),c=e.slice(-(a-2)),d={id:"ellipsis",label:"..."};return[...l,d,...c]},[e,a]),s=l=>{l.onClick&&l.onClick()};return u.jsx(Mi,{"aria-label":"Breadcrumb navigation",className:Y("bg-transparent p-0",n),...o,children:i.map((l,c)=>{const h=c===0&&t||l.icon?l.icon?()=>l.icon:Gs:void 0;return l.id==="ellipsis"?u.jsx(Pn,{children:u.jsx("span",{className:"text-gray-500",children:l.label})},l.id):u.jsx(Pn,{href:l.current?void 0:l.href,icon:h,onClick:()=>!l.current&&s(l),className:Y("transition-colors duration-150",l.current?"text-gray-900 font-medium cursor-default":"text-gray-500 hover:text-gray-700 cursor-pointer"),children:u.jsx("span",{className:Y("transition-colors duration-150",l.current&&"text-gray-900"),children:l.label})},l.id)})})};Zn.displayName="Breadcrumbs";try{Zn.displayName="Breadcrumbs",Zn.__docgenInfo={description:"A breadcrumbs navigation component with customizable items and styling",displayName:"Breadcrumbs",props:{items:{defaultValue:null,description:"Array of breadcrumb items",name:"items",required:!0,type:{name:"BreadcrumbItem[]"}},showHomeIcon:{defaultValue:{value:"true"},description:"Whether to show a home icon for the first item",name:"showHomeIcon",required:!1,type:{name:"boolean | undefined"}},separator:{defaultValue:null,description:"Custom separator between breadcrumb items",name:"separator",required:!1,type:{name:"ReactNode"}},className:{defaultValue:null,description:"Custom className for the breadcrumbs container",name:"className",required:!1,type:{name:"string | undefined"}},maxItems:{defaultValue:null,description:"Maximum number of items to show before truncating",name:"maxItems",required:!1,type:{name:"number | undefined"}}}}}catch{}const Jn=({size:e="md",variant:t="primary",className:r,"aria-label":n="Loading",...a})=>{const o={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10"},i={primary:"fill-primary text-primary-100",secondary:"fill-secondary text-secondary-100",white:"fill-white text-gray-200",gray:"fill-gray-600 text-gray-200"};return u.jsxs("svg",{className:Y("animate-spin",o[e],i[t],r),viewBox:"0 0 100 101",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg","aria-label":n,...a,children:[u.jsx("path",{d:"m100 50.5908c0 27.615-22.386 50.0005-50 50.0005s-50-22.3855-50-50.0005 22.386-50.0005 50-50.0005 50 22.3855 50 50.0005zm-90.919 0c0 22.6 18.32 40.9209 40.919 40.9209s40.919-18.3209 40.919-40.9209-18.32-40.9209-40.919-40.9209-40.919 18.3209-40.919 40.9209z",fill:"currentColor"}),u.jsx("path",{d:"m93.9676 39.0409c0-3.1-2.5141-5.6143-5.6143-5.6143s-5.6143 2.5143-5.6143 5.6143 2.5143 5.6143 5.6143 5.6143 5.6143-2.5143 5.6143-5.6143z",fill:"currentFill"})]})};Jn.displayName="Spinner";try{Jn.displayName="Spinner",Jn.__docgenInfo={description:"A loading spinner component with customizable size and color variants",displayName:"Spinner",props:{size:{defaultValue:{value:"md"},description:"The size of the spinner",name:"size",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'}]}},variant:{defaultValue:{value:"primary"},description:"The color variant of the spinner",name:"variant",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"primary"'},{value:'"secondary"'},{value:'"gray"'},{value:'"white"'}]}},className:{defaultValue:null,description:"Custom className for additional styling",name:"className",required:!1,type:{name:"string | undefined"}},"aria-label":{defaultValue:{value:"Loading"},description:"Accessible label for screen readers",name:"aria-label",required:!1,type:{name:"string | undefined"}}}}}catch{}const ea=({content:e,children:t,placement:r="top",trigger:n="hover",className:a,arrow:o=!0,animation:i="duration-300",...s})=>u.jsx(ss,{content:u.jsx("div",{className:Y("px-3 py-2 text-sm text-white bg-gray-900 rounded-lg shadow-lg",a),children:e}),placement:r,trigger:n,arrow:o,animation:i,...s,children:t});ea.displayName="Tooltip";try{ea.displayName="Tooltip",ea.__docgenInfo={description:"A tooltip component that displays helpful information on hover or focus",displayName:"Tooltip",props:{content:{defaultValue:null,description:"Content to display in the tooltip",name:"content",required:!0,type:{name:"ReactNode"}},children:{defaultValue:null,description:"The trigger element that shows the tooltip on hover/focus",name:"children",required:!0,type:{name:"ReactNode"}},placement:{defaultValue:{value:"top"},description:"Placement of the tooltip relative to the trigger",name:"placement",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"top"'},{value:'"bottom"'},{value:'"left"'},{value:'"right"'},{value:'"auto"'}]}},trigger:{defaultValue:{value:"'hover' as any"},description:"Trigger behavior for showing the tooltip",name:"trigger",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"hover"'},{value:'"click"'},{value:'"focus"'}]}},className:{defaultValue:null,description:"Custom className for the tooltip content",name:"className",required:!1,type:{name:"string | undefined"}},arrow:{defaultValue:{value:"true"},description:"Whether to show an arrow pointing to the trigger",name:"arrow",required:!1,type:{name:"boolean | undefined"}},animation:{defaultValue:{value:"duration-300"},description:"Animation style for the tooltip",name:"animation",required:!1,type:{name:'false | "duration-150" | "duration-300" | "duration-500" | undefined'}}}}}catch{}const qh=e=>{if(e===0)return"0 B";const t=1024,r=["B","KB","MB","GB"],n=Math.floor(Math.log(e)/Math.log(t));return`${Number.parseFloat((e/t**n).toFixed(1))} ${r[n]}`},Wh=e=>e.startsWith("image/")?"Image":e==="application/pdf"?"PDF Document":e==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"||e==="application/msword"?"Document":e==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"||e==="application/vnd.ms-excel"?"Spreadsheet":"File",Yh=e=>e.startsWith("image/")?u.jsx(nl,{className:"text-blue-500",size:24}):e==="application/pdf"?u.jsx(tl,{className:"text-red-500",size:24}):e==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"||e==="application/msword"?u.jsx(rl,{className:"text-blue-600",size:24}):e==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"||e==="application/vnd.ms-excel"?u.jsx(el,{className:"text-green-600",size:24}):u.jsx(Js,{className:"text-gray-500",size:24}),Ho=({attachments:e,onDownload:t,onDelete:r,onPreview:n,heading:a,className:o})=>{const[i,s]=p.useState(null),[l,c]=p.useState(0),d=w=>w.startsWith("image/"),m=w=>w==="application/pdf",h=w=>d(w)||m(w),f=e.filter(w=>h(w.mimeType)),b=(w,R)=>{if(R.stopPropagation(),t)t(w);else{const _=document.createElement("a");_.href=w.url,_.download=w.fileName,document.body.appendChild(_),_.click(),document.body.removeChild(_)}},v=(w,R)=>{R.stopPropagation(),r&&r(w)},y=w=>{if(n)n(w);else if(h(w.mimeType)){const R=f.findIndex(_=>_.id===w.id);c(R),s(w)}else window.open(w.url,"_blank")},k=()=>{const w=(l-1+f.length)%f.length;c(w),s(f[w])},N=()=>{const w=(l+1)%f.length;c(w),s(f[w])};return e.length===0?null:u.jsxs("div",{className:Y("w-full max-w-full space-y-4",o),children:[a!==""&&u.jsx("h3",{className:"text-xs font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400",children:a||"Attachments"}),u.jsx("div",{className:"grid gap-3 grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 w-full max-w-full",children:e.map(w=>{const R=d(w.mimeType);return u.jsxs("button",{type:"button",tabIndex:0,onClick:()=>y(w),onKeyDown:_=>{(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),y(w))},className:"group flex h-full w-full min-w-0 cursor-pointer flex-col gap-3 rounded-3xl border border-slate-200 dark:border-gray-700 bg-slate-50 dark:bg-gray-800 p-3 sm:p-4 text-left shadow-sm transition hover:-translate-y-0.5 hover:border-blue-200 dark:hover:border-blue-600 hover:bg-white dark:hover:bg-gray-700 hover:shadow-lg focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:[u.jsxs("div",{className:"relative w-full min-w-0",children:[R?u.jsx("div",{className:"h-32 sm:h-36 w-full overflow-hidden rounded-2xl bg-slate-100 dark:bg-gray-700",children:u.jsx("img",{src:w.thumbnailUrl||w.url,alt:w.fileName,className:"h-full w-full object-cover"})}):u.jsx("div",{className:"flex h-24 sm:h-28 w-full items-center justify-center rounded-2xl bg-white dark:bg-gray-900 text-slate-500 dark:text-slate-400 shadow-inner",children:Yh(w.mimeType)}),u.jsxs("div",{className:"absolute right-2 sm:right-3 top-2 sm:top-3 flex items-center gap-2",children:[r&&u.jsx("button",{type:"button",onClick:_=>v(w,_),className:"flex items-center justify-center rounded-full bg-white/95 dark:bg-gray-900/95 p-1.5 sm:p-2 text-rose-500 dark:text-rose-400 shadow-sm transition hover:bg-rose-50 dark:hover:bg-rose-900/40","aria-label":`Delete ${w.fileName}`,children:u.jsx(Fa,{size:14,className:"sm:w-4 sm:h-4"})}),u.jsx("button",{type:"button",onClick:_=>b(w,_),className:"flex items-center justify-center rounded-full bg-white/95 dark:bg-gray-900/95 p-1.5 sm:p-2 text-slate-500 dark:text-slate-400 shadow-sm transition hover:text-blue-500 dark:hover:text-blue-400 hover:bg-blue-50 dark:hover:bg-blue-900/40","aria-label":`Download ${w.fileName}`,children:u.jsx(Zs,{size:14,className:"sm:w-4 sm:h-4"})})]})]}),u.jsxs("div",{className:"space-y-1 min-w-0",children:[u.jsx("p",{className:"truncate text-sm font-medium text-slate-900 dark:text-slate-100",children:w.fileName}),u.jsxs("p",{className:"text-xs font-medium uppercase tracking-wide text-slate-400 dark:text-slate-500 truncate",children:[Wh(w.mimeType)," •"," ",qh(w.fileSize)]})]})]},w.id)})}),i&&u.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-90 dark:bg-black dark:bg-opacity-95",onClick:()=>s(null),onKeyDown:w=>{w.key==="Escape"&&s(null),w.key==="ArrowLeft"&&f.length>1&&k(),w.key==="ArrowRight"&&f.length>1&&N()},role:"dialog","aria-modal":"true",tabIndex:-1,children:[u.jsx("button",{type:"button",onClick:()=>s(null),className:"absolute right-2 sm:right-4 top-2 sm:top-4 rounded-full bg-white dark:bg-gray-800 p-2 text-gray-900 dark:text-gray-100 hover:bg-gray-100 dark:hover:bg-gray-700 z-10","aria-label":"Close preview",children:u.jsx(Fa,{size:20})}),f.length>1&&u.jsxs(u.Fragment,{children:[u.jsx("button",{type:"button",onClick:w=>{w.stopPropagation(),k()},className:"absolute left-2 sm:left-4 rounded-full bg-white dark:bg-gray-800 p-2 text-gray-900 dark:text-gray-100 hover:bg-gray-100 dark:hover:bg-gray-700 z-10","aria-label":"Previous attachment",children:u.jsx(Xs,{size:20})}),u.jsx("button",{type:"button",onClick:w=>{w.stopPropagation(),N()},className:"absolute right-14 sm:right-20 rounded-full bg-white dark:bg-gray-800 p-2 text-gray-900 dark:text-gray-100 hover:bg-gray-100 dark:hover:bg-gray-700 z-10","aria-label":"Next attachment",children:u.jsx(Qs,{size:20})})]}),u.jsx("div",{className:"max-h-[90vh] max-w-[90vw] bg-white dark:bg-gray-900",children:d(i.mimeType)?u.jsx("img",{src:i.url,alt:i.fileName,className:"max-h-[90vh] max-w-[90vw] object-contain"}):m(i.mimeType)?u.jsx("iframe",{src:i.url,title:i.fileName,className:"w-[90vw] h-[90vh]"}):null}),u.jsx("div",{className:"absolute bottom-2 sm:bottom-4 left-1/2 transform -translate-x-1/2 bg-black dark:bg-gray-900 bg-opacity-75 dark:bg-opacity-90 text-white px-3 sm:px-4 py-1.5 sm:py-2 rounded-lg text-xs sm:text-sm max-w-[90vw] truncate",children:i.fileName})]})]})};try{Ho.displayName="AttachmentPreview",Ho.__docgenInfo={description:`AttachmentPreview component displays a list of file attachments with previews,
17
+ file information, and download functionality.`,displayName:"AttachmentPreview",props:{attachments:{defaultValue:null,description:"Array of attachments to display",name:"attachments",required:!0,type:{name:"Attachment[]"}},onDownload:{defaultValue:null,description:"Callback when download button is clicked",name:"onDownload",required:!1,type:{name:"((attachment: Attachment) => void) | undefined"}},onDelete:{defaultValue:null,description:"Callback when delete button is clicked",name:"onDelete",required:!1,type:{name:"((attachment: Attachment) => void) | undefined"}},onPreview:{defaultValue:null,description:"Callback when preview button is clicked",name:"onPreview",required:!1,type:{name:"((attachment: Attachment) => void) | undefined"}},heading:{defaultValue:null,description:"Optional heading text",name:"heading",required:!1,type:{name:"string | undefined"}},className:{defaultValue:null,description:"Custom className for additional styling",name:"className",required:!1,type:{name:"string | undefined"}}}}}catch{}const Hh={sm:{text:"text-xs",input:"text-xs px-2 py-1",button:"h-5 w-5",icon:"h-3 w-3"},md:{text:"text-sm",input:"text-sm px-2.5 py-1.5",button:"h-6 w-6",icon:"h-3.5 w-3.5"},lg:{text:"text-base",input:"text-base px-3 py-2",button:"h-7 w-7",icon:"h-4 w-4"}};function ta({value:e,onSave:t,validate:r,label:n,icon:a,placeholder:o="Not set",disabled:i=!1,isLoading:s=!1,className:l,valueClassName:c,type:d="text",size:m="md"}){const[h,f]=p.useState(!1),[b,v]=p.useState(e),[y,k]=p.useState(),[N,w]=p.useState(!1),R=p.useRef(null),_=p.useRef(null),I=Hh[m];p.useEffect(()=>{h||v(e)},[e,h]),p.useEffect(()=>{h&&R.current&&(R.current.focus(),R.current.select())},[h]);const j=p.useCallback(()=>{i||s||(v(e),k(void 0),f(!0))},[i,s,e]),E=p.useCallback(()=>{v(e),k(void 0),f(!1)},[e]),z=p.useCallback(async()=>{const A=b.trim();if(r){const O=r(A);if(O){k(O);return}}if(A===e){f(!1);return}w(!0),k(void 0);try{await t(A),f(!1)}catch(O){k(O instanceof Error?O.message:"Failed to save")}finally{w(!1)}},[b,e,r,t]),P=p.useCallback(A=>{A.key==="Enter"&&!N?(A.preventDefault(),z()):A.key==="Escape"&&E()},[z,E,N]);p.useEffect(()=>{const A=O=>{h&&_.current&&!_.current.contains(O.target)&&E()};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[h,E]);const V=i||s||N;return u.jsxs("div",{ref:_,className:Y("space-y-1.5",l),children:[n&&u.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-slate-400 dark:text-slate-500",children:[a,n]}),h?u.jsxs("div",{className:"space-y-1",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("input",{ref:R,type:d,value:b,onChange:A=>{v(A.target.value),y&&k(void 0)},onKeyDown:P,disabled:N,className:Y("flex-1 rounded-md border bg-white dark:bg-gray-900 text-slate-900 dark:text-slate-100","focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400","disabled:opacity-50 disabled:cursor-not-allowed",y?"border-red-300 dark:border-red-600":"border-slate-200 dark:border-gray-700",I.input)}),u.jsx("button",{type:"button",onClick:()=>void z(),disabled:N,className:Y("inline-flex items-center justify-center rounded-md","bg-emerald-600 dark:bg-emerald-500 text-white","hover:bg-emerald-700 dark:hover:bg-emerald-600","focus:outline-none focus:ring-2 focus:ring-emerald-500","disabled:opacity-50 disabled:cursor-not-allowed","transition-colors",I.button),title:"Save",children:u.jsx($r,{className:I.icon})}),u.jsx("button",{type:"button",onClick:E,disabled:N,className:Y("inline-flex items-center justify-center rounded-md","bg-slate-200 dark:bg-gray-700 text-slate-600 dark:text-slate-300","hover:bg-slate-300 dark:hover:bg-gray-600","focus:outline-none focus:ring-2 focus:ring-slate-400","disabled:opacity-50 disabled:cursor-not-allowed","transition-colors",I.button),title:"Cancel",children:u.jsx(qr,{className:I.icon})})]}),y&&u.jsx("p",{className:"text-xs text-red-600 dark:text-red-400",role:"alert",children:y})]}):u.jsxs("div",{className:"group relative flex items-center",children:[u.jsx("p",{className:Y("font-medium text-slate-900 dark:text-slate-100 break-words pr-8",!e&&"text-slate-400 dark:text-slate-500 italic",I.text,c),children:e||o}),!V&&u.jsx("button",{type:"button",onClick:j,className:Y("absolute right-0 inline-flex items-center justify-center rounded-md","opacity-0 group-hover:opacity-100","bg-slate-100 dark:bg-gray-700 text-slate-500 dark:text-slate-400","hover:bg-slate-200 dark:hover:bg-gray-600 hover:text-slate-700 dark:hover:text-slate-200","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:opacity-100","transition-all",I.button),title:"Edit",children:u.jsx(ri,{className:I.icon})})]})]})}ta.displayName="InlineEdit";try{ta.displayName="InlineEdit",ta.__docgenInfo={description:`InlineEdit component that displays text with a hover edit button.
18
+ When clicked, transforms into an input field with save/cancel buttons.`,displayName:"InlineEdit",props:{value:{defaultValue:null,description:"The current value to display and edit",name:"value",required:!0,type:{name:"string"}},onSave:{defaultValue:null,description:"Callback when the value is saved",name:"onSave",required:!0,type:{name:"(newValue: string) => void | Promise<void>"}},validate:{defaultValue:null,description:"Optional validation function. Returns error message string if invalid, undefined if valid.",name:"validate",required:!1,type:{name:"((value: string) => string | undefined) | undefined"}},label:{defaultValue:null,description:"Label shown above the value (optional)",name:"label",required:!1,type:{name:"string | undefined"}},icon:{defaultValue:null,description:"Icon to show before the label (optional)",name:"icon",required:!1,type:{name:"ReactNode"}},placeholder:{defaultValue:{value:"Not set"},description:"Placeholder text when the value is empty",name:"placeholder",required:!1,type:{name:"string | undefined"}},disabled:{defaultValue:{value:"false"},description:"Whether editing is disabled",name:"disabled",required:!1,type:{name:"boolean | undefined"}},isLoading:{defaultValue:{value:"false"},description:"Whether the component is in a loading/saving state",name:"isLoading",required:!1,type:{name:"boolean | undefined"}},className:{defaultValue:null,description:"Custom className for the container",name:"className",required:!1,type:{name:"string | undefined"}},valueClassName:{defaultValue:null,description:"Custom className for the value text",name:"valueClassName",required:!1,type:{name:"string | undefined"}},type:{defaultValue:{value:"text"},description:"Input type (text, email, etc.)",name:"type",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"text"'},{value:'"tel"'},{value:'"url"'},{value:'"email"'}]}},size:{defaultValue:{value:"md"},description:"Size variant",name:"size",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}}}}}catch{}const Bh={sm:{text:"text-xs",select:"text-xs px-2 py-1",button:"h-5 w-5",icon:"h-3 w-3"},md:{text:"text-sm",select:"text-sm px-2.5 py-1.5",button:"h-6 w-6",icon:"h-3.5 w-3.5"},lg:{text:"text-base",select:"text-base px-3 py-2",button:"h-7 w-7",icon:"h-4 w-4"}};function ra({value:e,options:t,onSave:r,label:n,icon:a,placeholder:o="Not selected",allowClear:i=!1,clearText:s="None",disabled:l=!1,isLoading:c=!1,className:d,valueClassName:m,size:h="md"}){var A;const[f,b]=p.useState(!1),[v,y]=p.useState(e),[k,N]=p.useState(!1),w=p.useRef(null),R=p.useRef(null),_=Bh[h],I=e?((A=t.find(O=>O.value===e))==null?void 0:A.label)??e:o;p.useEffect(()=>{f||y(e)},[e,f]),p.useEffect(()=>{f&&w.current&&w.current.focus()},[f]);const j=p.useCallback(()=>{l||c||(y(e),b(!0))},[l,c,e]),E=p.useCallback(()=>{y(e),b(!1)},[e]),z=p.useCallback(async()=>{if(v===e){b(!1);return}N(!0);try{await r(v),b(!1)}catch{}finally{N(!1)}},[v,e,r]),P=p.useCallback(O=>{O.key==="Enter"&&!k?(O.preventDefault(),z()):O.key==="Escape"&&E()},[z,E,k]);p.useEffect(()=>{const O=x=>{f&&R.current&&!R.current.contains(x.target)&&E()};return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)},[f,E]);const V=l||c||k;return u.jsxs("div",{ref:R,className:Y("space-y-1.5",d),children:[n&&u.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-slate-400 dark:text-slate-500",children:[a,n]}),f?u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs("select",{ref:w,value:v??"",onChange:O=>y(O.target.value===""?null:O.target.value),onKeyDown:P,disabled:k,className:Y("flex-1 rounded-md border border-slate-200 dark:border-gray-700","bg-white dark:bg-gray-900 text-slate-900 dark:text-slate-100","focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400","disabled:opacity-50 disabled:cursor-not-allowed",_.select),children:[i&&u.jsx("option",{value:"",children:s}),t.map(O=>u.jsx("option",{value:O.value,disabled:O.disabled,children:O.label},O.value))]}),u.jsx("button",{type:"button",onClick:()=>void z(),disabled:k,className:Y("inline-flex items-center justify-center rounded-md","bg-emerald-600 dark:bg-emerald-500 text-white","hover:bg-emerald-700 dark:hover:bg-emerald-600","focus:outline-none focus:ring-2 focus:ring-emerald-500","disabled:opacity-50 disabled:cursor-not-allowed","transition-colors",_.button),title:"Save",children:u.jsx($r,{className:_.icon})}),u.jsx("button",{type:"button",onClick:E,disabled:k,className:Y("inline-flex items-center justify-center rounded-md","bg-slate-200 dark:bg-gray-700 text-slate-600 dark:text-slate-300","hover:bg-slate-300 dark:hover:bg-gray-600","focus:outline-none focus:ring-2 focus:ring-slate-400","disabled:opacity-50 disabled:cursor-not-allowed","transition-colors",_.button),title:"Cancel",children:u.jsx(qr,{className:_.icon})})]}):u.jsxs("div",{className:"group relative flex items-center",children:[u.jsx("p",{className:Y("font-medium text-slate-900 dark:text-slate-100 break-words pr-8",!e&&"text-slate-400 dark:text-slate-500 italic",_.text,m),children:I}),!V&&u.jsx("button",{type:"button",onClick:j,className:Y("absolute right-0 inline-flex items-center justify-center rounded-md","opacity-0 group-hover:opacity-100","bg-slate-100 dark:bg-gray-700 text-slate-500 dark:text-slate-400","hover:bg-slate-200 dark:hover:bg-gray-600 hover:text-slate-700 dark:hover:text-slate-200","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:opacity-100","transition-all",_.button),title:"Edit",children:u.jsx(ri,{className:_.icon})})]})]})}ra.displayName="InlineSelect";try{ra.displayName="InlineSelect",ra.__docgenInfo={description:`InlineSelect component that displays a value with a hover edit button.
19
+ When clicked, transforms into a select dropdown with save/cancel buttons.`,displayName:"InlineSelect",props:{value:{defaultValue:null,description:"The current selected value",name:"value",required:!0,type:{name:"string | null"}},options:{defaultValue:null,description:"Available options for the select",name:"options",required:!0,type:{name:"InlineSelectOption[]"}},onSave:{defaultValue:null,description:"Callback when the value is saved",name:"onSave",required:!0,type:{name:"(newValue: string | null) => void | Promise<void>"}},label:{defaultValue:null,description:"Label shown above the value (optional)",name:"label",required:!1,type:{name:"string | undefined"}},icon:{defaultValue:null,description:"Icon to show before the label (optional)",name:"icon",required:!1,type:{name:"ReactNode"}},placeholder:{defaultValue:{value:"Not selected"},description:"Placeholder text when no value is selected",name:"placeholder",required:!1,type:{name:"string | undefined"}},allowClear:{defaultValue:{value:"false"},description:"Whether to allow clearing the value (selecting null)",name:"allowClear",required:!1,type:{name:"boolean | undefined"}},clearText:{defaultValue:{value:"None"},description:"Text for the clear/empty option",name:"clearText",required:!1,type:{name:"string | undefined"}},disabled:{defaultValue:{value:"false"},description:"Whether editing is disabled",name:"disabled",required:!1,type:{name:"boolean | undefined"}},isLoading:{defaultValue:{value:"false"},description:"Whether the component is in a loading/saving state",name:"isLoading",required:!1,type:{name:"boolean | undefined"}},className:{defaultValue:null,description:"Custom className for the container",name:"className",required:!1,type:{name:"string | undefined"}},valueClassName:{defaultValue:null,description:"Custom className for the value text",name:"valueClassName",required:!1,type:{name:"string | undefined"}},size:{defaultValue:{value:"md"},description:"Size variant",name:"size",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}}}}}catch{}const Ls=p.createContext(void 0),Gh=()=>{const e=p.useContext(Ls);if(!e)throw new Error("useToastContext must be used within a ToastProvider");return e},na=({children:e})=>{const[t,r]=p.useState([]),n=p.useCallback(o=>{r(i=>i.filter(s=>s.id!==o))},[]),a=p.useCallback(o=>{const i=Math.random().toString(36).substring(2,9);r(s=>[...s,{...o,id:i}])},[]);return u.jsx(Ls.Provider,{value:{toasts:t,addToast:a,removeToast:n},children:e})};try{na.displayName="ToastProvider",na.__docgenInfo={description:"",displayName:"ToastProvider",props:{}}}catch{}const Kh={success:$r,error:qr,warning:Bs,info:Ks},Uh={success:{bg:"bg-green-50 dark:bg-green-800",icon:"bg-green-100 text-green-500 dark:bg-green-700 dark:text-green-200",text:"text-green-800 dark:text-green-200",border:"border-green-200 dark:border-green-700"},error:{bg:"bg-red-50 dark:bg-red-800",icon:"bg-red-100 text-red-500 dark:bg-red-700 dark:text-red-200",text:"text-red-800 dark:text-red-200",border:"border-red-200 dark:border-red-700"},warning:{bg:"bg-amber-50 dark:bg-amber-800",icon:"bg-amber-100 text-amber-500 dark:bg-amber-700 dark:text-amber-200",text:"text-amber-800 dark:text-amber-200",border:"border-amber-200 dark:border-amber-700"},info:{bg:"bg-blue-50 dark:bg-blue-800",icon:"bg-blue-100 text-blue-500 dark:bg-blue-700 dark:text-blue-200",text:"text-blue-800 dark:text-blue-200",border:"border-blue-200 dark:border-blue-700"}},Xh=({toast:e,onRemove:t})=>{const[r,n]=p.useState(!1),a=p.useRef(null),o=p.useRef(Date.now()),i=p.useRef(e.duration||2e3),s=p.useCallback(()=>{a.current&&(clearTimeout(a.current),a.current=null)},[]),l=p.useCallback(()=>{s(),o.current=Date.now(),a.current=setTimeout(()=>{t(e.id)},i.current)},[s,t,e.id]),c=p.useCallback(()=>{r||(s(),i.current=i.current-(Date.now()-o.current),n(!0))},[r,s]),d=p.useCallback(()=>{r&&n(!1)},[r]);p.useEffect(()=>(l(),()=>s()),[l,s]),p.useEffect(()=>(r||l(),()=>s()),[r,l,s]);const m=Uh[e.type];return u.jsxs(vs,{className:`border ${m.bg} ${m.border}`,onMouseEnter:c,onMouseLeave:d,children:[u.jsx("div",{className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-lg ${m.icon}`,children:He.createElement(Kh[e.type],{className:"h-5 w-5","aria-hidden":!0})}),u.jsx("div",{className:`ml-3 text-sm font-normal ${m.text}`,children:e.message}),u.jsx("button",{type:"button",onClick:()=>t(e.id),className:`ml-auto -mx-1.5 -my-1.5 rounded-lg p-1.5 inline-flex items-center justify-center h-8 w-8 hover:bg-gray-100 dark:hover:bg-gray-700 ${m.text}`,"aria-label":"Close",children:u.jsx(qr,{className:"h-5 w-5"})})]},e.id)},aa=()=>{const{toasts:e,removeToast:t}=Gh();return u.jsx("div",{className:"fixed top-4 right-4 z-50 flex flex-col gap-2",children:e.map(r=>u.jsx(Xh,{toast:r,onRemove:t},r.id))})},Bo=({children:e})=>u.jsxs(na,{children:[u.jsx(aa,{}),e]});try{aa.displayName="ToastContainerInner",aa.__docgenInfo={description:"",displayName:"ToastContainerInner",props:{}}}catch{}try{Bo.displayName="ToastContainer",Bo.__docgenInfo={description:"",displayName:"ToastContainer",props:{}}}catch{}const Qh={sm:{text:"text-xs",button:"px-1.5 py-0.5",select:"px-1.5 py-0.5 text-xs",icon:"h-3 w-3"},md:{text:"text-xs",button:"px-2 py-1",select:"px-2 py-1 text-xs",icon:"h-4 w-4"},lg:{text:"text-sm",button:"px-2.5 py-1.5",select:"px-2.5 py-1.5 text-sm",icon:"h-5 w-5"}},oa=({currentPage:e,totalPages:t,pageSize:r,totalItems:n,startItem:a,endItem:o,pageSizeOptions:i=[10,25,50,100],onPageChange:s,onPageSizeChange:l,showPageSizeSelector:c=!0,showItemCount:d=!0,showFirstLastButtons:m=!0,itemLabel:h="items",size:f="md",className:b})=>{const v=e>1,y=e<t,k=Qh[f],N=a??(e-1)*r+1,w=o??Math.min(e*r,n),R=Y("border border-gray-200 rounded bg-white text-gray-700 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",k.button);return u.jsxs("div",{className:Y("flex flex-wrap items-center justify-between gap-4 px-4 py-3 border-t border-gray-200 bg-white",b),children:[u.jsxs("div",{className:"flex items-center gap-4",children:[d&&n>0&&u.jsxs("span",{className:Y("text-gray-500",k.text),children:["Showing"," ",u.jsx("span",{className:"font-semibold text-gray-700",children:N})," ","to ",u.jsx("span",{className:"font-semibold text-gray-700",children:w})," ","of"," ",u.jsx("span",{className:"font-semibold text-gray-700",children:n.toLocaleString()})," ",h]}),c&&l&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("label",{className:Y("text-gray-500",k.text),children:"Per page:"}),u.jsx("select",{value:r,onChange:_=>l(parseInt(_.target.value,10)),className:Y("border border-gray-200 rounded bg-white text-gray-700 hover:bg-gray-50 transition-colors focus:outline-none focus:ring-1 focus:ring-blue-500",k.select),children:i.map(_=>u.jsx("option",{value:_,children:_},_))})]})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[m&&u.jsx("button",{type:"button",onClick:()=>s(1),disabled:!v,className:R,title:"First page","aria-label":"Go to first page",children:u.jsx(Ws,{className:k.icon})}),u.jsx("button",{type:"button",onClick:()=>s(e-1),disabled:!v,className:R,title:"Previous page","aria-label":"Go to previous page",children:u.jsx(ei,{className:k.icon})}),u.jsxs("span",{className:Y("text-gray-500 px-2",k.text),children:["Page ",u.jsx("span",{className:"font-semibold text-gray-700",children:e})," of"," ",u.jsx("span",{className:"font-semibold text-gray-700",children:t||1})]}),u.jsx("button",{type:"button",onClick:()=>s(e+1),disabled:!y,className:R,title:"Next page","aria-label":"Go to next page",children:u.jsx(ti,{className:k.icon})}),m&&u.jsx("button",{type:"button",onClick:()=>s(t),disabled:!y,className:R,title:"Last page","aria-label":"Go to last page",children:u.jsx(Ys,{className:k.icon})})]})]})};oa.displayName="Pagination";try{oa.displayName="Pagination",oa.__docgenInfo={description:`Pagination component - Generic pagination controls for tables, lists, and grids.
20
+ Includes page navigation, page size selection, and item count display.`,displayName:"Pagination",props:{currentPage:{defaultValue:null,description:"Current page (1-indexed)",name:"currentPage",required:!0,type:{name:"number"}},totalPages:{defaultValue:null,description:"Total number of pages",name:"totalPages",required:!0,type:{name:"number"}},pageSize:{defaultValue:null,description:"Number of items per page",name:"pageSize",required:!0,type:{name:"number"}},totalItems:{defaultValue:null,description:"Total number of items",name:"totalItems",required:!0,type:{name:"number"}},startItem:{defaultValue:null,description:"Start index of current page (1-indexed)",name:"startItem",required:!1,type:{name:"number | undefined"}},endItem:{defaultValue:null,description:"End index of current page",name:"endItem",required:!1,type:{name:"number | undefined"}},pageSizeOptions:{defaultValue:{value:"[10, 25, 50, 100]"},description:"Available page size options",name:"pageSizeOptions",required:!1,type:{name:"number[] | undefined"}},onPageChange:{defaultValue:null,description:"Callback when page changes",name:"onPageChange",required:!0,type:{name:"(page: number) => void"}},onPageSizeChange:{defaultValue:null,description:"Callback when page size changes",name:"onPageSizeChange",required:!1,type:{name:"((pageSize: number) => void) | undefined"}},showPageSizeSelector:{defaultValue:{value:"true"},description:"Whether to show page size selector",name:"showPageSizeSelector",required:!1,type:{name:"boolean | undefined"}},showItemCount:{defaultValue:{value:"true"},description:"Whether to show item count info",name:"showItemCount",required:!1,type:{name:"boolean | undefined"}},showFirstLastButtons:{defaultValue:{value:"true"},description:"Whether to show first/last page buttons",name:"showFirstLastButtons",required:!1,type:{name:"boolean | undefined"}},itemLabel:{defaultValue:{value:"items"},description:'Label for the items (e.g., "rows", "items", "results")',name:"itemLabel",required:!1,type:{name:"string | undefined"}},size:{defaultValue:{value:"md"},description:"Size variant",name:"size",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},className:{defaultValue:null,description:"Custom className",name:"className",required:!1,type:{name:"string | undefined"}}}}}catch{}const Go=({trigger:e,children:t,className:r="",placement:n="bottom"})=>{const[a,o]=p.useState(!1),[i,s]=p.useState({top:0,left:0}),l=p.useRef(null),c=p.useRef(null),d=()=>{var z;if(!l.current)return{top:0,left:0};const k=l.current.getBoundingClientRect(),N=window.innerWidth,w=window.innerHeight,R=(z=c.current)==null?void 0:z.getBoundingClientRect(),_=(R==null?void 0:R.width)||200,I=(R==null?void 0:R.height)||300;let j=0,E=0;switch(n){case"top":j=k.top-I-5,E=k.left;break;case"bottom":j=k.bottom+5,E=k.left;break;case"left":j=k.top,E=k.left-_-5;break;case"right":j=k.top,E=k.right+5;break}if(E+_>N-10&&(E=N-_-10),E<10&&(E=10),j+I>w-10)if(n==="bottom"){const P=k.top-I-5;P>=10?j=P:j=w-I-10}else j=w-I-10;if(j<10)if(n==="top"){const P=k.bottom+5;P+I<=w-10?j=P:j=10}else j=10;return{top:j,left:E}},m=()=>{if(l.current){const k=d();s(k)}},h=k=>{k.preventDefault(),k.stopPropagation(),a||m(),o(!a)},f=k=>{l.current&&!l.current.contains(k.target)&&c.current&&!c.current.contains(k.target)&&o(!1)},b=()=>{a&&m()},v=k=>{k.key==="Escape"&&o(!1)};p.useEffect(()=>{if(a){document.addEventListener("mousedown",f),document.addEventListener("keydown",v),window.addEventListener("scroll",b,!0),window.addEventListener("resize",m);const k=setTimeout(()=>{m()},0);return()=>{document.removeEventListener("mousedown",f),document.removeEventListener("keydown",v),window.removeEventListener("scroll",b,!0),window.removeEventListener("resize",m),clearTimeout(k)}}},[a]);const y=a?u.jsx("div",{ref:c,className:`fixed z-50 bg-white border border-gray-200 rounded-lg shadow-lg py-1 min-w-[200px] ${r}`,style:{top:i.top,left:i.left},children:t}):null;return u.jsxs(u.Fragment,{children:[u.jsx("div",{ref:l,onClick:h,children:e}),a&&Uo.createPortal(y,document.body)]})},Ko=({children:e,onClick:t,disabled:r=!1,className:n=""})=>u.jsx("button",{onClick:t,disabled:r,className:`w-full px-4 py-2 text-left text-sm text-gray-700 hover:bg-gray-100 disabled:opacity-50 disabled:cursor-not-allowed flex items-center ${n}`,children:e});try{Go.displayName="ContextMenu",Go.__docgenInfo={description:"",displayName:"ContextMenu",props:{trigger:{defaultValue:null,description:"",name:"trigger",required:!0,type:{name:"ReactNode"}},className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string | undefined"}},placement:{defaultValue:{value:"bottom"},description:"",name:"placement",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"top"'},{value:'"bottom"'},{value:'"left"'},{value:'"right"'}]}}}}}catch{}try{Ko.displayName="ContextMenuItem",Ko.__docgenInfo={description:"",displayName:"ContextMenuItem",props:{onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"MouseEventHandler | undefined"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean | undefined"}},className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string | undefined"}}}}}catch{}try{ContextMenu.displayName="ContextMenu",ContextMenu.__docgenInfo={description:"",displayName:"ContextMenu",props:{trigger:{defaultValue:null,description:"",name:"trigger",required:!0,type:{name:"ReactNode"}},className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string | undefined"}},placement:{defaultValue:{value:"bottom"},description:"",name:"placement",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"top"'},{value:'"bottom"'},{value:'"left"'},{value:'"right"'}]}}}}}catch{}try{ContextMenuItem.displayName="ContextMenuItem",ContextMenuItem.__docgenInfo={description:"",displayName:"ContextMenuItem",props:{onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"MouseEventHandler | undefined"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean | undefined"}},className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string | undefined"}}}}}catch{}export{Go as C,mg as F,ae as G,qr as H,oa as P,Bo as T,hg as a,$r as b,al as c,og as d,dg as e,ug as f,ag as g,tn as h,en as i,tg as j,eg as k,fg as l,sg as m,ig as n,cg as o,ng as p,Ko as q,ti as r,ri as s,Al as t,lg as u,rg as v};