File: //opt/netdata/usr/local/share/netdata/web/v3/5704.1bd4585900dfde02d262.chunk.js
try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dd9b6a26-f61d-47ae-9ba5-849966d46971",e._sentryDebugIdIdentifier="sentry-dbid-dd9b6a26-f61d-47ae-9ba5-849966d46971")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"308e05243fdcbf0860dca704fb35dd3b8481eaf7"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[5704,7281],{900:(e,t)=>{"use strict";var r=[128065],n="f06e",o="M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z";t.mw={prefix:"fas",iconName:"eye",icon:[576,512,r,n,o]},t.pS=t.mw},7281:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,dropInFlavour:()=>l});r(98992),r(23215),r(54520),r(37550);var n=r(96540),o=r(43375),i=r(74848);const a={activationConstraint:{delay:50,tolerance:10}},l={dropArea:"dropArea",dashboard:"dashboard",self:"self"},s=e=>{let{children:t}=e;const r=(0,n.useCallback)((e=>{const{active:t}=e,{isResizer:r,itemId:n,itemContainerId:i,rootId:a,navigationTab:l}=t.data.current||{};if(l)return(0,o.fp)({...e,droppableContainers:e.droppableContainers.filter((e=>e.data.current.sortable&&e.data.current.navigationTab))});if(r){const r=e.droppableRects.get(n)||e.droppableRects.get(`${a}-${n}`);return(0,o.Qo)({...e,collisionRect:{...r,...t.rect.current.translated&&{width:r.width+(t.rect.current.translated.right-t.rect.current.initial.right),height:r.height+(t.rect.current.translated.bottom-t.rect.current.initial.bottom)}},droppableContainers:e.droppableContainers.filter((e=>!e.data.current?.isContainer&&e.data.current.itemContainerId===i))})}let s,c=e.droppableContainers.filter((e=>e.data.current.droppable));if(c.length){if(s=(0,o.TT)({...e,droppableContainers:c}),s.length>0||c.every((e=>e.data.current.onlyPointerWithin)))return s;if(s=(0,o.Qo)({...e,droppableContainers:c.filter((e=>!e.data.current.onlyPointerWithin))}),s.length>0)return s}if(c=e.droppableContainers.filter((e=>e.data.current.dropArea)),s=(0,o.Qo)({...e,droppableContainers:c}),s.length>0){const t=(0,o.TT)({...e,droppableContainers:c.filter((e=>s.some((t=>t.id===e.id))))});if(t.length>0)return t}const u=(0,o.TT)({...e,droppableContainers:e.droppableContainers.filter((e=>!(e.data.current?.isResizer||e.id===n)))});return u.length>0?u:(0,o.fp)({...e,droppableContainers:e.droppableContainers.filter((e=>!(e.data.current?.isResizer||e.id===n)))})}),[]),l=(0,o.FR)((0,o.MS)(o.cA,a),(0,o.MS)(o.IG,a));return(0,i.jsx)(o.Mp,{sensors:l,collisionDetection:r,measuring:{droppable:{strategy:o.Pf.Always},draggable:{measure:o.Sj}},autoScroll:!1,children:t})}},12273:(e,t,r)=>{"use strict";r.d(t,{FU:()=>a,RV:()=>l,vE:()=>c,yB:()=>s});var n=r(33185),o=r(86177),i=r(74848);const a=n.default.div.withConfig({displayName:"styled__TokenContainer",componentId:"sc-s1axew-0"})(["display:flex;flex-direction:column;align-items:center;color:",";background:",";border:1px solid ",";border-radius:2px;overflow-wrap:anywhere;white-space:pre-wrap;padding:23px 27px 14px;width:100%;font-family:monospace;letter-spacing:0.09px;line-height:18px;font-size:14px;word-break:break-word;"],(0,o.getColor)("textDescription"),(0,o.getColor)("modalTabsBackground"),(0,o.getColor)("borderSecondary")),l=e=>(0,i.jsx)(o.Box,{...e,as:o.Icon,sx:{borderRadius:"50%",overflow:"hidden",background:(0,o.getColor)(["neutral","white"])}}),s=e=>(0,i.jsx)(o.Text,{...e,color:["neutral","grey35"]}),c=e=>(0,i.jsx)(o.Flex,{...e,as:o.Icon,sx:{alignSelf:"flex-end",cursor:"pointer"}})},28657:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(96540),o=r(22332),i=r(10534),a=r(89380),l=r(25369),s=r(39360),c=r(95662),u=r(99891),d=r(49096),f=r(74487),p=r(45123),b=r(64131),y=(r(98992),r(8872),r(49163));const h=e=>{const t=e.getAttribute("contextScope"),r=e.getAttribute("isHead")?e.getAttribute("id"):t.join(","),o=(0,y._)({params:{type:["annotation"],entity:[r,"global"]}});(0,n.useEffect)((()=>{if(!e||!o?.length)return;const t=e.getAttribute("overlays"),r=o.reduce(((e,t)=>{const r={...t.value,settingId:t.id,type:"annotation"};return e[r.id]=r,e}),{});e.updateAttribute("overlays",{...t,...r})}),[o,e])};var g=r(74848);const v=(0,i.default)((e=>{let{width:t,height:r,...n}=e;return(0,g.jsx)(a.ChartWrapper,{width:t,height:r,children:(0,g.jsx)(b.Line,{hasHeader:!1,hasFilters:!1,hasFooter:!1,width:t,height:r,...n})})}),{tile:!0}),m={dygraph:b.default,easypiechart:u.Ay,gauge:s.Ay,number:d.Ay,groupBoxes:l.Ay,d3pie:c.Ay,bars:f.Ay,table:e=>(0,g.jsx)(p.Ay,{hasFilters:!1,...e})},w=e=>{const t=(0,o.useChart)(),r=(0,o.useAttributeValue)("sparkline"),i=(0,o.useAttributeValue)("chartLibrary");h(t);const a=(0,n.useMemo)((()=>t?r?v:m[i]:null),[t,i,r]);return a?(0,g.jsx)(a,{...e,chart:t}):null},x=(0,o.withChartProvider)((0,n.memo)(w))},31481:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(88934),o=r(40910),i=r(45706),a=r(1623),l=r(60959),s=r(7281),c=r(74848);const u=e=>{let{spaceId:t,roomId:r}=e;const{dashboardId:u}=(0,n.g)();return(0,i.A)(u,{spaceId:t,roomId:r})?(0,c.jsx)(a.A,{}):(0,c.jsx)(s.default,{children:(0,c.jsx)(l.A,{children:(0,c.jsx)(o.J,{id:u,roomId:r,nodeIds:[],isOnTV:!0})})})}},31800:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},51571:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(86177),o=r(99728),i=r(74848);const a=e=>{let{ifForbidden:t="disabled",permission:r,spaceId:a,Component:l=n.Button,ref:s,...c}=e;const u=(0,o.JT)(r,a);return"hide"!==t||u?(0,i.jsx)(l,{ref:s,disabled:"disabled"===t&&!u||c.disabled,...c}):null}},54128:(e,t,r)=>{var n=r(31800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},54924:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,l={__proto__:null,default:e};if(null===e||"object"!=n(e)&&"function"!=typeof e)return l;if(i=t?o:r){if(i.has(e))return i.get(e);i.set(e,l)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(a.get||a.set)?i(l,s,a):l[s]=e[s]);return l}(e,t)}(r(96540)),i=r(86177),a=u(r(86263)),l=u(r(33640)),s=r(74848),c=["text","Component","noTooltip","ref"];function u(e){return e&&e.__esModule?e:{default:e}}function d(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 f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}(e,t)||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 y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}t.default=function(e){var t=e.text,r=e.Component,n=void 0===r?"div":r,u=e.noTooltip,d=e.ref,p=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,c),y=b((0,o.useState)(""),2),h=y[0],g=y[1],v=b((0,o.useState)(),2),m=v[0],w=v[1];return(0,o.useEffect)((function(){if(m){for(var e=m.offsetWidth,r=0;m.scrollWidth>e;)m.textContent=(0,a.default)(m.textContent,r),r+=1;m.textContent!==t&&g(t)}}),[t,m]),(0,s.jsx)(l.default,{content:!u&&h?t:"",align:"bottom",isBasic:!0,children:(0,s.jsx)(n,f(f({truncate:!0,ref:(0,i.mergeRefs)(d,w)},p),{},{children:t}))})}},60959:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(86177),o=r(10444),i=r(74848);const a=e=>{let{children:t}=e;return(0,o.J)()?(0,i.jsx)(n.Layer,{full:!0,children:(0,i.jsx)(n.Flex,{width:"100%",background:"mainBackground","data-testid":"mobileContainer",children:t})}):t}},62672:(e,t)=>{"use strict";var r=[128683,"cancel"],n="f05e",o="M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z";t.mw={prefix:"fas",iconName:"ban",icon:[512,512,r,n,o]},t.Df=t.mw},67916:(e,t,r)=>{"use strict";r.d(t,{Ey:()=>o,li:()=>i,ni:()=>a});var n=r(91130);const o=e=>{let{description:t,scope:r}=e;return n.A.post("/api/v1/auth/account/api-token",{description:t,scopes:[r]})},i=()=>n.A.get("/api/v1/auth/account/api-token"),a=e=>n.A.delete(`/api/v1/auth/account/api-token/${e}`)},78659:(e,t,r)=>{var n=r(87133),o=r(99374);e.exports=function(e,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=o(r))===r?r:0),void 0!==t&&(t=(t=o(t))===t?t:0),n(o(e),t,r)}},85660:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(96540);const o={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0},i=function(){let{callback:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,r]=(0,n.useState)(null),[i,a]=(0,n.useState)(o),l=(0,n.useMemo)((()=>new window.ResizeObserver((t=>{if(t[0]){const{x:r,y:n,width:o,height:i,top:l,left:s,bottom:c,right:u}=t[0].contentRect;a({x:r,y:n,width:o,height:i,top:l,left:s,bottom:c,right:u}),"function"===typeof e&&e(t[0].contentRect)}}))),[e]);return(0,n.useLayoutEffect)((()=>{if(t)return l.observe(t),()=>{l.disconnect()}}),[t]),[r,i]}},87133:e=>{e.exports=function(e,t,r){return e===e&&(void 0!==r&&(e=e<=r?e:r),void 0!==t&&(e=e>=t?e:t)),e}},99374:(e,t,r)=>{var n=r(54128),o=r(23805),i=r(44394),a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||s.test(e)?c(e.slice(2),r?2:8):a.test(e)?NaN:+e}}}]);