@doegis/core
Version:
DOE GIS API
1 lines • 151 kB
JavaScript
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6610],{97575:(e,t,r)=>{r.d(t,{J:()=>s});var o,n,i,s={},a={get exports(){return s},set exports(e){s=e}};o=a,n=function(){var e=function(){function e(e){this.message="JPEG error: "+e}return e.prototype=new Error,e.prototype.name="JpegError",e.constructor=e,e}();return function(){if(!self||!self.Uint8ClampedArray)return null;var t=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),r=4017,o=799,n=3406,i=2276,s=1567,a=3784,l=5793,u=2896;function h(){this.decodeTransform=null,this.colorTransform=-1}function c(e,t){for(var r,o,n=0,i=[],s=16;s>0&&!e[s-1];)s--;i.push({children:[],index:0});var a,l=i[0];for(r=0;r<s;r++){for(o=0;o<e[r];o++){for((l=i.pop()).children[l.index]=t[n];l.index>0;)l=i.pop();for(l.index++,i.push(l);i.length<=r;)i.push(a={children:[],index:0}),l.children[l.index]=a.children,l=a;n++}r+1<s&&(i.push(a={children:[],index:0}),l.children[l.index]=a.children,l=a)}return i[0].children}function f(e,t,r){return 64*((e.blocksPerLine+1)*t+r)}function p(r,o,n,i,s,a,l,u,h){var c=n.mcusPerLine,p=n.progressive,d=o,g=0,y=0;function C(){if(y>0)return y--,g>>y&1;if(255===(g=r[o++])){var t=r[o++];if(t)throw new e("unexpected marker "+(g<<8|t).toString(16))}return y=7,g>>>7}function w(t){for(var r=t;;){if("number"==typeof(r=r[C()]))return r;if("object"!=typeof r)throw new e("invalid huffman sequence")}}function b(e){for(var t=0;e>0;)t=t<<1|C(),e--;return t}function x(e){if(1===e)return 1===C()?1:-1;var t=b(e);return t>=1<<e-1?t:t+(-1<<e)+1}var k,v=0,T=0;function S(e,t,r,o,n){var i=r%c;t(e,f(e,(r/c|0)*e.v+o,i*e.h+n))}function A(e,t,r){t(e,f(e,r/e.blocksPerLine|0,r%e.blocksPerLine))}var I,P,M,E,D,R,L=i.length;R=p?0===a?0===u?function(e,t){var r=w(e.huffmanTableDC),o=0===r?0:x(r)<<h;e.blockData[t]=e.pred+=o}:function(e,t){e.blockData[t]|=C()<<h}:0===u?function(e,r){if(v>0)v--;else for(var o=a,n=l;o<=n;){var i=w(e.huffmanTableAC),s=15&i,u=i>>4;if(0!==s){var c=t[o+=u];e.blockData[r+c]=x(s)*(1<<h),o++}else{if(u<15){v=b(u)+(1<<u)-1;break}o+=16}}}:function(r,o){for(var n,i,s=a,u=l,c=0;s<=u;){var f=t[s];switch(T){case 0:if(c=(i=w(r.huffmanTableAC))>>4,0==(n=15&i))c<15?(v=b(c)+(1<<c),T=4):(c=16,T=1);else{if(1!==n)throw new e("invalid ACn encoding");k=x(n),T=c?2:3}continue;case 1:case 2:r.blockData[o+f]?r.blockData[o+f]+=C()<<h:0==--c&&(T=2===T?3:0);break;case 3:r.blockData[o+f]?r.blockData[o+f]+=C()<<h:(r.blockData[o+f]=k<<h,T=0);break;case 4:r.blockData[o+f]&&(r.blockData[o+f]+=C()<<h)}s++}4===T&&0==--v&&(T=0)}:function(e,r){var o=w(e.huffmanTableDC),n=0===o?0:x(o);e.blockData[r]=e.pred+=n;for(var i=1;i<64;){var s=w(e.huffmanTableAC),a=15&s,l=s>>4;if(0!==a){var u=t[i+=l];e.blockData[r+u]=x(a),i++}else{if(l<15)break;i+=16}}};var _,B,U,G,O=0;for(B=1===L?i[0].blocksPerLine*i[0].blocksPerColumn:c*n.mcusPerColumn;O<B;){var N=s?Math.min(B-O,s):B;for(P=0;P<L;P++)i[P].pred=0;if(v=0,1===L)for(I=i[0],D=0;D<N;D++)A(I,R,O),O++;else for(D=0;D<N;D++){for(P=0;P<L;P++)for(U=(I=i[P]).h,G=I.v,M=0;M<G;M++)for(E=0;E<U;E++)S(I,R,O,M,E);O++}y=0,(_=m(r,o))&&_.invalid&&(console.log("decodeScan - unexpected MCU data, next marker is: "+_.invalid),o=_.offset);var F=_&&_.marker;if(!F||F<=65280)throw new e("marker was not found");if(!(F>=65488&&F<=65495))break;o+=2}return(_=m(r,o))&&_.invalid&&(console.log("decodeScan - unexpected Scan data, next marker is: "+_.invalid),o=_.offset),o-d}function d(t,h,c){var f,p,d,g,m,y,C,w,b,x,k,v,T,S,A,I,P,M=t.quantizationTable,E=t.blockData;if(!M)throw new e("missing required Quantization Table.");for(var D=0;D<64;D+=8)b=E[h+D],x=E[h+D+1],k=E[h+D+2],v=E[h+D+3],T=E[h+D+4],S=E[h+D+5],A=E[h+D+6],I=E[h+D+7],b*=M[D],0!=(x|k|v|T|S|A|I)?(x*=M[D+1],k*=M[D+2],v*=M[D+3],T*=M[D+4],S*=M[D+5],A*=M[D+6],I*=M[D+7],p=(f=(f=l*b+128>>8)+(p=l*T+128>>8)+1>>1)-p,P=(d=k)*a+(g=A)*s+128>>8,d=d*s-g*a+128>>8,C=(m=(m=u*(x-I)+128>>8)+(C=S<<4)+1>>1)-C,y=(w=(w=u*(x+I)+128>>8)+(y=v<<4)+1>>1)-y,g=(f=f+(g=P)+1>>1)-g,d=(p=p+d+1>>1)-d,P=m*i+w*n+2048>>12,m=m*n-w*i+2048>>12,w=P,P=y*o+C*r+2048>>12,y=y*r-C*o+2048>>12,C=P,c[D]=f+w,c[D+7]=f-w,c[D+1]=p+C,c[D+6]=p-C,c[D+2]=d+y,c[D+5]=d-y,c[D+3]=g+m,c[D+4]=g-m):(P=l*b+512>>10,c[D]=P,c[D+1]=P,c[D+2]=P,c[D+3]=P,c[D+4]=P,c[D+5]=P,c[D+6]=P,c[D+7]=P);for(var R=0;R<8;++R)b=c[R],0!=((x=c[R+8])|(k=c[R+16])|(v=c[R+24])|(T=c[R+32])|(S=c[R+40])|(A=c[R+48])|(I=c[R+56]))?(p=(f=4112+((f=l*b+2048>>12)+(p=l*T+2048>>12)+1>>1))-p,P=(d=k)*a+(g=A)*s+2048>>12,d=d*s-g*a+2048>>12,g=P,C=(m=(m=u*(x-I)+2048>>12)+(C=S)+1>>1)-C,y=(w=(w=u*(x+I)+2048>>12)+(y=v)+1>>1)-y,P=m*i+w*n+2048>>12,m=m*n-w*i+2048>>12,w=P,P=y*o+C*r+2048>>12,y=y*r-C*o+2048>>12,b=(b=(f=f+g+1>>1)+w)<16?0:b>=4080?255:b>>4,x=(x=(p=p+d+1>>1)+(C=P))<16?0:x>=4080?255:x>>4,k=(k=(d=p-d)+y)<16?0:k>=4080?255:k>>4,v=(v=(g=f-g)+m)<16?0:v>=4080?255:v>>4,T=(T=g-m)<16?0:T>=4080?255:T>>4,S=(S=d-y)<16?0:S>=4080?255:S>>4,A=(A=p-C)<16?0:A>=4080?255:A>>4,I=(I=f-w)<16?0:I>=4080?255:I>>4,E[h+R]=b,E[h+R+8]=x,E[h+R+16]=k,E[h+R+24]=v,E[h+R+32]=T,E[h+R+40]=S,E[h+R+48]=A,E[h+R+56]=I):(P=(P=l*b+8192>>14)<-2040?0:P>=2024?255:P+2056>>4,E[h+R]=P,E[h+R+8]=P,E[h+R+16]=P,E[h+R+24]=P,E[h+R+32]=P,E[h+R+40]=P,E[h+R+48]=P,E[h+R+56]=P)}function g(e,t){for(var r=t.blocksPerLine,o=t.blocksPerColumn,n=new Int16Array(64),i=0;i<o;i++)for(var s=0;s<r;s++)d(t,f(t,i,s),n);return t.blockData}function m(e,t,r){function o(t){return e[t]<<8|e[t+1]}var n=e.length-1,i=r<t?r:t;if(t>=n)return null;var s=o(t);if(s>=65472&&s<=65534)return{invalid:null,marker:s,offset:t};for(var a=o(i);!(a>=65472&&a<=65534);){if(++i>=n)return null;a=o(i)}return{invalid:s.toString(16),marker:a,offset:i}}return h.prototype={parse:function(r){function o(){var e=r[l]<<8|r[l+1];return l+=2,e}function n(){var e=o(),t=l+e-2,n=m(r,t,l);n&&n.invalid&&(console.log("readDataBlock - incorrect length, next marker is: "+n.invalid),t=n.offset);var i=r.subarray(l,t);return l+=i.length,i}function i(e){for(var t=Math.ceil(e.samplesPerLine/8/e.maxH),r=Math.ceil(e.scanLines/8/e.maxV),o=0;o<e.components.length;o++){O=e.components[o];var n=Math.ceil(Math.ceil(e.samplesPerLine/8)*O.h/e.maxH),i=Math.ceil(Math.ceil(e.scanLines/8)*O.v/e.maxV),s=t*O.h,a=r*O.v*64*(s+1);O.blockData=new Int16Array(a),O.blocksPerLine=n,O.blocksPerColumn=i}e.mcusPerLine=t,e.mcusPerColumn=r}var s,a,l=0,u=null,h=null,f=[],d=[],y=[],C=o();if(65496!==C)throw new e("SOI not found");for(C=o();65497!==C;){var w,b,x;switch(C){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var k=n();65504===C&&74===k[0]&&70===k[1]&&73===k[2]&&70===k[3]&&0===k[4]&&(u={version:{major:k[5],minor:k[6]},densityUnits:k[7],xDensity:k[8]<<8|k[9],yDensity:k[10]<<8|k[11],thumbWidth:k[12],thumbHeight:k[13],thumbData:k.subarray(14,14+3*k[12]*k[13])}),65518===C&&65===k[0]&&100===k[1]&&111===k[2]&&98===k[3]&&101===k[4]&&(h={version:k[5]<<8|k[6],flags0:k[7]<<8|k[8],flags1:k[9]<<8|k[10],transformCode:k[11]});break;case 65499:for(var v=o()+l-2;l<v;){var T=r[l++],S=new Uint16Array(64);if(T>>4==0)for(b=0;b<64;b++)S[t[b]]=r[l++];else{if(T>>4!=1)throw new e("DQT - invalid table spec");for(b=0;b<64;b++)S[t[b]]=o()}f[15&T]=S}break;case 65472:case 65473:case 65474:if(s)throw new e("Only single frame JPEGs supported");o(),(s={}).extended=65473===C,s.progressive=65474===C,s.precision=r[l++],s.scanLines=o(),s.samplesPerLine=o(),s.components=[],s.componentIds={};var A,I=r[l++],P=0,M=0;for(w=0;w<I;w++){A=r[l];var E=r[l+1]>>4,D=15&r[l+1];P<E&&(P=E),M<D&&(M=D);var R=r[l+2];x=s.components.push({h:E,v:D,quantizationId:R,quantizationTable:null}),s.componentIds[A]=x-1,l+=3}s.maxH=P,s.maxV=M,i(s);break;case 65476:var L=o();for(w=2;w<L;){var _=r[l++],B=new Uint8Array(16),U=0;for(b=0;b<16;b++,l++)U+=B[b]=r[l];var G=new Uint8Array(U);for(b=0;b<U;b++,l++)G[b]=r[l];w+=17+U,(_>>4==0?y:d)[15&_]=c(B,G)}break;case 65501:o(),a=o();break;case 65498:o();var O,N=r[l++],F=[];for(w=0;w<N;w++){var V=s.componentIds[r[l++]];O=s.components[V];var z=r[l++];O.huffmanTableDC=y[z>>4],O.huffmanTableAC=d[15&z],F.push(O)}var j=r[l++],W=r[l++],Z=r[l++],J=p(r,l,s,F,a,j,W,Z>>4,15&Z);l+=J;break;case 65535:255!==r[l]&&l--;break;default:if(255===r[l-3]&&r[l-2]>=192&&r[l-2]<=254){l-=3;break}throw new e("unknown marker "+C.toString(16))}C=o()}for(this.width=s.samplesPerLine,this.height=s.scanLines,this.jfif=u,this.eof=l,this.adobe=h,this.components=[],w=0;w<s.components.length;w++){var H=f[(O=s.components[w]).quantizationId];H&&(O.quantizationTable=H),this.components.push({output:g(0,O),scaleX:O.h/s.maxH,scaleY:O.v/s.maxV,blocksPerLine:O.blocksPerLine,blocksPerColumn:O.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData:function(e,t){var r,o,n,i,s,a,l,u,h,c,f,p=this.width/e,d=this.height/t,g=0,m=this.components.length,y=e*t*m,C=new Uint8ClampedArray(y),w=new Uint32Array(e),b=4294967288;for(l=0;l<m;l++){for(o=(r=this.components[l]).scaleX*p,n=r.scaleY*d,g=l,f=r.output,i=r.blocksPerLine+1<<3,s=0;s<e;s++)u=0|s*o,w[s]=(u&b)<<3|7&u;for(a=0;a<t;a++)for(c=i*((u=0|a*n)&b)|(7&u)<<3,s=0;s<e;s++)C[g]=f[c+w[s]],g+=m}var x=this.decodeTransform;if(x)for(l=0;l<y;)for(u=0,h=0;u<m;u++,l++,h+=2)C[l]=(C[l]*x[h]>>8)+x[h+1];return C},_isColorConversionNeeded:function(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this.colorTransform:1===this.colorTransform},_convertYccToRgb:function(e){for(var t,r,o,n=0,i=e.length;n<i;n+=3)t=e[n],r=e[n+1],o=e[n+2],e[n]=t-179.456+1.402*o,e[n+1]=t+135.459-.344*r-.714*o,e[n+2]=t-226.816+1.772*r;return e},_convertYcckToRgb:function(e){for(var t,r,o,n,i=0,s=0,a=e.length;s<a;s+=4)t=e[s],r=e[s+1],o=e[s+2],n=e[s+3],e[i++]=r*(-660635669420364e-19*r+.000437130475926232*o-54080610064599e-18*t+.00048449797120281*n-.154362151871126)-122.67195406894+o*(-.000957964378445773*o+.000817076911346625*t-.00477271405408747*n+1.53380253221734)+t*(.000961250184130688*t-.00266257332283933*n+.48357088451265)+n*(-.000336197177618394*n+.484791561490776),e[i++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*o+.000659397001245577*t+.000426105652938837*n-.176491792462875)+o*(-.000778269941513683*o+.00130872261408275*t+.000770482631801132*n-.151051492775562)+t*(.00126935368114843*t-.00265090189010898*n+.25802910206845)+n*(-.000318913117588328*n-.213742400323665),e[i++]=r*(-.000570115196973677*r-263409051004589e-19*o+.0020741088115012*t-.00288260236853442*n+.814272968359295)-20.810012546947+o*(-153496057440975e-19*o-.000132689043961446*t+.000560833691242812*n-.195152027534049)+t*(.00174418132927582*t-.00255243321439347*n+.116935020465145)+n*(-.000343531996510555*n+.24165260232407);return e},_convertYcckToCmyk:function(e){for(var t,r,o,n=0,i=e.length;n<i;n+=4)t=e[n],r=e[n+1],o=e[n+2],e[n]=434.456-t-1.402*o,e[n+1]=119.541-t+.344*r+.714*o,e[n+2]=481.816-t-1.772*r;return e},_convertCmykToRgb:function(e){for(var t,r,o,n,i=0,s=1/255,a=0,l=e.length;a<l;a+=4)t=e[a]*s,r=e[a+1]*s,o=e[a+2]*s,n=e[a+3]*s,e[i++]=255+t*(-4.387332384609988*t+54.48615194189176*r+18.82290502165302*o+212.25662451639585*n-285.2331026137004)+r*(1.7149763477362134*r-5.6096736904047315*o-17.873870861415444*n-5.497006427196366)+o*(-2.5217340131683033*o-21.248923337353073*n+17.5119270841813)-n*(21.86122147463605*n+189.48180835922747),e[i++]=255+t*(8.841041422036149*t+60.118027045597366*r+6.871425592049007*o+31.159100130055922*n-79.2970844816548)+r*(-15.310361306967817*r+17.575251261109482*o+131.35250912493976*n-190.9453302588951)+o*(4.444339102852739*o+9.8632861493405*n-24.86741582555878)-n*(20.737325471181034*n+187.80453709719578),e[i++]=255+t*(.8842522430003296*t+8.078677503112928*r+30.89978309703729*o-.23883238689178934*n-14.183576799673286)+r*(10.49593273432072*r+63.02378494754052*o+50.606957656360734*n-112.23884253719248)+o*(.03296041114873217*o+115.60384449646641*n-193.58209356861505)-n*(22.33816807309886*n+180.12613974708367);return e},getData:function(t,r,o){if(this.numComponents>4)throw new e("Unsupported color mode");var n=this._getLinearizedBlockData(t,r);if(1===this.numComponents&&o){for(var i=n.length,s=new Uint8ClampedArray(3*i),a=0,l=0;l<i;l++){var u=n[l];s[a++]=u,s[a++]=u,s[a++]=u}return s}if(3===this.numComponents&&this._isColorConversionNeeded())return this._convertYccToRgb(n);if(4===this.numComponents){if(this._isColorConversionNeeded())return o?this._convertYcckToRgb(n):this._convertYcckToCmyk(n);if(o)return this._convertCmykToRgb(n)}return n}},h}()},void 0!==(i=n())&&(o.exports=i)},80899:(e,t,r)=>{r.d(t,{Z:()=>s});var o,n,i,s={},a={get exports(){return s},set exports(e){s=e}};n=a,void 0!==(o=function(){function e(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return e.prototype={ensureBuffer:function(e){var t=this.buffer,r=t?t.byteLength:0;if(e<r)return t;for(var o=512;o<e;)o<<=1;for(var n=new Uint8Array(o),i=0;i<r;++i)n[i]=t[i];return this.buffer=n},getByte:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(e){var t=this.pos;if(e){this.ensureBuffer(t+e);for(var r=t+e;!this.eof&&this.bufferLength<r;)this.readBlock();var o=this.bufferLength;r>o&&(r=o)}else{for(;!this.eof;)this.readBlock();r=this.bufferLength}return this.pos=r,this.buffer.subarray(t,r)},lookChar:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(e,t,r){for(var o=e+t;this.bufferLength<=o&&!this.eof;)this.readBlock();return new Stream(this.buffer,e,t,r)},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=0}},e}(),i=function(){if(!self||!self.Uint32Array)return null;var e=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),t=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),r=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),n=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],i=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];function s(e){throw new Error(e)}function a(e){var t=0,r=e[t++],n=e[t++];-1!=r&&-1!=n||s("Invalid header in flate stream"),8!=(15&r)&&s("Unknown compression method in flate stream"),((r<<8)+n)%31!=0&&s("Bad FCHECK in flate stream"),32&n&&s("FDICT bit set in flate stream"),this.bytes=e,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,o.call(this)}return a.prototype=Object.create(o.prototype),a.prototype.getBits=function(e){for(var t,r=this.codeSize,o=this.codeBuf,n=this.bytes,i=this.bytesPos;r<e;)void 0===(t=n[i++])&&s("Bad encoding in flate stream"),o|=t<<r,r+=8;return t=o&(1<<e)-1,this.codeBuf=o>>e,this.codeSize=r-=e,this.bytesPos=i,t},a.prototype.getCode=function(e){for(var t=e[0],r=e[1],o=this.codeSize,n=this.codeBuf,i=this.bytes,a=this.bytesPos;o<r;){var l;void 0===(l=i[a++])&&s("Bad encoding in flate stream"),n|=l<<o,o+=8}var u=t[n&(1<<r)-1],h=u>>16,c=65535&u;return(0==o||o<h||0==h)&&s("Bad encoding in flate stream"),this.codeBuf=n>>h,this.codeSize=o-h,this.bytesPos=a,c},a.prototype.generateHuffmanTable=function(e){for(var t=e.length,r=0,o=0;o<t;++o)e[o]>r&&(r=e[o]);for(var n=1<<r,i=new Uint32Array(n),s=1,a=0,l=2;s<=r;++s,a<<=1,l<<=1)for(var u=0;u<t;++u)if(e[u]==s){var h=0,c=a;for(o=0;o<s;++o)h=h<<1|1&c,c>>=1;for(o=h;o<n;o+=l)i[o]=s<<16|u;++a}return[i,r]},a.prototype.readBlock=function(){function o(e,t,r,o,n){for(var i=e.getBits(r)+o;i-- >0;)t[d++]=n}var a=this.getBits(3);if(1&a&&(this.eof=!0),0!=(a>>=1)){var l,u;if(1==a)l=n,u=i;else if(2==a){for(var h=this.getBits(5)+257,c=this.getBits(5)+1,f=this.getBits(4)+4,p=Array(e.length),d=0;d<f;)p[e[d++]]=this.getBits(3);for(var g=this.generateHuffmanTable(p),m=0,y=(d=0,h+c),C=new Array(y);d<y;){var w=this.getCode(g);16==w?o(this,C,2,3,m):17==w?o(this,C,3,3,m=0):18==w?o(this,C,7,11,m=0):C[d++]=m=w}l=this.generateHuffmanTable(C.slice(0,h)),u=this.generateHuffmanTable(C.slice(h,y))}else s("Unknown block type in flate stream");for(var b=(R=this.buffer)?R.length:0,x=this.bufferLength;;){var k=this.getCode(l);if(k<256)x+1>=b&&(b=(R=this.ensureBuffer(x+1)).length),R[x++]=k;else{if(256==k)return void(this.bufferLength=x);var v=(k=t[k-=257])>>16;v>0&&(v=this.getBits(v)),m=(65535&k)+v,k=this.getCode(u),(v=(k=r[k])>>16)>0&&(v=this.getBits(v));var T=(65535&k)+v;x+m>=b&&(b=(R=this.ensureBuffer(x+m)).length);for(var S=0;S<m;++S,++x)R[x]=R[x-T]}}}else{var A,I=this.bytes,P=this.bytesPos;void 0===(A=I[P++])&&s("Bad block header in flate stream");var M=A;void 0===(A=I[P++])&&s("Bad block header in flate stream"),M|=A<<8,void 0===(A=I[P++])&&s("Bad block header in flate stream");var E=A;void 0===(A=I[P++])&&s("Bad block header in flate stream"),(E|=A<<8)!=(65535&~M)&&s("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var D=this.bufferLength,R=this.ensureBuffer(D+M),L=D+M;this.bufferLength=L;for(var _=D;_<L;++_){if(void 0===(A=I[P++])){this.eof=!0;break}R[_]=A}this.bytesPos=P}},a}())&&(n.exports=i)},3892:(e,t,r)=>{function o(e){return"h"in e&&"s"in e&&"v"in e}function n(e){return"l"in e&&"a"in e&&"b"in e}function i(e){return"l"in e&&"c"in e&&"h"in e}r.d(t,{Y3:()=>g,_Y:()=>d,sJ:()=>m,xr:()=>p});const s=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],a=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function l(e,t){const r=[];let o,n;if(e[0].length!==t.length)throw new Error("dimensions do not match");const i=e.length,s=e[0].length;let a=0;for(o=0;o<i;o++){for(a=0,n=0;n<s;n++)a+=e[o][n]*t[n];r.push(a)}return r}function u(e){const t=[e.r/255,e.g/255,e.b/255].map((e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4)),r=l(s,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function h(e){const t=l(a,[e.x/100,e.y/100,e.z/100]).map((e=>{const t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))}));return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function c(e){const t=[e.x/95.047,e.y/100,e.z/108.883].map((e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29));return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function f(e){const t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map((e=>e>6/29?e**3:3*(6/29)**2*(e-4/29)));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function p(e){return"r"in(t=e)&&"g"in t&&"b"in t?e:i(e)?function(e){return h(f(function(e){const t=e.l,r=e.c,o=e.h;return{l:t,a:r*Math.cos(o),b:r*Math.sin(o)}}(e)))}(e):n(e)?function(e){return h(f(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?h(e):o(e)?function(e){const t=(e.h+360)%360/60,r=e.s/100,o=e.v/100*255,n=o*r,i=n*(1-Math.abs(t%2-1));let s;switch(Math.floor(t)){case 0:s={r:n,g:i,b:0};break;case 1:s={r:i,g:n,b:0};break;case 2:s={r:0,g:n,b:i};break;case 3:s={r:0,g:i,b:n};break;case 4:s={r:i,g:0,b:n};break;case 5:case 6:s={r:n,g:0,b:i};break;default:s={r:0,g:0,b:0}}return s.r=Math.round(s.r+o-n),s.g=Math.round(s.g+o-n),s.b=Math.round(s.b+o-n),s}(e):e;var t}function d(e){return o(e)?e:function(e){const t=e.r,r=e.g,o=e.b,n=Math.max(t,r,o),i=n-Math.min(t,r,o);let s=n,a=0===i?0:n===t?(r-o)/i%6:n===r?(o-t)/i+2:(t-r)/i+4,l=0===i?0:i/s;return a<0&&(a+=6),a*=60,l*=100,s*=100/255,{h:a,s:l,v:s}}(p(e))}function g(e){return n(e)?e:function(e){return c(u(e))}(p(e))}function m(e){return i(e)?e:function(e){return function(e){const t=e.l,r=e.a,o=e.b,n=Math.sqrt(r*r+o*o);let i=Math.atan2(o,r);return i=i>0?i:i+2*Math.PI,{l:t,c:n,h:i}}(c(u(e)))}(p(e))}},5847:(e,t,r)=>{r.d(t,{Z:()=>m});var o=r(43697),n=r(20102),i=r(96674),s=r(22974),a=r(92604),l=r(70586),u=r(5600),h=r(90578),c=r(52011);class f{constructor(e=null,t=null,r=null){this.minValue=e,this.maxValue=t,this.noDataValue=r}}var p,d=r(81578);let g=p=class extends i.wq{static createEmptyBand(e,t){return new(p.getPixelArrayConstructor(e))(t)}static getPixelArrayConstructor(e){let t;switch(e){case"u1":case"u2":case"u4":case"u8":t=Uint8Array;break;case"u16":t=Uint16Array;break;case"u32":t=Uint32Array;break;case"s8":t=Int8Array;break;case"s16":t=Int16Array;break;case"s32":t=Int32Array;break;case"f32":case"c64":case"c128":case"unknown":t=Float32Array;break;case"f64":t=Float64Array}return t}constructor(e){super(e),this.width=null,this.height=null,this.pixelType="f32",this.validPixelCount=null,this.mask=null,this.maskIsAlpha=!1,this.premultiplyAlpha=!1,this.statistics=null,this.depthCount=1}castPixelType(e){if(!e)return"f32";let t=e.toLowerCase();return["u1","u2","u4"].includes(t)?t="u8":["unknown","u8","s8","u16","s16","u32","s32","f32","f64"].includes(t)||(t="f32"),t}getPlaneCount(){return this.pixels?.length}addData(e){if(!e.pixels||e.pixels.length!==this.width*this.height)throw new n.Z("pixelblock:invalid-or-missing-pixels","add data requires valid pixels array that has same length defined by pixel block width * height");this.pixels||(this.pixels=[]),this.statistics||(this.statistics=[]),this.pixels.push(e.pixels),this.statistics.push(e.statistics??new f)}getAsRGBA(){const e=new ArrayBuffer(this.width*this.height*4);switch(this.pixelType){case"s8":case"s16":case"u16":case"s32":case"u32":case"f32":case"f64":this._fillFromNon8Bit(e);break;default:this._fillFrom8Bit(e)}return new Uint8ClampedArray(e)}getAsRGBAFloat(){const e=new Float32Array(this.width*this.height*4);return this._fillFrom32Bit(e),e}updateStatistics(){if(!this.pixels)return;this.statistics=this.pixels.map((e=>this._calculateBandStatistics(e,this.mask)));const e=this.mask;let t=0;if((0,l.pC)(e))for(let r=0;r<e.length;r++)e[r]&&t++;else t=this.width*this.height;this.validPixelCount=t}clamp(e){if(!e||"f64"===e||"f32"===e||!this.pixels)return;const[t,r]=(0,d.r)(e),o=this.pixels,n=this.width*this.height,i=o.length;let s,a,l;const u=[];for(let h=0;h<i;h++){l=p.createEmptyBand(e,n),s=o[h];for(let e=0;e<n;e++)a=s[e],l[e]=a>r?r:a<t?t:a;u.push(l)}this.pixels=u,this.pixelType=e}extractBands(e){const{pixels:t,statistics:r}=this;if((0,l.Wi)(e)||0===e.length||!t||0===t.length)return this;const o=t.length,n=e.some((e=>e>=t.length)),i=o===e.length&&!e.some(((e,t)=>e!==t));return n||i?this:new p({pixelType:this.pixelType,width:this.width,height:this.height,mask:this.mask,validPixelCount:this.validPixelCount,maskIsAlpha:this.maskIsAlpha,pixels:e.map((e=>t[e])),statistics:r&&e.map((e=>r[e]))})}clone(){const e=new p({width:this.width,height:this.height,pixelType:this.pixelType,maskIsAlpha:this.maskIsAlpha,validPixelCount:this.validPixelCount});let t;(0,l.pC)(this.mask)&&(this.mask instanceof Uint8Array?e.mask=new Uint8Array(this.mask):e.mask=this.mask.slice(0));const r=p.getPixelArrayConstructor(this.pixelType);if(this.pixels&&this.pixels.length>0){e.pixels=[];const o=!!this.pixels[0].slice;for(t=0;t<this.pixels.length;t++)e.pixels[t]=o?this.pixels[t].slice(0,this.pixels[t].length):new r(this.pixels[t])}if(this.statistics)for(e.statistics=[],t=0;t<this.statistics.length;t++)e.statistics[t]=(0,s.d9)(this.statistics[t]);return e.premultiplyAlpha=this.premultiplyAlpha,e}_fillFrom8Bit(e){const{mask:t,maskIsAlpha:r,premultiplyAlpha:o,pixels:n}=this;if(!e||!n||!n.length)return void a.Z.getLogger(this.declaredClass).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");let i,s,u,h;i=s=u=n[0],n.length>=3?(s=n[1],u=n[2]):2===n.length&&(s=n[1]);const c=new Uint32Array(e),f=this.width*this.height;if(i.length===f)if((0,l.pC)(t)&&t.length===f)if(r)for(h=0;h<f;h++){const e=t[h];if(e){const t=e/255;c[h]=o?e<<24|u[h]*t<<16|s[h]*t<<8|i[h]*t:e<<24|u[h]<<16|s[h]<<8|i[h]}}else for(h=0;h<f;h++)t[h]&&(c[h]=255<<24|u[h]<<16|s[h]<<8|i[h]);else for(h=0;h<f;h++)c[h]=255<<24|u[h]<<16|s[h]<<8|i[h];else a.Z.getLogger(this.declaredClass).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.")}_fillFromNon8Bit(e){const{pixels:t,mask:r,statistics:o}=this;if(!e||!t||!t.length)return void a.Z.getLogger(this.declaredClass).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");const n=this.pixelType;let i=1,s=0,u=1;if(o&&o.length>0){for(const e of o)if(null!=e.minValue&&(s=Math.min(s,e.minValue)),null!=e.maxValue&&null!=e.minValue){const t=e.maxValue-e.minValue;u=Math.max(u,t)}i=255/u}else{let e=255;"s8"===n?(s=-128,e=127):"u16"===n?e=65535:"s16"===n?(s=-32768,e=32767):"u32"===n?e=4294967295:"s32"===n?(s=-2147483648,e=2147483647):"f32"===n?(s=-34e38,e=34e38):"f64"===n&&(s=-Number.MAX_VALUE,e=Number.MAX_VALUE),i=255/(e-s)}const h=new Uint32Array(e),c=this.width*this.height;let f,p,d,g,m;if(f=p=d=t[0],f.length!==c)return a.Z.getLogger(this.declaredClass).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.");if(t.length>=2)if(p=t[1],t.length>=3&&(d=t[2]),(0,l.pC)(r)&&r.length===c)for(g=0;g<c;g++)r[g]&&(h[g]=255<<24|(d[g]-s)*i<<16|(p[g]-s)*i<<8|(f[g]-s)*i);else for(g=0;g<c;g++)h[g]=255<<24|(d[g]-s)*i<<16|(p[g]-s)*i<<8|(f[g]-s)*i;else if((0,l.pC)(r)&&r.length===c)for(g=0;g<c;g++)m=(f[g]-s)*i,r[g]&&(h[g]=255<<24|m<<16|m<<8|m);else for(g=0;g<c;g++)m=(f[g]-s)*i,h[g]=255<<24|m<<16|m<<8|m}_fillFrom32Bit(e){const{pixels:t,mask:r}=this;if(!e||!t||!t.length)return a.Z.getLogger(this.declaredClass).error("getAsRGBAFloat()","Unable to convert to RGBA. The input pixel block is empty.");let o,n,i,s;o=n=i=t[0],t.length>=3?(n=t[1],i=t[2]):2===t.length&&(n=t[1]);const u=this.width*this.height;if(o.length!==u)return a.Z.getLogger(this.declaredClass).error("getAsRGBAFloat()","Unable to convert to RGBA. The pixelblock is invalid.");let h=0;if((0,l.pC)(r)&&r.length===u)for(s=0;s<u;s++)e[h++]=o[s],e[h++]=n[s],e[h++]=i[s],e[h++]=1&r[s];else for(s=0;s<u;s++)e[h++]=o[s],e[h++]=n[s],e[h++]=i[s],e[h++]=1}_calculateBandStatistics(e,t){let r=1/0,o=-1/0;const n=e.length;let i,s=0;if((0,l.pC)(t))for(i=0;i<n;i++)t[i]&&(s=e[i],r=s<r?s:r,o=s>o?s:o);else for(i=0;i<n;i++)s=e[i],r=s<r?s:r,o=s>o?s:o;return new f(r,o)}};(0,o._)([(0,u.Cb)({json:{write:!0}})],g.prototype,"width",void 0),(0,o._)([(0,u.Cb)({json:{write:!0}})],g.prototype,"height",void 0),(0,o._)([(0,u.Cb)({json:{write:!0}})],g.prototype,"pixelType",void 0),(0,o._)([(0,h.p)("pixelType")],g.prototype,"castPixelType",null),(0,o._)([(0,u.Cb)({json:{write:!0}})],g.prototype,"validPixelCount",void 0),(0,o._)([(0,u.Cb)({json:{write:!0}})],g.prototype,"mask",void 0),(0,o._)([(0,u.Cb)({json:{write:!0}})],g.prototype,"maskIsAlpha",void 0),(0,o._)([(0,u.Cb)({json:{write:!0}})],g.prototype,"pixels",void 0),(0,o._)([(0,u.Cb)()],g.prototype,"premultiplyAlpha",void 0),(0,o._)([(0,u.Cb)({json:{write:!0}})],g.prototype,"statistics",void 0),(0,o._)([(0,u.Cb)({json:{write:!0}})],g.prototype,"depthCount",void 0),(0,o._)([(0,u.Cb)({json:{write:!0}})],g.prototype,"noDataValues",void 0),(0,o._)([(0,u.Cb)({json:{write:!0}})],g.prototype,"bandMasks",void 0),g=p=(0,o._)([(0,c.j)("esri.layers.support.PixelBlock")],g);const m=g},48526:(e,t,r)=>{r.d(t,{Z:()=>d});var o,n=r(43697),i=r(96674),s=r(22974),a=r(70586),l=r(5600),u=(r(75215),r(52011)),h=r(6570),c=r(82971),f=r(36679);let p=o=class extends i.wq{constructor(e){super(e),this.attributeTable=null,this.bandCount=null,this.colormap=null,this.extent=null,this.format=void 0,this.height=null,this.width=null,this.histograms=null,this.keyProperties={},this.multidimensionalInfo=null,this.noDataValue=null,this.pixelSize=null,this.pixelType=null,this.isPseudoSpatialReference=!1,this.spatialReference=null,this.statistics=null,this.storageInfo=null,this.transform=null}get dataType(){const e=this.keyProperties?.DataType?.toLowerCase()??"generic";return"stdtime"===e?"standard-time":e}get nativeExtent(){return this._get("nativeExtent")||this.extent}set nativeExtent(e){e&&this._set("nativeExtent",e)}get nativePixelSize(){if((0,a.Wi)(this.transform)||!this.transform.affectsPixelSize)return this.pixelSize;const e=this.nativeExtent;return{x:e.width/this.width,y:e.height/this.height}}get hasMultidimensionalTranspose(){return!!this.storageInfo?.transposeInfo}clone(){return new o({attributeTable:(0,s.d9)(this.attributeTable),bandCount:this.bandCount,colormap:(0,s.d9)(this.colormap),extent:(0,s.d9)(this.extent),nativePixelSize:(0,s.d9)(this.nativePixelSize),format:this.format,height:this.height,width:this.width,histograms:(0,s.d9)(this.histograms),keyProperties:(0,s.d9)(this.keyProperties),multidimensionalInfo:(0,s.d9)(this.multidimensionalInfo),noDataValue:this.noDataValue,pixelSize:(0,s.d9)(this.pixelSize),pixelType:this.pixelType,isPseudoSpatialReference:this.isPseudoSpatialReference,spatialReference:(0,s.d9)(this.spatialReference),statistics:(0,s.d9)(this.statistics),storageInfo:(0,s.d9)(this.storageInfo),transform:(0,s.d9)(this.transform)})}};(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"attributeTable",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"bandCount",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"colormap",void 0),(0,n._)([(0,l.Cb)({type:String,readOnly:!0})],p.prototype,"dataType",null),(0,n._)([(0,l.Cb)({type:h.Z,json:{write:!0}})],p.prototype,"extent",void 0),(0,n._)([(0,l.Cb)({type:h.Z,json:{write:!0}})],p.prototype,"nativeExtent",null),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"nativePixelSize",null),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"format",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"height",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"width",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"hasMultidimensionalTranspose",null),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"histograms",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"keyProperties",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"multidimensionalInfo",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"noDataValue",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"pixelSize",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"pixelType",void 0),(0,n._)([(0,l.Cb)()],p.prototype,"isPseudoSpatialReference",void 0),(0,n._)([(0,l.Cb)({type:c.Z,json:{write:!0}})],p.prototype,"spatialReference",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"statistics",void 0),(0,n._)([(0,l.Cb)({type:f.Z,json:{write:!0}})],p.prototype,"storageInfo",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"transform",void 0),p=o=(0,n._)([(0,u.j)("esri.layers.support.RasterInfo")],p);const d=p},36679:(e,t,r)=>{r.d(t,{Z:()=>c});var o,n=r(43697),i=r(96674),s=r(22974),a=r(5600),l=(r(75215),r(52011)),u=r(94139);let h=o=class extends i.wq{constructor(){super(...arguments),this.blockWidth=void 0,this.blockHeight=void 0,this.compression=null,this.origin=null,this.firstPyramidLevel=null,this.maximumPyramidLevel=null,this.pyramidScalingFactor=2,this.pyramidBlockWidth=null,this.pyramidBlockHeight=null,this.isVirtualTileInfo=!1,this.tileInfo=null,this.transposeInfo=null,this.blockBoundary=null}clone(){return new o({blockWidth:this.blockWidth,blockHeight:this.blockHeight,compression:this.compression,origin:(0,s.d9)(this.origin),firstPyramidLevel:this.firstPyramidLevel,maximumPyramidLevel:this.maximumPyramidLevel,pyramidResolutions:(0,s.d9)(this.pyramidResolutions),pyramidScalingFactor:this.pyramidScalingFactor,pyramidBlockWidth:this.pyramidBlockWidth,pyramidBlockHeight:this.pyramidBlockHeight,isVirtualTileInfo:this.isVirtualTileInfo,tileInfo:(0,s.d9)(this.tileInfo),transposeInfo:(0,s.d9)(this.transposeInfo),blockBoundary:(0,s.d9)(this.blockBoundary)})}};(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"blockWidth",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"blockHeight",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"compression",void 0),(0,n._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],h.prototype,"origin",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"firstPyramidLevel",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"maximumPyramidLevel",void 0),(0,n._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"pyramidResolutions",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"pyramidScalingFactor",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"pyramidBlockWidth",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"pyramidBlockHeight",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"isVirtualTileInfo",void 0),(0,n._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"tileInfo",void 0),(0,n._)([(0,a.Cb)()],h.prototype,"transposeInfo",void 0),(0,n._)([(0,a.Cb)()],h.prototype,"blockBoundary",void 0),h=o=(0,n._)([(0,l.j)("esri.layers.support.RasterStorageInfo")],h);const c=h},20095:(e,t,r)=>{function o(e,t){let r=0,o="",n=0,i=0;const s=e.length;for(;r<s;)i=e[r++],n=i>>4,n<8?n=1:15===n?(n=4,i=(7&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++]):14===n?(n=3,i=(15&i)<<12|(63&e[r++])<<6|63&e[r++]):(n=2,i=(31&i)<<6|63&e[r++]),(0!==i||t)&&(o+=String.fromCharCode(i));return o}r.d(t,{f:()=>o})},72955:(e,t,r)=>{r.d(t,{Jx:()=>c,zD:()=>a});var o=r(99880);const n=[{pixelType:"S8",size:1,ctor:Int8Array,range:[-128,127]},{pixelType:"U8",size:1,ctor:Uint8Array,range:[0,255]},{pixelType:"S16",size:2,ctor:Int16Array,range:[-32768,32767]},{pixelType:"U16",size:2,ctor:Uint16Array,range:[0,65536]},{pixelType:"S32",size:4,ctor:Int32Array,range:[-2147483648,2147483647]},{pixelType:"U32",size:4,ctor:Uint32Array,range:[0,4294967296]},{pixelType:"F32",size:4,ctor:Float32Array,range:[-34027999387901484e22,34027999387901484e22]},{pixelType:"F64",size:8,ctor:Float64Array,range:[-17976931348623157e292,17976931348623157e292]}];let i=null,s=null;function a(){return i||(i=r.e(6233).then(r.bind(r,26233)).then((e=>e.l)).then((({default:e})=>e({locateFile:e=>(0,o.V)(`esri/layers/support/rasterFormats/${e}`)}))).then((e=>{(function(e){const{_malloc:t,_free:r,_lerc_getBlobInfo:o,_lerc_getDataRanges:i,_lerc_decode_4D:s,asm:a}=e;let h;const c=Object.values(a).find((t=>t&&"buffer"in t&&t.buffer===e.HEAPU8.buffer)),f=e=>{const r=e.map((e=>function(e){return 16+(e>>3<<3)}(e))),o=r.reduce(((e,t)=>e+t)),n=t(o);h=new Uint8Array(c.buffer);let i=r[0];r[0]=n;for(let e=1;e<r.length;e++){const t=r[e];r[e]=r[e-1]+i,i=t}return r};l.getBlobInfo=e=>{const t=new Uint8Array(48),n=new Uint8Array(24),[s,a,l]=f([e.length,t.length,n.length]);h.set(e,s),h.set(t,a),h.set(n,l);let p=o(s,e.length,a,l,12,3);if(p)throw r(s),new Error(`lerc-getBlobInfo: error code is ${p}`);h=new Uint8Array(c.buffer),u(h,a,t),u(h,l,n);const d=new Uint32Array(t.buffer),g=new Float64Array(n.buffer),[m,y,,C,w,b,x,k,v,T,S]=d,A={version:m,depthCount:T,width:C,height:w,validPixelCount:x,bandCount:b,blobSize:k,maskCount:v,dataType:y,minValue:g[0],maxValue:g[1],maxZerror:g[2],statistics:[],bandCountWithNoData:S};if(S)return A;if(1===T&&1===b)return r(s),A.statistics.push({minValue:g[0],maxValue:g[1]}),A;const I=T*b*8,P=new Uint8Array(I),M=new Uint8Array(I);let E=s,D=0,R=0,L=!1;if(h.byteLength<s+2*I?(r(s),L=!0,[E,D,R]=f([e.length,I,I]),h.set(e,E)):[D,R]=f([I,I]),h.set(P,D),h.set(M,R),p=i(E,e.length,T,b,D,R),p)throw r(E),L||r(D),new Error(`lerc-getDataRanges: error code is ${p}`);h=new Uint8Array(c.buffer),u(h,D,P),u(h,R,M);const _=new Float64Array(P.buffer),B=new Float64Array(M.buffer),U=A.statistics;for(let e=0;e<b;e++)if(T>1){const t=_.slice(e*T,(e+1)*T),r=B.slice(e*T,(e+1)*T),o=Math.min.apply(null,t),n=Math.max.apply(null,r);U.push({minValue:o,maxValue:n,depthStats:{minValues:t,maxValues:r}})}else U.push({minValue:_[e],maxValue:B[e]});return r(E),L||r(D),A},l.decode=(e,t)=>{const{maskCount:o,depthCount:i,bandCount:a,width:l,height:p,dataType:d,bandCountWithNoData:g}=t,m=n[d],y=l*p,C=new Uint8Array(y*a),w=y*i*a*m.size,b=new Uint8Array(w),x=new Uint8Array(a),k=new Uint8Array(8*a),[v,T,S,A,I]=f([e.length,C.length,b.length,x.length,k.length]);h.set(e,v),h.set(C,T),h.set(b,S),h.set(x,A),h.set(k,I);const P=s(v,e.length,o,T,i,l,p,a,d,S,A,I);if(P)throw r(v),new Error(`lerc-decode: error code is ${P}`);h=new Uint8Array(c.buffer),u(h,S,b),u(h,T,C);let M=null;if(g){u(h,A,x),u(h,I,k),M=[];const e=new Float64Array(k.buffer);for(let t=0;t<x.length;t++)M.push(x[t]?e[t]:null)}return r(v),{data:b,maskData:C,noDataValues:M}}})(e),s=!0})),i)}const l={getBlobInfo:null,decode:null};function u(e,t,r){r.set(e.slice(t,t+r.length))}function h(e,t,r,o,n){if(r<2)return e;const i=new o(t*r);if(n)for(let o=0,n=0;o<t;o++)for(let s=0,a=o;s<r;s++,a+=t)i[a]=e[n++];else for(let o=0,n=0;o<t;o++)for(let s=0,a=o;s<r;s++,a+=t)i[n++]=e[a];return i}function c(e,t={}){const r=t.inputOffset??0,o=e instanceof Uint8Array?e.subarray(r):new Uint8Array(e,r),i=l.getBlobInfo(o),{data:s,maskData:a,noDataValues:u}=l.decode(o,i),{width:c,height:f,bandCount:p,depthCount:d,dataType:g,maskCount:m,statistics:y}=i,C=n[g],w=new C.ctor(s.buffer),b=[],x=[],k=c*f,v=k*d;for(let e=0;e<p;e++){const r=w.subarray(e*v,(e+1)*v);if(t.returnInterleaved)b.push(r);else{const e=h(r,k,d,C.ctor,!0);b.push(e)}x.push(a.subarray(e*v,(e+1)*v))}const T=0===m?null:1===m?x[0]:new Uint8Array(k);if(m>1){T.set(x[0]);for(let e=1;e<x.length;e++){const t=x[e];for(let e=0;e<k;e++)T[e]=T[e]&t[e]}}const{noDataValue:S}=t,A=null!=S&&C.range[0]<=S&&C.range[1]>=S;if(m>0&&A)for(let e=0;e<p;e++){const t=b[e],r=x[e]||T;for(let e=0;e<k;e++)0===r[e]&&(t[e]=S)}const I=m===p&&p>1?x:null,{pixelType:P}=C;return{width:c,height:f,bandCount:p,pixelType:P,depthCount:d,statistics:y,pixels:b,mask:T,bandMasks:I,noDataValues:u}}},88781:(e,t,r)=>{function o(){const e=[];for(let t=0;t<=257;t++)e[t]=[t];return e}function n(e,t){for(let r=0;r<t.length;r++)e.push(t[r])}r.d(t,{J:()=>s});const i=new Set;function s(e,t,r,s=!0){const a=function(e,t,r,o=!0){if(t%4!=0||r%4!=0){const n=new ArrayBuffer(4*Math.ceil(r/4)),i=new Uint8Array(n),s=new Uint8Array(e,t,r);if(o)for(let e=0;e<i.length;e+=4)i[e]=s[e+3],i[e+1]=s[e+2],i[e+2]=s[e+1],i[e+3]=s[e];else i.set(s);return new Uint32Array(i.buffer)}if(o){const o=new Uint8Array(e,t,r),n=new Uint8Array(o.length);for(let e=0;e<n.length;e+=4)n[e]=o[e+3],n[e+1]=o[e+2],n[e+2]=o[e+1],n[e+3]=o[e];return new Uint32Array(n.buffer)}return new Uint32Array(e,t,r/4)}(e,t,r,s);let l=9,u=o(),h=32,c=u.length,f=[],p=1,d=a[0],g=0;const m=a.length,y=8*(4*m-r),C=[];for(;null!=d;){if(h>=l)h-=l,g=d>>>32-l,d<<=l;else{g=d>>>32-h,d=a[p++];const e=l-h;h=32-e,g=(g<<e)+(d>>>h),d<<=e}if(257===g)break;if(256===g){l=9,u=o(),c=u.length,f=[];continue}const e=u[g];if(null==e){if(g>u.length)throw new Error("data integrity issue: code does not exist on code page");f.push(f[0]),u[c++]=f.slice(),n(C,f)}else n(C,e),f.push(e[0]),f.length>1&&(u[c++]=f.slice()),f=e.slice();if(i.has(c)&&l++,0===h&&(d=a[p++],h=32),p>m||p===m&&h<=y)break}return new Uint8Array(C)}i.add(511),i.add(1023),i.add(2047),i.add(4095),i.add(8191)},75993:(e,t,r)=>{r.d(t,{J:()=>D,y:()=>E});var o=r(20102),n=r(70586),i=r(5847),s=r(95330),a=r(80899);class l{constructor(e){this._canvas=null,this._ctx=null,e&&(this._canvas=e.canvas,this._ctx=e.ctx||e.canvas&&e.canvas.getContext("2d"))}decode(e,t,r){if(!e||e.byteLength<10)throw new o.Z("imagecanvasdecoder: decode","required a valid encoded data as input.");let{width:n=0,height:i=0,format:a}=t;const{applyJpegMask:u}=t;if(u&&(!n||!i))throw new o.Z("imagecanvasdecoder: decode","image width and height are needed to apply jpeg mask directly to canvas");return new Promise(((o,h)=>{let c=null;"jpg"===a&&u&&(c=l._getMask(e,{width:n,height:i}));const f=new Blob([new Uint8Array(e)],{type:"image/"+a=="jpg"?"jpeg":a}),p=URL.createObjectURL(f),d=new Image;let g;d.src=p,d.onload=()=>{if(URL.revokeObjectURL(p),(0,s.Hc)(r))return void h((0,s.zE)());n=d.width,i=d.height,this._canvas&&this._ctx?(this._canvas.width===n&&this._canvas.height===i||(this._canvas.width=n,this._canvas.height=i),this._ctx.clearRect(0,0,n,i)):(this._canvas=document.createElement("canvas"),this._canvas.width=n,this._canvas.height=i,this._ctx=this._canvas.getContext("2d")),this._ctx.drawImage(d,0,0);const e=this._ctx.getImageData(0,0,n,i);let a;if(g=e.data,t.renderOnCanvas){if(c)for(a=0;a<c.length;a++)c[a]?g[4*a+3]=255:g[4*a+3]=0;return this._ctx.putImageData(e,0,0),void o(null)}const l=n*i,u=new Uint8Array(l),f=new Uint8Array(l),m=new Uint8Array(l);if(c)for(a=0;a<l;a++)u[a]=g[4*a],f[a]=g[4*a+1],m[a]=g[4*a+2];else for(c=new Uint8Array(l),a=0;a<l;a++)u[a]=g[4*a],f[a]=g[4*a+1],m[a]=g[4*a+2],c[a]=g[4*a+3];o({width:n,height:i,pixels:[u,f,m],mask:c,pixelType:"u8"})},d.onerror=()=>{URL.revokeObjectURL(p),h("cannot load image")}}))}static _getMask(e,t){let r=null;try{const o=new Uint8Array(e),n=Math.ceil(o.length/2);let i=0;const s=o.length-2;for(i=n;i<s&&(255!==o[i]||217!==o[i+1]);i++);if(i+=2,i<o.length-1){const e=new a.Z(o.subarray(i)).getBytes();r=new Uint8Array(t.width*t.height);let n=0;for(let t=0;t<e.length;t++)for(let o=7;o>=0;o--)r[n++]=e[t]>>o&1}}catch(e){}return r}}var u=r(97575);class h{static decode(e,t=!1){const r=new Uint8Array(e),o=new u.J;o.parse(r);const{width:n,height:i,numComponents:s,eof:l}=o,h=o.getData(n,i,!0),c=n*i;let f,p=null,d=0,g=0,m=0;if(!t&&l<r.length-1)try{const e=new a.Z(r.subarray(l)).getBytes();p=new Uint8Array(c);let t=0;for(d=0;d<e.length;d++)for(m=7;m>=0;m--)p[t++]=e[d]>>m&1}catch{}if(1===s&&h.length===n*i){const e=new Uint8Array(h.buffer);f=[e,e,e]}else{for(f=[],d=0;d<3;d++)f.push(new Uint8Array(c));for(m=0,g=0;g<c;g++)for(d=0;d<3;d++)f[d][g]=h[m++]}return{width:n,height:i,pixels:f,mask:p}}}var c=r(72955),f=r(88781),p=r(81578);const d=(e,t)=>{const r=t.width*t.height,o=t.pixelType;return Math.floor(e.byteLength/(r*g(o)))},g=e=>{let t=1;switch(e){case Uint8Array:case Int8Array:t=1;break;case Uint16Array:case Int16Array:t=2;break;case Uint32Array:case Int32Array:case Float32Array:t=4;break;case Float64Array:t=8}return t};class m{static decode(e,t){const r=t.pixelType,o=[],n=t.width*t.height,i=d(e,t),{bandIds:s,format:a}=t,l=s&&s.length||d(e,t),u=e.byteLength-e.byteLength%(n*g(r)),h=new r(e,0,n*i);let c,f,p,m,y=null;if("bip"===a)for(c=0;c<l;c++){for(p=new r(n),m=s?s[c]:c,f=0;f<n;f++)p[f]=h[f*i+m];o.push(p)}else if("bsq"===a)for(c=0;c<l;c++)m=s?s[c]:c,o.push(h.subarray(m*n,(m+1)*n));return u<e.byteLength-1&&(y=((e,t)=>{if(8*e.byteLength<t)return null;const r=new Uint8Array(e,0,Math.ceil(t/8)),o=new Uint8Array(t);let n=0,i=0,s=0,a=0;for(s=0;s<r.length-1;s++)for(i=r[s],a=7;a>=0;a--)o[n++]=i>>a&1;for(a=7;n<t-1;)i=r[r.length-1],o[n++]=i>>a&1,a--;return o})(e.slice(u),n)),{pixels:o,mask:y}}}var y=r(94793),C=r(48279),w=function(e){var t,r,o;function n(e){var t,r,o,n,i,s,a,l,u,h,c,f,p;for(this.data=e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},i=null;;){switch(t=this.readUInt32(),l=function(){var e,t;for(t=[],e=0;e<4;++e)t.push(String.fromCharCode(this.data[this.pos++]));return t}.call(this).join(""),l){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(t);break;case"fcTL":i&&this.animation.frames.push(i),this.pos+=4,i={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},n=this.readUInt16(),o=this.readUInt16()||100,i.delay=1e3*n/o,i.disposeOp=this.data[this.pos++],i.blendOp=this.data[this.pos++],i.data=[];break;case"IDAT":case"fdAT":for("fdAT"===l&&(this.pos+=4,t-=4),e=(null!=i?i.data:void 0)||this.imgData,c=0;0<=t?c<t:c>t;0<=t?++c:--c)e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(this.transparency.indexed=this.read(t),(u=255-this.transparency.indexed.length)>0)for(f=0;0<=u?f<u:f>u;0<=u?++f:--f)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":s=(h=this.read(t)).indexOf(0),a=String.fromCharCode.apply(String,h.slice(0,s)),this.text[a]=String.fromCharCode.apply(String,h.slice(s+1));break;case"IEND":return i&&this.animation.frames.push(i),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,r=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*r,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}return n.load=function(e,t,r){var o;return"function"==typeof t&&(r=t),(o=new XMLHttpRequest).open("GET",e,!0),o.responseType="arraybuffer",o.onload=function(){var e;return e=new n(new Uint8Array(o.response||o.mozResponseArrayBuffer)),"function"==typeof(null!=t?t.getContext:void 0)&&e.render(t),"function"==typeof r?r(e):void 0},o.send(null)},n.prototype.read=function(e){var t,r;for(r=[],t=0;0<=e?t<e:t>e;0<=e?++t:--t)r.push(this.data[this.pos++]);return r},n.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.decodePixels=function(e){var t,r,o,n,i,s,l,u,h,c,f,p,d,g,m,y,C,w,b,x,k,v,T;if(null==e&&(e=this.imgData),0===e.length)return new Uint8Array(0);for(e=(e=new a.Z(e)).getBytes(),y=(p=this.pixelBitlength/8)*this.width,d=new Uint8Array(y*this.height),s=e.length,m=0,g=0,r=0;g<s;){switch(e[g++]){case 0:for(n=b=0;b<y;n=b+=1)d[r++]=e[g++];break;case 1:for(n=x=0;x<y;n=x+=1)t=e[g++],i=n<p?0:d[r-p],d[r++]=(t+i)%256;break;case 2:for(n=k=0;k<y;n=k+=1)t=e[g++],o=(n-n%p)/p,C=m&&d[(m-1)*y+o*p+n%p],d[r++]=(C+t)%256;break;case 3:for(n=v=0;v<y;n=v+=1)t=e[g++],o=(n-n%p)/p,i=n<p?0:d[r-p],C=m&&d[(m-1)*y+o*p+n%p],d[r++]=(t+Math.floor((i+C)/2))%256;break;case 4:for(n=T=0;T<y;n=T+=1)t=e[g++],o=(n-n%p)/p,i=n<p?0:d[r-p],0===m?C=w=0:(C=d[(m-1)*y+o*p+n%p],w=o&&d