@alepha/devtools 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/assets/devtools/actions.html +2 -2
  2. package/assets/devtools/actions.html.br +0 -0
  3. package/assets/devtools/actions.html.gz +0 -0
  4. package/assets/devtools/{asset.BJSLFcNT.css → asset.CBnMq2vO.css} +1 -1
  5. package/assets/devtools/asset.CBnMq2vO.css.br +0 -0
  6. package/assets/devtools/{asset.BJSLFcNT.css.gz → asset.CBnMq2vO.css.gz} +0 -0
  7. package/assets/devtools/atoms.html +2 -2
  8. package/assets/devtools/atoms.html.br +0 -0
  9. package/assets/devtools/atoms.html.gz +0 -0
  10. package/assets/devtools/caches.html +2 -2
  11. package/assets/devtools/caches.html.br +0 -0
  12. package/assets/devtools/caches.html.gz +0 -0
  13. package/assets/devtools/{chunk.BVIEr21R.js → chunk.6INqNjF0.js} +1 -1
  14. package/assets/devtools/chunk.6INqNjF0.js.br +0 -0
  15. package/assets/devtools/chunk.6INqNjF0.js.gz +0 -0
  16. package/assets/devtools/{chunk.3PgxxOdM.js → chunk.9vpWpXSF.js} +1 -1
  17. package/assets/devtools/chunk.9vpWpXSF.js.br +0 -0
  18. package/assets/devtools/chunk.9vpWpXSF.js.gz +0 -0
  19. package/assets/devtools/{chunk.Dww1YQtc.js → chunk.B4peH6PS.js} +1 -1
  20. package/assets/devtools/chunk.B4peH6PS.js.br +0 -0
  21. package/assets/devtools/chunk.B4peH6PS.js.gz +0 -0
  22. package/assets/devtools/{chunk.CPGX3Xpx.js → chunk.B8CNjZzU.js} +1 -1
  23. package/assets/devtools/chunk.B8CNjZzU.js.br +0 -0
  24. package/assets/devtools/chunk.B8CNjZzU.js.gz +0 -0
  25. package/assets/devtools/{chunk.C0BD3Ujz.js → chunk.Bgd10SVI.js} +1 -1
  26. package/assets/devtools/chunk.Bgd10SVI.js.br +0 -0
  27. package/assets/devtools/chunk.Bgd10SVI.js.gz +0 -0
  28. package/assets/devtools/{chunk.vHjNjQS8.js → chunk.BqBNmfN9.js} +1 -1
  29. package/assets/devtools/chunk.BqBNmfN9.js.br +0 -0
  30. package/assets/devtools/chunk.BqBNmfN9.js.gz +0 -0
  31. package/assets/devtools/{chunk.JjTGVewZ.js → chunk.Bt0_vkJm.js} +1 -1
  32. package/assets/devtools/chunk.Bt0_vkJm.js.br +0 -0
  33. package/assets/devtools/chunk.Bt0_vkJm.js.gz +0 -0
  34. package/assets/devtools/{chunk.uTFtY0ae.js → chunk.C3GuU4pz.js} +1 -1
  35. package/assets/devtools/chunk.C3GuU4pz.js.br +0 -0
  36. package/assets/devtools/chunk.C3GuU4pz.js.gz +0 -0
  37. package/assets/devtools/{chunk.DClU9Z1_.js → chunk.CGwoN_Mo.js} +1 -1
  38. package/assets/devtools/chunk.CGwoN_Mo.js.br +0 -0
  39. package/assets/devtools/chunk.CGwoN_Mo.js.gz +0 -0
  40. package/assets/devtools/{chunk.YFkMUqFM.js → chunk.CJCvhHA7.js} +1 -1
  41. package/assets/devtools/chunk.CJCvhHA7.js.br +2 -0
  42. package/assets/devtools/chunk.CJCvhHA7.js.gz +0 -0
  43. package/assets/devtools/{chunk.BymZ9jU5.js → chunk.CKr2VE6v.js} +1 -1
  44. package/assets/devtools/chunk.CKr2VE6v.js.br +0 -0
  45. package/assets/devtools/chunk.CKr2VE6v.js.gz +0 -0
  46. package/assets/devtools/{chunk.HFLdduaf.js → chunk.CLvTwbkw.js} +1 -1
  47. package/assets/devtools/chunk.CLvTwbkw.js.br +0 -0
  48. package/assets/devtools/chunk.CLvTwbkw.js.gz +0 -0
  49. package/assets/devtools/{chunk.D7JLxcoJ.js → chunk.CR13dZhE.js} +1 -1
  50. package/assets/devtools/chunk.CR13dZhE.js.br +0 -0
  51. package/assets/devtools/chunk.CR13dZhE.js.gz +0 -0
  52. package/assets/devtools/{chunk.DfzRLqwW.js → chunk.C_C-cVqs.js} +1 -1
  53. package/assets/devtools/chunk.C_C-cVqs.js.br +1 -0
  54. package/assets/devtools/chunk.C_C-cVqs.js.gz +0 -0
  55. package/assets/devtools/{chunk.BKph0hv1.js → chunk.CjevPbPy.js} +1 -1
  56. package/assets/devtools/chunk.CjevPbPy.js.br +0 -0
  57. package/assets/devtools/chunk.CjevPbPy.js.gz +0 -0
  58. package/assets/devtools/{chunk.Bb3re2d8.js → chunk.CkNMZqAe.js} +1 -1
  59. package/assets/devtools/chunk.CkNMZqAe.js.br +0 -0
  60. package/assets/devtools/chunk.CkNMZqAe.js.gz +0 -0
  61. package/assets/devtools/{chunk.1h5GuATm.js → chunk.Cl1Mlnqx.js} +1 -1
  62. package/assets/devtools/chunk.Cl1Mlnqx.js.br +0 -0
  63. package/assets/devtools/chunk.Cl1Mlnqx.js.gz +0 -0
  64. package/assets/devtools/{chunk.B8p_Szro.js → chunk.CyY8OGdZ.js} +1 -1
  65. package/assets/devtools/chunk.CyY8OGdZ.js.br +0 -0
  66. package/assets/devtools/chunk.CyY8OGdZ.js.gz +0 -0
  67. package/assets/devtools/{chunk.A_W3H6Aa.js → chunk.Cyx9kLqD.js} +1 -1
  68. package/assets/devtools/chunk.Cyx9kLqD.js.br +0 -0
  69. package/assets/devtools/chunk.Cyx9kLqD.js.gz +0 -0
  70. package/assets/devtools/{chunk.BANy8c2v.js → chunk.D1MGgxUI.js} +1 -1
  71. package/assets/devtools/chunk.D1MGgxUI.js.br +0 -0
  72. package/assets/devtools/chunk.D1MGgxUI.js.gz +0 -0
  73. package/assets/devtools/{chunk.DWASJDBE.js → chunk.D5Ci-dwk.js} +1 -1
  74. package/assets/devtools/chunk.D5Ci-dwk.js.br +0 -0
  75. package/assets/devtools/chunk.D5Ci-dwk.js.gz +0 -0
  76. package/assets/devtools/{chunk.CJrYVzjN.js → chunk.DFrWQW5x.js} +1 -1
  77. package/assets/devtools/chunk.DFrWQW5x.js.br +0 -0
  78. package/assets/devtools/chunk.DFrWQW5x.js.gz +0 -0
  79. package/assets/devtools/{chunk.Cf-3skUw.js → chunk.DaVlli3f.js} +1 -1
  80. package/assets/devtools/chunk.DaVlli3f.js.br +0 -0
  81. package/assets/devtools/chunk.DaVlli3f.js.gz +0 -0
  82. package/assets/devtools/{chunk.C63rzhbT.js → chunk.DdyBCs50.js} +1 -1
  83. package/assets/devtools/chunk.DdyBCs50.js.br +0 -0
  84. package/assets/devtools/chunk.DdyBCs50.js.gz +0 -0
  85. package/assets/devtools/{chunk._KdUFIrt.js → chunk.Dl0THvrP.js} +1 -1
  86. package/assets/devtools/chunk.Dl0THvrP.js.br +0 -0
  87. package/assets/devtools/chunk.Dl0THvrP.js.gz +0 -0
  88. package/assets/devtools/{chunk.BUs1kuwE.js → chunk.DwUNDm68.js} +1 -1
  89. package/assets/devtools/chunk.DwUNDm68.js.br +0 -0
  90. package/assets/devtools/chunk.DwUNDm68.js.gz +0 -0
  91. package/assets/devtools/{chunk.J-htqECs.js → chunk.DzDkh4C6.js} +1 -1
  92. package/assets/devtools/chunk.DzDkh4C6.js.br +0 -0
  93. package/assets/devtools/chunk.DzDkh4C6.js.gz +0 -0
  94. package/assets/devtools/{chunk.pjP6xqG8.js → chunk.QTExp4CY.js} +1 -1
  95. package/assets/devtools/chunk.QTExp4CY.js.br +0 -0
  96. package/assets/devtools/chunk.QTExp4CY.js.gz +0 -0
  97. package/assets/devtools/{chunk.B5tL0VjH.js → chunk.ReCPcJln.js} +1 -1
  98. package/assets/devtools/chunk.ReCPcJln.js.br +0 -0
  99. package/assets/devtools/chunk.ReCPcJln.js.gz +0 -0
  100. package/assets/devtools/{chunk.D7e5mBY4.js → chunk.UEhIKOMY.js} +1 -1
  101. package/assets/devtools/chunk.UEhIKOMY.js.br +0 -0
  102. package/assets/devtools/chunk.UEhIKOMY.js.gz +0 -0
  103. package/assets/devtools/{chunk.BkXzz14p.js → chunk.mWQqK3dU.js} +1 -1
  104. package/assets/devtools/chunk.mWQqK3dU.js.br +0 -0
  105. package/assets/devtools/chunk.mWQqK3dU.js.gz +0 -0
  106. package/assets/devtools/{chunk.OV_89czZ.js → chunk.yLRX_cUF.js} +1 -1
  107. package/assets/devtools/chunk.yLRX_cUF.js.br +0 -0
  108. package/assets/devtools/chunk.yLRX_cUF.js.gz +0 -0
  109. package/assets/devtools/{chunk.DE_M8b3Z.js → chunk.zuZxBYZg.js} +1 -1
  110. package/assets/devtools/chunk.zuZxBYZg.js.br +0 -0
  111. package/assets/devtools/chunk.zuZxBYZg.js.gz +0 -0
  112. package/assets/devtools/db.html +2 -2
  113. package/assets/devtools/db.html.br +0 -0
  114. package/assets/devtools/db.html.gz +0 -0
  115. package/assets/devtools/{entry.DhzNl8q_.js → entry.Cry3rxEI.js} +2 -2
  116. package/assets/devtools/entry.Cry3rxEI.js.br +0 -0
  117. package/assets/devtools/entry.Cry3rxEI.js.gz +0 -0
  118. package/assets/devtools/env.html +2 -2
  119. package/assets/devtools/env.html.br +0 -0
  120. package/assets/devtools/env.html.gz +0 -0
  121. package/assets/devtools/graph.html +2 -2
  122. package/assets/devtools/graph.html.br +0 -0
  123. package/assets/devtools/graph.html.gz +0 -0
  124. package/assets/devtools/index.html +2 -2
  125. package/assets/devtools/index.html.br +0 -0
  126. package/assets/devtools/index.html.gz +0 -0
  127. package/assets/devtools/logs.html +2 -2
  128. package/assets/devtools/logs.html.br +0 -0
  129. package/assets/devtools/logs.html.gz +0 -0
  130. package/assets/devtools/queues.html +2 -2
  131. package/assets/devtools/queues.html.br +0 -0
  132. package/assets/devtools/queues.html.gz +0 -0
  133. package/assets/devtools/topics.html +2 -2
  134. package/assets/devtools/topics.html.br +0 -0
  135. package/assets/devtools/topics.html.gz +0 -0
  136. package/package.json +4 -4
  137. package/assets/devtools/asset.BJSLFcNT.css.br +0 -0
  138. package/assets/devtools/chunk.1h5GuATm.js.br +0 -0
  139. package/assets/devtools/chunk.1h5GuATm.js.gz +0 -0
  140. package/assets/devtools/chunk.3PgxxOdM.js.br +0 -0
  141. package/assets/devtools/chunk.3PgxxOdM.js.gz +0 -0
  142. package/assets/devtools/chunk.A_W3H6Aa.js.br +0 -0
  143. package/assets/devtools/chunk.A_W3H6Aa.js.gz +0 -0
  144. package/assets/devtools/chunk.B5tL0VjH.js.br +0 -0
  145. package/assets/devtools/chunk.B5tL0VjH.js.gz +0 -0
  146. package/assets/devtools/chunk.B8p_Szro.js.br +0 -0
  147. package/assets/devtools/chunk.B8p_Szro.js.gz +0 -0
  148. package/assets/devtools/chunk.BANy8c2v.js.br +0 -0
  149. package/assets/devtools/chunk.BANy8c2v.js.gz +0 -0
  150. package/assets/devtools/chunk.BKph0hv1.js.br +0 -0
  151. package/assets/devtools/chunk.BKph0hv1.js.gz +0 -0
  152. package/assets/devtools/chunk.BUs1kuwE.js.br +0 -0
  153. package/assets/devtools/chunk.BUs1kuwE.js.gz +0 -0
  154. package/assets/devtools/chunk.BVIEr21R.js.br +0 -0
  155. package/assets/devtools/chunk.BVIEr21R.js.gz +0 -0
  156. package/assets/devtools/chunk.Bb3re2d8.js.br +0 -2
  157. package/assets/devtools/chunk.Bb3re2d8.js.gz +0 -0
  158. package/assets/devtools/chunk.BkXzz14p.js.br +0 -0
  159. package/assets/devtools/chunk.BkXzz14p.js.gz +0 -0
  160. package/assets/devtools/chunk.BymZ9jU5.js.br +0 -0
  161. package/assets/devtools/chunk.BymZ9jU5.js.gz +0 -0
  162. package/assets/devtools/chunk.C0BD3Ujz.js.br +0 -0
  163. package/assets/devtools/chunk.C0BD3Ujz.js.gz +0 -0
  164. package/assets/devtools/chunk.C63rzhbT.js.br +0 -0
  165. package/assets/devtools/chunk.C63rzhbT.js.gz +0 -0
  166. package/assets/devtools/chunk.CJrYVzjN.js.br +0 -0
  167. package/assets/devtools/chunk.CJrYVzjN.js.gz +0 -0
  168. package/assets/devtools/chunk.CPGX3Xpx.js.br +0 -1
  169. package/assets/devtools/chunk.CPGX3Xpx.js.gz +0 -0
  170. package/assets/devtools/chunk.Cf-3skUw.js.br +0 -0
  171. package/assets/devtools/chunk.Cf-3skUw.js.gz +0 -0
  172. package/assets/devtools/chunk.D7JLxcoJ.js.br +0 -0
  173. package/assets/devtools/chunk.D7JLxcoJ.js.gz +0 -0
  174. package/assets/devtools/chunk.D7e5mBY4.js.br +0 -0
  175. package/assets/devtools/chunk.D7e5mBY4.js.gz +0 -0
  176. package/assets/devtools/chunk.DClU9Z1_.js.br +0 -0
  177. package/assets/devtools/chunk.DClU9Z1_.js.gz +0 -0
  178. package/assets/devtools/chunk.DE_M8b3Z.js.br +0 -0
  179. package/assets/devtools/chunk.DE_M8b3Z.js.gz +0 -0
  180. package/assets/devtools/chunk.DWASJDBE.js.br +0 -0
  181. package/assets/devtools/chunk.DWASJDBE.js.gz +0 -0
  182. package/assets/devtools/chunk.DfzRLqwW.js.br +0 -0
  183. package/assets/devtools/chunk.DfzRLqwW.js.gz +0 -0
  184. package/assets/devtools/chunk.Dww1YQtc.js.br +0 -0
  185. package/assets/devtools/chunk.Dww1YQtc.js.gz +0 -0
  186. package/assets/devtools/chunk.HFLdduaf.js.br +0 -0
  187. package/assets/devtools/chunk.HFLdduaf.js.gz +0 -0
  188. package/assets/devtools/chunk.J-htqECs.js.br +0 -2
  189. package/assets/devtools/chunk.J-htqECs.js.gz +0 -0
  190. package/assets/devtools/chunk.JjTGVewZ.js.br +0 -0
  191. package/assets/devtools/chunk.JjTGVewZ.js.gz +0 -0
  192. package/assets/devtools/chunk.OV_89czZ.js.br +0 -0
  193. package/assets/devtools/chunk.OV_89czZ.js.gz +0 -0
  194. package/assets/devtools/chunk.YFkMUqFM.js.br +0 -0
  195. package/assets/devtools/chunk.YFkMUqFM.js.gz +0 -0
  196. package/assets/devtools/chunk._KdUFIrt.js.br +0 -0
  197. package/assets/devtools/chunk._KdUFIrt.js.gz +0 -0
  198. package/assets/devtools/chunk.pjP6xqG8.js.br +0 -0
  199. package/assets/devtools/chunk.pjP6xqG8.js.gz +0 -0
  200. package/assets/devtools/chunk.uTFtY0ae.js.br +0 -0
  201. package/assets/devtools/chunk.uTFtY0ae.js.gz +0 -0
  202. package/assets/devtools/chunk.vHjNjQS8.js.br +0 -0
  203. package/assets/devtools/chunk.vHjNjQS8.js.gz +0 -0
  204. package/assets/devtools/entry.DhzNl8q_.js.br +0 -0
  205. package/assets/devtools/entry.DhzNl8q_.js.gz +0 -0
