nfx-ui 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/dist/animations.cjs +2 -3
  2. package/dist/animations.mjs +3 -4
  3. package/dist/apis.cjs +1 -2
  4. package/dist/apis.cjs.map +1 -1
  5. package/dist/apis.mjs +1 -2
  6. package/dist/apis.mjs.map +1 -1
  7. package/dist/{chunk-BounceLoading-C5XE8DKc.mjs → chunk-BounceLoading-C-gq-XVr.mjs} +1 -1
  8. package/dist/{chunk-BounceLoading-C5XE8DKc.mjs.map → chunk-BounceLoading-C-gq-XVr.mjs.map} +1 -1
  9. package/dist/chunk-BounceLoading-CkxvzNz8.cjs +11 -0
  10. package/dist/{chunk-BounceLoading-CwvDT5HF.cjs.map → chunk-BounceLoading-CkxvzNz8.cjs.map} +1 -1
  11. package/dist/{chunk-animations-Do1xZdGL.mjs → chunk-animations-CiJbVYGC.mjs} +2 -2
  12. package/dist/{chunk-animations-Do1xZdGL.mjs.map → chunk-animations-CiJbVYGC.mjs.map} +1 -1
  13. package/dist/{chunk-animations-DOdfS0n5.cjs → chunk-animations-i85rn79V.cjs} +2 -2
  14. package/dist/{chunk-animations-DOdfS0n5.cjs.map → chunk-animations-i85rn79V.cjs.map} +1 -1
  15. package/dist/{chunk-i18n--XStRXog.cjs → chunk-i18n-2-xL4pEi.cjs} +2 -2
  16. package/dist/{chunk-i18n--XStRXog.cjs.map → chunk-i18n-2-xL4pEi.cjs.map} +1 -1
  17. package/dist/{chunk-i18n-ly0gkdrE.mjs → chunk-i18n-DgaoEbGL.mjs} +3 -3
  18. package/dist/{chunk-i18n-ly0gkdrE.mjs.map → chunk-i18n-DgaoEbGL.mjs.map} +1 -1
  19. package/dist/{chunk-language-b-WaFsLY.cjs → chunk-language-2r4uKROB.cjs} +2 -2
  20. package/dist/{chunk-language-b-WaFsLY.cjs.map → chunk-language-2r4uKROB.cjs.map} +1 -1
  21. package/dist/{chunk-language-BKIy1ot4.mjs → chunk-language-JRs5UIa2.mjs} +2 -2
  22. package/dist/{chunk-language-BKIy1ot4.mjs.map → chunk-language-JRs5UIa2.mjs.map} +1 -1
  23. package/dist/chunk-layout-BEAgFhif.mjs +11 -0
  24. package/dist/{chunk-layout-C2uqDEMJ.mjs.map → chunk-layout-BEAgFhif.mjs.map} +1 -1
  25. package/dist/{chunk-layout-D728gccQ.cjs → chunk-layout-mMQXuBLE.cjs} +2 -2
  26. package/dist/{chunk-layout-D728gccQ.cjs.map → chunk-layout-mMQXuBLE.cjs.map} +1 -1
  27. package/dist/{chunk-lstorage-BVCD00Ow.mjs → chunk-lstorage-WwyI7gQN.mjs} +1 -1
  28. package/dist/{chunk-lstorage-BVCD00Ow.mjs.map → chunk-lstorage-WwyI7gQN.mjs.map} +1 -1
  29. package/dist/{chunk-lstorage-BnxLXHgH.cjs → chunk-lstorage-_yGQsIQ9.cjs} +1 -1
  30. package/dist/{chunk-lstorage-BnxLXHgH.cjs.map → chunk-lstorage-_yGQsIQ9.cjs.map} +1 -1
  31. package/dist/{chunk-lucide-C54WenI6.mjs → chunk-lucide-B99NZWfa.mjs} +1 -1
  32. package/dist/{chunk-lucide-C54WenI6.mjs.map → chunk-lucide-B99NZWfa.mjs.map} +1 -1
  33. package/dist/{chunk-lucide-CP2lvOPY.cjs → chunk-lucide-XL6d5__j.cjs} +2 -2
  34. package/dist/{chunk-lucide-CP2lvOPY.cjs.map → chunk-lucide-XL6d5__j.cjs.map} +1 -1
  35. package/dist/{chunk-preference-Bs5zQSRc.mjs → chunk-preference-DMhhY1Pl.mjs} +15 -15
  36. package/dist/{chunk-preference-Bs5zQSRc.mjs.map → chunk-preference-DMhhY1Pl.mjs.map} +1 -1
  37. package/dist/{chunk-preference-DE8Jp2f5.cjs → chunk-preference-DbNgeGhx.cjs} +2 -2
  38. package/dist/{chunk-preference-DE8Jp2f5.cjs.map → chunk-preference-DbNgeGhx.cjs.map} +1 -1
  39. package/dist/{chunk-theme-9dcwRKw8.mjs → chunk-theme-CINVDd47.mjs} +8 -8
  40. package/dist/{chunk-theme-9dcwRKw8.mjs.map → chunk-theme-CINVDd47.mjs.map} +1 -1
  41. package/dist/{chunk-theme-BFvDRCYS.cjs → chunk-theme-D49XQfXe.cjs} +2 -2
  42. package/dist/{chunk-theme-BFvDRCYS.cjs.map → chunk-theme-D49XQfXe.cjs.map} +1 -1
  43. package/dist/chunk-useLayout-BAIFfydj.cjs +3 -0
  44. package/dist/{chunk-useLayout-BAJHOIL3.cjs.map → chunk-useLayout-BAIFfydj.cjs.map} +1 -1
  45. package/dist/{chunk-useLayout-DPxlynT-.mjs → chunk-useLayout-BXsJlpcb.mjs} +1 -1
  46. package/dist/{chunk-useLayout-DPxlynT-.mjs.map → chunk-useLayout-BXsJlpcb.mjs.map} +1 -1
  47. package/dist/{chunk-useTheme-oHcq3d0o.mjs → chunk-useTheme-BY1_pW9y.mjs} +1 -1
  48. package/dist/{chunk-useTheme-oHcq3d0o.mjs.map → chunk-useTheme-BY1_pW9y.mjs.map} +1 -1
  49. package/dist/chunk-useTheme-Tw_7_cQf.cjs +3 -0
  50. package/dist/{chunk-useTheme-DgleVMMh.cjs.map → chunk-useTheme-Tw_7_cQf.cjs.map} +1 -1
  51. package/dist/components.cjs +3 -4
  52. package/dist/components.cjs.map +1 -1
  53. package/dist/components.mjs +1299 -1094
  54. package/dist/components.mjs.map +1 -1
  55. package/dist/constants.cjs +1 -2
  56. package/dist/constants.cjs.map +1 -1
  57. package/dist/constants.mjs +1 -2
  58. package/dist/constants.mjs.map +1 -1
  59. package/dist/events.cjs +1 -2
  60. package/dist/events.cjs.map +1 -1
  61. package/dist/events.mjs +1 -2
  62. package/dist/events.mjs.map +1 -1
  63. package/dist/hooks.cjs +2 -3
  64. package/dist/hooks.cjs.map +1 -1
  65. package/dist/hooks.mjs +1 -2
  66. package/dist/hooks.mjs.map +1 -1
  67. package/dist/icons.cjs +2 -3
  68. package/dist/icons.mjs +2 -3
  69. package/dist/languages.cjs +2 -3
  70. package/dist/languages.cjs.map +1 -1
  71. package/dist/languages.mjs +35 -36
  72. package/dist/languages.mjs.map +1 -1
  73. package/dist/layouts.cjs +2 -3
  74. package/dist/layouts.cjs.map +1 -1
  75. package/dist/layouts.mjs +7 -8
  76. package/dist/layouts.mjs.map +1 -1
  77. package/dist/navigations.cjs +1 -2
  78. package/dist/navigations.cjs.map +1 -1
  79. package/dist/navigations.mjs +1 -2
  80. package/dist/navigations.mjs.map +1 -1
  81. package/dist/pixel-blast.cjs +2 -3
  82. package/dist/pixel-blast.cjs.map +1 -1
  83. package/dist/pixel-blast.mjs +2 -3
  84. package/dist/pixel-blast.mjs.map +1 -1
  85. package/dist/preference.cjs +2 -3
  86. package/dist/preference.mjs +2 -3
  87. package/dist/services.cjs +1 -2
  88. package/dist/services.cjs.map +1 -1
  89. package/dist/services.mjs +1 -2
  90. package/dist/services.mjs.map +1 -1
  91. package/dist/src/designs/animations/BounceLoading/index.d.ts +1 -1
  92. package/dist/src/designs/animations/BounceLoading/index.d.ts.map +1 -1
  93. package/dist/src/designs/animations/ECGLoading/index.d.ts +1 -1
  94. package/dist/src/designs/animations/ECGLoading/index.d.ts.map +1 -1
  95. package/dist/src/designs/animations/TruckLoading/index.d.ts +1 -1
  96. package/dist/src/designs/animations/TruckLoading/index.d.ts.map +1 -1
  97. package/dist/src/designs/components/Icon/index.d.ts +1 -1
  98. package/dist/src/designs/components/Icon/index.d.ts.map +1 -1
  99. package/dist/src/designs/components/KeyValueEditor/index.d.ts +1 -1
  100. package/dist/src/designs/components/KeyValueEditor/index.d.ts.map +1 -1
  101. package/dist/src/designs/components/LayoutSwitcher/index.d.ts +1 -1
  102. package/dist/src/designs/components/LayoutSwitcher/index.d.ts.map +1 -1
  103. package/dist/src/designs/components/SearchInput/index.d.ts +1 -1
  104. package/dist/src/designs/components/SearchInput/index.d.ts.map +1 -1
  105. package/dist/src/designs/components/ShowFilter/index.d.ts +1 -1
  106. package/dist/src/designs/components/ShowFilter/index.d.ts.map +1 -1
  107. package/dist/src/designs/components/SlideDownSwitcher/index.d.ts +1 -1
  108. package/dist/src/designs/components/SlideDownSwitcher/index.d.ts.map +1 -1
  109. package/dist/src/designs/components/Suspense/index.d.ts +1 -1
  110. package/dist/src/designs/components/Suspense/index.d.ts.map +1 -1
  111. package/dist/src/designs/components/ThemeSwitcher/index.d.ts +1 -1
  112. package/dist/src/designs/components/ThemeSwitcher/index.d.ts.map +1 -1
  113. package/dist/src/designs/components/VirtualList/index.d.ts +1 -1
  114. package/dist/src/designs/components/VirtualList/index.d.ts.map +1 -1
  115. package/dist/src/designs/components/VirtualWindowList/index.d.ts +1 -1
  116. package/dist/src/designs/components/VirtualWindowList/index.d.ts.map +1 -1
  117. package/dist/src/designs/layouts/components/Background/index.d.ts +1 -1
  118. package/dist/src/designs/layouts/components/Background/index.d.ts.map +1 -1
  119. package/dist/src/designs/layouts/components/Footer/index.d.ts +2 -2
  120. package/dist/src/designs/layouts/components/Footer/index.d.ts.map +1 -1
  121. package/dist/src/designs/layouts/components/Header/index.d.ts +1 -1
  122. package/dist/src/designs/layouts/components/Header/index.d.ts.map +1 -1
  123. package/dist/src/designs/layouts/components/LayoutFrame/index.d.ts +1 -1
  124. package/dist/src/designs/layouts/components/LayoutFrame/index.d.ts.map +1 -1
  125. package/dist/src/designs/layouts/components/MainWrapper/index.d.ts +1 -1
  126. package/dist/src/designs/layouts/components/MainWrapper/index.d.ts.map +1 -1
  127. package/dist/src/designs/layouts/components/SideHideLayout/index.d.ts +1 -1
  128. package/dist/src/designs/layouts/components/SideHideLayout/index.d.ts.map +1 -1
  129. package/dist/src/designs/layouts/components/SideShowLayout/index.d.ts +1 -1
  130. package/dist/src/designs/layouts/components/SideShowLayout/index.d.ts.map +1 -1
  131. package/dist/src/designs/layouts/components/Sidebar/index.d.ts +1 -1
  132. package/dist/src/designs/layouts/components/Sidebar/index.d.ts.map +1 -1
  133. package/dist/src/designs/layouts/providers/index.d.ts +1 -1
  134. package/dist/src/designs/layouts/providers/index.d.ts.map +1 -1
  135. package/dist/src/languages/providers/index.d.ts +1 -1
  136. package/dist/src/languages/providers/index.d.ts.map +1 -1
  137. package/dist/src/themes/providers/index.d.ts +1 -1
  138. package/dist/src/themes/providers/index.d.ts.map +1 -1
  139. package/dist/stores.cjs +2 -3
  140. package/dist/stores.cjs.map +1 -1
  141. package/dist/stores.mjs +1 -2
  142. package/dist/stores.mjs.map +1 -1
  143. package/dist/themes.cjs +2 -3
  144. package/dist/themes.cjs.map +1 -1
  145. package/dist/themes.mjs +4 -5
  146. package/dist/themes.mjs.map +1 -1
  147. package/dist/types.cjs +1 -2
  148. package/dist/types.mjs +1 -2
  149. package/dist/utils.cjs +2 -3
  150. package/dist/utils.cjs.map +1 -1
  151. package/dist/utils.mjs +3 -4
  152. package/dist/utils.mjs.map +1 -1
  153. package/package.json +21 -21
  154. package/dist/chunk-BounceLoading-CwvDT5HF.cjs +0 -11
  155. package/dist/chunk-layout-C2uqDEMJ.mjs +0 -11
  156. package/dist/chunk-useLayout-BAJHOIL3.cjs +0 -3
  157. package/dist/chunk-useTheme-DgleVMMh.cjs +0 -3
  158. /package/dist/{chunk-chunk-BFrxaqQT.cjs → chunk-chunk-D-Fg7nx1.cjs} +0 -0
