/*! For license information please see common.js.LICENSE.txt */ (()=>{var t,e={9828:t=>{"use strict";function e(t,e){this.x=t,this.y=e}t.exports=e,e.prototype={clone:function(){return new e(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=e*this.x-r*this.y,i=r*this.x+e*this.y;return this.x=n,this.y=i,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),i=e.x+r*(this.x-e.x)-n*(this.y-e.y),o=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=i,this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},e.convert=function(t){return t instanceof e?t:Array.isArray(t)?new e(t[0],t[1]):t}},8657:t=>{function e(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}t.exports=e,e.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},e.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},e.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},e.prototype.solveCurveX=function(t,e){var r,n,i,o,a;for(void 0===e&&(e=1e-6),i=t,a=0;a<8;a++){if(o=this.sampleCurveX(i)-t,Math.abs(o)(n=1))return n;for(;ro?r=i:n=i,i=.5*(n-r)+r}return i},e.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}},5933:(t,e)=>{var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function n(t){return(t=Math.round(t))<0?0:t>255?255:t}function i(t){return t<0?0:t>1?1:t}function o(t){return"%"===t[t.length-1]?n(parseFloat(t)/100*255):n(parseInt(t))}function a(t){return"%"===t[t.length-1]?i(parseFloat(t)/100):i(parseFloat(t))}function s(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}try{e.G=function(t){var e,i=t.replace(/ /g,"").toLowerCase();if(i in r)return r[i].slice();if("#"===i[0])return 4===i.length?(e=parseInt(i.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===i.length&&(e=parseInt(i.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var l=i.indexOf("("),u=i.indexOf(")");if(-1!==l&&u+1===i.length){var h=i.substr(0,l),p=i.substr(l+1,u-(l+1)).split(","),c=1;switch(h){case"rgba":if(4!==p.length)return null;c=a(p.pop());case"rgb":return 3!==p.length?null:[o(p[0]),o(p[1]),o(p[2]),c];case"hsla":if(4!==p.length)return null;c=a(p.pop());case"hsl":if(3!==p.length)return null;var f=(parseFloat(p[0])%360+360)%360/360,d=a(p[1]),y=a(p[2]),g=y<=.5?y*(d+1):y+d-y*d,v=2*y-g;return[n(255*s(v,g,f+1/3)),n(255*s(v,g,f)),n(255*s(v,g,f-1/3)),c];default:return null}}return null}}catch(t){}},5796:(t,e)=>{e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,l=(1<>1,h=-7,p=r?i-1:0,c=r?-1:1,f=t[e+p];for(p+=c,o=f&(1<<-h)-1,f>>=-h,h+=s;h>0;o=256*o+t[e+p],p+=c,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=256*a+t[e+p],p+=c,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=u}return(f?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,l,u=8*o-i-1,h=(1<>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+p>=1?c/l:c*Math.pow(2,1-p))*l>=2&&(a++,l/=2),a+p>=h?(s=0,a=h):a+p>=1?(s=(e*l-1)*Math.pow(2,i),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;t[r+f]=255&s,f+=d,s/=256,i-=8);for(a=a<0;t[r+f]=255&a,f+=d,a/=256,u-=8);t[r+f-d]|=128*y}},4376:t=>{var e={thin:100,hairline:100,"ultra-light":100,"extra-light":100,light:200,book:300,regular:400,normal:400,plain:400,roman:400,standard:400,medium:500,"semi-bold":600,"demi-bold":600,bold:700,heavy:800,black:800,"extra-bold":800,"ultra-black":900,"extra-black":900,"ultra-bold":900,"heavy-black":900,fat:900,poster:900},r=" ",n=/(italic|oblique)$/i,i={};t.exports=function(t,o,a){var s=i[t];if(!s){Array.isArray(t)||(t=[t]);for(var l=400,u="normal",h=[],p=0,c=t.length;p1?f[f.length-2].toLowerCase():"";if(d==y||d==y.replace("-","")||g+"-"+d==y){l=e[y],f.pop(),g&&y.startsWith(g)&&f.pop();break}}"number"==typeof d&&(l=d);var v=f.join(r).replace("Klokantech Noto Sans","Noto Sans");-1!==v.indexOf(r)&&(v='"'+v+'"'),h.push(v)}s=i[t]=[u,l,h]}return s[0]+r+s[1]+r+o+"px"+(a?"/"+a:"")+r+s[2]}},1494:t=>{t.exports=function t(r,n){if(!r){var i=new e(n);throw Error.captureStackTrace&&Error.captureStackTrace(i,t),i}};var e=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error);e.prototype.name="AssertionError"},9455:(t,e,r)=>{"use strict";t.exports=i;var n=r(5796);function i(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}i.Varint=0,i.Fixed64=1,i.Bytes=2,i.Fixed32=5;var o=4294967296,a=1/o,s="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function l(t){return t.type===i.Bytes?t.readVarint()+t.pos:t.pos+1}function u(t,e,r){return r?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function h(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i>=t;i--)r.buf[i+n]=r.buf[i]}function p(t,e){for(var r=0;r>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function w(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}i.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos>3,o=this.pos;this.type=7&n,t(i,e,this),this.pos===o&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=x(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=w(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=x(this.buf,this.pos)+x(this.buf,this.pos+4)*o;return this.pos+=8,t},readSFixed64:function(){var t=x(this.buf,this.pos)+w(this.buf,this.pos+4)*o;return this.pos+=8,t},readFloat:function(){var t=n.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=n.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&(r=n[this.pos++]),r<128?e:(e|=(127&(r=n[this.pos++]))<<7,r<128?e:(e|=(127&(r=n[this.pos++]))<<14,r<128?e:(e|=(127&(r=n[this.pos++]))<<21,r<128?e:function(t,e,r){var n,i,o=r.buf;if(n=(112&(i=o[r.pos++]))>>4,i<128)return u(t,n,e);if(n|=(127&(i=o[r.pos++]))<<3,i<128)return u(t,n,e);if(n|=(127&(i=o[r.pos++]))<<10,i<128)return u(t,n,e);if(n|=(127&(i=o[r.pos++]))<<17,i<128)return u(t,n,e);if(n|=(127&(i=o[r.pos++]))<<24,i<128)return u(t,n,e);if(n|=(1&(i=o[r.pos++]))<<31,i<128)return u(t,n,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(r=n[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&s?function(t,e,r){return s.decode(t.subarray(e,r))}(this.buf,e,t):function(t,e,r){for(var n="",i=e;i239?4:l>223?3:l>191?2:1;if(i+h>r)break;1===h?l<128&&(u=l):2===h?128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)<=127&&(u=null):3===h?(o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&((u=(15&l)<<12|(63&o)<<6|63&a)<=2047||u>=55296&&u<=57343)&&(u=null)):4===h&&(o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&((u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,h=1):u>65535&&(u-=65536,n+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),n+=String.fromCharCode(u),i+=h}return n}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==i.Bytes)return t.push(this.readVarint(e));var r=l(this);for(t=t||[];this.pos127;);else if(e===i.Bytes)this.pos=this.readVarint()+this.pos;else if(e===i.Fixed32)this.pos+=4;else{if(e!==i.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e268435455||t<0?function(t,e){var r,n;if(t>=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,r){r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos]=127&t}(r,0,e),function(t,e){var r=(7&t)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,r){for(var n,i,o=0;o55295&&n<57344){if(!i){n>56319||o+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296<<10|n-56320|65536,i=null}else i&&(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=63&n|128)}return r}(this.buf,t,this.pos);var r=this.pos-e;r>=128&&h(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),n.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),n.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r=128&&h(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,i.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,p,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,c,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,y,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,f,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,d,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,g,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,v,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,m,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,_,e)},writeBytesField:function(t,e){this.writeTag(t,i.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,i.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,i.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,i.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,i.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,i.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,i.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,i.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,i.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,i.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}}},53:function(t){t.exports=function(){"use strict";function t(t,n,i,o,a){!function t(r,n,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=n-i+1,u=Math.log(s),h=.5*Math.exp(2*u/3),p=.5*Math.sqrt(u*h*(s-h)/s)*(l-s/2<0?-1:1);t(r,n,Math.max(i,Math.floor(n-l*h/s+p)),Math.min(o,Math.floor(n+(s-l)*h/s+p)),a)}var c=r[n],f=i,d=o;for(e(r,i,n),a(r[o],c)>0&&e(r,i,o);f0;)d--}0===a(r[i],c)?e(r,i,d):e(r,++d,o),d<=n&&(i=d+1),n<=d&&(o=d-1)}}(t,n,i||0,o||t.length-1,a||r)}function e(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function r(t,e){return te?1:0}var n=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(t,e,r){if(!r)return e.indexOf(t);for(var n=0;n=t.minX&&e.maxY>=t.minY}function d(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(e,r,n,i,o){for(var a=[r,n];a.length;)if(!((n=a.pop())-(r=a.pop())<=i)){var s=r+Math.ceil((n-r)/i/2)*i;t(e,s,r,n,o),a.push(r,s,s,n)}}return n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(t){var e=this.data,r=[];if(!f(t,e))return r;for(var n=this.toBBox,i=[];e;){for(var o=0;o=0&&i[e].children.length>this._maxEntries;)this._split(i,e),e--;this._adjustParentBBoxes(n,i,e)},n.prototype._split=function(t,e){var r=t[e],n=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,n);var a=this._chooseSplitIndex(r,i,n),s=d(r.children.splice(a,r.children.length-a));s.height=r.height,s.leaf=r.leaf,o(r,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(r,s)},n.prototype._splitRoot=function(t,e){this.data=d([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},n.prototype._chooseSplitIndex=function(t,e,r){for(var n,i,o,s,l,u,p,c=1/0,f=1/0,d=e;d<=r-e;d++){var y=a(t,0,d,this.toBBox),g=a(t,d,r,this.toBBox),v=(i=y,o=g,void 0,void 0,void 0,void 0,s=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),u=Math.min(i.maxX,o.maxX),p=Math.min(i.maxY,o.maxY),Math.max(0,u-s)*Math.max(0,p-l)),m=h(y)+h(g);v=e;f--){var d=t.children[f];s(l,t.leaf?i(d):d),u+=p(l)}return u},n.prototype._adjustParentBBoxes=function(t,e,r){for(var n=r;n>=0;n--)s(e[n],t)},n.prototype._condense=function(t){for(var e=t.length-1,r=void 0;e>=0;e--)0===t[e].children.length?e>0?(r=t[e-1].children).splice(r.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},n}()},840:t=>{t.exports={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},fog:{type:"fog"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},projection:{type:"projection"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{},sky:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_sky:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_symbol:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature","pitch","distance-from-center"]}},filter_fill:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_line:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_circle:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},"filter_fill-extrusion":{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_heatmap:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Camera"},pitch:{group:"Camera"},"distance-from-center":{group:"Camera"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},"sky-radial-progress":{group:"sky"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"high-color":{type:"color","property-type":"data-constant",default:"#245cdf",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"space-color":{type:"color","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,.2,7,.1],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"star-intensity":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],5,.35,6,0],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},projection:{name:{type:"enum",values:{albers:{},equalEarth:{},equirectangular:{},lambertConformalConic:{},mercator:{},naturalEarth:{},winkelTripel:{},globe:{}},default:"mercator",required:!0},center:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-180,-90],maximum:[180,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]},parallels:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-90,-90],maximum:[90,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["source"]}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{type:"array",value:"number",length:2,default:[0,0],minimum:[0,0],maximum:[1,1],transition:!1,requires:[{source:"geojson",has:{lineMetrics:!0}}],"property-type":"constant"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{},atmosphere:{}},default:"atmosphere",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],transition:!1,requires:[{"sky-type":"gradient"}],expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}}},9789:()=>{},6643:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});var n,i=r(4415),o=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const a=function(t){function e(e){var r=this,n="Assertion failed. See https://openlayers.org/en/"+("latest"===i.q4?i.q4:"v"+i.q4.split("-")[0])+"/doc/errors/#"+e+" for details.";return(r=t.call(this,n)||this).code=e,r.name="AssertionError",r.message=n,r}return o(e,t),e}(Error)},6193:(t,e,r)=>{"use strict";r.d(e,{Z:()=>p});var n,i=r(6643),o=r(12),a=r(5917),s=r(7288),l=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u="length",h=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.element=r,i.index=n,i}return l(e,t),e}(s.ZP);const p=function(t){function e(e,r){var n=t.call(this)||this;n.on,n.once,n.un;var i=r||{};if(n.unique_=!!i.unique,n.array_=e||[],n.unique_)for(var o=0,a=n.array_.length;o0;)this.pop()},e.prototype.extend=function(t){for(var e=0,r=t.length;e{"use strict";r.d(e,{Z:()=>n});const n={ADD:"add",REMOVE:"remove"}},2083:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n=function(){function t(){this.disposed=!1}return t.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},t.prototype.disposeInternal=function(){},t}()},3458:(t,e,r)=>{"use strict";r.d(e,{K:()=>y});var n,i=r(7758),o=r(8408),a=r(4415),s=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),l=function(t){function e(e,r,n,i){var o=t.call(this)||this;return o.extent=e,o.pixelRatio_=n,o.resolution=r,o.state=i,o}return s(e,t),e.prototype.changed=function(){this.dispatchEvent(i.Z.CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return(0,a.O3)()},e.prototype.getPixelRatio=function(){return this.pixelRatio_},e.prototype.getResolution=function(){return this.resolution},e.prototype.getState=function(){return this.state},e.prototype.load=function(){(0,a.O3)()},e}(o.Z);const u=l;var h=r(8260),p=r(6299),c=r(2005),f=r(5310),d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function y(t,e,r){var n=t,o=!0,a=!1,s=!1,l=[(0,f.Vx)(n,i.Z.LOAD,(function(){s=!0,a||e()}))];return n.src&&p.Tp?(a=!0,n.decode().then((function(){o&&e()})).catch((function(t){o&&(s?e():r())}))):l.push((0,f.Vx)(n,i.Z.ERROR,r)),function(){o=!1,l.forEach(f.bN)}}!function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r,n,h.Z.IDLE)||this;return s.src_=i,s.image_=new Image,null!==o&&(s.image_.crossOrigin=o),s.unlisten_=null,s.state=h.Z.IDLE,s.imageLoadFunction_=a,s}d(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=h.Z.ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=(0,c.Cr)(this.extent)/this.image_.height),this.state=h.Z.LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=h.Z.IDLE&&this.state!=h.Z.ERROR||(this.state=h.Z.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=y(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.setImage=function(t){this.image_=t,this.resolution=(0,c.Cr)(this.extent)/this.image_.height},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}(u)},8260:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},7341:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});var n,i=r(3102),o=r(5816),a=r(766),s=r(3458),l=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const u=function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r,a)||this;return s.crossOrigin_=i,s.src_=n,s.key=n,s.image_=new Image,null!==i&&(s.image_.crossOrigin=i),s.unlisten_=null,s.tileLoadFunction_=o,s}return l(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=o.Z.LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){var t;this.state=o.Z.ERROR,this.unlistenImage_(),this.image_=((t=(0,a.E4)(1,1)).fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=o.Z.LOADED:this.state=o.Z.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==o.Z.ERROR&&(this.state=o.Z.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==o.Z.IDLE&&(this.state=o.Z.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,s.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(i.Z)},6219:(t,e,r)=>{"use strict";r.d(e,{Z:()=>ve});var n,i=r(2083),o=r(1998),a=r(4415),s=r(4765),l=r(2005),u=r(6929),h=r(7385),p=r(5353),c=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function f(t,e){u.c.expire()}const d=function(t){function e(e){var r=t.call(this)||this;return r.map_=e,r}return c(e,t),e.prototype.dispatchRenderEvent=function(t,e){(0,a.O3)()},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,r=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;(0,s.qC)(r,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),(0,s.nb)(n,r)},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i,o,a,s){var u,c=e.viewState;function f(t,e,r,n){return i.call(o,e,t?r:null,n)}var d=c.projection,y=(0,p.Cf)(t.slice(),d),g=[[0,0]];if(d.canWrapX()&&n){var v=d.getExtent(),m=(0,l.dz)(v);g.push([-m,0],[m,0])}for(var _=e.layerStatesArray,x=_.length,b=[],w=[],C=0;C=0;--E){var S=_[E],T=S.layer;if(T.hasRenderer()&&(0,h.j)(S,c)&&a.call(s,T)){var O=T.getRenderer(),P=T.getSource();if(O&&P){var R=P.getWrapX()?y:t,I=f.bind(null,S.managed);w[0]=R[0]+g[C][0],w[1]=R[1]+g[C][1],u=O.forEachFeatureAtCoordinate(w,e,r,I,b)}if(u)return u}}if(0!==b.length){var M=1/b.length;return b.forEach((function(t,e){return t.distanceSq+=e*M})),b.sort((function(t,e){return t.distanceSq-e.distanceSq})),b.some((function(t){return u=t.callback(t.feature,t.layer,t.geometry)})),u}},e.prototype.forEachLayerAtPixel=function(t,e,r,n,i){return(0,a.O3)()},e.prototype.hasFeatureAtCoordinate=function(t,e,r,n,i,a){return void 0!==this.forEachFeatureAtCoordinate(t,e,r,n,o.uX,this,i,a)},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){(0,a.O3)()},e.prototype.scheduleExpireIconCache=function(t){u.c.canExpireCache()&&t.postRenderFunctions.push(f)},e}(i.Z);var y=r(1846),g=r(6178),v=r(3557),m=r(8308),_=r(9680),x=r(5310),b=r(766),w=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const C=function(t){function e(e){var r=t.call(this,e)||this;r.fontChangeListenerKey_=(0,x.oL)(_.sG,y.Z.PROPERTYCHANGE,e.redrawText.bind(e)),r.element_=document.createElement("div");var n=r.element_.style;n.position="absolute",n.width="100%",n.height="100%",n.zIndex="0",r.element_.className=m.XV+" ol-layers";var i=e.getViewport();return i.insertBefore(r.element_,i.firstChild||null),r.children_=[],r.renderedVisible_=!0,r}return w(e,t),e.prototype.dispatchRenderEvent=function(t,e){var r=this.getMap();if(r.hasListener(t)){var n=new g.Z(t,void 0,e);r.dispatchEvent(n)}},e.prototype.disposeInternal=function(){(0,x.bN)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),t.prototype.disposeInternal.call(this)},e.prototype.renderFrame=function(t){if(t){this.calculateMatrices2D(t),this.dispatchRenderEvent(v.Z.PRECOMPOSE,t);var e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),r=t.viewState;this.children_.length=0;for(var n=[],i=null,o=0,a=e.length;o=0;--o)n[o].renderDeclutter(t);(0,b.hF)(this.element_,this.children_),this.dispatchRenderEvent(v.Z.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},e.prototype.forEachLayerAtPixel=function(t,e,r,n,i){for(var o=e.viewState,a=e.layerStatesArray,s=a.length-1;s>=0;--s){var l=a[s],u=l.layer;if(u.hasRenderer()&&(0,h.j)(l,o)&&i(u)){var p=u.getRenderer().getDataAtPixel(t,e,r);if(p){var c=n(u,p);if(c)return c}}}},e}(d);var E=r(12),S=r(6193),T=r(5917),O=r(7758),P=r(8319),R=r(7288),I=r(9751),M=r(273),A=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),k=function(t){function e(e,r){var n=t.call(this,e)||this;return n.layer=r,n}return A(e,t),e}(R.ZP),F="layers",L=function(t){function e(e){var r=this,n=e||{},i=(0,M.f0)({},n);delete i.layers;var o=n.layers;return(r=t.call(this,i)||this).on,r.once,r.un,r.layersListenerKeys_=[],r.listenerKeys_={},r.addChangeListener(F,r.handleLayersChanged_),o?Array.isArray(o)?o=new S.Z(o.slice(),{unique:!0}):(0,I.h)("function"==typeof o.getArray,43):o=new S.Z(void 0,{unique:!0}),r.setLayers(o),r}return A(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(x.bN),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push((0,x.oL)(t,T.Z.ADD,this.handleLayersAdd_,this),(0,x.oL)(t,T.Z.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(x.bN);(0,M.ZH)(this.listenerKeys_);for(var r=t.getArray(),n=0,i=r.length;nthis.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&((0,x.bN)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(O.Z.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,x.bN)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(x.bN),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(W.Z),B="postrender",U="loadstart",K="loadend",H="layergroup",J="size",$="target",Q="view";var tt=1/0;const et=function(){function t(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return t.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,(0,M.ZH)(this.queuedElements_)},t.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,r=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var n=this.keyFunction_(r);return delete this.queuedElements_[n],r},t.prototype.enqueue=function(t){(0,I.h)(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=tt&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},t.prototype.getCount=function(){return this.elements_.length},t.prototype.getLeftChildIndex_=function(t){return 2*t+1},t.prototype.getRightChildIndex_=function(t){return 2*t+2},t.prototype.getParentIndex_=function(t){return t-1>>1},t.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},t.prototype.isEmpty=function(){return 0===this.elements_.length},t.prototype.isKeyQueued=function(t){return t in this.queuedElements_},t.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},t.prototype.siftUp_=function(t){for(var e=this.elements_,r=this.priorities_,n=e.length,i=e[t],o=r[t],a=t;t>1;){var s=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),u=lt;){var a=this.getParentIndex_(e);if(!(n[a]>o))break;r[e]=r[a],n[e]=n[a],e=a}r[e]=i,n[e]=o},t.prototype.reprioritize=function(){var t,e,r,n=this.priorityFunction_,i=this.elements_,o=this.priorities_,a=0,s=i.length;for(e=0;e0;)n=(r=this.dequeue()[0]).getKey(),r.getState()!==rt.Z.IDLE||n in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[n]=!0,++this.tilesLoading_,++i,r.load())},e}(et);var ot=r(8615),at=r(8921),st=r(9786),lt=r(7814),ut=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function ht(t){t instanceof h.Z?t.setMapInternal(null):t instanceof Z&&t.getLayers().forEach(ht)}function pt(t,e){if(t instanceof h.Z)t.setMapInternal(e);else if(t instanceof Z)for(var r=t.getLayers().getArray(),n=0,i=r.length;n=0;s--){var l=a[s];if(l.getMap()===this&&l.getActive()&&this.getTargetElement()&&(!l.handleEvent(t)||t.propagationStopped))break}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var r=this.maxTilesLoading_,n=r;if(t){var i=t.viewHints;if(i[at.Z.ANIMATING]||i[at.Z.INTERACTING]){var o=Date.now()-t.time>8;r=o?0:8,n=o?0:2}}e.getTilesLoading()0;if(this.renderedVisible_!=r&&(this.element.style.display=r?"":"none",this.renderedVisible_=r),!(0,yt.fS)(e,this.renderedAttributions_)){(0,b.ep)(this.ulElement_);for(var n=0,i=e.length;n0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:mt.Vv}):t.setRotation(0))}},e.prototype.render=function(t){var e=t.frameState;if(e){var r=e.viewState.rotation;if(r!=this.rotation_){var n="rotate("+r+"rad)";if(this.autoHide_){var i=this.element.classList.contains(m.oj);i||0!==r?i&&0!==r&&this.element.classList.remove(m.oj):this.element.classList.add(m.oj)}this.label_.style.transform=n}this.rotation_=r}},e}(dt);const bt=xt;var wt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Ct=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),target:n.target})||this;var i=void 0!==n.className?n.className:"ol-zoom",o=void 0!==n.delta?n.delta:1,a=void 0!==n.zoomInClassName?n.zoomInClassName:i+"-in",s=void 0!==n.zoomOutClassName?n.zoomOutClassName:i+"-out",l=void 0!==n.zoomInLabel?n.zoomInLabel:"+",u=void 0!==n.zoomOutLabel?n.zoomOutLabel:"–",h=void 0!==n.zoomInTipLabel?n.zoomInTipLabel:"Zoom in",p=void 0!==n.zoomOutTipLabel?n.zoomOutTipLabel:"Zoom out",c=document.createElement("button");c.className=a,c.setAttribute("type","button"),c.title=h,c.appendChild("string"==typeof l?document.createTextNode(l):l),c.addEventListener(O.Z.CLICK,r.handleClick_.bind(r,o),!1);var f=document.createElement("button");f.className=s,f.setAttribute("type","button"),f.title=p,f.appendChild("string"==typeof u?document.createTextNode(u):u),f.addEventListener(O.Z.CLICK,r.handleClick_.bind(r,-o),!1);var d=i+" "+m.XV+" "+m.hg,y=r.element;return y.className=d,y.appendChild(c),y.appendChild(f),r.duration_=void 0!==n.duration?n.duration:250,r}return wt(e,t),e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap().getView();if(e){var r=e.getZoom();if(void 0!==r){var n=e.getConstrainedZoom(r+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:n,duration:this.duration_,easing:mt.Vv})):e.setZoom(n)}}},e}(dt),Et="active";var St=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function Tt(t,e,r,n){var i=t.getZoom();if(void 0!==i){var o=t.getConstrainedZoom(i+e),a=t.getResolutionForZoom(o);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:a,anchor:r,duration:void 0!==n?n:250,easing:mt.Vv})}}const Ot=function(t){function e(e){var r=t.call(this)||this;return r.on,r.once,r.un,e&&e.handleEvent&&(r.handleEvent=e.handleEvent),r.map_=null,r.setActive(!0),r}return St(e,t),e.prototype.getActive=function(){return this.get(Et)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(Et,t)},e.prototype.setMap=function(t){this.map_=t},e}(E.Z);var Pt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Rt=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.delta_=n.delta?n.delta:1,r.duration_=void 0!==n.duration?n.duration:250,r}return Pt(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==G.DBLCLICK){var r=t.originalEvent,n=t.map,i=t.coordinate,o=r.shiftKey?-this.delta_:this.delta_;Tt(n.getView(),o,i,this.duration_),r.preventDefault(),e=!0}return!e},e}(Ot);var It=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function Mt(t){for(var e=t.length,r=0,n=0,i=0;i0}}else if(t.type==G.POINTERDOWN){var n=this.handleDownEvent(t);this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==G.POINTERMOVE&&this.handleMoveEvent(t);return!e},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){t.activePointers&&(this.targetPointers=t.activePointers)},e}(Ot);function kt(t){var e=arguments;return function(t){for(var r=!0,n=0,i=e.length;n0&&this.condition_(t)){var e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(At);var Yt=r(6123),Vt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Bt=function(t){function e(e){var r=this,n=e||{};return(r=t.call(this,{stopDown:o.Dv})||this).condition_=n.condition?n.condition:Ft,r.lastAngle_=void 0,r.duration_=void 0!==n.duration?n.duration:250,r}return Vt(e,t),e.prototype.handleDragEvent=function(t){if(Gt(t)){var e=t.map,r=e.getView();if(r.getConstraints().rotation!==Yt.h$){var n=e.getSize(),i=t.pixel,o=Math.atan2(n[1]/2-i[1],i[0]-n[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;r.adjustRotationInternal(-a)}this.lastAngle_=o}}},e.prototype.handleUpEvent=function(t){return!Gt(t)||(t.map.getView().endInteraction(this.duration_),!1)},e.prototype.handleDownEvent=function(t){return!(!Gt(t)||!Dt(t)||!this.condition_(t)||(t.map.getView().beginInteraction(),this.lastAngle_=void 0,0))},e}(At);var Ut=r(5828),Kt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Ht=function(t){function e(e){var r=t.call(this)||this;return r.geometry_=null,r.element_=document.createElement("div"),r.element_.style.position="absolute",r.element_.style.pointerEvents="auto",r.element_.className="ol-box "+e,r.map_=null,r.startPixel_=null,r.endPixel_=null,r}return Kt(e,t),e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,r="px",n=this.element_.style;n.left=Math.min(t[0],e[0])+r,n.top=Math.min(t[1],e[1])+r,n.width=Math.abs(e[0]-t[0])+r,n.height=Math.abs(e[1]-t[1])+r},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,r=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);r[4]=r[0].slice(),this.geometry_?this.geometry_.setCoordinates([r]):this.geometry_=new Ut.ZP([r])},e.prototype.getGeometry=function(){return this.geometry_},e}(i.Z);var Jt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),$t=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.coordinate=r,i.mapBrowserEvent=n,i}return Jt(e,t),e}(R.ZP);const Qt=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var n=e||{};return r.box_=new Ht(n.className||"ol-dragbox"),r.minArea_=void 0!==n.minArea?n.minArea:64,n.onBoxEnd&&(r.onBoxEnd=n.onBoxEnd),r.startPixel_=null,r.condition_=n.condition?n.condition:Dt,r.boxEndCondition_=n.boxEndCondition?n.boxEndCondition:r.defaultBoxEndCondition,r}return Jt(e,t),e.prototype.defaultBoxEndCondition=function(t,e,r){var n=r[0]-e[0],i=r[1]-e[1];return n*n+i*i>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new $t("boxdrag",t.coordinate,t))},e.prototype.handleUpEvent=function(t){this.box_.setMap(null);var e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new $t(e?"boxend":"boxcancel",t.coordinate,t)),!1},e.prototype.handleDownEvent=function(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new $t("boxstart",t.coordinate,t)),!0)},e.prototype.onBoxEnd=function(t){},e}(At);var te=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const ee=function(t){function e(e){var r=this,n=e||{},i=n.condition?n.condition:zt;return(r=t.call(this,{condition:i,className:n.className||"ol-dragzoom",minArea:n.minArea})||this).duration_=void 0!==n.duration?n.duration:200,r.out_=void 0!==n.out&&n.out,r}return te(e,t),e.prototype.onBoxEnd=function(t){var e=this.getMap().getView(),r=this.getGeometry();if(this.out_){var n=e.rotatedExtentForGeometry(r),i=e.getResolutionForExtentInternal(n),o=e.getResolution()/i;(r=r.clone()).scale(o*o)}e.fitInternal(r,{duration:this.duration_,easing:mt.Vv})},e}(Qt);var re=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const ne=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.defaultCondition_=function(t){return jt(t)&&Nt(t)},r.condition_=void 0!==n.condition?n.condition:r.defaultCondition_,r.duration_=void 0!==n.duration?n.duration:100,r.pixelDelta_=void 0!==n.pixelDelta?n.pixelDelta:128,r}return re(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==O.Z.KEYDOWN){var r=t.originalEvent,n=r.keyCode;if(this.condition_(t)&&(40==n||37==n||39==n||38==n)){var i=t.map.getView(),o=i.getResolution()*this.pixelDelta_,a=0,s=0;40==n?s=-o:37==n?a=-o:39==n?a=o:s=o;var l=[a,s];(0,p.U1)(l,i.getRotation()),function(t,e,r){var n=t.getCenterInternal();if(n){var i=[n[0]+e[0],n[1]+e[1]];t.animateInternal({duration:void 0!==r?r:250,easing:mt.GE,center:t.getConstrainedCenter(i)})}}(i,l,this.duration_),r.preventDefault(),e=!0}}return!e},e}(Ot);var ie=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const oe=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.condition_=n.condition?n.condition:Nt,r.delta_=n.delta?n.delta:1,r.duration_=void 0!==n.duration?n.duration:100,r}return ie(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==O.Z.KEYDOWN||t.type==O.Z.KEYPRESS){var r=t.originalEvent,n=r.charCode;if(this.condition_(t)&&(n=="+".charCodeAt(0)||n=="-".charCodeAt(0))){var i=t.map,o=n=="+".charCodeAt(0)?this.delta_:-this.delta_;Tt(i.getView(),o,void 0,this.duration_),r.preventDefault(),e=!0}}return!e},e}(Ot),ae=function(){function t(t,e,r){this.decay_=t,this.minVelocity_=e,this.delay_=r,this.points_=[],this.angle_=0,this.initialVelocity_=0}return t.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},t.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},t.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]0&&this.points_[r+2]>t;)r-=3;var n=this.points_[e+2]-this.points_[r+2];if(n<1e3/60)return!1;var i=this.points_[e]-this.points_[r],o=this.points_[e+1]-this.points_[r+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/n,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}();var se=r(7344),le=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ue="trackpad";const he=function(t){function e(e){var r=this,n=e||{};(r=t.call(this,n)||this).totalDelta_=0,r.lastDelta_=0,r.maxDelta_=void 0!==n.maxDelta?n.maxDelta:1,r.duration_=void 0!==n.duration?n.duration:250,r.timeout_=void 0!==n.timeout?n.timeout:80,r.useAnchor_=void 0===n.useAnchor||n.useAnchor,r.constrainResolution_=void 0!==n.constrainResolution&&n.constrainResolution;var i=n.condition?n.condition:Zt;return r.condition_=n.onFocusOnly?kt(Lt,i):i,r.lastAnchor_=null,r.startTime_=void 0,r.timeoutId_,r.mode_=void 0,r.trackpadEventGap_=400,r.trackpadTimeoutId_,r.deltaPerZoom_=300,r}return le(e,t),e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap();t&&t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;if(t.type!==O.Z.WHEEL)return!0;var e,r=t.map,n=t.originalEvent;if(n.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==O.Z.WHEEL&&(e=n.deltaY,q.V&&n.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=q.MP),n.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)),0===e)return!1;this.lastDelta_=e;var i=Date.now();void 0===this.startTime_&&(this.startTime_=i),(!this.mode_||i-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(e)<4?ue:"wheel");var o=r.getView();if(this.mode_===ue&&!o.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-e/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=i,!1;this.totalDelta_+=e;var a=Math.max(this.timeout_-(i-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,r),a),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var r=-(0,se.uZ)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(r=r?r>0?1:-1:0),Tt(e,r,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(Ot);var pe=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const ce=function(t){function e(e){var r=this,n=e||{},i=n;return i.stopDown||(i.stopDown=o.Dv),(r=t.call(this,i)||this).anchor_=null,r.lastAngle_=void 0,r.rotating_=!1,r.rotationDelta_=0,r.threshold_=void 0!==n.threshold?n.threshold:.3,r.duration_=void 0!==n.duration?n.duration:250,r}return pe(e,t),e.prototype.handleDragEvent=function(t){var e=0,r=this.targetPointers[0],n=this.targetPointers[1],i=Math.atan2(n.clientY-r.clientY,n.clientX-r.clientX);if(void 0!==this.lastAngle_){var o=i-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=i;var a=t.map,s=a.getView();if(s.getConstraints().rotation!==Yt.h$){var l=a.getViewport().getBoundingClientRect(),u=Mt(this.targetPointers);u[0]-=l.left,u[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(u),this.rotating_&&(a.render(),s.adjustRotationInternal(e,this.anchor_))}},e.prototype.handleUpEvent=function(t){return!(this.targetPointers.length<2&&(t.map.getView().endInteraction(this.duration_),1))},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(At);var fe=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const de=function(t){function e(e){var r=this,n=e||{},i=n;return i.stopDown||(i.stopDown=o.Dv),(r=t.call(this,i)||this).anchor_=null,r.duration_=void 0!==n.duration?n.duration:400,r.lastDistance_=void 0,r.lastScaleDelta_=1,r}return fe(e,t),e.prototype.handleDragEvent=function(t){var e=1,r=this.targetPointers[0],n=this.targetPointers[1],i=r.clientX-n.clientX,o=r.clientY-n.clientY,a=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/a),this.lastDistance_=a;var s=t.map,l=s.getView();1!=e&&(this.lastScaleDelta_=e);var u=s.getViewport().getBoundingClientRect(),h=Mt(this.targetPointers);h[0]-=u.left,h[1]-=u.top,this.anchor_=s.getCoordinateFromPixelInternal(h),s.render(),l.adjustResolutionInternal(e,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map.getView(),r=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,r),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(At);var ye=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ge=function(t){function e(e){return(e=(0,M.f0)({},e)).controls||(e.controls=function(t){var e={},r=new S.Z;return(void 0===e.zoom||e.zoom)&&r.push(new Ct(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&r.push(new bt(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&r.push(new vt(e.attributionOptions)),r}()),e.interactions||(e.interactions=function(t){var e={onFocusOnly:!0}||{},r=new S.Z,n=new ae(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&r.push(new Bt),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&r.push(new Rt({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&r.push(new qt({onFocusOnly:e.onFocusOnly,kinetic:n})),(void 0===e.pinchRotate||e.pinchRotate)&&r.push(new ce),(void 0===e.pinchZoom||e.pinchZoom)&&r.push(new de({duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(r.push(new ne),r.push(new oe({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&r.push(new he({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&r.push(new ee({duration:e.zoomDuration})),r}()),t.call(this,e)||this}return ye(e,t),e.prototype.createRenderer=function(){return new C(this)},e}(ct);const ve=ge},12:(t,e,r)=>{"use strict";r.d(e,{Z:()=>p});var n,i=r(7288),o=r(1846),a=r(9335),s=r(273),l=r(4415),u=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),h=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.key=r,i.oldValue=n,i}return u(e,t),e}(i.ZP);const p=function(t){function e(e){var r=t.call(this)||this;return r.on,r.once,r.un,(0,l.sq)(r),r.values_=null,void 0!==e&&r.setProperties(e),r}return u(e,t),e.prototype.get=function(t){var e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},e.prototype.getProperties=function(){return this.values_&&(0,s.f0)({},this.values_)||{}},e.prototype.hasProperties=function(){return!!this.values_},e.prototype.notify=function(t,e){var r;r="change:".concat(t),this.hasListener(r)&&this.dispatchEvent(new h(r,t,e)),r=o.Z.PROPERTYCHANGE,this.hasListener(r)&&this.dispatchEvent(new h(r,t,e))},e.prototype.addChangeListener=function(t,e){this.addEventListener("change:".concat(t),e)},e.prototype.removeChangeListener=function(t,e){this.removeEventListener("change:".concat(t),e)},e.prototype.set=function(t,e,r){var n=this.values_||(this.values_={});if(r)n[t]=e;else{var i=n[t];n[t]=e,i!==e&&this.notify(t,i)}},e.prototype.setProperties=function(t,e){for(var r in t)this.set(r,t[r],e)},e.prototype.applyProperties=function(t){t.values_&&(0,s.f0)(this.values_||(this.values_={}),t.values_)},e.prototype.unset=function(t,e){if(this.values_&&t in this.values_){var r=this.values_[t];delete this.values_[t],(0,s.xb)(this.values_)&&(this.values_=null),e||this.notify(t,r)}},e}(a.Z)},1846:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={PROPERTYCHANGE:"propertychange"}},9335:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});var n,i=r(8408),o=r(7758),a=r(5310),s=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),l=function(t){function e(){var e=t.call(this)||this;return e.on=e.onInternal,e.once=e.onceInternal,e.un=e.unInternal,e.revision_=0,e}return s(e,t),e.prototype.changed=function(){++this.revision_,this.dispatchEvent(o.Z.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,e){if(Array.isArray(t)){for(var r=t.length,n=new Array(r),i=0;i{"use strict";r.d(e,{Z:()=>h});var n,i=r(8408),o=r(7758),a=r(5816),s=r(4415),l=r(6581),u=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const h=function(t){function e(e,r,n){var i=t.call(this)||this,o=n||{};return i.tileCoord=e,i.state=r,i.interimTile=null,i.key="",i.transition_=void 0===o.transition?250:o.transition,i.transitionStarts_={},i.interpolate=!!o.interpolate,i}return u(e,t),e.prototype.changed=function(){this.dispatchEvent(o.Z.CHANGE)},e.prototype.release=function(){},e.prototype.getKey=function(){return this.key+"/"+this.tileCoord},e.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==a.Z.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this},e.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==a.Z.LOADED){t.interimTile=null;break}t.getState()==a.Z.LOADING?e=t:t.getState()==a.Z.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},e.prototype.getTileCoord=function(){return this.tileCoord},e.prototype.getState=function(){return this.state},e.prototype.setState=function(t){if(this.state!==a.Z.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){(0,s.O3)()},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var r=this.transitionStarts_[t];if(r){if(-1===r)return 1}else r=e,this.transitionStarts_[t]=r;var n=e-r+1e3/60;return n>=this.transition_?1:(0,l.YQ)(n/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(i.Z)},8441:(t,e,r)=>{"use strict";r.d(e,{T:()=>i,Z:()=>o});var n=function(){function t(t,e,r,n){this.minX=t,this.maxX=e,this.minY=r,this.maxY=n}return t.prototype.contains=function(t){return this.containsXY(t[1],t[2])},t.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},t.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},t.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},t.prototype.extend=function(t){t.minXthis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)},t.prototype.getHeight=function(){return this.maxY-this.minY+1},t.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},t.prototype.getWidth=function(){return this.maxX-this.minX+1},t.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},t}();function i(t,e,r,i,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=r,o.maxY=i,o):new n(t,e,r,i)}const o=n},5816:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},8615:(t,e,r)=>{"use strict";r.d(e,{ZP:()=>R});var n=r(12),i=r(8430),o=r(8921);const a={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var s=r(7348),l=r(9786),u=r(1998),h=r(5353),p=r(9751),c=r(273),f=r(7344);function d(t,e,r){return function(n,i,o,a,s){if(n){if(!i&&!e)return n;var l=e?0:o[0]*i,u=e?0:o[1]*i,h=s?s[0]:0,p=s?s[1]:0,c=t[0]+l/2+h,d=t[2]-l/2+h,y=t[1]+u/2+p,g=t[3]-u/2+p;c>d&&(d=c=(d+c)/2),y>g&&(g=y=(g+y)/2);var v=(0,f.uZ)(n[0],c,d),m=(0,f.uZ)(n[1],y,g);if(a&&r&&i){var _=30*i;v+=-_*Math.log(1+Math.max(0,c-n[0])/_)+_*Math.log(1+Math.max(0,n[0]-d)/_),m+=-_*Math.log(1+Math.max(0,y-n[1])/_)+_*Math.log(1+Math.max(0,n[1]-g)/_)}return[v,m]}}}function y(t){return t}var g=r(2005),v=r(7782);function m(t,e,r,n){var i=(0,g.dz)(e)/r[0],o=(0,g.Cr)(e)/r[1];return n?Math.min(t,Math.max(i,o)):Math.min(t,Math.min(i,o))}function _(t,e,r){var n=Math.min(t,e);return n*=Math.log(1+50*Math.max(0,t/e-1))/50+1,r&&(n=Math.max(n,r),n/=Math.log(1+50*Math.max(0,r/t-1))/50+1),(0,f.uZ)(n,r/2,2*e)}function x(t,e,r,n,i){return function(o,a,s,l){if(void 0!==o){var u=n?m(t,n,s,i):t;return(void 0===r||r)&&l?_(o,u,e):(0,f.uZ)(o,e,u)}}}var b,w=r(6123),C=r(6581),E=r(5828),S=(b=function(t,e){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},b(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function T(t,e){setTimeout((function(){t(e)}),0)}function O(t){return!(t.sourceCenter&&t.targetCenter&&!(0,h.fS)(t.sourceCenter,t.targetCenter))&&t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation}function P(t,e,r,n,i){var o=Math.cos(-i),a=Math.sin(-i),s=t[0]*o-t[1]*a,l=t[1]*o+t[0]*a;return[(s+=(e[0]/2-r[0])*n)*o-(l+=(r[1]-e[1]/2)*n)*(a=-a),l*o+s*a]}const R=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var n=(0,c.f0)({},e);return r.hints_=[0,0],r.animations_=[],r.updateAnimationKey_,r.projection_=(0,l.UQ)(n.projection,"EPSG:3857"),r.viewportSize_=[100,100],r.targetCenter_=null,r.targetResolution_,r.targetRotation_,r.nextCenter_=null,r.nextResolution_,r.nextRotation_,r.cancelAnchor_=void 0,n.projection&&(0,l.h_)(),n.center&&(n.center=(0,l.Vs)(n.center,r.projection_)),n.extent&&(n.extent=(0,l.dY)(n.extent,r.projection_)),r.applyOptions_(n),r}return S(e,t),e.prototype.applyOptions_=function(t){var e=(0,c.f0)({},t);for(var r in a)delete e[r];this.setProperties(e,!0);var n=function(t){var e,r,n,o=void 0!==t.minZoom?t.minZoom:0,a=void 0!==t.maxZoom?t.maxZoom:28,u=void 0!==t.zoomFactor?t.zoomFactor:2,h=void 0!==t.multiWorld&&t.multiWorld,p=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,c=void 0!==t.showFullExtent&&t.showFullExtent,d=(0,l.UQ)(t.projection,"EPSG:3857"),y=d.getExtent(),b=t.constrainOnlyCenter,w=t.extent;if(h||w||!d.isGlobal()||(b=!1,w=y),void 0!==t.resolutions){var C=t.resolutions;r=C[o],n=void 0!==C[a]?C[a]:C[C.length-1],e=t.constrainResolution?function(t,e,r,n){return function(i,o,a,s){if(void 0!==i){var l=t[0],u=t[t.length-1],h=r?m(l,r,a,n):l;if(s)return void 0===e||e?_(i,h,u):(0,f.uZ)(i,u,h);var p=Math.min(h,i),c=Math.floor((0,v.h7)(t,p,o));return t[c]>h&&c1&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n);for(var i=0;i0},e.prototype.getInteracting=function(){return this.hints_[o.Z.INTERACTING]>0},e.prototype.cancelAnimations=function(){var t;this.setHint(o.Z.ANIMATING,-this.hints_[o.Z.ANIMATING]);for(var e=0,r=this.animations_.length;e=0;--r){for(var n=this.animations_[r],i=!0,a=0,s=n.length;a0?u/l.duration:1;h>=1?(l.complete=!0,h=1):i=!1;var p=l.easing(h);if(l.sourceCenter){var c=l.sourceCenter[0],d=l.sourceCenter[1],y=l.targetCenter[0],g=l.targetCenter[1];this.nextCenter_=l.targetCenter;var v=c+p*(y-c),m=d+p*(g-d);this.targetCenter_=[v,m]}if(l.sourceResolution&&l.targetResolution){var _=1===p?l.targetResolution:l.sourceResolution+p*(l.targetResolution-l.sourceResolution);if(l.anchor){var x=this.getViewportSize_(this.getRotation()),b=this.constraints_.resolution(_,0,x,!0);this.targetCenter_=this.calculateCenterZoom(b,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=_,this.applyTargetState_(!0)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var w=1===p?(0,f.$W)(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+p*(l.targetRotation-l.sourceRotation);if(l.anchor){var C=this.constraints_.rotation(w,!0);this.targetCenter_=this.calculateCenterRotate(C,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=w}if(this.applyTargetState_(!0),e=!0,!l.complete)break}}if(i){this.animations_[r]=null,this.setHint(o.Z.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var E=n[0].callback;E&&T(E,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,e){var r,n=this.getCenterInternal();return void 0!==n&&(r=[n[0]-e[0],n[1]-e[1]],(0,h.U1)(r,t-this.getRotation()),(0,h.IH)(r,e)),r},e.prototype.calculateCenterZoom=function(t,e){var r,n=this.getCenterInternal(),i=this.getResolution();return void 0!==n&&void 0!==i&&(r=[e[0]-t*(e[0]-n[0])/i,e[1]-t*(e[1]-n[1])/i]),r},e.prototype.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var r=e[0],n=e[1];return[Math.abs(r*Math.cos(t))+Math.abs(n*Math.sin(t)),Math.abs(r*Math.sin(t))+Math.abs(n*Math.cos(t))]}return e},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t?(0,l.lO)(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(a.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=this.calculateExtentInternal(t);return(0,l.Fj)(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getViewportSizeMinusPadding_(),r=this.getCenterInternal();(0,p.h)(r,1);var n=this.getResolution();(0,p.h)(void 0!==n,2);var i=this.getRotation();return(0,p.h)(void 0!==i,3),(0,g.p8)(r,n,i,e)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(a.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal((0,l.dY)(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var r=e||this.getViewportSizeMinusPadding_(),n=(0,g.dz)(t)/r[0],i=(0,g.Cr)(t)/r[1];return Math.max(n,i)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,r=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(r/n)/Math.log(e);return function(t){return r/Math.pow(e,t*i)}},e.prototype.getRotation=function(){return this.get(a.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),r=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(r/n)/e;return function(t){return Math.log(r/t)/e/i}},e.prototype.getViewportSizeMinusPadding_=function(t){var e=this.getViewportSize_(t),r=this.padding_;return r&&(e=[e[0]-r[1]-r[3],e[1]-r[0]-r[2]]),e},e.prototype.getState=function(){var t=this.getProjection(),e=this.getResolution(),r=this.getRotation(),n=this.getCenterInternal(),i=this.padding_;if(i){var o=this.getViewportSizeMinusPadding_();n=P(n,this.getViewportSize_(),[o[0]/2+i[3],o[1]/2+i[0]],e,r)}return{center:n.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:r,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},e.prototype.getZoomForResolution=function(t){var e,r,n=this.minZoom_||0;if(this.resolutions_){var i=(0,v.h7)(this.resolutions_,t,1);n=i,e=this.resolutions_[i],r=i==this.resolutions_.length-1?2:e/this.resolutions_[i+1]}else e=this.maxResolution_,r=this.zoomFactor_;return n+Math.log(e/t)/Math.log(r)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=(0,f.uZ)(Math.floor(t),0,this.resolutions_.length-2),r=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(r,(0,f.uZ)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var r;if((0,p.h)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)){(0,p.h)(!(0,g.xb)(t),25);var n=(0,l.dY)(t,this.getProjection());r=(0,E.oJ)(n)}else if("Circle"===t.getType())n=(0,l.dY)(t.getExtent(),this.getProjection()),(r=(0,E.oJ)(n)).rotate(this.getRotation(),(0,g.qg)(n));else{var i=(0,l.Cs)();r=i?t.clone().transform(i,this.getProjection()):t}this.fitInternal(r,e)},e.prototype.rotatedExtentForGeometry=function(t){for(var e=this.getRotation(),r=Math.cos(e),n=Math.sin(-e),i=t.getFlatCoordinates(),o=t.getStride(),a=1/0,s=1/0,l=-1/0,u=-1/0,h=0,p=i.length;h{"use strict";r.d(e,{Z:()=>n});const n={ANIMATING:0,INTERACTING:1}},7782:(t,e,r)=>{"use strict";function n(t,e,r){for(var n,o,a=r||i,s=0,l=t.length,u=!1;s>1)],e))<0?s=n+1:(l=n,u=!o);return u?s:~s}function i(t,e){return t>e?1:t0){for(i=1;i0?i-1:i:t[i-1]-e0||r&&0===o)}))}r.d(e,{FZ:()=>a,fS:()=>l,h7:()=>o,kK:()=>i,l7:()=>s,pT:()=>u,ry:()=>n})},9751:(t,e,r)=>{"use strict";r.d(e,{h:()=>i});var n=r(6643);function i(t,e){if(!t)throw new n.Z(e)}},8609:(t,e,r)=>{"use strict";r.d(e,{BB:()=>f,XC:()=>s,_2:()=>p});var n=r(9751),i=r(7344),o=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,a=/^([a-z]*)$|^hsla?\(.*\)$/i;function s(t){return"string"==typeof t?t:f(t)}var l,u,h=(l={},u=0,function(t){var e;if(l.hasOwnProperty(t))e=l[t];else{if(u>=1024){var r=0;for(var i in l)0==(3&r++)&&(delete l[i],--u)}e=function(t){var e,r,i,s,l;if(a.exec(t)&&(t=function(t){var e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);var r=getComputedStyle(e).color;return document.body.removeChild(e),r}return""}(t)),o.exec(t)){var u,h=t.length-1;u=h<=4?1:2;var p=4===h||8===h;e=parseInt(t.substr(1+0*u,u),16),r=parseInt(t.substr(1+1*u,u),16),i=parseInt(t.substr(1+2*u,u),16),s=p?parseInt(t.substr(1+3*u,u),16):255,1==u&&(e=(e<<4)+e,r=(r<<4)+r,i=(i<<4)+i,p&&(s=(s<<4)+s)),l=[e,r,i,s/255]}else 0==t.indexOf("rgba(")?c(l=t.slice(5,-1).split(",").map(Number)):0==t.indexOf("rgb(")?((l=t.slice(4,-1).split(",").map(Number)).push(1),c(l)):(0,n.h)(!1,14);return l}(t),l[t]=e,++u}return e});function p(t){return Array.isArray(t)?t:h(t)}function c(t){return t[0]=(0,i.uZ)(t[0]+.5|0,0,255),t[1]=(0,i.uZ)(t[1]+.5|0,0,255),t[2]=(0,i.uZ)(t[2]+.5|0,0,255),t[3]=(0,i.uZ)(t[3],0,1),t}function f(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var r=t[1];r!=(0|r)&&(r=r+.5|0);var n=t[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+e+","+r+","+n+","+(void 0===t[3]?1:Math.round(100*t[3])/100)+")"}},6808:(t,e,r)=>{"use strict";r.d(e,{y:()=>i});var n=r(8609);function i(t){return Array.isArray(t)?(0,n.BB)(t):t}},5353:(t,e,r)=>{"use strict";r.d(e,{Cf:()=>l,IH:()=>i,U1:()=>a,bA:()=>s,fS:()=>o});var n=r(2005);function i(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function o(t,e){for(var r=!0,n=t.length-1;n>=0;--n)if(t[n]!=e[n]){r=!1;break}return r}function a(t,e){var r=Math.cos(e),n=Math.sin(e),i=t[0]*r-t[1]*n,o=t[1]*r+t[0]*n;return t[0]=i,t[1]=o,t}function s(t,e){return t[0]*=e,t[1]*=e,t}function l(t,e){if(e.canWrapX()){var r=(0,n.dz)(e.getExtent()),i=function(t,e,r){var i=e.getExtent(),o=0;if(e.canWrapX()&&(t[0]i[2])){var a=r||(0,n.dz)(i);o=Math.floor((t[0]-i[0])/a)}return o}(t,e,r);i&&(t[0]-=i*r)}return t}},8308:(t,e,r)=>{"use strict";r.d(e,{XV:()=>i,hN:()=>a,hg:()=>o,oj:()=>n,p:()=>u});var n="ol-hidden",i="ol-unselectable",o="ol-control",a="ol-collapsed",s=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),l=["style","variant","weight","size","lineHeight","family"],u=function(t){var e=t.match(s);if(!e)return null;for(var r={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},n=0,i=l.length;n{"use strict";r.d(e,{$H:()=>a,E4:()=>i,ZF:()=>s,ep:()=>l,hF:()=>u,jy:()=>o});var n=r(6299);function i(t,e,r,i){var o;return o=r&&r.length?r.shift():n.Id?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(o.width=t),e&&(o.height=e),o.getContext("2d",i)}function o(t){var e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function a(t,e){var r=e.parentNode;r&&r.replaceChild(t,e)}function s(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function l(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function u(t,e){for(var r=t.childNodes,n=0;;++n){var i=r[n],o=e[n];if(!i&&!o)break;i!==o&&(i?o?t.insertBefore(o,i):(t.removeChild(i),--n):t.appendChild(o))}}},6581:(t,e,r)=>{"use strict";function n(t){return Math.pow(t,3)}function i(t){return 1-n(1-t)}function o(t){return 3*t*t-2*t*t*t}function a(t){return t}r.d(e,{GE:()=>a,Vv:()=>i,YQ:()=>n,rd:()=>o})},5310:(t,e,r)=>{"use strict";r.d(e,{Vx:()=>o,bN:()=>a,oL:()=>i});var n=r(273);function i(t,e,r,n,i){if(n&&n!==t&&(r=r.bind(n)),i){var o=r;r=function(){t.removeEventListener(e,r),o.apply(this,arguments)}}var a={target:t,type:e,listener:r};return t.addEventListener(e,r),a}function o(t,e,r,n){return i(t,e,r,n,!0)}function a(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,n.ZH)(t))}},7288:(t,e,r)=>{"use strict";r.d(e,{ZP:()=>n});const n=function(){function t(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}return t.prototype.preventDefault=function(){this.defaultPrevented=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t}()},7758:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},8408:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});var n,i=r(2083),o=r(7288),a=r(1998),s=r(273),l=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const u=function(t){function e(e){var r=t.call(this)||this;return r.eventTarget_=e,r.pendingRemovals_=null,r.dispatching_=null,r.listeners_=null,r}return l(e,t),e.prototype.addEventListener=function(t,e){if(t&&e){var r=this.listeners_||(this.listeners_={}),n=r[t]||(r[t]=[]);-1===n.indexOf(e)&&n.push(e)}},e.prototype.dispatchEvent=function(t){var e="string"==typeof t,r=e?t:t.type,n=this.listeners_&&this.listeners_[r];if(n){var i=e?new o.ZP(t):t;i.target||(i.target=this.eventTarget_||this);var s,l=this.dispatching_||(this.dispatching_={}),u=this.pendingRemovals_||(this.pendingRemovals_={});r in l||(l[r]=0,u[r]=0),++l[r];for(var h=0,p=n.length;h0)},e.prototype.removeEventListener=function(t,e){var r=this.listeners_&&this.listeners_[t];if(r){var n=r.indexOf(e);-1!==n&&(this.pendingRemovals_&&t in this.pendingRemovals_?(r[n]=a.Zn,++this.pendingRemovals_[t]):(r.splice(n,1),0===r.length&&delete this.listeners_[t]))}},e}(i.Z)},2005:(t,e,r)=>{"use strict";r.d(e,{Cf:()=>G,Cr:()=>M,EO:()=>j,Ed:()=>A,GN:()=>v,H6:()=>C,HK:()=>g,I7:()=>z,MV:()=>X,Ne:()=>N,T9:()=>d,Wj:()=>x,Xv:()=>F,YN:()=>y,b8:()=>u,bg:()=>E,d9:()=>s,dY:()=>I,dz:()=>L,f3:()=>a,fS:()=>m,g0:()=>P,hC:()=>S,hI:()=>o,jE:()=>p,kK:()=>Z,l7:()=>_,lJ:()=>f,p8:()=>R,pX:()=>c,qP:()=>b,qf:()=>l,qg:()=>O,r4:()=>h,rL:()=>k,w$:()=>T,xb:()=>D});var n=r(2110),i=r(9751);function o(t){for(var e=[1/0,1/0,-1/0,-1/0],r=0,n=t.length;ro&&(u|=n.Z.RIGHT),la&&(u|=n.Z.ABOVE),u===n.Z.UNKNOWN&&(u=n.Z.INTERSECTING),u}function f(){return[1/0,1/0,-1/0,-1/0]}function d(t,e,r,n,i){return i?(i[0]=t,i[1]=e,i[2]=r,i[3]=n,i):[t,e,r,n]}function y(t){return d(1/0,1/0,-1/0,-1/0,t)}function g(t,e){var r=t[0],n=t[1];return d(r,n,r,n,e)}function v(t,e,r,n,i){return b(y(i),t,e,r,n)}function m(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function _(t,e){return e[0]t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function x(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function b(t,e,r,n,i){for(;re[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function D(t){return t[2]=s&&v<=u),i||!(a&n.Z.RIGHT)||o&n.Z.RIGHT||(i=(m=y-(d-u)*g)>=l&&m<=h),i||!(a&n.Z.BELOW)||o&n.Z.BELOW||(i=(v=d-(y-l)/g)>=s&&v<=u),i||!(a&n.Z.LEFT)||o&n.Z.LEFT||(i=(m=y-(d-s)*g)>=l&&m<=h)}return i}function N(t,e,r,n){var i=[];if(n>1)for(var o=t[2]-t[0],a=t[3]-t[1],s=0;s=r[2])){var i=L(r),o=Math.floor((n[0]-r[0])/i)*i;t[0]-=o,t[2]-=o}return t}function X(t,e){if(e.canWrapX()){var r=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[r[0],t[1],r[2],t[3]]];G(t,e);var n=L(r);if(L(t)>n)return[[r[0],t[1],r[2],t[3]]];if(t[0]r[2])return[[t[0],t[1],r[2],t[3]],[r[0],t[1],t[2]-n,t[3]]]}return[t]}},2110:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},3618:(t,e,r)=>{"use strict";r.d(e,{Be:()=>o,ov:()=>i});var n=r(1998);function i(t,e,r,n,i,o,a){var s=new XMLHttpRequest;s.open("GET","function"==typeof t?t(r,n,i):t,!0),"arraybuffer"==e.getType()&&(s.responseType="arraybuffer"),s.withCredentials=false,s.onload=function(t){if(!s.status||s.status>=200&&s.status<300){var n=e.getType(),l=void 0;"json"==n||"text"==n?l=s.responseText:"xml"==n?(l=s.responseXML)||(l=(new DOMParser).parseFromString(s.responseText,"application/xml")):"arraybuffer"==n&&(l=s.response),l?o(e.readFeatures(l,{extent:r,featureProjection:i}),e.readProjection(l)):a()}else a()},s.onerror=a,s.send()}function o(t,e){return function(r,o,a,s,l){var u=this;i(t,e,r,o,a,(function(t,e){u.addFeatures(t),void 0!==s&&s(t)}),l||n.Zn)}}},5817:(t,e,r)=>{"use strict";r.d(e,{ZP:()=>s,fI:()=>l});var n=r(8430),i=r(4415),o=r(273),a=r(9786);const s=function(){function t(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}return t.prototype.getReadOptions=function(t,e){var r;if(e){var i=e.dataProjection?(0,a.U2)(e.dataProjection):this.readProjection(t);e.extent&&i&&i.getUnits()===n.ZP.TILE_PIXELS&&(i=(0,a.U2)(i)).setWorldExtent(e.extent),r={dataProjection:i,featureProjection:e.featureProjection}}return this.adaptOptions(r)},t.prototype.adaptOptions=function(t){return(0,o.f0)({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)},t.prototype.getType=function(){return(0,i.O3)()},t.prototype.readFeature=function(t,e){return(0,i.O3)()},t.prototype.readFeatures=function(t,e){return(0,i.O3)()},t.prototype.readGeometry=function(t,e){return(0,i.O3)()},t.prototype.readProjection=function(t){return(0,i.O3)()},t.prototype.writeFeature=function(t,e){return(0,i.O3)()},t.prototype.writeFeatures=function(t,e){return(0,i.O3)()},t.prototype.writeGeometry=function(t,e){return(0,i.O3)()},t}();function l(t,e,r){var n,i=r?(0,a.U2)(r.featureProjection):null,o=r?(0,a.U2)(r.dataProjection):null;if(n=i&&o&&!(0,a.OP)(i,o)?(e?t.clone():t).transform(e?i:o,e?o:i):t,e&&r&&void 0!==r.decimals){var s=Math.pow(10,r.decimals);n===t&&(n=t.clone()),n.applyTransform((function(t){for(var e=0,r=t.length;e{"use strict";r.d(e,{Z:()=>A});var n,i=r(12),o=r(7758),a=r(9751),s=r(5310),l=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=function(t){function e(e){var r=t.call(this)||this;if(r.on,r.once,r.un,r.id_=void 0,r.geometryName_="geometry",r.style_=null,r.styleFunction_=void 0,r.geometryChangeKey_=null,r.addChangeListener(r.geometryName_,r.handleGeometryChanged_),e)if("function"==typeof e.getSimplifiedGeometry){var n=e;r.setGeometry(n)}else{var i=e;r.setProperties(i)}return r}return l(e,t),e.prototype.clone=function(){var t=new e(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());var r=this.getGeometry();r&&t.setGeometry(r.clone());var n=this.getStyle();return n&&t.setStyle(n),t},e.prototype.getGeometry=function(){return this.get(this.geometryName_)},e.prototype.getId=function(){return this.id_},e.prototype.getGeometryName=function(){return this.geometryName_},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.handleGeometryChange_=function(){this.changed()},e.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&((0,s.bN)(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=(0,s.oL)(t,o.Z.CHANGE,this.handleGeometryChange_,this)),this.changed()},e.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},e.prototype.setStyle=function(t){this.style_=t,this.styleFunction_=t?function(t){return"function"==typeof t?t:(Array.isArray(t)?e=t:((0,a.h)("function"==typeof t.getZIndex,41),e=[t]),function(){return e});var e}(t):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()},e}(i.Z);const h=u;var p=r(3176),c=r(2005),f=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function d(t){for(var e=[],r=0,n=t.length;r{"use strict";r.d(e,{Dv:()=>o,Zn:()=>a,qe:()=>s,uX:()=>i});var n=r(7782);function i(){return!0}function o(){return!1}function a(){}function s(t){var e,r,i,o=!1;return function(){var a=Array.prototype.slice.call(arguments);return o&&this===i&&(0,n.fS)(a,r)||(o=!0,i=this,r=a,e=t.apply(this,arguments)),e}}},3176:(t,e,r)=>{"use strict";r.d(e,{Z:()=>d});var n,i=r(12),o=r(8430),a=r(4415),s=r(4765),l=r(2005),u=r(9786),h=r(1998),p=r(7810),c=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),f=(0,s.Ue)();const d=function(t){function e(){var e=t.call(this)||this;return e.extent_=(0,l.lJ)(),e.extentRevision_=-1,e.simplifiedGeometryMaxMinSquaredTolerance=0,e.simplifiedGeometryRevision=0,e.simplifyTransformedInternal=(0,h.qe)((function(t,e,r){if(!r)return this.getSimplifiedGeometry(e);var n=this.clone();return n.applyTransform(r),n.getSimplifiedGeometry(e)})),e}return c(e,t),e.prototype.simplifyTransformed=function(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)},e.prototype.clone=function(){return(0,a.O3)()},e.prototype.closestPointXY=function(t,e,r,n){return(0,a.O3)()},e.prototype.containsXY=function(t,e){var r=this.getClosestPoint([t,e]);return r[0]===t&&r[1]===e},e.prototype.getClosestPoint=function(t,e){var r=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],r,1/0),r},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){return(0,a.O3)()},e.prototype.getExtent=function(t){if(this.extentRevision_!=this.getRevision()){var e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&(0,l.YN)(e),this.extentRevision_=this.getRevision()}return(0,l.EO)(this.extent_,t)},e.prototype.rotate=function(t,e){(0,a.O3)()},e.prototype.scale=function(t,e,r){(0,a.O3)()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return(0,a.O3)()},e.prototype.getType=function(){return(0,a.O3)()},e.prototype.applyTransform=function(t){(0,a.O3)()},e.prototype.intersectsExtent=function(t){return(0,a.O3)()},e.prototype.translate=function(t,e){(0,a.O3)()},e.prototype.transform=function(t,e){var r=(0,u.U2)(t),n=r.getUnits()==o.ZP.TILE_PIXELS?function(t,n,i){var o=r.getExtent(),a=r.getWorldExtent(),h=(0,l.Cr)(a)/(0,l.Cr)(o);return(0,s.qC)(f,a[0],a[3],h,-h,0,0,0),(0,p.vT)(t,0,t.length,i,f,n),(0,u.Ck)(r,e)(t,n,i)}:(0,u.Ck)(r,e);return this.applyTransform(n),this},e}(i.Z)},8476:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},8132:(t,e,r)=>{"use strict";r.d(e,{Z:()=>v});var n,i=r(8476),o=r(3062),a=r(6273),s=r(2005),l=r(3234),u=r(8033),h=r(7782),p=r(8190),c=r(9157),f=r(3174),d=r(8797),y=r(6097),g=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const v=function(t){function e(e,r){var n=t.call(this)||this;return n.flatMidpoint_=null,n.flatMidpointRevision_=-1,n.maxDelta_=-1,n.maxDeltaRevision_=-1,void 0===r||Array.isArray(e[0])?n.setCoordinates(e,r):n.setFlatCoordinates(r,e),n}return g(e,t),e.prototype.appendCoordinate=function(t){this.flatCoordinates?(0,h.l7)(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){return n<(0,s.qf)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,a.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,a.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,r,n))},e.prototype.forEachSegment=function(t){return(0,p.E)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinateAtM=function(t,e){if(this.layout!=i.Z.XYM&&this.layout!=i.Z.XYZM)return null;var r=void 0!==e&&e;return(0,f.iJ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,r)},e.prototype.getCoordinates=function(){return(0,c.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinateAt=function(t,e){return(0,f.WW)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)},e.prototype.getLength=function(){return(0,y.W)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[];return r.length=(0,u.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,r,0),new e(r,i.Z.XY)},e.prototype.getType=function(){return"LineString"},e.prototype.intersectsExtent=function(t){return(0,d.Kz)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,l.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(o.ZP)},7659:(t,e,r)=>{"use strict";r.d(e,{Z:()=>g});var n,i=r(8476),o=r(8132),a=r(3062),s=r(6273),l=r(2005),u=r(3234),h=r(8033),p=r(7782),c=r(9157),f=r(3174),d=r(8797),y=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const g=function(t){function e(e,r,n){var i=t.call(this)||this;if(i.ends_=[],i.maxDelta_=-1,i.maxDeltaRevision_=-1,Array.isArray(e[0]))i.setCoordinates(e,r);else if(void 0!==r&&n)i.setFlatCoordinates(r,e),i.ends_=n;else{for(var o=i.getLayout(),a=e,s=[],l=[],u=0,h=a.length;u{"use strict";r.d(e,{Z:()=>c});var n,i=r(1879),o=r(3062),a=r(2005),s=r(3234),l=r(7782),u=r(9157),h=r(7344),p=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const c=function(t){function e(e,r){var n=t.call(this)||this;return r&&!Array.isArray(e[0])?n.setFlatCoordinates(r,e):n.setCoordinates(e,r),n}return p(e,t),e.prototype.appendPoint=function(t){this.flatCoordinates?(0,l.l7)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){if(n<(0,a.qf)(this.getExtent(),t,e))return n;for(var i=this.flatCoordinates,o=this.stride,s=0,l=i.length;s{"use strict";r.d(e,{Z:()=>b});var n,i=r(8476),o=r(9468),a=r(5828),s=r(3062),l=r(6273),u=r(2005),h=r(3234),p=r(7782),c=r(6096),f=r(9157),d=r(8797),y=r(7704),g=r(9260),v=r(215),m=r(1472),_=r(8033),x=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const b=function(t){function e(e,r,n){var i=t.call(this)||this;if(i.endss_=[],i.flatInteriorPointsRevision_=-1,i.flatInteriorPoints_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,!n&&!Array.isArray(e[0])){for(var o=i.getLayout(),a=e,s=[],l=[],u=0,h=a.length;u{"use strict";r.d(e,{Z:()=>u});var n,i=r(3062),o=r(2005),a=r(3234),s=r(7344),l=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const u=function(t){function e(e,r){var n=t.call(this)||this;return n.setCoordinates(e,r),n}return l(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){var i=this.flatCoordinates,o=(0,s.bI)(t,e,i[0],i[1]);if(o{"use strict";r.d(e,{ZP:()=>w,oJ:()=>C});var n,i=r(8476),o=r(3062),a=r(6273),s=r(2005),l=r(3234),u=r(8033),h=r(9157),p=r(9260),c=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const f=function(t){function e(e,r){var n=t.call(this)||this;return n.maxDelta_=-1,n.maxDeltaRevision_=-1,void 0===r||Array.isArray(e[0])?n.setCoordinates(e,r):n.setFlatCoordinates(r,e),n}return c(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,r,n){return n<(0,s.qf)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,a.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,a.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,r,n))},e.prototype.getArea=function(){return(0,p.QQ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return(0,h.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[];return r.length=(0,u.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,r,0),new e(r,i.Z.XY)},e.prototype.getType=function(){return"LinearRing"},e.prototype.intersectsExtent=function(t){return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,l.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(o.ZP);var d=r(1879),y=r(7782),g=r(6096),v=r(8797),m=r(7704),_=r(1472),x=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),b=function(t){function e(e,r,n){var i=t.call(this)||this;return i.ends_=[],i.flatInteriorPointRevision_=-1,i.flatInteriorPoint_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,void 0!==r&&n?(i.setFlatCoordinates(r,e),i.ends_=n):i.setCoordinates(e,r),i}return x(e,t),e.prototype.appendLinearRing=function(t){this.flatCoordinates?(0,y.l7)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){return n<(0,s.qf)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,a.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,a.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,r,n))},e.prototype.containsXY=function(t,e){return(0,_.wY)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},e.prototype.getArea=function(){return(0,p.KP)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,m.zX)(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,(0,h.o1)(e,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var t=(0,s.qg)(this.getExtent());this.flatInteriorPoint_=(0,g.X)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},e.prototype.getInteriorPoint=function(){return new d.Z(this.getFlatInteriorPoint(),i.Z.XYM)},e.prototype.getLinearRingCount=function(){return this.ends_.length},e.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new f(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLinearRings=function(){for(var t=this.layout,e=this.flatCoordinates,r=this.ends_,n=[],i=0,o=0,a=r.length;o{"use strict";r.d(e,{Kr:()=>p,ZP:()=>c});var n,i=r(3176),o=r(8476),a=r(4415),s=r(2005),l=r(7810),u=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function h(t){var e;return t==o.Z.XY?e=2:t==o.Z.XYZ||t==o.Z.XYM?e=3:t==o.Z.XYZM&&(e=4),e}function p(t,e,r){var n=t.getFlatCoordinates();if(n){var i=t.getStride();return(0,l.vT)(n,0,n.length,i,e,r)}return null}const c=function(t){function e(){var e=t.call(this)||this;return e.layout=o.Z.XY,e.stride=2,e.flatCoordinates=null,e}return u(e,t),e.prototype.computeExtent=function(t){return(0,s.GN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return(0,a.O3)()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length{"use strict";function n(t,e,r,n){for(var i=0,o=t[r-n],a=t[r-n+1];eo,KP:()=>i,QQ:()=>n})},215:(t,e,r)=>{"use strict";r.d(e,{E:()=>i});var n=r(2005);function i(t,e,r,i){for(var o=[],a=(0,n.lJ)(),s=0,l=r.length;s{"use strict";r.d(e,{Af:()=>a,Bv:()=>o,H$:()=>l,Xl:()=>u,gI:()=>h,sD:()=>s});var n=r(7344);function i(t,e,r,i,o,a,s){var l,u=t[e],h=t[e+1],p=t[r]-u,c=t[r+1]-h;if(0===p&&0===c)l=e;else{var f=((o-u)*p+(a-h)*c)/(p*p+c*c);if(f>1)l=r;else{if(f>0){for(var d=0;do&&(o=h),a=l,s=u}return o}function a(t,e,r,n,i){for(var a=0,s=r.length;a{"use strict";r.d(e,{TG:()=>o,Zl:()=>s,uG:()=>i,wY:()=>a});var n=r(2005);function i(t,e,r,i,a){return!(0,n.H6)(a,(function(n){return!o(t,e,r,i,n[0],n[1])}))}function o(t,e,r,n,i,o){for(var a=0,s=t[r-n],l=t[r-n+1];eo&&(u-s)*(o-l)-(i-s)*(h-l)>0&&a++:h<=o&&(u-s)*(o-l)-(i-s)*(h-l)<0&&a--,s=u,l=h}return 0!==a}function a(t,e,r,n,i,a){if(0===r.length)return!1;if(!o(t,e,r[0],n,i,a))return!1;for(var s=1,l=r.length;s{"use strict";function n(t,e,r,n){for(var i=0,o=r.length;in,QT:()=>a,Sg:()=>i,_5:()=>o})},9157:(t,e,r)=>{"use strict";function n(t,e,r,n,i){for(var o=void 0!==i?i:[],a=0,s=e;sn,o1:()=>i,ug:()=>o})},6096:(t,e,r)=>{"use strict";r.d(e,{U:()=>a,X:()=>o});var n=r(1472),i=r(7782);function o(t,e,r,o,a,s,l){for(var u,h,p,c,f,d,y,g=a[s+1],v=[],m=0,_=r.length;m<_;++m){var x=r[m];for(c=t[x-o],d=t[x-o+1],u=e;uw&&(p=(c+f)/2,(0,n.wY)(t,e,r,o,p,g)&&(b=p,w=C)),c=f}return isNaN(b)&&(b=a[s]),l?(l.push(b,g,w),l):[b,g,w]}function a(t,e,r,n,i){for(var a=[],s=0,l=r.length;s{"use strict";r.d(e,{WW:()=>o,dG:()=>s,iJ:()=>a});var n=r(7782),i=r(7344);function o(t,e,r,o,a,s,l){var u,h,p=(r-e)/o;if(1===p)u=e;else if(2===p)u=e,h=a;else if(0!==p){for(var c=t[e],f=t[e+1],d=0,y=[0],g=e+o;g1?l:2,w=s||new Array(b);for(g=0;g>1;o{"use strict";r.d(e,{AW:()=>s,Kz:()=>a,ac:()=>u,mV:()=>l,oW:()=>h});var n=r(2005),i=r(8190),o=r(1472);function a(t,e,r,o,a){var s=(0,n.qP)((0,n.lJ)(),t,e,r,o);return!!(0,n.kK)(a,s)&&(!!(0,n.r4)(a,s)||s[0]>=a[0]&&s[2]<=a[2]||s[1]>=a[1]&&s[3]<=a[3]||(0,i.E)(t,e,r,o,(function(t,e){return(0,n.I7)(a,t,e)})))}function s(t,e,r,n,i){for(var o=0,s=r.length;o{"use strict";function n(t,e,r,n){for(var i=t[e],o=t[e+1],a=0,s=e+n;sn})},7704:(t,e,r)=>{"use strict";function n(t,e,r,n){for(;e0}function o(t,e,r,n,o){for(var a=void 0!==o&&o,s=0,l=r.length;su,$v:()=>o,Oj:()=>a,zX:()=>s,dL:()=>l})},8190:(t,e,r)=>{"use strict";function n(t,e,r,n,i){var o;for(e+=n;en})},8033:(t,e,r)=>{"use strict";r.d(e,{Pp:()=>u,UJ:()=>o,Zh:()=>l,dt:()=>i,uZ:()=>a});var n=r(7344);function i(t,e,r,i,o,a,s){var l=(r-e)/i;if(l<3){for(;e0;){for(var c=h.pop(),f=h.pop(),d=0,y=t[f],g=t[f+1],v=t[c],m=t[c+1],_=f+i;_d&&(p=_,d=w)}d>o&&(u[(p-e)/i]=1,f+i0&&g>d)&&(y<0&&v0&&v>y)?(l=c,u=f):(o[s++]=l,o[s++]=u,h=l,p=u,l=c,u=f)}}return o[s++]=l,o[s++]=u,s}function l(t,e,r,n,i,o,a,l){for(var u=0,h=r.length;u{"use strict";function n(t,e,r,n,i,o){for(var a=o||[],s=0,l=e;la,U1:()=>i,bA:()=>o,vT:()=>n})},6299:(t,e,r)=>{"use strict";r.d(e,{G$:()=>o,Id:()=>l,MP:()=>s,Tp:()=>u,V:()=>i,bM:()=>h,tK:()=>a});var n="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",i=-1!==n.indexOf("firefox"),o=(-1!==n.indexOf("safari")&&-1==n.indexOf("chrom")&&(n.indexOf("version/15.4")>=0||n.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==n.indexOf("webkit")&&-1==n.indexOf("edge")),a=-1!==n.indexOf("macintosh"),s="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,l="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,u="undefined"!=typeof Image&&Image.prototype.decode,h=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(t){}return t}()},8319:(t,e,r)=>{"use strict";r.d(e,{Z:()=>p});var n,i=r(12),o=r(6120),a=r(4415),s=r(9751),l=r(273),u=r(7344),h=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const p=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un,r.background_=e.background;var n=(0,l.f0)({},e);return"object"==typeof e.properties&&(delete n.properties,(0,l.f0)(n,e.properties)),n[o.Z.OPACITY]=void 0!==e.opacity?e.opacity:1,(0,s.h)("number"==typeof n[o.Z.OPACITY],64),n[o.Z.VISIBLE]=void 0===e.visible||e.visible,n[o.Z.Z_INDEX]=e.zIndex,n[o.Z.MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,n[o.Z.MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,n[o.Z.MIN_ZOOM]=void 0!==e.minZoom?e.minZoom:-1/0,n[o.Z.MAX_ZOOM]=void 0!==e.maxZoom?e.maxZoom:1/0,r.className_=void 0!==n.className?n.className:"ol-layer",delete n.className,r.setProperties(n),r.state_=null,r}return h(e,t),e.prototype.getBackground=function(){return this.background_},e.prototype.getClassName=function(){return this.className_},e.prototype.getLayerState=function(t){var e=this.state_||{layer:this,managed:void 0===t||t},r=this.getZIndex();return e.opacity=(0,u.uZ)(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==r||e.managed?r:1/0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e},e.prototype.getLayersArray=function(t){return(0,a.O3)()},e.prototype.getLayerStatesArray=function(t){return(0,a.O3)()},e.prototype.getExtent=function(){return this.get(o.Z.EXTENT)},e.prototype.getMaxResolution=function(){return this.get(o.Z.MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(o.Z.MIN_RESOLUTION)},e.prototype.getMinZoom=function(){return this.get(o.Z.MIN_ZOOM)},e.prototype.getMaxZoom=function(){return this.get(o.Z.MAX_ZOOM)},e.prototype.getOpacity=function(){return this.get(o.Z.OPACITY)},e.prototype.getSourceState=function(){return(0,a.O3)()},e.prototype.getVisible=function(){return this.get(o.Z.VISIBLE)},e.prototype.getZIndex=function(){return this.get(o.Z.Z_INDEX)},e.prototype.setBackground=function(t){this.background_=t,this.changed()},e.prototype.setExtent=function(t){this.set(o.Z.EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(o.Z.MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(o.Z.MIN_RESOLUTION,t)},e.prototype.setMaxZoom=function(t){this.set(o.Z.MAX_ZOOM,t)},e.prototype.setMinZoom=function(t){this.set(o.Z.MIN_ZOOM,t)},e.prototype.setOpacity=function(t){(0,s.h)("number"==typeof t,64),this.set(o.Z.OPACITY,t)},e.prototype.setVisible=function(t){this.set(o.Z.VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(o.Z.Z_INDEX,t)},e.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),t.prototype.disposeInternal.call(this)},e}(i.Z)},7582:(t,e,r)=>{"use strict";r.d(e,{Z:()=>h});var n,i=r(7385),o=r(53),a=r(273),s=r(6298),l=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u="renderOrder";const h=function(t){function e(e){var r=this,n=e||{},i=(0,a.f0)({},n);return delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,(r=t.call(this,i)||this).declutter_=void 0!==n.declutter&&n.declutter,r.renderBuffer_=void 0!==n.renderBuffer?n.renderBuffer:100,r.style_=null,r.styleFunction_=void 0,r.setStyle(n.style),r.updateWhileAnimating_=void 0!==n.updateWhileAnimating&&n.updateWhileAnimating,r.updateWhileInteracting_=void 0!==n.updateWhileInteracting&&n.updateWhileInteracting,r}return l(e,t),e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(u)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.renderDeclutter=function(t){t.declutterTree||(t.declutterTree=new o(9)),this.getRenderer().renderDeclutter(t)},e.prototype.setRenderOrder=function(t){this.set(u,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:s.yF,this.styleFunction_=null===t?void 0:(0,s.J$)(this.style_),this.changed()},e}(i.Z)},7385:(t,e,r)=>{"use strict";r.d(e,{Z:()=>f,j:()=>c});var n,i=r(8319),o=r(7758),a=r(6120),s=r(3557),l=r(9751),u=r(273),h=r(5310),p=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function c(t,e){if(!t.visible)return!1;var r=e.resolution;if(r=t.maxResolution)return!1;var n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}const f=function(t){function e(e){var r=this,n=(0,u.f0)({},e);delete n.source,(r=t.call(this,n)||this).on,r.once,r.un,r.mapPrecomposeKey_=null,r.mapRenderKey_=null,r.sourceChangeKey_=null,r.renderer_=null,r.rendered=!1,e.render&&(r.render=e.render),e.map&&r.setMap(e.map),r.addChangeListener(a.Z.SOURCE,r.handleSourcePropertyChange_);var i=e.source?e.source:null;return r.setSource(i),r}return p(e,t),e.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},e.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},e.prototype.getSource=function(){return this.get(a.Z.SOURCE)||null},e.prototype.getRenderSource=function(){return this.getSource()},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():"undefined"},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&((0,h.bN)(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=(0,h.oL)(t,o.Z.CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.getFeatures=function(t){return this.renderer_?this.renderer_.getFeatures(t):new Promise((function(t){return t([])}))},e.prototype.getData=function(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null},e.prototype.render=function(t,e){var r=this.getRenderer();if(r.prepareFrame(t))return this.rendered=!0,r.renderFrame(t,e)},e.prototype.unrender=function(){this.rendered=!1},e.prototype.setMapInternal=function(t){t||this.unrender(),this.set(a.Z.MAP,t)},e.prototype.getMapInternal=function(){return this.get(a.Z.MAP)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&((0,h.bN)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,h.bN)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,h.oL)(t,s.Z.PRECOMPOSE,(function(t){var e=t.frameState.layerStatesArray,r=this.getLayerState(!1);(0,l.h)(!e.some((function(t){return t.layer===r.layer})),67),e.push(r)}),this),this.mapRenderKey_=(0,h.oL)(this,o.Z.CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(a.Z.SOURCE,t)},e.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},e.prototype.hasRenderer=function(){return!!this.renderer_},e.prototype.createRenderer=function(){return null},e.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),t.prototype.disposeInternal.call(this)},e}(i.Z)},6120:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},1393:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"}},5218:(t,e,r)=>{"use strict";r.d(e,{Z:()=>b});var n,i=r(7582),o=r(5704),a=r(4244),s=r(5787),l=r(8921),u=r(8010),h=r(4765),p=r(2005),c=r(766),f=r(1248),d=r(7782),y=r(9786),g=r(4415),v=r(5353),m=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const _=function(t){function e(e){var r=t.call(this,e)||this;return r.boundHandleStyleImageChange_=r.handleStyleImageChange_.bind(r),r.animatingOrInteracting_,r.hitDetectionImageData_=null,r.renderedFeatures_=null,r.renderedRevision_=-1,r.renderedResolution_=NaN,r.renderedExtent_=(0,p.lJ)(),r.wrappedRenderedExtent_=(0,p.lJ)(),r.renderedRotation_,r.renderedCenter_=null,r.renderedProjection_=null,r.renderedRenderOrder_=null,r.replayGroup_=null,r.replayGroupChanged=!0,r.declutterExecutorGroup=null,r.clipping=!0,r.compositionContext_=null,r.opacity_=1,r}return m(e,t),e.prototype.renderWorlds=function(t,e,r){var n=e.extent,i=e.viewState,o=i.center,a=i.resolution,s=i.projection,u=i.rotation,h=s.getExtent(),c=this.getLayer().getSource(),f=e.pixelRatio,d=e.viewHints,y=!(d[l.Z.ANIMATING]||d[l.Z.INTERACTING]),g=this.compositionContext_,v=Math.round(e.size[0]*f),m=Math.round(e.size[1]*f),_=c.getWrapX()&&s.canWrapX(),x=_?(0,p.dz)(h):null,b=_?Math.ceil((n[2]-h[2])/x)+1:1,w=_?Math.floor((n[0]-h[0])/x):0;do{var C=this.getRenderTransform(o,a,u,f,v,m,w*x);t.execute(g,1,C,u,y,void 0,r)}while(++wg[2];)x=m*++_,c.push(this.getRenderTransform(n,i,o,u.UN,f,d,x).slice()),v-=m}this.hitDetectionImageData_=(0,u.TU)(r,c,this.renderedFeatures_,l.getStyleFunction(),s,i,o)}e((0,u.ix)(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){var o=this;if(this.replayGroup_){var a,s=e.viewState.resolution,l=e.viewState.rotation,u=this.getLayer(),h={},p=function(t,e,r){var o=(0,g.sq)(t),a=h[o];if(a){if(!0!==a&&rO[0]&&I[2]>O[2]&&T.push([I[0]-P,I[1],I[2]-P,I[3]])}if(this.ready&&this.renderedResolution_==m&&this.renderedRevision_==x&&this.renderedRenderOrder_==w&&(0,p.r4)(this.wrappedRenderedExtent_,E))return(0,d.fS)(this.renderedExtent_,S)||(this.hitDetectionImageData_=null,this.renderedExtent_=S),this.renderedCenter_=C,this.replayGroupChanged=!1,!0;this.replayGroup_=null;var M,A=new o.Z((0,f.Qz)(m,_),E,m,_);this.getLayer().getDeclutter()&&(M=new o.Z((0,f.Qz)(m,_),E,m,_));var k,F=(0,y.Cs)();if(F){for(var L=0,Z=T.length;L{"use strict";r.d(e,{Z:()=>P});var n=r(7582),i=r(5704),o=r(5787),a=r(8237),s=r(5816);const l="hybrid",u="vector";var h,p=r(8921),c=r(8010),f=r(4765),d=r(2005),y=r(1248),g=r(4415),v=r(7814),m=r(5353),_=(h=function(t,e){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},h(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),x={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},b={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},w=function(t){function e(e){var r=t.call(this,e)||this;return r.boundHandleStyleImageChange_=r.handleStyleImageChange_.bind(r),r.renderedLayerRevision_,r.renderedPixelToCoordinateTransform_=null,r.renderedRotation_,r.tmpTransform_=(0,f.Ue)(),r}return _(e,t),e.prototype.prepareTile=function(t,e,r){var n,i=t.getState();return i!==s.Z.LOADED&&i!==s.Z.ERROR||(this.updateExecutorGroup_(t,e,r),this.tileImageNeedsRender_(t)&&(n=!0)),n},e.prototype.getTile=function(e,r,n,i){var o=i.pixelRatio,a=i.viewState,s=a.resolution,l=a.projection,h=this.getLayer(),c=h.getSource().getTile(e,r,n,o,l),f=i.viewHints,d=!(f[p.Z.ANIMATING]||f[p.Z.INTERACTING]);return!d&&c.wantedResolution||(c.wantedResolution=s),this.prepareTile(c,o,l)&&(d||Date.now()-i.time<8)&&h.getRenderMode()!==u&&this.renderTileImage_(c,i),t.prototype.getTile.call(this,e,r,n,i)},e.prototype.isDrawableTile=function(e){var r=this.getLayer();return t.prototype.isDrawableTile.call(this,e)&&(r.getRenderMode()===u?(0,g.sq)(r)in e.executorGroups:e.hasContext(r))},e.prototype.getTileImage=function(t){return t.getImage(this.getLayer())},e.prototype.prepareFrame=function(e){var r=this.getLayer().getRevision();return this.renderedLayerRevision_!==r&&(this.renderedLayerRevision_=r,this.renderedTiles.length=0),t.prototype.prepareFrame.call(this,e)},e.prototype.updateExecutorGroup_=function(t,e,r){var n=this.getLayer(),a=n.getRevision(),l=n.getRenderOrder()||null,h=t.wantedResolution,p=t.getReplayState(n);if(p.dirty||p.renderedResolution!==h||p.renderedRevision!=a||p.renderedRenderOrder!=l){var c=n.getSource(),f=n.getDeclutter(),v=c.getTileGrid(),m=c.getTileGridForProjection(r).getTileCoordExtent(t.wrappedTileCoord),_=c.getSourceTiles(e,r,t),x=(0,g.sq)(n);delete t.hitDetectionImageData[x],t.executorGroups[x]=[],f&&(t.declutterExecutorGroups[x]=[]),p.dirty=!1;for(var b=function(r,a){var g=_[r];if(g.getState()!=s.Z.LOADED)return"continue";var b=g.tileCoord,C=v.getTileCoordExtent(b),E=(0,d.Ed)(m,C),S=(0,d.f3)(E,n.getRenderBuffer()*h,w.tmpExtent),T=(0,d.fS)(C,E)?null:S,O=new i.Z(0,S,h,e),P=f?new i.Z(0,E,h,e):void 0,R=(0,y.se)(h,e),I=function(t){var e,r=t.getStyleFunction()||n.getStyleFunction();if(r&&(e=r(t,h)),e){var i=this.renderFeature(t,R,e,O,P);p.dirty=p.dirty||i}},M=g.getFeatures();l&&l!==p.renderedRenderOrder&&M.sort(l);for(var A=0,k=M.length;A0)e([]);else{var C=p.getTileCoordExtent(n.wrappedTileCoord),E=(0,d.rL)(C),S=[(y[0]-E[0])/h,(E[1]-y[1])/h],T=n.getSourceTiles().reduce((function(t,e){return t.concat(e.getFeatures())}),[]),O=n.hitDetectionImageData[o];if(!O&&!this.animatingOrInteracting_){var P=(0,v.Pq)(p.getTileSize(p.getZForResolution(h,a.zDirection))),R=this.renderedRotation_,I=[this.getRenderTransform(p.getTileCoordCenter(n.wrappedTileCoord),h,0,c.UN,P[0]*c.UN,P[1]*c.UN,0)];O=(0,c.TU)(P,I,T,i.getStyleFunction(),p.getTileCoordExtent(n.wrappedTileCoord),n.getReplayState(i).renderedResolution,R),n.hitDetectionImageData[o]=O}e((0,c.ix)(S,T,O))}}.bind(this))},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&void 0!==this.renderedLayerRevision_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.renderDeclutter=function(t){var e=this.context,r=e.globalAlpha;e.globalAlpha=this.getLayer().getOpacity();for(var n=t.viewHints,i=!(n[p.Z.ANIMATING]||n[p.Z.INTERACTING]),o=this.renderedTiles,a=0,s=o.length;a=0;--h)u[h].execute(this.context,1,this.getTileRenderTransform(l,t),t.viewState.rotation,i,void 0,t.declutterTree)}e.globalAlpha=r},e.prototype.getTileRenderTransform=function(t,e){var r=e.pixelRatio,n=e.viewState,i=n.center,o=n.resolution,a=n.rotation,s=e.size,l=Math.round(s[0]*r),u=Math.round(s[1]*r),h=this.getLayer().getSource().getTileGridForProjection(e.viewState.projection),p=t.tileCoord,c=h.getTileCoordExtent(t.wrappedTileCoord),d=h.getTileCoordExtent(p,this.tmpExtent)[0]-c[0];return(0,f.Jp)((0,f.bA)(this.inversePixelTransform.slice(),1/r,1/r),this.getRenderTransform(i,o,a,r,l,u,d))},e.prototype.renderFrame=function(e,r){var n=e.viewHints,i=!(n[p.Z.ANIMATING]||n[p.Z.INTERACTING]);t.prototype.renderFrame.call(this,e,r),this.renderedPixelToCoordinateTransform_=e.pixelToCoordinateTransform.slice(),this.renderedRotation_=e.viewState.rotation;var o=this.getLayer(),a=o.getRenderMode(),s=this.context,l=s.globalAlpha;s.globalAlpha=o.getOpacity();for(var u=b[a],h=e.viewState,c=h.rotation,f=o.getSource(),y=f.getTileGridForProjection(h.projection).getZForResolution(h.resolution,f.zDirection),v=this.renderedTiles,m=[],_=[],x=!0,w=v.length-1;w>=0;--w){var C=v[w];x=x&&!C.getReplayState(o).dirty;var E=C.executorGroups[(0,g.sq)(o)].filter((function(t){return t.hasExecutors(u)}));if(0!==E.length){var S=this.getTileRenderTransform(C,e),T=C.tileCoord[0],O=!1,P=E[0].getClipCoords(S);if(P){for(var R=0,I=m.length;R{"use strict";function n(t,e,r){return Math.min(Math.max(t,e),r)}r.d(e,{$W:()=>h,GW:()=>f,SV:()=>l,Yr:()=>u,bI:()=>s,f9:()=>i,k3:()=>o,mD:()=>d,rU:()=>a,t7:()=>p,uZ:()=>n});var i="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2},o="log2"in Math?Math.log2:function(t){return Math.log(t)*Math.LOG2E};function a(t,e,r,n,i,o){var a=i-r,l=o-n;if(0!==a||0!==l){var u=((t-r)*a+(e-n)*l)/(a*a+l*l);u>1?(r=i,n=o):u>0&&(r+=a*u,n+=l*u)}return s(t,e,r,n)}function s(t,e,r,n){var i=r-t,o=n-e;return i*i+o*o}function l(t){for(var e=t.length,r=0;ri&&(i=a,n=o)}if(0===i)return null;var s=t[n];t[n]=t[r],t[r]=s;for(var l=r+1;l=0;c--){p[c]=t[c][e]/t[c][c];for(var f=c-1;f>=0;f--)t[f][e]-=t[f][c]*p[c]}return p}function u(t){return t*Math.PI/180}function h(t,e){var r=t%e;return r*e<0?r+e:r}function p(t,e,r){return t+r*(e-t)}function c(t,e){var r=Math.pow(10,e);return Math.round(t*r)/r}function f(t,e){return Math.floor(c(t,e))}function d(t,e){return Math.ceil(c(t,e))}},273:(t,e,r)=>{"use strict";r.d(e,{KX:()=>o,ZH:()=>i,f0:()=>n,xb:()=>a});var n="function"==typeof Object.assign?Object.assign:function(t,e){var r=arguments;if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1,o=arguments.length;i{"use strict";r.d(e,{Wm:()=>i.Wm,UQ:()=>k,h_:()=>T,OP:()=>L,mi:()=>F,Vs:()=>Y,dY:()=>B,U2:()=>I,_Q:()=>M,Ck:()=>D,WO:()=>Z,Cs:()=>W,lO:()=>q,Fj:()=>V,on:()=>U,vs:()=>j});var n,i=r(8430),o=r(544),a=r(7344),s=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),l=6378137,u=Math.PI*l,h=[-u,-u,u,u],p=[-180,-85,180,85],c=l*Math.log(Math.tan(Math.PI/2)),f=function(t){function e(e){return t.call(this,{code:e,units:i.ZP.METERS,extent:h,global:!0,worldExtent:p,getPointResolution:function(t,e){return t/(0,a.f9)(e[1]/l)}})||this}return s(e,t),e}(o.Z),d=[new f("EPSG:3857"),new f("EPSG:102100"),new f("EPSG:102113"),new f("EPSG:900913"),new f("http://www.opengis.net/def/crs/EPSG/0/3857"),new f("http://www.opengis.net/gml/srs/epsg.xml#3857")];var y=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=[-180,-90,180,90],v=6378137*Math.PI/180,m=function(t){function e(e,r){return t.call(this,{code:e,units:i.ZP.DEGREES,extent:g,axisOrientation:r,global:!0,metersPerUnit:v,worldExtent:g})||this}return y(e,t),e}(o.Z),_=[new m("CRS:84"),new m("EPSG:4326","neu"),new m("urn:ogc:def:crs:OGC:1.3:CRS84"),new m("urn:ogc:def:crs:OGC:2:84"),new m("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new m("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new m("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],x={},b={};function w(t,e,r){var n=t.getCode(),i=e.getCode();n in b||(b[n]={}),b[n][i]=r}r(2005);var C=r(5353);function E(t,e,r){var n=r||6371008.8,i=(0,a.Yr)(t[1]),o=(0,a.Yr)(e[1]),s=(o-i)/2,l=(0,a.Yr)(e[0]-t[0])/2,u=Math.sin(s)*Math.sin(s)+Math.sin(l)*Math.sin(l)*Math.cos(i)*Math.cos(o);return 2*n*Math.atan2(Math.sqrt(u),Math.sqrt(1-u))}var S=!0;function T(t){S=!(void 0===t||t)}function O(t,e,r){var n;if(void 0!==e){for(var i=0,o=t.length;i=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(S=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t}function V(t,e){return t}function B(t,e){return t}function U(t,e){return t}A(d),A(_),z=d,N=function(t,e,r){var n=t.length,i=r>1?r:2,o=e;void 0===o&&(o=i>2?t.slice():new Array(n));for(var a=0;ac?s=c:s<-c&&(s=-c),o[a+1]=s}return o},G=function(t,e,r){var n=t.length,i=r>1?r:2,o=e;void 0===o&&(o=i>2?t.slice():new Array(n));for(var a=0;a{"use strict";r.d(e,{Z:()=>i});var n=r(8430);const i=function(){function t(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}return t.prototype.canWrapX=function(){return this.canWrapX_},t.prototype.getCode=function(){return this.code_},t.prototype.getExtent=function(){return this.extent_},t.prototype.getUnits=function(){return this.units_},t.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||n.Wm[this.units_]},t.prototype.getWorldExtent=function(){return this.worldExtent_},t.prototype.getAxisOrientation=function(){return this.axisOrientation_},t.prototype.isGlobal=function(){return this.global_},t.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},t.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},t.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},t.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},t.prototype.setWorldExtent=function(t){this.worldExtent_=t},t.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},t.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},t}()},8430:(t,e,r)=>{"use strict";r.d(e,{Wm:()=>i,ZP:()=>o});var n={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},i={};i[n.RADIANS]=6370997/(2*Math.PI),i[n.DEGREES]=2*Math.PI*6370997/360,i[n.FEET]=.3048,i[n.METERS]=1,i[n.USFEET]=1200/3937;const o=n},6178:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});var n,i=r(7288),o=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const a=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o.inversePixelTransform=r,o.frameState=n,o.context=i,o}return o(e,t),e}(i.ZP)},3557:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},7857:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n=function(){function t(){}return t.prototype.drawCustom=function(t,e,r,n){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,e){},t.prototype.drawFeature=function(t,e){},t.prototype.drawGeometryCollection=function(t,e){},t.prototype.drawLineString=function(t,e){},t.prototype.drawMultiLineString=function(t,e){},t.prototype.drawMultiPoint=function(t,e){},t.prototype.drawMultiPolygon=function(t,e){},t.prototype.drawPoint=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.drawText=function(t,e){},t.prototype.setFillStrokeStyle=function(t,e){},t.prototype.setImageStyle=function(t,e){},t.prototype.setTextStyle=function(t,e){},t}()},9680:(t,e,r)=>{"use strict";r.d(e,{Df:()=>u,He:()=>f,Kd:()=>I,PH:()=>v,Qx:()=>T,Tx:()=>g,V4:()=>y,X9:()=>c,Zw:()=>M,_f:()=>A,bL:()=>h,mb:()=>p,oB:()=>_,rc:()=>d,ru:()=>m,sG:()=>b,yC:()=>x});var n=r(12),i=r(8408),o=r(6299),a=r(273),s=r(766),l=r(8308),u="10px sans-serif",h="#000",p="round",c=[],f=0,d="round",y=10,g="#000",v="center",m="middle",_=[0,0,0,0],x=1,b=new n.Z;(new i.Z).setSize=function(){console.warn("labelCache is deprecated.")};var w,C,E=null,S={},T=function(){var t,e,r="32px ",n=["monospace","serif"],i=n.length,o="wmytzilWMYTZIL@#/&?$%10";function s(t,a,s){for(var l=!0,u=0;u{"use strict";r.d(e,{Z:()=>f});var n,i=r(4531),o=r(2110),a=r(7857),s=r(6808),l=r(2005),u=r(9680),h=r(7782),p=r(9157),c=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const f=function(t){function e(e,r,n,i){var o=t.call(this)||this;return o.tolerance=e,o.maxExtent=r,o.pixelRatio=i,o.maxLineWidth=0,o.resolution=n,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return c(e,t),e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))},e.prototype.appendFlatPointCoordinates=function(t,e){for(var r=this.getBufferedMaxExtent(),n=this.tmpCoordinate_,i=this.coordinates,o=i.length,a=0,s=t.length;af&&(this.instructions.push([i.ZP.CUSTOM,f,a,t,r,p.Ml]),this.hitDetectionInstructions.push([i.ZP.CUSTOM,f,a,t,n||r,p.Ml]));break;case"Point":o=t.getFlatCoordinates(),this.coordinates.push(o[0],o[1]),a=this.coordinates.length,this.instructions.push([i.ZP.CUSTOM,f,a,t,r]),this.hitDetectionInstructions.push([i.ZP.CUSTOM,f,a,t,n||r])}this.endGeometry(e)},e.prototype.beginGeometry=function(t,e){this.beginGeometryInstruction1_=[i.ZP.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[i.ZP.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t,e=this.hitDetectionInstructions;e.reverse();var r,n,o=e.length,a=-1;for(t=0;tthis.maxLineWidth&&(this.maxLineWidth=r.lineWidth,this.bufferedMaxExtent_=null)}else r.strokeStyle=void 0,r.lineCap=void 0,r.lineDash=null,r.lineDashOffset=void 0,r.lineJoin=void 0,r.lineWidth=void 0,r.miterLimit=void 0},e.prototype.createFill=function(t){var e=t.fillStyle,r=[i.ZP.SET_FILL_STYLE,e];return"string"!=typeof e&&r.push(!0),r},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[i.ZP.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e){var r=t.fillStyle;"string"==typeof r&&t.currentFillStyle==r||(void 0!==r&&this.instructions.push(e.call(this,t)),t.currentFillStyle=r)},e.prototype.updateStrokeStyle=function(t,e){var r=t.strokeStyle,n=t.lineCap,i=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,s=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=r||t.currentLineCap!=n||i!=t.currentLineDash&&!(0,h.fS)(t.currentLineDash,i)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=s||t.currentMiterLimit!=l)&&(void 0!==r&&e.call(this,t),t.currentStrokeStyle=r,t.currentLineCap=n,t.currentLineDash=i,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=s,t.currentMiterLimit=l)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var e=[i.ZP.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,l.d9)(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;(0,l.f3)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(a.Z)},5704:(t,e,r)=>{"use strict";r.d(e,{Z:()=>g});var n,i=r(6112),o=r(4531),a=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const s=function(t){function e(e,r,n,i){var o=t.call(this,e,r,n,i)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterMode_=void 0,o.declutterImageWithText_=void 0,o}return a(e,t),e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var r=t.getFlatCoordinates(),n=t.getStride(),i=this.coordinates.length,a=this.appendFlatPointCoordinates(r,n);this.instructions.push([o.ZP.DRAW_IMAGE,i,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([o.ZP.DRAW_IMAGE,i,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var r=t.getFlatCoordinates(),n=t.getStride(),i=this.coordinates.length,a=this.appendFlatPointCoordinates(r,n);this.instructions.push([o.ZP.DRAW_IMAGE,i,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([o.ZP.DRAW_IMAGE,i,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,t.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,e){var r=t.getAnchor(),n=t.getSize(),i=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=r[0],this.anchorY_=r[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=n[1],this.opacity_=t.getOpacity(),this.originX_=i[0],this.originY_=i[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=n[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e},e}(i.Z);var l=r(9680),u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const h=function(t){function e(e,r,n,i){return t.call(this,e,r,n,i)||this}return u(e,t),e.prototype.drawFlatCoordinates_=function(t,e,r,n){var i=this.coordinates.length,a=this.appendFlatLineCoordinates(t,e,r,n,!1,!1),s=[o.ZP.MOVE_TO_LINE_TO,i,a];return this.instructions.push(s),this.hitDetectionInstructions.push(s),r},e.prototype.drawLineString=function(t,e){var r=this.state,n=r.strokeStyle,i=r.lineWidth;if(void 0!==n&&void 0!==i){this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([o.ZP.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,l.X9,l.He],o.$O);var a=t.getFlatCoordinates(),s=t.getStride();this.drawFlatCoordinates_(a,0,a.length,s),this.hitDetectionInstructions.push(o.Yc),this.endGeometry(e)}},e.prototype.drawMultiLineString=function(t,e){var r=this.state,n=r.strokeStyle,i=r.lineWidth;if(void 0!==n&&void 0!==i){this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([o.ZP.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset],o.$O);for(var a=t.getEnds(),s=t.getFlatCoordinates(),l=t.getStride(),u=0,h=0,p=a.length;h{"use strict";r.d(e,{Z:()=>R});var n=r(4531),i=r(6301),o=r(6299),a=r(4765),s=r(2005),l=r(9680),u=r(7344),h=r(7810);function p(t,e,r,n,i,o,a,s,l,p,c,f){var d=t[e],y=t[e+1],g=0,v=0,m=0,_=0;function x(){g=d,v=y,d=t[e+=n],y=t[e+1],_+=m,m=Math.sqrt((d-g)*(d-g)+(y-v)*(y-v))}do{x()}while(eI[2]}else O=w>P;var M,A=Math.PI,k=[],F=E+n===e;if(m=0,_=S,d=t[e=E],y=t[e+1],F){x(),M=Math.atan2(y-v,d-g),O&&(M+=M>0?-A:A);var L=(P+w)/2,Z=(R+C)/2;return k[0]=[L,Z,(T-o)/2,M,i],k}for(var D=0,j=(i=i.replace(/\n/g," ")).length;D0?-A:A),void 0!==M){var N=z-M;if(N+=N>A?-2*A:N<-A?2*A:0,Math.abs(N)>a)return null}M=z;for(var G=D,X=0;D0&&t.push("\n",""),t.push(e,""),t}const C=function(){function t(t,e,r,n){this.overlaps=r,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,a.Ue)(),this.hitDetectionInstructions=n.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=n.fillStates||{},this.strokeStates=n.strokeStates||{},this.textStates=n.textStates||{},this.widths_={},this.labels_={}}return t.prototype.createLabel=function(t,e,r,n){var a=t+e+r+n;if(this.labels_[a])return this.labels_[a];var s=n?this.strokeStates[n]:null,u=r?this.fillStates[r]:null,h=this.textStates[e],p=this.pixelRatio,c=[h.scale[0]*p,h.scale[1]*p],f=Array.isArray(t),d=h.justify?i.I[h.justify]:b(Array.isArray(t)?t[0]:t,h.textAlign||l.PH),y=n&&s.lineWidth?s.lineWidth:0,g=f?t:t.split("\n").reduce(w,[]),v=(0,l.Zw)(h,g),m=v.width,_=v.height,x=v.widths,C=v.heights,E=v.lineWidths,S=m+y,T=[],O=(S+2)*c[0],P=(_+y)*c[1],R={width:O<0?Math.floor(O):Math.ceil(O),height:P<0?Math.floor(P):Math.ceil(P),contextInstructions:T};1==c[0]&&1==c[1]||T.push("scale",c),n&&(T.push("strokeStyle",s.strokeStyle),T.push("lineWidth",y),T.push("lineCap",s.lineCap),T.push("lineJoin",s.lineJoin),T.push("miterLimit",s.miterLimit),(o.Id?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D).prototype.setLineDash&&(T.push("setLineDash",[s.lineDash]),T.push("lineDashOffset",s.lineDashOffset))),r&&T.push("fillStyle",u.fillStyle),T.push("textBaseline","middle"),T.push("textAlign","center");for(var I,M=.5-d,A=d*S+M*y,k=[],F=[],L=0,Z=0,D=0,j=0,z=0,N=g.length;zt?t-h:i,O=o+p>e?e-p:o,P=x[3]+T*f[0]+x[1],R=x[0]+O*f[1]+x[2],I=E-x[3],M=S-x[0];return(b||0!==c)&&(y[0]=I,m[0]=I,y[1]=M,g[1]=M,g[0]=I+P,v[0]=g[0],v[1]=M+R,m[1]=v[1]),0!==c?(C=(0,a.qC)((0,a.Ue)(),r,n,1,1,c,-r,-n),(0,a.nn)(C,y),(0,a.nn)(C,g),(0,a.nn)(C,v),(0,a.nn)(C,m),(0,s.T9)(Math.min(y[0],g[0],v[0],m[0]),Math.min(y[1],g[1],v[1],m[1]),Math.max(y[0],g[0],v[0],m[0]),Math.max(y[1],g[1],v[1],m[1]),d)):(0,s.T9)(Math.min(I,I+P),Math.min(M,M+R),Math.max(I,I+P),Math.max(M,M+R),d),_&&(E=Math.round(E),S=Math.round(S)),{drawImageX:E,drawImageY:S,drawImageW:T,drawImageH:O,originX:h,originY:p,declutterBox:{minX:d[0],minY:d[1],maxX:d[2],maxY:d[3],value:w},canvasTransform:C,scale:f}},t.prototype.replayImageOrLabel_=function(t,e,r,n,i,o,a){var s=!(!o&&!a),u=n.declutterBox,h=t.canvas,p=a?a[2]*n.scale[0]/2:0;return u.minX-p<=h.width/e&&u.maxX+p>=0&&u.minY-p<=h.height/e&&u.maxY+p>=0&&(s&&this.replayTextBackground_(t,y,g,v,m,o,a),(0,l._f)(t,n.canvasTransform,i,r,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0},t.prototype.fill_=function(t){if(this.alignFill_){var e=(0,a.nn)(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;t.save(),t.translate(e[0]%r,e[1]%r),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},t.prototype.setStrokeStyle_=function(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},t.prototype.drawLabelWithPointPlacement_=function(t,e,r,n){var o=this.textStates[e],a=this.createLabel(t,e,n,r),s=this.strokeStates[r],u=this.pixelRatio,h=b(Array.isArray(t)?t[0]:t,o.textAlign||l.PH),p=i.I[o.textBaseline||l.ru],c=s&&s.lineWidth?s.lineWidth:0;return{label:a,anchorX:h*(a.width/u-2*o.scale[0])+2*(.5-h)*c,anchorY:p*a.height/u+2*(.5-p)*c}},t.prototype.execute_=function(t,e,r,o,u,d,y,g){var v;this.pixelCoordinates_&&(0,c.fS)(r,this.renderedTransform_)?v=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),v=(0,h.vT)(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),(0,a.lk)(this.renderedTransform_,r));for(var m,x,b,w,C,E,S,T,O,P,R,I,M,A,k,F,L=0,Z=o.length,D=0,j=0,z=0,N=null,G=null,X=this.coordinateCache_,W=this.viewRotation_,q=Math.round(1e12*Math.atan2(-r[1],r[0]))/1e12,Y={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:W},V=this.instructions!=o||this.overlaps?0:200;LV&&(this.fill_(t),j=0),z>V&&(t.stroke(),z=0),j||z||(t.beginPath(),w=NaN,C=NaN),++L;break;case n.ZP.CIRCLE:var U=v[D=B[1]],K=v[D+1],H=v[D+2]-U,J=v[D+3]-K,$=Math.sqrt(H*H+J*J);t.moveTo(U+$,K),t.arc(U,K,$,0,2*Math.PI,!0),++L;break;case n.ZP.CLOSE_PATH:t.closePath(),++L;break;case n.ZP.CUSTOM:D=B[1],m=B[2];var Q=B[3],tt=B[4],et=6==B.length?B[5]:void 0;Y.geometry=Q,Y.feature=M,L in X||(X[L]=[]);var rt=X[L];et?et(v,D,m,2,rt):(rt[0]=v[D],rt[1]=v[D+1],rt.length=2),tt(rt,Y),++L;break;case n.ZP.DRAW_IMAGE:D=B[1],m=B[2],T=B[3],x=B[4],b=B[5];var nt=B[6],it=B[7],ot=B[8],at=B[9],st=B[10],lt=B[11],ut=B[12],ht=B[13],pt=B[14],ct=B[15];if(!T&&B.length>=20){O=B[19],P=B[20],R=B[21],I=B[22];var ft=this.drawLabelWithPointPlacement_(O,P,R,I);T=ft.label,B[3]=T;var dt=B[23];x=(ft.anchorX-dt)*this.pixelRatio,B[4]=x;var yt=B[24];b=(ft.anchorY-yt)*this.pixelRatio,B[5]=b,nt=T.height,B[6]=nt,ht=T.width,B[13]=ht}var gt=void 0;B.length>25&&(gt=B[25]);var vt=void 0,mt=void 0,_t=void 0;B.length>17?(vt=B[16],mt=B[17],_t=B[18]):(vt=l.oB,mt=!1,_t=!1),st&&q?lt+=W:st||q||(lt-=W);for(var xt=0;Dr)break;var s=n[a];s||(s=[],n[a]=s),s.push(4*((t+i)*e+(t+o))+3),i>0&&s.push(4*((t-i)*e+(t+o))+3),o>0&&(s.push(4*((t+i)*e+(t-o))+3),i>0&&s.push(4*((t-i)*e+(t-o))+3))}for(var l=[],u=(i=0,n.length);i0){if(!o||"Image"!==d&&"Text"!==d||-1!==o.indexOf(t)){var u=(y[a]-3)/4,h=n-u%l,p=n-(u/l|0),c=i(t,e,h*h+p*p);if(c)return c}f.clearRect(0,0,l,l);break}}var v,m,_,x,b,w=Object.keys(this.executorsByZIndex_).map(Number);for(w.sort(c.kK),v=w.length-1;v>=0;--v){var C=w[v].toString();for(_=this.executorsByZIndex_[C],m=T.length-1;m>=0;--m)if(void 0!==(x=_[d=T[m]])&&(b=x.executeHitDetection(f,u,r,g,p)))return b}},t.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var r=e[0],n=e[1],i=e[2],o=e[3],a=[r,n,r,o,i,o,i,n];return(0,h.vT)(a,0,8,2,t,a),a},t.prototype.isEmpty=function(){return(0,S.xb)(this.executorsByZIndex_)},t.prototype.execute=function(t,e,r,n,i,o,a){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(c.kK),this.maxExtent_&&(t.save(),this.clip(t,r));var l,u,h,p,f,d,y=o||T;for(a&&s.reverse(),l=0,u=s.length;l{"use strict";r.d(e,{$O:()=>a,Yc:()=>o,ZP:()=>l,gO:()=>i,s3:()=>s});var n={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},i=[n.FILL],o=[n.STROKE],a=[n.BEGIN_PATH],s=[n.CLOSE_PATH];const l=n},6301:(t,e,r)=>{"use strict";r.d(e,{I:()=>f,Z:()=>d});var n=r(6112),i=r(4531),o=r(2197),a=r(6808),s=r(9680),l=r(4415),u=r(2005);function h(t,e,r,n,i){var o,a,s,l,u,h,p,c,f,d=r,y=r,g=0,v=0,m=r;for(o=r;ot&&(v>g&&(g=v,d=m,y=o),v=0,m=o-i)),a=s,h=c,p=f),l=_,u=x}return(v+=s)>g?[m,o]:[d,y]}var p,c=(p=function(t,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},p(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),f={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};const d=function(t){function e(e,r,n,i){var o=t.call(this,e,r,n,i)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return c(e,t),e.prototype.finish=function(){var e=t.prototype.finish.call(this);return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e},e.prototype.drawText=function(t,e){var r=this.textFillState_,n=this.textStrokeState_,a=this.textState_;if(""!==this.text_&&a&&(r||n)){var l=this.coordinates,p=l.length,c=t.getType(),f=null,d=t.getStride();if(a.placement!==o.Z.LINE||"LineString"!=c&&"MultiLineString"!=c&&"Polygon"!=c&&"MultiPolygon"!=c){var y=a.overflow?null:[];switch(c){case"Point":case"MultiPoint":f=t.getFlatCoordinates();break;case"LineString":f=t.getFlatMidpoint();break;case"Circle":f=t.getCenter();break;case"MultiLineString":f=t.getFlatMidpoints(),d=2;break;case"Polygon":f=t.getFlatInteriorPoint(),a.overflow||y.push(f[2]/this.resolution),d=3;break;case"MultiPolygon":var g=t.getFlatInteriorPoints();for(f=[],O=0,P=g.length;O{"use strict";r.d(e,{UN:()=>_,TU:()=>x,ix:()=>b});var n,i=r(7857),o=r(6808),a=r(4765),s=r(9680),l=r(7782),u=r(2005),h=r(7810),p=r(3062),c=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),f=function(t){function e(e,r,n,i,o,s,l){var u=t.call(this)||this;return u.context_=e,u.pixelRatio_=r,u.extent_=n,u.transform_=i,u.viewRotation_=o,u.squaredTolerance_=s,u.userTransform_=l,u.contextFillState_=null,u.contextStrokeState_=null,u.contextTextState_=null,u.fillState_=null,u.strokeState_=null,u.image_=null,u.imageAnchorX_=0,u.imageAnchorY_=0,u.imageHeight_=0,u.imageOpacity_=0,u.imageOriginX_=0,u.imageOriginY_=0,u.imageRotateWithView_=!1,u.imageRotation_=0,u.imageScale_=[0,0],u.imageWidth_=0,u.text_="",u.textOffsetX_=0,u.textOffsetY_=0,u.textRotateWithView_=!1,u.textRotation_=0,u.textScale_=[0,0],u.textFillState_=null,u.textStrokeState_=null,u.textState_=null,u.pixelCoordinates_=[],u.tmpLocalTransform_=(0,a.Ue)(),u}return c(e,t),e.prototype.drawImages_=function(t,e,r,n){if(this.image_){var i=(0,h.vT)(t,e,r,n,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.tmpLocalTransform_,l=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=l*this.imageOpacity_);var u=this.imageRotation_;this.imageRotateWithView_&&(u+=this.viewRotation_);for(var p=0,c=i.length;p{"use strict";r.d(e,{r:()=>m,Z:()=>x});var n,i=r(7758),o=r(8260),a=r(9335),s=r(4415),l=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const u=function(t){function e(e){var r=t.call(this)||this;return r.ready=!0,r.boundHandleImageChange_=r.handleImageChange_.bind(r),r.layer_=e,r.declutterExecutorGroup=null,r}return l(e,t),e.prototype.getFeatures=function(t){return(0,s.O3)()},e.prototype.getData=function(t){return null},e.prototype.prepareFrame=function(t){return(0,s.O3)()},e.prototype.renderFrame=function(t,e){return(0,s.O3)()},e.prototype.loadedTileCallback=function(t,e,r){t[e]||(t[e]={}),t[e][r.tileCoord.toString()]=r},e.prototype.createLoadedTileFinder=function(t,e,r){return function(n,i){var o=this.loadedTileCallback.bind(this,r,n);return t.forEachLoadedTile(e,n,i,o)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){},e.prototype.getDataAtPixel=function(t,e,r){return null},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){t.target.getState()===o.Z.LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=o.Z.LOADED&&e!=o.Z.ERROR&&t.addEventListener(i.Z.CHANGE,this.boundHandleImageChange_),e==o.Z.IDLE&&(t.load(),e=t.getState()),e==o.Z.LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()},e.prototype.disposeInternal=function(){delete this.layer_,t.prototype.disposeInternal.call(this)},e}(a.Z);var h=r(6178),p=r(3557),c=r(4765),f=r(8609),d=r(2005),y=r(766),g=r(7782),v=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),m=[],_=null;const x=function(t){function e(e){var r=t.call(this,e)||this;return r.container=null,r.renderedResolution,r.tempTransform=(0,c.Ue)(),r.pixelTransform=(0,c.Ue)(),r.inversePixelTransform=(0,c.Ue)(),r.context=null,r.containerReused=!1,r.pixelContext_=null,r.frameState=null,r}return v(e,t),e.prototype.getImageData=function(t,e,r){var n,i;_||((n=document.createElement("canvas")).width=1,n.height=1,_=n.getContext("2d")),_.clearRect(0,0,1,1);try{_.drawImage(t,e,r,1,1,0,0,1,1),i=_.getImageData(0,0,1,1).data}catch(t){return _=null,null}return i},e.prototype.getBackground=function(t){var e=this.getLayer().getBackground();return"function"==typeof e&&(e=e(t.viewState.resolution)),e||void 0},e.prototype.useContainer=function(t,e,r){var n,i,o=this.getLayer().getClassName();if(t&&t.className===o&&(!r||t&&t.style.backgroundColor&&(0,g.fS)((0,f._2)(t.style.backgroundColor),(0,f._2)(r)))&&(s=t.firstElementChild)instanceof HTMLCanvasElement&&(i=s.getContext("2d")),i&&i.canvas.style.transform===e?(this.container=t,this.context=i,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){(n=document.createElement("div")).className=o;var a=n.style;a.position="absolute",a.width="100%",a.height="100%";var s=(i=(0,y.E4)()).canvas;n.appendChild(s),(a=s.style).position="absolute",a.left="0",a.transformOrigin="top left",this.container=n,this.context=i}this.containerReused||!r||this.container.style.backgroundColor||(this.container.style.backgroundColor=r)},e.prototype.clipUnrotated=function(t,e,r){var n=(0,d.rL)(r),i=(0,d.Xv)(r),o=(0,d.w$)(r),a=(0,d.hC)(r);(0,c.nn)(e.coordinateToPixelTransform,n),(0,c.nn)(e.coordinateToPixelTransform,i),(0,c.nn)(e.coordinateToPixelTransform,o),(0,c.nn)(e.coordinateToPixelTransform,a);var s=this.inversePixelTransform;(0,c.nn)(s,n),(0,c.nn)(s,i),(0,c.nn)(s,o),(0,c.nn)(s,a),t.save(),t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(n[1])),t.lineTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()},e.prototype.dispatchRenderEvent_=function(t,e,r){var n=this.getLayer();if(n.hasListener(t)){var i=new h.Z(t,this.inversePixelTransform,r,e);n.dispatchEvent(i)}},e.prototype.preRender=function(t,e){this.frameState=e,this.dispatchRenderEvent_(p.Z.PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(p.Z.POSTRENDER,t,e)},e.prototype.getRenderTransform=function(t,e,r,n,i,o,a){var s=i/2,l=o/2,u=n/e,h=-u,p=-t[0]+a,f=-t[1];return(0,c.qC)(this.tempTransform,s,l,u,h,-r,p,f)},e.prototype.getDataAtPixel=function(t,e,r){var n=(0,c.nn)(this.inversePixelTransform,t.slice()),i=this.context,o=this.getLayer().getExtent();if(o){var a=(0,c.nn)(e.pixelToCoordinateTransform,t.slice());if(!(0,d.b8)(o,a))return null}var s,l=Math.round(n[0]),u=Math.round(n[1]),h=this.pixelContext_;if(!h){var p=document.createElement("canvas");p.width=1,p.height=1,h=p.getContext("2d"),this.pixelContext_=h}h.clearRect(0,0,1,1);try{h.drawImage(i.canvas,l,u,1,1,0,0,1,1),s=h.getImageData(0,0,1,1).data}catch(t){return"SecurityError"===t.name?(this.pixelContext_=null,new Uint8Array):s}return 0===s[3]?null:s},e.prototype.disposeInternal=function(){delete this.frameState,t.prototype.disposeInternal.call(this)},e}(u)},8237:(t,e,r)=>{"use strict";r.d(e,{Z:()=>m});var n,i=r(4244),o=r(7341),a=r(1528),s=r(8441),l=r(5816),u=r(1225),h=r(4765),p=r(273),c=r(2005),f=r(9786),d=r(4415),y=r(7782),g=r(7814),v=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const m=function(t){function e(e){var r=t.call(this,e)||this;return r.extentChanged=!0,r.renderedExtent_=null,r.renderedPixelRatio,r.renderedProjection=null,r.renderedRevision,r.renderedTiles=[],r.newTiles_=!1,r.tmpExtent=(0,c.lJ)(),r.tmpTileRange_=new s.Z(0,0,0,0),r}return v(e,t),e.prototype.isDrawableTile=function(t){var e=this.getLayer(),r=t.getState(),n=e.getUseInterimTilesOnError();return r==l.Z.LOADED||r==l.Z.EMPTY||r==l.Z.ERROR&&!n},e.prototype.getTile=function(t,e,r,n){var i=n.pixelRatio,o=n.viewState.projection,a=this.getLayer(),s=a.getSource().getTile(t,e,r,i,o);return s.getState()==l.Z.ERROR&&(a.getUseInterimTilesOnError()?a.getPreload()>0&&(this.newTiles_=!0):s.setState(l.Z.LOADED)),this.isDrawableTile(s)||(s=s.getInterimTile()),s},e.prototype.getData=function(t){var e=this.frameState;if(!e)return null;var r=this.getLayer(),n=(0,h.nn)(e.pixelToCoordinateTransform,t.slice()),i=r.getExtent();if(i&&!(0,c.b8)(i,n))return null;for(var s=e.pixelRatio,u=e.viewState.projection,p=e.viewState,f=r.getRenderSource(),d=f.getTileGridForProjection(p.projection),y=f.getTilePixelRatio(e.pixelRatio),v=d.getZForResolution(p.resolution);v>=d.getMinZoom();--v){var m=d.getTileCoordForCoordAndZ(n,v),_=f.getTile(v,m[1],m[2],s,u);if(!(_ instanceof o.Z||_ instanceof a.Z))return null;if(_.getState()===l.Z.LOADED){var x=d.getOrigin(v),b=(0,g.Pq)(d.getTileSize(v)),w=d.getResolution(v),C=Math.floor(y*((n[0]-x[0])/w-m[1]*b[0])),E=Math.floor(y*((x[1]-n[1])/w-m[2]*b[1])),S=Math.round(y*f.getGutterForProjection(p.projection));return this.getImageData(_.getImage(),C+S,E+S)}}return null},e.prototype.loadedTileCallback=function(e,r,n){return!!this.isDrawableTile(n)&&t.prototype.loadedTileCallback.call(this,e,r,n)},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,e){var r=t.layerStatesArray[t.layerIndex],n=t.viewState,i=n.projection,o=n.resolution,a=n.center,s=n.rotation,g=t.pixelRatio,v=this.getLayer(),m=v.getSource(),_=m.getRevision(),x=m.getTileGridForProjection(i),b=x.getZForResolution(o,m.zDirection),w=x.getResolution(b),C=t.extent,E=t.viewState.resolution,S=m.getTilePixelRatio(g),T=Math.round((0,c.dz)(C)/E*g),O=Math.round((0,c.Cr)(C)/E*g),P=r.extent&&(0,f.dY)(r.extent,i);P&&(C=(0,c.Ed)(C,(0,f.dY)(r.extent,i)));var R=w*T/2/S,I=w*O/2/S,M=[a[0]-R,a[1]-I,a[0]+R,a[1]+I],A=x.getTileRangeForExtentAndZ(C,b),k={};k[b]={};var F=this.createLoadedTileFinder(m,i,k),L=this.tmpExtent,Z=this.tmpTileRange_;this.newTiles_=!1;for(var D=s?(0,c.dY)(n.center,E,s,t.size):void 0,j=A.minX;j<=A.maxX;++j)for(var z=A.minY;z<=A.maxY;++z)if(!s||x.tileCoordIntersectsViewport([b,j,z],D)){var N=this.getTile(b,j,z,t);if(this.isDrawableTile(N)){var G=(0,d.sq)(this);if(N.getState()==l.Z.LOADED&&(k[b][N.tileCoord.toString()]=N,(ht=N.inTransition(G))&&1!==r.opacity&&(N.endTransition(G),ht=!1),this.newTiles_||!ht&&-1!==this.renderedTiles.indexOf(N)||(this.newTiles_=!0)),1===N.getAlpha(G,t.time))continue}var X=x.getTileCoordChildTileRange(N.tileCoord,Z,L),W=!1;X&&(W=F(b+1,X)),W||x.forEachTileCoordParentTileRange(N.tileCoord,F,Z,L)}var q=w/o*g/S;(0,h.qC)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/g,1/g,s,-T/2,-O/2);var Y=(0,h.BB)(this.pixelTransform);this.useContainer(e,Y,this.getBackground(t));var V=this.context,B=V.canvas;(0,h.nb)(this.inversePixelTransform,this.pixelTransform),(0,h.qC)(this.tempTransform,T/2,O/2,q,q,0,-T/2,-O/2),B.width!=T||B.height!=O?(B.width=T,B.height=O):this.containerReused||V.clearRect(0,0,T,O),P&&this.clipUnrotated(V,t,P),m.getInterpolate()||(0,p.f0)(V,u.$),this.preRender(V,t),this.renderedTiles.length=0;var U,K,H,J=Object.keys(k).map(Number);J.sort(y.kK),1!==r.opacity||this.containerReused&&!m.getOpaque(t.viewState.projection)?(U=[],K=[]):J=J.reverse();for(var $=J.length-1;$>=0;--$){var Q=J[$],tt=m.getTilePixelSize(Q,g,i),et=x.getResolution(Q)/w,rt=tt[0]*et*q,nt=tt[1]*et*q,it=x.getTileCoordForCoordAndZ((0,c.rL)(M),Q),ot=x.getTileCoordExtent(it),at=(0,h.nn)(this.tempTransform,[S*(ot[0]-M[0])/w,S*(M[3]-ot[3])/w]),st=S*m.getGutterForProjection(i),lt=k[Q];for(var ut in lt){var ht,pt=(N=lt[ut]).tileCoord,ct=it[1]-pt[1],ft=Math.round(at[0]-(ct-1)*rt),dt=it[2]-pt[2],yt=Math.round(at[1]-(dt-1)*nt),gt=ft-(j=Math.round(at[0]-ct*rt)),vt=yt-(z=Math.round(at[1]-dt*nt)),mt=b===Q,_t=!1;if(!(ht=mt&&1!==N.getAlpha((0,d.sq)(this),t.time)))if(U){H=[j,z,j+gt,z,j+gt,z+vt,j,z+vt];for(var xt=0,bt=U.length;xt{"use strict";r.d(e,{$:()=>n,s:()=>i});var n={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},i={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0}},1248:(t,e,r)=>{"use strict";r.d(e,{Pn:()=>u,Qz:()=>l,eR:()=>a,se:()=>s});var n=r(8260),i=r(4415),o={Point:function(t,e,r,i,o){var a,s=r.getImage(),l=r.getText();if(s){if(s.getImageState()!=n.Z.LOADED)return;var u=t;if(o){var h=s.getDeclutterMode();if("none"!==h)if(u=o,"obstacle"===h){var p=t.getBuilder(r.getZIndex(),"Image");p.setImageStyle(s,a),p.drawPoint(e,i)}else l&&l.getText()&&(a={})}var c=u.getBuilder(r.getZIndex(),"Image");c.setImageStyle(s,a),c.drawPoint(e,i)}if(l&&l.getText()){var f=t;o&&(f=o);var d=f.getBuilder(r.getZIndex(),"Text");d.setTextStyle(l,a),d.drawText(e,i)}},LineString:function(t,e,r,n,i){var o=r.getStroke();if(o){var a=t.getBuilder(r.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawLineString(e,n)}var s=r.getText();if(s&&s.getText()){var l=(i||t).getBuilder(r.getZIndex(),"Text");l.setTextStyle(s),l.drawText(e,n)}},Polygon:function(t,e,r,n,i){var o=r.getFill(),a=r.getStroke();if(o||a){var s=t.getBuilder(r.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawPolygon(e,n)}var l=r.getText();if(l&&l.getText()){var u=(i||t).getBuilder(r.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,n)}},MultiPoint:function(t,e,r,i,o){var a,s=r.getImage(),l=r.getText();if(s){if(s.getImageState()!=n.Z.LOADED)return;var u=t;if(o){var h=s.getDeclutterMode();if("none"!==h)if(u=o,"obstacle"===h){var p=t.getBuilder(r.getZIndex(),"Image");p.setImageStyle(s,a),p.drawMultiPoint(e,i)}else l&&l.getText()&&(a={})}var c=u.getBuilder(r.getZIndex(),"Image");c.setImageStyle(s,a),c.drawMultiPoint(e,i)}if(l&&l.getText()){var f=t;o&&(f=o);var d=f.getBuilder(r.getZIndex(),"Text");d.setTextStyle(l,a),d.drawText(e,i)}},MultiLineString:function(t,e,r,n,i){var o=r.getStroke();if(o){var a=t.getBuilder(r.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawMultiLineString(e,n)}var s=r.getText();if(s&&s.getText()){var l=(i||t).getBuilder(r.getZIndex(),"Text");l.setTextStyle(s),l.drawText(e,n)}},MultiPolygon:function(t,e,r,n,i){var o=r.getFill(),a=r.getStroke();if(a||o){var s=t.getBuilder(r.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawMultiPolygon(e,n)}var l=r.getText();if(l&&l.getText()){var u=(i||t).getBuilder(r.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,n)}},GeometryCollection:function(t,e,r,n,i){var a,s,l=e.getGeometriesArray();for(a=0,s=l.length;a{"use strict";r.d(e,{Z:()=>w});var n=r(6443),i=r(7758),o=r(3102),a=r(5816),s=r(2005),l=r(9786),u=r(7344);const h=function(){function t(t,e,r,n,i,o){this.sourceProj_=t,this.targetProj_=e;var a={},h=(0,l.Ck)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return a[e]||(a[e]=h(t)),a[e]},this.maxSourceExtent_=n,this.errorThresholdSquared_=i*i,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!n&&!!this.sourceProj_.getExtent()&&(0,s.dz)(n)==(0,s.dz)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,s.dz)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,s.dz)(this.targetProj_.getExtent()):null;var p=(0,s.rL)(r),c=(0,s.Xv)(r),f=(0,s.w$)(r),d=(0,s.hC)(r),y=this.transformInv_(p),g=this.transformInv_(c),v=this.transformInv_(f),m=this.transformInv_(d),_=10+(o?Math.max(0,Math.ceil((0,u.k3)((0,s.bg)(r)/(o*o*256*256)))):0);if(this.addQuad_(p,c,f,d,y,g,v,m,_),this.wrapsXInSource_){var x=1/0;this.triangles_.forEach((function(t,e,r){x=Math.min(x,t.source[0][0],t.source[1][0],t.source[2][0])})),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-x>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-x>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-x>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-x>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var r=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-r.5&&c<1,y=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var g=(0,s.hI)([t,e,r,n]);y=(0,s.dz)(g)/this.targetWorldWidth_>.25||y}!d&&this.sourceProj_.isGlobal()&&c&&(y=c>.25||y)}if(!(!y&&this.maxSourceExtent_&&isFinite(p[0])&&isFinite(p[1])&&isFinite(p[2])&&isFinite(p[3]))||(0,s.kK)(p,this.maxSourceExtent_)){var v=0;if(!(y||isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(l[0])&&isFinite(l[1])))if(h>0)y=!0;else if(1!=(v=(isFinite(i[0])&&isFinite(i[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(a[0])&&isFinite(a[1])?0:2)+(isFinite(l[0])&&isFinite(l[1])?0:1))&&2!=v&&4!=v&&8!=v)return;if(h>0){if(!y){var m=[(t[0]+r[0])/2,(t[1]+r[1])/2],_=this.transformInv_(m),x=void 0;x=d?((0,u.$W)(i[0],f)+(0,u.$W)(a[0],f))/2-(0,u.$W)(_[0],f):(i[0]+a[0])/2-_[0];var b=(i[1]+a[1])/2-_[1];y=x*x+b*b>this.errorThresholdSquared_}if(y){if(Math.abs(t[0]-r[0])<=Math.abs(t[1]-r[1])){var w=[(e[0]+r[0])/2,(e[1]+r[1])/2],C=this.transformInv_(w),E=[(n[0]+t[0])/2,(n[1]+t[1])/2],S=this.transformInv_(E);this.addQuad_(t,e,w,E,i,o,C,S,h-1),this.addQuad_(E,w,r,n,S,C,a,l,h-1)}else{var T=[(t[0]+e[0])/2,(t[1]+e[1])/2],O=this.transformInv_(T),P=[(r[0]+n[0])/2,(r[1]+n[1])/2],R=this.transformInv_(P);this.addQuad_(t,T,P,n,i,O,R,l,h-1),this.addQuad_(T,e,r,P,O,o,a,R,h-1)}return}}if(d){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&v)&&this.addTriangle_(t,r,n,i,a,l),0==(14&v)&&this.addTriangle_(t,r,e,i,a,o),v&&(0==(13&v)&&this.addTriangle_(e,n,t,o,l,i),0==(7&v)&&this.addTriangle_(e,n,r,o,l,a))}},t.prototype.calculateSourceExtent=function(){var t=(0,s.lJ)();return this.triangles_.forEach((function(e,r,n){var i=e.source;(0,s.Wj)(t,i[0]),(0,s.Wj)(t,i[1]),(0,s.Wj)(t,i[2])})),t},t.prototype.getTriangles=function(){return this.triangles_},t}();var p,c=r(1225),f=r(273),d=r(766),y=[];function g(t,e,r,n,i){t.beginPath(),t.moveTo(0,0),t.lineTo(e,r),t.lineTo(n,i),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,n)+1,Math.max(r,i)),t.restore()}function v(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function m(t,e,r,n){var i=(0,l.vs)(r,e,t),o=(0,l._Q)(e,n,r),a=e.getMetersPerUnit();void 0!==a&&(o*=a);var u=t.getMetersPerUnit();void 0!==u&&(o/=u);var h=t.getExtent();if(!h||(0,s.b8)(h,i)){var p=(0,l._Q)(t,o,i)/o;isFinite(p)&&p>0&&(o/=p)}return o}var _,x=r(5310),b=(_=function(t,e){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},_(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}_(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const w=function(t){function e(e,r,i,o,l,p,c,f,d,y,g,v){var _=t.call(this,l,a.Z.IDLE,{interpolate:!!v})||this;_.renderEdges_=void 0!==g&&g,_.pixelRatio_=c,_.gutter_=f,_.canvas_=null,_.sourceTileGrid_=r,_.targetTileGrid_=o,_.wrappedTileCoord_=p||l,_.sourceTiles_=[],_.sourcesListenerKeys_=null,_.sourceZ_=0;var x=o.getTileCoordExtent(_.wrappedTileCoord_),b=_.targetTileGrid_.getExtent(),w=_.sourceTileGrid_.getExtent(),C=b?(0,s.Ed)(x,b):x;if(0===(0,s.bg)(C))return _.state=a.Z.EMPTY,_;var E=e.getExtent();E&&(w=w?(0,s.Ed)(w,E):E);var S=o.getResolution(_.wrappedTileCoord_[0]),T=function(t,e,r,n){var i=(0,s.qg)(r),o=m(t,e,i,n);return(!isFinite(o)||o<=0)&&(0,s.H6)(r,(function(r){return o=m(t,e,r,n),isFinite(o)&&o>0})),o}(e,i,C,S);if(!isFinite(T)||T<=0)return _.state=a.Z.EMPTY,_;var O=void 0!==y?y:n.m;if(_.triangulation_=new h(e,i,C,w,T*O,S),0===_.triangulation_.getTriangles().length)return _.state=a.Z.EMPTY,_;_.sourceZ_=r.getZForResolution(T);var P=_.triangulation_.calculateSourceExtent();if(w&&(e.canWrapX()?(P[1]=(0,u.uZ)(P[1],w[1],w[3]),P[3]=(0,u.uZ)(P[3],w[1],w[3])):P=(0,s.Ed)(P,w)),(0,s.bg)(P)){for(var R=r.getTileRangeForExtentAndZ(P,_.sourceZ_),I=R.minX;I<=R.maxX;I++)for(var M=R.minY;M<=R.maxY;M++){var A=d(_.sourceZ_,I,M,c);A&&_.sourceTiles_.push(A)}0===_.sourceTiles_.length&&(_.state=a.Z.EMPTY)}else _.state=a.Z.EMPTY;return _}return b(e,t),e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,r,n){e&&e.getState()==a.Z.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=a.Z.ERROR;else{var e=this.wrappedTileCoord_[0],r=this.targetTileGrid_.getTileSize(e),n="number"==typeof r?r:r[0],i="number"==typeof r?r:r[1],o=this.targetTileGrid_.getResolution(e),l=this.sourceTileGrid_.getResolution(this.sourceZ_),h=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(t,e,r,n,i,o,a,l,h,m,_,x){var b=(0,d.E4)(Math.round(r*t),Math.round(r*e),y);if(x||(0,f.f0)(b,c.$),0===h.length)return b.canvas;function w(t){return Math.round(t*r)/r}b.scale(r,r),b.globalCompositeOperation="lighter";var C=(0,s.lJ)();h.forEach((function(t,e,r){(0,s.l7)(C,t.extent)}));var E=(0,s.dz)(C),S=(0,s.Cr)(C),T=(0,d.E4)(Math.round(r*E/n),Math.round(r*S/n));x||(0,f.f0)(T,c.$);var O=r/n;h.forEach((function(t,e,r){var n=t.extent[0]-C[0],i=-(t.extent[3]-C[3]),o=(0,s.dz)(t.extent),a=(0,s.Cr)(t.extent);t.image.width>0&&t.image.height>0&&T.drawImage(t.image,m,m,t.image.width-2*m,t.image.height-2*m,n*O,i*O,o*O,a*O)}));var P=(0,s.rL)(a);return l.getTriangles().forEach((function(t,e,i){var a=t.source,s=t.target,l=a[0][0],h=a[0][1],c=a[1][0],f=a[1][1],d=a[2][0],y=a[2][1],m=w((s[0][0]-P[0])/o),_=w(-(s[0][1]-P[1])/o),E=w((s[1][0]-P[0])/o),S=w(-(s[1][1]-P[1])/o),O=w((s[2][0]-P[0])/o),R=w(-(s[2][1]-P[1])/o),I=l,M=h;l=0,h=0;var A=[[c-=I,f-=M,0,0,E-m],[d-=I,y-=M,0,0,O-m],[0,0,c,f,S-_],[0,0,d,y,R-_]],k=(0,u.SV)(A);if(k){if(b.save(),b.beginPath(),function(){if(void 0===p){var t=document.createElement("canvas").getContext("2d");t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",g(t,4,5,4,0),g(t,4,5,0,5);var e=t.getImageData(0,0,3,3).data;p=v(e,0)||v(e,4)||v(e,8)}return p}()||!x){b.moveTo(E,S);for(var F=m-E,L=_-S,Z=0;Z<4;Z++)b.lineTo(E+w((Z+1)*F/4),S+w(Z*L/3)),3!=Z&&b.lineTo(E+w((Z+1)*F/4),S+w((Z+1)*L/3));b.lineTo(O,R)}else b.moveTo(E,S),b.lineTo(m,_),b.lineTo(O,R);b.clip(),b.transform(k[0],k[2],k[1],k[3],m,_),b.translate(C[0]-I,C[3]-M),b.scale(n/r,-n/r),b.drawImage(T.canvas,0,0),b.restore()}})),_&&(b.save(),b.globalCompositeOperation="source-over",b.strokeStyle="black",b.lineWidth=1,l.getTriangles().forEach((function(t,e,r){var n=t.target,i=(n[0][0]-P[0])/o,a=-(n[0][1]-P[1])/o,s=(n[1][0]-P[0])/o,l=-(n[1][1]-P[1])/o,u=(n[2][0]-P[0])/o,h=-(n[2][1]-P[1])/o;b.beginPath(),b.moveTo(s,l),b.lineTo(i,a),b.lineTo(u,h),b.closePath(),b.stroke()})),b.restore()),b.canvas}(n,i,this.pixelRatio_,l,this.sourceTileGrid_.getExtent(),o,h,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=a.Z.LOADED}this.changed()},e.prototype.load=function(){if(this.state==a.Z.IDLE){this.state=a.Z.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,r,n){var o=e.getState();if(o==a.Z.IDLE||o==a.Z.LOADING){t++;var s=(0,x.oL)(e,i.Z.CHANGE,(function(r){var n=e.getState();n!=a.Z.LOADED&&n!=a.Z.ERROR&&n!=a.Z.EMPTY||((0,x.bN)(s),0==--t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(s)}}.bind(this)),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(t,e,r){t.getState()==a.Z.IDLE&&t.load()}))}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(x.bN),this.sourcesListenerKeys_=null},e.prototype.release=function(){this.canvas_&&((0,d.jy)(this.canvas_.getContext("2d")),y.push(this.canvas_),this.canvas_=null),t.prototype.release.call(this)},e}(o.Z)},6443:(t,e,r)=>{"use strict";r.d(e,{j:()=>i,m:()=>n});var n=.5,i=!0},6123:(t,e,r)=>{"use strict";r.d(e,{Gw:()=>s,YP:()=>o,gE:()=>a,h$:()=>i});var n=r(7344);function i(t){return void 0!==t?0:void 0}function o(t){return void 0!==t?t:void 0}function a(t){var e=2*Math.PI/t;return function(t,r){return r?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0}}function s(t){var e=t||(0,n.Yr)(5);return function(t,r){return r?t:void 0!==t?Math.abs(t)<=e?0:t:void 0}}},7814:(t,e,r)=>{"use strict";function n(t){return t[0]>0&&t[1]>0}function i(t,e,r){return void 0===r&&(r=[0,0]),r[0]=t[0]*e+.5|0,r[1]=t[1]*e+.5|0,r}function o(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}r.d(e,{Pq:()=>o,bA:()=>i,py:()=>n})},266:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});var n,i=r(12),o=r(4415),a=r(9786),s=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function l(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}const u=function(t){function e(e){var r=t.call(this)||this;r.projection=(0,a.U2)(e.projection),r.attributions_=l(e.attributions),r.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,r.loading=!1,r.state_=void 0!==e.state?e.state:"ready",r.wrapX_=void 0!==e.wrapX&&e.wrapX,r.interpolate_=!!e.interpolate,r.viewResolver=null,r.viewRejector=null;var n=r;return r.viewPromise_=new Promise((function(t,e){n.viewResolver=t,n.viewRejector=e})),r}return s(e,t),e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection},e.prototype.getResolutions=function(){return(0,o.O3)()},e.prototype.getView=function(){return this.viewPromise_},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.getInterpolate=function(){return this.interpolate_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=l(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(i.Z)},8275:(t,e,r)=>{"use strict";r.d(e,{Z:()=>T});var n=r(6193),i=r(5917),o=r(7288),a=r(7758),s=r(1846),l=r(53),u=r(2005),h=r(4415),p=r(273);const c=function(){function t(t){this.rbush_=new l(t),this.items_={}}return t.prototype.insert=function(t,e){var r={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(r),this.items_[(0,h.sq)(e)]=r},t.prototype.load=function(t,e){for(var r=new Array(e.length),n=0,i=e.length;n0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),t.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var e,r=this.loadedExtentsRtree_;r.forEachInExtent(t,(function(r){if((0,u.fS)(r.extent,t))return e=r,!0})),e&&r.remove(e)},e.prototype.removeFeature=function(t){if(t){var e=(0,h.sq)(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t)&&this.changed()}},e.prototype.removeFeatureInternal=function(t){var e=(0,h.sq)(t),r=this.featureChangeKeys_[e];if(r){r.forEach(b.bN),delete this.featureChangeKeys_[e];var n=t.getId();return void 0!==n&&delete this.idIndex_[n.toString()],delete this.uidIndex_[e],this.dispatchEvent(new E(y,t)),t}},e.prototype.removeFromIdIndex_=function(t){var e=!1;for(var r in this.idIndex_)if(this.idIndex_[r]===t){delete this.idIndex_[r],e=!0;break}return e},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){(0,_.h)(this.format_,7),this.url_=t,this.setLoader((0,w.Be)(t,this.format_))},e}(f.Z);const T=S},8926:(t,e,r)=>{"use strict";r.d(e,{Z:()=>f});var n,i=r(8260),o=r(7589),a=r(8609),s=r(6808),l=r(766),u=r(9680),h=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const p=function(t){function e(e){var r=this,n=void 0!==e.rotateWithView&&e.rotateWithView;return(r=t.call(this,{opacity:1,rotateWithView:n,rotation:void 0!==e.rotation?e.rotation:0,scale:void 0!==e.scale?e.scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0],declutterMode:e.declutterMode})||this).canvas_=void 0,r.hitDetectionCanvas_=null,r.fill_=void 0!==e.fill?e.fill:null,r.origin_=[0,0],r.points_=e.points,r.radius_=void 0!==e.radius?e.radius:e.radius1,r.radius2_=e.radius2,r.angle_=void 0!==e.angle?e.angle:0,r.stroke_=void 0!==e.stroke?e.stroke:null,r.size_=null,r.renderOptions_=null,r.render(),r}return h(e,t),e.prototype.clone=function(){var t=this.getScale(),r=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return r.setOpacity(this.getOpacity()),r},e.prototype.getAnchor=function(){var t=this.size_;if(!t)return null;var e=this.getDisplacement();return[t[0]/2-e[0],t[1]/2+e[1]]},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.setFill=function(t){this.fill_=t,this.render()},e.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},e.prototype.getImage=function(t){var e=this.canvas_[t];if(!e){var r=this.renderOptions_,n=(0,l.E4)(r.size*t,r.size*t);this.draw_(r,n,t),e=n.canvas,this.canvas_[t]=e}return e},e.prototype.getPixelRatio=function(t){return t},e.prototype.getImageSize=function(){return this.size_},e.prototype.getImageState=function(){return i.Z.LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.setStroke=function(t){this.stroke_=t,this.render()},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.calculateLineJoinSize_=function(t,e,r){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;var n=this.radius_,i=void 0===this.radius2_?n:this.radius2_;if(n{"use strict";r.d(e,{Z:()=>n});const n=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0})},t.prototype.getColor=function(){return this.color_},t.prototype.setColor=function(t){this.color_=t},t}()},6278:(t,e,r)=>{"use strict";r.d(e,{Z:()=>E});var n=r(7758),i=r(6951);const o="bottom-left",a="bottom-right",s="top-left",l="top-right";var u,h=r(8260),p=r(7589),c=r(8609),f=r(9751),d=r(8408),y=r(766),g=r(6929),v=r(3458),m=(u=function(t,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},u(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),_=null,x=function(t){function e(e,r,n,i,o,a){var s=t.call(this)||this;return s.hitDetectionImage_=null,s.image_=e||new Image,null!==i&&(s.image_.crossOrigin=i),s.canvas_={},s.color_=a,s.unlisten_=null,s.imageState_=o,s.size_=n,s.src_=r,s.tainted_,s}return m(e,t),e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===h.Z.LOADED){_||(_=(0,y.E4)(1,1)),_.drawImage(this.image_,0,0);try{_.getImageData(0,0,1,1),this.tainted_=!1}catch(t){_=null,this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(n.Z.CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=h.Z.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=h.Z.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_},e.prototype.getPixelRatio=function(t){return this.replaceColor_(t),this.canvas_[t]?t:1},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var t=this.size_[0],e=this.size_[1],r=(0,y.E4)(t,e);r.fillRect(0,0,t,e),this.hitDetectionImage_=r.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==h.Z.IDLE){this.imageState_=h.Z.LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=(0,v.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},e.prototype.replaceColor_=function(t){if(this.color_&&!this.canvas_[t]&&this.imageState_===h.Z.LOADED){var e=document.createElement("canvas");this.canvas_[t]=e,e.width=Math.ceil(this.image_.width*t),e.height=Math.ceil(this.image_.height*t);var r=e.getContext("2d");if(r.scale(t,t),r.drawImage(this.image_,0,0),r.globalCompositeOperation="multiply","multiply"===r.globalCompositeOperation||this.isTainted_())r.fillStyle=(0,c.XC)(this.color_),r.fillRect(0,0,e.width/t,e.height/t),r.globalCompositeOperation="destination-in",r.drawImage(this.image_,0,0);else{for(var n=r.getImageData(0,0,e.width,e.height),i=n.data,o=this.color_[0]/255,a=this.color_[1]/255,s=this.color_[2]/255,l=this.color_[3],u=0,p=i.length;u0,6);var y=void 0!==n.src?h.Z.IDLE:h.Z.LOADED;return r.color_=void 0!==n.color?(0,c._2)(n.color):null,r.iconImage_=function(t,e,r,n,i,o){var a=g.c.get(e,n,o);return a||(a=new x(t,e,r,n,i,o),g.c.set(e,n,o,a)),a}(p,d,void 0!==r.imgSize_?r.imgSize_:null,r.crossOrigin_,y,r.color_),r.offset_=void 0!==n.offset?n.offset:[0,0],r.offsetOrigin_=void 0!==n.offsetOrigin?n.offsetOrigin:s,r.origin_=null,r.size_=void 0!==n.size?n.size:null,r}return w(e,t),e.prototype.clone=function(){var t=this.getScale();return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},e.prototype.getAnchor=function(){var t=this.normalizedAnchor_;if(!t){t=this.anchor_;var e=this.getSize();if(this.anchorXUnits_==i.Z.FRACTION||this.anchorYUnits_==i.Z.FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==i.Z.FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==i.Z.FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=s){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=l&&this.anchorOrigin_!=a||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=o&&this.anchorOrigin_!=a||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}var r=this.getDisplacement();return[t[0]-r[0],t[1]+r[1]]},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=s){var e=this.getSize(),r=this.iconImage_.getSize();if(!e||!r)return null;t=t.slice(),this.offsetOrigin_!=l&&this.offsetOrigin_!=a||(t[0]=r[0]-e[0]-t[0]),this.offsetOrigin_!=o&&this.offsetOrigin_!=a||(t[1]=r[1]-e[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(n.Z.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(n.Z.CHANGE,t)},e}(p.Z);const E=C},6951:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={FRACTION:"fraction",PIXELS:"pixels"}},6929:(t,e,r)=>{"use strict";r.d(e,{c:()=>o});var n=r(8609);function i(t,e,r){return e+":"+t+":"+(r?(0,n.XC)(r):"null")}var o=new(function(){function t(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return t.prototype.clear=function(){this.cache_={},this.cacheSize_=0},t.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},t.prototype.expire=function(){if(this.canExpireCache()){var t=0;for(var e in this.cache_){var r=this.cache_[e];0!=(3&t++)||r.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},t.prototype.get=function(t,e,r){var n=i(t,e,r);return n in this.cache_?this.cache_[n]:null},t.prototype.set=function(t,e,r,n){var o=i(t,e,r);this.cache_[o]=n,++this.cacheSize_},t.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},t}())},7589:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(4415),i=r(7814);const o=function(){function t(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,i.Pq)(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}return t.prototype.clone=function(){var e=this.getScale();return new t({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},t.prototype.getOpacity=function(){return this.opacity_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getDisplacement=function(){return this.displacement_},t.prototype.getDeclutterMode=function(){return this.declutterMode_},t.prototype.getAnchor=function(){return(0,n.O3)()},t.prototype.getImage=function(t){return(0,n.O3)()},t.prototype.getHitDetectionImage=function(){return(0,n.O3)()},t.prototype.getPixelRatio=function(t){return 1},t.prototype.getImageState=function(){return(0,n.O3)()},t.prototype.getImageSize=function(){return(0,n.O3)()},t.prototype.getOrigin=function(){return(0,n.O3)()},t.prototype.getSize=function(){return(0,n.O3)()},t.prototype.setDisplacement=function(t){this.displacement_=t},t.prototype.setOpacity=function(t){this.opacity_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=(0,i.Pq)(t)},t.prototype.listenImageChange=function(t){(0,n.O3)()},t.prototype.load=function(){(0,n.O3)()},t.prototype.unlistenImageChange=function(t){(0,n.O3)()},t}()},2788:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},t.prototype.getColor=function(){return this.color_},t.prototype.getLineCap=function(){return this.lineCap_},t.prototype.getLineDash=function(){return this.lineDash_},t.prototype.getLineDashOffset=function(){return this.lineDashOffset_},t.prototype.getLineJoin=function(){return this.lineJoin_},t.prototype.getMiterLimit=function(){return this.miterLimit_},t.prototype.getWidth=function(){return this.width_},t.prototype.setColor=function(t){this.color_=t},t.prototype.setLineCap=function(t){this.lineCap_=t},t.prototype.setLineDash=function(t){this.lineDash_=t},t.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t},t.prototype.setLineJoin=function(t){this.lineJoin_=t},t.prototype.setMiterLimit=function(t){this.miterLimit_=t},t.prototype.setWidth=function(t){this.width_=t},t}()},6298:(t,e,r)=>{"use strict";r.d(e,{J$:()=>l,ZP:()=>c,yF:()=>h});var n=r(8926),i=r(4573),o=r(2788),a=r(9751),s=function(){function t(t){var e=t||{};this.geometry_=null,this.geometryFunction_=p,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.hitDetectionRenderer_=void 0!==e.hitDetectionRenderer?e.hitDetectionRenderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex}return t.prototype.clone=function(){var e=this.getGeometry();return e&&"object"==typeof e&&(e=e.clone()),new t({geometry:e,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.setRenderer=function(t){this.renderer_=t},t.prototype.setHitDetectionRenderer=function(t){this.hitDetectionRenderer_=t},t.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},t.prototype.getGeometry=function(){return this.geometry_},t.prototype.getGeometryFunction=function(){return this.geometryFunction_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(t){this.fill_=t},t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(t){this.image_=t},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.getText=function(){return this.text_},t.prototype.setText=function(t){this.text_=t},t.prototype.getZIndex=function(){return this.zIndex_},t.prototype.setGeometry=function(t){"function"==typeof t?this.geometryFunction_=t:"string"==typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=p,this.geometry_=t},t.prototype.setZIndex=function(t){this.zIndex_=t},t}();function l(t){var e,r;"function"==typeof t?e=t:(Array.isArray(t)?r=t:((0,a.h)("function"==typeof t.getZIndex,41),r=[t]),e=function(){return r});return e}var u=null;function h(t,e){if(!u){var r=new i.Z({color:"rgba(255,255,255,0.4)"}),a=new o.Z({color:"#3399CC",width:1.25});u=[new s({image:new n.Z({fill:r,stroke:a,radius:5}),fill:r,stroke:a})]}return u}function p(t){return t.getGeometry()}const c=s},2197:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={POINT:"point",LINE:"line"}},7348:(t,e,r)=>{"use strict";r.d(e,{S:()=>i,e:()=>n});var n=42,i=256},4765:(t,e,r)=>{"use strict";r.d(e,{BB:()=>m,Iu:()=>y,Jp:()=>u,Ue:()=>s,bA:()=>f,lk:()=>p,mc:()=>l,n3:()=>d,nb:()=>v,nn:()=>c,qC:()=>g});var n,i=r(6299),o=r(9751),a=new Array(6);function s(){return[1,0,0,1,0,0]}function l(t){return h(t,1,0,0,1,0,0)}function u(t,e){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=e[0],u=e[1],h=e[2],p=e[3],c=e[4],f=e[5];return t[0]=r*l+i*u,t[1]=n*l+o*u,t[2]=r*h+i*p,t[3]=n*h+o*p,t[4]=r*c+i*f+a,t[5]=n*c+o*f+s,t}function h(t,e,r,n,i,o,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=o,t[5]=a,t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function c(t,e){var r=e[0],n=e[1];return e[0]=t[0]*r+t[2]*n+t[4],e[1]=t[1]*r+t[3]*n+t[5],e}function f(t,e,r){return u(t,h(a,e,0,0,r,0,0))}function d(t,e,r){return h(t,e,0,0,r,0,0)}function y(t,e,r){return u(t,h(a,1,0,0,1,e,r))}function g(t,e,r,n,i,o,a,s){var l=Math.sin(o),u=Math.cos(o);return t[0]=n*u,t[1]=i*l,t[2]=-n*l,t[3]=i*u,t[4]=a*n*u-s*n*l+e,t[5]=a*i*l+s*i*u+r,t}function v(t,e){var r,n=(r=e)[0]*r[3]-r[1]*r[2];(0,o.h)(0!==n,32);var i=e[0],a=e[1],s=e[2],l=e[3],u=e[4],h=e[5];return t[0]=l/n,t[1]=-a/n,t[2]=-s/n,t[3]=i/n,t[4]=(s*h-l*u)/n,t[5]=-(i*h-a*u)/n,t}function m(t){var e="matrix("+t.join(", ")+")";if(i.Id)return e;var r=n||(n=document.createElement("div"));return r.style.transform=e,r.style.transform}},4415:(t,e,r)=>{"use strict";function n(){return function(){throw new Error("Unimplemented abstract method.")}()}r.d(e,{O3:()=>n,q4:()=>a,sq:()=>o});var i=0;function o(t){return t.ol_uid||(t.ol_uid=String(++i))}var a="6.15.1"},5955:(t,e,r)=>{"use strict";r.d(e,{nn:()=>Zo,h0:()=>So,bg:()=>bo,ZP:()=>Zo,LN:()=>jo,uX:()=>Ln});var n={};r.r(n),r.d(n,{array:()=>ce,color:()=>pe,number:()=>he});var i={};r.r(i),r.d(i,{hcl:()=>Pe,lab:()=>Oe});var o=r(8926),a=r(4573),s=r(6278),l=r(4765),u=r(2005),h=r(7782),p=r(6096),c=r(9786),f=r(3174),d=r(215),y=r(7810),g=(0,l.Ue)(),v=function(){function t(t,e,r,n,i){this.styleFunction,this.extent_,this.id_=i,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=r,this.properties_=n}return t.prototype.get=function(t){return this.properties_[t]},t.prototype.getExtent=function(){return this.extent_||(this.extent_="Point"===this.type_?(0,u.HK)(this.flatCoordinates_):(0,u.GN)(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},t.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var t=(0,u.qg)(this.getExtent());this.flatInteriorPoints_=(0,p.X)(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_},t.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var t=(0,d.E)(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=(0,p.U)(this.flatCoordinates_,0,this.ends_,2,t)}return this.flatInteriorPoints_},t.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=(0,f.WW)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},t.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var t=this.flatCoordinates_,e=0,r=this.ends_,n=0,i=r.length;n0&&t.stops.length<=2);for(var o=["case"],a=0,s=r;a3&&e===t[t.length-2]||(n&&2===t.length||t.push(e),t.push(r))}function F(t,e){return t.type?t.type:(O(e.expression),e.expression.interpolated?"exponential":"interval")}function L(t){for(var e=["concat"],r=/{([^{}]+)}/g,n=0,i=r.exec(t);null!==i;i=r.exec(t)){var o=t.slice(n,r.lastIndex-i[0].length);n=r.lastIndex,o.length>0&&e.push(o),e.push(["get",i[1]])}if(1===e.length)return t;if(n0;)e[r]=arguments[r+1];for(var n=0,i=e;n":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var $=[N,G,X,W,q,U,Y,H(V),K];function Q(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!Q(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var r=0,n=$;r=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof r&&r>=0&&r<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:"Invalid rgba value ["+[t,e,r,n].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof n?[t,e,r,n]:[t,e,r]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function ht(t){if(null===t)return!0;if("string"==typeof t)return!0;if("boolean"==typeof t)return!0;if("number"==typeof t)return!0;if(t instanceof T)return!0;if(t instanceof nt)return!0;if(t instanceof at)return!0;if(t instanceof lt)return!0;if(Array.isArray(t)){for(var e=0,r=t;e2){var s=t[1];if("string"!=typeof s||!(s in vt)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);o=vt[s],n++}else o=V;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);a=t[2],n++}r=H(o,a)}else O(vt[i],i),r=vt[i];for(var l=[];n1)&&e.push(n)}}return e.concat(this.args.map((function(t){return t.serialize()})))};const _t=mt;var xt=function(t){this.type=U,this.sections=t};xt.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[1];if(!Array.isArray(r)&&"object"==typeof r)return e.error("First argument must be an image or text section.");for(var n=[],i=!1,o=1;o<=t.length-1;++o){var a=t[o];if(i&&"object"==typeof a&&!Array.isArray(a)){i=!1;var s=null;if(a["font-scale"]&&!(s=e.parse(a["font-scale"],1,G)))return null;var l=null;if(a["text-font"]&&!(l=e.parse(a["text-font"],1,H(X))))return null;var u=null;if(a["text-color"]&&!(u=e.parse(a["text-color"],1,q)))return null;var h=n[n.length-1];h.scale=s,h.font=l,h.textColor=u}else{var p=e.parse(t[o],1,V);if(!p)return null;var c=p.type.kind;if("string"!==c&&"value"!==c&&"null"!==c&&"resolvedImage"!==c)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,n.push({content:p,scale:null,font:null,textColor:null})}}return new xt(n)},xt.prototype.evaluate=function(t){return new at(this.sections.map((function(e){var r=e.content.evaluate(t);return pt(r)===K?new it("",r,null,null,null):new it(ct(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)})))},xt.prototype.eachChild=function(t){for(var e=0,r=this.sections;e-1),r},wt.prototype.eachChild=function(t){t(this.input)},wt.prototype.outputDefined=function(){return!1},wt.prototype.serialize=function(){return["image",this.input.serialize()]};const Ct=wt;var Et={"to-boolean":W,"to-color":q,"to-number":G,"to-string":X},St=function(t,e){this.type=t,this.args=e};St.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[0];if(O(Et[r],r),("to-boolean"===r||"to-string"===r)&&2!==t.length)return e.error("Expected one argument.");for(var n=Et[r],i=[],o=1;o4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":ut(e[0],e[1],e[2],e[3])))return new T(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new gt(r||"Could not parse color from value '"+("string"==typeof e?e:String(JSON.stringify(e)))+"'")}if("number"===this.type.kind){for(var a=null,s=0,l=this.args;s0),1===s.length)(r=e.errors).push.apply(r,l.errors);else{for(var C=(s.length?s:a).map((function(t){var e;return e=t[0],Array.isArray(e)?"("+e.map(J).join(", ")+")":"("+J(e.type)+"...)"})).join(" | "),E=[],S=1;S=e[2]||t[1]<=e[1]||t[3]>=e[3])}function Dt(t,e){var r,n=(180+t[0])/360,i=(r=t[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r*Math.PI/360)))/360),o=Math.pow(2,e.z);return[Math.round(n*o*Ft),Math.round(i*o*Ft)]}function jt(t,e,r){return e[1]>t[1]!=r[1]>t[1]&&t[0]<(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function zt(t,e){for(var r,n,i,o,a,s,l,u=!1,h=0,p=e.length;h0&&p<0||h<0&&p>0}function Xt(t,e,r){for(var n=0,i=r;nr[2]){var i=.5*n,o=t[0]-r[0]>i?-n:r[0]-t[0]>i?n:0;0===o&&(o=t[0]-r[2]>i?-n:r[2]-t[0]>i?n:0),t[0]+=o}Lt(e,t)}function Ut(t,e,r,n){var i=Math.pow(2,n.z)*Ft,o=[n.x*Ft,n.y*Ft],a=[];if(!t)return a;for(var s=0,l=t;s=0)return!1;var r=!0;return t.eachChild((function(t){r&&!te(t,e)&&(r=!1)})),r}var ee=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};ee.parse=function(t,e){if(2!==t.length||"string"!=typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");var r=t[1];return e.scope.has(r)?new ee(r,e.scope.get(r)):e.error('Unknown variable "'+r+'". Make sure "'+r+'" has been bound in an enclosing "let" expression before using it.',1)},ee.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},ee.prototype.eachChild=function(){},ee.prototype.outputDefined=function(){return!1},ee.prototype.serialize=function(){return["var",this.name]};const re=ee;var ne=function(t,e,r,n,i){void 0===e&&(e=[]),void 0===n&&(n=new z),void 0===i&&(i=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return"["+t+"]"})).join(""),this.scope=n,this.errors=i,this.expectedType=r};ne.prototype.parse=function(t,e,r,n,i){return void 0===i&&(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},ne.prototype._parse=function(t,e){function r(t,e,r){return"assert"===r?new _t(e,[t]):"coerce"===r?new Tt(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var n=t[0];if("string"!=typeof n)return this.error("Expression name must be a string, but found "+typeof n+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var i=this.registry[n];if(i){var o=i.parse(t,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=r(o,a,e.typeAnnotation||"coerce");else o=r(o,a,e.typeAnnotation||"assert")}if(!(o instanceof dt)&&"resolvedImage"!==o.type.kind&&oe(o)){var l=new Rt;try{o=new dt(o.type,o.evaluate(l))}catch(t){return this.error(t.message),null}}return o}return this.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0)}return void 0===t?this.error("'undefined' value invalid. Use null instead."):"object"==typeof t?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof t+" instead.")},ne.prototype.concat=function(t,e,r){var n="number"==typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new ne(this.registry,n,e||null,i,this.errors)},ne.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var n=""+this.key+e.map((function(t){return"["+t+"]"})).join("");this.errors.push(new D(n,t))},ne.prototype.checkSubtype=function(t,e){var r=Q(t,e);return r&&this.error(r),r};const ie=ne;function oe(t){if(t instanceof re)return oe(t.boundExpression);if(t instanceof Mt&&"error"===t.name)return!1;if(t instanceof kt)return!1;if(t instanceof Jt)return!1;var e=t instanceof Tt||t instanceof _t,r=!0;return t.eachChild((function(t){r=e?r&&oe(t):r&&t instanceof dt})),!!r&&$t(t)&&te(t,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}function ae(t,e){for(var r,n,i=t.length-1,o=0,a=i,s=0;o<=a;)if(r=t[s=Math.floor((o+a)/2)],n=t[s+1],r<=e){if(s===i||ee))throw new gt("Input is not a number.");a=s-1}return 0}var se=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n=a)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var h=e.parse(s,u,i);if(!h)return null;i=i||h.type,n.push([a,h])}return new se(i,r,n)},se.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var i=e.length;return n>=e[i-1]?r[i-1].evaluate(t):r[ae(e,n)].evaluate(t)},se.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};const le=se;var ue=r(8657);function he(t,e,r){return t*(1-r)+e*r}function pe(t,e,r){return new T(he(t.r,e.r,r),he(t.g,e.g,r),he(t.b,e.b,r),he(t.a,e.a,r))}function ce(t,e,r){return t.map((function(t,n){return he(t,e[n],r)}))}var fe=.95047,de=1.08883,ye=4/29,ge=6/29,ve=3*ge*ge,me=Math.PI/180,_e=180/Math.PI;function xe(t){return t>.008856451679035631?Math.pow(t,1/3):t/ve+ye}function be(t){return t>ge?t*t*t:ve*(t-ye)}function we(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ce(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ee(t){var e=Ce(t.r),r=Ce(t.g),n=Ce(t.b),i=xe((.4124564*e+.3575761*r+.1804375*n)/fe),o=xe((.2126729*e+.7151522*r+.072175*n)/1);return{l:116*o-16,a:500*(i-o),b:200*(o-xe((.0193339*e+.119192*r+.9503041*n)/de)),alpha:t.a}}function Se(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=1*be(e),r=fe*be(r),n=de*be(n),new T(we(3.2404542*r-1.5371385*e-.4985314*n),we(-.969266*r+1.8760108*e+.041556*n),we(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function Te(t,e,r){var n=e-t;return t+r*(n>180||n<-180?n-360*Math.round(n/360):n)}var Oe={forward:Ee,reverse:Se,interpolate:function(t,e,r){return{l:he(t.l,e.l,r),a:he(t.a,e.a,r),b:he(t.b,e.b,r),alpha:he(t.alpha,e.alpha,r)}}},Pe={forward:function(t){var e=Ee(t),r=e.l,n=e.a,i=e.b,o=Math.atan2(i,n)*_e;return{h:o<0?o+360:o,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}},reverse:function(t){var e=t.h*me,r=t.c;return Se({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:Te(t.h,e.h,r),c:he(t.c,e.c,r),l:he(t.l,e.l,r),alpha:he(t.alpha,e.alpha,r)}}},Re=function(t,e,r,n,i){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var o=0,a=i;o1})))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(!(i=e.parse(i,2,G)))return null;var l=[],u=null;"interpolate-hcl"===r||"interpolate-lab"===r?u=q:e.expectedType&&"value"!==e.expectedType.kind&&(u=e.expectedType);for(var h=0;h=p)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',f);var y=e.parse(c,d,u);if(!y)return null;u=u||y.type,l.push([p,y])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"==typeof u.N?new Re(u,r,n,i,l):e.error("Type "+J(u)+" is not interpolatable.")},Re.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var i=this.input.evaluate(t);if(i<=e[0])return r[0].evaluate(t);var o=e.length;if(i>=e[o-1])return r[o-1].evaluate(t);var a=ae(e,i),s=e[a],l=e[a+1],u=Re.interpolationFactor(this.interpolation,i,s,l),h=r[a].evaluate(t),p=r[a+1].evaluate(t);return"interpolate"===this.operator?n[this.type.kind.toLowerCase()](h,p,u):"interpolate-hcl"===this.operator?Pe.reverse(Pe.interpolate(Pe.forward(h),Pe.forward(p),u)):Oe.reverse(Oe.interpolate(Oe.forward(h),Oe.forward(p),u))},Re.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e=r.length)throw new gt("Array index out of bounds: "+e+" > "+(r.length-1)+".");if(e!==Math.floor(e))throw new gt("Array index must be an integer, but found "+e+" instead.");return r[e]},Ze.prototype.eachChild=function(t){t(this.index),t(this.input)},Ze.prototype.outputDefined=function(){return!1},Ze.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};const De=Ze;var je=function(t,e){this.type=W,this.needle=t,this.haystack=e};je.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,V),n=e.parse(t[2],2,V);return r&&n?tt(r.type,[W,X,G,N,V])?new je(r,n):e.error("Expected first argument to be of type boolean, string, number or null, but found "+J(r.type)+" instead"):null},je.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(null==r)return!1;if(!et(e,["boolean","string","number","null"]))throw new gt("Expected first argument to be of type boolean, string, number or null, but found "+J(pt(e))+" instead.");if(!et(r,["string","array"]))throw new gt("Expected second argument to be of type array or string, but found "+J(pt(r))+" instead.");return r.indexOf(e)>=0},je.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},je.prototype.outputDefined=function(){return!0},je.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};const ze=je;var Ne=function(t,e,r){this.type=G,this.needle=t,this.haystack=e,this.fromIndex=r};Ne.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,V),n=e.parse(t[2],2,V);if(!r||!n)return null;if(!tt(r.type,[W,X,G,N,V]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+J(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,G);return i?new Ne(r,n,i):null}return new Ne(r,n)},Ne.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!et(e,["boolean","string","number","null"]))throw new gt("Expected first argument to be of type boolean, string, number or null, but found "+J(pt(e))+" instead.");if(!et(r,["string","array"]))throw new gt("Expected second argument to be of type array or string, but found "+J(pt(r))+" instead.");if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},Ne.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},Ne.prototype.outputDefined=function(){return!1},Ne.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};const Ge=Ne;var Xe=function(t,e,r,n,i,o){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=o};Xe.parse=function(t,e){if(t.length<5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!=1)return e.error("Expected an even number of arguments.");var r,n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);for(var i={},o=[],a=2;aNumber.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof c&&Math.floor(c)!==c)return u.error("Numeric branch labels must be integer values.");if(r){if(u.checkSubtype(r,pt(c)))return null}else r=pt(c);if(void 0!==i[String(c)])return u.error("Branch labels must be unique.");i[String(c)]=o.length}var f=e.parse(l,a,n);if(!f)return null;n=n||f.type,o.push(f)}var d=e.parse(t[1],1,V);if(!d)return null;var y=e.parse(t[t.length-1],t.length-1,n);return y?(O(r&&n),"value"!==d.type.kind&&e.concat(1).checkSubtype(r,d.type)?null:new Xe(r,n,d,i,o,y)):null},Xe.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(pt(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},Xe.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},Xe.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},Xe.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],r=[],n={},i=0,o=Object.keys(this.cases).sort();i=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,V),n=e.parse(t[2],2,G);if(!r||!n)return null;if(!tt(r.type,[H(V),X,V]))return e.error("Expected first argument to be of type array or string, but found "+J(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,G);return i?new Ve(r.type,r,n,i):null}return new Ve(r.type,r,n)},Ve.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!et(e,["string","array"]))throw new gt("Expected first argument to be of type array or string, but found "+J(pt(e))+" instead.");if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},Ve.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},Ve.prototype.outputDefined=function(){return!1},Ve.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};const Be=Ve;function Ue(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function Ke(t,e,r,n){return 0===n.compare(e,r)}function He(t,e,r){var n="=="!==t&&"!="!==t;return function(){function i(t,e,r){this.type=W,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}return i.parse=function(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");var r=t[0],o=e.parse(t[1],1,V);if(!o)return null;if(!Ue(r,o.type))return e.concat(1).error('"'+r+"\" comparisons are not supported for type '"+J(o.type)+"'.");var a=e.parse(t[2],2,V);if(!a)return null;if(!Ue(r,a.type))return e.concat(2).error('"'+r+"\" comparisons are not supported for type '"+J(a.type)+"'.");if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot compare types '"+J(o.type)+"' and '"+J(a.type)+"'.");n&&("value"===o.type.kind&&"value"!==a.type.kind?o=new _t(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new _t(o.type,[a])));var s=null;if(4===t.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot use collator to compare non-string types.");if(!(s=e.parse(t[3],3,B)))return null}return new i(o,a,s)},i.prototype.evaluate=function(i){var o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(n&&this.hasUntypedArgument){var s=pt(o),l=pt(a);if(s.kind!==l.kind||"string"!==s.kind&&"number"!==s.kind)throw new gt('Expected arguments for "'+t+'" to be (string, string) or (number, number), but found ('+s.kind+", "+l.kind+") instead.")}if(this.collator&&!n&&this.hasUntypedArgument){var u=pt(o),h=pt(a);if("string"!==u.kind||"string"!==h.kind)return e(i,o,a)}return this.collator?r(i,o,a,this.collator.evaluate(i)):e(i,o,a)},i.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},i}()}var Je=He("==",(function(t,e,r){return e===r}),Ke),$e=He("!=",(function(t,e,r){return e!==r}),(function(t,e,r,n){return!Ke(0,e,r,n)})),Qe=He("<",(function(t,e,r){return e",(function(t,e,r){return e>r}),(function(t,e,r,n){return n.compare(e,r)>0})),er=He("<=",(function(t,e,r){return e<=r}),(function(t,e,r,n){return n.compare(e,r)<=0})),rr=He(">=",(function(t,e,r){return e>=r}),(function(t,e,r,n){return n.compare(e,r)>=0})),nr=function(t,e,r,n,i){this.type=X,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};nr.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,G);if(!r)return null;var n=t[2];if("object"!=typeof n||Array.isArray(n))return e.error("NumberFormat options argument must be an object.");var i=null;if(n.locale&&!(i=e.parse(n.locale,1,X)))return null;var o=null;if(n.currency&&!(o=e.parse(n.currency,1,X)))return null;var a=null;if(n["min-fraction-digits"]&&!(a=e.parse(n["min-fraction-digits"],1,G)))return null;var s=null;return n["max-fraction-digits"]&&!(s=e.parse(n["max-fraction-digits"],1,G))?null:new nr(r,i,o,a,s)},nr.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},nr.prototype.eachChild=function(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)},nr.prototype.outputDefined=function(){return!1},nr.prototype.serialize=function(){var t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]};const ir=nr;var or=function(t){this.type=G,this.input=t};or.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1);return r?"array"!==r.type.kind&&"string"!==r.type.kind&&"value"!==r.type.kind?e.error("Expected argument of type string or array, but found "+J(r.type)+" instead."):new or(r):null},or.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new gt("Expected value to be of type string or array, but found "+J(pt(e))+" instead.")},or.prototype.eachChild=function(t){t(this.input)},or.prototype.outputDefined=function(){return!1},or.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var ar={"==":Je,"!=":$e,">":tr,"<":Qe,">=":rr,"<=":er,array:_t,at:De,boolean:_t,case:Ye,coalesce:ke,collator:kt,format:bt,image:Ct,in:ze,"index-of":Ge,interpolate:Me,"interpolate-hcl":Me,"interpolate-lab":Me,length:or,let:Le,literal:dt,match:We,number:_t,"number-format":ir,object:_t,slice:Be,step:le,string:_t,"to-boolean":Tt,"to-color":Tt,"to-number":Tt,"to-string":Tt,var:re,within:Jt};function sr(t,e){var r=e[0],n=e[1],i=e[2],o=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var a=o?o.evaluate(t):1,s=ut(r,n,i,a);if(s)throw new gt(s);return new T(r/255*a,n/255*a,i/255*a,a)}function lr(t,e){return t in e}function ur(t,e){var r=e[t];return void 0===r?null:r}function hr(t){return{type:t}}Mt.register(ar,{error:[{kind:"error"},[X],function(t,e){var r=e[0];throw new gt(r.evaluate(t))}],typeof:[X,[V],function(t,e){return J(pt(e[0].evaluate(t)))}],"to-rgba":[H(G,4),[q],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[q,[G,G,G],sr],rgba:[q,[G,G,G,G],sr],has:{type:W,overloads:[[[X],function(t,e){return lr(e[0].evaluate(t),t.properties())}],[[X,Y],function(t,e){var r=e[0],n=e[1];return lr(r.evaluate(t),n.evaluate(t))}]]},get:{type:V,overloads:[[[X],function(t,e){return ur(e[0].evaluate(t),t.properties())}],[[X,Y],function(t,e){var r=e[0],n=e[1];return ur(r.evaluate(t),n.evaluate(t))}]]},"feature-state":[V,[X],function(t,e){return ur(e[0].evaluate(t),t.featureState||{})}],properties:[Y,[],function(t){return t.properties()}],"geometry-type":[X,[],function(t){return t.geometryType()}],id:[V,[],function(t){return t.id()}],zoom:[G,[],function(t){return t.globals.zoom}],pitch:[G,[],function(t){return t.globals.pitch||0}],"distance-from-center":[G,[],function(t){return t.distanceFromCenter()}],"heatmap-density":[G,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[G,[],function(t){return t.globals.lineProgress||0}],"sky-radial-progress":[G,[],function(t){return t.globals.skyRadialProgress||0}],accumulated:[V,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[G,hr(G),function(t,e){for(var r=0,n=0,i=e;n":[W,[X,V],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i==typeof o&&i>o}],"filter-id->":[W,[V],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n>i}],"filter-<=":[W,[X,V],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i==typeof o&&i<=o}],"filter-id-<=":[W,[V],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n<=i}],"filter->=":[W,[X,V],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i==typeof o&&i>=o}],"filter-id->=":[W,[V],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n>=i}],"filter-has":[W,[V],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[W,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[W,[H(X)],function(t,e){return e[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[W,[H(V)],function(t,e){return e[0].value.indexOf(t.id())>=0}],"filter-in-small":[W,[X,H(V)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])>=0}],"filter-in-large":[W,[X,H(V)],function(t,e){var r=e[0],n=e[1];return function(t,e,r,n){for(;r<=n;){var i=r+n>>1;if(e[i]===t)return!0;e[i]>t?n=i-1:r=i+1}return!1}(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:W,overloads:[[[W,W],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)&&n.evaluate(t)}],[hr(W),function(t,e){for(var r=0,n=e;r=t.stops[n-1][0])return t.stops[n-1][1];var i=ae(t.stops.map((function(t){return t[0]})),r);return t.stops[i][1]}function wr(t,e,r){var o=void 0!==t.base?t.base:1;if("number"!==yr(r))return _r(t.default,e.default);var a=t.stops.length;if(1===a)return t.stops[0][1];if(r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[a-1][0])return t.stops[a-1][1];var s=ae(t.stops.map((function(t){return t[0]})),r),l=function(t,e,r,n){var i=n-r,o=t-r;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}(r,o,t.stops[s][0],t.stops[s+1][0]),u=t.stops[s][1],h=t.stops[s+1][1],p=n[e.type]||vr;if(t.colorSpace&&"rgb"!==t.colorSpace){var c=i[t.colorSpace];p=function(t,e){return c.reverse(c.interpolate(c.forward(t),c.forward(e),l))}}return"function"==typeof u.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=u.evaluate.apply(void 0,t),n=h.evaluate.apply(void 0,t);if(void 0!==r&&void 0!==n)return p(r,n,l)}}:p(u,h,l)}function Cr(t,e,r){return"color"===e.type?r=T.parse(r):"formatted"===e.type?r=at.fromString(r.toString()):"resolvedImage"===e.type?r=lt.fromString(r.toString()):yr(r)===e.type||"enum"===e.type&&e.values[r]||(r=void 0),_r(r,t.default,e.default)}var Er=function(t,e){var r;this.expression=t,this._warningHistory={},this._evaluator=new Rt,this._defaultValue=e?"color"===(r=e).type&&(gr(r.default)||Array.isArray(r.default))?new T(0,0,0,0):"color"===r.type?T.parse(r.default)||null:void 0===r.default?null:r.default:null,this._enumValues=e&&"enum"===e.type?e.values:null};function Sr(t,e){var r=new ie(pr,[],e?function(t){var e={color:q,string:X,number:G,enum:X,boolean:W,formatted:U,resolvedImage:K};return"array"===t.type?H(e[t.value]||V,t.length):e[t.type]}(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return n?cr(new Er(n,e)):(O(r.errors.length>0),fr(r.errors))}Er.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,o,a,s){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null,this.expression.evaluate(this._evaluator)},Er.prototype.evaluate=function(t,e,r,n,i,o,a,s){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null;try{var l=this.expression.evaluate(this._evaluator);if(null==l||"number"==typeof l&&l!=l)return this._defaultValue;if(this._enumValues&&!(l in this._enumValues))throw new gt("Expected value to be one of "+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(", ")+", but found "+JSON.stringify(l)+" instead.");return l}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}};var Tr=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!Qt(e.expression)};Tr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,o)},Tr.prototype.evaluate=function(t,e,r,n,i,o){return this._styleExpression.evaluate(t,e,r,n,i,o)};var Or=function(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent="camera"!==t&&!Qt(e.expression),this.interpolationType=n};function Pr(t,e){if("error"===(t=Sr(t,e)).result)return t;var r,n=t.value.expression,i=$t(n);if(!i&&"data-driven"!==(r=e)["property-type"]&&"cross-faded-data-driven"!==r["property-type"])return fr([new D("","data expressions not supported")]);var o=te(n,["zoom","pitch","distance-from-center"]);if(!o&&!function(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}(e))return fr([new D("","zoom expressions not supported")]);var a=Ir(n);if(!a&&!o)return fr([new D("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(a instanceof D)return fr([a]);if(a instanceof Me&&!dr(e))return fr([new D("",'"interpolate" expressions cannot be used with this property')]);if(!a)return cr(new Tr(i?"constant":"source",t.value));var s=a instanceof Me?a.interpolation:void 0;return cr(new Or(i?"camera":"composite",t.value,a.labels,s))}Or.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,o)},Or.prototype.evaluate=function(t,e,r,n,i,o){return this._styleExpression.evaluate(t,e,r,n,i,o)},Or.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?Me.interpolationFactor(this.interpolationType,t,e,r):0};var Rr=function(t,e){this._parameters=t,this._specification=e,Z(this,mr(this._parameters,this._specification))};function Ir(t){var e=null;if(t instanceof Le)e=Ir(t.result);else if(t instanceof ke)for(var r=0,n=t.args;r=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!=typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,r=t.slice(1);e",">=","<","<=","to-boolean"]);function Nr(t,e){return te?1:0}function Gr(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(var e=1;e"===r||"<="===r||">="===r?Wr(t[1],t[2],r):"any"===r?(e=t.slice(1),["any"].concat(e.map(Xr))):"all"===r?["all"].concat(t.slice(1).map(Xr)):"none"===r?["all"].concat(t.slice(1).map(Xr).map(Vr)):"in"===r?qr(t[1],t.slice(2)):"!in"===r?Vr(qr(t[1],t.slice(2))):"has"===r?Yr(t[1]):"!has"===r?Vr(Yr(t[1])):"within"!==r||t}function Wr(t,e,r){switch(t){case"$type":return["filter-type-"+r,e];case"$id":return["filter-id-"+r,e];default:return["filter-"+r,t,e]}}function qr(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((function(t){return typeof t!=typeof e[0]}))?["filter-in-large",t,["literal",e.sort(Nr)]]:["filter-in-small",t,["literal",e]]}}function Yr(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Vr(t){return["!",t]}const Br=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Ur(t,e){var r={};for(var n in t)"ref"!==n&&(r[n]=t[n]);return Br.forEach((function(t){t in e&&(r[t]=e[t])})),r}var Kr=r(4376),Hr=r(9680),Jr="https://api.mapbox.com";function $r(t){var e="mapbox://";return 0!==t.indexOf(e)?"":t.slice(e.length)}function Qr(t,e){var r=$r(t);if(!r)return decodeURI(new URL(t,location.href).href);var n="styles/";if(0!==r.indexOf(n))throw new Error("unexpected style url: "+t);var i=r.slice(n.length);return Jr+"/styles/v1/"+i+"?&access_token="+e}function tn(t,e,r,n){var i=new URL(t,n),o=$r(t);return o?"https://{a-d}.tiles.mapbox.com/v4/"+o+"/{z}/{x}/{y}.vector.pbf?access_token="+e:e?(i.searchParams.set(r,e),decodeURI(i.href)):decodeURI(i.href)}function en(t){return t*Math.PI/180}var rn=function(){for(var t=[],e=78271.51696402048;t.length<=24;e/=2)t.push(e);return t}();function nn(t,e){if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas)return new OffscreenCanvas(t,e);var r=document.createElement("canvas");return r.width=t,r.height=e,r}var on={};function an(t,e,r){if(void 0===r&&(r={}),e in on)return on[e];var n=r.transformRequest&&r.transformRequest(e,t)||new Request(e);n.headers.get("Accept")||n.headers.set("Accept","application/json");var i=fetch(n).then((function(t){return delete on[e],t.ok?t.json():Promise.reject(new Error("Error fetching source "+e))})).catch((function(t){return delete on[e],Promise.reject(new Error("Error fetching source "+e))}));return on[e]=i,i}function sn(t,e){if("string"!=typeof t)return Promise.resolve(t);if(!t.trim().startsWith("{"))return an("Style",t=Qr(t,e.accessToken),e);try{var r=JSON.parse(t);return Promise.resolve(r)}catch(t){return Promise.reject(t)}}var ln={};function un(t,e,r){void 0===r&&(r={});var n=[e,JSON.stringify(t)].toString(),i=ln[n];if(!i||r.transformRequest){var o=t.url;if(o&&!t.tiles){var a=tn(o,r.accessToken,r.accessTokenParam||"access_token",e||location.href);i=o.startsWith("mapbox://")?Promise.resolve(Object.assign({},t,{url:void 0,tiles:a})):an("Source",a,r).then((function(t){for(var e=0,n=t.tiles.length;e=.05){for(var r="",n=t.split("\n"),i=pn.slice(0,Math.round(e/.1)),o=0,a=n.length;o0&&(r+="\n"),r+=n[o].split("").join(i);return r}return t}function fn(){return hn||(hn=nn(1,1).getContext("2d")),hn}function dn(t,e){return fn().measureText(t).width+(t.length-1)*e}var yn={};function gn(t,e,r,n){if(-1!==t.indexOf("\n")){for(var i=t.split("\n"),o=[],a=0,s=i.length;a1){var p=fn();p.font=e;for(var c=p.measureText("M").width*r,f="",d=[],y=0,g=h.length;y1;++_){var b=d[_];if(dn(b,n)<.35*c){var w=_>0?dn(d[_-1],n):1/0,C=_.7*c&&dn(O,n)<.6*c){var P=T.split(" "),R=P.pop();dn(R,n)<.2*c&&(d[E]=P.join(" "),d[E+1]=R+" "+O),S-=1}}u=d.join("\n")}else u=t;u=cn(u,n),yn[l]=u}return u}var vn,mn=/font-family: ?([^;]*);/,_n=/("|')/g;function xn(t){if(!vn){vn={};for(var e=document.styleSheets,r=0,n=e.length;r0&&"string"==typeof l[0]&&l[0]in pr);if(!c&&gr(h)&&(h=function(t,e){var r=t.stops;if(!r)return function(t,e){var r=["get",t.property];if(void 0===t.default)return"string"===e.type?["string",r]:r;if("enum"===e.type)return["match",r,Object.keys(e.values),r,t.default];var n=["color"===e.type?"to-color":e.type,r,P(t.default)];return"array"===e.type&&n.splice(1,0,e.value,e.length||null),n}(t,e);var n=r&&"object"==typeof r[0][0],i=n||void 0!==t.property,o=n||!i;return r=r.map((function(t){return!i&&e.tokens&&"string"==typeof t[1]?[t[0],L(t[1])]:[t[0],P(t[1])]})),n?function(t,e,r){for(var n={},i={},o=[],a=0;a=I.maxzoom)){var D=I.filter;if(!D||Mn(M,D,y,f,S)){I;var j=void 0,z=void 0,N=void 0,G=void 0,X=void 0,W=void 0,q=R.index;if(3==d&&("fill"==I.type||"fill-extrusion"==I.type))if(z=Rn(I,"paint",I.type+"-opacity",f,y,E,v),I.type+"-pattern"in k){var Y=Rn(I,"paint",I.type+"-pattern",f,y,E,v);if(Y){var V="string"==typeof Y?Fn(Y,l):Y.toString();if(h&&i&&i[V]){++T,(W=Z[T])&&W.getFill()&&!W.getStroke()&&!W.getText()||(W=new x.ZP({fill:new a.Z}),Z[T]=W),N=W.getFill(),W.setZIndex(q);var B=V+"."+z,U=w[B];if(!U){var K=i[V],H=nn(K.width,K.height),J=H.getContext("2d");J.globalAlpha=z,J.drawImage(h,K.x,K.y,K.width,K.height,0,0,K.width,K.height),U=J.createPattern(H,"repeat"),w[B]=U}N.setColor(U)}}}else j=An(Rn(I,"paint",I.type+"-color",f,y,E,v),z),I.type+"-outline-color"in k&&(X=An(Rn(I,"paint",I.type+"-outline-color",f,y,E,v),z)),X||(X=j),(j||X)&&(++T,(!(W=Z[T])||j&&!W.getFill()||!j&&W.getFill()||X&&!W.getStroke()||!X&&W.getStroke()||W.getText())&&(W=new x.ZP({fill:j?new a.Z:void 0,stroke:X?new _.Z:void 0}),Z[T]=W),j&&(N=W.getFill()).setColor(j),X&&((G=W.getStroke()).setColor(X),G.setWidth(.5)),W.setZIndex(q));if(1!=d&&"line"==I.type){j=!("line-pattern"in k)&&"line-color"in k?An(Rn(I,"paint","line-color",f,y,E,v),Rn(I,"paint","line-opacity",f,y,E,v)):void 0;var $=Rn(I,"paint","line-width",f,y,E,v);j&&$>0&&(++T,(W=Z[T])&&W.getStroke()&&!W.getFill()&&!W.getText()||(W=new x.ZP({stroke:new _.Z}),Z[T]=W),(G=W.getStroke()).setLineCap(Rn(I,"layout","line-cap",f,y,E,v)),G.setLineJoin(Rn(I,"layout","line-join",f,y,E,v)),G.setMiterLimit(Rn(I,"layout","line-miter-limit",f,y,E,v)),G.setColor(j),G.setWidth($),G.setLineDash(k["line-dasharray"]?Rn(I,"paint","line-dasharray",f,y,E,v).map((function(t){return t*$})):null),W.setZIndex(q))}var Q=!1,tt=null,et=0,rt=void 0,nt=void 0,it=void 0;if((1==d||2==d)&&"icon-image"in A){var ot=Rn(I,"layout","icon-image",f,y,E,v);if(ot){rt="string"==typeof ot?Fn(ot,l):ot.toString();var at=void 0;if(h&&i&&i[rt]){var st=Rn(I,"layout","icon-rotation-alignment",f,y,E,v);if(2==d){var lt=e.getGeometry();if(lt.getFlatMidpoint||lt.getFlatMidpoints){var ut=lt.getExtent();if(Math.sqrt(Math.max(Math.pow((ut[2]-ut[0])/r,2),Math.pow((ut[3]-ut[1])/r,2)))>150){var ht="MultiLineString"===lt.getType()?lt.getFlatMidpoints():lt.getFlatMidpoint();if(En||(En=new m("Point",Cn=[NaN,NaN],[],{},null)),at=En,Cn[0]=ht[0],Cn[1]=ht[1],"line"===Rn(I,"layout","symbol-placement",f,y,E,v)&&"map"===st)for(var pt=lt.getStride(),ct=lt.getFlatCoordinates(),ft=0,dt=ct.length-pt;ft=_t&&ht[0]<=bt&&ht[1]>=xt&&ht[1]<=wt){et=Math.atan2(gt-mt,vt-yt);break}}}}}if(2!==d||at){var Ct=Rn(I,"layout","icon-size",f,y,E,v),Et=void 0!==k["icon-color"]?Rn(I,"paint","icon-color",f,y,E,v):null;if(!Et||0!==Et.a){var St=rt+"."+Ct;if(null!==Et&&(St+="."+Et),!(nt=b[St])){var Tt=i[rt],Ot=In(I,f,y,E);nt=new s.Z({color:Et?[255*Et.r,255*Et.g,255*Et.b,Et.a]:void 0,img:h,imgSize:p,size:[Tt.width,Tt.height],offset:[Tt.x,Tt.y],rotateWithView:"map"===st,scale:Ct/Tt.pixelRatio,displacement:"icon-offset"in A?Rn(I,"layout","icon-offset",f,y,E,v).map((function(t){return-t*Tt.pixelRatio})):void 0,declutterMode:Ot}),b[St]=nt}}nt&&(++T,(W=Z[T])&&W.getImage()&&!W.getFill()&&!W.getStroke()||(W=new x.ZP,Z[T]=W),W.setGeometry(at),nt.setRotation(et+en(Rn(I,"layout","icon-rotate",f,y,E,v))),nt.setOpacity(Rn(I,"paint","icon-opacity",f,y,E,v)),nt.setAnchor(Tn[Rn(I,"layout","icon-anchor",f,y,E,v)]),W.setImage(nt),tt=W.getText(),W.setText(void 0),W.setZIndex(q),Q=!0,it=!1)}else it=!0}}}if(1==d&&"circle"===I.type){++T,(W=Z[T])&&W.getImage()&&!W.getFill()&&!W.getStroke()||(W=new x.ZP,Z[T]=W);var Pt="circle-radius"in k?Rn(I,"paint","circle-radius",f,y,E,v):5,Rt=An(Rn(I,"paint","circle-stroke-color",f,y,E,v),Rn(I,"paint","circle-stroke-opacity",f,y,E,v)),It=An(Rn(I,"paint","circle-color",f,y,E,v),Rn(I,"paint","circle-opacity",f,y,E,v)),Mt=Rn(I,"paint","circle-stroke-width",f,y,E,v),At=Pt+"."+Rt+"."+It+"."+Mt;(nt=b[At])||(nt=new o.Z({radius:Pt,stroke:Rt&&Mt>0?new _.Z({width:Mt,color:Rt}):void 0,fill:It?new a.Z({color:It}):void 0,declutterMode:"none"}),b[At]=nt),W.setImage(nt),tt=W.getText(),W.setText(void 0),W.setGeometry(void 0),W.setZIndex(q),Q=!0}var kt=void 0,Ft=void 0,Lt=void 0,Zt=void 0,Dt=void 0,jt=void 0;if("text-field"in A){Zt=Math.round(Rn(I,"layout","text-size",f,y,E,v));var zt=Rn(I,"layout","text-font",f,y,E,v);Lt=Rn(I,"layout","text-line-height",f,y,E,v),(Ft=Kr(u?u(zt):zt,Zt,Lt)).includes("sans-serif")||(Ft+=",sans-serif"),Dt=Rn(I,"layout","text-letter-spacing",f,y,E,v),jt=Rn(I,"layout","text-max-width",f,y,E,v);var Nt=Rn(I,"layout","text-field",f,y,E,v);kt="object"==typeof Nt&&Nt.sections?1===Nt.sections.length?Nt.toString():Nt.sections.reduce((function(t,e,r){var n=e.fontStack?e.fontStack.split(","):zt,i=Kr(u?u(n):n,Zt*(e.scale||1),Lt),o=e.text;if("\n"===o)return t.push("\n",""),t;if(2!=d){for(var a=0,s=(o=gn(o,i,jt,Dt).split("\n")).length;a0&&t.push("\n",""),t.push(o[a],i);return t}t.push(cn(o,Dt),i)}),[]):Fn(Nt,l).trim(),z=Rn(I,"paint","text-opacity",f,y,E,v)}if(kt&&z&&!it){Q||(++T,(W=Z[T])&&W.getText()&&!W.getFill()&&!W.getStroke()||(W=new x.ZP,Z[T]=W),W.setImage(void 0),W.setGeometry(void 0)),W.getText()||W.setText(tt||new C({padding:[2,2,2,2]})),tt=W.getText();var Gt=A["text-transform"];"uppercase"==Gt?kt=Array.isArray(kt)?kt.map((function(t,e){return e%2?t:t.toUpperCase()})):kt.toUpperCase():"lowercase"==Gt&&(kt=Array.isArray(kt)?kt.map((function(t,e){return e%2?t:t.toLowerCase()})):kt.toLowerCase());var Xt=Array.isArray(kt)?kt:2==d?cn(kt,Dt):gn(kt,Ft,jt,Dt);tt.setText(Xt),tt.setFont(Ft),tt.setRotation(en(Rn(I,"layout","text-rotate",f,y,E,v)));var Wt=Rn(I,"layout","text-anchor",f,y,E,v),qt=Q||1==d?"point":Rn(I,"layout","symbol-placement",f,y,E,v);tt.setPlacement(qt),tt.setOverflow("point"===qt);var Yt=Rn(I,"paint","text-halo-width",f,y,E,v),Vt=Rn(I,"layout","text-offset",f,y,E,v),Bt=Rn(I,"paint","text-translate",f,y,E,v),Ut=0,Kt=0;if("point"==qt){var Ht="center";-1!==Wt.indexOf("left")?(Ht="left",Kt=Yt):-1!==Wt.indexOf("right")&&(Ht="right",Kt=-Yt),tt.setTextAlign(Ht);var Jt=Rn(I,"layout","text-rotation-alignment",f,y,E,v);tt.setRotateWithView("map"==Jt)}else tt.setMaxAngle(en(Rn(I,"layout","text-max-angle",f,y,E,v))*kt.length/Xt.length),tt.setTextAlign(),tt.setRotateWithView(!1);var $t="middle";0==Wt.indexOf("bottom")?($t="bottom",Ut=-Yt-.5*(Lt-1)*Zt):0==Wt.indexOf("top")&&($t="top",Ut=Yt+.5*(Lt-1)*Zt),tt.setTextBaseline($t),tt.setOffsetX(Vt[0]*Zt+Kt+Bt[0]),tt.setOffsetY(Vt[1]*Zt+Ut+Bt[1]),L.setColor(An(Rn(I,"paint","text-color",f,y,E,v),z)),tt.setFill(L);var Qt=An(Rn(I,"paint","text-halo-color",f,y,E,v),z);if(Qt){F.setColor(Qt),Yt*=2;var te=.5*Zt;F.setWidth(Yt<=te?Yt:te),tt.setStroke(F)}else tt.setStroke(void 0);var ee=Rn(I,"layout","text-padding",f,y,E,v),re=tt.getPadding();ee!==re[0]&&(re[0]=ee,re[1]=ee,re[2]=ee,re[3]=ee),W.setZIndex(q)}}}}return T>-1?(Z.length=T+1,Z):void 0}};return t.setStyle(D),t.set("mapbox-source",d),t.set("mapbox-layers",v),t.set("mapbox-featurestate",{}),D}var Zn,Dn=r(8833),jn=r(5817),zn=r(8476),Nn=r(8132),Gn=r(7659),Xn=r(9468),Wn=r(8264),qn=r(9455),Yn=r(1879),Vn=r(5828),Bn=r(544),Un=r(8430),Kn=r(9751),Hn=r(7704),Jn=(Zn=function(t,e){return Zn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Zn(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Zn(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function $n(t,e,r){if(3===t){var n={keys:[],values:[],features:[]},i=r.readVarint()+r.pos;r.readFields(Qn,n,i),n.length=n.features.length,n.length&&(e[n.name]=n)}}function Qn(t,e,r){if(15===t)e.version=r.readVarint();else if(1===t)e.name=r.readString();else if(5===t)e.extent=r.readVarint();else if(2===t)e.features.push(r.pos);else if(3===t)e.keys.push(r.readString());else if(4===t){for(var n=null,i=r.readVarint()+r.pos;r.pos>3)?r.readString():2===t?r.readFloat():3===t?r.readDouble():4===t?r.readVarint64():5===t?r.readVarint():6===t?r.readSVarint():7===t?r.readBoolean():null;e.values.push(n)}}function ti(t,e,r){if(1==t)e.id=r.readVarint();else if(2==t)for(var n=r.readVarint()+r.pos;r.pos>3}a--,1===o||2===o?(s+=t.readSVarint(),l+=t.readSVarint(),1===o&&u>h&&(n.push(u),h=u),r.push(s,l),u+=2):7===o?u>h&&(r.push(r[h],r[h+1]),u+=2):(0,Kn.h)(!1,59)}u>h&&(n.push(u),h=u)},e.prototype.createFeature_=function(t,e,r){var n,i=e.type;if(0===i)return null;var o,a=e.properties;this.idProperty_?(o=a[this.idProperty_],delete a[this.idProperty_]):o=e.id,a[this.layerName_]=e.layer.name;var s=[],l=[];this.readRawGeometry_(t,e,s,l);var u=function(t,e){var r;return 1===t?r=1===e?"Point":"MultiPoint":2===t?r=1===e?"LineString":"MultiLineString":3===t&&(r="Polygon"),r}(i,l.length);if(this.featureClass_===m)(n=new this.featureClass_(u,s,l,a,o)).transform(r.dataProjection);else{var h=void 0;if("Polygon"==u){var p=(0,Hn.Q3)(s,l);h=p.length>1?new Wn.Z(s,zn.Z.XY,p):new Vn.ZP(s,zn.Z.XY,l)}else h="Point"===u?new Yn.Z(s,zn.Z.XY):"LineString"===u?new Nn.Z(s,zn.Z.XY):"MultiPoint"===u?new Xn.Z(s,zn.Z.XY):"MultiLineString"===u?new Gn.Z(s,zn.Z.XY,l):null;n=new(0,this.featureClass_),this.geometryName_&&n.setGeometryName(this.geometryName_);var c=(0,jn.fI)(h,!1,r);n.setGeometry(c),void 0!==o&&n.setId(o),n.setProperties(a,!0)}return n},e.prototype.getType=function(){return"arraybuffer"},e.prototype.readFeatures=function(t,e){var r=this.layers_,n=this.adaptOptions(e),i=(0,c.U2)(n.dataProjection);i.setWorldExtent(n.extent),n.dataProjection=i;var o=new qn(t),a=o.readFields($n,{}),s=[];for(var l in a)if(!r||-1!=r.indexOf(l)){var u=a[l],h=u?[0,0,u.extent,u.extent]:null;i.setExtent(h);for(var p=0,f=u.length;p=this.minZoom;){if(2===this.zoomFactor_?(o=Math.floor(o/2),a=Math.floor(a/2),i=(0,ii.T)(o,o,a,a,r)):i=this.getTileRangeForExtentAndZ(s,l,r),e(l,i))return!0;--l}return!1},t.prototype.getExtent=function(){return this.extent_},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.getMinZoom=function(){return this.minZoom},t.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},t.prototype.getResolution=function(t){return this.resolutions_[t]},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getTileCoordChildTileRange=function(t,e,r){if(t[0]this.maxZoom||e0&&this.getCount()>this.highWaterMark},t.prototype.expireCache=function(t){for(;this.canExpireCache();)this.pop()},t.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},t.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},t.prototype.forEach=function(t){for(var e=this.oldest_;e;)t(e.value_,e.key_,this),e=e.newer},t.prototype.get=function(t,e){var r=this.entries_[t];return(0,Kn.h)(void 0!==r,15),r===this.newest_||(r===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(r.newer.older=r.older,r.older.newer=r.newer),r.newer=null,r.older=this.newest_,this.newest_.newer=r,this.newest_=r),r.value_},t.prototype.remove=function(t){var e=this.entries_[t];return(0,Kn.h)(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},t.prototype.getCount=function(){return this.count_},t.prototype.getKeys=function(){var t,e=new Array(this.count_),r=0;for(t=this.newest_;t;t=t.older)e[r++]=t.key_;return e},t.prototype.getValues=function(){var t,e=new Array(this.count_),r=0;for(t=this.newest_;t;t=t.older)e[r++]=t.value_;return e},t.prototype.peekLast=function(){return this.oldest_.value_},t.prototype.peekLastKey=function(){return this.oldest_.key_},t.prototype.peekFirstKey=function(){return this.newest_.key_},t.prototype.peek=function(t){if(this.containsKey(t))return this.entries_[t].value_},t.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},t.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},t.prototype.set=function(t,e){(0,Kn.h)(!(t in this.entries_),16);var r={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=r:this.oldest_=r,this.newest_=r,this.entries_[t]=r,++this.count_},t.prototype.setSize=function(t){this.highWaterMark=t},t}();const mi=vi;var _i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const xi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _i(e,t),e.prototype.expireCache=function(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().release()},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=hi(this.peekFirstKey())[0];this.forEach(function(e){e.tileCoord[0]!==t&&(this.remove(ui(e.tileCoord)),e.release())}.bind(this))}},e}(mi);var bi=r(5816);var wi=r(7288),Ci=r(266),Ei=r(4415);function Si(t){var e=t.getDefaultTileGrid();return e||(e=function(t,e,r,n){return function(t,e,r,n){var i=Oi(t,undefined,r);return new fi({extent:t,origin:(0,u.g0)(t,"top-left"),resolutions:i,tileSize:r})}(Pi(t),0,void 0)}(t),t.setDefaultTileGrid(e)),e}function Ti(t){var e=t||{},r=e.extent||(0,c.U2)("EPSG:3857").getExtent(),n={extent:r,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:Oi(r,e.maxZoom,e.tileSize,e.maxResolution)};return new fi(n)}function Oi(t,e,r,n){for(var i=void 0!==e?e:oi.e,o=(0,u.Cr)(t),a=(0,u.dz)(t),s=(0,w.Pq)(void 0!==r?r:oi.S),l=n>0?n:Math.max(a/s[0],o/s[1]),h=i+1,p=new Array(h),c=0;cr||r>e.getMaxZoom())return!1;var o=e.getFullTileRange(r);return!o||o.containsXY(n,i)}(t,n)?t:null},e.prototype.clear=function(){this.tileCache.clear()},e.prototype.refresh=function(){this.clear(),t.prototype.refresh.call(this)},e.prototype.updateCacheSize=function(t,e){var r=this.getTileCacheForProjection(e);t>r.highWaterMark&&(r.highWaterMark=t)},e.prototype.useTile=function(t,e,r,n){},e}(Ci.Z),Mi=function(t){function e(e,r){var n=t.call(this,e)||this;return n.tile=r,n}return Ri(e,t),e}(wi.ZP);const Ai=Ii;function ki(t,e){var r=/\{z\}/g,n=/\{x\}/g,i=/\{y\}/g,o=/\{-y\}/g;return function(a,s,l){return a?t.replace(r,a[0].toString()).replace(n,a[1].toString()).replace(i,a[2].toString()).replace(o,(function(){var t=a[0],r=e.getFullTileRange(t);return(0,Kn.h)(r,55),(r.getHeight()-a[2]-1).toString()})):void 0}}function Fi(t,e){for(var r=t.length,n=new Array(r),i=0;i=200&&e.status<300){var r=void 0;try{r=JSON.parse(e.responseText)}catch(t){return void this.handleTileJSONError()}this.handleTileJSONResponse(r)}else this.handleTileJSONError()},e.prototype.onXHRError_=function(t){this.handleTileJSONError()},e.prototype.getTileJSON=function(){return this.tileJSON_},e.prototype.handleTileJSONResponse=function(t){var e,r=(0,c.U2)("EPSG:4326"),n=this.getProjection();if(void 0!==t.bounds){var i=(0,c.WO)(r,n);e=(0,u.Ne)(t.bounds,i)}var o=Pi(n),a=t.minzoom||0,s=Ti({extent:o,maxZoom:t.maxzoom||22,minZoom:a,tileSize:this.tileSize_});if(this.tileGrid=s,this.tileUrlFunction=Fi(t.tiles,s),void 0!==t.attribution&&!this.getAttributions()){var l=void 0!==e?e:o;this.setAttributions((function(e){return(0,u.kK)(l,e.extent)?[t.attribution]:null}))}this.tileJSON_=t,this.setState("ready")},e.prototype.handleTileJSONError=function(){this.setState("error")},e}(Xi);const Bi=Vi;var Ui=r(7385),Ki=r(1393),Hi=r(273),Ji=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const $i=function(t){function e(e){var r=this,n=e||{},i=(0,Hi.f0)({},n);return delete i.preload,delete i.useInterimTilesOnError,(r=t.call(this,i)||this).on,r.once,r.un,r.setPreload(void 0!==n.preload?n.preload:0),r.setUseInterimTilesOnError(void 0===n.useInterimTilesOnError||n.useInterimTilesOnError),r}return Ji(e,t),e.prototype.getPreload=function(){return this.get(Ki.Z.PRELOAD)},e.prototype.setPreload=function(t){this.set(Ki.Z.PRELOAD,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(Ki.Z.USE_INTERIM_TILES_ON_ERROR)},e.prototype.setUseInterimTilesOnError=function(t){this.set(Ki.Z.USE_INTERIM_TILES_ON_ERROR,t)},e.prototype.getData=function(e){return t.prototype.getData.call(this,e)},e}(Ui.Z);var Qi=r(8237),to=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const eo=function(t){function e(e){return t.call(this,e)||this}return to(e,t),e.prototype.createRenderer=function(){return new Qi.Z(this)},e}($i);var ro=r(5218),no=r(8275),io=r(3015),oo=r(3102),ao=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),so=function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r,a)||this;return s.extent=null,s.format_=i,s.features_=null,s.loader_,s.projection=null,s.resolution,s.tileLoadFunction_=o,s.url_=n,s.key=n,s}return ao(e,t),e.prototype.getFormat=function(){return this.format_},e.prototype.getFeatures=function(){return this.features_},e.prototype.load=function(){this.state==bi.Z.IDLE&&(this.setState(bi.Z.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))},e.prototype.onLoad=function(t,e){this.setFeatures(t)},e.prototype.onError=function(){this.setState(bi.Z.ERROR)},e.prototype.setFeatures=function(t){this.features_=t,this.setState(bi.Z.LOADED)},e.prototype.setLoader=function(t){this.loader_=t},e}(oo.Z);const lo=so;var uo=r(766),ho=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),po=[];const co=function(t){function e(e,r,n,i){var o=t.call(this,e,r,{transition:0})||this;return o.context_={},o.executorGroups={},o.declutterExecutorGroups={},o.loadingSourceTiles=0,o.hitDetectionImageData={},o.replayState_={},o.sourceTiles=[],o.errorTileKeys={},o.wantedResolution,o.getSourceTiles=i.bind(void 0,o),o.wrappedTileCoord=n,o}return ho(e,t),e.prototype.getContext=function(t){var e=(0,Ei.sq)(t);return e in this.context_||(this.context_[e]=(0,uo.E4)(1,1,po)),this.context_[e]},e.prototype.hasContext=function(t){return(0,Ei.sq)(t)in this.context_},e.prototype.getImage=function(t){return this.hasContext(t)?this.getContext(t).canvas:null},e.prototype.getReplayState=function(t){var e=(0,Ei.sq)(t);return e in this.replayState_||(this.replayState_[e]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[e]},e.prototype.load=function(){this.getSourceTiles()},e.prototype.release=function(){for(var e in this.context_){var r=this.context_[e];(0,uo.jy)(r),po.push(r.canvas),delete this.context_[e]}t.prototype.release.call(this)},e}(oo.Z);var fo=r(3618),yo=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),go=function(t){function e(e){var r=this,n=e.projection||"EPSG:3857",i=e.extent||Pi(n),o=e.tileGrid||Ti({extent:i,maxResolution:e.maxResolution,maxZoom:void 0!==e.maxZoom?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});return(r=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,opaque:!1,projection:n,state:e.state,tileGrid:o,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:mo,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:void 0===e.zDirection?1:e.zDirection})||this).format_=e.format?e.format:null,r.sourceTileCache=new xi(r.tileCache.highWaterMark),r.overlaps_=null==e.overlaps||e.overlaps,r.tileClass=e.tileClass?e.tileClass:lo,r.tileGrids_={},r}return yo(e,t),e.prototype.getFeaturesInExtent=function(t){var e=[],r=this.tileCache;if(0===r.getCount())return e;var n=hi(r.peekFirstKey())[0],i=this.tileGrid;return r.forEach((function(r){if(r.tileCoord[0]===n&&r.getState()===bi.Z.LOADED)for(var o=r.getSourceTiles(),a=0,s=o.length;a0||p>0)&&t.setMaxResolution(Math.min(rn[a],h.getResolution(p))+1e-9),s<24&&t.setMinResolution(rn[s]+1e-9)}}i instanceof no.Z||i instanceof vo?bo(t,r,e,Object.assign({styleUrl:n},o)).then((function(){t.setVisible(!0),l()})).catch(u):l()}else u(new Error("Error accessing data for source "+t.get("mapbox-source")))};t.set("mapbox-layers",e),-1===i.getLayers().getArray().indexOf(t)&&i.addLayer(t),t.getSource()?h():t.once("change:source",h)}))}function jo(t,e,r){for(var n=("getLayers"in t?function(t,e){for(var r=[],n=t.getAllLayers(),i=0,o=n.length;i{if(!r){var a=1/0;for(h=0;h=o)&&Object.keys(n.O).every((t=>n.O[t](r[l])))?r.splice(l--,1):(s=!1,o0&&t[h-1][2]>o;h--)t[h]=t[h-1];t[h]=[r,i,o]},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={592:0};n.O.j=e=>0===t[e];var e=(e,r)=>{var i,o,[a,s,l]=r,u=0;if(a.some((e=>0!==t[e]))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(l)var h=l(n)}for(e&&e(r);u