@lunora/studio 1.0.0-alpha.57 → 1.0.0-alpha.59

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 (115) hide show
  1. package/dist/index.d.ts +61 -4
  2. package/dist/index.js +8 -6
  3. package/dist/mount.d.ts +1 -1
  4. package/dist/mount.js +1 -1
  5. package/dist/packem_chunks/ApiTab.js +1 -1
  6. package/dist/packem_chunks/AuditPanel.js +1 -1
  7. package/dist/packem_chunks/DeploymentHealthPanel.js +664 -0
  8. package/dist/packem_chunks/ExportImportPanel.js +1 -1
  9. package/dist/packem_chunks/FileBrowser.js +1 -1
  10. package/dist/packem_chunks/FunctionRunner.js +1 -1
  11. package/dist/packem_chunks/FunctionStatsPanel.js +1 -1
  12. package/dist/packem_chunks/HealthPanel.js +1 -1
  13. package/dist/packem_chunks/InsightsPanel.js +1 -1
  14. package/dist/packem_chunks/LogsPanel.js +1 -1
  15. package/dist/packem_chunks/MailPanel.js +1 -1
  16. package/dist/packem_chunks/MetricsPanel.js +473 -242
  17. package/dist/packem_chunks/MigrationsPanel.js +1 -1
  18. package/dist/packem_chunks/NotificationsPanel.js +306 -0
  19. package/dist/packem_chunks/PitrPanel.js +1 -1
  20. package/dist/packem_chunks/SchemaViewer.js +1 -1
  21. package/dist/packem_chunks/SecurityAdvisorPanel.js +1 -1
  22. package/dist/packem_chunks/SettingsPanel.js +1 -1
  23. package/dist/packem_chunks/SqlEditorPanel.js +1 -1
  24. package/dist/packem_chunks/TableEditor.js +1 -1
  25. package/dist/packem_chunks/agents-panel.js +1 -1
  26. package/dist/packem_chunks/auth-audit-panel.js +247 -0
  27. package/dist/packem_chunks/containers-panel.js +1 -1
  28. package/dist/packem_chunks/dashboards-panel.js +1 -1
  29. package/dist/packem_chunks/fanout-panel.js +1 -1
  30. package/dist/packem_chunks/flags-panel.js +1 -1
  31. package/dist/packem_chunks/issues-panel.js +1 -1
  32. package/dist/packem_chunks/kv-browser.js +1 -1
  33. package/dist/packem_chunks/payments-panel.js +28 -1
  34. package/dist/packem_chunks/permissions-panel.js +1 -1
  35. package/dist/packem_chunks/queues-panel.js +1 -1
  36. package/dist/packem_chunks/rls-panel.js +1 -1
  37. package/dist/packem_chunks/storage-rules-panel.js +1 -1
  38. package/dist/packem_chunks/subscriptions-panel.js +1 -1
  39. package/dist/packem_chunks/traces-panel.js +125 -112
  40. package/dist/packem_chunks/workflows-panel.js +1 -1
  41. package/dist/packem_shared/{ADMIN_FUNCTIONS-C1LXrovV.js → ADMIN_FUNCTIONS-P2UzJscH.js} +3 -0
  42. package/dist/packem_shared/{ApiDocsPanel-BBvinlRD.js → ApiDocsPanel-DNDpeR5O.js} +1 -1
  43. package/dist/packem_shared/{DataBrowser-BoinTGxr.js → DataBrowser-obTn4sKX.js} +1 -1
  44. package/dist/packem_shared/{HomePanel-BpdGcW4L.js → HomePanel-DCRj3hGB.js} +2 -2
  45. package/dist/packem_shared/{Studio-BpnYw3lc.js → Studio-DnlPCbID.js} +2 -2
  46. package/dist/packem_shared/{StudioApp-DRGVBnFx.js → StudioApp-CzqlB4zO.js} +1 -1
  47. package/dist/packem_shared/{app.d-C-kxb-1T.d.ts → app.d-bRPJhby-.d.ts} +1 -1
  48. package/dist/packem_shared/{home-panel-Dmg4sNiv.js → home-panel-BRAA2UlM.js} +1 -1
  49. package/dist/packem_shared/{studio-LL4iP8fZ.js → studio-8QSXbZ98.js} +682 -607
  50. package/dist/packem_shared/trace-handoff-CGolF3KS.js +38 -0
  51. package/dist/standalone/{chunk-C7UZEQZ7.js → chunk-3LJEGSMK.js} +2 -2
  52. package/dist/standalone/{chunk-SAQU44MF.js → chunk-56XQYNUJ.js} +1 -1
  53. package/dist/standalone/chunk-5QT5JRXD.js +3 -0
  54. package/dist/standalone/{chunk-JM3ZISDM.js → chunk-6RLPR7PL.js} +1 -1
  55. package/dist/standalone/{chunk-T3R6VHAT.js → chunk-6V74EUPK.js} +1 -1
  56. package/dist/standalone/{chunk-27JTW53L.js → chunk-7EE33WLB.js} +1 -1
  57. package/dist/standalone/{chunk-R4ALMCZA.js → chunk-AXNGWSBM.js} +1 -1
  58. package/dist/standalone/{chunk-OHCGUIOG.js → chunk-AXZILWRM.js} +1 -1
  59. package/dist/standalone/{chunk-J2DQ63SR.js → chunk-C7RHEBOH.js} +1 -1
  60. package/dist/standalone/chunk-CSWIYOB3.js +1 -0
  61. package/dist/standalone/{chunk-NV5LO5I6.js → chunk-D3VAON25.js} +1 -1
  62. package/dist/standalone/{chunk-HQ2CPGA4.js → chunk-DDLQN67F.js} +1 -1
  63. package/dist/standalone/chunk-DGHW5JG5.js +1 -0
  64. package/dist/standalone/{chunk-EFYZYQUA.js → chunk-DMCSOTAE.js} +1 -1
  65. package/dist/standalone/{chunk-MBG7XWNH.js → chunk-E3BKETAS.js} +1 -1
  66. package/dist/standalone/{chunk-IMVAYDPK.js → chunk-E3OXNN6O.js} +1 -1
  67. package/dist/standalone/chunk-E6BOGDIS.js +1 -0
  68. package/dist/standalone/{chunk-2ICZ6HXQ.js → chunk-F7GE4X2U.js} +1 -1
  69. package/dist/standalone/{chunk-CENYZ5GF.js → chunk-FAVUOGJR.js} +1 -1
  70. package/dist/standalone/{chunk-NIC6UYAQ.js → chunk-FXP6256Q.js} +1 -1
  71. package/dist/standalone/{chunk-X34PHGZF.js → chunk-G6CTAYHJ.js} +1 -1
  72. package/dist/standalone/chunk-H42W62SE.js +1 -0
  73. package/dist/standalone/{chunk-LABWKVKR.js → chunk-HTF5ZX4I.js} +1 -1
  74. package/dist/standalone/{chunk-AYHAJL3Z.js → chunk-I2PS4L74.js} +1 -1
  75. package/dist/standalone/{chunk-MJ4HATA2.js → chunk-J7OGP4NN.js} +1 -1
  76. package/dist/standalone/{chunk-2XUT4Z4W.js → chunk-L2LN3MK4.js} +1 -1
  77. package/dist/standalone/{chunk-2BSDITP4.js → chunk-LT3FH6MW.js} +1 -1
  78. package/dist/standalone/{chunk-ZXLEXF4X.js → chunk-LXULVPEM.js} +3 -3
  79. package/dist/standalone/{chunk-RIZDNIW7.js → chunk-LZUWZBPE.js} +1 -1
  80. package/dist/standalone/{chunk-W3EYW2EA.js → chunk-M4JM3TOY.js} +1 -1
  81. package/dist/standalone/{chunk-P7MZQ6VJ.js → chunk-MLA5ZAEB.js} +1 -1
  82. package/dist/standalone/{chunk-67YMILPJ.js → chunk-MRBI5HNQ.js} +1 -1
  83. package/dist/standalone/{chunk-53J4JZ2D.js → chunk-NKFXMDOD.js} +1 -1
  84. package/dist/standalone/{chunk-WAX3RSAI.js → chunk-NPSNKFHE.js} +1 -1
  85. package/dist/standalone/{chunk-ZVQMTQYX.js → chunk-O7FVPUCO.js} +1 -1
  86. package/dist/standalone/{chunk-227DORM6.js → chunk-OKQXTLFX.js} +1 -1
  87. package/dist/standalone/{chunk-OPSAI5PZ.js → chunk-QAIM6KWT.js} +1 -1
  88. package/dist/standalone/{chunk-7YGTGBP7.js → chunk-QCPMTB6W.js} +1 -1
  89. package/dist/standalone/{chunk-XAGYDGI6.js → chunk-QQ2LOSZL.js} +1 -1
  90. package/dist/standalone/{chunk-Y26ZIWUZ.js → chunk-R2GMHLJY.js} +1 -1
  91. package/dist/standalone/{chunk-2YUYNNHQ.js → chunk-RD5UG2YL.js} +1 -1
  92. package/dist/standalone/chunk-RJTIP3WF.js +1 -0
  93. package/dist/standalone/{chunk-BIA2DLBR.js → chunk-SOC5CY3F.js} +1 -1
  94. package/dist/standalone/{chunk-GF6GF6CF.js → chunk-SS7JLF2I.js} +1 -1
  95. package/dist/standalone/{chunk-PYPWIYI2.js → chunk-SWWYUGPL.js} +1 -1
  96. package/dist/standalone/chunk-TEWVD66F.js +1 -0
  97. package/dist/standalone/{chunk-QAW6AWOE.js → chunk-TTXRHJUP.js} +1 -1
  98. package/dist/standalone/{chunk-4Q66FL5S.js → chunk-UKDHGVOC.js} +1 -1
  99. package/dist/standalone/{chunk-5IGHDPEP.js → chunk-UPNTMJFF.js} +1 -1
  100. package/dist/standalone/{chunk-PRHAIUWS.js → chunk-XN6QYJQ6.js} +1 -1
  101. package/dist/standalone/chunk-Y4U6CC22.js +1 -0
  102. package/dist/standalone/{chunk-SWMBBYJU.js → chunk-Y7PD5KP4.js} +1 -1
  103. package/dist/standalone/chunk-YFIPHCEC.js +1 -0
  104. package/dist/standalone/chunk-YJXOWLFJ.js +1 -0
  105. package/dist/standalone/{chunk-CURAOCQJ.js → chunk-YNN6NFRZ.js} +1 -1
  106. package/dist/standalone/{chunk-LFORIMS7.js → chunk-YUGHRVPD.js} +1 -1
  107. package/dist/standalone/studio.js +1 -1
  108. package/dist/styles.css +1 -1
  109. package/package.json +6 -6
  110. package/dist/standalone/chunk-EXNK5XAW.js +0 -1
  111. package/dist/standalone/chunk-LT2HPR6R.js +0 -3
  112. package/dist/standalone/chunk-MHGJUKCZ.js +0 -1
  113. package/dist/standalone/chunk-N2E4TKRD.js +0 -1
  114. package/dist/standalone/chunk-S6PTK7Y2.js +0 -1
  115. package/dist/standalone/chunk-X3VAERRH.js +0 -1
