@arcgis/core 5.2.0-next.94 → 5.2.0-next.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{c4a0d3149947a1d2c484.js → 05662a663f761dd3dea5.js} +1 -1
- package/assets/esri/core/workers/chunks/0df9864ecebe6a2b973f.js +1 -0
- package/assets/esri/core/workers/chunks/10c13c36c42c5ac41d12.js +1 -0
- package/assets/esri/core/workers/chunks/{e50adcfb392adfb3f79c.js → 1b311ff39dede07865df.js} +1 -1
- package/assets/esri/core/workers/chunks/{188c6ff5f4664827c254.js → 1c803eef9a8fdabc61e3.js} +2 -2
- package/assets/esri/core/workers/chunks/1d7f633f158062eb3f64.js +1 -0
- package/assets/esri/core/workers/chunks/1f047dd747e7c1916dc7.js +1684 -0
- package/assets/esri/core/workers/chunks/2524e2385f61a6898411.js +1 -0
- package/assets/esri/core/workers/chunks/26737d061c7cfbbab95c.js +1 -0
- package/assets/esri/core/workers/chunks/{91de343844ac578e7c93.js → 2b6d261fe79fe186fb22.js} +1 -1
- package/assets/esri/core/workers/chunks/{8a87e1a89a0d8c6203a7.js → 2e51764c8aa31096cb2a.js} +1 -1
- package/assets/esri/core/workers/chunks/{da8a314800944706511b.js → 36e35a8067b18f59cc05.js} +1 -1
- package/assets/esri/core/workers/chunks/{d270b49c037085503016.js → 3a9435569ba460ff7e3d.js} +1 -1
- package/assets/esri/core/workers/chunks/{e488e5c62cb375c87a39.js → 471027e4280bd51167b0.js} +1 -1
- package/assets/esri/core/workers/chunks/4c088c26d5d546c95c90.js +1 -0
- package/assets/esri/core/workers/chunks/{e594b6db9caee1f7b9fc.js → 4d700cb028f6306b163e.js} +1 -1
- package/assets/esri/core/workers/chunks/{87e9f7e85221bc7e6709.js → 5168bd8ab6233dc9c32a.js} +1 -1
- package/assets/esri/core/workers/chunks/{cd02a6078443b8f63927.js → 5b8591486f33627f5389.js} +1 -1
- package/assets/esri/core/workers/chunks/{a89dbef8155d7c4354da.js → 5edf77618ca51819d7c4.js} +2 -2
- package/assets/esri/core/workers/chunks/6057a79c68c33ee4a193.js +1 -0
- package/assets/esri/core/workers/chunks/{48726010778d6004e347.js → 63127e3b22e7eac6003d.js} +2 -2
- package/assets/esri/core/workers/chunks/{ff83d0337ac489ab08de.js → 678585509706755c0434.js} +2 -2
- package/assets/esri/core/workers/chunks/{2754ba5cc094028a7a3c.js → 691e9cc541cfaebe1776.js} +1 -1
- package/assets/esri/core/workers/chunks/{32f11b4aeae1ef00e466.js → 6baae3e856d904fef9b1.js} +1 -1
- package/assets/esri/core/workers/chunks/{d44338bf5edafa3ca926.js → 6f01bd01b13662eb3bd7.js} +1 -1
- package/assets/esri/core/workers/chunks/{76e7d3cde2da4bdd7820.js → 74cd9df85c4560bb8e52.js} +1 -1
- package/assets/esri/core/workers/chunks/{97e41500fc2d24a88938.js → 7b70d6fdfa7a19ffffb0.js} +1 -1
- package/assets/esri/core/workers/chunks/7bb3411a86cdd736d555.js +1 -0
- package/assets/esri/core/workers/chunks/{ec77222776f755dc372c.js → 7ddb5800777fbecee3a8.js} +1 -1
- package/assets/esri/core/workers/chunks/7efc51324cfc8e08c756.js +1 -0
- package/assets/esri/core/workers/chunks/{e90076ac1cf88a83a7f9.js → 80f38ab2b7ae61e6f301.js} +1 -1
- package/assets/esri/core/workers/chunks/{5aa23b0f4521ba9a07ad.js → 854f42f16fdb40000aae.js} +1 -1
- package/assets/esri/core/workers/chunks/{24c44541046576fee7e0.js → 87094044458b0ea5cb0f.js} +2 -2
- package/assets/esri/core/workers/chunks/92a6559a6999b26362d7.js +1 -0
- package/assets/esri/core/workers/chunks/{3a65693964e3976d8035.js → 9df38cadebf8e6fd746c.js} +1 -1
- package/assets/esri/core/workers/chunks/{20f6e681ccd8bf884b77.js → a72983c3621810d4b1af.js} +1 -1
- package/assets/esri/core/workers/chunks/{9226205850e35b7fc610.js → a8aa8cb60b30f0983e7e.js} +1 -1
- package/assets/esri/core/workers/chunks/a8e9aa5461c71c88e2e5.js +1 -0
- package/assets/esri/core/workers/chunks/{1ab8307ba9981124f669.js → af6b9fd77b1792fbb66e.js} +1 -1
- package/assets/esri/core/workers/chunks/{19e93d4d37018e3ee849.js → b102ae764c14d8b32ace.js} +1 -1
- package/assets/esri/core/workers/chunks/{1554feab934e8e1bcd28.js → b333de4dea14c5db0a4d.js} +1 -1
- package/assets/esri/core/workers/chunks/{d7d5275d8b3c9430de1f.js → b7c0da9d255d5e48320d.js} +1 -1
- package/assets/esri/core/workers/chunks/{6b9dbf43c0659e55c539.js → be0417df35a7d99af675.js} +1 -1
- package/assets/esri/core/workers/chunks/{a46ac0be9aabc4cfedc7.js → cc3186dcbbf5edff8b9e.js} +1 -1
- package/assets/esri/core/workers/chunks/e5b6fa57cc4028fbd401.js +1 -0
- package/assets/esri/core/workers/chunks/e7fdad0c07beb3614b60.js +1 -0
- package/assets/esri/core/workers/chunks/{0336f4f8498a22347720.js → ea5ee1b12b43594592a0.js} +1 -1
- package/assets/esri/core/workers/chunks/{c4fef90cf08bbe4f0bb5.js → eafc591e1a98000d54ef.js} +1 -1
- package/assets/esri/core/workers/chunks/f331c24247d132589859.js +1 -0
- package/chunks/{GlowBlur.glsl.js → BlurEmission.glsl.js} +1 -1
- package/chunks/EmissionComposite.glsl.js +3 -3
- package/chunks/Fog.glsl.js +5 -3
- package/chunks/RibbonLine.glsl.js +52 -52
- package/config.js +1 -1
- package/core/timeUtils.d.ts +62 -0
- package/core/timeUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/AnnotationFeatureLayer.d.ts +0 -1
- package/package.json +2 -2
- package/rest/imageService/fetchRasterInfo.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/types.d.ts +2 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/support/buffer/InterleavedLayout.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js +1 -5
- package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/effects/fog/FogTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/effects/glow/{GlowBlur.glsl.js → BlurEmission.glsl.js} +1 -1
- package/views/3d/webgl-engine/effects/glow/BlurEmission.js +2 -0
- package/views/3d/webgl-engine/effects/glow/BlurEmissionTechnique.js +2 -0
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +37 -0
- package/views/3d/webgl-engine/lib/BufferGeometry.js +2 -0
- package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionCompositeTechnique.js +1 -1
- package/views/3d/webgl-engine/lib/Geometry.js +1 -1
- package/views/3d/webgl-engine/lib/GeometryBaseInstance.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/rendererUtils.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/Instance.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedBuffer.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/EmissiveTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/floatBlendScale.glsl.js +1 -1
- package/views/SceneView.d.ts +1 -0
- package/views/SceneView.js +1 -1
- package/assets/esri/core/workers/chunks/15f4f7e34e14e3cf52e6.js +0 -1
- package/assets/esri/core/workers/chunks/19ab024f6f732fd6c69b.js +0 -1
- package/assets/esri/core/workers/chunks/22c94f9a69b2157f8dbd.js +0 -1
- package/assets/esri/core/workers/chunks/2ec44ebc48beeba11201.js +0 -1
- package/assets/esri/core/workers/chunks/349b0c7febc46267441d.js +0 -1684
- package/assets/esri/core/workers/chunks/5bf2ce280ea35ea4c96b.js +0 -1
- package/assets/esri/core/workers/chunks/75b90fb05e4a2d32b7bb.js +0 -1
- package/assets/esri/core/workers/chunks/7e41cee4a0ae75e1490d.js +0 -1
- package/assets/esri/core/workers/chunks/95a3f09751bff63f4fab.js +0 -1
- package/assets/esri/core/workers/chunks/98d614d6fc9de8ebaf94.js +0 -1
- package/assets/esri/core/workers/chunks/bdfffa5f88b559a4b42d.js +0 -1
- package/assets/esri/core/workers/chunks/c352696478b48a2090d5.js +0 -1
- package/assets/esri/core/workers/chunks/c91042f8bf886056a29c.js +0 -1
- package/assets/esri/core/workers/chunks/d58d6b55b2749a535eb3.js +0 -1
- package/assets/esri/core/workers/chunks/fbc7576ed12964059da6.js +0 -1
- package/chunks/GlowComposite.glsl.js +0 -2
- package/views/3d/webgl-engine/effects/glow/Glow.js +0 -2
- package/views/3d/webgl-engine/effects/glow/GlowBlurTechnique.js +0 -2
- package/views/3d/webgl-engine/effects/glow/GlowComposite.glsl.js +0 -2
- package/views/3d/webgl-engine/effects/glow/GlowCompositeTechnique.js +0 -2
- package/views/3d/webgl-engine/effects/glow/blurEmission.glsl.js +0 -38
- /package/assets/esri/core/workers/chunks/{188c6ff5f4664827c254.js.LICENSE.txt → 1c803eef9a8fdabc61e3.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{a89dbef8155d7c4354da.js.LICENSE.txt → 5edf77618ca51819d7c4.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{48726010778d6004e347.js.LICENSE.txt → 63127e3b22e7eac6003d.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{ff83d0337ac489ab08de.js.LICENSE.txt → 678585509706755c0434.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{24c44541046576fee7e0.js.LICENSE.txt → 87094044458b0ea5cb0f.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5130],{68197(t,e,n){n.d(e,{A:()=>u});var r=n(40876),o=n(4576),i=n(34727),a=n(56507);function s(t){return(0,i.qE)((0,a.Vr)(t),0,255)}function l(t,e){const n=t.toString(16).padStart(2,"0");return e?n.slice(0,1):n}class u{static blendColors(t,e,n,r=new u){return r.r=Math.round(t.r+(e.r-t.r)*n),r.g=Math.round(t.g+(e.g-t.g)*n),r.b=Math.round(t.b+(e.b-t.b)*n),r.a=t.a+(e.a-t.a)*n,r._sanitize()}static fromRgb(t,e){const n=(0,r.lT)(t);return n?u.fromArray(n,e):null}static fromHex(t,e=new u){const n=(0,r.oW)(t);return n?u.fromArray(n,e):null}static fromArray(t,e=new u){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const n=(0,r.Eq)(t);return n?u.fromArray(n,e):null}static fromJSON(t){return null!=t?new u([t[0],t[1],t[2],(t[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null!=this.a?this.a:1,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){if("string"==typeof t)u.fromString(t,this);else if((0,o.yc)(t))u.fromArray(t,this);else{const e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,n=t?.digits??6,r=3===n||4===n,o=4===n||8===n,i=`#${l(this.r,r)}${l(this.g,r)}${l(this.b,r)}${o?l(Math.round(255*this.a),r):""}`;return e?i.toUpperCase():i}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=s(this.r),n=s(this.g),r=s(this.b);return 0===t||1!==this.a?[e,n,r,s(255*this.a)]:[e,n,r]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(t,e,n,r){this.r=t,this.g=e,this.b=n,this.a=r}}u.prototype.declaredClass="esri.Color"},40876(t,e,n){n.d(e,{Eq:()=>d,G1:()=>m,TS:()=>i,V6:()=>o,Vm:()=>p,ay:()=>l,c1:()=>g,c4:()=>a,j5:()=>u,lT:()=>h,oW:()=>c,xV:()=>C});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(t){return!!r[t]||!!r[t.toLowerCase()]}function i(t){return r[t]??r[t.toLowerCase()]}function a(t){return[...i(t)]}function s(t,e,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?t+(e-t)*r:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function l(t,e,n,r=1){const o=(t%360+360)%360/360,i=n<=.5?n*(e+1):n+e-n*e,a=2*n-i;return[Math.round(255*s(a,i,o+1/3)),Math.round(255*s(a,i,o)),Math.round(255*s(a,i,o-1/3)),r]}function u(t){const e=t.length>5,n=e?8:4,r=(1<<n)-1,o=e?1:17,i=e?9===t.length:5===t.length;let a=Number("0x"+t.slice(1));if(isNaN(a))return null;const s=[0,0,0,1];let l;return i&&(l=a&r,a>>=n,s[3]=o*l/255),l=a&r,a>>=n,s[2]=o*l,l=a&r,a>>=n,s[1]=o*l,l=a&r,a>>=n,s[0]=o*l,s}function c(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const e=parseInt(t.slice(1,2),16),n=parseInt(t.slice(2,3),16),r=parseInt(t.slice(3,4),16),o=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,n+16*n,r+16*r,(o+16*o)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function h(t){const e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){const t=e[2].split(/\s*,\s*/),n=e[1];if("rgb"===n&&3===t.length||"rgba"===n&&4===t.length){if(t[0].endsWith("%")){const e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),f(e)}return f(t.map(t=>parseFloat(t)))}if("hsl"===n&&3===t.length||"hsla"===n&&4===t.length)return l(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function f(t){return t[0]=g(t[0]),t[1]=g(t[1]),t[2]=g(t[2]),t[3]=4===t.length?m(t[3]):1,t}function d(t){let e=o(t)?i(t):null;return e??=h(t),e??=c(t),e}function p(t){const e=d(t);return null!=e?[e[0]/255,e[1]/255,e[2]/255,e[3]]:null}function m(t){return y(t,0,1)}function g(t){return Math.round(y(t,0,255))}function y(t,e,n){return t=Number(t),isNaN(t)?n:t<e?e:t>n?n:t}const w=1/2.2;function C(t){return t**w}n.d(e,["iw",0,w])},85334(t,e,n){n.d(e,{$:()=>y,IB:()=>a,Iy:()=>x,N2:()=>w,RH:()=>b,ZD:()=>C});var r=n(68197),o=n(4576),i=n(4718);function a(t){return"r"in t&&"g"in t&&"b"in t}function s(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}n(34727),n(78955),n(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 n=[];let r,o;if(t[0].length!==e.length)throw new Error("dimensions do not match");const i=t.length,a=t[0].length;let s=0;for(r=0;r<i;r++){for(s=0,o=0;o<a;o++)s+=t[r][o]*e[o];n.push(s)}return n}function d(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),n=f(c,e);return{x:100*n[0],y:100*n[1],z:100*n[2]}}function p(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,n=[(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*n[0],y:100*n[1],z:108.883*n[2]}}function y(t){return a(t)?t:u(t)?function(t){return p(g(function(t){const e=t.l,n=t.c,r=t.h;return{l:e,a:n*Math.cos(r),b:n*Math.sin(r)}}(t)))}(t):l(t)?function(t){return p(g(t))}(t):function(t){return"x"in t&&"y"in t&&"z"in t}(t)?p(t):s(t)?function(t){const e=(t.h+360)%360/60,n=t.s/100,r=t.v/100*255,o=r*n,i=o*(1-Math.abs(e%2-1));let a;switch(Math.floor(e)){case 0:a={r:o,g:i,b:0};break;case 1:a={r:i,g:o,b:0};break;case 2:a={r:0,g:o,b:i};break;case 3:a={r:0,g:i,b:o};break;case 4:a={r:i,g:0,b:o};break;case 5:case 6:a={r:o,g:0,b:i};break;default:a={r:0,g:0,b:0}}return a.r=Math.round(a.r+r-o),a.g=Math.round(a.g+r-o),a.b=Math.round(a.b+r-o),a}(t):t}function w(t){return s(t)?t:function(t){const{r:e,g:n,b:r}=t,o=Math.max(e,n,r),i=o-Math.min(e,n,r);let a=o,s=0===i?0:o===e?(n-r)/i%6:o===n?(r-e)/i+2:(e-n)/i+4,l=0===i?0:i/a;return s<0&&(s+=6),s*=60,l*=100,a*=100/255,{h:s,s:l,v:a}}(y(t))}function C(t){return l(t)?t:function(t){return m(d(t))}(y(t))}function b(t){return u(t)?t:function(t){return function(t){const e=t.l,n=t.a,r=t.b,o=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n);return i=i>0?i:i+2*Math.PI,{l:e,c:o,h:i}}(m(d(t)))}(y(t))}function x(t,e,n={}){if(0===t.length||e<=0)return[];if(1===(t=t.map(t=>"string"==typeof t?new r.A(t):t)).length||1===e){const n=[],r=t[0];for(let t=0;t<e;t++)n.push(r.clone());return n}if(n.shuffle&&(t=(0,o.k4)((0,i.o8)(t),n.seed)),t.length>=e){const n=[],r=(t.length-1)/(e-1);for(let o=0;o<e;o++){const e=Math.round(o*r);n.push(t[e].clone())}return n}return function(t,e,n={}){const r=[],i=t.length-1,a=Math.ceil((e-t.length)/i);t:for(let o=0;o<i;o++){const i=t[o],s=t[o+1];for(let o=1;o<=a;o++){const l=o/(a+1);if(r.push(v(i,s,l,n)),r.length+t.length===e)break t}}return[...t.map(t=>t.clone()),...(0,o.k4)(r,n.seed??1)]}(t,e,n)}const A=(t,e)=>{const n=Math.floor(10*e())-5;return Math.min(255,Math.max(0,t+n))};function v(t,e,n,i={}){const a=t.r,s=t.g,l=t.b,u=e.r,c=e.g,h=e.b,f=Math.round(a+(u-a)*n),d=Math.round(s+(c-s)*n),p=Math.round(l+(h-l)*n);if(!i.offset)return new r.A([f,d,p]);const m=(0,o.Mo)(i.seed);return new r.A([A(f,m),A(d,m),A(p,m)])}},91829(t,e,n){function r(){return[0,0,0,0]}function o(t,e,n,r){return[t,e,n,r]}function i(){return o(1,1,1,1)}function a(){return o(1,0,0,0)}function s(){return o(0,1,0,0)}function l(){return o(0,0,1,0)}function u(){return o(0,0,0,1)}n.d(e,{_Y:()=>u,fA:()=>o,vt:()=>r});const c=[0,0,0,0],h=i(),f=a(),d=s(),p=l(),m=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:m,UNIT_X:f,UNIT_Y:d,UNIT_Z:p,ZEROS:c,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,e,n,r){return[t,e,n,r]},fromArray:function(t,e=[0,0,0,0]){const n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:o,ones:i,unitW:u,unitX:a,unitY:s,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,h,"uY",0,c,"v7",0,m])},78955(t,e,n){n.d(e,{Bw:()=>g,C:()=>o,Cc:()=>b,LI:()=>f,Om:()=>C,S8:()=>w,T9:()=>h,WQ:()=>a,Z0:()=>x,aI:()=>v,hG:()=>m,hZ:()=>i,hs:()=>d,jk:()=>c,m3:()=>y,t2:()=>A});var r=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function i(t,e,n,r,o){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t}function a(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function c(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function h(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function f(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function d(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function p(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],i=e[3]-t[3];return Math.sqrt(n*n+r*r+o*o+i*i)}function m(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],i=e[3]-t[3];return n*n+r*r+o*o+i*i}function g(t){const e=t[0],n=t[1],r=t[2],o=t[3];return Math.sqrt(e*e+n*n+r*r+o*o)}function y(t){const e=t[0],n=t[1],r=t[2],o=t[3];return e*e+n*n+r*r+o*o}function w(t,e){const n=e[0],r=e[1],o=e[2],i=e[3];let a=n*n+r*r+o*o+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=n*a,t[1]=r*a,t[2]=o*a,t[3]=i*a),t}function C(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function b(t,e,n,r){const o=e[0],i=e[1],a=e[2],s=e[3];return t[0]=o+r*(n[0]-o),t[1]=i+r*(n[1]-i),t[2]=a+r*(n[2]-a),t[3]=s+r*(n[3]-s),t}function x(t,e,n){const r=e[0],o=e[1],i=e[2],a=e[3];return t[0]=n[0]*r+n[4]*o+n[8]*i+n[12]*a,t[1]=n[1]*r+n[5]*o+n[9]*i+n[13]*a,t[2]=n[2]*r+n[6]*o+n[10]*i+n[14]*a,t[3]=n[3]*r+n[7]*o+n[11]*i+n[15]*a,t}function A(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function v(t,e){const n=t[0],o=t[1],i=t[2],a=t[3],s=e[0],l=e[1],u=e[2],c=e[3],h=(0,r.FD)();return Math.abs(n-s)<=h*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(o-l)<=h*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(i-u)<=h*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(a-c)<=h*Math.max(1,Math.abs(a),Math.abs(c))}const M=s,k=l,T=u,S=p,I=m,P=g,E=y;Object.freeze(Object.defineProperty({__proto__:null,add:a,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:o,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:S,distance:p,div:T,divide:u,dot:C,equals:v,exactEquals:A,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:P,length:g,lerp:b,max:h,min:c,mul:k,multiply:l,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:w,random:function(t,e=1){const n=r.Ov;let o,i,a,s,l,u;do{o=2*n()-1,i=2*n()-1,l=o*o+i*i}while(l>=1);do{a=2*n()-1,s=2*n()-1,u=a*a+s*s}while(u>=1);const c=Math.sqrt((1-l)/u);return t[0]=e*o,t[1]=e*i,t[2]=e*a*c,t[3]=e*s*c,t},round:f,scale:d,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},set:i,sqrDist:I,sqrLen:E,squaredDistance:m,squaredLength:y,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:M,subtract:s,transformMat4:x,transformQuat:function(t,e,n){const r=e[0],o=e[1],i=e[2],a=n[0],s=n[1],l=n[2],u=n[3],c=u*r+s*i-l*o,h=u*o+l*r-a*i,f=u*i+a*o-s*r,d=-a*r-s*o-l*i;return t[0]=c*u+d*-a+h*-l-f*-s,t[1]=h*u+d*-s+f*-a-c*-l,t[2]=f*u+d*-l+c*-s-h*-a,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},65864(t,e,n){n.d(e,{rS:()=>c,xD:()=>f});var r=n(5443),o=n(91075),i=n(48526),a=n(86738),s=n(39829),l=n(82799),u=n(60408);function c(t){return null==t?null:t instanceof o.A?t:(0,u.fT)(t)?a.A.fromJSON(t):(0,u.Rg)(t)?l.A.fromJSON(t):(0,u.Bi)(t)?s.A.fromJSON(t):(0,u.U9)(t)?i.A.fromJSON(t):(0,u.ZC)(t)?r.A.fromJSON(t):null}const h={esriGeometryPoint:a.A,esriGeometryPolyline:l.A,esriGeometryPolygon:s.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:i.A,esriGeometryMultiPatch:s.A};function f(t){return t&&h[t]||null}},50498(t,e,n){var r=n(66552),o=n(5443),i=n(91075),a=n(48526),s=n(86738),l=n(39829),u=n(82799);const c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:i.A,key:"type",typeMap:{extent:o.A,multipoint:a.A,point:s.A,polyline:u.A,polygon:l.A}},d=new r.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});n.d(e,["Ye",0,h,"gy",0,c,"iI",0,d,"yR",0,f])},9334(t,e,n){function r(t,e){let n=0,r="",o=0,i=0;const a=t.length;for(;n<a;)i=t[n++],o=i>>4,o<8?o=1:15===o?(o=4,i=(7&i)<<18|(63&t[n++])<<12|(63&t[n++])<<6|63&t[n++]):14===o?(o=3,i=(15&i)<<12|(63&t[n++])<<6|63&t[n++]):(o=2,i=(31&i)<<6|63&t[n++]),(0!==i||e)&&(r+=String.fromCharCode(i));return r}n.d(e,{w:()=>r})},96271(t,e,n){n.d(e,{D:()=>ot,g:()=>rt});var r=n(49186),o=n(97768),i=n(17676);async function a(t,e){e??=function(t){return(e=t).length>=2&&31===e[0]&&139===e[1]?"gzip":function(t){if(t.length<2)return!1;const[e,n]=t.subarray(0,2);return!(8!=(15&e)||e>>4>7)&&(65535&(e<<8|n))%31==0}(t)?"deflate":null;var e}(t)??"deflate-raw";const n=new Response(t).body.pipeThrough(new DecompressionStream(e)),r=await new Response(n).arrayBuffer();return new Uint8Array(r)}function s(t,e){const{width:n,height:o}=t,i=new OffscreenCanvas(n,o),a=i.getContext("2d");if(!a)throw new r.A("imagecanvasdecoder: decode","cannot create canvas context");a.drawImage(t,0,0,n,o);const s=c(a.getImageData(0,0,n,o),n,o,e);return i.width=0,i.height=0,s}function l(t,e,n=[2048,2048]){const[o,i]=n,a=new OffscreenCanvas(o,i),s=a.getContext("2d",{willReadFrequently:!0});if(!s)throw new r.A("imagecanvasdecoder: decode","cannot create canvas context");const{width:l,height:u}=t,c=l*u,h=new Uint8Array(c),f=new Uint8Array(c),d=new Uint8Array(c),p=null==e;e||(e=new Uint8Array(c));for(let n=0;n<u;n+=i){const r=Math.min(i,u-n);for(let i=0;i<l;i+=o){const a=Math.min(o,l-i);s.clearRect(0,0,a,r),s.drawImage(t,i,n,a,r,0,0,a,r);const{data:u}=s.getImageData(0,0,a,r);for(let t=0;t<r;t++){let r=t*a*4,o=(n+t)*l+i;for(let t=0;t<a;t++,r+=4,o++)h[o]=u[r],f[o]=u[r+1],d[o]=u[r+2],p&&(e[o]=u[r+3])}}}const m={width:l,height:u,pixels:[h,f,d],mask:e,pixelType:"u8"};return a.width=0,a.height=0,console.log(`decodeFullImageTiled: ${l}x${u} using tile ${o}x${i}`,m),m}function u(t,e,n){const[o,i,a]=e,[s,l]=n,u=Math.ceil(t.width/2**o),h=Math.ceil(t.height/2**o),f=Math.ceil(h/l),d=Math.ceil(u/s);if(i>=f||a>=d)return null;const p=new OffscreenCanvas(u,h),m=p.getContext("2d");if(!m)throw new r.A("imagecanvasdecoder: decode","cannot create canvas context");m.drawImage(t,0,0,u,h);const g=a*s,y=i*l,w=Math.min(s,u-g),C=Math.min(l,h-y),b=c(m.getImageData(g,y,w,C),s,l);return p.width=0,p.height=0,b}function c(t,e,n,r){const o=e*n,i=new Uint8Array(o),a=new Uint8Array(o),s=new Uint8Array(o),l=null==r;r||(r=new Uint8Array(o));const u={width:e,height:n,pixels:[i,a,s],mask:r,pixelType:"u8"},{width:c,height:h,data:f}=t;if(c===e&&h===n){for(let t=0,e=0;t<o;t++,e+=4)i[t]=f[e],a[t]=f[e+1],s[t]=f[e+2],l&&(r[t]=f[e+3]);return u}for(let t=0;t<h;t++){const n=t*c*4;for(let o=0;o<c;o++){const u=t*e+o;i[u]=f[n+4*o],a[u]=f[n+4*o+1],s[u]=f[n+4*o+2],l&&(r[u]=f[n+4*o+3])}}return u}function h(t){return`image/${"jpg"===t?"jpeg":t}`}async function f(t,e){try{const n=await a(t),r=new Uint8Array(e);for(let t=0,e=0;t<n.length;t++)for(let o=7;o>=0;o--)r[e++]=n[t]>>o&1;return r}catch(t){return null}}var d=function(){function t(t){this.message="JPEG error: "+t}return t.prototype=new Error,t.prototype.name="JpegError",t.constructor=t,t}(),p=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]),e=4017,n=799,r=3406,o=2276,i=1567,a=3784,s=5793,l=2896;function u(){this.decodeTransform=null,this.colorTransform=-1}function c(t,e){for(var n,r,o=0,i=[],a=16;a>0&&!t[a-1];)a--;i.push({children:[],index:0});var s,l=i[0];for(n=0;n<a;n++){for(r=0;r<t[n];r++){for((l=i.pop()).children[l.index]=e[o];l.index>0;)l=i.pop();for(l.index++,i.push(l);i.length<=n;)i.push(s={children:[],index:0}),l.children[l.index]=s.children,l=s;o++}n+1<a&&(i.push(s={children:[],index:0}),l.children[l.index]=s.children,l=s)}return i[0].children}function h(t,e,n){return 64*((t.blocksPerLine+1)*e+n)}function f(e,n,r,o,i,a,s,l,u){var c=r.mcusPerLine,f=r.progressive,p=n,m=0,y=0;function w(){if(y>0)return y--,m>>y&1;if(255===(m=e[n++])){var t=e[n++];if(t)throw new d("unexpected marker "+(m<<8|t).toString(16))}return y=7,m>>>7}function C(t){for(var e=t;;){if("number"==typeof(e=e[w()]))return e;if("object"!=typeof e)throw new d("invalid huffman sequence")}}function b(t){for(var e=0;t>0;)e=e<<1|w(),t--;return e}function x(t){if(1===t)return 1===w()?1:-1;var e=b(t);return e>=1<<t-1?e:e+(-1<<t)+1}var A,v=0,M=0;function k(t,e,n,r,o){var i=n%c;e(t,h(t,(n/c|0)*t.v+r,i*t.h+o))}function T(t,e,n){e(t,h(t,n/t.blocksPerLine|0,n%t.blocksPerLine))}var S,I,P,E,R,L,U=o.length;L=f?0===a?0===l?function(t,e){var n=C(t.huffmanTableDC),r=0===n?0:x(n)<<u;t.blockData[e]=t.pred+=r}:function(t,e){t.blockData[e]|=w()<<u}:0===l?function(e,n){if(v>0)v--;else for(var r=a,o=s;r<=o;){var i=C(e.huffmanTableAC),l=15&i,c=i>>4;if(0!==l){var h=t[r+=c];e.blockData[n+h]=x(l)*(1<<u),r++}else{if(c<15){v=b(c)+(1<<c)-1;break}r+=16}}}:function(e,n){for(var r,o,i=a,l=s,c=0;i<=l;){var h=t[i];switch(M){case 0:if(c=(o=C(e.huffmanTableAC))>>4,0==(r=15&o))c<15?(v=b(c)+(1<<c),M=4):(c=16,M=1);else{if(1!==r)throw new d("invalid ACn encoding");A=x(r),M=c?2:3}continue;case 1:case 2:e.blockData[n+h]?e.blockData[n+h]+=w()<<u:0===--c&&(M=2===M?3:0);break;case 3:e.blockData[n+h]?e.blockData[n+h]+=w()<<u:(e.blockData[n+h]=A<<u,M=0);break;case 4:e.blockData[n+h]&&(e.blockData[n+h]+=w()<<u)}i++}4===M&&0===--v&&(M=0)}:function(e,n){var r=C(e.huffmanTableDC),o=0===r?0:x(r);e.blockData[n]=e.pred+=o;for(var i=1;i<64;){var a=C(e.huffmanTableAC),s=15&a,l=a>>4;if(0!==s){var u=t[i+=l];e.blockData[n+u]=x(s),i++}else{if(l<15)break;i+=16}}};var O,N,D,G,B=0;for(N=1===U?o[0].blocksPerLine*o[0].blocksPerColumn:c*r.mcusPerColumn;B<N;){var F=i?Math.min(N-B,i):N;for(I=0;I<U;I++)o[I].pred=0;if(v=0,1===U)for(S=o[0],R=0;R<F;R++)T(S,L,B),B++;else for(R=0;R<F;R++){for(I=0;I<U;I++)for(D=(S=o[I]).h,G=S.v,P=0;P<G;P++)for(E=0;E<D;E++)k(S,L,B,P,E);B++}y=0,(O=g(e,n))&&O.invalid&&(console.log("decodeScan - unexpected MCU data, next marker is: "+O.invalid),n=O.offset);var V=O&&O.marker;if(!V||V<=65280)throw new d("marker was not found");if(!(V>=65488&&V<=65495))break;n+=2}return(O=g(e,n))&&O.invalid&&(console.log("decodeScan - unexpected Scan data, next marker is: "+O.invalid),n=O.offset),n-p}function p(t,u,c){var h,f,p,m,g,y,w,C,b,x,A,v,M,k,T,S,I,P=t.quantizationTable,E=t.blockData;if(!P)throw new d("missing required Quantization Table.");for(var R=0;R<64;R+=8)b=E[u+R],x=E[u+R+1],A=E[u+R+2],v=E[u+R+3],M=E[u+R+4],k=E[u+R+5],T=E[u+R+6],S=E[u+R+7],b*=P[R],0!==(x|A|v|M|k|T|S)?(x*=P[R+1],A*=P[R+2],v*=P[R+3],M*=P[R+4],k*=P[R+5],T*=P[R+6],S*=P[R+7],f=(h=(h=s*b+128>>8)+(f=s*M+128>>8)+1>>1)-f,I=(p=A)*a+(m=T)*i+128>>8,p=p*i-m*a+128>>8,w=(g=(g=l*(x-S)+128>>8)+(w=k<<4)+1>>1)-w,y=(C=(C=l*(x+S)+128>>8)+(y=v<<4)+1>>1)-y,m=(h=h+(m=I)+1>>1)-m,p=(f=f+p+1>>1)-p,I=g*o+C*r+2048>>12,g=g*r-C*o+2048>>12,C=I,I=y*n+w*e+2048>>12,y=y*e-w*n+2048>>12,w=I,c[R]=h+C,c[R+7]=h-C,c[R+1]=f+w,c[R+6]=f-w,c[R+2]=p+y,c[R+5]=p-y,c[R+3]=m+g,c[R+4]=m-g):(I=s*b+512>>10,c[R]=I,c[R+1]=I,c[R+2]=I,c[R+3]=I,c[R+4]=I,c[R+5]=I,c[R+6]=I,c[R+7]=I);for(var L=0;L<8;++L)b=c[L],0!==((x=c[L+8])|(A=c[L+16])|(v=c[L+24])|(M=c[L+32])|(k=c[L+40])|(T=c[L+48])|(S=c[L+56]))?(f=(h=4112+((h=s*b+2048>>12)+(f=s*M+2048>>12)+1>>1))-f,I=(p=A)*a+(m=T)*i+2048>>12,p=p*i-m*a+2048>>12,m=I,w=(g=(g=l*(x-S)+2048>>12)+(w=k)+1>>1)-w,y=(C=(C=l*(x+S)+2048>>12)+(y=v)+1>>1)-y,I=g*o+C*r+2048>>12,g=g*r-C*o+2048>>12,C=I,I=y*n+w*e+2048>>12,y=y*e-w*n+2048>>12,b=(b=(h=h+m+1>>1)+C)<16?0:b>=4080?255:b>>4,x=(x=(f=f+p+1>>1)+(w=I))<16?0:x>=4080?255:x>>4,A=(A=(p=f-p)+y)<16?0:A>=4080?255:A>>4,v=(v=(m=h-m)+g)<16?0:v>=4080?255:v>>4,M=(M=m-g)<16?0:M>=4080?255:M>>4,k=(k=p-y)<16?0:k>=4080?255:k>>4,T=(T=f-w)<16?0:T>=4080?255:T>>4,S=(S=h-C)<16?0:S>=4080?255:S>>4,E[u+L]=b,E[u+L+8]=x,E[u+L+16]=A,E[u+L+24]=v,E[u+L+32]=M,E[u+L+40]=k,E[u+L+48]=T,E[u+L+56]=S):(I=(I=s*b+8192>>14)<-2040?0:I>=2024?255:I+2056>>4,E[u+L]=I,E[u+L+8]=I,E[u+L+16]=I,E[u+L+24]=I,E[u+L+32]=I,E[u+L+40]=I,E[u+L+48]=I,E[u+L+56]=I)}function m(t,e){for(var n=e.blocksPerLine,r=e.blocksPerColumn,o=new Int16Array(64),i=0;i<r;i++)for(var a=0;a<n;a++)p(e,h(e,i,a),o);return e.blockData}function g(t,e,n){function r(e){return t[e]<<8|t[e+1]}var o=t.length-1,i=n<e?n:e;if(e>=o)return null;var a=r(e);if(a>=65472&&a<=65534)return{invalid:null,marker:a,offset:e};for(var s=r(i);!(s>=65472&&s<=65534);){if(++i>=o)return null;s=r(i)}return{invalid:a.toString(16),marker:s,offset:i}}return u.prototype={parse:function(e){function n(){var t=e[s]<<8|e[s+1];return s+=2,t}function r(){var t=n(),r=s+t-2,o=g(e,r,s);o&&o.invalid&&(console.log("readDataBlock - incorrect length, next marker is: "+o.invalid),r=o.offset);var i=e.subarray(s,r);return s+=i.length,i}function o(t){for(var e=Math.ceil(t.samplesPerLine/8/t.maxH),n=Math.ceil(t.scanLines/8/t.maxV),r=0;r<t.components.length;r++){B=t.components[r];var o=Math.ceil(Math.ceil(t.samplesPerLine/8)*B.h/t.maxH),i=Math.ceil(Math.ceil(t.scanLines/8)*B.v/t.maxV),a=e*B.h,s=n*B.v*64*(a+1);B.blockData=new Int16Array(s),B.blocksPerLine=o,B.blocksPerColumn=i}t.mcusPerLine=e,t.mcusPerColumn=n}var i,a,s=0,l=null,u=null,h=[],p=[],y=[],w=n();if(65496!==w)throw new d("SOI not found");for(w=n();65497!==w;){var C,b,x;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 A=r();65504===w&&74===A[0]&&70===A[1]&&73===A[2]&&70===A[3]&&0===A[4]&&(l={version:{major:A[5],minor:A[6]},densityUnits:A[7],xDensity:A[8]<<8|A[9],yDensity:A[10]<<8|A[11],thumbWidth:A[12],thumbHeight:A[13],thumbData:A.subarray(14,14+3*A[12]*A[13])}),65518===w&&65===A[0]&&100===A[1]&&111===A[2]&&98===A[3]&&101===A[4]&&(u={version:A[5]<<8|A[6],flags0:A[7]<<8|A[8],flags1:A[9]<<8|A[10],transformCode:A[11]});break;case 65499:for(var v=n()+s-2;s<v;){var M=e[s++],k=new Uint16Array(64);if(M>>4){if(M>>4!=1)throw new d("DQT - invalid table spec");for(b=0;b<64;b++)k[t[b]]=n()}else for(b=0;b<64;b++)k[t[b]]=e[s++];h[15&M]=k}break;case 65472:case 65473:case 65474:if(i)throw new d("Only single frame JPEGs supported");n(),(i={}).extended=65473===w,i.progressive=65474===w,i.precision=e[s++],i.scanLines=n(),i.samplesPerLine=n(),i.components=[],i.componentIds={};var T,S=e[s++],I=0,P=0;for(C=0;C<S;C++){T=e[s];var E=e[s+1]>>4,R=15&e[s+1];I<E&&(I=E),P<R&&(P=R);var L=e[s+2];x=i.components.push({h:E,v:R,quantizationId:L,quantizationTable:null}),i.componentIds[T]=x-1,s+=3}i.maxH=I,i.maxV=P,o(i);break;case 65476:var U=n();for(C=2;C<U;){var O=e[s++],N=new Uint8Array(16),D=0;for(b=0;b<16;b++,s++)D+=N[b]=e[s];var G=new Uint8Array(D);for(b=0;b<D;b++,s++)G[b]=e[s];C+=17+D,(O>>4?p:y)[15&O]=c(N,G)}break;case 65501:n(),a=n();break;case 65498:n();var B,F=e[s++],V=[];for(C=0;C<F;C++){var z=i.componentIds[e[s++]];B=i.components[z];var _=e[s++];B.huffmanTableDC=y[_>>4],B.huffmanTableAC=p[15&_],V.push(B)}var j=e[s++],W=e[s++],Z=e[s++],q=f(e,s,i,V,a,j,W,Z>>4,15&Z);s+=q;break;case 65535:255!==e[s]&&s--;break;default:if(255===e[s-3]&&e[s-2]>=192&&e[s-2]<=254){s-=3;break}throw new d("unknown marker "+w.toString(16))}w=n()}for(this.width=i.samplesPerLine,this.height=i.scanLines,this.jfif=l,this.eof=s,this.adobe=u,this.components=[],C=0;C<i.components.length;C++){var H=h[(B=i.components[C]).quantizationId];H&&(B.quantizationTable=H),this.components.push({output:m(0,B),scaleX:B.h/i.maxH,scaleY:B.v/i.maxV,blocksPerLine:B.blocksPerLine,blocksPerColumn:B.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData:function(t,e){var n,r,o,i,a,s,l,u,c,h,f,d=this.width/t,p=this.height/e,m=0,g=this.components.length,y=t*e*g,w=new Uint8ClampedArray(y),C=new Uint32Array(t),b=4294967288;for(l=0;l<g;l++){for(r=(n=this.components[l]).scaleX*d,o=n.scaleY*p,m=l,f=n.output,i=n.blocksPerLine+1<<3,a=0;a<t;a++)u=0|a*r,C[a]=(u&b)<<3|7&u;for(s=0;s<e;s++)for(h=i*((u=0|s*o)&b)|(7&u)<<3,a=0;a<t;a++)w[m]=f[h+C[a]],m+=g}var x=this.decodeTransform;if(x)for(l=0;l<y;)for(u=0,c=0;u<g;u++,l++,c+=2)w[l]=(w[l]*x[c]>>8)+x[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,n,r,o=0,i=t.length;o<i;o+=3)e=t[o],n=t[o+1],r=t[o+2],t[o]=e-179.456+1.402*r,t[o+1]=e+135.459-.344*n-.714*r,t[o+2]=e-226.816+1.772*n;return t},_convertYcckToRgb:function(t){for(var e,n,r,o,i=0,a=0,s=t.length;a<s;a+=4)e=t[a],n=t[a+1],r=t[a+2],o=t[a+3],t[i++]=n*(-660635669420364e-19*n+.000437130475926232*r-54080610064599e-18*e+.00048449797120281*o-.154362151871126)-122.67195406894+r*(-.000957964378445773*r+.000817076911346625*e-.00477271405408747*o+1.53380253221734)+e*(.000961250184130688*e-.00266257332283933*o+.48357088451265)+o*(-.000336197177618394*o+.484791561490776),t[i++]=107.268039397724+n*(219927104525741e-19*n-.000640992018297945*r+.000659397001245577*e+.000426105652938837*o-.176491792462875)+r*(-.000778269941513683*r+.00130872261408275*e+.000770482631801132*o-.151051492775562)+e*(.00126935368114843*e-.00265090189010898*o+.25802910206845)+o*(-.000318913117588328*o-.213742400323665),t[i++]=n*(-.000570115196973677*n-263409051004589e-19*r+.0020741088115012*e-.00288260236853442*o+.814272968359295)-20.810012546947+r*(-153496057440975e-19*r-.000132689043961446*e+.000560833691242812*o-.195152027534049)+e*(.00174418132927582*e-.00255243321439347*o+.116935020465145)+o*(-.000343531996510555*o+.24165260232407);return t},_convertYcckToCmyk:function(t){for(var e,n,r,o=0,i=t.length;o<i;o+=4)e=t[o],n=t[o+1],r=t[o+2],t[o]=434.456-e-1.402*r,t[o+1]=119.541-e+.344*n+.714*r,t[o+2]=481.816-e-1.772*n;return t},_convertCmykToRgb:function(t){for(var e,n,r,o,i=0,a=1/255,s=0,l=t.length;s<l;s+=4)e=t[s]*a,n=t[s+1]*a,r=t[s+2]*a,o=t[s+3]*a,t[i++]=255+e*(-4.387332384609988*e+54.48615194189176*n+18.82290502165302*r+212.25662451639585*o-285.2331026137004)+n*(1.7149763477362134*n-5.6096736904047315*r-17.873870861415444*o-5.497006427196366)+r*(-2.5217340131683033*r-21.248923337353073*o+17.5119270841813)-o*(21.86122147463605*o+189.48180835922747),t[i++]=255+e*(8.841041422036149*e+60.118027045597366*n+6.871425592049007*r+31.159100130055922*o-79.2970844816548)+n*(-15.310361306967817*n+17.575251261109482*r+131.35250912493976*o-190.9453302588951)+r*(4.444339102852739*r+9.8632861493405*o-24.86741582555878)-o*(20.737325471181034*o+187.80453709719578),t[i++]=255+e*(.8842522430003296*e+8.078677503112928*n+30.89978309703729*r-.23883238689178934*o-14.183576799673286)+n*(10.49593273432072*n+63.02378494754052*r+50.606957656360734*o-112.23884253719248)+r*(.03296041114873217*r+115.60384449646641*o-193.58209356861505)-o*(22.33816807309886*o+180.12613974708367);return t},getData:function(t,e,n){if(this.numComponents>4)throw new d("Unsupported color mode");var r=this._getLinearizedBlockData(t,e);if(1===this.numComponents&&n){for(var o=r.length,i=new Uint8ClampedArray(3*o),a=0,s=0;s<o;s++){var l=r[s];i[a++]=l,i[a++]=l,i[a++]=l}return i}if(3===this.numComponents&&this._isColorConversionNeeded())return this._convertYccToRgb(r);if(4===this.numComponents){if(this._isColorConversionNeeded())return n?this._convertYcckToRgb(r):this._convertYcckToCmyk(r);if(n)return this._convertCmykToRgb(r)}return r}},u}();class m{static async decode(t,e={}){const n=new Uint8Array(t),r=new p;r.parse(n);const{width:o,height:i,numComponents:a,eof:s}=r,l=e.decodeJpegAsRgb??1!==a,u=r.getData(o,i,l),c=o*i;let h=null;const{applyJpegMask:d=!1}=e;let m;d&&s<n.length-1&&(h=await f(n.subarray(s,-4),c));const g=l?3:a;if(1===g&&u.length===o*i){const t=new Uint8Array(u.buffer);m=[t,t,t]}else{m=[];for(let t=0;t<g;t++)m.push(new Uint8Array(c));for(let t=0,e=0;t<c;t++)for(let n=0;n<g;n++)m[n][t]=u[e++]}return{width:o,height:i,pixels:m,mask:h}}}var g=n(2741);const y=[{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:[-34028234663852886e22,34028234663852886e22]},{pixelType:"F64",size:8,ctor:Float64Array,range:[-17976931348623157e292,17976931348623157e292]}];let w=null;function C(){return w||(w=n.e(382).then(n.bind(n,30382)).then(({default:t})=>t({locateFile:t=>(0,g.s)(`esri/layers/raster/formats/${t}`)})).then(t=>{!function(t){const{_malloc:e,_free:n,memory:r,_lerc_getBlobInfo:o,_lerc_getDataRanges:i,_lerc_decode_4D:a}=t;let s;const l=t=>{const n=t.map(t=>function(t){return 16+(t>>3<<3)}(t)),o=n.reduce((t,e)=>t+e),i=e(o);s=new Uint8Array(r.buffer);let a=n[0];n[0]=i;for(let t=1;t<n.length;t++){const e=n[t];n[t]=n[t-1]+a,a=e}return n};b.getBlobInfo=t=>{const e=new Uint8Array(48),a=new Uint8Array(24),[u,c,h]=l([t.length,e.length,a.length]);s.set(t,u),s.set(e,c),s.set(a,h);let f=o(u,t.length,c,h,12,3);if(f)throw n(u),new Error(`lerc-getBlobInfo: error code is ${f}`);s=new Uint8Array(r.buffer),x(s,c,e),x(s,h,a);const d=new Uint32Array(e.buffer),p=new Float64Array(a.buffer),[m,g,,y,w,C,b,A,v,M,k]=d,T=0===b,S={version:m,depthCount:M,width:y,height:w,validPixelCount:b,bandCount:C,blobSize:A,maskCount:v,dataType:g,minValue:p[0],maxValue:p[1],maxZerror:p[2],statistics:[],bandCountWithNoData:k};if(k&&M>1)return n(u),S;if(1===M&&1===C){n(u);const t=T?0:p[0],e=T?0:p[1];return S.statistics.push({minValue:t,maxValue:e}),S}const I=M*C*8,P=new Uint8Array(I),E=new Uint8Array(I);let R=u,L=0,U=0,O=!1;if(s.byteLength<u+2*I?(n(u),O=!0,[R,L,U]=l([t.length,I,I]),s.set(t,R)):[L,U]=l([I,I]),s.set(P,L),s.set(E,U),f=i(R,t.length,M,C,L,U),f)throw n(R),O||n(L),new Error(`lerc-getDataRanges: error code is ${f}`);s=new Uint8Array(r.buffer),x(s,L,P),x(s,U,E);const N=new Float64Array(P.buffer),D=new Float64Array(E.buffer),G=S.statistics;for(let t=0;t<C;t++)if(M>1){const e=N.slice(t*M,(t+1)*M),n=D.slice(t*M,(t+1)*M),r=T?0:Math.min.apply(null,e),o=T?0:Math.max.apply(null,n);G.push({minValue:r,maxValue:o,depthStats:{minValues:e,maxValues:n}})}else G.push({minValue:T?0:N[t],maxValue:T?0:D[t]});return n(R),O||n(L),S},b.decode=(t,e)=>{const{maskCount:o,depthCount:i,bandCount:u,width:c,height:h,dataType:f,bandCountWithNoData:d,validPixelCount:p}=e,m=y[f],g=c*h,w=new Uint8Array(g*u),C=g*i*u*m.size,b=new Uint8Array(C),A=new Uint8Array(u),v=new Uint8Array(8*u);if(0===p)return{data:b,maskData:w,noDataValues:null};const[M,k,T,S,I]=l([t.length,w.length,b.length,A.length,v.length]);s.set(t,M),s.set(w,k),s.set(b,T),s.set(A,S),s.set(v,I);const P=a(M,t.length,o,k,i,c,h,u,f,T,S,I);if(P)throw n(M),new Error(`lerc-decode: error code is ${P}`);s=new Uint8Array(r.buffer),x(s,T,b),x(s,k,w);let E=null;if(d){x(s,S,A),x(s,I,v),E=[];const t=new Float64Array(v.buffer);for(let e=0;e<A.length;e++)E.push(A[e]?t[e]:null)}return n(M),{data:b,maskData:w,noDataValues:E}}}(t)}),w)}const b={getBlobInfo:null,decode:null};function x(t,e,n){n.set(t.slice(e,e+n.length))}function A(t,e,n,r,o){if(n<2)return t;const i=new r(e*n);for(let r=0,o=0;r<e;r++)for(let a=0,s=r;a<n;a++,s+=e)i[s]=t[o++];return i}function v(t,e={}){const n=e.inputOffset??0,r=t instanceof Uint8Array?t.subarray(n):new Uint8Array(t,n),o=b.getBlobInfo(r),{data:i,maskData:a,noDataValues:s}=b.decode(r,o),{width:l,height:u,bandCount:c,depthCount:h,dataType:f,maskCount:d,statistics:p}=o,m=y[f],g=new m.ctor(i.buffer),w=[],C=[],x=l*u,v=x*h,M=y.find(t=>t.pixelType===e.outputPixelType)??m,k=M.pixelType!==m.pixelType;for(let t=0;t<c;t++){const n=t*v,r=n+v,o=g.subarray(n,r),i=k?new M.ctor(o):o;if(e.returnInterleaved)w.push(i);else{const t=A(i,x,h,M.ctor);w.push(t)}C.push(a.subarray(n,r))}const T=0===d?null:1===d?C[0]:new Uint8Array(x);if(d>1){T.set(C[0]);for(let t=1;t<C.length;t++){const e=C[t];for(let t=0;t<x;t++)T[t]=T[t]&e[t]}}const{noDataValue:S}=e,I=null!=S&&M.range[0]<=S&&M.range[1]>=S,{validPixelCount:P}=o;if(d>0&&I)for(let t=0;t<c;t++){const e=w[t];if(0===P)e.fill(S);else{const n=C[t]||T;for(let t=0;t<x;t++)0===n[t]&&(e[t]=S)}}const E=d===c&&c>1?C:null;return{width:l,height:u,bandCount:c,pixelType:M.pixelType,depthCount:h,statistics:p,pixels:w,mask:T,validPixelCount:P,bandMasks:E,noDataValues:s}}function M(){const t=[];for(let e=0;e<=257;e++)t[e]=[e];return t}function k(t,e){for(let n=0;n<e.length;n++)t.push(e[n])}const T=new Set;function S(t,e,n,r=!0){const o=function(t,e,n,r=!0){if(e%4!=0||n%4!=0){const o=new ArrayBuffer(4*Math.ceil(n/4)),i=new Uint8Array(o),a=new Uint8Array(t,e,n);if(r)for(let t=0;t<i.length;t+=4)i[t]=a[t+3],i[t+1]=a[t+2],i[t+2]=a[t+1],i[t+3]=a[t];else i.set(a);return new Uint32Array(i.buffer)}if(r){const r=new Uint8Array(t,e,n),o=new Uint8Array(r.length);for(let t=0;t<o.length;t+=4)o[t]=r[t+3],o[t+1]=r[t+2],o[t+2]=r[t+1],o[t+3]=r[t];return new Uint32Array(o.buffer)}return new Uint32Array(t,e,n/4)}(t,e,n,r);let i=9,a=M(),s=32,l=a.length,u=[],c=1,h=o[0],f=0;const d=o.length,p=8*(4*d-n),m=[];for(;null!=h;){if(s>=i)s-=i,f=h>>>32-i,h<<=i;else{f=h>>>32-s,h=o[c++];const t=i-s;s=32-t,f=(f<<t)+(h>>>s),h<<=t}if(257===f)break;if(256===f){i=9,a=M(),l=a.length,u=[];continue}const t=a[f];if(null==t){if(f>a.length)throw new Error("data integrity issue: code does not exist on code page");u.push(u[0]),a[l++]=u.slice(),k(m,u)}else k(m,t),u.push(t[0]),u.length>1&&(a[l++]=u.slice()),u=t.slice();if(T.has(l)&&i++,0===s&&(h=o[c++],s=32),c>d||c===d&&s<=p)break}return new Uint8Array(m)}T.add(511),T.add(1023),T.add(2047),T.add(4095),T.add(8191);var I=n(94778);const P=new Set(["uint8","int8","uint16","int16","uint32","int32","int64","uint64"]),E=new Map([["uint8",{byteCount:1,pixelType:"u8",ctor:Uint8Array}],["int8",{byteCount:1,pixelType:"s8",ctor:Int8Array}],["uint16",{byteCount:2,pixelType:"u16",ctor:Uint16Array}],["int16",{byteCount:2,pixelType:"s16",ctor:Int16Array}],["uint32",{byteCount:4,pixelType:"u32",ctor:Uint32Array}],["int32",{byteCount:4,pixelType:"s32",ctor:Int32Array}],["uint64",{byteCount:8,pixelType:"f64",ctor:BigUint64Array}],["int64",{byteCount:8,pixelType:"f64",ctor:BigInt64Array}]]);let R;const L={getBlobInfo:null,decode:null};function U(t){if(!E.has(t))throw new Error("Unsupported data type: "+t);return E.get(t)}const O=(t,e)=>{const n=e.width*e.height,r=e.pixelType;return Math.floor(t.byteLength/(n*N(r)))},N=t=>{let e=1;switch(t){case Uint8Array:case Int8Array:e=1;break;case Uint16Array:case Int16Array:e=2;break;case Uint32Array:case Int32Array:case Float32Array:e=4;break;case Float64Array:e=8}return e};class D{static decode(t,e){const n=e.pixelType,r=[],o=e.width*e.height,i=O(t,e),{bandIds:a,format:s}=e,l=a?.length||O(t,e),u=t.byteLength-t.byteLength%(o*N(n)),c=new n(t,0,o*i);if("bip"===s)for(let t=0;t<l;t++){const e=new n(o),s=a?a[t]:t;for(let t=0;t<o;t++)e[t]=c[t*i+s];r.push(e)}else if("bsq"===s)for(let t=0;t<l;t++){const e=a?a[t]:t;r.push(c.subarray(e*o,(e+1)*o))}let h=null;return u<t.byteLength-1&&(h=((t,e)=>{if(8*t.byteLength<e)return null;const n=new Uint8Array(t,0,Math.ceil(e/8)),r=new Uint8Array(e);let o=0,i=0;for(let t=0;t<n.length-1;t++){i=n[t];for(let t=7;t>=0;t--)r[o++]=i>>t&1}let a=7;for(;o<e-1;)i=n[n.length-1],r[o++]=i>>a&1,a--;return r})(t.slice(u),o)),{pixels:r,mask:h}}}n(44208);var G=n(44094),B=n(10713);function F(t,e){let n="unknown";return 3===t?n=64===e?"f64":"f32":1===t?1===e?n="u1":2===e?n="u2":4===e?n="u4":e<=8?n="u8":e<=16?n="u16":e<=32&&(n="u32"):2===t&&(e<=8?n="s8":e<=16?n="s16":e<=32&&(n="s32")),n}function V(t){let e=null;switch(t?t.toLowerCase():"f32"){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"f64":e=Float64Array;break;default:e=Float32Array}return e}function z(t,e){if(e%8==0)return t;const n=e>16?32:e>8?16:8;n>8&&(t=j(t,32===n?4:2));const r=32===n?Uint32Array:16===n?Uint16Array:Uint8Array,o=new r(t),i=Math.floor(8*t.byteLength/e+1e-6),a=new r(i),s=(1<<e)-1;let l=0,u=0,c=0;for(let t=0;t<i;t++)if(0===u&&(c=o[l++],u=n),u>=e)a[t]=c>>>u-e&s,u-=e;else{const r=e-u;let i=(c&s)<<r&s;c=o[l++],u=n-r,i+=c>>>u,a[t]=i}return a.buffer}function _(t,e,n){const r=new p;r.parse(t),r.colorTransform=6===n?-1:0;const o=r.getData(r.width,r.height,1!==e&&4!==e);return new Uint8Array(o.buffer)}function j(t,e){const n=new Uint8Array(t),r=new Uint8Array(n.length);if(2===e)for(let t=0;t<n.length;t+=2)r[t]=n[t+1],r[t+1]=n[t];else if(4===e)for(let t=0;t<n.length;t+=4)r[t]=n[t+3],r[t+1]=n[t+2],r[t+2]=n[t+1],r[t+3]=n[t];else for(let t=0;t<n.length;t+=8)r[t]=n[t+7],r[t+1]=n[t+6],r[t+2]=n[t+5],r[t+3]=n[t+4],r[t+4]=n[t+3],r[t+5]=n[t+2],r[t+6]=n[t+1],r[t+7]=n[t];return r.buffer}async function W(t,e,n,o,i){const s=B.Z===e,l=(0,G.LZ)(n,"BITSPERSAMPLE"),u=(0,G.LZ)(n,"SAMPLESPERPIXEL")??1,c=(0,G.LZ)(n,"PHOTOMETRICINTERPRETATION"),h=(0,G.LZ)(n,"SAMPLEFORMAT")??1,f=F(h,l),d=(0,G.ni)(n);if(34887===d)return await async function(t,e){return await C(),v(t,{inputOffset:e}).pixels[0]}(t,o);const p=V(f);let m,g,y;switch(d){case 1:m=t.slice(o,o+i),g=new Uint8Array(m);break;case 8:case 32946:g=await a(new Uint8Array(t,o,i)),m=g.buffer;break;case 6:g=_(new Uint8Array(t,o,i),u,c),m=g.buffer;break;case 7:{const e=n.get("JPEGTABLES").values,r=e.length-2,a=new Uint8Array(r+i-2);for(let t=0;t<r;t++)a[t]=e[t];const s=new Uint8Array(t,o+2,i-2);for(let t=0;t<s.length;t++)a[r+t]=s[t];g=_(a,u,c),m=g.buffer}break;case 5:g=S(t,o,i,e),m=g.buffer;break;default:throw new r.A("tiff-reader:decode-data","unsupported compression "+d)}if(m=z(m,l),s||l<=8)y=new p(m);else{const t=l>32?8:l>16?4:2;y=new p(j(g.buffer,t))}const w=(0,G.LZ)(n,"PREDICTOR")??1,b=(0,G.LZ)(n,"TILEWIDTH"),x=(0,G.LZ)(n,"TILELENGTH");if(w>1&&(5===d||8===d||32946===d)&&b&&x){const t=(0,G.XO)(n),e=new p(y.length);e.set(y),y=function(t,e,n,r,o){const i=r?4:1,a=n*i*o;r&&(t=new Uint8Array(t.buffer));for(let n=0;n<e;n++){const e=n*a;for(let n=o;n<a;n++)t[e+n]+=t[e+n-o]}if(!r)return t;const s=new Uint8Array(t.length),l=n*o;for(let n=0;n<e;n++){const e=n*a;for(let n=0;n<l;n++)for(let r=0;r<i;r++)s[e+n*i+r]=t[e+n+(i-r-1)*l]}return new Float32Array(s.buffer)}(e,x,b,3===h&&3===w,t?1:u)}return y}var Z=n(14140),q=n(4151);async function H(t,e){if(!B.Z)throw new r.A("rasterCoded:decode","lerc decoder is not supported on big endian platform");await C();const{width:n,height:o,pixelType:i,statistics:a,depthCount:s,noDataValues:l,bandMasks:u,pixels:c,mask:h,validPixelCount:f}=v(t,{inputOffset:e.offset,returnInterleaved:e.returnInterleaved});return new Z.A({width:n,height:o,pixelType:i.toLowerCase(),pixels:c,mask:h,validPixelCount:f,statistics:a.map(({minValue:t,maxValue:e})=>new q.A(t,e)),bandMasks:u,depthCount:s,noDataValues:l})}async function K(t,e){await(R??=n.e(6154).then(n.bind(n,56154)).then(({default:t})=>t({locateFile:t=>(0,g.s)(`esri/layers/raster/formats/${t}`)})).then(t=>{!function(t){const{_GetInfo:e,_decode:n,_malloc:r,_free:o,writeArrayToMemory:i,UTF8ToString:a}=t;L.getBlobInfo=t=>{t.length>1e3&&(t=t.slice(0,1e3));const n=r(t.length);i(t,n);const s=e(n,t.length);if(o(n),!s)return null;const l=a(s);o(s);try{const t=JSON.parse(l);return{width:t.xsize,height:t.ysize,bandCount:t.nbands,dataType:t.dtype,mode:t.mode,bandMap:t.bandmap}}catch{return null}},L.decode=(e,r)=>{const{dataType:o,width:i,height:a,bandCount:s}=r;if(!P.has(o))throw new Error("Unsupported data type: "+o);const{_malloc:l,_free:u}=t,c=l(e.length);t.writeArrayToMemory(e,c);const{ctor:h,byteCount:f}=U(o),d=i*a*s*f,p=l(d),m=l(1024);if(0===n(c,e.length,p,m))throw u(c),u(p),u(m),new Error("Decoding failed: "+t.UTF8ToString(m));const g=new h(t.HEAPU8.slice(p,p+d).buffer);if(u(c),u(p),u(m),g instanceof BigInt64Array||g instanceof BigUint64Array){const t=new Float64Array(g.length);for(let e=0;e<g.length;e++)t[e]=Number(g[e]);return t}return g}}(t)}),R);const o=function(t){const e=new Uint8Array(t),n=L.getBlobInfo(e);if(!n)return null;const r=L.decode(e,n);if(!r)return null;const{width:o,height:i,bandCount:a,dataType:s}=n,{ctor:l,pixelType:u}=U(s),c=l===BigInt64Array||l===BigUint64Array?Float64Array:l,h=Array.from({length:a},()=>new c(o*i));for(let t=0,e=0;t<o*i;t++)for(let n=0;n<a;n++)h[n][t]=r[e++];return{width:o,height:i,pixelType:u,pixels:h}}(t);if(!o)throw new r.A("rasterCodec:decode","failed to decode the input data.");const{width:i,height:a,pixels:s,pixelType:l}=o;return new Z.A({width:i,height:a,pixelType:l,pixels:s})}async function J(t,e){const n=await async function(t,e={}){const n=e.pyramidLevel||0,o=e.headerInfo||(0,G.RW)(t),{ifds:i,noData:s}=o;if(0===i.length)throw new r.A("tiff-reader:decode","no valid image file directory");const l=(0,G._J)(o);if(l)throw new r.A("tiff-reader:decode",l);const u=-1===n?i[i.length-1]:i[n],c=s??e.noDataValue,h=o.tileWidth?await async function(t,e,n){const r=(0,G.wc)(n,"TILEOFFSETS"),o=(0,G.wc)(n,"TILEBYTECOUNTS");if(null==r||null==o)return null;const{width:i,height:a,pixelType:s,tileWidth:l,tileHeight:u}=(0,G.uc)([n]),c=(0,G.XO)(n,e),h=(0,G.LZ)(n,"SAMPLESPERPIXEL")||e.planes,f=i*a,d=(0,G.LZ)(n,"BITSPERSAMPLE"),p=34887===(0,G.ni)(n),m=V(s),g=[];for(let t=0;t<h;t++)g.push(new m(f));const y=Math.ceil(i/l),w=new Uint8Array(f).fill(255);let C=null,b=!1;if(d%8==0)if(p&&c&&h>1){const s=Math.round(r.length/h);for(let c=0;c<s;c++){const s=Math.floor(c/y)*u,f=c%y*l,d=s*i+f;for(let p=0;p<h;p++){const m=c*h+p;0===o[m]?(C=null,b=!0):C=await W(t,e.littleEndian,n,r[m],o[m]);const y=Math.min(l,i-f),x=Math.min(u,a-s),A=g[p];for(let t=0;t<x;t++){let e=d+t*i,n=t*l;for(let t=0;t<y;t++,e++,n++)C?A[e]=C[n]:w[e]=0}}}}else for(let s=0;s<r.length;s++){const f=Math.floor(s/y)*u,d=s%y*l,m=f*i+d;0===o[s]?(C=null,b=!0):C=await W(t,e.littleEndian,n,r[s],o[s]);const x=Math.min(l,i-d),A=Math.min(u,a-f);for(let t=0;t<h;t++){const e=g[t];if(c||p)for(let n=0;n<A;n++){let r=m+n*i,o=l*u*t+n*l;for(let t=0;t<x;t++,r++,o++)C?e[r]=C[o]:w[r]=0}else for(let n=0;n<A;n++){let r=m+n*i,o=n*l*h+t;for(let t=0;t<x;t++,r++,o+=h)C?e[r]=C[o]:w[r]=0}}}return{width:i,height:a,pixelType:s,pixels:g,mask:b?w:void 0}}(t,o,u):await async function(t,e,n){const r=B.Z===e.littleEndian,o=(0,G.wc)(n,"STRIPOFFSETS"),i=(0,G.wc)(n,"STRIPBYTECOUNTS");if(null==o||null==i)return null;const{width:s,height:l,pixelType:u}=(0,G.uc)([n]),c=(0,G.LZ)(n,"SAMPLESPERPIXEL")||e.planes,h=(0,G.LZ)(n,"PHOTOMETRICINTERPRETATION"),f=s*l,d=(0,G.LZ)(n,"BITSPERSAMPLE"),p=V(u),m=new p(f*c),g=(0,G.LZ)(n,"ROWSPERSTRIP"),y=(0,G.ni)(n);let w,C,b,x;if(d%8==0)for(let n=0;n<o.length;n++){const l=n*(g*s)*c;if("u8"===u||"s8"===u||r)8===y||32946===y?(b=new Uint8Array(t,o[n],i[n]),b=await a(b),C=b.buffer):6===y?(b=new Uint8Array(t,o[n],i[n]),b=_(b,c,h),C=b.buffer):5===y?(b=S(t,o[n],i[n],e.littleEndian),C=b.buffer):C=t.slice(o[n],o[n]+i[n]),C=z(C,d),w=new p(C);else{switch(6===y||8===y||32946===y?(b=new Uint8Array(t,o[n],i[n]),x=await a(b),C=x.buffer):(C=new ArrayBuffer(i[n]),b=new Uint8Array(t,o[n],i[n]),x=new Uint8Array(C)),u){case"u16":case"s16":for(let t=0;t<b.length;t+=2)x[t]=b[t+1],x[t+1]=b[t];break;case"u32":case"s32":case"f32":for(let t=0;t<b.length;t+=4)x[t]=b[t+3],x[t+1]=b[t+2],x[t+2]=b[t+1],x[t+3]=b[t]}C=z(C,d),w=new p(C)}m.set(w,l)}const A=[];if(1===c)A.push(m);else for(let t=0;t<c;t++){const e=new p(f);for(let n=0;n<f;n++)e[n]=m[n*c+t];A.push(e)}return{width:s,height:l,pixelType:u,pixels:A}}(t,o,u);return h?(null!=c&&(0,I.Sp)(h,c,{matchAllNoData:null==s&&e?.matchAllNoData}),h):h}(t,{...e,noDataValue:e.tiffNoDataValue,matchAllNoData:e.matchAllNoData});return(0,o.Lw)(n),new Z.A({width:n.width,height:n.height,pixels:n.pixels,pixelType:n.pixelType.toLowerCase(),mask:n.mask,bandMasks:n.bandMasks})}function Y(t,e){const n=e.pixelType||"u8",r=Z.A.getPixelArrayConstructor(n),o="u8"===n?t:new r(t.buffer),i=[],a=e.planes||1;if(1===a)i.push(o);else for(let n=0;n<a;n++){const s=(e.width||1)*(e.height||t.length),l=new r(s);for(let t=0;t<s;t++)l[t]=o[t*a+n];i.push(l)}return new Z.A({width:e.width||1,height:e.height||t.length,pixels:i,pixelType:n})}async function X(t,e){return Y(await a(new Uint8Array(t)),e)}function $(t,e){return Y(S(t,e.offset,e.eof,!e.isInputBigEndian),e)}function Q(t,e){const n=e.format,{pixelTypeCtor:r}=function(t){let e=null,n=null;switch(t?t.toLowerCase():"f32"){case"u1":case"u2":case"u4":case"u8":n=255,e=Uint8Array;break;case"u16":n=n||65535,e=Uint16Array;break;case"u32":n=n||2**32-1,e=Uint32Array;break;case"s8":n=n||-128,e=Int8Array;break;case"s16":n=n||-32768,e=Int16Array;break;case"s32":n=n||0-2**31,e=Int32Array;break;default:e=Float32Array}return{pixelTypeCtor:e,noDataValue:n}}(e.pixelType),o=(0,D.decode)(t,{width:e.width,height:e.height,pixelType:r,format:n});return new Z.A({width:e.width,height:e.height,pixels:o.pixels,pixelType:e.pixelType,mask:o.mask})}async function tt(t,e){const n=await m.decode(t,e);return new Z.A({width:n.width,height:n.height,pixels:n.pixels,pixelType:"u8",mask:n.mask})}async function et(t,e,n){const o=await async function(t,e,n){if(!t||t.byteLength<10)throw new r.A("imagecanvasdecoder: decode","required a valid encoded data as input.");const{width:o,height:a,format:c}=e,{applyJpegMask:d}=e;if(d&&(!o||!a))throw new r.A("imagecanvasdecoder: decode","image width and height are needed to apply jpeg mask directly to canvas");let p=null;"jpg"===c&&d&&o&&a&&(p=await async function(t,e){try{const n=new Uint8Array(t);let r=Math.ceil(n.length/2);const o=n.length-2;for(;r<o&&(255!==n[r]||217!==n[r+1]);r++);r+=2;let i=null;return r<n.length-1&&(i=await f(n.subarray(r,-4),e.width*e.height)),i}catch{return null}}(t,{width:o,height:a}));try{const r=new Blob([new Uint8Array(t)],{type:h(c)}),o=await createImageBitmap(r);(0,i.Te)(n);const{useTiledDecoding:a,tileIndex:f,tileSize:d}=e;if(a&&null==f)return l(o,p,d);if(null!=f&&null!=d)return u(o,f,d);try{return s(o,p)}catch(t){if((0,i.QP)(t),o.width>4096||o.height>4096)return l(o,p);throw t}}catch(t){throw(0,i.QP)(t),new r.A("imagecanvasdecoder: decode","cannot load image")}}(t,e,n);return new Z.A(o)}async function nt(t,e,n){const o=e.format||rt(t),a={...e,format:o},{canvasUsage:s}=e;if("no-canvas"!==s||"png"===o)try{return await et(t,a,n)}catch(t){if((0,i.zf)(t))throw t;if("canvas-only"===s)throw new r.A("rasterCodec:decode",`failed to decode the input data with canvas for format ${o}`)}return await tt(t,a)}function rt(t){if(!t)return;const e=new Uint8Array(t,0,10);let n;return 255===e[0]&&216===e[1]?n="jpg":137===e[0]&&80===e[1]&&78===e[2]&&71===e[3]?n="png":67===e[0]&&110===e[1]&&116===e[2]&&90===e[3]&&73===e[4]&&109===e[5]&&97===e[6]&&103===e[7]&&101===e[8]&&32===e[9]||76===e[0]&&101===e[1]&&114===e[2]&&99===e[3]&&50===e[4]&&32===e[5]?n="lerc":73===e[0]&&73===e[1]&&42===e[2]&&0===e[3]||77===e[0]&&77===e[1]&&0===e[2]&&42===e[3]||73===e[0]&&73===e[1]&&43===e[2]&&0===e[3]||77===e[0]&&77===e[1]&&0===e[2]&&43===e[3]?n="tiff":71===e[0]&&73===e[1]&&70===e[2]?n="gif":66===e[0]&&77===e[1]?n="bmp":81===e[0]&&66===e[1]&&51===e[2]&&(n="qb3"),n}async function ot(t,e={},n){if(null==t)throw new r.A("rasterCodec:decode","missing encodeddata parameter.");let o=e.format?.toLowerCase();if(!("bsq"!==o&&"bip"!==o||null!=e.width&&null!=e.height))throw new r.A("rasterCodec:decode","requires width and height in options parameter.");if("tiff"===o&&e.customOptions)return async function(t,e){const n=await async function(t,e){const{headerInfo:n,ifd:r,offsets:o,sizes:i}=e,a=[];for(let e=0;e<o.length;e++){i[e];const s=await W(t,n.littleEndian,r,o[e],i[e]||t.byteLength);a.push(s)}const s=(0,G.XO)(r,n),l=(0,G.LZ)(r,"BITSPERSAMPLE"),u=F((0,G.LZ)(r,"SAMPLEFORMAT")??1,l),c=(0,G.LZ)(r,"SAMPLESPERPIXEL")||n.planes,h=V(u),f=(0,G.LZ)(r,"TILEWIDTH"),d=(0,G.LZ)(r,"TILELENGTH"),p=34887===(0,G.ni)(r),m=f*d;let g;const y=[];let w=a[0];for(let t=0;t<c;t++){if(g=new h(m),a.length===c)w=a[t],w.length===m&&(g=w);else if(w.length)if(s||p)g=w.length===m?w:w.slice(m*t,m*(t+1));else for(let e=0;e<m;e++)g[e]=w[e*c+t];y.push(g)}const C=n.noData?n.noData[0]:e.noDataValue,b=n.metadata?n.metadata.statistics:null,x=b?b.map(t=>t.min):null,A=b?b.map(t=>t.max):null,v={pixelType:u,width:f,height:d,pixels:y,noDataValue:C};return null!=C?(0,I.Sp)(v,C,{matchAllNoData:e?.matchAllNoData}):x&&A&&e.applyMinMaxConstraint&&(v.mask=function(t,e,n){if(!(t&&t.length>0&&e&&n))return null;let r,o,i;const a=t[0].length,s=t.length,l=new Uint8Array(a);for(let u=0;u<s;u++)if(r=t[u],o=e[u],i=n[u],0===u)for(let t=0;t<a;t++)l[t]=r[t]<o||r[t]>i?0:1;else for(let t=0;t<a;t++)l[t]&&(l[t]=r[t]<o||r[t]>i?0:1);return l}(y,x,A)),v}(t,e.customOptions),r=new Z.A({width:n.width,height:n.height,pixels:n.pixels,pixelType:n.pixelType.toLowerCase(),mask:n.mask});return e.skipStatistics||r.updateStatistics(),r}(t,e);if(!o||"bsq"!==o&&"bip"!==o&&"deflate"!==o&&"lzw"!==o){if(o=rt(t),!o)throw String.fromCharCode.apply(null,[...new Uint8Array(t,0,10)]).toLowerCase().includes("error")?new r.A("rasterCodec:decode","input data contains error"):new r.A("rasterCodec:decode","unsupported raster format");e={...e,format:o}}const i=function(t){let e=null;switch(t){case"lerc":e=H;break;case"jpg":case"png":e=nt;break;case"bmp":case"gif":e=et;break;case"bsq":case"bip":e=Q;break;case"tiff":e=J;break;case"deflate":e=X;break;case"lzw":e=$;break;case"qb3":e=K;break;default:e=()=>{throw new r.A("rasterCodec:decode",`unsupported raster format ${t}`)}}return e}(o);let a;e.isPoint&&(null!=(e={...e}).width&&e.width++,null!=e.height&&e.height++);const{offsets:s}=e;if(s&&s.length>1){const r=s.map((r,o)=>i(t.slice(r,s[o+1]),e,n)),o=await Promise.all(r);a=o[0],a.pixels=o.map(t=>t.pixels[0]);const l=o.map(t=>t.mask);l.some(t=>null!=t)&&(l.forEach((t,e)=>{l[e]??=new Uint8Array(a.width*a.height).fill(255)}),a.bandMasks=l,a.mask=Z.A.combineBandMasks(l))}else a=await i(t,{...e,offset:s?.[0]??e.offset},n);return"jpg"!==o&&null!=e.noDataValue&&1===a.depthCount&&(0,I.Sp)(a,e.noDataValue,{customFloatTolerance:e.tolerance}),e.isPoint&&function(t,e="bilinear"){if(!t)return;const{pixels:n,width:r,height:o,mask:i}=t;if(!n||0===n.length)return;const a=r-1,s=o-1,l=[];let u=null;const c=Z.A.getPixelArrayConstructor(t.pixelType);if("nearest"===e){for(const t of n){const e=new c(a*s);for(let n=0;n<s;n++){const o=n*r;for(let r=0;r<a;r++)e[n*a+r]=t[o+r]}l.push(e)}if(null!=i){u=new Uint8Array(a*s);for(let t=0;t<s;t++){const e=t*r;for(let n=0;n<a;n++)u[t*a+n]=i[e+n]}}}else{for(const t of n){const e=new c(a*s);for(let n=0;n<s;n++){const o=n*r;for(let i=0;i<a;i++)e[n*a+i]=(t[o+i]+t[o+i+1]+t[o+r+i]+t[o+r+i+1])/4}l.push(e)}if(i){u=new Uint8Array(a*s);for(let t=0;t<s;t++){const e=t*r;for(let n=0;n<a;n++)u[t*a+n]=Math.min.apply(null,[i[e+n],i[e+n+1],i[e+r+n],i[e+r+n+1]])}}}t.width=a,t.height=s,t.mask=u,t.pixels=l}(a),a.statistics?.length||e.skipStatistics||a.updateStatistics(),a}},94778(t,e,n){n.d(e,{$p:()=>l,Sp:()=>u,X1:()=>i,hP:()=>o,yM:()=>s,zw:()=>a});const r={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767],u32:[0,4294967295],s32:[-2147483648,2147483647],f32:[-34028234663852886e22,34028234663852886e22],f64:[-Number.MAX_VALUE,Number.MAX_VALUE],unknown:void 0,c64:void 0,c128:void 0};function o(t){return r[t]??[-34028234663852886e22,34028234663852886e22]}function i(t,e){return null==t||null==e?"s32":t<0?t>=-128&&e<128?"s8":t>=-32768&&e<32768?"s16":"s32":e<256?"u8":e<65536?"u16":"u32"}function a(t){return(t?.startsWith("s")||t?.startsWith("u"))??!1}function s(t,e,n,r){let[i,s]=o(n);const l=a(n);return l&&(i-=1e-5,s+=1e-5),l?n.startsWith("u")?function(t,e,n,r){const[o,i]=r;for(let r=0;r<e.length;r++)if(e[r]){const a=t[r];a<o||a>i?e[r]=0:n[r]=a+.5|0}}(t,e,r,[i,s]):function(t,e,n,r){const[o,i]=r;for(let r=0;r<e.length;r++)if(e[r]){const a=t[r];a<o||a>i?e[r]=0:n[r]=a+(a>0?.5:-.5)|0}}(t,e,r,[i,s]):function(t,e,n,r){const[o,i]=r;for(let r=0;r<e.length;r++)if(e[r]){const a=t[r];a<o||a>i?e[r]=0:n[r]=a}}(t,e,r,[i,s])}function l(t,e){for(let n=0;n<e.length;n++)e[n]&&isNaN(t[n])&&(e[n]=0,t[n]=0)}function u(t,e,n){if(t.depthCount&&t.depthCount>1)return;const{pixels:r,statistics:i,pixelType:a}=t,s=r[0].length,l=t.bandMasks??[],u=t.mask??new Uint8Array(s).fill(255),c="f32"===a||"f64"===a,h=o(a);let f=!1;for(let t=0;t<r.length;t++){const o="number"==typeof e?e:e[t];if(null==o)continue;const s=i?.[t]?.minValue??h[0],d=i?.[t]?.maxValue??h[1];if(s>o+Number.EPSILON||d<o-Number.EPSILON)continue;const p=l[t]||u.slice(),m=r[t],g=n?.customFloatTolerance;if(c&&0!==g){let t=g;t||(t=Math.abs(o)>=9999999e31?2e-7*Math.abs(o):"f32"===a?2**-23:Number.EPSILON);for(let e=0;e<m.length;e++)p[e]&&Math.abs(m[e]-o)<t&&(m[e]=0,p[e]=0,u[e]=0,f=!0)}else for(let t=0;t<m.length;t++)p[t]&&m[t]===o&&(m[t]=0,p[t]=0,u[t]=0,f=!0);l[t]=p}if(f){const e=t.bandMasks||t.pixels.length>1?l:null;n?.matchAllNoData?t.mask=e&&e.length>1?function(t){if(t.length<2)return t[0];const e=t[0].length,n=new Uint8Array(e).fill(0);for(let r=0;r<t.length;r++){const o=t[r];for(let t=0;t<e;t++)o[t]&&(n[t]=255)}return n}(e):u:(t.bandMasks=e,t.mask=u)}f&&"updateStatistics"in t&&t.updateStatistics()}},44094(t,e,n){n.d(e,{Cr:()=>w,JM:()=>I,LZ:()=>d,RW:()=>E,XO:()=>A,_J:()=>x,ni:()=>v,r9:()=>S,uT:()=>P,uc:()=>k,wc:()=>h,zS:()=>T});var r=n(49186),o=n(9334),i=n(94213);const a=[0,1,1,2,4,8,1,1,2,4,8,4,8,-1,-1,-1,8,8,8],s=4294967296,l=new Map([[1,(t,e)=>t.getUint8(e)],[2,(t,e)=>t.getUint8(e)],[3,(t,e,n)=>t.getUint16(e,n)],[4,(t,e,n)=>t.getUint32(e,n)],[5,(t,e,n)=>t.getUint32(e,n)/t.getUint32(e+4,n)],[6,(t,e)=>t.getInt8(e)],[7,(t,e)=>t.getUint8(e)],[8,(t,e,n)=>t.getInt16(e,n)],[9,(t,e,n)=>t.getInt32(e,n)],[10,(t,e,n)=>t.getInt32(e,n)/t.getInt32(e+4,n)],[11,(t,e,n)=>t.getFloat32(e,n)],[12,(t,e,n)=>t.getFloat64(e,n)],[13,(t,e,n)=>t.getUint32(e,n)],[16,(t,e,n)=>u(t,e,n)],[17,(t,e,n)=>function(t,e,n){let r=n?t.getInt32(e,n):t.getUint32(e,n),o=n?t.getUint32(e+4,n):t.getInt32(e+4,n);const i=(n?r:o)>=0?1:-1;return n?r*=i:o*=i,i*(n?o*s+r:r*s+o)}(t,e,n)],[18,(t,e,n)=>u(t,e,n)]]);function u(t,e,n){const r=t.getUint32(e,n),o=t.getUint32(e+4,n);return n?o*s+r:r*s+o}function c(t,e){return{x:e[0]*t.x+e[1]*t.y+e[2],y:e[3]*t.x+e[4]*t.y+e[5]}}function h(t,e){return t.get(e)?.values}function f(t,e){return t.get(e)?.values?.[0]}function d(t,e){return t.get(e)?.values?.[0]}function p(t,e,n,r){return r?u(t,e,n):t.getUint32(e,n)}function m(t,e,n,r=0,o=i.NB,a=4){const s=8===a,l=s?u(new DataView(t,n,8),0,e):new DataView(t,n,2).getUint16(0,e),c=4+2*a,h=s?8:2,f=h+l*c;if(n+f>t.byteLength)return{success:!1,ifd:null,nextIFD:null,requiredBufferSize:f};const d=8===a?8:4,m=n+f+d<=t.byteLength?p(new DataView(t,n+f,d),0,e,8===a):null,g=n+h,y=new Map;for(let n=0;n<l;n++){const s=new DataView(t,g+c*n,c),l=s.getUint16(0,e),u=s.getUint16(2,e),h=(0,i.kq)(l,o),f=[];let d=0,m=0;2===a?(d=s.getUint16(4,e),m=s.getUint16(6,e)):4===a?(d=s.getUint32(4,e),m=s.getUint32(8,e)):8===a&&(d=p(s,4,e,!0),m=p(s,12,e,!0),f.push(s.getUint32(12,e)),f.push(s.getUint32(16,e)));const C={id:l,type:u,valueCount:d,valueOffset:m,valueOffsets:f,values:null};w(t,e,C,r,!1,a),y.set(h,C)}return{success:!0,ifd:y,nextIFD:m,requiredBufferSize:f}}function g(t,e,n,r){const{type:o,valueCount:i}=e,s=a[o];if(null==s||s<=0)return[];const u=i*s,c=u/s,h=new DataView(t,n,u),f=[],d=l.get(o);if(!d)return[];for(let t=0,e=0;t<c;t++,e+=s)f.push(d(h,e,r));return f}function y(t,e,n=4){const{type:r,valueCount:o,valueOffsets:i}=t,l=8*a[r],u=o*a[r]*8;let{valueOffset:c}=t;const h=8===n?64:32;if(!e)if(h<=32)c>>>=32-u;else{const t=i?.length?i[0]:c>>>0,e=i?.length?i[1]:Math.round((c-t)/s);u<=32?(c=t>>>32-u,i[0]=c):(c=t*2**(32-u)+(e>>>32-u),i[0]=t,i[1]=e>>>32-u)}if(1===o&&l===h)return[c];const f=[];if(64===h){const t=i?.length?i[0]:c>>>0,e=i?.length?i[1]:Math.round((c-t)/s);let n=t,r=32;for(let t=1;t<=o;t++){const o=32-l*t%32;if(r<l){const t=n<<o>>>32-r,i=e<<32-r>>>32-r;n=e,f.push(t+i*2**(l-r)),r-=32-(l-r)}else f.push(n<<o>>>32-l),r-=l;0===r&&(r=32,n=e)}return f}for(let t=1;t<=o;t++){const e=32-l*t;f.push(c<<e>>>32-l)}return f}function w(t,e,n,r=0,i=!1,s=4){if(n.values)return!0;const{type:l,valueCount:u}=n;let c=n.valueOffset;const h=u*a[l],f=u*a[l]*8,d=8===s?64:32;if(f>d&&h>(i?t.byteLength:t?t.byteLength-c+r:0))return n.offlineOffsetSize=[c,h],n.values=null,!1;let p=[];if(f<=d?p=y(n,e,s):(c-=r,i&&(c=0),p=g(t,n,c,e)),2===l){const t=p.length?(0,o.w)(p instanceof Uint8Array?p:new Uint8Array(p)):"";n.values=[t]}else n.values=p;return!0}function C(t){const e=d(t,"PHOTOMETRICINTERPRETATION"),n=h(t,"COLORMAP");if(null!=e&&e<=3&&n?.length&&n.length%3==0){const t=[],e=n.length/3;for(let r=0;r<e;r++)t.push([r,n[r]>>>8,n[r+e]>>>8,n[r+2*e]>>>8]);return t}}function b(t){const e=h(t,"GEOTIEPOINTS"),n=h(t,"GEOPIXELSCALE"),r=h(t,"GEOTRANSMATRIX"),o=t.get("GEOKEYDIRECTORY")?.data,i=!!o&&2===d(o,"GTRasterTypeGeoKey"),{spatialReference:a,isPseudoGeographic:s}=function(t){const e=f(t,"GEOASCIIPARAMS");let n=null;if(e){const t=e.split("|").find(t=>t.includes("ESRI PE String = ")),r=t?t.replace("ESRI PE String = ",""):"";n=r.startsWith("COMPD_CS")||r.startsWith("PROJCS")||r.startsWith("GEOGCS")?{wkid:null,wkt:r}:null}let r=!1;const o=t.get("GEOKEYDIRECTORY")?.data;if(o){const t=d(o,"GTModelTypeGeoKey");if(2===t){const t=d(o,"GeographicTypeGeoKey");t>=1024&&t<=32766&&(n={wkid:t}),n||32767!==t||(r=!0,n={wkid:4326})}else if(1===t){const t=d(o,"ProjectedCSTypeGeoKey");t>=1024&&t<=32766&&(n={wkid:t})}}return{spatialReference:n,isPseudoGeographic:r}}(t);let l,u;n&&e&&e.length>=6?(l=[n[0],0,e[3]-e[0]*n[0],0,-Math.abs(n[1]),e[4]-e[1]*n[1]],i&&(l[2]-=.5*l[0]+.5*l[1],l[5]-=.5*l[3]+.5*l[4])):16===r?.length&&(l=i?[r[0],r[1],r[3]-.5*r[0],r[4],r[5],r[7]-.5*r[5]]:[r[0],r[1],r[3],r[4],r[5],r[7]]);const p=d(t,"IMAGEWIDTH"),m=d(t,"IMAGELENGTH");if(l){const t=[{x:0,y:m},{x:0,y:0},{x:p,y:m},{x:p,y:0}];let e,n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,i=Number.NEGATIVE_INFINITY;for(let a=0;a<t.length;a++)e=c(t[a],l),n=e.x>n?n:e.x,o=e.x<o?o:e.x,r=e.y>r?r:e.y,i=e.y<i?i:e.y;u={xmin:n,xmax:o,ymin:r,ymax:i,spatialReference:a}}else u={xmin:-.5,ymin:.5-m,xmax:p-.5,ymax:.5,spatialReference:a};return s&&(u.xmax-u.xmin>400||Math.max(Math.abs(u.xmin),Math.abs(u.xmax))>361)&&(u.spatialReference=null),{extent:u,isPseudoGeographic:s,affine:n?void 0:l}}function x(t){const{width:e,height:n,tileHeight:r,tileWidth:o}=t,i=t.planes,a=o?o*r:e*n,s=d(t.ifds[0],"BITSPERSAMPLE");let l="";return a*i>2**30/(s>8?s/8:1)&&(l=o?"tiled tiff exceeding 1 gigabits per tile is not supported":"scanline tiff exceeding 1 gigabits is not supported"),l}function A(t,e){const n=d(t,"PLANARCONFIGURATION");return null!=n?2===n:!!e&&e.isBSQ}function v(t){return d(t,"COMPRESSION")??1}function M(t){const e=v(t);let n,r=!1;switch(e){case 1:n="NONE",r=!0;break;case 2:case 3:case 4:case 32771:n="CCITT";break;case 5:n="LZW",r=!0;break;case 6:case 7:n="JPEG",r=!0;break;case 32773:n="PACKBITS";break;case 8:case 32946:n="DEFLATE",r=!0;break;case 34712:n="JPEG2000";break;case 34887:n="LERC",r=!0;break;default:n=String(e)}return{compression:n,supported:r}}function k(t){const e=t[0],n=d(e,"TILEWIDTH"),r=d(e,"TILELENGTH"),o=d(e,"IMAGEWIDTH"),i=d(e,"IMAGELENGTH"),a=d(e,"BITSPERSAMPLE"),s=d(e,"SAMPLESPERPIXEL"),l=d(e,"SAMPLEFORMAT")??1,u=function(t,e){let n="unknown";return 3===t?n=64===e?"f64":"f32":1===t?1===e?n="u1":2===e?n="u2":4===e?n="u4":e<=8?n="u8":e<=16?n="u16":e<=32&&(n="u32"):2===t&&(e<=8?n="s8":e<=16?n="s16":e<=32&&(n="s32")),n}(l,a),c=A(e),h=function(t){return t.get("GDAL_NODATA")?.values}(e);let p=null;h?.length&&(p=h.map(t=>parseFloat(t)),p.some(t=>isNaN(t))&&(p=null));let m=!0,g="";const{compression:y,supported:w}=M(e);w||(m=!1,g+="unsupported tag compression "+y),l>3&&(m=!1,g+="unsupported tag sampleFormat "+l),a>32&&64!==a&&(m=!1,g+="unsupported tag bitsPerSample "+a);const{extent:v,isPseudoGeographic:k,affine:I}=b(e),P=T(t);let E,R,L,U,O;if(P.length>0){L=Math.round(Math.log(o/d(P[0],"IMAGEWIDTH"))/Math.LN2);const t=P[P.length-1];U=P.length,E=d(t,"TILEWIDTH"),R=d(t,"TILELENGTH")}E=null!=U&&U>0?E||n:null,R=null!=U&&U>0?R||r:null,n&&(O=[{maxCol:Math.ceil(o/n)-1,maxRow:Math.ceil(i/r)-1,minRow:0,minCol:0}],P.forEach(t=>{O.push({maxCol:Math.ceil(d(t,"IMAGEWIDTH")/d(t,"TILEWIDTH"))-1,maxRow:Math.ceil(d(t,"IMAGELENGTH")/d(t,"TILELENGTH"))-1,minRow:0,minCol:0})}));const N=function(t){if(!t)return null;const e=t.match(/<Item(.*?)Item>/gi);if(!e||0===e.length)return null;const n=new Map;for(let t=0;t<e.length;t++){const r=e[t];let o=r.indexOf("sample=");const i=o>-1?r.slice(o+8,r.indexOf('"',o+8)):null;o=r.indexOf("name=");const a=o>-1?r.slice(o+6,r.indexOf('"',o+6)):r.slice(6,r.indexOf(">"));if(a){const t=r.slice(r.indexOf(">")+1,r.indexOf("</Item>")).trim();null!=i?n.has(a)?n.get(a)[i]=t:n.set(a,[t]):n.set(a,t)}}const r=n.get("STATISTICS_MINIMUM"),o=n.get("STATISTICS_MAXIMUM"),i=n.get("STATISTICS_MEAN"),a=n.get("STATISTICS_STDDEV");let s=null;if(r&&o){s=[];for(let t=0;t<r.length;t++)s.push({min:parseFloat(r[t]),max:parseFloat(o[t]),avg:i&&parseFloat(i[t]),stddev:a&&parseFloat(a[t])})}const l=n.get("BandName"),u=n.get("WavelengthMin"),c=n.get("WavelengthMax");let h=null;if(l){h=[];for(let t=0;t<l.length;t++)h.push({BandName:l[t],WavelengthMin:u&&parseFloat(u[t]),WavelengthMax:c&&parseFloat(c[t])})}return{statistics:s,bandProperties:h,dataType:n.get("DataType"),rawMetadata:n}}(f(t[0],"GDAL_METADATA"));g+=" "+x({width:o,height:i,tileWidth:n,tileHeight:r,planes:s,ifds:t});const D=S(t).length===P.length+1,G=P?.length?P.map(t=>({x:o/d(t,"IMAGEWIDTH"),y:i/d(t,"IMAGELENGTH")})):void 0,B=C(e);return{width:o,height:i,tileWidth:n,tileHeight:r,planes:s,isBSQ:c,pixelType:u,compression:y,noData:p,hasMaskBand:D,isSupported:m,pyramidResolutions:G,message:g,extent:v,isPseudoGeographic:k,affine:I,firstPyramidLevel:L,maximumPyramidLevel:U,pyramidBlockWidth:E,pyramidBlockHeight:R,tileBoundary:O,metadata:N,colormap:B}}function T(t){return t.filter(t=>1===d(t,"NEWSUBFILETYPE"))}function S(t){return t.filter(t=>{const e=!(4&~(d(t,"NEWSUBFILETYPE")??0)),n=4===d(t,"PHOTOMETRICINTERPRETATION");return e&&n})}function I(t,e,n,r=0,a=i.NB,s=4){const l=m(t,e,n,r,a,s);let u;const c=l.ifd;if(c){if(i.RR.forEach((n,o)=>{c.has(o)&&(u=c.get(o),u.data=m(t,e,u.valueOffset-r,r,n).ifd)}),c.has("GEOKEYDIRECTORY")){u=c.get("GEOKEYDIRECTORY");const n=u.values;if(n&&n.length>4){const o=n[0]+"."+n[1]+"."+n[2];u.data=m(t,e,u.valueOffset+6-r,r,i.YC,2).ifd,u.data&&u.data.set("GEOTIFFVersion",{id:0,type:2,valueCount:1,valueOffset:null,values:[o]})}}if(c.has("XMP")){u=c.get("XMP");const t=u.values;"number"==typeof t[0]&&7===u.type&&(u.values=[(0,o.w)(new Uint8Array(t))])}}return l}function P(t){const e=new DataView(t,0,16),n=e.getUint16(0,!1);let o=null;if(18761===n)o=!0;else{if(19789!==n)throw new r.A("tiff-reader:parse-signature","unexpected endianness byte");o=!1}const i=e.getUint16(2,o);if(42!==i&&43!==i)throw new r.A("tiff-reader:parse-signature","unexpected tiff identifier");let a=4;const s=43===i;if(s){const t=e.getUint16(a,o);if(a+=2,8!==t||0!==e.getUint16(a,o))throw new r.A("tiff-reader:parse-signature","unsupported bigtiff version");a+=2}return{littleEndian:o,isBigTiff:s,firstIFDPos:p(e,a,o,s)}}function E(t){const{littleEndian:e,isBigTiff:n,firstIFDPos:r}=P(t);let o=r;const a=[];do{const r=I(t,e,o,0,i.NB,n?8:4);if(!r.success)break;a.push(r.ifd),o=r.nextIFD}while(o>0);return{...k(a),littleEndian:e,isBigTiff:n,ifds:a,pyramidIFDs:T(a),maskIFDs:S(a)}}},94213(t,e,n){const r=(()=>{const t=[];return t[254]="NEWSUBFILETYPE",t[255]="SUBFILETYPE",t[256]="IMAGEWIDTH",t[257]="IMAGELENGTH",t[258]="BITSPERSAMPLE",t[259]="COMPRESSION",t[262]="PHOTOMETRICINTERPRETATION",t[263]="THRESHHOLDING",t[264]="CELLWIDTH",t[265]="CELLLENGTH",t[266]="FILLORDER",t[269]="DOCUMENTNAME",t[270]="IMAGEDESCRIPTION",t[271]="MAKE",t[272]="MODEL",t[273]="STRIPOFFSETS",t[274]="ORIENTATION",t[277]="SAMPLESPERPIXEL",t[278]="ROWSPERSTRIP",t[279]="STRIPBYTECOUNTS",t[280]="MINSAMPLEVALUE",t[281]="MAXSAMPLEVALUE",t[282]="XRESOLUTION",t[283]="YRESOLUTION",t[284]="PLANARCONFIGURATION",t[285]="PAGENAME",t[286]="XPOSITION",t[287]="YPOSITION",t[288]="FREEOFFSETS",t[289]="FREEBYTECOUNTS",t[290]="GRAYRESPONSEUNIT",t[291]="GRAYRESPONSECURVE",t[292]="T4OPTIONS",t[293]="T6OPTIONS",t[296]="RESOLUTIONUNIT",t[297]="PAGENUMBER",t[300]="COLORRESPONSEUNIT",t[301]="TRANSFERFUNCTION",t[305]="SOFTWARE",t[306]="DATETIME",t[315]="ARTIST",t[316]="HOSTCOMPUTER",t[317]="PREDICTOR",t[318]="WHITEPOINT",t[319]="PRIMARYCHROMATICITIES",t[320]="COLORMAP",t[321]="HALFTONEHINTS",t[322]="TILEWIDTH",t[323]="TILELENGTH",t[324]="TILEOFFSETS",t[325]="TILEBYTECOUNTS",t[326]="BADFAXLINES",t[327]="CLEANFAXDATA",t[328]="CONSECUTIVEBADFAXLINES",t[330]="SUBIFD",t[332]="INKSET",t[333]="INKNAMES",t[334]="NUMBEROFINKS",t[336]="DOTRANGE",t[337]="TARGETPRINTER",t[338]="EXTRASAMPLES",t[339]="SAMPLEFORMAT",t[340]="SMINSAMPLEVALUE",t[341]="SMAXSAMPLEVALUE",t[342]="TRANSFERRANGE",t[347]="JPEGTABLES",t[512]="JPEGPROC",t[513]="JPEGIFOFFSET",t[514]="JPEGIFBYTECOUNT",t[515]="JPEGRESTARTINTERVAL",t[517]="JPEGLOSSLESSPREDICTORS",t[518]="JPEGPOINTTRANSFORM",t[519]="JPEGQTABLES",t[520]="JPEGDCTABLES",t[521]="JPEGACTABLES",t[529]="YCBCRCOEFFICIENTS",t[530]="YCBCRSUBSAMPLING",t[531]="YCBCRPOSITIONING",t[532]="REFERENCEBLACKWHITE",t[700]="XMP",t[33550]="GEOPIXELSCALE",t[33922]="GEOTIEPOINTS",t[33432]="COPYRIGHT",t[42112]="GDAL_METADATA",t[42113]="GDAL_NODATA",t[50844]="RPCCOEFFICIENT",t[34264]="GEOTRANSMATRIX",t[34735]="GEOKEYDIRECTORY",t[34736]="GEODOUBLEPARAMS",t[34737]="GEOASCIIPARAMS",t[34665]="EXIFIFD",t[34853]="GPSIFD",t[40965]="INTEROPERABILITYIFD",t})(),o=(()=>{const t=r.slice();return t[36864]="ExifVersion",t[40960]="FlashpixVersion",t[40961]="ColorSpace",t[42240]="Gamma",t[37121]="ComponentsConfiguration",t[37122]="CompressedBitsPerPixel",t[40962]="PixelXDimension",t[40963]="PixelYDimension",t[37500]="MakerNote",t[37510]="UserComment",t[40964]="RelatedSoundFile",t[36867]="DateTimeOriginal",t[36868]="DateTimeDigitized",t[36880]="OffsetTime",t[36881]="OffsetTimeOriginal",t[36882]="OffsetTimeDigitized",t[37520]="SubSecTime",t[37521]="SubSecTimeOriginal",t[37522]="SubSecTimeDigitized",t[37888]="Temperature",t[37889]="Humidity",t[37890]="Pressure",t[37891]="WaterDepth",t[37892]="Acceleration",t[37893]="CameraElevationAngle",t[42016]="ImageUniqueID",t[42032]="CameraOwnerName",t[42033]="BodySerialNumber",t[42034]="LensSpecification",t[42035]="LensMake",t[42036]="LensModel",t[42037]="LensSerialNumber",t[33434]="ExposureTime",t[33437]="FNumber",t[34850]="ExposureProgram",t[34852]="SpectralSensitivity",t[34855]="PhotographicSensitivity",t[34856]="OECF",t[34864]="SensitivityType",t[34865]="StandardOutputSensitivity",t[34866]="RecommendedExposureIndex",t[34867]="ISOSpeed",t[34868]="ISOSpeedLatitudeyyy",t[34869]="ISOSpeedLatitudezzz",t[37377]="ShutterSpeedValue",t[37378]="ApertureValue",t[37379]="BrightnessValue",t[37380]="ExposureBiasValue",t[37381]="MaxApertureValue",t[37382]="SubjectDistance",t[37383]="MeteringMode",t[37384]="LightSource",t[37385]="Flash",t[37386]="FocalLength",t[37396]="SubjectArea",t[41483]="FlashEnergy",t[41484]="SpatialFrequencyResponse",t[41486]="FocalPlaneXResolution",t[41487]="FocalPlaneYResolution",t[41488]="FocalPlaneResolutionUnit",t[41492]="SubjectLocation",t[41493]="ExposureIndex",t[41495]="SensingMethod",t[41728]="FileSource",t[41729]="SceneType",t[41730]="CFAPattern",t[41985]="CustomRendered",t[41986]="ExposureMode",t[41987]="WhiteBalance",t[41988]="DigitalZoomRatio",t[41989]="FocalLengthIn35mmFilm",t[41990]="SceneCaptureType",t[41991]="GainControl",t[41992]="Contrast",t[41993]="Saturation",t[41994]="Sharpness",t[41995]="DeviceSettingDescription",t[41996]="SubjectDistanceRange",t})(),i=(()=>{const t=[];return t[1024]="GTModelTypeGeoKey",t[1025]="GTRasterTypeGeoKey",t[1026]="GTCitationGeoKey",t[2048]="GeographicTypeGeoKey",t[2049]="GeogCitationGeoKey",t[2050]="GeogGeodeticDatumGeoKey",t[2051]="GeogPrimeMeridianGeoKey",t[2052]="GeogLinearUnitsGeoKey",t[2053]="GeogLinearUnitSizeGeoKey",t[2054]="GeogAngularUnitsGeoKey",t[2055]="GeogAngularUnitSizeGeoKey",t[2056]="GeogEllipsoidGeoKey",t[2057]="GeogSemiMajorAxisGeoKey",t[2058]="GeogSemiMinorAxisGeoKey",t[2059]="GeogInvFlatteningGeoKey",t[2061]="GeogPrimeMeridianLongGeoKey",t[2060]="GeogAzimuthUnitsGeoKey",t[3072]="ProjectedCSTypeGeoKey",t[3073]="PCSCitationGeoKey",t[3074]="ProjectionGeoKey",t[3075]="ProjCoordTransGeoKey",t[3076]="ProjLinearUnitsGeoKey",t[3077]="ProjLinearUnitSizeGeoKey",t[3078]="ProjStdParallel1GeoKey",t[3079]="ProjStdParallel2GeoKey",t[3080]="ProjNatOriginLongGeoKey",t[3081]="ProjNatOriginLatGeoKey",t[3082]="ProjFalseEastingGeoKey",t[3083]="ProjFalseNorthingGeoKey",t[3084]="ProjFalseOriginLongGeoKey",t[3085]="ProjFalseOriginLatGeoKey",t[3086]="ProjFalseOriginEastingGeoKey",t[3087]="ProjFalseOriginNorthingGeoKey",t[3088]="ProjCenterLongGeoKey",t[3090]="ProjCenterEastingGeoKey",t[3091]="ProjCenterNorthingGeoKey",t[3092]="ProjScaleAtNatOriginGeoKey",t[3093]="ProjScaleAtCenterGeoKey",t[3094]="ProjAzimuthAngleGeoKey",t[3095]="ProjStraightVertPoleLongGeoKey",t[4096]="VerticalCSTypeGeoKey",t[4097]="VerticalCitationGeoKey",t[4098]="VerticalDatumGeoKey",t[4099]="VerticalUnitsGeoKey",t})(),a=new Map([["EXIFIFD",o],["GPSIFD",["GPSVersionID","GPSLatitudeRef","GPSLatitude","GPSLongitudeRef","GPSLongitude","GPSAltitudeRef","GPSAltitude","GPSTimeStamp","GPSSatellites","GPSStatus","GPSMeasureMode","GPSDOP","GPSSpeedRef","GPSSpeed","GPSTrackRef","GPSTrack","GPSImgDirectionRef","GPSImgDirection","GPSMapDatum","GPSDestLatitudeRef","GPSDestLatitude","GPSDestLongitudeRef","GPSDestLongitude","GPSDestBearingRef","GPSDestBearing","GPSDestDistanceRef","GPSDestDistance","GPSProcessingMethod","GPSAreaInformation","GPSDateStamp","GPSDifferential","GPSHPositioningError"]]]);n.d(e,["NB",0,r,"RR",0,a,"YC",0,i,"kq",0,(t,e)=>{let n=(e||r)[t];return void 0===n&&(n="unknown"+String(t)),n}])},10713(t,e,n){const r=(()=>{const t=new ArrayBuffer(4),e=new Uint8Array(t);return new Uint32Array(t)[0]=1,1===e[0]})();n.d(e,["Z",0,r])},47520(t,e,n){n.d(e,{$Q:()=>U,$i:()=>F,AB:()=>s,Ew:()=>w,Hx:()=>g,J$:()=>D,L:()=>V,LY:()=>k,QF:()=>B,UK:()=>f,Wt:()=>M,Wy:()=>l,XU:()=>v,YD:()=>x,_F:()=>m,bL:()=>y,dK:()=>A,eH:()=>h,lD:()=>N,qL:()=>c,z$:()=>I,z7:()=>S,zg:()=>u});var r=n(34727),o=n(94778),i=n(14140);const a="PixelID";function s(t){return null!=t&&t.pixels?.length>0}function l(t){if(!t?.length||t.some(t=>!s(t)))return null;if(1===t.length)return t[0]?.clone()??null;const e=t,{width:n,height:r,pixelType:o}=e[0];if(e.some(t=>t.width!==n||t.height!==r))return null;const a=e.map(({mask:t})=>t).filter(t=>null!=t);let l=null;a.length&&(l=new Uint8Array(n*r),l.set(a[0]),a.length>1&&x(a.slice(1),l));const u=[];e.forEach(({pixels:t})=>u.push(...t));const c=null!=l&&u.length===e.length?e.map(({width:t,height:e,mask:n})=>n??new Uint8Array(t*e).fill(255)):null,h=e.map(({statistics:t})=>t).filter(t=>t?.length),f=[];return h.forEach(t=>f.push(...t)),new i.A({pixelType:o,width:n,height:r,mask:l,bandMasks:c,pixels:u,statistics:f.length?f:null})}function u(t){if(!t)return;const e=t.colormap;if(!e||0===e.length)return;const n=e.sort((t,e)=>t[0]-e[0]),r=n[0][0]<0?n[0][0]:0,o=Math.max(256,n[n.length-1][0]-r+1),i=new Uint8Array(4*o),a=[],s=5===n[0].length;if(o>65536)return n.forEach(t=>{a[t[0]-r]=s?t.slice(1):t.slice(1).concat([255])}),{indexed2DColormap:a,offset:r,alphaSpecified:s};if(t.fillUnspecified){let t=n[0];for(let e=t[0]-r,a=0;e<o;e++)i[4*e]=t[1],i[4*e+1]=t[2],i[4*e+2]=t[3],i[4*e+3]=s?t[4]:255,e===t[0]-r&&(t=a===n.length-1?t:n[++a])}else for(let t=0;t<n.length;t++){const e=n[t],o=4*(e[0]-r);i[o]=e[1],i[o+1]=e[2],i[o+2]=e[3],i[o+3]=s?e[4]:255}return{indexedColormap:i,offset:r,alphaSpecified:s}}function c(t,e){if(!s(t))return t;if(!e||!e.indexedColormap&&!e.indexed2DColormap)return t;const n=t.clone(),r=n.pixels;let o=n.mask;const i=n.width*n.height;if(1!==r.length)return t;const{indexedColormap:a,indexed2DColormap:l,offset:u,alphaSpecified:c}=e,h=r[0],f=new Uint8Array(h.length),d=new Uint8Array(h.length),p=new Uint8Array(h.length);let m,g=0;if(a){const t=a.length-1;if(null!=o)for(let e=0;e<i;e++)o[e]&&(g=4*(h[e]-u),g<u||g>t?o[e]=0:(f[e]=a[g],d[e]=a[g+1],p[e]=a[g+2],o[e]=a[g+3]));else{o=new Uint8Array(i);for(let e=0;e<i;e++)g=4*(h[e]-u),g<u||g>t?o[e]=0:(f[e]=a[g],d[e]=a[g+1],p[e]=a[g+2],o[e]=a[g+3]);n.mask=o}}else if(l)if(null!=o)for(let t=0;t<i;t++)o[t]&&(m=l[h[t]],f[t]=m[0],d[t]=m[1],p[t]=m[2],o[t]=m[3]);else{o=new Uint8Array(i);for(let t=0;t<i;t++)m=l[h[t]],f[t]=m[0],d[t]=m[1],p[t]=m[2],o[t]=m[3];n.mask=o}return n.pixels=[f,d,p],n.statistics=null,n.pixelType="u8",n.maskIsAlpha=c,n}function h(t,e){if(!s(t))return null;const{pixels:n,mask:r}=t,o=n.length;let a=e.lut;const{offset:l}=e;a&&1===a[0].length&&(a=n.map(()=>a));const u=[],c=e.outputPixelType||"u8";for(let t=0;t<o;t++){const e=f(n[t],r,a[t],l||0,c);u.push(e)}const h=new i.A({width:t.width,height:t.height,pixels:u,mask:r,pixelType:c});return h.updateStatistics(),h}function f(t,e,n,r,o){const a=t.length,s=i.A.createEmptyBand(o,a);if(e)for(let o=0;o<a;o++)e[o]&&(s[o]=n[t[o]-r]);else for(let e=0;e<a;e++)s[e]=n[t[e]-r];return s}function d(t,e,n,r){const{width:o,height:i,pixels:a,mask:s}=t,l=o*i,{bandId:u,ranges:c}=n,h=a[u];if(!h)return;const f=1===c.length,[d,p]=c[0];for(let t=0;t<l;t++)if(!s||s[t]){const n=h[t];if(f)n>=d&&n<=p&&(e[t]=r);else for(let o=0;o<c.length;o++){const[i,a]=c[o];if(n>=i&&n<=a){e[t]=r;break}}}}function p(t,e,n,r){const{width:o,height:i,xyMask:a,xBandId:s,yBandId:l,xBandRange:u,yBandRange:c}=n,{pixels:h,mask:f}=t,d=h[s],p=h[l],[m,g]=u,[y,w]=c,C=(g-m)/o,b=(w-y)/i;for(let t=0;t<d.length;t++)if(!f||f[t]){let n=d[t],s=p[t];if(n<m||n>g||s<y||s>w)continue;a?(n=(n-m)*C,n=n>o-1?o-1:n<0?0:255&n,s=(w-s)*b,s=s>i-1?i-1:s<0?0:255&s,a[s*o+n]&&(e[t]=r)):e[t]=r}}function m(t){const{pixelBlock:e,renderedPixelBlock:n,highlightOptions:r}=t;if(!s(e))return;const{width:o,height:i}=e,a=o*i,l=new Uint8Array(a);for(let t=1;t<=r.length;t++){const n=r[t-1];"bandId"in n?d(e,l,n,t):p(e,l,n,t)}const{pixels:u}=n;1===u.length&&(u[1]=u[0].slice(),u[2]=u[0].slice());const c=r.map(t=>t.color),[h,f,m]=u;if(n.mask){const t=n.mask;for(let e=0;e<a;e++)if(t[e]){t[e]=255;const n=l[e];if(n){const r=c[n-1];h[e]=r[0],f[e]=r[1],m[e]=r[2],t[e]=r[3]}}}else{const t=new Uint8Array(a).fill(255);for(let e=0;e<a;e++){const n=l[e];if(n){const r=c[n-1];h[e]=r[0],f[e]=r[1],m[e]=r[2],t[e]=r[3]}}n.mask=t}n.maskIsAlpha=!0}function g(t,e){if(!s(t))return null;const n=t.clone(),{pixels:r}=n,o=n.width*n.height,i=e.length,a=Math.floor(i/2),l=e[Math.floor(a)],u=r[0],c=new Uint8Array(o),h=new Uint8Array(o),f=new Uint8Array(o);let d=n.mask;const p=4===e[0].mappedColor.length;d||(d=new Uint8Array(o),d.fill(p?255:1),n.mask=d);for(let t=0;t<o;t++)if(d[t]){const n=u[t];let r=!1,o=a,s=l,p=0,m=i-1;for(;m-p>1;){if(n===s.value){r=!0;break}n>s.value?p=o:m=o,o=Math.floor((p+m)/2),s=e[Math.floor(o)]}r||(n===e[p].value?(s=e[p],r=!0):n===e[m].value?(s=e[m],r=!0):n<e[p].value?r=!1:n>e[p].value&&(n<e[m].value?(s=e[p],r=!0):m===i-1?r=!1:(s=e[m],r=!0))),r?(c[t]=s.mappedColor[0],h[t]=s.mappedColor[1],f[t]=s.mappedColor[2],d[t]=s.mappedColor[3]):c[t]=h[t]=f[t]=d[t]=0}return n.pixels=[c,h,f],n.mask=d,n.pixelType="u8",n.maskIsAlpha=p,n}function y(t,e,n=!1){const o=1e-5,i=new Float32Array(27),a=e.length;for(let s=0;s<9;s++)i[3*s]=t[2*s]??r.pq-1,i[3*s+1]=t[2*s+1]??r.pq,i[3*s+2]=e[s]??0,s<a&&(s>0&&(i[3*s]-=o),t[2*s+1]!==t[2*s]&&(s<a-1||!n)&&(i[3*s+1]-=o));return i}function w(t,e){if(!s(t))return null;const{width:n,height:r}=t,{inputRanges:a,outputValues:l,outputPixelType:u,noDataRanges:c,allowUnmatched:h,replacementValue:f,isLastInputRangeInclusive:d}=e,p=t.pixels[0],m=i.A.createEmptyBand(u,p.length),g=t.mask,y=new Uint8Array(n*r);g?y.set(g):y.fill(255);const w=t.pixelType.startsWith("f")?1e-6:0,C=a.map(t=>t-w);C[0]=a[0],C[C.length-1]=a[a.length-1]+(d?1e-6:0);const b=a.length/2,[x,A]=(0,o.hP)(u);for(let t=0;t<r;t++)for(let e=0;e<n;e++){const r=t*n+e;if(y[r]){const t=p[r];let e=!1;for(let n=b-1;n>=0;n--)if(t===a[2*n]||t>C[2*n]&&t<C[2*n+1]){m[r]=l[n],e=!0;break}e||(h?m[r]=t>A?A:t<x?x:f??t:y[r]=0)}}const v=c?.length;if(v)for(let t=0;t<r;t++)for(let e=0;e<n;e++){const r=t*n+e;if(!g||g[r]){const t=p[r];for(let e=0;e<v;e+=2)if(t>=c[e]&&t<=c[e+1]){m[r]=0,y[r]=0;break}}}return new i.A({width:n,height:r,pixelType:u,pixels:[m],mask:y})}function C(t,e,n,r){const o=null!=n&&n.length>=2?new Set(n):null,i=1===n?.length?n[0]:null,a=!!e?.length;for(let n=0;n<t.length;n++)if(r[n]){const s=t[n];if(a){let t=!1;for(let n=0;n<e.length;n+=2)if(s>=e[n]&&s<=e[n+1]){t=!0;break}t||(r[n]=0)}r[n]&&(s===i||o?.has(s))&&(r[n]=0)}}function b(t,e){const n=t[0].length;e??=new Uint8Array(n).fill(255);for(let r=0;r<n;r++)if(e[r]){let n=!1;for(let e=0;e<t.length;e++)if(t[e][r]){n=!0;break}n||(e[r]=0)}return e}function x(t,e){const n=t[0].length;e??=new Uint8Array(n).fill(255);for(let r=0;r<n;r++)if(e[r]){let n=!1;for(let e=0;e<t.length;e++)if(0===t[e][r]){n=!0;break}n&&(e[r]=0)}return e}function A(t,e){if(!s(t))return null;const{width:n,height:r,pixels:o}=t,a=n*r,l=new Uint8Array(a);t.mask?l.set(t.mask):l.fill(255);const u=o.length,{includedRanges:c,noDataValues:h,outputPixelType:d,matchAll:p,lookups:m}=e;if(m){const t=[];for(let e=0;e<u;e++){const n=m[e],r=f(o[e],l,n.lut,n.offset||0,"u8");t.push(r)}1===t.length?l.set(t[0]):p?b(t,l):x(t,l)}else if(p){const t=[];for(let e=0;e<u;e++){const n=new Uint8Array(a);n.set(l),C(o[e],c?.slice(2*e,2*e+2),h?.[e],n),t.push(n)}1===t.length?l.set(t[0]):b(t,l)}else for(let t=0;t<u;t++)C(o[t],c?.slice(2*t,2*t+2),h?.[t],l);return new i.A({width:n,height:r,pixelType:d,pixels:o,mask:l})}function v(t){const{srcPixelType:e,inputRanges:n,outputValues:r,allowUnmatched:a,noDataRanges:s,isLastInputRangeInclusive:l,outputPixelType:u}=t;if("u8"!==e&&"s8"!==e&&"u16"!==e&&"s16"!==e)return null;const c=e.includes("16")?65536:256,h=e.includes("s")?-c/2:0,f=i.A.createEmptyBand(u,c),d=new Uint8Array(c);a&&d.fill(255);const[p,m]=(0,o.hP)(u);if(n?.length&&r?.length){const t=1e-6,e=n.map(e=>e-t);e[0]=n[0],l&&(e[e.length-1]=n[n.length-1]);for(let t=0;t<e.length;t++){const o=r[t]>m?m:r[t]<p?p:r[t],i=Math.ceil(e[2*t]-h),a=n[2*t+1]===n[2*t]?i:Math.floor(e[2*t+1]-h);for(let t=i;t<=a;t++)f[t]=o,d[t]=255}}if(s?.length)for(let t=0;t<s.length;t++){const e=Math.ceil(s[2*t]-h),n=Math.floor(s[2*t+1]-h);for(let t=e;t<=n;t++)d[t]=0}return{lut:f,offset:h,mask:d}}function M(t,e,n){if("u8"!==t&&"s8"!==t&&"u16"!==t&&"s16"!==t)return null;const r=t.includes("16")?65536:256,o=t.includes("s")?-r/2:0,i=new Uint8Array(r);if(e)for(let t=0;t<e.length;t++){const n=Math.ceil(e[2*t]-o),r=Math.floor(e[2*t+1]-o);for(let t=n;t<=r;t++)i[t]=255}else i.fill(255);if(n)for(let t=0;t<n.length;t++)i[n[t]-o]=0;return{lut:i,offset:o}}function k(t,e){if(!t||0===t.length)return null;const n=t.find(t=>t.pixelBlock);if(null==n?.pixelBlock)return null;const r=(n.extent.xmax-n.extent.xmin)/n.pixelBlock.width,o=(n.extent.ymax-n.extent.ymin)/n.pixelBlock.height,i=.01*Math.min(r,o),a=t.sort((t,e)=>Math.abs(t.extent.ymax-e.extent.ymax)>i?e.extent.ymax-t.extent.ymax:Math.abs(t.extent.xmin-e.extent.xmin)>i?t.extent.xmin-e.extent.xmin:0),s=Math.min.apply(null,a.map(t=>t.extent.xmin)),l=Math.min.apply(null,a.map(t=>t.extent.ymin)),u=Math.max.apply(null,a.map(t=>t.extent.xmax)),c=Math.max.apply(null,a.map(t=>t.extent.ymax)),h={x:Math.round((e.xmin-s)/r),y:Math.round((c-e.ymax)/o)},f={width:Math.round((u-s)/r),height:Math.round((c-l)/o)},d={width:Math.round((e.xmax-e.xmin)/r),height:Math.round((e.ymax-e.ymin)/o)};return Math.round(f.width/n.pixelBlock.width)*Math.round(f.height/n.pixelBlock.height)!==a.length||h.x<0||h.y<0||f.width<d.width||f.height<d.height?null:{extent:e,pixelBlock:S(a.map(t=>t.pixelBlock),f,{clipOffset:h,clipSize:d})}}function T(t,e,n,r,o,i){const{width:a,height:s}=n.block,{x:l,y:u}=n.offset,{width:c,height:h}=n.mosaic,f=function(t,e,n,r,o,i,a,s){return{xmin:o<=n*t?0:o<n*t+t?o-n*t:t,ymin:i<=r*e?0:i<r*e+e?i-r*e:e,xmax:o+a<=n*t?0:o+a<n*t+t?o+a-n*t:t,ymax:i+s<=r*e?0:i+s<r*e+e?i+s-r*e:e}}(a,s,r,o,l,u,c,h);let d=0,p=0;if(i){const t=i.hasGCSSShiftTransform?360:i.halfWorldWidth??0,e=a*i.resolutionX,n=i.startX+r*e;n<t&&n+e>t?p=i.rightPadding:n>=t&&(d=i.leftMargin-i.rightPadding,p=0)}if(f.xmax-=p,"number"!=typeof e)for(let n=f.ymin;n<f.ymax;n++){const i=(o*s+n-u)*c+(r*a-l)+d,h=n*a;for(let n=f.xmin;n<f.xmax;n++)t[i+n]=e[h+n]}else for(let n=f.ymin;n<f.ymax;n++){const i=(o*s+n-u)*c+(r*a-l)+d;for(let n=f.xmin;n<f.xmax;n++)t[i+n]=e}}function S(t,e,n={}){const{clipOffset:r,clipSize:o,alignmentInfo:a,blockWidths:l}=n;if(l)return function(t,e,n){const r=t.find(t=>null!=t);if(null==r)return null;const o=t.some(t=>null==t||!!t.mask),{width:a,height:l}=e,u=o?new Uint8Array(a*l):null,{blockWidths:c}=n,h=[],f=r.getPlaneCount(),d=i.A.getPixelArrayConstructor(r.pixelType);if(o)for(let e=0,n=0;e<t.length;n+=c[e],e++){const r=t[e];if(!s(r))continue;const o=r.mask;for(let t=0;t<l;t++)for(let i=0;i<c[e];i++)u[t*a+i+n]=null==o?255:o[t*r.width+i]}const p=t.some(t=>t?.bandMasks&&t.bandMasks.length>1),m=p?[]:void 0,g=a*l;for(let e=0;e<f;e++){const n=new d(g),r=p?new Uint8Array(g):void 0;for(let o=0,i=0;o<t.length;i+=c[o],o++){const u=t[o];if(!s(u))continue;const h=u.pixels[e];if(null!=h){for(let t=0;t<l;t++)for(let e=0;e<c[o];e++)n[t*a+e+i]=h[t*u.width+e];if(r){const t=u.bandMasks?.[e]??u.mask;for(let e=0;e<l;e++)for(let n=0;n<c[o];n++)r[e*a+n+i]=t?t[e*u.width+n]:255}}}h.push(n),m&&r&&m.push(r)}const y=new i.A({width:a,height:l,mask:u,bandMasks:m,pixels:h,pixelType:r.pixelType});return y.updateStatistics(),y}(t,e,{blockWidths:l});const u=t.find(t=>s(t));if(null==u)return null;const c=o?o.width:e.width,h=o?o.height:e.height,f=u.width,d=u.height,p=e.width/f,m=e.height/d,g={offset:r||{x:0,y:0},mosaic:o||e,block:{width:f,height:d}},y=u.pixelType,w=i.A.getPixelArrayConstructor(y),C=u.pixels.length,b=[];let x,A;for(let e=0;e<C;e++){A=new w(c*h);for(let n=0;n<m;n++)for(let r=0;r<p;r++){const o=t[n*p+r];s(o)&&(x=o.pixels[e],T(A,x,g,r,n,a))}b.push(A)}const v=t.some(t=>null==t||null!=t.mask&&t.mask.length>0),M=t.some(t=>t?.bandMasks&&t.bandMasks.length>1),k=v?new Uint8Array(c*h):void 0,S=M?[]:void 0;if(k){for(let e=0;e<m;e++)for(let n=0;n<p;n++){const r=t[e*p+n],o=null!=r?r.mask:null;T(k,null!=o?o:r?255:0,g,n,e,a)}if(S)for(let e=0;e<C;e++){const n=new Uint8Array(c*h);for(let r=0;r<m;r++)for(let o=0;o<p;o++){const i=t[r*p+o],s=i?.bandMasks?.[e]??i?.mask;T(n,null!=s?s:i?255:0,g,o,r,a)}S.push(n)}}const I=new i.A({width:c,height:h,pixels:b,pixelType:y,bandMasks:S,mask:k});return I.updateStatistics(),I}function I(t,e,n){if(!s(t))return null;const{width:r,height:o}=t,i=e.x,a=e.y,l=n.width+i,u=n.height+a;if(i<0||a<0||l>r||u>o)return t;if(0===i&&0===a&&l===r&&u===o)return t;t.mask||(t.mask=new Uint8Array(r*o));const c=t.mask;for(let t=0;t<o;t++){const e=t*r;for(let n=0;n<r;n++)c[e+n]=t<a||t>=u||n<i||n>=l?0:1}return t.updateStatistics(),t}function P(t){if(!s(t))return null;const e=t.clone(),{width:n,height:r,pixels:o}=t,i=o[0],a=e.pixels[0],l=t.mask;for(let t=2;t<r-1;t++){const e=new Map;for(let r=t-2;r<t+2;r++)for(let t=0;t<4;t++){const o=r*n+t;L(e,i[o],l?l[o]:1)}a[t*n]=E(e),a[t*n+1]=a[t*n+2]=a[t*n];let r=3;for(;r<n-1;r++){let o=(t-2)*n+r+1;L(e,i[o],l?l[o]:1),o=(t-1)*n+r+1,L(e,i[o],l?l[o]:1),o=t*n+r+1,L(e,i[o],l?l[o]:1),o=(t+1)*n+r+1,L(e,i[o],l?l[o]:1),o=(t-2)*n+r-3,R(e,i[o],l?l[o]:1),o=(t-1)*n+r-3,R(e,i[o],l?l[o]:1),o=t*n+r-3,R(e,i[o],l?l[o]:1),o=(t+1)*n+r-3,R(e,i[o],l?l[o]:1),a[t*n+r]=E(e)}a[t*n+r+1]=a[t*n+r]}for(let t=0;t<n;t++)a[t]=a[n+t]=a[2*n+t],a[(r-1)*n+t]=a[(r-2)*n+t];return e.updateStatistics(),e}function E(t){if(0===t.size)return 0;let e=0,n=-1,r=0;const o=t.keys();let i=o.next();for(;!i.done;)r=t.get(i.value),r>e&&(n=i.value,e=r),i=o.next();return n}function R(t,e,n){if(0===n)return;const r=t.get(e);1===r?t.delete(e):t.set(e,r-1)}function L(t,e,n){0!==n&&t.set(e,t.has(e)?t.get(e)+1:1)}function U(t,e,n){let{x:r,y:o}=e;const{width:a,height:l}=n;if(0===r&&0===o&&l===t.height&&a===t.width)return t;const{width:u,height:c}=t,h=Math.max(0,o),f=Math.max(0,r),d=Math.min(r+a,u),p=Math.min(o+l,c);if(d<0||p<0||!s(t))return null;r=Math.max(0,-r),o=Math.max(0,-o);const{pixels:m}=t,g=a*l,y=m.length,w=[];for(let e=0;e<y;e++){const n=m[e],s=i.A.createEmptyBand(t.pixelType,g);for(let t=h;t<p;t++){const e=t*u;let i=(t+o-h)*a+r;for(let t=f;t<d;t++)s[i++]=n[e+t]}w.push(s)}const C=new Uint8Array(g),b=t.mask;for(let t=h;t<p;t++){const e=t*u;let n=(t+o-h)*a+r;for(let t=f;t<d;t++)C[n++]=b?b[e+t]:1}const x=new i.A({width:n.width,height:n.height,pixelType:t.pixelType,pixels:w,mask:C});return x.updateStatistics(),x}function O(t,e=!0){if(!s(t))return null;const{pixels:n,width:r,height:o,mask:a,pixelType:l}=t,u=[],c=Math.round(r/2),h=Math.round(o/2),f=o-1,d=r-1;for(let t=0;t<n.length;t++){const a=n[t],s=i.A.createEmptyBand(l,c*h);let p=0;for(let t=0;t<o;t+=2)for(let n=0;n<r;n+=2){const o=a[t*r+n];if(e){const e=n===d?o:a[t*r+n+1],i=t===f?o:a[t*r+n+r],l=n===d?i:t===f?e:a[t*r+n+r+1];s[p++]=(o+e+i+l)/4}else s[p++]=o}u.push(s)}let p=null;if(null!=a){p=new Uint8Array(c*h);let t=0;for(let n=0;n<o;n+=2)for(let o=0;o<r;o+=2){const i=a[n*r+o];if(e){const e=o===d?i:a[n*r+o+1],s=n===f?i:a[n*r+o+r],l=o===d?s:n===f?e:a[n*r+o+r+1];p[t++]=i*e*s*l?1:0}else p[t++]=i}}return new i.A({width:c,height:h,pixelType:l,pixels:u,mask:p})}function N(t,e,n=0,r=!0){if(!s(t))return null;const{width:o,height:i}=e;let{width:a,height:l}=t;const u=new Map,c={x:0,y:0},h=1+n;let f=t;for(let t=0;t<h;t++){const n=Math.ceil(a/o),s=Math.ceil(l/i);for(let r=0;r<s;r++){c.y=r*i;for(let i=0;i<n;i++){c.x=i*o;const n=U(f,c,e);u.set(`${t}/${r}/${i}`,n)}}t<h-1&&(f=O(f,r)),a=Math.round(a/2),l=Math.round(l/2)}return u}function D(t){const{pixelBlock:e,tileSize:n,level:r,row:o,col:i,useBilinear:a}=t;if(!s(e))return null;const{width:l,height:u}=n,c=2**r,h=c*l,f=c*u;let d=U(e,{y:o*f,x:i*h},{width:h,height:f});if(!d)return null;for(let t=r;t>0;t--)d=O(d,a);return d}function G(t,e,n,r,o=0){const{width:i,height:a}=t,{width:s,height:l}=e,u=r.cols,c=r.rows,h=Math.ceil(s/u-.1/u),f=Math.ceil(l/c-.1/c);let d,p,m,g,y,w,C;const b=h*u,x=b*f*c,A=new Float32Array(x),v=new Float32Array(x),M=new Uint32Array(x),k=new Uint32Array(x);let T,S,I=0;for(let t=0;t<f;t++)for(let e=0;e<h;e++){d=12*(t*h+e),p=n[d],m=n[d+1],g=n[d+2],y=n[d+3],w=n[d+4],C=n[d+5];for(let n=0;n<c;n++){I=(t*c+n)*b+e*u,S=(n+.5)/c;for(let t=0;t<n;t++)T=(t+.5)/u,A[I+t]=(p*T+m*S+g)*i+o,v[I+t]=(y*T+w*S+C)*a+o,M[I+t]=Math.floor(A[I+t]),k[I+t]=Math.floor(v[I+t])}d+=6,p=n[d],m=n[d+1],g=n[d+2],y=n[d+3],w=n[d+4],C=n[d+5];for(let n=0;n<c;n++){I=(t*c+n)*b+e*u,S=(n+.5)/c;for(let t=n;t<u;t++)T=(t+.5)/u,A[I+t]=(p*T+m*S+g)*i+o,v[I+t]=(y*T+w*S+C)*a+o,M[I+t]=Math.floor(A[I+t]),k[I+t]=Math.floor(v[I+t])}}return{offsets_x:A,offsets_y:v,offsets_xi:M,offsets_yi:k,gridWidth:b}}function B(t,e){const{coefficients:n,spacing:r}=e,{offsets_x:o,offsets_y:i,gridWidth:a}=G(t,t,n,{rows:r[0],cols:r[1]}),{width:s,height:l}=t,u=new Float32Array(s*l),c=180/Math.PI;for(let t=0;t<l;t++)for(let e=0;e<s;e++){const n=t*a+e,r=0===t?n:n-a,h=t===l-1?n:n+a,f=o[r]-o[h],d=i[h]-i[r];if(isNaN(f)||isNaN(d))u[t*s+e]=90;else{let n=Math.atan2(d,f)*c;n=(360+n)%360,u[t*s+e]=n}}return u}function F(t,e,n,r,o="nearest"){if(!s(t))return null;"majority"===o&&(t=P(t));const{pixels:a,mask:l,bandMasks:u,pixelType:c}=t,h=t.width,f=t.height,d=i.A.getPixelArrayConstructor(c),p=a.length,{width:m,height:g}=e;let y=!1;for(let t=0;t<n.length;t+=3)-1===n[t]&&-1===n[t+1]&&-1===n[t+2]&&(y=!0);const{offsets_x:w,offsets_y:C,offsets_xi:b,offsets_yi:x,gridWidth:A}=G({width:h,height:f},e,n,r,"majority"===o?.5:0);let v;const M=(t,e,n,r)=>{const o=t instanceof Float32Array||t instanceof Float64Array?0:.5;for(let i=0;i<g;i++){v=i*A;for(let a=0;a<m;a++){if(w[v]<0||C[v]<0)t[i*m+a]=0;else if(r)t[i*m+a]=e[b[v]+x[v]*h];else{const r=Math.floor(w[v]),s=Math.floor(C[v]),l=Math.ceil(w[v]),u=Math.ceil(C[v]),c=w[v]-r,f=C[v]-s;if(!n||n[r+s*h]&&n[l+s*h]&&n[r+u*h]&&n[l+u*h]){const n=(1-c)*e[r+s*h]+c*e[l+s*h],d=(1-c)*e[r+u*h]+c*e[l+u*h];t[i*m+a]=(1-f)*n+f*d+o}else t[i*m+a]=e[b[v]+x[v]*h]}v++}}},k=[];let T;const S=u?.length===p,I=[];for(let t=0;t<p;t++){if(S){const e=new Uint8Array(m*g);M(e,u[t],u[t],!0),I.push(e)}T=new d(m*g),M(T,a[t],S?u[t]:l,"nearest"===o||"majority"===o),k.push(T)}const E=new i.A({width:m,height:g,pixelType:c,pixels:k,bandMasks:S?I:void 0});if(null!=l)E.mask=new Uint8Array(m*g),M(E.mask,l,l,!0);else if(y){E.mask=new Uint8Array(m*g);for(let t=0;t<m*g;t++)E.mask[t]=w[t]<0||C[t]<0?0:1}return E.updateStatistics(),E}function V(t){const{pixelBlock:e,extent:n,fieldNames:r,skipFactor:o,skipSpatialReference:i=!1,pixelIdOffset:s=0}=t,l=[],{width:u,height:c,pixels:h,mask:f}=e,d=t.imageRowSize??u,p=n.width/u,m=n.height/c,g=h.length,y=Math.floor(o/2),{xmin:w,ymax:C}=n,b=i?void 0:n.spatialReference.toJSON();for(let t=y;t<c;t+=o)for(let e=y;e<u;e+=o){const n=t*u+e;if(!f||f[n]){const o={x:w+(e+.5)*p,y:C-(t+.5)*m,spatialReference:b},i={[a]:s+t*d+e};for(let t=0;t<g;t++)i[r[t+1]]=h[t][n];l.push({geometry:o,attributes:i})}}return l}},51927(t,e,n){n.d(e,{DP:()=>C,Nh:()=>b,Pg:()=>w,RP:()=>c,WF:()=>u,_N:()=>x,eH:()=>g,f4:()=>y,fP:()=>f,zj:()=>h,zt:()=>l});var r=n(97768),o=n(94778),i=n(14140),a=n(70274);const s=[.299,.587,.114];function l(t){if(null==t)return!1;const{max:e,min:n,size:r}=t;return(e-n)/r===1&&n>=-.5&&.5===Math.abs(n%1)&&e<=255.5}function u(t,e=256){e=Math.min(e,256);const{size:n,counts:r}=t,o=new Float64Array(n);o[0]=r[0]/e;for(let t=1;t<n;t++)o[t]=o[t-1]+r[t]/e;const i=new Uint8Array(e),a=e/o[o.length-1];if(n<=e){const r=l(t)?Math.max(0,Math.round(t.min+.5)):0;for(let t=r;t<e;t++)i[t]=t>=n+r?255:Math.min(255,Math.trunc(o[t-r]*a))}else{const t=o.map(t=>Math.min(255,Math.trunc(t*a)));for(let r=0;r<e;r++)i[r]=t[Math.round(n/e)];i[e-1]=255}return i}function c(t){const{minCutOff:e,maxCutOff:n,gamma:r,pixelType:o,rounding:i}=t;if(!["u8","u16","s8","s16"].includes(o))return null;const a=e.length,s="s8"===o?-127:"s16"===o?-32767:0,l=["u16","s16"].includes(o)?65536:256,u=[],c=[],{minOutput:f=0,maxOutput:d=255}=t,p=d-f;for(let t=0;t<a;t++)c[t]=n[t]-e[t],u[t]=0===c[t]?0:p/c[t];const m=[];if(r&&r.length>=a){const t=b(a,r);for(let o=0;o<a;o++){const a=[];for(let u=0;u<l;u++){if(0===c[o]){a[u]=f;continue}const l=u+s,h=(l-e[o])/c[o];let m=1;if(r[o]>1&&(m-=(1/p)**(h*t[o])),l<n[o]&&l>e[o]){const t=m*p*h**(1/r[o])+f;a[u]="floor"===i?Math.floor(t):"round"===i?Math.round(t):t}else l>=n[o]?a[u]=d:a[u]=f}m[o]=a}}else for(let t=0;t<a;t++){const r=[];for(let o=0;o<l;o++){const a=o+s;if(a<=e[t])r[o]=f;else if(a>=n[t])r[o]=d;else{const n=(a-e[t])*u[t]+f;r[o]="floor"===i?Math.floor(n):"round"===i?Math.round(n):n}}m[t]=r}if(null!=t.contrastOffset){const e=h(t.contrastOffset,t.brightnessOffset);for(let t=0;t<a;t++){const n=m[t];for(let t=0;t<l;t++)n[t]=e[n[t]]}}return{lut:m,offset:s}}function h(t,e){const n=Math.min(Math.max(t,-100),100),r=Math.min(Math.max(e??0,-100),100),o=new Uint8Array(256);for(let t=0;t<256;t++){let e=0;n>0&&n<100?e=(200*t-25500+510*r)/(2*(100-n))+128:n<=0&&n>-100?e=(200*t-25500+510*r)*(100+n)/2e4+128:100===n?(e=200*t-25500+256*(100-n)+510*r,e=e>0?255:0):-100===n&&(e=128),o[t]=e>255?255:e<0?0:e}return o}function f(t,e,n){const r=[];for(let o=0;o<e.length;o++){let i=0,a=0,l=0;"min"in e[o]?({min:i,max:a,avg:l}=e[o]):[i,a,l]=e[o];let u=l??0;"u8"!==t&&(u=255*(u-i)/(a-i)),n&&(u*=s[o]),r.push(d(u))}return r}function d(t){if(t<=0||t>=255)return 1;const e=t+(150===t?0:t<150?45*Math.cos(.01047*t):17*Math.sin(.021*t)),n=Math.log(t/255),r=Math.log(e/255);if(0===r)return 1;const o=n/r;return isNaN(o)?1:Math.min(9.9,Math.max(.01,o))}function p(t,e,n){let{min:r,max:o,count:i,avg:a,mode:s,median:l}=function(t,e,n=!1,r=!1){let o=1/0,i=-1/0,a=0,s=0,l=0,u=0;const c=t.length,h=new Map;for(let n=0;n<c;n++){const r=t[n];if(!e||e[n]){const t=(h.get(r)??0)+1;h.set(r,t),t>u&&(u=t,l=r),o=r<o?r:o,i=r>i?r:i,a+=r,s++}}const f=s>0?a/s:0;let d=o===i?o:void 0,p=o===i?o:void 0,m=o===i?o:void 0;if(n&&s>0&&s<2**24){let n=t.slice();if(e){let r=0;for(let o=0;o<c;o++){const i=t[o];e[o]&&(n[r++]=i)}}n=n.slice(0,s),n.sort((t,e)=>t-e);const o=s>>>1;d=s%2?n[Math.floor(o)]:(n[o-1]+n[o])/2,r&&(p=n[Math.floor(.25*s)],m=n[Math.floor(.75*s)])}return{min:o,max:i,count:s,avg:f,mode:l,median:d,quartile1:p,quartile3:m}}(t,e,!0);if(0===i)return{statistics:{min:0,max:0,avg:0,stddev:0,count:i,mode:0,median:0},histogram:null};const u={min:r,max:o,avg:a,mode:s,count:i,median:l},c=function(t,e,n,r=!1,o=!1){let i=0,a=0,s=0,l=0;for(let o=0;o<t.length;o++)if(!e||e[o]){const e=t[o]-n,u=e*e;if(i+=u,!r){const t=u*e;a+=t,s+=t*e}l++}if(l<2)return null;i/=l-1;const u=Math.sqrt(i);return r?{stddev:u}:(s/=l,{stddev:u,skewness:o?a*(l/((l-1)*(l-2)))/i**1.5:a/l/i**1.5,kurtosis:s/(i*i)})}(t,e,a,!n.includeSkewnessKurtosis);c&&(u.stddev=c.stddev,n.includeSkewnessKurtosis&&(u.skewness=c.skewness,u.kurtosis=c.kurtosis));const h=n?.histogramSize??256,f=!!n?.pixelType&&["u8","s8","u4","u2","u1"].includes(n.pixelType),d=!n?.skipHistograms;if(null==l){const n=m({band:t,mask:e,min:r,max:o,size:1e4,use8BitHistogram:f});if(l=function(t,e,n,r=50){const{counts:o,min:i,max:a,size:s}=n,l=o.reduce((t,e)=>t+e)*(r/=100);let u=0,c=0;for(;c<o.length&&(u+=o[c],!(u>=l+1));c++);const h=(a-i)/s,f=i+h*c,d=i+h*(c+1);if(1===h&&.5===Math.abs(i%1))return f+.5;const p=t.slice(0,o[c]).fill(0);for(let n=0,r=0;n<t.length;n++)if(!e||e[n]){const e=t[n];e>=f&&e<d&&(p[r++]=e)}p.sort((t,e)=>t-e);const m=u-Math.floor(l)-1;return p[Math.max(0,p.length-1-m)]}(t,e,n,50),d&&f&&256===h)return{statistics:u,histogram:n}}return d?{statistics:u,histogram:m({band:t,mask:e,min:r,max:o,size:h,use8BitHistogram:f&&256===h})}:{statistics:u,histogram:null}}function m(t){const{band:e,mask:n,min:r,max:o,use8BitHistogram:i}=t;if(i){const t=o-r+1,i=new Uint32Array(t);for(let t=0;t<e.length;t++)n&&!n[t]||i[e[t]-r]++;return{min:r-.5,max:o+.5,size:t,counts:i}}const a=t.size??256,s=new Uint32Array(a),l=(o-r)/a;if(0===l){const t=n?n.reduce((t,e)=>t+(e?1:0),0):e.length;return{min:r,max:o,size:1,counts:new Uint32Array(1).fill(t)}}const u=new Uint32Array(a+1),c=1/l;for(let t=0;t<e.length;t++)n&&!n[t]||u[Math.floor((e[t]-r)*c)]++;for(let t=0;t<a-1;t++)s[t]=u[t];return s[a-1]=u[a-1]+u[a],{min:r,max:o,size:a,counts:s}}function g(t,e){const{pixels:n,mask:r,pixelType:o,bandMasks:i}=t,a=n.map((t,n)=>p(t,i?.[n]??r,{pixelType:o,...e}));return{statistics:a.map(({statistics:t})=>t),histograms:a.map(({histogram:t})=>t)}}function y(t){if(!t?.pixels?.length)return null;const{pixels:e,mask:n,bandMasks:r,pixelType:o}=t,i=t.width*t.height,a=e.length,s=[],l=[],u=256;let c,h;for(let f=0;f<a;f++){let a=new Uint32Array(u);const d=e[f],p=r?.[f]??n;if("u8"===o){if(c=255,h=0,p){for(let t=0;t<i;t++)if(p[t]){const e=d[t];c=e<c?e:c,h=e>h?e:h,a[e]++}}else for(let t=0;t<i;t++){const e=d[t];c=e<c?e:c,h=e>h?e:h,a[e]++}a=a.slice(c,h+1)}else{let e=!1;t.statistics||(t.updateStatistics(),e=!0);const n=t.statistics;c=n[f].minValue,h=n[f].maxValue;const r=(h-c)/u;if(0===r){!n||t.validPixelCount||e||t.updateStatistics();const r=(t.validPixelCount||t.width*t.height)/u;for(let t=0;t<u;t++)a[t]=Math.round(r*(t+1))-Math.round(r*t)}else{const t=new Uint32Array(257);for(let e=0;e<i;e++)p&&!p[e]||t[Math.floor((d[e]-c)/r)]++;for(let e=0;e<255;e++)a[e]=t[e];a[255]=t[255]+t[u]}}const m="u8"===o?c-.5:c,g="u8"===o?h+.5:h;s.push({min:m,max:g,size:a.length,counts:a});let y=0,w=0,C=0;for(let t=0;t<a.length;t++)y+=a[t],w+=t*a[t];const b=w/y;for(let t=0;t<a.length;t++)C+=a[t]*(t-b)**2;const x=Math.sqrt(C/(y-1)),A=(g-m)/a.length,v=(b+("u8"===o?0:.5))*A+c,M=x*A;l.push({min:c,max:h,avg:v,stddev:M})}return{statistics:l,histograms:s}}function w(t){const e=[];for(let n=0;n<t.length;n++){const{min:r,max:o,size:i,counts:a}=t[n];let s=0,l=0;for(let t=0;t<i;t++)s+=a[t],l+=t*a[t];const u=l/s;let c=0;for(let t=0;t<i;t++)c+=a[t]*(t-u)**2;const h=(o-r)/i,f=(u+.5)*h+r,d=Math.sqrt(c/(s-1))*h;e.push({min:r,max:o,avg:f,stddev:d})}return e}function C(t,e){const{pixelBlock:n,bandIds:i,returnHistogramLut:s,rasterInfo:l}=e;let c=null,h=null,f=t.stretchType;if("number"==typeof f&&(f=a.x[f]),t.dra)if("minMax"===f&&n?.statistics)c=n.statistics.map(t=>[t.minValue,t.maxValue,0,0]);else{const t=y(n);c=null!=t?t.statistics:null,h=null!=t?t.histograms:null}else c=t.statistics?.length?t.statistics:l.statistics,h="histograms"in t?t.histograms:void 0,h||(h=l.histograms);"percentClip"!==f&&"histogramEqualization"!==f||h?.length||(f="minMax");const d=c?.length||h?.length||l.bandCount,p=[],m=[];c&&!Array.isArray(c[0])&&(c=c.map(t=>[t.min,t.max,t.avg,t.stddev]));const[g,w]=(0,o.hP)(l.pixelType);if(!c?.length){c=[];for(let t=0;t<d;t++)c.push([g,w,1,1]);"standardDeviation"===f&&(f="minMax")}switch(f){case"none":for(let t=0;t<d;t++)p[t]=g,m[t]=w;break;case"minMax":for(let t=0;t<d;t++){const e=c[t];p[t]=e[0],m[t]=e[1]}break;case"standardDeviation":{const{numberOfStandardDeviations:e=2}=t;for(let t=0;t<d;t++){const n=c[t];p[t]=n[2]-e*n[3],m[t]=n[2]+e*n[3],p[t]<n[0]&&(p[t]=n[0]),m[t]>n[1]&&(m[t]=n[1])}}break;case"histogramEqualization":(0,r.Lw)(h);for(let t=0;t<d;t++)p[t]=h[t].min,m[t]=h[t].max;break;case"percentClip":(0,r.Lw)(h);for(let e=0;e<h.length;e++){const n=h[e],r=new Uint32Array(n.size),o=[...n.counts];o.length>=20&&(o[0]=o[1]=o[2]=o[o.length-1]=o[o.length-2]=0);let i=0;const a=(n.max-n.min)/n.size,s=-.5===n.min&&1===a?.5:0;for(let t=0;t<n.size;t++)i+=o[t],r[t]=i;let l=(t.minPercent||0)*i/100;p[e]=n.min+s;for(let t=0;t<n.size;t++)if(r[t]>l){p[e]=n.min+a*(t+s);break}l=(1-(t.maxPercent||0)/100)*i,m[e]=n.max+s;for(let t=n.size-2;t>=0;t--)if(r[t]<l){m[e]=n.min+a*(t+2-s);break}if(m[e]<p[e]){const t=p[e];p[e]=m[e],m[e]=t}}break;default:for(let t=0;t<d;t++){const e=c[t];p[t]=e[0],m[t]=e[1]}}let C,b,x;return"histogramEqualization"===f?((0,r.Lw)(h),b=h[0].size||256,C=0,s&&(x=h.map(t=>u(t)))):(b=t.max||255,C=t.min||0),function(t,e){if(null==e||0===e.length)return t;const n=Math.max.apply(null,e),{minCutOff:r,maxCutOff:o,minOutput:i,maxOutput:a,histogramLut:s}=t;return r.length===e.length||r.length<=n?t:{minCutOff:e.map(t=>r[t]),maxCutOff:e.map(t=>o[t]),histogramLut:s?e.map(t=>s[t]):null,minOutput:i,maxOutput:a}}({minCutOff:p,maxCutOff:m,maxOutput:b,minOutput:C,histogramLut:x},i)}function b(t,e){const n=new Float32Array(t);for(let r=0;r<t;r++)e[r]>1?e[r]>2?n[r]=6.5+(e[r]-2)**2.5:n[r]=6.5+100*(2-e[r])**4:n[r]=1;return n}function x(t,e){if(!t?.pixels?.length)return t;const{mask:n,bandMasks:r,width:o,height:a,pixels:s}=t,{minCutOff:l,maxCutOff:u,minOutput:c,maxOutput:h,gamma:f}=e,d=o*a,p=e.outputPixelType||"u8",m=t.pixels.map(()=>i.A.createEmptyBand(p,d)),g=m.length,y=h-c,w=[],C=[];for(let t=0;t<g;t++)C[t]=u[t]-l[t],w[t]=0===C[t]?0:y/C[t];const x=p.startsWith("u")||p.startsWith("s"),A=f&&f.length>=g,v=!!e.isRenderer;if(A){const t=b(g,f);for(let e=0;e<g;e++){const o=r?.[e]??n;for(let n=0;n<d;n++)if(null==o||o[n]){if(0===C[e]){m[e][n]=c;continue}const r=s[e][n],o=(r-l[e])/C[e];let i=1;if(f[e]>1&&(i-=(1/y)**(o*t[e])),r<u[e]&&r>l[e]){const t=i*y*o**(1/f[e])+c;m[e][n]=v?Math.floor(t):x?Math.round(t):t}else r>=u[e]?m[e][n]=h:m[e][n]=c}}}else for(let t=0;t<g;t++){const e=r?.[t]??n;for(let n=0;n<d;n++)if(null==e||e[n]){const e=s[t][n];if(e<u[t]&&e>l[t]){const r=(e-l[t])*w[t]+c;m[t][n]=v?Math.floor(r):x?Math.round(r):r}else e>=u[t]?m[t][n]=h:m[t][n]=c}}const M=new i.A({width:o,height:a,mask:n,bandMasks:r,pixels:m,pixelType:p});return M.updateStatistics(),M}},51181(t,e,n){n.d(e,{E0:()=>p,PP:()=>m,SC:()=>h,di:()=>d,fw:()=>c,ng:()=>s,yy:()=>f});var r=n(47520),o=n(14140),i=n(4151);const a=1/111e3;function s(t){let{altitude:e,azimuth:n}=t;const{hillshadeType:r,pixelSizePower:o=1,pixelSizeFactor:i=1,scalingType:s,isGCS:l,resolution:u}=t,c="multi-directional"===r?2*t.zFactor:t.zFactor,{x:h,y:f}=u;let d=c/(8*h),p=c/(8*f);if(l&&c>.001&&(d/=a,p/=a),"adjusted"===s)if(l){const t=h*a,e=f*a;d=(c+t**o*i)/(8*t),p=(c+e**o*i)/(8*e)}else d=(c+h**o*i)/(8*h),p=(c+f**o*i)/(8*f);let m=(90-e)*Math.PI/180,g=Math.cos(m),y=(360-n+90)*Math.PI/180,w=Math.sin(m)*Math.cos(y),C=Math.sin(m)*Math.sin(y);const b=[315,270,225,360,180,0],x=[60,60,60,60,60,90],A=new Float32Array([3,5,3,2,1,4]),v=A.reduce((t,e)=>t+e),M=A.map(t=>t/v),k="multi-directional"===r?b.length:1,T=new Float32Array(6),S=new Float32Array(6),I=new Float32Array(6);if("multi-directional"===r)for(let t=0;t<k;t++)e=x[t],n=b[t],m=(90-e)*Math.PI/180,g=Math.cos(m),y=(360-n+90)*Math.PI/180,w=Math.sin(m)*Math.cos(y),C=Math.sin(m)*Math.sin(y),T[t]=g,S[t]=w,I[t]=C;else T.fill(g),S.fill(w),I.fill(C);return{resolution:u,factor:[d,p],sinZcosA:w,sinZsinA:C,cosZ:g,sinZcosAs:[...S],sinZsinAs:[...I],cosZs:[...T],weights:[...M],hillshadeType:["traditional","multi-directional"].indexOf(r)}}function l(t,e){const{width:n,height:r}=t,o=n*r,i=new Uint8Array(o),a=null!=t.mask;let s;if(a){s=new Uint8Array(t.mask);for(let t=0;t<s.length;t++)s[t]&&(i[t]=1,s[t]=1)}const l=t.pixels[0],u=new Float32Array(o),c=new Float32Array(o);let h,f=0;if(e){const{resolution:t}=e,n=t?(t.x+t.y)/2:1;f=200*e.zFactor/(n*n),h=new Float32Array(o)}const d=e?.curvatureType;let p,m,g,y,w,C,b,x;for(let t=1;t<r-1;t++){const e=t*n;for(let t=1;t<n-1;t++){const r=e+t;if(0!==s?.[r]){if(s){if(s[r-n-1]+s[r-n]+s[r-n+1]+s[r-1]+s[r+1]+s[r+n-1]+s[r+n]+s[r+n+1]<7){i[r]=0;continue}p=s[r-n-1]?l[r-n-1]:l[r],m=s[r-n]?l[r-n]:l[r],g=s[r-n+1]?l[r-n+1]:l[r],y=s[r-1]?l[r-1]:l[r],w=s[r+1]?l[r+1]:l[r],C=s[r+n-1]?l[r+n-1]:l[r],b=s[r+n]?l[r+n]:l[r],x=s[r+n+1]?l[r+n+1]:l[r]}else p=l[r-n-1],m=l[r-n],g=l[r-n+1],y=l[r-1],w=l[r+1],C=l[r+n-1],b=l[r+n],x=l[r+n+1];if(u[r]=g+w+w+x-(p+y+y+C),c[r]=C+b+b+x-(p+m+m+g),null!=h){const t=l[r],e=.5*(y+w)-t,n=.5*(m+b)-t;if("standard"===d)h[r]=-f*(e+n);else{const t=(-p+g+C-x)/4,o=(-y+w)/2,i=(m-b)/2,a=o*o,s=i*i,l=a+s;l&&(h[r]="profile"===d?f*(e*a+n*s+t*o*i)/l:-f*(e*s+n*a-t*o*i)/l)}}}}}return{outMask:a?i:null,dzxs:u,dzys:c,curvatures:h}}function u(t,e,n){for(let r=0;r<n;r++)t[r*e]=t[r*e+1],t[(r+1)*e-1]=t[(r+1)*e-2];for(let r=1;r<e-1;r++)t[r]=t[r+e],t[r+(n-1)*e]=t[r+(n-2)*e]}function c(t,e){if(!(0,r.AB)(t))return t;const{factor:n,sinZcosA:a,sinZsinA:c,cosZ:h,sinZcosAs:f,sinZsinAs:d,cosZs:p,weights:m}=s(e),[g,y]=n,w="traditional"===e.hillshadeType,{width:C,height:b}=t,x=new Uint8Array(C*b),{dzxs:A,dzys:v,outMask:M}=l(t);for(let t=1;t<b-1;t++){const e=t*C;for(let t=1;t<C-1;t++){const n=e+t;if(!M||M[n]){const t=A[n]*g,e=v[n]*y,r=Math.sqrt(1+t*t+e*e);let o=0;if(w){let n=255*(h+c*e-a*t)/r;n<0&&(n=0),o=n}else{const n=d.length;for(let i=0;i<n;i++){let n=255*(p[i]+d[i]*e-f[i]*t)/r;n<0&&(n=0),o+=n*m[i]}}x[n]=255&o}}}return u(x,C,b),new o.A({width:C,height:b,pixels:[x],mask:M,pixelType:"u8",validPixelCount:t.validPixelCount,statistics:[new i.A(0,255)]})}function h(t,e,n,o){if(!(0,r.AB)(t)||!(0,r.AB)(e))return;const{min:i,max:a}=o,s=t.pixels[0],{pixels:l,mask:u}=e,c=l[0],h=255.00001/(a-i),f=new Uint8ClampedArray(c.length),d=new Uint8ClampedArray(c.length),p=new Uint8ClampedArray(c.length),m=n.length-1;for(let t=0;t<c.length;t++){if(0===u?.[t])continue;const e=Math.floor((c[t]-i)*h),[r,o]=n[e<0?0:e>m?m:e],a=s[t],l=a*o,g=l*(1-Math.abs(r%2-1)),y=a-l;switch(Math.floor(r)){case 0:f[t]=l+y,d[t]=g+y,p[t]=y;break;case 1:f[t]=g+y,d[t]=l+y,p[t]=y;break;case 2:f[t]=y,d[t]=l+y,p[t]=g+y;break;case 3:f[t]=y,d[t]=g+y,p[t]=l+y;break;case 4:f[t]=g+y,d[t]=y,p[t]=l+y;break;case 5:case 6:f[t]=l+y,d[t]=y,p[t]=g+y}}t.pixels=[f,d,p],t.updateStatistics()}function f(t,e){if(!(0,r.AB)(t))return t;const n=e.zFactor,i=e.pixelSizePower??1,s=e.pixelSizeFactor??1,c=e.slopeType,h=e.isGCS,{x:f,y:d}=e.resolution;let p=n/(8*f),m=n/(8*d);h&&Math.abs(n-1)<1e-4&&(p/=a,m/=a),"adjusted"===c&&(p=(n+f**i*s)/(8*f),m=(n+d**i*s)/(8*d));const{dzxs:g,dzys:y,outMask:w}=l(t),{width:C,height:b}=t,x=new Float32Array(C*b);for(let t=1;t<b-1;t++){const e=t*C;for(let t=1;t<C-1;t++){const n=e+t;if(!w||w[n]){const r=g[n]*p,o=y[n]*m,i=Math.sqrt(r*r+o*o);x[e+t]="percent-rise"===c?100*i:57.2957795*Math.atan(i)}}}u(x,C,b);const A=new o.A({width:C,height:b,pixels:[x],mask:w,pixelType:"f32",validPixelCount:t.validPixelCount});return A.updateStatistics(),A}function d(t,e={}){if(!(0,r.AB)(t))return t;const{resolution:n}=e,a=n?1/n.x:1,s=n?1/n.y:1,{dzxs:c,dzys:h,outMask:f}=l(t),{width:d,height:p}=t,m=new Float32Array(d*p);for(let t=1;t<p-1;t++){const e=t*d;for(let t=1;t<d-1;t++){const n=e+t;if(!f||f[n]){const r=c[n]*a,o=h[n]*s;let i=-1;0===r&&0===o||(i=90-57.29578*Math.atan2(o,-r),i<0&&(i+=360),360===i?i=0:i>360&&(i%=360)),m[e+t]=i}}}return u(m,d,p),new o.A({width:d,height:p,pixels:[m],mask:f,pixelType:"f32",validPixelCount:t.validPixelCount,statistics:[new i.A(-1,360)]})}function p(t,e){if(!(0,r.AB)(t))return t;const{curvatures:n,outMask:i}=l(t,e),{width:a,height:s}=t;u(n,a,s);const c=new o.A({width:a,height:s,pixels:[n],mask:i,pixelType:"f32",validPixelCount:t.validPixelCount});return c.updateStatistics(),c}function m(t,e,n){const{hillshadeType:r,altitude:o,azimuth:i,zFactor:a,pixelSizeFactor:s,pixelSizePower:l,slopeType:u}=t;return{hillshadeType:r,altitude:o,azimuth:i,zFactor:a,pixelSizePower:l,pixelSizeFactor:s,scalingType:"scaled"===u?"adjusted":"none",resolution:e,isGCS:n}}n.d(e,["rk",0,a])},34251(t,e,n){n.d(e,{FI:()=>p,KL:()=>u,Lu:()=>h,Rn:()=>m,Wu:()=>y,Y2:()=>d});var r=n(66552),o=n(47520),i=n(14140);const a=new Map;a.set("meter-per-second",1),a.set("kilometer-per-hour",.277778),a.set("knots",.514444),a.set("feet-per-second",.3048),a.set("mile-per-hour",.44704);const s=180/Math.PI,l=new r.J({esriMetersPerSecond:"meter-per-second",esriKilometersPerHour:"kilometer-per-hour",esriKnots:"knots",esriFeetPerSecond:"feet-per-second",esriMilesPerHour:"mile-per-hour"});function u(t,e){return a.get(t)/a.get(e)||1}function c(t){return(450-t)%360}function h(t,e="geographic"){const[n,r]=t,o=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n)*s;return i=(360+i)%360,"geographic"===e&&(i=c(i)),[o,i]}function f(t,e="geographic"){let n=t[1];"geographic"===e&&(n=c(n)),n%=360;const r=t[0];return[r*Math.cos(n/s),r*Math.sin(n/s)]}function d(t,e,n,r="geographic"){if(!(0,o.AB)(t)||null==n)return t;const i="vector-magdir"===e?t.clone():p(t,e),a=i.pixels[1];for(let t=0;t<a.length;t++)a[t]="geographic"===r?(a[t]+n[t]+270)%360:(a[t]+360-n[t])%360;return"vector-magdir"===e?i:p(i,"vector-magdir")}function p(t,e,n="geographic",r=1){if(!(0,o.AB)(t))return t;const{pixels:a,width:s,height:l}=t,u=s*l,c=a[0],d=a[1],p=t.pixelType.startsWith("f")?t.pixelType:"f32",m=i.A.createEmptyBand(p,u),g=i.A.createEmptyBand(p,u);let y=0;for(let t=0;t<l;t++)for(let t=0;t<s;t++)"vector-uv"===e?([m[y],g[y]]=h([c[y],d[y]],n),m[y]*=r):([m[y],g[y]]=f([c[y],d[y]],n),m[y]*=r,g[y]*=r),y++;const w=new i.A({pixelType:p,width:t.width,height:t.height,mask:t.mask,validPixelCount:t.validPixelCount,maskIsAlpha:t.maskIsAlpha,pixels:[m,g]});return w.updateStatistics(),w}function m(t,e,n=1){if(1===n||!(0,o.AB)(t))return t;const r=t.clone(),{pixels:i,width:a,height:s}=r,l=i[0],u=i[1];let c=0;for(let t=0;t<s;t++)for(let t=0;t<a;t++)"vector-uv"===e?(l[c]*=n,u[c]*=n):l[c]*=n,c++;return r.updateStatistics(),r}function g(t,e,n,r=1){const o=Math.sqrt(t*t+e*e)/r,i=(2*Math.PI+Math.atan2(e,t))%(2*Math.PI);return[o,(2*Math.PI+i-n)%(2*Math.PI)]}function y(t,e,n,r=[0,0],o=.5){const{width:a,height:s,mask:l}=t,[u,c]=t.pixels,[d,p]=r,m=Math.round((a-d)/n),g=Math.round((s-p)/n),y=m*g,w=new Float32Array(y),C=new Float32Array(y),b=new Uint8Array(y),x="vector-uv"===e;for(let t=0;t<g;t++)for(let e=0;e<m;e++){let r=0;const i=t*m+e,g=Math.max(0,t*n+p),y=Math.max(0,e*n+d),A=Math.min(s,g+n),v=Math.min(a,y+n);for(let t=g;t<A;t++)for(let e=y;e<v;e++){const n=t*a+e;if(!l||l[n]){r++;const t=x?[u[n],c[n]]:[u[n],(360+c[n])%360],[e,o]=x?t:f(t);w[i]+=e,C[i]+=o}}if(r>=(A-g)*(v-y)*(1-o)){b[i]=1;const[t,e]=h([w[i]/r,C[i]/r]);w[i]=t,C[i]=e}else b[i]=0,w[i]=0,C[i]=0}const A=new i.A({width:m,height:g,pixels:[w,C],mask:b});return A.updateStatistics(),A}!function(t=0,e=0,n=Math.PI,r=!0){r&&(n=(2*Math.PI-n)%(2*Math.PI));const o=r?-1:1,i=13*o,a=-7*o,s=-2*o,l=-16*o,u=21.75,[c,h]=g(0,e+i,n,u),[f,d]=g(t-5.5,e+a,n,u),[p,m]=g(t+5.5,e+a,n,u),[y,w]=g(t-1.5,e+s,n,u),[C,b]=g(t+1.5,e+s,n,u),[x,A]=g(t-1.5,e+l,n,u),[v,M]=g(t+1.5,e+l,n,u)}(0,0,0),n.d(e,["MD",0,l])},14140(t,e,n){n.d(e,{A:()=>f});var r,o=n(32198),i=n(49186),a=n(25482),s=n(4718),l=n(53966),u=n(91429),c=n(94778),h=n(4151);let f=class extends a.o{static{r=this}static createEmptyBand(t,e){return new(r.getPixelArrayConstructor(t))(e)}static combineBandMasks(t){if(t.length<2)return t[0];const e=t[0].length,n=new Uint8Array(e).fill(255);for(let r=0;r<t.length;r++){const o=t[r];for(let t=0;t<e;t++)o[t]||(n[t]=0)}return n}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 h.A)}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 n=1/0,r=-1/0;const o=t.length;let i,a=0;if(null!=e)for(i=0;i<o;i++)e[i]&&(a=t[i],n=a<n?a:n,r=a>r?a:r);else for(i=0;i<o;i++)a=t[i],n=a<n?a:n,r=a>r?a:r;return new h.A(n,r)}(t,this.mask));const t=this.mask;let e=0;if(null!=t)for(let n=0;n<t.length;n++)t[n]&&e++;else e=this.width*this.height;this.validPixelCount=e}clamp(t){if(!t||"f64"===t||"f32"===t||!this.pixels)return;const[e,n]=(0,c.hP)(t),o=this.pixels,i=this.width*this.height,a=o.length;let s,l,u;const h=[];for(let c=0;c<a;c++){u=r.createEmptyBand(t,i),s=o[c];for(let t=0;t<i;t++)l=s[t],u[t]=l>n?n:l<e?e:l;h.push(u)}this.pixels=h,this.pixelType=t}extractBands(t){const{pixels:e,statistics:n}=this;if(null==t||0===t.length||!e||0===e.length)return this;const o=e.length,i=t.some(t=>t>=e.length),a=o===t.length&&!t.some((t,e)=>t!==e);if(i||a)return this;const s=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 s?.length&&(l=r.combineBandMasks(s),u=l.filter(t=>!!t).length),new r({pixelType:this.pixelType,width:c,height:h,mask:l,bandMasks:s,validPixelCount:u,maskIsAlpha:this.maskIsAlpha,pixels:t.map(t=>e[t]),statistics:n&&t.map(t=>n[t])})}clone(){const t=new r({width:this.width,height:this.height,pixelType:this.pixelType,maskIsAlpha:this.maskIsAlpha,validPixelCount:this.validPixelCount,premultiplyAlpha:this.premultiplyAlpha,depthCount:this.depthCount});let e;null!=this.mask&&(t.mask=new Uint8Array(this.mask)),this.noDataValues&&(t.noDataValues=[...this.noDataValues]),this.bandMasks&&(t.bandMasks=this.bandMasks.map(t=>new Uint8Array(t)));const n=r.getPixelArrayConstructor(this.pixelType);if(this.pixels&&this.pixels.length>0){t.pixels=[];const r=!!this.pixels[0].slice;for(e=0;e<this.pixels.length;e++)t.pixels[e]=r?this.pixels[e].slice():new n(this.pixels[e])}if(this.statistics)for(t.statistics=[],e=0;e<this.statistics.length;e++)t.statistics[e]=(0,s.o8)(this.statistics[e]);return t}getTransferableObject(){const{pixels:t,bandMasks:e,mask:n}=this;this.pixels=[],this.bandMasks=void 0,this.mask=void 0;const r=this.toJSON();this.pixels=t,this.bandMasks=e,this.mask=n,r.pixels=t?[...t]:t,r.bandMasks=e?[...e]:e,r.mask=n;const o=[];return[...t??[],n,...e??[]].filter(t=>null!=t&&ArrayBuffer.isView(t)).forEach(t=>{t&&!o.includes(t.buffer)&&o.push(t.buffer)}),{pixelBlock:r,transferList:o}}_fillFrom8Bit(t){const{mask:e,maskIsAlpha:n,premultiplyAlpha:r,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,a,s,u;i=a=s=o[0],o.length>=3?(a=o[1],s=o[2]):2===o.length&&(a=o[1]);const c=new Uint32Array(t),h=this.width*this.height;if(i.length===h)if(null!=e&&e.length===h)if(n)for(u=0;u<h;u++){const t=e[u];if(t){const e=t/255;c[u]=r?t<<24|s[u]*e<<16|a[u]*e<<8|i[u]*e:t<<24|s[u]<<16|a[u]<<8|i[u]}}else for(u=0;u<h;u++)e[u]&&(c[u]=255<<24|s[u]<<16|a[u]<<8|i[u]);else for(u=0;u<h;u++)c[u]=255<<24|s[u]<<16|a[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:n,statistics:r}=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,a=0,s=1;if(r&&r.length>0){for(const t of r)if(null!=t.minValue&&(a=Math.min(a,t.minValue)),null!=t.maxValue&&null!=t.minValue){const e=t.maxValue-t.minValue;s=Math.max(s,e)}i=255/s}else{let t=255;"s8"===o?(a=-128,t=127):"u16"===o?t=65535:"s16"===o?(a=-32768,t=32767):"u32"===o?t=4294967295:"s32"===o?(a=-2147483648,t=2147483647):"f32"===o?(a=-34e38,t=34e38):"f64"===o&&(a=-Number.MAX_VALUE,t=Number.MAX_VALUE),i=255/(t-a)}const u=new Uint32Array(t),c=this.width*this.height;let h,f,d,p,m;if(h=f=d=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&&(d=e[2]),null!=n&&n.length===c)for(p=0;p<c;p++)n[p]&&(u[p]=255<<24|(d[p]-a)*i<<16|(f[p]-a)*i<<8|(h[p]-a)*i);else for(p=0;p<c;p++)u[p]=255<<24|(d[p]-a)*i<<16|(f[p]-a)*i<<8|(h[p]-a)*i;else if(null!=n&&n.length===c)for(p=0;p<c;p++)m=(h[p]-a)*i,n[p]&&(u[p]=255<<24|m<<16|m<<8|m);else for(p=0;p<c;p++)m=(h[p]-a)*i,u[p]=255<<24|m<<16|m<<8|m}_fillFrom32Bit(t){const{pixels:e,mask:n}=this;if(!t||!e?.length)return l.A.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The input pixel block is empty.");let r,o,i,a;r=o=i=e[0],e.length>=3?(o=e[1],i=e[2]):2===e.length&&(o=e[1]);const s=this.width*this.height;if(r.length!==s)return l.A.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The pixelblock is invalid.");let u=0;if(null!=n&&n.length===s)for(a=0;a<s;a++)t[u++]=r[a],t[u++]=o[a],t[u++]=i[a],t[u++]=1&n[a];else for(a=0;a<s;a++)t[u++]=r[a],t[u++]=o[a],t[u++]=i[a],t[u++]=1}};(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"width",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"height",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"pixelType",void 0),(0,o.Cg)([(0,u.wg)("pixelType")],f.prototype,"castPixelType",null),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"validPixelCount",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"mask",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"maskIsAlpha",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"pixels",void 0),(0,o.Cg)([(0,u.MZ)()],f.prototype,"premultiplyAlpha",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"statistics",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"depthCount",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"noDataValues",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"bandMasks",void 0),f=r=(0,o.Cg)([(0,u.$K)("esri.layers.support.PixelBlock")],f)},87186(t,e,n){n.d(e,{A:()=>b});var r,o=n(32198),i=n(25482),a=n(4718),s=n(91429),l=n(5443),u=n(16930);function c(t){return t=Number(t),isNaN(t)?void 0:t}let h=class extends i.o{static{r=this}constructor(t){super(t),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 r({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.Cg)([(0,s.MZ)({json:{name:"BandName",write:!0}})],h.prototype,"name",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:{source:["WavelengthMin","Wavelength","WAVELENGTH"],reader:(t,e)=>c(e.WavelengthMin??e.Wavelength??e.WAVELENGTH)},write:{target:"WavelengthMin"}}})],h.prototype,"minWavelength",void 0),(0,o.Cg)([(0,s.MZ)({json:{name:"WavelengthMax",read:{reader:c},write:!0}})],h.prototype,"maxWavelength",void 0),(0,o.Cg)([(0,s.MZ)({json:{name:"RadianceBias",read:{reader:c},write:!0}})],h.prototype,"radianceBias",void 0),(0,o.Cg)([(0,s.MZ)({json:{name:"RadianceGain",read:{reader:c},write:!0}})],h.prototype,"radianceGain",void 0),(0,o.Cg)([(0,s.MZ)({json:{name:"ReflectanceBias",read:{reader:c},write:!0}})],h.prototype,"reflectanceBias",void 0),(0,o.Cg)([(0,s.MZ)({json:{name:"ReflectanceGain",read:{reader:c},write:!0}})],h.prototype,"reflectanceGain",void 0),(0,o.Cg)([(0,s.MZ)({json:{name:"SolarIrradiance",read:{reader:c},write:!0}})],h.prototype,"solarIrradiance",void 0),h=r=(0,o.Cg)([(0,s.$K)("esri.layers.support.RasterBandInfo")],h);var f,d=n(13868),p=n(36005),m=n(43937);function g(t){return t=Number(t),isNaN(t)?void 0:t}let y=class extends i.o{static{f=this}constructor(t){super(t),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 f({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.Cg)([(0,s.MZ)({type:Date,json:{name:"AcquisitionDate",write:!0}})],y.prototype,"acquisitionDate",void 0),(0,o.Cg)([(0,p.w)("acquisitionDate")],y.prototype,"readAcquisitionDate",null),(0,o.Cg)([(0,m.K)("acquisitionDate")],y.prototype,"writeAcquisitionDate",null),(0,o.Cg)([(0,s.MZ)({json:{name:"CloudCover",read:{reader:g},write:!0}})],y.prototype,"cloudCover",void 0),(0,o.Cg)([(0,s.MZ)({json:{name:"ProductName",write:!0}})],y.prototype,"productName",void 0),(0,o.Cg)([(0,s.MZ)({json:{name:"SensorName",write:!0}})],y.prototype,"sensorName",void 0),(0,o.Cg)([(0,s.MZ)({json:{name:"SensorAzimuth",read:{reader:g},write:!0}})],y.prototype,"sensorAzimuth",void 0),(0,o.Cg)([(0,s.MZ)({json:{name:"SensorElevation",read:{reader:g},write:!0}})],y.prototype,"sensorElevation",void 0),(0,o.Cg)([(0,s.MZ)({json:{name:"SunAzimuth",read:{reader:g},write:!0}})],y.prototype,"sunAzimuth",void 0),(0,o.Cg)([(0,s.MZ)({json:{name:"SunElevation",read:{reader:g},write:!0}})],y.prototype,"sunElevation",void 0),y=f=(0,o.Cg)([(0,s.$K)("esri.layers.support.RasterSensorInfo")],y);var w,C=n(20223);let b=class extends i.o{static{w=this}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 n=1;n<=e;n++)t.push(new h({name:"band_"+n}));return t}const n=t.map(t=>h.fromJSON(t));for(let t=0;t<n.length;t++)n[t].name=n[t].name||"band_"+(t+1);return n}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 y.fromJSON(this.keyProperties)}clone(){return new w({attributeTable:(0,a.o8)(this.attributeTable),bandCount:this.bandCount,colormap:(0,a.o8)(this.colormap),extent:(0,a.o8)(this.extent),format:this.format,height:this.height,width:this.width,histograms:(0,a.o8)(this.histograms),keyProperties:(0,a.o8)(this.keyProperties),multidimensionalInfo:(0,a.o8)(this.multidimensionalInfo),noDataValue:this.noDataValue,pixelSize:(0,a.o8)(this.pixelSize),pixelType:this.pixelType,isPseudoSpatialReference:this.isPseudoSpatialReference,spatialReference:(0,a.o8)(this.spatialReference),statistics:(0,a.o8)(this.statistics),storageInfo:(0,a.o8)(this.storageInfo),transform:(0,a.o8)(this.transform)})}};(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],b.prototype,"attributeTable",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],b.prototype,"bandCount",void 0),(0,o.Cg)([(0,s.MZ)({readOnly:!0})],b.prototype,"bandInfos",null),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],b.prototype,"colormap",void 0),(0,o.Cg)([(0,s.MZ)({type:String,readOnly:!0})],b.prototype,"dataType",null),(0,o.Cg)([(0,s.MZ)({type:l.A,json:{write:!0}})],b.prototype,"extent",void 0),(0,o.Cg)([(0,s.MZ)({type:l.A,json:{write:!0}})],b.prototype,"nativeExtent",null),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],b.prototype,"nativePixelSize",null),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],b.prototype,"format",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],b.prototype,"height",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],b.prototype,"width",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],b.prototype,"hasMultidimensionalTranspose",null),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],b.prototype,"histograms",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],b.prototype,"keyProperties",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],b.prototype,"multidimensionalInfo",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],b.prototype,"noDataValue",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],b.prototype,"pixelSize",void 0),(0,o.Cg)([(0,s.MZ)({type:d.e8.apiValues,json:{write:!0}})],b.prototype,"pixelType",void 0),(0,o.Cg)([(0,s.MZ)()],b.prototype,"isPseudoSpatialReference",void 0),(0,o.Cg)([(0,s.MZ)({readOnly:!0})],b.prototype,"sensorInfo",null),(0,o.Cg)([(0,s.MZ)({type:u.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],b.prototype,"statistics",void 0),(0,o.Cg)([(0,s.MZ)({type:C.A,json:{write:!0}})],b.prototype,"storageInfo",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=w=(0,o.Cg)([(0,s.$K)("esri.layers.support.RasterInfo")],b)},20223(t,e,n){n.d(e,{A:()=>u});var r,o=n(32198),i=n(25482),a=n(4718),s=n(91429),l=n(86738);let u=class extends i.o{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.isBsqTile=!1,this.isVirtualTileInfo=!1,this.tileInfo=null,this.transposeInfo=null,this.blockBoundary=null}static{r=this}clone(){return new r({blockWidth:this.blockWidth,blockHeight:this.blockHeight,compression:this.compression,origin:(0,a.o8)(this.origin),firstPyramidLevel:this.firstPyramidLevel,maximumPyramidLevel:this.maximumPyramidLevel,pyramidResolutions:(0,a.o8)(this.pyramidResolutions),pyramidScalingFactor:this.pyramidScalingFactor,pyramidBlockWidth:this.pyramidBlockWidth,pyramidBlockHeight:this.pyramidBlockHeight,isBsqTile:this.isBsqTile,isVirtualTileInfo:this.isVirtualTileInfo,tileInfo:(0,a.o8)(this.tileInfo),transposeInfo:(0,a.o8)(this.transposeInfo),blockBoundary:(0,a.o8)(this.blockBoundary)})}};(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],u.prototype,"blockWidth",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],u.prototype,"blockHeight",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"compression",void 0),(0,o.Cg)([(0,s.MZ)({type:l.A,json:{write:!0}})],u.prototype,"origin",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],u.prototype,"firstPyramidLevel",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],u.prototype,"maximumPyramidLevel",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"pyramidResolutions",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],u.prototype,"pyramidScalingFactor",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],u.prototype,"pyramidBlockWidth",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],u.prototype,"pyramidBlockHeight",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"isBsqTile",void 0),(0,o.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],u.prototype,"isVirtualTileInfo",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"tileInfo",void 0),(0,o.Cg)([(0,s.MZ)()],u.prototype,"transposeInfo",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"blockBoundary",void 0),u=r=(0,o.Cg)([(0,s.$K)("esri.layers.support.RasterStorageInfo")],u)},4151(t,e,n){n.d(e,{A:()=>r});class r{constructor(t=null,e=null,n=null){this.minValue=t,this.maxValue=e,this.noDataValue=n}}},13868(t,e,n){var r=n(66552);const o=(0,r.O)()({RSP_NearestNeighbor:"nearest",RSP_BilinearInterpolation:"bilinear",RSP_CubicConvolution:"cubic",RSP_Majority:"majority"}),i=(0,r.O)()({esriNoDataMatchAny:"any",esriNoDataMatchAll:"all"}),a=(0,r.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"});n.d(e,["SZ",0,o,"e8",0,a,"hm",0,i])},85676(t,e,n){n.d(e,{A:()=>p});var r=n(32198),o=n(25482),i=n(53966),a=n(91429),s=n(94778),l=n(47520),u=n(51927),c=n(51181),h=n(87186),f=n(67369),d=n(88178);let p=class extends o.o{constructor(t){super(t),this.lookup={rendererJSON:{}},this.canRenderInWebGL=!1}bind(){const{rendererJSON:t}=this;if(!t)return{success:!1};let e;switch(this.lookup={rendererJSON:{}},t.type){case"uniqueValue":e=this._updateUVRenderer(t);break;case"rasterColormap":e=this._updateColormapRenderer(t);break;case"rasterStretch":e=this._updateStretchRenderer(t);break;case"classBreaks":e=this._updateClassBreaksRenderer(t);break;case"rasterShadedRelief":e=this._updateShadedReliefRenderer(t);break;case"vectorField":e=this._updateVectorFieldRenderer();break;case"flowRenderer":e=this._updateFlowRenderer()}return e}symbolize(t){let e=t?.pixelBlock;if(!m(e))return e;if(t.simpleStretchParams&&"rasterStretch"===this.rendererJSON.type)return this.simpleStretch(e,t.simpleStretchParams);try{let n;switch(e.pixels.length>3&&(e=e.extractBands(t.bandIds??[0,1,2])),this.rendererJSON.type){case"uniqueValue":case"rasterColormap":n=this._symbolizeColormap(e);break;case"classBreaks":n=this._symbolizeClassBreaks(e);break;case"rasterStretch":n=this._symbolizeStretch(e,t.bandIds);break;case"rasterShadedRelief":{const r=t.extent,o=r.spatialReference.isGeographic,i={x:(r.xmax-r.xmin)/e.width,y:(r.ymax-r.ymin)/e.height};n=this._symbolizeShadedRelief(e,{isGCS:o,resolution:i});break}}return n}catch(t){return i.A.getLogger(this).error("symbolize",t.message),e}}simpleStretch(t,e){if(!m(t))return t;try{return t.pixels.length>3&&(t=t.extractBands([0,1,2])),(0,u._N)(t,{...e,isRenderer:!0})}catch(e){return i.A.getLogger(this).error("symbolize",e.message),t}}generateWebGLParameters(t){const{rendererJSON:e}=this;switch(e.type){case"uniqueValue":case"rasterColormap":case"classBreaks":return this._generateColormapWebGLParams("classBreaks"===e.type);case"rasterStretch":return this._generateStretchWebGLParams(t.pixelBlock,e,t.bandIds);case"rasterShadedRelief":return this._generateShadedReliefWebGLParams(e,t.isGCS,t.resolution??void 0);case"vectorField":return this._generateVectorFieldWebGLParams(e);default:return null}}_isLUTChanged(t){const e=this.lookup.rendererJSON;if(!e)return!0;const{rendererJSON:n}=this;if("colorRamp"in n&&n.colorRamp){const r=n.colorRamp;if(t)return JSON.stringify(r)!==JSON.stringify(e.colorRamp)}return JSON.stringify(n)!==JSON.stringify(e)}_symbolizeColormap(t){return this._isLUTChanged()&&!this.bind().success?t:(0,l.qL)(t,this.lookup.colormapLut)}_symbolizeClassBreaks(t){const{canUseIndexedLUT:e}=this._analyzeClassBreaks(this.rendererJSON);return this._isLUTChanged()&&!this.bind().success?t:e?(0,l.qL)(t,this.lookup.colormapLut):(0,l.Hx)(t,this.lookup.remapLut??[])}_symbolizeStretch(t,e){if(!t)return null;const{rasterInfo:n,lookup:r}=this,{pixelType:o,bandCount:i}=n,a=this.rendererJSON,s=["u8","u16","s8","s16"].includes(o);let c;const{dra:h}=a,{gamma:f}=r;if(h&&(e=null),"histogramEqualization"===a.stretchType){const o=h?null:r.histogramLut,i=(0,u.DP)(a,{rasterInfo:n,pixelBlock:t,bandIds:e,returnHistogramLut:!o}),s="u8"===n.pixelType&&!h&&(0,u.zt)(n.histograms?.[0])?t:(0,u._N)(t,{...i,gamma:f,isRenderer:!0});c=(0,l.eH)(s,{lut:h?i.histogramLut:e?.length?e.map(t=>o[t]):o,offset:0})}else if(s){let s;if(h){const r=(0,u.DP)(a,{rasterInfo:n,pixelBlock:t,bandIds:e});s=(0,u.RP)({pixelType:o,...r,gamma:f,rounding:"floor"})}else{if(this._isLUTChanged()&&!this.bind().success)return t;s=r.stretchLut}if(!s)return t;i>1&&null!=e&&e.length===t?.pixels.length&&s.lut.length===i&&(s={lut:e.map(t=>s.lut[t]),offset:s.offset}),c=(0,l.eH)(t,s)}else{const r=(0,u.DP)(a,{rasterInfo:n,pixelBlock:t,bandIds:e});c=(0,u._N)(t,{...r,gamma:f,isRenderer:!0})}if(a.colorRamp){if(this._isLUTChanged(!0)&&!this.bind().success)return t;c=(0,l.qL)(c,r.colormapLut)}return c}_symbolizeShadedRelief(t,e){const n=this.rendererJSON,r={...n,...e},o=(0,c.fw)(t,r);if(!n.colorRamp)return o;if(this._isLUTChanged(!0)&&!this.bind().success)return o;const{hsvMap:i}=this.lookup;if(!i)return o;const a=this.rasterInfo.statistics?.[0]??{min:0,max:8e3};return(0,c.SC)(o,t,i,a),o}_isVectorFieldData(){const{bandCount:t,dataType:e}=this.rasterInfo;return 2===t&&("vector-magdir"===e||"vector-uv"===e)}_updateVectorFieldRenderer(){return this._isVectorFieldData()?{success:!0}:{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; VectorFieldRenderer only supports "vector-magdir" and "vector-uv".`}}_updateFlowRenderer(){return this._isVectorFieldData()?{success:!0}:{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; FlowRenderer only supports "vector-magdir" and "vector-uv".`}}_updateUVRenderer(t){const{bandCount:e,attributeTable:n,pixelType:r}=this.rasterInfo,o=t.field1;if(!o)return{success:!1,error:"Unsupported renderer; missing UniqueValueRenderer.field."};const i=t.defaultSymbol,a=1===e&&["u8","s8"].includes(r);if(!(0,d.hu)(this.rasterInfo,o)&&!a)return{success:!1,error:"Unsupported data; UniqueValueRenderer is only supported on single band data with a valid raster attribute table."};const s=[];if(null!=n){const e=n.fields.find(t=>"value"===t.name.toLowerCase());if(!e)return{success:!1,error:"Unsupported data; the data's raster attribute table does not have a value field."};n.features.forEach(n=>{const r=t.uniqueValueInfos?.find(t=>String(t.value)===String(n.attributes[o])),a=r?.symbol?.color;a?s.push([n.attributes[e.name]].concat(a)):i&&s.push([n.attributes[e.name]].concat(i.color))})}else{if("value"!==o.toLowerCase())return{success:!1,error:'Unsupported renderer; UniqueValueRenderer.field must be "Value" when raster attribute table is not available.'};t.uniqueValueInfos?.forEach(t=>{const e=t?.symbol?.color;e?s.push([parseInt(""+t.value,10)].concat(e)):i&&s.push([parseInt(""+t.value,10)].concat(i?.color))})}if(0===s.length)return{success:!1,error:"Invalid UniqueValueRenderer. Cannot find matching records in the raster attribute table."};const u=(0,l.zg)({colormap:s});return this.lookup={rendererJSON:t,colormapLut:u},this.canRenderInWebGL=(0,d.WN)(u?.indexedColormap),{success:!0}}_updateColormapRenderer(t){if(!(0,d.FA)(this.rasterInfo))return{success:!1,error:"Unsupported data; the data source does not have a colormap."};const e=t.colormapInfos.map(t=>[t.value].concat(t.color)).sort((t,e)=>t[0]-e[0]);if(!e||0===e.length)return{success:!1,error:"Unsupported renderer; ColormapRenderer must have meaningful colormapInfos."};const n=(0,l.zg)({colormap:e});return this.lookup={rendererJSON:t,colormapLut:n},this.canRenderInWebGL=(0,d.WN)(n?.indexedColormap),{success:!0}}_updateShadedReliefRenderer(t){if(!(0,d.iL)(this.rasterInfo))return{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; ShadedReliefRenderer only supports "elevation", or single band float/s16 data.`};if(t.colorRamp){const e=(0,f.R8)(t.colorRamp,{interpolateAlpha:!0}),n=(0,l.zg)({colormap:e}),r=(0,f.S2)(n.indexedColormap);this.lookup={rendererJSON:t,colormapLut:n,hsvMap:r}}else this.lookup={rendererJSON:t};return this.canRenderInWebGL=!0,{success:!0}}_analyzeClassBreaks(t){const{attributeTable:e,pixelType:n}=this.rasterInfo,r=e?.fields.find(t=>"value"===t.name.toLowerCase()),o=e?.fields.find(e=>e.name.toLowerCase()===t.field.toLowerCase()),i=null!=r&&null!==o;return{canUseIndexedLUT:["u8","u16","s8","s16"].includes(n)||i,tableValueField:r,tableBreakField:o}}_updateClassBreaksRenderer(t){const{attributeTable:e}=this.rasterInfo,{canUseIndexedLUT:n,tableValueField:r,tableBreakField:o}=this._analyzeClassBreaks(t),i=t.classBreakInfos;if(!i?.length)return{success:!1,error:"Unsupported renderer; missing or invalid ClassBreaksRenderer.classBreakInfos."};const a=i.sort((t,e)=>t.classMaxValue-e.classMaxValue),u=a[a.length-1];let c=t.minValue;if(!n){const e=[];for(let t=0;t<a.length;t++)e.push({value:a[t].classMinValue??c,mappedColor:a[t].symbol.color}),c=a[t].classMaxValue;return e.push({value:u.classMaxValue,mappedColor:u.symbol.color}),this.lookup={rendererJSON:t,remapLut:e},this.canRenderInWebGL=!1,{success:!0}}const h=[];if(null!=e&&null!=r&&null!==o&&r!==o){const n=r.name,i=o.name,s=a[a.length-1],{classMaxValue:l}=s;c=t.minValue;for(const t of e.features){const e=t.attributes[n],r=t.attributes[i],o=r===l?s:r<c?null:a.find(({classMaxValue:t})=>t>r);o&&h.push([e].concat(o.symbol.color))}}else{const[e,n]=(0,s.hP)(this.rasterInfo.pixelType);c=Math.max(e,Math.floor(t.minValue));for(let t=0;t<a.length;t++){const e=a[t],r=Math.min(n,Math.ceil(e.classMaxValue));for(let t=c;t<r;t++)h.push([t].concat(e.symbol.color));c=r}u.classMaxValue!==c&&c!==n||h.push([c].concat(u.symbol.color))}const f=(0,l.zg)({colormap:h,fillUnspecified:!1});return this.lookup={rendererJSON:t,colormapLut:f},this.canRenderInWebGL=(0,d.WN)(f?.indexedColormap),{success:!0}}_updateStretchRenderer(t){let{stretchType:e,dra:n}=t;if(!("none"===e||t.statistics?.length||function(t){return null!=t&&t.length>0&&null!=t[0].min&&null!=t[0].max}(this.rasterInfo.statistics)||n))return{success:!1,error:"Unsupported renderer; StretchRenderer.customStatistics is required when dynamic range adjustment is not used."};const r=t.histograms||this.rasterInfo.histograms;!function(t){return"percentClip"===t||"histogramEqualization"===t}(t.stretchType)||r?.length||n||(e="minMax");const{computeGamma:o,useGamma:i,colorRamp:a}=t;let{gamma:s}=t;if(i&&o&&!s?.length){const e=t.statistics?.length?t.statistics:this.rasterInfo.statistics;s=(0,u.fP)(this.rasterInfo.pixelType,e)}const c=this.rasterInfo.pixelType,h=!n&&["u8","u16","s8","s16"].includes(c);if("histogramEqualization"===e){const e=r.map(t=>(0,u.WF)(t));this.lookup={rendererJSON:t,histogramLut:e}}else if(h){const e=(0,u.DP)(t,{rasterInfo:this.rasterInfo}),n=(0,u.RP)({pixelType:c,...e,gamma:i?s:null,rounding:"floor"});this.lookup={rendererJSON:t,stretchLut:n}}else this.lookup={rendererJSON:t};if(a&&!function(t){return"algorithmic"===t.type&&["0,0,0,255","0,0,0"].includes(t.fromColor.join(","))&&["255,255,255,255","255,255,255"].includes(t.toColor.join(","))}(a)){const e=(0,f.R8)(a,{interpolateAlpha:!0});this.lookup.colormapLut=(0,l.zg)({colormap:e}),this.lookup.rendererJSON=t}return this.lookup.gamma=i&&s?.length?s:null,this.canRenderInWebGL="histogramEqualization"!==e,{success:!0}}_generateColormapWebGLParams(t){const{indexedColormap:e,offset:n}=this.lookup.colormapLut||{};return{colormap:e,colormapOffset:n,isClassBreaks:t,type:"lut"}}_generateStretchWebGLParams(t,e,n){const{colormapLut:r}=this.lookup,o=e.colorRamp?r?.indexedColormap:null,i=e.colorRamp?r?.offset:null;"histogramEqualization"===e.stretchType&&(e={...e,stretchType:"minMax"});const{gamma:a}=this.lookup,s=!(!e.useGamma||!a?.some(t=>1!==t));let l=0;null!=t&&(l=t.getPlaneCount(),2===l&&((t=t.clone()).statistics=[t.statistics[0]],t.pixels=[t.pixels[0]]));const{bandCount:c}=this.rasterInfo,h=Math.min(3,n?.length||l||c,c),f=o||s?1:255,d=new Float32Array(h);if(s&&a)for(let t=0;t<h;t++)a[t]>1?a[t]>2?d[t]=6.5+(a[t]-2)**2.5:d[t]=6.5+100*(2-a[t])**4:d[t]=1;const p=s&&a?[a[0],a[1]??a[0],a[2]??a[0]]:[1,1,1],m=s?[d[0],d[1]??d[0],d[2]??d[0]]:[1,1,1];if(e.dra&&null==t&&("minMax"===e.stretchType||"standardDeviation"===e.stretchType))return{bandCount:h,minOutput:(e.min??0)/f,maxOutput:(e.max??255)/f,minCutOff:[0,0,0],maxCutOff:[1,1,1],factor:[1,1,1],useGamma:s,gamma:p,gammaCorrection:m,colormap:o,colormapOffset:i,stretchType:e.stretchType,dynamicRangeAdjustment:e.dra,numberOfStandardDeviations:e.numberOfStandardDeviations??2,type:"stretch"};const{minCutOff:g,maxCutOff:y,minOutput:w,maxOutput:C}=(0,u.DP)(e,{rasterInfo:this.rasterInfo,pixelBlock:t,bandIds:n});1===g.length&&(g[2]=g[1]=g[0]),1===y.length&&(y[2]=y[1]=y[0]);const b=y.map((t,e)=>y[e]===g[e]?0:(C-w)/(y[e]-g[e])/f);return{bandCount:h,minOutput:w/f,maxOutput:C/f,minCutOff:g,maxCutOff:y,factor:b,useGamma:s,gamma:p,gammaCorrection:m,colormap:o,colormapOffset:i,stretchType:e.stretchType,type:"stretch"}}_generateShadedReliefWebGLParams(t,e=!1,n={x:0,y:0}){const{colormapLut:r}=this.lookup,o=t.colorRamp?r?.indexedColormap:null,i=t.colorRamp?r?.offset:null,a={...t,isGCS:e,resolution:n},s=(0,c.ng)(a),l=this.rasterInfo.statistics?.[0];return{...s,minValue:l?.min??0,maxValue:l?.max??8e3,hillshadeType:"traditional"===t.hillshadeType?0:1,type:"hillshade",colormap:o,colormapOffset:i}}_generateVectorFieldWebGLParams(t){const{style:e,inputUnit:n,outputUnit:r,visualVariables:o,symbolTileSize:i,flowRepresentation:a}=t,s=this.rasterInfo.statistics?.[0].min??0,l=this.rasterInfo.statistics?.[0].max??50,u=o?.find(t=>"sizeInfo"===t.type)??{maxDataValue:l,maxSize:.8*i,minDataValue:s,minSize:.2*i},c=u.minDataValue??s,h=u.maxDataValue??l,f=null!=u.maxSize&&null!=u.minSize?[u.minSize/i,u.maxSize/i]:[.2,.8];if("wind_speed"===e){const t=(f[0]+f[1])/2;f[0]=f[1]=t}const d=null!=c&&null!=h?[c,h]:null;let p=null;if("classified_arrow"===e)if(null!=c&&null!=h&&null!=u){p=[];const t=(u.maxDataValue-u.minDataValue)/5;for(let e=0;e<6;e++)p.push(u.minDataValue+t*e)}else p=[0,1e-6,3.5,7,10.5,14];const m="flow_to"===a==("ocean_current_kn"===e||"ocean_current_m"===e)?0:Math.PI,g=o?.find(t=>"rotationInfo"===t.type);return{breakValues:p,dataRange:d,inputUnit:n,outputUnit:r,symbolTileSize:i,symbolPercentRange:f,style:e||"single_arrow",rotation:m,rotationType:this.rasterInfo.storageInfo?.tileInfo&&"vector-uv"===this.rasterInfo.dataType?"geographic":g?.rotationType||t.rotationType,type:"vectorField"}}};function m(t){return(0,l.AB)(t)&&0!==t.validPixelCount}(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],p.prototype,"rendererJSON",void 0),(0,r.Cg)([(0,a.MZ)({type:h.A,json:{write:!0}})],p.prototype,"rasterInfo",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],p.prototype,"lookup",void 0),(0,r.Cg)([(0,a.MZ)()],p.prototype,"canRenderInWebGL",void 0),p=(0,r.Cg)([(0,a.$K)("esri.renderers.support.RasterSymbolizer")],p)},67369(t,e,n){n.d(e,{M5:()=>f,R8:()=>g,S2:()=>y,hf:()=>b,hs:()=>h,iv:()=>m,vL:()=>x});var r=n(85334),o=n(66552),i=n(12195);const a=[{id:"aspect",type:"multipart",colorRamps:[{fromColor:[190,190,190],toColor:[255,45,8]},{fromColor:[255,45,8],toColor:[255,181,61]},{fromColor:[255,181,61],toColor:[255,254,52]},{fromColor:[255,254,52],toColor:[0,251,50]},{fromColor:[0,251,50],toColor:[255,254,52]},{fromColor:[0,253,255],toColor:[0,181,255]},{fromColor:[0,181,255],toColor:[26,35,253]},{fromColor:[26,35,253],toColor:[255,57,251]},{fromColor:[255,57,251],toColor:[255,45,8]}]},{id:"black-to-white",fromColor:[0,0,0],toColor:[255,255,255]},{id:"blue-bright",fromColor:[204,204,255],toColor:[0,0,224]},{id:"blue-light-to-dark",fromColor:[211,229,232],toColor:[46,100,140]},{id:"blue-green-bright",fromColor:[203,245,234],toColor:[48,207,146]},{id:"blue-green-light-to-dark",fromColor:[216,242,237],toColor:[21,79,74]},{id:"brown-light-to-dark",fromColor:[240,236,170],toColor:[102,72,48]},{id:"brown-to-blue-green-diverging-right",type:"multipart",colorRamps:[{fromColor:[156,85,31],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[33,130,145]}]},{id:"brown-to-blue-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[110,70,45],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[48,100,102]}]},{id:"coefficient-bias",fromColor:[214,214,255],toColor:[0,57,148]},{id:"cold-to-hot-diverging",type:"multipart",colorRamps:[{fromColor:[69,117,181],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[214,47,39]}]},{id:"condition-number",type:"multipart",colorRamps:[{fromColor:[0,97,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,34,0]}]},{id:"cyan-to-purple",type:"multipart",colorRamps:[{fromColor:[0,245,245],toColor:[0,0,245]},{fromColor:[0,0,245],toColor:[245,0,245]}]},{id:"cyan-light-to-blue-dark",type:"multipart",colorRamps:[{fromColor:[182,237,240],toColor:[31,131,224]},{fromColor:[31,131,224],toColor:[9,9,145]}]},{id:"distance",fromColor:[255,200,0],toColor:[0,0,255]},{id:"elevation1",type:"multipart",colorRamps:[{fromColor:[175,240,233],toColor:[255,255,179]},{fromColor:[255,255,179],toColor:[0,128,64]},{fromColor:[0,128,64],toColor:[252,186,3]},{fromColor:[252,186,3],toColor:[128,0,0]},{fromColor:[120,0,0],toColor:[105,48,13]},{fromColor:[105,48,13],toColor:[171,171,171]},{fromColor:[171,171,171],toColor:[255,252,255]}]},{id:"elevation2",type:"multipart",colorRamps:[{fromColor:[118,219,211],toColor:[255,255,199]},{fromColor:[255,255,199],toColor:[255,255,128]},{fromColor:[255,255,128],toColor:[217,194,121]},{fromColor:[217,194,121],toColor:[135,96,38]},{fromColor:[135,96,38],toColor:[150,150,181]},{fromColor:[150,150,181],toColor:[181,150,181]},{fromColor:[181,150,181],toColor:[255,252,255]}]},{id:"errors",fromColor:[255,235,214],toColor:[196,10,10]},{id:"gray-light-to-dark",fromColor:[219,219,219],toColor:[69,69,69]},{id:"green-bright",fromColor:[204,255,204],toColor:[14,204,14]},{id:"green-light-to-dark",fromColor:[220,245,233],toColor:[34,102,51]},{id:"green-to-blue",type:"multipart",colorRamps:[{fromColor:[32,204,16],toColor:[0,242,242]},{fromColor:[0,242,242],toColor:[2,33,227]}]},{id:"orange-bright",fromColor:[255,235,204],toColor:[240,118,5]},{id:"orange-light-to-dark",fromColor:[250,233,212],toColor:[171,65,36]},{id:"partial-spectrum",type:"multipart",colorRamps:[{fromColor:[242,241,162],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]},{fromColor:[252,3,69],toColor:[176,7,237]},{fromColor:[176,7,237],toColor:[2,29,173]}]},{id:"partial-spectrum-1-diverging",type:"multipart",colorRamps:[{fromColor:[135,38,38],toColor:[240,149,12]},{fromColor:[240,149,12],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[74,80,181]},{fromColor:[74,80,181],toColor:[39,32,122]}]},{id:"partial-spectrum-2-diverging",type:"multipart",colorRamps:[{fromColor:[115,77,42],toColor:[201,137,52]},{fromColor:[201,137,52],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[91,63,176]},{fromColor:[91,63,176],toColor:[81,13,97]}]},{id:"pink-to-yellow-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[158,30,113],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[99,110,45]}]},{id:"pink-to-yellow-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[97,47,73],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[22,59,15]}]},{id:"precipitation",type:"multipart",colorRamps:[{fromColor:[194,82,60],toColor:[237,161,19]},{fromColor:[237,161,19],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,219,0]},{fromColor:[0,219,0],toColor:[32,153,143]},{fromColor:[32,153,143],toColor:[11,44,122]}]},{id:"prediction",type:"multipart",colorRamps:[{fromColor:[40,146,199],toColor:[250,250,100]},{fromColor:[250,250,100],toColor:[232,16,20]}]},{id:"purple-bright",fromColor:[255,204,255],toColor:[199,0,199]},{id:"purple-to-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[77,32,150],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[20,122,11]}]},{id:"purple-to-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[67,14,89],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[24,79,15]}]},{id:"purple-blue-bright",fromColor:[223,184,230],toColor:[112,12,242]},{id:"purple-blue-light-to-dark",fromColor:[229,213,242],toColor:[93,44,112]},{id:"purple-red-bright",fromColor:[255,204,225],toColor:[199,0,99]},{id:"purple-red-light-to-dark",fromColor:[250,215,246],toColor:[143,17,57]},{id:"red-bright",fromColor:[255,204,204],toColor:[219,0,0]},{id:"red-light-to-dark",fromColor:[255,224,224],toColor:[143,10,10]},{id:"red-to-blue-diverging-bright",type:"multipart",colorRamps:[{fromColor:[196,69,57],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[48,95,207]}]},{id:"red-to-blue-diverging-dark",type:"multipart",colorRamps:[{fromColor:[107,13,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[13,53,97]}]},{id:"red-to-green",type:"multipart",colorRamps:[{fromColor:[245,0,0],toColor:[245,245,0]},{fromColor:[245,245,0],toColor:[0,245,0]}]},{id:"red-to-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[186,20,20],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[54,145,33]}]},{id:"red-to-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[97,21,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[16,69,16]}]},{id:"slope",type:"multipart",colorRamps:[{fromColor:[56,168,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]},{id:"spectrum-full-bright",type:"multipart",colorRamps:[{fromColor:[255,0,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,0,255]}]},{id:"spectrum-full-dark",type:"multipart",colorRamps:[{fromColor:[153,0,0],toColor:[153,153,0]},{fromColor:[153,153,0],toColor:[0,153,153]},{fromColor:[0,153,153],toColor:[0,0,153]}]},{id:"spectrum-full-light",type:"multipart",colorRamps:[{fromColor:[255,153,153],toColor:[255,255,153]},{fromColor:[255,255,153],toColor:[153,255,255]},{fromColor:[153,255,255],toColor:[153,153,255]}]},{id:"surface",type:"multipart",colorRamps:[{fromColor:[112,153,89],toColor:[242,238,162]},{fromColor:[242,238,162],toColor:[242,206,133]},{fromColor:[242,206,133],toColor:[194,140,124]},{fromColor:[194,140,124],toColor:[255,242,255]}]},{id:"temperature",type:"multipart",colorRamps:[{fromColor:[255,252,255],toColor:[255,0,255]},{fromColor:[255,0,255],toColor:[0,0,255]},{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,255,0]},{fromColor:[0,255,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,128,0]},{fromColor:[255,128,0],toColor:[128,0,0]}]},{id:"white-to-black",fromColor:[255,255,255],toColor:[0,0,0]},{id:"yellow-to-dark-red",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[242,167,46]},{fromColor:[242,167,46],toColor:[107,0,0]}]},{id:"yellow-to-green-to-dark-blue",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[56,224,9]},{fromColor:[56,224,9],toColor:[26,147,171]},{fromColor:[26,147,171],toColor:[12,16,120]}]},{id:"yellow-to-red",fromColor:[245,245,0],toColor:[255,0,0]},{id:"yellow-green-bright",fromColor:[236,252,204],toColor:[157,204,16]},{id:"yellow-green-light-to-dark",fromColor:[215,240,175],toColor:[96,107,45]}],s=new o.J({Aspect:"aspect","Black to White":"black-to-white","Blue Bright":"blue-bright","Blue Light to Dark":"blue-light-to-dark","Blue-Green Bright":"blue-green-bright","Blue-Green Light to Dark":"blue-green-light-to-dark","Brown Light to Dark":"brown-light-to-dark","Brown to Blue Green Diverging, Bright":"brown-to-blue-green-diverging-right","Brown to Blue Green Diverging, Dark":"brown-to-blue-green-diverging-dark","Coefficient Bias":"coefficient-bias","Cold to Hot Diverging":"cold-to-hot-diverging","Condition Number":"condition-number","Cyan to Purple":"cyan-to-purple","Cyan-Light to Blue-Dark":"cyan-light-to-blue-dark",Distance:"distance","Elevation #1":"elevation1","Elevation #2":"elevation2",Errors:"errors","Gray Light to Dark":"gray-light-to-dark","Green Bright":"green-bright","Green Light to Dark":"green-light-to-dark","Green to Blue":"green-to-blue","Orange Bright":"orange-bright","Orange Light to Dark":"orange-light-to-dark","Partial Spectrum":"partial-spectrum","Partial Spectrum 1 Diverging":"partial-spectrum-1-diverging","Partial Spectrum 2 Diverging":"partial-spectrum-2-diverging","Pink to YellowGreen Diverging, Bright":"pink-to-yellow-green-diverging-bright","Pink to YellowGreen Diverging, Dark":"pink-to-yellow-green-diverging-dark",Precipitation:"precipitation",Prediction:"prediction","Purple Bright":"purple-bright","Purple to Green Diverging, Bright":"purple-to-green-diverging-bright","Purple to Green Diverging, Dark":"purple-to-green-diverging-dark","Purple-Blue Bright":"purple-blue-bright","Purple-Blue Light to Dark":"purple-blue-light-to-dark","Purple-Red Bright":"purple-red-bright","Purple-Red Light to Dark":"purple-red-light-to-dark","Red Bright":"red-bright","Red Light to Dark":"red-light-to-dark","Red to Blue Diverging, Bright":"red-to-blue-diverging-bright","Red to Blue Diverging, Dark":"red-to-blue-diverging-dark","Red to Green":"red-to-green","Red to Green Diverging, Bright":"red-to-green-diverging-bright","Red to Green Diverging, Dark":"red-to-green-diverging-dark",Slope:"slope","Spectrum-Full Bright":"spectrum-full-bright","Spectrum-Full Dark":"spectrum-full-dark","Spectrum-Full Light":"spectrum-full-light",Surface:"surface",Temperature:"temperature","White to Black":"white-to-black","Yellow to Dark Red":"yellow-to-dark-red","Yellow to Green to Dark Blue":"yellow-to-green-to-dark-blue","Yellow to Red":"yellow-to-red","Yellow-Green Bright":"yellow-green-bright","Yellow-Green Light to Dark":"yellow-green-light-to-dark"});function l(t,e){if(!t||!e||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]>e[n]+2||t[n]<e[n]-2)return!1;return!0}function u(t){const e=t.clone();return e.fromColor=t.toColor,e.toColor=t.fromColor,e}function c(t,e){const n=e??a;if("algorithmic"===t.type){const e=t.fromColor.toRgb(),r=t.toColor.toRgb();return n.find(t=>l(e,t.fromColor)&&l(r,t.toColor))?.id}if(t.weights?.length)return;const r=t.colorRamps?.map(t=>({fromColor:t.fromColor.toRgb(),toColor:t.toColor.toRgb()}));return n.find(t=>{const e=t.colorRamps;return!(!r||r.length!==e?.length)&&e.every((t,e)=>l(r[e].fromColor,t.fromColor)&&l(r[e].toColor,t.toColor))})?.id}function h(t,e=!1){const n="string"==typeof t?t:function(t,e,n=!1){if(!t)return;let r=!1,o=c(t,e);return null!=o||n||(r=!0,o=c(t=function(t){if("multipart"===t.type){const e=t.clone();return e.colorRamps?.length?(e.colorRamps=e.colorRamps.reverse().map(t=>u(t)),e):e}return u(t)}(t),e)),o?{id:o,inverted:r}:void 0}(t,void 0,e)?.id;return n?s.toJSON(n):null}function f(t,e="esriCIELabAlgorithm"){const n=a.find(({id:e})=>e===t);return n?n.colorRamps?{type:"multipart",colorRamps:n.colorRamps.map(t=>({type:"algorithmic",algorithm:e,fromColor:[...t.fromColor],toColor:[...t.toColor]}))}:{type:"algorithmic",algorithm:e,fromColor:[...n.fromColor],toColor:[...n.toColor]}:null}function d(t){t??={};const e=t.numColors||256,n=t.distanceOffset||0,r=null!=t.isCustomInterval?t.isCustomInterval:null!==t.distanceInterval&&t.distanceInterval!==1/(e-1),o=t.distanceInterval||1/(e-1);return{...t,numColors:e,distanceOffset:n,interpolateAlpha:!!t.interpolateAlpha,distanceInterval:o,isCustomInterval:r,weights:t.weights}}function p(t,e){const{fromColor:n,toColor:o}=t,i=3===n.length?[...n,255]:[...n],a=3===o.length?[...o,255]:[...o],s=t.algorithm||"esriCIELabAlgorithm",l=d(e),{numColors:u,distanceOffset:c,isCustomInterval:h,interpolateAlpha:f}=l;if(1===u&&0===c)return[i];if(2===u&&0===c&&!h)return[i,a];const p={r:i[0],g:i[1],b:i[2]},m={r:a[0],g:a[1],b:a[2]},g="esriCIELabAlgorithm"===s?function(t,e,n){const{numColors:r,distanceOffset:o,distanceInterval:i,isCustomInterval:a}=n;let{l:s,a:l,b:u}=t;const c=(e.l-s)*i,h=(e.a-l)*i,f=(e.b-u)*i,d=[];if(o){const t=o/i;s+=t*c,l+=t*h,u+=t*f}for(let t=0;t<r-1;t++)d.push({l:s,a:l,b:u}),s+=c,l+=h,u+=f;return d.push(a?{l:s,a:l,b:u}:e),d}((0,r.ZD)(p),(0,r.ZD)(m),l):"esriHSVAlgorithm"===s?function(t,e,n){const{numColors:r,distanceOffset:o,distanceInterval:i,isCustomInterval:a}=n,s=0===t.s,l=0===e.s;let u=t.h,c=e.h;s&&!l?u=c:l&&!s&&(e={...e,h:u},c=u);let h=Math.abs(c-u),f=0;const d=360;h<180?f=(c-u)*i:(h=d-h,f=u>c?h*i:-h*i);const p=(e.s-t.s)*i,m=(e.v-t.v)*i;let{s:g,v:y}=t,w=u;if(o){const t=o/i;w=(w+t*f+d)%d,g+=t*p,y+=t*m}const C=[];for(let t=0;t<r-1;t++)C.push({h:w,s:g,v:y}),w=(w+f+d)%d,g+=p,y+=m;return C.push(a?{h:w,s:g,v:y}:e),C}((0,r.N2)(p),(0,r.N2)(m),l):function(t,e,n){const{numColors:r,distanceOffset:o,distanceInterval:i,isCustomInterval:a}=n,s=t.h,l=e.h,u=2*Math.PI;let c=0;if(s<=l){const t=l-s,e=l-s-u;c=Math.abs(e)<Math.abs(t)?e:t}else{const t=l+u-s,e=l-s;c=Math.abs(e)<Math.abs(t)?e:t}const h=c*i,f=(e.l-t.l)*i,d=(e.c-t.c)*i;let{l:p,c:m,h:g}=t;if(o){const t=o/i;p+=t*f,m+=t*d,g=(g+t*h+u)%u}const y=[];for(let t=0;t<r-1;t++)y.push({l:p,c:m,h:g}),p+=f,m+=d,g=(g+h+u)%u;return y.push(a?{l:p,c:m,h:g}:e),y}((0,r.RH)(p),(0,r.RH)(m),l),y=[],w=i[3]??255,C=((a[3]??255)-w)/(u-1);for(let t=0;t<u;t++){const{r:e,g:n,b:o}=(0,r.$)(g[t]),i=f?Math.round(w+C*t):255;y.push([e,n,o,i])}return y}function m(t,e){const n=(0,i.W)(t)?t.toJSON():t;return"multipart"===n.type?function(t,e){const{numColors:n,interpolateAlpha:r}=d(e),o=function(t,e){const{colorRamps:n}=t;if(e??=n.map(({start:t,stop:e})=>null==t||null==e?-1:e-t),e.length!==n.length||e.some(t=>t<0))return Array.from({length:n.length},()=>1/n.length);const r=e.reduce((t,e)=>t+e);return e.map(t=>t/r)}(t,e?.weights),{colorRamps:i}=t,a=[],s=1/(n-1);let l=0,u=!1;for(let t=0;t<i.length;t++){const e=a.length,c=u?0:e*s-l;l+=o[t];let h=t===i.length-1?n-1-e:(o[t]-c)/s;if(u=Math.ceil(h)===h,h=Math.ceil(h),0===h)continue;const f=p(i[t],{numColors:h,interpolateAlpha:r,distanceOffset:c/o[t],distanceInterval:s/o[t]});a.push(...f)}const c=[...i[i.length-1].toColor];return 3===c.length&&c.push(255),a.push(c),a}(n,e):p(n,e)}function g(t,e){const n=m(t,e),r=e?.interpolateAlpha;return n.forEach((t,e)=>{t.unshift(e),r||t.pop()}),n}function y(t){const e=[];for(let n=0;n<t.length;n+=4){const o=(0,r.N2)({r:t[n],g:t[n+1],b:t[n+2]});e.push([o.h/60,o.s/100,255*o.v/100])}return e}function w(t){const e=(0,r.N2)(t);return{type:"HsvColor",Hue:e.h,Saturation:e.s,Value:e.v,AlphaValue:255}}function C(t){const e=t.toJSON();return{Algorithm:e?.Algorithm||"esriHSVAlgorithm",type:"AlgorithmicColorRamp",FromColor:w(t.fromColor),ToColor:w(t.toColor)}}function b(t){const e=h(t);if(!e)return null;if("algorithmic"===t.type)return{...C(t),Name:e};if(t.colorRamps){const n=t.colorRamps.map(C);return{type:"MultiPartColorRamp",NumColorRamps:n.length,ArrayOfColorRamp:n,Name:e}}return null}function x(t){const e=[...t].reverse().map(t=>{const e=t.toString(16);return e.length<2?"0"+e:e});return 4294967295&Number.parseInt(e.join(""),16)}n.d(e,["L7",0,["random","ndvi","ndvi2","ndvi3","elevation","gray","hillshade"],"kH",0,s,"vj",0,a])},88178(t,e,n){function r(t,e){const{attributeTable:n,bandCount:r}=t;return!((null!=n||(o=t,!["u8","s8"].includes(o.pixelType)||null==o.statistics?.[0]?.min||null==o.statistics[0]?.max||1!==o.bandCount))&&(null==n||r>1||e&&null==n.fields.find(t=>t.name.toLowerCase()===e.toLowerCase())));var o}function o(t){const{bandCount:e,dataType:n,pixelType:r}=t;return"elevation"===n||"generic"===n&&1===e&&("s16"===r||"s32"===r||"f32"===r||"f64"===r)}function i(t,e=!1){const{bandCount:n,colormap:r,pixelType:o}=t;return 1===n&&(!!r?.length||!e&&"u8"===o)}function a(t,e=!1){const{attributeTable:n,bandCount:r}=t;return 1===r&&(!e||null!=n||null!=t.histograms)}function s(t){const{dataType:e}=t;return"vector-uv"===e||"vector-magdir"===e}function l(t){const{dataType:e}=t;return"vector-uv"===e||"vector-magdir"===e}function u(t){return!!t?.length&&t.length<=16384}n.d(e,{FA:()=>i,QJ:()=>l,WN:()=>u,hu:()=>r,iL:()=>o,rd:()=>s,xX:()=>a})},70274(t,e,n){const r=new(n(66552).J)({none:"none",standardDeviation:"standard-deviation",histogramEqualization:"histogram-equalization",minMax:"min-max",percentClip:"percent-clip",sigmoid:"sigmoid"});n.d(e,["u",0,r,"x",0,{0:"none",3:"standardDeviation",4:"histogramEqualization",5:"minMax",6:"percentClip",9:"sigmoid"}])},491(t,e,n){n.d(e,{CW:()=>f});var r=n(44208),o=n(53966),i=n(17676);function a(t){const e=new Float32Array(s(t));return s(t,e),e}function s(t,e){let n=0;e&&(e[n]=t.length),n++;for(const r of t){e&&(e[n]=r.stage),n++,e&&(e[n]=r.vertices.length),n++;for(const t of r.vertices)e&&(e[n]=t.x,e[n+1]=t.y,e[n+2]=t.time,e[n+3]=t.speed),n+=4}return n}const l=[1,2],u=[1,2,3,4];var c=n(97441);const h=()=>o.A.getLogger("esri.views.2d.engine.flow.dataUtils");async function f(t,e,n,o,a){const s=performance.now();(0,c.dF)(n);const l=function(t,e){const{perturb:n}=e;if(n){const{rotation:e}=n;null!=e&&(t=function(t,e){const n=Math.cos(e),r=Math.sin(e);return(e,o)=>{const[i,a]=t(e,o);return[n*i+r*a,-r*i+n*a]}}(t,e));const{scale:r}=n;null!=r&&(t=function(t,e){return(n,r)=>{const[o,i]=t(n,r);return[o*e,i*e]}}(t,r))}return t}((0,c.DE)(e,n),e),u=performance.now(),f=(0,c.S1)(e,l,n.width,n.height,o),m=performance.now(),g=function(t){const e=t.reduce((t,e)=>t+e.vertices.length,0),n=new Float32Array(4*e),r=new Array(t.length);let o=0,i=0;for(const{vertices:e}of t){const t=o;for(const t of e)n[4*o]=t.x,n[4*o+1]=t.y,n[4*o+2]=t.time,n[4*o+3]=t.speed,o++;r[i++]={startVertex:t,numberOfVertices:e.length,firstTime:e[0].time,lastTime:e[e.length-1].time}}return{lineVertices:n,lineDescriptors:r}}(f),y=performance.now(),w="Streamlines"===t?d(g,10,f):p(g,f),C=performance.now();return(0,r.A)("esri-2d-profiler")&&(h().info("I.1","_createFlowFieldFromData (ms)",Math.round(u-s)),h().info("I.2","_getStreamlines (ms)",Math.round(m-u)),h().info("I.3","createAnimatedLinesData (ms)",Math.round(y-m)),h().info("I.4","create{Streamlines|Particles}Mesh (ms)",Math.round(C-y)),h().info("I.5","createFlowMesh (ms)",Math.round(C-s)),h().info("I.6","Mesh size (bytes)",w.vertexData.buffer.byteLength+w.indexData.buffer.byteLength)),await Promise.resolve(),(0,i.Te)(a),w}function d(t,e,n){const{lineVertices:r,lineDescriptors:o}=t;let i=0,s=0;for(const t of o)i+=2*t.numberOfVertices,s+=6*(t.numberOfVertices-1);const l=new Float32Array(9*i),u=new Uint32Array(s);let c=0,h=0;function f(){u[h++]=c-2,u[h++]=c,u[h++]=c-1,u[h++]=c,u[h++]=c+1,u[h++]=c-1}function d(t,e,n,r,o,i,a,s){const u=9*c;let h=0;l[u+h++]=t,l[u+h++]=e,l[u+h++]=1,l[u+h++]=n,l[u+h++]=i,l[u+h++]=a,l[u+h++]=r/2,l[u+h++]=o/2,l[u+h++]=s,c++,l[u+h++]=t,l[u+h++]=e,l[u+h++]=-1,l[u+h++]=n,l[u+h++]=i,l[u+h++]=a,l[u+h++]=-r/2,l[u+h++]=-o/2,l[u+h++]=s,c++}for(const t of o){const{firstTime:n,lastTime:o}=t;let i=null,a=null,s=null,l=null,u=null,c=null;for(let h=0;h<t.numberOfVertices;h++){const p=r[4*(t.startVertex+h)],m=r[4*(t.startVertex+h)+1],g=r[4*(t.startVertex+h)+2],y=r[4*(t.startVertex+h)+3];let w=null,C=null,b=null,x=null;if(h>0){w=p-i,C=m-a;const t=Math.sqrt(w*w+C*C);if(w/=t,C/=t,h>1){let t=w+u,n=C+c;const r=Math.sqrt(t*t+n*n);t/=r,n/=r;const o=Math.min(1/(t*w+n*C),e);t*=o,n*=o,b=-n,x=t}else b=-C,x=w;null!==b&&null!==x&&(d(i,a,s,b,x,n,o,y),f())}i=p,a=m,s=g,u=w,c=C,l=y}d(i,a,s,-c,u,n,o,l)}const p=a(n);return{vertexData:l,indexData:u,pathData:p}}function p(t,e){const{lineVertices:n,lineDescriptors:r}=t;let o=0,i=0;for(const t of r){const e=t.numberOfVertices-1;o+=4*e*2,i+=6*e*2}const s=new Float32Array(16*o),c=new Uint32Array(i);let h,f,d,p,m,g,y,w,C,b,x,A,v,M,k=0,T=0;function S(t,e){let n=C+x,r=b+A;const o=Math.sqrt(n*n+r*r);n/=o,r/=o;const i=C*n+b*r;n/=i,r/=i;let a=x+v,S=A+M;const I=Math.sqrt(a*a+S*S);a/=I,S/=I;const P=x*a+A*S;a/=P,S/=P,function(t,e,n,r,o,i,a,c,h,f,d,p,m,g){const y=16*k;let w=0;for(const C of l)for(const l of u)s[y+w++]=t,s[y+w++]=e,s[y+w++]=n,s[y+w++]=r,s[y+w++]=a,s[y+w++]=c,s[y+w++]=h,s[y+w++]=f,s[y+w++]=C,s[y+w++]=l,s[y+w++]=m,s[y+w++]=g,s[y+w++]=o/2,s[y+w++]=i/2,s[y+w++]=d/2,s[y+w++]=p/2,k++}(h,f,d,p,-r,n,m,g,y,w,-S,a,t,e),c[T++]=k-8,c[T++]=k-7,c[T++]=k-6,c[T++]=k-7,c[T++]=k-5,c[T++]=k-6,c[T++]=k-4,c[T++]=k-3,c[T++]=k-2,c[T++]=k-3,c[T++]=k-1,c[T++]=k-2}function I(t,e,n,r,o,i){if(C=x,b=A,x=v,A=M,null==C&&null==b&&(C=x,b=A),null!=m&&null!=g){v=t-m,M=e-g;const n=Math.sqrt(v*v+M*M);v/=n,M/=n}null!=C&&null!=b&&S(o,i),h=m,f=g,d=y,p=w,m=t,g=e,y=n,w=r}function P(t,e){C=x,b=A,x=v,A=M,null==C&&null==b&&(C=x,b=A),null!=C&&null!=b&&S(t,e)}for(const t of r){h=null,f=null,d=null,p=null,m=null,g=null,y=null,w=null,C=null,b=null,x=null,A=null,v=null,M=null;const{firstTime:e,lastTime:r}=t;for(let o=0;o<t.numberOfVertices;o++)I(n[4*(t.startVertex+o)],n[4*(t.startVertex+o)+1],n[4*(t.startVertex+o)+2],n[4*(t.startVertex+o)+3],e,r);P(e,r)}const E=a(e);return{vertexData:s,indexData:c,pathData:E}}},97441(t,e,n){n.d(e,{DE:()=>l,S1:()=>a,dF:()=>s}),n(44208),n(53966);var r=n(34727),o=n(87811),i=n(78659);function a(t,e,n,r,i){if(t.density<=0)return[];const{positions:a}=i,s=[],l=new o.A,h=1/Math.max(t.lineCollisionWidth,1),f=Math.round(n*h),d=Math.round(r*h),p=new Int32Array(f*d);for(let t=0;t<p.length;t++)p[t]=-1;const m={raster:p,width:f,height:d,resolutionFactor:h},g={},y=t.lineSpacing/Math.sqrt(t.density),w=Math.floor(r/y),C=Math.floor(n/y);for(let t=0;t<w;t++){const e=t*y;for(let n=0;n<C;n++){const r=n*y;g[`${n}-${t}`]={x:r,y:e,positions:[]}}}for(const{x:t,y:e}of a){const n=g[`${Math.floor(t/y)}-${Math.floor(e/y)}`];n&&n.positions.push([t,e])}const b=[];for(const t in g){const e=g[t];if(0===e.positions.length)b.push({x:e.x+y/2,y:e.y+y/2,sort:.66+.33*l.getFloat(),stage:0});else{const[t]=e.positions.splice(0,1);b.push({x:t[0],y:t[1],sort:.33*l.getFloat(),stage:1});for(const[t,n]of e.positions)b.push({x:t,y:n,sort:.33+.33*l.getFloat(),stage:2})}}b.sort((t,e)=>t.sort-e.sort);for(const{x:o,y:i,stage:a}of b){if(s.length>=t.maxNumberOfStreamlines)break;const h=t.onlyForwardTracing?u(1,t,e,o,i,[n,r],s.length,m):c(t,e,o,i,[n,r],s.length,l,m);h.length<2||s.push({stage:a,vertices:h})}return s}function s(t){for(let e=0;e<t.mask.length;e++)0===t.mask[e]&&(t.data[2*e]=0,t.data[2*e+1]=0)}function l(t,e){const n=function(t,e,n,r){if(0===r)return t;const o=Math.round(3*r),i=new Array(2*o+1);let a=0;for(let t=-o;t<=o;t++){const e=Math.exp(-t*t/(r*r));i[t+o]=e,a+=e}for(let t=-o;t<=o;t++)i[t+o]/=a;const s=new Float32Array(t.length);for(let r=0;r<n;r++)for(let n=0;n<e;n++){let a=0,l=0;for(let s=-o;s<=o;s++){if(n+s<0||n+s>=e)continue;const u=i[s+o];a+=u*t[2*(r*e+(n+s))],l+=u*t[2*(r*e+(n+s))+1]}s[2*(r*e+n)]=a,s[2*(r*e+n)+1]=l}const l=new Float32Array(t.length);for(let t=0;t<e;t++)for(let r=0;r<n;r++){let a=0,u=0;for(let l=-o;l<=o;l++){if(r+l<0||r+l>=n)continue;const c=i[l+o];a+=c*s[2*((r+l)*e+t)],u+=c*s[2*((r+l)*e+t)+1]}l[2*(r*e+t)]=a,l[2*(r*e+t)+1]=u}return l}(e.data,e.width,e.height,t.smoothing);return t.interpolate?(t,r)=>{const o=Math.floor(t),i=Math.floor(r);if(o<0||o>=e.width)return[0,0];if(i<0||i>=e.height)return[0,0];const a=t-o,s=r-i,l=o,u=i,c=o<e.width-1?o+1:o,h=i<e.height-1?i+1:i,f=n[2*(u*e.width+l)],d=n[2*(u*e.width+c)],p=n[2*(h*e.width+l)],m=n[2*(h*e.width+c)],g=n[2*(u*e.width+l)+1],y=n[2*(u*e.width+c)+1];return[(f*(1-s)+p*s)*(1-a)+(d*(1-s)+m*s)*a,(g*(1-s)+n[2*(h*e.width+l)+1]*s)*(1-a)+(y*(1-s)+n[2*(h*e.width+c)+1]*s)*a]}:(t,r)=>{const o=Math.round(t),i=Math.round(r);return o<0||o>=e.width||i<0||i>=e.height?[0,0]:[n[2*(i*e.width+o)],n[2*(i*e.width+o)+1]]}}function u(t,e,n,o,a,s,l,u){const c=[],{raster:h,width:f,height:d,resolutionFactor:p}=u;let m=o,g=a,y=(0,i.Kp)(0),[w,C]=n(m,g);w*=e.velocityScale,C*=e.velocityScale;const b=Math.sqrt(w*w+C*C);let x,A;c.push({x:m,y:g,time:y,speed:b});for(let o=0;o<e.verticesPerLine;o++){let[o,a]=n(m,g);o*=e.velocityScale,a*=e.velocityScale;const u=Math.sqrt(o*o+a*a);if(u<e.minSpeedThreshold)return c;const w=t*o/u,C=t*a/u;m+=w*e.segmentLength,g+=C*e.segmentLength,e.wrapAround&&(m=(0,r.OS)(m,s[0]));const b=t*e.segmentLength/u;if(y=(0,i.Kp)(y+b),Math.acos(w*x+C*A)>e.maxTurnAngle)return c;if(e.collisions){let t=Math.round(m*p);const n=Math.round(g*p);if(e.wrapAround&&(t=(0,r.OS)(t,f)),t<0||t>f-1||n<0||n>d-1)return c;const o=h[n*f+t];if(-1!==o&&o!==l)return c;h[n*f+t]=l}c.push({x:m,y:g,time:y,speed:u}),x=w,A=C}return c}function c(t,e,n,r,o,i,a,s){const l=Math.round((.2+.6*a.getFloat())*t.verticesPerLine),c=t.verticesPerLine-l,h=u(-1,{...t,verticesPerLine:c},e,n,r,o,i,s),f=u(1,{...t,verticesPerLine:l},e,n,r,o,i,s),d=h.reverse();return d.splice(-1,1),d.concat(f)}n(5443),n(21325)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4348],{44528(e,t,i){function a(e){return Boolean(e).toString()}i.d(t,{t:()=>a})},28874(e,t,i){function a(e){return"l"===e?"m":"s"}async function n(e){await e.componentOnReady(),await e.updateComplete}i.d(t,{c:()=>n,g:()=>a}),i(58933)},30240(e,t,i){i.d(t,["g",0,()=>[2,1,1,1,3].map(e=>{let t="";for(let i=0;i<e;i++)t+=(65536*(1+Math.random())|0).toString(16).substring(1);return t}).join("-")])},5678(e,t,i){i.d(t,{c:()=>n,u:()=>r});var a=i(58933);function n(e,t,i){if(a.S$)return;const n=function(e){class t extends window.MutationObserver{constructor(e){super(e),this.observedEntry=[],this.callback=e}observe(e,t){return this.observedEntry.push({target:e,options:t}),super.observe(e,t)}unobserve(e){const t=this.observedEntry.filter(t=>t.target!==e);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),t.forEach(e=>this.observe(e.target,e.options))}}return"intersection"===e?window.IntersectionObserver:"mutation"===e?t:window.ResizeObserver}(e);return new n(t,i)}function r(e,t,i,a){e&&(t&&e.unobserve(t),i&&(e instanceof MutationObserver?e.observe(i,a):e.observe(i)))}},67306(e,t,i){var a=i(77843);i.d(t,["u",0,e=>(0,a.aK)(t=>{function i(i){const{form:a}=t.elementInternals;i.defaultPrevented||t.disabled||e?.disabled?.()||!a||"button"===t.type||("submit"!==t.type?a.reset():a.requestSubmit())}t.listen("luminaFormAssociatedCallback",({detail:[e]})=>{e?t.el.addEventListener("click",i):t.el.removeEventListener("click",i)})})])},8752(e,t,i){var a=i(77843),n=i(47061),r=i(58933);const l=({children:e,disabled:t})=>r.qy`<div class=${(0,n.CP)("interaction-container")} .inert=${t}>${e}</div>`,s=(0,a.aK)((e,t)=>(t.onUpdated(()=>function(e){if(e.disabled)return e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),void function(e){var t;e.el.click=c,(t=e.el).addEventListener("pointerdown",o,h),d.forEach(e=>t.addEventListener(e,v,h))}(e);(function(e){var t;delete e.el.click,(t=e.el).removeEventListener("pointerdown",o,h),d.forEach(e=>t.removeEventListener(e,v,h))})(e),e.el.removeAttribute("aria-disabled")}(e)),l));function c(){const{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function o(e){e.target.disabled&&e.preventDefault()}const d=["mousedown","mouseup","click"];function v(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}const h={capture:!0};i.d(t,["u",0,s])},88582(e,t,i){var a=i(77843),n=i(28874),r=i(31257);i.d(t,["u",0,()=>(0,a.aK)((e,t)=>{let i;function a(){i?.abort()}return t.onLoad(()=>{e.listen("focus",()=>{i=new AbortController,e.el.addEventListener("focusout",a,{signal:i.signal})})}),t.onDisconnected(()=>{e.el.removeEventListener("focusout",a)}),async(t,l)=>{if(e.disabled)return;const s=function(e){if(e)return function(e){return"target"in e&&("includeContainer"in e||"strategy"in e)}(e)?e:{target:e}}(t());if(!s)return;const{target:c,includeContainer:o,strategy:d}=s,v=(0,r.i)(e.el),h=v.activeElement;return await(0,n.c)(e),h!==v.activeElement||i&&!i?.signal.aborted?void 0:(e.el.removeEventListener("focus",a),(0,r.k)(c,o,d,e.el,l))}})])},45935(e,t,i){var a=i(77843),n=i(57805);const r=(0,a.yr)(n.g);i.d(t,["u",0,r])},68098(e,t,i){var a=i(57805),n=i(58933),r=i(47061),l=i(77843),s=i(44528),c=i(5678);const o="flip-rtl",d="svg",v={},h={},u={s:16,m:24,l:32};function p({icon:e,scale:t}){const i=u[t],a=function(e){const t=!isNaN(Number(e.charAt(0))),i=e.split("-");if(i.length>0){const t=/[a-z]/i;e=i.map((e,i)=>e.replace(t,function(e,t){return 0===i&&0===t?e:e.toUpperCase()})).join("")}return t?`i${e}`:e}(e),n="F"===a.charAt(a.length-1);return`${n?a.substring(0,a.length-1):a}${i}${n?"F":""}`}function m(e){return v[e]}const f=n.AH`:host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}`;class g extends r.WF{constructor(){super(...arguments),this.direction=(0,l.jH)(),this.visible=!1,this.flipRtl=!1,this.preload=!1,this.scale="m"}static{this.properties={pathData:[16,{},{state:!0}],visible:[16,{},{state:!0}],flipRtl:[7,{},{reflect:!0,type:Boolean}],icon:[3,{},{reflect:!0}],preload:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],textLabel:1}}static{this.styles=f}connectedCallback(){if(super.connectedCallback(),this.preload)return this.visible=!0,void this.loadIconPathData();this.visible||this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}willUpdate(e){(e.has("icon")&&(this.hasUpdated||void 0!==this.icon)||e.has("scale")&&(this.hasUpdated||"m"!==this.scale))&&this.loadIconPathData()}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0}async loadIconPathData(){const{icon:e,scale:t,visible:i}=this;if(n.S$||!e||!i)return;const r={icon:e,scale:t},l=m(p(r))||await async function(e){const t=p(e),i=m(t);if(i)return i;h[t]||(h[t]=fetch((0,a.g)(`./assets/icon/${t}.json`)).then(e=>e.json()).catch(()=>(a.l.error(`${e.icon} (${e.scale}) icon failed to load`),"")));const n=await h[t];return v[t]=n,n}(r);e===this.icon&&(this.pathData=l)}waitUntilVisible(e){this.intersectionObserver=(0,c.c)("intersection",t=>{t.forEach(t=>{t.isIntersecting&&(this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,e())})},{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):e()}render(){const{flipRtl:e,pathData:t,scale:i,textLabel:a}=this,l=this.direction,c=u[i],v=!!a,h=Array.isArray(t)?t:[t??""];return this.el.ariaHidden=(0,s.t)(!v),this.el.ariaLabel=v?a:null,this.el.role=v?"img":null,n.qy`<svg aria-hidden=true class=${(0,r.CP)({[o]:"rtl"===l&&e,[d]:!0})} fill=currentColor height=100% viewBox=${`0 0 ${c} ${c}`} width=100% xmlns=http://www.w3.org/2000/svg>${h.map(e=>"string"==typeof e?n.JW`<path d=${e??n.s6} />`:n.JW`<path d=${e.d??n.s6} opacity=${("opacity"in e?e.opacity:1)??n.s6} />`)}</svg>`}}(0,a.c)("calcite-icon",g)},22868(e,t,i){var a=i(57805),n=i(58933),r=i(47061),l=i(30240),s=i(45935);const c="ring--progress",o="ring",d="ring--track",v=n.AH`:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-relative-md);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-relative-xl);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`;class h extends r.WF{constructor(){super(...arguments),this.messages=(0,s.u)({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}static{this.properties={complete:[7,{},{reflect:!0,type:Boolean}],inline:[7,{},{reflect:!0,type:Boolean}],label:1,scale:[3,{},{reflect:!0}],text:1,type:[3,{},{reflect:!0}],value:[9,{},{type:Number}]}}static{this.styles=v}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(e){e.has("value")&&(this.hasUpdated||0!==this.value)&&this.valueChangeHandler(),(e.has("type")&&(this.hasUpdated||"indeterminate"!==this.type)||e.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&100===this.value}formatValue(){return"determinate-value"!==this.type?`${this.value}`:this.formatter.format(this.value/100)}getSize(e){return{s:32,m:64,l:96}[e]}getInlineSize(e){return{s:12,m:16,l:24}[e]}updateFormatter(){"determinate-value"===this.type&&this.formatter?.resolvedOptions().locale!==this.messages._lang&&(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){const{el:e,inline:t,label:i,text:a,type:s,value:c}=this,o=e.id||(0,l.g)(),d="indeterminate"!==s,v=Math.floor(c);return this.el.ariaLabel=i,this.el.ariaValueMax=d?"100":null,this.el.ariaValueMin=d?"0":null,this.el.ariaValueNow=d?v.toString():null,(0,r.Bq)(this.el,"id",o),this.el.role="progressbar",n.qy`<div class=${(0,r.CP)("rings")}>${this.renderRing("track")}${this.renderRing("progress")}${!t&&d&&n.qy`<div class=${(0,r.CP)("percentage")}>${this.formatValue()}</div>`||""}</div>${!t&&a&&n.qy`<div class=${(0,r.CP)("text")}>${a}</div>`||""}`}renderRing(e){const{inline:t,scale:i,value:a}=this,l=t?this.getInlineSize(i):this.getSize(i),s=.45*l;let v;if("progress"===e){const e=2*s*Math.PI,t=(this.type.startsWith("determinate")?a:24)/100*e;v={"stroke-dasharray":`${t} ${e-t}`}}return n.qy`<svg aria-hidden=true class=${(0,r.CP)({[o]:!0,[d]:"track"===e,[c]:"progress"===e})} style=${(0,r.zl)(v)} viewBox=${`0 0 ${l} ${l}`}>${n.JW`<circle cx=${l/2} cy=${l/2} r=${s??n.s6} />`}</svg>`}}(0,a.c)("calcite-loader",h)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4348],{44528(e,t,i){function a(e){return Boolean(e).toString()}i.d(t,{t:()=>a})},28874(e,t,i){function a(e){return"l"===e?"m":"s"}async function n(e){await e.componentOnReady(),await e.updateComplete}i.d(t,{c:()=>n,g:()=>a}),i(58933)},30240(e,t,i){i.d(t,["g",0,()=>[2,1,1,1,3].map(e=>{let t="";for(let i=0;i<e;i++)t+=(65536*(1+Math.random())|0).toString(16).substring(1);return t}).join("-")])},5678(e,t,i){i.d(t,{c:()=>n,u:()=>r});var a=i(58933);function n(e,t,i){if(a.S$)return;const n=function(e){class t extends window.MutationObserver{constructor(e){super(e),this.observedEntry=[],this.callback=e}observe(e,t){return this.observedEntry.push({target:e,options:t}),super.observe(e,t)}unobserve(e){const t=this.observedEntry.filter(t=>t.target!==e);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),t.forEach(e=>this.observe(e.target,e.options))}}return"intersection"===e?window.IntersectionObserver:"mutation"===e?t:window.ResizeObserver}(e);return new n(t,i)}function r(e,t,i,a){e&&(t&&e.unobserve(t),i&&(e instanceof MutationObserver?e.observe(i,a):e.observe(i)))}},67306(e,t,i){var a=i(77843);i.d(t,["u",0,e=>(0,a.aK)(t=>{function i(i){const{form:a}=t.elementInternals;i.defaultPrevented||t.disabled||e?.disabled?.()||!a||"button"===t.type||("submit"!==t.type?a.reset():a.requestSubmit())}t.listen("luminaFormAssociatedCallback",({detail:[e]})=>{e?t.el.addEventListener("click",i):t.el.removeEventListener("click",i)})})])},8752(e,t,i){var a=i(77843),n=i(42054),r=i(58933);const l=({children:e,disabled:t})=>r.qy`<div class=${(0,n.CP)("interaction-container")} .inert=${t}>${e}</div>`,s=(0,a.aK)((e,t)=>(t.onUpdated(()=>function(e){if(e.disabled)return e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),void function(e){var t;e.el.click=c,(t=e.el).addEventListener("pointerdown",o,h),d.forEach(e=>t.addEventListener(e,v,h))}(e);(function(e){var t;delete e.el.click,(t=e.el).removeEventListener("pointerdown",o,h),d.forEach(e=>t.removeEventListener(e,v,h))})(e),e.el.removeAttribute("aria-disabled")}(e)),l));function c(){const{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function o(e){e.target.disabled&&e.preventDefault()}const d=["mousedown","mouseup","click"];function v(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}const h={capture:!0};i.d(t,["u",0,s])},88582(e,t,i){var a=i(77843),n=i(28874),r=i(31257);i.d(t,["u",0,()=>(0,a.aK)((e,t)=>{let i;function a(){i?.abort()}return t.onLoad(()=>{e.listen("focus",()=>{i=new AbortController,e.el.addEventListener("focusout",a,{signal:i.signal})})}),t.onDisconnected(()=>{e.el.removeEventListener("focusout",a)}),async(t,l)=>{if(e.disabled)return;const s=function(e){if(e)return function(e){return"target"in e&&("includeContainer"in e||"strategy"in e)}(e)?e:{target:e}}(t());if(!s)return;const{target:c,includeContainer:o,strategy:d}=s,v=(0,r.i)(e.el),h=v.activeElement;return await(0,n.c)(e),h!==v.activeElement||i&&!i?.signal.aborted?void 0:(e.el.removeEventListener("focus",a),(0,r.k)(c,o,d,e.el,l))}})])},45935(e,t,i){var a=i(77843),n=i(57805);const r=(0,a.yr)(n.g);i.d(t,["u",0,r])},68098(e,t,i){var a=i(57805),n=i(58933),r=i(42054),l=i(77843),s=i(44528),c=i(5678);const o="flip-rtl",d="svg",v={},h={},u={s:16,m:24,l:32};function p({icon:e,scale:t}){const i=u[t],a=function(e){const t=!isNaN(Number(e.charAt(0))),i=e.split("-");if(i.length>0){const t=/[a-z]/i;e=i.map((e,i)=>e.replace(t,function(e,t){return 0===i&&0===t?e:e.toUpperCase()})).join("")}return t?`i${e}`:e}(e),n="F"===a.charAt(a.length-1);return`${n?a.substring(0,a.length-1):a}${i}${n?"F":""}`}function m(e){return v[e]}const f=n.AH`:host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}`;class g extends r.WF{constructor(){super(...arguments),this.direction=(0,l.jH)(),this.visible=!1,this.flipRtl=!1,this.preload=!1,this.scale="m"}static{this.properties={pathData:[16,{},{state:!0}],visible:[16,{},{state:!0}],flipRtl:[7,{},{reflect:!0,type:Boolean}],icon:[3,{},{reflect:!0}],preload:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],textLabel:1}}static{this.styles=f}connectedCallback(){if(super.connectedCallback(),this.preload)return this.visible=!0,void this.loadIconPathData();this.visible||this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}willUpdate(e){(e.has("icon")&&(this.hasUpdated||void 0!==this.icon)||e.has("scale")&&(this.hasUpdated||"m"!==this.scale))&&this.loadIconPathData()}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0}async loadIconPathData(){const{icon:e,scale:t,visible:i}=this;if(n.S$||!e||!i)return;const r={icon:e,scale:t},l=m(p(r))||await async function(e){const t=p(e),i=m(t);if(i)return i;h[t]||(h[t]=fetch((0,a.g)(`./assets/icon/${t}.json`)).then(e=>e.json()).catch(()=>(a.l.error(`${e.icon} (${e.scale}) icon failed to load`),"")));const n=await h[t];return v[t]=n,n}(r);e===this.icon&&(this.pathData=l)}waitUntilVisible(e){this.intersectionObserver=(0,c.c)("intersection",t=>{t.forEach(t=>{t.isIntersecting&&(this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,e())})},{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):e()}render(){const{flipRtl:e,pathData:t,scale:i,textLabel:a}=this,l=this.direction,c=u[i],v=!!a,h=Array.isArray(t)?t:[t??""];return this.el.ariaHidden=(0,s.t)(!v),this.el.ariaLabel=v?a:null,this.el.role=v?"img":null,n.qy`<svg aria-hidden=true class=${(0,r.CP)({[o]:"rtl"===l&&e,[d]:!0})} fill=currentColor height=100% viewBox=${`0 0 ${c} ${c}`} width=100% xmlns=http://www.w3.org/2000/svg>${h.map(e=>"string"==typeof e?n.JW`<path d=${e??n.s6} />`:n.JW`<path d=${e.d??n.s6} opacity=${("opacity"in e?e.opacity:1)??n.s6} />`)}</svg>`}}(0,a.c)("calcite-icon",g)},22868(e,t,i){var a=i(57805),n=i(58933),r=i(42054),l=i(30240),s=i(45935);const c="ring--progress",o="ring",d="ring--track",v=n.AH`:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-relative-md);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-relative-xl);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`;class h extends r.WF{constructor(){super(...arguments),this.messages=(0,s.u)({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}static{this.properties={complete:[7,{},{reflect:!0,type:Boolean}],inline:[7,{},{reflect:!0,type:Boolean}],label:1,scale:[3,{},{reflect:!0}],text:1,type:[3,{},{reflect:!0}],value:[9,{},{type:Number}]}}static{this.styles=v}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(e){e.has("value")&&(this.hasUpdated||0!==this.value)&&this.valueChangeHandler(),(e.has("type")&&(this.hasUpdated||"indeterminate"!==this.type)||e.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&100===this.value}formatValue(){return"determinate-value"!==this.type?`${this.value}`:this.formatter.format(this.value/100)}getSize(e){return{s:32,m:64,l:96}[e]}getInlineSize(e){return{s:12,m:16,l:24}[e]}updateFormatter(){"determinate-value"===this.type&&this.formatter?.resolvedOptions().locale!==this.messages._lang&&(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){const{el:e,inline:t,label:i,text:a,type:s,value:c}=this,o=e.id||(0,l.g)(),d="indeterminate"!==s,v=Math.floor(c);return this.el.ariaLabel=i,this.el.ariaValueMax=d?"100":null,this.el.ariaValueMin=d?"0":null,this.el.ariaValueNow=d?v.toString():null,(0,r.Bq)(this.el,"id",o),this.el.role="progressbar",n.qy`<div class=${(0,r.CP)("rings")}>${this.renderRing("track")}${this.renderRing("progress")}${!t&&d&&n.qy`<div class=${(0,r.CP)("percentage")}>${this.formatValue()}</div>`||""}</div>${!t&&a&&n.qy`<div class=${(0,r.CP)("text")}>${a}</div>`||""}`}renderRing(e){const{inline:t,scale:i,value:a}=this,l=t?this.getInlineSize(i):this.getSize(i),s=.45*l;let v;if("progress"===e){const e=2*s*Math.PI,t=(this.type.startsWith("determinate")?a:24)/100*e;v={"stroke-dasharray":`${t} ${e-t}`}}return n.qy`<svg aria-hidden=true class=${(0,r.CP)({[o]:!0,[d]:"track"===e,[c]:"progress"===e})} style=${(0,r.zl)(v)} viewBox=${`0 0 ${l} ${l}`}>${n.JW`<circle cx=${l/2} cy=${l/2} r=${s??n.s6} />`}</svg>`}}(0,a.c)("calcite-loader",h)}}]);
|