1import"./DF97k95f.js";import{e as A}from"./Ccx1MofX.js";import{h as k,e as w,j as I,l as F}from"./Dp3eVIj_.js";function j(i,o){let f=0;for(let t of i)t!=null&&(t=+t)>=t&&++f;return f}function z(i){return i}var B=Array.prototype,R=B.slice;function V(i){return()=>i}function D(i,o,f){let t;for(;;){const n=k(i,o,f);if(n===t||n===0||!isFinite(n))return[i,o];n>0?(i=Math.floor(i/n)*n,o=Math.ceil(o/n)*n):n<0&&(i=Math.ceil(i*n)/n,o=Math.floor(o*n)/n),t=n}}function L(i){return Math.max(1,Math.ceil(Math.log(j(i))/Math.LN2)+1)}function N(){var i=z,o=A,f=L;function t(n){Array.isArray(n)||(n=Array.from(n));var e,s=n.length,a,m,c=new Array(s);for(e=0;e<s;++e)c[e]=i(n[e],e,n);var g=o(c),r=g[0],u=g[1],l=f(c,r,u);if(!Array.isArray(l)){const M=u,d=+l;if(o===A&&([r,u]=D(r,u,d)),l=w(r,u,d),l[0]<=r&&(m=k(r,u,d)),l[l.length-1]>=u)if(M>=u&&o===A){const v=k(r,u,d);isFinite(v)&&(v>0?u=(Math.floor(u/v)+1)*v:v<0&&(u=(Math.ceil(u*-v)+1)/-v))}else l.pop()}for(var h=l.length,p=0,x=h;l[p]<=r;)++p;for(;l[x-1]>u;)--x;(p||x<h)&&(l=l.slice(p,x),h=x-p);var y=new Array(h+1),b;for(e=0;e<=h;++e)b=y[e]=[],b.x0=e>0?l[e-1]:r,b.x1=e<h?l[e]:u;if(isFinite(m)){if(m>0)for(e=0;e<s;++e)(a=c[e])!=null&&r<=a&&a<=u&&y[Math.min(h,Math.floor((a-r)/m))].push(n[e]);else if(m<0){for(e=0;e<s;++e)if((a=c[e])!=null&&r<=a&&a<=u){const M=Math.floor((r-a)*m);y[Math.min(h,M+(l[M]<=a))].push(n[e])}}}else for(e=0;e<s;++e)(a=c[e])!=null&&r<=a&&a<=u&&y[I(l,a,0,h)].push(n[e]);return y}return t.value=function(n){return arguments.length?(i=typeof n=="function"?n:V(n),t):i},t.domain=function(n){return arguments.length?(o=typeof n=="function"?n:V([n[0],n[1]]),t):o},t.thresholds=function(n){return arguments.length?(f=typeof n=="function"?n:V(Array.isArray(n)?R.call(n):n),t):f},t}function C(i){return i?i>0?"up":"down":"unchanged"}function E(i,o=20){const[f,t]=A(i);if(f===void 0||t===void 0)return;const n=F().domain([f,t]).nice(),[e,s]=n.domain(),a=.8*(s-e)/o,c=N().domain([e,s]).thresholds(o)(i).map(r=>({startValue:r.x0,count:r.length})),g=c.pop();return g&&(c[c.length-1].count+=g.count),{bucketValueInterval:a,buckets:c.filter(r=>r.count),minValue:e,maxValue:s}}function G(i,o){const[f,t]=o;return f===void 0&&t===void 0?!0:!(i==null||f!==void 0&&f>i||t!==void 0&&t<i)}export{G as a,E as b,C as n};
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.