PageSourceSearch

https://www.uniprot.org/legacy.blast-result-hit-distribution.6259ca.js

js uniprot.org collected 2026-09-24 08:35:35 UTC 2,645 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkuniprot_website=self.webpackChunkuniprot_website||[]).push([[1990],{92686(t,e,r){r.r(e),r.d(e,{default:()=>d}),r(65302),r(14758),r(99488),r(36883),r(64317),r(14211),r(66993),r(8293),r(74495),r(35737),r(67622),r(38660),r(36343),r(36630),r(33768),r(5617),r(25800),r(2851),r(4514);var n=r(97500),a=r.n(n),u=r(36371),l=r(71763),i=r(53997),o=r(14847),s=r(91987);function c(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,a,u,l,i=[],o=!0,s=!1;try{if(u=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;o=!1}else for(;!(o=(n=u.call(r)).done)&&(i.push(n.value),i.length!==e);o=!0);}catch(t){s=!0,a=t}finally{try{if(!o&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(s)throw a}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r={}.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)?f(t,e):void 0}}(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 f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var h=["auto",5,10,25,50,100];const d=function(t){var e=t.loading,r=t.allHits,n=t.filteredHits,f=c((0,l.useState)("auto"),2),d=f[0],m=f[1],b=(0,l.useMemo)(function(){return(0,o.Sm)(n||[])},[n]),v=(0,l.useRef)(b);!b[i.Y.SCORE].length&&e||(v.current=b);var y=c((0,l.useMemo)(function(){var t=(0,o.Sm)(r);return[t,(0,o.gW)(r),Math.ceil(Math.sqrt(t[i.Y.SCORE].length))]},[r]),3),g=y[0],p=y[1],j=y[2];return e&&!v.current[i.Y.SCORE].length?(0,s.jsx)(u.aH,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("fieldset",{className:"nbin-selection",children:(0,s.jsxs)("label",{children:["Number of bins:"," ",(0,s.jsx)("select",{value:d,onChange:function(t){return m("auto"===t.target.value?t.target.value:+t.target.value)},children:h.map(function(t){return(0,s.jsxs)("option",{value:t,children:[t,"auto"===t&&" (".concat(j,")")]},t)})})]})}),Object.entries(v.current).map(function(t){var e=c(t,2),r=e[0],n=e[1],l=p[r],i=l.min,o=l.max;return i===o?null:(0,s.jsx)("div",{className:a()("blast-result-hit-distribution",r),children:(0,s.jsx)(u.dq,{values:n,unfilteredValues:g[r],nBins:"auto"===d?j:d,min:i,max:o,xLabel:r,yLabel:"hits",unfilteredValuesShadow:.2})},r)})]})}}}]);
2//# sourceMappingURL=legacy.blast-result-hit-distribution.6259ca.js.map

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.