1(this["webpackJsonpkmaps-app"]=this["webpackJsonpkmaps-app"]||[]).push([[5],{1049:function(t,e,i){"use strict";var n=i(1);function r(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:"x"in e?e.x:e.top,left:"y"in e?e.y:e.left,x:"x"in e?e.x:e.left,y:"y"in e?e.y:e.top,right:e.right,bottom:e.bottom}}e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.liveMeasure,i=void 0===e||e,o=Object(n.useState)({}),a=o[0],s=o[1],c=Object(n.useState)(null),l=c[0],u=c[1],h=Object(n.useCallback)((function(t){u(t)}),[]);return Object(n.useLayoutEffect)((function(){if(l){var t=function(){return window.requestAnimationFrame((function(){return s(r(l))}))};if(t(),i)return window.addEventListener("resize",t),window.addEventListener("scroll",t),function(){window.removeEventListener("resize",t),window.removeEventListener("scroll",t)}}}),[l]),[h,a,l]}},1050:function(t,e,i){"use strict";var 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}();e.a=n},1051:function(t,e,i){"use strict";var n=i(851),r=i(750),o=i(577),a=i(573),s=i(567),c=i(638),l=i(578),u=i(634),h=[0,0,0],p=function(){function t(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,Object(o.a)(Object(l.d)(this.resolutions_,(function(t,e){return e-t}),!0),17),!t.origins)for(var i=0,a=this.resolutions_.length-1;i<a;++i)if(e){if(this.resolutions_[i]/this.resolutions_[i+1]!==e){e=void 0;break}}else e=this.resolutions_[i]/this.resolutions_[i+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,Object(o.a)(this.origins_.length==this.resolutions_.length,20));var c=t.extent;void 0===c||this.origin_||this.origins_||(this.origin_=Object(s.D)(c)),Object(o.a)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,Object(o.a)(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:r.b,Object(o.a)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==c?c:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map((function(t,e){var i=new n.b(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(c){var r=this.getTileRangeForExtentAndZ(c,e);i.minX=Math.max(r.minX,i.minX),i.maxX=Math.min(r.maxX,i.maxX),i.minY=Math.max(r.minY,i.minY),i.maxY=Math.min(r.maxY,i.maxY)}return i}),this):c&&this.calculateTileRanges_(c)}return t.prototype.forEachTileCoord=function(t,e,i){for(var n=this.getTileRangeForExtentAndZ(t,e),r=n.minX,o=n.maxX;r<=o;++r)for(var a=n.minY,s=n.maxY;a<=s;++a)i([e,r,a])}
1,t.prototype.forEachTileCoordParentTileRange=function(t,e,i,r){var o,a,s,c=null,l=t[0]-1;for(2===this.zoomFactor_?(a=t[1],s=t[2]):c=this.getTileCoordExtent(t,r);l>=this.minZoom;){if(2===this.zoomFactor_?(a=Math.floor(a/2),s=Math.floor(s/2),o=Object(n.a)(a,a,s,s,i)):o=this.getTileRangeForExtentAndZ(c,l,i),e(l,o))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,i){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){var r=2*t[1],o=2*t[2];return Object(n.a)(r,r+1,o,o+1,e)}var a=this.getTileCoordExtent(t,i);return this.getTileRangeForExtentAndZ(a,t[0]+1,e)}return null},t.prototype.getTileRangeExtent=function(t,e,i){var n=this.getOrigin(t),r=this.getResolution(t),o=Object(u.c)(this.getTileSize(t),this.tmpSize_),a=n[0]+e.minX*o[0]*r,c=n[0]+(e.maxX+1)*o[0]*r,l=n[1]+e.minY*o[1]*r,h=n[1]+(e.maxY+1)*o[1]*r;return Object(s.k)(a,l,c,h,i)},t.prototype.getTileRangeForExtentAndZ=function(t,e,i){var r=h;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,r);var o=r[1],a=r[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,r),Object(n.a)(o,r[1],a,r[2],i)},t.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),i=this.getResolution(t[0]),n=Object(u.c)(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*n[0]*i,e[1]-(t[2]+.5)*n[1]*i]},t.prototype.getTileCoordExtent=function(t,e){var i=this.getOrigin(t[0]),n=this.getResolution(t[0]),r=Object(u.c)(this.getTileSize(t[0]),this.tmpSize_),o=i[0]+t[1]*r[0]*n,a=i[1]-(t[2]+1)*r[1]*n,c=o+r[0]*n,l=a+r[1]*n;return Object(s.k)(o,a,c,l,e)},t.prototype.getTileCoordForCoordAndResolution=function(t,e,i){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,i)},t.prototype.getTileCoordForXYAndResolution_=function(t,e,i,n,r){var o=this.getZForResolution(i),a=i/this.getResolution(o),s=this.getOrigin(o),l=Object(u.c)(this.getTileSize(o),this.tmpSize_),h=n?.5:0,p=n?.5:0,f=Math.floor((t-s[0])/i+h),d=Math.floor((s[1]-e)/i+p),g=a*f/l[0],_=a*d/l[1];return n?(g=Math.ceil(g)-1,_=Math.ceil(_)-1):(g=Math.floor(g),_=Math.floor(_)),Object(c.a)(o,g,_,r)},t.prototype.getTileCoordForXYAndZ_=function(t,e,i,n,r){var o=this.getOrigin(i),a=this.getResolution(i),s=Object(u.c)(this.getTileSize(i),this.tmpSize_),l=n?.5:0,h=n?.5:0,p=Math.floor((t-o[0])/a+l),f=Math.floor((o[1]-e)/a+h),d=p/s[0],g=f/s[1];return n?(d=Math.ceil(d)-1,g=Math.ceil(g)-1):(d=Math.floor(d),g=Math.floor(g)),Object(c.a)(i,d,g,r)},t.prototype.getTileCoordForCoordAndZ=function(t,e,i){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,i)},t.prototype.getTileCoordResolution=function(t){return this.resolutions_[t[0]]},t.prototype.getTileSize=function(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]},t.prototype.getFullTileRange=function(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null},t.prototype.getZForResolution=function(t,e){var i=Object(l.e)(this.resolutions_,t,e||0);return Object(a.a)(i,this.minZoom,this.maxZoom)},t.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,i=new Array(e),n=this.minZoom;n<e;++n)i[n]=this.getTileRangeForExtentAndZ(t,n);this.fullTileRanges_=i},t}();e.a=p},1060:function(t,e,i){"use strict";var n,r=function(t,e){this.ol3map=t,this.gmap=e},o=i(637),a=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),s=function(t){function e(e){var i=e||{};return t.call(this,i)||this}return a(e,t),e}(o.a),c=i(759),l=i(686),u=i(572),h=i(595),p=i(567),f=i(596),d=i(
1576),g=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),_=function(t){function e(e){var i=t.call(this,e)||this;return i.image_=null,i}return g(e,t),e.prototype.getImage=function(){return this.image_?this.image_.getImage():null},e.prototype.prepareFrame=function(t){var e=t.layerStatesArray[t.layerIndex],i=t.pixelRatio,n=t.viewState,r=n.resolution,o=this.getLayer().getSource(),a=t.viewHints,s=t.extent;if(void 0!==e.extent&&(s=Object(p.B)(s,Object(d.e)(e.extent,n.projection))),!a[l.a.ANIMATING]&&!a[l.a.INTERACTING]&&!Object(p.I)(s))if(o){var c=n.projection,u=o.getImage(s,r,i,c);u&&this.loadImage(u)&&(this.image_=u)}else this.image_=null;return!!this.image_},e.prototype.renderFrame=function(t,e){var i=this.image_,n=i.getExtent(),r=i.getResolution(),o=i.getPixelRatio(),a=t.layerStatesArray[t.layerIndex],s=t.pixelRatio,c=t.viewState,l=c.center,g=c.resolution,_=t.size,y=s*r/(g*o),v=Math.round(_[0]*s),m=Math.round(_[1]*s),O=c.rotation;if(O){var b=Math.round(Math.sqrt(v*v+m*m));v=b,m=b}Object(h.b)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/s,1/s,O,-v/2,-m/2),Object(h.d)(this.inversePixelTransform,this.pixelTransform);var x=Object(f.b)(this.pixelTransform);this.useContainer(e,x,a.opacity);var E=this.context,j=E.canvas;j.width!=v||j.height!=m?(j.width=v,j.height=m):this.containerReused||E.clearRect(0,0,v,m);var C=!1;if(a.extent){var w=Object(d.e)(a.extent,c.projection);(C=!Object(p.g)(w,t.extent)&&Object(p.G)(w,t.extent))&&this.clipUnrotated(E,t,w)}var S=i.getImage(),I=Object(h.b)(this.tempTransform,v/2,m/2,y,y,0,o*(n[0]-l[0])/r,o*(l[1]-n[3])/r);this.renderedResolution=r*s/o;var R=I[4],T=I[5],P=S.width*I[0],L=S.height*I[3];if(Object(u.a)(E,this.getLayer().getSource().getContextOptions()),this.preRender(E,t),P>=.5&&L>=.5){var M=a.opacity,A=void 0;1!==M&&(A=this.context.globalAlpha,this.context.globalAlpha=M),this.context.drawImage(S,0,0,+S.width,+S.height,Math.round(R),Math.round(T),Math.round(P),Math.round(L)),1!==M&&(this.context.globalAlpha=A)}return this.postRender(E,t),C&&E.restore(),x!==j.style.transform&&(j.style.transform=x),this.container},e}(c.a),y=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),v=function(t){function e(e){return t.call(this,e)||this}return y(e,t),e.prototype.createRenderer=function(){return new _(this)},e}(s),m=i(860),O=i(855),b=function(t){function e(e,i){t.call(this,e,i),this.listener=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.activate=function(){},e.prototype.deactivate=function(){this.listener&&this.listener.unlisten()},e}(r),x={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},E=i(570),j=i(603),C=i(610),w=i(831),S=i(573),I=function(){function t(t,e,i,n,r,o){this.sourceProj_=t,this.targetProj_=e;var a={},s=Object(d.h)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return a[e]||(a[e]=s(t)),a[e]},this.maxSourceExtent_=n,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!n&&!!this.sourceProj_.getExtent()&&Object(p.F)(n)==Object(p.F)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(p.F)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(p.F)(this.targetProj_.getExtent()):null;var c=Object(p.D)(i),l=Object(p.E)(i),u=Object(p.w)(i),h=Object(p.v)(i),f=this.transformInv_(c),g=this.transformInv_(l),_=this.transformInv_(u),y=this.transformInv_(h),v=10+(o?Math.max(0,Math.ceil(Object(S.d)(Object(p.u)(i)/(o*o*256*256)))):0);if(this.addQuad_(c,l,u,h,f,g,_,y,v),this.wrapsXInSource_){var m=1/0;
1this.triangles_.forEach((function(t,e,i){m=Math.min(m,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])-m>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]-m>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-m>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-m>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var i=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-i<this.sourceWorldWidth_/2&&(t.source=e)}}.bind(this))}a={}}return t.prototype.addTriangle_=function(t,e,i,n,r,o){this.triangles_.push({source:[n,r,o],target:[t,e,i]})},t.prototype.addQuad_=function(t,e,i,n,r,o,a,s,c){var l=Object(p.b)([r,o,a,s]),u=this.sourceWorldWidth_?Object(p.F)(l)/this.sourceWorldWidth_:null,h=this.sourceWorldWidth_,f=this.sourceProj_.canWrapX()&&u>.5&&u<1,d=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var g=Object(p.b)([t,e,i,n]);d=Object(p.F)(g)/this.targetWorldWidth_>.25||d}!f&&this.sourceProj_.isGlobal()&&u&&(d=u>.25||d)}if(!(!d&&this.maxSourceExtent_&&isFinite(l[0])&&isFinite(l[1])&&isFinite(l[2])&&isFinite(l[3]))||Object(p.G)(l,this.maxSourceExtent_)){var _=0;if(!d&&(!isFinite(r[0])||!isFinite(r[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(s[0])||!isFinite(s[1])))if(c>0)d=!0;else if(1!=(_=(isFinite(r[0])&&isFinite(r[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(a[0])&&isFinite(a[1])?0:2)+(isFinite(s[0])&&isFinite(s[1])?0:1))&&2!=_&&4!=_&&8!=_)return;if(c>0){if(!d){var y=[(t[0]+i[0])/2,(t[1]+i[1])/2],v=this.transformInv_(y),m=void 0;if(f)m=(Object(S.e)(r[0],h)+Object(S.e)(a[0],h))/2-Object(S.e)(v[0],h);else m=(r[0]+a[0])/2-v[0];var O=(r[1]+a[1])/2-v[1];d=m*m+O*O>this.errorThresholdSquared_}if(d){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){var b=[(e[0]+i[0])/2,(e[1]+i[1])/2],x=this.transformInv_(b),E=[(n[0]+t[0])/2,(n[1]+t[1])/2],j=this.transformInv_(E);this.addQuad_(t,e,b,E,r,o,x,j,c-1),this.addQuad_(E,b,i,n,j,x,a,s,c-1)}else{var C=[(t[0]+e[0])/2,(t[1]+e[1])/2],w=this.transformInv_(C),I=[(i[0]+n[0])/2,(i[1]+n[1])/2],R=this.transformInv_(I);this.addQuad_(t,C,I,n,r,w,R,s,c-1),this.addQuad_(C,e,i,I,w,o,a,R,c-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&_)&&this.addTriangle_(t,i,n,r,a,s),0==(14&_)&&this.addTriangle_(t,i,e,r,a,o),_&&(0==(13&_)&&this.addTriangle_(e,n,t,o,s,r),0==(7&_)&&this.addTriangle_(e,n,i,o,s,a))}},t.prototype.calculateSourceExtent=function(){var t=Object(p.j)();return this.triangles_.forEach((function(e,i,n){var r=e.source;Object(p.r)(t,r[0]),Object(p.r)(t,r[1]),Object(p.r)(t,r[2])})),t},t.prototype.getTriangles=function(){return this.triangles_},t}(),R=i(592);function T(t,e,i,n,r){t.beginPath(),t.moveTo(0,0),t.lineTo(e,i),t.lineTo(n,r),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,n)+1,Math.max(i,r)),t.restore()}function P(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function L(t,e,i,n){var r=Object(d.m)(i,e,t),o=Object(d.g)(e,n,i),a=e.getMetersPerUnit();void 0!==a&&(o*=a);var s=t.getMetersPerUnit();void 0!==s&&(o/=s);var c=t.getExtent();if(!c||Object(p.f)(c,r)){var l=Object(d.g)(t,o,r)/o;isFinite(l)&&l>0&&(o/=l)}return o}function M(t,e,i,r,o,a,s,c,l,h,f,d){var g=Object(R.a)(Math.round(i*t),Math.round(i*e));if(Object(u.a)(g,d),0===l.length)return g.canvas;function _(t){return Math.round(t*i)/i}g.scale(i,i),g.globalCompositeOperation="lighter";var y=Object(p.j)();l.forEach((function(t,e,i){Object(p.q)(y,t.extent)}));var v=Object(p.F)(y),m=Object(p.A)(y),O=Object(R.a)(Math.round(i*v/r),Math.round(i*m/r));Object(u.a)(O,d);var b=i/r;l.forEach((function(t,e,i){var n=t.extent[0]-y[0],r=-(t.extent[3]-y[3]),o=Object(p.F)(t.extent),a=Object(p.A)(t.extent);t.image.width>0&&t.image.height>0&&O.drawImage(t.image,h,h,t.image.width-2*h,t.image.height-2*h,n*b,r*b,o*b,a*b)}));var E=Object(p.D)(s);
1return c.getTriangles().forEach((function(t,e,o){var s=t.source,c=t.target,l=s[0][0],u=s[0][1],h=s[1][0],p=s[1][1],f=s[2][0],v=s[2][1],m=_((c[0][0]-E[0])/a),b=_(-(c[0][1]-E[1])/a),j=_((c[1][0]-E[0])/a),C=_(-(c[1][1]-E[1])/a),w=_((c[2][0]-E[0])/a),I=_(-(c[2][1]-E[1])/a),R=l,L=u;l=0,u=0;var M=[[h-=R,p-=L,0,0,j-m],[f-=R,v-=L,0,0,w-m],[0,0,h,p,C-b],[0,0,f,v,I-b]],A=Object(S.f)(M);if(A){if(g.save(),g.beginPath(),function(){if(void 0===n){var t=document.createElement("canvas").getContext("2d");t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",T(t,4,5,4,0),T(t,4,5,0,5);var e=t.getImageData(0,0,3,3).data;n=P(e,0)||P(e,4)||P(e,8)}return n}()||d===x){g.moveTo(j,C);for(var F=m-j,D=b-C,k=0;k<4;k++)g.lineTo(j+_((k+1)*F/4),C+_(k*D/3)),3!=k&&g.lineTo(j+_((k+1)*F/4),C+_((k+1)*D/3));g.lineTo(w,I)}else g.moveTo(j,C),g.lineTo(m,b),g.lineTo(w,I);g.clip(),g.transform(A[0],A[2],A[1],A[3],m,b),g.translate(y[0]-R,y[3]-L),g.scale(r/i,-r/i),g.drawImage(O.canvas,0,0),g.restore()}})),f&&(g.save(),g.globalCompositeOperation="source-over",g.strokeStyle="black",g.lineWidth=1,c.getTriangles().forEac
1h((function(t,e,i){var n=t.target,r=(n[0][0]-E[0])/a,o=-(n[0][1]-E[1])/a,s=(n[1][0]-E[0])/a,c=-(n[1][1]-E[1])/a,l=(n[2][0]-E[0])/a,u=-(n[2][1]-E[1])/a;g.beginPath(),g.moveTo(s,c),g.lineTo(r,o),g.lineTo(l,u),g.closePath(),g.stroke()})),g.restore()),g.canvas}var A=i(589),F=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),D=function(t){function e(e,i,n,r,o,a,s){var c=this,l=e.getExtent(),u=i.getExtent(),h=u?Object(p.B)(n,u):n,f=L(e,i,Object(p.x)(h),r),d=new I(e,i,h,l,.5*f,r),g=a(d.calculateSourceExtent(),f,o),_=g?C.a.IDLE:C.a.EMPTY,y=g?g.getPixelRatio():1;return(c=t.call(this,n,r,y,_)||this).targetProj_=i,c.maxSourceExtent_=l,c.triangulation_=d,c.targetResolution_=r,c.targetExtent_=n,c.sourceImage_=g,c.sourcePixelRatio_=y,c.contextOptions_=s,c.canvas_=null,c.sourceListenerKey_=null,c}return F(e,t),e.prototype.disposeInternal=function(){this.state==C.a.LOADING&&this.unlistenSource_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.getProjection=function(){return this.targetProj_},e.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==C.a.LOADED){var e=Object(p.F)(this.targetExtent_)/this.targetResolution_,i=Object(p.A)(this.targetExtent_)/this.targetResolution_;this.canvas_=M(e,i,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.contextOptions_)}this.state=t,this.changed()},e.prototype.load=function(){if(this.state==C.a.IDLE){this.state=C.a.LOADING,this.changed();var t=this.sourceImage_.getState();t==C.a.LOADED||t==C.a.ERROR?this.reproject_():(this.sourceListenerKey_=Object(A.a)(this.sourceImage_,E.a.CHANGE,(function(t){var e=this.sourceImage_.getState();e!=C.a.LOADED&&e!=C.a.ERROR||(this.unlistenSource_(),this.reproject_())}),this),this.sourceImage_.load())}},e.prototype.unlistenSource_=function(){Object(A.c)(this.sourceListenerKey_),this.sourceListenerKey_=null},e}(w.a),k=i(745),G=i(571),N=i(578),z=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Y="imageloadstart",W="imageloadend",X="imageloaderror",V=function(t){function e(e,i){var n=t.call(this,e)||this;return n.image=i,n}return z(e,t),e}(j.a);function B(t,e){t.getImage().src=e}var K=function(t){function e(e){var i=t.call(this,{attributions:e.attributions,projection:e.projection,state:e.state})||this;return i.resolutions_=void 0!==e.resolutions?e.resolutions:null,i.reprojectedImage_=null,i.reprojectedRevision_=0,i.contextOptions_=!1===e.imageSmoothing?x:void 0,i}return z(e,t),e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getContextOptions=function(){return this.contextOptions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var e=Object(N.e)(this.resolutions_,t,0);t=this.resolutions_[e]}return t},e.prototype.getImage=function(t,e,i,n){var r=this.getProjection();if(r&&n&&!Object(d.c)(r,n)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Object(d.c)(this.reprojectedImage_.getProjection(),n)&&this.reprojectedImage_.getResolution()==e&&Object(p.p)(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new D(r,n,t,e,i,function(t,e,i){return this.getImageInternal(t,e,i,r)}.bind(this),this.contextOptions_),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return r&&(n=r),this.getImageInternal(t,e,i,n)}
1,e.prototype.getImageInternal=function(t,e,i,n){return Object(G.b)()},e.prototype.handleImageChange=function(t){var e=t.target;switch(e.getState()){case C.a.LOADING:this.loading=!0,this.dispatchEvent(new V(Y,e));break;case C.a.LOADED:this.loading=!1,this.dispatchEvent(new V(W,e));break;case C.a.ERROR:this.loading=!1,this.dispatchEvent(new V(X,e))}},e}(k.a),U=i(744),Z="carmentaserver",H="geoserver",q="mapserver",J="qgis";function Q(t,e){var i=[];Object.keys(e).forEach((function(t){null!==e[t]&&void 0!==e[t]&&i.push(t+"="+encodeURIComponent(e[t]))}));var n=i.join("&");return(t=-1===(t=t.replace(/[?&]$/,"")).indexOf("?")?t+"?":t+"&")+n}var $=i(577),tt=i(828),et=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),it=[101,101],nt=function(t){function e(e){var i=this,n=e||{};return(i=t.call(this,{attributions:n.attributions,imageSmoothing:n.imageSmoothing,projection:n.projection,resolutions:n.resolutions})||this).crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:null,i.url_=n.url,i.imageLoadFunction_=void 0!==n.imageLoadFunction?n.imageLoadFunction:B,i.params_=n.params||{},i.v13_=!0,i.updateV13_(),i.serverType_=n.serverType,i.hidpi_=void 0===n.hidpi||n.hidpi,i.image_=null,i.imageSize_=[0,0],i.renderedRevision_=0,i.ratio_=void 0!==n.ratio?n.ratio:1.5,i}return et(e,t),e.prototype.getFeatureInfoUrl=function(t,e,i,n){if(void 0!==this.url_){var r=Object(d.f)(i),o=this.getProjection();o&&o!==r&&(e=L(o,r,t,e),t=Object(d.m)(t,r,o));var a=Object(p.z)(t,e,0,it),s={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};Object(u.a)(s,this.params_,n);var c=Math.floor((t[0]-a[0])/e),l=Math.floor((a[3]-t[1])/e);return s[this.v13_?"I":"X"]=c,s[this.v13_?"J":"Y"]=l,this.getRequestUrl_(a,it,1,o||r,s)}},e.prototype.getLegendUrl=function(t,e){if(void 0!==this.url_){var i={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===e||void 0===e.LAYER){var n=this.params_.LAYERS;if(!(!Array.isArray(n)||1===n.length))return;i.LAYER=n}if(void 0!==t){var r=this.getProjection()?this.getProjection().getMetersPerUnit():1;i.SCALE=t*r/28e-5}return Object(u.a)(i,e),Q(this.url_,i)}},e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,e,i,n){if(void 0===this.url_)return null;e=this.findNearestResolution(e),1==i||this.hidpi_&&void 0!==this.serverType_||(i=1);var r=e/i,o=Object(p.x)(t),a=Math.ceil(Object(p.F)(t)/r),s=Math.ceil(Object(p.A)(t)/r),c=Object(p.z)(o,r,0,[a,s]),l=Math.ceil(this.ratio_*Object(p.F)(t)/r),h=Math.ceil(this.ratio_*Object(p.A)(t)/r),f=Object(p.z)(o,r,0,[l,h]),d=this.image_;if(d&&this.renderedRevision_==this.getRevision()&&d.getResolution()==e&&d.getPixelRatio()==i&&Object(p.g)(d.getExtent(),c))return d;var g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};Object(u.a)(g,this.params_),this.imageSize_[0]=Math.round(Object(p.F)(f)/r),this.imageSize_[1]=Math.round(Object(p.A)(f)/r);var _=this.getRequestUrl_(f,this.imageSize_,i,n,g);return this.image_=new U.a(f,e,i,_,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(E.a.CHANGE,this.handleImageChange.bind(this)),this.image_},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.getRequestUrl_=function(t,e,i,n,r){if(Object($.a)(void 0!==this.url_,9),r[this.v13_?"CRS":"SRS"]=n.getCode(),"STYLES"in this.params_||(r.STYLES=""),1!=i)switch(this.serverType_){case H:var o=90*i+.5|0;"FORMAT_OPTIONS"in r?r.FORMAT_OPTIONS+=";dpi:"+o:r.FORMAT_OPTIONS="dpi:"+o;break;case q:r.MAP_RESOLUTION=90*i;break;case Z:case J:r.DPI=90*i;break;default:Object($.a)(!1,8)}r.WIDTH=e[0],r.HEIGHT=e[1];var a,s=n.getAxisOrientation();return a=this.v13_&&"ne"==s.substr(0,2)?[t[1],t[0],t[3],t[2]]:t,r.BBOX=a.join(","),Q(this.url_,r)},e.prototype.getUrl=function(){return this.url_},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},e.prototype.updateParams=function(t){Object(u.a)(this.params_,t),this.updateV13_(),this.image_=null,this.changed()},e.prototype.updateV13_=function(){var t=this.params_.VERSION||"1.3.0";this.v13_=Object(tt.a)(t,"1.3")>=0},e}(K);function rt(t,e){if(!t){var i="Assertion failed";throw e&&(i+=": "+e),new Error(i)}}var ot=function(t){function e(e,i,n){t.call(this),this.src_=e,this.size_=i,this.topLeft_=n,this.div_=null,this.zIndex_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.onAdd=function(){var t=document.createElement("div");t.style.borderStyle="none",t.style.borderWidth="0px",t.style.position="absolute",t.style.zIndex=this.zIndex_;var e=document.createElement("img");e.src=this.src_,e.style.width="100%",e.style.height="100%",e.style.position="absolute",t.appendChild(e),this.div_=t,this.getPanes().mapPane.appendChild(t)},e.prototype.draw=function(){var t=this.div_,e=this.size_[0],i=this.size_[1];t.style.width=e+"px",t.style.height=i+"px";var n=this.getProjection(),r=n.fromLatLngToDivPixel(this.topLeft_),o=r.x,a=r.y,s=n.getWorldWidth();if(s<e){var c=Math.floor(e/s)/2;o-=s*Math.max(c,1)}t.style.top=a+"px",t.style.left=o+"px"},e.prototype.setZIndex=function(t){this.zIndex_=t,this.div_&&(this.div_.style.zIndex=t)},e.prototype.onRemove=function(){this.div_&&(this.div_.parentNode.removeChild(this.div_),this.div_=null)},e}(window.google&&window.google.maps&&google.maps.OverlayView||Object),at=function(t){function e(e,i){t.call(this,e,i),this.googleMapsIsActive_=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.watchLayer=function(t){},e.prototype.unwatchLayer=function(t){},e.prototype.setGoogleMapsActive=function(t){this.googleMapsIsActive=t},e.prototype.findIndex=function(t){var e=this.ol3map.getLayers().getArray().indexOf(t),i=t.getZIndex();return 0!=i&&(e=i),e},e}(b),st="function"===typeof Object.assign?Object.assign:function(t,e){var i=arguments;if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1,o=arguments.length;r<o;++r){var a=i[r];if(void 0!==a&&null!==a)for(var s in a)a.hasOwnProperty(s)&&(n[s]=a[s])}return n};function ct(t){for(var e in t)delete t[e]}var lt=function(){};lt.prototype.unlisten=function(){throw new TypeError("not implemented")};var ut=lt,ht=i(742),pt=function(t){function e(e){t.call(this),this.listenerKey_=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.unlisten=function(){Object(ht.b)(this.listenerKey_)},e}(ut),ft=function(t){function e(e,i,n,r){var o=this;t.call(this,e.on("change:"+n,(function(t){o.innerListener_&&(Array.isArray(o.innerListener_)?o.innerListener_.forEach((function(t){return t.unlisten()})):o.innerListener_.unlisten()),o.innerListener_=r(t.target.get(t.key),t.oldValue)}))),this.innerListener_=r(e.get(n),i&&i.get(n))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.unlisten=function(){this.innerListener_&&(Array.isArray(this.innerListener_)?this.innerListener_.forEach((function(t){return t.unlisten()})):this.innerListener_.unlisten()),t.prototype.unlisten.call(this)},e}(pt),dt=function(t){function e(e,i){t.call(this,e,i),this.cache_=[],this.layers_=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.watchLayer=function(t){var e=this,i=t;if(i.getSource()instanceof nt&&!1!==i.get("olgmWatch")){this.layers_.push(i);var n=i.getOpacity(),r={imageOverlay:null,lastUrl:null,layer:i,listeners:[],opacity:n,zIndex:0};r.listeners.push(new pt(i.on("change:visible",(function(){return e.handleVisibleChange_(r)}))),new pt(this.ol3map.on("moveend",(function(){return e.handleMoveEnd_(r)}))),new ft(this.ol3map,null,"view",(function(t,i){return new ft(t,i,"resolution",(function(){return e.handleMoveEnd_(r)}))})),new ft(i,null,"source",(function(t){return t&&e.handleMoveEnd_(r),new pt(t.on("change",(function(){return e.handleMoveEnd_(r)})))}))),this.activateCacheItem_(r),this.cache_.push(r)}},e.prototype.unwatchLayer=function(t){var e=t,i=this.layers_.indexOf(e);if(-1!==i){this.layers_.splice(i,1);var n=this.cache_[i];
1n.listeners&&n.listeners.forEach((function(t){return t.unlisten()})),this.resetImageOverlay_(n),e.setOpacity(n.opacity),this.cache_.splice(i,1)}},e.prototype.activate=function(){t.prototype.activate.call(this),this.cache_.forEach(this.activateCacheItem_,this)},e.prototype.activateCacheItem_=function(t){t.layer.getVisible()&&this.googleMapsIsActive&&(t.lastUrl=null,t.layer.setOpacity(0),this.updateImageOverlay_(t))},e.prototype.deactivate=function(){t.prototype.deactivate.call(this),this.cache_.forEach(this.deactivateCacheItem_,this)},e.prototype.deactivateCacheItem_=function(t){t.imageOverlay&&(t.imageOverlay.setMap(null),t.imageOverlay=null),t.layer.setOpacity(t.opacity)},e.prototype.generateImageWMSFunction_=function(t){var e,i=t.getSource(),n=i.getParams(),r=this.ol3map,o=i.getUrl();rt(void 0!==o,"Expected the source to have an url");var a=r.getSize();rt(void 0!==a,"Expected the map to have a size");var s=r.getView().calculateExtent(a),c=["CRS","BBOX","FORMAT","HEIGHT","LAYERS","REQUEST","SERVICE","SRS","STYLES","TILED","TRANSPARENT","VERSION","WIDTH"],l={},u={};for(e in n){var h=e.toUpperCase();-1===c.indexOf(h)?void 0!==n[e]&&null!==n[e]&&(l[e]=n[e]):u[h]=n[e]}var p=u.VERSION?u.VERSION:"1.3.0",f=u.LAYERS?u.LAYERS:"",d=u.STYLES?u.STYLES:"",g=u.FORMAT?u.FORMAT:"image/png",_=u.TRANSPARENT?u.TRANSPARENT:"TRUE",y=u.TILED?u.TILED:"FALSE",v=p.split("."),m=parseInt(v[0],10)>=1&&parseInt(v[1],10)>=3,O={BBOX:s,FORMAT:g,HEIGHT:a[1],LAYERS:f,REQUEST:"GetMap",SERVICE:"WMS",STYLES:d,TILED:y,TRANSPARENT:_,VERSION:p,WIDTH:a[0]};return m?O.CRS="EPSG:3857":O.SRS="EPSG:3857",st(O,l),function(t,e){var i=[];Object.keys(e).forEach((function(t){null!==e[t]&&void 0!==e[t]&&i.push(t+"="+encodeURIComponent(e[t]))}));var n=i.join("&");return(t=-1===(t=t.replace(/[?&]$/,"")).indexOf("?")?t+"?":t+"&")+n}(o,O)},e.prototype.resetImageOverlay_=function(t){t.imageOverlay&&(t.imageOverlay.setMap(null),t.imageOverlay=null)},e.prototype.updateImageOverlay_=function(t,e){var i=t.layer;if(i.getVisible()){var n=this.generateImageWMSFunction_(i);1==e&&(n+="×tamp="+(new Date).getTime());var r=i.getMinResolution(),o=i.getMaxResolution(),a=this.ol3map.getView().getResolution();if(a<r||a>o)this.resetImageOverlay_(t);else if(n!=t.lastUrl){t.lastUrl=n;var s=this.ol3map.getView(),c=this.ol3map.getSize();rt(void 0!==c,"Expected the map to have a size");var l=s.calculateExtent(c),u=Object(p.D)(l),h=Object(d.m)(u,"EPSG:3857","EPSG:4326"),f=new google.maps.LatLng(h[1],h[0]),g=new ot(n,c,f);g.setZIndex(t.zIndex),g.setMap(this.gmap),this.resetImageOverlay_(t),t.imageOverlay=g}}},e.prototype.orderLayers=function(){for(var t=0;t<this.cache_.length;t++){var e=this.cache_[t],i=e.layer,n=this.findIndex(i);e.zIndex=n,e.imageOverlay&&e.imageOverlay.setZIndex(n)}},e.prototype.refresh=function(){for(var t=0;t<this.cache_.length;t++)this.updateImageOverlay_(this.cache_[t],!0)},e.prototype.handleVisibleChange_=function(t){t.layer.getVisible()?this.activateCacheItem_(t):this.deactivateCacheItem_(t)},e.prototype.handleMoveEnd_=function(t){t.layer.getVisible()&&this.ol3map.getView().getCenter()&&this.updateImageOverlay_(t)},e}(at),gt=i(632),_t=i(611),yt=i(612),vt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),mt=function(t){function e(e,i,n){var r=t.call(this)||this,o=n||{};return r.tileCoord=e,r.state=i,r.interimTile=null,r.hifi=!0,r.key="",r.transition_=void 0===o.transition?250:o.transition,r.transitionStarts_={},r}return vt(e,t),e.prototype.changed=function(){this.dispatchEvent(E.a.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()==_t.a.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()==_t.a.LOADED){t.interimTile=null;break}t.getState()==_t.a.LOADING?e=t:t.getState()==_t.a.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!==_t.a.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){Object(G.b)()},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var i=this.transitionStarts_[t];if(i){if(-1===i)return 1}else i=e,this.transitionStarts_[t]=i;var n=e-i+1e3/60;return n>=this.transition_?1:Object(yt.a)(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}(gt.a),Ot=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();var bt=function(t){function e(e,i,n,r,o,a){var s=t.call(this,e,i,a)||this;return s.crossOrigin_=r,s.src_=n,s.key=n,s.image_=new Image,null!==r&&(s.image_.crossOrigin=r),s.unlisten_=null,s.tileLoadFunction_=o,s}return Ot(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=_t.a.ERROR,this.unlistenImage_(),this.image_=function(){var t=Object(R.a)(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;
1t.naturalWidth&&t.naturalHeight?this.state=_t.a.LOADED:this.state=_t.a.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==_t.a.ERROR&&(this.state=_t.a.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==_t.a.IDLE&&(this.state=_t.a.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Object(U.b)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(mt),xt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Et=function(t){function e(e,i,n,r,o,a,s,c,l,u,h,f){var d=t.call(this,o,_t.a.IDLE)||this;d.renderEdges_=void 0!==h&&h,d.contextOptions_=f,d.pixelRatio_=s,d.gutter_=c,d.canvas_=null,d.sourceTileGrid_=i,d.targetTileGrid_=r,d.wrappedTileCoord_=a||o,d.sourceTiles_=[],d.sourcesListenerKeys_=null,d.sourceZ_=0;var g=r.getTileCoordExtent(d.wrappedTileCoord_),_=d.targetTileGrid_.getExtent(),y=d.sourceTileGrid_.getExtent(),v=_?Object(p.B)(g,_):g;if(0===Object(p.u)(v))return d.state=_t.a.EMPTY,d;var m=e.getExtent();m&&(y=y?Object(p.B)(y,m):m);var O=r.getResolution(d.wrappedTileCoord_[0]),b=function(t,e,i,n){var r=Object(p.x)(i),o=L(t,e,r,n);return(!isFinite(o)||o<=0)&&Object(p.t)(i,(function(i){return o=L(t,e,i,n),isFinite(o)&&o>0})),o}(e,n,v,O);if(!isFinite(b)||b<=0)return d.state=_t.a.EMPTY,d;var x=void 0!==u?u:.5;if(d.triangulation_=new I(e,n,v,y,b*x,O),0===d.triangulation_.getTriangles().length)return d.state=_t.a.EMPTY,d;d.sourceZ_=i.getZForResolution(b);var E=d.triangulation_.calculateSourceExtent();if(y&&(e.canWrapX()?(E[1]=Object(S.a)(E[1],y[1],y[3]),E[3]=Object(S.a)(E[3],y[1],y[3])):E=Object(p.B)(E,y)),Object(p.u)(E)){for(var j=i.getTileRangeForExtentAndZ(E,d.sourceZ_),C=j.minX;C<=j.maxX;C++)for(var w=j.minY;w<=j.maxY;w++){var R=l(d.sourceZ_,C,w,s);R&&d.sourceTiles_.push(R)}0===d.sourceTiles_.length&&(d.state=_t.a.EMPTY)}else d.state=_t.a.EMPTY;return d}return xt(e,t),e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,i,n){e&&e.getState()==_t.a.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=_t.a.ERROR;else{var e=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(e),n="number"===typeof i?i:i[0],r="number"===typeof i?i:i[1],o=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),s=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=M(n,r,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,s,this.triangulation_,t,this.gutter_,this.renderEdges_,this.contextOptions_),this.state=_t.a.LOADED}this.changed()},e.prototype.load=function(){if(this.state==_t.a.IDLE){this.state=_t.a.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,i,n){var r=e.getState();if(r==_t.a.IDLE||r==_t.a.LOADING){t++;var o=Object(A.a)(e,E.a.CHANGE,(function(i){var n=e.getState();n!=_t.a.LOADED&&n!=_t.a.ERROR&&n!=_t.a.EMPTY||(Object(A.c)(o),0===--t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(o)}}.bind(this)),this.sourceTiles_.forEach((function(t,e,i){t.getState()==_t.a.IDLE&&t.load()})),0===t&&setTimeout(this.reproject_.bind(this),0)}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(A.c),this.sourcesListenerKeys_=null},e}(mt),jt=function(){function t(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return t.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},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 i=this.entries_[t];return Object($.a)(void 0!==i,15),i===this.newest_||(i===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(i.newer.older=i.older,i.older.newer=i.newer),i.newer=null,i.older=this.newest_,this.newest_.newer=i,this.newest_=i),i.value_},t.prototype.remove=function(t){var e=this.entries_[t];return Object($.a)(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_),i=0;for(t=this.newest_;t;t=t.older)e[i++]=t.key_;return e},t.prototype.getValues=function(){var t,e=new Array(this.count_),i=0;for(t=this.newest_;t;t=t.older)e[i++]=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.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){Object($.a)(!(t in this.entries_),16);var i={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[t]=i,++this.count_},t.prototype.setSize=function(t){this.highWaterMark=t},t}(),Ct=i(638),wt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),St=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wt(e,t),e.prototype.expireCache=function(t){for(;this.canExpireCache();){if(this.peekLast().getKey()in t)break;this.pop().release()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=this.peekFirstKey(),e=Object(Ct.b)(t)[0];this.forEach(function(t){t.tileCoord[0]!==e&&(this.remove(Object(Ct.c)(t.tileCoord)),t.release()
1)}.bind(this))}},e}(jt),It="tileloadstart",Rt="tileloadend",Tt="tileloaderror",Pt=i(853),Lt=i(634),Mt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),At=function(t){function e(e){var i=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX})||this;i.opaque_=void 0!==e.opaque&&e.opaque,i.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,i.tileGrid=void 0!==e.tileGrid?e.tileGrid:null;var n=e.tileGrid;return n&&Object(Lt.c)(n.getTileSize(n.getMinZoom()),[256,256]),i.tileCache=new St(e.cacheSize||0),i.tmpSize=[0,0],i.key_=e.key||"",i.tileOptions={transition:e.transition},i.zDirection=e.zDirection?e.zDirection:0,i}return Mt(e,t),e.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},e.prototype.expireCache=function(t,e){var i=this.getTileCacheForProjection(t);i&&i.expireCache(e)},e.prototype.forEachLoadedTile=function(t,e,i,n){var r=this.getTileCacheForProjection(t);if(!r)return!1;for(var o,a,s,c=!0,l=i.minX;l<=i.maxX;++l)for(var u=i.minY;u<=i.maxY;++u)a=Object(Ct.d)(e,l,u),s=!1,r.containsKey(a)&&(s=(o=r.get(a)).getState()===_t.a.LOADED)&&(s=!1!==n(o)),s||(c=!1);return c},e.prototype.getGutterForProjection=function(t){return 0},e.prototype.getKey=function(){return this.key_},e.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},e.prototype.getOpaque=function(t){return this.opaque_},e.prototype.getResolutions=function(){return this.tileGrid.getResolutions()},e.prototype.getTile=function(t,e,i,n,r){return Object(G.b)()},e.prototype.getTileGrid=function(){return this.tileGrid},e.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:Object(Pt.a)(t)},e.prototype.getTileCacheForProjection=function(t){return Object($.a)(Object(d.c)(this.getProjection(),t),68),this.tileCache},e.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},e.prototype.getTilePixelSize=function(t,e,i){var n=this.getTileGridForProjection(i),r=this.getTilePixelRatio(e),o=Object(Lt.c)(n.getTileSize(t),this.tmpSize);return 1==r?o:Object(Lt.b)(o,r,this.tmpSize)},e.prototype.getTileCoordForTileUrlFunction=function(t,e){var i=void 0!==e?e:this.getProjection(),n=this.getTileGridForProjection(i);return this.getWrapX()&&i.isGlobal()&&(t=Object(Pt.b)(n,t,i)),Object(Ct.f)(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 i=this.getTileCacheForProjection(e);t>i.highWaterMark&&(i.highWaterMark=t)},e.prototype.useTile=function(t,e,i,n){},e}(k.a),Ft=function(t){function e(e,i){var n=t.call(this,e)||this;return n.tile=i,n}return Mt(e,t),e}(j.a),Dt=At;function kt(t,e){var i=/\{z\}/g,n=/\{x\}/g,r=/\{y\}/g,o=/\{-y\}/g;return function(a,s,c){return a?t.replace(i,a[0].toString()).replace(n,a[1].toString()).replace(r,a[2].toString()).replace(o,(function(){var t=a[0],i=e.getFullTileRange(t);return Object($.a)(i,55),(i.getHeight()-a[2]-1).toString()})):void 0}}function Gt(t,e){for(var i=t.length,n=new Array(i),r=0;r<i;++r)n[r]=kt(t[r],e);return function(t){if(1===t.length)return t[0];return function(e,i,n){if(e){var r=Object(Ct.e)(e),o=Object(S.e)(r,t.length);return t[o](e,i,n)}}}(n)}var Nt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),zt=function(t){function e(i){var n=t.call(this,{attributions:i.attributions,cacheSize:i.cacheSize,opaque:i.opaque,projection:i.projection,state:i.state,tileGrid:i.tileGrid,tilePixelRatio:i.tilePixelRatio,wrapX:i.wrapX,transition:i.transition,key:i.key,attributionsCollapsible:i.attributionsCollapsible,zDirection:i.zDirection})||this;return n.generateTileUrlFunction_=n.tileUrlFunction===e.prototype.tileUrlFunction,n.tileLoadFunction=i.tileLoadFunction,i.tileUrlFunction&&(n.tileUrlFunction=i.tileUrlFunction),n.urls=null,i.urls?n.setUrls(i.urls):i.url&&n.setUrl(i.url),n.tileLoadingKeys_={},n}return Nt(e,t),e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var e,i=t.target,n=Object(G.c)(i),r=i.getState();r==_t.a.LOADING?(this.tileLoadingKeys_[n]=!0,e=It):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],e=r==_t.a.ERROR?Tt:r==_t.a.LOADED?Rt:void 0),void 0!=e&&this.dispatchEvent(new Ft(e,i))},e.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},e.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),"undefined"!==typeof e?this.setKey(e):this.changed()},e.prototype.setUrl=function(t){var e=function(t){var e=[],i=/\{([a-z])-([a-z])\}/.exec(t);
1if(i){var n=i[1].charCodeAt(0),r=i[2].charCodeAt(0),o=void 0;for(o=n;o<=r;++o)e.push(t.replace(i[0],String.fromCharCode(o)));return e}if(i=/\{(\d+)-(\d+)\}/.exec(t)){for(var a=parseInt(i[2],10),s=parseInt(i[1],10);s<=a;s++)e.push(t.replace(i[0],s.toString()));return e}return e.push(t),e}(t);this.urls=e,this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(Gt(t,this.tileGrid),e):this.setKey(e)},e.prototype.tileUrlFunction=function(t,e,i){},e.prototype.useTile=function(t,e,i){var n=Object(Ct.d)(t,e,i);this.tileCache.containsKey(n)&&this.tileCache.get(n)},e}(Dt),Yt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function Wt(t,e){t.getImage().src=e}var Xt=function(t){function e(e){var i=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Wt,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this;return i.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,i.tileClass=void 0!==e.tileClass?e.tileClass:bt,i.tileCacheForProjection={},i.tileGridForProjection={},i.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,i.contextOptions_=!1===e.imageSmoothing?x:void 0,i.renderReprojectionEdges_=!1,i}return Yt(e,t),e.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},e.prototype.expireCache=function(t,e){var i=this.getTileCacheForProjection(t);for(var n in this.tileCache.expireCache(this.tileCache==i?e:{}),this.tileCacheForProjection){var r=this.tileCacheForProjection[n];r.expireCache(r==i?e:{})}},e.prototype.getContextOptions=function(){return this.contextOptions_},e.prototype.getGutterForProjection=function(t){return this.getProjection()&&t&&!Object(d.c)(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getKey=function(){return t.prototype.getKey.call(this)+(this.contextOptions_?"\n"+JSON.stringify(this.contextOptions_):"")},e.prototype.getOpaque=function(e){return!(this.getProjection()&&e&&!Object(d.c)(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(t){var e=this.getProjection();if(!this.tileGrid||e&&!Object(d.c)(e,t)){var i=Object(G.c)(t);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=Object(Pt.a)(t)),this.tileGridForProjection[i]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();if(!e||Object(d.c)(e,t))return this.tileCache;var i=Object(G.c)(t);return i in this.tileCacheForProjection||(this.tileCacheForProjection[i]=new St(this.tileCache.highWaterMark)),this.tileCacheForProjection[i]},e.prototype.createTile_=function(t,e,i,n,r,o){var a=[t,e,i],s=this.getTileCoordForTileUrlFunction(a,r),c=s?this.tileUrlFunction(s,n,r):void 0,l=new this.tileClass(a,void 0!==c?_t.a.IDLE:_t.a.EMPTY,void 0!==c?c:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return l.key=o,l.addEventListener(E.a.CHANGE,this.handleTileChange.bind(this)),l},e.prototype.getTile=function(t,e,i,n,r){var o=this.getProjection();if(o&&r&&!Object(d.c)(o,r)){var a=this.getTileCacheForProjection(r),s=[t,e,i],c=void 0,l=Object(Ct.c)(s);a.containsKey(l)&&(c=a.get(l));var u=this.getKey();if(c&&c.key==u)return c;var h=this.getTileGridForProjection(o),p=this.getTileGridForProjection(r),f=this.getTileCoordForTileUrlFunction(s,r),g=new Et(o,h,r,p,s,f,this.getTilePixelRatio(n),this.getGutter(),function(t,e,
1i,n){return this.getTileInternal(t,e,i,n,o)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.contextOptions_);return g.key=u,c?(g.interimTile=c,g.refreshInterimChain(),a.replace(l,g)):a.set(l,g),g}return this.getTileInternal(t,e,i,n,o||r)},e.prototype.getTileInternal=function(t,e,i,n,r){var o=null,a=Object(Ct.d)(t,e,i),s=this.getKey();if(this.tileCache.containsKey(a)){if((o=this.tileCache.get(a)).key!=s){var c=o;o=this.createTile_(t,e,i,n,r,s),c.getState()==_t.a.IDLE?o.interimTile=c.interimTile:o.interimTile=c,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(t,e,i,n,r,s),this.tileCache.set(a,o);return o},e.prototype.setRenderReprojectionEdges=function(t){if(this.renderReprojectionEdges_!=t){for(var e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,e){var i=Object(d.f)(t);if(i){var n=Object(G.c)(i);n in this.tileGridForProjection||(this.tileGridForProjection[n]=e)}},e}(zt),Vt=function(t){function e(e){t.call(this),this.setMap(e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getMapPanes=function(){return this.getPanes()},e.prototype.onAdd=function(){},e.prototype.draw=function(){},e.prototype.onRemove=function(){},e}(window.google&&window.google.maps&&google.maps.OverlayView||Object),Bt=function(t){function e(e,i){var n=this;t.call(this,e,i),this.cache_=[],this.layers_=[],this.panesOverlay_=new Vt(i),google.maps.event.addListenerOnce(i,"idle",(function(){n.orderLayers()}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.watchLayer=function(t){var e=this,i=t,n=i.getSource();if(n instanceof Xt&&!1!==i.get("olgmWatch")){this.layers_.push(i);var r=i.getOpacity(),o={element:null,ignoreNextOpacityChange:!0,layer:i,listeners:[],opacity:r,zIndex:0},a=n.getTileGrid(),s=256;if(a){var c=a.getTileSize(0);"number"===typeof c&&(s=c)}var l=new google.maps.Size(s,s),u={getTileUrl:this.googleGetTileUrlFunction_.bind(this,i),tileSize:l,isPng:!0,opacity:r},h=new google.maps.ImageMapType(u);i.getVisible()&&this.gmap.overlayMapTypes.push(h),o.googleTileLayer=h,o.listeners.push(new pt(i.on("change:visible",(function(){return e.handleVisibleChange_(o)}))),new pt(i.on("change:opacity",(function(){return e.handleOpacityChange_(o)}))),new ft(i,null,"source",(function(t,i){return i&&e.handleSourceChange_(o),new pt(t.on("change",(function(){return e.handleSourceChange_(o)})))}))),this.activateCacheItem_(o),this.cache_.push(o)}},e.prototype.googleGetTileUrlFunction_=function(t,e,i){var n=t.getSource(),r=t.getMinResolution(),o=t.getMaxResolution(),a=this.ol3map.getView().getResolution();if(!(a<r||a>o)){var s=Object(d.f)("EPSG:3857"),c=[i,e.x,e.y],l=t.getExtent();l||(l=s.getExtent());var u=n.getTileGrid();if(u){var h=[-20037508.342789244,20037508.342789244],f=u.getOrigin(0);if(f[0]!=h[0]||f[1]!=h[1]){var g=u.getTileSize(i),_=Math.log2(256),y=Math.log2(g)-_,v=Math.pow(2,i-y)/2;c[1]=c[1]-v,c[2]=c[2]+v}var m=Object(p.B)(l,u.getTileCoordExtent(c)),O=Object(p.C)(m),b=O[0]*O[1];if(b<1||b==1/0)return}var x=n.tileUrlFunction(c,1,s);if(void 0===x)x=n.getTileUrlFunction()(c,1,s);return x}},e.prototype.unwatchLayer=function(t){var e=t,i=this.layers_.indexOf(e);if(-1!==i){this.layers_.splice(i,1);var n=this.cache_[i];n.listeners.forEach((function(t){return t.unlisten()}));var r=n.googleTileLayer,o=this.gmap.overlayMapTypes,a=o.getArray().indexOf(r);-1!=a&&o.removeAt(a),e.setOpacity(n.opacity),this.cache_.splice(i,1)}},e.prototype.activate=function(){t.prototype.activate.call(this),this.cache_.forEach(this.activateCacheItem_,this)},e.prototype.activateCacheItem_=function(t){t.layer.getVisible()&&this.googleMapsIsActive&&(t.ignoreNextOpacityChange=!0,t.layer.setOpacity(0))},e.prototype.deactivate=function(){t.prototype.deactivate.call(this),this.cache_.forEach(this.deactivateCacheItem_,this)},e.prototype.deactivateCacheItem_=function(t){t.ignoreNextOpacityChange=!0,t.layer.setOpacity(t.opacity)},e.prototype.orderLayers=function(){var t=this.panesOverlay_.getMapPanes();if(t)for(var e=t.mapPane,i=this.gmap.overlayMapTypes,n=0;n<this.cache_.length;n++){var r=this.cache_[n],o=r.layer;r.zIndex=this.findIndex(o);var a=r.googleTileLayer,s=i.getArray().indexOf(a);if(-1!=s){i.removeAt(s);var c=Array.prototype.slice.call(e.childNodes);i.push(a);for(var l=e.childNodes,u=0;u<l.length;u++)-1==c.indexOf(l[u])&&(r.element=l[u],setTimeout(function(){this.element.style.zIndex=this.zIndex}
1.bind(r),0))}}},e.prototype.handleOpacityChange_=function(t){var e=t.layer,i=t.layer.getOpacity();t.ignoreNextOpacityChange?t.ignoreNextOpacityChange=!1:(t.googleTileLayer.setOpacity(i),t.opacity=i,e.getVisible()&&this.googleMapsIsActive&&(t.ignoreNextOpacityChange=!0,t.layer.setOpacity(0)))},e.prototype.handleVisibleChange_=function(t){var e=t.layer.getVisible(),i=t.googleTileLayer,n=this.gmap.overlayMapTypes,r=n.getArray().indexOf(i);e?(-1==r&&n.push(i),this.activateCacheItem_(t)):(-1!=r&&n.removeAt(r),this.deactivateCacheItem_(t))},e.prototype.handleSourceChange_=function(t){t.googleTileLayer.changed("foo")},e}(at),Kt=i(746),Ut=i(654),Zt=i(639),Ht=i(848),qt=i(867),Jt=i(747),Qt=i(840),$t=i(863),te=i(841),ee=i(845),ie=i(838),ne=[156543.03390625,78271.516953125,39135.7584765625,19567.87923828125,9783.939619140625,4891.9698095703125,2445.9849047851562,1222.9924523925781,611.4962261962891,305.74811309814453,152.87405654907226,76.43702827453613,38.218514137268066,19.109257068634033,9.554628534317017,4.777314267158508,2.388657133579254,1.194328566789627,.5971642833948135,.298582141697,.14929107084,.07464553542,.03732276771];function re(t){return t instanceof Ut.a?t.getCoordinates():t instanceof Zt.a?t.getInteriorPoint().getCoordinates():Object(p.x)(t.getExtent())}function oe(t){var e="",i=null;return"string"===typeof t?le(t,"rgba")?i=ce(t):e=t:Array.isArray(t)&&(i=t),null!==i&&(e=["rgb(",i[0],",",i[1],",",i[2],")"].join("")),e}function ae(t){var e=null,i=null;return"string"===typeof t?le(t,"rgba")&&(i=ce(t)):Array.isArray(t)&&(i=t),i&&void 0!==i[3]&&(e=+i[3]),e}function se(t){var e=null;return t instanceof ie.b?e=t:t instanceof O.a||t instanceof ee.a?(e=t.getStyle())&&e instanceof Function&&(e=e()[0]):t instanceof Function&&(e=t()[0]),e}function ce(t){var e=null,i=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);return i&&i.length&&(e=[+i[1],+i[2],+i[3],+i[4]]),e}function le(t,e){return 0===t.indexOf(e)}var ue=function(t){function e(){t.call(this),this.drawn_=!1,this.height_=0,this.width_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.draw=function(){if(this.drawn_)this.redraw_();else{var t=this.canvas_;if(t){var e=t.getContext("2d"),i=e.canvas.height,n=e.canvas.width;this.width_=n,this.height_=i,this.redraw_()&&(this.drawn_=!0)}}},e.prototype.redraw_=function(){var t=this.get("position");if(!t)return!1;var e=this.getProjection();if(!e)return!1;var i=e.fromLatLngToDivPixel(t),n=this.height_,r=this.width_,o=this.get("offsetX")||0,a=this.get("offsetY")||0,s=this.canvas_.style;return s.top=i.y-n/2+a+"px",s.left=i.x-r/2+o+"px",s.visibility=this.getVisible_(),!0},e.prototype.getVisible_=function(){var t=this.get("minZoom"),e=this.get("maxZoom");if(void 0===t&&void 0===e)return"";var i=this.getMap();if(!i)return"";var n=i.getZoom();return n<t||n>e?"hidden":""},e.prototype.onRemove=function(){var t=this.canvas_;t&&t.parentNode&&t.parentNode.removeChild(t)},e}(window.google&&window.google.maps&&google.maps.OverlayView||Object),he=function(t){function e(e){t.call(this),this.set("font","normal 10px sans-serif"),this.set("textAlign","center"),this.set("textBaseline","middle"),this.set("zIndex",1e3),this.setValues(e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.changed=function(t){switch(t){case"fontColor":case"fontFamily":case"fontSize":case"fontWeight":case"strokeColor":case"strokeWeight":case"text":case"textAlign":case"textBaseline":this.drawCanvas_();break;case"maxZoom":case"minZoom":case"offsetX":case"offsetY":case"position":this.draw()}},e.prototype.drawCanvas_=function(){var t=this.canvas_;if(t){var e=t.style,i=this.get("fontColor");if(i){e.zIndex=this.get("zIndex");var n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.textBaseline=this.get("textBaseline"),n.strokeStyle=this.get("strokeColor"),n.fillStyle=i,n.font=this.get("font"),n.textAlign=this.get("textAlign");var r=this.get("text");if(r){var o=t.width/2,a=t.height/2,s=Number(this.get("strokeWeight"));s&&(n.lineWidth=s,n.strokeText(r,o,a)),n.fillText(r,o,a)}}}},e.prototype.onAdd=function(){var t=this.canvas_=document.createElement("canvas");t.style.position="absolute",t.getContext("2d").lineJoin="round",this.drawCanvas_();var e=this.getPanes();if(e){var i=this.get("olgm_pane");i&&(i=e[i]),i||(i=e.markerLayer),i.appendChild(t)}},e}(ue),pe=function(t){function e(e,i){t.call(this),this.imageStyle_=e,this.setValues(i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.changed=function(t){switch(t){case"maxZoom":case"minZoom":case"offsetX":case"offsetY":case"position":this.draw()}}
1,e.prototype.rotate_=function(t,e,i,n){return[i*t-n*e,i*e+n*t]},e.prototype.drawCanvas_=function(){var t=this.canvas_;if(t){var e=this.imageStyle_.getImage(1);if(e){t.style.zIndex=this.get("zIndex");var i=this.imageStyle_.getScale()||1,n=this.imageStyle_.getAnchor()||[0,0],r=this.imageStyle_.getRotation()||0,o=this.imageStyle_.getOpacity()||1,a=n[0]*i,s=n[1]*i,c=e.width*i*.5,l=e.height*i*.5;c+=Math.abs(c-a),l+=Math.abs(l-s);var u=Math.cos(r),h=Math.sin(r),p=this.rotate_(u,h,-c,-l),f=this.rotate_(u,h,+c,-l),d=this.rotate_(u,h,-c,+l),g=this.rotate_(u,h,+c,+l),_=Math.min(p[0],f[0],d[0],g[0]),y=Math.max(p[0],f[0],d[0],g[0]),v=Math.min(p[1],f[1],d[1],g[1]),m=Math.max(p[1],f[1],d[1],g[1]);t.width=Math.round(y-_),t.height=Math.round(m-v);var O=t.getContext("2d");O.clearRect(0,0,t.width,t.height);var b=t.width/2-a,x=t.height/2-s;O.translate(b+a,x+s),O.rotate(r),O.translate(-b-a,-x-s),O.globalAlpha=o,O.drawImage(e,b,x,e.width*i,e.height*i)}}},e.prototype.onAdd=function(){var t=this.canvas_=document.createElement("canvas");t.style.position="absolute",this.drawCanvas_();var e=this.getPanes();if(e){var i=this.get("olgm_pane");i&&(i=e[i]),i||(i=e.markerLayer),i.appendChild(t)}},e}(ue);function fe(t,e){var i=null;return t instanceof Ut.a?i=de(t,e):(t instanceof Jt.a||t instanceof Kt.a||t instanceof Ht.a||t instanceof Zt.a||t instanceof qt.a)&&(i=function(t,e){var i=void 0!==e?e.getView().getProjection():"EPSG:3857",n=null;if(t instanceof Kt.a){var r=ge(t.getCoordinates(),i);n=new google.maps.Data.LineString(r)}else if(t instanceof Zt.a){var o=ge(t.getCoordinates()[0],i);n=new google.maps.Data.Polygon([o])}else if(t instanceof Ht.a){var a=_e(t.getCoordinates(),i);n=new google.maps.Data.MultiLineString(a)}else if(t instanceof qt.a){var s=function(t,e){for(var i=[],n=0,r=t.length;n<r;n++){var o=_e(t[n].getCoordinates(),e),a=new google.maps.Data.Polygon(o);i.push(a)}return i}(t.getPolygons(),i);n=new google.maps.Data.MultiPolygon(s)}else if(t instanceof Jt.a){var c=ge(t.getCoordinates(),i);n=new google.maps.Data.MultiPoint(c)}return n}(t,e)),rt(null!==i,"Expected geometry to be module:ol/geom/Point|MultiPoint|LineString|MultiLineString|Polygon|MultiPolygon"),i}function de(t,e){var i,n=void 0!==e?e.getView().getProjection():"EPSG:3857";i=t instanceof Ut.a?t.getCoordinates():t;var r=Object(d.m)(i,n,"EPSG:4326");return new google.maps.LatLng(r[1],r[0])}function ge(t,e){for(var i,n=e||"EPSG:3857",r=[],o=0,a=t.length;o<a;o++)i=Object(d.m)(t[o],n,"EPSG:4326"),r.push(new google.maps.LatLng(i[1],i[0]));return r}function _e(t,e){for(var i=e||"EPSG:3857",n=[],r=0,o=t.length;r<o;r++)n.push(ge(t[r],i));return n}function ye(t,e,i){var n=null,r=se(t);return r&&(n=function(t,e,i){var n={},r=t.getStroke();if(r){var o=r.getColor();if(o){n.strokeColor=oe(o);var a=ae(o);null!==a&&(n.strokeOpacity=a)}var s=r.getWidth();s&&(n.strokeWeight=s)}var c=t.getFill();if(c){var l=c.getColor();if(l){n.fillColor=oe(l);var u=ae(l);null!==u&&(n.fillOpacity=u)}}var h=t.getImage();if(h){var p={},f={},d=void 0!==e.useCanvas&&e.useCanvas;if(h instanceof Qt.a||h instanceof te.a){if(h instanceof Qt.a)f.path=google.maps.SymbolPath.CIRCLE;else if(h instanceof te.a){var g="M ",_=h.getPoints(),y=h.getRadius(),v=void 0!==h.getRadius2()?h.getRadius2():h.getRadius(),m=h.getRotation()+h.getAngle();0==v&&void 0===h.getRadius2()&&(_/=2),v!==y&&(_*=2);for(var O=0;O<_;O++){var b=O%2==0?y:v,x=2*O*Math.PI/_-Math.PI/2+m,E=.1*b*Math.cos(x),j=.1*b*Math.sin(x);g+=E+","+j+" "}g+="Z",f.path=g}var C=h.getStroke();if(C){var w=C.getColor();w&&(f.strokeColor=oe(w)),f.strokeWeight=C.getWidth()}var S=h.getFill();if(S){var I=S.getColor();if(I){f.fillColor=oe(I);var R=ae(I);f.fillOpacity=null!==R?R:1}}var T=h.getRadius();T&&(f.scale=T)}else if(h instanceof $t.a&&!d){var P=h.getSrc();P&&(f.url=P);var L=h.getScale(),M=h.getAnchor();M&&(f.anchor=void 0!==L?new google.maps.Point(M[0]*L,M[1]*L):new google.maps.Point(M[0],M[1]));var A=h.getOrigin();A&&(f.origin=new google.maps.Point(A[0],A[1]));var F=h.getSize();F&&(f.size=new google.maps.Size(F[0],F[1]),void 0!==L&&(f.scaledSize=new google.maps.Size(F[0]*L,F[1]*L)))}Object.keys(p).length?n.icon=p:Object.keys(f).length&&(n.icon=f)}if(0===Object.keys(n).length)n.visible=!1;else if(void 0!==i){var D=2*i;n.zIndex=D}return n}(r,e,i)),n}var ve=function(t){function e(e,i,n){t.call(this,e,i),this.feature_=n.feature,this.featureListener_=null,this.data_=n.data,this.index_=n.index,this.mapIconOptions_=n.mapIconOptions,this.visible_=void 0===n.visible||n.visible,this.gmapFeature_=null,this.label_=null,this.marker_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.activate=function(){var e=this;t.prototype.activate.call(this),this.gmapFeature_=function(t,e){var i=fe(t.getGeometry(),e);
1return new google.maps.Data.Feature({geometry:i})}(this.feature_),this.visible_&&this.data_.add(this.gmapFeature_),this.updateStyle_(),this.featureListener_=new pt(this.feature_.on("change",(function(){return e.handleFeatureChange_()}))),this.listener=new ft(this.feature_,null,this.feature_.getGeometryName(),(function(t,i){return i&&e.handleGeometryChange_(),new pt(t.on("change",(function(){return e.handleGeometryChange_()})))}))},e.prototype.deactivate=function(){this.featureListener_&&this.featureListener_.unlisten(),this.data_.remove(this.gmapFeature_),this.gmapFeature_=null,this.marker_&&(this.marker_.setMap(null),this.marker_=null),this.label_&&(this.label_.setMap(null),this.label_=null),t.prototype.deactivate.call(this)},e.prototype.setVisible=function(t){t&&!this.visible_?(this.data_.add(this.gmapFeature_),this.marker_&&this.marker_.setMap(this.gmap),this.label_&&this.label_.setMap(this.gmap),this.visible_=!0):!t&&this.visible_&&(this.data_.remove(this.gmapFeature_),this.marker_&&this.marker_.setMap(null),this.label_&&this.label_.setMap(null),this.visible_=!1)},e.prototype.getGeometry_=function(){var t=this.feature_.getGeometry();return rt(void 0!==t,"Expected feature to have geometry"),t},e.prototype.handleGeometryChange_=function(){var t,e=this.getGeometry_();this.gmapFeature_.setGeometry(fe(e)),this.label_&&(t=de(re(e)),this.label_.set("position",t)),this.marker_&&(t=de(re(e)),this.marker_.set("position",t))},e.prototype.handleFeatureChange_=function(){this.updateStyle_()},e.prototype.updateStyle_=function(){var t={useCanvas:this.feature_.useCanvas||this.mapIconOptions_.useCanvas},e=ye(this.feature_,t,this.index_);this.data_.overrideStyle(this.gmapFeature_,e);var i=this.marker_,n=this.label_,r=se(this.feature_);if(r){var o=de(re(this.getGeometry_())),a=r.getZIndex(),s=void 0!==a?a:this.index_,c=r.getImage();c&&c instanceof $t.a&&t.useCanvas&&(this.marker_=function(t,e,i,n){return new pe(t,{align:"center",position:e,olgm_pane:n,zIndex:2*i+1})}(c,o,s,this.feature_.get("olgm_pane")),this.visible_&&this.marker_.setMap(this.gmap));var l=r.getText();l&&(this.label_=function(t,e,i,n){var r={align:"center",position:e,olgm_pane:n,zIndex:2*i+1},o=t.getText();o&&(r.text=o);var a=t.getFont();a&&(r.font=a);var s=t.getFill();if(s){var c=s.getColor();c&&(r.fontColor=c)}var l=t.getStroke();if(l){var u=l.getColor();u&&(r.strokeColor=u);var h=l.getWidth();h&&(r.strokeWeight=h)}var p=t.getOffsetX();p&&(r.offsetX=p);var f=t.getOffsetY();f&&(r.offsetY=f);var d=t.getTextAlign();d&&(r.textAlign=d);var g=t.getTextBaseline();return g&&(r.textBaseline=g),new he(r)}(l,o,s,this.feature_.get("olgm_pane")),this.visible_&&this.label_.setMap(this.gmap))}i&&i.setMap(null),n&&n.setMap(null)},e}(b),me=function(t){function e(e,i,n,r,o){t.call(this,e,i),this.features_=[],this.cache_=[],this.data_=r,this.source_=n,this.mapIconOptions_=o,this.visible_=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.activate=function(){var e=this;t.prototype.activate.call(this),this.source_.getFeatures().forEach((function(t){return e.watchFeature_(t)})),this.listener=new pt([this.source_.on("addfeature",(function(t){return e.handleAddFeature_(t)})),this.source_.on("removefeature",(function(t){return e.handleRemoveFeature_(t)}))])},e.prototype.deactivate=function(){var e=this;this.source_.getFeatures().forEach((function(t){return e.unwatchFeature_(t)})),t.prototype.deactivate.call(this)},e.prototype.setVisible=function(t){this.visible_=t;for(var e=0;e<this.cache_.length;e++)this.cache_[e].herald.setVisible(t)},e.prototype.handleAddFeature_=function(t){var e=t.feature;this.watchFeature_(e)},e.prototype.handleRemoveFeature_=function(t){var e=t.feature;this.unwatchFeature_(e)},e.prototype.watchFeature_=function(t){var e=this.ol3map,i=this.gmap,n=this.data_;this.features_.push(t);var r={feature:t,data:n,index:this.features_.indexOf(t),mapIconOptions:this.mapIconOptions_,visible:this.visible_},o=new ve(e,i,r);o.activate(),this.cache_.push({feature:t,herald:o})},e.prototype.unwatchFeature_=function(t){var e=this.features_.indexOf(t);-1!==e&&(this.features_.splice(e,1),this.cache_[e].herald.deactivate(),this.cache_.splice(e,1))},e}(b),Oe=function(t){function e(e,i,n){t.call(this,e,i),this.cache_=[],this.layers_=[],this.mapIconOptions_=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.watchLayer=function(t){var e=this,i=t,n=i.getSource();if(n&&!1!==i.get("olgmWatch")){this.layers_.push(i);var r=new google.maps.Data({map:this.gmap}),o=ye(i,this.mapIconOptions_);o&&r.setStyle(o);var a=new me(this.ol3map,this.gmap,n,r,this.mapIconOptions_),s=i.getOpacity(),c={data:r,herald:a,layer:i,listeners:[],opacity:s};c.listeners.push(new ft(this.ol3map,null,"view",(function(t,i){return[new ft(t,i,"resolution",(function(){return e.handleResolutionChange_(c)})),new ft(t,i,"visible",(function(){return e.handleVisibleChange_(c)}))]}))),this.activateCacheItem_(c),this.cache_.push(c)}},e.prototype.unwatchLayer=function(t){var e=t,i=this.layers_.indexOf(e);if(-1!==i){this.layers_.splice(i,1);var n=this.cache_[i];
1n.listeners.forEach((function(t){return t.unlisten()})),n.data.setMap(null),n.herald.deactivate(),e.setOpacity(n.opacity),this.cache_.splice(i,1)}},e.prototype.activate=function(){t.prototype.activate.call(this),this.cache_.forEach(this.activateCacheItem_,this)},e.prototype.activateCacheItem_=function(t){t.layer.getVisible()&&this.googleMapsIsActive&&(t.herald.activate(),t.layer.setOpacity(0))},e.prototype.deactivate=function(){t.prototype.deactivate.call(this),this.cache_.forEach(this.deactivateCacheItem_,this)},e.prototype.deactivateCacheItem_=function(t){t.herald.deactivate(),t.layer.setOpacity(t.opacity)},e.prototype.handleResolutionChange_=function(t){var e=t.layer,i=e.getMinResolution(),n=e.getMaxResolution(),r=this.ol3map.getView().getResolution();r<i||r>n?t.herald.setVisible(!1):t.herald.setVisible(!0)},e.prototype.handleVisibleChange_=function(t){t.layer.getVisible()?this.activateCacheItem_(t):this.deactivateCacheItem_(t)},e}(at);function be(t,e,i,n){for(var r,o=0,a=t.length;o<a;++o)if((r=t[o]).listener===e&&r.bindTo===i)return n&&(r.deleteIndex=o),r}function xe(t,e){var i=t.ol_lm;return i?i[e]:void 0}function Ee(t){var e=t.ol_lm;return e||(e=t.ol_lm={}),e}function je(t,e){var i=xe(t,e);if(i){for(var n=0,r=i.length;n<r;++n)t.removeEventListener(e,i[n].boundListener),ct(i[n]);i.length=0;var o=t.ol_lm;o&&(delete o[e],0===Object.keys(o).length&&delete t.ol_lm)}}function Ce(t,e,i,n,r){var o=Ee(t),a=o[e];a||(a=o[e]=[]);var s=be(a,i,n,!1);return s?r||(s.callOnce=!1):(s={bindTo:n,callOnce:!!r,listener:i,target:t,type:e},t.addEventListener(e,function(t){var e=function(e){var i=t.listener,n=t.bindTo||t.target;return t.callOnce&&we(t),i.call(n,e)};return t.boundListener=e,e}(s)),a.push(s)),s}function we(t){if(t&&t.target){t.target.removeEventListener(t.type,t.boundListener);var e=xe(t.target,t.type);if(e){var i="deleteIndex"in t?t.deleteIndex:e.indexOf(t);-1!==i&&e.splice(i,1),0===e.length&&je(t.target,t.type)}ct(t)}}var Se=function(t){function e(e,i){t.call(this,e,i),this.windowResizeTimerId_=null,this.windowListenerKey_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.activate=function(){var e=this;t.prototype.activate.call(this),this.ol3map.getView().setConstrainResolution(!0),this.listener=new ft(this.ol3map,null,"view",(function(t,i){return i&&(e.setRotation(),e.setZoomAndCenter()),new pt([t.on("change:center",(function(){return e.setCenter()})),t.on("change:resolution",(function(){return e.setZoomAndCenter()})),t.on("change:rotation",(function(){return e.setRotation()}))])})),this.windowListenerKey_=Ce(window,"resize",this.handleWindowResize_,this,!1),google.maps.event.addListenerOnce(this.gmap,"idle",(function(){e.setRotation(),e.setZoomAndCenter()}))},e.prototype.deactivate=function(){t.prototype.deactivate.call(this),this.ol3map.getView().setConstrainResolution(!1),we(this.windowListenerKey_)},e.prototype.setCenter=function(){var t=this.ol3map.getView(),e=t.getProjection(),i=t.getCenter();if(Array.isArray(i)){var n=Object(d.m)(i,e,"EPSG:4326"),r=n[0],o=n[1];this.gmap.setCenter(new google.maps.LatLng(o,r))}},e.prototype.setRotation=function(){for(var t,e=this.ol3map.getView().getRotation(),i=this.gmap.getDiv(),n=0;n<i.childNodes.length;n++){var r=i.childNodes[n];if("DIV"===r.nodeName){t=r;break}}var o=t.childNodes[0];if(o){var a=o.style;if(a.transform="rotate("+e+"rad)",!this.ol3map.getSize())return;var s=this.ol3map.getSize()[0],c=this.ol3map.getSize()[1];if(s!=c&&0!=e){var l=Math.max(s,c),u=i.style;u.width=l+"px",u.height=l+"px",this.ol3map.getTargetElement().style.overflow="hidden";var h=s-l,p=c-l;a.top=p/2+"px",a.left=h/2+"px",google.maps.event.trigger(this.gmap,"resize"),this.setZoomAndCenter();for(var f=t.childNodes,d=0;d<f.length;d++){var g=f[d].style;"0px"==g.bottom&&(g.bottom=Math.abs(p)+"px")}var _=this.ol3map.getViewport().style;"100%"==_.height&&(_.height=c+"px")}}},e.prototype.setZoomAndCenter=function(){var t=this.ol3map.getView().getResolution();if("number"===typeof t){var e=function(t,e){return(e=e||0)+Math.log(ne[0]/t)/Math.log(2)}(t,this.ol3map.getView().getMinZoom());this.gmap.setZoom(e)}this.setCenter()},e.prototype.handleWindowResize_=function(){this.windowResizeTimerId_&&window.clearTimeout(this.windowResizeTimerId_),this.windowResizeTimerId_=window.setTimeout(this.setCenterAfterResize_.bind(this),100)},e.prototype.setCenterAfterResize_=function(){this.setCenter(),this.windowResizeTimerId_=null},e}(b),Ie=i(850),Re=function(t){function e(e,i,n,r){var o=this;t.call(this,e,i),this.googleLayers_=[],this.googleCache_=[],this.imageWMSSourceHerald_=new dt(e,i),this.tileSourceHerald_=new Bt(e,i),this.vectorSourceHerald_=new Oe(e,i,n),this.viewHerald_=new Se(e,i),this.watchOptions_=r,this.gmapEl_=i.getDiv(),this.ol3mapEl_=e.getViewport(),this.targetEl_=e.getTargetElement(),this.googleMapsIsActive_=!1,this.ol3mapIsRenderered_=!1,this.ol3map.getView().getCenter()?this.ol3map.once("postrender",(function(){o.ol3mapIsRenderered_=!0,o.toggleGoogleMaps_()})):this.ol3map.getView().once("change:center",(function(){o.ol3map.once("postrender",(function(){o.ol3mapIsRenderered_=!0,o.toggleGoogleMaps_()})),o.toggleGoogleMaps_()}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.activate=function(){var e=this;t.prototype.activate.call(this),this.listener=new ft(this.ol3map,null,"layergroup",(function(t,i){return new ft(t,i,"layers",(function(t,i){return i&&i.forEac
1h((function(t){return e.unwatchLayer_(t)})),t.forEach((function(t){return e.watchLayer_(t)})),new pt([t.on("add",(function(t){return e.handleLayersAdd_(t)})),t.on("remove",(function(t){return e.handleLayersRemove_(t)}))])}))}))},e.prototype.deactivate=function(){var e=this;this.ol3map.getLayers().forEach((function(t){return e.unwatchLayer_(t)})),t.prototype.deactivate.call(this)},e.prototype.getGoogleMapsActive=function(){return this.googleMapsIsActive_},e.prototype.setGoogleMapsActive_=function(t){this.googleMapsIsActive_=t,this.imageWMSSourceHerald_.setGoogleMapsActive(t),this.tileSourceHerald_.setGoogleMapsActive(t),this.vectorSourceHerald_.setGoogleMapsActive(t)},e.prototype.setWatchOptions=function(t){this.watchOptions_=t,this.deactivate(),this.activate()},e.prototype.handleLayersAdd_=function(t){var e=t.element;this.watchLayer_(e),this.orderLayers()},e.prototype.handleLayersRemove_=function(t){var e=t.element;this.unwatchLayer_(e),this.orderLayers()},e.prototype.watchLayer_=function(t){t instanceof Ie.a?this.watchGoogleLayer_(t):t instanceof O.a&&!1!==this.watchOptions_.vector?this.vectorSourceHerald_.watchLayer(t):t instanceof m.a&&!1!==this.watchOptions_.tile?this.tileSourceHerald_.watchLayer(t):t instanceof v&&!1!==this.watchOptions_.image&&this.imageWMSSourceHerald_.watchLayer(t)},e.prototype.watchGoogleLayer_=function(t){var e=this;this.googleLayers_.push(t),this.googleCache_.push({layer:t,listener:new ft(t,null,"visible",(function(){return e.toggleGoogleMaps_()}))})},e.prototype.unwatchLayer_=function(t){t instanceof Ie.a?this.unwatchGoogleLayer_(t):t instanceof O.a?this.vectorSourceHerald_.unwatchLayer(t):t instanceof m.a?this.tileSourceHerald_.unwatchLayer(t):t instanceof v&&this.imageWMSSourceHerald_.unwatchLayer(t)},e.prototype.unwatchGoogleLayer_=function(t){var e=this.googleLayers_.indexOf(t);-1!==e&&(this.googleLayers_.splice(e,1),this.googleCache_[e].listener.unlisten(),this.googleCache_.splice(e,1),this.toggleGoogleMaps_())},e.prototype.activateGoogleMaps_=function(){var t=this.ol3map.getView().getCenter();if(!this.googleMapsIsActive_&&this.ol3mapIsRenderered_&&t){this.targetEl_.removeChild(this.ol3mapEl_),this.targetEl_.appendChild(this.gmapEl_);var e=parseInt(google.maps.ControlPosition.TOP_LEFT,10);this.gmap.controls[e].push(this.ol3mapEl_),this.viewHerald_.activate(),google.maps.event.trigger(this.gmap,"resize"),this.viewHerald_.setRotation(),this.viewHerald_.setZoomAndCenter(),this.setGoogleMapsActive_(!0),this.imageWMSSourceHerald_.activate(),this.tileSourceHerald_.activate(),this.vectorSourceHerald_.activate(),this.orderLayers()}},e.prototype.deactivateGoogleMaps_=function(){if(this.googleMapsIsActive_){var t=parseInt(google.maps.ControlPosition.TOP_LEFT,10);this.gmap.controls[t].removeAt(0),this.targetEl_.removeChild(this.gmapEl_),this.targetEl_.appendChild(this.ol3mapEl_),this.viewHerald_.deactivate(),this.ol3mapEl_.style.position="relative",this.imageWMSSourceHerald_.deactivate(),this.tileSourceHerald_.deactivate(),this.vectorSourceHerald_.deactivate(),this.setGoogleMapsActive_(!1)}},e.prototype.toggleGoogleMaps_=function(){var t=null;if(this.ol3map.getLayers().getArray().slice(0).reverse().every((function(e){return!(e instanceof Ie.a&&e.getVisible()&&-1!==this.googleLayers_.indexOf(e))||(t=e,!1)}),this),t){this.activateGoogleMaps_(),this.gmap.setMapTypeId(t.getMapTypeId());var e=t.getStyles();e?this.gmap.setOptions({styles:e}):this.gmap.setOptions({styles:null})}else this.deactivateGoogleMaps_()},e.prototype.orderLayers=function(){this.imageWMSSourceHerald_.orderLayers(),this.tileSourceHerald_.orderLayers()},e.prototype.refresh=function(){this.imageWMSSourceHerald_.refresh()},e}(b),Te=function(t){function e(e){var i=document.createElement("div");i.style.height="inherit",i.style.width="inherit";var n=st({disableDefaultUI:!0,disableDoubleClickZoom:!0,draggable:!1,keyboardShortcuts:!1,mapTypeId:google.maps.MapTypeId.ROADMAP,scrollwheel:!1,streetViewControl:!1},e.gmapOptions),r=new google.maps.Map(i,n);t.call(this,e.map,r),this.heralds_=[];var o=void 0!==e.watch?e.watch:{},a=void 0!==e.mapIconOptions?e.mapIconOptions:{};this.layersHerald_=new Re(this.ol3map,this.gmap,a,o),this.heralds_.push(this.layersHerald_),this.active_=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.activate=function(){if(!this.active_){for(var t=0,e=this.heralds_.length;t<e;t++)this.heralds_[t].activate();this.active_=!0}},e.prototype.deactivate=function(){if(this.active_){for(var t=0,e=this.heralds_.length;t<e;t++)this.heralds_[t].deactivate();this.active_=!1}},e.prototype.getGoogleMapsActive=function(){return this.active_&&this.layersHerald_.getGoogleMapsActive()},e.prototype.getGoogleMapsMap=function(){return this.gmap},e.prototype.setWatchOptions=function(t){var e=void 0!==t?t:{};this.layersHerald_.setWatchOptions(e)},e.prototype.toggle=function(){this.active_?this.deactivate():this.activate()},e.prototype.orderLayers=function(){this.layersHerald_.orderLayers()},e.prototype.refresh=function(){this.layersHerald_.refresh()},e}(r);e.a=Te}
1,1064:function(t,e,i){"use strict";var n=i(593),r=i(581),o=i(602),a=i(686),s="center",c="resolution",l="rotation",u=i(750),h=i(576),p=i(588),f=i(618),d=i(577),g=i(572),_=i(573);function y(t,e,i){return function(n,r,o,a,s){if(n){var c=e?0:o[0]*r,l=e?0:o[1]*r,u=s?s[0]:0,h=s?s[1]:0,p=t[0]+c/2+u,f=t[2]-c/2+u,d=t[1]+l/2+h,g=t[3]-l/2+h;p>f&&(f=p=(f+p)/2),d>g&&(g=d=(g+d)/2);var y=Object(_.a)(n[0],p,f),v=Object(_.a)(n[1],d,g),m=30*r;return a&&i&&(y+=-m*Math.log(1+Math.max(0,p-n[0])/m)+m*Math.log(1+Math.max(0,n[0]-f)/m),v+=-m*Math.log(1+Math.max(0,d-n[1])/m)+m*Math.log(1+Math.max(0,n[1]-g)/m)),[y,v]}}}function v(t){return t}var m=i(567),O=i(578);function b(t,e,i,n){var r=Object(m.F)(e)/i[0],o=Object(m.A)(e)/i[1];return n?Math.min(t,Math.max(r,o)):Math.min(t,Math.min(r,o))}function x(t,e,i){var n=Math.min(t,e);return n*=Math.log(1+50*Math.max(0,t/e-1))/50+1,i&&(n=Math.max(n,i),n/=Math.log(1+50*Math.max(0,i/t-1))/50+1),Object(_.a)(n,i/2,2*e)}function E(t,e,i,n,r){return function(o,a,s,c){if(void 0!==o){var l=n?b(t,n,s,r):t;return(void 0===i||i)&&c?x(o,l,e):Object(_.a)(o,e,l)}}}var j=i(749),C=i(612),w=i(639),S=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),I=function(t){function e(e){var i=t.call(this)||this,n=Object(g.a)({},e);return i.hints_=[0,0],i.animations_=[],i.updateAnimationKey_,i.projection_=Object(h.b)(n.projection,"EPSG:3857"),i.viewportSize_=[100,100],i.targetCenter_=null,i.targetResolution_,i.targetRotation_,i.cancelAnchor_=void 0,n.center&&(n.center=Object(h.d)(n.center,i.projection_)),n.extent&&(n.extent=Object(h.e)(n.extent,i.projection_)),i.applyOptions_(n),i}return S(e,t),e.prototype.applyOptions_=function(t){var e=function(t){var e,i,n,r=void 0!==t.minZoom?t.minZoom:0,a=void 0!==t.maxZoom?t.maxZoom:28,s=void 0!==t.zoomFactor?t.zoomFactor:2,c=void 0!==t.multiWorld&&t.multiWorld,l=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,p=void 0!==t.showFullExtent&&t.showFullExtent,f=Object(h.b)(t.projection,"EPSG:3857"),d=f.getExtent(),g=t.constrainOnlyCenter,y=t.extent;c||y||!f.isGlobal()||(g=!1,y=d);if(void 0!==t.resolutions){var v=t.resolutions;i=v[r],n=void 0!==v[a]?v[a]:v[v.length-1],e=t.constrainResolution?function(t,e,i,n){return function(r,o,a,s){if(void 0!==r){var c=t[0],l=t[t.length-1],u=i?b(c,i,a,n):c;if(s)return void 0===e||e?x(r,u,l):Object(_.a)(r,l,u);var h=Math.min(u,r),p=Math.floor(Object(O.e)(t,h,o));return t[p]>u&&p<t.length-1?t[p+1]:t[p]}}}(v,l,!g&&y,p):E(i,n,l,!g&&y,p)}else{var j=(d?Math.max(Object(m.F)(d),Object(m.A)(d)):360*h.a[o.b.DEGREES]/f.getMetersPerUnit())/u.b/Math.pow(2,0),C=j/Math.pow(2,28);void 0!==(i=t.maxResolution)?r=0:i=j/Math.pow(s,r),void 0===(n=t.minResolution)&&(n=void 0!==t.maxZoom?void 0!==t.maxResolution?i/Math.pow(s,a):j/Math.pow(s,a):C),a=r+Math.floor(Math.log(i/n)/Math.log(s)),n=i/Math.pow(s,a-r),e=t.constrainResolution?function(t,e,i,n,r,o){return function(a,s,c,l){if(void 0!==a){var u=r?b(e,r,c,o):e,h=void 0!==i?i:0;if(l)return void 0===n||n?x(a,u,h):Object(_.a)(a,h,u);var p=Math.ceil(Math.log(e/u)/Math.log(t)-1e-9),f=-s*(.5-1e-9)+.5,d=Math.min(u,a),g=Math.floor(Math.log(e/d)/Math.log(t)+f),y=Math.max(p,g),v=e/Math.pow(t,y);return Object(_.a)(v,h,u)}}}(s,i,n,l,!g&&y,p):E(i,n,l,!g&&y,p)}return{constraint:e,maxResolution:i,minResolution:n,minZoom:r,zoomFactor:s}}(t);this.maxResolution_=e.maxResolution,this.minResolution_=e.minResolution,this.zoomFactor_=e.zoomFactor,this.resolutions_=t.resolutions,this.padding=t.padding,this.minZoom_=e.minZoom;var i=function(t){if(void 0!==t.extent){var e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return y(t.extent,t.constrainOnlyCenter,e)}var i=Object(h.b)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&i.isGlobal()){var n=i.getExtent().slice();
1return n[0]=-1/0,n[2]=1/0,y(n,!1,!1)}return v}(t),n=e.constraint,r=function(t){if(void 0===t.enableRotation||t.enableRotation){var e=t.constrainRotation;return void 0===e||!0===e?Object(j.b)():!1===e?j.d:"number"===typeof e?Object(j.a)(e):j.d}return j.c}(t);this.constraints_={center:i,resolution:n,rotation:r},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom),this.setProperties({}),this.options_=t},e.prototype.getUpdatedOptions_=function(t){var e=Object(g.a)({},this.options_);return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object(g.a)({},e,t)},e.prototype.animate=function(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var e=new Array(arguments.length),i=0;i<e.length;++i){var n=arguments[i];n.center&&((n=Object(g.a)({},n)).center=Object(h.d)(n.center,this.getProjection())),n.anchor&&((n=Object(g.a)({},n)).anchor=Object(h.d)(n.anchor,this.getProjection())),e[i]=n}this.animateInternal.apply(this,e)},e.prototype.animateInternal=function(t){var e,i=arguments.length;if(i>1&&"function"===typeof arguments[i-1]&&(e=arguments[i-1],--i),!this.isDef()){var n=arguments[i-1];return n.center&&this.setCenterInternal(n.center),void 0!==n.zoom&&this.setZoom(n.zoom),void 0!==n.rotation&&this.setRotation(n.rotation),void(e&&R(e,!0))}for(var r=Date.now(),o=this.targetCenter_.slice(),s=this.targetResolution_,c=this.targetRotation_,l=[],u=0;u<i;++u){var h=arguments[u],p={start:r,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||C.c,callback:e};if(h.center&&(p.sourceCenter=o,p.targetCenter=h.center.slice(),o=p.targetCenter),void 0!==h.zoom?(p.sourceResolution=s,p.targetResolution=this.getResolutionForZoom(h.zoom),s=p.targetResolution):h.resolution&&(p.sourceResolution=s,p.targetResolution=h.resolution,s=p.targetResolution),void 0!==h.rotation){p.sourceRotation=c;var f=Object(_.e)(h.rotation-c+Math.PI,2*Math.PI)-Math.PI;p.targetRotation=c+f,c=p.targetRotation}T(p)?p.complete=!0:r+=p.duration,l.push(p)}this.animations_.push(l),this.setHint(a.a.ANIMATING,1),this.updateAnimations_()},e.prototype.getAnimating=function(){return this.hints_[a.a.ANIMATING]>0},e.prototype.getInteracting=function(){return this.hints_[a.a.INTERACTING]>0},e.prototype.cancelAnimations=function(){var t;this.setHint(a.a.ANIMATING,-this.hints_[a.a.ANIMATING]);for(var e=0,i=this.animations_.length;e<i;++e){var n=this.animations_[e];if(n[0].callback&&R(n[0].callback,!1),!t)for(var r=0,o=n.length;r<o;++r){var s=n[r];if(!s.complete){t=s.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t},e.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var t=Date.now(),e=!1,i=this.animations_.length-1;i>=0;--i){for(var n=this.animations_[i],r=!0,o=0,s=n.length;o<s;++o){var c=n[o];if(!c.complete){var l=t-c.start,u=c.duration>0?l/c.duration:1;u>=1?(c.complete=!0,u=1):r=!1;var h=c.easing(u);if(c.sourceCenter){var p=c.sourceCenter[0],f=c.sourceCenter[1],d=p+h*(c.targetCenter[0]-p),g=f+h*(c.targetCenter[1]-f);this.targetCenter_=[d,g]}if(c.sourceResolution&&c.targetResolution){var y=1===h?c.targetResolution:c.sourceResolution+h*(c.targetResolution-c.sourceResolution);if(c.anchor){var v=this.getViewportSize_(this.getRotation()),m=this.constraints_.resolution(y,0,v,!0);this.targetCenter_=this.calculateCenterZoom(m,c.anchor)}this.targetResolution_=y,this.applyTargetState_(!0)}if(void 0!==c.sourceRotation&&void 0!==c.targetRotation){var O=1===h?Object(_.e)(c.targetRotation+Math.PI,2*Math.PI)-Math.PI:c.sourceRotation+h*(c.targetRotation-c.sourceRotation);if(c.anchor){var b=this.constraints_.rotation(O,!0);this.targetCenter_=this.calculateCenterRotate(b,c.anchor)}this.targetRotation_=O}if(this.applyTargetState_(!0),e=!0,!c.complete)break}}if(r){this.animations_[i]=null,this.setHint(a.a.ANIMATING,-1);var x=n[0].callback;x&&R(x,!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 i,n=this.getCenterInternal();
1return void 0!==n&&(i=[n[0]-e[0],n[1]-e[1]],Object(f.d)(i,t-this.getRotation()),Object(f.a)(i,e)),i},e.prototype.calculateCenterZoom=function(t,e){var i,n=this.getCenterInternal(),r=this.getResolution();void 0!==n&&void 0!==r&&(i=[e[0]-t*(e[0]-n[0])/r,e[1]-t*(e[1]-n[1])/r]);return i},e.prototype.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var i=e[0],n=e[1];return[Math.abs(i*Math.cos(t))+Math.abs(n*Math.sin(t)),Math.abs(i*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?Object(h.k)(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(s)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.options_.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 Object(h.l)(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getViewportSize_(),i=this.getCenterInternal();Object(d.a)(i,1);var n=this.getResolution();Object(d.a)(void 0!==n,2);var r=this.getRotation();return Object(d.a)(void 0!==r,3),Object(m.z)(i,n,r,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(c)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal(Object(h.e)(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var i=e||this.getViewportSize_(),n=Object(m.F)(t)/i[0],r=Object(m.A)(t)/i[1];return Math.max(n,r)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,i=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,r=Math.log(i/n)/Math.log(e);return function(t){return i/Math.pow(e,t*r)}},e.prototype.getRotation=function(){return this.get(l)},e.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,r=Math.log(i/n)/e;return function(t){return Math.log(i/t)/e/r}},e.prototype.getViewportSizeMinusPadding_=function(t){var e=this.getViewportSize_(t),i=this.padding;return i&&(e=[e[0]-i[1]-i[3],e[1]-i[0]-i[2]]),e},e.prototype.getState=function(){var t=this.getProjection(),e=this.getResolution(),i=this.getRotation(),n=this.getCenterInternal(),r=this.padding;if(r){var o=this.getViewportSizeMinusPadding_();n=P(n,this.getViewportSize_(),[o[0]/2+r[3],o[1]/2+r[0]],e,i)}return{center:n.slice(0),projection:void 0!==t?t:null,resolution:e,rotation:i,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,i,n=this.minZoom_||0;if(this.resolutions_){var r=Object(O.e)(this.resolutions_,t,1);n=r,e=this.resolutions_[r],i=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,i=this.zoomFactor_;return n+Math.log(e/t)/Math.log(i)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=Object(_.a)(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(i,Object(_.a)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}
1,e.prototype.fit=function(t,e){var i;if(Object(d.a)(Array.isArray(t)||"function"===typeof t.getSimplifiedGeometry,24),Array.isArray(t)){Object(d.a)(!Object(m.I)(t),25);var n=Object(h.e)(t,this.getProjection());i=Object(w.b)(n)}else if(t.getType()===r.a.CIRCLE){n=Object(h.e)(t.getExtent(),this.getProjection());(i=Object(w.b)(n)).rotate(this.getRotation(),Object(m.x)(n))}else{var o=Object(h.j)();i=o?t.clone().transform(o,this.getProjection()):t}this.fitInternal(i,e)},e.prototype.fitInternal=function(t,e){var i=e||{},n=i.size;n||(n=this.getViewportSizeMinusPadding_());var r,o=void 0!==i.padding?i.padding:[0,0,0,0],a=void 0!==i.nearest&&i.nearest;r=void 0!==i.minResolution?i.minResolution:void 0!==i.maxZoom?this.getResolutionForZoom(i.maxZoom):0;for(var s=t.getFlatCoordinates(),c=this.getRotation(),l=Math.cos(-c),u=Math.sin(-c),h=1/0,f=1/0,d=-1/0,g=-1/0,_=t.getStride(),y=0,v=s.length;y<v;y+=_){var m=s[y]*l-s[y+1]*u,O=s[y]*u+s[y+1]*l;h=Math.min(h,m),f=Math.min(f,O),d=Math.max(d,m),g=Math.max(g,O)}var b=this.getResolutionForExtentInternal([h,f,d,g],[n[0]-o[1]-o[3],n[1]-o[0]-o[2]]);b=isNaN(b)?r:Math.max(b,r),b=this.getConstrainedResolution(b,a?0:1),u=-u;var x=(h+d)/2,E=(f+g)/2,j=(x+=(o[1]-o[3])/2*b)*l-(E+=(o[0]-o[2])/2*b)*u,C=E*l+x*u,w=this.getConstrainedCenter([j,C],b),S=i.callback?i.callback:p.c;void 0!==i.duration?this.animateInternal({resolution:b,center:w,duration:i.duration,easing:i.easing},S):(this.targetResolution_=b,this.targetCenter_=w,this.applyTargetState_(!1,!0),R(S,!0))},e.prototype.centerOn=function(t,e,i){this.centerOnInternal(Object(h.d)(t,this.getProjection()),e,i)},e.prototype.centerOnInternal=function(t,e,i){this.setCenterInternal(P(t,e,i,this.getResolution(),this.getRotation()))},e.prototype.calculateCenterShift=function(t,e,i,n){var r,o=this.padding;if(o&&t){var a=this.getViewportSizeMinusPadding_(-i),s=P(t,n,[a[0]/2+o[3],a[1]/2+o[0]],e,i);r=[t[0]-s[0],t[1]-s[1]]}return r},e.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},e.prototype.adjustCenter=function(t){var e=Object(h.k)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustCenterInternal=function(t){var e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustResolution=function(t,e){var i=e&&Object(h.d)(e,this.getProjection());this.adjustResolutionInternal(t,i)},e.prototype.adjustResolutionInternal=function(t,e){var i=this.getAnimating()||this.getInteracting(),n=this.getViewportSize_(this.getRotation()),r=this.constraints_.resolution(this.targetResolution_*t,0,n,i);e&&(this.targetCenter_=this.calculateCenterZoom(r,e)),this.targetResolution_*=t,this.applyTargetState_()},e.prototype.adjustZoom=function(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)},e.prototype.adjustRotation=function(t,e){e&&(e=Object(h.d)(e,this.getProjection())),this.adjustRotationInternal(t,e)},e.prototype.adjustRotationInternal=function(t,e){var i=this.getAnimating()||this.getInteracting(),n=this.constraints_.rotation(this.targetRotation_+t,i);e&&(this.targetCenter_=this.calculateCenterRotate(n,e)),this.targetRotation_+=t,this.applyTargetState_()},e.prototype.setCenter=function(t){this.setCenterInternal(Object(h.d)(t,this.getProjection()))},e.prototype.setCenterInternal=function(t){this.targetCenter_=t,this.applyTargetState_()},e.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},e.prototype.setResolution=function(t){this.targetResolution_=t,this.applyTargetState_()},e.prototype.setRotation=function(t){this.targetRotation_=t,this.applyTargetState_()},e.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},e.prototype.applyTargetState_=function(t,e){var i=this.getAnimating()||this.getInteracting()||e,n=this.constraints_.rotation(this.targetRotation_,i),r=this.getViewportSize_(n),o=this.constraints_.resolution(this.targetResolution_,0,r,i),a=this.constraints_.center(this.targetCenter_,o,r,i,this.calculateCenterShift(this.targetCenter_,o,n,r));this.get(l)!==n&&this.set(l,n),this.get(c)!==o&&this.set(c,o),this.get(s)&&Object(f.b)(this.get(s),a)||this.set(s,a),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0}
1,e.prototype.resolveConstraints=function(t,e,i){var n=void 0!==t?t:200,r=e||0,o=this.constraints_.rotation(this.targetRotation_),a=this.getViewportSize_(o),s=this.constraints_.resolution(this.targetResolution_,r,a),c=this.constraints_.center(this.targetCenter_,s,a,!1,this.calculateCenterShift(this.targetCenter_,s,o,a));if(0===n&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=o,this.targetCenter_=c,void this.applyTargetState_();var l=i||(0===n?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===o&&this.getCenterInternal()&&Object(f.b)(this.getCenterInternal(),c)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:c,resolution:s,duration:n,easing:C.b,anchor:l}))},e.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(a.a.INTERACTING,1)},e.prototype.endInteraction=function(t,e,i){var n=i&&Object(h.d)(i,this.getProjection());this.endInteractionInternal(t,e,n)},e.prototype.endInteractionInternal=function(t,e,i){this.setHint(a.a.INTERACTING,-1),this.resolveConstraints(t,e,i)},e.prototype.getConstrainedCenter=function(t,e){var i=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),i)},e.prototype.getConstrainedZoom=function(t,e){var i=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(i,e))},e.prototype.getConstrainedResolution=function(t,e){var i=e||0,n=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,i,n)},e}(n.a);function R(t,e){setTimeout((function(){t(e)}),0)}function T(t){return!(t.sourceCenter&&t.targetCenter&&!Object(f.b)(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}function P(t,e,i,n,r){var o=Math.cos(-r),a=Math.sin(-r),s=t[0]*o-t[1]*a,c=t[1]*o+t[0]*a;return[(s+=(e[0]/2-i[0])*n)*o-(c+=(i[1]-e[1]/2)*n)*(a=-a),c*o+s*a]}e.a=I},1082:function(t,e,i){"use strict";var n=i(839),r=i(834),o=i(634),a=function(){function t(t){var e=t||{};this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.scaleArray_=Object(o.c)(void 0!==e.scale?e.scale:1),this.text_=e.text,this.textAlign_=e.textAlign,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new n.a({color:"#333"}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:r.a.POINT,this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding}return t.prototype.clone=function(){var e=this.getScale();return new t({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()})},t.prototype.getOverflow=function(){return this.overflow_},t.prototype.getFont=function(){return this.font_},t.prototype.getMaxAngle=function(){return this.maxAngle_},t.prototype.getPlacement=function(){return this.placement_},t.prototype.getOffsetX=function(){return this.offsetX_},t.prototype.getOffsetY=function(){return this.offsetY_},t.prototype.getFill=function(){return this.fill_},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.getStroke=function(){return this.stroke_},t.prototype.getText=function(){return this.text_},t.prototype.getTextAlign=function(){return this.textAlign_},t.prototype.getTextBaseline=function(){return this.textBaseline_}
1,t.prototype.getBackgroundFill=function(){return this.backgroundFill_},t.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},t.prototype.getPadding=function(){return this.padding_},t.prototype.setOverflow=function(t){this.overflow_=t},t.prototype.setFont=function(t){this.font_=t},t.prototype.setMaxAngle=function(t){this.maxAngle_=t},t.prototype.setOffsetX=function(t){this.offsetX_=t},t.prototype.setOffsetY=function(t){this.offsetY_=t},t.prototype.setPlacement=function(t){this.placement_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setFill=function(t){this.fill_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=Object(o.c)(void 0!==t?t:1)},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.setText=function(t){this.text_=t},t.prototype.setTextAlign=function(t){this.textAlign_=t},t.prototype.setTextBaseline=function(t){this.textBaseline_=t},t.prototype.setBackgroundFill=function(t){this.backgroundFill_=t},t.prototype.setBackgroundStroke=function(t){this.backgroundStroke_=t},t.prototype.setPadding=function(t){this.padding_=t},t}();e.a=a},1091:function(t,e,i){"use strict";var n=i(743),r=i(588),o=i(571),a=i(595),s=i(567),c=i(832),l=i(637),u=i(618),h=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function p(t,e){c.a.expire()}var f=function(t){function e(e){var i=t.call(this)||this;return i.map_=e,i}return h(e,t),e.prototype.dispatchRenderEvent=function(t,e){Object(o.b)()},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,i=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;Object(a.b)(i,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Object(a.d)(n,i)},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,r,o,a,c){var h,p=e.viewState;function f(t,e,i,n){return r.call(o,e,t?i:null,n)}var d=p.projection,g=Object(u.f)(t.slice(),d),_=[[0,0]];if(d.canWrapX()&&n){var y=d.getExtent(),v=Object(s.F)(y);_.push([-v,0],[v,0])}for(var m=e.layerStatesArray,O=m.length,b=[],x=[],E=0;E<_.length;E++)for(var j=O-1;j>=0;--j){var C=m[j],w=C.layer;if(w.hasRenderer()&&Object(l.b)(C,p)&&a.call(c,w)){var S=w.getRenderer(),I=w.getSource();if(S&&I){var R=I.getWrapX()?g:t,T=f.bind(null,C.managed);x[0]=R[0]+_[E][0],x[1]=R[1]+_[E][1],h=S.forEachFeatureAtCoordinate(x,e,i,T,b)}if(h)return h}}if(0!==b.length){var P=1/b.length;return b.forEach((function(t,e){return t.distanceSq+=e*P})),b.sort((function(t,e){return t.distanceSq-e.distanceSq})),b.some((function(t){return h=t.callback(t.feature,t.layer,t.geometry)})),h}},e.prototype.forEachLayerAtPixel=function(t,e,i,n,r){return Object(o.b)()},e.prototype.hasFeatureAtCoordinate=function(t,e,i,n,o,a){return void 0!==this.forEachFeatureAtCoordinate(t,e,i,n,r.b,this,o,a)},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){Object(o.b)()},e.prototype.scheduleExpireIconCache=function(t){c.a.canExpireCache()&&t.postRenderFunctions.push(p)},e}(n.a),d=i(651),g=i(836),_=i(688),y=i(636),v=i(652),m=i(596),O=i(589),b=i(592),x=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),E=function(t){function e(e){var i=t.call(this,e)||this;i.fontChangeListenerKey_=Object(O.a)(m.a,d.a.PROPERTYCHANGE,e.redrawText.bind(e)),i.element_=document.createElement("div");var n=i.element_.style;n.position="absolute",n.width="100%",n.height="100%",n.zIndex="0",i.element_.className=v.d+" ol-layers";var r=e.getViewport();return r.insertBefore(i.element_,r.firstChild||null),i.children_=[],i.renderedVisible_=!0,i}return x(e,t),e.prototype.dispatchRenderEvent=function(t,e){var i=this.getMap();if(i.hasListener(t)){var n=new g.a(t,void 0,e);i.dispatchEvent(n)}},e.prototype.disposeInternal=function(){Object(O.c)(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(_.a.PRECOMPOSE,t);var e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),i=t.viewState;this.children_.length=0;for(var n=[],r=null,o=0,a=e.length;o<a;++o){var s=e[o];if(t.layerIndex=o,Object(l.b)(s,i)&&(s.sourceState==y.a.READY||s.sourceState==y.a.UNDEFINED)){var c=s.layer,u=c.render(t,r);u&&(u!==r&&(this.children_.push(u),r=u),"getDeclutter"in c&&n.push(c))}}for(o=n.length-1;o>=0;--o)n[o].renderDeclutter(t);Object(b.d)(this.element_,this.children_),this.dispatchRenderEvent(_.a.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)}
1,e.prototype.forEachLayerAtPixel=function(t,e,i,n,r){for(var o=e.viewState,a=e.layerStatesArray,s=a.length-1;s>=0;--s){var c=a[s],u=c.layer;if(u.hasRenderer()&&Object(l.b)(c,o)&&r(u)){var h=u.getRenderer().getDataAtPixel(t,e,i);if(h){var p=n(u,h);if(p)return p}}}},e}(f),j=i(593),C=i(653),w=i(689),S=i(570),I=i(843),R=i(577),T=i(572),P=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),L="layers",M=function(t){function e(e){var i=this,n=e||{},r=Object(T.a)({},n);delete r.layers;var o=n.layers;return(i=t.call(this,r)||this).layersListenerKeys_=[],i.listenerKeys_={},i.addEventListener(Object(j.b)(L),i.handleLayersChanged_),o?Array.isArray(o)?o=new C.a(o.slice(),{unique:!0}):Object(R.a)("function"===typeof o.getArray,43):o=new C.a(void 0,{unique:!0}),i.setLayers(o),i}return P(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(O.c),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push(Object(O.a)(t,w.a.ADD,this.handleLayersAdd_,this),Object(O.a)(t,w.a.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(O.c);Object(T.b)(this.listenerKeys_);for(var i=t.getArray(),n=0,r=i.length;n<r;n++){var a=i[n];this.listenerKeys_[Object(o.c)(a)]=[Object(O.a)(a,d.a.PROPERTYCHANGE,this.handleLayerChange_,this),Object(O.a)(a,S.a.CHANGE,this.handleLayerChange_,this)]}this.changed()},e.prototype.handleLayersAdd_=function(t){var e=t.element;this.listenerKeys_[Object(o.c)(e)]=[Object(O.a)(e,d.a.PROPERTYCHANGE,this.handleLayerChange_,this),Object(O.a)(e,S.a.CHANGE,this.handleLayerChange_,this)],this.changed()},e.prototype.handleLayersRemove_=function(t){var e=t.element,i=Object(o.c)(e);this.listenerKeys_[i].forEach(O.c),delete this.listenerKeys_[i],this.changed()},e.prototype.getLayers=function(){return this.get(L)},e.prototype.setLayers=function(t){this.set(L,t)},e.prototype.getLayersArray=function(t){var e=void 0!==t?t:[];return this.getLayers().forEach((function(t){t.getLayersArray(e)})),e},e.prototype.getLayerStatesArray=function(t){var e=void 0!==t?t:[],i=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));for(var n=this.getLayerState(),r=i,o=e.length;r<o;r++){var a=e[r];a.opacity*=n.opacity,a.visible=a.visible&&n.visible,a.maxResolution=Math.min(a.maxResolution,n.maxResolution),a.minResolution=Math.max(a.minResolution,n.minResolution),a.minZoom=Math.max(a.minZoom,n.minZoom),a.maxZoom=Math.min(a.maxZoom,n.maxZoom),void 0!==n.extent&&(void 0!==a.extent?a.extent=Object(s.B)(a.extent,n.extent):a.extent=n.extent)}return e},e.prototype.getSourceState=function(){return y.a.READY},e}(I.a),A=i(603),F=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),D=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r.map=i,r.frameState=void 0!==n?n:null,r}return F(e,t),e}(A.a),k=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),G=function(t){function e(e,i,n,r,o){var a=t.call(this,e,i,o)||this;return a.originalEvent=n,a.pixel_=null,a.coordinate_=null,a.dragging=void 0!==r&&r,a}return k(e,t),Object.defineProperty(e.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(t){this.pixel_=t}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(t){this.coordinate_=t},enumerable:!1,configurable:!0}),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){t.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()},e}(D),N=i(632),z=i(656),Y="pointermove",W="pointerdown",X=i(608),V=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),B=function(t){function e(e,i){var n=t.call(this,e)||this;n.map_=e,n.clickTimeoutId_,n.emulateClicks_=!1,n.dragging_=!1,n.dragListenerKeys_=[],n.moveTolerance_=i?i*X.a:X.a,n.down_=null;var r=n.map_.getViewport();return n.activePointers_=0,n.trackedTouches_={},n.element_=r,n.pointerdownListenerKey_=Object(O.a)(r,W,n.handlePointerDown_,n),n.originalPointerMoveEvent_,n.relayedListenerKey_=Object(O.a)(r,Y,n.relayEvent_,n),n.boundHandleTouchMove_=n.handleTouchMove_.bind(n),n.element_.addEventListener(S.a.TOUCHMOVE,n.boundHandleTouchMove_,!!X.e&&{passive:!1}),n}return V(e,t),e.prototype.emulateClick_=function(t){var e=new G(z.a.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new G(z.a.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new G(z.a.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t;e.type==z.a.POINTERUP||e.type==z.a.POINTERCANCEL?delete this.trackedTouches_[e.pointerId]:e.type==z.a.POINTERDOWN&&(this.trackedTouches_[e.pointerId]=!0),this.activePointers_=Object.keys(this.trackedTouches_).length},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new G(z.a.POINTERUP,this.map_,t);this.dispatchEvent(e),this.emulateClicks_&&!e.propagationStopped&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_&&(this.dragListenerKeys_.forEach(O.c),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},e.prototype.isMouseActionButton_=function(t){return 0===t.button},e.prototype.handlePointerDown_=function(t){this.emulateClicks_=0===this.activePointers_,this.updateActivePointers_(t);var e=new G(z.a.POINTERDOWN,this.map_,t);if(this.dispatchEvent(e),this.down_=t,0===this.dragListenerKeys_.length){var i=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Object(O.a)(i,z.a.POINTERMOVE,this.handlePointerMove_,this),Object(O.a)(i,z.a.POINTERUP,this.handlePointerUp_,this),Object(O.a)(this.element_,z.a.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==i&&this.dragListenerKeys_.push(Object(O.a)(this.element_.getRootNode(),z.a.POINTERUP,this.handlePointerUp_,this))}},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.dragging_=!0;var e=new G(z.a.POINTERDRAG,this.map_,t,this.dragging_);this.dispatchEvent(e)}},e.prototype.relayEvent_=function(t){this.originalPointerMoveEvent_=t;var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new G(t.type,this.map_,t,e))},e.prototype.handleTouchMove_=function(t){this.originalPointerMoveEvent_&&!this.originalPointerMoveEvent_.defaultPrevented||t.preventDefault()},e.prototype.isMoving_=function(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(O.c)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(S.a.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Object(O.c)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(O.c),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(N.a),K="postrender",U="movestart",Z="moveend",H="layergroup",q="size",J="target",Q="view",$=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,Object(T.b)(this.queuedElements_)},t.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,i=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_(i);return delete this.queuedElements_[n],i},t.prototype.enqueue=function(t){Object(R.a)(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);
1return e!=1/0&&(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_,i=this.priorities_,n=e.length,r=e[t],o=i[t],a=t;t<n>>1;){var s=this.getLeftChildIndex_(t),c=this.getRightChildIndex_(t),l=c<n&&i[c]<i[s]?c:s;e[t]=e[l],i[t]=i[l],t=l}e[t]=r,i[t]=o,this.siftDown_(a,t)},t.prototype.siftDown_=function(t,e){for(var i=this.elements_,n=this.priorities_,r=i[e],o=n[e];e>t;){var a=this.getParentIndex_(e);if(!(n[a]>o))break;i[e]=i[a],n[e]=n[a],e=a}i[e]=r,n[e]=o},t.prototype.reprioritize=function(){var t,e,i,n=this.priorityFunction_,r=this.elements_,o=this.priorities_,a=0,s=r.length;for(e=0;e<s;++e)(i=n(t=r[e]))==1/0?delete this.queuedElements_[this.keyFunction_(t)]:(o[a]=i,r[a++]=t);r.length=a,o.length=a,this.heapify_()},t}(),tt=i(611),et=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),it=function(t){function e(e,i){var n=t.call(this,(function(t){return e.apply(null,t)}),(function(t){return t[0].getKey()}))||this;return n.boundHandleTileChange_=n.handleTileChange.bind(n),n.tileChangeCallback_=i,n.tilesLoading_=0,n.tilesLoadingKeys_={},n}return et(e,t),e.prototype.enqueue=function(e){var i=t.prototype.enqueue.call(this,e);i&&e[0].addEventListener(S.a.CHANGE,this.boundHandleTileChange_);return i},e.prototype.getTilesLoading=function(){return this.tilesLoading_},e.prototype.handleTileChange=function(t){var e=t.target,i=e.getState();if(e.hifi&&i===tt.a.LOADED||i===tt.a.ERROR||i===tt.a.EMPTY){e.removeEventListener(S.a.CHANGE,this.boundHandleTileChange_);var n=e.getKey();n in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[n],--this.tilesLoading_),this.tileChangeCallback_()}},e.prototype.loadMoreTiles=function(t,e){for(var i,n,r=0;this.tilesLoading_<t&&r<e&&this.getCount()>0;)n=(i=this.dequeue()[0]).getKey(),i.getState()!==tt.a.IDLE||n in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[n]=!0,++this.tilesLoading_,++r,i.load())},e}($);var nt=i(1064),rt=i(686),ot=i(576),at=i(634),st=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();var ct=function(t){function e(e){var i=t.call(this)||this,n=function(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"===typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var i,n,r,o={},a=t.layers&&"function"===typeof t.layers.getLayers?t.layers:new M({layers:t.layers});o[H]=a,o[J]=t.target,o[Q]=void 0!==t.view?t.view:new nt.a,void 0!==t.controls&&(Array.isArray(t.controls)?i=new C.a(t.controls.slice()):(Object(R.a)("function"===typeof t.controls.getArray,47),i=t.controls));void 0!==t.interactions&&(Array.isArray(t.interactions)?n=new C.a(t.interactions.slice()):(Object(R.a)("function"===typeof t.interactions.getArray,48),n=t.interactions));void 0!==t.overlays?Array.isArray(t.overlays)?r=new C.a(t.overlays.slice()):(Object(R.a)("function"===typeof t.overlays.getArray,49),r=t.overlays):r=new C.a;return{controls:i,interactions:n,keyboardEventTarget:e,overlays:r,values:o}}(e);return i.boundHandleBrowserEvent_=i.handleBrowserEvent.bind(i),i.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,i.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:X.a,i.postRenderTimeoutHandle_,i.animationDelayKey_,i.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(i),i.coordinateToPixelTransform_=Object(a.c)(),i.pixelToCoordinateTransform_=Object(a.c)(),i.frameIndex_=0,i.frameState_=null,i.previousExtent_=null,i.viewPropertyListenerKey_=null,i.viewChangeListenerKey_=null,i.layerGroupPropertyListenerKeys_=null,i.viewport_=document.createElement("div"),i.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),i.viewport_.style.position="relative",i.viewport_.style.overflow="hidden",i.viewport_.style.width="100%",i.viewport_.style.height="100%",i.overlayContainer_=document.createElement("div"),i.overlayContainer_.style.position="absolute",i.overlayContainer_.style.zIndex="0",i.overlayContainer_.style.width="100%",i.overlayContainer_.style.height="100%",i.overlayContainer_.style.pointerEvents="none",i.overlayContainer_.className="ol-overlaycontainer",i.viewport_.appendChild(i.overlayContainer_),i.overlayContainerStopEvent_=document.createElement("div"),i.overlayContainerStopEvent_.style.position="absolute",i.overlayContainerStopEvent_.style.zIndex="0",i.overlayContainerStopEvent_.style.width="100%",i.overlayContainerStopEvent_.style.height="100%",i.overlayContainerStopEvent_.style.pointerEvents="none",i.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",i.viewport_.appendChild(i.overlayContainerStopEvent_),i.mapBrowserEventHandler_=null,i.moveTolerance_=e.moveTolerance,i.keyboardEventTarget_=n.keyboardEventTarget,i.keyHandlerKeys_=null,i.controls=n.controls||new C.a,i.interactions=n.interactions||new C.a,i.overlays_=n.overlays,i.overlayIdIndex_
1={},i.renderer_=null,i.handleResize_,i.postRenderFunctions_=[],i.tileQueue_=new it(i.getTilePriority.bind(i),i.handleTileChange_.bind(i)),i.addEventListener(Object(j.b)(H),i.handleLayerGroupChanged_),i.addEventListener(Object(j.b)(Q),i.handleViewChanged_),i.addEventListener(Object(j.b)(q),i.handleSizeChanged_),i.addEventListener(Object(j.b)(J),i.handleTargetChanged_),i.setProperties(n.values),i.controls.forEach(function(t){t.setMap(this)}.bind(i)),i.controls.addEventListener(w.a.ADD,function(t){t.element.setMap(this)}.bind(i)),i.controls.addEventListener(w.a.REMOVE,function(t){t.element.setMap(null)}.bind(i)),i.interactions.forEach(function(t){t.setMap(this)}.bind(i)),i.interactions.addEventListener(w.a.ADD,function(t){t.element.setMap(this)}.bind(i)),i.interactions.addEventListener(w.a.REMOVE,function(t){t.element.setMap(null)}.bind(i)),i.overlays_.forEach(i.addOverlayInternal_.bind(i)),i.overlays_.addEventListener(w.a.ADD,function(t){this.addOverlayInternal_(t.element)}.bind(i)),i.overlays_.addEventListener(w.a.REMOVE,function(t){var e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)}.bind(i)),i}return st(e,t),e.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},e.prototype.addControl=function(t){this.getControls().push(t)},e.prototype.addInteraction=function(t){this.getInteractions().push(t)},e.prototype.addLayer=function(t){this.getLayerGroup().getLayers().push(t)},e.prototype.addOverlay=function(t){this.getOverlays().push(t)},e.prototype.addOverlayInternal_=function(t){var e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)},e.prototype.disposeInternal=function(){this.setTarget(null),t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtPixel=function(t,e,i){if(this.frameState_){var n=this.getCoordinateFromPixelInternal(t),o=void 0!==(i=void 0!==i?i:{}).hitTolerance?i.hitTolerance:0,a=void 0!==i.layerFilter?i.layerFilter:r.b,s=!1!==i.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,o,s,e,null,a,null)}},e.prototype.getFeaturesAtPixel=function(t,e){var i=[];return this.forEachFeatureAtPixel(t,(function(t){i.push(t)}),e),i},e.prototype.forEachLayerAtPixel=function(t,e,i){if(this.frameState_){var n=i||{},o=void 0!==n.hitTolerance?n.hitTolerance:0,a=n.layerFilter||r.b;return this.renderer_.forEachLayerAtPixel(t,this.frameState_,o,e,a)}},e.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_)return!1;var i=this.getCoordinateFromPixelInternal(t),n=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:r.b,o=void 0!==e.hitTolerance?e.hitTolerance:0,a=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,o,a,n,null)},e.prototype.getEventCoordinate=function(t){return this.getCoordinateFromPixel(this.getEventPixel(t))},e.prototype.getEventCoordinateInternal=function(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))},e.prototype.getEventPixel=function(t){var e=this.viewport_.getBoundingClientRect(),i="changedTouches"in t?t.changedTouches[0]:t;return[i.clientX-e.left,i.clientY-e.top]},e.prototype.getTarget=function(){return this.get(J)},e.prototype.getTargetElement=function(){var t=this.getTarget();return void 0!==t?"string"===typeof t?document.getElementById(t):t:null},e.prototype.getCoordinateFromPixel=function(t){return Object(ot.k)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())},e.prototype.getCoordinateFromPixelInternal=function(t){var e=this.frameState_;return e?Object(a.a)(e.pixelToCoordinateTransform,t.slice()):null},e.prototype.getControls=function(){return this.controls},e.prototype.getOverlays=function(){return this.overlays_},e.prototype.getOverlayById=function(t){var e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getInteractions=function(){return this.interactions},e.prototype.getLayerGroup=function(){return this.get(H)},e.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},e.prototype.getLoading=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,i=t.length;e<i;++e){var n=t[e].layer.getSource();if(n&&n.loading)return!0}return!1}
1,e.prototype.getPixelFromCoordinate=function(t){var e=Object(ot.d)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)},e.prototype.getPixelFromCoordinateInternal=function(t){var e=this.frameState_;return e?Object(a.a)(e.coordinateToPixelTransform,t.slice(0,2)):null},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.getSize=function(){return this.get(q)},e.prototype.getView=function(){return this.get(Q)},e.prototype.getViewport=function(){return this.viewport_},e.prototype.getOverlayContainer=function(){return this.overlayContainer_},e.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},e.prototype.getOwnerDocument=function(){return this.getTargetElement()?this.getTargetElement().ownerDocument:document},e.prototype.getTilePriority=function(t,e,i,n){return function(t,e,i,n,r){if(!t||!(i in t.wantedTiles))return 1/0;if(!t.wantedTiles[i][e.getKey()])return 1/0;var o=t.viewState.center,a=n[0]-o[0],s=n[1]-o[1];return 65536*Math.log(r)+Math.sqrt(a*a+s*s)/r}(this.frameState_,t,e,i,n)},e.prototype.handleBrowserEvent=function(t,e){var i=e||t.type,n=new G(i,this,t);this.handleMapBrowserEvent(n)},e.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){var e=t.originalEvent,i=e.type;if(i===W||i===S.a.WHEEL||i===S.a.KEYDOWN){var n=this.getOwnerDocument(),r=this.viewport_.getRootNode?this.viewport_.getRootNode():n,o="host"in r?r.elementFromPoint(e.clientX,e.clientY):e.target;if(this.overlayContainerStopEvent_.contains(o)||!(r===n?n.documentElement:r).contains(o))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t))for(var a=this.getInteractions().getArray().slice(),s=a.length-1;s>=0;s--){var c=a[s];if(c.getMap()===this&&c.getActive()&&this.getTargetElement())if(!c.handleEvent(t)||t.propagationStopped)break}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var i=this.maxTilesLoading_,n=i;if(t){var r=t.viewHints;if(r[rt.a.ANIMATING]||r[rt.a.INTERACTING]){var o=!X.c&&Date.now()-t.time>8;i=o?0:8,n=o?0:2}}e.getTilesLoading()<i&&(e.reprioritize(),e.loadMoreTiles(i,n))}!t||!this.hasListener(_.a.RENDERCOMPLETE)||t.animate||this.tileQueue_.getTilesLoading()||this.getLoading()||this.renderer_.dispatchRenderEvent(_.a.RENDERCOMPLETE,t);for(var a=this.postRenderFunctions_,s=0,c=a.length;s<c;++s)a[s](this,t);a.length=0},e.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},e.prototype.handleTargetChanged_=function(){var t;if(this.getTarget()&&(t=this.getTargetElement()),this.mapBrowserEventHandler_){for(var e=0,i=this.keyHandlerKeys_.length;e<i;++e)Object(O.c)(this.keyHandlerKeys_[e]);this.keyHandlerKeys_=null,this.viewport_.removeEventListener(S.a.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(S.a.WHEEL,this.boundHandleBrowserEvent_),void 0!==this.handleResize_&&(removeEventListener(S.a.RESIZE,this.handleResize_,!1),this.handleResize_=void 0),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,Object(b.c)(this.viewport_)}if(t){for(var n in t.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new B(this,this.moveTolerance_),z.a)this.mapBrowserEventHandler_.addEventListener(z.a[n],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(S.a.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(S.a.WHEEL,this.boundHandleBrowserEvent_,!!X.e&&{passive:!1});var r=this.keyboardEventTarget_?this.keyboardEventTarget_:t;this.keyHandlerKeys_=[Object(O.a)(r,S.a.KEYDOWN,this.handleBrowserEvent,this),Object(O.a)(r,S.a.KEYPRESS,this.handleBrowserEvent,this)],this.handleResize_||(this.handleResize_=this.updateSize.bind(this),window.addEventListener(S.a.RESIZE,this.handleResize_,!1))}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()},e.prototype.handleTileChange_=function(){this.render()},e.prototype.handleViewPropertyChanged_=function(){this.render()},e.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(Object(O.c)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Object(O.c)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=Object(O.a)(t,d.a.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Object(O.a)(t,S.a.CHANGE,this.handleViewPropertyChanged_,this),t.resolve
1Constraints(0)),this.render()},e.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(O.c),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.layerGroupPropertyListenerKeys_=[Object(O.a)(t,d.a.PROPERTYCHANGE,this.render,this),Object(O.a)(t,S.a.CHANGE,this.render,this)]),this.render()},e.prototype.isRendered=function(){return!!this.frameState_},e.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},e.prototype.redrawText=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,i=t.length;e<i;++e){var n=t[e].layer;n.hasRenderer()&&n.getRenderer().handleFontsChanged()}},e.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},e.prototype.removeControl=function(t){return this.getControls().remove(t)},e.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},e.prototype.removeLayer=function(t){return this.getLayerGroup().getLayers().remove(t)},e.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},e.prototype.renderFrame_=function(t){var e=this,i=this.getSize(),n=this.getView(),r=this.frameState_,o=null;if(void 0!==i&&Object(at.a)(i)&&n&&n.isDef()){var a=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),c=n.getState();o={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:Object(s.z)(c.center,c.resolution,c.rotation,i),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:i,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:c,viewHints:a,wantedTiles:{}}}if(this.frameState_=o,this.renderer_.renderFrame(o),o){if(o.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,o.postRenderFunctions),r)(!this.previousExtent_||!Object(s.I)(this.previousExtent_)&&!Object(s.p)(o.extent,this.previousExtent_))&&(this.dispatchEvent(new D(U,this,r)),this.previousExtent_=Object(s.l)(this.previousExtent_));this.previousExtent_&&!o.viewHints[rt.a.ANIMATING]&&!o.viewHints[rt.a.INTERACTING]&&!Object(s.p)(o.extent,this.previousExtent_)&&(this.dispatchEvent(new D(Z,this,o)),Object(s.d)(o.extent,this.previousExtent_))}this.dispatchEvent(new D(K,this,o)),this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((function(){e.postRenderTimeoutHandle_=void 0,e.handlePostRender()}),0))},e.prototype.setLayerGroup=function(t){this.set(H,t)},e.prototype.setSize=function(t){this.set(q,t)},e.prototype.setTarget=function(t){this.set(J,t)},e.prototype.setView=function(t){this.set(Q,t)},e.prototype.updateSize=function(){var t=this.getTargetElement();if(t){var e=getComputedStyle(t);this.setSize([t.offsetWidth-parseFloat(e.borderLeftWidth)-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)-parseFloat(e.borderRightWidth),t.offsetHeight-parseFloat(e.borderTopWidth)-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom)-parseFloat(e.borderBottomWidth)])}else this.setSize(void 0);this.updateViewportSize_()},e.prototype.updateViewportSize_=function(){var t=this.getView();if(t){var e=void 0,i=getComputedStyle(this.viewport_);i.width&&i.height&&(e=[parseInt(i.width,10),parseInt(i.height,10)]),t.setViewportSize(e)}},e}(j.a),lt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ut=function(t){function e(e){var i=t.call(this)||this,n=e.element;return!n||e.target||n.style.pointerEvents||(n.style.pointerEvents="auto"),i.element=n||null,i.target_=null,i.map_=null,i.listenerKeys=[],e.render&&(i.render=e.render),e.target&&i.setTarget(e.target),i}return lt(e,t),e.prototype.disposeInternal=function(){Object(b.c)(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_}
1,e.prototype.setMap=function(t){this.map_&&Object(b.c)(this.element);for(var e=0,i=this.listenerKeys.length;e<i;++e)Object(O.c)(this.listenerKeys[e]);(this.listenerKeys.length=0,this.map_=t,this.map_)&&((this.target_?this.target_:t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==r.c&&this.listenerKeys.push(Object(O.a)(t,K,this.render,this)),t.render())},e.prototype.render=function(t){},e.prototype.setTarget=function(t){this.target_="string"===typeof t?document.getElementById(t):t},e}(j.a),ht=i(578),pt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ft=function(t){function e(e){var i=this,n=e||{};(i=t.call(this,{element:document.createElement("div"),render:n.render,target:n.target})||this).ulElement_=document.createElement("ul"),i.collapsed_=void 0===n.collapsed||n.collapsed,i.userCollapsed_=i.collapsed_,i.overrideCollapsible_=void 0!==n.collapsible,i.collapsible_=void 0===n.collapsible||n.collapsible,i.collapsible_||(i.collapsed_=!1);var r=void 0!==n.className?n.className:"ol-attribution",o=void 0!==n.tipLabel?n.tipLabel:"Attributions",a=void 0!==n.expandClassName?n.expandClassName:r+"-expand",s=void 0!==n.collapseLabel?n.collapseLabel:"\xbb",c=void 0!==n.collapseClassName?n.collapseClassName:r+"-collpase";"string"===typeof s?(i.collapseLabel_=document.createElement("span"),i.collapseLabel_.textContent=s,i.collapseLabel_.className=c):i.collapseLabel_=s;var l=void 0!==n.label?n.label:"i";"string"===typeof l?(i.label_=document.createElement("span"),i.label_.textContent=l,i.label_.className=a):i.label_=l;var u=i.collapsible_&&!i.collapsed_?i.collapseLabel_:i.label_,h=document.createElement("button");h.setAttribute("type","button"),h.title=o,h.appendChild(u),h.addEventListener(S.a.CLICK,i.handleClick_.bind(i),!1);var p=r+" "+v.d+" "+v.b+(i.collapsed_&&i.collapsible_?" "+v.a:"")+(i.collapsible_?"":" ol-uncollapsible"),f=i.element;return f.className=p,f.appendChild(i.ulElement_),f.appendChild(h),i.renderedAttributions_=[],i.renderedVisible_=!0,i}return pt(e,t),e.prototype.collectSourceAttributions_=function(t){for(var e={},i=[],n=!0,r=t.layerStatesArray,o=0,a=r.length;o<a;++o){var s=r[o];if(Object(l.b)(s,t.viewState)){var c=s.layer.getSource();if(c){var u=c.getAttributions();if(u){var h=u(t);if(h)if(n=n&&!1!==c.getAttributionsCollapsible(),Array.isArray(h))for(var p=0,f=h.length;p<f;++p)h[p]in e||(i.push(h[p]),e[h[p]]=!0);else h in e||(i.push(h),e[h]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(n),i},e.prototype.updateElement_=function(t){if(t){var e=this.collectSourceAttributions_(t),i=e.length>0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!Object(ht.b)(e,this.renderedAttributions_)){Object(b.b)(this.ulElement_);for(var n=0,r=e.length;n<r;++n){var o=document.createElement("li");o.innerHTML=e[n],this.ulElement_.appendChild(o)}this.renderedAttributions_=e}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_},e.prototype.handleToggle_=function(){this.element.classList.toggle(v.a),this.collapsed_?Object(b.e)(this.collapseLabel_,this.label_):Object(b.e)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.render=function(t){this.updateElement_(t.frameState)},e}(ut),dt=i(612),gt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),_t=function(t){function e(e){var i=this,n=e||{};i=t.call(this,{element:document.createElement("div"),render:n.render,target:n.target})||this;var r=void 0!==n.className?n.className:"ol-rotate",o=void 0!==n.label?n.label:"\u21e7",a=void 0!==n.compassClassName?n.compassClassName:"ol-compass";i.label_=null,"string"===typeof o?(i.label_=document.createElement("span"),i.label_.className=a,i.label_.textContent=o):(i.label_=o,i.label_.classList.add(a));var s=n.tipLabel?n.tipLabel:"Reset rotation",c=document.createElement("button");c.className=r+"-reset",c.setAttribute("type","button"),c.title=s,c.appendChild(i.label_),c.addEventListener(S.a.CLICK,i.handleClick_.bind(i),!1);var l=r+" "+v.d+" "+v.b,u=i.element;return u.className=l,u.appendChild(c),i.callResetNorth_=n.resetNorth?n.resetNorth:void 0,i.duration_=void 0!==n.duration?n.duration:250,i.autoHide_=void 0===n.autoHide||n.autoHide,i.rotation_=void 0,i.autoHide_&&i.element.classList.add(v.c),i}return gt(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},e.prototype.resetNorth_=function(){var t=this.getMap().getView();if(t){var e=t.getRotation();void 0!==e&&(this.duration_>0&&e%(2*Math.PI)!==0?t.animate({rotation:0,duration:this.duration_,easing:dt.b}):t.setRotation(0))}},e.prototype.render=function(t){var e=t.frameState;if(e){var i=e.viewState.rotation;if(i!=this.rotation_){var n="rotate("+i+"rad)";if(this.autoHide_){var r=this.element.classList.contains(v.c);r||0!==i?r&&0!==i&&this.element.classList.remove(v.c):this.element.classList.add(v.c)}this.label_.style.transform=n}this.rotation_=i}},e}(ut),yt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),vt=function(t){function e(e){var i=this,n=e||{};i=t.call(this,{element:document.createElement("div"),target:n.target})||this;var r=void 0!==n.className?n.className:"ol-zoom",o=void 0!==n.delta?n.delta:1,a=void 0!==n.zoomInClassName?n.zoomInClassName:r+"-in",s=void 0!==n.zoomOutClassName?n.zoomOutClassName:r+"-out",c=void 0!==n.zoomInLabel?n.zoomInLabel:"+",l=void 0!==n.zoomOutLabel?n.zoomOutLabel:"\u2212",u=void 0!==n.zoomInTipLabel?n.zoomInTipLabel:"Zoom in",h=void 0!==n.zoomOutTipLabel?n.zoomOutTipLabel:"Zoom out",p=document.createElement("button");p.className=a,p.setAttribute("type","button"),p.title=u,p.appendChild("string"===typeof c?document.createTextNode(c):c),p.addEventListener(S.a.CLICK,i.handleClick_.bind(i,o),!1);var f=document.createElement("button");f.className=s,f.setAttribute("type","button"),f.title=h,f.appendChild("string"===typeof l?document.createTextNode(l):l),f.addEventListener(S.a.CLICK,i.handleClick_.bind(i,-o),!1);var d=r+" "+v.d+" "+v.b,g=i.element;return g.className=d,g.appendChild(p),g.appendChild(f),i.duration_=void 0!==n.duration?n.duration:250,i}return yt(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 i=e.getZoom();if(void 0!==i){var n=e.getConstrainedZoom(i+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:n,duration:this.duration_,easing:dt.b})):e.setZoom(n)}}},e}(ut);var mt=i(856),Ot=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),bt=function(t){function e(e){return(e=Object(T.a)({},e)).controls||(e.controls=function(t){var e=t||{},i=new C.a;return(void 0===e.zoom||e.zoom)&&i.push(new vt(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&i.push(new _t(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&i.push(new ft(e.attributionOptions)),i}
1()),e.interactions||(e.interactions=Object(mt.a)({onFocusOnly:!0})),t.call(this,e)||this}return Ot(e,t),e.prototype.createRenderer=function(){return new E(this)},e}(ct);e.a=bt},1092:function(t,e,i){"use strict";var n=i(653),r=i(689),o=i(603),a=i(570),s=i(651),c=i(837),l=i.n(c),u=i(567),h=i(571),p=i(572),f=function(){function t(t){this.rbush_=new l.a(t),this.items_={}}return t.prototype.insert=function(t,e){var i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(i),this.items_[Object(h.c)(e)]=i},t.prototype.load=function(t,e){for(var i=new Array(e.length),n=0,r=e.length;n<r;n++){var o=t[n],a=e[n],s={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:a};i[n]=s,this.items_[Object(h.c)(a)]=s}this.rbush_.load(i)},t.prototype.remove=function(t){var e=Object(h.c)(t),i=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(i)},t.prototype.update=function(t,e){var i=this.items_[Object(h.c)(e)],n=[i.minX,i.minY,i.maxX,i.maxY];Object(u.p)(n,t)||(this.remove(e),this.insert(t,e))},t.prototype.getAll=function(){return this.rbush_.all().map((function(t){return t.value}))},t.prototype.getInExtent=function(t){var e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this.rbush_.search(e).map((function(t){return t.value}))},t.prototype.forEach=function(t){return this.forEach_(this.getAll(),t)},t.prototype.forEachInExtent=function(t,e){return this.forEach_(this.getInExtent(t),e)},t.prototype.forEach_=function(t,e){for(var i,n=0,r=t.length;n<r;n++)if(i=e(t[n]))return i;return i},t.prototype.isEmpty=function(){return Object(p.d)(this.items_)},t.prototype.clear=function(){this.rbush_.clear(),this.items_={}},t.prototype.getExtent=function(t){var e=this.rbush_.toJSON();return Object(u.k)(e.minX,e.minY,e.maxX,e.maxY,t)},t.prototype.concat=function(t){for(var e in this.rbush_.load(t.rbush_.all()),t.items_)this.items_[e]=t.items_[e]},t}(),d=i(745),g=i(636),_="addfeature",y="changefeature",v="clear",m="removefeature",O="featuresloadstart",b="featuresloadend",x="featuresloaderror",E=i(588);function j(t,e){return[[-1/0,-1/0,1/0,1/0]]}var C=i(577),w=i(578),S=i(589),I=i(844),R=!1;function T(t,e){return function(i,n,r,o,a){var s=this;!function(t,e,i,n,r,o,a){var s=new XMLHttpRequest;s.open("GET","function"===typeof t?t(i,n,r):t,!0),e.getType()==I.a.ARRAY_BUFFER&&(s.responseType="arraybuffer"),s.withCredentials=R,s.onload=function(t){if(!s.status||s.status>=200&&s.status<300){var n=e.getType(),c=void 0;n==I.a.JSON||n==I.a.TEXT?c=s.responseText:n==I.a.XML?(c=s.responseXML)||(c=(new DOMParser).parseFromString(s.responseText,"application/xml")):n==I.a.ARRAY_BUFFER&&(c=s.response),c?o(e.readFeatures(c,{extent:i,featureProjection:r}),e.readProjection(c)):a()}else a()},s.onerror=a,s.send()}(t,e,i,n,r,(function(t,e){void 0!==o&&o(t),s.addFeatures(t)}),a||E.c)}}var P=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),L=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r.feature=i,r.features=n,r}return P(e,t),e}(o.a),M=function(t){function e(e){var i=this,r=e||{};(i=t.call(this,{attributions:r.attributions,projection:void 0,state:g.a.READY,wrapX:void 0===r.wrapX||r.wrapX})||this).loader_=E.c,i.format_=r.format,i.overlaps_=void 0===r.overlaps||r.overlaps,i.url_=r.url,void 0!==r.loader?i.loader_=r.loader:void 0!==i.url_&&(Object(C.a)(i.format_,7),i.loader_=T(i.url_,i.format_)),i.strategy_=void 0!==r.strategy?r.strategy:j;var o,a,s=void 0===r.useSpatialIndex||r.useSpatialIndex;return i.featuresRtree_=s?new f:null,i.loadedExtentsRtree_=new f,i.nullGeometryFeatures_={},i.idIndex_={},i.uidIndex_={},i.featureChangeKeys_={},i.featuresCollection_=null,Array.isArray(r.features)?a=r.features:r.features&&(a=(o=r.features).getArray()),s||void 0!==o||(o=new n.a(a)),void 0!==a&&i.addFeaturesInternal(a),void 0!==o&&i.bindFeaturesCollection_(o),i}return P(e,t),e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var e=Object(h.c)(t);if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var i=t.getGeometry();if(i){var n=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(n,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new L(_,t))}else this.featuresCollection_&&this.featuresCollection_.remove(t)},e.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[Object(S.a)(e,a.a.CHANGE,this.handleFeatureChange_,this),Object(S.a)(e,s.a.PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,e){var i=!0,n=e.getId();return void 0!==n&&(n.toString()in this.idIndex_?i=!1:this.idIndex_[n.toString()]=e),i&&(Object(C.a)(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),i},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var e=[],i=[],n=[],r=0,o=t.length;r<o;r++){var a=t[r],s=Object(h.c)(a);this.addToIndex_(s,a)&&i.push(a)}r=0;for(var c=i.length;r<c;r++){a=i[r],s=Object(h.c)(a);this.setupChangeEvents_(s,a);var l=a.getGeometry();if(l){var u=l.getExtent();e.push(u),n.push(a)}else this.nullGeometryFeatures_[s]=a}this.featuresRtree_&&this.featuresRtree_.load(e,n);r=0;for(var p=i.length;r<p;r++)this.dispatchEvent(new L(_,i[r]))},e.prototype.bindFeaturesCollection_=function(t){var e=!1;this.addEventListener(_,(function(i){e||(e=!0,t.push(i.feature),e=!1)})),this.addEventListener(m,(function(i){e||(e=!0,t.remove(i.feature),e=!1)})),t.addEventListener(r.a.ADD,function(t){e||(e=!0,this.addFeature(t.element),e=!1)}.bind(this)),t.addEventListener(r.a.REMOVE,function(t){e||(e=!0,this.removeFeature
1(t.element),e=!1)}.bind(this)),this.featuresCollection_=t},e.prototype.clear=function(t){if(t){for(var e in this.featureChangeKeys_){this.featureChangeKeys_[e].forEach(S.c)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_)for(var i in this.featuresRtree_.forEach(this.removeFeatureInternal.bind(this)),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[i]);this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var n=new L(v);this.dispatchEvent(n),this.changed()},e.prototype.forEachFeature=function(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},e.prototype.forEachFeatureAtCoordinateDirect=function(t,e){var i=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(i,(function(i){return i.getGeometry().intersectsCoordinate(t)?e(i):void 0}))},e.prototype.forEachFeatureInExtent=function(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},e.prototype.forEachFeatureIntersectingExtent=function(t,e){return this.forEachFeatureInExtent(t,(function(i){if(i.getGeometry().intersectsExtent(t)){var n=e(i);if(n)return n}}))},e.prototype.getFeaturesCollection=function(){return this.featuresCollection_},e.prototype.getFeatures=function(){var t;return this.featuresCollection_?t=this.featuresCollection_.getArray():this.featuresRtree_&&(t=this.featuresRtree_.getAll(),Object(p.d)(this.nullGeometryFeatures_)||Object(w.c)(t,Object(p.c)(this.nullGeometryFeatures_))),t},e.prototype.getFeaturesAtCoordinate=function(t){var e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e},e.prototype.getFeaturesInExtent=function(t){return this.featuresRtree_?this.featuresRtree_.getInExtent(t):this.featuresCollection_?this.featuresCollection_.getArray():[]},e.prototype.getClosestFeatureToCoordinate=function(t,e){var i=t[0],n=t[1],r=null,o=[NaN,NaN],a=1/0,s=[-1/0,-1/0,1/0,1/0],c=e||E.b;return this.featuresRtree_.forEachInExtent(s,(function(t){if(c(t)){var e=t.getGeometry(),l=a;if((a=e.closestPointXY(i,n,o,a))<l){r=t;var u=Math.sqrt(a);s[0]=i-u,s[1]=n-u,s[2]=i+u,s[3]=n+u}}})),r},e.prototype.getExtent=function(t){return this.featuresRtree_.getExtent(t)},e.prototype.getFeatureById=function(t){var e=this.idIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getFeatureByUid=function(t){var e=this.uidIndex_[t];return void 0!==e?e:null},e.prototype.getFormat=function(){return this.format_},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.getUrl=function(){return this.url_},e.prototype.handleFeatureChange_=function(t){var e=t.target,i=Object(h.c)(e),n=e.getGeometry();if(n){var r=n.getExtent();i in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[i],this.featuresRtree_&&this.featuresRtree_.insert(r,e)):this.featuresRtree_&&this.featuresRtree_.update(r,e)}else i in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[i]=e);var o=e.getId();if(void 0!==o){var a=o.toString();this.idIndex_[a]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[a]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[i]=e;this.changed(),this.dispatchEvent(new L(y,e))},e.prototype.hasFeature=function(t){var e=t.getId();return void 0!==e?e in this.idIndex_:Object(h.c)(t)in this.uidIndex_},e.prototype.isEmpty=function(){return this.featuresRtree_.isEmpty()&&Object(p.d)(this.nullGeometryFeatures_)},e.prototype.loadFeatures=function(t,e,i){var n=this.loadedExtentsRtree_,r=this.strategy_(t,e);this.loading=!1;for(var o=function(t,o){var s=r[t];n.forEachInExtent(s,(function(t){return Object(u.g)(t.extent,s)}))||(a.dispatchEvent(new L(O)),a.loader_.call(a,s,e,i,function(t){this.dispatchEvent(new L(b,void 0,t))}.bind(a),function(){this.dispatchEvent(new L(x))}.bind(a)),n.insert(s,{extent:s.slice()}),a.loading=a.loader_!==E.c)},a=this,s=0,c=r.length;s<c;++s)o(s)},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),t.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var e,i=this.loadedExtentsRtree_;
1i.forEachInExtent(t,(function(i){if(Object(u.p)(i.extent,t))return e=i,!0})),e&&i.remove(e)},e.prototype.removeFeature=function(t){var e=Object(h.c)(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=Object(h.c)(t);this.featureChangeKeys_[e].forEach(S.c),delete this.featureChangeKeys_[e];var i=t.getId();void 0!==i&&delete this.idIndex_[i.toString()],delete this.uidIndex_[e],this.dispatchEvent(new L(m,t))},e.prototype.removeFromIdIndex_=function(t){var e=!1;for(var i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],e=!0;break}return e},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){Object(C.a)(this.format_,7),this.setLoader(T(t,this.format_))},e}(d.a);e.a=M},1094:function(t,e,i){"use strict";var n=i(845),r=i(570),o=i(829),a=i(581),s=i(567),c=i(589),l=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function u(t){for(var e=[],i=0,n=t.length;i<n;++i)e.push(t[i].clone());return e}var h=function(t){function e(e){var i=t.call(this)||this;return i.geometries_=e||null,i.changeEventsKeys_=[],i.listenGeometriesChange_(),i}return l(e,t),e.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(c.c),this.changeEventsKeys_.length=0},e.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var t=0,e=this.geometries_.length;t<e;++t)this.changeEventsKeys_.push(Object(c.a)(this.geometries_[t],r.a.CHANGE,this.changed,this))},e.prototype.clone=function(){var t=new e(null);return t.setGeometries(this.geometries_),t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,i,n){if(n<Object(s.e)(this.getExtent(),t,e))return n;for(var r=this.geometries_,o=0,a=r.length;o<a;++o)n=r[o].closestPointXY(t,e,i,n);return n},e.prototype.containsXY=function(t,e){for(var i=this.geometries_,n=0,r=i.length;n<r;++n)if(i[n].containsXY(t,e))return!0;return!1},e.prototype.computeExtent=function(t){Object(s.l)(t);for(var e=this.geometries_,i=0,n=e.length;i<n;++i)Object(s.q)(t,e[i].getExtent());return t},e.prototype.getGeometries=function(){return u(this.geometries_)},e.prototype.getGeometriesArray=function(){return this.geometries_},e.prototype.getGeometriesArrayRecursive=function(){for(var t=[],e=this.geometries_,i=0,n=e.length;i<n;++i)e[i].getType()===this.getType()?t=t.concat(e[i].getGeometriesArrayRecursive()):t.push(e[i]);return t},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;for(var i=[],n=this.geometries_,r=!1,o=0,a=n.length;o<a;++o){var s=n[o],c=s.getSimplifiedGeometry(t);i.push(c),c!==s&&(r=!0)}if(r){var l=new e(null);return l.setGeometriesArray(i),l}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this},e.prototype.getType=function(){return a.a.GEOMETRY_COLLECTION},e.prototype.intersectsExtent=function(t){for(var e=this.geometries_,i=0,n=e.length;i<n;++i)if(e[i].intersectsExtent(t))return!0;return!1},e.prototype.isEmpty=function(){return 0===this.geometries_.length},e.prototype.rotate=function(t,e){for(var i=this.geometries_,n=0,r=i.length;n<r;++n)i[n].rotate(t,e);this.changed()},e.prototype.scale=function(t,e,i){var n=i;n||(n=Object(s.x)(this.getExtent()));for(var r=this.geometries_,o=0,a=r.length;o<a;++o)r[o].scale(t,e,n);this.changed()},e.prototype.setGeometries=function(t){this.setGeometriesArray(u(t))},e.prototype.setGeometriesArray=function(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()},e.prototype.applyTransform=function(t){for(var e=this.geometries_,i=0,n=e.length;i<n;++i)e[i].applyTransform(t);this.changed()},e.prototype.translate=function(t,e){for(var i=this.geometries_,n=0,r=i.length;n<r;++n)i[n].translate(t,e);this.changed()},e.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),t.prototype.disposeInternal.call(this)},e}(o.a),p=i(602),f=i(571),d=i(572),g=i(576),_=function(){function t(){this.dataProjection=null,this.defaultFeatureProjection=null}return t.prototype.getReadOptions=function(t,e){var i;if(e){var n=e.dataProjection?Object(g.f)(e.dataProjection):this.readProjection(t);e.extent&&n&&n.getUnits()===p.b.TILE_PIXELS&&(n=Object(g.f)(n)).setWorldExtent(e.extent),i={dataProjection:n,featureProjection:e.featureProjection}}return this.adaptOptions(i)},t.prototype.adaptOptions=function(t){return Object(d.a)({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)},t.prototype.getType=function(){return Object(f.b)()},t.prototype.readFeature=function(t,e){return Object(f.b)()},t.prototype.readFeatures=function(t,e){return Object(f.b)()},t.prototype.readGeometry=function(t,e){return Object(f.b)()},t.prototype.readProjection=function(t){return Object(f.b)()},t.prototype.writeFeature=function(t,e){return Object(f.b)()},t.prototype.writeFeatures=function(t,e){return Object(f.b)()},t.prototype.writeGeometry=function(t,e){return Object(f.b)()},t}();function y(t,e,i){var n,r=i?Object(g.f)(i.featureProjection):null,o=i?Object(g.f)(i.dataProjection):null;if(n=r&&o&&!Object(g.c)(r,o)?(e?t.clone():t).transform(e?r:o,e?o:r):t,e&&i&&void 0!==i.decimals){var a=Math.pow(10,i.decimals);n===t&&(n=t.clone()),n.applyTransform((function(t){for(var e=0,i=t.length;e<i;++e)t[e]=Math.round(t[e]*a)/a;return t}))}return n}var v=i(844),m=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function O(t){if("string"===typeof t){var e=JSON.parse(t);return e||null}return null!==t?t:null}var b=function(t){function e(){return t.call(this)||this}return m(e,t),e.prototype.getType=function(){return v.a.JSON},e.prototype.readFeature=function(t,e){return this.readFeatureFromObject(O(t),this.getReadOptions(t,e))},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromObject(O(t),this.getReadOptions(t,e))},e.prototype.readFeatureFromObject=function(t,e){return Object(f.b)()},e.prototype.readFeaturesFromObject=function(t,e){return Object(f.b)()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromObject(O(t),this.getReadOptions(t,e))},e.prototype.readGeometryFromObject=function(t,e){return Object(f.b)()},e.prototype.readProjection=function(t){return this.readProjectionFromObject(O(t))},e.prototype.readProjectionFromObject=function(t){return Object(f.b)()},e.prototype.writeFeature=function(t,e){return JSON.stringify(this.writeFeatureObject(t,e))},e.prototype.writeFeatureObject=function(t,e){return Object(f.b)()},e.prototype.writeFeatures=function(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))},e.prototype.writeFeaturesObject=function(t,e){return Object(f.b)()},e.prototype.writeGeometry=function(t,e){return JSON.stringify(this.writeGeometryObject(t,e))},e.prototype.writeGeometryObject=function(t,e){return Object(f.b)()},e}(_),x=i(746),E=i(848),j=i(747),C=i(867),w=i(654),S=i(639),I=i(577),R=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),T=function(t){function e(e){var i=this,n=e||{};return(i=t.call(this)||this).dataProjection=Object(g.f)(n.dataProjection?n.dataProjection:"EPSG:4326"),n.featureProjection&&(i.defaultFeatureProjection=Object(g.f)(n.featureProjection)),i.geometryName_=n.geometryName,i.extractGeometryName_=n.extractGeometryName,i}return R(e,t),e.prototype.readFeatureFromObject=function(t,e){var i=null,r=P((i="Feature"===t.type?t:{type:"Feature",geometry:t,properties:null}).geometry,e),o=new n.a;return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in i!==void 0&&o.setGeometryName(i.geometry_name),o.setGeometry(r),"id"in i&&o.setId(i.id
1),i.properties&&o.setProperties(i.properties,!0),o},e.prototype.readFeaturesFromObject=function(t,e){var i=null;if("FeatureCollection"===t.type){i=[];for(var n=t.features,r=0,o=n.length;r<o;++r)i.push(this.readFeatureFromObject(n[r],e))}else i=[this.readFeatureFromObject(t,e)];return i},e.prototype.readGeometryFromObject=function(t,e){return P(t,e)},e.prototype.readProjectionFromObject=function(t){var e,i=t.crs;return i?"name"==i.type?e=Object(g.f)(i.properties.name):"EPSG"===i.type?e=Object(g.f)("EPSG:"+i.properties.code):Object(I.a)(!1,36):e=this.dataProjection,e},e.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var i={type:"Feature",geometry:null,properties:null},n=t.getId();if(void 0!==n&&(i.id=n),!t.hasProperties())return i;var r=t.getProperties(),o=t.getGeometry();return o&&(i.geometry=L(o,e),delete r[t.getGeometryName()]),Object(d.d)(r)||(i.properties=r),i},e.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);for(var i=[],n=0,r=t.length;n<r;++n)i.push(this.writeFeatureObject(t[n],e));return{type:"FeatureCollection",features:i}},e.prototype.writeGeometryObject=function(t,e){return L(t,this.adaptOptions(e))},e}(b);function P(t,e){if(!t)return null;var i;switch(t.type){case a.a.POINT:i=function(t){return new w.a(t.coordinates)}(t);break;case a.a.LINE_STRING:i=function(t){return new x.a(t.coordinates)}(t);break;case a.a.POLYGON:i=function(t){return new S.a(t.coordinates)}(t);break;case a.a.MULTI_POINT:i=function(t){return new j.a(t.coordinates)}(t);break;case a.a.MULTI_LINE_STRING:i=function(t){return new E.a(t.coordinates)}(t);break;case a.a.MULTI_POLYGON:i=function(t){return new C.a(t.coordinates)}(t);break;case a.a.GEOMETRY_COLLECTION:i=function(t,e){var i=t.geometries.map((function(t){return P(t,e)}));return new h(i)}(t);break;default:throw new Error("Unsupported GeoJSON type: "+t.type)}return y(i,!1,e)}function L(t,e){var i,n=(t=y(t,!0,e)).getType();switch(n){case a.a.POINT:i=function(t,e){return{type:"Point",coordinates:t.getCoordinates()}}(t);break;case a.a.LINE_STRING:i=function(t,e){return{type:"LineString",coordinates:t.getCoordinates()}}(t);break;case a.a.POLYGON:i=function(t,e){var i;e&&(i=e.rightHanded);return{type:"Polygon",coordinates:t.getCoordinates(i)}}(t,e);break;case a.a.MULTI_POINT:i=function(t,e){return{type:"MultiPoint",coordinates:t.getCoordinates()}}(t);break;case a.a.MULTI_LINE_STRING:i=function(t,e){return{type:"MultiLineString",coordinates:t.getCoordinates()}}(t);break;case a.a.MULTI_POLYGON:i=function(t,e){var i;e&&(i=e.rightHanded);return{type:"MultiPolygon",coordinates:t.getCoordinates(i)}}(t,e);break;case a.a.GEOMETRY_COLLECTION:i=function(t,e){return{type:"GeometryCollection",geometries:t.getGeometriesArray().map((function(t){var i=Object(d.a)({},e);return delete i.featureProjection,L(t,i)}))}}(t,e);break;case a.a.CIRCLE:i={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+n)}return i}e.a=T},567:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"d",(function(){return c})),i.d(e,"e",(function(){return l})),i.d(e,"f",(function(){return u})),i.d(e,"g",(function(){return h})),i.d(e,"h",(function(){return p})),i.d(e,"i",(function(){return f})),i.d(e,"j",(function(){return d})),i.d(e,"k",(function(){return g})),i.d(e,"l",(function(){return _})),i.d(e,"m",(function(){return y})),i.d(e,"n",(function(){return v})),i.d(e,"o",(function(){return m})),i.d(e,"p",(function(){return O})),i.d(e,"q",(function(){return b})),i.d(e,"r",(function(){return x})),i.d(e,"s",(function(){return j})),i.d(e,"t",(function(){return w})),i.d(e,"u",(function(){return S})),i.d(e,"v",(function(){return I})),i.d(e,"w",(function(){return R})),i.d(e,"x",(function(){return T})),i.d(e,"y",(function(){return P})),i.d(e,"z",(function(){return L})),i.d(e,"A",(function(){return M})),i.d(e,"B",(function(){return A})),i.d(e,"C",(function(){return F})),i.d(e,"D",(function(){return D})),i.d(e,"E",(function(){return k})),i.d(e,"F",(function(){return G})),i.d(e,"G",(function(){return N})),i.d(e,"I",(function(){return z})),i.d(e,"J",(function(){return Y})),i.d(e,"K",(function(){return W})),i.d(e,"H",(function(){return X})),i.d(e,"a",(function(){return V})),i.d(e,"L",(function(){return B}));var n=i(826),r=i(825),o=i(577);function a(t){for(var e=d(),i=0,n=t.length;i<n;++i)x(e,t[i]);return e}function s(t,e,i){return i?(i[0]=t[0]-e,i[1]=t[1]-e,i[2]=t[2]+e,i[3]=t[3]+e,i):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function c(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function l(t,e,i){var n,r;return(n=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*n+(r=i<t[1]?t[1]-i:t[3]<i?i-t[3]:0)*r}function u(t,e){return p(t,e[0],e[1])}function h(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}
1function p(t,e,i){return t[0]<=e&&e<=t[2]&&t[1]<=i&&i<=t[3]}function f(t,e){var i=t[0],n=t[1],o=t[2],a=t[3],s=e[0],c=e[1],l=r.a.UNKNOWN;return s<i?l|=r.a.LEFT:s>o&&(l|=r.a.RIGHT),c<n?l|=r.a.BELOW:c>a&&(l|=r.a.ABOVE),l===r.a.UNKNOWN&&(l=r.a.INTERSECTING),l}function d(){return[1/0,1/0,-1/0,-1/0]}function g(t,e,i,n,r){return r?(r[0]=t,r[1]=e,r[2]=i,r[3]=n,r):[t,e,i,n]}function _(t){return g(1/0,1/0,-1/0,-1/0,t)}function y(t,e){var i=t[0],n=t[1];return g(i,n,i,n,e)}function v(t,e){return E(_(e),t)}function m(t,e,i,n,r){return j(_(r),t,e,i,n)}function O(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function b(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function x(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function E(t,e){for(var i=0,n=e.length;i<n;++i)x(t,e[i]);return t}function j(t,e,i,n,r){for(;i<n;i+=r)C(t,e[i],e[i+1]);return t}function C(t,e,i){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],i)}function w(t,e){var i;return(i=e(I(t)))||(i=e(R(t)))||(i=e(k(t)))?i:(i=e(D(t)))||!1}function S(t){var e=0;return z(t)||(e=G(t)*M(t)),e}function I(t){return[t[0],t[1]]}function R(t){return[t[2],t[1]]}function T(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function P(t,e){var i;return e===n.a.BOTTOM_LEFT?i=I(t):e===n.a.BOTTOM_RIGHT?i=R(t):e===n.a.TOP_LEFT?i=D(t):e===n.a.TOP_RIGHT?i=k(t):Object(o.a)(!1,13),i}function L(t,e,i,n,r){var o=e*n[0]/2,a=e*n[1]/2,s=Math.cos(i),c=Math.sin(i),l=o*s,u=o*c,h=a*s,p=a*c,f=t[0],d=t[1],_=f-l+p,y=f-l-p,v=f+l-p,m=f+l+p,O=d-u-h,b=d-u+h,x=d+u+h,E=d+u-h;return g(Math.min(_,y,v,m),Math.min(O,b,x,E),Math.max(_,y,v,m),Math.max(O,b,x,E),r)}function M(t){return t[3]-t[1]}function A(t,e,i){var n=i||[1/0,1/0,-1/0,-1/0];return N(t,e)?(t[0]>e[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]<e[2]?n[2]=t[2]:n[2]=e[2],t[3]<e[3]?n[3]=t[3]:n[3]=e[3]):_(n),n}function F(t){return[t[2]-t[0],t[3]-t[1]]}function D(t){return[t[0],t[3]]}function k(t){return[t[2],t[3]]}function G(t){return t[2]-t[0]}function N(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function z(t){return t[2]<t[0]||t[3]<t[1]}function Y(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function W(t,e){var i=(t[2]-t[0])/2*(e-1),n=(t[3]-t[1])/2*(e-1);t[0]-=i,t[2]+=i,t[1]-=n,t[3]+=n}function X(t,e,i){var n=!1,o=f(t,e),a=f(t,i);if(o===r.a.INTERSECTING||a===r.a.INTERSECTING)n=!0;else{var s=t[0],c=t[1],l=t[2],u=t[3],h=e[0],p=e[1],d=i[0],g=i[1],_=(g-p)/(d-h),y=void 0,v=void 0;a&r.a.ABOVE&&!(o&r.a.ABOVE)&&(n=(y=d-(g-u)/_)>=s&&y<=l),n||!(a&r.a.RIGHT)||o&r.a.RIGHT||(n=(v=g-(d-l)*_)>=c&&v<=u),n||!(a&r.a.BELOW)||o&r.a.BELOW||(n=(y=d-(g-c)/_)>=s&&y<=l),n||!(a&r.a.LEFT)||o&r.a.LEFT||(n=(v=g-(d-s)*_)>=c&&v<=u)}return n}function V(t,e,i,n){var r=[];if(n>1)for(var o=t[2]-t[0],a=t[3]-t[1],s=0;s<n;++s)r.push(t[0]+o*s/n,t[1],t[2],t[1]+a*s/n,t[2]-o*s/n,t[3],t[0],t[3]-a*s/n);else r=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(r,r,2);for(var c=[],l=[],u=(s=0,r.length);s<u;s+=2)c.push(r[s]),l.push(r[s+1]);return function(t,e,i){return g(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),i)}(c,l,i)}function B(t,e){var i=e.getExtent(),n=T(t);if(e.canWrapX()&&(n[0]<i[0]||n[0]>=i[2])){var r=G(i),o=Math.floor((n[0]-i[0])/r)*r;t[0]-=o,t[2]-=o}return t}},570:function(t,e,i){"use strict";e.a={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"}},571:function(t,e,i){"use strict";function n(){return function(){throw new Error("Unimplemented abstract method.")}()}i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var r=0;function o(t){return t.ol_uid||(t.ol_uid=String(++r))}var a="6.5.0"},572:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o}
1)),i.d(e,"d",(function(){return a}));var n="function"===typeof Object.assign?Object.assign:function(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),n=1,r=arguments.length;n<r;++n){var o=arguments[n];if(void 0!==o&&null!==o)for(var a in o)o.hasOwnProperty(a)&&(i[a]=o[a])}return i};function r(t){for(var e in t)delete t[e]}var o="function"===typeof Object.values?Object.values:function(t){var e=[];for(var i in t)e.push(t[i]);return e};function a(t){var e;for(e in t)return!1;return!e}},573:function(t,e,i){"use strict";function n(t,e,i){return Math.min(Math.max(t,e),i)}i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r})),i.d(e,"d",(function(){return o})),i.d(e,"h",(function(){return a})),i.d(e,"g",(function(){return s})),i.d(e,"f",(function(){return c})),i.d(e,"i",(function(){return l})),i.d(e,"j",(function(){return u})),i.d(e,"e",(function(){return h})),i.d(e,"c",(function(){return p}));var r="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,i,n,r,o){var a=r-i,c=o-n;if(0!==a||0!==c){var l=((t-i)*a+(e-n)*c)/(a*a+c*c);l>1?(i=r,n=o):l>0&&(i+=a*l,n+=c*l)}return s(t,e,i,n)}function s(t,e,i,n){var r=i-t,o=n-e;return r*r+o*o}function c(t){for(var e=t.length,i=0;i<e;i++){for(var n=i,r=Math.abs(t[i][i]),o=i+1;o<e;o++){var a=Math.abs(t[o][i]);a>r&&(r=a,n=o)}if(0===r)return null;var s=t[n];t[n]=t[i],t[i]=s;for(var c=i+1;c<e;c++)for(var l=-t[c][i]/t[i][i],u=i;u<e+1;u++)i==u?t[c][u]=0:t[c][u]+=l*t[i][u]}for(var h=new Array(e),p=e-1;p>=0;p--){h[p]=t[p][e]/t[p][p];for(var f=p-1;f>=0;f--)t[f][e]-=t[f][p]*h[p]}return h}function l(t){return 180*t/Math.PI}function u(t){return t*Math.PI/180}function h(t,e){var i=t%e;return i*e<0?i+e:i}function p(t,e,i){return t+i*(e-t)}},576:function(t,e,i){"use strict";i.d(e,"a",(function(){return n.a})),i.d(e,"f",(function(){return I})),i.d(e,"g",(function(){return R})),i.d(e,"b",(function(){return P})),i.d(e,"c",(function(){return L})),i.d(e,"i",(function(){return M})),i.d(e,"h",(function(){return A})),i.d(e,"m",(function(){return F})),i.d(e,"n",(function(){return D})),i.d(e,"j",(function(){return G})),i.d(e,"k",(function(){return N})),i.d(e,"d",(function(){return z})),i.d(e,"l",(function(){return Y})),i.d(e,"e",(function(){return W}));var n=i(602),r=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.a[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}(),o=i(573),a=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),s=6378137*Math.PI,c=[-s,-s,s,s],l=[-180,-85,180,85],u=6378137*Math.log(Math.tan(Math.PI/2)),h=function(t){function e(e){return t.call(this,{code:e,units:n.b.METERS,extent:c,global:!0,worldExtent:l,getPointResolution:function(t,e){return t/Object(o.b)(e[1]/6378137)}})||this}return a(e,t),e}(r),p=[new h("EPSG:3857"),new h("EPSG:102100"),new h("EPSG:102113"),new h("EPSG:900913"),new h("http://www.opengis.net/gml/srs/epsg.xml#3857")];function f(t,e,i){var n=t.length,r=i>1?i:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(n));for(var a=0;a<n;a+=r){o[a]=s*t[a]/180;var c=6378137*Math.log(Math.tan(Math.PI*(+t[a+1]+90)/360));c>u?c=u:c<-u&&(c=-u),o[a+1]=c}return o}function d(t,e,i){var n=t.length,r=i>1?i:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(n));for(var a=0;a<n;a+=r)o[a]=180*t[a]/s,o[a+1]=360*Math.atan(Math.exp(t[a+1]/6378137))/Math.PI-90;return o}var g=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),_=[-180,-90,180,90],y=6378137*Math.PI/180,v=function(t){function e(e,i){return t.call(this,{code:e,units:n.b.DEGREES,extent:_,axisOrientation:i,global:!0,metersPerUnit:y,worldExtent:_})||this}return g(e,t),e}(r),m=[new v("CRS:84"),new v("EPSG:4326","neu"),new v("urn:ogc:def:crs:OGC:1.3:CRS84"),new v("urn:ogc:def:crs:OGC:2:84"),new v("http://www.opengis.net/gml/srs/epsg.xml#4326","neu")],O={};i(572);var b={};function x(t,e,i){var n=t.getCode(),r=e.getCode();n in b||(b[n]={}),b[n][r]=i}var E=i(567),j=i(824);i(618);function C(t,e,i){var n;if(void 0!==e){for(var r=0,o=t.length;r<o;++r)e[r]=t[r];n=e}else n=t.slice();return n}function w(t,e,i){if(void 0!==e&&t!==e){for(var n=0,r=t.length;n<r;++n)e[n]=t[n];t=e}return t}function S(t){!function(t,e){O[t]=e}(t.getCode(),t),x(t,t,C)}function I(t){return"string"===typeof t?O[e=t]||O[e.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:t||null;var e}function R(t,e,i,r){var o,a=(t=I(t)).getPointResolutionFunc();if(a){if(o=a(e,i),r&&r!==t.getUnits())(c=t.getMetersPerUnit())&&
1(o=o*c/n.a[r])}else{var s=t.getUnits();if(s==n.b.DEGREES&&!r||r==n.b.DEGREES)o=e;else{var c,l=M(t,I("EPSG:4326"));if(l===w&&s!==n.b.DEGREES)o=e*t.getMetersPerUnit();else{var u=[i[0]-e/2,i[1],i[0]+e/2,i[1],i[0],i[1]-e/2,i[0],i[1]+e/2];u=l(u,u,2),o=(Object(j.a)(u.slice(0,2),u.slice(2,4))+Object(j.a)(u.slice(4,6),u.slice(6,8)))/2}void 0!==(c=r?n.a[r]:t.getMetersPerUnit())&&(o/=c)}}return o}function T(t){!function(t){t.forEach(S)}(t),t.forEach((function(e){t.forEach((function(t){e!==t&&x(e,t,C)}))}))}function P(t,e){return t?"string"===typeof t?I(t):t:I(e)}function L(t,e){if(t===e)return!0;var i=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||M(t,e)===C)&&i}function M(t,e){var i=function(t,e){var i;return t in b&&e in b[t]&&(i=b[t][e]),i}(t.getCode(),e.getCode());return i||(i=w),i}function A(t,e){return M(I(t),I(e))}function F(t,e,i){return A(e,i)(t,void 0,t.length)}function D(t,e,i,n){var r=A(e,i);return Object(E.a)(t,r,void 0,n)}var k=null;function G(){return k}function N(t,e){return k?F(t,e,k):t}function z(t,e){return k?F(t,k,e):t}function Y(t,e){return k?D(t,e,k):t}function W(t,e){return k?D(t,k,e):t}!function(){var t,e,i;T(p),T(m),t=p,e=f,i=d,m.forEach((function(n){t.forEach((function(t){x(n,t,e),x(t,n,i)}))}))}()},577:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i(827);function r(t,e){if(!t)throw new n.a(e)}},578:function(t,e,i){"use strict";function n(t,e,i){for(var n,o,a=i||r,s=0,c=t.length,l=!1;s<c;)(o=+a(t[n=s+(c-s>>1)],e))<0?s=n+1:(c=n,l=!o);return l?s:~s}function r(t,e){return t>e?1:t<e?-1:0}function o(t,e,i){var n=t.length;if(t[0]<=e)return 0;if(e<=t[n-1])return n-1;var r=void 0;if(i>0){for(r=1;r<n;++r)if(t[r]<e)return r-1}else if(i<0){for(r=1;r<n;++r)if(t[r]<=e)return r}else for(r=1;r<n;++r){if(t[r]==e)return r;if(t[r]<e)return t[r-1]-e<e-t[r]?r-1:r}return n-1}function a(t,e,i){for(;e<i;){var n=t[e];t[e]=t[i],t[i]=n,++e,--i}}function s(t,e){for(var i=Array.isArray(e)?e:[e],n=i.length,r=0;r<n;r++)t[t.length]=i[r]}function c(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}function l(t,e,i){var n=e||r;return t.every((function(e,r){if(0===r)return!0;var o=n(t[r-1],e);return!(o>0||i&&0===o)}))}i.d(e,"a",(function(){return n})),i.d(e,"f",(function(){return r})),i.d(e,"e",(function(){return o})),i.d(e,"g",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"b",(function(){return c})),i.d(e,"d",(function(){return l}))},581:function(t,e,i){"use strict";e.a={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"}},588:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"a",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"d",(function(){return s}));var n=i(578);function r(){return!0}function o(){return!1}function a(){}function s(t){var e,i,r,o=!1;return function(){var a=Array.prototype.slice.call(arguments);return o&&this===r&&Object(n.b)(a,i)||(o=!0,r=this,i=a,e=t.apply(this,arguments)),e}}},589:function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a}));var n=i(572);function r(t,e,i,n,r){if(n&&n!==t&&(i=i.bind(n)),r){var o=i;i=function(){t.removeEventListener(e,i),o.apply(this,arguments)}}var a={target:t,type:e,listener:i};return t.addEventListener(e,i),a}function o(t,e,i,n){return r(t,e,i,n,!0)}function a(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),Object(n.b)(t))}},592:function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"e",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"b",(function(){return s})),i.d(e,"d",(function(){return c}));var n=i(608);function r(t,e,i){var r=i&&i.length?i.shift():n.g?new OffscreenCanvas(t||300,e||300):document.createElement("canvas");return t&&(r.width=t),e&&(r.height=e),r.getContext("2d")}function o(t,e){var i=e.parentNode;i&&i.replaceChild(t,e)}function a(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function s(t){for(;
1t.lastChild;)t.removeChild(t.lastChild)}function c(t,e){for(var i=t.childNodes,n=0;;++n){var r=i[n],o=e[n];if(!r&&!o)break;r!==o&&(r?o?t.insertBefore(o,r):(t.removeChild(r),--n):t.appendChild(o))}}},593:function(t,e,i){"use strict";i.d(e,"b",(function(){return p}));var n=i(603),r=i(651),o=i(742),a=i(572),s=i(571),c=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),l=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r.key=i,r.oldValue=n,r}return c(e,t),e}(n.a),u=function(t){function e(e){var i=t.call(this)||this;return Object(s.c)(i),i.values_=null,void 0!==e&&i.setProperties(e),i}return c(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_&&Object(a.a)({},this.values_)||{}},e.prototype.hasProperties=function(){return!!this.values_},e.prototype.notify=function(t,e){var i;i=p(t),this.dispatchEvent(new l(i,t,e)),i=r.a.PROPERTYCHANGE,this.dispatchEvent(new l(i,t,e))},e.prototype.set=function(t,e,i){var n=this.values_||(this.values_={});if(i)n[t]=e;else{var r=n[t];n[t]=e,r!==e&&this.notify(t,r)}},e.prototype.setProperties=function(t,e){for(var i in t)this.set(i,t[i],e)},e.prototype.applyProperties=function(t){t.values_&&Object(a.a)(this.values_||(this.values_={}),t.values_)},e.prototype.unset=function(t,e){if(this.values_&&t in this.values_){var i=this.values_[t];delete this.values_[t],Object(a.d)(this.values_)&&(this.values_=null),e||this.notify(t,i)}},e}(o.a),h={};function p(t){return h.hasOwnProperty(t)?h[t]:h[t]="change:"+t}e.a=u},595:function(t,e,i){"use strict";i.d(e,"c",(function(){return r})),i.d(e,"f",(function(){return a})),i.d(e,"a",(function(){return s})),i.d(e,"e",(function(){return c})),i.d(e,"b",(function(){return l})),i.d(e,"d",(function(){return u})),i.d(e,"g",(function(){return h}));var n=i(577);new Array(6);function r(){return[1,0,0,1,0,0]}function o(t,e,i,n,r,o,a){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t[4]=o,t[5]=a,t}function a(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 s(t,e){var i=e[0],n=e[1];return e[0]=t[0]*i+t[2]*n+t[4],e[1]=t[1]*i+t[3]*n+t[5],e}function c(t,e,i){return o(t,e,0,0,i,0,0)}function l(t,e,i,n,r,o,a,s){var c=Math.sin(o),l=Math.cos(o);return t[0]=n*l,t[1]=r*c,t[2]=-n*c,t[3]=r*l,t[4]=a*n*l-s*n*c+e,t[5]=a*r*c+s*r*l+i,t}function u(t,e){var i,r=(i=e)[0]*i[3]-i[1]*i[2];Object(n.a)(0!==r,32);var o=e[0],a=e[1],s=e[2],c=e[3],l=e[4],u=e[5];return t[0]=c/r,t[1]=-a/r,t[2]=-s/r,t[3]=o/r,t[4]=(s*u-c*l)/r,t[5]=-(o*u-a*l)/r,t}function h(t){return"matrix("+t.join(", ")+")"}},596:function(t,e,i){"use strict";i.d(e,"d",(function(){return u})),i.d(e,"c",(function(){return h})),i.d(e,"e",(function(){return p})),i.d(e,"f",(function(){return f})),i.d(e,"g",(function(){return d})),i.d(e,"h",(function(){return g})),i.d(e,"j",(function(){return _})),i.d(e,"l",(function(){return y})),i.d(e,"m",(function(){return v})),i.d(e,"n",(function(){return m})),i.d(e,"k",(function(){return O})),i.d(e,"i",(function(){return b})),i.d(e,"a",(function(){return x})),i.d(e,"s",(function(){return w})),i.d(e,"q",(function(){return S})),i.d(e,"p",(function(){return T})),i.d(e,"r",(function(){return P})),i.d(e,"t",(function(){return L})),i.d(e,"o",(function(){return M})),i.d(e,"b",(function(){return F}));var n=i(593),r=i(632),o=i(608),a=i(572),s=i(592),c=i(652),l=i(595),u="10px sans-serif",h="#000",p="round",f=[],d=0,g="round",_=10,y="#000",v="center",m="middle",O=[0,0,0,0],b=1,x=new n.a;(new r.a).setSize=function(){console.warn("labelCache is deprecated.")};var E,j=null,C={},w=function(){var t,e,i=["monospace","serif"],n=i.length,r="wmytzilWMYTZIL@#/&?$%10\uf013";function o(t,o,a){for(var s=!0,c=0;c<n;++c){var l=i[c];if(e=R(t+" "+o+" 32px "+l,r),a!=l){var u=R(t+" "+o+" 32px "+a+","+l,r);s=s&&u!=e}}return!!s}function s(){for(var e=!0,i=x.getKeys(),n=0,r=i.length;n<r;++n){var s=i[n];x.get(s)<100&&(o.apply(this,s.split("\n"))?(Object(a.b)(C),j=null,E=void 0,x.set(s,100)):(x.set(s,x.get(s)+1,!0),e=!1))}e&&(clearInterval(t),t=void 0)}return function(e){var i=Object(c.e)(e);if(i)for(var n=i.families,r=0,a=n.length;r<a;++r){var l=n[r],u=i.style+"\n"+i.weight+"\n"+l;void 0===x.get(u)&&(x.set(u,100,!0),o(i.style,i.weight,l)||(x.set(u,0,!0),void 0===t&&(t=setInterval(s,32))))}}}(),S=function(){var t;return function(e){var i=C[e];if(void 0==i){if(o.g){var n=Object(c.e)(e),r=I(e,"\u017dg");i=(isNaN(Number(n.lineHeight))?1.2:Number(n.lineHeight))*(r.actualBoundingBoxAscent+r.actualBoundingBoxDescent)}else t||((t=document.createElement("div")).innerHTML="M",t.style.margin="0 !important",t.style.padding="0 !important",t.style.position="absolute !important",t.style.left="-99999px !important"),t.style.font=e,document.body.appendChild(t),i=t.offsetHeight,document.body.removeChild(t);C[e]=i}return i}}();function I(t,e){return j||(j=Object(s.a)(1,1)),t!=E&&(j.font=t,E=j.font),j.measureText(e)}function R(t,e){return I(t,e).width}function T(t,e,i){if(e in i)return i[e];var n=R(t,e);return i[e]=n,n}function P(t,e,i){for(var n=e.length,r=0,o=0;o<n;++o){var a=R(t,e[o]);r=Math.max(r,a),i.push(a)}return r}function L(t,e,i,n){0!==e&&(t.translate(i,n),t.rotate(e),t.translate(-i,-n))}function M(t,e,i,n,r,o,a,s,c,l,u){t.save(),1!==i&&(t.globalAlpha*=i),e&&t.setTransform.apply(t,e),n.contextInstructions?(t.translate(c,l),t.scale(u[0],u[1]),function(t,e){for(var i=t.contextInstructions,n=0,r=i.length;n<r;
1n+=2)Array.isArray(i[n+1])?e[i[n]].apply(e,i[n+1]):e[i[n]]=i[n+1]}(n,t)):u[0]<0||u[1]<0?(t.translate(c,l),t.scale(u[0],u[1]),t.drawImage(n,r,o,a,s,0,0,a,s)):t.drawImage(n,r,o,a,s,c,l,a*u[0],s*u[1]),t.restore()}var A=null;function F(t){return o.g?Object(l.g)(t):(A||(A=Object(s.a)(1,1).canvas),A.style.transform=Object(l.g)(t),A.style.transform)}},602:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},r={};r[n.DEGREES]=2*Math.PI*6370997/360,r[n.FEET]=.3048,r[n.METERS]=1,r[n.USFEET]=1200/3937,e.b=n},603:function(t,e,i){"use strict";var n=function(){function t(t){this.propagationStopped,this.type=t,this.target=null}return t.prototype.preventDefault=function(){this.propagationStopped=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t}();e.a=n},608:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"f",(function(){return o})),i.d(e,"d",(function(){return a})),i.d(e,"a",(function(){return s})),i.d(e,"g",(function(){return c})),i.d(e,"c",(function(){return l})),i.d(e,"e",(function(){return u}));var n="undefined"!==typeof navigator&&"undefined"!==typeof navigator.userAgent?navigator.userAgent.toLowerCase():"",r=-1!==n.indexOf("firefox"),o=(-1!==n.indexOf("safari")&&n.indexOf("chrom"),-1!==n.indexOf("webkit")&&-1==n.indexOf("edge")),a=-1!==n.indexOf("macintosh"),s="undefined"!==typeof devicePixelRatio?devicePixelRatio:1,c="undefined"!==typeof WorkerGlobalScope&&"undefined"!==typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,l="undefined"!==typeof Image&&Image.prototype.decode,u=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(i){}return t}()},609:function(t,e,i){"use strict";i.d(e,"b",(function(){return h}));var n=i(829),r=i(631),o=i(571),a=i(567),s=i(630),c=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),l=function(t){function e(){var e=t.call(this)||this;return e.layout=r.a.XY,e.stride=2,e.flatCoordinates=null,e}return c(e,t),e.prototype.computeExtent=function(t){return Object(a.o)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return Object(o.b)()},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<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},e.prototype.getSimplifiedGeometryInternal=function(t){return this},e.prototype.getStride=function(){return this.stride},e.prototype.setFlatCoordinates=function(t,e){this.stride=u(t),this.layout=t,this.flatCoordinates=e},e.prototype.setCoordinates=function(t,e){Object(o.b)()},e.prototype.setLayout=function(t,e,i){var n;if(t)n=u(t);else{for(var o=0;o<i;++o){if(0===e.length)return this.layout=r.a.XY,void(this.stride=2);e=e[0]}t=function(t){var e;2==t?e=r.a.XY:3==t?e=r.a.XYZ:4==t&&(e=r.a.XYZM);return e}(n=e.length)}this.layout=t,this.stride=n},e.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},e.prototype.rotate=function(t,e){var i=this.getFlatCoordinates();if(i){var n=this.getStride();Object(s.a)(i,0,i.length,n,t,e,i),this.changed()}}
1,e.prototype.scale=function(t,e,i){var n=e;void 0===n&&(n=t);var r=i;r||(r=Object(a.x)(this.getExtent()));var o=this.getFlatCoordinates();if(o){var c=this.getStride();Object(s.b)(o,0,o.length,c,t,n,r,o),this.changed()}},e.prototype.translate=function(t,e){var i=this.getFlatCoordinates();if(i){var n=this.getStride();Object(s.d)(i,0,i.length,n,t,e,i),this.changed()}},e}(n.a);function u(t){var e;return t==r.a.XY?e=2:t==r.a.XYZ||t==r.a.XYM?e=3:t==r.a.XYZM&&(e=4),e}function h(t,e,i){var n=t.getFlatCoordinates();if(n){var r=t.getStride();return Object(s.c)(n,0,n.length,r,e,i)}return null}e.a=l},610:function(t,e,i){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},611:function(t,e,i){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},612:function(t,e,i){"use strict";function n(t){return Math.pow(t,3)}function r(t){return 1-n(1-t)}function o(t){return 3*t*t-2*t*t*t}function a(t){return t}i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"d",(function(){return a}))},613:function(t,e,i){"use strict";i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return s})),i.d(e,"d",(function(){return c})),i.d(e,"c",(function(){return l})),i.d(e,"e",(function(){return u})),i.d(e,"g",(function(){return h})),i.d(e,"i",(function(){return p})),i.d(e,"j",(function(){return f})),i.d(e,"f",(function(){return d})),i.d(e,"h",(function(){return g}));i(656);var n=i(588),r=i(608),o=i(577);function a(t){var e=arguments;return function(t){for(var i=!0,n=0,r=e.length;n<r&&(i=i&&e[n](t));++n);return i}}var s=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},c=function(t){return!t.map.getTargetElement().hasAttribute("tabindex")||function(t){return t.target.getTargetElement().contains(document.activeElement)}(t)},l=n.b,u=function(t){var e=t.originalEvent;return 0==e.button&&!(r.f&&r.d&&e.ctrlKey)},h=(n.a,function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey}),p=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},f=function(t){var e=t.originalEvent.target.tagName;return"INPUT"!==e&&"SELECT"!==e&&"TEXTAREA"!==e},d=function(t){var e=t.originalEvent;return Object(o.a)(void 0!==e,56),"mouse"==e.pointerType},g=function(t){var e=t.originalEvent;return Object(o.a)(void 0!==e,56),e.isPrimary&&0===e.button}},614:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i(621),r=i(656),o=i(572),a=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),s=function(t){function e(e){var i=this,n=e||{};return i=t.call(this,n)||this,n.handleDownEvent&&(i.handleDownEvent=n.handleDownEvent),n.handleDragEvent&&(i.handleDragEvent=n.handleDragEvent),n.handleMoveEvent&&(i.handleMoveEvent=n.handleMoveEvent),n.handleUpEvent&&(i.handleUpEvent=n.handleUpEvent),n.stopDown&&(i.stopDown=n.stopDown),i.handlingDownUpSequence=!1,i.trackedPointers_={},i.targetPointers=[],i}return a(e,t),e.prototype.getPointerCount=function(){return this.targetPointers.length},e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==r.a.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==r.a.POINTERUP){var i=this.handleUpEvent(t);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(t.type==r.a.POINTERDOWN){var n=this.handleDownEvent(t);this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==r.a.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){if(function(t){var e=t.type;return e===r.a.POINTERDOWN||e===r.a.POINTERDRAG||e===r.a.POINTERUP}(t)){var e=t.originalEvent,i=e.pointerId.toString();t.type==r.a.POINTERUP?delete this.trackedPointers_[i]:(t.type==r.a.POINTERDOWN||i in this.trackedPointers_)&&(this.trackedPointers_[i]=e),this.targetPointers=Object(o.c)(this.trackedPointers_)}},e}(n.a);function c(t){for(var e=t.length,i=0,n=0,r=0;r<e;r++)i+=t[r].clientX,n+=t[r].clientY;return[i/e,n/e]}e.b=s}
1,618:function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return o})),i.d(e,"d",(function(){return a})),i.d(e,"e",(function(){return s})),i.d(e,"f",(function(){return c})),i.d(e,"c",(function(){return l}));var n=i(567);i(573),i(828);function r(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function o(t,e){for(var i=!0,n=t.length-1;n>=0;--n)if(t[n]!=e[n]){i=!1;break}return i}function a(t,e){var i=Math.cos(e),n=Math.sin(e),r=t[0]*i-t[1]*n,o=t[1]*i+t[0]*n;return t[0]=r,t[1]=o,t}function s(t,e){return t[0]*=e,t[1]*=e,t}function c(t,e){if(e.canWrapX()){var i=Object(n.F)(e.getExtent()),r=l(t,e,i);r&&(t[0]-=r*i)}return t}function l(t,e,i){var r=e.getExtent(),o=0;if(e.canWrapX()&&(t[0]<r[0]||t[0]>r[2])){var a=i||Object(n.F)(r);o=Math.floor((t[0]-r[0])/a)}return o}},619:function(t,e,i){"use strict";function n(t,e,i,n,r){for(var o=void 0!==r?r:[],a=0,s=e;s<i;s+=n)o[a++]=t.slice(s,s+n);return o.length=a,o}function r(t,e,i,r,o){for(var a=void 0!==o?o:[],s=0,c=0,l=i.length;c<l;++c){var u=i[c];a[s++]=n(t,e,u,r,a[s]),e=u}return a.length=s,a}function o(t,e,i,n,o){for(var a=void 0!==o?o:[],s=0,c=0,l=i.length;c<l;++c){var u=i[c];a[s++]=r(t,e,u,n,a[s]),e=u[u.length-1]}return a.length=s,a}i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o}))},620:function(t,e,i){"use strict";function n(t,e,i,n){for(var r=0,o=i.length;r<o;++r)t[e++]=i[r];return e}function r(t,e,i,n){for(var r=0,o=i.length;r<o;++r)for(var a=i[r],s=0;s<n;++s)t[e++]=a[s];return e}function o(t,e,i,n,o){for(var a=o||[],s=0,c=0,l=i.length;c<l;++c){var u=r(t,e,i[c],n);a[s++]=u,e=u}return a.length=s,a}function a(t,e,i,n,r){for(var a=r||[],s=0,c=0,l=i.length;c<l;++c){var u=o(t,e,i[c],n,a[s]);a[s++]=u,e=u[u.length-1]}return a.length=s,a}i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"d",(function(){return a}))},621:function(t,e,i){"use strict";i.d(e,"b",(function(){return c})),i.d(e,"c",(function(){return l}));var n=i(593),r="active",o=i(612),a=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),s=function(t){function e(e){var i=t.call(this)||this;return e&&e.handleEvent&&(i.handleEvent=e.handleEvent),i.map_=null,i.setActive(!0),i}return a(e,t),e.prototype.getActive=function(){return this.get(r)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(r,t)},e.prototype.setMap=function(t){this.map_=t},e}(n.a);function c(t,e,i){var n=t.getCenterInternal();if(n){var r=[n[0]+e[0],n[1]+e[1]];t.animateInternal({duration:void 0!==i?i:250,easing:o.d,center:t.getConstrainedCenter(r)})}}function l(t,e,i,n){var r=t.getZoom();if(void 0!==r){var a=t.getConstrainedZoom(r+e),s=t.getResolutionForZoom(a);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:s,anchor:i,duration:void 0!==n?n:250,easing:o.b})}}e.a=s},630:function(t,e,i){"use strict";function n(t,e,i,n,r,o){for(var a=o||[],s=0,c=e;c<i;c+=n){var l=t[c],u=t[c+1];a[s++]=r[0]*l+r[2]*u+r[4],a[s++]=r[1]*l+r[3]*u+r[5]}return o&&a.length!=s&&(a.length=s),a}function r(t,e,i,n,r,o,a){for(var s=a||[],c=Math.cos(r),l=Math.sin(r),u=o[0],h=o[1],p=0,f=e;f<i;f+=n){var d=t[f]-u,g=t[f+1]-h;s[p++]=u+d*c-g*l,s[p++]=h+d*l+g*c;for(var _=f+2;_<f+n;++_)s[p++]=t[_]}return a&&s.length!=p&&(s.length=p),s}function o(t,e,i,n,r,o,a,s){for(var c=s||[],l=a[0],u=a[1],h=0,p=e;p<i;p+=n){var f=t[p]-l,d=t[p+1]-u;c[h++]=l+r*f,c[h++]=u+o*d;for(var g=p+2;g<p+n;++g)c[h++]=t[g]}return s&&c.length!=h&&(c.length=h),c}function a(t,e,i,n,r,o,a){for(var s=a||[],c=0,l=e;l<i;l+=n){s[c++]=t[l]+r,s[c++]=t[l+1]+o;for(var u=l+2;u<l+n;++u)s[c++]=t[u]}return a&&s.length!=c&&(s.length=c),s}i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return o}
1)),i.d(e,"d",(function(){return a}))},631:function(t,e,i){"use strict";e.a={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},632:function(t,e,i){"use strict";var n=i(743),r=i(603),o=i(588),a=i(572),s=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),c=function(t){function e(e){var i=t.call(this)||this;return i.eventTarget_=e,i.pendingRemovals_=null,i.dispatching_=null,i.listeners_=null,i}return s(e,t),e.prototype.addEventListener=function(t,e){if(t&&e){var i=this.listeners_||(this.listeners_={}),n=i[t]||(i[t]=[]);-1===n.indexOf(e)&&n.push(e)}},e.prototype.dispatchEvent=function(t){var e="string"===typeof t?new r.a(t):t,i=e.type;e.target||(e.target=this.eventTarget_||this);var n,a=this.listeners_&&this.listeners_[i];if(a){var s=this.dispatching_||(this.dispatching_={}),c=this.pendingRemovals_||(this.pendingRemovals_={});i in s||(s[i]=0,c[i]=0),++s[i];for(var l=0,u=a.length;l<u;++l)if(!1===(n="handleEvent"in a[l]?a[l].handleEvent(e):a[l].call(this,e))||e.propagationStopped){n=!1;break}if(--s[i],0===s[i]){var h=c[i];for(delete c[i];h--;)this.removeEventListener(i,o.c);delete s[i]}return n}},e.prototype.disposeInternal=function(){this.listeners_&&Object(a.b)(this.listeners_)},e.prototype.getListeners=function(t){return this.listeners_&&this.listeners_[t]||void 0},e.prototype.hasListener=function(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)},e.prototype.removeEventListener=function(t,e){var i=this.listeners_&&this.listeners_[t];if(i){var n=i.indexOf(e);-1!==n&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[n]=o.c,++this.pendingRemovals_[t]):(i.splice(n,1),0===i.length&&delete this.listeners_[t]))}},e}(n.a);e.a=c},633:function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"a",(function(){return u})),i.d(e,"c",(function(){return p}));var n=i(577),r=i(573),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:p(t)}function c(t){var e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);var i=getComputedStyle(e).color;return document.body.removeChild(e),i}return""}var l=function(){var t={},e=0;return function(i){var r;if(t.hasOwnProperty(i))r=t[i];else{if(e>=1024){var s=0;for(var l in t)0===(3&s++)&&(delete t[l],--e)}r=function(t){var e,i,r,s,l;a.exec(t)&&(t=c(t));if(o.exec(t)){var u=t.length-1,p=void 0;p=u<=4?1:2;var f=4===u||8===u;e=parseInt(t.substr(1+0*p,p),16),i=parseInt(t.substr(1+1*p,p),16),r=parseInt(t.substr(1+2*p,p),16),s=f?parseInt(t.substr(1+3*p,p),16):255,1==p&&(e=(e<<4)+e,i=(i<<4)+i,r=(r<<4)+r,f&&(s=(s<<4)+s)),l=[e,i,r,s/255]}else 0==t.indexOf("rgba(")?h(l=t.slice(5,-1).split(",").map(Number)):0==t.indexOf("rgb(")?((l=t.slice(4,-1).split(",").map(Number)).push(1),h(l)):Object(n.a)(!1,14);return l}(i),t[i]=r,++e}return r}}();function u(t){return Array.isArray(t)?t:l(t)}function h(t){return t[0]=Object(r.a)(t[0]+.5|0,0,255),t[1]=Object(r.a)(t[1]+.5|0,0,255),t[2]=Object(r.a)(t[2]+.5|0,0,255),t[3]=Object(r.a)(t[3],0,1),t}function p(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var i=t[1];i!=(0|i)&&(i=i+.5|0);var n=t[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+e+","+i+","+n+","+(void 0===t[3]?1:t[3])+")"}},634:function(t,e,i){"use strict";function n(t){return t[0]>0&&t[1]>0}function r(t,e,i){return void 0===i&&(i=[0,0]),i[0]=t[0]*e+.5|0,i[1]=t[1]*e+.5|0,i}function o(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o}))},635:function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return o})),i.d(e,"e",(function(){return a})),i.d(e,"c",(function(){return c})),i.d(e,"d",(function(){return l}));var n=i(573);function r(t,e,i,r,o,a,s){var c=(i-e)/r;if(c<3){for(;e<i;e+=r)a[s++]=t[e],a[s++]=t[e+1];return s}var l=new Array(c);l[0]=1,l[c-1]=1;for(var u=[e,i-r],h=0;u.length>0;){for(var p=u.pop(),f=u.pop(),d=0,g=t[f],_=t[f+1],y=t[p],v=t[p+1],m=f+r;m<p;m+=r){var O=t[m],b=t[m+1],x=Object(n.h)(O,b,g,_,y,v);x>d&&(h=m,d=x)}d>o&&(l[(h-e)/r]=1,f+r<h&&u.push(f,h),h+r<p&&u.push(h,p))}for(m=0;m<c;++m)l[m]&&(a[s++]=t[e+m*r],a[s++]=t[e+m*r+1]);return s}function o(t,e,i,n,o,a,s,c){for(var l=0,u=i.length;l<u;++l){var h=i[l];s=r(t,e,h,n,o,a,s),c.push(s),e=h}return s}function a(t,e){return e*Math.round(t/e)}function s(t,e,i,n,r,o,s){if(e==i)return s;var c,l,u=a(t[e],r),h=a(t[e+1],r);e+=n,o[s++]=u,o[s++]=h;do{if(c=a(t[e],r),l=a(t[e+1],r),(e+=n)==i)return o[s++]=c,o[s++]=l,s}while(c==u&&l==h);for(;e<i;){var p=a(t[e],r),f=a(t[e+1],r);if(e+=n,p!=c||f!=l){var d=c-u,g=l-h,_=p-u,y=f-h;d*y==g*_&&(d<0&&_<d||d==_||d>0&&_>d)&&(g<0&&y<g||g==y||g>0&&y>g)?(c=p,l=f):(o[s++]=c,o[s++]=l,u=c,h=l,c=p,l=f)}}return o[s++]=c,o[s++]=l,s}function c(t,e,i,n,r,o,a,c){for(var l=0,u=i.length;l<u;++l){var h=i[l];a=s(t,e,h,n,r,o,a),c.push(a),e=h}return a}function l(t,e,i,n,r,o,a,s){for(var l=0,u=i.length;l<u;++l){var h=i[l],p=[];a=c(t,e,h,n,r,o,a,p),s.push(p),e=h[h.length-1]}return a}}
1,636:function(t,e,i){"use strict";e.a={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"}},637:function(t,e,i){"use strict";i.d(e,"b",(function(){return d}));var n=i(843),r=i(570),o=i(842),a=i(688),s=i(636),c=i(577),l=i(572),u=i(593),h=i(589),p=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),f=function(t){function e(e){var i=this,n=Object(l.a)({},e);delete n.source,(i=t.call(this,n)||this).mapPrecomposeKey_=null,i.mapRenderKey_=null,i.sourceChangeKey_=null,i.renderer_=null,e.render&&(i.render=e.render),e.map&&i.setMap(e.map),i.addEventListener(Object(u.b)(o.a.SOURCE),i.handleSourcePropertyChange_);var r=e.source?e.source:null;return i.setSource(r),i}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(o.a.SOURCE)||null},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():s.a.UNDEFINED},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Object(h.c)(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=Object(h.a)(t,r.a.CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.getFeatures=function(t){return this.renderer_.getFeatures(t)},e.prototype.render=function(t,e){var i=this.getRenderer();if(i.prepareFrame(t))return i.renderFrame(t,e)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&(Object(h.c)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Object(h.c)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Object(h.a)(t,a.a.PRECOMPOSE,(function(t){var e=t.frameState.layerStatesArray,i=this.getLayerState(!1);Object(c.a)(!e.some((function(t){return t.layer===i.layer})),67),e.push(i)}),this),this.mapRenderKey_=Object(h.a)(this,r.a.CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(o.a.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.setSource(null),t.prototype.disposeInternal.call(this)},e}(n.a);function d(t,e){if(!t.visible)return!1;var i=e.resolution;if(i<t.minResolution||i>=t.maxResolution)return!1;var n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}e.a=f},638:function(t,e,i){"use strict";function n(t,e,i,n){return void 0!==n?(n[0]=t,n[1]=e,n[2]=i,n):[t,e,i]}function r(t,e,i){return t+"/"+e+"/"+i}function o(t){return r(t[0],t[1],t[2])}function a(t){return t.split("/").map(Number)}function s(t){return(t[1]<<t[0])+t[2]}function c(t,e){var i=t[0],n=t[1],r=t[2];if(e.getMinZoom()>i||i>e.getMaxZoom())return!1;var o=e.getFullTileRange(i);return!o||o.containsXY(n,r)}i.d(e,"a",(function(){return n})),i.d(e,"d",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"b",(function(){return a})),i.d(e,"e",(function(){return s})),i.d(e,"f",(function(){return c}))},639:function(t,e,i){"use strict";i.d(e,"b",(function(){return x}));var n=i(631),r=i(581),o=i(609),a=i(655),s=i(567),c=i(620),l=i(635),u=i(619),h=i(748),p=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),f=function(t){function e(e,i){var n=t.call(this)||this;return n.maxDelta_=-1,n.maxDeltaRevision_=-1,void 0===i||Array.isArray(e[0])?n.setCo
1ordinates(e,i):n.setFlatCoordinates(i,e),n}return p(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,i,n){return n<Object(s.e)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(a.e)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(a.d)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,i,n))},e.prototype.getArea=function(){return Object(h.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return Object(u.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var i=[];return i.length=Object(l.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,i,0),new e(i,n.a.XY)},e.prototype.getType=function(){return r.a.LINEAR_RING},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=Object(c.b)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(o.a),d=i(654),g=i(578),_=i(849),y=i(690),v=i(868),m=i(691),O=(i(573),i(824),function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}()),b=function(t){function e(e,i,n){var r=t.call(this)||this;return r.ends_=[],r.flatInteriorPointRevision_=-1,r.flatInteriorPoint_=null,r.maxDelta_=-1,r.maxDeltaRevision_=-1,r.orientedRevision_=-1,r.orientedFlatCoordinates_=null,void 0!==i&&n?(r.setFlatCoordinates(i,e),r.ends_=n):r.setCoordinates(e,i),r}return O(e,t),e.prototype.appendLinearRing=function(t){this.flatCoordinates?Object(g.c)(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,i,n){return n<Object(s.e)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(a.a)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(a.b)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,i,n))},e.prototype.containsXY=function(t,e){return Object(m.c)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},e.prototype.getArea=function(){return Object(h.b)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),Object(v.c)(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,Object(u.b)(e,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var t=Object(s.x)(this.getExtent());this.flatInteriorPoint_=Object(_.a)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},e.prototype.getInteriorPoint=function(){return new d.a(this.getFlatInteriorPoint(),n.a.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,i=this.ends_,n=[],r=0,o=0,a=i.length;o<a;++o){var s=i[o],c=new f(e.slice(r,s),t);n.push(c),r=s}return n},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;Object(v.a)(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Object(v.c)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var i=[],r=[];return i.length=Object(l.c)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),i,0,r),new e(i,n.a.XY,r)},e.prototype.getType=function(){return r.a.POLYGON},e.prototype.intersectsExtent=function(t){return Object(y.c)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var i=Object(c.c)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()},e}(o.a);e.a=b;function x(t){var e=t[0],i=t[1],r=t[2],o=t[3],a=[e,i,e,o,r,o,r,i,e,i];return new b(a,n.a.XY,[a.length])}}
1,651:function(t,e,i){"use strict";e.a={PROPERTYCHANGE:"propertychange"}},652:function(t,e,i){"use strict";i.d(e,"c",(function(){return n})),i.d(e,"d",(function(){return r})),i.d(e,"b",(function(){return o})),i.d(e,"a",(function(){return a})),i.d(e,"e",(function(){return l}));var n="ol-hidden",r="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"),c=["style","variant","weight","size","lineHeight","family"],l=function(t){var e=t.match(s);if(!e)return null;for(var i={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},n=0,r=c.length;n<r;++n){var o=e[n+1];void 0!==o&&(i[c[n]]=o)}return i.families=i.family.split(/,\s?/),i}},653:function(t,e,i){"use strict";var n=i(827),r=i(593),o=i(689),a=i(603),s=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),c="length",l=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r.element=i,r.index=n,r}return s(e,t),e}(a.a),u=function(t){function e(e,i){var n=t.call(this)||this,r=i||{};if(n.unique_=!!r.unique,n.array_=e||[],n.unique_)for(var o=0,a=n.array_.length;o<a;++o)n.assertUnique_(n.array_[o],o);return n.updateLength_(),n}return s(e,t),e.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},e.prototype.extend=function(t){for(var e=0,i=t.length;e<i;++e)this.push(t[e]);return this},e.prototype.forEach=function(t){for(var e=this.array_,i=0,n=e.length;i<n;++i)t(e[i],i,e)},e.prototype.getArray=function(){return this.array_},e.prototype.item=function(t){return this.array_[t]},e.prototype.getLength=function(){return this.get(c)},e.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new l(o.a.ADD,e,t))},e.prototype.pop=function(){return this.removeAt(this.getLength()-1)},e.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var e=this.getLength();return this.insertAt(e,t),this.getLength()},e.prototype.remove=function(t){for(var e=this.array_,i=0,n=e.length;i<n;++i)if(e[i]===t)return this.removeAt(i)},e.prototype.removeAt=function(t){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new l(o.a.REMOVE,e,t)),e},e.prototype.setAt=function(t,e){var i=this.getLength();if(t<i){this.unique_&&this.assertUnique_(e,t);var n=this.array_[t];this.array_[t]=e,this.dispatchEvent(new l(o.a.REMOVE,n,t)),this.dispatchEvent(new l(o.a.ADD,e,t))}else{for(var r=i;r<t;++r)this.insertAt(r,void 0);this.insertAt(t,e)}},e.prototype.updateLength_=function(){this.set(c,this.array_.length)},e.prototype.assertUnique_=function(t,e){for(var i=0,r=this.array_.length;i<r;++i)if(this.array_[i]===t&&i!==e)throw new n.a(58)},e}(r.a);e.a=u},654:function(t,e,i){"use strict";var n=i(581),r=i(609),o=i(567),a=i(620),s=i(573),c=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),l=function(t){function e(e,i){var n=t.call(this)||this;return n.setCoordinates(e,i),n}return c(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,i,n){var r=this.flatCoordinates,o=Object(s.g)(t,e,r[0],r[1]);if(o<n){for(var a=this.stride,c=0;c<a;++c)i[c]=r[c];return i.length=a,o}return n},e.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},e.prototype.computeExtent=function(t){return Object(o.m)(this.flatCoordinates,t)},e.prototype.getType=function(){return n.a.POINT},e.prototype.intersectsExtent=function(t){return Object(o.h)(t,this.flatCoordinates[0],this.flatCoordinates[1])},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(a.a)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(r.a);e.a=l}
1,655:function(t,e,i){"use strict";i.d(e,"e",(function(){return o})),i.d(e,"a",(function(){return a})),i.d(e,"f",(function(){return s})),i.d(e,"d",(function(){return c})),i.d(e,"b",(function(){return l})),i.d(e,"c",(function(){return u}));var n=i(573);function r(t,e,i,r,o,a,s){var c,l=t[e],u=t[e+1],h=t[i]-l,p=t[i+1]-u;if(0===h&&0===p)c=e;else{var f=((o-l)*h+(a-u)*p)/(h*h+p*p);if(f>1)c=i;else{if(f>0){for(var d=0;d<r;++d)s[d]=Object(n.c)(t[e+d],t[i+d],f);return void(s.length=r)}c=e}}for(d=0;d<r;++d)s[d]=t[c+d];s.length=r}function o(t,e,i,r,o){var a=t[e],s=t[e+1];for(e+=r;e<i;e+=r){var c=t[e],l=t[e+1],u=Object(n.g)(a,s,c,l);u>o&&(o=u),a=c,s=l}return o}function a(t,e,i,n,r){for(var a=0,s=i.length;a<s;++a){var c=i[a];r=o(t,e,c,n,r),e=c}return r}function s(t,e,i,n,r){for(var o=0,s=i.length;o<s;++o){var c=i[o];r=a(t,e,c,n,r),e=c[c.length-1]}return r}function c(t,e,i,o,a,s,c,l,u,h,p){if(e==i)return h;var f,d;if(0===a){if((d=Object(n.g)(c,l,t[e],t[e+1]))<h){for(f=0;f<o;++f)u[f]=t[e+f];return u.length=o,d}return h}for(var g=p||[NaN,NaN],_=e+o;_<i;)if(r(t,_-o,_,o,c,l,g),(d=Object(n.g)(c,l,g[0],g[1]))<h){for(h=d,f=0;f<o;++f)u[f]=g[f];u.length=o,_+=o}else _+=o*Math.max((Math.sqrt(d)-Math.sqrt(h))/a|0,1);if(s&&(r(t,i-o,e,o,c,l,g),(d=Object(n.g)(c,l,g[0],g[1]))<h)){for(h=d,f=0;f<o;++f)u[f]=g[f];u.length=o}return h}function l(t,e,i,n,r,o,a,s,l,u,h){for(var p=h||[NaN,NaN],f=0,d=i.length;f<d;++f){var g=i[f];u=c(t,e,g,n,r,o,a,s,l,u,p),e=g}return u}function u(t,e,i,n,r,o,a,s,c,u,h){for(var p=h||[NaN,NaN],f=0,d=i.length;f<d;++f){var g=i[f];u=l(t,e,g,n,r,o,a,s,c,u,p),e=g[g.length-1]}return u}},656:function(t,e,i){"use strict";var n=i(570);e.a={SINGLECLICK:"singleclick",CLICK:n.a.CLICK,DBLCLICK:n.a.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},686:function(t,e,i){"use strict";
1e.a={ANIMATING:0,INTERACTING:1}},687:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i(633);function r(t){return Array.isArray(t)?Object(n.c)(t):t}},688:function(t,e,i){"use strict";e.a={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},689:function(t,e,i){"use strict";e.a={ADD:"add",REMOVE:"remove"}},690:function(t,e,i){"use strict";i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return c})),i.d(e,"d",(function(){return l}));var n=i(567),r=i(846),o=i(691);function a(t,e,i,o,a){var s=Object(n.s)(Object(n.j)(),t,e,i,o);return!!Object(n.G)(a,s)&&(!!Object(n.g)(a,s)||(s[0]>=a[0]&&s[2]<=a[2]||(s[1]>=a[1]&&s[3]<=a[3]||Object(r.a)(t,e,i,o,(function(t,e){return Object(n.H)(a,t,e)})))))}function s(t,e,i,n,r){for(var o=0,s=i.length;o<s;++o){if(a(t,e,i[o],n,r))return!0;e=i[o]}return!1}function c(t,e,i,n,r){if(!function(t,e,i,n,r){return!!a(t,e,i,n,r)||(!!Object(o.b)(t,e,i,n,r[0],r[1])||(!!Object(o.b)(t,e,i,n,r[0],r[3])||(!!Object(o.b)(t,e,i,n,r[2],r[1])||!!Object(o.b)(t,e,i,n,r[2],r[3]))))}(t,e,i[0],n,r))return!1;if(1===i.length)return!0;for(var s=1,c=i.length;s<c;++s)if(Object(o.a)(t,i[s-1],i[s],n,r)&&!a(t,i[s-1],i[s],n,r))return!1;return!0}function l(t,e,i,n,r){for(var o=0,a=i.length;o<a;++o){var s=i[o];if(c(t,e,s,n,r))return!0;e=s[s.length-1]}return!1}},691:function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"d",(function(){return s}));var n=i(567);function r(t,e,i,r,a){return!Object(n.t)(a,(function(n){return!o(t,e,i,r,n[0],n[1])}))}function o(t,e,i,n,r,o){for(var a=0,s=t[i-n],c=t[i-n+1];e<i;e+=n){var l=t[e],u=t[e+1];c<=o?u>o&&(l-s)*(o-c)-(r-s)*(u-c)>0&&a++:u<=o&&(l-s)*(o-c)-(r-s)*(u-c)<0&&a--,s=l,c=u}return 0!==a}function a(t,e,i,n,r,a){if(0===i.length)return!1;if(!o(t,e,i[0],n,r,a))return!1;for(var s=1,c=i.length;s<c;++s)if(o(t,i[s-1],i[s],n,r,a))return!1;return!0}function s(t,e,i,n,r,o){if(0===i.length)return!1;for(var s=0,c=i.length;s<c;++s){var l=i[s];if(a(t,e,l,n,r,o))return!0;e=l[l.length-1]}return!1}},742:function(t,e,i){"use strict";i.d(e,"b",(function(){return c}));var n=i(632),r=i(570),o=i(589),a=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),s=function(t){function e(){var e=t.call(this)||this;return e.revision_=0,e}return a(e,t),e.prototype.changed=function(){++this.revision_,this.dispatchEvent(r.a.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.on=function(t,e){if(Array.isArray(t)){for(var i=t.length,n=new Array(i),r=0;r<i;++r)n[r]=Object(o.a)(this,t[r],e);return n}return Object(o.a)(this,t,e)},e.prototype.once=function(t,e){var i;if(Array.isArray(t)){var n=t.length;i=new Array(n);for(var r=0;r<n;++r)i[r]=Object(o.b)(this,t[r],e)}else i=Object(o.b)(this,t,e);return e.ol_key=i,i},e.prototype.un=function(t,e){var i=e.ol_key;if(i)c(i);else if(Array.isArray(t))for(var n=0,r=t.length;n<r;++n)this.removeEventListener(t[n],e);else this.removeEventListener(t,e)},e}(n.a);function c(t){if(Array.isArray(t))for(var e=0,i=t.length;e<i;++e)Object(o.c)(t[e]);else Object(o.c)(t)}e.a=s},743:function(t,e,i){"use strict";var n=function(){function t(){this.disposed=!1}return t.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},t.prototype.disposeInternal=function(){},t}();e.a=n},744:function(t,e,i){"use strict";i.d(e,"b",(function(){return h}));var n=i(570),r=i(831),o=i(610),a=i(608),s=i(567),c=i(589),l=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),u=function(t){function e(e,i,n,r,a,s){var c=t.call(this,e,i,n,o.a.IDLE)||this;return c.src_=r,c.image_=new Image,null!==a&&(c.image_.crossOrigin=a),c.unlisten_=null,c.state=o.a.IDLE,c.imageLoadFunction_=s,c}return l(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=o.a.ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Object(s.A)(this.extent)/this.image_.height),this.state=o.a.LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=o.a.IDLE&&this.state!=o.a.ERROR||(this.state=o.a.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=h(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.setImage=function(t){this.image_=t},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(r.a);
1function h(t,e,i){var r=t;if(r.src&&a.c){var o=r.decode(),s=!0;return o.then((function(){s&&e()})).catch((function(t){s&&("EncodingError"===t.name&&"Invalid image type."===t.message?e():i())})),function(){s=!1}}var l=[Object(c.b)(r,n.a.LOAD,e),Object(c.b)(r,n.a.ERROR,i)];return function(){l.forEach(c.c)}}e.a=u},745:function(t,e,i){"use strict";var n=i(593),r=i(636),o=i(571),a=i(576),s=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),c=function(t){function e(e){var i=t.call(this)||this;return i.projection_=Object(a.f)(e.projection),i.attributions_=l(e.attributions),i.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,i.loading=!1,i.state_=void 0!==e.state?e.state:r.a.READY,i.wrapX_=void 0!==e.wrapX&&e.wrapX,i}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 Object(o.b)()},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.getContextOptions=function(){},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}(n.a);function l(t){return t?Array.isArray(t)?function(e){return t}:"function"===typeof t?t:function(e){return[t]}:null}e.a=c},746:function(t,e,i){"use strict";var n=i(631),r=i(581),o=i(609),a=i(655),s=i(567),c=i(620),l=i(635),u=i(578),h=i(846),p=i(619),f=i(847),d=i(690),g=i(835),_=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),y=function(t){function e(e,i){var n=t.call(this)||this;return n.flatMidpoint_=null,n.flatMidpointRevision_=-1,n.maxDelta_=-1,n.maxDeltaRevision_=-1,void 0===i||Array.isArray(e[0])?n.setCoordinates(e,i):n.setFlatCoordinates(i,e),n}return _(e,t),e.prototype.appendCoordinate=function(t){this.flatCoordinates?Object(u.c)(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,i,n){return n<Object(s.e)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(a.e)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(a.d)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,i,n))},e.prototype.forEachSegment=function(t){return Object(h.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinateAtM=function(t,e){if(this.layout!=n.a.XYM&&this.layout!=n.a.XYZM)return null;var i=void 0!==e&&e;return Object(f.b)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,i)},e.prototype.getCoordinates=function(){return Object(p.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinateAt=function(t,e){return Object(f.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)},e.prototype.getLength=function(){return Object(g.a)(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 i=[];return i.length=Object(l.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,i,0),new e(i,n.a.XY)},e.prototype.getType=function(){return r.a.LINE_STRING},e.prototype.intersectsExtent=function(t){return Object(d.a)(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=Object(c.b)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(o.a);e.a=y}
1,747:function(t,e,i){"use strict";var n=i(581),r=i(654),o=i(609),a=i(567),s=i(620),c=i(578),l=i(619),u=i(573),h=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),p=function(t){function e(e,i){var n=t.call(this)||this;return i&&!Array.isArray(e[0])?n.setFlatCoordinates(i,e):n.setCoordinates(e,i),n}return h(e,t),e.prototype.appendPoint=function(t){this.flatCoordinates?Object(c.c)(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,i,n){if(n<Object(a.e)(this.getExtent(),t,e))return n;for(var r=this.flatCoordinates,o=this.stride,s=0,c=r.length;s<c;s+=o){var l=Object(u.g)(t,e,r[s],r[s+1]);if(l<n){n=l;for(var h=0;h<o;++h)i[h]=r[s+h];i.length=o}}return n},e.prototype.getCoordinates=function(){return Object(l.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getPoint=function(t){var e=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return t<0||e<=t?null:new r.a(this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)},e.prototype.getPoints=function(){for(var t=this.flatCoordinates,e=this.layout,i=this.stride,n=[],o=0,a=t.length;o<a;o+=i){var s=new r.a(t.slice(o,o+i),e);n.push(s)}return n},e.prototype.getType=function(){return n.a.MULTI_POINT},e.prototype.intersectsExtent=function(t){for(var e=this.flatCoordinates,i=this.stride,n=0,r=e.length;n<r;n+=i){var o=e[n],s=e[n+1];if(Object(a.h)(t,o,s))return!0}return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(s.b)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(o.a);e.a=p},748:function(t,e,i){"use strict";function n(t,e,i,n){for(var r=0,o=t[i-n],a=t[i-n+1];e<i;e+=n){var s=t[e],c=t[e+1];r+=a*s-o*c,o=s,a=c}return r/2}function r(t,e,i,r){for(var o=0,a=0,s=i.length;a<s;++a){var c=i[a];o+=n(t,e,c,r),e=c}return o}function o(t,e,i,n){for(var o=0,a=0,s=i.length;a<s;++a){var c=i[a];o+=r(t,e,c,n),e=c[c.length-1]}return o}i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o}))},749:function(t,e,i){"use strict";i.d(e,"c",(function(){return r})),i.d(e,"d",(function(){return o})),i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return s}));var n=i(573);function r(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,i){return i?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0}}function s(t){var e=t||Object(n.j)(5);return function(t,i){return i?t:void 0!==t?Math.abs(t)<=e?0:t:void 0}}},750:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r}));var n=42,r=256},759:function(t,e,i){"use strict";var n=i(570),r=i(610),o=i(742),a=i(636),s=i(571),c=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),l=function(t){function e(e){var i=t.call(this)||this;return i.boundHandleImageChange_=i.handleImageChange_.bind(i),i.layer_=e,i.declutterExecutorGroup=null,i}return c(e,t),e.prototype.getFeatures=function(t){return Object(s.b)()},e.prototype.prepareFrame=function(t){return Object(s.b)()},e.prototype.renderFrame=function(t,e){return Object(s.b)()},e.prototype.loadedTileCallback=function(t,e,i){t[e]||(t[e]={}),t[e][i.tileCoord.toString()]=i}
1,e.prototype.createLoadedTileFinder=function(t,e,i){return function(n,r){var o=this.loadedTileCallback.bind(this,i,n);return t.forEachLoadedTile(e,n,r,o)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,r){},e.prototype.getDataAtPixel=function(t,e,i){return Object(s.b)()},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){t.target.getState()===r.a.LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=r.a.LOADED&&e!=r.a.ERROR&&t.addEventListener(n.a.CHANGE,this.boundHandleImageChange_),e==r.a.IDLE&&(t.load(),e=t.getState()),e==r.a.LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t.getVisible()&&t.getSourceState()==a.a.READY&&t.changed()},e}(o.a),u=i(836),h=i(688),p=i(595),f=i(567),d=i(592),g=i(596),_=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),y=function(t){function e(e){var i=t.call(this,e)||this;return i.container=null,i.renderedResolution,i.tempTransform=Object(p.c)(),i.pixelTransform=Object(p.c)(),i.inversePixelTransform=Object(p.c)(),i.context=null,i.containerReused=!1,i}return _(e,t),e.prototype.useContainer=function(t,e,i){var n,r,o=this.getLayer().getClassName();t&&""===t.style.opacity&&t.className===o&&((s=t.firstElementChild)instanceof HTMLCanvasElement&&(r=s.getContext("2d")));if(!r||0!==r.canvas.width&&r.canvas.style.transform!==e?this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1):(this.container=t,this.context=r,this.containerReused=!0),!this.container){(n=document.createElement("div")).className=o;var a=n.style;a.position="absolute",a.width="100%",a.height="100%";var s=(r=Object(d.a)()).canvas;n.appendChild(s),(a=s.style).position="absolute",a.left="0",a.transformOrigin="top left",this.container=n,this.context=r}},e.prototype.clip=function(t,e,i){var n=e.pixelRatio,r=e.size[0]*n/2,o=e.size[1]*n/2,a=e.viewState.rotation,s=Object(f.D)(i),c=Object(f.E)(i),l=Object(f.w)(i),u=Object(f.v)(i);Object(p.a)(e.coordinateToPixelTransform,s),Object(p.a)(e.coordinateToPixelTransform,c),Object(p.a)(e.coordinateToPixelTransform,l),Object(p.a)(e.coordinateToPixelTransform,u),t.save(),Object(g.t)(t,-a,r,o),t.beginPath(),t.moveTo(s[0]*n,s[1]*n),t.lineTo(c[0]*n,c[1]*n),t.lineTo(l[0]*n,l[1]*n),t.lineTo(u[0]*n,u[1]*n),t.clip(),Object(g.t)(t,a,r,o)},e.prototype.clipUnrotated=function(t,e,i){var n=Object(f.D)(i),r=Object(f.E)(i),o=Object(f.w)(i),a=Object(f.v)(i);Object(p.a)(e.coordinateToPixelTransform,n),Object(p.a)(e.coordinateToPixelTransform,r),Object(p.a)(e.coordinateToPixelTransform,o),Object(p.a)(e.coordinateToPixelTransform,a);var s=this.inversePixelTransform;Object(p.a)(s,n),Object(p.a)(s,r),Object(p.a)(s,o),Object(p.a)(s,a),t.save(),t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(n[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])
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,i){var n=this.getLayer();if(n.hasListener(t)){var r=new u.a(t,this.inversePixelTransform,i,e);n.dispatchEvent(r)}},e.prototype.preRender=function(t,e){this.dispatchRenderEvent_(h.a.PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(h.a.POSTRENDER,t,e)},e.prototype.getRenderTransform=function(t,e,i,n,r,o,a){var s=r/2,c=o/2,l=n/e,u=-l,h=-t[0]+a,f=-t[1];return Object(p.b)(this.tempTransform,s,c,l,u,-i,h,f)},e.prototype.getDataAtPixel=function(t,e,i){var n,r=Object(p.a)(this.inversePixelTransform,t.slice()),o=this.context,a=this.getLayer().getExtent();if(a){var s=Object(p.a)(e.pixelToCoordinateTransform,t.slice());if(!Object(f.f)(a,s))return null}try{var c=Math.round(r[0]),l=Math.round(r[1]),u=document.createElement("canvas"),h=u.getContext("2d");u.width=1,u.height=1,h.clearRect(0,0,1,1),h.drawImage(o.canvas,c,l,1,1,0,0,1,1),n=h.getImageData(0,0,1,1).data}catch(d){return"SecurityError"===d.name?new Uint8Array:n}return 0===n[3]?null:n},e}(l);e.a=y},824:function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return o}));i(581);var n=i(573);function r(t,e,i){var r=i||6371008.8,o=Object(n.j)(t[1]),a=Object(n.j)(e[1]),s=(a-o)/2,c=Object(n.j)(e[0]-t[0])/2,l=Math.sin(s)*Math.sin(s)+Math.sin(c)*Math.sin(c)*Math.cos(o)*Math.cos(a);return 2*r*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}function o(t,e,i,r){var o=r||6371008.8,a=Object(n.j)(t[1]),s=Object(n.j)(t[0]),c=e/o,l=Math.asin(Math.sin(a)*Math.cos(c)+Math.cos(a)*Math.sin(c)*Math.cos(i)),u=s+Math.atan2(Math.sin(i)*Math.sin(c)*Math.cos(a),Math.cos(c)-Math.sin(a)*Math.sin(l));return[Object(n.i)(u),Object(n.i)(l)]}},825:function(t,e,i){"use strict";e.a={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},826:function(t,e,i){"use strict";e.a={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},827:function(t,e,i){"use strict";var n=i(571),r=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=function(t){function e(e){var i=this,r="Assertion failed. See https://openlayers.org/en/"+("latest"===n.a?n.a:"v"+n.a.split("-")[0])+"/doc/errors/#"+e+" for details.";return(i=t.call(this,r)||this).code=e,i.name="AssertionError",i.message=r,i}return r(e,t),e}(Error);e.a=o},828:function(t,e,i){"use strict";function n(t,e,i){var n=void 0!==i?t.toFixed(i):""+t,r=n.indexOf(".");return(r=-1===r?n.length:r)>e?n:new Array(1+e-r).join("0")+n}function r(t,e){for(var i=(""+t).split("."),n=(""+e).split("."),r=0;r<Math.max(i.length,n.length);r++){var o=parseInt(i[r]||"0",10),a=parseInt(n[r]||"0",10);if(o>a)return 1;if(a>o)return-1}return 0}i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return r}))},829:function(t,e,i){"use strict";var n=i(593),r=i(602),o=i(571),a=i(595),s=i(567),c=i(576),l=i(588),u=i(630),h=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),p=Object(a.c)(),f=function(t){function e(){var e=t.call(this)||this;return e.extent_=Object(s.j)(),e.extentRevision_=-1,e.simplifiedGeometryMaxMinSquaredTolerance=0,e.simplifiedGeometryRevision=0,e.simplifyTransformedInternal=Object(l.d)((function(t,e,i){if(!i)return this.getSimplifiedGeometry(e);var n=this.clone();return n.applyTransform(i),n.getSimplifiedGeometry(e)})),e}return h(e,t),e.prototype.simplifyTransformed=function(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)},e.prototype.clone=function(){return Object(o.b)()}
1,e.prototype.closestPointXY=function(t,e,i,n){return Object(o.b)()},e.prototype.containsXY=function(t,e){var i=this.getClosestPoint([t,e]);return i[0]===t&&i[1]===e},e.prototype.getClosestPoint=function(t,e){var i=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],i,1/0),i},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){return Object(o.b)()},e.prototype.getExtent=function(t){if(this.extentRevision_!=this.getRevision()){var e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&Object(s.l)(e),this.extentRevision_=this.getRevision()}return Object(s.J)(this.extent_,t)},e.prototype.rotate=function(t,e){Object(o.b)()},e.prototype.scale=function(t,e,i){Object(o.b)()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return Object(o.b)()},e.prototype.getType=function(){return Object(o.b)()},e.prototype.applyTransform=function(t){Object(o.b)()},e.prototype.intersectsExtent=function(t){return Object(o.b)()},e.prototype.translate=function(t,e){Object(o.b)()},e.prototype.transform=function(t,e){var i=Object(c.f)(t),n=i.getUnits()==r.b.TILE_PIXELS?function(t,n,r){var o=i.getExtent(),l=i.getWorldExtent(),h=Object(s.A)(l)/Object(s.A)(o);return Object(a.b)(p,l[0],l[3],h,-h,0,0,0),Object(u.c)(t,0,t.length,r,p,n),Object(c.h)(i,e)(t,n,r)}:Object(c.h)(i,e);return this.applyTransform(n),this},e}(n.a);e.a=f},830:function(t,e,i){"use strict";e.a={FRACTION:"fraction",PIXELS:"pixels"}},831:function(t,e,i){"use strict";var n=i(632),r=i(570),o=i(571),a=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),s=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o.extent=e,o.pixelRatio_=n,o.resolution=i,o.state=r,o}return a(e,t),e.prototype.changed=function(){this.dispatchEvent(r.a.CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return Object(o.b)()},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(){Object(o.b)()},e}(n.a);e.a=s},832:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i(633),r=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 i=this.cache_[e];0!==(3&t++)||i.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},t.prototype.get=function(t,e,i){var n=o(t,e,i);return n in this.cache_?this.cache_[n]:null},t.prototype.set=function(t,e,i,n){var r=o(t,e,i);this.cache_[r]=n,++this.cacheSize_},t.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},t}();function o(t,e,i){return e+":"+t+":"+(i?Object(n.b)(i):"null")}var a=new r},833:function(t,e,i){"use strict";var n=i(571),r=i(634),o=function(){function t(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=Object(r.c)(t.scale),this.displacement_=t.displacement}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()})},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.getAnchor=function(){return Object(n.b)()},t.prototype.getImage=function(t){return Object(n.b)()},t.prototype.getHitDetectionImage=function(){return Object(n.b)()},t.prototype.getPixelRatio=function(t){return 1},t.prototype.getImageState=function(){return Object(n.b)()},t.prototype.getImageSize=function(){return Object(n.b)()},t.prototype.getHitDetectionImageSize=function(){return Object(n.b)()},t.prototype.getOrigin=function(){return Object(n.b)()},t.prototype.getSize=function(){return Object(n.b)()},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_=Object(r.c)(t)},t.prototype.listenImageChange=function(t){Object(n.b)()},t.prototype.load=function(){Object(n.b)()},t.prototype.unlistenImageChange=function(t){Object(n.b)()},t}();e.a=o}
1,834:function(t,e,i){"use strict";e.a={POINT:"point",LINE:"line"}},835:function(t,e,i){"use strict";function n(t,e,i,n){for(var r=t[e],o=t[e+1],a=0,s=e+n;s<i;s+=n){var c=t[s],l=t[s+1];a+=Math.sqrt((c-r)*(c-r)+(l-o)*(l-o)),r=c,o=l}return a}i.d(e,"a",(function(){return n}))},836:function(t,e,i){"use strict";var n=i(603),r=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=function(t){function e(e,i,n,r){var o=t.call(this,e)||this;return o.inversePixelTransform=i,o.frameState=n,o.context=r,o}return r(e,t),e}(n.a);e.a=o},837:function(t,e,i){t.exports=function(){"use strict";function t(t,n,r,o,a){!function t(i,n,r,o,a){for(;o>r;){if(o-r>600){var s=o-r+1,c=n-r+1,l=Math.log(s),u=.5*Math.exp(2*l/3),h=.5*Math.sqrt(l*u*(s-u)/s)*(c-s/2<0?-1:1);t(i,n,Math.max(r,Math.floor(n-c*u/s+h)),Math.min(o,Math.floor(n+(s-c)*u/s+h)),a)}var p=i[n],f=r,d=o;for(e(i,r,n),a(i[o],p)>0&&e(i,r,o);f<d;){for(e(i,f,d),f++,d--;a(i[f],p)<0;)f++;for(;a(i[d],p)>0;)d--}0===a(i[r],p)?e(i,r,d):e(i,++d,o),d<=n&&(r=d+1),n<=d&&(o=d-1)}}(t,n,r||0,o||t.length-1,a||i)}function e(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function i(t,e){return t<e?-1:t>e?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 r(t,e,i){if(!i)return e.indexOf(t);for(var n=0;n<e.length;n++)if(i(t,e[n]))return n;return-1}function o(t,e){a(t,0,t.children.length,e,t)}function a(t,e,i,n,r){r||(r=d(null)),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var o=e;o<i;o++){var a=t.children[o];s(r,t.leaf?n(a):a)}return r}function s(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function c(t,e){return t.minX-e.minX}function l(t,e){return t.minY-e.minY}function u(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function f(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=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 g(e,i,n,r,o){for(var a=[i,n];a.length;)if(!((n=a.pop())-(i=a.pop())<=r)){var s=i+Math.ceil((n-i)/r/2)*r;t(e,s,i,n,o),a.push(i,s,s,n)}}return n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(t){var e=this.data,i=[];if(!f(t,e))return i;for(var n=this.toBBox,r=[];e;){for(var o=0;o<e.children.length;o++){var a=e.children[o],s=e.leaf?n(a):a;f(t,s)&&(e.leaf?i.push(a):p(t,s)?this._all(a,i):r.push(a))}e=r.pop()}return i},n.prototype.collides=function(t){var e=this.data;if(!f(t,e))return!1;for(var i=[];e;){for(var n=0;n<e.children.length;n++){var r=e.children[n],o=e.leaf?this.toBBox(r):r;if(f(t,o)){if(e.leaf||p(t,o))return!0;i.push(r)}}e=i.pop()}return!1},n.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var i=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===i.height)this._splitRoot(this.data,i);else{if(this.data.height<i.height){var n=this.data;this.data=i,i=n}this._insert(i,this.data.height-i.height-1,!0)}else this.data=i;return this},n.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},n.prototype.clear=function(){return this.data=d([]),this},n.prototype.remove=function(t,e){if(!t)return this;for(var i,n,o,a=this.data,s=this.toBBox(t),c=[],l=[];a||c.length;){if(a||(a=c.pop(),n=c[c.length-1],i=l.pop(),o=!0),a.leaf){var u=r(t,a.children,e);if(-1!==u)return a.children.splice(u,1),c.push(a),this._condense(c),this}o||a.leaf||!p(a,s)?n?(i++,a=n.children[i],o=!1):a=null:(c.push(a),l.push(i),i=0,n=a,a=a.children[0])}return this},n.prototype.toBBox=function(t){return t},n.prototype.compareMinX=function(t,e){return t.minX-e.minX},n.prototype.compareMinY=function(t,e){return t.minY-e.minY},n.prototype.toJSON=function(){return this.data},n.prototype.fromJSON=function(t){return this.data=t,this},n.prototype._all=function(t,e){for(var i=[];t;)t.leaf?e.push.apply(e,t.children):i.push.apply(i,t.children),t=i.pop();return e}
1,n.prototype._build=function(t,e,i,n){var r,a=i-e+1,s=this._maxEntries;if(a<=s)return o(r=d(t.slice(e,i+1)),this.toBBox),r;n||(n=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,n-1))),(r=d([])).leaf=!1,r.height=n;var c=Math.ceil(a/s),l=c*Math.ceil(Math.sqrt(s));g(t,e,i,l,this.compareMinX);for(var u=e;u<=i;u+=l){var h=Math.min(u+l-1,i);g(t,u,h,c,this.compareMinY);for(var p=u;p<=h;p+=c){var f=Math.min(p+c-1,h);r.children.push(this._build(t,p,f,n-1))}}return o(r,this.toBBox),r},n.prototype._chooseSubtree=function(t,e,i,n){for(;n.push(e),!e.leaf&&n.length-1!==i;){for(var r=1/0,o=1/0,a=void 0,s=0;s<e.children.length;s++){var c=e.children[s],l=u(c),h=(p=t,f=c,(Math.max(f.maxX,p.maxX)-Math.min(f.minX,p.minX))*(Math.max(f.maxY,p.maxY)-Math.min(f.minY,p.minY))-l);h<o?(o=h,r=l<r?l:r,a=c):h===o&&l<r&&(r=l,a=c)}e=a||e.children[0]}var p,f;return e},n.prototype._insert=function(t,e,i){var n=i?t:this.toBBox(t),r=[],o=this._chooseSubtree(n,this.data,e,r);for(o.children.push(t),s(o,n);e>=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(n,r,e)},n.prototype._split=function(t,e){var i=t[e],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);var a=this._chooseSplitIndex(i,r,n),s=d(i.children.splice(a,i.children.length-a));s.height=i.height,s.leaf=i.leaf,o(i,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(i,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,i){for(var n,r,o,s,c,l,h,p=1/0,f=1/0,d=e;d<=i-e;d++){var g=a(t,0,d,this.toBBox),_=a(t,d,i,this.toBBox),y=(r=g,o=_,s=Math.max(r.minX,o.minX),c=Math.max(r.minY,o.minY),l=Math.min(r.maxX,o.maxX),h=Math.min(r.maxY,o.maxY),Math.max(0,l-s)*Math.max(0,h-c)),v=u(g)+u(_);y<p?(p=y,n=d,f=v<f?v:f):y===p&&v<f&&(f=v,n=d)}return n||i-e},n.prototype._chooseSplitAxis=function(t,e,i){var n=t.leaf?this.compareMinX:c,r=t.leaf?this.compareMinY:l;this._allDistMargin(t,e,i,n)<this._allDistMargin(t,e,i,r)&&t.children.sort(n)},n.prototype._allDistMargin=function(t,e,i,n){t.children.sort(n);for(var r=this.toBBox,o=a(t,0,e,r),c=a(t,i-e,i,r),l=h(o)+h(c),u=e;u<i-e;u++){var p=t.children[u];s(o,t.leaf?r(p):p),l+=h(o)}for(var f=i-e-1;f>=e;f--){var d=t.children[f];s(c,t.leaf?r(d):d),l+=h(c)}return l},n.prototype._adjustParentBBoxes=function(t,e,i){for(var n=i;n>=0;n--)s(e[n],t)},n.prototype._condense=function(t){for(var e=t.length-1,i=void 0;e>=0;e--)0===t[e].children.length?e>0?(i=t[e-1].children).splice(i.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},n}()},838:function(t,e,i){"use strict";i.d(e,"c",(function(){return c})),i.d(e,"a",(function(){return u}));var n=i(840),r=i(839),o=(i(581),i(1050)),a=i(577),s=function(){function t(t){var e=t||{};this.geometry_=null,this.geometryFunction_=h,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.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,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.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_=h,this.geometry_=t},t.prototype.setZIndex=function(t){this.zIndex_=t},t}();function c(t){var e;if("function"===typeof t)e=t;else{var i;if(Array.isArray(t))i=t;else Object(a.a)("function"===typeof t.getZIndex,41),i=[t];e=function(){return i}}return e}var l=null;function u(t,e){if(!l){var i=new r.a({color:"rgba(255,255,255,0.4)"}),a=new o.a({color:"#3399CC",width:1.25});l=[new s({image:new n.a({fill:i,stroke:a,radius:5}),fill:i,stroke:a})]}return l}function h(t){return t.getGeometry()}e.b=s}
1,839:function(t,e,i){"use strict";var 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}();e.a=n},840:function(t,e,i){"use strict";var n=i(841),r=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=function(t){function e(e){var i=e||{};return t.call(this,{points:1/0,fill:i.fill,radius:i.radius,stroke:i.stroke,scale:void 0!==i.scale?i.scale:1,rotation:void 0!==i.rotation?i.rotation:0,rotateWithView:void 0!==i.rotateWithView&&i.rotateWithView,displacement:void 0!==i.displacement?i.displacement:[0,0]})||this}return r(e,t),e.prototype.clone=function(){var t=this.getScale(),i=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()});return i.setOpacity(this.getOpacity()),i},e.prototype.setRadius=function(t){this.radius_=t,this.render()},e}(n.a);e.a=o},841:function(t,e,i){"use strict";var n=i(610),r=i(833),o=i(633),a=i(687),s=i(592),c=i(596),l=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),u=function(t){function e(e){var i=this,n=void 0!==e.rotateWithView&&e.rotateWithView;return(i=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]})||this).canvas_={},i.hitDetectionCanvas_=null,i.fill_=void 0!==e.fill?e.fill:null,i.origin_=[0,0],i.points_=e.points,i.radius_=void 0!==e.radius?e.radius:e.radius1,i.radius2_=e.radius2,i.angle_=void 0!==e.angle?e.angle:0,i.stroke_=void 0!==e.stroke?e.stroke:null,i.anchor_=null,i.size_=null,i.imageSize_=null,i.hitDetectionImageSize_=null,i.render(),i}return l(e,t),e.prototype.clone=function(){var t=this.getScale(),i=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()});return i.setOpacity(this.getOpacity()),i},e.prototype.getAnchor=function(){return this.anchor_},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.getHitDetectionImage=function(){if(!this.hitDetectionCanvas_){var t=this.createRenderOptions();this.createHitDetectionCanvas_(t)}return this.hitDetectionCanvas_},e.prototype.getImage=function(t){if(!this.canvas_[t||1]){var e=this.createRenderOptions(),i=Object(s.a)(e.size*t||1,e.size*t||1);this.draw_(e,i,0,0,t||1),this.canvas_[t||1]=i.canvas}return this.canvas_[t||1]},e.prototype.getPixelRatio=function(t){return t},e.prototype.getImageSize=function(){return this.imageSize_},e.prototype.getHitDetectionImageSize=function(){return this.hitDetectionImageSize_},e.prototype.getImageState=function(){return n.a.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.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.createRenderOptions=function(){var t,e=c.e,i=c.h,n=0,r=null,o=0,s=0;return this.stroke_&&(null===(t=this.stroke_.getColor())&&(t=c.l),t=Object(a.a)(t),void 0===(s=this.stroke_.getWidth())&&(s=c.i),r=this.stroke_.getLineDash(),o=this.stroke_.getLineDashOffset(),void 0===(i=this.stroke_.getLineJoin())&&(i=c.h),void 0===(e=this.stroke_.getLineCap())&&(e=c.e),void 0===(n=this.stroke_.getMiterLimit())&&(n=c.j)),{strokeStyle:t,strokeWidth:s,size:2*(this.radius_+s)+1,lineCap:e,lineDash:r,lineDashOffset:o,lineJoin:i,miterLimit:n}},e.prototype.render=function(){var t=this.createRenderOptions(),e=Object(s.a)(t.size,t.size);this.draw_(t,e,0,0,1),this.canvas_={},this.canvas_[1]=e.canvas;var i=e.canvas.width,n=i,r=this.getDisplacement();this.hitDetectionImageSize_=[t.size,t.size],this.createHitDetectionCanvas_(t),this.anchor_=[i/2-r[0],i/2+r[1]],this.size_=[i,i],this.imageSize_=[n,n]}
1,e.prototype.draw_=function(t,e,i,n,r){var o,s,l;e.setTransform(r,0,0,r,0,0),e.translate(i,n),e.beginPath();var u=this.points_;if(u===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var h=void 0!==this.radius2_?this.radius2_:this.radius_;for(h!==this.radius_&&(u*=2),o=0;o<=u;o++)s=2*o*Math.PI/u-Math.PI/2+this.angle_,l=o%2===0?this.radius_:h,e.lineTo(t.size/2+l*Math.cos(s),t.size/2+l*Math.sin(s))}if(this.fill_){var p=this.fill_.getColor();null===p&&(p=c.c),e.fillStyle=Object(a.a)(p),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,e.setLineDash&&t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke()),e.closePath()},e.prototype.createHitDetectionCanvas_=function(t){if(this.hitDetectionCanvas_=this.getImage(1),this.fill_){var e=this.fill_.getColor(),i=0;if("string"===typeof e&&(e=Object(o.a)(e)),null===e?i=1:Array.isArray(e)&&(i=4===e.length?e[3]:1),0===i){var n=Object(s.a)(t.size,t.size);this.hitDetectionCanvas_=n.canvas,this.drawHitDetectionCanvas_(t,n,0,0)}}},e.prototype.drawHitDetectionCanvas_=function(t,e,i,n){e.translate(i,n),e.beginPath();var r=this.points_;if(r===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var o=void 0!==this.radius2_?this.radius2_:this.radius_;o!==this.radius_&&(r*=2);var a=void 0,s=void 0,l=void 0;for(a=0;a<=r;a++)l=2*a*Math.PI/r-Math.PI/2+this.angle_,s=a%2===0?this.radius_:o,e.lineTo(t.size/2+s*Math.cos(l),t.size/2+s*Math.sin(l))}e.fillStyle=c.c,e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.stroke()),e.closePath()},e}(r.a);e.a=u},842:function(t,e,i){"use strict";e.a={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source"}},843:function(t,e,i){"use strict";var n=i(593),r=i(842),o=i(571),a=i(577),s=i(572),c=i(573),l=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),u=function(t){function e(e){var i=t.call(this)||this,n=Object(s.a)({},e);return n[r.a.OPACITY]=void 0!==e.opacity?e.opacity:1,Object(a.a)("number"===typeof n[r.a.OPACITY],64),n[r.a.VISIBLE]=void 0===e.visible||e.visible,n[r.a.Z_INDEX]=e.zIndex,n[r.a.MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,n[r.a.MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,n[r.a.MIN_ZOOM]=void 0!==e.minZoom?e.minZoom:-1/0,n[r.a.MAX_ZOOM]=void 0!==e.maxZoom?e.maxZoom:1/0,i.className_=void 0!==n.className?e.className:"ol-layer",delete n.className,i.setProperties(n),i.state_=null,i}return l(e,t),e.prototype.getClassName=function(){return this.className_},e.prototype.getLayerState=function(t){var e=this.state_||{layer:this,managed:void 0===t||t},i=this.getZIndex();return e.opacity=Object(c.a)(Math.round(100*this.getOpacity())/100,0,1),e.sourceState=this.getSourceState(),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==i?i:!1===e.managed?1/0: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 Object(o.b)()},e.prototype.getLayerStatesArray=function(t){return Object(o.b)()},e.prototype.getExtent=function(){return this.get(r.a.EXTENT)},e.prototype.getMaxResolution=function(){return this.get(r.a.MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(r.a.MIN_RESOLUTION)},e.prototype.getMinZoom=function(){return this.get(r.a.MIN_ZOOM)},e.prototype.getMaxZoom=function(){return this.get(r.a.MAX_ZOOM)},e.prototype.getOpacity=function(){return this.get(r.a.OPACITY)},e.prototype.getSourceState=function(){return Object(o.b)()},e.prototype.getVisible=function(){return this.get(r.a.VISIBLE)},e.prototype.getZIndex=function(){return this.get(r.a.Z_INDEX)},e.prototype.setExtent=function(t){this.set(r.a.EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(r.a.MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(r.a.MIN_RESOLUTION,t)},e.prototype.setMaxZoom=function(t){this.set(r.a.MAX_ZOOM,t)},e.prototype.setMinZoom=function(t){this.set(r.a.MIN_ZOOM,t)},e.prototype.setOpacity=function(t){Object(a.a)("number"===typeof t,64),this.set(r.a.OPACITY,t)},e.prototype.setVisible=function(t){this.set(r.a.VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(r.a.Z_INDEX,t)},e.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),t.prototype.disposeInternal.call(this)},e}(n.a);e.a=u}
1,844:function(t,e,i){"use strict";e.a={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"}},845:function(t,e,i){"use strict";var n=i(593),r=i(570),o=i(577),a=i(589),s=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),c=function(t){function e(e){var i=t.call(this)||this;if(i.id_=void 0,i.geometryName_="geometry",i.style_=null,i.styleFunction_=void 0,i.geometryChangeKey_=null,i.addEventListener(Object(n.b)(i.geometryName_),i.handleGeometryChanged_),e)if("function"===typeof e.getSimplifiedGeometry){var r=e;i.setGeometry(r)}else{var o=e;i.setProperties(o)}return i}return s(e,t),e.prototype.clone=function(){var t=new e(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());var i=this.getGeometry();i&&t.setGeometry(i.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_&&(Object(a.c)(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=Object(a.a)(t,r.a.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){if("function"===typeof t)return t;var e;Array.isArray(t)?e=t:(Object(o.a)("function"===typeof t.getZIndex,41),e=[t]);return function(){return e}}(t):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){this.removeEventListener(Object(n.b)(this.geometryName_),this.handleGeometryChanged_),this.geometryName_=t,this.addEventListener(Object(n.b)(this.geometryName_),this.handleGeometryChanged_),this.handleGeometryChanged_()},e}(n.a);e.a=c},846:function(t,e,i){"use strict";function n(t,e,i,n,r){for(var o,a=[t[e],t[e+1]],s=[];e+n<i;e+=n){if(s[0]=t[e+n],s[1]=t[e+n+1],o=r(a,s))return o;a[0]=s[0],a[1]=s[1]}return!1}i.d(e,"a",(function(){return n}))},847:function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s}));var n=i(578),r=i(573);function o(t,e,i,o,a,s,c){var l,u,h=(i-e)/o;if(1===h)l=e;else if(2===h)l=e,u=a;else if(0!==h){for(var p=t[e],f=t[e+1],d=0,g=[0],_=e+o;_<i;_+=o){var y=t[_],v=t[_+1];d+=Math.sqrt((y-p)*(y-p)+(v-f)*(v-f)),g.push(d),p=y,f=v}var m=a*d,O=Object(n.a)(g,m);O<0?(u=(m-g[-O-2])/(g[-O-1]-g[-O-2]),l=e+(-O-2)*o):l=e+O*o}var b=c>1?c:2,x=s||new Array(b);for(_=0;_<b;++_)x[_]=void 0===l?NaN:void 0===u?t[l+_]:Object(r.c)(t[l+_],t[l+o+_],u);return x}function a(t,e,i,n,o,a){if(i==e)return null;var s;if(o<t[e+n-1])return a?((s=t.slice(e,e+n))[n-1]=o,s):null;if(t[i-1]<o)return a?((s=t.slice(i-n,i))[n-1]=o,s):null;if(o==t[e+n-1])return t.slice(e,e+n);for(var c=e/n,l=i/n;c<l;){var u=c+l>>1;o<t[(u+1)*n-1]?l=u:c=u+1}var h=t[c*n-1];if(o==h)return t.slice((c-1)*n,(c-1)*n+n);var p=(o-h)/(t[(c+1)*n-1]-h);s=[];for(var f=0;f<n-1;++f)s.push(Object(r.c)(t[(c-1)*n+f],t[c*n+f],p));return s.push(o),s}function s(t,e,i,n,r,o,s){if(s)return a(t,e,i[i.length-1],n,r,o);var c;if(r<t[n-1])return o?((c=t.slice(0,n))[n-1]=r,c):null;if(t[t.length-1]<r)return o?((c=t.slice(t.length-n))[n-1]=r,c):null;for(var l=0,u=i.length;l<u;++l){var h=i[l];if(e!=h){if(r<t[e+n-1])return null;if(r<=t[h-1])return a(t,e,h,n,r,!1);e=h}}return null}},848:function(t,e,i){"use strict";var n=i(631),r=i(581),o=i(746),a=i(609),s=i(655),c=i(567),l=i(620),u=i(635),h=i(578),p=i(619),f=i(847),d=i(690),g=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),_=function(t){function e(e,i,n){var r=t.call(this)||this;if(r.ends_=[],r.maxDelta_=-1,r.maxDeltaRevision_=-1,Array.isArray(e[0]))r.setCoordinates(e,i);else if(void 0!==i&&n)r.setFlatCoordinates(i,e),r.ends_=n;else{for(var o=r.getLayout(),a=e,s=[],c=[],l=0,u=a.length;l<u;++l){var p=a[l];0===l&&(o=p.getLayout()),Object(h.c)(s,p.getFlatCoordinates()),c.push(s.length)}r.setFlatCoordinates(o,s),r.ends_=c}return r}return g(e,t),e.prototype.appendLineString=function(t){this.flatCoordinates?Object(h.c)(this.flatCoordinates,t.getFlatCoordinates().slice()):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}
1,e.prototype.closestPointXY=function(t,e,i,n){return n<Object(c.e)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(s.a)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(s.b)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,i,n))},e.prototype.getCoordinateAtM=function(t,e,i){if(this.layout!=n.a.XYM&&this.layout!=n.a.XYZM||0===this.flatCoordinates.length)return null;var r=void 0!==e&&e,o=void 0!==i&&i;return Object(f.c)(this.flatCoordinates,0,this.ends_,this.stride,t,r,o)},e.prototype.getCoordinates=function(){return Object(p.b)(this.flatCoordinates,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getLineString=function(t){return t<0||this.ends_.length<=t?null:new o.a(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLineStrings=function(){for(var t=this.flatCoordinates,e=this.ends_,i=this.layout,n=[],r=0,a=0,s=e.length;a<s;++a){var c=e[a],l=new o.a(t.slice(r,c),i);n.push(l),r=c}return n},e.prototype.getFlatMidpoints=function(){for(var t=[],e=this.flatCoordinates,i=0,n=this.ends_,r=this.stride,o=0,a=n.length;o<a;++o){var s=n[o],c=Object(f.a)(e,i,s,r,.5);Object(h.c)(t,c),i=s}return t},e.prototype.getSimplifiedGeometryInternal=function(t){var i=[],r=[];return i.length=Object(u.b)(this.flatCoordinates,0,this.ends_,this.stride,t,i,0,r),new e(i,n.a.XY,r)},e.prototype.getType=function(){return r.a.MULTI_LINE_STRING},e.prototype.intersectsExtent=function(t){return Object(d.b)(this.flatCoordinates,0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var i=Object(l.c)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()},e}(a.a);e.a=_},849:function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return a}));var n=i(691),r=i(578);function o(t,e,i,o,a,s,c){for(var l,u,h,p,f,d,g,_=a[s+1],y=[],v=0,m=i.length;v<m;++v){var O=i[v];for(p=t[O-o],d=t[O-o+1],l=e;l<O;l+=o)f=t[l],g=t[l+1],(_<=d&&g<=_||d<=_&&_<=g)&&(h=(_-d)/(g-d)*(f-p)+p,y.push(h)),p=f,d=g}var b=NaN,x=-1/0;for(y.sort(r.f),p=y[0],l=1,u=y.length;l<u;++l){f=y[l];var E=Math.abs(f-p);E>x&&(h=(p+f)/2,Object(n.c)(t,e,i,o,h,_)&&(b=h,x=E)),p=f}return isNaN(b)&&(b=a[s]),c?(c.push(b,_,x),c):[b,_,x]}function a(t,e,i,n,r){for(var a=[],s=0,c=i.length;s<c;++s){var l=i[s];a=o(t,e,l,n,r,2*s,a),e=l[l.length-1]}return a}},850:function(t,e,i){"use strict";var n=function(t){function e(e){var i=e||{};t.call(this,i),this.mapTypeId_=void 0!==i.mapTypeId?i.mapTypeId:google.maps.MapTypeId.ROADMAP,this.styles_=i.styles?i.styles:null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getMapTypeId=function(){return this.mapTypeId_},e.prototype.getStyles=function(){return this.styles_},e}(i(860).a);e.a=n},851:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=function(){function t(t,e,i,n){this.minX=t,this.maxX=e,this.minY=i,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.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.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 r(t,e,i,r,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=i,o.maxY=r,o):new n(t,e,i,r)}e.b=n}
1,852:function(t,e,i){"use strict";var n=i(614),r=i(613),o=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),a=function(t){function e(e){var i=this,n=e||{};return(i=t.call(this,n)||this).condition_=n.condition?n.condition:r.i,i.lastAngle_=void 0,i.lastMagnitude_=void 0,i.lastScaleDelta_=0,i.duration_=void 0!==n.duration?n.duration:400,i}return o(e,t),e.prototype.handleDragEvent=function(t){if(Object(r.f)(t)){var e=t.map,i=e.getSize(),n=t.pixel,o=n[0]-i[0]/2,a=i[1]/2-n[1],s=Math.atan2(a,o),c=Math.sqrt(o*o+a*a),l=e.getView();if(void 0!==this.lastAngle_){var u=this.lastAngle_-s;l.adjustRotationInternal(u)}this.lastAngle_=s,void 0!==this.lastMagnitude_&&l.adjustResolutionInternal(this.lastMagnitude_/c),void 0!==this.lastMagnitude_&&(this.lastScaleDelta_=this.lastMagnitude_/c),this.lastMagnitude_=c}},e.prototype.handleUpEvent=function(t){if(!Object(r.f)(t))return!0;var e=t.map.getView(),i=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,i),this.lastScaleDelta_=0,!1},e.prototype.handleDownEvent=function(t){return!!Object(r.f)(t)&&(!!this.condition_(t)&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0))},e}(n.b);e.a=a},853:function(t,e,i){"use strict";i.d(e,"a",(function(){return u})),i.d(e,"b",(function(){return h}));var n=i(826),r=i(1051),o=i(602),a=i(750),s=i(576),c=i(567),l=i(634);function u(t){var e=t.getDefaultTileGrid();return e||(e=function(t,e,i,o){return function(t,e,i,o){var a=void 0!==o?o:n.a.TOP_LEFT,s=p(t,e,i);return new r.a({extent:t,origin:Object(c.y)(t,a),resolutions:s,tileSize:i})}(f(t),e,i,o)}(t),t.setDefaultTileGrid(e)),e}function h(t,e,i){var n=e[0],r=t.getTileCoordCenter(e),o=f(i);if(Object(c.f)(o,r))return e;var a=Object(c.F)(o),s=Math.ceil((o[0]-r[0])/a);return r[0]+=a*s,t.getTileCoordForCoordAndZ(r,n)}function p(t,e,i,n){for(var r=void 0!==e?e:a.a,o=Object(c.A)(t),s=Object(c.F)(t),u=Object(l.c)(void 0!==i?i:a.b),h=n>0?n:Math.max(s/u[0],o/u[1]),p=r+1,f=new Array(p),d=0;d<p;++d)f[d]=h/Math.pow(2,d);return f}function f(t){var e=(t=Object(s.f)(t)).getExtent();if(!e){var i=180*s.a[o.b.DEGREES]/t.getMetersPerUnit();e=Object(c.k)(-i,-i,i,i)}return e}},855:function(t,e,i){"use strict";var n=i(637),r=i(837),o=i.n(r),a=i(572),s=i(838),c=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),l="renderOrder",u=function(t){function e(e){var i=this,n=e||{},r=Object(a.a)({},n);return delete r.style,delete r.renderBuffer,delete r.updateWhileAnimating,delete r.updateWhileInteracting,(i=t.call(this,r)||this).declutter_=void 0!==n.declutter&&n.declutter,i.renderBuffer_=void 0!==n.renderBuffer?n.renderBuffer:100,i.style_=null,i.styleFunction_=void 0,i.setStyle(n.style),i.updateWhileAnimating_=void 0!==n.updateWhileAnimating&&n.updateWhileAnimating,i.updateWhileInteracting_=void 0!==n.updateWhileInteracting&&n.updateWhileInteracting,i}return c(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(l)},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.a(9)),this.getRenderer().renderDeclutter(t)},e.prototype.setRenderOrder=function(t){this.set(l,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:s.a,this.styleFunction_=null===t?void 0:Object(s.c)(this.style_),this.changed()},e}(n.a),h={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},p=[h.FILL],f=[h.STROKE],d=[h.BEGIN_PATH],g=[h.CLOSE_PATH],_=h,y=i(581),v=i(825),m=function(){function t(){}
1return t.prototype.drawCustom=function(t,e,i){},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}(),O=i(687),b=i(567),x=i(596),E=i(578),j=i(619),C=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),w=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o.tolerance=e,o.maxExtent=i,o.pixelRatio=r,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 i=this.getBufferedMaxExtent(),n=this.tmpCoordinate_,r=this.coordinates,o=r.length,a=0,s=t.length;a<s;a+=e)n[0]=t[a],n[1]=t[a+1],Object(b.f)(i,n)&&(r[o++]=n[0],r[o++]=n[1]);return o},e.prototype.appendFlatLineCoordinates=function(t,e,i,n,r,o){var a=this.coordinates,s=a.length,c=this.getBufferedMaxExtent();o&&(e+=n);var l,u,h,p=t[e],f=t[e+1],d=this.tmpCoordinate_,g=!0;for(l=e+n;l<i;l+=n)d[0]=t[l],d[1]=t[l+1],(h=Object(b.i)(c,d))!==u?(g&&(a[s++]=p,a[s++]=f,g=!1),a[s++]=d[0],a[s++]=d[1]):h===v.a.INTERSECTING?(a[s++]=d[0],a[s++]=d[1],g=!1):g=!0,p=d[0],f=d[1],u=h;return(r&&g||l===e+n)&&(a[s++]=p,a[s++]=f),s},e.prototype.drawCustomCoordinates_=function(t,e,i,n,r){for(var o=0,a=i.length;o<a;++o){var s=i[o],c=this.appendFlatLineCoordinates(t,e,s,n,!1,!1);r.push(c),e=s}return e},e.prototype.drawCustom=function(t,e,i){this.beginGeometry(t,e);var n,r,o,a,s,c=t.getType(),l=t.getStride(),u=this.coordinates.length;if(c==y.a.MULTI_POLYGON){n=t.getOrientedFlatCoordinates(),a=[];var h=t.getEndss();s=0;for(var p=0,f=h.length;p<f;++p){var d=[];s=this.drawCustomCoordinates_(n,s,h[p],l,d),a.push(d)}this.instructions.push([_.CUSTOM,u,a,t,i,j.c])}else c==y.a.POLYGON||c==y.a.MULTI_LINE_STRING?(o=[],n=c==y.a.POLYGON?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),s=this.drawCustomCoordinates_(n,0,t.getEnds(),l,o),this.instructions.push([_.CUSTOM,u,o,t,i,j.b])):c==y.a.LINE_STRING||c==y.a.CIRCLE?(n=t.getFlatCoordinates(),r=this.appendFlatLineCoordinates(n,0,n.length,l,!1,!1),this.instructions.push([_.CUSTOM,u,r,t,i,j.a])):c==y.a.MULTI_POINT?(n=t.getFlatCoordinates(),(r=this.appendFlatPointCoordinates(n,l))>u&&this.instructions.push([_.CUSTOM,u,r,t,i,j.a])):c==y.a.POINT&&(n=t.getFlatCoordinates(),this.coordinates.push(n[0],n[1]),r=this.coordinates.length,this.instructions.push([_.CUSTOM,u,r,t,i]));this.endGeometry(e)},e.prototype.beginGeometry=function(t,e){this.beginGeometryInstruction1_=[_.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[_.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 i,n,r=e.length,o=-1;for(t=0;t<r;++t)(n=(i=e[t])[0])==_.END_GEOMETRY?o=t:n==_.BEGIN_GEOMETRY&&(i[2]=t,Object(E.g)(this.hitDetectionInstructions,o,t),o=-1)},e.prototype.setFillStrokeStyle=function(t,e){var i=this.state;if(t){var n=t.getColor();i.fillStyle=Object(O.a)(n||x.c)}else i.fillStyle=void 0;if(e){var r=e.getColor();i.strokeStyle=Object(O.a)(r||x.l);var o=e.getLineCap();i.lineCap=void 0!==o?o:x.e;var a=e.getLineDash();i.lineDash=a?a.slice():x.f;var s=e.getLineDashOffset();i.lineDashOffset=s||x.g;var c=e.getLineJoin();i.lineJoin=void 0!==c?c:x.h;var l=e.getWidth();i.lineWidth=void 0!==l?l:x.i;var u=e.getMiterLimit();i.miterLimit=void 0!==u?u:x.j,i.lineWidth>this.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0},e.prototype.createFill=function(t){var e=t.fillStyle,i=[_.SET_FILL_STYLE,e];return"string"!==typeof e&&i.push(!0),i},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[_.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 i=t.fillStyle;"string"===typeof i&&t.currentFillStyle==i||(void 0!==i&&this.instructions.push(e.call(this,t)),t.currentFillStyle=i)},e.prototype.updateStrokeStyle=function(t,e){var i=t.strokeStyle,n=t.lineCap,r=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,s=t.lineWidth,c=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=n||r!=t.currentLineDash&&!Object(E.b)(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=s||t.currentMiterLimit!=c)&&(void 0!==i&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=n,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=s,t.currentMiterLimit=c)},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=[_.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(b.d)(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Object(b.c)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(m),S=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),I=function(t){function e(e,i,n,r){var o=t.call(this,e,i,n,r)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anch
1orX_=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.declutterImageWithText_=void 0,o}return S(e,t),e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var i=t.getFlatCoordinates(),n=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(i,n);this.instructions.push([_.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,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.declutterImageWithText_]),this.hitDetectionInstructions.push([_.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var i=t.getFlatCoordinates(),n=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(i,n);this.instructions.push([_.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,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.declutterImageWithText_]),this.hitDetectionInstructions.push([_.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,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 i=t.getAnchor(),n=t.getSize(),r=t.getHitDetectionImage(),o=t.getImage(this.pixelRatio),a=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=r,this.image_=o,this.height_=n[1],this.opacity_=t.getOpacity(),this.originX_=a[0],this.originY_=a[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=n[0],this.declutterImageWithText_=e},e}(w),R=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),T=function(t){function e(e,i,n,r){return t.call(this,e,i,n,r)||this}return R(e,t),e.prototype.drawFlatCoordinates_=function(t,e,i,n){var r=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,i,n,!1,!1),a=[_.MOVE_TO_LINE_TO,r,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),i},e.prototype.drawLineString=function(t,e){var i=this.state,n=i.strokeStyle,r=i.lineWidth;if(void 0!==n&&void 0!==r){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([_.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],d);var o=t.getFlatCoordinates(),a=t.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(f),this.endGeometry(e)}},e.prototype.drawMultiLineString=function(t,e){var i=this.state,n=i.strokeStyle,r=i.lineWidth;if(void 0!==n&&void 0!==r){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([_.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],d);for(var o=t.getEnds(),a=t.getFlatCoordinates(),s=t.getStride(),c=0,l=0,u=o.length;l<u;++l)c=this.drawFlatCoordinates_(a,c,o[l],s);this.hitDetectionInstructions.push(f),this.endGeometry(e)}},e.prototype.finish=function(){var e=this.state;return void 0!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(f),this.reverseHitDetectionInstructions(),this.state=null,t.prototype.finish.call(this)},e.prototype.applyStroke=function(e){void 0!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(f),e.lastStroke=this.coordinates.length),e.lastStroke=0,t.prototype.applyStroke.call(this,e),this.instructions.push(d)},e}(w),P=i(635),L=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),M=function(t){function e(e,i,n,r){return t.call(this,e,i,n,r)||this}
1return L(e,t),e.prototype.drawFlatCoordinatess_=function(t,e,i,n){var r=this.state,o=void 0!==r.fillStyle,a=void 0!==r.strokeStyle,s=i.length;this.instructions.push(d),this.hitDetectionInstructions.push(d);for(var c=0;c<s;++c){var l=i[c],u=this.coordinates.length,h=this.appendFlatLineCoordinates(t,e,l,n,!0,!a),y=[_.MOVE_TO_LINE_TO,u,h];this.instructions.push(y),this.hitDetectionInstructions.push(y),a&&(this.instructions.push(g),this.hitDetectionInstructions.push(g)),e=l}return o&&(this.instructions.push(p),this.hitDetectionInstructions.push(p)),a&&(this.instructions.push(f),this.hitDetectionInstructions.push(f)),e},e.prototype.drawCircle=function(t,e){var i=this.state,n=i.fillStyle,r=i.strokeStyle;if(void 0!==n||void 0!==r){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([_.SET_FILL_STYLE,x.c]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([_.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);var o=t.getFlatCoordinates(),a=t.getStride(),s=this.coordinates.length;this.appendFlatLineCoordinates(o,0,o.length,a,!1,!1);var c=[_.CIRCLE,s];this.instructions.push(d,c),this.hitDetectionInstructions.push(d,c),void 0!==i.fillStyle&&(this.instructions.push(p),this.hitDetectionInstructions.push(p)),void 0!==i.strokeStyle&&(this.instructions.push(f),this.hitDetectionInstructions.push(f)),this.endGeometry(e)}},e.prototype.drawPolygon=function(t,e){var i=this.state,n=i.fillStyle,r=i.strokeStyle;if(void 0!==n||void 0!==r){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([_.SET_FILL_STYLE,x.c]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([_.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);var o=t.getEnds(),a=t.getOrientedFlatCoordinates(),s=t.getStride();this.drawFlatCoordinatess_(a,0,o,s),this.endGeometry(e)}},e.prototype.drawMultiPolygon=function(t,e){var i=this.state,n=i.fillStyle,r=i.strokeStyle;if(void 0!==n||void 0!==r){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([_.SET_FILL_STYLE,x.c]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([_.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);for(var o=t.getEndss(),a=t.getOrientedFlatCoordinates(),s=t.getStride(),c=0,l=0,u=o.length;l<u;++l)c=this.drawFlatCoordinatess_(a,c,o[l],s);this.endGeometry(e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var e=this.tolerance;if(0!==e)for(var i=this.coordinates,n=0,r=i.length;n<r;++n)i[n]=Object(P.e)(i[n],e);return t.prototype.finish.call(this)},e.prototype.setFillStrokeStyles_=function(){var t=this.state;void 0!==t.fillStyle&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)},e}(w),A=i(834),F=i(571);function D(t,e,i,n,r){var o,a,s,c,l,u,h,p,f,d=i,g=i,_=0,y=0,v=i;for(o=i;o<n;o+=r){var m=e[o],O=e[o+1];void 0!==c&&(p=m-c,f=O-l,s=Math.sqrt(p*p+f*f),void 0!==u&&(y+=a,Math.acos((u*p+h*f)/(a*s))>t&&(y>_&&(_=y,d=v,g=o),y=0,v=o-r)),a=s,u=p,h=f),c=m,l=O}return(y+=s)>_?[v,o]:[d,g]}var k=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),G={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},N={Circle:M,Default:w,Image:I,LineString:T,Polygon:M,Text:function(t){function e(e,i,n,r){var o=t.call(this,e,i,n,r)||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 k(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 i=this.textFillState_,n=this.textStrokeState_,r=this.textState_;if(""!==this.text_&&r&&(i||n)){var o=this.coordinates,a=o.length,s=t.getType(),c=null,l=t.getStride();if(r.placement!==A.a.LINE||s!=y.a.LINE_STRING&&s!=y.a.MULTI_LINE_STRING&&s!=y.a.POLYGON&&s!=y.a.MULTI_POLYGON){var u=r.overflow?null:[];switch(s){case y.a.POINT:case y.a.MULTI_POINT:c=t.getFlatCoordinates();break;case y.a.LINE_STRING:c=t.getFlatMidpoint();break;case y.a.CIRCLE:c=t.getCenter();break;case y.a.MULTI_LINE_STRING:c=t.getFlatMidpoints(),l=2;break;case y.a.POLYGON:c=t.getFlatInteriorPoint(),r.overflow||u.push(c[2]/this.resolution),l=3;break;case y.a.MULTI_POLYGON:var h=t.getFlatInteriorPoints();c=[];for(C=0,w=h.length;C<w;C+=3)r.overflow||u.push(h[C+2]/this.resolution),c.push(h[C],h[C+1]);if(0===c.length)return;l=2}if((M=this.appendFlatPointCoordinates(c,l))===a)return;this.saveTextStates_(),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);var p=r.padding;
1if(p!=x.k&&(r.scale[0]<0||r.scale[1]<0)){var f=r.padding[0],d=r.padding[1],g=r.padding[2],v=r.padding[3];r.scale[0]<0&&(d=-d,v=-v),r.scale[1]<0&&(f=-f,g=-g),p=[f,d,g,v]}var m=this.pixelRatio;this.instructions.push([_.DRAW_IMAGE,a,M,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterImageWithText_,p==x.k?x.k:p.map((function(t){return t*m})),!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,u]);var O=1/m;this.hitDetectionInstructions.push([_.DRAW_IMAGE,a,M,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[O,O],NaN,this.declutterImageWithText_,p,!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,u]),this.endGeometry(e)}else{if(!Object(b.G)(this.getBufferedMaxExtent(),t.getExtent()))return;var E=void 0;if(c=t.getFlatCoordinates(),s==y.a.LINE_STRING)E=[c.length];else if(s==y.a.MULTI_LINE_STRING)E=t.getEnds();else if(s==y.a.POLYGON)E=t.getEnds().slice(0,1);else if(s==y.a.MULTI_POLYGON){var j=t.getEndss();E=[];for(var C=0,w=j.length;C<w;++C)E.push(j[C][0])}this.beginGeometry(t,e);for(var S=r.textAlign,I=0,R=void 0,T=0,P=E.length;T<P;++T){if(void 0==S){var L=D(r.maxAngle,c,I,E[T],l);I=L[0],R=L[1]}else R=E[T];for(var C=I;C<R;C+=l)o.push(c[C],c[C+1]);var M=o.length;I=E[T],this.drawChars_(a,M),a=M}this.endGeometry(e)}}},e.prototype.saveTextStates_=function(){var t=this.textStrokeState_,e=this.textState_,i=this.textFillState_,n=this.strokeKey_;t&&(n in this.strokeStates||(this.strokeStates[n]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));var r=this.textKey_;r in this.textStates||(this.textStates[r]={font:e.font,textAlign:e.textAlign||x.m,textBaseline:e.textBaseline||x.n,scale:e.scale});var o=this.fillKey_;i&&(o in this.fillStates||(this.fillStates[o]={fillStyle:i.fillStyle}))},e.prototype.drawChars_=function(t,e){var i=this.textStrokeState_,n=this.textState_,r=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();var s=this.pixelRatio,c=G[n.textBaseline],l=this.textOffsetY_*s,u=this.text_,h=i?i.lineWidth*Math.abs(n.scale[0])/2:0;this.instructions.push([_.DRAW_CHARS,t,e,c,n.overflow,a,n.maxAngle,s,l,r,h*s,u,o,1]),this.hitDetectionInstructions.push([_.DRAW_CHARS,t,e,c,n.overflow,a,n.maxAngle,1,l,r,h,u,o,1/s])},e.prototype.setTextStyle=function(t,e){var i,n,r;if(t){var o=t.getFill();o?((n=this.textFillState_)||(n={},this.textFillState_=n),n.fillStyle=Object(O.a)(o.getColor()||x.c)):(n=null,this.textFillState_=n);var a=t.getStroke();if(a){(r=this.textStrokeState_)||(r={},this.textStrokeState_=r);var s=a.getLineDash(),c=a.getLineDashOffset(),l=a.getWidth(),u=a.getMiterLimit();r.lineCap=a.getLineCap()||x.e,r.lineDash=s?s.slice():x.f,r.lineDashOffset=void 0===c?x.g:c,r.lineJoin=a.getLineJoin()||x.h,r.lineWidth=void 0===l?x.i:l,r.miterLimit=void 0===u?x.j:u,r.strokeStyle=Object(O.a)(a.getColor()||x.l)}else r=null,this.textStrokeState_=r;i=this.textState_;var h=t.getFont()||x.d;Object(x.s)(h);var p=t.getScaleArray();i.overflow=t.getOverflow(),i.font=h,i.maxAngle=t.getMaxAngle(),i.placement=t.getPlacement(),i.textAlign=t.getTextAlign(),i.textBaseline=t.getTextBaseline()||x.n,i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||x.k,i.scale=void 0===p?[1,1]:p;var f=t.getOffsetX(),d=t.getOffsetY(),g=t.getRotateWithView(),_=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===f?0:f,this.textOffsetY_=void 0===d?0:d,this.textRotateWithView_=void 0!==g&&g,this.textRotation_=void 0===_?0:_,this.strokeKey_=r?("string"==typeof r.strokeStyle?r.strokeStyle:Object(F.c)(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?")+(i.textBaseline||"?"),this.fillKey_=n?"string"==typeof n.fillStyle?n.fillStyle:"|"+Object(F.c)(n.fillStyle):""}else this.text_="";this.declutterImageWithText_=e},e}(w)},z=function(){function t(t,e,i,n){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=n,this.resolution_=i,this.buildersByZIndex_
1={}}return t.prototype.finish=function(){var t={};for(var e in this.buildersByZIndex_){t[e]=t[e]||{};var i=this.buildersByZIndex_[e];for(var n in i){var r=i[n].finish();t[e][n]=r}}return t},t.prototype.getBuilder=function(t,e){var i=void 0!==t?t.toString():"0",n=this.buildersByZIndex_[i];void 0===n&&(n={},this.buildersByZIndex_[i]=n);var r=n[e];void 0===r&&(r=new(0,N[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),n[e]=r);return r},t}(),Y=i(759),W="Circle",X="Default",V="Image",B="LineString",K="Polygon",U="Text",Z=i(608),H=i(595),q=i(573),J=i(630);function Q(t,e,i,n,r,o,a,s,c,l,u,h){var p=t[e],f=t[e+1],d=0,g=0,_=0,y=0;function v(){d=p,g=f,p=t[e+=n],f=t[e+1],y+=_,_=Math.sqrt((p-d)*(p-d)+(f-g)*(f-g))}do{v()}while(e<i-n&&y+_<o);for(var m=(o-y)/_,O=Object(q.c)(d,p,m),b=Object(q.c)(g,f,m),x=e-n,E=y,j=o+s*c(l,r,u);e<i-n&&y+_<j;)v();m=(j-y)/_;var C,w=Object(q.c)(d,p,m),S=Object(q.c)(g,f,m);if(h){var I=[O,b,w,S];Object(J.a)(I,0,4,2,h,I,I),C=I[0]>I[2]}else C=O>w;var R,T=Math.PI,P=[],L=x+n===e;if(_=0,y=E,p=t[e=x],f=t[e+1],L){v();var M=Math.atan2(f-g,p-d);C&&(M+=M>0?-T:T);var A=(w+O)/2,F=(S+b)/2;return P[0]=[A,F,(j-o)/2,M,r],P}for(var D=0,k=r.length;D<k;){v();var G=Math.atan2(f-g,p-d);if(C&&(G+=G>0?-T:T),void 0!==R){var N=G-R;if(N+=N>T?-2*T:N<-T?2*T:0,Math.abs(N)>a)return null}R=G;for(var z=D,Y=0;D<k;++D){var W=s*c(l,r[C?k-D-1:D],u);if(e+n<i&&y+_<o+Y+W/2)break;Y+=W}if(D!==z){var X=C?r.substring(k-z,k-D):r.substring(z,D);m=(o+Y/2-y)/_;A=Object(q.c)(d,p,m),F=Object(q.c)(g,f,m);P.push([A,F,Y/2,G,X]),o+=Y}}return P}var $=i(835),tt=Object(b.j)(),et=[],it=[],nt=[],rt=[];function ot(t){return t[3].declutterBox}var at=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function st(t,e){return"start"!==e&&"end"!==e||at.test(t)||(e="start"===e?"left":"right"),G[e]}var ct=function(){function t(t,e,i,n,r){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderBuffer_=r,this.renderedTransform_=Object(H.c)(),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,i,n){var r=t+e+i+n;if(this.labels_[r])return this.labels_[r];var o=n?this.strokeStates[n]:null,a=i?this.fillStates[i]:null,s=this.textStates[e],c=this.pixelRatio,l=[s.scale[0]*c,s.scale[1]*c],u=st(t,s.textAlign||x.m),h=n&&o.lineWidth?o.lineWidth:0,p=t.split("\n"),f=p.length,d=[],g=Object(x.r)(s.font,p,d),_=Object(x.q)(s.font),y=g+h,v=[],m=(y+2)*l[0],O=(_*f+h)*l[1],b={width:m<0?Math.floor(m):Math.ceil(m),height:O<0?Math.floor(O):Math.ceil(O),contextInstructions:v};(1==l[0]&&1==l[1]||v.push("scale",l),v.push("font",s.font),n)&&(v.push("strokeStyle",o.strokeStyle),v.push("lineWidth",h),v.push("lineCap",o.lineCap),v.push("lineJoin",o.lineJoin),v.push("miterLimit",o.miterLimit),(Z.g?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D).prototype.setLineDash&&(v.push("setLineDash",[o.lineDash]),v.push("lineDashOffset",o.lineDashOffset)));i&&v.push("fillStyle",a.fillStyle),v.push("textBaseline","middle"),v.push("textAlign","center");var E,j=.5-u,C=u*y+j*h;if(n)for(E=0;E<f;++E)v.push("strokeText",[p[E],C+j*d[E],.5*(h+_)+E*_]);if(i)for(E=0;E<f;++E)v.push("fillText",[p[E],C+j*d[E],.5*(h+_)+E*_]);return this.labels_[r]=b,b},t.prototype.replayTextBackground_=function(t,e,i,n,r,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,i),t.lineTo.apply(t,n),t.lineTo.apply(t,r),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())},t.prototype.calculateImageOrLabelDimensions_=function(t,e,i,n,r,o,a,s,c,l,u,h,p,f,d,g){var _,y=i-(a*=h[0]),v=n-(s*=h[1]),m=r+c>t?t-c:r,O=o+l>e?e-l:o,x=f[3]+m*h[0]+f[1],E=f[0]+O*h[1]+f[2],j=y-f[3],C=v-f[0];return(d||0!==u)&&(et[0]=j,rt[0]=j,et[1]=C,it[1]=C,it[0]=j+x,nt[0]=it[0],nt[1]=C+E,rt[1]=nt[1]),0!==u?(_=Object(H.b)(Object(H.c)(),i,n,1,1,u,-i,-n),Object(H.a)(_,et),Object(H.a)(_,it),Object(H.a)(_,nt),Object(H.a)(_,rt),Object(b.k)(Math.min(et[0],it[0],nt[0],rt[0]),Math.min(et[1],it[1],nt[1],rt[1]),Math.max(et[0],it[0],nt[0],rt[0]),Math.max(et[1],it[1],nt[1],rt[1]),tt)):Object(b.k)(Math.min(j,j+x),Math.min(C,C+E),Math.max(j,j+x),Math.max(C,C+E),tt),p&&(y=Math.round(y),v=Math.round(v)),{drawImageX:y,drawImageY:v,drawImageW:m,drawImageH:O,originX:c,originY:l,declutterBox:{minX:tt[0],minY:tt[1],maxX:tt[2],maxY:tt[3],value:g},canvasTransform:_,scale:h}}
1,t.prototype.replayImageOrLabel_=function(t,e,i,n,r,o,a){var s=!(!o&&!a),c=n.declutterBox,l=t.canvas,u=a?a[2]*n.scale[0]/2:0;return c.minX-u<=l.width/e&&c.maxX+u>=0&&c.minY-u<=l.height/e&&c.maxY+u>=0&&(s&&this.replayTextBackground_(t,et,it,nt,rt,o,a),Object(x.o)(t,n.canvasTransform,r,i,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=Object(H.a)(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;t.save(),t.translate(e[0]%i,e[1]%i),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,i,n){var r=this.textStates[e],o=this.createLabel(t,e,n,i),a=this.strokeStates[i],s=this.pixelRatio,c=st(t,r.textAlign||x.m),l=G[r.textBaseline||x.n],u=a&&a.lineWidth?a.lineWidth:0;return{label:o,anchorX:c*(o.width/s-2*r.scale[0])+2*(.5-c)*u,anchorY:l*o.height/s+2*(.5-l)*u}},t.prototype.execute_=function(t,e,i,n,r,o,a,s){var c;this.pixelCoordinates_&&Object(E.b)(i,this.renderedTransform_)?c=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),c=Object(J.c)(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),Object(H.f)(this.renderedTransform_,i));for(var l,u,h,p,f,d,g,y,v,m,O,j,C,w,S,I,R=0,T=n.length,P=0,L=0,M=0,A=null,F=null,D=this.coordinateCache_,k=this.viewRotation_,N=Math.round(1e12*Math.atan2(-i[1],i[0]))/1e12,z={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:k},Y=this.instructions!=n||this.overlaps?0:200;R<T;){var W=n[R];switch(W[0]){case _.BEGIN_GEOMETRY:C=W[1],I=W[3],C.getGeometry()?void 0===a||Object(b.G)(a,I.getExtent())?++R:R=W[2]+1:R=W[2];break;case _.BEGIN_PATH:L>Y&&(this.fill_(t),L=0),M>Y&&(t.stroke(),M=0),L||M||(t.beginPath(),p=NaN,f=NaN),++R;break;case _.CIRCLE:var X=c[P=W[1]],V=c[P+1],B=c[P+2]-X,K=c[P+3]-V,U=Math.sqrt(B*B+K*K);t.moveTo(X+U,V),t.arc(X,V,U,0,2*Math.PI,!0),++R;break;case _.CLOSE_PATH:t.closePath(),++R;break;case _.CUSTOM:P=W[1],l=W[2];var Z=W[3],q=W[4],tt=6==W.length?W[5]:void 0;z.geometry=Z,z.feature=C,R in D||(D[R]=[]);var et=D[R];tt?tt(c,P,l,2,et):(et[0]=c[P],et[1]=c[P+1],et.length=2),q(et,z),++R;break;case _.DRAW_IMAGE:P=W[1],l=W[2],y=W[3],u=W[4],h=W[5];var it=W[6],nt=W[7],rt=W[8],at=W[9],st=W[10],ct=W[11],lt=W[12],ut=W[13],ht=W[14];if(!y&&W.length>=19){v=W[18],m=W[19],O=W[20],j=W[21];var pt=this.drawLabelWithPointPlacement_(v,m,O,j);y=pt.label,W[3]=y;var ft=W[22];u=(pt.anchorX-ft)*this.pixelRatio,W[4]=u;var dt=W[23];h=(pt.anchorY-dt)*this.pixelRatio,W[5]=h,it=y.height,W[6]=it,ut=y.width,W[13]=ut}var gt=void 0;W.length>24&&(gt=W[24]);var _t=void 0,yt=void 0,vt=void 0;W.length>16?(_t=W[15],yt=W[16],vt=W[17]):(_t=x.k,yt=!1,vt=!1),st&&N?ct+=k:st||N||(ct-=k);for(var mt=0;P<l;P+=2)if(!(gt&>[mt++]<ut/this.pixelRatio)){var Ot=[t,e,y,Kt=this.calculateImageOrLabelDimensions_(y.width,y.height,c[P],c[P+1],ut,it,u,h,rt,at,ct,lt,r,_t,yt||vt,C),nt,yt?A:null,vt?F:null],bt=void 0,xt=void 0;if(s&&ht){if(!ht[P]){ht[P]=Ot;continue}if(bt=ht[P],delete ht[P],xt=ot(bt),s.collides(xt))continue}s&&s.collides(Kt.declutterBox)||(bt&&(s&&s.insert(xt),this.replayImageOrLabel_.apply(this,bt)),s&&s.insert(Kt.declutterBox),this.replayImageOrLabel_.apply(this,Ot))}++R;break;case _.DRAW_CHARS:var Et=W[1],jt=W[2],Ct=W[3],wt=W[4];j=W[5];var St=W[6],It=W[7],Rt=W[8];O=W[9];var Tt=W[10];v=W[11],m=W[12];var Pt=[W[13],W[13]],Lt=this.textStates[m],Mt=Lt.font,At=[Lt.scale[0]*It,Lt.scale[1]*It],Ft=void 0;Mt in this.widths_?Ft=this.widths_[Mt]:(Ft={},this.widths_[Mt]=Ft);var Dt=Object($.a)(c,Et,jt,2),kt=Math.abs(At[0])*Object(x.p)(Mt,v,Ft);if(wt||kt<=Dt){var Gt=this.textStates[m].textAlign,Nt=Q(c,Et,jt,2,v,(Dt-kt)*G[Gt],St,Math.abs(At[0]),x.p,Mt,Ft,N?0:this.viewRotation_);t:if(Nt){var zt=[],Yt=void 0,Wt=void 0,Xt=void 0,Vt=void 0,Bt=void 0;if(O)for(Yt=0,Wt=Nt.length;Yt<Wt;++Yt){Xt=(Bt=Nt[Yt])[4],Vt=this.createLabel(Xt,m,"",O),u=Bt[2]+(At[0]<0?-Tt:Tt),h=Ct*Vt.height+2*(.5-Ct)*Tt*At[1]/At[0]-Rt;var Kt=this.calculateImageOrLabelDimensions_(Vt.width,Vt.height,Bt[0],Bt[1],Vt.width,Vt.height,u,h,0,0,Bt[3],Pt,!1,x.k,!1,C);if(s&&s.collides(Kt.declutterBox))break t;zt.push([t,e,Vt,Kt,1,null,null])}if(j)for(Yt=0,Wt=Nt.length;Yt<Wt;++Yt){Xt=(Bt=Nt[Yt])[4],Vt=this.createLabel(Xt,m,j,""),u=Bt[2],h=Ct*Vt.height-Rt;Kt=this.calculateImageOrLabelDimensions_(Vt.width,Vt.height,Bt[0],Bt[1],Vt.width,Vt.height,u,h,0,0,Bt[3],Pt,!1,x.k,!1,C);if(s&&s.collides(Kt.declutterBox))break t;zt.push([t,e,Vt,Kt,1,null,null])}s&&s.load(zt.map(ot));for(var Ut=0,Zt=zt.length;Ut<Zt;++Ut)this.replayImageOrLabel_.apply(this,zt[Ut])}}++R;break;case _.END_GEOMETRY:if(void 0!==o){var Ht=o(C=W[1],I);if(Ht)return Ht}++R;break;case _.FILL:Y?L++:this.fill_(t),++R;break;case _.MOVE_TO_LINE_TO:for(P=W[1],l=W[2],w=c[P],g=(S=c[P+1])+.5|0,(d=w+.5|0)===p&&g===f||(t.moveTo(w,S),p=d,f=g),P+=2;P<l;P+=2)d=(w=c[P])+.5|0,g=(S=c[P+1])+.5|0,P!=l-2&&d===p&&g===f||(t.lineTo(w,S),p=d,f=g);++R;break;case _.SET_FILL_STYLE:A=W,this.alignFill_=W[2],L&&(this.fill_(t),L=0,M&&(t.stroke(),M=0)),t.fillStyle=W[1],++R;break;case _.SET_STROKE_STYLE:F=W,M&&(t.stroke(),M=0),this.setStrokeStyle_(t,W),++R;break;case _.STROKE:Y?M++:t.stroke(),++R;break;default:++R}}L&&this.fill_(t),M&&t.stroke()}
1,t.prototype.execute=function(t,e,i,n,r,o){this.viewRotation_=n,this.execute_(t,e,i,this.instructions,r,void 0,void 0,o)},t.prototype.executeHitDetection=function(t,e,i,n,r){return this.viewRotation_=i,this.execute_(t,1,e,this.hitDetectionInstructions,!0,n,r)},t}(),lt=i(592),ut=[K,W,B,V,U,X],ht=function(){function t(t,e,i,n,r,o){this.maxExtent_=t,this.overlaps_=n,this.pixelRatio_=i,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Object(H.c)(),this.createExecutors_(r)}return t.prototype.clip=function(t,e){var i=this.getClipCoords(e);t.beginPath(),t.moveTo(i[0],i[1]),t.lineTo(i[2],i[3]),t.lineTo(i[4],i[5]),t.lineTo(i[6],i[7]),t.clip()},t.prototype.createExecutors_=function(t){for(var e in t){var i=this.executorsByZIndex_[e];void 0===i&&(i={},this.executorsByZIndex_[e]=i);var n=t[e],r=[this.renderBuffer_||0,this.renderBuffer_||0];for(var o in n){var a=n[o];i[o]=new ct(this.resolution_,this.pixelRatio_,this.overlaps_,a,r)}}},t.prototype.hasExecutors=function(t){for(var e in this.executorsByZIndex_)for(var i=this.executorsByZIndex_[e],n=0,r=t.length;n<r;++n)if(t[n]in i)return!0;return!1},t.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,r,o){var a=2*(n=Math.round(n))+1,s=Object(H.b)(this.hitDetectionTransform_,n+.5,n+.5,1/e,-1/e,-i,-t[0],-t[1]),c=!this.hitDetectionContext_;c&&(this.hitDetectionContext_=Object(lt.a)(a,a));var l,u=this.hitDetectionContext_;u.canvas.width!==a||u.canvas.height!==a?(u.canvas.width=a,u.canvas.height=a):c||u.clearRect(0,0,a,a),void 0!==this.renderBuffer_&&(l=Object(b.j)(),Object(b.r)(l,t),Object(b.c)(l,e*(this.renderBuffer_+n),l));var h,p=function(t){if(void 0!==pt[t])return pt[t];for(var e=2*t+1,i=t*t,n=new Array(i+1),r=0;r<=t;++r)for(var o=0;o<=t;++o){var a=r*r+o*o;if(a>i)break;var s=n[a];s||(s=[],n[a]=s),s.push(4*((t+r)*e+(t+o))+3),r>0&&s.push(4*((t-r)*e+(t+o))+3),o>0&&(s.push(4*((t+r)*e+(t-o))+3),r>0&&s.push(4*((t-r)*e+(t-o))+3))}for(var c=[],l=(r=0,n.length);r<l;++r)n[r]&&c.push.apply(c,n[r]);return pt[t]=c,c}(n);function f(t,e){for(var i=u.getImageData(0,0,a,a).data,s=0,c=p.length;s<c;s++)if(i[p[s]]>0){if(!o||h!==V&&h!==U||-1!==o.indexOf(t)){var l=(p[s]-3)/4,f=n-l%a,d=n-(l/a|0),g=r(t,e,f*f+d*d);if(g)return g}u.clearRect(0,0,a,a);break}}var d,g,_,y,v,m=Object.keys(this.executorsByZIndex_).map(Number);for(m.sort(E.f),d=m.length-1;d>=0;--d){var O=m[d].toString();for(_=this.executorsByZIndex_[O],g=ut.length-1;g>=0;--g)if(void 0!==(y=_[h=ut[g]])&&(v=y.executeHitDetection(u,s,i,f,l)))return v}},t.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var i=e[0],n=e[1],r=e[2],o=e[3],a=[i,n,i,o,r,o,r,n];return Object(J.c)(a,0,8,2,t,a),a},t.prototype.isEmpty=function(){return Object(a.d)(this.executorsByZIndex_)},t.prototype.execute=function(t,e,i,n,r,o,a){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(E.f),this.maxExtent_&&(t.save(),this.clip(t,i));var c,l,u,h,p,f,d=o||ut;for(a&&s.reverse(),c=0,l=s.length;c<l;++c){var g=s[c].toString();for(p=this.executorsByZIndex_[g],u=0,h=d.length;u<h;++u){void 0!==(f=p[d[u]])&&f.execute(t,e,i,n,r,a)}}this.maxExtent_&&t.restore()},t}(),pt={};var ft=ht,dt=i(686),gt=i(609),_t=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),yt=function(t){function e(e,i,n,r,o,a,s){var c=t.call(this)||this;return c.context_=e,c.pixelRatio_=i,c.extent_=n,c.transform_=r,c.viewRotation_=o,c.squaredTolerance_=a,c.userTransform_=s,c.contextFillState_=null,c.contextStrokeState_=null,c.contextTextState_=null,c.fillState_=null,c.strokeState_=null,c.image_=null,c.imageAnchorX_=0,c.imageAnchorY_=0,c.imageHeight_=0,c.imageOpacity_=0,c.imageOriginX_=0,c.imageOriginY_=0,c.imageRotateWithView_=!1,c.imageRotation_=0,c.imageScale_=[0,0],c.imageWidth_=0,c.text_="",c.textOffsetX_=0,c.textOffsetY_=0,c.textRotateWithView_=!1,c.textRotation_=0,c.textScale_=[0,0],c.textFillState_=null,c.textStrokeState_=null,c.textState_=null,c.pixelCoordinates_=[],c.tmpLocalTransform_=Object(H.c)(),c}
1return _t(e,t),e.prototype.drawImages_=function(t,e,i,n){if(this.image_){var r=Object(J.c)(t,e,i,2,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.tmpLocalTransform_,s=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=s*this.imageOpacity_);var c=this.imageRotation_;this.imageRotateWithView_&&(c+=this.viewRotation_);for(var l=0,u=r.length;l<u;l+=2){var h=r[l]-this.imageAnchorX_,p=r[l+1]-this.imageAnchorY_;if(0!==c||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var f=h+this.imageAnchorX_,d=p+this.imageAnchorY_;Object(H.b)(a,f,d,1,1,c,-f,-d),o.setTransform.apply(o,a),o.translate(f,d),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.setTransform(1,0,0,1,0,0)}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,h,p,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=s)}},e.prototype.drawText_=function(t,e,i,n){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var r=Object(J.c)(t,e,i,n,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.textRotation_;for(this.textRotateWithView_&&(a+=this.viewRotation_);e<i;e+=n){var s=r[e]+this.textOffsetX_,c=r[e+1]+this.textOffsetY_;if(0!==a||1!=this.textScale_[0]||1!=this.textScale_[1]){var l=Object(H.b)(this.tmpLocalTransform_,s,c,1,1,a,-s,-c);o.setTransform.apply(o,l),o.translate(s,c),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&o.strokeText(this.text_,s,c),this.textFillState_&&o.fillText(this.text_,s,c)}}},e.prototype.moveToLineTo_=function(t,e,i,n,r){var o=this.context_,a=Object(J.c)(t,e,i,n,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;r&&(s-=2);for(var c=2;c<s;c+=2)o.lineTo(a[c],a[c+1]);return r&&o.closePath(),i},e.prototype.drawRings_=function(t,e,i,n){for(var r=0,o=i.length;r<o;++r)e=this.moveToLineTo_(t,e,i[r],n,!0);return e},e.prototype.drawCircle=function(t){if(Object(b.G)(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=Object(gt.b)(t,this.transform_,this.pixelCoordinates_),i=e[2]-e[0],n=e[3]-e[1],r=Math.sqrt(i*i+n*n),o=this.context_;o.beginPath(),o.arc(e[0],e[1],r,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}},e.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},e.prototype.setTransform=function(t){this.transform_=t},e.prototype.drawGeometry=function(t){switch(t.getType()){case y.a.POINT:this.drawPoint(t);break;case y.a.LINE_STRING:this.drawLineString(t);break;case y.a.POLYGON:this.drawPolygon(t);break;case y.a.MULTI_POINT:this.drawMultiPoint(t);break;case y.a.MULTI_LINE_STRING:this.drawMultiLineString(t);break;case y.a.MULTI_POLYGON:this.drawMultiPolygon(t);break;case y.a.GEOMETRY_COLLECTION:this.drawGeometryCollection(t);break;case y.a.CIRCLE:this.drawCircle(t)}},e.prototype.drawFeature=function(t,e){var i=e.getGeometryFunction()(t);i&&Object(b.G)(this.extent_,i.getExtent())&&(this.setStyle(e),this.drawGeometry(i))},e.prototype.drawGeometryCollection=function(t){for(var e=t.getGeometriesArray(),i=0,n=e.length;i<n;++i)this.drawGeometry(e[i])},e.prototype.drawPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(e,0,e.length,i),""!==this.text_&&this.drawText_(e,0,e.length,i)},e.prototype.drawMultiPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(e,0,e.length,i),""!==this.text_&&this.drawText_(e,0,e.length,i)},e.prototype.drawLineString=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(b.G)(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var e=this.context_,i=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(i,0,i.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){var n=t.getFlatMidpoint();this.drawText_(n,0,2,2)}}},e.prototype.drawMultiLineString=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getExtent();if(Object(b.G)(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var i=this.context_,n=t.getFlatCoordinates(),r=0,o=t.getEnds(),a=t.getStride();i.beginPath();for(var s=0,c=o.length;s<c;++s)r=this.moveToLineTo_(n,r,o[s],a,!1);i.stroke()}if(""!==this.text_){var l=t.getFlatMidpoints();this.drawText_(l,0,l.length,2)}}},e.prototype.drawPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(b.G)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var i=t.getFlatInteriorPoint();this.drawText_(i,0,2,2)}}},e.prototype.drawMultiPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(b.G)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_,i=t.getOrientedFlatCoordinates(),n=0,r=t.getEndss(),o=t.getStride();e.beginPath();for(var a=0,s=r.length;a<s;++a){var c=r[a];n=this.drawRings_(i,n,c,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var l=t.getFlatInteriorPoints();this.drawText_(l,0,l.length,2)}}},e.prototype.setContextFillState_=function(t){var e=this.context_,i=this.contextFillState_;i?i.fillStyle!=t.fillStyle&&(i.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},e.prototype.setContextStrokeState_=function(t){var e=this.context_,i=this.contextStrokeState_;i?(i.lineCap!=t.lineCap&&(i.lineCap=t.lineCap,e.lineCap=t.lineCap),e.setLineDash&&(Object(E.b)(i.lineDash,t.lineDash)||e.setLineDash(i.lineDash=t.lineDash),i.lineDashOffset!=t.lineDashOffset&&(i.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset)),i.lineJoin!=t.lineJoin&&(i.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),i.lineWidth!=t.lineWidth&&(i.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),i.miterLimit!=t.miterLimit&&(i.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),i.strokeStyle!=t.strokeStyle&&(i.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})},e.prototype.setContextTextState_=function(t){var e=this.context_,i=this.contextTextState_,n=t.textAlign?t.textAlign:x.m;i?(i.font!=t.font&&(i.font=t.font,e.font=t.font),i.textAlign!=n&&(i.textAlign=n,e.textAlign=n),i.textBaseline!=t.textBaseline&&(i.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=n,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:n,textBaseline:t.textBaseline})},e.prototype.setFillStrokeStyle=function(t,e){if(t){var i=t.getColor();this.fillState_={fillStyle:Object(O.a)(i||x.c)}}else this.fillState_=null;if(e){var n=e.getColor(),r=e.getLineCap(),o=e.getLineDash(),a=e.getLineDashOffset(),s=e.getLineJoin(),c=e.getWidth(),l=e.getMiterLimit();this.strokeState_={lineCap:void 0!==r?r:x.e,lineDash:o||x.f,lineDashOffset:a||x.g,lineJoin:void 0!==s?s:x.h,lineWidth:this.pixelRatio_*(void 0!==c?c:x.i),miterLimit:void 0!==l?l:x.j,strokeStyle:Object(O.a)(n||x.l)}}else this.strokeState_=null},e.prototype.setImageStyle=function(t){if(t){var e=t.getSize();if(e){var i=t.getAnchor(),n=t.getImage(1),r=t.getOrigin(),o=t.getScaleArray();this.imageAnchorX_=i[0],this.imageAnchorY_=i[1],this.imageHeight_=e[1],this.image_=n,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=[this.pixelRatio_*o[0],this.pixelRatio_*o[1]],this.imageWidth_=e[0]}else this.image_=null}else this.image_=null}
1,e.prototype.setTextStyle=function(t){if(t){var e=t.getFill();if(e){var i=e.getColor();this.textFillState_={fillStyle:Object(O.a)(i||x.c)}}else this.textFillState_=null;var n=t.getStroke();if(n){var r=n.getColor(),o=n.getLineCap(),a=n.getLineDash(),s=n.getLineDashOffset(),c=n.getLineJoin(),l=n.getWidth(),u=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==o?o:x.e,lineDash:a||x.f,lineDashOffset:s||x.g,lineJoin:void 0!==c?c:x.h,lineWidth:void 0!==l?l:x.i,miterLimit:void 0!==u?u:x.j,strokeStyle:Object(O.a)(r||x.l)}}else this.textStrokeState_=null;var h=t.getFont(),p=t.getOffsetX(),f=t.getOffsetY(),d=t.getRotateWithView(),g=t.getRotation(),_=t.getScaleArray(),y=t.getText(),v=t.getTextAlign(),m=t.getTextBaseline();this.textState_={font:void 0!==h?h:x.d,textAlign:void 0!==v?v:x.m,textBaseline:void 0!==m?m:x.n},this.text_=void 0!==y?y:"",this.textOffsetX_=void 0!==p?this.pixelRatio_*p:0,this.textOffsetY_=void 0!==f?this.pixelRatio_*f:0,this.textRotateWithView_=void 0!==d&&d,this.textRotation_=void 0!==g?g:0,this.textScale_=[this.pixelRatio_*_[0],this.pixelRatio_*_[1]]}else this.text_=""},e}(m),vt=i(830),mt=i(863);var Ot=i(610),bt={Point:function(t,e,i,n,r){var o,a=i.getImage(),s=i.getText();r&&(t=r,o=a&&s&&s.getText()?{}:void 0);if(a){if(a.getImageState()!=Ot.a.LOADED)return;var c=t.getBuilder(i.getZIndex(),V);c.setImageStyle(a,o),c.drawPoint(e,n)}if(s&&s.getText()){var l=t.getBuilder(i.getZIndex(),U);l.setTextStyle(s,o),l.drawText(e,n)}},LineString:function(t,e,i,n,r){var o=i.getStroke();if(o){var a=t.getBuilder(i.getZIndex(),B);a.setFillStrokeStyle(null,o),a.drawLineString(e,n)}var s=i.getText();if(s&&s.getText()){var c=(r||t).getBuilder(i.getZIndex(),U);c.setTextStyle(s),c.drawText(e,n)}},Polygon:function(t,e,i,n,r){var o=i.getFill(),a=i.getStroke();if(o||a){var s=t.getBuilder(i.getZIndex(),K);s.setFillStrokeStyle(o,a),s.drawPolygon(e,n)}var c=i.getText();if(c&&c.getText()){var l=(r||t).getBuilder(i.getZIndex(),U);l.setTextStyle(c),l.drawText(e,n)}},MultiPoint:function(t,e,i,n,r){var o,a=i.getImage(),s=i.getText();r&&(t=r,o=a&&s&&s.getText()?{}:void 0);if(a){if(a.getImageState()!=Ot.a.LOADED)return;var c=t.getBuilder(i.getZIndex(),V);c.setImageStyle(a,o),c.drawMultiPoint(e,n)}if(s&&s.getText()){var l=(r||t).getBuilder(i.getZIndex(),U);l.setTextStyle(s,o),l.drawText(e,n)}},MultiLineString:function(t,e,i,n,r){var o=i.getStroke();if(o){var a=t.getBuilder(i.getZIndex(),B);a.setFillStrokeStyle(null,o),a.drawMultiLineString(e,n)}var s=i.getText();if(s&&s.getText()){var c=(r||t).getBuilder(i.getZIndex(),U);c.setTextStyle(s),c.drawText(e,n)}},MultiPolygon:function(t,e,i,n,r){var o=i.getFill(),a=i.getStroke();if(a||o){var s=t.getBuilder(i.getZIndex(),K);s.setFillStrokeStyle(o,a),s.drawMultiPolygon(e,n)}var c=i.getText();if(c&&c.getText()){var l=(r||t).getBuilder(i.getZIndex(),U);l.setTextStyle(c),l.drawText(e,n)}},GeometryCollection:function(t,e,i,n,r){var o,a,s=e.getGeometriesArray();for(o=0,a=s.length;o<a;++o){(0,bt[s[o].getType()])(t,s[o],i,n,r)}},Circle:function(t,e,i,n,r){var o=i.getFill(),a=i.getStroke();if(o||a){var s=t.getBuilder(i.getZIndex(),W);s.setFillStrokeStyle(o,a),s.drawCircle(e,n)}var c=i.getText();if(c&&c.getText()){var l=(r||t).getBuilder(i.getZIndex(),U);l.setTextStyle(c),l.drawText(e,n)}}};function xt(t,e){return parseInt(Object(F.c)(t),10)-parseInt(Object(F.c)(e),10)}function Et(t,e){return.5*t/e}function jt(t,e,i,n,r,o,a){var s=!1,c=i.getImage();if(c){var l=c.getImageState();l==Ot.a.LOADED||l==Ot.a.ERROR?c.unlistenImageChange(r):(l==Ot.a.IDLE&&c.load(),l=c.getImageState(),c.listenImageChange(r),s=!0)}return function(t,e,i,n,r,o){var a=i.getGeometryFunction()(e);if(!a)return;var s=a.simplifyTransformed(n,r);if(i.getRenderer())!function t(e,i,n,r){if(i.getType()==y.a.GEOMETRY_COLLECTION){for(var o=i.getGeometries(),a=0,s=o.length;a<s;++a)t(e,o[a],n,r);return}e.getBuilder(n.getZIndex(),X).drawCustom(i,r,n.getRenderer())}(t,s,i,e);else{(0,bt[s.getType()])(t,s,i,e,o)}}(t,e,i,n,o,a),s}var Ct=i(576),wt=i(618),St=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),It=function(t){function e(e){var i=t.call(this,e)||this;return i.boundHandleStyleImageChange_=i.handleStyleImageChange_.bind(i),i.animatingOrInteracting_,i.dirty_=!1,i.hitDetectionImageData_=null,i.renderedFeatures_=null,i.renderedRevision_=-1,i.renderedResolution_=NaN,i.renderedExtent_=Object(b.j)(),i.renderedRotation_,i.renderedCenter_=null,i.renderedProjection_=null,i.renderedRenderOrder_=null,i.replayGroup_=null,i.replayGroupChanged=!0,i.declutterExecutorGroup=null,i.clipping=!0,i}return St(e,t),e.prototype.useContainer=function(e,i,n){n<1&&(e=null),t.prototype.useContainer.call(this,e,i,n)}
1,e.prototype.renderWorlds=function(t,e,i){var n=e.extent,r=e.viewState,o=r.center,a=r.resolution,s=r.projection,c=r.rotation,l=s.getExtent(),u=this.getLayer().getSource(),h=e.pixelRatio,p=e.viewHints,f=!(p[dt.a.ANIMATING]||p[dt.a.INTERACTING]),d=this.context,g=Math.round(e.size[0]*h),_=Math.round(e.size[1]*h),y=u.getWrapX()&&s.canWrapX(),v=y?Object(b.F)(l):null,m=y?Math.ceil((n[2]-l[2])/v)+1:1,O=y?Math.floor((n[0]-l[0])/v):0;do{var x=this.getRenderTransform(o,a,c,h,g,_,O*v);t.execute(d,1,x,c,f,void 0,i)}while(++O<m)},e.prototype.renderDeclutter=function(t){this.declutterExecutorGroup&&this.renderWorlds(this.declutterExecutorGroup,t,t.declutterTree)},e.prototype.renderFrame=function(t,e){var i=t.pixelRatio,n=t.layerStatesArray[t.layerIndex];Object(H.e)(this.pixelTransform,1/i,1/i),Object(H.d)(this.inversePixelTransform,this.pixelTransform);var r=Object(H.g)(this.pixelTransform);this.useContainer(e,r,n.opacity);var o=this.context,a=o.canvas,s=this.replayGroup_,c=this.declutterExecutorGroup;if((!s||s.isEmpty())&&(!c||c.isEmpty()))return!this.containerReused&&a.width>0&&(a.width=0),this.container;var l=Math.round(t.size[0]*i),u=Math.round(t.size[1]*i);a.width!=l||a.height!=u?(a.width=l,a.height=u,a.style.transform!==r&&(a.style.transform=r)):this.containerReused||o.clearRect(0,0,l,u),this.preRender(o,t);var h=t.viewState,p=h.projection,f=!1;if(n.extent&&this.clipping){var d=Object(Ct.e)(n.extent,p);(f=!Object(b.g)(d,t.extent)&&Object(b.G)(d,t.extent))&&this.clipUnrotated(o,t,d)}this.renderWorlds(s,t),f&&o.restore(),this.postRender(o,t);var g=n.opacity,_=this.container;return g!==parseFloat(_.style.opacity)&&(_.style.opacity=1===g?"":String(g)),this.renderedRotation_!==h.rotation&&(this.renderedRotation_=h.rotation,this.hitDetectionImageData_=null),this.container},e.prototype.getFeatures=function(t){return new Promise(function(e){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var i=[this.context.canvas.width,this.context.canvas.height];Object(H.a)(this.pixelTransform,i);var n=this.renderedCenter_,r=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,s=this.renderedExtent_,c=this.getLayer(),l=[],u=i[0]/2,h=i[1]/2;l.push(this.getRenderTransform(n,r,o,.5,u,h,0).slice());var p=c.getSource(),f=a.getExtent();if(p.getWrapX()&&a.canWrapX()&&!Object(b.g)(f,s)){for(var d=s[0],g=Object(b.F)(f),_=0,v=void 0;d<f[0];)v=g*--_,l.push(this.getRenderTransform(n,r,o,.5,u,h,v).slice()),d+=g;for(_=0,d=s[2];d>f[2];)v=g*++_,l.push(this.getRenderTransform(n,r,o,.5,u,h,v).slice()),d-=g}this.hitDetectionImageData_=function(t,e,i,n,r,o,a){var s=t[0]/2,c=t[1]/2,l=Object(lt.a)(s,c);l.imageSmoothingEnabled=!1;for(var u=l.canvas,h=new yt(l,.5,r,null,a),p=i.length,f=Math.floor(16777215/p),d={},g=1;g<=p;++g){var _=i[g-1],v=_.getStyleFunction()||n;if(n){var m=v(_,o);if(m){Array.isArray(m)||(m=[m]);for(var O="#"+("000000"+(g*f).toString(16)).slice(-6),x=0,j=m.length;x<j;++x){var C=m[x],w=C.clone(),S=w.getFill();S&&S.setColor(O);var I=w.getStroke();I&&I.setColor(O),w.setText(void 0);var R=C.getImage();if(R){var T=R.getImageSize();if(!T)continue;var P=document.createElement("canvas");P.width=T[0],P.height=T[1];var L=P.getContext("2d",{alpha:!1});L.fillStyle=O;var M=L.canvas;L.fillRect(0,0,M.width,M.height);var A=T?T[0]:M.width,F=T?T[1]:M.height;Object(lt.a)(A,F).drawImage(M,0,0),w.setImage(new mt.a({img:M,imgSize:T,anchor:R.getAnchor(),anchorXUnits:vt.a.PIXELS,anchorYUnits:vt.a.PIXELS,offset:R.getOrigin(),size:R.getSize(),opacity:R.getOpacity(),scale:R.getScale(),rotation:R.getRotation(),rotateWithView:R.getRotateWithView()}))}var D=Number(w.getZIndex());(z=d[D])||(z={},d[D]=z,z[y.a.POLYGON]=[],z[y.a.CIRCLE]=[],z[y.a.LINE_STRING]=[],z[y.a.POINT]=[]);var k=w.getGeometryFunction()(_);k&&Object(b.G)(r,k.getExtent())&&z[k.getType().replace("Multi","")].push(k,w)}}}}for(var G=Object.keys(d).map(Number).sort(E.f),N=(g=0,G.length);g<N;++g){var z=d[G[g]];for(var Y in z){var W=z[Y];for(x=0,j=W.length;x<j;x+=2){h.setStyle(W[x+1]);for(var X=0,V=e.length;X<V;++X)h.setTransform(e[X]),h.drawGeometry(W[x])}}}return l.getImageData(0,0,u.width,u.height)}(i,l,this.renderedFeatures_,c.getStyleFunction(),s,r,o)}
1e(function(t,e,i){var n=[];if(i){var r=4*(Math.round(t[0]/2)+Math.round(t[1]/2)*i.width),o=i.data[r],a=i.data[r+1],s=i.data[r+2]+256*(a+256*o),c=Math.floor(16777215/e.length);s&&s%c===0&&n.push(e[s/c-1])}return n}(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,r){var o=this;if(this.replayGroup_){var a,s=e.viewState.resolution,c=e.viewState.rotation,l=this.getLayer(),u={},h=function(t,e,i){var o=Object(F.c)(t),a=u[o];if(a){if(!0!==a&&i<a.distanceSq){if(0===i)return u[o]=!0,r.splice(r.lastIndexOf(a),1),n(t,l,e);a.geometry=e,a.distanceSq=i}}else{if(0===i)return u[o]=!0,n(t,l,e);r.push(u[o]={feature:t,layer:l,geometry:e,distanceSq:i,callback:n})}},p=[this.replayGroup_];return this.declutterExecutorGroup&&p.push(this.declutterExecutorGroup),p.some((function(n){return a=n.forEachFeatureAtCoordinate(t,s,c,i,h,n===o.declutterExecutorGroup?e.declutterTree.all().map((function(t){return t.value})):null)})),a}},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t){var e=this.getLayer(),i=e.getSource();if(!i)return!1;var n=t.viewHints[dt.a.ANIMATING],r=t.viewHints[dt.a.INTERACTING],o=e.getUpdateWhileAnimating(),a=e.getUpdateWhileInteracting();if(!this.dirty_&&!o&&n||!a&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var s=t.extent,c=t.viewState,l=c.projection,u=c.resolution,h=t.pixelRatio,p=e.getRevision(),f=e.getRenderBuffer(),d=e.getRenderOrder();void 0===d&&(d=xt);var g=c.center.slice(),_=Object(b.c)(s,f*u),y=[_.slice()],v=l.getExtent();if(i.getWrapX()&&l.canWrapX()&&!Object(b.g)(v,t.extent)){var m=Object(b.F)(v),O=Math.max(Object(b.F)(_)/2,m);_[0]=v[0]-O,_[2]=v[2]+O,Object(wt.f)(g,l);var x=Object(b.L)(y[0],l);x[0]<v[0]&&x[2]<v[2]?y.push([x[0]+m,x[1],x[2]+m,x[3]]):x[0]>v[0]&&x[2]>v[2]&&y.push([x[0]-m,x[1],x[2]-m,x[3]])}if(!this.dirty_&&this.renderedResolution_==u&&this.renderedRevision_==p&&this.renderedRenderOrder_==d&&Object(b.g)(this.renderedExtent_,_))return this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var E,j=new z(Et(u,h),_,u,h);this.getLayer().getDeclutter()&&(E=new z(Et(u,h),_,u,h));var C,w=Object(Ct.j)();if(w){for(var S=0,I=y.length;S<I;++S)i.loadFeatures(Object(Ct.l)(y[S],l),u,w);C=Object(Ct.i)(w,l)}else for(S=0,I=y.length;S<I;++S)i.loadFeatures(y[S],u,l);var R=function(t,e){var i=Et(t,e);return i*i}(u,h),T=function(t){var i,n=t.getStyleFunction()||e.getStyleFunction();if(n&&(i=n(t,u)),i){var r=this.renderFeature(t,R,i,j,C,E);this.dirty_=this.dirty_||r}}.bind(this),P=Object(Ct.l)(_,l),L=i.getFeaturesInExtent(P);d&&L.sort(d);for(S=0,I=L.length;S<I;++S)T(L[S]);this.renderedFeatures_=L;var M=j.finish(),A=new ft(_,u,h,i.getOverlaps(),M,e.getRenderBuffer());return E&&(this.declutterExecutorGroup=new ft(_,u,h,i.getOverlaps(),E.finish(),e.getRenderBuffer())),this.renderedResolution_=u,this.renderedRevision_=p,this.renderedRenderOrder_=d,this.renderedExtent_=_,this.renderedCenter_=g,this.renderedProjection_=l,this.replayGroup_=A,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},e.prototype.renderFeature=function(t,e,i,n,r,o){if(!i)return!1;var a=!1;if(Array.isArray(i))for(var s=0,c=i.length;s<c;++s)a=jt(n,t,i[s],e,this.boundHandleStyleImageChange_,r,o)||a;else a=jt(n,t,i,e,this.boundHandleStyleImageChange_,r,o);return a},e}(Y.a),Rt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Tt=function(t){function e(e){return t.call(this,e)||this}return Rt(e,t),e.prototype.createRenderer=function(){return new It(this)},e}(u);e.a=Tt},856:function(t,e,i){"use strict";i.d(e,"a",(function(){return $}));var n=i(653),r=i(621),o=i(656),a=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),s=function(t){function e(e){var i=t.call(this)||this,n=e||{};return i.delta_=n.delta?n.delta:1,i.duration_=void 0!==n.duration?n.duration:250,i}return a(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==o.a.DBLCLICK){var i=t.originalEvent,n=t.map,a=t.coordinate,
1s=i.shiftKey?-this.delta_:this.delta_,c=n.getView();Object(r.c)(c,s,a,this.duration_),i.preventDefault(),e=!0}return!e},e}(r.a),c=i(614),l=i(588),u=i(613),h=i(612),p=i(618),f=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),d=function(t){function e(e){var i=t.call(this,{stopDown:l.a})||this,n=e||{};i.kinetic_=n.kinetic,i.lastCentroid=null,i.lastPointersCount_,i.panning_=!1;var r=n.condition?n.condition:Object(u.a)(u.g,u.h);return i.condition_=n.onFocusOnly?Object(u.a)(u.d,r):r,i.noKinetic_=!1,i}return f(e,t),e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,i=Object(c.a)(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(i[0],i[1]),this.lastCentroid){var n=[this.lastCentroid[0]-i[0],i[1]-this.lastCentroid[1]],r=t.map.getView();Object(p.e)(n,r.getResolution()),Object(p.d)(n,r.getRotation()),r.adjustCenterInternal(n)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=i,this.lastPointersCount_=e.length,t.originalEvent.preventDefault()},e.prototype.handleUpEvent=function(t){var e=t.map,i=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var n=this.kinetic_.getDistance(),r=this.kinetic_.getAngle(),o=i.getCenterInternal(),a=e.getPixelFromCoordinateInternal(o),s=e.getCoordinateFromPixelInternal([a[0]-n*Math.cos(r),a[1]-n*Math.sin(r)]);i.animateInternal({center:i.getConstrainedCenter(s),duration:500,easing:h.b})}return this.panning_&&(this.panning_=!1,i.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&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}(c.b),g=i(749),_=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),y=function(t){function e(e){var i=this,n=e||{};return(i=t.call(this,{stopDown:l.a})||this).condition_=n.condition?n.condition:u.b,i.lastAngle_=void 0,i.duration_=void 0!==n.duration?n.duration:250,i}return _(e,t),e.prototype.handleDragEvent=function(t){if(Object(u.f)(t)){var e=t.map,i=e.getView();if(i.getConstraints().rotation!==g.c){var n=e.getSize(),r=t.pixel,o=Math.atan2(n[1]/2-r[1],r[0]-n[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;i.adjustRotationInternal(-a)}this.lastAngle_=o}}},e.prototype.handleUpEvent=function(t){return!Object(u.f)(t)||(t.map.getView().endInteraction(this.duration_),!1)},e.prototype.handleDownEvent=function(t){return!!Object(u.f)(t)&&(!(!Object(u.e)(t)||!this.condition_(t))&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0))},e}(c.b),v=i(603),m=i(743),O=i(639),b=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),x=function(t){function e(e){var i=t.call(this)||this;return i.geometry_=null,i.element_=document.createElement("div"),i.element_.style.position="absolute",i.element_.style.pointerEvents="auto",i.element_.className="ol-box "+e,i.map_=null,i.startPixel_=null,i.endPixel_=null,i}return b(e,t),e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,i=this.element_.style;i.left=Math.min(t[0],e[0])+"px",i.top=Math.min(t[1],e[1])+"px",i.width=Math.abs(e[0]-t[0])+"px",i.height=Math.abs(e[1]-t[1])+"px"},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_,i=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new O.a([i])},e.prototype.getGeometry=function(){return this.geometry_},e}(m.a),E=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),j="boxstart",C="boxdrag",w="boxend",S="boxcancel",I=function(t){function e(e,i,n){var r=t.call(this,e)||this;
1return r.coordinate=i,r.mapBrowserEvent=n,r}return E(e,t),e}(v.a),R=function(t){function e(e){var i=t.call(this)||this,n=e||{};return i.box_=new x(n.className||"ol-dragbox"),i.minArea_=void 0!==n.minArea?n.minArea:64,n.onBoxEnd&&(i.onBoxEnd=n.onBoxEnd),i.startPixel_=null,i.condition_=n.condition?n.condition:u.e,i.boxEndCondition_=n.boxEndCondition?n.boxEndCondition:i.defaultBoxEndCondition,i}return E(e,t),e.prototype.defaultBoxEndCondition=function(t,e,i){var n=i[0]-e[0],r=i[1]-e[1];return n*n+r*r>=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 I(C,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 I(e?w:S,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 I(j,t.coordinate,t)),!0)},e.prototype.onBoxEnd=function(t){},e}(c.b),T=i(567),P=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),L=function(t){function e(e){var i=this,n=e||{},r=n.condition?n.condition:u.i;return(i=t.call(this,{condition:r,className:n.className||"ol-dragzoom",minArea:n.minArea})||this).duration_=void 0!==n.duration?n.duration:200,i.out_=void 0!==n.out&&n.out,i}return P(e,t),e.prototype.onBoxEnd=function(t){var e=this.getMap(),i=e.getView(),n=e.getSize(),r=this.getGeometry().getExtent();if(this.out_){var o=i.calculateExtentInternal(n),a=Object(T.n)([e.getPixelFromCoordinateInternal(Object(T.v)(r)),e.getPixelFromCoordinateInternal(Object(T.E)(r))]),s=i.getResolutionForExtentInternal(a,n);Object(T.K)(o,1/s),r=o}var c=i.getConstrainedResolution(i.getResolutionForExtentInternal(r,n)),l=i.getConstrainedCenter(Object(T.x)(r),c);i.animateInternal({resolution:c,center:l,duration:this.duration_,easing:h.b})},e}(R),M=i(570),A=37,F=38,D=39,k=40,G=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),N=function(t){function e(e){var i=t.call(this)||this,n=e||{};return i.defaultCondition_=function(t){return Object(u.g)(t)&&Object(u.j)(t)},i.condition_=void 0!==n.condition?n.condition:i.defaultCondition_,i.duration_=void 0!==n.duration?n.duration:100,i.pixelDelta_=void 0!==n.pixelDelta?n.pixelDelta:128,i}return G(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==M.a.KEYDOWN){var i=t.originalEvent,n=i.keyCode;if(this.condition_(t)&&(n==k||n==A||n==D||n==F)){var o=t.map.getView(),a=o.getResolution()*this.pixelDelta_,s=0,c=0;n==k?c=-a:n==A?s=-a:n==D?s=a:c=a;var l=[s,c];Object(p.d)(l,o.getRotation()),Object(r.b)(o,l,this.duration_),i.preventDefault(),e=!0}}return!e},e}(r.a),z=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Y=function(t){function e(e){var i=t.call(this)||this,n=e||{};return i.condition_=n.condition?n.condition:u.j,i.delta_=n.delta?n.delta:1,i.duration_=void 0!==n.duration?n.duration:100,i}return z(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==M.a.KEYDOWN||t.type==M.a.KEYPRESS){var i=t.originalEvent,n=i.charCode;if(this.condition_(t)&&(n=="+".charCodeAt(0)||n=="-".charCodeAt(0))){var o=t.map,a=n=="+".charCodeAt(0)?this.delta_:-this.delta_,s=o.getView();Object(r.c)(s,a,void 0,this.duration_),i.preventDefault(),e=!0}}return!e},e}(r.a),W=function(){function t(t,e,i){this.decay_=t,this.minVelocity_=e,this.delay_=i,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]<t)return!1;for(var i=e-3;i>0&&this.points_[i+2]>t;)i-=3;var n=this.points_[e+2]-this.points_[i+2];if(n<1e3/60)return!1;var r=this.points_[e]-this.points_[i],o=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+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}(),X=i(608),V=i(573),B=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),K="trackpad",U="wheel",Z=function(t){function e(e){var i=this,n=e||{};(i=t.call(this,n)||this).totalDelta_=0,i.lastDelta_=0,i.maxDelta_=void 0!==n.maxDelta?n.maxDelta:1,i.duration_=void 0!==n.duration?n.duration:250,i.timeout_=void 0!==n.timeout?n.timeout:80,i.useAnchor_=void 0===n.useAnchor||n.useAnchor,i.constrainResolution_=void 0!==n.constrainResolution&&n.c
1onstrainResolution;var r=n.condition?n.condition:u.c;return i.condition_=n.onFocusOnly?Object(u.a)(u.d,r):r,i.lastAnchor_=null,i.startTime_=void 0,i.timeoutId_,i.mode_=void 0,i.trackpadEventGap_=400,i.trackpadTimeoutId_,i.deltaPerZoom_=300,i}return B(e,t),e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0,this.getMap().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!==M.a.WHEEL)return!0;var e,i=t.map,n=t.originalEvent;if(n.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==M.a.WHEEL&&(e=n.deltaY,X.b&&n.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=X.a),n.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)),0===e)return!1;this.lastDelta_=e;var r=Date.now();void 0===this.startTime_&&(this.startTime_=r),(!this.mode_||r-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(e)<4?K:U);var o=i.getView();if(this.mode_===K&&!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_=r,!1;this.totalDelta_+=e;var a=Math.max(this.timeout_-(r-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),a),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var i=-Object(V.a)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),Object(r.c)(e,i,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}(r.a),H=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),q=function(t){function e(e){var i=this,n=e||{},r=n;return r.stopDown||(r.stopDown=l.a),(i=t.call(this,r)||this).anchor_=null,i.lastAngle_=void 0,i.rotating_=!1,i.rotationDelta_=0,i.threshold_=void 0!==n.threshold?n.threshold:.3,i.duration_=void 0!==n.duration?n.duration:250,i}return H(e,t),e.prototype.handleDragEvent=function(t){var e=0,i=this.targetPointers[0],n=this.targetPointers[1],r=Math.atan2(n.clientY-i.clientY,n.clientX-i.clientX);if(void 0!==this.lastAngle_){var o=r-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=r;var a=t.map,s=a.getView();if(s.getConstraints().rotation!==g.c){var l=a.getViewport().getBoundingClientRect(),u=Object(c.a)(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}(c.b),J=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Q=function(t){function e(e){var i=this,n=e||{},r=n;return r.stopDown||(r.stopDown=l.a),(i=t.call(this,r)||this).anchor_=null,i.duration_=void 0!==n.duration?n.duration:400,i.lastDistance_=void 0,i.lastScaleDelta_=1,i}return J(e,t),e.prototype.handleDragEvent=function(t){var e=1,i=this.targetPointers[0],n=this.targetPointers[1],r=i.clientX-n.clientX,o=i.clientY-n.clientY,a=Math.sqrt(r*r+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=Object(c.a)(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(),i=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,i),!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}(c.b);function $(t){var e=t||{},i=new n.a,r=new W(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&i.push(new y),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&i.push(new s({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&i.push(new d({onFocusOnly:e.onFocusOnly,kinetic:r})),(void 0===e.pinchRotate||e.pinchRotate)&&i.push(new q),(void 0===e.pinchZoom||e.pinchZoom)&&i.push(new Q({duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(i.push(new N),i.push(new Y({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&i.push(new Z({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&i.push(new L({duration:e.zoomDuration})),i}}
1,860:function(t,e,i){"use strict";var n=i(637),r="preload",o="useInterimTilesOnError",a=i(572),s=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),c=function(t){function e(e){var i=this,n=e||{},r=Object(a.a)({},n);return delete r.preload,delete r.useInterimTilesOnError,(i=t.call(this,r)||this).setPreload(void 0!==n.preload?n.preload:0),i.setUseInterimTilesOnError(void 0===n.useInterimTilesOnError||n.useInterimTilesOnError),i}return s(e,t),e.prototype.getPreload=function(){return this.get(r)},e.prototype.setPreload=function(t){this.set(r,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(o)},e.prototype.setUseInterimTilesOnError=function(t){this.set(o,t)},e}(n.a),l=i(759),u=i(851),h=i(611),p=i(595),f=i(567),d=i(596),g=i(576),_=i(571),y=i(578),v=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),m=function(t){function e(e){var i=t.call(this,e)||this;return i.extentChanged=!0,i.renderedExtent_=null,i.renderedPixelRatio,i.renderedProjection=null,i.renderedRevision,i.renderedTiles=[],i.newTiles_=!1,i.tmpExtent=Object(f.j)(),i.tmpTileRange_=new u.b(0,0,0,0),i}return v(e,t),e.prototype.isDrawableTile=function(t){var e=this.getLayer(),i=t.getState(),n=e.getUseInterimTilesOnError();return i==h.a.LOADED||i==h.a.EMPTY||i==h.a.ERROR&&!n},e.prototype.getTile=function(t,e,i,n){var r=n.pixelRatio,o=n.viewState.projection,a=this.getLayer(),s=a.getSource().getTile(t,e,i,r,o);return s.getState()==h.a.ERROR&&(a.getUseInterimTilesOnError()?a.getPreload()>0&&(this.newTiles_=!0):s.setState(h.a.LOADED)),this.isDrawableTile(s)||(s=s.getInterimTile()),s},e.prototype.loadedTileCallback=function(e,i,n){return!!this.isDrawableTile(n)&&t.prototype.loadedTileCallback.call(this,e,i,n)},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,e){var i=t.layerStatesArray[t.layerIndex],n=t.viewState,r=n.projection,o=n.resolution,s=n.center,c=n.rotation,l=t.pixelRatio,u=this.getLayer(),v=u.getSource(),m=v.getRevision(),O=v.getTileGridForProjection(r),b=O.getZForResolution(o,v.zDirection),x=O.getResolution(b),E=t.extent,j=i.extent&&Object(g.e)(i.extent,r);j&&(E=Object(f.B)(E,Object(g.e)(i.extent,r)));var C=v.getTilePixelRatio(l),w=Math.round(t.size[0]*C),S=Math.round(t.size[1]*C);if(c){var I=Math.round(Math.sqrt(w*w+S*S));w=I,S=I}var R=x*w/2/C,T=x*S/2/C,P=[s[0]-R,s[1]-T,s[0]+R,s[1]+T],L=O.getTileRangeForExtentAndZ(E,b),M={};M[b]={};var A=this.createLoadedTileFinder(v,r,M),F=this.tmpExtent,D=this.tmpTileRange_;this.newTiles_=!1;for(var k=L.minX;k<=L.maxX;++k)for(var G=L.minY;G<=L.maxY;++G){var N=this.getTile(b,k,G,t);if(this.isDrawableTile(N)){var z=Object(_.c)(this);if(N.getState()==h.a.LOADED){M[b][N.tileCoord.toString()]=N;var Y=N.inTransition(z);this.newTiles_||!Y&&-1!==this.renderedTiles.indexOf(N)||(this.newTiles_=!0)}if(1===N.getAlpha(z,t.time))continue}var W=O.getTileCoordChildTileRange(N.tileCoord,D,F),X=!1;W&&(X=A(b+1,W)),X||O.forEachTileCoordParentTileRange(N.tileCoord,A,D,F)}var V=x/o;Object(p.b)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/C,1/C,c,-w/2,-S/2);var B=Object(d.b)(this.pixelTransform);this.useContainer(e,B,i.opacity);var K=this.context,U=K.canvas;Object(p.d)(this.inversePixelTransform,this.pixelTransform),Object(p.b)(this.tempTransform,w/2,S/2,V,V,0,-w/2,-S/2),U.width!=w||U.height!=S?(U.width=w,U.height=S):this.containerReused||K.clearRect(0,0,w,S),j&&this.clipUnrotated(K,t,j),Object(a.a)(K,v.getContextOptions()),this.preRender(K,t),this.renderedTiles.length=0;var Z,H,q,J=Object.keys(M).map(Number);J.sort(y.f),1!==i.opacity||this.containerReused&&!v.getOpaque(t.viewState.projection)?(Z=[],H=[]):J=J.reverse();for(var Q=J.length-1;Q>=0;--Q){var $=J[Q],tt=v.getTilePixelSize($,l,r),et=O.getResolution($)/x,it=tt[0]*et*V,nt=tt[1]*et*V,rt=O.getTileCoordForCoordAndZ(Object(f.D)(P),$),ot=O.getTileCoordExtent(rt),at=Object(p.a)(this.tempTransform,[C*(ot[0]-P[0])/x,C*(P[3]-ot[3])/x]),st=C*v.getGutterForProjection(r),ct=M[$];for(var lt in ct){var ut=(N=ct[lt]).tileCoord,ht=at[0]-(rt[1]-ut[1])*it,pt=Math.round(ht+it),ft=at[1]-(rt[2]-ut[2])
1*nt,dt=Math.round(ft+nt),gt=pt-(k=Math.round(ht)),_t=dt-(G=Math.round(ft)),yt=b===$;if(!(Y=yt&&1!==N.getAlpha(Object(_.c)(this),t.time)))if(Z){K.save(),q=[k,G,k+gt,G,k+gt,G+_t,k,G+_t];for(var vt=0,mt=Z.length;vt<mt;++vt)if(b!==$&&$<H[vt]){var Ot=Z[vt];K.beginPath(),K.moveTo(q[0],q[1]),K.lineTo(q[2],q[3]),K.lineTo(q[4],q[5]),K.lineTo(q[6],q[7]),K.moveTo(Ot[6],Ot[7]),K.lineTo(Ot[4],Ot[5]),K.lineTo(Ot[2],Ot[3]),K.lineTo(Ot[0],Ot[1]),K.clip()}Z.push(q),H.push($)}else K.clearRect(k,G,gt,_t);this.drawTileImage(N,t,k,G,gt,_t,st,yt,i.opacity),Z&&!Y&&K.restore(),this.renderedTiles.push(N),this.updateUsedTiles(t.usedTiles,v,N)}}return this.renderedRevision=m,this.renderedResolution=x,this.extentChanged=!this.renderedExtent_||!Object(f.p)(this.renderedExtent_,P),this.renderedExtent_=P,this.renderedPixelRatio=l,this.renderedProjection=r,this.manageTilePyramid(t,v,O,l,r,E,b,u.getPreload()),this.scheduleExpireCache(t,v),this.postRender(K,t),i.extent&&K.restore(),B!==U.style.transform&&(U.style.transform=B),this.container},e.prototype.drawTileImage=function(t,e,i,n,r,o,a,s,c){var l=this.getTileImage(t);if(l){var u=Object(_.c)(this),h=s?t.getAlpha(u,e.time):1,p=c*h,f=p!==this.context.globalAlpha;f&&(this.context.save(),this.context.globalAlpha=p),this.context.drawImage(l,a,a,l.width-2*a,l.height-2*a,i,n,r,o),f&&this.context.restore(),1!==h?e.animate=!0:s&&t.endTransition(u)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getTileImage=function(t){return t.getImage()},e.prototype.scheduleExpireCache=function(t,e){if(e.canExpireCache()){var i=function(t,e,i){var n=Object(_.c)(t);n in i.usedTiles&&t.expireCache(i.viewState.projection,i.usedTiles[n])}.bind(null,e);t.postRenderFunctions.push(i)}},e.prototype.updateUsedTiles=function(t,e,i){var n=Object(_.c)(e);n in t||(t[n]={}),t[n][i.getKey()]=!0},e.prototype.manageTilePyramid=function(t,e,i,n,r,o,a,s,c){var l=Object(_.c)(e);l in t.wantedTiles||(t.wantedTiles[l]={});var u,p,f,d,g,y,v=t.wantedTiles[l],m=t.tileQueue,O=0;for(y=i.getMinZoom();y<=a;++y)for(p=i.getTileRangeForExtentAndZ(o,y,p),f=i.getResolution(y),d=p.minX;d<=p.maxX;++d)for(g=p.minY;g<=p.maxY;++g)a-y<=s?(++O,(u=e.getTile(y,d,g,n,r)).getState()==h.a.IDLE&&(v[u.getKey()]=!0,m.isKeyQueued(u.getKey())||m.enqueue([u,l,i.getTileCoordCenter(u.tileCoord),f])),void 0!==c&&c(u)):e.useTile(y,d,g,r);e.updateCacheSize(O,r)},e}(l.a);m.prototype.getLayer;var O=m,b=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),x=function(t){function e(e){return t.call(this,e)||this}return b(e,t),e.prototype.createRenderer=function(){return new O(this)},e}(c);e.a=x},863:function(t,e,i){"use strict";var n=i(570),r=i(830),o="bottom-left",a="bottom-right",s="top-left",c="top-right",l=i(610),u=i(833),h=i(633),p=i(577),f=i(632),d=i(592),g=i(832),_=i(744),y=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),v=null,m=function(t){function e(e,i,n,r,o,a){var s=t.call(this)||this;return s.hitDetectionImage_=null,s.image_=e||new Image,null!==r&&(s.image_.crossOrigin=r),s.canvas_={},s.color_=a,s.unlisten_=null,s.imageState_=o,s.size_=n,s.src_=i,s.tainted_,s}return y(e,t),e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===l.a.LOADED){v||(v=Object(d.a)(1,1)),v.drawImage(this.image_,0,0);try{v.getImageData(0,0,1,1),this.tainted_=!1}catch(t){v=null,this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(n.a.CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=l.a.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=l.a.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],i=Object(d.a)(t,e);i.fillRect(0,0,t,e),this.hitDetectionImage_=i.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_==l.a.IDLE){this.imageState_=l.a.LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=Object(_.b)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},e.prototype.replaceColor_=function(t){if(this.color_&&!this.canvas_[t]){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 i=e.getContext("2d");
1if(i.scale(t,t),i.drawImage(this.image_,0,0),i.globalCompositeOperation="multiply","multiply"===i.globalCompositeOperation||this.isTainted_())i.fillStyle=Object(h.b)(this.color_),i.fillRect(0,0,e.width,e.height),i.globalCompositeOperation="destination-in",i.drawImage(this.image_,0,0);else{for(var n=i.getImageData(0,0,e.width,e.height),r=n.data,o=this.color_[0]/255,a=this.color_[1]/255,s=this.color_[2]/255,c=this.color_[3],l=0,u=r.length;l<u;l+=4)r[l]*=o,r[l+1]*=a,r[l+2]*=s,r[l+3]*=c;i.putImageData(n,0,0)}}},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(f.a);var O=i(571),b=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),x=function(t){function e(e){var i=this,n=e||{},o=void 0!==n.opacity?n.opacity:1,a=void 0!==n.rotation?n.rotation:0,c=void 0!==n.scale?n.scale:1,u=void 0!==n.rotateWithView&&n.rotateWithView;(i=t.call(this,{opacity:o,rotation:a,scale:c,displacement:void 0!==n.displacement?n.displacement:[0,0],rotateWithView:u})||this).anchor_=void 0!==n.anchor?n.anchor:[.5,.5],i.normalizedAnchor_=null,i.anchorOrigin_=void 0!==n.anchorOrigin?n.anchorOrigin:s,i.anchorXUnits_=void 0!==n.anchorXUnits?n.anchorXUnits:r.a.FRACTION,i.anchorYUnits_=void 0!==n.anchorYUnits?n.anchorYUnits:r.a.FRACTION,i.crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:null;var f=void 0!==n.img?n.img:null,d=void 0!==n.imgSize?n.imgSize:null,_=n.src;Object(p.a)(!(void 0!==_&&f),4),Object(p.a)(!f||f&&d,5),void 0!==_&&0!==_.length||!f||(_=f.src||Object(O.c)(f)),Object(p.a)(void 0!==_&&_.length>0,6);var y=void 0!==n.src?l.a.IDLE:l.a.LOADED;return i.color_=void 0!==n.color?Object(h.a)(n.color):null,i.iconImage_=function(t,e,i,n,r,o){var a=g.a.get(e,n,o);return a||(a=new m(t,e,i,n,r,o),g.a.set(e,n,o,a)),a}(f,_,d,i.crossOrigin_,y,i.color_),i.offset_=void 0!==n.offset?n.offset:[0,0],i.offsetOrigin_=void 0!==n.offsetOrigin?n.offsetOrigin:s,i.origin_=null,i.size_=void 0!==n.size?n.size:null,i}return b(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_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},e.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var t=this.anchor_,e=this.getSize();if(this.anchorXUnits_==r.a.FRACTION||this.anchorYUnits_==r.a.FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==r.a.FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==r.a.FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=s){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=c&&this.anchorOrigin_!=a||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=o&&this.anchorOrigin_!=a||(t[1]=-t[1]+e[1])}return this.normalizedAnchor_=t,this.normalizedAnchor_},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.getHitDetectionImageSize=function(){return this.getImageSize()},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_,e=this.getDisplacement();if(this.offsetOrigin_!=s){var i=this.getSize(),n=this.iconImage_.getSize();if(!i||!n)return null;t=t.slice(),this.offsetOrigin_!=c&&this.offsetOrigin_!=a||(t[0]=n[0]-i[0]-t[0]),this.offsetOrigin_!=o&&this.offsetOrigin_!=a||(t[1]=n[1]-i[1]-t[1])}return t[0]+=e[0],t[1]+=e[1],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.a.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(n.a.CHANGE,t)},e}(u.a);e.a=x}
1,867:function(t,e,i){"use strict";var n=i(631),r=i(581),o=i(747),a=i(639),s=i(609),c=i(655),l=i(567),u=i(620),h=i(578),p=i(849),f=i(619),d=i(690),g=i(868),_=i(748);var y=i(691),v=i(635),m=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),O=function(t){function e(e,i,n){var r=t.call(this)||this;if(r.endss_=[],r.flatInteriorPointsRevision_=-1,r.flatInteriorPoints_=null,r.maxDelta_=-1,r.maxDeltaRevision_=-1,r.orientedRevision_=-1,r.orientedFlatCoordinates_=null,!n&&!Array.isArray(e[0])){for(var o=r.getLayout(),a=e,s=[],c=[],l=0,u=a.length;l<u;++l){var p=a[l];0===l&&(o=p.getLayout());for(var f=s.length,d=p.getEnds(),g=0,_=d.length;g<_;++g)d[g]+=f;Object(h.c)(s,p.getFlatCoordinates()),c.push(d)}i=o,e=s,n=c}return void 0!==i&&n?(r.setFlatCoordinates(i,e),r.endss_=n):r.setCoordinates(e,i),r}return m(e,t),e.prototype.appendPolygon=function(t){var e;if(this.flatCoordinates){var i=this.flatCoordinates.length;Object(h.c)(this.flatCoordinates,t.getFlatCoordinates());for(var n=0,r=(e=t.getEnds().slice()).length;n<r;++n)e[n]+=i}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()},e.prototype.clone=function(){for(var t=this.endss_.length,i=new Array(t),n=0;n<t;++n)i[n]=this.endss_[n].slice();var r=new e(this.flatCoordinates.slice(),this.layout,i);return r.applyProperties(this),r},e.prototype.closestPointXY=function(t,e,i,n){return n<Object(l.e)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(c.f)(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(c.c)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,i,n))},e.prototype.containsXY=function(t,e){return Object(y.d)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)},e.prototype.getArea=function(){return Object(_.c)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),Object(g.d)(e,0,this.endss_,this.stride,t)):e=this.flatCoordinates,Object(f.c)(e,0,this.endss_,this.stride)},e.prototype.getEndss=function(){return this.endss_},e.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var t=function(t,e,i,n){for(var r=[],o=Object(l.j)(),a=0,s=i.length;a<s;++a){var c=i[a];o=Object(l.o)(t,e,c[0],n),r.push((o[0]+o[2])/2,(o[1]+o[3])/2),e=c[c.length-1]}return r}(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=Object(p.b)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},e.prototype.getInteriorPoints=function(){return new o.a(this.getFlatInteriorPoints().slice(),n.a.XYM)},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;Object(g.b)(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Object(g.d)(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var i=[],r=[];return i.length=Object(v.d)(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),i,0,r),new e(i,n.a.XY,r)},e.prototype.getPolygon=function(t){if(t<0||this.endss_.length<=t)return null;var e;if(0===t)e=0;else{var i=this.endss_[t-1];e=i[i.length-1]}var n=this.endss_[t].slice(),r=n[n.length-1];if(0!==e)for(var o=0,s=n.length;o<s;++o)n[o]-=e;return new a.a(this.flatCoordinates.slice(e,r),this.layout,n)},e.prototype.getPolygons=function(){for(var t=this.layout,e=this.flatCoordinates,i=this.endss_,n=[],r=0,o=0,s=i.length;o<s;++o){var c=i[o].slice(),l=c[c.length-1];if(0!==r)for(var u=0,h=c.length;u<h;++u)c[u]-=r;var p=new a.a(e.slice(r,l),t,c);n.push(p),r=l}return n},e.prototype.getType=function(){return r.a.MULTI_POLYGON},e.prototype.intersectsExtent=function(t){return Object(d.d)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);var i=Object(u.d)(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===i.length)this.flatCoordinates.length=0;else{var n=i[i.length-1];this.flatCoordinates.length=0===n.length?0:n[n.length-1]}this.changed()},e}(s.a);e.a=O}
1,868:function(t,e,i){"use strict";function n(t,e,i,n){for(;e<i-n;){for(var r=0;r<n;++r){var o=t[e+r];t[e+r]=t[i-n+r],t[i-n+r]=o}e+=n,i-=n}}function r(t,e,i,n){for(var r=0,o=t[i-n],a=t[i-n+1];e<i;e+=n){var s=t[e],c=t[e+1];r+=(s-o)*(c+a),o=s,a=c}return 0===r?void 0:r>0}function o(t,e,i,n,o){for(var a=void 0!==o&&o,s=0,c=i.length;s<c;++s){var l=i[s],u=r(t,e,l,n);if(0===s){if(a&&u||!a&&!u)return!1}else if(a&&!u||!a&&u)return!1;e=l}return!0}function a(t,e,i,n,r){for(var a=0,s=i.length;a<s;++a){var c=i[a];if(!o(t,e,c,n,r))return!1;c.length&&(e=c[c.length-1])}return!0}function s(t,e,i,o,a){for(var s=void 0!==a&&a,c=0,l=i.length;c<l;++c){var u=i[c],h=r(t,e,u,o);(0===c?s&&h||!s&&!h:s&&!h||!s&&h)&&n(t,e,u,o),e=u}return e}function c(t,e,i,n,r){for(var o=0,a=i.length;o<a;++o)e=s(t,e,i[o],n,r);return e}i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"d",(function(){return c}))}}]); 2//# sourceMappingURL=5.f536cf8e.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.