@alepha/devtools 0.15.2 → 0.15.4

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 (219) hide show
  1. package/assets/devtools/actions.html +3 -3
  2. package/assets/devtools/actions.html.br +0 -0
  3. package/assets/devtools/actions.html.gz +0 -0
  4. package/assets/devtools/atoms.html +3 -3
  5. package/assets/devtools/atoms.html.br +0 -0
  6. package/assets/devtools/atoms.html.gz +0 -0
  7. package/assets/devtools/caches.html +3 -3
  8. package/assets/devtools/caches.html.br +0 -0
  9. package/assets/devtools/caches.html.gz +0 -0
  10. package/assets/devtools/chunk.6FHGgu4o.js +1 -0
  11. package/assets/devtools/chunk.6FHGgu4o.js.br +0 -0
  12. package/assets/devtools/chunk.6FHGgu4o.js.gz +0 -0
  13. package/assets/devtools/chunk.BEZMZ7cU.js +2 -0
  14. package/assets/devtools/chunk.BEZMZ7cU.js.br +0 -0
  15. package/assets/devtools/chunk.BEZMZ7cU.js.gz +0 -0
  16. package/assets/devtools/chunk.BKeiNpZN.js +9 -0
  17. package/assets/devtools/chunk.BKeiNpZN.js.br +0 -0
  18. package/assets/devtools/chunk.BKeiNpZN.js.gz +0 -0
  19. package/assets/devtools/chunk.BLPoqamD.js +1 -0
  20. package/assets/devtools/chunk.BLPoqamD.js.br +0 -0
  21. package/assets/devtools/chunk.BLPoqamD.js.gz +0 -0
  22. package/assets/devtools/{chunk.U6B6OT4m.js → chunk.BLRSfNfT.js} +1 -1
  23. package/assets/devtools/chunk.BLRSfNfT.js.br +0 -0
  24. package/assets/devtools/chunk.BLRSfNfT.js.gz +0 -0
  25. package/assets/devtools/{chunk.qLydHlIe.js → chunk.BRvGzx4Z.js} +1 -1
  26. package/assets/devtools/chunk.BRvGzx4Z.js.br +0 -0
  27. package/assets/devtools/chunk.BRvGzx4Z.js.gz +0 -0
  28. package/assets/devtools/{chunk.DXhVYZJu.js → chunk.BSg4Kjs-.js} +1 -1
  29. package/assets/devtools/chunk.BSg4Kjs-.js.br +0 -0
  30. package/assets/devtools/chunk.BSg4Kjs-.js.gz +0 -0
  31. package/assets/devtools/{chunk.BOYwUUqI.js → chunk.BV5mF0Co.js} +1 -1
  32. package/assets/devtools/chunk.BV5mF0Co.js.br +0 -0
  33. package/assets/devtools/chunk.BV5mF0Co.js.gz +0 -0
  34. package/assets/devtools/{chunk.BPCHIpy2.js → chunk.BYw9RTNZ.js} +1 -1
  35. package/assets/devtools/chunk.BYw9RTNZ.js.br +0 -0
  36. package/assets/devtools/chunk.BYw9RTNZ.js.gz +0 -0
  37. package/assets/devtools/chunk.BrKdm6Sb.js +1 -0
  38. package/assets/devtools/chunk.BrKdm6Sb.js.br +0 -0
  39. package/assets/devtools/chunk.BrKdm6Sb.js.gz +0 -0
  40. package/assets/devtools/chunk.BzM7ER7Q.js +1 -0
  41. package/assets/devtools/chunk.BzM7ER7Q.js.br +0 -0
  42. package/assets/devtools/chunk.BzM7ER7Q.js.gz +0 -0
  43. package/assets/devtools/{chunk.B4XxoeIU.js → chunk.CCy0GI_s.js} +1 -1
  44. package/assets/devtools/chunk.CCy0GI_s.js.br +0 -0
  45. package/assets/devtools/chunk.CCy0GI_s.js.gz +0 -0
  46. package/assets/devtools/{chunk.Bz4bTzr0.js → chunk.CFRKkktr.js} +1 -1
  47. package/assets/devtools/chunk.CFRKkktr.js.br +0 -0
  48. package/assets/devtools/chunk.CFRKkktr.js.gz +0 -0
  49. package/assets/devtools/{chunk.YsQsplrn.js → chunk.CJlnGw1S.js} +1 -1
  50. package/assets/devtools/chunk.CJlnGw1S.js.br +0 -0
  51. package/assets/devtools/chunk.CJlnGw1S.js.gz +0 -0
  52. package/assets/devtools/{chunk.DgZ24mun.js → chunk.CZOSxV2E.js} +3 -3
  53. package/assets/devtools/chunk.CZOSxV2E.js.br +0 -0
  54. package/assets/devtools/chunk.CZOSxV2E.js.gz +0 -0
  55. package/assets/devtools/chunk.CZp8Oawk.js +1 -0
  56. package/assets/devtools/chunk.CZp8Oawk.js.br +0 -0
  57. package/assets/devtools/chunk.CZp8Oawk.js.gz +0 -0
  58. package/assets/devtools/{chunk.BrsQ66Fo.js → chunk.Cas0t8F5.js} +1 -1
  59. package/assets/devtools/chunk.Cas0t8F5.js.br +0 -0
  60. package/assets/devtools/chunk.Cas0t8F5.js.gz +0 -0
  61. package/assets/devtools/chunk.Cf3d2zjg.js +1 -0
  62. package/assets/devtools/chunk.Cf3d2zjg.js.br +0 -0
  63. package/assets/devtools/chunk.Cf3d2zjg.js.gz +0 -0
  64. package/assets/devtools/{chunk.ax3VFVgz.js → chunk.CjAS4aWI.js} +1 -1
  65. package/assets/devtools/chunk.CjAS4aWI.js.br +0 -0
  66. package/assets/devtools/chunk.CjAS4aWI.js.gz +0 -0
  67. package/assets/devtools/{chunk.K-Ms8Mzm.js → chunk.ClYEvjjk.js} +1 -1
  68. package/assets/devtools/chunk.ClYEvjjk.js.br +2 -0
  69. package/assets/devtools/chunk.ClYEvjjk.js.gz +0 -0
  70. package/assets/devtools/chunk.D-abBFDq.js +2 -0
  71. package/assets/devtools/chunk.D-abBFDq.js.br +0 -0
  72. package/assets/devtools/chunk.D-abBFDq.js.gz +0 -0
  73. package/assets/devtools/{chunk.CKppnGPU.js → chunk.D06kB6Ym.js} +1 -1
  74. package/assets/devtools/chunk.D06kB6Ym.js.br +0 -0
  75. package/assets/devtools/chunk.D06kB6Ym.js.gz +0 -0
  76. package/assets/devtools/chunk.D0wx1CNI.js +1 -0
  77. package/assets/devtools/chunk.D0wx1CNI.js.br +0 -0
  78. package/assets/devtools/chunk.D0wx1CNI.js.gz +0 -0
  79. package/assets/devtools/chunk.D8oqA7fh.js +1 -0
  80. package/assets/devtools/chunk.D8oqA7fh.js.br +0 -0
  81. package/assets/devtools/chunk.D8oqA7fh.js.gz +0 -0
  82. package/assets/devtools/{chunk.DrLudrGo.js → chunk.DGiOCunw.js} +1 -1
  83. package/assets/devtools/chunk.DGiOCunw.js.br +0 -0
  84. package/assets/devtools/chunk.DGiOCunw.js.gz +0 -0
  85. package/assets/devtools/chunk.DHfKeDbH.js +1 -0
  86. package/assets/devtools/chunk.DHfKeDbH.js.br +0 -0
  87. package/assets/devtools/chunk.DHfKeDbH.js.gz +0 -0
  88. package/assets/devtools/{chunk.DkirMznI.js → chunk.DQrcztZO.js} +1 -1
  89. package/assets/devtools/chunk.DQrcztZO.js.br +0 -0
  90. package/assets/devtools/chunk.DQrcztZO.js.gz +0 -0
  91. package/assets/devtools/chunk.DdQKcont.js +1 -0
  92. package/assets/devtools/chunk.DdQKcont.js.br +0 -0
  93. package/assets/devtools/chunk.DdQKcont.js.gz +0 -0
  94. package/assets/devtools/{chunk.DN2ng7Ec.js → chunk.DjMiOB4_.js} +1 -1
  95. package/assets/devtools/chunk.DjMiOB4_.js.br +0 -0
  96. package/assets/devtools/chunk.DjMiOB4_.js.gz +0 -0
  97. package/assets/devtools/{chunk.BRKelMlC.js → chunk.JqUdzWl6.js} +1 -1
  98. package/assets/devtools/chunk.JqUdzWl6.js.br +0 -0
  99. package/assets/devtools/chunk.JqUdzWl6.js.gz +0 -0
  100. package/assets/devtools/{chunk.D1-ODKSf.js → chunk.VTMXAJC6.js} +1 -1
  101. package/assets/devtools/chunk.VTMXAJC6.js.br +0 -0
  102. package/assets/devtools/chunk.VTMXAJC6.js.gz +0 -0
  103. package/assets/devtools/chunk._oyZXgMC.js +1 -0
  104. package/assets/devtools/chunk._oyZXgMC.js.br +0 -0
  105. package/assets/devtools/chunk._oyZXgMC.js.gz +0 -0
  106. package/assets/devtools/chunk.plCe1Vwk.js +1 -0
  107. package/assets/devtools/chunk.plCe1Vwk.js.br +0 -0
  108. package/assets/devtools/chunk.plCe1Vwk.js.gz +0 -0
  109. package/assets/devtools/db.html +3 -3
  110. package/assets/devtools/db.html.br +0 -0
  111. package/assets/devtools/db.html.gz +0 -0
  112. package/assets/devtools/entry.CfgGy8wg.js +79 -0
  113. package/assets/devtools/entry.CfgGy8wg.js.br +0 -0
  114. package/assets/devtools/entry.CfgGy8wg.js.gz +0 -0
  115. package/assets/devtools/env.html +3 -3
  116. package/assets/devtools/env.html.br +0 -0
  117. package/assets/devtools/env.html.gz +0 -0
  118. package/assets/devtools/graph.html +3 -3
  119. package/assets/devtools/graph.html.br +0 -0
  120. package/assets/devtools/graph.html.gz +0 -0
  121. package/assets/devtools/index.html +3 -3
  122. package/assets/devtools/index.html.br +0 -0
  123. package/assets/devtools/index.html.gz +0 -0
  124. package/assets/devtools/logs.html +3 -3
  125. package/assets/devtools/logs.html.br +0 -0
  126. package/assets/devtools/logs.html.gz +0 -0
  127. package/assets/devtools/queues.html +3 -3
  128. package/assets/devtools/queues.html.br +0 -0
  129. package/assets/devtools/queues.html.gz +0 -0
  130. package/assets/devtools/topics.html +3 -3
  131. package/assets/devtools/topics.html.br +0 -0
  132. package/assets/devtools/topics.html.gz +0 -0
  133. package/package.json +5 -4
  134. package/src/ui/AppRouter.tsx +7 -3
  135. package/src/ui/main.ts +0 -2
  136. package/assets/devtools/chunk.8L5-bmT2.js +0 -2
  137. package/assets/devtools/chunk.8L5-bmT2.js.br +0 -0
  138. package/assets/devtools/chunk.8L5-bmT2.js.gz +0 -0
  139. package/assets/devtools/chunk.9_-GTbfg.js +0 -1
  140. package/assets/devtools/chunk.9_-GTbfg.js.br +0 -0
  141. package/assets/devtools/chunk.9_-GTbfg.js.gz +0 -0
  142. package/assets/devtools/chunk.B06miRTQ.js +0 -1
  143. package/assets/devtools/chunk.B06miRTQ.js.br +0 -0
  144. package/assets/devtools/chunk.B06miRTQ.js.gz +0 -0
  145. package/assets/devtools/chunk.B4XxoeIU.js.br +0 -0
  146. package/assets/devtools/chunk.B4XxoeIU.js.gz +0 -0
  147. package/assets/devtools/chunk.BDGiK8wy.js +0 -1
  148. package/assets/devtools/chunk.BDGiK8wy.js.br +0 -0
  149. package/assets/devtools/chunk.BDGiK8wy.js.gz +0 -0
  150. package/assets/devtools/chunk.BK94oaB2.js +0 -1
  151. package/assets/devtools/chunk.BK94oaB2.js.br +0 -0
  152. package/assets/devtools/chunk.BK94oaB2.js.gz +0 -0
  153. package/assets/devtools/chunk.BLgG-Amn.js +0 -1
  154. package/assets/devtools/chunk.BLgG-Amn.js.br +0 -0
  155. package/assets/devtools/chunk.BLgG-Amn.js.gz +0 -0
  156. package/assets/devtools/chunk.BOYwUUqI.js.br +0 -0
  157. package/assets/devtools/chunk.BOYwUUqI.js.gz +0 -0
  158. package/assets/devtools/chunk.BPCHIpy2.js.br +0 -0
  159. package/assets/devtools/chunk.BPCHIpy2.js.gz +0 -0
  160. package/assets/devtools/chunk.BRKelMlC.js.br +0 -0
  161. package/assets/devtools/chunk.BRKelMlC.js.gz +0 -0
  162. package/assets/devtools/chunk.BrsQ66Fo.js.br +0 -0
  163. package/assets/devtools/chunk.BrsQ66Fo.js.gz +0 -0
  164. package/assets/devtools/chunk.Bz4bTzr0.js.br +0 -0
  165. package/assets/devtools/chunk.Bz4bTzr0.js.gz +0 -0
  166. package/assets/devtools/chunk.CKppnGPU.js.br +0 -0
  167. package/assets/devtools/chunk.CKppnGPU.js.gz +0 -0
  168. package/assets/devtools/chunk.CfzSCjsJ.js +0 -1
  169. package/assets/devtools/chunk.CfzSCjsJ.js.br +0 -0
  170. package/assets/devtools/chunk.CfzSCjsJ.js.gz +0 -0
  171. package/assets/devtools/chunk.CiLYCLJH.js +0 -1
  172. package/assets/devtools/chunk.CiLYCLJH.js.br +0 -0
  173. package/assets/devtools/chunk.CiLYCLJH.js.gz +0 -0
  174. package/assets/devtools/chunk.CnHYu38l.js +0 -2
  175. package/assets/devtools/chunk.CnHYu38l.js.br +0 -0
  176. package/assets/devtools/chunk.CnHYu38l.js.gz +0 -0
  177. package/assets/devtools/chunk.D1-ODKSf.js.br +0 -0
  178. package/assets/devtools/chunk.D1-ODKSf.js.gz +0 -0
  179. package/assets/devtools/chunk.D4SUrYI2.js +0 -1
  180. package/assets/devtools/chunk.D4SUrYI2.js.br +0 -0
  181. package/assets/devtools/chunk.D4SUrYI2.js.gz +0 -0
  182. package/assets/devtools/chunk.DAeCHJ5Z.js +0 -1
  183. package/assets/devtools/chunk.DAeCHJ5Z.js.br +0 -0
  184. package/assets/devtools/chunk.DAeCHJ5Z.js.gz +0 -0
  185. package/assets/devtools/chunk.DN2ng7Ec.js.br +0 -3
  186. package/assets/devtools/chunk.DN2ng7Ec.js.gz +0 -0
  187. package/assets/devtools/chunk.DXhVYZJu.js.br +0 -0
  188. package/assets/devtools/chunk.DXhVYZJu.js.gz +0 -0
  189. package/assets/devtools/chunk.DgZ24mun.js.br +0 -0
  190. package/assets/devtools/chunk.DgZ24mun.js.gz +0 -0
  191. package/assets/devtools/chunk.DkirMznI.js.br +0 -0
  192. package/assets/devtools/chunk.DkirMznI.js.gz +0 -0
  193. package/assets/devtools/chunk.Dnb5TqA8.js +0 -1
  194. package/assets/devtools/chunk.Dnb5TqA8.js.br +0 -0
  195. package/assets/devtools/chunk.Dnb5TqA8.js.gz +0 -0
  196. package/assets/devtools/chunk.DqdWWOSs.js +0 -1
  197. package/assets/devtools/chunk.DqdWWOSs.js.br +0 -0
  198. package/assets/devtools/chunk.DqdWWOSs.js.gz +0 -0
  199. package/assets/devtools/chunk.DrLudrGo.js.br +0 -0
  200. package/assets/devtools/chunk.DrLudrGo.js.gz +0 -0
  201. package/assets/devtools/chunk.K-Ms8Mzm.js.br +0 -1
  202. package/assets/devtools/chunk.K-Ms8Mzm.js.gz +0 -0
  203. package/assets/devtools/chunk.KgyhVGwW.js +0 -9
  204. package/assets/devtools/chunk.KgyhVGwW.js.br +0 -0
  205. package/assets/devtools/chunk.KgyhVGwW.js.gz +0 -0
  206. package/assets/devtools/chunk.U6B6OT4m.js.br +0 -0
  207. package/assets/devtools/chunk.U6B6OT4m.js.gz +0 -0
  208. package/assets/devtools/chunk.V91GMRqU.js +0 -1
  209. package/assets/devtools/chunk.V91GMRqU.js.br +0 -0
  210. package/assets/devtools/chunk.V91GMRqU.js.gz +0 -0
  211. package/assets/devtools/chunk.YsQsplrn.js.br +0 -0
  212. package/assets/devtools/chunk.YsQsplrn.js.gz +0 -0
  213. package/assets/devtools/chunk.ax3VFVgz.js.br +0 -0
  214. package/assets/devtools/chunk.ax3VFVgz.js.gz +0 -0
  215. package/assets/devtools/chunk.qLydHlIe.js.br +0 -0
  216. package/assets/devtools/chunk.qLydHlIe.js.gz +0 -0
  217. package/assets/devtools/entry.DqiMGelS.js +0 -79
  218. package/assets/devtools/entry.DqiMGelS.js.br +0 -0
  219. package/assets/devtools/entry.DqiMGelS.js.gz +0 -0
