123456789 |
- import{a as b,f as Y,l as rt}from"./StyleDefinition.d56936e4.js";import{T as et}from"./enums.54326430.js";import{t as jt,b1 as I,e7 as ne}from"./index.6c049565.js";import{C as g}from"./enums.2d9e6f64.js";import{t as A}from"./VertexElementDescriptor.1fdca6da.js";import{v as Kt,p as qt,z as Wt}from"./colorUtils.bb6424b7.js";import{b as P}from"./GeometryUtils.4f19e772.js";import{s as wt}from"./Geometry.d049a63c.js";import{a3 as oe}from"./enums.0295eb81.js";class le{constructor(t){this._array=[],t<=0&&console.error("strideInBytes must be positive!"),this._stride=t}get array(){return this._array}get index(){return 4*this._array.length/this._stride}get itemSize(){return this._stride}get sizeInBytes(){return 4*this._array.length}reset(){this.array.length=0}toBuffer(){return new Uint32Array(this._array).buffer}static i1616to32(t,e){return 65535&t|e<<16}static i8888to32(t,e,r,s){return 255&t|(255&e)<<8|(255&r)<<16|s<<24}static i8816to32(t,e,r){return 255&t|(255&e)<<8|r<<16}}var h,J;(function(i){i[i.R8_SIGNED=0]="R8_SIGNED",i[i.R8_UNSIGNED=1]="R8_UNSIGNED",i[i.R16_SIGNED=2]="R16_SIGNED",i[i.R16_UNSIGNED=3]="R16_UNSIGNED",i[i.R8G8_SIGNED=4]="R8G8_SIGNED",i[i.R8G8_UNSIGNED=5]="R8G8_UNSIGNED",i[i.R16G16_SIGNED=6]="R16G16_SIGNED",i[i.R16G16_UNSIGNED=7]="R16G16_UNSIGNED",i[i.R8G8B8A8_SIGNED=8]="R8G8B8A8_SIGNED",i[i.R8G8B8A8_UNSIGNED=9]="R8G8B8A8_UNSIGNED",i[i.R8G8B8A8_COLOR=10]="R8G8B8A8_COLOR",i[i.R16G16B16A16_DASHARRAY=11]="R16G16B16A16_DASHARRAY",i[i.R16G16B16A16_PATTERN=12]="R16G16B16A16_PATTERN"})(h||(h={})),function(i){i[i.UNIFORM=0]="UNIFORM",i[i.DATA_DRIVEN=1]="DATA_DRIVEN",i[i.INTERPOLATED_DATA_DRIVEN=2]="INTERPOLATED_DATA_DRIVEN",i[i.UNUSED=3]="UNUSED"}(J||(J={}));class C{constructor(t){this._locations=new Map,this._key=t}get key(){return this._key}get type(){return 7&this._key}defines(){return[]}getStride(){return this._layoutInfo||this._buildAttributesInfo(),this._stride}getAttributeLocations(){return this._locations.size===0&&this._buildAttributesInfo(),this._locations}getLayoutInfo(){return this._layoutInfo||this._buildAttributesInfo(),this._layoutInfo}getEncodingInfos(){return this._propertyEncodingInfo||this._buildAttributesInfo(),this._propertyEncodingInfo}getUniforms(){return this._uniforms||this._buildAttributesInfo(),this._uniforms}getShaderHeader(){return this._shaderHeader||this._buildAttributesInfo(),this._shaderHeader}getShaderMain(){return this._shaderMain||this._buildAttributesInfo(),this._shaderMain}setDataUniforms(t,e,r,s,a){const o=this.getUniforms();for(const n of o){const{name:l,type:u,getValue:p}=n,c=p(r,e,s,a);if(c!==null)switch(u){case"float":t.setUniform1f(l,c);break;case"vec2":t.setUniform2fv(l,c);break;case"vec4":t.setUniform4fv(l,c)}}}encodeAttributes(t,e,r,s){var p;const a=this.attributesInfo(),o=this.getEncodingInfos(),n=[];let l=0,u=0;for(const c of Object.keys(o)){const f=o[c],{type:_,precisionFactor:d,isLayout:G}=a[c],R=G?r.getLayoutProperty(c):r.getPaintProperty(c),q=(p=R.interpolator)==null?void 0:p.getInterpolationRange(e);let T=0;for(const S of f){const{offset:E,bufferElementsToAdd:k}=S;if(k>0){for(let D=0;D<k;D++)n.push(0);l+=u,u=S.bufferElementsToAdd}const v=s!=null?s:R.getValue(q?q[T]:e,t);switch(_){case h.R8_SIGNED:case h.R8_UNSIGNED:n[l]|=this._encodeByte(v*(d||1),8*E);break;case h.R16_SIGNED:case h.R16_UNSIGNED:n[l]|=this._encodeShort(v*(d||1),8*E);break;case h.R8G8_SIGNED:case h.R8G8_UNSIGNED:n[l]|=this._encodeByte(v*(d||1),8*E),n[l]|=this._encodeByte(v*(d||1),8*E+8);break;case h.R16G16_SIGNED:case h.R16G16_UNSIGNED:n[l]|=this._encodeShort(v*(d||1),8*E),n[l]|=this._encodeShort(v*(d||1),8*E+16);break;case h.R8G8B8A8_SIGNED:case h.R8G8B8A8_UNSIGNED:n[l]|=this._encodeByte(v*(d||1),8*E),n[l]|=this._encodeByte(v*(d||1),8*E+8),n[l]|=this._encodeByte(v*(d||1),8*E+16),n[l]|=this._encodeByte(v*(d||1),8*E+24);break;case h.R8G8B8A8_COLOR:n[l]=this._encodeColor(v);break;case h.R16G16B16A16_DASHARRAY:case h.R16G16B16A16_PATTERN:this._encodePattern(l,n,v);break;default:throw new Error("Unsupported encoding type")}T++}}return n}getAtributeState(t){let e=0;const r=3+2*t;return e|=this._bit(r),e|=this._bit(r+1)<<1,e}_buildAttributesInfo(){const t=[],e={},r={};let s=-1;const a=this.attributesInfo(),o=this.attributes();let n=-1;for(const c of o){n++;const f=this.getAtributeState(n);if(f===J.UNIFORM||f===J.UNUSED)continue;const _=a[c],d=[];e[c]=d;const G=_.type;for(let R=0;R<f;R++){const{dataType:q,bytesPerElement:T,count:S,normalized:E}=C._encodingInfo[G],k=T*S,v=`${q}-${E===!0}`;let D=r[v],z=0;if(!D||D.count+S>4)s++,D={dataIndex:s,count:0,offset:0},S!==4&&(r[v]=D),t.push({location:-1,name:"a_data_"+s,count:S,type:q,normalized:E}),z=Math.ceil(Math.max(k/4,1));else{const F=t[D.dataIndex];F.count+=S,z=Math.ceil(Math.max(F.count*T/4,1))-Math.ceil(Math.max(D.offset/4,1))}d.push({dataIndex:D.dataIndex,offset:D.offset,bufferElementsToAdd:z}),D.offset+=k,D.count+=S}}for(const c of t)switch(c.type){case g.BYTE:case g.UNSIGNED_BYTE:c.count=4;break;case g.SHORT:case g.UNSIGNED_SHORT:c.count+=c.count%2}this._buildVertexBufferLayout(t);let l=0;const u=this._layoutInfo.geometry;for(const c of u)this._locations.set(c.name,l++);const p=this._layoutInfo.opacity;if(p)for(const c of p)this._locations.set(c.name,l++);this._buildShaderInfo(t,e),this._propertyEncodingInfo=e}_buildVertexBufferLayout(t){const e={},r=this.geometryInfo();let s=r[0].stride;if(t.length===0)e.geometry=r;else{const a=[];let o=s;for(const n of t)s+=Zt(n.type)*n.count;for(const n of r)a.push(new A(n.name,n.count,n.type,n.offset,s,n.normalized));for(const n of t)a.push(new A(n.name,n.count,n.type,o,s,n.normalized)),o+=Zt(n.type)*n.count;e.geometry=a}this.opacityInfo()&&(e.opacity=this.opacityInfo()),this._layoutInfo=e,this._stride=s}_buildShaderInfo(t,e){let r=`
- `,s=`
- `;const a=[];for(const u of t)r+=`attribute ${this._getType(u.count)} ${u.name};
- `;const o=this.attributes(),n=this.attributesInfo();let l=-1;for(const u of o){l++;const{name:p,type:c,precisionFactor:f,isLayout:_}=n[u],d=f&&f!==1?" * "+1/f:"",{bytesPerElement:G,count:R}=C._encodingInfo[c],q=T=>`a_data_${T.dataIndex}${ue(R,T.offset,G)}`;switch(this.getAtributeState(l)){case J.UNIFORM:{const T=this._getType(R),S=`u_${p}`;a.push({name:S,type:T,getValue:(E,k,v,D)=>{const z=_?E.getLayoutValue(u,k):E.getPaintValue(u,k);if(c===h.R16G16B16A16_DASHARRAY){const F=E.getDashKey(z,E.getLayoutValue("line-cap",k)),it=D.getMosaicItemPosition(F,!1);if(jt(it))return null;const{tl:nt,br:Ht}=it;return[nt[0],Ht[1],Ht[0],nt[1]]}if(c===h.R16G16B16A16_PATTERN){const F=D.getMosaicItemPosition(z,!u.includes("line-"));if(jt(F))return null;const{tl:it,br:nt}=F;return[it[0],nt[1],nt[0],it[1]]}if(c===h.R8G8B8A8_COLOR){const F=z[3];return[F*z[0],F*z[1],F*z[2],F]}return z}}),r+=`uniform ${T} ${S};
- `,s+=`${T} ${p} = ${S};
- `}break;case J.DATA_DRIVEN:{const T=q(e[u][0]);s+=`${this._getType(R)} ${p} = ${T}${d};
- `}break;case J.INTERPOLATED_DATA_DRIVEN:{const T=`u_t_${p}`;a.push({name:T,type:"float",getValue:(k,v,D,z)=>(_?k.getLayoutProperty(u):k.getPaintProperty(u)).interpolator.interpolationUniformValue(D,v)}),r+=`uniform float ${T};
- `;const S=q(e[u][0]),E=q(e[u][1]);s+=`${this._getType(R)} ${p} = mix(${S}${d}, ${E}${d}, ${T});
- `}}}this._shaderHeader=r,this._shaderMain=s,this._uniforms=a}_bit(t){return(this._key&1<<t)>>t}_getType(t){switch(t){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4"}throw new Error("Invalid count")}_encodeColor(t){const e=255*t[3];return le.i8888to32(t[0]*e,t[1]*e,t[2]*e,e)}_encodePattern(t,e,r){if(!r||!r.rect)return;const s=2,a=r.rect,o=r.width,n=r.height;e[t]=this._encodeShort(a.x+s,0),e[t]|=this._encodeShort(a.y+s+n,16),e[t+1]=this._encodeShort(a.x+s+o,0),e[t+1]|=this._encodeShort(a.y+s,16)}_encodeByte(t,e){return(255&t)<<e}_encodeShort(t,e){return(65535&t)<<e}}C._encodingInfo={[h.R8_SIGNED]:{dataType:g.BYTE,bytesPerElement:1,count:1,normalized:!1},[h.R8_UNSIGNED]:{dataType:g.UNSIGNED_BYTE,bytesPerElement:1,count:1,normalized:!1},[h.R16_SIGNED]:{dataType:g.SHORT,bytesPerElement:2,count:1,normalized:!1},[h.R16_UNSIGNED]:{dataType:g.UNSIGNED_SHORT,bytesPerElement:2,count:1,normalized:!1},[h.R8G8_SIGNED]:{dataType:g.BYTE,bytesPerElement:1,count:2,normalized:!1},[h.R8G8_UNSIGNED]:{dataType:g.UNSIGNED_BYTE,bytesPerElement:1,count:2,normalized:!1},[h.R16G16_SIGNED]:{dataType:g.SHORT,bytesPerElement:2,count:2,normalized:!1},[h.R16G16_UNSIGNED]:{dataType:g.UNSIGNED_SHORT,bytesPerElement:2,count:2,normalized:!1},[h.R8G8B8A8_SIGNED]:{dataType:g.BYTE,bytesPerElement:1,count:4,normalized:!1},[h.R8G8B8A8_UNSIGNED]:{dataType:g.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!1},[h.R8G8B8A8_COLOR]:{dataType:g.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!0},[h.R16G16B16A16_DASHARRAY]:{dataType:g.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1},[h.R16G16B16A16_PATTERN]:{dataType:g.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1}};const Zt=i=>{switch(i){case g.FLOAT:case g.INT:case g.UNSIGNED_INT:return 4;case g.SHORT:case g.UNSIGNED_SHORT:return 2;case g.BYTE:case g.UNSIGNED_BYTE:return 1}},ue=(i,t,e)=>{const r=t/e;if(i===1)switch(r){case 0:return".x";case 1:return".y";case 2:return".z";case 3:return".w"}else if(i===2)switch(r){case 0:return".xy";case 1:return".yz";case 2:return".zw"}else if(i===3)switch(r){case 0:return".xyz";case 1:return".yzw"}return""};class $ extends C{constructor(t){super(t)}geometryInfo(){return $.GEOMETRY_LAYOUT}opacityInfo(){return null}attributes(){return $.ATTRIBUTES}attributesInfo(){return $.ATTRIBUTES_INFO}}$.ATTRIBUTES=[],$.GEOMETRY_LAYOUT=[new A("a_pos",2,g.BYTE,0,2)],$.ATTRIBUTES_INFO={};class H extends C{constructor(t){super(t)}geometryInfo(){return H.GEOMETRY_LAYOUT}opacityInfo(){return null}attributes(){return H.ATTRIBUTES}attributesInfo(){return H.ATTRIBUTES_INFO}}H.ATTRIBUTES=["circle-radius","circle-color","circle-opacity","circle-stroke-width","circle-stroke-color","circle-stroke-opacity","circle-blur"],H.GEOMETRY_LAYOUT=[new A("a_pos",2,g.SHORT,0,4)],H.ATTRIBUTES_INFO={"circle-radius":{name:"radius",type:h.R8_UNSIGNED},"circle-color":{name:"color",type:h.R8G8B8A8_COLOR},"circle-opacity":{name:"opacity",type:h.R8_UNSIGNED,precisionFactor:100},"circle-stroke-width":{name:"stroke_width",type:h.R8_UNSIGNED,precisionFactor:4},"circle-stroke-color":{name:"stroke_color",type:h.R8G8B8A8_COLOR},"circle-stroke-opacity":{name:"stroke_opacity",type:h.R8_UNSIGNED,precisionFactor:100},"circle-blur":{name:"blur",type:h.R8_UNSIGNED,precisionFactor:32}};class j extends C{constructor(t){super(t)}geometryInfo(){return j.GEOMETRY_LAYOUT}opacityInfo(){return null}attributes(){return j.ATTRIBUTES}attributesInfo(){return j.ATTRIBUTES_INFO}}j.ATTRIBUTES=["fill-color","fill-opacity","fill-pattern"],j.GEOMETRY_LAYOUT=[new A("a_pos",2,g.SHORT,0,4)],j.ATTRIBUTES_INFO={"fill-color":{name:"color",type:h.R8G8B8A8_COLOR},"fill-opacity":{name:"opacity",type:h.R8_UNSIGNED,precisionFactor:100},"fill-pattern":{name:"tlbr",type:h.R16G16B16A16_PATTERN,isOptional:!0}};class x extends C{constructor(t,e){super(t),this._usefillColor=e}geometryInfo(){return x.GEOMETRY_LAYOUT}opacityInfo(){return null}attributes(){return this._usefillColor?x.ATTRIBUTES_FILL:x.ATTRIBUTES_OUTLINE}attributesInfo(){return this._usefillColor?x.ATTRIBUTES_INFO_FILL:x.ATTRIBUTES_INFO_OUTLINE}}x.ATTRIBUTES_OUTLINE=["fill-outline-color","fill-opacity"],x.ATTRIBUTES_FILL=["fill-color","fill-opacity"],x.GEOMETRY_LAYOUT=[new A("a_pos",2,g.SHORT,0,8),new A("a_offset",2,g.BYTE,4,8),new A("a_xnormal",2,g.BYTE,6,8)],x.ATTRIBUTES_INFO_OUTLINE={"fill-outline-color":{name:"color",type:h.R8G8B8A8_COLOR},"fill-opacity":{name:"opacity",type:h.R8_UNSIGNED,precisionFactor:100}},x.ATTRIBUTES_INFO_FILL={"fill-color":{name:"color",type:h.R8G8B8A8_COLOR},"fill-opacity":{name:"opacity",type:h.R8_UNSIGNED,precisionFactor:100}};class K extends C{constructor(t){super(t)}geometryInfo(){return K.GEOMETRY_LAYOUT}opacityInfo(){return null}attributes(){return K.ATTRIBUTES}attributesInfo(){return K.ATTRIBUTES_INFO}}K.ATTRIBUTES=["line-blur","line-color","line-gap-width","line-offset","line-opacity","line-width","line-pattern","line-dasharray"],K.GEOMETRY_LAYOUT=[new A("a_pos",2,g.SHORT,0,16),new A("a_extrude_offset",4,g.BYTE,4,16),new A("a_dir_normal",4,g.BYTE,8,16),new A("a_accumulatedDistance",2,g.UNSIGNED_SHORT,12,16)],K.ATTRIBUTES_INFO={"line-width":{name:"width",type:h.R8_UNSIGNED,precisionFactor:2},"line-gap-width":{name:"gap_width",type:h.R8_UNSIGNED,precisionFactor:2},"line-offset":{name:"offset",type:h.R8_SIGNED,precisionFactor:2},"line-color":{name:"color",type:h.R8G8B8A8_COLOR},"line-opacity":{name:"opacity",type:h.R8_UNSIGNED,precisionFactor:100},"line-blur":{name:"blur",type:h.R8_UNSIGNED,precisionFactor:4},"line-pattern":{name:"tlbr",type:h.R16G16B16A16_PATTERN,isOptional:!0},"line-dasharray":{name:"tlbr",type:h.R16G16B16A16_DASHARRAY,isOptional:!0}};const re=[new A("a_pos",2,g.SHORT,0,16),new A("a_vertexOffset",2,g.SHORT,4,16),new A("a_texAngleRange",4,g.UNSIGNED_BYTE,8,16),new A("a_levelInfo",4,g.UNSIGNED_BYTE,12,16)],se=[new A("a_opacityInfo",1,g.UNSIGNED_BYTE,0,1)];class Q extends C{constructor(t){super(t)}geometryInfo(){return re}opacityInfo(){return se}attributes(){return Q.ATTRIBUTES}attributesInfo(){return Q.ATTRIBUTES_INFO}}Q.ATTRIBUTES=["icon-color","icon-opacity","icon-halo-blur","icon-halo-color","icon-halo-width","icon-size"],Q.ATTRIBUTES_INFO={"icon-color":{name:"color",type:h.R8G8B8A8_COLOR},"icon-opacity":{name:"opacity",type:h.R8_UNSIGNED,precisionFactor:100},"icon-halo-color":{name:"halo_color",type:h.R8G8B8A8_COLOR},"icon-halo-width":{name:"halo_width",type:h.R8_UNSIGNED,precisionFactor:4},"icon-halo-blur":{name:"halo_blur",type:h.R8_UNSIGNED,precisionFactor:4},"icon-size":{name:"size",type:h.R8_UNSIGNED,precisionFactor:32,isLayout:!0}};class X extends C{constructor(t){super(t)}geometryInfo(){return re}opacityInfo(){return se}attributes(){return X.ATTRIBUTES}attributesInfo(){return X.ATTRIBUTES_INFO}}X.ATTRIBUTES=["text-color","text-opacity","text-halo-blur","text-halo-color","text-halo-width","text-size"],X.ATTRIBUTES_INFO={"text-color":{name:"color",type:h.R8G8B8A8_COLOR},"text-opacity":{name:"opacity",type:h.R8_UNSIGNED,precisionFactor:100},"text-halo-color":{name:"halo_color",type:h.R8G8B8A8_COLOR},"text-halo-width":{name:"halo_width",type:h.R8_UNSIGNED,precisionFactor:4},"text-halo-blur":{name:"halo_blur",type:h.R8_UNSIGNED,precisionFactor:4},"text-size":{name:"size",type:h.R8_UNSIGNED,isLayout:!0}};const ae={kind:"null"},w={kind:"number"},O={kind:"string"},N={kind:"boolean"},Z={kind:"color"},_t={kind:"object"},W={kind:"value"};function ut(i,t){return{kind:"array",itemType:i,n:t}}const ce=[ae,w,O,N,Z,_t,ut(W)];function st(i){if(i.kind==="array"){const t=st(i.itemType);return typeof i.n=="number"?`array<${t}, ${i.n}>`:i.itemType.kind==="value"?"array":`array<${t}>`}return i.kind}function dt(i){if(i===null)return ae;if(typeof i=="string")return O;if(typeof i=="boolean")return N;if(typeof i=="number")return w;if(i instanceof I)return Z;if(Array.isArray(i)){let t;for(const e of i){const r=dt(e);if(t){if(t!==r){t=W;break}}else t=r}return ut(t||W,i.length)}return typeof i=="object"?_t:W}function Et(i,t){if(t.kind==="array")return i.kind==="array"&&(i.n===0&&i.itemType.kind==="value"||Et(i.itemType,t.itemType))&&(typeof t.n!="number"||t.n===i.n);if(t.kind==="value"){for(const e of ce)if(Et(i,e))return!0}return t.kind===i.kind}function bt(i){if(i===null)return"";const t=typeof i;return t==="string"?i:t==="number"||t==="boolean"?String(i):i instanceof I?i.toString():JSON.stringify(i)}class he{constructor(t){this._parent=t,this._vars={}}add(t,e){this._vars[t]=e}get(t){return this._vars[t]?this._vars[t]:this._parent?this._parent.get(t):null}}class It{constructor(){this.type=W}static parse(t){if(t.length>1)throw new Error('"id" does not expect arguments');return new It}evaluate(t,e){return t==null?void 0:t.id}}class Tt{constructor(){this.type=O}static parse(t){if(t.length>1)throw new Error('"geometry-type" does not expect arguments');return new Tt}evaluate(t,e){if(!t)return null;switch(t.type){case wt.Point:return"Point";case wt.LineString:return"LineString";case wt.Polygon:return"Polygon";default:return null}}}class vt{constructor(){this.type=_t}static parse(t){if(t.length>1)throw new Error('"properties" does not expect arguments');return new vt}evaluate(t,e){return t==null?void 0:t.values}}class mt{constructor(){this.type=w}static parse(t){if(t.length>1)throw new Error('"zoom" does not expect arguments');return new mt}evaluate(t,e){return e}}class B{constructor(t,e,r){this._lhs=t,this._rhs=e,this._compare=r,this.type=N}static parse(t,e,r){if(t.length!==3&&t.length!==4)throw new Error(`"${t[0]}" expects 2 or 3 arguments`);if(t.length===4)throw new Error(`"${t[0]}" collator not supported`);return new B(y(t[1],e),y(t[2],e),r)}evaluate(t,e){return this._compare(this._lhs.evaluate(t,e),this._rhs.evaluate(t,e))}}class pe extends B{static parse(t,e){return B.parse(t,e,(r,s)=>r===s)}}class ye extends B{static parse(t,e){return B.parse(t,e,(r,s)=>r!==s)}}class fe extends B{static parse(t,e){return B.parse(t,e,(r,s)=>r<s)}}class ge extends B{static parse(t,e){return B.parse(t,e,(r,s)=>r<=s)}}class _e extends B{static parse(t,e){return B.parse(t,e,(r,s)=>r>s)}}class de extends B{static parse(t,e){return B.parse(t,e,(r,s)=>r>=s)}}class Dt{constructor(t){this._arg=t,this.type=N}static parse(t,e){if(t.length!==2)throw new Error('"!" expects 1 argument');return new Dt(y(t[1],e))}evaluate(t,e){return!this._arg.evaluate(t,e)}}class Rt{constructor(t){this._args=t,this.type=N}static parse(t,e){const r=[];for(let s=1;s<t.length;s++)r.push(y(t[s],e));return new Rt(r)}evaluate(t,e){for(const r of this._args)if(!r.evaluate(t,e))return!1;return!0}}class At{constructor(t){this._args=t,this.type=N}static parse(t,e){const r=[];for(let s=1;s<t.length;s++)r.push(y(t[s],e));return new At(r)}evaluate(t,e){for(const r of this._args)if(r.evaluate(t,e))return!0;return!1}}class Nt{constructor(t){this._args=t,this.type=N}static parse(t,e){const r=[];for(let s=1;s<t.length;s++)r.push(y(t[s],e));return new Nt(r)}evaluate(t,e){for(const r of this._args)if(r.evaluate(t,e))return!1;return!0}}class xt{constructor(t,e,r){this.type=t,this._args=e,this._fallback=r}static parse(t,e,r){if(t.length<4)throw new Error('"case" expects at least 3 arguments');if(t.length%2==1)throw new Error('"case" expects an odd number of arguments');let s;const a=[];for(let n=1;n<t.length-1;n+=2){const l=y(t[n],e),u=y(t[n+1],e,r);s||(s=u.type),a.push({condition:l,output:u})}const o=y(t[t.length-1],e,r);return s||(s=o.type),new xt(s,a,o)}evaluate(t,e){for(const r of this._args)if(r.condition.evaluate(t,e))return r.output.evaluate(t,e);return this._fallback.evaluate(t,e)}}class St{constructor(t,e){this.type=t,this._args=e}static parse(t,e){if(t.length<2)throw new Error('"coalesce" expects at least 1 argument');let r;const s=[];for(let a=1;a<t.length;a++){const o=y(t[a],e);r||(r=o.type),s.push(o)}return new St(r,s)}evaluate(t,e){for(const r of this._args){const s=r.evaluate(t,e);if(s!==null)return s}return null}}class Pt{constructor(t,e,r,s,a){this.type=t,this._input=e,this._labels=r,this._outputs=s,this._fallback=a}static parse(t,e){if(t.length<3)throw new Error('"match" expects at least 3 arguments');if(t.length%2==0)throw new Error('"case" expects an even number of arguments');let r;const s=y(t[1],e),a=[],o={};let n;for(let l=2;l<t.length-1;l+=2){let u=t[l];Array.isArray(u)||(u=[u]);for(const c of u){const f=typeof c;if(f!=="string"&&f!=="number")throw new Error('"match" requires string or number literal as labels');if(n){if(f!==n)throw new Error('"match" requires labels to have the same type')}else n=f;o[c]=a.length}const p=y(t[l+1],e);r||(r=p.type),a.push(p)}return new Pt(r,s,o,a,y(t[t.length-1],e))}evaluate(t,e){const r=this._input.evaluate(t,e);return(this._outputs[this._labels[r]]||this._fallback).evaluate(t,e)}}class M{constructor(t,e,r,s,a){this._operator=t,this.type=e,this.interpolation=r,this.input=s,this._stops=a}static parse(t,e,r){const s=t[0];if(t.length<5)throw new Error(`"${s}" expects at least 4 arguments`);const a=t[1];if(!Array.isArray(a)||a.length===0)throw new Error(`"${a}" is not a valid interpolation`);switch(a[0]){case"linear":if(a.length!==1)throw new Error("Linear interpolation cannot have parameters");break;case"exponential":if(a.length!==2||typeof a[1]!="number")throw new Error("Exponential interpolation requires one numeric argument");break;case"cubic-bezier":if(a.length!==5)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1");for(let u=1;u<5;u++){const p=a[u];if(typeof p!="number"||p<0||p>1)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1")}break;default:throw new Error(`"${t[0]}" unknown interpolation type "${a[0]}"`)}if(t.length%2!=1)throw new Error(`"${s}" expects an even number of arguments`);const o=y(t[2],e,w);let n;s==="interpolate-hcl"||s==="interpolate-lab"?n=Z:r&&r.kind!=="value"&&(n=r);const l=[];for(let u=3;u<t.length;u+=2){const p=t[u];if(typeof p!="number")throw new Error(`"${s}" requires stop inputs as literal numbers`);if(l.length&&l[l.length-1][0]>=p)throw new Error(`"${s}" requires strictly ascending stop inputs`);const c=y(t[u+1],e,n);n||(n=c.type),l.push([p,c])}if(n&&n!==Z&&n!==w&&(n.kind!=="array"||n.itemType!==w))throw new Error(`"${s}" cannot interpolate type ${st(n)}`);return new M(s,n,a,o,l)}evaluate(t,e){const r=this._stops;if(r.length===1)return r[0][1].evaluate(t,e);const s=this.input.evaluate(t,e);if(s<=r[0][0])return r[0][1].evaluate(t,e);if(s>=r[r.length-1][0])return r[r.length-1][1].evaluate(t,e);let a=0;for(;++a<r.length&&!(s<r[a][0]););const o=r[a-1][0],n=r[a][0],l=M.interpolationRatio(this.interpolation,s,o,n),u=r[a-1][1].evaluate(t,e),p=r[a][1].evaluate(t,e);if(this._operator==="interpolate"){if(this.type.kind==="array"&&Array.isArray(u)&&Array.isArray(p))return u.map((c,f)=>P(c,p[f],l));if(this.type.kind==="color"&&u instanceof I&&p instanceof I){const c=new I(u),f=new I(p);return new I([P(c.r,f.r,l),P(c.g,f.g,l),P(c.b,f.b,l),P(c.a,f.a,l)])}if(this.type.kind==="number"&&typeof u=="number"&&typeof p=="number")return P(u,p,l);throw new Error(`"${this._operator}" cannot interpolate type ${st(this.type)}`)}if(this._operator==="interpolate-hcl"){const c=Kt(u),f=Kt(p),_=f.h-c.h,d=qt({h:c.h+l*(_>180||_<-180?_-360*Math.round(_/360):_),c:P(c.c,f.c,l),l:P(c.l,f.l,l)});return new I({a:P(u.a,p.a,l),...d})}if(this._operator==="interpolate-lab"){const c=Wt(u),f=Wt(p),_=qt({l:P(c.l,f.l,l),a:P(c.a,f.a,l),b:P(c.b,f.b,l)});return new I({a:P(u.a,p.a,l),..._})}throw new Error(`Unexpected operator "${this._operator}"`)}interpolationUniformValue(t,e){const r=this._stops;if(r.length===1||t>=r[r.length-1][0])return 0;let s=0;for(;++s<r.length&&!(t<r[s][0]););const a=r[s-1][0],o=r[s][0];return M.interpolationRatio(this.interpolation,e,a,o)}getInterpolationRange(t){const e=this._stops;if(e.length===1){const a=e[0][0];return[a,a]}const r=e[e.length-1][0];if(t>=r)return[r,r];let s=0;for(;++s<e.length&&!(t<e[s][0]););return[e[s-1][0],e[s][0]]}static interpolationRatio(t,e,r,s){let a=0;return t[0]==="linear"?a=M._exponentialInterpolationRatio(e,1,r,s):t[0]==="exponential"?a=M._exponentialInterpolationRatio(e,t[1],r,s):t[0]==="cubic-bezier"&&(a=ne(t[1],t[2],t[3],t[4])(M._exponentialInterpolationRatio(e,1,r,s),1e-5)),a<0?a=0:a>1&&(a=1),a}static _exponentialInterpolationRatio(t,e,r,s){const a=s-r;if(a===0)return 0;const o=t-r;return e===1?o/a:(e**o-1)/(e**a-1)}}class Lt{constructor(t,e,r){this.type=t,this._input=e,this._stops=r}static parse(t,e){if(t.length<5)throw new Error('"step" expects at least 4 arguments');if(t.length%2!=1)throw new Error('"step" expects an even number of arguments');const r=y(t[1],e,w);let s;const a=[];a.push([-1/0,y(t[2],e)]);for(let o=3;o<t.length;o+=2){const n=t[o];if(typeof n!="number")throw new Error('"step" requires stop inputs as literal numbers');if(a.length&&a[a.length-1][0]>=n)throw new Error('"step" requires strictly ascending stop inputs');const l=y(t[o+1],e);s||(s=l.type),a.push([n,l])}return new Lt(s,r,a)}evaluate(t,e){const r=this._stops;if(r.length===1)return r[0][1].evaluate(t,e);const s=this._input.evaluate(t,e);let a=0;for(;++a<r.length&&!(s<r[a][0]););return this._stops[a-1][1].evaluate(t,e)}}class Ut{constructor(t,e){this.type=t,this._output=e}static parse(t,e,r){if(t.length<4)throw new Error('"let" expects at least 3 arguments');if(t.length%2==1)throw new Error('"let" expects an odd number of arguments');const s=new he(e);for(let o=1;o<t.length-1;o+=2){const n=t[o];if(typeof n!="string")throw new Error(`"let" requires a string to define variable names - found ${n}`);s.add(n,y(t[o+1],e))}const a=y(t[t.length-1],s,r);return new Ut(a.type,a)}evaluate(t,e){return this._output.evaluate(t,e)}}class Bt{constructor(t,e){this.type=t,this.output=e}static parse(t,e,r){if(t.length!==2||typeof t[1]!="string")throw new Error('"var" requires just one literal string argument');const s=e.get(t[1]);if(!s)throw new Error(`${t[1]} must be defined before being used in a "var" expression`);return new Bt(r||W,s)}evaluate(t,e){return this.output.evaluate(t,e)}}class Ot{constructor(t,e,r){this.type=t,this._index=e,this._array=r}static parse(t,e){if(t.length!==3)throw new Error('"at" expects 2 arguments');const r=y(t[1],e,w),s=y(t[2],e);return new Ot(s.type.itemType,r,s)}evaluate(t,e){const r=this._index.evaluate(t,e),s=this._array.evaluate(t,e);if(r<0||r>=s.length)throw new Error('"at" index out of bounds');if(r!==Math.floor(r))throw new Error('"at" index must be an integer');return s[r]}}class ht{constructor(t,e){this._key=t,this._obj=e,this.type=W}static parse(t,e){let r,s;switch(t.length){case 2:return r=y(t[1],e),new ht(r);case 3:return r=y(t[1],e),s=y(t[2],e),new ht(r,s);default:throw new Error('"get" expects 1 or 2 arguments')}}evaluate(t,e){const r=this._key.evaluate(t,e);return this._obj?this._obj.evaluate(t,e)[r]:t==null?void 0:t.values[r]}}class pt{constructor(t,e){this._key=t,this._obj=e,this.type=N}static parse(t,e){let r,s;switch(t.length){case 2:return r=y(t[1],e),new pt(r);case 3:return r=y(t[1],e),s=y(t[2],e),new pt(r,s);default:throw new Error('"has" expects 1 or 2 arguments')}}evaluate(t,e){const r=this._key.evaluate(t,e);return this._obj?r in this._obj.evaluate(t,e):!!(t!=null&&t.values[r])}}class Gt{constructor(t,e){this._key=t,this._vals=e,this.type=N}static parse(t,e){if(t.length!==3)throw new Error('"in" expects 2 arguments');return new Gt(y(t[1],e),y(t[2],e))}evaluate(t,e){const r=this._key.evaluate(t,e);return this._vals.evaluate(t,e).includes(r)}}class yt{constructor(t,e,r){this._item=t,this._array=e,this._from=r,this.type=w}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"index-of" expects 3 or 4 arguments');const r=y(t[1],e),s=y(t[2],e);if(t.length===4){const a=y(t[3],e,w);return new yt(r,s,a)}return new yt(r,s)}evaluate(t,e){const r=this._item.evaluate(t,e),s=this._array.evaluate(t,e);if(this._from){const a=this._from.evaluate(t,e);if(a!==Math.floor(a))throw new Error('"index-of" index must be an integer');return s.indexOf(r,a)}return s.indexOf(r)}}class kt{constructor(t){this._arg=t,this.type=w}static parse(t,e){if(t.length!==2)throw new Error('"length" expects 2 arguments');const r=y(t[1],e);return new kt(r)}evaluate(t,e){const r=this._arg.evaluate(t,e);if(typeof r=="string"||Array.isArray(r))return r.length;throw new Error('"length" expects string or array')}}class ft{constructor(t,e,r,s){this.type=t,this._array=e,this._from=r,this._to=s}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"slice" expects 2 or 3 arguments');const r=y(t[1],e),s=y(t[2],e,w);if(s.type!==w)throw new Error('"slice" index must return a number');if(t.length===4){const a=y(t[3],e,w);if(a.type!==w)throw new Error('"slice" index must return a number');return new ft(r.type,r,s,a)}return new ft(r.type,r,s)}evaluate(t,e){const r=this._array.evaluate(t,e);if(!Array.isArray(r)&&typeof r!="string")throw new Error('"slice" input must be an array or a string');const s=this._from.evaluate(t,e);if(s<0||s>=r.length)throw new Error('"slice" index out of bounds');if(s!==Math.floor(s))throw new Error('"slice" index must be an integer');if(this._to){const a=this._to.evaluate(t,e);if(a<0||a>=r.length)throw new Error('"slice" index out of bounds');if(a!==Math.floor(a))throw new Error('"slice" index must be an integer');return r.slice(s,a)}return r.slice(s)}}class zt{constructor(){this.type=N}static parse(t){if(t.length!==1)throw new Error('"has-id" expects no arguments');return new zt}evaluate(t,e){return t&&t.id!==void 0}}class L{constructor(t,e){this._args=t,this._calculate=e,this.type=w}static parse(t,e,r){const s=t.slice(1).map(a=>y(a,e));return new L(s,r)}evaluate(t,e){let r;return this._args&&(r=this._args.map(s=>s.evaluate(t,e))),this._calculate(r)}}class me extends L{static parse(t,e){switch(t.length){case 2:return L.parse(t,e,r=>-r[0]);case 3:return L.parse(t,e,r=>r[0]-r[1]);default:throw new Error('"-" expects 1 or 2 arguments')}}}class we extends L{static parse(t,e){return L.parse(t,e,r=>{let s=1;for(const a of r)s*=a;return s})}}class Ee extends L{static parse(t,e){if(t.length===3)return L.parse(t,e,r=>r[0]/r[1]);throw new Error('"/" expects 2 arguments')}}class be extends L{static parse(t,e){if(t.length===3)return L.parse(t,e,r=>r[0]%r[1]);throw new Error('"%" expects 2 arguments')}}class Ie extends L{static parse(t,e){if(t.length===3)return L.parse(t,e,r=>r[0]**r[1]);throw new Error('"^" expects 1 or 2 arguments')}}class Te extends L{static parse(t,e){return L.parse(t,e,r=>{let s=0;for(const a of r)s+=a;return s})}}class m{constructor(t,e){this._args=t,this._calculate=e,this.type=w}static parse(t,e){const r=t.slice(1).map(s=>y(s,e));return new m(r,m.ops[t[0]])}evaluate(t,e){let r;return this._args&&(r=this._args.map(s=>s.evaluate(t,e))),this._calculate(r)}}m.ops={abs:i=>Math.abs(i[0]),acos:i=>Math.acos(i[0]),asin:i=>Math.asin(i[0]),atan:i=>Math.atan(i[0]),ceil:i=>Math.ceil(i[0]),cos:i=>Math.cos(i[0]),e:()=>Math.E,floor:i=>Math.floor(i[0]),ln:i=>Math.log(i[0]),ln2:()=>Math.LN2,log10:i=>Math.log(i[0])/Math.LN10,log2:i=>Math.log(i[0])/Math.LN2,max:i=>Math.max(...i),min:i=>Math.min(...i),pi:()=>Math.PI,round:i=>Math.round(i[0]),sin:i=>Math.sin(i[0]),sqrt:i=>Math.sqrt(i[0]),tan:i=>Math.tan(i[0])};class Ft{constructor(t){this._args=t,this.type=O}static parse(t,e){return new Ft(t.slice(1).map(r=>y(r,e)))}evaluate(t,e){return this._args.map(r=>r.evaluate(t,e)).join("")}}class at{constructor(t,e){this._arg=t,this._calculate=e,this.type=O}static parse(t,e){if(t.length!==2)throw new Error(`${t[0]} expects 1 argument`);const r=y(t[1],e);return new at(r,at.ops[t[0]])}evaluate(t,e){return this._calculate(this._arg.evaluate(t,e))}}at.ops={downcase:i=>i.toLowerCase(),upcase:i=>i.toUpperCase()};class Vt{constructor(t){this._args=t,this.type=Z}static parse(t,e){if(t.length!==4)throw new Error('"rgb" expects 3 arguments');const r=t.slice(1).map(s=>y(s,e));return new Vt(r)}evaluate(t,e){const r=this._validate(this._args[0].evaluate(t,e)),s=this._validate(this._args[1].evaluate(t,e)),a=this._validate(this._args[2].evaluate(t,e));return new I({r,g:s,b:a})}_validate(t){if(typeof t!="number"||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}}class Mt{constructor(t){this._args=t,this.type=Z}static parse(t,e){if(t.length!==5)throw new Error('"rgba" expects 4 arguments');const r=t.slice(1).map(s=>y(s,e));return new Mt(r)}evaluate(t,e){const r=this._validate(this._args[0].evaluate(t,e)),s=this._validate(this._args[1].evaluate(t,e)),a=this._validate(this._args[2].evaluate(t,e)),o=this._validateAlpha(this._args[3].evaluate(t,e));return new I({r,g:s,b:a,a:o})}_validate(t){if(typeof t!="number"||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}_validateAlpha(t){if(typeof t!="number"||t<0||t>1)throw new Error(`${t}: invalid alpha color component`);return t}}class Ct{constructor(t){this._color=t,this.type=ut(w,4)}static parse(t,e){if(t.length!==2)throw new Error('"to-rgba" expects 1 argument');const r=y(t[1],e);return new Ct(r)}evaluate(t,e){return new I(this._color.evaluate(t,e)).toRgba()}}class tt{constructor(t,e){this.type=t,this._args=e}static parse(t,e){const r=t[0];if(t.length<2)throw new Error(`${r} expects at least one argument`);let s,a=1;if(r==="array"){if(t.length>2){switch(t[1]){case"string":s=O;break;case"number":s=w;break;case"boolean":s=N;break;default:throw new Error('"array" type argument must be string, number or boolean')}a++}else s=W;let n;if(t.length>3){if(n=t[2],n!==null&&(typeof n!="number"||n<0||n!==Math.floor(n)))throw new Error('"array" length argument must be a positive integer literal');a++}s=ut(s,n)}else switch(r){case"string":s=O;break;case"number":s=w;break;case"boolean":s=N;break;case"object":s=_t}const o=[];for(;a<t.length;a++){const n=y(t[a],e);o.push(n)}return new tt(s,o)}evaluate(t,e){let r;for(const s of this._args){const a=s.evaluate(t,e);if(r=dt(a),Et(r,this.type))return a}throw new Error(`Expected ${st(this.type)} but got ${st(r)}`)}}class V{constructor(t,e){this.type=t,this._args=e}static parse(t,e){const r=t[0],s=V.types[r];if(s===N||s===O){if(t.length!==2)throw new Error(`${r} expects one argument`)}else if(t.length<2)throw new Error(`${r} expects at least one argument`);const a=[];for(let o=1;o<t.length;o++){const n=y(t[o],e);a.push(n)}return new V(s,a)}evaluate(t,e){if(this.type===N)return Boolean(this._args[0].evaluate(t,e));if(this.type===O)return bt(this._args[0].evaluate(t,e));if(this.type===w){for(const r of this._args){const s=Number(r.evaluate(t,e));if(!isNaN(s))return s}return null}if(this.type===Z){for(const r of this._args)try{const s=V.toColor(r.evaluate(t,e));if(s instanceof I)return s}catch{}return null}}static toBoolean(t){return Boolean(t)}static toString(t){return bt(t)}static toNumber(t){const e=Number(t);if(isNaN(e))throw new Error(`"${t}" is not a number`);return e}static toColor(t){if(t instanceof I)return t;if(typeof t=="string"){const e=I.fromString(t);if(e)return e;throw new Error(`"${t}" is not a color`)}if(Array.isArray(t))return I.fromArray(t);throw new Error(`"${t}" is not a color`)}}V.types={"to-boolean":N,"to-color":Z,"to-number":w,"to-string":O};class Yt{constructor(t){this._val=t,this.type=dt(t)}static parse(t){if(t.length!==2)throw new Error('"literal" expects 1 argument');return new Yt(t[1])}evaluate(t,e){return this._val}}class $t{constructor(t){this._arg=t,this.type=O}static parse(t,e){if(t.length!==2)throw new Error('"typeof" expects 1 argument');return new $t(y(t[1],e))}evaluate(t,e){return st(dt(this._arg.evaluate(t,e)))}}function y(i,t,e){const r=typeof i;if(r==="string"||r==="boolean"||r==="number"||i===null){if(e)switch(e.kind){case"string":r!=="string"&&(i=V.toString(i));break;case"number":r!=="number"&&(i=V.toNumber(i));break;case"color":i=V.toColor(i)}i=["literal",i]}if(!Array.isArray(i)||i.length===0)throw new Error("Expression must be a non empty array");const s=i[0];if(typeof s!="string")throw new Error("First element of expression must be a string");const a=ie[s];if(a===void 0)throw new Error(`Invalid expression operator "${s}"`);if(!a)throw new Error(`Unimplemented expression operator "${s}"`);return a.parse(i,t,e)}const ie={array:tt,boolean:tt,collator:null,format:null,image:null,literal:Yt,number:tt,"number-format":null,object:tt,string:tt,"to-boolean":V,"to-color":V,"to-number":V,"to-string":V,typeof:$t,accumulated:null,"feature-state":null,"geometry-type":Tt,id:It,"line-progress":null,properties:vt,at:Ot,get:ht,has:pt,in:Gt,"index-of":yt,length:kt,slice:ft,"!":Dt,"!=":ye,"<":fe,"<=":ge,"==":pe,">":_e,">=":de,all:Rt,any:At,case:xt,coalesce:St,match:Pt,within:null,interpolate:M,"interpolate-hcl":M,"interpolate-lab":M,step:Lt,let:Ut,var:Bt,concat:Ft,downcase:at,"is-supported-script":null,"resolved-locale":null,upcase:at,rgb:Vt,rgba:Mt,"to-rgba":Ct,"-":me,"*":we,"/":Ee,"%":be,"^":Ie,"+":Te,abs:m,acos:m,asin:m,atan:m,ceil:m,cos:m,e:m,floor:m,ln:m,ln2:m,log10:m,log2:m,max:m,min:m,pi:m,round:m,sin:m,sqrt:m,tan:m,zoom:mt,"heatmap-density":null,"has-id":zt,none:Nt};class U{constructor(t){this._expression=t}filter(t,e){if(!this._expression)return!0;try{return this._expression.evaluate(t,e)}catch(r){return console.log(r.message),!0}}static createFilter(t){if(!t)return null;this.isLegacyFilter(t)&&(t=this.convertLegacyFilter(t));try{const e=y(t,null,N);return new U(e)}catch(e){return console.log(e.message),null}}static isLegacyFilter(t){if(!Array.isArray(t)||t.length===0)return!0;switch(t[0]){case"==":case"!=":case">":case"<":case">=":case"<=":return t.length===3&&typeof t[1]=="string"&&!Array.isArray(t[2]);case"in":return t.length>=3&&typeof t[1]=="string"&&!Array.isArray(t[2]);case"!in":case"none":case"!has":return!0;case"any":case"all":for(let e=1;e<t.length;e++)if(this.isLegacyFilter(t[e]))return!0;return!1;case"has":return t.length===2&&(t[1]==="$id"||t[1]==="$type");default:return!1}}static convertLegacyFilter(t){if(!Array.isArray(t)||t.length===0)return!0;const e=t[0];if(t.length===1)return e!=="any";switch(e){case"==":return U.convertComparison("==",t[1],t[2]);case"!=":return U.negate(U.convertComparison("==",t[1],t[2]));case">":case"<":case">=":case"<=":return U.convertComparison(e,t[1],t[2]);case"in":return U.convertIn(t[1],t.slice(2));case"!in":return U.negate(U.convertIn(t[1],t.slice(2)));case"any":case"all":case"none":return U.convertCombining(e,t.slice(1));case"has":return U.convertHas(t[1]);case"!has":return U.negate(U.convertHas(t[1]));default:throw new Error("Unexpected legacy filter.")}}static convertComparison(t,e,r){switch(e){case"$type":return[t,["geometry-type"],r];case"$id":return[t,["id"],r];default:return[t,["get",e],r]}}static convertIn(t,e){switch(t){case"$type":return["in",["geometry-type"],["literal",e]];case"$id":return["in",["id"],["literal",e]];default:return["in",["get",t],["literal",e]]}}static convertHas(t){switch(t){case"$type":return!0;case"$id":return["has-id"];default:return["has",t]}}static convertCombining(t,e){return[t].concat(e.map(this.convertLegacyFilter))}static negate(t){return["!",t]}}class gt{constructor(t,e){let r;switch(this.isDataDriven=!1,this.interpolator=null,t.type){case"number":case"color":r=!0;break;case"array":r=t.value==="number";break;default:r=!1}if(e==null&&(e=t.default),Array.isArray(e)&&e.length>0&&ie[e[0]]){const a={number:w,color:Z,string:O,boolean:N,enum:O};try{const o=t.type==="array"?ut(a[t.value]||W,t.length):a[t.type],n=y(e,null,o);this.getValue=this._buildExpression(n,t),this.isDataDriven=!0,n instanceof M&&n.input instanceof mt&&(this.interpolator=n)}catch(o){console.log(o.message),this.getValue=this._buildSimple(t.default)}return}r&&e.type==="interval"&&(r=!1);const s=e&&e.stops&&e.stops.length>0;if(s)for(const a of e.stops)a[1]=this._validate(a[1],t);if(this.isDataDriven=!!e&&!!e.property,this.isDataDriven)if(e.default!==void 0&&(e.default=this._validate(e.default,t)),s)switch(e.type){case"identity":this.getValue=this._buildIdentity(e,t);break;case"categorical":this.getValue=this._buildCategorical(e,t);break;default:this.getValue=r?this._buildInterpolate(e,t):this._buildInterval(e,t)}else this.getValue=this._buildIdentity(e,t);else s?this.getValue=r?this._buildZoomInterpolate(e):this._buildZoomInterval(e):(e=this._validate(e,t),this.getValue=this._buildSimple(e))}_validate(t,e){if(e.type==="number"){if(t<e.minimum)return e.minimum;if(t>e.maximum)return e.maximum}else e.type==="color"?t=gt._parseColor(t):e.type==="enum"?typeof t=="string"&&(t=e.values.indexOf(t)):e.type==="array"&&e.value==="enum"?t=t.map(r=>typeof r=="string"?e.values.indexOf(r):r):e.type==="string"&&(t=bt(t));return t}_buildSimple(t){return()=>t}_buildExpression(t,e){return(r,s)=>{try{const a=t.evaluate(s,r);return a===void 0?e.default:this._validate(a,e)}catch(a){return console.log(a.message),e.default}}}_buildIdentity(t,e){return(r,s)=>{let a;return s&&(a=s.values[t.property]),a!==void 0&&(a=this._validate(a,e)),a!=null?a:t.default!==void 0?t.default:e.default}}_buildCategorical(t,e){return(r,s)=>{let a;return s&&(a=s.values[t.property]),a=this._categorical(a,t.stops),a!==void 0?a:t.default!==void 0?t.default:e.default}}_buildInterval(t,e){return(r,s)=>{let a;return s&&(a=s.values[t.property]),typeof a=="number"?this._interval(a,t.stops):t.default!==void 0?t.default:e.default}}_buildInterpolate(t,e){return(r,s)=>{let a;return s&&(a=s.values[t.property]),typeof a=="number"?this._interpolate(a,t.stops,t.base||1):t.default!==void 0?t.default:e.default}}_buildZoomInterpolate(t){return e=>this._interpolate(e,t.stops,t.base||1)}_buildZoomInterval(t){return e=>this._interval(e,t.stops)}_categorical(t,e){const r=e.length;for(let s=0;s<r;s++)if(e[s][0]===t)return e[s][1]}_interval(t,e){const r=e.length;let s=0;for(let a=0;a<r&&e[a][0]<=t;a++)s=a;return e[s][1]}_interpolate(t,e,r){let s,a;const o=e.length;for(let n=0;n<o;n++){const l=e[n];if(!(l[0]<=t)){a=l;break}s=l}if(s&&a){const n=a[0]-s[0],l=t-s[0],u=r===1?l/n:(r**l-1)/(r**n-1);if(Array.isArray(s[1])){const p=s[1],c=a[1],f=[];for(let _=0;_<p.length;_++)f.push(P(p[_],c[_],u));return f}return P(s[1],a[1],u)}return s?s[1]:a?a[1]:void 0}static _isEmpty(t){for(const e in t)if(t.hasOwnProperty(e))return!1;return!0}static _parseColor(t){return Array.isArray(t)?t:(typeof t=="string"&&(t=new I(t)),t instanceof I&&!this._isEmpty(t)?I.toUnitRGBA(t):void 0)}}var lt;(function(i){i[i.BUTT=0]="BUTT",i[i.ROUND=1]="ROUND",i[i.SQUARE=2]="SQUARE",i[i.UNKNOWN=4]="UNKNOWN"})(lt||(lt={}));class ct{constructor(t,e,r,s){switch(this.type=t,this.typeName=e.type,this.id=e.id,this.source=e.source,this.sourceLayer=e["source-layer"],this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,this.filter=e.filter,this.layout=e.layout,this.paint=e.paint,this.z=r,this.uid=s,t){case b.BACKGROUND:this._layoutDefinition=Y.backgroundLayoutDefinition,this._paintDefinition=Y.backgroundPaintDefinition;break;case b.FILL:this._layoutDefinition=Y.fillLayoutDefinition,this._paintDefinition=Y.fillPaintDefinition;break;case b.LINE:this._layoutDefinition=Y.lineLayoutDefinition,this._paintDefinition=Y.linePaintDefinition;break;case b.SYMBOL:this._layoutDefinition=Y.symbolLayoutDefinition,this._paintDefinition=Y.symbolPaintDefinition;break;case b.CIRCLE:this._layoutDefinition=Y.circleLayoutDefinition,this._paintDefinition=Y.circlePaintDefinition}this._layoutProperties=this._parseLayout(this.layout),this._paintProperties=this._parsePaint(this.paint)}getFeatureFilter(){return this._featureFilter!==void 0?this._featureFilter:this._featureFilter=U.createFilter(this.filter)}getLayoutProperty(t){return this._layoutProperties[t]}getPaintProperty(t){return this._paintProperties[t]}getLayoutValue(t,e,r){let s;const a=this._layoutProperties[t];return a&&(s=a.getValue(e,r)),s===void 0&&(s=this._layoutDefinition[t].default),s}getPaintValue(t,e,r){let s;const a=this._paintProperties[t];return a&&(s=a.getValue(e,r)),s===void 0&&(s=this._paintDefinition[t].default),s}isPainterDataDriven(){const t=this._paintProperties;if(t){for(const e in t)if(t[e].isDataDriven)return!0}return!1}_parseLayout(t){const e={};for(const r in t){const s=this._layoutDefinition[r];s&&(e[r]=new gt(s,t[r]))}return e}_parsePaint(t){const e={};for(const r in t){const s=this._paintDefinition[r];s&&(e[r]=new gt(s,t[r]))}return e}computeAttributesKey(t,e,r,s){let a=0,o=0;for(const n of e){let l=3;if(!n||n!==s){const u=r[n],{isLayout:p,isOptional:c}=u,f=p?this.getLayoutProperty(n):this.getPaintProperty(n);l=f!=null&&f.interpolator?2:f!=null&&f.isDataDriven?1:c&&!f?3:0}o|=l<<a,a+=2}return o<<3|t}}class Qt extends ct{constructor(t,e,r,s){super(t,e,r,s),this.backgroundMaterial=new $(this.computeAttributesKey(et.BACKGROUND,$.ATTRIBUTES,$.ATTRIBUTES_INFO))}}class Xt extends ct{constructor(t,e,r,s){super(t,e,r,s);const a=this.getPaintProperty("fill-color"),o=this.getPaintProperty("fill-opacity"),n=this.getPaintProperty("fill-pattern");this.hasDataDrivenColor=a==null?void 0:a.isDataDriven,this.hasDataDrivenOpacity=o==null?void 0:o.isDataDriven,this.hasDataDrivenFill=this.hasDataDrivenColor||this.hasDataDrivenOpacity||(n==null?void 0:n.isDataDriven);const l=this.getPaintProperty("fill-outline-color");this.outlineUsesFillColor=!l,this.hasDataDrivenOutlineColor=l==null?void 0:l.isDataDriven,this.hasDataDrivenOutline=l?l.isDataDriven:!!a&&a.isDataDriven,this.hasDataDrivenOutline=(l?this.hasDataDrivenOutlineColor:this.hasDataDrivenColor)||this.hasDataDrivenOpacity,this.fillMaterial=new j(this.computeAttributesKey(et.FILL,j.ATTRIBUTES,j.ATTRIBUTES_INFO)),this.outlineMaterial=new x(this.computeAttributesKey(et.OUTLINE,this.outlineUsesFillColor?x.ATTRIBUTES_FILL:x.ATTRIBUTES_OUTLINE,this.outlineUsesFillColor?x.ATTRIBUTES_INFO_FILL:x.ATTRIBUTES_INFO_OUTLINE),this.outlineUsesFillColor)}}class Jt extends ct{constructor(t,e,r,s){var o,n,l,u,p,c,f,_,d;super(t,e,r,s);const a=this.getPaintProperty("line-pattern");if(this.lineMaterial=new K(this.computeAttributesKey(et.LINE,K.ATTRIBUTES,K.ATTRIBUTES_INFO,a?"line-dasharray":"")),this.hasDataDrivenLine=((o=this.getPaintProperty("line-blur"))==null?void 0:o.isDataDriven)||((n=this.getPaintProperty("line-color"))==null?void 0:n.isDataDriven)||((l=this.getPaintProperty("line-gap-width"))==null?void 0:l.isDataDriven)||((u=this.getPaintProperty("line-offset"))==null?void 0:u.isDataDriven)||((p=this.getPaintProperty("line-opacity"))==null?void 0:p.isDataDriven)||((c=this.getPaintProperty("line-pattern"))==null?void 0:c.isDataDriven)||((f=this.getPaintProperty("line-dasharray"))==null?void 0:f.isDataDriven)||((_=this.getLayoutProperty("line-cap"))==null?void 0:_.isDataDriven)||((d=this.getPaintProperty("line-width"))==null?void 0:d.isDataDriven),this.canUseThinTessellation=!1,!this.hasDataDrivenLine){const G=this.getPaintProperty("line-width");if(!G||typeof G=="number"&&.5*G<oe){const R=this.getPaintProperty("line-offset");(!R||typeof R=="number"&&R===0)&&(this.canUseThinTessellation=!0)}}}getDashKey(t,e){let r;switch(e){case lt.BUTT:r="Butt";break;case lt.ROUND:r="Round";break;case lt.SQUARE:r="Square";break;default:r="Butt"}return`dasharray-[${t.toString()}]-${r}`}}class te extends ct{constructor(t,e,r,s){var a,o,n,l,u,p,c,f,_,d,G,R;super(t,e,r,s),this.iconMaterial=new Q(this.computeAttributesKey(et.ICON,Q.ATTRIBUTES,Q.ATTRIBUTES_INFO)),this.textMaterial=new X(this.computeAttributesKey(et.TEXT,X.ATTRIBUTES,X.ATTRIBUTES_INFO)),this.hasDataDrivenIcon=((a=this.getPaintProperty("icon-color"))==null?void 0:a.isDataDriven)||((o=this.getPaintProperty("icon-halo-blur"))==null?void 0:o.isDataDriven)||((n=this.getPaintProperty("icon-halo-color"))==null?void 0:n.isDataDriven)||((l=this.getPaintProperty("icon-halo-width"))==null?void 0:l.isDataDriven)||((u=this.getPaintProperty("icon-opacity"))==null?void 0:u.isDataDriven)||((p=this.getLayoutProperty("icon-size"))==null?void 0:p.isDataDriven),this.hasDataDrivenText=((c=this.getPaintProperty("text-color"))==null?void 0:c.isDataDriven)||((f=this.getPaintProperty("text-halo-blur"))==null?void 0:f.isDataDriven)||((_=this.getPaintProperty("text-halo-color"))==null?void 0:_.isDataDriven)||((d=this.getPaintProperty("text-halo-width"))==null?void 0:d.isDataDriven)||((G=this.getPaintProperty("text-opacity"))==null?void 0:G.isDataDriven)||((R=this.getLayoutProperty("text-size"))==null?void 0:R.isDataDriven)}}class ee extends ct{constructor(t,e,r,s){super(t,e,r,s),this.circleMaterial=new H(this.computeAttributesKey(et.CIRCLE,H.ATTRIBUTES,H.ATTRIBUTES_INFO))}}class Ue{constructor(t,e,r){let s;this.allowOverlap=t.getLayoutValue("icon-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("icon-ignore-placement",e),this.keepUpright=t.getLayoutValue("icon-keep-upright",e),this.optional=t.getLayoutValue("icon-optional",e),this.rotationAlignment=t.getLayoutValue("icon-rotation-alignment",e),this.rotationAlignment===rt.AUTO&&(this.rotationAlignment=r?rt.MAP:rt.VIEWPORT),s=t.getLayoutProperty("icon-anchor"),s!=null&&s.isDataDriven?this._anchorProp=s:this.anchor=t.getLayoutValue("icon-anchor",e),s=t.getLayoutProperty("icon-offset"),s!=null&&s.isDataDriven?this._offsetProp=s:this.offset=t.getLayoutValue("icon-offset",e),s=t.getLayoutProperty("icon-padding"),s!=null&&s.isDataDriven?this._paddingProp=s:this.padding=t.getLayoutValue("icon-padding",e),s=t.getLayoutProperty("icon-rotate"),s!=null&&s.isDataDriven?this._rotateProp=s:this.rotate=t.getLayoutValue("icon-rotate",e),s=t.getLayoutProperty("icon-size"),s!=null&&s.isDataDriven?this._sizeProp=s:this.size=t.getLayoutValue("icon-size",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e))}}class Be{constructor(t,e,r){let s;this.allowOverlap=t.getLayoutValue("text-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("text-ignore-placement",e),this.keepUpright=t.getLayoutValue("text-keep-upright",e),this.optional=t.getLayoutValue("text-optional",e),this.rotationAlignment=t.getLayoutValue("text-rotation-alignment",e),this.rotationAlignment===rt.AUTO&&(this.rotationAlignment=r?rt.MAP:rt.VIEWPORT),s=t.getLayoutProperty("text-anchor"),s!=null&&s.isDataDriven?this._anchorProp=s:this.anchor=t.getLayoutValue("text-anchor",e),s=t.getLayoutProperty("text-justify"),s!=null&&s.isDataDriven?this._justifyProp=s:this.justify=t.getLayoutValue("text-justify",e),s=t.getLayoutProperty("text-letter-spacing"),s!=null&&s.isDataDriven?this._letterSpacingProp=s:this.letterSpacing=t.getLayoutValue("text-letter-spacing",e),s=t.getLayoutProperty("text-line-height"),s!=null&&s.isDataDriven?this._lineHeightProp=s:this.lineHeight=t.getLayoutValue("text-line-height",e),s=t.getLayoutProperty("text-max-angle"),s!=null&&s.isDataDriven?this._maxAngleProp=s:this.maxAngle=t.getLayoutValue("text-max-angle",e),s=t.getLayoutProperty("text-max-width"),s!=null&&s.isDataDriven?this._maxWidthProp=s:this.maxWidth=t.getLayoutValue("text-max-width",e),s=t.getLayoutProperty("text-offset"),s!=null&&s.isDataDriven?this._offsetProp=s:this.offset=t.getLayoutValue("text-offset",e),s=t.getLayoutProperty("text-padding"),s!=null&&s.isDataDriven?this._paddingProp=s:this.padding=t.getLayoutValue("text-padding",e),s=t.getLayoutProperty("text-rotate"),s!=null&&s.isDataDriven?this._rotateProp=s:this.rotate=t.getLayoutValue("text-rotate",e),s=t.getLayoutProperty("text-size"),s!=null&&s.isDataDriven?this._sizeProp=s:this.size=t.getLayoutValue("text-size",e),s=t.getLayoutProperty("text-writing-mode"),s!=null&&s.isDataDriven?this._writingModeProp=s:this.writingMode=t.getLayoutValue("text-writing-mode",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._justifyProp&&(this.justify=this._justifyProp.getValue(t,e)),this._letterSpacingProp&&(this.letterSpacing=this._letterSpacingProp.getValue(t,e)),this._lineHeightProp&&(this.lineHeight=this._lineHeightProp.getValue(t,e)),this._maxAngleProp&&(this.maxAngle=this._maxAngleProp.getValue(t,e)),this._maxWidthProp&&(this.maxWidth=this._maxWidthProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e)),this._writingModeProp&&(this.writingMode=this._writingModeProp.getValue(t,e))}}class ot{constructor(t){if(this._style=t,this.backgroundBucketIds=[],this._uidToLayer=new Map,this._layerByName={},this._runningId=0,t.layers||(t.layers=[]),this.version=parseFloat(t.version),this.layers=t.layers.map((e,r,s)=>this._create(e,r,s)).filter(e=>!!e),this.layers){let e;for(let r=0;r<this.layers.length;r++)e=this.layers[r],this._layerByName[e.id]=e,this._uidToLayer.set(e.uid,e),e.type===b.BACKGROUND&&this.backgroundBucketIds.push(e.id)}this._identifyRefLayers()}isPainterDataDriven(t){const e=this._layerByName[t];return!!e&&e.isPainterDataDriven()}getStyleLayerId(t){return t>=this.layers.length?null:this.layers[t].id}getStyleLayerByUID(t){var e;return(e=this._uidToLayer.get(t))!=null?e:null}getStyleLayerIndex(t){const e=this._layerByName[t];return e?this.layers.indexOf(e):-1}setStyleLayer(t,e){if(!t||!t.id)return;const r=this._style;e!=null&&e>=this.layers.length&&(e=this.layers.length-1);let s,a=!0;const o=this._layerByName[t.id];if(o){const n=this.layers.indexOf(o);e||(e=n),e===n?(a=!1,s=ot._recreateLayer(t,o),this.layers[e]=s,r.layers[e]=t):(this.layers.splice(n,1),r.layers.splice(n,1),s=this._create(t,e,this.layers),this.layers.splice(e,0,s),r.layers.splice(e,0,t))}else s=this._create(t,e,this.layers),!e||e>=this.layers.length?(this.layers.push(s),r.layers.push(t)):(this.layers.splice(e,0,s),r.layers.splice(e,0,t));this._layerByName[t.id]=s,this._uidToLayer.set(s.uid,s),a&&this._recomputeZValues(),this._identifyRefLayers()}getStyleLayer(t){const e=this._layerByName[t];return e?{type:e.typeName,id:e.id,source:e.source,"source-layer":e.sourceLayer,minzoom:e.minzoom,maxzoom:e.maxzoom,filter:e.filter,layout:e.layout,paint:e.paint}:null}deleteStyleLayer(t){const e=this._layerByName[t];if(e){delete this._layerByName[t],this._uidToLayer.delete(e.uid);const r=this.layers.indexOf(e);this.layers.splice(r,1),this._style.layers.splice(r,1),this._recomputeZValues(),this._identifyRefLayers()}}getLayerById(t){return this._layerByName[t]}getLayoutProperties(t){const e=this._layerByName[t];return e?e.layout:null}getPaintProperties(t){const e=this._layerByName[t];return e?e.paint:null}setPaintProperties(t,e){const r=this._layerByName[t];if(!r)return;const s={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:r.layout,paint:e},a=ot._recreateLayer(s,r),o=this.layers.indexOf(r);this.layers[o]=a,this._style.layers[o].paint=e,this._layerByName[r.id]=a,this._uidToLayer.set(r.uid,a)}setLayoutProperties(t,e){const r=this._layerByName[t];if(!r)return;const s={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:e,paint:r.paint},a=ot._recreateLayer(s,r),o=this.layers.indexOf(r);this.layers[o]=a,this._style.layers[o].layout=e,this._layerByName[r.id]=a,this._uidToLayer.set(r.uid,a)}setStyleLayerVisibility(t,e){const r=this._layerByName[t];if(!r)return;const s=r.layout||{};s.visibility=e;const a={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:s,paint:r.paint},o=ot._recreateLayer(a,r),n=this.layers.indexOf(r);this.layers[n]=o,this._style.layers[n].layout=s,this._layerByName[r.id]=o,this._uidToLayer.set(r.uid,o)}getStyleLayerVisibility(t){var r,s;const e=this._layerByName[t];return e?(s=(r=e.layout)==null?void 0:r.visibility)!=null?s:"visible":"none"}_recomputeZValues(){const t=this.layers,e=1/(t.length+1);for(let r=0;r<t.length;r++)t[r].z=1-(1+r)*e}_identifyRefLayers(){var s,a;const t=[],e=[];let r=0;for(const o of this.layers){const n=o.layout;if(o.type===b.FILL){const l=o;let u=o.source+"|"+o.sourceLayer;u+="|"+((s=n==null?void 0:n.visibility)!=null?s:""),u+="|"+o.minzoom,u+="|"+o.maxzoom,u+="|"+JSON.stringify(o.filter),(l.hasDataDrivenFill||l.hasDataDrivenOutline)&&(u+="|"+r),t.push({key:u,layer:o})}else if(o.type===b.LINE){const l=o,u=o.paint,p=u!=null&&(u["line-pattern"]!=null||u["line-dasharray"]!=null);let c=o.source+"|"+o.sourceLayer;c+="|"+((a=n==null?void 0:n.visibility)!=null?a:""),c+="|"+o.minzoom,c+="|"+o.maxzoom,c+="|"+JSON.stringify(o.filter),c+="|"+(n!==void 0?n["line-cap"]:""),c+="|"+(n!==void 0?n["line-join"]:""),(l.hasDataDrivenLine||p)&&(c+="|"+r),e.push({key:c,layer:o})}++r}this._assignRefLayers(t),this._assignRefLayers(e)}_assignRefLayers(t){let e,r;t.sort((a,o)=>a.key<o.key?-1:a.key>o.key?1:0);const s=t.length;for(let a=0;a<s;a++){const o=t[a];if(o.key===e)o.layer.refLayerId=r;else if(e=o.key,r=o.layer.id,o.layer.type===b.FILL){if(!o.layer.getPaintProperty("fill-outline-color"))for(let n=a+1;n<s;n++){const l=t[n];if(l.key!==e)break;if(l.layer.getPaintProperty("fill-outline-color")){t[a]=l,t[n]=o,r=l.layer.id;break}}}else if(o.layer.type===b.LINE){let n=o.layer;for(let l=a+1;l<s;l++){const u=t[l];if(u.key!==e)break;const p=u.layer;(n.canUseThinTessellation&&!p.canUseThinTessellation||!n.canUseThinTessellation&&(p.getPaintProperty("line-pattern")||p.getPaintProperty("line-dasharray")))&&(n=p,t[a]=u,t[l]=o,r=u.layer.id)}}}}_create(t,e,r){const s=1-(1+e)*(1/(r.length+1)),a=this._runningId++;switch(t.type){case"background":return new Qt(b.BACKGROUND,t,s,a);case"fill":return new Xt(b.FILL,t,s,a);case"line":return new Jt(b.LINE,t,s,a);case"symbol":return new te(b.SYMBOL,t,s,a);case"raster":console.warn(`Unsupported vector tile raster layer ${t.id}`);case"circle":return new ee(b.CIRCLE,t,s,a)}}static _recreateLayer(t,e){switch(t.type){case"background":return new Qt(b.BACKGROUND,t,e.z,e.uid);case"fill":return new Xt(b.FILL,t,e.z,e.uid);case"line":return new Jt(b.LINE,t,e.z,e.uid);case"symbol":return new te(b.SYMBOL,t,e.z,e.uid);case"raster":console.warn(`Unsupported vector tile raster layer ${t.id}`);case"circle":return new ee(b.CIRCLE,t,e.z,e.uid)}}}export{Ue as T,ot as l,Be as m,le as t};
|