@@ -1,686 +1,685 @@
1
- (function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`.styles-module__loading___bgEAk{justify-content:center;align-items:center;display:inline-flex}.styles-module__loading___bgEAk svg polyline{fill:none;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round}.styles-module__loading___bgEAk svg polyline.styles-module__back___XLPvD{fill:none;stroke:var(--color-primary-alpha)}.styles-module__loading___bgEAk svg polyline.styles-module__front___hSxig{fill:none;stroke:var(--color-primary);stroke-dasharray:48 144;stroke-dashoffset:192px;animation:1.4s linear infinite styles-module__dash_682___AQzo6}@keyframes styles-module__dash_682___AQzo6{72.5%{opacity:0}to{stroke-dashoffset:0}}.styles-module__loader___E7OIM{justify-content:center;align-items:center;width:fit-content;height:fit-content;display:flex}.styles-module__truckWrapper___Sk4zX{flex-direction:column;justify-content:flex-end;align-items:center;width:100%;height:100%;display:flex;position:relative;overflow-x:hidden}.styles-module__truckBody___j7w2C{width:65%;height:fit-content;margin-bottom:6px;animation:1s linear infinite styles-module__motion___IiNlW}@keyframes styles-module__motion___IiNlW{0%{transform:translateY(0)}50%{transform:translateY(3px)}to{transform:translateY(0)}}.styles-module__truckTires___4ncTl{justify-content:space-between;align-items:center;width:65%;height:fit-content;padding:0 10px 0 15px;display:flex;position:absolute;bottom:0}.styles-module__tiresvg___IBQcN{width:24px}.styles-module__road___sxx-E{background-color:var(--color-fg-heading);border-radius:var(--radius-button);align-self:flex-end;width:100%;height:1.5px;position:relative;bottom:0}.styles-module__road___sxx-E:before{content:"";background-color:var(--color-fg-heading);border-radius:var(--radius-button);border-left:10px solid var(--color-bg);width:20px;height:100%;animation:1.4s linear infinite styles-module__roadAnimation___yvrHP;position:absolute;right:-50%}.styles-module__road___sxx-E:after{content:"";background-color:var(--color-fg-heading);border-radius:var(--radius-button);border-left:4px solid var(--color-bg);width:10px;height:100%;animation:1.4s linear infinite styles-module__roadAnimation___yvrHP;position:absolute;right:-65%}.styles-module__lampPost___okcN5{height:45%;animation:1.4s linear infinite styles-module__roadAnimation___yvrHP;position:absolute;bottom:0;right:-90%}@keyframes styles-module__roadAnimation___yvrHP{0%{transform:translate(0)}to{transform:translate(-350px)}}.styles-module__loader___pFUzL{justify-content:center;align-items:center;display:inline-flex;position:relative}.styles-module__loader___pFUzL:before{content:"";background:var(--color-primary);opacity:.3;border-radius:50%;width:100%;height:5px;animation:.5s linear infinite styles-module__shadow324___sutUe;position:absolute;top:calc(100% + 12px);left:0}.styles-module__loader___pFUzL:after{content:"";background:var(--color-primary);width:100%;height:100%;position:absolute;top:0;left:0}.styles-module__square___GKjhm:after{border-radius:var(--radius-button);animation:.5s linear infinite styles-module__jump7456Square___Z-D9b}.styles-module__circle___bUpSN:after{border-radius:50%;animation:.5s linear infinite styles-module__jump7456Circle___2AfF7}@keyframes styles-module__jump7456Square___Z-D9b{15%{border-bottom-right-radius:3px}25%{transform:translateY(9px)rotate(22.5deg)}50%{border-bottom-right-radius:40px;transform:translateY(18px)scaleY(.9)rotate(45deg)}75%{transform:translateY(9px)rotate(67.5deg)}to{transform:translateY(0)rotate(90deg)}}@keyframes styles-module__jump7456Circle___2AfF7{15%{border-bottom-right-radius:50%}25%{transform:translateY(9px)rotate(22.5deg)}50%{border-bottom-right-radius:40px;transform:translateY(18px)scaleY(.9)rotate(45deg)}75%{transform:translateY(9px)rotate(67.5deg)}to{transform:translateY(0)rotate(90deg)}}@keyframes styles-module__shadow324___sutUe{0%,to{transform:scale(1)}50%{transform:scaleX(1.2)}}.style-module__waves___oR3u7{width:100%;height:100%;margin:0;padding:0;position:absolute;top:0;left:0;overflow:hidden}.style-module__waves___oR3u7:before{content:"";background:var(--color-bg);width:.5rem;height:.5rem;transform:translate3d(calc(var(--x) - 50%), calc(var(--y) - 50%), 0);will-change:transform;border-radius:50%;position:absolute;top:0;left:0}.style-module__wavesCanvas___zkhTC{width:100%;height:100%;display:block}.style-module__squaresCanvas___22kMc{border:none;width:100%;height:100%;display:block}.style-module__container___HkxIe{background-color:var(--color-bg);width:100%;height:100%;position:relative;overflow:hidden}.style-module__canvas___MR9JX{width:100%;height:100%;display:block}.style-module__outerVignette___i75nw{pointer-events:none;background:radial-gradient(circle,#0000 60%,#000 100%);width:100%;height:100%;position:absolute;top:0;left:0}.style-module__centerVignette___n9uVG{pointer-events:none;background:radial-gradient(circle,#000c 0%,#0000 60%);width:100%;height:100%;position:absolute;top:0;left:0}.styles-module__button___RbliA{border-radius:var(--radius-button);cursor:pointer;border:1px solid #0000;outline:none;justify-content:center;align-items:center;gap:.5rem;font-family:inherit;font-weight:500;transition:all .2s;display:inline-flex;position:relative}.styles-module__button___RbliA:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.styles-module__button___RbliA:disabled{cursor:not-allowed;opacity:.6}.styles-module__button___RbliA.styles-module__small___yK0Yp{min-height:2rem;padding:.5rem 1rem;font-size:.8125rem}.styles-module__button___RbliA.styles-module__medium___eBTch{min-height:2.5rem;padding:.75rem 1.5rem;font-size:.875rem}.styles-module__button___RbliA.styles-module__large___pIZkl{min-height:3rem;padding:1rem 2rem;font-size:1rem}.styles-module__button___RbliA.styles-module__primary___qsZpA{background:var(--color-primary);border-color:var(--color-primary);color:var(--color-primary-fg)}.styles-module__button___RbliA.styles-module__primary___qsZpA:hover:not(:disabled){background:var(--color-primary-light);border-color:var(--color-primary-light);transform:translateY(-1px)}.styles-module__button___RbliA.styles-module__primary___qsZpA:active:not(:disabled){transform:translateY(0)}.styles-module__button___RbliA.styles-module__secondary___SCpPv{background:var(--color-bg-2);border-color:var(--color-border-4);color:var(--color-fg-text)}.styles-module__button___RbliA.styles-module__secondary___SCpPv:hover:not(:disabled){background:var(--color-bg-3);border-color:var(--color-primary)}.styles-module__button___RbliA.styles-module__outline___rrlk9{border-color:var(--color-border-4);color:var(--color-fg-text);background:0 0}.styles-module__button___RbliA.styles-module__outline___rrlk9:hover:not(:disabled){background:var(--color-bg-2);border-color:var(--color-primary)}.styles-module__button___RbliA.styles-module__ghost___QMoiH{color:var(--color-fg-text);background:0 0;border-color:#0000}.styles-module__button___RbliA.styles-module__ghost___QMoiH:hover:not(:disabled){background:var(--color-bg-2)}.styles-module__button___RbliA.styles-module__danger___MW-pg{background:var(--color-danger);border-color:var(--color-danger);color:var(--color-danger-fg,#fff)}.styles-module__button___RbliA.styles-module__danger___MW-pg:hover:not(:disabled){background:var(--color-danger-light);border-color:var(--color-danger-light);color:var(--color-danger-fg,#fff);transform:translateY(-1px)}.styles-module__button___RbliA.styles-module__danger___MW-pg:active:not(:disabled){transform:translateY(0)}.styles-module__button___RbliA.styles-module__fullWidth___-dXBR{width:100%}.styles-module__button___RbliA.styles-module__loading___UWw6V{pointer-events:none}.styles-module__spinner___KpJ-L{border:2px solid;border-top-color:#0000;border-radius:50%;flex-shrink:0;width:1rem;height:1rem;animation:.6s linear infinite styles-module__spin___ntZKM}@keyframes styles-module__spin___ntZKM{to{transform:rotate(360deg)}}.styles-module__button___RbliA.styles-module__small___yK0Yp .styles-module__spinner___KpJ-L{border-width:1.5px;width:.875rem;height:.875rem}.styles-module__button___RbliA.styles-module__large___pIZkl .styles-module__spinner___KpJ-L{border-width:2.5px;width:1.25rem;height:1.25rem}.styles-module__content___oyZRO{align-items:center;display:flex}.styles-module__leftIcon___cDktv,.styles-module__rightIcon___1mpk0{flex-shrink:0;align-items:center;display:flex}.styles-module__leftIcon___cDktv{margin-right:-.25rem}.styles-module__rightIcon___1mpk0{margin-left:-.25rem}.styles-module__button___RbliA.styles-module__iconOnly___iOv-U{aspect-ratio:1;min-width:2.5rem;min-height:2.5rem;padding:0}.styles-module__button___RbliA.styles-module__iconOnly___iOv-U.styles-module__small___yK0Yp{min-width:2rem;min-height:2rem}.styles-module__button___RbliA.styles-module__iconOnly___iOv-U.styles-module__large___pIZkl{min-width:3rem;min-height:3rem}.styles-module__iconContainer___bwvE3{justify-content:center;align-items:center;width:100%;height:100%;display:flex}.styles-module__layout___WaGy9{flex-direction:column;justify-content:center;align-items:center;gap:.25rem;width:100%;display:flex}.styles-module__horizontal___lKpGq{justify-content:center;align-items:center;gap:.5rem;width:100%;display:flex}.styles-module__topIcon___bzw6s,.styles-module__bottomIcon___suPfa{flex-shrink:0;justify-content:center;align-items:center;display:flex}.styles-module__iconOnly___iOv-U .styles-module__iconContainer___bwvE3 .styles-module__leftIcon___cDktv,.styles-module__iconOnly___iOv-U .styles-module__iconContainer___bwvE3 .styles-module__rightIcon___1mpk0{margin:0}.Dropdown-module__dropdown___c9wIp{width:100%;display:inline-block;position:relative}.Dropdown-module__dropdownButton___suNh-{border:1px solid var(--color-separator);border-radius:var(--radius-card);cursor:pointer;text-align:left;background:var(--color-bg-2);width:100%;color:var(--color-fg-text);outline:none;justify-content:space-between;align-items:center;padding:.75rem 2.5rem .75rem 1rem;font-family:inherit;font-size:1rem;font-weight:400;line-height:1.5rem;transition:all .2s ease-in-out;display:flex;position:relative}.Dropdown-module__dropdownButton___suNh-:hover:not(:disabled){border-color:var(--color-primary);background:var(--color-bg-1)}.Dropdown-module__dropdownButton___suNh-:focus{border-color:var(--color-primary);background:var(--color-bg-1);box-shadow:0 0 0 2px var(--color-primary-transparent)}.Dropdown-module__dropdownButton___suNh-.Dropdown-module__disabled___Rz0pX{cursor:not-allowed;opacity:.6;background:var(--color-bg-3)}.Dropdown-module__dropdownButton___suNh-.Dropdown-module__error___F7dDu{border-color:var(--color-danger)}.Dropdown-module__buttonText___D2zxn{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.Dropdown-module__chevronIcon___uyawp{color:var(--color-fg-highlight);flex-shrink:0;transition:transform .15s;position:absolute;right:1rem}.Dropdown-module__chevronIcon___uyawp.Dropdown-module__open___APoXd{transform:rotate(180deg)}.Dropdown-module__dropdownMenu___WJ-QO{background:var(--color-bg);border:1px solid var(--color-border-4);border-radius:var(--radius-card);min-width:100%;box-shadow:0 .5rem 1rem var(--color-shadow);z-index:1000;animation:.15s ease-out Dropdown-module__slideDown___sRCmO;position:absolute;top:calc(100% + .5rem);left:0;right:0;overflow:hidden}@keyframes Dropdown-module__slideDown___sRCmO{0%{opacity:0;transform:translateY(-.5rem)}to{opacity:1;transform:translateY(0)}}.Dropdown-module__optionsList___Be6RN{margin:0;padding:.5rem 0;list-style:none}.Dropdown-module__option___q-NgT{cursor:pointer;color:var(--color-fg-text);align-items:center;padding:.75rem 1rem;font-size:.875rem;transition:all .15s;display:flex}.Dropdown-module__option___q-NgT:hover{background-color:var(--color-bg-2)}.Dropdown-module__option___q-NgT.Dropdown-module__selected___-OTW-{background-color:var(--color-bg-3);color:var(--color-fg-highlight);font-weight:600}@media (width<=768px){.Dropdown-module__dropdownButton___suNh-{padding:.625rem 2.25rem .625rem .875rem;font-size:.875rem}.Dropdown-module__chevronIcon___uyawp{right:.875rem}.Dropdown-module__option___q-NgT{padding:.625rem .875rem;font-size:.8125rem}}.styles-module__wrapper___COeGm{flex-direction:column;gap:.5rem;display:flex}.styles-module__wrapper___COeGm.styles-module__fullWidth___lVU49{width:100%}.styles-module__label___gfOA7{color:var(--color-fg-heading);align-items:center;gap:.25rem;font-size:.875rem;font-weight:500;display:flex}.styles-module__required___-zOy5{color:var(--color-danger)}.styles-module__inputContainer___wXY53{align-items:center;width:100%;display:flex;position:relative}.styles-module__input___IZDc3{border:1px solid var(--color-border-4);border-radius:var(--radius-input);background:var(--color-bg);width:100%;color:var(--color-fg-text);outline:none;font-family:inherit;font-size:.875rem;transition:all .2s}.styles-module__input___IZDc3[type=password]::-webkit-credentials-auto-fill-button{visibility:hidden!important;opacity:0!important;pointer-events:none!important;appearance:none!important;display:none!important;position:absolute!important;left:-9999px!important}.styles-module__input___IZDc3[type=password]::-webkit-strong-password-toggle-button{visibility:hidden!important;opacity:0!important;pointer-events:none!important;appearance:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;display:none!important;position:absolute!important;left:-9999px!important}.styles-module__input___IZDc3[type=password]::-ms-reveal{visibility:hidden!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;display:none!important;position:absolute!important;left:-9999px!important}.styles-module__input___IZDc3[type=password]::-ms-clear{visibility:hidden!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;display:none!important;position:absolute!important;left:-9999px!important}.styles-module__input___IZDc3:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px rgba(var(--color-primary-rgb), .1)}.styles-module__input___IZDc3::placeholder{color:var(--color-fg-muted);opacity:.5}.styles-module__input___IZDc3.styles-module__small___cuGyE{padding:.5rem .75rem;font-size:.8125rem}.styles-module__input___IZDc3.styles-module__medium___JdDPu{padding:.75rem;font-size:.875rem}.styles-module__input___IZDc3.styles-module__large___fMmiG{padding:1rem;font-size:1rem}.styles-module__input___IZDc3.styles-module__default___-eZTG{background:var(--color-bg);border-color:var(--color-border-4)}.styles-module__input___IZDc3.styles-module__filled___EQ5PQ{background:var(--color-bg-2);border-color:var(--color-border-3)}.styles-module__inputContainer___wXY53.styles-module__withLeftIcon___NFn6- .styles-module__input___IZDc3{padding-left:2.5rem}.styles-module__inputContainer___wXY53.styles-module__withRightIcon___mz-hn .styles-module__input___IZDc3{padding-right:2.5rem}.styles-module__inputContainer___wXY53.styles-module__withLeftIcon___NFn6- .styles-module__input___IZDc3.styles-module__small___cuGyE{padding-left:2rem}.styles-module__inputContainer___wXY53.styles-module__withRightIcon___mz-hn .styles-module__input___IZDc3.styles-module__small___cuGyE{padding-right:2rem}.styles-module__inputContainer___wXY53.styles-module__withLeftIcon___NFn6- .styles-module__input___IZDc3.styles-module__large___fMmiG{padding-left:3rem}.styles-module__inputContainer___wXY53.styles-module__withRightIcon___mz-hn .styles-module__input___IZDc3.styles-module__large___fMmiG{padding-right:3rem}.styles-module__leftIcon___jEW5H,.styles-module__rightIcon___bA3Eo{color:var(--color-fg-muted);pointer-events:none;z-index:1;justify-content:center;align-items:center;display:flex;position:absolute}.styles-module__leftIcon___jEW5H{left:.75rem}.styles-module__rightIcon___bA3Eo{right:.75rem}.styles-module__rightIcon___bA3Eo.styles-module__rightIconInteractive___ccypw{pointer-events:auto}.styles-module__inputContainer___wXY53.styles-module__containerSmall___20ICq .styles-module__leftIcon___jEW5H{left:.5rem}.styles-module__inputContainer___wXY53.styles-module__containerSmall___20ICq .styles-module__rightIcon___bA3Eo{right:.5rem}.styles-module__inputContainer___wXY53.styles-module__containerLarge___IztuN .styles-module__leftIcon___jEW5H{left:1rem}.styles-module__inputContainer___wXY53.styles-module__containerLarge___IztuN .styles-module__rightIcon___bA3Eo{right:1rem}.styles-module__input___IZDc3.styles-module__error___946qV{border-color:var(--color-danger)}.styles-module__input___IZDc3.styles-module__error___946qV:focus{border-color:var(--color-danger);box-shadow:0 0 0 3px rgba(var(--color-danger-rgb), .1)}.styles-module__input___IZDc3.styles-module__disabled___sJvLd{background:var(--color-bg-3);border-color:var(--color-border-5);color:var(--color-fg-muted);cursor:not-allowed;opacity:.6}.styles-module__errorMessage___5Mn22{color:var(--color-danger);margin:0;font-size:.75rem}.styles-module__helperText___T2eui{color:var(--color-fg-muted);margin:0;font-size:.75rem}.styles-module__container___xeg8O{flex-direction:column;gap:1rem;display:flex}.styles-module__label___qhbKe{color:var(--color-fg-text);font-size:.875rem;font-weight:500}.styles-module__error___O-7AY{color:var(--color-error);font-size:.875rem}.styles-module__pairs___owGV3{flex-direction:column;gap:.75rem;display:flex}.styles-module__pair___G4WFY{grid-template-columns:1fr 2fr auto;align-items:start;gap:.75rem;display:grid}.styles-module__keyInput___wl1M1,.styles-module__valueInput___HiwJ5{flex:1}.styles-module__removeButton___4-X0b{min-width:auto;color:var(--color-error);padding:.5rem}.styles-module__removeButton___4-X0b:hover{background-color:var(--color-error);color:var(--color-primary-fg)}.styles-module__addButton___QFljt{align-self:flex-start}@media (width<=768px){.styles-module__pair___G4WFY{grid-template-columns:1fr}.styles-module__removeButton___4-X0b{align-self:flex-end}}.styles-module__searchContainer___86TGN{width:100%;max-width:400px;position:relative}.styles-module__searchContainerFull___cEuNS{max-width:none}.styles-module__searchIcon___ZInry{color:var(--color-fg-muted);pointer-events:none;position:absolute;top:50%;left:1rem;transform:translateY(-50%)}.styles-module__searchInput___SqZXQ{border:1px solid var(--color-border);border-radius:var(--radius-input);width:100%;color:var(--color-fg-text);background:var(--color-bg-2);padding:.75rem 3rem;font-size:1rem;transition:all .2s}.styles-module__searchInput___SqZXQ:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px var(--color-primary-bg);outline:none}.styles-module__searchInput___SqZXQ::placeholder{color:var(--color-fg-muted)}.styles-module__clearBtn___7jExr{width:1.5rem;height:1.5rem;color:var(--color-fg-muted);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0;transition:all .2s;display:flex;position:absolute;top:50%;right:.75rem;transform:translateY(-50%)}.styles-module__clearBtn___7jExr:hover{color:var(--color-fg-text)}@media (width<=768px){.styles-module__searchContainer___86TGN{max-width:100%}}.styles-module__container___nGxdM{flex-direction:column;gap:.75rem;display:flex}.styles-module__toggleContainer___VrsKI{align-items:center;display:flex}.styles-module__toggleButton___IzD6Z{border:1px solid var(--color-border-4);border-radius:var(--radius-button);background:var(--color-bg);color:var(--color-fg-muted);cursor:pointer;align-items:center;gap:.5rem;padding:.5rem 1rem;font-size:.875rem;transition:all .2s;display:flex}.styles-module__toggleButton___IzD6Z:hover{background:var(--color-bg-2);border-color:var(--color-border-3)}.styles-module__toggleButton___IzD6Z.styles-module__enabled___cao0G{background:var(--color-primary);color:var(--color-primary-fg);border-color:var(--color-primary)}.styles-module__toggleButton___IzD6Z.styles-module__enabled___cao0G:hover{background:var(--color-primary-hover);border-color:var(--color-primary-hover);color:var(--color-primary-fg)}.styles-module__optionsContainer___LOzlO{background:var(--color-bg-2);border-radius:var(--radius-card);border:1px solid var(--color-border-4);gap:.5rem;padding:.5rem;display:flex}.styles-module__option___abhnC{border:1px solid var(--color-border-4);border-radius:var(--radius-button);background:var(--color-bg);color:var(--color-fg);cursor:pointer;flex:1;justify-content:center;align-items:center;gap:.375rem;padding:.5rem .875rem;font-size:.875rem;font-weight:500;transition:all .2s;display:flex}.styles-module__option___abhnC:hover{background:var(--color-bg-3);border-color:var(--color-border-3)}.styles-module__option___abhnC.styles-module__active___pqmSi{background:var(--color-primary);color:var(--color-primary-fg);border-color:var(--color-primary)}.styles-module__option___abhnC.styles-module__active___pqmSi:hover{background:var(--color-primary-hover);border-color:var(--color-primary-hover);color:var(--color-primary-fg)}.styles-module__nbSelect___KjxSc{font-family:inherit;font-size:.9375rem;font-weight:600;line-height:1.5rem;display:inline-block;position:relative}.styles-module__selectButton___AKZe4{border-radius:var(--radius-button);cursor:pointer;text-align:left;width:100%;min-width:8rem;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;appearance:none;border:1px solid;outline:none;justify-content:space-between;align-items:center;padding:.4375rem 2.2rem .4375rem 1.125rem;transition:all .15s ease-in-out;display:flex;position:relative}.styles-module__selectButton___AKZe4.styles-module__primary___HU36a{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--color-primary-fg)}.styles-module__selectButton___AKZe4.styles-module__primary___HU36a:hover:not(:disabled){background-color:var(--color-primary-light);border-color:var(--color-primary-light)}.styles-module__selectButton___AKZe4.styles-module__primary___HU36a:focus,.styles-module__selectButton___AKZe4.styles-module__primary___HU36a.styles-module__open___9AKMb{background-color:var(--color-primary-light);border-color:var(--color-primary-light);box-shadow:0 0 0 .125rem rgba(var(--color-primary-rgb), .25)}.styles-module__selectButton___AKZe4.styles-module__default___LedYP{background-color:var(--color-bg);border-color:var(--color-border-4);color:var(--color-fg-text)}.styles-module__selectButton___AKZe4.styles-module__default___LedYP:hover:not(:disabled){background-color:var(--color-bg-2);border-color:var(--color-primary)}.styles-module__selectButton___AKZe4.styles-module__default___LedYP:focus,.styles-module__selectButton___AKZe4.styles-module__default___LedYP.styles-module__open___9AKMb{background-color:var(--color-bg-2);border-color:var(--color-primary);box-shadow:0 0 0 .125rem rgba(var(--color-primary-rgb), .25)}.styles-module__selectButton___AKZe4:disabled{cursor:not-allowed;opacity:.6}.styles-module__buttonText___QSLO1{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.styles-module__chevronIcon___qAHaD{flex-shrink:0;width:1.5rem;height:1.5rem;transition:transform .15s;position:absolute;right:.41rem}.styles-module__selectButton___AKZe4.styles-module__primary___HU36a .styles-module__chevronIcon___qAHaD{color:var(--color-primary-fg)}.styles-module__selectButton___AKZe4.styles-module__default___LedYP .styles-module__chevronIcon___qAHaD{color:var(--color-fg)}.styles-module__chevronIcon___qAHaD.styles-module__open___9AKMb{transform:rotate(180deg)}.styles-module__optionsPanel___NWAp3{background-color:var(--color-bg);border:1px solid var(--color-border-4);border-radius:var(--radius-button);min-width:100%;box-shadow:0 .5rem 1rem var(--color-shadow);z-index:1000;transform-origin:top;visibility:hidden;pointer-events:none;position:absolute;top:calc(100% + .5rem);left:0;right:0;overflow:hidden}.styles-module__optionsPanel___NWAp3.styles-module__open___9AKMb{visibility:visible;pointer-events:auto;animation:.25s ease-out styles-module__expandDown___eD4lh}.styles-module__optionsPanel___NWAp3.styles-module__closed___bez-q{visibility:hidden;pointer-events:none;animation:.25s ease-out styles-module__collapseUp___dt1E7}@keyframes styles-module__expandDown___eD4lh{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}@keyframes styles-module__collapseUp___dt1E7{0%{opacity:1;transform:scaleY(1)}to{opacity:0;transform:scaleY(0)}}.styles-module__optionsPanel___NWAp3.styles-module__primary___HU36a{border-color:var(--color-primary)}.styles-module__optionsPanel___NWAp3.styles-module__default___LedYP{border-color:var(--color-border-4)}.styles-module__optionsList___AxhVp{margin:0;padding:.5rem 0;list-style:none}.styles-module__option___t1SSw{cursor:pointer;color:var(--color-fg-text);justify-content:space-between;align-items:center;padding:.75rem 1.125rem;transition:all .15s;display:flex}.styles-module__option___t1SSw:hover{background-color:var(--color-bg-2)}.styles-module__option___t1SSw.styles-module__selected___azD4A{background-color:var(--color-primary);color:var(--color-primary-fg);font-weight:700}@media (prefers-color-scheme:dark){.styles-module__optionsPanel___NWAp3{box-shadow:0 .5rem 1rem var(--color-shadow)}}.styles-module__sliderContainer___lgpaD{flex-direction:column;gap:.5rem;display:flex}.styles-module__sliderContainer___lgpaD.styles-module__fullWidth___ZS8W5{width:100%}.styles-module__labelRow___dkVVM{justify-content:space-between;align-items:center;min-height:1.5rem;margin-bottom:.5rem;display:flex}.styles-module__label___bXGZs{color:var(--color-fg-text);font-size:.875rem;font-weight:500}.styles-module__required___FuyfE{color:var(--color-danger);margin-left:.25rem}.styles-module__sliderWrapper___1Wdti{touch-action:none;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;gap:.75rem;width:100%;display:flex}.styles-module__sliderRoot___yzOjR{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;flex-grow:1;align-items:center;width:100%;padding:.75rem 0;display:flex;position:relative}.styles-module__sliderRoot___yzOjR:active{cursor:grabbing}.styles-module__sliderTrackWrapper___N72WQ{flex-grow:1;display:flex;position:relative}.styles-module__sliderTrack___AltcD{border-radius:var(--radius-badge);background-color:var(--color-bg-3);width:100%;height:.375rem;position:relative;overflow:hidden}.styles-module__sliderRange___U3g0-{background-color:var(--color-primary);border-radius:var(--radius-badge);height:100%;position:absolute}.styles-module__valueIndicator___aLf0I{color:var(--color-primary);text-align:center;flex-shrink:0;min-width:2rem;font-size:.875rem;font-weight:600;line-height:1}.styles-module__iconWrapper___wL-b8{flex-shrink:0;justify-content:center;align-items:center;display:flex}.styles-module__icon___vHsID{width:20px;height:20px;color:var(--color-fg-muted)}.styles-module__errorMessage___qFgGe{color:var(--color-danger);margin:0;font-size:.75rem}.styles-module__helperText___tgBGl{color:var(--color-fg-muted);margin:0;font-size:.75rem}.styles-module__loadingContainer___OMgwS{flex-direction:column;justify-content:center;align-items:center;gap:1.5rem;min-height:60vh;display:flex}.styles-module__loadingText___KRZqR{color:var(--color-fg-muted);font-size:1rem}.styles-module__errorContainer___qhAg2{text-align:center;min-height:60vh;color:var(--color-fg-text);flex-direction:column;justify-content:center;align-items:center;gap:2rem;padding:3rem 2rem;display:flex}.styles-module__errorIconWrapper___IHZrN{background:linear-gradient(135deg, rgba(var(--color-error-rgb), .1), rgba(var(--color-error-rgb), .05));border:2px solid rgba(var(--color-error-rgb), .2);border-radius:50%;justify-content:center;align-items:center;width:120px;height:120px;animation:2s ease-in-out infinite styles-module__pulse___Lju-z;display:flex}@keyframes styles-module__pulse___Lju-z{0%,to{opacity:1;transform:scale(1)}50%{opacity:.9;transform:scale(1.05)}}.styles-module__errorIcon___oGDIP{color:var(--color-error);stroke-width:1.5px}.styles-module__errorContent___F55rQ{flex-direction:column;align-items:center;gap:1rem;width:100%;max-width:600px;display:flex}.styles-module__errorTitle___hC8D-{color:var(--color-fg-heading);letter-spacing:-.02em;margin:0;font-size:1.75rem;font-weight:700;line-height:1.2}.styles-module__errorDescription___hZtuP{color:var(--color-fg-muted);max-width:480px;margin:0;font-size:1rem;line-height:1.6}.styles-module__errorDetailsWrapper___-sp8b{width:100%;max-width:600px;margin-top:.5rem}.styles-module__errorDetailsContainer___eywMo{text-align:left;border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-bg-2);width:100%;transition:all .2s;overflow:hidden}.styles-module__errorDetailsContainer___eywMo:hover{border-color:var(--color-border-hover);background:var(--color-bg-3)}.styles-module__errorDetailsSummary___hGEoD{cursor:pointer;color:var(--color-fg-muted);-webkit-user-select:none;user-select:none;padding:.875rem 1.25rem;font-size:.875rem;font-weight:500;list-style:none;transition:color .2s}.styles-module__errorDetailsSummary___hGEoD:hover{color:var(--color-fg-text)}.styles-module__errorDetailsSummary___hGEoD::-webkit-details-marker{display:none}.styles-module__errorDetailsSummary___hGEoD:before{content:"▶";margin-right:.5rem;font-size:.75rem;transition:transform .2s;display:inline-block}.styles-module__errorDetailsContainer___eywMo[open] .styles-module__errorDetailsSummary___hGEoD:before{transform:rotate(90deg)}.styles-module__errorDetails___tzCT-{background:var(--color-bg-3);border-top:1px solid var(--color-border);max-width:100%;color:var(--color-fg-muted);white-space:pre-wrap;word-break:break-word;margin:0;padding:1rem 1.25rem;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;font-size:.8125rem;line-height:1.6;overflow-x:auto}.styles-module__errorActions___gtqYw{flex-wrap:wrap;justify-content:center;align-items:center;gap:.75rem;margin-top:1rem;display:flex}.styles-module__retryButton___TA4jm{border-radius:var(--radius-button);background:var(--color-primary);color:var(--color-primary-fg);cursor:pointer;box-shadow:0 2px 8px var(--color-shadow);border:none;justify-content:center;align-items:center;gap:.5rem;padding:.75rem 2rem;font-size:.9375rem;font-weight:500;transition:all .2s;display:inline-flex}.styles-module__retryButton___TA4jm:hover{box-shadow:0 4px 16px var(--color-shadow);background:var(--color-primary-light);color:var(--color-primary-fg);transform:translateY(-2px)}.styles-module__retryButton___TA4jm:active{box-shadow:0 2px 8px var(--color-shadow);transform:translateY(0)}.styles-module__retryButtonIcon___vzfp-{font-size:1.125rem;line-height:1;transition:transform .3s;display:inline-block}.styles-module__retryButton___TA4jm:hover .styles-module__retryButtonIcon___vzfp-{transform:rotate(180deg)}.styles-module__clearLocalDataButton___T3B-K{border-radius:var(--radius-button);color:var(--color-fg-muted);border:1px solid var(--color-border-4);cursor:pointer;background:0 0;justify-content:center;align-items:center;padding:.75rem 1.5rem;font-size:.9375rem;font-weight:500;transition:all .2s;display:inline-flex}.styles-module__clearLocalDataButton___T3B-K:hover{color:var(--color-fg-text);border-color:var(--color-border-3);background:var(--color-bg-secondary)}.styles-module__wrapper___jXPV3{flex-direction:column;gap:.5rem;display:flex}.styles-module__wrapper___jXPV3.styles-module__fullWidth___eKyGB{width:100%}.styles-module__label___MyTeo{color:var(--color-fg-heading);align-items:center;gap:.25rem;font-size:.875rem;font-weight:500;display:flex}.styles-module__required___TV-m8{color:var(--color-danger)}.styles-module__inputContainer___VvGBl{align-items:flex-start;width:100%;display:flex;position:relative}.styles-module__textarea___AjX9N{border:1px solid var(--color-border-4);border-radius:var(--radius-input);background:var(--color-bg);width:100%;color:var(--color-fg-text);resize:vertical;outline:none;min-height:4rem;font-family:inherit;font-size:.875rem;transition:all .2s}.styles-module__textarea___AjX9N:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px rgba(var(--color-primary-rgb), .1)}.styles-module__textarea___AjX9N::placeholder{color:var(--color-fg-muted);opacity:.5}.styles-module__textarea___AjX9N.styles-module__small___zMx0G{min-height:3rem;padding:.5rem .75rem;font-size:.8125rem}.styles-module__textarea___AjX9N.styles-module__medium___tO2Lb{min-height:4rem;padding:.75rem;font-size:.875rem}.styles-module__textarea___AjX9N.styles-module__large___3eU2g{min-height:5rem;padding:1rem;font-size:1rem}.styles-module__textarea___AjX9N.styles-module__default___vsSxX{background:var(--color-bg);border-color:var(--color-border-4)}.styles-module__textarea___AjX9N.styles-module__filled___TPQgI{background:var(--color-bg-2);border-color:var(--color-border-3)}.styles-module__inputContainer___VvGBl .styles-module__leftIcon___FHp2R{color:var(--color-fg-muted);pointer-events:none;z-index:1;justify-content:center;align-items:center;display:flex;position:absolute;top:.75rem;left:.75rem}.styles-module__inputContainer___VvGBl .styles-module__rightIcon___dkyvP{color:var(--color-fg-muted);pointer-events:none;z-index:1;justify-content:center;align-items:center;display:flex;position:absolute;top:.75rem;right:.75rem}.styles-module__inputContainer___VvGBl .styles-module__textarea___AjX9N.styles-module__small___zMx0G+.styles-module__leftIcon___FHp2R,.styles-module__inputContainer___VvGBl .styles-module__textarea___AjX9N.styles-module__small___zMx0G+.styles-module__rightIcon___dkyvP{top:.5rem}.styles-module__inputContainer___VvGBl .styles-module__textarea___AjX9N.styles-module__large___3eU2g+.styles-module__leftIcon___FHp2R,.styles-module__inputContainer___VvGBl .styles-module__textarea___AjX9N.styles-module__large___3eU2g+.styles-module__rightIcon___dkyvP{top:1rem}.styles-module__textarea___AjX9N.styles-module__error___d8gLK{border-color:var(--color-danger)}.styles-module__textarea___AjX9N.styles-module__error___d8gLK:focus{border-color:var(--color-danger);box-shadow:0 0 0 3px rgba(var(--color-danger-rgb), .1)}.styles-module__textarea___AjX9N.styles-module__disabled___IzbfE{background:var(--color-bg-3);border-color:var(--color-border-5);color:var(--color-fg-muted);cursor:not-allowed;opacity:.6}.styles-module__errorText___Nom7x{color:var(--color-danger);margin:0;font-size:.75rem}.styles-module__helperText___97Def{color:var(--color-fg-muted);margin:0;font-size:.75rem}.styles-module__virtualList___pM6rN{contain:strict;width:100%;padding-bottom:300px;position:relative;overflow:auto}.styles-module__emptyContainer___rm938{height:100%;color:var(--color-fg-muted);justify-content:center;align-items:center;display:flex}.styles-module__virtualListInner___HxRzc{width:100%;position:relative}.styles-module__virtualListItems___p19-a{width:100%;position:absolute;top:0;left:0}.styles-module__loadingMore___zAdLM{color:var(--color-fg-muted);justify-content:center;align-items:center;gap:.75rem;padding:2rem 0;font-size:.875rem;display:flex}.styles-module__endOfList___5cYFh{color:var(--color-fg-muted);border-top:1px solid var(--color-border-3);justify-content:center;margin-top:1rem;padding:2rem 0;font-size:.875rem;display:flex}.styles-module__endOfList___5cYFh span{background-color:var(--color-bg-2);border-radius:var(--radius-button);padding:.5rem 1rem}.styles-module__virtualList___xmj2v{width:100%;padding-bottom:300px;position:relative;overflow:visible}.styles-module__virtualListInner___quD74{width:100%;position:relative}.styles-module__virtualListItems___-Muml{width:100%;position:absolute;top:0;left:0}.styles-module__virtualListRow___h3pzX{width:100%}.styles-module__emptyContainer___LIy8r{color:var(--color-fg-muted);justify-content:center;align-items:center;padding:2rem 0;display:flex}.styles-module__loadingMore___Mzf-p{color:var(--color-fg-muted);justify-content:center;align-items:center;padding:1.5rem 0;display:flex}.styles-module__endOfList___g5G--{color:var(--color-fg-muted);border-top:1px solid var(--color-border-3);justify-content:center;padding:1.5rem 0;display:flex}.styles-module__sidebar___BMt0j{flex-direction:column;min-height:0;display:flex;overflow:hidden}.styles-module__sidebarContent___iAwiw{flex-direction:column;flex:1;min-height:0;padding-top:1rem;display:flex;overflow:hidden}.styles-module__menuWrapper___DKuEv{flex:1;min-height:0;overflow:hidden auto}.styles-module__sidebarFooter___qiPXO{flex-shrink:0;margin-top:auto}.styles-module__menuWrapper___DKuEv::-webkit-scrollbar{width:0;height:0}.styles-module__menuWrapper___DKuEv{scrollbar-width:none;-ms-overflow-style:none}.styles-module__sidebar___BMt0j .ps-sidebar-root{background-color:var(--color-bg-2)!important;border-right:1px solid var(--color-separator)!important;flex-direction:column!important;min-height:0!important;display:flex!important;overflow:hidden!important}.styles-module__sidebar___BMt0j .ps-sidebar-container{background-color:var(--color-bg-2)!important;min-height:0!important;color:var(--color-fg-text)!important;flex-direction:column!important;flex:1!important;display:flex!important;overflow:hidden!important}.styles-module__sidebar___BMt0j .ps-menu-button{border-radius:var(--radius-button)!important;color:var(--color-fg-text)!important;margin:.125rem .5rem!important;padding:.5rem .75rem!important;font-size:.875rem!important;transition:background-color .2s,color .2s!important}.styles-module__sidebar___BMt0j .ps-menu-button:hover{background-color:var(--color-bg-3)!important;color:var(--color-fg-text)!important}.styles-module__sidebar___BMt0j .ps-menu-button.ps-active{background-color:var(--color-primary)!important;color:var(--color-primary-fg)!important}.styles-module__sidebar___BMt0j .ps-menu-button.ps-active .ps-menu-icon,.styles-module__sidebar___BMt0j .ps-menu-button.ps-active .ps-menu-label,.styles-module__sidebar___BMt0j .ps-menu-button.ps-active .ps-submenu-expand-icon{color:var(--color-primary-fg)!important}.styles-module__sidebar___BMt0j .ps-menu-icon{width:1.25rem!important;height:1.25rem!important;color:var(--color-fg-text)!important}.styles-module__sidebar___BMt0j .ps-submenu-content{background-color:var(--color-bg-3)!important;overflow:hidden!important}.styles-module__sidebar___BMt0j .ps-submenu-content .ps-menu-button{margin:.125rem .25rem!important;padding:.375rem .5rem!important;font-size:.8125rem!important}.styles-module__logoutContainer___7NwBL{border-top:1px solid var(--color-separator);padding:.5rem}.styles-module__logoutButton___rfD6u{border-radius:var(--radius-button);width:100%;color:var(--color-fg-text);cursor:pointer;white-space:nowrap;background:0 0;border:none;justify-content:flex-start;align-items:center;gap:.5rem;padding:.5rem .75rem;font-size:.875rem;transition:background-color .2s,color .2s;display:flex;overflow:hidden}.styles-module__logoutButton___rfD6u:hover{background-color:var(--color-bg-3)}.styles-module__logoutButton___rfD6u:active{transform:scale(.98)}.styles-module__logoutButton___rfD6u svg{color:inherit;flex-shrink:0}.styles-module__hiddenText___z183T{opacity:0;width:0;max-width:0;overflow:hidden}.styles-module__visibleText___lfsv-{opacity:1;width:auto;max-width:200px}.styles-module__footer___g-hY7{background:var(--color-bg-2);width:100%;padding:0 2rem}.styles-module__footerContent___Oen5n{justify-content:space-between;align-items:center;max-width:100%;margin:0 auto;display:flex}.styles-module__copyright___1R2o3{color:var(--color-fg-text);font-size:.875rem}.styles-module__links___dQyvB{gap:1.5rem;display:flex}.styles-module__link___UWfyK{color:var(--color-fg-text);font-size:.875rem;text-decoration:none;transition:color .3s}.styles-module__link___UWfyK:hover{color:var(--color-primary)}@media (width<=768px){.styles-module__footerContent___Oen5n{flex-direction:column;gap:1rem}.styles-module__links___dQyvB{gap:1rem}}.styles-module__header___4Uc8h{width:100%;padding:.5rem 2rem;display:flex}.styles-module__header___4Uc8h>:first-child{flex:1;justify-content:flex-start;align-items:center;display:flex}.styles-module__header___4Uc8h>:last-child{flex:1;justify-content:flex-end;align-items:center;display:flex}.styles-module__layout___ZQKU7{background:var(--color-bg);flex-direction:column;width:100%;height:100vh;display:flex;position:relative}.styles-module__header___XIaFb{z-index:100;background:var(--color-bg);width:100%;box-shadow:0 .125rem .25rem 0 var(--color-shadow);position:fixed;top:0}.styles-module__footer___r8ASO{z-index:100;width:100%;position:fixed;bottom:0}.styles-module__mainWrapper___i4tEI{flex:1;display:flex;position:relative}.styles-module__sidebarChrome___q0pw5{z-index:101;box-sizing:border-box;position:fixed;left:0}.styles-module__sidebar___ij-8-{height:100%;min-height:0}.styles-module__content___mTgUr{background:var(--color-bg);flex:1;min-height:calc(100vh - 10rem);margin:0;padding-top:0;padding-bottom:0;overflow:hidden auto}@media (width<=768px){.styles-module__content___mTgUr{width:100%}.styles-module__sidebarChrome___q0pw5{z-index:999}}.styles-module__mainWrapper___AiTAw{flex-direction:row;flex:1;display:flex;position:relative}.styles-module__sidebarContainer___X4yj8{z-index:99;box-sizing:border-box;flex-direction:column;min-height:0;display:flex;position:fixed;left:0;overflow:hidden}.styles-module__sidebar___VQTlH{flex-shrink:0;top:0;left:0}.styles-module__content___htJlH{background:var(--color-bg);flex:1;margin:0;padding-top:0;padding-bottom:0;overflow:hidden auto}@media (width<=1024px){.styles-module__content___htJlH{padding:1.5rem}}@media (width<=768px){.styles-module__content___htJlH{width:100%}}.styles-module__wavesWrapper___TK7DI{pointer-events:none;z-index:0;width:100vw;height:100vh;position:fixed;inset:0;overflow:hidden}.styles-module__wavesWrapper___TK7DI>*{pointer-events:auto}.styles-module__squaresWrapper___P25uF{pointer-events:none;z-index:0;width:100vw;height:100vh;position:fixed;inset:0;overflow:hidden}.styles-module__squaresWrapper___P25uF>*{pointer-events:auto}.styles-module__letterGlitchWrapper___KWtWU{pointer-events:none;z-index:0;width:100vw;height:100vh;position:fixed;inset:0;overflow:hidden}.styles-module__letterGlitchWrapper___KWtWU>*{pointer-events:auto}.styles-module__pixelBlastWrapper___YptHh{pointer-events:none;z-index:0;width:100vw;height:100vh;position:fixed;inset:0;overflow:hidden}.styles-module__pixelBlastWrapper___YptHh>*{pointer-events:auto}.style-module__container___Hh3-c{width:100%;height:100%;position:relative;overflow:hidden}
2
- /*$vite$:1*/`)),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
3
- import { C as ye, S as ge, T as be, f as we, gt as Ne, m as Ie, nt as Se, ot as Ce, p as Ee, t as xe, tt as Le, vt as $e } from "./chunk-lucide-C54WenI6.mjs";
4
- import { n as Me } from "./chunk-useTheme-oHcq3d0o.mjs";
5
- import { n as Oe } from "./chunk-layout-C2uqDEMJ.mjs";
6
- import { n as De } from "./chunk-useLayout-DPxlynT-.mjs";
7
- import { n as Re, r as ie, t as ze } from "./chunk-BounceLoading-C5XE8DKc.mjs";
8
- import * as Q from "react";
9
- import { Component as Te, Suspense as We, cloneElement as Ae, forwardRef as ee, isValidElement as ke, memo as z, useCallback as P, useEffect as H, useRef as te, useState as Z } from "react";
10
- import { Fragment as _e, jsx as l, jsxs as v } from "react/jsx-runtime";
11
- import { animate as Be, motion as K, useMotionValue as ae, useMotionValueEvent as Fe, useTransform as X } from "motion/react";
12
- import { QueryErrorResetBoundary as Ve } from "@tanstack/react-query";
13
- import { flushSync as je } from "react-dom";
14
- var qe = "styles-module__button___RbliA", Pe = "styles-module__small___yK0Yp", He = "styles-module__medium___eBTch", Ge = "styles-module__large___pIZkl", Ke = "styles-module__primary___qsZpA", Xe = "styles-module__secondary___SCpPv", Ue = "styles-module__outline___rrlk9", Ze = "styles-module__ghost___QMoiH", Ye = "styles-module__danger___MW-pg", Qe = "styles-module__fullWidth___-dXBR", Je = "styles-module__loading___UWw6V", et = "styles-module__spinner___KpJ-L", tt = "styles-module__spin___ntZKM", st = "styles-module__content___oyZRO", rt = "styles-module__leftIcon___cDktv", nt = "styles-module__rightIcon___1mpk0", lt = "styles-module__iconOnly___iOv-U", it = "styles-module__iconContainer___bwvE3", at = "styles-module__layout___WaGy9", ot = "styles-module__horizontal___lKpGq", dt = "styles-module__topIcon___bzw6s", ct = "styles-module__bottomIcon___suPfa", C = {
15
- button: qe,
16
- small: Pe,
1
+ (function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`.styles-module__loading___bgEAk{justify-content:center;align-items:center;display:inline-flex}.styles-module__loading___bgEAk svg polyline{fill:none;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round}.styles-module__loading___bgEAk svg polyline.styles-module__back___XLPvD{fill:none;stroke:var(--color-primary-alpha)}.styles-module__loading___bgEAk svg polyline.styles-module__front___hSxig{fill:none;stroke:var(--color-primary);stroke-dasharray:48 144;stroke-dashoffset:192px;animation:1.4s linear infinite styles-module__dash_682___AQzo6}@keyframes styles-module__dash_682___AQzo6{72.5%{opacity:0}to{stroke-dashoffset:0}}.styles-module__loader___E7OIM{justify-content:center;align-items:center;width:fit-content;height:fit-content;display:flex}.styles-module__truckWrapper___Sk4zX{flex-direction:column;justify-content:flex-end;align-items:center;width:100%;height:100%;display:flex;position:relative;overflow-x:hidden}.styles-module__truckBody___j7w2C{width:65%;height:fit-content;margin-bottom:6px;animation:1s linear infinite styles-module__motion___IiNlW}@keyframes styles-module__motion___IiNlW{0%{transform:translateY(0)}50%{transform:translateY(3px)}to{transform:translateY(0)}}.styles-module__truckTires___4ncTl{justify-content:space-between;align-items:center;width:65%;height:fit-content;padding:0 10px 0 15px;display:flex;position:absolute;bottom:0}.styles-module__tiresvg___IBQcN{width:24px}.styles-module__road___sxx-E{background-color:var(--color-fg-heading);border-radius:var(--radius-button);align-self:flex-end;width:100%;height:1.5px;position:relative;bottom:0}.styles-module__road___sxx-E:before{content:"";background-color:var(--color-fg-heading);border-radius:var(--radius-button);border-left:10px solid var(--color-bg);width:20px;height:100%;animation:1.4s linear infinite styles-module__roadAnimation___yvrHP;position:absolute;right:-50%}.styles-module__road___sxx-E:after{content:"";background-color:var(--color-fg-heading);border-radius:var(--radius-button);border-left:4px solid var(--color-bg);width:10px;height:100%;animation:1.4s linear infinite styles-module__roadAnimation___yvrHP;position:absolute;right:-65%}.styles-module__lampPost___okcN5{height:45%;animation:1.4s linear infinite styles-module__roadAnimation___yvrHP;position:absolute;bottom:0;right:-90%}@keyframes styles-module__roadAnimation___yvrHP{0%{transform:translate(0)}to{transform:translate(-350px)}}.styles-module__loader___pFUzL{justify-content:center;align-items:center;display:inline-flex;position:relative}.styles-module__loader___pFUzL:before{content:"";background:var(--color-primary);opacity:.3;border-radius:50%;width:100%;height:5px;animation:.5s linear infinite styles-module__shadow324___sutUe;position:absolute;top:calc(100% + 12px);left:0}.styles-module__loader___pFUzL:after{content:"";background:var(--color-primary);width:100%;height:100%;position:absolute;top:0;left:0}.styles-module__square___GKjhm:after{border-radius:var(--radius-button);animation:.5s linear infinite styles-module__jump7456Square___Z-D9b}.styles-module__circle___bUpSN:after{border-radius:50%;animation:.5s linear infinite styles-module__jump7456Circle___2AfF7}@keyframes styles-module__jump7456Square___Z-D9b{15%{border-bottom-right-radius:3px}25%{transform:translateY(9px)rotate(22.5deg)}50%{border-bottom-right-radius:40px;transform:translateY(18px)scaleY(.9)rotate(45deg)}75%{transform:translateY(9px)rotate(67.5deg)}to{transform:translateY(0)rotate(90deg)}}@keyframes styles-module__jump7456Circle___2AfF7{15%{border-bottom-right-radius:50%}25%{transform:translateY(9px)rotate(22.5deg)}50%{border-bottom-right-radius:40px;transform:translateY(18px)scaleY(.9)rotate(45deg)}75%{transform:translateY(9px)rotate(67.5deg)}to{transform:translateY(0)rotate(90deg)}}@keyframes styles-module__shadow324___sutUe{0%,to{transform:scale(1)}50%{transform:scaleX(1.2)}}.style-module__waves___oR3u7{width:100%;height:100%;margin:0;padding:0;position:absolute;top:0;left:0;overflow:hidden}.style-module__waves___oR3u7:before{content:"";background:var(--color-bg);width:.5rem;height:.5rem;transform:translate3d(calc(var(--x) - 50%), calc(var(--y) - 50%), 0);will-change:transform;border-radius:50%;position:absolute;top:0;left:0}.style-module__wavesCanvas___zkhTC{width:100%;height:100%;display:block}.style-module__squaresCanvas___22kMc{border:none;width:100%;height:100%;display:block}.style-module__container___HkxIe{background-color:var(--color-bg);width:100%;height:100%;position:relative;overflow:hidden}.style-module__canvas___MR9JX{width:100%;height:100%;display:block}.style-module__outerVignette___i75nw{pointer-events:none;background:radial-gradient(circle,#0000 60%,#000 100%);width:100%;height:100%;position:absolute;top:0;left:0}.style-module__centerVignette___n9uVG{pointer-events:none;background:radial-gradient(circle,#000c 0%,#0000 60%);width:100%;height:100%;position:absolute;top:0;left:0}.styles-module__button___RbliA{border-radius:var(--radius-button);cursor:pointer;border:1px solid #0000;outline:none;justify-content:center;align-items:center;gap:.5rem;font-family:inherit;font-weight:500;transition:all .2s;display:inline-flex;position:relative}.styles-module__button___RbliA:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.styles-module__button___RbliA:disabled{cursor:not-allowed;opacity:.6}.styles-module__button___RbliA.styles-module__small___yK0Yp{min-height:2rem;padding:.5rem 1rem;font-size:.8125rem}.styles-module__button___RbliA.styles-module__medium___eBTch{min-height:2.5rem;padding:.75rem 1.5rem;font-size:.875rem}.styles-module__button___RbliA.styles-module__large___pIZkl{min-height:3rem;padding:1rem 2rem;font-size:1rem}.styles-module__button___RbliA.styles-module__primary___qsZpA{background:var(--color-primary);border-color:var(--color-primary);color:var(--color-primary-fg)}.styles-module__button___RbliA.styles-module__primary___qsZpA:hover:not(:disabled){background:var(--color-primary-light);border-color:var(--color-primary-light);transform:translateY(-1px)}.styles-module__button___RbliA.styles-module__primary___qsZpA:active:not(:disabled){transform:translateY(0)}.styles-module__button___RbliA.styles-module__secondary___SCpPv{background:var(--color-bg-2);border-color:var(--color-border-4);color:var(--color-fg-text)}.styles-module__button___RbliA.styles-module__secondary___SCpPv:hover:not(:disabled){background:var(--color-bg-3);border-color:var(--color-primary)}.styles-module__button___RbliA.styles-module__outline___rrlk9{border-color:var(--color-border-4);color:var(--color-fg-text);background:0 0}.styles-module__button___RbliA.styles-module__outline___rrlk9:hover:not(:disabled){background:var(--color-bg-2);border-color:var(--color-primary)}.styles-module__button___RbliA.styles-module__ghost___QMoiH{color:var(--color-fg-text);background:0 0;border-color:#0000}.styles-module__button___RbliA.styles-module__ghost___QMoiH:hover:not(:disabled){background:var(--color-bg-2)}.styles-module__button___RbliA.styles-module__danger___MW-pg{background:var(--color-danger);border-color:var(--color-danger);color:var(--color-danger-fg,#fff)}.styles-module__button___RbliA.styles-module__danger___MW-pg:hover:not(:disabled){background:var(--color-danger-light);border-color:var(--color-danger-light);color:var(--color-danger-fg,#fff);transform:translateY(-1px)}.styles-module__button___RbliA.styles-module__danger___MW-pg:active:not(:disabled){transform:translateY(0)}.styles-module__button___RbliA.styles-module__fullWidth___-dXBR{width:100%}.styles-module__button___RbliA.styles-module__loading___UWw6V{pointer-events:none}.styles-module__spinner___KpJ-L{border:2px solid;border-top-color:#0000;border-radius:50%;flex-shrink:0;width:1rem;height:1rem;animation:.6s linear infinite styles-module__spin___ntZKM}@keyframes styles-module__spin___ntZKM{to{transform:rotate(360deg)}}.styles-module__button___RbliA.styles-module__small___yK0Yp .styles-module__spinner___KpJ-L{border-width:1.5px;width:.875rem;height:.875rem}.styles-module__button___RbliA.styles-module__large___pIZkl .styles-module__spinner___KpJ-L{border-width:2.5px;width:1.25rem;height:1.25rem}.styles-module__content___oyZRO{align-items:center;display:flex}.styles-module__leftIcon___cDktv,.styles-module__rightIcon___1mpk0{flex-shrink:0;align-items:center;display:flex}.styles-module__leftIcon___cDktv{margin-right:-.25rem}.styles-module__rightIcon___1mpk0{margin-left:-.25rem}.styles-module__button___RbliA.styles-module__iconOnly___iOv-U{aspect-ratio:1;min-width:2.5rem;min-height:2.5rem;padding:0}.styles-module__button___RbliA.styles-module__iconOnly___iOv-U.styles-module__small___yK0Yp{min-width:2rem;min-height:2rem}.styles-module__button___RbliA.styles-module__iconOnly___iOv-U.styles-module__large___pIZkl{min-width:3rem;min-height:3rem}.styles-module__iconContainer___bwvE3{justify-content:center;align-items:center;width:100%;height:100%;display:flex}.styles-module__layout___WaGy9{flex-direction:column;justify-content:center;align-items:center;gap:.25rem;width:100%;display:flex}.styles-module__horizontal___lKpGq{justify-content:center;align-items:center;gap:.5rem;width:100%;display:flex}.styles-module__topIcon___bzw6s,.styles-module__bottomIcon___suPfa{flex-shrink:0;justify-content:center;align-items:center;display:flex}.styles-module__iconOnly___iOv-U .styles-module__iconContainer___bwvE3 .styles-module__leftIcon___cDktv,.styles-module__iconOnly___iOv-U .styles-module__iconContainer___bwvE3 .styles-module__rightIcon___1mpk0{margin:0}.Dropdown-module__dropdown___c9wIp{width:100%;display:inline-block;position:relative}.Dropdown-module__dropdownButton___suNh-{border:1px solid var(--color-separator);border-radius:var(--radius-card);cursor:pointer;text-align:left;background:var(--color-bg-2);width:100%;color:var(--color-fg-text);outline:none;justify-content:space-between;align-items:center;padding:.75rem 2.5rem .75rem 1rem;font-family:inherit;font-size:1rem;font-weight:400;line-height:1.5rem;transition:all .2s ease-in-out;display:flex;position:relative}.Dropdown-module__dropdownButton___suNh-:hover:not(:disabled){border-color:var(--color-primary);background:var(--color-bg-1)}.Dropdown-module__dropdownButton___suNh-:focus{border-color:var(--color-primary);background:var(--color-bg-1);box-shadow:0 0 0 2px var(--color-primary-transparent)}.Dropdown-module__dropdownButton___suNh-.Dropdown-module__disabled___Rz0pX{cursor:not-allowed;opacity:.6;background:var(--color-bg-3)}.Dropdown-module__dropdownButton___suNh-.Dropdown-module__error___F7dDu{border-color:var(--color-danger)}.Dropdown-module__buttonText___D2zxn{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.Dropdown-module__chevronIcon___uyawp{color:var(--color-fg-highlight);flex-shrink:0;transition:transform .15s;position:absolute;right:1rem}.Dropdown-module__chevronIcon___uyawp.Dropdown-module__open___APoXd{transform:rotate(180deg)}.Dropdown-module__dropdownMenu___WJ-QO{background:var(--color-bg);border:1px solid var(--color-border-4);border-radius:var(--radius-card);min-width:100%;box-shadow:0 .5rem 1rem var(--color-shadow);z-index:1000;animation:.15s ease-out Dropdown-module__slideDown___sRCmO;position:absolute;top:calc(100% + .5rem);left:0;right:0;overflow:hidden}@keyframes Dropdown-module__slideDown___sRCmO{0%{opacity:0;transform:translateY(-.5rem)}to{opacity:1;transform:translateY(0)}}.Dropdown-module__optionsList___Be6RN{margin:0;padding:.5rem 0;list-style:none}.Dropdown-module__option___q-NgT{cursor:pointer;color:var(--color-fg-text);align-items:center;padding:.75rem 1rem;font-size:.875rem;transition:all .15s;display:flex}.Dropdown-module__option___q-NgT:hover{background-color:var(--color-bg-2)}.Dropdown-module__option___q-NgT.Dropdown-module__selected___-OTW-{background-color:var(--color-bg-3);color:var(--color-fg-highlight);font-weight:600}@media (width<=768px){.Dropdown-module__dropdownButton___suNh-{padding:.625rem 2.25rem .625rem .875rem;font-size:.875rem}.Dropdown-module__chevronIcon___uyawp{right:.875rem}.Dropdown-module__option___q-NgT{padding:.625rem .875rem;font-size:.8125rem}}.styles-module__wrapper___COeGm{flex-direction:column;gap:.5rem;display:flex}.styles-module__wrapper___COeGm.styles-module__fullWidth___lVU49{width:100%}.styles-module__label___gfOA7{color:var(--color-fg-heading);align-items:center;gap:.25rem;font-size:.875rem;font-weight:500;display:flex}.styles-module__required___-zOy5{color:var(--color-danger)}.styles-module__inputContainer___wXY53{align-items:center;width:100%;display:flex;position:relative}.styles-module__input___IZDc3{border:1px solid var(--color-border-4);border-radius:var(--radius-input);background:var(--color-bg);width:100%;color:var(--color-fg-text);outline:none;font-family:inherit;font-size:.875rem;transition:all .2s}.styles-module__input___IZDc3[type=password]::-webkit-credentials-auto-fill-button{visibility:hidden!important;opacity:0!important;pointer-events:none!important;appearance:none!important;display:none!important;position:absolute!important;left:-9999px!important}.styles-module__input___IZDc3[type=password]::-webkit-strong-password-toggle-button{visibility:hidden!important;opacity:0!important;pointer-events:none!important;appearance:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;display:none!important;position:absolute!important;left:-9999px!important}.styles-module__input___IZDc3[type=password]::-ms-reveal{visibility:hidden!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;display:none!important;position:absolute!important;left:-9999px!important}.styles-module__input___IZDc3[type=password]::-ms-clear{visibility:hidden!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;display:none!important;position:absolute!important;left:-9999px!important}.styles-module__input___IZDc3:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px rgba(var(--color-primary-rgb), .1)}.styles-module__input___IZDc3::placeholder{color:var(--color-fg-muted);opacity:.5}.styles-module__input___IZDc3.styles-module__small___cuGyE{padding:.5rem .75rem;font-size:.8125rem}.styles-module__input___IZDc3.styles-module__medium___JdDPu{padding:.75rem;font-size:.875rem}.styles-module__input___IZDc3.styles-module__large___fMmiG{padding:1rem;font-size:1rem}.styles-module__input___IZDc3.styles-module__default___-eZTG{background:var(--color-bg);border-color:var(--color-border-4)}.styles-module__input___IZDc3.styles-module__filled___EQ5PQ{background:var(--color-bg-2);border-color:var(--color-border-3)}.styles-module__inputContainer___wXY53.styles-module__withLeftIcon___NFn6- .styles-module__input___IZDc3{padding-left:2.5rem}.styles-module__inputContainer___wXY53.styles-module__withRightIcon___mz-hn .styles-module__input___IZDc3{padding-right:2.5rem}.styles-module__inputContainer___wXY53.styles-module__withLeftIcon___NFn6- .styles-module__input___IZDc3.styles-module__small___cuGyE{padding-left:2rem}.styles-module__inputContainer___wXY53.styles-module__withRightIcon___mz-hn .styles-module__input___IZDc3.styles-module__small___cuGyE{padding-right:2rem}.styles-module__inputContainer___wXY53.styles-module__withLeftIcon___NFn6- .styles-module__input___IZDc3.styles-module__large___fMmiG{padding-left:3rem}.styles-module__inputContainer___wXY53.styles-module__withRightIcon___mz-hn .styles-module__input___IZDc3.styles-module__large___fMmiG{padding-right:3rem}.styles-module__leftIcon___jEW5H,.styles-module__rightIcon___bA3Eo{color:var(--color-fg-muted);pointer-events:none;z-index:1;justify-content:center;align-items:center;display:flex;position:absolute}.styles-module__leftIcon___jEW5H{left:.75rem}.styles-module__rightIcon___bA3Eo{right:.75rem}.styles-module__rightIcon___bA3Eo.styles-module__rightIconInteractive___ccypw{pointer-events:auto}.styles-module__inputContainer___wXY53.styles-module__containerSmall___20ICq .styles-module__leftIcon___jEW5H{left:.5rem}.styles-module__inputContainer___wXY53.styles-module__containerSmall___20ICq .styles-module__rightIcon___bA3Eo{right:.5rem}.styles-module__inputContainer___wXY53.styles-module__containerLarge___IztuN .styles-module__leftIcon___jEW5H{left:1rem}.styles-module__inputContainer___wXY53.styles-module__containerLarge___IztuN .styles-module__rightIcon___bA3Eo{right:1rem}.styles-module__input___IZDc3.styles-module__error___946qV{border-color:var(--color-danger)}.styles-module__input___IZDc3.styles-module__error___946qV:focus{border-color:var(--color-danger);box-shadow:0 0 0 3px rgba(var(--color-danger-rgb), .1)}.styles-module__input___IZDc3.styles-module__disabled___sJvLd{background:var(--color-bg-3);border-color:var(--color-border-5);color:var(--color-fg-muted);cursor:not-allowed;opacity:.6}.styles-module__errorMessage___5Mn22{color:var(--color-danger);margin:0;font-size:.75rem}.styles-module__helperText___T2eui{color:var(--color-fg-muted);margin:0;font-size:.75rem}.styles-module__container___xeg8O{flex-direction:column;gap:1rem;display:flex}.styles-module__label___qhbKe{color:var(--color-fg-text);font-size:.875rem;font-weight:500}.styles-module__error___O-7AY{color:var(--color-error);font-size:.875rem}.styles-module__pairs___owGV3{flex-direction:column;gap:.75rem;display:flex}.styles-module__pair___G4WFY{grid-template-columns:1fr 2fr auto;align-items:start;gap:.75rem;display:grid}.styles-module__keyInput___wl1M1,.styles-module__valueInput___HiwJ5{flex:1}.styles-module__removeButton___4-X0b{min-width:auto;color:var(--color-error);padding:.5rem}.styles-module__removeButton___4-X0b:hover{background-color:var(--color-error);color:var(--color-primary-fg)}.styles-module__addButton___QFljt{align-self:flex-start}@media (width<=768px){.styles-module__pair___G4WFY{grid-template-columns:1fr}.styles-module__removeButton___4-X0b{align-self:flex-end}}.styles-module__searchContainer___86TGN{width:100%;max-width:400px;position:relative}.styles-module__searchContainerFull___cEuNS{max-width:none}.styles-module__searchIcon___ZInry{color:var(--color-fg-muted);pointer-events:none;position:absolute;top:50%;left:1rem;transform:translateY(-50%)}.styles-module__searchInput___SqZXQ{border:1px solid var(--color-border);border-radius:var(--radius-input);width:100%;color:var(--color-fg-text);background:var(--color-bg-2);padding:.75rem 3rem;font-size:1rem;transition:all .2s}.styles-module__searchInput___SqZXQ:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px var(--color-primary-bg);outline:none}.styles-module__searchInput___SqZXQ::placeholder{color:var(--color-fg-muted)}.styles-module__clearBtn___7jExr{width:1.5rem;height:1.5rem;color:var(--color-fg-muted);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0;transition:all .2s;display:flex;position:absolute;top:50%;right:.75rem;transform:translateY(-50%)}.styles-module__clearBtn___7jExr:hover{color:var(--color-fg-text)}@media (width<=768px){.styles-module__searchContainer___86TGN{max-width:100%}}.styles-module__container___nGxdM{flex-direction:column;gap:.75rem;display:flex}.styles-module__toggleContainer___VrsKI{align-items:center;display:flex}.styles-module__toggleButton___IzD6Z{border:1px solid var(--color-border-4);border-radius:var(--radius-button);background:var(--color-bg);color:var(--color-fg-muted);cursor:pointer;align-items:center;gap:.5rem;padding:.5rem 1rem;font-size:.875rem;transition:all .2s;display:flex}.styles-module__toggleButton___IzD6Z:hover{background:var(--color-bg-2);border-color:var(--color-border-3)}.styles-module__toggleButton___IzD6Z.styles-module__enabled___cao0G{background:var(--color-primary);color:var(--color-primary-fg);border-color:var(--color-primary)}.styles-module__toggleButton___IzD6Z.styles-module__enabled___cao0G:hover{background:var(--color-primary-hover);border-color:var(--color-primary-hover);color:var(--color-primary-fg)}.styles-module__optionsContainer___LOzlO{background:var(--color-bg-2);border-radius:var(--radius-card);border:1px solid var(--color-border-4);gap:.5rem;padding:.5rem;display:flex}.styles-module__option___abhnC{border:1px solid var(--color-border-4);border-radius:var(--radius-button);background:var(--color-bg);color:var(--color-fg);cursor:pointer;flex:1;justify-content:center;align-items:center;gap:.375rem;padding:.5rem .875rem;font-size:.875rem;font-weight:500;transition:all .2s;display:flex}.styles-module__option___abhnC:hover{background:var(--color-bg-3);border-color:var(--color-border-3)}.styles-module__option___abhnC.styles-module__active___pqmSi{background:var(--color-primary);color:var(--color-primary-fg);border-color:var(--color-primary)}.styles-module__option___abhnC.styles-module__active___pqmSi:hover{background:var(--color-primary-hover);border-color:var(--color-primary-hover);color:var(--color-primary-fg)}.styles-module__nbSelect___KjxSc{font-family:inherit;font-size:.9375rem;font-weight:600;line-height:1.5rem;display:inline-block;position:relative}.styles-module__selectButton___AKZe4{border-radius:var(--radius-button);cursor:pointer;text-align:left;width:100%;min-width:8rem;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;appearance:none;border:1px solid;outline:none;justify-content:space-between;align-items:center;padding:.4375rem 2.2rem .4375rem 1.125rem;transition:all .15s ease-in-out;display:flex;position:relative}.styles-module__selectButton___AKZe4.styles-module__primary___HU36a{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--color-primary-fg)}.styles-module__selectButton___AKZe4.styles-module__primary___HU36a:hover:not(:disabled){background-color:var(--color-primary-light);border-color:var(--color-primary-light)}.styles-module__selectButton___AKZe4.styles-module__primary___HU36a:focus,.styles-module__selectButton___AKZe4.styles-module__primary___HU36a.styles-module__open___9AKMb{background-color:var(--color-primary-light);border-color:var(--color-primary-light);box-shadow:0 0 0 .125rem rgba(var(--color-primary-rgb), .25)}.styles-module__selectButton___AKZe4.styles-module__default___LedYP{background-color:var(--color-bg);border-color:var(--color-border-4);color:var(--color-fg-text)}.styles-module__selectButton___AKZe4.styles-module__default___LedYP:hover:not(:disabled){background-color:var(--color-bg-2);border-color:var(--color-primary)}.styles-module__selectButton___AKZe4.styles-module__default___LedYP:focus,.styles-module__selectButton___AKZe4.styles-module__default___LedYP.styles-module__open___9AKMb{background-color:var(--color-bg-2);border-color:var(--color-primary);box-shadow:0 0 0 .125rem rgba(var(--color-primary-rgb), .25)}.styles-module__selectButton___AKZe4:disabled{cursor:not-allowed;opacity:.6}.styles-module__buttonText___QSLO1{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.styles-module__chevronIcon___qAHaD{flex-shrink:0;width:1.5rem;height:1.5rem;transition:transform .15s;position:absolute;right:.41rem}.styles-module__selectButton___AKZe4.styles-module__primary___HU36a .styles-module__chevronIcon___qAHaD{color:var(--color-primary-fg)}.styles-module__selectButton___AKZe4.styles-module__default___LedYP .styles-module__chevronIcon___qAHaD{color:var(--color-fg)}.styles-module__chevronIcon___qAHaD.styles-module__open___9AKMb{transform:rotate(180deg)}.styles-module__optionsPanel___NWAp3{background-color:var(--color-bg);border:1px solid var(--color-border-4);border-radius:var(--radius-button);min-width:100%;box-shadow:0 .5rem 1rem var(--color-shadow);z-index:1000;transform-origin:top;visibility:hidden;pointer-events:none;position:absolute;top:calc(100% + .5rem);left:0;right:0;overflow:hidden}.styles-module__optionsPanel___NWAp3.styles-module__open___9AKMb{visibility:visible;pointer-events:auto;animation:.25s ease-out styles-module__expandDown___eD4lh}.styles-module__optionsPanel___NWAp3.styles-module__closed___bez-q{visibility:hidden;pointer-events:none;animation:.25s ease-out styles-module__collapseUp___dt1E7}@keyframes styles-module__expandDown___eD4lh{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}@keyframes styles-module__collapseUp___dt1E7{0%{opacity:1;transform:scaleY(1)}to{opacity:0;transform:scaleY(0)}}.styles-module__optionsPanel___NWAp3.styles-module__primary___HU36a{border-color:var(--color-primary)}.styles-module__optionsPanel___NWAp3.styles-module__default___LedYP{border-color:var(--color-border-4)}.styles-module__optionsList___AxhVp{margin:0;padding:.5rem 0;list-style:none}.styles-module__option___t1SSw{cursor:pointer;color:var(--color-fg-text);justify-content:space-between;align-items:center;padding:.75rem 1.125rem;transition:all .15s;display:flex}.styles-module__option___t1SSw:hover{background-color:var(--color-bg-2)}.styles-module__option___t1SSw.styles-module__selected___azD4A{background-color:var(--color-primary);color:var(--color-primary-fg);font-weight:700}@media (prefers-color-scheme:dark){.styles-module__optionsPanel___NWAp3{box-shadow:0 .5rem 1rem var(--color-shadow)}}.styles-module__sliderContainer___lgpaD{flex-direction:column;gap:.5rem;display:flex}.styles-module__sliderContainer___lgpaD.styles-module__fullWidth___ZS8W5{width:100%}.styles-module__labelRow___dkVVM{justify-content:space-between;align-items:center;min-height:1.5rem;margin-bottom:.5rem;display:flex}.styles-module__label___bXGZs{color:var(--color-fg-text);font-size:.875rem;font-weight:500}.styles-module__required___FuyfE{color:var(--color-danger);margin-left:.25rem}.styles-module__sliderWrapper___1Wdti{touch-action:none;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;gap:.75rem;width:100%;display:flex}.styles-module__sliderRoot___yzOjR{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;flex-grow:1;align-items:center;width:100%;padding:.75rem 0;display:flex;position:relative}.styles-module__sliderRoot___yzOjR:active{cursor:grabbing}.styles-module__sliderTrackWrapper___N72WQ{flex-grow:1;display:flex;position:relative}.styles-module__sliderTrack___AltcD{border-radius:var(--radius-badge);background-color:var(--color-bg-3);width:100%;height:.375rem;position:relative;overflow:hidden}.styles-module__sliderRange___U3g0-{background-color:var(--color-primary);border-radius:var(--radius-badge);height:100%;position:absolute}.styles-module__valueIndicator___aLf0I{color:var(--color-primary);text-align:center;flex-shrink:0;min-width:2rem;font-size:.875rem;font-weight:600;line-height:1}.styles-module__iconWrapper___wL-b8{flex-shrink:0;justify-content:center;align-items:center;display:flex}.styles-module__icon___vHsID{width:20px;height:20px;color:var(--color-fg-muted)}.styles-module__errorMessage___qFgGe{color:var(--color-danger);margin:0;font-size:.75rem}.styles-module__helperText___tgBGl{color:var(--color-fg-muted);margin:0;font-size:.75rem}.styles-module__loadingContainer___OMgwS{flex-direction:column;justify-content:center;align-items:center;gap:1.5rem;min-height:60vh;display:flex}.styles-module__loadingText___KRZqR{color:var(--color-fg-muted);font-size:1rem}.styles-module__errorContainer___qhAg2{text-align:center;min-height:60vh;color:var(--color-fg-text);flex-direction:column;justify-content:center;align-items:center;gap:2rem;padding:3rem 2rem;display:flex}.styles-module__errorIconWrapper___IHZrN{background:linear-gradient(135deg, rgba(var(--color-error-rgb), .1), rgba(var(--color-error-rgb), .05));border:2px solid rgba(var(--color-error-rgb), .2);border-radius:50%;justify-content:center;align-items:center;width:120px;height:120px;animation:2s ease-in-out infinite styles-module__pulse___Lju-z;display:flex}@keyframes styles-module__pulse___Lju-z{0%,to{opacity:1;transform:scale(1)}50%{opacity:.9;transform:scale(1.05)}}.styles-module__errorIcon___oGDIP{color:var(--color-error);stroke-width:1.5px}.styles-module__errorContent___F55rQ{flex-direction:column;align-items:center;gap:1rem;width:100%;max-width:600px;display:flex}.styles-module__errorTitle___hC8D-{color:var(--color-fg-heading);letter-spacing:-.02em;margin:0;font-size:1.75rem;font-weight:700;line-height:1.2}.styles-module__errorDescription___hZtuP{color:var(--color-fg-muted);max-width:480px;margin:0;font-size:1rem;line-height:1.6}.styles-module__errorDetailsWrapper___-sp8b{width:100%;max-width:600px;margin-top:.5rem}.styles-module__errorDetailsContainer___eywMo{text-align:left;border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-bg-2);width:100%;transition:all .2s;overflow:hidden}.styles-module__errorDetailsContainer___eywMo:hover{border-color:var(--color-border-hover);background:var(--color-bg-3)}.styles-module__errorDetailsSummary___hGEoD{cursor:pointer;color:var(--color-fg-muted);-webkit-user-select:none;user-select:none;padding:.875rem 1.25rem;font-size:.875rem;font-weight:500;list-style:none;transition:color .2s}.styles-module__errorDetailsSummary___hGEoD:hover{color:var(--color-fg-text)}.styles-module__errorDetailsSummary___hGEoD::-webkit-details-marker{display:none}.styles-module__errorDetailsSummary___hGEoD:before{content:"▶";margin-right:.5rem;font-size:.75rem;transition:transform .2s;display:inline-block}.styles-module__errorDetailsContainer___eywMo[open] .styles-module__errorDetailsSummary___hGEoD:before{transform:rotate(90deg)}.styles-module__errorDetails___tzCT-{background:var(--color-bg-3);border-top:1px solid var(--color-border);max-width:100%;color:var(--color-fg-muted);white-space:pre-wrap;word-break:break-word;margin:0;padding:1rem 1.25rem;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;font-size:.8125rem;line-height:1.6;overflow-x:auto}.styles-module__errorActions___gtqYw{flex-wrap:wrap;justify-content:center;align-items:center;gap:.75rem;margin-top:1rem;display:flex}.styles-module__retryButton___TA4jm{border-radius:var(--radius-button);background:var(--color-primary);color:var(--color-primary-fg);cursor:pointer;box-shadow:0 2px 8px var(--color-shadow);border:none;justify-content:center;align-items:center;gap:.5rem;padding:.75rem 2rem;font-size:.9375rem;font-weight:500;transition:all .2s;display:inline-flex}.styles-module__retryButton___TA4jm:hover{box-shadow:0 4px 16px var(--color-shadow);background:var(--color-primary-light);color:var(--color-primary-fg);transform:translateY(-2px)}.styles-module__retryButton___TA4jm:active{box-shadow:0 2px 8px var(--color-shadow);transform:translateY(0)}.styles-module__retryButtonIcon___vzfp-{font-size:1.125rem;line-height:1;transition:transform .3s;display:inline-block}.styles-module__retryButton___TA4jm:hover .styles-module__retryButtonIcon___vzfp-{transform:rotate(180deg)}.styles-module__clearLocalDataButton___T3B-K{border-radius:var(--radius-button);color:var(--color-fg-muted);border:1px solid var(--color-border-4);cursor:pointer;background:0 0;justify-content:center;align-items:center;padding:.75rem 1.5rem;font-size:.9375rem;font-weight:500;transition:all .2s;display:inline-flex}.styles-module__clearLocalDataButton___T3B-K:hover{color:var(--color-fg-text);border-color:var(--color-border-3);background:var(--color-bg-secondary)}.styles-module__wrapper___jXPV3{flex-direction:column;gap:.5rem;display:flex}.styles-module__wrapper___jXPV3.styles-module__fullWidth___eKyGB{width:100%}.styles-module__label___MyTeo{color:var(--color-fg-heading);align-items:center;gap:.25rem;font-size:.875rem;font-weight:500;display:flex}.styles-module__required___TV-m8{color:var(--color-danger)}.styles-module__inputContainer___VvGBl{align-items:flex-start;width:100%;display:flex;position:relative}.styles-module__textarea___AjX9N{border:1px solid var(--color-border-4);border-radius:var(--radius-input);background:var(--color-bg);width:100%;color:var(--color-fg-text);resize:vertical;outline:none;min-height:4rem;font-family:inherit;font-size:.875rem;transition:all .2s}.styles-module__textarea___AjX9N:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px rgba(var(--color-primary-rgb), .1)}.styles-module__textarea___AjX9N::placeholder{color:var(--color-fg-muted);opacity:.5}.styles-module__textarea___AjX9N.styles-module__small___zMx0G{min-height:3rem;padding:.5rem .75rem;font-size:.8125rem}.styles-module__textarea___AjX9N.styles-module__medium___tO2Lb{min-height:4rem;padding:.75rem;font-size:.875rem}.styles-module__textarea___AjX9N.styles-module__large___3eU2g{min-height:5rem;padding:1rem;font-size:1rem}.styles-module__textarea___AjX9N.styles-module__default___vsSxX{background:var(--color-bg);border-color:var(--color-border-4)}.styles-module__textarea___AjX9N.styles-module__filled___TPQgI{background:var(--color-bg-2);border-color:var(--color-border-3)}.styles-module__inputContainer___VvGBl .styles-module__leftIcon___FHp2R{color:var(--color-fg-muted);pointer-events:none;z-index:1;justify-content:center;align-items:center;display:flex;position:absolute;top:.75rem;left:.75rem}.styles-module__inputContainer___VvGBl .styles-module__rightIcon___dkyvP{color:var(--color-fg-muted);pointer-events:none;z-index:1;justify-content:center;align-items:center;display:flex;position:absolute;top:.75rem;right:.75rem}.styles-module__inputContainer___VvGBl .styles-module__textarea___AjX9N.styles-module__small___zMx0G+.styles-module__leftIcon___FHp2R,.styles-module__inputContainer___VvGBl .styles-module__textarea___AjX9N.styles-module__small___zMx0G+.styles-module__rightIcon___dkyvP{top:.5rem}.styles-module__inputContainer___VvGBl .styles-module__textarea___AjX9N.styles-module__large___3eU2g+.styles-module__leftIcon___FHp2R,.styles-module__inputContainer___VvGBl .styles-module__textarea___AjX9N.styles-module__large___3eU2g+.styles-module__rightIcon___dkyvP{top:1rem}.styles-module__textarea___AjX9N.styles-module__error___d8gLK{border-color:var(--color-danger)}.styles-module__textarea___AjX9N.styles-module__error___d8gLK:focus{border-color:var(--color-danger);box-shadow:0 0 0 3px rgba(var(--color-danger-rgb), .1)}.styles-module__textarea___AjX9N.styles-module__disabled___IzbfE{background:var(--color-bg-3);border-color:var(--color-border-5);color:var(--color-fg-muted);cursor:not-allowed;opacity:.6}.styles-module__errorText___Nom7x{color:var(--color-danger);margin:0;font-size:.75rem}.styles-module__helperText___97Def{color:var(--color-fg-muted);margin:0;font-size:.75rem}.styles-module__virtualList___pM6rN{contain:strict;width:100%;padding-bottom:300px;position:relative;overflow:auto}.styles-module__emptyContainer___rm938{height:100%;color:var(--color-fg-muted);justify-content:center;align-items:center;display:flex}.styles-module__virtualListInner___HxRzc{width:100%;position:relative}.styles-module__virtualListItems___p19-a{width:100%;position:absolute;top:0;left:0}.styles-module__loadingMore___zAdLM{color:var(--color-fg-muted);justify-content:center;align-items:center;gap:.75rem;padding:2rem 0;font-size:.875rem;display:flex}.styles-module__endOfList___5cYFh{color:var(--color-fg-muted);border-top:1px solid var(--color-border-3);justify-content:center;margin-top:1rem;padding:2rem 0;font-size:.875rem;display:flex}.styles-module__endOfList___5cYFh span{background-color:var(--color-bg-2);border-radius:var(--radius-button);padding:.5rem 1rem}.styles-module__virtualList___xmj2v{width:100%;padding-bottom:300px;position:relative;overflow:visible}.styles-module__virtualListInner___quD74{width:100%;position:relative}.styles-module__virtualListItems___-Muml{width:100%;position:absolute;top:0;left:0}.styles-module__virtualListRow___h3pzX{width:100%}.styles-module__emptyContainer___LIy8r{color:var(--color-fg-muted);justify-content:center;align-items:center;padding:2rem 0;display:flex}.styles-module__loadingMore___Mzf-p{color:var(--color-fg-muted);justify-content:center;align-items:center;padding:1.5rem 0;display:flex}.styles-module__endOfList___g5G--{color:var(--color-fg-muted);border-top:1px solid var(--color-border-3);justify-content:center;padding:1.5rem 0;display:flex}.styles-module__sidebar___BMt0j{flex-direction:column;min-height:0;display:flex;overflow:hidden}.styles-module__sidebarContent___iAwiw{flex-direction:column;flex:1;min-height:0;padding-top:1rem;display:flex;overflow:hidden}.styles-module__menuWrapper___DKuEv{flex:1;min-height:0;overflow:hidden auto}.styles-module__sidebarFooter___qiPXO{flex-shrink:0;margin-top:auto}.styles-module__menuWrapper___DKuEv::-webkit-scrollbar{width:0;height:0}.styles-module__menuWrapper___DKuEv{scrollbar-width:none;-ms-overflow-style:none}.styles-module__sidebar___BMt0j .ps-sidebar-root{background-color:var(--color-bg-2)!important;border-right:1px solid var(--color-separator)!important;flex-direction:column!important;min-height:0!important;display:flex!important;overflow:hidden!important}.styles-module__sidebar___BMt0j .ps-sidebar-container{background-color:var(--color-bg-2)!important;min-height:0!important;color:var(--color-fg-text)!important;flex-direction:column!important;flex:1!important;display:flex!important;overflow:hidden!important}.styles-module__sidebar___BMt0j .ps-menu-button{border-radius:var(--radius-button)!important;color:var(--color-fg-text)!important;margin:.125rem .5rem!important;padding:.5rem .75rem!important;font-size:.875rem!important;transition:background-color .2s,color .2s!important}.styles-module__sidebar___BMt0j .ps-menu-button:hover{background-color:var(--color-bg-3)!important;color:var(--color-fg-text)!important}.styles-module__sidebar___BMt0j .ps-menu-button.ps-active{background-color:var(--color-primary)!important;color:var(--color-primary-fg)!important}.styles-module__sidebar___BMt0j .ps-menu-button.ps-active .ps-menu-icon,.styles-module__sidebar___BMt0j .ps-menu-button.ps-active .ps-menu-label,.styles-module__sidebar___BMt0j .ps-menu-button.ps-active .ps-submenu-expand-icon{color:var(--color-primary-fg)!important}.styles-module__sidebar___BMt0j .ps-menu-icon{width:1.25rem!important;height:1.25rem!important;color:var(--color-fg-text)!important}.styles-module__sidebar___BMt0j .ps-submenu-content{background-color:var(--color-bg-3)!important;overflow:hidden!important}.styles-module__sidebar___BMt0j .ps-submenu-content .ps-menu-button{margin:.125rem .25rem!important;padding:.375rem .5rem!important;font-size:.8125rem!important}.styles-module__logoutContainer___7NwBL{border-top:1px solid var(--color-separator);padding:.5rem}.styles-module__logoutButton___rfD6u{border-radius:var(--radius-button);width:100%;color:var(--color-fg-text);cursor:pointer;white-space:nowrap;background:0 0;border:none;justify-content:flex-start;align-items:center;gap:.5rem;padding:.5rem .75rem;font-size:.875rem;transition:background-color .2s,color .2s;display:flex;overflow:hidden}.styles-module__logoutButton___rfD6u:hover{background-color:var(--color-bg-3)}.styles-module__logoutButton___rfD6u:active{transform:scale(.98)}.styles-module__logoutButton___rfD6u svg{color:inherit;flex-shrink:0}.styles-module__hiddenText___z183T{opacity:0;width:0;max-width:0;overflow:hidden}.styles-module__visibleText___lfsv-{opacity:1;width:auto;max-width:200px}.styles-module__footer___g-hY7{background:var(--color-bg-2);width:100%;padding:0 2rem}.styles-module__footerContent___Oen5n{justify-content:space-between;align-items:center;max-width:100%;margin:0 auto;display:flex}.styles-module__copyright___1R2o3{color:var(--color-fg-text);font-size:.875rem}.styles-module__links___dQyvB{gap:1.5rem;display:flex}.styles-module__link___UWfyK{color:var(--color-fg-text);font-size:.875rem;text-decoration:none;transition:color .3s}.styles-module__link___UWfyK:hover{color:var(--color-primary)}@media (width<=768px){.styles-module__footerContent___Oen5n{flex-direction:column;gap:1rem}.styles-module__links___dQyvB{gap:1rem}}.styles-module__header___4Uc8h{width:100%;padding:.5rem 2rem;display:flex}.styles-module__header___4Uc8h>:first-child{flex:1;justify-content:flex-start;align-items:center;display:flex}.styles-module__header___4Uc8h>:last-child{flex:1;justify-content:flex-end;align-items:center;display:flex}.styles-module__layout___ZQKU7{background:var(--color-bg);flex-direction:column;width:100%;height:100vh;display:flex;position:relative}.styles-module__header___XIaFb{z-index:100;background:var(--color-bg);width:100%;box-shadow:0 .125rem .25rem 0 var(--color-shadow);position:fixed;top:0}.styles-module__footer___r8ASO{z-index:100;width:100%;position:fixed;bottom:0}.styles-module__mainWrapper___i4tEI{flex:1;display:flex;position:relative}.styles-module__sidebarChrome___q0pw5{z-index:101;box-sizing:border-box;position:fixed;left:0}.styles-module__sidebar___ij-8-{height:100%;min-height:0}.styles-module__content___mTgUr{background:var(--color-bg);flex:1;min-height:calc(100vh - 10rem);margin:0;padding-top:0;padding-bottom:0;overflow:hidden auto}@media (width<=768px){.styles-module__content___mTgUr{width:100%}.styles-module__sidebarChrome___q0pw5{z-index:999}}.styles-module__mainWrapper___AiTAw{flex-direction:row;flex:1;display:flex;position:relative}.styles-module__sidebarContainer___X4yj8{z-index:99;box-sizing:border-box;flex-direction:column;min-height:0;display:flex;position:fixed;left:0;overflow:hidden}.styles-module__sidebar___VQTlH{flex-shrink:0;top:0;left:0}.styles-module__content___htJlH{background:var(--color-bg);flex:1;margin:0;padding-top:0;padding-bottom:0;overflow:hidden auto}@media (width<=1024px){.styles-module__content___htJlH{padding:1.5rem}}@media (width<=768px){.styles-module__content___htJlH{width:100%}}.styles-module__wavesWrapper___TK7DI{pointer-events:none;z-index:0;width:100vw;height:100vh;position:fixed;inset:0;overflow:hidden}.styles-module__wavesWrapper___TK7DI>*{pointer-events:auto}.styles-module__squaresWrapper___P25uF{pointer-events:none;z-index:0;width:100vw;height:100vh;position:fixed;inset:0;overflow:hidden}.styles-module__squaresWrapper___P25uF>*{pointer-events:auto}.styles-module__letterGlitchWrapper___KWtWU{pointer-events:none;z-index:0;width:100vw;height:100vh;position:fixed;inset:0;overflow:hidden}.styles-module__letterGlitchWrapper___KWtWU>*{pointer-events:auto}.styles-module__pixelBlastWrapper___YptHh{pointer-events:none;z-index:0;width:100vw;height:100vh;position:fixed;inset:0;overflow:hidden}.styles-module__pixelBlastWrapper___YptHh>*{pointer-events:auto}.style-module__container___Hh3-c{width:100%;height:100%;position:relative;overflow:hidden}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
+ import { C as be, S as Se, T as we, f as Ie, gt as Ee, m as Ne, nt as Ce, ot as xe, p as Oe, t as Te, tt as Me, vt as ze } from "./chunk-lucide-B99NZWfa.mjs";
3
+ import { n as $e } from "./chunk-useTheme-BY1_pW9y.mjs";
4
+ import { n as Le } from "./chunk-layout-BEAgFhif.mjs";
5
+ import { n as De } from "./chunk-useLayout-BXsJlpcb.mjs";
6
+ import { n as Ae, r as ae, t as Re } from "./chunk-BounceLoading-C-gq-XVr.mjs";
7
+ import * as Y from "react";
8
+ import { Component as ke, Suspense as We, cloneElement as Fe, forwardRef as ee, isValidElement as Ve, memo as D, useCallback as q, useEffect as K, useRef as te, useState as J } from "react";
9
+ import { Fragment as _e, jsx as i, jsxs as w } from "react/jsx-runtime";
10
+ import { animate as Be, motion as H, useMotionValue as ce, useMotionValueEvent as je, useTransform as X } from "motion/react";
11
+ import { QueryErrorResetBoundary as Pe } from "@tanstack/react-query";
12
+ import { flushSync as qe } from "react-dom";
13
+ var Ke = "styles-module__button___RbliA", Ge = "styles-module__small___yK0Yp", He = "styles-module__medium___eBTch", Xe = "styles-module__large___pIZkl", Ue = "styles-module__primary___qsZpA", Ze = "styles-module__secondary___SCpPv", Ye = "styles-module__outline___rrlk9", Je = "styles-module__ghost___QMoiH", Qe = "styles-module__danger___MW-pg", et = "styles-module__fullWidth___-dXBR", tt = "styles-module__loading___UWw6V", st = "styles-module__spinner___KpJ-L", nt = "styles-module__spin___ntZKM", rt = "styles-module__content___oyZRO", lt = "styles-module__leftIcon___cDktv", it = "styles-module__rightIcon___1mpk0", ot = "styles-module__iconOnly___iOv-U", at = "styles-module__iconContainer___bwvE3", ct = "styles-module__layout___WaGy9", dt = "styles-module__horizontal___lKpGq", ut = "styles-module__topIcon___bzw6s", ht = "styles-module__bottomIcon___suPfa", C = {
14
+ button: Ke,
15
+ small: Ge,
17
16
  medium: He,
18
- large: Ge,
19
- primary: Ke,
20
- secondary: Xe,
21
- outline: Ue,
22
- ghost: Ze,
23
- danger: Ye,
24
- fullWidth: Qe,
25
- loading: Je,
26
- spinner: et,
27
- spin: tt,
28
- content: st,
29
- leftIcon: rt,
30
- rightIcon: nt,
31
- iconOnly: lt,
32
- iconContainer: it,
33
- layout: at,
34
- horizontal: ot,
35
- topIcon: dt,
36
- bottomIcon: ct
17
+ large: Xe,
18
+ primary: Ue,
19
+ secondary: Ze,
20
+ outline: Ye,
21
+ ghost: Je,
22
+ danger: Qe,
23
+ fullWidth: et,
24
+ loading: tt,
25
+ spinner: st,
26
+ spin: nt,
27
+ content: rt,
28
+ leftIcon: lt,
29
+ rightIcon: it,
30
+ iconOnly: ot,
31
+ iconContainer: at,
32
+ layout: ct,
33
+ horizontal: dt,
34
+ topIcon: ut,
35
+ bottomIcon: ht
37
36
  };
38
- function B(n, t) {
39
- return n ? t && ke(n) && typeof n.type != "string" ? Ae(n, {
40
- ...n.props && typeof n.props == "object" ? n.props : {},
41
- size: t
42
- }) : n : null;
37
+ function F(l, e) {
38
+ return l ? e && Ve(l) && typeof l.type != "string" ? Fe(l, {
39
+ ...l.props && typeof l.props == "object" ? l.props : {},
40
+ size: e
41
+ }) : l : null;
43
42
  }
44
- var se = ee(({ variant: n = "primary", size: t = "medium", fullWidth: e = !1, leftIcon: s, rightIcon: r, topIcon: i, bottomIcon: a, iconOnly: o = !1, iconSize: c, loading: d = !1, disabled: u, children: h, className: _ = "", ...m }, g) => {
45
- const I = s || r || i || a, b = !o && h, N = o && I && !b, p = i || a || N, y = [
43
+ var re = ee(({ variant: l = "primary", size: e = "medium", fullWidth: t = !1, leftIcon: s, rightIcon: n, topIcon: r, bottomIcon: o, iconOnly: c = !1, iconSize: d, loading: a = !1, disabled: u, children: h, className: m = "", ..._ }, v) => {
44
+ const g = s || n || r || o, p = !c && h, S = c && g && !p, f = r || o || S, b = [
46
45
  C.button,
47
- C[n],
48
- C[t],
49
- e && C.fullWidth,
50
- d && C.loading,
51
- N && C.iconOnly,
52
- _
46
+ C[l],
47
+ C[e],
48
+ t && C.fullWidth,
49
+ a && C.loading,
50
+ S && C.iconOnly,
51
+ m
53
52
  ].filter(Boolean).join(" ");
54
- return N ? /* @__PURE__ */ l("button", {
55
- ref: g,
53
+ return S ? /* @__PURE__ */ i("button", {
54
+ ref: v,
56
55
  type: "button",
57
- className: y,
58
- disabled: u || d,
59
- ...m,
60
- children: /* @__PURE__ */ v("span", {
56
+ className: b,
57
+ disabled: u || a,
58
+ ..._,
59
+ children: /* @__PURE__ */ w("span", {
61
60
  className: C.iconContainer,
62
61
  children: [
63
- i && /* @__PURE__ */ l("span", {
62
+ r && /* @__PURE__ */ i("span", {
64
63
  className: C.topIcon,
65
- children: B(i, c)
64
+ children: F(r, d)
66
65
  }),
67
- s && /* @__PURE__ */ l("span", {
66
+ s && /* @__PURE__ */ i("span", {
68
67
  className: C.leftIcon,
69
- children: B(s, c)
68
+ children: F(s, d)
70
69
  }),
71
- r && /* @__PURE__ */ l("span", {
70
+ n && /* @__PURE__ */ i("span", {
72
71
  className: C.rightIcon,
73
- children: B(r, c)
72
+ children: F(n, d)
74
73
  }),
75
- a && /* @__PURE__ */ l("span", {
74
+ o && /* @__PURE__ */ i("span", {
76
75
  className: C.bottomIcon,
77
- children: B(a, c)
76
+ children: F(o, d)
78
77
  })
79
78
  ]
80
79
  })
81
- }) : p ? /* @__PURE__ */ v("button", {
82
- ref: g,
80
+ }) : f ? /* @__PURE__ */ w("button", {
81
+ ref: v,
83
82
  type: "button",
84
- className: y,
85
- disabled: u || d,
86
- ...m,
87
- children: [d && /* @__PURE__ */ l("span", { className: C.spinner }), !d && /* @__PURE__ */ v("span", {
83
+ className: b,
84
+ disabled: u || a,
85
+ ..._,
86
+ children: [a && /* @__PURE__ */ i("span", { className: C.spinner }), !a && /* @__PURE__ */ w("span", {
88
87
  className: C.layout,
89
88
  children: [
90
- i && /* @__PURE__ */ l("span", {
89
+ r && /* @__PURE__ */ i("span", {
91
90
  className: C.topIcon,
92
- children: B(i, c)
91
+ children: F(r, d)
93
92
  }),
94
- /* @__PURE__ */ v("span", {
93
+ /* @__PURE__ */ w("span", {
95
94
  className: C.horizontal,
96
95
  children: [
97
- s && /* @__PURE__ */ l("span", {
96
+ s && /* @__PURE__ */ i("span", {
98
97
  className: C.leftIcon,
99
- children: B(s, c)
98
+ children: F(s, d)
100
99
  }),
101
- b && /* @__PURE__ */ l("span", {
100
+ p && /* @__PURE__ */ i("span", {
102
101
  className: C.content,
103
102
  children: h
104
103
  }),
105
- r && /* @__PURE__ */ l("span", {
104
+ n && /* @__PURE__ */ i("span", {
106
105
  className: C.rightIcon,
107
- children: B(r, c)
106
+ children: F(n, d)
108
107
  })
109
108
  ]
110
109
  }),
111
- a && /* @__PURE__ */ l("span", {
110
+ o && /* @__PURE__ */ i("span", {
112
111
  className: C.bottomIcon,
113
- children: B(a, c)
112
+ children: F(o, d)
114
113
  })
115
114
  ]
116
115
  })]
117
- }) : /* @__PURE__ */ v("button", {
118
- ref: g,
116
+ }) : /* @__PURE__ */ w("button", {
117
+ ref: v,
119
118
  type: "button",
120
- className: y,
121
- disabled: u || d,
122
- ...m,
119
+ className: b,
120
+ disabled: u || a,
121
+ ..._,
123
122
  children: [
124
- d && /* @__PURE__ */ l("span", { className: C.spinner }),
125
- s && !d && /* @__PURE__ */ l("span", {
123
+ a && /* @__PURE__ */ i("span", { className: C.spinner }),
124
+ s && !a && /* @__PURE__ */ i("span", {
126
125
  className: C.leftIcon,
127
- children: B(s, c)
126
+ children: F(s, d)
128
127
  }),
129
- h && /* @__PURE__ */ l("span", {
128
+ h && /* @__PURE__ */ i("span", {
130
129
  className: C.content,
131
130
  children: h
132
131
  }),
133
- r && !d && /* @__PURE__ */ l("span", {
132
+ n && !a && /* @__PURE__ */ i("span", {
134
133
  className: C.rightIcon,
135
- children: B(r, c)
134
+ children: F(n, d)
136
135
  })
137
136
  ]
138
137
  });
139
138
  });
140
- se.displayName = "Button";
141
- var ut = "Dropdown-module__dropdown___c9wIp", _t = "Dropdown-module__dropdownButton___suNh-", ht = "Dropdown-module__disabled___Rz0pX", mt = "Dropdown-module__error___F7dDu", ft = "Dropdown-module__buttonText___D2zxn", pt = "Dropdown-module__chevronIcon___uyawp", vt = "Dropdown-module__open___APoXd", yt = "Dropdown-module__dropdownMenu___WJ-QO", gt = "Dropdown-module__slideDown___sRCmO", bt = "Dropdown-module__optionsList___Be6RN", wt = "Dropdown-module__option___q-NgT", Nt = "Dropdown-module__selected___-OTW-", W = {
142
- dropdown: ut,
143
- dropdownButton: _t,
144
- disabled: ht,
145
- error: mt,
146
- buttonText: ft,
147
- chevronIcon: pt,
148
- open: vt,
149
- dropdownMenu: yt,
150
- slideDown: gt,
151
- optionsList: bt,
152
- option: wt,
153
- selected: Nt
154
- }, It = z(({ options: n, value: t, onChange: e, placeholder: s = "Select an option", disabled: r = !1, error: i = !1, className: a = "" }) => {
155
- const [o, c] = Z(!1), d = te(null);
156
- H(() => {
157
- const m = (g) => {
158
- d.current && !d.current.contains(g.target) && c(!1);
139
+ re.displayName = "Button";
140
+ var _t = "Dropdown-module__dropdown___c9wIp", mt = "Dropdown-module__dropdownButton___suNh-", ft = "Dropdown-module__disabled___Rz0pX", pt = "Dropdown-module__error___F7dDu", vt = "Dropdown-module__buttonText___D2zxn", gt = "Dropdown-module__chevronIcon___uyawp", yt = "Dropdown-module__open___APoXd", bt = "Dropdown-module__dropdownMenu___WJ-QO", St = "Dropdown-module__slideDown___sRCmO", wt = "Dropdown-module__optionsList___Be6RN", It = "Dropdown-module__option___q-NgT", Et = "Dropdown-module__selected___-OTW-", k = {
141
+ dropdown: _t,
142
+ dropdownButton: mt,
143
+ disabled: ft,
144
+ error: pt,
145
+ buttonText: vt,
146
+ chevronIcon: gt,
147
+ open: yt,
148
+ dropdownMenu: bt,
149
+ slideDown: St,
150
+ optionsList: wt,
151
+ option: It,
152
+ selected: Et
153
+ }, Nt = D(({ options: l, value: e, onChange: t, placeholder: s = "Select an option", disabled: n = !1, error: r = !1, className: o = "" }) => {
154
+ const [c, d] = J(!1), a = te(null);
155
+ K(() => {
156
+ const _ = (v) => {
157
+ a.current && !a.current.contains(v.target) && d(!1);
159
158
  };
160
- return document.addEventListener("mousedown", m), () => {
161
- document.removeEventListener("mousedown", m);
159
+ return document.addEventListener("mousedown", _), () => {
160
+ document.removeEventListener("mousedown", _);
162
161
  };
163
162
  }, []);
164
- const u = n.find((m) => m.value === t), h = u ? u.label : s, _ = (m) => {
165
- e(m), c(!1);
163
+ const u = l.find((_) => _.value === e), h = u ? u.label : s, m = (_) => {
164
+ t(_), d(!1);
166
165
  };
167
- return /* @__PURE__ */ v("div", {
168
- className: `${W.dropdown} ${a}`,
169
- ref: d,
170
- children: [/* @__PURE__ */ v("button", {
166
+ return /* @__PURE__ */ w("div", {
167
+ className: `${k.dropdown} ${o}`,
168
+ ref: a,
169
+ children: [/* @__PURE__ */ w("button", {
171
170
  type: "button",
172
- className: `${W.dropdownButton} ${i ? W.error : ""} ${r ? W.disabled : ""}`,
173
- onClick: () => !r && c(!o),
174
- disabled: r,
175
- "aria-expanded": o,
171
+ className: `${k.dropdownButton} ${r ? k.error : ""} ${n ? k.disabled : ""}`,
172
+ onClick: () => !n && d(!c),
173
+ disabled: n,
174
+ "aria-expanded": c,
176
175
  "aria-haspopup": "listbox",
177
- children: [/* @__PURE__ */ l("span", {
178
- className: W.buttonText,
176
+ children: [/* @__PURE__ */ i("span", {
177
+ className: k.buttonText,
179
178
  children: h
180
- }), /* @__PURE__ */ l(we, {
179
+ }), /* @__PURE__ */ i(Ie, {
181
180
  size: 16,
182
- className: `${W.chevronIcon} ${o ? W.open : ""}`
181
+ className: `${k.chevronIcon} ${c ? k.open : ""}`
183
182
  })]
184
- }), o && !r && /* @__PURE__ */ l("div", {
185
- className: W.dropdownMenu,
186
- children: /* @__PURE__ */ l("ul", {
187
- className: W.optionsList,
183
+ }), c && !n && /* @__PURE__ */ i("div", {
184
+ className: k.dropdownMenu,
185
+ children: /* @__PURE__ */ i("ul", {
186
+ className: k.optionsList,
188
187
  role: "listbox",
189
- children: n.map((m) => /* @__PURE__ */ l("li", {
190
- className: `${W.option} ${m.value === t ? W.selected : ""}`,
191
- onClick: () => _(m.value),
188
+ children: l.map((_) => /* @__PURE__ */ i("li", {
189
+ className: `${k.option} ${_.value === e ? k.selected : ""}`,
190
+ onClick: () => m(_.value),
192
191
  role: "option",
193
- "aria-selected": m.value === t,
194
- children: m.label
195
- }, m.value))
192
+ "aria-selected": _.value === e,
193
+ children: _.label
194
+ }, _.value))
196
195
  })
197
196
  })]
198
197
  });
199
198
  });
200
- It.displayName = "Dropdown";
201
- var St = z(({ name: n, ...t }) => {
202
- const e = $e[n];
203
- return e ? /* @__PURE__ */ l(e, { ...t }) : (console.warn(`Icon "${n}" not found in lucide-react`), null);
199
+ Nt.displayName = "Dropdown";
200
+ var Ct = D(({ name: l, ...e }) => {
201
+ const t = ze[l];
202
+ return t ? /* @__PURE__ */ i(t, { ...e }) : (console.warn(`Icon "${l}" not found in lucide-react`), null);
204
203
  });
205
- St.displayName = "Icon";
206
- var Ct = "styles-module__wrapper___COeGm", Et = "styles-module__fullWidth___lVU49", xt = "styles-module__label___gfOA7", Lt = "styles-module__required___-zOy5", $t = "styles-module__inputContainer___wXY53", Mt = "styles-module__input___IZDc3", Ot = "styles-module__small___cuGyE", Dt = "styles-module__medium___JdDPu", Rt = "styles-module__large___fMmiG", zt = "styles-module__filled___EQ5PQ", Tt = "styles-module__withLeftIcon___NFn6-", Wt = "styles-module__withRightIcon___mz-hn", At = "styles-module__leftIcon___jEW5H", kt = "styles-module__rightIcon___bA3Eo", Bt = "styles-module__rightIconInteractive___ccypw", Ft = "styles-module__containerSmall___20ICq", Vt = "styles-module__containerLarge___IztuN", jt = "styles-module__error___946qV", qt = "styles-module__disabled___sJvLd", Pt = "styles-module__errorMessage___5Mn22", Ht = "styles-module__helperText___T2eui", L = {
207
- wrapper: Ct,
208
- fullWidth: Et,
209
- label: xt,
210
- required: Lt,
211
- inputContainer: $t,
212
- input: Mt,
213
- small: Ot,
204
+ Ct.displayName = "Icon";
205
+ var xt = "styles-module__wrapper___COeGm", Ot = "styles-module__fullWidth___lVU49", Tt = "styles-module__label___gfOA7", Mt = "styles-module__required___-zOy5", zt = "styles-module__inputContainer___wXY53", $t = "styles-module__input___IZDc3", Lt = "styles-module__small___cuGyE", Dt = "styles-module__medium___JdDPu", At = "styles-module__large___fMmiG", Rt = "styles-module__filled___EQ5PQ", kt = "styles-module__withLeftIcon___NFn6-", Wt = "styles-module__withRightIcon___mz-hn", Ft = "styles-module__leftIcon___jEW5H", Vt = "styles-module__rightIcon___bA3Eo", Bt = "styles-module__rightIconInteractive___ccypw", jt = "styles-module__containerSmall___20ICq", Pt = "styles-module__containerLarge___IztuN", qt = "styles-module__error___946qV", Kt = "styles-module__disabled___sJvLd", Gt = "styles-module__errorMessage___5Mn22", Ht = "styles-module__helperText___T2eui", O = {
206
+ wrapper: xt,
207
+ fullWidth: Ot,
208
+ label: Tt,
209
+ required: Mt,
210
+ inputContainer: zt,
211
+ input: $t,
212
+ small: Lt,
214
213
  medium: Dt,
215
- large: Rt,
214
+ large: At,
216
215
  default: "styles-module__default___-eZTG",
217
- filled: zt,
218
- withLeftIcon: Tt,
216
+ filled: Rt,
217
+ withLeftIcon: kt,
219
218
  withRightIcon: Wt,
220
- leftIcon: At,
221
- rightIcon: kt,
219
+ leftIcon: Ft,
220
+ rightIcon: Vt,
222
221
  rightIconInteractive: Bt,
223
- containerSmall: Ft,
224
- containerLarge: Vt,
225
- error: jt,
226
- disabled: qt,
227
- errorMessage: Pt,
222
+ containerSmall: jt,
223
+ containerLarge: Pt,
224
+ error: qt,
225
+ disabled: Kt,
226
+ errorMessage: Gt,
228
227
  helperText: Ht
229
- }, re = ee(({ label: n, error: t, helperText: e, leftIcon: s, rightIcon: r, rightIconInteractive: i = !1, size: a = "medium", variant: o = "default", fullWidth: c = !1, className: d = "", disabled: u, ...h }, _) => {
230
- const m = [
231
- L.input,
232
- L[a],
233
- L[o],
234
- t && L.error,
235
- u && L.disabled,
236
- d
237
- ].filter(Boolean).join(" "), g = [L.wrapper, c && L.fullWidth].filter(Boolean).join(" "), I = [
238
- L.inputContainer,
239
- s && L.withLeftIcon,
240
- r && L.withRightIcon,
241
- a && L[`container${a.charAt(0).toUpperCase() + a.slice(1)}`]
228
+ }, le = ee(({ label: l, error: e, helperText: t, leftIcon: s, rightIcon: n, rightIconInteractive: r = !1, size: o = "medium", variant: c = "default", fullWidth: d = !1, className: a = "", disabled: u, ...h }, m) => {
229
+ const _ = [
230
+ O.input,
231
+ O[o],
232
+ O[c],
233
+ e && O.error,
234
+ u && O.disabled,
235
+ a
236
+ ].filter(Boolean).join(" "), v = [O.wrapper, d && O.fullWidth].filter(Boolean).join(" "), g = [
237
+ O.inputContainer,
238
+ s && O.withLeftIcon,
239
+ n && O.withRightIcon,
240
+ o && O[`container${o.charAt(0).toUpperCase() + o.slice(1)}`]
242
241
  ].filter(Boolean).join(" ");
243
- return /* @__PURE__ */ v("div", {
244
- className: g,
242
+ return /* @__PURE__ */ w("div", {
243
+ className: v,
245
244
  children: [
246
- n && /* @__PURE__ */ v("label", {
247
- className: L.label,
248
- children: [n, h.required && /* @__PURE__ */ l("span", {
249
- className: L.required,
245
+ l && /* @__PURE__ */ w("label", {
246
+ className: O.label,
247
+ children: [l, h.required && /* @__PURE__ */ i("span", {
248
+ className: O.required,
250
249
  children: "*"
251
250
  })]
252
251
  }),
253
- /* @__PURE__ */ v("div", {
254
- className: I,
252
+ /* @__PURE__ */ w("div", {
253
+ className: g,
255
254
  children: [
256
- s && /* @__PURE__ */ l("div", {
257
- className: L.leftIcon,
255
+ s && /* @__PURE__ */ i("div", {
256
+ className: O.leftIcon,
258
257
  children: s
259
258
  }),
260
- /* @__PURE__ */ l("input", {
261
- ref: _,
262
- className: m,
259
+ /* @__PURE__ */ i("input", {
260
+ ref: m,
261
+ className: _,
263
262
  disabled: u,
264
263
  ...h
265
264
  }),
266
- r && /* @__PURE__ */ l("div", {
267
- className: `${L.rightIcon} ${i ? L.rightIconInteractive : ""}`,
268
- children: r
265
+ n && /* @__PURE__ */ i("div", {
266
+ className: `${O.rightIcon} ${r ? O.rightIconInteractive : ""}`,
267
+ children: n
269
268
  })
270
269
  ]
271
270
  }),
272
- t && /* @__PURE__ */ l("p", {
273
- className: L.errorMessage,
274
- children: t
275
- }),
276
- e && !t && /* @__PURE__ */ l("p", {
277
- className: L.helperText,
271
+ e && /* @__PURE__ */ i("p", {
272
+ className: O.errorMessage,
278
273
  children: e
274
+ }),
275
+ t && !e && /* @__PURE__ */ i("p", {
276
+ className: O.helperText,
277
+ children: t
279
278
  })
280
279
  ]
281
280
  });
282
281
  });
283
- re.displayName = "Input";
284
- var Gt = "styles-module__container___xeg8O", Kt = "styles-module__label___qhbKe", Xt = "styles-module__error___O-7AY", Ut = "styles-module__pairs___owGV3", Zt = "styles-module__pair___G4WFY", Yt = "styles-module__keyInput___wl1M1", Qt = "styles-module__valueInput___HiwJ5", Jt = "styles-module__removeButton___4-X0b", es = "styles-module__addButton___QFljt", F = {
285
- container: Gt,
286
- label: Kt,
287
- error: Xt,
288
- pairs: Ut,
289
- pair: Zt,
290
- keyInput: Yt,
291
- valueInput: Qt,
292
- removeButton: Jt,
293
- addButton: es
294
- }, ts = z(({ label: n, pairs: t, onChange: e, valueType: s = "string", keyPlaceholder: r = "Key", valuePlaceholder: i = "Value", valueArrayPlaceholder: a = "Value (comma-separated)", removeAriaLabel: o = "Remove row", addLabel: c = "Add", error: d }) => {
295
- const u = s === "array" ? a : i, [h, _] = Z(t);
296
- H(() => {
297
- _(t);
298
- }, [t]);
299
- const m = () => {
300
- const p = [...h, {
282
+ le.displayName = "Input";
283
+ var Xt = "styles-module__container___xeg8O", Ut = "styles-module__label___qhbKe", Zt = "styles-module__error___O-7AY", Yt = "styles-module__pairs___owGV3", Jt = "styles-module__pair___G4WFY", Qt = "styles-module__keyInput___wl1M1", es = "styles-module__valueInput___HiwJ5", ts = "styles-module__removeButton___4-X0b", ss = "styles-module__addButton___QFljt", V = {
284
+ container: Xt,
285
+ label: Ut,
286
+ error: Zt,
287
+ pairs: Yt,
288
+ pair: Jt,
289
+ keyInput: Qt,
290
+ valueInput: es,
291
+ removeButton: ts,
292
+ addButton: ss
293
+ }, ns = D(({ label: l, pairs: e, onChange: t, valueType: s = "string", keyPlaceholder: n = "Key", valuePlaceholder: r = "Value", valueArrayPlaceholder: o = "Value (comma-separated)", removeAriaLabel: c = "Remove row", addLabel: d = "Add", error: a }) => {
294
+ const u = s === "array" ? o : r, [h, m] = J(e);
295
+ K(() => {
296
+ m(e);
297
+ }, [e]);
298
+ const _ = () => {
299
+ const f = [...h, {
301
300
  key: "",
302
301
  value: s === "array" ? [] : ""
303
302
  }];
304
- _(p), e(p);
305
- }, g = (p) => {
306
- const y = h.filter((f, w) => w !== p);
307
- _(y), e(y);
308
- }, I = (p, y) => {
309
- const f = [...h];
310
- f[p] = {
311
- ...f[p],
312
- key: y
313
- }, _(f), e(f);
314
- }, b = (p, y) => {
315
- const f = [...h];
303
+ m(f), t(f);
304
+ }, v = (f) => {
305
+ const b = h.filter((y, E) => E !== f);
306
+ m(b), t(b);
307
+ }, g = (f, b) => {
308
+ const y = [...h];
309
+ y[f] = {
310
+ ...y[f],
311
+ key: b
312
+ }, m(y), t(y);
313
+ }, p = (f, b) => {
314
+ const y = [...h];
316
315
  if (s === "array") {
317
- const w = y.split(",").map((E) => E.trim()).filter((E) => E.length > 0);
318
- f[p] = {
319
- ...f[p],
320
- value: w
316
+ const E = b.split(",").map((I) => I.trim()).filter((I) => I.length > 0);
317
+ y[f] = {
318
+ ...y[f],
319
+ value: E
321
320
  };
322
- } else f[p] = {
323
- ...f[p],
324
- value: y
321
+ } else y[f] = {
322
+ ...y[f],
323
+ value: b
325
324
  };
326
- _(f), e(f);
327
- }, N = (p) => Array.isArray(p) ? p.join(", ") : p;
328
- return /* @__PURE__ */ v("div", {
329
- className: F.container,
325
+ m(y), t(y);
326
+ }, S = (f) => Array.isArray(f) ? f.join(", ") : f;
327
+ return /* @__PURE__ */ w("div", {
328
+ className: V.container,
330
329
  children: [
331
- /* @__PURE__ */ l("label", {
332
- className: F.label,
333
- children: n
330
+ /* @__PURE__ */ i("label", {
331
+ className: V.label,
332
+ children: l
334
333
  }),
335
- d && /* @__PURE__ */ l("div", {
336
- className: F.error,
337
- children: d
334
+ a && /* @__PURE__ */ i("div", {
335
+ className: V.error,
336
+ children: a
338
337
  }),
339
- /* @__PURE__ */ l("div", {
340
- className: F.pairs,
341
- children: h.map((p, y) => /* @__PURE__ */ v("div", {
342
- className: F.pair,
338
+ /* @__PURE__ */ i("div", {
339
+ className: V.pairs,
340
+ children: h.map((f, b) => /* @__PURE__ */ w("div", {
341
+ className: V.pair,
343
342
  children: [
344
- /* @__PURE__ */ l(re, {
345
- placeholder: r,
346
- value: p.key,
347
- onChange: (f) => I(y, f.target.value),
348
- className: F.keyInput
343
+ /* @__PURE__ */ i(le, {
344
+ placeholder: n,
345
+ value: f.key,
346
+ onChange: (y) => g(b, y.target.value),
347
+ className: V.keyInput
349
348
  }),
350
- /* @__PURE__ */ l(re, {
349
+ /* @__PURE__ */ i(le, {
351
350
  placeholder: u,
352
- value: N(p.value),
353
- onChange: (f) => b(y, f.target.value),
354
- className: F.valueInput
351
+ value: S(f.value),
352
+ onChange: (y) => p(b, y.target.value),
353
+ className: V.valueInput
355
354
  }),
356
- /* @__PURE__ */ l(se, {
355
+ /* @__PURE__ */ i(re, {
357
356
  type: "button",
358
357
  variant: "ghost",
359
- onClick: () => g(y),
360
- className: F.removeButton,
361
- "aria-label": o,
362
- children: /* @__PURE__ */ l(Ce, { size: 16 })
358
+ onClick: () => v(b),
359
+ className: V.removeButton,
360
+ "aria-label": c,
361
+ children: /* @__PURE__ */ i(xe, { size: 16 })
363
362
  })
364
363
  ]
365
- }, y))
364
+ }, b))
366
365
  }),
367
- /* @__PURE__ */ v(se, {
366
+ /* @__PURE__ */ w(re, {
368
367
  type: "button",
369
368
  variant: "secondary",
370
- onClick: m,
371
- className: F.addButton,
372
- children: [/* @__PURE__ */ l(Le, { size: 16 }), c]
369
+ onClick: _,
370
+ className: V.addButton,
371
+ children: [/* @__PURE__ */ i(Me, { size: 16 }), d]
373
372
  })
374
373
  ]
375
374
  });
376
375
  });
377
- ts.displayName = "KeyValueEditor";
378
- var ss = "styles-module__searchContainer___86TGN", rs = "styles-module__searchContainerFull___cEuNS", ns = "styles-module__searchIcon___ZInry", ls = "styles-module__searchInput___SqZXQ", is = "styles-module__clearBtn___7jExr", U = {
379
- searchContainer: ss,
380
- searchContainerFull: rs,
381
- searchIcon: ns,
382
- searchInput: ls,
383
- clearBtn: is
384
- }, as = z(({ value: n, onChange: t, placeholder: e, clearButtonAriaLabel: s = "Clear search", fullWidth: r = !1 }) => {
385
- const i = () => t("");
386
- return /* @__PURE__ */ v("div", {
387
- className: `${U.searchContainer} ${r ? U.searchContainerFull : ""}`.trim(),
376
+ ns.displayName = "KeyValueEditor";
377
+ var rs = "styles-module__searchContainer___86TGN", ls = "styles-module__searchContainerFull___cEuNS", is = "styles-module__searchIcon___ZInry", os = "styles-module__searchInput___SqZXQ", as = "styles-module__clearBtn___7jExr", U = {
378
+ searchContainer: rs,
379
+ searchContainerFull: ls,
380
+ searchIcon: is,
381
+ searchInput: os,
382
+ clearBtn: as
383
+ }, cs = D(({ value: l, onChange: e, placeholder: t, clearButtonAriaLabel: s = "Clear search", fullWidth: n = !1 }) => {
384
+ const r = () => e("");
385
+ return /* @__PURE__ */ w("div", {
386
+ className: `${U.searchContainer} ${n ? U.searchContainerFull : ""}`.trim(),
388
387
  children: [
389
- /* @__PURE__ */ l(Se, {
388
+ /* @__PURE__ */ i(Ce, {
390
389
  size: 18,
391
390
  className: U.searchIcon
392
391
  }),
393
- /* @__PURE__ */ l("input", {
392
+ /* @__PURE__ */ i("input", {
394
393
  type: "text",
395
- value: n,
396
- onChange: (a) => t(a.target.value),
397
- placeholder: e,
394
+ value: l,
395
+ onChange: (o) => e(o.target.value),
396
+ placeholder: t,
398
397
  className: U.searchInput
399
398
  }),
400
- n && /* @__PURE__ */ l("button", {
401
- onClick: i,
399
+ l && /* @__PURE__ */ i("button", {
400
+ onClick: r,
402
401
  className: U.clearBtn,
403
402
  "aria-label": s,
404
- children: /* @__PURE__ */ l(Ne, { size: 16 })
403
+ children: /* @__PURE__ */ i(Ee, { size: 16 })
405
404
  })
406
405
  ]
407
406
  });
408
407
  });
409
- as.displayName = "SearchInput";
410
- var os = "styles-module__container___nGxdM", ds = "styles-module__toggleContainer___VrsKI", cs = "styles-module__toggleButton___IzD6Z", us = "styles-module__enabled___cao0G", _s = "styles-module__optionsContainer___LOzlO", hs = "styles-module__option___abhnC", ms = "styles-module__active___pqmSi", A = {
411
- container: os,
412
- toggleContainer: ds,
413
- toggleButton: cs,
414
- enabled: us,
415
- optionsContainer: _s,
416
- option: hs,
417
- active: ms
418
- }, fs = z(({ value: n, onChange: t, filterEnabled: e = "Filter on", filterDisabled: s = "Filter", enableFilterAriaLabel: r = "Enable filter", disableFilterAriaLabel: i = "Disable filter", all: a = "All", show: o = "Show", hide: c = "Hide" }) => {
419
- const d = () => {
420
- t({
421
- ...n,
422
- enabled: !n.enabled
408
+ cs.displayName = "SearchInput";
409
+ var ds = "styles-module__container___nGxdM", us = "styles-module__toggleContainer___VrsKI", hs = "styles-module__toggleButton___IzD6Z", _s = "styles-module__enabled___cao0G", ms = "styles-module__optionsContainer___LOzlO", fs = "styles-module__option___abhnC", ps = "styles-module__active___pqmSi", W = {
410
+ container: ds,
411
+ toggleContainer: us,
412
+ toggleButton: hs,
413
+ enabled: _s,
414
+ optionsContainer: ms,
415
+ option: fs,
416
+ active: ps
417
+ }, vs = D(({ value: l, onChange: e, filterEnabled: t = "Filter on", filterDisabled: s = "Filter", enableFilterAriaLabel: n = "Enable filter", disableFilterAriaLabel: r = "Disable filter", all: o = "All", show: c = "Show", hide: d = "Hide" }) => {
418
+ const a = () => {
419
+ e({
420
+ ...l,
421
+ enabled: !l.enabled
423
422
  });
424
423
  }, u = (h) => {
425
- t({
426
- ...n,
424
+ e({
425
+ ...l,
427
426
  value: h
428
427
  });
429
428
  };
430
- return /* @__PURE__ */ v("div", {
431
- className: A.container,
432
- children: [/* @__PURE__ */ l("div", {
433
- className: A.toggleContainer,
434
- children: /* @__PURE__ */ v("button", {
429
+ return /* @__PURE__ */ w("div", {
430
+ className: W.container,
431
+ children: [/* @__PURE__ */ i("div", {
432
+ className: W.toggleContainer,
433
+ children: /* @__PURE__ */ w("button", {
435
434
  type: "button",
436
- className: `${A.toggleButton} ${n.enabled ? A.enabled : ""}`,
437
- onClick: d,
438
- "aria-label": n.enabled ? i : r,
439
- children: [/* @__PURE__ */ l(be, { size: 16 }), /* @__PURE__ */ l("span", { children: n.enabled ? e : s })]
435
+ className: `${W.toggleButton} ${l.enabled ? W.enabled : ""}`,
436
+ onClick: a,
437
+ "aria-label": l.enabled ? r : n,
438
+ children: [/* @__PURE__ */ i(we, { size: 16 }), /* @__PURE__ */ i("span", { children: l.enabled ? t : s })]
440
439
  })
441
- }), n.enabled && /* @__PURE__ */ v("div", {
442
- className: A.optionsContainer,
440
+ }), l.enabled && /* @__PURE__ */ w("div", {
441
+ className: W.optionsContainer,
443
442
  children: [
444
- /* @__PURE__ */ l("button", {
443
+ /* @__PURE__ */ i("button", {
445
444
  type: "button",
446
- className: `${A.option} ${n.value === null ? A.active : ""}`,
445
+ className: `${W.option} ${l.value === null ? W.active : ""}`,
447
446
  onClick: () => u(null),
448
- children: a
447
+ children: o
449
448
  }),
450
- /* @__PURE__ */ v("button", {
449
+ /* @__PURE__ */ w("button", {
451
450
  type: "button",
452
- className: `${A.option} ${n.value === !0 ? A.active : ""}`,
451
+ className: `${W.option} ${l.value === !0 ? W.active : ""}`,
453
452
  onClick: () => u(!0),
454
- children: [/* @__PURE__ */ l(ge, { size: 16 }), /* @__PURE__ */ l("span", { children: o })]
453
+ children: [/* @__PURE__ */ i(Se, { size: 16 }), /* @__PURE__ */ i("span", { children: c })]
455
454
  }),
456
- /* @__PURE__ */ v("button", {
455
+ /* @__PURE__ */ w("button", {
457
456
  type: "button",
458
- className: `${A.option} ${n.value === !1 ? A.active : ""}`,
457
+ className: `${W.option} ${l.value === !1 ? W.active : ""}`,
459
458
  onClick: () => u(!1),
460
- children: [/* @__PURE__ */ l(ye, { size: 16 }), /* @__PURE__ */ l("span", { children: c })]
459
+ children: [/* @__PURE__ */ i(be, { size: 16 }), /* @__PURE__ */ i("span", { children: d })]
461
460
  })
462
461
  ]
463
462
  })]
464
463
  });
465
464
  });
466
- fs.displayName = "ShowFilter";
467
- var ps = "styles-module__nbSelect___KjxSc", vs = "styles-module__selectButton___AKZe4", ys = "styles-module__primary___HU36a", gs = "styles-module__open___9AKMb", bs = "styles-module__buttonText___QSLO1", ws = "styles-module__chevronIcon___qAHaD", Ns = "styles-module__optionsPanel___NWAp3", Is = "styles-module__expandDown___eD4lh", Ss = "styles-module__closed___bez-q", Cs = "styles-module__collapseUp___dt1E7", Es = "styles-module__optionsList___AxhVp", xs = "styles-module__option___t1SSw", Ls = "styles-module__selected___azD4A", T = {
468
- nbSelect: ps,
469
- selectButton: vs,
470
- primary: ys,
471
- open: gs,
465
+ vs.displayName = "ShowFilter";
466
+ var gs = "styles-module__nbSelect___KjxSc", ys = "styles-module__selectButton___AKZe4", bs = "styles-module__primary___HU36a", Ss = "styles-module__open___9AKMb", ws = "styles-module__buttonText___QSLO1", Is = "styles-module__chevronIcon___qAHaD", Es = "styles-module__optionsPanel___NWAp3", Ns = "styles-module__expandDown___eD4lh", Cs = "styles-module__closed___bez-q", xs = "styles-module__collapseUp___dt1E7", Os = "styles-module__optionsList___AxhVp", Ts = "styles-module__option___t1SSw", Ms = "styles-module__selected___azD4A", R = {
467
+ nbSelect: gs,
468
+ selectButton: ys,
469
+ primary: bs,
470
+ open: Ss,
472
471
  default: "styles-module__default___LedYP",
473
- buttonText: bs,
474
- chevronIcon: ws,
475
- optionsPanel: Ns,
476
- expandDown: Is,
477
- closed: Ss,
478
- collapseUp: Cs,
479
- optionsList: Es,
480
- option: xs,
481
- selected: Ls
482
- }, $s = ({ value: n, options: t, getDisplayName: e, onChange: s, status: r = "primary" }) => {
483
- const [i, a] = Z(!1), o = te(null);
484
- H(() => {
485
- const d = (u) => {
486
- o.current && !o.current.contains(u.target) && a(!1);
472
+ buttonText: ws,
473
+ chevronIcon: Is,
474
+ optionsPanel: Es,
475
+ expandDown: Ns,
476
+ closed: Cs,
477
+ collapseUp: xs,
478
+ optionsList: Os,
479
+ option: Ts,
480
+ selected: Ms
481
+ }, zs = ({ value: l, options: e, getDisplayName: t, onChange: s, status: n = "primary" }) => {
482
+ const [r, o] = J(!1), c = te(null);
483
+ K(() => {
484
+ const a = (u) => {
485
+ c.current && !c.current.contains(u.target) && o(!1);
487
486
  };
488
- return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
487
+ return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
489
488
  }, []);
490
- const c = (d) => {
491
- s(d), a(!1);
489
+ const d = (a) => {
490
+ s(a), o(!1);
492
491
  };
493
- return /* @__PURE__ */ v("div", {
494
- className: T.nbSelect,
495
- ref: o,
496
- children: [/* @__PURE__ */ v("button", {
492
+ return /* @__PURE__ */ w("div", {
493
+ className: R.nbSelect,
494
+ ref: c,
495
+ children: [/* @__PURE__ */ w("button", {
497
496
  type: "button",
498
- className: `${T.selectButton} ${T[r]}`,
499
- onClick: () => a(!i),
500
- "aria-expanded": i,
497
+ className: `${R.selectButton} ${R[n]}`,
498
+ onClick: () => o(!r),
499
+ "aria-expanded": r,
501
500
  "aria-haspopup": "listbox",
502
- children: [/* @__PURE__ */ l("span", {
503
- className: T.buttonText,
504
- children: e(n)
505
- }), /* @__PURE__ */ l("svg", {
506
- className: `${T.chevronIcon} ${i ? T.open : ""}`,
501
+ children: [/* @__PURE__ */ i("span", {
502
+ className: R.buttonText,
503
+ children: t(l)
504
+ }), /* @__PURE__ */ i("svg", {
505
+ className: `${R.chevronIcon} ${r ? R.open : ""}`,
507
506
  width: "16",
508
507
  height: "16",
509
508
  viewBox: "0 0 24 24",
510
509
  fill: "none",
511
510
  stroke: "currentColor",
512
511
  strokeWidth: "2",
513
- children: /* @__PURE__ */ l("path", {
512
+ children: /* @__PURE__ */ i("path", {
514
513
  d: "m6 9 6 6 6-6",
515
514
  strokeLinecap: "round",
516
515
  strokeLinejoin: "round"
517
516
  })
518
517
  })]
519
- }), /* @__PURE__ */ l("div", {
520
- className: `${T.optionsPanel} ${T[r]} ${i ? T.open : T.closed}`,
518
+ }), /* @__PURE__ */ i("div", {
519
+ className: `${R.optionsPanel} ${R[n]} ${r ? R.open : R.closed}`,
521
520
  role: "listbox",
522
- children: /* @__PURE__ */ l("ul", {
523
- className: T.optionsList,
524
- children: t.map((d) => /* @__PURE__ */ v("li", {
525
- className: `${T.option} ${d === n ? T.selected : ""}`,
526
- onClick: () => c(d),
521
+ children: /* @__PURE__ */ i("ul", {
522
+ className: R.optionsList,
523
+ children: e.map((a) => /* @__PURE__ */ w("li", {
524
+ className: `${R.option} ${a === l ? R.selected : ""}`,
525
+ onClick: () => d(a),
527
526
  role: "option",
528
- "aria-selected": d === n,
529
- children: [/* @__PURE__ */ l("span", { children: e(d) }), d === n && /* @__PURE__ */ l("svg", {
527
+ "aria-selected": a === l,
528
+ children: [/* @__PURE__ */ i("span", { children: t(a) }), a === l && /* @__PURE__ */ i("svg", {
530
529
  width: "16",
531
530
  height: "16",
532
531
  viewBox: "0 0 24 24",
533
532
  fill: "none",
534
533
  stroke: "currentColor",
535
534
  strokeWidth: "2",
536
- children: /* @__PURE__ */ l("path", {
535
+ children: /* @__PURE__ */ i("path", {
537
536
  d: "M20 6L9 17l-5-5",
538
537
  strokeLinecap: "round",
539
538
  strokeLinejoin: "round"
540
539
  })
541
540
  })]
542
- }, d))
541
+ }, a))
543
542
  })
544
543
  })]
545
544
  });
546
- }, ne = z($s);
547
- ne.displayName = "SlideDownSwitcher";
548
- var Ms = z(({ status: n = "primary", getThemeDisplayName: t, handleChangeTheme: e }) => {
549
- const { themeName: s, setTheme: r, availableThemes: i } = Me();
550
- return /* @__PURE__ */ l(ne, {
545
+ }, ie = D(zs);
546
+ ie.displayName = "SlideDownSwitcher";
547
+ var $s = D(({ status: l = "primary", getThemeDisplayName: e, handleChangeTheme: t }) => {
548
+ const { themeName: s, setTheme: n, availableThemes: r } = $e();
549
+ return /* @__PURE__ */ i(ie, {
551
550
  value: s,
552
- options: i,
553
- getDisplayName: t ?? ((c) => c),
554
- onChange: (c) => {
555
- r(c), e?.(c);
551
+ options: r,
552
+ getDisplayName: e ?? ((d) => d),
553
+ onChange: (d) => {
554
+ n(d), t?.(d);
556
555
  },
557
- status: n
556
+ status: l
558
557
  });
559
558
  });
560
- Ms.displayName = "ThemeSwitcher";
561
- var Os = z(({ status: n = "primary", getLayoutDisplayName: t, handleChangeLayoutMode: e }) => {
562
- const { layoutMode: s, setLayoutMode: r } = De();
563
- return /* @__PURE__ */ l(ne, {
559
+ $s.displayName = "ThemeSwitcher";
560
+ var Ls = D(({ status: l = "primary", getLayoutDisplayName: e, handleChangeLayoutMode: t }) => {
561
+ const { layoutMode: s, setLayoutMode: n } = De();
562
+ return /* @__PURE__ */ i(ie, {
564
563
  value: s,
565
- options: Oe,
566
- getDisplayName: t ?? ((o) => o),
567
- onChange: (o) => {
568
- r(o), e?.(o);
564
+ options: Le,
565
+ getDisplayName: e ?? ((c) => c),
566
+ onChange: (c) => {
567
+ n(c), t?.(c);
569
568
  },
570
- status: n
569
+ status: l
571
570
  });
572
571
  });
573
- Os.displayName = "LayoutSwitcher";
574
- var Ds = "styles-module__sliderContainer___lgpaD", Rs = "styles-module__fullWidth___ZS8W5", zs = "styles-module__labelRow___dkVVM", Ts = "styles-module__label___bXGZs", Ws = "styles-module__required___FuyfE", As = "styles-module__sliderWrapper___1Wdti", ks = "styles-module__sliderRoot___yzOjR", Bs = "styles-module__sliderTrackWrapper___N72WQ", Fs = "styles-module__sliderTrack___AltcD", Vs = "styles-module__sliderRange___U3g0-", js = "styles-module__valueIndicator___aLf0I", qs = "styles-module__iconWrapper___wL-b8", Ps = "styles-module__icon___vHsID", Hs = "styles-module__errorMessage___qFgGe", Gs = "styles-module__helperText___tgBGl", M = {
572
+ Ls.displayName = "LayoutSwitcher";
573
+ var Ds = "styles-module__sliderContainer___lgpaD", As = "styles-module__fullWidth___ZS8W5", Rs = "styles-module__labelRow___dkVVM", ks = "styles-module__label___bXGZs", Ws = "styles-module__required___FuyfE", Fs = "styles-module__sliderWrapper___1Wdti", Vs = "styles-module__sliderRoot___yzOjR", Bs = "styles-module__sliderTrackWrapper___N72WQ", js = "styles-module__sliderTrack___AltcD", Ps = "styles-module__sliderRange___U3g0-", qs = "styles-module__valueIndicator___aLf0I", Ks = "styles-module__iconWrapper___wL-b8", Gs = "styles-module__icon___vHsID", Hs = "styles-module__errorMessage___qFgGe", Xs = "styles-module__helperText___tgBGl", M = {
575
574
  sliderContainer: Ds,
576
- fullWidth: Rs,
577
- labelRow: zs,
578
- label: Ts,
575
+ fullWidth: As,
576
+ labelRow: Rs,
577
+ label: ks,
579
578
  required: Ws,
580
- sliderWrapper: As,
581
- sliderRoot: ks,
579
+ sliderWrapper: Fs,
580
+ sliderRoot: Vs,
582
581
  sliderTrackWrapper: Bs,
583
- sliderTrack: Fs,
584
- sliderRange: Vs,
585
- valueIndicator: js,
586
- iconWrapper: qs,
587
- icon: Ps,
582
+ sliderTrack: js,
583
+ sliderRange: Ps,
584
+ valueIndicator: qs,
585
+ iconWrapper: Ks,
586
+ icon: Gs,
588
587
  errorMessage: Hs,
589
- helperText: Gs
590
- }, oe = 50, Ks = z(ee(({ value: n, onChange: t, min: e = 0, max: s = 10, step: r = 1, showValue: i = !0, fullWidth: a = !1, label: o, error: c, helperText: d, required: u = !1, className: h = "", ..._ }, m) => {
591
- const [g, I] = Z(n), b = te(null), [N, p] = Z("middle"), y = ae(0), f = ae(0);
592
- H(() => {
593
- I(n);
594
- }, [n]), Fe(y, "change", (S) => {
595
- if (b.current) {
596
- const { left: x, right: O } = b.current.getBoundingClientRect();
597
- let $;
598
- S < x ? (p("left"), $ = x - S) : S > O ? (p("right"), $ = S - O) : (p("middle"), $ = 0), f.jump(Xs($, oe));
588
+ helperText: Xs
589
+ }, de = 50, Us = D(ee(({ value: l, onChange: e, min: t = 0, max: s = 10, step: n = 1, showValue: r = !0, fullWidth: o = !1, label: c, error: d, helperText: a, required: u = !1, className: h = "", ...m }, _) => {
590
+ const [v, g] = J(l), p = te(null), [S, f] = J("middle"), b = ce(0), y = ce(0);
591
+ K(() => {
592
+ g(l);
593
+ }, [l]), je(b, "change", (N) => {
594
+ if (p.current) {
595
+ const { left: x, right: z } = p.current.getBoundingClientRect();
596
+ let T;
597
+ N < x ? (f("left"), T = x - N) : N > z ? (f("right"), T = N - z) : (f("middle"), T = 0), y.jump(Zs(T, de));
599
598
  }
600
599
  });
601
- const w = (S) => {
602
- if (S.buttons > 0 && b.current) {
603
- const { left: x, width: O } = b.current.getBoundingClientRect();
604
- let $ = e + (S.clientX - x) / O * (s - e);
605
- r > 0 && ($ = Math.round($ / r) * r), $ = Math.min(Math.max($, e), s), I($), t($), y.jump(S.clientX);
600
+ const E = (N) => {
601
+ if (N.buttons > 0 && p.current) {
602
+ const { left: x, width: z } = p.current.getBoundingClientRect();
603
+ let T = t + (N.clientX - x) / z * (s - t);
604
+ n > 0 && (T = Math.round(T / n) * n), T = Math.min(Math.max(T, t), s), g(T), e(T), b.jump(N.clientX);
606
605
  }
607
- }, E = (S) => {
608
- w(S), S.currentTarget.setPointerCapture(S.pointerId);
609
- }, k = () => {
610
- Be(f, 0, {
606
+ }, I = (N) => {
607
+ E(N), N.currentTarget.setPointerCapture(N.pointerId);
608
+ }, A = () => {
609
+ Be(y, 0, {
611
610
  type: "spring",
612
611
  bounce: 0.5
613
612
  });
614
613
  }, G = () => {
615
- const S = s - e;
616
- return S === 0 ? 0 : (g - e) / S * 100;
614
+ const N = s - t;
615
+ return N === 0 ? 0 : (v - t) / N * 100;
617
616
  };
618
- return /* @__PURE__ */ v("div", {
619
- ref: m,
617
+ return /* @__PURE__ */ w("div", {
618
+ ref: _,
620
619
  className: [
621
620
  M.sliderContainer,
622
- a && M.fullWidth,
621
+ o && M.fullWidth,
623
622
  h
624
623
  ].filter(Boolean).join(" "),
625
- ..._,
624
+ ...m,
626
625
  children: [
627
- o && /* @__PURE__ */ l("div", {
626
+ c && /* @__PURE__ */ i("div", {
628
627
  className: M.labelRow,
629
- children: /* @__PURE__ */ v("label", {
628
+ children: /* @__PURE__ */ w("label", {
630
629
  className: M.label,
631
- children: [o, u && /* @__PURE__ */ l("span", {
630
+ children: [c, u && /* @__PURE__ */ i("span", {
632
631
  className: M.required,
633
632
  children: "*"
634
633
  })]
635
634
  })
636
635
  }),
637
- /* @__PURE__ */ v(K.div, {
636
+ /* @__PURE__ */ w(H.div, {
638
637
  className: M.sliderWrapper,
639
638
  children: [
640
- /* @__PURE__ */ l(K.div, {
639
+ /* @__PURE__ */ i(H.div, {
641
640
  animate: {
642
- scale: N === "left" ? [
641
+ scale: S === "left" ? [
643
642
  1,
644
643
  1.4,
645
644
  1
646
645
  ] : 1,
647
646
  transition: { duration: 0.25 }
648
647
  },
649
- style: { x: X(() => N === "left" ? -f.get() : 0) },
648
+ style: { x: X(() => S === "left" ? -y.get() : 0) },
650
649
  className: M.iconWrapper,
651
- children: /* @__PURE__ */ l(Ee, {
650
+ children: /* @__PURE__ */ i(Oe, {
652
651
  size: 20,
653
652
  className: M.icon
654
653
  })
655
654
  }),
656
- /* @__PURE__ */ l("div", {
657
- ref: b,
655
+ /* @__PURE__ */ i("div", {
656
+ ref: p,
658
657
  className: M.sliderRoot,
659
- onPointerMove: w,
660
- onPointerDown: E,
661
- onPointerUp: k,
662
- children: /* @__PURE__ */ l(K.div, {
658
+ onPointerMove: E,
659
+ onPointerDown: I,
660
+ onPointerUp: A,
661
+ children: /* @__PURE__ */ i(H.div, {
663
662
  style: {
664
663
  scaleX: X(() => {
665
- if (b.current) {
666
- const { width: S } = b.current.getBoundingClientRect();
667
- return 1 + f.get() / S;
664
+ if (p.current) {
665
+ const { width: N } = p.current.getBoundingClientRect();
666
+ return 1 + y.get() / N;
668
667
  }
669
668
  return 1;
670
669
  }),
671
- scaleY: X(f, [0, oe], [1, 0.8]),
670
+ scaleY: X(y, [0, de], [1, 0.8]),
672
671
  transformOrigin: X(() => {
673
- if (b.current) {
674
- const { left: S, width: x } = b.current.getBoundingClientRect();
675
- return y.get() < S + x / 2 ? "right" : "left";
672
+ if (p.current) {
673
+ const { left: N, width: x } = p.current.getBoundingClientRect();
674
+ return b.get() < N + x / 2 ? "right" : "left";
676
675
  }
677
676
  return "center";
678
677
  })
679
678
  },
680
679
  className: M.sliderTrackWrapper,
681
- children: /* @__PURE__ */ l("div", {
680
+ children: /* @__PURE__ */ i("div", {
682
681
  className: M.sliderTrack,
683
- children: /* @__PURE__ */ l(K.div, {
682
+ children: /* @__PURE__ */ i(H.div, {
684
683
  className: M.sliderRange,
685
684
  initial: !1,
686
685
  animate: { width: `${G()}%` },
@@ -693,75 +692,75 @@ var Ds = "styles-module__sliderContainer___lgpaD", Rs = "styles-module__fullWidt
693
692
  })
694
693
  })
695
694
  }),
696
- /* @__PURE__ */ l(K.div, {
695
+ /* @__PURE__ */ i(H.div, {
697
696
  animate: {
698
- scale: N === "right" ? [
697
+ scale: S === "right" ? [
699
698
  1,
700
699
  1.4,
701
700
  1
702
701
  ] : 1,
703
702
  transition: { duration: 0.25 }
704
703
  },
705
- style: { x: X(() => N === "right" ? f.get() : 0) },
704
+ style: { x: X(() => S === "right" ? y.get() : 0) },
706
705
  className: M.iconWrapper,
707
- children: /* @__PURE__ */ l(Ie, {
706
+ children: /* @__PURE__ */ i(Ne, {
708
707
  size: 20,
709
708
  className: M.icon
710
709
  })
711
710
  }),
712
- i && !o && /* @__PURE__ */ l("span", {
711
+ r && !c && /* @__PURE__ */ i("span", {
713
712
  className: M.valueIndicator,
714
- children: Math.round(g)
713
+ children: Math.round(v)
715
714
  })
716
715
  ]
717
716
  }),
718
- c && /* @__PURE__ */ l("p", {
717
+ d && /* @__PURE__ */ i("p", {
719
718
  className: M.errorMessage,
720
- children: c
719
+ children: d
721
720
  }),
722
- d && !c && /* @__PURE__ */ l("p", {
721
+ a && !d && /* @__PURE__ */ i("p", {
723
722
  className: M.helperText,
724
- children: d
723
+ children: a
725
724
  })
726
725
  ]
727
726
  });
728
727
  }));
729
- function Xs(n, t) {
730
- if (t === 0) return 0;
731
- const e = n / t;
732
- return 2 * (1 / (1 + Math.exp(-e)) - 0.5) * t;
728
+ function Zs(l, e) {
729
+ if (e === 0) return 0;
730
+ const t = l / e;
731
+ return 2 * (1 / (1 + Math.exp(-t)) - 0.5) * e;
733
732
  }
734
- Ks.displayName = "Slider";
735
- var Us = "styles-module__loadingContainer___OMgwS", Zs = "styles-module__loadingText___KRZqR", Ys = "styles-module__errorContainer___qhAg2", Qs = "styles-module__errorIconWrapper___IHZrN", Js = "styles-module__pulse___Lju-z", er = "styles-module__errorIcon___oGDIP", tr = "styles-module__errorContent___F55rQ", sr = "styles-module__errorTitle___hC8D-", rr = "styles-module__errorDescription___hZtuP", nr = "styles-module__errorDetailsWrapper___-sp8b", lr = "styles-module__errorDetailsContainer___eywMo", ir = "styles-module__errorDetailsSummary___hGEoD", ar = "styles-module__errorDetails___tzCT-", or = "styles-module__errorActions___gtqYw", dr = "styles-module__retryButton___TA4jm", cr = "styles-module__retryButtonIcon___vzfp-", ur = "styles-module__clearLocalDataButton___T3B-K", D = {
736
- loadingContainer: Us,
737
- loadingText: Zs,
738
- errorContainer: Ys,
739
- errorIconWrapper: Qs,
740
- pulse: Js,
741
- errorIcon: er,
742
- errorContent: tr,
743
- errorTitle: sr,
744
- errorDescription: rr,
745
- errorDetailsWrapper: nr,
746
- errorDetailsContainer: lr,
747
- errorDetailsSummary: ir,
748
- errorDetails: ar,
749
- errorActions: or,
750
- retryButton: dr,
751
- retryButtonIcon: cr,
752
- clearLocalDataButton: ur
753
- }, _r = class extends Te {
733
+ Us.displayName = "Slider";
734
+ var Ys = "styles-module__loadingContainer___OMgwS", Js = "styles-module__loadingText___KRZqR", Qs = "styles-module__errorContainer___qhAg2", en = "styles-module__errorIconWrapper___IHZrN", tn = "styles-module__pulse___Lju-z", sn = "styles-module__errorIcon___oGDIP", nn = "styles-module__errorContent___F55rQ", rn = "styles-module__errorTitle___hC8D-", ln = "styles-module__errorDescription___hZtuP", on = "styles-module__errorDetailsWrapper___-sp8b", an = "styles-module__errorDetailsContainer___eywMo", cn = "styles-module__errorDetailsSummary___hGEoD", dn = "styles-module__errorDetails___tzCT-", un = "styles-module__errorActions___gtqYw", hn = "styles-module__retryButton___TA4jm", _n = "styles-module__retryButtonIcon___vzfp-", mn = "styles-module__clearLocalDataButton___T3B-K", $ = {
735
+ loadingContainer: Ys,
736
+ loadingText: Js,
737
+ errorContainer: Qs,
738
+ errorIconWrapper: en,
739
+ pulse: tn,
740
+ errorIcon: sn,
741
+ errorContent: nn,
742
+ errorTitle: rn,
743
+ errorDescription: ln,
744
+ errorDetailsWrapper: on,
745
+ errorDetailsContainer: an,
746
+ errorDetailsSummary: cn,
747
+ errorDetails: dn,
748
+ errorActions: un,
749
+ retryButton: hn,
750
+ retryButtonIcon: _n,
751
+ clearLocalDataButton: mn
752
+ }, fn = class extends ke {
754
753
  state = {
755
754
  hasError: !1,
756
755
  error: null
757
756
  };
758
- static getDerivedStateFromError(n) {
757
+ static getDerivedStateFromError(l) {
759
758
  return {
760
759
  hasError: !0,
761
- error: n
760
+ error: l
762
761
  };
763
762
  }
764
- componentDidCatch(n) {
763
+ componentDidCatch(l) {
765
764
  }
766
765
  handleReset = () => {
767
766
  this.setState({
@@ -777,398 +776,417 @@ var Us = "styles-module__loadingContainer___OMgwS", Zs = "styles-module__loading
777
776
  retry: this.handleReset
778
777
  }) : this.props.children;
779
778
  }
780
- }, he = z(({ fallback: n, loadingType: t = "ecg", loadingShape: e = "square", loadingText: s = "Loading...", loadingSize: r = "medium", loadingContainerClassName: i, loadingTextClassName: a, loadingClassName: o }) => {
781
- if (n) return /* @__PURE__ */ l(_e, { children: n });
782
- const c = () => {
783
- switch (t) {
779
+ }, me = D(({ fallback: l, loadingType: e = "ecg", loadingShape: t = "square", loadingText: s = "Loading...", loadingSize: n = "medium", loadingContainerClassName: r, loadingTextClassName: o, loadingClassName: c }) => {
780
+ if (l) return /* @__PURE__ */ i(_e, { children: l });
781
+ const d = () => {
782
+ switch (e) {
784
783
  case "ecg":
785
- return /* @__PURE__ */ l(ie, {
786
- size: r,
787
- className: o
784
+ return /* @__PURE__ */ i(ae, {
785
+ size: n,
786
+ className: c
788
787
  });
789
788
  case "truck":
790
- return /* @__PURE__ */ l(Re, {
791
- size: r,
792
- className: o
789
+ return /* @__PURE__ */ i(Ae, {
790
+ size: n,
791
+ className: c
793
792
  });
794
793
  case "bounce":
795
- return /* @__PURE__ */ l(ze, {
796
- size: r,
797
- shape: e,
798
- className: o
794
+ return /* @__PURE__ */ i(Re, {
795
+ size: n,
796
+ shape: t,
797
+ className: c
799
798
  });
800
799
  default:
801
- return /* @__PURE__ */ l(ie, {
802
- size: r,
803
- className: o
800
+ return /* @__PURE__ */ i(ae, {
801
+ size: n,
802
+ className: c
804
803
  });
805
804
  }
806
805
  };
807
- return /* @__PURE__ */ v("div", {
808
- className: `${D.loadingContainer} ${i || ""}`,
809
- children: [c(), /* @__PURE__ */ l("p", {
810
- className: `${D.loadingText} ${a || ""}`,
806
+ return /* @__PURE__ */ w("div", {
807
+ className: `${$.loadingContainer} ${r || ""}`,
808
+ children: [d(), /* @__PURE__ */ i("p", {
809
+ className: `${$.loadingText} ${o || ""}`,
811
810
  children: s
812
811
  })]
813
812
  });
814
813
  });
815
- he.displayName = "LoadingFallback";
816
- var me = z(({ error: n, retry: t, errorFallback: e, errorTitle: s = "Error", errorDescription: r = "Something went wrong. Please try again.", retryText: i = "Retry", errorDetailsText: a = "Details", clearLocalDataText: o = "Clear local data", onClearLocalData: c, errorContainerClassName: d, errorDetailsClassName: u, showErrorDetails: h = !1 }) => {
817
- const _ = () => {
814
+ me.displayName = "LoadingFallback";
815
+ var fe = D(({ error: l, retry: e, errorFallback: t, errorTitle: s = "Error", errorDescription: n = "Something went wrong. Please try again.", retryText: r = "Retry", errorDetailsText: o = "Details", clearLocalDataText: c = "Clear local data", onClearLocalData: d, errorContainerClassName: a, errorDetailsClassName: u, showErrorDetails: h = !1 }) => {
816
+ const m = () => {
818
817
  try {
819
818
  sessionStorage.clear();
820
819
  } catch {
821
820
  } finally {
822
- c?.();
821
+ d?.();
823
822
  }
824
823
  };
825
- return e ? /* @__PURE__ */ l(_e, { children: e({
826
- error: n,
827
- retry: t
828
- }) }) : /* @__PURE__ */ v("div", {
829
- className: `${D.errorContainer} ${d || ""}`,
830
- children: [/* @__PURE__ */ l("div", {
831
- className: D.errorIconWrapper,
832
- children: /* @__PURE__ */ l(xe, {
833
- className: D.errorIcon,
824
+ return t ? /* @__PURE__ */ i(_e, { children: t({
825
+ error: l,
826
+ retry: e
827
+ }) }) : /* @__PURE__ */ w("div", {
828
+ className: `${$.errorContainer} ${a || ""}`,
829
+ children: [/* @__PURE__ */ i("div", {
830
+ className: $.errorIconWrapper,
831
+ children: /* @__PURE__ */ i(Te, {
832
+ className: $.errorIcon,
834
833
  size: 64
835
834
  })
836
- }), /* @__PURE__ */ v("div", {
837
- className: D.errorContent,
835
+ }), /* @__PURE__ */ w("div", {
836
+ className: $.errorContent,
838
837
  children: [
839
- /* @__PURE__ */ l("h3", {
840
- className: D.errorTitle,
838
+ /* @__PURE__ */ i("h3", {
839
+ className: $.errorTitle,
841
840
  children: s
842
841
  }),
843
- /* @__PURE__ */ l("p", {
844
- className: D.errorDescription,
845
- children: r
842
+ /* @__PURE__ */ i("p", {
843
+ className: $.errorDescription,
844
+ children: n
846
845
  }),
847
- h && n && /* @__PURE__ */ l("div", {
848
- className: D.errorDetailsWrapper,
849
- children: /* @__PURE__ */ v("details", {
850
- className: D.errorDetailsContainer,
851
- children: [/* @__PURE__ */ l("summary", {
852
- className: D.errorDetailsSummary,
853
- children: a
854
- }), /* @__PURE__ */ l("pre", {
855
- className: `${D.errorDetails} ${u || ""}`,
856
- children: n.message
846
+ h && l && /* @__PURE__ */ i("div", {
847
+ className: $.errorDetailsWrapper,
848
+ children: /* @__PURE__ */ w("details", {
849
+ className: $.errorDetailsContainer,
850
+ children: [/* @__PURE__ */ i("summary", {
851
+ className: $.errorDetailsSummary,
852
+ children: o
853
+ }), /* @__PURE__ */ i("pre", {
854
+ className: `${$.errorDetails} ${u || ""}`,
855
+ children: l.message
857
856
  })]
858
857
  })
859
858
  }),
860
- /* @__PURE__ */ v("div", {
861
- className: D.errorActions,
862
- children: [/* @__PURE__ */ v("button", {
859
+ /* @__PURE__ */ w("div", {
860
+ className: $.errorActions,
861
+ children: [/* @__PURE__ */ w("button", {
863
862
  type: "button",
864
- className: D.retryButton,
865
- onClick: t,
866
- children: [/* @__PURE__ */ l("span", {
867
- className: D.retryButtonIcon,
863
+ className: $.retryButton,
864
+ onClick: e,
865
+ children: [/* @__PURE__ */ i("span", {
866
+ className: $.retryButtonIcon,
868
867
  children: "↻"
869
- }), /* @__PURE__ */ l("span", { children: i })]
870
- }), /* @__PURE__ */ l("button", {
868
+ }), /* @__PURE__ */ i("span", { children: r })]
869
+ }), /* @__PURE__ */ i("button", {
871
870
  type: "button",
872
- className: D.clearLocalDataButton,
873
- onClick: _,
874
- children: /* @__PURE__ */ l("span", { children: o })
871
+ className: $.clearLocalDataButton,
872
+ onClick: m,
873
+ children: /* @__PURE__ */ i("span", { children: c })
875
874
  })]
876
875
  })
877
876
  ]
878
877
  })]
879
878
  });
880
879
  });
881
- me.displayName = "ErrorFallback";
882
- var hr = z(({ fallback: n, test: t, loadingType: e = "ecg", loadingShape: s = "square", loadingClassName: r, loadingText: i, loadingSize: a = "medium", loadingContainerClassName: o, loadingTextClassName: c, children: d, errorFallback: u, errorTitle: h, errorDescription: _, retryText: m, errorDetailsText: g, clearLocalDataText: I, onClearLocalData: b, errorContainerClassName: N, errorDetailsClassName: p, showErrorDetails: y = !1, ...f }) => /* @__PURE__ */ l(Ve, {
883
- ...f,
884
- children: ({ reset: w }) => /* @__PURE__ */ l(_r, {
885
- onReset: w,
886
- fallbackRender: ({ error: E, retry: k }) => /* @__PURE__ */ l(me, {
887
- error: E,
888
- retry: k,
880
+ fe.displayName = "ErrorFallback";
881
+ var pn = D(({ fallback: l, test: e, loadingType: t = "ecg", loadingShape: s = "square", loadingClassName: n, loadingText: r, loadingSize: o = "medium", loadingContainerClassName: c, loadingTextClassName: d, children: a, errorFallback: u, errorTitle: h, errorDescription: m, retryText: _, errorDetailsText: v, clearLocalDataText: g, onClearLocalData: p, errorContainerClassName: S, errorDetailsClassName: f, showErrorDetails: b = !1, ...y }) => /* @__PURE__ */ i(Pe, {
882
+ ...y,
883
+ children: ({ reset: E }) => /* @__PURE__ */ i(fn, {
884
+ onReset: E,
885
+ fallbackRender: ({ error: I, retry: A }) => /* @__PURE__ */ i(fe, {
886
+ error: I,
887
+ retry: A,
889
888
  errorFallback: u,
890
889
  errorTitle: h,
891
- errorDescription: _,
892
- retryText: m,
893
- errorDetailsText: g,
894
- clearLocalDataText: I,
895
- onClearLocalData: b,
896
- errorContainerClassName: N,
897
- errorDetailsClassName: p,
898
- showErrorDetails: y
890
+ errorDescription: m,
891
+ retryText: _,
892
+ errorDetailsText: v,
893
+ clearLocalDataText: g,
894
+ onClearLocalData: p,
895
+ errorContainerClassName: S,
896
+ errorDetailsClassName: f,
897
+ showErrorDetails: b
899
898
  }),
900
- children: /* @__PURE__ */ l(We, {
901
- fallback: /* @__PURE__ */ l(he, {
902
- fallback: n,
903
- loadingType: e,
899
+ children: /* @__PURE__ */ i(We, {
900
+ fallback: /* @__PURE__ */ i(me, {
901
+ fallback: l,
902
+ loadingType: t,
904
903
  loadingShape: s,
905
- loadingText: i,
906
- loadingSize: a,
907
- loadingContainerClassName: o,
908
- loadingTextClassName: c,
909
- loadingClassName: r
904
+ loadingText: r,
905
+ loadingSize: o,
906
+ loadingContainerClassName: c,
907
+ loadingTextClassName: d,
908
+ loadingClassName: n
910
909
  }),
911
- ...f,
912
- children: t ? /* @__PURE__ */ l(mr, {}) : d
910
+ ...y,
911
+ children: e ? /* @__PURE__ */ i(vn, {}) : a
913
912
  })
914
913
  })
915
914
  }));
916
- hr.displayName = "Suspense";
917
- var mr = () => {
915
+ pn.displayName = "Suspense";
916
+ var vn = () => {
918
917
  throw new Promise(() => {
919
918
  });
920
- }, fr = "styles-module__wrapper___jXPV3", pr = "styles-module__fullWidth___eKyGB", vr = "styles-module__label___MyTeo", yr = "styles-module__required___TV-m8", gr = "styles-module__inputContainer___VvGBl", br = "styles-module__textarea___AjX9N", wr = "styles-module__small___zMx0G", Nr = "styles-module__medium___tO2Lb", Ir = "styles-module__large___3eU2g", Sr = "styles-module__filled___TPQgI", Cr = "styles-module__leftIcon___FHp2R", Er = "styles-module__rightIcon___dkyvP", xr = "styles-module__error___d8gLK", Lr = "styles-module__disabled___IzbfE", $r = "styles-module__errorText___Nom7x", Mr = "styles-module__helperText___97Def", R = {
921
- wrapper: fr,
922
- fullWidth: pr,
923
- label: vr,
924
- required: yr,
925
- inputContainer: gr,
926
- textarea: br,
927
- small: wr,
928
- medium: Nr,
929
- large: Ir,
919
+ }, gn = "styles-module__wrapper___jXPV3", yn = "styles-module__fullWidth___eKyGB", bn = "styles-module__label___MyTeo", Sn = "styles-module__required___TV-m8", wn = "styles-module__inputContainer___VvGBl", In = "styles-module__textarea___AjX9N", En = "styles-module__small___zMx0G", Nn = "styles-module__medium___tO2Lb", Cn = "styles-module__large___3eU2g", xn = "styles-module__filled___TPQgI", On = "styles-module__leftIcon___FHp2R", Tn = "styles-module__rightIcon___dkyvP", Mn = "styles-module__error___d8gLK", zn = "styles-module__disabled___IzbfE", $n = "styles-module__errorText___Nom7x", Ln = "styles-module__helperText___97Def", L = {
920
+ wrapper: gn,
921
+ fullWidth: yn,
922
+ label: bn,
923
+ required: Sn,
924
+ inputContainer: wn,
925
+ textarea: In,
926
+ small: En,
927
+ medium: Nn,
928
+ large: Cn,
930
929
  default: "styles-module__default___vsSxX",
931
- filled: Sr,
932
- leftIcon: Cr,
933
- rightIcon: Er,
934
- error: xr,
935
- disabled: Lr,
936
- errorText: $r,
937
- helperText: Mr
938
- }, Or = ee(({ label: n, error: t, helperText: e, leftIcon: s, rightIcon: r, size: i = "medium", variant: a = "default", fullWidth: o = !1, className: c = "", disabled: d, ...u }, h) => {
939
- const _ = [
940
- R.textarea,
941
- R[i],
942
- R[a],
943
- t && R.error,
944
- d && R.disabled,
945
- c
930
+ filled: xn,
931
+ leftIcon: On,
932
+ rightIcon: Tn,
933
+ error: Mn,
934
+ disabled: zn,
935
+ errorText: $n,
936
+ helperText: Ln
937
+ }, Dn = ee(({ label: l, error: e, helperText: t, leftIcon: s, rightIcon: n, size: r = "medium", variant: o = "default", fullWidth: c = !1, className: d = "", disabled: a, ...u }, h) => {
938
+ const m = [
939
+ L.textarea,
940
+ L[r],
941
+ L[o],
942
+ e && L.error,
943
+ a && L.disabled,
944
+ d
946
945
  ].filter(Boolean).join(" ");
947
- return /* @__PURE__ */ v("div", {
948
- className: [R.wrapper, o && R.fullWidth].filter(Boolean).join(" "),
946
+ return /* @__PURE__ */ w("div", {
947
+ className: [L.wrapper, c && L.fullWidth].filter(Boolean).join(" "),
949
948
  children: [
950
- n && /* @__PURE__ */ v("label", {
951
- className: R.label,
952
- children: [n, u.required && /* @__PURE__ */ l("span", {
953
- className: R.required,
949
+ l && /* @__PURE__ */ w("label", {
950
+ className: L.label,
951
+ children: [l, u.required && /* @__PURE__ */ i("span", {
952
+ className: L.required,
954
953
  children: "*"
955
954
  })]
956
955
  }),
957
- /* @__PURE__ */ v("div", {
958
- className: R.inputContainer,
956
+ /* @__PURE__ */ w("div", {
957
+ className: L.inputContainer,
959
958
  children: [
960
- s && /* @__PURE__ */ l("div", {
961
- className: R.leftIcon,
959
+ s && /* @__PURE__ */ i("div", {
960
+ className: L.leftIcon,
962
961
  children: s
963
962
  }),
964
- /* @__PURE__ */ l("textarea", {
963
+ /* @__PURE__ */ i("textarea", {
965
964
  ref: h,
966
- className: _,
967
- disabled: d,
965
+ className: m,
966
+ disabled: a,
968
967
  ...u
969
968
  }),
970
- r && /* @__PURE__ */ l("div", {
971
- className: R.rightIcon,
972
- children: r
969
+ n && /* @__PURE__ */ i("div", {
970
+ className: L.rightIcon,
971
+ children: n
973
972
  })
974
973
  ]
975
974
  }),
976
- t && /* @__PURE__ */ l("span", {
977
- className: R.errorText,
978
- children: t
979
- }),
980
- e && !t && /* @__PURE__ */ l("span", {
981
- className: R.helperText,
975
+ e && /* @__PURE__ */ i("span", {
976
+ className: L.errorText,
982
977
  children: e
978
+ }),
979
+ t && !e && /* @__PURE__ */ i("span", {
980
+ className: L.helperText,
981
+ children: t
983
982
  })
984
983
  ]
985
984
  });
986
985
  });
987
- Or.displayName = "Textarea";
988
- function q(n, t, e) {
989
- let s = e.initialDeps ?? [], r, i = !0;
990
- function a() {
991
- var o, c, d;
992
- let u;
993
- e.key && ((o = e.debug) != null && o.call(e)) && (u = Date.now());
994
- const h = n();
995
- if (!(h.length !== s.length || h.some((m, g) => s[g] !== m))) return r;
996
- s = h;
997
- let _;
998
- if (e.key && ((c = e.debug) != null && c.call(e)) && (_ = Date.now()), r = t(...h), e.key && ((d = e.debug) != null && d.call(e))) {
999
- const m = Math.round((Date.now() - u) * 100) / 100, g = Math.round((Date.now() - _) * 100) / 100, I = g / 16, b = (N, p) => {
1000
- for (N = String(N); N.length < p; ) N = " " + N;
1001
- return N;
986
+ Dn.displayName = "Textarea";
987
+ function An(l, e, t) {
988
+ const s = new Array(l);
989
+ return new Proxy(s, { get(n, r, o) {
990
+ if (typeof r == "string") {
991
+ const c = r.charCodeAt(0);
992
+ if (c >= 48 && c <= 57) {
993
+ const d = +r;
994
+ if (Number.isInteger(d) && d >= 0 && d < l) {
995
+ let a = n[d];
996
+ if (!a) {
997
+ const u = e[d * 2];
998
+ a = n[d] = {
999
+ index: d,
1000
+ key: t(d),
1001
+ start: u,
1002
+ size: e[d * 2 + 1],
1003
+ end: u + e[d * 2 + 1],
1004
+ lane: 0
1005
+ };
1006
+ }
1007
+ return a;
1008
+ }
1009
+ }
1010
+ if (r === "length") return l;
1011
+ }
1012
+ return Reflect.get(n, r, o);
1013
+ } });
1014
+ }
1015
+ function P(l, e, t) {
1016
+ let s = t.initialDeps ?? [], n, r = !0;
1017
+ function o() {
1018
+ var c;
1019
+ const d = process.env.NODE_ENV !== "production" && !!t.key && !!((c = t.debug) != null && c.call(t));
1020
+ let a = 0;
1021
+ d && (a = Date.now());
1022
+ const u = l();
1023
+ if (!(u.length !== s.length || u.some((m, _) => s[_] !== m))) return n;
1024
+ s = u;
1025
+ let h = 0;
1026
+ if (d && (h = Date.now()), n = e(...u), d) {
1027
+ const m = Math.round((Date.now() - a) * 100) / 100, _ = Math.round((Date.now() - h) * 100) / 100, v = _ / 16, g = (p, S) => {
1028
+ for (p = String(p); p.length < S; ) p = " " + p;
1029
+ return p;
1002
1030
  };
1003
- console.info(`%c⏱ ${b(g, 5)} /${b(m, 5)} ms`, `
1031
+ console.info(`%c⏱ ${g(_, 5)} /${g(m, 5)} ms`, `
1004
1032
  font-size: .6rem;
1005
1033
  font-weight: bold;
1006
- color: hsl(${Math.max(0, Math.min(120 - 120 * I, 120))}deg 100% 31%);`, e?.key);
1034
+ color: hsl(${Math.max(0, Math.min(120 - 120 * v, 120))}deg 100% 31%);`, t?.key);
1007
1035
  }
1008
- return e?.onChange && !(i && e.skipInitialOnChange) && e.onChange(r), i = !1, r;
1036
+ return t?.onChange && !(r && t.skipInitialOnChange) && t.onChange(n), r = !1, n;
1009
1037
  }
1010
- return a.updateDeps = (o) => {
1011
- s = o;
1012
- }, a;
1038
+ return o.updateDeps = (c) => {
1039
+ s = c;
1040
+ }, o;
1013
1041
  }
1014
- function de(n, t) {
1015
- if (n === void 0) throw new Error(`Unexpected undefined${t ? `: ${t}` : ""}`);
1016
- return n;
1042
+ function ue(l, e) {
1043
+ if (l === void 0) throw new Error(`Unexpected undefined${e ? `: ${e}` : ""}`);
1044
+ return l;
1017
1045
  }
1018
- var Dr = (n, t) => Math.abs(n - t) < 1.01, fe = (n, t, e) => {
1046
+ var Rn = (l, e) => Math.abs(l - e) < 1.01, kn = (l, e, t) => {
1019
1047
  let s;
1020
- return function(...r) {
1021
- n.clearTimeout(s), s = n.setTimeout(() => t.apply(this, r), e);
1048
+ return function(...n) {
1049
+ l.clearTimeout(s), s = l.setTimeout(() => e.apply(this, n), t);
1022
1050
  };
1023
- }, ce = (n) => {
1024
- const { offsetWidth: t, offsetHeight: e } = n;
1051
+ }, Z, se = () => {
1052
+ if (Z !== void 0) return Z;
1053
+ if (typeof navigator > "u") return Z = !1;
1054
+ if (/iP(hone|od|ad)/.test(navigator.userAgent)) return Z = !0;
1055
+ const l = navigator.maxTouchPoints;
1056
+ return Z = navigator.platform === "MacIntel" && l !== void 0 && l > 0;
1057
+ }, he = (l) => {
1058
+ const { offsetWidth: e, offsetHeight: t } = l;
1025
1059
  return {
1026
- width: t,
1027
- height: e
1060
+ width: e,
1061
+ height: t
1028
1062
  };
1029
- }, Rr = (n) => n, zr = (n) => {
1030
- const t = Math.max(n.startIndex - n.overscan, 0), e = Math.min(n.endIndex + n.overscan, n.count - 1), s = [];
1031
- for (let r = t; r <= e; r++) s.push(r);
1063
+ }, Wn = (l) => l, Fn = (l) => {
1064
+ const e = Math.max(l.startIndex - l.overscan, 0), t = Math.min(l.endIndex + l.overscan, l.count - 1) - e + 1, s = new Array(t);
1065
+ for (let n = 0; n < t; n++) s[n] = e + n;
1032
1066
  return s;
1033
- }, Tr = (n, t) => {
1034
- const e = n.scrollElement;
1035
- if (!e) return;
1036
- const s = n.targetWindow;
1067
+ }, Vn = (l, e) => {
1068
+ const t = l.scrollElement;
1069
+ if (!t) return;
1070
+ const s = l.targetWindow;
1037
1071
  if (!s) return;
1038
- const r = (a) => {
1039
- const { width: o, height: c } = a;
1040
- t({
1041
- width: Math.round(o),
1042
- height: Math.round(c)
1072
+ const n = (o) => {
1073
+ const { width: c, height: d } = o;
1074
+ e({
1075
+ width: Math.round(c),
1076
+ height: Math.round(d)
1043
1077
  });
1044
1078
  };
1045
- if (r(ce(e)), !s.ResizeObserver) return () => {
1079
+ if (n(he(t)), !s.ResizeObserver) return () => {
1046
1080
  };
1047
- const i = new s.ResizeObserver((a) => {
1048
- const o = () => {
1049
- const c = a[0];
1050
- if (c?.borderBoxSize) {
1051
- const d = c.borderBoxSize[0];
1052
- if (d) {
1053
- r({
1054
- width: d.inlineSize,
1055
- height: d.blockSize
1081
+ const r = new s.ResizeObserver((o) => {
1082
+ const c = () => {
1083
+ const d = o[0];
1084
+ if (d?.borderBoxSize) {
1085
+ const a = d.borderBoxSize[0];
1086
+ if (a) {
1087
+ n({
1088
+ width: a.inlineSize,
1089
+ height: a.blockSize
1056
1090
  });
1057
1091
  return;
1058
1092
  }
1059
1093
  }
1060
- r(ce(e));
1094
+ n(he(t));
1061
1095
  };
1062
- n.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(o) : o();
1096
+ l.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(c) : c();
1063
1097
  });
1064
- return i.observe(e, { box: "border-box" }), () => {
1065
- i.unobserve(e);
1098
+ return r.observe(t, { box: "border-box" }), () => {
1099
+ r.unobserve(t);
1066
1100
  };
1067
- }, Y = { passive: !0 }, Wr = (n, t) => {
1068
- const e = n.scrollElement;
1069
- if (!e) return;
1101
+ }, Q = { passive: !0 }, Bn = (l, e) => {
1102
+ const t = l.scrollElement;
1103
+ if (!t) return;
1070
1104
  const s = () => {
1071
- t({
1072
- width: e.innerWidth,
1073
- height: e.innerHeight
1105
+ e({
1106
+ width: t.innerWidth,
1107
+ height: t.innerHeight
1074
1108
  });
1075
1109
  };
1076
- return s(), e.addEventListener("resize", s, Y), () => {
1077
- e.removeEventListener("resize", s);
1078
- };
1079
- }, J = typeof window > "u" ? !0 : "onscrollend" in window, Ar = (n, t) => {
1080
- const e = n.scrollElement;
1081
- if (!e) return;
1082
- const s = n.targetWindow;
1083
- if (!s) return;
1084
- let r = 0;
1085
- const i = n.options.useScrollendEvent && J ? () => {
1086
- } : fe(s, () => {
1087
- t(r, !1);
1088
- }, n.options.isScrollingResetDelay), a = (u) => () => {
1089
- const { horizontal: h, isRtl: _ } = n.options;
1090
- r = h ? e.scrollLeft * (_ && -1 || 1) : e.scrollTop, i(), t(r, u);
1091
- }, o = a(!0), c = a(!1);
1092
- e.addEventListener("scroll", o, Y);
1093
- const d = n.options.useScrollendEvent && J;
1094
- return d && e.addEventListener("scrollend", c, Y), () => {
1095
- e.removeEventListener("scroll", o), d && e.removeEventListener("scrollend", c);
1110
+ return s(), t.addEventListener("resize", s, Q), () => {
1111
+ t.removeEventListener("resize", s);
1096
1112
  };
1097
- }, kr = (n, t) => {
1098
- const e = n.scrollElement;
1099
- if (!e) return;
1100
- const s = n.targetWindow;
1113
+ }, jn = typeof window > "u" ? !0 : "onscrollend" in window, pe = (l, e, t) => {
1114
+ const s = l.scrollElement;
1101
1115
  if (!s) return;
1102
- let r = 0;
1103
- const i = n.options.useScrollendEvent && J ? () => {
1104
- } : fe(s, () => {
1105
- t(r, !1);
1106
- }, n.options.isScrollingResetDelay), a = (u) => () => {
1107
- r = e[n.options.horizontal ? "scrollX" : "scrollY"], i(), t(r, u);
1108
- }, o = a(!0), c = a(!1);
1109
- e.addEventListener("scroll", o, Y);
1110
- const d = n.options.useScrollendEvent && J;
1111
- return d && e.addEventListener("scrollend", c, Y), () => {
1112
- e.removeEventListener("scroll", o), d && e.removeEventListener("scrollend", c);
1116
+ const n = l.targetWindow;
1117
+ if (!n) return;
1118
+ const r = l.options.useScrollendEvent && jn;
1119
+ let o = 0;
1120
+ const c = r ? null : kn(n, () => e(o, !1), l.options.isScrollingResetDelay), d = (h) => () => {
1121
+ o = t(s), c?.(), e(o, h);
1122
+ }, a = d(!0), u = d(!1);
1123
+ return s.addEventListener("scroll", a, Q), r && s.addEventListener("scrollend", u, Q), () => {
1124
+ s.removeEventListener("scroll", a), r && s.removeEventListener("scrollend", u);
1113
1125
  };
1114
- }, Br = (n, t, e) => {
1115
- if (t?.borderBoxSize) {
1116
- const s = t.borderBoxSize[0];
1117
- if (s) return Math.round(s[e.options.horizontal ? "inlineSize" : "blockSize"]);
1126
+ }, Pn = (l, e) => pe(l, e, (t) => {
1127
+ const { horizontal: s, isRtl: n } = l.options;
1128
+ return s ? t.scrollLeft * (n && -1 || 1) : t.scrollTop;
1129
+ }), qn = (l, e) => pe(l, e, (t) => l.options.horizontal ? t.scrollX : t.scrollY), Kn = (l, e, t) => {
1130
+ if (t.options.useCachedMeasurements) {
1131
+ const s = t.indexFromElement(l), n = t.options.getItemKey(s);
1132
+ return t.itemSizeCache.get(n) ?? t.options.estimateSize(s);
1118
1133
  }
1119
- return n[e.options.horizontal ? "offsetWidth" : "offsetHeight"];
1120
- }, Fr = (n, { adjustments: t = 0, behavior: e }, s) => {
1121
- var r, i;
1122
- const a = n + t;
1123
- (i = (r = s.scrollElement) == null ? void 0 : r.scrollTo) == null || i.call(r, {
1124
- [s.options.horizontal ? "left" : "top"]: a,
1125
- behavior: e
1126
- });
1127
- }, Vr = (n, { adjustments: t = 0, behavior: e }, s) => {
1128
- var r, i;
1129
- const a = n + t;
1130
- (i = (r = s.scrollElement) == null ? void 0 : r.scrollTo) == null || i.call(r, {
1131
- [s.options.horizontal ? "left" : "top"]: a,
1132
- behavior: e
1134
+ if (e?.borderBoxSize) {
1135
+ const s = e.borderBoxSize[0];
1136
+ if (s) return Math.round(s[t.options.horizontal ? "inlineSize" : "blockSize"]);
1137
+ }
1138
+ if (!e) {
1139
+ const s = t.indexFromElement(l), n = t.options.getItemKey(s), r = t.itemSizeCache.get(n);
1140
+ if (r !== void 0) return r;
1141
+ }
1142
+ return l[t.options.horizontal ? "offsetWidth" : "offsetHeight"];
1143
+ }, ve = (l, { adjustments: e = 0, behavior: t }, s) => {
1144
+ var n, r;
1145
+ (r = (n = s.scrollElement) == null ? void 0 : n.scrollTo) == null || r.call(n, {
1146
+ [s.options.horizontal ? "left" : "top"]: l + e,
1147
+ behavior: t
1133
1148
  });
1134
- }, jr = class {
1135
- constructor(n) {
1136
- this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollState = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.now = () => {
1137
- var t, e, s;
1138
- return ((s = (e = (t = this.targetWindow) == null ? void 0 : t.performance) == null ? void 0 : e.now) == null ? void 0 : s.call(e)) ?? Date.now();
1149
+ }, Gn = ve, Hn = ve, Xn = class {
1150
+ constructor(l) {
1151
+ this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollState = null, this.measurementsCache = [], this._flatMeasurements = null, this.itemSizeCache = /* @__PURE__ */ new Map(), this.itemSizeCacheVersion = 0, this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMin = null, this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.pendingScrollAnchor = null, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this._iosDeferredAdjustment = 0, this._iosTouching = !1, this._iosJustTouchEnded = !1, this._iosTouchEndTimerId = null, this._intendedScrollOffset = null, this.elementsCache = /* @__PURE__ */ new Map(), this.now = () => {
1152
+ var e, t, s;
1153
+ return ((s = (t = (e = this.targetWindow) == null ? void 0 : e.performance) == null ? void 0 : t.now) == null ? void 0 : s.call(t)) ?? Date.now();
1139
1154
  }, this.observer = /* @__PURE__ */ (() => {
1140
- let t = null;
1141
- const e = () => t || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : t = new this.targetWindow.ResizeObserver((s) => {
1142
- s.forEach((r) => {
1143
- const i = () => {
1144
- const a = r.target, o = this.indexFromElement(a);
1145
- if (!a.isConnected) {
1146
- this.observer.unobserve(a);
1155
+ let e = null;
1156
+ const t = () => e || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : e = new this.targetWindow.ResizeObserver((s) => {
1157
+ s.forEach((n) => {
1158
+ const r = () => {
1159
+ const o = n.target, c = this.indexFromElement(o);
1160
+ if (!o.isConnected) {
1161
+ this.observer.unobserve(o);
1162
+ for (const [d, a] of this.elementsCache) if (a === o) {
1163
+ this.elementsCache.delete(d);
1164
+ break;
1165
+ }
1147
1166
  return;
1148
1167
  }
1149
- this.shouldMeasureDuringScroll(o) && this.resizeItem(o, this.options.measureElement(a, r, this));
1168
+ this.shouldMeasureDuringScroll(c) && this.resizeItem(c, this.options.measureElement(o, n, this));
1150
1169
  };
1151
- this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(i) : i();
1170
+ this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(r) : r();
1152
1171
  });
1153
1172
  }));
1154
1173
  return {
1155
1174
  disconnect: () => {
1156
1175
  var s;
1157
- (s = e()) == null || s.disconnect(), t = null;
1176
+ (s = t()) == null || s.disconnect(), e = null;
1158
1177
  },
1159
1178
  observe: (s) => {
1160
- var r;
1161
- return (r = e()) == null ? void 0 : r.observe(s, { box: "border-box" });
1179
+ var n;
1180
+ return (n = t()) == null ? void 0 : n.observe(s, { box: "border-box" });
1162
1181
  },
1163
1182
  unobserve: (s) => {
1164
- var r;
1165
- return (r = e()) == null ? void 0 : r.unobserve(s);
1183
+ var n;
1184
+ return (n = t()) == null ? void 0 : n.unobserve(s);
1166
1185
  }
1167
1186
  };
1168
- })(), this.range = null, this.setOptions = (t) => {
1169
- Object.entries(t).forEach(([e, s]) => {
1170
- typeof s > "u" && delete t[e];
1171
- }), this.options = {
1187
+ })(), this.range = null, this.setOptions = (e) => {
1188
+ var t, s;
1189
+ const n = {
1172
1190
  debug: !1,
1173
1191
  initialOffset: 0,
1174
1192
  overscan: 1,
@@ -1177,11 +1195,11 @@ var Dr = (n, t) => Math.abs(n - t) < 1.01, fe = (n, t, e) => {
1177
1195
  scrollPaddingStart: 0,
1178
1196
  scrollPaddingEnd: 0,
1179
1197
  horizontal: !1,
1180
- getItemKey: Rr,
1181
- rangeExtractor: zr,
1198
+ getItemKey: Wn,
1199
+ rangeExtractor: Fn,
1182
1200
  onChange: () => {
1183
1201
  },
1184
- measureElement: Br,
1202
+ measureElement: Kn,
1185
1203
  initialRect: {
1186
1204
  width: 0,
1187
1205
  height: 0
@@ -1191,23 +1209,62 @@ var Dr = (n, t) => Math.abs(n - t) < 1.01, fe = (n, t, e) => {
1191
1209
  indexAttribute: "data-index",
1192
1210
  initialMeasurementsCache: [],
1193
1211
  lanes: 1,
1212
+ anchorTo: "start",
1213
+ followOnAppend: !1,
1214
+ scrollEndThreshold: 1,
1194
1215
  isScrollingResetDelay: 150,
1195
1216
  enabled: !0,
1196
1217
  isRtl: !1,
1197
1218
  useScrollendEvent: !1,
1198
1219
  useAnimationFrameWithResizeObserver: !1,
1199
1220
  laneAssignmentMode: "estimate",
1200
- ...t
1221
+ useCachedMeasurements: !1
1201
1222
  };
1202
- }, this.notify = (t) => {
1203
- var e, s;
1204
- (s = (e = this.options).onChange) == null || s.call(e, this, t);
1205
- }, this.maybeNotify = q(() => (this.calculateRange(), [
1223
+ for (const h in e) {
1224
+ const m = e[h];
1225
+ m !== void 0 && (n[h] = m);
1226
+ }
1227
+ const r = this.options;
1228
+ let o = null, c = null, d = !1;
1229
+ if (r !== void 0 && r.enabled && n.enabled && n.anchorTo === "end" && this.scrollElement !== null) {
1230
+ const h = r.count, m = n.count, _ = this.getMeasurements(), v = h > 0 ? ((t = _[0]) == null ? void 0 : t.key) ?? r.getItemKey(0) : null, g = h > 0 ? ((s = _[h - 1]) == null ? void 0 : s.key) ?? r.getItemKey(h - 1) : null;
1231
+ if (m !== h || h > 0 && m > 0 && (n.getItemKey(0) !== v || n.getItemKey(m - 1) !== g)) {
1232
+ d = !0;
1233
+ const p = h > 0 ? this.getVirtualItemForOffset(this.getScrollOffset()) ?? _[0] : null;
1234
+ p && (o = [p.key, this.getScrollOffset() - p.start]);
1235
+ const S = n.followOnAppend === !0 ? "auto" : n.followOnAppend || null;
1236
+ S && m > h && this.isAtEnd(r.scrollEndThreshold) && (h === 0 || n.getItemKey(m - 1) !== g) && (c = S);
1237
+ }
1238
+ }
1239
+ this.options = n, d && (this.pendingMin = 0, this.itemSizeCacheVersion++);
1240
+ let a = !1, u = 0;
1241
+ if (o && this.scrollOffset !== null) {
1242
+ const [h, m] = o, _ = this.getMeasurements(), { count: v, getItemKey: g } = this.options;
1243
+ let p = 0;
1244
+ for (; p < v && g(p) !== h; ) p++;
1245
+ if (p < v) {
1246
+ const S = _[p];
1247
+ if (S) {
1248
+ const f = S.start + m;
1249
+ f !== this.scrollOffset && (u = f - this.scrollOffset, this.scrollOffset = f, a = !0);
1250
+ }
1251
+ }
1252
+ }
1253
+ (a || c) && (this.pendingScrollAnchor = [
1254
+ a ? o[0] : null,
1255
+ a ? o[1] : 0,
1256
+ c,
1257
+ u
1258
+ ]);
1259
+ }, this.notify = (e) => {
1260
+ var t, s;
1261
+ (s = (t = this.options).onChange) == null || s.call(t, this, e);
1262
+ }, this.maybeNotify = P(() => (this.calculateRange(), [
1206
1263
  this.isScrolling,
1207
1264
  this.range ? this.range.startIndex : null,
1208
1265
  this.range ? this.range.endIndex : null
1209
- ]), (t) => {
1210
- this.notify(t);
1266
+ ]), (e) => {
1267
+ this.notify(e);
1211
1268
  }, {
1212
1269
  key: process.env.NODE_ENV !== "production" && "maybeNotify",
1213
1270
  debug: () => this.options.debug,
@@ -1217,38 +1274,67 @@ var Dr = (n, t) => Math.abs(n - t) < 1.01, fe = (n, t, e) => {
1217
1274
  this.range ? this.range.endIndex : null
1218
1275
  ]
1219
1276
  }), this.cleanup = () => {
1220
- this.unsubs.filter(Boolean).forEach((t) => t()), this.unsubs = [], this.observer.disconnect(), this.rafId != null && this.targetWindow && (this.targetWindow.cancelAnimationFrame(this.rafId), this.rafId = null), this.scrollState = null, this.scrollElement = null, this.targetWindow = null;
1277
+ this.unsubs.filter(Boolean).forEach((e) => e()), this.unsubs = [], this.observer.disconnect(), this.rafId != null && this.targetWindow && (this.targetWindow.cancelAnimationFrame(this.rafId), this.rafId = null), this.scrollState = null, this.scrollElement = null, this.targetWindow = null;
1221
1278
  }, this._didMount = () => () => {
1222
1279
  this.cleanup();
1223
1280
  }, this._willUpdate = () => {
1224
- var t;
1225
- const e = this.options.enabled ? this.options.getScrollElement() : null;
1226
- if (this.scrollElement !== e) {
1227
- if (this.cleanup(), !e) {
1281
+ var e;
1282
+ const t = this.options.enabled ? this.options.getScrollElement() : null;
1283
+ if (this.scrollElement !== t) {
1284
+ if (this.cleanup(), !t) {
1228
1285
  this.maybeNotify();
1229
1286
  return;
1230
1287
  }
1231
- this.scrollElement = e, this.scrollElement && "ownerDocument" in this.scrollElement ? this.targetWindow = this.scrollElement.ownerDocument.defaultView : this.targetWindow = ((t = this.scrollElement) == null ? void 0 : t.window) ?? null, this.elementsCache.forEach((s) => {
1232
- this.observer.observe(s);
1233
- }), this.unsubs.push(this.options.observeElementRect(this, (s) => {
1234
- this.scrollRect = s, this.maybeNotify();
1235
- })), this.unsubs.push(this.options.observeElementOffset(this, (s, r) => {
1236
- this.scrollAdjustments = 0, this.scrollDirection = r ? this.getScrollOffset() < s ? "forward" : "backward" : null, this.scrollOffset = s, this.isScrolling = r, this.scrollState && this.scheduleScrollReconcile(), this.maybeNotify();
1237
- })), this._scrollToOffset(this.getScrollOffset(), {
1288
+ if (this.scrollElement = t, this.scrollElement && "ownerDocument" in this.scrollElement ? this.targetWindow = this.scrollElement.ownerDocument.defaultView : this.targetWindow = ((e = this.scrollElement) == null ? void 0 : e.window) ?? null, this.elementsCache.forEach((n) => {
1289
+ this.observer.observe(n);
1290
+ }), this.unsubs.push(this.options.observeElementRect(this, (n) => {
1291
+ this.scrollRect = n, this.maybeNotify();
1292
+ })), this.unsubs.push(this.options.observeElementOffset(this, (n, r) => {
1293
+ this._intendedScrollOffset !== null && Math.abs(n - this._intendedScrollOffset) < 1.5 && (n = this._intendedScrollOffset), this._intendedScrollOffset = null, this.scrollAdjustments = 0, this.scrollDirection = r ? this.getScrollOffset() < n ? "forward" : "backward" : null, this.scrollOffset = n, this.isScrolling = r, this._flushIosDeferredIfReady(), this.scrollState && this.scheduleScrollReconcile(), this.maybeNotify();
1294
+ })), "addEventListener" in this.scrollElement) {
1295
+ const n = this.scrollElement, r = () => {
1296
+ this._iosTouching = !0, this._iosJustTouchEnded = !1, this._iosTouchEndTimerId !== null && this.targetWindow != null && (this.targetWindow.clearTimeout(this._iosTouchEndTimerId), this._iosTouchEndTimerId = null);
1297
+ }, o = () => {
1298
+ this._iosTouching = !1, !(!se() || this.targetWindow == null) && (this._iosJustTouchEnded = !0, this._iosTouchEndTimerId = this.targetWindow.setTimeout(() => {
1299
+ this._iosJustTouchEnded = !1, this._iosTouchEndTimerId = null, this._flushIosDeferredIfReady();
1300
+ }, 150));
1301
+ };
1302
+ n.addEventListener("touchstart", r, Q), n.addEventListener("touchend", o, Q), this.unsubs.push(() => {
1303
+ n.removeEventListener("touchstart", r), n.removeEventListener("touchend", o), this._iosTouchEndTimerId !== null && this.targetWindow != null && (this.targetWindow.clearTimeout(this._iosTouchEndTimerId), this._iosTouchEndTimerId = null);
1304
+ });
1305
+ }
1306
+ this._scrollToOffset(this.getScrollOffset(), {
1238
1307
  adjustments: void 0,
1239
1308
  behavior: void 0
1240
1309
  });
1241
1310
  }
1242
- }, this.rafId = null, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (t, e) => {
1243
- const s = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
1244
- for (let i = e - 1; i >= 0; i--) {
1245
- const a = t[i];
1246
- if (s.has(a.lane)) continue;
1247
- const o = r.get(a.lane);
1248
- if (o == null || a.end > o.end ? r.set(a.lane, a) : a.end < o.end && s.set(a.lane, !0), s.size === this.options.lanes) break;
1311
+ const s = this.pendingScrollAnchor;
1312
+ if (this.pendingScrollAnchor = null, s && this.scrollElement && this.options.enabled) {
1313
+ const [n, r, o, c] = s;
1314
+ n !== null && !o && (se() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded) ? c !== 0 && (this._iosDeferredAdjustment += c) : this._scrollToOffset(this.getScrollOffset(), {
1315
+ adjustments: void 0,
1316
+ behavior: void 0
1317
+ })), o && this.scrollToEnd({ behavior: o });
1249
1318
  }
1250
- return r.size === this.options.lanes ? Array.from(r.values()).sort((i, a) => i.end === a.end ? i.index - a.index : i.end - a.end)[0] : void 0;
1251
- }, this.getMeasurementOptions = q(() => [
1319
+ }, this._flushIosDeferredIfReady = () => {
1320
+ if (this._iosDeferredAdjustment === 0 || this.isScrolling || this._iosTouching || this._iosJustTouchEnded) return;
1321
+ const e = this.getScrollOffset(), t = this.getMaxScrollOffset();
1322
+ if (e < 0 || e > t) return;
1323
+ const s = this._iosDeferredAdjustment;
1324
+ this._iosDeferredAdjustment = 0, this._scrollToOffset(e, {
1325
+ adjustments: this.scrollAdjustments += s,
1326
+ behavior: void 0
1327
+ });
1328
+ }, this.rafId = null, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (e, t) => {
1329
+ const s = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
1330
+ for (let r = t - 1; r >= 0; r--) {
1331
+ const o = e[r];
1332
+ if (s.has(o.lane)) continue;
1333
+ const c = n.get(o.lane);
1334
+ if (c == null || o.end > c.end ? n.set(o.lane, o) : o.end < c.end && s.set(o.lane, !0), s.size === this.options.lanes) break;
1335
+ }
1336
+ return n.size === this.options.lanes ? Array.from(n.values()).sort((r, o) => r.end === o.end ? r.index - o.index : r.end - o.end)[0] : void 0;
1337
+ }, this.getMeasurementOptions = P(() => [
1252
1338
  this.options.count,
1253
1339
  this.options.paddingStart,
1254
1340
  this.options.scrollMargin,
@@ -1256,223 +1342,290 @@ var Dr = (n, t) => Math.abs(n - t) < 1.01, fe = (n, t, e) => {
1256
1342
  this.options.enabled,
1257
1343
  this.options.lanes,
1258
1344
  this.options.laneAssignmentMode
1259
- ], (t, e, s, r, i, a, o) => (this.prevLanes !== void 0 && this.prevLanes !== a && (this.lanesChangedFlag = !0), this.prevLanes = a, this.pendingMeasuredCacheIndexes = [], {
1260
- count: t,
1261
- paddingStart: e,
1345
+ ], (e, t, s, n, r, o, c) => (this.prevLanes !== void 0 && this.prevLanes !== o && (this.lanesChangedFlag = !0), this.prevLanes = o, this.pendingMin = null, {
1346
+ count: e,
1347
+ paddingStart: t,
1262
1348
  scrollMargin: s,
1263
- getItemKey: r,
1264
- enabled: i,
1265
- lanes: a,
1266
- laneAssignmentMode: o
1267
- }), { key: !1 }), this.getMeasurements = q(() => [this.getMeasurementOptions(), this.itemSizeCache], ({ count: t, paddingStart: e, scrollMargin: s, getItemKey: r, enabled: i, lanes: a, laneAssignmentMode: o }, c) => {
1268
- if (!i)
1349
+ getItemKey: n,
1350
+ enabled: r,
1351
+ lanes: o,
1352
+ laneAssignmentMode: c
1353
+ }), { key: !1 }), this.getMeasurements = P(() => [this.getMeasurementOptions(), this.itemSizeCacheVersion], ({ count: e, paddingStart: t, scrollMargin: s, getItemKey: n, enabled: r, lanes: o, laneAssignmentMode: c }, d) => {
1354
+ const a = this.itemSizeCache;
1355
+ if (!r)
1269
1356
  return this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), [];
1270
- if (this.laneAssignments.size > t)
1271
- for (const _ of this.laneAssignments.keys()) _ >= t && this.laneAssignments.delete(_);
1272
- this.lanesChangedFlag && (this.lanesChangedFlag = !1, this.lanesSettling = !0, this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), this.pendingMeasuredCacheIndexes = []), this.measurementsCache.length === 0 && !this.lanesSettling && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((_) => {
1357
+ if (this.laneAssignments.size > e)
1358
+ for (const _ of this.laneAssignments.keys()) _ >= e && this.laneAssignments.delete(_);
1359
+ this.lanesChangedFlag && (this.lanesChangedFlag = !1, this.lanesSettling = !0, this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), this.pendingMin = null), this.measurementsCache.length === 0 && !this.lanesSettling && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((_) => {
1273
1360
  this.itemSizeCache.set(_.key, _.size);
1274
1361
  }));
1275
- const d = this.lanesSettling ? 0 : this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
1276
- this.pendingMeasuredCacheIndexes = [], this.lanesSettling && this.measurementsCache.length === t && (this.lanesSettling = !1);
1277
- const u = this.measurementsCache.slice(0, d), h = new Array(a).fill(void 0);
1278
- for (let _ = 0; _ < d; _++) {
1279
- const m = u[_];
1280
- m && (h[m.lane] = _);
1362
+ const u = this.lanesSettling ? 0 : this.pendingMin ?? 0;
1363
+ if (this.pendingMin = null, this.lanesSettling && this.measurementsCache.length === e && (this.lanesSettling = !1), o === 1) {
1364
+ const _ = this.options.gap, v = e * 2;
1365
+ let g = this._flatMeasurements;
1366
+ if (!g || g.length < v) {
1367
+ const f = new Float64Array(v);
1368
+ g && u > 0 && f.set(g.subarray(0, u * 2)), g = f, this._flatMeasurements = g;
1369
+ }
1370
+ let p;
1371
+ if (u === 0) p = t + s;
1372
+ else {
1373
+ const f = u - 1;
1374
+ p = g[f * 2] + g[f * 2 + 1] + _;
1375
+ }
1376
+ for (let f = u; f < e; f++) {
1377
+ const b = n(f), y = a.get(b), E = typeof y == "number" ? y : this.options.estimateSize(f);
1378
+ g[f * 2] = p, g[f * 2 + 1] = E, p += E + _;
1379
+ }
1380
+ const S = An(e, g, n);
1381
+ return this.measurementsCache = S, S;
1382
+ }
1383
+ const h = this.measurementsCache.slice(0, u), m = new Array(o).fill(void 0);
1384
+ for (let _ = 0; _ < u; _++) {
1385
+ const v = h[_];
1386
+ v && (m[v.lane] = _);
1281
1387
  }
1282
- for (let _ = d; _ < t; _++) {
1283
- const m = r(_), g = this.laneAssignments.get(_);
1284
- let I, b;
1285
- const N = o === "estimate" || c.has(m);
1388
+ for (let _ = u; _ < e; _++) {
1389
+ const v = n(_), g = this.laneAssignments.get(_);
1390
+ let p, S;
1391
+ const f = c === "estimate" || a.has(v);
1286
1392
  if (g !== void 0 && this.options.lanes > 1) {
1287
- I = g;
1288
- const w = h[I], E = w !== void 0 ? u[w] : void 0;
1289
- b = E ? E.end + this.options.gap : e + s;
1393
+ p = g;
1394
+ const I = m[p], A = I !== void 0 ? h[I] : void 0;
1395
+ S = A ? A.end + this.options.gap : t + s;
1290
1396
  } else {
1291
- const w = this.options.lanes === 1 ? u[_ - 1] : this.getFurthestMeasurement(u, _);
1292
- b = w ? w.end + this.options.gap : e + s, I = w ? w.lane : _ % this.options.lanes, this.options.lanes > 1 && N && this.laneAssignments.set(_, I);
1397
+ const I = this.options.lanes === 1 ? h[_ - 1] : this.getFurthestMeasurement(h, _);
1398
+ S = I ? I.end + this.options.gap : t + s, p = I ? I.lane : _ % this.options.lanes, this.options.lanes > 1 && f && this.laneAssignments.set(_, p);
1293
1399
  }
1294
- const p = c.get(m), y = typeof p == "number" ? p : this.options.estimateSize(_), f = b + y;
1295
- u[_] = {
1400
+ const b = a.get(v), y = typeof b == "number" ? b : this.options.estimateSize(_), E = S + y;
1401
+ h[_] = {
1296
1402
  index: _,
1297
- start: b,
1403
+ start: S,
1298
1404
  size: y,
1299
- end: f,
1300
- key: m,
1301
- lane: I
1302
- }, h[I] = _;
1405
+ end: E,
1406
+ key: v,
1407
+ lane: p
1408
+ }, m[p] = _;
1303
1409
  }
1304
- return this.measurementsCache = u, u;
1410
+ return this.measurementsCache = h, h;
1305
1411
  }, {
1306
1412
  key: process.env.NODE_ENV !== "production" && "getMeasurements",
1307
1413
  debug: () => this.options.debug
1308
- }), this.calculateRange = q(() => [
1414
+ }), this.calculateRange = P(() => [
1309
1415
  this.getMeasurements(),
1310
1416
  this.getSize(),
1311
1417
  this.getScrollOffset(),
1312
1418
  this.options.lanes
1313
- ], (t, e, s, r) => this.range = t.length > 0 && e > 0 ? qr({
1314
- measurements: t,
1315
- outerSize: e,
1419
+ ], (e, t, s, n) => this.range = e.length > 0 && t > 0 ? Un({
1420
+ measurements: e,
1421
+ outerSize: t,
1316
1422
  scrollOffset: s,
1317
- lanes: r
1423
+ lanes: n,
1424
+ flat: n === 1 && this._flatMeasurements != null ? this._flatMeasurements : null
1318
1425
  }) : null, {
1319
1426
  key: process.env.NODE_ENV !== "production" && "calculateRange",
1320
1427
  debug: () => this.options.debug
1321
- }), this.getVirtualIndexes = q(() => {
1322
- let t = null, e = null;
1428
+ }), this.getVirtualIndexes = P(() => {
1429
+ let e = null, t = null;
1323
1430
  const s = this.calculateRange();
1324
- return s && (t = s.startIndex, e = s.endIndex), this.maybeNotify.updateDeps([
1431
+ return s && (e = s.startIndex, t = s.endIndex), this.maybeNotify.updateDeps([
1325
1432
  this.isScrolling,
1326
- t,
1327
- e
1433
+ e,
1434
+ t
1328
1435
  ]), [
1329
1436
  this.options.rangeExtractor,
1330
1437
  this.options.overscan,
1331
1438
  this.options.count,
1332
- t,
1333
- e
1439
+ e,
1440
+ t
1334
1441
  ];
1335
- }, (t, e, s, r, i) => r === null || i === null ? [] : t({
1336
- startIndex: r,
1337
- endIndex: i,
1338
- overscan: e,
1442
+ }, (e, t, s, n, r) => n === null || r === null ? [] : e({
1443
+ startIndex: n,
1444
+ endIndex: r,
1445
+ overscan: t,
1339
1446
  count: s
1340
1447
  }), {
1341
1448
  key: process.env.NODE_ENV !== "production" && "getVirtualIndexes",
1342
1449
  debug: () => this.options.debug
1343
- }), this.indexFromElement = (t) => {
1344
- const e = this.options.indexAttribute, s = t.getAttribute(e);
1345
- return s ? parseInt(s, 10) : (console.warn(`Missing attribute name '${e}={index}' on measured element.`), -1);
1346
- }, this.shouldMeasureDuringScroll = (t) => {
1347
- var e;
1450
+ }), this.indexFromElement = (e) => {
1451
+ const t = this.options.indexAttribute, s = e.getAttribute(t);
1452
+ return s ? parseInt(s, 10) : (console.warn(`Missing attribute name '${t}={index}' on measured element.`), -1);
1453
+ }, this.shouldMeasureDuringScroll = (e) => {
1454
+ var t;
1348
1455
  if (!this.scrollState || this.scrollState.behavior !== "smooth") return !0;
1349
- const s = this.scrollState.index ?? ((e = this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)) == null ? void 0 : e.index);
1456
+ const s = this.scrollState.index ?? ((t = this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)) == null ? void 0 : t.index);
1350
1457
  if (s !== void 0 && this.range) {
1351
- const r = Math.max(this.options.overscan, Math.ceil((this.range.endIndex - this.range.startIndex) / 2)), i = Math.max(0, s - r), a = Math.min(this.options.count - 1, s + r);
1352
- return t >= i && t <= a;
1458
+ const n = Math.max(this.options.overscan, Math.ceil((this.range.endIndex - this.range.startIndex) / 2)), r = Math.max(0, s - n), o = Math.min(this.options.count - 1, s + n);
1459
+ return e >= r && e <= o;
1353
1460
  }
1354
1461
  return !0;
1355
- }, this.measureElement = (t) => {
1356
- if (!t) {
1357
- this.elementsCache.forEach((i, a) => {
1358
- i.isConnected || (this.observer.unobserve(i), this.elementsCache.delete(a));
1462
+ }, this.measureElement = (e) => {
1463
+ if (!e) {
1464
+ this.elementsCache.forEach((r, o) => {
1465
+ r.isConnected || (this.observer.unobserve(r), this.elementsCache.delete(o));
1359
1466
  });
1360
1467
  return;
1361
1468
  }
1362
- const e = this.indexFromElement(t), s = this.options.getItemKey(e), r = this.elementsCache.get(s);
1363
- r !== t && (r && this.observer.unobserve(r), this.observer.observe(t), this.elementsCache.set(s, t)), (!this.isScrolling || this.scrollState) && this.shouldMeasureDuringScroll(e) && this.resizeItem(e, this.options.measureElement(t, void 0, this));
1364
- }, this.resizeItem = (t, e) => {
1365
- var s;
1366
- const r = this.measurementsCache[t];
1367
- if (!r) return;
1368
- const i = e - (this.itemSizeCache.get(r.key) ?? r.size);
1369
- i !== 0 && (((s = this.scrollState) == null ? void 0 : s.behavior) !== "smooth" && (this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(r, i, this) : r.start < this.getScrollOffset() + this.scrollAdjustments) && (process.env.NODE_ENV !== "production" && this.options.debug && console.info("correction", i), this._scrollToOffset(this.getScrollOffset(), {
1370
- adjustments: this.scrollAdjustments += i,
1371
- behavior: void 0
1372
- })), this.pendingMeasuredCacheIndexes.push(r.index), this.itemSizeCache = new Map(this.itemSizeCache.set(r.key, e)), this.notify(!1));
1373
- }, this.getVirtualItems = q(() => [this.getVirtualIndexes(), this.getMeasurements()], (t, e) => {
1469
+ const t = this.indexFromElement(e), s = this.options.getItemKey(t), n = this.elementsCache.get(s);
1470
+ n !== e && (n && this.observer.unobserve(n), this.observer.observe(e), this.elementsCache.set(s, e)), (!this.isScrolling || this.scrollState) && this.shouldMeasureDuringScroll(t) && this.resizeItem(t, this.options.measureElement(e, void 0, this));
1471
+ }, this.resizeItem = (e, t) => {
1472
+ var s, n;
1473
+ if (e < 0 || e >= this.options.count) return;
1474
+ let r, o, c;
1475
+ const d = this._flatMeasurements;
1476
+ if (this.options.lanes === 1 && d !== null)
1477
+ c = this.options.getItemKey(e), o = d[e * 2], r = d[e * 2 + 1];
1478
+ else {
1479
+ const u = this.measurementsCache[e];
1480
+ if (!u) return;
1481
+ c = u.key, o = u.start, r = u.size;
1482
+ }
1483
+ const a = t - (this.itemSizeCache.get(c) ?? r);
1484
+ if (a !== 0) {
1485
+ const u = this.options.anchorTo === "end" && ((s = this.scrollState) == null ? void 0 : s.behavior) !== "smooth" && this.getVirtualDistanceFromEnd() <= this.options.scrollEndThreshold, h = u ? this.getTotalSize() : 0, m = ((n = this.scrollState) == null ? void 0 : n.behavior) !== "smooth" && (this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e] ?? {
1486
+ index: e,
1487
+ key: c,
1488
+ start: o,
1489
+ size: r,
1490
+ end: o + r,
1491
+ lane: 0
1492
+ }, a, this) : o < this.getScrollOffset() + this.scrollAdjustments && this.scrollDirection !== "backward");
1493
+ (this.pendingMin === null || e < this.pendingMin) && (this.pendingMin = e), this.itemSizeCache.set(c, t), this.itemSizeCacheVersion++, u ? this.applyScrollAdjustment(this.getTotalSize() - h) : m && this.applyScrollAdjustment(a), this.notify(!1);
1494
+ }
1495
+ }, this.getVirtualItems = P(() => [this.getVirtualIndexes(), this.getMeasurements()], (e, t) => {
1374
1496
  const s = [];
1375
- for (let r = 0, i = t.length; r < i; r++) {
1376
- const a = e[t[r]];
1377
- s.push(a);
1497
+ for (let n = 0, r = e.length; n < r; n++) {
1498
+ const o = t[e[n]];
1499
+ s.push(o);
1378
1500
  }
1379
1501
  return s;
1380
1502
  }, {
1381
1503
  key: process.env.NODE_ENV !== "production" && "getVirtualItems",
1382
1504
  debug: () => this.options.debug
1383
- }), this.getVirtualItemForOffset = (t) => {
1384
- const e = this.getMeasurements();
1385
- if (e.length !== 0)
1386
- return de(e[pe(0, e.length - 1, (s) => de(e[s]).start, t)]);
1505
+ }), this.getVirtualItemForOffset = (e) => {
1506
+ const t = this.getMeasurements();
1507
+ if (t.length === 0) return;
1508
+ const s = this._flatMeasurements, n = this.options.lanes === 1 && s != null;
1509
+ return ue(t[ge(0, t.length - 1, n ? (r) => s[r * 2] : (r) => ue(t[r]).start, e)]);
1387
1510
  }, this.getMaxScrollOffset = () => {
1388
1511
  if (!this.scrollElement) return 0;
1389
1512
  if ("scrollHeight" in this.scrollElement) return this.options.horizontal ? this.scrollElement.scrollWidth - this.scrollElement.clientWidth : this.scrollElement.scrollHeight - this.scrollElement.clientHeight;
1390
1513
  {
1391
- const t = this.scrollElement.document.documentElement;
1392
- return this.options.horizontal ? t.scrollWidth - this.scrollElement.innerWidth : t.scrollHeight - this.scrollElement.innerHeight;
1514
+ const e = this.scrollElement.document.documentElement;
1515
+ return this.options.horizontal ? e.scrollWidth - this.scrollElement.innerWidth : e.scrollHeight - this.scrollElement.innerHeight;
1393
1516
  }
1394
- }, this.getOffsetForAlignment = (t, e, s = 0) => {
1517
+ }, this.getVirtualDistanceFromEnd = () => Math.max(this.getTotalSize() - this.getSize() - this.getScrollOffset(), 0), this.getDistanceFromEnd = () => Math.max(this.getMaxScrollOffset() - this.getScrollOffset(), 0), this.isAtEnd = (e = this.options.scrollEndThreshold) => this.getDistanceFromEnd() <= e, this.getOffsetForAlignment = (e, t, s = 0) => {
1395
1518
  if (!this.scrollElement) return 0;
1396
- const r = this.getSize(), i = this.getScrollOffset();
1397
- e === "auto" && (e = t >= i + r ? "end" : "start"), e === "center" ? t += (s - r) / 2 : e === "end" && (t -= r);
1398
- const a = this.getMaxScrollOffset();
1399
- return Math.max(Math.min(a, t), 0);
1400
- }, this.getOffsetForIndex = (t, e = "auto") => {
1401
- t = Math.max(0, Math.min(t, this.options.count - 1));
1402
- const s = this.getSize(), r = this.getScrollOffset(), i = this.measurementsCache[t];
1403
- if (!i) return;
1404
- if (e === "auto") if (i.end >= r + s - this.options.scrollPaddingEnd) e = "end";
1405
- else if (i.start <= r + this.options.scrollPaddingStart) e = "start";
1406
- else return [r, e];
1407
- if (e === "end" && t === this.options.count - 1) return [this.getMaxScrollOffset(), e];
1408
- const a = e === "end" ? i.end + this.options.scrollPaddingEnd : i.start - this.options.scrollPaddingStart;
1409
- return [this.getOffsetForAlignment(a, e, i.size), e];
1410
- }, this.scrollToOffset = (t, { align: e = "start", behavior: s = "auto" } = {}) => {
1411
- const r = this.getOffsetForAlignment(t, e), i = this.now();
1519
+ const n = this.getSize(), r = this.getScrollOffset();
1520
+ t === "auto" && (t = e >= r + n ? "end" : "start"), t === "center" ? e += (s - n) / 2 : t === "end" && (e -= n);
1521
+ const o = this.getMaxScrollOffset();
1522
+ return Math.max(Math.min(o, e), 0);
1523
+ }, this.getOffsetForIndex = (e, t = "auto") => {
1524
+ e = Math.max(0, Math.min(e, this.options.count - 1));
1525
+ const s = this.getSize(), n = this.getScrollOffset(), r = this.measurementsCache[e];
1526
+ if (!r) return;
1527
+ if (t === "auto") if (r.end >= n + s - this.options.scrollPaddingEnd) t = "end";
1528
+ else if (r.start <= n + this.options.scrollPaddingStart) t = "start";
1529
+ else return [n, t];
1530
+ if (t === "end" && e === this.options.count - 1) return [this.getMaxScrollOffset(), t];
1531
+ const o = t === "end" ? r.end + this.options.scrollPaddingEnd : r.start - this.options.scrollPaddingStart;
1532
+ return [this.getOffsetForAlignment(o, t, r.size), t];
1533
+ }, this.scrollToOffset = (e, { align: t = "start", behavior: s = "auto" } = {}) => {
1534
+ const n = this.getOffsetForAlignment(e, t), r = this.now();
1412
1535
  this.scrollState = {
1413
1536
  index: null,
1414
- align: e,
1537
+ align: t,
1415
1538
  behavior: s,
1416
- startedAt: i,
1417
- lastTargetOffset: r,
1539
+ startedAt: r,
1540
+ lastTargetOffset: n,
1418
1541
  stableFrames: 0
1419
- }, this._scrollToOffset(r, {
1542
+ }, this._scrollToOffset(n, {
1420
1543
  adjustments: void 0,
1421
1544
  behavior: s
1422
1545
  }), this.scheduleScrollReconcile();
1423
- }, this.scrollToIndex = (t, { align: e = "auto", behavior: s = "auto" } = {}) => {
1424
- t = Math.max(0, Math.min(t, this.options.count - 1));
1425
- const r = this.getOffsetForIndex(t, e);
1426
- if (!r) return;
1427
- const [i, a] = r, o = this.now();
1546
+ }, this.scrollToIndex = (e, { align: t = "auto", behavior: s = "auto" } = {}) => {
1547
+ e = Math.max(0, Math.min(e, this.options.count - 1));
1548
+ const n = this.getOffsetForIndex(e, t);
1549
+ if (!n) return;
1550
+ const [r, o] = n, c = this.now();
1428
1551
  this.scrollState = {
1429
- index: t,
1430
- align: a,
1552
+ index: e,
1553
+ align: o,
1431
1554
  behavior: s,
1432
- startedAt: o,
1433
- lastTargetOffset: i,
1555
+ startedAt: c,
1556
+ lastTargetOffset: r,
1434
1557
  stableFrames: 0
1435
- }, this._scrollToOffset(i, {
1558
+ }, this._scrollToOffset(r, {
1436
1559
  adjustments: void 0,
1437
1560
  behavior: s
1438
1561
  }), this.scheduleScrollReconcile();
1439
- }, this.scrollBy = (t, { behavior: e = "auto" } = {}) => {
1440
- const s = this.getScrollOffset() + t, r = this.now();
1562
+ }, this.scrollBy = (e, { behavior: t = "auto" } = {}) => {
1563
+ const s = this.getScrollOffset() + e, n = this.now();
1441
1564
  this.scrollState = {
1442
1565
  index: null,
1443
1566
  align: "start",
1444
- behavior: e,
1445
- startedAt: r,
1567
+ behavior: t,
1568
+ startedAt: n,
1446
1569
  lastTargetOffset: s,
1447
1570
  stableFrames: 0
1448
1571
  }, this._scrollToOffset(s, {
1449
1572
  adjustments: void 0,
1450
- behavior: e
1573
+ behavior: t
1451
1574
  }), this.scheduleScrollReconcile();
1575
+ }, this.scrollToEnd = ({ behavior: e = "auto" } = {}) => {
1576
+ if (this.options.count > 0) {
1577
+ this.scrollToIndex(this.options.count - 1, {
1578
+ align: "end",
1579
+ behavior: e
1580
+ });
1581
+ return;
1582
+ }
1583
+ this.scrollToOffset(Math.max(this.getTotalSize() - this.getSize(), 0), { behavior: e });
1452
1584
  }, this.getTotalSize = () => {
1453
- var t;
1454
- const e = this.getMeasurements();
1585
+ var e;
1586
+ const t = this.getMeasurements();
1455
1587
  let s;
1456
- if (e.length === 0) s = this.options.paddingStart;
1457
- else if (this.options.lanes === 1) s = ((t = e[e.length - 1]) == null ? void 0 : t.end) ?? 0;
1458
- else {
1459
- const r = Array(this.options.lanes).fill(null);
1460
- let i = e.length - 1;
1461
- for (; i >= 0 && r.some((a) => a === null); ) {
1462
- const a = e[i];
1463
- r[a.lane] === null && (r[a.lane] = a.end), i--;
1588
+ if (t.length === 0) s = this.options.paddingStart;
1589
+ else if (this.options.lanes === 1) {
1590
+ const n = t.length - 1, r = this._flatMeasurements;
1591
+ r != null ? s = r[n * 2] + r[n * 2 + 1] : s = ((e = t[n]) == null ? void 0 : e.end) ?? 0;
1592
+ } else {
1593
+ const n = Array(this.options.lanes).fill(null);
1594
+ let r = t.length - 1;
1595
+ for (; r >= 0 && n.some((o) => o === null); ) {
1596
+ const o = t[r];
1597
+ n[o.lane] === null && (n[o.lane] = o.end), r--;
1464
1598
  }
1465
- s = Math.max(...r.filter((a) => a !== null));
1599
+ s = Math.max(...n.filter((o) => o !== null));
1466
1600
  }
1467
1601
  return Math.max(s - this.options.scrollMargin + this.options.paddingEnd, 0);
1468
- }, this._scrollToOffset = (t, { adjustments: e, behavior: s }) => {
1469
- this.options.scrollToFn(t, {
1602
+ }, this.takeSnapshot = () => {
1603
+ const e = [];
1604
+ if (this.itemSizeCache.size === 0) return e;
1605
+ const t = this.getMeasurements();
1606
+ for (const s of t) s && this.itemSizeCache.has(s.key) && e.push({
1607
+ index: s.index,
1608
+ key: s.key,
1609
+ start: s.start,
1610
+ size: s.size,
1611
+ end: s.end,
1612
+ lane: s.lane
1613
+ });
1614
+ return e;
1615
+ }, this._scrollToOffset = (e, { adjustments: t, behavior: s }) => {
1616
+ this._intendedScrollOffset = e + (t ?? 0), this.options.scrollToFn(e, {
1470
1617
  behavior: s,
1471
- adjustments: e
1618
+ adjustments: t
1472
1619
  }, this);
1473
1620
  }, this.measure = () => {
1474
- this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.notify(!1);
1475
- }, this.setOptions(n);
1621
+ this.pendingMin = null, this.itemSizeCache.clear(), this.laneAssignments.clear(), this.itemSizeCacheVersion++, this.notify(!1);
1622
+ }, this.setOptions(l);
1623
+ }
1624
+ applyScrollAdjustment(l, e) {
1625
+ l !== 0 && (process.env.NODE_ENV !== "production" && this.options.debug && console.info("correction", l), se() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded) ? this._iosDeferredAdjustment += l : this._scrollToOffset(this.getScrollOffset(), {
1626
+ adjustments: this.scrollAdjustments += l,
1627
+ behavior: e
1628
+ }));
1476
1629
  }
1477
1630
  scheduleScrollReconcile() {
1478
1631
  if (!this.targetWindow) {
@@ -1489,233 +1642,285 @@ var Dr = (n, t) => Math.abs(n - t) < 1.01, fe = (n, t, e) => {
1489
1642
  this.scrollState = null;
1490
1643
  return;
1491
1644
  }
1492
- const n = this.scrollState.index != null ? this.getOffsetForIndex(this.scrollState.index, this.scrollState.align) : void 0, t = n ? n[0] : this.scrollState.lastTargetOffset, e = 1, s = t !== this.scrollState.lastTargetOffset;
1493
- if (!s && Dr(t, this.getScrollOffset())) {
1494
- if (this.scrollState.stableFrames++, this.scrollState.stableFrames >= e) {
1495
- this.scrollState = null;
1645
+ const l = this.scrollState.index != null ? this.getOffsetForIndex(this.scrollState.index, this.scrollState.align) : void 0, e = l ? l[0] : this.scrollState.lastTargetOffset, t = 1, s = e !== this.scrollState.lastTargetOffset;
1646
+ if (!s && Rn(e, this.getScrollOffset())) {
1647
+ if (this.scrollState.stableFrames++, this.scrollState.stableFrames >= t) {
1648
+ this.getScrollOffset() !== e && this._scrollToOffset(e, {
1649
+ adjustments: void 0,
1650
+ behavior: "auto"
1651
+ }), this.scrollState = null;
1496
1652
  return;
1497
1653
  }
1498
- } else
1499
- this.scrollState.stableFrames = 0, s && (this.scrollState.lastTargetOffset = t, this.scrollState.behavior = "auto", this._scrollToOffset(t, {
1654
+ } else if (this.scrollState.stableFrames = 0, s) {
1655
+ const n = this.getSize() || 600, r = Math.abs(e - this.getScrollOffset()), o = this.scrollState.behavior === "smooth" && r > n;
1656
+ this.scrollState.lastTargetOffset = e, o || (this.scrollState.behavior = "auto"), this._scrollToOffset(e, {
1500
1657
  adjustments: void 0,
1501
- behavior: "auto"
1502
- }));
1658
+ behavior: o ? "smooth" : "auto"
1659
+ });
1660
+ }
1503
1661
  this.scheduleScrollReconcile();
1504
1662
  }
1505
- }, pe = (n, t, e, s) => {
1506
- for (; n <= t; ) {
1507
- const r = (n + t) / 2 | 0, i = e(r);
1508
- if (i < s) n = r + 1;
1509
- else if (i > s) t = r - 1;
1510
- else return r;
1663
+ }, ge = (l, e, t, s) => {
1664
+ for (; l <= e; ) {
1665
+ const n = (l + e) / 2 | 0, r = t(n);
1666
+ if (r < s) l = n + 1;
1667
+ else if (r > s) e = n - 1;
1668
+ else return n;
1511
1669
  }
1512
- return n > 0 ? n - 1 : 0;
1670
+ return l > 0 ? l - 1 : 0;
1513
1671
  };
1514
- function qr({ measurements: n, outerSize: t, scrollOffset: e, lanes: s }) {
1515
- const r = n.length - 1, i = (c) => n[c].start;
1516
- if (n.length <= s) return {
1672
+ function Un({ measurements: l, outerSize: e, scrollOffset: t, lanes: s, flat: n }) {
1673
+ const r = l.length - 1, o = n ? (u) => n[u * 2] : (u) => l[u].start, c = n ? (u) => n[u * 2] + n[u * 2 + 1] : (u) => l[u].end;
1674
+ if (l.length <= s) return {
1517
1675
  startIndex: 0,
1518
1676
  endIndex: r
1519
1677
  };
1520
- let a = pe(0, r, i, e), o = a;
1521
- if (s === 1) for (; o < r && n[o].end < e + t; ) o++;
1678
+ let d = ge(0, r, o, t), a = d;
1679
+ if (s === 1) for (; a < r && c(a) < t + e; ) a++;
1522
1680
  else if (s > 1) {
1523
- const c = Array(s).fill(0);
1524
- for (; o < r && c.some((u) => u < e + t); ) {
1525
- const u = n[o];
1526
- c[u.lane] = u.end, o++;
1681
+ const u = Array(s).fill(0);
1682
+ for (; a < r && u.some((m) => m < t + e); ) {
1683
+ const m = l[a];
1684
+ u[m.lane] = m.end, a++;
1527
1685
  }
1528
- const d = Array(s).fill(e + t);
1529
- for (; a >= 0 && d.some((u) => u >= e); ) {
1530
- const u = n[a];
1531
- d[u.lane] = u.start, a--;
1686
+ const h = Array(s).fill(t + e);
1687
+ for (; d >= 0 && h.some((m) => m >= t); ) {
1688
+ const m = l[d];
1689
+ h[m.lane] = m.start, d--;
1532
1690
  }
1533
- a = Math.max(0, a - a % s), o = Math.min(r, o + (s - 1 - o % s));
1691
+ d = Math.max(0, d - d % s), a = Math.min(r, a + (s - 1 - a % s));
1534
1692
  }
1535
1693
  return {
1536
- startIndex: a,
1537
- endIndex: o
1694
+ startIndex: d,
1695
+ endIndex: a
1538
1696
  };
1539
1697
  }
1540
- var ue = typeof document < "u" ? Q.useLayoutEffect : Q.useEffect;
1541
- function ve({ useFlushSync: n = !0, ...t }) {
1542
- const e = Q.useReducer(() => ({}), {})[1], s = {
1543
- ...t,
1544
- onChange: (i, a) => {
1545
- var o;
1546
- n && a ? je(e) : e(), (o = t.onChange) == null || o.call(t, i, a);
1698
+ var ne = typeof document < "u" ? Y.useLayoutEffect : Y.useEffect;
1699
+ function ye({ useFlushSync: l = !0, directDomUpdates: e = !1, directDomUpdatesMode: t = "transform", ...s }) {
1700
+ const n = Y.useReducer((a) => a + 1, 0)[1], r = Y.useRef({
1701
+ enabled: e,
1702
+ mode: t,
1703
+ container: null,
1704
+ lastSize: null,
1705
+ lastPositions: /* @__PURE__ */ new WeakMap(),
1706
+ prevRange: null
1707
+ });
1708
+ r.current.enabled = e, r.current.mode = t;
1709
+ const o = (a) => {
1710
+ const u = r.current;
1711
+ if (!u.enabled) return;
1712
+ const h = a.getTotalSize();
1713
+ if (u.container && h !== u.lastSize) {
1714
+ u.lastSize = h;
1715
+ const S = a.options.horizontal ? "width" : "height";
1716
+ u.container.style[S] = `${h}px`;
1547
1717
  }
1548
- }, [r] = Q.useState(() => new jr(s));
1549
- return r.setOptions(s), ue(() => r._didMount(), []), ue(() => r._willUpdate()), r;
1718
+ const m = !!a.options.horizontal, _ = u.mode === "transform", v = m ? "left" : "top", g = a.options.scrollMargin, p = a.getVirtualItems();
1719
+ for (const S of p) {
1720
+ const f = S.start - g, b = a.elementsCache.get(S.key);
1721
+ b && u.lastPositions.get(b) !== f && (u.lastPositions.set(b, f), _ ? b.style.transform = m ? `translate3d(${f}px, 0, 0)` : `translate3d(0, ${f}px, 0)` : b.style[v] = `${f}px`);
1722
+ }
1723
+ }, c = {
1724
+ ...s,
1725
+ onChange: (a, u) => {
1726
+ var h;
1727
+ const m = r.current;
1728
+ let _ = !0;
1729
+ if (m.enabled) {
1730
+ o(a);
1731
+ const v = a.range, g = m.prevRange;
1732
+ _ = !g || g.isScrolling !== a.isScrolling || g.startIndex !== v?.startIndex || g.endIndex !== v?.endIndex, _ && (m.prevRange = v ? {
1733
+ startIndex: v.startIndex,
1734
+ endIndex: v.endIndex,
1735
+ isScrolling: a.isScrolling
1736
+ } : null);
1737
+ }
1738
+ _ && (l && u ? qe(n) : n()), (h = s.onChange) == null || h.call(s, a, u);
1739
+ }
1740
+ }, [d] = Y.useState(() => {
1741
+ const a = new Xn(c);
1742
+ return Object.assign(a, { containerRef: (u) => {
1743
+ const h = r.current;
1744
+ if (h.container = u, h.lastSize = null, u && h.enabled) {
1745
+ const m = a.getTotalSize();
1746
+ h.lastSize = m;
1747
+ const _ = a.options.horizontal ? "width" : "height";
1748
+ u.style[_] = `${m}px`;
1749
+ }
1750
+ } });
1751
+ });
1752
+ return d.setOptions(c), ne(() => d._didMount(), []), ne(() => d._willUpdate()), ne(() => {
1753
+ o(d);
1754
+ }), d;
1550
1755
  }
1551
- function Pr(n) {
1552
- return ve({
1553
- observeElementRect: Tr,
1554
- observeElementOffset: Ar,
1555
- scrollToFn: Vr,
1556
- ...n
1756
+ function Zn(l) {
1757
+ return ye({
1758
+ observeElementRect: Vn,
1759
+ observeElementOffset: Pn,
1760
+ scrollToFn: Hn,
1761
+ ...l
1557
1762
  });
1558
1763
  }
1559
- function Hr(n) {
1560
- return ve({
1764
+ function Yn(l) {
1765
+ return ye({
1561
1766
  getScrollElement: () => typeof document < "u" ? window : null,
1562
- observeElementRect: Wr,
1563
- observeElementOffset: kr,
1564
- scrollToFn: Fr,
1767
+ observeElementRect: Bn,
1768
+ observeElementOffset: qn,
1769
+ scrollToFn: Gn,
1565
1770
  initialOffset: () => typeof document < "u" ? window.scrollY : 0,
1566
- ...n
1771
+ ...l
1567
1772
  });
1568
1773
  }
1569
- var Gr = "styles-module__virtualList___pM6rN", Kr = "styles-module__emptyContainer___rm938", Xr = "styles-module__virtualListInner___HxRzc", Ur = "styles-module__virtualListItems___p19-a", Zr = "styles-module__loadingMore___zAdLM", Yr = "styles-module__endOfList___5cYFh", V = {
1570
- virtualList: Gr,
1571
- emptyContainer: Kr,
1572
- virtualListInner: Xr,
1573
- virtualListItems: Ur,
1574
- loadingMore: Zr,
1575
- endOfList: Yr
1774
+ var Jn = "styles-module__virtualList___pM6rN", Qn = "styles-module__emptyContainer___rm938", er = "styles-module__virtualListInner___HxRzc", tr = "styles-module__virtualListItems___p19-a", sr = "styles-module__loadingMore___zAdLM", nr = "styles-module__endOfList___5cYFh", B = {
1775
+ virtualList: Jn,
1776
+ emptyContainer: Qn,
1777
+ virtualListInner: er,
1778
+ virtualListItems: tr,
1779
+ loadingMore: sr,
1780
+ endOfList: nr
1576
1781
  };
1577
- function Qr({ data: n, hasNextPage: t, isFetchingNextPage: e, fetchNextPage: s, renderItem: r, estimateSize: i = 200, overscan: a = 5, height: o = "600px", getItemKey: c, emptyState: d, loadingIndicator: u, endOfListIndicator: h, emptyText: _ = "No data", loadingMoreText: m = "Loading more...", endOfListText: g = "No more items", flexClass: I, outerClass: b, innerClass: N, ...p }) {
1578
- const y = te(null), f = Array.isArray(n) ? n : [], w = f.length, E = Pr({
1579
- count: t ? w + 1 : w,
1580
- getScrollElement: () => y.current,
1581
- estimateSize: typeof i == "number" ? () => i : i,
1582
- overscan: a,
1583
- ...p
1584
- }), k = E.getVirtualItems();
1585
- H(() => {
1586
- const [O] = [...k].reverse();
1587
- O && O.index >= w - 1 && t && !e && s && s();
1782
+ function rr({ data: l, hasNextPage: e, isFetchingNextPage: t, fetchNextPage: s, renderItem: n, estimateSize: r = 200, overscan: o = 5, height: c = "600px", getItemKey: d, emptyState: a, loadingIndicator: u, endOfListIndicator: h, emptyText: m = "No data", loadingMoreText: _ = "Loading more...", endOfListText: v = "No more items", flexClass: g, outerClass: p, innerClass: S, ...f }) {
1783
+ const b = te(null), y = Array.isArray(l) ? l : [], E = y.length, I = Zn({
1784
+ count: e ? E + 1 : E,
1785
+ getScrollElement: () => b.current,
1786
+ estimateSize: typeof r == "number" ? () => r : r,
1787
+ overscan: o,
1788
+ ...f
1789
+ }), A = I.getVirtualItems();
1790
+ K(() => {
1791
+ const [z] = [...A].reverse();
1792
+ z && z.index >= E - 1 && e && !t && s && s();
1588
1793
  }, [
1589
- t,
1590
- s,
1591
- w,
1592
1794
  e,
1593
- k
1795
+ s,
1796
+ E,
1797
+ t,
1798
+ A
1594
1799
  ]);
1595
- const G = P(() => /* @__PURE__ */ l("div", {
1596
- className: V.virtualList,
1597
- style: { height: typeof o == "number" ? `${o}px` : o },
1598
- children: d ?? /* @__PURE__ */ l("div", {
1599
- className: V.emptyContainer,
1600
- children: /* @__PURE__ */ l("span", { children: _ })
1800
+ const G = q(() => /* @__PURE__ */ i("div", {
1801
+ className: B.virtualList,
1802
+ style: { height: typeof c == "number" ? `${c}px` : c },
1803
+ children: a ?? /* @__PURE__ */ i("div", {
1804
+ className: B.emptyContainer,
1805
+ children: /* @__PURE__ */ i("span", { children: m })
1601
1806
  })
1602
1807
  }), [
1603
- d,
1604
- o,
1605
- _
1606
- ]), S = P(() => u || /* @__PURE__ */ l("div", {
1607
- className: V.loadingMore,
1608
- children: /* @__PURE__ */ l("span", { children: m })
1609
- }), [u, m]), x = P(() => h || /* @__PURE__ */ l("div", {
1610
- className: V.endOfList,
1611
- children: /* @__PURE__ */ l("span", { children: g })
1612
- }), [h, g]);
1613
- return w === 0 ? G() : /* @__PURE__ */ l("div", {
1614
- ref: y,
1615
- className: `${V.virtualList} ${b ?? ""}`,
1616
- style: { height: typeof o == "number" ? `${o}px` : o },
1617
- children: /* @__PURE__ */ l("div", {
1618
- className: `${V.virtualListInner} ${N ?? ""}`,
1619
- style: { height: `${E.getTotalSize()}px` },
1620
- children: /* @__PURE__ */ l("div", {
1621
- className: `${V.virtualListItems} ${I ?? ""}`,
1808
+ a,
1809
+ c,
1810
+ m
1811
+ ]), N = q(() => u || /* @__PURE__ */ i("div", {
1812
+ className: B.loadingMore,
1813
+ children: /* @__PURE__ */ i("span", { children: _ })
1814
+ }), [u, _]), x = q(() => h || /* @__PURE__ */ i("div", {
1815
+ className: B.endOfList,
1816
+ children: /* @__PURE__ */ i("span", { children: v })
1817
+ }), [h, v]);
1818
+ return E === 0 ? G() : /* @__PURE__ */ i("div", {
1819
+ ref: b,
1820
+ className: `${B.virtualList} ${p ?? ""}`,
1821
+ style: { height: typeof c == "number" ? `${c}px` : c },
1822
+ children: /* @__PURE__ */ i("div", {
1823
+ className: `${B.virtualListInner} ${S ?? ""}`,
1824
+ style: { height: `${I.getTotalSize()}px` },
1825
+ children: /* @__PURE__ */ i("div", {
1826
+ className: `${B.virtualListItems} ${g ?? ""}`,
1622
1827
  style: {
1623
- transform: `translateY(${k[0]?.start ?? 0}px)`,
1828
+ transform: `translateY(${A[0]?.start ?? 0}px)`,
1624
1829
  paddingTop: "2px"
1625
1830
  },
1626
- children: k.map((O) => {
1627
- const $ = O.index > w - 1, le = f[O.index];
1628
- return /* @__PURE__ */ l("div", {
1629
- "data-index": O.index,
1630
- ref: E.measureElement,
1631
- children: $ ? t ? S() : x() : /* @__PURE__ */ l("div", { children: r(le, O.index) }, c(le, O.index))
1632
- }, O.key);
1831
+ children: A.map((z) => {
1832
+ const T = z.index > E - 1, oe = y[z.index];
1833
+ return /* @__PURE__ */ i("div", {
1834
+ "data-index": z.index,
1835
+ ref: I.measureElement,
1836
+ children: T ? e ? N() : x() : /* @__PURE__ */ i("div", { children: n(oe, z.index) }, d(oe, z.index))
1837
+ }, z.key);
1633
1838
  })
1634
1839
  })
1635
1840
  })
1636
1841
  });
1637
1842
  }
1638
- var yn = z(Qr), Jr = "styles-module__virtualList___xmj2v", en = "styles-module__virtualListInner___quD74", tn = "styles-module__virtualListItems___-Muml", sn = "styles-module__virtualListRow___h3pzX", rn = "styles-module__emptyContainer___LIy8r", nn = "styles-module__loadingMore___Mzf-p", ln = "styles-module__endOfList___g5G--", j = {
1639
- virtualList: Jr,
1640
- virtualListInner: en,
1641
- virtualListItems: tn,
1642
- virtualListRow: sn,
1643
- emptyContainer: rn,
1644
- loadingMore: nn,
1645
- endOfList: ln
1843
+ var Ir = D(rr), lr = "styles-module__virtualList___xmj2v", ir = "styles-module__virtualListInner___quD74", or = "styles-module__virtualListItems___-Muml", ar = "styles-module__virtualListRow___h3pzX", cr = "styles-module__emptyContainer___LIy8r", dr = "styles-module__loadingMore___Mzf-p", ur = "styles-module__endOfList___g5G--", j = {
1844
+ virtualList: lr,
1845
+ virtualListInner: ir,
1846
+ virtualListItems: or,
1847
+ virtualListRow: ar,
1848
+ emptyContainer: cr,
1849
+ loadingMore: dr,
1850
+ endOfList: ur
1646
1851
  };
1647
- function an({ data: n, hasNextPage: t, isFetchingNextPage: e, fetchNextPage: s, renderItem: r, estimateSize: i = 200, overscan: a = 5, height: o, getItemKey: c, emptyState: d, loadingIndicator: u, endOfListIndicator: h, emptyText: _ = "No data", loadingMoreText: m = "Loading more...", endOfListText: g = "No more items", flexClass: I, outerClass: b, innerClass: N, ...p }) {
1648
- const y = Array.isArray(n) ? n : [], f = y.length, w = Hr({
1649
- count: t ? f + 1 : f,
1650
- estimateSize: typeof i == "number" ? () => i : i,
1651
- overscan: a,
1652
- ...p
1653
- }), E = w.getVirtualItems();
1654
- H(() => {
1655
- const x = E[E.length - 1];
1656
- x && x.index >= f && t && !e && s && s();
1852
+ function hr({ data: l, hasNextPage: e, isFetchingNextPage: t, fetchNextPage: s, renderItem: n, estimateSize: r = 200, overscan: o = 5, height: c, getItemKey: d, emptyState: a, loadingIndicator: u, endOfListIndicator: h, emptyText: m = "No data", loadingMoreText: _ = "Loading more...", endOfListText: v = "No more items", flexClass: g, outerClass: p, innerClass: S, ...f }) {
1853
+ const b = Array.isArray(l) ? l : [], y = b.length, E = Yn({
1854
+ count: e ? y + 1 : y,
1855
+ estimateSize: typeof r == "number" ? () => r : r,
1856
+ overscan: o,
1857
+ ...f
1858
+ }), I = E.getVirtualItems();
1859
+ K(() => {
1860
+ const x = I[I.length - 1];
1861
+ x && x.index >= y && e && !t && s && s();
1657
1862
  }, [
1658
- E,
1659
- t,
1863
+ I,
1660
1864
  e,
1865
+ t,
1661
1866
  s,
1662
- f
1867
+ y
1663
1868
  ]);
1664
- const k = P(() => /* @__PURE__ */ l("div", {
1869
+ const A = q(() => /* @__PURE__ */ i("div", {
1665
1870
  className: j.virtualList,
1666
- style: { height: typeof o == "number" ? `${o}px` : o ?? "auto" },
1667
- children: d ?? /* @__PURE__ */ l("div", {
1871
+ style: { height: typeof c == "number" ? `${c}px` : c ?? "auto" },
1872
+ children: a ?? /* @__PURE__ */ i("div", {
1668
1873
  className: j.emptyContainer,
1669
- children: /* @__PURE__ */ l("span", { children: _ })
1874
+ children: /* @__PURE__ */ i("span", { children: m })
1670
1875
  })
1671
1876
  }), [
1672
- d,
1673
- o,
1674
- _
1675
- ]), G = P(() => u ?? /* @__PURE__ */ l("div", {
1877
+ a,
1878
+ c,
1879
+ m
1880
+ ]), G = q(() => u ?? /* @__PURE__ */ i("div", {
1676
1881
  className: j.loadingMore,
1677
- children: /* @__PURE__ */ l("span", { children: m })
1678
- }), [u, m]), S = P(() => h ?? /* @__PURE__ */ l("div", {
1882
+ children: /* @__PURE__ */ i("span", { children: _ })
1883
+ }), [u, _]), N = q(() => h ?? /* @__PURE__ */ i("div", {
1679
1884
  className: j.endOfList,
1680
- children: /* @__PURE__ */ l("span", { children: g })
1681
- }), [h, g]);
1682
- return f === 0 ? k() : /* @__PURE__ */ l("div", {
1683
- className: `${j.virtualList} ${b ?? ""}`,
1684
- children: /* @__PURE__ */ l("div", {
1685
- className: `${j.virtualListInner} ${N ?? ""}`,
1686
- style: { height: w.getTotalSize() },
1687
- children: /* @__PURE__ */ l("div", {
1688
- className: `${j.virtualListItems} ${I ?? ""}`,
1689
- style: { transform: `translateY(${E[0]?.start ?? 0}px)` },
1690
- children: E.map((x) => {
1691
- const O = x.index >= f, $ = y[x.index];
1692
- return /* @__PURE__ */ l("div", {
1885
+ children: /* @__PURE__ */ i("span", { children: v })
1886
+ }), [h, v]);
1887
+ return y === 0 ? A() : /* @__PURE__ */ i("div", {
1888
+ className: `${j.virtualList} ${p ?? ""}`,
1889
+ children: /* @__PURE__ */ i("div", {
1890
+ className: `${j.virtualListInner} ${S ?? ""}`,
1891
+ style: { height: E.getTotalSize() },
1892
+ children: /* @__PURE__ */ i("div", {
1893
+ className: `${j.virtualListItems} ${g ?? ""}`,
1894
+ style: { transform: `translateY(${I[0]?.start ?? 0}px)` },
1895
+ children: I.map((x) => {
1896
+ const z = x.index >= y, T = b[x.index];
1897
+ return /* @__PURE__ */ i("div", {
1693
1898
  "data-index": x.index,
1694
- ref: w.measureElement,
1695
- children: O ? t ? G() : S() : $ == null ? /* @__PURE__ */ l("div", {}, `missing-${x.index}`) : /* @__PURE__ */ l("div", { children: r($, x.index) }, c($, x.index))
1899
+ ref: E.measureElement,
1900
+ children: z ? e ? G() : N() : T == null ? /* @__PURE__ */ i("div", {}, `missing-${x.index}`) : /* @__PURE__ */ i("div", { children: n(T, x.index) }, d(T, x.index))
1696
1901
  }, x.key);
1697
1902
  })
1698
1903
  })
1699
1904
  })
1700
1905
  });
1701
1906
  }
1702
- var gn = z(an);
1907
+ var Er = D(hr);
1703
1908
  export {
1704
- se as Button,
1705
- It as Dropdown,
1706
- St as Icon,
1707
- re as Input,
1708
- ts as KeyValueEditor,
1709
- Os as LayoutSwitcher,
1710
- as as SearchInput,
1711
- fs as ShowFilter,
1712
- ne as SlideDownSwitcher,
1713
- Ks as Slider,
1714
- hr as Suspense,
1715
- Or as Textarea,
1716
- Ms as ThemeSwitcher,
1717
- yn as VirtualList,
1718
- gn as VirtualWindowList
1909
+ re as Button,
1910
+ Nt as Dropdown,
1911
+ Ct as Icon,
1912
+ le as Input,
1913
+ ns as KeyValueEditor,
1914
+ Ls as LayoutSwitcher,
1915
+ cs as SearchInput,
1916
+ vs as ShowFilter,
1917
+ ie as SlideDownSwitcher,
1918
+ Us as Slider,
1919
+ pn as Suspense,
1920
+ Dn as Textarea,
1921
+ $s as ThemeSwitcher,
1922
+ Ir as VirtualList,
1923
+ Er as VirtualWindowList
1719
1924
  };
1720
1925
 
1721
1926
  //# sourceMappingURL=components.mjs.map