railwatch 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AGENTS.md +42 -26
- data/CHANGELOG.md +28 -0
- data/README.md +40 -29
- data/app/jobs/railwatch/rollup_job.rb +3 -1
- data/app/models/railwatch/ingest/rollup_absorber.rb +1 -1
- data/docs/ai-and-mcp.md +9 -3
- data/docs/configuration.md +68 -27
- data/docs/embedded.md +76 -43
- data/docs/faq.md +22 -10
- data/docs/getting-started.md +116 -41
- data/docs/records.md +13 -10
- data/docs/replacing-nightwatch.md +16 -14
- data/docs/replacing-sentry.md +19 -10
- data/docs/security.md +24 -3
- data/docs/self-hosting.md +9 -1
- data/docs/testing.md +14 -4
- data/docs/troubleshooting.md +62 -23
- data/lib/generators/railwatch/install/install_generator.rb +5 -4
- data/lib/generators/railwatch/install/templates/initializer.rb.tt +2 -2
- data/lib/railwatch/version.rb +1 -1
- data/llms.txt +21 -18
- data/public/railwatch/assets/{app-layout-2xAKndVD.js → app-layout-Zc0v-hYh.js} +1 -1
- data/public/railwatch/assets/{app-wordmark-Bt6XqURo.js → app-wordmark-BA_60AVb.js} +1 -1
- data/public/railwatch/assets/{appearance-DyCfeh9o.js → appearance-CcfP9tZ7.js} +1 -1
- data/public/railwatch/assets/application-BrN3Sz94.css +1 -0
- data/public/railwatch/assets/{arrow-up-EmePsTKP.js → arrow-up-CLQ-7heQ.js} +1 -1
- data/public/railwatch/assets/{auth-layout-BuwogWMZ.js → auth-layout-C05gEBIQ.js} +1 -1
- data/public/railwatch/assets/{badge-Dv7I-ebP.js → badge-DRae8XwK.js} +1 -1
- data/public/railwatch/assets/{braces-iZ7MEfYP.js → braces-rSYydpLY.js} +1 -1
- data/public/railwatch/assets/{card-DqdEEKcJ.js → card-DPjFKfen.js} +1 -1
- data/public/railwatch/assets/{chart-C4k7Ub9W.js → chart-DWh7l8yM.js} +1 -1
- data/public/railwatch/assets/{chart-hover-2yZG3w2u.js → chart-hover-CfoZUY4J.js} +1 -1
- data/public/railwatch/assets/{chart-panel-CONkZcn9.js → chart-panel-CC49WTQL.js} +1 -1
- data/public/railwatch/assets/{checkbox-DKbThbxr.js → checkbox-DPkLUiwM.js} +1 -1
- data/public/railwatch/assets/{code-CYahYQHZ.js → code-CLmYS6FU.js} +1 -1
- data/public/railwatch/assets/{copy-block-CbJum9s8.js → copy-block-CGcXxp8J.js} +1 -1
- data/public/railwatch/assets/{copy-id-JmvLfkmx.js → copy-id-vBYHQwxg.js} +1 -1
- data/public/railwatch/assets/{cursor-load-more-C1ylbqqL.js → cursor-load-more-Ddwxe5dZ.js} +1 -1
- data/public/railwatch/assets/{data-table-CVKR2wkq.js → data-table-CzKTEE-O.js} +1 -1
- data/public/railwatch/assets/{edit-BwSEVrTG.js → edit-B1kmWkzd.js} +1 -1
- data/public/railwatch/assets/{edit-BXF5oNYA.js → edit-D9cx4pbG.js} +1 -1
- data/public/railwatch/assets/{edit-D5BRDwLT.js → edit-yv6j9p-V.js} +1 -1
- data/public/railwatch/assets/{empty-state-Bn48Gplm.js → empty-state-CW4wclK_.js} +1 -1
- data/public/railwatch/assets/{env-layout-CKLL8Ds7.js → env-layout-Kz7wks1x.js} +1 -1
- data/public/railwatch/assets/{execution-path-DWovhgLi.js → execution-path-FAuIzOXB.js} +1 -1
- data/public/railwatch/assets/{filter-bar-xcbJC93z.js → filter-bar-CJDjWFib.js} +1 -1
- data/public/railwatch/assets/{flamegraph-BNbNIuKT.js → flamegraph-EaGkP2NT.js} +1 -1
- data/public/railwatch/assets/{frames-Bk39xfJG.js → frames-zZuIaNH9.js} +1 -1
- data/public/railwatch/assets/{google-sign-in-button-B5as2ps1.js → google-sign-in-button-2_zgbgVy.js} +1 -1
- data/public/railwatch/assets/{index-XjXcV-EO.js → index-B49SWz7K.js} +1 -1
- data/public/railwatch/assets/{index-B0xgzHuN.js → index-BHlY4wKe.js} +1 -1
- data/public/railwatch/assets/{index-CiaeS-n7.js → index-BZpPtyFY.js} +1 -1
- data/public/railwatch/assets/{index-BfitxVBv.js → index-BeVK6jCL.js} +1 -1
- data/public/railwatch/assets/{index-C-EwH4lO.js → index-BfbSo01U.js} +1 -1
- data/public/railwatch/assets/{index-CrA7jBTK.js → index-BfgncAv6.js} +1 -1
- data/public/railwatch/assets/{index-D0mKj3Hg.js → index-BhNszK1k.js} +1 -1
- data/public/railwatch/assets/{index-CDXlITyG.js → index-Bu01uWvw.js} +1 -1
- data/public/railwatch/assets/{index-w_skgMmK.js → index-C1s_hK3p.js} +1 -1
- data/public/railwatch/assets/{index-Zkt4W_CM.js → index-C8Cggnbw.js} +1 -1
- data/public/railwatch/assets/{index-BDVShWMs.js → index-CBip6V4z.js} +1 -1
- data/public/railwatch/assets/{index-DeLtMWou.js → index-CMJGss5R.js} +1 -1
- data/public/railwatch/assets/{index-LKgpCzoR.js → index-CRo3yK20.js} +1 -1
- data/public/railwatch/assets/{index-gCvuyG1l.js → index-CWB_p2J8.js} +1 -1
- data/public/railwatch/assets/{index-C8JIdb3_.js → index-CWHpndGc.js} +1 -1
- data/public/railwatch/assets/{index-CBFCtJAR.js → index-Ca_S4Sc3.js} +1 -1
- data/public/railwatch/assets/{index-o1xqGvLo.js → index-CanPDDOa.js} +1 -1
- data/public/railwatch/assets/{index-Bd4YpOIO.js → index-Cie90Yat.js} +1 -1
- data/public/railwatch/assets/{index-C_hQmVTP.js → index-CiepQ_pR.js} +1 -1
- data/public/railwatch/assets/{index-BRvRkfob.js → index-Cm1uCIGN.js} +1 -1
- data/public/railwatch/assets/{index-dpG-19ZN.js → index-CzitnnSC.js} +1 -1
- data/public/railwatch/assets/{index-Vj93BTR5.js → index-DEUfClv3.js} +1 -1
- data/public/railwatch/assets/index-DJKwo-mI.js +1 -0
- data/public/railwatch/assets/{index-cTzBycCg.js → index-DK6y0YHp.js} +1 -1
- data/public/railwatch/assets/{index-B-FXAo1w.js → index-DMNPpLH9.js} +1 -1
- data/public/railwatch/assets/{index-BeQw69GM.js → index-DZO1mSfX.js} +1 -1
- data/public/railwatch/assets/{index-BVWapDeB.js → index-Db5wj3M5.js} +1 -1
- data/public/railwatch/assets/{index-DV5MdmpY.js → index-Dcy5WktB.js} +1 -1
- data/public/railwatch/assets/{index-aPCZX-pW.js → index-DvG0-7Lx.js} +1 -1
- data/public/railwatch/assets/{index-Atp1FTgX.js → index-Dvj1wuka.js} +1 -1
- data/public/railwatch/assets/{index-COd9lT84.js → index-KyZX46qX.js} +1 -1
- data/public/railwatch/assets/{index-S0NVaLj9.js → index-Ze-KP-sl.js} +1 -1
- data/public/railwatch/assets/{index-DaE-1xhx.js → index-mhRbWLBM.js} +1 -1
- data/public/railwatch/assets/{index-DdVg9LKX.js → index-x099JL5f.js} +1 -1
- data/public/railwatch/assets/{index-CcennT28.js → index-x28zb_nf.js} +1 -1
- data/public/railwatch/assets/{inertia-CqnzqPVD.js → inertia-Cuyz2ZHO.js} +2 -2
- data/public/railwatch/assets/{input-error-ByT28UdP.js → input-error-hog6gGxg.js} +1 -1
- data/public/railwatch/assets/{json-viewer-Bnu9RsJL.js → json-viewer-DH2W9HXf.js} +1 -1
- data/public/railwatch/assets/{klass-nLiBV-Az.js → klass-DHbDelLk.js} +1 -1
- data/public/railwatch/assets/{label-1nSzpSB6.js → label-DdCBgiUn.js} +1 -1
- data/public/railwatch/assets/{layout-D7lE1Doo.js → layout-Cueyl7c5.js} +1 -1
- data/public/railwatch/assets/{live-dot-UdzOfzJb.js → live-dot-BZgYTYdt.js} +1 -1
- data/public/railwatch/assets/{nav-BRCgp2w3.js → nav-BSSGObDZ.js} +1 -1
- data/public/railwatch/assets/{new-COyDKOOb.js → new-B8FSb8Bl.js} +1 -1
- data/public/railwatch/assets/{new-Cd9zPNJ8.js → new-C39_v2Ll.js} +1 -1
- data/public/railwatch/assets/{new-vjRzERL3.js → new-DVOPwaC5.js} +1 -1
- data/public/railwatch/assets/{new-C60G72DR.js → new-Dd40nvJR.js} +1 -1
- data/public/railwatch/assets/{new-DMJGKjmH.js → new-SxnYe1SE.js} +1 -1
- data/public/railwatch/assets/{new-Omvf-c9s.js → new-eP5vKD3Y.js} +1 -1
- data/public/railwatch/assets/{onboarding-gUjJQc-6.js → onboarding-CUpZl5KB.js} +1 -1
- data/public/railwatch/assets/{origin-identity-M1YUPYS0.js → origin-identity-BYt2uiuo.js} +1 -1
- data/public/railwatch/assets/{percentile-picker-BxIVblBw.js → percentile-picker-CeQgllxD.js} +1 -1
- data/public/railwatch/assets/{relative-time-DQ4kjowZ.js → relative-time-D5UbF4oO.js} +1 -1
- data/public/railwatch/assets/{release-health-Cb1tMOOO.js → release-health-uP-GF3_V.js} +1 -1
- data/public/railwatch/assets/{route-BJkoEm7r.js → route-DQAY8JEr.js} +1 -1
- data/public/railwatch/assets/{segmented-C4oWE73o.js → segmented-BeIe4uqk.js} +1 -1
- data/public/railwatch/assets/{select-ocdQJdQo.js → select-2R16457Z.js} +1 -1
- data/public/railwatch/assets/{separator-Ct2UcZ2x.js → separator-D5I0UCB5.js} +1 -1
- data/public/railwatch/assets/series-chart-gnrzhmM6.js +1 -0
- data/public/railwatch/assets/show-2BkeNRUC.js +2 -0
- data/public/railwatch/assets/{show-BLJOyLb_.js → show-B0X1hRQH.js} +1 -1
- data/public/railwatch/assets/{show-C8TkpEgm.js → show-BKUV5l5q.js} +1 -1
- data/public/railwatch/assets/{show-BAjfddEn.js → show-BQJD_CsF.js} +1 -1
- data/public/railwatch/assets/{show-C6OiJ6Hr.js → show-BhmD6Sxp.js} +1 -1
- data/public/railwatch/assets/{show-CEhPVMMT.js → show-C3KcnVo2.js} +1 -1
- data/public/railwatch/assets/{show-CX_pab9S.js → show-C95cHd06.js} +1 -1
- data/public/railwatch/assets/{show-Bsu1rvnK.js → show-CdB4uVQS.js} +1 -1
- data/public/railwatch/assets/{show-yEOrk6Pt.js → show-CoCqcVIp.js} +1 -1
- data/public/railwatch/assets/{show-DDVsv-uS.js → show-D2LqjEsU.js} +1 -1
- data/public/railwatch/assets/{show-D6lgzL6n.js → show-DNpnKyTh.js} +1 -1
- data/public/railwatch/assets/{show-eKazflRI.js → show-DOlTxbig.js} +1 -1
- data/public/railwatch/assets/{show-Dwiq-8hA.js → show-DQCkttL8.js} +1 -1
- data/public/railwatch/assets/{show-CBFBiBY2.js → show-DcxesipC.js} +1 -1
- data/public/railwatch/assets/{show-BoVyMQS6.js → show-IGJoc_X0.js} +1 -1
- data/public/railwatch/assets/{show-gtwKsTsl.js → show-YsNpqbcI.js} +1 -1
- data/public/railwatch/assets/{show-B4bwI9x2.js → show-qNV6H8SH.js} +1 -1
- data/public/railwatch/assets/{sort-header-CPM6fhXv.js → sort-header-mEJUM3Av.js} +1 -1
- data/public/railwatch/assets/{sparkline-cell-CXCxXPWt.js → sparkline-cell-Dwg7awwh.js} +1 -1
- data/public/railwatch/assets/{stat-BNEfE8X1.js → stat-ZtxGU8lE.js} +1 -1
- data/public/railwatch/assets/{status-badge-D0aylrM5.js → status-badge-CH5P-Xkj.js} +1 -1
- data/public/railwatch/assets/{tenant-path-C4aM_cO0.js → tenant-path-CQoP-BeF.js} +1 -1
- data/public/railwatch/assets/{text-link-CP4lqUi6.js → text-link-DHJ8BXx5.js} +1 -1
- data/public/railwatch/assets/{textarea-DzJo2ds4.js → textarea-BeQtQyl5.js} +1 -1
- data/public/railwatch/assets/{timeline-BNcJ9PMc.js → timeline-CaKQVu48.js} +1 -1
- data/public/railwatch/assets/{transition-BX2M1iaq.js → transition-ksDpqhKJ.js} +1 -1
- data/public/railwatch/assets/{use-clipboard-C1ApSwzA.js → use-clipboard-DNefo-ky.js} +1 -1
- data/public/railwatch/assets/{use-live-DWwLg1Nj.js → use-live-DMTuhKfB.js} +1 -1
- data/public/railwatch/manifest.json +1286 -1286
- metadata +116 -116
- data/public/railwatch/assets/application-B7h1MIhi.css +0 -1
- data/public/railwatch/assets/index-DiQ4mqT_.js +0 -1
- data/public/railwatch/assets/series-chart-D6upsrSn.js +0 -1
- data/public/railwatch/assets/show-CV-lG2b6.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a4 as re,r as c,c as $,j as A}from"./inertia-Cuyz2ZHO.js";import{u as Ye}from"./chart-hover-CfoZUY4J.js";import{i as K,e as He,s as ne,D as ie,f as ge,g as Ct,Z as oe,L as R,u as be,h as Mt,j as Tt,k as U,l as Ue,m as F,n as H,o as Kt,p as le,q as se,r as qe,t as Pe,v as q,w as Ze,x as Ae,y as ce,z as Je,S as Qe,A as et,E as ue,F as tt,G as at,H as rt,I as nt,J as it,K as ot,M as Wt,N as Z,O as J,P as lt,Q as st,T as M,U as ct,V as ut,W as dt,_ as Rt,$ as $t,a0 as Ft,a1 as Ie,a2 as Ee,a3 as zt,a4 as Bt,a5 as Vt,a6 as Gt,a7 as Xt,a8 as Yt,a9 as pe,aa as Q,ab as pt,ac as vt,R as Ht,C as ke,X as je,Y as Oe,a as Se,b as we,c as de,B as ve,d as Ut}from"./chart-DWh7l8yM.js";import{m as ft}from"./format-B9SDkrWj.js";function he(){return he=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},he.apply(null,arguments)}var mt=t=>{var{cx:e,cy:a,r,className:n}=t,i=re("recharts-dot",n);return K(e)&&K(a)&&K(r)?c.createElement("circle",he({},ne(t),He(t),{className:i,cx:e,cy:a,r})):null},qt=["points"];function Re(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function fe(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Re(Object(a),!0).forEach(function(r){Zt(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Re(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function Zt(t,e,a){return(e=Jt(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Jt(t){var e=Qt(t,"string");return typeof e=="symbol"?e:e+""}function Qt(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ee(){return ee=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},ee.apply(null,arguments)}function ea(t,e){if(t==null)return{};var a,r,n=ta(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)a=i[r],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function ta(t,e){if(t==null)return{};var a={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;a[r]=t[r]}return a}function aa(t){var{option:e,dotProps:a,className:r}=t;if(c.isValidElement(e))return c.cloneElement(e,a);if(typeof e=="function")return e(a);var n=re(r,typeof e!="boolean"?e.className:""),i=a??{},{points:l}=i,o=ea(i,qt);return c.createElement(mt,ee({},o,{className:n}))}function ra(t,e){return t==null?!1:e?!0:t.length===1}function ht(t){var{points:e,dot:a,className:r,dotClassName:n,dataKey:i,baseProps:l,needClip:o,clipPathId:s,zIndex:u=ie.scatter}=t;if(!ra(e,a))return null;var d=ge(a),p=Ct(a),v=e.map((m,x)=>{var P,h,y=fe(fe(fe({r:3},l),p),{},{index:x,cx:(P=m.x)!==null&&P!==void 0?P:void 0,cy:(h=m.y)!==null&&h!==void 0?h:void 0,dataKey:i,value:m.value,payload:m.payload,points:e});return c.createElement(aa,{key:"dot-".concat(x),option:a,dotProps:y,className:n})}),f={};return o&&s!=null&&(f.clipPath="url(#clipPath-".concat(d?"":"dots-").concat(s,")")),c.createElement(oe,{zIndex:u},c.createElement(R,ee({className:r},f),v))}function $e(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function me(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?$e(Object(a),!0).forEach(function(r){na(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):$e(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function na(t,e,a){return(e=ia(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function ia(t){var e=oa(t,"string");return typeof e=="symbol"?e:e+""}function oa(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var la=t=>{var{point:e,childIndex:a,mainColor:r,activeDot:n,dataKey:i,clipPath:l}=t;if(n===!1||e.x==null||e.y==null)return null;var o={index:a,dataKey:i,cx:e.x,cy:e.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:e.payload,value:e.value},s=me(me(me({},o),Ue(n)),He(n)),u;return c.isValidElement(n)?u=c.cloneElement(n,s):typeof n=="function"?u=n(s):u=c.createElement(mt,s),c.createElement(R,{className:"recharts-active-dot",clipPath:l},u)};function ye(t){var{points:e,mainColor:a,activeDot:r,itemDataKey:n,clipPath:i,zIndex:l=ie.activeDot}=t,o=be(Mt),s=Tt();if(e==null||s==null)return null;var u=e.find(d=>s.includes(d.payload));return U(u)?null:c.createElement(oe,{zIndex:l},c.createElement(la,{point:u,childIndex:Number(o),mainColor:a,dataKey:n,activeDot:r,clipPath:i}))}var yt=(t,e,a,r)=>le(t,"xAxis",e,r),xt=(t,e,a,r)=>se(t,"xAxis",e,r),gt=(t,e,a,r)=>le(t,"yAxis",a,r),bt=(t,e,a,r)=>se(t,"yAxis",a,r),sa=F([H,yt,gt,xt,bt],(t,e,a,r,n)=>Pe(t,"xAxis")?q(e,r,!1):q(a,n,!1)),ca=(t,e,a,r,n)=>n;function ua(t){return t.type==="line"}var da=F([qe,ca],(t,e)=>t.filter(ua).find(a=>a.id===e)),pa=F([H,yt,gt,xt,bt,da,sa,Kt],(t,e,a,r,n,i,l,o)=>{var{chartData:s,dataStartIndex:u,dataEndIndex:d}=o;if(!(i==null||e==null||a==null||r==null||n==null||r.length===0||n.length===0||l==null||t!=="horizontal"&&t!=="vertical")){var{dataKey:p,data:v}=i,f;if(v!=null&&v.length>0?f=v:f=s?.slice(u,d+1),f!=null)return Na({layout:t,xAxis:e,yAxis:a,xAxisTicks:r,yAxisTicks:n,dataKey:p,bandSize:l,displayedData:f})}});function Pt(t){var e=Ue(t),a=3,r=2;if(e!=null){var{r:n,strokeWidth:i}=e,l=Number(n),o=Number(i);return(Number.isNaN(l)||l<0)&&(l=a),(Number.isNaN(o)||o<0)&&(o=r),{r:l,strokeWidth:o}}return{r:a,strokeWidth:r}}var va=["id"],fa=["type","layout","connectNulls","needClip","shape"],ma=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function X(){return X=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},X.apply(null,arguments)}function Fe(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function T(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Fe(Object(a),!0).forEach(function(r){ha(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Fe(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function ha(t,e,a){return(e=ya(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function ya(t){var e=xa(t,"string");return typeof e=="symbol"?e:e+""}function xa(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function De(t,e){if(t==null)return{};var a,r,n=ga(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)a=i[r],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function ga(t,e){if(t==null)return{};var a={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;a[r]=t[r]}return a}var ba=t=>{var{dataKey:e,name:a,stroke:r,legendType:n,hide:i}=t;return[{inactive:i,dataKey:e,type:n,color:r,value:ue(a,e),payload:t}]},Pa=c.memo(t=>{var{dataKey:e,data:a,stroke:r,strokeWidth:n,fill:i,name:l,hide:o,unit:s,tooltipType:u,id:d}=t,p={dataDefinedOnItem:a,getPosition:at,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:e,nameKey:void 0,name:ue(l,e),hide:o,type:u,color:r,unit:s,graphicalItemId:d}};return c.createElement(tt,{tooltipEntrySettings:p})}),At=(t,e)=>"".concat(e,"px ").concat(t,"px");function Aa(t,e){for(var a=t.length%2!==0?[...t,0]:t,r=[],n=0;n<e;++n)r.push(...a);return r}var Ia=(t,e,a)=>{var r=a.reduce((v,f)=>v+f,0);if(!r)return At(e,t);for(var n=Math.floor(t/r),i=t%r,l=[],o=0,s=0;o<a.length;s+=(u=a[o])!==null&&u!==void 0?u:0,++o){var u,d=a[o];if(d!=null&&s+d>i){l=[...a.slice(0,o),i-s];break}}var p=l.length%2===0?[0,e]:[e];return[...Aa(a,n),...l,...p].map(v=>"".concat(v,"px")).join(", ")};function Ea(t){var{clipPathId:e,points:a,props:r}=t,{dot:n,dataKey:i,needClip:l}=r,{id:o}=r,s=De(r,va),u=ne(s);return c.createElement(ht,{points:a,dot:n,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:i,baseProps:u,needClip:l,clipPathId:e})}function ka(t){var{showLabels:e,children:a,points:r}=t,n=c.useMemo(()=>r?.map(i=>{var l,o,s={x:(l=i.x)!==null&&l!==void 0?l:0,y:(o=i.y)!==null&&o!==void 0?o:0,width:0,lowerWidth:0,upperWidth:0,height:0};return T(T({},s),{},{value:i.value,payload:i.payload,viewBox:s,parentViewBox:void 0,fill:void 0})}),[r]);return c.createElement(ut,{value:e?n:void 0},a)}function ze(t){var{clipPathId:e,pathRef:a,points:r,strokeDasharray:n,props:i}=t,{type:l,layout:o,connectNulls:s,needClip:u,shape:d}=i,p=De(i,fa),v=T(T({},dt(p)),{},{fill:"none",className:"recharts-line-curve",clipPath:u?"url(#clipPath-".concat(e,")"):void 0,points:r,type:l,layout:o,connectNulls:s,strokeDasharray:n??i.strokeDasharray});return c.createElement(c.Fragment,null,r?.length>1&&c.createElement(Rt,X({shapeType:"curve",option:d},v,{pathRef:a})),c.createElement(Ea,{points:r,clipPathId:e,props:i}))}function ja(t){try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch{return 0}}function Oa(t){var{clipPathId:e,props:a,pathRef:r,previousPointsRef:n,longestAnimatedLengthRef:i}=t,{points:l,strokeDasharray:o,isAnimationActive:s,animationBegin:u,animationDuration:d,animationEasing:p,animateNewValues:v,width:f,height:m,onAnimationEnd:x,onAnimationStart:P}=a,h=n.current,y=lt(l,"recharts-line-"),g=c.useRef(y),[b,I]=c.useState(!1),E=!b,k=c.useCallback(()=>{typeof x=="function"&&x(),I(!1)},[x]),j=c.useCallback(()=>{typeof P=="function"&&P(),I(!0)},[P]),S=ja(r.current),D=c.useRef(0);g.current!==y&&(D.current=i.current,g.current=y);var w=D.current;return c.createElement(ka,{points:l,showLabels:E},a.children,c.createElement(st,{animationId:y,begin:u,duration:d,isActive:s,easing:p,onAnimationEnd:k,onAnimationStart:j,key:y},O=>{var L=M(w,S+w,O),_=Math.min(L,S),N;if(s)if(o){var z="".concat(o).split(/[,\s]+/gim).map(C=>parseFloat(C));N=Ia(_,S,z)}else N=At(S,_);else N=o==null?void 0:String(o);if(O>0&&S>0&&(n.current=l,i.current=Math.max(i.current,_)),h){var G=h.length/l.length,Te=O===1?l:l.map((C,_t)=>{var Ke=Math.floor(_t*G);if(h[Ke]){var We=h[Ke];return T(T({},C),{},{x:M(We.x,C.x,O),y:M(We.y,C.y,O)})}return v?T(T({},C),{},{x:M(f*2,C.x,O),y:M(m/2,C.y,O)}):T(T({},C),{},{x:C.x,y:C.y})});return n.current=Te,c.createElement(ze,{props:a,points:Te,clipPathId:e,pathRef:r,strokeDasharray:N})}return c.createElement(ze,{props:a,points:l,clipPathId:e,pathRef:r,strokeDasharray:N})}),c.createElement(ct,{label:a.label}))}function Sa(t){var{clipPathId:e,props:a}=t,r=c.useRef(null),n=c.useRef(0),i=c.useRef(null);return c.createElement(Oa,{props:a,clipPathId:e,previousPointsRef:r,longestAnimatedLengthRef:n,pathRef:i})}var wa=(t,e)=>{var a,r;return{x:(a=t.x)!==null&&a!==void 0?a:void 0,y:(r=t.y)!==null&&r!==void 0?r:void 0,value:t.value,errorVal:Z(t.payload,e)}};class Da extends c.Component{render(){var{hide:e,dot:a,points:r,className:n,xAxisId:i,yAxisId:l,top:o,left:s,width:u,height:d,id:p,needClip:v,zIndex:f}=this.props;if(e)return null;var m=re("recharts-line",n),x=p,{r:P,strokeWidth:h}=Pt(a),y=ge(a),g=P*2+h,b=v?"url(#clipPath-".concat(y?"":"dots-").concat(x,")"):void 0;return c.createElement(oe,{zIndex:f},c.createElement(R,{className:m},v&&c.createElement("defs",null,c.createElement(ot,{clipPathId:x,xAxisId:i,yAxisId:l}),!y&&c.createElement("clipPath",{id:"clipPath-dots-".concat(x)},c.createElement("rect",{x:s-g/2,y:o-g/2,width:u+g,height:d+g}))),c.createElement(Wt,{xAxisId:i,yAxisId:l,data:r,dataPointFormatter:wa,errorBarOffset:0},c.createElement(Sa,{props:this.props,clipPathId:x}))),c.createElement(ye,{activeDot:this.props.activeDot,points:r,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:b}))}}var It={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:ie.line,type:"linear"};function La(t){var e=Ae(t,It),{activeDot:a,animateNewValues:r,animationBegin:n,animationDuration:i,animationEasing:l,connectNulls:o,dot:s,hide:u,isAnimationActive:d,label:p,legendType:v,xAxisId:f,yAxisId:m,id:x}=e,P=De(e,ma),{needClip:h}=rt(f,m),y=nt(),g=it(),b=ce(),I=be(D=>pa(D,f,m,b,x));if(g!=="horizontal"&&g!=="vertical"||I==null||y==null)return null;var{height:E,width:k,x:j,y:S}=y;return c.createElement(Da,X({},P,{id:x,connectNulls:o,dot:s,activeDot:a,animateNewValues:r,animationBegin:n,animationDuration:i,animationEasing:l,isAnimationActive:d,hide:u,label:p,legendType:v,xAxisId:f,yAxisId:m,points:I,layout:g,height:E,width:k,left:j,top:S,needClip:h}))}function Na(t){var{layout:e,xAxis:a,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:l,bandSize:o,displayedData:s}=t;return s.map((u,d)=>{var p=Z(u,l);if(e==="horizontal"){var v=J({axis:a,ticks:n,bandSize:o,entry:u,index:d}),f=U(p)?null:r.scale.map(p);return{x:v,y:f??null,value:p,payload:u}}var m=U(p)?null:a.scale.map(p),x=J({axis:r,ticks:i,bandSize:o,entry:u,index:d});return m==null||x==null?null:{x:m,y:x,value:p,payload:u}}).filter(Boolean)}function _a(t){var e=Ae(t,It),a=ce();return c.createElement(Je,{id:e.id,type:"line"},r=>c.createElement(c.Fragment,null,c.createElement(Qe,{legendPayload:ba(e)}),c.createElement(Pa,{dataKey:e.dataKey,data:e.data,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,unit:e.unit,tooltipType:e.tooltipType,id:r}),c.createElement(et,{type:"line",id:r,data:e.data,xAxisId:e.xAxisId,yAxisId:e.yAxisId,zAxisId:0,dataKey:e.dataKey,hide:e.hide,isPanorama:a}),c.createElement(La,X({},e,{id:r}))))}var xe=c.memo(_a,Ze);xe.displayName="Line";var Et=(t,e,a)=>le(t,"xAxis",Ie(t,e),a),kt=(t,e,a)=>se(t,"xAxis",Ie(t,e),a),jt=(t,e,a)=>le(t,"yAxis",Ee(t,e),a),Ot=(t,e,a)=>se(t,"yAxis",Ee(t,e),a),Ca=F([H,Et,jt,kt,Ot],(t,e,a,r,n)=>Pe(t,"xAxis")?q(e,r,!1):q(a,n,!1)),Ma=(t,e)=>e,St=F([qe,Ma],(t,e)=>t.filter(a=>a.type==="area").find(a=>a.id===e)),wt=t=>{var e=H(t),a=Pe(e,"xAxis");return a?"yAxis":"xAxis"},Ta=(t,e)=>{var a=wt(t);return a==="yAxis"?Ee(t,e):Ie(t,e)},Ka=(t,e,a)=>Bt(t,wt(t),Ta(t,e),a),Wa=F([St,Ka],(t,e)=>{var a;if(!(t==null||e==null)){var{stackId:r}=t,n=zt(t);if(!(r==null||n==null)){var i=(a=e[r])===null||a===void 0?void 0:a.stackedData,l=i?.find(o=>o.key===n);if(l!=null)return l.map(o=>[o[0],o[1]])}}}),Ra=F([H,Et,jt,kt,Ot,Wa,$t,Ca,St,Ft],(t,e,a,r,n,i,l,o,s,u)=>{var{chartData:d,dataStartIndex:p,dataEndIndex:v}=l;if(!(s==null||t!=="horizontal"&&t!=="vertical"||e==null||a==null||r==null||n==null||r.length===0||n.length===0||o==null)){var{data:f}=s,m;if(f&&f.length>0?m=f:m=d?.slice(p,v+1),m!=null)return ir({layout:t,xAxis:e,yAxis:a,xAxisTicks:r,yAxisTicks:n,dataStartIndex:p,areaSettings:s,stackedData:i,displayedData:m,chartBaseValue:u,bandSize:o})}}),$a=["id"],Fa=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function W(){return W=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},W.apply(null,arguments)}function Dt(t,e){if(t==null)return{};var a,r,n=za(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)a=i[r],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function za(t,e){if(t==null)return{};var a={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;a[r]=t[r]}return a}function Be(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function B(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Be(Object(a),!0).forEach(function(r){Ba(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Be(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function Ba(t,e,a){return(e=Va(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Va(t){var e=Ga(t,"string");return typeof e=="symbol"?e:e+""}function Ga(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function te(t,e){return t&&t!=="none"?t:e}var Xa=t=>{var{dataKey:e,name:a,stroke:r,fill:n,legendType:i,hide:l}=t;return[{inactive:l,dataKey:e,type:i,color:te(r,n),value:ue(a,e),payload:t}]},Ya=c.memo(t=>{var{dataKey:e,data:a,stroke:r,strokeWidth:n,fill:i,name:l,hide:o,unit:s,tooltipType:u,id:d}=t,p={dataDefinedOnItem:a,getPosition:at,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:e,nameKey:void 0,name:ue(l,e),hide:o,type:u,color:te(r,i),unit:s,graphicalItemId:d}};return c.createElement(tt,{tooltipEntrySettings:p})});function Ha(t){var{clipPathId:e,points:a,props:r}=t,{needClip:n,dot:i,dataKey:l}=r,o=ne(r);return c.createElement(ht,{points:a,dot:i,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:l,baseProps:o,needClip:n,clipPathId:e})}function Ua(t){var{showLabels:e,children:a,points:r}=t,n=r.map(i=>{var l,o,s={x:(l=i.x)!==null&&l!==void 0?l:0,y:(o=i.y)!==null&&o!==void 0?o:0,width:0,lowerWidth:0,upperWidth:0,height:0};return B(B({},s),{},{value:i.value,payload:i.payload,parentViewBox:void 0,viewBox:s,fill:void 0})});return c.createElement(ut,{value:e?n:void 0},a)}function Ve(t){var{points:e,baseLine:a,needClip:r,clipPathId:n,props:i}=t,{layout:l,type:o,stroke:s,connectNulls:u,isRange:d}=i,{id:p}=i,v=Dt(i,$a),f=ne(v),m=dt(v);return c.createElement(c.Fragment,null,e?.length>1&&c.createElement(R,{clipPath:r?"url(#clipPath-".concat(n,")"):void 0},c.createElement(pe,W({},m,{id:p,points:e,connectNulls:u,type:o,baseLine:a,layout:l,stroke:"none",className:"recharts-area-area"})),s!=="none"&&c.createElement(pe,W({},f,{className:"recharts-area-curve",layout:l,type:o,connectNulls:u,fill:"none",points:e})),s!=="none"&&d&&Array.isArray(a)&&c.createElement(pe,W({},f,{className:"recharts-area-curve",layout:l,type:o,connectNulls:u,fill:"none",points:a}))),c.createElement(Ha,{points:e,props:v,clipPathId:n}))}function qa(t){var e,a,{alpha:r,baseLine:n,points:i,strokeWidth:l}=t,o=(e=i[0])===null||e===void 0?void 0:e.y,s=(a=i[i.length-1])===null||a===void 0?void 0:a.y;if(!Q(o)||!Q(s))return null;var u=r*Math.abs(o-s),d=Math.max(...i.map(p=>p.x||0));return K(n)?d=Math.max(n,d):n&&Array.isArray(n)&&n.length&&(d=Math.max(...n.map(p=>p.x||0),d)),K(d)?c.createElement("rect",{x:0,y:o<s?o:o-u,width:d+(l?parseInt("".concat(l),10):1),height:Math.floor(u)}):null}function Za(t){var e,a,{alpha:r,baseLine:n,points:i,strokeWidth:l}=t,o=(e=i[0])===null||e===void 0?void 0:e.x,s=(a=i[i.length-1])===null||a===void 0?void 0:a.x;if(!Q(o)||!Q(s))return null;var u=r*Math.abs(o-s),d=Math.max(...i.map(p=>p.y||0));return K(n)?d=Math.max(n,d):n&&Array.isArray(n)&&n.length&&(d=Math.max(...n.map(p=>p.y||0),d)),K(d)?c.createElement("rect",{x:o<s?o:o-u,y:0,width:u,height:Math.floor(d+(l?parseInt("".concat(l),10):1))}):null}function Ja(t){var{alpha:e,layout:a,points:r,baseLine:n,strokeWidth:i}=t;return a==="vertical"?c.createElement(qa,{alpha:e,points:r,baseLine:n,strokeWidth:i}):c.createElement(Za,{alpha:e,points:r,baseLine:n,strokeWidth:i})}function Qa(t){var{needClip:e,clipPathId:a,props:r,previousPointsRef:n,previousBaselineRef:i}=t,{points:l,baseLine:o,isAnimationActive:s,animationBegin:u,animationDuration:d,animationEasing:p,onAnimationStart:v,onAnimationEnd:f}=r,m=c.useMemo(()=>({points:l,baseLine:o}),[l,o]),x=lt(m,"recharts-area-"),P=Xt(),[h,y]=c.useState(!1),g=!h,b=c.useCallback(()=>{typeof f=="function"&&f(),y(!1)},[f]),I=c.useCallback(()=>{typeof v=="function"&&v(),y(!0)},[v]);if(P==null)return null;var E=n.current,k=i.current;return c.createElement(Ua,{showLabels:g,points:l},r.children,c.createElement(st,{animationId:x,begin:u,duration:d,isActive:s,easing:p,onAnimationEnd:b,onAnimationStart:I,key:x},j=>{if(E){var S=E.length/l.length,D=j===1?l:l.map((O,L)=>{var _=Math.floor(L*S);if(E[_]){var N=E[_];return B(B({},O),{},{x:M(N.x,O.x,j),y:M(N.y,O.y,j)})}return O}),w;return K(o)?w=M(k,o,j):U(o)||Yt(o)?w=M(k,0,j):w=o.map((O,L)=>{var _=Math.floor(L*S);if(Array.isArray(k)&&k[_]){var N=k[_];return B(B({},O),{},{x:M(N.x,O.x,j),y:M(N.y,O.y,j)})}return O}),j>0&&(n.current=D,i.current=w),c.createElement(Ve,{points:D,baseLine:w,needClip:e,clipPathId:a,props:r})}return j>0&&(n.current=l,i.current=o),c.createElement(R,null,s&&c.createElement("defs",null,c.createElement("clipPath",{id:"animationClipPath-".concat(a)},c.createElement(Ja,{alpha:j,points:l,baseLine:o,layout:P,strokeWidth:r.strokeWidth}))),c.createElement(R,{clipPath:"url(#animationClipPath-".concat(a,")")},c.createElement(Ve,{points:l,baseLine:o,needClip:e,clipPathId:a,props:r})))}),c.createElement(ct,{label:r.label}))}function er(t){var{needClip:e,clipPathId:a,props:r}=t,n=c.useRef(null),i=c.useRef();return c.createElement(Qa,{needClip:e,clipPathId:a,props:r,previousPointsRef:n,previousBaselineRef:i})}class tr extends c.PureComponent{render(){var{hide:e,dot:a,points:r,className:n,top:i,left:l,needClip:o,xAxisId:s,yAxisId:u,width:d,height:p,id:v,baseLine:f,zIndex:m}=this.props;if(e)return null;var x=re("recharts-area",n),P=v,{r:h,strokeWidth:y}=Pt(a),g=ge(a),b=h*2+y,I=o?"url(#clipPath-".concat(g?"":"dots-").concat(P,")"):void 0;return c.createElement(oe,{zIndex:m},c.createElement(R,{className:x},o&&c.createElement("defs",null,c.createElement(ot,{clipPathId:P,xAxisId:s,yAxisId:u}),!g&&c.createElement("clipPath",{id:"clipPath-dots-".concat(P)},c.createElement("rect",{x:l-b/2,y:i-b/2,width:d+b,height:p+b}))),c.createElement(er,{needClip:o,clipPathId:P,props:this.props})),c.createElement(ye,{points:r,mainColor:te(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:I}),this.props.isRange&&Array.isArray(f)&&c.createElement(ye,{points:f,mainColor:te(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:I}))}}var ar={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:ie.area};function rr(t){var e,{activeDot:a,animationBegin:r,animationDuration:n,animationEasing:i,connectNulls:l,dot:o,fill:s,fillOpacity:u,hide:d,isAnimationActive:p,legendType:v,stroke:f,xAxisId:m,yAxisId:x}=t,P=Dt(t,Fa),h=it(),y=Gt(),{needClip:g}=rt(m,x),b=ce(),{points:I,isRange:E,baseLine:k}=(e=be(L=>Ra(L,t.id,b)))!==null&&e!==void 0?e:{},j=nt();if(h!=="horizontal"&&h!=="vertical"||j==null||y!=="AreaChart"&&y!=="ComposedChart")return null;var{height:S,width:D,x:w,y:O}=j;return!I||!I.length?null:c.createElement(tr,W({},P,{activeDot:a,animationBegin:r,animationDuration:n,animationEasing:i,baseLine:k,connectNulls:l,dot:o,fill:s,fillOpacity:u,height:S,hide:d,layout:h,isAnimationActive:p,isRange:E,legendType:v,needClip:g,points:I,stroke:f,width:D,left:w,top:O,xAxisId:m,yAxisId:x}))}var nr=(t,e,a,r,n)=>{var i=a??e;if(K(i))return i;var l=t==="horizontal"?n:r,o=l.scale.domain();if(l.type==="number"){var s=Math.max(o[0],o[1]),u=Math.min(o[0],o[1]);return i==="dataMin"?u:i==="dataMax"||s<0?s:Math.max(Math.min(o[0],o[1]),0)}return i==="dataMin"?o[0]:i==="dataMax"?o[1]:o[0]};function ir(t){var{areaSettings:{connectNulls:e,baseValue:a,dataKey:r},stackedData:n,layout:i,chartBaseValue:l,xAxis:o,yAxis:s,displayedData:u,dataStartIndex:d,xAxisTicks:p,yAxisTicks:v,bandSize:f}=t,m=n&&n.length,x=nr(i,l,a,o,s),P=i==="horizontal",h=!1,y=u.map((b,I)=>{var E,k,j,S;if(m)S=n[d+I];else{var D=Z(b,r);Array.isArray(D)?(S=D,h=!0):S=[x,D]}var w=(E=(k=S)===null||k===void 0?void 0:k[1])!==null&&E!==void 0?E:null,O=w==null||m&&!e&&Z(b,r)==null;if(P){var L;return{x:J({axis:o,ticks:p,bandSize:f,entry:b,index:I}),y:O?null:(L=s.scale.map(w))!==null&&L!==void 0?L:null,value:S,payload:b}}return{x:O?null:(j=o.scale.map(w))!==null&&j!==void 0?j:null,y:J({axis:s,ticks:v,bandSize:f,entry:b,index:I}),value:S,payload:b}}),g;return m||h?g=y.map(b=>{var I,E=Array.isArray(b.value)?b.value[0]:null;if(P){var k;return{x:b.x,y:E!=null&&b.y!=null&&(k=s.scale.map(E))!==null&&k!==void 0?k:null,payload:b.payload}}return{x:E!=null&&(I=o.scale.map(E))!==null&&I!==void 0?I:null,y:b.y,payload:b.payload}}):g=P?s.scale.map(x):o.scale.map(x),{points:y,baseLine:g??0,isRange:h}}function or(t){var e=Ae(t,ar),a=ce();return c.createElement(Je,{id:e.id,type:"area"},r=>c.createElement(c.Fragment,null,c.createElement(Qe,{legendPayload:Xa(e)}),c.createElement(Ya,{dataKey:e.dataKey,data:e.data,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,unit:e.unit,tooltipType:e.tooltipType,id:r}),c.createElement(et,{type:"area",id:r,data:e.data,dataKey:e.dataKey,xAxisId:e.xAxisId,yAxisId:e.yAxisId,zAxisId:0,stackId:Vt(e.stackId),hide:e.hide,barSize:void 0,baseValue:e.baseValue,isPanorama:a,connectNulls:e.connectNulls}),c.createElement(rr,W({},e,{id:r}))))}var Le=c.memo(or,Ze);Le.displayName="Area";var lr=["axis"],sr=c.forwardRef((t,e)=>c.createElement(pt,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:lr,tooltipPayloadSearcher:vt,categoricalChartProps:t,ref:e})),cr=["axis"],Lt=c.forwardRef((t,e)=>c.createElement(pt,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:cr,tooltipPayloadSearcher:vt,categoricalChartProps:t,ref:e}));const ae={count:{label:"OK",color:"var(--ok)"},errors:{label:"5xx",color:"var(--danger)"},client_errors:{label:"4xx",color:"var(--warning)"},p50:{label:"p50",color:"var(--primary)"},p95:{label:"p95",color:"var(--primary)"},p99:{label:"p99",color:"var(--primary)"},avg:{label:"avg",color:"var(--warning)"}};function ur(t){return t.length<2?0:new Date(t[1].t).getTime()-new Date(t[0].t).getTime()}const Ge=1440*60*1e3;function Ne(t){const e=ur(t),a=t.length>1?new Date(t[t.length-1].t).getTime()-new Date(t[0].t).getTime():0;return e>=Ge||a>2*Ge?r=>new Date(r).toLocaleDateString(void 0,{month:"short",day:"numeric"}):r=>new Date(r).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}function Y(t){return new Date(t).toLocaleString(void 0,{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit"})}const V={fontSize:10,fontFamily:"var(--font-mono)"};function Xe(t,e,a){return n=>{const i=$.c(8),{cx:l,cy:o,index:s}=n;if(l==null||o==null||s==null){let v;return i[0]!==s?(v=A.jsx("g",{},s),i[0]=s,i[1]=v):v=i[1],v}const u=t[s-1]?.[e]??null,d=t[s+1]?.[e]??null;if(u!=null||d!=null){let v;return i[2]!==s?(v=A.jsx("g",{},s),i[2]=s,i[3]=v):v=i[3],v}let p;return i[4]!==l||i[5]!==o||i[6]!==s?(p=A.jsx("circle",{cx:l,cy:o,r:2,fill:a},s),i[4]=l,i[5]=o,i[6]=s,i[7]=p):p=i[7],p}}function _e(t=[]){return t.map(e=>A.jsx(Ht,{x:new Date(e.at).toISOString(),stroke:"var(--primary)",strokeDasharray:"3 3",label:{value:e.ref,position:"insideTopRight",fontSize:9,fill:"var(--primary)",fontFamily:"var(--font-mono)"}},e.deploy))}function Ce(){const t=$.c(2),{setHoveredKey:e}=Ye();let a;return t[0]!==e?(a={onMouseMove:r=>{typeof r?.activeLabel=="string"&&e(r.activeLabel)},onMouseLeave:()=>e(null)},t[0]=e,t[1]=a):a=t[1],a}function Me(t){const e=$.c(11),{data:a}=t;if(a.length===0)return null;let r;e[0]!==a[0].t?(r=Y(a[0].t),e[0]=a[0].t,e[1]=r):r=e[1];let n;e[2]!==r?(n=A.jsx("span",{children:r}),e[2]=r,e[3]=n):n=e[3];const i=a[a.length-1];let l;e[4]!==i.t?(l=Y(i.t),e[4]=i.t,e[5]=l):l=e[5];let o;e[6]!==l?(o=A.jsx("span",{children:l}),e[6]=l,e[7]=o):o=e[7];let s;return e[8]!==n||e[9]!==o?(s=A.jsxs("div",{className:"text-muted-foreground mt-1 flex justify-between font-mono text-[10px]",children:[n,o]}),e[8]=n,e[9]=o,e[10]=s):s=e[10],s}function Sr(t){const e=$.c(31),{data:a,deploys:r,label:n,className:i}=t,l=n===void 0?"Requests":n,o=i===void 0?"h-40":i;let s;e[0]!==l?(s={...ae,count:{...ae.count,label:l}},e[0]=l,e[1]=s):s=e[1];const u=s,d=Ce();let p;e[2]!==a?(p=Ne(a),e[2]=a,e[3]=p):p=e[3];const v=p,f=`${o} w-full`;let m;e[4]!==a?(m=a.map(vr),e[4]=a,e[5]=m):m=e[5];const x=d.onMouseMove,P=d.onMouseLeave;let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h=A.jsx(ke,{vertical:!1,strokeDasharray:"2 4"}),e[6]=h):h=e[6];let y;e[7]!==v?(y=A.jsx(je,{dataKey:"t",tickFormatter:v,tickLine:!1,axisLine:!1,minTickGap:40,tick:V}),e[7]=v,e[8]=y):y=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=A.jsx(Oe,{width:36,tickLine:!1,axisLine:!1,tick:V,tickFormatter:pr}),e[9]=g):g=e[9];let b,I,E;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=A.jsx(Se,{content:A.jsx(we,{labelFormatter:dr})}),I=A.jsx(ve,{dataKey:"ok",name:"count",fill:"var(--color-count)",stackId:"a"}),E=A.jsx(ve,{dataKey:"client_errors",fill:"var(--color-client_errors)",stackId:"a"}),e[10]=b,e[11]=I,e[12]=E):(b=e[10],I=e[11],E=e[12]);let k;e[13]===Symbol.for("react.memo_cache_sentinel")?(k=A.jsx(ve,{dataKey:"errors",fill:"var(--color-errors)",stackId:"a",radius:[2,2,0,0]}),e[13]=k):k=e[13];let j;e[14]!==r?(j=_e(r),e[14]=r,e[15]=j):j=e[15];let S;e[16]!==d.onMouseLeave||e[17]!==d.onMouseMove||e[18]!==y||e[19]!==j||e[20]!==m?(S=A.jsxs(Ut,{data:m,barCategoryGap:2,onMouseMove:x,onMouseLeave:P,children:[h,y,g,b,I,E,k,j]}),e[16]=d.onMouseLeave,e[17]=d.onMouseMove,e[18]=y,e[19]=j,e[20]=m,e[21]=S):S=e[21];let D;e[22]!==u||e[23]!==S||e[24]!==f?(D=A.jsx(de,{config:u,className:f,children:S}),e[22]=u,e[23]=S,e[24]=f,e[25]=D):D=e[25];let w;e[26]!==a?(w=A.jsx(Me,{data:a}),e[26]=a,e[27]=w):w=e[27];let O;return e[28]!==D||e[29]!==w?(O=A.jsxs("div",{children:[D,w]}),e[28]=D,e[29]=w,e[30]=O):O=e[30],O}function dr(t){return Y(String(t))}function pr(t){return Nt(Number(t))}function vr(t){return{...t,t:new Date(t.t).toISOString(),ok:Math.max(0,t.count-t.errors-t.client_errors)}}const fr={ok:{label:"ok",color:"var(--ok)"},errored:{label:"errored",color:"var(--warning)"},crashed:{label:"crashed",color:"var(--danger)"}};function wr(t){const e=$.c(27),{data:a,deploys:r,className:n}=t,i=n===void 0?"h-40":n,l=Ce();let o;e[0]!==a?(o=Ne(a),e[0]=a,e[1]=o):o=e[1];const s=o,u=`${i} w-full`;let d;e[2]!==a?(d=a.map(xr),e[2]=a,e[3]=d):d=e[3];const p=l.onMouseMove,v=l.onMouseLeave;let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=A.jsx(ke,{vertical:!1,strokeDasharray:"2 4"}),e[4]=f):f=e[4];let m;e[5]!==s?(m=A.jsx(je,{dataKey:"t",tickFormatter:s,tickLine:!1,axisLine:!1,minTickGap:40,tick:V}),e[5]=s,e[6]=m):m=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=A.jsx(Oe,{width:36,tickLine:!1,axisLine:!1,tick:V,tickFormatter:yr}),e[7]=x):x=e[7];let P,h;e[8]===Symbol.for("react.memo_cache_sentinel")?(P=A.jsx(Se,{content:A.jsx(we,{labelFormatter:hr})}),h=["ok","errored","crashed"],e[8]=P,e[9]=h):(P=e[8],h=e[9]);let y;e[10]===Symbol.for("react.memo_cache_sentinel")?(y=h.map(mr),e[10]=y):y=e[10];let g;e[11]!==r?(g=_e(r),e[11]=r,e[12]=g):g=e[12];let b;e[13]!==l.onMouseLeave||e[14]!==l.onMouseMove||e[15]!==g||e[16]!==d||e[17]!==m?(b=A.jsxs(Lt,{data:d,onMouseMove:p,onMouseLeave:v,children:[f,m,x,P,y,g]}),e[13]=l.onMouseLeave,e[14]=l.onMouseMove,e[15]=g,e[16]=d,e[17]=m,e[18]=b):b=e[18];let I;e[19]!==b||e[20]!==u?(I=A.jsx(de,{config:fr,className:u,children:b}),e[19]=b,e[20]=u,e[21]=I):I=e[21];let E;e[22]!==a?(E=A.jsx(Me,{data:a}),e[22]=a,e[23]=E):E=e[23];let k;return e[24]!==I||e[25]!==E?(k=A.jsxs("div",{children:[I,E]}),e[24]=I,e[25]=E,e[26]=k):k=e[26],k}function mr(t){return A.jsx(Le,{dataKey:t,stackId:"sessions",stroke:`var(--color-${t})`,fill:`var(--color-${t})`,fillOpacity:.3,strokeWidth:1.25,isAnimationActive:!1},t)}function hr(t){return Y(String(t))}function yr(t){return Nt(Number(t))}function xr(t){return{...t,t:new Date(t.t).toISOString()}}function Dr(t){const e=$.c(58),{data:a,deploys:r,percentile:n,className:i}=t,l=n===void 0?"p95":n,o=i===void 0?"h-40":i,s=Ce();let u;e[0]!==a?(u=Ne(a),e[0]=a,e[1]=u):u=e[1];const d=u;let p,v,f,m,x,P,h,y,g,b,I,E,k,j,S,D;if(e[2]!==o||e[3]!==a||e[4]!==s.onMouseLeave||e[5]!==s.onMouseMove||e[6]!==l||e[7]!==d){const G=a.map(Ar);f=de,g=ae,b=`${o} w-full`,v=sr,j=G,S=s.onMouseMove,D=s.onMouseLeave,e[24]===Symbol.for("react.memo_cache_sentinel")?(m=A.jsx(ke,{vertical:!1,strokeDasharray:"2 4"}),e[24]=m):m=e[24],e[25]!==d?(x=A.jsx(je,{dataKey:"t",tickFormatter:d,tickLine:!1,axisLine:!1,minTickGap:40,tick:V}),e[25]=d,e[26]=x):x=e[26],e[27]===Symbol.for("react.memo_cache_sentinel")?(P=A.jsx(Oe,{width:44,tickLine:!1,axisLine:!1,tick:V,tickFormatter:Pr}),e[27]=P):P=e[27],e[28]===Symbol.for("react.memo_cache_sentinel")?(h=A.jsx(Se,{content:A.jsx(we,{labelFormatter:br,formatter:gr})}),e[28]=h):h=e[28],y=A.jsx(xe,{dataKey:l,stroke:`var(--color-${l})`,dot:Xe(G,l,`var(--color-${l})`),strokeWidth:1.75,isAnimationActive:!1}),p=xe,I="avg",E="var(--color-avg)",k=Xe(G,"avg","var(--color-avg)"),e[2]=o,e[3]=a,e[4]=s.onMouseLeave,e[5]=s.onMouseMove,e[6]=l,e[7]=d,e[8]=p,e[9]=v,e[10]=f,e[11]=m,e[12]=x,e[13]=P,e[14]=h,e[15]=y,e[16]=g,e[17]=b,e[18]=I,e[19]=E,e[20]=k,e[21]=j,e[22]=S,e[23]=D}else p=e[8],v=e[9],f=e[10],m=e[11],x=e[12],P=e[13],h=e[14],y=e[15],g=e[16],b=e[17],I=e[18],E=e[19],k=e[20],j=e[21],S=e[22],D=e[23];let w;e[29]!==p||e[30]!==I||e[31]!==E||e[32]!==k?(w=A.jsx(p,{dataKey:I,stroke:E,dot:k,strokeWidth:1.25,strokeOpacity:.8,isAnimationActive:!1}),e[29]=p,e[30]=I,e[31]=E,e[32]=k,e[33]=w):w=e[33];let O;e[34]!==r?(O=_e(r),e[34]=r,e[35]=O):O=e[35];let L;e[36]!==v||e[37]!==m||e[38]!==x||e[39]!==P||e[40]!==h||e[41]!==y||e[42]!==w||e[43]!==O||e[44]!==j||e[45]!==S||e[46]!==D?(L=A.jsxs(v,{data:j,onMouseMove:S,onMouseLeave:D,children:[m,x,P,h,y,w,O]}),e[36]=v,e[37]=m,e[38]=x,e[39]=P,e[40]=h,e[41]=y,e[42]=w,e[43]=O,e[44]=j,e[45]=S,e[46]=D,e[47]=L):L=e[47];let _;e[48]!==f||e[49]!==g||e[50]!==b||e[51]!==L?(_=A.jsx(f,{config:g,className:b,children:L}),e[48]=f,e[49]=g,e[50]=b,e[51]=L,e[52]=_):_=e[52];let N;e[53]!==a?(N=A.jsx(Me,{data:a}),e[53]=a,e[54]=N):N=e[54];let z;return e[55]!==_||e[56]!==N?(z=A.jsxs("div",{children:[_,N]}),e[55]=_,e[56]=N,e[57]=z):z=e[57],z}function gr(t,e){return[t==null?"—":ft(Number(t)),String(e)]}function br(t){return Y(String(t))}function Pr(t){return ft(Number(t),0)}function Ar(t){return{...t,t:new Date(t.t).toISOString()}}function Lr(t){const e=$.c(22),{data:a,className:r,hoverKey:n}=t,i=r===void 0?"h-10 w-32":r,{hoveredKey:l,setHoveredKey:o}=Ye(),s=n!=null&&l===n;let u;e[0]!==a?(u=a.map(Ir),e[0]=a,e[1]=u):u=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d={top:1,right:1,bottom:1,left:1},e[2]=d):d=e[2];let p;e[3]!==n||e[4]!==o?(p=n?()=>o(n):void 0,e[3]=n,e[4]=o,e[5]=p):p=e[5];let v;e[6]!==n||e[7]!==o?(v=n?()=>o(null):void 0,e[6]=n,e[7]=o,e[8]=v):v=e[8];const f=s?"var(--primary)":"var(--muted-foreground)",m=s?"var(--primary)":"var(--muted-foreground)",x=s?.35:.15,P=s?2:1.25;let h;e[9]!==f||e[10]!==m||e[11]!==x||e[12]!==P?(h=A.jsx(Le,{dataKey:"v",stroke:f,fill:m,fillOpacity:x,strokeWidth:P,isAnimationActive:!1}),e[9]=f,e[10]=m,e[11]=x,e[12]=P,e[13]=h):h=e[13];let y;e[14]!==h||e[15]!==u||e[16]!==p||e[17]!==v?(y=A.jsx(Lt,{data:u,margin:d,onMouseEnter:p,onMouseLeave:v,children:h}),e[14]=h,e[15]=u,e[16]=p,e[17]=v,e[18]=y):y=e[18];let g;return e[19]!==i||e[20]!==y?(g=A.jsx(de,{config:ae,className:i,children:y}),e[19]=i,e[20]=y,e[21]=g):g=e[21],g}function Ir(t){return{v:t}}function Nt(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(t>=1e4?0:1)}k`:String(t)}export{Le as A,Dr as L,Lr as S,Sr as T,Lt as a,wr as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{B as Yt,c as rs,r as Q,S as vs,i as ft,j as s,L as Rt,I as es,U as bs,e as Wt,V as Ns,H as ks,F as ws,J as Ss}from"./inertia-Cuyz2ZHO.js";import{D as rt}from"./data-table-CzKTEE-O.js";import{S as $s,E as Cs,B as Ls,a as Is,C as As}from"./frames-zZuIaNH9.js";import{J as ls}from"./json-viewer-DH2W9HXf.js";import{R as as}from"./relative-time-D5UbF4oO.js";import{S as ut,a as Ts}from"./stat-ZtxGU8lE.js";import{I as cs}from"./status-badge-CH5P-Xkj.js";import{f as Ms,g as Rs,h as Ds,i as zs,A as Fs,j as Bs,k as Es,l as Ps,m as Os,n as Ks}from"./app-layout-Zc0v-hYh.js";import{B as ht}from"./badge-DRae8XwK.js";import{B as O}from"./app-wordmark-BA_60AVb.js";import{C as c,b as d,c as m,a as o}from"./card-DPjFKfen.js";import{C as os,X as ds,Y as ms,a as us,b as fs,B as hs,c as xs,d as ps,R as Vs}from"./chart-DWh7l8yM.js";import{S as ts,a as ss,b as ns,c as is,d as Zt}from"./select-2R16457Z.js";import{T as Gs}from"./textarea-BeQtQyl5.js";import{u as Us}from"./use-clipboard-DNefo-ky.js";import{e as Xt}from"./execution-path-FAuIzOXB.js";import{c as Dt,a as Mt,w as at,b as Hs}from"./format-B9SDkrWj.js";import{C as qs}from"./index-BfbSo01U.js";import"./chart-hover-CfoZUY4J.js";import"./empty-state-CW4wclK_.js";import"./source-link-B2183i2-.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./use-live-DMTuhKfB.js";import"./arrow-up-CLQ-7heQ.js";import"./checkbox-DPkLUiwM.js";import"./label-DdCBgiUn.js";const Js=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],Qs=Yt("git-merge",Js);const Ws=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Xs=Yt("globe",Ws);const Ys=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]],Zs=Yt("split",Ys);function en(t,e){return t.filter(n=>n.at.slice(0,10)===e).map(n=>n.ref)}const tn={count:{label:"Occurrences",color:"var(--chart-5)"}},sn={value:{label:"Measured value",color:"var(--chart-2)"}},nn={report:"Fingerprint passed to Railwatch.report.",error:"Fingerprint from the error's own #railwatch_fingerprint.",resolver:"Fingerprint from the app's Railwatch.fingerprint block.",default:"Railwatch's default: exception class, top in-app frame, and the message with its variable data removed."};function rn(t,e){return e?e.kind==="query"?e.group_hash?Ss(t.application.id,t.environment.id,e.group_hash):null:Xt({applicationId:t.application.id,environmentId:t.environment.id,source:e.kind,executionId:e.execution_id}):null}function ln(t,e){const n=t.data;switch(t.kind){case"created":return"opened this issue";case"status":return`changed status ${n.from} → ${n.to}`;case"priority":return`changed priority ${n.from} → ${n.to}`;case"assignee":{const i=n.from_id?e.get(Number(n.from_id))??"someone":"unassigned",l=n.to_id?e.get(Number(n.to_id))??"someone":"unassigned";return`reassigned ${i} → ${l}`}case"merge":return`merged this issue into ${n.target_key}`;case"absorbed":return`merged ${n.source_key} into this issue (${n.occurrences} events)`;case"unmerge":return"unmerged this issue";case"split":{const i=Array.isArray(t.data.into)?t.data.into:[];return n.from_key?`split ${n.occurrences} events out of ${n.from_key}`:`split ${n.occurrences} events by message into ${i.join(", ")}`}case"regressed":return"regressed — a new occurrence reopened this issue";case"alert":return`sent a "${n.event}" alert via ${n.integration}`;case"agent":return`acted via ${String(n.agent??"an AI agent")} (MCP)`;case"comment":return"commented";default:return String(t.kind)}}function an(t){const e=t.issue,n=[];if(n.push(`# ${e.key}: ${e.title}`),e.culprit&&n.push(`Culprit: ${e.culprit}`),n.push(`Environment: ${e.application.name} / ${e.environment.name}`),t.detection?.available&&(n.push(""),n.push("## Detector measurement"),n.push(`${t.detection.metric} for ${t.detection.target}: ${lt(t.detection.measurement?.value,t.detection.unit)}`),t.detection.measurement?.limit!=null&&n.push(`Limit: ${lt(t.detection.measurement.limit,t.detection.unit)}`),t.detection.baseline?.mean!=null&&n.push(`Baseline: ${lt(t.detection.baseline.mean,t.detection.unit)} (${t.detection.baseline.sigmas}σ)`),n.push(`Underlying telemetry: ${t.detection.telemetry_type} ${t.detection.telemetry_group_hash}`)),t.latest){n.push(""),n.push(`## ${t.latest.class_name}`),n.push(t.latest.message);const i=t.latest.frames.filter(l=>l.in_app);if(i.length>0){n.push(""),n.push("### Frames");for(const l of i)if(n.push(`${l.file}:${l.line} in \`${l.function}\``),l.code)for(const[B,T]of Object.entries(l.code))n.push(`${B}: ${T}`)}t.latest.context&&(n.push(""),n.push("### Context"),n.push(String(t.latest.context)))}return n.join(`
|
|
2
|
+
`)}function lt(t,e){return t==null?"–":e==="milliseconds"?`${t.toLocaleString()} ms`:e==="percent"?`${t.toLocaleString()}%`:e==="events_per_minute"?`${t.toLocaleString()} / min`:t.toLocaleString()}function cn(t){const e=rs.c(80),{issue:n,detail:i}=t;if(!i.available){let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(d,{children:s.jsx(m,{children:"Detector sample"})}),e[0]=_):_=e[0];let u;return e[1]!==n.sample?(u=s.jsxs(c,{children:[_,s.jsx(o,{children:s.jsx(ls,{data:n.sample})})]}),e[1]=n.sample,e[2]=u):u=e[2],u}let l;e[3]!==i.representative_records?(l=i.representative_records??[],e[3]=i.representative_records,e[4]=l):l=e[4];const B=l;let T;e[5]!==i.deploy_comparison?(T=i.deploy_comparison??[],e[5]=i.deploy_comparison,e[6]=T):T=e[6];const q=T;let b;e[7]!==i.trend?(b=i.trend??[],e[7]=i.trend,e[8]=b):b=e[8];const K=b,a=i.metric==="missed",W=a?"Missed scheduled task":i.kind==="anomaly"?"Anomaly measurement":"Threshold breach";let N;e[9]!==W?(N=s.jsx(d,{children:s.jsx(m,{children:W})}),e[9]=W,e[10]=N):N=e[10];let E;e[11]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("p",{className:"text-muted-foreground text-xs",children:"Target"}),e[11]=E):E=e[11];let M;e[12]!==i.target?(M=s.jsxs("div",{children:[E,s.jsx("p",{className:"font-mono text-sm",children:i.target})]}),e[12]=i.target,e[13]=M):M=e[13];const ct=a?"Schedule":"Metric";let P;e[14]!==ct?(P=s.jsx("p",{className:"text-muted-foreground text-xs",children:ct}),e[14]=ct,e[15]=P):P=e[15];const ot=a?i.rule?.schedule:i.metric;let R;e[16]!==ot?(R=s.jsx("p",{className:"text-sm",children:ot}),e[16]=ot,e[17]=R):R=e[17];let V;e[18]!==R||e[19]!==P?(V=s.jsxs("div",{children:[P,R]}),e[18]=R,e[19]=P,e[20]=V):V=e[20];const dt=a?"Expected":"Measured";let k;e[21]!==dt?(k=s.jsx("p",{className:"text-muted-foreground text-xs",children:dt}),e[21]=dt,e[22]=k):k=e[22];let D;e[23]!==i.measurement?.value||e[24]!==i.rule||e[25]!==i.unit||e[26]!==a?(D=a&&i.rule?.expected?at(i.rule.expected):lt(i.measurement?.value,i.unit),e[23]=i.measurement?.value,e[24]=i.rule,e[25]=i.unit,e[26]=a,e[27]=D):D=e[27];let w;e[28]!==D?(w=s.jsx("p",{className:"text-sm font-semibold",children:D}),e[28]=D,e[29]=w):w=e[29];let S;e[30]!==k||e[31]!==w?(S=s.jsxs("div",{children:[k,w]}),e[30]=k,e[31]=w,e[32]=S):S=e[32];const G=a?"Last run":i.kind==="anomaly"?"Baseline":"Limit";let $;e[33]!==G?($=s.jsx("p",{className:"text-muted-foreground text-xs",children:G}),e[33]=G,e[34]=$):$=e[34];let z;e[35]!==i.baseline?.mean||e[36]!==i.kind||e[37]!==i.measurement?.limit||e[38]!==i.rule||e[39]!==i.unit||e[40]!==a?(z=a&&i.rule?.last_run?at(i.rule.last_run):i.kind==="anomaly"?lt(i.baseline?.mean,i.unit):lt(i.measurement?.limit,i.unit),e[35]=i.baseline?.mean,e[36]=i.kind,e[37]=i.measurement?.limit,e[38]=i.rule,e[39]=i.unit,e[40]=a,e[41]=z):z=e[41];let C;e[42]!==z?(C=s.jsx("p",{className:"text-sm",children:z}),e[42]=z,e[43]=C):C=e[43];let U;e[44]!==$||e[45]!==C?(U=s.jsxs("div",{children:[$,C]}),e[44]=$,e[45]=C,e[46]=U):U=e[46];let f;e[47]!==V||e[48]!==S||e[49]!==U||e[50]!==M?(f=s.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-4",children:[M,V,S,U]}),e[47]=V,e[48]=S,e[49]=U,e[50]=M,e[51]=f):f=e[51];const F=i.window?.minutes,J=i.baseline?.sigmas!=null&&` · ${i.baseline.sigmas}σ above a ${i.baseline.days}-day baseline`;let h;e[52]!==i.telemetry_group_hash||e[53]!==i.telemetry_type||e[54]!==F||e[55]!==J?(h=s.jsxs("p",{className:"text-muted-foreground text-xs",children:[i.telemetry_type," group ",i.telemetry_group_hash," ·"," ",F," minute window",J]}),e[52]=i.telemetry_group_hash,e[53]=i.telemetry_type,e[54]=F,e[55]=J,e[56]=h):h=e[56];let H;e[57]!==f||e[58]!==h?(H=s.jsxs(o,{className:"space-y-4",children:[f,h]}),e[57]=f,e[58]=h,e[59]=H):H=e[59];let x;e[60]!==H||e[61]!==N?(x=s.jsxs(c,{children:[N,H]}),e[60]=H,e[61]=N,e[62]=x):x=e[62];let p;e[63]!==i.metric||e[64]!==K?(p=K.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsxs(m,{children:[i.metric," trend (30d)"]})}),s.jsx(o,{children:s.jsx(xs,{config:sn,className:"h-48 w-full",children:s.jsxs(ps,{data:K,children:[s.jsx(os,{vertical:!1}),s.jsx(ds,{dataKey:"day",tickLine:!1,axisLine:!1,minTickGap:24,tickFormatter:yn}),s.jsx(ms,{width:45,tickLine:!1,axisLine:!1}),s.jsx(us,{content:s.jsx(fs,{})}),s.jsx(hs,{dataKey:"value",fill:"var(--color-value)",radius:2})]})})})]}),e[63]=i.metric,e[64]=K,e[65]=p):p=e[65];let L;e[66]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(d,{children:s.jsx(m,{children:"Representative telemetry"})}),e[66]=L):L=e[66];let g;e[67]!==n?(g=_=>{const u=rn(n,_.drilldown);u&&Wt.visit(u)},e[67]=n,e[68]=g):g=e[68];let I;e[69]===Symbol.for("react.memo_cache_sentinel")?(I=[{key:"when",header:"When",cell:gn},{key:"record",header:"Record",className:"max-w-0",cell:pn},{key:"duration",header:"Duration",align:"right",cell:xn},{key:"deploy",header:"Deploy",cell:hn}],e[69]=I):I=e[69];let j;e[70]!==B||e[71]!==g?(j=s.jsxs(c,{children:[L,s.jsx(o,{children:s.jsx(rt,{rows:B,rowKey:jn,empty:"Representative raw telemetry has been pruned.",onRowClick:g,columns:I})})]}),e[70]=B,e[71]=g,e[72]=j):j=e[72];let y;e[73]!==q?(y=q.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Deploy comparison (30d)"})}),s.jsx(o,{children:s.jsx(rt,{rows:q,rowKey:fn,columns:[{key:"deploy",header:"Deploy",cell:un},{key:"events",header:"Events",align:"right",cell:mn},{key:"avg",header:"Avg",align:"right",cell:dn},{key:"max",header:"Max",align:"right",cell:on}]})})]}),e[73]=q,e[74]=y):y=e[74];let A;return e[75]!==x||e[76]!==p||e[77]!==j||e[78]!==y?(A=s.jsxs(s.Fragment,{children:[x,p,j,y]}),e[75]=x,e[76]=p,e[77]=j,e[78]=y,e[79]=A):A=e[79],A}function on(t){return`${t.max_ms} ms`}function dn(t){return`${t.avg_ms} ms`}function mn(t){return Dt(t.events)}function un(t){return s.jsx("span",{className:"font-mono text-xs",children:t.deploy.slice(0,12)})}function fn(t){return t.deploy}function hn(t){return s.jsx("span",{className:"font-mono text-xs",children:t.deploy?.slice(0,10)})}function xn(t){return`${t.duration_ms.toLocaleString()} ms`}function pn(t){return s.jsx("span",{className:"block truncate font-mono text-xs",children:t.name})}function gn(t){return s.jsx("span",{className:"text-xs",children:at(t.occurred_at)})}function jn(t){return`${t.record_type}-${t.record_id}`}function yn(t){return new Date(t).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Ni(t){const e=rs.c(259),n=t.issue;let i;e[0]!==n.id?(i=(r,v)=>{const mt=v===void 0?{}:v;return Wt.patch(ft(n.id),{action_name:r,...mt},{preserveScroll:!0})},e[0]=n.id,e[1]=i):i=e[1];const l=i,[,B]=Us(),[T,q]=Q.useState(!1),[b,K]=Q.useState(!1),[a,W]=Q.useState("");let N;e[2]===Symbol.for("react.memo_cache_sentinel")?(N=[],e[2]=N):N=e[2];const[E,M]=Q.useState(N),[ct,P]=Q.useState(!1),[ot,R]=Q.useState(!1),V=new Map(t.members.map(Qn)),dt=Bs();let k;e[3]!==n.application.id||e[4]!==n.environment.id?(k=r=>Xt({applicationId:n.application.id,environmentId:n.environment.id,source:r.execution_source,executionId:r.execution_id}),e[3]=n.application.id,e[4]=n.environment.id,e[5]=k):k=e[5];const D=k;let w;e[6]!==n.application.id||e[7]!==n.environment.id||e[8]!==t.latest?(w=t.latest?Xt({applicationId:n.application.id,environmentId:n.environment.id,source:t.latest.execution_source,executionId:t.latest.execution_id}):null,e[6]=n.application.id,e[7]=n.environment.id,e[8]=t.latest,e[9]=w):w=e[9];const S=w;let G,$;e[10]!==n.id||e[11]!==b||e[12]!==a?(G=()=>{if(!b)return;const r=new AbortController,v=window.setTimeout(()=>{P(!0),R(!1),fetch(Ns(n.id,{q:a}),{headers:{Accept:"application/json"},credentials:"same-origin",signal:r.signal}).then(Jn).then(mt=>{const{issues:Tt}=mt;return M(Tt)}).catch(()=>{r.signal.aborted||(M([]),R(!0))}).finally(()=>{r.signal.aborted||P(!1)})},150);return()=>{window.clearTimeout(v),r.abort()}},$=[n.id,b,a],e[10]=n.id,e[11]=b,e[12]=a,e[13]=G,e[14]=$):(G=e[13],$=e[14]),Q.useEffect(G,$);const z=Fs;let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C={title:"Issues",href:vs()},e[15]=C):C=e[15];const U=n.key;let f;e[16]!==n.id?(f=ft(n.id),e[16]=n.id,e[17]=f):f=e[17];let F;e[18]!==n.key||e[19]!==f?(F=[C,{title:U,href:f}],e[18]=n.key,e[19]=f,e[20]=F):F=e[20];const J=`${n.key} ${n.title}`;let h;e[21]!==J?(h=s.jsx(ks,{title:J}),e[21]=J,e[22]=h):h=e[22];const H="flex flex-1 flex-col gap-4 p-3 md:gap-5 md:px-6 md:pt-2 md:pb-6";let x;e[23]!==n.key?(x=s.jsx("span",{className:"font-mono text-sm font-semibold",children:n.key}),e[23]=n.key,e[24]=x):x=e[24];let p;e[25]!==n.status?(p=s.jsx(cs,{status:n.status}),e[25]=n.status,e[26]=p):p=e[26];let L;e[27]!==n.kind?(L=s.jsx(ht,{variant:"outline",children:n.kind}),e[27]=n.kind,e[28]=L):L=e[28];let g;e[29]!==n.source?(g=n.source==="browser"&&s.jsxs(ht,{variant:"outline",className:"gap-1",children:[s.jsx(Xs,{className:"size-3"}),"browser"]}),e[29]=n.source,e[30]=g):g=e[30];let I;e[31]!==n.application.name||e[32]!==n.environment.name?(I=s.jsxs("span",{className:"text-muted-foreground text-xs",children:[n.application.name," · ",n.environment.name]}),e[31]=n.application.name,e[32]=n.environment.name,e[33]=I):I=e[33];let j;e[34]!==x||e[35]!==p||e[36]!==L||e[37]!==g||e[38]!==I?(j=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[x,p,L,g,I]}),e[34]=x,e[35]=p,e[36]=L,e[37]=g,e[38]=I,e[39]=j):j=e[39];let y;e[40]!==n.title?(y=s.jsx("h1",{className:"mt-1 text-lg font-semibold break-words",children:n.title}),e[40]=n.title,e[41]=y):y=e[41];let A;e[42]!==n.culprit||e[43]!==n.sample?(A=n.culprit&&s.jsx("div",{className:"text-muted-foreground",children:s.jsx($s,{location:n.culprit,deploy:n.sample.deploy})}),e[42]=n.culprit,e[43]=n.sample,e[44]=A):A=e[44];let _;e[45]!==j||e[46]!==y||e[47]!==A?(_=s.jsxs("div",{className:"min-w-0",children:[j,y,A]}),e[45]=j,e[46]=y,e[47]=A,e[48]=_):_=e[48];let u;e[49]!==l?(u=r=>l("priority",{priority:r}),e[49]=l,e[50]=u):u=e[50];let xt;e[51]===Symbol.for("react.memo_cache_sentinel")?(xt=s.jsx(ss,{className:"w-28",children:s.jsx(ns,{})}),e[51]=xt):xt=e[51];let pt;e[52]===Symbol.for("react.memo_cache_sentinel")?(pt=s.jsx(is,{children:["low","normal","high","urgent"].map(qn)}),e[52]=pt):pt=e[52];let X;e[53]!==n.priority||e[54]!==u?(X=s.jsxs(ts,{value:n.priority,onValueChange:u,children:[xt,pt]}),e[53]=n.priority,e[54]=u,e[55]=X):X=e[55];const zt=n.assignee?String(n.assignee.id):"none";let Y;e[56]!==l?(Y=r=>l("assign",{assignee_id:r==="none"?null:r}),e[56]=l,e[57]=Y):Y=e[57];let gt;e[58]===Symbol.for("react.memo_cache_sentinel")?(gt=s.jsx(ss,{className:"w-40",children:s.jsx(ns,{placeholder:"Assign"})}),e[58]=gt):gt=e[58];let jt;e[59]===Symbol.for("react.memo_cache_sentinel")?(jt=s.jsx(Zt,{value:"none",children:"Unassigned"}),e[59]=jt):jt=e[59];let Z;e[60]!==t.members?(Z=t.members.map(Hn),e[60]=t.members,e[61]=Z):Z=e[61];let ee;e[62]!==Z?(ee=s.jsxs(is,{children:[jt,Z]}),e[62]=Z,e[63]=ee):ee=e[63];let te;e[64]!==zt||e[65]!==Y||e[66]!==ee?(te=s.jsxs(ts,{value:zt,onValueChange:Y,children:[gt,ee]}),e[64]=zt,e[65]=Y,e[66]=ee,e[67]=te):te=e[67];let se;e[68]!==l||e[69]!==n.status?(se=n.status==="merged"?s.jsx(O,{size:"sm",variant:"outline",onClick:()=>l("unmerge"),children:"Unmerge"}):n.status==="open"?s.jsxs(s.Fragment,{children:[s.jsx(O,{size:"sm",onClick:()=>l("resolve"),children:"Resolve"}),s.jsx(O,{size:"sm",variant:"outline",onClick:()=>l("ignore"),children:"Ignore"})]}):s.jsx(O,{size:"sm",variant:"outline",onClick:()=>l("reopen"),children:"Reopen"}),e[68]=l,e[69]=n.status,e[70]=se):se=e[70];let ne;e[71]!==n.status?(ne=n.status!=="merged"&&s.jsxs(O,{size:"sm",variant:"outline",onClick:()=>K(!0),children:[s.jsx(Qs,{"data-icon":"inline-start"}),"Merge into…"]}),e[71]=n.status,e[72]=ne):ne=e[72];let ie;e[73]!==B||e[74]!==t?(ie=()=>{(async()=>await B(an(t))&&(q(!0),setTimeout(()=>q(!1),1200)))()},e[73]=B,e[74]=t,e[75]=ie):ie=e[75];let re;e[76]!==T?(re=T?s.jsx(qs,{className:"size-3.5"}):s.jsx(As,{className:"size-3.5"}),e[76]=T,e[77]=re):re=e[77];let le;e[78]!==ie||e[79]!==re?(le=s.jsxs(O,{size:"sm",variant:"outline",onClick:ie,children:[re,"Copy for AI"]}),e[78]=ie,e[79]=re,e[80]=le):le=e[80];let ae;e[81]!==X||e[82]!==te||e[83]!==se||e[84]!==ne||e[85]!==le?(ae=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[X,te,se,ne,le]}),e[81]=X,e[82]=te,e[83]=se,e[84]=ne,e[85]=le,e[86]=ae):ae=e[86];let ce;e[87]!==_||e[88]!==ae?(ce=s.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[_,ae]}),e[87]=_,e[88]=ae,e[89]=ce):ce=e[89];let oe;e[90]!==l||e[91]!==t.merged_into?(oe=t.merged_into&&s.jsxs("div",{className:"bg-muted flex flex-wrap items-center justify-between gap-2 rounded-md border px-4 py-3 text-sm",children:[s.jsxs("span",{children:["Merged into"," ",s.jsx(Rt,{href:ft(t.merged_into.id),className:"font-mono font-semibold underline",children:t.merged_into.key})," ",s.jsx("span",{className:"text-muted-foreground",children:t.merged_into.title})]}),s.jsx(O,{size:"sm",variant:"outline",onClick:()=>l("unmerge"),children:"Unmerge"})]}),e[90]=l,e[91]=t.merged_into,e[92]=oe):oe=e[92];let yt;e[93]===Symbol.for("react.memo_cache_sentinel")?(yt=r=>{K(r),r||(W(""),M([]),R(!1))},e[93]=yt):yt=e[93];let de;e[94]!==a?(de=s.jsx(Es,{placeholder:"Search issues by key or title…",value:a,onValueChange:W}),e[94]=a,e[95]=de):de=e[95];const Ft=ct?"Searching…":ot?"Search failed. Try again.":"No open issues found.";let me;e[96]!==Ft?(me=s.jsx(Ps,{children:Ft}),e[96]=Ft,e[97]=me):me=e[97];let ue;e[98]!==l||e[99]!==E?(ue=E.length>0&&s.jsx(Ms,{children:E.map(r=>s.jsxs(Rs,{value:`${r.key} ${r.title}`,onSelect:()=>{l("merge",{target_id:r.id}),K(!1)},children:[s.jsx("span",{className:"font-mono font-semibold",children:r.key}),s.jsx("span",{className:"text-muted-foreground truncate",children:r.title})]},r.id))}),e[98]=l,e[99]=E,e[100]=ue):ue=e[100];let fe;e[101]!==me||e[102]!==ue?(fe=s.jsxs(Os,{children:[me,ue]}),e[101]=me,e[102]=ue,e[103]=fe):fe=e[103];let he;e[104]!==b||e[105]!==de||e[106]!==fe?(he=s.jsxs(Ks,{open:b,onOpenChange:yt,title:"Merge into…",description:"Search issues to merge this one into",children:[de,fe]}),e[104]=b,e[105]=de,e[106]=fe,e[107]=he):he=e[107];const Bt=t.detection?.count_label??"Events",Et=t.detection?.breached_windows??n.occurrences;let xe;e[108]!==Et?(xe=Dt(Et),e[108]=Et,e[109]=xe):xe=e[109];let pe;e[110]!==Bt||e[111]!==xe?(pe=s.jsx(ut,{label:Bt,value:xe}),e[110]=Bt,e[111]=xe,e[112]=pe):pe=e[112];const Pt=t.detection?"Events in measured window":"Users affected";let ge;e[113]!==n.affected_users||e[114]!==t.detection?(ge=t.detection?t.detection.event_count==null?"–":Dt(t.detection.event_count):n.affected_users,e[113]=n.affected_users,e[114]=t.detection,e[115]=ge):ge=e[115];let je;e[116]!==Pt||e[117]!==ge?(je=s.jsx(ut,{label:Pt,value:ge}),e[116]=Pt,e[117]=ge,e[118]=je):je=e[118];let ye;e[119]!==n.first_seen_at?(ye=Mt(n.first_seen_at),e[119]=n.first_seen_at,e[120]=ye):ye=e[120];let _e;e[121]!==n.first_seen_at?(_e=at(n.first_seen_at),e[121]=n.first_seen_at,e[122]=_e):_e=e[122];let ve;e[123]!==ye||e[124]!==_e?(ve=s.jsx(ut,{label:"First seen",value:ye,hint:_e}),e[123]=ye,e[124]=_e,e[125]=ve):ve=e[125];let be;e[126]!==n.last_seen_at?(be=Mt(n.last_seen_at),e[126]=n.last_seen_at,e[127]=be):be=e[127];let Ne;e[128]!==n.last_seen_at?(Ne=at(n.last_seen_at),e[128]=n.last_seen_at,e[129]=Ne):Ne=e[129];let ke;e[130]!==be||e[131]!==Ne?(ke=s.jsx(ut,{label:"Last seen",value:be,hint:Ne}),e[130]=be,e[131]=Ne,e[132]=ke):ke=e[132];const Ot=n.regressed_at?"Regressed":"Resolved";let we;e[133]!==n.regressed_at||e[134]!==n.resolved_at?(we=n.regressed_at?Mt(n.regressed_at):n.resolved_at?Mt(n.resolved_at):"–",e[133]=n.regressed_at,e[134]=n.resolved_at,e[135]=we):we=e[135];let Se;e[136]!==n.resolved_in_deploy?(Se=n.resolved_in_deploy?`in ${n.resolved_in_deploy.slice(0,12)}`:void 0,e[136]=n.resolved_in_deploy,e[137]=Se):Se=e[137];const Kt=n.regressed_at?"destructive":void 0;let $e;e[138]!==Ot||e[139]!==we||e[140]!==Se||e[141]!==Kt?($e=s.jsx(ut,{label:Ot,value:we,hint:Se,tone:Kt}),e[138]=Ot,e[139]=we,e[140]=Se,e[141]=Kt,e[142]=$e):$e=e[142];let Ce;e[143]!==pe||e[144]!==je||e[145]!==ve||e[146]!==ke||e[147]!==$e?(Ce=s.jsxs(Ts,{children:[pe,je,ve,ke,$e]}),e[143]=pe,e[144]=je,e[145]=ve,e[146]=ke,e[147]=$e,e[148]=Ce):Ce=e[148];const gs="grid gap-6 lg:grid-cols-3";let Le;e[149]!==n||e[150]!==S||e[151]!==t.breadcrumbs||e[152]!==t.browser_breadcrumbs||e[153]!==t.detection||e[154]!==t.latest?(Le=t.detection?s.jsx(cn,{issue:n,detail:t.detection}):t.latest?s.jsxs(c,{children:[s.jsxs(d,{className:"flex-row items-center justify-between",children:[s.jsx(m,{children:"Latest occurrence"}),S&&s.jsxs(Rt,{className:"text-xs underline",href:S,children:["Open ",t.latest.execution_preview]})]}),s.jsxs(o,{children:[s.jsx(Cs,{exception:t.latest,deploy:t.latest.deploy}),s.jsxs("div",{className:"mt-4 space-y-4",children:[s.jsx(Ls,{entries:t.breadcrumbs}),s.jsx(Is,{crumbs:t.browser_breadcrumbs})]}),(t.latest.ruby_version??t.latest.rails_version)&&s.jsxs("p",{className:"text-muted-foreground mt-3 text-xs",children:["Ruby ",t.latest.ruby_version," · Rails"," ",t.latest.rails_version]})]})]}):s.jsx(c,{children:s.jsx(o,{children:s.jsx(ls,{data:n.sample})})}),e[149]=n,e[150]=S,e[151]=t.breadcrumbs,e[152]=t.browser_breadcrumbs,e[153]=t.detection,e[154]=t.latest,e[155]=Le):Le=e[155];const Vt=t.detection?"hidden":void 0;let _t;e[156]===Symbol.for("react.memo_cache_sentinel")?(_t=s.jsx(d,{children:s.jsx(m,{children:"Occurrences (30d)"})}),e[156]=_t):_t=e[156];let Ie;e[157]!==D?(Ie=r=>{const v=D(r);v&&Wt.visit(v)},e[157]=D,e[158]=Ie):Ie=e[158];let vt;e[159]===Symbol.for("react.memo_cache_sentinel")?(vt=[{key:"when",header:"When",cell:Gn},{key:"in",header:"In",cell:Vn},{key:"u",header:"User",cell:Kn},{key:"t",header:"Tenant",cell:On},{key:"d",header:"Deploy",cell:Pn},{key:"h",header:"",cell:En}],e[159]=vt):vt=e[159];let Ae;e[160]!==t.occurrences||e[161]!==Ie?(Ae=s.jsx(o,{children:s.jsx(rt,{rows:t.occurrences,rowKey:Un,empty:"Raw occurrences have been pruned.",onRowClick:Ie,columns:vt})}),e[160]=t.occurrences,e[161]=Ie,e[162]=Ae):Ae=e[162];let Te;e[163]!==Vt||e[164]!==Ae?(Te=s.jsxs(c,{className:Vt,children:[_t,Ae]}),e[163]=Vt,e[164]=Ae,e[165]=Te):Te=e[165];let Me;e[166]!==n.application.id||e[167]!==n.environment.id||e[168]!==t.attachments?(Me=t.attachments.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Attachments"})}),s.jsx(o,{children:s.jsx(rt,{rows:t.attachments,rowKey:Bn,columns:[{key:"name",header:"Name",className:"max-w-0",cell:Fn},{key:"in",header:"In",cell:zn},{key:"size",header:"Size",align:"right",cell:Dn},{key:"links",header:"",align:"right",cell:r=>s.jsxs("span",{className:"flex justify-end gap-3",children:[r.viewable&&s.jsx("a",{className:"text-primary hover:underline",href:es(n.application.id,n.environment.id,r.id,{view:1}),children:"View"}),s.jsx("a",{className:"text-primary hover:underline",href:es(n.application.id,n.environment.id,r.id),children:"Download"})]})}]})})]}),e[166]=n.application.id,e[167]=n.environment.id,e[168]=t.attachments,e[169]=Me):Me=e[169];let Re;e[170]!==Le||e[171]!==Te||e[172]!==Me?(Re=s.jsxs("div",{className:"space-y-6 lg:col-span-2",children:[Le,Te,Me]}),e[170]=Le,e[171]=Te,e[172]=Me,e[173]=Re):Re=e[173];const js="space-y-6",Gt=t.detection?"hidden":void 0;let bt;e[174]===Symbol.for("react.memo_cache_sentinel")?(bt=s.jsx(d,{children:s.jsx(m,{children:"Daily (30d)"})}),e[174]=bt):bt=e[174];const ys=t.daily;let Nt,kt,wt;e[175]===Symbol.for("react.memo_cache_sentinel")?(Nt=s.jsx(os,{vertical:!1}),kt=s.jsx(ds,{dataKey:"day",tickLine:!1,axisLine:!1,minTickGap:24,tickFormatter:Rn}),wt=s.jsx(ms,{width:28,tickLine:!1,axisLine:!1,allowDecimals:!1}),e[175]=Nt,e[176]=kt,e[177]=wt):(Nt=e[175],kt=e[176],wt=e[177]);let De;e[178]!==t.deploys?(De=s.jsx(us,{content:s.jsx(fs,{labelFormatter:r=>{const v=en(t.deploys,String(r));return v.length>0?`${String(r)} · deployed ${v.join(", ")}`:String(r)}})}),e[178]=t.deploys,e[179]=De):De=e[179];let St;e[180]===Symbol.for("react.memo_cache_sentinel")?(St=s.jsx(hs,{dataKey:"count",fill:"var(--color-count)",radius:2}),e[180]=St):St=e[180];let ze;e[181]!==t.deploys?(ze=new Set(t.deploys.map(Mn)),e[181]=t.deploys,e[182]=ze):ze=e[182];let Fe;e[183]!==ze?(Fe=[...ze].map(Tn),e[183]=ze,e[184]=Fe):Fe=e[184];let Be;e[185]!==t.daily||e[186]!==De||e[187]!==Fe?(Be=s.jsx(o,{children:s.jsx(xs,{config:tn,className:"h-40 w-full",children:s.jsxs(ps,{data:ys,children:[Nt,kt,wt,De,St,Fe]})})}),e[185]=t.daily,e[186]=De,e[187]=Fe,e[188]=Be):Be=e[188];let Ee;e[189]!==Gt||e[190]!==Be?(Ee=s.jsxs(c,{className:Gt,children:[bt,Be]}),e[189]=Gt,e[190]=Be,e[191]=Ee):Ee=e[191];const Ut=t.detection?"hidden":void 0;let $t;e[192]===Symbol.for("react.memo_cache_sentinel")?($t=s.jsx(d,{children:s.jsx(m,{children:"Grouping"})}),e[192]=$t):$t=e[192];let Pe;e[193]!==t.fingerprint?(Pe=t.fingerprint.length>0&&s.jsx("div",{className:"flex flex-wrap gap-1",children:t.fingerprint.map(An)}),e[193]=t.fingerprint,e[194]=Pe):Pe=e[194];const Ht=nn[t.fingerprint_source??"default"]??`Fingerprint from ${t.fingerprint_source}.`;let Oe;e[195]!==Ht?(Oe=s.jsx("p",{className:"text-muted-foreground text-xs",children:Ht}),e[195]=Ht,e[196]=Oe):Oe=e[196];let Ke;e[197]!==l||e[198]!==t.distinct_messages||e[199]!==t.top_messages?(Ke=t.distinct_messages>1&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"space-y-1",children:t.top_messages.map(In)}),s.jsxs(O,{size:"sm",variant:"outline",onClick:()=>l("split",{by:"message"}),children:[s.jsx(Zs,{className:"size-3.5"}),"Split into ",t.distinct_messages," issues"]})]}),e[197]=l,e[198]=t.distinct_messages,e[199]=t.top_messages,e[200]=Ke):Ke=e[200];let Ve;e[201]!==Pe||e[202]!==Oe||e[203]!==Ke?(Ve=s.jsxs(o,{className:"space-y-3",children:[Pe,Oe,Ke]}),e[201]=Pe,e[202]=Oe,e[203]=Ke,e[204]=Ve):Ve=e[204];let Ge;e[205]!==Ut||e[206]!==Ve?(Ge=s.jsxs(c,{className:Ut,children:[$t,Ve]}),e[205]=Ut,e[206]=Ve,e[207]=Ge):Ge=e[207];let Ue;e[208]!==t.related_issues?(Ue=t.related_issues.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Related issues"})}),s.jsx(o,{className:"space-y-2",children:t.related_issues.map(Ln)})]}),e[208]=t.related_issues,e[209]=Ue):Ue=e[209];let He;e[210]!==t.merged_issues?(He=t.merged_issues.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Merged issues"})}),s.jsx(o,{className:"space-y-2",children:t.merged_issues.map(Cn)})]}),e[210]=t.merged_issues,e[211]=He):He=e[211];let qe;e[212]!==t.alerts?(qe=t.alerts.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Alerts"})}),s.jsx(o,{className:"space-y-2",children:t.alerts.map($n)})]}),e[212]=t.alerts,e[213]=qe):qe=e[213];let Ct;e[214]===Symbol.for("react.memo_cache_sentinel")?(Ct=s.jsx(d,{children:s.jsx(m,{children:"By deploy"})}),e[214]=Ct):Ct=e[214];let Je;e[215]!==t.by_deploy?(Je=Object.entries(t.by_deploy),e[215]=t.by_deploy,e[216]=Je):Je=e[216];let Lt;e[217]===Symbol.for("react.memo_cache_sentinel")?(Lt=[{key:"d",header:"Deploy",cell:wn},{key:"n",header:"Count",align:"right",cell:kn}],e[217]=Lt):Lt=e[217];let Qe;e[218]!==Je?(Qe=s.jsxs(c,{children:[Ct,s.jsx(o,{children:s.jsx(rt,{rows:Je,rowKey:Sn,columns:Lt})})]}),e[218]=Je,e[219]=Qe):Qe=e[219];let We;e[220]!==t.by_tenant?(We=Object.keys(t.by_tenant).length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"By tenant"})}),s.jsx(o,{children:s.jsx(rt,{rows:Object.entries(t.by_tenant),rowKey:Nn,columns:[{key:"t",header:"Tenant",cell:bn},{key:"n",header:"Count",align:"right",cell:vn}]})})]}),e[220]=t.by_tenant,e[221]=We):We=e[221];const qt=c;let Xe;e[222]===Symbol.for("react.memo_cache_sentinel")?(Xe=s.jsx(d,{children:s.jsx(m,{children:"Activity"})}),e[222]=Xe):Xe=e[222];const Jt=o,_s="space-y-3",Qt=t.activities.map(r=>{const v=r.data.source==="linear",mt=typeof r.data.author_name=="string"?r.data.author_name:"Linear",Tt=r.user?.name??(v?mt:"System");return s.jsxs("div",{className:"flex gap-2 text-sm",children:[s.jsx(Ds,{className:"size-6",children:s.jsx(zs,{className:"text-[10px]",children:r.user||v?dt(Tt):"sys"})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"text-xs",children:[s.jsx("span",{className:"font-medium",children:Tt})," ",s.jsx("span",{className:"text-muted-foreground",children:ln(r,V)})," ",s.jsx(as,{iso:r.created_at,className:"text-muted-foreground"})]}),r.kind==="comment"&&s.jsx("div",{className:"mt-0.5 whitespace-pre-wrap",children:String(r.data.body)})]})]},r.id)});let Ye;e[223]!==n.id?(Ye=bs(n.id),e[223]=n.id,e[224]=Ye):Ye=e[224];let It;e[225]===Symbol.for("react.memo_cache_sentinel")?(It={preserveScroll:!0},e[225]=It):It=e[225];let Ze;e[226]!==Ye?(Ze=s.jsx(ws,{method:"post",action:Ye,options:It,resetOnSuccess:!0,className:"space-y-2",children:_n}),e[226]=Ye,e[227]=Ze):Ze=e[227];let et;e[228]!==Jt||e[229]!==Qt||e[230]!==Ze?(et=s.jsxs(Jt,{className:_s,children:[Qt,Ze]}),e[228]=Jt,e[229]=Qt,e[230]=Ze,e[231]=et):et=e[231];let tt;e[232]!==qt||e[233]!==Xe||e[234]!==et?(tt=s.jsxs(qt,{children:[Xe,et]}),e[232]=qt,e[233]=Xe,e[234]=et,e[235]=tt):tt=e[235];let st;e[236]!==qe||e[237]!==Qe||e[238]!==We||e[239]!==tt||e[240]!==Ee||e[241]!==Ge||e[242]!==Ue||e[243]!==He?(st=s.jsxs("div",{className:js,children:[Ee,Ge,Ue,He,qe,Qe,We,tt]}),e[236]=qe,e[237]=Qe,e[238]=We,e[239]=tt,e[240]=Ee,e[241]=Ge,e[242]=Ue,e[243]=He,e[244]=st):st=e[244];let nt;e[245]!==st||e[246]!==Re?(nt=s.jsxs("div",{className:gs,children:[Re,st]}),e[245]=st,e[246]=Re,e[247]=nt):nt=e[247];let it;e[248]!==nt||e[249]!==ce||e[250]!==oe||e[251]!==he||e[252]!==Ce?(it=s.jsxs("div",{className:H,children:[ce,oe,he,Ce,nt]}),e[248]=nt,e[249]=ce,e[250]=oe,e[251]=he,e[252]=Ce,e[253]=it):it=e[253];let At;return e[254]!==z||e[255]!==h||e[256]!==it||e[257]!==F?(At=s.jsxs(z,{breadcrumbs:F,children:[h,it]}),e[254]=z,e[255]=h,e[256]=it,e[257]=F,e[258]=At):At=e[258],At}function _n(t){const{processing:e}=t;return s.jsxs(s.Fragment,{children:[s.jsx(Gs,{name:"body",placeholder:"Add a comment…",required:!0,rows:3}),s.jsx(O,{size:"sm",disabled:e,children:"Comment"})]})}function vn(t){const[,e]=t;return e}function bn(t){const[e]=t;return s.jsx("span",{className:"font-mono text-xs",children:e})}function Nn(t){const[e]=t;return e}function kn(t){const[,e]=t;return e}function wn(t){const[e]=t;return s.jsx("span",{className:"font-mono text-xs",children:e??"unknown"})}function Sn(t){const[e]=t;return e??"none"}function $n(t){return s.jsxs("div",{className:"flex flex-col gap-0.5 text-xs",title:t.error??void 0,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ht,{variant:t.status==="failed"?"destructive":"outline",className:"capitalize",children:t.status}),s.jsxs("span",{children:[t.event," via ",t.integration.name]}),s.jsx(as,{iso:t.sent_at,className:"text-muted-foreground"})]}),t.error&&s.jsx("span",{className:"text-destructive",children:t.error})]},t.id)}function Cn(t){return s.jsxs(Rt,{href:ft(t.id),className:"hover:bg-muted/60 -mx-2 flex flex-col rounded px-2 py-1 text-xs",children:[s.jsx("span",{className:"font-mono font-semibold",children:t.key}),s.jsx("span",{className:"text-muted-foreground line-clamp-1",children:t.title})]},t.id)}function Ln(t){return s.jsxs(Rt,{href:ft(t.id),className:"hover:bg-muted/60 -mx-2 flex flex-col rounded px-2 py-1 text-xs",children:[s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"font-mono font-semibold",children:t.key}),s.jsx(cs,{status:t.status})]}),s.jsx("span",{className:"text-muted-foreground line-clamp-1",children:t.title}),s.jsx("span",{className:"text-muted-foreground",children:t.environment.name})]},t.id)}function In(t){return s.jsxs("div",{className:"flex items-start justify-between gap-2 text-xs",children:[s.jsx("span",{className:"line-clamp-1 font-mono",children:t.message}),s.jsx("span",{className:"text-muted-foreground",children:Dt(t.count)})]},t.message)}function An(t,e){return s.jsx("span",{className:"bg-muted rounded px-1.5 py-0.5 font-mono text-[11px] break-all",children:t},`${e}-${t}`)}function Tn(t){return s.jsx(Vs,{x:t,stroke:"var(--muted-foreground)",strokeDasharray:"3 3"},t)}function Mn(t){return t.at.slice(0,10)}function Rn(t){return new Date(t).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Dn(t){return Hs(t.bytes)}function zn(t){return s.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.execution_preview??"–"})}function Fn(t){return s.jsxs("span",{className:"flex items-center gap-1.5",children:[s.jsx("span",{className:"truncate font-mono text-xs",children:t.name}),t.truncated&&s.jsx(ht,{variant:"secondary",children:"truncated"})]})}function Bn(t){return t.id}function En(t){return t.handled?s.jsx(ht,{variant:"secondary",children:"handled"}):null}function Pn(t){return s.jsx("span",{className:"font-mono text-xs",children:t.deploy?.slice(0,10)})}function On(t){return s.jsx("span",{className:"font-mono text-xs",children:t.tenant??""})}function Kn(t){return s.jsx("span",{className:"font-mono text-xs",children:t.user_ref??""})}function Vn(t){return s.jsxs("span",{className:"font-mono text-xs",children:[t.execution_source," ",t.execution_preview]})}function Gn(t){return s.jsx("span",{className:"text-xs",children:at(t.occurred_at)})}function Un(t){return t.id}function Hn(t){return s.jsx(Zt,{value:String(t.id),children:t.name},t.id)}function qn(t){return s.jsx(Zt,{value:t,children:t},t)}function Jn(t){if(!t.ok)throw new Error(`HTTP ${t.status}`);return t.json()}function Qn(t){return[t.id,t.name]}export{Ni as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as be,u as ke,r as ye,ao as _e,j as n,L as Z,a1 as ve,Y as we,t as he,e as xe,az as qe,i as Ne}from"./inertia-CqnzqPVD.js";import{V as Ee,D as Re}from"./chart-panel-CONkZcn9.js";import{D as se}from"./data-table-CVKR2wkq.js";import{u as Pe,E as Se,P as Me}from"./env-layout-CKLL8Ds7.js";import{a as De,S as Oe}from"./segmented-C4oWE73o.js";import{S as X,a as Le}from"./stat-BNEfE8X1.js";import{S as Te}from"./status-badge-D0aylrM5.js";import{c as m,p as $e,m as ee,w as pe,a as Ae}from"./format-B9SDkrWj.js";import"./series-chart-D6upsrSn.js";import"./chart-hover-2yZG3w2u.js";import"./chart-C4k7Ub9W.js";import"./empty-state-Bn48Gplm.js";import"./badge-Dv7I-ebP.js";import"./app-wordmark-Bt6XqURo.js";import"./app-layout-2xAKndVD.js";import"./live-dot-UdzOfzJb.js";import"./index-BDVShWMs.js";import"./index-C-EwH4lO.js";import"./checkbox-DKbThbxr.js";import"./label-1nSzpSB6.js";import"./use-live-DWwLg1Nj.js";import"./arrow-up-EmePsTKP.js";function Dt(t){const e=be.c(167),{environment:de,window:u}=ke().props,{window:fe,label:ge}=Pe(),[i,je]=ye.useState("routes"),r=de.application_id,l=de.id,s=t.summary.current,o=t.summary.previous,c=fe==="custom"?"vs previous period":`vs previous ${ge}`;let f,g,j,b,k,y,d,h,x,p;if(e[0]!==r||e[1]!==c||e[2]!==l||e[3]!==t.exceptions.length||e[4]!==t.jobs.length||e[5]!==t.links.logs||e[6]!==t.links.people||e[7]!==t.people.length||e[8]!==t.recent_requests.length||e[9]!==t.routes.length||e[10]!==t.series||e[11]!==t.tenant||e[12]!==o.errors||e[13]!==o.exceptions||e[14]!==o.p95||e[15]!==o.requests||e[16]!==s.errors||e[17]!==s.exceptions||e[18]!==s.failed_jobs||e[19]!==s.jobs||e[20]!==s.logs||e[21]!==s.p95||e[22]!==s.requests||e[23]!==s.users||e[24]!==i||e[25]!==u){const a=[{key:"routes",label:"Routes",badge:t.routes.length},{key:"jobs",label:"Jobs",badge:t.jobs.length},{key:"exceptions",label:"Exceptions",badge:t.exceptions.length},{key:"people",label:"Users",badge:t.people.length},{key:"requests",label:"Recent requests",badge:t.recent_requests.length}];g=Se,y=t.tenant;let P;e[36]!==r||e[37]!==l||e[38]!==u?(P=_e(r,l,{window:u}),e[36]=r,e[37]=l,e[38]=u,e[39]=P):P=e[39];let S;e[40]!==P?(S={title:"Tenants",href:P},e[40]=P,e[41]=S):S=e[41];let M;e[42]!==t.tenant?(M={title:t.tenant,href:"#"},e[42]=t.tenant,e[43]=M):M=e[43],e[44]!==M||e[45]!==S?(d=[S,M],e[44]=M,e[45]=S,e[46]=d):d=e[46];let D;e[47]!==t.tenant?(D=n.jsx("span",{className:"font-mono",children:t.tenant}),e[47]=t.tenant,e[48]=D):D=e[48];let O;e[49]!==t.links.logs?(O=n.jsx(Z,{className:"text-xs underline",href:t.links.logs,children:"Logs"}),e[49]=t.links.logs,e[50]=O):O=e[50];let L;e[51]!==t.links.people?(L=n.jsx(Z,{className:"text-xs underline",href:t.links.people,children:"Users"}),e[51]=t.links.people,e[52]=L):L=e[52];let T;e[53]!==O||e[54]!==L?(T=n.jsxs(n.Fragment,{children:[O,L]}),e[53]=O,e[54]=L,e[55]=T):T=e[55],e[56]!==D||e[57]!==T?(h=n.jsx(Me,{title:D,actions:T}),e[56]=D,e[57]=T,e[58]=h):h=e[58];let $;e[59]!==s.requests?($=m(s.requests),e[59]=s.requests,e[60]=$):$=e[60];let A;e[61]!==o.requests||e[62]!==s.requests?(A={current:s.requests,previous:o.requests,goodDirection:"up"},e[61]=o.requests,e[62]=s.requests,e[63]=A):A=e[63];let C;e[64]!==c||e[65]!==$||e[66]!==A?(C=n.jsx(X,{label:"Requests",value:$,delta:A,deltaCaption:c}),e[64]=c,e[65]=$,e[66]=A,e[67]=C):C=e[67];let K;e[68]!==s.errors||e[69]!==s.requests?(K=$e(s.errors,s.requests),e[68]=s.errors,e[69]=s.requests,e[70]=K):K=e[70];const le=s.errors?"destructive":"success",oe=`${s.errors} of ${s.requests}`,ie=s.requests?s.errors/s.requests*100:0,ae=o.requests?o.errors/o.requests*100:0;let U;e[71]!==ie||e[72]!==ae?(U={current:ie,previous:ae,goodDirection:"down"},e[71]=ie,e[72]=ae,e[73]=U):U=e[73];let J;e[74]!==c||e[75]!==K||e[76]!==le||e[77]!==oe||e[78]!==U?(J=n.jsx(X,{label:"5xx",value:K,tone:le,hint:oe,delta:U,deltaCaption:c}),e[74]=c,e[75]=K,e[76]=le,e[77]=oe,e[78]=U,e[79]=J):J=e[79];let W;e[80]!==s.p95?(W=ee(s.p95),e[80]=s.p95,e[81]=W):W=e[81];let F;e[82]!==o.p95||e[83]!==s.p95?(F={current:s.p95,previous:o.p95,goodDirection:"down"},e[82]=o.p95,e[83]=s.p95,e[84]=F):F=e[84];let I;e[85]!==c||e[86]!==W||e[87]!==F?(I=n.jsx(X,{label:"p95",value:W,delta:F,deltaCaption:c}),e[85]=c,e[86]=W,e[87]=F,e[88]=I):I=e[88];let V;e[89]!==s.jobs?(V=m(s.jobs),e[89]=s.jobs,e[90]=V):V=e[90];const ce=`${s.failed_jobs} failed`,ue=s.failed_jobs?"destructive":"default";let z;e[91]!==V||e[92]!==ce||e[93]!==ue?(z=n.jsx(X,{label:"Jobs",value:V,hint:ce,tone:ue}),e[91]=V,e[92]=ce,e[93]=ue,e[94]=z):z=e[94];let B;e[95]!==s.exceptions?(B=m(s.exceptions),e[95]=s.exceptions,e[96]=B):B=e[96];let H;e[97]!==o.exceptions||e[98]!==s.exceptions?(H={current:s.exceptions,previous:o.exceptions,goodDirection:"down"},e[97]=o.exceptions,e[98]=s.exceptions,e[99]=H):H=e[99];let Y;e[100]!==c||e[101]!==B||e[102]!==H?(Y=n.jsx(X,{label:"Exceptions",value:B,delta:H,deltaCaption:c}),e[100]=c,e[101]=B,e[102]=H,e[103]=Y):Y=e[103];let G;e[104]!==s.users?(G=m(s.users),e[104]=s.users,e[105]=G):G=e[105];let re;e[106]!==s.logs?(re=m(s.logs),e[106]=s.logs,e[107]=re):re=e[107];const me=`${re} log lines`;let Q;e[108]!==G||e[109]!==me?(Q=n.jsx(X,{label:"Users",value:G,hint:me}),e[108]=G,e[109]=me,e[110]=Q):Q=e[110],e[111]!==C||e[112]!==J||e[113]!==I||e[114]!==z||e[115]!==Y||e[116]!==Q?(x=n.jsxs(Le,{children:[C,J,I,z,Y,Q]}),e[111]=C,e[112]=J,e[113]=I,e[114]=z,e[115]=Y,e[116]=Q,e[117]=x):x=e[117],e[118]!==t.series?(p=n.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[n.jsx(Ee,{label:"Requests",data:t.series}),n.jsx(Re,{label:"Latency",data:t.series})]}),e[118]=t.series,e[119]=p):p=e[119],k="-mx-3 [scrollbar-width:none] overflow-x-auto px-3 md:mx-0 md:px-0 [&::-webkit-scrollbar]:hidden",f=Oe,j="w-max",b=a.map(te=>n.jsxs(De,{mono:!1,active:i===te.key,onClick:()=>je(te.key),className:"gap-1.5 px-3",children:[te.label,n.jsx("span",{className:"opacity-60",children:m(te.badge)})]},te.key)),e[0]=r,e[1]=c,e[2]=l,e[3]=t.exceptions.length,e[4]=t.jobs.length,e[5]=t.links.logs,e[6]=t.links.people,e[7]=t.people.length,e[8]=t.recent_requests.length,e[9]=t.routes.length,e[10]=t.series,e[11]=t.tenant,e[12]=o.errors,e[13]=o.exceptions,e[14]=o.p95,e[15]=o.requests,e[16]=s.errors,e[17]=s.exceptions,e[18]=s.failed_jobs,e[19]=s.jobs,e[20]=s.logs,e[21]=s.p95,e[22]=s.requests,e[23]=s.users,e[24]=i,e[25]=u,e[26]=f,e[27]=g,e[28]=j,e[29]=b,e[30]=k,e[31]=y,e[32]=d,e[33]=h,e[34]=x,e[35]=p}else f=e[26],g=e[27],j=e[28],b=e[29],k=e[30],y=e[31],d=e[32],h=e[33],x=e[34],p=e[35];let _;e[120]!==f||e[121]!==j||e[122]!==b?(_=n.jsx(f,{className:j,children:b}),e[120]=f,e[121]=j,e[122]=b,e[123]=_):_=e[123];let v;e[124]!==k||e[125]!==_?(v=n.jsx("div",{className:k,children:_}),e[124]=k,e[125]=_,e[126]=v):v=e[126];let w;e[127]!==r||e[128]!==l||e[129]!==t.routes||e[130]!==i||e[131]!==u?(w=i==="routes"&&n.jsx(se,{rows:t.routes,rowKey:ct,empty:"No requests from this tenant in this window.",columns:[{key:"name",header:"Route",cell:a=>n.jsx(Z,{className:"font-mono text-xs hover:underline",href:ve(r,l,a.group_hash,{window:u}),children:a.name})},{key:"count",header:"Requests",align:"right",cell:at},{key:"errors",header:"5xx",align:"right",cell:it},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:ot},{key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:lt}]}),e[127]=r,e[128]=l,e[129]=t.routes,e[130]=i,e[131]=u,e[132]=w):w=e[132];let q;e[133]!==r||e[134]!==l||e[135]!==t.jobs||e[136]!==i||e[137]!==u?(q=i==="jobs"&&n.jsx(se,{rows:t.jobs,rowKey:rt,empty:"No job attempts from this tenant in this window.",columns:[{key:"name",header:"Job",cell:a=>n.jsx(Z,{className:"font-mono text-xs hover:underline",href:we(r,l,a.group_hash,{window:u}),children:a.name})},{key:"count",header:"Attempts",align:"right",cell:nt},{key:"failed",header:"Failed",align:"right",cell:st},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:tt},{key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:et}]}),e[133]=r,e[134]=l,e[135]=t.jobs,e[136]=i,e[137]=u,e[138]=q):q=e[138];let N;e[139]!==r||e[140]!==l||e[141]!==t.exceptions||e[142]!==i?(N=i==="exceptions"&&n.jsx(se,{rows:t.exceptions,rowKey:Ze,empty:"No exceptions from this tenant in this window.",columns:[{key:"when",header:"When",cell:Xe},{key:"class",header:"Class",cell:Qe},{key:"message",header:"Message",cell:Ge},{key:"issue",header:"Issue",cell:Ye},{key:"exe",hideOnMobile:!0,header:"Execution",cell:a=>a.execution_id?n.jsx(Z,{className:"font-mono text-xs hover:underline",href:he(r,l,a.execution_id),children:a.execution_id.slice(0,8)}):n.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})}]}),e[139]=r,e[140]=l,e[141]=t.exceptions,e[142]=i,e[143]=N):N=e[143];let E;e[144]!==r||e[145]!==l||e[146]!==t.people||e[147]!==i?(E=i==="people"&&n.jsx(se,{rows:t.people,rowKey:He,empty:"No users tagged with this tenant.",onRowClick:a=>xe.visit(qe(r,l,a.ref)),columns:[{key:"name",header:"User",cell:Be},{key:"ref",hideOnMobile:!0,header:"Ref",cell:ze},{key:"seen",header:"Last seen",align:"right",cell:Ve}]}),e[144]=r,e[145]=l,e[146]=t.people,e[147]=i,e[148]=E):E=e[148];let R;e[149]!==r||e[150]!==l||e[151]!==t.recent_requests||e[152]!==i?(R=i==="requests"&&n.jsx(se,{rows:t.recent_requests,rowKey:Ie,empty:"No requests from this tenant in this window.",onRowClick:a=>xe.visit(he(r,l,a.execution_id)),columns:[{key:"when",header:"When",cell:Fe},{key:"name",header:"Route",cell:We},{key:"status",header:"Status",cell:Je},{key:"dur",header:"Duration",align:"right",cell:Ue},{key:"user",hideOnMobile:!0,header:"User",cell:Ke},{key:"ex",hideOnMobile:!0,header:"Exception",cell:Ce}]}),e[149]=r,e[150]=l,e[151]=t.recent_requests,e[152]=i,e[153]=R):R=e[153];let ne;return e[154]!==g||e[155]!==w||e[156]!==q||e[157]!==N||e[158]!==E||e[159]!==R||e[160]!==y||e[161]!==d||e[162]!==h||e[163]!==x||e[164]!==p||e[165]!==v?(ne=n.jsxs(g,{title:y,crumbs:d,children:[h,x,p,v,w,q,N,E,R]}),e[154]=g,e[155]=w,e[156]=q,e[157]=N,e[158]=E,e[159]=R,e[160]=y,e[161]=d,e[162]=h,e[163]=x,e[164]=p,e[165]=v,e[166]=ne):ne=e[166],ne}function Ce(t){return n.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function Ke(t){return n.jsx("span",{className:"font-mono text-xs",children:t.user_ref??"–"})}function Ue(t){return ee(t.duration)}function Je(t){return n.jsx(Te,{status:t.status})}function We(t){return n.jsx("span",{className:"font-mono text-xs",children:t.name})}function Fe(t){return n.jsx("span",{className:"text-xs tabular-nums",children:pe(t.occurred_at)})}function Ie(t){return t.execution_id}function Ve(t){return Ae(t.last_seen_at)}function ze(t){return n.jsx("span",{className:"font-mono text-xs",children:t.ref})}function Be(t){return n.jsxs("span",{className:"text-xs",children:[n.jsx("span",{className:"font-medium",children:t.name}),t.email&&n.jsxs("span",{className:"text-muted-foreground",children:[" · ",t.email]})]})}function He(t){return t.ref}function Ye(t){return t.issue_id?n.jsx(Z,{className:"font-mono text-xs hover:underline",href:Ne(t.issue_id),children:t.issue_key}):n.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})}function Ge(t){return n.jsx("span",{className:"line-clamp-1 text-xs",children:t.message})}function Qe(t){return n.jsx("span",{className:"font-mono text-xs",children:t.class_name})}function Xe(t){return n.jsx("span",{className:"text-xs tabular-nums",children:pe(t.occurred_at)})}function Ze(t){return t.id}function et(t){return ee(t.max)}function tt(t){return ee(t.avg)}function st(t){return n.jsx("span",{className:t.failed?"text-destructive":"",children:m(t.failed)})}function nt(t){return m(t.count)}function rt(t){return t.group_hash}function lt(t){return ee(t.max)}function ot(t){return ee(t.avg)}function it(t){return n.jsx("span",{className:t.errors?"text-destructive":"",children:m(t.errors)})}function at(t){return m(t.count)}function ct(t){return t.group_hash}export{Dt as default};
|
|
1
|
+
import{c as be,u as ke,r as ye,ao as _e,j as n,L as Z,a1 as ve,Y as we,t as he,e as xe,az as qe,i as Ne}from"./inertia-Cuyz2ZHO.js";import{V as Ee,D as Re}from"./chart-panel-CC49WTQL.js";import{D as se}from"./data-table-CzKTEE-O.js";import{u as Pe,E as Se,P as Me}from"./env-layout-Kz7wks1x.js";import{a as De,S as Oe}from"./segmented-BeIe4uqk.js";import{S as X,a as Le}from"./stat-ZtxGU8lE.js";import{S as Te}from"./status-badge-CH5P-Xkj.js";import{c as m,p as $e,m as ee,w as pe,a as Ae}from"./format-B9SDkrWj.js";import"./series-chart-gnrzhmM6.js";import"./chart-hover-CfoZUY4J.js";import"./chart-DWh7l8yM.js";import"./empty-state-CW4wclK_.js";import"./badge-DRae8XwK.js";import"./app-wordmark-BA_60AVb.js";import"./app-layout-Zc0v-hYh.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";import"./label-DdCBgiUn.js";import"./use-live-DMTuhKfB.js";import"./arrow-up-CLQ-7heQ.js";function Dt(t){const e=be.c(167),{environment:de,window:u}=ke().props,{window:fe,label:ge}=Pe(),[i,je]=ye.useState("routes"),r=de.application_id,l=de.id,s=t.summary.current,o=t.summary.previous,c=fe==="custom"?"vs previous period":`vs previous ${ge}`;let f,g,j,b,k,y,d,h,x,p;if(e[0]!==r||e[1]!==c||e[2]!==l||e[3]!==t.exceptions.length||e[4]!==t.jobs.length||e[5]!==t.links.logs||e[6]!==t.links.people||e[7]!==t.people.length||e[8]!==t.recent_requests.length||e[9]!==t.routes.length||e[10]!==t.series||e[11]!==t.tenant||e[12]!==o.errors||e[13]!==o.exceptions||e[14]!==o.p95||e[15]!==o.requests||e[16]!==s.errors||e[17]!==s.exceptions||e[18]!==s.failed_jobs||e[19]!==s.jobs||e[20]!==s.logs||e[21]!==s.p95||e[22]!==s.requests||e[23]!==s.users||e[24]!==i||e[25]!==u){const a=[{key:"routes",label:"Routes",badge:t.routes.length},{key:"jobs",label:"Jobs",badge:t.jobs.length},{key:"exceptions",label:"Exceptions",badge:t.exceptions.length},{key:"people",label:"Users",badge:t.people.length},{key:"requests",label:"Recent requests",badge:t.recent_requests.length}];g=Se,y=t.tenant;let P;e[36]!==r||e[37]!==l||e[38]!==u?(P=_e(r,l,{window:u}),e[36]=r,e[37]=l,e[38]=u,e[39]=P):P=e[39];let S;e[40]!==P?(S={title:"Tenants",href:P},e[40]=P,e[41]=S):S=e[41];let M;e[42]!==t.tenant?(M={title:t.tenant,href:"#"},e[42]=t.tenant,e[43]=M):M=e[43],e[44]!==M||e[45]!==S?(d=[S,M],e[44]=M,e[45]=S,e[46]=d):d=e[46];let D;e[47]!==t.tenant?(D=n.jsx("span",{className:"font-mono",children:t.tenant}),e[47]=t.tenant,e[48]=D):D=e[48];let O;e[49]!==t.links.logs?(O=n.jsx(Z,{className:"text-xs underline",href:t.links.logs,children:"Logs"}),e[49]=t.links.logs,e[50]=O):O=e[50];let L;e[51]!==t.links.people?(L=n.jsx(Z,{className:"text-xs underline",href:t.links.people,children:"Users"}),e[51]=t.links.people,e[52]=L):L=e[52];let T;e[53]!==O||e[54]!==L?(T=n.jsxs(n.Fragment,{children:[O,L]}),e[53]=O,e[54]=L,e[55]=T):T=e[55],e[56]!==D||e[57]!==T?(h=n.jsx(Me,{title:D,actions:T}),e[56]=D,e[57]=T,e[58]=h):h=e[58];let $;e[59]!==s.requests?($=m(s.requests),e[59]=s.requests,e[60]=$):$=e[60];let A;e[61]!==o.requests||e[62]!==s.requests?(A={current:s.requests,previous:o.requests,goodDirection:"up"},e[61]=o.requests,e[62]=s.requests,e[63]=A):A=e[63];let C;e[64]!==c||e[65]!==$||e[66]!==A?(C=n.jsx(X,{label:"Requests",value:$,delta:A,deltaCaption:c}),e[64]=c,e[65]=$,e[66]=A,e[67]=C):C=e[67];let K;e[68]!==s.errors||e[69]!==s.requests?(K=$e(s.errors,s.requests),e[68]=s.errors,e[69]=s.requests,e[70]=K):K=e[70];const le=s.errors?"destructive":"success",oe=`${s.errors} of ${s.requests}`,ie=s.requests?s.errors/s.requests*100:0,ae=o.requests?o.errors/o.requests*100:0;let U;e[71]!==ie||e[72]!==ae?(U={current:ie,previous:ae,goodDirection:"down"},e[71]=ie,e[72]=ae,e[73]=U):U=e[73];let J;e[74]!==c||e[75]!==K||e[76]!==le||e[77]!==oe||e[78]!==U?(J=n.jsx(X,{label:"5xx",value:K,tone:le,hint:oe,delta:U,deltaCaption:c}),e[74]=c,e[75]=K,e[76]=le,e[77]=oe,e[78]=U,e[79]=J):J=e[79];let W;e[80]!==s.p95?(W=ee(s.p95),e[80]=s.p95,e[81]=W):W=e[81];let F;e[82]!==o.p95||e[83]!==s.p95?(F={current:s.p95,previous:o.p95,goodDirection:"down"},e[82]=o.p95,e[83]=s.p95,e[84]=F):F=e[84];let I;e[85]!==c||e[86]!==W||e[87]!==F?(I=n.jsx(X,{label:"p95",value:W,delta:F,deltaCaption:c}),e[85]=c,e[86]=W,e[87]=F,e[88]=I):I=e[88];let V;e[89]!==s.jobs?(V=m(s.jobs),e[89]=s.jobs,e[90]=V):V=e[90];const ce=`${s.failed_jobs} failed`,ue=s.failed_jobs?"destructive":"default";let z;e[91]!==V||e[92]!==ce||e[93]!==ue?(z=n.jsx(X,{label:"Jobs",value:V,hint:ce,tone:ue}),e[91]=V,e[92]=ce,e[93]=ue,e[94]=z):z=e[94];let B;e[95]!==s.exceptions?(B=m(s.exceptions),e[95]=s.exceptions,e[96]=B):B=e[96];let H;e[97]!==o.exceptions||e[98]!==s.exceptions?(H={current:s.exceptions,previous:o.exceptions,goodDirection:"down"},e[97]=o.exceptions,e[98]=s.exceptions,e[99]=H):H=e[99];let Y;e[100]!==c||e[101]!==B||e[102]!==H?(Y=n.jsx(X,{label:"Exceptions",value:B,delta:H,deltaCaption:c}),e[100]=c,e[101]=B,e[102]=H,e[103]=Y):Y=e[103];let G;e[104]!==s.users?(G=m(s.users),e[104]=s.users,e[105]=G):G=e[105];let re;e[106]!==s.logs?(re=m(s.logs),e[106]=s.logs,e[107]=re):re=e[107];const me=`${re} log lines`;let Q;e[108]!==G||e[109]!==me?(Q=n.jsx(X,{label:"Users",value:G,hint:me}),e[108]=G,e[109]=me,e[110]=Q):Q=e[110],e[111]!==C||e[112]!==J||e[113]!==I||e[114]!==z||e[115]!==Y||e[116]!==Q?(x=n.jsxs(Le,{children:[C,J,I,z,Y,Q]}),e[111]=C,e[112]=J,e[113]=I,e[114]=z,e[115]=Y,e[116]=Q,e[117]=x):x=e[117],e[118]!==t.series?(p=n.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[n.jsx(Ee,{label:"Requests",data:t.series}),n.jsx(Re,{label:"Latency",data:t.series})]}),e[118]=t.series,e[119]=p):p=e[119],k="-mx-3 [scrollbar-width:none] overflow-x-auto px-3 md:mx-0 md:px-0 [&::-webkit-scrollbar]:hidden",f=Oe,j="w-max",b=a.map(te=>n.jsxs(De,{mono:!1,active:i===te.key,onClick:()=>je(te.key),className:"gap-1.5 px-3",children:[te.label,n.jsx("span",{className:"opacity-60",children:m(te.badge)})]},te.key)),e[0]=r,e[1]=c,e[2]=l,e[3]=t.exceptions.length,e[4]=t.jobs.length,e[5]=t.links.logs,e[6]=t.links.people,e[7]=t.people.length,e[8]=t.recent_requests.length,e[9]=t.routes.length,e[10]=t.series,e[11]=t.tenant,e[12]=o.errors,e[13]=o.exceptions,e[14]=o.p95,e[15]=o.requests,e[16]=s.errors,e[17]=s.exceptions,e[18]=s.failed_jobs,e[19]=s.jobs,e[20]=s.logs,e[21]=s.p95,e[22]=s.requests,e[23]=s.users,e[24]=i,e[25]=u,e[26]=f,e[27]=g,e[28]=j,e[29]=b,e[30]=k,e[31]=y,e[32]=d,e[33]=h,e[34]=x,e[35]=p}else f=e[26],g=e[27],j=e[28],b=e[29],k=e[30],y=e[31],d=e[32],h=e[33],x=e[34],p=e[35];let _;e[120]!==f||e[121]!==j||e[122]!==b?(_=n.jsx(f,{className:j,children:b}),e[120]=f,e[121]=j,e[122]=b,e[123]=_):_=e[123];let v;e[124]!==k||e[125]!==_?(v=n.jsx("div",{className:k,children:_}),e[124]=k,e[125]=_,e[126]=v):v=e[126];let w;e[127]!==r||e[128]!==l||e[129]!==t.routes||e[130]!==i||e[131]!==u?(w=i==="routes"&&n.jsx(se,{rows:t.routes,rowKey:ct,empty:"No requests from this tenant in this window.",columns:[{key:"name",header:"Route",cell:a=>n.jsx(Z,{className:"font-mono text-xs hover:underline",href:ve(r,l,a.group_hash,{window:u}),children:a.name})},{key:"count",header:"Requests",align:"right",cell:at},{key:"errors",header:"5xx",align:"right",cell:it},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:ot},{key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:lt}]}),e[127]=r,e[128]=l,e[129]=t.routes,e[130]=i,e[131]=u,e[132]=w):w=e[132];let q;e[133]!==r||e[134]!==l||e[135]!==t.jobs||e[136]!==i||e[137]!==u?(q=i==="jobs"&&n.jsx(se,{rows:t.jobs,rowKey:rt,empty:"No job attempts from this tenant in this window.",columns:[{key:"name",header:"Job",cell:a=>n.jsx(Z,{className:"font-mono text-xs hover:underline",href:we(r,l,a.group_hash,{window:u}),children:a.name})},{key:"count",header:"Attempts",align:"right",cell:nt},{key:"failed",header:"Failed",align:"right",cell:st},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:tt},{key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:et}]}),e[133]=r,e[134]=l,e[135]=t.jobs,e[136]=i,e[137]=u,e[138]=q):q=e[138];let N;e[139]!==r||e[140]!==l||e[141]!==t.exceptions||e[142]!==i?(N=i==="exceptions"&&n.jsx(se,{rows:t.exceptions,rowKey:Ze,empty:"No exceptions from this tenant in this window.",columns:[{key:"when",header:"When",cell:Xe},{key:"class",header:"Class",cell:Qe},{key:"message",header:"Message",cell:Ge},{key:"issue",header:"Issue",cell:Ye},{key:"exe",hideOnMobile:!0,header:"Execution",cell:a=>a.execution_id?n.jsx(Z,{className:"font-mono text-xs hover:underline",href:he(r,l,a.execution_id),children:a.execution_id.slice(0,8)}):n.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})}]}),e[139]=r,e[140]=l,e[141]=t.exceptions,e[142]=i,e[143]=N):N=e[143];let E;e[144]!==r||e[145]!==l||e[146]!==t.people||e[147]!==i?(E=i==="people"&&n.jsx(se,{rows:t.people,rowKey:He,empty:"No users tagged with this tenant.",onRowClick:a=>xe.visit(qe(r,l,a.ref)),columns:[{key:"name",header:"User",cell:Be},{key:"ref",hideOnMobile:!0,header:"Ref",cell:ze},{key:"seen",header:"Last seen",align:"right",cell:Ve}]}),e[144]=r,e[145]=l,e[146]=t.people,e[147]=i,e[148]=E):E=e[148];let R;e[149]!==r||e[150]!==l||e[151]!==t.recent_requests||e[152]!==i?(R=i==="requests"&&n.jsx(se,{rows:t.recent_requests,rowKey:Ie,empty:"No requests from this tenant in this window.",onRowClick:a=>xe.visit(he(r,l,a.execution_id)),columns:[{key:"when",header:"When",cell:Fe},{key:"name",header:"Route",cell:We},{key:"status",header:"Status",cell:Je},{key:"dur",header:"Duration",align:"right",cell:Ue},{key:"user",hideOnMobile:!0,header:"User",cell:Ke},{key:"ex",hideOnMobile:!0,header:"Exception",cell:Ce}]}),e[149]=r,e[150]=l,e[151]=t.recent_requests,e[152]=i,e[153]=R):R=e[153];let ne;return e[154]!==g||e[155]!==w||e[156]!==q||e[157]!==N||e[158]!==E||e[159]!==R||e[160]!==y||e[161]!==d||e[162]!==h||e[163]!==x||e[164]!==p||e[165]!==v?(ne=n.jsxs(g,{title:y,crumbs:d,children:[h,x,p,v,w,q,N,E,R]}),e[154]=g,e[155]=w,e[156]=q,e[157]=N,e[158]=E,e[159]=R,e[160]=y,e[161]=d,e[162]=h,e[163]=x,e[164]=p,e[165]=v,e[166]=ne):ne=e[166],ne}function Ce(t){return n.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function Ke(t){return n.jsx("span",{className:"font-mono text-xs",children:t.user_ref??"–"})}function Ue(t){return ee(t.duration)}function Je(t){return n.jsx(Te,{status:t.status})}function We(t){return n.jsx("span",{className:"font-mono text-xs",children:t.name})}function Fe(t){return n.jsx("span",{className:"text-xs tabular-nums",children:pe(t.occurred_at)})}function Ie(t){return t.execution_id}function Ve(t){return Ae(t.last_seen_at)}function ze(t){return n.jsx("span",{className:"font-mono text-xs",children:t.ref})}function Be(t){return n.jsxs("span",{className:"text-xs",children:[n.jsx("span",{className:"font-medium",children:t.name}),t.email&&n.jsxs("span",{className:"text-muted-foreground",children:[" · ",t.email]})]})}function He(t){return t.ref}function Ye(t){return t.issue_id?n.jsx(Z,{className:"font-mono text-xs hover:underline",href:Ne(t.issue_id),children:t.issue_key}):n.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})}function Ge(t){return n.jsx("span",{className:"line-clamp-1 text-xs",children:t.message})}function Qe(t){return n.jsx("span",{className:"font-mono text-xs",children:t.class_name})}function Xe(t){return n.jsx("span",{className:"text-xs tabular-nums",children:pe(t.occurred_at)})}function Ze(t){return t.id}function et(t){return ee(t.max)}function tt(t){return ee(t.avg)}function st(t){return n.jsx("span",{className:t.failed?"text-destructive":"",children:m(t.failed)})}function nt(t){return m(t.count)}function rt(t){return t.group_hash}function lt(t){return ee(t.max)}function ot(t){return ee(t.avg)}function it(t){return n.jsx("span",{className:t.errors?"text-destructive":"",children:m(t.errors)})}function at(t){return m(t.count)}function ct(t){return t.group_hash}export{Dt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B,c as C,u as H,r as L,j as s,L as E,C as I,H as z}from"./inertia-
|
|
1
|
+
import{B,c as C,u as H,r as L,j as s,L as E,C as I,H as z}from"./inertia-Cuyz2ZHO.js";import{M as D,a as F}from"./nav-BSSGObDZ.js";import{B as R}from"./app-wordmark-BA_60AVb.js";const $=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],O=B("menu",$);function G(t){const e=C.c(36),{auth:S}=H().props,[f,w]=L.useState(!1);let o;if(e[0]!==t.doc.id||e[1]!==t.nav){let v;e[3]!==t.doc.id?(v=M=>s.jsxs("div",{children:[s.jsx("div",{className:"label-caps mb-2",children:M.title}),s.jsx("ul",{className:"space-y-0.5",children:M.docs.map(k=>s.jsx("li",{children:s.jsx(E,{href:k.href,onClick:()=>w(!1),className:I("hover:bg-accent block rounded-md px-2 py-1",k.id===t.doc.id?"bg-accent font-medium":"text-muted-foreground"),children:k.title})},k.id))})]},M.section),e[3]=t.doc.id,e[4]=v):v=e[4],o=t.nav.map(v),e[0]=t.doc.id,e[1]=t.nav,e[2]=o}else o=e[2];let h;e[5]!==o?(h=s.jsx("nav",{className:"space-y-6 text-sm",children:o}),e[5]=o,e[6]=h):h=e[6];const l=h,N=`${t.doc.title} · Docs`;let n;e[7]!==N?(n=s.jsx(z,{title:N}),e[7]=N,e[8]=n):n=e[8];const y=!!S?.user;let a;e[9]!==y?(a=s.jsx(D,{signedIn:y}),e[9]=y,e[10]=a):a=e[10];let r;e[11]!==l?(r=s.jsx("aside",{className:"hidden w-56 shrink-0 md:block",children:s.jsx("div",{className:"sticky top-6",children:l})}),e[11]=l,e[12]=r):r=e[12];let u,j;e[13]===Symbol.for("react.memo_cache_sentinel")?(u=()=>w(P),j=s.jsx(O,{className:"size-4"}),e[13]=u,e[14]=j):(u=e[13],j=e[14]);const _=f?"Hide contents":"Contents";let c;e[15]!==_?(c=s.jsxs(R,{variant:"outline",size:"sm",onClick:u,children:[j,_]}),e[15]=_,e[16]=c):c=e[16];let i;e[17]!==f||e[18]!==l?(i=f&&s.jsx("div",{className:"bg-card mt-3 rounded-lg border p-4",children:l}),e[17]=f,e[18]=l,e[19]=i):i=e[19];let d;e[20]!==c||e[21]!==i?(d=s.jsxs("div",{className:"mb-4 md:hidden",children:[c,i]}),e[20]=c,e[21]=i,e[22]=d):d=e[22];let m;e[23]!==t.doc.html?(m=s.jsx("article",{className:"prose prose-neutral dark:prose-invert prose-headings:scroll-mt-6 prose-headings:font-semibold prose-headings:tracking-tight prose-h1:text-3xl prose-a:text-primary prose-code:rounded prose-code:bg-muted prose-code:px-1 prose-code:py-0.5 prose-code:font-mono prose-code:text-[0.85em] prose-code:font-normal prose-code:before:content-none prose-code:after:content-none prose-pre:bg-muted prose-pre:text-foreground prose-pre:border prose-table:text-sm prose-th:label-caps max-w-none",dangerouslySetInnerHTML:{__html:t.doc.html}}),e[23]=t.doc.html,e[24]=m):m=e[24];let p;e[25]!==d||e[26]!==m?(p=s.jsxs("div",{className:"min-w-0 flex-1",children:[d,m]}),e[25]=d,e[26]=m,e[27]=p):p=e[27];let x;e[28]!==p||e[29]!==r?(x=s.jsxs("div",{className:"mx-auto flex w-full max-w-6xl gap-10 px-6 pb-16",children:[r,p]}),e[28]=p,e[29]=r,e[30]=x):x=e[30];let b;e[31]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(F,{}),e[31]=b):b=e[31];let g;return e[32]!==x||e[33]!==n||e[34]!==a?(g=s.jsxs(s.Fragment,{children:[n,a,x,b]}),e[32]=x,e[33]=n,e[34]=a,e[35]=g):g=e[35],g}function P(t){return!t}export{G as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as ae,j as r,c as oe,C as fe}from"./inertia-
|
|
1
|
+
import{r as ae,j as r,c as oe,C as fe}from"./inertia-Cuyz2ZHO.js";import{D as G}from"./data-table-CzKTEE-O.js";import{P as he,E as _e}from"./env-layout-Kz7wks1x.js";import{S as L,a as pe}from"./stat-ZtxGU8lE.js";import{C as M,a as V,b as z,c as Q}from"./card-DPjFKfen.js";import{c as xe}from"./index-BfbSo01U.js";import{P as le}from"./index-CBip6V4z.js";import{c as d,b as ie}from"./format-B9SDkrWj.js";import"./chart-hover-CfoZUY4J.js";import"./empty-state-CW4wclK_.js";import"./badge-DRae8XwK.js";import"./app-wordmark-BA_60AVb.js";import"./app-layout-Zc0v-hYh.js";import"./live-dot-BZgYTYdt.js";import"./checkbox-DPkLUiwM.js";import"./label-DdCBgiUn.js";import"./use-live-DMTuhKfB.js";import"./segmented-BeIe4uqk.js";import"./arrow-up-CLQ-7heQ.js";var ye=Object.defineProperty,m=(t,e)=>ye(t,"name",{value:e,configurable:!0}),ce="Progress",se=100,[ve,ot]=xe(ce),[be,ge]=ve(ce),je=ae.forwardRef(m(function(e,a){const{__scopeProgress:o,value:i=null,max:s,getValueLabel:u=de,...l}=e;(s||s===0)&&!te(s)&&console.error(ue(`${s}`,"Progress"));const n=te(s)?s:se;i!==null&&!re(i,n)&&console.error(me(`${i}`,"Progress"));const c=re(i,n)?i:null,f=D(c)?u(c,n):void 0;return r.jsx(be,{scope:o,value:c,max:n,children:r.jsx(le.div,{"aria-valuemax":n,"aria-valuemin":0,"aria-valuenow":D(c)?c:void 0,"aria-valuetext":f,role:"progressbar","data-state":ne(c,n),"data-value":c??void 0,"data-max":n,...l,ref:a})})},"Progress")),Pe="ProgressIndicator",we=ae.forwardRef(m(function(e,a){const{__scopeProgress:o,...i}=e,s=ge(Pe,o);return r.jsx(le.div,{"data-state":ne(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...i,ref:a})},"ProgressIndicator"));function de(t,e){return`${Math.round(t/e*100)}%`}m(de,"defaultGetValueLabel");function ne(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}m(ne,"getProgressState");function D(t){return typeof t=="number"}m(D,"isNumber");function te(t){return D(t)&&!isNaN(t)&&t>0}m(te,"isValidMaxNumber");function re(t,e){return D(t)&&!isNaN(t)&&t<=e&&t>=0}m(re,"isValidValueNumber");function ue(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${se}\`.`}m(ue,"getInvalidMaxError");function me(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be:
|
|
2
2
|
- a positive number
|
|
3
3
|
- less than the value passed to \`max\` (or ${se} if no \`max\` prop is set)
|
|
4
4
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,j as s,H as m,F as p,aH as c}from"./inertia-
|
|
1
|
+
import{c as d,j as s,H as m,F as p,aH as c}from"./inertia-Cuyz2ZHO.js";import{S as u,H as w}from"./layout-Cueyl7c5.js";import{I as t}from"./input-error-hog6gGxg.js";import{B as h}from"./app-wordmark-BA_60AVb.js";import{L as l,I as n}from"./label-DdCBgiUn.js";import{A as f}from"./app-layout-Zc0v-hYh.js";import{K as x}from"./transition-ksDpqhKJ.js";import"./separator-D5I0UCB5.js";import"./index-CBip6V4z.js";import"./live-dot-BZgYTYdt.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";const i=[{title:"Password settings",href:c()}];function L(){const e=d.c(3);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(m,{title:i[i.length-1].title}),e[0]=r):r=e[0];let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(w,{title:"Update password",description:"Ensure your account is using a long, random password to stay secure"}),e[1]=a):a=e[1];let o;return e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(f,{breadcrumbs:i,children:[r,s.jsx(u,{children:s.jsxs("div",{className:"space-y-6",children:[a,s.jsx(p,{method:"put",action:c(),options:{preserveScroll:!0},resetOnError:!0,resetOnSuccess:!0,className:"space-y-6",children:j})]})})]}),e[2]=o):o=e[2],o}function j(e){const{errors:r,processing:a,recentlySuccessful:o}=e;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(l,{htmlFor:"password_challenge",children:"Current password"}),s.jsx(n,{id:"password_challenge",name:"password_challenge",type:"password",className:"mt-1 block w-full",autoComplete:"current-password",placeholder:"Current password"}),s.jsx(t,{messages:r.password_challenge})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(l,{htmlFor:"password",children:"New password"}),s.jsx(n,{id:"password",name:"password",type:"password",className:"mt-1 block w-full",autoComplete:"new-password",placeholder:"New password"}),s.jsx(t,{messages:r.password})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(l,{htmlFor:"password_confirmation",children:"Confirm password"}),s.jsx(n,{id:"password_confirmation",name:"password_confirmation",type:"password",className:"mt-1 block w-full",autoComplete:"new-password",placeholder:"Confirm password"}),s.jsx(t,{messages:r.password_confirmation})]}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(h,{disabled:a,children:"Save password"}),s.jsx(x,{show:o,enter:"transition ease-in-out",enterFrom:"opacity-0",leave:"transition ease-in-out",leaveTo:"opacity-0",children:s.jsx("p",{className:"text-sm text-neutral-600",children:"Saved"})})]})]})}export{L as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,u as y,j as e,H as _,aG as f,F as w,L as N,aJ as S}from"./inertia-
|
|
1
|
+
import{c as v,u as y,j as e,H as _,aG as f,F as w,L as N,aJ as S}from"./inertia-Cuyz2ZHO.js";import{H as b,S as E}from"./layout-Cueyl7c5.js";import{I as u}from"./input-error-hog6gGxg.js";import{B as F}from"./app-wordmark-BA_60AVb.js";import{L as p,I as h}from"./label-DdCBgiUn.js";import{A as L}from"./app-layout-Zc0v-hYh.js";import{K as k}from"./transition-ksDpqhKJ.js";import"./separator-D5I0UCB5.js";import"./index-CBip6V4z.js";import"./live-dot-BZgYTYdt.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";const c=[{title:"Email settings",href:f()}];function G(){const s=v.c(9),{auth:t}=y().props;let a;s[0]===Symbol.for("react.memo_cache_sentinel")?(a=e.jsx(_,{title:c[c.length-1].title}),s[0]=a):a=s[0];let r;s[1]===Symbol.for("react.memo_cache_sentinel")?(r=e.jsx(b,{title:"Update email",description:"Update your email address and verify it"}),s[1]=r):r=s[1];let i,l,o,n;s[2]===Symbol.for("react.memo_cache_sentinel")?(i=f(),l={preserveScroll:!0},o=["password_challenge"],n=["password_challenge"],s[2]=i,s[3]=l,s[4]=o,s[5]=n):(i=s[2],l=s[3],o=s[4],n=s[5]);let m;return s[6]!==t.user.email||s[7]!==t.user.verified?(m=e.jsxs(L,{breadcrumbs:c,children:[a,e.jsx(E,{children:e.jsxs("div",{className:"space-y-6",children:[r,e.jsx(w,{method:"patch",action:i,options:l,resetOnError:o,resetOnSuccess:n,className:"space-y-6",children:x=>{const{errors:d,processing:j,recentlySuccessful:g}=x;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(p,{htmlFor:"email",children:"Email address"}),e.jsx(h,{id:"email",type:"email",name:"email",className:"mt-1 block w-full",defaultValue:t.user.email,required:!0,autoComplete:"username",placeholder:"Email address"}),e.jsx(u,{className:"mt-2",messages:d.email})]}),!t.user.verified&&e.jsx("div",{children:e.jsxs("p",{className:"text-muted-foreground -mt-4 text-sm",children:["Your email address is unverified."," ",e.jsx(N,{href:S(),method:"post",as:"button",className:"text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500",children:"Click here to resend the verification email."})]})}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(p,{htmlFor:"password_challenge",children:"Current password"}),e.jsx(h,{id:"password_challenge",name:"password_challenge",type:"password",className:"mt-1 block w-full",autoComplete:"current-password",placeholder:"Current password"}),e.jsx(u,{messages:d.password_challenge})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(F,{disabled:j,children:"Save"}),e.jsx(k,{show:g,enter:"transition ease-in-out",enterFrom:"opacity-0",leave:"transition ease-in-out",leaveTo:"opacity-0",children:e.jsx("p",{className:"text-sm text-neutral-600",children:"Saved"})})]})]})}})]})})]}),s[6]=t.user.email,s[7]=t.user.verified,s[8]=m):m=s[8],m}export{G as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as y,j as a,c as Ce,C as Qe,u as vt,L as qe,G as yt,I as mt,J as kt,K as Nt,i as wt}from"./inertia-
|
|
1
|
+
import{r as y,j as a,c as Ce,C as Qe,u as vt,L as qe,G as yt,I as mt,J as kt,K as Nt,i as wt}from"./inertia-Cuyz2ZHO.js";import{D as $e}from"./data-table-CzKTEE-O.js";import{F as Tt}from"./flamegraph-EaGkP2NT.js";import{C as qt,E as Ct}from"./frames-zZuIaNH9.js";import{J as nt}from"./json-viewer-DH2W9HXf.js";import{O as ft}from"./origin-identity-BYt2uiuo.js";import{P as St,E as $t}from"./env-layout-Kz7wks1x.js";import{T as It,S as Et}from"./timeline-CaKQVu48.js";import{S as k,a as Pt}from"./stat-ZtxGU8lE.js";import{S as Ge,L as zt}from"./status-badge-CH5P-Xkj.js";import{B as it}from"./badge-DRae8XwK.js";import{c as At,B as Rt}from"./app-wordmark-BA_60AVb.js";import{C as _,b,c as j,a as v}from"./card-DPjFKfen.js";import{c as Lt,u as Mt,a as rt,P as Dt,C as xt}from"./index-BfbSo01U.js";import{c as ht,u as Ft,d as Ot,I as Vt}from"./app-layout-Zc0v-hYh.js";import{P as He}from"./index-CBip6V4z.js";import{u as Bt}from"./live-dot-BZgYTYdt.js";import{u as gt,C as Kt}from"./use-clipboard-DNefo-ky.js";import{e as Jt}from"./execution-path-FAuIzOXB.js";import{w as Gt,m as h,c as pt,b as _t}from"./format-B9SDkrWj.js";import"./chart-hover-CfoZUY4J.js";import"./empty-state-CW4wclK_.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./source-link-B2183i2-.js";import"./tenant-path-CQoP-BeF.js";import"./use-live-DMTuhKfB.js";import"./arrow-up-CLQ-7heQ.js";import"./checkbox-DPkLUiwM.js";var Qt=Object.defineProperty,Se=(t,e)=>Qt(t,"name",{value:e,configurable:!0}),ot="Tabs",[Ht,ba]=Lt(ot,[ht]),bt=ht(),[Wt,lt]=Ht(ot),Ut=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,value:o,onValueChange:r,defaultValue:l,orientation:s="horizontal",dir:n,activationMode:f="automatic",...g}=e,m=Ft(n),[d,x]=Mt({prop:o,onChange:r,defaultProp:l??"",caller:ot});return a.jsx(Wt,{scope:c,baseId:Bt(),value:d,onValueChange:x,orientation:s,dir:m,activationMode:f,children:a.jsx(He.div,{dir:m,"data-orientation":s,...g,ref:i})})},"Tabs")),Xt="TabsList",Yt=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,loop:o=!0,...r}=e,l=lt(Xt,c),s=bt(c);return a.jsx(Ot,{asChild:!0,...s,orientation:l.orientation,dir:l.dir,loop:o,children:a.jsx(He.div,{role:"tablist","aria-orientation":l.orientation,...r,ref:i})})},"TabsList")),Zt="TabsTrigger",es=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,value:o,disabled:r=!1,...l}=e,s=lt(Zt,c),n=bt(c),f=ct(s.baseId,o),g=ut(s.baseId,o),m=o===s.value;return a.jsx(Vt,{asChild:!0,...n,focusable:!r,active:m,children:a.jsx(He.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":g,"data-state":m?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:f,...l,ref:i,onMouseDown:rt(e.onMouseDown,d=>{!r&&d.button===0&&d.ctrlKey===!1?s.onValueChange(o):d.preventDefault()}),onKeyDown:rt(e.onKeyDown,d=>{r||d.target!==d.currentTarget||[" ","Enter"].includes(d.key)&&s.onValueChange(o)}),onFocus:rt(e.onFocus,()=>{const d=s.activationMode!=="manual";!m&&!r&&d&&s.onValueChange(o)})})})},"TabsTrigger")),ts="TabsContent",ss=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,value:o,forceMount:r,children:l,...s}=e,n=lt(ts,c),f=ct(n.baseId,o),g=ut(n.baseId,o),m=o===n.value,d=y.useRef(m);return y.useEffect(()=>{const x=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(x)},[]),a.jsx(Dt,{present:r||m,children:({present:x})=>a.jsx(He.div,{"data-state":m?"active":"inactive","data-orientation":n.orientation,role:"tabpanel","aria-labelledby":f,hidden:!x,id:g,tabIndex:0,...s,ref:i,style:{...e.style,animationDuration:d.current?"0s":void 0},children:x&&l})})},"TabsContent"));function ct(t,e){return`${t}-trigger-${e}`}Se(ct,"makeTriggerId");function ut(t,e){return`${t}-content-${e}`}Se(ut,"makeContentId");var as=Ut,ns=Yt,rs=es,is=ss;function os(t){const e=Ce.c(10);let i,c,o;e[0]!==t?({className:i,orientation:o,...c}=t,e[0]=t,e[1]=i,e[2]=c,e[3]=o):(i=e[1],c=e[2],o=e[3]);const r=o===void 0?"horizontal":o;let l;e[4]!==i?(l=Qe("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",i),e[4]=i,e[5]=l):l=e[5];let s;return e[6]!==r||e[7]!==c||e[8]!==l?(s=a.jsx(as,{"data-slot":"tabs","data-orientation":r,orientation:r,className:l,...c}),e[6]=r,e[7]=c,e[8]=l,e[9]=s):s=e[9],s}const ls=At("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function cs(t){const e=Ce.c(11);let i,c,o;e[0]!==t?({className:i,variant:o,...c}=t,e[0]=t,e[1]=i,e[2]=c,e[3]=o):(i=e[1],c=e[2],o=e[3]);const r=o===void 0?"default":o;let l;e[4]!==i||e[5]!==r?(l=Qe(ls({variant:r}),i),e[4]=i,e[5]=r,e[6]=l):l=e[6];let s;return e[7]!==c||e[8]!==l||e[9]!==r?(s=a.jsx(ns,{"data-slot":"tabs-list","data-variant":r,className:l,...c}),e[7]=c,e[8]=l,e[9]=r,e[10]=s):s=e[10],s}function Ke(t){const e=Ce.c(8);let i,c;e[0]!==t?({className:i,...c}=t,e[0]=t,e[1]=i,e[2]=c):(i=e[1],c=e[2]);let o;e[3]!==i?(o=Qe("text-foreground/60 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",i),e[3]=i,e[4]=o):o=e[4];let r;return e[5]!==c||e[6]!==o?(r=a.jsx(rs,{"data-slot":"tabs-trigger",className:o,...c}),e[5]=c,e[6]=o,e[7]=r):r=e[7],r}function Je(t){const e=Ce.c(8);let i,c;e[0]!==t?({className:i,...c}=t,e[0]=t,e[1]=i,e[2]=c):(i=e[1],c=e[2]);let o;e[3]!==i?(o=Qe("flex-1 outline-none",i),e[3]=i,e[4]=o):o=e[4];let r;return e[5]!==c||e[6]!==o?(r=a.jsx(is,{"data-slot":"tabs-content",className:o,...c}),e[5]=c,e[6]=o,e[7]=r):r=e[7],r}const us={request:"Request",job_attempt:"Job attempt",scheduled_task:"Scheduled task",command:"Command",channel_action:"Channel action"};function ds(t){const e=Ce.c(8),{value:i}=t,[,c]=gt(),[o,r]=y.useState(!1);let l;e[0]!==c||e[1]!==i?(l=()=>{(async()=>await c(i)&&(r(!0),setTimeout(()=>r(!1),1200)))()},e[0]=c,e[1]=i,e[2]=l):l=e[2];let s;e[3]!==o?(s=o?a.jsx(xt,{className:"size-3"}):a.jsx(Kt,{className:"size-3"}),e[3]=o,e[4]=s):s=e[4];let n;return e[5]!==l||e[6]!==s?(n=a.jsx("button",{type:"button",onClick:l,className:"hover:text-foreground text-muted-foreground ml-1 inline-flex align-middle",title:"Copy",children:s}),e[5]=l,e[6]=s,e[7]=n):n=e[7],n}function ms(t){try{return JSON.parse(String(t))}catch{return String(t)}}function fs(t,e){const i=[];i.push(`# ${e.name}`),i.push(""),i.push(`- status: ${e.status??e.outcome??"-"}`),i.push(`- duration: ${h(e.duration)}`),i.push(`- occurred_at: ${e.occurred_at}`),i.push(""),i.push("## Stages");for(const[o,r]of Object.entries(e.stages))i.push(`- ${o}: ${h(r)}`);i.push(""),i.push("## Counters");for(const[o,r]of Object.entries(e.counters))i.push(`- ${o}: ${r}`);if(t.exceptions.length>0){i.push(""),i.push("## Exceptions");for(const o of t.exceptions){i.push(`### ${o.class_name}: ${o.message}`);for(const r of o.frames.filter(l=>l.in_app))i.push(`- ${r.file}:${r.line} in \`${r.function}\``)}}const c=[...t.queries].sort((o,r)=>r.duration-o.duration).slice(0,5);if(c.length>0){i.push(""),i.push("## Slow queries");for(const o of c)i.push(`- ${h(o.duration,2)} — \`${o.sql}\``)}return i.join(`
|
|
2
2
|
`)}function ja(t){const e=Ce.c(244),{environment:i,range:c,window:o}=vt().props,r=i.application_id,l=i.id,s=t.execution,n=s.detail;let f;e[0]!==n.headers?(f=n.headers??{},e[0]=n.headers,e[1]=f):f=e[1];const g=f,m=n.inertia,[,d]=gt(),[x,dt]=y.useState(!1),jt=s.name,We=us[s.kind]??s.kind;let N;e[2]!==We?(N={title:We,href:"#"},e[2]=We,e[3]=N):N=e[3];let w;e[4]!==s.name?(w={title:s.name,href:"#"},e[4]=s.name,e[5]=w):w=e[5];let T;e[6]!==N||e[7]!==w?(T=[N,w],e[6]=N,e[7]=w,e[8]=T):T=e[8];let q;e[9]!==s.outcome||e[10]!==s.status?(q=a.jsx(Ge,{status:s.status,outcome:s.outcome}),e[9]=s.outcome,e[10]=s.status,e[11]=q):q=e[11];let C;e[12]!==s.name?(C=a.jsx("span",{className:"font-mono",children:s.name}),e[12]=s.name,e[13]=C):C=e[13];let S;e[14]!==s.profiled?(S=s.profiled&&a.jsx(it,{variant:"secondary",className:"font-mono",children:"profiled"}),e[14]=s.profiled,e[15]=S):S=e[15];let $;e[16]!==q||e[17]!==C||e[18]!==S?($=a.jsxs("span",{className:"flex flex-wrap items-center gap-2",children:[q,C,S]}),e[16]=q,e[17]=C,e[18]=S,e[19]=$):$=e[19];let I;e[20]!==s.occurred_at?(I=Gt(s.occurred_at),e[20]=s.occurred_at,e[21]=I):I=e[21];let E;e[22]!==I?(E=a.jsx("span",{children:I}),e[22]=I,e[23]=E):E=e[23];let P;e[24]!==s.server?(P=s.server&&a.jsxs("span",{children:["server ",s.server]}),e[24]=s.server,e[25]=P):P=e[25];let z;e[26]!==s.deploy?(z=s.deploy&&a.jsxs("span",{children:["deploy ",s.deploy.slice(0,12)]}),e[26]=s.deploy,e[27]=z):z=e[27];let A;e[28]!==r||e[29]!==l||e[30]!==t.person||e[31]!==c||e[32]!==o||e[33]!==s.tenant||e[34]!==s.user_ref?(A=s.user_ref&&a.jsxs("span",{className:"inline-flex items-center gap-1",children:["origin user",a.jsx(ft,{applicationId:r,environmentId:l,kind:"user",range:c,window:o,user_ref:s.user_ref,tenant:s.tenant,person:t.person&&{ref:t.person.ref,name:t.person.name??t.person.ref}})]}),e[28]=r,e[29]=l,e[30]=t.person,e[31]=c,e[32]=o,e[33]=s.tenant,e[34]=s.user_ref,e[35]=A):A=e[35];let R;e[36]!==r||e[37]!==l||e[38]!==c||e[39]!==o||e[40]!==s.tenant||e[41]!==s.user_ref?(R=s.tenant&&a.jsxs("span",{className:"inline-flex items-center gap-1",children:["origin tenant",a.jsx(ft,{applicationId:r,environmentId:l,kind:"tenant",range:c,window:o,user_ref:s.user_ref,tenant:s.tenant,person:null})]}),e[36]=r,e[37]=l,e[38]=c,e[39]=o,e[40]=s.tenant,e[41]=s.user_ref,e[42]=R):R=e[42];let L;e[43]!==E||e[44]!==P||e[45]!==z||e[46]!==A||e[47]!==R?(L=a.jsxs("span",{className:"flex flex-wrap gap-x-3 text-xs",children:[E,P,z,A,R]}),e[43]=E,e[44]=P,e[45]=z,e[46]=A,e[47]=R,e[48]=L):L=e[48];let M;e[49]!==d||e[50]!==t||e[51]!==s?(M=()=>{(async()=>await d(fs(t,s))&&(dt(!0),setTimeout(()=>dt(!1),1200)))()},e[49]=d,e[50]=t,e[51]=s,e[52]=M):M=e[52];let D;e[53]!==x?(D=x?a.jsx(xt,{className:"size-3.5"}):a.jsx(qt,{className:"size-3.5"}),e[53]=x,e[54]=D):D=e[54];let F;e[55]!==M||e[56]!==D?(F=a.jsxs(Rt,{type:"button",variant:"outline",size:"sm",onClick:M,children:[D,"Copy as Markdown"]}),e[55]=M,e[56]=D,e[57]=F):F=e[57];let O;e[58]!==L||e[59]!==F||e[60]!==$?(O=a.jsx(St,{withWindow:!1,title:$,description:L,actions:F}),e[58]=L,e[59]=F,e[60]=$,e[61]=O):O=e[61];let V;e[62]!==t.issues?(V=t.issues.length>0&&a.jsx("div",{className:"flex flex-wrap gap-2",children:t.issues.map(Bs)}),e[62]=t.issues,e[63]=V):V=e[63];let B;e[64]!==s.duration?(B=h(s.duration),e[64]=s.duration,e[65]=B):B=e[65];let K;e[66]!==s.queue_latency?(K=s.queue_latency!=null?`queued ${h(s.queue_latency)}`:void 0,e[66]=s.queue_latency,e[67]=K):K=e[67];let J;e[68]!==B||e[69]!==K?(J=a.jsx(k,{label:"Duration",value:B,hint:K}),e[68]=B,e[69]=K,e[70]=J):J=e[70];const Ue=s.counters.queries??0,Xe=`${s.counters.cached_queries??0} cached · ${s.counters.hydrated_models??0} models`;let G;e[71]!==Ue||e[72]!==Xe?(G=a.jsx(k,{label:"Queries",value:Ue,hint:Xe}),e[71]=Ue,e[72]=Xe,e[73]=G):G=e[73];let Q;e[74]!==s.queue_time?(Q=s.queue_time!=null&&a.jsx(k,{label:"Queue time",value:h(s.queue_time)}),e[74]=s.queue_time,e[75]=Q):Q=e[75];const Ye=s.counters.cache_events??0;let H;e[76]!==Ye?(H=a.jsx(k,{label:"Cache",value:Ye}),e[76]=Ye,e[77]=H):H=e[77];const Ze=s.counters.outgoing_requests??0,et=`${s.counters.jobs_enqueued??0} jobs enqueued · ${s.counters.mail??0} mail`;let W;e[78]!==Ze||e[79]!==et?(W=a.jsx(k,{label:"Outgoing",value:Ze,hint:et}),e[78]=Ze,e[79]=et,e[80]=W):W=e[80];let U;e[81]!==s.allocations?(U=pt(s.allocations),e[81]=s.allocations,e[82]=U):U=e[82];let X;e[83]!==s.peak_memory?(X=s.peak_memory?`RSS ${_t(s.peak_memory)}`:void 0,e[83]=s.peak_memory,e[84]=X):X=e[84];let Y;e[85]!==U||e[86]!==X?(Y=a.jsx(k,{label:"Allocations",value:U,hint:X}),e[85]=U,e[86]=X,e[87]=Y):Y=e[87];const tt=s.counters.exceptions??0,st=s.counters.exceptions?"destructive":void 0,at=s.counters.lazy_loads?`${s.counters.lazy_loads} lazy loads`:void 0;let Z;e[88]!==tt||e[89]!==st||e[90]!==at?(Z=a.jsx(k,{label:"Exceptions",value:tt,tone:st,hint:at}),e[88]=tt,e[89]=st,e[90]=at,e[91]=Z):Z=e[91];let ee;e[92]!==J||e[93]!==G||e[94]!==Q||e[95]!==H||e[96]!==W||e[97]!==Y||e[98]!==Z?(ee=a.jsxs(Pt,{children:[J,G,Q,H,W,Y,Z]}),e[92]=J,e[93]=G,e[94]=Q,e[95]=H,e[96]=W,e[97]=Y,e[98]=Z,e[99]=ee):ee=e[99];let te;e[100]!==r||e[101]!==l||e[102]!==t.trace||e[103]!==t.trace_url?(te=t.trace.length>1&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsxs(j,{className:"flex flex-wrap items-center justify-between gap-2",children:["Trace",t.trace_url&&a.jsx(qe,{href:t.trace_url,className:"text-primary text-xs font-normal hover:underline",children:"View distributed trace"})]})}),a.jsx(v,{children:a.jsx("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:t.trace.map((u,p)=>{const Te=Math.max(...t.trace.map(Vs),1);return a.jsxs("span",{className:"flex items-center gap-2",children:[p>0&&a.jsx("span",{className:"text-muted-foreground",children:"→"}),a.jsxs(qe,{href:Jt({applicationId:r,environmentId:l,source:u.kind,executionId:u.execution_id}),className:u.current?"bg-muted flex items-center gap-1.5 rounded px-2 py-1 font-semibold":"hover:bg-muted flex items-center gap-1.5 rounded px-2 py-1",children:[a.jsx(Ge,{status:u.status,outcome:u.outcome})," ",a.jsx("span",{className:"font-mono",children:u.name}),a.jsx("span",{className:"bg-muted-foreground/25 relative h-1.5 w-10 overflow-hidden rounded-full",children:a.jsx("span",{className:"bg-primary absolute inset-y-0 left-0 rounded-full",style:{width:`${Math.max(4,u.duration/Te*100)}%`}})}),a.jsx("span",{className:"text-muted-foreground",children:h(u.duration)})]})]},u.execution_id)})})})]}),e[100]=r,e[101]=l,e[102]=t.trace,e[103]=t.trace_url,e[104]=te):te=e[104];let se;if(e[105]!==t.exceptions||e[106]!==t.execution){let u;e[108]!==t.execution?(u=p=>a.jsxs(_,{className:"border-destructive/40",children:[a.jsx(b,{children:a.jsx(j,{children:"Exception"})}),a.jsx(v,{children:a.jsx(Ct,{exception:p,deploy:t.execution.deploy})})]},p.id),e[108]=t.execution,e[109]=u):u=e[109],se=t.exceptions.map(u),e[105]=t.exceptions,e[106]=t.execution,e[107]=se}else se=e[107];let Ie;e[110]===Symbol.for("react.memo_cache_sentinel")?(Ie=a.jsx(b,{children:a.jsx(j,{children:"Timeline"})}),e[110]=Ie):Ie=e[110];let ae;e[111]!==t.timeline||e[112]!==s.duration||e[113]!==s.stages?(ae=a.jsxs(_,{children:[Ie,a.jsx(v,{children:a.jsx(It,{entries:t.timeline,total:s.duration,stages:s.stages})})]}),e[111]=t.timeline,e[112]=s.duration,e[113]=s.stages,e[114]=ae):ae=e[114];let ne;e[115]!==t.spans?(ne=t.spans.length>0&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsx(j,{children:"Spans"})}),a.jsx(v,{children:a.jsx($e,{rows:t.spans,rowKey:Os,columns:[{key:"off",header:"+ms",align:"right",cell:Fs},{key:"name",header:"Span",cell:Ds},{key:"status",header:"Status",cell:Ms},{key:"attrs",header:"Attributes",cell:Rs},{key:"dur",header:"Duration",align:"right",cell:As}]})})]}),e[115]=t.spans,e[116]=ne):ne=e[116];let re;e[117]!==r||e[118]!==l||e[119]!==t.profile?(re=t.profile&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsxs(j,{className:"flex flex-wrap items-center justify-between gap-2",children:["Profile",a.jsx(qe,{href:yt(r,l,t.profile.id),className:"text-primary text-xs font-normal hover:underline",children:"Open full profile"})]})}),a.jsxs(v,{className:"space-y-2",children:[a.jsxs("p",{className:"text-muted-foreground font-mono text-[11px]",children:[t.profile.profiler,t.profile.mode?` · ${t.profile.mode}`:""," ·"," ",pt(t.profile.samples)," samples · ",h(t.profile.duration),t.profile.truncated&&" · truncated for this page"]}),a.jsx(Tt,{collapsed:t.profile.collapsed})]})]}),e[117]=r,e[118]=l,e[119]=t.profile,e[120]=re):re=e[120];let ie;e[121]!==r||e[122]!==l||e[123]!==t.attachments?(ie=t.attachments.length>0&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsx(j,{children:"Attachments"})}),a.jsx(v,{children:a.jsx($e,{rows:t.attachments,rowKey:zs,columns:[{key:"name",header:"Name",className:"max-w-0",cell:Ps},{key:"type",hideOnMobile:!0,header:"Type",cell:Es},{key:"size",header:"Size",align:"right",cell:Is},{key:"links",header:"",align:"right",cell:u=>a.jsxs("span",{className:"flex justify-end gap-3",children:[u.viewable&&a.jsx("a",{className:"text-primary hover:underline",href:mt(r,l,u.id,{view:1}),children:"View"}),a.jsx("a",{className:"text-primary hover:underline",href:mt(r,l,u.id),children:"Download"})]})}]})})]}),e[121]=r,e[122]=l,e[123]=t.attachments,e[124]=ie):ie=e[124];let oe;e[125]!==t.queries.length?(oe=a.jsxs(Ke,{value:"queries",children:["Queries (",t.queries.length,")"]}),e[125]=t.queries.length,e[126]=oe):oe=e[126];let le;e[127]!==t.logs.length?(le=a.jsxs(Ke,{value:"logs",children:["Logs (",t.logs.length,")"]}),e[127]=t.logs.length,e[128]=le):le=e[128];let ce;e[129]!==t.enqueued_jobs.length?(ce=a.jsxs(Ke,{value:"jobs",children:["Enqueued jobs (",t.enqueued_jobs.length,")"]}),e[129]=t.enqueued_jobs.length,e[130]=ce):ce=e[130];let Ee;e[131]===Symbol.for("react.memo_cache_sentinel")?(Ee=a.jsx(Ke,{value:"request",children:"Details"}),e[131]=Ee):Ee=e[131];let ue;e[132]!==oe||e[133]!==le||e[134]!==ce?(ue=a.jsxs(cs,{children:[oe,le,ce,Ee]}),e[132]=oe,e[133]=le,e[134]=ce,e[135]=ue):ue=e[135];let Pe;e[136]===Symbol.for("react.memo_cache_sentinel")?(Pe={key:"off",header:"+ms",align:"right",cell:Ss},e[136]=Pe):Pe=e[136];let de;e[137]!==r||e[138]!==l?(de={key:"sql",header:"SQL",cell:u=>a.jsx(qe,{href:kt(r,l,u.group_hash),children:a.jsx(Et,{sql:u.sql,className:"hover:underline"})})},e[137]=r,e[138]=l,e[139]=de):de=e[139];let ze,Ae,Re;e[140]===Symbol.for("react.memo_cache_sentinel")?(ze={key:"rows",header:"Rows",align:"right",cell:Cs},Ae={key:"src",header:"Source",cell:qs},Re={key:"dur",header:"Duration",align:"right",cell:Ts},e[140]=ze,e[141]=Ae,e[142]=Re):(ze=e[140],Ae=e[141],Re=e[142]);let me;e[143]!==de?(me=[Pe,de,ze,Ae,Re],e[143]=de,e[144]=me):me=e[144];let fe;e[145]!==t.queries||e[146]!==me?(fe=a.jsx(Je,{value:"queries",children:a.jsx($e,{rows:t.queries,rowKey:$s,empty:"No queries.",columns:me})}),e[145]=t.queries,e[146]=me,e[147]=fe):fe=e[147];let Le;e[148]===Symbol.for("react.memo_cache_sentinel")?(Le=[{key:"lvl",header:"Level",cell:Ns},{key:"msg",header:"Message",cell:ks},{key:"tags",header:"Tags",cell:ys},{key:"stage",header:"Stage",cell:vs}],e[148]=Le):Le=e[148];let pe;e[149]!==t.logs?(pe=a.jsx(Je,{value:"logs",children:a.jsx($e,{rows:t.logs,rowKey:ws,empty:"No logs.",columns:Le})}),e[149]=t.logs,e[150]=pe):pe=e[150];let Me,De,Fe;e[151]===Symbol.for("react.memo_cache_sentinel")?(Me={key:"name",header:"Job",cell:bs},De={key:"queue",header:"Queue",cell:_s},Fe={key:"id",header:"Job id",cell:gs},e[151]=Me,e[152]=De,e[153]=Fe):(Me=e[151],De=e[152],Fe=e[153]);let xe;e[154]!==r||e[155]!==l?(xe=[Me,De,Fe,{key:"attempt",header:"Attempt",cell:u=>u.attempt_execution_id?a.jsx(qe,{className:"hover:underline",href:Nt(r,l,u.attempt_execution_id),children:a.jsx(Ge,{outcome:u.attempt_outcome})}):a.jsx("span",{className:"text-muted-foreground text-xs",children:"not seen yet"})}],e[154]=r,e[155]=l,e[156]=xe):xe=e[156];let he;e[157]!==t.enqueued_jobs||e[158]!==xe?(he=a.jsx(Je,{value:"jobs",children:a.jsx($e,{rows:t.enqueued_jobs,rowKey:js,empty:"No jobs enqueued.",columns:xe})}),e[157]=t.enqueued_jobs,e[158]=xe,e[159]=he):he=e[159];let Oe;e[160]===Symbol.for("react.memo_cache_sentinel")?(Oe=a.jsx(b,{children:a.jsx(j,{children:"Execution"})}),e[160]=Oe):Oe=e[160];let ge;if(e[161]!==n.arguments_preview||e[162]!==n.db_runtime||e[163]!==n.format||e[164]!==n.halted_callback||e[165]!==n.ip||e[166]!==n.redirect_to||e[167]!==n.schedule||e[168]!==n.url||e[169]!==n.user_agent||e[170]!==n.view_runtime||e[171]!==s.action||e[172]!==s.attempt||e[173]!==s.controller||e[174]!==s.execution_id||e[175]!==s.inertia_component||e[176]!==s.job_id||e[177]!==s.kind||e[178]!==s.queue||e[179]!==s.route||e[180]!==s.task_key||e[181]!==s.trace_id){const u=s.controller&&`${s.controller}#${s.action}`;let p;e[183]!==n.arguments_preview?(p=Array.isArray(n.arguments_preview)?n.arguments_preview.join(", "):void 0,e[183]=n.arguments_preview,e[184]=p):p=e[184];let Te;e[185]!==n.db_runtime||e[186]!==n.format||e[187]!==n.halted_callback||e[188]!==n.ip||e[189]!==n.redirect_to||e[190]!==n.schedule||e[191]!==n.url||e[192]!==n.user_agent||e[193]!==n.view_runtime||e[194]!==u||e[195]!==p||e[196]!==s.attempt||e[197]!==s.execution_id||e[198]!==s.inertia_component||e[199]!==s.job_id||e[200]!==s.kind||e[201]!==s.queue||e[202]!==s.route||e[203]!==s.task_key||e[204]!==s.trace_id?(Te={kind:s.kind,trace_id:s.trace_id,execution_id:s.execution_id,controller:u,route:s.route,url:n.url,ip:n.ip,format:n.format,queue:s.queue,attempt:s.attempt,job_id:s.job_id,task_key:s.task_key,schedule:n.schedule,inertia_component:s.inertia_component,redirect_to:n.redirect_to,halted_callback:n.halted_callback,view_runtime:n.view_runtime,db_runtime:n.db_runtime,user_agent:n.user_agent,arguments:p},e[185]=n.db_runtime,e[186]=n.format,e[187]=n.halted_callback,e[188]=n.ip,e[189]=n.redirect_to,e[190]=n.schedule,e[191]=n.url,e[192]=n.user_agent,e[193]=n.view_runtime,e[194]=u,e[195]=p,e[196]=s.attempt,e[197]=s.execution_id,e[198]=s.inertia_component,e[199]=s.job_id,e[200]=s.kind,e[201]=s.queue,e[202]=s.route,e[203]=s.task_key,e[204]=s.trace_id,e[205]=Te):Te=e[205],ge=a.jsx("dl",{className:"grid gap-y-1 text-xs sm:grid-cols-[10rem_1fr]",children:Object.entries(Te).filter(hs).map(xs)}),e[161]=n.arguments_preview,e[162]=n.db_runtime,e[163]=n.format,e[164]=n.halted_callback,e[165]=n.ip,e[166]=n.redirect_to,e[167]=n.schedule,e[168]=n.url,e[169]=n.user_agent,e[170]=n.view_runtime,e[171]=s.action,e[172]=s.attempt,e[173]=s.controller,e[174]=s.execution_id,e[175]=s.inertia_component,e[176]=s.job_id,e[177]=s.kind,e[178]=s.queue,e[179]=s.route,e[180]=s.task_key,e[181]=s.trace_id,e[182]=ge}else ge=e[182];let _e;e[206]!==m?(_e=m&&a.jsx("div",{className:"mt-3",children:a.jsx(nt,{data:m})}),e[206]=m,e[207]=_e):_e=e[207];let be;e[208]!==n.context?(be=n.context&&n.context!=="{}"&&a.jsx("div",{className:"mt-3",children:a.jsx(nt,{data:ms(n.context)})}),e[208]=n.context,e[209]=be):be=e[209];let je;e[210]!==ge||e[211]!==_e||e[212]!==be?(je=a.jsxs(_,{children:[Oe,a.jsxs(v,{children:[ge,_e,be]})]}),e[210]=ge,e[211]=_e,e[212]=be,e[213]=je):je=e[213];let Ve;e[214]===Symbol.for("react.memo_cache_sentinel")?(Ve=a.jsx(b,{children:a.jsx(j,{children:"Headers"})}),e[214]=Ve):Ve=e[214];let ve;e[215]!==g?(ve=a.jsx("dl",{className:"grid gap-y-1 text-xs sm:grid-cols-[12rem_1fr]",children:Object.entries(g).map(ps)}),e[215]=g,e[216]=ve):ve=e[216];let ye;e[217]!==n.payload?(ye=n.payload!=null&&a.jsx("div",{className:"mt-3",children:a.jsx(nt,{data:n.payload})}),e[217]=n.payload,e[218]=ye):ye=e[218];let ke;e[219]!==ve||e[220]!==ye?(ke=a.jsxs(_,{children:[Ve,a.jsxs(v,{children:[ve,ye]})]}),e[219]=ve,e[220]=ye,e[221]=ke):ke=e[221];let Ne;e[222]!==je||e[223]!==ke?(Ne=a.jsx(Je,{value:"request",children:a.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[je,ke]})}),e[222]=je,e[223]=ke,e[224]=Ne):Ne=e[224];let we;e[225]!==ue||e[226]!==fe||e[227]!==pe||e[228]!==he||e[229]!==Ne?(we=a.jsxs(os,{defaultValue:"queries",children:[ue,fe,pe,he,Ne]}),e[225]=ue,e[226]=fe,e[227]=pe,e[228]=he,e[229]=Ne,e[230]=we):we=e[230];let Be;return e[231]!==O||e[232]!==V||e[233]!==ee||e[234]!==te||e[235]!==se||e[236]!==ae||e[237]!==ne||e[238]!==re||e[239]!==ie||e[240]!==T||e[241]!==we||e[242]!==s.name?(Be=a.jsxs($t,{title:jt,crumbs:T,children:[O,V,ee,te,se,ae,ne,re,ie,we]}),e[231]=O,e[232]=V,e[233]=ee,e[234]=te,e[235]=se,e[236]=ae,e[237]=ne,e[238]=re,e[239]=ie,e[240]=T,e[241]=we,e[242]=s.name,e[243]=Be):Be=e[243],Be}function ps(t){const[e,i]=t;return a.jsxs("div",{className:"contents",children:[a.jsx("dt",{className:"text-muted-foreground font-mono",children:e}),a.jsx("dd",{className:"font-mono break-all",children:i})]},e)}function xs(t){const[e,i]=t;return a.jsxs("div",{className:"contents",children:[a.jsx("dt",{className:"text-muted-foreground",children:e}),a.jsxs("dd",{className:"font-mono break-all",children:[String(i),(e==="trace_id"||e==="execution_id")&&a.jsx(ds,{value:String(i)})]})]},e)}function hs(t){const[,e]=t;return e!=null&&e!==""}function gs(t){return a.jsx("span",{className:"font-mono text-xs",children:t.job_id})}function _s(t){return t.queue}function bs(t){return a.jsx("span",{className:"font-mono text-xs",children:t.name})}function js(t){return t.id}function vs(t){return a.jsx("span",{className:"text-muted-foreground text-xs",children:t.stage??""})}function ys(t){return t.tags.join(" ")}function ks(t){return a.jsx("span",{className:"font-mono text-xs whitespace-pre-wrap",children:t.message})}function Ns(t){return a.jsx(zt,{level:t.level})}function ws(t){return t.id}function Ts(t){return h(t.duration,2)}function qs(t){return a.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.source??""})}function Cs(t){return t.row_count??"–"}function Ss(t){return t.offset.toFixed(1)}function $s(t){return t.id}function Is(t){return _t(t.bytes)}function Es(t){return a.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.content_type??"–"})}function Ps(t){return a.jsxs("span",{className:"flex items-center gap-1.5",children:[a.jsx("span",{className:"truncate font-mono text-xs",children:t.name}),t.truncated&&a.jsx(it,{variant:"secondary",children:"truncated"})]})}function zs(t){return t.id}function As(t){return h(t.duration,2)}function Rs(t){return a.jsx("span",{className:"flex flex-wrap gap-1",children:Object.entries(t.attributes).map(Ls)})}function Ls(t){const[e,i]=t;return a.jsxs("span",{className:"bg-muted rounded-sm px-1.5 font-mono text-[10px]",children:[e,"=",String(i)]},e)}function Ms(t){return a.jsx(Ge,{outcome:t.status})}function Ds(t){return a.jsx("span",{className:"font-mono text-xs",children:t.name})}function Fs(t){return t.offset.toFixed(1)}function Os(t){return t.id}function Vs(t){return t.duration}function Bs(t){return a.jsx(qe,{href:wt(t.id),children:a.jsx(it,{variant:"destructive",className:"font-mono",children:t.key})},t.id)}export{ja as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as R,g as T,j as n,H,e as y,l as S,m as $,L as q,o as I,p as K,q as F,s as G}from"./inertia-
|
|
1
|
+
import{c as R,g as T,j as n,H,e as y,l as S,m as $,L as q,o as I,p as K,q as F,s as G}from"./inertia-Cuyz2ZHO.js";import{D as J}from"./data-table-CzKTEE-O.js";import{O as M}from"./onboarding-CUpZl5KB.js";import{B as D}from"./badge-DRae8XwK.js";import{B as w}from"./app-wordmark-BA_60AVb.js";import{A as Q}from"./app-layout-Zc0v-hYh.js";import{a as U,c as V}from"./format-B9SDkrWj.js";import"./chart-hover-CfoZUY4J.js";import"./empty-state-CW4wclK_.js";import"./copy-block-CGcXxp8J.js";import"./use-clipboard-DNefo-ky.js";import"./index-BfbSo01U.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./card-DPjFKfen.js";import"./checkbox-DPkLUiwM.js";import"./label-DdCBgiUn.js";function _e(t){const e=R.c(54),i=t.application,B=i.name;let l;e[0]!==i.id?(l=T(i.id),e[0]=i.id,e[1]=l):l=e[1];let a;e[2]!==i.name||e[3]!==l?(a=[{title:B,href:l}],e[2]=i.name,e[3]=l,e[4]=a):a=e[4];let o;e[5]!==i.name?(o=n.jsx(H,{title:i.name}),e[5]=i.name,e[6]=o):o=e[6];let r;e[7]!==i.name?(r=n.jsx("h1",{className:"text-xl font-semibold",children:i.name}),e[7]=i.name,e[8]=r):r=e[8];let m;e[9]!==i.issue_prefix?(m=n.jsx("span",{className:"font-mono",children:i.issue_prefix}),e[9]=i.issue_prefix,e[10]=m):m=e[10];let d;e[11]!==t.issues_open||e[12]!==m?(d=n.jsxs("p",{className:"text-muted-foreground text-sm",children:["Issue prefix ",m," ","· ",t.issues_open," open issues"]}),e[11]=t.issues_open,e[12]=m,e[13]=d):d=e[13];let c;e[14]!==r||e[15]!==d?(c=n.jsxs("div",{children:[r,d]}),e[14]=r,e[15]=d,e[16]=c):c=e[16];let p;e[17]!==i.id?(p=n.jsx(w,{variant:"outline",size:"sm",onClick:()=>y.visit(S(i.id)),children:"Edit"}),e[17]=i.id,e[18]=p):p=e[18];let f;e[19]!==i.id?(f=n.jsx(w,{size:"sm",onClick:()=>y.visit($(i.id)),children:"Add environment"}),e[19]=i.id,e[20]=f):f=e[20];let u;e[21]!==p||e[22]!==f?(u=n.jsxs("div",{className:"flex gap-2",children:[p,f]}),e[21]=p,e[22]=f,e[23]=u):u=e[23];let x;e[24]!==u||e[25]!==c?(x=n.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[c,u]}),e[24]=u,e[25]=c,e[26]=x):x=e[26];let h;e[27]!==t.environments||e[28]!==t.new_token?(h=t.new_token&&(()=>{const s=t.new_token,L=t.environments.find(O=>O.token_prefix===s.slice(0,12));return n.jsx(M,{tokenPrefix:L?.token_prefix??s.slice(0,12),newToken:s})})(),e[27]=t.environments,e[28]=t.new_token,e[29]=h):h=e[29];let v;e[30]!==i.id?(v={key:"n",header:"Environment",cell:s=>n.jsx(q,{className:"font-medium hover:underline",href:I(i.id,s.id),children:s.name})},e[30]=i.id,e[31]=v):v=e[31];let N,E,P,b,A,z;e[32]===Symbol.for("react.memo_cache_sentinel")?(N={key:"tok",header:"Token",cell:te},E={key:"seen",header:"Last event",cell:ee},P={key:"ev",header:"Events (month)",align:"right",cell:Z},b={key:"d",header:"Deploys",align:"right",cell:Y},A={key:"i",header:"Open issues",align:"right",cell:X},z={key:"st",header:"",cell:W},e[32]=N,e[33]=E,e[34]=P,e[35]=b,e[36]=A,e[37]=z):(N=e[32],E=e[33],P=e[34],b=e[35],A=e[36],z=e[37]);let k;e[38]!==i.id?(k={key:"x",header:"",align:"right",cell:s=>n.jsxs("span",{className:"flex justify-end gap-1",children:[n.jsx(w,{size:"sm",variant:"ghost",onClick:()=>y.post(K(i.id,s.id)),children:"Rotate token"}),n.jsx(w,{size:"sm",variant:"ghost",onClick:()=>y.post(F(i.id,s.id)),children:s.paused?"Resume":"Pause"}),n.jsx(w,{size:"sm",variant:"ghost",className:"text-destructive",onClick:()=>confirm(`Delete ${s.name} and all its telemetry?`)&&y.delete(G(i.id,s.id)),children:"Delete"})]})},e[38]=i.id,e[39]=k):k=e[39];let j;e[40]!==v||e[41]!==k?(j=[v,N,E,P,b,A,z,k],e[40]=v,e[41]=k,e[42]=j):j=e[42];let _;e[43]!==t.environments||e[44]!==j?(_=n.jsx(J,{rows:t.environments,rowKey:ie,columns:j}),e[43]=t.environments,e[44]=j,e[45]=_):_=e[45];let g;e[46]!==x||e[47]!==h||e[48]!==_?(g=n.jsxs("div",{className:"flex flex-1 flex-col gap-4 p-3 md:gap-5 md:px-6 md:pt-2 md:pb-6",children:[x,h,_]}),e[46]=x,e[47]=h,e[48]=_,e[49]=g):g=e[49];let C;return e[50]!==a||e[51]!==g||e[52]!==o?(C=n.jsxs(Q,{breadcrumbs:a,children:[o,g]}),e[50]=a,e[51]=g,e[52]=o,e[53]=C):C=e[53],C}function W(t){return t.paused?n.jsx(D,{variant:"secondary",children:"paused"}):null}function X(t){return t.open_issues?n.jsx(D,{variant:"destructive",children:t.open_issues}):0}function Y(t){return t.deploys_count}function Z(t){return V(t.events_this_month)}function ee(t){return t.last_seen_at?U(t.last_seen_at):n.jsx("span",{className:"text-muted-foreground",children:"never"})}function te(t){return n.jsxs("span",{className:"font-mono text-xs",children:[t.token_prefix,"…"]})}function ie(t){return t.id}export{_e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as B,u as G,ag as J,j as s,L as K}from"./inertia-
|
|
1
|
+
import{c as B,u as G,ag as J,j as s,L as K}from"./inertia-Cuyz2ZHO.js";import{F as M}from"./flamegraph-EaGkP2NT.js";import{P as O,E as Q}from"./env-layout-Kz7wks1x.js";import{S as N,a as T}from"./stat-ZtxGU8lE.js";import{C as U,a as V}from"./card-DPjFKfen.js";import{e as X}from"./execution-path-FAuIzOXB.js";import{w as Y,c as Z,m as A,b as ee}from"./format-B9SDkrWj.js";import"./data-table-CzKTEE-O.js";import"./chart-hover-CfoZUY4J.js";import"./empty-state-CW4wclK_.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./index-CBip6V4z.js";import"./app-wordmark-BA_60AVb.js";import"./badge-DRae8XwK.js";import"./app-layout-Zc0v-hYh.js";import"./live-dot-BZgYTYdt.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";import"./use-live-DMTuhKfB.js";import"./arrow-up-CLQ-7heQ.js";function Pe(i){const e=B.c(71),{environment:z,window:I}=G().props,l=z.application_id,r=z.id,t=i.profile,L=t.execution_preview??"Profile";let o;e[0]!==l||e[1]!==r||e[2]!==I?(o=J(l,r,{window:I}),e[0]=l,e[1]=r,e[2]=I,e[3]=o):o=e[3];let a;e[4]!==o?(a={title:"Profiles",href:o},e[4]=o,e[5]=a):a=e[5];const F=t.execution_preview??`Profile ${t.id}`;let n;e[6]!==F?(n={title:F,href:"#"},e[6]=F,e[7]=n):n=e[7];let c;e[8]!==a||e[9]!==n?(c=[a,n],e[8]=a,e[9]=n,e[10]=c):c=e[10];const R=t.execution_preview??`Profile ${t.id}`;let p;e[11]!==R?(p=s.jsx("span",{className:"font-mono",children:R}),e[11]=R,e[12]=p):p=e[12];let d;e[13]!==t.occurred_at?(d=Y(t.occurred_at),e[13]=t.occurred_at,e[14]=d):d=e[14];let f;e[15]!==d?(f=s.jsx("span",{children:d}),e[15]=d,e[16]=f):f=e[16];const D=t.mode?` · ${t.mode}`:"";let m;e[17]!==D||e[18]!==t.profiler?(m=s.jsxs("span",{children:[t.profiler,D]}),e[17]=D,e[18]=t.profiler,e[19]=m):m=e[19];let u;e[20]!==t.server?(u=t.server&&s.jsxs("span",{children:["server ",t.server]}),e[20]=t.server,e[21]=u):u=e[21];let x;e[22]!==t.deploy?(x=t.deploy&&s.jsxs("span",{children:["deploy ",t.deploy.slice(0,12)]}),e[22]=t.deploy,e[23]=x):x=e[23];let v;e[24]!==l||e[25]!==r||e[26]!==t.execution_id||e[27]!==t.execution_source?(v=t.execution_id&&s.jsx(K,{className:"hover:underline",href:X({applicationId:l,environmentId:r,source:t.execution_source,executionId:t.execution_id}),children:"view execution"}),e[24]=l,e[25]=r,e[26]=t.execution_id,e[27]=t.execution_source,e[28]=v):v=e[28];let h;e[29]!==m||e[30]!==u||e[31]!==x||e[32]!==v||e[33]!==f?(h=s.jsxs("span",{className:"flex flex-wrap gap-x-3 text-xs",children:[f,m,u,x,v]}),e[29]=m,e[30]=u,e[31]=x,e[32]=v,e[33]=f,e[34]=h):h=e[34];let j;e[35]!==h||e[36]!==p?(j=s.jsx(O,{withWindow:!1,title:p,description:h}),e[35]=h,e[36]=p,e[37]=j):j=e[37];let _;e[38]!==t.samples?(_=Z(t.samples),e[38]=t.samples,e[39]=_):_=e[39];let w;e[40]!==_?(w=s.jsx(N,{label:"Samples",value:_}),e[40]=_,e[41]=w):w=e[41];let y;e[42]!==t.duration?(y=A(t.duration),e[42]=t.duration,e[43]=y):y=e[43];let P;e[44]!==t.interval?(P=t.interval?`every ${A(t.interval/1e3,2)}`:void 0,e[44]=t.interval,e[45]=P):P=e[45];let b;e[46]!==y||e[47]!==P?(b=s.jsx(N,{label:"Duration",value:y,hint:P}),e[46]=y,e[47]=P,e[48]=b):b=e[48];const H=t.mode??void 0;let S;e[49]!==H||e[50]!==t.profiler?(S=s.jsx(N,{label:"Profiler",value:t.profiler,hint:H}),e[49]=H,e[50]=t.profiler,e[51]=S):S=e[51];let g;e[52]!==t.stacks_bytes?(g=ee(t.stacks_bytes),e[52]=t.stacks_bytes,e[53]=g):g=e[53];const W=i.truncated?"truncated for display":"uncompressed",q=i.truncated?"warning":void 0;let k;e[54]!==g||e[55]!==W||e[56]!==q?(k=s.jsx(N,{label:"Stacks",value:g,hint:W,tone:q}),e[54]=g,e[55]=W,e[56]=q,e[57]=k):k=e[57];let E;e[58]!==w||e[59]!==b||e[60]!==S||e[61]!==k?(E=s.jsxs(T,{children:[w,b,S,k]}),e[58]=w,e[59]=b,e[60]=S,e[61]=k,e[62]=E):E=e[62];let $;e[63]!==i.collapsed?($=s.jsx(U,{children:s.jsx(V,{className:"pt-4",children:s.jsx(M,{collapsed:i.collapsed})})}),e[63]=i.collapsed,e[64]=$):$=e[64];let C;return e[65]!==L||e[66]!==j||e[67]!==E||e[68]!==$||e[69]!==c?(C=s.jsxs(Q,{title:L,crumbs:c,children:[j,E,$]}),e[65]=L,e[66]=j,e[67]=E,e[68]=$,e[69]=c,e[70]=C):C=e[70],C}export{Pe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Oe,u as Ce,j as s,L as be,a1 as Re,i as $e}from"./inertia-
|
|
1
|
+
import{c as Oe,u as Ce,j as s,L as be,a1 as Re,i as $e}from"./inertia-Cuyz2ZHO.js";import{C as qe}from"./chart-hover-CfoZUY4J.js";import{V as ye,D as Ne}from"./chart-panel-CC49WTQL.js";import{D as he}from"./data-table-CzKTEE-O.js";import{E as ge}from"./empty-state-CW4wclK_.js";import{O as Pe}from"./onboarding-CUpZl5KB.js";import{u as De,P as Ee,E as Le}from"./env-layout-Kz7wks1x.js";import{R as Me}from"./relative-time-D5UbF4oO.js";import{S as Te}from"./sparkline-cell-Dwg7awwh.js";import{S as D,a as Ke}from"./stat-ZtxGU8lE.js";import{I as Ie}from"./status-badge-CH5P-Xkj.js";import{C as fe,a as pe,b as _e,c as xe}from"./card-DPjFKfen.js";import{c as E,p as ve,m as Z,a as ke}from"./format-B9SDkrWj.js";import{crashFreeTone as Ae,rate as He}from"./release-health-uP-GF3_V.js";import{O as Be,r as Fe}from"./app-layout-Zc0v-hYh.js";import"./series-chart-gnrzhmM6.js";import"./chart-DWh7l8yM.js";import"./copy-block-CGcXxp8J.js";import"./app-wordmark-BA_60AVb.js";import"./use-clipboard-DNefo-ky.js";import"./index-BfbSo01U.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./badge-DRae8XwK.js";import"./use-live-DMTuhKfB.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./arrow-up-CLQ-7heQ.js";import"./checkbox-DPkLUiwM.js";function Tt(t){const e=Oe.c(109),{environment:o}=Ce().props,{window:we,label:Se}=De(),ee=o.application_id,te=o.id,r=t.totals.requests.current,i=t.totals.requests.previous,l=t.totals.jobs.current,se=t.totals.jobs.previous,n=we==="custom"?"vs previous period":`vs previous ${Se}`;let L;e[0]===Symbol.for("react.memo_cache_sentinel")?(L=[{title:"Overview",href:"#"}],e[0]=L):L=e[0];const re=`${o.application_name} · ${o.name}`;let a;e[1]!==o.last_seen_at?(a=o.last_seen_at?s.jsxs(s.Fragment,{children:["Last event ",s.jsx(Me,{iso:o.last_seen_at})]}):"No events received yet.",e[1]=o.last_seen_at,e[2]=a):a=e[2];let c;e[3]!==re||e[4]!==a?(c=s.jsx(Ee,{title:re,description:a}),e[3]=re,e[4]=a,e[5]=c):c=e[5];let u;e[6]!==o.last_seen_at||e[7]!==o.token_prefix?(u=!o.last_seen_at&&s.jsx(Pe,{tokenPrefix:o.token_prefix}),e[6]=o.last_seen_at,e[7]=o.token_prefix,e[8]=u):u=e[8];let m;e[9]!==r.count?(m={value:r.count,format:E},e[9]=r.count,e[10]=m):m=e[10];let M;e[11]!==r.count||e[12]!==r.errors?(M=ve(r.errors,r.count),e[11]=r.count,e[12]=r.errors,e[13]=M):M=e[13];let T;e[14]!==r.client_errors||e[15]!==r.count?(T=ve(r.client_errors,r.count),e[14]=r.client_errors,e[15]=r.count,e[16]=T):T=e[16];const oe=`${M} 5xx · ${T} 4xx`,le=r.errors>0?"warning":void 0;let d;e[17]!==r.count||e[18]!==i.count?(d={current:r.count,previous:i.count,goodDirection:"up"},e[17]=r.count,e[18]=i.count,e[19]=d):d=e[19];let h;e[20]!==n||e[21]!==d||e[22]!==m||e[23]!==oe||e[24]!==le?(h=s.jsx(D,{label:"Requests",roll:m,hint:oe,tone:le,delta:d,deltaCaption:n}),e[20]=n,e[21]=d,e[22]=m,e[23]=oe,e[24]=le,e[25]=h):h=e[25];const ne=r.p95/1e3;let f;e[26]!==ne?(f=Z(ne),e[26]=ne,e[27]=f):f=e[27];const ie=r.avg/1e3;let K;e[28]!==ie?(K=Z(ie),e[28]=ie,e[29]=K):K=e[29];const ae=r.max/1e3;let I;e[30]!==ae?(I=Z(ae),e[30]=ae,e[31]=I):I=e[31];const ce=`avg ${K} · max ${I}`;let p;e[32]!==r.p95||e[33]!==i.p95?(p={current:r.p95,previous:i.p95,goodDirection:"down"},e[32]=r.p95,e[33]=i.p95,e[34]=p):p=e[34];let _;e[35]!==n||e[36]!==f||e[37]!==ce||e[38]!==p?(_=s.jsx(D,{label:"Request p95",value:f,hint:ce,delta:p,deltaCaption:n}),e[35]=n,e[36]=f,e[37]=ce,e[38]=p,e[39]=_):_=e[39];let x;e[40]!==l.count?(x={value:l.count,format:E},e[40]=l.count,e[41]=x):x=e[41];let A;e[42]!==l.count||e[43]!==l.errors?(A=ve(l.errors,l.count),e[42]=l.count,e[43]=l.errors,e[44]=A):A=e[44];const ue=`${A} failed`,me=l.errors>0?"warning":void 0;let v;e[45]!==l.count||e[46]!==se.count?(v={current:l.count,previous:se.count,goodDirection:"up"},e[45]=l.count,e[46]=se.count,e[47]=v):v=e[47];let j;e[48]!==n||e[49]!==x||e[50]!==ue||e[51]!==me||e[52]!==v?(j=s.jsx(D,{label:"Job attempts",roll:x,hint:ue,tone:me,delta:v,deltaCaption:n}),e[48]=n,e[49]=x,e[50]=ue,e[51]=me,e[52]=v,e[53]=j):j=e[53];const de=t.issues.length?"destructive":"success";let y;e[54]!==t.issues.length||e[55]!==de?(y=s.jsx(D,{label:"Open issues",value:t.issues.length,tone:de}),e[54]=t.issues.length,e[55]=de,e[56]=y):y=e[56];let g;e[57]!==t.release_health?(g=t.release_health&&s.jsx(D,{label:"Crash-free sessions",value:He(t.release_health.crash_free_sessions),tone:Ae(t.release_health.crash_free_sessions),hint:`${t.release_health.ref} · ${E(t.release_health.sessions)} sessions`}),e[57]=t.release_health,e[58]=g):g=e[58];let b;e[59]!==h||e[60]!==_||e[61]!==j||e[62]!==y||e[63]!==g?(b=s.jsxs(Ke,{children:[h,_,j,y,g]}),e[59]=h,e[60]=_,e[61]=j,e[62]=y,e[63]=g,e[64]=b):b=e[64];let k;e[65]!==t.deploys||e[66]!==t.request_series?(k=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[s.jsx(ye,{label:"Requests",data:t.request_series,deploys:t.deploys}),s.jsx(Ne,{label:"Request latency",data:t.request_series,deploys:t.deploys})]}),e[65]=t.deploys,e[66]=t.request_series,e[67]=k):k=e[67];let H;e[68]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(_e,{children:s.jsx(xe,{children:"Slowest routes (p95)"})}),e[68]=H):H=e[68];let w;e[69]!==ee||e[70]!==te?(w={key:"name",header:"Route",grow:!0,cell:je=>s.jsx(be,{className:"font-mono text-xs hover:underline",href:Re(ee,te,je.group_hash),children:je.name})},e[69]=ee,e[70]=te,e[71]=w):w=e[71];let B,F,J,V;e[72]===Symbol.for("react.memo_cache_sentinel")?(B={key:"trend",hideOnMobile:!0,header:"Trend",cell:lt},F={key:"count",header:"Count",align:"right",cell:ot},J={key:"p95",header:"p95",align:"right",cell:rt},V={key:"errors",hideOnMobile:!0,header:"5xx",align:"right",cell:st},e[72]=B,e[73]=F,e[74]=J,e[75]=V):(B=e[72],F=e[73],J=e[74],V=e[75]);let S;e[76]!==w?(S=[w,B,F,J,V],e[76]=w,e[77]=S):S=e[77];let O;e[78]!==t.slow_routes||e[79]!==S?(O=s.jsxs(fe,{children:[H,s.jsx(pe,{children:s.jsx(he,{rows:t.slow_routes,rowKey:it,hoverKey:nt,columns:S})})]}),e[78]=t.slow_routes,e[79]=S,e[80]=O):O=e[80];let W;e[81]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(_e,{children:s.jsx(xe,{children:"Open issues"})}),e[81]=W):W=e[81];let z,G;e[82]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(ge,{icon:Be,title:"No open issues",description:"Issues are grouped from repeated request, job, and exception errors."}),G=[{key:"key",header:"Issue",cell:et},{key:"title",header:"Title",cell:Ze},{key:"status",hideOnMobile:!0,header:"",cell:Ye},{key:"n",hideOnMobile:!0,header:"Count",align:"right",cell:Xe},{key:"last",header:"Last",align:"right",cell:Ue}],e[82]=z,e[83]=G):(z=e[82],G=e[83]);let C;e[84]!==t.issues?(C=s.jsxs(fe,{children:[W,s.jsx(pe,{children:s.jsx(he,{rows:t.issues,rowKey:tt,empty:z,columns:G})})]}),e[84]=t.issues,e[85]=C):C=e[85];let R;e[86]!==O||e[87]!==C?(R=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[O,C]}),e[86]=O,e[87]=C,e[88]=R):R=e[88];let $;e[89]!==t.deploys||e[90]!==t.job_series?($=s.jsx(ye,{label:"Jobs",legend:"job",seriesLabel:"Attempts",data:t.job_series,deploys:t.deploys}),e[89]=t.deploys,e[90]=t.job_series,e[91]=$):$=e[91];let Q;e[92]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(_e,{children:s.jsx(xe,{children:"Servers"})}),e[92]=Q):Q=e[92];let q;e[93]!==t.processes?(q=Object.entries(t.processes),e[93]=t.processes,e[94]=q):q=e[94];let U,X;e[95]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(ge,{icon:Fe,title:"No process has reported yet",description:"Server processes report here once they boot with the gem installed."}),X=[{key:"server",header:"Server",cell:Ge},{key:"role",header:"Role",cell:ze},{key:"deploy",header:"Deploy",cell:We},{key:"ver",hideOnMobile:!0,header:"Ruby / Rails",cell:Ve},{key:"boot",hideOnMobile:!0,header:"Booted",align:"right",cell:Je}],e[95]=U,e[96]=X):(U=e[95],X=e[96]);let N;e[97]!==q?(N=s.jsxs(fe,{children:[Q,s.jsx(pe,{children:s.jsx(he,{rows:q,rowKey:Qe,empty:U,columns:X})})]}),e[97]=q,e[98]=N):N=e[98];let P;e[99]!==$||e[100]!==N?(P=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[$,N]}),e[99]=$,e[100]=N,e[101]=P):P=e[101];let Y;return e[102]!==c||e[103]!==b||e[104]!==k||e[105]!==u||e[106]!==R||e[107]!==P?(Y=s.jsx(Le,{title:"Overview",crumbs:L,children:s.jsxs(qe,{children:[c,u,b,k,R,P]})}),e[102]=c,e[103]=b,e[104]=k,e[105]=u,e[106]=R,e[107]=P,e[108]=Y):Y=e[108],Y}function Je(t){const[,e]=t;return ke(e.booted_at)}function Ve(t){const[,e]=t;return`${e.ruby_version} / ${e.rails_version}`}function We(t){const[,e]=t;return s.jsx("span",{className:"font-mono text-xs",children:e.deploy?.slice(0,10)})}function ze(t){const[,e]=t;return e.role}function Ge(t){const[e]=t;return s.jsx("span",{className:"font-mono text-xs",children:e})}function Qe(t){const[e]=t;return e}function Ue(t){return ke(t.last_seen_at)}function Xe(t){return E(t.occurrences)}function Ye(t){return s.jsx(Ie,{status:t.status})}function Ze(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function et(t){return s.jsx(be,{className:"font-mono text-xs hover:underline",href:$e(t.id),children:t.key})}function tt(t){return t.id}function st(t){return t.errors}function rt(t){return Z(t.p95)}function ot(t){return E(t.count)}function lt(t){return s.jsx(Te,{data:t.sparkline,hoverKey:t.group_hash})}function nt(t){return t.group_hash}function it(t){return t.group_hash}export{Tt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as L,u as U,ap as W,j as t,L as K,y as Y,i as F}from"./inertia-
|
|
1
|
+
import{c as L,u as U,ap as W,j as t,L as K,y as Y,i as F}from"./inertia-Cuyz2ZHO.js";import{C as G}from"./chart-panel-CC49WTQL.js";import{D as z}from"./data-table-CzKTEE-O.js";import{E as A}from"./empty-state-CW4wclK_.js";import{P as J,E as Q}from"./env-layout-Kz7wks1x.js";import{b as V}from"./series-chart-gnrzhmM6.js";import{I as X}from"./status-badge-CH5P-Xkj.js";import{B as Z}from"./app-wordmark-BA_60AVb.js";import{C as M,a as T,b as q,c as B}from"./card-DPjFKfen.js";import{w as ee,c as R,m as se,a as te}from"./format-B9SDkrWj.js";import{ReleaseHealthStrip as re}from"./release-health-uP-GF3_V.js";import{Y as ie,O as le}from"./app-layout-Zc0v-hYh.js";import"./chart-hover-CfoZUY4J.js";import"./badge-DRae8XwK.js";import"./use-live-DMTuhKfB.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./chart-DWh7l8yM.js";import"./stat-ZtxGU8lE.js";import"./arrow-up-CLQ-7heQ.js";import"./checkbox-DPkLUiwM.js";function H(s){const e=L.c(6),{rows:o,empty:l}=s;let r;e[0]!==l?(r=t.jsx(A,{icon:le,...l}),e[0]=l,e[1]=r):r=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=[{key:"k",header:"Issue",cell:ne},{key:"t",header:"Title",cell:ae},{key:"s",header:"",cell:oe}],e[2]=i):i=e[2];let a;return e[3]!==o||e[4]!==r?(a=t.jsx(z,{rows:o,rowKey:me,empty:r,columns:i}),e[3]=o,e[4]=r,e[5]=a):a=e[5],a}function oe(s){return t.jsx(X,{status:s.status})}function ae(s){return t.jsx("span",{className:"line-clamp-1 text-xs",children:s.title})}function ne(s){return t.jsx(K,{className:"font-mono text-xs hover:underline",href:F(s.id),children:s.key})}function me(s){return s.id}function Ue(s){const e=L.c(58),{environment:o,window:l}=U().props,r=o.application_id,i=o.id,a=s.release.ref;let n;e[0]!==r||e[1]!==i||e[2]!==l?(n=W(r,i,{window:l}),e[0]=r,e[1]=i,e[2]=l,e[3]=n):n=e[3];let m;e[4]!==n?(m={title:"Releases",href:n},e[4]=n,e[5]=m):m=e[5];let c;e[6]!==s.release.ref?(c={title:s.release.ref,href:"#"},e[6]=s.release.ref,e[7]=c):c=e[7];let d;e[8]!==m||e[9]!==c?(d=[m,c],e[8]=m,e[9]=c,e[10]=d):d=e[10];let u;e[11]!==s.release.deploy?(u=t.jsx("span",{className:"font-mono",children:s.release.deploy}),e[11]=s.release.deploy,e[12]=u):u=e[12];let g;e[13]!==s.release.deployed_at?(g=s.release.deployed_at?ee(s.release.deployed_at):"never deployed",e[13]=s.release.deployed_at,e[14]=g):g=e[14];const O=`${g}${s.release.name?` · ${s.release.name}`:""}${s.release.previous_ref?` · after ${s.release.previous_ref}`:""}`;let f;e[15]!==r||e[16]!==i||e[17]!==s.release.deploy_id?(f=s.release.deploy_id&&t.jsx(Z,{asChild:!0,variant:"outline",size:"sm",children:t.jsx(K,{href:Y(r,i,s.release.deploy_id),children:"Deploy"})}),e[15]=r,e[16]=i,e[17]=s.release.deploy_id,e[18]=f):f=e[18];let h;e[19]!==u||e[20]!==O||e[21]!==f?(h=t.jsx(J,{withWindow:!1,title:u,description:O,actions:f}),e[19]=u,e[20]=O,e[21]=f,e[22]=h):h=e[22];const D=s.release.previous_ref?`vs ${s.release.previous_ref}`:void 0;let y;e[23]!==s.previous_summary||e[24]!==s.summary||e[25]!==D?(y=t.jsx(re,{health:s.summary,previous:s.previous_summary,deltaCaption:D}),e[23]=s.previous_summary,e[24]=s.summary,e[25]=D,e[26]=y):y=e[26];let p;e[27]!==s.summary.sessions?(p=R(s.summary.sessions),e[27]=s.summary.sessions,e[28]=p):p=e[28];let x;e[29]!==s.series?(x=t.jsx(V,{data:s.series}),e[29]=s.series,e[30]=x):x=e[30];let _;e[31]!==p||e[32]!==x?(_=t.jsx(G,{label:"Sessions by status",value:p,children:x}),e[31]=p,e[32]=x,e[33]=_):_=e[33];let S;e[34]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(q,{children:t.jsx(B,{children:"Issues first seen in this release"})}),e[34]=S):S=e[34];let k;e[35]===Symbol.for("react.memo_cache_sentinel")?(k={title:"No new issues in this release",description:"Issues first seen while this release was live would show here."},e[35]=k):k=e[35];let j;e[36]!==s.new_issues?(j=t.jsxs(M,{children:[S,t.jsx(T,{children:t.jsx(H,{rows:s.new_issues,empty:k})})]}),e[36]=s.new_issues,e[37]=j):j=e[37];let N;e[38]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(q,{children:t.jsx(B,{children:"Issues resolved in this release"})}),e[38]=N):N=e[38];let C;e[39]===Symbol.for("react.memo_cache_sentinel")?(C={title:"No issues marked resolved in this release",description:"Issues resolved and tagged with this deploy would show here."},e[39]=C):C=e[39];let v;e[40]!==s.resolved_issues?(v=t.jsxs(M,{children:[N,t.jsx(T,{children:t.jsx(H,{rows:s.resolved_issues,empty:C})})]}),e[40]=s.resolved_issues,e[41]=v):v=e[41];let w;e[42]!==j||e[43]!==v?(w=t.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[j,v]}),e[42]=j,e[43]=v,e[44]=w):w=e[44];let $;e[45]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx("h2",{className:"text-sm font-semibold",children:"Sessions"}),e[45]=$):$=e[45];let E,I;e[46]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(A,{icon:ie,title:"No sessions reported for this release",description:"Sessions come from the browser client and the gem's request middleware; config.track_sessions turns both off."}),I=[{key:"id",header:"Session",cell:xe},{key:"source",hideOnMobile:!0,header:"Source",cell:pe},{key:"status",header:"Status",cell:ye},{key:"user",hideOnMobile:!0,header:"User",cell:he},{key:"duration",header:"Duration",align:"right",cell:fe},{key:"activity",hideOnMobile:!0,header:"Requests / visits",align:"right",cell:ue},{key:"errors",hideOnMobile:!0,header:"Errors",align:"right",cell:de},{key:"started",header:"Started",align:"right",cell:ce}],e[46]=E,e[47]=I):(E=e[46],I=e[47]);let b;e[48]!==s.sessions?(b=t.jsx(z,{rows:s.sessions,rowKey:je,rowClassName:_e,empty:E,columns:I}),e[48]=s.sessions,e[49]=b):b=e[49];let P;return e[50]!==s.release.ref||e[51]!==y||e[52]!==_||e[53]!==w||e[54]!==b||e[55]!==d||e[56]!==h?(P=t.jsxs(Q,{title:a,crumbs:d,children:[h,y,_,w,$,b]}),e[50]=s.release.ref,e[51]=y,e[52]=_,e[53]=w,e[54]=b,e[55]=d,e[56]=h,e[57]=P):P=e[57],P}function ce(s){return te(s.started_at)}function de(s){return t.jsx("span",{className:s.errors?"text-destructive":"",children:R(s.errors)})}function ue(s){return`${R(s.requests)} / ${R(s.visits)}`}function fe(s){return se(s.duration)}function he(s){return t.jsx("span",{className:"font-mono text-xs",children:s.user_ref})}function ye(s){return t.jsx("span",{className:s.status==="crashed"?"text-destructive text-xs font-semibold":"text-xs",children:s.status})}function pe(s){return t.jsx("span",{className:"text-xs",children:s.source})}function xe(s){return t.jsx("span",{className:"font-mono text-xs",children:s.session_id})}function _e(s){return s.status==="crashed"?"bg-destructive/5":void 0}function je(s){return s.id}export{Ue as default};
|