MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/opt/netdata/netdata-web-files/v3/2882.fc35f500f78f0fdf470d.chunk.js
!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};t.SENTRY_RELEASE={id:"9170653e16c97eceaa1ad9e3f6f38e5725ee9d53"};var e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7a9341a2-2c2d-4903-935a-757ccbe1ae05",t._sentryDebugIdIdentifier="sentry-dbid-7a9341a2-2c2d-4903-935a-757ccbe1ae05")}catch(t){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[2882],{22882(t,e,s){s.d(e,{A:()=>l});const n=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class i{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[e,s]=new Uint8Array(t,0,2);if(219!==e)throw new Error("Data does not appear to be in a KDBush format.");const o=s>>4;if(1!==o)throw new Error(`Got v${o} data when expected v1.`);const r=n[15&s];if(!r)throw new Error("Unrecognized array type.");const[a]=new Uint16Array(t,2,1),[h]=new Uint32Array(t,4,1);return new i(h,a,r,t)}constructor(t,e=64,s=Float64Array,i){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=s,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const o=n.indexOf(this.ArrayType),r=2*t*this.ArrayType.BYTES_PER_ELEMENT,a=t*this.IndexArrayType.BYTES_PER_ELEMENT,h=(8-a%8)%8;if(o<0)throw new Error(`Unexpected typed array class: ${s}.`);i&&i instanceof ArrayBuffer?(this.data=i,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+a+h,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+r+a+h),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+a+h,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+o]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,4,1)[0]=t)}add(t,e){const s=this._pos>>1;return this.ids[s]=s,this.coords[this._pos++]=t,this.coords[this._pos++]=e,s}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return o(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,s,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:o,nodeSize:r}=this,a=[0,i.length-1,0],h=[];for(;a.length;){const c=a.pop()||0,d=a.pop()||0,u=a.pop()||0;if(d-u<=r){for(let r=u;r<=d;r++){const a=o[2*r],c=o[2*r+1];a>=t&&a<=s&&c>=e&&c<=n&&h.push(i[r])}continue}const p=u+d>>1,l=o[2*p],f=o[2*p+1];l>=t&&l<=s&&f>=e&&f<=n&&h.push(i[p]),(0===c?t<=l:e<=f)&&(a.push(u),a.push(p-1),a.push(1-c)),(0===c?s>=l:n>=f)&&(a.push(p+1),a.push(d),a.push(1-c))}return h}within(t,e,s){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:n,coords:i,nodeSize:o}=this,r=[0,n.length-1,0],a=[],h=s*s;for(;r.length;){const d=r.pop()||0,u=r.pop()||0,p=r.pop()||0;if(u-p<=o){for(let s=p;s<=u;s++)c(i[2*s],i[2*s+1],t,e)<=h&&a.push(n[s]);continue}const l=p+u>>1,f=i[2*l],m=i[2*l+1];c(f,m,t,e)<=h&&a.push(n[l]),(0===d?t-s<=f:e-s<=m)&&(r.push(p),r.push(l-1),r.push(1-d)),(0===d?t+s>=f:e+s>=m)&&(r.push(l+1),r.push(u),r.push(1-d))}return a}}function o(t,e,s,n,i,a){if(i-n<=s)return;const h=n+i>>1;r(t,e,h,n,i,a),o(t,e,s,n,h-1,1-a),o(t,e,s,h+1,i,1-a)}function r(t,e,s,n,i,o){for(;i>n;){if(i-n>600){const a=i-n+1,h=s-n+1,c=Math.log(a),d=.5*Math.exp(2*c/3),u=.5*Math.sqrt(c*d*(a-d)/a)*(h-a/2<0?-1:1);r(t,e,s,Math.max(n,Math.floor(s-h*d/a+u)),Math.min(i,Math.floor(s+(a-h)*d/a+u)),o)}const h=e[2*s+o];let c=n,d=i;for(a(t,e,n,s),e[2*i+o]>h&&a(t,e,n,i);c<d;){for(a(t,e,c,d),c++,d--;e[2*c+o]<h;)c++;for(;e[2*d+o]>h;)d--}e[2*n+o]===h?a(t,e,n,d):(d++,a(t,e,d,i)),d<=s&&(n=d+1),s<=d&&(i=d-1)}}function a(t,e,s,n){h(t,s,n),h(e,2*s,2*n),h(e,2*s+1,2*n+1)}function h(t,e,s){const n=t[e];t[e]=t[s],t[s]=n}function c(t,e,s,n){const i=t-s,o=e-n;return i*i+o*o}const d={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},u=Math.fround||(p=new Float32Array(1),t=>(p[0]=+t,p[0]));var p;class l{constructor(t){this.options=Object.assign(Object.create(d),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:s,maxZoom:n}=this.options;e&&console.time("total time");const i=`prepare ${t.length} points`;e&&console.time(i),this.points=t;const o=[];for(let a=0;a<t.length;a++){const e=t[a];if(!e.geometry)continue;const[s,n]=e.geometry.coordinates,i=u(g(s)),r=u(y(n));o.push(i,r,1/0,a,-1,1),this.options.reduce&&o.push(0)}let r=this.trees[n+1]=this._createTree(o);e&&console.timeEnd(i);for(let a=n;a>=s;a--){const t=+Date.now();r=this.trees[a]=this._createTree(this._cluster(r,a)),e&&console.log("z%d: %d clusters in %dms",a,r.numItems,+Date.now()-t)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let s=((t[0]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,t[1]));let i=180===t[2]?180:((t[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)s=-180,i=180;else if(s>i){const t=this.getClusters([s,n,180,o],e),r=this.getClusters([-180,n,i,o],e);return t.concat(r)}const r=this.trees[this._limitZoom(e)],a=r.range(g(s),y(o),g(i),y(n)),h=r.data,c=[];for(const d of a){const t=this.stride*d;c.push(h[t+5]>1?f(h,t,this.clusterProps):this.points[h[t+3]])}return c}getChildren(t){const e=this._getOriginId(t),s=this._getOriginZoom(t),n="No cluster with the specified id.",i=this.trees[s];if(!i)throw new Error(n);const o=i.data;if(e*this.stride>=o.length)throw new Error(n);const r=this.options.radius/(this.options.extent*Math.pow(2,s-1)),a=o[e*this.stride],h=o[e*this.stride+1],c=i.within(a,h,r),d=[];for(const u of c){const e=u*this.stride;o[e+4]===t&&d.push(o[e+5]>1?f(o,e,this.clusterProps):this.points[o[e+3]])}if(0===d.length)throw new Error(n);return d}getLeaves(t,e,s){e=e||10,s=s||0;const n=[];return this._appendLeaves(n,t,e,s,0),n}getTile(t,e,s){const n=this.trees[this._limitZoom(t)],i=Math.pow(2,t),{extent:o,radius:r}=this.options,a=r/o,h=(s-a)/i,c=(s+1+a)/i,d={features:[]};return this._addTileFeatures(n.range((e-a)/i,h,(e+1+a)/i,c),n.data,e,s,i,d),0===e&&this._addTileFeatures(n.range(1-a/i,h,1,c),n.data,i,s,i,d),e===i-1&&this._addTileFeatures(n.range(0,h,a/i,c),n.data,-1,s,i,d),d.features.length?d:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const s=this.getChildren(t);if(e++,1!==s.length)break;t=s[0].properties.cluster_id}return e}_appendLeaves(t,e,s,n,i){const o=this.getChildren(e);for(const r of o){const e=r.properties;if(e&&e.cluster?i+e.point_count<=n?i+=e.point_count:i=this._appendLeaves(t,e.cluster_id,s,n,i):i<n?i++:t.push(r),t.length===s)break}return i}_createTree(t){const e=new i(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let s=0;s<t.length;s+=this.stride)e.add(t[s],t[s+1]);return e.finish(),e.data=t,e}_addTileFeatures(t,e,s,n,i,o){for(const r of t){const t=r*this.stride,a=e[t+5]>1;let h,c,d;if(a)h=m(e,t,this.clusterProps),c=e[t],d=e[t+1];else{const s=this.points[e[t+3]];h=s.properties;const[n,i]=s.geometry.coordinates;c=g(n),d=y(i)}const u={type:1,geometry:[[Math.round(this.options.extent*(c*i-s)),Math.round(this.options.extent*(d*i-n))]],tags:h};let p;p=a||this.options.generateId?e[t+3]:this.points[e[t+3]].id,void 0!==p&&(u.id=p),o.features.push(u)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const{radius:s,extent:n,reduce:i,minPoints:o}=this.options,r=s/(n*Math.pow(2,e)),a=t.data,h=[],c=this.stride;for(let d=0;d<a.length;d+=c){if(a[d+2]<=e)continue;a[d+2]=e;const s=a[d],n=a[d+1],u=t.within(a[d],a[d+1],r),p=a[d+5];let l=p;for(const t of u){const s=t*c;a[s+2]>e&&(l+=a[s+5])}if(l>p&&l>=o){let t,o=s*p,r=n*p,f=-1;const m=(d/c<<5)+(e+1)+this.points.length;for(const s of u){const n=s*c;if(a[n+2]<=e)continue;a[n+2]=e;const h=a[n+5];o+=a[n]*h,r+=a[n+1]*h,a[n+4]=m,i&&(t||(t=this._map(a,d,!0),f=this.clusterProps.length,this.clusterProps.push(t)),i(t,this._map(a,n)))}a[d+4]=m,h.push(o/l,r/l,1/0,m,-1,l),i&&h.push(f)}else{for(let t=0;t<c;t++)h.push(a[d+t]);if(l>1)for(const t of u){const s=t*c;if(!(a[s+2]<=e)){a[s+2]=e;for(let t=0;t<c;t++)h.push(a[s+t])}}}}return h}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,s){if(t[e+5]>1){const n=this.clusterProps[t[e+6]];return s?Object.assign({},n):n}const n=this.points[t[e+3]].properties,i=this.options.map(n);return s&&i===n?Object.assign({},i):i}}function f(t,e,s){return{type:"Feature",id:t[e+3],properties:m(t,e,s),geometry:{type:"Point",coordinates:[(n=t[e],360*(n-.5)),w(t[e+1])]}};var n}function m(t,e,s){const n=t[e+5],i=n>=1e4?`${Math.round(n/1e3)}k`:n>=1e3?Math.round(n/100)/10+"k":n,o=t[e+6],r=-1===o?{}:Object.assign({},s[o]);return Object.assign(r,{cluster:!0,cluster_id:t[e+3],point_count:n,point_count_abbreviated:i})}function g(t){return t/360+.5}function y(t){const e=Math.sin(t*Math.PI/180),s=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return s<0?0:s>1?1:s}function w(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}}}]);