@@ -0,0 +1 @@
1
+ import{a as Nt}from"./chunk-RJTIP3WF.js";import{a as pt,b as xt,c as bt,d as yt,e as Ge}from"./chunk-QCPMTB6W.js";import{a as gt}from"./chunk-N7SVJOHN.js";import{a as mt,b as ut,c as vt,d as ht,e as Oe}from"./chunk-JZLGLG4T.js";import"./chunk-3HGNPZBN.js";import{a as ct}from"./chunk-WMDH2CIZ.js";import{e as ft}from"./chunk-IYHPYY4A.js";import"./chunk-APSSZB6Z.js";import"./chunk-QAFAJBAW.js";import"./chunk-SHERR7ZP.js";import"./chunk-5OIBXYZM.js";import"./chunk-L7SK4ZZD.js";import"./chunk-Y7PD5KP4.js";import"./chunk-BJGBHGK3.js";import"./chunk-ZIGWVHCS.js";import{e as tt}from"./chunk-OXHHSUXO.js";import{a as dt}from"./chunk-2K47A3P6.js";import"./chunk-KEGAWN6Y.js";import{b as je}from"./chunk-RD5UG2YL.js";import{a as Ve,b as Ue,c as We,d as De,e as te,f as K}from"./chunk-GTM65MVX.js";import{a as ce,b as Re,c as Fe,d as rt,e as ue}from"./chunk-Y572GMZE.js";import"./chunk-4QHKBC77.js";import{a as nt}from"./chunk-F2YMCQ6B.js";import{a as at,b as ot}from"./chunk-4PC7IXNY.js";import"./chunk-2MLA6WFH.js";import"./chunk-VL23Y44O.js";import"./chunk-HV7G6DFP.js";import{c as Qe}from"./chunk-UK64ZSUW.js";import"./chunk-O3NAGRTR.js";import{b as He}from"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import{a as Ae}from"./chunk-TEWVD66F.js";import{f as et}from"./chunk-3LJEGSMK.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import{d as Ie,f as st,g as lt,h as it,m as Je,p as Ke}from"./chunk-HBGS4SEX.js";import"./chunk-LXULVPEM.js";import{a as o,e as Pe,f as Tt,g as $t,h as qt}from"./chunk-RRCPZMC2.js";var Me=Pe($t(),1);var I=Pe(Tt(),1);var t=Pe(qt(),1);var _t=o((i,e)=>i<e?-1:i>e?1:0,"compareKeys"),Ze=o(i=>{if(i===void 0)return"null";if(typeof i=="bigint")throw new TypeError("stableStringify: cannot use a bigint in a stable JSON cache key \u2014 pass it as a string, or use stableWireKey");if(i===null||typeof i!="object")return JSON.stringify(i);if(Array.isArray(i))return`[${i.map(g=>Ze(g)).join(",")}]`;let e=Object.getPrototypeOf(i);if(e!==null&&e!==Object.prototype){let g=i.constructor?.name??"value";throw new TypeError(`stableStringify: cannot use a ${g} in a stable JSON cache key \u2014 only plain objects, arrays, and JSON primitives are supported (wire-typed values key via stableWireKey)`)}let l=i,r=Object.keys(l).toSorted(_t),s=[];for(let g of r){let p=l[g];p!==void 0&&s.push(`${JSON.stringify(g)}:${Ze(p)}`)}return`{${s.join(",")}}`},"stableStringify"),St=o((i,e,l)=>`${i}:${e}:${Ze(l??{})}`,"seriesMatchKey"),wt=o((i,e)=>i==="gauge"?e.last:i==="histogram"?e.sum/Math.max(1,e.count):e.sum,"projectByKind"),Ct=o((i,e)=>wt(i,e),"pointValue"),kt=o(i=>wt(i.kind,i),"metricHeadline"),Xe=o(i=>Number.isInteger(i)?i.toLocaleString():i.toLocaleString(void 0,{maximumFractionDigits:2}),"formatMetricValue"),Mt=o(i=>Array.isArray(i?.series)?i.series:[],"seriesOf"),It=o(i=>{let e=new Map;if(!Array.isArray(i?.series))return e;for(let l of i.series)e.set(St(l.kind,l.name,l.attributes),l.points);return e},"historyByKey"),Rt={counter:"secondary",gauge:"default",histogram:"outline"},Ft=o(i=>{let e=(0,Me.c)(18),{name:l,onOpenTrace:r,traceId:s}=i,g=Ie();if(s===void 0){let d;return e[0]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsxDEV)("span",{className:"text-muted-foreground",children:"\u2014"},void 0,!1),e[0]=d):d=e[0],d}let p;e[1]!==s?(p=s.slice(0,8),e[1]=s,e[2]=p):p=e[2];let v=p;if(r===void 0){let d=`mt-instrument-trace-${l}`,y;return e[3]!==v||e[4]!==d||e[5]!==s?(y=(0,t.jsxDEV)("span",{className:"text-muted-foreground","data-testid":d,title:s,children:v},void 0,!1),e[3]=v,e[4]=d,e[5]=s,e[6]=y):y=e[6],y}let b=`mt-instrument-trace-${l}`,m;e[7]!==r||e[8]!==s?(m=o(()=>{r(s)},"t3"),e[7]=r,e[8]=s,e[9]=m):m=e[9];let x;e[10]!==g||e[11]!==s?(x=g("Open the exemplar trace {trace}",{trace:s}),e[10]=g,e[11]=s,e[12]=x):x=e[12];let u;return e[13]!==v||e[14]!==b||e[15]!==m||e[16]!==x?(u=(0,t.jsxDEV)("button",{className:"text-primary underline-offset-4 hover:underline","data-testid":b,onClick:m,title:x,type:"button",children:v},void 0,!1),e[13]=v,e[14]=b,e[15]=m,e[16]=x,e[17]=u):u=e[17],u},"TraceExemplar"),At=o(i=>{let e=(0,Me.c)(92),{onOpenTrace:l,shardKey:r}=i,s=Ie(),g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g={},e[0]=g):g=e[0];let p;e[1]!==r?(p={live:!0,shardKey:r},e[1]=r,e[2]=p):p=e[2];let{data:v,error:b}=je(Ae.getMetricSeries,g,p),m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m={},e[3]=m):m=e[3];let x;e[4]!==r?(x={live:!0,shardKey:r},e[4]=r,e[5]=x):x=e[5];let{data:u}=je(Ae.getMetricHistory,m,x),d,y,re,R,j,z,n,C,le,F,$,O,h;if(e[6]!==v||e[7]!==b||e[8]!==u||e[9]!==l||e[10]!==s){C=Symbol.for("react.early_return_sentinel");e:{let k=Mt(v);if(b!==null||k.length===0){C=null;break e}let ie=It(u),B;e[24]!==s?(B=o(f=>s(f==="counter"?"Counter":f==="gauge"?"Gauge":"Histogram"),"t142"),e[24]=s,e[25]=B):B=e[25];let ae=B;j="flex flex-col gap-2",z="mt-instruments";let E;e[26]!==s?(E=s("Instruments"),e[26]=s,e[27]=E):E=e[27],e[28]!==E?(n=(0,t.jsxDEV)("h3",{className:"text-sm font-semibold text-foreground",children:E},void 0,!1),e[28]=E,e[29]=n):n=e[29],R=ce,h="overflow-hidden py-0",re=ue,O="px-0",y=Ve,F="mt-instruments-table";let a;e[30]!==s?(a=s("name"),e[30]=s,e[31]=a):a=e[31];let w;e[32]!==a?(w=(0,t.jsxDEV)(te,{children:a},void 0,!1),e[32]=a,e[33]=w):w=e[33];let N;e[34]!==s?(N=s("kind"),e[34]=s,e[35]=N):N=e[35];let S;e[36]!==N?(S=(0,t.jsxDEV)(te,{children:N},void 0,!1),e[36]=N,e[37]=S):S=e[37];let P;e[38]!==s?(P=s("value"),e[38]=s,e[39]=P):P=e[39];let H;e[40]!==P?(H=(0,t.jsxDEV)(te,{className:"text-right",children:P},void 0,!1),e[40]=P,e[41]=H):H=e[41];let Q;e[42]!==s?(Q=s("count"),e[42]=s,e[43]=Q):Q=e[43];let J;e[44]!==Q?(J=(0,t.jsxDEV)(te,{className:"text-right",children:Q},void 0,!1),e[44]=Q,e[45]=J):J=e[45];let V;e[46]!==s?(V=s("range"),e[46]=s,e[47]=V):V=e[47];let U;e[48]!==V?(U=(0,t.jsxDEV)(te,{className:"text-right",children:V},void 0,!1),e[48]=V,e[49]=U):U=e[49];let W;e[50]!==s?(W=s("trend"),e[50]=s,e[51]=W):W=e[51];let G;e[52]!==W?(G=(0,t.jsxDEV)(te,{children:W},void 0,!1),e[52]=W,e[53]=G):G=e[53];let X;e[54]!==s?(X=s("trace"),e[54]=s,e[55]=X):X=e[55];let Y;e[56]!==X?(Y=(0,t.jsxDEV)(te,{children:X},void 0,!1),e[56]=X,e[57]=Y):Y=e[57];let Z;e[58]!==s?(Z=s("dimensions"),e[58]=s,e[59]=Z):Z=e[59];let ee;e[60]!==Z?(ee=(0,t.jsxDEV)(te,{children:Z},void 0,!1),e[60]=Z,e[61]=ee):ee=e[61],e[62]!==w||e[63]!==S||e[64]!==H||e[65]!==J||e[66]!==U||e[67]!==G||e[68]!==Y||e[69]!==ee?($=(0,t.jsxDEV)(Ue,{children:(0,t.jsxDEV)(De,{children:[w,S,H,J,U,G,Y,ee]},void 0,!0)},void 0,!1),e[62]=w,e[63]=S,e[64]=H,e[65]=J,e[66]=U,e[67]=G,e[68]=Y,e[69]=ee,e[70]=$):$=e[70],d=We,le=k.map(f=>{let oe=gt(f.attributes),ne=St(f.kind,f.name,f.attributes),de=(ie.get(ne)??[]).map(fe=>Ct(f.kind,fe));return(0,t.jsxDEV)(De,{"data-testid":`mt-instrument-${f.name}`,children:[(0,t.jsxDEV)(K,{className:"font-mono text-xs",title:f.functionPath,children:f.name},void 0,!1),(0,t.jsxDEV)(K,{children:(0,t.jsxDEV)(He,{variant:Rt[f.kind],children:ae(f.kind)},void 0,!1)},void 0,!1),(0,t.jsxDEV)(K,{className:"text-right font-mono tabular-nums","data-testid":`mt-instrument-value-${f.name}`,children:Xe(kt(f))},void 0,!1),(0,t.jsxDEV)(K,{className:"text-right tabular-nums text-muted-foreground",children:f.count.toLocaleString()},void 0,!1),(0,t.jsxDEV)(K,{className:"text-right font-mono text-xs tabular-nums text-muted-foreground",children:f.min===f.max?"\u2014":`${Xe(f.min)}\u2013${Xe(f.max)}`},void 0,!1),(0,t.jsxDEV)(K,{children:de.length>=2?(0,t.jsxDEV)(Ge,{ariaLabel:s("{name} trend",{name:f.name}),className:"h-6 w-24 text-foreground",series:de,testId:`mt-instrument-trend-${f.name}`},void 0,!1):(0,t.jsxDEV)("span",{className:"text-xs text-muted-foreground",children:"\u2014"},void 0,!1)},void 0,!1),(0,t.jsxDEV)(K,{className:"font-mono text-xs",children:(0,t.jsxDEV)(Ft,{name:f.name,onOpenTrace:l,traceId:f.exemplarTraceId},void 0,!1)},void 0,!1),(0,t.jsxDEV)(K,{className:"max-w-64 truncate font-mono text-xs text-muted-foreground",title:oe,children:oe===""?"\u2014":oe},void 0,!1)]},ne,!0)})}e[6]=v,e[7]=b,e[8]=u,e[9]=l,e[10]=s,e[11]=d,e[12]=y,e[13]=re,e[14]=R,e[15]=j,e[16]=z,e[17]=n,e[18]=C,e[19]=le,e[20]=F,e[21]=$,e[22]=O,e[23]=h}else d=e[11],y=e[12],re=e[13],R=e[14],j=e[15],z=e[16],n=e[17],C=e[18],le=e[19],F=e[20],$=e[21],O=e[22],h=e[23];if(C!==Symbol.for("react.early_return_sentinel"))return C;let A;e[71]!==d||e[72]!==le?(A=(0,t.jsxDEV)(d,{children:le},void 0,!1),e[71]=d,e[72]=le,e[73]=A):A=e[73];let L;e[74]!==y||e[75]!==A||e[76]!==F||e[77]!==$?(L=(0,t.jsxDEV)(y,{"data-testid":F,children:[$,A]},void 0,!0),e[74]=y,e[75]=A,e[76]=F,e[77]=$,e[78]=L):L=e[78];let q;e[79]!==re||e[80]!==L||e[81]!==O?(q=(0,t.jsxDEV)(re,{className:O,children:L},void 0,!1),e[79]=re,e[80]=L,e[81]=O,e[82]=q):q=e[82];let D;e[83]!==R||e[84]!==q||e[85]!==h?(D=(0,t.jsxDEV)(R,{className:h,children:q},void 0,!1),e[83]=R,e[84]=q,e[85]=h,e[86]=D):D=e[86];let _;return e[87]!==j||e[88]!==z||e[89]!==n||e[90]!==D?(_=(0,t.jsxDEV)("section",{className:j,"data-testid":z,children:[n,D]},void 0,!0),e[87]=j,e[88]=z,e[89]=n,e[90]=D,e[91]=_):_=e[91],_},"InstrumentsTable"),Be=o(i=>i>=100?"critical":i>=50?"warning":"good","performanceLevel"),Ye=o(i=>i<1?`${(i*1e3).toFixed(0)}\u03BCs`:i<1e3?`${i.toFixed(1)}ms`:`${(i/1e3).toFixed(2)}s`,"formatLatency"),ze=o(i=>i>=1e9?`${(i/1e9).toFixed(1)}B`:i>=1e6?`${(i/1e6).toFixed(1)}M`:i>=1e3?`${(i/1e3).toFixed(1)}K`:i.toLocaleString(),"formatCount"),Dt=o(i=>{let e=(0,Me.c)(3),{level:l}=i;if(l==="critical"){let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsxDEV)(He,{variant:"destructive",children:"Slow"},void 0,!1),e[0]=s):s=e[0],s}if(l==="warning"){let s;return e[1]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsxDEV)("span",{className:"inline-flex items-center gap-1 rounded-md border border-transparent bg-warning/10 px-2 py-0.5 text-xs font-medium text-warning",children:"Moderate"},void 0,!1),e[1]=s):s=e[1],s}let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsxDEV)("span",{className:"inline-flex items-center gap-1 rounded-md border border-transparent bg-success/10 px-2 py-0.5 text-xs font-medium text-success",children:"Fast"},void 0,!1),e[2]=r):r=e[2],r},"PerformanceBadge"),Ot=o(i=>{let e=(0,Me.c)(152),{queryStats:l}=i,r=Ie(),[s,g]=(0,I.useState)("totalTime"),p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p=new Set,e[0]=p):p=e[0];let[v,b]=(0,I.useState)(p),m;e[1]===Symbol.for("react.memo_cache_sentinel")?(m=o(c=>{c!==null&&g(c)},"t2"),e[1]=m):m=e[1];let x=m,u;if(e[2]!==l||e[3]!==s){u=[...l];let c;e[5]!==s?(c=o((M,T)=>{switch(s){case"avgTime":return T.avgDurationMs-M.avgDurationMs;case"execCount":return T.execCount-M.execCount;case"rowsRead":return T.rowsRead-M.rowsRead;default:return T.totalDurationMs-M.totalDurationMs}},"t310"),e[5]=s,e[6]=c):c=e[6],u.sort(c),e[2]=l,e[3]=s,e[4]=u}else u=e[4];let d=u,y;e[7]!==l?(y=l.filter(Lt),e[7]=l,e[8]=y):y=e[8];let re=y.length,R;e[9]!==l?(R=l.filter(Et),e[9]=l,e[10]=R):R=e[10];let j=R.length,z;e[11]!==l?(z=l.filter(Kt),e[11]=l,e[12]=z):z=e[12];let n=z.length,C;e[13]===Symbol.for("react.memo_cache_sentinel")?(C=o(c=>{b(M=>{let T=new Set(M);return T.has(c)?T.delete(c):T.add(c),T})},"t6"),e[13]=C):C=e[13];let le=C;if(l.length===0){let c;e[14]!==r?(c=r("No query insights yet"),e[14]=r,e[15]=c):c=e[15];let M;e[16]!==c?(M=(0,t.jsxDEV)("p",{className:"text-lg font-medium","data-testid":"qi-empty",children:c},void 0,!1),e[16]=c,e[17]=M):M=e[17];let T;e[18]!==r?(T=r("Query insights appear once statements are executed against this shard."),e[18]=r,e[19]=T):T=e[19];let me;e[20]!==T?(me=(0,t.jsxDEV)("p",{className:"mt-1 text-sm",children:T},void 0,!1),e[20]=T,e[21]=me):me=e[21];let Ee;return e[22]!==me||e[23]!==M?(Ee=(0,t.jsxDEV)(ce,{children:(0,t.jsxDEV)(ue,{className:"py-12",children:(0,t.jsxDEV)("div",{className:"text-center text-muted-foreground",children:[M,me]},void 0,!0)},void 0,!1)},void 0,!1),e[22]=me,e[23]=M,e[24]=Ee):Ee=e[24],Ee}let F;e[25]!==r?(F=r("Critical queries"),e[25]=r,e[26]=F):F=e[26];let $;e[27]!==F?($=(0,t.jsxDEV)(Re,{className:"pb-2",children:(0,t.jsxDEV)(Fe,{className:"text-sm font-medium",children:F},void 0,!1)},void 0,!1),e[27]=F,e[28]=$):$=e[28];let O;e[29]!==re?(O=(0,t.jsxDEV)("div",{className:"text-2xl font-bold text-destructive","data-testid":"qi-critical",children:re},void 0,!1),e[29]=re,e[30]=O):O=e[30];let h;e[31]!==r?(h=r(">100ms avg execution"),e[31]=r,e[32]=h):h=e[32];let A;e[33]!==h?(A=(0,t.jsxDEV)("p",{className:"text-xs text-muted-foreground",children:h},void 0,!1),e[33]=h,e[34]=A):A=e[34];let L;e[35]!==A||e[36]!==O?(L=(0,t.jsxDEV)(ue,{children:[O,A]},void 0,!0),e[35]=A,e[36]=O,e[37]=L):L=e[37];let q;e[38]!==L||e[39]!==$?(q=(0,t.jsxDEV)(ce,{children:[$,L]},void 0,!0),e[38]=L,e[39]=$,e[40]=q):q=e[40];let D;e[41]!==r?(D=r("Moderate queries"),e[41]=r,e[42]=D):D=e[42];let _;e[43]!==D?(_=(0,t.jsxDEV)(Re,{className:"pb-2",children:(0,t.jsxDEV)(Fe,{className:"text-sm font-medium",children:D},void 0,!1)},void 0,!1),e[43]=D,e[44]=_):_=e[44];let k;e[45]!==j?(k=(0,t.jsxDEV)("div",{className:"text-2xl font-bold text-warning","data-testid":"qi-moderate",children:j},void 0,!1),e[45]=j,e[46]=k):k=e[46];let ie;e[47]!==r?(ie=r("50\u2013100ms avg execution"),e[47]=r,e[48]=ie):ie=e[48];let B;e[49]!==ie?(B=(0,t.jsxDEV)("p",{className:"text-xs text-muted-foreground",children:ie},void 0,!1),e[49]=ie,e[50]=B):B=e[50];let ae;e[51]!==k||e[52]!==B?(ae=(0,t.jsxDEV)(ue,{children:[k,B]},void 0,!0),e[51]=k,e[52]=B,e[53]=ae):ae=e[53];let E;e[54]!==_||e[55]!==ae?(E=(0,t.jsxDEV)(ce,{children:[_,ae]},void 0,!0),e[54]=_,e[55]=ae,e[56]=E):E=e[56];let a;e[57]!==r?(a=r("Fast queries"),e[57]=r,e[58]=a):a=e[58];let w;e[59]!==a?(w=(0,t.jsxDEV)(Re,{className:"pb-2",children:(0,t.jsxDEV)(Fe,{className:"text-sm font-medium",children:a},void 0,!1)},void 0,!1),e[59]=a,e[60]=w):w=e[60];let N;e[61]!==n?(N=(0,t.jsxDEV)("div",{className:"text-2xl font-bold text-success","data-testid":"qi-fast",children:n},void 0,!1),e[61]=n,e[62]=N):N=e[62];let S;e[63]!==r?(S=r("<50ms avg execution"),e[63]=r,e[64]=S):S=e[64];let P;e[65]!==S?(P=(0,t.jsxDEV)("p",{className:"text-xs text-muted-foreground",children:S},void 0,!1),e[65]=S,e[66]=P):P=e[66];let H;e[67]!==N||e[68]!==P?(H=(0,t.jsxDEV)(ue,{children:[N,P]},void 0,!0),e[67]=N,e[68]=P,e[69]=H):H=e[69];let Q;e[70]!==w||e[71]!==H?(Q=(0,t.jsxDEV)(ce,{children:[w,H]},void 0,!0),e[70]=w,e[71]=H,e[72]=Q):Q=e[72];let J;e[73]!==q||e[74]!==E||e[75]!==Q?(J=(0,t.jsxDEV)("div",{className:"grid gap-4 md:grid-cols-3",children:[q,E,Q]},void 0,!0),e[73]=q,e[74]=E,e[75]=Q,e[76]=J):J=e[76];let V;e[77]!==r?(V=r("Query leaderboard"),e[77]=r,e[78]=V):V=e[78];let U;e[79]!==V?(U=(0,t.jsxDEV)("h3",{className:"text-lg font-semibold",children:V},void 0,!1),e[79]=V,e[80]=U):U=e[80];let W;e[81]!==s||e[82]!==r?(W=r("Slow queries sorted by {sortField}",{sortField:r(s)}),e[81]=s,e[82]=r,e[83]=W):W=e[83];let G;e[84]!==W?(G=(0,t.jsxDEV)("p",{className:"text-sm text-muted-foreground",children:W},void 0,!1),e[84]=W,e[85]=G):G=e[85];let X;e[86]!==U||e[87]!==G?(X=(0,t.jsxDEV)("div",{children:[U,G]},void 0,!0),e[86]=U,e[87]=G,e[88]=X):X=e[88];let Y;e[89]!==r?(Y=r("Sort by"),e[89]=r,e[90]=Y):Y=e[90];let Z;e[91]!==Y?(Z=(0,t.jsxDEV)("span",{className:"text-sm text-muted-foreground",children:Y},void 0,!1),e[91]=Y,e[92]=Z):Z=e[92];let ee;e[93]!==r?(ee=r("Sort queries by"),e[93]=r,e[94]=ee):ee=e[94];let f;e[95]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsxDEV)(ut,{},void 0,!1),e[95]=f):f=e[95];let oe;e[96]!==ee?(oe=(0,t.jsxDEV)(vt,{"aria-label":ee,className:"w-[140px]","data-testid":"qi-sort",children:f},void 0,!1),e[96]=ee,e[97]=oe):oe=e[97];let ne;e[98]!==r?(ne=r("Total time"),e[98]=r,e[99]=ne):ne=e[99];let ve;e[100]!==ne?(ve=(0,t.jsxDEV)(Oe,{value:"totalTime",children:ne},void 0,!1),e[100]=ne,e[101]=ve):ve=e[101];let de;e[102]!==r?(de=r("Avg time"),e[102]=r,e[103]=de):de=e[103];let fe;e[104]!==de?(fe=(0,t.jsxDEV)(Oe,{value:"avgTime",children:de},void 0,!1),e[104]=de,e[105]=fe):fe=e[105];let he;e[106]!==r?(he=r("Execution count"),e[106]=r,e[107]=he):he=e[107];let ge;e[108]!==he?(ge=(0,t.jsxDEV)(Oe,{value:"execCount",children:he},void 0,!1),e[108]=he,e[109]=ge):ge=e[109];let pe;e[110]!==r?(pe=r("Rows read"),e[110]=r,e[111]=pe):pe=e[111];let xe;e[112]!==pe?(xe=(0,t.jsxDEV)(Oe,{value:"rowsRead",children:pe},void 0,!1),e[112]=pe,e[113]=xe):xe=e[113];let be;e[114]!==ve||e[115]!==fe||e[116]!==ge||e[117]!==xe?(be=(0,t.jsxDEV)(ht,{children:[ve,fe,ge,xe]},void 0,!0),e[114]=ve,e[115]=fe,e[116]=ge,e[117]=xe,e[118]=be):be=e[118];let ye;e[119]!==s||e[120]!==oe||e[121]!==be?(ye=(0,t.jsxDEV)(mt,{onValueChange:x,value:s,children:[oe,be]},void 0,!0),e[119]=s,e[120]=oe,e[121]=be,e[122]=ye):ye=e[122];let Ne;e[123]!==Z||e[124]!==ye?(Ne=(0,t.jsxDEV)("div",{className:"flex items-center gap-2",children:[Z,ye]},void 0,!0),e[123]=Z,e[124]=ye,e[125]=Ne):Ne=e[125];let Se;e[126]!==X||e[127]!==Ne?(Se=(0,t.jsxDEV)("div",{className:"flex items-center justify-between",children:[X,Ne]},void 0,!0),e[126]=X,e[127]=Ne,e[128]=Se):Se=e[128];let we;e[129]!==r?(we=r("Statements"),e[129]=r,e[130]=we):we=e[130];let Te;e[131]!==we?(Te=(0,t.jsxDEV)(Fe,{children:we},void 0,!1),e[131]=we,e[132]=Te):Te=e[132];let $e;e[133]!==d.length||e[134]!==r?($e=r("{count} tracked statements",{count:d.length}),e[133]=d.length,e[134]=r,e[135]=$e):$e=e[135];let qe;e[136]!==$e?(qe=(0,t.jsxDEV)(rt,{children:$e},void 0,!1),e[136]=$e,e[137]=qe):qe=e[137];let _e;e[138]!==Te||e[139]!==qe?(_e=(0,t.jsxDEV)(Re,{children:[Te,qe]},void 0,!0),e[138]=Te,e[139]=qe,e[140]=_e):_e=e[140];let Ce;e[141]!==v||e[142]!==d||e[143]!==r?(Ce=(0,t.jsxDEV)(ue,{children:(0,t.jsxDEV)("div",{className:"space-y-2",children:d.map(c=>{let M=c.normalizedSql,T=v.has(M),me=Be(c.avgDurationMs);return(0,t.jsxDEV)("div",{className:"overflow-hidden rounded-lg border","data-testid":"qi-row",children:[(0,t.jsxDEV)("button",{"aria-expanded":T,className:"flex w-full items-center justify-between p-3 text-left transition-colors hover:bg-muted/50",onClick:o(()=>{le(M)},"onClick"),type:"button",children:[(0,t.jsxDEV)("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[(0,t.jsxDEV)(Dt,{level:me},void 0,!1),(0,t.jsxDEV)("span",{className:"max-w-[300px] truncate font-mono text-sm lg:max-w-[500px]",children:c.normalizedSql},void 0,!1)]},void 0,!0),(0,t.jsxDEV)("div",{className:"flex shrink-0 items-center gap-4",children:[(0,t.jsxDEV)("div",{className:"text-right",children:[(0,t.jsxDEV)("div",{className:"text-sm font-medium",children:Ye(c.totalDurationMs)},void 0,!1),(0,t.jsxDEV)("div",{className:"text-xs text-muted-foreground",children:r("total")},void 0,!1)]},void 0,!0),(0,t.jsxDEV)("div",{className:"text-right",children:[(0,t.jsxDEV)("div",{className:"text-sm font-medium",children:Ye(c.avgDurationMs)},void 0,!1),(0,t.jsxDEV)("div",{className:"text-xs text-muted-foreground",children:r("avg")},void 0,!1)]},void 0,!0),(0,t.jsxDEV)("div",{className:"text-right",children:[(0,t.jsxDEV)("div",{className:"text-sm font-medium",children:ze(c.execCount)},void 0,!1),(0,t.jsxDEV)("div",{className:"text-xs text-muted-foreground",children:r("calls")},void 0,!1)]},void 0,!0)]},void 0,!0)]},void 0,!0),T&&(0,t.jsxDEV)("div",{className:"space-y-3 border-t bg-muted/30 p-4",children:[(0,t.jsxDEV)("div",{children:[(0,t.jsxDEV)("p",{className:"mb-2 text-sm font-medium",children:r("Full statement")},void 0,!1),(0,t.jsxDEV)("pre",{className:"overflow-x-auto rounded-md bg-muted p-3 font-mono text-sm whitespace-pre-wrap break-all",children:c.normalizedSql},void 0,!1)]},void 0,!0),(0,t.jsxDEV)("div",{className:"grid grid-cols-2 gap-4 text-sm md:grid-cols-4",children:[(0,t.jsxDEV)("div",{children:[(0,t.jsxDEV)("span",{className:"text-muted-foreground",children:r("Exec count")},void 0,!1),(0,t.jsxDEV)("span",{className:"block font-medium tabular-nums",children:ze(c.execCount)},void 0,!1)]},void 0,!0),(0,t.jsxDEV)("div",{children:[(0,t.jsxDEV)("span",{className:"text-muted-foreground",children:r("Total time")},void 0,!1),(0,t.jsxDEV)("span",{className:"block font-medium tabular-nums",children:Ye(c.totalDurationMs)},void 0,!1)]},void 0,!0),(0,t.jsxDEV)("div",{children:[(0,t.jsxDEV)("span",{className:"text-muted-foreground",children:r("Rows read")},void 0,!1),(0,t.jsxDEV)("span",{className:"block font-medium tabular-nums",children:ze(c.rowsRead)},void 0,!1)]},void 0,!0),(0,t.jsxDEV)("div",{children:[(0,t.jsxDEV)("span",{className:"text-muted-foreground",children:r("Rows written")},void 0,!1),(0,t.jsxDEV)("span",{className:"block font-medium tabular-nums",children:ze(c.rowsWritten)},void 0,!1)]},void 0,!0)]},void 0,!0)]},void 0,!0)]},M,!0)})},void 0,!1)},void 0,!1),e[141]=v,e[142]=d,e[143]=r,e[144]=Ce):Ce=e[144];let ke;e[145]!==_e||e[146]!==Ce?(ke=(0,t.jsxDEV)(ce,{children:[_e,Ce]},void 0,!0),e[145]=_e,e[146]=Ce,e[147]=ke):ke=e[147];let Le;return e[148]!==J||e[149]!==Se||e[150]!==ke?(Le=(0,t.jsxDEV)("div",{className:"space-y-4","data-testid":"qi-root",children:[J,Se,ke]},void 0,!0),e[148]=J,e[149]=Se,e[150]=ke,e[151]=Le):Le=e[151],Le},"QueryInsights");function Lt(i){return Be(i.avgDurationMs)==="critical"}o(Lt,"_temp");function Et(i){return Be(i.avgDurationMs)==="warning"}o(Et,"_temp2");function Kt(i){return Be(i.avgDurationMs)==="good"}o(Kt,"_temp3");var jt=st(Ae.getMetrics),zt=o(i=>{let e=Math.floor(i/1e3),l=Math.floor(e/3600),r=Math.floor(e%3600/60),s=e%60;return l>0?`${l.toString()}h ${r.toString()}m`:r>0?`${r.toString()}m ${s.toString()}s`:`${s.toString()}s`},"formatDuration"),Bt=o((i,e)=>i?e:"overview","resolveTab"),Pt=o((i,e)=>{let l=i+e;return l===0?"\u2014":`${(i/l*100).toFixed(1)}%`},"hitRate"),se=o(i=>{let e=(0,Me.c)(16),{chart:l,footer:r,label:s,testId:g,value:p}=i,v;e[0]!==s?(v=(0,t.jsxDEV)("span",{className:"font-mono text-[11px] tracking-wide text-muted-foreground uppercase",children:s},void 0,!1),e[0]=s,e[1]=v):v=e[1];let b;e[2]!==g||e[3]!==p?(b=(0,t.jsxDEV)("span",{className:"truncate text-2xl font-semibold tabular-nums text-foreground","data-testid":g,children:p},void 0,!1),e[2]=g,e[3]=p,e[4]=b):b=e[4];let m;e[5]!==l||e[6]!==b?(m=(0,t.jsxDEV)("div",{className:"flex items-center justify-between gap-3",children:[b,l]},void 0,!0),e[5]=l,e[6]=b,e[7]=m):m=e[7];let x;e[8]!==v||e[9]!==m?(x=(0,t.jsxDEV)("div",{className:"flex flex-col gap-2.5 p-4",children:[v,m]},void 0,!0),e[8]=v,e[9]=m,e[10]=x):x=e[10];let u;e[11]!==r?(u=r!=null&&(0,t.jsxDEV)("div",{className:"border-t border-border bg-muted/50 px-4 py-2.5 text-[11px] text-muted-foreground",children:r},void 0,!1),e[11]=r,e[12]=u):u=e[12];let d;return e[13]!==x||e[14]!==u?(d=(0,t.jsxDEV)(ce,{className:"justify-between gap-0 py-0",children:[x,u]},void 0,!0),e[13]=x,e[14]=u,e[15]=d):d=e[15],d},"StatCard"),cr=o(({initialShardKey:i})=>{let e=et(),l=Ie(),r=tt(),[s,g]=(0,I.useState)(i??""),[p,v]=(0,I.useState)("overview"),[b,m]=(0,I.useState)([]),x=(0,I.useRef)(null),u=(0,I.useRef)(null),d=(0,I.useRef)(!0);(0,I.useEffect)(()=>(d.current=!0,()=>{d.current=!1}),[]);let y=dt(s.trim(),400),re=o(a=>{Nt({shardKey:y,traceId:a}),Je(r({to:"/traces"}))},"openTrace"),{data:R,error:j,liveError:z}=je(Ae.getMetrics,{},{live:!0,shardKey:y}),n=R??null;(0,I.useEffect)(()=>{if(R===void 0)return;ot(y);let a=R,w=x.current,N=u.current!==null&&u.current!==a.shard;if(u.current=a.shard,x.current=a.requests,N){m([]);return}w!==null&&a.requests>=w&&m(S=>[...S,a.requests-w].slice(-30))},[R,y]);let[C,le]=(0,I.useState)(null),[F,$]=(0,I.useState)(!1),O=o(async()=>{$(!0);let a=xt(s,at());try{let w=await Promise.all(a.map(async N=>{try{let S=await e.query(jt,{},lt(N));return{error:null,metrics:S,shard:N===""?S.shard:N}}catch(S){return{error:it(S),metrics:null,shard:N===""?"__root__":N}}}));d.current&&le(w)}finally{d.current&&$(!1)}},"aggregateAll"),h=C===null?null:pt(C),A=n===null||n.requests===0?"\u2014":`${(n.errors/n.requests*100).toFixed(1)}%`,L=b.length>0?b.at(-1):0,q=n?bt(n):{p90:0,p95:0},D=o(a=>a<=0?"\u2014":a<1?`${(a*1e3).toFixed(0)}\u03BCs`:a<1e3?`${a.toFixed(1)}ms`:`${(a/1e3).toFixed(2)}s`,"formatMs"),_=(0,I.useMemo)(()=>{if(!n||!("queryStats"in n))return;let a=n.queryStats;if(!(!a||!Array.isArray(a)))return yt(a)},[n]),k=Bt(_!==void 0,p),ie=o(()=>{Je(O())},"runAggregate"),B=o(()=>{le(null)},"clearAggregate"),ae=o(()=>{v("overview")},"switchToOverview"),E=o(()=>{v("query-insights")},"switchToQueryInsights");return(0,t.jsxDEV)("div",{className:"flex flex-col gap-4","data-testid":"lunora-metrics",children:[(0,t.jsxDEV)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsxDEV)(nt,{onChange:g,testId:"mt-shard-input",value:s},void 0,!1),(0,t.jsxDEV)(ct,{message:z,prefix:"mt"},void 0,!1),(0,t.jsxDEV)(Qe,{"data-testid":"mt-aggregate",disabled:F,onClick:ie,size:"sm",type:"button",variant:"secondary",children:l(F?"Aggregating\u2026":"All shards")},void 0,!1),C!==null&&(0,t.jsxDEV)(Qe,{"data-testid":"mt-aggregate-clear",onClick:B,size:"sm",type:"button",variant:"ghost",children:l("Hide")},void 0,!1),(0,t.jsxDEV)("a",{className:"text-sm text-primary underline-offset-4 hover:underline","data-testid":"mt-cf-link",href:ft,rel:"noreferrer",target:"_blank",children:l("Open in Cloudflare")},void 0,!1)]},void 0,!0),j!==null&&(0,t.jsxDEV)("p",{className:"text-sm text-destructive","data-testid":"mt-error",role:"alert",children:j},void 0,!1),_!==void 0&&(0,t.jsxDEV)("div",{className:"flex gap-2 border-b","data-testid":"mt-tabs",children:[(0,t.jsxDEV)("button",{className:`pb-2 text-sm font-medium transition-colors ${k==="overview"?"border-b-2 border-primary text-foreground":"text-muted-foreground hover:text-foreground"}`,"data-testid":"mt-tab-overview",onClick:ae,type:"button",children:l("Overview")},void 0,!1),(0,t.jsxDEV)("button",{className:`pb-2 text-sm font-medium transition-colors ${k==="query-insights"?"border-b-2 border-primary text-foreground":"text-muted-foreground hover:text-foreground"}`,"data-testid":"mt-tab-query-insights",onClick:E,type:"button",children:[l("Query insights"),_.length>0&&(0,t.jsxDEV)("span",{className:"ml-1.5 rounded-full bg-primary/10 px-1.5 py-0.5 text-xs text-primary",children:_.length},void 0,!1)]},void 0,!0)]},void 0,!0),k==="query-insights"&&_!==void 0&&(0,t.jsxDEV)(Ot,{queryStats:_},void 0,!1),k==="overview"&&n!==null&&(0,t.jsxDEV)("dl",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4","data-testid":"mt-stats",children:[(0,t.jsxDEV)(se,{chart:b.length>=2?(0,t.jsxDEV)(Ge,{ariaLabel:l("Requests per interval over time"),className:"h-7 w-24 text-foreground",series:b,testId:"mt-sparkline"},void 0,!1):void 0,footer:b.length>=2?(0,t.jsxDEV)(t.Fragment,{children:[(0,t.jsxDEV)("span",{className:"font-semibold text-foreground",children:`+${L.toLocaleString()}`},void 0,!1)," ",l("last interval")]},void 0,!0):(0,t.jsxDEV)("span",{"data-testid":"mt-sparkline-empty",children:l("collecting samples\u2026")},void 0,!1),label:l("Requests"),testId:"mt-requests",value:n.requests},void 0,!1),(0,t.jsxDEV)(se,{footer:l("{rate} error rate",{rate:A}),label:l("Errors"),testId:"mt-errors",value:(0,t.jsxDEV)(t.Fragment,{children:[n.errors," (",A,")"]},void 0,!0)},void 0,!1),(0,t.jsxDEV)(se,{footer:q.p90>0?`P90 ${D(q.p90)}`:void 0,label:l("P95 latency"),testId:"mt-p95",value:q.p95>0?D(q.p95):"\u2014"},void 0,!1),(0,t.jsxDEV)(se,{footer:n.cache===null?void 0:`${n.cache.entries.toLocaleString()} ${l("cache entries")}`,label:l("Database size"),testId:"mt-db-size",value:Ke(n.databaseSize)},void 0,!1),(0,t.jsxDEV)(se,{label:l("Shard"),testId:"mt-shard",value:n.shard},void 0,!1),(0,t.jsxDEV)(se,{label:l("Uptime"),testId:"mt-uptime",value:zt(n.uptimeMs)},void 0,!1),(0,t.jsxDEV)(se,{label:l("Cache hit rate"),testId:"mt-cache",value:n.cache===null?l("no cache configured"):l("{rate} ({count} entries)",{count:n.cache.entries,rate:Pt(n.cache.hits,n.cache.misses)})},void 0,!1)]},void 0,!0),k==="overview"&&n===null&&null,k==="overview"&&(0,t.jsxDEV)(At,{onOpenTrace:re,shardKey:y},void 0,!1),k==="overview"&&h!==null&&C!==null&&(0,t.jsxDEV)("div",{className:"flex flex-col gap-4","data-testid":"mt-aggregate-view",children:[(0,t.jsxDEV)("dl",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3","data-testid":"mt-aggregate-stats",children:[(0,t.jsxDEV)(se,{label:l("Shards"),testId:"mt-agg-shards",value:h.failed>0?l("{reachable} reachable, {failed} unreachable",{failed:h.failed,reachable:h.reachable}):l("{reachable} reachable",{reachable:h.reachable})},void 0,!1),(0,t.jsxDEV)(se,{label:l("Total requests"),testId:"mt-agg-requests",value:h.totalRequests},void 0,!1),(0,t.jsxDEV)(se,{label:l("Total errors"),testId:"mt-agg-errors",value:h.totalErrors},void 0,!1),(0,t.jsxDEV)(se,{label:l("Total database size"),testId:"mt-agg-db-size",value:Ke(h.totalDatabaseSize)},void 0,!1),(0,t.jsxDEV)(se,{label:l("Combined cache hit rate"),testId:"mt-agg-cache",value:h.hitRate===null?l("no cache configured"):`${(h.hitRate*100).toFixed(1)}%`},void 0,!1)]},void 0,!0),(0,t.jsxDEV)(ce,{className:"overflow-hidden py-0",children:(0,t.jsxDEV)(ue,{className:"px-0",children:(0,t.jsxDEV)(Ve,{"data-testid":"mt-agg-table",children:[(0,t.jsxDEV)(Ue,{children:(0,t.jsxDEV)(De,{children:[(0,t.jsxDEV)(te,{children:l("shard")},void 0,!1),(0,t.jsxDEV)(te,{children:l("requests")},void 0,!1),(0,t.jsxDEV)(te,{children:l("errors")},void 0,!1),(0,t.jsxDEV)(te,{children:l("db size")},void 0,!1)]},void 0,!0)},void 0,!1),(0,t.jsxDEV)(We,{children:C.map(a=>(0,t.jsxDEV)(De,{"data-testid":`mt-agg-row-${a.shard}`,children:[(0,t.jsxDEV)(K,{children:a.shard},void 0,!1),a.metrics===null?(0,t.jsxDEV)(K,{className:"text-destructive",colSpan:3,children:a.error??l("unreachable")},void 0,!1):(0,t.jsxDEV)(t.Fragment,{children:[(0,t.jsxDEV)(K,{className:"tabular-nums",children:a.metrics.requests},void 0,!1),(0,t.jsxDEV)(K,{className:"tabular-nums",children:a.metrics.errors},void 0,!1),(0,t.jsxDEV)(K,{className:"tabular-nums",children:Ke(a.metrics.databaseSize)},void 0,!1)]},void 0,!0)]},a.shard,!0))},void 0,!1)]},void 0,!0)},void 0,!1)},void 0,!1)]},void 0,!0)]},void 0,!0)},"MetricsPanel");export{cr as MetricsPanel};
@@ -0,0 +1 @@
1
+ import{a as U}from"./chunk-F7GE4X2U.js";import"./chunk-XNJNSCLM.js";import{b as O}from"./chunk-RD5UG2YL.js";import{a as q,b as G,c as J,d as V,e as o,f as l}from"./chunk-GTM65MVX.js";import{a as z,e as D}from"./chunk-Y572GMZE.js";import{R as j}from"./chunk-VL23Y44O.js";import"./chunk-HV7G6DFP.js";import{c as R}from"./chunk-UK64ZSUW.js";import"./chunk-O3NAGRTR.js";import{b as S}from"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import{a as Q}from"./chunk-TEWVD66F.js";import"./chunk-3LJEGSMK.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import{a as W}from"./chunk-TAD43CG5.js";import{d as P,q as K}from"./chunk-HBGS4SEX.js";import"./chunk-LXULVPEM.js";import{a as i,e as $,f as re,g as se,h as ae}from"./chunk-RRCPZMC2.js";var Y=$(se(),1),F=$(re(),1);var t=$(ae(),1);var ie=i(e=>e==="ok"?"success":e==="failed"?"destructive":e==="expired"?"warning":"secondary","statusVariant"),X=i(e=>e.endpoint??e.id,"deviceTarget"),ge=i(()=>{let e=(0,Y.c)(38),r=P(),[a,Z]=(0,F.useState)("all"),[n,_]=(0,F.useState)(""),x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={},e[0]=x):x=e[0];let{data:T,error:d,errorSource:v,isLoading:I,refetch:g}=O(Q.listPushSubscriptions,x),b;if(e[1]!==T?.subscriptions||e[2]!==d||e[3]!==v||e[4]!==I||e[5]!==a||e[6]!==g||e[7]!==n||e[8]!==r){let A=T?.subscriptions??[],H=n.trim().toLowerCase(),E=A.filter(s=>a!=="all"&&s.kind!==a?!1:H===""?!0:`${X(s)} ${s.userId??""}`.toLowerCase().includes(H)),N;e[10]===Symbol.for("react.memo_cache_sentinel")?(N=i(s=>{_(s.target.value)},"t2"),e[10]=N):N=e[10];let ee=N,w;e[11]!==g?(w=i(()=>{g()},"t3"),e[11]=g,e[12]=w):w=e[12];let B=w,y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=["all","web-push","fcm"],e[13]=y):y=e[13];let te=y,c;e[14]!==a||e[15]!==r?(c=(0,t.jsxDEV)("div",{className:"flex items-center gap-1","data-testid":"nt-kind-filter",role:"tablist",children:te.map(s=>(0,t.jsxDEV)(R,{"aria-selected":a===s,"data-testid":`nt-kind-${s}`,onClick:i(()=>{Z(s)},"onClick"),role:"tab",size:"sm",type:"button",variant:a===s?"secondary":"ghost",children:s==="all"?r("All"):s},s,!1))},void 0,!1),e[14]=a,e[15]=r,e[16]=c):c=e[16];let f;e[17]!==r?(f=r("Filter devices"),e[17]=r,e[18]=f):f=e[18];let m;e[19]!==r?(m=r("filter endpoint, user"),e[19]=r,e[20]=m):m=e[20];let u;e[21]!==n||e[22]!==f||e[23]!==m?(u=(0,t.jsxDEV)(j,{"aria-label":f,className:"h-8 w-56","data-testid":"nt-search",onChange:ee,placeholder:m,value:n},void 0,!1),e[21]=n,e[22]=f,e[23]=m,e[24]=u):u=e[24];let h;e[25]!==r?(h=r("Refresh"),e[25]=r,e[26]=h):h=e[26];let p;e[27]!==B||e[28]!==h?(p=(0,t.jsxDEV)(R,{className:"ml-auto","data-testid":"nt-refresh",onClick:B,size:"sm",type:"button",variant:"outline",children:h},void 0,!1),e[27]=B,e[28]=h,e[29]=p):p=e[29];let L=A.length>0&&(0,t.jsxDEV)(S,{"data-testid":"nt-count",variant:"secondary",children:r("{count} devices",{count:A.length})},void 0,!1),C;e[30]!==p||e[31]!==L||e[32]!==c||e[33]!==u?(C=(0,t.jsxDEV)("div",{className:"flex flex-wrap items-center gap-2",children:[c,u,p,L]},void 0,!0),e[30]=p,e[31]=L,e[32]=c,e[33]=u,e[34]=C):C=e[34];let k;e[35]!==d||e[36]!==v?(k=d!==null&&(0,t.jsxDEV)(U,{error:v,testId:"nt-error"},void 0,!1),e[35]=d,e[36]=v,e[37]=k):k=e[37],b=(0,t.jsxDEV)("div",{className:"flex flex-col gap-4","data-testid":"lunora-notifications",children:[C,k,d===null&&!I&&E.length===0&&(0,t.jsxDEV)(W,{description:r("Registered Web Push / FCM devices appear here. Configure lunora/notify.ts with defineNotify({ store }) and register a device with ctx.push.register(...)."),icon:(0,t.jsxDEV)("svg",{"aria-hidden":"true",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:(0,t.jsxDEV)("path",{d:"M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 0 0-4-5.7V5a2 2 0 1 0-4 0v.3A6 6 0 0 0 6 11v3.2a2 2 0 0 1-.6 1.4L4 17h5m6 0v1a3 3 0 1 1-6 0v-1m6 0H9"},void 0,!1)},void 0,!1),testId:"nt-empty",title:r("No registered devices.")},void 0,!1),E.length>0&&(0,t.jsxDEV)(z,{className:"overflow-hidden py-0",children:(0,t.jsxDEV)(D,{className:"max-h-[30rem] overflow-auto px-0",children:(0,t.jsxDEV)(q,{"data-testid":"nt-table",children:[(0,t.jsxDEV)(G,{children:(0,t.jsxDEV)(V,{children:[(0,t.jsxDEV)(o,{children:r("kind")},void 0,!1),(0,t.jsxDEV)(o,{children:r("endpoint")},void 0,!1),(0,t.jsxDEV)(o,{children:r("user")},void 0,!1),(0,t.jsxDEV)(o,{children:r("last seen")},void 0,!1),(0,t.jsxDEV)(o,{children:r("status")},void 0,!1),(0,t.jsxDEV)(o,{children:r("error")},void 0,!1)]},void 0,!0)},void 0,!1),(0,t.jsxDEV)(J,{children:E.map(s=>{let M=X(s);return(0,t.jsxDEV)(V,{"data-testid":"nt-row",children:[(0,t.jsxDEV)(l,{children:(0,t.jsxDEV)(S,{variant:"outline",children:s.kind},void 0,!1)},void 0,!1),(0,t.jsxDEV)(l,{className:"max-w-[28ch] truncate font-mono text-xs",title:M,children:M},void 0,!1),(0,t.jsxDEV)(l,{className:"max-w-[16ch] truncate font-mono text-xs",children:s.userId??(0,t.jsxDEV)("span",{className:"text-muted-foreground",children:"\u2014"},void 0,!1)},void 0,!1),(0,t.jsxDEV)(l,{className:"text-muted-foreground tabular-nums",children:K(s.lastSeenAt,"\u2014")},void 0,!1),(0,t.jsxDEV)(l,{children:(0,t.jsxDEV)(S,{"data-testid":`nt-status-${s.id}`,variant:ie(s.lastStatus),children:s.lastStatus??r("n/a")},void 0,!1)},void 0,!1),(0,t.jsxDEV)(l,{className:"max-w-[28ch] truncate font-mono text-xs text-muted-foreground",title:s.lastError??void 0,children:s.lastError??(0,t.jsxDEV)("span",{className:"text-muted-foreground",children:"\u2014"},void 0,!1)},void 0,!1)]},s.id,!0)})},void 0,!1)]},void 0,!0)},void 0,!1)},void 0,!1)]},void 0,!0),e[1]=T?.subscriptions,e[2]=d,e[3]=v,e[4]=I,e[5]=a,e[6]=g,e[7]=n,e[8]=r,e[9]=b}else b=e[9];return b},"NotificationsPanel");export{ge as NotificationsPanel};
@@ -1 +1 @@
1
- import{a as D}from"./chunk-WMDH2CIZ.js";import{b as _}from"./chunk-2YUYNNHQ.js";import{a as O,b as $,c as k,d as T,e as r,f as o}from"./chunk-GTM65MVX.js";import{a as A,e as I}from"./chunk-Y572GMZE.js";import{b}from"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import{a as L}from"./chunk-MHGJUKCZ.js";import"./chunk-C7UZEQZ7.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import{a as S}from"./chunk-TAD43CG5.js";import{d as E}from"./chunk-HBGS4SEX.js";import"./chunk-ZXLEXF4X.js";import{a as x,e as C,f as M,g as P,h as V}from"./chunk-RRCPZMC2.js";var B=C(P(),1),K=C(M(),1);var t=C(V(),1);var R="container:",F={error:"error",sleep:"sleeping",start:"running",stop:"stopped"},H=x(e=>{let n=e.indexOf(":");if(n===-1)return{event:e.trim()};let s=e.slice(n+1).trim(),a=e.slice(0,n).trim();return s===""?{event:a}:{detail:s,event:a}},"parseContainerMessage"),W=x(e=>{let n=new Map;for(let s of e){let a=s.functionPath??"";if(!a.startsWith(R))continue;let i=a.slice(R.length);if(i==="")continue;let l=JSON.stringify([i,s.instance??""]),d=n.get(l);if(d!==void 0&&d.timestamp>=s.timestamp)continue;let{detail:N,event:c}=H(s.message);n.set(l,{detail:N,event:c,exitCode:s.exitCode,instance:s.instance,level:s.level,name:i,state:F[c]??"unknown",timestamp:s.timestamp})}return[...n.values()].toSorted((s,a)=>s.name.localeCompare(a.name)||(s.instance??"").localeCompare(a.instance??""))},"foldContainerInstances"),j={error:"destructive",running:"success",sleeping:"info",stopped:"outline",unknown:"secondary"},G=x(e=>{let{entries:n}=e??{};return Array.isArray(n)?n:[]},"entriesOf"),ee=x(()=>{let e=(0,B.c)(23),n=E(),s,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={},a={live:!0,shardKey:""},e[0]=s,e[1]=a):(s=e[0],a=e[1]);let{data:i,error:l,liveError:d}=_(L.getLogs,s,a),N=i!==void 0,c;e[2]!==i?(c=W(G(i)),e[2]=i,e[3]=c):c=e[3];let g=c,m;e[4]!==l?(m=l!==null&&(0,t.jsxDEV)("p",{className:"text-sm text-destructive","data-testid":"containers-error",role:"alert",children:l},void 0,!1),e[4]=l,e[5]=m):m=e[5];let f;e[6]!==n?(f=n("Cloudflare Containers are observed from their lifecycle log stream. This shows the current state per instance \u2014 ports and health checks aren't carried in that stream."),e[6]=n,e[7]=f):f=e[7];let u;e[8]!==f?(u=(0,t.jsxDEV)("p",{className:"text-sm text-muted-foreground",children:f},void 0,!1),e[8]=f,e[9]=u):u=e[9];let p;e[10]!==d?(p=(0,t.jsxDEV)(D,{message:d,prefix:"containers"},void 0,!1),e[10]=d,e[11]=p):p=e[11];let v;e[12]!==u||e[13]!==p?(v=(0,t.jsxDEV)("div",{className:"flex flex-wrap items-center gap-2",children:[u,p]},void 0,!0),e[12]=u,e[13]=p,e[14]=v):v=e[14];let h;e[15]!==N||e[16]!==g||e[17]!==n?(h=N&&g.length===0?(0,t.jsxDEV)(S,{description:n("No container lifecycle activity yet. Instances declared with defineContainer show up here once they start, sleep, stop, or error."),testId:"containers-empty",title:n("No container activity")},void 0,!1):(0,t.jsxDEV)(A,{className:"overflow-hidden py-0",children:(0,t.jsxDEV)(I,{className:"px-0",children:(0,t.jsxDEV)(O,{"data-testid":"containers-table",children:[(0,t.jsxDEV)($,{children:(0,t.jsxDEV)(T,{children:[(0,t.jsxDEV)(r,{children:n("Container")},void 0,!1),(0,t.jsxDEV)(r,{children:n("Instance")},void 0,!1),(0,t.jsxDEV)(r,{children:n("State")},void 0,!1),(0,t.jsxDEV)(r,{children:n("Last event")},void 0,!1),(0,t.jsxDEV)(r,{children:n("Detail")},void 0,!1),(0,t.jsxDEV)(r,{children:n("Exit")},void 0,!1),(0,t.jsxDEV)(r,{children:n("When")},void 0,!1)]},void 0,!0)},void 0,!1),(0,t.jsxDEV)(k,{children:g.map(J)},void 0,!1)]},void 0,!0)},void 0,!1)},void 0,!1),e[15]=N,e[16]=g,e[17]=n,e[18]=h):h=e[18];let y;return e[19]!==m||e[20]!==v||e[21]!==h?(y=(0,t.jsxDEV)("div",{className:"flex flex-col gap-6","data-testid":"lunora-containers-panel",children:[m,v,h]},void 0,!0),e[19]=m,e[20]=v,e[21]=h,e[22]=y):y=e[22],y},"ContainersPanel");function J(e){return(0,t.jsxDEV)(T,{"data-testid":`containers-row-${e.name}${e.instance===void 0?"":`-${e.instance}`}`,children:[(0,t.jsxDEV)(o,{className:"font-mono text-xs",children:e.name},void 0,!1),(0,t.jsxDEV)(o,{className:"max-w-40 truncate font-mono text-xs text-muted-foreground",title:e.instance,children:e.instance??"\u2014"},void 0,!1),(0,t.jsxDEV)(o,{children:(0,t.jsxDEV)(b,{variant:j[e.state],children:e.state},void 0,!1)},void 0,!1),(0,t.jsxDEV)(o,{className:"font-mono text-xs text-muted-foreground",children:e.event},void 0,!1),(0,t.jsxDEV)(o,{className:"max-w-64 truncate text-xs text-muted-foreground",title:e.detail,children:e.detail??"\u2014"},void 0,!1),(0,t.jsxDEV)(o,{className:"font-mono text-xs tabular-nums text-muted-foreground",children:e.exitCode??"\u2014"},void 0,!1),(0,t.jsxDEV)(o,{className:"text-xs tabular-nums text-muted-foreground",children:new Date(e.timestamp).toLocaleString()},void 0,!1)]},`${e.name}/${e.instance??""}`,!0)}x(J,"_temp");export{ee as ContainersPanel};
1
+ import{a as D}from"./chunk-WMDH2CIZ.js";import{b as _}from"./chunk-RD5UG2YL.js";import{a as O,b as $,c as k,d as T,e as r,f as o}from"./chunk-GTM65MVX.js";import{a as A,e as I}from"./chunk-Y572GMZE.js";import{b}from"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import{a as L}from"./chunk-TEWVD66F.js";import"./chunk-3LJEGSMK.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import{a as S}from"./chunk-TAD43CG5.js";import{d as E}from"./chunk-HBGS4SEX.js";import"./chunk-LXULVPEM.js";import{a as x,e as C,f as M,g as P,h as V}from"./chunk-RRCPZMC2.js";var B=C(P(),1),K=C(M(),1);var t=C(V(),1);var R="container:",F={error:"error",sleep:"sleeping",start:"running",stop:"stopped"},H=x(e=>{let n=e.indexOf(":");if(n===-1)return{event:e.trim()};let s=e.slice(n+1).trim(),a=e.slice(0,n).trim();return s===""?{event:a}:{detail:s,event:a}},"parseContainerMessage"),W=x(e=>{let n=new Map;for(let s of e){let a=s.functionPath??"";if(!a.startsWith(R))continue;let i=a.slice(R.length);if(i==="")continue;let l=JSON.stringify([i,s.instance??""]),d=n.get(l);if(d!==void 0&&d.timestamp>=s.timestamp)continue;let{detail:N,event:c}=H(s.message);n.set(l,{detail:N,event:c,exitCode:s.exitCode,instance:s.instance,level:s.level,name:i,state:F[c]??"unknown",timestamp:s.timestamp})}return[...n.values()].toSorted((s,a)=>s.name.localeCompare(a.name)||(s.instance??"").localeCompare(a.instance??""))},"foldContainerInstances"),j={error:"destructive",running:"success",sleeping:"info",stopped:"outline",unknown:"secondary"},G=x(e=>{let{entries:n}=e??{};return Array.isArray(n)?n:[]},"entriesOf"),ee=x(()=>{let e=(0,B.c)(23),n=E(),s,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={},a={live:!0,shardKey:""},e[0]=s,e[1]=a):(s=e[0],a=e[1]);let{data:i,error:l,liveError:d}=_(L.getLogs,s,a),N=i!==void 0,c;e[2]!==i?(c=W(G(i)),e[2]=i,e[3]=c):c=e[3];let g=c,m;e[4]!==l?(m=l!==null&&(0,t.jsxDEV)("p",{className:"text-sm text-destructive","data-testid":"containers-error",role:"alert",children:l},void 0,!1),e[4]=l,e[5]=m):m=e[5];let f;e[6]!==n?(f=n("Cloudflare Containers are observed from their lifecycle log stream. This shows the current state per instance \u2014 ports and health checks aren't carried in that stream."),e[6]=n,e[7]=f):f=e[7];let u;e[8]!==f?(u=(0,t.jsxDEV)("p",{className:"text-sm text-muted-foreground",children:f},void 0,!1),e[8]=f,e[9]=u):u=e[9];let p;e[10]!==d?(p=(0,t.jsxDEV)(D,{message:d,prefix:"containers"},void 0,!1),e[10]=d,e[11]=p):p=e[11];let v;e[12]!==u||e[13]!==p?(v=(0,t.jsxDEV)("div",{className:"flex flex-wrap items-center gap-2",children:[u,p]},void 0,!0),e[12]=u,e[13]=p,e[14]=v):v=e[14];let h;e[15]!==N||e[16]!==g||e[17]!==n?(h=N&&g.length===0?(0,t.jsxDEV)(S,{description:n("No container lifecycle activity yet. Instances declared with defineContainer show up here once they start, sleep, stop, or error."),testId:"containers-empty",title:n("No container activity")},void 0,!1):(0,t.jsxDEV)(A,{className:"overflow-hidden py-0",children:(0,t.jsxDEV)(I,{className:"px-0",children:(0,t.jsxDEV)(O,{"data-testid":"containers-table",children:[(0,t.jsxDEV)($,{children:(0,t.jsxDEV)(T,{children:[(0,t.jsxDEV)(r,{children:n("Container")},void 0,!1),(0,t.jsxDEV)(r,{children:n("Instance")},void 0,!1),(0,t.jsxDEV)(r,{children:n("State")},void 0,!1),(0,t.jsxDEV)(r,{children:n("Last event")},void 0,!1),(0,t.jsxDEV)(r,{children:n("Detail")},void 0,!1),(0,t.jsxDEV)(r,{children:n("Exit")},void 0,!1),(0,t.jsxDEV)(r,{children:n("When")},void 0,!1)]},void 0,!0)},void 0,!1),(0,t.jsxDEV)(k,{children:g.map(J)},void 0,!1)]},void 0,!0)},void 0,!1)},void 0,!1),e[15]=N,e[16]=g,e[17]=n,e[18]=h):h=e[18];let y;return e[19]!==m||e[20]!==v||e[21]!==h?(y=(0,t.jsxDEV)("div",{className:"flex flex-col gap-6","data-testid":"lunora-containers-panel",children:[m,v,h]},void 0,!0),e[19]=m,e[20]=v,e[21]=h,e[22]=y):y=e[22],y},"ContainersPanel");function J(e){return(0,t.jsxDEV)(T,{"data-testid":`containers-row-${e.name}${e.instance===void 0?"":`-${e.instance}`}`,children:[(0,t.jsxDEV)(o,{className:"font-mono text-xs",children:e.name},void 0,!1),(0,t.jsxDEV)(o,{className:"max-w-40 truncate font-mono text-xs text-muted-foreground",title:e.instance,children:e.instance??"\u2014"},void 0,!1),(0,t.jsxDEV)(o,{children:(0,t.jsxDEV)(b,{variant:j[e.state],children:e.state},void 0,!1)},void 0,!1),(0,t.jsxDEV)(o,{className:"font-mono text-xs text-muted-foreground",children:e.event},void 0,!1),(0,t.jsxDEV)(o,{className:"max-w-64 truncate text-xs text-muted-foreground",title:e.detail,children:e.detail??"\u2014"},void 0,!1),(0,t.jsxDEV)(o,{className:"font-mono text-xs tabular-nums text-muted-foreground",children:e.exitCode??"\u2014"},void 0,!1),(0,t.jsxDEV)(o,{className:"text-xs tabular-nums text-muted-foreground",children:new Date(e.timestamp).toLocaleString()},void 0,!1)]},`${e.name}/${e.instance??""}`,!0)}x(J,"_temp");export{ee as ContainersPanel};
@@ -1 +1 @@
1
- import{a as he,b as ue,c as me,d as ve,e as M}from"./chunk-JZLGLG4T.js";import"./chunk-3HGNPZBN.js";import"./chunk-APSSZB6Z.js";import"./chunk-QAFAJBAW.js";import{a as fe}from"./chunk-WMDH2CIZ.js";import"./chunk-SHERR7ZP.js";import"./chunk-5OIBXYZM.js";import"./chunk-L7SK4ZZD.js";import{a as oe}from"./chunk-2K47A3P6.js";import"./chunk-KEGAWN6Y.js";import{b as ie}from"./chunk-2YUYNNHQ.js";import{a as ne,b as de,c as ce,d as G,e as f,f as h}from"./chunk-GTM65MVX.js";import{a as _,e as ee}from"./chunk-Y572GMZE.js";import"./chunk-4QHKBC77.js";import{a as le}from"./chunk-F2YMCQ6B.js";import"./chunk-4PC7IXNY.js";import"./chunk-2MLA6WFH.js";import{R as Z}from"./chunk-VL23Y44O.js";import"./chunk-HV7G6DFP.js";import{c as b}from"./chunk-UK64ZSUW.js";import"./chunk-O3NAGRTR.js";import{b as D}from"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import{a as N}from"./chunk-MHGJUKCZ.js";import{f as J}from"./chunk-C7UZEQZ7.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import{a as te}from"./chunk-TAD43CG5.js";import{d as X,f as T,g as se,h as ae,m as x,q as re}from"./chunk-HBGS4SEX.js";import"./chunk-ZXLEXF4X.js";import{a as l,e as j,f as be,g as Te,h as Ce}from"./chunk-RRCPZMC2.js";var ge=j(Te(),1);var C=j(be(),1);var s=j(Ce(),1);var P="none",we=["all","open","resolved","ignored"],Ae=["critical","high","medium","low"],Re=T(N.resolveIssue),Ve=T(N.ignoreIssue),pe=T(N.assignIssue),Oe=T(N.setIssueSeverity),$e=l(r=>Array.isArray(r?.issues)?r.issues:[],"issuesOf"),Le=l(r=>r==="resolved"?"success":r==="ignored"?"secondary":"warning","statusVariant"),Ue=l(r=>r==="critical"?"destructive":r==="high"?"warning":r==="medium"?"info":"secondary","severityVariant"),Ze=l(r=>{let e=(0,ge.c)(44),{initialShardKey:Se}=r,a=X(),I=J(),[d,ye]=(0,C.useState)(Se??""),[o,xe]=(0,C.useState)("all"),[z,q]=(0,C.useState)(null),[u,Q]=(0,C.useState)(null),w;e[0]!==d?(w=d.trim(),e[0]=d,e[1]=w):w=e[1];let c=oe(w,400),A;e[2]!==o?(A=o==="all"?{}:{status:o},e[2]=o,e[3]=A):A=e[3];let R;e[4]!==c?(R={live:!0,shardKey:c},e[4]=c,e[5]=R):R=e[5];let{data:V,error:m,liveError:E}=ie(N.getIssues,A,R),H=V!==void 0,O;if(e[6]!==u||e[7]!==z||e[8]!==I||e[9]!==V||e[10]!==c||e[11]!==m||e[12]!==E||e[13]!==H||e[14]!==d||e[15]!==o||e[16]!==a){let W=$e(V),$;e[18]!==I||e[19]!==c?($=l(async(t,i,y)=>{Q(null),q(t);try{await I.query(i,{...y,hash:t},se(c))}catch(Ee){Q(ae(Ee))}q(null)},"t5"),e[18]=I,e[19]=c,e[20]=$):$=e[20];let n=$,L;e[21]!==n?(L=l(t=>i=>{if(i.key!=="Enter")return;let y=i.currentTarget.value.trim();x(n(t.hash,pe,{assignee:y===""?null:y}))},"t6"),e[21]=n,e[22]=L):L=e[22];let Ne=L,U;e[23]!==n?(U=l(t=>i=>{let y=i===null||i===P?null:i;x(n(t.hash,Oe,{severity:y}))},"t7"),e[23]=n,e[24]=U):U=e[24];let Ie=U,B;e[25]!==a?(B=l(t=>a(t==="all"?"All":t==="open"?"Open":t==="resolved"?"Resolved":"Ignored"),"t8"),e[25]=a,e[26]=B):B=e[26];let Y=B,F;e[27]!==m?(F=m!==null&&(0,s.jsxDEV)("p",{className:"text-sm text-destructive","data-testid":"issues-error",role:"alert",children:m},void 0,!1),e[27]=m,e[28]=F):F=e[28];let K;e[29]!==u?(K=u!==null&&(0,s.jsxDEV)("p",{className:"text-sm text-destructive","data-testid":"issues-action-error",role:"alert",children:u},void 0,!1),e[29]=u,e[30]=K):K=e[30];let v;e[31]!==d?(v=(0,s.jsxDEV)(le,{onChange:ye,testId:"issues-shard-input",value:d},void 0,!1),e[31]=d,e[32]=v):v=e[32];let p;e[33]!==E?(p=(0,s.jsxDEV)(fe,{message:E,prefix:"issues"},void 0,!1),e[33]=E,e[34]=p):p=e[34];let g;e[35]!==o||e[36]!==Y?(g=we.map(t=>(0,s.jsxDEV)(b,{"data-active":o===t?"":void 0,"data-testid":`issues-filter-${t}`,onClick:l(()=>{xe(t)},"onClick"),size:"xs",variant:o===t?"default":"outline",children:Y(t)},t,!1)),e[35]=o,e[36]=Y,e[37]=g):g=e[37];let S;e[38]!==g?(S=(0,s.jsxDEV)("div",{className:"ms-auto flex items-center gap-1","data-testid":"issues-status-filter",role:"group",children:g},void 0,!1),e[38]=g,e[39]=S):S=e[39];let k;e[40]!==v||e[41]!==p||e[42]!==S?(k=(0,s.jsxDEV)("div",{className:"flex flex-wrap items-center gap-2",children:[v,p,S]},void 0,!0),e[40]=v,e[41]=p,e[42]=S,e[43]=k):k=e[43],O=(0,s.jsxDEV)("div",{className:"flex flex-col gap-6","data-testid":"lunora-issues-panel",children:[F,K,k,H&&W.length===0?(0,s.jsxDEV)(te,{description:a("No grouped errors yet. When a function throws or a container crashes, matching errors fold into a single issue here."),testId:"issues-empty",title:a("No issues")},void 0,!1):(0,s.jsxDEV)(_,{className:"overflow-hidden py-0",children:(0,s.jsxDEV)(ee,{className:"px-0",children:(0,s.jsxDEV)(ne,{"data-testid":"issues-table",children:[(0,s.jsxDEV)(de,{children:(0,s.jsxDEV)(G,{children:[(0,s.jsxDEV)(f,{children:a("Issue")},void 0,!1),(0,s.jsxDEV)(f,{children:a("Status")},void 0,!1),(0,s.jsxDEV)(f,{children:a("Severity")},void 0,!1),(0,s.jsxDEV)(f,{children:a("Assignee")},void 0,!1),(0,s.jsxDEV)(f,{className:"text-right",children:a("Events")},void 0,!1),(0,s.jsxDEV)(f,{children:a("Last seen")},void 0,!1),(0,s.jsxDEV)(f,{className:"text-right",children:a("Actions")},void 0,!1)]},void 0,!0)},void 0,!1),(0,s.jsxDEV)(ce,{children:W.map(t=>{let i=z===t.hash;return(0,s.jsxDEV)(G,{"data-testid":`issues-row-${t.hash}`,children:[(0,s.jsxDEV)(h,{className:"max-w-80",children:[(0,s.jsxDEV)("div",{className:"truncate font-medium",title:t.title,children:t.title},void 0,!1),(0,s.jsxDEV)("div",{className:"truncate font-mono text-xs text-muted-foreground",title:t.culprit,children:t.culprit},void 0,!1)]},void 0,!0),(0,s.jsxDEV)(h,{children:(0,s.jsxDEV)(D,{"data-testid":`issues-status-${t.hash}`,variant:Le(t.status),children:t.status},void 0,!1)},void 0,!1),(0,s.jsxDEV)(h,{children:(0,s.jsxDEV)(he,{disabled:i,onValueChange:Ie(t),value:t.severity??P,children:[(0,s.jsxDEV)(me,{"aria-label":a("Set severity"),className:"h-7 w-[110px]","data-testid":`issues-severity-${t.hash}`,children:(0,s.jsxDEV)(ue,{placeholder:a("\u2014"),children:t.severity===void 0?(0,s.jsxDEV)("span",{className:"text-muted-foreground",children:a("\u2014")},void 0,!1):(0,s.jsxDEV)(D,{variant:Ue(t.severity),children:t.severity},void 0,!1)},void 0,!1)},void 0,!1),(0,s.jsxDEV)(ve,{children:[Ae.map(Be),(0,s.jsxDEV)(M,{value:P,children:a("Clear")},void 0,!1)]},void 0,!0)]},void 0,!0)},void 0,!1),(0,s.jsxDEV)(h,{children:(0,s.jsxDEV)(Z,{"aria-label":a("Assignee"),className:"h-7 w-32","data-testid":`issues-assignee-${t.hash}`,defaultValue:t.assignee??"",disabled:i,onKeyDown:Ne(t),placeholder:a("Unassigned")},t.assignee??"",!1)},void 0,!1),(0,s.jsxDEV)(h,{className:"text-right",children:(0,s.jsxDEV)(D,{variant:"secondary",children:t.count},void 0,!1)},void 0,!1),(0,s.jsxDEV)(h,{className:"text-xs tabular-nums text-muted-foreground",children:re(t.lastSeen)},void 0,!1),(0,s.jsxDEV)(h,{className:"text-right",children:(0,s.jsxDEV)("div",{className:"flex justify-end gap-1",children:[t.status!=="resolved"&&(0,s.jsxDEV)(b,{"data-testid":`issues-resolve-${t.hash}`,disabled:i,onClick:l(()=>{x(n(t.hash,Re,{}))},"onClick"),size:"xs",variant:"outline",children:a("Resolve")},void 0,!1),t.status!=="ignored"&&(0,s.jsxDEV)(b,{"data-testid":`issues-ignore-${t.hash}`,disabled:i,onClick:l(()=>{x(n(t.hash,Ve,{}))},"onClick"),size:"xs",variant:"ghost",children:a("Ignore")},void 0,!1),t.status!=="open"&&(0,s.jsxDEV)(b,{"data-testid":`issues-reopen-${t.hash}`,disabled:i,onClick:l(()=>{x(n(t.hash,pe,{assignee:t.assignee??null}))},"onClick"),size:"xs",variant:"ghost",children:a("Reopen")},void 0,!1)]},void 0,!0)},void 0,!1)]},t.hash,!0)})},void 0,!1)]},void 0,!0)},void 0,!1)},void 0,!1)]},void 0,!0),e[6]=u,e[7]=z,e[8]=I,e[9]=V,e[10]=c,e[11]=m,e[12]=E,e[13]=H,e[14]=d,e[15]=o,e[16]=a,e[17]=O}else O=e[17];return O},"IssuesPanel");function Be(r){return(0,s.jsxDEV)(M,{value:r,children:r},r,!1)}l(Be,"_temp");export{Ze as IssuesPanel};
1
+ import{a as he,b as ue,c as me,d as ve,e as M}from"./chunk-JZLGLG4T.js";import"./chunk-3HGNPZBN.js";import{a as fe}from"./chunk-WMDH2CIZ.js";import"./chunk-APSSZB6Z.js";import"./chunk-QAFAJBAW.js";import"./chunk-SHERR7ZP.js";import"./chunk-5OIBXYZM.js";import"./chunk-L7SK4ZZD.js";import{a as oe}from"./chunk-2K47A3P6.js";import"./chunk-KEGAWN6Y.js";import{b as ie}from"./chunk-RD5UG2YL.js";import{a as ne,b as de,c as ce,d as G,e as f,f as h}from"./chunk-GTM65MVX.js";import{a as _,e as ee}from"./chunk-Y572GMZE.js";import"./chunk-4QHKBC77.js";import{a as le}from"./chunk-F2YMCQ6B.js";import"./chunk-4PC7IXNY.js";import"./chunk-2MLA6WFH.js";import{R as Z}from"./chunk-VL23Y44O.js";import"./chunk-HV7G6DFP.js";import{c as b}from"./chunk-UK64ZSUW.js";import"./chunk-O3NAGRTR.js";import{b as D}from"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import{a as N}from"./chunk-TEWVD66F.js";import{f as J}from"./chunk-3LJEGSMK.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import{a as te}from"./chunk-TAD43CG5.js";import{d as X,f as T,g as se,h as ae,m as x,q as re}from"./chunk-HBGS4SEX.js";import"./chunk-LXULVPEM.js";import{a as l,e as j,f as be,g as Te,h as Ce}from"./chunk-RRCPZMC2.js";var ge=j(Te(),1);var C=j(be(),1);var s=j(Ce(),1);var P="none",we=["all","open","resolved","ignored"],Ae=["critical","high","medium","low"],Re=T(N.resolveIssue),Ve=T(N.ignoreIssue),pe=T(N.assignIssue),Oe=T(N.setIssueSeverity),$e=l(r=>Array.isArray(r?.issues)?r.issues:[],"issuesOf"),Le=l(r=>r==="resolved"?"success":r==="ignored"?"secondary":"warning","statusVariant"),Ue=l(r=>r==="critical"?"destructive":r==="high"?"warning":r==="medium"?"info":"secondary","severityVariant"),Ze=l(r=>{let e=(0,ge.c)(44),{initialShardKey:Se}=r,a=X(),I=J(),[d,ye]=(0,C.useState)(Se??""),[o,xe]=(0,C.useState)("all"),[z,q]=(0,C.useState)(null),[u,Q]=(0,C.useState)(null),w;e[0]!==d?(w=d.trim(),e[0]=d,e[1]=w):w=e[1];let c=oe(w,400),A;e[2]!==o?(A=o==="all"?{}:{status:o},e[2]=o,e[3]=A):A=e[3];let R;e[4]!==c?(R={live:!0,shardKey:c},e[4]=c,e[5]=R):R=e[5];let{data:V,error:m,liveError:E}=ie(N.getIssues,A,R),H=V!==void 0,O;if(e[6]!==u||e[7]!==z||e[8]!==I||e[9]!==V||e[10]!==c||e[11]!==m||e[12]!==E||e[13]!==H||e[14]!==d||e[15]!==o||e[16]!==a){let W=$e(V),$;e[18]!==I||e[19]!==c?($=l(async(t,i,y)=>{Q(null),q(t);try{await I.query(i,{...y,hash:t},se(c))}catch(Ee){Q(ae(Ee))}q(null)},"t5"),e[18]=I,e[19]=c,e[20]=$):$=e[20];let n=$,L;e[21]!==n?(L=l(t=>i=>{if(i.key!=="Enter")return;let y=i.currentTarget.value.trim();x(n(t.hash,pe,{assignee:y===""?null:y}))},"t6"),e[21]=n,e[22]=L):L=e[22];let Ne=L,U;e[23]!==n?(U=l(t=>i=>{let y=i===null||i===P?null:i;x(n(t.hash,Oe,{severity:y}))},"t7"),e[23]=n,e[24]=U):U=e[24];let Ie=U,B;e[25]!==a?(B=l(t=>a(t==="all"?"All":t==="open"?"Open":t==="resolved"?"Resolved":"Ignored"),"t8"),e[25]=a,e[26]=B):B=e[26];let Y=B,F;e[27]!==m?(F=m!==null&&(0,s.jsxDEV)("p",{className:"text-sm text-destructive","data-testid":"issues-error",role:"alert",children:m},void 0,!1),e[27]=m,e[28]=F):F=e[28];let K;e[29]!==u?(K=u!==null&&(0,s.jsxDEV)("p",{className:"text-sm text-destructive","data-testid":"issues-action-error",role:"alert",children:u},void 0,!1),e[29]=u,e[30]=K):K=e[30];let v;e[31]!==d?(v=(0,s.jsxDEV)(le,{onChange:ye,testId:"issues-shard-input",value:d},void 0,!1),e[31]=d,e[32]=v):v=e[32];let p;e[33]!==E?(p=(0,s.jsxDEV)(fe,{message:E,prefix:"issues"},void 0,!1),e[33]=E,e[34]=p):p=e[34];let g;e[35]!==o||e[36]!==Y?(g=we.map(t=>(0,s.jsxDEV)(b,{"data-active":o===t?"":void 0,"data-testid":`issues-filter-${t}`,onClick:l(()=>{xe(t)},"onClick"),size:"xs",variant:o===t?"default":"outline",children:Y(t)},t,!1)),e[35]=o,e[36]=Y,e[37]=g):g=e[37];let S;e[38]!==g?(S=(0,s.jsxDEV)("div",{className:"ms-auto flex items-center gap-1","data-testid":"issues-status-filter",role:"group",children:g},void 0,!1),e[38]=g,e[39]=S):S=e[39];let k;e[40]!==v||e[41]!==p||e[42]!==S?(k=(0,s.jsxDEV)("div",{className:"flex flex-wrap items-center gap-2",children:[v,p,S]},void 0,!0),e[40]=v,e[41]=p,e[42]=S,e[43]=k):k=e[43],O=(0,s.jsxDEV)("div",{className:"flex flex-col gap-6","data-testid":"lunora-issues-panel",children:[F,K,k,H&&W.length===0?(0,s.jsxDEV)(te,{description:a("No grouped errors yet. When a function throws or a container crashes, matching errors fold into a single issue here."),testId:"issues-empty",title:a("No issues")},void 0,!1):(0,s.jsxDEV)(_,{className:"overflow-hidden py-0",children:(0,s.jsxDEV)(ee,{className:"px-0",children:(0,s.jsxDEV)(ne,{"data-testid":"issues-table",children:[(0,s.jsxDEV)(de,{children:(0,s.jsxDEV)(G,{children:[(0,s.jsxDEV)(f,{children:a("Issue")},void 0,!1),(0,s.jsxDEV)(f,{children:a("Status")},void 0,!1),(0,s.jsxDEV)(f,{children:a("Severity")},void 0,!1),(0,s.jsxDEV)(f,{children:a("Assignee")},void 0,!1),(0,s.jsxDEV)(f,{className:"text-right",children:a("Events")},void 0,!1),(0,s.jsxDEV)(f,{children:a("Last seen")},void 0,!1),(0,s.jsxDEV)(f,{className:"text-right",children:a("Actions")},void 0,!1)]},void 0,!0)},void 0,!1),(0,s.jsxDEV)(ce,{children:W.map(t=>{let i=z===t.hash;return(0,s.jsxDEV)(G,{"data-testid":`issues-row-${t.hash}`,children:[(0,s.jsxDEV)(h,{className:"max-w-80",children:[(0,s.jsxDEV)("div",{className:"truncate font-medium",title:t.title,children:t.title},void 0,!1),(0,s.jsxDEV)("div",{className:"truncate font-mono text-xs text-muted-foreground",title:t.culprit,children:t.culprit},void 0,!1)]},void 0,!0),(0,s.jsxDEV)(h,{children:(0,s.jsxDEV)(D,{"data-testid":`issues-status-${t.hash}`,variant:Le(t.status),children:t.status},void 0,!1)},void 0,!1),(0,s.jsxDEV)(h,{children:(0,s.jsxDEV)(he,{disabled:i,onValueChange:Ie(t),value:t.severity??P,children:[(0,s.jsxDEV)(me,{"aria-label":a("Set severity"),className:"h-7 w-[110px]","data-testid":`issues-severity-${t.hash}`,children:(0,s.jsxDEV)(ue,{placeholder:a("\u2014"),children:t.severity===void 0?(0,s.jsxDEV)("span",{className:"text-muted-foreground",children:a("\u2014")},void 0,!1):(0,s.jsxDEV)(D,{variant:Ue(t.severity),children:t.severity},void 0,!1)},void 0,!1)},void 0,!1),(0,s.jsxDEV)(ve,{children:[Ae.map(Be),(0,s.jsxDEV)(M,{value:P,children:a("Clear")},void 0,!1)]},void 0,!0)]},void 0,!0)},void 0,!1),(0,s.jsxDEV)(h,{children:(0,s.jsxDEV)(Z,{"aria-label":a("Assignee"),className:"h-7 w-32","data-testid":`issues-assignee-${t.hash}`,defaultValue:t.assignee??"",disabled:i,onKeyDown:Ne(t),placeholder:a("Unassigned")},t.assignee??"",!1)},void 0,!1),(0,s.jsxDEV)(h,{className:"text-right",children:(0,s.jsxDEV)(D,{variant:"secondary",children:t.count},void 0,!1)},void 0,!1),(0,s.jsxDEV)(h,{className:"text-xs tabular-nums text-muted-foreground",children:re(t.lastSeen)},void 0,!1),(0,s.jsxDEV)(h,{className:"text-right",children:(0,s.jsxDEV)("div",{className:"flex justify-end gap-1",children:[t.status!=="resolved"&&(0,s.jsxDEV)(b,{"data-testid":`issues-resolve-${t.hash}`,disabled:i,onClick:l(()=>{x(n(t.hash,Re,{}))},"onClick"),size:"xs",variant:"outline",children:a("Resolve")},void 0,!1),t.status!=="ignored"&&(0,s.jsxDEV)(b,{"data-testid":`issues-ignore-${t.hash}`,disabled:i,onClick:l(()=>{x(n(t.hash,Ve,{}))},"onClick"),size:"xs",variant:"ghost",children:a("Ignore")},void 0,!1),t.status!=="open"&&(0,s.jsxDEV)(b,{"data-testid":`issues-reopen-${t.hash}`,disabled:i,onClick:l(()=>{x(n(t.hash,pe,{assignee:t.assignee??null}))},"onClick"),size:"xs",variant:"ghost",children:a("Reopen")},void 0,!1)]},void 0,!0)},void 0,!1)]},t.hash,!0)})},void 0,!1)]},void 0,!0)},void 0,!1)},void 0,!1)]},void 0,!0),e[6]=u,e[7]=z,e[8]=I,e[9]=V,e[10]=c,e[11]=m,e[12]=E,e[13]=H,e[14]=d,e[15]=o,e[16]=a,e[17]=O}else O=e[17];return O},"IssuesPanel");function Be(r){return(0,s.jsxDEV)(M,{value:r,children:r},r,!1)}l(Be,"_temp");export{Ze as IssuesPanel};
@@ -1,4 +1,4 @@
1
- import{a as pS,b as rp,c as bS,d as hp,e as ES,f as TS,k as AS}from"./chunk-LT2HPR6R.js";import"./chunk-ZPUO7FNI.js";import"./chunk-WVTPZ6CM.js";import"./chunk-SHERR7ZP.js";import"./chunk-5OIBXYZM.js";import"./chunk-L7SK4ZZD.js";import"./chunk-ZIGWVHCS.js";import"./chunk-7TJJXVSE.js";import"./chunk-OXHHSUXO.js";import{a as SS}from"./chunk-2K47A3P6.js";import"./chunk-KEGAWN6Y.js";import"./chunk-2YUYNNHQ.js";import"./chunk-Y572GMZE.js";import"./chunk-KZ6INM5M.js";import"./chunk-4QHKBC77.js";import{a as dp}from"./chunk-2MLA6WFH.js";import{R as yS}from"./chunk-VL23Y44O.js";import{a as ET}from"./chunk-HV7G6DFP.js";import{c as gS}from"./chunk-UK64ZSUW.js";import"./chunk-O3NAGRTR.js";import"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import"./chunk-MHGJUKCZ.js";import{a as rS,e as hS}from"./chunk-C7UZEQZ7.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import"./chunk-TAD43CG5.js";import{a as mS,d as fp,n as vS}from"./chunk-HBGS4SEX.js";import{b as sS}from"./chunk-ZXLEXF4X.js";import{a as o,c as gf,e as Wi,f as fS,g as TT,h as dS,j as sp}from"./chunk-RRCPZMC2.js";var DS=gf(Ge=>{"use strict";(function(){function he(){if(ot=!1,F){var z=Ge.unstable_now();Ae=z;var Y=!0;try{e:{me=!1,He&&(He=!1,pt(Ke),Ke=-1),ie=!0;var q=Z;try{t:{for(fe(z),le=G(Q);le!==null&&!(le.expirationTime>z&&A());){var we=le.callback;if(typeof we=="function"){le.callback=null,Z=le.priorityLevel;var Le=we(le.expirationTime<=z);if(z=Ge.unstable_now(),typeof Le=="function"){le.callback=Le,fe(z),Y=!0;break t}le===G(Q)&&j(Q),fe(z)}else j(Q);le=G(Q)}if(le!==null)Y=!0;else{var ba=G(pe);ba!==null&&ne(X,ba.startTime-z),Y=!1}}break e}finally{le=null,Z=q,ie=!1}Y=void 0}}finally{Y?ve():F=!1}}}o(he,"performWorkUntilDeadline");function r(z,Y){var q=z.length;z.push(Y);e:for(;0<q;){var we=q-1>>>1,Le=z[we];if(0<L(Le,Y))z[we]=Y,z[q]=Le,q=we;else break e}}o(r,"push");function G(z){return z.length===0?null:z[0]}o(G,"peek");function j(z){if(z.length===0)return null;var Y=z[0],q=z.pop();if(q!==Y){z[0]=q;e:for(var we=0,Le=z.length,ba=Le>>>1;we<ba;){var iu=2*(we+1)-1,yo=z[iu],Sn=iu+1,it=z[Sn];if(0>L(yo,q))Sn<Le&&0>L(it,yo)?(z[we]=it,z[Sn]=q,we=Sn):(z[we]=yo,z[iu]=q,we=iu);else if(Sn<Le&&0>L(it,q))z[we]=it,z[Sn]=q,we=Sn;else break e}}return Y}o(j,"pop");function L(z,Y){var q=z.sortIndex-Y.sortIndex;return q!==0?q:z.id-Y.id}o(L,"compare");function fe(z){for(var Y=G(pe);Y!==null;){if(Y.callback===null)j(pe);else if(Y.startTime<=z)j(pe),Y.sortIndex=Y.expirationTime,r(Q,Y);else break;Y=G(pe)}}o(fe,"advanceTimers");function X(z){if(He=!1,fe(z),!me)if(G(Q)!==null)me=!0,F||(F=!0,ve());else{var Y=G(pe);Y!==null&&ne(X,Y.startTime-z)}}o(X,"handleTimeout");function A(){return ot?!0:!(Ge.unstable_now()-Ae<U)}o(A,"shouldYieldToHost");function ne(z,Y){Ke=Gt(function(){z(Ge.unstable_now())},Y)}if(o(ne,"requestHostTimeout"),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Ge.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var Oe=performance;Ge.unstable_now=function(){return Oe.now()}}else{var Te=Date,ee=Te.now();Ge.unstable_now=function(){return Te.now()-ee}}var Q=[],pe=[],ze=1,le=null,Z=3,ie=!1,me=!1,He=!1,ot=!1,Gt=typeof setTimeout=="function"?setTimeout:null,pt=typeof clearTimeout=="function"?clearTimeout:null,bt=typeof setImmediate<"u"?setImmediate:null,F=!1,Ke=-1,U=5,Ae=-1;if(typeof bt=="function")var ve=o(function(){bt(he)},"schedulePerformWorkUntilDeadline");else if(typeof MessageChannel<"u"){var ce=new MessageChannel,ul=ce.port2;ce.port1.onmessage=he,ve=o(function(){ul.postMessage(null)},"schedulePerformWorkUntilDeadline")}else ve=o(function(){Gt(he,0)},"schedulePerformWorkUntilDeadline");Ge.unstable_IdlePriority=5,Ge.unstable_ImmediatePriority=1,Ge.unstable_LowPriority=4,Ge.unstable_NormalPriority=3,Ge.unstable_Profiling=null,Ge.unstable_UserBlockingPriority=2,Ge.unstable_cancelCallback=function(z){z.callback=null},Ge.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<z?Math.floor(1e3/z):5},Ge.unstable_getCurrentPriorityLevel=function(){return Z},Ge.unstable_next=function(z){switch(Z){case 1:case 2:case 3:var Y=3;break;default:Y=Z}var q=Z;Z=Y;try{return z()}finally{Z=q}},Ge.unstable_requestPaint=function(){ot=!0},Ge.unstable_runWithPriority=function(z,Y){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var q=Z;Z=z;try{return Y()}finally{Z=q}},Ge.unstable_scheduleCallback=function(z,Y,q){var we=Ge.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?we+q:we):q=we,z){case 1:var Le=-1;break;case 2:Le=250;break;case 5:Le=1073741823;break;case 4:Le=1e4;break;default:Le=5e3}return Le=q+Le,z={id:ze++,callback:Y,priorityLevel:z,startTime:q,expirationTime:Le,sortIndex:-1},q>we?(z.sortIndex=q,r(pe,z),G(Q)===null&&z===G(pe)&&(He?(pt(Ke),Ke=-1):He=!0,ne(X,q-we))):(z.sortIndex=Le,r(Q,z),me||ie||(me=!0,F||(F=!0,ve()))),z},Ge.unstable_shouldYield=A,Ge.unstable_wrapCallback=function(z){var Y=Z;return function(){var q=Z;Z=Y;try{return z.apply(this,arguments)}finally{Z=q}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var OS=gf((BT,RS)=>{"use strict";RS.exports=DS()});var zS=gf(vf=>{"use strict";(function(){function he(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}o(he,"findHook");function r(e,t,n,l){if(n>=t.length)return l;var a=t[n],u=lt(e)?e.slice():I({},e);return u[a]=r(e[a],t,n+1,l),u}o(r,"copyWithSetImpl");function G(e,t,n){if(t.length!==n.length)console.warn("copyWithRename() expects paths of the same length");else{for(var l=0;l<n.length-1;l++)if(t[l]!==n[l]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return j(e,t,n,0)}}o(G,"copyWithRename");function j(e,t,n,l){var a=t[l],u=lt(e)?e.slice():I({},e);return l+1===t.length?(u[n[l]]=u[a],lt(u)?u.splice(a,1):delete u[a]):u[a]=j(e[a],t,n,l+1),u}o(j,"copyWithRenameImpl");function L(e,t,n){var l=t[n],a=lt(e)?e.slice():I({},e);return n+1===t.length?(lt(a)?a.splice(l,1):delete a[l],a):(a[l]=L(e[l],t,n+1),a)}o(L,"copyWithDeleteImpl");function fe(){return!1}o(fe,"shouldSuspendImpl");function X(){return null}o(X,"shouldErrorImpl");function A(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}o(A,"warnInvalidHookAccess");function ne(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}o(ne,"warnInvalidContextAccess");function Oe(){}o(Oe,"noop");function Te(){}o(Te,"warnForMissingKey");function ee(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")}o(ee,"setToSortedString");function Q(e,t,n,l){return new sb(e,t,n,l)}o(Q,"createFiber");function pe(e,t){e.context===Pl&&(Cd(e.current,2,t,e,null,null),Du())}o(pe,"scheduleRoot");function ze(e,t){if(sn!==null){var n=t.staleFamilies;t=t.updatedFamilies,Jo(),mm(e.current,t,n),Du()}}o(ze,"scheduleRefresh");function le(e){sn=e}o(le,"setRefreshHandler");function Z(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}o(Z,"isValidContainer");function ie(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}o(ie,"getNearestMountedFiber");function me(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}o(me,"getSuspenseInstanceFromFiber");function He(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}o(He,"getActivityInstanceFromFiber");function ot(e){if(ie(e)!==e)throw Error("Unable to find node on an unmounted component.")}o(ot,"assertIsMounted");function Gt(e){var t=e.alternate;if(!t){if(t=ie(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,l=t;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return ot(a),e;if(u===l)return ot(a),t;u=u.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==l.return)n=a,l=u;else{for(var i=!1,c=a.child;c;){if(c===n){i=!0,n=a,l=u;break}if(c===l){i=!0,l=a,n=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===n){i=!0,n=u,l=a;break}if(c===l){i=!0,l=u,n=a;break}c=c.sibling}if(!i)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==l)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(n.tag!==3)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}o(Gt,"findCurrentFiberUsingSlowPath");function pt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=pt(e),t!==null)return t;e=e.sibling}return null}o(pt,"findCurrentHostFiberImpl");function bt(e){return e===null||typeof e!="object"?null:(e=Tg&&e[Tg]||e["@@iterator"],typeof e=="function"?e:null)}o(bt,"getIteratorFn");function F(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===_2?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _u:return"Fragment";case Bd:return"Profiler";case fs:return"StrictMode";case qd:return"Suspense";case jd:return"SuspenseList";case Yd:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Uu:return"Portal";case Kn:return e.displayName||"Context";case Nd:return(e._context.displayName||"Context")+".Consumer";case ni:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rs:return t=e.displayName||null,t!==null?t:F(e.type)||"Memo";case kt:t=e._payload,e=e._init;try{return F(e(t))}catch{}}return null}o(F,"getComponentNameFromType");function Ke(e){return typeof e.tag=="number"?U(e):typeof e.name=="string"?e.name:null}o(Ke,"getComponentNameFromOwner");function U(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===fs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name=="string")return t[n].name}if(e.return!==null)return U(e.return)}return null}o(U,"getComponentNameFromFiber");function Ae(e){return{current:e}}o(Ae,"createCursor");function ve(e,t){0>ml?console.error("Unexpected pop."):(t!==Ld[ml]&&console.error("Unexpected Fiber popped."),e.current=Gd[ml],Gd[ml]=null,Ld[ml]=null,ml--)}o(ve,"pop");function ce(e,t,n){ml++,Gd[ml]=e.current,Ld[ml]=n,e.current=t}o(ce,"push");function ul(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}o(ul,"requiredContext");function z(e,t){ce($l,t,e),ce(li,e,e),ce(Jl,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?Jy(t):Ml;break;default:if(n=t.tagName,t=t.namespaceURI)t=Jy(t),t=$y(t,n);else switch(n){case"svg":t=ro;break;case"math":t=ff;break;default:t=Ml}}n=n.toLowerCase(),n=Gp(null,n),n={context:t,ancestorInfo:n},ve(Jl,e),ce(Jl,n,e)}o(z,"pushHostContainer");function Y(e){ve(Jl,e),ve(li,e),ve($l,e)}o(Y,"popHostContainer");function q(){return ul(Jl.current)}o(q,"getHostContext");function we(e){e.memoizedState!==null&&ce(ds,e,e);var t=ul(Jl.current),n=e.type,l=$y(t.context,n);n=Gp(t.ancestorInfo,n),l={context:l,ancestorInfo:n},t!==l&&(ce(li,e,e),ce(Jl,l,e))}o(we,"pushHostContext");function Le(e){li.current===e&&(ve(Jl,e),ve(li,e)),ds.current===e&&(ve(ds,e),Ki._currentValue=ou)}o(Le,"popHostContext");function ba(){}o(ba,"disabledLog");function iu(){if(ai===0){Ag=console.log,Dg=console.info,Rg=console.warn,Og=console.error,zg=console.group,Cg=console.groupCollapsed,Mg=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ba,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ai++}o(iu,"disableLogs");function yo(){if(ai--,ai===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Ag}),info:I({},e,{value:Dg}),warn:I({},e,{value:Rg}),error:I({},e,{value:Og}),group:I({},e,{value:zg}),groupCollapsed:I({},e,{value:Cg}),groupEnd:I({},e,{value:Mg})})}0>ai&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}o(yo,"reenableLogs");function Sn(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
1
+ import{a as pS,b as rp,c as bS,d as hp,e as ES,f as TS,k as AS}from"./chunk-5QT5JRXD.js";import"./chunk-ZPUO7FNI.js";import"./chunk-WVTPZ6CM.js";import"./chunk-SHERR7ZP.js";import"./chunk-5OIBXYZM.js";import"./chunk-L7SK4ZZD.js";import"./chunk-ZIGWVHCS.js";import"./chunk-7TJJXVSE.js";import"./chunk-OXHHSUXO.js";import{a as SS}from"./chunk-2K47A3P6.js";import"./chunk-KEGAWN6Y.js";import"./chunk-RD5UG2YL.js";import"./chunk-Y572GMZE.js";import"./chunk-KZ6INM5M.js";import"./chunk-4QHKBC77.js";import{a as dp}from"./chunk-2MLA6WFH.js";import{R as yS}from"./chunk-VL23Y44O.js";import{a as ET}from"./chunk-HV7G6DFP.js";import{c as gS}from"./chunk-UK64ZSUW.js";import"./chunk-O3NAGRTR.js";import"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import"./chunk-TEWVD66F.js";import{a as rS,e as hS}from"./chunk-3LJEGSMK.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import"./chunk-TAD43CG5.js";import{a as mS,d as fp,n as vS}from"./chunk-HBGS4SEX.js";import{b as sS}from"./chunk-LXULVPEM.js";import{a as o,c as gf,e as Wi,f as fS,g as TT,h as dS,j as sp}from"./chunk-RRCPZMC2.js";var DS=gf(Ge=>{"use strict";(function(){function he(){if(ot=!1,F){var z=Ge.unstable_now();Ae=z;var Y=!0;try{e:{me=!1,He&&(He=!1,pt(Ke),Ke=-1),ie=!0;var q=Z;try{t:{for(fe(z),le=G(Q);le!==null&&!(le.expirationTime>z&&A());){var we=le.callback;if(typeof we=="function"){le.callback=null,Z=le.priorityLevel;var Le=we(le.expirationTime<=z);if(z=Ge.unstable_now(),typeof Le=="function"){le.callback=Le,fe(z),Y=!0;break t}le===G(Q)&&j(Q),fe(z)}else j(Q);le=G(Q)}if(le!==null)Y=!0;else{var ba=G(pe);ba!==null&&ne(X,ba.startTime-z),Y=!1}}break e}finally{le=null,Z=q,ie=!1}Y=void 0}}finally{Y?ve():F=!1}}}o(he,"performWorkUntilDeadline");function r(z,Y){var q=z.length;z.push(Y);e:for(;0<q;){var we=q-1>>>1,Le=z[we];if(0<L(Le,Y))z[we]=Y,z[q]=Le,q=we;else break e}}o(r,"push");function G(z){return z.length===0?null:z[0]}o(G,"peek");function j(z){if(z.length===0)return null;var Y=z[0],q=z.pop();if(q!==Y){z[0]=q;e:for(var we=0,Le=z.length,ba=Le>>>1;we<ba;){var iu=2*(we+1)-1,yo=z[iu],Sn=iu+1,it=z[Sn];if(0>L(yo,q))Sn<Le&&0>L(it,yo)?(z[we]=it,z[Sn]=q,we=Sn):(z[we]=yo,z[iu]=q,we=iu);else if(Sn<Le&&0>L(it,q))z[we]=it,z[Sn]=q,we=Sn;else break e}}return Y}o(j,"pop");function L(z,Y){var q=z.sortIndex-Y.sortIndex;return q!==0?q:z.id-Y.id}o(L,"compare");function fe(z){for(var Y=G(pe);Y!==null;){if(Y.callback===null)j(pe);else if(Y.startTime<=z)j(pe),Y.sortIndex=Y.expirationTime,r(Q,Y);else break;Y=G(pe)}}o(fe,"advanceTimers");function X(z){if(He=!1,fe(z),!me)if(G(Q)!==null)me=!0,F||(F=!0,ve());else{var Y=G(pe);Y!==null&&ne(X,Y.startTime-z)}}o(X,"handleTimeout");function A(){return ot?!0:!(Ge.unstable_now()-Ae<U)}o(A,"shouldYieldToHost");function ne(z,Y){Ke=Gt(function(){z(Ge.unstable_now())},Y)}if(o(ne,"requestHostTimeout"),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Ge.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var Oe=performance;Ge.unstable_now=function(){return Oe.now()}}else{var Te=Date,ee=Te.now();Ge.unstable_now=function(){return Te.now()-ee}}var Q=[],pe=[],ze=1,le=null,Z=3,ie=!1,me=!1,He=!1,ot=!1,Gt=typeof setTimeout=="function"?setTimeout:null,pt=typeof clearTimeout=="function"?clearTimeout:null,bt=typeof setImmediate<"u"?setImmediate:null,F=!1,Ke=-1,U=5,Ae=-1;if(typeof bt=="function")var ve=o(function(){bt(he)},"schedulePerformWorkUntilDeadline");else if(typeof MessageChannel<"u"){var ce=new MessageChannel,ul=ce.port2;ce.port1.onmessage=he,ve=o(function(){ul.postMessage(null)},"schedulePerformWorkUntilDeadline")}else ve=o(function(){Gt(he,0)},"schedulePerformWorkUntilDeadline");Ge.unstable_IdlePriority=5,Ge.unstable_ImmediatePriority=1,Ge.unstable_LowPriority=4,Ge.unstable_NormalPriority=3,Ge.unstable_Profiling=null,Ge.unstable_UserBlockingPriority=2,Ge.unstable_cancelCallback=function(z){z.callback=null},Ge.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<z?Math.floor(1e3/z):5},Ge.unstable_getCurrentPriorityLevel=function(){return Z},Ge.unstable_next=function(z){switch(Z){case 1:case 2:case 3:var Y=3;break;default:Y=Z}var q=Z;Z=Y;try{return z()}finally{Z=q}},Ge.unstable_requestPaint=function(){ot=!0},Ge.unstable_runWithPriority=function(z,Y){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var q=Z;Z=z;try{return Y()}finally{Z=q}},Ge.unstable_scheduleCallback=function(z,Y,q){var we=Ge.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?we+q:we):q=we,z){case 1:var Le=-1;break;case 2:Le=250;break;case 5:Le=1073741823;break;case 4:Le=1e4;break;default:Le=5e3}return Le=q+Le,z={id:ze++,callback:Y,priorityLevel:z,startTime:q,expirationTime:Le,sortIndex:-1},q>we?(z.sortIndex=q,r(pe,z),G(Q)===null&&z===G(pe)&&(He?(pt(Ke),Ke=-1):He=!0,ne(X,q-we))):(z.sortIndex=Le,r(Q,z),me||ie||(me=!0,F||(F=!0,ve()))),z},Ge.unstable_shouldYield=A,Ge.unstable_wrapCallback=function(z){var Y=Z;return function(){var q=Z;Z=Y;try{return z.apply(this,arguments)}finally{Z=q}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var OS=gf((BT,RS)=>{"use strict";RS.exports=DS()});var zS=gf(vf=>{"use strict";(function(){function he(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}o(he,"findHook");function r(e,t,n,l){if(n>=t.length)return l;var a=t[n],u=lt(e)?e.slice():I({},e);return u[a]=r(e[a],t,n+1,l),u}o(r,"copyWithSetImpl");function G(e,t,n){if(t.length!==n.length)console.warn("copyWithRename() expects paths of the same length");else{for(var l=0;l<n.length-1;l++)if(t[l]!==n[l]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return j(e,t,n,0)}}o(G,"copyWithRename");function j(e,t,n,l){var a=t[l],u=lt(e)?e.slice():I({},e);return l+1===t.length?(u[n[l]]=u[a],lt(u)?u.splice(a,1):delete u[a]):u[a]=j(e[a],t,n,l+1),u}o(j,"copyWithRenameImpl");function L(e,t,n){var l=t[n],a=lt(e)?e.slice():I({},e);return n+1===t.length?(lt(a)?a.splice(l,1):delete a[l],a):(a[l]=L(e[l],t,n+1),a)}o(L,"copyWithDeleteImpl");function fe(){return!1}o(fe,"shouldSuspendImpl");function X(){return null}o(X,"shouldErrorImpl");function A(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}o(A,"warnInvalidHookAccess");function ne(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}o(ne,"warnInvalidContextAccess");function Oe(){}o(Oe,"noop");function Te(){}o(Te,"warnForMissingKey");function ee(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")}o(ee,"setToSortedString");function Q(e,t,n,l){return new sb(e,t,n,l)}o(Q,"createFiber");function pe(e,t){e.context===Pl&&(Cd(e.current,2,t,e,null,null),Du())}o(pe,"scheduleRoot");function ze(e,t){if(sn!==null){var n=t.staleFamilies;t=t.updatedFamilies,Jo(),mm(e.current,t,n),Du()}}o(ze,"scheduleRefresh");function le(e){sn=e}o(le,"setRefreshHandler");function Z(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}o(Z,"isValidContainer");function ie(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}o(ie,"getNearestMountedFiber");function me(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}o(me,"getSuspenseInstanceFromFiber");function He(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}o(He,"getActivityInstanceFromFiber");function ot(e){if(ie(e)!==e)throw Error("Unable to find node on an unmounted component.")}o(ot,"assertIsMounted");function Gt(e){var t=e.alternate;if(!t){if(t=ie(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,l=t;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return ot(a),e;if(u===l)return ot(a),t;u=u.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==l.return)n=a,l=u;else{for(var i=!1,c=a.child;c;){if(c===n){i=!0,n=a,l=u;break}if(c===l){i=!0,l=a,n=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===n){i=!0,n=u,l=a;break}if(c===l){i=!0,l=u,n=a;break}c=c.sibling}if(!i)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==l)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(n.tag!==3)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}o(Gt,"findCurrentFiberUsingSlowPath");function pt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=pt(e),t!==null)return t;e=e.sibling}return null}o(pt,"findCurrentHostFiberImpl");function bt(e){return e===null||typeof e!="object"?null:(e=Tg&&e[Tg]||e["@@iterator"],typeof e=="function"?e:null)}o(bt,"getIteratorFn");function F(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===_2?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _u:return"Fragment";case Bd:return"Profiler";case fs:return"StrictMode";case qd:return"Suspense";case jd:return"SuspenseList";case Yd:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Uu:return"Portal";case Kn:return e.displayName||"Context";case Nd:return(e._context.displayName||"Context")+".Consumer";case ni:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rs:return t=e.displayName||null,t!==null?t:F(e.type)||"Memo";case kt:t=e._payload,e=e._init;try{return F(e(t))}catch{}}return null}o(F,"getComponentNameFromType");function Ke(e){return typeof e.tag=="number"?U(e):typeof e.name=="string"?e.name:null}o(Ke,"getComponentNameFromOwner");function U(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===fs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name=="string")return t[n].name}if(e.return!==null)return U(e.return)}return null}o(U,"getComponentNameFromFiber");function Ae(e){return{current:e}}o(Ae,"createCursor");function ve(e,t){0>ml?console.error("Unexpected pop."):(t!==Ld[ml]&&console.error("Unexpected Fiber popped."),e.current=Gd[ml],Gd[ml]=null,Ld[ml]=null,ml--)}o(ve,"pop");function ce(e,t,n){ml++,Gd[ml]=e.current,Ld[ml]=n,e.current=t}o(ce,"push");function ul(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}o(ul,"requiredContext");function z(e,t){ce($l,t,e),ce(li,e,e),ce(Jl,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?Jy(t):Ml;break;default:if(n=t.tagName,t=t.namespaceURI)t=Jy(t),t=$y(t,n);else switch(n){case"svg":t=ro;break;case"math":t=ff;break;default:t=Ml}}n=n.toLowerCase(),n=Gp(null,n),n={context:t,ancestorInfo:n},ve(Jl,e),ce(Jl,n,e)}o(z,"pushHostContainer");function Y(e){ve(Jl,e),ve(li,e),ve($l,e)}o(Y,"popHostContainer");function q(){return ul(Jl.current)}o(q,"getHostContext");function we(e){e.memoizedState!==null&&ce(ds,e,e);var t=ul(Jl.current),n=e.type,l=$y(t.context,n);n=Gp(t.ancestorInfo,n),l={context:l,ancestorInfo:n},t!==l&&(ce(li,e,e),ce(Jl,l,e))}o(we,"pushHostContext");function Le(e){li.current===e&&(ve(Jl,e),ve(li,e)),ds.current===e&&(ve(ds,e),Ki._currentValue=ou)}o(Le,"popHostContext");function ba(){}o(ba,"disabledLog");function iu(){if(ai===0){Ag=console.log,Dg=console.info,Rg=console.warn,Og=console.error,zg=console.group,Cg=console.groupCollapsed,Mg=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ba,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ai++}o(iu,"disableLogs");function yo(){if(ai--,ai===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Ag}),info:I({},e,{value:Dg}),warn:I({},e,{value:Rg}),error:I({},e,{value:Og}),group:I({},e,{value:zg}),groupCollapsed:I({},e,{value:Cg}),groupEnd:I({},e,{value:Mg})})}0>ai&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}o(yo,"reenableLogs");function Sn(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
2
2
  `)&&(e=e.slice(29)),t=e.indexOf(`
3
3
  `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
4
4
  `,t)),t!==-1)e=e.slice(0,t);else return"";return e}o(Sn,"formatOwnerStack");function it(e){if(Vd===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Vd=t&&t[1]||"",Ug=-1<n.stack.indexOf(`