chunk-5dc756fc.f27eb177.js 266 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5dc756fc"],{"019e":function(t,e,i){"use strict";i.d(e,"c",(function(){return h})),i.d(e,"a",(function(){return c}));var n=i("6d50"),s=i("e93b"),r=i("c33f"),o=i("54a8");class a{constructor(t){t=t||{},this.geometry_=null,this.geometryFunction_=u,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.hitDetectionRenderer_=void 0!==t.hitDetectionRenderer?t.hitDetectionRenderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex}clone(){let t=this.getGeometry();return t&&"object"===typeof t&&(t=t.clone()),new a({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(t){this.renderer_=t}setHitDetectionRenderer(t){this.hitDetectionRenderer_=t}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(t){this.fill_=t}getImage(){return this.image_}setImage(t){this.image_=t}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t}getText(){return this.text_}setText(t){this.text_=t}getZIndex(){return this.zIndex_}setGeometry(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_=u,this.geometry_=t}setZIndex(t){this.zIndex_=t}}function h(t){let e;if("function"===typeof t)e=t;else{let i;if(Array.isArray(t))i=t;else{Object(o["a"])("function"===typeof t.getZIndex,41);const e=t;i=[e]}e=function(){return i}}return e}let l=null;function c(t,e){if(!l){const t=new s["a"]({color:"rgba(255,255,255,0.4)"}),e=new r["a"]({color:"#3399CC",width:1.25});l=[new a({image:new n["a"]({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]}return l}function u(t){return t.getGeometry()}e["b"]=a},"0bc5":function(t,e,i){"use strict";e["a"]={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},"0e0c":function(t,e,i){"use strict";e["a"]={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},1005:function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o}));var n=i("73af");function s(t,e,i,n,s){if(n&&n!==t&&(i=i.bind(n)),s){const n=i;i=function(){t.removeEventListener(e,i),n.apply(this,arguments)}}const r={target:t,type:e,listener:i};return t.addEventListener(e,i),r}function r(t,e,i,n){return s(t,e,i,n,!0)}function o(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),Object(n["a"])(t))}},1020:function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return o}));var n=i("a001"),s=i("b485");function r(t,e,i,r,o,a,h){let l,c,u,d,g,f,_;const m=o[a+1],p=[];for(let n=0,s=i.length;n<s;++n){const s=i[n];for(d=t[s-r],f=t[s-r+1],l=e;l<s;l+=r)g=t[l],_=t[l+1],(m<=f&&_<=m||f<=m&&m<=_)&&(u=(m-f)/(_-f)*(g-d)+d,p.push(u)),d=g,f=_}let y=NaN,v=-1/0;for(p.sort(s["f"]),d=p[0],l=1,c=p.length;l<c;++l){g=p[l];const s=Math.abs(g-d);s>v&&(u=(d+g)/2,Object(n["c"])(t,e,i,r,u,m)&&(y=u,v=s)),d=g}return isNaN(y)&&(y=o[a]),h?(h.push(y,m,v),h):[y,m,v]}function o(t,e,i,n,s){let o=[];for(let a=0,h=i.length;a<h;++a){const h=i[a];o=r(t,e,h,n,s,2*a,o),e=h[h.length-1]}return o}},"133e":function(t,e,i){"use strict";function n(t,e,i,n){while(e<i-n){for(let s=0;s<n;++s){const r=t[e+s];t[e+s]=t[i-n+s],t[i-n+s]=r}e+=n,i-=n}}function s(t,e,i,n){let s=0,r=t[i-n],o=t[i-n+1];for(;e<i;e+=n){const i=t[e],n=t[e+1];s+=(i-r)*(n+o),r=i,o=n}return 0===s?void 0:s>0}function r(t,e,i,n,r){r=void 0!==r&&r;for(let o=0,a=i.length;o<a;++o){const a=i[o],h=s(t,e,a,n);if(0===o){if(r&&h||!r&&!h)return!1}else if(r&&!h||!r&&h)return!1;e=a}return!0}function o(t,e,i,n,s){for(let o=0,a=i.length;o<a;++o){const a=i[o];if(!r(t,e,a,n,s))return!1;a.length&&(e=a[a.length-1])}return!0}function a(t,e,i,r,o){o=void 0!==o&&o;for(let a=0,h=i.length;a<h;++a){const h=i[a],l=s(t,e,h,r),c=0===a?o&&l||!o&&!l:o&&!l||!o&&l;c&&n(t,e,h,r),e=h}return e}function h(t,e,i,n,s){for(let r=0,o=i.length;r<o;++r)e=a(t,e,i[r],n,s);return e}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 h}))},"15ea":function(t,e,i){"use strict";var n=i("2907"),s=i("b623"),r=i("8a11"),o=i("8f60"),a=i("3c38"),h=i("d3f4"),l=i.n(h),c=i("93f7"),u=i("2fc48"),d=i("73af");class g{constructor(t){this.rbush_=new l.a(t),this.items_={}}insert(t,e){const i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(i),this.items_[Object(u["b"])(e)]=i}load(t,e){const i=new Array(e.length);for(let n=0,s=e.length;n<s;n++){const s=t[n],r=e[n],o={minX:s[0],minY:s[1],maxX:s[2],maxY:s[3],value:r};i[n]=o,this.items_[Object(u["b"])(r)]=o}this.rbush_.load(i)}remove(t){const e=Object(u["b"])(t),i=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(i)}update(t,e){const i=this.items_[Object(u["b"])(e)],n=[i.minX,i.minY,i.maxX,i.maxY];Object(c["o"])(n,t)||(this.remove(e),this.insert(t,e))}getAll(){const t=this.rbush_.all();return t.map((function(t){return t.value}))}getInExtent(t){const e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]},i=this.rbush_.search(e);return i.map((function(t){return t.value}))}forEach(t){return this.forEach_(this.getAll(),t)}forEachInExtent(t,e){return this.forEach_(this.getInExtent(t),e)}forEach_(t,e){let i;for(let n=0,s=t.length;n<s;n++)if(i=e(t[n]),i)return i;return i}isEmpty(){return Object(d["b"])(this.items_)}clear(){this.rbush_.clear(),this.items_={}}getExtent(t){const e=this.rbush_.toJSON();return Object(c["k"])(e.minX,e.minY,e.maxX,e.maxY,t)}concat(t){this.rbush_.load(t.rbush_.all());for(const e in t.items_)this.items_[e]=t.items_[e]}}var f=g,_=i("1d8e"),m={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"},p=i("bf5a");i("b91b");function y(t,e){return[[-1/0,-1/0,1/0,1/0]]}var v=i("54a8"),b=i("b485"),x=i("1005");let O=!1;function E(t,e,i,n,s,r,o){const a=new XMLHttpRequest;a.open("GET","function"===typeof t?t(i,n,s):t,!0),"arraybuffer"==e.getType()&&(a.responseType="arraybuffer"),a.withCredentials=O,a.onload=function(t){if(!a.status||a.status>=200&&a.status<300){const t=e.getType();let n;"json"==t||"text"==t?n=a.responseText:"xml"==t?(n=a.responseXML,n||(n=(new DOMParser).parseFromString(a.responseText,"application/xml"))):"arraybuffer"==t&&(n=a.response),n?r(e.readFeatures(n,{extent:i,featureProjection:s}),e.readProjection(n)):o()}else o()},a.onerror=o,a.send()}function C(t,e){return function(i,n,s,r,o){const a=this;E(t,e,i,n,s,(function(t,e){a.addFeatures(t),void 0!==r&&r(t)}),o||p["c"])}}class S extends r["a"]{constructor(t,e,i){super(t),this.feature=e,this.features=i}}class R extends _["a"]{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.on,this.once,this.un,this.loader_=p["c"],this.format_=t.format,this.overlaps_=void 0===t.overlaps||t.overlaps,this.url_=t.url,void 0!==t.loader?this.loader_=t.loader:void 0!==this.url_&&(Object(v["a"])(this.format_,7),this.loader_=C(this.url_,this.format_)),this.strategy_=void 0!==t.strategy?t.strategy:y;const e=void 0===t.useSpatialIndex||t.useSpatialIndex;let i,s;this.featuresRtree_=e?new f:null,this.loadedExtentsRtree_=new f,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(t.features)?s=t.features:t.features&&(i=t.features,s=i.getArray()),e||void 0!==i||(i=new n["a"](s)),void 0!==s&&this.addFeaturesInternal(s),void 0!==i&&this.bindFeaturesCollection_(i)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=Object(u["b"])(t);if(!this.addToIndex_(e,t))return void(this.featuresCollection_&&this.featuresCollection_.remove(t));this.setupChangeEvents_(e,t);const i=t.getGeometry();if(i){const e=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(e,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new S(m.ADDFEATURE,t))}setupChangeEvents_(t,e){this.featureChangeKeys_[t]=[Object(x["a"])(e,o["a"].CHANGE,this.handleFeatureChange_,this),Object(x["a"])(e,a["a"].PROPERTYCHANGE,this.handleFeatureChange_,this)]}addToIndex_(t,e){let i=!0;const n=e.getId();return void 0!==n&&(n.toString()in this.idIndex_?i=!1:this.idIndex_[n.toString()]=e),i&&(Object(v["a"])(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),i}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){const e=[],i=[],n=[];for(let s=0,r=t.length;s<r;s++){const e=t[s],n=Object(u["b"])(e);this.addToIndex_(n,e)&&i.push(e)}for(let s=0,r=i.length;s<r;s++){const t=i[s],r=Object(u["b"])(t);this.setupChangeEvents_(r,t);const o=t.getGeometry();if(o){const i=o.getExtent();e.push(i),n.push(t)}else this.nullGeometryFeatures_[r]=t}if(this.featuresRtree_&&this.featuresRtree_.load(e,n),this.hasListener(m.ADDFEATURE))for(let s=0,r=i.length;s<r;s++)this.dispatchEvent(new S(m.ADDFEATURE,i[s]))}bindFeaturesCollection_(t){let e=!1;this.addEventListener(m.ADDFEATURE,(function(i){e||(e=!0,t.push(i.feature),e=!1)})),this.addEventListener(m.REMOVEFEATURE,(function(i){e||(e=!0,t.remove(i.feature),e=!1)})),t.addEventListener(s["a"].ADD,function(t){e||(e=!0,this.addFeature(t.element),e=!1)}.bind(this)),t.addEventListener(s["a"].REMOVE,function(t){e||(e=!0,this.removeFeature(t.element),e=!1)}.bind(this)),this.featuresCollection_=t}clear(t){if(t){for(const t in this.featureChangeKeys_){const e=this.featureChangeKeys_[t];e.forEach(x["c"])}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const t=function(t){this.removeFeatureInternal(t)}.bind(this);this.featuresRtree_.forEach(t);for(const e in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[e])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const e=new S(m.CLEAR);this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){const i=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(i,(function(i){const n=i.getGeometry();return n.intersectsCoordinate(t)?e(i):void 0}))}forEachFeatureInExtent(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureIntersectingExtent(t,e){return this.forEachFeatureInExtent(t,(function(i){const n=i.getGeometry();if(n.intersectsExtent(t)){const t=e(i);if(t)return t}}))}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),Object(d["b"])(this.nullGeometryFeatures_)||Object(b["c"])(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){const e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){const i=e&&e.canWrapX()&&this.getWrapX();if(!i)return this.featuresRtree_.getInExtent(t);const n=Object(c["J"])(t,e);return[].concat(...n.map(t=>this.featuresRtree_.getInExtent(t)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){const i=t[0],n=t[1];let s=null;const r=[NaN,NaN];let o=1/0;const a=[-1/0,-1/0,1/0,1/0];return e=e||p["b"],this.featuresRtree_.forEachInExtent(a,(function(t){if(e(t)){const e=t.getGeometry(),h=o;if(o=e.closestPointXY(i,n,r,o),o<h){s=t;const e=Math.sqrt(o);a[0]=i-e,a[1]=n-e,a[2]=i+e,a[3]=n+e}}})),s}getExtent(t){return this.featuresRtree_.getExtent(t)}getFeatureById(t){const e=this.idIndex_[t.toString()];return void 0!==e?e:null}getFeatureByUid(t){const e=this.uidIndex_[t];return void 0!==e?e:null}getFormat(){return this.format_}getOverlaps(){return this.overlaps_}getUrl(){return this.url_}handleFeatureChange_(t){const e=t.target,i=Object(u["b"])(e),n=e.getGeometry();if(n){const t=n.getExtent();i in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[i],this.featuresRtree_&&this.featuresRtree_.insert(t,e)):this.featuresRtree_&&this.featuresRtree_.update(t,e)}else i in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[i]=e);const s=e.getId();if(void 0!==s){const t=s.toString();this.idIndex_[t]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[t]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[i]=e;this.changed(),this.dispatchEvent(new S(m.CHANGEFEATURE,e))}hasFeature(t){const e=t.getId();return void 0!==e?e in this.idIndex_:Object(u["b"])(t)in this.uidIndex_}isEmpty(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&Object(d["b"])(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()}loadFeatures(t,e,i){const n=this.loadedExtentsRtree_,s=this.strategy_(t,e,i);for(let r=0,o=s.length;r<o;++r){const t=s[r],o=n.forEachInExtent(t,(function(e){return Object(c["g"])(e.extent,t)}));o||(++this.loadingExtentsCount_,this.dispatchEvent(new S(m.FEATURESLOADSTART)),this.loader_.call(this,t,e,i,function(t){--this.loadingExtentsCount_,this.dispatchEvent(new S(m.FEATURESLOADEND,void 0,t))}.bind(this),function(){--this.loadingExtentsCount_,this.dispatchEvent(new S(m.FEATURESLOADERROR))}.bind(this)),n.insert(t,{extent:t.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_;let i;e.forEachInExtent(t,(function(e){if(Object(c["o"])(e.extent,t))return i=e,!0})),i&&e.remove(i)}removeFeature(t){if(!t)return;const e=Object(u["b"])(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t);const i=this.removeFeatureInternal(t);i&&this.changed()}removeFeatureInternal(t){const e=Object(u["b"])(t),i=this.featureChangeKeys_[e];if(!i)return;i.forEach(x["c"]),delete this.featureChangeKeys_[e];const n=t.getId();return void 0!==n&&delete this.idIndex_[n.toString()],delete this.uidIndex_[e],this.dispatchEvent(new S(m.REMOVEFEATURE,t)),t}removeFromIdIndex_(t){let e=!1;for(const i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],e=!0;break}return e}setLoader(t){this.loader_=t}setUrl(t){Object(v["a"])(this.format_,7),this.url_=t,this.setLoader(C(t,this.format_))}}e["a"]=R},"164b":function(t,e,i){"use strict";var n=i("8f60"),s=i("0e0c"),r=i("d9ad"),o=i("9353"),a=i("54a8"),h=i("9e10"),l=i("d72a"),c=i("66d7"),u=i("7bf1");let d=null;class g extends h["a"]{constructor(t,e,i,n,s,r){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=n,this.canvas_={},this.color_=r,this.unlisten_=null,this.imageState_=s,this.size_=i,this.src_=e,this.tainted_}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===s["a"].LOADED){d||(d=Object(l["a"])(1,1)),d.drawImage(this.image_,0,0);try{d.getImageData(0,0,1,1),this.tainted_=!1}catch(t){d=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(n["a"].CHANGE)}handleImageError_(){this.imageState_=s["a"].ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=s["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_()}getImage(t){return this.image_||this.initializeImage_(),this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_}getPixelRatio(t){return this.replaceColor_(t),this.canvas_[t]?t:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const t=this.size_[0],e=this.size_[1],i=Object(l["a"])(t,e);i.fillRect(0,0,t,e),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===s["a"].IDLE){this.image_||this.initializeImage_(),this.imageState_=s["a"].LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=Object(u["b"])(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==s["a"].LOADED)return;const e=this.image_,i=document.createElement("canvas");i.width=Math.ceil(e.width*t),i.height=Math.ceil(e.height*t);const n=i.getContext("2d");n.scale(t,t),n.drawImage(e,0,0),n.globalCompositeOperation="multiply",n.fillStyle=Object(o["b"])(this.color_),n.fillRect(0,0,i.width/t,i.height/t),n.globalCompositeOperation="destination-in",n.drawImage(e,0,0),this.canvas_[t]=i}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}function f(t,e,i,n,s,r){let o=c["a"].get(e,n,r);return o||(o=new g(t,e,i,n,s,r),c["a"].set(e,n,r,o)),o}var _=i("2fc48");class m extends r["a"]{constructor(t){t=t||{};const e=void 0!==t.opacity?t.opacity:1,i=void 0!==t.rotation?t.rotation:0,n=void 0!==t.scale?t.scale:1,r=void 0!==t.rotateWithView&&t.rotateWithView;super({opacity:e,rotation:i,scale:n,displacement:void 0!==t.displacement?t.displacement:[0,0],rotateWithView:r,declutterMode:t.declutterMode}),this.anchor_=void 0!==t.anchor?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.crossOrigin_=void 0!==t.crossOrigin?t.crossOrigin:null;const h=void 0!==t.img?t.img:null;this.imgSize_=t.imgSize;let l=t.src;Object(a["a"])(!(void 0!==l&&h),4),Object(a["a"])(!h||h&&this.imgSize_,5),void 0!==l&&0!==l.length||!h||(l=h.src||Object(_["b"])(h)),Object(a["a"])(void 0!==l&&l.length>0,6);const c=void 0!==t.src?s["a"].IDLE:s["a"].LOADED;this.color_=void 0!==t.color?Object(o["a"])(t.color):null,this.iconImage_=f(h,l,void 0!==this.imgSize_?this.imgSize_:null,this.crossOrigin_,c,this.color_),this.offset_=void 0!==t.offset?t.offset:[0,0],this.offsetOrigin_=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==t.size?t.size:null}clone(){const t=this.getScale();return new m({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;const e=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!e)return null;t=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(t[0]*=e[0]),"fraction"==this.anchorYUnits_&&(t[1]*=e[1])}if("top-left"!=this.anchorOrigin_){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),"top-right"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[0]=-t[0]+e[0]),"bottom-left"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}const e=this.getDisplacement(),i=this.getScaleArray();return[t[0]-e[0]/i[0],t[1]+e[1]/i[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if("top-left"!=this.offsetOrigin_){const e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),"top-right"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[0]=i[0]-e[0]-t[0]),"bottom-left"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[1]=i[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}listenImageChange(t){this.iconImage_.addEventListener(n["a"].CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(n["a"].CHANGE,t)}}e["a"]=m},"1ae6":function(t,e,i){"use strict";var n=i("9c15"),s=i("9901").map,r=i("462a"),o=r("map");n({target:"Array",proto:!0,forced:!o},{map:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})},"1bcb":function(t,e,i){"use strict";var n=i("9e10"),s=i("8f60"),r=i("2fc48");class o extends n["a"]{constructor(t,e,i,n){super(),this.extent=t,this.pixelRatio_=i,this.resolution=e,this.state=n}changed(){this.dispatchEvent(s["a"].CHANGE)}getExtent(){return this.extent}getImage(){return Object(r["a"])()}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){Object(r["a"])()}}e["a"]=o},"1c65":function(t,e,i){"use strict";function n(t,e,i,n){let s=t[e],r=t[e+1],o=0;for(let a=e+n;a<i;a+=n){const e=t[a],i=t[a+1];o+=Math.sqrt((e-s)*(e-s)+(i-r)*(i-r)),s=e,r=i}return o}i.d(e,"a",(function(){return n}))},"1d14":function(t,e,i){"use strict";var n=i("93f7"),s=i("b91b"),r=i("d580");const o=10,a=.25;class h{constructor(t,e,i,r,a,h){this.sourceProj_=t,this.targetProj_=e;let l={};const c=Object(s["l"])(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){const e=t[0]+"/"+t[1];return l[e]||(l[e]=c(t)),l[e]},this.maxSourceExtent_=r,this.errorThresholdSquared_=a*a,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&Object(n["E"])(r)==Object(n["E"])(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(n["E"])(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(n["E"])(this.targetProj_.getExtent()):null;const u=Object(n["C"])(i),d=Object(n["D"])(i),g=Object(n["v"])(i),f=Object(n["u"])(i),_=this.transformInv_(u),m=this.transformInv_(d),p=this.transformInv_(g),y=this.transformInv_(f),v=o+(h?Math.max(0,Math.ceil(Math.log2(Object(n["t"])(i)/(h*h*256*256)))):0);if(this.addQuad_(u,d,g,f,_,m,p,y,v),this.wrapsXInSource_){let t=1/0;this.triangles_.forEach((function(e,i,n){t=Math.min(t,e.source[0][0],e.source[1][0],e.source[2][0])})),this.triangles_.forEach(function(e){if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-t>this.sourceWorldWidth_/2){const i=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];i[0][0]-t>this.sourceWorldWidth_/2&&(i[0][0]-=this.sourceWorldWidth_),i[1][0]-t>this.sourceWorldWidth_/2&&(i[1][0]-=this.sourceWorldWidth_),i[2][0]-t>this.sourceWorldWidth_/2&&(i[2][0]-=this.sourceWorldWidth_);const n=Math.min(i[0][0],i[1][0],i[2][0]),s=Math.max(i[0][0],i[1][0],i[2][0]);s-n<this.sourceWorldWidth_/2&&(e.source=i)}}.bind(this))}l={}}addTriangle_(t,e,i,n,s,r){this.triangles_.push({source:[n,s,r],target:[t,e,i]})}addQuad_(t,e,i,s,o,h,l,c,u){const d=Object(n["b"])([o,h,l,c]),g=this.sourceWorldWidth_?Object(n["E"])(d)/this.sourceWorldWidth_:null,f=this.sourceWorldWidth_,_=this.sourceProj_.canWrapX()&&g>.5&&g<1;let m=!1;if(u>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const r=Object(n["b"])([t,e,i,s]),o=Object(n["E"])(r)/this.targetWorldWidth_;m=o>a||m}!_&&this.sourceProj_.isGlobal()&&g&&(m=g>a||m)}if(!m&&this.maxSourceExtent_&&isFinite(d[0])&&isFinite(d[1])&&isFinite(d[2])&&isFinite(d[3])&&!Object(n["F"])(d,this.maxSourceExtent_))return;let p=0;if(!m&&(!isFinite(o[0])||!isFinite(o[1])||!isFinite(h[0])||!isFinite(h[1])||!isFinite(l[0])||!isFinite(l[1])||!isFinite(c[0])||!isFinite(c[1])))if(u>0)m=!0;else if(p=(isFinite(o[0])&&isFinite(o[1])?0:8)+(isFinite(h[0])&&isFinite(h[1])?0:4)+(isFinite(l[0])&&isFinite(l[1])?0:2)+(isFinite(c[0])&&isFinite(c[1])?0:1),1!=p&&2!=p&&4!=p&&8!=p)return;if(u>0){if(!m){const e=[(t[0]+i[0])/2,(t[1]+i[1])/2],n=this.transformInv_(e);let s;if(_){const t=(Object(r["e"])(o[0],f)+Object(r["e"])(l[0],f))/2;s=t-Object(r["e"])(n[0],f)}else s=(o[0]+l[0])/2-n[0];const a=(o[1]+l[1])/2-n[1],h=s*s+a*a;m=h>this.errorThresholdSquared_}if(m){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){const n=[(e[0]+i[0])/2,(e[1]+i[1])/2],r=this.transformInv_(n),a=[(s[0]+t[0])/2,(s[1]+t[1])/2],d=this.transformInv_(a);this.addQuad_(t,e,n,a,o,h,r,d,u-1),this.addQuad_(a,n,i,s,d,r,l,c,u-1)}else{const n=[(t[0]+e[0])/2,(t[1]+e[1])/2],r=this.transformInv_(n),a=[(i[0]+s[0])/2,(i[1]+s[1])/2],d=this.transformInv_(a);this.addQuad_(t,n,a,s,o,r,d,c,u-1),this.addQuad_(n,e,i,a,r,h,l,d,u-1)}return}}if(_){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&p)&&this.addTriangle_(t,i,s,o,l,c),0==(14&p)&&this.addTriangle_(t,i,e,o,l,h),p&&(0==(13&p)&&this.addTriangle_(e,s,t,h,c,o),0==(7&p)&&this.addTriangle_(e,s,i,h,c,l))}calculateSourceExtent(){const t=Object(n["j"])();return this.triangles_.forEach((function(e,i,s){const r=e.source;Object(n["q"])(t,r[0]),Object(n["q"])(t,r[1]),Object(n["q"])(t,r[2])})),t}getTriangles(){return this.triangles_}}e["a"]=h},"1d8e":function(t,e,i){"use strict";var n=i("3b99"),s=i("2fc48"),r=i("b91b");class o extends n["a"]{constructor(t){super(),this.projection=Object(r["j"])(t.projection),this.attributions_=a(t.attributions),this.attributionsCollapsible_=void 0===t.attributionsCollapsible||t.attributionsCollapsible,this.loading=!1,this.state_=void 0!==t.state?t.state:"ready",this.wrapX_=void 0!==t.wrapX&&t.wrapX,this.interpolate_=!!t.interpolate,this.viewResolver=null,this.viewRejector=null;const e=this;this.viewPromise_=new Promise((function(t,i){e.viewResolver=t,e.viewRejector=i}))}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(){return Object(s["a"])()}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(t){this.attributions_=a(t),this.changed()}setState(t){this.state_=t,this.changed()}}function a(t){return t?Array.isArray(t)?function(e){return t}:"function"===typeof t?t:function(e){return[t]}:null}e["a"]=o},2907:function(t,e,i){"use strict";var n=i("52ac"),s=i("3b99"),r=i("b623"),o=i("8a11");const a={LENGTH:"length"};class h extends o["a"]{constructor(t,e,i){super(t),this.element=e,this.index=i}}class l extends s["a"]{constructor(t,e){if(super(),this.on,this.once,this.un,e=e||{},this.unique_=!!e.unique,this.array_=t||[],this.unique_)for(let i=0,n=this.array_.length;i<n;++i)this.assertUnique_(this.array_[i],i);this.updateLength_()}clear(){while(this.getLength()>0)this.pop()}extend(t){for(let e=0,i=t.length;e<i;++e)this.push(t[e]);return this}forEach(t){const e=this.array_;for(let i=0,n=e.length;i<n;++i)t(e[i],i,e)}getArray(){return this.array_}item(t){return this.array_[t]}getLength(){return this.get(a.LENGTH)}insertAt(t,e){if(t<0||t>this.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new h(r["a"].ADD,e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);const e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){const e=this.array_;for(let i=0,n=e.length;i<n;++i)if(e[i]===t)return this.removeAt(i)}removeAt(t){if(t<0||t>=this.getLength())return;const e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new h(r["a"].REMOVE,e,t)),e}setAt(t,e){const i=this.getLength();if(t>=i)return void this.insertAt(t,e);if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);const n=this.array_[t];this.array_[t]=e,this.dispatchEvent(new h(r["a"].REMOVE,n,t)),this.dispatchEvent(new h(r["a"].ADD,e,t))}updateLength_(){this.set(a.LENGTH,this.array_.length)}assertUnique_(t,e){for(let i=0,s=this.array_.length;i<s;++i)if(this.array_[i]===t&&i!==e)throw new n["a"](58)}}e["a"]=l},"2fc48":function(t,e,i){"use strict";function n(){throw new Error("Unimplemented abstract method.")}i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r}));let s=0;function r(t){return t.ol_uid||(t.ol_uid=String(++s))}},"333c":function(t,e,i){"use strict";var n=i("3b99"),s=i("b27a"),r=i("2fc48"),o=i("54a8"),a=i("d580");class h extends n["a"]{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const e=Object.assign({},t);"object"===typeof t.properties&&(delete e.properties,Object.assign(e,t.properties)),e[s["a"].OPACITY]=void 0!==t.opacity?t.opacity:1,Object(o["a"])("number"===typeof e[s["a"].OPACITY],64),e[s["a"].VISIBLE]=void 0===t.visible||t.visible,e[s["a"].Z_INDEX]=t.zIndex,e[s["a"].MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,e[s["a"].MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,e[s["a"].MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,e[s["a"].MAX_ZOOM]=void 0!==t.maxZoom?t.maxZoom:1/0,this.className_=void 0!==e.className?e.className:"ol-layer",delete e.className,this.setProperties(e),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const e=this.state_||{layer:this,managed:void 0===t||t},i=this.getZIndex();return e.opacity=Object(a["b"])(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==i||e.managed?i:1/0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e}getLayersArray(t){return Object(r["a"])()}getLayerStatesArray(t){return Object(r["a"])()}getExtent(){return this.get(s["a"].EXTENT)}getMaxResolution(){return this.get(s["a"].MAX_RESOLUTION)}getMinResolution(){return this.get(s["a"].MIN_RESOLUTION)}getMinZoom(){return this.get(s["a"].MIN_ZOOM)}getMaxZoom(){return this.get(s["a"].MAX_ZOOM)}getOpacity(){return this.get(s["a"].OPACITY)}getSourceState(){return Object(r["a"])()}getVisible(){return this.get(s["a"].VISIBLE)}getZIndex(){return this.get(s["a"].Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(s["a"].EXTENT,t)}setMaxResolution(t){this.set(s["a"].MAX_RESOLUTION,t)}setMinResolution(t){this.set(s["a"].MIN_RESOLUTION,t)}setMaxZoom(t){this.set(s["a"].MAX_ZOOM,t)}setMinZoom(t){this.set(s["a"].MIN_ZOOM,t)}setOpacity(t){Object(o["a"])("number"===typeof t,64),this.set(s["a"].OPACITY,t)}setVisible(t){this.set(s["a"].VISIBLE,t)}setZIndex(t){this.set(s["a"].Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}e["a"]=h},3426:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return s}));const n=42,s=256},"3b99":function(t,e,i){"use strict";var n=i("8a11"),s=i("3c38"),r=i("3dfa"),o=i("2fc48"),a=i("73af");class h extends n["a"]{constructor(t,e,i){super(t),this.key=e,this.oldValue=i}}class l extends r["a"]{constructor(t){super(),this.on,this.once,this.un,Object(o["b"])(this),this.values_=null,void 0!==t&&this.setProperties(t)}get(t){let e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}hasProperties(){return!!this.values_}notify(t,e){let i;i="change:"+t,this.hasListener(i)&&this.dispatchEvent(new h(i,t,e)),i=s["a"].PROPERTYCHANGE,this.hasListener(i)&&this.dispatchEvent(new h(i,t,e))}addChangeListener(t,e){this.addEventListener("change:"+t,e)}removeChangeListener(t,e){this.removeEventListener("change:"+t,e)}set(t,e,i){const n=this.values_||(this.values_={});if(i)n[t]=e;else{const i=n[t];n[t]=e,i!==e&&this.notify(t,i)}}setProperties(t,e){for(const i in t)this.set(i,t[i],e)}applyProperties(t){t.values_&&Object.assign(this.values_||(this.values_={}),t.values_)}unset(t,e){if(this.values_&&t in this.values_){const i=this.values_[t];delete this.values_[t],Object(a["b"])(this.values_)&&(this.values_=null),e||this.notify(t,i)}}}e["a"]=l},"3c38":function(t,e,i){"use strict";e["a"]={PROPERTYCHANGE:"propertychange"}},"3dfa":function(t,e,i){"use strict";var n=i("9e10"),s=i("8f60"),r=i("1005");class o extends n["a"]{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(s["a"].CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const i=t.length,n=new Array(i);for(let s=0;s<i;++s)n[s]=Object(r["a"])(this,t[s],e);return n}return Object(r["a"])(this,t,e)}onceInternal(t,e){let i;if(Array.isArray(t)){const n=t.length;i=new Array(n);for(let s=0;s<n;++s)i[s]=Object(r["b"])(this,t[s],e)}else i=Object(r["b"])(this,t,e);return e.ol_key=i,i}unInternal(t,e){const i=e.ol_key;if(i)a(i);else if(Array.isArray(t))for(let n=0,s=t.length;n<s;++n)this.removeEventListener(t[n],e);else this.removeEventListener(t,e)}}function a(t){if(Array.isArray(t))for(let e=0,i=t.length;e<i;++e)Object(r["c"])(t[e]);else Object(r["c"])(t)}o.prototype.on,o.prototype.once,o.prototype.un,e["a"]=o},"4a0d":function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return o}));var n=i("d580");const s=6371008.8;function r(t,e,i){i=i||s;const r=Object(n["k"])(t[1]),o=Object(n["k"])(e[1]),a=(o-r)/2,h=Object(n["k"])(e[0]-t[0])/2,l=Math.sin(a)*Math.sin(a)+Math.sin(h)*Math.sin(h)*Math.cos(r)*Math.cos(o);return 2*i*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}function o(t,e,i,r){r=r||s;const o=Object(n["k"])(t[1]),a=Object(n["k"])(t[0]),h=e/r,l=Math.asin(Math.sin(o)*Math.cos(h)+Math.cos(o)*Math.sin(h)*Math.cos(i)),c=a+Math.atan2(Math.sin(i)*Math.sin(h)*Math.cos(o),Math.cos(h)-Math.sin(o)*Math.sin(l));return[Object(n["i"])(c),Object(n["i"])(l)]}},"4f7f":function(t,e,i){"use strict";function n(t,e,i,n,s){s=void 0!==s?s:[];let r=0;for(let o=e;o<i;o+=n)s[r++]=t.slice(o,o+n);return s.length=r,s}function s(t,e,i,s,r){r=void 0!==r?r:[];let o=0;for(let a=0,h=i.length;a<h;++a){const h=i[a];r[o++]=n(t,e,h,s,r[o]),e=h}return r.length=o,r}function r(t,e,i,n,r){r=void 0!==r?r:[];let o=0;for(let a=0,h=i.length;a<h;++a){const h=i[a];r[o++]=1===h.length&&h[0]===e?[]:s(t,e,h,n,r[o]),e=h[h.length-1]}return r.length=o,r}i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return r}))},5296:function(t,e,i){"use strict";var n=i("8a11");class s extends n["a"]{constructor(t,e,i,n){super(t),this.inversePixelTransform=e,this.frameState=i,this.context=n}}e["a"]=s},"52ac":function(t,e,i){"use strict";const n={1:"The view center is not defined",2:"The view resolution is not defined",3:"The view rotation is not defined",4:"`image` and `src` cannot be provided at the same time",5:"`imgSize` must be set when `image` is provided",7:"`format` must be set when `url` is set",8:"Unknown `serverType` configured",9:"`url` must be configured or set using `#setUrl()`",10:"The default `geometryFunction` can only handle `Point` geometries",11:"`options.featureTypes` must be an Array",12:"`options.geometryName` must also be provided when `options.bbox` is set",13:"Invalid corner",14:"Invalid color",15:"Tried to get a value for a key that does not exist in the cache",16:"Tried to set a value for a key that is used already",17:"`resolutions` must be sorted in descending order",18:"Either `origin` or `origins` must be configured, never both",19:"Number of `tileSizes` and `resolutions` must be equal",20:"Number of `origins` and `resolutions` must be equal",22:"Either `tileSize` or `tileSizes` must be configured, never both",24:"Invalid extent or geometry provided as `geometry`",25:"Cannot fit empty extent provided as `geometry`",26:"Features must have an id set",27:"Features must have an id set",28:'`renderMode` must be `"hybrid"` or `"vector"`',30:"The passed `feature` was already added to the source",31:"Tried to enqueue an `element` that was already added to the queue",32:"Transformation matrix cannot be inverted",33:"Invalid units",34:"Invalid geometry layout",36:"Unknown SRS type",37:"Unknown geometry type found",38:"`styleMapValue` has an unknown type",39:"Unknown geometry type",40:"Expected `feature` to have a geometry",41:"Expected an `ol/style/Style` or an array of `ol/style/Style.js`",42:"Question unknown, the answer is 42",43:"Expected `layers` to be an array or a `Collection`",47:"Expected `controls` to be an array or an `ol/Collection`",48:"Expected `interactions` to be an array or an `ol/Collection`",49:"Expected `overlays` to be an array or an `ol/Collection`",50:"`options.featureTypes` should be an Array",51:"Either `url` or `tileJSON` options must be provided",52:"Unknown `serverType` configured",53:"Unknown `tierSizeCalculation` configured",55:"The {-y} placeholder requires a tile grid with extent",56:"mapBrowserEvent must originate from a pointer event",57:"At least 2 conditions are required",59:"Invalid command found in the PBF",60:"Missing or invalid `size`",61:"Cannot determine IIIF Image API version from provided image information JSON",62:"A `WebGLArrayBuffer` must either be of type `ELEMENT_ARRAY_BUFFER` or `ARRAY_BUFFER`",64:"Layer opacity must be a number",66:"`forEachFeatureAtCoordinate` cannot be used on a WebGL layer if the hit detection logic has not been enabled. This is done by providing adequate shaders using the `hitVertexShader` and `hitFragmentShader` properties of `WebGLPointsLayerRenderer`",67:"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both",68:"A VectorTile source can only be rendered if it has a projection compatible with the view projection"};class s extends Error{constructor(t){const e=n[t];super(e),this.code=t,this.name="AssertionError",this.message=e}}e["a"]=s},"54a8":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("52ac");function s(t,e){if(!t)throw new n["a"](e)}},"577e":function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return r})),i.d(e,"d",(function(){return o})),i.d(e,"e",(function(){return a})),i.d(e,"f",(function(){return h})),i.d(e,"c",(function(){return l}));var n=i("93f7");i("d580");function s(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function r(t,e){let i=!0;for(let n=t.length-1;n>=0;--n)if(t[n]!=e[n]){i=!1;break}return i}function o(t,e){const i=Math.cos(e),n=Math.sin(e),s=t[0]*i-t[1]*n,r=t[1]*i+t[0]*n;return t[0]=s,t[1]=r,t}function a(t,e){return t[0]*=e,t[1]*=e,t}function h(t,e){if(e.canWrapX()){const i=Object(n["E"])(e.getExtent()),s=l(t,e,i);s&&(t[0]-=s*i)}return t}function l(t,e,i){const s=e.getExtent();let r=0;return e.canWrapX()&&(t[0]<s[0]||t[0]>s[2])&&(i=i||Object(n["E"])(s),r=Math.floor((t[0]-s[0])/i)),r}},"5df6":function(t,e,i){"use strict";i.d(e,"a",(function(){return m}));var n=i("8f60"),s=i("0e0c"),r=i("3dfa"),o=i("2fc48");class a extends r["a"]{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.declutterExecutorGroup=null}getFeatures(t){return Object(o["a"])()}getData(t){return null}prepareFrame(t){return Object(o["a"])()}renderFrame(t,e){return Object(o["a"])()}loadedTileCallback(t,e,i){t[e]||(t[e]={}),t[e][i.tileCoord.toString()]=i}createLoadedTileFinder(t,e,i){return function(n,s){const r=this.loadedTileCallback.bind(this,i,n);return t.forEachLoadedTile(e,n,s,r)}.bind(this)}forEachFeatureAtCoordinate(t,e,i,n,s){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){const e=t.target;e.getState()===s["a"].LOADED&&this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=s["a"].LOADED&&e!=s["a"].ERROR&&t.addEventListener(n["a"].CHANGE,this.boundHandleImageChange_),e==s["a"].IDLE&&(t.load(),e=t.getState()),e==s["a"].LOADED}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}}var h=a,l=i("5296"),c=i("0bc5"),u=i("ac76"),d=i("9353"),g=i("d72a"),f=i("b485"),_=i("93f7");const m=[];let p=null;function y(){const t=document.createElement("canvas");t.width=1,t.height=1,p=t.getContext("2d")}class v extends h{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=Object(u["c"])(),this.pixelTransform=Object(u["c"])(),this.inversePixelTransform=Object(u["c"])(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(t,e,i){let n;p||y(),p.clearRect(0,0,1,1);try{p.drawImage(t,e,i,1,1,0,0,1,1),n=p.getImageData(0,0,1,1).data}catch(s){return p=null,null}return n}getBackground(t){const e=this.getLayer();let i=e.getBackground();return"function"===typeof i&&(i=i(t.viewState.resolution)),i||void 0}useContainer(t,e,i){const n=this.getLayer().getClassName();let s,r;if(t&&t.className===n&&(!i||t&&t.style.backgroundColor&&Object(f["b"])(Object(d["a"])(t.style.backgroundColor),Object(d["a"])(i)))){const e=t.firstElementChild;e instanceof HTMLCanvasElement&&(r=e.getContext("2d"))}if(r&&r.canvas.style.transform===e?(this.container=t,this.context=r,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){s=document.createElement("div"),s.className=n;let t=s.style;t.position="absolute",t.width="100%",t.height="100%",r=Object(g["a"])();const e=r.canvas;s.appendChild(e),t=e.style,t.position="absolute",t.left="0",t.transformOrigin="top left",this.container=s,this.context=r}this.containerReused||!i||this.container.style.backgroundColor||(this.container.style.backgroundColor=i)}clipUnrotated(t,e,i){const n=Object(_["C"])(i),s=Object(_["D"])(i),r=Object(_["v"])(i),o=Object(_["u"])(i);Object(u["a"])(e.coordinateToPixelTransform,n),Object(u["a"])(e.coordinateToPixelTransform,s),Object(u["a"])(e.coordinateToPixelTransform,r),Object(u["a"])(e.coordinateToPixelTransform,o);const a=this.inversePixelTransform;Object(u["a"])(a,n),Object(u["a"])(a,s),Object(u["a"])(a,r),Object(u["a"])(a,o),t.save(),t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(n[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.clip()}dispatchRenderEvent_(t,e,i){const n=this.getLayer();if(n.hasListener(t)){const s=new l["a"](t,this.inversePixelTransform,i,e);n.dispatchEvent(s)}}preRender(t,e){this.frameState=e,this.dispatchRenderEvent_(c["a"].PRERENDER,t,e)}postRender(t,e){this.dispatchRenderEvent_(c["a"].POSTRENDER,t,e)}getRenderTransform(t,e,i,n,s,r,o){const a=s/2,h=r/2,l=n/e,c=-l,d=-t[0]+o,g=-t[1];return Object(u["b"])(this.tempTransform,a,h,l,c,-i,d,g)}disposeInternal(){delete this.frameState,super.disposeInternal()}}e["b"]=v},"5e62":function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"f",(function(){return o})),i.d(e,"d",(function(){return a})),i.d(e,"a",(function(){return h})),i.d(e,"g",(function(){return l})),i.d(e,"c",(function(){return c})),i.d(e,"e",(function(){return u}));const n="undefined"!==typeof navigator&&"undefined"!==typeof navigator.userAgent?navigator.userAgent.toLowerCase():"",s=n.includes("firefox"),r=n.includes("safari")&&!n.includes("chrom"),o=(r&&(n.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(n)),n.includes("webkit")&&!n.includes("edge")),a=n.includes("macintosh"),h="undefined"!==typeof devicePixelRatio?devicePixelRatio:1,l="undefined"!==typeof WorkerGlobalScope&&"undefined"!==typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,c="undefined"!==typeof Image&&Image.prototype.decode,u=function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(e){}return t}()},"66d7":function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("9353");class s{constructor(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const i=this.cache_[e];0!==(3&t++)||i.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}}get(t,e,i){const n=r(t,e,i);return n in this.cache_?this.cache_[n]:null}set(t,e,i,n){const s=r(t,e,i);this.cache_[s]=n,++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}}function r(t,e,i){const s=i?Object(n["b"])(i):"null";return e+":"+t+":"+s}const o=new s},6780:function(t,e,i){"use strict";var n=i("0e0c"),s=i("d9ad"),r=i("9353"),o=i("c812"),a=i("d72a"),h=i("8090");class l extends s["a"]{constructor(t){const e=void 0!==t.rotateWithView&&t.rotateWithView;super({opacity:1,rotateWithView:e,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode}),this.canvas_=void 0,this.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius_=void 0!==t.radius?t.radius:t.radius1,this.radius2_=t.radius2,this.angle_=void 0!==t.angle?t.angle:0,this.stroke_=void 0!==t.stroke?t.stroke:null,this.size_=null,this.renderOptions_=null,this.render()}clone(){const t=this.getScale(),e=new l({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}getAnchor(){const t=this.size_;if(!t)return null;const e=this.getDisplacement(),i=this.getScaleArray();return[t[0]/2-e[0]/i[0],t[1]/2+e[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(t){this.fill_=t,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_}getImage(t){let e=this.canvas_[t];if(!e){const i=this.renderOptions_,n=Object(a["a"])(i.size*t,i.size*t);this.draw_(i,n,t),e=n.canvas,this.canvas_[t]=e}return e}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return n["a"].LOADED}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius_}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t,this.render()}listenImageChange(t){}load(){}unlistenImageChange(t){}calculateLineJoinSize_(t,e,i){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;let n=this.radius_,s=void 0===this.radius2_?n:this.radius2_;if(n<s){const t=n;n=s,s=t}const r=void 0===this.radius2_?this.points_:2*this.points_,o=2*Math.PI/r,a=s*Math.sin(o),h=Math.sqrt(s*s-a*a),l=n-h,c=Math.sqrt(a*a+l*l),u=c/a;if("miter"===t&&u<=i)return u*e;const d=e/2/u,g=e/2*(l/c),f=Math.sqrt((n+d)*(n+d)+g*g),_=f-n;if(void 0===this.radius2_||"bevel"===t)return 2*_;const m=n*Math.sin(o),p=Math.sqrt(n*n-m*m),y=s-p,v=Math.sqrt(m*m+y*y),b=v/m;if(b<=i){const t=b*e/2-s-n;return 2*Math.max(_,t)}return 2*_}createRenderOptions(){let t,e=h["g"],i=0,n=null,s=0,r=0;this.stroke_&&(t=this.stroke_.getColor(),null===t&&(t=h["k"]),t=Object(o["a"])(t),r=this.stroke_.getWidth(),void 0===r&&(r=h["h"]),n=this.stroke_.getLineDash(),s=this.stroke_.getLineDashOffset(),e=this.stroke_.getLineJoin(),void 0===e&&(e=h["g"]),i=this.stroke_.getMiterLimit(),void 0===i&&(i=h["i"]));const a=this.calculateLineJoinSize_(e,r,i),l=Math.max(this.radius_,this.radius2_||0),c=Math.ceil(2*l+a);return{strokeStyle:t,strokeWidth:r,size:c,lineDash:n,lineDashOffset:s,lineJoin:e,miterLimit:i}}render(){this.renderOptions_=this.createRenderOptions();const t=this.renderOptions_.size;this.canvas_={},this.size_=[t,t]}draw_(t,e,i){if(e.scale(i,i),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){let t=this.fill_.getColor();null===t&&(t=h["b"]),e.fillStyle=Object(o["a"])(t),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())}createHitDetectionCanvas_(t){if(this.fill_){let e=this.fill_.getColor(),i=0;if("string"===typeof e&&(e=Object(r["a"])(e)),null===e?i=1:Array.isArray(e)&&(i=4===e.length?e[3]:1),0===i){const e=Object(a["a"])(t.size,t.size);this.hitDetectionCanvas_=e.canvas,this.drawHitDetectionCanvas_(t,e)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))}createPath_(t){let e=this.points_;const i=this.radius_;if(e===1/0)t.arc(0,0,i,0,2*Math.PI);else{const n=void 0===this.radius2_?i:this.radius2_;void 0!==this.radius2_&&(e*=2);const s=this.angle_-Math.PI/2,r=2*Math.PI/e;for(let o=0;o<e;o++){const e=s+o*r,a=o%2===0?i:n;t.lineTo(a*Math.cos(e),a*Math.sin(e))}t.closePath()}}drawHitDetectionCanvas_(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=h["b"],e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())}}e["a"]=l},"69c7":function(t,e,i){"use strict";function n(t,e,i,n,s,r){r=r||[];let o=0;for(let a=e;a<i;a+=n){const e=t[a],i=t[a+1];r[o++]=s[0]*e+s[2]*i+s[4],r[o++]=s[1]*e+s[3]*i+s[5]}return r&&r.length!=o&&(r.length=o),r}function s(t,e,i,n,s,r,o){o=o||[];const a=Math.cos(s),h=Math.sin(s),l=r[0],c=r[1];let u=0;for(let d=e;d<i;d+=n){const e=t[d]-l,i=t[d+1]-c;o[u++]=l+e*a-i*h,o[u++]=c+e*h+i*a;for(let s=d+2;s<d+n;++s)o[u++]=t[s]}return o&&o.length!=u&&(o.length=u),o}function r(t,e,i,n,s,r,o,a){a=a||[];const h=o[0],l=o[1];let c=0;for(let u=e;u<i;u+=n){const e=t[u]-h,i=t[u+1]-l;a[c++]=h+s*e,a[c++]=l+r*i;for(let s=u+2;s<u+n;++s)a[c++]=t[s]}return a&&a.length!=c&&(a.length=c),a}function o(t,e,i,n,s,r,o){o=o||[];let a=0;for(let h=e;h<i;h+=n){o[a++]=t[h]+s,o[a++]=t[h+1]+r;for(let e=h+2;e<h+n;++e)o[a++]=t[e]}return o&&o.length!=a&&(o.length=a),o}i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return r})),i.d(e,"d",(function(){return o}))},"6b8e":function(t,e,i){"use strict";e["a"]={ANIMATING:0,INTERACTING:1}},"6d50":function(t,e,i){"use strict";var n=i("6780");class s extends n["a"]{constructor(t){t=t||{radius:5},super({points:1/0,fill:t.fill,radius:t.radius,stroke:t.stroke,scale:void 0!==t.scale?t.scale:1,rotation:void 0!==t.rotation?t.rotation:0,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode})}clone(){const t=this.getScale(),e=new s({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(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}setRadius(t){this.radius_=t,this.render()}}e["a"]=s},"6f69":function(t,e,i){"use strict";i.d(e,"c",(function(){return n})),i.d(e,"d",(function(){return s})),i.d(e,"b",(function(){return r})),i.d(e,"a",(function(){return o})),i.d(e,"e",(function(){return l}));const n="ol-hidden",s="ol-unselectable",r="ol-control",o="ol-collapsed",a=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"),h=["style","variant","weight","size","lineHeight","family"],l=function(t){const e=t.match(a);if(!e)return null;const i={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let n=0,s=h.length;n<s;++n){const t=e[n+1];void 0!==t&&(i[h[n]]=t)}return i.families=i.family.split(/,\s?/),i}},"6fe8":function(t,e,i){"use strict";function n(t,e,i,n){let s=0,r=t[i-n],o=t[i-n+1];for(;e<i;e+=n){const i=t[e],n=t[e+1];s+=o*i-r*n,r=i,o=n}return s/2}function s(t,e,i,s){let r=0;for(let o=0,a=i.length;o<a;++o){const a=i[o];r+=n(t,e,a,s),e=a}return r}function r(t,e,i,n){let r=0;for(let o=0,a=i.length;o<a;++o){const a=i[o];r+=s(t,e,a,n),e=a[a.length-1]}return r}i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return r}))},7013:function(t,e,i){"use strict";i.d(e,"c",(function(){return h})),i.d(e,"b",(function(){return d})),i.d(e,"a",(function(){return g})),i.d(e,"d",(function(){return f}));var n=i("93f7"),s=i("d72a"),r=i("b91b"),o=i("d580");let a;const h=[];function l(t,e,i,n,s){t.beginPath(),t.moveTo(0,0),t.lineTo(e,i),t.lineTo(n,s),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,n)+1,Math.max(i,s)),t.restore()}function c(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function u(){if(void 0===a){const t=document.createElement("canvas").getContext("2d");t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",l(t,4,5,4,0),l(t,4,5,0,5);const e=t.getImageData(0,0,3,3).data;a=c(e,0)||c(e,4)||c(e,8)}return a}function d(t,e,i,s){const o=Object(r["r"])(i,e,t);let a=Object(r["k"])(e,s,i);const h=e.getMetersPerUnit();void 0!==h&&(a*=h);const l=t.getMetersPerUnit();void 0!==l&&(a/=l);const c=t.getExtent();if(!c||Object(n["f"])(c,o)){const e=Object(r["k"])(t,a,o)/a;isFinite(e)&&e>0&&(a/=e)}return a}function g(t,e,i,s){const r=Object(n["w"])(i);let o=d(t,e,r,s);return(!isFinite(o)||o<=0)&&Object(n["s"])(i,(function(i){return o=d(t,e,i,s),isFinite(o)&&o>0})),o}function f(t,e,i,r,a,l,c,d,g,f,_,m){const p=Object(s["a"])(Math.round(i*t),Math.round(i*e),h);if(m||(p.imageSmoothingEnabled=!1),0===g.length)return p.canvas;function y(t){return Math.round(t*i)/i}p.scale(i,i),p.globalCompositeOperation="lighter";const v=Object(n["j"])();g.forEach((function(t,e,i){Object(n["p"])(v,t.extent)}));const b=Object(n["E"])(v),x=Object(n["z"])(v),O=Object(s["a"])(Math.round(i*b/r),Math.round(i*x/r));m||(O.imageSmoothingEnabled=!1);const E=i/r;g.forEach((function(t,e,i){const s=t.extent[0]-v[0],r=-(t.extent[3]-v[3]),o=Object(n["E"])(t.extent),a=Object(n["z"])(t.extent);t.image.width>0&&t.image.height>0&&O.drawImage(t.image,f,f,t.image.width-2*f,t.image.height-2*f,s*E,r*E,o*E,a*E)}));const C=Object(n["C"])(c);return d.getTriangles().forEach((function(t,e,n){const s=t.source,a=t.target;let h=s[0][0],c=s[0][1],d=s[1][0],g=s[1][1],f=s[2][0],_=s[2][1];const b=y((a[0][0]-C[0])/l),x=y(-(a[0][1]-C[1])/l),E=y((a[1][0]-C[0])/l),S=y(-(a[1][1]-C[1])/l),R=y((a[2][0]-C[0])/l),I=y(-(a[2][1]-C[1])/l),w=h,j=c;h=0,c=0,d-=w,g-=j,f-=w,_-=j;const T=[[d,g,0,0,E-b],[f,_,0,0,R-b],[0,0,d,g,S-x],[0,0,f,_,I-x]],M=Object(o["f"])(T);if(M){if(p.save(),p.beginPath(),u()||!m){p.moveTo(E,S);const t=4,e=b-E,i=x-S;for(let n=0;n<t;n++)p.lineTo(E+y((n+1)*e/t),S+y(n*i/(t-1))),n!=t-1&&p.lineTo(E+y((n+1)*e/t),S+y((n+1)*i/(t-1)));p.lineTo(R,I)}else p.moveTo(E,S),p.lineTo(b,x),p.lineTo(R,I);p.clip(),p.transform(M[0],M[2],M[1],M[3],b,x),p.translate(v[0]-w,v[3]-j),p.scale(r/i,-r/i),p.drawImage(O.canvas,0,0),p.restore()}})),_&&(p.save(),p.globalCompositeOperation="source-over",p.strokeStyle="black",p.lineWidth=1,d.getTriangles().forEach((function(t,e,i){const n=t.target,s=(n[0][0]-C[0])/l,r=-(n[0][1]-C[1])/l,o=(n[1][0]-C[0])/l,a=-(n[1][1]-C[1])/l,h=(n[2][0]-C[0])/l,c=-(n[2][1]-C[1])/l;p.beginPath(),p.moveTo(o,a),p.lineTo(s,r),p.lineTo(h,c),p.closePath(),p.stroke()})),p.restore()),p.canvas}},"73af":function(t,e,i){"use strict";function n(t){for(const e in t)delete t[e]}function s(t){let e;for(e in t)return!1;return!e}i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return s}))},"754a":function(t,e,i){"use strict";class n{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}e["a"]=n},7774:function(t,e,i){"use strict";function n(t){return Math.pow(t,3)}function s(t){return 1-n(1-t)}function r(t){return 3*t*t-2*t*t*t}function o(t){return t}i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return r})),i.d(e,"d",(function(){return o}))},"7bf1":function(t,e,i){"use strict";i.d(e,"b",(function(){return c}));var n=i("8f60"),s=i("1bcb"),r=i("0e0c"),o=i("5e62"),a=i("93f7"),h=i("1005");class l extends s["a"]{constructor(t,e,i,n,s,o){super(t,e,i,r["a"].IDLE),this.src_=n,this.image_=new Image,null!==s&&(this.image_.crossOrigin=s),this.unlisten_=null,this.state=r["a"].IDLE,this.imageLoadFunction_=o}getImage(){return this.image_}handleImageError_(){this.state=r["a"].ERROR,this.unlistenImage_(),this.changed()}handleImageLoad_(){void 0===this.resolution&&(this.resolution=Object(a["z"])(this.extent)/this.image_.height),this.state=r["a"].LOADED,this.unlistenImage_(),this.changed()}load(){this.state!=r["a"].IDLE&&this.state!=r["a"].ERROR||(this.state=r["a"].LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=c(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}setImage(t){this.image_=t,this.resolution=Object(a["z"])(this.extent)/this.image_.height}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}function c(t,e,i){const s=t;let r=!0,a=!1,l=!1;const c=[Object(h["b"])(s,n["a"].LOAD,(function(){l=!0,a||e()}))];return s.src&&o["c"]?(a=!0,s.decode().then((function(){r&&e()})).catch((function(t){r&&(l?e():i())}))):c.push(Object(h["b"])(s,n["a"].ERROR,i)),function(){r=!1,c.forEach(h["c"])}}e["a"]=l},8090:function(t,e,i){"use strict";i.d(e,"c",(function(){return h})),i.d(e,"b",(function(){return l})),i.d(e,"d",(function(){return c})),i.d(e,"e",(function(){return u})),i.d(e,"f",(function(){return d})),i.d(e,"g",(function(){return g})),i.d(e,"i",(function(){return f})),i.d(e,"k",(function(){return _})),i.d(e,"l",(function(){return m})),i.d(e,"m",(function(){return p})),i.d(e,"j",(function(){return y})),i.d(e,"h",(function(){return v})),i.d(e,"a",(function(){return b})),i.d(e,"q",(function(){return C})),i.d(e,"p",(function(){return w})),i.d(e,"o",(function(){return j})),i.d(e,"n",(function(){return T}));var n=i("3b99"),s=i("5e62"),r=i("73af"),o=i("d72a"),a=i("6f69");const h="10px sans-serif",l="#000",c="round",u=[],d=0,g="round",f=10,_="#000",m="center",p="middle",y=[0,0,0,0],v=1,b=new n["a"];let x,O=null;const E={},C=function(){const t=100,e="32px ",i=["monospace","serif"],n=i.length,s="wmytzilWMYTZIL@#/&?$%10";let o,h;function l(t,r,o){let a=!0;for(let l=0;l<n;++l){const n=i[l];if(h=I(t+" "+r+" "+e+n,s),o!=n){const i=I(t+" "+r+" "+e+o+","+n,s);a=a&&i!=h}}return!!a}function c(){let e=!0;const i=b.getKeys();for(let n=0,s=i.length;n<s;++n){const s=i[n];b.get(s)<t&&(l.apply(this,s.split("\n"))?(Object(r["a"])(E),O=null,x=void 0,b.set(s,t)):(b.set(s,b.get(s)+1,!0),e=!1))}e&&(clearInterval(o),o=void 0)}return function(e){const i=Object(a["e"])(e);if(!i)return;const n=i.families;for(let s=0,r=n.length;s<r;++s){const e=n[s],r=i.style+"\n"+i.weight+"\n"+e;void 0===b.get(r)&&(b.set(r,t,!0),l(i.style,i.weight,e)||(b.set(r,0,!0),void 0===o&&(o=setInterval(c,32))))}}}(),S=function(){let t;return function(e){let i=E[e];if(void 0==i){if(s["g"]){const t=Object(a["e"])(e),n=R(e,"Žg"),s=isNaN(Number(t.lineHeight))?1.2:Number(t.lineHeight);i=s*(n.actualBoundingBoxAscent+n.actualBoundingBoxDescent)}else t||(t=document.createElement("div"),t.innerHTML="M",t.style.minHeight="0",t.style.maxHeight="none",t.style.height="auto",t.style.padding="0",t.style.border="none",t.style.position="absolute",t.style.display="block",t.style.left="-99999px"),t.style.font=e,document.body.appendChild(t),i=t.offsetHeight,document.body.removeChild(t);E[e]=i}return i}}();function R(t,e){return O||(O=Object(o["a"])(1,1)),t!=x&&(O.font=t,x=O.font),O.measureText(e)}function I(t,e){return R(t,e).width}function w(t,e,i){if(e in i)return i[e];const n=e.split("\n").reduce((e,i)=>Math.max(e,I(t,i)),0);return i[e]=n,n}function j(t,e){const i=[],n=[],s=[];let r=0,o=0,a=0,h=0;for(let l=0,c=e.length;l<=c;l+=2){const u=e[l];if("\n"===u||l===c){r=Math.max(r,o),s.push(o),o=0,a+=h;continue}const d=e[l+1]||t.font,g=I(d,u);i.push(g),o+=g;const f=S(d);n.push(f),h=Math.max(h,f)}return{width:r,height:a,widths:i,heights:n,lineWidths:s}}function T(t,e,i,n,s,r,o,a,h,l,c){t.save(),1!==i&&(t.globalAlpha*=i),e&&t.setTransform.apply(t,e),n.contextInstructions?(t.translate(h,l),t.scale(c[0],c[1]),M(n,t)):c[0]<0||c[1]<0?(t.translate(h,l),t.scale(c[0],c[1]),t.drawImage(n,s,r,o,a,0,0,o,a)):t.drawImage(n,s,r,o,a,h,l,o*c[0],a*c[1]),t.restore()}function M(t,e){const i=t.contextInstructions;for(let n=0,s=i.length;n<s;n+=2)Array.isArray(i[n+1])?e[i[n]].apply(e,i[n+1]):e[i[n]]=i[n+1]}},"84b6":function(t,e,i){"use strict";i.d(e,"e",(function(){return r})),i.d(e,"a",(function(){return o})),i.d(e,"f",(function(){return a})),i.d(e,"d",(function(){return h})),i.d(e,"b",(function(){return l})),i.d(e,"c",(function(){return c}));var n=i("d580");function s(t,e,i,s,r,o,a){const h=t[e],l=t[e+1],c=t[i]-h,u=t[i+1]-l;let d;if(0===c&&0===u)d=e;else{const g=((r-h)*c+(o-l)*u)/(c*c+u*u);if(g>1)d=i;else{if(g>0){for(let r=0;r<s;++r)a[r]=Object(n["d"])(t[e+r],t[i+r],g);return void(a.length=s)}d=e}}for(let n=0;n<s;++n)a[n]=t[d+n];a.length=s}function r(t,e,i,s,r){let o=t[e],a=t[e+1];for(e+=s;e<i;e+=s){const i=t[e],s=t[e+1],h=Object(n["g"])(o,a,i,s);h>r&&(r=h),o=i,a=s}return r}function o(t,e,i,n,s){for(let o=0,a=i.length;o<a;++o){const a=i[o];s=r(t,e,a,n,s),e=a}return s}function a(t,e,i,n,s){for(let r=0,a=i.length;r<a;++r){const a=i[r];s=o(t,e,a,n,s),e=a[a.length-1]}return s}function h(t,e,i,r,o,a,h,l,c,u,d){if(e==i)return u;let g,f;if(0===o){if(f=Object(n["g"])(h,l,t[e],t[e+1]),f<u){for(g=0;g<r;++g)c[g]=t[e+g];return c.length=r,f}return u}d=d||[NaN,NaN];let _=e+r;while(_<i)if(s(t,_-r,_,r,h,l,d),f=Object(n["g"])(h,l,d[0],d[1]),f<u){for(u=f,g=0;g<r;++g)c[g]=d[g];c.length=r,_+=r}else _+=r*Math.max((Math.sqrt(f)-Math.sqrt(u))/o|0,1);if(a&&(s(t,i-r,e,r,h,l,d),f=Object(n["g"])(h,l,d[0],d[1]),f<u)){for(u=f,g=0;g<r;++g)c[g]=d[g];c.length=r}return u}function l(t,e,i,n,s,r,o,a,l,c,u){u=u||[NaN,NaN];for(let d=0,g=i.length;d<g;++d){const g=i[d];c=h(t,e,g,n,s,r,o,a,l,c,u),e=g}return c}function c(t,e,i,n,s,r,o,a,h,c,u){u=u||[NaN,NaN];for(let d=0,g=i.length;d<g;++d){const g=i[d];c=l(t,e,g,n,s,r,o,a,h,c,u),e=g[g.length-1]}return c}},"887b":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));const n=.5},"88bb":function(t,e,i){"use strict";var n=i("e93b"),s=i("eee5");const r="#333";class o{constructor(t){t=t||{},this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=Object(s["c"])(void 0!==t.scale?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.justify_=t.justify,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new n["a"]({color:r}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:"point",this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding}clone(){const t=this.getScale();return new o({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),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()||void 0})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}setOverflow(t){this.overflow_=t}setFont(t){this.font_=t}setMaxAngle(t){this.maxAngle_=t}setOffsetX(t){this.offsetX_=t}setOffsetY(t){this.offsetY_=t}setPlacement(t){this.placement_=t}setRotateWithView(t){this.rotateWithView_=t}setFill(t){this.fill_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=Object(s["c"])(void 0!==t?t:1)}setStroke(t){this.stroke_=t}setText(t){this.text_=t}setTextAlign(t){this.textAlign_=t}setJustify(t){this.justify_=t}setTextBaseline(t){this.textBaseline_=t}setBackgroundFill(t){this.backgroundFill_=t}setBackgroundStroke(t){this.backgroundStroke_=t}setPadding(t){this.padding_=t}}e["a"]=o},"8a11":function(t,e,i){"use strict";class n{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}e["a"]=n},"8a24":function(t,e,i){"use strict";var n=i("ba47"),s=i("93f7"),r=i("a9a2"),o=i("d580");class a extends n["a"]{constructor(t,e){super(),this.setCoordinates(t,e)}clone(){const t=new a(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,i,n){const s=this.flatCoordinates,r=Object(o["g"])(t,e,s[0],s[1]);if(r<n){const t=this.stride;for(let e=0;e<t;++e)i[e]=s[e];return i.length=t,r}return n}getCoordinates(){return this.flatCoordinates?this.flatCoordinates.slice():[]}computeExtent(t){return Object(s["m"])(this.flatCoordinates,t)}getType(){return"Point"}intersectsExtent(t){return Object(s["h"])(t,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(r["a"])(this.flatCoordinates,0,t,this.stride),this.changed()}}e["a"]=a},"8df8":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("5552"),s="Q3CBZ-4NI33-XVY3R-YMZWC-3PWX3-YWBA3";function r(t){return Object(n["a"])({url:"/get",method:"post",data:{url:"https://apis.map.qq.com/ws/location/v1/ip",params:Object.assign({},t,{key:s})}})}},"8f60":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"}},9353:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"a",(function(){return c})),i.d(e,"c",(function(){return g}));var n=i("54a8"),s=i("d580");const r=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,o=/^([a-z]*)$|^hsla?\(.*\)$/i;function a(t){return"string"===typeof t?t:g(t)}function h(t){const e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);const t=getComputedStyle(e).color;return document.body.removeChild(e),t}return""}const l=function(){const t=1024,e={};let i=0;return function(n){let s;if(e.hasOwnProperty(n))s=e[n];else{if(i>=t){let t=0;for(const n in e)0===(3&t++)&&(delete e[n],--i)}s=u(n),e[n]=s,++i}return s}}();function c(t){return Array.isArray(t)?t:l(t)}function u(t){let e,i,s,a,l;if(o.exec(t)&&(t=h(t)),r.exec(t)){const n=t.length-1;let r;r=n<=4?1:2;const o=4===n||8===n;e=parseInt(t.substr(1+0*r,r),16),i=parseInt(t.substr(1+1*r,r),16),s=parseInt(t.substr(1+2*r,r),16),a=o?parseInt(t.substr(1+3*r,r),16):255,1==r&&(e=(e<<4)+e,i=(i<<4)+i,s=(s<<4)+s,o&&(a=(a<<4)+a)),l=[e,i,s,a/255]}else t.startsWith("rgba(")?(l=t.slice(5,-1).split(",").map(Number),d(l)):t.startsWith("rgb(")?(l=t.slice(4,-1).split(",").map(Number),l.push(1),d(l)):Object(n["a"])(!1,14);return l}function d(t){return t[0]=Object(s["b"])(t[0]+.5|0,0,255),t[1]=Object(s["b"])(t[1]+.5|0,0,255),t[2]=Object(s["b"])(t[2]+.5|0,0,255),t[3]=Object(s["b"])(t[3],0,1),t}function g(t){let e=t[0];e!=(0|e)&&(e=e+.5|0);let i=t[1];i!=(0|i)&&(i=i+.5|0);let n=t[2];n!=(0|n)&&(n=n+.5|0);const s=void 0===t[3]?1:Math.round(100*t[3])/100;return"rgba("+e+","+i+","+n+","+s+")"}},"93f7":function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"d",(function(){return h})),i.d(e,"e",(function(){return l})),i.d(e,"f",(function(){return c})),i.d(e,"g",(function(){return u})),i.d(e,"h",(function(){return d})),i.d(e,"i",(function(){return g})),i.d(e,"j",(function(){return f})),i.d(e,"k",(function(){return _})),i.d(e,"l",(function(){return m})),i.d(e,"m",(function(){return p})),i.d(e,"n",(function(){return y})),i.d(e,"o",(function(){return v})),i.d(e,"p",(function(){return b})),i.d(e,"q",(function(){return x})),i.d(e,"r",(function(){return O})),i.d(e,"s",(function(){return C})),i.d(e,"t",(function(){return S})),i.d(e,"u",(function(){return R})),i.d(e,"v",(function(){return I})),i.d(e,"w",(function(){return w})),i.d(e,"x",(function(){return j})),i.d(e,"y",(function(){return T})),i.d(e,"B",(function(){return M})),i.d(e,"z",(function(){return L})),i.d(e,"A",(function(){return A})),i.d(e,"C",(function(){return P})),i.d(e,"D",(function(){return D})),i.d(e,"E",(function(){return F})),i.d(e,"F",(function(){return k})),i.d(e,"H",(function(){return N})),i.d(e,"I",(function(){return G})),i.d(e,"G",(function(){return W})),i.d(e,"a",(function(){return B})),i.d(e,"K",(function(){return X})),i.d(e,"J",(function(){return Y}));var n=i("94d7"),s=i("54a8");function r(t){const e=f();for(let i=0,n=t.length;i<n;++i)x(e,t[i]);return e}function o(t,e,i){const n=Math.min.apply(null,t),s=Math.min.apply(null,e),r=Math.max.apply(null,t),o=Math.max.apply(null,e);return _(n,s,r,o,i)}function a(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 h(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){let n,s;return n=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,s=i<t[1]?t[1]-i:t[3]<i?i-t[3]:0,n*n+s*s}function c(t,e){return d(t,e[0],e[1])}function u(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function d(t,e,i){return t[0]<=e&&e<=t[2]&&t[1]<=i&&i<=t[3]}function g(t,e){const i=t[0],s=t[1],r=t[2],o=t[3],a=e[0],h=e[1];let l=n["a"].UNKNOWN;return a<i?l|=n["a"].LEFT:a>r&&(l|=n["a"].RIGHT),h<s?l|=n["a"].BELOW:h>o&&(l|=n["a"].ABOVE),l===n["a"].UNKNOWN&&(l=n["a"].INTERSECTING),l}function f(){return[1/0,1/0,-1/0,-1/0]}function _(t,e,i,n,s){return s?(s[0]=t,s[1]=e,s[2]=i,s[3]=n,s):[t,e,i,n]}function m(t){return _(1/0,1/0,-1/0,-1/0,t)}function p(t,e){const i=t[0],n=t[1];return _(i,n,i,n,e)}function y(t,e,i,n,s){const r=m(s);return O(r,t,e,i,n)}function v(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 O(t,e,i,n,s){for(;i<n;i+=s)E(t,e[i],e[i+1]);return t}function E(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 C(t,e){let i;return i=e(R(t)),i||(i=e(I(t)),i||(i=e(D(t)),i||(i=e(P(t)),i||!1)))}function S(t){let e=0;return N(t)||(e=F(t)*L(t)),e}function R(t){return[t[0],t[1]]}function I(t){return[t[2],t[1]]}function w(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function j(t,e){let i;return"bottom-left"===e?i=R(t):"bottom-right"===e?i=I(t):"top-left"===e?i=P(t):"top-right"===e?i=D(t):Object(s["a"])(!1,13),i}function T(t,e,i,n,s){const[r,o,a,h,l,c,u,d]=M(t,e,i,n);return _(Math.min(r,a,l,u),Math.min(o,h,c,d),Math.max(r,a,l,u),Math.max(o,h,c,d),s)}function M(t,e,i,n){const s=e*n[0]/2,r=e*n[1]/2,o=Math.cos(i),a=Math.sin(i),h=s*o,l=s*a,c=r*o,u=r*a,d=t[0],g=t[1];return[d-h+u,g-l-c,d-h-u,g-l+c,d+h-u,g+l+c,d+h+u,g+l-c,d-h+u,g-l-c]}function L(t){return t[3]-t[1]}function A(t,e,i){const n=i||f();return k(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]):m(n),n}function P(t){return[t[0],t[3]]}function D(t){return[t[2],t[3]]}function F(t){return t[2]-t[0]}function k(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function N(t){return t[2]<t[0]||t[3]<t[1]}function G(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,i){let s=!1;const r=g(t,e),o=g(t,i);if(r===n["a"].INTERSECTING||o===n["a"].INTERSECTING)s=!0;else{const a=t[0],h=t[1],l=t[2],c=t[3],u=e[0],d=e[1],g=i[0],f=i[1],_=(f-d)/(g-u);let m,p;o&n["a"].ABOVE&&!(r&n["a"].ABOVE)&&(m=g-(f-c)/_,s=m>=a&&m<=l),s||!(o&n["a"].RIGHT)||r&n["a"].RIGHT||(p=f-(g-l)*_,s=p>=h&&p<=c),s||!(o&n["a"].BELOW)||r&n["a"].BELOW||(m=g-(f-h)/_,s=m>=a&&m<=l),s||!(o&n["a"].LEFT)||r&n["a"].LEFT||(p=f-(g-a)*_,s=p>=h&&p<=c)}return s}function B(t,e,i,n){let s=[];if(n>1){const e=t[2]-t[0],i=t[3]-t[1];for(let r=0;r<n;++r)s.push(t[0]+e*r/n,t[1],t[2],t[1]+i*r/n,t[2]-e*r/n,t[3],t[0],t[3]-i*r/n)}else s=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(s,s,2);const r=[],a=[];for(let o=0,h=s.length;o<h;o+=2)r.push(s[o]),a.push(s[o+1]);return o(r,a,i)}function X(t,e){const i=e.getExtent(),n=w(t);if(e.canWrapX()&&(n[0]<i[0]||n[0]>=i[2])){const e=F(i),s=Math.floor((n[0]-i[0])/e),r=s*e;t[0]-=r,t[2]-=r}return t}function Y(t,e){if(e.canWrapX()){const i=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[i[0],t[1],i[2],t[3]]];X(t,e);const n=F(i);if(F(t)>n)return[[i[0],t[1],i[2],t[3]]];if(t[0]<i[0])return[[t[0]+n,t[1],i[2],t[3]],[i[0],t[1],t[2],t[3]]];if(t[2]>i[2])return[[t[0],t[1],i[2],t[3]],[i[0],t[1],t[2]-n,t[3]]]}return[t]}},"94d7":function(t,e,i){"use strict";e["a"]={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},"97ee":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("5552");function s(t,e){return Object(n["a"])({url:t,method:"post",data:e})}},"9e10":function(t,e,i){"use strict";var n=i("754a"),s=i("8a11"),r=i("bf5a"),o=i("73af");class a extends n["a"]{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;const i=this.listeners_||(this.listeners_={}),n=i[t]||(i[t]=[]);n.includes(e)||n.push(e)}dispatchEvent(t){const e="string"===typeof t,i=e?t:t.type,n=this.listeners_&&this.listeners_[i];if(!n)return;const o=e?new s["a"](t):t;o.target||(o.target=this.eventTarget_||this);const a=this.dispatching_||(this.dispatching_={}),h=this.pendingRemovals_||(this.pendingRemovals_={});let l;i in a||(a[i]=0,h[i]=0),++a[i];for(let s=0,r=n.length;s<r;++s)if(l="handleEvent"in n[s]?n[s].handleEvent(o):n[s].call(this,o),!1===l||o.propagationStopped){l=!1;break}if(0===--a[i]){let t=h[i];delete h[i];while(t--)this.removeEventListener(i,r["c"]);delete a[i]}return l}disposeInternal(){this.listeners_&&Object(o["a"])(this.listeners_)}getListeners(t){return this.listeners_&&this.listeners_[t]||void 0}hasListener(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)}removeEventListener(t,e){const i=this.listeners_&&this.listeners_[t];if(i){const n=i.indexOf(e);-1!==n&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[n]=r["c"],++this.pendingRemovals_[t]):(i.splice(n,1),0===i.length&&delete this.listeners_[t]))}}}e["a"]=a},a001:function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"d",(function(){return a}));var n=i("93f7");function s(t,e,i,s,o){const a=Object(n["s"])(o,(function(n){return!r(t,e,i,s,n[0],n[1])}));return!a}function r(t,e,i,n,s,r){let o=0,a=t[i-n],h=t[i-n+1];for(;e<i;e+=n){const i=t[e],n=t[e+1];h<=r?n>r&&(i-a)*(r-h)-(s-a)*(n-h)>0&&o++:n<=r&&(i-a)*(r-h)-(s-a)*(n-h)<0&&o--,a=i,h=n}return 0!==o}function o(t,e,i,n,s,o){if(0===i.length)return!1;if(!r(t,e,i[0],n,s,o))return!1;for(let a=1,h=i.length;a<h;++a)if(r(t,i[a-1],i[a],n,s,o))return!1;return!0}function a(t,e,i,n,s,r){if(0===i.length)return!1;for(let a=0,h=i.length;a<h;++a){const h=i[a];if(o(t,e,h,n,s,r))return!0;e=h[h.length-1]}return!1}},a9a2:function(t,e,i){"use strict";function n(t,e,i,n){for(let s=0,r=i.length;s<r;++s)t[e++]=i[s];return e}function s(t,e,i,n){for(let s=0,r=i.length;s<r;++s){const r=i[s];for(let i=0;i<n;++i)t[e++]=r[i]}return e}function r(t,e,i,n,r){r=r||[];let o=0;for(let a=0,h=i.length;a<h;++a){const h=s(t,e,i[a],n);r[o++]=h,e=h}return r.length=o,r}function o(t,e,i,n,s){s=s||[];let o=0;for(let a=0,h=i.length;a<h;++a){const h=r(t,e,i[a],n,s[o]);0===h.length&&(h[0]=e),s[o++]=h,e=h[h.length-1]}return s.length=o,s}i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return r})),i.d(e,"d",(function(){return o}))},aaaf:function(t,e,i){"use strict";i.d(e,"b",(function(){return c}));var n=i("333c"),s=i("8f60"),r=i("b27a"),o=i("0bc5"),a=i("54a8"),h=i("1005");class l extends n["a"]{constructor(t){const e=Object.assign({},t);delete e.source,super(e),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.rendered=!1,t.render&&(this.render=t.render),t.map&&this.setMap(t.map),this.addChangeListener(r["a"].SOURCE,this.handleSourcePropertyChange_);const i=t.source?t.source:null;this.setSource(i)}getLayersArray(t){return t=t||[],t.push(this),t}getLayerStatesArray(t){return t=t||[],t.push(this.getLayerState()),t}getSource(){return this.get(r["a"].SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){const t=this.getSource();return t?t.getState():"undefined"}handleSourceChange_(){this.changed()}handleSourcePropertyChange_(){this.sourceChangeKey_&&(Object(h["c"])(this.sourceChangeKey_),this.sourceChangeKey_=null);const t=this.getSource();t&&(this.sourceChangeKey_=Object(h["a"])(t,s["a"].CHANGE,this.handleSourceChange_,this)),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):new Promise(t=>t([]))}getData(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null}render(t,e){const i=this.getRenderer();if(i.prepareFrame(t))return this.rendered=!0,i.renderFrame(t,e)}unrender(){this.rendered=!1}setMapInternal(t){t||this.unrender(),this.set(r["a"].MAP,t)}getMapInternal(){return this.get(r["a"].MAP)}setMap(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,o["a"].PRECOMPOSE,(function(t){const e=t,i=e.frameState.layerStatesArray,n=this.getLayerState(!1);Object(a["a"])(!i.some((function(t){return t.layer===n.layer})),67),i.push(n)}),this),this.mapRenderKey_=Object(h["a"])(this,s["a"].CHANGE,t.render,t),this.changed())}setSource(t){this.set(r["a"].SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function c(t,e){if(!t.visible)return!1;const i=e.resolution;if(i<t.minResolution||i>=t.maxResolution)return!1;const n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}e["a"]=l},ac76: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 h})),i.d(e,"e",(function(){return l})),i.d(e,"b",(function(){return c})),i.d(e,"d",(function(){return u})),i.d(e,"g",(function(){return f}));var n=i("5e62"),s=i("54a8");new Array(6);function r(){return[1,0,0,1,0,0]}function o(t,e,i,n,s,r,o){return t[0]=e,t[1]=i,t[2]=n,t[3]=s,t[4]=r,t[5]=o,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 h(t,e){const 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 l(t,e,i){return o(t,e,0,0,i,0,0)}function c(t,e,i,n,s,r,o,a){const h=Math.sin(r),l=Math.cos(r);return t[0]=n*l,t[1]=s*h,t[2]=-n*h,t[3]=s*l,t[4]=o*n*l-a*n*h+e,t[5]=o*s*h+a*s*l+i,t}function u(t,e){const i=d(e);Object(s["a"])(0!==i,32);const n=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5];return t[0]=a/i,t[1]=-r/i,t[2]=-o/i,t[3]=n/i,t[4]=(o*l-a*h)/i,t[5]=-(n*l-r*h)/i,t}function d(t){return t[0]*t[3]-t[1]*t[2]}let g;function f(t){const e="matrix("+t.join(", ")+")";if(n["g"])return e;const i=g||(g=document.createElement("div"));return i.style.transform=e,i.style.transform}},b27a: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",MAP:"map"}},b485:function(t,e,i){"use strict";function n(t,e,i){let n,r;i=i||s;let o=0,a=t.length,h=!1;while(o<a)n=o+(a-o>>1),r=+i(t[n],e),r<0?o=n+1:(a=n,h=!r);return h?o:~o}function s(t,e){return t>e?1:t<e?-1:0}function r(t,e,i){const n=t.length;if(t[0]<=e)return 0;if(e<=t[n-1])return n-1;{let s;if(i>0){for(s=1;s<n;++s)if(t[s]<e)return s-1}else if(i<0){for(s=1;s<n;++s)if(t[s]<=e)return s}else for(s=1;s<n;++s){if(t[s]==e)return s;if(t[s]<e)return"function"===typeof i?i(e,t[s-1],t[s])>0?s-1:s:t[s-1]-e<e-t[s]?s-1:s}return n-1}}function o(t,e,i){while(e<i){const n=t[e];t[e]=t[i],t[i]=n,++e,--i}}function a(t,e){const i=Array.isArray(e)?e:[e],n=i.length;for(let s=0;s<n;s++)t[t.length]=i[s]}function h(t,e){const i=t.length;if(i!==e.length)return!1;for(let n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}function l(t,e,i){const n=e||s;return t.every((function(e,s){if(0===s)return!0;const r=n(t[s-1],e);return!(r>0||i&&0===r)}))}i.d(e,"a",(function(){return n})),i.d(e,"f",(function(){return s})),i.d(e,"e",(function(){return r})),i.d(e,"g",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"b",(function(){return h})),i.d(e,"d",(function(){return l}))},b623:function(t,e,i){"use strict";e["a"]={ADD:"add",REMOVE:"remove"}},b91b:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r})),i.d(e,"d",(function(){return T})),i.d(e,"j",(function(){return D})),i.d(e,"k",(function(){return F})),i.d(e,"c",(function(){return G})),i.d(e,"f",(function(){return W})),i.d(e,"e",(function(){return B})),i.d(e,"m",(function(){return X})),i.d(e,"l",(function(){return Y})),i.d(e,"r",(function(){return z})),i.d(e,"s",(function(){return V})),i.d(e,"n",(function(){return U})),i.d(e,"o",(function(){return H})),i.d(e,"g",(function(){return Z})),i.d(e,"p",(function(){return q})),i.d(e,"h",(function(){return J})),i.d(e,"q",(function(){return Q})),i.d(e,"i",(function(){return $}));const n={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class s{constructor(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}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||n[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}}var r=s;const o=6378137,a=Math.PI*o,h=[-a,-a,a,a],l=[-180,-85,180,85],c=o*Math.log(Math.tan(Math.PI/2));class u extends r{constructor(t){super({code:t,units:"m",extent:h,global:!0,worldExtent:l,getPointResolution:function(t,e){return t/Math.cosh(e[1]/o)}})}}const d=[new u("EPSG:3857"),new u("EPSG:102100"),new u("EPSG:102113"),new u("EPSG:900913"),new u("http://www.opengis.net/def/crs/EPSG/0/3857"),new u("http://www.opengis.net/gml/srs/epsg.xml#3857")];function g(t,e,i){const n=t.length;i=i>1?i:2,void 0===e&&(e=i>2?t.slice():new Array(n));for(let s=0;s<n;s+=i){e[s]=a*t[s]/180;let i=o*Math.log(Math.tan(Math.PI*(+t[s+1]+90)/360));i>c?i=c:i<-c&&(i=-c),e[s+1]=i}return e}function f(t,e,i){const n=t.length;i=i>1?i:2,void 0===e&&(e=i>2?t.slice():new Array(n));for(let s=0;s<n;s+=i)e[s]=180*t[s]/a,e[s+1]=360*Math.atan(Math.exp(t[s+1]/o))/Math.PI-90;return e}const _=6378137,m=[-180,-90,180,90],p=Math.PI*_/180;class y extends r{constructor(t,e){super({code:t,units:"degrees",extent:m,axisOrientation:e,global:!0,metersPerUnit:p,worldExtent:m})}}const v=[new y("CRS:84"),new y("EPSG:4326","neu"),new y("urn:ogc:def:crs:OGC:1.3:CRS84"),new y("urn:ogc:def:crs:OGC:2:84"),new y("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new y("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new y("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let b={};function x(t){return b[t]||b[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function O(t,e){b[t]=e}i("73af");let E={};function C(t,e,i){const n=t.getCode(),s=e.getCode();n in E||(E[n]={}),E[n][s]=i}function S(t,e){let i;return t in E&&e in E[t]&&(i=E[t][e]),i}var R=i("93f7"),I=(i("d580"),i("577e")),w=i("4a0d");let j=!0;function T(t){const e=void 0===t||t;j=!e}function M(t,e,i){if(void 0!==e){for(let i=0,n=t.length;i<n;++i)e[i]=t[i];e=e}else e=t.slice();return e}function L(t,e,i){if(void 0!==e&&t!==e){for(let i=0,n=t.length;i<n;++i)e[i]=t[i];t=e}return t}function A(t){O(t.getCode(),t),C(t,t,M)}function P(t){t.forEach(A)}function D(t){return"string"===typeof t?x(t):t||null}function F(t,e,i,s){let r;t=D(t);const o=t.getPointResolutionFunc();if(o){if(r=o(e,i),s&&s!==t.getUnits()){const e=t.getMetersPerUnit();e&&(r=r*e/n[s])}}else{const o=t.getUnits();if("degrees"==o&&!s||"degrees"==s)r=e;else{const a=X(t,D("EPSG:4326"));if(a===L&&"degrees"!==o)r=e*t.getMetersPerUnit();else{let t=[i[0]-e/2,i[1],i[0]+e/2,i[1],i[0],i[1]-e/2,i[0],i[1]+e/2];t=a(t,t,2);const n=Object(w["a"])(t.slice(0,2),t.slice(2,4)),s=Object(w["a"])(t.slice(4,6),t.slice(6,8));r=(n+s)/2}const h=s?n[s]:t.getMetersPerUnit();void 0!==h&&(r/=h)}}return r}function k(t){P(t),t.forEach((function(e){t.forEach((function(t){e!==t&&C(e,t,M)}))}))}function N(t,e,i,n){t.forEach((function(t){e.forEach((function(e){C(t,e,i),C(e,t,n)}))}))}function G(t,e){return t?"string"===typeof t?D(t):t:D(e)}function W(t,e){return T(),z(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function B(t,e){if(t===e)return!0;const i=t.getUnits()===e.getUnits();if(t.getCode()===e.getCode())return i;{const n=X(t,e);return n===M&&i}}function X(t,e){const i=t.getCode(),n=e.getCode();let s=S(i,n);return s||(s=L),s}function Y(t,e){const i=D(t),n=D(e);return X(i,n)}function z(t,e,i){const n=Y(e,i);return n(t,void 0,t.length)}function V(t,e,i,n){const s=Y(e,i);return Object(R["a"])(t,s,void 0,n)}let K=null;function U(){return K}function H(t,e){return K?z(t,e,K):t}function Z(t,e){return K?z(t,K,e):(j&&!Object(I["b"])(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(j=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t)}function q(t,e){return K?V(t,e,K):t}function J(t,e){return K?V(t,K,e):t}function Q(t,e){if(!K)return t;const i=D(e).getUnits(),s=K.getUnits();return i&&s?t*n[i]/n[s]:t}function $(t,e){if(!K)return t;const i=D(e).getUnits(),s=K.getUnits();return i&&s?t*n[s]/n[i]:t}function tt(){k(d),k(v),N(v,d,g,f)}tt()},ba47:function(t,e,i){"use strict";i.d(e,"b",(function(){return c}));var n=i("cd23"),s=i("2fc48"),r=i("93f7"),o=i("69c7");class a extends n["a"]{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates=null}computeExtent(t){return Object(r["n"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return Object(s["a"])()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=this.getSimplifiedGeometryInternal(t),i=e.getFlatCoordinates();return i.length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)}getSimplifiedGeometryInternal(t){return this}getStride(){return this.stride}setFlatCoordinates(t,e){this.stride=l(t),this.layout=t,this.flatCoordinates=e}setCoordinates(t,e){Object(s["a"])()}setLayout(t,e,i){let n;if(t)n=l(t);else{for(let t=0;t<i;++t){if(0===e.length)return this.layout="XY",void(this.stride=2);e=e[0]}n=e.length,t=h(n)}this.layout=t,this.stride=n}applyTransform(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())}rotate(t,e){const i=this.getFlatCoordinates();if(i){const n=this.getStride();Object(o["a"])(i,0,i.length,n,t,e,i),this.changed()}}scale(t,e,i){void 0===e&&(e=t),i||(i=Object(r["w"])(this.getExtent()));const n=this.getFlatCoordinates();if(n){const s=this.getStride();Object(o["b"])(n,0,n.length,s,t,e,i,n),this.changed()}}translate(t,e){const i=this.getFlatCoordinates();if(i){const n=this.getStride();Object(o["d"])(i,0,i.length,n,t,e,i),this.changed()}}}function h(t){let e;return 2==t?e="XY":3==t?e="XYZ":4==t&&(e="XYZM"),e}function l(t){let e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function c(t,e,i){const n=t.getFlatCoordinates();if(n){const s=t.getStride();return Object(o["c"])(n,0,n.length,s,e,i)}return null}e["a"]=a},bf5a:function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"a",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"d",(function(){return a}));var n=i("b485");function s(){return!0}function r(){return!1}function o(){}function a(t){let e,i,s,r=!1;return function(){const o=Array.prototype.slice.call(arguments);return r&&this===s&&Object(n["b"])(o,i)||(r=!0,s=this,i=o,e=t.apply(this,arguments)),e}}},c33f:function(t,e,i){"use strict";class n{constructor(t){t=t||{},this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width}clone(){const t=this.getColor();return new n({color:Array.isArray(t)?t.slice():t||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()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getWidth(){return this.width_}setColor(t){this.color_=t}setLineCap(t){this.lineCap_=t}setLineDash(t){this.lineDash_=t}setLineDashOffset(t){this.lineDashOffset_=t}setLineJoin(t){this.lineJoin_=t}setMiterLimit(t){this.miterLimit_=t}setWidth(t){this.width_=t}}e["a"]=n},c812:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("9353");function s(t){return Array.isArray(t)?Object(n["c"])(t):t}},cd23:function(t,e,i){"use strict";var n=i("3b99"),s=i("2fc48"),r=i("ac76"),o=i("93f7"),a=i("b91b"),h=i("bf5a"),l=i("69c7");const c=Object(r["c"])();class u extends n["a"]{constructor(){super(),this.extent_=Object(o["j"])(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=Object(h["d"])((function(t,e,i){if(!i)return this.getSimplifiedGeometry(e);const n=this.clone();return n.applyTransform(i),n.getSimplifiedGeometry(e)}))}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return Object(s["a"])()}closestPointXY(t,e,i,n){return Object(s["a"])()}containsXY(t,e){const i=this.getClosestPoint([t,e]);return i[0]===t&&i[1]===e}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return Object(s["a"])()}getExtent(t){if(this.extentRevision_!=this.getRevision()){const t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&Object(o["l"])(t),this.extentRevision_=this.getRevision()}return Object(o["I"])(this.extent_,t)}rotate(t,e){Object(s["a"])()}scale(t,e,i){Object(s["a"])()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return Object(s["a"])()}getType(){return Object(s["a"])()}applyTransform(t){Object(s["a"])()}intersectsExtent(t){return Object(s["a"])()}translate(t,e){Object(s["a"])()}transform(t,e){const i=Object(a["j"])(t),n="tile-pixels"==i.getUnits()?function(t,n,s){const h=i.getExtent(),u=i.getWorldExtent(),d=Object(o["z"])(u)/Object(o["z"])(h);return Object(r["b"])(c,u[0],u[3],d,-d,0,0,0),Object(l["c"])(t,0,t.length,s,c,n),Object(a["l"])(i,e)(t,n,s)}:Object(a["l"])(i,e);return this.applyTransform(n),this}}e["a"]=u},d3f4:function(t,e,i){!function(e,i){t.exports=i()}(0,(function(){"use strict";function t(t,n,s,r,o){!function t(i,n,s,r,o){for(;r>s;){if(r-s>600){var a=r-s+1,h=n-s+1,l=Math.log(a),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(a-c)/a)*(h-a/2<0?-1:1),d=Math.max(s,Math.floor(n-h*c/a+u)),g=Math.min(r,Math.floor(n+(a-h)*c/a+u));t(i,n,d,g,o)}var f=i[n],_=s,m=r;for(e(i,s,n),o(i[r],f)>0&&e(i,s,r);_<m;){for(e(i,_,m),_++,m--;o(i[_],f)<0;)_++;for(;o(i[m],f)>0;)m--}0===o(i[s],f)?e(i,s,m):e(i,++m,r),m<=n&&(s=m+1),n<=m&&(r=m-1)}}(t,n,s||0,r||t.length-1,o||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 s(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 r(t,e){o(t,0,t.children.length,e,t)}function o(t,e,i,n,s){s||(s=f(null)),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(var r=e;r<i;r++){var o=t.children[r];a(s,t.leaf?n(o):o)}return s}function a(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 h(t,e){return t.minX-e.minX}function l(t,e){return t.minY-e.minY}function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function u(t){return t.maxX-t.minX+(t.maxY-t.minY)}function d(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function g(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function f(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function _(e,i,n,s,r){for(var o=[i,n];o.length;)if(!((n=o.pop())-(i=o.pop())<=s)){var a=i+Math.ceil((n-i)/s/2)*s;t(e,a,i,n,r),o.push(i,a,a,n)}}return n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(t){var e=this.data,i=[];if(!g(t,e))return i;for(var n=this.toBBox,s=[];e;){for(var r=0;r<e.children.length;r++){var o=e.children[r],a=e.leaf?n(o):o;g(t,a)&&(e.leaf?i.push(o):d(t,a)?this._all(o,i):s.push(o))}e=s.pop()}return i},n.prototype.collides=function(t){var e=this.data;if(!g(t,e))return!1;for(var i=[];e;){for(var n=0;n<e.children.length;n++){var s=e.children[n],r=e.leaf?this.toBBox(s):s;if(g(t,r)){if(e.leaf||d(t,r))return!0;i.push(s)}}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=f([]),this},n.prototype.remove=function(t,e){if(!t)return this;for(var i,n,r,o=this.data,a=this.toBBox(t),h=[],l=[];o||h.length;){if(o||(o=h.pop(),n=h[h.length-1],i=l.pop(),r=!0),o.leaf){var c=s(t,o.children,e);if(-1!==c)return o.children.splice(c,1),h.push(o),this._condense(h),this}r||o.leaf||!d(o,a)?n?(i++,o=n.children[i],r=!1):o=null:(h.push(o),l.push(i),i=0,n=o,o=o.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},n.prototype._build=function(t,e,i,n){var s,o=i-e+1,a=this._maxEntries;if(o<=a)return r(s=f(t.slice(e,i+1)),this.toBBox),s;n||(n=Math.ceil(Math.log(o)/Math.log(a)),a=Math.ceil(o/Math.pow(a,n-1))),(s=f([])).leaf=!1,s.height=n;var h=Math.ceil(o/a),l=h*Math.ceil(Math.sqrt(a));_(t,e,i,l,this.compareMinX);for(var c=e;c<=i;c+=l){var u=Math.min(c+l-1,i);_(t,c,u,h,this.compareMinY);for(var d=c;d<=u;d+=h){var g=Math.min(d+h-1,u);s.children.push(this._build(t,d,g,n-1))}}return r(s,this.toBBox),s},n.prototype._chooseSubtree=function(t,e,i,n){for(;n.push(e),!e.leaf&&n.length-1!==i;){for(var s=1/0,r=1/0,o=void 0,a=0;a<e.children.length;a++){var h=e.children[a],l=c(h),u=(d=t,g=h,(Math.max(g.maxX,d.maxX)-Math.min(g.minX,d.minX))*(Math.max(g.maxY,d.maxY)-Math.min(g.minY,d.minY))-l);u<r?(r=u,s=l<s?l:s,o=h):u===r&&l<s&&(s=l,o=h)}e=o||e.children[0]}var d,g;return e},n.prototype._insert=function(t,e,i){var n=i?t:this.toBBox(t),s=[],r=this._chooseSubtree(n,this.data,e,s);for(r.children.push(t),a(r,n);e>=0&&s[e].children.length>this._maxEntries;)this._split(s,e),e--;this._adjustParentBBoxes(n,s,e)},n.prototype._split=function(t,e){var i=t[e],n=i.children.length,s=this._minEntries;this._chooseSplitAxis(i,s,n);var o=this._chooseSplitIndex(i,s,n),a=f(i.children.splice(o,i.children.length-o));a.height=i.height,a.leaf=i.leaf,r(i,this.toBBox),r(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},n.prototype._splitRoot=function(t,e){this.data=f([t,e]),this.data.height=t.height+1,this.data.leaf=!1,r(this.data,this.toBBox)},n.prototype._chooseSplitIndex=function(t,e,i){for(var n,s,r,a,h,l,u,d=1/0,g=1/0,f=e;f<=i-e;f++){var _=o(t,0,f,this.toBBox),m=o(t,f,i,this.toBBox),p=(s=_,r=m,a=void 0,h=void 0,l=void 0,u=void 0,a=Math.max(s.minX,r.minX),h=Math.max(s.minY,r.minY),l=Math.min(s.maxX,r.maxX),u=Math.min(s.maxY,r.maxY),Math.max(0,l-a)*Math.max(0,u-h)),y=c(_)+c(m);p<d?(d=p,n=f,g=y<g?y:g):p===d&&y<g&&(g=y,n=f)}return n||i-e},n.prototype._chooseSplitAxis=function(t,e,i){var n=t.leaf?this.compareMinX:h,s=t.leaf?this.compareMinY:l;this._allDistMargin(t,e,i,n)<this._allDistMargin(t,e,i,s)&&t.children.sort(n)},n.prototype._allDistMargin=function(t,e,i,n){t.children.sort(n);for(var s=this.toBBox,r=o(t,0,e,s),h=o(t,i-e,i,s),l=u(r)+u(h),c=e;c<i-e;c++){var d=t.children[c];a(r,t.leaf?s(d):d),l+=u(r)}for(var g=i-e-1;g>=e;g--){var f=t.children[g];a(h,t.leaf?s(f):f),l+=u(h)}return l},n.prototype._adjustParentBBoxes=function(t,e,i){for(var n=i;n>=0;n--)a(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():r(t[e],this.toBBox)},n}))},d469:function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return r})),i.d(e,"e",(function(){return o})),i.d(e,"c",(function(){return h})),i.d(e,"d",(function(){return l}));var n=i("d580");function s(t,e,i,s,r,o,a){const h=(i-e)/s;if(h<3){for(;e<i;e+=s)o[a++]=t[e],o[a++]=t[e+1];return a}const l=new Array(h);l[0]=1,l[h-1]=1;const c=[e,i-s];let u=0;while(c.length>0){const i=c.pop(),o=c.pop();let a=0;const h=t[o],d=t[o+1],g=t[i],f=t[i+1];for(let e=o+s;e<i;e+=s){const i=t[e],s=t[e+1],r=Object(n["h"])(i,s,h,d,g,f);r>a&&(u=e,a=r)}a>r&&(l[(u-e)/s]=1,o+s<u&&c.push(o,u),u+s<i&&c.push(u,i))}for(let n=0;n<h;++n)l[n]&&(o[a++]=t[e+n*s],o[a++]=t[e+n*s+1]);return a}function r(t,e,i,n,r,o,a,h){for(let l=0,c=i.length;l<c;++l){const c=i[l];a=s(t,e,c,n,r,o,a),h.push(a),e=c}return a}function o(t,e){return e*Math.round(t/e)}function a(t,e,i,n,s,r,a){if(e==i)return a;let h,l,c=o(t[e],s),u=o(t[e+1],s);e+=n,r[a++]=c,r[a++]=u;do{if(h=o(t[e],s),l=o(t[e+1],s),e+=n,e==i)return r[a++]=h,r[a++]=l,a}while(h==c&&l==u);while(e<i){const i=o(t[e],s),d=o(t[e+1],s);if(e+=n,i==h&&d==l)continue;const g=h-c,f=l-u,_=i-c,m=d-u;g*m==f*_&&(g<0&&_<g||g==_||g>0&&_>g)&&(f<0&&m<f||f==m||f>0&&m>f)?(h=i,l=d):(r[a++]=h,r[a++]=l,c=h,u=l,h=i,l=d)}return r[a++]=h,r[a++]=l,a}function h(t,e,i,n,s,r,o,h){for(let l=0,c=i.length;l<c;++l){const c=i[l];o=a(t,e,c,n,s,r,o),h.push(o),e=c}return o}function l(t,e,i,n,s,r,o,a){for(let l=0,c=i.length;l<c;++l){const c=i[l],u=[];o=h(t,e,c,n,s,r,o,u),a.push(u),e=c[c.length-1]}return o}},d580:function(t,e,i){"use strict";function n(t,e,i){return Math.min(Math.max(t,e),i)}function s(t,e,i,n,s,o){const a=s-i,h=o-n;if(0!==a||0!==h){const r=((t-i)*a+(e-n)*h)/(a*a+h*h);r>1?(i=s,n=o):r>0&&(i+=a*r,n+=h*r)}return r(t,e,i,n)}function r(t,e,i,n){const s=i-t,r=n-e;return s*s+r*r}function o(t){const e=t.length;for(let n=0;n<e;n++){let i=n,s=Math.abs(t[n][n]);for(let o=n+1;o<e;o++){const e=Math.abs(t[o][n]);e>s&&(s=e,i=o)}if(0===s)return null;const r=t[i];t[i]=t[n],t[n]=r;for(let o=n+1;o<e;o++){const i=-t[o][n]/t[n][n];for(let s=n;s<e+1;s++)n==s?t[o][s]=0:t[o][s]+=i*t[n][s]}}const i=new Array(e);for(let n=e-1;n>=0;n--){i[n]=t[n][e]/t[n][n];for(let s=n-1;s>=0;s--)t[s][e]-=t[s][n]*i[n]}return i}function a(t){return 180*t/Math.PI}function h(t){return t*Math.PI/180}function l(t,e){const i=t%e;return i*e<0?i+e:i}function c(t,e,i){return t+i*(e-t)}function u(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}function d(t,e){return Math.floor(u(t,e))}function g(t,e){return Math.ceil(u(t,e))}i.d(e,"b",(function(){return n})),i.d(e,"h",(function(){return s})),i.d(e,"g",(function(){return r})),i.d(e,"f",(function(){return o})),i.d(e,"i",(function(){return a})),i.d(e,"k",(function(){return h})),i.d(e,"e",(function(){return l})),i.d(e,"d",(function(){return c})),i.d(e,"j",(function(){return u})),i.d(e,"c",(function(){return d})),i.d(e,"a",(function(){return g}))},d696:function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}i.d(e,"a",(function(){return n}))},d72a:function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return r})),i.d(e,"f",(function(){return o})),i.d(e,"d",(function(){return a})),i.d(e,"c",(function(){return h})),i.d(e,"e",(function(){return l}));var n=i("5e62");function s(t,e,i,s){let r;return r=i&&i.length?i.shift():n["g"]?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(r.width=t),e&&(r.height=e),r.getContext("2d",s)}function r(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function o(t,e){const i=e.parentNode;i&&i.replaceChild(t,e)}function a(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function h(t){while(t.lastChild)t.removeChild(t.lastChild)}function l(t,e){const i=t.childNodes;for(let n=0;1;++n){const s=i[n],r=e[n];if(!s&&!r)break;s!==r&&(s?r?t.insertBefore(r,s):(t.removeChild(s),--n):t.appendChild(r))}}},d83a: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 h})),i.d(e,"d",(function(){return l})),i.d(e,"e",(function(){return c}));var n=i("93f7"),s=i("ec55"),r=i("a001");function o(t,e,i,r,o){const a=Object(n["r"])(Object(n["j"])(),t,e,i,r);return!!Object(n["F"])(o,a)&&(!!Object(n["g"])(o,a)||(a[0]>=o[0]&&a[2]<=o[2]||(a[1]>=o[1]&&a[3]<=o[3]||Object(s["a"])(t,e,i,r,(function(t,e){return Object(n["G"])(o,t,e)})))))}function a(t,e,i,n,s){for(let r=0,a=i.length;r<a;++r){if(o(t,e,i[r],n,s))return!0;e=i[r]}return!1}function h(t,e,i,n,s){return!!o(t,e,i,n,s)||(!!Object(r["b"])(t,e,i,n,s[0],s[1])||(!!Object(r["b"])(t,e,i,n,s[0],s[3])||(!!Object(r["b"])(t,e,i,n,s[2],s[1])||!!Object(r["b"])(t,e,i,n,s[2],s[3]))))}function l(t,e,i,n,s){if(!h(t,e,i[0],n,s))return!1;if(1===i.length)return!0;for(let a=1,h=i.length;a<h;++a)if(Object(r["a"])(t,i[a-1],i[a],n,s)&&!o(t,i[a-1],i[a],n,s))return!1;return!0}function c(t,e,i,n,s){for(let r=0,o=i.length;r<o;++r){const o=i[r];if(l(t,e,o,n,s))return!0;e=o[o.length-1]}return!1}},d9ad:function(t,e,i){"use strict";var n=i("2fc48"),s=i("eee5");class r{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=Object(s["c"])(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new r({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return Object(n["a"])()}getImage(t){return Object(n["a"])()}getHitDetectionImage(){return Object(n["a"])()}getPixelRatio(t){return 1}getImageState(){return Object(n["a"])()}getImageSize(){return Object(n["a"])()}getOrigin(){return Object(n["a"])()}getSize(){return Object(n["a"])()}setDisplacement(t){this.displacement_=t}setOpacity(t){this.opacity_=t}setRotateWithView(t){this.rotateWithView_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=Object(s["c"])(t)}listenImageChange(t){Object(n["a"])()}load(){Object(n["a"])()}unlistenImageChange(t){Object(n["a"])()}}e["a"]=r},da7b:function(t,e,i){"use strict";var n=i("3b99"),s=i("6b8e"),r={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},o=i("3426"),a=i("b91b"),h=i("bf5a"),l=i("577e"),c=i("54a8"),u=i("d580");function d(t,e,i){return function(n,s,r,o,a){if(!n)return;if(!s&&!e)return n;const h=e?0:r[0]*s,l=e?0:r[1]*s,c=a?a[0]:0,d=a?a[1]:0;let g=t[0]+h/2+c,f=t[2]-h/2+c,_=t[1]+l/2+d,m=t[3]-l/2+d;g>f&&(g=(f+g)/2,f=g),_>m&&(_=(m+_)/2,m=_);let p=Object(u["b"])(n[0],g,f),y=Object(u["b"])(n[1],_,m);if(o&&i&&s){const t=30*s;p+=-t*Math.log(1+Math.max(0,g-n[0])/t)+t*Math.log(1+Math.max(0,n[0]-f)/t),y+=-t*Math.log(1+Math.max(0,_-n[1])/t)+t*Math.log(1+Math.max(0,n[1]-m)/t)}return[p,y]}}function g(t){return t}var f=i("93f7"),_=i("b485");function m(t,e,i,n){const s=Object(f["E"])(e)/i[0],r=Object(f["z"])(e)/i[1];return n?Math.min(t,Math.max(s,r)):Math.min(t,Math.min(s,r))}function p(t,e,i){let n=Math.min(t,e);const s=50;return n*=Math.log(1+s*Math.max(0,t/e-1))/s+1,i&&(n=Math.max(n,i),n/=Math.log(1+s*Math.max(0,i/t-1))/s+1),Object(u["b"])(n,i/2,2*e)}function y(t,e,i,n){return e=void 0===e||e,function(s,r,o,a){if(void 0!==s){const h=t[0],l=t[t.length-1],c=i?m(h,i,o,n):h;if(a)return e?p(s,c,l):Object(u["b"])(s,l,c);const d=Math.min(c,s),g=Math.floor(Object(_["e"])(t,d,r));return t[g]>c&&g<t.length-1?t[g+1]:t[g]}}}function v(t,e,i,n,s,r){return n=void 0===n||n,i=void 0!==i?i:0,function(o,a,h,l){if(void 0!==o){const c=s?m(e,s,h,r):e;if(l)return n?p(o,c,i):Object(u["b"])(o,i,c);const d=1e-9,g=Math.ceil(Math.log(e/c)/Math.log(t)-d),f=-a*(.5-d)+.5,_=Math.min(c,o),y=Math.floor(Math.log(e/_)/Math.log(t)+f),v=Math.max(g,y),b=e/Math.pow(t,v);return Object(u["b"])(b,i,c)}}}function b(t,e,i,n,s){return i=void 0===i||i,function(r,o,a,h){if(void 0!==r){const o=n?m(t,n,a,s):t;return i&&h?p(r,o,e):Object(u["b"])(r,e,o)}}}var x=i("ea03"),O=i("7774"),E=i("ee55");const C=0;class S extends n["a"]{constructor(t){super(),this.on,this.once,this.un,t=Object.assign({},t),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=Object(a["c"])(t.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,t.projection&&Object(a["d"])(),t.center&&(t.center=Object(a["g"])(t.center,this.projection_)),t.extent&&(t.extent=Object(a["h"])(t.extent,this.projection_)),this.applyOptions_(t)}applyOptions_(t){const e=Object.assign({},t);for(const a in r)delete e[a];this.setProperties(e,!0);const i=w(t);this.maxResolution_=i.maxResolution,this.minResolution_=i.minResolution,this.zoomFactor_=i.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=i.minZoom;const n=I(t),s=i.constraint,o=j(t);this.constraints_={center:n,resolution:s,rotation:o},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)}get padding(){return this.padding_}set padding(t){let e=this.padding_;this.padding_=t;const i=this.getCenter();if(i){const n=t||[0,0,0,0];e=e||[0,0,0,0];const s=this.getResolution(),r=s/2*(n[3]-e[3]+e[1]-n[1]),o=s/2*(n[0]-e[0]+e[2]-n[2]);this.setCenterInternal([i[0]+r,i[1]-o])}}getUpdatedOptions_(t){const e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object.assign({},e,t)}animate(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);const e=new Array(arguments.length);for(let i=0;i<e.length;++i){let t=arguments[i];t.center&&(t=Object.assign({},t),t.center=Object(a["g"])(t.center,this.getProjection())),t.anchor&&(t=Object.assign({},t),t.anchor=Object(a["g"])(t.anchor,this.getProjection())),e[i]=t}this.animateInternal.apply(this,e)}animateInternal(t){let e,i=arguments.length;i>1&&"function"===typeof arguments[i-1]&&(e=arguments[i-1],--i);let n=0;for(;n<i&&!this.isDef();++n){const t=arguments[n];t.center&&this.setCenterInternal(t.center),void 0!==t.zoom?this.setZoom(t.zoom):t.resolution&&this.setResolution(t.resolution),void 0!==t.rotation&&this.setRotation(t.rotation)}if(n===i)return void(e&&R(e,!0));let r=Date.now(),o=this.targetCenter_.slice(),a=this.targetResolution_,h=this.targetRotation_;const l=[];for(;n<i;++n){const t=arguments[n],i={start:r,complete:!1,anchor:t.anchor,duration:void 0!==t.duration?t.duration:1e3,easing:t.easing||O["c"],callback:e};if(t.center&&(i.sourceCenter=o,i.targetCenter=t.center.slice(),o=i.targetCenter),void 0!==t.zoom?(i.sourceResolution=a,i.targetResolution=this.getResolutionForZoom(t.zoom),a=i.targetResolution):t.resolution&&(i.sourceResolution=a,i.targetResolution=t.resolution,a=i.targetResolution),void 0!==t.rotation){i.sourceRotation=h;const e=Object(u["e"])(t.rotation-h+Math.PI,2*Math.PI)-Math.PI;i.targetRotation=h+e,h=i.targetRotation}T(i)?i.complete=!0:r+=i.duration,l.push(i)}this.animations_.push(l),this.setHint(s["a"].ANIMATING,1),this.updateAnimations_()}getAnimating(){return this.hints_[s["a"].ANIMATING]>0}getInteracting(){return this.hints_[s["a"].INTERACTING]>0}cancelAnimations(){let t;this.setHint(s["a"].ANIMATING,-this.hints_[s["a"].ANIMATING]);for(let e=0,i=this.animations_.length;e<i;++e){const i=this.animations_[e];if(i[0].callback&&R(i[0].callback,!1),!t)for(let e=0,n=i.length;e<n;++e){const n=i[e];if(!n.complete){t=n.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN}updateAnimations_(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),!this.getAnimating())return;const t=Date.now();let e=!1;for(let i=this.animations_.length-1;i>=0;--i){const n=this.animations_[i];let r=!0;for(let i=0,s=n.length;i<s;++i){const s=n[i];if(s.complete)continue;const o=t-s.start;let a=s.duration>0?o/s.duration:1;a>=1?(s.complete=!0,a=1):r=!1;const h=s.easing(a);if(s.sourceCenter){const t=s.sourceCenter[0],e=s.sourceCenter[1],i=s.targetCenter[0],n=s.targetCenter[1];this.nextCenter_=s.targetCenter;const r=t+h*(i-t),o=e+h*(n-e);this.targetCenter_=[r,o]}if(s.sourceResolution&&s.targetResolution){const t=1===h?s.targetResolution:s.sourceResolution+h*(s.targetResolution-s.sourceResolution);if(s.anchor){const e=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(t,0,e,!0);this.targetCenter_=this.calculateCenterZoom(i,s.anchor)}this.nextResolution_=s.targetResolution,this.targetResolution_=t,this.applyTargetState_(!0)}if(void 0!==s.sourceRotation&&void 0!==s.targetRotation){const t=1===h?Object(u["e"])(s.targetRotation+Math.PI,2*Math.PI)-Math.PI:s.sourceRotation+h*(s.targetRotation-s.sourceRotation);if(s.anchor){const e=this.constraints_.rotation(t,!0);this.targetCenter_=this.calculateCenterRotate(e,s.anchor)}this.nextRotation_=s.targetRotation,this.targetRotation_=t}if(this.applyTargetState_(!0),e=!0,!s.complete)break}if(r){this.animations_[i]=null,this.setHint(s["a"].ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const t=n[0].callback;t&&R(t,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let i;const n=this.getCenterInternal();return void 0!==n&&(i=[n[0]-e[0],n[1]-e[1]],Object(l["d"])(i,t-this.getRotation()),Object(l["a"])(i,e)),i}calculateCenterZoom(t,e){let i;const n=this.getCenterInternal(),s=this.getResolution();if(void 0!==n&&void 0!==s){const r=e[0]-t*(e[0]-n[0])/s,o=e[1]-t*(e[1]-n[1])/s;i=[r,o]}return i}getViewportSize_(t){const e=this.viewportSize_;if(t){const 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}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const t=this.getCenterInternal();return t?Object(a["o"])(t,this.getProjection()):t}getCenterInternal(){return this.get(r.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){const e=this.calculateExtentInternal(t);return Object(a["p"])(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();Object(c["a"])(e,1);const i=this.getResolution();Object(c["a"])(void 0!==i,2);const n=this.getRotation();return Object(c["a"])(void 0!==n,3),Object(f["y"])(e,i,n,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(r.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal(Object(a["h"])(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const i=Object(f["E"])(t)/e[0],n=Object(f["z"])(t)/e[1];return Math.max(i,n)}getResolutionForValueFunction(t){t=t||2;const e=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,n=Math.log(e/i)/Math.log(t);return function(i){const s=e/Math.pow(t,i*n);return s}}getRotation(){return this.get(r.ROTATION)}getValueForResolutionFunction(t){const e=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,s=Math.log(i/n)/e;return function(t){const n=Math.log(i/t)/e/s;return n}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t);const i=this.padding_;return i&&(e=[e[0]-i[1]-i[3],e[1]-i[0]-i[2]]),e}getState(){const t=this.getProjection(),e=this.getResolution(),i=this.getRotation();let n=this.getCenterInternal();const s=this.padding_;if(s){const t=this.getViewportSizeMinusPadding_();n=M(n,this.getViewportSize_(),[t[0]/2+s[3],t[1]/2+s[0]],e,i)}return{center:n.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}}getZoom(){let t;const e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e,i,n=this.minZoom_||0;if(this.resolutions_){const s=Object(_["e"])(this.resolutions_,t,1);n=s,e=this.resolutions_[s],i=s==this.resolutions_.length-1?2:e/this.resolutions_[s+1]}else e=this.maxResolution_,i=this.zoomFactor_;return n+Math.log(e/t)/Math.log(i)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const e=Object(u["b"])(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(i,Object(u["b"])(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let i;if(Object(c["a"])(Array.isArray(t)||"function"===typeof t.getSimplifiedGeometry,24),Array.isArray(t)){Object(c["a"])(!Object(f["H"])(t),25);const e=Object(a["h"])(t,this.getProjection());i=Object(E["b"])(e)}else if("Circle"===t.getType()){const e=Object(a["h"])(t.getExtent(),this.getProjection());i=Object(E["b"])(e),i.rotate(this.getRotation(),Object(f["w"])(e))}else{const e=Object(a["n"])();i=e?t.clone().transform(e,this.getProjection()):t}this.fitInternal(i,e)}rotatedExtentForGeometry(t){const e=this.getRotation(),i=Math.cos(e),n=Math.sin(-e),s=t.getFlatCoordinates(),r=t.getStride();let o=1/0,a=1/0,h=-1/0,l=-1/0;for(let c=0,u=s.length;c<u;c+=r){const t=s[c]*i-s[c+1]*n,e=s[c]*n+s[c+1]*i;o=Math.min(o,t),a=Math.min(a,e),h=Math.max(h,t),l=Math.max(l,e)}return[o,a,h,l]}fitInternal(t,e){e=e||{};let i=e.size;i||(i=this.getViewportSizeMinusPadding_());const n=void 0!==e.padding?e.padding:[0,0,0,0],s=void 0!==e.nearest&&e.nearest;let r;r=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.getResolutionForZoom(e.maxZoom):0;const o=this.rotatedExtentForGeometry(t);let a=this.getResolutionForExtentInternal(o,[i[0]-n[1]-n[3],i[1]-n[0]-n[2]]);a=isNaN(a)?r:Math.max(a,r),a=this.getConstrainedResolution(a,s?0:1);const l=this.getRotation(),c=Math.sin(l),u=Math.cos(l),d=Object(f["w"])(o);d[0]+=(n[1]-n[3])/2*a,d[1]+=(n[0]-n[2])/2*a;const g=d[0]*u-d[1]*c,_=d[1]*u+d[0]*c,m=this.getConstrainedCenter([g,_],a),p=e.callback?e.callback:h["c"];void 0!==e.duration?this.animateInternal({resolution:a,center:m,duration:e.duration,easing:e.easing},p):(this.targetResolution_=a,this.targetCenter_=m,this.applyTargetState_(!1,!0),R(p,!0))}centerOn(t,e,i){this.centerOnInternal(Object(a["g"])(t,this.getProjection()),e,i)}centerOnInternal(t,e,i){this.setCenterInternal(M(t,e,i,this.getResolution(),this.getRotation()))}calculateCenterShift(t,e,i,n){let s;const r=this.padding_;if(r&&t){const o=this.getViewportSizeMinusPadding_(-i),a=M(t,n,[o[0]/2+r[3],o[1]/2+r[0]],e,i);s=[t[0]-a[0],t[1]-a[1]]}return s}isDef(){return!!this.getCenterInternal()&&void 0!==this.getResolution()}adjustCenter(t){const e=Object(a["o"])(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])}adjustCenterInternal(t){const e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])}adjustResolution(t,e){e=e&&Object(a["g"])(e,this.getProjection()),this.adjustResolutionInternal(t,e)}adjustResolutionInternal(t,e){const i=this.getAnimating()||this.getInteracting(),n=this.getViewportSize_(this.getRotation()),s=this.constraints_.resolution(this.targetResolution_*t,0,n,i);e&&(this.targetCenter_=this.calculateCenterZoom(s,e)),this.targetResolution_*=t,this.applyTargetState_()}adjustZoom(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)}adjustRotation(t,e){e&&(e=Object(a["g"])(e,this.getProjection())),this.adjustRotationInternal(t,e)}adjustRotationInternal(t,e){const 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_()}setCenter(t){this.setCenterInternal(t?Object(a["g"])(t,this.getProjection()):t)}setCenterInternal(t){this.targetCenter_=t,this.applyTargetState_()}setHint(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]}setResolution(t){this.targetResolution_=t,this.applyTargetState_()}setRotation(t){this.targetRotation_=t,this.applyTargetState_()}setZoom(t){this.setResolution(this.getResolutionForZoom(t))}applyTargetState_(t,e){const i=this.getAnimating()||this.getInteracting()||e,n=this.constraints_.rotation(this.targetRotation_,i),s=this.getViewportSize_(n),o=this.constraints_.resolution(this.targetResolution_,0,s,i),a=this.constraints_.center(this.targetCenter_,o,s,i,this.calculateCenterShift(this.targetCenter_,o,n,s));this.get(r.ROTATION)!==n&&this.set(r.ROTATION,n),this.get(r.RESOLUTION)!==o&&(this.set(r.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),a&&this.get(r.CENTER)&&Object(l["b"])(this.get(r.CENTER),a)||this.set(r.CENTER,a),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(t,e,i){t=void 0!==t?t:200;const n=e||0,s=this.constraints_.rotation(this.targetRotation_),r=this.getViewportSize_(s),o=this.constraints_.resolution(this.targetResolution_,n,r),a=this.constraints_.center(this.targetCenter_,o,r,!1,this.calculateCenterShift(this.targetCenter_,o,s,r));if(0===t&&!this.cancelAnchor_)return this.targetResolution_=o,this.targetRotation_=s,this.targetCenter_=a,void this.applyTargetState_();i=i||(0===t?this.cancelAnchor_:void 0),this.cancelAnchor_=void 0,this.getResolution()===o&&this.getRotation()===s&&this.getCenterInternal()&&Object(l["b"])(this.getCenterInternal(),a)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:s,center:a,resolution:o,duration:t,easing:O["b"],anchor:i}))}beginInteraction(){this.resolveConstraints(0),this.setHint(s["a"].INTERACTING,1)}endInteraction(t,e,i){i=i&&Object(a["g"])(i,this.getProjection()),this.endInteractionInternal(t,e,i)}endInteractionInternal(t,e,i){this.setHint(s["a"].INTERACTING,-1),this.resolveConstraints(t,e,i)}getConstrainedCenter(t,e){const i=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),i)}getConstrainedZoom(t,e){const i=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(i,e))}getConstrainedResolution(t,e){e=e||0;const i=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,e,i)}}function R(t,e){setTimeout((function(){t(e)}),0)}function I(t){if(void 0!==t.extent){const e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return d(t.extent,t.constrainOnlyCenter,e)}const e=Object(a["c"])(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&e.isGlobal()){const t=e.getExtent().slice();return t[0]=-1/0,t[2]=1/0,d(t,!1,!1)}return g}function w(t){let e,i,n;const s=28,r=2;let h=void 0!==t.minZoom?t.minZoom:C,l=void 0!==t.maxZoom?t.maxZoom:s;const c=void 0!==t.zoomFactor?t.zoomFactor:r,u=void 0!==t.multiWorld&&t.multiWorld,d=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,g=void 0!==t.showFullExtent&&t.showFullExtent,_=Object(a["c"])(t.projection,"EPSG:3857"),m=_.getExtent();let p=t.constrainOnlyCenter,x=t.extent;if(u||x||!_.isGlobal()||(p=!1,x=m),void 0!==t.resolutions){const s=t.resolutions;i=s[h],n=void 0!==s[l]?s[l]:s[s.length-1],e=t.constrainResolution?y(s,d,!p&&x,g):b(i,n,d,!p&&x,g)}else{const u=m?Math.max(Object(f["E"])(m),Object(f["z"])(m)):360*a["a"].degrees/_.getMetersPerUnit(),y=u/o["b"]/Math.pow(r,C),O=y/Math.pow(r,s-C);i=t.maxResolution,void 0!==i?h=0:i=y/Math.pow(c,h),n=t.minResolution,void 0===n&&(n=void 0!==t.maxZoom?void 0!==t.maxResolution?i/Math.pow(c,l):y/Math.pow(c,l):O),l=h+Math.floor(Math.log(i/n)/Math.log(c)),n=i/Math.pow(c,l-h),e=t.constrainResolution?v(c,i,n,d,!p&&x,g):b(i,n,d,!p&&x,g)}return{constraint:e,maxResolution:i,minResolution:n,minZoom:h,zoomFactor:c}}function j(t){const e=void 0===t.enableRotation||t.enableRotation;if(e){const e=t.constrainRotation;return void 0===e||!0===e?Object(x["b"])():!1===e?x["d"]:"number"===typeof e?Object(x["a"])(e):x["d"]}return x["c"]}function T(t){return!(t.sourceCenter&&t.targetCenter&&!Object(l["b"])(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}function M(t,e,i,n,s){const r=Math.cos(-s);let o=Math.sin(-s),a=t[0]*r-t[1]*o,h=t[1]*r+t[0]*o;a+=(e[0]/2-i[0])*n,h+=(i[1]-e[1]/2)*n,o=-o;const l=a*r-h*o,c=h*r+a*o;return[l,c]}e["a"]=S},dd64:function(t,e,i){"use strict";e["a"]={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},e93b:function(t,e,i){"use strict";class n{constructor(t){t=t||{},this.color_=void 0!==t.color?t.color:null}clone(){const t=this.getColor();return new n({color:Array.isArray(t)?t.slice():t||void 0})}getColor(){return this.color_}setColor(t){this.color_=t}}e["a"]=n},ea03:function(t,e,i){"use strict";i.d(e,"c",(function(){return s})),i.d(e,"d",(function(){return r})),i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return a}));var n=i("d580");function s(t){return void 0!==t?0:void 0}function r(t){return void 0!==t?t:void 0}function o(t){const e=2*Math.PI/t;return function(t,i){return i?t:void 0!==t?(t=Math.floor(t/e+.5)*e,t):void 0}}function a(t){return t=t||Object(n["k"])(5),function(e,i){return i?e:void 0!==e?Math.abs(e)<=t?0:e:void 0}}},ec55:function(t,e,i){"use strict";function n(t,e,i,n,s){let r;for(e+=n;e<i;e+=n)if(r=s(t.slice(e-n,e),t.slice(e,e+n)),r)return r;return!1}i.d(e,"a",(function(){return n}))},ee55:function(t,e,i){"use strict";i.d(e,"b",(function(){return v}));var n=i("ba47"),s=i("84b6"),r=i("93f7"),o=i("a9a2"),a=i("d469"),h=i("4f7f"),l=i("6fe8");class c extends n["a"]{constructor(t,e){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?this.setCoordinates(t,e):this.setFlatCoordinates(e,t)}clone(){return new c(this.flatCoordinates.slice(),this.layout)}closestPointXY(t,e,i,n){return n<Object(r["e"])(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(s["e"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(s["d"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,i,n))}getArea(){return Object(l["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return Object(h["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(t){const e=[];return e.length=Object(a["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new c(e,"XY")}getType(){return"LinearRing"}intersectsExtent(t){return!1}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(o["b"])(this.flatCoordinates,0,t,this.stride),this.changed()}}var u=c,d=i("8a24"),g=i("b485"),f=i("1020"),_=i("d83a"),m=i("133e"),p=i("a001");i("d580"),i("4a0d");class y extends n["a"]{constructor(t,e,i){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==e&&i?(this.setFlatCoordinates(e,t),this.ends_=i):this.setCoordinates(t,e)}appendLinearRing(t){this.flatCoordinates?Object(g["c"])(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const t=new y(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(t,e,i,n){return n<Object(r["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_,!0,t,e,i,n))}containsXY(t,e){return Object(p["c"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)}getArea(){return Object(l["b"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(t){let e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),Object(m["c"])(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,Object(h["b"])(e,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const t=Object(r["w"])(this.getExtent());this.flatInteriorPoint_=Object(f["a"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new d["a"](this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(t){return t<0||this.ends_.length<=t?null:new u(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLinearRings(){const t=this.layout,e=this.flatCoordinates,i=this.ends_,n=[];let s=0;for(let r=0,o=i.length;r<o;++r){const o=i[r],a=new u(e.slice(s,o),t);n.push(a),s=o}return n}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const t=this.flatCoordinates;Object(m["a"])(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Object(m["c"])(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){const e=[],i=[];return e.length=Object(a["c"])(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),e,0,i),new y(e,"XY",i)}getType(){return"Polygon"}intersectsExtent(t){return Object(_["d"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);const i=Object(o["c"])(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()}}e["a"]=y;function v(t){const e=t[0],i=t[1],n=t[2],s=t[3],r=[e,i,e,s,n,s,n,i,e,i];return new y(r,"XY",[r.length])}},eee5:function(t,e,i){"use strict";function n(t){return t[0]>0&&t[1]>0}function s(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 r(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 s})),i.d(e,"c",(function(){return r}))},f1aa:function(t,e,i){"use strict";var n=i("f1c3"),s=i("8f60"),r=i("cd23"),o=i("93f7"),a=i("1005");class h extends r["a"]{constructor(t){super(),this.geometries_=t||null,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(a["c"]),this.changeEventsKeys_.length=0}listenGeometriesChange_(){if(this.geometries_)for(let t=0,e=this.geometries_.length;t<e;++t)this.changeEventsKeys_.push(Object(a["a"])(this.geometries_[t],s["a"].CHANGE,this.changed,this))}clone(){const t=new h(null);return t.setGeometries(this.geometries_),t.applyProperties(this),t}closestPointXY(t,e,i,n){if(n<Object(o["e"])(this.getExtent(),t,e))return n;const s=this.geometries_;for(let r=0,o=s.length;r<o;++r)n=s[r].closestPointXY(t,e,i,n);return n}containsXY(t,e){const i=this.geometries_;for(let n=0,s=i.length;n<s;++n)if(i[n].containsXY(t,e))return!0;return!1}computeExtent(t){Object(o["l"])(t);const e=this.geometries_;for(let i=0,n=e.length;i<n;++i)Object(o["p"])(t,e[i].getExtent());return t}getGeometries(){return l(this.geometries_)}getGeometriesArray(){return this.geometries_}getGeometriesArrayRecursive(){let t=[];const e=this.geometries_;for(let 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}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=[],i=this.geometries_;let n=!1;for(let s=0,r=i.length;s<r;++s){const r=i[s],o=r.getSimplifiedGeometry(t);e.push(o),o!==r&&(n=!0)}if(n){const t=new h(null);return t.setGeometriesArray(e),t}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this}getType(){return"GeometryCollection"}intersectsExtent(t){const e=this.geometries_;for(let i=0,n=e.length;i<n;++i)if(e[i].intersectsExtent(t))return!0;return!1}isEmpty(){return 0===this.geometries_.length}rotate(t,e){const i=this.geometries_;for(let n=0,s=i.length;n<s;++n)i[n].rotate(t,e);this.changed()}scale(t,e,i){i||(i=Object(o["w"])(this.getExtent()));const n=this.geometries_;for(let s=0,r=n.length;s<r;++s)n[s].scale(t,e,i);this.changed()}setGeometries(t){this.setGeometriesArray(l(t))}setGeometriesArray(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()}applyTransform(t){const e=this.geometries_;for(let i=0,n=e.length;i<n;++i)e[i].applyTransform(t);this.changed()}translate(t,e){const i=this.geometries_;for(let n=0,s=i.length;n<s;++n)i[n].translate(t,e);this.changed()}disposeInternal(){this.unlistenGeometriesChange_(),super.disposeInternal()}}function l(t){const e=[];for(let i=0,n=t.length;i<n;++i)e.push(t[i].clone());return e}var c=h,u=i("2fc48"),d=i("b91b");class g{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}getReadOptions(t,e){if(e){let i=e.dataProjection?Object(d["j"])(e.dataProjection):this.readProjection(t);e.extent&&i&&"tile-pixels"===i.getUnits()&&(i=Object(d["j"])(i),i.setWorldExtent(e.extent)),e={dataProjection:i,featureProjection:e.featureProjection}}return this.adaptOptions(e)}adaptOptions(t){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)}getType(){return Object(u["a"])()}readFeature(t,e){return Object(u["a"])()}readFeatures(t,e){return Object(u["a"])()}readGeometry(t,e){return Object(u["a"])()}readProjection(t){return Object(u["a"])()}writeFeature(t,e){return Object(u["a"])()}writeFeatures(t,e){return Object(u["a"])()}writeGeometry(t,e){return Object(u["a"])()}}var f=g;function _(t,e,i){const n=i?Object(d["j"])(i.featureProjection):null,s=i?Object(d["j"])(i.dataProjection):null;let r;if(r=n&&s&&!Object(d["e"])(n,s)?(e?t.clone():t).transform(e?n:s,e?s:n):t,e&&i&&void 0!==i.decimals){const e=Math.pow(10,i.decimals),n=function(t){for(let i=0,n=t.length;i<n;++i)t[i]=Math.round(t[i]*e)/e;return t};r===t&&(r=t.clone()),r.applyTransform(n)}return r}class m extends f{constructor(){super()}getType(){return"json"}readFeature(t,e){return this.readFeatureFromObject(p(t),this.getReadOptions(t,e))}readFeatures(t,e){return this.readFeaturesFromObject(p(t),this.getReadOptions(t,e))}readFeatureFromObject(t,e){return Object(u["a"])()}readFeaturesFromObject(t,e){return Object(u["a"])()}readGeometry(t,e){return this.readGeometryFromObject(p(t),this.getReadOptions(t,e))}readGeometryFromObject(t,e){return Object(u["a"])()}readProjection(t){return this.readProjectionFromObject(p(t))}readProjectionFromObject(t){return Object(u["a"])()}writeFeature(t,e){return JSON.stringify(this.writeFeatureObject(t,e))}writeFeatureObject(t,e){return Object(u["a"])()}writeFeatures(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))}writeFeaturesObject(t,e){return Object(u["a"])()}writeGeometry(t,e){return JSON.stringify(this.writeGeometryObject(t,e))}writeGeometryObject(t,e){return Object(u["a"])()}}function p(t){if("string"===typeof t){const e=JSON.parse(t);return e||null}return null!==t?t:null}var y=m,v=i("ba47"),b=i("84b6"),x=i("a9a2"),O=i("d469"),E=i("b485"),C=i("ec55"),S=i("4f7f"),R=i("d580");function I(t,e,i,n,s,r,o){let a,h;const l=(i-e)/n;if(1===l)a=e;else if(2===l)a=e,h=s;else if(0!==l){let r=t[e],o=t[e+1],l=0;const c=[0];for(let s=e+n;s<i;s+=n){const e=t[s],i=t[s+1];l+=Math.sqrt((e-r)*(e-r)+(i-o)*(i-o)),c.push(l),r=e,o=i}const u=s*l,d=Object(E["a"])(c,u);d<0?(h=(u-c[-d-2])/(c[-d-1]-c[-d-2]),a=e+(-d-2)*n):a=e+d*n}o=o>1?o:2,r=r||new Array(o);for(let c=0;c<o;++c)r[c]=void 0===a?NaN:void 0===h?t[a+c]:Object(R["d"])(t[a+c],t[a+n+c],h);return r}function w(t,e,i,n,s,r){if(i==e)return null;let o;if(s<t[e+n-1])return r?(o=t.slice(e,e+n),o[n-1]=s,o):null;if(t[i-1]<s)return r?(o=t.slice(i-n,i),o[n-1]=s,o):null;if(s==t[e+n-1])return t.slice(e,e+n);let a=e/n,h=i/n;while(a<h){const e=a+h>>1;s<t[(e+1)*n-1]?h=e:a=e+1}const l=t[a*n-1];if(s==l)return t.slice((a-1)*n,(a-1)*n+n);const c=t[(a+1)*n-1],u=(s-l)/(c-l);o=[];for(let d=0;d<n-1;++d)o.push(Object(R["d"])(t[(a-1)*n+d],t[a*n+d],u));return o.push(s),o}function j(t,e,i,n,s,r,o){if(o)return w(t,e,i[i.length-1],n,s,r);let a;if(s<t[n-1])return r?(a=t.slice(0,n),a[n-1]=s,a):null;if(t[t.length-1]<s)return r?(a=t.slice(t.length-n),a[n-1]=s,a):null;for(let h=0,l=i.length;h<l;++h){const r=i[h];if(e!=r){if(s<t[e+n-1])return null;if(s<=t[r-1])return w(t,e,r,n,s,!1);e=r}}return null}var T=i("d83a"),M=i("1c65");class L extends v["a"]{constructor(t,e){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?this.setCoordinates(t,e):this.setFlatCoordinates(e,t)}appendCoordinate(t){this.flatCoordinates?Object(E["c"])(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()}clone(){const t=new L(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,i,n){return n<Object(o["e"])(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(b["e"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(b["d"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,i,n))}forEachSegment(t){return Object(C["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinateAtM(t,e){return"XYM"!=this.layout&&"XYZM"!=this.layout?null:(e=void 0!==e&&e,w(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e))}getCoordinates(){return Object(S["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(t,e){return I(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)}getLength(){return Object(M["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(t){const e=[];return e.length=Object(O["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new L(e,"XY")}getType(){return"LineString"}intersectsExtent(t){return Object(T["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(x["b"])(this.flatCoordinates,0,t,this.stride),this.changed()}}var A=L;class P extends v["a"]{constructor(t,e,i){if(super(),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(t[0]))this.setCoordinates(t,e);else if(void 0!==e&&i)this.setFlatCoordinates(e,t),this.ends_=i;else{let e=this.getLayout();const i=t,n=[],s=[];for(let t=0,r=i.length;t<r;++t){const r=i[t];0===t&&(e=r.getLayout()),Object(E["c"])(n,r.getFlatCoordinates()),s.push(n.length)}this.setFlatCoordinates(e,n),this.ends_=s}}appendLineString(t){this.flatCoordinates?Object(E["c"])(this.flatCoordinates,t.getFlatCoordinates().slice()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const t=new P(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(t,e,i,n){return n<Object(o["e"])(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(b["a"])(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(b["b"])(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,i,n))}getCoordinateAtM(t,e,i){return"XYM"!=this.layout&&"XYZM"!=this.layout||0===this.flatCoordinates.length?null:(e=void 0!==e&&e,i=void 0!==i&&i,j(this.flatCoordinates,0,this.ends_,this.stride,t,e,i))}getCoordinates(){return Object(S["b"])(this.flatCoordinates,0,this.ends_,this.stride)}getEnds(){return this.ends_}getLineString(t){return t<0||this.ends_.length<=t?null:new A(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLineStrings(){const t=this.flatCoordinates,e=this.ends_,i=this.layout,n=[];let s=0;for(let r=0,o=e.length;r<o;++r){const o=e[r],a=new A(t.slice(s,o),i);n.push(a),s=o}return n}getFlatMidpoints(){const t=[],e=this.flatCoordinates;let i=0;const n=this.ends_,s=this.stride;for(let r=0,o=n.length;r<o;++r){const o=n[r],a=I(e,i,o,s,.5);Object(E["c"])(t,a),i=o}return t}getSimplifiedGeometryInternal(t){const e=[],i=[];return e.length=Object(O["b"])(this.flatCoordinates,0,this.ends_,this.stride,t,e,0,i),new P(e,"XY",i)}getType(){return"MultiLineString"}intersectsExtent(t){return Object(T["b"])(this.flatCoordinates,0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);const i=Object(x["c"])(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()}}var D=P,F=i("8a24");class k extends v["a"]{constructor(t,e){super(),e&&!Array.isArray(t[0])?this.setFlatCoordinates(e,t):this.setCoordinates(t,e)}appendPoint(t){this.flatCoordinates?Object(E["c"])(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()}clone(){const t=new k(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,i,n){if(n<Object(o["e"])(this.getExtent(),t,e))return n;const s=this.flatCoordinates,r=this.stride;for(let o=0,a=s.length;o<a;o+=r){const a=Object(R["g"])(t,e,s[o],s[o+1]);if(a<n){n=a;for(let t=0;t<r;++t)i[t]=s[o+t];i.length=r}}return n}getCoordinates(){return Object(S["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getPoint(t){const e=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return t<0||e<=t?null:new F["a"](this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)}getPoints(){const t=this.flatCoordinates,e=this.layout,i=this.stride,n=[];for(let s=0,r=t.length;s<r;s+=i){const r=new F["a"](t.slice(s,s+i),e);n.push(r)}return n}getType(){return"MultiPoint"}intersectsExtent(t){const e=this.flatCoordinates,i=this.stride;for(let n=0,s=e.length;n<s;n+=i){const i=e[n],s=e[n+1];if(Object(o["h"])(t,i,s))return!0}return!1}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(x["b"])(this.flatCoordinates,0,t,this.stride),this.changed()}}var N=k,G=i("ee55"),W=i("1020"),B=i("133e"),X=i("6fe8");function Y(t,e,i,n){const s=[];let r=Object(o["j"])();for(let a=0,h=i.length;a<h;++a){const h=i[a];r=Object(o["n"])(t,e,h[0],n),s.push((r[0]+r[2])/2,(r[1]+r[3])/2),e=h[h.length-1]}return s}var z=i("a001");class V extends v["a"]{constructor(t,e,i){if(super(),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!i&&!Array.isArray(t[0])){let n=this.getLayout();const s=t,r=[],o=[];for(let t=0,e=s.length;t<e;++t){const e=s[t];0===t&&(n=e.getLayout());const i=r.length,a=e.getEnds();for(let t=0,n=a.length;t<n;++t)a[t]+=i;Object(E["c"])(r,e.getFlatCoordinates()),o.push(a)}e=n,t=r,i=o}void 0!==e&&i?(this.setFlatCoordinates(e,t),this.endss_=i):this.setCoordinates(t,e)}appendPolygon(t){let e;if(this.flatCoordinates){const i=this.flatCoordinates.length;Object(E["c"])(this.flatCoordinates,t.getFlatCoordinates()),e=t.getEnds().slice();for(let t=0,n=e.length;t<n;++t)e[t]+=i}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()}clone(){const t=this.endss_.length,e=new Array(t);for(let n=0;n<t;++n)e[n]=this.endss_[n].slice();const i=new V(this.flatCoordinates.slice(),this.layout,e);return i.applyProperties(this),i}closestPointXY(t,e,i,n){return n<Object(o["e"])(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(b["f"])(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(b["c"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,i,n))}containsXY(t,e){return Object(z["d"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)}getArea(){return Object(X["c"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)}getCoordinates(t){let e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),Object(B["d"])(e,0,this.endss_,this.stride,t)):e=this.flatCoordinates,Object(S["c"])(e,0,this.endss_,this.stride)}getEndss(){return this.endss_}getFlatInteriorPoints(){if(this.flatInteriorPointsRevision_!=this.getRevision()){const t=Y(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=Object(W["b"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_}getInteriorPoints(){return new N(this.getFlatInteriorPoints().slice(),"XYM")}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const t=this.flatCoordinates;Object(B["b"])(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Object(B["d"])(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){const e=[],i=[];return e.length=Object(O["d"])(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),e,0,i),new V(e,"XY",i)}getPolygon(t){if(t<0||this.endss_.length<=t)return null;let e;if(0===t)e=0;else{const i=this.endss_[t-1];e=i[i.length-1]}const i=this.endss_[t].slice(),n=i[i.length-1];if(0!==e)for(let s=0,r=i.length;s<r;++s)i[s]-=e;return new G["a"](this.flatCoordinates.slice(e,n),this.layout,i)}getPolygons(){const t=this.layout,e=this.flatCoordinates,i=this.endss_,n=[];let s=0;for(let r=0,o=i.length;r<o;++r){const o=i[r].slice(),a=o[o.length-1];if(0!==s)for(let t=0,e=o.length;t<e;++t)o[t]-=s;const h=new G["a"](e.slice(s,a),t,o);n.push(h),s=a}return n}getType(){return"MultiPolygon"}intersectsExtent(t){return Object(T["e"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);const i=Object(x["d"])(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===i.length)this.flatCoordinates.length=0;else{const t=i[i.length-1];this.flatCoordinates.length=0===t.length?0:t[t.length-1]}this.changed()}}var K=V,U=i("54a8"),H=i("73af");class Z extends y{constructor(t){t=t||{},super(),this.dataProjection=Object(d["j"])(t.dataProjection?t.dataProjection:"EPSG:4326"),t.featureProjection&&(this.defaultFeatureProjection=Object(d["j"])(t.featureProjection)),this.geometryName_=t.geometryName,this.extractGeometryName_=t.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(t,e){let i=null;i="Feature"===t["type"]?t:{type:"Feature",geometry:t,properties:null};const s=q(i["geometry"],e),r=new n["a"];return this.geometryName_?r.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in i!==void 0&&r.setGeometryName(i["geometry_name"]),r.setGeometry(s),"id"in i&&r.setId(i["id"]),i["properties"]&&r.setProperties(i["properties"],!0),r}readFeaturesFromObject(t,e){const i=t;let n=null;if("FeatureCollection"===i["type"]){const i=t;n=[];const s=i["features"];for(let t=0,r=s.length;t<r;++t)n.push(this.readFeatureFromObject(s[t],e))}else n=[this.readFeatureFromObject(t,e)];return n}readGeometryFromObject(t,e){return q(t,e)}readProjectionFromObject(t){const e=t["crs"];let i;return e?"name"==e["type"]?i=Object(d["j"])(e["properties"]["name"]):"EPSG"===e["type"]?i=Object(d["j"])("EPSG:"+e["properties"]["code"]):Object(U["a"])(!1,36):i=this.dataProjection,i}writeFeatureObject(t,e){e=this.adaptOptions(e);const i={type:"Feature",geometry:null,properties:null},n=t.getId();if(void 0!==n&&(i.id=n),!t.hasProperties())return i;const s=t.getProperties(),r=t.getGeometry();return r&&(i.geometry=st(r,e),delete s[t.getGeometryName()]),Object(H["b"])(s)||(i.properties=s),i}writeFeaturesObject(t,e){e=this.adaptOptions(e);const i=[];for(let n=0,s=t.length;n<s;++n)i.push(this.writeFeatureObject(t[n],e));return{type:"FeatureCollection",features:i}}writeGeometryObject(t,e){return st(t,this.adaptOptions(e))}}function q(t,e){if(!t)return null;let i;switch(t["type"]){case"Point":i=Q(t);break;case"LineString":i=$(t);break;case"Polygon":i=nt(t);break;case"MultiPoint":i=et(t);break;case"MultiLineString":i=tt(t);break;case"MultiPolygon":i=it(t);break;case"GeometryCollection":i=J(t);break;default:throw new Error("Unsupported GeoJSON type: "+t["type"])}return _(i,!1,e)}function J(t,e){const i=t["geometries"].map((function(t){return q(t,e)}));return new c(i)}function Q(t){return new F["a"](t["coordinates"])}function $(t){return new A(t["coordinates"])}function tt(t){return new D(t["coordinates"])}function et(t){return new N(t["coordinates"])}function it(t){return new K(t["coordinates"])}function nt(t){return new G["a"](t["coordinates"])}function st(t,e){t=_(t,!0,e);const i=t.getType();let n;switch(i){case"Point":n=ct(t,e);break;case"LineString":n=ot(t,e);break;case"Polygon":n=ut(t,e);break;case"MultiPoint":n=ht(t,e);break;case"MultiLineString":n=at(t,e);break;case"MultiPolygon":n=lt(t,e);break;case"GeometryCollection":n=rt(t,e);break;case"Circle":n={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+i)}return n}function rt(t,e){e=Object.assign({},e),delete e.featureProjection;const i=t.getGeometriesArray().map((function(t){return st(t,e)}));return{type:"GeometryCollection",geometries:i}}function ot(t,e){return{type:"LineString",coordinates:t.getCoordinates()}}function at(t,e){return{type:"MultiLineString",coordinates:t.getCoordinates()}}function ht(t,e){return{type:"MultiPoint",coordinates:t.getCoordinates()}}function lt(t,e){let i;return e&&(i=e.rightHanded),{type:"MultiPolygon",coordinates:t.getCoordinates(i)}}function ct(t,e){return{type:"Point",coordinates:t.getCoordinates()}}function ut(t,e){let i;return e&&(i=e.rightHanded),{type:"Polygon",coordinates:t.getCoordinates(i)}}e["a"]=Z},f1c3:function(t,e,i){"use strict";var n=i("3b99"),s=i("8f60"),r=i("54a8"),o=i("1005");class a extends n["a"]{constructor(t){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),t)if("function"===typeof t.getSimplifiedGeometry){const e=t;this.setGeometry(e)}else{const e=t;this.setProperties(e)}}clone(){const t=new a(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());const e=this.getGeometry();e&&t.setGeometry(e.clone());const i=this.getStyle();return i&&t.setStyle(i),t}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&(Object(o["c"])(this.geometryChangeKey_),this.geometryChangeKey_=null);const t=this.getGeometry();t&&(this.geometryChangeKey_=Object(o["a"])(t,s["a"].CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?h(t):void 0,this.changed()}setId(t){this.id_=t,this.changed()}setGeometryName(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}function h(t){if("function"===typeof t)return t;{let e;if(Array.isArray(t))e=t;else{Object(r["a"])("function"===typeof t.getZIndex,41);const i=t;e=[i]}return function(){return e}}}e["a"]=a},f34f:function(t,e,i){"use strict";var n=i("3b99"),s=i("2907"),r=i("b623"),o=i("754a"),a=i("bf5a"),h=i("2fc48"),l=i("ac76"),c=i("93f7"),u=i("66d7"),d=i("aaaf"),g=i("577e");class f extends o["a"]{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){Object(h["a"])()}calculateMatrices2D(t){const e=t.viewState,i=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;Object(l["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(l["d"])(n,i)}forEachFeatureAtCoordinate(t,e,i,n,s,r,o,a){let h;const l=e.viewState;function u(t,e,i,n){return s.call(r,e,t?i:null,n)}const f=l.projection,_=Object(g["f"])(t.slice(),f),m=[[0,0]];if(f.canWrapX()&&n){const t=f.getExtent(),e=Object(c["E"])(t);m.push([-e,0],[e,0])}const p=e.layerStatesArray,y=p.length,v=[],b=[];for(let c=0;c<m.length;c++)for(let n=y-1;n>=0;--n){const s=p[n],r=s.layer;if(r.hasRenderer()&&Object(d["b"])(s,l)&&o.call(a,r)){const n=r.getRenderer(),o=r.getSource();if(n&&o){const r=o.getWrapX()?_:t,a=u.bind(null,s.managed);b[0]=r[0]+m[c][0],b[1]=r[1]+m[c][1],h=n.forEachFeatureAtCoordinate(b,e,i,a,v)}if(h)return h}}if(0===v.length)return;const x=1/v.length;return v.forEach((t,e)=>t.distanceSq+=e*x),v.sort((t,e)=>t.distanceSq-e.distanceSq),v.some(t=>h=t.callback(t.feature,t.layer,t.geometry)),h}hasFeatureAtCoordinate(t,e,i,n,s,r){const o=this.forEachFeatureAtCoordinate(t,e,i,n,a["b"],this,s,r);return void 0!==o}getMap(){return this.map_}renderFrame(t){Object(h["a"])()}scheduleExpireIconCache(t){u["a"].canExpireCache()&&t.postRenderFunctions.push(_)}}function _(t,e){u["a"].expire()}var m=f,p=i("3c38"),y=i("5296"),v=i("0bc5"),b=i("6f69"),x=i("8090"),O=i("1005"),E=i("d72a");class C extends m{constructor(t){super(t),this.fontChangeListenerKey_=Object(O["a"])(x["a"],p["a"].PROPERTYCHANGE,t.redrawText.bind(t)),this.element_=document.createElement("div");const e=this.element_.style;e.position="absolute",e.width="100%",e.height="100%",e.zIndex="0",this.element_.className=b["d"]+" ol-layers";const i=t.getViewport();i.insertBefore(this.element_,i.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(t,e){const i=this.getMap();if(i.hasListener(t)){const n=new y["a"](t,void 0,e);i.dispatchEvent(n)}}disposeInternal(){Object(O["c"])(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(t){if(!t)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(t),this.dispatchRenderEvent(v["a"].PRECOMPOSE,t);const e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),i=t.viewState;this.children_.length=0;const n=[];let s=null;for(let r=0,o=e.length;r<o;++r){const o=e[r];t.layerIndex=r;const a=o.layer,h=a.getSourceState();if(!Object(d["b"])(o,i)||"ready"!=h&&"undefined"!=h){a.unrender();continue}const l=a.render(t,s);l&&(l!==s&&(this.children_.push(l),s=l),"getDeclutter"in a&&n.push(a))}for(let r=n.length-1;r>=0;--r)n[r].renderDeclutter(t);Object(E["e"])(this.element_,this.children_),this.dispatchRenderEvent(v["a"].POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}}var S=C,R=i("8f60"),I=i("333c"),w=i("8a11"),j=i("54a8"),T=i("73af");class M extends w["a"]{constructor(t,e){super(t),this.layer=e}}const L={LAYERS:"layers"};class A extends I["a"]{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let i=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(L.LAYERS,this.handleLayersChanged_),i?Array.isArray(i)?i=new s["a"](i.slice(),{unique:!0}):Object(j["a"])("function"===typeof i.getArray,43):i=new s["a"](void 0,{unique:!0}),this.setLayers(i)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(O["c"]),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push(Object(O["a"])(t,r["a"].ADD,this.handleLayersAdd_,this),Object(O["a"])(t,r["a"].REMOVE,this.handleLayersRemove_,this));for(const i in this.listenerKeys_)this.listenerKeys_[i].forEach(O["c"]);Object(T["a"])(this.listenerKeys_);const e=t.getArray();for(let i=0,n=e.length;i<n;i++){const t=e[i];this.registerLayerListeners_(t),this.dispatchEvent(new M("addlayer",t))}this.changed()}registerLayerListeners_(t){const e=[Object(O["a"])(t,p["a"].PROPERTYCHANGE,this.handleLayerChange_,this),Object(O["a"])(t,R["a"].CHANGE,this.handleLayerChange_,this)];t instanceof A&&e.push(Object(O["a"])(t,"addlayer",this.handleLayerGroupAdd_,this),Object(O["a"])(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[Object(h["b"])(t)]=e}handleLayerGroupAdd_(t){this.dispatchEvent(new M("addlayer",t.layer))}handleLayerGroupRemove_(t){this.dispatchEvent(new M("removelayer",t.layer))}handleLayersAdd_(t){const e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new M("addlayer",e)),this.changed()}handleLayersRemove_(t){const e=t.element,i=Object(h["b"])(e);this.listenerKeys_[i].forEach(O["c"]),delete this.listenerKeys_[i],this.dispatchEvent(new M("removelayer",e)),this.changed()}getLayers(){return this.get(L.LAYERS)}setLayers(t){const e=this.getLayers();if(e){const t=e.getArray();for(let e=0,i=t.length;e<i;++e)this.dispatchEvent(new M("removelayer",t[e]))}this.set(L.LAYERS,t)}getLayersArray(t){return t=void 0!==t?t:[],this.getLayers().forEach((function(e){e.getLayersArray(t)})),t}getLayerStatesArray(t){const e=void 0!==t?t:[],i=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));const n=this.getLayerState();let s=n.zIndex;t||void 0!==n.zIndex||(s=0);for(let r=i,o=e.length;r<o;r++){const t=e[r];t.opacity*=n.opacity,t.visible=t.visible&&n.visible,t.maxResolution=Math.min(t.maxResolution,n.maxResolution),t.minResolution=Math.max(t.minResolution,n.minResolution),t.minZoom=Math.max(t.minZoom,n.minZoom),t.maxZoom=Math.min(t.maxZoom,n.maxZoom),void 0!==n.extent&&(void 0!==t.extent?t.extent=Object(c["A"])(t.extent,n.extent):t.extent=n.extent),void 0===t.zIndex&&(t.zIndex=s)}return e}getSourceState(){return"ready"}}var P=A;class D extends w["a"]{constructor(t,e,i){super(t),this.map=e,this.frameState=void 0!==i?i:null}}var F=D;class k extends F{constructor(t,e,i,n,s,r){super(t,e,s),this.originalEvent=i,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==n&&n,this.activePointers=r}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(t){this.pixel_=t}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(t){this.coordinate_=t}preventDefault(){super.preventDefault(),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}}var N=k,G={SINGLECLICK:"singleclick",CLICK:R["a"].CLICK,DBLCLICK:R["a"].DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},W={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},B=i("9e10"),X=i("5e62");class Y extends B["a"]{constructor(t,e){super(t),this.map_=t,this.clickTimeoutId_,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=void 0===e?1:e,this.down_=null;const i=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=i,this.pointerdownListenerKey_=Object(O["a"])(i,W.POINTERDOWN,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=Object(O["a"])(i,W.POINTERMOVE,this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(R["a"].TOUCHMOVE,this.boundHandleTouchMove_,!!X["e"]&&{passive:!1})}emulateClick_(t){let e=new N(G.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new N(G.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;const e=new N(G.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)}updateActivePointers_(t){const e=t,i=e.pointerId;if(e.type==G.POINTERUP||e.type==G.POINTERCANCEL){delete this.trackedTouches_[i];for(const t in this.trackedTouches_)if(this.trackedTouches_[t].target!==e.target){delete this.trackedTouches_[t];break}}else e.type!=G.POINTERDOWN&&e.type!=G.POINTERMOVE||(this.trackedTouches_[i]=e);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const e=new N(G.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(O["c"]),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return 0===t.button}handlePointerDown_(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);const e=new N(G.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.down_={};for(const i in t){const e=t[i];this.down_[i]="function"===typeof e?a["c"]:e}if(0===this.dragListenerKeys_.length){const t=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Object(O["a"])(t,G.POINTERMOVE,this.handlePointerMove_,this),Object(O["a"])(t,G.POINTERUP,this.handlePointerUp_,this),Object(O["a"])(this.element_,G.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==t&&this.dragListenerKeys_.push(Object(O["a"])(this.element_.getRootNode(),G.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const e=new N(G.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new N(G.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){const e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"===typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(Object(O["c"])(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(R["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,super.disposeInternal()}}var z=Y,V={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},K={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"};const U=1/0;class H{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,Object(T["a"])(this.queuedElements_)}dequeue(){const 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));const n=this.keyFunction_(i);return delete this.queuedElements_[n],i}enqueue(t){Object(j["a"])(!(this.keyFunction_(t)in this.queuedElements_),31);const e=this.priorityFunction_(t);return e!=U&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(t){return 2*t+1}getRightChildIndex_(t){return 2*t+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return 0===this.elements_.length}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const e=this.elements_,i=this.priorities_,n=e.length,s=e[t],r=i[t],o=t;while(t<n>>1){const s=this.getLeftChildIndex_(t),r=this.getRightChildIndex_(t),o=r<n&&i[r]<i[s]?r:s;e[t]=e[o],i[t]=i[o],t=o}e[t]=s,i[t]=r,this.siftDown_(o,t)}siftDown_(t,e){const i=this.elements_,n=this.priorities_,s=i[e],r=n[e];while(e>t){const t=this.getParentIndex_(e);if(!(n[t]>r))break;i[e]=i[t],n[e]=n[t],e=t}i[e]=s,n[e]=r}reprioritize(){const t=this.priorityFunction_,e=this.elements_,i=this.priorities_;let n=0;const s=e.length;let r,o,a;for(o=0;o<s;++o)r=e[o],a=t(r),a==U?delete this.queuedElements_[this.keyFunction_(r)]:(i[n]=a,e[n++]=r);e.length=n,i.length=n,this.heapify_()}}var Z=H,q=i("dd64");class J extends Z{constructor(t,e){super((function(e){return t.apply(null,e)}),(function(t){return t[0].getKey()})),this.boundHandleTileChange_=this.handleTileChange.bind(this),this.tileChangeCallback_=e,this.tilesLoading_=0,this.tilesLoadingKeys_={}}enqueue(t){const e=super.enqueue(t);if(e){const e=t[0];e.addEventListener(R["a"].CHANGE,this.boundHandleTileChange_)}return e}getTilesLoading(){return this.tilesLoading_}handleTileChange(t){const e=t.target,i=e.getState();if(i===q["a"].LOADED||i===q["a"].ERROR||i===q["a"].EMPTY){i!==q["a"].ERROR&&e.removeEventListener(R["a"].CHANGE,this.boundHandleTileChange_);const t=e.getKey();t in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[t],--this.tilesLoading_),this.tileChangeCallback_()}}loadMoreTiles(t,e){let i,n,s,r=0;while(this.tilesLoading_<t&&r<e&&this.getCount()>0)n=this.dequeue()[0],s=n.getKey(),i=n.getState(),i!==q["a"].IDLE||s in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[s]=!0,++this.tilesLoading_,++r,n.load())}}var Q=J;function $(t,e,i,n,s){if(!t||!(i in t.wantedTiles))return U;if(!t.wantedTiles[i][e.getKey()])return U;const r=t.viewState.center,o=n[0]-r[0],a=n[1]-r[1];return 65536*Math.log(s)+Math.sqrt(o*o+a*a)/s}var tt=i("da7b"),et=i("6b8e");class it extends n["a"]{constructor(t){super();const e=t.element;!e||t.target||e.style.pointerEvents||(e.style.pointerEvents="auto"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){Object(E["d"])(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&Object(E["d"])(this.element);for(let e=0,i=this.listenerKeys.length;e<i;++e)Object(O["c"])(this.listenerKeys[e]);if(this.listenerKeys.length=0,this.map_=t,t){const e=this.target_?this.target_:t.getOverlayContainerStopEvent();e.appendChild(this.element),this.render!==a["c"]&&this.listenerKeys.push(Object(O["a"])(t,V.POSTRENDER,this.render,this)),t.render()}}render(t){}setTarget(t){this.target_="string"===typeof t?document.getElementById(t):t}}var nt=it,st=i("b485");class rt extends nt{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===t.collapsed||t.collapsed,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=void 0!==t.collapsible,this.collapsible_=void 0===t.collapsible||t.collapsible,this.collapsible_||(this.collapsed_=!1);const e=void 0!==t.className?t.className:"ol-attribution",i=void 0!==t.tipLabel?t.tipLabel:"Attributions",n=void 0!==t.expandClassName?t.expandClassName:e+"-expand",s=void 0!==t.collapseLabel?t.collapseLabel:"›",r=void 0!==t.collapseClassName?t.collapseClassName:e+"-collapse";"string"===typeof s?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=s,this.collapseLabel_.className=r):this.collapseLabel_=s;const o=void 0!==t.label?t.label:"i";"string"===typeof o?(this.label_=document.createElement("span"),this.label_.textContent=o,this.label_.className=n):this.label_=o;const a=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_;this.toggleButton_=document.createElement("button"),this.toggleButton_.setAttribute("type","button"),this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_)),this.toggleButton_.title=i,this.toggleButton_.appendChild(a),this.toggleButton_.addEventListener(R["a"].CLICK,this.handleClick_.bind(this),!1);const h=e+" "+b["d"]+" "+b["b"]+(this.collapsed_&&this.collapsible_?" "+b["a"]:"")+(this.collapsible_?"":" ol-uncollapsible"),l=this.element;l.className=h,l.appendChild(this.toggleButton_),l.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(t){const e={},i=[];let n=!0;const s=t.layerStatesArray;for(let r=0,o=s.length;r<o;++r){const o=s[r];if(!Object(d["b"])(o,t.viewState))continue;const a=o.layer.getSource();if(!a)continue;const h=a.getAttributions();if(!h)continue;const l=h(t);if(l)if(n=n&&!1!==a.getAttributionsCollapsible(),Array.isArray(l))for(let t=0,n=l.length;t<n;++t)l[t]in e||(i.push(l[t]),e[l[t]]=!0);else l in e||(i.push(l),e[l]=!0)}return this.overrideCollapsible_||this.setCollapsible(n),i}updateElement_(t){if(!t)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const e=this.collectSourceAttributions_(t),i=e.length>0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!Object(st["b"])(e,this.renderedAttributions_)){Object(E["c"])(this.ulElement_);for(let t=0,i=e.length;t<i;++t){const i=document.createElement("li");i.innerHTML=e[t],this.ulElement_.appendChild(i)}this.renderedAttributions_=e}}handleClick_(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_}handleToggle_(){this.element.classList.toggle(b["a"]),this.collapsed_?Object(E["f"])(this.collapseLabel_,this.label_):Object(E["f"])(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))}getCollapsible(){return this.collapsible_}setCollapsible(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())}setCollapsed(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()}getCollapsed(){return this.collapsed_}render(t){this.updateElement_(t.frameState)}}var ot=rt,at=i("7774");class ht extends nt{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target});const e=void 0!==t.className?t.className:"ol-rotate",i=void 0!==t.label?t.label:"⇧",n=void 0!==t.compassClassName?t.compassClassName:"ol-compass";this.label_=null,"string"===typeof i?(this.label_=document.createElement("span"),this.label_.className=n,this.label_.textContent=i):(this.label_=i,this.label_.classList.add(n));const s=t.tipLabel?t.tipLabel:"Reset rotation",r=document.createElement("button");r.className=e+"-reset",r.setAttribute("type","button"),r.title=s,r.appendChild(this.label_),r.addEventListener(R["a"].CLICK,this.handleClick_.bind(this),!1);const o=e+" "+b["d"]+" "+b["b"],a=this.element;a.className=o,a.appendChild(r),this.callResetNorth_=t.resetNorth?t.resetNorth:void 0,this.duration_=void 0!==t.duration?t.duration:250,this.autoHide_=void 0===t.autoHide||t.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(b["c"])}handleClick_(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}resetNorth_(){const t=this.getMap(),e=t.getView();if(!e)return;const i=e.getRotation();void 0!==i&&(this.duration_>0&&i%(2*Math.PI)!==0?e.animate({rotation:0,duration:this.duration_,easing:at["b"]}):e.setRotation(0))}render(t){const e=t.frameState;if(!e)return;const i=e.viewState.rotation;if(i!=this.rotation_){const t="rotate("+i+"rad)";if(this.autoHide_){const t=this.element.classList.contains(b["c"]);t||0!==i?t&&0!==i&&this.element.classList.remove(b["c"]):this.element.classList.add(b["c"])}this.label_.style.transform=t}this.rotation_=i}}var lt=ht;class ct extends nt{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});const e=void 0!==t.className?t.className:"ol-zoom",i=void 0!==t.delta?t.delta:1,n=void 0!==t.zoomInClassName?t.zoomInClassName:e+"-in",s=void 0!==t.zoomOutClassName?t.zoomOutClassName:e+"-out",r=void 0!==t.zoomInLabel?t.zoomInLabel:"+",o=void 0!==t.zoomOutLabel?t.zoomOutLabel:"–",a=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",h=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",l=document.createElement("button");l.className=n,l.setAttribute("type","button"),l.title=a,l.appendChild("string"===typeof r?document.createTextNode(r):r),l.addEventListener(R["a"].CLICK,this.handleClick_.bind(this,i),!1);const c=document.createElement("button");c.className=s,c.setAttribute("type","button"),c.title=h,c.appendChild("string"===typeof o?document.createTextNode(o):o),c.addEventListener(R["a"].CLICK,this.handleClick_.bind(this,-i),!1);const u=e+" "+b["d"]+" "+b["b"],d=this.element;d.className=u,d.appendChild(l),d.appendChild(c),this.duration_=void 0!==t.duration?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const e=this.getMap(),i=e.getView();if(!i)return;const n=i.getZoom();if(void 0!==n){const e=i.getConstrainedZoom(n+t);this.duration_>0?(i.getAnimating()&&i.cancelAnimations(),i.animate({zoom:e,duration:this.duration_,easing:at["b"]})):i.setZoom(e)}}}var ut=ct;function dt(t){t=t||{};const e=new s["a"],i=void 0===t.zoom||t.zoom;i&&e.push(new ut(t.zoomOptions));const n=void 0===t.rotate||t.rotate;n&&e.push(new lt(t.rotateOptions));const r=void 0===t.attribution||t.attribution;return r&&e.push(new ot(t.attributionOptions)),e}var gt={ACTIVE:"active"};class ft extends n["a"]{constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(gt.ACTIVE)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(gt.ACTIVE,t)}setMap(t){this.map_=t}}function _t(t,e,i){const n=t.getCenterInternal();if(n){const s=[n[0]+e[0],n[1]+e[1]];t.animateInternal({duration:void 0!==i?i:250,easing:at["d"],center:t.getConstrainedCenter(s)})}}function mt(t,e,i,n){const s=t.getZoom();if(void 0===s)return;const r=t.getConstrainedZoom(s+e),o=t.getResolutionForZoom(r);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:o,anchor:i,duration:void 0!==n?n:250,easing:at["b"]})}var pt=ft;class yt extends pt{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:250}handleEvent(t){let e=!1;if(t.type==G.DBLCLICK){const i=t.originalEvent,n=t.map,s=t.coordinate,r=i.shiftKey?-this.delta_:this.delta_,o=n.getView();mt(o,r,s,this.duration_),i.preventDefault(),e=!0}return!e}}var vt=yt;class bt extends pt{constructor(t){t=t||{},super(t),t.handleDownEvent&&(this.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(this.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(this.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(this.handleUpEvent=t.handleUpEvent),t.stopDown&&(this.stopDown=t.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(t){return!1}handleDragEvent(t){}handleEvent(t){if(!t.originalEvent)return!0;let e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==G.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==G.POINTERUP){const e=this.handleUpEvent(t);this.handlingDownUpSequence=e&&this.targetPointers.length>0}}else if(t.type==G.POINTERDOWN){const i=this.handleDownEvent(t);this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==G.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}}function xt(t){const e=t.length;let i=0,n=0;for(let s=0;s<e;s++)i+=t[s].clientX,n+=t[s].clientY;return[i/e,n/e]}var Ot=bt;function Et(t){const e=arguments;return function(t){let i=!0;for(let n=0,s=e.length;n<s;++n)if(i=i&&e[n](t),!i)break;return i}}const Ct=function(t){const e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},St=function(t){const e=t.map.getTargetElement(),i=t.map.getOwnerDocument().activeElement;return e.contains(i)},Rt=function(t){return!t.map.getTargetElement().hasAttribute("tabindex")||St(t)},It=a["b"],wt=function(t){const e=t.originalEvent;return 0==e.button&&!(X["f"]&&X["d"]&&e.ctrlKey)},jt=(a["a"],function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey}),Tt=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},Mt=function(t){const e=t.originalEvent,i=e.target.tagName;return"INPUT"!==i&&"SELECT"!==i&&"TEXTAREA"!==i&&!e.target.isContentEditable},Lt=function(t){const e=t.originalEvent;return Object(j["a"])(void 0!==e,56),"mouse"==e.pointerType},At=function(t){const e=t.originalEvent;return Object(j["a"])(void 0!==e,56),e.isPrimary&&0===e.button};class Pt extends Ot{constructor(t){super({stopDown:a["a"]}),t=t||{},this.kinetic_=t.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const e=t.condition?t.condition:Et(jt,At);this.condition_=t.onFocusOnly?Et(Rt,e):e,this.noKinetic_=!1}handleDragEvent(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());const e=this.targetPointers,i=xt(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(i[0],i[1]),this.lastCentroid){const e=[this.lastCentroid[0]-i[0],i[1]-this.lastCentroid[1]],n=t.map,s=n.getView();Object(g["e"])(e,s.getResolution()),Object(g["d"])(e,s.getRotation()),s.adjustCenterInternal(e)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=i,this.lastPointersCount_=e.length,t.originalEvent.preventDefault()}handleUpEvent(t){const e=t.map,i=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const t=this.kinetic_.getDistance(),n=this.kinetic_.getAngle(),s=i.getCenterInternal(),r=e.getPixelFromCoordinateInternal(s),o=e.getCoordinateFromPixelInternal([r[0]-t*Math.cos(n),r[1]-t*Math.sin(n)]);i.animateInternal({center:i.getConstrainedCenter(o),duration:500,easing:at["b"]})}return this.panning_&&(this.panning_=!1,i.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(t){if(this.targetPointers.length>0&&this.condition_(t)){const e=t.map,i=e.getView();return this.lastCentroid=null,i.getAnimating()&&i.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}}var Dt=Pt,Ft=i("ea03");class kt extends Ot{constructor(t){t=t||{},super({stopDown:a["a"]}),this.condition_=t.condition?t.condition:Ct,this.lastAngle_=void 0,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){if(!Lt(t))return;const e=t.map,i=e.getView();if(i.getConstraints().rotation===Ft["c"])return;const n=e.getSize(),s=t.pixel,r=Math.atan2(n[1]/2-s[1],s[0]-n[0]/2);if(void 0!==this.lastAngle_){const t=r-this.lastAngle_;i.adjustRotationInternal(-t)}this.lastAngle_=r}handleUpEvent(t){if(!Lt(t))return!0;const e=t.map,i=e.getView();return i.endInteraction(this.duration_),!1}handleDownEvent(t){if(!Lt(t))return!1;if(wt(t)&&this.condition_(t)){const e=t.map;return e.getView().beginInteraction(),this.lastAngle_=void 0,!0}return!1}}var Nt=kt,Gt=i("ee55");class Wt extends o["a"]{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const t=this.startPixel_,e=this.endPixel_,i="px",n=this.element_.style;n.left=Math.min(t[0],e[0])+i,n.top=Math.min(t[1],e[1])+i,n.width=Math.abs(e[0]-t[0])+i,n.height=Math.abs(e[1]-t[1])+i}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const t=this.startPixel_,e=this.endPixel_,i=[t,[t[0],e[1]],e,[e[0],t[1]]],n=i.map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new Gt["a"]([n])}getGeometry(){return this.geometry_}}var Bt=Wt;const Xt={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"};class Yt extends w["a"]{constructor(t,e,i){super(t),this.coordinate=e,this.mapBrowserEvent=i}}class zt extends Ot{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.box_=new Bt(t.className||"ol-dragbox"),this.minArea_=void 0!==t.minArea?t.minArea:64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition?t.condition:wt,this.boxEndCondition_=t.boxEndCondition?t.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(t,e,i){const n=i[0]-e[0],s=i[1]-e[1];return n*n+s*s>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new Yt(Xt.BOXDRAG,t.coordinate,t))}handleUpEvent(t){this.box_.setMap(null);const e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new Yt(e?Xt.BOXEND:Xt.BOXCANCEL,t.coordinate,t)),!1}handleDownEvent(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new Yt(Xt.BOXSTART,t.coordinate,t)),!0)}onBoxEnd(t){}}var Vt=zt;class Kt extends Vt{constructor(t){t=t||{};const e=t.condition?t.condition:Tt;super({condition:e,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=void 0!==t.duration?t.duration:200,this.out_=void 0!==t.out&&t.out}onBoxEnd(t){const e=this.getMap(),i=e.getView();let n=this.getGeometry();if(this.out_){const t=i.rotatedExtentForGeometry(n),e=i.getResolutionForExtentInternal(t),s=i.getResolution()/e;n=n.clone(),n.scale(s*s)}i.fitInternal(n,{duration:this.duration_,easing:at["b"]})}}var Ut=Kt,Ht={LEFT:37,UP:38,RIGHT:39,DOWN:40};class Zt extends pt{constructor(t){super(),t=t||{},this.defaultCondition_=function(t){return jt(t)&&Mt(t)},this.condition_=void 0!==t.condition?t.condition:this.defaultCondition_,this.duration_=void 0!==t.duration?t.duration:100,this.pixelDelta_=void 0!==t.pixelDelta?t.pixelDelta:128}handleEvent(t){let e=!1;if(t.type==R["a"].KEYDOWN){const i=t.originalEvent,n=i.keyCode;if(this.condition_(t)&&(n==Ht.DOWN||n==Ht.LEFT||n==Ht.RIGHT||n==Ht.UP)){const s=t.map,r=s.getView(),o=r.getResolution()*this.pixelDelta_;let a=0,h=0;n==Ht.DOWN?h=-o:n==Ht.LEFT?a=-o:n==Ht.RIGHT?a=o:h=o;const l=[a,h];Object(g["d"])(l,r.getRotation()),_t(r,l,this.duration_),i.preventDefault(),e=!0}}return!e}}var qt=Zt;class Jt extends pt{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:Mt,this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:100}handleEvent(t){let e=!1;if(t.type==R["a"].KEYDOWN||t.type==R["a"].KEYPRESS){const i=t.originalEvent,n=i.charCode;if(this.condition_(t)&&(n=="+".charCodeAt(0)||n=="-".charCodeAt(0))){const s=t.map,r=n=="+".charCodeAt(0)?this.delta_:-this.delta_,o=s.getView();mt(o,r,void 0,this.duration_),i.preventDefault(),e=!0}}return!e}}var Qt=Jt;class $t{constructor(t,e,i){this.decay_=t,this.minVelocity_=e,this.delay_=i,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,e){this.points_.push(t,e,Date.now())}end(){if(this.points_.length<6)return!1;const t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;let i=e-3;while(i>0&&this.points_[i+2]>t)i-=3;const n=this.points_[e+2]-this.points_[i+2];if(n<1e3/60)return!1;const s=this.points_[e]-this.points_[i],r=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(r,s),this.initialVelocity_=Math.sqrt(s*s+r*r)/n,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}var te=$t,ee=i("d580");class ie extends pt{constructor(t){t=t||{},super(t),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==t.maxDelta?t.maxDelta:1,this.duration_=void 0!==t.duration?t.duration:250,this.timeout_=void 0!==t.timeout?t.timeout:80,this.useAnchor_=void 0===t.useAnchor||t.useAnchor,this.constrainResolution_=void 0!==t.constrainResolution&&t.constrainResolution;const e=t.condition?t.condition:It;this.condition_=t.onFocusOnly?Et(Rt,e):e,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const t=this.getMap();if(!t)return;const e=t.getView();e.endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(t){if(!this.condition_(t))return!0;const e=t.type;if(e!==R["a"].WHEEL)return!0;const i=t.map,n=t.originalEvent;let s;if(n.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==R["a"].WHEEL&&(s=n.deltaY,X["b"]&&n.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(s/=X["a"]),n.deltaMode===WheelEvent.DOM_DELTA_LINE&&(s*=40)),0===s)return!1;this.lastDelta_=s;const r=Date.now();void 0===this.startTime_&&(this.startTime_=r),(!this.mode_||r-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(s)<4?"trackpad":"wheel");const o=i.getView();if("trackpad"===this.mode_&&!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(-s/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=r,!1;this.totalDelta_+=s;const a=Math.max(this.timeout_-(r-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),a),!1}handleWheelZoom_(t){const e=t.getView();e.getAnimating()&&e.cancelAnimations();let i=-Object(ee["b"])(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),mt(e,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}}var ne=ie;class se extends Ot{constructor(t){t=t||{};const e=t;e.stopDown||(e.stopDown=a["a"]),super(e),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==t.threshold?t.threshold:.3,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){let e=0;const i=this.targetPointers[0],n=this.targetPointers[1],s=Math.atan2(n.clientY-i.clientY,n.clientX-i.clientX);if(void 0!==this.lastAngle_){const t=s-this.lastAngle_;this.rotationDelta_+=t,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=t}this.lastAngle_=s;const r=t.map,o=r.getView();if(o.getConstraints().rotation===Ft["c"])return;const a=r.getViewport().getBoundingClientRect(),h=xt(this.targetPointers);h[0]-=a.left,h[1]-=a.top,this.anchor_=r.getCoordinateFromPixelInternal(h),this.rotating_&&(r.render(),o.adjustRotationInternal(e,this.anchor_))}handleUpEvent(t){if(this.targetPointers.length<2){const e=t.map,i=e.getView();return i.endInteraction(this.duration_),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const 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}}var re=se;class oe extends Ot{constructor(t){t=t||{};const e=t;e.stopDown||(e.stopDown=a["a"]),super(e),this.anchor_=null,this.duration_=void 0!==t.duration?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let e=1;const i=this.targetPointers[0],n=this.targetPointers[1],s=i.clientX-n.clientX,r=i.clientY-n.clientY,o=Math.sqrt(s*s+r*r);void 0!==this.lastDistance_&&(e=this.lastDistance_/o),this.lastDistance_=o;const a=t.map,h=a.getView();1!=e&&(this.lastScaleDelta_=e);const l=a.getViewport().getBoundingClientRect(),c=xt(this.targetPointers);c[0]-=l.left,c[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(c),a.render(),h.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){const e=t.map,i=e.getView(),n=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,n),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}}var ae=oe;function he(t){t=t||{};const e=new s["a"],i=new te(-.005,.05,100),n=void 0===t.altShiftDragRotate||t.altShiftDragRotate;n&&e.push(new Nt);const r=void 0===t.doubleClickZoom||t.doubleClickZoom;r&&e.push(new vt({delta:t.zoomDelta,duration:t.zoomDuration}));const o=void 0===t.dragPan||t.dragPan;o&&e.push(new Dt({onFocusOnly:t.onFocusOnly,kinetic:i}));const a=void 0===t.pinchRotate||t.pinchRotate;a&&e.push(new re);const h=void 0===t.pinchZoom||t.pinchZoom;h&&e.push(new ae({duration:t.zoomDuration}));const l=void 0===t.keyboard||t.keyboard;l&&(e.push(new qt),e.push(new Qt({delta:t.zoomDelta,duration:t.zoomDuration})));const c=void 0===t.mouseWheelZoom||t.mouseWheelZoom;c&&e.push(new ne({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration}));const u=void 0===t.shiftDragZoom||t.shiftDragZoom;return u&&e.push(new Ut({duration:t.zoomDuration})),e}var le=i("b91b"),ce=i("eee5");function ue(t){t instanceof d["a"]?t.setMapInternal(null):t instanceof P&&t.getLayers().forEach(ue)}function de(t,e){if(t instanceof d["a"])t.setMapInternal(e);else if(t instanceof P){const i=t.getLayers().getArray();for(let t=0,n=i.length;t<n;++t)de(i[t],e)}}class ge extends n["a"]{constructor(t){super(),t=t||{},this.on,this.once,this.un;const e=fe(t);this.renderComplete_,this.loaded_=!0,this.boundHandleBrowserEvent_=this.handleBrowserEvent.bind(this),this.maxTilesLoading_=void 0!==t.maxTilesLoading?t.maxTilesLoading:16,this.pixelRatio_=void 0!==t.pixelRatio?t.pixelRatio:X["a"],this.postRenderTimeoutHandle_,this.animationDelayKey_,this.animationDelay_=this.animationDelay_.bind(this),this.coordinateToPixelTransform_=Object(l["c"])(),this.pixelToCoordinateTransform_=Object(l["c"])(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.style.position="absolute",this.overlayContainer_.style.zIndex="0",this.overlayContainer_.style.width="100%",this.overlayContainer_.style.height="100%",this.overlayContainer_.style.pointerEvents="none",this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.style.position="absolute",this.overlayContainerStopEvent_.style.zIndex="0",this.overlayContainerStopEvent_.style.width="100%",this.overlayContainerStopEvent_.style.height="100%",this.overlayContainerStopEvent_.style.pointerEvents="none",this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",this.viewport_.appendChild(this.overlayContainerStopEvent_),this.mapBrowserEventHandler_=null,this.moveTolerance_=t.moveTolerance,this.keyboardEventTarget_=e.keyboardEventTarget,this.targetChangeHandlerKeys_=null,this.controls=e.controls||dt(),this.interactions=e.interactions||he({onFocusOnly:!0}),this.overlays_=e.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new Q(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(K.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(K.VIEW,this.handleViewChanged_),this.addChangeListener(K.SIZE,this.handleSizeChanged_),this.addChangeListener(K.TARGET,this.handleTargetChanged_),this.setProperties(e.values);const i=this;!t.view||t.view instanceof tt["a"]||t.view.then((function(t){i.setView(new tt["a"](t))})),this.controls.addEventListener(r["a"].ADD,function(t){t.element.setMap(this)}.bind(this)),this.controls.addEventListener(r["a"].REMOVE,function(t){t.element.setMap(null)}.bind(this)),this.interactions.addEventListener(r["a"].ADD,function(t){t.element.setMap(this)}.bind(this)),this.interactions.addEventListener(r["a"].REMOVE,function(t){t.element.setMap(null)}.bind(this)),this.overlays_.addEventListener(r["a"].ADD,function(t){this.addOverlayInternal_(t.element)}.bind(this)),this.overlays_.addEventListener(r["a"].REMOVE,function(t){const e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)}.bind(this)),this.controls.forEach(function(t){t.setMap(this)}.bind(this)),this.interactions.forEach(function(t){t.setMap(this)}.bind(this)),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){const e=this.getLayerGroup().getLayers();e.push(t)}handleLayerAdd_(t){de(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){const e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,e,i){if(!this.frameState_||!this.renderer_)return;const n=this.getCoordinateFromPixelInternal(t);i=void 0!==i?i:{};const s=void 0!==i.hitTolerance?i.hitTolerance:0,r=void 0!==i.layerFilter?i.layerFilter:a["b"],o=!1!==i.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,s,o,e,null,r,null)}getFeaturesAtPixel(t,e){const i=[];return this.forEachFeatureAtPixel(t,(function(t){i.push(t)}),e),i}getAllLayers(){const t=[];function e(i){i.forEach((function(i){i instanceof P?e(i.getLayers()):t.push(i)}))}return e(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;const i=this.getCoordinateFromPixelInternal(t);e=void 0!==e?e:{};const n=void 0!==e.layerFilter?e.layerFilter:a["b"],s=void 0!==e.hitTolerance?e.hitTolerance:0,r=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,s,r,n,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){const e=this.viewport_.getBoundingClientRect(),i="changedTouches"in t?t.changedTouches[0]:t;return[i.clientX-e.left,i.clientY-e.top]}getTarget(){return this.get(K.TARGET)}getTargetElement(){const t=this.getTarget();return void 0!==t?"string"===typeof t?document.getElementById(t):t:null}getCoordinateFromPixel(t){return Object(le["o"])(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){const e=this.frameState_;return e?Object(l["a"])(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){const e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(K.LAYERGROUP)}setLayers(t){const e=this.getLayerGroup();if(t instanceof s["a"])return void e.setLayers(t);const i=e.getLayers();i.clear(),i.extend(t)}getLayers(){const t=this.getLayerGroup().getLayers();return t}getLoadingOrNotReady(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,i=t.length;e<i;++e){const i=t[e];if(!i.visible)continue;const n=i.layer.getRenderer();if(n&&!n.ready)return!0;const s=i.layer.getSource();if(s&&s.loading)return!0}return!1}getPixelFromCoordinate(t){const e=Object(le["g"])(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)}getPixelFromCoordinateInternal(t){const e=this.frameState_;return e?Object(l["a"])(e.coordinateToPixelTransform,t.slice(0,2)):null}getRenderer(){return this.renderer_}getSize(){return this.get(K.SIZE)}getView(){return this.get(K.VIEW)}getViewport(){return this.viewport_}getOverlayContainer(){return this.overlayContainer_}getOverlayContainerStopEvent(){return this.overlayContainerStopEvent_}getOwnerDocument(){const t=this.getTargetElement();return t?t.ownerDocument:document}getTilePriority(t,e,i,n){return $(this.frameState_,t,e,i,n)}handleBrowserEvent(t,e){e=e||t.type;const i=new N(e,this,t);this.handleMapBrowserEvent(i)}handleMapBrowserEvent(t){if(!this.frameState_)return;const e=t.originalEvent,i=e.type;if(i===W.POINTERDOWN||i===R["a"].WHEEL||i===R["a"].KEYDOWN){const t=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():t,n=e.target;if(this.overlayContainerStopEvent_.contains(n)||!(i===t?t.documentElement:i).contains(n))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t)){const e=this.getInteractions().getArray().slice();for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.getMap()!==this||!n.getActive()||!this.getTargetElement())continue;const s=n.handleEvent(t);if(!s||t.propagationStopped)break}}}handlePostRender(){const t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let i=this.maxTilesLoading_,n=i;if(t){const e=t.viewHints;if(e[et["a"].ANIMATING]||e[et["a"].INTERACTING]){const e=Date.now()-t.time>8;i=e?0:8,n=e?0:2}}e.getTilesLoading()<i&&(e.reprioritize(),e.loadMoreTiles(i,n))}t&&this.renderer_&&!t.animate&&(!0===this.renderComplete_?(this.hasListener(v["a"].RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(v["a"].RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new F(V.LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new F(V.LOADSTART,this,t))));const i=this.postRenderFunctions_;for(let n=0,s=i.length;n<s;++n)i[n](this,t);i.length=0}handleSizeChanged_(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()}handleTargetChanged_(){if(this.mapBrowserEventHandler_){for(let t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)Object(O["c"])(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(R["a"].CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(R["a"].WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,Object(E["d"])(this.viewport_)}const t=this.getTargetElement();if(t){t.appendChild(this.viewport_),this.renderer_||(this.renderer_=new S(this)),this.mapBrowserEventHandler_=new z(this,this.moveTolerance_);for(const t in G)this.mapBrowserEventHandler_.addEventListener(G[t],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(R["a"].CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(R["a"].WHEEL,this.boundHandleBrowserEvent_,!!X["e"]&&{passive:!1});const e=this.getOwnerDocument().defaultView,i=this.keyboardEventTarget_?this.keyboardEventTarget_:t;this.targetChangeHandlerKeys_=[Object(O["a"])(i,R["a"].KEYDOWN,this.handleBrowserEvent,this),Object(O["a"])(i,R["a"].KEYPRESS,this.handleBrowserEvent,this),Object(O["a"])(e,R["a"].RESIZE,this.updateSize,this)]}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()}handleTileChange_(){this.render()}handleViewPropertyChanged_(){this.render()}handleViewChanged_(){this.viewPropertyListenerKey_&&(Object(O["c"])(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Object(O["c"])(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);const t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=Object(O["a"])(t,p["a"].PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Object(O["a"])(t,R["a"].CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()}handleLayerGroupChanged_(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(O["c"]),this.layerGroupPropertyListenerKeys_=null);const t=this.getLayerGroup();t&&(this.handleLayerAdd_(new M("addlayer",t)),this.layerGroupPropertyListenerKeys_=[Object(O["a"])(t,p["a"].PROPERTYCHANGE,this.render,this),Object(O["a"])(t,R["a"].CHANGE,this.render,this),Object(O["a"])(t,"addlayer",this.handleLayerAdd_,this),Object(O["a"])(t,"removelayer",this.handleLayerRemove_,this)]),this.render()}isRendered(){return!!this.frameState_}animationDelay_(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}renderSync(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()}redrawText(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,i=t.length;e<i;++e){const i=t[e].layer;i.hasRenderer()&&i.getRenderer().handleFontsChanged()}}render(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}removeControl(t){return this.getControls().remove(t)}removeInteraction(t){return this.getInteractions().remove(t)}removeLayer(t){const e=this.getLayerGroup().getLayers();return e.remove(t)}handleLayerRemove_(t){ue(t.layer)}removeOverlay(t){return this.getOverlays().remove(t)}renderFrame_(t){const e=this.getSize(),i=this.getView(),n=this.frameState_;let s=null;if(void 0!==e&&Object(ce["a"])(e)&&i&&i.isDef()){const n=i.getHints(this.frameState_?this.frameState_.viewHints:void 0),r=i.getState();if(s={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:Object(c["y"])(r.center,r.resolution,r.rotation,e),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:e,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:r,viewHints:n,wantedTiles:{},mapId:Object(h["b"])(this),renderTargets:{}},r.nextCenter&&r.nextResolution){const t=isNaN(r.nextRotation)?r.rotation:r.nextRotation;s.nextExtent=Object(c["y"])(r.nextCenter,r.nextResolution,t,e)}}if(this.frameState_=s,this.renderer_.renderFrame(s),s){if(s.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,s.postRenderFunctions),n){const t=!this.previousExtent_||!Object(c["H"])(this.previousExtent_)&&!Object(c["o"])(s.extent,this.previousExtent_);t&&(this.dispatchEvent(new F(V.MOVESTART,this,n)),this.previousExtent_=Object(c["l"])(this.previousExtent_))}const t=this.previousExtent_&&!s.viewHints[et["a"].ANIMATING]&&!s.viewHints[et["a"].INTERACTING]&&!Object(c["o"])(s.extent,this.previousExtent_);t&&(this.dispatchEvent(new F(V.MOVEEND,this,s)),Object(c["d"])(s.extent,this.previousExtent_))}this.dispatchEvent(new F(V.POSTRENDER,this,s)),this.renderComplete_=this.hasListener(V.LOADSTART)||this.hasListener(V.LOADEND)||this.hasListener(v["a"].RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout(()=>{this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(t){const e=this.getLayerGroup();e&&this.handleLayerRemove_(new M("removelayer",e)),this.set(K.LAYERGROUP,t)}setSize(t){this.set(K.SIZE,t)}setTarget(t){this.set(K.TARGET,t)}setView(t){if(!t||t instanceof tt["a"])return void this.set(K.VIEW,t);this.set(K.VIEW,new tt["a"]);const e=this;t.then((function(t){e.setView(new tt["a"](t))}))}updateSize(){const t=this.getTargetElement();let e=void 0;if(t){const i=getComputedStyle(t),n=t.offsetWidth-parseFloat(i["borderLeftWidth"])-parseFloat(i["paddingLeft"])-parseFloat(i["paddingRight"])-parseFloat(i["borderRightWidth"]),s=t.offsetHeight-parseFloat(i["borderTopWidth"])-parseFloat(i["paddingTop"])-parseFloat(i["paddingBottom"])-parseFloat(i["borderBottomWidth"]);isNaN(n)||isNaN(s)||(e=[n,s],!Object(ce["a"])(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&console.warn("No map visible because the map container's width or height are 0."))}this.setSize(e),this.updateViewportSize_()}updateViewportSize_(){const t=this.getView();if(t){let e=void 0;const i=getComputedStyle(this.viewport_);i.width&&i.height&&(e=[parseInt(i.width,10),parseInt(i.height,10)]),t.setViewportSize(e)}}}function fe(t){let e=null;void 0!==t.keyboardEventTarget&&(e="string"===typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);const i={},n=t.layers&&"function"===typeof t.layers.getLayers?t.layers:new P({layers:t.layers});let r,o,a;return i[K.LAYERGROUP]=n,i[K.TARGET]=t.target,i[K.VIEW]=t.view instanceof tt["a"]?t.view:new tt["a"],void 0!==t.controls&&(Array.isArray(t.controls)?r=new s["a"](t.controls.slice()):(Object(j["a"])("function"===typeof t.controls.getArray,47),r=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?o=new s["a"](t.interactions.slice()):(Object(j["a"])("function"===typeof t.interactions.getArray,48),o=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?a=new s["a"](t.overlays.slice()):(Object(j["a"])("function"===typeof t.overlays.getArray,49),a=t.overlays):a=new s["a"],{controls:r,interactions:o,keyboardEventTarget:e,overlays:a,values:i}}e["a"]=ge},fc9b:function(t,e,i){"use strict";var n=i("aaaf"),s=i("d3f4"),r=i.n(s),o=i("019e"),a=i("6d50"),h=i("e93b"),l=i("164b"),c=i("6780"),u=i("c33f"),d=i("88bb");function g(t){const e=new o["b"]({fill:f(t,""),stroke:_(t,""),text:m(t),image:p(t)});return e}function f(t,e){const i=t[e+"fill-color"];if(i)return new h["a"]({color:i})}function _(t,e){const i=t[e+"stroke-width"],n=t[e+"stroke-color"];if(i||n)return new u["a"]({width:i,color:n,lineCap:t[e+"stroke-line-cap"],lineJoin:t[e+"stroke-line-join"],lineDash:t[e+"stroke-line-dash"],lineDashOffset:t[e+"stroke-line-dash-offset"],miterLimit:t[e+"stroke-miter-limit"]})}function m(t){const e=t["text-value"];if(!e)return;const i=new d["a"]({text:e,font:t["text-font"],maxAngle:t["text-max-angle"],offsetX:t["text-offset-x"],offsetY:t["text-offset-y"],overflow:t["text-overflow"],placement:t["text-placement"],scale:t["text-scale"],rotateWithView:t["text-rotate-with-view"],rotation:t["text-rotation"],textAlign:t["text-align"],justify:t["text-justify"],textBaseline:t["text-baseline"],padding:t["text-padding"],fill:f(t,"text-"),backgroundFill:f(t,"text-background-"),stroke:_(t,"text-"),backgroundStroke:_(t,"text-background-")});return i}function p(t){const e=t["icon-src"],i=t["icon-img"];if(e||i){const n=new l["a"]({src:e,img:i,imgSize:t["icon-img-size"],anchor:t["icon-anchor"],anchorOrigin:t["icon-anchor-origin"],anchorXUnits:t["icon-anchor-x-units"],anchorYUnits:t["icon-anchor-y-units"],color:t["icon-color"],crossOrigin:t["icon-cross-origin"],offset:t["icon-offset"],displacement:t["icon-displacement"],opacity:t["icon-opacity"],scale:t["icon-scale"],rotation:t["icon-rotation"],rotateWithView:t["icon-rotate-with-view"],size:t["icon-size"],declutterMode:t["icon-declutter-mode"]});return n}const n=t["shape-points"];if(n){const e="shape-",i=new c["a"]({points:n,fill:f(t,e),stroke:_(t,e),radius:t["shape-radius"],radius1:t["shape-radius1"],radius2:t["shape-radius2"],angle:t["shape-angle"],displacement:t["shape-displacement"],rotation:t["shape-rotation"],rotateWithView:t["shape-rotate-with-view"],scale:t["shape-scale"],declutterMode:t["shape-declutter-mode"]});return i}const s=t["circle-radius"];if(s){const e="circle-",i=new a["a"]({radius:s,fill:f(t,e),stroke:_(t,e),displacement:t["circle-displacement"],scale:t["circle-scale"],rotation:t["circle-rotation"],rotateWithView:t["circle-rotate-with-view"],declutterMode:t["circle-declutter-mode"]});return i}}const y={RENDER_ORDER:"renderOrder"};class v extends n["a"]{constructor(t){t=t||{};const e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=void 0!==t.declutter&&t.declutter,this.renderBuffer_=void 0!==t.renderBuffer?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.updateWhileInteracting_=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(y.RENDER_ORDER)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t){t.declutterTree||(t.declutterTree=new r.a(9)),this.getRenderer().renderDeclutter(t)}setRenderOrder(t){this.set(y.RENDER_ORDER,t)}setStyle(t){let e;if(void 0===t)e=o["a"];else if(null===t)e=null;else if("function"===typeof t)e=t;else if(t instanceof o["b"])e=t;else if(Array.isArray(t)){const i=t.length,n=new Array(i);for(let e=0;e<i;++e){const i=t[e];i instanceof o["b"]?n[e]=i:n[e]=g(i)}e=n}else e=g(t);this.style_=e,this.styleFunction_=null===t?void 0:Object(o["c"])(this.style_),this.changed()}}var b=v;const x={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},O=[x.FILL],E=[x.STROKE],C=[x.BEGIN_PATH],S=[x.CLOSE_PATH];var R=x,I=i("94d7");class w{drawCustom(t,e,i,n){}drawGeometry(t){}setStyle(t){}drawCircle(t,e){}drawFeature(t,e){}drawGeometryCollection(t,e){}drawLineString(t,e){}drawMultiLineString(t,e){}drawMultiPoint(t,e){}drawMultiPolygon(t,e){}drawPoint(t,e){}drawPolygon(t,e){}drawText(t,e){}setFillStrokeStyle(t,e){}setImageStyle(t,e){}setTextStyle(t,e){}}var j=w,T=i("c812"),M=i("93f7"),L=i("8090"),A=i("b485"),P=i("4f7f");class D extends j{constructor(t,e,i,n){super(),this.tolerance=t,this.maxExtent=e,this.pixelRatio=n,this.maxLineWidth=0,this.resolution=i,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.tmpCoordinate_=[],this.hitDetectionInstructions=[],this.state={}}applyPixelRatio(t){const e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))}appendFlatPointCoordinates(t,e){const i=this.getBufferedMaxExtent(),n=this.tmpCoordinate_,s=this.coordinates;let r=s.length;for(let o=0,a=t.length;o<a;o+=e)n[0]=t[o],n[1]=t[o+1],Object(M["f"])(i,n)&&(s[r++]=n[0],s[r++]=n[1]);return r}appendFlatLineCoordinates(t,e,i,n,s,r){const o=this.coordinates;let a=o.length;const h=this.getBufferedMaxExtent();r&&(e+=n);let l=t[e],c=t[e+1];const u=this.tmpCoordinate_;let d,g,f,_=!0;for(d=e+n;d<i;d+=n)u[0]=t[d],u[1]=t[d+1],f=Object(M["i"])(h,u),f!==g?(_&&(o[a++]=l,o[a++]=c,_=!1),o[a++]=u[0],o[a++]=u[1]):f===I["a"].INTERSECTING?(o[a++]=u[0],o[a++]=u[1],_=!1):_=!0,l=u[0],c=u[1],g=f;return(s&&_||d===e+n)&&(o[a++]=l,o[a++]=c),a}drawCustomCoordinates_(t,e,i,n,s){for(let r=0,o=i.length;r<o;++r){const o=i[r],a=this.appendFlatLineCoordinates(t,e,o,n,!1,!1);s.push(a),e=o}return e}drawCustom(t,e,i,n){this.beginGeometry(t,e);const s=t.getType(),r=t.getStride(),o=this.coordinates.length;let a,h,l,c,u;switch(s){case"MultiPolygon":a=t.getOrientedFlatCoordinates(),c=[];const e=t.getEndss();u=0;for(let t=0,i=e.length;t<i;++t){const i=[];u=this.drawCustomCoordinates_(a,u,e[t],r,i),c.push(i)}this.instructions.push([R.CUSTOM,o,c,t,i,P["c"]]),this.hitDetectionInstructions.push([R.CUSTOM,o,c,t,n||i,P["c"]]);break;case"Polygon":case"MultiLineString":l=[],a="Polygon"==s?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),u=this.drawCustomCoordinates_(a,0,t.getEnds(),r,l),this.instructions.push([R.CUSTOM,o,l,t,i,P["b"]]),this.hitDetectionInstructions.push([R.CUSTOM,o,l,t,n||i,P["b"]]);break;case"LineString":case"Circle":a=t.getFlatCoordinates(),h=this.appendFlatLineCoordinates(a,0,a.length,r,!1,!1),this.instructions.push([R.CUSTOM,o,h,t,i,P["a"]]),this.hitDetectionInstructions.push([R.CUSTOM,o,h,t,n||i,P["a"]]);break;case"MultiPoint":a=t.getFlatCoordinates(),h=this.appendFlatPointCoordinates(a,r),h>o&&(this.instructions.push([R.CUSTOM,o,h,t,i,P["a"]]),this.hitDetectionInstructions.push([R.CUSTOM,o,h,t,n||i,P["a"]]));break;case"Point":a=t.getFlatCoordinates(),this.coordinates.push(a[0],a[1]),h=this.coordinates.length,this.instructions.push([R.CUSTOM,o,h,t,i]),this.hitDetectionInstructions.push([R.CUSTOM,o,h,t,n||i]);break;default:}this.endGeometry(e)}beginGeometry(t,e){this.beginGeometryInstruction1_=[R.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[R.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const t=this.hitDetectionInstructions;let e;t.reverse();const i=t.length;let n,s,r=-1;for(e=0;e<i;++e)n=t[e],s=n[0],s==R.END_GEOMETRY?r=e:s==R.BEGIN_GEOMETRY&&(n[2]=e,Object(A["g"])(this.hitDetectionInstructions,r,e),r=-1)}setFillStrokeStyle(t,e){const i=this.state;if(t){const e=t.getColor();i.fillStyle=Object(T["a"])(e||L["b"])}else i.fillStyle=void 0;if(e){const t=e.getColor();i.strokeStyle=Object(T["a"])(t||L["k"]);const n=e.getLineCap();i.lineCap=void 0!==n?n:L["d"];const s=e.getLineDash();i.lineDash=s?s.slice():L["e"];const r=e.getLineDashOffset();i.lineDashOffset=r||L["f"];const o=e.getLineJoin();i.lineJoin=void 0!==o?o:L["g"];const a=e.getWidth();i.lineWidth=void 0!==a?a:L["h"];const h=e.getMiterLimit();i.miterLimit=void 0!==h?h:L["i"],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}createFill(t){const e=t.fillStyle,i=[R.SET_FILL_STYLE,e];return"string"!==typeof e&&i.push(!0),i}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[R.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){const i=t.fillStyle;"string"===typeof i&&t.currentFillStyle==i||(void 0!==i&&this.instructions.push(e.call(this,t)),t.currentFillStyle=i)}updateStrokeStyle(t,e){const i=t.strokeStyle,n=t.lineCap,s=t.lineDash,r=t.lineDashOffset,o=t.lineJoin,a=t.lineWidth,h=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=n||s!=t.currentLineDash&&!Object(A["b"])(t.currentLineDash,s)||t.currentLineDashOffset!=r||t.currentLineJoin!=o||t.currentLineWidth!=a||t.currentMiterLimit!=h)&&(void 0!==i&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=n,t.currentLineDash=s,t.currentLineDashOffset=r,t.currentLineJoin=o,t.currentLineWidth=a,t.currentMiterLimit=h)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const e=[R.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(M["d"])(this.maxExtent),this.maxLineWidth>0)){const t=this.resolution*(this.maxLineWidth+1)/2;Object(M["c"])(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}}var F=D;class k extends F{constructor(t,e,i,n){super(t,e,i,n),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);const i=t.getFlatCoordinates(),n=t.getStride(),s=this.coordinates.length,r=this.appendFlatPointCoordinates(i,n);this.instructions.push([R.DRAW_IMAGE,s,r,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([R.DRAW_IMAGE,s,r,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}drawMultiPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);const i=t.getFlatCoordinates(),n=t.getStride(),s=this.coordinates.length,r=this.appendFlatPointCoordinates(i,n);this.instructions.push([R.DRAW_IMAGE,s,r,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([R.DRAW_IMAGE,s,r,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}finish(){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,super.finish()}setImageStyle(t,e){const i=t.getAnchor(),n=t.getSize(),s=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=n[1],this.opacity_=t.getOpacity(),this.originX_=s[0],this.originY_=s[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=n[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}}var N=k;class G extends F{constructor(t,e,i,n){super(t,e,i,n)}drawFlatCoordinates_(t,e,i,n){const s=this.coordinates.length,r=this.appendFlatLineCoordinates(t,e,i,n,!1,!1),o=[R.MOVE_TO_LINE_TO,s,r];return this.instructions.push(o),this.hitDetectionInstructions.push(o),i}drawLineString(t,e){const i=this.state,n=i.strokeStyle,s=i.lineWidth;if(void 0===n||void 0===s)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([R.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,L["e"],L["f"]],C);const r=t.getFlatCoordinates(),o=t.getStride();this.drawFlatCoordinates_(r,0,r.length,o),this.hitDetectionInstructions.push(E),this.endGeometry(e)}drawMultiLineString(t,e){const i=this.state,n=i.strokeStyle,s=i.lineWidth;if(void 0===n||void 0===s)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([R.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],C);const r=t.getEnds(),o=t.getFlatCoordinates(),a=t.getStride();let h=0;for(let l=0,c=r.length;l<c;++l)h=this.drawFlatCoordinates_(o,h,r[l],a);this.hitDetectionInstructions.push(E),this.endGeometry(e)}finish(){const t=this.state;return void 0!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(E),this.reverseHitDetectionInstructions(),this.state=null,super.finish()}applyStroke(t){void 0!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(E),t.lastStroke=this.coordinates.length),t.lastStroke=0,super.applyStroke(t),this.instructions.push(C)}}var W=G,B=i("d469");class X extends F{constructor(t,e,i,n){super(t,e,i,n)}drawFlatCoordinatess_(t,e,i,n){const s=this.state,r=void 0!==s.fillStyle,o=void 0!==s.strokeStyle,a=i.length;this.instructions.push(C),this.hitDetectionInstructions.push(C);for(let h=0;h<a;++h){const s=i[h],r=this.coordinates.length,a=this.appendFlatLineCoordinates(t,e,s,n,!0,!o),l=[R.MOVE_TO_LINE_TO,r,a];this.instructions.push(l),this.hitDetectionInstructions.push(l),o&&(this.instructions.push(S),this.hitDetectionInstructions.push(S)),e=s}return r&&(this.instructions.push(O),this.hitDetectionInstructions.push(O)),o&&(this.instructions.push(E),this.hitDetectionInstructions.push(E)),e}drawCircle(t,e){const i=this.state,n=i.fillStyle,s=i.strokeStyle;if(void 0===n&&void 0===s)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([R.SET_FILL_STYLE,L["b"]]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([R.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);const r=t.getFlatCoordinates(),o=t.getStride(),a=this.coordinates.length;this.appendFlatLineCoordinates(r,0,r.length,o,!1,!1);const h=[R.CIRCLE,a];this.instructions.push(C,h),this.hitDetectionInstructions.push(C,h),void 0!==i.fillStyle&&(this.instructions.push(O),this.hitDetectionInstructions.push(O)),void 0!==i.strokeStyle&&(this.instructions.push(E),this.hitDetectionInstructions.push(E)),this.endGeometry(e)}drawPolygon(t,e){const i=this.state,n=i.fillStyle,s=i.strokeStyle;if(void 0===n&&void 0===s)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([R.SET_FILL_STYLE,L["b"]]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([R.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);const r=t.getEnds(),o=t.getOrientedFlatCoordinates(),a=t.getStride();this.drawFlatCoordinatess_(o,0,r,a),this.endGeometry(e)}drawMultiPolygon(t,e){const i=this.state,n=i.fillStyle,s=i.strokeStyle;if(void 0===n&&void 0===s)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([R.SET_FILL_STYLE,L["b"]]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([R.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);const r=t.getEndss(),o=t.getOrientedFlatCoordinates(),a=t.getStride();let h=0;for(let l=0,c=r.length;l<c;++l)h=this.drawFlatCoordinatess_(o,h,r[l],a);this.endGeometry(e)}finish(){this.reverseHitDetectionInstructions(),this.state=null;const t=this.tolerance;if(0!==t){const e=this.coordinates;for(let i=0,n=e.length;i<n;++i)e[i]=Object(B["e"])(e[i],t)}return super.finish()}setFillStrokeStyles_(){const t=this.state,e=t.fillStyle;void 0!==e&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)}}var Y=X,z=i("2fc48");function V(t,e,i,n,s){let r,o,a,h,l,c,u,d,g,f,_=i,m=i,p=0,y=0,v=i;for(o=i;o<n;o+=s){const i=e[o],n=e[o+1];void 0!==l&&(g=i-l,f=n-c,h=Math.sqrt(g*g+f*f),void 0!==u&&(y+=a,r=Math.acos((u*g+d*f)/(a*h)),r>t&&(y>p&&(p=y,_=v,m=o),y=0,v=o-s)),a=h,u=g,d=f),l=i,c=n}return y+=h,y>p?[v,o]:[_,m]}const K={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};class U extends F{constructor(t,e,i,n){super(t,e,i,n),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterImageWithText_=void 0}finish(){const t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,e){const i=this.textFillState_,n=this.textStrokeState_,s=this.textState_;if(""===this.text_||!s||!i&&!n)return;const r=this.coordinates;let o=r.length;const a=t.getType();let h=null,l=t.getStride();if("line"!==s.placement||"LineString"!=a&&"MultiLineString"!=a&&"Polygon"!=a&&"MultiPolygon"!=a){let i=s.overflow?null:[];switch(a){case"Point":case"MultiPoint":h=t.getFlatCoordinates();break;case"LineString":h=t.getFlatMidpoint();break;case"Circle":h=t.getCenter();break;case"MultiLineString":h=t.getFlatMidpoints(),l=2;break;case"Polygon":h=t.getFlatInteriorPoint(),s.overflow||i.push(h[2]/this.resolution),l=3;break;case"MultiPolygon":const e=t.getFlatInteriorPoints();h=[];for(let t=0,n=e.length;t<n;t+=3)s.overflow||i.push(e[t+2]/this.resolution),h.push(e[t],e[t+1]);if(0===h.length)return;l=2;break;default:}const n=this.appendFlatPointCoordinates(h,l);if(n===o)return;if(i&&(n-o)/2!==h.length/l){let t=o/2;i=i.filter((e,i)=>{const n=r[2*(t+i)]===h[i*l]&&r[2*(t+i)+1]===h[i*l+1];return n||--t,n})}this.saveTextStates_(),(s.backgroundFill||s.backgroundStroke)&&(this.setFillStrokeStyle(s.backgroundFill,s.backgroundStroke),s.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),s.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);let c=s.padding;if(c!=L["j"]&&(s.scale[0]<0||s.scale[1]<0)){let t=s.padding[0],e=s.padding[1],i=s.padding[2],n=s.padding[3];s.scale[0]<0&&(e=-e,n=-n),s.scale[1]<0&&(t=-t,i=-i),c=[t,e,i,n]}const u=this.pixelRatio;this.instructions.push([R.DRAW_IMAGE,o,n,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,c==L["j"]?L["j"]:c.map((function(t){return t*u})),!!s.backgroundFill,!!s.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,i]);const d=1/u;this.hitDetectionInstructions.push([R.DRAW_IMAGE,o,n,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[d,d],NaN,void 0,this.declutterImageWithText_,c,!!s.backgroundFill,!!s.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,i]),this.endGeometry(e)}else{if(!Object(M["F"])(this.getBufferedMaxExtent(),t.getExtent()))return;let i;if(h=t.getFlatCoordinates(),"LineString"==a)i=[h.length];else if("MultiLineString"==a)i=t.getEnds();else if("Polygon"==a)i=t.getEnds().slice(0,1);else if("MultiPolygon"==a){const e=t.getEndss();i=[];for(let t=0,n=e.length;t<n;++t)i.push(e[t][0])}this.beginGeometry(t,e);const n=s.textAlign;let c,u=0;for(let t=0,e=i.length;t<e;++t){if(void 0==n){const e=V(s.maxAngle,h,u,i[t],l);u=e[0],c=e[1]}else c=i[t];for(let t=u;t<c;t+=l)r.push(h[t],h[t+1]);const e=r.length;u=i[t],this.drawChars_(o,e),o=e}this.endGeometry(e)}}saveTextStates_(){const 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}));const s=this.textKey_;s in this.textStates||(this.textStates[s]={font:e.font,textAlign:e.textAlign||L["l"],justify:e.justify,textBaseline:e.textBaseline||L["m"],scale:e.scale});const r=this.fillKey_;i&&(r in this.fillStates||(this.fillStates[r]={fillStyle:i.fillStyle}))}drawChars_(t,e){const i=this.textStrokeState_,n=this.textState_,s=this.strokeKey_,r=this.textKey_,o=this.fillKey_;this.saveTextStates_();const a=this.pixelRatio,h=K[n.textBaseline],l=this.textOffsetY_*a,c=this.text_,u=i?i.lineWidth*Math.abs(n.scale[0])/2:0;this.instructions.push([R.DRAW_CHARS,t,e,h,n.overflow,o,n.maxAngle,a,l,s,u*a,c,r,1]),this.hitDetectionInstructions.push([R.DRAW_CHARS,t,e,h,n.overflow,o,n.maxAngle,1,l,s,u,c,r,1/a])}setTextStyle(t,e){let i,n,s;if(t){const e=t.getFill();e?(n=this.textFillState_,n||(n={},this.textFillState_=n),n.fillStyle=Object(T["a"])(e.getColor()||L["b"])):(n=null,this.textFillState_=n);const r=t.getStroke();if(r){s=this.textStrokeState_,s||(s={},this.textStrokeState_=s);const t=r.getLineDash(),e=r.getLineDashOffset(),i=r.getWidth(),n=r.getMiterLimit();s.lineCap=r.getLineCap()||L["d"],s.lineDash=t?t.slice():L["e"],s.lineDashOffset=void 0===e?L["f"]:e,s.lineJoin=r.getLineJoin()||L["g"],s.lineWidth=void 0===i?L["h"]:i,s.miterLimit=void 0===n?L["i"]:n,s.strokeStyle=Object(T["a"])(r.getColor()||L["k"])}else s=null,this.textStrokeState_=s;i=this.textState_;const o=t.getFont()||L["c"];Object(L["q"])(o);const a=t.getScaleArray();i.overflow=t.getOverflow(),i.font=o,i.maxAngle=t.getMaxAngle(),i.placement=t.getPlacement(),i.textAlign=t.getTextAlign(),i.justify=t.getJustify(),i.textBaseline=t.getTextBaseline()||L["m"],i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||L["j"],i.scale=void 0===a?[1,1]:a;const h=t.getOffsetX(),l=t.getOffsetY(),c=t.getRotateWithView(),u=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===h?0:h,this.textOffsetY_=void 0===l?0:l,this.textRotateWithView_=void 0!==c&&c,this.textRotation_=void 0===u?0:u,this.strokeKey_=s?("string"==typeof s.strokeStyle?s.strokeStyle:Object(z["b"])(s.strokeStyle))+s.lineCap+s.lineDashOffset+"|"+s.lineWidth+s.lineJoin+s.miterLimit+"["+s.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?")+(i.justify||"?")+(i.textBaseline||"?"),this.fillKey_=n?"string"==typeof n.fillStyle?n.fillStyle:"|"+Object(z["b"])(n.fillStyle):""}else this.text_="";this.declutterImageWithText_=e}}var H=U;const Z={Circle:Y,Default:F,Image:N,LineString:W,Polygon:Y,Text:H};class q{constructor(t,e,i,n){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=n,this.resolution_=i,this.buildersByZIndex_={}}finish(){const t={};for(const e in this.buildersByZIndex_){t[e]=t[e]||{};const i=this.buildersByZIndex_[e];for(const n in i){const s=i[n].finish();t[e][n]=s}}return t}getBuilder(t,e){const i=void 0!==t?t.toString():"0";let n=this.buildersByZIndex_[i];void 0===n&&(n={},this.buildersByZIndex_[i]=n);let s=n[e];if(void 0===s){const t=Z[e];s=new t(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),n[e]=s}return s}}var J=q,Q=i("5df6"),$=i("ac76"),tt=i("d580"),et=i("69c7");function it(t,e,i,n,s,r,o,a,h,l,c,u){let d=t[e],g=t[e+1],f=0,_=0,m=0,p=0;function y(){f=d,_=g,e+=n,d=t[e],g=t[e+1],p+=m,m=Math.sqrt((d-f)*(d-f)+(g-_)*(g-_))}do{y()}while(e<i-n&&p+m<r);let v=0===m?0:(r-p)/m;const b=Object(tt["d"])(f,d,v),x=Object(tt["d"])(_,g,v),O=e-n,E=p,C=r+a*h(l,s,c);while(e<i-n&&p+m<C)y();v=0===m?0:(C-p)/m;const S=Object(tt["d"])(f,d,v),R=Object(tt["d"])(_,g,v);let I;if(u){const t=[b,x,S,R];Object(et["a"])(t,0,4,2,u,t,t),I=t[0]>t[2]}else I=b>S;const w=Math.PI,j=[],T=O+n===e;let M;if(e=O,m=0,p=E,d=t[e],g=t[e+1],T){y(),M=Math.atan2(g-_,d-f),I&&(M+=M>0?-w:w);const t=(S+b)/2,e=(R+x)/2;return j[0]=[t,e,(C-r)/2,M,s],j}s=s.replace(/\n/g," ");for(let L=0,A=s.length;L<A;){y();let t=Math.atan2(g-_,d-f);if(I&&(t+=t>0?-w:w),void 0!==M){let e=t-M;if(e+=e>w?-2*w:e<-w?2*w:0,Math.abs(e)>o)return null}M=t;const u=L;let b=0;for(;L<A;++L){const t=I?A-L-1:L,o=a*h(l,s[t],c);if(e+n<i&&p+m<r+b+o/2)break;b+=o}if(L===u)continue;const x=I?s.substring(A-u,A-L):s.substring(u,L);v=0===m?0:(r+b/2-p)/m;const O=Object(tt["d"])(f,d,v),E=Object(tt["d"])(_,g,v);j.push([O,E,b/2,t,x]),r+=b}return j}var nt=i("1c65");const st=Object(M["j"])(),rt=[],ot=[],at=[],ht=[];function lt(t){return t[3].declutterBox}const ct=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 ut(t,e){return"start"!==e&&"end"!==e||ct.test(t)||(e="start"===e?"left":"right"),K[e]}function dt(t,e,i){return i>0&&t.push("\n",""),t.push(e,""),t}class gt{constructor(t,e,i,n){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=Object($["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_={}}createLabel(t,e,i,n){const s=t+e+i+n;if(this.labels_[s])return this.labels_[s];const r=n?this.strokeStates[n]:null,o=i?this.fillStates[i]:null,a=this.textStates[e],h=this.pixelRatio,l=[a.scale[0]*h,a.scale[1]*h],c=Array.isArray(t),u=a.justify?K[a.justify]:ut(Array.isArray(t)?t[0]:t,a.textAlign||L["l"]),d=n&&r.lineWidth?r.lineWidth:0,g=c?t:t.split("\n").reduce(dt,[]),{width:f,height:_,widths:m,heights:p,lineWidths:y}=Object(L["o"])(a,g),v=f+d,b=[],x=(v+2)*l[0],O=(_+d)*l[1],E={width:x<0?Math.floor(x):Math.ceil(x),height:O<0?Math.floor(O):Math.ceil(O),contextInstructions:b};1==l[0]&&1==l[1]||b.push("scale",l),n&&(b.push("strokeStyle",r.strokeStyle),b.push("lineWidth",d),b.push("lineCap",r.lineCap),b.push("lineJoin",r.lineJoin),b.push("miterLimit",r.miterLimit),b.push("setLineDash",[r.lineDash]),b.push("lineDashOffset",r.lineDashOffset)),i&&b.push("fillStyle",o.fillStyle),b.push("textBaseline","middle"),b.push("textAlign","center");const C=.5-u;let S=u*v+C*d;const R=[],I=[];let w,j=0,T=0,M=0,A=0;for(let L=0,P=g.length;L<P;L+=2){const t=g[L];if("\n"===t){T+=j,j=0,S=u*v+C*d,++A;continue}const e=g[L+1]||a.font;e!==w&&(n&&R.push("font",e),i&&I.push("font",e),w=e),j=Math.max(j,p[M]);const s=[t,S+C*m[M]+u*(m[M]-y[A]),.5*(d+j)+T];S+=m[M],n&&R.push("strokeText",s),i&&I.push("fillText",s),++M}return Array.prototype.push.apply(b,R),Array.prototype.push.apply(b,I),this.labels_[s]=E,E}replayTextBackground_(t,e,i,n,s,r,o){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,i),t.lineTo.apply(t,n),t.lineTo.apply(t,s),t.lineTo.apply(t,e),r&&(this.alignFill_=r[2],this.fill_(t)),o&&(this.setStrokeStyle_(t,o),t.stroke())}calculateImageOrLabelDimensions_(t,e,i,n,s,r,o,a,h,l,c,u,d,g,f,_){o*=u[0],a*=u[1];let m=i-o,p=n-a;const y=s+h>t?t-h:s,v=r+l>e?e-l:r,b=g[3]+y*u[0]+g[1],x=g[0]+v*u[1]+g[2],O=m-g[3],E=p-g[0];let C;return(f||0!==c)&&(rt[0]=O,ht[0]=O,rt[1]=E,ot[1]=E,ot[0]=O+b,at[0]=ot[0],at[1]=E+x,ht[1]=at[1]),0!==c?(C=Object($["b"])(Object($["c"])(),i,n,1,1,c,-i,-n),Object($["a"])(C,rt),Object($["a"])(C,ot),Object($["a"])(C,at),Object($["a"])(C,ht),Object(M["k"])(Math.min(rt[0],ot[0],at[0],ht[0]),Math.min(rt[1],ot[1],at[1],ht[1]),Math.max(rt[0],ot[0],at[0],ht[0]),Math.max(rt[1],ot[1],at[1],ht[1]),st)):Object(M["k"])(Math.min(O,O+b),Math.min(E,E+x),Math.max(O,O+b),Math.max(E,E+x),st),d&&(m=Math.round(m),p=Math.round(p)),{drawImageX:m,drawImageY:p,drawImageW:y,drawImageH:v,originX:h,originY:l,declutterBox:{minX:st[0],minY:st[1],maxX:st[2],maxY:st[3],value:_},canvasTransform:C,scale:u}}replayImageOrLabel_(t,e,i,n,s,r,o){const a=!(!r&&!o),h=n.declutterBox,l=t.canvas,c=o?o[2]*n.scale[0]/2:0,u=h.minX-c<=l.width/e&&h.maxX+c>=0&&h.minY-c<=l.height/e&&h.maxY+c>=0;return u&&(a&&this.replayTextBackground_(t,rt,ot,at,ht,r,o),Object(L["n"])(t,n.canvasTransform,s,i,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0}fill_(t){if(this.alignFill_){const e=Object($["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()}setStrokeStyle_(t,e){t["strokeStyle"]=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.lineDashOffset=e[7],t.setLineDash(e[6])}drawLabelWithPointPlacement_(t,e,i,n){const s=this.textStates[e],r=this.createLabel(t,e,n,i),o=this.strokeStates[i],a=this.pixelRatio,h=ut(Array.isArray(t)?t[0]:t,s.textAlign||L["l"]),l=K[s.textBaseline||L["m"]],c=o&&o.lineWidth?o.lineWidth:0,u=r.width/a-2*s.scale[0],d=h*u+2*(.5-h)*c,g=l*r.height/a+2*(.5-l)*c;return{label:r,anchorX:d,anchorY:g}}execute_(t,e,i,n,s,r,o,a){let h;this.pixelCoordinates_&&Object(A["b"])(i,this.renderedTransform_)?h=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),h=Object(et["c"])(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),Object($["f"])(this.renderedTransform_,i));let l=0;const c=n.length;let u,d,g,f,_,m,p,y,v,b,x,O,E=0,C=0,S=0,I=null,w=null;const j=this.coordinateCache_,T=this.viewRotation_,P=Math.round(1e12*Math.atan2(-i[1],i[0]))/1e12,D={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:T},F=this.instructions!=n||this.overlaps?0:200;let k,N,G,W;while(l<c){const i=n[l],c=i[0];switch(c){case R.BEGIN_GEOMETRY:k=i[1],W=i[3],k.getGeometry()?void 0===o||Object(M["F"])(o,W.getExtent())?++l:l=i[2]+1:l=i[2];break;case R.BEGIN_PATH:C>F&&(this.fill_(t),C=0),S>F&&(t.stroke(),S=0),C||S||(t.beginPath(),f=NaN,_=NaN),++l;break;case R.CIRCLE:E=i[1];const n=h[E],c=h[E+1],A=h[E+2],B=h[E+3],X=A-n,Y=B-c,z=Math.sqrt(X*X+Y*Y);t.moveTo(n+z,c),t.arc(n,c,z,0,2*Math.PI,!0),++l;break;case R.CLOSE_PATH:t.closePath(),++l;break;case R.CUSTOM:E=i[1],u=i[2];const V=i[3],U=i[4],H=6==i.length?i[5]:void 0;D.geometry=V,D.feature=k,l in j||(j[l]=[]);const Z=j[l];H?H(h,E,u,2,Z):(Z[0]=h[E],Z[1]=h[E+1],Z.length=2),U(Z,D),++l;break;case R.DRAW_IMAGE:E=i[1],u=i[2],y=i[3],d=i[4],g=i[5];let q=i[6];const J=i[7],Q=i[8],$=i[9],tt=i[10];let et=i[11];const st=i[12];let rt=i[13];const ot=i[14],at=i[15];if(!y&&i.length>=20){v=i[19],b=i[20],x=i[21],O=i[22];const t=this.drawLabelWithPointPlacement_(v,b,x,O);y=t.label,i[3]=y;const e=i[23];d=(t.anchorX-e)*this.pixelRatio,i[4]=d;const n=i[24];g=(t.anchorY-n)*this.pixelRatio,i[5]=g,q=y.height,i[6]=q,rt=y.width,i[13]=rt}let ht,ct,ut,dt;i.length>25&&(ht=i[25]),i.length>17?(ct=i[16],ut=i[17],dt=i[18]):(ct=L["j"],ut=!1,dt=!1),tt&&P?et+=T:tt||P||(et-=T);let gt=0;for(;E<u;E+=2){if(ht&&ht[gt++]<rt/this.pixelRatio)continue;const i=this.calculateImageOrLabelDimensions_(y.width,y.height,h[E],h[E+1],rt,q,d,g,Q,$,et,st,s,ct,ut||dt,k),n=[t,e,y,i,J,ut?I:null,dt?w:null];if(a){if("none"===ot)continue;if("obstacle"===ot){a.insert(i.declutterBox);continue}{let t,e;if(at){const i=u-E;if(!at[i]){at[i]=n;continue}if(t=at[i],delete at[i],e=lt(t),a.collides(e))continue}if(a.collides(i.declutterBox))continue;t&&(a.insert(e),this.replayImageOrLabel_.apply(this,t)),a.insert(i.declutterBox)}}this.replayImageOrLabel_.apply(this,n)}++l;break;case R.DRAW_CHARS:const ft=i[1],_t=i[2],mt=i[3],pt=i[4];O=i[5];const yt=i[6],vt=i[7],bt=i[8];x=i[9];const xt=i[10];v=i[11],b=i[12];const Ot=[i[13],i[13]],Et=this.textStates[b],Ct=Et.font,St=[Et.scale[0]*vt,Et.scale[1]*vt];let Rt;Ct in this.widths_?Rt=this.widths_[Ct]:(Rt={},this.widths_[Ct]=Rt);const It=Object(nt["a"])(h,ft,_t,2),wt=Math.abs(St[0])*Object(L["p"])(Ct,v,Rt);if(pt||wt<=It){const i=this.textStates[b].textAlign,n=(It-wt)*K[i],s=it(h,ft,_t,2,v,n,yt,Math.abs(St[0]),L["p"],Ct,Rt,P?0:this.viewRotation_);t:if(s){const i=[];let n,r,o,h,l;if(x)for(n=0,r=s.length;n<r;++n){l=s[n],o=l[4],h=this.createLabel(o,b,"",x),d=l[2]+(St[0]<0?-xt:xt),g=mt*h.height+2*(.5-mt)*xt*St[1]/St[0]-bt;const r=this.calculateImageOrLabelDimensions_(h.width,h.height,l[0],l[1],h.width,h.height,d,g,0,0,l[3],Ot,!1,L["j"],!1,k);if(a&&a.collides(r.declutterBox))break t;i.push([t,e,h,r,1,null,null])}if(O)for(n=0,r=s.length;n<r;++n){l=s[n],o=l[4],h=this.createLabel(o,b,O,""),d=l[2],g=mt*h.height-bt;const r=this.calculateImageOrLabelDimensions_(h.width,h.height,l[0],l[1],h.width,h.height,d,g,0,0,l[3],Ot,!1,L["j"],!1,k);if(a&&a.collides(r.declutterBox))break t;i.push([t,e,h,r,1,null,null])}a&&a.load(i.map(lt));for(let t=0,e=i.length;t<e;++t)this.replayImageOrLabel_.apply(this,i[t])}}++l;break;case R.END_GEOMETRY:if(void 0!==r){k=i[1];const t=r(k,W);if(t)return t}++l;break;case R.FILL:F?C++:this.fill_(t),++l;break;case R.MOVE_TO_LINE_TO:for(E=i[1],u=i[2],N=h[E],G=h[E+1],m=N+.5|0,p=G+.5|0,m===f&&p===_||(t.moveTo(N,G),f=m,_=p),E+=2;E<u;E+=2)N=h[E],G=h[E+1],m=N+.5|0,p=G+.5|0,E!=u-2&&m===f&&p===_||(t.lineTo(N,G),f=m,_=p);++l;break;case R.SET_FILL_STYLE:I=i,this.alignFill_=i[2],C&&(this.fill_(t),C=0,S&&(t.stroke(),S=0)),t.fillStyle=i[1],++l;break;case R.SET_STROKE_STYLE:w=i,S&&(t.stroke(),S=0),this.setStrokeStyle_(t,i),++l;break;case R.STROKE:F?S++:t.stroke(),++l;break;default:++l;break}}C&&this.fill_(t),S&&t.stroke()}execute(t,e,i,n,s,r){this.viewRotation_=n,this.execute_(t,e,i,this.instructions,s,void 0,void 0,r)}executeHitDetection(t,e,i,n,s){return this.viewRotation_=i,this.execute_(t,1,e,this.hitDetectionInstructions,!0,n,s)}}var ft=gt,_t=i("d72a"),mt=i("73af");const pt=["Polygon","Circle","LineString","Image","Text","Default"];class yt{constructor(t,e,i,n,s,r){this.maxExtent_=t,this.overlaps_=n,this.pixelRatio_=i,this.resolution_=e,this.renderBuffer_=r,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Object($["c"])(),this.createExecutors_(s)}clip(t,e){const 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()}createExecutors_(t){for(const e in t){let i=this.executorsByZIndex_[e];void 0===i&&(i={},this.executorsByZIndex_[e]=i);const n=t[e];for(const t in n){const e=n[t];i[t]=new ft(this.resolution_,this.pixelRatio_,this.overlaps_,e)}}}hasExecutors(t){for(const e in this.executorsByZIndex_){const i=this.executorsByZIndex_[e];for(let e=0,n=t.length;e<n;++e)if(t[e]in i)return!0}return!1}forEachFeatureAtCoordinate(t,e,i,n,s,r){n=Math.round(n);const o=2*n+1,a=Object($["b"])(this.hitDetectionTransform_,n+.5,n+.5,1/e,-1/e,-i,-t[0],-t[1]),h=!this.hitDetectionContext_;h&&(this.hitDetectionContext_=Object(_t["a"])(o,o));const l=this.hitDetectionContext_;let c;l.canvas.width!==o||l.canvas.height!==o?(l.canvas.width=o,l.canvas.height=o):h||l.clearRect(0,0,o,o),void 0!==this.renderBuffer_&&(c=Object(M["j"])(),Object(M["q"])(c,t),Object(M["c"])(c,e*(this.renderBuffer_+n),c));const u=bt(n);let d;function g(t,e){const i=l.getImageData(0,0,o,o).data;for(let a=0,h=u.length;a<h;a++)if(i[u[a]]>0){if(!r||"Image"!==d&&"Text"!==d||r.includes(t)){const i=(u[a]-3)/4,r=n-i%o,h=n-(i/o|0),l=s(t,e,r*r+h*h);if(l)return l}l.clearRect(0,0,o,o);break}}const f=Object.keys(this.executorsByZIndex_).map(Number);let _,m,p,y,v;for(f.sort(A["f"]),_=f.length-1;_>=0;--_){const t=f[_].toString();for(p=this.executorsByZIndex_[t],m=pt.length-1;m>=0;--m)if(d=pt[m],y=p[d],void 0!==y&&(v=y.executeHitDetection(l,a,i,g,c),v))return v}}getClipCoords(t){const e=this.maxExtent_;if(!e)return null;const i=e[0],n=e[1],s=e[2],r=e[3],o=[i,n,i,r,s,r,s,n];return Object(et["c"])(o,0,8,2,t,o),o}isEmpty(){return Object(mt["b"])(this.executorsByZIndex_)}execute(t,e,i,n,s,r,o){const a=Object.keys(this.executorsByZIndex_).map(Number);let h,l,c,u,d,g;for(a.sort(A["f"]),this.maxExtent_&&(t.save(),this.clip(t,i)),r=r||pt,o&&a.reverse(),h=0,l=a.length;h<l;++h){const l=a[h].toString();for(d=this.executorsByZIndex_[l],c=0,u=r.length;c<u;++c){const a=r[c];g=d[a],void 0!==g&&g.execute(t,e,i,n,s,o)}}this.maxExtent_&&t.restore()}}const vt={};function bt(t){if(void 0!==vt[t])return vt[t];const e=2*t+1,i=t*t,n=new Array(i+1);for(let r=0;r<=t;++r)for(let s=0;s<=t;++s){const o=r*r+s*s;if(o>i)break;let a=n[o];a||(a=[],n[o]=a),a.push(4*((t+r)*e+(t+s))+3),r>0&&a.push(4*((t-r)*e+(t+s))+3),s>0&&(a.push(4*((t+r)*e+(t-s))+3),r>0&&a.push(4*((t-r)*e+(t-s))+3))}const s=[];for(let r=0,o=n.length;r<o;++r)n[r]&&s.push(...n[r]);return vt[t]=s,s}var xt=yt,Ot=i("6b8e"),Et=i("ba47");class Ct extends j{constructor(t,e,i,n,s,r,o){super(),this.context_=t,this.pixelRatio_=e,this.extent_=i,this.transform_=n,this.viewRotation_=s,this.squaredTolerance_=r,this.userTransform_=o,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=[0,0],this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=[0,0],this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=Object($["c"])()}drawImages_(t,e,i,n){if(!this.image_)return;const s=Object(et["c"])(t,e,i,n,this.transform_,this.pixelCoordinates_),r=this.context_,o=this.tmpLocalTransform_,a=r.globalAlpha;1!=this.imageOpacity_&&(r.globalAlpha=a*this.imageOpacity_);let h=this.imageRotation_;this.imageRotateWithView_&&(h+=this.viewRotation_);for(let l=0,c=s.length;l<c;l+=2){const t=s[l]-this.imageAnchorX_,e=s[l+1]-this.imageAnchorY_;if(0!==h||1!=this.imageScale_[0]||1!=this.imageScale_[1]){const i=t+this.imageAnchorX_,n=e+this.imageAnchorY_;Object($["b"])(o,i,n,1,1,h,-i,-n),r.setTransform.apply(r,o),r.translate(i,n),r.scale(this.imageScale_[0],this.imageScale_[1]),r.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),r.setTransform(1,0,0,1,0,0)}else r.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,t,e,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(r.globalAlpha=a)}drawText_(t,e,i,n){if(!this.textState_||""===this.text_)return;this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);const s=Object(et["c"])(t,e,i,n,this.transform_,this.pixelCoordinates_),r=this.context_;let o=this.textRotation_;for(this.textRotateWithView_&&(o+=this.viewRotation_);e<i;e+=n){const t=s[e]+this.textOffsetX_,i=s[e+1]+this.textOffsetY_;0!==o||1!=this.textScale_[0]||1!=this.textScale_[1]?(r.translate(t-this.textOffsetX_,i-this.textOffsetY_),r.rotate(o),r.translate(this.textOffsetX_,this.textOffsetY_),r.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&r.strokeText(this.text_,0,0),this.textFillState_&&r.fillText(this.text_,0,0),r.setTransform(1,0,0,1,0,0)):(this.textStrokeState_&&r.strokeText(this.text_,t,i),this.textFillState_&&r.fillText(this.text_,t,i))}}moveToLineTo_(t,e,i,n,s){const r=this.context_,o=Object(et["c"])(t,e,i,n,this.transform_,this.pixelCoordinates_);r.moveTo(o[0],o[1]);let a=o.length;s&&(a-=2);for(let h=2;h<a;h+=2)r.lineTo(o[h],o[h+1]);return s&&r.closePath(),i}drawRings_(t,e,i,n){for(let s=0,r=i.length;s<r;++s)e=this.moveToLineTo_(t,e,i[s],n,!0);return e}drawCircle(t){if(Object(M["F"])(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=Object(Et["b"])(t,this.transform_,this.pixelCoordinates_),i=e[2]-e[0],n=e[3]-e[1],s=Math.sqrt(i*i+n*n),r=this.context_;r.beginPath(),r.arc(e[0],e[1],s,0,2*Math.PI),this.fillState_&&r.fill(),this.strokeState_&&r.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}}setStyle(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())}setTransform(t){this.transform_=t}drawGeometry(t){const e=t.getType();switch(e){case"Point":this.drawPoint(t);break;case"LineString":this.drawLineString(t);break;case"Polygon":this.drawPolygon(t);break;case"MultiPoint":this.drawMultiPoint(t);break;case"MultiLineString":this.drawMultiLineString(t);break;case"MultiPolygon":this.drawMultiPolygon(t);break;case"GeometryCollection":this.drawGeometryCollection(t);break;case"Circle":this.drawCircle(t);break;default:}}drawFeature(t,e){const i=e.getGeometryFunction()(t);i&&Object(M["F"])(this.extent_,i.getExtent())&&(this.setStyle(e),this.drawGeometry(i))}drawGeometryCollection(t){const e=t.getGeometriesArray();for(let i=0,n=e.length;i<n;++i)this.drawGeometry(e[i])}drawPoint(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(e,0,e.length,i),""!==this.text_&&this.drawText_(e,0,e.length,i)}drawMultiPoint(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(e,0,e.length,i),""!==this.text_&&this.drawText_(e,0,e.length,i)}drawLineString(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(M["F"])(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const e=this.context_,i=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(i,0,i.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){const e=t.getFlatMidpoint();this.drawText_(e,0,2,2)}}}drawMultiLineString(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getExtent();if(Object(M["F"])(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const e=this.context_,i=t.getFlatCoordinates();let n=0;const s=t.getEnds(),r=t.getStride();e.beginPath();for(let t=0,o=s.length;t<o;++t)n=this.moveToLineTo_(i,n,s[t],r,!1);e.stroke()}if(""!==this.text_){const e=t.getFlatMidpoints();this.drawText_(e,0,e.length,2)}}}drawPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(M["F"])(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const 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_){const e=t.getFlatInteriorPoint();this.drawText_(e,0,2,2)}}}drawMultiPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(M["F"])(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=this.context_,i=t.getOrientedFlatCoordinates();let n=0;const s=t.getEndss(),r=t.getStride();e.beginPath();for(let t=0,o=s.length;t<o;++t){const e=s[t];n=this.drawRings_(i,n,e,r)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){const e=t.getFlatInteriorPoints();this.drawText_(e,0,e.length,2)}}}setContextFillState_(t){const 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})}setContextStrokeState_(t){const e=this.context_,i=this.contextStrokeState_;i?(i.lineCap!=t.lineCap&&(i.lineCap=t.lineCap,e.lineCap=t.lineCap),Object(A["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(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})}setContextTextState_(t){const e=this.context_,i=this.contextTextState_,n=t.textAlign?t.textAlign:L["l"];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})}setFillStrokeStyle(t,e){if(t){const e=t.getColor();this.fillState_={fillStyle:Object(T["a"])(e||L["b"])}}else this.fillState_=null;if(e){const t=e.getColor(),i=e.getLineCap(),n=e.getLineDash(),s=e.getLineDashOffset(),r=e.getLineJoin(),o=e.getWidth(),a=e.getMiterLimit(),h=n||L["e"];this.strokeState_={lineCap:void 0!==i?i:L["d"],lineDash:1===this.pixelRatio_?h:h.map(t=>t*this.pixelRatio_),lineDashOffset:(s||L["f"])*this.pixelRatio_,lineJoin:void 0!==r?r:L["g"],lineWidth:(void 0!==o?o:L["h"])*this.pixelRatio_,miterLimit:void 0!==a?a:L["i"],strokeStyle:Object(T["a"])(t||L["k"])}}else this.strokeState_=null}setImageStyle(t){let e;if(!t||!(e=t.getSize()))return void(this.image_=null);const i=t.getPixelRatio(this.pixelRatio_),n=t.getAnchor(),s=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=n[0]*i,this.imageAnchorY_=n[1]*i,this.imageHeight_=e[1]*i,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=s[0],this.imageOriginY_=s[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();const r=t.getScaleArray();this.imageScale_=[r[0]*this.pixelRatio_/i,r[1]*this.pixelRatio_/i],this.imageWidth_=e[0]*i}setTextStyle(t){if(t){const e=t.getFill();if(e){const t=e.getColor();this.textFillState_={fillStyle:Object(T["a"])(t||L["b"])}}else this.textFillState_=null;const i=t.getStroke();if(i){const t=i.getColor(),e=i.getLineCap(),n=i.getLineDash(),s=i.getLineDashOffset(),r=i.getLineJoin(),o=i.getWidth(),a=i.getMiterLimit();this.textStrokeState_={lineCap:void 0!==e?e:L["d"],lineDash:n||L["e"],lineDashOffset:s||L["f"],lineJoin:void 0!==r?r:L["g"],lineWidth:void 0!==o?o:L["h"],miterLimit:void 0!==a?a:L["i"],strokeStyle:Object(T["a"])(t||L["k"])}}else this.textStrokeState_=null;const n=t.getFont(),s=t.getOffsetX(),r=t.getOffsetY(),o=t.getRotateWithView(),a=t.getRotation(),h=t.getScaleArray(),l=t.getText(),c=t.getTextAlign(),u=t.getTextBaseline();this.textState_={font:void 0!==n?n:L["c"],textAlign:void 0!==c?c:L["l"],textBaseline:void 0!==u?u:L["m"]},this.text_=void 0!==l?Array.isArray(l)?l.reduce((t,e,i)=>t+(i%2?" ":e),""):l:"",this.textOffsetX_=void 0!==s?this.pixelRatio_*s:0,this.textOffsetY_=void 0!==r?this.pixelRatio_*r:0,this.textRotateWithView_=void 0!==o&&o,this.textRotation_=void 0!==a?a:0,this.textScale_=[this.pixelRatio_*h[0],this.pixelRatio_*h[1]]}else this.text_=""}}var St=Ct;const Rt=.5;function It(t,e,i,n,s,r,o){const a=t[0]*Rt,h=t[1]*Rt,c=Object(_t["a"])(a,h);c.imageSmoothingEnabled=!1;const u=c.canvas,d=new St(c,Rt,s,null,o),g=i.length,f=Math.floor(16777215/g),_={};for(let p=1;p<=g;++p){const t=i[p-1],e=t.getStyleFunction()||n;if(!n)continue;let o=e(t,r);if(!o)continue;Array.isArray(o)||(o=[o]);const a=p*f,h="#"+("000000"+a.toString(16)).slice(-6);for(let i=0,n=o.length;i<n;++i){const e=o[i],n=e.getGeometryFunction()(t);if(!n||!Object(M["F"])(s,n.getExtent()))continue;const r=e.clone(),a=r.getFill();a&&a.setColor(h);const c=r.getStroke();c&&(c.setColor(h),c.setLineDash(null)),r.setText(void 0);const u=e.getImage();if(u&&0!==u.getOpacity()){const t=u.getImageSize();if(!t)continue;const e=Object(_t["a"])(t[0],t[1],void 0,{alpha:!1}),i=e.canvas;e.fillStyle=h,e.fillRect(0,0,i.width,i.height),r.setImage(new l["a"]({img:i,imgSize:t,anchor:u.getAnchor(),anchorXUnits:"pixels",anchorYUnits:"pixels",offset:u.getOrigin(),opacity:1,size:u.getSize(),scale:u.getScale(),rotation:u.getRotation(),rotateWithView:u.getRotateWithView()}))}const d=r.getZIndex()||0;let g=_[d];g||(g={},_[d]=g,g["Polygon"]=[],g["Circle"]=[],g["LineString"]=[],g["Point"]=[]),g[n.getType().replace("Multi","")].push(n,r)}}const m=Object.keys(_).map(Number).sort(A["f"]);for(let l=0,p=m.length;l<p;++l){const t=_[m[l]];for(const i in t){const n=t[i];for(let t=0,i=n.length;t<i;t+=2){d.setStyle(n[t+1]);for(let i=0,s=e.length;i<s;++i)d.setTransform(e[i]),d.drawGeometry(n[t])}}}return c.getImageData(0,0,u.width,u.height)}function wt(t,e,i){const n=[];if(i){const s=Math.floor(Math.round(t[0])*Rt),r=Math.floor(Math.round(t[1])*Rt),o=4*(Object(tt["b"])(s,0,i.width-1)+Object(tt["b"])(r,0,i.height-1)*i.width),a=i.data[o],h=i.data[o+1],l=i.data[o+2],c=l+256*(h+256*a),u=Math.floor(16777215/e.length);c&&c%u===0&&n.push(e[c/u-1])}return n}var jt=i("0e0c");const Tt=.5,Mt={Point:Yt,LineString:Wt,Polygon:Vt,MultiPoint:zt,MultiLineString:Bt,MultiPolygon:Xt,GeometryCollection:Gt,Circle:Dt};function Lt(t,e){return parseInt(Object(z["b"])(t),10)-parseInt(Object(z["b"])(e),10)}function At(t,e){const i=Pt(t,e);return i*i}function Pt(t,e){return Tt*t/e}function Dt(t,e,i,n,s){const r=i.getFill(),o=i.getStroke();if(r||o){const s=t.getBuilder(i.getZIndex(),"Circle");s.setFillStrokeStyle(r,o),s.drawCircle(e,n)}const a=i.getText();if(a&&a.getText()){const r=(s||t).getBuilder(i.getZIndex(),"Text");r.setTextStyle(a),r.drawText(e,n)}}function Ft(t,e,i,n,s,r,o){let a=!1;const h=i.getImage();if(h){const t=h.getImageState();t==jt["a"].LOADED||t==jt["a"].ERROR?h.unlistenImageChange(s):(t==jt["a"].IDLE&&h.load(),h.listenImageChange(s),a=!0)}return kt(t,e,i,n,r,o),a}function kt(t,e,i,n,s,r){const o=i.getGeometryFunction()(e);if(!o)return;const a=o.simplifyTransformed(n,s),h=i.getRenderer();if(h)Nt(t,a,i,e);else{const n=Mt[a.getType()];n(t,a,i,e,r)}}function Nt(t,e,i,n){if("GeometryCollection"==e.getType()){const s=e.getGeometries();for(let e=0,r=s.length;e<r;++e)Nt(t,s[e],i,n);return}const s=t.getBuilder(i.getZIndex(),"Default");s.drawCustom(e,n,i.getRenderer(),i.getHitDetectionRenderer())}function Gt(t,e,i,n,s){const r=e.getGeometriesArray();let o,a;for(o=0,a=r.length;o<a;++o){const e=Mt[r[o].getType()];e(t,r[o],i,n,s)}}function Wt(t,e,i,n,s){const r=i.getStroke();if(r){const s=t.getBuilder(i.getZIndex(),"LineString");s.setFillStrokeStyle(null,r),s.drawLineString(e,n)}const o=i.getText();if(o&&o.getText()){const r=(s||t).getBuilder(i.getZIndex(),"Text");r.setTextStyle(o),r.drawText(e,n)}}function Bt(t,e,i,n,s){const r=i.getStroke();if(r){const s=t.getBuilder(i.getZIndex(),"LineString");s.setFillStrokeStyle(null,r),s.drawMultiLineString(e,n)}const o=i.getText();if(o&&o.getText()){const r=(s||t).getBuilder(i.getZIndex(),"Text");r.setTextStyle(o),r.drawText(e,n)}}function Xt(t,e,i,n,s){const r=i.getFill(),o=i.getStroke();if(o||r){const s=t.getBuilder(i.getZIndex(),"Polygon");s.setFillStrokeStyle(r,o),s.drawMultiPolygon(e,n)}const a=i.getText();if(a&&a.getText()){const r=(s||t).getBuilder(i.getZIndex(),"Text");r.setTextStyle(a),r.drawText(e,n)}}function Yt(t,e,i,n,s){const r=i.getImage(),o=i.getText();let a;if(r){if(r.getImageState()!=jt["a"].LOADED)return;let h=t;if(s){const l=r.getDeclutterMode();if("none"!==l)if(h=s,"obstacle"===l){const s=t.getBuilder(i.getZIndex(),"Image");s.setImageStyle(r,a),s.drawPoint(e,n)}else o&&o.getText()&&(a={})}const l=h.getBuilder(i.getZIndex(),"Image");l.setImageStyle(r,a),l.drawPoint(e,n)}if(o&&o.getText()){let r=t;s&&(r=s);const h=r.getBuilder(i.getZIndex(),"Text");h.setTextStyle(o,a),h.drawText(e,n)}}function zt(t,e,i,n,s){const r=i.getImage(),o=i.getText();let a;if(r){if(r.getImageState()!=jt["a"].LOADED)return;let h=t;if(s){const l=r.getDeclutterMode();if("none"!==l)if(h=s,"obstacle"===l){const s=t.getBuilder(i.getZIndex(),"Image");s.setImageStyle(r,a),s.drawMultiPoint(e,n)}else o&&o.getText()&&(a={})}const l=h.getBuilder(i.getZIndex(),"Image");l.setImageStyle(r,a),l.drawMultiPoint(e,n)}if(o&&o.getText()){let r=t;s&&(r=s);const h=r.getBuilder(i.getZIndex(),"Text");h.setTextStyle(o,a),h.drawText(e,n)}}function Vt(t,e,i,n,s){const r=i.getFill(),o=i.getStroke();if(r||o){const s=t.getBuilder(i.getZIndex(),"Polygon");s.setFillStrokeStyle(r,o),s.drawPolygon(e,n)}const a=i.getText();if(a&&a.getText()){const r=(s||t).getBuilder(i.getZIndex(),"Text");r.setTextStyle(a),r.drawText(e,n)}}var Kt=i("b91b"),Ut=i("577e");class Ht extends Q["b"]{constructor(t){super(t),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.animatingOrInteracting_,this.hitDetectionImageData_=null,this.renderedFeatures_=null,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=Object(M["j"])(),this.wrappedRenderedExtent_=Object(M["j"])(),this.renderedRotation_,this.renderedCenter_=null,this.renderedProjection_=null,this.renderedRenderOrder_=null,this.replayGroup_=null,this.replayGroupChanged=!0,this.declutterExecutorGroup=null,this.clipping=!0,this.compositionContext_=null,this.opacity_=1}renderWorlds(t,e,i){const n=e.extent,s=e.viewState,r=s.center,o=s.resolution,a=s.projection,h=s.rotation,l=a.getExtent(),c=this.getLayer().getSource(),u=e.pixelRatio,d=e.viewHints,g=!(d[Ot["a"].ANIMATING]||d[Ot["a"].INTERACTING]),f=this.compositionContext_,_=Math.round(e.size[0]*u),m=Math.round(e.size[1]*u),p=c.getWrapX()&&a.canWrapX(),y=p?Object(M["E"])(l):null,v=p?Math.ceil((n[2]-l[2])/y)+1:1;let b=p?Math.floor((n[0]-l[0])/y):0;do{const e=this.getRenderTransform(r,o,h,u,_,m,b*y);t.execute(f,1,e,h,g,void 0,i)}while(++b<v)}setupCompositionContext_(){if(1!==this.opacity_){const t=Object(_t["a"])(this.context.canvas.width,this.context.canvas.height,Q["a"]);this.compositionContext_=t}else this.compositionContext_=this.context}releaseCompositionContext_(){if(1!==this.opacity_){const t=this.context.globalAlpha;this.context.globalAlpha=this.opacity_,this.context.drawImage(this.compositionContext_.canvas,0,0),this.context.globalAlpha=t,Object(_t["b"])(this.compositionContext_),Q["a"].push(this.compositionContext_.canvas),this.compositionContext_=null}}renderDeclutter(t){this.declutterExecutorGroup&&(this.setupCompositionContext_(),this.renderWorlds(this.declutterExecutorGroup,t,t.declutterTree),this.releaseCompositionContext_())}renderFrame(t,e){const i=t.pixelRatio,n=t.layerStatesArray[t.layerIndex];Object($["e"])(this.pixelTransform,1/i,1/i),Object($["d"])(this.inversePixelTransform,this.pixelTransform);const s=Object($["g"])(this.pixelTransform);this.useContainer(e,s,this.getBackground(t));const r=this.context,o=r.canvas,a=this.replayGroup_,h=this.declutterExecutorGroup;if((!a||a.isEmpty())&&(!h||h.isEmpty()))return null;const l=Math.round(t.size[0]*i),c=Math.round(t.size[1]*i);o.width!=l||o.height!=c?(o.width=l,o.height=c,o.style.transform!==s&&(o.style.transform=s)):this.containerReused||r.clearRect(0,0,l,c),this.preRender(r,t);const u=t.viewState,d=u.projection;this.opacity_=n.opacity,this.setupCompositionContext_();let g=!1,f=!0;if(n.extent&&this.clipping){const e=Object(Kt["h"])(n.extent,d);f=Object(M["F"])(e,t.extent),g=f&&!Object(M["g"])(e,t.extent),g&&this.clipUnrotated(this.compositionContext_,t,e)}return f&&this.renderWorlds(a,t),g&&this.compositionContext_.restore(),this.releaseCompositionContext_(),this.postRender(r,t),this.renderedRotation_!==u.rotation&&(this.renderedRotation_=u.rotation,this.hitDetectionImageData_=null),this.container}getFeatures(t){return new Promise(function(e){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const t=[this.context.canvas.width,this.context.canvas.height];Object($["a"])(this.pixelTransform,t);const e=this.renderedCenter_,i=this.renderedResolution_,n=this.renderedRotation_,s=this.renderedProjection_,r=this.wrappedRenderedExtent_,o=this.getLayer(),a=[],h=t[0]*Rt,l=t[1]*Rt;a.push(this.getRenderTransform(e,i,n,Rt,h,l,0).slice());const c=o.getSource(),u=s.getExtent();if(c.getWrapX()&&s.canWrapX()&&!Object(M["g"])(u,r)){let t=r[0];const s=Object(M["E"])(u);let o,c=0;while(t<u[0])--c,o=s*c,a.push(this.getRenderTransform(e,i,n,Rt,h,l,o).slice()),t+=s;c=0,t=r[2];while(t>u[2])++c,o=s*c,a.push(this.getRenderTransform(e,i,n,Rt,h,l,o).slice()),t-=s}this.hitDetectionImageData_=It(t,a,this.renderedFeatures_,o.getStyleFunction(),r,i,n)}e(wt(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))}forEachFeatureAtCoordinate(t,e,i,n,s){if(!this.replayGroup_)return;const r=e.viewState.resolution,o=e.viewState.rotation,a=this.getLayer(),h={},l=function(t,e,i){const r=Object(z["b"])(t),o=h[r];if(o){if(!0!==o&&i<o.distanceSq){if(0===i)return h[r]=!0,s.splice(s.lastIndexOf(o),1),n(t,a,e);o.geometry=e,o.distanceSq=i}}else{if(0===i)return h[r]=!0,n(t,a,e);s.push(h[r]={feature:t,layer:a,geometry:e,distanceSq:i,callback:n})}};let c;const u=[this.replayGroup_];return this.declutterExecutorGroup&&u.push(this.declutterExecutorGroup),u.some(n=>c=n.forEachFeatureAtCoordinate(t,r,o,i,l,n===this.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map(t=>t.value):null)),c}handleFontsChanged(){const t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){const e=this.getLayer(),i=e.getSource();if(!i)return!1;const n=t.viewHints[Ot["a"].ANIMATING],s=t.viewHints[Ot["a"].INTERACTING],r=e.getUpdateWhileAnimating(),o=e.getUpdateWhileInteracting();if(this.ready&&!r&&n||!o&&s)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const a=t.extent,h=t.viewState,l=h.projection,c=h.resolution,u=t.pixelRatio,d=e.getRevision(),g=e.getRenderBuffer();let f=e.getRenderOrder();void 0===f&&(f=Lt);const _=h.center.slice(),m=Object(M["c"])(a,g*c),p=m.slice(),y=[m.slice()],v=l.getExtent();if(i.getWrapX()&&l.canWrapX()&&!Object(M["g"])(v,t.extent)){const t=Object(M["E"])(v),e=Math.max(Object(M["E"])(m)/2,t);m[0]=v[0]-e,m[2]=v[2]+e,Object(Ut["f"])(_,l);const i=Object(M["K"])(y[0],l);i[0]<v[0]&&i[2]<v[2]?y.push([i[0]+t,i[1],i[2]+t,i[3]]):i[0]>v[0]&&i[2]>v[2]&&y.push([i[0]-t,i[1],i[2]-t,i[3]])}if(this.ready&&this.renderedResolution_==c&&this.renderedRevision_==d&&this.renderedRenderOrder_==f&&Object(M["g"])(this.wrappedRenderedExtent_,m))return Object(A["b"])(this.renderedExtent_,p)||(this.hitDetectionImageData_=null,this.renderedExtent_=p),this.renderedCenter_=_,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const b=new J(Pt(c,u),m,c,u);let x;this.getLayer().getDeclutter()&&(x=new J(Pt(c,u),m,c,u));const O=Object(Kt["n"])();let E;if(O){for(let t=0,e=y.length;t<e;++t){const e=y[t],n=Object(Kt["p"])(e,l);i.loadFeatures(n,Object(Kt["q"])(c,l),O)}E=Object(Kt["m"])(O,l)}else for(let M=0,L=y.length;M<L;++M)i.loadFeatures(y[M],c,l);const C=At(c,u);let S=!0;const R=function(t){let i;const n=t.getStyleFunction()||e.getStyleFunction();if(n&&(i=n(t,c)),i){const e=this.renderFeature(t,C,i,b,E,x);S=S&&!e}}.bind(this),I=Object(Kt["p"])(m,l),w=i.getFeaturesInExtent(I);f&&w.sort(f);for(let M=0,L=w.length;M<L;++M)R(w[M]);this.renderedFeatures_=w,this.ready=S;const j=b.finish(),T=new xt(m,c,u,i.getOverlaps(),j,e.getRenderBuffer());return x&&(this.declutterExecutorGroup=new xt(m,c,u,i.getOverlaps(),x.finish(),e.getRenderBuffer())),this.renderedResolution_=c,this.renderedRevision_=d,this.renderedRenderOrder_=f,this.renderedExtent_=p,this.wrappedRenderedExtent_=m,this.renderedCenter_=_,this.renderedProjection_=l,this.replayGroup_=T,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0}renderFeature(t,e,i,n,s,r){if(!i)return!1;let o=!1;if(Array.isArray(i))for(let a=0,h=i.length;a<h;++a)o=Ft(n,t,i[a],e,this.boundHandleStyleImageChange_,s,r)||o;else o=Ft(n,t,i,e,this.boundHandleStyleImageChange_,s,r);return o}}var Zt=Ht;class qt extends b{constructor(t){super(t)}createRenderer(){return new Zt(this)}}e["a"]=qt}}]);