!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function r(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function n(e,r,n){var o;return o=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(r,"string"),(r="symbol"==t(o)?o:String(o))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,l,a=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(s)throw o}}return a}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./index-legacy-DF2p3puw.js","./Icons-legacy-CvLN7pi_.js","./tooltips-legacy-DenaLjW3.js","./query-hooks-legacy-C5ePN5-y.js"],(function(t,e){"use strict";var n,l,a,c,s,u,f;return{setters:[function(t){n=t.j,l=t.r,a=t.d,c=t.b},function(t){s=t.f},function(t){u=t.e},function(t){f=t.u}],execute:function(){var e=function(t,e){return 0!==e&&t[e-1][1].successful<t[e][1].total};t("U",(function(t){var b=t.perEnvUsage,m=t.pipelineCount,y=f(),p=Math.max.apply(Math,i(Object.values(b).map((function(t){return t.total})))),d=Object.entries(b);return n.jsx("div",{className:"grid grid-cols-4 gap-3 items-center",children:d.map((function(t,i){var f=o(t,2),b=f[0],j=f[1],h=j.successful,v=j.total;return n.jsxs(l.Fragment,{children:[n.jsxs("div",r(r({className:"font-semibold text-sm flex items-center justify-end"},e(d,i)?{"data-tooltip-id":"react-tooltip","data-tooltip-html":"\n                  <b>".concat(b," </b>\n                  has more deployments\n                  (<b>").concat(v,"</b>)\n                  than successful\n                  <b> ").concat(d[i-1][0],"</b>\n                  deployments\n                  (<b>").concat(d[i-1][1].successful,"</b>)\n              ")}:{}),{},{children:[e(d,i)&&n.jsx(s,{className:"w-4 h-4 inline-block mr-1"}),b]})),n.jsxs("div",{className:"relative w-full col-span-3","data-tooltip-id":"react-tooltip","data-tooltip-html":u(b,h,v,m),children:[n.jsx("div",{className:"absolute top-0 left-0 h-full bg-lime-200 rounded-r-md border border-lime-300 z-10",style:{width:"".concat(100*v/p,"%")}}),n.jsx("div",{className:"absolute top-0 left-0 h-full bg-lime-500 rounded-r-md z-10",style:{width:"".concat(100*h/p,"%")}}),n.jsxs("div",{className:"text-sm pl-2 py-0.5 z-20 relative",children:[n.jsx("b",{children:a(v,y).map((function(t){return t.toFixed(2).replace(".00","")})).getOr("0")}),n.jsx("span",{className:"text-xs",children:" deploys/day".concat(v>0?", ":"")}),a(h,v).map(c).map((function(t){return n.jsxs(n.Fragment,{children:[n.jsx("b",{children:t}),n.jsx("span",{className:"text-xs",children:" success rate"})]})})).getOr(null)]})]})]},b)}))})}))}}}))}();
