1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a93f70b0-b004-4fd4-ac81-bb1fd576be69",e._sentryDebugIdIdentifier="sentry-dbid-a93f70b0-b004-4fd4-ac81-bb1fd576be69")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6102],{84011:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/clustering/[slug]",function(){return n(91978)}])},93238:function(e,t,n){"use strict";var r=n(85893);n(67294);var s=n(14104),i=n(44442),o=n(71570);t.Z=function(){let{isSignedOut:e,signIn:t}=(0,i.Z)();return(0,r.jsx)(o.Z,{title:"Forbidden",subtitle:"Sorry, you do not have permissions to access this page",children:e&&(0,r.jsxs)(s.Z,{children:["You may need to"," ",(0,r.jsx)("a",{className:"simple",href:"/signin",onClick:t,children:"sign in"})," ","to access this page."]})})}},5476:function(e,t,n){"use strict";var r=n(85893),s=n(67294),i=n(71570),o=n(44442);let a={page:"page"};t.Z=function(e){var t,n;let{isSignedOut:l,signIn:d}=(0,o.Z)();return(0,r.jsx)(i.Z,{title:"404 Error",subtitle:"We're sorry, this ".concat(null!==(t=e.page)&&void 0!==t?t:a.page," cannot be found."),children:(0,r.jsxs)("p",{children:["Please ensure that the address is correct",l&&(0,r.jsxs)(s.Fragment,{children:[", and if so, you may need to"," ",(0,r.jsx)("a",{className:"simple",href:"/signin",onClick:d,children:"sign in"})," ","to access this"," ",null!==(n=e.page)&&void 0!==n?n:a.page]}),"."]})})}},21270:function(e,t,n){"use strict";var r=n(85893);n(67294);var s=n(45697),i=n.n(s),o=n(79334),a=n(14104),l=n(60517),d=n(71570),u=n(5476),c=n(93238);function g(e){return 404===e.error.statusCode?(0,r.jsx)(u.Z,{page:e.page}):401===e.error.statusCode?(0,r.jsx)(c.Z,{}):(0,r.jsx)(d.Z,{title:"".concat(e.error.statusCode," Error"),subtitle:"Sorry, something went wrong. Please try again later",children:(0,r.jsxs)(o.Z,{textAlign:"center",marginY:3,children:[(0,r.jsx)(a.Z,{color:"textSecondary",marginBottom:2,children:"If this issue persists, please contact support"}),(0,r.jsx)(l.Z,{message:null,error:e.error})]})})}g.propTypes={error:i().shape({message:i().string,stack:i().string})},t.Z=g},76665:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(63366),s=n(87462),i=n(67294),o=n(70828),a=n(34867),l=n(94780),d=n(14142),u=n(29628),c=n(45098),g=n(88647),x=n(85893);let h=["className","component","disableGutters","fixed","maxWidth","classes"],m=(0,g.Z)(),p=(0,c.Z)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${(0,d.Z)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),f=e=>(0,u.Z)({props:e,name:"MuiContainer",defaultTheme:m}),Z=(e,t)=>{let{classes:n,fixed:r,disableGutters:s,maxWidth:i}=e,o={root:["root",i&&`maxWidth${(0,d.Z)(String(i))}`,r&&"fixed",s&&"disableGutters"]};return(0,l.Z)(o,e=>(0,a.ZP)(t,e),n)};var b=n(19189),v=n(25583),j=n(21758),y=function(e={}){let{createStyledComponent:t=p,useThemeProps:n=f,componentName:a="MuiContainer"}=e,l=t(({theme:e,ownerState:t})=>(0,s.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,n)=>{let r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:`${r}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>(0,s.Z)({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}));return i.forwardRef(function(e,t){let i=n(e),{className:d,component:u="div",disableGutters:c=!1,fixed:g=!1,maxWidth:m="lg"}=i,p=(0,r.Z)(i,h),f=(0,s.Z)({},i,{component:u,disableGutters:c,fixed:g,maxWidth:m}),b=Z(f,a);return(0,x.jsx)(l,(0,s.Z)({as:u,ownerState:f,className:(0,o.Z)(b.root,d),ref:t},p))})}({createStyledComponent:(0,v.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t["maxWidth".concat((0,b.Z)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,j.Z)({props:e,name:"MuiContainer"})})},91978:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return N}});var r=n(85893),s=n(67294),i=n(11163),o=n(5152),a=n.n(o),l=n(33299),d=n(49770),u=n(79334),c=n(76665),g=n(77397),x=n(33971),h=n(14104),m=n(71570);function p(){return(0,r.jsx)(m.Z,{title:"Feature limit exceeded",children:(0,r.jsx)(h.Z,{color:"textSecondary",marginBottom:2,children:"Sorry, this number of genomes in this collection exceeds the limit for this feature"})})}var f=n(5476);function Z(){return(0,r.jsx)(m.Z,{title:"Unclustered genome",children:(0,r.jsx)(h.Z,{color:"textSecondary",marginBottom:2,children:"Sorry, this genome is not clustered"})})}var b=n(21270);function v(){return(0,r.jsx)(m.Z,{title:"Unsupported organism",children:(0,r.jsx)(h.Z,{color:"textSecondary",marginBottom:2,children:"Sorry, this feature is not available for this organism"})})}function j(){return(0,r.jsxs)(m.Z,{title:"Unable to process request",children:[(0,r.jsx)(h.Z,{color:"textSecondary",marginBottom:2,children:"We're sorry, it looks like there was an issue with the information you provided"}),(0,r.jsx)(h.Z,{color:"textSecondary",marginBottom:2,children:"Please check your input and try again"})]})}var y=n(82324),k=n(98384),S=n(14500),w=n(99598),C=n(8768),W=n(58340);let _=a()(()=>Promise.all([n.e(3407),n.e(3662),n.e(5443),n.e(7760),n.e(817),n.e(7141),n.e(8783),n.e(3611),n.e(3287),n.e(9511),n.e(2367),n.e(6588),n.e(6579),n.e(7817),n.e(8650),n.e(738),n.e(790),n.e(2866)]).then(n.bind(n,22866)),{ssr:!1,loading:()=>(0,r.jsx)(x.Z,{isLoading:!0})});var N=function(){var e,t;let{status:n}=(0,l.useSession)(),{query:{slug:o,threshold:a}}=(0,i.useRouter)(),{data:h,error:m,isLoading:N}
1=(0,d.Z)(o?"/api/genomes/cluster/details?id=".concat(o,"&threshold=").concat(a,"&includeGenomes=1"):null,W.Z,{keepPreviousData:!0}),[E,P,R]=(0,C.Z)(),I=(null==h?void 0:h.genomeName)?"Clusters of ".concat(h.genomeName):"";return(null==m?void 0:m.statusCode)===404?(0,r.jsx)(f.Z,{}):(null==m?void 0:m.statusCode)===400?(0,r.jsx)(j,{}):m||(null==h?void 0:h.status)==="FAILED"?(0,r.jsx)(b.Z,{error:m}):(null==h?void 0:h.status)==="UNSUPPORTED"?(0,r.jsx)(v,{}):(null==h?void 0:h.status)==="LIMIT"?(0,r.jsx)(p,{}):(null==h?void 0:h.status)==="UNCLUSTERED"?(0,r.jsx)(Z,{}):(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)(k.Z,{pageTitle:I}),!!E&&(0,r.jsx)(S.Z,{genomeUuid:E,onClose:R}),N&&(0,r.jsx)(x.Z,{isLoading:!0}),h&&!N&&!(null==h?void 0:null===(e=h.genomes)||void 0===e?void 0:e.length)&&(0,r.jsx)(c.Z,{children:(0,r.jsx)(y.Z,{message:(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)(u.Z,{marginBottom:4,children:"No genomes"}),"unauthenticated"===n&&(0,r.jsx)(w.Z,{})]}),icon:(0,r.jsx)(g.Z,{})})}),h&&!!(null==h?void 0:null===(t=h.genomes)||void 0===t?void 0:t.length)&&(0,r.jsx)(_,{cluster:h,viewReport:P})]})}}},function(e){e.O(0,[2196,7662,1984,8883,4315,6883,5311,5152,7106,4578,2888,9774,179],function(){return e(e.s=84011)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.