2 lines
429 KiB
JavaScript
2 lines
429 KiB
JavaScript
/*! For license information please see farmOS-map.js.LICENSE.txt */
|
||
(()=>{var t,e,n,i,r={3965:function(t,e,n){t.exports=function(t,e,n,i,r,o,s,a){"use strict";function l(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var u=l(t),c=l(e),h=l(n),p=l(i),f=l(r),d=l(o),g=l(s),_=function(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}(a),y="gcd-container",v="gcd-button-control",m="gcd-input-query",x="gcd-input-label",E="gcd-input-search",C={namespace:"ol-geocoder",spin:"gcd-pseudo-rotate",hidden:"gcd-hidden",address:"gcd-address",country:"gcd-country",city:"gcd-city",road:"gcd-road",olControl:"ol-control",glass:{container:"gcd-gl-container",control:"gcd-gl-control",button:"gcd-gl-btn",input:"gcd-gl-input",expanded:"gcd-gl-expanded",search:"gcd-gl-search",result:"gcd-gl-result"},inputText:{container:"gcd-txt-container",control:"gcd-txt-control",label:"gcd-txt-label",input:"gcd-txt-input",search:"gcd-txt-search",icon:"gcd-txt-glass",result:"gcd-txt-result"}},w={containerId:y,buttonControlId:v,inputQueryId:m,inputLabelId:x,inputSearchId:E,cssClasses:C};const T=Object.freeze({__proto__:null,containerId:y,buttonControlId:v,inputQueryId:m,inputLabelId:x,inputSearchId:E,cssClasses:C,default:w}),S="addresschosen",O="nominatim",b="reverse",R="glass-button",P="osm",I={provider:P,label:"",placeholder:"Search for an address",featureStyle:null,targetType:R,lang:"en-US",limit:5,keepOpen:!1,preventDefault:!1,preventPanning:!1,preventMarker:!1,defaultFlyResolution:10,debug:!1};function L(t,e="Assertion failed"){if(!t){if("undefined"!=typeof Error)throw new Error(e);throw e}}function M(t){const e=function(){if("performance"in window==0&&(window.performance={}),"now"in window.performance==0){let t=Date.now();performance.timing&&performance.timing.navigationStart&&(t=performance.timing.navigationStart),window.performance.now=()=>Date.now()-t}return window.performance.now()}().toString(36);return t?t+e:e}function A(t){return/^\d+$/u.test(t)}function Z(t,e,n){if(Array.isArray(t))return void t.forEach((t=>Z(t,e)));const i=Array.isArray(e)?e:e.split(/\s+/u);let r=i.length;for(;r--;)N(t,i[r])||j(t,i[r],n)}function F(t,e,n){if(Array.isArray(t))return void t.forEach((t=>F(t,e,n)));const i=Array.isArray(e)?e:e.split(/\s+/u);let r=i.length;for(;r--;)N(t,i[r])&&G(t,i[r],n)}function N(t,e){return t.classList?t.classList.contains(e):D(e).test(t.className)}function k(t,e){let n;if(Array.isArray(t)){if(n=document.createElement(t[0]),t[1].id&&(n.id=t[1].id),t[1].classname&&(n.className=t[1].classname),t[1].attr){const{attr:e}=t[1];if(Array.isArray(e)){let t=-1;for(;++t<e.length;)n.setAttribute(e[t].name,e[t].value)}else n.setAttribute(e.name,e.value)}}else n=document.createElement(t);n.innerHTML=e;const i=document.createDocumentFragment();for(;n.childNodes[0];)i.append(n.childNodes[0]);return n.append(i),n}function D(t){return new RegExp(`(^|\\s+) ${t} (\\s+|$)`,"u")}function j(t,e,n){t.classList?t.classList.add(e):t.className=`${t.className} ${e}`.trim(),n&&A(n)&&window.setTimeout((()=>G(t,e)),n)}function G(t,e,n){t.classList?t.classList.remove(e):t.className=t.className.replace(D(e)," ").trim(),n&&A(n)&&window.setTimeout((()=>j(t,e)),n)}const X=T.cssClasses;class Y{constructor(t){this.options=t,this.els=this.createControl()}createControl(){let t,e,n;return"text-input"===this.options.targetType?(e=`${X.namespace} ${X.inputText.container}`,t=k(["div",{id:T.containerId,classname:e}],Y.input),n={container:t,control:t.querySelector(`.${X.inputText.control}`),label:t.querySelector(`.${X.inputText.label}`),input:t.querySelector(`.${X.inputText.input}`),search:t.querySelector(`.${X.inputText.search}`),result:t.querySelector(`.${X.inputText.result}`)},n.label.innerHTML=this.options.label):(e=`${X.namespace} ${X.glass.container}`,t=k(["div",{id:T.containerId,classname:e}],Y.glass),n={container:t,control:t.querySelector(`.${X.glass.control}`),button:t.querySelector(`.${X.glass.button}`),input:t.querySelector(`.${X.glass.input}`),search:t.querySelector(`.${X.glass.search}`),result:t.querySelector(`.${X.glass.result}`)}),n.input.placeholder=this.options.placeholder,n}}function U(t){return new Promise(((e,n)=>{const i=function(t,e){return e&&"object"==typeof e&&(t+=(/\?/u.test(t)?"&":"?")+W(e)),t}(t.url,t.data);t.jsonp?function(t,e,n){const{head:i}=document,r=document.createElement("script"),o=`f${Math.round(Math.random()*Date.now())}`;r.setAttribute("src",`${t+(t.indexOf("?")>0?"&":"?")+e}=${o}`),window[o]=t=>{window[o]=void 0,setTimeout((()=>i.removeChild(r)),0),n(t)},i.append(r)}(i,t.callbackName,e):fetch(i,{method:"GET",mode:"cors",credentials:"same-origin"}).then((t=>t.json())).then(e).catch(n)}))}function W(t){return Object.keys(t).reduce(((e,n)=>(e.push("object"==typeof t[n]?W(t[n]):`${encodeURIComponent(n)}=${encodeURIComponent(t[n])}`),e)),[]).join("&")}Y.glass=`\n <div class="${X.glass.control} ${X.olControl}">\n <button type="button" id="${T.buttonControlId}" class="${X.glass.button}"></button>\n <input type="text" id="${T.inputQueryId}" class="${X.glass.input}" autocomplete="off" placeholder="Search ...">\n <a id="${T.inputSearchId}" class="${X.glass.search} ${X.hidden}"></a>\n </div>\n <ul class="${X.glass.result}"></ul>\n`,Y.input=`\n <div class="${X.inputText.control}">\n <label type="button" id="${T.inputSearchId}" class="${X.inputText.label}"></label>\n <input type="text" id="${T.inputQueryId}" class="${X.inputText.input}" autocomplete="off" placeholder="Search ...">\n <span class="${X.inputText.icon}"></span>\n <button type="button" id="${T.inputSearchId}" class="${X.inputText.search} ${X.hidden}"></button>\n </div>\n <ul class="${X.inputText.result}"></ul>\n`;class z{constructor(){this.settings={url:"https://photon.komoot.io/api/",params:{q:"",limit:10,lang:"en"},langs:["de","it","fr","en"]}}getParameters(t){return t.lang=t.lang.toLowerCase(),{url:this.settings.url,params:{q:t.query,limit:t.limit||this.settings.params.limit,lang:this.settings.langs.includes(t.lang)?t.lang:this.settings.params.lang}}}handleResponse(t){return 0===t.features.length?[]:t.features.map((t=>({lon:t.geometry.coordinates[0],lat:t.geometry.coordinates[1],address:{name:t.properties.name,postcode:t.properties.postcode,city:t.properties.city,state:t.properties.state,country:t.properties.country},original:{formatted:t.properties.name,details:t.properties}})))}}class B{constructor(t){this.settings={url:"https://nominatim.openstreetmap.org/search",...t,params:{q:"",format:"json",addressdetails:1,limit:10,countrycodes:"",viewbox:"","accept-language":"en-US"}}}getParameters(t){return{url:this.settings.url,params:{q:t.query,format:this.settings.params.format,addressdetails:this.settings.params.addressdetails,limit:t.limit||this.settings.params.limit,countrycodes:t.countrycodes||this.settings.params.countrycodes,viewbox:t.viewbox||this.settings.params.viewbox,"accept-language":t.lang||this.settings.params["accept-language"]}}}handleResponse(t){return 0===t.length?[]:t.map((t=>({lon:t.lon,lat:t.lat,bbox:t.boundingbox,address:{name:t.display_name,road:t.address.road||"",houseNumber:t.address.house_number||"",postcode:t.address.postcode,city:t.address.city||t.address.town,state:t.address.state,country:t.address.country},original:{formatted:t.display_name,details:t.address}})))}}class V{constructor(){this.settings={url:"https://open.mapquestapi.com/nominatim/v1/search.php",params:{q:"",key:"",format:"json",addressdetails:1,limit:10,countrycodes:"","accept-language":"en-US"}}}getParameters(t){return{url:this.settings.url,params:{q:t.query,key:t.key,format:"json",addressdetails:1,limit:t.limit||this.settings.params.limit,countrycodes:t.countrycodes||this.settings.params.countrycodes,"accept-language":t.lang||this.settings.params["accept-language"]}}}handleResponse(t){return 0===t.length?[]:t.map((t=>({lon:t.lon,lat:t.lat,address:{name:t.address.neighbourhood||"",road:t.address.road||"",postcode:t.address.postcode,city:t.address.city||t.address.town,state:t.address.state,country:t.address.country},original:{formatted:t.display_name,details:t.address}})))}}class K{constructor(){this.settings={url:"https://dev.virtualearth.net/REST/v1/Locations",callbackName:"jsonp",params:{query:"",key:"",includeNeighborhood:0,maxResults:10}}}getParameters(t){return{url:this.settings.url,callbackName:this.settings.callbackName,params:{query:t.query,key:t.key,includeNeighborhood:t.includeNeighborhood||this.settings.params.includeNeighborhood,maxResults:t.maxResults||this.settings.params.maxResults}}}handleResponse(t){const{resources:e}=t.resourceSets[0];return 0===e.length?[]:e.map((t=>({lon:t.point.coordinates[1],lat:t.point.coordinates[0],address:{name:t.name},original:{formatted:t.address.formattedAddress,details:t.address}})))}}class q{constructor(){this.settings={url:"https://api.opencagedata.com/geocode/v1/json?",params:{q:"",key:"",limit:10,countrycode:"",pretty:1,no_annotations:1}}}getParameters(t){return{url:this.settings.url,params:{q:t.query,key:t.key,limit:t.limit||this.settings.params.limit,countrycode:t.countrycodes||this.settings.params.countrycodes}}}handleResponse(t){return 0===t.results.length?[]:t.results.map((t=>({lon:t.geometry.lng,lat:t.geometry.lat,address:{name:t.components.house_number||"",road:t.components.road||"",postcode:t.components.postcode,city:t.components.city||t.components.town,state:t.components.state,country:t.components.country},original:{formatted:t.formatted,details:t.components}})))}}const H=T.cssClasses;class ${constructor(t,e){this.Base=t,this.layerName=M("geocoder-layer-"),this.layer=new p.default({name:this.layerName,source:new f.default,displayInLayerSwitcher:!1}),this.options=t.options,this.options.provider="string"==typeof this.options.provider?this.options.provider.toLowerCase():this.options.provider,this.provider=this.newProvider(),this.els=e,this.lastQuery="",this.container=this.els.container,this.registeredListeners={mapClick:!1},this.setListeners()}setListeners(){this.els.input.addEventListener("keypress",(t=>{const e=t.target.value.trim();(t.key?"Enter"===t.key:t.which?13===t.which:t.keyCode&&13===t.keyCode)&&(t.preventDefault(),this.query(e))}),!1),this.els.input.addEventListener("click",(t=>t.stopPropagation()),!1),this.els.input.addEventListener("input",(t=>{0!==t.target.value.trim().length?F(this.els.search,H.hidden):Z(this.els.search,H.hidden)}),!1),this.els.search.addEventListener("click",(()=>{this.els.input.focus(),this.query(this.els.input.value)}),!1),this.options.targetType===R&&this.els.button.addEventListener("click",(t=>{t.stopPropagation(),N(this.els.control,H.glass.expanded)?this.collapse():this.expand()}),!1)}query(t){this.provider||(this.provider=this.newProvider());const e=this.provider.getParameters({query:t,key:this.options.key,lang:this.options.lang,countrycodes:this.options.countrycodes,viewbox:this.options.viewbox,limit:this.options.limit});if(this.lastQuery===t&&this.els.result.firstChild)return;this.lastQuery=t,this.clearResults(),Z(this.els.search,H.spin);const n={url:e.url,data:e.params};e.callbackName&&(n.jsonp=!0,n.callbackName=e.callbackName),U(n).then((t=>{this.options.debug&&console.info(t),F(this.els.search,H.spin);const e=this.provider.handleResponse(t);e&&(this.createList(e),this.listenMapClick())})).catch((()=>{F(this.els.search,H.spin);const t=k("li","<h5>Error! No internet connection?</h5>");this.els.result.append(t)}))}createList(t){const e=this.els.result;t.forEach((n=>{let i;if(i=this.options.provider===P?`<span class="${H.road}">${n.address.name}</span>`:this.addressTemplate(n.address),1==t.length)this.chosen(n,i,n.address,n.original);else{const t=k("li",`<a href="#">${i}</a>`);t.addEventListener("click",(t=>{t.preventDefault(),this.chosen(n,i,n.address,n.original)}),!1),e.append(t)}}))}chosen(t,e,n,i){const r=this.Base.getMap(),o=[Number.parseFloat(t.lon),Number.parseFloat(t.lat)],s=r.getView().getProjection(),a=_.transform(o,"EPSG:4326",s);let{bbox:l}=t;l&&(l=_.transformExtent([parseFloat(l[2]),parseFloat(l[0]),parseFloat(l[3]),parseFloat(l[1])],"EPSG:4326",s));const u={formatted:e,details:n,original:i};if(!1===this.options.keepOpen&&this.clearResults(!0),!0===this.options.preventDefault||!0===this.options.preventMarker)this.Base.dispatchEvent({type:S,address:u,coordinate:a,bbox:l,place:t});else{const e=this.createFeature(a,u);this.Base.dispatchEvent({type:S,address:u,feature:e,coordinate:a,bbox:l,place:t})}!0!==this.options.preventDefault&&!0!==this.options.preventPanning&&(l?r.getView().fit(l,{duration:500}):r.getView().animate({center:a,resolution:this.options.defaultFlyResolution,duration:500}))}createFeature(t){const e=new g.default(new d.default(t));return this.addLayer(),e.setStyle(this.options.featureStyle),e.setId(M("geocoder-ft-")),this.getSource().addFeature(e),e}addressTemplate(t){const e=[];return t.name&&e.push(['<span class="',H.road,'">{name}</span>'].join("")),(t.road||t.building||t.house_number)&&e.push(['<span class="',H.road,'">{building} {road} {house_number}</span>'].join("")),(t.city||t.town||t.village)&&e.push(['<span class="',H.city,'">{postcode} {city} {town} {village}</span>'].join("")),(t.state||t.country)&&e.push(['<span class="',H.country,'">{state} {country}</span>'].join("")),function(t,e){return t.replace(/\{\s*([\w-]+)\s*\}/gu,((t,n)=>{const i=void 0===e[n]?"":e[n];return String(i).replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}))}(e.join("<br>"),t)}newProvider(){switch(this.options.provider){case P:return new B(this.options);case"mapquest":return new V;case"photon":return new z;case"bing":return new K;case"opencage":return new q;default:return this.options.provider}}expand(){F(this.els.input,H.spin),Z(this.els.control,H.glass.expanded),window.setTimeout((()=>this.els.input.focus()),100),this.listenMapClick()}collapse(){this.els.input.value="",this.els.input.blur(),Z(this.els.search,H.hidden),F(this.els.control,H.glass.expanded),this.clearResults()}listenMapClick(){if(this.registeredListeners.mapClick)return;const t=this,e=this.Base.getMap().getTargetElement();this.registeredListeners.mapClick=!0,e.addEventListener("click",{handleEvent(n){t.clearResults(!0),e.removeEventListener(n.type,this,!1),t.registeredListeners.mapClick=!1}},!1)}clearResults(t){t&&this.options.targetType===R?this.collapse():function(t){for(;t.firstChild;)t.firstChild.remove()}(this.els.result)}getSource(){return this.layer.getSource()}addLayer(){let t=!1;const e=this.Base.getMap();e.getLayers().forEach((e=>{e===this.layer&&(t=!0)})),t||e.addLayer(this.layer)}}class J extends u.default{constructor(t=O,e){L("string"==typeof t,"@param `type` should be string!"),L(t===O||t===b,`@param 'type' should be '${O}'\n or '${b}'!`);const n={...I,featureStyle:[new c.default({image:new h.default({scale:.7,src:"//cdn.rawgit.com/jonataswalker/map-utils/master/images/marker.png"})})],...e};let i,r;const o=new Y(n);if(t===O&&(i=o.els.container),super({element:i,...n}),!(this instanceof J))return new J;this.options=n,this.container=i,t===O&&(r=new $(this,o.els),this.layer=r.layer)}getLayer(){return this.layer}getSource(){return this.getLayer().getSource()}setProvider(t){this.options.provider=t}setProviderKey(t){this.options.key=t}}return J}(n(8775),n(7539),n(4115),n(9271),n(933),n(188),n(1090),n(2290))},6421:function(t,e,n){t.exports=function(t,e,n){"use strict";t="default"in t?t.default:t,n="default"in n?n.default:n;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o="layer-switcher-",s=function(t){function s(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s);var e=Object.assign({},t),n=e.tipLabel?e.tipLabel:"Legend",i=e.collapseTipLabel?e.collapseTipLabel:"Collapse legend",r=document.createElement("div"),a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,{element:r,target:e.target}));a.activationMode=e.activationMode||"mouseover",a.startActive=!0===e.startActive;var l=void 0!==e.label?e.label:"",u=void 0!==e.collapseLabel?e.collapseLabel:"»";a.groupSelectStyle=s.getGroupSelectStyle(e.groupSelectStyle),a.reverse=!1!==e.reverse,a.mapListeners=[],a.hiddenClassName="ol-unselectable ol-control layer-switcher",s.isTouchDevice_()&&(a.hiddenClassName+=" touch"),a.shownClassName="shown",r.className=a.hiddenClassName;var c=document.createElement("button");return c.setAttribute("title",n),c.setAttribute("aria-label",n),r.appendChild(c),a.panel=document.createElement("div"),a.panel.className="panel",r.appendChild(a.panel),s.enableTouchScroll_(a.panel),c.textContent=l,r.classList.add(o+"group-select-style-"+a.groupSelectStyle),r.classList.add(o+"activation-mode-"+a.activationMode),"click"===a.activationMode?(r.classList.add("activationModeClick"),a.startActive&&(c.textContent=u,c.setAttribute("title",i),c.setAttribute("aria-label",i)),c.onclick=function(t){var e=t||window.event;a.element.classList.contains(a.shownClassName)?(a.hidePanel(),c.textContent=l,c.setAttribute("title",n),c.setAttribute("aria-label",n)):(a.showPanel(),c.textContent=u,c.setAttribute("title",i),c.setAttribute("aria-label",i)),e.preventDefault()}):(c.onmouseover=function(){a.showPanel()},c.onclick=function(t){var e=t||window.event;a.showPanel(),e.preventDefault()},a.panel.onmouseout=function(t){a.panel.contains(t.relatedTarget)||a.hidePanel()}),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(s,t),i(s,[{key:"setMap",value:function(t){for(var n=this,i=0;i<this.mapListeners.length;i++)e.unByKey(this.mapListeners[i]);this.mapListeners.length=0,r(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"setMap",this).call(this,t),t&&(this.startActive?this.showPanel():this.renderPanel(),"click"!==this.activationMode&&this.mapListeners.push(t.on("pointerdown",(function(){n.hidePanel()}))))}},{key:"showPanel",value:function(){this.element.classList.contains(this.shownClassName)||(this.element.classList.add(this.shownClassName),this.renderPanel())}},{key:"hidePanel",value:function(){this.element.classList.contains(this.shownClassName)&&this.element.classList.remove(this.shownClassName)}},{key:"renderPanel",value:function(){this.dispatchEvent("render"),s.renderPanel(this.getMap(),this.panel,{groupSelectStyle:this.groupSelectStyle,reverse:this.reverse}),this.dispatchEvent("rendercomplete")}}],[{key:"renderPanel",value:function(t,e,n){var i=new Event("render");for(e.dispatchEvent(i),(n=n||{}).groupSelectStyle=s.getGroupSelectStyle(n.groupSelectStyle),s.ensureTopVisibleBaseLayerShown(t,n.groupSelectStyle);e.firstChild;)e.removeChild(e.firstChild);s.forEachRecursive(t,(function(t,e,n){t.set("indeterminate",!1)})),"children"===n.groupSelectStyle||"none"===n.groupSelectStyle?s.setGroupVisibility(t):"group"===n.groupSelectStyle&&s.setChildVisibility(t);var r=document.createElement("ul");e.appendChild(r),s.renderLayers_(t,t,r,n,(function(i){s.renderPanel(t,e,n)}));var o=new Event("rendercomplete");e.dispatchEvent(o)}},{key:"isBaseGroup",value:function(t){if(t instanceof n){var e=t.getLayers().getArray();return e.length&&"base"===e[0].get("type")}return!1}},{key:"setGroupVisibility",value:function(t){s.getGroupsAndLayers(t,(function(t){return t instanceof n&&!t.get("combine")&&!s.isBaseGroup(t)})).reverse().forEach((function(t){var e=t.getLayersArray().map((function(t){return t.getVisible()}));e.every((function(t){return!0===t}))?(t.setVisible(!0),t.set("indeterminate",!1)):e.every((function(t){return!1===t}))?(t.setVisible(!1),t.set("indeterminate",!1)):(t.setVisible(!0),t.set("indeterminate",!0))}))}},{key:"setChildVisibility",value:function(t){s.getGroupsAndLayers(t,(function(t){return t instanceof n&&!t.get("combine")&&!s.isBaseGroup(t)})).forEach((function(t){var e=t,n=e.getVisible(),i=e.get("indeterminate");e.getLayers().getArray().forEach((function(t){t.set("indeterminate",!1),n&&!i||!t.getVisible()||t.set("indeterminate",!0)}))}))}},{key:"ensureTopVisibleBaseLayerShown",value:function(t,e){var n=void 0;s.forEachRecursive(t,(function(t,e,i){"base"===t.get("type")&&t.getVisible()&&(n=t)})),n&&s.setVisible_(t,n,!0,e)}},{key:"getGroupsAndLayers",value:function(t,e){var n=[];return e=e||function(t,e,n){return!0},s.forEachRecursive(t,(function(t,i,r){t.get("title")&&e(t,i,r)&&n.push(t)})),n}},{key:"setVisible_",value:function(t,e,i,r){e.setVisible(i),i&&"base"===e.get("type")&&s.forEachRecursive(t,(function(t,n,i){t!=e&&"base"===t.get("type")&&t.setVisible(!1)})),e instanceof n&&!e.get("combine")&&"children"===r&&e.getLayers().forEach((function(n){s.setVisible_(t,n,e.getVisible(),r)}))}},{key:"renderLayer_",value:function(t,e,i,r,a){var l=document.createElement("li"),u=e.get("title"),c=s.uuid(),h=document.createElement("label");if(e instanceof n&&!e.get("combine")){var p=s.isBaseGroup(e);if(l.classList.add("group"),p&&l.classList.add(o+"base-group"),e.get("fold")){l.classList.add(o+"fold"),l.classList.add(o+e.get("fold"));var f=document.createElement("button");f.onclick=function(t){var n=t||window.event;s.toggleFold_(e,l),n.preventDefault()},l.appendChild(f)}if(!p&&"none"!=r.groupSelectStyle){var d=document.createElement("input");d.type="checkbox",d.id=c,d.checked=e.getVisible(),d.indeterminate=e.get("indeterminate"),d.onchange=function(n){var i=n.target;s.setVisible_(t,e,i.checked,r.groupSelectStyle),a(e)},l.appendChild(d),h.htmlFor=c}h.innerHTML=u,l.appendChild(h);var g=document.createElement("ul");l.appendChild(g),s.renderLayers_(t,e,g,r,a)}else{l.className="layer";var _=document.createElement("input");"base"===e.get("type")?(_.type="radio",_.name="base"):_.type="checkbox",_.id=c,_.checked=e.get("visible"),_.indeterminate=e.get("indeterminate"),_.onchange=function(n){var i=n.target;s.setVisible_(t,e,i.checked,r.groupSelectStyle),a(e)},l.appendChild(_),h.htmlFor=c,h.innerHTML=u;var y=t.getView().getResolution();(y>e.getMaxResolution()||y<e.getMinResolution())&&(h.className+=" disabled"),l.appendChild(h)}return l}},{key:"renderLayers_",value:function(t,e,n,i,r){var o=e.getLayers().getArray().slice();i.reverse&&(o=o.reverse());for(var a,l=0;l<o.length;l++)(a=o[l]).get("title")&&n.appendChild(s.renderLayer_(t,a,l,i,r))}},{key:"forEachRecursive",value:function(t,e){t.getLayers().forEach((function(t,i,r){e(t,i,r),t instanceof n&&s.forEachRecursive(t,e)}))}},{key:"uuid",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}},{key:"enableTouchScroll_",value:function(t){if(s.isTouchDevice_()){var e=0;t.addEventListener("touchstart",(function(t){e=this.scrollTop+t.touches[0].pageY}),!1),t.addEventListener("touchmove",(function(t){this.scrollTop=e-t.touches[0].pageY}),!1)}}},{key:"isTouchDevice_",value:function(){try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}}},{key:"toggleFold_",value:function(t,e){e.classList.remove(o+t.get("fold")),t.set("fold","open"===t.get("fold")?"close":"open"),e.classList.add(o+t.get("fold"))}},{key:"getGroupSelectStyle",value:function(t){return["none","children","group"].indexOf(t)>=0?t:"children"}}]),s}(t);return window.ol&&window.ol.control&&(window.ol.control.LayerSwitcher=s),s}(n(8775),n(2706),n(8734))},3437:function(t,e,n){t.exports=function(t){"use strict";t="default"in t?t.default:t;var e=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),n=function(t){function n(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);var e=t||{};void 0===e.autoPan&&(e.autoPan=!0),void 0===e.autoPanAnimation&&(e.autoPanAnimation={duration:250});var i=document.createElement("div");e.element=i;var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));r.container=i,r.container.className="ol-popup",r.closer=document.createElement("a"),r.closer.className="ol-popup-closer",r.closer.href="#",r.container.appendChild(r.closer);var o=r;return r.closer.addEventListener("click",(function(t){o.container.style.display="none",o.closer.blur(),t.preventDefault()}),!1),r.content=document.createElement("div"),r.content.className="ol-popup-content",r.container.appendChild(r.content),n.enableTouchScroll_(r.content),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),e(n,[{key:"show",value:function(t,e){return e instanceof HTMLElement?(this.content.innerHTML="",this.content.appendChild(e)):this.content.innerHTML=e,this.container.style.display="block",this.content.scrollTop=0,this.setPosition(t),this}},{key:"hide",value:function(){return this.container.style.display="none",this}},{key:"isOpened",value:function(){return"block"==this.container.style.display}}],[{key:"isTouchDevice_",value:function(){try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}}},{key:"enableTouchScroll_",value:function(t){if(n.isTouchDevice_()){var e=0;t.addEventListener("touchstart",(function(t){e=this.scrollTop+t.touches[0].pageY}),!1),t.addEventListener("touchmove",(function(t){this.scrollTop=e-t.touches[0].pageY}),!1)}}}]),n}(t);return window.ol&&window.ol.Overlay&&(window.ol.Overlay.Popup=n),n}(n(1882))},2582:function(t){t.exports=function(){"use strict";function t(t,i,r,o,s){!function t(n,i,r,o,s){for(;o>r;){if(o-r>600){var a=o-r+1,l=i-r+1,u=Math.log(a),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(a-c)/a)*(l-a/2<0?-1:1);t(n,i,Math.max(r,Math.floor(i-l*c/a+h)),Math.min(o,Math.floor(i+(a-l)*c/a+h)),s)}var p=n[i],f=r,d=o;for(e(n,r,i),s(n[o],p)>0&&e(n,r,o);f<d;){for(e(n,f,d),f++,d--;s(n[f],p)<0;)f++;for(;s(n[d],p)>0;)d--}0===s(n[r],p)?e(n,r,d):e(n,++d,o),d<=i&&(r=d+1),i<=d&&(o=d-1)}}(t,i,r||0,o||t.length-1,s||n)}function e(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function n(t,e){return t<e?-1:t>e?1:0}var i=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function r(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i<e.length;i++)if(n(t,e[i]))return i;return-1}function o(t,e){s(t,0,t.children.length,e,t)}function s(t,e,n,i,r){r||(r=d(null)),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var o=e;o<n;o++){var s=t.children[o];a(r,t.leaf?i(s):s)}return r}function a(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function l(t,e){return t.minX-e.minX}function u(t,e){return t.minY-e.minY}function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function f(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function d(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,n,i,r,o){for(var s=[n,i];s.length;)if(!((i=s.pop())-(n=s.pop())<=r)){var a=n+Math.ceil((i-n)/r/2)*r;t(e,a,n,i,o),s.push(n,a,a,i)}}return i.prototype.all=function(){return this._all(this.data,[])},i.prototype.search=function(t){var e=this.data,n=[];if(!f(t,e))return n;for(var i=this.toBBox,r=[];e;){for(var o=0;o<e.children.length;o++){var s=e.children[o],a=e.leaf?i(s):s;f(t,a)&&(e.leaf?n.push(s):p(t,a)?this._all(s,n):r.push(s))}e=r.pop()}return n},i.prototype.collides=function(t){var e=this.data;if(!f(t,e))return!1;for(var n=[];e;){for(var i=0;i<e.children.length;i++){var r=e.children[i],o=e.leaf?this.toBBox(r):r;if(f(t,o)){if(e.leaf||p(t,o))return!0;n.push(r)}}e=n.pop()}return!1},i.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var i=this.data;this.data=n,n=i}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},i.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},i.prototype.clear=function(){return this.data=d([]),this},i.prototype.remove=function(t,e){if(!t)return this;for(var n,i,o,s=this.data,a=this.toBBox(t),l=[],u=[];s||l.length;){if(s||(s=l.pop(),i=l[l.length-1],n=u.pop(),o=!0),s.leaf){var c=r(t,s.children,e);if(-1!==c)return s.children.splice(c,1),l.push(s),this._condense(l),this}o||s.leaf||!p(s,a)?i?(n++,s=i.children[n],o=!1):s=null:(l.push(s),u.push(n),n=0,i=s,s=s.children[0])}return this},i.prototype.toBBox=function(t){return t},i.prototype.compareMinX=function(t,e){return t.minX-e.minX},i.prototype.compareMinY=function(t,e){return t.minY-e.minY},i.prototype.toJSON=function(){return this.data},i.prototype.fromJSON=function(t){return this.data=t,this},i.prototype._all=function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},i.prototype._build=function(t,e,n,i){var r,s=n-e+1,a=this._maxEntries;if(s<=a)return o(r=d(t.slice(e,n+1)),this.toBBox),r;i||(i=Math.ceil(Math.log(s)/Math.log(a)),a=Math.ceil(s/Math.pow(a,i-1))),(r=d([])).leaf=!1,r.height=i;var l=Math.ceil(s/a),u=l*Math.ceil(Math.sqrt(a));g(t,e,n,u,this.compareMinX);for(var c=e;c<=n;c+=u){var h=Math.min(c+u-1,n);g(t,c,h,l,this.compareMinY);for(var p=c;p<=h;p+=l){var f=Math.min(p+l-1,h);r.children.push(this._build(t,p,f,i-1))}}return o(r,this.toBBox),r},i.prototype._chooseSubtree=function(t,e,n,i){for(;i.push(e),!e.leaf&&i.length-1!==n;){for(var r=1/0,o=1/0,s=void 0,a=0;a<e.children.length;a++){var l=e.children[a],u=c(l),h=(p=t,f=l,(Math.max(f.maxX,p.maxX)-Math.min(f.minX,p.minX))*(Math.max(f.maxY,p.maxY)-Math.min(f.minY,p.minY))-u);h<o?(o=h,r=u<r?u:r,s=l):h===o&&u<r&&(r=u,s=l)}e=s||e.children[0]}var p,f;return e},i.prototype._insert=function(t,e,n){var i=n?t:this.toBBox(t),r=[],o=this._chooseSubtree(i,this.data,e,r);for(o.children.push(t),a(o,i);e>=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(i,r,e)},i.prototype._split=function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var s=this._chooseSplitIndex(n,r,i),a=d(n.children.splice(s,n.children.length-s));a.height=n.height,a.leaf=n.leaf,o(n,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(n,a)},i.prototype._splitRoot=function(t,e){this.data=d([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},i.prototype._chooseSplitIndex=function(t,e,n){for(var i,r,o,a,l,u,h,p=1/0,f=1/0,d=e;d<=n-e;d++){var g=s(t,0,d,this.toBBox),_=s(t,d,n,this.toBBox),y=(r=g,o=_,void 0,void 0,void 0,void 0,a=Math.max(r.minX,o.minX),l=Math.max(r.minY,o.minY),u=Math.min(r.maxX,o.maxX),h=Math.min(r.maxY,o.maxY),Math.max(0,u-a)*Math.max(0,h-l)),v=c(g)+c(_);y<p?(p=y,i=d,f=v<f?v:f):y===p&&v<f&&(f=v,i=d)}return i||n-e},i.prototype._chooseSplitAxis=function(t,e,n){var i=t.leaf?this.compareMinX:l,r=t.leaf?this.compareMinY:u;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,r)&&t.children.sort(i)},i.prototype._allDistMargin=function(t,e,n,i){t.children.sort(i);for(var r=this.toBBox,o=s(t,0,e,r),l=s(t,n-e,n,r),u=h(o)+h(l),c=e;c<n-e;c++){var p=t.children[c];a(o,t.leaf?r(p):p),u+=h(o)}for(var f=n-e-1;f>=e;f--){var d=t.children[f];a(l,t.leaf?r(d):d),u+=h(l)}return u},i.prototype._adjustParentBBoxes=function(t,e,n){for(var i=n;i>=0;i--)a(e[i],t)},i.prototype._condense=function(t){for(var e=t.length-1,n=void 0;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},i}()},3126:(t,e,n)=>{"use strict";function i(t){return{attach:async(e,i)=>n(2226)(`./${t}`).then((t=>{t.default.attach(e,i)}))}}n.r(e),n.d(e,{default:()=>r});const r={edit:i("edit"),layerSwitcherInSidePanel:i("layerSwitcherInSidePanel"),loading:i("loading"),measure:i("measure"),rememberLayer:i("rememberLayer"),sidePanel:i("sidePanel"),snappingGrid:i("snappingGrid")}},2226:(t,e,n)=>{var i={"./":[3126],"./edit":[2832,807,243,723],"./edit.js":[2832,807,243,723],"./index":[3126],"./index.js":[3126],"./layerSwitcherInSidePanel":[9444,553],"./layerSwitcherInSidePanel.css":[7493,285],"./layerSwitcherInSidePanel.js":[9444,553],"./loading":[4593,330],"./loading.css":[300,687],"./loading.js":[4593,330],"./measure":[1868,92],"./measure.css":[9338,412],"./measure.js":[1868,92],"./rememberLayer":[8481,32],"./rememberLayer.js":[8481,32],"./sidePanel":[856,103],"./sidePanel.css":[8957,395],"./sidePanel.js":[856,103],"./snappingGrid":[9899,807,663],"./snappingGrid.js":[9899,807,663]};function r(t){if(!n.o(i,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=i[t],r=e[0];return Promise.all(e.slice(1).map(n.e)).then((()=>n(r)))}r.keys=()=>Object.keys(i),r.id=2226,t.exports=r},8813:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"}},5037:(t,e,n)=>{void 0!==window.farmosMapPublicPath&&(n.p=window.farmosMapPublicPath)},7673:(t,e,n)=>{"use strict";function i(t,e){t.getLayers().forEach(((t,n,r)=>{e(t,n,r),t.getLayers&&i(t,e)}))}n.d(e,{Z:()=>i})},3945:(t,e,n)=>{"use strict";n.d(e,{Yt:()=>d});var i=n(2083),r=n(2033),o=n(7580);const s=1,a=.001,l=3.28084,u=.0006213712,c=1,h=1e-4,p=10.76391,f=.0002471052;function d(t,e="metric"){let n;return n=t instanceof r.ZP?function(t,e="metric"){const n=(0,o.getArea)(t);switch(e){case"metric":return n*h>.25?`${(n*h).toFixed(2)} ha`:`${(n*c).toFixed(0)} m<sup>2</sup>`;case"us":return n*f>.25?`${(n*f).toFixed(2)} ac`:`${(n*p).toFixed(0)} ft<sup>2</sup>`;default:return""}}(t,e):t instanceof i.Z?function(t,e="metric"){const n=(0,o.getLength)(t);switch(e){case"metric":return n*a>.25?`${(n*a).toFixed(2)} km`:`${(n*s).toFixed(0)} m`;case"us":return n*u>.25?`${(n*u).toFixed(2)} mi`:`${(n*l).toFixed(0)} ft`;default:return""}}(t,e):"",n}},6813:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i,r=n(4187),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function 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)},8714:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var i,r=n(6813),o=n(2971),s=n(2071),a=n(291),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u="length",c=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.element=n,r.index=i,r}return l(e,t),e}(a.ZP);const h=function(t){function e(e,n){var i=t.call(this)||this;i.on,i.once,i.un;var r=n||{};if(i.unique_=!!r.unique,i.array_=e||[],i.unique_)for(var o=0,s=i.array_.length;o<s;++o)i.assertUnique_(i.array_[o],o);return i.updateLength_(),i}return l(e,t),e.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},e.prototype.extend=function(t){for(var e=0,n=t.length;e<n;++e)this.push(t[e]);return this},e.prototype.forEach=function(t){for(var e=this.array_,n=0,i=e.length;n<i;++n)t(e[n],n,e)},e.prototype.getArray=function(){return this.array_},e.prototype.item=function(t){return this.array_[t]},e.prototype.getLength=function(){return this.get(u)},e.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new c(s.Z.ADD,e,t))},e.prototype.pop=function(){return this.removeAt(this.getLength()-1)},e.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var e=this.getLength();return this.insertAt(e,t),this.getLength()},e.prototype.remove=function(t){for(var e=this.array_,n=0,i=e.length;n<i;++n)if(e[n]===t)return this.removeAt(n)},e.prototype.removeAt=function(t){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new c(s.Z.REMOVE,e,t)),e},e.prototype.setAt=function(t,e){var n=this.getLength();if(t<n){this.unique_&&this.assertUnique_(e,t);var i=this.array_[t];this.array_[t]=e,this.dispatchEvent(new c(s.Z.REMOVE,i,t)),this.dispatchEvent(new c(s.Z.ADD,e,t))}else{for(var r=n;r<t;++r)this.insertAt(r,void 0);this.insertAt(t,e)}},e.prototype.updateLength_=function(){this.set(u,this.array_.length)},e.prototype.assertUnique_=function(t,e){for(var n=0,i=this.array_.length;n<i;++n)if(this.array_[n]===t&&n!==e)throw new r.Z(58)},e}(o.Z)},2071:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={ADD:"add",REMOVE:"remove"}},5431:(t,e,n)=>{"use strict";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}()},1090:(t,e,n)=>{"use strict";n.r(e),n.d(e,{createStyleFunction:()=>u,default:()=>c});var i,r=n(2971),o=n(5487),s=n(9515),a=n(5818),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function u(t){return"function"==typeof t?t:(Array.isArray(t)?e=t:((0,s.h)("function"==typeof t.getZIndex,41),e=[t]),function(){return e});var e}const c=function(t){function e(e){var n=t.call(this)||this;if(n.on,n.once,n.un,n.id_=void 0,n.geometryName_="geometry",n.style_=null,n.styleFunction_=void 0,n.geometryChangeKey_=null,n.addChangeListener(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 l(e,t),e.prototype.clone=function(){var t=new e(this.hasProperties()?this.getProperties():null);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,a.bN)(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=(0,a.oL)(t,o.Z.CHANGE,this.handleGeometryChange_,this)),this.changed()},e.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},e.prototype.setStyle=function(t){this.style_=t,this.styleFunction_=t?u(t):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()},e}(r.Z)},9807:(t,e,n)=>{"use strict";n.d(e,{K:()=>g});var i,r=n(5487),o=n(208),s=n(4187),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=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(r.Z.CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return(0,s.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,s.O3)()},e}(o.Z);const u=l;var c=n(553),h=n(177),p=n(8641),f=n(5818),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function g(t,e,n){var i=t,o=!0,s=!1,a=!1,l=[(0,f.Vx)(i,r.Z.LOAD,(function(){a=!0,s||e()}))];return i.src&&h.Tp?(s=!0,i.decode().then((function(){o&&e()})).catch((function(t){o&&(a?e():n())}))):l.push((0,f.Vx)(i,r.Z.ERROR,n)),function(){o=!1,l.forEach(f.bN)}}!function(t){function e(e,n,i,r,o,s){var a=t.call(this,e,n,i,c.Z.IDLE)||this;return a.src_=r,a.image_=new Image,null!==o&&(a.image_.crossOrigin=o),a.unlisten_=null,a.state=c.Z.IDLE,a.imageLoadFunction_=s,a}d(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=c.Z.ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=(0,p.getHeight)(this.extent)/this.image_.height),this.state=c.Z.LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=c.Z.IDLE&&this.state!=c.Z.ERROR||(this.state=c.Z.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=g(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.setImage=function(t){this.image_=t,this.resolution=(0,p.getHeight)(this.extent)/this.image_.height},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}(u)},553:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},8630:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i,r=n(3536),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function 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,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 o(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:!1,configurable:!0}),Object.defineProperty(e.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(t){this.coordinate_=t},enumerable:!1,configurable:!0}),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){t.prototype.stopPropagation.call(this),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()},e}(r.Z)},2217:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(5487);const r={SINGLECLICK:"singleclick",CLICK:i.Z.CLICK,DBLCLICK:i.Z.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},3536:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i,r=n(291),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function 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){var r=t.call(this,e)||this;return r.map=n,r.frameState=void 0!==i?i:null,r}return o(e,t),e}(r.ZP)},2126:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},2971:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var i,r=n(291),o=n(5990),s=n(2706),a=n(9374),l=n(4187),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.key=n,r.oldValue=i,r}return u(e,t),e}(r.ZP);const h=function(t){function e(e){var n=t.call(this)||this;return n.on,n.once,n.un,(0,l.sq)(n),n.values_=null,void 0!==e&&n.setProperties(e),n}return u(e,t),e.prototype.get=function(t){var e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},e.prototype.getProperties=function(){return this.values_&&(0,a.f0)({},this.values_)||{}},e.prototype.hasProperties=function(){return!!this.values_},e.prototype.notify=function(t,e){var n;n="change:".concat(t),this.hasListener(n)&&this.dispatchEvent(new c(n,t,e)),n=o.Z.PROPERTYCHANGE,this.hasListener(n)&&this.dispatchEvent(new c(n,t,e))},e.prototype.addChangeListener=function(t,e){this.addEventListener("change:".concat(t),e)},e.prototype.removeChangeListener=function(t,e){this.removeEventListener("change:".concat(t),e)},e.prototype.set=function(t,e,n){var i=this.values_||(this.values_={});if(n)i[t]=e;else{var r=i[t];i[t]=e,r!==e&&this.notify(t,r)}},e.prototype.setProperties=function(t,e){for(var n in t)this.set(n,t[n],e)},e.prototype.applyProperties=function(t){t.values_&&(0,a.f0)(this.values_||(this.values_={}),t.values_)},e.prototype.unset=function(t,e){if(this.values_&&t in this.values_){var n=this.values_[t];delete this.values_[t],(0,a.xb)(this.values_)&&(this.values_=null),e||this.notify(t,n)}},e}(s.default)},5990:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={PROPERTYCHANGE:"propertychange"}},2706:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c,unByKey:()=>u});var i,r=n(208),o=n(5487),s=n(5818),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(t){function e(){var e=t.call(this)||this;return e.on=e.onInternal,e.once=e.onceInternal,e.un=e.unInternal,e.revision_=0,e}return a(e,t),e.prototype.changed=function(){++this.revision_,this.dispatchEvent(o.Z.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,e){if(Array.isArray(t)){for(var n=t.length,i=new Array(n),r=0;r<n;++r)i[r]=(0,s.oL)(this,t[r],e);return i}return(0,s.oL)(this,t,e)},e.prototype.onceInternal=function(t,e){var n;if(Array.isArray(t)){var i=t.length;n=new Array(i);for(var r=0;r<i;++r)n[r]=(0,s.Vx)(this,t[r],e)}else n=(0,s.Vx)(this,t,e);return e.ol_key=n,n},e.prototype.unInternal=function(t,e){var n=e.ol_key;if(n)u(n);else if(Array.isArray(t))for(var i=0,r=t.length;i<r;++i)this.removeEventListener(t[i],e);else this.removeEventListener(t,e)},e}(r.Z);function u(t){if(Array.isArray(t))for(var e=0,n=t.length;e<n;++e)(0,s.bN)(t[e]);else(0,s.bN)(t)}l.prototype.on,l.prototype.once,l.prototype.un;const c=l},1882:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>x});var i=n(2971),r=n(2126);const o="bottom-center",s="bottom-right",a="center-center",l="center-right";var u,c=n(245),h=n(8641),p=n(5818),f=n(8326),d=(u=function(t,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},u(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),g="element",_="map",y="offset",v="position",m="positioning";const x=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un,n.options=e,n.id=e.id,n.insertFirst=void 0===e.insertFirst||e.insertFirst,n.stopEvent=void 0===e.stopEvent||e.stopEvent,n.element=document.createElement("div"),n.element.className=void 0!==e.className?e.className:"ol-overlay-container "+c.$A,n.element.style.position="absolute",n.element.style.pointerEvents="auto";var i=e.autoPan;return i&&"object"!=typeof i&&(i={animation:e.autoPanAnimation,margin:e.autoPanMargin}),n.autoPan=i||!1,n.rendered={transform_:"",visible:!0},n.mapPostrenderListenerKey=null,n.addChangeListener(g,n.handleElementChanged),n.addChangeListener(_,n.handleMapChanged),n.addChangeListener(y,n.handleOffsetChanged),n.addChangeListener(v,n.handlePositionChanged),n.addChangeListener(m,n.handlePositioningChanged),void 0!==e.element&&n.setElement(e.element),n.setOffset(void 0!==e.offset?e.offset:[0,0]),n.setPositioning(void 0!==e.positioning?e.positioning:"top-left"),void 0!==e.position&&n.setPosition(e.position),n}return d(e,t),e.prototype.getElement=function(){return this.get(g)},e.prototype.getId=function(){return this.id},e.prototype.getMap=function(){return this.get(_)||null},e.prototype.getOffset=function(){return this.get(y)},e.prototype.getPosition=function(){return this.get(v)},e.prototype.getPositioning=function(){return this.get(m)},e.prototype.handleElementChanged=function(){(0,f.ep)(this.element);var t=this.getElement();t&&this.element.appendChild(t)},e.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&((0,f.ZF)(this.element),(0,p.bN)(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var t=this.getMap();if(t){this.mapPostrenderListenerKey=(0,p.oL)(t,r.Z.POSTRENDER,this.render,this),this.updatePixelPosition();var e=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?e.insertBefore(this.element,e.childNodes[0]||null):e.appendChild(this.element),this.performAutoPan()}},e.prototype.render=function(){this.updatePixelPosition()},e.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},e.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.performAutoPan()},e.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},e.prototype.setElement=function(t){this.set(g,t)},e.prototype.setMap=function(t){this.set(_,t)},e.prototype.setOffset=function(t){this.set(y,t)},e.prototype.setPosition=function(t){this.set(v,t)},e.prototype.performAutoPan=function(){this.autoPan&&this.panIntoView(this.autoPan)},e.prototype.panIntoView=function(t){var e=this.getMap();if(e&&e.getTargetElement()&&this.get(v)){var n=this.getRect(e.getTargetElement(),e.getSize()),i=this.getElement(),r=this.getRect(i,[(0,f.iO)(i),(0,f.Pb)(i)]),o=t||{},s=void 0===o.margin?20:o.margin;if(!(0,h.containsExtent)(n,r)){var a=r[0]-n[0],l=n[2]-r[2],u=r[1]-n[1],c=n[3]-r[3],p=[0,0];if(a<0?p[0]=a-s:l<0&&(p[0]=Math.abs(l)+s),u<0?p[1]=u-s:c<0&&(p[1]=Math.abs(c)+s),0!==p[0]||0!==p[1]){var d=e.getView().getCenterInternal(),g=e.getPixelFromCoordinateInternal(d);if(!g)return;var _=[g[0]+p[0],g[1]+p[1]],y=o.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(_),duration:y.duration,easing:y.easing})}}}},e.prototype.getRect=function(t,e){var n=t.getBoundingClientRect(),i=n.left+window.pageXOffset,r=n.top+window.pageYOffset;return[i,r,i+e[0],r+e[1]]},e.prototype.setPositioning=function(t){this.set(m,t)},e.prototype.setVisible=function(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)},e.prototype.updatePixelPosition=function(){var t=this.getMap(),e=this.getPosition();if(t&&t.isRendered()&&e){var n=t.getPixelFromCoordinate(e),i=t.getSize();this.updateRenderedPosition(n,i)}else this.setVisible(!1)},e.prototype.updateRenderedPosition=function(t,e){var n=this.element.style,i=this.getOffset(),r=this.getPositioning();this.setVisible(!0);var u=Math.round(t[0]+i[0])+"px",c=Math.round(t[1]+i[1])+"px",h="0%",p="0%";r==s||r==l||"top-right"==r?h="-100%":r!=o&&r!=a&&"top-center"!=r||(h="-50%"),"bottom-left"==r||r==o||r==s?p="-100%":"center-left"!=r&&r!=a&&r!=l||(p="-50%");var f="translate(".concat(h,", ").concat(p,") translate(").concat(u,", ").concat(c,")");this.rendered.transform_!=f&&(this.rendered.transform_=f,n.transform=f,n.msTransform=f)},e.prototype.getOptions=function(){return this.options},e}(i.Z)},7755:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={ANIMATING:0,INTERACTING:1}},5537:(t,e,n)=>{"use strict";function i(t,e,n){for(var i,o,s=n||r,a=0,l=t.length,u=!1;a<l;)(o=+s(t[i=a+(l-a>>1)],e))<0?a=i+1:(l=i,u=!o);return u?a:~a}function r(t,e){return t>e?1:t<e?-1:0}function o(t,e){return t.indexOf(e)>=0}function s(t,e,n){var i=t.length;if(t[0]<=e)return 0;if(e<=t[i-1])return i-1;var r=void 0;if(n>0){for(r=1;r<i;++r)if(t[r]<e)return r-1}else if(n<0){for(r=1;r<i;++r)if(t[r]<=e)return r}else for(r=1;r<i;++r){if(t[r]==e)return r;if(t[r]<e)return"function"==typeof n?n(e,t[r-1],t[r])>0?r-1:r:t[r-1]-e<e-t[r]?r-1:r}return i-1}function a(t,e,n){for(;e<n;){var i=t[e];t[e]=t[n],t[n]=i,++e,--n}}function l(t,e){for(var n=Array.isArray(e)?e:[e],i=n.length,r=0;r<i;r++)t[t.length]=n[r]}function u(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function c(t,e,n){var i=e||r;return t.every((function(e,r){if(0===r)return!0;var o=i(t[r-1],e);return!(o>0||n&&0===o)}))}n.d(e,{FZ:()=>a,fS:()=>u,h7:()=>s,kK:()=>r,l7:()=>l,pT:()=>c,q9:()=>o,ry:()=>i})},9515:(t,e,n)=>{"use strict";n.d(e,{h:()=>r});var i=n(6813);function r(t,e){if(!t)throw new i.Z(e)}},9706:(t,e,n)=>{"use strict";n.d(e,{BB:()=>f,XC:()=>a,_2:()=>h});var i=n(9515),r=n(3983),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 l,u,c=(l={},u=0,function(t){var e;if(l.hasOwnProperty(t))e=l[t];else{if(u>=1024){var n=0;for(var r in l)0==(3&n++)&&(delete l[r],--u)}e=function(t){var e,n,r,a,l;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 u,c=t.length-1;u=c<=4?1:2;var h=4===c||8===c;e=parseInt(t.substr(1+0*u,u),16),n=parseInt(t.substr(1+1*u,u),16),r=parseInt(t.substr(1+2*u,u),16),a=h?parseInt(t.substr(1+3*u,u),16):255,1==u&&(e=(e<<4)+e,n=(n<<4)+n,r=(r<<4)+r,h&&(a=(a<<4)+a)),l=[e,n,r,a/255]}else 0==t.indexOf("rgba(")?p(l=t.slice(5,-1).split(",").map(Number)):0==t.indexOf("rgb(")?((l=t.slice(4,-1).split(",").map(Number)).push(1),p(l)):(0,i.h)(!1,14);return l}(t),l[t]=e,++u}return e});function h(t){return Array.isArray(t)?t:c(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:Math.round(100*t[3])/100)+")"}},6620:(t,e,n)=>{"use strict";n.d(e,{y:()=>r});var i=n(9706);function r(t){return Array.isArray(t)?(0,i.BB)(t):t}},8775:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var i,r=n(2971),o=n(2126),s=n(6885),a=n(5818),l=n(8326),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function 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=e.element;return!i||e.target||i.style.pointerEvents||(i.style.pointerEvents="auto"),n.element=i||null,n.target_=null,n.map_=null,n.listenerKeys=[],e.render&&(n.render=e.render),e.target&&n.setTarget(e.target),n}return u(e,t),e.prototype.disposeInternal=function(){(0,l.ZF)(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&(0,l.ZF)(this.element);for(var e=0,n=this.listenerKeys.length;e<n;++e)(0,a.bN)(this.listenerKeys[e]);this.listenerKeys.length=0,this.map_=t,t&&((this.target_?this.target_:t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==s.Zn&&this.listenerKeys.push((0,a.oL)(t,o.Z.POSTRENDER,this.render,this)),t.render())},e.prototype.render=function(t){},e.prototype.setTarget=function(t){this.target_="string"==typeof t?document.getElementById(t):t},e}(r.Z)},1900:(t,e,n)=>{"use strict";n.d(e,{Bs:()=>p,Cf:()=>f,Ed:()=>o,IH:()=>r,TE:()=>h,U1:()=>l,bA:()=>u,bI:()=>c,fS:()=>a,jk:()=>d,oL:()=>s});var i=n(8641);function r(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function o(t,e){var n=e.getRadius(),i=e.getCenter(),r=i[0],o=i[1],s=t[0]-r,a=t[1]-o;0===s&&0===a&&(s=1);var l=Math.sqrt(s*s+a*a);return[r+n*s/l,o+n*a/l]}function s(t,e){var n,i,r=t[0],o=t[1],s=e[0],a=e[1],l=s[0],u=s[1],c=a[0],h=a[1],p=c-l,f=h-u,d=0===p&&0===f?0:(p*(r-l)+f*(o-u))/(p*p+f*f||0);return d<=0?(n=l,i=u):d>=1?(n=c,i=h):(n=l+d*p,i=u+d*f),[n,i]}function a(t,e){for(var n=!0,i=t.length-1;i>=0;--i)if(t[i]!=e[i]){n=!1;break}return n}function l(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 u(t,e){return t[0]*=e,t[1]*=e,t}function c(t,e){var n=t[0]-e[0],i=t[1]-e[1];return n*n+i*i}function h(t,e){return Math.sqrt(c(t,e))}function p(t,e){return c(t,s(t,e))}function f(t,e){if(e.canWrapX()){var n=(0,i.getWidth)(e.getExtent()),r=d(t,e,n);r&&(t[0]-=r*n)}return t}function d(t,e,n){var r=e.getExtent(),o=0;if(e.canWrapX()&&(t[0]<r[0]||t[0]>r[2])){var s=n||(0,i.getWidth)(r);o=Math.floor((t[0]-r[0])/s)}return o}},245:(t,e,n)=>{"use strict";n.d(e,{$A:()=>r,Qi:()=>s,XV:()=>o,Xy:()=>p,hN:()=>l,hg:()=>a,oj:()=>i,p:()=>h});var i="ol-hidden",r="ol-selectable",o="ol-unselectable",s="ol-unsupported",a="ol-control",l="ol-collapsed",u=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),c=["style","variant","weight","size","lineHeight","family"],h=function(t){var e=t.match(u);if(!e)return null;for(var n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},i=0,r=c.length;i<r;++i){var o=e[i+1];void 0!==o&&(n[c[i]]=o)}return n.families=n.family.split(/,\s?/),n};function p(t){return 1===t?"":String(Math.round(100*t)/100)}},8326:(t,e,n)=>{"use strict";n.d(e,{$H:()=>a,E4:()=>r,Pb:()=>s,ZF:()=>l,ep:()=>u,hF:()=>c,iO:()=>o});var i=n(177);function r(t,e,n,r){var o;return o=n&&n.length?n.shift():i.Id?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(o.width=t),e&&(o.height=e),o.getContext("2d",r)}function o(t){var e=t.offsetWidth,n=getComputedStyle(t);return e+(parseInt(n.marginLeft,10)+parseInt(n.marginRight,10))}function s(t){var e=t.offsetHeight,n=getComputedStyle(t);return e+(parseInt(n.marginTop,10)+parseInt(n.marginBottom,10))}function a(t,e){var n=e.parentNode;n&&n.replaceChild(t,e)}function l(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function u(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function c(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))}}},1015:(t,e,n)=>{"use strict";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})},5818:(t,e,n)=>{"use strict";n.d(e,{Vx:()=>o,bN:()=>s,oL:()=>r});var i=n(9374);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))}},291:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>i});const i=function(){function t(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}return t.prototype.preventDefault=function(){this.defaultPrevented=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t}()},5487:(t,e,n)=>{"use strict";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",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},208:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var i,r=n(5431),o=n(291),s=n(6885),a=n(9374),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function 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.eventTarget_=e,n.pendingRemovals_=null,n.dispatching_=null,n.listeners_=null,n}return l(e,t),e.prototype.addEventListener=function(t,e){if(t&&e){var n=this.listeners_||(this.listeners_={}),i=n[t]||(n[t]=[]);-1===i.indexOf(e)&&i.push(e)}},e.prototype.dispatchEvent=function(t){var e="string"==typeof t,n=e?t:t.type,i=this.listeners_&&this.listeners_[n];if(i){var r=e?new o.ZP(t):t;r.target||(r.target=this.eventTarget_||this);var a,l=this.dispatching_||(this.dispatching_={}),u=this.pendingRemovals_||(this.pendingRemovals_={});n in l||(l[n]=0,u[n]=0),++l[n];for(var c=0,h=i.length;c<h;++c)if(!1===(a="handleEvent"in i[c]?i[c].handleEvent(r):i[c].call(this,r))||r.propagationStopped){a=!1;break}if(0==--l[n]){var p=u[n];for(delete u[n];p--;)this.removeEventListener(n,s.Zn);delete l[n]}return a}},e.prototype.disposeInternal=function(){this.listeners_&&(0,a.ZH)(this.listeners_)},e.prototype.getListeners=function(t){return this.listeners_&&this.listeners_[t]||void 0},e.prototype.hasListener=function(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)},e.prototype.removeEventListener=function(t,e){var n=this.listeners_&&this.listeners_[t];if(n){var i=n.indexOf(e);-1!==i&&(this.pendingRemovals_&&t in this.pendingRemovals_?(n[i]=s.Zn,++this.pendingRemovals_[t]):(n.splice(i,1),0===n.length&&delete this.listeners_[t]))}},e}(r.Z)},8683:(t,e,n)=>{"use strict";n.d(e,{$6:()=>a,Bx:()=>h,Fi:()=>f,Kf:()=>d,Ko:()=>l,QL:()=>v,TN:()=>y,Xp:()=>m,aj:()=>u,rM:()=>g,v8:()=>p,vY:()=>_,yZ:()=>c});var i=n(2217),r=n(6885),o=n(177),s=n(9515);function a(t){var e=arguments;return function(t){for(var n=!0,i=0,r=e.length;i<r&&(n=n&&e[i](t));++i);return n}}var l=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},u=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},c=function(t){return!t.map.getTargetElement().hasAttribute("tabindex")||function(t){var e=t.map.getTargetElement(),n=t.map.getOwnerDocument().activeElement;return e.contains(n)}(t)},h=r.uX,p=function(t){var e=t.originalEvent;return 0==e.button&&!(o.G$&&o.tK&&e.ctrlKey)},f=r.Dv,d=function(t){return t.type==i.Z.SINGLECLICK},g=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},_=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},y=function(t){var e=t.originalEvent.target.tagName;return"INPUT"!==e&&"SELECT"!==e&&"TEXTAREA"!==e},v=function(t){var e=t.originalEvent;return(0,s.h)(void 0!==e,56),"mouse"==e.pointerType},m=function(t){var e=t.originalEvent;return(0,s.h)(void 0!==e,56),e.isPrimary&&0===e.button}},8641:(t,e,n)=>{"use strict";n.r(e),n.d(e,{applyTransform:()=>H,approximatelyEquals:()=>C,boundingExtent:()=>s,buffer:()=>a,clone:()=>l,closestSquaredDistanceXY:()=>u,containsCoordinate:()=>c,containsExtent:()=>h,containsXY:()=>p,coordinateRelationship:()=>f,createEmpty:()=>d,createOrUpdate:()=>g,createOrUpdateEmpty:()=>_,createOrUpdateFromCoordinate:()=>y,createOrUpdateFromCoordinates:()=>v,createOrUpdateFromFlatCoordinates:()=>m,createOrUpdateFromRings:()=>x,equals:()=>E,extend:()=>w,extendCoordinate:()=>T,extendCoordinates:()=>S,extendFlatCoordinates:()=>O,extendRings:()=>b,extendXY:()=>R,forEachCorner:()=>P,getArea:()=>I,getBottomLeft:()=>L,getBottomRight:()=>M,getCenter:()=>A,getCorner:()=>Z,getEnlargedArea:()=>F,getForViewAndSize:()=>N,getHeight:()=>k,getIntersection:()=>j,getIntersectionArea:()=>D,getMargin:()=>G,getSize:()=>X,getTopLeft:()=>Y,getTopRight:()=>U,getWidth:()=>W,intersects:()=>z,intersectsSegment:()=>q,isEmpty:()=>B,returnOrUpdate:()=>V,scaleFromCenter:()=>K,wrapX:()=>$});var i=n(9600),r=n(8716),o=n(9515);function s(t){for(var e=[1/0,1/0,-1/0,-1/0],n=0,i=t.length;n<i;++n)T(e,t[n]);return e}function a(t,e,n){return n?(n[0]=t[0]-e,n[1]=t[1]-e,n[2]=t[2]+e,n[3]=t[3]+e,n):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function l(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function u(t,e,n){var i,r;return(i=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*i+(r=n<t[1]?t[1]-n:t[3]<n?n-t[3]:0)*r}function c(t,e){return p(t,e[0],e[1])}function h(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function p(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function f(t,e){var n=t[0],i=t[1],o=t[2],s=t[3],a=e[0],l=e[1],u=r.Z.UNKNOWN;return a<n?u|=r.Z.LEFT:a>o&&(u|=r.Z.RIGHT),l<i?u|=r.Z.BELOW:l>s&&(u|=r.Z.ABOVE),u===r.Z.UNKNOWN&&(u=r.Z.INTERSECTING),u}function d(){return[1/0,1/0,-1/0,-1/0]}function g(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 _(t){return g(1/0,1/0,-1/0,-1/0,t)}function y(t,e){var n=t[0],i=t[1];return g(n,i,n,i,e)}function v(t,e){return S(_(e),t)}function m(t,e,n,i,r){return O(_(r),t,e,n,i)}function x(t,e){return b(_(e),t)}function E(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function C(t,e,n){return Math.abs(t[0]-e[0])<n&&Math.abs(t[2]-e[2])<n&&Math.abs(t[1]-e[1])<n&&Math.abs(t[3]-e[3])<n}function w(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function T(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function S(t,e){for(var n=0,i=e.length;n<i;++n)T(t,e[n]);return t}function O(t,e,n,i,r){for(;n<i;n+=r)R(t,e[n],e[n+1]);return t}function b(t,e){for(var n=0,i=e.length;n<i;++n)S(t,e[n]);return t}function R(t,e,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],n)}function P(t,e){var n;return(n=e(L(t)))||(n=e(M(t)))||(n=e(U(t)))?n:(n=e(Y(t)))||!1}function I(t){var e=0;return B(t)||(e=W(t)*k(t)),e}function L(t){return[t[0],t[1]]}function M(t){return[t[2],t[1]]}function A(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function Z(t,e){var n;return e===i.Z.BOTTOM_LEFT?n=L(t):e===i.Z.BOTTOM_RIGHT?n=M(t):e===i.Z.TOP_LEFT?n=Y(t):e===i.Z.TOP_RIGHT?n=U(t):(0,o.h)(!1,13),n}function F(t,e){var n=Math.min(t[0],e[0]),i=Math.min(t[1],e[1]);return(Math.max(t[2],e[2])-n)*(Math.max(t[3],e[3])-i)}function N(t,e,n,i,r){var o=e*i[0]/2,s=e*i[1]/2,a=Math.cos(n),l=Math.sin(n),u=o*a,c=o*l,h=s*a,p=s*l,f=t[0],d=t[1],_=f-u+p,y=f-u-p,v=f+u-p,m=f+u+p,x=d-c-h,E=d-c+h,C=d+c+h,w=d+c-h;return g(Math.min(_,y,v,m),Math.min(x,E,C,w),Math.max(_,y,v,m),Math.max(x,E,C,w),r)}function k(t){return t[3]-t[1]}function D(t,e){return I(j(t,e))}function j(t,e,n){var i=n||[1/0,1/0,-1/0,-1/0];return z(t,e)?(t[0]>e[0]?i[0]=t[0]:i[0]=e[0],t[1]>e[1]?i[1]=t[1]:i[1]=e[1],t[2]<e[2]?i[2]=t[2]:i[2]=e[2],t[3]<e[3]?i[3]=t[3]:i[3]=e[3]):_(i),i}function G(t){return W(t)+k(t)}function X(t){return[t[2]-t[0],t[3]-t[1]]}function Y(t){return[t[0],t[3]]}function U(t){return[t[2],t[3]]}function W(t){return t[2]-t[0]}function z(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function B(t){return t[2]<t[0]||t[3]<t[1]}function V(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function K(t,e){var n=(t[2]-t[0])/2*(e-1),i=(t[3]-t[1])/2*(e-1);t[0]-=n,t[2]+=n,t[1]-=i,t[3]+=i}function q(t,e,n){var i=!1,o=f(t,e),s=f(t,n);if(o===r.Z.INTERSECTING||s===r.Z.INTERSECTING)i=!0;else{var a=t[0],l=t[1],u=t[2],c=t[3],h=e[0],p=e[1],d=n[0],g=n[1],_=(g-p)/(d-h),y=void 0,v=void 0;s&r.Z.ABOVE&&!(o&r.Z.ABOVE)&&(i=(y=d-(g-c)/_)>=a&&y<=u),i||!(s&r.Z.RIGHT)||o&r.Z.RIGHT||(i=(v=g-(d-u)*_)>=l&&v<=c),i||!(s&r.Z.BELOW)||o&r.Z.BELOW||(i=(y=d-(g-l)/_)>=a&&y<=u),i||!(s&r.Z.LEFT)||o&r.Z.LEFT||(i=(v=g-(d-a)*_)>=l&&v<=c)}return i}function H(t,e,n,i){var r=[];if(i>1)for(var o=t[2]-t[0],s=t[3]-t[1],a=0;a<i;++a)r.push(t[0]+o*a/i,t[1],t[2],t[1]+s*a/i,t[2]-o*a/i,t[3],t[0],t[3]-s*a/i);else r=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(r,r,2);for(var l=[],u=[],c=(a=0,r.length);a<c;a+=2)l.push(r[a]),u.push(r[a+1]);return function(t,e,n){return g(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),n)}(l,u,n)}function $(t,e){var n=e.getExtent(),i=A(t);if(e.canWrapX()&&(i[0]<n[0]||i[0]>=n[2])){var r=W(n),o=Math.floor((i[0]-n[0])/r)*r;t[0]-=o,t[2]-=o}return t}},9600:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},8716:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},7537:(t,e,n)=>{"use strict";n.d(e,{Be:()=>s,Nn:()=>a});var i=n(6617),r=n(6885),o=!1;function s(t,e){return function(n,s,a,l,u){var c=this;!function(t,e,n,r,s,a,l){var u=new XMLHttpRequest;u.open("GET","function"==typeof t?t(n,r,s):t,!0),e.getType()==i.Z.ARRAY_BUFFER&&(u.responseType="arraybuffer"),u.withCredentials=o,u.onload=function(t){if(!u.status||u.status>=200&&u.status<300){var r=e.getType(),o=void 0;r==i.Z.JSON||r==i.Z.TEXT?o=u.responseText:r==i.Z.XML?(o=u.responseXML)||(o=(new DOMParser).parseFromString(u.responseText,"application/xml")):r==i.Z.ARRAY_BUFFER&&(o=u.response),o?a(e.readFeatures(o,{extent:n,featureProjection:s}),e.readProjection(o)):l()}else l()},u.onerror=l,u.send()}(t,e,n,s,a,(function(t,e){c.addFeatures(t),void 0!==l&&l(t)}),u||r.Zn)}}function a(t){o=t}},9646:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>a,fI:()=>l});var i=n(8375),r=n(4187),o=n(9374),s=n(2290);const a=function(){function t(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}return t.prototype.getReadOptions=function(t,e){var n;if(e){var r=e.dataProjection?(0,s.get)(e.dataProjection):this.readProjection(t);e.extent&&r&&r.getUnits()===i.ZP.TILE_PIXELS&&(r=(0,s.get)(r)).setWorldExtent(e.extent),n={dataProjection:r,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,r.O3)()},t.prototype.readFeature=function(t,e){return(0,r.O3)()},t.prototype.readFeatures=function(t,e){return(0,r.O3)()},t.prototype.readGeometry=function(t,e){return(0,r.O3)()},t.prototype.readProjection=function(t){return(0,r.O3)()},t.prototype.writeFeature=function(t,e){return(0,r.O3)()},t.prototype.writeFeatures=function(t,e){return(0,r.O3)()},t.prototype.writeGeometry=function(t,e){return(0,r.O3)()},t}();function l(t,e,n){var i,r=n?(0,s.get)(n.featureProjection):null,o=n?(0,s.get)(n.dataProjection):null;if(i=r&&o&&!(0,s.equivalent)(r,o)?(e?t.clone():t).transform(e?r:o,e?o:r):t,e&&n&&void 0!==n.decimals){var a=Math.pow(10,n.decimals);i===t&&(i=t.clone()),i.applyTransform((function(t){for(var e=0,n=t.length;e<n;++e)t[e]=Math.round(t[e]*a)/a;return t}))}return i}},6617:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"}},9466:(t,e,n)=>{"use strict";n.d(e,{Z:()=>S});var i,r=n(1090),o=n(3958),s=n(4754),a=n(9646),l=n(6617),u=n(4187),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function h(t){return"string"==typeof t?JSON.parse(t)||null:null!==t?t:null}const p=function(t){function e(){return t.call(this)||this}return c(e,t),e.prototype.getType=function(){return l.Z.JSON},e.prototype.readFeature=function(t,e){return this.readFeatureFromObject(h(t),this.getReadOptions(t,e))},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromObject(h(t),this.getReadOptions(t,e))},e.prototype.readFeatureFromObject=function(t,e){return(0,u.O3)()},e.prototype.readFeaturesFromObject=function(t,e){return(0,u.O3)()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromObject(h(t),this.getReadOptions(t,e))},e.prototype.readGeometryFromObject=function(t,e){return(0,u.O3)()},e.prototype.readProjection=function(t){return this.readProjectionFromObject(h(t))},e.prototype.readProjectionFromObject=function(t){return(0,u.O3)()},e.prototype.writeFeature=function(t,e){return JSON.stringify(this.writeFeatureObject(t,e))},e.prototype.writeFeatureObject=function(t,e){return(0,u.O3)()},e.prototype.writeFeatures=function(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))},e.prototype.writeFeaturesObject=function(t,e){return(0,u.O3)()},e.prototype.writeGeometry=function(t,e){return JSON.stringify(this.writeGeometryObject(t,e))},e.prototype.writeGeometryObject=function(t,e){return(0,u.O3)()},e}(a.ZP);var f=n(2083),d=n(7403),g=n(6259),_=n(3643),y=n(188),v=n(2033),m=n(9515),x=n(9374),E=n(2290),C=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function w(t,e){if(!t)return null;var n;switch(t.type){case s.Z.POINT:n=function(t){return new y.default(t.coordinates)}(t);break;case s.Z.LINE_STRING:n=function(t){return new f.Z(t.coordinates)}(t);break;case s.Z.POLYGON:n=function(t){return new v.ZP(t.coordinates)}(t);break;case s.Z.MULTI_POINT:n=function(t){return new g.Z(t.coordinates)}(t);break;case s.Z.MULTI_LINE_STRING:n=function(t){return new d.Z(t.coordinates)}(t);break;case s.Z.MULTI_POLYGON:n=function(t){return new _.Z(t.coordinates)}(t);break;case s.Z.GEOMETRY_COLLECTION:n=function(t,e){var n=t.geometries.map((function(t){return w(t,undefined)}));return new o.Z(n)}(t);break;default:throw new Error("Unsupported GeoJSON type: "+t.type)}return(0,a.fI)(n,!1,e)}function T(t,e){var n,i=(t=(0,a.fI)(t,!0,e)).getType();switch(i){case s.Z.POINT:n=function(t,e){return{type:"Point",coordinates:t.getCoordinates()}}(t);break;case s.Z.LINE_STRING:n=function(t,e){return{type:"LineString",coordinates:t.getCoordinates()}}(t);break;case s.Z.POLYGON:n=function(t,e){var n;return e&&(n=e.rightHanded),{type:"Polygon",coordinates:t.getCoordinates(n)}}(t,e);break;case s.Z.MULTI_POINT:n=function(t,e){return{type:"MultiPoint",coordinates:t.getCoordinates()}}(t);break;case s.Z.MULTI_LINE_STRING:n=function(t,e){return{type:"MultiLineString",coordinates:t.getCoordinates()}}(t);break;case s.Z.MULTI_POLYGON:n=function(t,e){var n;return e&&(n=e.rightHanded),{type:"MultiPolygon",coordinates:t.getCoordinates(n)}}(t,e);break;case s.Z.GEOMETRY_COLLECTION:n=function(t,e){return{type:"GeometryCollection",geometries:t.getGeometriesArray().map((function(t){var n=(0,x.f0)({},e);return delete n.featureProjection,T(t,n)}))}}(t,e);break;case s.Z.CIRCLE:n={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+i)}return n}const S=function(t){function e(e){var n=this,i=e||{};return(n=t.call(this)||this).dataProjection=(0,E.get)(i.dataProjection?i.dataProjection:"EPSG:4326"),i.featureProjection&&(n.defaultFeatureProjection=(0,E.get)(i.featureProjection)),n.geometryName_=i.geometryName,n.extractGeometryName_=i.extractGeometryName,n.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],n}return C(e,t),e.prototype.readFeatureFromObject=function(t,e){var n,i=w((n="Feature"===t.type?t:{type:"Feature",geometry:t,properties:null}).geometry,e),o=new r.default;return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in n!==void 0&&o.setGeometryName(n.geometry_name),o.setGeometry(i),"id"in n&&o.setId(n.id),n.properties&&o.setProperties(n.properties,!0),o},e.prototype.readFeaturesFromObject=function(t,e){var n=null;if("FeatureCollection"===t.type){n=[];for(var i=t.features,r=0,o=i.length;r<o;++r)n.push(this.readFeatureFromObject(i[r],e))}else n=[this.readFeatureFromObject(t,e)];return n},e.prototype.readGeometryFromObject=function(t,e){return w(t,e)},e.prototype.readProjectionFromObject=function(t){var e,n=t.crs;return n?"name"==n.type?e=(0,E.get)(n.properties.name):"EPSG"===n.type?e=(0,E.get)("EPSG:"+n.properties.code):(0,m.h)(!1,36):e=this.dataProjection,e},e.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var n={type:"Feature",geometry:null,properties:null},i=t.getId();if(void 0!==i&&(n.id=i),!t.hasProperties())return n;var r=t.getProperties(),o=t.getGeometry();return o&&(n.geometry=T(o,e),delete r[t.getGeometryName()]),(0,x.xb)(r)||(n.properties=r),n},e.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);for(var n=[],i=0,r=t.length;i<r;++i)n.push(this.writeFeatureObject(t[i],e));return{type:"FeatureCollection",features:n}},e.prototype.writeGeometryObject=function(t,e){return T(t,this.adaptOptions(e))},e}(p)},5289:(t,e,n)=>{"use strict";n.d(e,{Z:()=>A});var i,r=n(1090),o=n(3958),s=n(2450),a=n(4754),l=n(2083),u=n(7403),c=n(6259),h=n(3643),p=n(188),f=n(2033),d=n(9646),g=n(6617),_=n(4187),y=(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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function v(t){return"string"==typeof t?t:""}const m=function(t){function e(){return t.call(this)||this}return y(e,t),e.prototype.getType=function(){return g.Z.TEXT},e.prototype.readFeature=function(t,e){return this.readFeatureFromText(v(t),this.adaptOptions(e))},e.prototype.readFeatureFromText=function(t,e){return(0,_.O3)()},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromText(v(t),this.adaptOptions(e))},e.prototype.readFeaturesFromText=function(t,e){return(0,_.O3)()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromText(v(t),this.adaptOptions(e))},e.prototype.readGeometryFromText=function(t,e){return(0,_.O3)()},e.prototype.readProjection=function(t){return this.readProjectionFromText(v(t))},e.prototype.readProjectionFromText=function(t){return this.dataProjection},e.prototype.writeFeature=function(t,e){return this.writeFeatureText(t,this.adaptOptions(e))},e.prototype.writeFeatureText=function(t,e){return(0,_.O3)()},e.prototype.writeFeatures=function(t,e){return this.writeFeaturesText(t,this.adaptOptions(e))},e.prototype.writeFeaturesText=function(t,e){return(0,_.O3)()},e.prototype.writeGeometry=function(t,e){return this.writeGeometryText(t,this.adaptOptions(e))},e.prototype.writeGeometryText=function(t,e){return(0,_.O3)()},e}(d.ZP);var 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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),E={POINT:p.default,LINESTRING:l.Z,POLYGON:f.ZP,MULTIPOINT:c.Z,MULTILINESTRING:u.Z,MULTIPOLYGON:h.Z},C="EMPTY",w={};for(var T in a.Z)w[T]=a.Z[T].toUpperCase();var S=function(){function t(t){this.wkt=t,this.index_=-1}return t.prototype.isAlpha_=function(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"},t.prototype.isNumeric_=function(t,e){return t>="0"&&t<="9"||"."==t&&!(void 0!==e&&e)},t.prototype.isWhiteSpace_=function(t){return" "==t||"\t"==t||"\r"==t||"\n"==t},t.prototype.nextChar_=function(){return this.wkt.charAt(++this.index_)},t.prototype.nextToken=function(){var t,e=this.nextChar_(),n=this.index_,i=e;if("("==e)t=2;else if(","==e)t=5;else if(")"==e)t=3;else if(this.isNumeric_(e)||"-"==e)t=4,i=this.readNumber_();else if(this.isAlpha_(e))t=1,i=this.readText_();else{if(this.isWhiteSpace_(e))return this.nextToken();if(""!==e)throw new Error("Unexpected character: "+e);t=6}return{position:n,value:i,type:t}},t.prototype.readNumber_=function(){var t,e=this.index_,n=!1,i=!1;do{"."==t?n=!0:"e"!=t&&"E"!=t||(i=!0),t=this.nextChar_()}while(this.isNumeric_(t,n)||!i&&("e"==t||"E"==t)||i&&("-"==t||"+"==t));return parseFloat(this.wkt.substring(e,this.index_--))},t.prototype.readText_=function(){var t,e=this.index_;do{t=this.nextChar_()}while(this.isAlpha_(t));return this.wkt.substring(e,this.index_--).toUpperCase()},t}(),O=function(){function t(t){this.lexer_=t,this.token_={position:0,type:0},this.layout_=s.Z.XY}return t.prototype.consume_=function(){this.token_=this.lexer_.nextToken()},t.prototype.isTokenType=function(t){return this.token_.type==t},t.prototype.match=function(t){var e=this.isTokenType(t);return e&&this.consume_(),e},t.prototype.parse=function(){return this.consume_(),this.parseGeometry_()},t.prototype.parseGeometryLayout_=function(){var t=s.Z.XY,e=this.token_;if(this.isTokenType(1)){var n=e.value;"Z"===n?t=s.Z.XYZ:"M"===n?t=s.Z.XYM:"ZM"===n&&(t=s.Z.XYZM),t!==s.Z.XY&&this.consume_()}return t},t.prototype.parseGeometryCollectionText_=function(){if(this.match(2)){var t=[];do{t.push(this.parseGeometry_())}while(this.match(5));if(this.match(3))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parsePointText_=function(){if(this.match(2)){var t=this.parsePoint_();if(this.match(3))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parseLineStringText_=function(){if(this.match(2)){var t=this.parsePointList_();if(this.match(3))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parsePolygonText_=function(){if(this.match(2)){var t=this.parseLineStringTextList_();if(this.match(3))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parseMultiPointText_=function(){if(this.match(2)){var t;if(t=2==this.token_.type?this.parsePointTextList_():this.parsePointList_(),this.match(3))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parseMultiLineStringText_=function(){if(this.match(2)){var t=this.parseLineStringTextList_();if(this.match(3))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parseMultiPolygonText_=function(){if(this.match(2)){var t=this.parsePolygonTextList_();if(this.match(3))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parsePoint_=function(){for(var t=[],e=this.layout_.length,n=0;n<e;++n){var i=this.token_;if(!this.match(4))break;t.push(i.value)}if(t.length==e)return t;throw new Error(this.formatErrorMessage_())},t.prototype.parsePointList_=function(){for(var t=[this.parsePoint_()];this.match(5);)t.push(this.parsePoint_());return t},t.prototype.parsePointTextList_=function(){for(var t=[this.parsePointText_()];this.match(5);)t.push(this.parsePointText_());return t},t.prototype.parseLineStringTextList_=function(){for(var t=[this.parseLineStringText_()];this.match(5);)t.push(this.parseLineStringText_());return t},t.prototype.parsePolygonTextList_=function(){for(var t=[this.parsePolygonText_()];this.match(5);)t.push(this.parsePolygonText_());return t},t.prototype.isEmptyGeometry_=function(){var t=this.isTokenType(1)&&this.token_.value==C;return t&&this.consume_(),t},t.prototype.formatErrorMessage_=function(){return"Unexpected `"+this.token_.value+"` at position "+this.token_.position+" in `"+this.lexer_.wkt+"`"},t.prototype.parseGeometry_=function(){var t=this.token_;if(this.match(1)){var e=t.value;this.layout_=this.parseGeometryLayout_();var n=this.isEmptyGeometry_();if("GEOMETRYCOLLECTION"==e){if(n)return new o.Z([]);var i=this.parseGeometryCollectionText_();return new o.Z(i)}var r=E[e];if(!r)throw new Error("Invalid geometry type: "+e);var s=void 0;if(n)s="POINT"==e?[NaN,NaN]:[];else switch(e){case"POINT":s=this.parsePointText_();break;case"LINESTRING":s=this.parseLineStringText_();break;case"POLYGON":s=this.parsePolygonText_();break;case"MULTIPOINT":s=this.parseMultiPointText_();break;case"MULTILINESTRING":s=this.parseMultiLineStringText_();break;case"MULTIPOLYGON":s=this.parseMultiPolygonText_()}return new r(s,this.layout_)}throw new Error(this.formatErrorMessage_())},t}(),b=function(t){function e(e){var n=t.call(this)||this,i=e||{};return n.splitCollection_=void 0!==i.splitCollection&&i.splitCollection,n}return x(e,t),e.prototype.parse_=function(t){var e=new S(t);return new O(e).parse()},e.prototype.readFeatureFromText=function(t,e){var n=this.readGeometryFromText(t,e),i=new r.default;return i.setGeometry(n),i},e.prototype.readFeaturesFromText=function(t,e){for(var n,i=this.readGeometryFromText(t,e),o=[],s=0,l=(n=this.splitCollection_&&i.getType()==a.Z.GEOMETRY_COLLECTION?i.getGeometriesArray():[i]).length;s<l;++s){var u=new r.default;u.setGeometry(n[s]),o.push(u)}return o},e.prototype.readGeometryFromText=function(t,e){var n=this.parse_(t);return(0,d.fI)(n,!1,e)},e.prototype.writeFeatureText=function(t,e){var n=t.getGeometry();return n?this.writeGeometryText(n,e):""},e.prototype.writeFeaturesText=function(t,e){if(1==t.length)return this.writeFeatureText(t[0],e);for(var n=[],i=0,r=t.length;i<r;++i)n.push(t[i].getGeometry());var s=new o.Z(n);return this.writeGeometryText(s,e)},e.prototype.writeGeometryText=function(t,e){return M((0,d.fI)(t,!0,e))},e}(m);function R(t){var e=t.getCoordinates();return 0===e.length?"":e.join(" ")}function P(t){for(var e=t.getCoordinates(),n=[],i=0,r=e.length;i<r;++i)n.push(e[i].join(" "));return n.join(",")}function I(t){for(var e=[],n=t.getLinearRings(),i=0,r=n.length;i<r;++i)e.push("("+P(n[i])+")");return e.join(",")}var L={Point:R,LineString:P,Polygon:I,MultiPoint:function(t){for(var e=[],n=t.getPoints(),i=0,r=n.length;i<r;++i)e.push("("+R(n[i])+")");return e.join(",")},MultiLineString:function(t){for(var e=[],n=t.getLineStrings(),i=0,r=n.length;i<r;++i)e.push("("+P(n[i])+")");return e.join(",")},MultiPolygon:function(t){for(var e=[],n=t.getPolygons(),i=0,r=n.length;i<r;++i)e.push("("+I(n[i])+")");return e.join(",")},GeometryCollection:function(t){for(var e=[],n=t.getGeometries(),i=0,r=n.length;i<r;++i)e.push(M(n[i]));return e.join(",")}};function M(t){var e=t.getType(),n=(0,L[e])(t);if(e=e.toUpperCase(),"function"==typeof t.getFlatCoordinates){var i=function(t){var e=t.getLayout(),n="";return e!==s.Z.XYZ&&e!==s.Z.XYZM||(n+="Z"),e!==s.Z.XYM&&e!==s.Z.XYZM||(n+="M"),n}(t);i.length>0&&(e+=" "+i)}return 0===n.length?e+" "+C:e+"("+n+")"}const A=b},6885:(t,e,n)=>{"use strict";n.d(e,{Dv:()=>o,Zn:()=>s,qe:()=>a,uX:()=>r});var i=n(5537);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}}},1694:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var i,r=n(2971),o=n(8375),s=n(4187),a=n(6101),l=n(8641),u=n(2290),c=n(6885),h=n(6442),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=(0,a.Ue)();const d=function(t){function e(){var e=t.call(this)||this;return e.extent_=(0,l.createEmpty)(),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,s.O3)()},e.prototype.closestPointXY=function(t,e,n,i){return(0,s.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,s.O3)()},e.prototype.getExtent=function(t){if(this.extentRevision_!=this.getRevision()){var e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&(0,l.createOrUpdateEmpty)(e),this.extentRevision_=this.getRevision()}return(0,l.returnOrUpdate)(this.extent_,t)},e.prototype.rotate=function(t,e){(0,s.O3)()},e.prototype.scale=function(t,e,n){(0,s.O3)()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return(0,s.O3)()},e.prototype.getType=function(){return(0,s.O3)()},e.prototype.applyTransform=function(t){(0,s.O3)()},e.prototype.intersectsExtent=function(t){return(0,s.O3)()},e.prototype.translate=function(t,e){(0,s.O3)()},e.prototype.transform=function(t,e){var n=(0,u.get)(t),i=n.getUnits()==o.ZP.TILE_PIXELS?function(t,i,r){var o=n.getExtent(),s=n.getWorldExtent(),c=(0,l.getHeight)(s)/(0,l.getHeight)(o);return(0,a.qC)(f,s[0],s[3],c,-c,0,0,0),(0,h.vT)(t,0,t.length,r,f,i),(0,u.getTransform)(n,e)(t,i,r)}:(0,u.getTransform)(n,e);return this.applyTransform(i),this},e}(r.Z)},3958:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var i,r=n(5487),o=n(1694),s=n(4754),a=n(8641),l=n(5818),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function c(t){for(var e=[],n=0,i=t.length;n<i;++n)e.push(t[n].clone());return e}const h=function(t){function e(e){var n=t.call(this)||this;return n.geometries_=e||null,n.changeEventsKeys_=[],n.listenGeometriesChange_(),n}return u(e,t),e.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(l.bN),this.changeEventsKeys_.length=0},e.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var t=0,e=this.geometries_.length;t<e;++t)this.changeEventsKeys_.push((0,l.oL)(this.geometries_[t],r.Z.CHANGE,this.changed,this))},e.prototype.clone=function(){var t=new e(null);return t.setGeometries(this.geometries_),t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,i){if(i<(0,a.closestSquaredDistanceXY)(this.getExtent(),t,e))return i;for(var r=this.geometries_,o=0,s=r.length;o<s;++o)i=r[o].closestPointXY(t,e,n,i);return i},e.prototype.containsXY=function(t,e){for(var n=this.geometries_,i=0,r=n.length;i<r;++i)if(n[i].containsXY(t,e))return!0;return!1},e.prototype.computeExtent=function(t){(0,a.createOrUpdateEmpty)(t);for(var e=this.geometries_,n=0,i=e.length;n<i;++n)(0,a.extend)(t,e[n].getExtent());return t},e.prototype.getGeometries=function(){return c(this.geometries_)},e.prototype.getGeometriesArray=function(){return this.geometries_},e.prototype.getGeometriesArrayRecursive=function(){for(var t=[],e=this.geometries_,n=0,i=e.length;n<i;++n)e[n].getType()===this.getType()?t=t.concat(e[n].getGeometriesArrayRecursive()):t.push(e[n]);return t},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;for(var n=[],i=this.geometries_,r=!1,o=0,s=i.length;o<s;++o){var a=i[o],l=a.getSimplifiedGeometry(t);n.push(l),l!==a&&(r=!0)}if(r){var u=new e(null);return u.setGeometriesArray(n),u}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this},e.prototype.getType=function(){return s.Z.GEOMETRY_COLLECTION},e.prototype.intersectsExtent=function(t){for(var e=this.geometries_,n=0,i=e.length;n<i;++n)if(e[n].intersectsExtent(t))return!0;return!1},e.prototype.isEmpty=function(){return 0===this.geometries_.length},e.prototype.rotate=function(t,e){for(var n=this.geometries_,i=0,r=n.length;i<r;++i)n[i].rotate(t,e);this.changed()},e.prototype.scale=function(t,e,n){var i=n;i||(i=(0,a.getCenter)(this.getExtent()));for(var r=this.geometries_,o=0,s=r.length;o<s;++o)r[o].scale(t,e,i);this.changed()},e.prototype.setGeometries=function(t){this.setGeometriesArray(c(t))},e.prototype.setGeometriesArray=function(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()},e.prototype.applyTransform=function(t){for(var e=this.geometries_,n=0,i=e.length;n<i;++n)e[n].applyTransform(t);this.changed()},e.prototype.translate=function(t,e){for(var n=this.geometries_,i=0,r=n.length;i<r;++i)n[i].translate(t,e);this.changed()},e.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),t.prototype.disposeInternal.call(this)},e}(o.Z)},2450:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},4754:(t,e,n)=>{"use strict";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"}},2083:(t,e,n)=>{"use strict";n.d(e,{Z:()=>v});var i,r=n(2450),o=n(4754),s=n(2967),a=n(3042),l=n(8641),u=n(8527),c=n(226),h=n(5537),p=n(3032),f=n(9241),d=n(9405),g=n(3746),_=n(7374),y=(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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const v=function(t){function e(e,n){var i=t.call(this)||this;return i.flatMidpoint_=null,i.flatMidpointRevision_=-1,i.maxDelta_=-1,i.maxDeltaRevision_=-1,void 0===n||Array.isArray(e[0])?i.setCoordinates(e,n):i.setFlatCoordinates(n,e),i}return y(e,t),e.prototype.appendCoordinate=function(t){this.flatCoordinates?(0,h.l7)(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,i){return i<(0,l.closestSquaredDistanceXY)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,a.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,a.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,n,i))},e.prototype.forEachSegment=function(t){return(0,p.E)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinateAtM=function(t,e){if(this.layout!=r.Z.XYM&&this.layout!=r.Z.XYZM)return null;var n=void 0!==e&&e;return(0,d.iJ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n)},e.prototype.getCoordinates=function(){return(0,f.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinateAt=function(t,e){return(0,d.WW)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)},e.prototype.getLength=function(){return(0,_.W)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[];return n.length=(0,c.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,r.Z.XY)},e.prototype.getType=function(){return o.Z.LINE_STRING},e.prototype.intersectsExtent=function(t){return(0,g.Kz)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,u.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(s.ZP)},7538:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var i,r=n(2450),o=n(4754),s=n(2967),a=n(3042),l=n(8641),u=n(8527),c=n(226),h=n(9241),p=n(4078),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function 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,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 f(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,l.closestSquaredDistanceXY)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,a.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,a.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,n,i))},e.prototype.getArea=function(){return(0,p.QQ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return(0,h.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[];return n.length=(0,c.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,r.Z.XY)},e.prototype.getType=function(){return o.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,u.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(s.ZP)},7403:(t,e,n)=>{"use strict";n.d(e,{Z:()=>y});var i,r=n(2450),o=n(4754),s=n(2083),a=n(2967),l=n(3042),u=n(8641),c=n(8527),h=n(226),p=n(5537),f=n(9241),d=n(9405),g=n(3746),_=(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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const y=function(t){function e(e,n,i){var r=t.call(this)||this;if(r.ends_=[],r.maxDelta_=-1,r.maxDeltaRevision_=-1,Array.isArray(e[0]))r.setCoordinates(e,n);else if(void 0!==n&&i)r.setFlatCoordinates(n,e),r.ends_=i;else{for(var o=r.getLayout(),s=e,a=[],l=[],u=0,c=s.length;u<c;++u){var h=s[u];0===u&&(o=h.getLayout()),(0,p.l7)(a,h.getFlatCoordinates()),l.push(a.length)}r.setFlatCoordinates(o,a),r.ends_=l}return r}return _(e,t),e.prototype.appendLineString=function(t){this.flatCoordinates?(0,p.l7)(this.flatCoordinates,t.getFlatCoordinates().slice()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,i){return i<(0,u.closestSquaredDistanceXY)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,l.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,l.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,n,i))},e.prototype.getCoordinateAtM=function(t,e,n){if(this.layout!=r.Z.XYM&&this.layout!=r.Z.XYZM||0===this.flatCoordinates.length)return null;var i=void 0!==e&&e,o=void 0!==n&&n;return(0,d.dG)(this.flatCoordinates,0,this.ends_,this.stride,t,i,o)},e.prototype.getCoordinates=function(){return(0,f.o1)(this.flatCoordinates,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getLineString=function(t){return t<0||this.ends_.length<=t?null:new s.Z(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLineStrings=function(){for(var t=this.flatCoordinates,e=this.ends_,n=this.layout,i=[],r=0,o=0,a=e.length;o<a;++o){var l=e[o],u=new s.Z(t.slice(r,l),n);i.push(u),r=l}return i},e.prototype.getFlatMidpoints=function(){for(var t=[],e=this.flatCoordinates,n=0,i=this.ends_,r=this.stride,o=0,s=i.length;o<s;++o){var a=i[o],l=(0,d.WW)(e,n,a,r,.5);(0,p.l7)(t,l),n=a}return t},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],i=[];return n.length=(0,h.UJ)(this.flatCoordinates,0,this.ends_,this.stride,t,n,0,i),new e(n,r.Z.XY,i)},e.prototype.getType=function(){return o.Z.MULTI_LINE_STRING},e.prototype.intersectsExtent=function(t){return(0,g.AW)(this.flatCoordinates,0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=(0,c._5)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},e}(a.ZP)},6259:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});var i,r=n(4754),o=n(188),s=n(2967),a=n(8641),l=n(8527),u=n(5537),c=n(9241),h=n(3983),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const f=function(t){function e(e,n){var i=t.call(this)||this;return n&&!Array.isArray(e[0])?i.setFlatCoordinates(n,e):i.setCoordinates(e,n),i}return p(e,t),e.prototype.appendPoint=function(t){this.flatCoordinates?(0,u.l7)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,i){if(i<(0,a.closestSquaredDistanceXY)(this.getExtent(),t,e))return i;for(var r=this.flatCoordinates,o=this.stride,s=0,l=r.length;s<l;s+=o){var u=(0,h.bI)(t,e,r[s],r[s+1]);if(u<i){i=u;for(var c=0;c<o;++c)n[c]=r[s+c];n.length=o}}return i},e.prototype.getCoordinates=function(){return(0,c.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getPoint=function(t){var e=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return t<0||e<=t?null:new o.default(this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)},e.prototype.getPoints=function(){for(var t=this.flatCoordinates,e=this.layout,n=this.stride,i=[],r=0,s=t.length;r<s;r+=n){var a=new o.default(t.slice(r,r+n),e);i.push(a)}return i},e.prototype.getType=function(){return r.Z.MULTI_POINT},e.prototype.intersectsExtent=function(t){for(var e=this.flatCoordinates,n=this.stride,i=0,r=e.length;i<r;i+=n){var o=e[i],s=e[i+1];if((0,a.containsXY)(t,o,s))return!0}return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,l.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(s.ZP)},3643:(t,e,n)=>{"use strict";n.d(e,{Z:()=>E});var i,r=n(2450),o=n(4754),s=n(6259),a=n(2033),l=n(2967),u=n(3042),c=n(8641),h=n(8527),p=n(5537),f=n(3448),d=n(9241),g=n(3746),_=n(974),y=n(4078),v=n(9679),m=n(226),x=(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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const E=function(t){function e(e,n,i){var r=t.call(this)||this;if(r.endss_=[],r.flatInteriorPointsRevision_=-1,r.flatInteriorPoints_=null,r.maxDelta_=-1,r.maxDeltaRevision_=-1,r.orientedRevision_=-1,r.orientedFlatCoordinates_=null,!i&&!Array.isArray(e[0])){for(var o=r.getLayout(),s=e,a=[],l=[],u=0,c=s.length;u<c;++u){var h=s[u];0===u&&(o=h.getLayout());for(var f=a.length,d=h.getEnds(),g=0,_=d.length;g<_;++g)d[g]+=f;(0,p.l7)(a,h.getFlatCoordinates()),l.push(d)}n=o,e=a,i=l}return void 0!==n&&i?(r.setFlatCoordinates(n,e),r.endss_=i):r.setCoordinates(e,n),r}return x(e,t),e.prototype.appendPolygon=function(t){var e;if(this.flatCoordinates){var n=this.flatCoordinates.length;(0,p.l7)(this.flatCoordinates,t.getFlatCoordinates());for(var i=0,r=(e=t.getEnds().slice()).length;i<r;++i)e[i]+=n}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()},e.prototype.clone=function(){for(var t=this.endss_.length,n=new Array(t),i=0;i<t;++i)n[i]=this.endss_[i].slice();var r=new e(this.flatCoordinates.slice(),this.layout,n);return r.applyProperties(this),r},e.prototype.closestPointXY=function(t,e,n,i){return i<(0,c.closestSquaredDistanceXY)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,u.sD)(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,u.gI)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,n,i))},e.prototype.containsXY=function(t,e){return(0,v.Zl)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)},e.prototype.getArea=function(){return(0,y.Eu)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,_.dL)(e,0,this.endss_,this.stride,t)):e=this.flatCoordinates,(0,d.ug)(e,0,this.endss_,this.stride)},e.prototype.getEndss=function(){return this.endss_},e.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var t=function(t,e,n,i){for(var r=[],o=(0,c.createEmpty)(),s=0,a=n.length;s<a;++s){var l=n[s];o=(0,c.createOrUpdateFromFlatCoordinates)(t,e,l[0],i),r.push((o[0]+o[2])/2,(o[1]+o[3])/2),e=l[l.length-1]}return r}(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=(0,f.U)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},e.prototype.getInteriorPoints=function(){return new s.Z(this.getFlatInteriorPoints().slice(),r.Z.XYM)},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;(0,_.Oj)(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,_.dL)(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],i=[];return n.length=(0,m.Pp)(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),n,0,i),new e(n,r.Z.XY,i)},e.prototype.getPolygon=function(t){if(t<0||this.endss_.length<=t)return null;var e;if(0===t)e=0;else{var n=this.endss_[t-1];e=n[n.length-1]}var i=this.endss_[t].slice(),r=i[i.length-1];if(0!==e)for(var o=0,s=i.length;o<s;++o)i[o]-=e;return new a.ZP(this.flatCoordinates.slice(e,r),this.layout,i)},e.prototype.getPolygons=function(){for(var t=this.layout,e=this.flatCoordinates,n=this.endss_,i=[],r=0,o=0,s=n.length;o<s;++o){var l=n[o].slice(),u=l[l.length-1];if(0!==r)for(var c=0,h=l.length;c<h;++c)l[c]-=r;var p=new a.ZP(e.slice(r,u),t,l);i.push(p),r=u}return i},e.prototype.getType=function(){return o.Z.MULTI_POLYGON},e.prototype.intersectsExtent=function(t){return(0,g.oW)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);var n=(0,h.QT)(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===n.length)this.flatCoordinates.length=0;else{var i=n[n.length-1];this.flatCoordinates.length=0===i.length?0:i[i.length-1]}this.changed()},e}(l.ZP)},188:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var i,r=n(4754),o=n(2967),s=n(8641),a=n(8527),l=n(3983),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function 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,n){var i=t.call(this)||this;return i.setCoordinates(e,n),i}return u(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,i){var r=this.flatCoordinates,o=(0,l.bI)(t,e,r[0],r[1]);if(o<i){for(var s=this.stride,a=0;a<s;++a)n[a]=r[a];return n.length=s,o}return i},e.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},e.prototype.computeExtent=function(t){return(0,s.createOrUpdateFromCoordinate)(this.flatCoordinates,t)},e.prototype.getType=function(){return r.Z.POINT},e.prototype.intersectsExtent=function(t){return(0,s.containsXY)(t,this.flatCoordinates[0],this.flatCoordinates[1])},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,a.IG)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(o.ZP)},2033:(t,e,n)=>{"use strict";n.d(e,{Bb:()=>b,Ej:()=>R,ZP:()=>T,iu:()=>S,oJ:()=>O});var i,r=n(2450),o=n(4754),s=n(7538),a=n(188),l=n(2967),u=n(3042),c=n(8641),h=n(8527),p=n(5537),f=n(3448),d=n(9241),g=n(3746),_=n(974),y=n(4078),v=n(9679),m=n(3983),x=n(226),E=n(7580),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),w=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 C(e,t),e.prototype.appendLinearRing=function(t){this.flatCoordinates?(0,p.l7)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,i){return i<(0,c.closestSquaredDistanceXY)(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,v.wY)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},e.prototype.getArea=function(){return(0,y.KP)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,_.zX)(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,(0,d.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,c.getCenter)(this.getExtent());this.flatInteriorPoint_=(0,f.X)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},e.prototype.getInteriorPoint=function(){return new a.default(this.getFlatInteriorPoint(),r.Z.XYM)},e.prototype.getLinearRingCount=function(){return this.ends_.length},e.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new s.Z(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,a=n.length;o<a;++o){var l=n[o],u=new s.Z(e.slice(r,l),t);i.push(u),r=l}return i},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;(0,_.$v)(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,_.zX)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],i=[];return n.length=(0,x.Zh)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),n,0,i),new e(n,r.Z.XY,i)},e.prototype.getType=function(){return o.Z.POLYGON},e.prototype.intersectsExtent=function(t){return(0,g.ac)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=(0,h._5)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},e}(l.ZP);const T=w;function S(t,e,n,i){for(var o=n||32,s=[],a=0;a<o;++a)(0,p.l7)(s,(0,E.offset)(t,e,2*Math.PI*a/o,i));return s.push(s[0],s[1]),new w(s,r.Z.XY,[s.length])}function O(t){var e=t[0],n=t[1],i=t[2],o=t[3],s=[e,n,e,o,i,o,i,n,e,n];return new w(s,r.Z.XY,[s.length])}function b(t,e,n){for(var i=e||32,r=t.getStride(),o=t.getLayout(),s=t.getCenter(),a=r*(i+1),l=new Array(a),u=0;u<a;u+=r){l[u]=0,l[u+1]=0;for(var c=2;c<r;c++)l[u+c]=s[c]}var h=[l.length],p=new w(l,o,h);return R(p,s,t.getRadius(),n),p}function R(t,e,n,i){for(var r=t.getFlatCoordinates(),o=t.getStride(),s=r.length/o-1,a=i||0,l=0;l<=s;++l){var u=l*o,c=a+2*(0,m.$W)(l,s)*Math.PI/s;r[u]=e[0]+n*Math.cos(c),r[u+1]=e[1]+n*Math.sin(c)}t.changed()}},2967:(t,e,n)=>{"use strict";n.d(e,{Kr:()=>h,ZP:()=>p});var i,r=n(1694),o=n(2450),s=n(4187),a=n(8641),l=n(6442),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function c(t){var e;return t==o.Z.XY?e=2:t==o.Z.XYZ||t==o.Z.XYM?e=3:t==o.Z.XYZM&&(e=4),e}function h(t,e,n){var i=t.getFlatCoordinates();if(i){var r=t.getStride();return(0,l.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=o.Z.XY,e.stride=2,e.flatCoordinates=null,e}return u(e,t),e.prototype.computeExtent=function(t){return(0,a.createOrUpdateFromFlatCoordinates)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return(0,s.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<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},e.prototype.getSimplifiedGeometryInternal=function(t){return this},e.prototype.getStride=function(){return this.stride},e.prototype.setFlatCoordinates=function(t,e){this.stride=c(t),this.layout=t,this.flatCoordinates=e},e.prototype.setCoordinates=function(t,e){(0,s.O3)()},e.prototype.setLayout=function(t,e,n){var i;if(t)i=c(t);else{for(var r=0;r<n;++r){if(0===e.length)return this.layout=o.Z.XY,void(this.stride=2);e=e[0]}t=function(t){var e;return 2==t?e=o.Z.XY:3==t?e=o.Z.XYZ:4==t&&(e=o.Z.XYZM),e}(i=e.length)}this.layout=t,this.stride=i},e.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},e.prototype.rotate=function(t,e){var n=this.getFlatCoordinates();if(n){var i=this.getStride();(0,l.U1)(n,0,n.length,i,t,e,n),this.changed()}},e.prototype.scale=function(t,e,n){var i=e;void 0===i&&(i=t);var r=n;r||(r=(0,a.getCenter)(this.getExtent()));var o=this.getFlatCoordinates();if(o){var s=this.getStride();(0,l.bA)(o,0,o.length,s,t,i,r,o),this.changed()}},e.prototype.translate=function(t,e){var n=this.getFlatCoordinates();if(n){var i=this.getStride();(0,l.Iu)(n,0,n.length,i,t,e,n),this.changed()}},e}(r.Z)},4078:(t,e,n)=>{"use strict";function i(t,e,n,i){for(var r=0,o=t[n-i],s=t[n-i+1];e<n;e+=i){var a=t[e],l=t[e+1];r+=s*a-o*l,o=a,s=l}return r/2}function r(t,e,n,r){for(var o=0,s=0,a=n.length;s<a;++s){var l=n[s];o+=i(t,e,l,r),e=l}return o}function o(t,e,n,i){for(var o=0,s=0,a=n.length;s<a;++s){var l=n[s];o+=r(t,e,l,i),e=l[l.length-1]}return o}n.d(e,{Eu:()=>o,KP:()=>r,QQ:()=>i})},3042:(t,e,n)=>{"use strict";n.d(e,{Af:()=>s,Bv:()=>o,H$:()=>l,Xl:()=>u,gI:()=>c,sD:()=>a});var i=n(3983);function r(t,e,n,r,o,s,a){var l,u=t[e],c=t[e+1],h=t[n]-u,p=t[n+1]-c;if(0===h&&0===p)l=e;else{var f=((o-u)*h+(s-c)*p)/(h*h+p*p);if(f>1)l=n;else{if(f>0){for(var d=0;d<r;++d)a[d]=(0,i.t7)(t[e+d],t[n+d],f);return void(a.length=r)}l=e}}for(d=0;d<r;++d)a[d]=t[l+d];a.length=r}function o(t,e,n,r,o){var s=t[e],a=t[e+1];for(e+=r;e<n;e+=r){var l=t[e],u=t[e+1],c=(0,i.bI)(s,a,l,u);c>o&&(o=c),s=l,a=u}return o}function s(t,e,n,i,r){for(var s=0,a=n.length;s<a;++s){var l=n[s];r=o(t,e,l,i,r),e=l}return r}function a(t,e,n,i,r){for(var o=0,a=n.length;o<a;++o){var l=n[o];r=s(t,e,l,i,r),e=l[l.length-1]}return r}function l(t,e,n,o,s,a,l,u,c,h,p){if(e==n)return h;var f,d;if(0===s){if((d=(0,i.bI)(l,u,t[e],t[e+1]))<h){for(f=0;f<o;++f)c[f]=t[e+f];return c.length=o,d}return h}for(var g=p||[NaN,NaN],_=e+o;_<n;)if(r(t,_-o,_,o,l,u,g),(d=(0,i.bI)(l,u,g[0],g[1]))<h){for(h=d,f=0;f<o;++f)c[f]=g[f];c.length=o,_+=o}else _+=o*Math.max((Math.sqrt(d)-Math.sqrt(h))/s|0,1);if(a&&(r(t,n-o,e,o,l,u,g),(d=(0,i.bI)(l,u,g[0],g[1]))<h)){for(h=d,f=0;f<o;++f)c[f]=g[f];c.length=o}return h}function u(t,e,n,i,r,o,s,a,u,c,h){for(var p=h||[NaN,NaN],f=0,d=n.length;f<d;++f){var g=n[f];c=l(t,e,g,i,r,o,s,a,u,c,p),e=g}return c}function c(t,e,n,i,r,o,s,a,l,c,h){for(var p=h||[NaN,NaN],f=0,d=n.length;f<d;++f){var g=n[f];c=u(t,e,g,i,r,o,s,a,l,c,p),e=g[g.length-1]}return c}},9679:(t,e,n)=>{"use strict";n.d(e,{TG:()=>o,Zl:()=>a,uG:()=>r,wY:()=>s});var i=n(8641);function r(t,e,n,r,s){return!(0,i.forEachCorner)(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],l=t[n-i+1];e<n;e+=i){var u=t[e],c=t[e+1];l<=o?c>o&&(u-a)*(o-l)-(r-a)*(c-l)>0&&s++:c<=o&&(u-a)*(o-l)-(r-a)*(c-l)<0&&s--,a=u,l=c}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,l=n.length;a<l;++a)if(o(t,n[a-1],n[a],i,r,s))return!1;return!0}function a(t,e,n,i,r,o){if(0===n.length)return!1;for(var a=0,l=n.length;a<l;++a){var u=n[a];if(s(t,e,u,i,r,o))return!0;e=u[u.length-1]}return!1}},8527:(t,e,n)=>{"use strict";function i(t,e,n,i){for(var r=0,o=n.length;r<o;++r)t[e++]=n[r];return e}function r(t,e,n,i){for(var r=0,o=n.length;r<o;++r)for(var s=n[r],a=0;a<i;++a)t[e++]=s[a];return e}function o(t,e,n,i,o){for(var s=o||[],a=0,l=0,u=n.length;l<u;++l){var c=r(t,e,n[l],i);s[a++]=c,e=c}return s.length=a,s}function s(t,e,n,i,r){for(var s=r||[],a=0,l=0,u=n.length;l<u;++l){var c=o(t,e,n[l],i,s[a]);s[a++]=c,e=c[c.length-1]}return s.length=a,s}n.d(e,{IG:()=>i,QT:()=>s,Sg:()=>r,_5:()=>o})},9241:(t,e,n)=>{"use strict";function i(t,e,n,i,r){for(var o=void 0!==r?r:[],s=0,a=e;a<n;a+=i)o[s++]=t.slice(a,a+i);return o.length=s,o}function r(t,e,n,r,o){for(var s=void 0!==o?o:[],a=0,l=0,u=n.length;l<u;++l){var c=n[l];s[a++]=i(t,e,c,r,s[a]),e=c}return s.length=a,s}function o(t,e,n,i,o){for(var s=void 0!==o?o:[],a=0,l=0,u=n.length;l<u;++l){var c=n[l];s[a++]=r(t,e,c,i,s[a]),e=c[c.length-1]}return s.length=a,s}n.d(e,{Ml:()=>i,o1:()=>r,ug:()=>o})},3448:(t,e,n)=>{"use strict";n.d(e,{U:()=>s,X:()=>o});var i=n(9679),r=n(5537);function o(t,e,n,o,s,a,l){for(var u,c,h,p,f,d,g,_=s[a+1],y=[],v=0,m=n.length;v<m;++v){var x=n[v];for(p=t[x-o],d=t[x-o+1],u=e;u<x;u+=o)f=t[u],g=t[u+1],(_<=d&&g<=_||d<=_&&_<=g)&&(h=(_-d)/(g-d)*(f-p)+p,y.push(h)),p=f,d=g}var E=NaN,C=-1/0;for(y.sort(r.kK),p=y[0],u=1,c=y.length;u<c;++u){f=y[u];var w=Math.abs(f-p);w>C&&(h=(p+f)/2,(0,i.wY)(t,e,n,o,h,_)&&(E=h,C=w)),p=f}return isNaN(E)&&(E=s[a]),l?(l.push(E,_,C),l):[E,_,C]}function s(t,e,n,i,r){for(var s=[],a=0,l=n.length;a<l;++a){var u=n[a];s=o(t,e,u,i,r,2*a,s),e=u[u.length-1]}return s}},9405:(t,e,n)=>{"use strict";n.d(e,{WW:()=>o,dG:()=>a,iJ:()=>s});var i=n(5537),r=n(3983);function o(t,e,n,o,s,a,l){var u,c,h=(n-e)/o;if(1===h)u=e;else if(2===h)u=e,c=s;else if(0!==h){for(var p=t[e],f=t[e+1],d=0,g=[0],_=e+o;_<n;_+=o){var y=t[_],v=t[_+1];d+=Math.sqrt((y-p)*(y-p)+(v-f)*(v-f)),g.push(d),p=y,f=v}var m=s*d,x=(0,i.ry)(g,m);x<0?(c=(m-g[-x-2])/(g[-x-1]-g[-x-2]),u=e+(-x-2)*o):u=e+x*o}var E=l>1?l:2,C=a||new Array(E);for(_=0;_<E;++_)C[_]=void 0===u?NaN:void 0===c?t[u+_]:(0,r.t7)(t[u+_],t[u+o+_],c);return C}function s(t,e,n,i,o,s){if(n==e)return null;var a;if(o<t[e+i-1])return s?((a=t.slice(e,e+i))[i-1]=o,a):null;if(t[n-1]<o)return s?((a=t.slice(n-i,n))[i-1]=o,a):null;if(o==t[e+i-1])return t.slice(e,e+i);for(var l=e/i,u=n/i;l<u;){var c=l+u>>1;o<t[(c+1)*i-1]?u=c:l=c+1}var h=t[l*i-1];if(o==h)return t.slice((l-1)*i,(l-1)*i+i);var p=(o-h)/(t[(l+1)*i-1]-h);a=[];for(var f=0;f<i-1;++f)a.push((0,r.t7)(t[(l-1)*i+f],t[l*i+f],p));return a.push(o),a}function a(t,e,n,i,r,o,a){if(a)return s(t,e,n[n.length-1],i,r,o);var l;if(r<t[i-1])return o?((l=t.slice(0,i))[i-1]=r,l):null;if(t[t.length-1]<r)return o?((l=t.slice(t.length-i))[i-1]=r,l):null;for(var u=0,c=n.length;u<c;++u){var h=n[u];if(e!=h){if(r<t[e+i-1])return null;if(r<=t[h-1])return s(t,e,h,i,r,!1);e=h}}return null}},3746:(t,e,n)=>{"use strict";n.d(e,{AW:()=>a,Kz:()=>s,ac:()=>l,oW:()=>u});var i=n(8641),r=n(3032),o=n(9679);function s(t,e,n,o,s){var a=(0,i.extendFlatCoordinates)((0,i.createEmpty)(),t,e,n,o);return!!(0,i.intersects)(s,a)&&(!!(0,i.containsExtent)(s,a)||a[0]>=s[0]&&a[2]<=s[2]||a[1]>=s[1]&&a[3]<=s[3]||(0,r.E)(t,e,n,o,(function(t,e){return(0,i.intersectsSegment)(s,t,e)})))}function a(t,e,n,i,r){for(var o=0,a=n.length;o<a;++o){if(s(t,e,n[o],i,r))return!0;e=n[o]}return!1}function l(t,e,n,i,r){if(!function(t,e,n,i,r){return!!(s(t,e,n,i,r)||(0,o.TG)(t,e,n,i,r[0],r[1])||(0,o.TG)(t,e,n,i,r[0],r[3])||(0,o.TG)(t,e,n,i,r[2],r[1])||(0,o.TG)(t,e,n,i,r[2],r[3]))}(t,e,n[0],i,r))return!1;if(1===n.length)return!0;for(var a=1,l=n.length;a<l;++a)if((0,o.uG)(t,n[a-1],n[a],i,r)&&!s(t,n[a-1],n[a],i,r))return!1;return!0}function u(t,e,n,i,r){for(var o=0,s=n.length;o<s;++o){var a=n[o];if(l(t,e,a,i,r))return!0;e=a[a.length-1]}return!1}},7374:(t,e,n)=>{"use strict";function i(t,e,n,i){for(var r=t[e],o=t[e+1],s=0,a=e+i;a<n;a+=i){var l=t[a],u=t[a+1];s+=Math.sqrt((l-r)*(l-r)+(u-o)*(u-o)),r=l,o=u}return s}n.d(e,{W:()=>i})},974:(t,e,n)=>{"use strict";function i(t,e,n,i){for(;e<n-i;){for(var r=0;r<i;++r){var o=t[e+r];t[e+r]=t[n-i+r],t[n-i+r]=o}e+=i,n-=i}}function r(t,e,n,i){for(var r=0,o=t[n-i],s=t[n-i+1];e<n;e+=i){var a=t[e],l=t[e+1];r+=(a-o)*(l+s),o=a,s=l}return 0===r?void 0:r>0}function o(t,e,n,i,o){for(var s=void 0!==o&&o,a=0,l=n.length;a<l;++a){var u=n[a],c=r(t,e,u,i);if(0===a){if(s&&c||!s&&!c)return!1}else if(s&&!c||!s&&c)return!1;e=u}return!0}function s(t,e,n,i,r){for(var s=0,a=n.length;s<a;++s){var l=n[s];if(!o(t,e,l,i,r))return!1;l.length&&(e=l[l.length-1])}return!0}function a(t,e,n,o,s){for(var a=void 0!==s&&s,l=0,u=n.length;l<u;++l){var c=n[l],h=r(t,e,c,o);(0===l?a&&h||!a&&!h:a&&!h||!a&&h)&&i(t,e,c,o),e=c}return e}function l(t,e,n,i,r){for(var o=0,s=n.length;o<s;++o)e=a(t,e,n[o],i,r);return e}n.d(e,{$v:()=>o,Oj:()=>s,zX:()=>a,dL:()=>l})},3032:(t,e,n)=>{"use strict";function i(t,e,n,i,r){var o;for(e+=i;e<n;e+=i)if(o=r(t.slice(e-i,e),t.slice(e,e+i)))return o;return!1}n.d(e,{E:()=>i})},226:(t,e,n)=>{"use strict";n.d(e,{Pp:()=>u,UJ:()=>o,Zh:()=>l,dt:()=>r,uZ:()=>s});var i=n(3983);function r(t,e,n,r,o,s,a){var l=(n-e)/r;if(l<3){for(;e<n;e+=r)s[a++]=t[e],s[a++]=t[e+1];return a}var u=new Array(l);u[0]=1,u[l-1]=1;for(var c=[e,n-r],h=0;c.length>0;){for(var p=c.pop(),f=c.pop(),d=0,g=t[f],_=t[f+1],y=t[p],v=t[p+1],m=f+r;m<p;m+=r){var x=t[m],E=t[m+1],C=(0,i.rU)(x,E,g,_,y,v);C>d&&(h=m,d=C)}d>o&&(u[(h-e)/r]=1,f+r<h&&c.push(f,h),h+r<p&&c.push(h,p))}for(m=0;m<l;++m)u[m]&&(s[a++]=t[e+m*r],s[a++]=t[e+m*r+1]);return a}function o(t,e,n,i,o,s,a,l){for(var u=0,c=n.length;u<c;++u){var h=n[u];a=r(t,e,h,i,o,s,a),l.push(a),e=h}return a}function s(t,e){return e*Math.round(t/e)}function a(t,e,n,i,r,o,a){if(e==n)return a;var l,u,c=s(t[e],r),h=s(t[e+1],r);e+=i,o[a++]=c,o[a++]=h;do{if(l=s(t[e],r),u=s(t[e+1],r),(e+=i)==n)return o[a++]=l,o[a++]=u,a}while(l==c&&u==h);for(;e<n;){var p=s(t[e],r),f=s(t[e+1],r);if(e+=i,p!=l||f!=u){var d=l-c,g=u-h,_=p-c,y=f-h;d*y==g*_&&(d<0&&_<d||d==_||d>0&&_>d)&&(g<0&&y<g||g==y||g>0&&y>g)?(l=p,u=f):(o[a++]=l,o[a++]=u,c=l,h=u,l=p,u=f)}}return o[a++]=l,o[a++]=u,a}function l(t,e,n,i,r,o,s,l){for(var u=0,c=n.length;u<c;++u){var h=n[u];s=a(t,e,h,i,r,o,s),l.push(s),e=h}return s}function u(t,e,n,i,r,o,s,a){for(var u=0,c=n.length;u<c;++u){var h=n[u],p=[];s=l(t,e,h,i,r,o,s,p),a.push(p),e=h[h.length-1]}return s}},6442:(t,e,n)=>{"use strict";function i(t,e,n,i,r,o){for(var s=o||[],a=0,l=e;l<n;l+=i){var u=t[l],c=t[l+1];s[a++]=r[0]*u+r[2]*c+r[4],s[a++]=r[1]*u+r[3]*c+r[5]}return o&&s.length!=a&&(s.length=a),s}function r(t,e,n,i,r,o,s){for(var a=s||[],l=Math.cos(r),u=Math.sin(r),c=o[0],h=o[1],p=0,f=e;f<n;f+=i){var d=t[f]-c,g=t[f+1]-h;a[p++]=c+d*l-g*u,a[p++]=h+d*u+g*l;for(var _=f+2;_<f+i;++_)a[p++]=t[_]}return s&&a.length!=p&&(a.length=p),a}function o(t,e,n,i,r,o,s,a){for(var l=a||[],u=s[0],c=s[1],h=0,p=e;p<n;p+=i){var f=t[p]-u,d=t[p+1]-c;l[h++]=u+r*f,l[h++]=c+o*d;for(var g=p+2;g<p+i;++g)l[h++]=t[g]}return a&&l.length!=h&&(l.length=h),l}function s(t,e,n,i,r,o,s){for(var a=s||[],l=0,u=e;u<n;u+=i){a[l++]=t[u]+r,a[l++]=t[u+1]+o;for(var c=u+2;c<u+i;++c)a[l++]=t[c]}return s&&a.length!=l&&(a.length=l),a}n.d(e,{Iu:()=>s,U1:()=>r,bA:()=>o,vT:()=>i})},177:(t,e,n)=>{"use strict";n.d(e,{G$:()=>o,Id:()=>l,MP:()=>a,Tp:()=>u,V:()=>r,bM:()=>c,tK:()=>s});var i="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",r=-1!==i.indexOf("firefox"),o=(-1!==i.indexOf("safari")&&-1==i.indexOf("chrom")&&(i.indexOf("version/15.4")>=0||i.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==i.indexOf("webkit")&&-1==i.indexOf("edge")),s=-1!==i.indexOf("macintosh"),a="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,l="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,u="undefined"!=typeof Image&&Image.prototype.decode,c=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(t){}return t}()},7182:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c,pan:()=>l,zoomByDelta:()=>u});var i,r=n(2971),o=n(4049),s=n(1015),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function l(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:s.GE,center:t.getConstrainedCenter(r)})}}function u(t,e,n,i){var r=t.getZoom();if(void 0!==r){var o=t.getConstrainedZoom(r+e),a=t.getResolutionForZoom(o);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:a,anchor:n,duration:void 0!==i?i:250,easing:s.Vv})}}const c=function(t){function e(e){var n=t.call(this)||this;return n.on,n.once,n.un,e&&e.handleEvent&&(n.handleEvent=e.handleEvent),n.map_=null,n.setActive(!0),n}return a(e,t),e.prototype.getActive=function(){return this.get(o.Z.ACTIVE)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(o.Z.ACTIVE,t)},e.prototype.setMap=function(t){this.map_=t},e}(r.Z)},4515:(t,e,n)=>{"use strict";n.d(e,{S:()=>l,Z:()=>u});var i,r=n(7182),o=n(2217),s=n(9374),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function l(t){for(var e=t.length,n=0,i=0,r=0;r<e;r++)n+=t[r].clientX,i+=t[r].clientY;return[n/e,i/e]}const u=function(t){function e(e){var n=this,i=e||{};return n=t.call(this,i)||this,i.handleDownEvent&&(n.handleDownEvent=i.handleDownEvent),i.handleDragEvent&&(n.handleDragEvent=i.handleDragEvent),i.handleMoveEvent&&(n.handleMoveEvent=i.handleMoveEvent),i.handleUpEvent&&(n.handleUpEvent=i.handleUpEvent),i.stopDown&&(n.stopDown=i.stopDown),n.handlingDownUpSequence=!1,n.trackedPointers_={},n.targetPointers=[],n}return a(e,t),e.prototype.getPointerCount=function(){return this.targetPointers.length},e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==o.Z.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==o.Z.POINTERUP){var n=this.handleUpEvent(t);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(t.type==o.Z.POINTERDOWN){var i=this.handleDownEvent(t);this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==o.Z.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===o.Z.POINTERDOWN||e===o.Z.POINTERDRAG||e===o.Z.POINTERUP}(t)){var e=t.originalEvent,n=e.pointerId.toString();t.type==o.Z.POINTERUP?delete this.trackedPointers_[n]:(t.type==o.Z.POINTERDOWN||n in this.trackedPointers_)&&(this.trackedPointers_[n]=e),this.targetPointers=(0,s.KX)(this.trackedPointers_)}},e}(r.default)},4049:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={ACTIVE:"active"}},947:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var i,r=n(2971),o=n(1912),s=n(4187),a=n(9515),l=n(9374),u=n(3983),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function 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;n.on,n.once,n.un,n.background_=e.background;var i=(0,l.f0)({},e);return"object"==typeof e.properties&&(delete i.properties,(0,l.f0)(i,e.properties)),i[o.Z.OPACITY]=void 0!==e.opacity?e.opacity:1,(0,a.h)("number"==typeof i[o.Z.OPACITY],64),i[o.Z.VISIBLE]=void 0===e.visible||e.visible,i[o.Z.Z_INDEX]=e.zIndex,i[o.Z.MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,i[o.Z.MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,i[o.Z.MIN_ZOOM]=void 0!==e.minZoom?e.minZoom:-1/0,i[o.Z.MAX_ZOOM]=void 0!==e.maxZoom?e.maxZoom:1/0,n.className_=void 0!==i.className?i.className:"ol-layer",delete i.className,n.setProperties(i),n.state_=null,n}return c(e,t),e.prototype.getBackground=function(){return this.background_},e.prototype.getClassName=function(){return this.className_},e.prototype.getLayerState=function(t){var e=this.state_||{layer:this,managed:void 0===t||t},n=this.getZIndex();return e.opacity=(0,u.uZ)(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==n||e.managed?n:1/0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e},e.prototype.getLayersArray=function(t){return(0,s.O3)()},e.prototype.getLayerStatesArray=function(t){return(0,s.O3)()},e.prototype.getExtent=function(){return this.get(o.Z.EXTENT)},e.prototype.getMaxResolution=function(){return this.get(o.Z.MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(o.Z.MIN_RESOLUTION)},e.prototype.getMinZoom=function(){return this.get(o.Z.MIN_ZOOM)},e.prototype.getMaxZoom=function(){return this.get(o.Z.MAX_ZOOM)},e.prototype.getOpacity=function(){return this.get(o.Z.OPACITY)},e.prototype.getSourceState=function(){return(0,s.O3)()},e.prototype.getVisible=function(){return this.get(o.Z.VISIBLE)},e.prototype.getZIndex=function(){return this.get(o.Z.Z_INDEX)},e.prototype.setBackground=function(t){this.background_=t,this.changed()},e.prototype.setExtent=function(t){this.set(o.Z.EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(o.Z.MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(o.Z.MIN_RESOLUTION,t)},e.prototype.setMaxZoom=function(t){this.set(o.Z.MAX_ZOOM,t)},e.prototype.setMinZoom=function(t){this.set(o.Z.MIN_ZOOM,t)},e.prototype.setOpacity=function(t){(0,a.h)("number"==typeof t,64),this.set(o.Z.OPACITY,t)},e.prototype.setVisible=function(t){this.set(o.Z.VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(o.Z.Z_INDEX,t)},e.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),t.prototype.disposeInternal.call(this)},e}(r.Z)},8734:(t,e,n)=>{"use strict";n.r(e),n.d(e,{GroupEvent:()=>y,default:()=>m});var i,r=n(947),o=n(8714),s=n(2071),a=n(291),l=n(5487),u=n(5990),c=n(4562),h=n(9515),p=n(9374),f=n(8641),d=n(4187),g=n(5818),_=(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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),y=function(t){function e(e,n){var i=t.call(this,e)||this;return i.layer=n,i}return _(e,t),e}(a.ZP),v="layers";const m=function(t){function e(e){var n=this,i=e||{},r=(0,p.f0)({},i);delete r.layers;var s=i.layers;return(n=t.call(this,r)||this).on,n.once,n.un,n.layersListenerKeys_=[],n.listenerKeys_={},n.addChangeListener(v,n.handleLayersChanged_),s?Array.isArray(s)?s=new o.Z(s.slice(),{unique:!0}):(0,h.h)("function"==typeof s.getArray,43):s=new o.Z(void 0,{unique:!0}),n.setLayers(s),n}return _(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(g.bN),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push((0,g.oL)(t,s.Z.ADD,this.handleLayersAdd_,this),(0,g.oL)(t,s.Z.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(g.bN);(0,p.ZH)(this.listenerKeys_);for(var n=t.getArray(),i=0,r=n.length;i<r;i++){var o=n[i];this.registerLayerListeners_(o),this.dispatchEvent(new y("addlayer",o))}this.changed()},e.prototype.registerLayerListeners_=function(t){var n=[(0,g.oL)(t,u.Z.PROPERTYCHANGE,this.handleLayerChange_,this),(0,g.oL)(t,l.Z.CHANGE,this.handleLayerChange_,this)];t instanceof e&&n.push((0,g.oL)(t,"addlayer",this.handleLayerGroupAdd_,this),(0,g.oL)(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,d.sq)(t)]=n},e.prototype.handleLayerGroupAdd_=function(t){this.dispatchEvent(new y("addlayer",t.layer))},e.prototype.handleLayerGroupRemove_=function(t){this.dispatchEvent(new y("removelayer",t.layer))},e.prototype.handleLayersAdd_=function(t){var e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new y("addlayer",e)),this.changed()},e.prototype.handleLayersRemove_=function(t){var e=t.element,n=(0,d.sq)(e);this.listenerKeys_[n].forEach(g.bN),delete this.listenerKeys_[n],this.dispatchEvent(new y("removelayer",e)),this.changed()},e.prototype.getLayers=function(){return this.get(v)},e.prototype.setLayers=function(t){var e=this.getLayers();if(e)for(var n=e.getArray(),i=0,r=n.length;i<r;++i)this.dispatchEvent(new y("removelayer",n[i]));this.set(v,t)},e.prototype.getLayersArray=function(t){var e=void 0!==t?t:[];return this.getLayers().forEach((function(t){t.getLayersArray(e)})),e},e.prototype.getLayerStatesArray=function(t){var e=void 0!==t?t:[],n=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));var i=this.getLayerState(),r=i.zIndex;t||void 0!==i.zIndex||(r=0);for(var o=n,s=e.length;o<s;o++){var a=e[o];a.opacity*=i.opacity,a.visible=a.visible&&i.visible,a.maxResolution=Math.min(a.maxResolution,i.maxResolution),a.minResolution=Math.max(a.minResolution,i.minResolution),a.minZoom=Math.max(a.minZoom,i.minZoom),a.maxZoom=Math.min(a.maxZoom,i.maxZoom),void 0!==i.extent&&(void 0!==a.extent?a.extent=(0,f.getIntersection)(a.extent,i.extent):a.extent=i.extent),void 0===a.zIndex&&(a.zIndex=r)}return e},e.prototype.getSourceState=function(){return c.Z.READY},e}(r.Z)},1295:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d,j:()=>f});var i,r=n(947),o=n(5487),s=n(1912),a=n(8771),l=n(4562),u=n(9515),c=n(9374),h=n(5818),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function 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.minResolution||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,c.f0)({},e);delete i.source,(n=t.call(this,i)||this).on,n.once,n.un,n.mapPrecomposeKey_=null,n.mapRenderKey_=null,n.sourceChangeKey_=null,n.renderer_=null,n.rendered=!1,e.render&&(n.render=e.render),e.map&&n.setMap(e.map),n.addChangeListener(s.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(s.Z.SOURCE)||null},e.prototype.getRenderSource=function(){return this.getSource()},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():l.Z.UNDEFINED},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&((0,h.bN)(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=(0,h.oL)(t,o.Z.CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.getFeatures=function(t){return this.renderer_?this.renderer_.getFeatures(t):new Promise((function(t){return t([])}))},e.prototype.getData=function(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null},e.prototype.render=function(t,e){var n=this.getRenderer();if(n.prepareFrame(t))return this.rendered=!0,n.renderFrame(t,e)},e.prototype.unrender=function(){this.rendered=!1},e.prototype.setMapInternal=function(t){t||this.unrender(),this.set(s.Z.MAP,t)},e.prototype.getMapInternal=function(){return this.get(s.Z.MAP)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&((0,h.bN)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,h.bN)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,h.oL)(t,a.Z.PRECOMPOSE,(function(t){var e=t.frameState.layerStatesArray,n=this.getLayerState(!1);(0,u.h)(!e.some((function(t){return t.layer===n.layer})),67),e.push(n)}),this),this.mapRenderKey_=(0,h.oL)(this,o.Z.CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(s.Z.SOURCE,t)},e.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},e.prototype.hasRenderer=function(){return!!this.renderer_},e.prototype.createRenderer=function(){return null},e.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),t.prototype.disposeInternal.call(this)},e}(r.Z)},1912:(t,e,n)=>{"use strict";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",MAP:"map"}},9271:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>Mt});var i,r=n(1295),o=n(2582),s=n(9374),a=n(7539),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u="renderOrder";const c=function(t){function e(e){var n=this,i=e||{},r=(0,s.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 l(e,t),e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(u)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.renderDeclutter=function(t){t.declutterTree||(t.declutterTree=new o(9)),this.getRenderer().renderDeclutter(t)},e.prototype.setRenderOrder=function(t){this.set(u,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:a.createDefaultStyle,this.styleFunction_=null===t?void 0:(0,a.toFunction)(this.style_),this.changed()},e}(r.Z);var h={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},p=[h.FILL],f=[h.STROKE],d=[h.BEGIN_PATH],g=[h.CLOSE_PATH];const _=h;var y=n(4754),v=n(8716);const m=function(){function t(){}return t.prototype.drawCustom=function(t,e,n,i){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,e){},t.prototype.drawFeature=function(t,e){},t.prototype.drawGeometryCollection=function(t,e){},t.prototype.drawLineString=function(t,e){},t.prototype.drawMultiLineString=function(t,e){},t.prototype.drawMultiPoint=function(t,e){},t.prototype.drawMultiPolygon=function(t,e){},t.prototype.drawPoint=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.drawText=function(t,e){},t.prototype.setFillStrokeStyle=function(t,e){},t.prototype.setImageStyle=function(t,e){},t.prototype.setTextStyle=function(t,e){},t}();var x=n(6620),E=n(8641),C=n(147),w=n(5537),T=n(9241),S=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),O=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 S(e,t),e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))},e.prototype.appendFlatPointCoordinates=function(t,e){for(var n=this.getBufferedMaxExtent(),i=this.tmpCoordinate_,r=this.coordinates,o=r.length,s=0,a=t.length;s<a;s+=e)i[0]=t[s],i[1]=t[s+1],(0,E.containsCoordinate)(n,i)&&(r[o++]=i[0],r[o++]=i[1]);return o},e.prototype.appendFlatLineCoordinates=function(t,e,n,i,r,o){var s=this.coordinates,a=s.length,l=this.getBufferedMaxExtent();o&&(e+=i);var u,c,h,p=t[e],f=t[e+1],d=this.tmpCoordinate_,g=!0;for(u=e+i;u<n;u+=i)d[0]=t[u],d[1]=t[u+1],(h=(0,E.coordinateRelationship)(l,d))!==c?(g&&(s[a++]=p,s[a++]=f,g=!1),s[a++]=d[0],s[a++]=d[1]):h===v.Z.INTERSECTING?(s[a++]=d[0],s[a++]=d[1],g=!1):g=!0,p=d[0],f=d[1],c=h;return(r&&g||u===e+i)&&(s[a++]=p,s[a++]=f),a},e.prototype.drawCustomCoordinates_=function(t,e,n,i,r){for(var o=0,s=n.length;o<s;++o){var a=n[o],l=this.appendFlatLineCoordinates(t,e,a,i,!1,!1);r.push(l),e=a}return e},e.prototype.drawCustom=function(t,e,n,i){this.beginGeometry(t,e);var r,o,s,a,l,u=t.getType(),c=t.getStride(),h=this.coordinates.length;switch(u){case y.Z.MULTI_POLYGON:r=t.getOrientedFlatCoordinates(),a=[];var p=t.getEndss();l=0;for(var f=0,d=p.length;f<d;++f){var g=[];l=this.drawCustomCoordinates_(r,l,p[f],c,g),a.push(g)}this.instructions.push([_.CUSTOM,h,a,t,n,T.ug]),this.hitDetectionInstructions.push([_.CUSTOM,h,a,t,i||n,T.ug]);break;case y.Z.POLYGON:case y.Z.MULTI_LINE_STRING:s=[],r=u==y.Z.POLYGON?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),l=this.drawCustomCoordinates_(r,0,t.getEnds(),c,s),this.instructions.push([_.CUSTOM,h,s,t,n,T.o1]),this.hitDetectionInstructions.push([_.CUSTOM,h,s,t,i||n,T.o1]);break;case y.Z.LINE_STRING:case y.Z.CIRCLE:r=t.getFlatCoordinates(),o=this.appendFlatLineCoordinates(r,0,r.length,c,!1,!1),this.instructions.push([_.CUSTOM,h,o,t,n,T.Ml]),this.hitDetectionInstructions.push([_.CUSTOM,h,o,t,i||n,T.Ml]);break;case y.Z.MULTI_POINT:r=t.getFlatCoordinates(),(o=this.appendFlatPointCoordinates(r,c))>h&&(this.instructions.push([_.CUSTOM,h,o,t,n,T.Ml]),this.hitDetectionInstructions.push([_.CUSTOM,h,o,t,i||n,T.Ml]));break;case y.Z.POINT:r=t.getFlatCoordinates(),this.coordinates.push(r[0],r[1]),o=this.coordinates.length,this.instructions.push([_.CUSTOM,h,o,t,n]),this.hitDetectionInstructions.push([_.CUSTOM,h,o,t,i||n])}this.endGeometry(e)},e.prototype.beginGeometry=function(t,e){this.beginGeometryInstruction1_=[_.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[_.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t,e=this.hitDetectionInstructions;e.reverse();var n,i,r=e.length,o=-1;for(t=0;t<r;++t)(i=(n=e[t])[0])==_.END_GEOMETRY?o=t:i==_.BEGIN_GEOMETRY&&(n[2]=t,(0,w.FZ)(this.hitDetectionInstructions,o,t),o=-1)},e.prototype.setFillStrokeStyle=function(t,e){var n=this.state;if(t){var i=t.getColor();n.fillStyle=(0,x.y)(i||C.bL)}else n.fillStyle=void 0;if(e){var r=e.getColor();n.strokeStyle=(0,x.y)(r||C.Tx);var o=e.getLineCap();n.lineCap=void 0!==o?o:C.mb;var s=e.getLineDash();n.lineDash=s?s.slice():C.X9;var a=e.getLineDashOffset();n.lineDashOffset=a||C.He;var l=e.getLineJoin();n.lineJoin=void 0!==l?l:C.rc;var u=e.getWidth();n.lineWidth=void 0!==u?u:C.yC;var c=e.getMiterLimit();n.miterLimit=void 0!==c?c:C.V4,n.lineWidth>this.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=[_.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[_.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,l=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=i||r!=t.currentLineDash&&!(0,w.fS)(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=s||t.currentLineWidth!=a||t.currentMiterLimit!=l)&&(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=l)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var e=[_.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,E.clone)(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;(0,E.buffer)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(m);const b=O;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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const P=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i,r)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterImageWithText_=void 0,o}return R(e,t),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.appendFlatPointCoordinates(n,i);this.instructions.push([_.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([_.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(n,i);this.instructions.push([_.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([_.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,t.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,e){var n=t.getAnchor(),i=t.getSize(),r=t.getHitDetectionImage(),o=t.getImage(this.pixelRatio),s=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=r,this.image_=o,this.height_=i[1],this.opacity_=t.getOpacity(),this.originX_=s[0]*this.imagePixelRatio_,this.originY_=s[1]*this.imagePixelRatio_,this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=i[0],this.declutterImageWithText_=e},e}(b);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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");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){return t.call(this,e,n,i,r)||this}return I(e,t),e.prototype.drawFlatCoordinates_=function(t,e,n,i){var r=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,n,i,!1,!1),s=[_.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([_.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,C.X9,C.He],d);var o=t.getFlatCoordinates(),s=t.getStride();this.drawFlatCoordinates_(o,0,o.length,s),this.hitDetectionInstructions.push(f),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([_.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],d);for(var o=t.getEnds(),s=t.getFlatCoordinates(),a=t.getStride(),l=0,u=0,c=o.length;u<c;++u)l=this.drawFlatCoordinates_(s,l,o[u],a);this.hitDetectionInstructions.push(f),this.endGeometry(e)}},e.prototype.finish=function(){var e=this.state;return null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(f),this.reverseHitDetectionInstructions(),this.state=null,t.prototype.finish.call(this)},e.prototype.applyStroke=function(e){null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(f),e.lastStroke=this.coordinates.length),e.lastStroke=0,t.prototype.applyStroke.call(this,e),this.instructions.push(d)},e}(b);var M=n(226),A=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const Z=function(t){function e(e,n,i,r){return t.call(this,e,n,i,r)||this}return A(e,t),e.prototype.drawFlatCoordinatess_=function(t,e,n,i){var r=this.state,o=void 0!==r.fillStyle,s=void 0!==r.strokeStyle,a=n.length;this.instructions.push(d),this.hitDetectionInstructions.push(d);for(var l=0;l<a;++l){var u=n[l],c=this.coordinates.length,h=this.appendFlatLineCoordinates(t,e,u,i,!0,!s),y=[_.MOVE_TO_LINE_TO,c,h];this.instructions.push(y),this.hitDetectionInstructions.push(y),s&&(this.instructions.push(g),this.hitDetectionInstructions.push(g)),e=u}return o&&(this.instructions.push(p),this.hitDetectionInstructions.push(p)),s&&(this.instructions.push(f),this.hitDetectionInstructions.push(f)),e},e.prototype.drawCircle=function(t,e){var n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0!==i||void 0!==r){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([_.SET_FILL_STYLE,C.bL]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([_.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=t.getFlatCoordinates(),s=t.getStride(),a=this.coordinates.length;this.appendFlatLineCoordinates(o,0,o.length,s,!1,!1);var l=[_.CIRCLE,a];this.instructions.push(d,l),this.hitDetectionInstructions.push(d,l),void 0!==n.fillStyle&&(this.instructions.push(p),this.hitDetectionInstructions.push(p)),void 0!==n.strokeStyle&&(this.instructions.push(f),this.hitDetectionInstructions.push(f)),this.endGeometry(e)}},e.prototype.drawPolygon=function(t,e){var n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0!==i||void 0!==r){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([_.SET_FILL_STYLE,C.bL]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([_.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=t.getEnds(),s=t.getOrientedFlatCoordinates(),a=t.getStride();this.drawFlatCoordinatess_(s,0,o,a),this.endGeometry(e)}},e.prototype.drawMultiPolygon=function(t,e){var n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0!==i||void 0!==r){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([_.SET_FILL_STYLE,C.bL]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([_.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);for(var o=t.getEndss(),s=t.getOrientedFlatCoordinates(),a=t.getStride(),l=0,u=0,c=o.length;u<c;++u)l=this.drawFlatCoordinatess_(s,l,o[u],a);this.endGeometry(e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var e=this.tolerance;if(0!==e)for(var n=this.coordinates,i=0,r=n.length;i<r;++i)n[i]=(0,M.uZ)(n[i],e);return t.prototype.finish.call(this)},e.prototype.setFillStrokeStyles_=function(){var t=this.state;void 0!==t.fillStyle&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)},e}(b);var F=n(6313),N=n(4187);function k(t,e,n,i,r){var o,s,a,l,u,c,h,p,f,d=n,g=n,_=0,y=0,v=n;for(o=n;o<i;o+=r){var m=e[o],x=e[o+1];void 0!==l&&(p=m-l,f=x-u,a=Math.sqrt(p*p+f*f),void 0!==c&&(y+=s,Math.acos((c*p+h*f)/(s*a))>t&&(y>_&&(_=y,d=v,g=o),y=0,v=o-r)),s=a,c=p,h=f),l=m,u=x}return(y+=a)>_?[v,o]:[d,g]}var 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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");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},G=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i,r)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return D(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=this.coordinates,s=o.length,a=t.getType(),l=null,u=t.getStride();if(r.placement!==F.Z.LINE||a!=y.Z.LINE_STRING&&a!=y.Z.MULTI_LINE_STRING&&a!=y.Z.POLYGON&&a!=y.Z.MULTI_POLYGON){var c=r.overflow?null:[];switch(a){case y.Z.POINT:case y.Z.MULTI_POINT:l=t.getFlatCoordinates();break;case y.Z.LINE_STRING:l=t.getFlatMidpoint();break;case y.Z.CIRCLE:l=t.getCenter();break;case y.Z.MULTI_LINE_STRING:l=t.getFlatMidpoints(),u=2;break;case y.Z.POLYGON:l=t.getFlatInteriorPoint(),r.overflow||c.push(l[2]/this.resolution),u=3;break;case y.Z.MULTI_POLYGON:var h=t.getFlatInteriorPoints();for(l=[],O=0,b=h.length;O<b;O+=3)r.overflow||c.push(h[O+2]/this.resolution),l.push(h[O],h[O+1]);if(0===l.length)return;u=2}if((Z=this.appendFlatPointCoordinates(l,u))===s)return;if(c&&(Z-s)/2!=l.length/u){var p=s/2;c=c.filter((function(t,e){var n=o[2*(p+e)]===l[e*u]&&o[2*(p+e)+1]===l[e*u+1];return n||--p,n}))}this.saveTextStates_(),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);var f=r.padding;if(f!=C.oB&&(r.scale[0]<0||r.scale[1]<0)){var d=r.padding[0],g=r.padding[1],v=r.padding[2],m=r.padding[3];r.scale[0]<0&&(g=-g,m=-m),r.scale[1]<0&&(d=-d,v=-v),f=[d,g,v,m]}var x=this.pixelRatio;this.instructions.push([_.DRAW_IMAGE,s,Z,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterImageWithText_,f==C.oB?C.oB:f.map((function(t){return t*x})),!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,c]);var w=1/x;this.hitDetectionInstructions.push([_.DRAW_IMAGE,s,Z,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[w,w],NaN,this.declutterImageWithText_,f,!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,c]),this.endGeometry(e)}else{if(!(0,E.intersects)(this.getBufferedMaxExtent(),t.getExtent()))return;var T=void 0;if(l=t.getFlatCoordinates(),a==y.Z.LINE_STRING)T=[l.length];else if(a==y.Z.MULTI_LINE_STRING)T=t.getEnds();else if(a==y.Z.POLYGON)T=t.getEnds().slice(0,1);else if(a==y.Z.MULTI_POLYGON){var S=t.getEndss();T=[];for(var O=0,b=S.length;O<b;++O)T.push(S[O][0])}this.beginGeometry(t,e);for(var R=r.textAlign,P=0,I=void 0,L=0,M=T.length;L<M;++L){if(null==R){var A=k(r.maxAngle,l,P,T[L],u);P=A[0],I=A[1]}else I=T[L];for(O=P;O<I;O+=u)o.push(l[O],l[O+1]);var Z=o.length;P=T[L],this.drawChars_(s,Z),s=Z}this.endGeometry(e)}}},e.prototype.saveTextStates_=function(){var t=this.textStrokeState_,e=this.textState_,n=this.textFillState_,i=this.strokeKey_;t&&(i in this.strokeStates||(this.strokeStates[i]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));var r=this.textKey_;r in this.textStates||(this.textStates[r]={font:e.font,textAlign:e.textAlign||C.PH,textBaseline:e.textBaseline||C.ru,scale:e.scale});var o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))},e.prototype.drawChars_=function(t,e){var n=this.textStrokeState_,i=this.textState_,r=this.strokeKey_,o=this.textKey_,s=this.fillKey_;this.saveTextStates_();var a=this.pixelRatio,l=j[i.textBaseline],u=this.textOffsetY_*a,c=this.text_,h=n?n.lineWidth*Math.abs(i.scale[0])/2:0;this.instructions.push([_.DRAW_CHARS,t,e,l,i.overflow,s,i.maxAngle,a,u,r,h*a,c,o,1]),this.hitDetectionInstructions.push([_.DRAW_CHARS,t,e,l,i.overflow,s,i.maxAngle,1,u,r,h,c,o,1/a])},e.prototype.setTextStyle=function(t,e){var n,i,r;if(t){var o=t.getFill();o?((i=this.textFillState_)||(i={},this.textFillState_=i),i.fillStyle=(0,x.y)(o.getColor()||C.bL)):(i=null,this.textFillState_=i);var s=t.getStroke();if(s){(r=this.textStrokeState_)||(r={},this.textStrokeState_=r);var a=s.getLineDash(),l=s.getLineDashOffset(),u=s.getWidth(),c=s.getMiterLimit();r.lineCap=s.getLineCap()||C.mb,r.lineDash=a?a.slice():C.X9,r.lineDashOffset=void 0===l?C.He:l,r.lineJoin=s.getLineJoin()||C.rc,r.lineWidth=void 0===u?C.yC:u,r.miterLimit=void 0===c?C.V4:c,r.strokeStyle=(0,x.y)(s.getColor()||C.Tx)}else r=null,this.textStrokeState_=r;n=this.textState_;var h=t.getFont()||C.Df;(0,C.Qx)(h);var p=t.getScaleArray();n.overflow=t.getOverflow(),n.font=h,n.maxAngle=t.getMaxAngle(),n.placement=t.getPlacement(),n.textAlign=t.getTextAlign(),n.textBaseline=t.getTextBaseline()||C.ru,n.backgroundFill=t.getBackgroundFill(),n.backgroundStroke=t.getBackgroundStroke(),n.padding=t.getPadding()||C.oB,n.scale=void 0===p?[1,1]:p;var f=t.getOffsetX(),d=t.getOffsetY(),g=t.getRotateWithView(),_=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===f?0:f,this.textOffsetY_=void 0===d?0:d,this.textRotateWithView_=void 0!==g&&g,this.textRotation_=void 0===_?0:_,this.strokeKey_=r?("string"==typeof r.strokeStyle?r.strokeStyle:(0,N.sq)(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?")+(n.textBaseline||"?"),this.fillKey_=i?"string"==typeof i.fillStyle?i.fillStyle:"|"+(0,N.sq)(i.fillStyle):""}else this.text_="";this.declutterImageWithText_=e},e}(b),X={Circle:Z,Default:b,Image:P,LineString:L,Polygon:Z,Text:G};const Y=function(){function t(t,e,n,i){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=i,this.resolution_=n,this.buildersByZIndex_={}}return t.prototype.finish=function(){var t={};for(var e in this.buildersByZIndex_){t[e]=t[e]||{};var n=this.buildersByZIndex_[e];for(var i in n){var r=n[i].finish();t[e][i]=r}}return t},t.prototype.getBuilder=function(t,e){var n=void 0!==t?t.toString():"0",i=this.buildersByZIndex_[n];void 0===i&&(i={},this.buildersByZIndex_[n]=i);var r=i[e];return void 0===r&&(r=new(0,X[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),i[e]=r),r},t}();var U=n(8015);const W={CIRCLE:"Circle",DEFAULT:"Default",IMAGE:"Image",LINE_STRING:"LineString",POLYGON:"Polygon",TEXT:"Text"};var z=n(177),B=n(6101),V=n(3983),K=n(6442);function q(t,e,n,i,r,o,s,a,l,u,c,h){var p=t[e],f=t[e+1],d=0,g=0,_=0,y=0;function v(){d=p,g=f,p=t[e+=i],f=t[e+1],y+=_,_=Math.sqrt((p-d)*(p-d)+(f-g)*(f-g))}do{v()}while(e<n-i&&y+_<o);for(var m=0===_?0:(o-y)/_,x=(0,V.t7)(d,p,m),E=(0,V.t7)(g,f,m),C=e-i,w=y,T=o+a*l(u,r,c);e<n-i&&y+_<T;)v();m=0===_?0:(T-y)/_;var S,O=(0,V.t7)(d,p,m),b=(0,V.t7)(g,f,m);if(h){var R=[x,E,O,b];(0,K.U1)(R,0,4,2,h,R,R),S=R[0]>R[2]}else S=x>O;var P,I=Math.PI,L=[],M=C+i===e;if(_=0,y=w,p=t[e=C],f=t[e+1],M){v(),P=Math.atan2(f-g,p-d),S&&(P+=P>0?-I:I);var A=(O+x)/2,Z=(b+E)/2;return L[0]=[A,Z,(T-o)/2,P,r],L}for(var F=0,N=r.length;F<N;){v();var k=Math.atan2(f-g,p-d);if(S&&(k+=k>0?-I:I),void 0!==P){var D=k-P;if(D+=D>I?-2*I:D<-I?2*I:0,Math.abs(D)>s)return null}P=k;for(var j=F,G=0;F<N;++F){var X=a*l(u,r[S?N-F-1:F],c);if(e+i<n&&y+_<o+G+X/2)break;G+=X}if(F!==j){var Y=S?r.substring(N-j,N-F):r.substring(j,F);m=0===_?0:(o+G/2-y)/_,A=(0,V.t7)(d,p,m),Z=(0,V.t7)(g,f,m),L.push([A,Z,G/2,k,Y]),o+=G}}return L}var H=n(7374),$=(0,E.createEmpty)(),J=[],Q=[],tt=[],et=[];function nt(t){return t[3].declutterBox}var it=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function rt(t,e){return"start"!==e&&"end"!==e||it.test(t)||(e="start"===e?"left":"right"),j[e]}function ot(t,e,n){return n>0&&t.push("\n",""),t.push(e,""),t}var st=function(){function t(t,e,n,i){this.overlaps=n,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,B.Ue)(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}return t.prototype.createLabel=function(t,e,n,i){var r=t+e+n+i;if(this.labels_[r])return this.labels_[r];var o=i?this.strokeStates[i]:null,s=n?this.fillStates[n]:null,a=this.textStates[e],l=this.pixelRatio,u=[a.scale[0]*l,a.scale[1]*l],c=Array.isArray(t),h=rt(c?t[0]:t,a.textAlign||C.PH),p=i&&o.lineWidth?o.lineWidth:0,f=c?t:t.split("\n").reduce(ot,[]),d=(0,C.Zw)(a,f),g=d.width,_=d.height,y=d.widths,v=d.heights,m=d.lineWidths,x=g+p,E=[],w=(x+2)*u[0],T=(_+p)*u[1],S={width:w<0?Math.floor(w):Math.ceil(w),height:T<0?Math.floor(T):Math.ceil(T),contextInstructions:E};1==u[0]&&1==u[1]||E.push("scale",u),i&&(E.push("strokeStyle",o.strokeStyle),E.push("lineWidth",p),E.push("lineCap",o.lineCap),E.push("lineJoin",o.lineJoin),E.push("miterLimit",o.miterLimit),(z.Id?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D).prototype.setLineDash&&(E.push("setLineDash",[o.lineDash]),E.push("lineDashOffset",o.lineDashOffset))),n&&E.push("fillStyle",s.fillStyle),E.push("textBaseline","middle"),E.push("textAlign","center");for(var O,b=.5-h,R=h*x+b*p,P=[],I=[],L=0,M=0,A=0,Z=0,F=0,N=f.length;F<N;F+=2){var k=f[F];if("\n"!==k){var D=f[F+1]||a.font;D!==O&&(i&&P.push("font",D),n&&I.push("font",D),O=D),L=Math.max(L,v[A]);var j=[k,R+b*y[A]+h*(y[A]-m[Z]),.5*(p+L)+M];R+=y[A],i&&P.push("strokeText",j),n&&I.push("fillText",j),++A}else M+=L,L=0,R=h*x+b*p,++Z}return Array.prototype.push.apply(E,P),Array.prototype.push.apply(E,I),this.labels_[r]=S,S},t.prototype.replayTextBackground_=function(t,e,n,i,r,o,s){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,r),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),s&&(this.setStrokeStyle_(t,s),t.stroke())},t.prototype.calculateImageOrLabelDimensions_=function(t,e,n,i,r,o,s,a,l,u,c,h,p,f,d,g){var _,y=n-(s*=h[0]),v=i-(a*=h[1]),m=r+l>t?t-l:r,x=o+u>e?e-u:o,C=f[3]+m*h[0]+f[1],w=f[0]+x*h[1]+f[2],T=y-f[3],S=v-f[0];return(d||0!==c)&&(J[0]=T,et[0]=T,J[1]=S,Q[1]=S,Q[0]=T+C,tt[0]=Q[0],tt[1]=S+w,et[1]=tt[1]),0!==c?(_=(0,B.qC)((0,B.Ue)(),n,i,1,1,c,-n,-i),(0,B.nn)(_,J),(0,B.nn)(_,Q),(0,B.nn)(_,tt),(0,B.nn)(_,et),(0,E.createOrUpdate)(Math.min(J[0],Q[0],tt[0],et[0]),Math.min(J[1],Q[1],tt[1],et[1]),Math.max(J[0],Q[0],tt[0],et[0]),Math.max(J[1],Q[1],tt[1],et[1]),$)):(0,E.createOrUpdate)(Math.min(T,T+C),Math.min(S,S+w),Math.max(T,T+C),Math.max(S,S+w),$),p&&(y=Math.round(y),v=Math.round(v)),{drawImageX:y,drawImageY:v,drawImageW:m,drawImageH:x,originX:l,originY:u,declutterBox:{minX:$[0],minY:$[1],maxX:$[2],maxY:$[3],value:g},canvasTransform:_,scale:h}},t.prototype.replayImageOrLabel_=function(t,e,n,i,r,o,s){var a=!(!o&&!s),l=i.declutterBox,u=t.canvas,c=s?s[2]*i.scale[0]/2:0;return l.minX-c<=u.width/e&&l.maxX+c>=0&&l.minY-c<=u.height/e&&l.maxY+c>=0&&(a&&this.replayTextBackground_(t,J,Q,tt,et,o,s),(0,C._f)(t,i.canvasTransform,r,n,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0},t.prototype.fill_=function(t){if(this.alignFill_){var e=(0,B.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()},t.prototype.setStrokeStyle_=function(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},t.prototype.drawLabelWithPointPlacement_=function(t,e,n,i){var r=this.textStates[e],o=this.createLabel(t,e,i,n),s=this.strokeStates[n],a=this.pixelRatio,l=rt(Array.isArray(t)?t[0]:t,r.textAlign||C.PH),u=j[r.textBaseline||C.ru],c=s&&s.lineWidth?s.lineWidth:0;return{label:o,anchorX:l*(o.width/a-2*r.scale[0])+2*(.5-l)*c,anchorY:u*o.height/a+2*(.5-u)*c}},t.prototype.execute_=function(t,e,n,i,r,o,s,a){var l;this.pixelCoordinates_&&(0,w.fS)(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=(0,K.vT)(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),(0,B.lk)(this.renderedTransform_,n));for(var u,c,h,p,f,d,g,y,v,m,x,T,S,O,b,R,P=0,I=i.length,L=0,M=0,A=0,Z=null,F=null,N=this.coordinateCache_,k=this.viewRotation_,D=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,G={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:k},X=this.instructions!=i||this.overlaps?0:200;P<I;){var Y=i[P];switch(Y[0]){case _.BEGIN_GEOMETRY:S=Y[1],R=Y[3],S.getGeometry()?void 0===s||(0,E.intersects)(s,R.getExtent())?++P:P=Y[2]+1:P=Y[2];break;case _.BEGIN_PATH:M>X&&(this.fill_(t),M=0),A>X&&(t.stroke(),A=0),M||A||(t.beginPath(),p=NaN,f=NaN),++P;break;case _.CIRCLE:var U=l[L=Y[1]],W=l[L+1],z=l[L+2]-U,V=l[L+3]-W,$=Math.sqrt(z*z+V*V);t.moveTo(U+$,W),t.arc(U,W,$,0,2*Math.PI,!0),++P;break;case _.CLOSE_PATH:t.closePath(),++P;break;case _.CUSTOM:L=Y[1],u=Y[2];var J=Y[3],Q=Y[4],tt=6==Y.length?Y[5]:void 0;G.geometry=J,G.feature=S,P in N||(N[P]=[]);var et=N[P];tt?tt(l,L,u,2,et):(et[0]=l[L],et[1]=l[L+1],et.length=2),Q(et,G),++P;break;case _.DRAW_IMAGE:L=Y[1],u=Y[2],y=Y[3],c=Y[4],h=Y[5];var it=Y[6],rt=Y[7],ot=Y[8],st=Y[9],at=Y[10],lt=Y[11],ut=Y[12],ct=Y[13],ht=Y[14];if(!y&&Y.length>=19){v=Y[18],m=Y[19],x=Y[20],T=Y[21];var pt=this.drawLabelWithPointPlacement_(v,m,x,T);y=pt.label,Y[3]=y;var ft=Y[22];c=(pt.anchorX-ft)*this.pixelRatio,Y[4]=c;var dt=Y[23];h=(pt.anchorY-dt)*this.pixelRatio,Y[5]=h,it=y.height,Y[6]=it,ct=y.width,Y[13]=ct}var gt=void 0;Y.length>24&&(gt=Y[24]);var _t=void 0,yt=void 0,vt=void 0;Y.length>16?(_t=Y[15],yt=Y[16],vt=Y[17]):(_t=C.oB,yt=!1,vt=!1),at&&D?lt+=k:at||D||(lt-=k);for(var mt=0;L<u;L+=2)if(!(gt&>[mt++]<ct/this.pixelRatio)){var xt=[t,e,y,Vt=this.calculateImageOrLabelDimensions_(y.width,y.height,l[L],l[L+1],ct,it,c,h,ot,st,lt,ut,r,_t,yt||vt,S),rt,yt?Z:null,vt?F:null],Et=void 0,Ct=void 0;if(a&&ht){var wt=u-L;if(!ht[wt]){ht[wt]=xt;continue}if(Et=ht[wt],delete ht[wt],Ct=nt(Et),a.collides(Ct))continue}a&&a.collides(Vt.declutterBox)||(Et&&(a&&a.insert(Ct),this.replayImageOrLabel_.apply(this,Et)),a&&a.insert(Vt.declutterBox),this.replayImageOrLabel_.apply(this,xt))}++P;break;case _.DRAW_CHARS:var Tt=Y[1],St=Y[2],Ot=Y[3],bt=Y[4];T=Y[5];var Rt=Y[6],Pt=Y[7],It=Y[8];x=Y[9];var Lt=Y[10];v=Y[11],m=Y[12];var Mt=[Y[13],Y[13]],At=this.textStates[m],Zt=At.font,Ft=[At.scale[0]*Pt,At.scale[1]*Pt],Nt=void 0;Zt in this.widths_?Nt=this.widths_[Zt]:(Nt={},this.widths_[Zt]=Nt);var kt=(0,H.W)(l,Tt,St,2),Dt=Math.abs(Ft[0])*(0,C.Kd)(Zt,v,Nt);if(bt||Dt<=kt){var jt=this.textStates[m].textAlign,Gt=q(l,Tt,St,2,v,(kt-Dt)*j[jt],Rt,Math.abs(Ft[0]),C.Kd,Zt,Nt,D?0:this.viewRotation_);t:if(Gt){var Xt=[],Yt=void 0,Ut=void 0,Wt=void 0,zt=void 0,Bt=void 0;if(x)for(Yt=0,Ut=Gt.length;Yt<Ut;++Yt){Wt=(Bt=Gt[Yt])[4],zt=this.createLabel(Wt,m,"",x),c=Bt[2]+(Ft[0]<0?-Lt:Lt),h=Ot*zt.height+2*(.5-Ot)*Lt*Ft[1]/Ft[0]-It;var Vt=this.calculateImageOrLabelDimensions_(zt.width,zt.height,Bt[0],Bt[1],zt.width,zt.height,c,h,0,0,Bt[3],Mt,!1,C.oB,!1,S);if(a&&a.collides(Vt.declutterBox))break t;Xt.push([t,e,zt,Vt,1,null,null])}if(T)for(Yt=0,Ut=Gt.length;Yt<Ut;++Yt){if(Wt=(Bt=Gt[Yt])[4],zt=this.createLabel(Wt,m,T,""),c=Bt[2],h=Ot*zt.height-It,Vt=this.calculateImageOrLabelDimensions_(zt.width,zt.height,Bt[0],Bt[1],zt.width,zt.height,c,h,0,0,Bt[3],Mt,!1,C.oB,!1,S),a&&a.collides(Vt.declutterBox))break t;Xt.push([t,e,zt,Vt,1,null,null])}a&&a.load(Xt.map(nt));for(var Kt=0,qt=Xt.length;Kt<qt;++Kt)this.replayImageOrLabel_.apply(this,Xt[Kt])}}++P;break;case _.END_GEOMETRY:if(void 0!==o){var Ht=o(S=Y[1],R);if(Ht)return Ht}++P;break;case _.FILL:X?M++:this.fill_(t),++P;break;case _.MOVE_TO_LINE_TO:for(L=Y[1],u=Y[2],O=l[L],g=(b=l[L+1])+.5|0,(d=O+.5|0)===p&&g===f||(t.moveTo(O,b),p=d,f=g),L+=2;L<u;L+=2)d=(O=l[L])+.5|0,g=(b=l[L+1])+.5|0,L!=u-2&&d===p&&g===f||(t.lineTo(O,b),p=d,f=g);++P;break;case _.SET_FILL_STYLE:Z=Y,this.alignFill_=Y[2],M&&(this.fill_(t),M=0,A&&(t.stroke(),A=0)),t.fillStyle=Y[1],++P;break;case _.SET_STROKE_STYLE:F=Y,A&&(t.stroke(),A=0),this.setStrokeStyle_(t,Y),++P;break;case _.STROKE:X?A++:t.stroke(),++P;break;default:++P}}M&&this.fill_(t),A&&t.stroke()},t.prototype.execute=function(t,e,n,i,r,o){this.viewRotation_=i,this.execute_(t,e,n,this.instructions,r,void 0,void 0,o)},t.prototype.executeHitDetection=function(t,e,n,i,r){return this.viewRotation_=n,this.execute_(t,1,e,this.hitDetectionInstructions,!0,i,r)},t}();const at=st;var lt=n(8326),ut=[W.POLYGON,W.CIRCLE,W.LINE_STRING,W.IMAGE,W.TEXT,W.DEFAULT],ct=function(){function t(t,e,n,i,r,o){this.maxExtent_=t,this.overlaps_=i,this.pixelRatio_=n,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=(0,B.Ue)(),this.createExecutors_(r)}return t.prototype.clip=function(t,e){var n=this.getClipCoords(e);t.beginPath(),t.moveTo(n[0],n[1]),t.lineTo(n[2],n[3]),t.lineTo(n[4],n[5]),t.lineTo(n[6],n[7]),t.clip()},t.prototype.createExecutors_=function(t){for(var e in t){var n=this.executorsByZIndex_[e];void 0===n&&(n={},this.executorsByZIndex_[e]=n);var i=t[e];for(var r in i){var o=i[r];n[r]=new at(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}},t.prototype.hasExecutors=function(t){for(var e in this.executorsByZIndex_)for(var n=this.executorsByZIndex_[e],i=0,r=t.length;i<r;++i)if(t[i]in n)return!0;return!1},t.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r,o){var s=2*(i=Math.round(i))+1,a=(0,B.qC)(this.hitDetectionTransform_,i+.5,i+.5,1/e,-1/e,-n,-t[0],-t[1]),l=!this.hitDetectionContext_;l&&(this.hitDetectionContext_=(0,lt.E4)(s,s));var u,c=this.hitDetectionContext_;c.canvas.width!==s||c.canvas.height!==s?(c.canvas.width=s,c.canvas.height=s):l||c.clearRect(0,0,s,s),void 0!==this.renderBuffer_&&(u=(0,E.createEmpty)(),(0,E.extendCoordinate)(u,t),(0,E.buffer)(u,e*(this.renderBuffer_+i),u));var h,p=function(t){if(void 0!==ht[t])return ht[t];for(var e=2*t+1,n=t*t,i=new Array(n+1),r=0;r<=t;++r)for(var o=0;o<=t;++o){var s=r*r+o*o;if(s>n)break;var a=i[s];a||(a=[],i[s]=a),a.push(4*((t+r)*e+(t+o))+3),r>0&&a.push(4*((t-r)*e+(t+o))+3),o>0&&(a.push(4*((t+r)*e+(t-o))+3),r>0&&a.push(4*((t-r)*e+(t-o))+3))}for(var l=[],u=(r=0,i.length);r<u;++r)i[r]&&l.push.apply(l,i[r]);return ht[t]=l,l}(i);function f(t,e){for(var n=c.getImageData(0,0,s,s).data,a=0,l=p.length;a<l;a++)if(n[p[a]]>0){if(!o||h!==W.IMAGE&&h!==W.TEXT||-1!==o.indexOf(t)){var u=(p[a]-3)/4,f=i-u%s,d=i-(u/s|0),g=r(t,e,f*f+d*d);if(g)return g}c.clearRect(0,0,s,s);break}}var d,g,_,y,v,m=Object.keys(this.executorsByZIndex_).map(Number);for(m.sort(w.kK),d=m.length-1;d>=0;--d){var x=m[d].toString();for(_=this.executorsByZIndex_[x],g=ut.length-1;g>=0;--g)if(void 0!==(y=_[h=ut[g]])&&(v=y.executeHitDetection(c,a,n,f,u)))return v}},t.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,K.vT)(s,0,8,2,t,s),s},t.prototype.isEmpty=function(){return(0,s.xb)(this.executorsByZIndex_)},t.prototype.execute=function(t,e,n,i,r,o,s){var a=Object.keys(this.executorsByZIndex_).map(Number);a.sort(w.kK),this.maxExtent_&&(t.save(),this.clip(t,n));var l,u,c,h,p,f,d=o||ut;for(s&&a.reverse(),l=0,u=a.length;l<u;++l){var g=a[l].toString();for(p=this.executorsByZIndex_[g],c=0,h=d.length;c<h;++c)void 0!==(f=p[d[c]])&&f.execute(t,e,n,i,r,s)}this.maxExtent_&&t.restore()},t}(),ht={};const pt=ct;var ft=n(7755),dt=n(2967),gt=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const _t=function(t){function e(e,n,i,r,o,s,a){var l=t.call(this)||this;return l.context_=e,l.pixelRatio_=n,l.extent_=i,l.transform_=r,l.viewRotation_=o,l.squaredTolerance_=s,l.userTransform_=a,l.contextFillState_=null,l.contextStrokeState_=null,l.contextTextState_=null,l.fillState_=null,l.strokeState_=null,l.image_=null,l.imageAnchorX_=0,l.imageAnchorY_=0,l.imageHeight_=0,l.imageOpacity_=0,l.imageOriginX_=0,l.imageOriginY_=0,l.imageRotateWithView_=!1,l.imageRotation_=0,l.imageScale_=[0,0],l.imageWidth_=0,l.text_="",l.textOffsetX_=0,l.textOffsetY_=0,l.textRotateWithView_=!1,l.textRotation_=0,l.textScale_=[0,0],l.textFillState_=null,l.textStrokeState_=null,l.textState_=null,l.pixelCoordinates_=[],l.tmpLocalTransform_=(0,B.Ue)(),l}return gt(e,t),e.prototype.drawImages_=function(t,e,n,i){if(this.image_){var r=(0,K.vT)(t,e,n,i,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.tmpLocalTransform_,a=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=a*this.imageOpacity_);var l=this.imageRotation_;this.imageRotateWithView_&&(l+=this.viewRotation_);for(var u=0,c=r.length;u<c;u+=2){var h=r[u]-this.imageAnchorX_,p=r[u+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var f=h+this.imageAnchorX_,d=p+this.imageAnchorY_;(0,B.qC)(s,f,d,1,1,l,-f,-d),o.setTransform.apply(o,s),o.translate(f,d),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.setTransform(1,0,0,1,0,0)}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,h,p,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=a)}},e.prototype.drawText_=function(t,e,n,i){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var r=(0,K.vT)(t,e,n,i,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.textRotation_;for(this.textRotateWithView_&&(s+=this.viewRotation_);e<n;e+=i){var a=r[e]+this.textOffsetX_,l=r[e+1]+this.textOffsetY_;if(0!==s||1!=this.textScale_[0]||1!=this.textScale_[1]){var u=(0,B.qC)(this.tmpLocalTransform_,a,l,1,1,s,-a,-l);o.setTransform.apply(o,u),o.translate(a,l),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&o.strokeText(this.text_,a,l),this.textFillState_&&o.fillText(this.text_,a,l)}}},e.prototype.moveToLineTo_=function(t,e,n,i,r){var o=this.context_,s=(0,K.vT)(t,e,n,i,this.transform_,this.pixelCoordinates_);o.moveTo(s[0],s[1]);var a=s.length;r&&(a-=2);for(var l=2;l<a;l+=2)o.lineTo(s[l],s[l+1]);return r&&o.closePath(),n},e.prototype.drawRings_=function(t,e,n,i){for(var r=0,o=n.length;r<o;++r)e=this.moveToLineTo_(t,e,n[r],i,!0);return e},e.prototype.drawCircle=function(t){if((0,E.intersects)(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=(0,dt.Kr)(t,this.transform_,this.pixelCoordinates_),n=e[2]-e[0],i=e[3]-e[1],r=Math.sqrt(n*n+i*i),o=this.context_;o.beginPath(),o.arc(e[0],e[1],r,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}},e.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},e.prototype.setTransform=function(t){this.transform_=t},e.prototype.drawGeometry=function(t){switch(t.getType()){case y.Z.POINT:this.drawPoint(t);break;case y.Z.LINE_STRING:this.drawLineString(t);break;case y.Z.POLYGON:this.drawPolygon(t);break;case y.Z.MULTI_POINT:this.drawMultiPoint(t);break;case y.Z.MULTI_LINE_STRING:this.drawMultiLineString(t);break;case y.Z.MULTI_POLYGON:this.drawMultiPolygon(t);break;case y.Z.GEOMETRY_COLLECTION:this.drawGeometryCollection(t);break;case y.Z.CIRCLE:this.drawCircle(t)}},e.prototype.drawFeature=function(t,e){var n=e.getGeometryFunction()(t);n&&(0,E.intersects)(this.extent_,n.getExtent())&&(this.setStyle(e),this.drawGeometry(n))},e.prototype.drawGeometryCollection=function(t){for(var e=t.getGeometriesArray(),n=0,i=e.length;n<i;++n)this.drawGeometry(e[n])},e.prototype.drawPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)},e.prototype.drawMultiPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)},e.prototype.drawLineString=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,E.intersects)(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var e=this.context_,n=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(n,0,n.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){var i=t.getFlatMidpoint();this.drawText_(i,0,2,2)}}},e.prototype.drawMultiLineString=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getExtent();if((0,E.intersects)(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var n=this.context_,i=t.getFlatCoordinates(),r=0,o=t.getEnds(),s=t.getStride();n.beginPath();for(var a=0,l=o.length;a<l;++a)r=this.moveToLineTo_(i,r,o[a],s,!1);n.stroke()}if(""!==this.text_){var u=t.getFlatMidpoints();this.drawText_(u,0,u.length,2)}}},e.prototype.drawPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,E.intersects)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var n=t.getFlatInteriorPoint();this.drawText_(n,0,2,2)}}},e.prototype.drawMultiPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,E.intersects)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_,n=t.getOrientedFlatCoordinates(),i=0,r=t.getEndss(),o=t.getStride();e.beginPath();for(var s=0,a=r.length;s<a;++s){var l=r[s];i=this.drawRings_(n,i,l,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var u=t.getFlatInteriorPoints();this.drawText_(u,0,u.length,2)}}},e.prototype.setContextFillState_=function(t){var e=this.context_,n=this.contextFillState_;n?n.fillStyle!=t.fillStyle&&(n.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},e.prototype.setContextStrokeState_=function(t){var e=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=t.lineCap&&(n.lineCap=t.lineCap,e.lineCap=t.lineCap),e.setLineDash&&((0,w.fS)(n.lineDash,t.lineDash)||e.setLineDash(n.lineDash=t.lineDash),n.lineDashOffset!=t.lineDashOffset&&(n.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset)),n.lineJoin!=t.lineJoin&&(n.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),n.lineWidth!=t.lineWidth&&(n.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),n.miterLimit!=t.miterLimit&&(n.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),n.strokeStyle!=t.strokeStyle&&(n.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})},e.prototype.setContextTextState_=function(t){var e=this.context_,n=this.contextTextState_,i=t.textAlign?t.textAlign:C.PH;n?(n.font!=t.font&&(n.font=t.font,e.font=t.font),n.textAlign!=i&&(n.textAlign=i,e.textAlign=i),n.textBaseline!=t.textBaseline&&(n.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=i,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:i,textBaseline:t.textBaseline})},e.prototype.setFillStrokeStyle=function(t,e){var n=this;if(t){var i=t.getColor();this.fillState_={fillStyle:(0,x.y)(i||C.bL)}}else this.fillState_=null;if(e){var r=e.getColor(),o=e.getLineCap(),s=e.getLineDash(),a=e.getLineDashOffset(),l=e.getLineJoin(),u=e.getWidth(),c=e.getMiterLimit(),h=s||C.X9;this.strokeState_={lineCap:void 0!==o?o:C.mb,lineDash:1===this.pixelRatio_?h:h.map((function(t){return t*n.pixelRatio_})),lineDashOffset:(a||C.He)*this.pixelRatio_,lineJoin:void 0!==l?l:C.rc,lineWidth:(void 0!==u?u:C.yC)*this.pixelRatio_,miterLimit:void 0!==c?c:C.V4,strokeStyle:(0,x.y)(r||C.Tx)}}else this.strokeState_=null},e.prototype.setImageStyle=function(t){var e;if(t&&(e=t.getSize())){var n=t.getAnchor(),i=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=n[0]*this.pixelRatio_,this.imageAnchorY_=n[1]*this.pixelRatio_,this.imageHeight_=e[1]*this.pixelRatio_,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=i[0],this.imageOriginY_=i[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=t.getScaleArray(),this.imageWidth_=e[0]*this.pixelRatio_}else this.image_=null},e.prototype.setTextStyle=function(t){if(t){var e=t.getFill();if(e){var n=e.getColor();this.textFillState_={fillStyle:(0,x.y)(n||C.bL)}}else this.textFillState_=null;var i=t.getStroke();if(i){var r=i.getColor(),o=i.getLineCap(),s=i.getLineDash(),a=i.getLineDashOffset(),l=i.getLineJoin(),u=i.getWidth(),c=i.getMiterLimit();this.textStrokeState_={lineCap:void 0!==o?o:C.mb,lineDash:s||C.X9,lineDashOffset:a||C.He,lineJoin:void 0!==l?l:C.rc,lineWidth:void 0!==u?u:C.yC,miterLimit:void 0!==c?c:C.V4,strokeStyle:(0,x.y)(r||C.Tx)}}else this.textStrokeState_=null;var h=t.getFont(),p=t.getOffsetX(),f=t.getOffsetY(),d=t.getRotateWithView(),g=t.getRotation(),_=t.getScaleArray(),y=t.getText(),v=t.getTextAlign(),m=t.getTextBaseline();this.textState_={font:void 0!==h?h:C.Df,textAlign:void 0!==v?v:C.PH,textBaseline:void 0!==m?m:C.ru},this.text_=void 0!==y?Array.isArray(y)?y.reduce((function(t,e,n){return t+(n%2?" ":e)}),""):y:"",this.textOffsetX_=void 0!==p?this.pixelRatio_*p:0,this.textOffsetY_=void 0!==f?this.pixelRatio_*f:0,this.textRotateWithView_=void 0!==d&&d,this.textRotation_=void 0!==g?g:0,this.textScale_=[this.pixelRatio_*_[0],this.pixelRatio_*_[1]]}else this.text_=""},e}(m);var yt=n(4698),vt=n(4115),mt=.5,xt=n(245),Et=n(553),Ct={Point:function(t,e,n,i,r){var o,s=n.getImage(),a=n.getText();if(r&&(t=r,o=s&&a&&a.getText()?{}:void 0),s){if(s.getImageState()!=Et.Z.LOADED)return;var l=t.getBuilder(n.getZIndex(),W.IMAGE);l.setImageStyle(s,o),l.drawPoint(e,i)}if(a&&a.getText()){var u=t.getBuilder(n.getZIndex(),W.TEXT);u.setTextStyle(a,o),u.drawText(e,i)}},LineString:function(t,e,n,i,r){var o=n.getStroke();if(o){var s=t.getBuilder(n.getZIndex(),W.LINE_STRING);s.setFillStrokeStyle(null,o),s.drawLineString(e,i)}var a=n.getText();if(a&&a.getText()){var l=(r||t).getBuilder(n.getZIndex(),W.TEXT);l.setTextStyle(a),l.drawText(e,i)}},Polygon:function(t,e,n,i,r){var o=n.getFill(),s=n.getStroke();if(o||s){var a=t.getBuilder(n.getZIndex(),W.POLYGON);a.setFillStrokeStyle(o,s),a.drawPolygon(e,i)}var l=n.getText();if(l&&l.getText()){var u=(r||t).getBuilder(n.getZIndex(),W.TEXT);u.setTextStyle(l),u.drawText(e,i)}},MultiPoint:function(t,e,n,i,r){var o,s=n.getImage(),a=n.getText();if(r&&(t=r,o=s&&a&&a.getText()?{}:void 0),s){if(s.getImageState()!=Et.Z.LOADED)return;var l=t.getBuilder(n.getZIndex(),W.IMAGE);l.setImageStyle(s,o),l.drawMultiPoint(e,i)}if(a&&a.getText()){var u=(r||t).getBuilder(n.getZIndex(),W.TEXT);u.setTextStyle(a,o),u.drawText(e,i)}},MultiLineString:function(t,e,n,i,r){var o=n.getStroke();if(o){var s=t.getBuilder(n.getZIndex(),W.LINE_STRING);s.setFillStrokeStyle(null,o),s.drawMultiLineString(e,i)}var a=n.getText();if(a&&a.getText()){var l=(r||t).getBuilder(n.getZIndex(),W.TEXT);l.setTextStyle(a),l.drawText(e,i)}},MultiPolygon:function(t,e,n,i,r){var o=n.getFill(),s=n.getStroke();if(s||o){var a=t.getBuilder(n.getZIndex(),W.POLYGON);a.setFillStrokeStyle(o,s),a.drawMultiPolygon(e,i)}var l=n.getText();if(l&&l.getText()){var u=(r||t).getBuilder(n.getZIndex(),W.TEXT);u.setTextStyle(l),u.drawText(e,i)}},GeometryCollection:function(t,e,n,i,r){var o,s,a=e.getGeometriesArray();for(o=0,s=a.length;o<s;++o)(0,Ct[a[o].getType()])(t,a[o],n,i,r)},Circle:function(t,e,n,i,r){var o=n.getFill(),s=n.getStroke();if(o||s){var a=t.getBuilder(n.getZIndex(),W.CIRCLE);a.setFillStrokeStyle(o,s),a.drawCircle(e,i)}var l=n.getText();if(l&&l.getText()){var u=(r||t).getBuilder(n.getZIndex(),W.TEXT);u.setTextStyle(l),u.drawText(e,i)}}};function wt(t,e){return parseInt((0,N.sq)(t),10)-parseInt((0,N.sq)(e),10)}function Tt(t,e){return.5*t/e}function St(t,e,n,i,r,o,s){var a=!1,l=n.getImage();if(l){var u=l.getImageState();u==Et.Z.LOADED||u==Et.Z.ERROR?l.unlistenImageChange(r):(u==Et.Z.IDLE&&l.load(),u=l.getImageState(),l.listenImageChange(r),a=!0)}return function(t,e,n,i,r,o){var s=n.getGeometryFunction()(e);if(s){var a=s.simplifyTransformed(i,r);n.getRenderer()?Ot(t,a,n,e):(0,Ct[a.getType()])(t,a,n,e,o)}}(t,e,n,i,o,s),a}function Ot(t,e,n,i){if(e.getType()!=y.Z.GEOMETRY_COLLECTION)t.getBuilder(n.getZIndex(),W.DEFAULT).drawCustom(e,i,n.getRenderer(),n.getHitDetectionRenderer());else for(var r=e.getGeometries(),o=0,s=r.length;o<s;++o)Ot(t,r[o],n,i)}var bt=n(2290),Rt=n(1900),Pt=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const It=function(t){function e(e){var n=t.call(this,e)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.animatingOrInteracting_,n.dirty_=!1,n.hitDetectionImageData_=null,n.renderedFeatures_=null,n.renderedRevision_=-1,n.renderedResolution_=NaN,n.renderedExtent_=(0,E.createEmpty)(),n.wrappedRenderedExtent_=(0,E.createEmpty)(),n.renderedRotation_,n.renderedCenter_=null,n.renderedProjection_=null,n.renderedRenderOrder_=null,n.replayGroup_=null,n.replayGroupChanged=!0,n.declutterExecutorGroup=null,n.clipping=!0,n}return Pt(e,t),e.prototype.renderWorlds=function(t,e,n){var i=e.extent,r=e.viewState,o=r.center,s=r.resolution,a=r.projection,l=r.rotation,u=a.getExtent(),c=this.getLayer().getSource(),h=e.pixelRatio,p=e.viewHints,f=!(p[ft.Z.ANIMATING]||p[ft.Z.INTERACTING]),d=this.context,g=Math.round(e.size[0]*h),_=Math.round(e.size[1]*h),y=c.getWrapX()&&a.canWrapX(),v=y?(0,E.getWidth)(u):null,m=y?Math.ceil((i[2]-u[2])/v)+1:1,x=y?Math.floor((i[0]-u[0])/v):0;do{var C=this.getRenderTransform(o,s,l,h,g,_,x*v);t.execute(d,1,C,l,f,void 0,n)}while(++x<m)},e.prototype.renderDeclutter=function(t){this.declutterExecutorGroup&&this.renderWorlds(this.declutterExecutorGroup,t,t.declutterTree)},e.prototype.renderFrame=function(t,e){var n=t.pixelRatio,i=t.layerStatesArray[t.layerIndex];(0,B.n3)(this.pixelTransform,1/n,1/n),(0,B.nb)(this.inversePixelTransform,this.pixelTransform);var r=(0,B.BB)(this.pixelTransform);this.useContainer(e,r,i.opacity,this.getBackground(t));var o=this.context,s=o.canvas,a=this.replayGroup_,l=this.declutterExecutorGroup;if((!a||a.isEmpty())&&(!l||l.isEmpty()))return null;var u=Math.round(t.size[0]*n),c=Math.round(t.size[1]*n);s.width!=u||s.height!=c?(s.width=u,s.height=c,s.style.transform!==r&&(s.style.transform=r)):this.containerReused||o.clearRect(0,0,u,c),this.preRender(o,t);var h=t.viewState,p=h.projection,f=!1,d=!0;if(i.extent&&this.clipping){var g=(0,bt.fromUserExtent)(i.extent,p);(f=(d=(0,E.intersects)(g,t.extent))&&!(0,E.containsExtent)(g,t.extent))&&this.clipUnrotated(o,t,g)}d&&this.renderWorlds(a,t),f&&o.restore(),this.postRender(o,t);var _=(0,xt.Xy)(i.opacity),y=this.container;return _!==y.style.opacity&&(y.style.opacity=_),this.renderedRotation_!==h.rotation&&(this.renderedRotation_=h.rotation,this.hitDetectionImageData_=null),this.container},e.prototype.getFeatures=function(t){return new Promise(function(e){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var n=[this.context.canvas.width,this.context.canvas.height];(0,B.nn)(this.pixelTransform,n);var i=this.renderedCenter_,r=this.renderedResolution_,o=this.renderedRotation_,s=this.renderedProjection_,a=this.wrappedRenderedExtent_,l=this.getLayer(),u=[],c=n[0]*mt,h=n[1]*mt;u.push(this.getRenderTransform(i,r,o,mt,c,h,0).slice());var p=l.getSource(),f=s.getExtent();if(p.getWrapX()&&s.canWrapX()&&!(0,E.containsExtent)(f,a)){for(var d=a[0],g=(0,E.getWidth)(f),_=0,v=void 0;d<f[0];)v=g*--_,u.push(this.getRenderTransform(i,r,o,mt,c,h,v).slice()),d+=g;for(_=0,d=a[2];d>f[2];)v=g*++_,u.push(this.getRenderTransform(i,r,o,mt,c,h,v).slice()),d-=g}this.hitDetectionImageData_=function(t,e,n,i,r,o,s){var a=t[0]*mt,l=t[1]*mt,u=(0,lt.E4)(a,l);u.imageSmoothingEnabled=!1;for(var c=u.canvas,h=new _t(u,mt,r,null,s),p=n.length,f=Math.floor(16777215/p),d={},g=1;g<=p;++g){var _=n[g-1],v=_.getStyleFunction()||i;if(i){var m=v(_,o);if(m){Array.isArray(m)||(m=[m]);for(var x="#"+("000000"+(g*f).toString(16)).slice(-6),C=0,T=m.length;C<T;++C){var S=m[C],O=S.getGeometryFunction()(_);if(O&&(0,E.intersects)(r,O.getExtent())){var b=S.clone(),R=b.getFill();R&&R.setColor(x);var P=b.getStroke();P&&(P.setColor(x),P.setLineDash(null)),b.setText(void 0);var I=S.getImage();if(I&&0!==I.getOpacity()){var L=I.getImageSize();if(!L)continue;var M=(0,lt.E4)(L[0],L[1],void 0,{alpha:!1}),A=M.canvas;M.fillStyle=x,M.fillRect(0,0,A.width,A.height),b.setImage(new vt.default({img:A,imgSize:L,anchor:I.getAnchor(),anchorXUnits:yt.Z.PIXELS,anchorYUnits:yt.Z.PIXELS,offset:I.getOrigin(),opacity:1,size:I.getSize(),scale:I.getScale(),rotation:I.getRotation(),rotateWithView:I.getRotateWithView()}))}var Z=b.getZIndex()||0;(k=d[Z])||(k={},d[Z]=k,k[y.Z.POLYGON]=[],k[y.Z.CIRCLE]=[],k[y.Z.LINE_STRING]=[],k[y.Z.POINT]=[]),k[O.getType().replace("Multi","")].push(O,b)}}}}}for(var F=Object.keys(d).map(Number).sort(w.kK),N=(g=0,F.length);g<N;++g){var k=d[F[g]];for(var D in k){var j=k[D];for(C=0,T=j.length;C<T;C+=2){h.setStyle(j[C+1]);for(var G=0,X=e.length;G<X;++G)h.setTransform(e[G]),h.drawGeometry(j[C])}}}return u.getImageData(0,0,c.width,c.height)}(n,u,this.renderedFeatures_,l.getStyleFunction(),a,r,o)}e(function(t,e,n){var i=[];if(n){var r=Math.floor(Math.round(t[0])*mt),o=Math.floor(Math.round(t[1])*mt),s=4*((0,V.uZ)(r,0,n.width-1)+(0,V.uZ)(o,0,n.height-1)*n.width),a=n.data[s],l=n.data[s+1],u=n.data[s+2]+256*(l+256*a),c=Math.floor(16777215/e.length);u&&u%c==0&&i.push(e[u/c-1])}return i}(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r){var o=this;if(this.replayGroup_){var s,a=e.viewState.resolution,l=e.viewState.rotation,u=this.getLayer(),c={},h=function(t,e,n){var o=(0,N.sq)(t),s=c[o];if(s){if(!0!==s&&n<s.distanceSq){if(0===n)return c[o]=!0,r.splice(r.lastIndexOf(s),1),i(t,u,e);s.geometry=e,s.distanceSq=n}}else{if(0===n)return c[o]=!0,i(t,u,e);r.push(c[o]={feature:t,layer:u,geometry:e,distanceSq:n,callback:i})}},p=[this.replayGroup_];return this.declutterExecutorGroup&&p.push(this.declutterExecutorGroup),p.some((function(i){return s=i.forEachFeatureAtCoordinate(t,a,l,n,h,i===o.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map((function(t){return t.value})):null)})),s}},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t){var e=this.getLayer(),n=e.getSource();if(!n)return!1;var i=t.viewHints[ft.Z.ANIMATING],r=t.viewHints[ft.Z.INTERACTING],o=e.getUpdateWhileAnimating(),s=e.getUpdateWhileInteracting();if(!this.dirty_&&!o&&i||!s&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var a=t.extent,l=t.viewState,u=l.projection,c=l.resolution,h=t.pixelRatio,p=e.getRevision(),f=e.getRenderBuffer(),d=e.getRenderOrder();void 0===d&&(d=wt);var g=l.center.slice(),_=(0,E.buffer)(a,f*c),y=_.slice(),v=[_.slice()],m=u.getExtent();if(n.getWrapX()&&u.canWrapX()&&!(0,E.containsExtent)(m,t.extent)){var x=(0,E.getWidth)(m),C=Math.max((0,E.getWidth)(_)/2,x);_[0]=m[0]-C,_[2]=m[2]+C,(0,Rt.Cf)(g,u);var T=(0,E.wrapX)(v[0],u);T[0]<m[0]&&T[2]<m[2]?v.push([T[0]+x,T[1],T[2]+x,T[3]]):T[0]>m[0]&&T[2]>m[2]&&v.push([T[0]-x,T[1],T[2]-x,T[3]])}if(!this.dirty_&&this.renderedResolution_==c&&this.renderedRevision_==p&&this.renderedRenderOrder_==d&&(0,E.containsExtent)(this.wrappedRenderedExtent_,_))return(0,w.fS)(this.renderedExtent_,y)||(this.hitDetectionImageData_=null,this.renderedExtent_=y),this.renderedCenter_=g,this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var S,O=new Y(Tt(c,h),_,c,h);this.getLayer().getDeclutter()&&(S=new Y(Tt(c,h),_,c,h));var b,R=(0,bt.getUserProjection)();if(R){for(var P=0,I=v.length;P<I;++P){var L=v[P],M=(0,bt.toUserExtent)(L,u);n.loadFeatures(M,(0,bt.toUserResolution)(c,u),R)}b=(0,bt.getTransformFromProjections)(R,u)}else for(P=0,I=v.length;P<I;++P)n.loadFeatures(v[P],c,u);var A=function(t,e){var n=Tt(t,e);return n*n}(c,h),Z=function(t){var n,i=t.getStyleFunction()||e.getStyleFunction();if(i&&(n=i(t,c)),n){var r=this.renderFeature(t,A,n,O,b,S);this.dirty_=this.dirty_||r}}.bind(this),F=(0,bt.toUserExtent)(_,u),N=n.getFeaturesInExtent(F);for(d&&N.sort(d),P=0,I=N.length;P<I;++P)Z(N[P]);this.renderedFeatures_=N;var k=O.finish(),D=new pt(_,c,h,n.getOverlaps(),k,e.getRenderBuffer());return S&&(this.declutterExecutorGroup=new pt(_,c,h,n.getOverlaps(),S.finish(),e.getRenderBuffer())),this.renderedResolution_=c,this.renderedRevision_=p,this.renderedRenderOrder_=d,this.renderedExtent_=y,this.wrappedRenderedExtent_=_,this.renderedCenter_=g,this.renderedProjection_=u,this.replayGroup_=D,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},e.prototype.renderFeature=function(t,e,n,i,r,o){if(!n)return!1;var s=!1;if(Array.isArray(n))for(var a=0,l=n.length;a<l;++a)s=St(i,t,n[a],e,this.boundHandleStyleImageChange_,r,o)||s;else s=St(i,t,n,e,this.boundHandleStyleImageChange_,r,o);return s},e}(U.Z);var Lt=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const Mt=function(t){function e(e){return t.call(this,e)||this}return Lt(e,t),e.prototype.createRenderer=function(){return new It(this)},e}(c)},3983:(t,e,n)=>{"use strict";function i(t,e,n){return Math.min(Math.max(t,e),n)}n.d(e,{$W:()=>h,GW:()=>d,SV:()=>l,Ux:()=>u,Yr:()=>c,bI:()=>a,f9:()=>r,k3:()=>o,mD:()=>g,rU:()=>s,t7:()=>p,uZ:()=>i});var r="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2},o="log2"in Math?Math.log2:function(t){return Math.log(t)*Math.LOG2E};function s(t,e,n,i,r,o){var s=r-n,l=o-i;if(0!==s||0!==l){var u=((t-n)*s+(e-i)*l)/(s*s+l*l);u>1?(n=r,i=o):u>0&&(n+=s*u,i+=l*u)}return a(t,e,n,i)}function a(t,e,n,i){var r=n-t,o=i-e;return r*r+o*o}function l(t){for(var e=t.length,n=0;n<e;n++){for(var i=n,r=Math.abs(t[n][n]),o=n+1;o<e;o++){var s=Math.abs(t[o][n]);s>r&&(r=s,i=o)}if(0===r)return null;var a=t[i];t[i]=t[n],t[n]=a;for(var l=n+1;l<e;l++)for(var u=-t[l][n]/t[n][n],c=n;c<e+1;c++)n==c?t[l][c]=0:t[l][c]+=u*t[n][c]}for(var h=new Array(e),p=e-1;p>=0;p--){h[p]=t[p][e]/t[p][p];for(var f=p-1;f>=0;f--)t[f][e]-=t[f][p]*h[p]}return h}function u(t){return 180*t/Math.PI}function c(t){return t*Math.PI/180}function h(t,e){var n=t%e;return n*e<0?n+e:n}function p(t,e,n){return t+n*(e-t)}function f(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n}function d(t,e){return Math.floor(f(t,e))}function g(t,e){return Math.ceil(f(t,e))}},9374:(t,e,n)=>{"use strict";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<r;++i){var o=arguments[i];if(null!=o)for(var s in o)o.hasOwnProperty(s)&&(n[s]=o[s])}return n};function r(t){for(var e in t)delete t[e]}var o="function"==typeof Object.values?Object.values:function(t){var e=[];for(var n in t)e.push(t[n]);return e};function s(t){var e;for(e in t)return!1;return!e}},2290:(t,e,n)=>{"use strict";n.r(e),n.d(e,{METERS_PER_UNIT:()=>o.Wm,Projection:()=>r.Z,addCommon:()=>J,addCoordinateTransforms:()=>L,addEquivalentProjections:()=>O,addEquivalentTransforms:()=>b,addProjection:()=>C,addProjections:()=>w,clearAllProjections:()=>R,clearUserProjection:()=>Y,cloneTransform:()=>x,createProjection:()=>P,createSafeCoordinateTransform:()=>$,createTransformFromCoordinateTransform:()=>I,disableCoordinateWarning:()=>m,equivalent:()=>Z,fromLonLat:()=>M,fromUserCoordinate:()=>B,fromUserExtent:()=>K,fromUserResolution:()=>H,get:()=>T,getPointResolution:()=>S,getTransform:()=>N,getTransformFromProjections:()=>F,getUserProjection:()=>U,identityTransform:()=>E,setUserProjection:()=>X,toLonLat:()=>A,toUserCoordinate:()=>z,toUserExtent:()=>V,toUserResolution:()=>q,transform:()=>k,transformExtent:()=>D,transformWithProjections:()=>j,useGeographic:()=>W});var i,r=n(9619),o=n(8375),s=n(5984),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=[-180,-90,180,90],u=6378137*Math.PI/180,c=function(t){function e(e,n){return t.call(this,{code:e,units:o.ZP.DEGREES,extent:l,axisOrientation:n,global:!0,metersPerUnit:u,worldExtent:l})||this}return a(e,t),e}(r.Z),h=[new c("CRS:84"),new c("EPSG:4326","neu"),new c("urn:ogc:def:crs:OGC:1.3:CRS84"),new c("urn:ogc:def:crs:OGC:2:84"),new c("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new c("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new c("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],p={},f=n(9556),d=n(8641),g=n(3983),_=n(1900),y=n(7580),v=!0;function m(t){v=!(void 0===t||t)}function x(t,e,n){var i;if(void 0!==e){for(var r=0,o=t.length;r<o;++r)e[r]=t[r];i=e}else i=t.slice();return i}function E(t,e,n){if(void 0!==e&&t!==e){for(var i=0,r=t.length;i<r;++i)e[i]=t[i];t=e}return t}function C(t){!function(t,e){p[t]=e}(t.getCode(),t),(0,f.IH)(t,t,x)}function w(t){t.forEach(C)}function T(t){return"string"==typeof t?p[e=t]||p[e.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:t||null;var e}function S(t,e,n,i){var r,s=(t=T(t)).getPointResolutionFunc();if(s)r=s(e,n),i&&i!==t.getUnits()&&(l=t.getMetersPerUnit())&&(r=r*l/o.Wm[i]);else{var a=t.getUnits();if(a==o.ZP.DEGREES&&!i||i==o.ZP.DEGREES)r=e;else{var l,u=F(t,T("EPSG:4326"));if(u===E&&a!==o.ZP.DEGREES)r=e*t.getMetersPerUnit();else{var c=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];c=u(c,c,2),r=((0,y.getDistance)(c.slice(0,2),c.slice(2,4))+(0,y.getDistance)(c.slice(4,6),c.slice(6,8)))/2}void 0!==(l=i?o.Wm[i]:t.getMetersPerUnit())&&(r/=l)}}return r}function O(t){w(t),t.forEach((function(e){t.forEach((function(t){e!==t&&(0,f.IH)(e,t,x)}))}))}function b(t,e,n,i){t.forEach((function(t){e.forEach((function(e){(0,f.IH)(t,e,n),(0,f.IH)(e,t,i)}))}))}function R(){p={},(0,f.ZH)()}function P(t,e){return t?"string"==typeof t?T(t):t:T(e)}function I(t){return function(e,n,i){for(var r=e.length,o=void 0!==i?i:2,s=void 0!==n?n:new Array(r),a=0;a<r;a+=o){var l=t([e[a],e[a+1]]);s[a]=l[0],s[a+1]=l[1];for(var u=o-1;u>=2;--u)s[a+u]=e[a+u]}return s}}function L(t,e,n,i){var r=T(t),o=T(e);(0,f.IH)(r,o,I(n)),(0,f.IH)(o,r,I(i))}function M(t,e){return m(),k(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function A(t,e){var n=k(t,void 0!==e?e:"EPSG:3857","EPSG:4326"),i=n[0];return(i<-180||i>180)&&(n[0]=(0,g.$W)(i+180,360)-180),n}function Z(t,e){if(t===e)return!0;var n=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||F(t,e)===x)&&n}function F(t,e){var n=t.getCode(),i=e.getCode(),r=(0,f.U2)(n,i);return r||(r=E),r}function N(t,e){return F(T(t),T(e))}function k(t,e,n){return N(e,n)(t,void 0,t.length)}function D(t,e,n,i){var r=N(e,n);return(0,d.applyTransform)(t,r,void 0,i)}function j(t,e,n){return F(e,n)(t)}var G=null;function X(t){G=T(t)}function Y(){G=null}function U(){return G}function W(){X("EPSG:4326")}function z(t,e){return G?k(t,e,G):t}function B(t,e){return G?k(t,G,e):(v&&!(0,_.fS)(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(v=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t)}function V(t,e){return G?D(t,e,G):t}function K(t,e){return G?D(t,G,e):t}function q(t,e){if(!G)return t;var n=T(e).getUnits(),i=G.getUnits();return n&&i?t*o.Wm[n]/o.Wm[i]:t}function H(t,e){if(!G)return t;var n=T(e).getUnits(),i=G.getUnits();return n&&i?t*o.Wm[i]/o.Wm[n]:t}function $(t,e,n){return function(i){var r,o,s=i[0],a=i[1];if(t.canWrapX()){var l=t.getExtent(),u=(0,d.getWidth)(l);(o=(0,_.jk)(i,t,u))&&(s-=o*u),s=(0,g.uZ)(s,l[0],l[2]),a=(0,g.uZ)(a,l[1],l[3]),r=n([s,a])}else r=n(i);return o&&e.canWrapX()&&(r[0]+=o*(0,d.getWidth)(e.getExtent())),r}}function J(){O(s.LB),O(h),b(h,s.LB,s.jn,s.DE)}J()},9619:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(8375);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.Wm[this.units_]},t.prototype.getWorldExtent=function(){return this.worldExtent_},t.prototype.getAxisOrientation=function(){return this.axisOrientation_},t.prototype.isGlobal=function(){return this.global_},t.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},t.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},t.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},t.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},t.prototype.setWorldExtent=function(t){this.worldExtent_=t},t.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},t.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},t}()},8375:(t,e,n)=>{"use strict";n.d(e,{Wm:()=>r,ZP:()=>o});var i={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},r={};r[i.RADIANS]=6370997/(2*Math.PI),r[i.DEGREES]=2*Math.PI*6370997/360,r[i.FEET]=.3048,r[i.METERS]=1,r[i.USFEET]=1200/3937;const o=i},5984:(t,e,n)=>{"use strict";n.d(e,{DE:()=>_,LB:()=>d,jn:()=>g});var i,r=n(9619),o=n(8375),s=n(3983),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=6378137,u=Math.PI*l,c=[-u,-u,u,u],h=[-180,-85,180,85],p=l*Math.log(Math.tan(Math.PI/2)),f=function(t){function e(e){return t.call(this,{code:e,units:o.ZP.METERS,extent:c,global:!0,worldExtent:h,getPointResolution:function(t,e){return t/(0,s.f9)(e[1]/l)}})||this}return a(e,t),e}(r.Z),d=[new f("EPSG:3857"),new f("EPSG:102100"),new f("EPSG:102113"),new f("EPSG:900913"),new f("http://www.opengis.net/def/crs/EPSG/0/3857"),new f("http://www.opengis.net/gml/srs/epsg.xml#3857")];function g(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<i;s+=r){o[s]=u*t[s]/180;var a=l*Math.log(Math.tan(Math.PI*(+t[s+1]+90)/360));a>p?a=p:a<-p&&(a=-p),o[s+1]=a}return o}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<i;s+=r)o[s]=180*t[s]/u,o[s+1]=360*Math.atan(Math.exp(t[s+1]/l))/Math.PI-90;return o}},9556:(t,e,n)=>{"use strict";n.d(e,{IH:()=>s,Od:()=>a,U2:()=>l,ZH:()=>o});var i=n(9374),r={};function o(){r={}}function s(t,e,n){var i=t.getCode(),o=e.getCode();i in r||(r[i]={}),r[i][o]=n}function a(t,e){var n=t.getCode(),o=e.getCode(),s=r[n][o];return delete r[n][o],(0,i.xb)(r[n])&&delete r[n],s}function l(t,e){var n;return t in r&&e in r[t]&&(n=r[t][e]),n}},7380:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i,r=n(291),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function 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)},8771:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},147:(t,e,n)=>{"use strict";n.d(e,{Df:()=>u,He:()=>f,Kd:()=>I,PH:()=>y,Qx:()=>O,Tx:()=>_,V4:()=>g,X9:()=>p,Zw:()=>L,_f:()=>M,bL:()=>c,mb:()=>h,oB:()=>m,rc:()=>d,ru:()=>v,sG:()=>E,yC:()=>x});var i=n(2971),r=n(208),o=n(177),s=n(9374),a=n(8326),l=n(245),u="10px sans-serif",c="#000",h="round",p=[],f=0,d="round",g=10,_="#000",y="center",v="middle",m=[0,0,0,0],x=1,E=new i.Z;(new r.Z).setSize=function(){console.warn("labelCache is deprecated.")};var C,w,T=null,S={},O=function(){var t,e,n="32px ",i=["monospace","serif"],r=i.length,o="wmytzilWMYTZIL@#/&?$%10";function a(t,s,a){for(var l=!0,u=0;u<r;++u){var c=i[u];if(e=P(t+" "+s+" "+n+c,o),a!=c){var h=P(t+" "+s+" "+n+a+","+c,o);l=l&&h!=e}}return!!l}function u(){for(var e=!0,n=E.getKeys(),i=0,r=n.length;i<r;++i){var o=n[i];E.get(o)<100&&(a.apply(this,o.split("\n"))?((0,s.ZH)(S),T=null,C=void 0,E.set(o,100)):(E.set(o,E.get(o)+1,!0),e=!1))}e&&(clearInterval(t),t=void 0)}return function(e){var n=(0,l.p)(e);if(n)for(var i=n.families,r=0,o=i.length;r<o;++r){var s=i[r],c=n.style+"\n"+n.weight+"\n"+s;void 0===E.get(c)&&(E.set(c,100,!0),a(n.style,n.weight,s)||(E.set(c,0,!0),void 0===t&&(t=setInterval(u,32))))}}}(),b=function(t){var e=S[t];if(null==e){if(o.Id){var n=(0,l.p)(t),i=R(t,"Žg");e=(isNaN(Number(n.lineHeight))?1.2:Number(n.lineHeight))*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else w||((w=document.createElement("div")).innerHTML="M",w.style.minHeight="0",w.style.maxHeight="none",w.style.height="auto",w.style.padding="0",w.style.border="none",w.style.position="absolute",w.style.display="block",w.style.left="-99999px"),w.style.font=t,document.body.appendChild(w),e=w.offsetHeight,document.body.removeChild(w);S[t]=e}return e};function R(t,e){return T||(T=(0,a.E4)(1,1)),t!=C&&(T.font=t,C=T.font),T.measureText(e)}function P(t,e){return R(t,e).width}function I(t,e,n){if(e in n)return n[e];var i=P(t,e);return n[e]=i,i}function L(t,e){for(var n=[],i=[],r=[],o=0,s=0,a=0,l=0,u=0,c=e.length;u<=c;u+=2){var h=e[u];if("\n"!==h&&u!==c){var p=e[u+1]||t.font,f=P(p,h);n.push(f),s+=f;var d=b(p);i.push(d),l=Math.max(l,d)}else o=Math.max(o,s),r.push(s),s=0,a+=l}return{width:o,height:a,widths:n,heights:i,lineWidths:r}}function M(t,e,n,i,r,o,s,a,l,u,c){t.save(),1!==n&&(t.globalAlpha*=n),e&&t.setTransform.apply(t,e),i.contextInstructions?(t.translate(l,u),t.scale(c[0],c[1]),function(t,e){for(var n=t.contextInstructions,i=0,r=n.length;i<r;i+=2)Array.isArray(n[i+1])?e[n[i]].apply(e,n[i+1]):e[n[i]]=n[i+1]}(i,t)):c[0]<0||c[1]<0?(t.translate(l,u),t.scale(c[0],c[1]),t.drawImage(i,r,o,s,a,0,0,s,a)):t.drawImage(i,r,o,s,a,l,u,s*c[0],a*c[1]),t.restore()}},8015:(t,e,n)=>{"use strict";n.d(e,{Z:()=>x});var i,r=n(5487),o=n(553),s=n(2706),a=n(4562),l=n(4187),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function 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;return n.ready=!0,n.boundHandleImageChange_=n.handleImageChange_.bind(n),n.layer_=e,n.declutterExecutorGroup=null,n}return u(e,t),e.prototype.getFeatures=function(t){return(0,l.O3)()},e.prototype.getData=function(t){return null},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 null},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){t.target.getState()===o.Z.LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=o.Z.LOADED&&e!=o.Z.ERROR&&t.addEventListener(r.Z.CHANGE,this.boundHandleImageChange_),e==o.Z.IDLE&&(t.load(),e=t.getState()),e==o.Z.LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t.getVisible()&&t.getSourceState()==a.Z.READY&&t.changed()},e.prototype.disposeInternal=function(){delete this.layer_,t.prototype.disposeInternal.call(this)},e}(s.default);var h=n(7380),p=n(8771),f=n(6101),d=n(9706),g=n(8641),_=n(8326),y=n(5537),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),m=null;const x=function(t){function e(e){var n=t.call(this,e)||this;return n.container=null,n.renderedResolution,n.tempTransform=(0,f.Ue)(),n.pixelTransform=(0,f.Ue)(),n.inversePixelTransform=(0,f.Ue)(),n.context=null,n.containerReused=!1,n.pixelContext_=null,n.frameState=null,n}return v(e,t),e.prototype.getImageData=function(t,e,n){var i,r;m||((i=document.createElement("canvas")).width=1,i.height=1,m=i.getContext("2d")),m.clearRect(0,0,1,1);try{m.drawImage(t,e,n,1,1,0,0,1,1),r=m.getImageData(0,0,1,1).data}catch(t){return null}return r},e.prototype.getBackground=function(t){var e=this.getLayer().getBackground();return"function"==typeof e&&(e=e(t.viewState.resolution)),e||void 0},e.prototype.useContainer=function(t,e,n,i){var r,o,s=this.getLayer().getClassName();if(t&&t.className===s&&""===t.style.opacity&&1===n&&(!i||t.style.backgroundColor&&(0,y.fS)((0,d._2)(t.style.backgroundColor),(0,d._2)(i)))&&(l=t.firstElementChild)instanceof HTMLCanvasElement&&(o=l.getContext("2d")),o&&o.canvas.style.transform===e?(this.container=t,this.context=o,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){(r=document.createElement("div")).className=s;var a=r.style;a.position="absolute",a.width="100%",a.height="100%",i&&(a.backgroundColor=i);var l=(o=(0,_.E4)()).canvas;r.appendChild(l),(a=l.style).position="absolute",a.left="0",a.transformOrigin="top left",this.container=r,this.context=o}},e.prototype.clipUnrotated=function(t,e,n){var i=(0,g.getTopLeft)(n),r=(0,g.getTopRight)(n),o=(0,g.getBottomRight)(n),s=(0,g.getBottomLeft)(n);(0,f.nn)(e.coordinateToPixelTransform,i),(0,f.nn)(e.coordinateToPixelTransform,r),(0,f.nn)(e.coordinateToPixelTransform,o),(0,f.nn)(e.coordinateToPixelTransform,s);var a=this.inversePixelTransform;(0,f.nn)(a,i),(0,f.nn)(a,r),(0,f.nn)(a,o),(0,f.nn)(a,s),t.save(),t.beginPath(),t.moveTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.clip()},e.prototype.dispatchRenderEvent_=function(t,e,n){var i=this.getLayer();if(i.hasListener(t)){var r=new h.Z(t,this.inversePixelTransform,n,e);i.dispatchEvent(r)}},e.prototype.preRender=function(t,e){this.frameState=e,this.dispatchRenderEvent_(p.Z.PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(p.Z.POSTRENDER,t,e)},e.prototype.getRenderTransform=function(t,e,n,i,r,o,s){var a=r/2,l=o/2,u=i/e,c=-u,h=-t[0]+s,p=-t[1];return(0,f.qC)(this.tempTransform,a,l,u,c,-n,h,p)},e.prototype.getDataAtPixel=function(t,e,n){var i=(0,f.nn)(this.inversePixelTransform,t.slice()),r=this.context,o=this.getLayer().getExtent();if(o){var s=(0,f.nn)(e.pixelToCoordinateTransform,t.slice());if(!(0,g.containsCoordinate)(o,s))return null}var a,l=Math.round(i[0]),u=Math.round(i[1]),c=this.pixelContext_;if(!c){var h=document.createElement("canvas");h.width=1,h.height=1,c=h.getContext("2d"),this.pixelContext_=c}c.clearRect(0,0,1,1);try{c.drawImage(r.canvas,l,u,1,1,0,0,1,1),a=c.getImageData(0,0,1,1).data}catch(t){return"SecurityError"===t.name?(this.pixelContext_=null,new Uint8Array):a}return 0===a[3]?null:a},e.prototype.disposeInternal=function(){delete this.frameState,t.prototype.disposeInternal.call(this)},e}(c)},4307:(t,e,n)=>{"use strict";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})},8458:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var i,r=n(2971),o=n(4562),s=n(4187),a=n(2290),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function u(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}const c=function(t){function e(e){var n=t.call(this)||this;n.projection=(0,a.get)(e.projection),n.attributions_=u(e.attributions),n.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,n.loading=!1,n.state_=void 0!==e.state?e.state:o.Z.READY,n.wrapX_=void 0!==e.wrapX&&e.wrapX,n.interpolate_=!!e.interpolate,n.viewResolver=null,n.viewRejector=null;var i=n;return n.viewPromise_=new Promise((function(t,e){i.viewResolver=t,i.viewRejector=e})),n}return l(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,s.O3)()},e.prototype.getView=function(){return this.viewPromise_},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.getInterpolate=function(){return this.interpolate_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=u(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(r.Z)},4562:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"}},933:(t,e,n)=>{"use strict";n.r(e),n.d(e,{VectorSourceEvent:()=>w,default:()=>S});var i=n(8714),r=n(2071),o=n(291),s=n(5487),a=n(5990),l=n(9781),u=n(8458),c=n(4562),h=n(2796),p=n(6885);function f(t,e){return[[-1/0,-1/0,1/0,1/0]]}n(2290);var d,g=n(9515),_=n(8641),y=n(5537),v=n(4187),m=n(9374),x=n(5818),E=n(7537),C=(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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},d(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),w=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.feature=n,r.features=i,r}return C(e,t),e}(o.ZP),T=function(t){function e(e){var n=this,r=e||{};(n=t.call(this,{attributions:r.attributions,interpolate:!0,projection:void 0,state:c.Z.READY,wrapX:void 0===r.wrapX||r.wrapX})||this).on,n.once,n.un,n.loader_=p.Zn,n.format_=r.format,n.overlaps_=void 0===r.overlaps||r.overlaps,n.url_=r.url,void 0!==r.loader?n.loader_=r.loader:void 0!==n.url_&&((0,g.h)(n.format_,7),n.loader_=(0,E.Be)(n.url_,n.format_)),n.strategy_=void 0!==r.strategy?r.strategy:f;var o,s,a=void 0===r.useSpatialIndex||r.useSpatialIndex;return n.featuresRtree_=a?new l.Z:null,n.loadedExtentsRtree_=new l.Z,n.loadingExtentsCount_=0,n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null,Array.isArray(r.features)?s=r.features:r.features&&(s=(o=r.features).getArray()),a||void 0!==o||(o=new i.Z(s)),void 0!==s&&n.addFeaturesInternal(s),void 0!==o&&n.bindFeaturesCollection_(o),n}return C(e,t),e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var e=(0,v.sq)(t);if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var n=t.getGeometry();if(n){var i=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(i,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new w(h.Z.ADDFEATURE,t))}else this.featuresCollection_&&this.featuresCollection_.remove(t)},e.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[(0,x.oL)(e,s.Z.CHANGE,this.handleFeatureChange_,this),(0,x.oL)(e,a.Z.PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,e){var n=!0,i=e.getId();return void 0!==i&&(i.toString()in this.idIndex_?n=!1:this.idIndex_[i.toString()]=e),n&&((0,g.h)(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),n},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var e=[],n=[],i=[],r=0,o=t.length;r<o;r++){var s=t[r],a=(0,v.sq)(s);this.addToIndex_(a,s)&&n.push(s)}r=0;for(var l=n.length;r<l;r++){s=n[r],a=(0,v.sq)(s),this.setupChangeEvents_(a,s);var u=s.getGeometry();if(u){var c=u.getExtent();e.push(c),i.push(s)}else this.nullGeometryFeatures_[a]=s}if(this.featuresRtree_&&this.featuresRtree_.load(e,i),this.hasListener(h.Z.ADDFEATURE)){r=0;for(var p=n.length;r<p;r++)this.dispatchEvent(new w(h.Z.ADDFEATURE,n[r]))}},e.prototype.bindFeaturesCollection_=function(t){var e=!1;this.addEventListener(h.Z.ADDFEATURE,(function(n){e||(e=!0,t.push(n.feature),e=!1)})),this.addEventListener(h.Z.REMOVEFEATURE,(function(n){e||(e=!0,t.remove(n.feature),e=!1)})),t.addEventListener(r.Z.ADD,function(t){e||(e=!0,this.addFeature(t.element),e=!1)}.bind(this)),t.addEventListener(r.Z.REMOVE,function(t){e||(e=!0,this.removeFeature(t.element),e=!1)}.bind(this)),this.featuresCollection_=t},e.prototype.clear=function(t){if(t){for(var e in this.featureChangeKeys_)this.featureChangeKeys_[e].forEach(x.bN);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var n=function(t){this.removeFeatureInternal(t)}.bind(this);for(var i in this.featuresRtree_.forEach(n),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[i])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var r=new w(h.Z.CLEAR);this.dispatchEvent(r),this.changed()},e.prototype.forEachFeature=function(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},e.prototype.forEachFeatureAtCoordinateDirect=function(t,e){var n=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(n,(function(n){return n.getGeometry().intersectsCoordinate(t)?e(n):void 0}))},e.prototype.forEachFeatureInExtent=function(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},e.prototype.forEachFeatureIntersectingExtent=function(t,e){return this.forEachFeatureInExtent(t,(function(n){if(n.getGeometry().intersectsExtent(t)){var i=e(n);if(i)return i}}))},e.prototype.getFeaturesCollection=function(){return this.featuresCollection_},e.prototype.getFeatures=function(){var t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),(0,m.xb)(this.nullGeometryFeatures_)||(0,y.l7)(t,(0,m.KX)(this.nullGeometryFeatures_))),t},e.prototype.getFeaturesAtCoordinate=function(t){var e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e},e.prototype.getFeaturesInExtent=function(t){return this.featuresRtree_?this.featuresRtree_.getInExtent(t):this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},e.prototype.getClosestFeatureToCoordinate=function(t,e){var n=t[0],i=t[1],r=null,o=[NaN,NaN],s=1/0,a=[-1/0,-1/0,1/0,1/0],l=e||p.uX;return this.featuresRtree_.forEachInExtent(a,(function(t){if(l(t)){var e=t.getGeometry(),u=s;if((s=e.closestPointXY(n,i,o,s))<u){r=t;var c=Math.sqrt(s);a[0]=n-c,a[1]=i-c,a[2]=n+c,a[3]=i+c}}})),r},e.prototype.getExtent=function(t){return this.featuresRtree_.getExtent(t)},e.prototype.getFeatureById=function(t){var e=this.idIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getFeatureByUid=function(t){var e=this.uidIndex_[t];return void 0!==e?e:null},e.prototype.getFormat=function(){return this.format_},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.getUrl=function(){return this.url_},e.prototype.handleFeatureChange_=function(t){var e=t.target,n=(0,v.sq)(e),i=e.getGeometry();if(i){var r=i.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(r,e)):this.featuresRtree_&&this.featuresRtree_.update(r,e)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[n]=e);var o=e.getId();if(void 0!==o){var s=o.toString();this.idIndex_[s]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[s]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[n]=e;this.changed(),this.dispatchEvent(new w(h.Z.CHANGEFEATURE,e))},e.prototype.hasFeature=function(t){var e=t.getId();return void 0!==e?e in this.idIndex_:(0,v.sq)(t)in this.uidIndex_},e.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&(0,m.xb)(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()},e.prototype.loadFeatures=function(t,e,n){for(var i=this.loadedExtentsRtree_,r=this.strategy_(t,e,n),o=function(t,o){var a=r[t];i.forEachInExtent(a,(function(t){return(0,_.containsExtent)(t.extent,a)}))||(++s.loadingExtentsCount_,s.dispatchEvent(new w(h.Z.FEATURESLOADSTART)),s.loader_.call(s,a,e,n,function(t){--this.loadingExtentsCount_,this.dispatchEvent(new w(h.Z.FEATURESLOADEND,void 0,t))}.bind(s),function(){--this.loadingExtentsCount_,this.dispatchEvent(new w(h.Z.FEATURESLOADERROR))}.bind(s)),i.insert(a,{extent:a.slice()}))},s=this,a=0,l=r.length;a<l;++a)o(a);this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),t.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var e,n=this.loadedExtentsRtree_;n.forEachInExtent(t,(function(n){if((0,_.equals)(n.extent,t))return e=n,!0})),e&&n.remove(e)},e.prototype.removeFeature=function(t){if(t){var e=(0,v.sq)(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t)&&this.changed()}},e.prototype.removeFeatureInternal=function(t){var e=(0,v.sq)(t),n=this.featureChangeKeys_[e];if(n){n.forEach(x.bN),delete this.featureChangeKeys_[e];var i=t.getId();return void 0!==i&&delete this.idIndex_[i.toString()],delete this.uidIndex_[e],this.dispatchEvent(new w(h.Z.REMOVEFEATURE,t)),t}},e.prototype.removeFromIdIndex_=function(t){var e=!1;for(var n in this.idIndex_)if(this.idIndex_[n]===t){delete this.idIndex_[n],e=!0;break}return e},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){(0,g.h)(this.format_,7),this.url_=t,this.setLoader((0,E.Be)(t,this.format_))},e}(u.Z);const S=T},2796:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"}},7580:(t,e,n)=>{"use strict";n.r(e),n.d(e,{DEFAULT_RADIUS:()=>o,getArea:()=>c,getDistance:()=>s,getLength:()=>l,offset:()=>h});var i=n(4754),r=n(3983),o=6371008.8;function s(t,e,n){var i=n||o,s=(0,r.Yr)(t[1]),a=(0,r.Yr)(e[1]),l=(a-s)/2,u=(0,r.Yr)(e[0]-t[0])/2,c=Math.sin(l)*Math.sin(l)+Math.sin(u)*Math.sin(u)*Math.cos(s)*Math.cos(a);return 2*i*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}function a(t,e){for(var n=0,i=0,r=t.length;i<r-1;++i)n+=s(t[i],t[i+1],e);return n}function l(t,e){var n=e||{},r=n.radius||o,s=n.projection||"EPSG:3857",u=t.getType();u!==i.Z.GEOMETRY_COLLECTION&&(t=t.clone().transform(s,"EPSG:4326"));var c,h,p,f,d,g,_=0;switch(u){case i.Z.POINT:case i.Z.MULTI_POINT:break;case i.Z.LINE_STRING:case i.Z.LINEAR_RING:_=a(c=t.getCoordinates(),r);break;case i.Z.MULTI_LINE_STRING:case i.Z.POLYGON:for(p=0,f=(c=t.getCoordinates()).length;p<f;++p)_+=a(c[p],r);break;case i.Z.MULTI_POLYGON:for(p=0,f=(c=t.getCoordinates()).length;p<f;++p)for(d=0,g=(h=c[p]).length;d<g;++d)_+=a(h[d],r);break;case i.Z.GEOMETRY_COLLECTION:var y=t.getGeometries();for(p=0,f=y.length;p<f;++p)_+=l(y[p],e);break;default:throw new Error("Unsupported geometry type: "+u)}return _}function u(t,e){for(var n=0,i=t.length,o=t[i-1][0],s=t[i-1][1],a=0;a<i;a++){var l=t[a][0],u=t[a][1];n+=(0,r.Yr)(l-o)*(2+Math.sin((0,r.Yr)(s))+Math.sin((0,r.Yr)(u))),o=l,s=u}return n*e*e/2}function c(t,e){var n=e||{},r=n.radius||o,s=n.projection||"EPSG:3857",a=t.getType();a!==i.Z.GEOMETRY_COLLECTION&&(t=t.clone().transform(s,"EPSG:4326"));var l,h,p,f,d,g,_=0;switch(a){case i.Z.POINT:case i.Z.MULTI_POINT:case i.Z.LINE_STRING:case i.Z.MULTI_LINE_STRING:case i.Z.LINEAR_RING:break;case i.Z.POLYGON:for(l=t.getCoordinates(),_=Math.abs(u(l[0],r)),p=1,f=l.length;p<f;++p)_-=Math.abs(u(l[p],r));break;case i.Z.MULTI_POLYGON:for(p=0,f=(l=t.getCoordinates()).length;p<f;++p)for(h=l[p],_+=Math.abs(u(h[0],r)),d=1,g=h.length;d<g;++d)_-=Math.abs(u(h[d],r));break;case i.Z.GEOMETRY_COLLECTION:var y=t.getGeometries();for(p=0,f=y.length;p<f;++p)_+=c(y[p],e);break;default:throw new Error("Unsupported geometry type: "+a)}return _}function h(t,e,n,i){var s=i||o,a=(0,r.Yr)(t[1]),l=(0,r.Yr)(t[0]),u=e/s,c=Math.asin(Math.sin(a)*Math.cos(u)+Math.cos(a)*Math.sin(u)*Math.cos(n)),h=l+Math.atan2(Math.sin(n)*Math.sin(u)*Math.cos(a),Math.cos(u)-Math.sin(a)*Math.sin(c));return[(0,r.Ux)(h),(0,r.Ux)(c)]}},9781:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(2582),r=n(8641),o=n(4187),s=n(9374);const a=function(){function t(t){this.rbush_=new i(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,o.sq)(e)]=n},t.prototype.load=function(t,e){for(var n=new Array(e.length),i=0,r=e.length;i<r;i++){var s=t[i],a=e[i],l={minX:s[0],minY:s[1],maxX:s[2],maxY:s[3],value:a};n[i]=l,this.items_[(0,o.sq)(a)]=l}this.rbush_.load(n)},t.prototype.remove=function(t){var e=(0,o.sq)(t),n=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(n)},t.prototype.update=function(t,e){var n=this.items_[(0,o.sq)(e)],i=[n.minX,n.minY,n.maxX,n.maxY];(0,r.equals)(i,t)||(this.remove(e),this.insert(t,e))},t.prototype.getAll=function(){return this.rbush_.all().map((function(t){return t.value}))},t.prototype.getInExtent=function(t){var e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this.rbush_.search(e).map((function(t){return t.value}))},t.prototype.forEach=function(t){return this.forEach_(this.getAll(),t)},t.prototype.forEachInExtent=function(t,e){return this.forEach_(this.getInExtent(t),e)},t.prototype.forEach_=function(t,e){for(var n,i=0,r=t.length;i<r;i++)if(n=e(t[i]))return n;return n},t.prototype.isEmpty=function(){return(0,s.xb)(this.items_)},t.prototype.clear=function(){this.rbush_.clear(),this.items_={}},t.prototype.getExtent=function(t){var e=this.rbush_.toJSON();return(0,r.createOrUpdate)(e.minX,e.minY,e.maxX,e.maxY,t)},t.prototype.concat=function(t){for(var e in this.rbush_.load(t.rbush_.all()),t.items_)this.items_[e]=t.items_[e]},t}()},283:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i,r=n(5393),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function 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=e||{};return t.call(this,{points:1/0,fill:n.fill,radius:n.radius,stroke:n.stroke,scale:void 0!==n.scale?n.scale:1,rotation:void 0!==n.rotation?n.rotation:0,rotateWithView:void 0!==n.rotateWithView&&n.rotateWithView,displacement:void 0!==n.displacement?n.displacement:[0,0]})||this}return o(e,t),e.prototype.clone=function(){var t=this.getScale(),n=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()});return n.setOpacity(this.getOpacity()),n},e.prototype.setRadius=function(t){this.radius_=t,this.render()},e}(r.Z)},1345:(t,e,n)=>{"use strict";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}()},4115:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var i=n(5487),r=n(4698);const o="bottom-left",s="bottom-right",a="top-left",l="top-right";var u,c=n(553),h=n(8443),p=n(9706),f=n(9515),d=n(3713),g=n(4187),_=(u=function(t,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},u(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const y=function(t){function e(e){var n=this,i=e||{},o=void 0!==i.opacity?i.opacity:1,s=void 0!==i.rotation?i.rotation:0,l=void 0!==i.scale?i.scale:1,u=void 0!==i.rotateWithView&&i.rotateWithView;(n=t.call(this,{opacity:o,rotation:s,scale:l,displacement:void 0!==i.displacement?i.displacement:[0,0],rotateWithView:u})||this).anchor_=void 0!==i.anchor?i.anchor:[.5,.5],n.normalizedAnchor_=null,n.anchorOrigin_=void 0!==i.anchorOrigin?i.anchorOrigin:a,n.anchorXUnits_=void 0!==i.anchorXUnits?i.anchorXUnits:r.Z.FRACTION,n.anchorYUnits_=void 0!==i.anchorYUnits?i.anchorYUnits:r.Z.FRACTION,n.crossOrigin_=void 0!==i.crossOrigin?i.crossOrigin:null;var h=void 0!==i.img?i.img:null;n.imgSize_=i.imgSize;var _=i.src;(0,f.h)(!(void 0!==_&&h),4),(0,f.h)(!h||h&&n.imgSize_,5),void 0!==_&&0!==_.length||!h||(_=h.src||(0,g.sq)(h)),(0,f.h)(void 0!==_&&_.length>0,6);var y=void 0!==i.src?c.Z.IDLE:c.Z.LOADED;return n.color_=void 0!==i.color?(0,p._2)(i.color):null,n.iconImage_=(0,d.U)(h,_,void 0!==n.imgSize_?n.imgSize_:null,n.crossOrigin_,y,n.color_),n.offset_=void 0!==i.offset?i.offset:[0,0],n.offsetOrigin_=void 0!==i.offsetOrigin?i.offsetOrigin:a,n.origin_=null,n.size_=void 0!==i.size?i.size:null,n}return _(e,t),e.prototype.clone=function(){var t=this.getScale();return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc()})},e.prototype.getAnchor=function(){var t=this.normalizedAnchor_;if(!t){t=this.anchor_;var e=this.getSize();if(this.anchorXUnits_==r.Z.FRACTION||this.anchorYUnits_==r.Z.FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==r.Z.FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==r.Z.FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=a){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=l&&this.anchorOrigin_!=s||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=o&&this.anchorOrigin_!=s||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}var n=this.getDisplacement();return[t[0]-n[0],t[1]+n[1]]},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=a){var e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),this.offsetOrigin_!=l&&this.offsetOrigin_!=s||(t[0]=n[0]-e[0]-t[0]),this.offsetOrigin_!=o&&this.offsetOrigin_!=s||(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(i.Z.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(i.Z.CHANGE,t)},e}(h.Z)},4698:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={FRACTION:"fraction",PIXELS:"pixels"}},3713:(t,e,n)=>{"use strict";n.d(e,{U:()=>d,Z:()=>g});var i,r=n(208),o=n(5487),s=n(553),a=n(9706),l=n(8326),u=n(2710),c=n(9807),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=null,f=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_={},a.color_=s,a.unlisten_=null,a.imageState_=o,a.size_=i,a.src_=n,a.tainted_,a}return h(e,t),e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===s.Z.LOADED){p||(p=(0,l.E4)(1,1)),p.drawImage(this.image_,0,0);try{p.getImageData(0,0,1,1),this.tainted_=!1}catch(t){p=null,this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(o.Z.CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=s.Z.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=s.Z.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_},e.prototype.getPixelRatio=function(t){return this.replaceColor_(t),this.canvas_[t]?t:1},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var t=this.size_[0],e=this.size_[1],n=(0,l.E4)(t,e);n.fillRect(0,0,t,e),this.hitDetectionImage_=n.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_==s.Z.IDLE){this.imageState_=s.Z.LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=(0,c.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},e.prototype.replaceColor_=function(t){if(this.color_&&!this.canvas_[t]&&this.imageState_===s.Z.LOADED){var e=document.createElement("canvas");this.canvas_[t]=e,e.width=Math.ceil(this.image_.width*t),e.height=Math.ceil(this.image_.height*t);var n=e.getContext("2d");if(n.scale(t,t),n.drawImage(this.image_,0,0),n.globalCompositeOperation="multiply","multiply"===n.globalCompositeOperation||this.isTainted_())n.fillStyle=(0,a.XC)(this.color_),n.fillRect(0,0,e.width/t,e.height/t),n.globalCompositeOperation="destination-in",n.drawImage(this.image_,0,0);else{for(var i=n.getImageData(0,0,e.width,e.height),r=i.data,o=this.color_[0]/255,l=this.color_[1]/255,u=this.color_[2]/255,c=this.color_[3],h=0,p=r.length;h<p;h+=4)r[h]*=o,r[h+1]*=l,r[h+2]*=u,r[h+3]*=c;n.putImageData(i,0,0)}}},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(r.Z);function d(t,e,n,i,r,o){var s=u.c.get(e,i,o);return s||(s=new f(t,e,n,i,r,o),u.c.set(e,i,o,s)),s}const g=f},2710:(t,e,n)=>{"use strict";n.d(e,{c:()=>o});var i=n(9706);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}())},8443:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(4187),r=n(4307);const o=function(){function t(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,r.Pq)(t.scale),this.displacement_=t.displacement}return t.prototype.clone=function(){var e=this.getScale();return new t({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()})},t.prototype.getOpacity=function(){return this.opacity_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getDisplacement=function(){return this.displacement_},t.prototype.getAnchor=function(){return(0,i.O3)()},t.prototype.getImage=function(t){return(0,i.O3)()},t.prototype.getHitDetectionImage=function(){return(0,i.O3)()},t.prototype.getPixelRatio=function(t){return 1},t.prototype.getImageState=function(){return(0,i.O3)()},t.prototype.getImageSize=function(){return(0,i.O3)()},t.prototype.getOrigin=function(){return(0,i.O3)()},t.prototype.getSize=function(){return(0,i.O3)()},t.prototype.setDisplacement=function(t){this.displacement_=t},t.prototype.setOpacity=function(t){this.opacity_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=(0,r.Pq)(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}()},5393:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var i,r=n(553),o=n(8443),s=n(9706),a=n(6620),l=n(8326),u=n(147),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function 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=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:void 0!==e.scale?e.scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0]})||this).canvas_=void 0,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.size_=null,n.renderOptions_=null,n.render(),n}return c(e,t),e.prototype.clone=function(){var t=this.getScale(),n=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice()});return n.setOpacity(this.getOpacity()),n},e.prototype.getAnchor=function(){var t=this.size_;if(!t)return null;var e=this.getDisplacement();return[t[0]/2-e[0],t[1]/2+e[1]]},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},e.prototype.getImage=function(t){var e=this.canvas_[t];if(!e){var n=this.renderOptions_,i=(0,l.E4)(n.size*t,n.size*t);this.draw_(n,i,t),e=i.canvas,this.canvas_[t]=e}return e},e.prototype.getPixelRatio=function(t){return t},e.prototype.getImageSize=function(){return this.size_},e.prototype.getImageState=function(){return r.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.calculateLineJoinSize_=function(t,e,n){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;var i=this.radius_,r=void 0===this.radius2_?i:this.radius2_;if(i<r){var o=i;i=r,r=o}var s=void 0===this.radius2_?this.points_:2*this.points_,a=2*Math.PI/s,l=r*Math.sin(a),u=i-Math.sqrt(r*r-l*l),c=Math.sqrt(l*l+u*u),h=c/l;if("miter"===t&&h<=n)return h*e;var p=e/2/h,f=e/2*(u/c),d=Math.sqrt((i+p)*(i+p)+f*f)-i;if(void 0===this.radius2_||"bevel"===t)return 2*d;var g=i*Math.sin(a),_=r-Math.sqrt(i*i-g*g),y=Math.sqrt(g*g+_*_)/g;if(y<=n){var v=y*e/2-r-i;return 2*Math.max(d,v)}return 2*d},e.prototype.createRenderOptions=function(){var t,e=u.rc,n=0,i=null,r=0,o=0;this.stroke_&&(null===(t=this.stroke_.getColor())&&(t=u.Tx),t=(0,a.y)(t),void 0===(o=this.stroke_.getWidth())&&(o=u.yC),i=this.stroke_.getLineDash(),r=this.stroke_.getLineDashOffset(),void 0===(e=this.stroke_.getLineJoin())&&(e=u.rc),void 0===(n=this.stroke_.getMiterLimit())&&(n=u.V4));var s=this.calculateLineJoinSize_(e,o,n),l=Math.max(this.radius_,this.radius2_||0);return{strokeStyle:t,strokeWidth:o,size:Math.ceil(2*l+s),lineDash:i,lineDashOffset:r,lineJoin:e,miterLimit:n}},e.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var t=this.renderOptions_.size;this.canvas_={},this.size_=[t,t]},e.prototype.draw_=function(t,e,n){if(e.scale(n,n),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){var i=this.fill_.getColor();null===i&&(i=u.bL),e.fillStyle=(0,a.y)(i),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.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())},e.prototype.createHitDetectionCanvas_=function(t){if(this.fill_){var e=this.fill_.getColor(),n=0;if("string"==typeof e&&(e=(0,s._2)(e)),null===e?n=1:Array.isArray(e)&&(n=4===e.length?e[3]:1),0===n){var i=(0,l.E4)(t.size,t.size);this.hitDetectionCanvas_=i.canvas,this.drawHitDetectionCanvas_(t,i)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},e.prototype.createPath_=function(t){var e=this.points_,n=this.radius_;if(e===1/0)t.arc(0,0,n,0,2*Math.PI);else{var i=void 0===this.radius2_?n:this.radius2_;void 0!==this.radius2_&&(e*=2);for(var r=this.angle_-Math.PI/2,o=2*Math.PI/e,s=0;s<e;s++){var a=r+s*o,l=s%2==0?n:i;t.lineTo(l*Math.cos(a),l*Math.sin(a))}t.closePath()}},e.prototype.drawHitDetectionCanvas_=function(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=u.bL,e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())},e}(o.Z)},8958:(t,e,n)=>{"use strict";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}()},7539:(t,e,n)=>{"use strict";n.r(e),n.d(e,{createDefaultStyle:()=>h,createEditingStyle:()=>p,default:()=>d,toFunction:()=>u});var i=n(283),r=n(1345),o=n(4754),s=n(8958),a=n(9515),l=function(){function t(t){var e=t||{};this.geometry_=null,this.geometryFunction_=f,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.hitDetectionRenderer_=void 0!==e.hitDetectionRenderer?e.hitDetectionRenderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex}return t.prototype.clone=function(){var e=this.getGeometry();return e&&"object"==typeof e&&(e=e.clone()),new t({geometry:e,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.setRenderer=function(t){this.renderer_=t},t.prototype.setHitDetectionRenderer=function(t){this.hitDetectionRenderer_=t},t.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},t.prototype.getGeometry=function(){return this.geometry_},t.prototype.getGeometryFunction=function(){return this.geometryFunction_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(t){this.fill_=t},t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(t){this.image_=t},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.getText=function(){return this.text_},t.prototype.setText=function(t){this.text_=t},t.prototype.getZIndex=function(){return this.zIndex_},t.prototype.setGeometry=function(t){"function"==typeof t?this.geometryFunction_=t:"string"==typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=f,this.geometry_=t},t.prototype.setZIndex=function(t){this.zIndex_=t},t}();function u(t){var e,n;"function"==typeof t?e=t:(Array.isArray(t)?n=t:((0,a.h)("function"==typeof t.getZIndex,41),n=[t]),e=function(){return n});return e}var c=null;function h(t,e){if(!c){var n=new r.Z({color:"rgba(255,255,255,0.4)"}),o=new s.Z({color:"#3399CC",width:1.25});c=[new l({image:new i.Z({fill:n,stroke:o,radius:5}),fill:n,stroke:o})]}return c}function p(){var t={},e=[255,255,255,1],n=[0,153,255,1];return t[o.Z.POLYGON]=[new l({fill:new r.Z({color:[255,255,255,.5]})})],t[o.Z.MULTI_POLYGON]=t[o.Z.POLYGON],t[o.Z.LINE_STRING]=[new l({stroke:new s.Z({color:e,width:5})}),new l({stroke:new s.Z({color:n,width:3})})],t[o.Z.MULTI_LINE_STRING]=t[o.Z.LINE_STRING],t[o.Z.CIRCLE]=t[o.Z.POLYGON].concat(t[o.Z.LINE_STRING]),t[o.Z.POINT]=[new l({image:new i.Z({radius:6,fill:new r.Z({color:n}),stroke:new s.Z({color:e,width:1.5})}),zIndex:1/0})],t[o.Z.MULTI_POINT]=t[o.Z.POINT],t[o.Z.GEOMETRY_COLLECTION]=t[o.Z.POLYGON].concat(t[o.Z.LINE_STRING],t[o.Z.POINT]),t}function f(t){return t.getGeometry()}const d=l},6313:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i={POINT:"point",LINE:"line"}},6101:(t,e,n)=>{"use strict";n.d(e,{BB:()=>p,Ue:()=>s,lk:()=>a,n3:()=>u,nb:()=>h,nn:()=>l,qC:()=>c});var i,r=n(177),o=n(9515);function s(){return[1,0,0,1,0,0]}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function l(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 u(t,e,n){return r=e,o=0,s=0,a=n,l=0,u=0,(i=t)[0]=r,i[1]=o,i[2]=s,i[3]=a,i[4]=l,i[5]=u,i;var i,r,o,s,a,l,u}function c(t,e,n,i,r,o,s,a){var l=Math.sin(o),u=Math.cos(o);return t[0]=i*u,t[1]=r*l,t[2]=-i*l,t[3]=r*u,t[4]=s*i*u-a*i*l+e,t[5]=s*r*l+a*r*u+n,t}function h(t,e){var n,i=(n=e)[0]*n[3]-n[1]*n[2];(0,o.h)(0!==i,32);var r=e[0],s=e[1],a=e[2],l=e[3],u=e[4],c=e[5];return t[0]=l/i,t[1]=-s/i,t[2]=-a/i,t[3]=r/i,t[4]=(a*c-l*u)/i,t[5]=-(r*c-s*u)/i,t}function p(t){var e="matrix("+t.join(", ")+")";if(r.Id)return e;var n=i||(i=document.createElement("div"));return n.style.transform=e,n.style.transform}new Array(6)},4187:(t,e,n)=>{"use strict";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.14.1"}},o={};function s(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={exports:{}};return r[t].call(n.exports,n,n.exports,s),n.exports}s.m=r,s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce(((e,n)=>(s.f[n](t,e),e)),[])),s.u=t=>"farmOS-map-chunk-"+{32:"523d68545e1a25157d7e",92:"bdd7313a963b396ca199",103:"dffc051dc4c0acb240b9",243:"c702eaf281b7eac4d74e",285:"e523d7899d834aa50e13",330:"ec4351c3926539fbaa91",395:"3b1d019eda73aaeb836b",412:"c83055136ca34590b1b8",553:"354c79fb56309c47e3db",663:"bc0127d89e31210003b4",687:"aa66783b9d2178503f6e",723:"2a6cb9e43ffc9d5d324d",807:"8825ee1b86645c38d8b1"}[t]+".js",s.miniCssF=t=>179===t?"farmOS-map.css":"farmOS-map-chunk-"+{92:"012d94c887bd9ea68319",103:"fd0e93dfff61960387d7",285:"3e8212879c613f957eb8",330:"3c7891839457615dbf3b",395:"f3968751da4833031510",412:"012d94c887bd9ea68319",553:"3e8212879c613f957eb8",663:"73306e8efbcf8e8e4e83",687:"3c7891839457615dbf3b",723:"4e78a2d2d641fb6fb527"}[t]+".css",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="@farmos.org/farmos-map:",s.l=(n,i,r,o)=>{if(t[n])t[n].push(i);else{var a,l;if(void 0!==r)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var h=u[c];if(h.getAttribute("src")==n||h.getAttribute("data-webpack")==e+r){a=h;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",e+r),a.src=n),t[n]=[i];var p=(e,i)=>{a.onerror=a.onload=null,clearTimeout(f);var r=t[n];if(delete t[n],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((t=>t(i))),e)return e(i)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),l&&document.head.appendChild(a)}},s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;s.g.importScripts&&(t=s.g.location+"");var e=s.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var i=n.length-1;i>-1&&!t;)t=n[i--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t})(),n=t=>new Promise(((e,n)=>{var i=s.miniCssF(t),r=s.p+i;if(((t,e)=>{for(var n=document.getElementsByTagName("link"),i=0;i<n.length;i++){var r=(s=n[i]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(r===t||r===e))return s}var o=document.getElementsByTagName("style");for(i=0;i<o.length;i++){var s;if((r=(s=o[i]).getAttribute("data-href"))===t||r===e)return s}})(i,r))return e();((t,e,n,i)=>{var r=document.createElement("link");r.rel="stylesheet",r.type="text/css",r.onerror=r.onload=o=>{if(r.onerror=r.onload=null,"load"===o.type)n();else{var s=o&&("load"===o.type?"missing":o.type),a=o&&o.target&&o.target.href||e,l=new Error("Loading CSS chunk "+t+" failed.\n("+a+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=a,r.parentNode.removeChild(r),i(l)}},r.href=e,document.head.appendChild(r)})(t,r,e,n)})),i={179:0},s.f.miniCss=(t,e)=>{i[t]?e.push(i[t]):0!==i[t]&&{92:1,103:1,285:1,330:1,395:1,412:1,553:1,663:1,687:1,723:1}[t]&&e.push(i[t]=n(t).then((()=>{i[t]=0}),(e=>{throw delete i[t],e})))},(()=>{var t={179:0};s.f.j=(e,n)=>{var i=s.o(t,e)?t[e]:void 0;if(0!==i)if(i)n.push(i[2]);else{var r=new Promise(((n,r)=>i=t[e]=[n,r]));n.push(i[2]=r);var o=s.p+s.u(e),a=new Error;s.l(o,(n=>{if(s.o(t,e)&&(0!==(i=t[e])&&(t[e]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",a.name="ChunkLoadError",a.type=r,a.request=o,i[1](a)}}),"chunk-"+e,e)}};var e=(e,n)=>{var i,r,[o,a,l]=n,u=0;if(o.some((e=>0!==t[e]))){for(i in a)s.o(a,i)&&(s.m[i]=a[i]);l&&l(s)}for(e&&e(n);u<o.length;u++)r=o[u],s.o(t,r)&&t[r]&&t[r][0](),t[r]=0},n=self.webpackChunk_farmos_org_farmos_map=self.webpackChunk_farmos_org_farmos_map||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),(()=>{"use strict";var t={};s.r(t),s.d(t,{Circle:()=>_i.Z,Fill:()=>yi.Z,Icon:()=>vi.default,IconImage:()=>mi.Z,Image:()=>xi.Z,RegularShape:()=>Ei.Z,Stroke:()=>Ci.Z,Style:()=>wi.default,Text:()=>Si}),s(5037);var e,n=s(5431),i=s(6885),r=s(4187),o=s(6101),a=s(8641),l=s(2710),u=s(1295),c=s(1900),h=(e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},e(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),p=function(t){function e(e){var n=t.call(this)||this;return n.map_=e,n}return h(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,o.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,o.nb)(i,n)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r,o,s,l){var h,p=e.viewState;function f(t,e,n,i){return r.call(o,e,t?n:null,i)}var d=p.projection,g=(0,c.Cf)(t.slice(),d),_=[[0,0]];if(d.canWrapX()&&i){var y=d.getExtent(),v=(0,a.getWidth)(y);_.push([-v,0],[v,0])}for(var m=e.layerStatesArray,x=m.length,E=[],C=[],w=0;w<_.length;w++)for(var T=x-1;T>=0;--T){var S=m[T],O=S.layer;if(O.hasRenderer()&&(0,u.j)(S,p)&&s.call(l,O)){var b=O.getRenderer(),R=O.getSource();if(b&&R){var P=R.getWrapX()?g:t,I=f.bind(null,S.managed);C[0]=P[0]+_[w][0],C[1]=P[1]+_[w][1],h=b.forEachFeatureAtCoordinate(C,e,n,I,E)}if(h)return h}}if(0!==E.length){var L=1/E.length;return E.forEach((function(t,e){return t.distanceSq+=e*L})),E.sort((function(t,e){return t.distanceSq-e.distanceSq})),E.some((function(t){return h=t.callback(t.feature,t.layer,t.geometry)})),h}},e.prototype.forEachLayerAtPixel=function(t,e,n,i,o){return(0,r.O3)()},e.prototype.hasFeatureAtCoordinate=function(t,e,n,r,o,s){return void 0!==this.forEachFeatureAtCoordinate(t,e,n,r,i.uX,this,o,s)},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){(0,r.O3)()},e.prototype.scheduleExpireIconCache=function(t){l.c.canExpireCache()&&t.postRenderFunctions.push(f)},e}(n.Z);function f(t,e){l.c.expire()}const d=p;var g=s(5990),_=s(7380),y=s(8771),v=s(4562),m=s(245),x=s(147),E=s(5818),C=s(8326),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const T=function(t){function e(e){var n=t.call(this,e)||this;n.fontChangeListenerKey_=(0,E.oL)(x.sG,g.Z.PROPERTYCHANGE,e.redrawText.bind(e)),n.element_=document.createElement("div");var i=n.element_.style;i.position="absolute",i.width="100%",i.height="100%",i.zIndex="0",n.element_.className=m.XV+" ol-layers";var r=e.getViewport();return r.insertBefore(n.element_,r.firstChild||null),n.children_=[],n.renderedVisible_=!0,n}return w(e,t),e.prototype.dispatchRenderEvent=function(t,e){var n=this.getMap();if(n.hasListener(t)){var i=new _.Z(t,void 0,e);n.dispatchEvent(i)}},e.prototype.disposeInternal=function(){(0,E.bN)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),t.prototype.disposeInternal.call(this)},e.prototype.renderFrame=function(t){if(t){this.calculateMatrices2D(t),this.dispatchRenderEvent(y.Z.PRECOMPOSE,t);var e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),n=t.viewState;this.children_.length=0;for(var i=[],r=null,o=0,s=e.length;o<s;++o){var a=e[o];t.layerIndex=o;var l=a.layer,c=l.getSourceState();if(!(0,u.j)(a,n)||c!=v.Z.READY&&c!=v.Z.UNDEFINED)l.unrender();else{var h=l.render(t,r);h&&(h!==r&&(this.children_.push(h),r=h),"getDeclutter"in l&&i.push(l))}}for(o=i.length-1;o>=0;--o)i[o].renderDeclutter(t);(0,C.hF)(this.element_,this.children_),this.dispatchRenderEvent(y.Z.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},e.prototype.forEachLayerAtPixel=function(t,e,n,i,r){for(var o=e.viewState,s=e.layerStatesArray,a=s.length-1;a>=0;--a){var l=s[a],c=l.layer;if(c.hasRenderer()&&(0,u.j)(l,o)&&r(c)){var h=c.getRenderer().getDataAtPixel(t,e,n);if(h){var p=i(c,h);if(p)return p}}}},e}(d);var S=s(2971),O=s(8714),b=s(2071),R=s(5487),P=s(8734),I=s(8630),L=s(2217);const M="pointerdown";var A=s(208),Z=s(177),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const N=function(t){function e(e,n){var i=t.call(this,e)||this;i.map_=e,i.clickTimeoutId_,i.emulateClicks_=!1,i.dragging_=!1,i.dragListenerKeys_=[],i.moveTolerance_=void 0===n?1:n,i.down_=null;var r=i.map_.getViewport();return i.activePointers_=0,i.trackedTouches_={},i.element_=r,i.pointerdownListenerKey_=(0,E.oL)(r,M,i.handlePointerDown_,i),i.originalPointerMoveEvent_,i.relayedListenerKey_=(0,E.oL)(r,"pointermove",i.relayEvent_,i),i.boundHandleTouchMove_=i.handleTouchMove_.bind(i),i.element_.addEventListener(R.Z.TOUCHMOVE,i.boundHandleTouchMove_,!!Z.bM&&{passive:!1}),i}return F(e,t),e.prototype.emulateClick_=function(t){var e=new I.Z(L.Z.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new I.Z(L.Z.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new I.Z(L.Z.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t;e.type==L.Z.POINTERUP||e.type==L.Z.POINTERCANCEL?delete this.trackedTouches_[e.pointerId]:e.type==L.Z.POINTERDOWN&&(this.trackedTouches_[e.pointerId]=!0),this.activePointers_=Object.keys(this.trackedTouches_).length},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new I.Z(L.Z.POINTERUP,this.map_,t);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_&&(this.dragListenerKeys_.forEach(E.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.emulateClicks_=0===this.activePointers_,this.updateActivePointers_(t);var e=new I.Z(L.Z.POINTERDOWN,this.map_,t);for(var n in this.dispatchEvent(e),this.down_={},t){var r=t[n];this.down_[n]="function"==typeof r?i.Zn:r}if(0===this.dragListenerKeys_.length){var o=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,E.oL)(o,L.Z.POINTERMOVE,this.handlePointerMove_,this),(0,E.oL)(o,L.Z.POINTERUP,this.handlePointerUp_,this),(0,E.oL)(this.element_,L.Z.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==o&&this.dragListenerKeys_.push((0,E.oL)(this.element_.getRootNode(),L.Z.POINTERUP,this.handlePointerUp_,this))}},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.dragging_=!0;var e=new I.Z(L.Z.POINTERDRAG,this.map_,t,this.dragging_);this.dispatchEvent(e)}},e.prototype.relayEvent_=function(t){this.originalPointerMoveEvent_=t;var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new I.Z(t.type,this.map_,t,e))},e.prototype.handleTouchMove_=function(t){var e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"==typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()},e.prototype.isMoving_=function(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&((0,E.bN)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(R.Z.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,E.bN)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(E.bN),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(A.Z);var k=s(3536),D=s(2126);const j="layergroup",G="size",X="target",Y="view";var U=s(9515),W=s(9374),z=1/0;const B=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,W.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,U.h)(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=z&&(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<i>>1;){var a=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),u=l<i&&n[l]<n[a]?l:a;e[t]=e[u],n[t]=n[u],t=u}e[t]=r,n[t]=o,this.siftDown_(s,t)},t.prototype.siftDown_=function(t,e){for(var n=this.elements_,i=this.priorities_,r=n[e],o=i[e];e>t;){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;e<a;++e)(n=i(t=r[e]))==z?delete this.queuedElements_[this.keyFunction_(t)]:(o[s]=n,r[s++]=t);r.length=s,o.length=s,this.heapify_()},t}();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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const K=function(t){function e(e,n){var i=t.call(this,(function(t){return e.apply(null,t)}),(function(t){return t[0].getKey()}))||this;return i.boundHandleTileChange_=i.handleTileChange.bind(i),i.tileChangeCallback_=n,i.tilesLoading_=0,i.tilesLoadingKeys_={},i}return V(e,t),e.prototype.enqueue=function(e){var n=t.prototype.enqueue.call(this,e);return n&&e[0].addEventListener(R.Z.CHANGE,this.boundHandleTileChange_),n},e.prototype.getTilesLoading=function(){return this.tilesLoading_},e.prototype.handleTileChange=function(t){var e=t.target,n=e.getState();if(2===n||3===n||4===n){e.removeEventListener(R.Z.CHANGE,this.boundHandleTileChange_);var i=e.getKey();i in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[i],--this.tilesLoading_),this.tileChangeCallback_()}},e.prototype.loadMoreTiles=function(t,e){for(var n,i,r=0;this.tilesLoading_<t&&r<e&&this.getCount()>0;)i=(n=this.dequeue()[0]).getKey(),0!==n.getState()||i in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[i]=!0,++this.tilesLoading_,++r,n.load())},e}(B);var q=s(4754),H=s(8375),$=s(7755);const J={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var Q=42,tt=256,et=s(2290),nt=s(3983);function it(t,e,n){return function(i,r,o,s,a){if(i){if(!r&&!e)return i;var l=e?0:o[0]*r,u=e?0:o[1]*r,c=a?a[0]:0,h=a?a[1]:0,p=t[0]+l/2+c,f=t[2]-l/2+c,d=t[1]+u/2+h,g=t[3]-u/2+h;p>f&&(f=p=(f+p)/2),d>g&&(g=d=(g+d)/2);var _=(0,nt.uZ)(i[0],p,f),y=(0,nt.uZ)(i[1],d,g);if(s&&n&&r){var v=30*r;_+=-v*Math.log(1+Math.max(0,p-i[0])/v)+v*Math.log(1+Math.max(0,i[0]-f)/v),y+=-v*Math.log(1+Math.max(0,d-i[1])/v)+v*Math.log(1+Math.max(0,i[1]-g)/v)}return[_,y]}}}function rt(t){return t}var ot=s(5537);function st(t,e,n,i){var r=(0,a.getWidth)(e)/n[0],o=(0,a.getHeight)(e)/n[1];return i?Math.min(t,Math.max(r,o)):Math.min(t,Math.min(r,o))}function at(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,nt.uZ)(i,n/2,2*e)}function lt(t,e,n,i,r){return function(o,s,a,l){if(void 0!==o){var u=i?st(t,i,a,r):t;return(void 0===n||n)&&l?at(o,u,e):(0,nt.uZ)(o,e,u)}}}function ut(t){return void 0!==t?0:void 0}function ct(t){return void 0!==t?t:void 0}var ht=s(1015),pt=s(2033),ft=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),dt=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var i=(0,W.f0)({},e);return n.hints_=[0,0],n.animations_=[],n.updateAnimationKey_,n.projection_=(0,et.createProjection)(i.projection,"EPSG:3857"),n.viewportSize_=[100,100],n.targetCenter_=null,n.targetResolution_,n.targetRotation_,n.nextCenter_=null,n.nextResolution_,n.nextRotation_,n.cancelAnchor_=void 0,i.projection&&(0,et.disableCoordinateWarning)(),i.center&&(i.center=(0,et.fromUserCoordinate)(i.center,n.projection_)),i.extent&&(i.extent=(0,et.fromUserExtent)(i.extent,n.projection_)),n.applyOptions_(i),n}return ft(e,t),e.prototype.applyOptions_=function(t){var e=(0,W.f0)({},t);for(var n in J)delete e[n];this.setProperties(e,!0);var i=function(t){var e,n,i,r=void 0!==t.minZoom?t.minZoom:0,o=void 0!==t.maxZoom?t.maxZoom:28,s=void 0!==t.zoomFactor?t.zoomFactor:2,l=void 0!==t.multiWorld&&t.multiWorld,u=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,c=void 0!==t.showFullExtent&&t.showFullExtent,h=(0,et.createProjection)(t.projection,"EPSG:3857"),p=h.getExtent(),f=t.constrainOnlyCenter,d=t.extent;if(l||d||!h.isGlobal()||(f=!1,d=p),void 0!==t.resolutions){var g=t.resolutions;n=g[r],i=void 0!==g[o]?g[o]:g[g.length-1],e=t.constrainResolution?function(t,e,n,i){return function(r,o,s,a){if(void 0!==r){var l=t[0],u=t[t.length-1],c=n?st(l,n,s,i):l;if(a)return void 0===e||e?at(r,c,u):(0,nt.uZ)(r,u,c);var h=Math.min(c,r),p=Math.floor((0,ot.h7)(t,h,o));return t[p]>c&&p<t.length-1?t[p+1]:t[p]}}}(g,u,!f&&d,c):lt(n,i,u,!f&&d,c)}else{var _=(p?Math.max((0,a.getWidth)(p),(0,a.getHeight)(p)):360*et.METERS_PER_UNIT[H.ZP.DEGREES]/h.getMetersPerUnit())/tt/Math.pow(2,0),y=_/Math.pow(2,28);void 0!==(n=t.maxResolution)?r=0:n=_/Math.pow(s,r),void 0===(i=t.minResolution)&&(i=void 0!==t.maxZoom?void 0!==t.maxResolution?n/Math.pow(s,o):_/Math.pow(s,o):y),o=r+Math.floor(Math.log(n/i)/Math.log(s)),i=n/Math.pow(s,o-r),e=t.constrainResolution?function(t,e,n,i,r,o){return function(s,a,l,u){if(void 0!==s){var c=r?st(e,r,l,o):e,h=void 0!==n?n:0;if(u)return void 0===i||i?at(s,c,h):(0,nt.uZ)(s,h,c);var p=Math.ceil(Math.log(e/c)/Math.log(t)-1e-9),f=-a*(.5-1e-9)+.5,d=Math.min(c,s),g=Math.floor(Math.log(e/d)/Math.log(t)+f),_=Math.max(p,g),y=e/Math.pow(t,_);return(0,nt.uZ)(y,h,c)}}}(s,n,i,u,!f&&d,c):lt(n,i,u,!f&&d,c)}return{constraint:e,maxResolution:n,minResolution:i,minZoom:r,zoomFactor:s}}(t);this.maxResolution_=i.maxResolution,this.minResolution_=i.minResolution,this.zoomFactor_=i.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=i.minZoom;var r=function(t){if(void 0!==t.extent){var e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return it(t.extent,t.constrainOnlyCenter,e)}var n=(0,et.createProjection)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&n.isGlobal()){var i=n.getExtent().slice();return i[0]=-1/0,i[2]=1/0,it(i,!1,!1)}return rt}(t),o=i.constraint,s=function(t){var e,n,i;if(void 0===t.enableRotation||t.enableRotation){var r=t.constrainRotation;return void 0===r||!0===r?(i=(0,nt.Yr)(5),function(t,e){return e?t:void 0!==t?Math.abs(t)<=i?0:t:void 0}):!1===r?ct:"number"==typeof r?(e=r,n=2*Math.PI/e,function(t,e){return e?t:void 0!==t?t=Math.floor(t/n+.5)*n:void 0}):ct}return ut}(t);this.constraints_={center:r,resolution:o,rotation:s},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom)},Object.defineProperty(e.prototype,"padding",{get:function(){return this.padding_},set:function(t){var e=this.padding_;this.padding_=t;var n=this.getCenter();if(n){var i=t||[0,0,0,0];e=e||[0,0,0,0];var r=this.getResolution(),o=r/2*(i[3]-e[3]+e[1]-i[1]),s=r/2*(i[0]-e[0]+e[2]-i[2]);this.setCenterInternal([n[0]+o,n[1]-s])}},enumerable:!1,configurable:!0}),e.prototype.getUpdatedOptions_=function(t){var e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),(0,W.f0)({},e,t)},e.prototype.animate=function(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var e=new Array(arguments.length),n=0;n<e.length;++n){var i=arguments[n];i.center&&((i=(0,W.f0)({},i)).center=(0,et.fromUserCoordinate)(i.center,this.getProjection())),i.anchor&&((i=(0,W.f0)({},i)).anchor=(0,et.fromUserCoordinate)(i.anchor,this.getProjection())),e[n]=i}this.animateInternal.apply(this,e)},e.prototype.animateInternal=function(t){var e,n=arguments.length;n>1&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n);for(var i=0;i<n&&!this.isDef();++i){var r=arguments[i];r.center&&this.setCenterInternal(r.center),void 0!==r.zoom?this.setZoom(r.zoom):r.resolution&&this.setResolution(r.resolution),void 0!==r.rotation&&this.setRotation(r.rotation)}if(i!==n){for(var o=Date.now(),s=this.targetCenter_.slice(),a=this.targetResolution_,l=this.targetRotation_,u=[];i<n;++i){var c=arguments[i],h={start:o,complete:!1,anchor:c.anchor,duration:void 0!==c.duration?c.duration:1e3,easing:c.easing||ht.rd,callback:e};if(c.center&&(h.sourceCenter=s,h.targetCenter=c.center.slice(),s=h.targetCenter),void 0!==c.zoom?(h.sourceResolution=a,h.targetResolution=this.getResolutionForZoom(c.zoom),a=h.targetResolution):c.resolution&&(h.sourceResolution=a,h.targetResolution=c.resolution,a=h.targetResolution),void 0!==c.rotation){h.sourceRotation=l;var p=(0,nt.$W)(c.rotation-l+Math.PI,2*Math.PI)-Math.PI;h.targetRotation=l+p,l=h.targetRotation}_t(h)?h.complete=!0:o+=h.duration,u.push(h)}this.animations_.push(u),this.setHint($.Z.ANIMATING,1),this.updateAnimations_()}else e&>(e,!0)},e.prototype.getAnimating=function(){return this.hints_[$.Z.ANIMATING]>0},e.prototype.getInteracting=function(){return this.hints_[$.Z.INTERACTING]>0},e.prototype.cancelAnimations=function(){var t;this.setHint($.Z.ANIMATING,-this.hints_[$.Z.ANIMATING]);for(var e=0,n=this.animations_.length;e<n;++e){var i=this.animations_[e];if(i[0].callback&>(i[0].callback,!1),!t)for(var r=0,o=i.length;r<o;++r){var s=i[r];if(!s.complete){t=s.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN},e.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var t=Date.now(),e=!1,n=this.animations_.length-1;n>=0;--n){for(var i=this.animations_[n],r=!0,o=0,s=i.length;o<s;++o){var a=i[o];if(!a.complete){var l=t-a.start,u=a.duration>0?l/a.duration:1;u>=1?(a.complete=!0,u=1):r=!1;var c=a.easing(u);if(a.sourceCenter){var h=a.sourceCenter[0],p=a.sourceCenter[1],f=a.targetCenter[0],d=a.targetCenter[1];this.nextCenter_=a.targetCenter;var g=h+c*(f-h),_=p+c*(d-p);this.targetCenter_=[g,_]}if(a.sourceResolution&&a.targetResolution){var y=1===c?a.targetResolution:a.sourceResolution+c*(a.targetResolution-a.sourceResolution);if(a.anchor){var v=this.getViewportSize_(this.getRotation()),m=this.constraints_.resolution(y,0,v,!0);this.targetCenter_=this.calculateCenterZoom(m,a.anchor)}this.nextResolution_=a.targetResolution,this.targetResolution_=y,this.applyTargetState_(!0)}if(void 0!==a.sourceRotation&&void 0!==a.targetRotation){var x=1===c?(0,nt.$W)(a.targetRotation+Math.PI,2*Math.PI)-Math.PI:a.sourceRotation+c*(a.targetRotation-a.sourceRotation);if(a.anchor){var E=this.constraints_.rotation(x,!0);this.targetCenter_=this.calculateCenterRotate(E,a.anchor)}this.nextRotation_=a.targetRotation,this.targetRotation_=x}if(this.applyTargetState_(!0),e=!0,!a.complete)break}}if(r){this.animations_[n]=null,this.setHint($.Z.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var C=i[0].callback;C&>(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.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var n=e[0],i=e[1];return[Math.abs(n*Math.cos(t))+Math.abs(i*Math.sin(t)),Math.abs(n*Math.sin(t))+Math.abs(i*Math.cos(t))]}return e},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t?(0,et.toUserCoordinate)(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(J.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=this.calculateExtentInternal(t);return(0,et.toUserExtent)(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getViewportSizeMinusPadding_(),n=this.getCenterInternal();(0,U.h)(n,1);var i=this.getResolution();(0,U.h)(void 0!==i,2);var r=this.getRotation();return(0,U.h)(void 0!==r,3),(0,a.getForViewAndSize)(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(J.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal((0,et.fromUserExtent)(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var n=e||this.getViewportSizeMinusPadding_(),i=(0,a.getWidth)(t)/n[0],r=(0,a.getHeight)(t)/n[1];return Math.max(i,r)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.getConstrainedResolution(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(J.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,r=Math.log(n/i)/e;return function(t){return Math.log(n/t)/e/r}},e.prototype.getViewportSizeMinusPadding_=function(t){var e=this.getViewportSize_(t),n=this.padding_;return n&&(e=[e[0]-n[1]-n[3],e[1]-n[0]-n[2]]),e},e.prototype.getState=function(){var t=this.getProjection(),e=this.getResolution(),n=this.getRotation(),i=this.getCenterInternal(),r=this.padding_;if(r){var o=this.getViewportSizeMinusPadding_();i=yt(i,this.getViewportSize_(),[o[0]/2+r[3],o[1]/2+r[0]],e,n)}return{center:i.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,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,ot.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,nt.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,nt.uZ)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var n;if((0,U.h)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)){(0,U.h)(!(0,a.isEmpty)(t),25);var i=(0,et.fromUserExtent)(t,this.getProjection());n=(0,pt.oJ)(i)}else if(t.getType()===q.Z.CIRCLE)i=(0,et.fromUserExtent)(t.getExtent(),this.getProjection()),(n=(0,pt.oJ)(i)).rotate(this.getRotation(),(0,a.getCenter)(i));else{var r=(0,et.getUserProjection)();n=r?t.clone().transform(r,this.getProjection()):t}this.fitInternal(n,e)},e.prototype.rotatedExtentForGeometry=function(t){for(var e=this.getRotation(),n=Math.cos(e),i=Math.sin(-e),r=t.getFlatCoordinates(),o=t.getStride(),s=1/0,a=1/0,l=-1/0,u=-1/0,c=0,h=r.length;c<h;c+=o){var p=r[c]*n-r[c+1]*i,f=r[c]*i+r[c+1]*n;s=Math.min(s,p),a=Math.min(a,f),l=Math.max(l,p),u=Math.max(u,f)}return[s,a,l,u]},e.prototype.fitInternal=function(t,e){var n=e||{},r=n.size;r||(r=this.getViewportSizeMinusPadding_());var o,s=void 0!==n.padding?n.padding:[0,0,0,0],l=void 0!==n.nearest&&n.nearest;o=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0;var u=this.rotatedExtentForGeometry(t),c=this.getResolutionForExtentInternal(u,[r[0]-s[1]-s[3],r[1]-s[0]-s[2]]);c=isNaN(c)?o:Math.max(c,o),c=this.getConstrainedResolution(c,l?0:1);var h=this.getRotation(),p=Math.sin(h),f=Math.cos(h),d=(0,a.getCenter)(u);d[0]+=(s[1]-s[3])/2*c,d[1]+=(s[0]-s[2])/2*c;var g=d[0]*f-d[1]*p,_=d[1]*f+d[0]*p,y=this.getConstrainedCenter([g,_],c),v=n.callback?n.callback:i.Zn;void 0!==n.duration?this.animateInternal({resolution:c,center:y,duration:n.duration,easing:n.easing},v):(this.targetResolution_=c,this.targetCenter_=y,this.applyTargetState_(!1,!0),gt(v,!0))},e.prototype.centerOn=function(t,e,n){this.centerOnInternal((0,et.fromUserCoordinate)(t,this.getProjection()),e,n)},e.prototype.centerOnInternal=function(t,e,n){this.setCenterInternal(yt(t,e,n,this.getResolution(),this.getRotation()))},e.prototype.calculateCenterShift=function(t,e,n,i){var r,o=this.padding_;if(o&&t){var s=this.getViewportSizeMinusPadding_(-n),a=yt(t,i,[s[0]/2+o[3],s[1]/2+o[0]],e,n);r=[t[0]-a[0],t[1]-a[1]]}return r},e.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},e.prototype.adjustCenter=function(t){var e=(0,et.toUserCoordinate)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustCenterInternal=function(t){var e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustResolution=function(t,e){var n=e&&(0,et.fromUserCoordinate)(e,this.getProjection());this.adjustResolutionInternal(t,n)},e.prototype.adjustResolutionInternal=function(t,e){var n=this.getAnimating()||this.getInteracting(),i=this.getViewportSize_(this.getRotation()),r=this.constraints_.resolution(this.targetResolution_*t,0,i,n);e&&(this.targetCenter_=this.calculateCenterZoom(r,e)),this.targetResolution_*=t,this.applyTargetState_()},e.prototype.adjustZoom=function(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)},e.prototype.adjustRotation=function(t,e){e&&(e=(0,et.fromUserCoordinate)(e,this.getProjection())),this.adjustRotationInternal(t,e)},e.prototype.adjustRotationInternal=function(t,e){var n=this.getAnimating()||this.getInteracting(),i=this.constraints_.rotation(this.targetRotation_+t,n);e&&(this.targetCenter_=this.calculateCenterRotate(i,e)),this.targetRotation_+=t,this.applyTargetState_()},e.prototype.setCenter=function(t){this.setCenterInternal(t?(0,et.fromUserCoordinate)(t,this.getProjection()):t)},e.prototype.setCenterInternal=function(t){this.targetCenter_=t,this.applyTargetState_()},e.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},e.prototype.setResolution=function(t){this.targetResolution_=t,this.applyTargetState_()},e.prototype.setRotation=function(t){this.targetRotation_=t,this.applyTargetState_()},e.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},e.prototype.applyTargetState_=function(t,e){var n=this.getAnimating()||this.getInteracting()||e,i=this.constraints_.rotation(this.targetRotation_,n),r=this.getViewportSize_(i),o=this.constraints_.resolution(this.targetResolution_,0,r,n),s=this.constraints_.center(this.targetCenter_,o,r,n,this.calculateCenterShift(this.targetCenter_,o,i,r));this.get(J.ROTATION)!==i&&this.set(J.ROTATION,i),this.get(J.RESOLUTION)!==o&&(this.set(J.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),s&&this.get(J.CENTER)&&(0,c.fS)(this.get(J.CENTER),s)||this.set(J.CENTER,s),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0},e.prototype.resolveConstraints=function(t,e,n){var i=void 0!==t?t:200,r=e||0,o=this.constraints_.rotation(this.targetRotation_),s=this.getViewportSize_(o),a=this.constraints_.resolution(this.targetResolution_,r,s),l=this.constraints_.center(this.targetCenter_,a,s,!1,this.calculateCenterShift(this.targetCenter_,a,o,s));if(0===i&&!this.cancelAnchor_)return this.targetResolution_=a,this.targetRotation_=o,this.targetCenter_=l,void this.applyTargetState_();var u=n||(0===i?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===a&&this.getRotation()===o&&this.getCenterInternal()&&(0,c.fS)(this.getCenterInternal(),l)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:l,resolution:a,duration:i,easing:ht.Vv,anchor:u}))},e.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint($.Z.INTERACTING,1)},e.prototype.endInteraction=function(t,e,n){var i=n&&(0,et.fromUserCoordinate)(n,this.getProjection());this.endInteractionInternal(t,e,i)},e.prototype.endInteractionInternal=function(t,e,n){this.setHint($.Z.INTERACTING,-1),this.resolveConstraints(t,e,n)},e.prototype.getConstrainedCenter=function(t,e){var n=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),n)},e.prototype.getConstrainedZoom=function(t,e){var n=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(n,e))},e.prototype.getConstrainedResolution=function(t,e){var n=e||0,i=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,n,i)},e}(S.Z);function gt(t,e){setTimeout((function(){t(e)}),0)}function _t(t){return!(t.sourceCenter&&t.targetCenter&&!(0,c.fS)(t.sourceCenter,t.targetCenter))&&t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation}function yt(t,e,n,i,r){var o=Math.cos(-r),s=Math.sin(-r),a=t[0]*o-t[1]*s,l=t[1]*o+t[0]*s;return[(a+=(e[0]/2-n[0])*i)*o-(l+=(n[1]-e[1]/2)*i)*(s=-s),l*o+a*s]}const vt=dt;var mt=s(4307),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function Et(t){t instanceof u.Z?t.setMapInternal(null):t instanceof P.default&&t.getLayers().forEach(Et)}function Ct(t,e){if(t instanceof u.Z)t.setMapInternal(e);else if(t instanceof P.default)for(var n=t.getLayers().getArray(),i=0,r=n.length;i<r;++i)Ct(n[i],e)}const wt=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var i=function(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var n,i,r,o={},s=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new P.default({layers:t.layers});return o[j]=s,o[X]=t.target,o[Y]=t.view instanceof vt?t.view:new vt,void 0!==t.controls&&(Array.isArray(t.controls)?n=new O.Z(t.controls.slice()):((0,U.h)("function"==typeof t.controls.getArray,47),n=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?i=new O.Z(t.interactions.slice()):((0,U.h)("function"==typeof t.interactions.getArray,48),i=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?r=new O.Z(t.overlays.slice()):((0,U.h)("function"==typeof t.overlays.getArray,49),r=t.overlays):r=new O.Z,{controls:n,interactions:i,keyboardEventTarget:e,overlays:r,values:o}}(e);n.renderComplete_,n.loaded_=!0,n.boundHandleBrowserEvent_=n.handleBrowserEvent.bind(n),n.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,n.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:Z.MP,n.postRenderTimeoutHandle_,n.animationDelayKey_,n.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(n),n.coordinateToPixelTransform_=(0,o.Ue)(),n.pixelToCoordinateTransform_=(0,o.Ue)(),n.frameIndex_=0,n.frameState_=null,n.previousExtent_=null,n.viewPropertyListenerKey_=null,n.viewChangeListenerKey_=null,n.layerGroupPropertyListenerKeys_=null,n.viewport_=document.createElement("div"),n.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),n.viewport_.style.position="relative",n.viewport_.style.overflow="hidden",n.viewport_.style.width="100%",n.viewport_.style.height="100%",n.overlayContainer_=document.createElement("div"),n.overlayContainer_.style.position="absolute",n.overlayContainer_.style.zIndex="0",n.overlayContainer_.style.width="100%",n.overlayContainer_.style.height="100%",n.overlayContainer_.style.pointerEvents="none",n.overlayContainer_.className="ol-overlaycontainer",n.viewport_.appendChild(n.overlayContainer_),n.overlayContainerStopEvent_=document.createElement("div"),n.overlayContainerStopEvent_.style.position="absolute",n.overlayContainerStopEvent_.style.zIndex="0",n.overlayContainerStopEvent_.style.width="100%",n.overlayContainerStopEvent_.style.height="100%",n.overlayContainerStopEvent_.style.pointerEvents="none",n.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",n.viewport_.appendChild(n.overlayContainerStopEvent_),n.mapBrowserEventHandler_=null,n.moveTolerance_=e.moveTolerance,n.keyboardEventTarget_=i.keyboardEventTarget,n.targetChangeHandlerKeys_=null,n.controls=i.controls||new O.Z,n.interactions=i.interactions||new O.Z,n.overlays_=i.overlays,n.overlayIdIndex_={},n.renderer_=null,n.postRenderFunctions_=[],n.tileQueue_=new K(n.getTilePriority.bind(n),n.handleTileChange_.bind(n)),n.addChangeListener(j,n.handleLayerGroupChanged_),n.addChangeListener(Y,n.handleViewChanged_),n.addChangeListener(G,n.handleSizeChanged_),n.addChangeListener(X,n.handleTargetChanged_),n.setProperties(i.values);var r=n;return!e.view||e.view instanceof vt||e.view.then((function(t){r.setView(new vt(t))})),n.controls.addEventListener(b.Z.ADD,function(t){t.element.setMap(this)}.bind(n)),n.controls.addEventListener(b.Z.REMOVE,function(t){t.element.setMap(null)}.bind(n)),n.interactions.addEventListener(b.Z.ADD,function(t){t.element.setMap(this)}.bind(n)),n.interactions.addEventListener(b.Z.REMOVE,function(t){t.element.setMap(null)}.bind(n)),n.overlays_.addEventListener(b.Z.ADD,function(t){this.addOverlayInternal_(t.element)}.bind(n)),n.overlays_.addEventListener(b.Z.REMOVE,function(t){var e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)}.bind(n)),n.controls.forEach(function(t){t.setMap(this)}.bind(n)),n.interactions.forEach(function(t){t.setMap(this)}.bind(n)),n.overlays_.forEach(n.addOverlayInternal_.bind(n)),n}return xt(e,t),e.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},e.prototype.addControl=function(t){this.getControls().push(t)},e.prototype.addInteraction=function(t){this.getInteractions().push(t)},e.prototype.addLayer=function(t){this.getLayerGroup().getLayers().push(t)},e.prototype.handleLayerAdd_=function(t){Ct(t.layer,this)},e.prototype.addOverlay=function(t){this.getOverlays().push(t)},e.prototype.addOverlayInternal_=function(t){var e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)},e.prototype.disposeInternal=function(){this.setTarget(null),t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtPixel=function(t,e,n){if(this.frameState_&&this.renderer_){var r=this.getCoordinateFromPixelInternal(t),o=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,s=void 0!==n.layerFilter?n.layerFilter:i.uX,a=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(r,this.frameState_,o,a,e,null,s,null)}},e.prototype.getFeaturesAtPixel=function(t,e){var n=[];return this.forEachFeatureAtPixel(t,(function(t){n.push(t)}),e),n},e.prototype.getAllLayers=function(){var t=[];return function e(n){n.forEach((function(n){n instanceof P.default?e(n.getLayers()):t.push(n)}))}(this.getLayers()),t},e.prototype.forEachLayerAtPixel=function(t,e,n){if(this.frameState_&&this.renderer_){var r=n||{},o=void 0!==r.hitTolerance?r.hitTolerance:0,s=r.layerFilter||i.uX;return this.renderer_.forEachLayerAtPixel(t,this.frameState_,o,e,s)}},e.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_||!this.renderer_)return!1;var n=this.getCoordinateFromPixelInternal(t),r=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:i.uX,o=void 0!==e.hitTolerance?e.hitTolerance:0,s=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,o,s,r,null)},e.prototype.getEventCoordinate=function(t){return this.getCoordinateFromPixel(this.getEventPixel(t))},e.prototype.getEventCoordinateInternal=function(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))},e.prototype.getEventPixel=function(t){var e=this.viewport_.getBoundingClientRect(),n="changedTouches"in t?t.changedTouches[0]:t;return[n.clientX-e.left,n.clientY-e.top]},e.prototype.getTarget=function(){return this.get(X)},e.prototype.getTargetElement=function(){var t=this.getTarget();return void 0!==t?"string"==typeof t?document.getElementById(t):t:null},e.prototype.getCoordinateFromPixel=function(t){return(0,et.toUserCoordinate)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())},e.prototype.getCoordinateFromPixelInternal=function(t){var e=this.frameState_;return e?(0,o.nn)(e.pixelToCoordinateTransform,t.slice()):null},e.prototype.getControls=function(){return this.controls},e.prototype.getOverlays=function(){return this.overlays_},e.prototype.getOverlayById=function(t){var e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getInteractions=function(){return this.interactions},e.prototype.getLayerGroup=function(){return this.get(j)},e.prototype.setLayers=function(t){var e=this.getLayerGroup();if(t instanceof O.Z)e.setLayers(t);else{var n=e.getLayers();n.clear(),n.extend(t)}},e.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},e.prototype.getLoadingOrNotReady=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var i=t[e];if(i.visible){var r=i.layer.getRenderer();if(r&&!r.ready)return!0;var o=i.layer.getSource();if(o&&o.loading)return!0}}return!1},e.prototype.getPixelFromCoordinate=function(t){var e=(0,et.fromUserCoordinate)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)},e.prototype.getPixelFromCoordinateInternal=function(t){var e=this.frameState_;return e?(0,o.nn)(e.coordinateToPixelTransform,t.slice(0,2)):null},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.getSize=function(){return this.get(G)},e.prototype.getView=function(){return this.get(Y)},e.prototype.getViewport=function(){return this.viewport_},e.prototype.getOverlayContainer=function(){return this.overlayContainer_},e.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},e.prototype.getOwnerDocument=function(){var t=this.getTargetElement();return t?t.ownerDocument:document},e.prototype.getTilePriority=function(t,e,n,i){return function(t,e,n,i,r){if(!t||!(n in t.wantedTiles))return z;if(!t.wantedTiles[n][e.getKey()])return z;var o=t.viewState.center,s=i[0]-o[0],a=i[1]-o[1];return 65536*Math.log(r)+Math.sqrt(s*s+a*a)/r}(this.frameState_,t,e,n,i)},e.prototype.handleBrowserEvent=function(t,e){var n=e||t.type,i=new I.Z(n,this,t);this.handleMapBrowserEvent(i)},e.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){var e=t.originalEvent,n=e.type;if(n===M||n===R.Z.WHEEL||n===R.Z.KEYDOWN){var i=this.getOwnerDocument(),r=this.viewport_.getRootNode?this.viewport_.getRootNode():i,o=e.target;if(this.overlayContainerStopEvent_.contains(o)||!(r===i?i.documentElement:r).contains(o))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t))for(var s=this.getInteractions().getArray().slice(),a=s.length-1;a>=0;a--){var l=s[a];if(l.getMap()===this&&l.getActive()&&this.getTargetElement()&&(!l.handleEvent(t)||t.propagationStopped))break}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var n=this.maxTilesLoading_,i=n;if(t){var r=t.viewHints;if(r[$.Z.ANIMATING]||r[$.Z.INTERACTING]){var o=Date.now()-t.time>8;n=o?0:8,i=o?0:2}}e.getTilesLoading()<n&&(e.reprioritize(),e.loadMoreTiles(n,i))}t&&this.renderer_&&!t.animate&&(!0===this.renderComplete_?(this.hasListener(y.Z.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(y.Z.RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new k.Z(D.Z.LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new k.Z(D.Z.LOADSTART,this,t))));for(var s=this.postRenderFunctions_,a=0,l=s.length;a<l;++a)s[a](this,t);s.length=0},e.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},e.prototype.handleTargetChanged_=function(){if(this.mapBrowserEventHandler_){for(var t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)(0,E.bN)(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(R.Z.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(R.Z.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,(0,C.ZF)(this.viewport_)}var n=this.getTargetElement();if(n){for(var i in n.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new N(this,this.moveTolerance_),L.Z)this.mapBrowserEventHandler_.addEventListener(L.Z[i],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(R.Z.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(R.Z.WHEEL,this.boundHandleBrowserEvent_,!!Z.bM&&{passive:!1});var r=this.getOwnerDocument().defaultView,o=this.keyboardEventTarget_?this.keyboardEventTarget_:n;this.targetChangeHandlerKeys_=[(0,E.oL)(o,R.Z.KEYDOWN,this.handleBrowserEvent,this),(0,E.oL)(o,R.Z.KEYPRESS,this.handleBrowserEvent,this),(0,E.oL)(r,R.Z.RESIZE,this.updateSize,this)]}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()},e.prototype.handleTileChange_=function(){this.render()},e.prototype.handleViewPropertyChanged_=function(){this.render()},e.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&((0,E.bN)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,E.bN)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=(0,E.oL)(t,g.Z.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,E.oL)(t,R.Z.CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()},e.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(E.bN),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.handleLayerAdd_(new P.GroupEvent("addlayer",t)),this.layerGroupPropertyListenerKeys_=[(0,E.oL)(t,g.Z.PROPERTYCHANGE,this.render,this),(0,E.oL)(t,R.Z.CHANGE,this.render,this),(0,E.oL)(t,"addlayer",this.handleLayerAdd_,this),(0,E.oL)(t,"removelayer",this.handleLayerRemove_,this)]),this.render()},e.prototype.isRendered=function(){return!!this.frameState_},e.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},e.prototype.redrawText=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var i=t[e].layer;i.hasRenderer()&&i.getRenderer().handleFontsChanged()}},e.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},e.prototype.removeControl=function(t){return this.getControls().remove(t)},e.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},e.prototype.removeLayer=function(t){return this.getLayerGroup().getLayers().remove(t)},e.prototype.handleLayerRemove_=function(t){Et(t.layer)},e.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},e.prototype.renderFrame_=function(t){var e=this,n=this.getSize(),i=this.getView(),o=this.frameState_,s=null;if(void 0!==n&&(0,mt.py)(n)&&i&&i.isDef()){var l=i.getHints(this.frameState_?this.frameState_.viewHints:void 0),u=i.getState();if(s={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:(0,a.getForViewAndSize)(u.center,u.resolution,u.rotation,n),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:n,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:u,viewHints:l,wantedTiles:{},mapId:(0,r.sq)(this),renderTargets:{}},u.nextCenter&&u.nextResolution){var c=isNaN(u.nextRotation)?u.rotation:u.nextRotation;s.nextExtent=(0,a.getForViewAndSize)(u.nextCenter,u.nextResolution,c,n)}}this.frameState_=s,this.renderer_.renderFrame(s),s&&(s.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,s.postRenderFunctions),o&&(!this.previousExtent_||!(0,a.isEmpty)(this.previousExtent_)&&!(0,a.equals)(s.extent,this.previousExtent_))&&(this.dispatchEvent(new k.Z(D.Z.MOVESTART,this,o)),this.previousExtent_=(0,a.createOrUpdateEmpty)(this.previousExtent_)),this.previousExtent_&&!s.viewHints[$.Z.ANIMATING]&&!s.viewHints[$.Z.INTERACTING]&&!(0,a.equals)(s.extent,this.previousExtent_)&&(this.dispatchEvent(new k.Z(D.Z.MOVEEND,this,s)),(0,a.clone)(s.extent,this.previousExtent_))),this.dispatchEvent(new k.Z(D.Z.POSTRENDER,this,s)),this.renderComplete_=this.hasListener(D.Z.LOADSTART)||this.hasListener(D.Z.LOADEND)||this.hasListener(y.Z.RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((function(){e.postRenderTimeoutHandle_=void 0,e.handlePostRender()}),0))},e.prototype.setLayerGroup=function(t){var e=this.getLayerGroup();e&&this.handleLayerRemove_(new P.GroupEvent("removelayer",e)),this.set(j,t)},e.prototype.setSize=function(t){this.set(G,t)},e.prototype.setTarget=function(t){this.set(X,t)},e.prototype.setView=function(t){if(!t||t instanceof vt)this.set(Y,t);else{this.set(Y,new vt);var e=this;t.then((function(t){e.setView(new vt(t))}))}},e.prototype.updateSize=function(){var t=this.getTargetElement(),e=void 0;if(t){var n=getComputedStyle(t),i=t.offsetWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight)-parseFloat(n.borderRightWidth),r=t.offsetHeight-parseFloat(n.borderTopWidth)-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom)-parseFloat(n.borderBottomWidth);isNaN(i)||isNaN(r)||(e=[i,r],!(0,mt.py)(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&console.warn("No map visible because the map container's width or height are 0."))}this.setSize(e),this.updateViewportSize_()},e.prototype.updateViewportSize_=function(){var t=this.getView();if(t){var e=void 0,n=getComputedStyle(this.viewport_);n.width&&n.height&&(e=[parseInt(n.width,10),parseInt(n.height,10)]),t.setViewportSize(e)}},e}(S.Z);var Tt=s(8775),St=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const Ot=function(t){function e(e){var n=this,i=e||{};(n=t.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this).ulElement_=document.createElement("ul"),n.collapsed_=void 0===i.collapsed||i.collapsed,n.userCollapsed_=n.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.expandClassName?i.expandClassName:r+"-expand",a=void 0!==i.collapseLabel?i.collapseLabel:"›",l=void 0!==i.collapseClassName?i.collapseClassName:r+"-collapse";"string"==typeof a?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=a,n.collapseLabel_.className=l):n.collapseLabel_=a;var u=void 0!==i.label?i.label:"i";"string"==typeof u?(n.label_=document.createElement("span"),n.label_.textContent=u,n.label_.className=s):n.label_=u;var c=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_;n.toggleButton_=document.createElement("button"),n.toggleButton_.setAttribute("type","button"),n.toggleButton_.setAttribute("aria-expanded",String(!n.collapsed_)),n.toggleButton_.title=o,n.toggleButton_.appendChild(c),n.toggleButton_.addEventListener(R.Z.CLICK,n.handleClick_.bind(n),!1);var h=r+" "+m.XV+" "+m.hg+(n.collapsed_&&n.collapsible_?" "+m.hN:"")+(n.collapsible_?"":" ol-uncollapsible"),p=n.element;return p.className=h,p.appendChild(n.toggleButton_),p.appendChild(n.ulElement_),n.renderedAttributions_=[],n.renderedVisible_=!0,n}return St(e,t),e.prototype.collectSourceAttributions_=function(t){for(var e={},n=[],i=!0,r=t.layerStatesArray,o=0,s=r.length;o<s;++o){var a=r[o];if((0,u.j)(a,t.viewState)){var l=a.layer.getSource();if(l){var c=l.getAttributions();if(c){var h=c(t);if(h)if(i=i&&!1!==l.getAttributionsCollapsible(),Array.isArray(h))for(var p=0,f=h.length;p<f;++p)h[p]in e||(n.push(h[p]),e[h[p]]=!0);else h in e||(n.push(h),e[h]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(i),n},e.prototype.updateElement_=function(t){if(t){var e=this.collectSourceAttributions_(t),n=e.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!(0,ot.fS)(e,this.renderedAttributions_)){(0,C.ep)(this.ulElement_);for(var i=0,r=e.length;i<r;++i){var o=document.createElement("li");o.innerHTML=e[i],this.ulElement_.appendChild(o)}this.renderedAttributions_=e}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_},e.prototype.handleToggle_=function(){this.element.classList.toggle(m.hN),this.collapsed_?(0,C.$H)(this.collapseLabel_,this.label_):(0,C.$H)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.render=function(t){this.updateElement_(t.frameState)},e}(Tt.default);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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Rt=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this;var r=void 0!==i.className?i.className:"ol-rotate",o=void 0!==i.label?i.label:"⇧",s=void 0!==i.compassClassName?i.compassClassName:"ol-compass";n.label_=null,"string"==typeof o?(n.label_=document.createElement("span"),n.label_.className=s,n.label_.textContent=o):(n.label_=o,n.label_.classList.add(s));var a=i.tipLabel?i.tipLabel:"Reset rotation",l=document.createElement("button");l.className=r+"-reset",l.setAttribute("type","button"),l.title=a,l.appendChild(n.label_),l.addEventListener(R.Z.CLICK,n.handleClick_.bind(n),!1);var u=r+" "+m.XV+" "+m.hg,c=n.element;return c.className=u,c.appendChild(l),n.callResetNorth_=i.resetNorth?i.resetNorth:void 0,n.duration_=void 0!==i.duration?i.duration:250,n.autoHide_=void 0===i.autoHide||i.autoHide,n.rotation_=void 0,n.autoHide_&&n.element.classList.add(m.oj),n}return bt(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},e.prototype.resetNorth_=function(){var t=this.getMap().getView();if(t){var e=t.getRotation();void 0!==e&&(this.duration_>0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:ht.Vv}):t.setRotation(0))}},e.prototype.render=function(t){var e=t.frameState;if(e){var n=e.viewState.rotation;if(n!=this.rotation_){var i="rotate("+n+"rad)";if(this.autoHide_){var r=this.element.classList.contains(m.oj);r||0!==n?r&&0!==n&&this.element.classList.remove(m.oj):this.element.classList.add(m.oj)}this.label_.style.transform=i}this.rotation_=n}},e}(Tt.default);const Pt=Rt;var 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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");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=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.zoomInClassName?i.zoomInClassName:r+"-in",a=void 0!==i.zoomOutClassName?i.zoomOutClassName:r+"-out",l=void 0!==i.zoomInLabel?i.zoomInLabel:"+",u=void 0!==i.zoomOutLabel?i.zoomOutLabel:"–",c=void 0!==i.zoomInTipLabel?i.zoomInTipLabel:"Zoom in",h=void 0!==i.zoomOutTipLabel?i.zoomOutTipLabel:"Zoom out",p=document.createElement("button");p.className=s,p.setAttribute("type","button"),p.title=c,p.appendChild("string"==typeof l?document.createTextNode(l):l),p.addEventListener(R.Z.CLICK,n.handleClick_.bind(n,o),!1);var f=document.createElement("button");f.className=a,f.setAttribute("type","button"),f.title=h,f.appendChild("string"==typeof u?document.createTextNode(u):u),f.addEventListener(R.Z.CLICK,n.handleClick_.bind(n,-o),!1);var d=r+" "+m.XV+" "+m.hg,g=n.element;return g.className=d,g.appendChild(p),g.appendChild(f),n.duration_=void 0!==i.duration?i.duration:250,n}return It(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:ht.Vv})):e.setZoom(i)}}},e}(Tt.default);function Mt(t){var e=t||{},n=new O.Z;return(void 0===e.zoom||e.zoom)&&n.push(new Lt(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&n.push(new Pt(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&n.push(new Ot(e.attributionOptions)),n}var At=s(7182),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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const Ft=function(t){function e(e){var n=t.call(this)||this,i=e||{};return n.delta_=i.delta?i.delta:1,n.duration_=void 0!==i.duration?i.duration:250,n}return Zt(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==L.Z.DBLCLICK){var n=t.originalEvent,i=t.map,r=t.coordinate,o=n.shiftKey?-this.delta_:this.delta_,s=i.getView();(0,At.zoomByDelta)(s,o,r,this.duration_),n.preventDefault(),e=!0}return!e},e}(At.default);var Nt=s(4515),kt=s(8683),Dt=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");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=t.call(this,{stopDown:i.Dv})||this,r=e||{};n.kinetic_=r.kinetic,n.lastCentroid=null,n.lastPointersCount_,n.panning_=!1;var o=r.condition?r.condition:(0,kt.$6)(kt.rM,kt.Xp);return n.condition_=r.onFocusOnly?(0,kt.$6)(kt.yZ,o):o,n.noKinetic_=!1,n}return Dt(e,t),e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,n=(0,Nt.S)(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,c.bA)(i,r.getResolution()),(0,c.U1)(i,r.getRotation()),r.adjustCenterInternal(i)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=e.length,t.originalEvent.preventDefault()},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:ht.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}(Nt.Z);var Gt=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const Xt=function(t){function e(e){var n=this,r=e||{};return(n=t.call(this,{stopDown:i.Dv})||this).condition_=r.condition?r.condition:kt.aj,n.lastAngle_=void 0,n.duration_=void 0!==r.duration?r.duration:250,n}return Gt(e,t),e.prototype.handleDragEvent=function(t){if((0,kt.QL)(t)){var e=t.map,n=e.getView();if(n.getConstraints().rotation!==ut){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!(0,kt.QL)(t)||(t.map.getView().endInteraction(this.duration_),!1)},e.prototype.handleDownEvent=function(t){return!(!(0,kt.QL)(t)||!(0,kt.v8)(t)||!this.condition_(t)||(t.map.getView().beginInteraction(),this.lastAngle_=void 0,0))},e}(Nt.Z);var Yt=s(291),Ut=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const Wt=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_.style.pointerEvents="auto",n.element_.className="ol-box "+e,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return Ut(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}(n.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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Bt=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}(Yt.ZP);const Vt=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var i=e||{};return n.box_=new Wt(i.className||"ol-dragbox"),n.minArea_=void 0!==i.minArea?i.minArea:64,i.onBoxEnd&&(n.onBoxEnd=i.onBoxEnd),n.startPixel_=null,n.condition_=i.condition?i.condition:kt.v8,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){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new Bt("boxdrag",t.coordinate,t))},e.prototype.handleUpEvent=function(t){this.box_.setMap(null);var e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new Bt(e?"boxend":"boxcancel",t.coordinate,t)),!1},e.prototype.handleDownEvent=function(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new Bt("boxstart",t.coordinate,t)),!0)},e.prototype.onBoxEnd=function(t){},e}(Nt.Z);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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const qt=function(t){function e(e){var n=this,i=e||{},r=i.condition?i.condition:kt.vY;return(n=t.call(this,{condition:r,className:i.className||"ol-dragzoom",minArea:i.minArea})||this).duration_=void 0!==i.duration?i.duration:200,n.out_=void 0!==i.out&&i.out,n}return Kt(e,t),e.prototype.onBoxEnd=function(t){var e=this.getMap().getView(),n=this.getGeometry();if(this.out_){var i=e.rotatedExtentForGeometry(n),r=e.getResolutionForExtentInternal(i),o=e.getResolution()/r;(n=n.clone()).scale(o*o)}e.fitInternal(n,{duration:this.duration_,easing:ht.Vv})},e}(Vt);var Ht=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const $t=function(t){function e(e){var n=t.call(this)||this,i=e||{};return n.defaultCondition_=function(t){return(0,kt.rM)(t)&&(0,kt.TN)(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 Ht(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==R.Z.KEYDOWN){var n=t.originalEvent,i=n.keyCode;if(this.condition_(t)&&(40==i||37==i||39==i||38==i)){var r=t.map.getView(),o=r.getResolution()*this.pixelDelta_,s=0,a=0;40==i?a=-o:37==i?s=-o:39==i?s=o:a=o;var l=[s,a];(0,c.U1)(l,r.getRotation()),(0,At.pan)(r,l,this.duration_),n.preventDefault(),e=!0}}return!e},e}(At.default);var Jt=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const Qt=function(t){function e(e){var n=t.call(this)||this,i=e||{};return n.condition_=i.condition?i.condition:kt.TN,n.delta_=i.delta?i.delta:1,n.duration_=void 0!==i.duration?i.duration:100,n}return Jt(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==R.Z.KEYDOWN||t.type==R.Z.KEYPRESS){var n=t.originalEvent,i=n.charCode;if(this.condition_(t)&&(i=="+".charCodeAt(0)||i=="-".charCodeAt(0))){var r=t.map,o=i=="+".charCodeAt(0)?this.delta_:-this.delta_,s=r.getView();(0,At.zoomByDelta)(s,o,void 0,this.duration_),n.preventDefault(),e=!0}}return!e},e}(At.default),te=function(){function t(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return t.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},t.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},t.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;for(var n=e-3;n>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 ee=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ne="trackpad";const ie=function(t){function e(e){var n=this,i=e||{};(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.constrainResolution_=void 0!==i.constrainResolution&&i.constrainResolution;var r=i.condition?i.condition:kt.Bx;return n.condition_=i.onFocusOnly?(0,kt.$6)(kt.yZ,r):r,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.deltaPerZoom_=300,n}return ee(e,t),e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0,this.getMap().getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;if(t.type!==R.Z.WHEEL)return!0;var e,n=t.map,i=t.originalEvent;if(i.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==R.Z.WHEEL&&(e=i.deltaY,Z.V&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=Z.MP),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)),0===e)return!1;this.lastDelta_=e;var r=Date.now();void 0===this.startTime_&&(this.startTime_=r),(!this.mode_||r-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(e)<4?ne:"wheel");var o=n.getView();if(this.mode_===ne&&!o.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-e/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=r,!1;this.totalDelta_+=e;var 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();var n=-(0,nt.uZ)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),(0,At.zoomByDelta)(e,n,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}(At.default);var re=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const oe=function(t){function e(e){var n=this,r=e||{},o=r;return o.stopDown||(o.stopDown=i.Dv),(n=t.call(this,o)||this).anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=void 0!==r.threshold?r.threshold:.3,n.duration_=void 0!==r.duration?r.duration:250,n}return re(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!==ut){var l=s.getViewport().getBoundingClientRect(),u=(0,Nt.S)(this.targetPointers);u[0]-=l.left,u[1]-=l.top,this.anchor_=s.getCoordinateFromPixelInternal(u),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}(Nt.Z);var se=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const ae=function(t){function e(e){var n=this,r=e||{},o=r;return o.stopDown||(o.stopDown=i.Dv),(n=t.call(this,o)||this).anchor_=null,n.duration_=void 0!==r.duration?r.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return se(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,l=a.getView();1!=e&&(this.lastScaleDelta_=e);var u=a.getViewport().getBoundingClientRect(),c=(0,Nt.S)(this.targetPointers);c[0]-=u.left,c[1]-=u.top,this.anchor_=a.getCoordinateFromPixelInternal(c),a.render(),l.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}(Nt.Z);function le(t){var e=t||{},n=new O.Z,i=new te(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&n.push(new Xt),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&n.push(new Ft({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&n.push(new jt({onFocusOnly:e.onFocusOnly,kinetic:i})),(void 0===e.pinchRotate||e.pinchRotate)&&n.push(new oe),(void 0===e.pinchZoom||e.pinchZoom)&&n.push(new ae({duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(n.push(new $t),n.push(new Qt({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&n.push(new ie({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&n.push(new qt({duration:e.zoomDuration})),n}var ue=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ce=function(t){function e(e){return(e=(0,W.f0)({},e)).controls||(e.controls=Mt()),e.interactions||(e.interactions=le({onFocusOnly:!0})),t.call(this,e)||this}return ue(e,t),e.prototype.createRenderer=function(){return new T(this)},e}(wt);const he=ce,pe="preload",fe="useInterimTilesOnError";var de=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const ge=function(t){function e(e){var n=this,i=e||{},r=(0,W.f0)({},i);return delete r.preload,delete r.useInterimTilesOnError,(n=t.call(this,r)||this).on,n.once,n.un,n.setPreload(void 0!==i.preload?i.preload:0),n.setUseInterimTilesOnError(void 0===i.useInterimTilesOnError||i.useInterimTilesOnError),n}return de(e,t),e.prototype.getPreload=function(){return this.get(pe)},e.prototype.setPreload=function(t){this.set(pe,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(fe)},e.prototype.setUseInterimTilesOnError=function(t){this.set(fe,t)},e.prototype.getData=function(e){return t.prototype.getData.call(this,e)},e}(u.Z);var _e=s(8015),ye=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const ve=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.key="",r.transition_=void 0===o.transition?250:o.transition,r.transitionStarts_={},r.interpolate=!!o.interpolate,r}return ye(e,t),e.prototype.changed=function(){this.dispatchEvent(R.Z.CHANGE)},e.prototype.release=function(){},e.prototype.getKey=function(){return this.key+"/"+this.tileCoord},e.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(2==t.getState())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(2==t.getState()){t.interimTile=null;break}1==t.getState()?e=t:0==t.getState()?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(3!==this.state&&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,ht.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 me=s(9807),xe=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const Ee=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.key=i,a.image_=new Image,null!==r&&(a.image_.crossOrigin=r),a.unlisten_=null,a.tileLoadFunction_=o,a}return xe(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=2,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){var t;this.state=3,this.unlistenImage_(),this.image_=((t=(0,C.E4)(1,1)).fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=2:this.state=4,this.unlistenImage_(),this.changed()},e.prototype.load=function(){3==this.state&&(this.state=0,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),0==this.state&&(this.state=1,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,me.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(ve),Ce=function(){function t(t,e,n,i,r,o){this.sourceProj_=t,this.targetProj_=e;var s={},l=(0,et.getTransform)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return s[e]||(s[e]=l(t)),s[e]},this.maxSourceExtent_=i,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&(0,a.getWidth)(i)==(0,a.getWidth)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,a.getWidth)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,a.getWidth)(this.targetProj_.getExtent()):null;var u=(0,a.getTopLeft)(n),c=(0,a.getTopRight)(n),h=(0,a.getBottomRight)(n),p=(0,a.getBottomLeft)(n),f=this.transformInv_(u),d=this.transformInv_(c),g=this.transformInv_(h),_=this.transformInv_(p),y=10+(o?Math.max(0,Math.ceil((0,nt.k3)((0,a.getArea)(n)/(o*o*256*256)))):0);if(this.addQuad_(u,c,h,p,f,d,g,_,y),this.wrapsXInSource_){var v=1/0;this.triangles_.forEach((function(t,e,n){v=Math.min(v,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])-v>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]-v>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-v>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-v>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<this.sourceWorldWidth_/2&&(t.source=e)}}.bind(this))}s={}}return t.prototype.addTriangle_=function(t,e,n,i,r,o){this.triangles_.push({source:[i,r,o],target:[t,e,n]})},t.prototype.addQuad_=function(t,e,n,i,r,o,s,l,u){var c=(0,a.boundingExtent)([r,o,s,l]),h=this.sourceWorldWidth_?(0,a.getWidth)(c)/this.sourceWorldWidth_:null,p=this.sourceWorldWidth_,f=this.sourceProj_.canWrapX()&&h>.5&&h<1,d=!1;if(u>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var g=(0,a.boundingExtent)([t,e,n,i]);d=(0,a.getWidth)(g)/this.targetWorldWidth_>.25||d}!f&&this.sourceProj_.isGlobal()&&h&&(d=h>.25||d)}if(!(!d&&this.maxSourceExtent_&&isFinite(c[0])&&isFinite(c[1])&&isFinite(c[2])&&isFinite(c[3]))||(0,a.intersects)(c,this.maxSourceExtent_)){var _=0;if(!(d||isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(l[0])&&isFinite(l[1])))if(u>0)d=!0;else if(1!=(_=(isFinite(r[0])&&isFinite(r[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(s[0])&&isFinite(s[1])?0:2)+(isFinite(l[0])&&isFinite(l[1])?0:1))&&2!=_&&4!=_&&8!=_)return;if(u>0){if(!d){var y=[(t[0]+n[0])/2,(t[1]+n[1])/2],v=this.transformInv_(y),m=void 0;m=f?((0,nt.$W)(r[0],p)+(0,nt.$W)(s[0],p))/2-(0,nt.$W)(v[0],p):(r[0]+s[0])/2-v[0];var x=(r[1]+s[1])/2-v[1];d=m*m+x*x>this.errorThresholdSquared_}if(d){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){var E=[(e[0]+n[0])/2,(e[1]+n[1])/2],C=this.transformInv_(E),w=[(i[0]+t[0])/2,(i[1]+t[1])/2],T=this.transformInv_(w);this.addQuad_(t,e,E,w,r,o,C,T,u-1),this.addQuad_(w,E,n,i,T,C,s,l,u-1)}else{var S=[(t[0]+e[0])/2,(t[1]+e[1])/2],O=this.transformInv_(S),b=[(n[0]+i[0])/2,(n[1]+i[1])/2],R=this.transformInv_(b);this.addQuad_(t,S,b,i,r,O,R,l,u-1),this.addQuad_(S,e,n,b,O,o,s,R,u-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&_)&&this.addTriangle_(t,n,i,r,s,l),0==(14&_)&&this.addTriangle_(t,n,e,r,s,o),_&&(0==(13&_)&&this.addTriangle_(e,i,t,o,l,r),0==(7&_)&&this.addTriangle_(e,i,n,o,l,s))}},t.prototype.calculateSourceExtent=function(){var t=(0,a.createEmpty)();return this.triangles_.forEach((function(e,n,i){var r=e.source;(0,a.extendCoordinate)(t,r[0]),(0,a.extendCoordinate)(t,r[1]),(0,a.extendCoordinate)(t,r[2])})),t},t.prototype.getTriangles=function(){return this.triangles_},t}();var we,Te={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},Se={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0};function Oe(t,e,n,i,r){t.beginPath(),t.moveTo(0,0),t.lineTo(e,n),t.lineTo(i,r),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,i)+1,Math.max(n,r)),t.restore()}function be(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function Re(t,e,n,i){var r=(0,et.transform)(n,e,t),o=(0,et.getPointResolution)(e,i,n),s=e.getMetersPerUnit();void 0!==s&&(o*=s);var l=t.getMetersPerUnit();void 0!==l&&(o/=l);var u=t.getExtent();if(!u||(0,a.containsCoordinate)(u,r)){var c=(0,et.getPointResolution)(t,o,r)/o;isFinite(c)&&c>0&&(o/=c)}return o}var Pe=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const Ie=function(t){function e(e,n,i,r,o,s,l,u,c,h,p,f){var d=t.call(this,o,0,{interpolate:!!f})||this;d.renderEdges_=void 0!==p&&p,d.pixelRatio_=l,d.gutter_=u,d.canvas_=null,d.sourceTileGrid_=n,d.targetTileGrid_=r,d.wrappedTileCoord_=s||o,d.sourceTiles_=[],d.sourcesListenerKeys_=null,d.sourceZ_=0;var g=r.getTileCoordExtent(d.wrappedTileCoord_),_=d.targetTileGrid_.getExtent(),y=d.sourceTileGrid_.getExtent(),v=_?(0,a.getIntersection)(g,_):g;if(0===(0,a.getArea)(v))return d.state=4,d;var m=e.getExtent();m&&(y=y?(0,a.getIntersection)(y,m):m);var x=r.getResolution(d.wrappedTileCoord_[0]),E=function(t,e,n,i){var r=(0,a.getCenter)(n),o=Re(t,e,r,i);return(!isFinite(o)||o<=0)&&(0,a.forEachCorner)(n,(function(n){return o=Re(t,e,n,i),isFinite(o)&&o>0})),o}(e,i,v,x);if(!isFinite(E)||E<=0)return d.state=4,d;var C=void 0!==h?h:.5;if(d.triangulation_=new Ce(e,i,v,y,E*C,x),0===d.triangulation_.getTriangles().length)return d.state=4,d;d.sourceZ_=n.getZForResolution(E);var w=d.triangulation_.calculateSourceExtent();if(y&&(e.canWrapX()?(w[1]=(0,nt.uZ)(w[1],y[1],y[3]),w[3]=(0,nt.uZ)(w[3],y[1],y[3])):w=(0,a.getIntersection)(w,y)),(0,a.getArea)(w)){for(var T=n.getTileRangeForExtentAndZ(w,d.sourceZ_),S=T.minX;S<=T.maxX;S++)for(var O=T.minY;O<=T.maxY;O++){var b=c(d.sourceZ_,S,O,l);b&&d.sourceTiles_.push(b)}0===d.sourceTiles_.length&&(d.state=4)}else d.state=4;return d}return Pe(e,t),e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,n,i){e&&2==e.getState()&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=3;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],o=this.targetTileGrid_.getResolution(e),s=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(t,e,n,i,r,o,s,l,u,c,h,p){var f=(0,C.E4)(Math.round(n*t),Math.round(n*e));if(p||(0,W.f0)(f,Te),0===u.length)return f.canvas;function d(t){return Math.round(t*n)/n}f.scale(n,n),f.globalCompositeOperation="lighter";var g=(0,a.createEmpty)();u.forEach((function(t,e,n){(0,a.extend)(g,t.extent)}));var _=(0,a.getWidth)(g),y=(0,a.getHeight)(g),v=(0,C.E4)(Math.round(n*_/i),Math.round(n*y/i));p||(0,W.f0)(v,Te);var m=n/i;u.forEach((function(t,e,n){var i=t.extent[0]-g[0],r=-(t.extent[3]-g[3]),o=(0,a.getWidth)(t.extent),s=(0,a.getHeight)(t.extent);t.image.width>0&&t.image.height>0&&v.drawImage(t.image,c,c,t.image.width-2*c,t.image.height-2*c,i*m,r*m,o*m,s*m)}));var x=(0,a.getTopLeft)(s);return l.getTriangles().forEach((function(t,e,r){var s=t.source,a=t.target,l=s[0][0],u=s[0][1],c=s[1][0],h=s[1][1],_=s[2][0],y=s[2][1],m=d((a[0][0]-x[0])/o),E=d(-(a[0][1]-x[1])/o),C=d((a[1][0]-x[0])/o),w=d(-(a[1][1]-x[1])/o),T=d((a[2][0]-x[0])/o),S=d(-(a[2][1]-x[1])/o),O=l,b=u;l=0,u=0;var R=[[c-=O,h-=b,0,0,C-m],[_-=O,y-=b,0,0,T-m],[0,0,c,h,w-E],[0,0,_,y,S-E]],P=(0,nt.SV)(R);if(P){if(f.save(),f.beginPath(),function(){if(void 0===we){var t=document.createElement("canvas").getContext("2d");t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",Oe(t,4,5,4,0),Oe(t,4,5,0,5);var e=t.getImageData(0,0,3,3).data;we=be(e,0)||be(e,4)||be(e,8)}return we}()||!p){f.moveTo(C,w);for(var I=m-C,L=E-w,M=0;M<4;M++)f.lineTo(C+d((M+1)*I/4),w+d(M*L/3)),3!=M&&f.lineTo(C+d((M+1)*I/4),w+d((M+1)*L/3));f.lineTo(T,S)}else f.moveTo(C,w),f.lineTo(m,E),f.lineTo(T,S);f.clip(),f.transform(P[0],P[2],P[1],P[3],m,E),f.translate(g[0]-O,g[3]-b),f.scale(i/n,-i/n),f.drawImage(v.canvas,0,0),f.restore()}})),h&&(f.save(),f.globalCompositeOperation="source-over",f.strokeStyle="black",f.lineWidth=1,l.getTriangles().forEach((function(t,e,n){var i=t.target,r=(i[0][0]-x[0])/o,s=-(i[0][1]-x[1])/o,a=(i[1][0]-x[0])/o,l=-(i[1][1]-x[1])/o,u=(i[2][0]-x[0])/o,c=-(i[2][1]-x[1])/o;f.beginPath(),f.moveTo(a,l),f.lineTo(r,s),f.lineTo(u,c),f.closePath(),f.stroke()})),f.restore()),f.canvas}(i,r,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),o,l,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=2}this.changed()},e.prototype.load=function(){if(0==this.state){this.state=1,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,n,i){var r=e.getState();if(0==r||1==r){t++;var o=(0,E.oL)(e,R.Z.CHANGE,(function(n){var i=e.getState();2!=i&&3!=i&&4!=i||((0,E.bN)(o),0==--t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(o)}}.bind(this)),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(t,e,n){0==t.getState()&&t.load()}))}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(E.bN),this.sourcesListenerKeys_=null},e}(ve);var Le=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.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)},t.prototype.getHeight=function(){return this.maxY-this.minY+1},t.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},t.prototype.getWidth=function(){return this.maxX-this.minX+1},t.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},t}();function Me(t,e,n,i,r){return void 0!==r?(r.minX=t,r.maxX=e,r.minY=n,r.maxY=i,r):new Le(t,e,n,i)}const Ae=Le;var Ze=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Fe=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,a.createEmpty)(),n.tmpTileRange_=new Ae(0,0,0,0),n}return Ze(e,t),e.prototype.isDrawableTile=function(t){var e=this.getLayer(),n=t.getState(),i=e.getUseInterimTilesOnError();return 2==n||4==n||3==n&&!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 3==a.getState()&&(s.getUseInterimTilesOnError()?s.getPreload()>0&&(this.newTiles_=!0):a.setState(2)),this.isDrawableTile(a)||(a=a.getInterimTile()),a},e.prototype.getData=function(t){var e=this.frameState;if(!e)return null;var n=this.getLayer(),i=(0,o.nn)(e.pixelToCoordinateTransform,t.slice()),r=n.getExtent();if(r&&!(0,a.containsCoordinate)(r,i))return null;for(var s=e.pixelRatio,l=e.viewState.projection,u=e.viewState,c=n.getRenderSource(),h=c.getTileGridForProjection(u.projection),p=c.getTilePixelRatio(e.pixelRatio),f=h.getZForResolution(u.resolution);f>=h.getMinZoom();--f){var d=h.getTileCoordForCoordAndZ(i,f),g=c.getTile(f,d[1],d[2],s,l);if(!(g instanceof Ee||g instanceof Ie))return null;if(2===g.getState()){var _=h.getOrigin(f),y=(0,mt.Pq)(h.getTileSize(f)),v=h.getResolution(f),m=Math.floor(p*((i[0]-_[0])/v-d[1]*y[0])),x=Math.floor(p*((_[1]-i[1])/v-d[2]*y[1]));return this.getImageData(g.getImage(),m,x)}}return null},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,s=i.projection,l=i.resolution,u=i.center,c=i.rotation,h=t.pixelRatio,p=this.getLayer(),f=p.getSource(),d=f.getRevision(),g=f.getTileGridForProjection(s),_=g.getZForResolution(l,f.zDirection),y=g.getResolution(_),v=t.extent,x=n.extent&&(0,et.fromUserExtent)(n.extent,s);x&&(v=(0,a.getIntersection)(v,(0,et.fromUserExtent)(n.extent,s)));var E=f.getTilePixelRatio(h),C=Math.round(t.size[0]*E),w=Math.round(t.size[1]*E);if(c){var T=Math.round(Math.sqrt(C*C+w*w));C=T,w=T}var S=y*C/2/E,O=y*w/2/E,b=[u[0]-S,u[1]-O,u[0]+S,u[1]+O],R=g.getTileRangeForExtentAndZ(v,_),P={};P[_]={};var I=this.createLoadedTileFinder(f,s,P),L=this.tmpExtent,M=this.tmpTileRange_;this.newTiles_=!1;for(var A=R.minX;A<=R.maxX;++A)for(var Z=R.minY;Z<=R.maxY;++Z){var F=this.getTile(_,A,Z,t);if(this.isDrawableTile(F)){var N=(0,r.sq)(this);if(2==F.getState()){P[_][F.tileCoord.toString()]=F;var k=F.inTransition(N);this.newTiles_||!k&&-1!==this.renderedTiles.indexOf(F)||(this.newTiles_=!0)}if(1===F.getAlpha(N,t.time))continue}var D=g.getTileCoordChildTileRange(F.tileCoord,M,L),j=!1;D&&(j=I(_+1,D)),j||g.forEachTileCoordParentTileRange(F.tileCoord,I,M,L)}var G=y/l;(0,o.qC)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/E,1/E,c,-C/2,-w/2);var X=(0,o.BB)(this.pixelTransform);this.useContainer(e,X,n.opacity,this.getBackground(t));var Y=this.context,U=Y.canvas;(0,o.nb)(this.inversePixelTransform,this.pixelTransform),(0,o.qC)(this.tempTransform,C/2,w/2,G,G,0,-C/2,-w/2),U.width!=C||U.height!=w?(U.width=C,U.height=w):this.containerReused||Y.clearRect(0,0,C,w),x&&this.clipUnrotated(Y,t,x),f.getInterpolate()||(0,W.f0)(Y,Te),this.preRender(Y,t),this.renderedTiles.length=0;var z,B,V,K=Object.keys(P).map(Number);K.sort(ot.kK),1!==n.opacity||this.containerReused&&!f.getOpaque(t.viewState.projection)?(z=[],B=[]):K=K.reverse();for(var q=K.length-1;q>=0;--q){var H=K[q],$=f.getTilePixelSize(H,h,s),J=g.getResolution(H)/y,Q=$[0]*J*G,tt=$[1]*J*G,nt=g.getTileCoordForCoordAndZ((0,a.getTopLeft)(b),H),it=g.getTileCoordExtent(nt),rt=(0,o.nn)(this.tempTransform,[E*(it[0]-b[0])/y,E*(b[3]-it[3])/y]),st=E*f.getGutterForProjection(s),at=P[H];for(var lt in at){var ut=(F=at[lt]).tileCoord,ct=nt[1]-ut[1],ht=Math.round(rt[0]-(ct-1)*Q),pt=nt[2]-ut[2],ft=Math.round(rt[1]-(pt-1)*tt),dt=ht-(A=Math.round(rt[0]-ct*Q)),gt=ft-(Z=Math.round(rt[1]-pt*tt)),_t=_===H,yt=!1;if(!(k=_t&&1!==F.getAlpha((0,r.sq)(this),t.time)))if(z){V=[A,Z,A+dt,Z,A+dt,Z+gt,A,Z+gt];for(var vt=0,mt=z.length;vt<mt;++vt)if(_!==H&&H<B[vt]){var xt=z[vt];(0,a.intersects)([A,Z,A+dt,Z+gt],[xt[0],xt[3],xt[4],xt[7]])&&(yt||(Y.save(),yt=!0),Y.beginPath(),Y.moveTo(V[0],V[1]),Y.lineTo(V[2],V[3]),Y.lineTo(V[4],V[5]),Y.lineTo(V[6],V[7]),Y.moveTo(xt[6],xt[7]),Y.lineTo(xt[4],xt[5]),Y.lineTo(xt[2],xt[3]),Y.lineTo(xt[0],xt[1]),Y.clip())}z.push(V),B.push(H)}else Y.clearRect(A,Z,dt,gt);this.drawTileImage(F,t,A,Z,dt,gt,st,_t),z&&!k?(yt&&Y.restore(),this.renderedTiles.unshift(F)):this.renderedTiles.push(F),this.updateUsedTiles(t.usedTiles,f,F)}}this.renderedRevision=d,this.renderedResolution=y,this.extentChanged=!this.renderedExtent_||!(0,a.equals)(this.renderedExtent_,b),this.renderedExtent_=b,this.renderedPixelRatio=h,this.renderedProjection=s,this.manageTilePyramid(t,f,g,h,s,v,_,p.getPreload()),this.scheduleExpireCache(t,f),this.postRender(Y,t),n.extent&&Y.restore(),(0,W.f0)(Y,Se),X!==U.style.transform&&(U.style.transform=X);var Et=(0,m.Xy)(n.opacity),Ct=this.container;return Et!==Ct.style.opacity&&(Ct.style.opacity=Et),this.container},e.prototype.drawTileImage=function(t,e,n,i,o,s,a,l){var u=this.getTileImage(t);if(u){var c=(0,r.sq)(this),h=l?t.getAlpha(c,e.time):1,p=h!==this.context.globalAlpha;p&&(this.context.save(),this.context.globalAlpha=h),this.context.drawImage(u,a,a,u.width-2*a,u.height-2*a,n,i,o,s),p&&this.context.restore(),1!==h?e.animate=!0:l&&t.endTransition(c)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getTileImage=function(t){return t.getImage()},e.prototype.scheduleExpireCache=function(t,e){if(e.canExpireCache()){var n=function(t,e,n){var i=(0,r.sq)(t);i in n.usedTiles&&t.expireCache(n.viewState.projection,n.usedTiles[i])}.bind(null,e);t.postRenderFunctions.push(n)}},e.prototype.updateUsedTiles=function(t,e,n){var i=(0,r.sq)(e);i in t||(t[i]={}),t[i][n.getKey()]=!0},e.prototype.manageTilePyramid=function(t,e,n,i,o,s,a,l,u){var c=(0,r.sq)(e);c in t.wantedTiles||(t.wantedTiles[c]={});var h,p,f,d,g,_,y=t.wantedTiles[c],v=t.tileQueue,m=0;for(_=n.getMinZoom();_<=a;++_)for(p=n.getTileRangeForExtentAndZ(s,_,p),f=n.getResolution(_),d=p.minX;d<=p.maxX;++d)for(g=p.minY;g<=p.maxY;++g)a-_<=l?(++m,0==(h=e.getTile(_,d,g,i,o)).getState()&&(y[h.getKey()]=!0,v.isKeyQueued(h.getKey())||v.enqueue([h,c,n.getTileCoordCenter(h.tileCoord),f])),void 0!==u&&u(h)):e.useTile(_,d,g,o);e.updateCacheSize(m,o)},e}(_e.Z);const Ne=Fe;var ke=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const De=function(t){function e(e){return t.call(this,e)||this}return ke(e,t),e.prototype.createRenderer=function(){return new Ne(this)},e}(ge),je=function(){function t(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return t.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},t.prototype.expireCache=function(t){for(;this.canExpireCache();)this.pop()},t.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},t.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},t.prototype.forEach=function(t){for(var e=this.oldest_;e;)t(e.value_,e.key_,this),e=e.newer},t.prototype.get=function(t,e){var n=this.entries_[t];return(0,U.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_},t.prototype.remove=function(t){var e=this.entries_[t];return(0,U.h)(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},t.prototype.getCount=function(){return this.count_},t.prototype.getKeys=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.key_;return e},t.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},t.prototype.peekLast=function(){return this.oldest_.value_},t.prototype.peekLastKey=function(){return this.oldest_.key_},t.prototype.peekFirstKey=function(){return this.newest_.key_},t.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},t.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},t.prototype.set=function(t,e){(0,U.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_},t.prototype.setSize=function(t){this.highWaterMark=t},t}();function Ge(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function Xe(t,e,n){return t+"/"+e+"/"+n}function Ye(t){return Xe(t[0],t[1],t[2])}function Ue(t){return(t[1]<<t[0])+t[2]}var We=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const ze=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return We(e,t),e.prototype.expireCache=function(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().release()},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=this.peekFirstKey().split("/").map(Number)[0];this.forEach(function(e){e.tileCoord[0]!==t&&(this.remove(Ye(e.tileCoord)),e.release())}.bind(this))}},e}(je);var Be=s(8458),Ve=s(9600),Ke=[0,0,0];const qe=function(){function t(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,(0,U.h)((0,ot.pT)(this.resolutions_,(function(t,e){return e-t}),!0),17),!t.origins)for(var n=0,i=this.resolutions_.length-1;n<i;++n)if(e){if(this.resolutions_[n]/this.resolutions_[n+1]!==e){e=void 0;break}}else e=this.resolutions_[n]/this.resolutions_[n+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,(0,U.h)(this.origins_.length==this.resolutions_.length,20));var r=t.extent;void 0===r||this.origin_||this.origins_||(this.origin_=(0,a.getTopLeft)(r)),(0,U.h)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,(0,U.h)(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:tt,(0,U.h)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==r?r:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map((function(t,e){var n=new Ae(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(r){var i=this.getTileRangeForExtentAndZ(r,e);n.minX=Math.max(i.minX,n.minX),n.maxX=Math.min(i.maxX,n.maxX),n.minY=Math.max(i.minY,n.minY),n.maxY=Math.min(i.maxY,n.maxY)}return n}),this):r&&this.calculateTileRanges_(r)}return t.prototype.forEachTileCoord=function(t,e,n){for(var i=this.getTileRangeForExtentAndZ(t,e),r=i.minX,o=i.maxX;r<=o;++r)for(var s=i.minY,a=i.maxY;s<=a;++s)n([e,r,s])},t.prototype.forEachTileCoordParentTileRange=function(t,e,n,i){var r,o,s=null,a=t[0]-1;for(2===this.zoomFactor_?(r=t[1],o=t[2]):s=this.getTileCoordExtent(t,i);a>=this.minZoom;){if(e(a,2===this.zoomFactor_?Me(r=Math.floor(r/2),r,o=Math.floor(o/2),o,n):this.getTileRangeForExtentAndZ(s,a,n)))return!0;--a}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]<this.maxZoom){if(2===this.zoomFactor_){var i=2*t[1],r=2*t[2];return Me(i,i+1,r,r+1,e)}var o=this.getTileCoordExtent(t,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(o,t[0]+1,e)}return null},t.prototype.getTileRangeForTileCoordAndZ=function(t,e,n){if(e>this.maxZoom||e<this.minZoom)return null;var i=t[0],r=t[1],o=t[2];if(e===i)return Me(r,o,r,o,n);if(this.zoomFactor_){var s=Math.pow(this.zoomFactor_,e-i),a=Math.floor(r*s),l=Math.floor(o*s);return e<i?Me(a,a,l,l,n):Me(a,Math.floor(s*(r+1))-1,l,Math.floor(s*(o+1))-1,n)}var u=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(u,e,n)},t.prototype.getTileRangeExtent=function(t,e,n){var i=this.getOrigin(t),r=this.getResolution(t),o=(0,mt.Pq)(this.getTileSize(t),this.tmpSize_),s=i[0]+e.minX*o[0]*r,l=i[0]+(e.maxX+1)*o[0]*r,u=i[1]+e.minY*o[1]*r,c=i[1]+(e.maxY+1)*o[1]*r;return(0,a.createOrUpdate)(s,u,l,c,n)},t.prototype.getTileRangeForExtentAndZ=function(t,e,n){var i=Ke;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,i);var r=i[1],o=i[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,i),Me(r,i[1],o,i[2],n)},t.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),n=this.getResolution(t[0]),i=(0,mt.Pq)(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*i[0]*n,e[1]-(t[2]+.5)*i[1]*n]},t.prototype.getTileCoordExtent=function(t,e){var n=this.getOrigin(t[0]),i=this.getResolution(t[0]),r=(0,mt.Pq)(this.getTileSize(t[0]),this.tmpSize_),o=n[0]+t[1]*r[0]*i,s=n[1]-(t[2]+1)*r[1]*i,l=o+r[0]*i,u=s+r[1]*i;return(0,a.createOrUpdate)(o,s,l,u,e)},t.prototype.getTileCoordForCoordAndResolution=function(t,e,n){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,n)},t.prototype.getTileCoordForXYAndResolution_=function(t,e,n,i,r){var o=this.getZForResolution(n),s=n/this.getResolution(o),a=this.getOrigin(o),l=(0,mt.Pq)(this.getTileSize(o),this.tmpSize_),u=s*(t-a[0])/n/l[0],c=s*(a[1]-e)/n/l[1];return i?(u=(0,nt.mD)(u,5)-1,c=(0,nt.mD)(c,5)-1):(u=(0,nt.GW)(u,5),c=(0,nt.GW)(c,5)),Ge(o,u,c,r)},t.prototype.getTileCoordForXYAndZ_=function(t,e,n,i,r){var o=this.getOrigin(n),s=this.getResolution(n),a=(0,mt.Pq)(this.getTileSize(n),this.tmpSize_),l=(t-o[0])/s/a[0],u=(o[1]-e)/s/a[1];return i?(l=(0,nt.mD)(l,5)-1,u=(0,nt.mD)(u,5)-1):(l=(0,nt.GW)(l,5),u=(0,nt.GW)(u,5)),Ge(n,l,u,r)},t.prototype.getTileCoordForCoordAndZ=function(t,e,n){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,n)},t.prototype.getTileCoordResolution=function(t){return this.resolutions_[t[0]]},t.prototype.getTileSize=function(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]},t.prototype.getFullTileRange=function(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null},t.prototype.getZForResolution=function(t,e){var n=(0,ot.h7)(this.resolutions_,t,e||0);return(0,nt.uZ)(n,this.minZoom,this.maxZoom)},t.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,n=new Array(e),i=this.minZoom;i<e;++i)n[i]=this.getTileRangeForExtentAndZ(t,i);this.fullTileRanges_=n},t}();function He(t){var e=t.getDefaultTileGrid();return e||(e=function(t,e,n,i){return function(t,e,n,i){var r=Ve.Z.TOP_LEFT,o=$e(t,undefined,n);return new qe({extent:t,origin:(0,a.getCorner)(t,r),resolutions:o,tileSize:n})}(Je(t),0,void 0)}(t),t.setDefaultTileGrid(e)),e}function $e(t,e,n,i){for(var r=void 0!==e?e:Q,o=(0,a.getHeight)(t),s=(0,a.getWidth)(t),l=(0,mt.Pq)(void 0!==n?n:tt),u=i>0?i:Math.max(s/l[0],o/l[1]),c=r+1,h=new Array(c),p=0;p<c;++p)h[p]=u/Math.pow(2,p);return h}function Je(t){var e=(t=(0,et.get)(t)).getExtent();if(!e){var n=180*et.METERS_PER_UNIT[H.ZP.DEGREES]/t.getMetersPerUnit();e=(0,a.createOrUpdate)(-n,-n,n,n)}return e}var Qe=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),tn=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,interpolate:e.interpolate})||this;return n.on,n.once,n.un,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,n.tileGrid&&(0,mt.Pq)(n.tileGrid.getTileSize(n.tileGrid.getMinZoom()),[256,256]),n.tileCache=new ze(e.cacheSize||0),n.tmpSize=[0,0],n.key_=e.key||"",n.tileOptions={transition:e.transition,interpolate:e.interpolate},n.zDirection=e.zDirection?e.zDirection:0,n}return Qe(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 o,s,a,l=!0,u=n.minX;u<=n.maxX;++u)for(var c=n.minY;c<=n.maxY;++c)s=Xe(e,u,c),a=!1,r.containsKey(s)&&(a=2===(o=r.get(s)).getState())&&(a=!1!==i(o)),a||(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?this.tileGrid.getResolutions():null},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:He(t)},e.prototype.getTileCacheForProjection=function(t){return(0,U.h)((0,et.equivalent)(this.getProjection(),t),68),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,mt.Pq)(i.getTileSize(t),this.tmpSize);return 1==r?o:(0,mt.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=function(t,e,n){var i=e[0],r=t.getTileCoordCenter(e),o=Je(n);if((0,a.containsCoordinate)(o,r))return e;var s=(0,a.getWidth)(o),l=Math.ceil((o[0]-r[0])/s);return r[0]+=s*l,t.getTileCoordForCoordAndZ(r,i)}(i,t,n)),function(t,e){var n=t[0],i=t[1],r=t[2];if(e.getMinZoom()>n||n>e.getMaxZoom())return!1;var o=e.getFullTileRange(n);return!o||o.containsXY(i,r)}(t,i)?t:null},e.prototype.clear=function(){this.tileCache.clear()},e.prototype.refresh=function(){this.clear(),t.prototype.refresh.call(this)},e.prototype.updateCacheSize=function(t,e){var n=this.getTileCacheForProjection(e);t>n.highWaterMark&&(n.highWaterMark=t)},e.prototype.useTile=function(t,e,n,i){},e}(Be.Z),en=function(t){function e(e,n){var i=t.call(this,e)||this;return i.tile=n,i}return Qe(e,t),e}(Yt.ZP);const nn=tn;function rn(t,e){var n=/\{z\}/g,i=/\{x\}/g,r=/\{y\}/g,o=/\{-y\}/g;return function(s,a,l){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,U.h)(n,55),(n.getHeight()-s[2]-1).toString()})):void 0}}var on=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const sn=function(t){function e(n){var i=t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,opaque:n.opaque,projection:n.projection,state:n.state,tileGrid:n.tileGrid,tilePixelRatio:n.tilePixelRatio,wrapX:n.wrapX,transition:n.transition,interpolate:n.interpolate,key:n.key,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this;return i.generateTileUrlFunction_=i.tileUrlFunction===e.prototype.tileUrlFunction,i.tileLoadFunction=n.tileLoadFunction,n.tileUrlFunction&&(i.tileUrlFunction=n.tileUrlFunction),i.urls=null,n.urls?i.setUrls(n.urls):n.url&&i.setUrl(n.url),i.tileLoadingKeys_={},i}return on(e,t),e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var e,n=t.target,i=(0,r.sq)(n),o=n.getState();1==o?(this.tileLoadingKeys_[i]=!0,e="tileloadstart"):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],e=3==o?"tileloaderror":2==o?"tileloadend":void 0),null!=e&&this.dispatchEvent(new en(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;++r)i[r]=rn(t[r],e);return function(t){return 1===t.length?t[0]:function(e,n,i){if(e){var r=Ue(e),o=(0,nt.$W)(r,t.length);return t[o](e,n,i)}}}(i)}(t,this.tileGrid),e):this.setKey(e)},e.prototype.tileUrlFunction=function(t,e,n){},e.prototype.useTile=function(t,e,n){var i=Xe(t,e,n);this.tileCache.containsKey(i)&&this.tileCache.get(i)},e}(nn);var an=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ln=function(t){function e(e){var n=this,i=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(i=e.interpolate),(n=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:un,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:i,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this).crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,n.tileClass=void 0!==e.tileClass?e.tileClass:Ee,n.tileCacheForProjection={},n.tileGridForProjection={},n.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,n.renderReprojectionEdges_=!1,n}return an(e,t),e.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},e.prototype.expireCache=function(t,e){var n=this.getTileCacheForProjection(t);for(var i in this.tileCache.expireCache(this.tileCache==n?e:{}),this.tileCacheForProjection){var r=this.tileCacheForProjection[i];r.expireCache(r==n?e:{})}},e.prototype.getGutterForProjection=function(t){return this.getProjection()&&t&&!(0,et.equivalent)(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getKey=function(){var e=t.prototype.getKey.call(this);return this.getInterpolate()||(e+=":disable-interpolation"),e},e.prototype.getOpaque=function(e){return!(this.getProjection()&&e&&!(0,et.equivalent)(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(t){var e=this.getProjection();if(!this.tileGrid||e&&!(0,et.equivalent)(e,t)){var n=(0,r.sq)(t);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=He(t)),this.tileGridForProjection[n]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();if(!e||(0,et.equivalent)(e,t))return this.tileCache;var n=(0,r.sq)(t);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new ze(this.tileCache.highWaterMark)),this.tileCacheForProjection[n]},e.prototype.createTile_=function(t,e,n,i,r,o){var s=[t,e,n],a=this.getTileCoordForTileUrlFunction(s,r),l=a?this.tileUrlFunction(a,i,r):void 0,u=new this.tileClass(s,void 0!==l?0:4,void 0!==l?l:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return u.key=o,u.addEventListener(R.Z.CHANGE,this.handleTileChange.bind(this)),u},e.prototype.getTile=function(t,e,n,i,r){var o=this.getProjection();if(o&&r&&!(0,et.equivalent)(o,r)){var s=this.getTileCacheForProjection(r),a=[t,e,n],l=void 0,u=Ye(a);s.containsKey(u)&&(l=s.get(u));var c=this.getKey();if(l&&l.key==c)return l;var h=this.getTileGridForProjection(o),p=this.getTileGridForProjection(r),f=this.getTileCoordForTileUrlFunction(a,r),d=new Ie(o,h,r,p,a,f,this.getTilePixelRatio(i),this.getGutter(),function(t,e,n,i){return this.getTileInternal(t,e,n,i,o)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return d.key=c,l?(d.interimTile=l,d.refreshInterimChain(),s.replace(u,d)):s.set(u,d),d}return this.getTileInternal(t,e,n,i,o||r)},e.prototype.getTileInternal=function(t,e,n,i,r){var o=null,s=Xe(t,e,n),a=this.getKey();if(this.tileCache.containsKey(s)){if((o=this.tileCache.get(s)).key!=a){var l=o;o=this.createTile_(t,e,n,i,r,a),0==l.getState()?o.interimTile=l.interimTile:o.interimTile=l,o.refreshInterimChain(),this.tileCache.replace(s,o)}}else o=this.createTile_(t,e,n,i,r,a),this.tileCache.set(s,o);return o},e.prototype.setRenderReprojectionEdges=function(t){if(this.renderReprojectionEdges_!=t){for(var e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,e){var n=(0,et.get)(t);if(n){var i=(0,r.sq)(n);i in this.tileGridForProjection||(this.tileGridForProjection[i]=e)}},e}(sn);function un(t,e){t.getImage().src=e}const cn=ln;var hn=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),pn=function(t){function e(e){var n=e||{},i=void 0===n.imageSmoothing||n.imageSmoothing;void 0!==n.interpolate&&(i=n.interpolate);var r=void 0!==n.projection?n.projection:"EPSG:3857",o=void 0!==n.tileGrid?n.tileGrid:function(t){var e=t||{},n=e.extent||(0,et.get)("EPSG:3857").getExtent(),i={extent:n,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:$e(n,e.maxZoom,e.tileSize,e.maxResolution)};return new qe(i)}({extent:Je(r),maxResolution:n.maxResolution,maxZoom:n.maxZoom,minZoom:n.minZoom,tileSize:n.tileSize});return t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:i,opaque:n.opaque,projection:r,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:o,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 hn(e,t),e}(cn);const fn=pn;var dn=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const gn=function(t){function e(e){var n,i=e||{},r=void 0===i.imageSmoothing||i.imageSmoothing;void 0!==i.interpolate&&(r=i.interpolate),n=void 0!==i.attributions?i.attributions:['© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.'];var o=void 0!==i.crossOrigin?i.crossOrigin:"anonymous",s=void 0!==i.url?i.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";return t.call(this,{attributions:n,attributionsCollapsible:!1,cacheSize:i.cacheSize,crossOrigin:o,interpolate:r,maxZoom:void 0!==i.maxZoom?i.maxZoom:19,opaque:void 0===i.opaque||i.opaque,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileLoadFunction:i.tileLoadFunction,transition:i.transition,url:s,wrapX:i.wrapX,zDirection:i.zDirection})||this}return dn(e,t),e}(fn);var _n=s(6421),yn=s.n(_n),vn=s(3965),mn=s.n(vn),xn=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),En=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];function Cn(t){var e=t.body;return!!(e.webkitRequestFullscreen||e.msRequestFullscreen&&t.msFullscreenEnabled||e.requestFullscreen&&t.fullscreenEnabled)}function wn(t){return!!(t.webkitIsFullScreen||t.msFullscreenElement||t.fullscreenElement)}function Tn(t){t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}const Sn=function(t){function e(e){var n=this,i=e||{};(n=t.call(this,{element:document.createElement("div"),target:i.target})||this).on,n.once,n.un,n.keys_=void 0!==i.keys&&i.keys,n.source_=i.source,n.isInFullscreen_=!1,n.boundHandleMapTargetChange_=n.handleMapTargetChange_.bind(n),n.cssClassName_=void 0!==i.className?i.className:"ol-full-screen",n.documentListeners_=[],n.activeClassName_=void 0!==i.activeClassName?i.activeClassName.split(" "):[n.cssClassName_+"-true"],n.inactiveClassName_=void 0!==i.inactiveClassName?i.inactiveClassName.split(" "):[n.cssClassName_+"-false"];var r=void 0!==i.label?i.label:"⤢";n.labelNode_="string"==typeof r?document.createTextNode(r):r;var o=void 0!==i.labelActive?i.labelActive:"×";n.labelActiveNode_="string"==typeof o?document.createTextNode(o):o;var s=i.tipLabel?i.tipLabel:"Toggle full-screen";return n.button_=document.createElement("button"),n.button_.title=s,n.button_.setAttribute("type","button"),n.button_.appendChild(n.labelNode_),n.button_.addEventListener(R.Z.CLICK,n.handleClick_.bind(n),!1),n.setClassName_(n.button_,n.isInFullscreen_),n.element.className="".concat(n.cssClassName_," ").concat(m.XV," ").concat(m.hg),n.element.appendChild(n.button_),n}return xn(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),this.handleFullScreen_()},e.prototype.handleFullScreen_=function(){var t=this.getMap();if(t){var e=t.getOwnerDocument();if(Cn(e))if(wn(e))!function(t){t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen&&t.webkitExitFullscreen()}(e);else{var n;n=this.source_?"string"==typeof this.source_?e.getElementById(this.source_):this.source_:t.getTargetElement(),this.keys_?function(t){t.webkitRequestFullscreen?t.webkitRequestFullscreen():Tn(t)}(n):Tn(n)}}},e.prototype.handleFullScreenChange_=function(){var t=this.getMap();if(t){var e=this.isInFullscreen_;this.isInFullscreen_=wn(t.getOwnerDocument()),e!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?((0,C.$H)(this.labelActiveNode_,this.labelNode_),this.dispatchEvent("enterfullscreen")):((0,C.$H)(this.labelNode_,this.labelActiveNode_),this.dispatchEvent("leavefullscreen")),t.updateSize())}},e.prototype.setClassName_=function(t,e){var n,i,r,o;e?((n=t.classList).remove.apply(n,this.inactiveClassName_),(i=t.classList).add.apply(i,this.activeClassName_)):((r=t.classList).remove.apply(r,this.activeClassName_),(o=t.classList).add.apply(o,this.inactiveClassName_))},e.prototype.setMap=function(e){var n=this.getMap();n&&n.removeChangeListener(X,this.boundHandleMapTargetChange_),t.prototype.setMap.call(this,e),this.handleMapTargetChange_(),e&&e.addChangeListener(X,this.boundHandleMapTargetChange_)},e.prototype.handleMapTargetChange_=function(){for(var t=this.documentListeners_,e=0,n=t.length;e<n;++e)(0,E.bN)(t[e]);t.length=0;var i=this.getMap();if(i){var r=i.getOwnerDocument();for(Cn(r)?this.element.classList.remove(m.Qi):this.element.classList.add(m.Qi),e=0,n=En.length;e<n;++e)t.push((0,E.oL)(r,En[e],this.handleFullScreenChange_,this));this.handleFullScreenChange_()}},e}(Tt.default);var On=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),bn="units",Rn="degrees",Pn="metric",In=[1,2,5],Ln=25.4/.28,Mn=function(t){function e(e){var n=this,i=e||{},r=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).on,n.once,n.un,n.innerElement_=document.createElement("div"),n.innerElement_.className=r+"-inner",n.element.className=r+" "+m.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.addChangeListener(bn,n.handleUnitsChanged_),n.setUnits(i.units||Pn),n.scaleBar_=i.bar||!1,n.scaleBarSteps_=i.steps||4,n.scaleBarText_=i.text||!1,n.dpi_=i.dpi||void 0,n}return On(e,t),e.prototype.getUnits=function(){return this.get(bn)},e.prototype.handleUnitsChanged_=function(){this.updateElement_()},e.prototype.setUnits=function(t){this.set(bn,t)},e.prototype.setDpi=function(t){this.dpi_=t},e.prototype.updateElement_=function(){var t=this.viewState_;if(t){var e=t.center,n=t.projection,i=this.getUnits(),r=i==Rn?H.ZP.DEGREES:H.ZP.METERS,o=(0,et.getPointResolution)(n,t.resolution,e,r),s=this.minWidth_*(this.dpi_||Ln)/Ln,a=s*o,l="";if(i==Rn){var u=et.METERS_PER_UNIT[H.ZP.DEGREES];(a*=u)<u/60?(l="″",o*=3600):a<u?(l="′",o*=60):l="°"}else"imperial"==i?a<.9144?(l="in",o/=.0254):a<1609.344?(l="ft",o/=.3048):(l="mi",o/=1609.344):"nautical"==i?(o/=1852,l="nm"):i==Pn?a<.001?(l="μm",o*=1e6):a<1?(l="mm",o*=1e3):a<1e3?l="m":(l="km",o/=1e3):"us"==i?a<.9144?(l="in",o*=39.37):a<1609.344?(l="ft",o/=.30480061):(l="mi",o/=1609.3472):(0,U.h)(!1,33);for(var c,h,p,f,d=3*Math.floor(Math.log(s*o)/Math.log(10));;){p=Math.floor(d/3);var g=Math.pow(10,p);if(c=In[(d%3+3)%3]*g,h=Math.round(c/o),isNaN(h))return this.element.style.display="none",void(this.renderedVisible_=!1);if(h>=s)break;++d}f=this.scaleBar_?this.createScaleBar(h,c,l):c.toFixed(p<0?-p:0)+" "+l,this.renderedHTML_!=f&&(this.innerElement_.innerHTML=f,this.renderedHTML_=f),this.renderedWidth_!=h&&(this.innerElement_.style.width=h+"px",this.renderedWidth_=h),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.scaleBarSteps_;a++)0===a&&r.push(this.createMarker("absolute",a)),r.push('<div><div class="ol-scale-singlebar" style="width: '+o+"px;background-color: "+s+';"></div>'+this.createMarker("relative",a)+(a%2==0||2===this.scaleBarSteps_?this.createStepText(a,t,!1,e,n):"")+"</div>"),a===this.scaleBarSteps_-1&&r.push(this.createStepText(a+1,t,!0,e,n)),s="#ffffff"===s?"#000000":"#ffffff";return'<div style="display: flex;">'+(this.scaleBarText_?'<div class="ol-scale-text" style="width: '+t+'px;">'+i+"</div>":"")+r.join("")+"</div>"},e.prototype.createMarker=function(t,e){return'<div class="ol-scale-step-marker" style="position: '+t+";top: "+("absolute"===t?3:-10)+'px;"></div>'},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'<div class="ol-scale-step-text" style="margin-left: '+(0===t?-3:e/this.scaleBarSteps_*-1)+"px;text-align: "+(0===t?"left":"center")+"; min-width: "+(0===t?0:e/this.scaleBarSteps_*2)+"px;left: "+(n?e+"px":"unset")+';">'+o+"</div>"},e.prototype.getScaleForResolution=function(){var t=(0,et.getPointResolution)(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,H.ZP.METERS),e=this.dpi_||Ln;return parseFloat(t.toString())*(1e3/25.4)*e},e.prototype.render=function(t){var e=t.frameState;this.viewState_=e?e.viewState:null,this.updateElement_()},e}(Tt.default);const An=Mn;var Zn=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();const Fn=function(t){function e(e){var n=this,i=e||{};return(n=t.call(this,i)||this).condition_=i.condition?i.condition:kt.vY,n.lastAngle_=void 0,n.lastMagnitude_=void 0,n.lastScaleDelta_=0,n.duration_=void 0!==i.duration?i.duration:400,n}return Zn(e,t),e.prototype.handleDragEvent=function(t){if((0,kt.QL)(t)){var e=t.map,n=e.getSize(),i=t.pixel,r=i[0]-n[0]/2,o=n[1]/2-i[1],s=Math.atan2(o,r),a=Math.sqrt(r*r+o*o),l=e.getView();if(void 0!==this.lastAngle_){var u=this.lastAngle_-s;l.adjustRotationInternal(u)}this.lastAngle_=s,void 0!==this.lastMagnitude_&&l.adjustResolutionInternal(this.lastMagnitude_/a),void 0!==this.lastMagnitude_&&(this.lastScaleDelta_=this.lastMagnitude_/a),this.lastMagnitude_=a}},e.prototype.handleUpEvent=function(t){if(!(0,kt.QL)(t))return!0;var e=t.map.getView(),n=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,n),this.lastScaleDelta_=0,!1},e.prototype.handleDownEvent=function(t){return!!(0,kt.QL)(t)&&!!this.condition_(t)&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0)},e}(Nt.Z);var Nn=s(1090),kn=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Dn="accuracy",jn="accuracyGeometry",Gn="altitude",Xn="altitudeAccuracy",Yn="heading",Un="position",Wn="projection",zn="speed",Bn="tracking",Vn="trackingOptions",Kn=function(t){function e(e){var n=t.call(this,R.Z.ERROR)||this;return n.code=e.code,n.message=e.message,n}return kn(e,t),e}(Yt.ZP),qn=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var i=e||{};return n.position_=null,n.transform_=et.identityTransform,n.watchId_=void 0,n.addChangeListener(Wn,n.handleProjectionChanged_),n.addChangeListener(Bn,n.handleTrackingChanged_),void 0!==i.projection&&n.setProjection(i.projection),void 0!==i.trackingOptions&&n.setTrackingOptions(i.trackingOptions),n.setTracking(void 0!==i.tracking&&i.tracking),n}return kn(e,t),e.prototype.disposeInternal=function(){this.setTracking(!1),t.prototype.disposeInternal.call(this)},e.prototype.handleProjectionChanged_=function(){var t=this.getProjection();t&&(this.transform_=(0,et.getTransformFromProjections)((0,et.get)("EPSG:4326"),t),this.position_&&this.set(Un,this.transform_(this.position_)))},e.prototype.handleTrackingChanged_=function(){if("geolocation"in navigator){var t=this.getTracking();t&&void 0===this.watchId_?this.watchId_=navigator.geolocation.watchPosition(this.positionChange_.bind(this),this.positionError_.bind(this),this.getTrackingOptions()):t||void 0===this.watchId_||(navigator.geolocation.clearWatch(this.watchId_),this.watchId_=void 0)}},e.prototype.positionChange_=function(t){var e=t.coords;this.set(Dn,e.accuracy),this.set(Gn,null===e.altitude?void 0:e.altitude),this.set(Xn,null===e.altitudeAccuracy?void 0:e.altitudeAccuracy),this.set(Yn,null===e.heading?void 0:(0,nt.Yr)(e.heading)),this.position_?(this.position_[0]=e.longitude,this.position_[1]=e.latitude):this.position_=[e.longitude,e.latitude];var n=this.transform_(this.position_);this.set(Un,n),this.set(zn,null===e.speed?void 0:e.speed);var i=(0,pt.iu)(this.position_,e.accuracy);i.applyTransform(this.transform_),this.set(jn,i),this.changed()},e.prototype.positionError_=function(t){this.dispatchEvent(new Kn(t))},e.prototype.getAccuracy=function(){return this.get(Dn)},e.prototype.getAccuracyGeometry=function(){return this.get(jn)||null},e.prototype.getAltitude=function(){return this.get(Gn)},e.prototype.getAltitudeAccuracy=function(){return this.get(Xn)},e.prototype.getHeading=function(){return this.get(Yn)},e.prototype.getPosition=function(){return this.get(Un)},e.prototype.getProjection=function(){return this.get(Wn)},e.prototype.getSpeed=function(){return this.get(zn)},e.prototype.getTracking=function(){return this.get(Bn)},e.prototype.getTrackingOptions=function(){return this.get(Vn)},e.prototype.setProjection=function(t){this.set(Wn,(0,et.get)(t))},e.prototype.setTracking=function(t){this.set(Bn,t)},e.prototype.setTrackingOptions=function(t){this.set(Vn,t)},e}(S.Z);const Hn=qn;var $n=s(188),Jn=s(9271),Qn=s(933);class ti extends Tt.default{constructor(t){const e=t||{};super({element:document.createElement("div"),target:e.target});const n=e.className||"ol-geolocate",i=e.label||'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7.94-7.94H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"/></svg>',r=e.tooltip||"Geolocate",o=document.createElement("button");o.innerHTML=i,o.title=r,o.className=n,o.type="button",o.addEventListener(R.Z.CLICK,this.handleClick.bind(this),!1);const{element:s}=this;s.className=`${n} ${m.XV} ${m.hg}`,s.appendChild(o)}handleClick(t){t.preventDefault(),this.active=this.active||!1,this.active?this.deactivate():this.activate()}activate(){this.active=!0,this.element.classList.add("active");const t=this.getMap();this.geolocation=this.geolocation||new Hn({trackingOptions:{enableHighAccuracy:!0},projection:t.getView().getProjection()}),this.positionFeature=this.positionFeature||new Nn.default,this.accuracyFeature=this.accuracyFeature||new Nn.default,this.geolocateLayer=this.geolocateLayer||new Jn.default({map:t,source:new Qn.default({features:[this.positionFeature,this.accuracyFeature]})}),this.geolocation.setTracking(!0),this.geolocation.on("change:position",(()=>{this.updateFeatures()})),this.geolocation.on("change:accuracyGeometry",(()=>{this.updateFeatures()})),this.geolocation.once("change:position",(()=>{this.updateView()}))}deactivate(){this.active=!1,this.element.classList.remove("active"),this.geolocation.setTracking(!1),this.positionFeature.setGeometry(),this.accuracyFeature.setGeometry()}updateFeatures(){this.coordinates=this.geolocation.getPosition(),this.positionFeature.setGeometry(new $n.default(this.coordinates)),this.accuracyFeature.setGeometry(this.geolocation.getAccuracyGeometry())}updateView(){const t=this.getMap();t.getView().setCenter(this.coordinates),t.getView().setZoom(18)}}const ei=ti,ni={layers:()=>[new P.default({title:"Base layers",fold:"close",layers:[new De({title:"OpenStreetMap",type:"base",source:new gn})]})],controls(t){const e=[new(yn())(t.layerSwitcher),new Sn,new Pt({autoHide:!1}),new An({units:t.units}),new ei,new(mn())("nominatim",{provider:"osm",placeholder:"Search for address...",limit:5,autoComplete:!0})];return!1===t.controls?[]:Array.isArray(t.controls)?t.controls:"object"==typeof t.controls?Mt(t.controls).extend(e):"function"==typeof t.controls?t.controls(Mt().extend(e).getArray()):Mt().extend(e)},interactions(t){const e=[new Fn,new oe];return!1===t.interactions?[]:Array.isArray(t.interactions)?t.interactions:"object"==typeof t.interactions?le(t.interactions).extend(e):"function"==typeof t.interactions?t.interactions(le().extend(e).getArray()):le().extend(e)}};var ii=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ri=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.minDistance=e.minDistance||0,n.interpolationRatio=0,n.features=[],n.geometryFunction=e.geometryFunction||function(t){var e=t.getGeometry();return(0,U.h)(e.getType()==q.Z.POINT,10),e},n.createCustomCluster_=e.createCluster,n.source=null,n.boundRefresh_=n.refresh.bind(n),n.updateDistance(n.distance,n.minDistance),n.setSource(e.source||null),n}return ii(e,t),e.prototype.clear=function(e){this.features.length=0,t.prototype.clear.call(this,e)},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.resolution=e,this.refresh())},e.prototype.setDistance=function(t){this.updateDistance(t,this.minDistance)},e.prototype.setMinDistance=function(t){this.updateDistance(this.distance,t)},e.prototype.getMinDistance=function(){return this.minDistance},e.prototype.setSource=function(t){this.source&&this.source.removeEventListener(R.Z.CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(R.Z.CHANGE,this.boundRefresh_),this.refresh()},e.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features)},e.prototype.updateDistance=function(t,e){var n=0===t?0:Math.min(e,t)/t,i=t!==this.distance||this.interpolationRatio!==n;this.distance=t,this.minDistance=e,this.interpolationRatio=n,i&&this.refresh()},e.prototype.cluster=function(){if(void 0!==this.resolution&&this.source)for(var t=(0,a.createEmpty)(),e=this.distance*this.resolution,n=this.source.getFeatures(),i={},o=0,s=n.length;o<s;o++){var l=n[o];if(!((0,r.sq)(l)in i)){var u=this.geometryFunction(l);if(u){var c=u.getCoordinates();(0,a.createOrUpdateFromCoordinate)(c,t),(0,a.buffer)(t,e,t);var h=this.source.getFeaturesInExtent(t).filter((function(t){var e=(0,r.sq)(t);return!(e in i)&&(i[e]=!0,!0)}));this.features.push(this.createCluster(h,t))}}}},e.prototype.createCluster=function(t,e){for(var n=[0,0],i=t.length-1;i>=0;--i){var r=this.geometryFunction(t[i]);r?(0,c.IH)(n,r.getCoordinates()):t.splice(i,1)}(0,c.bA)(n,1/t.length);var o=(0,a.getCenter)(e),s=this.interpolationRatio,l=new $n.default([n[0]*(1-s)+o[0]*s,n[1]*(1-s)+o[1]*s]);return this.createCustomCluster_?this.createCustomCluster_(l,t):new Nn.default({geometry:l,features:t})},e}(Qn.default);const oi=ri;function si(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 ai=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),li=function(t){function e(e){var n=this,i=e||{},r=void 0===i.imageSmoothing||i.imageSmoothing;return void 0!==i.interpolate&&(r=i.interpolate),(n=t.call(this,{attributions:i.attributions,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,interpolate:r,projection:i.projection,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileGrid:i.tileGrid,tileLoadFunction:i.tileLoadFunction,url:i.url,urls:i.urls,wrapX:void 0===i.wrapX||i.wrapX,transition:i.transition,zDirection:i.zDirection})||this).params_=i.params||{},n.hidpi_=void 0===i.hidpi||i.hidpi,n.tmpExtent_=(0,a.createEmpty)(),n.setKey(n.getKeyForParams_()),n}return ai(e,t),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.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,e,n,i,r,o){var s=this.urls;if(s){var a=r.getCode().split(/:(?=\d+$)/).pop();return o.SIZE=e[0]+","+e[1],o.BBOX=n.join(","),o.BBOXSR=a,o.IMAGESR=a,o.DPI=Math.round(o.DPI?o.DPI*i:90*i),si((1==s.length?s[0]:s[(0,nt.$W)(Ue(t),s.length)]).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"),o)}},e.prototype.getTilePixelRatio=function(t){return this.hidpi_?t:1},e.prototype.updateParams=function(t){(0,W.f0)(this.params_,t),this.setKey(this.getKeyForParams_())},e.prototype.tileUrlFunction=function(t,e,n){var i=this.getTileGrid();if(i||(i=this.getTileGridForProjection(n)),!(i.getResolutions().length<=t[0])){1==e||this.hidpi_||(e=1);var r=i.getTileCoordExtent(t,this.tmpExtent_),o=(0,mt.Pq)(i.getTileSize(t[0]),this.tmpSize);1!=e&&(o=(0,mt.bA)(o,e,this.tmpSize));var s={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};return(0,W.f0)(s,this.params_),this.getRequestUrl_(t,o,r,e,n,s)}},e}(cn);const ui=li;var ci="1.3.0";var hi=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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),pi=function(t){function e(e){var n=this,i=e||{},r=void 0===i.imageSmoothing||i.imageSmoothing;void 0!==i.interpolate&&(r=i.interpolate);var o=i.params||{},s=!("TRANSPARENT"in o)||o.TRANSPARENT;return(n=t.call(this,{attributions:i.attributions,attributionsCollapsible:i.attributionsCollapsible,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,interpolate:r,opaque:!s,projection:i.projection,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileClass:i.tileClass,tileGrid:i.tileGrid,tileLoadFunction:i.tileLoadFunction,url:i.url,urls:i.urls,wrapX:void 0===i.wrapX||i.wrapX,transition:i.transition,zDirection:i.zDirection})||this).gutter_=void 0!==i.gutter?i.gutter:0,n.params_=o,n.v13_=!0,n.serverType_=i.serverType,n.hidpi_=void 0===i.hidpi||i.hidpi,n.tmpExtent_=(0,a.createEmpty)(),n.updateV13_(),n.setKey(n.getKeyForParams_()),n}return hi(e,t),e.prototype.getFeatureInfoUrl=function(t,e,n,i){var r=(0,et.get)(n),o=this.getProjection(),s=this.getTileGrid();s||(s=this.getTileGridForProjection(r));var l=s.getZForResolution(e,this.zDirection),u=s.getTileCoordForCoordAndZ(t,l);if(!(s.getResolutions().length<=u[0])){var c=s.getResolution(u[0]),h=s.getTileCoordExtent(u,this.tmpExtent_),p=(0,mt.Pq)(s.getTileSize(u[0]),this.tmpSize),f=this.gutter_;0!==f&&(p=(0,mt.f3)(p,f,this.tmpSize),h=(0,a.buffer)(h,c*f,h)),o&&o!==r&&(c=Re(o,r,t,c),h=(0,et.transformExtent)(h,r,o),t=(0,et.transform)(t,r,o));var d={SERVICE:"WMS",VERSION:ci,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};(0,W.f0)(d,this.params_,i);var g=Math.floor((t[0]-h[0])/c),_=Math.floor((h[3]-t[1])/c);return d[this.v13_?"I":"X"]=g,d[this.v13_?"J":"Y"]=_,this.getRequestUrl_(u,p,h,1,o||r,d)}},e.prototype.getLegendUrl=function(t,e){if(void 0!==this.urls[0]){var n={SERVICE:"WMS",VERSION:ci,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===e||void 0===e.LAYER){var i=this.params_.LAYERS;if(Array.isArray(i)&&1!==i.length)return;n.LAYER=i}if(void 0!==t){var r=this.getProjection()?this.getProjection().getMetersPerUnit():1;n.SCALE=t*r/28e-5}return(0,W.f0)(n,e),si(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,r,o){var s=this.urls;if(s){if(o.WIDTH=e[0],o.HEIGHT=e[1],o[this.v13_?"CRS":"SRS"]=r.getCode(),"STYLES"in this.params_||(o.STYLES=""),1!=i)switch(this.serverType_){case"geoserver":var a=90*i+.5|0;"FORMAT_OPTIONS"in o?o.FORMAT_OPTIONS+=";dpi:"+a:o.FORMAT_OPTIONS="dpi:"+a;break;case"mapserver":o.MAP_RESOLUTION=90*i;break;case"carmentaserver":case"qgis":o.DPI=90*i;break;default:(0,U.h)(!1,52)}var l=r.getAxisOrientation(),u=n;if(this.v13_&&"ne"==l.substr(0,2)){var c=void 0;c=n[0],u[0]=n[1],u[1]=c,c=n[2],u[2]=n[3],u[3]=c}return o.BBOX=u.join(","),si(1==s.length?s[0]:s[(0,nt.$W)(Ue(t),s.length)],o)}},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,W.f0)(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())},e.prototype.updateV13_=function(){var t=this.params_.VERSION||ci;this.v13_=function(t,e){for(var n=(""+t).split("."),i="1.3".split("."),r=0;r<Math.max(n.length,i.length);r++){var o=parseInt(n[r]||"0",10),s=parseInt(i[r]||"0",10);if(o>s)return 1;if(s>o)return-1}return 0}(t)>=0},e.prototype.tileUrlFunction=function(t,e,n){var i=this.getTileGrid();if(i||(i=this.getTileGridForProjection(n)),!(i.getResolutions().length<=t[0])){1==e||this.hidpi_&&void 0!==this.serverType_||(e=1);var r=i.getResolution(t[0]),o=i.getTileCoordExtent(t,this.tmpExtent_),s=(0,mt.Pq)(i.getTileSize(t[0]),this.tmpSize),l=this.gutter_;0!==l&&(s=(0,mt.f3)(s,l,this.tmpSize),o=(0,a.buffer)(o,r*l,o)),1!=e&&(s=(0,mt.bA)(s,e,this.tmpSize));var u={SERVICE:"WMS",VERSION:ci,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return(0,W.f0)(u,this.params_),this.getRequestUrl_(t,s,o,e,n,u)}},e}(cn);const fi=pi;var di=s(9466),gi=s(7537),_i=s(283),yi=s(1345),vi=s(4115),mi=s(3713),xi=s(8443),Ei=s(5393),Ci=s(8958),wi=s(7539),Ti=s(6313);const Si=function(){function t(t){var e=t||{};this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.scaleArray_=(0,mt.Pq)(void 0!==e.scale?e.scale:1),this.text_=e.text,this.textAlign_=e.textAlign,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new yi.Z({color:"#333"}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:Ti.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(){var e=this.getScale();return new t({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},t.prototype.getOverflow=function(){return this.overflow_},t.prototype.getFont=function(){return this.font_},t.prototype.getMaxAngle=function(){return this.maxAngle_},t.prototype.getPlacement=function(){return this.placement_},t.prototype.getOffsetX=function(){return this.offsetX_},t.prototype.getOffsetY=function(){return this.offsetY_},t.prototype.getFill=function(){return this.fill_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.getText=function(){return this.text_},t.prototype.getTextAlign=function(){return this.textAlign_},t.prototype.getTextBaseline=function(){return this.textBaseline_},t.prototype.getBackgroundFill=function(){return this.backgroundFill_},t.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},t.prototype.getPadding=function(){return this.padding_},t.prototype.setOverflow=function(t){this.overflow_=t},t.prototype.setFont=function(t){this.font_=t},t.prototype.setMaxAngle=function(t){this.maxAngle_=t},t.prototype.setOffsetX=function(t){this.offsetX_=t},t.prototype.setOffsetY=function(t){this.offsetY_=t},t.prototype.setPlacement=function(t){this.placement_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setFill=function(t){this.fill_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=(0,mt.Pq)(void 0!==t?t:1)},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.setText=function(t){this.text_=t},t.prototype.setTextAlign=function(t){this.textAlign_=t},t.prototype.setTextBaseline=function(t){this.textBaseline_=t},t.prototype.setBackgroundFill=function(t){this.backgroundFill_=t},t.prototype.setBackgroundStroke=function(t){this.backgroundStroke_=t},t.prototype.setPadding=function(t){this.padding_=t},t}(),Oi={blue:"rgba(51,153,255,1)",green:"rgba(51,153,51,1)",darkgreen:"rgba(51,153,51,1)",grey:"rgba(204,204,204,0.7)",orange:"rgba(255,153,51,1)",red:"rgba(204,0,0,1)",purple:"rgba(204,51,102,1)",yellow:"rgba(255,255,51,1)"},bi=t=>{let e;e=t?Oi[t]?Oi[t]:t:Oi.yellow;const n=new Ci.Z({color:e,width:2}),i=new yi.Z({color:"rgba(0,0,0,0)"}),r=new _i.Z({stroke:n,fill:i,radius:4});return new wi.default({stroke:n,fill:i,image:r})},Ri={};function Pi(t){const e=t.get("features").length;let n=Ri[e];return n||(n=new wi.default({image:new _i.Z({radius:14,stroke:new Ci.Z({color:"rgba(255,255,255,1)"}),fill:new yi.Z({color:"green"})}),text:new Si({text:e.toString(),fill:new yi.Z({color:"rgba(255,255,255,1)"})})}),Ri[e]=n),n}var Ii=s(5289),Li=s(8813);function Mi(t,e){return"geojson"===t.toLowerCase()?(n=e,(new di.Z).readFeatures(n,Li.Z)):"wkt"===t.toLowerCase()?(i=e).includes("MULTIPOINT")||i.includes("MULTILINESTRING")||i.includes("MULTIPOLYGON")||i.includes("GEOMETRYCOLLECTION")?new Ii.Z({splitCollection:!0}).readFeatures(i,Li.Z):[(new Ii.Z).readFeature(i,Li.Z)]:void 0;var n,i}function Ai(t,e=null){const n=e||this.map.getLayers().getArray();for(let e=0;e<n.length;e+=1){if(n[e].getLayers){const i=Ai(t,n[e].getLayers().getArray());if(i)return i}if(n[e].get("title")===t)return n[e]}return!1}function Zi(e,n={}){let i;if("group"===e.toLowerCase()){if(!n.title)throw new Error("Missing a Layer Group title.");i=new P.default(n)}if("vector"===e.toLowerCase()&&(i=function({title:e="vector",color:n="orange",styleFunction:i=null,visible:r=!0,attribution:o=""}){const s=i?(e,n)=>i(e,n,t):bi(n),a=[o],l=new Qn.default({attributions:a});return new Jn.default({title:e,source:l,style:s,visible:r})}(n)),"cluster"===e.toLowerCase()){if(!n.url)throw new Error("Missing a Cluster GeoJSON url.");i=function({title:e="cluster",url:n,styleFunction:i=Pi,visible:r=!0,attribution:o=""}){const s=new di.Z,a=[o],l=new Qn.default({url:n,format:s,attributions:a}),u=new oi({distance:50,source:l});return new Jn.default({title:e,source:u,style:(e,n)=>i(e,n,t),visible:r})}(n)}if("geojson"===e.toLowerCase()){if(!n.url&&!n.geojson)throw new Error("Missing a GeoJSON url or object.");i=function({title:e="geojson",url:n="",geojson:i={},color:r="orange",styleFunction:o=null,visible:s=!0,attribution:a=""}){const l=o?(e,n)=>o(e,n,t):bi(r),u=new di.Z,c=[a];let h;return h=n?new Qn.default({url:n,format:u,attributions:c}):new Qn.default({features:Mi("geojson",i),format:u,attributions:c}),new Jn.default({title:e,source:h,style:l,visible:s})}(n)}if("arcgis-tile"===e.toLowerCase()){if(!n.url)throw new Error("Missing a ArcGIS MapServer url.");i=function({title:t="arcgis-tile",url:e,params:n,visible:i=!0,base:r=!1,attribution:o=""}){const s=new ui({url:e,params:n,attributions:[o]});return new De({title:t,source:s,visible:i,type:r?"base":"normal"})}(n)}if("wkt"===e.toLowerCase()){if(!n.wkt)throw new Error("Missing a WKT string.");i=function({title:e="wkt",wkt:n,color:i="orange",styleFunction:r=null,visible:o=!0,attribution:s=""}){const a=r?(e,n)=>r(e,n,t):bi(i),l=Mi("wkt",n),u=[s],c=new Qn.default({features:l,attributions:u});return new Jn.default({title:e,source:c,style:a,visible:o})}(n)}if("wms"===e.toLowerCase()){if(!n.url)throw new Error("Missing a WMS url.");i=function({title:t="wms",url:e,params:n,visible:i=!0,base:r=!1,attribution:o=""}){const s=new fi({url:e,params:n,attributions:[o]});return new De({title:t,source:s,visible:i,type:r?"base":"normal"})}(n)}if("xyz"===e.toLowerCase()){if(!n.url)throw new Error("Missing an XYZ url.");i=function({title:t="xyz",url:e,tileSize:n=256,visible:i=!0,base:r=!1,attribution:o=""}){const s=new fn({url:e,tileSize:n,attributions:[o]});return new De({title:t,source:s,visible:i,type:r?"base":"normal"})}(n)}if(i){if(n.group){let t;t=this.getLayerByName(n.group),t||(t=new P.default({title:n.group}),this.map.addLayer(t)),t.getLayers().push(i)}else this.map.addLayer(i);return this.map.dispatchEvent("farmOS-map.layer",i),i}throw new Error("Invalid layer type.")}(0,gi.Nn)(!0);var Fi=s(3437),Ni=s.n(Fi);function ki(t){const e=new(Ni());return this.map.addOverlay(e),this.map.on("singleclick",(n=>{const i=t(n);i&&(e.show(n.coordinate,i),e.dispatchEvent("farmOS-map.popup"))})),e}var Di=s(7673);function ji(t=null){const e=(0,a.createEmpty)(),n=t||this.map.getLayerGroup();(0,Di.Z)(n,(t=>{if("function"==typeof t.getSource){const n=t.getSource();if("null"!==n&&n instanceof Qn.default&&"ready"===n.getState()&&n.getFeatures().length>0){(0,a.extend)(e,n.getExtent());const t={size:this.map.getSize(),padding:[20,20,20,20],maxZoom:20};this.map.getView().fit(e,t)}}}))}function Gi(t){const e=(0,a.createEmpty)(),n=t.getSource();if("null"!==n&&n instanceof Qn.default&&"ready"===n.getState()&&n.getFeatures().length>0){(0,a.extend)(e,n.getExtent());const t={size:this.map.getSize(),padding:[20,20,20,20],maxZoom:20};this.map.getView().fit(e,t)}}async function Xi(t,e={}){return this.attachBehavior(this.instanceManager.namedBehaviors[t],e)}async function Yi(t,e={}){return await this.defaultBehaviorsAttached.finally(),t.attach(this,e)}async function Ui(t){const e=t.reduce(((t,e)=>{const n=e.weight||0;return t[n]=t[n]||[],t[n].push(e),t}),{});return Object.keys(e).sort(((t,e)=>t<e?-1:1)).reduce(((t,n)=>t.then((()=>{const t=e[n];return Promise.all(t.map((t=>t.attach(this))))}))),Promise.resolve())}var Wi=s(3945);var zi=s(3126);const Bi=class{constructor(){this.instances=[],this.namedBehaviors={...zi.default},this.behaviors={loading:zi.default.loading,rememberLayer:zi.default.rememberLayer}}create(t,e){const n=(({target:t,options:e={}})=>{const n="us"===e.units?"us":"metric";return e.units=n,{units:n,target:t,options:e,map:new he({target:t,layers:ni.layers(),controls:ni.controls(e),interactions:ni.interactions(e),view:new vt({center:[0,0],zoom:2})}),addLayer:Zi,addPopup:ki,getLayerByName:Ai,readFeatures:Mi,zoomToVectors:ji,zoomToLayer:Gi,addBehavior:Xi,attachBehavior:Yi,attachBehaviorsByWeight:Ui,measureGeometry:Wi.Yt}})({target:t,options:e});return n.instanceManager=this,this.instances.push(n),n.defaultBehaviorsAttached=n.attachBehaviorsByWeight(Object.values(this.behaviors)),n}destroy(t){const e=this.targetIndex(t);e>-1&&(this.instances[e].map.setTarget(null),this.instances.splice(e,1))}targetIndex(t){return this.instances.findIndex((e=>e.target===t))}};void 0===window.farmOS&&(window.farmOS={});const Vi=new Bi;window.farmOS.map=Vi,window.farmOS.map.MapInstanceManager=Bi,window.farmOS.map.projection=Li.Z})()})(); |