1"use strict";(self.webpackChunkclient_agriicola=self.webpackChunkclient_agriicola||[]).push([[6503],{87490:(U,h,r)=>{r.d(h,{Z:()=>u});var g=r(49671);function w(t,e){let n=t.length-e,c=0;do{for(let o=e;o>0;o--)t[c+e]+=t[c],c++;n-=e}while(n>0)}function _(t,e,n){let c=0,o=t.length;const i=o/n;for(;o>e;){for(let a=e;a>0;--a)t[c+e]+=t[c],++c;o-=e}const l=t.slice();for(let a=0;a<i;++a)for(let s=0;s<n;++s)t[n*a+s]=l[(n-s-1)*i+a]}class u{decode(e,n){var c=this;return(0,g.Z)(function*(){const o=yield c.decodeBlock(n),i=e.Predictor||1;if(1!==i){const l=!e.StripOffsets;return function f(t,e,n,c,o,i){if(!e||1===e)return t;for(let s=0;s<o.length;++s){if(o[s]%8!=0)throw new Error("When decoding with predictor, only multiple of 8 bits are supported.");if(o[s]!==o[0])throw new Error("When decoding with predictor, all samples must have the same size.")}const l=o[0]/8,a=2===i?1:o.length;for(let s=0;s<c&&!(s*a*n*l>=t.byteLength);++s){let d;if(2===e){switch(o[0]){case 8:d=new Uint8Array(t,s*a*n*l,a*n*l);break;case 16:d=new Uint16Array(t,s*a*n*l,a*n*l/2);break;case 32:d=new Uint32Array(t,s*a*n*l,a*n*l/4);break;default:throw new Error(`Predictor 2 not allowed with ${o[0]} bits per sample.`)}w(d,a)}else 3===e&&(d=new Uint8Array(t,s*a*n*l,a*n*l),_(d,a,l))}return t}(o,i,l?e.TileWidth:e.ImageWidth,l?e.TileLength:e.RowsPerStrip||e.ImageLength,e.BitsPerSample,e.PlanarConfiguration)}return o})()}}},86503:(U,h,r)=>{r.r(h),r.d(h,{default:()=>w});var g=r(87490);class w extends g.Z{decodeBlock(f){const u=new DataView(f),t=[];for(let e=0;e<f.byteLength;++e){let n=u.getInt8(e);if(n<0){const c=u.getUint8(e+1);n=-n;for(let o=0;o<=n;++o)t.push(c);e+=1}else{for(let c=0;c<=n;++c)t.push(u.getUint8(e+c+1));e+=n+1}}return new Uint8Array(t).buffer}}}}]);
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.