{"version":3,"sources":["webpack:///./node_modules/@arcgis/core/views/2d/engine/webgl/enums.js","webpack:///./node_modules/@arcgis/core/views/2d/engine/webgl/SymbolProperties.js","webpack:///./node_modules/@arcgis/core/views/2d/engine/webgl/Utils.js","webpack:///./node_modules/@arcgis/core/views/2d/engine/webgl/number.js","webpack:///./node_modules/@arcgis/core/views/webgl/Texture.js","webpack:///./node_modules/@arcgis/core/views/2d/engine/webgl/color.js","webpack:///./node_modules/@arcgis/core/views/webgl/checkWebGLError.js","webpack:///./node_modules/@arcgis/core/views/webgl/capabilities/isWebGL2Context.js"],"names":["E","T","I","L","A","_","O","S","FILL","LINE","MARKER","TEXT","LABEL","SUCCEEDED","FAILED_OUT_OF_MEMORY","NONE","MAP","LABEL_ALPHA","HITTEST","HIGHLIGHT","CLIP","DEBUG","NUM_DRAW_PHASES","SIZE","COLOR","OPACITY","ROTATION","SIZE_MINMAX_VALUE","SIZE_SCALE_STOPS","SIZE_FIELD_STOPS","SIZE_UNIT_VALUE","MINMAX_TARGETS_OUTLINE","SCALE_TARGETS_OUTLINE","FIELD_TARGETS_OUTLINE","UNIT_TARGETS_OUTLINE","SPRITE","GLYPH","DEFAULT","SIMPLE","DOT_DENSITY","OUTLINE_FILL","OUTLINE_FILL_SIMPLE","HEATMAP","PIE_CHART","h","constructor","this","color","haloColor","haloSize","size","angle","offsetX","offsetY","hAnchor","vAnchor","acquire","o","s","t","i","l","r","e","c","release","pool","getLogger","N","name","strideInBytes","M","D","U","v","R","B","C","b","F","x","z","P","j","G","$","k","V","Y","H","q","X","K","Uint32Array","Math","floor","Uint8Array","W","J","Q","ee","a","BUTT","ROUND","SQUARE","error","te","MITER","BEVEL","re","u","ae","n","stride","data","vertexCount","m","vertexFrom","indexCount","indexFrom","se","STATIC_DRAW","ie","push","buffers","ue","BYTE","UNSIGNED_BYTE","SHORT","UNSIGNED_SHORT","FLOAT","INT","UNSIGNED_INT","le","y","UNSIGNED_SHORT_4_4_4_4","me","Uint16Array","Float32Array","pe","Map","set","location","de","length","ye","ge","has","map","count","type","normalized","forEach","fe","strides","bufferLayouts","attributes","get","he","Ie","Re","path","Te","url","imageData","Ee","contentType","Se","startsWith","we","includes","Le","Ae","Ne","toLowerCase","Me","cim","dashTemplate","style","De","_e","Be","Ue","maxVVSize","width","ve","charCodeAt","trim","test","markerPlacement","buffer","w","target","TEXTURE_2D","samplingMode","LINEAR","wrapMode","REPEAT","flipped","hasMipmap","isOpaque","unpackAlignment","preMultiplyAlpha","isImmutable","_context","_glName","_samplingModeDirty","_wrapModeDirty","_wasImmutablyAllocated","instanceCounter","increment","Texture","_descriptor","WEBGL2","Error","TEXTURE_CUBE_MAP","_setDataCubeMap","setData","dispose","gl","unbindTexture","deleteTexture","decrement","resize","height","TEXTURE_CUBE_MAP_POSITIVE_X","TEXTURE_CUBE_MAP_NEGATIVE_Z","_setData","createTexture","depth","bindTexture","TEXTURE_UNIT_FOR_UPDATES","setActiveTexture","_validateTexture","_configurePixelStorage","pixelFormat","p","internalFormat","_deriveInternalFormat","dataType","f","HTMLVideoElement","videoWidth","videoHeight","_texStorage","_texImage","generateMipmap","DEPTH24_STENCIL8","DEPTH_STENCIL","levels","min","d","texParameteri","TEXTURE_MAX_LEVEL","g","_forEachMipmapLevel","_compressedTexImage","_applySamplingMode","_applyWrapMode","_applyAnisotropicFilteringParameters","updateData","console","pixelStorei","UNPACK_SKIP_ROWS","texSubImage2D","compressedTexSubImage2D","updateData3D","warn","compressedTexSubImage3D","texSubImage3D","LINEAR_MIPMAP_NEAREST","NEAREST","NEAREST_MIPMAP_NEAREST","setSamplingMode","setWrapMode","applyChanges","WEBGL1","RGBA","RGBA32F","RGB","RGB32F","RGBA8","RGB8","UNPACK_ALIGNMENT","UNPACK_FLIP_Y_WEBGL","UNPACK_PREMULTIPLY_ALPHA_WEBGL","texStorage3D","texStorage2D","texImage3D","texImage2D","compressedTexImage3D","compressedTexImage2D","TEXTURE_3D","max","CLAMP_TO_EDGE","LINEAR_MIPMAP_LINEAR","NEAREST_MIPMAP_LINEAR","TEXTURE_MAG_FILTER","TEXTURE_MIN_FILTER","TEXTURE_WRAP_S","TEXTURE_WRAP_T","capabilities","textureFilterAnisotropic","texParameterf","TEXTURE_MAX_ANISOTROPY","maxAnisotropy","TEXTURE_2D_ARRAY","round","log","LN2","Array","isArray","getError","INVALID_ENUM","INVALID_VALUE","INVALID_OPERATION","INVALID_FRAMEBUFFER_OPERATION","OUT_OF_MEMORY","CONTEXT_LOST_WEBGL","stack","message","window","WebGL2RenderingContext"],"mappings":"0FAIA,IAAIA,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAJlB,8OAIqB,SAASP,GAAGA,EAAEA,EAAEQ,KAAK,GAAG,OAAOR,EAAEA,EAAES,KAAK,GAAG,OAAOT,EAAEA,EAAEU,OAAO,GAAG,SAASV,EAAEA,EAAEW,KAAK,GAAG,OAAOX,EAAEA,EAAEY,MAAM,GAAG,QAAzG,CAAkHZ,IAAIA,EAAE,KAAK,SAASA,GAAGA,EAAEA,EAAEa,UAAU,GAAG,YAAYb,EAAEA,EAAEc,qBAAqB,GAAG,uBAArE,CAA6Fb,IAAIA,EAAE,KAAK,SAASD,GAAGA,EAAEA,EAAEe,KAAK,GAAG,OAAOf,EAAEA,EAAEgB,IAAI,GAAG,MAAMhB,EAAEA,EAAEY,MAAM,GAAG,QAAQZ,EAAEA,EAAEiB,YAAY,GAAG,cAAcjB,EAAEA,EAAEkB,QAAQ,GAAG,UAAUlB,EAAEA,EAAEmB,UAAU,IAAI,YAAYnB,EAAEA,EAAEoB,KAAK,IAAI,OAAOpB,EAAEA,EAAEqB,MAAM,IAAI,QAAQrB,EAAEA,EAAEsB,gBAAgB,GAAG,kBAA9N,CAAiPpB,IAAIA,EAAE,KAAK,SAASF,GAAGA,EAAEA,EAAEuB,KAAK,GAAG,OAAOvB,EAAEA,EAAEwB,MAAM,GAAG,QAAQxB,EAAEA,EAAEyB,QAAQ,GAAG,UAAUzB,EAAEA,E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AAEvD,EAAE,GAAG,EAAEuD,EAAEvD,EAAE,GAAG,OAAOuD,EAAEvD,EAAE,GAAG,GAAG,MAAMK,EAAEgD,EAAEgJ,EAAElM,EAAEkB,EAAEd,EAAEqC,EAAEtC,GAAGJ,EAAEqD,EAAEvD,EAAE,GAAGqD,EAAE/C,EAAE,IAAIiD,EAAEvD,EAAE,GAAGG,EAAEG,EAAE,IAAIiD,EAAEvD,EAAE,GAAGO,EAAED,EAAE,IAAIiD,EAAEvD,EAAE,GAAGM,I,iCCJjvB,yHAI0G,MAAMN,EAJhH,MAIkHK,EAAEK,UAAU,oCAA6tB,MAAM6C,IAAImC,YAAI,8BAA8B,SAAS9C,IAAI,OAAOW,EAAE,SAAShD,IAAI,OAAOgD,EAAE,SAASF,EAAEhD,GAAG,GAAGuC,IAAI,CAAC,MAAMW,EAAElD,EAAE0P,WAAW,GAAGxM,EAAE,CAAC,MAAMX,EAAx0B,SAAWtC,EAAED,GAAG,OAAOA,GAAG,KAAKC,EAAE0P,aAAa,MAAM,qFAAqF,KAAK1P,EAAE2P,cAAc,MAAM,qDAAqD,KAAK3P,EAAE4P,kBAAkB,MAAM,iFAAiF,KAAK5P,EAAE6P,8BAA8B,MAAM,0IAA0I,KAAK7P,EAAE8P,cAAc,MAAM,mEAAmE,KAAK9P,EAAE+P,mBAAmB,MAAM,8BAA8B,QAAQ,MAAM,iBAAkKnQ,CAAEG,EAAEkD,GAAGhD,GAAG,IAAIsJ,OAAOyG,MAAMtQ,EAAEgD,MAAM,IAAI1C,IAAE,cAAc,sBAAsB,CAACiQ,QAAQ3N,EAAE0N,MAAM/P,S,iCCA1kC,SAASgD,EAAEA,GAAG,OAAOiN,OAAOC,wBAAwBlN,aAAaiN,OAAOC,uBAJxE","file":"5.66ee6cc4e1df5318b579.js","sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.25/esri/copyright.txt for details.\n*/\nvar E,T,I,L,A,_,O,S;!function(E){E[E.FILL=0]=\"FILL\",E[E.LINE=1]=\"LINE\",E[E.MARKER=2]=\"MARKER\",E[E.TEXT=3]=\"TEXT\",E[E.LABEL=4]=\"LABEL\"}(E||(E={})),function(E){E[E.SUCCEEDED=0]=\"SUCCEEDED\",E[E.FAILED_OUT_OF_MEMORY=1]=\"FAILED_OUT_OF_MEMORY\"}(T||(T={})),function(E){E[E.NONE=0]=\"NONE\",E[E.MAP=1]=\"MAP\",E[E.LABEL=2]=\"LABEL\",E[E.LABEL_ALPHA=4]=\"LABEL_ALPHA\",E[E.HITTEST=8]=\"HITTEST\",E[E.HIGHLIGHT=16]=\"HIGHLIGHT\",E[E.CLIP=32]=\"CLIP\",E[E.DEBUG=64]=\"DEBUG\",E[E.NUM_DRAW_PHASES=9]=\"NUM_DRAW_PHASES\"}(I||(I={})),function(E){E[E.SIZE=0]=\"SIZE\",E[E.COLOR=1]=\"COLOR\",E[E.OPACITY=2]=\"OPACITY\",E[E.ROTATION=3]=\"ROTATION\"}(L||(L={})),function(E){E[E.NONE=0]=\"NONE\",E[E.OPACITY=1]=\"OPACITY\",E[E.COLOR=2]=\"COLOR\",E[E.ROTATION=4]=\"ROTATION\",E[E.SIZE_MINMAX_VALUE=8]=\"SIZE_MINMAX_VALUE\",E[E.SIZE_SCALE_STOPS=16]=\"SIZE_SCALE_STOPS\",E[E.SIZE_FIELD_STOPS=32]=\"SIZE_FIELD_STOPS\",E[E.SIZE_UNIT_VALUE=64]=\"SIZE_UNIT_VALUE\"}(A||(A={})),function(E){E[E.MINMAX_TARGETS_OUTLINE=128]=\"MINMAX_TARGETS_OUTLINE\",E[E.SCALE_TARGETS_OUTLINE=256]=\"SCALE_TARGETS_OUTLINE\",E[E.FIELD_TARGETS_OUTLINE=512]=\"FIELD_TARGETS_OUTLINE\",E[E.UNIT_TARGETS_OUTLINE=1024]=\"UNIT_TARGETS_OUTLINE\"}(_||(_={})),function(E){E[E.SPRITE=0]=\"SPRITE\",E[E.GLYPH=1]=\"GLYPH\"}(O||(O={})),function(E){E[E.DEFAULT=0]=\"DEFAULT\",E[E.SIMPLE=1]=\"SIMPLE\",E[E.DOT_DENSITY=2]=\"DOT_DENSITY\",E[E.OUTLINE_FILL=3]=\"OUTLINE_FILL\",E[E.OUTLINE_FILL_SIMPLE=4]=\"OUTLINE_FILL_SIMPLE\",E[E.HEATMAP=5]=\"HEATMAP\",E[E.PIE_CHART=6]=\"PIE_CHART\"}(S||(S={}));export{O as MosaicType,L as VVType,I as WGLDrawPhase,T as WGLGeometryTransactionStatus,E as WGLGeometryType,S as WGLSymbologyType,A as WGLVVFlag,_ as WGLVVTarget};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.25/esri/copyright.txt for details.\n*/\nimport o from\"../../../../core/ObjectPool.js\";class h{constructor(){this.color=[0,0,0,0],this.haloColor=[0,0,0,0],this.haloSize=0,this.size=12,this.angle=0,this.offsetX=0,this.offsetY=0,this.hAnchor=0,this.vAnchor=0}acquire(o,h,s,t,i,l,r,e,c){this.color=o,this.haloColor=h,this.haloSize=s,this.size=t,this.angle=i,this.offsetX=l,this.offsetY=r,this.hAnchor=e,this.vAnchor=c}release(){this.color[0]=this.color[1]=this.color[2]=this.color[3]=0,this.haloColor[0]=this.haloColor[1]=this.haloColor[2]=this.haloColor[3]=0,this.haloSize=0,this.size=0,this.angle=0,this.offsetX=0,this.offsetY=0,this.hAnchor=0,this.vAnchor=0}}h.pool=new o(h);export{h as TextProperties};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.25/esri/copyright.txt for details.\n*/\nimport e from\"../../../../core/Error.js\";import t from\"../../../../core/Logger.js\";import{isPowerOfTwo as r}from\"../../../../core/mathUtils.js\";import{pt2px as n}from\"../../../../core/screenUtils.js\";import{CapType as a,JoinType as s}from\"../../../../symbols/cim/enums.js\";import{copyAndPremultiply as i}from\"./color.js\";import{WGLGeometryType as o,WGLSymbologyType as c,VVType as u}from\"./enums.js\";import{TextProperties as l}from\"./SymbolProperties.js\";import{Usage as m,TextureSamplingMode as f,TextureType as p,PixelFormat as d,PixelType as y,TextureWrapMode as g,DataType as h}from\"../../../webgl/enums.js\";import{Texture as I}from\"../../../webgl/Texture.js\";import{VertexElementDescriptor as T}from\"../../../webgl/VertexElementDescriptor.js\";const E=t.getLogger(\"esri.views.2d.engine.webgl.Utils\"),S=\"geometry\",w=\"per_instance\",L=\"per_instance_vv\",A=[{name:S,strideInBytes:36}],N=[{name:S,strideInBytes:12}],M=[{name:S,strideInBytes:36}],D=[{name:S,strideInBytes:24}],_=[{name:S,strideInBytes:12}],U=[{name:S,strideInBytes:40}],v=[{name:S,strideInBytes:36}],R=[{name:S,strideInBytes:36}];function B(e){const t={};for(const r of e)t[r.name]=r.strideInBytes;return t}const C=B(A),b=B(N),O=B(M),F=B(D),x=B(_),z=B(U),P=B(v),j=B(R);function G(e,t){switch(e){case o.MARKER:return t===c.HEATMAP?b:C;case o.FILL:switch(t){case c.DOT_DENSITY:return x;case c.SIMPLE:case c.OUTLINE_FILL_SIMPLE:return F;default:return O}case o.LINE:return z;case o.TEXT:return P;case o.LABEL:return j}}const $=[S],k=[S],V=[S],Y=[S],H=[S];function q(e){switch(e){case o.MARKER:return $;case o.FILL:return k;case o.LINE:return V;case o.TEXT:return Y;case o.LABEL:return H}}function X(e){switch(e%4){case 0:case 2:return 4;case 1:case 3:return 1}}function K(e,t){switch(t%4){case 0:case 2:return new Uint32Array(Math.floor(e*t/4));case 1:case 3:return new Uint8Array(e*t)}}function W(e,t){switch(t%4){case 0:case 2:return new Uint32Array(e);case 1:case 3:return new Uint8Array(e)}}function Z(e){return l.pool.acquire(e.color?i(e.color):[255,255,255,255],e.haloColor?i(e.haloColor):[255,255,255,255],n(e.haloSize),n(e.font.size),e.angle*Math.PI/180,e.xoffset/e.font.size,e.yoffset/e.font.size,\"left\"===e.horizontalAlignment?0:\"right\"===e.horizontalAlignment?1:.5,\"top\"===e.verticalAlignment?0:\"bottom\"===e.verticalAlignment?1:.5)}function J(e){return null!=e}function Q(e){return\"number\"==typeof e}function ee(t){switch(t){case\"butt\":return a.BUTT;case\"round\":return a.ROUND;case\"square\":return a.SQUARE;default:return E.error(new e(\"mapview-invalid-type\",`Cap type ${t} is not a valid option. Defaulting to round`)),a.ROUND}}function te(t){switch(t){case\"miter\":return s.MITER;case\"bevel\":return s.BEVEL;case\"round\":return s.ROUND;default:return E.error(new e(\"mapview-invalid-type\",`Join type ${t} is not a valid option. Defaulting to round`)),s.ROUND}}function re(e){switch(e){case\"opacity\":return u.OPACITY;case\"color\":return u.COLOR;case\"rotation\":return u.ROTATION;case\"size\":return u.SIZE;default:return E.error(`Cannot interpret unknown vv: ${e}`),null}}function ne(e){const{transform:t,hasZ:r,hasM:n}=e;return{transform:t,hasZ:r,hasM:n}}function ae(e,t,r,n,a,s,i){for(const c in s){const t=s[c].stride,n=X(t),i=s[c].data,o=r[c].data,u=t*a.vertexCount/n,l=t*e/n,m=t*a.vertexFrom/n;for(let e=0;e{const t=new T(e.name,e.count,e.type,a,0,e.normalized||!1);return a+=e.count*ue(e.type),t})),t[r].forEach((e=>e.stride=a))}return t}const pe=e=>{const t=new Map;for(const r in e)for(const n of e[r])t.set(n.name,n.location);return t},de=e=>{const t={};for(const r in e){const n=e[r];t[r]=n.length?n[0].stride:0}return t},ye=new Map,ge=(e,t)=>{if(!ye.has(e)){const r=fe(t),n={strides:de(r),bufferLayouts:r,attributes:pe(t)};ye.set(e,n)}return ye.get(e)};function he(e){e(o.FILL),e(o.LINE),e(o.MARKER),e(o.TEXT),e(o.LABEL)}const Ie=e=>\"path\"in e&&Re(e.path),Te=e=>\"url\"in e&&e.url||\"imageData\"in e&&e.imageData,Ee=e=>\"imageData\"in e&&e.imageData&&\"contentType\"in e&&e.contentType?`data:${e.contentType};base64,${e.imageData}`:\"url\"in e?e.url:null,Se=e=>e.startsWith(\"data:image/gif\"),we=e=>\"url\"in e&&e.url&&(e.url.includes(\".gif\")||Se(e.url))||\"contentType\"in e&&\"image/gif\"===e.contentType||\"imageData\"in e&&Se(e.imageData),Le=e=>e.startsWith(\"data:image/png\"),Ae=e=>\"url\"in e&&e.url&&(e.url.includes(\".png\")||Le(e.url))||\"contentType\"in e&&\"image/png\"===e.contentType||\"imageData\"in e&&Le(e.imageData),Ne=e=>e.type&&e.type.toLowerCase().includes(\"3d\");function Me(e){switch(e.type){case\"line\":{const t=e;return\"CIMSolidStroke\"===t.cim.type&&!t.dashTemplate}case\"fill\":return\"CIMSolidFill\"===e.cim.type;case\"esriSFS\":return\"esriSFSSolid\"===e.style||\"esriSFSNull\"===e.style;case\"esriSLS\":return\"esriSLSSolid\"===e.style||\"esriSLSNull\"===e.style;default:return!1}}const De=e=>e.includes(\"data:image/svg+xml\");function _e(e){switch(\"cim\"in e?e.cim.type:e.type){case\"esriSMS\":case\"esriPMS\":case\"CIMPointSymbol\":return!1;case\"CIMVectorMarker\":case\"CIMCharacterMarker\":case\"CIMPictureMarker\":return Be(e);default:return!0}}function Ue(e){const t=\"maxVVSize\"in e&&e.maxVVSize,r=\"width\"in e&&e.width||\"size\"in e&&e.size||0;return t||r}function ve(e){const t=[];for(let r=0;r!!e&&(e=e.trim(),!!(/^[mzlhvcsqta]\\s*[-+.0-9][^mlhvzcsqta]+/i.test(e)&&/[\\dz]$/i.test(e)&&e.length>4)),Be=e=>\"fill\"===e.type&&\"CIMMarkerPlacementInsidePolygon\"===e?.cim?.markerPlacement?.type;export{O as C_FILL_STRIDE_SPEC,x as C_FILL_STRIDE_SPEC_DD,F as C_FILL_STRIDE_SPEC_SIMPLE,M as C_FILL_VERTEX_DEF,_ as C_FILL_VERTEX_DEF_DD,D as C_FILL_VERTEX_DEF_SIMPLE,b as C_HEATMAP_STRIDE_SPEC,N as C_HEATMAP_VERTEX_DEF,C as C_ICON_STRIDE_SPEC,A as C_ICON_VERTEX_DEF,j as C_LABEL_STRIDE_SPEC,R as C_LABEL_VERTEX_DEF,z as C_LINE_STRIDE_SPEC,U as C_LINE_VERTEX_DEF,P as C_TEXT_STRIDE_SPEC,v as C_TEXT_VERTEX_DEF,S as C_VBO_GEOMETRY,se as C_VBO_INFO,w as C_VBO_PERINSTANCE,L as C_VBO_PERINSTANCE_VV,K as allocateTypedArrayBuffer,W as allocateTypedArrayBufferwithData,ve as charCodes,ae as copyMeshData,ie as createGeometryData,ge as createProgramDescriptor,oe as createTextureFromTexelData,he as forEachGeometryType,ce as geometryToMappedGeometry,ue as getBytes,ee as getCapType,te as getJoinType,q as getNamedBuffers,Ue as getPMSResourceSize,me as getPixelArrayCtor,le as getPixelBytes,G as getStrides,Z as getTextProperties,ne as getTransformParams,Ee as getUrl,re as getVVType,Ne as is3D,J as isDefined,we as isGIF,Se as isGIFDataUri,Te as isImageResource,Be as isMarkerPlacementInsidePolygon,Q as isNumber,Ae as isPNG,Le as isPNGDataUri,De as isSVGImage,Ie as isSVGResource,Me as isSimple,Re as isValidSVG,_e as shouldRepeat,X as strideToPackingFactor};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.25/esri/copyright.txt for details.\n*/\nconst n=new Float32Array(1),r=new Uint32Array(n.buffer);function t(n,r,t){return Math.round(Math.max(Math.min(n,t),r))}function u(n){return t(n,-128,127)}function e(n){return t(n,-32768,32767)}function o(n){return t(n,-2147483648,2147483647)}function f(n){return t(n,0,255)}function i(n){return t(n,0,65535)}function c(n){return t(n,0,4294967295)}function a(t){return n[0]=t,r[0]}function h(t){return r[0]=t,n[0]}function M(n){return[255&n,(65280&n)>>>8,(16711680&n)>>>16,(4278190080&n)>>>24]}function m(n,r){return 15&n|(15&r)<<4}function w(n,r){return 65535&n|r<<16}function x(n,r,t,u){return 255&n|(255&r)<<8|(255&t)<<16|u<<24}function y(n,r,t){return 255&n|(255&r)<<8|t<<16}function A(n){return 0|n}export{e as i16,w as i1616to32,o as i32,u as i8,y as i8816to32,x as i8888to32,A as numTo32,h as toFloat32,a as toUint32,i as u16,c as u32,M as u32to4Xu8,m as u4u4to8,f as u8};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.25/esri/copyright.txt for details.\n*/\nimport\"../../core/has.js\";import{isPowerOfTwo as t}from\"../../core/mathUtils.js\";import{isSome as e,unwrap as i}from\"../../core/maybe.js\";import{checkWebGLError as r}from\"./checkWebGLError.js\";import{ContextType as o}from\"./context-util.js\";import{TextureType as s,TextureSamplingMode as a,TextureWrapMode as n,ResourceType as l,PixelType as h,PixelFormat as p,SizedPixelFormat as _,CompressedTextureFormat as m}from\"./enums.js\";import d from\"./capabilities/isWebGL2Context.js\";const u={target:s.TEXTURE_2D,samplingMode:a.LINEAR,wrapMode:n.REPEAT,flipped:!1,hasMipmap:!1,isOpaque:!1,unpackAlignment:4,preMultiplyAlpha:!1,isImmutable:!1},c=4;class E{constructor(t,e,i=null){this._context=t,this.type=\"texture\",this._glName=null,this._samplingModeDirty=!1,this._wrapModeDirty=!1,this._wasImmutablyAllocated=!1,t.instanceCounter.increment(l.Texture,this),this._descriptor={...u,...e};for(const r in u){void 0===this._descriptor[r]&&(this._descriptor[r]=u[r])}if(t.type!==o.WEBGL2&&(this._descriptor.isImmutable&&(this._descriptor.isImmutable=!1),A(this._descriptor.target)))throw new Error(\"3D and array textures are not supported in WebGL1\");this._descriptor.target===s.TEXTURE_CUBE_MAP?this._setDataCubeMap(i):this.setData(i)}get glName(){return this._glName}get descriptor(){return this._descriptor}get isDirty(){return this._samplingModeDirty||this._wrapModeDirty}dispose(){this._context.gl&&this._glName&&(this._context.unbindTexture(this),this._context.gl.deleteTexture(this._glName),this._glName=null,this._context.instanceCounter.decrement(l.Texture,this))}release(){this.dispose()}resize(t,e){const i=this._descriptor;if(i.width!==t||i.height!==e){if(this._wasImmutablyAllocated)throw new Error(\"Immutable textures can't be resized!\");i.width=t,i.height=e,this._descriptor.target===s.TEXTURE_CUBE_MAP?this._setDataCubeMap(null):this.setData(null)}}_setDataCubeMap(t=null){for(let e=s.TEXTURE_CUBE_MAP_POSITIVE_X;e<=s.TEXTURE_CUBE_MAP_NEGATIVE_Z;e++)this._setData(t,e)}setData(t){this._setData(t)}_setData(t,i){if(!this._context||!this._context.gl)return;const o=this._context.gl;this._glName||(this._glName=o.createTexture()),void 0===t&&(t=null);const s=this._descriptor,a=i??s.target,n=A(a);null===t&&(s.width=s.width||c,s.height=s.height||c,n&&(s.depth=s.depth??1));const l=this._context.bindTexture(this,E.TEXTURE_UNIT_FOR_UPDATES);this._context.setActiveTexture(E.TEXTURE_UNIT_FOR_UPDATES),E._validateTexture(this._context,s),this._configurePixelStorage(),r(o);const h=s.pixelFormat;let p=s.internalFormat??this._deriveInternalFormat(h,s.dataType);if(f(t)){let e=t.width,i=t.height;const l=1;t instanceof HTMLVideoElement&&(e=t.videoWidth,i=t.videoHeight),s.width&&s.height,n&&s.depth,s.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(a,p,s.hasMipmap,e,i,l),this._texImage(a,0,p,e,i,l,t),r(o),s.hasMipmap&&this.generateMipmap(),void 0===s.width&&(s.width=e),void 0===s.height&&(s.height=i),n&&void 0===s.depth&&(s.depth=l)}else{const{width:i,height:l,depth:h}=s;if(null==i||null==l)throw new Error(\"Width and height must be specified!\");if(n&&null==h)throw new Error(\"Depth must be specified!\");if(s.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(a,p,s.hasMipmap,i,l,h),o.DEPTH24_STENCIL8&&p===o.DEPTH_STENCIL&&(p=o.DEPTH24_STENCIL8),x(t)){const e=t.levels,r=w(a,i,l,h),n=Math.min(r-1,e.length-1);d(o)?o.texParameteri(s.target,o.TEXTURE_MAX_LEVEL,n):s.hasMipmap=s.hasMipmap&&r===e.length;const _=p;if(!g(_))throw new Error(\"Attempting to use compressed data with an umcompressed format!\");this._forEachMipmapLevel(((t,i,r,o)=>{const s=e[Math.min(t,e.length-1)];this._compressedTexImage(a,t,_,i,r,o,s)}),n)}else e(t)?(this._texImage(a,0,p,i,l,h,t),r(o),s.hasMipmap&&this.generateMipmap()):this._forEachMipmapLevel(((t,e,i,s)=>{this._texImage(a,t,p,e,i,s,null),r(o)}))}E._applySamplingMode(o,this._descriptor),E._applyWrapMode(o,this._descriptor),E._applyAnisotropicFilteringParameters(this._context,this._descriptor),r(o),this._context.bindTexture(l,E.TEXTURE_UNIT_FOR_UPDATES)}updateData(t,e,i,r,o,s,a=0){s||console.error(\"An attempt to use uninitialized data!\"),this._glName||console.error(\"An attempt to update uninitialized texture!\");const n=this._context.gl,l=this._descriptor,{pixelFormat:h,dataType:p,target:_,isImmutable:m}=l,u=l.internalFormat??this._deriveInternalFormat(h,p);if(m&&!this._wasImmutablyAllocated)throw new Error(\"Cannot update immutable texture before allocation!\");const c=this._context.bindTexture(this,E.TEXTURE_UNIT_FOR_UPDATES,!0);if((e<0||i<0||r>l.width||o>l.height||e+r>l.width||i+o>l.height)&&console.error(\"An attempt to update out of bounds of the texture!\"),this._configurePixelStorage(),a){if(!d(n))return void console.error(\"Webgl2 must be enabled to use dataRowOffset!\");n.pixelStorei(n.UNPACK_SKIP_ROWS,a)}if(f(s)?d(n)?n.texSubImage2D(_,t,e,i,r,o,h,p,s):n.texSubImage2D(_,t,e,i,h,p,s):x(s)?n.compressedTexSubImage2D(_,t,e,i,r,o,u,s.levels[t]):n.texSubImage2D(_,t,e,i,r,o,h,p,s),a){if(!d(n))return void console.error(\"Webgl2 must be enabled to use dataRowOffset!\");n.pixelStorei(n.UNPACK_SKIP_ROWS,0)}this._context.bindTexture(c,E.TEXTURE_UNIT_FOR_UPDATES)}updateData3D(t,e,i,r,o,s,a,n){n||console.error(\"An attempt to use uninitialized data!\"),this._glName||console.error(\"An attempt to update uninitialized texture!\");const l=this._context.gl;if(!d(l))throw new Error(\"3D textures are not supported in WebGL1\");const h=this._descriptor,{pixelFormat:p,dataType:_,isImmutable:m,target:u}=h,c=h.internalFormat??this._deriveInternalFormat(p,_);if(m&&!this._wasImmutablyAllocated)throw new Error(\"Cannot update immutable texture before allocation!\");A(u)||console.warn(\"Attempting to set 3D texture data on a non-3D texture\");const T=this._context.bindTexture(this,E.TEXTURE_UNIT_FOR_UPDATES);if(this._context.setActiveTexture(E.TEXTURE_UNIT_FOR_UPDATES),(e<0||i<0||r<0||o>h.width||s>h.height||a>h.depth||e+o>h.width||i+s>h.height||r+a>h.depth)&&console.error(\"An attempt to update out of bounds of the texture!\"),this._configurePixelStorage(),x(n))n=n.levels[t],l.compressedTexSubImage3D(u,t,e,i,r,o,s,a,c,n);else{const h=n;l.texSubImage3D(u,t,e,i,r,o,s,a,p,_,h)}this._context.bindTexture(T,E.TEXTURE_UNIT_FOR_UPDATES)}generateMipmap(){const t=this._descriptor;if(!t.hasMipmap){if(this._wasImmutablyAllocated)throw new Error(\"Cannot add mipmaps to immutable texture after allocation\");t.hasMipmap=!0,this._samplingModeDirty=!0,E._validateTexture(this._context,t)}t.samplingMode===a.LINEAR?(this._samplingModeDirty=!0,t.samplingMode=a.LINEAR_MIPMAP_NEAREST):t.samplingMode===a.NEAREST&&(this._samplingModeDirty=!0,t.samplingMode=a.NEAREST_MIPMAP_NEAREST);const e=this._context.bindTexture(this,E.TEXTURE_UNIT_FOR_UPDATES);this._context.setActiveTexture(E.TEXTURE_UNIT_FOR_UPDATES);this._context.gl.generateMipmap(t.target),this._context.bindTexture(e,E.TEXTURE_UNIT_FOR_UPDATES)}setSamplingMode(t){t!==this._descriptor.samplingMode&&(this._descriptor.samplingMode=t,this._samplingModeDirty=!0)}setWrapMode(t){t!==this._descriptor.wrapMode&&(this._descriptor.wrapMode=t,E._validateTexture(this._context,this._descriptor),this._wrapModeDirty=!0)}applyChanges(){const t=this._context.gl,e=this._descriptor;this._samplingModeDirty&&(E._applySamplingMode(t,e),this._samplingModeDirty=!1),this._wrapModeDirty&&(E._applyWrapMode(t,e),this._wrapModeDirty=!1)}_deriveInternalFormat(t,e){if(this._context.type===o.WEBGL1)return t;switch(e){case h.FLOAT:switch(t){case p.RGBA:return _.RGBA32F;case p.RGB:return _.RGB32F;default:throw new Error(\"Unable to derive format\")}case h.UNSIGNED_BYTE:switch(t){case p.RGBA:return _.RGBA8;case p.RGB:return _.RGB8}default:return t}}_configurePixelStorage(){const t=this._context.gl,{unpackAlignment:e,flipped:i,preMultiplyAlpha:r}=this._descriptor;t.pixelStorei(t.UNPACK_ALIGNMENT,e),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,i?1:0),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r?1:0)}_texStorage(t,e,i,r,o,s){const a=this._context.gl;if(!d(a))throw new Error(\"Immutable textures are not supported in WebGL1\");if(!T(e))throw new Error(\"Immutable textures must have a sized internal format\");if(!this._descriptor.isImmutable)return;const n=i?w(t,r,o,s):1;if(A(t)){if(null==s)throw new Error(\"Missing depth dimension for 3D texture upload\");a.texStorage3D(t,n,e,r,o,s)}else a.texStorage2D(t,n,e,r,o);this._wasImmutablyAllocated=!0}_texImage(t,r,s,a,n,l,h){const p=this._context.gl;let _=null;const m=this._context.type===o.WEBGL2,d=A(t),{isImmutable:u,pixelFormat:c,dataType:E}=this._descriptor;if(m&&(_=p),m||!f(h))if(u){if(e(h)){const e=h;if(d){if(null==l)throw new Error(\"Missing depth dimension for 3D texture upload\");_.texSubImage3D(t,r,0,0,0,a,n,l,c,E,e)}else p.texSubImage2D(t,r,0,0,a,n,c,E,e)}}else{const e=i(h);if(d){if(null==l)throw new Error(\"Missing depth dimension for 3D texture upload\");_.texImage3D(t,r,s,a,n,l,0,c,E,e)}else p.texImage2D(t,r,s,a,n,0,c,E,e)}else p.texImage2D(t,0,s,c,E,h)}_compressedTexImage(t,i,r,s,a,n,l){const h=this._context.gl;let p=null;const _=A(t),m=this._descriptor.isImmutable;if(_){if(this._context.type!==o.WEBGL2)throw new Error(\"3D textures are not supported in WebGL1\");p=h}if(m){if(e(l))if(_){if(null==n)throw new Error(\"Missing depth dimension for 3D texture upload\");p.compressedTexSubImage3D(t,i,0,0,0,s,a,n,r,l)}else h.compressedTexSubImage2D(t,i,0,0,s,a,r,l)}else if(_){if(null==n)throw new Error(\"Missing depth dimension for 3D texture upload\");p.compressedTexImage3D(t,i,r,s,a,n,0,l)}else h.compressedTexImage2D(t,i,r,s,a,0,l)}_forEachMipmapLevel(t,e=1/0){let{width:i,height:r,depth:o,hasMipmap:a,target:n}=this._descriptor;const l=n===s.TEXTURE_3D;if(null==i||null==r||l&&null==o)throw new Error(\"Missing texture dimensions for mipmap calculation\");for(let s=0;t(s,i,r,o),a&&(1!==i||1!==r||l&&1!==o)&&!(s>=e);++s)i=Math.max(1,i>>1),r=Math.max(1,r>>1),l&&(o=Math.max(1,o>>1))}static _validateTexture(e,i){(null!=i.width&&i.width<0||null!=i.height&&i.height<0||null!=i.depth&&i.depth<0)&&console.error(\"Negative dimension parameters are not allowed!\");const r=d(e.gl),o=null!=i.width&&t(i.width)&&null!=i.height&&t(i.height);r||!i.isImmutable&&!A(i.target)||console.error(\"Immutable and 3D-like textures are not supported in WebGL1!\"),r||o||(\"number\"==typeof i.wrapMode?i.wrapMode!==n.CLAMP_TO_EDGE&&console.error(\"Non-power-of-two textures must have a wrap mode of CLAMP_TO_EDGE!\"):i.wrapMode.s===n.CLAMP_TO_EDGE&&i.wrapMode.t===n.CLAMP_TO_EDGE||console.error(\"Non-power-of-two textures must have a wrap mode of CLAMP_TO_EDGE!\"),i.hasMipmap&&console.error(\"Mipmapping requires power-of-two textures!\"))}static _applySamplingMode(t,e){let i=e.samplingMode,r=e.samplingMode;i===a.LINEAR_MIPMAP_NEAREST||i===a.LINEAR_MIPMAP_LINEAR?(i=a.LINEAR,e.hasMipmap||(r=a.LINEAR)):i!==a.NEAREST_MIPMAP_NEAREST&&i!==a.NEAREST_MIPMAP_LINEAR||(i=a.NEAREST,e.hasMipmap||(r=a.NEAREST)),t.texParameteri(e.target,t.TEXTURE_MAG_FILTER,i),t.texParameteri(e.target,t.TEXTURE_MIN_FILTER,r)}static _applyWrapMode(t,e){\"number\"==typeof e.wrapMode?(t.texParameteri(e.target,t.TEXTURE_WRAP_S,e.wrapMode),t.texParameteri(e.target,t.TEXTURE_WRAP_T,e.wrapMode)):(t.texParameteri(e.target,t.TEXTURE_WRAP_S,e.wrapMode.s),t.texParameteri(e.target,t.TEXTURE_WRAP_T,e.wrapMode.t))}static _applyAnisotropicFilteringParameters(t,e){const i=t.capabilities.textureFilterAnisotropic;if(!i)return;t.gl.texParameterf(e.target,i.TEXTURE_MAX_ANISOTROPY,e.maxAnisotropy??1)}}function T(t){return t in _}function g(t){return t in m}function x(t){return e(t)&&\"type\"in t&&\"compressed\"===t.type}function M(t){return e(t)&&\"byteLength\"in t}function f(t){return e(t)&&!x(t)&&!M(t)}function A(t){return t===s.TEXTURE_3D||t===s.TEXTURE_2D_ARRAY}function w(t,e,i,r=1){let o=Math.max(e,i);return t===s.TEXTURE_3D&&(o=Math.max(o,r)),Math.round(Math.log(o)/Math.LN2)+1}E.TEXTURE_UNIT_FOR_UPDATES=0;export{E as Texture};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.25/esri/copyright.txt for details.\n*/\nimport{isNone as r}from\"../../../../core/maybe.js\";import{i8888to32 as n}from\"./number.js\";const t=[255,255,255,1],o=[0,0,0,0];function u(r,n){return Array.isArray(n)?(r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3]):(r[0]=n.r,r[1]=n.g,r[2]=n.b,r[3]=n.a),r}function i(r,n=0,t=!1){const o=r[n+3];return r[n+0]*=o,r[n+1]*=o,r[n+2]*=o,t||(r[n+3]*=255),r}function c(r){return i(u([],r))}function e(r){return i(u(o,r)),n(o[0],o[1],o[2],o[3])}function f(r){if(!r)return 0;const{r:t,g:o,b:u,a:i}=r;return n(t*i,o*i,u*i,255*i)}function s(r){if(!r)return 0;const[t,o,u,i]=r;return n(t*(i/255),o*(i/255),u*(i/255),i)}function a(n,t,o=0){if(r(t))return n[o+0]=0,n[o+1]=0,n[o+2]=0,void(n[o+3]=0);const{r:u,g:i,b:c,a:e}=t;n[o+0]=u*e/255,n[o+1]=i*e/255,n[o+2]=c*e/255,n[o+3]=e}export{c as copyAndPremultiply,i as premultiplyAlpha,f as premultiplyAlphaRGBA,s as premultiplyAlphaRGBAArray,e as premultiplyAlphaUint32,t as white,a as writeColor};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.25/esri/copyright.txt for details.\n*/\nimport e from\"../../core/Error.js\";import has from\"../../core/has.js\";import r from\"../../core/Logger.js\";const o=r.getLogger(\"esri.views.webgl.checkWebGLError\");function t(e,r){switch(r){case e.INVALID_ENUM:return\"Invalid Enum. An unacceptable value has been specified for an enumerated argument.\";case e.INVALID_VALUE:return\"Invalid Value. A numeric argument is out of range.\";case e.INVALID_OPERATION:return\"Invalid Operation. The specified command is not allowed for the current state.\";case e.INVALID_FRAMEBUFFER_OPERATION:return\"Invalid Framebuffer operation. The currently bound framebuffer is not framebuffer complete when trying to render to or to read from it.\";case e.OUT_OF_MEMORY:return\"Out of memory. Not enough memory is left to execute the command.\";case e.CONTEXT_LOST_WEBGL:return\"WebGL context has been lost\";default:return\"Unknown error\"}}const n=!!has(\"enable-feature:webgl-debug\");function a(){return n}function c(){return n}function u(r){if(a()){const n=r.getError();if(n){const a=t(r,n),c=(new Error).stack;o.error(new e(\"webgl-error\",\"WebGL error occured\",{message:a,stack:c}))}}}export{u as checkWebGLError,n as hasFeatureFlagWebGLDebug,a as webglDebugEnabled,c as webglValidateShadersEnabled};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.25/esri/copyright.txt for details.\n*/\nfunction n(n){return window.WebGL2RenderingContext&&n instanceof window.WebGL2RenderingContext}export{n as default};\n"],"sourceRoot":""}