@@ -1,4 +1,4 @@
1
- import{aq as me,r as F,j as G,f as _e,d as Ae,o as We,az as ut,a2 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,x as mt,y as gt}from"./entry.DhzNl8q_.js";import{n as Oe}from"./chunk.BjFrJKj1.js";import{I as ht,a as pt,b as St}from"./chunk.Dww1YQtc.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(`
1
+ import{aq as me,r as F,j as G,f as _e,d as Ae,o as We,az as ut,a2 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,x as mt,y as gt}from"./entry.Cry3rxEI.js";import{n as Oe}from"./chunk.BjFrJKj1.js";import{I as ht,a as pt,b as St}from"./chunk.B4peH6PS.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
2
  Decimal separator can't be same as thousand separator.
3
3
  thousandSeparator: `+r+` (thousandSeparator = {true} is same as thousandSeparator = ",")
4
4
  decimalSeparator: `+a+` (default value for decimalSeparator is .)
@@ -1 +1 @@
1
- import{y as C,a5 as R,a6 as D,r as x,j as e,F as m,T as i,B as c,N as j,ah as O,E as B,af as z,V as S,K as F,L as _,ag as v,a8 as $,ac as I}from"./entry.DhzNl8q_.js";import{J as w}from"./chunk.DClU9Z1_.js";import{d as A}from"./chunk.J-htqECs.js";import{S as f,B as T}from"./chunk.BVIEr21R.js";import{I as J}from"./chunk.C0BD3Ujz.js";import{T as g}from"./chunk.OV_89czZ.js";import{I as H}from"./chunk.BANy8c2v.js";import{I as V,a as K}from"./chunk.pjP6xqG8.js";import{T as q}from"./chunk.BKph0hv1.js";import"./chunk.BlqFPyLh.js";import"./chunk.C63rzhbT.js";import"./chunk.uyVen0u2.js";const G=[["path",{d:"M5 19l2.757 -7.351a1 1 0 0 1 .936 -.649h12.307a1 1 0 0 1 .986 1.164l-.996 5.211a2 2 0 0 1 -1.964 1.625h-14.026a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2",key:"svg-0"}]],Q=C("outline","folder-open","FolderOpen",G);const U=[["path",{d:"M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2",key:"svg-0"}]],W=C("outline","folder","Folder",U);const X=[["path",{d:"M10 14l11 -11",key:"svg-0"}],["path",{d:"M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5",key:"svg-1"}]],L=C("outline","send","Send",X),M={memory:"#69db7c",redis:"#ff6b6b",default:"#495057"},N=s=>M[s]??M.default,Y=s=>{const o={name:"",fullPath:"",children:new Map};for(const p of s){const a=p.name.split(/[./]/);let l=o;for(let n=0;n<a.length;n++){const r=a[n],d=a.slice(0,n+1).join("/");l.children.has(r)||l.children.set(r,{name:r,fullPath:d,children:new Map}),l=l.children.get(r)}l.topic=p}return o},E=({node:s,depth:o,selectedTopic:p,onSelectTopic:a,expandedNodes:l,onToggleExpand:n})=>{const r=s.children.size>0,d=l.has(s.fullPath),b=s.topic&&p?.name===s.topic.name,t=s.topic?N(s.topic.provider):"#495057",u=()=>{s.topic&&a(s.topic),r&&n(s.fullPath)};return e.jsxs(c,{children:[e.jsxs(m,{align:"center",gap:4,px:"sm",py:4,onClick:u,style:{cursor:"pointer",paddingLeft:o*16+8,backgroundColor:b?`${t}15`:void 0,borderLeft:b?`2px solid ${t}`:"2px solid transparent",borderBottom:`1px solid ${j.colors.border}`},children:[r?d?e.jsx(F,{size:12,opacity:.5}):e.jsx(_,{size:12,opacity:.5}):e.jsx(c,{w:12}),r?d?e.jsx(Q,{size:14,opacity:.5}):e.jsx(W,{size:14,opacity:.5}):e.jsx(S,{size:14,opacity:.5}),e.jsx(i,{size:"sm",style:{flex:1},truncate:!0,fw:s.topic?500:400,children:s.name}),s.topic&&e.jsx(T,{size:"xs",variant:"light",color:s.topic.provider==="redis"?"red":"green",children:s.topic.provider})]}),r&&d&&e.jsx(c,{children:Array.from(s.children.values()).sort((h,y)=>{const P=h.children.size>0,k=y.children.size>0;return P&&!k?-1:!P&&k?1:h.name.localeCompare(y.name)}).map(h=>e.jsx(E,{node:h,depth:o+1,selectedTopic:p,onSelectTopic:a,expandedNodes:l,onToggleExpand:n},h.fullPath))})]})},Z=({topics:s,selectedTopic:o,onSelectTopic:p,search:a,onSearchChange:l})=>{const[n,r]=x.useState(new Set),d=x.useMemo(()=>Y(s),[s]);x.useEffect(()=>{const t=new Set,u=h=>{h.fullPath&&t.add(h.fullPath);for(const y of h.children.values())u(y)};u(d),r(t)},[d]);const b=x.useCallback(t=>{r(u=>{const h=new Set(u);return h.has(t)?h.delete(t):h.add(t),h})},[]);return e.jsxs(f,{gap:0,h:"100%",children:[e.jsx(c,{p:"sm",style:{borderBottom:`1px solid ${j.colors.border}`},children:e.jsx(O,{placeholder:"Search topics...",leftSection:e.jsx(B,{size:14}),size:"xs",value:a,onChange:t=>l(t.target.value)})}),e.jsx(z,{style:{flex:1},children:Array.from(d.children.values()).sort((t,u)=>t.name.localeCompare(u.name)).map(t=>e.jsx(E,{node:t,depth:0,selectedTopic:o,onSelectTopic:p,expandedNodes:n,onToggleExpand:b},t.fullPath))})]})},ee=({topic:s})=>e.jsx(z,{h:"100%",p:"md",children:e.jsxs(f,{gap:"lg",children:[e.jsxs(c,{children:[e.jsx(i,{size:"sm",fw:600,mb:"xs",children:"Topic Info"}),e.jsxs(f,{gap:"xs",children:[e.jsxs(m,{gap:"sm",children:[e.jsx(i,{size:"sm",c:"dimmed",w:100,children:"Name"}),e.jsx(i,{size:"sm",ff:"monospace",children:s.name})]}),e.jsxs(m,{gap:"sm",children:[e.jsx(i,{size:"sm",c:"dimmed",w:100,children:"Provider"}),e.jsx(T,{size:"xs",variant:"light",color:s.provider==="redis"?"red":"green",children:s.provider})]}),s.description&&e.jsxs(m,{gap:"sm",children:[e.jsx(i,{size:"sm",c:"dimmed",w:100,children:"Description"}),e.jsx(i,{size:"sm",children:s.description})]})]})]}),s.schema&&e.jsxs(c,{children:[e.jsx(i,{size:"sm",fw:600,mb:"xs",children:"Message Schema"}),e.jsx(c,{p:"sm",style:{border:`1px solid ${j.colors.border}`,borderRadius:8,backgroundColor:j.colors.surface},children:e.jsx(w,{data:s.schema,maxDepth:5,size:"xs"})})]})]})}),se=({topic:s})=>{const[o,p]=x.useState([]),[a,l]=x.useState(!1),n=x.useCallback(()=>{const r=s.schema?{example:"data",topic:s.name,timestamp:new Date().toISOString()}:{message:`Hello from ${s.name}`};p(d=>[{id:Math.random().toString(36).slice(2),timestamp:new Date,payload:r},...d.slice(0,49)])},[s]);return e.jsxs(m,{direction:"column",h:"100%",children:[e.jsx(c,{p:"sm",style:{borderBottom:`1px solid ${j.colors.border}`},children:e.jsxs(m,{gap:"sm",align:"center",justify:"space-between",children:[e.jsxs(m,{gap:"sm",align:"center",children:[e.jsx(v,{label:a?"Stop listening (coming soon)":"Start listening (coming soon)",children:e.jsx($,{size:"xs",variant:"light",color:a?"red":"green",leftSection:e.jsx(H,{size:14}),onClick:()=>l(!a),disabled:!0,children:a?"Stop":"Listen"})}),e.jsxs(i,{size:"xs",c:"dimmed",children:[o.length," messages"]})]}),e.jsxs(m,{gap:"sm",children:[e.jsx(v,{label:"Add fake message (for demo)",children:e.jsx(I,{size:"sm",variant:"light",onClick:n,children:e.jsx(L,{size:14})})}),e.jsx(v,{label:"Clear messages",children:e.jsx(I,{size:"sm",variant:"light",color:"gray",onClick:()=>p([]),children:e.jsx(V,{size:14})})})]})]})}),o.length===0?e.jsx(m,{align:"center",justify:"center",style:{flex:1},c:"dimmed",children:e.jsxs(f,{align:"center",gap:"xs",children:[e.jsx(S,{size:48,opacity:.3}),e.jsx(i,{size:"sm",children:"No messages yet"}),e.jsx(i,{size:"xs",c:"dimmed",children:"Click the send icon to add a fake message for demo"})]})}):e.jsx(z,{style:{flex:1},children:e.jsx(f,{gap:0,children:o.map(r=>e.jsxs(c,{p:"sm",style:{borderBottom:`1px solid ${j.colors.border}`},children:[e.jsxs(m,{align:"center",gap:"xs",mb:"xs",children:[e.jsx(K,{size:12,opacity:.5}),e.jsx(i,{size:"xs",c:"dimmed",children:r.timestamp.toLocaleTimeString()})]}),e.jsx(c,{p:"xs",style:{backgroundColor:j.colors.surface,borderRadius:4},children:e.jsx(w,{data:r.payload,maxDepth:3,size:"xs"})})]},r.id))})})]})},re=({topic:s})=>{const[o,p]=x.useState(JSON.stringify({message:"Hello",timestamp:new Date().toISOString()},null,2)),[a,l]=x.useState(null),n=()=>{try{JSON.parse(o),l(null),alert(`Message would be published to "${s.name}" (coming soon)`)}catch{l("Invalid JSON")}};return e.jsx(z,{h:"100%",p:"md",children:e.jsxs(f,{gap:"md",children:[e.jsxs(c,{children:[e.jsx(i,{size:"sm",fw:600,mb:"xs",children:"Publish Message"}),e.jsx(i,{size:"xs",c:"dimmed",mb:"sm",children:"Send a test message to this topic (coming soon)"})]}),e.jsxs(c,{children:[e.jsx(i,{size:"sm",c:"dimmed",mb:"xs",children:"Payload (JSON)"}),e.jsx(q,{value:o,onChange:r=>p(r.target.value),minRows:8,maxRows:15,autosize:!0,ff:"monospace",size:"xs",error:a,styles:{input:{backgroundColor:j.colors.surface}}})]}),e.jsx(v,{label:"Publish message (coming soon)",children:e.jsx($,{size:"sm",variant:"light",leftSection:e.jsx(L,{size:16}),onClick:n,disabled:!0,children:"Publish"})}),s.schema&&e.jsxs(c,{children:[e.jsx(i,{size:"sm",c:"dimmed",mb:"xs",children:"Expected Schema"}),e.jsx(c,{p:"sm",style:{border:`1px solid ${j.colors.border}`,borderRadius:8,backgroundColor:j.colors.surface},children:e.jsx(w,{data:s.schema,maxDepth:3,size:"xs"})})]})]})})},ie=({topic:s})=>{const o=N(s.provider);return e.jsxs(m,{direction:"column",h:"100%",children:[e.jsxs(c,{px:"md",py:"sm",style:{borderBottom:`1px solid ${j.colors.border}`,backgroundColor:`${o}08`},children:[e.jsxs(m,{align:"center",gap:"sm",children:[e.jsx(S,{size:18,opacity:.7}),e.jsx(i,{size:"md",fw:600,ff:"monospace",children:s.name}),e.jsx(T,{size:"xs",variant:"light",color:s.provider==="redis"?"red":"green",children:s.provider})]}),s.description&&e.jsx(i,{size:"xs",c:"dimmed",mt:4,children:s.description})]}),e.jsxs(g,{defaultValue:"schema",style:{flex:1,display:"flex",flexDirection:"column"},children:[e.jsxs(g.List,{px:"md",children:[e.jsx(g.Tab,{value:"schema",children:"Schema"}),e.jsx(g.Tab,{value:"messages",children:"Messages"}),e.jsx(g.Tab,{value:"publish",children:"Publish"})]}),e.jsx(g.Panel,{value:"schema",style:{flex:1,overflow:"hidden"},children:e.jsx(ee,{topic:s})}),e.jsx(g.Panel,{value:"messages",style:{flex:1,overflow:"hidden"},children:e.jsx(se,{topic:s})}),e.jsx(g.Panel,{value:"publish",style:{flex:1,overflow:"hidden"},children:e.jsx(re,{topic:s})})]})]})},oe=()=>e.jsx(m,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(f,{align:"center",gap:"xs",children:[e.jsx(S,{size:48,opacity:.3}),e.jsx(i,{size:"sm",children:"Select a topic to view details"})]})}),te=()=>e.jsx(m,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(f,{align:"center",gap:"xs",children:[e.jsx(J,{size:48,opacity:.3}),e.jsx(i,{children:"No topics found"}),e.jsx(i,{size:"sm",c:"dimmed",children:"Add topics using $topic primitive to see them here"})]})}),fe=()=>{const s=R(D),[o,p]=x.useState([]),[a,l]=x.useState(!0),[n,r]=x.useState(null),[d,b]=x.useState("");x.useEffect(()=>{s.fetch("/devtools/api/metadata",{schema:{response:A}}).then(u=>{p(u.data.topics),l(!1)})},[]);const t=x.useMemo(()=>{if(!d)return o;const u=d.toLowerCase();return o.filter(h=>h.name.toLowerCase().includes(u))},[o,d]);return a?e.jsx(m,{align:"center",justify:"center",h:"100%",children:e.jsx(i,{c:"dimmed",children:"Loading..."})}):o.length===0?e.jsx(te,{}):e.jsxs(m,{h:"100%",style:{overflow:"hidden"},children:[e.jsx(c,{w:280,style:{borderRight:`1px solid ${j.colors.border}`,backgroundColor:j.colors.surface},children:e.jsx(Z,{topics:t,selectedTopic:n,onSelectTopic:r,search:d,onSearchChange:b})}),e.jsx(c,{style:{flex:1,overflow:"hidden"},children:n?e.jsx(ie,{topic:n}):e.jsx(oe,{})})]})};export{fe as DevTopicsViewer,fe as default};
1
+ import{y as C,a5 as R,a6 as D,r as x,j as e,F as m,T as i,B as c,N as j,ah as O,E as B,af as z,V as S,K as F,L as _,ag as v,a8 as $,ac as I}from"./entry.Cry3rxEI.js";import{J as w}from"./chunk.CGwoN_Mo.js";import{d as A}from"./chunk.DzDkh4C6.js";import{S as f,B as T}from"./chunk.6INqNjF0.js";import{I as J}from"./chunk.Bgd10SVI.js";import{T as g}from"./chunk.yLRX_cUF.js";import{I as H}from"./chunk.D1MGgxUI.js";import{I as V,a as K}from"./chunk.QTExp4CY.js";import{T as q}from"./chunk.CjevPbPy.js";import"./chunk.BlqFPyLh.js";import"./chunk.DdyBCs50.js";import"./chunk.uyVen0u2.js";const G=[["path",{d:"M5 19l2.757 -7.351a1 1 0 0 1 .936 -.649h12.307a1 1 0 0 1 .986 1.164l-.996 5.211a2 2 0 0 1 -1.964 1.625h-14.026a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2",key:"svg-0"}]],Q=C("outline","folder-open","FolderOpen",G);const U=[["path",{d:"M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2",key:"svg-0"}]],W=C("outline","folder","Folder",U);const X=[["path",{d:"M10 14l11 -11",key:"svg-0"}],["path",{d:"M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5",key:"svg-1"}]],L=C("outline","send","Send",X),M={memory:"#69db7c",redis:"#ff6b6b",default:"#495057"},N=s=>M[s]??M.default,Y=s=>{const o={name:"",fullPath:"",children:new Map};for(const p of s){const a=p.name.split(/[./]/);let l=o;for(let n=0;n<a.length;n++){const r=a[n],d=a.slice(0,n+1).join("/");l.children.has(r)||l.children.set(r,{name:r,fullPath:d,children:new Map}),l=l.children.get(r)}l.topic=p}return o},E=({node:s,depth:o,selectedTopic:p,onSelectTopic:a,expandedNodes:l,onToggleExpand:n})=>{const r=s.children.size>0,d=l.has(s.fullPath),b=s.topic&&p?.name===s.topic.name,t=s.topic?N(s.topic.provider):"#495057",u=()=>{s.topic&&a(s.topic),r&&n(s.fullPath)};return e.jsxs(c,{children:[e.jsxs(m,{align:"center",gap:4,px:"sm",py:4,onClick:u,style:{cursor:"pointer",paddingLeft:o*16+8,backgroundColor:b?`${t}15`:void 0,borderLeft:b?`2px solid ${t}`:"2px solid transparent",borderBottom:`1px solid ${j.colors.border}`},children:[r?d?e.jsx(F,{size:12,opacity:.5}):e.jsx(_,{size:12,opacity:.5}):e.jsx(c,{w:12}),r?d?e.jsx(Q,{size:14,opacity:.5}):e.jsx(W,{size:14,opacity:.5}):e.jsx(S,{size:14,opacity:.5}),e.jsx(i,{size:"sm",style:{flex:1},truncate:!0,fw:s.topic?500:400,children:s.name}),s.topic&&e.jsx(T,{size:"xs",variant:"light",color:s.topic.provider==="redis"?"red":"green",children:s.topic.provider})]}),r&&d&&e.jsx(c,{children:Array.from(s.children.values()).sort((h,y)=>{const P=h.children.size>0,k=y.children.size>0;return P&&!k?-1:!P&&k?1:h.name.localeCompare(y.name)}).map(h=>e.jsx(E,{node:h,depth:o+1,selectedTopic:p,onSelectTopic:a,expandedNodes:l,onToggleExpand:n},h.fullPath))})]})},Z=({topics:s,selectedTopic:o,onSelectTopic:p,search:a,onSearchChange:l})=>{const[n,r]=x.useState(new Set),d=x.useMemo(()=>Y(s),[s]);x.useEffect(()=>{const t=new Set,u=h=>{h.fullPath&&t.add(h.fullPath);for(const y of h.children.values())u(y)};u(d),r(t)},[d]);const b=x.useCallback(t=>{r(u=>{const h=new Set(u);return h.has(t)?h.delete(t):h.add(t),h})},[]);return e.jsxs(f,{gap:0,h:"100%",children:[e.jsx(c,{p:"sm",style:{borderBottom:`1px solid ${j.colors.border}`},children:e.jsx(O,{placeholder:"Search topics...",leftSection:e.jsx(B,{size:14}),size:"xs",value:a,onChange:t=>l(t.target.value)})}),e.jsx(z,{style:{flex:1},children:Array.from(d.children.values()).sort((t,u)=>t.name.localeCompare(u.name)).map(t=>e.jsx(E,{node:t,depth:0,selectedTopic:o,onSelectTopic:p,expandedNodes:n,onToggleExpand:b},t.fullPath))})]})},ee=({topic:s})=>e.jsx(z,{h:"100%",p:"md",children:e.jsxs(f,{gap:"lg",children:[e.jsxs(c,{children:[e.jsx(i,{size:"sm",fw:600,mb:"xs",children:"Topic Info"}),e.jsxs(f,{gap:"xs",children:[e.jsxs(m,{gap:"sm",children:[e.jsx(i,{size:"sm",c:"dimmed",w:100,children:"Name"}),e.jsx(i,{size:"sm",ff:"monospace",children:s.name})]}),e.jsxs(m,{gap:"sm",children:[e.jsx(i,{size:"sm",c:"dimmed",w:100,children:"Provider"}),e.jsx(T,{size:"xs",variant:"light",color:s.provider==="redis"?"red":"green",children:s.provider})]}),s.description&&e.jsxs(m,{gap:"sm",children:[e.jsx(i,{size:"sm",c:"dimmed",w:100,children:"Description"}),e.jsx(i,{size:"sm",children:s.description})]})]})]}),s.schema&&e.jsxs(c,{children:[e.jsx(i,{size:"sm",fw:600,mb:"xs",children:"Message Schema"}),e.jsx(c,{p:"sm",style:{border:`1px solid ${j.colors.border}`,borderRadius:8,backgroundColor:j.colors.surface},children:e.jsx(w,{data:s.schema,maxDepth:5,size:"xs"})})]})]})}),se=({topic:s})=>{const[o,p]=x.useState([]),[a,l]=x.useState(!1),n=x.useCallback(()=>{const r=s.schema?{example:"data",topic:s.name,timestamp:new Date().toISOString()}:{message:`Hello from ${s.name}`};p(d=>[{id:Math.random().toString(36).slice(2),timestamp:new Date,payload:r},...d.slice(0,49)])},[s]);return e.jsxs(m,{direction:"column",h:"100%",children:[e.jsx(c,{p:"sm",style:{borderBottom:`1px solid ${j.colors.border}`},children:e.jsxs(m,{gap:"sm",align:"center",justify:"space-between",children:[e.jsxs(m,{gap:"sm",align:"center",children:[e.jsx(v,{label:a?"Stop listening (coming soon)":"Start listening (coming soon)",children:e.jsx($,{size:"xs",variant:"light",color:a?"red":"green",leftSection:e.jsx(H,{size:14}),onClick:()=>l(!a),disabled:!0,children:a?"Stop":"Listen"})}),e.jsxs(i,{size:"xs",c:"dimmed",children:[o.length," messages"]})]}),e.jsxs(m,{gap:"sm",children:[e.jsx(v,{label:"Add fake message (for demo)",children:e.jsx(I,{size:"sm",variant:"light",onClick:n,children:e.jsx(L,{size:14})})}),e.jsx(v,{label:"Clear messages",children:e.jsx(I,{size:"sm",variant:"light",color:"gray",onClick:()=>p([]),children:e.jsx(V,{size:14})})})]})]})}),o.length===0?e.jsx(m,{align:"center",justify:"center",style:{flex:1},c:"dimmed",children:e.jsxs(f,{align:"center",gap:"xs",children:[e.jsx(S,{size:48,opacity:.3}),e.jsx(i,{size:"sm",children:"No messages yet"}),e.jsx(i,{size:"xs",c:"dimmed",children:"Click the send icon to add a fake message for demo"})]})}):e.jsx(z,{style:{flex:1},children:e.jsx(f,{gap:0,children:o.map(r=>e.jsxs(c,{p:"sm",style:{borderBottom:`1px solid ${j.colors.border}`},children:[e.jsxs(m,{align:"center",gap:"xs",mb:"xs",children:[e.jsx(K,{size:12,opacity:.5}),e.jsx(i,{size:"xs",c:"dimmed",children:r.timestamp.toLocaleTimeString()})]}),e.jsx(c,{p:"xs",style:{backgroundColor:j.colors.surface,borderRadius:4},children:e.jsx(w,{data:r.payload,maxDepth:3,size:"xs"})})]},r.id))})})]})},re=({topic:s})=>{const[o,p]=x.useState(JSON.stringify({message:"Hello",timestamp:new Date().toISOString()},null,2)),[a,l]=x.useState(null),n=()=>{try{JSON.parse(o),l(null),alert(`Message would be published to "${s.name}" (coming soon)`)}catch{l("Invalid JSON")}};return e.jsx(z,{h:"100%",p:"md",children:e.jsxs(f,{gap:"md",children:[e.jsxs(c,{children:[e.jsx(i,{size:"sm",fw:600,mb:"xs",children:"Publish Message"}),e.jsx(i,{size:"xs",c:"dimmed",mb:"sm",children:"Send a test message to this topic (coming soon)"})]}),e.jsxs(c,{children:[e.jsx(i,{size:"sm",c:"dimmed",mb:"xs",children:"Payload (JSON)"}),e.jsx(q,{value:o,onChange:r=>p(r.target.value),minRows:8,maxRows:15,autosize:!0,ff:"monospace",size:"xs",error:a,styles:{input:{backgroundColor:j.colors.surface}}})]}),e.jsx(v,{label:"Publish message (coming soon)",children:e.jsx($,{size:"sm",variant:"light",leftSection:e.jsx(L,{size:16}),onClick:n,disabled:!0,children:"Publish"})}),s.schema&&e.jsxs(c,{children:[e.jsx(i,{size:"sm",c:"dimmed",mb:"xs",children:"Expected Schema"}),e.jsx(c,{p:"sm",style:{border:`1px solid ${j.colors.border}`,borderRadius:8,backgroundColor:j.colors.surface},children:e.jsx(w,{data:s.schema,maxDepth:3,size:"xs"})})]})]})})},ie=({topic:s})=>{const o=N(s.provider);return e.jsxs(m,{direction:"column",h:"100%",children:[e.jsxs(c,{px:"md",py:"sm",style:{borderBottom:`1px solid ${j.colors.border}`,backgroundColor:`${o}08`},children:[e.jsxs(m,{align:"center",gap:"sm",children:[e.jsx(S,{size:18,opacity:.7}),e.jsx(i,{size:"md",fw:600,ff:"monospace",children:s.name}),e.jsx(T,{size:"xs",variant:"light",color:s.provider==="redis"?"red":"green",children:s.provider})]}),s.description&&e.jsx(i,{size:"xs",c:"dimmed",mt:4,children:s.description})]}),e.jsxs(g,{defaultValue:"schema",style:{flex:1,display:"flex",flexDirection:"column"},children:[e.jsxs(g.List,{px:"md",children:[e.jsx(g.Tab,{value:"schema",children:"Schema"}),e.jsx(g.Tab,{value:"messages",children:"Messages"}),e.jsx(g.Tab,{value:"publish",children:"Publish"})]}),e.jsx(g.Panel,{value:"schema",style:{flex:1,overflow:"hidden"},children:e.jsx(ee,{topic:s})}),e.jsx(g.Panel,{value:"messages",style:{flex:1,overflow:"hidden"},children:e.jsx(se,{topic:s})}),e.jsx(g.Panel,{value:"publish",style:{flex:1,overflow:"hidden"},children:e.jsx(re,{topic:s})})]})]})},oe=()=>e.jsx(m,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(f,{align:"center",gap:"xs",children:[e.jsx(S,{size:48,opacity:.3}),e.jsx(i,{size:"sm",children:"Select a topic to view details"})]})}),te=()=>e.jsx(m,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(f,{align:"center",gap:"xs",children:[e.jsx(J,{size:48,opacity:.3}),e.jsx(i,{children:"No topics found"}),e.jsx(i,{size:"sm",c:"dimmed",children:"Add topics using $topic primitive to see them here"})]})}),fe=()=>{const s=R(D),[o,p]=x.useState([]),[a,l]=x.useState(!0),[n,r]=x.useState(null),[d,b]=x.useState("");x.useEffect(()=>{s.fetch("/devtools/api/metadata",{schema:{response:A}}).then(u=>{p(u.data.topics),l(!1)})},[]);const t=x.useMemo(()=>{if(!d)return o;const u=d.toLowerCase();return o.filter(h=>h.name.toLowerCase().includes(u))},[o,d]);return a?e.jsx(m,{align:"center",justify:"center",h:"100%",children:e.jsx(i,{c:"dimmed",children:"Loading..."})}):o.length===0?e.jsx(te,{}):e.jsxs(m,{h:"100%",style:{overflow:"hidden"},children:[e.jsx(c,{w:280,style:{borderRight:`1px solid ${j.colors.border}`,backgroundColor:j.colors.surface},children:e.jsx(Z,{topics:t,selectedTopic:n,onSelectTopic:r,search:d,onSearchChange:b})}),e.jsx(c,{style:{flex:1,overflow:"hidden"},children:n?e.jsx(ie,{topic:n}):e.jsx(oe,{})})]})};export{fe as DevTopicsViewer,fe as default};
@@ -1 +1 @@
1
- import{r as i}from"./entry.DhzNl8q_.js";const f=["mousedown","touchstart"];function g(e,a,s){const r=i.useRef(null),n=a||f;return i.useEffect(()=>{const u=t=>{const{target:o}=t??{};if(Array.isArray(s)){const d=!document.body.contains(o)&&o?.tagName!=="HTML";s.every(c=>!!c&&!t.composedPath().includes(c))&&!d&&e(t)}else r.current&&!r.current.contains(o)&&e(t)};return n.forEach(t=>document.addEventListener(t,u)),()=>{n.forEach(t=>document.removeEventListener(t,u))}},[r,e,s]),r}export{g as u};
1
+ import{r as i}from"./entry.Cry3rxEI.js";const f=["mousedown","touchstart"];function g(e,a,s){const r=i.useRef(null),n=a||f;return i.useEffect(()=>{const u=t=>{const{target:o}=t??{};if(Array.isArray(s)){const d=!document.body.contains(o)&&o?.tagName!=="HTML";s.every(c=>!!c&&!t.composedPath().includes(c))&&!d&&e(t)}else r.current&&!r.current.contains(o)&&e(t)};return n.forEach(t=>document.addEventListener(t,u)),()=>{n.forEach(t=>document.removeEventListener(t,u))}},[r,e,s]),r}export{g as u};
@@ -1 +1 @@
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,a2 as ae,q as ie,an as ue,aL as le,v as ce,w as de,x as fe}from"./entry.DhzNl8q_.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
+ 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,a2 as ae,q as ie,an as ue,aL as le,v as ce,w as de,x as fe}from"./entry.Cry3rxEI.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 +1 @@
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,ba as Xe,be as Ye,e as qe,bj as Q,a2 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,x as dr,v as ur,w as fr}from"./entry.DhzNl8q_.js";import{n as pr}from"./chunk.BjFrJKj1.js";import{u as wr}from"./chunk.C63rzhbT.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
+ 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,ba as Xe,be as Ye,e as qe,bj as Q,a2 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,x as dr,v as ur,w as fr}from"./entry.Cry3rxEI.js";import{n as pr}from"./chunk.BjFrJKj1.js";import{u as wr}from"./chunk.DdyBCs50.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 +1 @@
1
- import{at as t}from"./entry.DhzNl8q_.js";const e=t.object({name:t.text(),group:t.text(),method:t.text(),path:t.text(),prefix:t.text(),fullPath:t.text(),description:t.optional(t.text()),summary:t.optional(t.text()),disabled:t.optional(t.boolean()),secure:t.optional(t.boolean()),hide:t.optional(t.boolean()),body:t.optional(t.any()),params:t.optional(t.any()),query:t.optional(t.any()),response:t.optional(t.any()),bodyContentType:t.optional(t.text())}),a=t.object({name:t.text(),description:t.optional(t.text()),schema:t.any(),defaultValue:t.optional(t.any()),currentValue:t.optional(t.any())}),o=t.object({name:t.text(),description:t.optional(t.text()),mimeTypes:t.optional(t.array(t.text())),maxSize:t.optional(t.number()),provider:t.text()}),n=t.object({name:t.text(),ttl:t.optional(t.any()),disabled:t.optional(t.boolean()),provider:t.text()}),r=t.object({name:t.text(),description:t.optional(t.text()),hidden:t.optional(t.boolean())}),i=t.object({name:t.text(),type:t.text(),nullable:t.boolean(),primaryKey:t.boolean(),identity:t.boolean(),createdAt:t.boolean(),updatedAt:t.boolean(),deletedAt:t.boolean(),version:t.boolean(),hasDefault:t.boolean(),ref:t.optional(t.object({entity:t.text(),column:t.text(),onUpdate:t.optional(t.text()),onDelete:t.optional(t.text())}))}),l=t.object({name:t.optional(t.text()),columns:t.array(t.text()),unique:t.boolean()}),c=t.object({name:t.optional(t.text()),columns:t.array(t.text()),foreignEntity:t.text(),foreignColumns:t.array(t.text())}),s=t.object({name:t.optional(t.text()),columns:t.array(t.text()),unique:t.boolean(),hasCheck:t.boolean()}),p=t.object({name:t.text(),provider:t.text(),columns:t.array(i),indexes:t.array(l),foreignKeys:t.array(c),constraints:t.array(s)}),d=t.object({propertyKey:t.text(),schema:t.any(),values:t.record(t.text(),t.any()),serviceName:t.optional(t.text())}),m=t.object({name:t.text(),providers:t.array(t.text())}),y=t.object({name:t.text(),description:t.optional(t.text()),path:t.optional(t.text()),params:t.optional(t.any()),query:t.optional(t.any()),hasComponent:t.boolean(),hasLazy:t.boolean(),hasResolve:t.boolean(),hasChildren:t.boolean(),hasParent:t.boolean(),hasErrorHandler:t.boolean(),static:t.optional(t.boolean()),cache:t.optional(t.any()),client:t.optional(t.any()),animation:t.optional(t.any())}),x=t.object({name:t.text(),module:t.optional(t.text()),dependencies:t.array(t.text()),aliases:t.optional(t.array(t.text()))}),b=t.object({name:t.text(),description:t.optional(t.text()),schema:t.optional(t.any()),provider:t.text()}),h=t.object({name:t.text(),description:t.optional(t.text()),roles:t.optional(t.array(t.any())),type:t.enum(["internal","external"]),settings:t.optional(t.object({accessTokenExpiration:t.optional(t.any()),refreshTokenExpiration:t.optional(t.any()),hasOnCreateSession:t.boolean(),hasOnRefreshSession:t.boolean(),hasOnDeleteSession:t.boolean()}))}),u=t.object({method:t.text(),path:t.text()}),v=t.object({name:t.text(),description:t.optional(t.text()),cron:t.optional(t.text()),interval:t.optional(t.any()),lock:t.optional(t.boolean())}),S=t.object({name:t.text(),description:t.optional(t.text()),schema:t.optional(t.any()),provider:t.text()}),M=t.object({actions:t.array(e),queues:t.array(b),schedulers:t.array(v),topics:t.array(S),buckets:t.array(o),realms:t.array(h),caches:t.array(n),pages:t.array(y),providers:t.array(x),modules:t.array(m),entities:t.array(p),commands:t.array(r),routes:t.array(u),envs:t.array(d),atoms:t.array(a)});export{M as d};
1
+ import{at as t}from"./entry.Cry3rxEI.js";const e=t.object({name:t.text(),group:t.text(),method:t.text(),path:t.text(),prefix:t.text(),fullPath:t.text(),description:t.optional(t.text()),summary:t.optional(t.text()),disabled:t.optional(t.boolean()),secure:t.optional(t.boolean()),hide:t.optional(t.boolean()),body:t.optional(t.any()),params:t.optional(t.any()),query:t.optional(t.any()),response:t.optional(t.any()),bodyContentType:t.optional(t.text())}),a=t.object({name:t.text(),description:t.optional(t.text()),schema:t.any(),defaultValue:t.optional(t.any()),currentValue:t.optional(t.any())}),o=t.object({name:t.text(),description:t.optional(t.text()),mimeTypes:t.optional(t.array(t.text())),maxSize:t.optional(t.number()),provider:t.text()}),n=t.object({name:t.text(),ttl:t.optional(t.any()),disabled:t.optional(t.boolean()),provider:t.text()}),r=t.object({name:t.text(),description:t.optional(t.text()),hidden:t.optional(t.boolean())}),i=t.object({name:t.text(),type:t.text(),nullable:t.boolean(),primaryKey:t.boolean(),identity:t.boolean(),createdAt:t.boolean(),updatedAt:t.boolean(),deletedAt:t.boolean(),version:t.boolean(),hasDefault:t.boolean(),ref:t.optional(t.object({entity:t.text(),column:t.text(),onUpdate:t.optional(t.text()),onDelete:t.optional(t.text())}))}),l=t.object({name:t.optional(t.text()),columns:t.array(t.text()),unique:t.boolean()}),c=t.object({name:t.optional(t.text()),columns:t.array(t.text()),foreignEntity:t.text(),foreignColumns:t.array(t.text())}),s=t.object({name:t.optional(t.text()),columns:t.array(t.text()),unique:t.boolean(),hasCheck:t.boolean()}),p=t.object({name:t.text(),provider:t.text(),columns:t.array(i),indexes:t.array(l),foreignKeys:t.array(c),constraints:t.array(s)}),d=t.object({propertyKey:t.text(),schema:t.any(),values:t.record(t.text(),t.any()),serviceName:t.optional(t.text())}),m=t.object({name:t.text(),providers:t.array(t.text())}),y=t.object({name:t.text(),description:t.optional(t.text()),path:t.optional(t.text()),params:t.optional(t.any()),query:t.optional(t.any()),hasComponent:t.boolean(),hasLazy:t.boolean(),hasResolve:t.boolean(),hasChildren:t.boolean(),hasParent:t.boolean(),hasErrorHandler:t.boolean(),static:t.optional(t.boolean()),cache:t.optional(t.any()),client:t.optional(t.any()),animation:t.optional(t.any())}),x=t.object({name:t.text(),module:t.optional(t.text()),dependencies:t.array(t.text()),aliases:t.optional(t.array(t.text()))}),b=t.object({name:t.text(),description:t.optional(t.text()),schema:t.optional(t.any()),provider:t.text()}),h=t.object({name:t.text(),description:t.optional(t.text()),roles:t.optional(t.array(t.any())),type:t.enum(["internal","external"]),settings:t.optional(t.object({accessTokenExpiration:t.optional(t.any()),refreshTokenExpiration:t.optional(t.any()),hasOnCreateSession:t.boolean(),hasOnRefreshSession:t.boolean(),hasOnDeleteSession:t.boolean()}))}),u=t.object({method:t.text(),path:t.text()}),v=t.object({name:t.text(),description:t.optional(t.text()),cron:t.optional(t.text()),interval:t.optional(t.any()),lock:t.optional(t.boolean())}),S=t.object({name:t.text(),description:t.optional(t.text()),schema:t.optional(t.any()),provider:t.text()}),M=t.object({actions:t.array(e),queues:t.array(b),schedulers:t.array(v),topics:t.array(S),buckets:t.array(o),realms:t.array(h),caches:t.array(n),pages:t.array(y),providers:t.array(x),modules:t.array(m),entities:t.array(p),commands:t.array(r),routes:t.array(u),envs:t.array(d),atoms:t.array(a)});export{M as d};
@@ -1 +1 @@
1
- import{y as a}from"./entry.DhzNl8q_.js";const o=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]],e=a("outline","clock","Clock",o);const t=[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]],c=a("outline","trash","Trash",t);export{c as I,e as a};
1
+ import{y as a}from"./entry.Cry3rxEI.js";const o=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]],e=a("outline","clock","Clock",o);const t=[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]],c=a("outline","trash","Trash",t);export{c as I,e as a};
@@ -1 +1 @@
1
- import{u as Ue,r as f,a as Pe,M as Ye,b as Ge,c as Ze,f as P,d as z,j as r,B as I,e as se,R as ne,g,k as B,h as Je,i as we,l as Me,m as et,I as tt,p as ye,n as st,o as H,q as nt,s as ot,t as D,U as rt,v as oe,w as at,x as it,y as T,z as O,A as re,C as ae,D as ke,E as Ce,F as m,T as ie,G as lt,H as U,J as Re,K as ct,L as dt,N as F,O as Ie,P as ut,Q as ht,S as pt,V as ft,W as mt,X as bt,Y as gt,Z as vt,_ as xt,$ as jt}from"./entry.DhzNl8q_.js";import{g as Ee,a as Ne,A as S,u as wt,b as kt}from"./chunk.A_W3H6Aa.js";import{n as Ct}from"./chunk.BjFrJKj1.js";import{D as It}from"./chunk.BUs1kuwE.js";import"./chunk.DfzRLqwW.js";import"./chunk.BlqFPyLh.js";import"./chunk.HFLdduaf.js";import"./chunk.C63rzhbT.js";function Nt(e,t){return Ue("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}function ze(e){return/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i.test(e)}function zt(e){return/(iPhone)|(iPad)|(iPod)/i.test(e)}function At(e){return/(Win32)|(Win64)|(Windows)|(WinCE)/i.test(e)}function St(e){return/Android/i.test(e)}function Pt(e){return/Linux/i.test(e)}function yt(e){return/CrOS/i.test(e)}function Ae(){if(typeof window>"u")return"undetermined";const{userAgent:e}=window.navigator;return zt(e)||ze(e)&&"ontouchend"in document?"ios":ze(e)?"macos":At(e)?"windows":St(e)?"android":Pt(e)?"linux":yt(e)?"chromeos":"undetermined"}function Rt(e={getValueInEffect:!0}){const[t,n]=f.useState(e.getValueInEffect?"undetermined":Ae());return Pe(()=>{e.getValueInEffect&&n(Ae)},[]),t}function Se(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 Et({keepTransitions:e}={}){const t=f.useRef(Ct),n=f.useRef(-1),o=f.useContext(Ye),d=Ge(),l=f.useRef(d?.());if(!o)throw new Error("[@mantine/core] MantineProvider was not found in tree");const i=u=>{o.setColorScheme(u),t.current=e?()=>{}:Se(l.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},c=()=>{o.clearColorScheme(),t.current=e?()=>{}:Se(l.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},h=Nt("light",{getInitialValueInEffect:!1}),s=o.colorScheme==="auto"?h:o.colorScheme,a=f.useCallback(()=>i(s==="light"?"dark":"light"),[i,s]);return f.useEffect(()=>()=>{t.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:o.colorScheme,setColorScheme:i,clearColorScheme:c,toggleColorScheme:a}}const[_t,W]=Ze("AppShell was not found in tree");var E={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const le=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,unstyled:i,vars:c,withBorder:h,zIndex:s,mod:a,...u}=z("AppShellAside",null,e),p=W();return p.disabled?null:r.jsx(I,{component:"aside",ref:t,mod:[{"with-border":h??p.withBorder},a],...p.getStyles("aside",{className:se({[ne.classNames.zeroRight]:p.offsetScrollbars},o),classNames:n,styles:l,style:d}),...u,__vars:{"--app-shell-aside-z-index":`calc(${s??p.zIndex} + 1)`}})});le.classes=E;le.displayName="@mantine/core/AppShellAside";const ce=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,unstyled:i,vars:c,withBorder:h,zIndex:s,mod:a,...u}=z("AppShellFooter",null,e),p=W();return p.disabled?null:r.jsx(I,{component:"footer",ref:t,mod:[{"with-border":h??p.withBorder},a],...p.getStyles("footer",{className:se({[ne.classNames.zeroRight]:p.offsetScrollbars},o),classNames:n,styles:l,style:d}),...u,__vars:{"--app-shell-footer-z-index":(s??p.zIndex)?.toString()}})});ce.classes=E;ce.displayName="@mantine/core/AppShellFooter";const de=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,unstyled:i,vars:c,withBorder:h,zIndex:s,mod:a,...u}=z("AppShellHeader",null,e),p=W();return p.disabled?null:r.jsx(I,{component:"header",ref:t,mod:[{"with-border":h??p.withBorder},a],...p.getStyles("header",{className:se({[ne.classNames.zeroRight]:p.offsetScrollbars},o),classNames:n,styles:l,style:d}),...u,__vars:{"--app-shell-header-z-index":(s??p.zIndex)?.toString()}})});de.classes=E;de.displayName="@mantine/core/AppShellHeader";const ue=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,vars:i,...c}=z("AppShellMain",null,e),h=W();return r.jsx(I,{component:"main",ref:t,...h.getStyles("main",{className:o,style:d,classNames:n,styles:l}),...c})});ue.classes=E;ue.displayName="@mantine/core/AppShellMain";function X(e){return typeof e=="object"?e.base:e}function q(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 K(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function Bt({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:o,theme:d,mode:l}){const i=o?.width,c="translateX(var(--app-shell-aside-width))",h="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")),q(i)){const s=g(X(i));e["--app-shell-aside-width"]=s,e["--app-shell-aside-offset"]=s}if(K(i)&&(typeof i.base<"u"&&(e["--app-shell-aside-width"]=g(i.base),e["--app-shell-aside-offset"]=g(i.base)),B(i).forEach(s=>{s!=="base"&&(t[s]=t[s]||{},t[s]["--app-shell-aside-width"]=g(i[s]),t[s]["--app-shell-aside-offset"]=g(i[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"]=c,t[s]["--app-shell-aside-transform-rtl"]=h,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=Ee(o.breakpoint,d.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"]=c,n[s]["--app-shell-aside-transform-rtl"]=h,n[s]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function Tt({baseStyles:e,minMediaStyles:t,footer:n,mode:o}){const d=n?.height,l="translateY(var(--app-shell-footer-height))",i=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"),q(d)){const c=g(X(d));e["--app-shell-footer-height"]=c,i&&(e["--app-shell-footer-offset"]=c)}K(d)&&(typeof d.base<"u"&&(e["--app-shell-footer-height"]=g(d.base),i&&(e["--app-shell-footer-offset"]=g(d.base))),B(d).forEach(c=>{c!=="base"&&(t[c]=t[c]||{},t[c]["--app-shell-footer-height"]=g(d[c]),i&&(t[c]["--app-shell-footer-offset"]=g(d[c])))})),n?.collapsed&&(e["--app-shell-footer-transform"]=l,o==="fixed"&&(e["--app-shell-footer-offset"]="0px !important"))}function Lt({baseStyles:e,minMediaStyles:t,header:n,mode:o}){const d=n?.height,l="translateY(calc(var(--app-shell-header-height) * -1))",i=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"),q(d)){const c=g(X(d));e["--app-shell-header-height"]=c,i&&(e["--app-shell-header-offset"]=c)}K(d)&&(typeof d.base<"u"&&(e["--app-shell-header-height"]=g(d.base),i&&(e["--app-shell-header-offset"]=g(d.base))),B(d).forEach(c=>{c!=="base"&&(t[c]=t[c]||{},t[c]["--app-shell-header-height"]=g(d[c]),i&&(t[c]["--app-shell-header-offset"]=g(d[c])))})),n?.collapsed&&(e["--app-shell-header-transform"]=l,o==="fixed"&&(e["--app-shell-header-offset"]="0px !important"))}function Wt({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:o,theme:d,mode:l}){const i=o?.width,c="translateX(calc(var(--app-shell-navbar-width) * -1))",h="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")),q(i)){const s=g(X(i));e["--app-shell-navbar-width"]=s,e["--app-shell-navbar-offset"]=s,l==="static"&&(e["--app-shell-navbar-grid-width"]=s)}if(K(i)&&(typeof i.base<"u"&&(e["--app-shell-navbar-width"]=g(i.base),e["--app-shell-navbar-offset"]=g(i.base),l==="static"&&(e["--app-shell-navbar-grid-width"]=g(i.base))),B(i).forEach(s=>{s!=="base"&&(t[s]=t[s]||{},t[s]["--app-shell-navbar-width"]=g(i[s]),t[s]["--app-shell-navbar-offset"]=g(i[s]),l==="static"&&(t[s]["--app-shell-navbar-grid-width"]=g(i[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"]=c,t[s]["--app-shell-navbar-transform-rtl"]=h,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=Ee(o.breakpoint,d.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"]=c,n[s]["--app-shell-navbar-transform-rtl"]=h}}function te(e){return Number(e)===0?"0px":Je(e)}function Vt({padding:e,baseStyles:t,minMediaStyles:n}){q(e)&&(t["--app-shell-padding"]=te(X(e))),K(e)&&(e.base&&(t["--app-shell-padding"]=te(e.base)),B(e).forEach(o=>{o!=="base"&&(n[o]=n[o]||{},n[o]["--app-shell-padding"]=te(e[o]))}))}function $t({navbar:e,header:t,footer:n,aside:o,padding:d,theme:l,mode:i}){const c={},h={},s={};i==="static"&&(s["--app-shell-main-grid-column"]="1 / -1",s["--app-shell-main-grid-row"]="2"),Wt({baseStyles:s,minMediaStyles:c,maxMediaStyles:h,navbar:e,theme:l,mode:i}),Bt({baseStyles:s,minMediaStyles:c,maxMediaStyles:h,aside:o,theme:l,mode:i}),Lt({baseStyles:s,minMediaStyles:c,header:t,mode:i}),Tt({baseStyles:s,minMediaStyles:c,footer:n,mode:i}),Vt({baseStyles:s,minMediaStyles:c,padding:d});const a=Ne(B(c),l.breakpoints).map(b=>({query:`(min-width: ${we(b.px)})`,styles:c[b.value]})),u=Ne(B(h),l.breakpoints).map(b=>({query:`(max-width: ${we(b.px)})`,styles:h[b.value]})),p=[...a,...u];return{baseStyles:s,media:p}}function Ft({navbar:e,header:t,aside:n,footer:o,padding:d,mode:l,selector:i}){const c=Me(),h=et(),{media:s,baseStyles:a}=$t({navbar:e,header:t,footer:o,aside:n,padding:d,theme:c,mode:l});return r.jsx(tt,{media:s,styles:a,selector:i||h.cssVariablesSelector})}const he=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,unstyled:i,vars:c,withBorder:h,zIndex:s,mod:a,...u}=z("AppShellNavbar",null,e),p=W();return p.disabled?null:r.jsx(I,{component:"nav",ref:t,mod:[{"with-border":h??p.withBorder},a],...p.getStyles("navbar",{className:o,classNames:n,styles:l,style:d}),...u,__vars:{"--app-shell-navbar-z-index":`calc(${s??p.zIndex} + 1)`}})});he.classes=E;he.displayName="@mantine/core/AppShellNavbar";const pe=ye((e,t)=>{const{classNames:n,className:o,style:d,styles:l,vars:i,grow:c,mod:h,...s}=z("AppShellSection",null,e),a=W();return r.jsx(I,{ref:t,mod:[{grow:c},h],...a.getStyles("section",{className:o,style:d,classNames:n,styles:l}),...s})});pe.classes=E;pe.displayName="@mantine/core/AppShellSection";function Ht({transitionDuration:e,disabled:t}){const[n,o]=f.useState(!0),d=f.useRef(-1),l=f.useRef(-1);return st("resize",()=>{o(!0),clearTimeout(d.current),d.current=window.setTimeout(()=>f.startTransition(()=>{o(!1)}),200)}),Pe(()=>{o(!0),clearTimeout(l.current),l.current=window.setTimeout(()=>f.startTransition(()=>{o(!1)}),e||0)},[t,e]),n}const Dt={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:ot("app"),mode:"fixed"},Ot=D((e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n}})),C=P((e,t)=>{const n=z("AppShell",Dt,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,navbar:s,withBorder:a,padding:u,transitionDuration:p,transitionTimingFunction:b,header:v,zIndex:x,layout:k,disabled:w,aside:N,footer:j,offsetScrollbars:y=!0,mode:R,mod:Q,attributes:G,id:Z,...J}=n,V=H({name:"AppShell",classes:E,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:G,vars:h,varsResolver:Ot}),L=Ht({disabled:w,transitionDuration:p}),$=nt(Z);return r.jsxs(_t,{value:{getStyles:V,withBorder:a,zIndex:x,disabled:w,offsetScrollbars:y,mode:R},children:[r.jsx(Ft,{navbar:s,header:v,aside:N,footer:j,padding:u,mode:R,selector:R==="static"?`#${$}`:void 0}),r.jsx(I,{ref:t,...V("root"),mod:[{resizing:L,layout:k,disabled:w,mode:R},Q],id:$,...J})]})});C.classes=E;C.displayName="@mantine/core/AppShell";C.Navbar=he;C.Header=de;C.Main=ue;C.Aside=le;C.Footer=ce;C.Section=pe;var _e={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const Xt=D((e,{color:t,size:n,lineSize:o,transitionDuration:d,transitionTimingFunction:l})=>({root:{"--burger-color":t?at(t,e):void 0,"--burger-size":oe(n,"burger-size"),"--burger-line-size":o?g(o):void 0,"--burger-transition-duration":d===void 0?void 0:`${d}ms`,"--burger-transition-timing-function":l}})),fe=P((e,t)=>{const n=z("Burger",null,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,opened:s,children:a,transitionDuration:u,transitionTimingFunction:p,lineSize:b,attributes:v,...x}=n,k=H({name:"Burger",classes:_e,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:v,vars:h,varsResolver:Xt});return r.jsxs(rt,{...k("root"),ref:t,...x,children:[r.jsx(I,{mod:["reduce-motion",{opened:s}],...k("burger")}),a]})});fe.classes=_e;fe.displayName="@mantine/core/Burger";var Be={root:"m_7485cace"};const qt=D((e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:oe(t,"container-size")}})),Y=P((e,t)=>{const n=z("Container",null,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,fluid:s,mod:a,attributes:u,strategy:p,...b}=n,v=H({name:"Container",classes:Be,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:u,vars:h,varsResolver:qt});return r.jsx(I,{ref:t,mod:[{fluid:s,strategy:p||"block"},a],...v("root"),...b})});Y.classes=Be;Y.displayName="@mantine/core/Container";var Te={root:"m_9e117634"};const Kt=D((e,{radius:t,fit:n})=>({root:{"--image-radius":t===void 0?void 0:it(t),"--image-object-fit":n}})),me=ye((e,t)=>{const n=z("Image",null,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,onError:s,src:a,radius:u,fit:p,fallbackSrc:b,mod:v,attributes:x,...k}=n,[w,N]=f.useState(!a);f.useEffect(()=>N(!a),[a]);const j=H({name:"Image",classes:Te,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:x,vars:h,varsResolver:Kt});return w&&b?r.jsx(I,{component:"img",ref:t,src:b,...j("root"),onError:s,mod:["fallback",v],...k}):r.jsx(I,{component:"img",ref:t,...j("root"),src:a,onError:y=>{s?.(y),N(!0)},mod:v,...k})});me.classes=Te;me.displayName="@mantine/core/Image";var Le={root:"m_dc6f14e2"};const Qt=D((e,{size:t})=>({root:{"--kbd-fz":oe(t,"kbd-fz")}})),be=P((e,t)=>{const n=z("Kbd",null,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,attributes:s,...a}=n,u=H({name:"Kbd",classes:Le,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:s,vars:h,varsResolver:Qt});return r.jsx(I,{component:"kbd",ref:t,...u("root"),...a})});be.classes=Le;be.displayName="@mantine/core/Kbd";const Ut=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]],Yt=T("outline","arrow-left","ArrowLeft",Ut);const Gt=[["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"}]],Zt=T("outline","language","Language",Gt);const Jt=[["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"}]],Mt=T("outline","layout-sidebar-left-collapse","LayoutSidebarLeftCollapse",Jt);const es=[["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"}]],ts=T("outline","layout-sidebar-right-collapse","LayoutSidebarRightCollapse",es);const ss=[["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"}]],ns=T("outline","moon","Moon",ss);const os=[["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"}]],rs=T("outline","square-rounded","SquareRounded",os);const as=[["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"}]],is=T("outline","sun","Sun",as),ls=e=>{const t=O();return f.createElement("a",{...e,...t.anchor(e.href)},e.children)},cs=e=>{const[t,n]=re(ae);return r.jsx(fe,{opened:t.opened,onClick:()=>n({...t,opened:!t.opened}),hiddenFrom:"sm",size:"sm",...e})},We=e=>{const{setColorScheme:t}=Et(),n=()=>{const o=document.documentElement.getAttribute("data-mantine-color-scheme")??"light";t(o==="dark"?"light":"dark")};return r.jsx(S,{onClick:n,variant:e.variant??"subtle",size:e.size??"sm","aria-label":"Toggle color scheme",px:"xs",icon:r.jsxs(r.Fragment,{children:[r.jsx(is,{className:"alepha-light-hidden"}),r.jsx(ns,{className:"alepha-dark-hidden"})]}),...e})},ds=e=>{const t=wt();return r.jsx(S,{variant:"default",icon:Zt,menu:{items:t.languages.map(n=>({label:t.tr(n),onClick:()=>t.setLang(n),active:t.lang===n}))},...e})},ge=e=>{const t=Rt(),o=t==="macos"||t==="ios"?"⌘":"Ctrl";return e.collapsed?r.jsx(S,{variant:"subtle",onClick:ke.open,radius:"md",icon:r.jsx(Ce,{size:16}),tooltip:{label:"Search",position:"right"},...e.actionProps}):r.jsx(S,{variant:"default",onClick:ke.open,justify:"space-between",rightSection:r.jsxs(be,{visibleFrom:"sm",size:"sm",children:[r.jsx(lt,{children:o}),"+K"]}),radius:"md",...e.actionProps,children:r.jsxs(m,{align:"center",gap:"xs",children:[r.jsx(Ce,{size:16,color:"gray"}),r.jsx(m,{visibleFrom:"sm",miw:192,children:r.jsx(ie,{size:"xs",c:"dimmed",children:"Search..."})})]})})},us=e=>{const[t,n]=re(ae);return r.jsx(S,{icon:t.collapsed?r.jsx(ts,{}):r.jsx(Mt,{}),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})},hs=e=>{const{items:t=[]}=e,n=O(),o=(a,u)=>{if(a.can&&!a.can())return null;if("type"in a){if(a.type==="burger")return r.jsx(cs,{},u);if(a.type==="dark")return r.jsx(We,{...a.props},u);if(a.type==="search")return r.jsx(ge,{...a.props},u);if(a.type==="lang")return r.jsx(ds,{...a.props},u);if(a.type==="spacer")return r.jsx(m,{w:16},u);if(a.type==="divider")return r.jsx(It,{orientation:"vertical"},u);if(a.type==="logo")return d(a,u);if(a.type==="back")return l(a,u)}return"element"in a?a.element:null},d=(a,u)=>{const{src:p,text:b,icon:v,href:x,height:k=32,width:w,fontWeight:N=700,fontSize:j="lg"}=a.props??{},y=p?r.jsx(me,{src:p,h:k,w,fit:"contain"}):v?typeof v=="function"?(()=>{const R=v;return r.jsx(R,{})})():v:b?r.jsx(ie,{fw:N,size:j,children:b}):null;return x?r.jsx(kt,{component:ls,href:x,underline:"never",c:"inherit",children:y},u):r.jsx(m,{children:y},u)},l=(a,u)=>{const{label:p="Back",iconOnly:b=!0,href:v,icon:x}=a.props??{},w=(()=>{if(!x)return r.jsx(Yt,{size:18});if(typeof x=="function"){const j=x;return r.jsx(j,{size:18})}return x})(),N=()=>{v?n.push(v):n.back()};return b?r.jsx(S,{icon:w,variant:"subtle",color:"gray",onClick:N,tooltip:{label:p,position:"bottom"}},u):r.jsx(S,{leftSection:w,variant:"subtle",color:"gray",onClick:N,children:p},u)},i=t.filter(a=>a.position==="left"),c=t.filter(a=>a.position==="center"),h=t.filter(a=>a.position==="right"),s=r.jsxs(m,{h:"100%",align:"center",px:e.container?0:"md",justify:"space-between",...e.flexProps,children:[r.jsx(m,{flex:1,children:i.map((a,u)=>r.jsx(m,{ml:u===0?0:"md",align:"center",children:o(a,u)},u))}),r.jsx(m,{children:c.map((a,u)=>r.jsx(m,{mx:"md",align:"center",children:o(a,u)},u))}),r.jsx(m,{flex:1,align:"center",justify:"end",children:h.map((a,u)=>r.jsx(m,{ml:u===0?0:"md",align:"center",children:o(a,u)},u))})]});if(e.container){const a=typeof e.container=="boolean"?{}:e.container;return r.jsx(Y,{h:"100%",...a,children:s})}return s},ps=e=>{const t=O(),{onItemClick:n}=e,o=s=>r.jsx(m,{h:1,bg:"var(--alepha-border)",my:"xs",mx:e.collapsed?0:"sm"},s),d=(s,a)=>{if("type"in s){if(s.type==="spacer")return e.collapsed?null:r.jsx(m,{h:16},a);if(s.type==="divider")return o(a);if(s.type==="search")return r.jsx(m,{mb:"xs",children:r.jsx(ge,{collapsed:e.collapsed})},a);if(s.type==="toggle")return r.jsx(us,{},a);if(s.type==="section")return e.collapsed?o(a):r.jsxs(m,{mt:"md",align:"center",gap:"xs",children:[U(s.icon),r.jsx(ie,{size:"xs",c:"dimmed",tt:"uppercase",fw:"bold",children:s.label})]},a)}return"element"in s?r.jsx(m,{children:s.element},a):s.can&&!s.can()||s.children&&s.children.length>0&&!s.children.some(p=>!p.can||p.can())?null:e.collapsed?r.jsx(fs,{item:s,level:0,onItemClick:n,theme:e.theme??{}},a):r.jsx(Ve,{item:s,level:0,onItemClick:n,theme:e.theme??{}},a)},l=()=>{if(e.items)return e.items;if(e.autoPopulateMenu){const s=t.concretePages.filter(a=>!a.can||a.can()).map(a=>({label:a.label??a.name,icon:U(a.icon),href:t.path(a.name)}));if(typeof e.autoPopulateMenu=="object"&&e.autoPopulateMenu.startsWith){const a=e.autoPopulateMenu.startsWith;return s.filter(u=>u.href?.startsWith(a))}return s}return[]},i="md",c=e.items?e.gap??2:"xs",h=f.useMemo(()=>l(),[e.items,e.autoPopulateMenu]);return r.jsxs(m,{flex:1,py:i,direction:"column",className:"alepha-sidebar-scroll",...e.flexProps,children:[r.jsx(m,{gap:c,px:i,direction:"column",children:h.filter(s=>s.position==="top").map((s,a)=>d(s,a))}),r.jsx(m,{gap:c,px:i,direction:"column",flex:1,className:"alepha-sidebar-scroll",children:h.filter(s=>!s.position).map((s,a)=>d(s,a))}),r.jsx(m,{gap:c,px:i,direction:"column",children:h.filter(s=>s.position==="bottom").map((s,a)=>d(s,a))})]})},Ve=e=>{const{item:t,level:n}=e,o=2,d=O(),l=f.useCallback(s=>{if(!s.children)return!1;for(const a of s.children)if(a.href&&d.isActive(a.href)||l(a))return!0;return!1},[]),[i,c]=f.useState(l(t));if(Re({"react:transition:end":()=>{l(t)&&c(!0)}},[]),n>o)return null;const h=s=>{e.item.target||s.preventDefault(),t.children&&t.children.length>0?c(!i):(e.onItemClick?.(t),t.onClick?.())};return r.jsxs(m,{direction:"column",ps:n===0?0:32,pos:"relative",children:[r.jsx(S,{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"),tooltip:t.description,c:"var(--mantine-color-text)",color:"gray",variant:"subtle",variantActive:"default",radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:h,leftSection:r.jsxs(m,{w:"100%",align:"center",gap:"sm",children:[U(t.icon),r.jsx(m,{direction:"column",children:r.jsx(m,{children:t.label})})]}),rightSection:t.children?r.jsx(m,{children:i?r.jsx(ct,{size:14}):r.jsx(dt,{size:14})}):e.item.rightSection,...e.item.actionProps}),t.children&&i&&r.jsxs(m,{direction:"column","data-parent-level":n,children:[r.jsx(m,{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,a)=>r.jsx(Ve,{item:s,level:n+1,onItemClick:e.onItemClick,theme:e.theme},a))]})]})},fs=e=>{const{item:t,level:n}=e,o=()=>{e.onItemClick?.(t),t.onClick?.()};return r.jsx(S,{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:U(t.icon)??r.jsx(rs,{}),href:e.item.href,target:e.item.target,...e.item.actionProps})},ms=e=>{const t=O(),[n,o]=re(ae),{opened:d,collapsed:l}=n;f.useEffect(()=>{e.sidebarProps?.collapsed!==void 0&&o({...n,collapsed:e.sidebarProps.collapsed})},[]);const[i,c]=f.useState(!1),[h,s]=f.useState(!1),[a,u]=f.useState({offset:0,opacity:1}),p=f.useRef(null),{collapsedWidth:b,collapseThreshold:v,maxWidth:x,hoverDelay:k,defaultWidth:w}=n,N=f.useCallback(A=>{e.sidebarResizable&&(A.preventDefault(),l?(o({...n,collapsed:!1,width:w}),c(!0),p.current={startX:A.clientX,startWidth:w}):(c(!0),p.current={startX:A.clientX,startWidth:n.width}))},[e.sidebarResizable,l,n,o,w]);f.useEffect(()=>{if(!i)return;const A=qe=>{if(!p.current)return;const Ke=qe.clientX-p.current.startX,ee=p.current.startWidth+Ke,Qe=Math.min(Math.max(ee,b),x);if(ee<v){const je=Math.max(0,(v-ee)/v);u({offset:-je*b,opacity:1-je*.7}),o({...n,width:v,collapsed:!1})}else u({offset:0,opacity:1}),o({...n,width:Qe,collapsed:!1})},xe=()=>{a.offset<0&&o({...n,collapsed:!0}),u({offset:0,opacity:1}),c(!1),p.current=null};return document.addEventListener("mousemove",A),document.addEventListener("mouseup",xe),()=>{document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",xe)}},[i,n,o,b,x,v,a.offset]);const j=f.useRef(null),y=f.useCallback(()=>{l&&(j.current=setTimeout(()=>{s(!0)},k))},[l,k]),R=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 Q=()=>{if(e.noSidebarWhen?.paths){for(const A of e.noSidebarWhen.paths)if(t.isActive(A,{startWith:!0}))return!1}return!0},[G,Z]=f.useState(Q());Re({"react:transition:end":()=>{Z(Q())},"react:transition:begin":()=>{o({...n,opened:!1})}},[n]);const J=[{position:"left",type:"burger"}],V={...e.appBarProps};V.container??=e.container;const L=G&&e.sidebarProps!==void 0,$=L||e.appBarProps||e.header,$e=$?60:0,Fe=e.footer?24:0,ve=Math.max(n.width,b),_=l&&h,M=l&&!h,He=f.useCallback(A=>{_&&s(!1),e.sidebarProps?.onItemClick?.(A)},[_,e.sidebarProps?.onItemClick]),De=Math.max(w,b),Oe=L?M||_?b:ve:0,Xe=e.sidebarResizable&&!l;return r.jsxs(C,{w:"100%",flex:1,padding:"md",header:$?{height:60}:void 0,navbar:L?{width:M||_?{base:b}:{base:ve},breakpoint:"sm",collapsed:{mobile:!d}}:void 0,footer:e.footer?{height:24}:void 0,...e.appShellProps,children:[r.jsx(C.Header,{bg:F.colors.surface,...e.appShellHeaderProps,children:e.header??r.jsx(hs,{items:J,...V})}),L&&r.jsxs(C.Navbar,{bg:F.colors.surface,className:"alepha-sidebar-navbar","data-resizing":i,"data-hover-expanded":_,onMouseEnter:y,onMouseLeave:R,style:{transform:a.offset?`translateX(${a.offset}px)`:void 0,opacity:a.opacity,..._&&{width:De,zIndex:200,boxShadow:"var(--mantine-shadow-xl)"}},...e.appShellNavbarProps,children:[r.jsx(ps,{...e.sidebarProps??{},collapsed:M,onItemClick:He}),(Xe||_)&&r.jsx(m,{pos:"absolute",right:-6,top:0,bottom:0,w:12,style:{cursor:"col-resize",userSelect:"none"},onMouseDown:N})]}),r.jsx(C.Main,{pl:Oe,pt:$e,pb:Fe,pr:0,display:"flex",flex:1,style:{flexDirection:"column"},className:"alepha-sidebar-main","data-resizing":i,...e.appShellMainProps,children:e.container?r.jsx(Y,{w:"100%",flex:1,display:"flex",style:{flexDirection:"column"},...typeof e.container=="boolean"?{}:e.container,children:e.children??r.jsx(Ie,{})}):e.children??r.jsx(Ie,{})}),e.footer&&r.jsx(C.Footer,{bg:F.colors.surface,...e.appShellFooterProps,children:e.footer})]})},Is=()=>r.jsx(ms,{appShellHeaderProps:{bg:F.colors.background},appShellNavbarProps:{bg:F.colors.background},sidebarResizable:!0,sidebarProps:{items:[{label:"Dashboard",icon:r.jsx(ut,{}),href:"/"},{type:"divider"},{label:"Actions",icon:r.jsx(ht,{}),href:"/actions"},{label:"Queues",icon:r.jsx(pt,{}),href:"/queues"},{label:"Topics",icon:r.jsx(ft,{}),href:"/topics"},{label:"Caches",icon:r.jsx(mt,{}),href:"/caches"},{label:"DB Studio",icon:r.jsx(bt,{}),href:"/db"},{type:"divider"},{label:"Environment",icon:r.jsx(gt,{}),href:"/env"},{label:"Atoms",icon:r.jsx(vt,{}),href:"/atoms"},{type:"divider"},{label:"Graph",icon:r.jsx(xt,{}),href:"/graph"},{label:"Logs",icon:r.jsx(jt,{}),href:"/logs"}]},appBarProps:{items:[{position:"left",type:"burger"},{position:"left",element:r.jsx(m,{h:"60px",w:"78px",style:{marginLeft:"-32px",borderRight:"1px solid var(--mantine-color-default-border)"}})},{position:"left",element:r.jsx(ge,{actionProps:{variant:"outline",bd:"1px solid var(--mantine-color-default-border)"}})},{position:"right",element:r.jsx(We,{})}]}});export{Is as DevLayout,Is as default};
1
+ import{u as Ue,r as f,a as Pe,M as Ye,b as Ge,c as Ze,f as P,d as z,j as r,B as I,e as se,R as ne,g,k as B,h as Je,i as we,l as Me,m as et,I as tt,p as ye,n as st,o as H,q as nt,s as ot,t as D,U as rt,v as oe,w as at,x as it,y as T,z as O,A as re,C as ae,D as ke,E as Ce,F as m,T as ie,G as lt,H as U,J as Re,K as ct,L as dt,N as F,O as Ie,P as ut,Q as ht,S as pt,V as ft,W as mt,X as bt,Y as gt,Z as vt,_ as xt,$ as jt}from"./entry.Cry3rxEI.js";import{g as Ee,a as Ne,A as S,u as wt,b as kt}from"./chunk.Cyx9kLqD.js";import{n as Ct}from"./chunk.BjFrJKj1.js";import{D as It}from"./chunk.DwUNDm68.js";import"./chunk.C_C-cVqs.js";import"./chunk.BlqFPyLh.js";import"./chunk.CLvTwbkw.js";import"./chunk.DdyBCs50.js";function Nt(e,t){return Ue("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}function ze(e){return/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i.test(e)}function zt(e){return/(iPhone)|(iPad)|(iPod)/i.test(e)}function At(e){return/(Win32)|(Win64)|(Windows)|(WinCE)/i.test(e)}function St(e){return/Android/i.test(e)}function Pt(e){return/Linux/i.test(e)}function yt(e){return/CrOS/i.test(e)}function Ae(){if(typeof window>"u")return"undetermined";const{userAgent:e}=window.navigator;return zt(e)||ze(e)&&"ontouchend"in document?"ios":ze(e)?"macos":At(e)?"windows":St(e)?"android":Pt(e)?"linux":yt(e)?"chromeos":"undetermined"}function Rt(e={getValueInEffect:!0}){const[t,n]=f.useState(e.getValueInEffect?"undetermined":Ae());return Pe(()=>{e.getValueInEffect&&n(Ae)},[]),t}function Se(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 Et({keepTransitions:e}={}){const t=f.useRef(Ct),n=f.useRef(-1),o=f.useContext(Ye),d=Ge(),l=f.useRef(d?.());if(!o)throw new Error("[@mantine/core] MantineProvider was not found in tree");const i=u=>{o.setColorScheme(u),t.current=e?()=>{}:Se(l.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},c=()=>{o.clearColorScheme(),t.current=e?()=>{}:Se(l.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},h=Nt("light",{getInitialValueInEffect:!1}),s=o.colorScheme==="auto"?h:o.colorScheme,a=f.useCallback(()=>i(s==="light"?"dark":"light"),[i,s]);return f.useEffect(()=>()=>{t.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:o.colorScheme,setColorScheme:i,clearColorScheme:c,toggleColorScheme:a}}const[_t,W]=Ze("AppShell was not found in tree");var E={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const le=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,unstyled:i,vars:c,withBorder:h,zIndex:s,mod:a,...u}=z("AppShellAside",null,e),p=W();return p.disabled?null:r.jsx(I,{component:"aside",ref:t,mod:[{"with-border":h??p.withBorder},a],...p.getStyles("aside",{className:se({[ne.classNames.zeroRight]:p.offsetScrollbars},o),classNames:n,styles:l,style:d}),...u,__vars:{"--app-shell-aside-z-index":`calc(${s??p.zIndex} + 1)`}})});le.classes=E;le.displayName="@mantine/core/AppShellAside";const ce=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,unstyled:i,vars:c,withBorder:h,zIndex:s,mod:a,...u}=z("AppShellFooter",null,e),p=W();return p.disabled?null:r.jsx(I,{component:"footer",ref:t,mod:[{"with-border":h??p.withBorder},a],...p.getStyles("footer",{className:se({[ne.classNames.zeroRight]:p.offsetScrollbars},o),classNames:n,styles:l,style:d}),...u,__vars:{"--app-shell-footer-z-index":(s??p.zIndex)?.toString()}})});ce.classes=E;ce.displayName="@mantine/core/AppShellFooter";const de=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,unstyled:i,vars:c,withBorder:h,zIndex:s,mod:a,...u}=z("AppShellHeader",null,e),p=W();return p.disabled?null:r.jsx(I,{component:"header",ref:t,mod:[{"with-border":h??p.withBorder},a],...p.getStyles("header",{className:se({[ne.classNames.zeroRight]:p.offsetScrollbars},o),classNames:n,styles:l,style:d}),...u,__vars:{"--app-shell-header-z-index":(s??p.zIndex)?.toString()}})});de.classes=E;de.displayName="@mantine/core/AppShellHeader";const ue=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,vars:i,...c}=z("AppShellMain",null,e),h=W();return r.jsx(I,{component:"main",ref:t,...h.getStyles("main",{className:o,style:d,classNames:n,styles:l}),...c})});ue.classes=E;ue.displayName="@mantine/core/AppShellMain";function X(e){return typeof e=="object"?e.base:e}function q(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 K(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function Bt({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:o,theme:d,mode:l}){const i=o?.width,c="translateX(var(--app-shell-aside-width))",h="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")),q(i)){const s=g(X(i));e["--app-shell-aside-width"]=s,e["--app-shell-aside-offset"]=s}if(K(i)&&(typeof i.base<"u"&&(e["--app-shell-aside-width"]=g(i.base),e["--app-shell-aside-offset"]=g(i.base)),B(i).forEach(s=>{s!=="base"&&(t[s]=t[s]||{},t[s]["--app-shell-aside-width"]=g(i[s]),t[s]["--app-shell-aside-offset"]=g(i[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"]=c,t[s]["--app-shell-aside-transform-rtl"]=h,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=Ee(o.breakpoint,d.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"]=c,n[s]["--app-shell-aside-transform-rtl"]=h,n[s]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function Tt({baseStyles:e,minMediaStyles:t,footer:n,mode:o}){const d=n?.height,l="translateY(var(--app-shell-footer-height))",i=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"),q(d)){const c=g(X(d));e["--app-shell-footer-height"]=c,i&&(e["--app-shell-footer-offset"]=c)}K(d)&&(typeof d.base<"u"&&(e["--app-shell-footer-height"]=g(d.base),i&&(e["--app-shell-footer-offset"]=g(d.base))),B(d).forEach(c=>{c!=="base"&&(t[c]=t[c]||{},t[c]["--app-shell-footer-height"]=g(d[c]),i&&(t[c]["--app-shell-footer-offset"]=g(d[c])))})),n?.collapsed&&(e["--app-shell-footer-transform"]=l,o==="fixed"&&(e["--app-shell-footer-offset"]="0px !important"))}function Lt({baseStyles:e,minMediaStyles:t,header:n,mode:o}){const d=n?.height,l="translateY(calc(var(--app-shell-header-height) * -1))",i=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"),q(d)){const c=g(X(d));e["--app-shell-header-height"]=c,i&&(e["--app-shell-header-offset"]=c)}K(d)&&(typeof d.base<"u"&&(e["--app-shell-header-height"]=g(d.base),i&&(e["--app-shell-header-offset"]=g(d.base))),B(d).forEach(c=>{c!=="base"&&(t[c]=t[c]||{},t[c]["--app-shell-header-height"]=g(d[c]),i&&(t[c]["--app-shell-header-offset"]=g(d[c])))})),n?.collapsed&&(e["--app-shell-header-transform"]=l,o==="fixed"&&(e["--app-shell-header-offset"]="0px !important"))}function Wt({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:o,theme:d,mode:l}){const i=o?.width,c="translateX(calc(var(--app-shell-navbar-width) * -1))",h="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")),q(i)){const s=g(X(i));e["--app-shell-navbar-width"]=s,e["--app-shell-navbar-offset"]=s,l==="static"&&(e["--app-shell-navbar-grid-width"]=s)}if(K(i)&&(typeof i.base<"u"&&(e["--app-shell-navbar-width"]=g(i.base),e["--app-shell-navbar-offset"]=g(i.base),l==="static"&&(e["--app-shell-navbar-grid-width"]=g(i.base))),B(i).forEach(s=>{s!=="base"&&(t[s]=t[s]||{},t[s]["--app-shell-navbar-width"]=g(i[s]),t[s]["--app-shell-navbar-offset"]=g(i[s]),l==="static"&&(t[s]["--app-shell-navbar-grid-width"]=g(i[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"]=c,t[s]["--app-shell-navbar-transform-rtl"]=h,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=Ee(o.breakpoint,d.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"]=c,n[s]["--app-shell-navbar-transform-rtl"]=h}}function te(e){return Number(e)===0?"0px":Je(e)}function Vt({padding:e,baseStyles:t,minMediaStyles:n}){q(e)&&(t["--app-shell-padding"]=te(X(e))),K(e)&&(e.base&&(t["--app-shell-padding"]=te(e.base)),B(e).forEach(o=>{o!=="base"&&(n[o]=n[o]||{},n[o]["--app-shell-padding"]=te(e[o]))}))}function $t({navbar:e,header:t,footer:n,aside:o,padding:d,theme:l,mode:i}){const c={},h={},s={};i==="static"&&(s["--app-shell-main-grid-column"]="1 / -1",s["--app-shell-main-grid-row"]="2"),Wt({baseStyles:s,minMediaStyles:c,maxMediaStyles:h,navbar:e,theme:l,mode:i}),Bt({baseStyles:s,minMediaStyles:c,maxMediaStyles:h,aside:o,theme:l,mode:i}),Lt({baseStyles:s,minMediaStyles:c,header:t,mode:i}),Tt({baseStyles:s,minMediaStyles:c,footer:n,mode:i}),Vt({baseStyles:s,minMediaStyles:c,padding:d});const a=Ne(B(c),l.breakpoints).map(b=>({query:`(min-width: ${we(b.px)})`,styles:c[b.value]})),u=Ne(B(h),l.breakpoints).map(b=>({query:`(max-width: ${we(b.px)})`,styles:h[b.value]})),p=[...a,...u];return{baseStyles:s,media:p}}function Ft({navbar:e,header:t,aside:n,footer:o,padding:d,mode:l,selector:i}){const c=Me(),h=et(),{media:s,baseStyles:a}=$t({navbar:e,header:t,footer:o,aside:n,padding:d,theme:c,mode:l});return r.jsx(tt,{media:s,styles:a,selector:i||h.cssVariablesSelector})}const he=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,unstyled:i,vars:c,withBorder:h,zIndex:s,mod:a,...u}=z("AppShellNavbar",null,e),p=W();return p.disabled?null:r.jsx(I,{component:"nav",ref:t,mod:[{"with-border":h??p.withBorder},a],...p.getStyles("navbar",{className:o,classNames:n,styles:l,style:d}),...u,__vars:{"--app-shell-navbar-z-index":`calc(${s??p.zIndex} + 1)`}})});he.classes=E;he.displayName="@mantine/core/AppShellNavbar";const pe=ye((e,t)=>{const{classNames:n,className:o,style:d,styles:l,vars:i,grow:c,mod:h,...s}=z("AppShellSection",null,e),a=W();return r.jsx(I,{ref:t,mod:[{grow:c},h],...a.getStyles("section",{className:o,style:d,classNames:n,styles:l}),...s})});pe.classes=E;pe.displayName="@mantine/core/AppShellSection";function Ht({transitionDuration:e,disabled:t}){const[n,o]=f.useState(!0),d=f.useRef(-1),l=f.useRef(-1);return st("resize",()=>{o(!0),clearTimeout(d.current),d.current=window.setTimeout(()=>f.startTransition(()=>{o(!1)}),200)}),Pe(()=>{o(!0),clearTimeout(l.current),l.current=window.setTimeout(()=>f.startTransition(()=>{o(!1)}),e||0)},[t,e]),n}const Dt={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:ot("app"),mode:"fixed"},Ot=D((e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n}})),C=P((e,t)=>{const n=z("AppShell",Dt,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,navbar:s,withBorder:a,padding:u,transitionDuration:p,transitionTimingFunction:b,header:v,zIndex:x,layout:k,disabled:w,aside:N,footer:j,offsetScrollbars:y=!0,mode:R,mod:Q,attributes:G,id:Z,...J}=n,V=H({name:"AppShell",classes:E,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:G,vars:h,varsResolver:Ot}),L=Ht({disabled:w,transitionDuration:p}),$=nt(Z);return r.jsxs(_t,{value:{getStyles:V,withBorder:a,zIndex:x,disabled:w,offsetScrollbars:y,mode:R},children:[r.jsx(Ft,{navbar:s,header:v,aside:N,footer:j,padding:u,mode:R,selector:R==="static"?`#${$}`:void 0}),r.jsx(I,{ref:t,...V("root"),mod:[{resizing:L,layout:k,disabled:w,mode:R},Q],id:$,...J})]})});C.classes=E;C.displayName="@mantine/core/AppShell";C.Navbar=he;C.Header=de;C.Main=ue;C.Aside=le;C.Footer=ce;C.Section=pe;var _e={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const Xt=D((e,{color:t,size:n,lineSize:o,transitionDuration:d,transitionTimingFunction:l})=>({root:{"--burger-color":t?at(t,e):void 0,"--burger-size":oe(n,"burger-size"),"--burger-line-size":o?g(o):void 0,"--burger-transition-duration":d===void 0?void 0:`${d}ms`,"--burger-transition-timing-function":l}})),fe=P((e,t)=>{const n=z("Burger",null,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,opened:s,children:a,transitionDuration:u,transitionTimingFunction:p,lineSize:b,attributes:v,...x}=n,k=H({name:"Burger",classes:_e,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:v,vars:h,varsResolver:Xt});return r.jsxs(rt,{...k("root"),ref:t,...x,children:[r.jsx(I,{mod:["reduce-motion",{opened:s}],...k("burger")}),a]})});fe.classes=_e;fe.displayName="@mantine/core/Burger";var Be={root:"m_7485cace"};const qt=D((e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:oe(t,"container-size")}})),Y=P((e,t)=>{const n=z("Container",null,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,fluid:s,mod:a,attributes:u,strategy:p,...b}=n,v=H({name:"Container",classes:Be,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:u,vars:h,varsResolver:qt});return r.jsx(I,{ref:t,mod:[{fluid:s,strategy:p||"block"},a],...v("root"),...b})});Y.classes=Be;Y.displayName="@mantine/core/Container";var Te={root:"m_9e117634"};const Kt=D((e,{radius:t,fit:n})=>({root:{"--image-radius":t===void 0?void 0:it(t),"--image-object-fit":n}})),me=ye((e,t)=>{const n=z("Image",null,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,onError:s,src:a,radius:u,fit:p,fallbackSrc:b,mod:v,attributes:x,...k}=n,[w,N]=f.useState(!a);f.useEffect(()=>N(!a),[a]);const j=H({name:"Image",classes:Te,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:x,vars:h,varsResolver:Kt});return w&&b?r.jsx(I,{component:"img",ref:t,src:b,...j("root"),onError:s,mod:["fallback",v],...k}):r.jsx(I,{component:"img",ref:t,...j("root"),src:a,onError:y=>{s?.(y),N(!0)},mod:v,...k})});me.classes=Te;me.displayName="@mantine/core/Image";var Le={root:"m_dc6f14e2"};const Qt=D((e,{size:t})=>({root:{"--kbd-fz":oe(t,"kbd-fz")}})),be=P((e,t)=>{const n=z("Kbd",null,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,attributes:s,...a}=n,u=H({name:"Kbd",classes:Le,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:s,vars:h,varsResolver:Qt});return r.jsx(I,{component:"kbd",ref:t,...u("root"),...a})});be.classes=Le;be.displayName="@mantine/core/Kbd";const Ut=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]],Yt=T("outline","arrow-left","ArrowLeft",Ut);const Gt=[["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"}]],Zt=T("outline","language","Language",Gt);const Jt=[["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"}]],Mt=T("outline","layout-sidebar-left-collapse","LayoutSidebarLeftCollapse",Jt);const es=[["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"}]],ts=T("outline","layout-sidebar-right-collapse","LayoutSidebarRightCollapse",es);const ss=[["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"}]],ns=T("outline","moon","Moon",ss);const os=[["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"}]],rs=T("outline","square-rounded","SquareRounded",os);const as=[["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"}]],is=T("outline","sun","Sun",as),ls=e=>{const t=O();return f.createElement("a",{...e,...t.anchor(e.href)},e.children)},cs=e=>{const[t,n]=re(ae);return r.jsx(fe,{opened:t.opened,onClick:()=>n({...t,opened:!t.opened}),hiddenFrom:"sm",size:"sm",...e})},We=e=>{const{setColorScheme:t}=Et(),n=()=>{const o=document.documentElement.getAttribute("data-mantine-color-scheme")??"light";t(o==="dark"?"light":"dark")};return r.jsx(S,{onClick:n,variant:e.variant??"subtle",size:e.size??"sm","aria-label":"Toggle color scheme",px:"xs",icon:r.jsxs(r.Fragment,{children:[r.jsx(is,{className:"alepha-light-hidden"}),r.jsx(ns,{className:"alepha-dark-hidden"})]}),...e})},ds=e=>{const t=wt();return r.jsx(S,{variant:"default",icon:Zt,menu:{items:t.languages.map(n=>({label:t.tr(n),onClick:()=>t.setLang(n),active:t.lang===n}))},...e})},ge=e=>{const t=Rt(),o=t==="macos"||t==="ios"?"⌘":"Ctrl";return e.collapsed?r.jsx(S,{variant:"subtle",onClick:ke.open,radius:"md",icon:r.jsx(Ce,{size:16}),tooltip:{label:"Search",position:"right"},...e.actionProps}):r.jsx(S,{variant:"default",onClick:ke.open,justify:"space-between",rightSection:r.jsxs(be,{visibleFrom:"sm",size:"sm",children:[r.jsx(lt,{children:o}),"+K"]}),radius:"md",...e.actionProps,children:r.jsxs(m,{align:"center",gap:"xs",children:[r.jsx(Ce,{size:16,color:"gray"}),r.jsx(m,{visibleFrom:"sm",miw:192,children:r.jsx(ie,{size:"xs",c:"dimmed",children:"Search..."})})]})})},us=e=>{const[t,n]=re(ae);return r.jsx(S,{icon:t.collapsed?r.jsx(ts,{}):r.jsx(Mt,{}),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})},hs=e=>{const{items:t=[]}=e,n=O(),o=(a,u)=>{if(a.can&&!a.can())return null;if("type"in a){if(a.type==="burger")return r.jsx(cs,{},u);if(a.type==="dark")return r.jsx(We,{...a.props},u);if(a.type==="search")return r.jsx(ge,{...a.props},u);if(a.type==="lang")return r.jsx(ds,{...a.props},u);if(a.type==="spacer")return r.jsx(m,{w:16},u);if(a.type==="divider")return r.jsx(It,{orientation:"vertical"},u);if(a.type==="logo")return d(a,u);if(a.type==="back")return l(a,u)}return"element"in a?a.element:null},d=(a,u)=>{const{src:p,text:b,icon:v,href:x,height:k=32,width:w,fontWeight:N=700,fontSize:j="lg"}=a.props??{},y=p?r.jsx(me,{src:p,h:k,w,fit:"contain"}):v?typeof v=="function"?(()=>{const R=v;return r.jsx(R,{})})():v:b?r.jsx(ie,{fw:N,size:j,children:b}):null;return x?r.jsx(kt,{component:ls,href:x,underline:"never",c:"inherit",children:y},u):r.jsx(m,{children:y},u)},l=(a,u)=>{const{label:p="Back",iconOnly:b=!0,href:v,icon:x}=a.props??{},w=(()=>{if(!x)return r.jsx(Yt,{size:18});if(typeof x=="function"){const j=x;return r.jsx(j,{size:18})}return x})(),N=()=>{v?n.push(v):n.back()};return b?r.jsx(S,{icon:w,variant:"subtle",color:"gray",onClick:N,tooltip:{label:p,position:"bottom"}},u):r.jsx(S,{leftSection:w,variant:"subtle",color:"gray",onClick:N,children:p},u)},i=t.filter(a=>a.position==="left"),c=t.filter(a=>a.position==="center"),h=t.filter(a=>a.position==="right"),s=r.jsxs(m,{h:"100%",align:"center",px:e.container?0:"md",justify:"space-between",...e.flexProps,children:[r.jsx(m,{flex:1,children:i.map((a,u)=>r.jsx(m,{ml:u===0?0:"md",align:"center",children:o(a,u)},u))}),r.jsx(m,{children:c.map((a,u)=>r.jsx(m,{mx:"md",align:"center",children:o(a,u)},u))}),r.jsx(m,{flex:1,align:"center",justify:"end",children:h.map((a,u)=>r.jsx(m,{ml:u===0?0:"md",align:"center",children:o(a,u)},u))})]});if(e.container){const a=typeof e.container=="boolean"?{}:e.container;return r.jsx(Y,{h:"100%",...a,children:s})}return s},ps=e=>{const t=O(),{onItemClick:n}=e,o=s=>r.jsx(m,{h:1,bg:"var(--alepha-border)",my:"xs",mx:e.collapsed?0:"sm"},s),d=(s,a)=>{if("type"in s){if(s.type==="spacer")return e.collapsed?null:r.jsx(m,{h:16},a);if(s.type==="divider")return o(a);if(s.type==="search")return r.jsx(m,{mb:"xs",children:r.jsx(ge,{collapsed:e.collapsed})},a);if(s.type==="toggle")return r.jsx(us,{},a);if(s.type==="section")return e.collapsed?o(a):r.jsxs(m,{mt:"md",align:"center",gap:"xs",children:[U(s.icon),r.jsx(ie,{size:"xs",c:"dimmed",tt:"uppercase",fw:"bold",children:s.label})]},a)}return"element"in s?r.jsx(m,{children:s.element},a):s.can&&!s.can()||s.children&&s.children.length>0&&!s.children.some(p=>!p.can||p.can())?null:e.collapsed?r.jsx(fs,{item:s,level:0,onItemClick:n,theme:e.theme??{}},a):r.jsx(Ve,{item:s,level:0,onItemClick:n,theme:e.theme??{}},a)},l=()=>{if(e.items)return e.items;if(e.autoPopulateMenu){const s=t.concretePages.filter(a=>!a.can||a.can()).map(a=>({label:a.label??a.name,icon:U(a.icon),href:t.path(a.name)}));if(typeof e.autoPopulateMenu=="object"&&e.autoPopulateMenu.startsWith){const a=e.autoPopulateMenu.startsWith;return s.filter(u=>u.href?.startsWith(a))}return s}return[]},i="md",c=e.items?e.gap??2:"xs",h=f.useMemo(()=>l(),[e.items,e.autoPopulateMenu]);return r.jsxs(m,{flex:1,py:i,direction:"column",className:"alepha-sidebar-scroll",...e.flexProps,children:[r.jsx(m,{gap:c,px:i,direction:"column",children:h.filter(s=>s.position==="top").map((s,a)=>d(s,a))}),r.jsx(m,{gap:c,px:i,direction:"column",flex:1,className:"alepha-sidebar-scroll",children:h.filter(s=>!s.position).map((s,a)=>d(s,a))}),r.jsx(m,{gap:c,px:i,direction:"column",children:h.filter(s=>s.position==="bottom").map((s,a)=>d(s,a))})]})},Ve=e=>{const{item:t,level:n}=e,o=2,d=O(),l=f.useCallback(s=>{if(!s.children)return!1;for(const a of s.children)if(a.href&&d.isActive(a.href)||l(a))return!0;return!1},[]),[i,c]=f.useState(l(t));if(Re({"react:transition:end":()=>{l(t)&&c(!0)}},[]),n>o)return null;const h=s=>{e.item.target||s.preventDefault(),t.children&&t.children.length>0?c(!i):(e.onItemClick?.(t),t.onClick?.())};return r.jsxs(m,{direction:"column",ps:n===0?0:32,pos:"relative",children:[r.jsx(S,{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"),tooltip:t.description,c:"var(--mantine-color-text)",color:"gray",variant:"subtle",variantActive:"default",radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:h,leftSection:r.jsxs(m,{w:"100%",align:"center",gap:"sm",children:[U(t.icon),r.jsx(m,{direction:"column",children:r.jsx(m,{children:t.label})})]}),rightSection:t.children?r.jsx(m,{children:i?r.jsx(ct,{size:14}):r.jsx(dt,{size:14})}):e.item.rightSection,...e.item.actionProps}),t.children&&i&&r.jsxs(m,{direction:"column","data-parent-level":n,children:[r.jsx(m,{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,a)=>r.jsx(Ve,{item:s,level:n+1,onItemClick:e.onItemClick,theme:e.theme},a))]})]})},fs=e=>{const{item:t,level:n}=e,o=()=>{e.onItemClick?.(t),t.onClick?.()};return r.jsx(S,{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:U(t.icon)??r.jsx(rs,{}),href:e.item.href,target:e.item.target,...e.item.actionProps})},ms=e=>{const t=O(),[n,o]=re(ae),{opened:d,collapsed:l}=n;f.useEffect(()=>{e.sidebarProps?.collapsed!==void 0&&o({...n,collapsed:e.sidebarProps.collapsed})},[]);const[i,c]=f.useState(!1),[h,s]=f.useState(!1),[a,u]=f.useState({offset:0,opacity:1}),p=f.useRef(null),{collapsedWidth:b,collapseThreshold:v,maxWidth:x,hoverDelay:k,defaultWidth:w}=n,N=f.useCallback(A=>{e.sidebarResizable&&(A.preventDefault(),l?(o({...n,collapsed:!1,width:w}),c(!0),p.current={startX:A.clientX,startWidth:w}):(c(!0),p.current={startX:A.clientX,startWidth:n.width}))},[e.sidebarResizable,l,n,o,w]);f.useEffect(()=>{if(!i)return;const A=qe=>{if(!p.current)return;const Ke=qe.clientX-p.current.startX,ee=p.current.startWidth+Ke,Qe=Math.min(Math.max(ee,b),x);if(ee<v){const je=Math.max(0,(v-ee)/v);u({offset:-je*b,opacity:1-je*.7}),o({...n,width:v,collapsed:!1})}else u({offset:0,opacity:1}),o({...n,width:Qe,collapsed:!1})},xe=()=>{a.offset<0&&o({...n,collapsed:!0}),u({offset:0,opacity:1}),c(!1),p.current=null};return document.addEventListener("mousemove",A),document.addEventListener("mouseup",xe),()=>{document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",xe)}},[i,n,o,b,x,v,a.offset]);const j=f.useRef(null),y=f.useCallback(()=>{l&&(j.current=setTimeout(()=>{s(!0)},k))},[l,k]),R=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 Q=()=>{if(e.noSidebarWhen?.paths){for(const A of e.noSidebarWhen.paths)if(t.isActive(A,{startWith:!0}))return!1}return!0},[G,Z]=f.useState(Q());Re({"react:transition:end":()=>{Z(Q())},"react:transition:begin":()=>{o({...n,opened:!1})}},[n]);const J=[{position:"left",type:"burger"}],V={...e.appBarProps};V.container??=e.container;const L=G&&e.sidebarProps!==void 0,$=L||e.appBarProps||e.header,$e=$?60:0,Fe=e.footer?24:0,ve=Math.max(n.width,b),_=l&&h,M=l&&!h,He=f.useCallback(A=>{_&&s(!1),e.sidebarProps?.onItemClick?.(A)},[_,e.sidebarProps?.onItemClick]),De=Math.max(w,b),Oe=L?M||_?b:ve:0,Xe=e.sidebarResizable&&!l;return r.jsxs(C,{w:"100%",flex:1,padding:"md",header:$?{height:60}:void 0,navbar:L?{width:M||_?{base:b}:{base:ve},breakpoint:"sm",collapsed:{mobile:!d}}:void 0,footer:e.footer?{height:24}:void 0,...e.appShellProps,children:[r.jsx(C.Header,{bg:F.colors.surface,...e.appShellHeaderProps,children:e.header??r.jsx(hs,{items:J,...V})}),L&&r.jsxs(C.Navbar,{bg:F.colors.surface,className:"alepha-sidebar-navbar","data-resizing":i,"data-hover-expanded":_,onMouseEnter:y,onMouseLeave:R,style:{transform:a.offset?`translateX(${a.offset}px)`:void 0,opacity:a.opacity,..._&&{width:De,zIndex:200,boxShadow:"var(--mantine-shadow-xl)"}},...e.appShellNavbarProps,children:[r.jsx(ps,{...e.sidebarProps??{},collapsed:M,onItemClick:He}),(Xe||_)&&r.jsx(m,{pos:"absolute",right:-6,top:0,bottom:0,w:12,style:{cursor:"col-resize",userSelect:"none"},onMouseDown:N})]}),r.jsx(C.Main,{pl:Oe,pt:$e,pb:Fe,pr:0,display:"flex",flex:1,style:{flexDirection:"column"},className:"alepha-sidebar-main","data-resizing":i,...e.appShellMainProps,children:e.container?r.jsx(Y,{w:"100%",flex:1,display:"flex",style:{flexDirection:"column"},...typeof e.container=="boolean"?{}:e.container,children:e.children??r.jsx(Ie,{})}):e.children??r.jsx(Ie,{})}),e.footer&&r.jsx(C.Footer,{bg:F.colors.surface,...e.appShellFooterProps,children:e.footer})]})},Is=()=>r.jsx(ms,{appShellHeaderProps:{bg:F.colors.background},appShellNavbarProps:{bg:F.colors.background},sidebarResizable:!0,sidebarProps:{items:[{label:"Dashboard",icon:r.jsx(ut,{}),href:"/"},{type:"divider"},{label:"Actions",icon:r.jsx(ht,{}),href:"/actions"},{label:"Queues",icon:r.jsx(pt,{}),href:"/queues"},{label:"Topics",icon:r.jsx(ft,{}),href:"/topics"},{label:"Caches",icon:r.jsx(mt,{}),href:"/caches"},{label:"DB Studio",icon:r.jsx(bt,{}),href:"/db"},{type:"divider"},{label:"Environment",icon:r.jsx(gt,{}),href:"/env"},{label:"Atoms",icon:r.jsx(vt,{}),href:"/atoms"},{type:"divider"},{label:"Graph",icon:r.jsx(xt,{}),href:"/graph"},{label:"Logs",icon:r.jsx(jt,{}),href:"/logs"}]},appBarProps:{items:[{position:"left",type:"burger"},{position:"left",element:r.jsx(m,{h:"60px",w:"78px",style:{marginLeft:"-32px",borderRight:"1px solid var(--mantine-color-default-border)"}})},{position:"left",element:r.jsx(ge,{actionProps:{variant:"outline",bd:"1px solid var(--mantine-color-default-border)"}})},{position:"right",element:r.jsx(We,{})}]}});export{Is as DevLayout,Is as default};