(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[634],{6158:function(b,c,a){vard=a(3454);!function(c,a){b.exports=a()}(this,function(){"use strict";varc,e,b;functiona(g,a){if(c){if(e){varf="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+c+")(sharedChunk); ("+e+")(sharedChunk); self.onerror = null;",d={};c(d),b=a(d),"undefined"!=typeofwindow&&window&&window.URL&&window.URL.createObjectURL&&(b.workerUrl=window.URL.createObjectURL(newBlob([f],{type:"text/javascript"})))}elsee=a}elsec=a}returna(["exports"],function(a){varbq="2.7.0",eG=H;functionH(a,c,d,b){this.cx=3*a,this.bx=3*(d-a)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*c,this.by=3*(b-c)-this.cy,this.ay=1-this.cy-this.by,this.p1x=a,this.p1y=b,this.p2x=d,this.p2y=b}H.prototype.sampleCurveX=function(a){return((this.ax*a+this.bx)*a+this.cx)*a},H.prototype.sampleCurveY=function(a){return((this.ay*a+this.by)*a+this.cy)*a},H.prototype.sampleCurveDerivativeX=function(a){return(3*this.ax*a+2*this.bx)*a+this.cx},H.prototype.solveCurveX=function(c,e){varb,d,a,f,g;for(void0===e&&(e=1e-6),a=c,g=0;g<8;g++){if(Math.abs(f=this.sampleCurveX(a)-c)<e)returna;varh=this.sampleCurveDerivativeX(a);if(1e-6>Math.abs(h))break;a-=f/h}if((a=c)<(b=0))returnb;if(a>(d=1))returnd;for(;b<d&&!(Math.abs((f=this.sampleCurveX(a))-c)<e);)c>f?b=a:d=a,a=.5*(d-b)+b;returna},H.prototype.solve=function(a,b){returnthis.sampleCurveY(this.solveCurveX(a,b))};varaF=aG;functionaG(a,b){this.x=a,this.y=b}aG.prototype={clone:function(){returnnewaG(this.x,this.y)},add:function(a){returnthis.clone()._add(a)},sub:function(a){returnthis.clone()._sub(a)},multByPoint:function(a){returnthis.clone()._multByPoint(a)},divByPoint:function(a){returnthis.clone()._divByPoint(a)},mult:function(a){returnthis.clone()._mult(a)},div:function(a){returnthis.clone()._div(a)},rotate:function(a){returnthis.clone()._rotate(a)},rotateAround:function(a,b){returnthis.clone()._rotateAround(a,b)},matMult:function(a){returnthis.clone()._matMult(a)},unit:function(){returnthis.clone()._unit()},perp:function(){returnthis.clone()._perp()},round:function(){returnthis.clone()._round()},mag:function(){returnMath.sqrt(this.x*this.x+this.y*this.y)},equals:function(a){returnthis.x===a.x&&this.y===a.y},dist:function(a){returnMath.sqrt(this.distSqr(a))},distSqr:function(a){varb=a.x-this.x,c=a.y-this.y;returnb*b+c*c},angle:function(){returnMath.atan2(this.y,this.x)},angleTo:function(a){returnMath.atan2(this.y-a.y,this.x-a.x)},angleWith:function(a){returnthis.angleWithSep(a.x,a.y)},angleWithSep:function(a,b){returnMath.atan2(this.x*b-this.y*a,this.x*a+this.y*b)},_matMult:function(a){varb=a[2]*this.x+a[3]*this.y;returnthis.x=a[0]*this.x+a[1]*this.y,this.y=b,this},_add:function(a){returnthis.x+=a.x,this.y+=a.y,this},_sub:function(a){returnthis.x-=a.x,this.y-=a.y,this},_mult:function(a){returnthis.x*=a,this.y*=a,this},_div:function(a){returnthis.x/=a,this.y/=a,this},_multByPoint:function(a){returnthis.x*=a.x,this.y*=a.y,this},_divByPoint:function(a){returnthis.x/=a.x,this.y/=a.y,this},_unit:function(){returnthis._div(this.mag()),this},_perp:function(){vara=this.y;returnthis.y=this.x,this.x=-a,this},_rotate:function(a){varb=Math.cos(a),c=Math.sin(a),d=c*this.x+b*this.y;returnthis.x=b*this.x-c*this.y,this.y=d,this},_rotateAround:function(b,a){varc=Math.cos(b),d=Math.sin(b),e=a.y+d*(this.x-a.x)+c*(this.y-a.y);returnthis.x=a.x+c*(this.x-a.x)-d*(this.y-a.y),this.y=e,this},_round:function(){returnthis.x=Math.round(this.x),this.y=Math.round(this.y),this}},aG.convert=function(a){returnainstanceofaG?a:Array.isArray(a)?newaG(a[0],a[1]):a};vars="undefined"!=typeofself?self:{},I="undefined"!=typeofFloat32Array?Float32Array:Array;functionaH(){vara=newI(9);returnI!=Float32Array&&(a[1]=0,a[2]=0,a[3]=0,a[5]=0,a[6]=0,a[7]=0),a[0]=1,a[4]=1,a[8]=1,a}functionaI(a){returna[0]=1,a[1]=0,a[2]=0,a
Useanidentitypropertyfunctioninstead:\`{ "type": "identity", "property": ${JSON.stringify(l[1])} }\`.`),];constk=[];return"symbol"===b.layerType&&("text-field"===c&&e&&!e.glyphs&&k.push(newcc(d,a,'use of "text-field" requires a style "glyphs" property')),"text-font"===c&&gn(fq(a))&&"identity"===fp(a.type)&&k.push(newcc(d,a,'"text-font" does not support identity functions'))),k.concat(gR({key:b.key,value:a,valueSpec:h,style:e,styleSpec:f,expressionContext:"property",propertyType:i,propertyKey:c}))}functioncW(a){returngO(a,"paint")}functioncX(a){returngO(a,"layout")}functiona0(d){letb=[];consta=d.value,c=d.key,g=d.style,l=d.styleSpec;a.type||a.ref||b.push(newcc(c,a,'either "type" or "ref" is required'));lete=fp(a.type);constm=fp(a.ref);if(a.id){constn=fp(a.id);for(leti=0;i<d.arrayIndex;i++){constk=g.layers[i];fp(k.id)===n&&b.push(newcc(c,a.id,`duplicate layer id "${a.id}", previously used at line ${k.id.__line__}`))}}if("ref"ina){letj;["type","source","source-layer","filter","layout",].forEach(d=>{dina&&b.push(newcc(c,a[d],`"${d}" is prohibited for ref layers`))}),g.layers.forEach(a=>{fp(a.id)===m&&(j=a)}),j?j.ref?b.push(newcc(c,a.ref,"ref cannot reference another ref layer")):e=fp(j.type):b.push(newcc(c,a.ref,`ref layer "${m}" not found`))}elseif("background"!==e&&"sky"!==e){if(a.source){consth=g.sources&&g.sources[a.source],f=h&&fp(h.type);h?"vector"===f&&"raster"===e?b.push(newcc(c,a.source,`layer "${a.id}" requires a raster source`)):"raster"===f&&"raster"!==e?b.push(newcc(c,a.source,`layer "${a.id}" requires a vector source`)):"vector"!==f||a["source-layer"]?"raster-dem"===f&&"hillshade"!==e?b.push(newcc(c,a.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"===e&&a.paint&&a.paint["line-gradient"]&&("geojson"!==f||!h.lineMetrics)&&b.push(newcc(c,a,`layer "${a.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):b.push(newcc(c,a,`layer "${a.id}" must specify a "source-layer"`)):b.push(newcc(c,a.source,`source "${a.source}" not found`))}elseb.push(newcc(c,a,'missing required property "source"'))}returnb=b.concat(cR({key:c,value:a,valueSpec:l.layer,style:d.style,styleSpec:d.styleSpec,objectElementValidators:{"*":()=>[],type:()=>gR({key:`${c}.type`,value:a.type,valueSpec:l.layer.type,style:d.style,styleSpec:d.styleSpec,object:a,objectKey:"type"}),filter:a=>a_(ce({layerType:e},a)),layout:b=>cR({layer:a,key:b.key,value:b.value,style:b.style,styleSpec:b.styleSpec,objectElementValidators:{"*":a=>cX(ce({layerType:e},a))}}),paint:b=>cR({layer:a,key:b.key,value:b.value,style:b.style,styleSpec:b.styleSpec,objectElementValidators:{"*":a=>cW(ce({layerType:e},a))}})}}))}functioncY(a){constb=a.value,d=a.key,c=gm(b);return"string"!==c?[newcc(d,b,`string expected, ${c} found`)]:[]}constgP={promoteId:function({key:b,value:a}){if("string"===gm(a))returncY({key:b,value:a});{constc=[];for(constdina)c.push(...cY({key:`${b}.${d}`,value:a[d]}));returnc}}};functiona1(d){consta=d.value,b=d.key,c=d.styleSpec,e=d.style;if(!a.type)return[newcc(b,a,'"type" is required')];consti=fp(a.type);letf;switch(i){case"vector":case"raster":case"raster-dem":returncR({key:b,value:a,valueSpec:c[`source_${i.replace("-","_")}`],style:d.style,styleSpec:c,objectElementValidators:gP});case"geojson":if(f=cR({key:b,value:a,valueSpec:c.source_geojson,style:e,styleSpec:c,objectElementValidators:gP}),a.cluster)for(constgina.clusterProperties){const[h,j]=a.clusterProperties[g],k="string"==typeofh?[h,["accumulated"],["get",g],]:h;f.push(...gy({key:`${b}.${g}.map`,value:j,expressionContext:"cluster-map"})),f.push(...gy({key:`${b}.${g}.reduce`,value:k,expressionContext:"cluster-reduce"}))}returnf;case"video":returncR({key:b,value:a,valueSpec:c.source_video,style:e,styleSpec:c});case"image":returncR({key:b,value:a,valueSpec:c.source_image,style:e,styleSpec:c});case"canvas":return[newcc(b,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas"),];default:returncV({key:`${b}.type`,val