limit: 10000 filter: { ${R}_geq: $since, ${R}_lt: $until } ) { dimensions { timeslot: ${R} } uniq { uniques } sum { browserMap { pageViews key: uaBrowserFamily } bytes cachedBytes cachedRequests contentTypeMap { bytes requests key: edgeResponseContentTypeName } clientSSLMap { requests key: clientSSLProtocol } countryMap { bytes requests threats key: clientCountryName } encryptedBytes encryptedRequests ipClassMap { requests key: ipType } pageViews requests responseStatusMap { requests key: edgeResponseStatus } threats threatPathingMap { requests key: threatPathingName } } } } } } `,b=($,R)=>t()` query GetColoAnalytics($zoneTag: string, $since: string, $until: string) { viewer { zones(filter: { zoneTag: $zoneTag }) { colos: ${$}( orderBy: [${R}_ASC, coloCode_ASC] limit: 10000 filter: { ${R}_geq: $since, ${R}_lt: $until } ) { dimensions { coloCode timeslot: ${R} } sum { bytes cachedBytes cachedRequests countryMap { requests threats key: clientCountryName } requests responseStatusMap { requests key: edgeResponseStatus } threatPathingMap { requests key: threatPathingName } } } } } } `,j=($,R)=>{let _="httpRequests1mGroups";switch(R==="colos"&&(_="httpRequests1mByColoGroups"),p($)){case 1:return{node:_,timeslot:"datetime",rounding:1e3*60};case 15:return{node:_,timeslot:"datetimeFifteenMinutes",rounding:1e3*60*15};case 30:return{node:_,timeslot:"datetimeHalfOfHour",rounding:1e3*60*30};case 60:_="httpRequests1hGroups";let z="datetime";return R==="colos"&&(_="httpRequests1mByColoGroups",z="datetimeHour"),R==="zonesOverview"&&(z="datetimeHour"),{node:_,timeslot:z,rounding:1e3*60*60};default:return _="httpRequests1dGroups",R==="colos"&&(_="httpRequests1dByColoGroups"),{node:_,timeslot:"date",rounding:1e3*60*60*24}}},v=($,R,_,B)=>new Promise(async(z,Q)=>{const H=j(B,"zones"),F=new Date,K=new Date(F.getTime()-F.getTime()%H.rounding);let W=U(new Date(K.getTime()-1e3*60*B)),G=U(K);H.timeslot==="date"&&(W=W.split("T")[0],G=G.split("T")[0]);try{const J=await(0,d.Z)().query({query:I(H.node,H.timeslot),variables:{zoneTag:_.id,since:W,until:G}});z({body:h("zones",J,B,W,G)})}catch{Q()}}),l=(0,i.C)("httpStats").post`/graphql`.apiFetch(v),u=(0,i.C)("geographyHttpAnalytics").post`/graphql`.apiFetch(v),C=(0,i.C)("performanceHttpAnalytics").post`/graphql`.apiFetch(v),P=(0,i.C)("securityHttpAnalytics").post`/graphql`.apiFetch(v),S=(0,i.C)("shareStats").post`/graphql`.apiFetch(v),x=(0,i.C)("colosStats").post`/graphql`.apiFetch(($,R,_,B)=>new Promise(async(z,Q)=>{const H=j(B,"colos"),F=new Date,K=new Date(F.getTime()-F.getTime()%H.rounding);let W=U(new Date(K.getTime()-1e3*60*B)),G=U(K);H.timeslot==="date"&&(W=W.split("T")[0],G=G.split("T")[0]);try{const J=await(0,d.Z)().query({query:b(H.node,H.timeslot),variables:{zoneTag:_.id,since:W,until:G}});z({body:h("colos",J,B,W,G)})}catch{Q()}})),U=$=>{const R=$.getUTCMinutes(),_=$.getUTCHours(),B=$.getUTCDate(),z=$.getUTCMonth()+1;return $.getUTCFullYear()+"-"+(z<10?"0":"")+z+"-"+(B<10?"0":"")+B+"T"+(_<10?"0":"")+_+":"+(R<10?"0":"")+R+":00Z"},te=$=>t()` query zoneOverviewAnalytics( $zoneTag: string $filter: httpRequestsOverviewAdaptiveGroupsFilter_InputObject $limit: int64! ) { viewer { zones(filter: { zoneTag: $zoneTag }) { totals: httpRequestsOverviewAdaptiveGroups( limit: 1000 filter: { ${$}_geq: $since, ${$}_lt: $until } ) { sum { visits requests cachedRequests bytes cachedBytes pageViews } } timeslots: httpRequestsOverviewAdaptiveGroups( limit: 1000 filter: { ${$}_geq: $since, ${$}_lt: $until } orderBy: [${$}_ASC] ) { sum { visits requests cachedRequests bytes cachedBytes pageViews } dimensions { timeslot: ${$} } } } } } `,V=($,R)=>({data:{viewer:{zones:[{totals:[{uniq:{uniques:R}}],zones:$.map(_=>({dimensions:{timeslot:_.dimensions.timeslot},sum:{browserMap:[],bytes:_.sum.bytes,cachedBytes:_.sum.cachedBytes,cachedRequests:_.sum.cachedRequests,clientSSLMap:[],contentTypeMap:[],countryMap:[],encryptedBytes:0,encryptedRequests:0,ipClassMap:[],pageViews:_.sum.pageViews,requests:_.sum.requests,responseStatusMap:[],threatPathingMap:[],threats:0},uniq:{uniques:_.sum.visits}}))}]}},errors:null}),se=($,R,_,B)=>new Promise(async(z,Q)=>{const H=j(B,"zonesOverview"),F=new Date,K=new Date(F.getTime()-F.getTime()%H.rounding);let W=U(new Date(K.getTime()-1e3*60*B)),G=U(K);H.timeslot==="date"&&(W=W.split("T")[0],G=G.split("T")[0]);try{const J=await(0,d.Z)().query({query:te(H.timeslot),variables:{zoneTag:_.id,since:W,until:G}}),Ee=V(J.data.viewer.zones[0].timeslots,J.data.viewer.zones[0].totals[0].sum.visits);z({body:h("zones",Ee,B,W,G)})}catch{Q()}}),Y=(0,i.C)("httpStatsOverview").post`/graphql`.apiFetch(se)},"../react/common/components/CenteredLoading/CenteredLoading.tsx":function(pe,w,e){var r=e("webpack/sharing/consume/default/react/react"),t=e.n(r),i=e("../../../../node_modules/@cloudflare/component-loading/es/index.js"),d=e("../node_modules/@cloudflare/elements/es/index.js"),m=e("../react/utils/translator.tsx");const T=({showLabel:g=!0,size:N="2x"})=>t().createElement(d.ZC,{textAlign:"center",my:4,"data-testid":"centered_loading.wrapper"},t().createElement(i.g,{size:N}),g&&t().createElement(d.ZC,{pt:4},t().createElement(m.cC,{id:"common.loading"})));w.Z=T},"../react/common/components/ClickToCopyMenuOption/ClickToCopyMenuOption.tsx":function(pe,w,e){e.d(w,{w:function(){return N}});var r=e("webpack/sharing/consume/default/react/react"),t=e.n(r),i=e("../../../../node_modules/copy-to-clipboard/index.js"),d=e.n(i),m=e("../node_modules/@cloudflare/component-button/es/index.js"),T=e("../../../../node_modules/@cloudflare/component-icon/es/index.js"),g=e("../node_modules/@cloudflare/elements/es/index.js");const N=({value:L,onClick:f,displayText:M,copiedDisplayText:h})=>{const[p,E]=(0,r.useState)(!1),O=D=>{var I;D.stopPropagation(),D.preventDefault(),(I=D.nativeEvent)===null||I===void 0||I.stopImmediatePropagation,d()(L),E(!0),f==null||f()};return t().createElement(m.kG,{onMouseDown:O,onClick:O},t().createElement(g.ZC,{display:"flex",gap:1},p?h:M,t().createElement(T.J,{type:p?"ok":"copy"})))}},"../react/common/components/CollapseWithTitle.jsx":function(pe,w,e){var r=e("../../../../node_modules/prop-types/index.js"),t=e.n(r),i=e("webpack/sharing/consume/default/react/react"),d=e.n(i),m=e("../../../../node_modules/react-collapse/lib/index.js"),T=e.n(m),g=e("../../../../node_modules/@cloudflare/style-container/es/index.js"),N=e("../node_modules/@cloudflare/component-link/es/index.js");function L(p,E,O){return E=f(E),E in p?Object.defineProperty(p,E,{value:O,enumerable:!0,configurable:!0,writable:!0}):p[E]=O,p}function f(p){var E=M(p,"string");return typeof E=="symbol"?E:String(E)}function M(p,E){if(typeof p!="object"||p===null)return p;var O=p[Symbol.toPrimitive];if(O!==void 0){var D=O.call(p,E||"default");if(typeof D!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(p)}class h extends i.Component{constructor(E){super(E);L(this,"handleClick",()=>{const O=this.props.onToggle&&(()=>this.props.onToggle(this.state.isOpen));this.setState({isOpen:!this.state.isOpen},O)}),this.state={isO