@@ -1 +0,0 @@
1
- import{u as Xe,r as f,a as Ae,M as qe,b as Ke,c as Qe,f as N,d as w,j as r,B as k,e as M,R as ee,g as m,k as P,h as Ue,i as je,l as Ye,m as Ge,I as Ze,p as Je,n as Me,o as te,q as et,s as tt,t as se,U as st,v as Pe,w as nt,x as E,y as ne,z as oe,F as p,A as we,C as ke,T as re,D as ot,E as ae,G as $,H as Re,J as rt,K as at,L as D,N as it,O as lt,P as ct,Q as dt,S as ut,V as ht,W as pt,X as ft,Y as mt,Z as bt,_ as gt}from"./entry.DqiMGelS.js";import{g as Be,a as Ce,A as R,u as vt}from"./chunk.Dnb5TqA8.js";import{n as xt}from"./chunk.BjFrJKj1.js";import{S as jt}from"./chunk.D4SUrYI2.js";import{D as wt}from"./chunk.CfzSCjsJ.js";import"./chunk.BK94oaB2.js";import"./chunk.BlqFPyLh.js";import"./chunk.DN2ng7Ec.js";import"./chunk.uyVen0u2.js";import"./chunk.B4XxoeIU.js";function Te(e,t){return Xe("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}function Ie(e){return/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i.test(e)}function kt(e){return/(iPhone)|(iPad)|(iPod)/i.test(e)}function Ct(e){return/(Win32)|(Win64)|(Windows)|(WinCE)/i.test(e)}function It(e){return/Android/i.test(e)}function Nt(e){return/Linux/i.test(e)}function zt(e){return/CrOS/i.test(e)}function Ne(){if(typeof window>"u")return"undetermined";const{userAgent:e}=window.navigator;return kt(e)||Ie(e)&&"ontouchend"in document?"ios":Ie(e)?"macos":Ct(e)?"windows":It(e)?"android":Nt(e)?"linux":zt(e)?"chromeos":"undetermined"}function St(e={getValueInEffect:!0}){const[t,n]=f.useState(e.getValueInEffect?"undetermined":Ne());return Ae(()=>{e.getValueInEffect&&n(Ne)},[]),t}function ze(e){const t=document.createElement("style");return t.setAttribute("data-mantine-styles","inline"),t.innerHTML="*, *::before, *::after {transition: none !important;}",t.setAttribute("data-mantine-disable-transition","true"),e&&t.setAttribute("nonce",e),document.head.appendChild(t),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(o=>o.remove())}function Ee({keepTransitions:e}={}){const t=f.useRef(xt),n=f.useRef(-1),o=f.useContext(qe),c=Ke(),l=f.useRef(c?.());if(!o)throw new Error("[@mantine/core] MantineProvider was not found in tree");const a=b=>{o.setColorScheme(b),t.current=e?()=>{}:ze(l.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},i=()=>{o.clearColorScheme(),t.current=e?()=>{}:ze(l.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},u=Te("light",{getInitialValueInEffect:!1}),s=o.colorScheme==="auto"?u:o.colorScheme,d=f.useCallback(()=>a(s==="light"?"dark":"light"),[a,s]);return f.useEffect(()=>()=>{t.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:o.colorScheme,setColorScheme:a,clearColorScheme:i,toggleColorScheme:d}}function At(e,t={getInitialValueInEffect:!0}){const n=Te(e,t),{colorScheme:o}=Ee();return o==="auto"?n:o}const[Pt,_]=Qe("AppShell was not found in tree");var z={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const ie=N((e,t)=>{const{classNames:n,className:o,style:c,styles:l,unstyled:a,vars:i,withBorder:u,zIndex:s,mod:d,...b}=w("AppShellAside",null,e),h=_();return h.disabled?null:r.jsx(k,{component:"aside",ref:t,mod:[{"with-border":u??h.withBorder},d],...h.getStyles("aside",{className:M({[ee.classNames.zeroRight]:h.offsetScrollbars},o),classNames:n,styles:l,style:c}),...b,__vars:{"--app-shell-aside-z-index":`calc(${s??h.zIndex} + 1)`}})});ie.classes=z;ie.displayName="@mantine/core/AppShellAside";const le=N((e,t)=>{const{classNames:n,className:o,style:c,styles:l,unstyled:a,vars:i,withBorder:u,zIndex:s,mod:d,...b}=w("AppShellFooter",null,e),h=_();return h.disabled?null:r.jsx(k,{component:"footer",ref:t,mod:[{"with-border":u??h.withBorder},d],...h.getStyles("footer",{className:M({[ee.classNames.zeroRight]:h.offsetScrollbars},o),classNames:n,styles:l,style:c}),...b,__vars:{"--app-shell-footer-z-index":(s??h.zIndex)?.toString()}})});le.classes=z;le.displayName="@mantine/core/AppShellFooter";const ce=N((e,t)=>{const{classNames:n,className:o,style:c,styles:l,unstyled:a,vars:i,withBorder:u,zIndex:s,mod:d,...b}=w("AppShellHeader",null,e),h=_();return h.disabled?null:r.jsx(k,{component:"header",ref:t,mod:[{"with-border":u??h.withBorder},d],...h.getStyles("header",{className:M({[ee.classNames.zeroRight]:h.offsetScrollbars},o),classNames:n,styles:l,style:c}),...b,__vars:{"--app-shell-header-z-index":(s??h.zIndex)?.toString()}})});ce.classes=z;ce.displayName="@mantine/core/AppShellHeader";const de=N((e,t)=>{const{classNames:n,className:o,style:c,styles:l,vars:a,...i}=w("AppShellMain",null,e),u=_();return r.jsx(k,{component:"main",ref:t,...u.getStyles("main",{className:o,style:c,classNames:n,styles:l}),...i})});de.classes=z;de.displayName="@mantine/core/AppShellMain";function W(e){return typeof e=="object"?e.base:e}function y(e){const t=typeof e=="object"&&e!==null&&typeof e.base<"u"&&Object.keys(e).length===1;return typeof e=="number"||typeof e=="string"||t}function L(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function Rt({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:o,theme:c,mode:l}){const a=o?.width,i="translateX(var(--app-shell-aside-width))",u="translateX(calc(var(--app-shell-aside-width) * -1))";if(o?.breakpoint&&!o?.collapsed?.mobile&&(n[o?.breakpoint]=n[o?.breakpoint]||{},l==="fixed"?(n[o?.breakpoint]["--app-shell-aside-width"]="100%",n[o?.breakpoint]["--app-shell-aside-offset"]="0px"):(n[o?.breakpoint]["--app-shell-aside-width"]="0px",n[o?.breakpoint]["--app-shell-aside-offset"]="0px")),y(a)){const s=m(W(a));e["--app-shell-aside-width"]=s,e["--app-shell-aside-offset"]=s}if(L(a)&&(typeof a.base<"u"&&(e["--app-shell-aside-width"]=m(a.base),e["--app-shell-aside-offset"]=m(a.base)),P(a).forEach(s=>{s!=="base"&&(t[s]=t[s]||{},t[s]["--app-shell-aside-width"]=m(a[s]),t[s]["--app-shell-aside-offset"]=m(a[s]))})),o?.breakpoint&&l==="static"&&(t[o.breakpoint]=t[o.breakpoint]||{},t[o.breakpoint]["--app-shell-aside-position"]="sticky",t[o.breakpoint]["--app-shell-aside-grid-row"]="2",t[o.breakpoint]["--app-shell-aside-grid-column"]="3",t[o.breakpoint]["--app-shell-main-column-end"]="3"),o?.collapsed?.desktop){const s=o.breakpoint;t[s]=t[s]||{},t[s]["--app-shell-aside-transform"]=i,t[s]["--app-shell-aside-transform-rtl"]=u,l==="fixed"?t[s]["--app-shell-aside-offset"]="0px !important":(t[s]["--app-shell-aside-width"]="0px",t[s]["--app-shell-aside-display"]="none",t[s]["--app-shell-main-column-end"]="-1"),t[s]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if(o?.collapsed?.mobile){const s=Be(o.breakpoint,c.breakpoints)-.1;n[s]=n[s]||{},l==="fixed"?(n[s]["--app-shell-aside-width"]="100%",n[s]["--app-shell-aside-offset"]="0px"):n[s]["--app-shell-aside-width"]="0px",n[s]["--app-shell-aside-transform"]=i,n[s]["--app-shell-aside-transform-rtl"]=u,n[s]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function Bt({baseStyles:e,minMediaStyles:t,footer:n,mode:o}){const c=n?.height,l="translateY(var(--app-shell-footer-height))",a=o==="static"?!0:n?.offset??!0;if(o==="static"&&n&&(e["--app-shell-footer-position"]="sticky",e["--app-shell-footer-grid-column"]="1 / -1",e["--app-shell-footer-grid-row"]="3"),y(c)){const i=m(W(c));e["--app-shell-footer-height"]=i,a&&(e["--app-shell-footer-offset"]=i)}L(c)&&(typeof c.base<"u"&&(e["--app-shell-footer-height"]=m(c.base),a&&(e["--app-shell-footer-offset"]=m(c.base))),P(c).forEach(i=>{i!=="base"&&(t[i]=t[i]||{},t[i]["--app-shell-footer-height"]=m(c[i]),a&&(t[i]["--app-shell-footer-offset"]=m(c[i])))})),n?.collapsed&&(e["--app-shell-footer-transform"]=l,o==="fixed"&&(e["--app-shell-footer-offset"]="0px !important"))}function Tt({baseStyles:e,minMediaStyles:t,header:n,mode:o}){const c=n?.height,l="translateY(calc(var(--app-shell-header-height) * -1))",a=o==="static"?!0:n?.offset??!0;if(o==="static"&&n&&(e["--app-shell-header-position"]="sticky",e["--app-shell-header-grid-column"]="1 / -1",e["--app-shell-header-grid-row"]="1"),y(c)){const i=m(W(c));e["--app-shell-header-height"]=i,a&&(e["--app-shell-header-offset"]=i)}L(c)&&(typeof c.base<"u"&&(e["--app-shell-header-height"]=m(c.base),a&&(e["--app-shell-header-offset"]=m(c.base))),P(c).forEach(i=>{i!=="base"&&(t[i]=t[i]||{},t[i]["--app-shell-header-height"]=m(c[i]),a&&(t[i]["--app-shell-header-offset"]=m(c[i])))})),n?.collapsed&&(e["--app-shell-header-transform"]=l,o==="fixed"&&(e["--app-shell-header-offset"]="0px !important"))}function Et({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:o,theme:c,mode:l}){const a=o?.width,i="translateX(calc(var(--app-shell-navbar-width) * -1))",u="translateX(var(--app-shell-navbar-width))";if(o?.breakpoint&&!o?.collapsed?.mobile&&(n[o?.breakpoint]=n[o?.breakpoint]||{},n[o?.breakpoint]["--app-shell-navbar-offset"]="0px",n[o?.breakpoint]["--app-shell-navbar-width"]="100%",l==="static"&&(n[o?.breakpoint]["--app-shell-navbar-grid-width"]="0px")),y(a)){const s=m(W(a));e["--app-shell-navbar-width"]=s,e["--app-shell-navbar-offset"]=s,l==="static"&&(e["--app-shell-navbar-grid-width"]=s)}if(L(a)&&(typeof a.base<"u"&&(e["--app-shell-navbar-width"]=m(a.base),e["--app-shell-navbar-offset"]=m(a.base),l==="static"&&(e["--app-shell-navbar-grid-width"]=m(a.base))),P(a).forEach(s=>{s!=="base"&&(t[s]=t[s]||{},t[s]["--app-shell-navbar-width"]=m(a[s]),t[s]["--app-shell-navbar-offset"]=m(a[s]),l==="static"&&(t[s]["--app-shell-navbar-grid-width"]=m(a[s])))})),o?.breakpoint&&l==="static"&&(t[o.breakpoint]=t[o.breakpoint]||{},t[o.breakpoint]["--app-shell-navbar-position"]="sticky",t[o.breakpoint]["--app-shell-navbar-grid-row"]="2",t[o.breakpoint]["--app-shell-navbar-grid-column"]="1",t[o.breakpoint]["--app-shell-main-column-start"]="2"),o?.collapsed?.desktop){const s=o.breakpoint;t[s]=t[s]||{},t[s]["--app-shell-navbar-transform"]=i,t[s]["--app-shell-navbar-transform-rtl"]=u,l==="fixed"?t[s]["--app-shell-navbar-offset"]="0px !important":(t[s]["--app-shell-navbar-width"]="0px",t[s]["--app-shell-navbar-display"]="none",t[s]["--app-shell-main-column-start"]="1")}if(o?.collapsed?.mobile){const s=Be(o.breakpoint,c.breakpoints)-.1;n[s]=n[s]||{},n[s]["--app-shell-navbar-width"]="100%",n[s]["--app-shell-navbar-offset"]="0px",l==="static"&&(n[s]["--app-shell-navbar-grid-width"]="0px"),n[s]["--app-shell-navbar-transform"]=i,n[s]["--app-shell-navbar-transform-rtl"]=u}}function Z(e){return Number(e)===0?"0px":Ue(e)}function _t({padding:e,baseStyles:t,minMediaStyles:n}){y(e)&&(t["--app-shell-padding"]=Z(W(e))),L(e)&&(e.base&&(t["--app-shell-padding"]=Z(e.base)),P(e).forEach(o=>{o!=="base"&&(n[o]=n[o]||{},n[o]["--app-shell-padding"]=Z(e[o]))}))}function Wt({navbar:e,header:t,footer:n,aside:o,padding:c,theme:l,mode:a}){const i={},u={},s={};a==="static"&&(s["--app-shell-main-grid-column"]="1 / -1",s["--app-shell-main-grid-row"]="2"),Et({baseStyles:s,minMediaStyles:i,maxMediaStyles:u,navbar:e,theme:l,mode:a}),Rt({baseStyles:s,minMediaStyles:i,maxMediaStyles:u,aside:o,theme:l,mode:a}),Tt({baseStyles:s,minMediaStyles:i,header:t,mode:a}),Bt({baseStyles:s,minMediaStyles:i,footer:n,mode:a}),_t({baseStyles:s,minMediaStyles:i,padding:c});const d=Ce(P(i),l.breakpoints).map(g=>({query:`(min-width: ${je(g.px)})`,styles:i[g.value]})),b=Ce(P(u),l.breakpoints).map(g=>({query:`(max-width: ${je(g.px)})`,styles:u[g.value]})),h=[...d,...b];return{baseStyles:s,media:h}}function yt({navbar:e,header:t,aside:n,footer:o,padding:c,mode:l,selector:a}){const i=Ye(),u=Ge(),{media:s,baseStyles:d}=Wt({navbar:e,header:t,footer:o,aside:n,padding:c,theme:i,mode:l});return r.jsx(Ze,{media:s,styles:d,selector:a||u.cssVariablesSelector})}const ue=N((e,t)=>{const{classNames:n,className:o,style:c,styles:l,unstyled:a,vars:i,withBorder:u,zIndex:s,mod:d,...b}=w("AppShellNavbar",null,e),h=_();return h.disabled?null:r.jsx(k,{component:"nav",ref:t,mod:[{"with-border":u??h.withBorder},d],...h.getStyles("navbar",{className:o,classNames:n,styles:l,style:c}),...b,__vars:{"--app-shell-navbar-z-index":`calc(${s??h.zIndex} + 1)`}})});ue.classes=z;ue.displayName="@mantine/core/AppShellNavbar";const he=Je((e,t)=>{const{classNames:n,className:o,style:c,styles:l,vars:a,grow:i,mod:u,...s}=w("AppShellSection",null,e),d=_();return r.jsx(k,{ref:t,mod:[{grow:i},u],...d.getStyles("section",{className:o,style:c,classNames:n,styles:l}),...s})});he.classes=z;he.displayName="@mantine/core/AppShellSection";function Lt({transitionDuration:e,disabled:t}){const[n,o]=f.useState(!0),c=f.useRef(-1),l=f.useRef(-1);return Me("resize",()=>{o(!0),clearTimeout(c.current),c.current=window.setTimeout(()=>f.startTransition(()=>{o(!1)}),200)}),Ae(()=>{o(!0),clearTimeout(l.current),l.current=window.setTimeout(()=>f.startTransition(()=>{o(!1)}),e||0)},[t,e]),n}const Vt={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:tt("app"),mode:"fixed"},Ht=se((e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n}})),v=N((e,t)=>{const n=w("AppShell",Vt,e),{classNames:o,className:c,style:l,styles:a,unstyled:i,vars:u,navbar:s,withBorder:d,padding:b,transitionDuration:h,transitionTimingFunction:g,header:x,zIndex:B,layout:S,disabled:C,aside:O,footer:j,offsetScrollbars:X=!0,mode:T,mod:V,attributes:q,id:K,...Q}=n,A=te({name:"AppShell",classes:z,props:n,className:c,style:l,classNames:o,styles:a,unstyled:i,attributes:q,vars:u,varsResolver:Ht}),H=Lt({disabled:C,transitionDuration:h}),F=et(K);return r.jsxs(Pt,{value:{getStyles:A,withBorder:d,zIndex:B,disabled:C,offsetScrollbars:X,mode:T},children:[r.jsx(yt,{navbar:s,header:x,aside:O,footer:j,padding:b,mode:T,selector:T==="static"?`#${F}`:void 0}),r.jsx(k,{ref:t,...A("root"),mod:[{resizing:H,layout:S,disabled:C,mode:T},V],id:F,...Q})]})});v.classes=z;v.displayName="@mantine/core/AppShell";v.Navbar=ue;v.Header=ce;v.Main=de;v.Aside=ie;v.Footer=le;v.Section=he;var _e={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const Ft=se((e,{color:t,size:n,lineSize:o,transitionDuration:c,transitionTimingFunction:l})=>({root:{"--burger-color":t?nt(t,e):void 0,"--burger-size":Pe(n,"burger-size"),"--burger-line-size":o?m(o):void 0,"--burger-transition-duration":c===void 0?void 0:`${c}ms`,"--burger-transition-timing-function":l}})),pe=N((e,t)=>{const n=w("Burger",null,e),{classNames:o,className:c,style:l,styles:a,unstyled:i,vars:u,opened:s,children:d,transitionDuration:b,transitionTimingFunction:h,lineSize:g,attributes:x,...B}=n,S=te({name:"Burger",classes:_e,props:n,className:c,style:l,classNames:o,styles:a,unstyled:i,attributes:x,vars:u,varsResolver:Ft});return r.jsxs(st,{...S("root"),ref:t,...B,children:[r.jsx(k,{mod:["reduce-motion",{opened:s}],...S("burger")}),d]})});pe.classes=_e;pe.displayName="@mantine/core/Burger";var We={root:"m_dc6f14e2"};const Dt=se((e,{size:t})=>({root:{"--kbd-fz":Pe(t,"kbd-fz")}})),fe=N((e,t)=>{const n=w("Kbd",null,e),{classNames:o,className:c,style:l,styles:a,unstyled:i,vars:u,attributes:s,...d}=n,b=te({name:"Kbd",classes:We,props:n,className:c,style:l,classNames:o,styles:a,unstyled:i,attributes:s,vars:u,varsResolver:Dt});return r.jsx(k,{component:"kbd",ref:t,...b("root"),...d})});fe.classes=We;fe.displayName="@mantine/core/Kbd";const $t=[["path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629",key:"svg-0"}],["path",{d:"M4 6.371h7",key:"svg-1"}],["path",{d:"M5 9c0 2.144 2.252 3.908 6 4",key:"svg-2"}],["path",{d:"M12 20l4 -9l4 9",key:"svg-3"}],["path",{d:"M19.1 18h-6.2",key:"svg-4"}],["path",{d:"M6.694 3l.793 .582",key:"svg-5"}]],Ot=E("outline","language","Language",$t);const Xt=[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M15 10l-2 2l2 2",key:"svg-2"}]],qt=E("outline","layout-sidebar-left-collapse","LayoutSidebarLeftCollapse",Xt);const Kt=[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M15 4v16",key:"svg-1"}],["path",{d:"M9 10l2 2l-2 2",key:"svg-2"}]],Qt=E("outline","layout-sidebar-right-collapse","LayoutSidebarRightCollapse",Kt);const Ut=[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008",key:"svg-0"}]],Se=E("outline","moon","Moon",Ut);const Yt=[["path",{d:"M12 3c7.2 0 9 1.8 9 9c0 7.2 -1.8 9 -9 9c-7.2 0 -9 -1.8 -9 -9c0 -7.2 1.8 -9 9 -9",key:"svg-0"}]],Gt=E("outline","square-rounded","SquareRounded",Yt);const Zt=[["path",{d:"M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7",key:"svg-1"}]],J=E("outline","sun","Sun",Zt),Jt=e=>{const[t,n]=ne(oe);return r.jsx(pe,{opened:t.opened,onClick:()=>n({...t,opened:!t.opened}),hiddenFrom:"sm",size:"sm",...e})},ye=e=>{const{setColorScheme:t}=Ee(),n=At("light"),[o,c]=f.useState("default"),l=e.mode??"minimal";f.useEffect(()=>{c(n)},[n]);const a=()=>{t(n==="dark"?"light":"dark")};return l==="segmented"?r.jsx(jt,{value:o,onChange:i=>t(i),data:[{value:"light",label:r.jsx(p,{h:20,align:"center",justify:"center",children:r.jsx(J,{size:16})})},{value:"dark",label:r.jsx(p,{h:20,align:"center",justify:"center",children:r.jsx(Se,{size:16})})}],w:e.fullWidth?"100%":void 0,...e.segmentedProps}):r.jsx(R,{onClick:a,variant:e.variant??"subtle",size:e.size??"sm","aria-label":"Toggle color scheme",px:"xs",fullWidth:e.fullWidth??!1,icon:o==="dark"?J:o==="light"?Se:J,...e.actionProps})},Mt=e=>{const t=vt();return r.jsx(R,{variant:"default",icon:Ot,menu:{items:t.languages.map(n=>({label:t.tr(n),onClick:()=>t.setLang(n),active:t.lang===n}))},...e.actionProps})},me=e=>{const t=St(),o=t==="macos"||t==="ios"?"⌘":"Ctrl";return e.collapsed?r.jsx(R,{variant:"subtle",onClick:we.open,radius:"md",icon:r.jsx(ke,{size:16}),tooltip:{label:"Search",position:"right"},...e.actionProps}):r.jsx(R,{variant:"default",onClick:we.open,justify:"space-between",rightSection:r.jsxs(fe,{visibleFrom:"sm",size:"sm",children:[r.jsx(ot,{children:o}),"+K"]}),radius:"md",...e.actionProps,children:r.jsxs(p,{align:"center",gap:"xs",children:[r.jsx(ke,{size:16,color:"gray"}),r.jsx(p,{visibleFrom:"sm",miw:192,children:r.jsx(re,{size:"xs",c:"dimmed",children:"Search..."})})]})})},es=e=>{const[t,n]=ne(oe);return r.jsx(R,{icon:t.collapsed?r.jsx(Qt,{}):r.jsx(qt,{}),visibleFrom:"sm",variant:"subtle",size:"md",onClick:()=>{const o=t.collapsed;n({...t,collapsed:!t.collapsed,width:o?t.defaultWidth:t.width})},tooltip:{position:"right",label:t.collapsed?"Show sidebar":"Hide sidebar"},...e})},ts=e=>{const{items:t=[]}=e,n=(a,i)=>{if("type"in a){if(a.type==="burger")return r.jsx(Jt,{},i);if(a.type==="dark")return r.jsx(ye,{...a.props},i);if(a.type==="search")return r.jsx(me,{...a.props},i);if(a.type==="lang")return r.jsx(Mt,{...a.props},i);if(a.type==="spacer")return r.jsx(p,{w:16},i);if(a.type==="divider")return r.jsx(wt,{orientation:"vertical"},i)}return"element"in a?a.element:null},o=t.filter(a=>a.position==="left"),c=t.filter(a=>a.position==="center"),l=t.filter(a=>a.position==="right");return r.jsxs(p,{h:"100%",align:"center",px:"md",justify:"space-between",...e.flexProps,children:[r.jsx(p,{flex:1,children:o.map((a,i)=>r.jsx(p,{ml:i===0?0:"md",align:"center",children:n(a,i)},i))}),r.jsx(p,{children:c.map((a,i)=>r.jsx(p,{mx:"md",align:"center",children:n(a,i)},i))}),r.jsx(p,{flex:1,align:"center",justify:"end",children:l.map((a,i)=>r.jsx(p,{ml:i===0?0:"md",align:"center",children:n(a,i)},i))})]})},ss=e=>{const t=ae(),{onItemClick:n}=e,o=s=>r.jsx(p,{h:1,bg:"var(--alepha-border)",my:"xs",mx:e.collapsed?0:"sm"},s),c=(s,d)=>{if("type"in s){if(s.type==="spacer")return e.collapsed?null:r.jsx(p,{h:16},d);if(s.type==="divider")return o(d);if(s.type==="search")return r.jsx(p,{mb:"xs",children:r.jsx(me,{collapsed:e.collapsed})},d);if(s.type==="toggle")return r.jsx(es,{},d);if(s.type==="section")return e.collapsed?o(d):r.jsxs(p,{mt:"md",align:"center",gap:"xs",children:[$(s.icon),r.jsx(re,{size:"xs",c:"dimmed",tt:"uppercase",fw:"bold",children:s.label})]},d)}return"element"in s?r.jsx(p,{children:s.element},d):s.can&&!s.can()?null:e.collapsed?r.jsx(ns,{item:s,level:0,onItemClick:n,theme:e.theme??{}},d):r.jsx(Le,{item:s,level:0,onItemClick:n,theme:e.theme??{}},d)},l=()=>{if(e.items)return e.items;if(e.autoPopulateMenu){const s=t.concretePages.filter(d=>!d.can||d.can()).map(d=>({label:d.label??d.name,icon:$(d.icon),href:t.path(d.name)}));if(typeof e.autoPopulateMenu=="object"&&e.autoPopulateMenu.startsWith){const d=e.autoPopulateMenu.startsWith;return s.filter(b=>b.href?.startsWith(d))}return s}return[]},a="md",i=e.items?e.gap??2:"xs",u=f.useMemo(()=>l(),[e.items,e.autoPopulateMenu]);return r.jsxs(p,{flex:1,py:a,direction:"column",className:"alepha-sidebar-scroll",...e.flexProps,children:[r.jsx(p,{gap:i,px:a,direction:"column",children:u.filter(s=>s.position==="top").map((s,d)=>c(s,d))}),r.jsx(p,{gap:i,px:a,direction:"column",flex:1,className:"alepha-sidebar-scroll",children:u.filter(s=>!s.position).map((s,d)=>c(s,d))}),r.jsx(p,{gap:i,px:a,direction:"column",children:u.filter(s=>s.position==="bottom").map((s,d)=>c(s,d))})]})},Le=e=>{const{item:t,level:n}=e,o=2,c=ae(),l=f.useCallback(s=>{if(!s.children)return!1;for(const d of s.children)if(d.href&&c.isActive(d.href)||l(d))return!0;return!1},[]),[a,i]=f.useState(l(t));if(Re({"react:transition:end":()=>{l(t)&&i(!0)}},[]),n>o)return null;const u=s=>{e.item.target||s.preventDefault(),t.children&&t.children.length>0?i(!a):(e.onItemClick?.(t),t.onClick?.())};return r.jsxs(p,{direction:"column",ps:n===0?0:32,pos:"relative",children:[r.jsx(R,{w:"100%",justify:"space-between",href:e.item.href,target:e.item.target,size:e.item.theme?.size??e.theme.button?.size??(n===0?"sm":"xs"),c:"var(--mantine-color-text)",color:"gray",variant:"subtle",variantActive:"default",radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:u,leftSection:r.jsxs(p,{w:"100%",align:"center",gap:"sm",children:[$(t.icon),r.jsxs(p,{direction:"column",children:[r.jsx(p,{children:t.label}),t.description&&r.jsx(re,{size:"xs",c:"dimmed",children:t.description})]})]}),rightSection:t.children?r.jsx(p,{children:a?r.jsx(rt,{size:14}):r.jsx(at,{size:14})}):e.item.rightSection,...e.item.actionProps}),t.children&&a&&r.jsxs(p,{direction:"column","data-parent-level":n,children:[r.jsx(p,{style:{position:"absolute",width:1,background:"linear-gradient(to bottom, transparent, var(--alepha-border), transparent)",top:48,left:20+32*n,bottom:16}}),t.children.filter(s=>!s.can||s.can()).map((s,d)=>r.jsx(Le,{item:s,level:n+1,onItemClick:e.onItemClick,theme:e.theme},d))]})]})},ns=e=>{const{item:t,level:n}=e,o=()=>{e.onItemClick?.(t),t.onClick?.()};return r.jsx(R,{size:e.item.theme?.size??e.theme.button?.size??(n===0?"sm":"xs"),variant:"subtle",variantActive:"default",tooltip:{label:t.label,position:"right"},radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:o,icon:$(t.icon)??r.jsx(Gt,{}),href:e.item.href,target:e.item.target,...e.item.actionProps})},os=e=>{const t=ae(),[n,o]=ne(oe),{opened:c,collapsed:l}=n;f.useEffect(()=>{e.sidebarProps?.collapsed!==void 0&&o({...n,collapsed:e.sidebarProps.collapsed})},[]);const[a,i]=f.useState(!1),[u,s]=f.useState(!1),[d,b]=f.useState({offset:0,opacity:1}),h=f.useRef(null),{collapsedWidth:g,collapseThreshold:x,maxWidth:B,hoverDelay:S,defaultWidth:C}=n,O=f.useCallback(I=>{e.resizable&&(I.preventDefault(),l?(o({...n,collapsed:!1,width:C}),i(!0),h.current={startX:I.clientX,startWidth:C}):(i(!0),h.current={startX:I.clientX,startWidth:n.width}))},[e.resizable,l,n,o,C]);f.useEffect(()=>{if(!a)return;const I=De=>{if(!h.current)return;const $e=De.clientX-h.current.startX,G=h.current.startWidth+$e,Oe=Math.min(Math.max(G,g),B);if(G<x){const xe=Math.max(0,(x-G)/x);b({offset:-xe*g,opacity:1-xe*.7}),o({...n,width:x,collapsed:!1})}else b({offset:0,opacity:1}),o({...n,width:Oe,collapsed:!1})},ve=()=>{d.offset<0&&o({...n,collapsed:!0}),b({offset:0,opacity:1}),i(!1),h.current=null};return document.addEventListener("mousemove",I),document.addEventListener("mouseup",ve),()=>{document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",ve)}},[a,n,o,g,B,x,d.offset]);const j=f.useRef(null),X=f.useCallback(()=>{l&&(j.current=setTimeout(()=>{s(!0)},S))},[l,S]),T=f.useCallback(()=>{j.current&&(clearTimeout(j.current),j.current=null),s(!1)},[]);f.useEffect(()=>{l&&(s(!1),j.current&&(clearTimeout(j.current),j.current=null))},[l]);const V=()=>{if(e.noSidebarWhen?.paths){for(const I of e.noSidebarWhen.paths)if(t.isActive(I,{startWith:!0}))return!1}return!0},[q,K]=f.useState(V());Re({"react:transition:end":()=>{K(V())},"react:transition:begin":()=>{o({...n,opened:!1})}},[n]);const Q=[{position:"left",type:"burger"}],A=q&&e.sidebarProps!==void 0,H=A||e.appBarProps||e.header,F=H?60:0,Ve=e.footer?24:0,be=Math.max(n.width,g),U=l&&u,Y=l&&!u,ge=Math.max(C,g),He=A?Y?g:U?ge:be:0,Fe=e.resizable&&!l;return r.jsxs(v,{w:"100%",flex:1,padding:"md",header:H?{height:60}:void 0,navbar:A?{width:Y?{base:g}:U?{base:ge}:{base:be},breakpoint:"sm",collapsed:{mobile:!c}}:void 0,footer:e.footer?{height:24}:void 0,...e.appShellProps,children:[r.jsx(v.Header,{bg:D.colors.surface,...e.appShellHeaderProps,children:e.header??r.jsx(ts,{items:Q,...e.appBarProps})}),A&&r.jsxs(v.Navbar,{bg:D.colors.surface,className:"alepha-sidebar-navbar","data-resizing":a,onMouseEnter:X,onMouseLeave:T,style:{transform:d.offset?`translateX(${d.offset}px)`:void 0,opacity:d.opacity},...e.appShellNavbarProps,children:[r.jsx(ss,{...e.sidebarProps??{},collapsed:Y}),(Fe||U)&&r.jsx(p,{pos:"absolute",right:-2,top:0,bottom:0,w:4,style:{cursor:"col-resize",userSelect:"none"},onMouseDown:O})]}),r.jsx(v.Main,{pl:He,pt:F,pb:Ve,pr:0,display:"flex",flex:1,style:{flexDirection:"column"},className:"alepha-sidebar-main","data-resizing":a,...e.appShellMainProps,children:e.children??r.jsx(it,{})}),e.footer&&r.jsx(v.Footer,{bg:D.colors.surface,...e.appShellFooterProps,children:e.footer})]})},ms=()=>r.jsx(os,{appShellHeaderProps:{bg:D.colors.background},appShellNavbarProps:{bg:"transparent"},sidebarProps:{gap:4,collapsed:!0,items:[{label:"Dashboard",icon:r.jsx(lt,{}),href:"/"},{type:"divider"},{label:"Actions",icon:r.jsx(ct,{}),href:"/actions"},{label:"Queues",icon:r.jsx(dt,{}),href:"/queues"},{label:"Topics",icon:r.jsx(ut,{}),href:"/topics"},{label:"Caches",icon:r.jsx(ht,{}),href:"/caches"},{label:"DB Studio",icon:r.jsx(pt,{}),href:"/db"},{type:"divider"},{label:"Environment",icon:r.jsx(ft,{}),href:"/env"},{label:"Atoms",icon:r.jsx(mt,{}),href:"/atoms"},{type:"divider"},{label:"Graph",icon:r.jsx(bt,{}),href:"/graph"},{label:"Logs",icon:r.jsx(gt,{}),href:"/logs"}]},appBarProps:{items:[{position:"left",type:"burger"},{position:"left",element:r.jsx(p,{h:"60px",w:"78px",style:{marginLeft:"-32px",borderRight:"1px solid var(--mantine-color-default-border)"}})},{position:"left",element:r.jsx(me,{actionProps:{variant:"outline",bd:"1px solid var(--mantine-color-default-border)"}})},{position:"right",element:r.jsx(ye,{})}]}});export{ms as DevLayout,ms as default};
@@ -1 +0,0 @@
1
- import{a5 as B,a6 as L,r as c,j as e,F as t,T as r,B as x,L as a,ah as T,C,af as S,V as v,ag as w,a8 as P,ac as A}from"./entry.DqiMGelS.js";import{d as E}from"./chunk.D1-ODKSf.js";import{S as g,B as u}from"./chunk.BLgG-Amn.js";import{I as M}from"./chunk.BOYwUUqI.js";import{T as j}from"./chunk.DAeCHJ5Z.js";import{T as n}from"./chunk.CKppnGPU.js";import{a as O,I}from"./chunk.BPCHIpy2.js";import{I as R}from"./chunk.K-Ms8Mzm.js";import"./chunk.BlqFPyLh.js";const z={memory:"#69db7c",redis:"#ff6b6b",default:"#495057"},$=s=>z[s]??z.default,D=s=>s?typeof s=="number"?s<60?`${s}s`:s<3600?`${Math.floor(s/60)}m`:s<86400?`${Math.floor(s/3600)}h`:`${Math.floor(s/86400)}d`:String(s):"No TTL",K=({caches:s,selectedCache:l,onSelectCache:p,search:f,onSearchChange:b})=>{const h=c.useMemo(()=>{const i={};for(const o of s){const d=o.provider||"default";i[d]||(i[d]=[]),i[d].push(o)}return i},[s]),y=Object.keys(h).sort();return e.jsxs(g,{gap:0,h:"100%",children:[e.jsx(x,{p:"sm",style:{borderBottom:`1px solid ${a.colors.border}`},children:e.jsx(T,{placeholder:"Search caches...",leftSection:e.jsx(C,{size:14}),size:"xs",value:f,onChange:i=>b(i.target.value)})}),e.jsx(S,{style:{flex:1},children:y.map(i=>e.jsxs(x,{children:[e.jsx(r,{size:"xs",fw:600,c:"dimmed",px:"sm",py:"xs",style:{backgroundColor:a.colors.background,borderBottom:`1px solid ${a.colors.border}`,textTransform:"uppercase",letterSpacing:"0.05em"},children:i}),h[i].map(o=>{const d=l?.name===o.name,m=$(o.provider);return e.jsxs(t,{align:"center",gap:"xs",px:"sm",py:6,onClick:()=>p(o),style:{cursor:"pointer",backgroundColor:d?`${m}15`:void 0,borderLeft:d?`2px solid ${m}`:"2px solid transparent",borderBottom:`1px solid ${a.colors.border}`,opacity:o.disabled?.5:1},children:[e.jsx(v,{size:14,opacity:.5}),e.jsx(r,{size:"sm",style:{flex:1},truncate:!0,children:o.name}),o.disabled&&e.jsx(u,{size:"xs",variant:"light",color:"gray",children:"off"})]},o.name)})]},i))})]})},N=({cache:s})=>e.jsx(S,{h:"100%",p:"md",children:e.jsxs(g,{gap:"lg",children:[e.jsxs(x,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Configuration"}),e.jsx(n,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:e.jsxs(n.Tbody,{children:[e.jsxs(n.Tr,{children:[e.jsx(n.Td,{w:150,children:e.jsx(r,{size:"sm",c:"dimmed",children:"Name"})}),e.jsx(n.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",children:s.name})})]}),e.jsxs(n.Tr,{children:[e.jsx(n.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"Provider"})}),e.jsx(n.Td,{children:e.jsx(u,{size:"xs",variant:"light",color:s.provider==="redis"?"red":"green",children:s.provider})})]}),e.jsxs(n.Tr,{children:[e.jsx(n.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"TTL"})}),e.jsx(n.Td,{children:e.jsxs(t,{align:"center",gap:"xs",children:[e.jsx(O,{size:14,opacity:.5}),e.jsx(r,{size:"sm",ff:"monospace",children:D(s.ttl)})]})})]}),e.jsxs(n.Tr,{children:[e.jsx(n.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"Status"})}),e.jsx(n.Td,{children:e.jsx(u,{size:"xs",variant:"light",color:s.disabled?"gray":"green",children:s.disabled?"Disabled":"Enabled"})})]})]})})]}),e.jsxs(x,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Actions"}),e.jsx(t,{gap:"sm",children:e.jsx(w,{label:"Clear all cached entries (coming soon)",children:e.jsx(P,{size:"xs",variant:"light",color:"red",leftSection:e.jsx(I,{size:14}),disabled:!0,children:"Clear All"})})})]})]})}),F=({cache:s})=>{const[l,p]=c.useState("");return e.jsxs(t,{direction:"column",h:"100%",children:[e.jsx(x,{p:"sm",style:{borderBottom:`1px solid ${a.colors.border}`},children:e.jsxs(t,{gap:"sm",align:"center",children:[e.jsx(T,{placeholder:"Filter by pattern...",leftSection:e.jsx(C,{size:14}),size:"xs",value:l,onChange:f=>p(f.target.value),style:{flex:1}}),e.jsx(w,{label:"Invalidate matching keys (coming soon)",children:e.jsx(A,{size:"sm",variant:"light",color:"orange",disabled:!0,children:e.jsx(I,{size:14})})})]})}),e.jsx(t,{align:"center",justify:"center",style:{flex:1},c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(R,{size:48,opacity:.3}),e.jsx(r,{size:"sm",children:"Key browser coming soon"}),e.jsxs(r,{size:"xs",c:"dimmed",children:["Browse and manage cached keys for ",s.name]})]})})]})},V=({cache:s})=>{const l=$(s.provider);return e.jsxs(t,{direction:"column",h:"100%",children:[e.jsx(x,{px:"md",py:"sm",style:{borderBottom:`1px solid ${a.colors.border}`,backgroundColor:`${l}08`},children:e.jsxs(t,{align:"center",gap:"sm",children:[e.jsx(v,{size:18,opacity:.7}),e.jsx(r,{size:"md",fw:600,children:s.name}),e.jsx(u,{size:"xs",variant:"light",color:s.provider==="redis"?"red":"green",children:s.provider}),s.disabled&&e.jsx(u,{size:"xs",variant:"light",color:"gray",children:"disabled"})]})}),e.jsxs(j,{defaultValue:"config",style:{flex:1,display:"flex",flexDirection:"column"},children:[e.jsxs(j.List,{px:"md",children:[e.jsx(j.Tab,{value:"config",children:"Config"}),e.jsx(j.Tab,{value:"keys",children:"Keys"})]}),e.jsx(j.Panel,{value:"config",style:{flex:1,overflow:"hidden"},children:e.jsx(N,{cache:s})}),e.jsx(j.Panel,{value:"keys",style:{flex:1,overflow:"hidden"},children:e.jsx(F,{cache:s})})]})]})},H=()=>e.jsx(t,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(v,{size:48,opacity:.3}),e.jsx(r,{size:"sm",children:"Select a cache to view its configuration"})]})}),_=()=>e.jsx(t,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(M,{size:48,opacity:.3}),e.jsx(r,{children:"No caches found"}),e.jsx(r,{size:"sm",c:"dimmed",children:"Add caches using $cache primitive to see them here"})]})}),ee=()=>{const s=B(L),[l,p]=c.useState([]),[f,b]=c.useState(!0),[h,y]=c.useState(null),[i,o]=c.useState("");c.useEffect(()=>{s.fetch("/devtools/api/metadata",{schema:{response:E}}).then(m=>{p(m.data.caches),b(!1)})},[]);const d=c.useMemo(()=>{if(!i)return l;const m=i.toLowerCase();return l.filter(k=>k.name.toLowerCase().includes(m))},[l,i]);return f?e.jsx(t,{align:"center",justify:"center",h:"100%",children:e.jsx(r,{c:"dimmed",children:"Loading..."})}):l.length===0?e.jsx(_,{}):e.jsxs(t,{h:"100%",style:{overflow:"hidden"},children:[e.jsx(x,{w:240,style:{borderRight:`1px solid ${a.colors.border}`,backgroundColor:a.colors.surface},children:e.jsx(K,{caches:d,selectedCache:h,onSelectCache:y,search:i,onSearchChange:o})}),e.jsx(x,{style:{flex:1,overflow:"hidden"},children:h?e.jsx(V,{cache:h}):e.jsx(H,{})})]})};export{ee as DevCacheInspector,ee as default};
@@ -1 +0,0 @@
1
- import{f as p,d as y,o as b,j as g,B as x,t as R,a2 as T,v as f}from"./entry.DqiMGelS.js";var c={root:"m_7341320d"};const I=R((e,{size:a,radius:t,variant:s,gradient:i,color:o,autoContrast:l})=>{const r=e.variantColorResolver({color:o||e.primaryColor,theme:e,gradient:i,variant:s||"filled",autoContrast:l});return{root:{"--ti-size":f(a,"ti-size"),"--ti-radius":t===void 0?void 0:T(t),"--ti-bg":o||s?r.background:void 0,"--ti-color":o||s?r.color:void 0,"--ti-bd":o||s?r.border:void 0}}}),n=p((e,a)=>{const t=y("ThemeIcon",null,e),{classNames:s,className:i,style:o,styles:l,unstyled:r,vars:d,autoContrast:h,attributes:m,...u}=t,v=b({name:"ThemeIcon",classes:c,props:t,className:i,style:o,classNames:s,styles:l,unstyled:r,attributes:m,vars:d,varsResolver:I});return g.jsx(x,{ref:a,...v("root"),...u})});n.classes=c;n.displayName="@mantine/core/ThemeIcon";export{n as T};
@@ -1 +0,0 @@
1
- import{p as z,d as v,o as y,j as g,B as f,t as h,w as E,a2 as F,v as u,f as T,h as V}from"./entry.DqiMGelS.js";var x={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const W=h((a,{radius:e,color:s,gradient:o,variant:t,size:r,autoContrast:l,circle:c})=>{const d=a.variantColorResolver({color:s||a.primaryColor,theme:a,gradient:o,variant:t||"filled",autoContrast:l});return{root:{"--badge-height":u(r,"badge-height"),"--badge-padding-x":u(r,"badge-padding-x"),"--badge-fz":u(r,"badge-fz"),"--badge-radius":c||e===void 0?void 0:F(e),"--badge-bg":s||t?d.background:void 0,"--badge-color":s||t?d.color:void 0,"--badge-bd":s||t?d.border:void 0,"--badge-dot-color":t==="dot"?E(s,a):void 0}}}),S=z((a,e)=>{const s=v("Badge",null,a),{classNames:o,className:t,style:r,styles:l,unstyled:c,vars:d,radius:B,color:R,gradient:N,leftSection:i,rightSection:n,children:m,variant:p,fullWidth:_,autoContrast:D,circle:C,mod:w,attributes:P,...$}=s,b=y({name:"Badge",props:s,classes:x,className:t,style:r,classNames:o,styles:l,unstyled:c,attributes:P,vars:d,varsResolver:W});return g.jsxs(f,{variant:p,mod:[{block:_,circle:C,"with-right-section":!!n,"with-left-section":!!i},w],...b("root",{variant:p}),ref:e,...$,children:[i&&g.jsx("span",{...b("section"),"data-position":"left",children:i}),g.jsx("span",{...b("label"),children:m}),n&&g.jsx("span",{...b("section"),"data-position":"right",children:n})]})});S.classes=x;S.displayName="@mantine/core/Badge";var j={root:"m_6d731127"};const q={gap:"md",align:"stretch",justify:"flex-start"},A=h((a,{gap:e,align:s,justify:o})=>({root:{"--stack-gap":V(e),"--stack-align":s,"--stack-justify":o}})),k=T((a,e)=>{const s=v("Stack",q,a),{classNames:o,className:t,style:r,styles:l,unstyled:c,vars:d,align:B,justify:R,gap:N,variant:i,attributes:n,...m}=s,p=y({name:"Stack",props:s,classes:j,className:t,style:r,classNames:o,styles:l,unstyled:c,attributes:n,vars:d,varsResolver:A});return g.jsx(f,{ref:e,...p("root"),variant:i,...m})});k.classes=j;k.displayName="@mantine/core/Stack";export{S as B,k as S};
@@ -1 +0,0 @@
1
- import{ax as Me,a5 as Ae,b3 as $e,r as i,c as Ke,f as j,d as E,bf as We,aj as Z,j as b,bg as G,aN as J,bh as Be,B as N,bi as He,g as Ue,bb as Xe,be as Ye,e as qe,bj as Q,a1 as Le,bk as Ze,bl as U,aB as X,a as Ge,bm as Je,bn as Qe,bo as Y,bp as er,bq as q,br as rr,bs as tr,bt as L,o as ee,az as or,al as nr,q as sr,bu as ar,bv as ir,s as lr,t as re,bw as cr,a2 as dr,v as ur,w as fr}from"./entry.DqiMGelS.js";import{n as pr}from"./chunk.BjFrJKj1.js";import{u as wr}from"./chunk.B4XxoeIU.js";function Sr(e,n){const o=Me(),t=Ae($e),[l,p]=i.useState(!1),[u,a]=i.useState(),[s,v]=i.useState(),d=i.useRef(!1),c=i.useRef(void 0),r=i.useRef(void 0),m=i.useRef(!0),w=i.useRef(void 0);i.useEffect(()=>()=>{m.current=!1,c.current&&(t.clearTimeout(c.current),c.current=void 0),w.current&&(t.clearInterval(w.current),w.current=void 0),r.current&&(r.current.abort(),r.current=void 0)},[]);const y=i.useCallback(async(...x)=>{if(d.current)return;r.current&&r.current.abort();const P=new AbortController;r.current=P,d.current=!0,p(!0),a(void 0),await o.events.emit("react:action:begin",{type:"custom",id:e.id});try{const g=await e.handler(...x,{signal:P.signal});return v(g),!m.current||P.signal.aborted?void 0:(await o.events.emit("react:action:success",{type:"custom",id:e.id}),e.onSuccess&&await e.onSuccess(g),g)}catch(g){if(g instanceof Error&&g.name==="AbortError"||!m.current)return;const C=g;if(a(C),await o.events.emit("react:action:error",{type:"custom",id:e.id,error:C}),e.onError)await e.onError(C);else throw C}finally{d.current=!1,p(!1),await o.events.emit("react:action:end",{type:"custom",id:e.id}),r.current===P&&(r.current=void 0)}},[...n,e.id,e.onError,e.onSuccess]),h=i.useCallback(async(...x)=>e.debounce?(c.current&&t.clearTimeout(c.current),new Promise(P=>{c.current=t.createTimeout(async()=>{const g=await y(...x);P(g)},e.debounce??0)})):y(...x),[y,e.debounce]),O=i.useCallback(()=>{c.current&&(t.clearTimeout(c.current),c.current=void 0),r.current&&(r.current.abort(),r.current=void 0),m.current&&(d.current=!1,p(!1))},[]);return i.useEffect(()=>{e.runOnInit&&h()},n),i.useEffect(()=>{if(e.runEvery)return w.current=t.createInterval(()=>h(),e.runEvery,!0),()=>{w.current&&(t.clearInterval(w.current),w.current=void 0)}},[h,e.runEvery]),{run:h,loading:l,error:u,cancel:O,result:s}}function gr(e,n={active:!0}){return typeof e!="function"||!n.active?n.onKeyDown||pr:o=>{o.key==="Escape"&&(e(o),n.onTrigger?.())}}const[vr,te]=Ke("Popover component was not found in the tree");var oe={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const k=j((e,n)=>{const o=E("PopoverDropdown",null,e),{className:t,style:l,vars:p,children:u,onKeyDownCapture:a,variant:s,classNames:v,styles:d,...c}=o,r=te(),m=We({opened:r.opened,shouldReturnFocus:r.returnFocus}),w=r.withRoles?{"aria-labelledby":r.getTargetId(),id:r.getDropdownId(),role:"dialog",tabIndex:-1}:{},y=Z(n,r.floating);return r.disabled?null:b.jsx(G,{...r.portalProps,withinPortal:r.withinPortal,children:b.jsx(J,{mounted:r.opened,...r.transitionProps,transition:r.transitionProps?.transition||"fade",duration:r.transitionProps?.duration??150,keepMounted:r.keepMounted,exitDuration:typeof r.transitionProps?.exitDuration=="number"?r.transitionProps.exitDuration:r.transitionProps?.duration,children:h=>b.jsx(Be,{active:r.trapFocus&&r.opened,innerRef:y,children:b.jsxs(N,{...w,...c,variant:s,onKeyDownCapture:gr(()=>{r.onClose?.(),r.onDismiss?.()},{active:r.closeOnEscape,onTrigger:m,onKeyDown:a}),"data-position":r.placement,"data-fixed":r.floatingStrategy==="fixed"||void 0,...r.getStyles("dropdown",{className:t,props:o,classNames:v,styles:d,style:[{...h,zIndex:r.zIndex,top:r.y??0,left:r.x??0,width:r.width==="target"?void 0:Ue(r.width),...r.referenceHidden?{display:"none"}:null},r.resolvedStyles.dropdown,d?.dropdown,l]}),children:[u,b.jsx(He,{ref:r.arrowRef,arrowX:r.arrowX,arrowY:r.arrowY,visible:r.withArrow,position:r.placement,arrowSize:r.arrowSize,arrowRadius:r.arrowRadius,arrowOffset:r.arrowOffset,arrowPosition:r.arrowPosition,...r.getStyles("arrow",{props:o,classNames:v,styles:d})})]})})})})});k.classes=oe;k.displayName="@mantine/core/PopoverDropdown";const mr={refProp:"ref",popupType:"dialog"},ne=j((e,n)=>{const{children:o,refProp:t,popupType:l,...p}=E("PopoverTarget",mr,e),u=Xe(o);if(!u)throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const a=p,s=te(),v=Z(s.reference,Ye(u),n),d=s.withRoles?{"aria-haspopup":l,"aria-expanded":s.opened,"aria-controls":s.opened?s.getDropdownId():void 0,id:s.getTargetId()}:{},c=u.props;return i.cloneElement(u,{...a,...d,...s.targetProps,className:qe(s.targetProps.className,a.className,c.className),[t]:v,...s.controlled?null:{onClick:()=>{s.onToggle(),c.onClick?.()}}})});ne.displayName="@mantine/core/PopoverTarget";function hr(e){if(e===void 0)return{shift:!0,flip:!0};const n={...e};return e.shift===void 0&&(n.shift=!0),e.flip===void 0&&(n.flip=!0),n}function br(e,n,o){const t=hr(e.middlewares),l=[Je(e.offset),Qe()];return e.dropdownVisible&&o!=="test"&&e.preventPositionChangeWhenVisible&&(t.flip=!1),t.flip&&l.push(typeof t.flip=="boolean"?Y():Y(t.flip)),t.shift&&l.push(er(typeof t.shift=="boolean"?{limiter:L(),padding:5}:{limiter:L(),padding:5,...t.shift})),t.inline&&l.push(typeof t.inline=="boolean"?q():q(t.inline)),l.push(rr({element:e.arrowRef,padding:e.arrowOffset})),(t.size||e.width==="target")&&l.push(tr({...typeof t.size=="boolean"?{}:t.size,apply({rects:p,availableWidth:u,availableHeight:a,...s}){const d=n().refs.floating.current?.style??{};t.size&&(typeof t.size=="object"&&t.size.apply?t.size.apply({rects:p,availableWidth:u,availableHeight:a,...s}):Object.assign(d,{maxWidth:`${u}px`,maxHeight:`${a}px`})),e.width==="target"&&Object.assign(d,{width:`${p.reference.width}px`})}})),l}function yr(e){const n=Q(),[o,t]=Le({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),l=i.useRef(o),p=()=>{o&&!e.disabled&&t(!1)},u=()=>{e.disabled||t(!o)},a=Ze({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:br(e,()=>a,n),whileElementsMounted:e.keepMounted?void 0:U});return i.useEffect(()=>{if(!(!a.refs.reference.current||!a.refs.floating.current)&&o)return U(a.refs.reference.current,a.refs.floating.current,a.update)},[o,a.update]),X(()=>{e.onPositionChange?.(a.placement),e.positionRef.current=a.placement},[a.placement,e.preventPositionChangeWhenVisible]),X(()=>{o!==l.current&&(o?e.onOpen?.():e.onClose?.()),l.current=o},[o,e.onClose,e.onOpen]),Ge(()=>{let s=-1;return o&&(s=window.setTimeout(()=>e.setDropdownVisible(!0),4)),()=>{window.clearTimeout(s)}},[o,e.position]),{floating:a,controlled:typeof e.opened=="boolean",opened:o,onClose:p,onToggle:u}}const Pr={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:lr("popover"),__staticSelector:"Popover",width:"max-content"},xr=re((e,{radius:n,shadow:o})=>({dropdown:{"--popover-radius":n===void 0?void 0:dr(n),"--popover-shadow":cr(o)}}));function D(e){const n=E("Popover",Pr,e),{children:o,position:t,offset:l,onPositionChange:p,positionDependencies:u,opened:a,transitionProps:s,onExitTransitionEnd:v,onEnterTransitionEnd:d,width:c,middlewares:r,withArrow:m,arrowSize:w,arrowOffset:y,arrowRadius:h,arrowPosition:O,unstyled:x,classNames:P,styles:g,closeOnClickOutside:C,withinPortal:I,portalProps:ie,closeOnEscape:le,clickOutsideEvents:ce,trapFocus:de,onClose:ue,onDismiss:S,onOpen:fe,onChange:pe,zIndex:we,radius:ge,shadow:ve,id:me,defaultOpened:F,__staticSelector:V,withRoles:he,disabled:_,returnFocus:be,variant:ye,keepMounted:M,vars:Pe,floatingStrategy:A,withOverlay:xe,overlayProps:T,hideDetached:Re,attributes:Ce,preventPositionChangeWhenVisible:z,...Ee}=n,$=ee({name:V,props:n,classes:oe,classNames:P,styles:g,unstyled:x,attributes:Ce,rootSelector:"dropdown",vars:Pe,varsResolver:xr}),{resolvedStyles:De}=or({classNames:P,styles:g,props:n}),[Oe,K]=i.useState(a??F??!1),W=i.useRef(t),B=i.useRef(null),[Se,Te]=i.useState(null),[ze,Ne]=i.useState(null),{dir:je}=nr(),ke=Q(),H=sr(me),f=yr({middlewares:r,width:c,position:ar(je,t),offset:typeof l=="number"?l+(m?w/2:0):l,arrowRef:B,arrowOffset:y,onPositionChange:p,positionDependencies:u,opened:a,defaultOpened:F,onChange:pe,onOpen:fe,onClose:ue,onDismiss:S,strategy:A,dropdownVisible:Oe,setDropdownVisible:K,positionRef:W,disabled:_,preventPositionChangeWhenVisible:z,keepMounted:M});wr(()=>{C&&(f.onClose(),S?.())},ce,[Se,ze]);const Ie=i.useCallback(R=>{Te(R),f.floating.refs.setReference(R)},[f.floating.refs.setReference]),Fe=i.useCallback(R=>{Ne(R),f.floating.refs.setFloating(R)},[f.floating.refs.setFloating]),Ve=i.useCallback(()=>{s?.onExited?.(),v?.(),K(!1),z||(W.current=t)},[s?.onExited,v,z,t]),_e=i.useCallback(()=>{s?.onEntered?.(),d?.()},[s?.onEntered,d]);return b.jsxs(vr,{value:{returnFocus:be,disabled:_,controlled:f.controlled,reference:Ie,floating:Fe,x:f.floating.x,y:f.floating.y,arrowX:f.floating?.middlewareData?.arrow?.x,arrowY:f.floating?.middlewareData?.arrow?.y,opened:f.opened,arrowRef:B,transitionProps:{...s,onExited:Ve,onEntered:_e},width:c,withArrow:m,arrowSize:w,arrowOffset:y,arrowRadius:h,arrowPosition:O,placement:f.floating.placement,trapFocus:de,withinPortal:I,portalProps:ie,zIndex:we,radius:ge,shadow:ve,closeOnEscape:le,onDismiss:S,onClose:f.onClose,onToggle:f.onToggle,getTargetId:()=>`${H}-target`,getDropdownId:()=>`${H}-dropdown`,withRoles:he,targetProps:Ee,__staticSelector:V,classNames:P,styles:g,unstyled:x,variant:ye,keepMounted:M,getStyles:$,resolvedStyles:De,floatingStrategy:A,referenceHidden:Re&&ke!=="test"?f.floating.middlewareData.hide?.referenceHidden:!1},children:[o,xe&&b.jsx(J,{transition:"fade",mounted:f.opened,duration:s?.duration||250,exitDuration:s?.exitDuration||250,children:R=>b.jsx(G,{withinPortal:I,children:b.jsx(ir,{...T,...$("overlay",{className:T?.className,style:[R,T?.style]})})})})]})}D.Target=ne;D.Dropdown=k;D.displayName="@mantine/core/Popover";D.extend=e=>e;var se={root:"m_3eebeb36",label:"m_9e365f20"};const Rr={orientation:"horizontal"},Cr=re((e,{color:n,variant:o,size:t})=>({root:{"--divider-color":n?fr(n,e):void 0,"--divider-border-style":o,"--divider-size":ur(t,"divider-size")}})),ae=j((e,n)=>{const o=E("Divider",Rr,e),{classNames:t,className:l,style:p,styles:u,unstyled:a,vars:s,color:v,orientation:d,label:c,labelPosition:r,mod:m,attributes:w,...y}=o,h=ee({name:"Divider",classes:se,props:o,className:l,style:p,classNames:t,styles:u,unstyled:a,attributes:w,vars:s,varsResolver:Cr});return b.jsx(N,{ref:n,mod:[{orientation:d,"with-label":!!c},m],...h("root"),...y,role:"separator",children:c&&b.jsx(N,{component:"span",mod:{position:r},...h("label"),children:c})})});ae.classes=se;ae.displayName="@mantine/core/Divider";export{ae as D,D as P,Sr as u};
@@ -1 +0,0 @@
1
- import{x as t,j as e,F as l,T as s,$ as o}from"./entry.DqiMGelS.js";import{A as a}from"./chunk.DqdWWOSs.js";const n=[["path",{d:"M3 21h4l13 -13a1.5 1.5 0 0 0 -4 -4l-13 13v4",key:"svg-0"}],["path",{d:"M14.5 5.5l4 4",key:"svg-1"}],["path",{d:"M12 8l-5 -5l-4 4l5 5",key:"svg-2"}],["path",{d:"M7 8l-1.5 1.5",key:"svg-3"}],["path",{d:"M16 12l5 5l-4 4l-5 -5",key:"svg-4"}],["path",{d:"M16 17l-1.5 1.5",key:"svg-5"}]],r=t("outline","tools","Tools",n),d=()=>e.jsxs(l,{direction:"column",align:"center",justify:"center",flex:1,w:"100%",gap:"xl",children:[e.jsx(l,{direction:"column",align:"center",gap:4,mb:"md",children:e.jsxs(l,{align:"center",gap:"sm",children:[e.jsx(r,{size:40,stroke:1.5,opacity:.8}),e.jsx(s,{size:"2rem",fw:300,style:{letterSpacing:"-0.02em"},children:"Alepha DevTools"})]})}),e.jsx(a,{icon:e.jsx(o,{}),title:"Work In Progress",color:"blue",variant:"light",maw:500,children:"DevTools is still in active development. New features and improvements are being added regularly. Use the navigation to explore available tools."})]});export{d as DevDashboard,d as default};
@@ -1,2 +0,0 @@
1
- import{c as W,f as B,d as N,j as e,U as xe,B as w,a0 as fe,q as ve,a1 as Q,o as je,t as ge,a2 as ye,g as be,a3 as Ce,r as f,a4 as Se,x as Ie,T as b,a5 as X,a6 as Y,a7 as A,a8 as ze,a9 as Z,aa as Ae,ab as ee,ac as se,ad as te,ae as oe,af as ne,ag as we,K as Pe,L as V,F as J,P as Te,ah as Ne,C as Re}from"./entry.DqiMGelS.js";import{d as _e}from"./chunk.D1-ODKSf.js";import{B as k,S as O}from"./chunk.BLgG-Amn.js";import{C as U}from"./chunk.DXhVYZJu.js";import{T as Ee}from"./chunk.DrLudrGo.js";import{I as Oe}from"./chunk.Bz4bTzr0.js";import{g as G,T as z}from"./chunk.DAeCHJ5Z.js";import{A as re}from"./chunk.DN2ng7Ec.js";import{c as Be}from"./chunk.BlqFPyLh.js";import{I as ke}from"./chunk.DkirMznI.js";import{S as Le}from"./chunk.D4SUrYI2.js";import"./chunk.uyVen0u2.js";const[Je,M]=W("Accordion component was not found in the tree");var R={root:"m_9bdbb667",panel:"m_df78851f",content:"m_4ba554d4",itemTitle:"m_8fa820a0",control:"m_4ba585b8","control--default":"m_6939a5e9","control--contained":"m_4271d21b",label:"m_df3ffa0f",chevron:"m_3f35ae96",icon:"m_9bd771fe",item:"m_9bd7b098","item--default":"m_fe19b709","item--contained":"m_1f921b3b","item--filled":"m_2cdf939a","item--separated":"m_9f59b069"};const[Ue,ae]=W("Accordion.Item component was not found in the tree"),D=B((s,o)=>{const{classNames:t,className:d,style:x,styles:l,vars:g,chevron:c,icon:m,onClick:u,onKeyDown:r,children:n,disabled:i,mod:h,...p}=N("AccordionControl",null,s),{value:y}=ae(),a=M(),C=a.isItemActive(y),_=typeof a.order=="number",T=`h${a.order}`,v=e.jsxs(xe,{...p,...a.getStyles("control",{className:d,classNames:t,style:x,styles:l,variant:a.variant}),unstyled:a.unstyled,mod:["accordion-control",{active:C,"chevron-position":a.chevronPosition,disabled:i},h],ref:o,onClick:P=>{u?.(P),a.onChange(y)},type:"button",disabled:i,"aria-expanded":C,"aria-controls":a.getRegionId(y),id:a.getControlId(y),onKeyDown:Be({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:a.loop,orientation:"vertical",onKeyDown:r}),children:[e.jsx(w,{component:"span",mod:{rotate:!a.disableChevronRotation&&C,position:a.chevronPosition},...a.getStyles("chevron",{classNames:t,styles:l}),children:c||a.chevron}),e.jsx("span",{...a.getStyles("label",{classNames:t,styles:l}),children:n}),m&&e.jsx(w,{component:"span",mod:{"chevron-position":a.chevronPosition},...a.getStyles("icon",{classNames:t,styles:l}),children:m})]});return _?e.jsx(T,{...a.getStyles("itemTitle",{classNames:t,styles:l}),children:v}):v});D.displayName="@mantine/core/AccordionControl";D.classes=R;const $=B((s,o)=>{const{classNames:t,className:d,style:x,styles:l,vars:g,value:c,mod:m,...u}=N("AccordionItem",null,s),r=M();return e.jsx(Ue,{value:{value:c},children:e.jsx(w,{ref:o,mod:[{active:r.isItemActive(c)},m],...r.getStyles("item",{className:d,classNames:t,styles:l,style:x,variant:r.variant}),...u})})});$.displayName="@mantine/core/AccordionItem";$.classes=R;const F=B((s,o)=>{const{classNames:t,className:d,style:x,styles:l,vars:g,children:c,...m}=N("AccordionPanel",null,s),{value:u}=ae(),r=M();return e.jsx(fe,{ref:o,...r.getStyles("panel",{className:d,classNames:t,style:x,styles:l}),...m,in:r.isItemActive(u),transitionDuration:r.transitionDuration??200,role:"region",id:r.getRegionId(u),"aria-labelledby":r.getControlId(u),children:e.jsx("div",{...r.getStyles("content",{classNames:t,styles:l}),children:c})})});F.displayName="@mantine/core/AccordionPanel";F.classes=R;const Me={multiple:!1,disableChevronRotation:!1,chevronPosition:"right",variant:"default",chevronSize:"auto",chevronIconSize:16},De=ge((s,{transitionDuration:o,chevronSize:t,radius:d})=>({root:{"--accordion-transition-duration":o===void 0?void 0:`${o}ms`,"--accordion-chevron-size":t===void 0?void 0:be(t),"--accordion-radius":d===void 0?void 0:ye(d)}}));function j(s){const o=N("Accordion",Me,s),{classNames:t,className:d,style:x,styles:l,unstyled:g,vars:c,children:m,multiple:u,value:r,defaultValue:n,onChange:i,id:h,loop:p,transitionDuration:y,disableChevronRotation:a,chevronPosition:C,chevronSize:_,order:T,chevron:v,variant:P,radius:Ye,chevronIconSize:le,attributes:ie,...ce}=o,L=ve(h),[S,de]=Q({value:r,defaultValue:n,finalValue:u?[]:null,onChange:i}),ue=I=>Array.isArray(S)?S.includes(I):I===S,me=I=>{const he=Array.isArray(S)?S.includes(I)?S.filter(pe=>pe!==I):[...S,I]:I===S?null:I;de(he)},H=je({name:"Accordion",classes:R,props:o,className:d,style:x,classNames:t,styles:l,unstyled:g,attributes:ie,vars:c,varsResolver:De});return e.jsx(Je,{value:{isItemActive:ue,onChange:me,getControlId:G(`${L}-control`,"Accordion.Item component was rendered with invalid value or without value"),getRegionId:G(`${L}-panel`,"Accordion.Item component was rendered with invalid value or without value"),chevron:v===null?null:v||e.jsx(re,{size:le}),transitionDuration:y,disableChevronRotation:a,chevronPosition:C,order:T,loop:p,getStyles:H,variant:P,unstyled:g},children:e.jsx(w,{...H("root"),id:L,...ce,variant:P,"data-accordion":!0,children:m})})}const $e=s=>s;j.extend=$e;j.withProps=Ce(j);j.classes=R;j.displayName="@mantine/core/Accordion";j.Item=$;j.Panel=F;j.Control=D;j.Chevron=re;function K(s,o){if(typeof s=="string"&&s.trim().length===0)return!0;try{return o(s),!0}catch{return!1}}const Fe={serialize:JSON.stringify,deserialize:JSON.parse,size:"sm"},q=B((s,o)=>{const{value:t,defaultValue:d,onChange:x,formatOnBlur:l,validationError:g,serialize:c,deserialize:m,onFocus:u,onBlur:r,readOnly:n,error:i,...h}=N("JsonInput",Fe,s),[p,y]=Q({value:t,defaultValue:d,finalValue:"",onChange:x}),[a,C]=f.useState(K(p,m)),_=v=>{u?.(v),C(!0)},T=v=>{typeof r=="function"&&r(v);const P=K(v.currentTarget.value,m);l&&!n&&P&&v.currentTarget.value.trim()!==""&&y(c(m(v.currentTarget.value),null,2)),C(P)};return e.jsx(Ee,{value:p,onChange:v=>y(v.currentTarget.value),onFocus:_,onBlur:T,ref:o,readOnly:n,...h,autoComplete:"off",__staticSelector:"JsonInput",error:a?i:g||!0,"data-monospace":!0})});q.classes=Se.classes;q.displayName="@mantine/core/JsonInput";const qe=[["path",{d:"M5 7l5 5l-5 5",key:"svg-0"}],["path",{d:"M12 19l7 0",key:"svg-1"}]],He=Ie("outline","terminal","Terminal",qe),Ve=(s,o)=>{const t=[`curl -X ${s.method.toUpperCase()}`];return t.push(` '${window.location.origin}${s.fullPath}'`),s.body,t.join(` \\
2
- `)},Ge={GET:"teal",POST:"blue",PUT:"orange",PATCH:"yellow",DELETE:"red"},Ke=({method:s})=>e.jsx(k,{variant:"light",color:Ge[s.toUpperCase()]||"gray",size:"sm",radius:"sm",w:60,children:s.toUpperCase()}),E=({schema:s,label:o})=>s?e.jsxs(w,{children:[e.jsx(b,{size:"xs",fw:500,c:"dimmed",mb:4,children:o}),e.jsx(U,{block:!0,style:{fontSize:11,maxHeight:200,overflow:"auto"},children:JSON.stringify(s,null,2)})]}):null,We=({action:s})=>{const o=X(Y),[t,d]=f.useState("{}"),[x,l]=f.useState(null),[g,c]=f.useState(!1),[m,u]=f.useState(null),[r,n]=f.useState(null),i=f.useCallback(async()=>{c(!0),n(null),l(null);const h=performance.now();try{let p;if(s.body&&t)try{p=JSON.parse(t)}catch{n("Invalid JSON body"),c(!1);return}const y=await o.fetch(s.fullPath,{method:s.method.toUpperCase(),body:p?JSON.stringify(p):void 0,headers:p?{"Content-Type":"application/json"}:void 0});u(Math.round(performance.now()-h)),l(JSON.stringify(y.data,null,2))}catch(p){u(Math.round(performance.now()-h)),n(p instanceof Error?p.message:"Request failed")}finally{c(!1)}},[o,s,t]);return e.jsxs(O,{gap:"md",children:[s.body&&e.jsx(q,{label:"Request Body",placeholder:'{"key": "value"}',value:t,onChange:d,minRows:4,maxRows:10,autosize:!0,formatOnBlur:!0,validationError:"Invalid JSON"}),e.jsxs(A,{children:[e.jsx(ze,{leftSection:g?e.jsx(Z,{size:14}):e.jsx(Oe,{size:14}),onClick:i,disabled:g,size:"sm",children:"Execute"}),m!==null&&e.jsxs(b,{size:"xs",c:"dimmed",children:[m,"ms"]})]}),r&&e.jsx(Ae,{p:"sm",bg:"var(--mantine-color-red-light)",children:e.jsx(b,{size:"sm",c:"red",children:r})}),x&&e.jsxs(w,{children:[e.jsxs(A,{justify:"space-between",mb:4,children:[e.jsx(b,{size:"xs",fw:500,c:"dimmed",children:"Response"}),e.jsx(ee,{value:x,children:({copied:h,copy:p})=>e.jsx(se,{size:"xs",variant:"subtle",onClick:p,children:h?e.jsx(te,{size:12}):e.jsx(oe,{size:12})})})]}),e.jsx(ne,{h:200,children:e.jsx(U,{block:!0,style:{fontSize:11},children:x})})]})]})},Qe=({action:s})=>{const o=f.useMemo(()=>Ve(s),[s]);return e.jsxs(j.Item,{value:s.fullPath,opacity:s.disabled?.5:1,children:[e.jsx(j.Control,{children:e.jsxs(A,{gap:"sm",wrap:"nowrap",children:[e.jsx(Ke,{method:s.method}),e.jsx(b,{size:"sm",ff:"monospace",style:{wordBreak:"break-all"},children:s.fullPath}),s.secure&&e.jsx(we,{label:"Requires authentication",children:e.jsx(ke,{size:14,opacity:.5})}),s.disabled&&e.jsx(k,{size:"xs",variant:"light",color:"gray",children:"disabled"})]})}),e.jsx(j.Panel,{children:e.jsxs(O,{gap:"md",children:[(s.description||s.summary)&&e.jsx(b,{size:"sm",c:"dimmed",children:s.description||s.summary}),e.jsxs(z,{defaultValue:"schema",variant:"outline",children:[e.jsxs(z.List,{children:[e.jsx(z.Tab,{value:"schema",size:"xs",children:"Schema"}),e.jsx(z.Tab,{value:"try",size:"xs",children:"Try It"}),e.jsx(z.Tab,{value:"curl",size:"xs",leftSection:e.jsx(He,{size:12}),children:"cURL"})]}),e.jsx(z.Panel,{value:"schema",pt:"md",children:e.jsxs(O,{gap:"md",children:[e.jsxs(A,{gap:"xl",align:"flex-start",children:[e.jsx(E,{schema:s.params,label:"Path Parameters"}),e.jsx(E,{schema:s.query,label:"Query Parameters"})]}),e.jsx(E,{schema:s.body,label:"Request Body"}),e.jsx(E,{schema:s.response,label:"Response"}),!s.params&&!s.query&&!s.body&&!s.response&&e.jsx(b,{size:"sm",c:"dimmed",children:"No schema defined"})]})}),e.jsx(z.Panel,{value:"try",pt:"md",children:e.jsx(We,{action:s})}),e.jsx(z.Panel,{value:"curl",pt:"md",children:e.jsxs(w,{pos:"relative",children:[e.jsx(ee,{value:o,children:({copied:t,copy:d})=>e.jsx(se,{size:"sm",variant:"subtle",onClick:d,pos:"absolute",top:8,right:8,children:t?e.jsx(te,{size:14}):e.jsx(oe,{size:14})})}),e.jsx(U,{block:!0,style:{fontSize:11},children:o})]})})]})]})})]})},Xe=({group:s,actions:o})=>e.jsxs(w,{children:[e.jsxs(A,{gap:"xs",mb:"xs",children:[e.jsx(Pe,{size:14,opacity:.5}),e.jsx(b,{size:"xs",fw:600,tt:"uppercase",c:"dimmed",children:s}),e.jsx(k,{variant:"light",color:"gray",size:"xs",children:o.length})]}),e.jsx(j,{variant:"separated",styles:{item:{backgroundColor:V.colors.surface,border:`1px solid ${V.colors.border}`}},children:o.map(t=>e.jsx(Qe,{action:t},t.fullPath))})]}),us=()=>{const s=X(Y),[o,t]=f.useState([]),[d,x]=f.useState(!0),[l,g]=f.useState(""),[c,m]=f.useState("all");f.useEffect(()=>{s.fetch("/devtools/api/metadata",{schema:{response:_e}}).then(n=>{t(n.data.actions),x(!1)})},[]);const u=f.useMemo(()=>o.filter(n=>{if(n.hide||c!=="all"&&n.method.toUpperCase()!==c)return!1;if(l){const i=l.toLowerCase();return n.fullPath.toLowerCase().includes(i)||n.name.toLowerCase().includes(i)||n.group.toLowerCase().includes(i)||n.description?.toLowerCase().includes(i)}return!0}),[o,l,c]),r=f.useMemo(()=>{const n={};for(const i of u){const h=i.group||"Other";n[h]||(n[h]=[]),n[h].push(i)}return Object.entries(n).sort(([i],[h])=>i.localeCompare(h))},[u]);return d?e.jsx(J,{align:"center",justify:"center",h:"100%",children:e.jsx(Z,{size:"sm"})}):e.jsxs(J,{direction:"column",gap:"md",w:"100%",h:"100%",p:"xl",children:[e.jsx(A,{justify:"space-between",wrap:"nowrap",children:e.jsxs(A,{gap:"sm",children:[e.jsx(Te,{size:24,opacity:.7}),e.jsx(b,{size:"lg",fw:500,children:"Actions"}),e.jsx(k,{variant:"light",color:"gray",size:"sm",children:u.length})]})}),e.jsxs(A,{gap:"sm",children:[e.jsx(Ne,{placeholder:"Search actions...",leftSection:e.jsx(Re,{size:14}),value:l,onChange:n=>g(n.currentTarget.value),style:{flex:1},size:"sm"}),e.jsx(Le,{size:"xs",value:c,onChange:m,data:[{label:"All",value:"all"},{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"DELETE",value:"DELETE"}]})]}),e.jsx(ne,{flex:1,offsetScrollbars:!0,children:r.length===0?e.jsx(J,{align:"center",justify:"center",h:200,children:e.jsx(b,{c:"dimmed",children:"No actions found"})}):e.jsx(O,{gap:"md",children:r.map(([n,i])=>e.jsx(Xe,{group:n,actions:i},n))})})]})};export{us as DevActionsExplorer,us as default};
@@ -1 +0,0 @@
1
- import{r,bx as E,f as F,d as L,o as W,aj as B,j as x,B as I,t as M,l as oe,by as O,a1 as ae,q as ie,an as ue,aL as le,v as ce,w as de,a2 as fe}from"./entry.DqiMGelS.js";import{g as me}from"./chunk.uyVen0u2.js";function ve(t,e){if(t===e||Number.isNaN(t)&&Number.isNaN(e))return!0;if(!(t instanceof Object)||!(e instanceof Object))return!1;const n=Object.keys(t),{length:o}=n;if(o!==Object.keys(e).length)return!1;for(let a=0;a<o;a+=1){const i=n[a];if(!(i in e)||t[i]!==e[i]&&!(Number.isNaN(t[i])&&Number.isNaN(e[i])))return!1}return!0}function he(t,e){if(!t||!e)return!1;if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;n+=1)if(!ve(t[n],e[n]))return!1;return!0}function be(t){const e=r.useRef([]),n=r.useRef(0);return he(e.current,t)||(e.current=t,n.current+=1),[n.current]}function ge(t,e){r.useEffect(t,be(e))}function pe(t,e,n={autoInvoke:!1}){const o=r.useRef(null),a=r.useCallback((...m)=>{o.current||(o.current=window.setTimeout(()=>{t(m),o.current=null},e))},[e]),i=r.useCallback(()=>{o.current&&(window.clearTimeout(o.current),o.current=null)},[]);return r.useEffect(()=>(n.autoInvoke&&a(),i),[i,a]),{start:a,clear:i}}function ye(t,e,n){const o=r.useRef(null),a=r.useRef(null);return r.useEffect(()=>{const i=typeof n=="function"?n():n;return(i||a.current)&&(o.current=new MutationObserver(t),o.current.observe(i||a.current,e)),()=>{o.current?.disconnect()}},[t,e]),a}function Re(){const[t,e]=r.useState(!1);return r.useEffect(()=>e(!0),[]),t}var P={root:"m_96b553a6"};function we(t,e){if(!e||!t)return!1;let n=e.parentNode;for(;n!=null;){if(n===t)return!0;n=n.parentNode}return!1}function Se({target:t,parent:e,ref:n,displayAfterTransitionEnd:o}){const a=r.useRef(-1),[i,m]=r.useState(!1),[w,S]=r.useState(typeof o=="boolean"?o:!1),l=()=>{if(!t||!e||!n.current)return;const u=t.getBoundingClientRect(),c=e.getBoundingClientRect(),f=window.getComputedStyle(t),h=window.getComputedStyle(e),p=E(f.borderTopWidth)+E(h.borderTopWidth),y=E(f.borderLeftWidth)+E(h.borderLeftWidth),b={top:u.top-c.top-p,left:u.left-c.left-y,width:u.width,height:u.height};n.current.style.transform=`translateY(${b.top}px) translateX(${b.left}px)`,n.current.style.width=`${b.width}px`,n.current.style.height=`${b.height}px`},d=()=>{window.clearTimeout(a.current),n.current&&(n.current.style.transitionDuration="0ms"),l(),a.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration="")},30)},g=r.useRef(null),v=r.useRef(null);return r.useEffect(()=>{if(l(),t)return g.current=new ResizeObserver(d),g.current.observe(t),e&&(v.current=new ResizeObserver(d),v.current.observe(e)),()=>{g.current?.disconnect(),v.current?.disconnect()}},[e,t]),r.useEffect(()=>{if(e){const u=c=>{we(c.target,e)&&(d(),S(!1))};return e.addEventListener("transitionend",u),()=>{e.removeEventListener("transitionend",u)}}},[e]),pe(()=>{me()!=="test"&&m(!0)},20,{autoInvoke:!0}),ye(u=>{u.forEach(c=>{c.type==="attributes"&&c.attributeName==="dir"&&d()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:i,hidden:w}}const Ce=M((t,{transitionDuration:e})=>({root:{"--transition-duration":typeof e=="number"?`${e}ms`:e}})),_=F((t,e)=>{const n=L("FloatingIndicator",null,t),{classNames:o,className:a,style:i,styles:m,unstyled:w,vars:S,target:l,parent:d,transitionDuration:g,mod:v,displayAfterTransitionEnd:u,attributes:c,...f}=n,h=W({name:"FloatingIndicator",classes:P,props:n,className:a,style:i,classNames:o,styles:m,unstyled:w,attributes:c,vars:S,varsResolver:Ce}),p=r.useRef(null),{initialized:y,hidden:b}=Se({target:l,parent:d,ref:p,displayAfterTransitionEnd:u}),N=B(e,p);return!l||!d?null:x.jsx(I,{ref:N,mod:[{initialized:y,hidden:b},v],...h("root"),...f})});_.displayName="@mantine/core/FloatingIndicator";_.classes=P;var A={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const Ne={withItemsBorders:!0},Ee=M((t,{radius:e,color:n,transitionDuration:o,size:a,transitionTimingFunction:i})=>({root:{"--sc-radius":e===void 0?void 0:fe(e),"--sc-color":n?de(n,t):void 0,"--sc-shadow":n?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":o===void 0?void 0:`${o}ms`,"--sc-transition-timing-function":i,"--sc-padding":ce(a,"sc-padding"),"--sc-font-size":le(a)}})),q=F((t,e)=>{const n=L("SegmentedControl",Ne,t),{classNames:o,className:a,style:i,styles:m,unstyled:w,vars:S,data:l,value:d,defaultValue:g,onChange:v,size:u,name:c,disabled:f,readOnly:h,fullWidth:p,orientation:y,radius:b,color:N,transitionDuration:xe,transitionTimingFunction:Ie,variant:D,autoContrast:H,withItemsBorders:K,mod:U,attributes:X,...Y}=n,R=W({name:"SegmentedControl",props:n,classes:A,className:a,style:i,classNames:o,styles:m,unstyled:w,attributes:X,vars:S,varsResolver:Ee}),j=oe(),z=l.map(s=>typeof s=="string"?{label:s,value:s}:s),G=Re(),[J,Q]=r.useState(O()),[Z,V]=r.useState(null),[$,ee]=r.useState({}),te=(s,T)=>{$[T]=s,ee($)},[C,ne]=ae({value:d,defaultValue:g,finalValue:Array.isArray(l)?z.find(s=>!s.disabled)?.value??l[0]?.value??null:null,onChange:v}),k=ie(c),se=z.map(s=>r.createElement(I,{...R("control"),mod:{active:C===s.value,orientation:y},key:s.value},r.createElement("input",{...R("input"),disabled:f||s.disabled,type:"radio",name:k,value:s.value,id:`${k}-${s.value}`,checked:C===s.value,onChange:()=>!h&&ne(s.value),"data-focus-ring":j.focusRing,key:`${s.value}-input`}),r.createElement(I,{component:"label",...R("label"),mod:{active:C===s.value&&!(f||s.disabled),disabled:f||s.disabled,"read-only":h},htmlFor:`${k}-${s.value}`,ref:T=>te(T,s.value),__vars:{"--sc-label-color":N!==void 0?ue({color:N,theme:j,autoContrast:H}):void 0},key:`${s.value}-label`},x.jsx("span",{...R("innerLabel"),children:s.label})))),re=B(e,s=>V(s));return ge(()=>{Q(O())},[l.length]),l.length===0?null:x.jsxs(I,{...R("root"),variant:D,size:u,ref:re,mod:[{"full-width":p,orientation:y,initialized:G,"with-items-borders":K},U],...Y,role:"radiogroup","data-disabled":f,children:[typeof C=="string"&&x.jsx(_,{target:$[C],parent:Z,component:"span",transitionDuration:"var(--sc-transition-duration)",...R("indicator")},J),se]})});q.classes=A;q.displayName="@mantine/core/SegmentedControl";export{q as S};
@@ -1 +0,0 @@
1
- import{c as q,f as j,d as C,j as u,B as k,l as F,al as H,U as G,w as z,q as J,a1 as Q,o as X,t as Y,am as Z,an as tt,a2 as et}from"./entry.DqiMGelS.js";import{c as at}from"./chunk.BlqFPyLh.js";function U(s,o){return a=>{if(typeof a!="string"||a.trim().length===0)throw new Error(o);return`${s}-${a}`}}const[st,K]=q("Tabs component was not found in the tree");var g={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const D=j((s,o)=>{const a=C("TabsList",null,s),{children:l,className:c,grow:r,justify:i,classNames:n,styles:m,style:p,mod:d,...b}=a,e=K();return u.jsx(k,{...b,...e.getStyles("list",{className:c,style:p,classNames:n,styles:m,props:a,variant:e.variant}),ref:o,role:"tablist",variant:e.variant,mod:[{grow:r,orientation:e.orientation,placement:e.orientation==="vertical"&&e.placement,inverted:e.inverted},d],"aria-orientation":e.orientation,__vars:{"--tabs-justify":i},children:l})});D.classes=g;D.displayName="@mantine/core/TabsList";const M=j((s,o)=>{const a=C("TabsPanel",null,s),{children:l,className:c,value:r,classNames:i,styles:n,style:m,mod:p,keepMounted:d,...b}=a,e=K(),v=e.value===r,y=e.keepMounted||d||v?l:null;return u.jsx(k,{...e.getStyles("panel",{className:c,classNames:i,styles:n,style:[m,v?void 0:{display:"none"}],props:a}),ref:o,mod:[{orientation:e.orientation},p],role:"tabpanel",id:e.getPanelId(r),"aria-labelledby":e.getTabId(r),...b,children:y})});M.classes=g;M.displayName="@mantine/core/TabsPanel";const V=j((s,o)=>{const a=C("TabsTab",null,s),{className:l,children:c,rightSection:r,leftSection:i,value:n,onClick:m,onKeyDown:p,disabled:d,color:b,style:e,classNames:v,styles:y,vars:N,mod:x,tabIndex:S,...P}=a,I=F(),{dir:_}=H(),t=K(),T=n===t.value,L=R=>{t.onChange(t.allowTabDeactivation&&n===t.value?null:n),m?.(R)},h={classNames:v,styles:y,props:a};return u.jsxs(G,{...t.getStyles("tab",{className:l,style:e,variant:t.variant,...h}),disabled:d,unstyled:t.unstyled,variant:t.variant,mod:[{active:T,disabled:d,orientation:t.orientation,inverted:t.inverted,placement:t.orientation==="vertical"&&t.placement},x],ref:o,role:"tab",id:t.getTabId(n),"aria-selected":T,tabIndex:S!==void 0?S:T||t.value===null?0:-1,"aria-controls":t.getPanelId(n),onClick:L,__vars:{"--tabs-color":b?z(b,I):void 0},onKeyDown:at({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:t.activateTabWithKeyboard,loop:t.loop,orientation:t.orientation||"horizontal",dir:_,onKeyDown:p}),...P,children:[i&&u.jsx("span",{...t.getStyles("tabSection",h),"data-position":"left",children:i}),c&&u.jsx("span",{...t.getStyles("tabLabel",h),children:c}),r&&u.jsx("span",{...t.getStyles("tabSection",h),"data-position":"right",children:r})]})});V.classes=g;V.displayName="@mantine/core/TabsTab";const $="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",nt={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},ot=Y((s,{radius:o,color:a,autoContrast:l})=>({root:{"--tabs-radius":et(o),"--tabs-color":z(a,s),"--tabs-text-color":Z(l,s)?tt({color:a,theme:s,autoContrast:l}):void 0}})),f=j((s,o)=>{const a=C("Tabs",nt,s),{defaultValue:l,value:c,onChange:r,orientation:i,children:n,loop:m,id:p,activateTabWithKeyboard:d,allowTabDeactivation:b,variant:e,color:v,radius:y,inverted:N,placement:x,keepMounted:S,classNames:P,styles:I,unstyled:_,className:t,style:T,vars:L,autoContrast:h,mod:R,attributes:A,...B}=a,w=J(p),[W,O]=Q({value:c,defaultValue:l,finalValue:null,onChange:r}),E=X({name:"Tabs",props:a,classes:g,className:t,style:T,classNames:P,styles:I,unstyled:_,attributes:A,vars:L,varsResolver:ot});return u.jsx(st,{value:{placement:x,value:W,orientation:i,id:w,loop:m,activateTabWithKeyboard:d,getTabId:U(`${w}-tab`,$),getPanelId:U(`${w}-panel`,$),onChange:O,allowTabDeactivation:b,variant:e,color:v,radius:y,inverted:N,keepMounted:S,unstyled:_,getStyles:E},children:u.jsx(k,{ref:o,id:w,variant:e,mod:[{orientation:i,inverted:i==="horizontal"&&N,placement:i==="vertical"&&x},R],...E("root"),...B,children:n})})});f.classes=g;f.displayName="@mantine/core/Tabs";f.Tab=V;f.Panel=M;f.List=D;export{f as T,U as g};
@@ -1,3 +0,0 @@
1
- �`��8<q%�!3��3��j�K.���P"5S�����&٪g_(<��s���F��'���H�r%�u����"�У�.U���*F�d��^�8��*��.�������9˃��8��H\���9^Tp� �دQ�h������}��z���@�uP��i%x2p��w'y����&f.�����ِ�‰�`_�
2
-  %�� �Hv��-�O�Vu8���vv�Y;:ͥ2`t�bv��٩��i>�����5²�[��j�D�R{����<N�e-�1��а��]sL�GFk��8 |z��xI���-�9�)�+�Xz�04�ȍk����lt�<����KxK�u�U�"H����<��/�i�,���u
3
- �c�V
@@ -1 +0,0 @@
1
- import{ax as Me,r as x,aO as De,y as je,a5 as ke,b7 as Ie,b8 as Ae,E as z,aM as te,p as H,d as M,j as r,T as Pe,e as Te,c as Ne,f as B,B as se,aj as K,aA as Ee,l as q,al as re,b9 as ie,U as ae,ba as Le,q as Fe,bb as Re,o as Oe,a1 as _e,az as Be,a3 as Ke,b1 as Ve,L as $e,F as ne,ag as ze,a8 as L,K as He,ad as qe}from"./entry.DqiMGelS.js";import{T as ce}from"./chunk.BK94oaB2.js";import{f as Ue,c as le}from"./chunk.BlqFPyLh.js";import{P as F,u as de}from"./chunk.CfzSCjsJ.js";import{A as Ge}from"./chunk.DN2ng7Ec.js";const ue=(n,o=["loading","dirty","error"])=>{const t=Me(),s=o,[a,i]=x.useState(!1),[e,c]=x.useState(!1),[l,u]=x.useState(void 0),[m,y]=x.useState(void 0),h="form"in n?n.form:n,f="path"in n?n.path:void 0,w=s.includes("values"),d=s.includes("error"),v=s.includes("dirty"),b=s.includes("loading");return x.useEffect(()=>{const C=[];return(d||w||v)&&C.push(t.events.on("form:change",p=>{p.id===h.id&&((!f||p.path===f)&&(v&&i(!0),d&&u(void 0)),w&&y(h.currentValues))})),w&&C.push(t.events.on("form:reset",p=>{p.id===h.id&&y(p.values)})),b&&C.push(t.events.on("form:submit:begin",p=>{p.id===h.id&&c(!0)}),t.events.on("form:submit:end",p=>{p.id===h.id&&c(!1)})),(w||v)&&C.push(t.events.on("form:submit:success",p=>{p.id===h.id&&(w&&y(p.values),v&&i(!1))})),d&&C.push(t.events.on("form:submit:error",p=>{p.id===h.id&&(!f||p.error instanceof De&&p.error.value.path===f)&&u(p.error)})),()=>{for(const p of C)p()}},[]),{dirty:a,loading:e,error:l,values:m}},pt=()=>(je("alepha.react.i18n.lang"),ke(Ie)),We=n=>{Ae();const o=z(),[t,s]=x.useState(!1),a=typeof n=="string"?{href:n}:{...n,href:n.href},i=a.href,e=o.isActive(i,a);return{isPending:t,isActive:e,anchorProps:{href:o.base(i),onClick:async c=>{if(c?.stopPropagation(),c?.preventDefault(),!e&&!t){s(!0);try{await o.go(i)}finally{s(!1)}}}}}};function S(n,o){return t=>{n?.(t),o?.(t)}}function Je(n,o){return n in o?te(o[n]):te(n)}function vt(n,o){const t=n.map(s=>({value:s,px:Je(s,o)}));return t.sort((s,a)=>s.px-a.px),t}function Qe(n,o,t){return t?Array.from(Ue(t,o)?.querySelectorAll(n)||[]).findIndex(s=>s===t):null}function Xe(n=!1,o={}){const[t,s]=x.useState(n),a=x.useCallback(()=>{s(c=>c||(o.onOpen?.(),!0))},[o.onOpen]),i=x.useCallback(()=>{s(c=>c&&(o.onClose?.(),!1))},[o.onClose]),e=x.useCallback(()=>{t?i():a()},[i,a,t]);return[t,{open:a,close:i,toggle:e}]}function me({open:n,close:o,openDelay:t,closeDelay:s}){const a=x.useRef(-1),i=x.useRef(-1),e=()=>{window.clearTimeout(a.current),window.clearTimeout(i.current)},c=()=>{e(),t===0||t===void 0?n():a.current=window.setTimeout(n,t)},l=()=>{e(),s===0||s===void 0?o():i.current=window.setTimeout(o,s)};return x.useEffect(()=>e,[]),{openDropdown:c,closeDropdown:l}}var he={root:"m_849cf0da"};const Ye={underline:"hover"},U=H((n,o)=>{const{underline:t,className:s,unstyled:a,mod:i,...e}=M("Anchor",Ye,n);return r.jsx(Pe,{component:"a",ref:o,className:Te({[he.root]:!a},s),...e,mod:[{underline:t},i],__staticSelector:"Anchor",unstyled:a})});U.classes=he;U.displayName="@mantine/core/Anchor";const[Ze,k]=Ne("Menu component was not found in the tree");var I={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const G=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,...c}=M("MenuDivider",null,n),l=k();return r.jsx(se,{ref:o,...l.getStyles("divider",{className:s,style:a,styles:i,classNames:t}),...c})});G.classes=I;G.displayName="@mantine/core/MenuDivider";const W=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,onMouseEnter:c,onMouseLeave:l,onKeyDown:u,children:m,...y}=M("MenuDropdown",null,n),h=x.useRef(null),f=k(),w=S(u,b=>{(b.key==="ArrowUp"||b.key==="ArrowDown")&&(b.preventDefault(),h.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),d=S(c,()=>(f.trigger==="hover"||f.trigger==="click-hover")&&f.openDropdown()),v=S(l,()=>(f.trigger==="hover"||f.trigger==="click-hover")&&f.closeDropdown());return r.jsxs(F.Dropdown,{...y,onMouseEnter:d,onMouseLeave:v,role:"menu","aria-orientation":"vertical",ref:K(o,h),...f.getStyles("dropdown",{className:s,style:a,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:w,children:[f.withInitialFocusPlaceholder&&r.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),m]})});W.classes=I;W.displayName="@mantine/core/MenuDropdown";const[et,V]=Ee(),J=H((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,color:c,closeMenuOnClick:l,leftSection:u,rightSection:m,children:y,disabled:h,"data-disabled":f,...w}=M("MenuItem",null,n),d=k(),v=V(),b=q(),{dir:C}=re(),p=x.useRef(null),D=w,A=S(D.onClick,()=>{f||(typeof l=="boolean"?l&&d.closeDropdownImmediately():d.closeOnItemClick&&d.closeDropdownImmediately())}),j=c?b.variantColorResolver({color:c,theme:b,variant:"light"}):void 0,P=c?ie({color:c,theme:b}):null,O=S(D.onKeyDown,T=>{T.key==="ArrowLeft"&&v&&(v.close(),v.focusParentItem())});return r.jsxs(ae,{onMouseDown:T=>T.preventDefault(),...w,unstyled:d.unstyled,tabIndex:d.menuItemTabIndex,...d.getStyles("item",{className:s,style:a,styles:i,classNames:t}),ref:K(p,o),role:"menuitem",disabled:h,"data-menu-item":!0,"data-disabled":h||f||void 0,"data-mantine-stop-propagation":!0,onClick:A,onKeyDown:le({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:d.loop,dir:C,orientation:"vertical",onKeyDown:O}),__vars:{"--menu-item-color":P?.isThemeColor&&P?.shade===void 0?`var(--mantine-color-${P.color}-6)`:j?.color,"--menu-item-hover":j?.hover},children:[u&&r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"left",children:u}),y&&r.jsx("div",{...d.getStyles("itemLabel",{styles:i,classNames:t}),children:y}),m&&r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"right",children:m})]})});J.classes=I;J.displayName="@mantine/core/MenuItem";const Q=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,...c}=M("MenuLabel",null,n),l=k();return r.jsx(se,{ref:o,...l.getStyles("label",{className:s,style:a,styles:i,classNames:t}),...c})});Q.classes=I;Q.displayName="@mantine/core/MenuLabel";const X=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,onMouseEnter:c,onMouseLeave:l,onKeyDown:u,children:m,...y}=M("MenuSubDropdown",null,n),h=x.useRef(null),f=k(),w=V(),d=S(c,w?.open),v=S(l,w?.close);return r.jsx(F.Dropdown,{...y,onMouseEnter:d,onMouseLeave:v,role:"menu","aria-orientation":"vertical",ref:K(o,h),...f.getStyles("dropdown",{className:s,style:a,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:m})});X.classes=I;X.displayName="@mantine/core/MenuSubDropdown";const Y=H((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,color:c,leftSection:l,rightSection:u,children:m,disabled:y,"data-disabled":h,closeMenuOnClick:f,...w}=M("MenuSubItem",null,n),d=k(),v=V(),b=q(),{dir:C}=re(),p=x.useRef(null),D=w,A=c?b.variantColorResolver({color:c,theme:b,variant:"light"}):void 0,j=c?ie({color:c,theme:b}):null,P=S(D.onKeyDown,E=>{E.key==="ArrowRight"&&(v?.open(),v?.focusFirstItem()),E.key==="ArrowLeft"&&v?.parentContext&&(v.parentContext.close(),v.parentContext.focusParentItem())}),O=S(D.onClick,()=>{!h&&f&&d.closeDropdownImmediately()}),T=S(D.onMouseEnter,v?.open),N=S(D.onMouseLeave,v?.close);return r.jsxs(ae,{onMouseDown:E=>E.preventDefault(),...w,unstyled:d.unstyled,tabIndex:d.menuItemTabIndex,...d.getStyles("item",{className:s,style:a,styles:i,classNames:t}),ref:K(p,o),role:"menuitem",disabled:y,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":y||h||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:T,onMouseLeave:N,onClick:O,onKeyDown:le({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:d.loop,dir:C,orientation:"vertical",onKeyDown:P}),__vars:{"--menu-item-color":j?.isThemeColor&&j?.shade===void 0?`var(--mantine-color-${j.color}-6)`:A?.color,"--menu-item-hover":A?.hover},children:[l&&r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"left",children:l}),m&&r.jsx("div",{...d.getStyles("itemLabel",{styles:i,classNames:t}),children:m}),r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"right",children:u||r.jsx(Ge,{...d.getStyles("chevron"),size:14})})]})});Y.classes=I;Y.displayName="@mantine/core/MenuSubItem";function fe({children:n,refProp:o}){if(!Le(n))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return k(),r.jsx(F.Target,{refProp:o,popupType:"menu",children:n})}fe.displayName="@mantine/core/MenuSubTarget";const tt={offset:0,position:"right-start",transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function R(n){const{children:o,closeDelay:t,openDelay:s,...a}=M("MenuSub",tt,n),i=Fe(),[e,{open:c,close:l}]=Xe(!1),u=V(),{openDropdown:m,closeDropdown:y}=me({open:c,close:l,closeDelay:t,openDelay:s}),h=()=>window.setTimeout(()=>{document.getElementById(`${i}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),f=()=>window.setTimeout(()=>{document.getElementById(`${i}-target`)?.focus()},16);return r.jsx(et,{value:{opened:e,close:y,open:m,focusFirstItem:h,focusParentItem:f,parentContext:u},children:r.jsx(F,{opened:e,withinPortal:!1,withArrow:!1,id:i,...a,children:o})})}R.extend=n=>n;R.displayName="@mantine/core/MenuSub";R.Target=fe;R.Dropdown=X;R.Item=Y;const nt={refProp:"ref"},pe=x.forwardRef((n,o)=>{const{children:t,refProp:s,...a}=M("MenuTarget",nt,n),i=Re(t);if(!i)throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const e=k(),c=i.props,l=S(c.onClick,()=>{e.trigger==="click"?e.toggleDropdown():e.trigger==="click-hover"&&(e.setOpenedViaClick(!0),e.opened||e.openDropdown())}),u=S(c.onMouseEnter,()=>(e.trigger==="hover"||e.trigger==="click-hover")&&e.openDropdown()),m=S(c.onMouseLeave,()=>{(e.trigger==="hover"||e.trigger==="click-hover"&&!e.openedViaClick)&&e.closeDropdown()});return r.jsx(F.Target,{refProp:s,popupType:"menu",ref:o,...a,children:x.cloneElement(i,{onClick:l,onMouseEnter:u,onMouseLeave:m,"data-expanded":e.opened?!0:void 0})})});pe.displayName="@mantine/core/MenuTarget";const ot={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function g(n){const o=M("Menu",ot,n),{children:t,onOpen:s,onClose:a,opened:i,defaultOpened:e,trapFocus:c,onChange:l,closeOnItemClick:u,loop:m,closeOnEscape:y,trigger:h,openDelay:f,closeDelay:w,classNames:d,styles:v,unstyled:b,variant:C,vars:p,menuItemTabIndex:D,keepMounted:A,withInitialFocusPlaceholder:j,attributes:P,...O}=o,T=Oe({name:"Menu",classes:I,props:o,classNames:d,styles:v,unstyled:b,attributes:P}),[N,E]=_e({value:i,defaultValue:e,finalValue:!1,onChange:l}),[ge,Z]=x.useState(!1),_=()=>{E(!1),Z(!1),N&&a?.()},$=()=>{E(!0),!N&&s?.()},ee=()=>{N?_():$()},{openDropdown:xe,closeDropdown:ye}=me({open:$,close:_,closeDelay:w,openDelay:f}),we=Ce=>Qe("[data-menu-item]","[data-menu-dropdown]",Ce),{resolvedClassNames:be,resolvedStyles:Se}=Be({classNames:d,styles:v,props:o});return r.jsx(Ze,{value:{getStyles:T,opened:N,toggleDropdown:ee,getItemIndex:we,openedViaClick:ge,setOpenedViaClick:Z,closeOnItemClick:u,closeDropdown:h==="click"?_:ye,openDropdown:h==="click"?$:xe,closeDropdownImmediately:_,loop:m,trigger:h,unstyled:b,menuItemTabIndex:D,withInitialFocusPlaceholder:j},children:r.jsx(F,{returnFocus:!0,...O,opened:N,onChange:ee,defaultOpened:e,trapFocus:A?!1:c,closeOnEscape:y,__staticSelector:"Menu",classNames:be,styles:Se,unstyled:b,variant:C,keepMounted:A,children:t})})}g.extend=n=>n;g.withProps=Ke(g);g.classes=I;g.displayName="@mantine/core/Menu";g.Item=J;g.Label=Q;g.Dropdown=W;g.Target=pe;g.Divider=G;g.Sub=R;const ve=n=>{const{item:o,index:t}=n,s=z(),a=de({handler:async e=>{await o.onClick?.()}},[o.onClick]);if(o.type==="divider")return r.jsx(g.Divider,{},t);if(o.type==="label")return r.jsx(g.Label,{children:o.label},t);if(o.children&&o.children.length>0)return r.jsxs(g,{trigger:"hover",position:"right-start",offset:2,children:[r.jsx(g.Target,{children:r.jsx(g.Item,{leftSection:o.icon,rightSection:r.jsx(He,{size:14}),children:o.label})}),r.jsx(g.Dropdown,{children:o.children.map((e,c)=>r.jsx(ve,{item:e,index:c},c))})]},t);const i={};return n.item.onClick?i.onClick=a.run:n.item.href&&Object.assign(i,s.anchor(n.item.href)),r.jsx(g.Item,{leftSection:o.icon,onClick:o.onClick,color:o.color,rightSection:o.active?r.jsx(ce,{size:"xs",variant:"transparent",children:r.jsx(qe,{})}):void 0,...i,children:o.label},t)},oe=n=>{const o=q(),t={...n},{tooltip:s,menu:a,icon:i,...e}=t;if(t.variant==="subtle"&&(e.c??="var(--mantine-color-text)",e.color??="gray"),t.intent&&(t.intent==="none"?(e.c??="var(--mantine-color-text)",e.color??="gray"):t.intent==="primary"?(e.c??="white",e.color??=o.primaryColor):t.intent==="success"?(e.c??="white",e.color??="green"):t.intent==="danger"?(e.c??="white",e.color??="red"):t.intent==="warning"?(e.c??="var(--mantine-color-text)",e.color??="yellow"):t.intent==="info"&&(e.c??="white",e.color??="blue")),t.icon){const u=Ve(t.icon)?r.jsx(t.icon,{size:$e.sizes.icon.md}):r.jsx(ce,{w:24,variant:"transparent",size:"sm",c:"var(--mantine-color-text)",...t.themeIconProps,children:t.icon});t.children?e.leftSection=u:(e.children=x.Children.only(u),e.px??="xs")}if(t.leftSection&&!t.children&&(e.px??="xs"),t.textVisibleFrom){const{children:u,textVisibleFrom:m,leftSection:y,...h}=e;return r.jsxs(r.Fragment,{children:[r.jsx(ne,{w:"100%",visibleFrom:m,children:r.jsx(oe,{flex:1,...h,leftSection:y,tooltip:s,menu:a,children:u})}),r.jsx(ne,{w:"100%",hiddenFrom:m,children:r.jsx(oe,{px:"xs",...h,tooltip:s,menu:a,children:y})})]})}let l="href"in e&&e.href?e.href.startsWith("http")||e.target?r.jsx(lt,{...e,href:e.href,children:e.children}):r.jsx(ct,{...e,href:e.href,children:e.children}):(delete e.classNameActive,delete e.variantActive,"action"in e&&e.action?r.jsx(it,{...e,action:e.action,children:e.children}):"onClick"in e&&e.onClick?r.jsx(at,{...e,onClick:e.onClick,children:e.children}):"form"in e&&e.form?e.type==="reset"?r.jsx(rt,{...e,form:e.form,children:e.children}):r.jsx(st,{...e,form:e.form,children:e.children}):r.jsx(L,{...e,children:e.children}));if(a&&(l=r.jsxs(g,{position:a.position||"bottom-start",width:a.width||200,shadow:a.shadow||"md",trigger:a.on==="hover"?"hover":"click",...a.menuProps,children:[r.jsx(g.Target,{...a.targetProps,children:l}),r.jsx(g.Dropdown,{children:a.items.map((u,m)=>r.jsx(ve,{item:u,index:m},m))})]})),s){const u={openDelay:1e3},m=typeof s=="string"||typeof s=="number"?{...u,label:s,children:l}:{...u,...s,children:l};return r.jsx(ze,{...m})}return l},st=n=>{const{form:o,...t}=n,s=ue(o);return r.jsx(L,{...t,loading:s.loading,disabled:s.loading,type:"submit",children:n.children})},rt=n=>{const{form:o,...t}=n,s=ue(o);return r.jsx(L,{...t,disabled:s.loading,type:"reset",children:n.children})},it=n=>{const{action:o,...t}=n;return r.jsx(L,{...t,disabled:o.loading||n.disabled,loading:o.loading,onClick:()=>o.run(),children:n.children})},at=n=>{const o=de({handler:async t=>{await n.onClick(t)}},[n.onClick]);return r.jsx(L,{...n,disabled:o.loading||n.disabled,loading:o.loading,onClick:o.run,children:n.children})},ct=n=>{const{active:o,classNameActive:t,variantActive:s,routerGoOptions:a,...i}=n,e=z(),{isPending:c,isActive:l}=We(o?{href:n.href,...o}:{href:n.href}),u=e.anchor(n.href,a),m=i.className||"";return l&&o!==!1&&t&&(i.className=`${m} ${t}`.trim()),n.anchorProps?r.jsx(U,{component:"a",...u,...n.anchorProps,children:n.children}):r.jsx(L,{component:"a",loading:c,...i,...u,variant:l&&o!==!1?s??"filled":i.variant??"subtle",children:n.children})},lt=n=>{const{active:o,classNameActive:t,variantActive:s,routerGoOptions:a,target:i,...e}=n;return r.jsx(L,{component:"a",target:i,...e,children:n.children})};export{oe as A,vt as a,Xe as b,S as c,ue as d,Je as g,pt as u};
@@ -1 +0,0 @@
1
- import{f as w,d as I,o as N,q as S,j as o,B as k,as as z,t as $,a2 as q}from"./entry.DqiMGelS.js";var x={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const E=$((t,{radius:l,color:e,variant:a,autoContrast:d})=>{const r=t.variantColorResolver({color:e||t.primaryColor,theme:t,variant:a||"light",autoContrast:d});return{root:{"--alert-radius":l===void 0?void 0:q(l),"--alert-bg":e||a?r.background:void 0,"--alert-color":r.color,"--alert-bd":e||a?r.border:void 0}}}),j=w((t,l)=>{const e=I("Alert",null,t),{classNames:a,className:d,style:r,styles:f,unstyled:u,vars:h,radius:L,color:P,title:i,children:n,id:_,icon:b,withCloseButton:m,onClose:g,closeButtonLabel:B,variant:c,autoContrast:V,role:C,attributes:A,...R}=e,s=N({name:"Alert",classes:x,props:e,className:d,style:r,classNames:a,styles:f,unstyled:u,attributes:A,vars:h,varsResolver:E}),v=S(_),p=i&&`${v}-title`||void 0,y=`${v}-body`;return o.jsx(k,{id:v,...s("root",{variant:c}),variant:c,ref:l,role:C||"alert",...R,"aria-describedby":n?y:void 0,"aria-labelledby":i?p:void 0,children:o.jsxs("div",{...s("wrapper"),children:[b&&o.jsx("div",{...s("icon"),children:b}),o.jsxs("div",{...s("body"),children:[i&&o.jsx("div",{...s("title"),"data-with-close-button":m||void 0,children:o.jsx("span",{id:p,...s("label"),children:i})}),n&&o.jsx("div",{id:y,...s("message"),"data-variant":c,children:n})]}),m&&o.jsx(z,{...s("closeButton"),onClick:g,variant:"transparent",size:16,iconSize:16,"aria-label":B,unstyled:u})]})})});j.classes=x;j.displayName="@mantine/core/Alert";export{j as A};
@@ -1 +0,0 @@
1
- � �����W�=� x��M4-����-���>ʟ����Ǎ�i��]�B6�.�f��oA
@@ -1,9 +0,0 @@
1
- import{aq as me,r as F,j as G,f as _e,d as Ae,o as We,az as ut,a1 as Te,aF as lt,U as Me,a4 as Ze,aj as st,e as ct,ay as Ne,t as qe,v as ge,aE as He,aJ as ft,q as dt,B as je,w as vt,a2 as mt,x as gt}from"./entry.DqiMGelS.js";import{n as Oe}from"./chunk.BjFrJKj1.js";import{I as ht,a as pt,b as St}from"./chunk.qLydHlIe.js";function Xe(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]]);return r}var Se;(function(e){e.event="event",e.props="prop"})(Se||(Se={}));function ie(){}function bt(e){var t,r=void 0;return function(){for(var a=[],n=arguments.length;n--;)a[n]=arguments[n];return t&&a.length===t.length&&a.every(function(i,s){return i===t[s]})||(t=a,r=e.apply(void 0,a)),r}}function be(e){return!!(e||"").match(/\d/)}function he(e){return e==null}function wt(e){return typeof e=="number"&&isNaN(e)}function Je(e){return he(e)||wt(e)||typeof e=="number"&&!isFinite(e)}function Qe(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function xt(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Nt(e,t,r){var a=xt(r),n=e.search(/[1-9]/);return n=n===-1?e.length:n,e.substring(0,n)+e.substring(n,e.length).replace(a,"$1"+t)}function yt(e){var t=F.useRef(e);t.current=e;var r=F.useRef(function(){for(var a=[],n=arguments.length;n--;)a[n]=arguments[n];return t.current.apply(t,a)});return r.current}function Pe(e,t){t===void 0&&(t=!0);var r=e[0]==="-",a=r&&t;e=e.replace("-","");var n=e.split("."),i=n[0],s=n[1]||"";return{beforeDecimal:i,afterDecimal:s,hasNegation:r,addNegation:a}}function Vt(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),a=r[0].replace(/^0+/,"")||"0",n=r[1]||"";return(t?"-":"")+a+(n?"."+n:"")}function Ye(e,t,r){for(var a="",n=r?"0":"",i=0;i<=t-1;i++)a+=e[i]||n;return a}function Le(e,t){return Array(t+1).join(e)}function et(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var a=t.split(/[eE]/g),n=a[0],i=a[1];if(i=Number(i),!i)return r+n;n=n.replace(".","");var s=1+i,b=n.length;return s<0?n="0."+Le("0",Math.abs(s))+n:s>=b?n=n+Le("0",s-b):n=(n.substring(0,s)||"0")+"."+n.substring(s),r+n}function Ge(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var a=(e.indexOf(".")!==-1||r)&&t,n=Pe(e),i=n.beforeDecimal,s=n.afterDecimal,b=n.hasNegation,w=parseFloat("0."+(s||"0")),x=s.length<=t?"0."+s:w.toFixed(t),N=x.split("."),g=i;i&&Number(N[0])&&(g=i.split("").reverse().reduce(function(D,C,m){return D.length>m?(Number(D[0])+Number(C)).toString()+D.substring(1,D.length):C+D},N[0]));var d=Ye(N[1]||"",t,r),h=b?"-":"",f=a?".":"";return""+h+g+f+d}function ce(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var tt=bt(function(e,t){for(var r=0,a=0,n=e.length,i=t.length;e[r]===t[r]&&r<n;)r++;for(;e[n-1-a]===t[i-1-a]&&i-a>r&&n-a>r;)a++;return{from:{start:r,end:n-a},to:{start:r,end:i-a}}}),Dt=function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}};function Ct(e,t,r){return Math.min(Math.max(e,t),r)}function Ce(e){return Math.max(e.selectionStart,e.selectionEnd)}function It(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function Rt(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Et(e){var t=e.currentValue,r=e.formattedValue,a=e.currentValueIndex,n=e.formattedValueIndex;return t[a]===r[n]}function _t(e,t,r,a,n,i,s){s===void 0&&(s=Et);var b=n.findIndex(function(Z){return Z}),w=e.slice(0,b);!t&&!r.startsWith(w)&&(t=w,r=w+r,a=a+w.length);for(var x=r.length,N=e.length,g={},d=new Array(x),h=0;h<x;h++){d[h]=-1;for(var f=0,D=N;f<D;f++){var C=s({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:f});if(C&&g[f]!==!0){d[h]=f,g[f]=!0;break}}}for(var m=a;m<x&&(d[m]===-1||!i(r[m]));)m++;var k=m===x||d[m]===-1?N:d[m];for(m=a-1;m>0&&d[m]===-1;)m--;var M=m===-1||d[m]===-1?0:d[m]+1;return M>k?k:a-M<k-a?M:k}function Ke(e,t,r,a){var n=e.length;if(t=Ct(t,0,n),a==="left"){for(;t>=0&&!r[t];)t--;t===-1&&(t=r.indexOf(!0))}else{for(;t<=n&&!r[t];)t++;t>n&&(t=r.lastIndexOf(!0))}return t===-1&&(t=n),t}function At(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,a=t.length;r<a;r++)t[r]=!!(be(e[r])||be(e[r-1]));return t}function rt(e,t,r,a,n,i){i===void 0&&(i=ie);var s=yt(function(f,D){var C,m;return Je(f)?(m="",C=""):typeof f=="number"||D?(m=typeof f=="number"?et(f):f,C=a(m)):(m=n(f,void 0),C=a(m)),{formattedValue:C,numAsString:m}}),b=F.useState(function(){return s(he(e)?t:e,r)}),w=b[0],x=b[1],N=function(f,D){f.formattedValue!==w.formattedValue&&x({formattedValue:f.formattedValue,numAsString:f.value}),i(f,D)},g=e,d=r;he(e)&&(g=w.numAsString,d=!0);var h=s(g,d);return F.useMemo(function(){x(h)},[h.formattedValue]),[w,N]}function Tt(e){return e.replace(/[^0-9]/g,"")}function Pt(e){return e}function Bt(e){var t=e.type;t===void 0&&(t="text");var r=e.displayType;r===void 0&&(r="input");var a=e.customInput,n=e.renderText,i=e.getInputRef,s=e.format;s===void 0&&(s=Pt);var b=e.removeFormatting;b===void 0&&(b=Tt);var w=e.defaultValue,x=e.valueIsNumericString,N=e.onValueChange,g=e.isAllowed,d=e.onChange;d===void 0&&(d=ie);var h=e.onKeyDown;h===void 0&&(h=ie);var f=e.onMouseUp;f===void 0&&(f=ie);var D=e.onFocus;D===void 0&&(D=ie);var C=e.onBlur;C===void 0&&(C=ie);var m=e.value,k=e.getCaretBoundary;k===void 0&&(k=At);var M=e.isValidInputCharacter;M===void 0&&(M=be);var Z=e.isCharacterSame,j=Xe(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),J=rt(m,w,!!x,s,b,N),$=J[0],I=$.formattedValue,O=$.numAsString,K=J[1],z=F.useRef(),q=F.useRef({formattedValue:I,numAsString:O}),U=function(o,l){q.current={formattedValue:o.formattedValue,numAsString:o.value},K(o,l)},Q=F.useState(!1),X=Q[0],v=Q[1],c=F.useRef(null),R=F.useRef({setCaretTimeout:null,focusTimeout:null});F.useEffect(function(){return v(!0),function(){clearTimeout(R.current.setCaretTimeout),clearTimeout(R.current.focusTimeout)}},[]);var T=s,P=function(o,l){var p=parseFloat(l);return{formattedValue:o,value:l,floatValue:isNaN(p)?void 0:p}},y=function(o,l,p){o.selectionStart===0&&o.selectionEnd===o.value.length||(ce(o,l),R.current.setCaretTimeout=setTimeout(function(){o.value===p&&o.selectionStart!==l&&ce(o,l)},0))},B=function(o,l,p){return Ke(o,l,k(o),p)},Y=function(o,l,p){var _=k(l),L=_t(l,I,o,p,_,M,Z);return L=Ke(l,L,_),L},H=function(o){var l=o.formattedValue;l===void 0&&(l="");var p=o.input,_=o.source,L=o.event,E=o.numAsString,V;if(p){var W=o.inputValue||p.value,ee=Ce(p);p.value=l,V=Y(W,l,ee),V!==void 0&&y(p,V,l)}l!==I&&U(P(l,E),{event:L,source:_})};F.useEffect(function(){var o=q.current,l=o.formattedValue,p=o.numAsString;(I!==l||O!==p)&&U(P(I,O),{event:void 0,source:Se.props})},[I,O]);var oe=c.current?Ce(c.current):void 0,fe=typeof window<"u"?F.useLayoutEffect:F.useEffect;fe(function(){var o=c.current;if(I!==q.current.formattedValue&&o){var l=Y(q.current.formattedValue,I,oe);o.value=I,y(o,l,I)}},[I]);var A=function(o,l,p){var _=l.target,L=z.current?Dt(z.current,_.selectionEnd):tt(I,o),E=Object.assign(Object.assign({},L),{lastValue:I}),V=b(o,E),W=T(V);if(V=b(W,void 0),g&&!g(P(W,V))){var ee=l.target,u=Ce(ee),S=Y(o,I,u);return ee.value=I,y(ee,S,I),!1}return H({formattedValue:W,numAsString:V,inputValue:o,event:l,source:p,input:l.target}),!0},ae=function(o,l){l===void 0&&(l=0);var p=o.selectionStart,_=o.selectionEnd;z.current={selectionStart:p,selectionEnd:_+l}},we=function(o){var l=o.target,p=l.value,_=A(p,o,Se.event);_&&d(o),z.current=void 0},te=function(o){var l=o.target,p=o.key,_=l.selectionStart,L=l.selectionEnd,E=l.value;E===void 0&&(E="");var V;p==="ArrowLeft"||p==="Backspace"?V=Math.max(_-1,0):p==="ArrowRight"?V=Math.min(_+1,E.length):p==="Delete"&&(V=_);var W=0;p==="Delete"&&_===L&&(W=1);var ee=p==="ArrowLeft"||p==="ArrowRight";if(V===void 0||_!==L&&!ee){h(o),ae(l,W);return}var u=V;if(ee){var S=p==="ArrowLeft"?"left":"right";u=B(E,V,S),u!==V&&o.preventDefault()}else p==="Delete"&&!M(E[V])?u=B(E,V,"right"):p==="Backspace"&&!M(E[V])&&(u=B(E,V,"left"));u!==V&&y(l,u,E),h(o),ae(l,W)},ue=function(o){var l=o.target,p=function(){var _=l.selectionStart,L=l.selectionEnd,E=l.value;if(E===void 0&&(E=""),_===L){var V=B(E,_);V!==_&&y(l,V,E)}};p(),requestAnimationFrame(function(){p()}),f(o),ae(l)},pe=function(o){o.persist&&o.persist();var l=o.target,p=o.currentTarget;c.current=l,R.current.focusTimeout=setTimeout(function(){var _=l.selectionStart,L=l.selectionEnd,E=l.value;E===void 0&&(E="");var V=B(E,_);V!==_&&!(_===0&&L===E.length)&&y(l,V,E),D(Object.assign(Object.assign({},o),{currentTarget:p}))},0)},Ve=function(o){c.current=null,clearTimeout(R.current.focusTimeout),clearTimeout(R.current.setCaretTimeout),C(o)},le=X&&It()?"numeric":void 0,de=Object.assign({inputMode:le},j,{type:t,value:I,onChange:we,onKeyDown:te,onMouseUp:ue,onFocus:pe,onBlur:Ve});if(r==="text")return n?me.createElement(me.Fragment,null,n(I,j)||null):me.createElement("span",Object.assign({},j,{ref:i}),I);if(a){var ve=a;return me.createElement(ve,Object.assign({},de,{ref:i}))}return me.createElement("input",Object.assign({},de,{ref:i}))}function $e(e,t){var r=t.decimalScale,a=t.fixedDecimalScale,n=t.prefix;n===void 0&&(n="");var i=t.suffix;i===void 0&&(i="");var s=t.allowNegative,b=t.thousandsGroupStyle;if(b===void 0&&(b="thousand"),e===""||e==="-")return e;var w=ye(t),x=w.thousandSeparator,N=w.decimalSeparator,g=r!==0&&e.indexOf(".")!==-1||r&&a,d=Pe(e,s),h=d.beforeDecimal,f=d.afterDecimal,D=d.addNegation;return r!==void 0&&(f=Ye(f,r,!!a)),x&&(h=Nt(h,x,b)),n&&(h=n+h),i&&(f=f+i),D&&(h="-"+h),e=h+(g&&N||"")+f,e}function ye(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,a=e.allowedDecimalSeparators;return r===!0&&(r=","),a||(a=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:a}}function kt(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),a=new RegExp("(-)(.)*(-)"),n=r.test(e),i=a.test(e);return e=e.replace(/-/g,""),n&&!i&&t&&(e="-"+e),e}function Ft(e,t){return new RegExp("(^-)|[0-9]|"+Qe(e),"g")}function Mt(e,t,r){return e===""?!0:!t?.match(/\d/)&&!r?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function jt(e,t,r){var a;t===void 0&&(t=Rt(e));var n=r.allowNegative,i=r.prefix;i===void 0&&(i="");var s=r.suffix;s===void 0&&(s="");var b=r.decimalScale,w=t.from,x=t.to,N=x.start,g=x.end,d=ye(r),h=d.allowedDecimalSeparators,f=d.decimalSeparator,D=e[g]===f;if(be(e)&&(e===i||e===s)&&t.lastValue==="")return e;if(g-N===1&&h.indexOf(e[N])!==-1){var C=b===0?"":f;e=e.substring(0,N)+C+e.substring(N+1,e.length)}var m=function(c,R,T){var P=!1,y=!1;i.startsWith("-")?P=!1:c.startsWith("--")?(P=!1,y=!0):s.startsWith("-")&&c.length===s.length?P=!1:c[0]==="-"&&(P=!0);var B=P?1:0;return y&&(B=2),B&&(c=c.substring(B),R-=B,T-=B),{value:c,start:R,end:T,hasNegation:P}},k=m(e,N,g),M=k.hasNegation;a=k,e=a.value,N=a.start,g=a.end;var Z=m(t.lastValue,w.start,w.end),j=Z.start,J=Z.end,$=Z.value,I=e.substring(N,g);e.length&&$.length&&(j>$.length-s.length||J<i.length)&&!(I&&s.startsWith(I))&&(e=$);var O=0;e.startsWith(i)?O+=i.length:N<i.length&&(O=N),e=e.substring(O),g-=O;var K=e.length,z=e.length-s.length;e.endsWith(s)?K=z:(g>z||g>e.length-s.length)&&(K=g),e=e.substring(0,K),e=kt(M?"-"+e:e,n),e=(e.match(Ft(f))||[]).join("");var q=e.indexOf(f);e=e.replace(new RegExp(Qe(f),"g"),function(c,R){return R===q?".":""});var U=Pe(e,n),Q=U.beforeDecimal,X=U.afterDecimal,v=U.addNegation;return x.end-x.start<w.end-w.start&&Q===""&&D&&!parseFloat(X)&&(e=v?"-":""),e}function Ot(e,t){var r=t.prefix;r===void 0&&(r="");var a=t.suffix;a===void 0&&(a="");var n=Array.from({length:e.length+1}).map(function(){return!0}),i=e[0]==="-";n.fill(!1,0,r.length+(i?1:0));var s=e.length;return n.fill(!1,s-a.length+1,s+1),n}function Lt(e){var t=ye(e),r=t.thousandSeparator,a=t.decimalSeparator,n=e.prefix;n===void 0&&(n="");var i=e.allowNegative;if(i===void 0&&(i=!0),r===a)throw new Error(`
2
- Decimal separator can't be same as thousand separator.
3
- thousandSeparator: `+r+` (thousandSeparator = {true} is same as thousandSeparator = ",")
4
- decimalSeparator: `+a+` (default value for decimalSeparator is .)
5
- `);return n.startsWith("-")&&i&&(console.error(`
6
- Prefix can't start with '-' when allowNegative is true.
7
- prefix: `+n+`
8
- allowNegative: `+i+`
9
- `),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}function Gt(e){e=Lt(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,r=e.allowNegative,a=e.allowLeadingZeros,n=e.onKeyDown;n===void 0&&(n=ie);var i=e.onBlur;i===void 0&&(i=ie);var s=e.thousandSeparator,b=e.decimalScale,w=e.fixedDecimalScale,x=e.prefix;x===void 0&&(x="");var N=e.defaultValue,g=e.value,d=e.valueIsNumericString,h=e.onValueChange,f=Xe(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),D=ye(e),C=D.decimalSeparator,m=D.allowedDecimalSeparators,k=function(v){return $e(v,e)},M=function(v,c){return jt(v,c,e)},Z=he(g)?N:g,j=d??Mt(Z,x,t);he(g)?he(N)||(j=j||typeof N=="number"):j=j||typeof g=="number";var J=function(v){return Je(v)?v:(typeof v=="number"&&(v=et(v)),j&&typeof b=="number"?Ge(v,b,!!w):v)},$=rt(J(g),J(N),!!j,k,M,h),I=$[0],O=I.numAsString,K=I.formattedValue,z=$[1],q=function(v){var c=v.target,R=v.key,T=c.selectionStart,P=c.selectionEnd,y=c.value;if(y===void 0&&(y=""),(R==="Backspace"||R==="Delete")&&P<x.length){v.preventDefault();return}if(T!==P){n(v);return}R==="Backspace"&&y[0]==="-"&&T===x.length+1&&r&&ce(c,1),b&&w&&(R==="Backspace"&&y[T-1]===C?(ce(c,T-1),v.preventDefault()):R==="Delete"&&y[T]===C&&v.preventDefault()),m?.includes(R)&&y[T]===C&&ce(c,T+1);var B=s===!0?",":s;R==="Backspace"&&y[T-1]===B&&ce(c,T-1),R==="Delete"&&y[T]===B&&ce(c,T+1),n(v)},U=function(v){var c=O;if(c.match(/\d/g)||(c=""),a||(c=Vt(c)),w&&b&&(c=Ge(c,b,w)),c!==O){var R=$e(c,e);z({formattedValue:R,value:c,floatValue:parseFloat(c)},{event:v,source:Se.event})}i(v)},Q=function(v){return v===C?!0:be(v)},X=function(v){var c=v.currentValue,R=v.lastValue,T=v.formattedValue,P=v.currentValueIndex,y=v.formattedValueIndex,B=c[P],Y=T[y],H=tt(R,c),oe=H.to,fe=function(A){return M(A).indexOf(".")+x.length};return g===0&&w&&b&&c[oe.start]===C&&fe(c)<P&&fe(T)>y?!1:P>=oe.start&&P<oe.end&&m&&m.includes(B)&&Y===C?!0:B===Y};return Object.assign(Object.assign({},f),{value:K,valueIsNumericString:!1,isValidInputCharacter:Q,isCharacterSame:X,onValueChange:z,format:k,removeFormatting:M,getCaretBoundary:function(v){return Ot(v,e)},onKeyDown:q,onBlur:U})}function Kt(e){var t=Gt(e);return me.createElement(Bt,Object.assign({},t))}var Re={root:"m_e2f5cd4e",controls:"m_95e17d22",control:"m_80b4b171"};function ze({direction:e,style:t,...r}){return G.jsx("svg",{style:{width:"var(--ni-chevron-size)",height:"var(--ni-chevron-size)",transform:e==="up"?"rotate(180deg)":void 0,...t},viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:G.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}const $t=/^(0\.0*|-0(\.0*)?)$/,zt=/^-?0\d+(\.\d+)?\.?$/,Ut=/\.\d*0$/,at=/^-?\d+\.$/;function Ee(e){return typeof e=="string"&&e!==""&&!Number.isNaN(Number(e))}function Ie(e){return typeof e=="number"?e<Number.MAX_SAFE_INTEGER:e===""||Ee(e)&&Number(e)<Number.MAX_SAFE_INTEGER}function Wt(e){return e.toString().replace(".","").length}function Zt(e,t){return(typeof e=="number"?e<Number.MAX_SAFE_INTEGER:!Number.isNaN(Number(e)))&&!Number.isNaN(e)&&Wt(t)<14&&t!==""}function Ue(e,t,r){if(e===void 0)return!0;const a=t===void 0||e>=t,n=r===void 0||e<=r;return a&&n}const qt={step:1,clampBehavior:"blur",allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0,allowedDecimalSeparators:[".",","]},Ht=qe((e,{size:t})=>({controls:{"--ni-chevron-size":ge(t,"ni-chevron-size")}}));function Xt(e,t,r){const a=e.toString(),n=at.test(a),i=a.replace(/^0+(?=\d)/,""),s=parseFloat(i);if(Number.isNaN(s))return i;if(s>Number.MAX_SAFE_INTEGER)return t!==void 0?t:i;const b=Ne(s,r,t);return n?`${b.toString().replace(/^0+(?=\d)/,"")}.`:b}const nt=_e((e,t)=>{const r=Ae("NumberInput",qt,e),{className:a,classNames:n,styles:i,unstyled:s,vars:b,onChange:w,onValueChange:x,value:N,defaultValue:g,max:d,min:h,step:f,hideControls:D,rightSection:C,isAllowed:m,clampBehavior:k,onBlur:M,allowDecimal:Z,decimalScale:j,onKeyDown:J,onKeyDownCapture:$,handlersRef:I,startValue:O,disabled:K,rightSectionPointerEvents:z,allowNegative:q,readOnly:U,size:Q,rightSectionWidth:X,stepHoldInterval:v,stepHoldDelay:c,allowLeadingZeros:R,withKeyboardEvents:T,trimLeadingZeroesOnBlur:P,allowedDecimalSeparators:y,attributes:B,...Y}=r,H=We({name:"NumberInput",classes:Re,props:r,classNames:n,styles:i,unstyled:s,attributes:B,vars:b,varsResolver:Ht}),{resolvedClassNames:oe,resolvedStyles:fe}=ut({classNames:n,styles:i,props:r}),[A,ae]=Te({value:N,defaultValue:g,finalValue:"",onChange:w}),we=c!==void 0&&v!==void 0,te=F.useRef(null),ue=F.useRef(null),pe=F.useRef(0),Ve=(u,S)=>{S.source==="event"&&ae(Zt(u.floatValue,u.value)&&!$t.test(u.value)&&!(R&&zt.test(u.value))&&!Ut.test(u.value)&&!at.test(u.value)?u.floatValue:u.value),x?.(u,S)},le=u=>{const S=String(u).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return S?Math.max(0,(S[1]?S[1].length:0)-(S[2]?+S[2]:0)):0},de=u=>{te.current&&typeof u<"u"&&te.current.setSelectionRange(u,u)},ve=F.useRef(Oe);ve.current=()=>{if(!Ie(A))return;let u;const S=le(A),De=le(f),xe=Math.max(S,De),re=10**xe;if(!Ee(A)&&(typeof A!="number"||Number.isNaN(A)))u=Ne(O,h,d);else if(d!==void 0){const se=(Math.round(Number(A)*re)+Math.round(f*re))/re;u=se<=d?se:d}else u=(Math.round(Number(A)*re)+Math.round(f*re))/re;const ne=u.toFixed(xe);ae(parseFloat(ne)),x?.({floatValue:parseFloat(ne),formattedValue:ne,value:ne},{source:"increment"}),setTimeout(()=>de(te.current?.value.length),0)};const o=F.useRef(Oe);o.current=()=>{if(!Ie(A))return;let u;const S=h!==void 0?h:q?Number.MIN_SAFE_INTEGER:0,De=le(A),xe=le(f),re=Math.max(De,xe),ne=10**re;if(!Ee(A)&&typeof A!="number"||Number.isNaN(A))u=Ne(O,S,d);else{const Fe=(Math.round(Number(A)*ne)-Math.round(f*ne))/ne;u=S!==void 0&&Fe<S?S:Fe}const se=u.toFixed(re);ae(parseFloat(se)),x?.({floatValue:parseFloat(se),formattedValue:se,value:se},{source:"decrement"}),setTimeout(()=>de(te.current?.value.length),0)};const l=u=>{J?.(u),!(U||!T)&&(u.key==="ArrowUp"&&(u.preventDefault(),ve.current?.()),u.key==="ArrowDown"&&(u.preventDefault(),o.current?.()))},p=u=>{if($?.(u),u.key==="Backspace"){const S=te.current;S&&S.selectionStart===0&&S.selectionStart===S.selectionEnd&&(u.preventDefault(),window.setTimeout(()=>de(0),0))}},_=u=>{let S=A;k==="blur"&&typeof S=="number"&&(S=Ne(S,h,d)),P&&typeof S=="string"&&le(S)<15&&(S=Xt(S,d,h)),A!==S&&ae(S),M?.(u)};lt(I,{increment:ve.current,decrement:o.current});const L=u=>{u?ve.current?.():o.current?.(),pe.current+=1},E=u=>{if(L(u),we){const S=typeof v=="number"?v:v(pe.current);ue.current=window.setTimeout(()=>E(u),S)}},V=(u,S)=>{u.preventDefault(),te.current?.focus(),L(S),we&&(ue.current=window.setTimeout(()=>E(S),c))},W=()=>{ue.current&&window.clearTimeout(ue.current),ue.current=null,pe.current=0},ee=G.jsxs("div",{...H("controls"),children:[G.jsx(Me,{...H("control"),tabIndex:-1,"aria-hidden":!0,disabled:K||typeof A=="number"&&d!==void 0&&A>=d,mod:{direction:"up"},onMouseDown:u=>u.preventDefault(),onPointerDown:u=>{V(u,!0)},onPointerUp:W,onPointerLeave:W,children:G.jsx(ze,{direction:"up"})}),G.jsx(Me,{...H("control"),tabIndex:-1,"aria-hidden":!0,disabled:K||typeof A=="number"&&h!==void 0&&A<=h,mod:{direction:"down"},onMouseDown:u=>u.preventDefault(),onPointerDown:u=>{V(u,!1)},onPointerUp:W,onPointerLeave:W,children:G.jsx(ze,{direction:"down"})})]});return G.jsx(Ze,{component:Kt,allowNegative:q,className:ct(Re.root,a),size:Q,inputMode:"decimal",...Y,readOnly:U,disabled:K,value:A,getInputRef:st(t,te),onValueChange:Ve,rightSection:D||U||!Ie(A)?C:C||ee,classNames:oe,styles:fe,unstyled:s,__staticSelector:"NumberInput",decimalScale:Z?j:0,onKeyDown:l,onKeyDownCapture:p,rightSectionPointerEvents:z??(K?"none":void 0),rightSectionWidth:X??`var(--ni-right-section-width-${Q||"sm"})`,allowLeadingZeros:R,allowedDecimalSeparators:y,onBlur:_,attributes:B,isAllowed:u=>k==="strict"?m?m(u)&&Ue(u.floatValue,h,d):Ue(u.floatValue,h,d):m?m(u):!0})});nt.classes={...Ze.classes,...Re};nt.displayName="@mantine/core/NumberInput";var it={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};const ot=F.createContext(null),Jt=ot.Provider,Qt=()=>F.useContext(ot),Be=_e((e,t)=>{const{value:r,defaultValue:a,onChange:n,size:i,wrapperProps:s,children:b,readOnly:w,disabled:x,...N}=Ae("SwitchGroup",null,e),[g,d]=Te({value:r,defaultValue:a,finalValue:[],onChange:n}),h=f=>{const D=f.currentTarget.value;!w&&d(g.includes(D)?g.filter(C=>C!==D):[...g,D])};return G.jsx(Jt,{value:{value:g,onChange:h,size:i,disabled:x},children:G.jsx(He.Wrapper,{size:i,ref:t,...s,...N,labelElement:"div",__staticSelector:"SwitchGroup",children:G.jsx(ht,{role:"group",children:b})})})});Be.classes=He.Wrapper.classes;Be.displayName="@mantine/core/SwitchGroup";const Yt={labelPosition:"right",withThumbIndicator:!0},er=qe((e,{radius:t,color:r,size:a})=>({root:{"--switch-radius":t===void 0?void 0:mt(t),"--switch-height":ge(a,"switch-height"),"--switch-width":ge(a,"switch-width"),"--switch-thumb-size":ge(a,"switch-thumb-size"),"--switch-label-font-size":ge(a,"switch-label-font-size"),"--switch-track-label-padding":ge(a,"switch-track-label-padding"),"--switch-color":r?vt(r,e):void 0}})),ke=_e((e,t)=>{const r=Ae("Switch",Yt,e),{classNames:a,className:n,style:i,styles:s,unstyled:b,vars:w,color:x,label:N,offLabel:g,onLabel:d,id:h,size:f,radius:D,wrapperProps:C,thumbIcon:m,checked:k,defaultChecked:M,onChange:Z,labelPosition:j,description:J,error:$,disabled:I,variant:O,rootRef:K,mod:z,withThumbIndicator:q,attributes:U,...Q}=r,X=Qt(),v=f||X?.size,c=We({name:"Switch",props:r,classes:it,className:n,style:i,classNames:a,styles:s,unstyled:b,attributes:U,vars:w,varsResolver:er}),{styleProps:R,rest:T}=ft(Q),P=dt(h),y={checked:X?.value.includes(T.value)??k,onChange:H=>{X?.onChange(H),Z?.(H)},disabled:X?.disabled??I},[B,Y]=Te({value:y.checked??k,defaultValue:M,finalValue:!1});return G.jsxs(pt,{...c("root"),__staticSelector:"Switch",__stylesApiProps:r,id:P,size:v,labelPosition:j,label:N,description:J,error:$,disabled:y.disabled,bodyElement:"label",labelElement:"span",classNames:a,styles:s,unstyled:b,"data-checked":y.checked,variant:O,ref:K,mod:z,...R,...C,children:[G.jsx("input",{...T,...y,checked:B,"data-checked":y.checked,onChange:H=>{y.onChange?.(H),Y(H.currentTarget.checked)},id:P,ref:t,type:"checkbox",role:"switch",...c("input")}),G.jsxs(je,{"aria-hidden":"true",component:"span",mod:{error:$,"label-position":j,"without-labels":!d&&!g},...c("track"),children:[G.jsx(je,{component:"span",mod:{"reduce-motion":!0,"with-thumb-indicator":q&&!m},...c("thumb"),children:m}),G.jsx("span",{...c("trackLabel"),children:B?d:g})]})]})});ke.classes={...it,...St};ke.displayName="@mantine/core/Switch";ke.Group=Be;const tr=[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]],ir=gt("outline","refresh","Refresh",tr);export{ir as I,nt as N,ke as S};