@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
1 lines • 159 kB
JavaScript
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[984,1053],{61294:(t,e,r)=>{r.d(e,{J:()=>s});var n,o=r(11053),i={exports:{}};const s=(0,o.g)(function(){return n||(n=1,t=i,e=function(){var t=function(){function t(t){this.message="JPEG error: "+t}return t.prototype=new Error,t.prototype.name="JpegError",t.constructor=t,t}();return function(){if(!self||!self.Uint8ClampedArray)return null;var e=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,n=799,o=3406,i=2276,s=1567,a=3784,l=5793,u=2896;function c(){this.decodeTransform=null,this.colorTransform=-1}function h(t,e){for(var r,n,o=0,i=[],s=16;s>0&&!t[s-1];)s--;i.push({children:[],index:0});var a,l=i[0];for(r=0;r<s;r++){for(n=0;n<t[r];n++){for((l=i.pop()).children[l.index]=e[o];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;o++}r+1<s&&(i.push(a={children:[],index:0}),l.children[l.index]=a.children,l=a)}return i[0].children}function f(t,e,r){return 64*((t.blocksPerLine+1)*e+r)}function p(r,n,o,i,s,a,l,u,c){var h=o.mcusPerLine,p=o.progressive,d=n,m=0,y=0;function w(){if(y>0)return y--,m>>y&1;if(255===(m=r[n++])){var e=r[n++];if(e)throw new t("unexpected marker "+(m<<8|e).toString(16))}return y=7,m>>>7}function b(e){for(var r=e;;){if("number"==typeof(r=r[w()]))return r;if("object"!=typeof r)throw new t("invalid huffman sequence")}}function C(t){for(var e=0;t>0;)e=e<<1|w(),t--;return e}function v(t){if(1===t)return 1===w()?1:-1;var e=C(t);return e>=1<<t-1?e:e+(-1<<t)+1}var x,A=0,k=0;function S(t,e,r,n,o){var i=r%h;e(t,f(t,(r/h|0)*t.v+n,i*t.h+o))}function M(t,e,r){e(t,f(t,r/t.blocksPerLine|0,r%t.blocksPerLine))}var T,I,P,E,R,L,U=i.length;L=p?0===a?0===u?function(t,e){var r=b(t.huffmanTableDC),n=0===r?0:v(r)<<c;t.blockData[e]=t.pred+=n}:function(t,e){t.blockData[e]|=w()<<c}:0===u?function(t,r){if(A>0)A--;else for(var n=a,o=l;n<=o;){var i=b(t.huffmanTableAC),s=15&i,u=i>>4;if(0!==s){var h=e[n+=u];t.blockData[r+h]=v(s)*(1<<c),n++}else{if(u<15){A=C(u)+(1<<u)-1;break}n+=16}}}:function(r,n){for(var o,i,s=a,u=l,h=0;s<=u;){var f=e[s];switch(k){case 0:if(h=(i=b(r.huffmanTableAC))>>4,0==(o=15&i))h<15?(A=C(h)+(1<<h),k=4):(h=16,k=1);else{if(1!==o)throw new t("invalid ACn encoding");x=v(o),k=h?2:3}continue;case 1:case 2:r.blockData[n+f]?r.blockData[n+f]+=w()<<c:0==--h&&(k=2===k?3:0);break;case 3:r.blockData[n+f]?r.blockData[n+f]+=w()<<c:(r.blockData[n+f]=x<<c,k=0);break;case 4:r.blockData[n+f]&&(r.blockData[n+f]+=w()<<c)}s++}4===k&&0==--A&&(k=0)}:function(t,r){var n=b(t.huffmanTableDC),o=0===n?0:v(n);t.blockData[r]=t.pred+=o;for(var i=1;i<64;){var s=b(t.huffmanTableAC),a=15&s,l=s>>4;if(0!==a){var u=e[i+=l];t.blockData[r+u]=v(a),i++}else{if(l<15)break;i+=16}}};var D,O,N,B,G=0;for(O=1===U?i[0].blocksPerLine*i[0].blocksPerColumn:h*o.mcusPerColumn;G<O;){var _=s?Math.min(O-G,s):O;for(I=0;I<U;I++)i[I].pred=0;if(A=0,1===U)for(T=i[0],R=0;R<_;R++)M(T,L,G),G++;else for(R=0;R<_;R++){for(I=0;I<U;I++)for(N=(T=i[I]).h,B=T.v,P=0;P<B;P++)for(E=0;E<N;E++)S(T,L,G,P,E);G++}y=0,(D=g(r,n))&&D.invalid&&(console.log("decodeScan - unexpected MCU data, next marker is: "+D.invalid),n=D.offset);var F=D&&D.marker;if(!F||F<=65280)throw new t("marker was not found");if(!(F>=65488&&F<=65495))break;n+=2}return(D=g(r,n))&&D.invalid&&(console.log("decodeScan - unexpected Scan data, next marker is: "+D.invalid),n=D.offset),n-d}function d(e,c,h){var f,p,d,m,g,y,w,b,C,v,x,A,k,S,M,T,I,P=e.quantizationTable,E=e.blockData;if(!P)throw new t("missing required Quantization Table.");for(var R=0;R<64;R+=8)C=E[c+R],v=E[c+R+1],x=E[c+R+2],A=E[c+R+3],k=E[c+R+4],S=E[c+R+5],M=E[c+R+6],T=E[c+R+7],C*=P[R],v|x|A|k|S|M|T?(v*=P[R+1],x*=P[R+2],A*=P[R+3],k*=P[R+4],S*=P[R+5],M*=P[R+6],T*=P[R+7],p=(f=(f=l*C+128>>8)+(p=l*k+128>>8)+1>>1)-p,I=(d=x)*a+(m=M)*s+128>>8,d=d*s-m*a+128>>8,w=(g=(g=u*(v-T)+128>>8)+(w=S<<4)+1>>1)-w,y=(b=(b=u*(v+T)+128>>8)+(y=A<<4)+1>>1)-y,m=(f=f+(m=I)+1>>1)-m,d=(p=p+d+1>>1)-d,I=g*i+b*o+2048>>12,g=g*o-b*i+2048>>12,b=I,I=y*n+w*r+2048>>12,y=y*r-w*n+2048>>12,w=I,h[R]=f+b,h[R+7]=f-b,h[R+1]=p+w,h[R+6]=p-w,h[R+2]=d+y,h[R+5]=d-y,h[R+3]=m+g,h[R+4]=m-g):(I=l*C+512>>10,h[R]=I,h[R+1]=I,h[R+2]=I,h[R+3]=I,h[R+4]=I,h[R+5]=I,h[R+6]=I,h[R+7]=I);for(var L=0;L<8;++L)C=h[L],(v=h[L+8])|(x=h[L+16])|(A=h[L+24])|(k=h[L+32])|(S=h[L+40])|(M=h[L+48])|(T=h[L+56])?(p=(f=4112+((f=l*C+2048>>12)+(p=l*k+2048>>12)+1>>1))-p,I=(d=x)*a+(m=M)*s+2048>>12,d=d*s-m*a+2048>>12,m=I,w=(g=(g=u*(v-T)+2048>>12)+(w=S)+1>>1)-w,y=(b=(b=u*(v+T)+2048>>12)+(y=A)+1>>1)-y,I=g*i+b*o+2048>>12,g=g*o-b*i+2048>>12,b=I,I=y*n+w*r+2048>>12,y=y*r-w*n+2048>>12,C=(C=(f=f+m+1>>1)+b)<16?0:C>=4080?255:C>>4,v=(v=(p=p+d+1>>1)+(w=I))<16?0:v>=4080?255:v>>4,x=(x=(d=p-d)+y)<16?0:x>=4080?255:x>>4,A=(A=(m=f-m)+g)<16?0:A>=4080?255:A>>4,k=(k=m-g)<16?0:k>=4080?255:k>>4,S=(S=d-y)<16?0:S>=4080?255:S>>4,M=(M=p-w)<16?0:M>=4080?255:M>>4,T=(T=f-b)<16?0:T>=4080?255:T>>4,E[c+L]=C,E[c+L+8]=v,E[c+L+16]=x,E[c+L+24]=A,E[c+L+32]=k,E[c+L+40]=S,E[c+L+48]=M,E[c+L+56]=T):(I=(I=l*C+8192>>14)<-2040?0:I>=2024?255:I+2056>>4,E[c+L]=I,E[c+L+8]=I,E[c+L+16]=I,E[c+L+24]=I,E[c+L+32]=I,E[c+L+40]=I,E[c+L+48]=I,E[c+L+56]=I)}function m(t,e){for(var r=e.blocksPerLine,n=e.blocksPerColumn,o=new Int16Array(64),i=0;i<n;i++)for(var s=0;s<r;s++)d(e,f(e,i,s),o);return e.blockData}function g(t,e,r){function n(e){return t[e]<<8|t[e+1]}var o=t.length-1,i=r<e?r:e;if(e>=o)return null;var s=n(e);if(s>=65472&&s<=65534)return{invalid:null,marker:s,offset:e};for(var a=n(i);!(a>=65472&&a<=65534);){if(++i>=o)return null;a=n(i)}return{invalid:s.toString(16),marker:a,offset:i}}return c.prototype={parse:function(r){function n(){var t=r[l]<<8|r[l+1];return l+=2,t}function o(){var t=n(),e=l+t-2,o=g(r,e,l);o&&o.invalid&&(console.log("readDataBlock - incorrect length, next marker is: "+o.invalid),e=o.offset);var i=r.subarray(l,e);return l+=i.length,i}function i(t){for(var e=Math.ceil(t.samplesPerLine/8/t.maxH),r=Math.ceil(t.scanLines/8/t.maxV),n=0;n<t.components.length;n++){G=t.components[n];var o=Math.ceil(Math.ceil(t.samplesPerLine/8)*G.h/t.maxH),i=Math.ceil(Math.ceil(t.scanLines/8)*G.v/t.maxV),s=e*G.h,a=r*G.v*64*(s+1);G.blockData=new Int16Array(a),G.blocksPerLine=o,G.blocksPerColumn=i}t.mcusPerLine=e,t.mcusPerColumn=r}var s,a,l=0,u=null,c=null,f=[],d=[],y=[],w=n();if(65496!==w)throw new t("SOI not found");for(w=n();65497!==w;){var b,C,v;switch(w){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 x=o();65504===w&&74===x[0]&&70===x[1]&&73===x[2]&&70===x[3]&&0===x[4]&&(u={version:{major:x[5],minor:x[6]},densityUnits:x[7],xDensity:x[8]<<8|x[9],yDensity:x[10]<<8|x[11],thumbWidth:x[12],thumbHeight:x[13],thumbData:x.subarray(14,14+3*x[12]*x[13])}),65518===w&&65===x[0]&&100===x[1]&&111===x[2]&&98===x[3]&&101===x[4]&&(c={version:x[5]<<8|x[6],flags0:x[7]<<8|x[8],flags1:x[9]<<8|x[10],transformCode:x[11]});break;case 65499:for(var A=n()+l-2;l<A;){var k=r[l++],S=new Uint16Array(64);if(k>>4){if(k>>4!=1)throw new t("DQT - invalid table spec");for(C=0;C<64;C++)S[e[C]]=n()}else for(C=0;C<64;C++)S[e[C]]=r[l++];f[15&k]=S}break;case 65472:case 65473:case 65474:if(s)throw new t("Only single frame JPEGs supported");n(),(s={}).extended=65473===w,s.progressive=65474===w,s.precision=r[l++],s.scanLines=n(),s.samplesPerLine=n(),s.components=[],s.componentIds={};var M,T=r[l++],I=0,P=0;for(b=0;b<T;b++){M=r[l];var E=r[l+1]>>4,R=15&r[l+1];I<E&&(I=E),P<R&&(P=R);var L=r[l+2];v=s.components.push({h:E,v:R,quantizationId:L,quantizationTable:null}),s.componentIds[M]=v-1,l+=3}s.maxH=I,s.maxV=P,i(s);break;case 65476:var U=n();for(b=2;b<U;){var D=r[l++],O=new Uint8Array(16),N=0;for(C=0;C<16;C++,l++)N+=O[C]=r[l];var B=new Uint8Array(N);for(C=0;C<N;C++,l++)B[C]=r[l];b+=17+N,(D>>4?d:y)[15&D]=h(O,B)}break;case 65501:n(),a=n();break;case 65498:n();var G,_=r[l++],F=[];for(b=0;b<_;b++){var V=s.componentIds[r[l++]];G=s.components[V];var z=r[l++];G.huffmanTableDC=y[z>>4],G.huffmanTableAC=d[15&z],F.push(G)}var j=r[l++],W=r[l++],Z=r[l++],H=p(r,l,s,F,a,j,W,Z>>4,15&Z);l+=H;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 t("unknown marker "+w.toString(16))}w=n()}for(this.width=s.samplesPerLine,this.height=s.scanLines,this.jfif=u,this.eof=l,this.adobe=c,this.components=[],b=0;b<s.components.length;b++){var q=f[(G=s.components[b]).quantizationId];q&&(G.quantizationTable=q),this.components.push({output:m(0,G),scaleX:G.h/s.maxH,scaleY:G.v/s.maxV,blocksPerLine:G.blocksPerLine,blocksPerColumn:G.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData:function(t,e){var r,n,o,i,s,a,l,u,c,h,f,p=this.width/t,d=this.height/e,m=0,g=this.components.length,y=t*e*g,w=new Uint8ClampedArray(y),b=new Uint32Array(t),C=4294967288;for(l=0;l<g;l++){for(n=(r=this.components[l]).scaleX*p,o=r.scaleY*d,m=l,f=r.output,i=r.blocksPerLine+1<<3,s=0;s<t;s++)u=0|s*n,b[s]=(u&C)<<3|7&u;for(a=0;a<e;a++)for(h=i*((u=0|a*o)&C)|(7&u)<<3,s=0;s<t;s++)w[m]=f[h+b[s]],m+=g}var v=this.decodeTransform;if(v)for(l=0;l<y;)for(u=0,c=0;u<g;u++,l++,c+=2)w[l]=(w[l]*v[c]>>8)+v[c+1];return w},_isColorConversionNeeded:function(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this.colorTransform:1===this.colorTransform},_convertYccToRgb:function(t){for(var e,r,n,o=0,i=t.length;o<i;o+=3)e=t[o],r=t[o+1],n=t[o+2],t[o]=e-179.456+1.402*n,t[o+1]=e+135.459-.344*r-.714*n,t[o+2]=e-226.816+1.772*r;return t},_convertYcckToRgb:function(t){for(var e,r,n,o,i=0,s=0,a=t.length;s<a;s+=4)e=t[s],r=t[s+1],n=t[s+2],o=t[s+3],t[i++]=r*(-660635669420364e-19*r+.000437130475926232*n-54080610064599e-18*e+.00048449797120281*o-.154362151871126)-122.67195406894+n*(-.000957964378445773*n+.000817076911346625*e-.00477271405408747*o+1.53380253221734)+e*(.000961250184130688*e-.00266257332283933*o+.48357088451265)+o*(-.000336197177618394*o+.484791561490776),t[i++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*n+.000659397001245577*e+.000426105652938837*o-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*e+.000770482631801132*o-.151051492775562)+e*(.00126935368114843*e-.00265090189010898*o+.25802910206845)+o*(-.000318913117588328*o-.213742400323665),t[i++]=r*(-.000570115196973677*r-263409051004589e-19*n+.0020741088115012*e-.00288260236853442*o+.814272968359295)-20.810012546947+n*(-153496057440975e-19*n-.000132689043961446*e+.000560833691242812*o-.195152027534049)+e*(.00174418132927582*e-.00255243321439347*o+.116935020465145)+o*(-.000343531996510555*o+.24165260232407);return t},_convertYcckToCmyk:function(t){for(var e,r,n,o=0,i=t.length;o<i;o+=4)e=t[o],r=t[o+1],n=t[o+2],t[o]=434.456-e-1.402*n,t[o+1]=119.541-e+.344*r+.714*n,t[o+2]=481.816-e-1.772*r;return t},_convertCmykToRgb:function(t){for(var e,r,n,o,i=0,s=1/255,a=0,l=t.length;a<l;a+=4)e=t[a]*s,r=t[a+1]*s,n=t[a+2]*s,o=t[a+3]*s,t[i++]=255+e*(-4.387332384609988*e+54.48615194189176*r+18.82290502165302*n+212.25662451639585*o-285.2331026137004)+r*(1.7149763477362134*r-5.6096736904047315*n-17.873870861415444*o-5.497006427196366)+n*(-2.5217340131683033*n-21.248923337353073*o+17.5119270841813)-o*(21.86122147463605*o+189.48180835922747),t[i++]=255+e*(8.841041422036149*e+60.118027045597366*r+6.871425592049007*n+31.159100130055922*o-79.2970844816548)+r*(-15.310361306967817*r+17.575251261109482*n+131.35250912493976*o-190.9453302588951)+n*(4.444339102852739*n+9.8632861493405*o-24.86741582555878)-o*(20.737325471181034*o+187.80453709719578),t[i++]=255+e*(.8842522430003296*e+8.078677503112928*r+30.89978309703729*n-.23883238689178934*o-14.183576799673286)+r*(10.49593273432072*r+63.02378494754052*n+50.606957656360734*o-112.23884253719248)+n*(.03296041114873217*n+115.60384449646641*o-193.58209356861505)-o*(22.33816807309886*o+180.12613974708367);return t},getData:function(e,r,n){if(this.numComponents>4)throw new t("Unsupported color mode");var o=this._getLinearizedBlockData(e,r);if(1===this.numComponents&&n){for(var i=o.length,s=new Uint8ClampedArray(3*i),a=0,l=0;l<i;l++){var u=o[l];s[a++]=u,s[a++]=u,s[a++]=u}return s}if(3===this.numComponents&&this._isColorConversionNeeded())return this._convertYccToRgb(o);if(4===this.numComponents){if(this._isColorConversionNeeded())return n?this._convertYcckToRgb(o):this._convertYcckToCmyk(o);if(n)return this._convertCmykToRgb(o)}return o}},c}()},void 0!==(r=e())&&(t.exports=r)),i.exports;var t,e,r}())},68060:(t,e,r)=>{r.d(e,{Z:()=>s});var n,o=r(11053),i={exports:{}};const s=(0,o.g)(function(){return n||(n=1,e=i,void 0!==(t=function(){function t(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return t.prototype={ensureBuffer:function(t){var e=this.buffer,r=e?e.byteLength:0;if(t<r)return e;for(var n=512;n<t;)n<<=1;for(var o=new Uint8Array(n),i=0;i<r;++i)o[i]=e[i];return this.buffer=o},getByte:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(t){var e=this.pos;if(t){this.ensureBuffer(e+t);for(var r=e+t;!this.eof&&this.bufferLength<r;)this.readBlock();var n=this.bufferLength;r>n&&(r=n)}else{for(;!this.eof;)this.readBlock();r=this.bufferLength}return this.pos=r,this.buffer.subarray(e,r)},lookChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(t,e,r){for(var n=t+e;this.bufferLength<=n&&!this.eof;)this.readBlock();return new Stream(this.buffer,t,e,r)},skip:function(t){t||(t=1),this.pos+=t},reset:function(){this.pos=0}},t}(),r=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]),r=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]),n=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]),o=[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(t){throw new Error(t)}function a(e){var r=0,n=e[r++],o=e[r++];-1!=n&&-1!=o||s("Invalid header in flate stream"),8!=(15&n)&&s("Unknown compression method in flate stream"),((n<<8)+o)%31!=0&&s("Bad FCHECK in flate stream"),32&o&&s("FDICT bit set in flate stream"),this.bytes=e,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,t.call(this)}return a.prototype=Object.create(t.prototype),a.prototype.getBits=function(t){for(var e,r=this.codeSize,n=this.codeBuf,o=this.bytes,i=this.bytesPos;r<t;)void 0===(e=o[i++])&&s("Bad encoding in flate stream"),n|=e<<r,r+=8;return e=n&(1<<t)-1,this.codeBuf=n>>t,this.codeSize=r-=t,this.bytesPos=i,e},a.prototype.getCode=function(t){for(var e=t[0],r=t[1],n=this.codeSize,o=this.codeBuf,i=this.bytes,a=this.bytesPos;n<r;){var l;void 0===(l=i[a++])&&s("Bad encoding in flate stream"),o|=l<<n,n+=8}var u=e[o&(1<<r)-1],c=u>>16,h=65535&u;return(0==n||n<c||0==c)&&s("Bad encoding in flate stream"),this.codeBuf=o>>c,this.codeSize=n-c,this.bytesPos=a,h},a.prototype.generateHuffmanTable=function(t){for(var e=t.length,r=0,n=0;n<e;++n)t[n]>r&&(r=t[n]);for(var o=1<<r,i=new Uint32Array(o),s=1,a=0,l=2;s<=r;++s,a<<=1,l<<=1)for(var u=0;u<e;++u)if(t[u]==s){var c=0,h=a;for(n=0;n<s;++n)c=c<<1|1&h,h>>=1;for(n=c;n<o;n+=l)i[n]=s<<16|u;++a}return[i,r]},a.prototype.readBlock=function(){function t(t,e,r,n,o){for(var i=t.getBits(r)+n;i-- >0;)e[d++]=o}var a=this.getBits(3);if(1&a&&(this.eof=!0),0!=(a>>=1)){var l,u;if(1==a)l=o,u=i;else if(2==a){for(var c=this.getBits(5)+257,h=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 m=this.generateHuffmanTable(p),g=0,y=(d=0,c+h),w=new Array(y);d<y;){var b=this.getCode(m);16==b?t(this,w,2,3,g):17==b?t(this,w,3,3,g=0):18==b?t(this,w,7,11,g=0):w[d++]=g=b}l=this.generateHuffmanTable(w.slice(0,c)),u=this.generateHuffmanTable(w.slice(c,y))}else s("Unknown block type in flate stream");for(var C=(L=this.buffer)?L.length:0,v=this.bufferLength;;){var x=this.getCode(l);if(x<256)v+1>=C&&(C=(L=this.ensureBuffer(v+1)).length),L[v++]=x;else{if(256==x)return void(this.bufferLength=v);var A=(x=r[x-=257])>>16;A>0&&(A=this.getBits(A)),g=(65535&x)+A,x=this.getCode(u),(A=(x=n[x])>>16)>0&&(A=this.getBits(A));var k=(65535&x)+A;v+g>=C&&(C=(L=this.ensureBuffer(v+g)).length);for(var S=0;S<g;++S,++v)L[v]=L[v-k]}}}else{var M,T=this.bytes,I=this.bytesPos;void 0===(M=T[I++])&&s("Bad block header in flate stream");var P=M;void 0===(M=T[I++])&&s("Bad block header in flate stream"),P|=M<<8,void 0===(M=T[I++])&&s("Bad block header in flate stream");var E=M;void 0===(M=T[I++])&&s("Bad block header in flate stream"),(E|=M<<8)!=(65535&~P)&&s("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var R=this.bufferLength,L=this.ensureBuffer(R+P),U=R+P;this.bufferLength=U;for(var D=R;D<U;++D){if(void 0===(M=T[I++])){this.eof=!0;break}L[D]=M}this.bytesPos=I}},a}())&&(e.exports=r)),i.exports;var t,e,r}())},11053:(t,e,r)=>{r.d(e,{c:()=>n,g:()=>o});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},85334:(t,e,r)=>{r.d(e,{$:()=>y,IB:()=>s,Iy:()=>A,N2:()=>w,RH:()=>C,ZD:()=>b});var n=r(68197),o=r(4576),i=r(4718);function s(t){return"r"in t&&"g"in t&&"b"in t}function a(t){return"h"in t&&"s"in t&&"v"in t}function l(t){return"l"in t&&"a"in t&&"b"in t}function u(t){return"l"in t&&"c"in t&&"h"in t}r(34727),r(87317),r(91829);const c=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],h=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function f(t,e){const r=[];let n,o;if(t[0].length!==e.length)throw new Error("dimensions do not match");const i=t.length,s=t[0].length;let a=0;for(n=0;n<i;n++){for(a=0,o=0;o<s;o++)a+=t[n][o]*e[o];r.push(a)}return r}function p(t){const e=[t.r/255,t.g/255,t.b/255].map((t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4)),r=f(c,e);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function d(t){const e=f(h,[t.x/100,t.y/100,t.z/100]).map((t=>{const e=t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055;return Math.min(1,Math.max(e,0))}));return{r:Math.round(255*e[0]),g:Math.round(255*e[1]),b:Math.round(255*e[2])}}function m(t){const e=[t.x/95.047,t.y/100,t.z/108.883].map((t=>t>(6/29)**3?t**(1/3):1/3*(29/6)**2*t+4/29));return{l:116*e[1]-16,a:500*(e[0]-e[1]),b:200*(e[1]-e[2])}}function g(t){const e=t.l,r=[(e+16)/116+t.a/500,(e+16)/116,(e+16)/116-t.b/200].map((t=>t>6/29?t**3:3*(6/29)**2*(t-4/29)));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function y(t){return s(t)?t:u(t)?function(t){return d(g(function(t){const e=t.l,r=t.c,n=t.h;return{l:e,a:r*Math.cos(n),b:r*Math.sin(n)}}(t)))}(t):l(t)?function(t){return d(g(t))}(t):function(t){return"x"in t&&"y"in t&&"z"in t}(t)?d(t):a(t)?function(t){const e=(t.h+360)%360/60,r=t.s/100,n=t.v/100*255,o=n*r,i=o*(1-Math.abs(e%2-1));let s;switch(Math.floor(e)){case 0:s={r:o,g:i,b:0};break;case 1:s={r:i,g:o,b:0};break;case 2:s={r:0,g:o,b:i};break;case 3:s={r:0,g:i,b:o};break;case 4:s={r:i,g:0,b:o};break;case 5:case 6:s={r:o,g:0,b:i};break;default:s={r:0,g:0,b:0}}return s.r=Math.round(s.r+n-o),s.g=Math.round(s.g+n-o),s.b=Math.round(s.b+n-o),s}(t):t}function w(t){return a(t)?t:function(t){const e=t.r,r=t.g,n=t.b,o=Math.max(e,r,n),i=o-Math.min(e,r,n);let s=o,a=0===i?0:o===e?(r-n)/i%6:o===r?(n-e)/i+2:(e-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}}(y(t))}function b(t){return l(t)?t:function(t){return m(p(t))}(y(t))}function C(t){return u(t)?t:function(t){return function(t){const e=t.l,r=t.a,n=t.b,o=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r);return i=i>0?i:i+2*Math.PI,{l:e,c:o,h:i}}(m(p(t)))}(y(t))}var v,x;function A(t,e,r={}){if(0===t.length||e<=0)return[];if(1===(t=t.map((t=>"string"==typeof t?new n.A(t):t))).length||1===e){const r=[],n=t[0];for(let t=0;t<e;t++)r.push(n.clone());return r}if(r.shuffle&&(t=(0,o.k4)((0,i.o8)(t),r.seed)),t.length>=e){const r=[],n=(t.length-1)/(e-1);for(let o=0;o<e;o++){const e=Math.round(o*n);r.push(t[e].clone())}return r}return function(t,e,r={}){const n=[],i=t.length-1,s=Math.ceil((e-t.length)/i);t:for(let o=0;o<i;o++){const i=t[o],a=t[o+1];for(let o=1;o<=s;o++){const l=o/(s+1);if(n.push(S(i,a,l,r)),n.length+t.length===e)break t}}return[...t.map((t=>t.clone())),...(0,o.k4)(n,r.seed??1)]}(t,e,r)}(x=v||(v={}))[x.Low=160]="Low",x[x.High=225]="High";const k=(t,e)=>{const r=Math.floor(10*e())-5;return Math.min(255,Math.max(0,t+r))};function S(t,e,r,i={}){const s=t.r,a=t.g,l=t.b,u=e.r,c=e.g,h=e.b,f=Math.round(s+(u-s)*r),p=Math.round(a+(c-a)*r),d=Math.round(l+(h-l)*r);if(!i.offset)return new n.A([f,p,d]);const m=(0,o.Mo)(i.seed);return new n.A([k(f,m),k(p,m),k(d,m)])}},14140:(t,e,r)=>{r.d(e,{A:()=>m});var n,o=r(90237),i=r(49186),s=r(25482),a=r(4718),l=r(53966),u=r(10107),c=r(79901),h=r(40608),f=r(4151),p=r(16019);let d=n=class extends s.A{static createEmptyBand(t,e){return new(n.getPixelArrayConstructor(t))(e)}static combineBandMasks(t){if(t.length<2)return t[0];const e=t[0].length,r=new Uint8Array(e).fill(255);for(let n=0;n<t.length;n++){const o=t[n];for(let t=0;t<e;t++)o[t]||(r[t]=0)}return r}static getPixelArrayConstructor(t){let e;switch(t){case"u1":case"u2":case"u4":case"u8":e=Uint8Array;break;case"u16":e=Uint16Array;break;case"u32":e=Uint32Array;break;case"s8":e=Int8Array;break;case"s16":e=Int16Array;break;case"s32":e=Int32Array;break;case"f32":case"c64":case"c128":case"unknown":e=Float32Array;break;case"f64":e=Float64Array}return e}constructor(t){super(t),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(t){if(!t)return"f32";let e=t.toLowerCase();return["u1","u2","u4"].includes(e)?e="u8":["unknown","u8","s8","u16","s16","u32","s32","f32","f64"].includes(e)||(e="f32"),e}getPlaneCount(){return this.pixels?.length}addData(t){if(!t.pixels||t.pixels.length!==this.width*this.height)throw new i.A("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(t.pixels),this.statistics.push(t.statistics??new f.z)}getAsRGBA(){const t=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(t);break;default:this._fillFrom8Bit(t)}return new Uint8ClampedArray(t)}getAsRGBAFloat(){const t=new Float32Array(this.width*this.height*4);return this._fillFrom32Bit(t),t}updateStatistics(){if(!this.pixels)return;this.statistics=this.pixels.map((t=>function(t,e){let r=1/0,n=-1/0;const o=t.length;let i,s=0;if(null!=e)for(i=0;i<o;i++)e[i]&&(s=t[i],r=s<r?s:r,n=s>n?s:n);else for(i=0;i<o;i++)s=t[i],r=s<r?s:r,n=s>n?s:n;return new f.z(r,n)}(t,this.mask)));const t=this.mask;let e=0;if(null!=t)for(let r=0;r<t.length;r++)t[r]&&e++;else e=this.width*this.height;this.validPixelCount=e}clamp(t){if(!t||"f64"===t||"f32"===t||!this.pixels)return;const[e,r]=(0,p.hP)(t),o=this.pixels,i=this.width*this.height,s=o.length;let a,l,u;const c=[];for(let h=0;h<s;h++){u=n.createEmptyBand(t,i),a=o[h];for(let t=0;t<i;t++)l=a[t],u[t]=l>r?r:l<e?e:l;c.push(u)}this.pixels=c,this.pixelType=t}extractBands(t){const{pixels:e,statistics:r}=this;if(null==t||0===t.length||!e||0===e.length)return this;const o=e.length,i=t.some((t=>t>=e.length)),s=o===t.length&&!t.some(((t,e)=>t!==e));if(i||s)return this;const a=this.bandMasks?.length===o?t.map((t=>this.bandMasks[t])):void 0;let{mask:l,validPixelCount:u}=this;const{width:c,height:h}=this;return a?.length&&(l=n.combineBandMasks(a),u=l.filter((t=>!!t)).length),new n({pixelType:this.pixelType,width:c,height:h,mask:l,bandMasks:a,validPixelCount:u,maskIsAlpha:this.maskIsAlpha,pixels:t.map((t=>e[t])),statistics:r&&t.map((t=>r[t]))})}clone(){const t=new n({width:this.width,height:this.height,pixelType:this.pixelType,maskIsAlpha:this.maskIsAlpha,validPixelCount:this.validPixelCount});let e;null!=this.mask&&(t.mask=new Uint8Array(this.mask)),this.bandMasks&&(t.bandMasks=this.bandMasks.map((t=>new Uint8Array(t))));const r=n.getPixelArrayConstructor(this.pixelType);if(this.pixels&&this.pixels.length>0){t.pixels=[];const n=!!this.pixels[0].slice;for(e=0;e<this.pixels.length;e++)t.pixels[e]=n?this.pixels[e].slice():new r(this.pixels[e])}if(this.statistics)for(t.statistics=[],e=0;e<this.statistics.length;e++)t.statistics[e]=(0,a.o8)(this.statistics[e]);return t.premultiplyAlpha=this.premultiplyAlpha,t}_fillFrom8Bit(t){const{mask:e,maskIsAlpha:r,premultiplyAlpha:n,pixels:o}=this;if(!t||!o?.length)return void l.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");let i,s,a,u;i=s=a=o[0],o.length>=3?(s=o[1],a=o[2]):2===o.length&&(s=o[1]);const c=new Uint32Array(t),h=this.width*this.height;if(i.length===h)if(null!=e&&e.length===h)if(r)for(u=0;u<h;u++){const t=e[u];if(t){const e=t/255;c[u]=n?t<<24|a[u]*e<<16|s[u]*e<<8|i[u]*e:t<<24|a[u]<<16|s[u]<<8|i[u]}}else for(u=0;u<h;u++)e[u]&&(c[u]=255<<24|a[u]<<16|s[u]<<8|i[u]);else for(u=0;u<h;u++)c[u]=255<<24|a[u]<<16|s[u]<<8|i[u];else l.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.")}_fillFromNon8Bit(t){const{pixels:e,mask:r,statistics:n}=this;if(!t||!e?.length)return void l.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");const o=this.pixelType;let i=1,s=0,a=1;if(n&&n.length>0){for(const t of n)if(null!=t.minValue&&(s=Math.min(s,t.minValue)),null!=t.maxValue&&null!=t.minValue){const e=t.maxValue-t.minValue;a=Math.max(a,e)}i=255/a}else{let t=255;"s8"===o?(s=-128,t=127):"u16"===o?t=65535:"s16"===o?(s=-32768,t=32767):"u32"===o?t=4294967295:"s32"===o?(s=-2147483648,t=2147483647):"f32"===o?(s=-34e38,t=34e38):"f64"===o&&(s=-Number.MAX_VALUE,t=Number.MAX_VALUE),i=255/(t-s)}const u=new Uint32Array(t),c=this.width*this.height;let h,f,p,d,m;if(h=f=p=e[0],h.length!==c)return l.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.");if(e.length>=2)if(f=e[1],e.length>=3&&(p=e[2]),null!=r&&r.length===c)for(d=0;d<c;d++)r[d]&&(u[d]=255<<24|(p[d]-s)*i<<16|(f[d]-s)*i<<8|(h[d]-s)*i);else for(d=0;d<c;d++)u[d]=255<<24|(p[d]-s)*i<<16|(f[d]-s)*i<<8|(h[d]-s)*i;else if(null!=r&&r.length===c)for(d=0;d<c;d++)m=(h[d]-s)*i,r[d]&&(u[d]=255<<24|m<<16|m<<8|m);else for(d=0;d<c;d++)m=(h[d]-s)*i,u[d]=255<<24|m<<16|m<<8|m}_fillFrom32Bit(t){const{pixels:e,mask:r}=this;if(!t||!e?.length)return l.A.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The input pixel block is empty.");let n,o,i,s;n=o=i=e[0],e.length>=3?(o=e[1],i=e[2]):2===e.length&&(o=e[1]);const a=this.width*this.height;if(n.length!==a)return l.A.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The pixelblock is invalid.");let u=0;if(null!=r&&r.length===a)for(s=0;s<a;s++)t[u++]=n[s],t[u++]=o[s],t[u++]=i[s],t[u++]=1&r[s];else for(s=0;s<a;s++)t[u++]=n[s],t[u++]=o[s],t[u++]=i[s],t[u++]=1}};(0,o._)([(0,u.MZ)({json:{write:!0}})],d.prototype,"width",void 0),(0,o._)([(0,u.MZ)({json:{write:!0}})],d.prototype,"height",void 0),(0,o._)([(0,u.MZ)({json:{write:!0}})],d.prototype,"pixelType",void 0),(0,o._)([(0,c.w)("pixelType")],d.prototype,"castPixelType",null),(0,o._)([(0,u.MZ)({json:{write:!0}})],d.prototype,"validPixelCount",void 0),(0,o._)([(0,u.MZ)({json:{write:!0}})],d.prototype,"mask",void 0),(0,o._)([(0,u.MZ)({json:{write:!0}})],d.prototype,"maskIsAlpha",void 0),(0,o._)([(0,u.MZ)({json:{write:!0}})],d.prototype,"pixels",void 0),(0,o._)([(0,u.MZ)()],d.prototype,"premultiplyAlpha",void 0),(0,o._)([(0,u.MZ)({json:{write:!0}})],d.prototype,"statistics",void 0),(0,o._)([(0,u.MZ)({json:{write:!0}})],d.prototype,"depthCount",void 0),(0,o._)([(0,u.MZ)({json:{write:!0}})],d.prototype,"noDataValues",void 0),(0,o._)([(0,u.MZ)({json:{write:!0}})],d.prototype,"bandMasks",void 0),d=n=(0,o._)([(0,h.$)("esri.layers.support.PixelBlock")],d);const m=d},87186:(t,e,r)=>{r.d(e,{A:()=>k});var n,o=r(90237),i=r(25482),s=r(4718),a=r(10107),l=(r(44208),r(53966),r(40608)),u=r(5443),c=r(16930);function h(t){return t=Number(t),isNaN(t)?void 0:t}r(87811);let f=n=class extends i.A{constructor(){super(...arguments),this.name=null,this.minWavelength=void 0,this.maxWavelength=void 0,this.radianceBias=void 0,this.radianceGain=void 0,this.reflectanceBias=void 0,this.reflectanceGain=void 0,this.solarIrradiance=void 0}clone(){return new n({name:this.name,minWavelength:this.minWavelength,maxWavelength:this.maxWavelength,radianceBias:this.radianceBias,radianceGain:this.radianceGain,reflectanceBias:this.reflectanceBias,reflectanceGain:this.reflectanceGain,solarIrradiance:this.solarIrradiance})}};(0,o._)([(0,a.MZ)({json:{name:"BandName",write:!0}})],f.prototype,"name",void 0),(0,o._)([(0,a.MZ)({json:{name:"WavelengthMin",read:{reader:h},write:!0}})],f.prototype,"minWavelength",void 0),(0,o._)([(0,a.MZ)({json:{name:"WavelengthMax",read:{reader:h},write:!0}})],f.prototype,"maxWavelength",void 0),(0,o._)([(0,a.MZ)({json:{name:"RadianceBias",read:{reader:h},write:!0}})],f.prototype,"radianceBias",void 0),(0,o._)([(0,a.MZ)({json:{name:"RadianceGain",read:{reader:h},write:!0}})],f.prototype,"radianceGain",void 0),(0,o._)([(0,a.MZ)({json:{name:"ReflectanceBias",read:{reader:h},write:!0}})],f.prototype,"reflectanceBias",void 0),(0,o._)([(0,a.MZ)({json:{name:"ReflectanceGain",read:{reader:h},write:!0}})],f.prototype,"reflectanceGain",void 0),(0,o._)([(0,a.MZ)({json:{name:"SolarIrradiance",read:{reader:h},write:!0}})],f.prototype,"solarIrradiance",void 0),f=n=(0,o._)([(0,l.$)("esri.layers.support.RasterBandInfo")],f);const p=f;var d,m=r(13868),g=r(36005),y=r(43937);function w(t){return t=Number(t),isNaN(t)?void 0:t}let b=d=class extends i.A{constructor(){super(...arguments),this.acquisitionDate=void 0,this.cloudCover=void 0,this.productName=void 0,this.sensorName=null,this.sensorAzimuth=void 0,this.sensorElevation=void 0,this.sunAzimuth=void 0,this.sunElevation=void 0}readAcquisitionDate(t){return new Date(t)}writeAcquisitionDate(t,e){e.AcquisitionDate=t.getTime()}clone(){return new d({acquisitionDate:this.acquisitionDate,cloudCover:this.cloudCover,productName:this.productName,sensorName:this.sensorName,sensorAzimuth:this.sensorAzimuth,sensorElevation:this.sensorElevation,sunAzimuth:this.sunAzimuth,sunElevation:this.sunElevation})}};(0,o._)([(0,a.MZ)({type:Date,json:{name:"AcquisitionDate",write:!0}})],b.prototype,"acquisitionDate",void 0),(0,o._)([(0,g.w)("acquisitionDate")],b.prototype,"readAcquisitionDate",null),(0,o._)([(0,y.K)("acquisitionDate")],b.prototype,"writeAcquisitionDate",null),(0,o._)([(0,a.MZ)({json:{name:"CloudCover",read:{reader:w},write:!0}})],b.prototype,"cloudCover",void 0),(0,o._)([(0,a.MZ)({json:{name:"ProductName",write:!0}})],b.prototype,"productName",void 0),(0,o._)([(0,a.MZ)({json:{name:"SensorName",write:!0}})],b.prototype,"sensorName",void 0),(0,o._)([(0,a.MZ)({json:{name:"SensorAzimuth",read:{reader:w},write:!0}})],b.prototype,"sensorAzimuth",void 0),(0,o._)([(0,a.MZ)({json:{name:"SensorElevation",read:{reader:w},write:!0}})],b.prototype,"sensorElevation",void 0),(0,o._)([(0,a.MZ)({json:{name:"SunAzimuth",read:{reader:w},write:!0}})],b.prototype,"sunAzimuth",void 0),(0,o._)([(0,a.MZ)({json:{name:"SunElevation",read:{reader:w},write:!0}})],b.prototype,"sunElevation",void 0),b=d=(0,o._)([(0,l.$)("esri.layers.support.RasterSensorInfo")],b);const C=b;var v,x=r(20223);let A=v=class extends i.A{constructor(t){super(t),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 bandInfos(){const t=this.keyProperties.BandProperties,{bandCount:e}=this;if(!t?.length||t.length<e){const t=[];for(let r=1;r<=e;r++)t.push(new p({name:"band_"+r}));return t}const r=t.map((t=>p.fromJSON(t)));for(let t=0;t<r.length;t++)r[t].name=r[t].name||"band_"+(t+1);return r}get dataType(){const t=this.keyProperties?.DataType?.toLowerCase()??"generic";return"stdtime"===t?"standard-time":t}get nativeExtent(){return this._get("nativeExtent")||this.extent}set nativeExtent(t){t&&this._set("nativeExtent",t)}get nativePixelSize(){if(null==this.transform||!this.transform.affectsPixelSize)return this.pixelSize;const t=this.nativeExtent;return{x:t.width/this.width,y:t.height/this.height}}get hasMultidimensionalTranspose(){return!!this.storageInfo?.transposeInfo}get sensorInfo(){if(this.keyProperties?.SensorName)return C.fromJSON(this.keyProperties)}clone(){return new v({attributeTable:(0,s.o8)(this.attributeTable),bandCount:this.bandCount,colormap:(0,s.o8)(this.colormap),extent:(0,s.o8)(this.extent),format:this.format,height:this.height,width:this.width,histograms:(0,s.o8)(this.histograms),keyProperties:(0,s.o8)(this.keyProperties),multidimensionalInfo:(0,s.o8)(this.multidimensionalInfo),noDataValue:this.noDataValue,pixelSize:(0,s.o8)(this.pixelSize),pixelType:this.pixelType,isPseudoSpatialReference:this.isPseudoSpatialReference,spatialReference:(0,s.o8)(this.spatialReference),statistics:(0,s.o8)(this.statistics),storageInfo:(0,s.o8)(this.storageInfo),transform:(0,s.o8)(this.transform)})}};(0,o._)([(0,a.MZ)({json:{write:!0}})],A.prototype,"attributeTable",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],A.prototype,"bandCount",void 0),(0,o._)([(0,a.MZ)({readOnly:!0})],A.prototype,"bandInfos",null),(0,o._)([(0,a.MZ)({json:{write:!0}})],A.prototype,"colormap",void 0),(0,o._)([(0,a.MZ)({type:String,readOnly:!0})],A.prototype,"dataType",null),(0,o._)([(0,a.MZ)({type:u.A,json:{write:!0}})],A.prototype,"extent",void 0),(0,o._)([(0,a.MZ)({type:u.A,json:{write:!0}})],A.prototype,"nativeExtent",null),(0,o._)([(0,a.MZ)({json:{write:!0}})],A.prototype,"nativePixelSize",null),(0,o._)([(0,a.MZ)({json:{write:!0}})],A.prototype,"format",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],A.prototype,"height",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],A.prototype,"width",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],A.prototype,"hasMultidimensionalTranspose",null),(0,o._)([(0,a.MZ)({json:{write:!0}})],A.prototype,"histograms",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],A.prototype,"keyProperties",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],A.prototype,"multidimensionalInfo",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],A.prototype,"noDataValue",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],A.prototype,"pixelSize",void 0),(0,o._)([(0,a.MZ)({type:m.e8.apiValues,json:{write:!0}})],A.prototype,"pixelType",void 0),(0,o._)([(0,a.MZ)()],A.prototype,"isPseudoSpatialReference",void 0),(0,o._)([(0,a.MZ)({readOnly:!0})],A.prototype,"sensorInfo",null),(0,o._)([(0,a.MZ)({type:c.A,json:{write:!0}})],A.prototype,"spatialReference",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],A.prototype,"statistics",void 0),(0,o._)([(0,a.MZ)({type:x.A,json:{write:!0}})],A.prototype,"storageInfo",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],A.prototype,"transform",void 0),A=v=(0,o._)([(0,l.$)("esri.layers.support.RasterInfo")],A);const k=A},20223:(t,e,r)=>{r.d(e,{A:()=>h});var n,o=r(90237),i=r(25482),s=r(4718),a=r(10107),l=(r(44208),r(53966),r(40608)),u=r(86738);let c=n=class extends i.A{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 n({blockWidth:this.blockWidth,blockHeight:this.blockHeight,compression:this.compression,origin:(0,s.o8)(this.origin),firstPyramidLevel:this.firstPyramidLevel,maximumPyramidLevel:this.maximumPyramidLevel,pyramidResolutions:(0,s.o8)(this.pyramidResolutions),pyramidScalingFactor:this.pyramidScalingFactor,pyramidBlockWidth:this.pyramidBlockWidth,pyramidBlockHeight:this.pyramidBlockHeight,isVirtualTileInfo:this.isVirtualTileInfo,tileInfo:(0,s.o8)(this.tileInfo),transposeInfo:(0,s.o8)(this.transposeInfo),blockBoundary:(0,s.o8)(this.blockBoundary)})}};(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"blockWidth",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"blockHeight",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"compression",void 0),(0,o._)([(0,a.MZ)({type:u.A,json:{write:!0}})],c.prototype,"origin",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"firstPyramidLevel",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"maximumPyramidLevel",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],c.prototype,"pyramidResolutions",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"pyramidScalingFactor",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"pyramidBlockWidth",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"pyramidBlockHeight",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"isVirtualTileInfo",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],c.prototype,"tileInfo",void 0),(0,o._)([(0,a.MZ)()],c.prototype,"transposeInfo",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],c.prototype,"blockBoundary",void 0),c=n=(0,o._)([(0,l.$)("esri.layers.support.RasterStorageInfo")],c);const h=c},4151:(t,e,r)=>{r.d(e,{z:()=>n});class n{constructor(t=null,e=null,r=null){this.minValue=t,this.maxValue=e,this.noDataValue=r}}},15265:(t,e,r)=>{function n(t,e){let r=0,n="",o=0,i=0;const s=t.length;for(;r<s;)i=t[r++],o=i>>4,o<8?o=1:15===o?(o=4,i=(7&i)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++]):14===o?(o=3,i=(15&i)<<12|(63&t[r++])<<6|63&t[r++]):(o=2,i=(31&i)<<6|63&t[r++]),(0!==i||e)&&(n+=String.fromCharCode(i));return n}r.d(e,{w:()=>n})},13868:(t,e,r)=>{r.d(e,{SZ:()=>o,e8:()=>s,hm:()=>i});var n=r(66552);const o=(0,n.O)()({RSP_NearestNeighbor:"nearest",RSP_BilinearInterpolation:"bilinear",RSP_CubicConvolution:"cubic",RSP_Majority:"majority"}),i=(0,n.O)()({esriNoDataMatchAny:"any",esriNoDataMatchAll:"all"}),s=(0,n.O)()({U1:"u1",U2:"u2",U4:"u4",U8:"u8",S8:"s8",U16:"u16",S16:"s16",U32:"u32",S32:"s32",F32:"f32",F64:"f64",C64:"c64",C128:"c128",UNKNOWN:"unknown"})},49589:(t,e,r)=>{r.d(e,{D4:()=>c,Hh:()=>s});var n=r(2741);const o=[{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;function s(){return i||(i=r.e(382).then(r.bind(r,30382)).then((t=>t.l)).then((({default:t})=>t({locateFile:t=>(0,n.s)(`esri/layers/support/rasterFormats/${t}`)}))).then((t=>{!function(t){const{_malloc:e,_free:r,_lerc_getBlobInfo:n,_lerc_getDataRanges:i,_lerc_decode_4D:s,asm:u}=t;let c;const h=Object.values(u).find((e=>e&&"buffer"in e&&e.buffer===t.HEAPU8.buffer)),f=t=>{const r=t.map((t=>function(t){return 16+(t>>3<<3)}(t))),n=r.reduce(((t,e)=>t+e)),o=e(n);c=new Uint8Array(h.buffer);let i=r[0];r[0]=o;for(let t=1;t<r.length;t++){const e=r[t];r[t]=r[t-1]+i,i=e}return r};a.getBlobInfo=t=>{const e=new Uint8Array(48),o=new Uint8Array(24),[s,a,u]=f([t.length,e.length,o.length]);c.set(t,s),c.set(e,a),c.set(o,u);let p=n(s,t.length,a,u,12,3);if(p)throw r(s),new Error(`lerc-getBlobInfo: error code is ${p}`);c=new Uint8Array(h.buffer),l(c,a,e),l(c,u,o);const d=new Uint32Array(e.buffer),m=new Float64Array(o.buffer),[g,y,,w,b,C,v,x,A,k,S]=d,M={version:g,depthCount:k,width:w,height:b,validPixelCount:v,bandCount:C,blobSize:x,maskCount:A,dataType:y,minValue:m[0],maxValue:m[1],maxZerror:m[2],statistics:[],bandCountWithNoData:S};if(S&&k>1)return r(s),M;if(1===k&&1===C)return r(s),M.statistics.push({minValue:m[0],maxValue:m[1]}),M;const T=k*C*8,I=new Uint8Array(T),P=new Uint8Array(T);let E=s,R=0,L=0,U=!1;if(c.byteLength<s+2*T?(r(s),U=!0,[E,R,L]=f([t.length,T,T]),c.set(t,E)):[R,L]=f([T,T]),c.set(I,R),c.set(P,L),p=i(E,t.length,k,C,R,L),p)throw r(E),U||r(R),new Error(`lerc-getDataRanges: error code is ${p}`);c=new Uint8Array(h.buffer),l(c,R,I),l(c,L,P);const D=new Float64Array(I.buffer),O=new Float64Array(P.buffer),N=M.statistics;for(let t=0;t<C;t++)if(k>1){const e=D.slice(t*k,(t+1)*k),r=O.slice(t*k,(t+1)*k),n=Math.min.apply(null,e),o=Math.max.apply(null,r);N.push({minValue:n,maxValue:o,depthStats:{minValues:e,maxValues:r}})}else N.push({minValue:D[t],maxValue:O[t]});return r(E),U||r(R),M},a.decode=(t,e)=>{const{maskCount:n,depthCount:i,bandCount:a,width:u,height:p,dataType:d,bandCountWithNoData:m}=e,g=o[d],y=u*p,w=new Uint8Array(y*a),b=y*i*a*g.size,C=new Uint8Array(b),v=new Uint8Array(a),x=new Uint8Array(8*a),[A,k,S,M,T]=f([t.length,w.length,C.length,v.length,x.length]);c.set(t,A),c.set(w,k),c.set(C,S),c.set(v,M),c.set(x,T);const I=s(A,t.length,n,k,i,u,p,a,d,S,M,T);if(I)throw r(A),new Error(`lerc-decode: error code is ${I}`);c=new Uint8Array(h.buffer),l(c,S,C),l(c,k,w);let P=null;if(m){l(c,M,v),l(c,T,x),P=[];const t=new Float64Array(x.buffer);for(let e=0;e<v.length;e++)P.push(v[e]?t[e]:null)}return r(A),{data:C,maskData:w,noDataValues:P}}}(t)})),i)}const a={getBlobInfo:null,decode:null};function l(t,e,r){r.set(t.slice(e,e+r.length))}function u(t,e,r,n,o){if(r<2)return t;const i=new n(e*r);for(let n=0,o=0;n<e;n++)for(let s=0,a=n;s<r;s++,a+=e)i[a]=t[o++];return i}function c(t,e={}){const r=e.inputOffset??0,n=t instanceof Uint8Array?t.subarray(r):new Uint8Array(t,r),i=a.getBlobInfo(n),{data:s,maskData:l,noDataValues:c}=a.decode(n,i),{width:h,height:f,bandCount:p,depthCount:d,dataType:m,maskCount:g,statistics:y}=i,w=o[m],b=new w.ctor(s.buffer),C=[],v=[],x=h*f,A=x*d;for(let t=0;t<p;t++){const r=b.subarray(t*A,(t+1)*A);if(e.returnInterleaved)C.push(r);else{const t=u(r,x,d,w.ctor);C.push(t)}v.push(l.subarray(t*A,(t+1)*A))}const k=0===g?null:1===g?v[0]:new Uint8Array(x);if(g>1){k.set(v[0]);for(let t=1;t<v.length;t++){const e=v[t];for(let t=0;t<x;t++)k[t]=k[t]&e[t]}}const{noDataValue:S}=e,M=null!=S&&w.range[0]<=S&&w.range[1]>=S;if(g>0&&M)for(let t=0;t<p;t++){const e=C[t],r=v[t]||k;for(let t=0;t<x;t++)0===r[t]&&(e[t]=S)}const T=g===p&&p>1?v:null,{pixelType:I}=w;return{width:h,height:f,bandCount:p,pixelType:I,depthCount:d,statistics:y,pixels:C,mask:k,bandMasks:T,noDataValues:c}}},56582:(t,e,r)=>{function n(){const t=[];for(let e=0;e<=257;e++)t[e]=[e];return t}function o(t,e){for(let r=0;r<e.length;r++)t.push(e[r])}r.d(e,{D:()=>s});const i=new Set;function s(t,e,r,s=!0){const a=function(t,e,r,n=!0){if(e%4!=0||r%4!=0){const o=new ArrayBuffer(4*Math.ceil(r/4)),i=new Uint8Array(o),s=new Uint8Array(t,e,r);if(n)for(let t=0;t<i.length;t+=4)i[t]=s[t+3],i[t+1]=s[t+2],i[t+2]=s[t+1],i[t+3]=s[t];else i.set(s);return new Uint32Array(i.buffer)}if(n){const n=new Uint8Array(t,e,r),o=new Uint8Array(n.length);for(let t=0;t<o.length;t+=4)o[t]=n[t+3],o[t+1]=n[t+2],o[t+2]=n[t+1],o[t+3]=n[t];return new Uint32Array(o.buffer)}return new Uint32Array(t,e,r/4)}(t,e,r,s);let l=9,u=n(),c=32,h=u.length,f=[],p=1,d=a[0],m=0;const g=a.length,y=8*(4*g-r),w=[];for(;null!=d;){if(c>=l)c-=l,m=d>>>32-l,d<<=l;else{m=d>>>32-c,d=a[p++];const t=l-c;c=32-t,m=(m<<t)+(d>>>c),d<<=t}if(257===m)break;if(256===m){l=9,u=n(),h=u.length,f=[];continue}const t=u[m];if(null==t){if(m>u.length)throw new Error("data integrity issue: code does not exist on code page");f.push(f[0]),u[h++]=f.slice(),o(w,f)}else o(w,t),f.push(t[0]),f.length>1&&(u[h++]=f.slice()),f=t.slice();if(i.has(h)&&l++,0===c&&(d=a[p++],c=32),p>g||p===g&&c<=y)break}return new Uint8Array(w)}i.add(511),i.add(1023),i.add(2047),i.add(4095),i.add(8191)},51244:(t,e,r)=>{r.d(e,{D:()=>L,g:()=>R});var n=r(49186),o=r(97768),i=r(14140),s=r(4151),a=r(74887),l=r(68060);class u{constructor(t){this._canvas=null,this._ctx=null,t&&(this._canvas=t.canvas,this._ctx=t.ctx||t.canvas&&t.canvas.getContext("2d"))}decode(t,e,r){if(!t||t.byteLength<10)throw new n.A("imagecanvasdecoder: decode","required a valid encoded data as input.");let{width:o=0,height:i=0,format:s}=e;const{applyJpegMask:l}=e;if(l&&(!o||!i))throw new n.A("imagecanvasdecoder: decode","image width and height are needed to apply jpeg mask directly to canvas");return new Promise(((n,c)=>{let h=null;"jpg"===s&&l&&(h=u._getMask(t,{width:o,height:i}));const f=new Blob([new Uint8Array(t)],{type:"image/"+s=="jpg"?"jpeg":s}),p=URL.createObjectURL(f),d=new Image;let m;d.src=p,d.onload=()=>{if(URL.revokeObjectURL(p),(0,a.G4)(r))return void c((0,a.NK)());o=d.width,i=d.height,this._canvas&&this._ctx?(this._canvas.width===o&&this._canvas.height===i||(this._canvas.width=o,this._canvas.height=i),this._ctx.clearRect(0,0,o,i)):(this._canvas=document.createElement("canvas"),this._canvas.width=o,this._canvas.height=i,this._ctx=this._canvas.getContext("2d")),this._ctx.drawImage(d,0,0);const t=this._ctx.getImageData(0,0,o,i);let s;if(m=t.data,e.renderOnCanvas){if(h)for(s=0;s<h.length;s++)h[s]?m[4*s+3]=255:m[4*s+3]=0;return this._ctx.putImageData(t,0,0),void n(null)}const l=o*i,u=new Uint8Array(l),f=new Uint8Array(l),g=new Uint8Array(l);if(h)for(s=0;s<l;s++)u[s]=m[4*s],f[s]=m[4*s+1],g[s]=m[4*s+2];else for(h=new Uint8Ar