!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?t(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function n(t,r,n){var i;return i=function(t,r){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,r||"default");if("object"!=e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(r,"string"),(r="symbol"==e(i)?i:String(i))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}System.register(["./index-legacy-DF2p3puw.js","./query-hooks-legacy-C5ePN5-y.js"],(function(e,t){"use strict";var n,i,s,a,c,l,o,d,u;return{setters:[function(e){n=e.r,i=e.t,s=e.j,a=e.a,c=e.n,l=e.p,o=e.b},function(e){d=e.a,u=e.u}],execute:function(){e("default",(function(){var e=d(),t=u(),j=n.useMemo((function(){var e=new Date;return e.setDate(e.getDate()-t),e}),[t]),h=i.builds.allTimelineStats.useQuery(r(r({},e),{},{queryFrom:j}));return h.data?s.jsxs(s.Fragment,{children:[s.jsx("h2",{children:"Analysed ".concat(c(h.data.count)," runs")}),s.jsxs("div",{className:"flex gap-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl",children:"Slowest tasks"}),s.jsxs("table",{className:"table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("td",{children:"Name"}),s.jsx("td",{children:"Time taken"})]})}),s.jsx("tbody",{children:h.data.slowest.map((function(e){return s.jsxs("tr",{children:[s.jsx("td",{children:e.name}),s.jsx("td",{children:l(e.time)})]},e.name)}))})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl",children:"High failure rate"}),0===h.data.failing.length?"No stages failed > 5% of the time":s.jsxs("table",{className:"table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("td",{children:"Name"}),s.jsx("td",{children:"Failure rate"})]})}),s.jsx("tbody",{children:h.data.failing.map((function(e){return s.jsxs("tr",{children:[s.jsx("td",{children:e.name}),s.jsx("td",{children:o(e.failureRate)})]},e.name)}))})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl",children:"Frequently skipped"}),s.jsxs("table",{className:"table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("td",{children:"Name"}),s.jsx("td",{children:"Time taken"})]})}),s.jsx("tbody",{children:h.data.skipped.map((function(e){return s.jsxs("tr",{children:[s.jsx("td",{children:e.name}),s.jsx("td",{children:o(e.skippedPercentage)})]},e.name)}))})]})]})]})]}):s.jsx(a,{})}))}}}))}();
