"use strict";(self.webpackChunkfrg_frontend=self.webpackChunkfrg_frontend||[]).push([[167],{65045:(t,e,n)=>{n.d(e,{Z:()=>s});var i,r=n(49179),o=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const s=function(t){function e(e){var n=this,i="Assertion failed. See https://openlayers.org/en/"+("latest"===r.q4?r.q4:"v"+r.q4.split("-")[0])+"/doc/errors/#"+e+" for details.";return(n=t.call(this,i)||this).code=e,n.name="AssertionError",n.message=i,n}return o(e,t),e}(Error)},78426:(t,e,n)=>{n.d(e,{Z:()=>c});var i,r=n(65045),o=n(19629),s=n(58493),a=n(9520),h=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l="length",u=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.element=n,r.index=i,r}return h(e,t),e}(a.ZP);const c=function(t){function e(e,n){var i=t.call(this)||this,r=n||{};if(i.unique_=!!r.unique,i.array_=e||[],i.unique_)for(var o=0,s=i.array_.length;o0;)this.pop()},e.prototype.extend=function(t){for(var e=0,n=t.length;e{n.d(e,{Z:()=>i});const i={ADD:"add",REMOVE:"remove"}},80967:(t,e,n)=>{n.d(e,{Z:()=>i});const i=function(){function t(){this.disposed_=!1}return t.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())},t.prototype.disposeInternal=function(){},t}()},23068:(t,e,n)=>{n.d(e,{Z:()=>l});var i,r=n(38906),o=n(13002),s=n(73381),a=n(58493),h=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const l=function(t){function e(e){var n=t.call(this)||this;if(n.id_=void 0,n.geometryName_="geometry",n.style_=null,n.styleFunction_=void 0,n.geometryChangeKey_=null,n.addEventListener((0,a.v_)(n.geometryName_),n.handleGeometryChanged_),e)if("function"==typeof e.getSimplifiedGeometry){var i=e;n.setGeometry(i)}else{var r=e;n.setProperties(r)}return n}return h(e,t),e.prototype.clone=function(){var t=new e(this.getProperties());t.setGeometryName(this.getGeometryName());var n=this.getGeometry();n&&t.setGeometry(n.clone());var i=this.getStyle();return i&&t.setStyle(i),t},e.prototype.getGeometry=function(){return this.get(this.geometryName_)},e.prototype.getId=function(){return this.id_},e.prototype.getGeometryName=function(){return this.geometryName_},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.handleGeometryChange_=function(){this.changed()},e.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&((0,o.bN)(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=(0,o.oL)(t,s.Z.CHANGE,this.handleGeometryChange_,this)),this.changed()},e.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},e.prototype.setStyle=function(t){var e,n;this.style_=t,this.styleFunction_=t?"function"==typeof(e=t)?e:(Array.isArray(e)?n=e:((0,r.h)("function"==typeof e.getZIndex,41),n=[e]),function(){return n}):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){this.removeEventListener((0,a.v_)(this.geometryName_),this.handleGeometryChanged_),this.geometryName_=t,this.addEventListener((0,a.v_)(this.geometryName_),this.handleGeometryChanged_),this.handleGeometryChanged_()},e}(a.ZP)},39862:(t,e,n)=>{n.d(e,{K:()=>_});var i,r=n(49179),o=n(66575),s=n(73381),a=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.extent=e,o.pixelRatio_=i,o.resolution=n,o.state=r,o}return a(e,t),e.prototype.changed=function(){this.dispatchEvent(s.Z.CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return(0,r.O3)()},e.prototype.getPixelRatio=function(){return this.pixelRatio_},e.prototype.getResolution=function(){return this.resolution},e.prototype.getState=function(){return this.state},e.prototype.load=function(){(0,r.O3)()},e}(o.Z);const l=h;var u=n(11256),c=n(13002),p=n(21915),f=n(91358),d=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function _(t,e,n){var i=t;if(i.src&&f.Tp){var r=i.decode(),o=!0;return r.then((function(){o&&e()})).catch((function(t){o&&("EncodingError"===t.name&&"Invalid image type."===t.message?e():n())})),function(){o=!1}}var a=[(0,c.Vx)(i,s.Z.LOAD,e),(0,c.Vx)(i,s.Z.ERROR,n)];return function(){a.forEach(c.bN)}}!function(t){function e(e,n,i,r,o,s){var a=t.call(this,e,n,i,u.Z.IDLE)||this;return a.src_=r,a.image_=new Image,null!==o&&(a.image_.crossOrigin=o),a.unlisten_=null,a.state=u.Z.IDLE,a.imageLoadFunction_=s,a}d(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=u.Z.ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=(0,p.Cr)(this.extent)/this.image_.height),this.state=u.Z.LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=u.Z.IDLE&&this.state!=u.Z.ERROR||(this.state=u.Z.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=_(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.setImage=function(t){this.image_=t},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}(l)},11256:(t,e,n)=>{n.d(e,{Z:()=>i});const i={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},23903:(t,e,n)=>{n.d(e,{Z:()=>ce});var i,r=n(49179),o=n(78426),s=n(19629),a=n(9520),h=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const l=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.map=n,r.frameState=void 0!==i?i:null,r}return h(e,t),e}(a.ZP);var u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(e,n,i,r,o){var s=t.call(this,e,n,o)||this;return s.originalEvent=i,s.pixel_=null,s.coordinate_=null,s.dragging=void 0!==r&&r,s}return u(e,t),Object.defineProperty(e.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(t){this.pixel_=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(t){this.coordinate_=t},enumerable:!0,configurable:!0}),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){t.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()},e}(l);const p=c;n(73108);var f=n(91358),d=n(73381);const _={SINGLECLICK:"singleclick",CLICK:d.Z.CLICK,DBLCLICK:d.Z.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"};var g=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const y=function(t){function e(e,n,i,r,o){var s=t.call(this,e,n,i,r,o)||this;return s.pointerEvent=i,s}return g(e,t),e}(p);var v=n(13002),m=n(66575);var E=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const x=function(t){function e(e,n){var i=t.call(this,e)||this;i.map_=e,i.clickTimeoutId_,i.dragging_=!1,i.dragListenerKeys_=[],i.moveTolerance_=n?n*f.MP:f.MP,i.down_=null;var r=i.map_.getViewport();return i.activePointers_=0,i.trackedTouches_={},i.element_=r,i.pointerdownListenerKey_=(0,v.oL)(r,"pointerdown",i.handlePointerDown_,i),i.relayedListenerKey_=(0,v.oL)(r,"pointermove",i.relayEvent_,i),i}return E(e,t),e.prototype.emulateClick_=function(t){var e=new y(_.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new y(_.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new y(_.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t;e.type==_.POINTERUP||e.type==_.POINTERCANCEL?delete this.trackedTouches_[e.pointerId]:e.type==_.POINTERDOWN&&(this.trackedTouches_[e.pointerId]=!0),this.activePointers_=Object.keys(this.trackedTouches_).length},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new y(_.POINTERUP,this.map_,t);this.dispatchEvent(e),e.propagationStopped||this.dragging_||!this.isMouseActionButton_(t)||this.emulateClick_(this.down_),0===this.activePointers_&&(this.dragListenerKeys_.forEach(v.bN),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},e.prototype.isMouseActionButton_=function(t){return 0===t.button},e.prototype.handlePointerDown_=function(t){this.updateActivePointers_(t);var e=new y(_.POINTERDOWN,this.map_,t);this.dispatchEvent(e),this.down_=t,0===this.dragListenerKeys_.length&&this.dragListenerKeys_.push((0,v.oL)(document,_.POINTERMOVE,this.handlePointerMove_,this),(0,v.oL)(document,_.POINTERUP,this.handlePointerUp_,this),(0,v.oL)(this.element_,_.POINTERCANCEL,this.handlePointerUp_,this))},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.dragging_=!0;var e=new y(_.POINTERDRAG,this.map_,t,this.dragging_);this.dispatchEvent(e)}},e.prototype.relayEvent_=function(t){var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new y(t.type,this.map_,t,e))},e.prototype.isMoving_=function(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&((0,v.bN)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.pointerdownListenerKey_&&((0,v.bN)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(v.bN),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(m.Z);var C=n(40188);const O="layergroup",T="size",S="target",I="view";var R=n(97208),w=n(58493),P=n(13910),b=n(59900),L=n(38906),Z=n(13580),A=1/0;const F=function(){function t(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return t.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,(0,Z.ZH)(this.queuedElements_)},t.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var i=this.keyFunction_(n);return delete this.queuedElements_[i],n},t.prototype.enqueue=function(t){(0,L.h)(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=A&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},t.prototype.getCount=function(){return this.elements_.length},t.prototype.getLeftChildIndex_=function(t){return 2*t+1},t.prototype.getRightChildIndex_=function(t){return 2*t+2},t.prototype.getParentIndex_=function(t){return t-1>>1},t.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},t.prototype.isEmpty=function(){return 0===this.elements_.length},t.prototype.isKeyQueued=function(t){return t in this.queuedElements_},t.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},t.prototype.siftUp_=function(t){for(var e=this.elements_,n=this.priorities_,i=e.length,r=e[t],o=n[t],s=t;t>1;){var a=this.getLeftChildIndex_(t),h=this.getRightChildIndex_(t),l=ht;){var s=this.getParentIndex_(e);if(!(i[s]>o))break;n[e]=n[s],i[e]=i[s],e=s}n[e]=r,i[e]=o},t.prototype.reprioritize=function(){var t,e,n,i=this.priorityFunction_,r=this.elements_,o=this.priorities_,s=0,a=r.length;for(e=0;e0;)r=(i=this.dequeue()[0]).getKey(),(n=i.getState())===b.Z.ABORT?s=!0:n!==b.Z.IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++o,i.load());0===o&&s&&this.tileChangeCallback_()},e}(F);var N=n(98280),k=n(6908),G=n(85386),j=n(21915),X=n(64011),Y=n(10410),z=n(82418),W=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),K="layers";const U=function(t){function e(e){var n=this,i=e||{},r=(0,Z.f0)({},i);delete r.layers;var s=i.layers;return(n=t.call(this,r)||this).layersListenerKeys_=[],n.listenerKeys_={},n.addEventListener((0,w.v_)(K),n.handleLayersChanged_),s?Array.isArray(s)?s=new o.Z(s.slice(),{unique:!0}):(0,L.h)("function"==typeof s.getArray,43):s=new o.Z(void 0,{unique:!0}),n.setLayers(s),n}return W(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(v.bN),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push((0,v.oL)(t,s.Z.ADD,this.handleLayersAdd_,this),(0,v.oL)(t,s.Z.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(v.bN);(0,Z.ZH)(this.listenerKeys_);for(var n=t.getArray(),i=0,o=n.length;i=0;i--){var r=n[i];if(r.getActive()&&!r.handleEvent(t))break}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var n=this.maxTilesLoading_,i=n;if(t){var r=t.viewHints;if(r[k.Z.ANIMATING]||r[k.Z.INTERACTING]){var o=!f.Tp&&Date.now()-t.time>8;n=o?0:8,i=o?0:2}}e.getTilesLoading()0&&this.points_[n+2]>t;)n-=3;var i=this.points_[e+2]-this.points_[n+2];if(i<1e3/60)return!1;var r=this.points_[e]-this.points_[n],o=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+o*o)/i,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}();var nt=n(86320);const it="active";var rt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function ot(t,e,n,i){var r=t.getZoom();if(void 0!==r){var o=t.getConstrainedZoom(r+e),s=t.getResolutionForZoom(o);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:s,anchor:n,duration:void 0!==i?i:250,easing:nt.Vv})}}const st=function(t){function e(e){var n=t.call(this)||this;return e.handleEvent&&(n.handleEvent=e.handleEvent),n.map_=null,n.setActive(!0),n}return rt(e,t),e.prototype.getActive=function(){return this.get(it)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(it,t)},e.prototype.setMap=function(t){this.map_=t},e}(w.ZP);var at=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function ht(t){var e=!1;if(t.type==_.DBLCLICK){var n=t.originalEvent,i=t.map,r=t.coordinate,o=n.shiftKey?-this.delta_:this.delta_;ot(i.getView(),o,r,this.duration_),t.preventDefault(),e=!0}return!e}const lt=function(t){function e(e){var n=t.call(this,{handleEvent:ht})||this,i=e||{};return n.delta_=i.delta?i.delta:1,n.duration_=void 0!==i.duration?i.duration:250,n}return at(e,t),e}(st);var ut=n(90728),ct=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},pt=function(t){return t.target.getTargetElement()===document.activeElement},ft=X.uX,dt=function(t){var e=t.originalEvent;return 0==e.button&&!(f.G$&&f.tK&&e.ctrlKey)},_t=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},gt=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},yt=function(t){var e=t.target.tagName;return"INPUT"!==e&&"SELECT"!==e&&"TEXTAREA"!==e},vt=function(t){var e=t.pointerEvent;return(0,L.h)(void 0!==e,56),"mouse"==e.pointerType},mt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function Et(t){for(var e=t.length,n=0,i=0,r=0;r0}}else if(t.type==_.POINTERDOWN){var i=this.handleDownEvent(t);i&&t.preventDefault(),this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==_.POINTERMOVE&&this.handleMoveEvent(t);return!e},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){if(function(t){var e=t.type;return e===_.POINTERDOWN||e===_.POINTERDRAG||e===_.POINTERUP}(t)){var e=t.pointerEvent,n=e.pointerId.toString();t.type==_.POINTERUP?delete this.trackedPointers_[n]:(t.type==_.POINTERDOWN||n in this.trackedPointers_)&&(this.trackedPointers_[n]=e),this.targetPointers=(0,Z.KX)(this.trackedPointers_)}},e}(st);var Ct=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function Ot(t){return _t(t)&&function(t){var e=t.pointerEvent;return(0,L.h)(void 0!==e,56),e.isPrimary&&0===e.button}(t)}const Tt=function(t){function e(e){var n=t.call(this,{stopDown:X.Dv})||this,i=e||{};return n.kinetic_=i.kinetic,n.lastCentroid=null,n.lastPointersCount_,n.panning_=!1,n.condition_=i.condition?i.condition:Ot,n.noKinetic_=!1,n}return Ct(e,t),e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,n=Et(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var i=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],r=t.map.getView();(0,ut.bA)(i,r.getResolution()),(0,ut.U1)(i,r.getRotation()),r.adjustCenterInternal(i)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=e.length},e.prototype.handleUpEvent=function(t){var e=t.map,n=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var i=this.kinetic_.getDistance(),r=this.kinetic_.getAngle(),o=n.getCenterInternal(),s=e.getPixelFromCoordinateInternal(o),a=e.getCoordinateFromPixelInternal([s[0]-i*Math.cos(r),s[1]-i*Math.sin(r)]);n.animateInternal({center:n.getConstrainedCenter(a),duration:500,easing:nt.Vv})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.condition_(t)){var e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(xt);var St=n(38642),It=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const Rt=function(t){function e(e){var n=this,i=e||{};return(n=t.call(this,{stopDown:X.Dv})||this).condition_=i.condition?i.condition:ct,n.lastAngle_=void 0,n.duration_=void 0!==i.duration?i.duration:250,n}return It(e,t),e.prototype.handleDragEvent=function(t){if(vt(t)){var e=t.map,n=e.getView();if(n.getConstraints().rotation!==St.h$){var i=e.getSize(),r=t.pixel,o=Math.atan2(i[1]/2-r[1],r[0]-i[0]/2);if(void 0!==this.lastAngle_){var s=o-this.lastAngle_;n.adjustRotationInternal(-s)}this.lastAngle_=o}}},e.prototype.handleUpEvent=function(t){return!vt(t)||(t.map.getView().endInteraction(this.duration_),!1)},e.prototype.handleDownEvent=function(t){return!(!vt(t)||!dt(t)||!this.condition_(t)||(t.map.getView().beginInteraction(),this.lastAngle_=void 0,0))},e}(xt);var wt=n(80967),Pt=n(40353),bt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const Lt=function(t){function e(e){var n=t.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.className="ol-box "+e,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return bt(e,t),e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,n="px",i=this.element_.style;i.left=Math.min(t[0],e[0])+n,i.top=Math.min(t[1],e[1])+n,i.width=Math.abs(e[0]-t[0])+n,i.height=Math.abs(e[1]-t[1])+n},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,n=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new Pt.ZP([n])},e.prototype.getGeometry=function(){return this.geometry_},e}(wt.Z);var Zt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),At=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.coordinate=n,r.mapBrowserEvent=i,r}return Zt(e,t),e}(a.ZP);const Ft=function(t){function e(e){var n=t.call(this)||this,i=e||{};return n.box_=new Lt(i.className||"ol-dragbox"),n.minArea_=void 0!==i.minArea?i.minArea:64,n.onBoxEnd_=i.onBoxEnd?i.onBoxEnd:X.Zn,n.startPixel_=null,n.condition_=i.condition?i.condition:ft,n.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:n.defaultBoxEndCondition,n}return Zt(e,t),e.prototype.defaultBoxEndCondition=function(t,e,n){var i=n[0]-e[0],r=n[1]-e[1];return i*i+r*r>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){vt(t)&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new At("boxdrag",t.coordinate,t)))},e.prototype.handleUpEvent=function(t){return!vt(t)||(this.box_.setMap(null),this.boxEndCondition_(t,this.startPixel_,t.pixel)&&(this.onBoxEnd_(t),this.dispatchEvent(new At("boxend",t.coordinate,t))),!1)},e.prototype.handleDownEvent=function(t){return!(!vt(t)||!dt(t)||!this.condition_(t)||(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new At("boxstart",t.coordinate,t)),0))},e}(xt);var Mt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function Dt(){var t=this.getMap(),e=t.getView(),n=t.getSize(),i=this.getGeometry().getExtent();if(this.out_){var r=e.calculateExtentInternal(n),o=(0,j.ZT)([t.getPixelFromCoordinateInternal((0,j.hC)(i)),t.getPixelFromCoordinateInternal((0,j.Xv)(i))]),s=e.getResolutionForExtentInternal(o,n);(0,j.H9)(r,1/s),i=r}var a=e.getConstrainedResolution(e.getResolutionForExtentInternal(i,n)),h=e.getConstrainedCenter((0,j.qg)(i),a);e.animateInternal({resolution:a,center:h,duration:this.duration_,easing:nt.Vv})}const Nt=function(t){function e(e){var n=this,i=e||{},r=i.condition?i.condition:gt;return(n=t.call(this,{condition:r,className:i.className||"ol-dragzoom",minArea:i.minArea,onBoxEnd:Dt})||this).duration_=void 0!==i.duration?i.duration:200,n.out_=void 0!==i.out&&i.out,n}return Mt(e,t),e}(Ft);var kt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function Gt(t){var e=!1;if(t.type==d.Z.KEYDOWN){var n=t.originalEvent.keyCode;if(this.condition_(t)&&(40==n||37==n||39==n||38==n)){var i=t.map.getView(),r=i.getResolution()*this.pixelDelta_,o=0,s=0;40==n?s=-r:37==n?o=-r:39==n?o=r:s=r;var a=[o,s];(0,ut.U1)(a,i.getRotation()),function(t,e,n){var i=t.getCenterInternal();if(i){var r=[i[0]+e[0],i[1]+e[1]];t.animateInternal({duration:void 0!==n?n:250,easing:nt.GE,center:t.getConstrainedCenter(r)})}}(i,a,this.duration_),t.preventDefault(),e=!0}}return!e}const jt=function(t){function e(e){var n=t.call(this,{handleEvent:Gt})||this,i=e||{};return n.defaultCondition_=function(t){return _t(t)&&yt(t)},n.condition_=void 0!==i.condition?i.condition:n.defaultCondition_,n.duration_=void 0!==i.duration?i.duration:100,n.pixelDelta_=void 0!==i.pixelDelta?i.pixelDelta:128,n}return kt(e,t),e}(st);var Xt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function Yt(t){var e=!1;if(t.type==d.Z.KEYDOWN||t.type==d.Z.KEYPRESS){var n=t.originalEvent.charCode;if(this.condition_(t)&&(n=="+".charCodeAt(0)||n=="-".charCodeAt(0))){var i=t.map,r=n=="+".charCodeAt(0)?this.delta_:-this.delta_;ot(i.getView(),r,void 0,this.duration_),t.preventDefault(),e=!0}}return!e}const zt=function(t){function e(e){var n=t.call(this,{handleEvent:Yt})||this,i=e||{};return n.condition_=i.condition?i.condition:yt,n.delta_=i.delta?i.delta:1,n.duration_=void 0!==i.duration?i.duration:100,n}return Xt(e,t),e}(st);var Wt=n(21882),Kt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ut="trackpad";const Vt=function(t){function e(e){var n=this,i=e||{};return(n=t.call(this,i)||this).totalDelta_=0,n.lastDelta_=0,n.maxDelta_=void 0!==i.maxDelta?i.maxDelta:1,n.duration_=void 0!==i.duration?i.duration:250,n.timeout_=void 0!==i.timeout?i.timeout:80,n.useAnchor_=void 0===i.useAnchor||i.useAnchor,n.condition_=i.condition?i.condition:ft,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.trackpadDeltaPerZoom_=300,n}return Kt(e,t),e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0,this.getMap().getView().endInteraction(void 0,Math.sign(this.lastDelta_),this.lastAnchor_)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;if(t.type!==d.Z.WHEEL)return!0;t.preventDefault();var e,n=t.map,i=t.originalEvent;if(this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==d.Z.WHEEL&&(e=i.deltaY,f.V&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=f.MP),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)),0===e)return!1;this.lastDelta_=e;var r=Date.now();if(void 0===this.startTime_&&(this.startTime_=r),(!this.mode_||r-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(e)<4?Ut:"wheel"),this.mode_===Ut){var o=n.getView();return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):o.beginInteraction(),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.trackpadEventGap_),o.adjustZoom(-e/this.trackpadDeltaPerZoom_,this.lastAnchor_),this.startTime_=r,!1}this.totalDelta_+=e;var s=Math.max(this.timeout_-(r-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),s),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations(),ot(e,-(0,Wt.uZ)(this.totalDelta_,-this.maxDelta_,this.maxDelta_),this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(st);var Bt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const Ht=function(t){function e(e){var n=this,i=e||{},r=i;return r.stopDown||(r.stopDown=X.Dv),(n=t.call(this,r)||this).anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=void 0!==i.threshold?i.threshold:.3,n.duration_=void 0!==i.duration?i.duration:250,n}return Bt(e,t),e.prototype.handleDragEvent=function(t){var e=0,n=this.targetPointers[0],i=this.targetPointers[1],r=Math.atan2(i.clientY-n.clientY,i.clientX-n.clientX);if(void 0!==this.lastAngle_){var o=r-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=r;var s=t.map,a=s.getView();if(a.getConstraints().rotation!==St.h$){var h=s.getViewport().getBoundingClientRect(),l=Et(this.targetPointers);l[0]-=h.left,l[1]-=h.top,this.anchor_=s.getCoordinateFromPixelInternal(l),this.rotating_&&(s.render(),a.adjustRotationInternal(e,this.anchor_))}},e.prototype.handleUpEvent=function(t){return!(this.targetPointers.length<2&&(t.map.getView().endInteraction(this.duration_),1))},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(xt);var qt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const Jt=function(t){function e(e){var n=this,i=e||{},r=i;return r.stopDown||(r.stopDown=X.Dv),(n=t.call(this,r)||this).anchor_=null,n.duration_=void 0!==i.duration?i.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return qt(e,t),e.prototype.handleDragEvent=function(t){var e=1,n=this.targetPointers[0],i=this.targetPointers[1],r=n.clientX-i.clientX,o=n.clientY-i.clientY,s=Math.sqrt(r*r+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/s),this.lastDistance_=s;var a=t.map,h=a.getView();1!=e&&(this.lastScaleDelta_=e);var l=a.getViewport().getBoundingClientRect(),u=Et(this.targetPointers);u[0]-=l.left,u[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(u),a.render(),h.adjustResolutionInternal(e,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map.getView(),n=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,n),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(xt);var $t=n(67644),Qt=n(77701),te=n(41173),ee=n(16250),ne=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ie=function(t){function e(e){var n=t.call(this)||this;return n.map_=e,n.declutterTree_=null,n}return ne(e,t),e.prototype.dispatchRenderEvent=function(t,e){(0,r.O3)()},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,n=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;(0,B.qC)(n,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),(0,B.nb)(i,n)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r,o,s,a){var h,l=e.viewState;function u(t,e,n){return r.call(o,e,t?n:null)}var c=l.projection,p=t,f=[[0,0]];if(c.canWrapX()){var d=c.getExtent(),_=(0,j.dz)(d),g=t[0];(gd[2])&&(p=[g+_*Math.ceil((d[0]-g)/_),t[1]]),i&&f.push([-_,0],[_,0])}var y,v=e.layerStatesArray,m=v.length;this.declutterTree_&&(y=this.declutterTree_.all().map((function(t){return t.value})));for(var E=[],x=0;x=0;--C){var O=v[C],T=O.layer;if(T.hasRenderer()&&(0,Qt.j)(O,l)&&s.call(a,T)){var S=T.getRenderer(),I=T.getSource();if(S&&I){var R=I.getWrapX()?p:t,w=u.bind(null,O.managed);E[0]=R[0]+f[x][0],E[1]=R[1]+f[x][1],h=S.forEachFeatureAtCoordinate(E,e,n,w,y)}if(h)return h}}},e.prototype.forEachLayerAtPixel=function(t,e,n,i,o){return(0,r.O3)()},e.prototype.hasFeatureAtCoordinate=function(t,e,n,i,r,o){return void 0!==this.forEachFeatureAtCoordinate(t,e,n,i,X.uX,this,r,o)},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){this.declutterTree_=function(t,e){e&&e.clear();for(var n=t.declutterItems,i=n.length-1;i>=0;--i)for(var r=n[i],o=r.items,s=0,a=o.length;s=0;--a){var h=s[a],l=h.layer;if(l.hasRenderer()&&(0,Qt.j)(h,o)&&r(l)){var u=l.getRenderer().getDataAtPixel(t,e,n);if(u){var c=i(l,u);if(c)return c}}}},e}(oe);var le=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ue=function(t){function e(e){return(e=(0,Z.f0)({},e)).controls||(e.controls=(0,tt.ce)()),e.interactions||(e.interactions=function(t){var e={},n=new o.Z,i=new et(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&n.push(new Rt),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&n.push(new lt({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&n.push(new Tt({condition:e.onFocusOnly?pt:void 0,kinetic:i})),(void 0===e.pinchRotate||e.pinchRotate)&&n.push(new Ht),(void 0===e.pinchZoom||e.pinchZoom)&&n.push(new Jt({duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(n.push(new jt),n.push(new zt({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&n.push(new Vt({condition:e.onFocusOnly?pt:void 0,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&n.push(new Nt({duration:e.zoomDuration})),n}()),t.call(this,e)||this}return le(e,t),e.prototype.createRenderer=function(){return new he(this)},e}(Q);const ce=ue},40188:(t,e,n)=>{n.d(e,{Z:()=>i});const i={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend"}},58493:(t,e,n)=>{n.d(e,{ZP:()=>d,v_:()=>f});var i,r=n(49179),o=n(13910),s=n(56834),a=n(9520),h=n(13580),l=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.key=n,r.oldValue=i,r}return l(e,t),e}(a.ZP),c=function(t){function e(e){var n=t.call(this)||this;return(0,r.sq)(n),n.values_={},void 0!==e&&n.setProperties(e),n}return l(e,t),e.prototype.get=function(t){var e;return this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return Object.keys(this.values_)},e.prototype.getProperties=function(){return(0,h.f0)({},this.values_)},e.prototype.notify=function(t,e){var n;n=f(t),this.dispatchEvent(new u(n,t,e)),n=o.Z.PROPERTYCHANGE,this.dispatchEvent(new u(n,t,e))},e.prototype.set=function(t,e,n){if(n)this.values_[t]=e;else{var i=this.values_[t];this.values_[t]=e,i!==e&&this.notify(t,i)}},e.prototype.setProperties=function(t,e){for(var n in t)this.set(n,t[n],e)},e.prototype.unset=function(t,e){if(t in this.values_){var n=this.values_[t];delete this.values_[t],e||this.notify(t,n)}},e}(s.Z),p={};function f(t){return p.hasOwnProperty(t)?p[t]:p[t]="change:"+t}const d=c},13910:(t,e,n)=>{n.d(e,{Z:()=>i});const i={PROPERTYCHANGE:"propertychange"}},56834:(t,e,n)=>{n.d(e,{B:()=>h,Z:()=>l});var i,r=n(13002),o=n(66575),s=n(73381),a=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function h(t){if(Array.isArray(t))for(var e=0,n=t.length;e{n.d(e,{Z:()=>i});const i={BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right",CENTER_LEFT:"center-left",CENTER_CENTER:"center-center",CENTER_RIGHT:"center-right",TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right"}},19473:(t,e,n)=>{n.d(e,{T:()=>r,Z:()=>o});var i=function(){function t(t,e,n,i){this.minX=t,this.maxX=e,this.minY=n,this.maxY=i}return t.prototype.contains=function(t){return this.containsXY(t[1],t[2])},t.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},t.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},t.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},t.prototype.extend=function(t){t.minXthis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)},t.prototype.getHeight=function(){return this.maxY-this.minY+1},t.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},t.prototype.getWidth=function(){return this.maxX-this.minX+1},t.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},t}();function r(t,e,n,r,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=n,o.maxY=r,o):new i(t,e,n,r)}const o=i},59900:(t,e,n)=>{n.d(e,{Z:()=>i});const i={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4,ABORT:5}},98280:(t,e,n)=>{n.d(e,{ZP:()=>Z});var i=n(10508),r=n(49179),o=n(64011),s=n(21882);function a(t,e,n){return function(i,r,o,a){if(i){var h=e?0:o[0]*r,l=e?0:o[1]*r,u=t[0]+h/2,c=t[2]-h/2,p=t[1]+l/2,f=t[3]-l/2;u>c&&(c=u=(c+u)/2),p>f&&(f=p=(f+p)/2);var d=(0,s.uZ)(i[0],u,c),_=(0,s.uZ)(i[1],p,f),g=30*r;return a&&n&&(d+=-g*Math.log(1+Math.max(0,u-i[0])/g)+g*Math.log(1+Math.max(0,i[0]-c)/g),_+=-g*Math.log(1+Math.max(0,p-i[1])/g)+g*Math.log(1+Math.max(0,i[1]-f)/g)),[d,_]}}}function h(t){return t}var l=n(58493),u=n(79682),c=n(21915);function p(t,e,n){var i=(0,c.dz)(e)/n[0],r=(0,c.Cr)(e)/n[1];return Math.min(t,Math.min(i,r))}function f(t,e,n){var i=Math.min(t,e);return i*=Math.log(1+50*Math.max(0,t/e-1))/50+1,n&&(i=Math.max(i,n),i/=Math.log(1+50*Math.max(0,n/t-1))/50+1),(0,s.uZ)(i,n/2,2*e)}function d(t,e,n,i){return function(r,o,a,h){if(void 0!==r){var l=i?p(t,i,a):t;return(void 0===n||n)&&h?f(r,l,e):(0,s.uZ)(r,e,l)}}}var _=n(38642),g=n(6908);const y="center",v="resolution",m="rotation";var E,x=n(38906),C=n(90728),O=n(86320),T=n(28795),S=n(40353),I=n(13580),R=n(47589),w=n(40868),P=(E=function(t,e){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},E(t,e)},function(t,e){function n(){this.constructor=t}E(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function b(t,e){setTimeout((function(){t(e)}),0)}function L(t){return!(t.sourceCenter&&t.targetCenter&&!(0,C.fS)(t.sourceCenter,t.targetCenter))&&t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation}const Z=function(t){function e(e){var n=t.call(this)||this,i=(0,I.f0)({},e);return n.hints_=[0,0],n.animations_=[],n.updateAnimationKey_,n.projection_=(0,R.UQ)(i.projection,"EPSG:3857"),n.targetCenter_=null,n.targetResolution_,n.targetRotation_,i.center&&(i.center=(0,R.Vs)(i.center,n.projection_)),i.extent&&(i.extent=(0,R.dY)(i.extent,n.projection_)),n.applyOptions_(i),n}return P(e,t),e.prototype.applyOptions_=function(t){var e=function(t){var e,n,r,o=void 0!==t.minZoom?t.minZoom:0,a=void 0!==t.maxZoom?t.maxZoom:28,h=void 0!==t.zoomFactor?t.zoomFactor:2,l=void 0!==t.multiWorld&&t.multiWorld,_=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,g=(0,R.UQ)(t.projection,"EPSG:3857"),y=g.getExtent(),v=t.constrainOnlyCenter,m=t.extent;if(l||m||!g.isGlobal()||(v=!1,m=y),void 0!==t.resolutions){var E=t.resolutions;n=E[o],r=void 0!==E[a]?E[a]:E[E.length-1],e=t.constrainResolution?function(t,e,n){return function(i,r,o,a){if(void 0!==i){var h=t[0],l=t[t.length-1],c=n?p(h,n,o):h;if(a)return void 0===e||e?f(i,c,l):(0,s.uZ)(i,l,c);var d=Math.min(c,i),_=Math.floor((0,u.h7)(t,d,r));return t[_]>c&&_1&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n),!this.isDef()){var i=arguments[n-1];return i.center&&this.setCenterInternal(i.center),void 0!==i.zoom&&this.setZoom(i.zoom),void 0!==i.rotation&&this.setRotation(i.rotation),void(e&&b(e,!0))}for(var r=Date.now(),o=this.targetCenter_.slice(),a=this.targetResolution_,h=this.targetRotation_,l=[],u=0;u0},e.prototype.getInteracting=function(){return this.hints_[g.Z.INTERACTING]>0},e.prototype.cancelAnimations=function(){this.setHint(g.Z.ANIMATING,-this.hints_[g.Z.ANIMATING]);for(var t=0,e=this.animations_.length;t=0;--n){for(var i=this.animations_[n],r=!0,o=0,a=i.length;o0?l/h.duration:1;u>=1?(h.complete=!0,u=1):r=!1;var c=h.easing(u);if(h.sourceCenter){var p=h.sourceCenter[0],f=h.sourceCenter[1],d=p+c*(h.targetCenter[0]-p),_=f+c*(h.targetCenter[1]-f);this.targetCenter_=[d,_]}if(h.sourceResolution&&h.targetResolution){var y=1===c?h.targetResolution:h.sourceResolution+c*(h.targetResolution-h.sourceResolution);if(h.anchor){var v=this.getSizeFromViewport_(this.getRotation()),m=this.constraints_.resolution(y,0,v,!0);this.targetCenter_=this.calculateCenterZoom(m,h.anchor)}this.targetResolution_=y,this.applyTargetState_(!0)}if(void 0!==h.sourceRotation&&void 0!==h.targetRotation){var E=1===c?(0,s.$W)(h.targetRotation+Math.PI,2*Math.PI)-Math.PI:h.sourceRotation+c*(h.targetRotation-h.sourceRotation);if(h.anchor){var x=this.constraints_.rotation(E,!0);this.targetCenter_=this.calculateCenterRotate(x,h.anchor)}this.targetRotation_=E}if(this.applyTargetState_(!0),e=!0,!h.complete)break}}if(r){this.animations_[n]=null,this.setHint(g.Z.ANIMATING,-1);var C=i[0].callback;C&&b(C,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,e){var n,i=this.getCenterInternal();return void 0!==i&&(n=[i[0]-e[0],i[1]-e[1]],(0,C.U1)(n,t-this.getRotation()),(0,C.IH)(n,e)),n},e.prototype.calculateCenterZoom=function(t,e){var n,i=this.getCenterInternal(),r=this.getResolution();return void 0!==i&&void 0!==r&&(n=[e[0]-t*(e[0]-i[0])/r,e[1]-t*(e[1]-i[1])/r]),n},e.prototype.getSizeFromViewport_=function(t){var e=[100,100],n='.ol-viewport[data-view="'+(0,r.sq)(this)+'"]',i=document.querySelector(n);if(i){var o=getComputedStyle(i);e[0]=parseInt(o.width,10),e[1]=parseInt(o.height,10)}if(t){var s=e[0],a=e[1];e[0]=Math.abs(s*Math.cos(t))+Math.abs(a*Math.sin(t)),e[1]=Math.abs(s*Math.sin(t))+Math.abs(a*Math.cos(t))}return e},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t?(0,R.lO)(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(y)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=this.calculateExtentInternal(t);return(0,R.Fj)(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getSizeFromViewport_(),n=this.getCenterInternal();(0,x.h)(n,1);var i=this.getResolution();(0,x.h)(void 0!==i,2);var r=this.getRotation();return(0,x.h)(void 0!==r,3),(0,c.p8)(n,i,r,e)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(v)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal((0,R.dY)(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var n=e||this.getSizeFromViewport_(),i=(0,c.dz)(t)/n[0],r=(0,c.Cr)(t)/n[1];return Math.max(i,r)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.maxResolution_,i=this.minResolution_,r=Math.log(n/i)/Math.log(e);return function(t){return n/Math.pow(e,t*r)}},e.prototype.getRotation=function(){return this.get(m)},e.prototype.getValueForResolutionFunction=function(t){var e=t||2,n=this.maxResolution_,i=this.minResolution_,r=Math.log(n/i)/Math.log(e);return function(t){return Math.log(n/t)/Math.log(e)/r}},e.prototype.getState=function(){var t=this.getCenterInternal(),e=this.getProjection(),n=this.getResolution(),i=this.getRotation();return{center:t.slice(0),projection:void 0!==e?e:null,resolution:n,rotation:i,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},e.prototype.getZoomForResolution=function(t){var e,n,i=this.minZoom_||0;if(this.resolutions_){var r=(0,u.h7)(this.resolutions_,t,1);i=r,e=this.resolutions_[r],n=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,n=this.zoomFactor_;return i+Math.log(e/t)/Math.log(n)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=(0,s.uZ)(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(n,(0,s.uZ)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var n,i=(0,I.f0)({size:this.getSizeFromViewport_()},e||{});if((0,x.h)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)){(0,x.h)(!(0,c.xb)(t),25);var r=(0,R.dY)(t,this.getProjection());n=(0,S.oJ)(r)}else if(t.getType()===T.Z.CIRCLE)r=(0,R.dY)(t.getExtent(),this.getProjection()),(n=(0,S.oJ)(r)).rotate(this.getRotation(),(0,c.qg)(r));else{var o=(0,R.Cs)();n=o?n.clone().transform(o,this.getProjection()):t}this.fitInternal(n,i)},e.prototype.fitInternal=function(t,e){var n=e||{},i=n.size;i||(i=this.getSizeFromViewport_());var r,s=void 0!==n.padding?n.padding:[0,0,0,0],a=void 0!==n.nearest&&n.nearest;r=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0;for(var h=t.getFlatCoordinates(),l=this.getRotation(),u=Math.cos(-l),c=Math.sin(-l),p=1/0,f=1/0,d=-1/0,_=-1/0,g=t.getStride(),y=0,v=h.length;y{n.d(e,{Z:()=>i});const i={ANIMATING:0,INTERACTING:1}},79682:(t,e,n)=>{function i(t,e,n){for(var i,o,s=n||r,a=0,h=t.length,l=!1;a>1)],e))<0?a=i+1:(h=i,l=!o);return l?a:~a}function r(t,e){return t>e?1:t0){for(r=1;r0||n&&0===o)}))}n.d(e,{FZ:()=>s,fS:()=>h,h7:()=>o,kK:()=>r,l7:()=>a,pT:()=>l,ry:()=>i})},38906:(t,e,n)=>{n.d(e,{h:()=>r});var i=n(65045);function r(t,e){if(!t)throw new i.Z(e)}},8913:(t,e,n)=>{n.d(e,{BB:()=>f,XC:()=>a,_2:()=>c});var i=n(38906),r=n(21882),o=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,s=/^([a-z]*)$|^hsla?\(.*\)$/i;function a(t){return"string"==typeof t?t:f(t)}var h,l,u=(h={},l=0,function(t){var e;if(h.hasOwnProperty(t))e=h[t];else{if(l>=1024){var n=0;for(var r in h)0==(3&n++)&&(delete h[r],--l)}e=function(t){var e,n,r,a,h;if(s.exec(t)&&(t=function(t){var e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);var n=getComputedStyle(e).color;return document.body.removeChild(e),n}return""}(t)),o.exec(t)){var l,u=t.length-1;l=u<=4?1:2;var c=4===u||8===u;e=parseInt(t.substr(1+0*l,l),16),n=parseInt(t.substr(1+1*l,l),16),r=parseInt(t.substr(1+2*l,l),16),a=c?parseInt(t.substr(1+3*l,l),16):255,1==l&&(e=(e<<4)+e,n=(n<<4)+n,r=(r<<4)+r,c&&(a=(a<<4)+a)),h=[e,n,r,a/255]}else 0==t.indexOf("rgba(")?p(h=t.slice(5,-1).split(",").map(Number)):0==t.indexOf("rgb(")?((h=t.slice(4,-1).split(",").map(Number)).push(1),p(h)):(0,i.h)(!1,14);return h}(t),h[t]=e,++l}return e});function c(t){return Array.isArray(t)?t:u(t)}function p(t){return t[0]=(0,r.uZ)(t[0]+.5|0,0,255),t[1]=(0,r.uZ)(t[1]+.5|0,0,255),t[2]=(0,r.uZ)(t[2]+.5|0,0,255),t[3]=(0,r.uZ)(t[3],0,1),t}function f(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var n=t[1];n!=(0|n)&&(n=n+.5|0);var i=t[2];return i!=(0|i)&&(i=i+.5|0),"rgba("+e+","+n+","+i+","+(void 0===t[3]?1:t[3])+")"}},45120:(t,e,n)=>{n.d(e,{y:()=>r});var i=n(8913);function r(t){return Array.isArray(t)?(0,i.BB)(t):t}},4039:(t,e,n)=>{n.d(e,{ce:()=>E});var i,r=n(78426),o=n(79682),s=n(19530),a=n(67644),h=n(85386),l=n(73381),u=n(77701),c=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function p(t){this.updateElement_(t.frameState)}const f=function(t){function e(e){var n=this,i=e||{};(n=t.call(this,{element:document.createElement("div"),render:i.render||p,target:i.target})||this).ulElement_=document.createElement("ul"),n.collapsed_=void 0===i.collapsed||i.collapsed,n.overrideCollapsible_=void 0!==i.collapsible,n.collapsible_=void 0===i.collapsible||i.collapsible,n.collapsible_||(n.collapsed_=!1);var r=void 0!==i.className?i.className:"ol-attribution",o=void 0!==i.tipLabel?i.tipLabel:"Attributions",s=void 0!==i.collapseLabel?i.collapseLabel:"»";"string"==typeof s?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=s):n.collapseLabel_=s;var h=void 0!==i.label?i.label:"i";"string"==typeof h?(n.label_=document.createElement("span"),n.label_.textContent=h):n.label_=h;var u=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_,c=document.createElement("button");c.setAttribute("type","button"),c.title=o,c.appendChild(u),c.addEventListener(l.Z.CLICK,n.handleClick_.bind(n),!1);var f=r+" "+a.XV+" "+a.hg+(n.collapsed_&&n.collapsible_?" "+a.hN:"")+(n.collapsible_?"":" ol-uncollapsible"),d=n.element;return d.className=f,d.appendChild(n.ulElement_),d.appendChild(c),n.renderedAttributions_=[],n.renderedVisible_=!0,n}return c(e,t),e.prototype.collectSourceAttributions_=function(t){for(var e={},n=[],i=t.layerStatesArray,r=0,o=i.length;r0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!(0,o.fS)(e,this.renderedAttributions_)){(0,h.ep)(this.ulElement_);for(var i=0,r=e.length;i0?t.animate({rotation:0,duration:this.duration_,easing:d.Vv}):t.setRotation(0))},e}(s.Z);var v=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const m=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{element:document.createElement("div"),target:i.target})||this;var r=void 0!==i.className?i.className:"ol-zoom",o=void 0!==i.delta?i.delta:1,s=void 0!==i.zoomInLabel?i.zoomInLabel:"+",h=void 0!==i.zoomOutLabel?i.zoomOutLabel:"−",u=void 0!==i.zoomInTipLabel?i.zoomInTipLabel:"Zoom in",c=void 0!==i.zoomOutTipLabel?i.zoomOutTipLabel:"Zoom out",p=document.createElement("button");p.className=r+"-in",p.setAttribute("type","button"),p.title=u,p.appendChild("string"==typeof s?document.createTextNode(s):s),p.addEventListener(l.Z.CLICK,n.handleClick_.bind(n,o),!1);var f=document.createElement("button");f.className=r+"-out",f.setAttribute("type","button"),f.title=c,f.appendChild("string"==typeof h?document.createTextNode(h):h),f.addEventListener(l.Z.CLICK,n.handleClick_.bind(n,-o),!1);var d=r+" "+a.XV+" "+a.hg,_=n.element;return _.className=d,_.appendChild(p),_.appendChild(f),n.duration_=void 0!==i.duration?i.duration:250,n}return v(e,t),e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap().getView();if(e){var n=e.getZoom();if(void 0!==n){var i=e.getConstrainedZoom(n+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:i,duration:this.duration_,easing:d.Vv})):e.setZoom(i)}}},e}(s.Z);function E(t){var e=t||{},n=new r.Z;return(void 0===e.zoom||e.zoom)&&n.push(new m(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&n.push(new y(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&n.push(new f(e.attributionOptions)),n}},19530:(t,e,n)=>{n.d(e,{Z:()=>u});var i,r=n(64011),o=n(40188),s=n(58493),a=n(85386),h=n(13002),l=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const u=function(t){function e(e){var n=t.call(this)||this;return n.element=e.element?e.element:null,n.target_=null,n.map_=null,n.listenerKeys=[],n.render=e.render?e.render:r.Zn,e.target&&n.setTarget(e.target),n}return l(e,t),e.prototype.disposeInternal=function(){(0,a.ZF)(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&(0,a.ZF)(this.element);for(var e=0,n=this.listenerKeys.length;e{n.d(e,{ZP:()=>g});var i,r=n(58493),o=n(38906),s=n(19530),a=n(67644),h=n(47589),l=n(40868),u=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c="units",p="degrees",f="metric",d=[1,2,5];function _(t){var e=t.frameState;this.viewState_=e?e.viewState:null,this.updateElement_()}const g=function(t){function e(e){var n=this,i=e||{},o=void 0!==i.className?i.className:i.bar?"ol-scale-bar":"ol-scale-line";return(n=t.call(this,{element:document.createElement("div"),render:i.render||_,target:i.target})||this).innerElement_=document.createElement("div"),n.innerElement_.className=o+"-inner",n.element.className=o+" "+a.XV,n.element.appendChild(n.innerElement_),n.viewState_=null,n.minWidth_=void 0!==i.minWidth?i.minWidth:64,n.renderedVisible_=!1,n.renderedWidth_=void 0,n.renderedHTML_="",n.addEventListener((0,r.v_)(c),n.handleUnitsChanged_),n.setUnits(i.units||f),n.scaleBar_=i.bar||!1,n.scaleBarSteps_=i.steps||4,n.scaleBarText_=i.text||!1,n}return u(e,t),e.prototype.getUnits=function(){return this.get(c)},e.prototype.handleUnitsChanged_=function(){this.updateElement_()},e.prototype.setUnits=function(t){this.set(c,t)},e.prototype.updateElement_=function(){var t=this.viewState_;if(t){var e=t.center,n=t.projection,i=this.getUnits(),r=i==p?l.Z.DEGREES:l.Z.METERS,s=(0,h._Q)(n,t.resolution,e,r),a=this.minWidth_*s,u="";if(i==p){var c=h.Wm[l.Z.DEGREES];(a*=c)=this.minWidth_)break;++m}v=this.scaleBar_?this.createScaleBar(g,_,u):_.toFixed(y<0?-y:0)+" "+u,this.renderedHTML_!=v&&(this.innerElement_.innerHTML=v,this.renderedHTML_=v),this.renderedWidth_!=g&&(this.innerElement_.style.width=g+"px",this.renderedWidth_=g),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.createScaleBar=function(t,e,n){for(var i="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),r=[],o=t/this.scaleBarSteps_,s="#ffffff",a=0;a
'+this.createMarker("relative",a)+(a%2==0||2===this.scaleBarSteps_?this.createStepText(a,t,!1,e,n):"")+""),a===this.scaleBarSteps_-1&&r.push(this.createStepText(a+1,t,!0,e,n)),s="#ffffff"===s?"#000000":"#ffffff";return'
'+(this.scaleBarText_?'
'+i+"
":"")+r.join("")+"
"},e.prototype.createMarker=function(t,e){return'
'},e.prototype.createStepText=function(t,e,n,i,r){var o=(0===t?0:Math.round(i/this.scaleBarSteps_*t*100)/100)+(0===t?"":" "+r);return'
'+o+"
"},e.prototype.getScaleForResolution=function(){var t=this.getMap().getView().getResolution(),e=this.viewState_.projection.getMetersPerUnit();return parseFloat(t.toString())*e*39.37*(25.4/.28)},e}(s.Z)},90728:(t,e,n)=>{function i(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function r(t,e){for(var n=!0,i=t.length-1;i>=0;--i)if(t[i]!=e[i]){n=!1;break}return n}function o(t,e){var n=Math.cos(e),i=Math.sin(e),r=t[0]*n-t[1]*i,o=t[1]*n+t[0]*i;return t[0]=r,t[1]=o,t}function s(t,e){return t[0]*=e,t[1]*=e,t}n.d(e,{IH:()=>i,U1:()=>o,bA:()=>s,fS:()=>r})},67644:(t,e,n)=>{n.d(e,{$A:()=>s,XV:()=>a,hN:()=>l,hg:()=>h,oj:()=>o,p:()=>u});var i,r,o="ol-hidden",s="ol-selectable",a="ol-unselectable",h="ol-control",l="ol-collapsed",u=(r={},function(t){if(i||(i=document.createElement("div").style),!(t in r)){i.font=t;var e=i.fontFamily,n=i.fontWeight,o=i.fontStyle;if(i.font="",!e)return null;var s=e.split(/,\s?/);r[t]={families:s,weight:n,style:o}}return r[t]})},85386:(t,e,n)=>{function i(t,e){var n=document.createElement("canvas");return t&&(n.width=t),e&&(n.height=e),n.getContext("2d")}function r(t){var e=t.offsetWidth,n=getComputedStyle(t);return e+(parseInt(n.marginLeft,10)+parseInt(n.marginRight,10))}function o(t){var e=t.offsetHeight,n=getComputedStyle(t);return e+(parseInt(n.marginTop,10)+parseInt(n.marginBottom,10))}function s(t,e){var n=e.parentNode;n&&n.replaceChild(t,e)}function a(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function h(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function l(t,e){for(var n=t.childNodes,i=0;;++i){var r=n[i],o=e[i];if(!r&&!o)break;r!==o&&(r?o?t.insertBefore(o,r):(t.removeChild(r),--i):t.appendChild(o))}}n.d(e,{$H:()=>s,E4:()=>i,Pb:()=>o,ZF:()=>a,ep:()=>h,hF:()=>l,iO:()=>r})},86320:(t,e,n)=>{function i(t){return Math.pow(t,3)}function r(t){return 1-i(1-t)}function o(t){return 3*t*t-2*t*t*t}function s(t){return t}n.d(e,{GE:()=>s,Vv:()=>r,YQ:()=>i,rd:()=>o})},13002:(t,e,n)=>{n.d(e,{Vx:()=>o,bN:()=>s,oL:()=>r});var i=n(13580);function r(t,e,n,i,r){if(i&&i!==t&&(n=n.bind(i)),r){var o=n;n=function(){t.removeEventListener(e,n),o.apply(this,arguments)}}var s={target:t,type:e,listener:n};return t.addEventListener(e,n),s}function o(t,e,n,i){return r(t,e,n,i,!0)}function s(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,i.ZH)(t))}},9520:(t,e,n)=>{n.d(e,{ZP:()=>i});const i=function(){function t(t){this.propagationStopped,this.type=t,this.target=null}return t.prototype.preventDefault=function(){this.propagationStopped=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t}()},73381:(t,e,n)=>{n.d(e,{Z:()=>i});const i={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",WHEEL:"wheel"}},66575:(t,e,n)=>{n.d(e,{Z:()=>l});var i,r=n(80967),o=n(64011),s=n(9520),a=n(13580),h=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const l=function(t){function e(e){var n=t.call(this)||this;return n.eventTarget_=e,n.pendingRemovals_={},n.dispatching_={},n.listeners_={},n}return h(e,t),e.prototype.addEventListener=function(t,e){if(t&&e){var n=this.listeners_[t];n||(n=[],this.listeners_[t]=n),-1===n.indexOf(e)&&n.push(e)}},e.prototype.dispatchEvent=function(t){var e="string"==typeof t?new s.ZP(t):t,n=e.type;e.target||(e.target=this.eventTarget_||this);var i,r=this.listeners_[n];if(r){n in this.dispatching_||(this.dispatching_[n]=0,this.pendingRemovals_[n]=0),++this.dispatching_[n];for(var a=0,h=r.length;a0},e.prototype.removeEventListener=function(t,e){var n=this.listeners_[t];if(n){var i=n.indexOf(e);-1!==i&&(t in this.pendingRemovals_?(n[i]=o.Zn,++this.pendingRemovals_[t]):(n.splice(i,1),0===n.length&&delete this.listeners_[t]))}},e}(r.Z)},21915:(t,e,n)=>{n.d(e,{Cr:()=>Z,EO:()=>G,Ed:()=>A,GN:()=>m,H6:()=>S,H9:()=>j,HK:()=>y,I7:()=>X,Ne:()=>Y,T9:()=>_,Wj:()=>C,Xv:()=>M,YN:()=>g,ZT:()=>v,b8:()=>u,bg:()=>I,d9:()=>h,dz:()=>D,f3:()=>a,fS:()=>E,g0:()=>b,hC:()=>R,hI:()=>s,jE:()=>p,kK:()=>N,l7:()=>x,lJ:()=>d,p8:()=>L,pX:()=>f,qP:()=>O,qf:()=>l,qg:()=>P,r4:()=>c,rL:()=>F,w$:()=>w,xb:()=>k});var i=n(38906),r=n(51748),o=n(34178);function s(t){for(var e=[1/0,1/0,-1/0,-1/0],n=0,i=t.length;nr&&(l|=o.Z.RIGHT),hs&&(l|=o.Z.ABOVE),l===o.Z.UNKNOWN&&(l=o.Z.INTERSECTING),l}function d(){return[1/0,1/0,-1/0,-1/0]}function _(t,e,n,i,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=i,r):[t,e,n,i]}function g(t){return _(1/0,1/0,-1/0,-1/0,t)}function y(t,e){var n=t[0],i=t[1];return _(n,i,n,i,e)}function v(t,e){return function(t,e){for(var n=0,i=e.length;nt[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function C(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function O(t,e,n,i,r){for(;ne[0]?i[0]=t[0]:i[0]=e[0],t[1]>e[1]?i[1]=t[1]:i[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function k(t){return t[2]=a&&y<=l),i||!(s&o.Z.RIGHT)||r&o.Z.RIGHT||(i=(v=_-(d-l)*g)>=h&&v<=u),i||!(s&o.Z.BELOW)||r&o.Z.BELOW||(i=(y=d-(_-h)/g)>=a&&y<=l),i||!(s&o.Z.LEFT)||r&o.Z.LEFT||(i=(v=_-(d-a)*g)>=h&&v<=u)}return i}function Y(t,e,n){var i=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]];return e(i,i,2),function(t,e,n){return _(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),n)}([i[0],i[2],i[4],i[6]],[i[1],i[3],i[5],i[7]],n)}},51748:(t,e,n)=>{n.d(e,{Z:()=>i});const i={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},34178:(t,e,n)=>{n.d(e,{Z:()=>i});const i={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},34007:(t,e,n)=>{n.d(e,{Z:()=>i});const i={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"}},15821:(t,e,n)=>{n.d(e,{Z:()=>tt});var i=n(38906),r=n(23068),o=n(13580),s=n(49179),a=n(47589),h=n(40868);const l=function(){function t(){this.dataProjection=null,this.defaultFeatureProjection=null}return t.prototype.getReadOptions=function(t,e){var n;if(e){var i=e.dataProjection?(0,a.U2)(e.dataProjection):this.readProjection(t);e.extent&&i&&i.getUnits()===h.Z.TILE_PIXELS&&(i=(0,a.U2)(i)).setWorldExtent(e.extent),n={dataProjection:i,featureProjection:e.featureProjection}}return this.adaptOptions(n)},t.prototype.adaptOptions=function(t){return(0,o.f0)({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)},t.prototype.getType=function(){return(0,s.O3)()},t.prototype.readFeature=function(t,e){return(0,s.O3)()},t.prototype.readFeatures=function(t,e){return(0,s.O3)()},t.prototype.readGeometry=function(t,e){return(0,s.O3)()},t.prototype.readProjection=function(t){return(0,s.O3)()},t.prototype.writeFeature=function(t,e){return(0,s.O3)()},t.prototype.writeFeatures=function(t,e){return(0,s.O3)()},t.prototype.writeGeometry=function(t,e){return(0,s.O3)()},t}();function u(t,e,n){var i,r=n?(0,a.U2)(n.featureProjection):null,o=n?(0,a.U2)(n.dataProjection):null;if(i=r&&o&&!(0,a.OP)(r,o)?(e?t.clone():t).transform(e?r:o,e?o:r):t,e&&n&&void 0!==n.decimals){var s=Math.pow(10,n.decimals);i===t&&(i=t.clone()),i.applyTransform((function(t){for(var e=0,n=t.length;e>1;r{n.d(e,{Dv:()=>o,Zn:()=>s,qe:()=>a,uX:()=>r});var i=n(79682);function r(){return!0}function o(){return!1}function s(){}function a(t){var e,n,r,o=!1;return function(){var s=Array.prototype.slice.call(arguments);return o&&this===r&&(0,i.fS)(s,n)||(o=!0,r=this,n=s,e=t.apply(this,arguments)),e}}},8204:(t,e,n)=>{n.d(e,{Z:()=>d});var i,r=n(49179),o=n(58493),s=n(21915),a=n(17882),h=n(47589),l=n(40868),u=n(82359),c=n(64011),p=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=(0,u.Ue)();const d=function(t){function e(){var e=t.call(this)||this;return e.extent_=(0,s.lJ)(),e.extentRevision_=-1,e.simplifiedGeometryMaxMinSquaredTolerance=0,e.simplifiedGeometryRevision=0,e.simplifyTransformedInternal=(0,c.qe)((function(t,e,n){if(!n)return this.getSimplifiedGeometry(e);var i=this.clone();return i.applyTransform(n),i.getSimplifiedGeometry(e)})),e}return p(e,t),e.prototype.simplifyTransformed=function(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)},e.prototype.clone=function(){return(0,r.O3)()},e.prototype.closestPointXY=function(t,e,n,i){return(0,r.O3)()},e.prototype.containsXY=function(t,e){var n=this.getClosestPoint([t,e]);return n[0]===t&&n[1]===e},e.prototype.getClosestPoint=function(t,e){var n=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],n,1/0),n},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){return(0,r.O3)()},e.prototype.getExtent=function(t){return this.extentRevision_!=this.getRevision()&&(this.extent_=this.computeExtent(this.extent_),this.extentRevision_=this.getRevision()),(0,s.EO)(this.extent_,t)},e.prototype.rotate=function(t,e){(0,r.O3)()},e.prototype.scale=function(t,e,n){(0,r.O3)()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return(0,r.O3)()},e.prototype.getType=function(){return(0,r.O3)()},e.prototype.applyTransform=function(t){(0,r.O3)()},e.prototype.intersectsExtent=function(t){return(0,r.O3)()},e.prototype.translate=function(t,e){(0,r.O3)()},e.prototype.transform=function(t,e){var n=(0,h.U2)(t),i=n.getUnits()==l.Z.TILE_PIXELS?function(t,i,r){var o=n.getExtent(),l=n.getWorldExtent(),c=(0,s.Cr)(l)/(0,s.Cr)(o);return(0,u.qC)(f,l[0],l[3],c,-c,0,0,0),(0,a.vT)(t,0,t.length,r,f,i),(0,h.Ck)(n,e)(t,i,r)}:(0,h.Ck)(n,e);return this.applyTransform(i),this},e}(o.ZP)},3696:(t,e,n)=>{n.d(e,{Z:()=>i});const i={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},28795:(t,e,n)=>{n.d(e,{Z:()=>i});const i={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"}},52043:(t,e,n)=>{n.d(e,{Z:()=>u});var i,r=n(21915),o=n(28795),s=n(32538),a=n(38667),h=n(21882),l=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const u=function(t){function e(e,n){var i=t.call(this)||this;return i.setCoordinates(e,n),i}return l(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,n,i){var r=this.flatCoordinates,o=(0,h.bI)(t,e,r[0],r[1]);if(o{n.d(e,{ZP:()=>O,oJ:()=>T});var i,r=n(79682),o=n(21915),s=n(3696),a=n(28795),h=n(32538),l=n(32562),u=n(83729),c=n(38667),p=n(86204),f=n(62418),d=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const _=function(t){function e(e,n){var i=t.call(this)||this;return i.maxDelta_=-1,i.maxDeltaRevision_=-1,void 0===n||Array.isArray(e[0])?i.setCoordinates(e,n):i.setFlatCoordinates(n,e),i}return d(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,n,i){return i<(0,o.qf)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,u.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,u.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,n,i))},e.prototype.getArea=function(){return(0,l.QQ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return(0,p.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[];return n.length=(0,f.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,s.Z.XY)},e.prototype.getType=function(){return a.Z.LINEAR_RING},e.prototype.intersectsExtent=function(t){return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,c.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(h.ZP);var g=n(52043),y=n(30197),v=n(38529),m=n(60897),E=n(80793),x=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),C=function(t){function e(e,n,i){var r=t.call(this)||this;return r.ends_=[],r.flatInteriorPointRevision_=-1,r.flatInteriorPoint_=null,r.maxDelta_=-1,r.maxDeltaRevision_=-1,r.orientedRevision_=-1,r.orientedFlatCoordinates_=null,void 0!==n&&i?(r.setFlatCoordinates(n,e),r.ends_=i):r.setCoordinates(e,n),r}return x(e,t),e.prototype.appendLinearRing=function(t){this.flatCoordinates?(0,r.l7)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice())},e.prototype.closestPointXY=function(t,e,n,i){return i<(0,o.qf)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,u.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,u.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,n,i))},e.prototype.containsXY=function(t,e){return(0,y.wY)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},e.prototype.getArea=function(){return(0,l.KP)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,E.zX)(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,(0,p.o1)(e,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var t=(0,o.qg)(this.getExtent());this.flatInteriorPoint_=(0,v.X)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},e.prototype.getInteriorPoint=function(){return new g.Z(this.getFlatInteriorPoint(),s.Z.XYM)},e.prototype.getLinearRingCount=function(){return this.ends_.length},e.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new _(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLinearRings=function(){for(var t=this.layout,e=this.flatCoordinates,n=this.ends_,i=[],r=0,o=0,s=n.length;o{n.d(e,{Kr:()=>c,ZP:()=>p});var i,r=n(49179),o=n(21915),s=n(8204),a=n(3696),h=n(17882),l=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function u(t){var e;return t==a.Z.XY?e=2:t==a.Z.XYZ||t==a.Z.XYM?e=3:t==a.Z.XYZM&&(e=4),e}function c(t,e,n){var i=t.getFlatCoordinates();if(i){var r=t.getStride();return(0,h.vT)(i,0,i.length,r,e,n)}return null}const p=function(t){function e(){var e=t.call(this)||this;return e.layout=a.Z.XY,e.stride=2,e.flatCoordinates=null,e}return l(e,t),e.prototype.computeExtent=function(t){return(0,o.GN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return(0,r.O3)()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length{function i(t,e,n,i){for(var r=0,o=t[n-i],s=t[n-i+1];eo,KP:()=>r,QQ:()=>i})},83729:(t,e,n)=>{n.d(e,{Af:()=>s,Bv:()=>o,H$:()=>h,Xl:()=>l,gI:()=>u,sD:()=>a});var i=n(21882);function r(t,e,n,r,o,s,a){var h,l=t[e],u=t[e+1],c=t[n]-l,p=t[n+1]-u;if(0===c&&0===p)h=e;else{var f=((o-l)*c+(s-u)*p)/(c*c+p*p);if(f>1)h=n;else{if(f>0){for(var d=0;do&&(o=u),s=h,a=l}return o}function s(t,e,n,i,r){for(var s=0,a=n.length;s{n.d(e,{TG:()=>o,Zl:()=>a,uG:()=>r,wY:()=>s});var i=n(21915);function r(t,e,n,r,s){return!(0,i.H6)(s,(function(i){return!o(t,e,n,r,i[0],i[1])}))}function o(t,e,n,i,r,o){for(var s=0,a=t[n-i],h=t[n-i+1];eo&&(l-a)*(o-h)-(r-a)*(u-h)>0&&s++:u<=o&&(l-a)*(o-h)-(r-a)*(u-h)<0&&s--,a=l,h=u}return 0!==s}function s(t,e,n,i,r,s){if(0===n.length)return!1;if(!o(t,e,n[0],i,r,s))return!1;for(var a=1,h=n.length;a{function i(t,e,n,i){for(var r=0,o=n.length;ri,QT:()=>s,Sg:()=>r,_5:()=>o})},86204:(t,e,n)=>{function i(t,e,n,i,r){for(var o=void 0!==r?r:[],s=0,a=e;ai,o1:()=>r,ug:()=>o})},38529:(t,e,n)=>{n.d(e,{U:()=>s,X:()=>o});var i=n(79682),r=n(30197);function o(t,e,n,o,s,a,h){for(var l,u,c,p,f,d,_,g=s[a+1],y=[],v=0,m=n.length;vC&&(c=(p+f)/2,(0,r.wY)(t,e,n,o,c,g)&&(x=c,C=O)),p=f}return isNaN(x)&&(x=s[a]),h?(h.push(x,g,C),h):[x,g,C]}function s(t,e,n,i,r){for(var s=[],a=0,h=n.length;a{n.d(e,{AW:()=>a,Kz:()=>s,ac:()=>h,oW:()=>l});var i=n(21915),r=n(30197),o=n(95173);function s(t,e,n,r,s){var a=(0,i.qP)((0,i.lJ)(),t,e,n,r);return!!(0,i.kK)(s,a)&&(!!(0,i.r4)(s,a)||a[0]>=s[0]&&a[2]<=s[2]||a[1]>=s[1]&&a[3]<=s[3]||(0,o.E)(t,e,n,r,(function(t,e){return(0,i.I7)(s,t,e)})))}function a(t,e,n,i,r){for(var o=0,a=n.length;o{function i(t,e,n,i){for(var r=t[e],o=t[e+1],s=0,a=e+i;ai})},80793:(t,e,n)=>{function i(t,e,n,i){for(;e0}function o(t,e,n,i,o){for(var s=void 0!==o&&o,a=0,h=n.length;ao,Oj:()=>s,zX:()=>a,dL:()=>h})},95173:(t,e,n)=>{function i(t,e,n,i,r){for(var o,s=[t[e],t[e+1]],a=[];e+ii})},62418:(t,e,n)=>{n.d(e,{Pp:()=>l,UJ:()=>o,Zh:()=>h,dt:()=>r,uZ:()=>s});var i=n(21882);function r(t,e,n,r,o,s,a){var h=(n-e)/r;if(h<3){for(;e0;){for(var p=u.pop(),f=u.pop(),d=0,_=t[f],g=t[f+1],y=t[p],v=t[p+1],m=f+r;md&&(c=m,d=C)}d>o&&(l[(c-e)/r]=1,f+r0&&g>d)&&(_<0&&y<_||_==y||_>0&&y>_)?(h=p,l=f):(o[a++]=h,o[a++]=l,u=h,c=l,h=p,l=f)}}return o[a++]=h,o[a++]=l,a}function h(t,e,n,i,r,o,s,h){for(var l=0,u=n.length;l{function i(t,e,n,i,r,o){for(var s=o||[],a=0,h=e;hs,U1:()=>r,bA:()=>o,vT:()=>i})},91358:(t,e,n)=>{n.d(e,{G$:()=>o,MP:()=>a,Tp:()=>h,V:()=>r,tK:()=>s});var i="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",r=-1!==i.indexOf("firefox"),o=(-1!==i.indexOf("safari")&&i.indexOf("chrom"),-1!==i.indexOf("webkit")&&-1==i.indexOf("edge")),s=-1!==i.indexOf("macintosh"),a=window.devicePixelRatio||1,h="undefined"!=typeof Image&&Image.prototype.decode},10410:(t,e,n)=>{n.d(e,{Z:()=>c});var i,r=n(49179),o=n(58493),s=n(28192),a=n(21882),h=n(13580),l=n(38906),u=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const c=function(t){function e(e){var n=t.call(this)||this,i=(0,h.f0)({},e);return i[s.Z.OPACITY]=void 0!==e.opacity?e.opacity:1,(0,l.h)("number"==typeof i[s.Z.OPACITY],64),i[s.Z.VISIBLE]=void 0===e.visible||e.visible,i[s.Z.Z_INDEX]=e.zIndex,i[s.Z.MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,i[s.Z.MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,i[s.Z.MIN_ZOOM]=void 0!==e.minZoom?e.minZoom:-1/0,i[s.Z.MAX_ZOOM]=void 0!==e.maxZoom?e.maxZoom:1/0,n.className_=void 0!==i.className?e.className:"ol-layer",delete i.className,n.setProperties(i),n.state_=null,n}return u(e,t),e.prototype.getClassName=function(){return this.className_},e.prototype.getLayerState=function(t){var e=this.state_||{layer:this,managed:void 0===t||t},n=this.getZIndex();return e.opacity=(0,a.uZ)(Math.round(100*this.getOpacity())/100,0,1),e.sourceState=this.getSourceState(),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==n?n:!1===e.managed?1/0:0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e},e.prototype.getLayersArray=function(t){return(0,r.O3)()},e.prototype.getLayerStatesArray=function(t){return(0,r.O3)()},e.prototype.getExtent=function(){return this.get(s.Z.EXTENT)},e.prototype.getMaxResolution=function(){return this.get(s.Z.MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(s.Z.MIN_RESOLUTION)},e.prototype.getMinZoom=function(){return this.get(s.Z.MIN_ZOOM)},e.prototype.getMaxZoom=function(){return this.get(s.Z.MAX_ZOOM)},e.prototype.getOpacity=function(){return this.get(s.Z.OPACITY)},e.prototype.getSourceState=function(){return(0,r.O3)()},e.prototype.getVisible=function(){return this.get(s.Z.VISIBLE)},e.prototype.getZIndex=function(){return this.get(s.Z.Z_INDEX)},e.prototype.setExtent=function(t){this.set(s.Z.EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(s.Z.MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(s.Z.MIN_RESOLUTION,t)},e.prototype.setMaxZoom=function(t){this.set(s.Z.MAX_ZOOM,t)},e.prototype.setMinZoom=function(t){this.set(s.Z.MIN_ZOOM,t)},e.prototype.setOpacity=function(t){(0,l.h)("number"==typeof t,64),this.set(s.Z.OPACITY,t)},e.prototype.setVisible=function(t){this.set(s.Z.VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(s.Z.Z_INDEX,t)},e.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),t.prototype.disposeInternal.call(this)},e}(o.ZP)},77701:(t,e,n)=>{n.d(e,{Z:()=>d,j:()=>f});var i,r=n(13002),o=n(73381),s=n(58493),a=n(10410),h=n(28192),l=n(13580),u=n(97208),c=n(82418),p=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function f(t,e){if(!t.visible)return!1;var n=e.resolution;if(n=t.maxResolution)return!1;var i=e.zoom;return i>t.minZoom&&i<=t.maxZoom}const d=function(t){function e(e){var n=this,i=(0,l.f0)({},e);delete i.source,(n=t.call(this,i)||this).mapPrecomposeKey_=null,n.mapRenderKey_=null,n.sourceChangeKey_=null,n.renderer_=null,e.render&&(n.render=e.render),e.map&&n.setMap(e.map),n.addEventListener((0,s.v_)(h.Z.SOURCE),n.handleSourcePropertyChange_);var r=e.source?e.source:null;return n.setSource(r),n}return p(e,t),e.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},e.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},e.prototype.getSource=function(){return this.get(h.Z.SOURCE)||null},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():c.Z.UNDEFINED},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&((0,r.bN)(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=(0,r.oL)(t,o.Z.CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.getFeatures=function(t){return this.renderer_.getFeatures(t)},e.prototype.render=function(t,e){var n=this.getRenderer();if(n.prepareFrame(t))return n.renderFrame(t,e)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&((0,r.bN)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,r.bN)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,r.oL)(t,u.Z.PRECOMPOSE,(function(t){t.frameState.layerStatesArray.push(this.getLayerState(!1))}),this),this.mapRenderKey_=(0,r.oL)(this,o.Z.CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(h.Z.SOURCE,t)},e.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},e.prototype.hasRenderer=function(){return!!this.renderer_},e.prototype.createRenderer=function(){return null},e.prototype.disposeInternal=function(){this.setSource(null),t.prototype.disposeInternal.call(this)},e}(a.Z)},28192:(t,e,n)=>{n.d(e,{Z:()=>i});const i={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source"}},62914:(t,e,n)=>{n.d(e,{Z:()=>C});var i=n(77701);const r="preload",o="useInterimTilesOnError";var s,a=n(13580),h=(s=function(t,e){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},s(t,e)},function(t,e){function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const l=function(t){function e(e){var n=this,i=e||{},r=(0,a.f0)({},i);return delete r.preload,delete r.useInterimTilesOnError,(n=t.call(this,r)||this).setPreload(void 0!==i.preload?i.preload:0),n.setUseInterimTilesOnError(void 0===i.useInterimTilesOnError||i.useInterimTilesOnError),n}return h(e,t),e.prototype.getPreload=function(){return this.get(r)},e.prototype.setPreload=function(t){this.set(r,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(o)},e.prototype.setUseInterimTilesOnError=function(t){this.set(o,t)},e}(i.Z);var u=n(49179),c=n(47589),p=n(19473),f=n(59900),d=n(21915),_=n(22669),g=n(82359),y=n(79682),v=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),m=function(t){function e(e){var n=t.call(this,e)||this;return n.extentChanged=!0,n.renderedExtent_=null,n.renderedPixelRatio,n.renderedProjection=null,n.renderedRevision,n.renderedTiles=[],n.newTiles_=!1,n.tmpExtent=(0,d.lJ)(),n.tmpTileRange_=new p.Z(0,0,0,0),n}return v(e,t),e.prototype.isDrawableTile=function(t){var e=this.getLayer(),n=t.getState(),i=e.getUseInterimTilesOnError();return n==f.Z.LOADED||n==f.Z.EMPTY||n==f.Z.ERROR&&!i},e.prototype.getTile=function(t,e,n,i){var r=i.pixelRatio,o=i.viewState.projection,s=this.getLayer(),a=s.getSource().getTile(t,e,n,r,o);return a.getState()==f.Z.ERROR&&(s.getUseInterimTilesOnError()?s.getPreload()>0&&(this.newTiles_=!0):a.setState(f.Z.LOADED)),this.isDrawableTile(a)||(a=a.getInterimTile()),a},e.prototype.loadedTileCallback=function(e,n,i){return!!this.isDrawableTile(i)&&t.prototype.loadedTileCallback.call(this,e,n,i)},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,e){var n=t.layerStatesArray[t.layerIndex],i=t.viewState,r=i.projection,o=i.resolution,s=i.center,a=i.rotation,h=t.pixelRatio,l=this.getLayer(),p=l.getSource(),_=p.getRevision(),v=p.getTileGridForProjection(r),m=v.getZForResolution(o,p.zDirection),E=v.getResolution(m),x=t.extent,C=n.extent&&(0,c.dY)(n.extent,r);C&&(x=(0,d.Ed)(x,(0,c.dY)(n.extent,r)));var O=p.getTilePixelRatio(h),T=Math.round(t.size[0]*O),S=Math.round(t.size[1]*O);if(a){var I=Math.round(Math.sqrt(T*T+S*S));T=I,S=I}var R=E*T/2/O,w=E*S/2/O,P=[s[0]-R,s[1]-w,s[0]+R,s[1]+w],b=v.getTileRangeForExtentAndZ(x,m),L={};L[m]={};var Z=this.createLoadedTileFinder(p,r,L),A=this.tmpExtent,F=this.tmpTileRange_;this.newTiles_=!1;for(var M=b.minX;M<=b.maxX;++M)for(var D=b.minY;D<=b.maxY;++D){var N=this.getTile(m,M,D,t);if(this.isDrawableTile(N)){var k=(0,u.sq)(this);if(N.getState()==f.Z.LOADED){L[m][N.tileCoord.toString()]=N;var G=N.inTransition(k);this.newTiles_||!G&&-1!==this.renderedTiles.indexOf(N)||(this.newTiles_=!0)}if(1===N.getAlpha(k,t.time))continue}var j=v.getTileCoordChildTileRange(N.tileCoord,F,A),X=!1;j&&(X=Z(m+1,j)),X||v.forEachTileCoordParentTileRange(N.tileCoord,Z,F,A)}var Y=E/o;(0,g.qC)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/O,1/O,a,-T/2,-S/2);var z=this.createTransformString(this.pixelTransform);this.useContainer(e,z,n.opacity);var W=this.context,K=W.canvas;(0,g.nb)(this.inversePixelTransform,this.pixelTransform),(0,g.qC)(this.tempTransform_,T/2,S/2,Y,Y,0,-T/2,-S/2),K.width!=T||K.height!=S?(K.width=T,K.height=S):this.containerReused||W.clearRect(0,0,T,S),C&&this.clipUnrotated(W,t,C),this.preRender(W,t),this.renderedTiles.length=0;var U,V,B,H=Object.keys(L).map(Number);H.sort(y.kK),1!==n.opacity||this.containerReused&&!p.getOpaque(t.viewState.projection)?(U=[],V=[]):H=H.reverse();for(var q=H.length-1;q>=0;--q){var J=H[q],$=p.getTilePixelSize(J,h,r),Q=v.getResolution(J)/E,tt=$[0]*Q*Y,et=$[1]*Q*Y,nt=v.getTileCoordForCoordAndZ((0,d.rL)(P),J),it=v.getTileCoordExtent(nt),rt=(0,g.nn)(this.tempTransform_,[O*(it[0]-P[0])/E,O*(P[3]-it[3])/E]),ot=O*p.getGutterForProjection(r),st=L[J];for(var at in st){var ht=(N=st[at]).tileCoord,lt=rt[0]-(nt[1]-ht[1])*tt,ut=Math.round(lt+tt),ct=rt[1]-(nt[2]-ht[2])*et,pt=Math.round(ct+et),ft=ut-(M=Math.round(lt)),dt=pt-(D=Math.round(ct)),_t=m===J;if(!(G=_t&&1!==N.getAlpha((0,u.sq)(this),t.time)))if(U){W.save(),B=[M,D,M+ft,D,M+ft,D+dt,M,D+dt];for(var gt=0,yt=U.length;gt{n.d(e,{Z:()=>bt});var i,r=n(77701),o=n(13580),s=n(31219),a=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h="renderOrder";const l=function(t){function e(e){var n=this,i=e||{},r=(0,o.f0)({},i);return delete r.style,delete r.renderBuffer,delete r.updateWhileAnimating,delete r.updateWhileInteracting,(n=t.call(this,r)||this).declutter_=void 0!==i.declutter&&i.declutter,n.renderBuffer_=void 0!==i.renderBuffer?i.renderBuffer:100,n.style_=null,n.styleFunction_=void 0,n.setStyle(i.style),n.updateWhileAnimating_=void 0!==i.updateWhileAnimating&&i.updateWhileAnimating,n.updateWhileInteracting_=void 0!==i.updateWhileInteracting&&i.updateWhileInteracting,n}return a(e,t),e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(h)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.setRenderOrder=function(t){this.set(h,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:s.yF,this.styleFunction_=null===t?void 0:(0,s.J$)(this.style_),this.changed()},e}(r.Z);var u=n(49179),c=n(6908),p=n(21915),f=n(47589),d=n(79682),_=n(45120),g=n(34178),y=n(28795),v=n(86204);const m=function(){function t(){}return t.prototype.drawCustom=function(t,e,n){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,e){},t.prototype.drawFeature=function(t,e){},t.prototype.drawGeometryCollection=function(t,e){},t.prototype.drawLineString=function(t,e){},t.prototype.drawMultiLineString=function(t,e){},t.prototype.drawMultiPoint=function(t,e){},t.prototype.drawMultiPolygon=function(t,e){},t.prototype.drawPoint=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.drawText=function(t,e){},t.prototype.setFillStrokeStyle=function(t,e){},t.prototype.setImageStyle=function(t,e){},t.prototype.setTextStyle=function(t,e){},t}();var E=n(57650),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},C=[x.FILL],O=[x.STROKE],T=[x.BEGIN_PATH],S=[x.CLOSE_PATH];const I=x;var R=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),w=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.tolerance=e,o.maxExtent=n,o.pixelRatio=r,o.maxLineWidth=0,o.resolution=i,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return R(e,t),e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))},e.prototype.appendFlatCoordinates=function(t,e,n,i,r,o){var s=this.coordinates.length,a=this.getBufferedMaxExtent();o&&(e+=i);var h,l,u,c=t[e],f=t[e+1],d=this.tmpCoordinate_,_=!0;for(h=e+i;hthis.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},e.prototype.createFill=function(t){var e=t.fillStyle,n=[I.SET_FILL_STYLE,e];return"string"!=typeof e&&n.push(!0),n},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[I.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e){var n=t.fillStyle;"string"==typeof n&&t.currentFillStyle==n||(void 0!==n&&this.instructions.push(e.call(this,t)),t.currentFillStyle=n)},e.prototype.updateStrokeStyle=function(t,e){var n=t.strokeStyle,i=t.lineCap,r=t.lineDash,o=t.lineDashOffset,s=t.lineJoin,a=t.lineWidth,h=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=i||r!=t.currentLineDash&&!(0,d.fS)(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=s||t.currentLineWidth!=a||t.currentMiterLimit!=h)&&(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=i,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=s,t.currentLineWidth=a,t.currentMiterLimit=h)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var e=[I.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,p.d9)(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;(0,p.f3)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(m);const P=w;var b=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const L=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i,r)||this;return o.declutterGroups_=null,o.hitDetectionImage_=null,o.image_=null,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o}return b(e,t),e.prototype.drawCoordinates_=function(t,e,n,i){return this.appendFlatCoordinates(t,e,n,i,!1,!1)},e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.drawCoordinates_(n,0,n.length,i);this.instructions.push([I.DRAW_IMAGE,r,o,this.image_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([I.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.drawCoordinates_(n,0,n.length,i);this.instructions.push([I.DRAW_IMAGE,r,o,this.image_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([I.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(e)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,t.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,e){var n=t.getAnchor(),i=t.getSize(),r=t.getHitDetectionImage(1),o=t.getImage(1),s=t.getOrigin();this.anchorX_=n[0],this.anchorY_=n[1],this.declutterGroups_=e,this.hitDetectionImage_=r,this.image_=o,this.height_=i[1],this.opacity_=t.getOpacity(),this.originX_=s[0],this.originY_=s[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScale(),this.width_=i[0]},e}(P);var Z=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const A=function(t){function e(e,n,i,r){return t.call(this,e,n,i,r)||this}return Z(e,t),e.prototype.drawFlatCoordinates_=function(t,e,n,i){var r=this.coordinates.length,o=this.appendFlatCoordinates(t,e,n,i,!1,!1),s=[I.MOVE_TO_LINE_TO,r,o];return this.instructions.push(s),this.hitDetectionInstructions.push(s),n},e.prototype.drawLineString=function(t,e){var n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0!==i&&void 0!==r){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([I.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],T);var o=t.getFlatCoordinates(),s=t.getStride();this.drawFlatCoordinates_(o,0,o.length,s),this.hitDetectionInstructions.push(O),this.endGeometry(e)}},e.prototype.drawMultiLineString=function(t,e){var n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0!==i&&void 0!==r){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([I.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],T);for(var o=t.getEnds(),s=t.getFlatCoordinates(),a=t.getStride(),h=0,l=0,u=o.length;lt&&(y>g&&(g=y,d=v,_=o),y=0,v=o-r)),s=a,u=p,c=f),h=m,l=E}return(y+=a)>g?[v,o]:[d,_]}var k=n(78288),G=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),j={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},X={Circle:D,Default:P,Image:L,LineString:A,Polygon:D,Text:function(t){function e(e,n,i,r){var o=t.call(this,e,n,i,r)||this;return o.declutterGroups_,o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",E.GK.prune(),o}return G(e,t),e.prototype.finish=function(){var e=t.prototype.finish.call(this);return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e},e.prototype.drawText=function(t,e){var n=this.textFillState_,i=this.textStrokeState_,r=this.textState_;if(""!==this.text_&&r&&(n||i)){var o,s,a=this.coordinates.length,h=t.getType(),l=null,u=2,c=2;if(r.placement===k.Z.LINE){if(!(0,p.kK)(this.getBufferedMaxExtent(),t.getExtent()))return;var f=void 0;if(l=t.getFlatCoordinates(),c=t.getStride(),h==y.Z.LINE_STRING)f=[l.length];else if(h==y.Z.MULTI_LINE_STRING)f=t.getEnds();else if(h==y.Z.POLYGON)f=t.getEnds().slice(0,1);else if(h==y.Z.MULTI_POLYGON){var d=t.getEndss();for(f=[],o=0,s=d.length;ot[n-i],_=r.length,g=t[e],y=t[e+1],v=t[e+=i],m=t[e+1],E=0,x=Math.sqrt(Math.pow(v-g,2)+Math.pow(m-y,2)),C=!1,O=0;O<_;++O){for(var T=r[c=d?_-O-1:O],S=a*h(l,T,u),I=o+S/2;e0?-Math.PI:Math.PI),void 0!==p){var P=w-p;if(C=C||0!==P,P+=P>Math.PI?-2*Math.PI:P<-Math.PI?2*Math.PI:0,Math.abs(P)>s)return null}p=w;var b=R/x,L=(0,B.t7)(g,v,b),Z=(0,B.t7)(y,m,b);f[c]=[L,Z,S/2,w,T],o+=S}return C?f:[[f[0][0],f[0][1],f[0][2],f[0][3],r]]}var q=n(80967),J=n(82582),$=n.n(J),Q=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),tt=(0,p.lJ)(),et=(0,U.Ue)(),nt=[],it=[],rt=[],ot=[],st=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.overlaps=i,o.pixelRatio=n,o.resolution=e,o.alignFill_,o.declutterItems=[],o.instructions=r.instructions,o.coordinates=r.coordinates,o.coordinateCache_={},o.renderedTransform_=(0,U.Ue)(),o.hitDetectionInstructions=r.hitDetectionInstructions,o.pixelCoordinates_=null,o.viewRotation_=0,o.fillStates=r.fillStates||{},o.strokeStates=r.strokeStates||{},o.textStates=r.textStates||{},o.widths_={},o}return Q(e,t),e.prototype.disposeInternal=function(){E.GK.release(this),t.prototype.disposeInternal.call(this)},e.prototype.getTextImage=function(t,e,n,i){var r,o=i+e+t+n+this.pixelRatio;if(!E.GK.containsKey(o)){var s=i?this.strokeStates[i]:null,a=n?this.fillStates[n]:null,h=this.textStates[e],l=this.pixelRatio,u=h.scale*l,c=j[h.textAlign||E.PH],p=i&&s.lineWidth?s.lineWidth:0,f=t.split("\n"),d=f.length,_=[],g=(0,E.gs)(h.font,f,_),y=(0,E.fk)(h.font),v=y*d,m=g+p,x=(0,z.E4)(Math.ceil((m+2)*u),Math.ceil((v+p)*u));r=x.canvas,E.GK.set(o,r),1!=u&&x.scale(u,u),x.font=h.font,i&&(x.strokeStyle=s.strokeStyle,x.lineWidth=p,x.lineCap=s.lineCap,x.lineJoin=s.lineJoin,x.miterLimit=s.miterLimit,x.setLineDash&&s.lineDash.length&&(x.setLineDash(s.lineDash),x.lineDashOffset=s.lineDashOffset)),n&&(x.fillStyle=a.fillStyle),x.textBaseline="middle",x.textAlign="center";var C=.5-c,O=c*m+C*p,T=void 0;if(i)for(T=0;Ti.width?i.width-l:_,C=a+u>i.height?i.height-u:a,O=g[3]+x*f+g[1],T=g[0]+C*f+g[2],S=e-g[3],I=n-g[0];(m||0!==c)&&(nt[0]=S,ot[0]=S,nt[1]=I,it[1]=I,it[0]=S+O,rt[0]=it[0],rt[1]=I+T,ot[1]=rt[1]);var R=null;if(0!==c){var w=e+r,P=n+o;R=(0,U.qC)(et,w,P,1,1,c,-w,-P),(0,U.nn)(et,nt),(0,U.nn)(et,it),(0,U.nn)(et,rt),(0,U.nn)(et,ot),(0,p.T9)(Math.min(nt[0],it[0],rt[0],ot[0]),Math.min(nt[1],it[1],rt[1],ot[1]),Math.max(nt[0],it[0],rt[0],ot[0]),Math.max(nt[1],it[1],rt[1],ot[1]),tt)}else(0,p.T9)(S,I,S+O,I+T,tt);var b=t.canvas,L=v?v[2]*f/2:0,Z=tt[0]-L<=b.width&&tt[2]+L>=0&&tt[1]-L<=b.height&&tt[3]+L>=0;if(d&&(e=Math.round(e),n=Math.round(n)),s){if(!Z&&1==s[4])return;(0,p.l7)(s,tt);var A=Z?[t,R?R.slice(0):null,h,i,l,u,x,C,e,n,f]:null;A&&(m&&A.push(y,v,nt,it,rt,ot),s.push(A))}else Z&&(m&&this.replayTextBackground_(t,nt,it,rt,ot,y,v),(0,E.AE)(t,R,h,i,l,u,x,C,e,n,f))},e.prototype.fill_=function(t){if(this.alignFill_){var e=(0,U.nn)(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;t.save(),t.translate(e[0]%n,e[1]%n),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},e.prototype.setStrokeStyle_=function(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},e.prototype.renderDeclutter=function(t,e,n,i){if(t&&t.length>5){var r=t[4];if(1==r||r==t.length-5){var o={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};if(i||(i=new($())(9)),!i.collides(o)){i.insert(o);for(var s=5,a=t.length;s11&&this.replayTextBackground_(h[0],h[13],h[14],h[15],h[16],h[11],h[12]),E.AE.apply(void 0,h),u!==n&&(l.globalAlpha=u)}}t.length=5,(0,p.YN)(t)}}return i},e.prototype.drawTextImageWithPointPlacement_=function(t,e,n,i){var r=this.textStates[e],o=this.getTextImage(t,e,i,n),s=this.strokeStates[n],a=this.pixelRatio,h=j[r.textAlign||E.PH],l=j[r.textBaseline||E.ru],u=s&&s.lineWidth?s.lineWidth:0;return{label:o,anchorX:h*(o.width/a-2*r.scale)+2*(.5-h)*u,anchorY:l*o.height/a+2*(.5-l)*u}},e.prototype.execute_=function(t,e,n,i,r,o){var s;this.declutterItems.length=0,this.pixelCoordinates_&&(0,d.fS)(e,this.renderedTransform_)?s=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),s=(0,W.vT)(this.coordinates,0,this.coordinates.length,2,e,this.pixelCoordinates_),(0,U.lk)(this.renderedTransform_,e));for(var a,h,l,u,c,f,_,g,y,v,m,x,C,O,T,S,R,w=0,P=n.length,b=0,L=0,Z=0,A=null,F=null,M=this.coordinateCache_,D=this.viewRotation_,N=Math.round(1e12*Math.atan2(-e[1],e[0]))/1e12,k={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:D},G=this.instructions!=n||this.overlaps?0:200;wG&&(this.fill_(t),L=0),Z>G&&(t.stroke(),Z=0),L||Z||(t.beginPath(),u=NaN,c=NaN),++w;break;case I.CIRCLE:var Y=s[b=X[1]],z=s[b+1],K=s[b+2]-Y,B=s[b+3]-z,q=Math.sqrt(K*K+B*B);t.moveTo(Y+q,z),t.arc(Y,z,q,0,2*Math.PI,!0),++w;break;case I.CLOSE_PATH:t.closePath(),++w;break;case I.CUSTOM:b=X[1],a=X[2];var J=X[3],$=X[4],Q=6==X.length?X[5]:void 0;k.geometry=J,k.feature=T,w in M||(M[w]=[]);var tt=M[w];Q?Q(s,b,a,2,tt):(tt[0]=s[b],tt[1]=s[b+1],tt.length=2),$(tt,k),++w;break;case I.DRAW_IMAGE:b=X[1],a=X[2],v=X[3],h=X[4],l=X[5],y=r?null:X[6];var et=X[7],nt=X[8],it=X[9],rt=X[10],ot=X[11],st=X[12],at=X[13],ht=X[14];if(!v&&X.length>=19){m=X[18],x=X[19],C=X[20],O=X[21];var lt=this.drawTextImageWithPointPlacement_(m,x,C,O);v=lt.label,X[3]=v;var ut=X[22];h=(lt.anchorX-ut)*this.pixelRatio,X[4]=h;var ct=X[23];l=(lt.anchorY-ct)*this.pixelRatio,X[5]=l,et=v.height,X[7]=et,ht=v.width,X[14]=ht}var pt=void 0;X.length>24&&(pt=X[24]);var ft=void 0,dt=void 0,_t=void 0;X.length>16?(ft=X[15],dt=X[16],_t=X[17]):(ft=E.oB,dt=!1,_t=!1),ot&&N?st+=D:ot||N||(st-=D);for(var gt=0,yt=0;b=o;)pt(n,t+r,t+o),pt(n,t+o,t+r),pt(n,t-o,t+r),pt(n,t-r,t+o),pt(n,t-r,t-o),pt(n,t-o,t-r),pt(n,t+o,t-r),pt(n,t+r,t-o),2*((s+=1+2*++o)-r)+1>0&&(s+=1-2*(r-=1));return ct[t]=n,n}(i);function f(t){for(var e=l.getImageData(0,0,s,s).data,n=0;n0){var a=void 0;return(!o||u!=K.IMAGE&&u!=K.TEXT||-1!==o.indexOf(t))&&(a=r(t)),a||void l.clearRect(0,0,s,s)}}var _,g,y,v,m,E=Object.keys(this.executorsByZIndex_).map(Number);for(E.sort(d.kK),_=E.length-1;_>=0;--_){var x=E[_].toString();for(y=this.executorsByZIndex_[x],g=lt.length-1;g>=0;--g)if(void 0!==(v=y[u=lt[g]])&&(m=v.executeHitDetection(l,a,n,f,h)))return m}},e.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var n=e[0],i=e[1],r=e[2],o=e[3],s=[n,i,n,o,r,o,r,i];return(0,W.vT)(s,0,8,2,t,s),s},e.prototype.isEmpty=function(){return(0,o.xb)(this.executorsByZIndex_)},e.prototype.execute=function(t,e,n,i,r,o){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(d.kK),this.maxExtent_&&(t.save(),this.clip(t,e));var a,h,l,u,c,p,f=r||lt;for(a=0,h=s.length;a=r)for(i=r;i0&&(s.width=0),this.container;var h=Math.round(t.size[0]*n),l=Math.round(t.size[1]*n);s.width!=h||s.height!=l?(s.width=h,s.height=l,s.style.transform!==r&&(s.style.transform=r)):this.containerReused||o.clearRect(0,0,h,l),this.preRender(o,t);var u=t.extent,_=t.viewState,g=_.center,y=_.resolution,v=_.projection,m=_.rotation,E=v.getExtent(),x=this.getLayer().getSource(),C=!1;if(i.extent){var O=(0,f.dY)(i.extent,v);(C=!(0,p.r4)(O,t.extent)&&(0,p.kK)(O,t.extent))&&this.clip(o,t,O)}var T=t.viewHints,S=!(T[c.Z.ANIMATING]||T[c.Z.INTERACTING]),I=this.getRenderTransform(g,y,m,n,h,l,0),R=this.getLayer().getDeclutter()?{}:null;if(a.execute(o,I,m,S,void 0,R),x.getWrapX()&&v.canWrapX()&&!(0,p.r4)(E,u)){for(var w=u[0],P=(0,p.dz)(E),b=0,L=void 0;wE[2];){L=P*++b;var A=this.getRenderTransform(g,y,m,n,h,l,L);a.execute(o,A,m,S,void 0,R),w-=P}}if(R){var F=t.viewHints;!function(t,e,n,i,r,o){for(var s=Object.keys(t).map(Number).sort(d.kK),a=0,h=s.length;a_[2];)E=v*++m,l.push(this.getRenderTransform(i,r,o,.5,u,c,E).slice()),g-=v}this.hitDetectionImageData_=function(t,e,n,i,r,o,s){var a=t[0]/2,h=t[1]/2,l=(0,z.E4)(a,h);l.imageSmoothingEnabled=!1;for(var u=l.canvas,c=new Ot(l,.5,r,null,s),f=n.length,_=Math.ceil(16777216/f),g={},v=0;v{function i(t,e,n){return Math.min(Math.max(t,e),n)}n.d(e,{$W:()=>l,SV:()=>a,Yr:()=>h,bI:()=>s,f9:()=>r,rU:()=>o,t7:()=>u,uZ:()=>i});var r="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2};function o(t,e,n,i,r,o){var a=r-n,h=o-i;if(0!==a||0!==h){var l=((t-n)*a+(e-i)*h)/(a*a+h*h);l>1?(n=r,i=o):l>0&&(n+=a*l,i+=h*l)}return s(t,e,n,i)}function s(t,e,n,i){var r=n-t,o=i-e;return r*r+o*o}function a(t){for(var e=t.length,n=0;nr&&(r=s,i=o)}if(0===r)return null;var a=t[i];t[i]=t[n],t[n]=a;for(var h=n+1;h=0;p--){c[p]=t[p][e]/t[p][p];for(var f=p-1;f>=0;f--)t[f][e]-=t[f][p]*c[p]}return c}function h(t){return t*Math.PI/180}function l(t,e){var n=t%e;return n*e<0?n+e:n}function u(t,e,n){return t+n*(e-t)}},13580:(t,e,n)=>{n.d(e,{KX:()=>o,ZH:()=>r,f0:()=>i,xb:()=>s});var i="function"==typeof Object.assign?Object.assign:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1,r=arguments.length;i{n.d(e,{Wm:()=>l.W,zY:()=>Z,rM:()=>P,Sx:()=>I,UQ:()=>b,OP:()=>A,Vs:()=>W,dY:()=>U,U2:()=>R,_Q:()=>w,Ck:()=>M,WO:()=>F,Cs:()=>Y,lO:()=>z,Fj:()=>K,vs:()=>D,$A:()=>N});var i=n(21882),r=6371008.8;function o(t,e,n){var o=n||r,s=(0,i.Yr)(t[1]),a=(0,i.Yr)(e[1]),h=(a-s)/2,l=(0,i.Yr)(e[0]-t[0])/2,u=Math.sin(h)*Math.sin(h)+Math.sin(l)*Math.sin(l)*Math.cos(s)*Math.cos(a);return 2*o*Math.atan2(Math.sqrt(u),Math.sqrt(1-u))}var s,a=n(21915),h=n(44183),l=n(40868),u=(s=function(t,e){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},s(t,e)},function(t,e){function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=6378137,p=Math.PI*c,f=[-p,-p,p,p],d=[-180,-85,180,85],_=function(t){function e(e){return t.call(this,{code:e,units:l.Z.METERS,extent:f,global:!0,worldExtent:d,getPointResolution:function(t,e){return t/(0,i.f9)(e[1]/c)}})||this}return u(e,t),e}(h.Z),g=[new _("EPSG:3857"),new _("EPSG:102100"),new _("EPSG:102113"),new _("EPSG:900913"),new _("urn:ogc:def:crs:EPSG:6.18:3:3857"),new _("urn:ogc:def:crs:EPSG::3857"),new _("http://www.opengis.net/gml/srs/epsg.xml#3857")];var y=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),v=[-180,-90,180,90],m=6378137*Math.PI/180,E=function(t){function e(e,n){return t.call(this,{code:e,units:l.Z.DEGREES,extent:v,axisOrientation:n,global:!0,metersPerUnit:m,worldExtent:v})||this}return y(e,t),e}(h.Z),x=[new E("CRS:84"),new E("EPSG:4326","neu"),new E("urn:ogc:def:crs:EPSG::4326","neu"),new E("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new E("urn:ogc:def:crs:OGC:1.3:CRS84"),new E("urn:ogc:def:crs:OGC:2:84"),new E("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new E("urn:x-ogc:def:crs:EPSG:4326","neu")],C=n(84110),O=n(31564);function T(t,e,n){var i;if(void 0!==e){for(var r=0,o=t.length;r=2;--l)s[a+l]=e[a+l]}return s}}function Z(t,e,n,i){var r=R(t),o=R(e);(0,C.IH)(r,o,L(n)),(0,C.IH)(o,r,L(i))}function A(t,e){if(t===e)return!0;var n=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||F(t,e)===T)&&n}function F(t,e){var n=t.getCode(),i=e.getCode(),r=(0,C.U2)(n,i);return r||(r=S),r}function M(t,e){return F(R(t),R(e))}function D(t,e,n){return M(e,n)(t,void 0,t.length)}function N(t,e,n){var i=M(e,n);return(0,a.Ne)(t,i)}var k,G,j,X=null;function Y(){return X}function z(t,e){return X?D(t,e,X):t}function W(t,e){return X?D(t,X,e):t}function K(t,e){return X?N(t,e,X):t}function U(t,e){return X?N(t,X,e):t}P(g),P(x),k=g,G=function(t,e,n){var i=t.length,r=n>1?n:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(i));for(var s=p,a=0;as?h=s:h<-s&&(h=-s),o[a+1]=h}return o},j=function(t,e,n){var i=t.length,r=n>1?n:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(i));for(var s=0;s{n.d(e,{Z:()=>r});var i=n(40868);const r=function(){function t(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}return t.prototype.canWrapX=function(){return this.canWrapX_},t.prototype.getCode=function(){return this.code_},t.prototype.getExtent=function(){return this.extent_},t.prototype.getUnits=function(){return this.units_},t.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||i.W[this.units_]},t.prototype.getWorldExtent=function(){return this.worldExtent_},t.prototype.getAxisOrientation=function(){return this.axisOrientation_},t.prototype.isGlobal=function(){return this.global_},t.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},t.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},t.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},t.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},t.prototype.setWorldExtent=function(t){this.worldExtent_=t},t.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},t.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},t}()},40868:(t,e,n)=>{n.d(e,{W:()=>r,Z:()=>o});var i={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},r={};r[i.DEGREES]=2*Math.PI*6370997/360,r[i.FEET]=.3048,r[i.METERS]=1,r[i.USFEET]=1200/3937;const o=i},1908:(t,e,n)=>{n.d(e,{z:()=>s});var i=n(47589),r=n(84110),o=n(44183);function s(t){var e,n,s=Object.keys(t.defs),a=s.length;for(e=0;e{n.d(e,{IH:()=>o,U2:()=>r});var i={};function r(t){return i[t]||null}function o(t,e){i[t]=e}},84110:(t,e,n)=>{n.d(e,{IH:()=>r,U2:()=>o});var i={};function r(t,e,n){var r=t.getCode(),o=e.getCode();r in i||(i[r]={}),i[r][o]=n}function o(t,e){var n;return t in i&&e in i[t]&&(n=i[t][e]),n}},41173:(t,e,n)=>{n.d(e,{Z:()=>s});var i,r=n(9520),o=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const s=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.inversePixelTransform=n,o.frameState=i,o.context=r,o}return o(e,t),e}(r.ZP)},97208:(t,e,n)=>{n.d(e,{Z:()=>i});const i={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},57650:(t,e,n)=>{n.d(e,{Uh:()=>P,bL:()=>d,Df:()=>f,mb:()=>_,X9:()=>g,He:()=>y,rc:()=>v,yC:()=>T,V4:()=>m,oB:()=>O,Tx:()=>E,PH:()=>x,ru:()=>C,AE:()=>G,GK:()=>S,Kd:()=>M,fk:()=>A,gs:()=>D,qs:()=>N});var i,r,o=n(67644),s=n(85386),a=n(13580),h=n(82359),l=n(49179),u=n(83482),c=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t){function e(e){var n=t.call(this,e)||this;return n.consumers={},n}return c(e,t),e.prototype.clear=function(){this.consumers={},t.prototype.clear.call(this)},e.prototype.get=function(e,n){var i=t.prototype.get.call(this,e),r=(0,l.sq)(n);return r in this.consumers||(this.consumers[r]={}),this.consumers[r][e]=!0,i},e.prototype.prune=function(){t:for(;this.canExpireCache();){var t=this.peekLastKey();for(var e in this.consumers)if(t in this.consumers[e])break t;var n=this.pop();for(var e in n.width=0,n.height=0,this.consumers)delete this.consumers[e][t]}},e.prototype.release=function(t){delete this.consumers[(0,l.sq)(t)]},e}(u.Z),f="10px sans-serif",d="#000",_="round",g=[],y=0,v="round",m=10,E="#000",x="center",C="middle",O=[0,0,0,0],T=1,S=new p,I={},R=null,w={},P=function(){var t,e,n=I,i="32px ",s=["monospace","serif"],h=s.length,l="wmytzilWMYTZIL@#/&?$%10";function u(t,n,r){for(var o=b(),a=!0,u=0;u{n.d(e,{Z:()=>m});var i,r=n(21915),o=n(85386),s=n(41173),a=n(97208),h=n(57650),l=n(49179),u=n(11256),c=n(56834),p=n(73381),f=n(82418),d=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const _=function(t){function e(e){var n=t.call(this)||this;return n.boundHandleImageChange_=n.handleImageChange_.bind(n),n.layer_=e,n}return d(e,t),e.prototype.getFeatures=function(t){return(0,l.O3)()},e.prototype.prepareFrame=function(t){return(0,l.O3)()},e.prototype.renderFrame=function(t,e){return(0,l.O3)()},e.prototype.loadedTileCallback=function(t,e,n){t[e]||(t[e]={}),t[e][n.tileCoord.toString()]=n},e.prototype.createLoadedTileFinder=function(t,e,n){return function(i,r){var o=this.loadedTileCallback.bind(this,n,i);return t.forEachLoadedTile(e,i,r,o)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r){},e.prototype.getDataAtPixel=function(t,e,n){return(0,l.O3)()},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){t.target.getState()===u.Z.LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=u.Z.LOADED&&e!=u.Z.ERROR&&t.addEventListener(p.Z.CHANGE,this.boundHandleImageChange_),e==u.Z.IDLE&&(t.load(),e=t.getState()),e==u.Z.LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t.getVisible()&&t.getSourceState()==f.Z.READY&&t.changed()},e}(c.Z);var g=n(82359),y=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),v=function(t){function e(e){var n=t.call(this,e)||this;return n.container=null,n.renderedResolution,n.tempTransform_=(0,g.Ue)(),n.pixelTransform=(0,g.Ue)(),n.inversePixelTransform=(0,g.Ue)(),n.context=null,n.containerReused=!1,n.createTransformStringCanvas_=(0,o.E4)(1,1).canvas,n}return y(e,t),e.prototype.useContainer=function(t,e,n){var i,r,s=this.getLayer().getClassName();if(t&&""===t.style.opacity&&t.className===s&&(h=t.firstElementChild)instanceof HTMLCanvasElement&&(r=h.getContext("2d")),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){(i=document.createElement("div")).className=s;var a=i.style;a.position="absolute",a.width="100%",a.height="100%";var h=(r=(0,o.E4)()).canvas;i.appendChild(h),(a=h.style).position="absolute",a.left="0",a.transformOrigin="top left",this.container=i,this.context=r}},e.prototype.clip=function(t,e,n){var i=e.pixelRatio,o=e.size[0]*i/2,s=e.size[1]*i/2,a=e.viewState.rotation,l=(0,r.rL)(n),u=(0,r.Xv)(n),c=(0,r.w$)(n),p=(0,r.hC)(n);(0,g.nn)(e.coordinateToPixelTransform,l),(0,g.nn)(e.coordinateToPixelTransform,u),(0,g.nn)(e.coordinateToPixelTransform,c),(0,g.nn)(e.coordinateToPixelTransform,p),t.save(),(0,h.qs)(t,-a,o,s),t.beginPath(),t.moveTo(l[0]*i,l[1]*i),t.lineTo(u[0]*i,u[1]*i),t.lineTo(c[0]*i,c[1]*i),t.lineTo(p[0]*i,p[1]*i),t.clip(),(0,h.qs)(t,a,o,s)},e.prototype.clipUnrotated=function(t,e,n){var i=(0,r.rL)(n),o=(0,r.Xv)(n),s=(0,r.w$)(n),a=(0,r.hC)(n);(0,g.nn)(e.coordinateToPixelTransform,i),(0,g.nn)(e.coordinateToPixelTransform,o),(0,g.nn)(e.coordinateToPixelTransform,s),(0,g.nn)(e.coordinateToPixelTransform,a);var h=this.inversePixelTransform;(0,g.nn)(h,i),(0,g.nn)(h,o),(0,g.nn)(h,s),(0,g.nn)(h,a),t.save(),t.beginPath(),t.moveTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()},e.prototype.dispatchRenderEvent_=function(t,e,n){var i=this.getLayer();if(i.hasListener(t)){var r=new s.Z(t,this.inversePixelTransform,n,e);i.dispatchEvent(r)}},e.prototype.preRender=function(t,e){this.dispatchRenderEvent_(a.Z.PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(a.Z.POSTRENDER,t,e)},e.prototype.getRenderTransform=function(t,e,n,i,r,o,s){var a=r/2,h=o/2,l=i/e,u=-l,c=-t[0]+s,p=-t[1];return(0,g.qC)(this.tempTransform_,a,h,l,u,-n,c,p)},e.prototype.getDataAtPixel=function(t,e,n){var i,r=(0,g.nn)(this.inversePixelTransform,t.slice()),o=this.context;try{i=o.getImageData(Math.round(r[0]),Math.round(r[1]),1,1).data}catch(t){return"SecurityError"===t.name?new Uint8Array:i}return 0===i[3]?null:i},e.prototype.createTransformString=function(t){return this.createTransformStringCanvas_.style.transform=(0,g.BB)(t),this.createTransformStringCanvas_.style.transform},e}(_);const m=v},52209:(t,e,n)=>{n.d(e,{a:()=>a,s:()=>l});var i=n(85386),r=n(21915),o=n(21882),s=n(47589);function a(t,e,n,i){var o=(0,s.vs)(n,e,t),a=(0,s._Q)(e,i,n),h=e.getMetersPerUnit();void 0!==h&&(a*=h);var l=t.getMetersPerUnit();void 0!==l&&(a/=l);var u=t.getExtent();if(!u||(0,r.b8)(u,o)){var c=(0,s._Q)(t,a,o)/a;isFinite(c)&&c>0&&(a/=c)}return a}function h(t,e,n,i){var r=n-t,o=i-e,s=Math.sqrt(r*r+o*o);return[Math.round(n+r/s),Math.round(i+o/s)]}function l(t,e,n,s,a,l,u,c,p,f,d){var _=(0,i.E4)(Math.round(n*t),Math.round(n*e));if(0===p.length)return _.canvas;_.scale(n,n);var g=(0,r.lJ)();p.forEach((function(t,e,n){(0,r.l7)(g,t.extent)}));var y=(0,r.dz)(g),v=(0,r.Cr)(g),m=(0,i.E4)(Math.round(n*y/s),Math.round(n*v/s)),E=n/s;p.forEach((function(t,e,n){var i=t.extent[0]-g[0],o=-(t.extent[3]-g[3]),s=(0,r.dz)(t.extent),a=(0,r.Cr)(t.extent);m.drawImage(t.image,f,f,t.image.width-2*f,t.image.height-2*f,i*E,o*E,s*E,a*E)}));var x=(0,r.rL)(u);return c.getTriangles().forEach((function(t,e,i){var r=t.source,a=t.target,u=r[0][0],c=r[0][1],p=r[1][0],f=r[1][1],d=r[2][0],y=r[2][1],v=(a[0][0]-x[0])/l,E=-(a[0][1]-x[1])/l,C=(a[1][0]-x[0])/l,O=-(a[1][1]-x[1])/l,T=(a[2][0]-x[0])/l,S=-(a[2][1]-x[1])/l,I=u,R=c;u=0,c=0;var w=[[p-=I,f-=R,0,0,C-v],[d-=I,y-=R,0,0,T-v],[0,0,p,f,O-E],[0,0,d,y,S-E]],P=(0,o.SV)(w);if(P){_.save(),_.beginPath();var b=(v+C+T)/3,L=(E+O+S)/3,Z=h(b,L,v,E),A=h(b,L,C,O),F=h(b,L,T,S);_.moveTo(A[0],A[1]),_.lineTo(Z[0],Z[1]),_.lineTo(F[0],F[1]),_.clip(),_.transform(P[0],P[2],P[1],P[3],v,E),_.translate(g[0]-I,g[3]-R),_.scale(s/n,-s/n),_.drawImage(m.canvas,0,0),_.restore()}})),d&&(_.save(),_.strokeStyle="black",_.lineWidth=1,c.getTriangles().forEach((function(t,e,n){var i=t.target,r=(i[0][0]-x[0])/l,o=-(i[0][1]-x[1])/l,s=(i[1][0]-x[0])/l,a=-(i[1][1]-x[1])/l,h=(i[2][0]-x[0])/l,u=-(i[2][1]-x[1])/l;_.beginPath(),_.moveTo(s,a),_.lineTo(r,o),_.lineTo(h,u),_.closePath(),_.stroke()})),_.restore()),_.canvas}},38642:(t,e,n)=>{n.d(e,{Gw:()=>a,YP:()=>o,gE:()=>s,h$:()=>r});var i=n(21882);function r(t){return void 0!==t?0:void 0}function o(t){return void 0!==t?t:void 0}function s(t){var e=2*Math.PI/t;return function(t,n){return n?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0}}function a(t){var e=t||(0,i.Yr)(5);return function(t,n){return n?t:void 0!==t?Math.abs(t)<=e?0:t:void 0}}},50596:(t,e,n)=>{function i(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]+2*e,n[1]=t[1]+2*e,n}function r(t){return t[0]>0&&t[1]>0}function o(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function s(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}n.d(e,{Pq:()=>s,bA:()=>o,f3:()=>i,py:()=>r})},50129:(t,e,n)=>{n.d(e,{Z:()=>d});var i,r=n(49179),o=n(38906),s=n(23068),a=n(28795),h=n(90728),l=n(73381),u=n(21915),c=n(52043),p=n(3871),f=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const d=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,wrapX:e.wrapX})||this;return n.resolution=void 0,n.distance=void 0!==e.distance?e.distance:20,n.features=[],n.geometryFunction=e.geometryFunction||function(t){var e=t.getGeometry();return(0,o.h)(e.getType()==a.Z.POINT,10),e},n.source=e.source,n.source.addEventListener(l.Z.CHANGE,n.refresh.bind(n)),n}return f(e,t),e.prototype.getDistance=function(){return this.distance},e.prototype.getSource=function(){return this.source},e.prototype.loadFeatures=function(t,e,n){this.source.loadFeatures(t,e,n),e!==this.resolution&&(this.clear(),this.resolution=e,this.cluster(),this.addFeatures(this.features))},e.prototype.setDistance=function(t){this.distance=t,this.refresh()},e.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features)},e.prototype.cluster=function(){if(void 0!==this.resolution){this.features.length=0;for(var t=(0,u.lJ)(),e=this.distance*this.resolution,n=this.source.getFeatures(),i={},o=0,s=n.length;o=0;--n){var i=this.geometryFunction(t[n]);i?(0,h.IH)(e,i.getCoordinates()):t.splice(n,1)}(0,h.bA)(e,1/t.length);var r=new s.Z(new c.Z(e));return r.set("features",t),r},e}(p.Z)},71405:(t,e,n)=>{n.d(e,{Z:()=>u});var i,r=n(49179),o=n(58493),s=n(47589),a=n(82418),h=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function l(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}const u=function(t){function e(e){var n=t.call(this)||this;return n.projection_=(0,s.U2)(e.projection),n.attributions_=l(e.attributions),n.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,n.loading=!1,n.state_=void 0!==e.state?e.state:a.Z.READY,n.wrapX_=void 0!==e.wrapX&&e.wrapX,n}return h(e,t),e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolutions=function(){return(0,r.O3)()},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=l(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(o.ZP)},82418:(t,e,n)=>{n.d(e,{Z:()=>i});const i={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"}},24510:(t,e,n)=>{n.d(e,{Z:()=>K});var i,r=n(49179),o=n(59900),s=n(86320),a=n(66575),h=n(73381),l=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const u=function(t){function e(e,n,i){var r=t.call(this)||this,o=i||{};return r.tileCoord=e,r.state=n,r.interimTile=null,r.hifi=!0,r.key="",r.transition_=void 0===o.transition?250:o.transition,r.transitionStarts_={},r}return l(e,t),e.prototype.changed=function(){this.dispatchEvent(h.Z.CHANGE)},e.prototype.disposeInternal=function(){this.setState(o.Z.ABORT)},e.prototype.getKey=function(){return this.key+"/"+this.tileCoord},e.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==o.Z.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this},e.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==o.Z.LOADED){t.interimTile=null;break}t.getState()==o.Z.LOADING?e=t:t.getState()==o.Z.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},e.prototype.getTileCoord=function(){return this.tileCoord},e.prototype.getState=function(){return this.state},e.prototype.setState=function(t){if(this.state!==o.Z.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){(0,r.O3)()},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;var i=e-n+1e3/60;return i>=this.transition_?1:(0,s.YQ)(i/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(a.Z);var c=n(85386),p=n(39862),f=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function d(){var t=(0,c.E4)(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}const _=function(t){function e(e,n,i,r,o,s){var a=t.call(this,e,n,s)||this;return a.crossOrigin_=r,a.src_=i,a.image_=new Image,null!==r&&(a.image_.crossOrigin=r),a.unlisten_=null,a.tileLoadFunction_=o,a}return f(e,t),e.prototype.disposeInternal=function(){this.state==o.Z.LOADING&&(this.unlistenImage_(),this.image_=d()),this.interimTile&&this.interimTile.dispose(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.image_},e.prototype.getKey=function(){return this.src_},e.prototype.handleImageError_=function(){this.state=o.Z.ERROR,this.unlistenImage_(),this.image_=d(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=o.Z.LOADED:this.state=o.Z.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==o.Z.ERROR&&(this.state=o.Z.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==o.Z.IDLE&&(this.state=o.Z.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,p.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(u);var g=n(83482),y=n(70701),v=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const m=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.expireCache=function(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().dispose()},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=this.peekFirstKey(),e=(0,y.Ul)(t)[0];this.forEach(function(t){t.tileCoord[0]!==e&&(this.remove((0,y.km)(t.tileCoord)),t.dispose())}.bind(this))}},e}(g.Z);var E=n(47589),x=n(13002),C=n(21915),O=n(21882),T=n(52209);const S=function(){function t(t,e,n,i,r){this.sourceProj_=t,this.targetProj_=e;var o={},s=(0,E.Ck)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return o[e]||(o[e]=s(t)),o[e]},this.maxSourceExtent_=i,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&(0,C.dz)(i)==(0,C.dz)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,C.dz)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,C.dz)(this.targetProj_.getExtent()):null;var a=(0,C.rL)(n),h=(0,C.Xv)(n),l=(0,C.w$)(n),u=(0,C.hC)(n),c=this.transformInv_(a),p=this.transformInv_(h),f=this.transformInv_(l),d=this.transformInv_(u);if(this.addQuad_(a,h,l,u,c,p,f,d,10),this.wrapsXInSource_){var _=1/0;this.triangles_.forEach((function(t,e,n){_=Math.min(_,t.source[0][0],t.source[1][0],t.source[2][0])})),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-_>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-_>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-_>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-_>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var n=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-n.5&&u<1,f=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var d=(0,C.hI)([t,e,n,i]);f=(0,C.dz)(d)/this.targetWorldWidth_>.25||f}!p&&this.sourceProj_.isGlobal()&&u&&(f=u>.25||f)}if(f||!this.maxSourceExtent_||(0,C.kK)(l,this.maxSourceExtent_)){if(!(f||isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1]))){if(!(h>0))return;f=!0}if(h>0){if(!f){var _=[(t[0]+n[0])/2,(t[1]+n[1])/2],g=this.transformInv_(_),y=void 0;y=p?((0,O.$W)(r[0],c)+(0,O.$W)(s[0],c))/2-(0,O.$W)(g[0],c):(r[0]+s[0])/2-g[0];var v=(r[1]+s[1])/2-g[1];f=y*y+v*v>this.errorThresholdSquared_}if(f){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){var m=[(e[0]+n[0])/2,(e[1]+n[1])/2],E=this.transformInv_(m),x=[(i[0]+t[0])/2,(i[1]+t[1])/2],T=this.transformInv_(x);this.addQuad_(t,e,m,x,r,o,E,T,h-1),this.addQuad_(x,m,n,i,T,E,s,a,h-1)}else{var S=[(t[0]+e[0])/2,(t[1]+e[1])/2],I=this.transformInv_(S),R=[(n[0]+i[0])/2,(n[1]+i[1])/2],w=this.transformInv_(R);this.addQuad_(t,S,R,i,r,I,w,a,h-1),this.addQuad_(S,e,n,R,I,o,s,w,h-1)}return}}if(p){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}this.addTriangle_(t,n,i,r,s,a),this.addTriangle_(t,e,n,r,o,s)}},t.prototype.calculateSourceExtent=function(){var t=(0,C.lJ)();return this.triangles_.forEach((function(e,n,i){var r=e.source;(0,C.Wj)(t,r[0]),(0,C.Wj)(t,r[1]),(0,C.Wj)(t,r[2])})),t},t.prototype.getTriangles=function(){return this.triangles_},t}();var I=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),R=function(t){function e(e,n,i,r,s,a,h,l,u,c,p){var f=t.call(this,s,o.Z.IDLE)||this;f.renderEdges_=void 0!==p&&p,f.pixelRatio_=h,f.gutter_=l,f.canvas_=null,f.sourceTileGrid_=n,f.targetTileGrid_=r,f.wrappedTileCoord_=a||s,f.sourceTiles_=[],f.sourcesListenerKeys_=null,f.sourceZ_=0;var d=r.getTileCoordExtent(f.wrappedTileCoord_),_=f.targetTileGrid_.getExtent(),g=f.sourceTileGrid_.getExtent(),y=_?(0,C.Ed)(d,_):d;if(0===(0,C.bg)(y))return f.state=o.Z.EMPTY,f;var v=e.getExtent();v&&(g=g?(0,C.Ed)(g,v):v);var m=r.getResolution(f.wrappedTileCoord_[0]),E=(0,C.qg)(y),x=(0,T.a)(e,i,E,m);if(!isFinite(x)||x<=0)return f.state=o.Z.EMPTY,f;var I=void 0!==c?c:.5;if(f.triangulation_=new S(e,i,y,g,x*I),0===f.triangulation_.getTriangles().length)return f.state=o.Z.EMPTY,f;f.sourceZ_=n.getZForResolution(x);var R=f.triangulation_.calculateSourceExtent();if(g&&(e.canWrapX()?(R[1]=(0,O.uZ)(R[1],g[1],g[3]),R[3]=(0,O.uZ)(R[3],g[1],g[3])):R=(0,C.Ed)(R,g)),(0,C.bg)(R)){for(var w=n.getTileRangeForExtentAndZ(R,f.sourceZ_),P=w.minX;P<=w.maxX;P++)for(var b=w.minY;b<=w.maxY;b++){var L=u(f.sourceZ_,P,b,h);L&&f.sourceTiles_.push(L)}0===f.sourceTiles_.length&&(f.state=o.Z.EMPTY)}else f.state=o.Z.EMPTY;return f}return I(e,t),e.prototype.disposeInternal=function(){this.state==o.Z.LOADING&&this.unlistenSources_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,n,i){e&&e.getState()==o.Z.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=o.Z.ERROR;else{var e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),i="number"==typeof n?n:n[0],r="number"==typeof n?n:n[1],s=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),h=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=(0,T.s)(i,r,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),s,h,this.triangulation_,t,this.gutter_,this.renderEdges_),this.state=o.Z.LOADED}this.changed()},e.prototype.load=function(){if(this.state==o.Z.IDLE){this.state=o.Z.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,n,i){var r=e.getState();if(r==o.Z.IDLE||r==o.Z.LOADING){t++;var s=(0,x.oL)(e,h.Z.CHANGE,(function(n){var i=e.getState();i!=o.Z.LOADED&&i!=o.Z.ERROR&&i!=o.Z.EMPTY||((0,x.bN)(s),0==--t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(s)}}.bind(this)),this.sourceTiles_.forEach((function(t,e,n){t.getState()==o.Z.IDLE&&t.load()})),0===t&&setTimeout(this.reproject_.bind(this),0)}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(x.bN),this.sourcesListenerKeys_=null},e}(u);const w=R;var P=n(38906);function b(t,e){var n=/\{z\}/g,i=/\{x\}/g,r=/\{y\}/g,o=/\{-y\}/g;return function(s,a,h){return s?t.replace(n,s[0].toString()).replace(i,s[1].toString()).replace(r,s[2].toString()).replace(o,(function(){var t=s[0],n=e.getFullTileRange(t);return(0,P.h)(n,55),(n.getHeight()-s[2]-1).toString()})):void 0}}function L(t,e,n){}var Z=n(9520),A=n(50596),F=n(71405),M=n(25928),D=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),N=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX})||this;n.opaque_=void 0!==e.opaque&&e.opaque,n.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,n.tileGrid=void 0!==e.tileGrid?e.tileGrid:null;var i=e.cacheSize;if(void 0===i){var r=[256,256],o=e.tileGrid;o&&(0,A.Pq)(o.getTileSize(o.getMinZoom()),r);var s="undefined"!=typeof screen,a=s?screen.availWidth||screen.width:1920,h=s?screen.availHeight||screen.height:1080;i=4*Math.ceil(a/r[0])*Math.ceil(h/r[1])}return n.tileCache=new m(i),n.tmpSize=[0,0],n.key_=e.key||"",n.tileOptions={transition:e.transition},n.zDirection=e.zDirection?e.zDirection:0,n}return D(e,t),e.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},e.prototype.expireCache=function(t,e){var n=this.getTileCacheForProjection(t);n&&n.expireCache(e)},e.prototype.forEachLoadedTile=function(t,e,n,i){var r=this.getTileCacheForProjection(t);if(!r)return!1;for(var s,a,h,l=!0,u=n.minX;u<=n.maxX;++u)for(var c=n.minY;c<=n.maxY;++c)a=(0,y.lg)(e,u,c),h=!1,r.containsKey(a)&&(h=(s=r.get(a)).getState()===o.Z.LOADED)&&(h=!1!==i(s)),h||(l=!1);return l},e.prototype.getGutterForProjection=function(t){return 0},e.prototype.getKey=function(){return this.key_},e.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},e.prototype.getOpaque=function(t){return this.opaque_},e.prototype.getResolutions=function(){return this.tileGrid.getResolutions()},e.prototype.getTile=function(t,e,n,i,o){return(0,r.O3)()},e.prototype.getTileGrid=function(){return this.tileGrid},e.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:(0,M.X$)(t)},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();return e&&!(0,E.OP)(e,t)?null:this.tileCache},e.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},e.prototype.getTilePixelSize=function(t,e,n){var i=this.getTileGridForProjection(n),r=this.getTilePixelRatio(e),o=(0,A.Pq)(i.getTileSize(t),this.tmpSize);return 1==r?o:(0,A.bA)(o,r,this.tmpSize)},e.prototype.getTileCoordForTileUrlFunction=function(t,e){var n=void 0!==e?e:this.getProjection(),i=this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(t=(0,M.Cf)(i,t,n)),(0,y.tE)(t,i)?t:null},e.prototype.clear=function(){this.tileCache.clear()},e.prototype.refresh=function(){this.clear(),t.prototype.refresh.call(this)},e.prototype.useTile=function(t,e,n,i){},e}(F.Z),k=function(t){function e(e,n){var i=t.call(this,e)||this;return i.tile=n,i}return D(e,t),e}(Z.ZP);const G=N;var j=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const X=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this;return n.generateTileUrlFunction_=!e.tileUrlFunction,n.tileLoadFunction=e.tileLoadFunction,n.tileUrlFunction=e.tileUrlFunction?e.tileUrlFunction.bind(n):L,n.urls=null,e.urls?n.setUrls(e.urls):e.url&&n.setUrl(e.url),n.tileLoadingKeys_={},n}return j(e,t),e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var e,n=t.target,i=(0,r.sq)(n),s=n.getState();s==o.Z.LOADING?(this.tileLoadingKeys_[i]=!0,e="tileloadstart"):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],e=s==o.Z.ERROR?"tileloaderror":s==o.Z.LOADED||s==o.Z.ABORT?"tileloadend":void 0),null!=e&&this.dispatchEvent(new k(e,n))},e.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},e.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()},e.prototype.setUrl=function(t){var e=function(t){var e=[],n=/\{([a-z])-([a-z])\}/.exec(t);if(n){var i=n[1].charCodeAt(0),r=n[2].charCodeAt(0),o=void 0;for(o=i;o<=r;++o)e.push(t.replace(n[0],String.fromCharCode(o)));return e}if(n=/\{(\d+)-(\d+)\}/.exec(t)){for(var s=parseInt(n[2],10),a=parseInt(n[1],10);a<=s;a++)e.push(t.replace(n[0],a.toString()));return e}return e.push(t),e}(t);this.urls=e,this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(function(t,e){for(var n=t.length,i=new Array(n),r=0;r{n.d(e,{Z:()=>y});var i="1.3.0",r=n(38906),o=n(21915),s=n(13580),a=n(21882),h=n(47589),l=n(52209),u=n(50596),c=n(24510);var p=n(70701);function f(t,e){var n=[];Object.keys(e).forEach((function(t){null!==e[t]&&void 0!==e[t]&&n.push(t+"="+encodeURIComponent(e[t]))}));var i=n.join("&");return(t=-1===(t=t.replace(/[?&]$/,"")).indexOf("?")?t+"?":t+"&")+i}var d,_=(d=function(t,e){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},d(t,e)},function(t,e){function n(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function g(t,e,n){var r=this.getTileGrid();if(r||(r=this.getTileGridForProjection(n)),!(r.getResolutions().length<=t[0])){1==e||this.hidpi_&&void 0!==this.serverType_||(e=1);var a=r.getResolution(t[0]),h=r.getTileCoordExtent(t,this.tmpExtent_),l=(0,u.Pq)(r.getTileSize(t[0]),this.tmpSize),c=this.gutter_;0!==c&&(l=(0,u.f3)(l,c,this.tmpSize),h=(0,o.f3)(h,a*c,h)),1!=e&&(l=(0,u.bA)(l,e,this.tmpSize));var p={SERVICE:"WMS",VERSION:i,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return(0,s.f0)(p,this.params_),this.getRequestUrl_(t,l,h,e,n,p)}}const y=function(t){function e(e){var n=this,i=e||{},r=i.params||{},s=!("TRANSPARENT"in r)||r.TRANSPARENT;return(n=t.call(this,{attributions:i.attributions,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,opaque:!s,projection:i.projection,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileClass:i.tileClass,tileGrid:i.tileGrid,tileLoadFunction:i.tileLoadFunction,tileUrlFunction:g,url:i.url,urls:i.urls,wrapX:void 0===i.wrapX||i.wrapX,transition:i.transition})||this).gutter_=void 0!==i.gutter?i.gutter:0,n.params_=r,n.v13_=!0,n.serverType_=i.serverType,n.hidpi_=void 0===i.hidpi||i.hidpi,n.tmpExtent_=(0,o.lJ)(),n.updateV13_(),n.setKey(n.getKeyForParams_()),n}return _(e,t),e.prototype.getFeatureInfoUrl=function(t,e,n,r){var a=(0,h.U2)(n),c=this.getProjection(),p=this.getTileGrid();p||(p=this.getTileGridForProjection(a));var f=p.getZForResolution(e,this.zDirection),d=p.getTileCoordForCoordAndZ(t,f);if(!(p.getResolutions().length<=d[0])){var _=p.getResolution(d[0]),g=p.getTileCoordExtent(d,this.tmpExtent_),y=(0,u.Pq)(p.getTileSize(d[0]),this.tmpSize),v=this.gutter_;0!==v&&(y=(0,u.f3)(y,v,this.tmpSize),g=(0,o.f3)(g,_*v,g)),c&&c!==a&&(_=(0,l.a)(c,a,t,_),g=(0,h.$A)(g,a,c),t=(0,h.vs)(t,a,c));var m={SERVICE:"WMS",VERSION:i,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};(0,s.f0)(m,this.params_,r);var E=Math.floor((t[0]-g[0])/_),x=Math.floor((g[3]-t[1])/_);return m[this.v13_?"I":"X"]=E,m[this.v13_?"J":"Y"]=x,this.getRequestUrl_(d,y,g,1,c||a,m)}},e.prototype.getLegendUrl=function(t,e){if(void 0!==this.urls[0]){var n={SERVICE:"WMS",VERSION:i,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===e||void 0===e.LAYER){var r=this.params_.LAYERS;if(Array.isArray(r)&&1!==r.length)return;n.LAYER=r}if(void 0!==t){var o=this.getProjection()?this.getProjection().getMetersPerUnit():1;n.SCALE=t*o*39.37*(25.4/.28)}return(0,s.f0)(n,e),f(this.urls[0],n)}},e.prototype.getGutter=function(){return this.gutter_},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,e,n,i,o,s){var h=this.urls;if(h){if(s.WIDTH=e[0],s.HEIGHT=e[1],s[this.v13_?"CRS":"SRS"]=o.getCode(),"STYLES"in this.params_||(s.STYLES=""),1!=i)switch(this.serverType_){case"geoserver":var l=90*i+.5|0;"FORMAT_OPTIONS"in s?s.FORMAT_OPTIONS+=";dpi:"+l:s.FORMAT_OPTIONS="dpi:"+l;break;case"mapserver":s.MAP_RESOLUTION=90*i;break;case"carmentaserver":case"qgis":s.DPI=90*i;break;default:(0,r.h)(!1,52)}var u=o.getAxisOrientation(),c=n;if(this.v13_&&"ne"==u.substr(0,2)){var d=void 0;d=n[0],c[0]=n[1],c[1]=d,d=n[2],c[2]=n[3],c[3]=d}return s.BBOX=c.join(","),f(1==h.length?h[0]:h[(0,a.$W)((0,p.vp)(t),h.length)],s)}},e.prototype.getTilePixelRatio=function(t){return this.hidpi_&&void 0!==this.serverType_?t:1},e.prototype.getKeyForParams_=function(){var t=0,e=[];for(var n in this.params_)e[t++]=n+"-"+this.params_[n];return e.join("/")},e.prototype.updateParams=function(t){(0,s.f0)(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())},e.prototype.updateV13_=function(){var t=this.params_.VERSION||i;this.v13_=function(t,e){for(var n=(""+t).split("."),i="1.3".split("."),r=0;rs)return 1;if(s>o)return-1}return 0}(t)>=0},e}(c.Z)},3871:(t,e,n)=>{n.d(e,{Z:()=>P});var i=n(49179),r=n(78426),o=n(19629),s=n(13910),a=n(79682),h=n(38906),l=n(13002),u=n(9520),c=n(73381),p=n(21915),f=n(64011),d=n(34007);function _(t,e){return function(t,e,n,i){return function(r,o,s){var a=new XMLHttpRequest;a.open("GET","function"==typeof t?t(r,o,s):t,!0),e.getType()==d.Z.ARRAY_BUFFER&&(a.responseType="arraybuffer"),a.withCredentials=false,a.onload=function(t){if(!a.status||a.status>=200&&a.status<300){var o=e.getType(),h=void 0;o==d.Z.JSON||o==d.Z.TEXT?h=a.responseText:o==d.Z.XML?(h=a.responseXML)||(h=(new DOMParser).parseFromString(a.responseText,"application/xml")):o==d.Z.ARRAY_BUFFER&&(h=a.response),h?n.call(this,e.readFeatures(h,{extent:r,featureProjection:s}),e.readProjection(h)):i.call(this)}else i.call(this)}.bind(this),a.onerror=function(){i.call(this)}.bind(this),a.send()}}(t,e,(function(t,e){"function"==typeof this.addFeatures&&this.addFeatures(t)}),f.Zn)}function g(t,e){return[[-1/0,-1/0,1/0,1/0]]}var y=n(13580),v=n(71405),m=n(82418);const E="addfeature",x="removefeature";var C=n(82582),O=n.n(C);const T=function(){function t(t){this.rbush_=new(O())(t),this.items_={}}return t.prototype.insert=function(t,e){var n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(n),this.items_[(0,i.sq)(e)]=n},t.prototype.load=function(t,e){for(var n=new Array(e.length),r=0,o=e.length;r{n.d(e,{Z:()=>a});var i,r=n(24510),o=n(25928),s=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const a=function(t){function e(e){var n=e||{},i=void 0!==n.projection?n.projection:"EPSG:3857",r=void 0!==n.tileGrid?n.tileGrid:(0,o.dl)({extent:(0,o.Tl)(i),maxZoom:n.maxZoom,minZoom:n.minZoom,tileSize:n.tileSize});return t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,opaque:n.opaque,projection:i,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:r,tileLoadFunction:n.tileLoadFunction,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:n.tileUrlFunction,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this}return s(e,t),e}(r.Z)},83482:(t,e,n)=>{n.d(e,{Z:()=>h});var i,r=n(38906),o=n(66575),s=n(73381),a=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const h=function(t){function e(e){var n=t.call(this)||this;return n.highWaterMark=void 0!==e?e:2048,n.count_=0,n.entries_={},n.oldest_=null,n.newest_=null,n}return a(e,t),e.prototype.canExpireCache=function(){return this.getCount()>this.highWaterMark},e.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null,this.dispatchEvent(s.Z.CLEAR)},e.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},e.prototype.forEach=function(t){for(var e=this.oldest_;e;)t(e.value_,e.key_,this),e=e.newer},e.prototype.get=function(t,e){var n=this.entries_[t];return(0,r.h)(void 0!==n,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_},e.prototype.remove=function(t){var e=this.entries_[t];return(0,r.h)(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},e.prototype.getCount=function(){return this.count_},e.prototype.getKeys=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.key_;return e},e.prototype.getValues=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.value_;return e},e.prototype.peekLast=function(){return this.oldest_.value_},e.prototype.peekLastKey=function(){return this.oldest_.key_},e.prototype.peekFirstKey=function(){return this.newest_.key_},e.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},e.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},e.prototype.set=function(t,e){(0,r.h)(!(t in this.entries_),16);var n={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_},e.prototype.setSize=function(t){this.highWaterMark=t},e}(o.Z)},59797:(t,e,n)=>{n.d(e,{Z:()=>f});var i,r=n(8913),o=n(45120),s=n(85386),a=n(11256),h=n(57650),l=n(48039),u=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const c=function(t){function e(e){var n=this,i=void 0!==e.rotateWithView&&e.rotateWithView;return(n=t.call(this,{opacity:1,rotateWithView:i,rotation:void 0!==e.rotation?e.rotation:0,scale:1})||this).canvas_=null,n.hitDetectionCanvas_=null,n.fill_=void 0!==e.fill?e.fill:null,n.origin_=[0,0],n.points_=e.points,n.radius_=void 0!==e.radius?e.radius:e.radius1,n.radius2_=e.radius2,n.angle_=void 0!==e.angle?e.angle:0,n.stroke_=void 0!==e.stroke?e.stroke:null,n.anchor_=null,n.size_=null,n.imageSize_=null,n.hitDetectionImageSize_=null,n.render(),n}return u(e,t),e.prototype.clone=function(){var t=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView()});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},e.prototype.getAnchor=function(){return this.anchor_},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.getHitDetectionImage=function(t){return this.hitDetectionCanvas_},e.prototype.getImage=function(t){return this.canvas_},e.prototype.getImageSize=function(){return this.imageSize_},e.prototype.getHitDetectionImageSize=function(){return this.hitDetectionImageSize_},e.prototype.getImageState=function(){return a.Z.LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.render=function(){var t,e=h.mb,n=h.rc,i=0,r=null,a=0,l=0;this.stroke_&&(null===(t=this.stroke_.getColor())&&(t=h.Tx),t=(0,o.y)(t),void 0===(l=this.stroke_.getWidth())&&(l=h.yC),r=this.stroke_.getLineDash(),a=this.stroke_.getLineDashOffset(),void 0===(n=this.stroke_.getLineJoin())&&(n=h.rc),void 0===(e=this.stroke_.getLineCap())&&(e=h.mb),void 0===(i=this.stroke_.getMiterLimit())&&(i=h.V4));var u=2*(this.radius_+l)+1,c={strokeStyle:t,strokeWidth:l,size:u,lineCap:e,lineDash:r,lineDashOffset:a,lineJoin:n,miterLimit:i},p=(0,s.E4)(u,u);this.canvas_=p.canvas;var f=u=this.canvas_.width;this.draw_(c,p,0,0),this.createHitDetectionCanvas_(c),this.anchor_=[u/2,u/2],this.size_=[u,u],this.imageSize_=[f,f]},e.prototype.draw_=function(t,e,n,i){var r,s,a;e.setTransform(1,0,0,1,0,0),e.translate(n,i),e.beginPath();var l=this.points_;if(l===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var u=void 0!==this.radius2_?this.radius2_:this.radius_;for(u!==this.radius_&&(l*=2),r=0;r<=l;r++)s=2*r*Math.PI/l-Math.PI/2+this.angle_,a=r%2==0?this.radius_:u,e.lineTo(t.size/2+a*Math.cos(s),t.size/2+a*Math.sin(s))}if(this.fill_){var c=this.fill_.getColor();null===c&&(c=h.bL),e.fillStyle=(0,o.y)(c),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,e.setLineDash&&t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke()),e.closePath()},e.prototype.createHitDetectionCanvas_=function(t){if(this.hitDetectionImageSize_=[t.size,t.size],this.hitDetectionCanvas_=this.canvas_,this.fill_){var e=this.fill_.getColor(),n=0;if("string"==typeof e&&(e=(0,r._2)(e)),null===e?n=1:Array.isArray(e)&&(n=4===e.length?e[3]:1),0===n){var i=(0,s.E4)(t.size,t.size);this.hitDetectionCanvas_=i.canvas,this.drawHitDetectionCanvas_(t,i,0,0)}}},e.prototype.drawHitDetectionCanvas_=function(t,e,n,i){e.setTransform(1,0,0,1,0,0),e.translate(n,i),e.beginPath();var r=this.points_;if(r===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var o=void 0!==this.radius2_?this.radius2_:this.radius_;o!==this.radius_&&(r*=2);var s=void 0,a=void 0,l=void 0;for(s=0;s<=r;s++)l=2*s*Math.PI/r-Math.PI/2+this.angle_,a=s%2==0?this.radius_:o,e.lineTo(t.size/2+a*Math.cos(l),t.size/2+a*Math.sin(l))}e.fillStyle=h.bL,e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.stroke()),e.closePath()},e}(l.Z);var p=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const f=function(t){function e(e){var n=e||{};return t.call(this,{points:1/0,fill:n.fill,radius:n.radius,stroke:n.stroke})||this}return p(e,t),e.prototype.clone=function(){var t=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius()});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},e.prototype.setRadius=function(t){this.radius_=t,this.render()},e}(c)},98185:(t,e,n)=>{n.d(e,{Z:()=>i});const i=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0})},t.prototype.getColor=function(){return this.color_},t.prototype.setColor=function(t){this.color_=t},t}()},8732:(t,e,n)=>{n.d(e,{Z:()=>O});var i,r=n(49179),o=n(11256),s=n(38906),a=n(8913),h=n(73381),l=n(94814),u=n(85386),c=n(66575),p=n(16250),f=n(39862),d=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),_=function(t){function e(e,n,i,r,o,s){var a=t.call(this)||this;return a.hitDetectionImage_=null,a.image_=e||new Image,null!==r&&(a.image_.crossOrigin=r),a.canvas_=s?document.createElement("canvas"):null,a.color_=s,a.unlisten_=null,a.imageState_=o,a.size_=i,a.src_=n,a.tainted_,a}return d(e,t),e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===o.Z.LOADED){this.tainted_=!1;var t=(0,u.E4)(1,1);try{t.drawImage(this.image_,0,0),t.getImageData(0,0,1,1)}catch(t){this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(h.Z.CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=o.Z.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=o.Z.LOADED,this.size_&&(this.image_.width=this.size_[0],this.image_.height=this.size_[1]),this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.replaceColor_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.canvas_?this.canvas_:this.image_},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(t){if(!this.hitDetectionImage_)if(this.isTainted_()){var e=this.size_[0],n=this.size_[1],i=(0,u.E4)(e,n);i.fillRect(0,0,e,n),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==o.Z.IDLE){this.imageState_=o.Z.LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=(0,f.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},e.prototype.replaceColor_=function(){if(this.color_&&!this.isTainted_()){this.canvas_.width=this.image_.width,this.canvas_.height=this.image_.height;var t=this.canvas_.getContext("2d");t.drawImage(this.image_,0,0);for(var e=t.getImageData(0,0,this.image_.width,this.image_.height),n=e.data,i=this.color_[0]/255,r=this.color_[1]/255,o=this.color_[2]/255,s=0,a=n.length;s0,6);var m=void 0!==i.src?o.Z.IDLE:o.Z.LOADED;return n.color_=void 0!==i.color?(0,a._2)(i.color):null,n.iconImage_=function(t,e,n,i,r,o){var s=p.c.get(e,i,o);return s||(s=new _(t,e,n,i,r,o),p.c.set(e,i,o,s)),s}(d,y,g,n.crossOrigin_,m,n.color_),n.offset_=void 0!==i.offset?i.offset:[0,0],n.offsetOrigin_=void 0!==i.offsetOrigin?i.offsetOrigin:v,n.origin_=null,n.size_=void 0!==i.size?i.size:null,n}return x(e,t),e.prototype.clone=function(){return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},e.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var t=this.anchor_,e=this.getSize();if(this.anchorXUnits_==l.Z.FRACTION||this.anchorYUnits_==l.Z.FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==l.Z.FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==l.Z.FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=v){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=m&&this.anchorOrigin_!=y||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=g&&this.anchorOrigin_!=y||(t[1]=-t[1]+e[1])}return this.normalizedAnchor_=t,this.normalizedAnchor_},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getHitDetectionImageSize=function(){return this.getImageSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(t){return this.iconImage_.getHitDetectionImage(t)},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=v){var e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),this.offsetOrigin_!=m&&this.offsetOrigin_!=y||(t[0]=n[0]-e[0]-t[0]),this.offsetOrigin_!=g&&this.offsetOrigin_!=y||(t[1]=n[1]-e[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(h.Z.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(h.Z.CHANGE,t)},e}(E.Z);const O=C},94814:(t,e,n)=>{n.d(e,{Z:()=>i});const i={FRACTION:"fraction",PIXELS:"pixels"}},16250:(t,e,n)=>{n.d(e,{c:()=>o});var i=n(8913);function r(t,e,n){return e+":"+t+":"+(n?(0,i.XC)(n):"null")}var o=new(function(){function t(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return t.prototype.clear=function(){this.cache_={},this.cacheSize_=0},t.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},t.prototype.expire=function(){if(this.canExpireCache()){var t=0;for(var e in this.cache_){var n=this.cache_[e];0!=(3&t++)||n.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},t.prototype.get=function(t,e,n){var i=r(t,e,n);return i in this.cache_?this.cache_[i]:null},t.prototype.set=function(t,e,n,i){var o=r(t,e,n);this.cache_[o]=i,++this.cacheSize_},t.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},t}())},48039:(t,e,n)=>{n.d(e,{Z:()=>r});var i=n(49179);const r=function(){function t(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale}return t.prototype.clone=function(){return new t({opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},t.prototype.getOpacity=function(){return this.opacity_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getAnchor=function(){return(0,i.O3)()},t.prototype.getImage=function(t){return(0,i.O3)()},t.prototype.getHitDetectionImage=function(t){return(0,i.O3)()},t.prototype.getImageState=function(){return(0,i.O3)()},t.prototype.getImageSize=function(){return(0,i.O3)()},t.prototype.getHitDetectionImageSize=function(){return(0,i.O3)()},t.prototype.getOrigin=function(){return(0,i.O3)()},t.prototype.getSize=function(){return(0,i.O3)()},t.prototype.setOpacity=function(t){this.opacity_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t},t.prototype.listenImageChange=function(t){(0,i.O3)()},t.prototype.load=function(){(0,i.O3)()},t.prototype.unlistenImageChange=function(t){(0,i.O3)()},t}()},20767:(t,e,n)=>{n.d(e,{Z:()=>i});const i=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},t.prototype.getColor=function(){return this.color_},t.prototype.getLineCap=function(){return this.lineCap_},t.prototype.getLineDash=function(){return this.lineDash_},t.prototype.getLineDashOffset=function(){return this.lineDashOffset_},t.prototype.getLineJoin=function(){return this.lineJoin_},t.prototype.getMiterLimit=function(){return this.miterLimit_},t.prototype.getWidth=function(){return this.width_},t.prototype.setColor=function(t){this.color_=t},t.prototype.setLineCap=function(t){this.lineCap_=t},t.prototype.setLineDash=function(t){this.lineDash_=t},t.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t},t.prototype.setLineJoin=function(t){this.lineJoin_=t},t.prototype.setMiterLimit=function(t){this.miterLimit_=t},t.prototype.setWidth=function(t){this.width_=t},t}()},31219:(t,e,n)=>{n.d(e,{J$:()=>h,ZP:()=>p,yF:()=>u});var i=n(38906),r=n(59797),o=n(98185),s=n(20767),a=function(){function t(t){var e=t||{};this.geometry_=null,this.geometryFunction_=c,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex}return t.prototype.clone=function(){var e=this.getGeometry();return e&&"object"==typeof e&&(e=e.clone()),new t({geometry:e,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.setRenderer=function(t){this.renderer_=t},t.prototype.getGeometry=function(){return this.geometry_},t.prototype.getGeometryFunction=function(){return this.geometryFunction_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(t){this.fill_=t},t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(t){this.image_=t},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.getText=function(){return this.text_},t.prototype.setText=function(t){this.text_=t},t.prototype.getZIndex=function(){return this.zIndex_},t.prototype.setGeometry=function(t){"function"==typeof t?this.geometryFunction_=t:"string"==typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=c,this.geometry_=t},t.prototype.setZIndex=function(t){this.zIndex_=t},t}();function h(t){var e,n;"function"==typeof t?e=t:(Array.isArray(t)?n=t:((0,i.h)("function"==typeof t.getZIndex,41),n=[t]),e=function(){return n});return e}var l=null;function u(t,e){if(!l){var n=new o.Z({color:"rgba(255,255,255,0.4)"}),i=new s.Z({color:"#3399CC",width:1.25});l=[new a({image:new r.Z({fill:n,stroke:i,radius:5}),fill:n,stroke:i})]}return l}function c(t){return t.getGeometry()}const p=a},15565:(t,e,n)=>{n.d(e,{Z:()=>o});var i=n(98185),r=n(78288);const o=function(){function t(t){var e=t||{};this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.text_=e.text,this.textAlign_=e.textAlign,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new i.Z({color:"#333"}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:r.Z.POINT,this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding}return t.prototype.clone=function(){return new t({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:this.getScale(),text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()})},t.prototype.getOverflow=function(){return this.overflow_},t.prototype.getFont=function(){return this.font_},t.prototype.getMaxAngle=function(){return this.maxAngle_},t.prototype.getPlacement=function(){return this.placement_},t.prototype.getOffsetX=function(){return this.offsetX_},t.prototype.getOffsetY=function(){return this.offsetY_},t.prototype.getFill=function(){return this.fill_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.getText=function(){return this.text_},t.prototype.getTextAlign=function(){return this.textAlign_},t.prototype.getTextBaseline=function(){return this.textBaseline_},t.prototype.getBackgroundFill=function(){return this.backgroundFill_},t.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},t.prototype.getPadding=function(){return this.padding_},t.prototype.setOverflow=function(t){this.overflow_=t},t.prototype.setFont=function(t){this.font_=t},t.prototype.setMaxAngle=function(t){this.maxAngle_=t},t.prototype.setOffsetX=function(t){this.offsetX_=t},t.prototype.setOffsetY=function(t){this.offsetY_=t},t.prototype.setPlacement=function(t){this.placement_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setFill=function(t){this.fill_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.setText=function(t){this.text_=t},t.prototype.setTextAlign=function(t){this.textAlign_=t},t.prototype.setTextBaseline=function(t){this.textBaseline_=t},t.prototype.setBackgroundFill=function(t){this.backgroundFill_=t},t.prototype.setBackgroundStroke=function(t){this.backgroundStroke_=t},t.prototype.setPadding=function(t){this.padding_=t},t}()},78288:(t,e,n)=>{n.d(e,{Z:()=>i});const i={POINT:"point",LINE:"line"}},70701:(t,e,n)=>{function i(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function r(t,e,n){return t+"/"+e+"/"+n}function o(t){return r(t[0],t[1],t[2])}function s(t){return t.split("/").map(Number)}function a(t){return(t[1]<n||n>e.getMaxZoom())return!1;var o,s=e.getExtent();return!(o=s?e.getTileRangeForExtentAndZ(s,n):e.getFullTileRange(n))||o.containsXY(i,r)}n.d(e,{T9:()=>i,Ul:()=>s,km:()=>o,lg:()=>r,tE:()=>h,vp:()=>a})},25928:(t,e,n)=>{n.d(e,{dl:()=>v,Tl:()=>E,X$:()=>g,Cf:()=>y});var i=n(10508),r=n(50596),o=n(21915),s=n(51748),a=n(47589),h=n(40868),l=n(38906),u=n(19473),c=n(79682),p=n(21882),f=n(70701),d=[0,0,0];const _=function(){function t(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,(0,l.h)((0,c.pT)(this.resolutions_,(function(t,e){return e-t}),!0),17),!t.origins)for(var n=0,r=this.resolutions_.length-1;n=this.minZoom;){if(2===this.zoomFactor_?(o=Math.floor(o/2),s=Math.floor(s/2),r=(0,u.T)(o,o,s,s,n)):r=this.getTileRangeForExtentAndZ(a,h,n),e(h,r))return!0;--h}return!1},t.prototype.getExtent=function(){return this.extent_},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.getMinZoom=function(){return this.minZoom},t.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},t.prototype.getResolution=function(t){return this.resolutions_[t]},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getTileCoordChildTileRange=function(t,e,n){if(t[0]{n.d(e,{S:()=>r,e:()=>i});var i=42,r=256},82359:(t,e,n)=>{n.d(e,{BB:()=>u,Ue:()=>r,lk:()=>o,n3:()=>a,nb:()=>l,nn:()=>s,qC:()=>h});var i=n(38906);function r(){return[1,0,0,1,0,0]}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function s(t,e){var n=e[0],i=e[1];return e[0]=t[0]*n+t[2]*i+t[4],e[1]=t[1]*n+t[3]*i+t[5],e}function a(t,e,n){return r=e,o=0,s=0,a=n,h=0,l=0,(i=t)[0]=r,i[1]=o,i[2]=s,i[3]=a,i[4]=h,i[5]=l,i;var i,r,o,s,a,h,l}function h(t,e,n,i,r,o,s,a){var h=Math.sin(o),l=Math.cos(o);return t[0]=i*l,t[1]=r*h,t[2]=-i*h,t[3]=r*l,t[4]=s*i*l-a*i*h+e,t[5]=s*r*h+a*r*l+n,t}function l(t,e){var n,r=(n=e)[0]*n[3]-n[1]*n[2];(0,i.h)(0!==r,32);var o=e[0],s=e[1],a=e[2],h=e[3],l=e[4],u=e[5];return t[0]=h/r,t[1]=-s/r,t[2]=-a/r,t[3]=o/r,t[4]=(a*u-h*l)/r,t[5]=-(o*u-s*l)/r,t}function u(t){return"matrix("+t.join(", ")+")"}new Array(6)},49179:(t,e,n)=>{function i(){return function(){throw new Error("Unimplemented abstract method.")}()}n.d(e,{O3:()=>i,q4:()=>s,sq:()=>o});var r=0;function o(t){return t.ol_uid||(t.ol_uid=String(++r))}var s="6.1.1"}}]); //# sourceMappingURL=openlayers.bundle.js.map