-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdist.js
2 lines (2 loc) · 250 KB
/
dist.js
1
2
(()=>{var t={2066:(t,e,n)=>{(t.exports=n(3645)(!1)).push([t.id,".ol-permalink\r\n{\tposition: absolute;\r\n\ttop:0.5em;\r\n\tright: 2.5em;\r\n}\r\n.ol-touch .ol-permalink\r\n{\tright: 3em;\r\n}\r\n\r\n.ol-permalink button\r\n{\tbackground-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AcFBjYE1ZK03gAAAUlJREFUOMuVk71KA1EQhc/NaiP+gCRpFHwGBSFlCrFVfAsbwSJCBMv06QIGJOBziI3EYAgkjU8gIloIAasIn4WzMqx34zrN7J6de+6ZmbNSgQDSfADcATPgHbgCyvonSYv8KEzWdofegH3gwmG9Ikq67sAESFzNueHThTyiEIKAmr2OJCUhhO30Aou+5aUQU2Ik65K2JC1KegohPGfUBkmvksqShnntHEcGOs60NXHfjmKz6czZTsNqbhzW+muwY2ATWAWawCOwBgxcTfvnvCPxKx4Cy5bPgBWgauRpdL2ImNlGhp3MabETm8mh94nDk4yCNE5/KTGg7xxbyhYAG0AN2AEqURIDZ0a0Fxn+LXAPXDpzRqMk6cOedz1ubdYl1b6NHgZRJe72nuu/CdSBl+yKi/zZlTnbaeXOJIesClwDU+ATeEhtX5TkCwAWUyAsHH1QAAAAAElFTkSuQmCC');\r\n\tbackground-position: center;\r\n\tbackground-repeat: no-repeat;\r\n}",""])},1375:(t,e,n)=>{(t.exports=n(3645)(!1)).push([t.id,'.ol-search{\r\n top: 0.5em;\r\n left: 3em;\r\n}\r\n.ol-touch .ol-search {\r\n left: 3.5em;\r\n}\r\n.ol-search button {\r\n top: 2px;\r\n left: 2px;\r\n float: left;\r\n}\r\n.ol-control.ol-search > button:before {\r\n content: "";\r\n position: absolute;\r\n box-sizing: border-box;\r\n width: .7em;\r\n height: .7em;\r\n background-color: transparent;\r\n border: .12em solid currentColor;\r\n border-radius: 100%;\r\n top: .35em;\r\n left: .35em;\r\n}\r\n.ol-control.ol-search > button:after {\r\n content: "";\r\n position: absolute;\r\n top: 1.1em;\r\n left: .95em;\r\n width: .45em;\r\n height: .15em;\r\n background-color: currentColor;\r\n border-radius: .05em;\r\n transform: rotate(45deg);\r\n box-shadow: -0.18em 0 0 -0.03em;\r\n}\r\n\r\n.ol-search button.ol-revers {\r\n float: none;\r\n background-image: none;\r\n display: inline-block;\r\n vertical-align: bottom;\r\n position: relative;\r\n top: 0;\r\n left: 0;\r\n}\r\n.ol-search.ol-revers button.ol-revers {\r\n background-color: rgba(0,136,60,.5)\r\n}\r\n\r\n.ol-control.ol-search.ol-collapsed button.ol-revers {\r\n display: none;\r\n}\r\n.ol-search button.ol-revers:before {\r\n content: "";\r\n border: .1em solid currentColor;\r\n position: absolute;\r\n left: 50%;\r\n top: 50%;\r\n transform: translate(-50%,-50%);\r\n border-radius: 50%;\r\n width: .55em;\r\n height: .55em;\r\n box-sizing: border-box;\r\n}\r\n.ol-search button.ol-revers:after {\r\n content: "";\r\n position: absolute;\r\n left: 50%;\r\n top: 50%;\r\n transform: translate(-50%,-50%);\r\n width: .2em;\r\n height: .2em;\r\n background-color: transparent;\r\n box-shadow: .35em 0 currentColor, 0 .35em currentColor, -.35em 0 currentColor, 0 -.35em currentColor;\r\n}\r\n\r\n.ol-search input {\r\n display: inline-block;\r\n border: 0;\r\n margin: 1px 1px 1px 2px;\r\n font-size: 1.14em;\r\n padding-left: 0.3em;\r\n height: 1.375em;\r\n box-sizing: border-box;\r\n transition: all 0.1s;\r\n}\r\n.ol-touch .ol-search input,\r\n.ol-touch .ol-search ul {\r\n font-size: 1.5em;\r\n}\r\n.ol-search.ol-revers > ul,\r\n.ol-control.ol-search.ol-collapsed > * {\r\n display: none;\r\n}\r\n.ol-control.ol-search.ol-collapsed > button {\r\n display: block;\r\n}\r\n\r\n.ol-search ul {\r\n list-style: none;\r\n padding: 0;\r\n margin: 0;\r\n display: block;\r\n clear: both;\r\n cursor: pointer;\r\n max-width: 17em;\r\n overflow-x: hidden;\r\n z-index: 1;\r\n background: #fff;\r\n}\r\n/*\r\n.ol-control.ol-search ul {\r\n position: absolute;\r\n box-shadow: 5px 5px 5px rgba(0,0,0,0.5);\r\n}\r\n*/\r\n.ol-search ul li {\r\n padding: 0.1em 0.5em;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n}\r\n.ol-search ul li.select,\r\n.ol-search ul li:hover {\r\n background-color: rgba(0,60,136,.5);\r\n color: #fff;\r\n}\r\n.ol-search ul li img {\r\n float: left;\r\n max-height: 2em;\r\n}\r\n.ol-search li.copy {\r\n background: rgba(0,0,0,.5);\r\n color: #fff;\r\n}\r\n.ol-search li.copy a {\r\n color: #fff;\r\n text-decoration: none;\r\n}\r\n\r\n.ol-search.searching:before {\r\n content: \'\';\r\n position: absolute;\r\n height: 3px;\r\n left: 0;\r\n top: 1.6em;\r\n animation: pulse .5s infinite alternate linear;\r\n background: red;\r\n z-index: 2;\r\n}\r\n\r\n@keyframes pulse {\r\n 0% { left:0; right: 95%; }\r\n 50% {\tleft: 30%; right: 30%; }\r\n 100% {\tleft: 95%; right: 0; }\r\n}\r\n\r\n\r\n.ol-search.IGNF-parcelle input {\r\n width: 13.5em;\r\n}\r\n.ol-search.IGNF-parcelle input:read-only {\r\n background: #ccc;\r\n opacity: .8;\r\n}\r\n.ol-search.IGNF-parcelle.ol-collapsed-list > ul.autocomplete {\r\n display: none;\r\n}\r\n\r\n.ol-search.IGNF-parcelle label {\r\n display: block;\r\n clear: both;\r\n}\r\n.ol-search.IGNF-parcelle > div input,\r\n.ol-search.IGNF-parcelle > div label {\r\n width: 5em;\r\n box-sizing: border-box;\r\n display: inline-block;\r\n margin: .1em;\r\n font-size: 1em;\r\n}\r\n.ol-search.IGNF-parcelle ul.autocomplete-page {\r\n margin-top:.5em;\r\n width:100%;\r\n text-align: center;\r\n display: none;\r\n}\r\n.ol-search.IGNF-parcelle.ol-collapsed-list ul.autocomplete-parcelle,\r\n.ol-search.IGNF-parcelle.ol-collapsed-list ul.autocomplete-page {\r\n display: block;\r\n}\r\n.ol-search.IGNF-parcelle.ol-collapsed ul.autocomplete-page,\r\n.ol-search.IGNF-parcelle.ol-collapsed ul.autocomplete-parcelle,\r\n.ol-search.IGNF-parcelle ul.autocomplete-parcelle {\r\n display: none;\r\n}\r\n.ol-search.IGNF-parcelle ul.autocomplete-page li {\r\n display: inline-block;\r\n color: #fff;\r\n background: rgba(0,60,136,.5);\r\n border-radius: 50%;\r\n width: 1.3em;\r\n height: 1.3em;\r\n padding: .1em;\r\n margin: 0 .1em;\r\n}\r\n.ol-search.IGNF-parcelle ul.autocomplete-page li.selected {\r\n background: rgba(0,60,136,1);\r\n}\r\n\r\n/* GPS */\r\n.ol-searchgps input.search {\r\n display: none;\r\n}\r\n.ol-control.ol-searchgps > button:first-child {\r\n background-image: none;\r\n}\r\n.ol-control.ol-searchgps > button:first-child:before {\r\n content: "x/y";\r\n position: unset;\r\n display: block;\r\n transform: scaleX(.8);\r\n border: unset;\r\n border-radius: 0;\r\n width: auto;\r\n height: auto;\r\n}\r\n.ol-control.ol-searchgps > button:first-child:after {\r\n content: unset;\r\n}\r\n.ol-control.ol-searchgps .ol-latitude,\r\n.ol-control.ol-searchgps .ol-longitude {\r\n clear: both;\r\n}\r\n.ol-control.ol-searchgps .ol-latitude label,\r\n.ol-control.ol-searchgps .ol-longitude label {\r\n width: 5.5em;\r\n display: inline-block;\r\n text-align: right;\r\n transform: scaleX(.8);\r\n margin: 0 -.8em 0 0;\r\n transform-origin: 0 0;\r\n}\r\n.ol-control.ol-searchgps .ol-latitude input,\r\n.ol-control.ol-searchgps .ol-longitude input {\r\n max-width: 10em;\r\n}\r\n\r\n.ol-control.ol-searchgps .ol-ext-toggle-switch {\r\n cursor: pointer;\r\n float: right;\r\n margin: .5em;\r\n font-size: .9em;\r\n}\r\n\r\n.ol-searchgps .ol-decimal{\r\n display: inline-block;\r\n margin-right: .7em;\r\n}\r\n.ol-searchgps .ol-dms,\r\n.ol-searchgps.ol-dms .ol-decimal {\r\n display: none;\r\n width: 3em;\r\n text-align: right;\r\n}\r\n.ol-searchgps.ol-dms .ol-dms {\r\n display: inline-block;\r\n}\r\n\r\n.ol-searchgps span.ol-dms {\r\n width: .5em;\r\n text-align: left;\r\n}\r\n.ol-searchgps.ol-control.ol-collapsed button.ol-geoloc {\r\n display: none;\r\n}\r\n.ol-searchgps button.ol-geoloc {\r\n top: 0;\r\n float: right;\r\n margin-right: 3px;\r\n background-image: none;\r\n position: relative;\r\n}\r\n.ol-searchgps button.ol-geoloc:before {\r\n content:"";\r\n position: absolute;\r\n left: 50%;\r\n top: 50%;\r\n width: .6em;\r\n height: .6em;\r\n border: .1em solid currentColor;\r\n border-radius: 50%;\r\n transform: translate(-50%,-50%);\r\n}\r\n.ol-searchgps button.ol-geoloc:after {\r\n content:"";\r\n position: absolute;\r\n left: 50%;\r\n top: 50%;\r\n width: .2em;\r\n height: .2em;\r\n background-color: transparent;\r\n transform: translate(-50%,-50%);\r\n box-shadow: \r\n .45em 0 currentColor, -.45em 0 currentColor, 0 -.45em currentColor, 0 .45em currentColor,\r\n .25em 0 currentColor, -.25em 0 currentColor, 0 -.25em currentColor, 0 .25em currentColor;\r\n}',""])},8960:(t,e,n)=>{(t.exports=n(3645)(!1)).push([t.id,'.ol-swipe\r\n{\tposition: absolute;\r\n\ttop: 50%;\r\n\tleft: 50%;\r\n\ttransform: translate(-50%, -50%);\r\n\t-webkit-transform: translate(-50%, -50%);\r\n}\r\n\r\n.ol-swipe:before\r\n{\tcontent: "";\r\n\tposition: absolute;\r\n\ttop: -5000px;\r\n\tbottom: -5000px;\r\n\tleft: 50%;\r\n\twidth: 4px;\r\n\tbackground: #fff;\r\n\tz-index:-1;\r\n\ttransform: translate(-2px, 0);\r\n\t-webkit-transform: translate(-2px, 0);\r\n}\r\n.ol-swipe.horizontal:before\r\n{\tleft: -5000px;\r\n\tright: -5000px;\r\n\ttop: 50%;\r\n\tbottom: auto;\r\n\twidth: auto;\r\n\theight: 4px;\r\n}\r\n\r\n.ol-swipe,\r\n.ol-swipe button\r\n{\tcursor: ew-resize;\r\n}\r\n.ol-swipe.horizontal,\r\n.ol-swipe.horizontal button\r\n{\tcursor: ns-resize;\r\n}\r\n\r\n.ol-swipe:after,\r\n.ol-swipe button:before,\r\n.ol-swipe button:after\r\n{\tcontent: "";\r\n\tposition: absolute;\r\n\ttop: 25%;\r\n\tbottom: 25%;\r\n\tleft: 50%;\r\n\twidth: 2px;\r\n\tbackground: rgba(255,255,255,0.8);\r\n\ttransform: translate(-1px, 0);\r\n\t-webkit-transform: translate(-1px, 0);\r\n}\r\n.ol-swipe button:after\r\n{\ttransform: translateX(5px);\r\n\t-webkit-transform: translateX(5px);\r\n}\r\n.ol-swipe button:before\r\n{\ttransform: translateX(-7px);\r\n\t-webkit-transform: translateX(-7px);\r\n}\r\n',""])},1788:(t,e,n)=>{(t.exports=n(3645)(!1)).push([t.id,'.ol-box {\n box-sizing: border-box;\n border-radius: 2px;\n border: 2px solid blue;\n}\n\n.ol-mouse-position {\n top: 8px;\n right: 8px;\n position: absolute;\n}\n\n.ol-scale-line {\n background: rgba(0,60,136,0.3);\n border-radius: 4px;\n bottom: 8px;\n left: 8px;\n padding: 2px;\n position: absolute;\n}\n.ol-scale-line-inner {\n border: 1px solid #eee;\n border-top: none;\n color: #eee;\n font-size: 10px;\n text-align: center;\n margin: 1px;\n will-change: contents, width;\n transition: all 0.25s;\n}\n.ol-scale-bar {\n position: absolute;\n bottom: 8px;\n left: 8px;\n}\n.ol-scale-step-marker {\n width: 1px;\n height: 15px;\n background-color: #000000;\n float: right;\n z-Index: 10;\n}\n.ol-scale-step-text {\n position: absolute;\n bottom: -5px;\n font-size: 12px;\n z-Index: 11;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-text {\n position: absolute;\n font-size: 14px;\n text-align: center;\n bottom: 25px;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-singlebar {\n position: relative;\n height: 10px;\n z-Index: 9;\n box-sizing: border-box;\n border: 1px solid black;\n}\n\n.ol-unsupported {\n display: none;\n}\n.ol-viewport, .ol-unselectable {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n}\n.ol-selectable {\n -webkit-touch-callout: default;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n.ol-grabbing {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n}\n.ol-grab {\n cursor: move;\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n}\n.ol-control {\n position: absolute;\n background-color: rgba(255,255,255,0.4);\n border-radius: 4px;\n padding: 2px;\n}\n.ol-control:hover {\n background-color: rgba(255,255,255,0.6);\n}\n.ol-zoom {\n top: .5em;\n left: .5em;\n}\n.ol-rotate {\n top: .5em;\n right: .5em;\n transition: opacity .25s linear, visibility 0s linear;\n}\n.ol-rotate.ol-hidden {\n opacity: 0;\n visibility: hidden;\n transition: opacity .25s linear, visibility 0s linear .25s;\n}\n.ol-zoom-extent {\n top: 4.643em;\n left: .5em;\n}\n.ol-full-screen {\n right: .5em;\n top: .5em;\n}\n\n.ol-control button {\n display: block;\n margin: 1px;\n padding: 0;\n color: white;\n font-size: 1.14em;\n font-weight: bold;\n text-decoration: none;\n text-align: center;\n height: 1.375em;\n width: 1.375em;\n line-height: .4em;\n background-color: rgba(0,60,136,0.5);\n border: none;\n border-radius: 2px;\n}\n.ol-control button::-moz-focus-inner {\n border: none;\n padding: 0;\n}\n.ol-zoom-extent button {\n line-height: 1.4em;\n}\n.ol-compass {\n display: block;\n font-weight: normal;\n font-size: 1.2em;\n will-change: transform;\n}\n.ol-touch .ol-control button {\n font-size: 1.5em;\n}\n.ol-touch .ol-zoom-extent {\n top: 5.5em;\n}\n.ol-control button:hover,\n.ol-control button:focus {\n text-decoration: none;\n background-color: rgba(0,60,136,0.7);\n}\n.ol-zoom .ol-zoom-in {\n border-radius: 2px 2px 0 0;\n}\n.ol-zoom .ol-zoom-out {\n border-radius: 0 0 2px 2px;\n}\n\n\n.ol-attribution {\n text-align: right;\n bottom: .5em;\n right: .5em;\n max-width: calc(100% - 1.3em);\n display: flex;\n flex-flow: row-reverse;\n align-items: flex-end;\n}\n.ol-attribution ul {\n margin: 0;\n padding: 1px .5em;\n color: #000;\n text-shadow: 0 0 2px #fff;\n}\n.ol-attribution li {\n display: inline;\n list-style: none;\n}\n.ol-attribution li:not(:last-child):after {\n content: " ";\n}\n.ol-attribution img {\n max-height: 2em;\n max-width: inherit;\n vertical-align: middle;\n}\n.ol-attribution button {\n flex-shrink: 0;\n}\n.ol-attribution.ol-collapsed ul {\n display: none;\n}\n.ol-attribution:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-attribution.ol-uncollapsible {\n bottom: 0;\n right: 0;\n border-radius: 4px 0 0;\n}\n.ol-attribution.ol-uncollapsible img {\n margin-top: -.2em;\n max-height: 1.6em;\n}\n.ol-attribution.ol-uncollapsible button {\n display: none;\n}\n\n.ol-zoomslider {\n top: 4.5em;\n left: .5em;\n height: 200px;\n}\n.ol-zoomslider button {\n position: relative;\n height: 10px;\n}\n\n.ol-touch .ol-zoomslider {\n top: 5.5em;\n}\n\n.ol-overviewmap {\n left: 0.5em;\n bottom: 0.5em;\n}\n.ol-overviewmap.ol-uncollapsible {\n bottom: 0;\n left: 0;\n border-radius: 0 4px 0 0;\n}\n.ol-overviewmap .ol-overviewmap-map,\n.ol-overviewmap button {\n display: block;\n}\n.ol-overviewmap .ol-overviewmap-map {\n border: 1px solid #7b98bc;\n height: 150px;\n margin: 2px;\n width: 150px;\n}\n.ol-overviewmap:not(.ol-collapsed) button {\n bottom: 2px;\n left: 2px;\n position: absolute;\n}\n.ol-overviewmap.ol-collapsed .ol-overviewmap-map,\n.ol-overviewmap.ol-uncollapsible button {\n display: none;\n}\n.ol-overviewmap:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-overviewmap-box {\n border: 2px dotted rgba(0,60,136,0.7);\n}\n\n.ol-overviewmap .ol-overviewmap-box:hover {\n cursor: move;\n}\n',""])},3645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,o,r,i=t[1]||"",s=t[3];if(!s)return i;if(e&&"function"==typeof btoa){var a=(n=s,o=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),"/*# ".concat(r," */")),l=s.sources.map((function(t){return"/*# sourceURL=".concat(s.sourceRoot).concat(t," */")}));return[i].concat(l).concat([a]).join("\n")}return[i].join("\n")}(e,t);return e[2]?"@media ".concat(e[2],"{").concat(n,"}"):n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];null!=i&&(o[i]=!0)}for(var s=0;s<t.length;s++){var a=t[s];null!=a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="(".concat(a[2],") and (").concat(n,")")),e.push(a))}},e}},1082:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var o=n(44),r=n(2706),i=n(8775),s=n(8857),a=n(2823),l={base32:"0123456789bcdefghjkmnpqrstuvwxyz"},c=function(t,e){var n=t[0],o=t[1];if(!e){for(var r=1;r<=12;r++){var i=c([n,o],r),s=u(i);if(s.lat==o&&s.lon==n)return i}e=12}(e<1||e>12)&&(e=12);for(var a=0,h=0,p=!0,d="",f=-90,g=90,v=-180,y=180;d.length<e;){if(p){var _=(v+y)/2;n>=_?(a=2*a+1,v=_):(a*=2,y=_)}else{var m=(f+g)/2;o>=m?(a=2*a+1,f=m):(a*=2,g=m)}p=!p,5==++h&&(d+=l.base32.charAt(a),h=0,a=0)}return d},u=function(t){var e=h(t),n=e[1],o=e[0],r=e[3],i=e[2],s=(n+r)/2,a=(o+i)/2;return s=s.toFixed(Math.floor(2-Math.log(r-n)/Math.LN10)),a=a.toFixed(Math.floor(2-Math.log(i-o)/Math.LN10)),[Number(a),Number(s)]},h=function(t){if(!t)return!1;t=t.toLowerCase();for(var e=!0,n=-90,o=90,r=-180,i=180,s=0;s<t.length;s++){var a=t.charAt(s),c=l.base32.indexOf(a);if(-1==c)return!1;for(var u=4;u>=0;u--){var h=c>>u&1;if(e){var p=(r+i)/2;1==h?r=p:i=p}else{var d=(n+o)/2;1==h?n=d:o=d}e=!e}}return[r,n,i,o]},p=function(t){var e=t||{},n=this,o=document.createElement("button");if(this.replaceState_=!1!==e.urlReplace,this.fixed_=e.fixed||6,this.hash_=e.anchor?"#":"?",this._localStorage=e.localStorage,!this._localStorage)try{localStorage.removeItem("ol@parmalink")}catch(t){console.warn("Failed to access localStorage...")}function r(){"function"==typeof e.onclick?e.onclick(n.getLink()):n.setUrlReplace(!n.replaceState_)}o.addEventListener("click",r,!1),o.addEventListener("touchstart",r,!1);var s=document.createElement("div");s.className=(e.className||"ol-permalink")+" ol-unselectable ol-control",s.appendChild(o),(e.hidden||!1===e.visible)&&a.Z.hide(s),i.Z.call(this,{element:s,target:e.target}),this.set("geohash",e.geohash),this.on("change",this.viewChange_.bind(this)),this.search_={};var l=this.replaceState_?document.location.hash||document.location.search:"";if(!l&&this._localStorage)try{l=localStorage["ol@parmalink"]}catch(t){console.warn("Failed to access localStorage...")}if(l){l=l.replace(/(^#|^\?)/,"").split("&");for(var c=0;c<l.length;c++){var u=l[c].split("=");switch(u[0]){case"lon":case"lat":case"gh":case"z":case"r":case"l":break;default:this.search_[u[0]]=u[1]}}}this.setPosition()};(0,o.Z)(p,i.Z),p.prototype.setMap=function(t){this._listener&&((0,r.B)(this._listener.change),(0,r.B)(this._listener.moveend)),this._listener=null,i.Z.prototype.setMap.call(this,t),t&&(this._listener={change:t.getLayerGroup().on("change",this.layerChange_.bind(this)),moveend:t.on("moveend",this.viewChange_.bind(this))},this.setPosition())},p.prototype.getLayerByLink=function(t,e){!e&&this.getMap()&&(e=this.getMap().getLayers().getArray());for(var n=0;n<e.length;n++){if(e[n].get("permalink")==t)return e[n];if(e[n].getLayers){var o=this.getLayerByLink(t,e[n].getLayers().getArray());if(o)return o}}return!1},p.prototype.setGeohash=function(t){this.set("geohash",t),this.setUrlParam()},p.prototype.setPosition=function(t){var e=this.getMap();if(e){var n=this.replaceState_||t?document.location.hash||document.location.search:"";if(!n&&this._localStorage)try{n=localStorage["ol@parmalink"]}catch(t){console.warn("Failed to access localStorage...")}if(n){var o,r,i={};for(n=n.replace(/(^#|^\?)/,"").split("&"),o=0;o<n.length;o++)i[(r=n[o].split("="))[0]]=r[1];if(i.gh){var a=i.gh.split("-"),l=u(a[0]);i.lon=l[0],i.lat=l[1],i.z=a[1]}var c=(0,s.vs)([Number(i.lon),Number(i.lat)],"EPSG:4326",e.getView().getProjection());if(c[0]&&c[1]&&e.getView().setCenter(c),i.z&&e.getView().setZoom(Number(i.z)),i.r&&e.getView().setRotation(Number(i.r)),i.l){!function t(n){n||(n=e.getLayers().getArray());for(var o=0;o<n.length;o++)n[o].get("permalink")&&n[o].setVisible(!1),n[o].getLayers&&t(n[o].getLayers().getArray())}();var h=i.l.split("|");for(o=0;o<h.length;o++){r=h[o].split(":");var p=this.getLayerByLink(r[0]),d=Number(r[1]);p&&(p.setOpacity(d),p.setVisible(!0))}}}}},p.prototype.getUrlParams=function(){return this.search_},p.prototype.setUrlParam=function(t,e){t&&(void 0===e||""===e?delete this.search_[encodeURIComponent(t)]:this.search_[encodeURIComponent(t)]=encodeURIComponent(e)),this.viewChange_()},p.prototype.getUrlParam=function(t){return decodeURIComponent(this.search_[encodeURIComponent(t)]||"")},p.prototype.hasUrlParam=function(t){return this.search_.hasOwnProperty(encodeURIComponent(t))},p.prototype.getLink=function(t){var e=this.getMap(),n=(0,s.vs)(e.getView().getCenter(),e.getView().getProjection(),"EPSG:4326"),o=Math.round(10*e.getView().getZoom())/10,r=e.getView().getRotation(),i=this.layerStr_,a=(r?"&r="+Math.round(1e4*r)/1e4:"")+(i?"&l="+i:"");if(a=this.get("geohash")?"gh="+c(n,8)+"-"+o+a:"lon="+n[0].toFixed(this.fixed_)+"&lat="+n[1].toFixed(this.fixed_)+"&z="+o+a,"position"===t)return a;for(var l in this.search_)a+="&"+l+"="+this.search_[l];return t?a:document.location.protocol+"//"+document.location.host+document.location.pathname+this.hash_+a},p.prototype.getUrlReplace=function(){return this.replaceState_},p.prototype.setUrlReplace=function(t){try{if(this.replaceState_=t,t)window.history.replaceState(null,null,this.getLink());else{var e="";for(var n in this.search_)e+=(""==e?"?":"&")+n+"="+this.search_[n];window.history.replaceState(null,null,document.location.origin+document.location.pathname+e)}}catch(t){}},p.prototype.viewChange_=function(){try{this.replaceState_&&window.history.replaceState(null,null,this.getLink())}catch(t){}if(this._localStorage)try{localStorage["ol@parmalink"]=this.getLink(this._localStorage)}catch(t){console.warn("Failed to access localStorage...")}},p.prototype.layerChange_=function(){this._tout?(clearTimeout(this._tout),this._tout=null):this._tout=setTimeout(function(){this._tout=null;var t="";!function e(n){for(var o=0;o<n.length;o++)n[o].getVisible()&&n[o].get("permalink")&&(t&&(t+="|"),t+=n[o].get("permalink")+":"+n[o].get("opacity")),n[o].getLayers&&e(n[o].getLayers().getArray())}(this.getMap().getLayers().getArray()),this.layerStr_=t,this.viewChange_()}.bind(this),200)};const d=p},2854:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});var o=n(44),r=n(8857),i=n(8775),s=n(2706),a=n(2823),l=function(t){var e=this;t||(t={}),null==t.typing&&(t.typing=300),this._classname=t.className||"search";var n=(t.className||"")+" ol-search"+(t.target?"":" ol-unselectable ol-control"),o=a.Z.create("DIV",{className:n});if(!1!==t.collapsed&&o.classList.add("ol-collapsed"),t.target||(this.button=document.createElement("BUTTON"),this.button.setAttribute("type","button"),this.button.setAttribute("title",t.title||t.label||"Search"),this.button.addEventListener("click",(function(){if(o.classList.toggle("ol-collapsed"),!o.classList.contains("ol-collapsed")){o.querySelector("input.search").focus();for(var t=o.querySelectorAll("li"),n=0;n<t.length;n++)t[n].classList.remove("select");c.value||e.drawList_()}})),o.appendChild(this.button)),t.inputLabel){var r=document.createElement("LABEL");r.innerText=t.inputLabel,o.appendChild(r)}var s,l="",c=this._input=document.createElement("INPUT");c.setAttribute("type","search"),c.setAttribute("class","search"),c.setAttribute("autocomplete","off"),c.setAttribute("placeholder",t.placeholder||"Search..."),c.addEventListener("change",(function(t){e.dispatchEvent({type:"change:input",input:t,value:c.value})}));var u=function(n){var r=o.querySelector("ul.autocomplete li.select"),i=c.value;if("ArrowDown"==n.key||"ArrowUp"==n.key||"Down"==n.key||"Up"==n.key)r?(r.classList.remove("select"),(r=/Down/.test(n.key)?r.nextElementSibling:r.previousElementSibling)&&r.classList.add("select")):o.querySelector("ul.autocomplete li").classList.add("select");else if("input"!=n.type||i)if(!r||"search"!=n.type&&"Enter"!=n.key)if("search"==n.type||"Enter"==n.key||l!=i&&t.typing>=0)if(l=i){s&&clearTimeout(s);var a=e.get("minLength");s=setTimeout((function(){if(l.length>=a){var t=e.autocomplete(l,(function(t){e.drawList_(t)}));t&&e.drawList_(t)}else e.drawList_()}),t.typing)}else e.drawList_();else(r=o.querySelector("ul.autocomplete li"))&&r.classList.remove("select");else o.classList.contains("ol-control")&&c.blur(),r.classList.remove("select"),l=i,e._handleSelect(e._list[r.getAttribute("data-search")]);else setTimeout((function(){e.drawList_()}),200)};if(c.addEventListener("keyup",u),c.addEventListener("search",u),c.addEventListener("cut",u),c.addEventListener("paste",u),c.addEventListener("input",u),t.noCollapse||(c.addEventListener("blur",function(){setTimeout(function(){c!==document.activeElement&&(o.classList.add("ol-collapsed"),this.set("reverse",!1),o.classList.remove("ol-revers"))}.bind(this),200)}.bind(this)),c.addEventListener("focus",function(){this.get("reverse")||(o.classList.remove("ol-collapsed"),o.classList.remove("ol-revers"))}.bind(this))),o.appendChild(c),t.reverse){var h=a.Z.create("BUTTON",{type:"button",class:"ol-revers",title:t.reverseTitle||"click on the map",click:function(){this.get("reverse")?this.set("reverse",!1):(this.set("reverse",!this.get("reverse")),c.focus(),o.classList.add("ol-revers"))}.bind(this)});o.appendChild(h)}var p=document.createElement("UL");p.classList.add("autocomplete"),o.appendChild(p),i.Z.call(this,{element:o,target:t.target}),"function"==typeof t.getTitle&&(this.getTitle=t.getTitle),"function"==typeof t.autocomplete&&(this.autocomplete=t.autocomplete),this.set("copy",t.copy),this.set("minLength",t.minLength||1),this.set("maxItems",t.maxItems||10),this.set("maxHistory",t.maxHistory||t.maxItems||10),t.onselect&&this.on("select",t.onselect),t.centerOnSelect&&this.on("select",function(t){var e=this.getMap();e&&e.getView().setCenter(t.coordinate)}.bind(this)),t.zoomOnSelect&&this.on("select",function(e){var n=this.getMap();n&&(n.getView().setCenter(e.coordinate),n.getView().getZoom()<t.zoomOnSelect&&n.getView().setZoom(t.zoomOnSelect))}.bind(this)),this.restoreHistory(),this.drawList_()};(0,o.Z)(l,i.Z),l.prototype.setMap=function(t){this._listener&&(0,s.B)(this._listener),this._listener=null,i.Z.prototype.setMap.call(this,t),t&&(this._listener=t.on("click",this._handleClick.bind(this)))},l.prototype.collapse=function(t){!1===t?this.element.classList.remove("ol-collapsed"):this.element.classList.add("ol-collapsed")},l.prototype.getInputField=function(){return this._input},l.prototype.getTitle=function(t){return t.name||"No title"},l.prototype._getTitleTxt=function(t){return a.Z.create("DIV",{html:this.getTitle(t)}).innerText},l.prototype.search=function(){var t=this.element.querySelector("input.search");this._triggerCustomEvent("search",t)},l.prototype._handleClick=function(t){this.get("reverse")&&(document.activeElement.blur(),this.reverseGeocode(t.coordinate))},l.prototype.reverseGeocode=function(){},l.prototype._triggerCustomEvent=function(t,e){a.Z.dispatchEvent(t,e)},l.prototype.setInput=function(t,e){var n=this.element.querySelector("input.search");n.value=t,e&&this._triggerCustomEvent("keyup",n)},l.prototype.select=function(t,e,n,o){var r={type:"select",search:t,reverse:!!e,coordinate:n};if(o)for(var i in o)r[i]=o[i];this.dispatchEvent(r)},l.prototype._handleSelect=function(t,e,n){if(t){var o,r=this.get("history");try{var i=JSON.stringify(t);for(o=r.length-1;o>=0;o--)r[o]&&JSON.stringify(r[o])!==i||r.splice(o,1)}catch(e){for(o=r.length-1;o>=0;o--)r[o]===t&&r.splice(o,1)}r.unshift(t);for(var s=Math.max(0,this.get("maxHistory")||10)||0;r.length>s;)r.pop();this.saveHistory(),this.select(t,e,null,n),e&&(this.setInput(this._getTitleTxt(t)),this.drawList_(),setTimeout(function(){this.collapse(!1)}.bind(this),300))}},l.prototype._history={},l.prototype.saveHistory=function(){try{this.get("maxHistory")>=0?localStorage["ol@search-"+this._classname]=JSON.stringify(this.get("history")):localStorage.removeItem("ol@search-"+this._classname)}catch(t){console.warn("Failed to access localStorage...")}},l.prototype.restoreHistory=function(){if(this._history[this._classname])this.set("history",this._history[this._classname]);else try{this._history[this._classname]=JSON.parse(localStorage["ol@search-"+this._classname]),this.set("history",this._history[this._classname])}catch(t){this.set("history",[])}},l.prototype.clearHistory=function(){this.set("history",[]),this.saveHistory(),this.drawList_()},l.prototype.getHistory=function(){return this.get("history")},l.prototype.autocomplete=function(t,e){return e([]),!1},l.prototype.drawList_=function(t){var e=this,n=this.element.querySelector("ul.autocomplete");if(n.innerHTML="",this._list=[],t)n.setAttribute("class","autocomplete");else{if(this.element.querySelector("input.search").value)return;t=this.get("history"),n.setAttribute("class","autocomplete history")}for(var o,r=Math.min(e.get("maxItems"),t.length),i=0;i<r;i++)if(t[i]&&(!i||!e.equalFeatures(t[i],t[i-1]))){(o=document.createElement("LI")).setAttribute("data-search",this._list.length),this._list.push(t[i]),o.addEventListener("click",(function(t){e._handleSelect(e._list[t.currentTarget.getAttribute("data-search")])}));var s=e.getTitle(t[i]);s instanceof Element?o.appendChild(s):o.innerHTML=s,n.appendChild(o)}r&&this.get("copy")&&((o=document.createElement("LI")).classList.add("copy"),o.innerHTML=this.get("copy"),n.appendChild(o))},l.prototype.equalFeatures=function(){return!1};const c=l;var u=n(2971),h=function(t){t=t||{},u.Z.call(this),this._auth=t.auth,this.set("dataType",t.dataType||"JSON")};(0,o.Z)(h,u.Z),h.get=function(t){var e=new h(t);t.success&&e.on("success",(function(e){t.success(e.response,e)})),t.error&&e.on("error",(function(e){t.error(e)})),e.send(t.url,t.data,t.options)},h.getCORS=function(t,e){var n=new XMLHttpRequest;n.open("GET",t,!0),n.send(),n.onreadystatechange=function(){this.readyState==this.HEADERS_RECEIVED&&e(n.getResponseHeader("Access-Control-Allow-Origin"))}},h.prototype.send=function(t,e,n){var o=this,r=!1!==(n=n||{}).encode;r&&(t=encodeURI(t));var i="";for(var s in e)e.hasOwnProperty(s)&&void 0!==e[s]&&(i+=(i?"&":"?")+s+"="+(r?encodeURIComponent(e[s]):e[s]));this._request&&!1!==n.abort&&this._request.abort();var a=this._request=new XMLHttpRequest;a.open("GET",t+i,!0),n.timeout&&(a.timeout=n.timeout),this._auth&&a.setRequestHeader("Authorization","Basic "+this._auth),this.dispatchEvent({type:"loadstart"}),a.onload=function(){if(o._request=null,o.dispatchEvent({type:"loadend"}),this.status>=200&&this.status<400){var t;try{t="JSON"===o.get("dataType")?JSON.parse(this.response):this.response}catch(t){return void o.dispatchEvent({type:"error",status:0,statusText:"parsererror",error:t,options:n,jqXHR:this})}o.dispatchEvent({type:"success",response:t,status:this.status,statusText:this.statusText,options:n,jqXHR:this})}else o.dispatchEvent({type:"error",status:this.status,statusText:this.statusText,options:n,jqXHR:this})},a.ontimeout=function(){o._request=null,o.dispatchEvent({type:"loadend"}),o.dispatchEvent({type:"error",status:this.status,statusText:"Timeout",options:n,jqXHR:this})},a.onerror=function(){o._request=null,o.dispatchEvent({type:"loadend"}),o.dispatchEvent({type:"error",status:this.status,statusText:this.statusText,options:n,jqXHR:this})},a.send()};const p=h;var d=function(t){(t=t||{}).className=t.className||"JSON",delete t.autocomplete,t.minLength=t.minLength||3,t.typing=t.typing||800,c.call(this,t);var e=t.url||"";if("https:"===window.location.protocol){var n=document.createElement("a");n.href=e,n.protocol=window.location.protocol,e=n.href}this.set("url",e),this._ajax=new p({dataType:"JSON",auth:t.authentication}),this._ajax.on("success",function(t){t.status>=200&&t.status<400?"function"==typeof this._callback&&this._callback(t.response):("function"==typeof this._callback&&this._callback(!1,"error"),console.log("AJAX ERROR",arguments))}.bind(this)),this._ajax.on("error",function(){"function"==typeof this._callback&&this._callback(!1,"error"),console.log("AJAX ERROR",arguments)}.bind(this)),this._ajax.on("loadstart",function(){this.element.classList.add("searching")}.bind(this)),this._ajax.on("loadend",function(){this.element.classList.remove("searching")}.bind(this)),"function"==typeof t.handleResponse&&(this.handleResponse=t.handleResponse)};(0,o.Z)(d,c),d.prototype.ajax=function(t,e,n,o){o=o||{},this._callback=n,this._ajax.set("dataType",o.dataType||"JSON"),this._ajax.send(t,e,o)},d.prototype.autocomplete=function(t,e){var n=this.requestData(t),o=encodeURI(this.get("url"));this.ajax(o,n,(function(t){"function"==typeof e&&e(this.handleResponse(t))}))},d.prototype.requestData=function(t){return{q:t}},d.prototype.handleResponse=function(t){return t};const f=d;var g=function(t){(t=t||{}).className=t.className||"nominatim",t.typing=t.typing||500,t.url=t.url||"https://nominatim.openstreetmap.org/search",t.copy='<a href="http://www.openstreetmap.org/copyright" target="new">© OpenStreetMap contributors</a>',f.call(this,t),this.set("polygon",t.polygon),this.set("viewbox",t.viewbox),this.set("bounded",t.bounded)};(0,o.Z)(g,f),g.prototype.getTitle=function(t){var e=[];t.class&&e.push(t.class),t.type&&e.push(t.type);var n=t.display_name+(e.length?"<i>"+e.join(" - ")+"</i>":"");return t.icon&&(n="<img src='"+t.icon+"' />"+n),n},g.prototype.requestData=function(t){var e={format:"json",addressdetails:1,q:t,polygon_geojson:this.get("polygon")?1:0,bounded:this.get("bounded")?1:0,limit:this.get("maxItems")};return this.get("viewbox")&&(e.viewbox=this.get("viewbox")),e},g.prototype.select=function(t){var e=[Number(t.lon),Number(t.lat)];try{e=(0,r.vs)(e,"EPSG:4326",this.getMap().getView().getProjection())}catch(t){}this.dispatchEvent({type:"select",search:t,coordinate:e})},f.prototype.handleResponse=function(t){return t.results||t},g.prototype.reverseGeocode=function(t,e){var n=(0,r.vs)(t,this.getMap().getView().getProjection(),"EPSG:4326");this.ajax(this.get("url").replace("search","reverse"),{lon:n[0],lat:n[1],format:"json"},function(t){e?e.call(this,[t]):t&&!t.error&&this._handleSelect(t,!0)}.bind(this))};const v=g},2837:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var o=n(44),r=n(8775),i=function(t){t=t||{};var e=document.createElement("button"),n=document.createElement("div");n.className=(t.className||"ol-swipe")+" ol-unselectable ol-control",n.appendChild(e),n.addEventListener("mousedown",this.move.bind(this)),n.addEventListener("touchstart",this.move.bind(this)),r.Z.call(this,{element:n}),this.precomposeRight_=this.precomposeRight.bind(this),this.precomposeLeft_=this.precomposeLeft.bind(this),this.postcompose_=this.postcompose.bind(this),this.layers=[],t.layers&&this.addLayer(t.layers,!1),t.rightLayers&&this.addLayer(t.rightLayers,!0),this.on("propertychange",function(){this.getMap()&&this.getMap().renderSync(),"horizontal"===this.get("orientation")?(this.element.style.top=100*this.get("position")+"%",this.element.style.left=""):("vertical"!==this.get("orientation")&&this.set("orientation","vertical"),this.element.style.left=100*this.get("position")+"%",this.element.style.top=""),this.element.classList.remove("horizontal","vertical"),this.element.classList.add(this.get("orientation"))}.bind(this)),this.set("position",t.position||.5),this.set("orientation",t.orientation||"vertical")};(0,o.Z)(i,r.Z),i.prototype.setMap=function(t){var e,n;if(this.getMap()){for(e=0;e<this.layers.length;e++)(n=this.layers[e]).right?n.layer.un(["precompose","prerender"],this.precomposeRight_):n.layer.un(["precompose","prerender"],this.precomposeLeft_),n.layer.un(["postcompose","postrender"],this.postcompose_);this.getMap().renderSync()}if(r.Z.prototype.setMap.call(this,t),t){for(this._listener=[],e=0;e<this.layers.length;e++)(n=this.layers[e]).right?n.layer.on(["precompose","prerender"],this.precomposeRight_):n.layer.on(["precompose","prerender"],this.precomposeLeft_),n.layer.on(["postcompose","postrender"],this.postcompose_);t.renderSync()}},i.prototype.isLayer_=function(t){for(var e=0;e<this.layers.length;e++)if(this.layers[e].layer===t)return e;return-1},i.prototype.addLayer=function(t,e){t instanceof Array||(t=[t]);for(var n=0;n<t.length;n++){var o=t[n];this.isLayer_(o)<0&&(this.layers.push({layer:o,right:e}),this.getMap()&&(e?o.on(["precompose","prerender"],this.precomposeRight_):o.on(["precompose","prerender"],this.precomposeLeft_),o.on(["postcompose","postrender"],this.postcompose_),this.getMap().renderSync()))}},i.prototype.removeLayer=function(t){t instanceof Array||(t=[t]);for(var e=0;e<t.length;e++){var n=this.isLayer_(t[e]);n>=0&&this.getMap()&&(this.layers[n].right?t[e].un(["precompose","prerender"],this.precomposeRight_):t[e].un(["precompose","prerender"],this.precomposeLeft_),t[e].un(["postcompose","postrender"],this.postcompose_),this.layers.splice(n,1),this.getMap().renderSync())}},i.prototype.move=function(t){var e,n=this;switch(t.type){case"touchcancel":case"touchend":case"mouseup":n.isMoving=!1,["mouseup","mousemove","touchend","touchcancel","touchmove"].forEach((function(t){document.removeEventListener(t,n.move)}));break;case"mousedown":case"touchstart":n.isMoving=!0,["mouseup","mousemove","touchend","touchcancel","touchmove"].forEach((function(t){document.addEventListener(t,n.move.bind(n))}));case"mousemove":case"touchmove":if(n.isMoving)if("vertical"===n.get("orientation")){var o=t.pageX||t.touches&&t.touches.length&&t.touches[0].pageX||t.changedTouches&&t.changedTouches.length&&t.changedTouches[0].pageX;if(!o)break;o-=n.getMap().getTargetElement().getBoundingClientRect().left+window.pageXOffset-document.documentElement.clientLeft,e=n.getMap().getSize()[0],e=Math.min(Math.max(0,1-(e-o)/e),1),n.set("position",e)}else{var r=t.pageY||t.touches&&t.touches.length&&t.touches[0].pageY||t.changedTouches&&t.changedTouches.length&&t.changedTouches[0].pageY;if(!r)break;r-=n.getMap().getTargetElement().getBoundingClientRect().top+window.pageYOffset-document.documentElement.clientTop,e=n.getMap().getSize()[1],e=Math.min(Math.max(0,1-(e-r)/e),1),n.set("position",e)}}},i.prototype._drawRect=function(t,e){var n=t.inversePixelTransform;if(n)[[e[0][0],e[0][1]],[e[0][0],e[1][1]],[e[1][0],e[1][1]],[e[1][0],e[0][1]],[e[0][0],e[0][1]]].forEach((function(e,o){e=[e[0]*n[0]-e[1]*n[1]+n[4],-e[0]*n[2]+e[1]*n[3]+n[5]],o?t.context.lineTo(e[0],e[1]):t.context.moveTo(e[0],e[1])}));else{var o=t.frameState.pixelRatio;t.context.rect(e[0][0]*o,e[0][1]*o,e[1][0]*o,e[1][1]*o)}},i.prototype.precomposeLeft=function(t){var e=t.context,n=t.frameState.size;e.save(),e.beginPath();var o=[[0,0],[n[0],n[1]]];"vertical"===this.get("orientation")?o[1]=[n[0]*this.get("position"),n[1]]:o[1]=[n[0],n[1]*this.get("position")],this._drawRect(t,o),e.clip()},i.prototype.precomposeRight=function(t){var e=t.context,n=t.frameState.size;e.save(),e.beginPath();var o=[[0,0],[n[0],n[1]]];"vertical"===this.get("orientation")?o[0]=[n[0]*this.get("position"),0]:o[0]=[0,n[1]*this.get("position")],this._drawRect(t,o),e.clip()},i.prototype.postcompose=function(t){t.target.getClassName&&"ol-layer"!==t.target.getClassName()&&t.target.get("declutter")?setTimeout((function(){t.context.restore()}),0):t.context.restore()};const s=i},2823:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});var o=n(44),r=n(2971);window.ol&&(ol.ext.input={});var i=function(t){t=t||{},r.Z.call(this);var e=this.input=t.input||f.create("INPUT",{type:t.type,min:t.min,max:t.max,step:t.step,parent:t.parent});t.disabled&&(e.disabled=!0),void 0!==t.checked&&(e.checked=!!t.checked),void 0!==t.val&&(e.value=t.val)};(0,o.Z)(i,r.Z),i.prototype._listenDrag=function(t,e){var n=function(n){this.moving=!0;var o=function(n){"pointerup"===n.type&&(document.removeEventListener("pointermove",o),document.removeEventListener("pointerup",o),document.removeEventListener("pointercancel",o),setTimeout(function(){this.moving=!1}.bind(this))),n.target===t&&e(n),n.stopPropagation(),n.preventDefault()}.bind(this);document.addEventListener("pointermove",o,!1),document.addEventListener("pointerup",o,!1),document.addEventListener("pointercancel",o,!1),n.stopPropagation(),n.preventDefault()}.bind(this);t.addEventListener("mousedown",n,!1),t.addEventListener("touchstart",n,!1)},i.prototype.setValue=function(t){void 0!==t&&(this.input.value=t),this.input.dispatchEvent(new Event("change"))},i.prototype.getValue=function(){return this.input.value},i.prototype.getInputElement=function(){return this.input};const s=i;var a=function(t){t=t||{},s.call(this,t);var e=this.element=f.create("LABEL",{html:t.html,className:("ol-ext-check ol-ext-checkbox"+(t.className||"")).trim()});this.input.parentNode&&this.input.parentNode.insertBefore(e,this.input),e.appendChild(this.input),f.create("SPAN",{parent:e}),t.after&&e.appendChild(document.createTextNode(t.after)),this.input.addEventListener("change",function(){this.dispatchEvent({type:"check",checked:this.input.checked,value:this.input.value})}.bind(this))};(0,o.Z)(a,s),a.prototype.isChecked=function(){return this.input.checked};const l=a;var c=function(t){t=t||{},l.call(this,t),this.element.className=("ol-ext-toggle-switch "+(t.className||"")).trim()};(0,o.Z)(c,l);const u=c;var h=function(t,e){e=e||{},l.call(this,t,e),this.element.className=("ol-ext-check ol-ext-radio"+(e.className||"")).trim()};(0,o.Z)(h,l);const p=h;var d={create:function(t,e){var n;if(e=e||{},"TEXT"===t)n=document.createTextNode(e.html||""),e.parent&&e.parent.appendChild(n);else for(var o in n=document.createElement(t),/button/i.test(t)&&n.setAttribute("type","button"),e)switch(o){case"className":e.className&&e.className.trim&&n.setAttribute("class",e.className.trim());break;case"html":e.html instanceof Element?n.appendChild(e.html):void 0!==e.html&&(n.innerHTML=e.html);break;case"parent":e.parent&&e.parent.appendChild(n);break;case"options":if(console.log("options",e.options),/select/i.test(t))for(var r in e.options)d.create("OPTION",{html:r,value:e.options[r],parent:n});break;case"style":this.setStyle(n,e.style);break;case"change":case"click":d.addListener(n,o,e[o]);break;case"on":for(var i in e.on)d.addListener(n,i,e.on[i]);break;case"checked":n.checked=!!e.checked;break;default:n.setAttribute(o,e[o])}return n},createSwitch:function(t){var e=d.create("INPUT",{type:"checkbox",on:t.on,parent:t.parent}),n=Object.assign({input:e},t||{});return new u(n),e},createCheck:function(t){var e=d.create("INPUT",{name:t.name,type:"radio"===t.type?"radio":"checkbox",on:t.on,parent:t.parent});console.log(e);var n=Object.assign({input:e},t||{});return"radio"===t.type?new p(n):new l(n),e},setHTML:function(t,e){e instanceof Element?t.appendChild(e):void 0!==e&&(t.innerHTML=e)},appendText:function(t,e){t.appendChild(document.createTextNode(e||""))},addListener:function(t,e,n,o){"string"==typeof e&&(e=e.split(" ")),e.forEach((function(e){t.addEventListener(e,n,o)}))},removeListener:function(t,e,n){"string"==typeof e&&(e=e.split(" ")),e.forEach((function(e){t.removeEventListener(e,n)}))},show:function(t){t.style.display=""},hide:function(t){t.style.display="none"},hidden:function(t){return"none"===d.getStyle(t,"display")},toggle:function(t){t.style.display="none"===t.style.display?"":"none"},setStyle:function(t,e){for(var n in e)switch(n){case"top":case"left":case"bottom":case"right":case"minWidth":case"maxWidth":case"width":case"height":"number"==typeof e[n]?t.style[n]=e[n]+"px":t.style[n]=e[n];break;default:t.style[n]=e[n]}},getStyle:function(t,e){var n,o=(t.ownerDocument||document).defaultView;if(o&&o.getComputedStyle)e=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=o.getComputedStyle(t,null).getPropertyValue(e);else if(t.currentStyle&&(e=e.replace(/-(\w)/g,(function(t,e){return e.toUpperCase()})),n=t.currentStyle[e],/^\d+(em|pt|%|ex)?$/i.test(n)))return function(e){var n=t.style.left,o=t.runtimeStyle.left;return t.runtimeStyle.left=t.currentStyle.left,t.style.left=e||0,e=t.style.pixelLeft+"px",t.style.left=n,t.runtimeStyle.left=o,e}(n);return/px$/.test(n)?parseInt(n):n},outerHeight:function(t){return t.offsetHeight+d.getStyle(t,"marginBottom")},outerWidth:function(t){return t.offsetWidth+d.getStyle(t,"marginLeft")},offsetRect:function(t){var e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0),height:e.height||e.bottom-e.top,width:e.width||e.right-e.left}},scrollDiv:function(t,e){var n,o=!1,r=0,i=0,s="function"==typeof e.onmove?e.onmove:function(){},a=e.vertical?"pageY":"pageX",l=e.vertical?"scrollTop":"scrollLeft",c=!1;t.querySelectorAll("img").forEach((function(t){t.ondragstart=function(){return!1}})),t.style["touch-action"]="none",d.addListener(t,["pointerdown"],(function(e){c=!1,o=e[a],i=new Date,t.classList.add("ol-move")})),d.addListener(window,["pointermove"],(function(e){if(c=!0,!1!==o){var u=o-e[a];t[l]+=u,(n=new Date)-i&&(r=(r+u/(n-i))/2),o=e[a],i=n,u&&s(!0)}}));var u=function(e){var n=e>0?Math.min(100,e/2):Math.max(-100,e/2);e-=n,t[l]+=n,-1<e&&e<1?(c?setTimeout((function(){t.classList.remove("ol-move")})):t.classList.remove("ol-move"),c=!1,s(!1)):setTimeout((function(){u(e)}),40)};d.addListener(window,["pointerup","pointercancel"],(function(t){(i=new Date-i)>100?r=0:i>0&&(r=((r||0)+(o-t[a])/i)/2),u(!1===e.animate?0:200*r),o=!1,r=0,i=0})),e.mousewheel&&d.addListener(t,["mousewheel","DOMMouseScroll","onmousewheel"],(function(e){var n=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail));return t.classList.add("ol-move"),t[l]-=30*n,t.classList.remove("ol-move"),!1}))},dispatchEvent:function(t,e){var n;try{n=new CustomEvent(t)}catch(e){(n=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,{})}e.dispatchEvent(n)}};const f=d},44:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r}),window.ol&&!ol.ext&&(ol.ext={});var o=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t};window.ol&&(ol.inherits||(ol.inherits=o)),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.Element&&!Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});const r=o},2835:(t,e,n)=>{var o=n(2066);"string"==typeof o&&(o=[[t.id,o,""]]);n(6723)(o,{hmr:!0,transform:void 0,insertInto:void 0}),o.locals&&(t.exports=o.locals)},638:(t,e,n)=>{var o=n(1375);"string"==typeof o&&(o=[[t.id,o,""]]);n(6723)(o,{hmr:!0,transform:void 0,insertInto:void 0}),o.locals&&(t.exports=o.locals)},8929:(t,e,n)=>{var o=n(8960);"string"==typeof o&&(o=[[t.id,o,""]]);n(6723)(o,{hmr:!0,transform:void 0,insertInto:void 0}),o.locals&&(t.exports=o.locals)},8127:(t,e,n)=>{var o=n(1788);"string"==typeof o&&(o=[[t.id,o,""]]);n(6723)(o,{hmr:!0,transform:void 0,insertInto:void 0}),o.locals&&(t.exports=o.locals)},6723:(t,e,n)=>{var o,r,i={},s=(o=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=o.apply(this,arguments)),r}),a=function(t,e){return e?e.querySelector(t):document.querySelector(t)},l=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var o=a.call(this,t,n);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}}(),c=null,u=0,h=[],p=n(1947);function d(t,e){for(var n=0;n<t.length;n++){var o=t[n],r=i[o.id];if(r){r.refs++;for(var s=0;s<r.parts.length;s++)r.parts[s](o.parts[s]);for(;s<o.parts.length;s++)r.parts.push(m(o.parts[s],e))}else{var a=[];for(s=0;s<o.parts.length;s++)a.push(m(o.parts[s],e));i[o.id]={id:o.id,refs:1,parts:a}}}}function f(t,e){for(var n=[],o={},r=0;r<t.length;r++){var i=t[r],s=e.base?i[0]+e.base:i[0],a={css:i[1],media:i[2],sourceMap:i[3]};o[s]?o[s].parts.push(a):n.push(o[s]={id:s,parts:[a]})}return n}function g(t,e){var n=l(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=h[h.length-1];if("top"===t.insertAt)o?o.nextSibling?n.insertBefore(e,o.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),h.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=l(t.insertAt.before,n);n.insertBefore(e,r)}}function v(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=h.indexOf(t);e>=0&&h.splice(e,1)}function y(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var o=n.nc;o&&(t.attrs.nonce=o)}return _(e,t.attrs),g(t,e),e}function _(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function m(t,e){var n,o,r,i;if(e.transform&&t.css){if(!(i="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=i}if(e.singleton){var s=u++;n=c||(c=y(e)),o=w.bind(null,n,s,!1),r=w.bind(null,n,s,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",_(e,t.attrs),g(t,e),e}(e),o=C.bind(null,n,e),r=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=y(e),o=x.bind(null,n),r=function(){v(n)});return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=s()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=f(t,e);return d(n,e),function(t){for(var o=[],r=0;r<n.length;r++){var s=n[r];(a=i[s.id]).refs--,o.push(a)}for(t&&d(f(t,e),e),r=0;r<o.length;r++){var a;if(0===(a=o[r]).refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete i[a.id]}}}};var b,E=(b=[],function(t,e){return b[t]=e,b.filter(Boolean).join("\n")});function w(t,e,n,o){var r=n?"":o.css;if(t.styleSheet)t.styleSheet.cssText=E(e,r);else{var i=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}function x(t,e){var n=e.css,o=e.media;if(o&&t.setAttribute("media",o),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function C(t,e,n){var o=n.css,r=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||i)&&(o=p(o)),r&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var s=new Blob([o],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}},1947:t=>{t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,o=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var r,i=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?t:(r=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:o+i.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")}))}},6813:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var o,r=n(4187),i=(o=function(t,e){return o=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])},o(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}o(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,o="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,o)||this).code=e,n.name="AssertionError",n.message=o,n}return i(e,t),e}(Error)},5431:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const o=function(){function t(){this.disposed=!1}return t.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},t.prototype.disposeInternal=function(){},t}()},553:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const o={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},767:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>me});var o=n(5431),r=n(6885),i=n(4187),s=n(6101),a=n(7971),l=n(9515),c=n(3983);function u(t,e,n){return e+":"+t+":"+(n?function(t){return"string"==typeof t?t:function(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var n=t[1];n!=(0|n)&&(n=n+.5|0);var o=t[2];return o!=(0|o)&&(o=o+.5|0),"rgba("+e+","+n+","+o+","+(void 0===t[3]?1:t[3])+")"}(t)}(n):"null")}var h,p=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 o=u(t,e,n);return o in this.cache_?this.cache_[o]:null},t.prototype.set=function(t,e,n,o){var r=u(t,e,n);this.cache_[r]=o,++this.cacheSize_},t.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},t}()),d=n(1295),f=n(1900),g=(h=function(t,e){return h=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])},h(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function v(t,e){p.expire()}const y=function(t){function e(e){var n=t.call(this)||this;return n.map_=e,n}return g(e,t),e.prototype.dispatchRenderEvent=function(t,e){(0,i.O3)()},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,n=t.coordinateToPixelTransform,o=t.pixelToCoordinateTransform;(0,s.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,s.nb)(o,n)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,o,r,i,s,l){var c,u=e.viewState;function h(t,e,n,o){return r.call(i,e,t?n:null,o)}var p=u.projection,g=(0,f.Cf)(t.slice(),p),v=[[0,0]];if(p.canWrapX()&&o){var y=p.getExtent(),_=(0,a.dz)(y);v.push([-_,0],[_,0])}for(var m=e.layerStatesArray,b=m.length,E=[],w=[],x=0;x<v.length;x++)for(var C=b-1;C>=0;--C){var T=m[C],O=T.layer;if(O.hasRenderer()&&(0,d.j)(T,u)&&s.call(l,O)){var R=O.getRenderer(),P=O.getSource();if(R&&P){var S=P.getWrapX()?g:t,L=h.bind(null,T.managed);w[0]=S[0]+v[x][0],w[1]=S[1]+v[x][1],c=R.forEachFeatureAtCoordinate(w,e,n,L,E)}if(c)return c}}if(0!==E.length){var I=1/E.length;return E.forEach((function(t,e){return t.distanceSq+=e*I})),E.sort((function(t,e){return t.distanceSq-e.distanceSq})),E.some((function(t){return c=t.callback(t.feature,t.layer,t.geometry)})),c}},e.prototype.forEachLayerAtPixel=function(t,e,n,o,r){return(0,i.O3)()},e.prototype.hasFeatureAtCoordinate=function(t,e,n,o,i,s){return void 0!==this.forEachFeatureAtCoordinate(t,e,n,o,r.uX,this,i,s)},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){(0,i.O3)()},e.prototype.scheduleExpireIconCache=function(t){p.canExpireCache()&&t.postRenderFunctions.push(v)},e}(o.Z);var _=n(5990),m=n(7380),b=n(8771),E=n(4562),w=n(245),x=n(2971),C=n(208),T=n(177),O=n(9374),R=n(8326),P=new x.Z;(new C.Z).setSize=function(){console.warn("labelCache is deprecated.")};var S=n(5818),L=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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const I=function(t){function e(e){var n=t.call(this,e)||this;n.fontChangeListenerKey_=(0,S.oL)(P,_.Z.PROPERTYCHANGE,e.redrawText.bind(e)),n.element_=document.createElement("div");var o=n.element_.style;o.position="absolute",o.width="100%",o.height="100%",o.zIndex="0",n.element_.className=w.XV+" ol-layers";var r=e.getViewport();return r.insertBefore(n.element_,r.firstChild||null),n.children_=[],n.renderedVisible_=!0,n}return L(e,t),e.prototype.dispatchRenderEvent=function(t,e){var n=this.getMap();if(n.hasListener(t)){var o=new m.Z(t,void 0,e);n.dispatchEvent(o)}},e.prototype.disposeInternal=function(){(0,S.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(b.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 o=[],r=null,i=0,s=e.length;i<s;++i){var a=e[i];if(t.layerIndex=i,(0,d.j)(a,n)&&(a.sourceState==E.Z.READY||a.sourceState==E.Z.UNDEFINED)){var l=a.layer,c=l.render(t,r);c&&(c!==r&&(this.children_.push(c),r=c),"getDeclutter"in l&&o.push(l))}}for(i=o.length-1;i>=0;--i)o[i].renderDeclutter(t);(0,R.hF)(this.element_,this.children_),this.dispatchRenderEvent(b.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,o,r){for(var i=e.viewState,s=e.layerStatesArray,a=s.length-1;a>=0;--a){var l=s[a],c=l.layer;if(c.hasRenderer()&&(0,d.j)(l,i)&&r(c)){var u=c.getRenderer().getDataAtPixel(t,e,n);if(u){var h=o(c,u);if(h)return h}}}},e}(y);var A=n(6813);const M="add",Z="remove";var j=n(291),N=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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),F="length",D=function(t){function e(e,n,o){var r=t.call(this,e)||this;return r.element=n,r.index=o,r}return N(e,t),e}(j.ZP),k=function(t){function e(e,n){var o=t.call(this)||this;o.on,o.once,o.un;var r=n||{};if(o.unique_=!!r.unique,o.array_=e||[],o.unique_)for(var i=0,s=o.array_.length;i<s;++i)o.assertUnique_(o.array_[i],i);return o.updateLength_(),o}return N(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,o=e.length;n<o;++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(F)},e.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new D(M,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,o=e.length;n<o;++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 D(Z,e,t)),e},e.prototype.setAt=function(t,e){var n=this.getLength();if(t<n){this.unique_&&this.assertUnique_(e,t);var o=this.array_[t];this.array_[t]=e,this.dispatchEvent(new D(Z,o,t)),this.dispatchEvent(new D(M,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(F,this.array_.length)},e.prototype.assertUnique_=function(t,e){for(var n=0,o=this.array_.length;n<o;++n)if(this.array_[n]===t&&n!==e)throw new A.Z(58)},e}(x.Z);const z=k;var G=n(5487),U=n(947),K=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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),X="layers",q=function(t){function e(e){var n=this,o=e||{},r=(0,O.f0)({},o);delete r.layers;var i=o.layers;return(n=t.call(this,r)||this).on,n.once,n.un,n.layersListenerKeys_=[],n.listenerKeys_={},n.addChangeListener(X,n.handleLayersChanged_),i?Array.isArray(i)?i=new z(i.slice(),{unique:!0}):(0,l.h)("function"==typeof i.getArray,43):i=new z(void 0,{unique:!0}),n.setLayers(i),n}return K(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(S.bN),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push((0,S.oL)(t,M,this.handleLayersAdd_,this),(0,S.oL)(t,Z,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(S.bN);(0,O.ZH)(this.listenerKeys_);for(var n=t.getArray(),o=0,r=n.length;o<r;o++){var s=n[o];this.listenerKeys_[(0,i.sq)(s)]=[(0,S.oL)(s,_.Z.PROPERTYCHANGE,this.handleLayerChange_,this),(0,S.oL)(s,G.Z.CHANGE,this.handleLayerChange_,this)]}this.changed()},e.prototype.handleLayersAdd_=function(t){var e=t.element;this.listenerKeys_[(0,i.sq)(e)]=[(0,S.oL)(e,_.Z.PROPERTYCHANGE,this.handleLayerChange_,this),(0,S.oL)(e,G.Z.CHANGE,this.handleLayerChange_,this)],this.changed()},e.prototype.handleLayersRemove_=function(t){var e=t.element,n=(0,i.sq)(e);this.listenerKeys_[n].forEach(S.bN),delete this.listenerKeys_[n],this.changed()},e.prototype.getLayers=function(){return this.get(X)},e.prototype.setLayers=function(t){this.set(X,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 o=this.getLayerState(),r=o.zIndex;t||void 0!==o.zIndex||(r=0);for(var i=n,s=e.length;i<s;i++){var l=e[i];l.opacity*=o.opacity,l.visible=l.visible&&o.visible,l.maxResolution=Math.min(l.maxResolution,o.maxResolution),l.minResolution=Math.max(l.minResolution,o.minResolution),l.minZoom=Math.max(l.minZoom,o.minZoom),l.maxZoom=Math.min(l.maxZoom,o.maxZoom),void 0!==o.extent&&(void 0!==l.extent?l.extent=(0,a.Ed)(l.extent,o.extent):l.extent=o.extent),void 0===l.zIndex&&(l.zIndex=r)}return e},e.prototype.getSourceState=function(){return E.Z.READY},e}(U.Z);const V=q;var Y=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const H=function(t){function e(e,n,o){var r=t.call(this,e)||this;return r.map=n,r.frameState=void 0!==o?o:null,r}return Y(e,t),e}(j.ZP);var 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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const B=function(t){function e(e,n,o,r,i){var s=t.call(this,e,n,i)||this;return s.originalEvent=o,s.pixel_=null,s.coordinate_=null,s.dragging=void 0!==r&&r,s}return W(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}(H),J={SINGLECLICK:"singleclick",CLICK:G.Z.CLICK,DBLCLICK:G.Z.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},Q="pointerdown";var $=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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const tt=function(t){function e(e,n){var o=t.call(this,e)||this;o.map_=e,o.clickTimeoutId_,o.emulateClicks_=!1,o.dragging_=!1,o.dragListenerKeys_=[],o.moveTolerance_=void 0===n?1:n,o.down_=null;var r=o.map_.getViewport();return o.activePointers_=0,o.trackedTouches_={},o.element_=r,o.pointerdownListenerKey_=(0,S.oL)(r,Q,o.handlePointerDown_,o),o.originalPointerMoveEvent_,o.relayedListenerKey_=(0,S.oL)(r,"pointermove",o.relayEvent_,o),o.boundHandleTouchMove_=o.handleTouchMove_.bind(o),o.element_.addEventListener(G.Z.TOUCHMOVE,o.boundHandleTouchMove_,!!T.bM&&{passive:!1}),o}return $(e,t),e.prototype.emulateClick_=function(t){var e=new B(J.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new B(J.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new B(J.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t;e.type==J.POINTERUP||e.type==J.POINTERCANCEL?delete this.trackedTouches_[e.pointerId]:e.type==J.POINTERDOWN&&(this.trackedTouches_[e.pointerId]=!0),this.activePointers_=Object.keys(this.trackedTouches_).length},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new B(J.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(S.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 B(J.POINTERDOWN,this.map_,t);for(var n in this.dispatchEvent(e),this.down_={},t){var o=t[n];this.down_[n]="function"==typeof o?r.Zn:o}if(0===this.dragListenerKeys_.length){var i=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,S.oL)(i,J.POINTERMOVE,this.handlePointerMove_,this),(0,S.oL)(i,J.POINTERUP,this.handlePointerUp_,this),(0,S.oL)(this.element_,J.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==i&&this.dragListenerKeys_.push((0,S.oL)(this.element_.getRootNode(),J.POINTERUP,this.handlePointerUp_,this))}},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.dragging_=!0;var e=new B(J.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 B(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,S.bN)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(G.Z.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,S.bN)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(S.bN),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(C.Z);var et=n(2126);const nt="layergroup",ot="size",rt="target",it="view";var st=1/0;const at=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,O.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 o=this.keyFunction_(n);return delete this.queuedElements_[o],n},t.prototype.enqueue=function(t){(0,l.h)(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=st&&(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_,o=e.length,r=e[t],i=n[t],s=t;t<o>>1;){var a=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),c=l<o&&n[l]<n[a]?l:a;e[t]=e[c],n[t]=n[c],t=c}e[t]=r,n[t]=i,this.siftDown_(s,t)},t.prototype.siftDown_=function(t,e){for(var n=this.elements_,o=this.priorities_,r=n[e],i=o[e];e>t;){var s=this.getParentIndex_(e);if(!(o[s]>i))break;n[e]=n[s],o[e]=o[s],e=s}n[e]=r,o[e]=i},t.prototype.reprioritize=function(){var t,e,n,o=this.priorityFunction_,r=this.elements_,i=this.priorities_,s=0,a=r.length;for(e=0;e<a;++e)(n=o(t=r[e]))==st?delete this.queuedElements_[this.keyFunction_(t)]:(i[s]=n,r[s++]=t);r.length=s,i.length=s,this.heapify_()},t}();var lt=n(7195),ct=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const ut=function(t){function e(e,n){var o=t.call(this,(function(t){return e.apply(null,t)}),(function(t){return t[0].getKey()}))||this;return o.boundHandleTileChange_=o.handleTileChange.bind(o),o.tileChangeCallback_=n,o.tilesLoading_=0,o.tilesLoadingKeys_={},o}return ct(e,t),e.prototype.enqueue=function(e){var n=t.prototype.enqueue.call(this,e);return n&&e[0].addEventListener(G.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(n===lt.Z.LOADED||n===lt.Z.ERROR||n===lt.Z.EMPTY){e.removeEventListener(G.Z.CHANGE,this.boundHandleTileChange_);var o=e.getKey();o in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[o],--this.tilesLoading_),this.tileChangeCallback_()}},e.prototype.loadMoreTiles=function(t,e){for(var n,o,r=0;this.tilesLoading_<t&&r<e&&this.getCount()>0;)o=(n=this.dequeue()[0]).getKey(),n.getState()!==lt.Z.IDLE||o in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[o]=!0,++this.tilesLoading_,++r,n.load())},e}(at);var ht=n(9090),pt=n(7755),dt=n(8857),ft=n(4307),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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const vt=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var o=function(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var n,o,r,i={},s=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new V({layers:t.layers});return i.layergroup=s,i.target=t.target,i.view=void 0!==t.view?t.view:new ht.default,void 0!==t.controls&&(Array.isArray(t.controls)?n=new z(t.controls.slice()):((0,l.h)("function"==typeof t.controls.getArray,47),n=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?o=new z(t.interactions.slice()):((0,l.h)("function"==typeof t.interactions.getArray,48),o=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?r=new z(t.overlays.slice()):((0,l.h)("function"==typeof t.overlays.getArray,49),r=t.overlays):r=new z,{controls:n,interactions:o,keyboardEventTarget:e,overlays:r,values:i}}(e);return n.boundHandleBrowserEvent_=n.handleBrowserEvent.bind(n),n.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,n.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:T.MP,n.postRenderTimeoutHandle_,n.animationDelayKey_,n.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(n),n.coordinateToPixelTransform_=(0,s.Ue)(),n.pixelToCoordinateTransform_=(0,s.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_=o.keyboardEventTarget,n.keyHandlerKeys_=null,n.controls=o.controls||new z,n.interactions=o.interactions||new z,n.overlays_=o.overlays,n.overlayIdIndex_={},n.renderer_=null,n.handleResize_,n.postRenderFunctions_=[],n.tileQueue_=new ut(n.getTilePriority.bind(n),n.handleTileChange_.bind(n)),n.addChangeListener(nt,n.handleLayerGroupChanged_),n.addChangeListener(it,n.handleViewChanged_),n.addChangeListener(ot,n.handleSizeChanged_),n.addChangeListener(rt,n.handleTargetChanged_),n.setProperties(o.values),n.controls.addEventListener(M,function(t){t.element.setMap(this)}.bind(n)),n.controls.addEventListener(Z,function(t){t.element.setMap(null)}.bind(n)),n.interactions.addEventListener(M,function(t){t.element.setMap(this)}.bind(n)),n.interactions.addEventListener(Z,function(t){t.element.setMap(null)}.bind(n)),n.overlays_.addEventListener(M,function(t){this.addOverlayInternal_(t.element)}.bind(n)),n.overlays_.addEventListener(Z,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 gt(e,t),e.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},e.prototype.addControl=function(t){this.getControls().push(t)},e.prototype.addInteraction=function(t){this.getInteractions().push(t)},e.prototype.addLayer=function(t){this.getLayerGroup().getLayers().push(t)},e.prototype.addOverlay=function(t){this.getOverlays().push(t)},e.prototype.addOverlayInternal_=function(t){var e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)},e.prototype.disposeInternal=function(){this.setTarget(null),t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtPixel=function(t,e,n){if(this.frameState_){var o=this.getCoordinateFromPixelInternal(t),i=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,s=void 0!==n.layerFilter?n.layerFilter:r.uX,a=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(o,this.frameState_,i,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.forEachLayerAtPixel=function(t,e,n){if(this.frameState_){var o=n||{},i=void 0!==o.hitTolerance?o.hitTolerance:0,s=o.layerFilter||r.uX;return this.renderer_.forEachLayerAtPixel(t,this.frameState_,i,e,s)}},e.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_)return!1;var n=this.getCoordinateFromPixelInternal(t),o=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:r.uX,i=void 0!==e.hitTolerance?e.hitTolerance:0,s=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,i,s,o,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(rt)},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,dt.lO)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())},e.prototype.getCoordinateFromPixelInternal=function(t){var e=this.frameState_;return e?(0,s.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(nt)},e.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},e.prototype.getLoading=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var o=t[e].layer.getSource();if(o&&o.loading)return!0}return!1},e.prototype.getPixelFromCoordinate=function(t){var e=(0,dt.Vs)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)},e.prototype.getPixelFromCoordinateInternal=function(t){var e=this.frameState_;return e?(0,s.nn)(e.coordinateToPixelTransform,t.slice(0,2)):null},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.getSize=function(){return this.get(ot)},e.prototype.getView=function(){return this.get(it)},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,o){return function(t,e,n,o,r){if(!t||!(n in t.wantedTiles))return st;if(!t.wantedTiles[n][e.getKey()])return st;var i=t.viewState.center,s=o[0]-i[0],a=o[1]-i[1];return 65536*Math.log(r)+Math.sqrt(s*s+a*a)/r}(this.frameState_,t,e,n,o)},e.prototype.handleBrowserEvent=function(t,e){var n=e||t.type,o=new B(n,this,t);this.handleMapBrowserEvent(o)},e.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){var e=t.originalEvent,n=e.type;if(n===Q||n===G.Z.WHEEL||n===G.Z.KEYDOWN){var o=this.getOwnerDocument(),r=this.viewport_.getRootNode?this.viewport_.getRootNode():o,i=e.target;if(this.overlayContainerStopEvent_.contains(i)||!(r===o?o.documentElement:r).contains(i))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_,o=n;if(t){var r=t.viewHints;if(r[pt.Z.ANIMATING]||r[pt.Z.INTERACTING]){var i=Date.now()-t.time>8;n=i?0:8,o=i?0:2}}e.getTilesLoading()<n&&(e.reprioritize(),e.loadMoreTiles(n,o))}!t||!this.hasListener(b.Z.RENDERCOMPLETE)||t.animate||this.tileQueue_.getTilesLoading()||this.getLoading()||this.renderer_.dispatchRenderEvent(b.Z.RENDERCOMPLETE,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(){var t;if(this.getTarget()&&(t=this.getTargetElement()),this.mapBrowserEventHandler_){for(var e=0,n=this.keyHandlerKeys_.length;e<n;++e)(0,S.bN)(this.keyHandlerKeys_[e]);this.keyHandlerKeys_=null,this.viewport_.removeEventListener(G.Z.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(G.Z.WHEEL,this.boundHandleBrowserEvent_),void 0!==this.handleResize_&&(removeEventListener(G.Z.RESIZE,this.handleResize_,!1),this.handleResize_=void 0),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,(0,R.ZF)(this.viewport_)}if(t){for(var o in t.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new tt(this,this.moveTolerance_),J)this.mapBrowserEventHandler_.addEventListener(J[o],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(G.Z.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(G.Z.WHEEL,this.boundHandleBrowserEvent_,!!T.bM&&{passive:!1});var r=this.keyboardEventTarget_?this.keyboardEventTarget_:t;this.keyHandlerKeys_=[(0,S.oL)(r,G.Z.KEYDOWN,this.handleBrowserEvent,this),(0,S.oL)(r,G.Z.KEYPRESS,this.handleBrowserEvent,this)],this.handleResize_||(this.handleResize_=this.updateSize.bind(this),window.addEventListener(G.Z.RESIZE,this.handleResize_,!1))}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()},e.prototype.handleTileChange_=function(){this.render()},e.prototype.handleViewPropertyChanged_=function(){this.render()},e.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&((0,S.bN)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,S.bN)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=(0,S.oL)(t,_.Z.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,S.oL)(t,G.Z.CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()},e.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(S.bN),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.layerGroupPropertyListenerKeys_=[(0,S.oL)(t,_.Z.PROPERTYCHANGE,this.render,this),(0,S.oL)(t,G.Z.CHANGE,this.render,this)]),this.render()},e.prototype.isRendered=function(){return!!this.frameState_},e.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},e.prototype.redrawText=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var o=t[e].layer;o.hasRenderer()&&o.getRenderer().handleFontsChanged()}},e.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},e.prototype.removeControl=function(t){return this.getControls().remove(t)},e.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},e.prototype.removeLayer=function(t){return this.getLayerGroup().getLayers().remove(t)},e.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},e.prototype.renderFrame_=function(t){var e=this,n=this.getSize(),o=this.getView(),r=this.frameState_,i=null;if(void 0!==n&&(0,ft.py)(n)&&o&&o.isDef()){var s=o.getHints(this.frameState_?this.frameState_.viewHints:void 0),l=o.getState();i={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:(0,a.p8)(l.center,l.resolution,l.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:l,viewHints:s,wantedTiles:{}}}this.frameState_=i,this.renderer_.renderFrame(i),i&&(i.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,i.postRenderFunctions),r&&(!this.previousExtent_||!(0,a.xb)(this.previousExtent_)&&!(0,a.fS)(i.extent,this.previousExtent_))&&(this.dispatchEvent(new H(et.Z.MOVESTART,this,r)),this.previousExtent_=(0,a.YN)(this.previousExtent_)),this.previousExtent_&&!i.viewHints[pt.Z.ANIMATING]&&!i.viewHints[pt.Z.INTERACTING]&&!(0,a.fS)(i.extent,this.previousExtent_)&&(this.dispatchEvent(new H(et.Z.MOVEEND,this,i)),(0,a.d9)(i.extent,this.previousExtent_))),this.dispatchEvent(new H(et.Z.POSTRENDER,this,i)),this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((function(){e.postRenderTimeoutHandle_=void 0,e.handlePostRender()}),0))},e.prototype.setLayerGroup=function(t){this.set(nt,t)},e.prototype.setSize=function(t){this.set(ot,t)},e.prototype.setTarget=function(t){this.set(rt,t)},e.prototype.setView=function(t){this.set(it,t)},e.prototype.updateSize=function(){var t=this.getTargetElement(),e=void 0;if(t){var n=getComputedStyle(t),o=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(o)||isNaN(r)||(e=[o,r],!(0,ft.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}(x.Z);var yt=n(8775),_t=n(5537),mt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const bt=function(t){function e(e){var n=this,o=e||{};(n=t.call(this,{element:document.createElement("div"),render:o.render,target:o.target})||this).ulElement_=document.createElement("ul"),n.collapsed_=void 0===o.collapsed||o.collapsed,n.userCollapsed_=n.collapsed_,n.overrideCollapsible_=void 0!==o.collapsible,n.collapsible_=void 0===o.collapsible||o.collapsible,n.collapsible_||(n.collapsed_=!1);var r=void 0!==o.className?o.className:"ol-attribution",i=void 0!==o.tipLabel?o.tipLabel:"Attributions",s=void 0!==o.expandClassName?o.expandClassName:r+"-expand",a=void 0!==o.collapseLabel?o.collapseLabel:"»",l=void 0!==o.collapseClassName?o.collapseClassName:r+"-collpase";"string"==typeof a?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=a,n.collapseLabel_.className=l):n.collapseLabel_=a;var c=void 0!==o.label?o.label:"i";"string"==typeof c?(n.label_=document.createElement("span"),n.label_.textContent=c,n.label_.className=s):n.label_=c;var u=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=i,n.toggleButton_.appendChild(u),n.toggleButton_.addEventListener(G.Z.CLICK,n.handleClick_.bind(n),!1);var h=r+" "+w.XV+" "+w.hg+(n.collapsed_&&n.collapsible_?" "+w.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 mt(e,t),e.prototype.collectSourceAttributions_=function(t){for(var e={},n=[],o=!0,r=t.layerStatesArray,i=0,s=r.length;i<s;++i){var a=r[i];if((0,d.j)(a,t.viewState)){var l=a.layer.getSource();if(l){var c=l.getAttributions();if(c){var u=c(t);if(u)if(o=o&&!1!==l.getAttributionsCollapsible(),Array.isArray(u))for(var h=0,p=u.length;h<p;++h)u[h]in e||(n.push(u[h]),e[u[h]]=!0);else u in e||(n.push(u),e[u]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(o),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,_t.fS)(e,this.renderedAttributions_)){(0,R.ep)(this.ulElement_);for(var o=0,r=e.length;o<r;++o){var i=document.createElement("li");i.innerHTML=e[o],this.ulElement_.appendChild(i)}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(w.hN),this.collapsed_?(0,R.$H)(this.collapseLabel_,this.label_):(0,R.$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}(yt.Z);var Et=n(1015),wt=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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xt=function(t){function e(e){var n=this,o=e||{};n=t.call(this,{element:document.createElement("div"),render:o.render,target:o.target})||this;var r=void 0!==o.className?o.className:"ol-rotate",i=void 0!==o.label?o.label:"⇧",s=void 0!==o.compassClassName?o.compassClassName:"ol-compass";n.label_=null,"string"==typeof i?(n.label_=document.createElement("span"),n.label_.className=s,n.label_.textContent=i):(n.label_=i,n.label_.classList.add(s));var a=o.tipLabel?o.tipLabel:"Reset rotation",l=document.createElement("button");l.className=r+"-reset",l.setAttribute("type","button"),l.title=a,l.appendChild(n.label_),l.addEventListener(G.Z.CLICK,n.handleClick_.bind(n),!1);var c=r+" "+w.XV+" "+w.hg,u=n.element;return u.className=c,u.appendChild(l),n.callResetNorth_=o.resetNorth?o.resetNorth:void 0,n.duration_=void 0!==o.duration?o.duration:250,n.autoHide_=void 0===o.autoHide||o.autoHide,n.rotation_=void 0,n.autoHide_&&n.element.classList.add(w.oj),n}return wt(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:Et.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 o="rotate("+n+"rad)";if(this.autoHide_){var r=this.element.classList.contains(w.oj);r||0!==n?r&&0!==n&&this.element.classList.remove(w.oj):this.element.classList.add(w.oj)}this.label_.style.transform=o}this.rotation_=n}},e}(yt.Z);const Ct=xt;var Tt=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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const Ot=function(t){function e(e){var n=this,o=e||{};n=t.call(this,{element:document.createElement("div"),target:o.target})||this;var r=void 0!==o.className?o.className:"ol-zoom",i=void 0!==o.delta?o.delta:1,s=void 0!==o.zoomInClassName?o.zoomInClassName:r+"-in",a=void 0!==o.zoomOutClassName?o.zoomOutClassName:r+"-out",l=void 0!==o.zoomInLabel?o.zoomInLabel:"+",c=void 0!==o.zoomOutLabel?o.zoomOutLabel:"−",u=void 0!==o.zoomInTipLabel?o.zoomInTipLabel:"Zoom in",h=void 0!==o.zoomOutTipLabel?o.zoomOutTipLabel:"Zoom out",p=document.createElement("button");p.className=s,p.setAttribute("type","button"),p.title=u,p.appendChild("string"==typeof l?document.createTextNode(l):l),p.addEventListener(G.Z.CLICK,n.handleClick_.bind(n,i),!1);var d=document.createElement("button");d.className=a,d.setAttribute("type","button"),d.title=h,d.appendChild("string"==typeof c?document.createTextNode(c):c),d.addEventListener(G.Z.CLICK,n.handleClick_.bind(n,-i),!1);var f=r+" "+w.XV+" "+w.hg,g=n.element;return g.className=f,g.appendChild(p),g.appendChild(d),n.duration_=void 0!==o.duration?o.duration:250,n}return Tt(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 o=e.getConstrainedZoom(n+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:o,duration:this.duration_,easing:Et.Vv})):e.setZoom(o)}}},e}(yt.Z),Rt="active";var 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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();function St(t,e,n,o){var r=t.getZoom();if(void 0!==r){var i=t.getConstrainedZoom(r+e),s=t.getResolutionForZoom(i);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:s,anchor:n,duration:void 0!==o?o:250,easing:Et.Vv})}}const Lt=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 Pt(e,t),e.prototype.getActive=function(){return this.get(Rt)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(Rt,t)},e.prototype.setMap=function(t){this.map_=t},e}(x.Z);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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const At=function(t){function e(e){var n=t.call(this)||this,o=e||{};return n.delta_=o.delta?o.delta:1,n.duration_=void 0!==o.duration?o.duration:250,n}return It(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==J.DBLCLICK){var n=t.originalEvent,o=t.map,r=t.coordinate,i=n.shiftKey?-this.delta_:this.delta_;St(o.getView(),i,r,this.duration_),n.preventDefault(),e=!0}return!e},e}(Lt);var Mt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();function Zt(t){for(var e=t.length,n=0,o=0,r=0;r<e;r++)n+=t[r].clientX,o+=t[r].clientY;return[n/e,o/e]}const jt=function(t){function e(e){var n=this,o=e||{};return n=t.call(this,o)||this,o.handleDownEvent&&(n.handleDownEvent=o.handleDownEvent),o.handleDragEvent&&(n.handleDragEvent=o.handleDragEvent),o.handleMoveEvent&&(n.handleMoveEvent=o.handleMoveEvent),o.handleUpEvent&&(n.handleUpEvent=o.handleUpEvent),o.stopDown&&(n.stopDown=o.stopDown),n.handlingDownUpSequence=!1,n.trackedPointers_={},n.targetPointers=[],n}return Mt(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==J.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==J.POINTERUP){var n=this.handleUpEvent(t);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(t.type==J.POINTERDOWN){var o=this.handleDownEvent(t);this.handlingDownUpSequence=o,e=this.stopDown(o)}else t.type==J.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===J.POINTERDOWN||e===J.POINTERDRAG||e===J.POINTERUP}(t)){var e=t.originalEvent,n=e.pointerId.toString();t.type==J.POINTERUP?delete this.trackedPointers_[n]:(t.type==J.POINTERDOWN||n in this.trackedPointers_)&&(this.trackedPointers_[n]=e),this.targetPointers=(0,O.KX)(this.trackedPointers_)}},e}(Lt);function Nt(t){var e=arguments;return function(t){for(var n=!0,o=0,r=e.length;o<r&&(n=n&&e[o](t));++o);return n}}var Ft=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},Dt=function(t){return!t.map.getTargetElement().hasAttribute("tabindex")||function(t){return t.target.getTargetElement().contains(document.activeElement)}(t)},kt=r.uX,zt=function(t){var e=t.originalEvent;return 0==e.button&&!(T.G$&&T.tK&&e.ctrlKey)},Gt=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},Ut=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},Kt=function(t){var e=t.originalEvent.target.tagName;return"INPUT"!==e&&"SELECT"!==e&&"TEXTAREA"!==e},Xt=function(t){var e=t.originalEvent;return(0,l.h)(void 0!==e,56),"mouse"==e.pointerType},qt=function(t){var e=t.originalEvent;return(0,l.h)(void 0!==e,56),e.isPrimary&&0===e.button},Vt=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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const Yt=function(t){function e(e){var n=t.call(this,{stopDown:r.Dv})||this,o=e||{};n.kinetic_=o.kinetic,n.lastCentroid=null,n.lastPointersCount_,n.panning_=!1;var i=o.condition?o.condition:Nt(Gt,qt);return n.condition_=o.onFocusOnly?Nt(Dt,i):i,n.noKinetic_=!1,n}return Vt(e,t),e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,n=Zt(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var o=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],r=t.map.getView();(0,f.bA)(o,r.getResolution()),(0,f.U1)(o,r.getRotation()),r.adjustCenterInternal(o)}}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 o=this.kinetic_.getDistance(),r=this.kinetic_.getAngle(),i=n.getCenterInternal(),s=e.getPixelFromCoordinateInternal(i),a=e.getCoordinateFromPixelInternal([s[0]-o*Math.cos(r),s[1]-o*Math.sin(r)]);n.animateInternal({center:n.getConstrainedCenter(a),duration:500,easing:Et.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}(jt);var Ht=n(828),Wt=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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const Bt=function(t){function e(e){var n=this,o=e||{};return(n=t.call(this,{stopDown:r.Dv})||this).condition_=o.condition?o.condition:Ft,n.lastAngle_=void 0,n.duration_=void 0!==o.duration?o.duration:250,n}return Wt(e,t),e.prototype.handleDragEvent=function(t){if(Xt(t)){var e=t.map,n=e.getView();if(n.getConstraints().rotation!==Ht.h$){var o=e.getSize(),r=t.pixel,i=Math.atan2(o[1]/2-r[1],r[0]-o[0]/2);if(void 0!==this.lastAngle_){var s=i-this.lastAngle_;n.adjustRotationInternal(-s)}this.lastAngle_=i}}},e.prototype.handleUpEvent=function(t){return!Xt(t)||(t.map.getView().endInteraction(this.duration_),!1)},e.prototype.handleDownEvent=function(t){return!(!Xt(t)||!zt(t)||!this.condition_(t)||(t.map.getView().beginInteraction(),this.lastAngle_=void 0,0))},e}(jt);var Jt=n(1424),Qt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const $t=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 Qt(e,t),e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,n="px",o=this.element_.style;o.left=Math.min(t[0],e[0])+n,o.top=Math.min(t[1],e[1])+n,o.width=Math.abs(e[0]-t[0])+n,o.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 Jt.ZP([n])},e.prototype.getGeometry=function(){return this.geometry_},e}(o.Z);var te=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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ee=function(t){function e(e,n,o){var r=t.call(this,e)||this;return r.coordinate=n,r.mapBrowserEvent=o,r}return te(e,t),e}(j.ZP);const ne=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var o=e||{};return n.box_=new $t(o.className||"ol-dragbox"),n.minArea_=void 0!==o.minArea?o.minArea:64,o.onBoxEnd&&(n.onBoxEnd=o.onBoxEnd),n.startPixel_=null,n.condition_=o.condition?o.condition:zt,n.boxEndCondition_=o.boxEndCondition?o.boxEndCondition:n.defaultBoxEndCondition,n}return te(e,t),e.prototype.defaultBoxEndCondition=function(t,e,n){var o=n[0]-e[0],r=n[1]-e[1];return o*o+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 ee("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 ee(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 ee("boxstart",t.coordinate,t)),!0)},e.prototype.onBoxEnd=function(t){},e}(jt);var oe=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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const re=function(t){function e(e){var n=this,o=e||{},r=o.condition?o.condition:Ut;return(n=t.call(this,{condition:r,className:o.className||"ol-dragzoom",minArea:o.minArea})||this).duration_=void 0!==o.duration?o.duration:200,n.out_=void 0!==o.out&&o.out,n}return oe(e,t),e.prototype.onBoxEnd=function(t){var e=this.getMap().getView(),n=this.getGeometry();if(this.out_){var o=e.rotatedExtentForGeometry(n),r=e.getResolutionForExtentInternal(o),i=e.getResolution()/r;(n=n.clone()).scale(i*i)}e.fitInternal(n,{duration:this.duration_,easing:Et.Vv})},e}(ne);var ie=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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const se=function(t){function e(e){var n=t.call(this)||this,o=e||{};return n.defaultCondition_=function(t){return Gt(t)&&Kt(t)},n.condition_=void 0!==o.condition?o.condition:n.defaultCondition_,n.duration_=void 0!==o.duration?o.duration:100,n.pixelDelta_=void 0!==o.pixelDelta?o.pixelDelta:128,n}return ie(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==G.Z.KEYDOWN){var n=t.originalEvent,o=n.keyCode;if(this.condition_(t)&&(40==o||37==o||39==o||38==o)){var r=t.map.getView(),i=r.getResolution()*this.pixelDelta_,s=0,a=0;40==o?a=-i:37==o?s=-i:39==o?s=i:a=i;var l=[s,a];(0,f.U1)(l,r.getRotation()),function(t,e,n){var o=t.getCenterInternal();if(o){var r=[o[0]+e[0],o[1]+e[1]];t.animateInternal({duration:void 0!==n?n:250,easing:Et.GE,center:t.getConstrainedCenter(r)})}}(r,l,this.duration_),n.preventDefault(),e=!0}}return!e},e}(Lt);var ae=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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const le=function(t){function e(e){var n=t.call(this)||this,o=e||{};return n.condition_=o.condition?o.condition:Kt,n.delta_=o.delta?o.delta:1,n.duration_=void 0!==o.duration?o.duration:100,n}return ae(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==G.Z.KEYDOWN||t.type==G.Z.KEYPRESS){var n=t.originalEvent,o=n.charCode;if(this.condition_(t)&&(o=="+".charCodeAt(0)||o=="-".charCodeAt(0))){var r=t.map,i=o=="+".charCodeAt(0)?this.delta_:-this.delta_;St(r.getView(),i,void 0,this.duration_),n.preventDefault(),e=!0}}return!e},e}(Lt),ce=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 o=this.points_[e+2]-this.points_[n+2];if(o<1e3/60)return!1;var r=this.points_[e]-this.points_[n],i=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(i,r),this.initialVelocity_=Math.sqrt(r*r+i*i)/o,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}();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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),he="trackpad";const pe=function(t){function e(e){var n=this,o=e||{};(n=t.call(this,o)||this).totalDelta_=0,n.lastDelta_=0,n.maxDelta_=void 0!==o.maxDelta?o.maxDelta:1,n.duration_=void 0!==o.duration?o.duration:250,n.timeout_=void 0!==o.timeout?o.timeout:80,n.useAnchor_=void 0===o.useAnchor||o.useAnchor,n.constrainResolution_=void 0!==o.constrainResolution&&o.constrainResolution;var r=o.condition?o.condition:kt;return n.condition_=o.onFocusOnly?Nt(Dt,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 ue(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!==G.Z.WHEEL)return!0;var e,n=t.map,o=t.originalEvent;if(o.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==G.Z.WHEEL&&(e=o.deltaY,T.V&&o.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=T.MP),o.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?he:"wheel");var i=n.getView();if(this.mode_===he&&!i.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(i.getAnimating()&&i.cancelAnimations(),i.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),i.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,c.uZ)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),St(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}(Lt);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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const fe=function(t){function e(e){var n=this,o=e||{},i=o;return i.stopDown||(i.stopDown=r.Dv),(n=t.call(this,i)||this).anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=void 0!==o.threshold?o.threshold:.3,n.duration_=void 0!==o.duration?o.duration:250,n}return de(e,t),e.prototype.handleDragEvent=function(t){var e=0,n=this.targetPointers[0],o=this.targetPointers[1],r=Math.atan2(o.clientY-n.clientY,o.clientX-n.clientX);if(void 0!==this.lastAngle_){var i=r-this.lastAngle_;this.rotationDelta_+=i,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=i}this.lastAngle_=r;var s=t.map,a=s.getView();if(a.getConstraints().rotation!==Ht.h$){var l=s.getViewport().getBoundingClientRect(),c=Zt(this.targetPointers);c[0]-=l.left,c[1]-=l.top,this.anchor_=s.getCoordinateFromPixelInternal(c),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}(jt);var ge=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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const ve=function(t){function e(e){var n=this,o=e||{},i=o;return i.stopDown||(i.stopDown=r.Dv),(n=t.call(this,i)||this).anchor_=null,n.duration_=void 0!==o.duration?o.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return ge(e,t),e.prototype.handleDragEvent=function(t){var e=1,n=this.targetPointers[0],o=this.targetPointers[1],r=n.clientX-o.clientX,i=n.clientY-o.clientY,s=Math.sqrt(r*r+i*i);void 0!==this.lastDistance_&&(e=this.lastDistance_/s),this.lastDistance_=s;var a=t.map,l=a.getView();1!=e&&(this.lastScaleDelta_=e);var c=a.getViewport().getBoundingClientRect(),u=Zt(this.targetPointers);u[0]-=c.left,u[1]-=c.top,this.anchor_=a.getCoordinateFromPixelInternal(u),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}(jt);var 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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_e=function(t){function e(e){return(e=(0,O.f0)({},e)).controls||(e.controls=function(t){var e={},n=new z;return(void 0===e.zoom||e.zoom)&&n.push(new Ot(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&n.push(new Ct(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&n.push(new bt(e.attributionOptions)),n}()),e.interactions||(e.interactions=function(t){var e={onFocusOnly:!0}||{},n=new z,o=new ce(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&n.push(new Bt),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&n.push(new At({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&n.push(new Yt({onFocusOnly:e.onFocusOnly,kinetic:o})),(void 0===e.pinchRotate||e.pinchRotate)&&n.push(new fe),(void 0===e.pinchZoom||e.pinchZoom)&&n.push(new ve({duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(n.push(new se),n.push(new le({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&n.push(new pe({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&n.push(new re({duration:e.zoomDuration})),n}()),t.call(this,e)||this}return ye(e,t),e.prototype.createRenderer=function(){return new I(this)},e}(vt);const me=_e},2126:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const o={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend"}},2971:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var o,r=n(291),i=n(5990),s=n(2706),a=n(9374),l=n(4187),c=(o=function(t,e){return o=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])},o(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}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(e,n,o){var r=t.call(this,e)||this;return r.key=n,r.oldValue=o,r}return c(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 c(e,t),e.prototype.get=function(t){var e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},e.prototype.getProperties=function(){return this.values_&&(0,a.f0)({},this.values_)||{}},e.prototype.hasProperties=function(){return!!this.values_},e.prototype.notify=function(t,e){var n;n="change:"+t,this.dispatchEvent(new u(n,t,e)),n=i.Z.PROPERTYCHANGE,this.dispatchEvent(new u(n,t,e))},e.prototype.addChangeListener=function(t,e){this.addEventListener("change:"+t,e)},e.prototype.removeChangeListener=function(t,e){this.removeEventListener("change:"+t,e)},e.prototype.set=function(t,e,n){var o=this.values_||(this.values_={});if(n)o[t]=e;else{var r=o[t];o[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.Z)},5990:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const o={PROPERTYCHANGE:"propertychange"}},2706:(t,e,n)=>{"use strict";n.d(e,{B:()=>c,Z:()=>u});var o,r=n(208),i=n(5487),s=n(5818),a=(o=function(t,e){return o=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])},o(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}o(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(i.Z.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,e){if(Array.isArray(t)){for(var n=t.length,o=new Array(n),r=0;r<n;++r)o[r]=(0,s.oL)(this,t[r],e);return o}return(0,s.oL)(this,t,e)},e.prototype.onceInternal=function(t,e){var n;if(Array.isArray(t)){var o=t.length;n=new Array(o);for(var r=0;r<o;++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)c(n);else if(Array.isArray(t))for(var o=0,r=t.length;o<r;++o)this.removeEventListener(t[o],e);else this.removeEventListener(t,e)},e}(r.Z);function c(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 u=l},2519:(t,e,n)=>{"use strict";n.d(e,{T:()=>r,Z:()=>i});var o=function(){function t(t,e,n,o){this.minX=t,this.maxX=e,this.minY=n,this.maxY=o}return t.prototype.contains=function(t){return this.containsXY(t[1],t[2])},t.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},t.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},t.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},t.prototype.extend=function(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)},t.prototype.getHeight=function(){return this.maxY-this.minY+1},t.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},t.prototype.getWidth=function(){return this.maxX-this.minX+1},t.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},t}();function r(t,e,n,r,i){return void 0!==i?(i.minX=t,i.maxX=e,i.minY=n,i.maxY=r,i):new o(t,e,n,r)}const i=o},7195:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const o={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},9090:(t,e,n)=>{"use strict";n.r(e),n.d(e,{createCenterConstraint:()=>L,createResolutionConstraint:()=>I,createRotationConstraint:()=>A,default:()=>j,isNoopAnimation:()=>M});var o=n(2971),r=n(4754),i=n(8375),s=n(7755);const a="center",l="resolution",c="rotation";var u=n(4768),h=n(8857),p=n(6885),d=n(1900),f=n(9515),g=n(9374),v=n(3983);function y(t,e,n){return function(o,r,i,s,a){if(o){var l=e?0:i[0]*r,c=e?0:i[1]*r,u=a?a[0]:0,h=a?a[1]:0,p=t[0]+l/2+u,d=t[2]-l/2+u,f=t[1]+c/2+h,g=t[3]-c/2+h;p>d&&(d=p=(d+p)/2),f>g&&(g=f=(g+f)/2);var y=(0,v.uZ)(o[0],p,d),_=(0,v.uZ)(o[1],f,g),m=30*r;return s&&n&&(y+=-m*Math.log(1+Math.max(0,p-o[0])/m)+m*Math.log(1+Math.max(0,o[0]-d)/m),_+=-m*Math.log(1+Math.max(0,f-o[1])/m)+m*Math.log(1+Math.max(0,o[1]-g)/m)),[y,_]}}}function _(t){return t}var m=n(7971),b=n(5537);function E(t,e,n,o){var r=(0,m.dz)(e)/n[0],i=(0,m.Cr)(e)/n[1];return o?Math.min(t,Math.max(r,i)):Math.min(t,Math.min(r,i))}function w(t,e,n){var o=Math.min(t,e);return o*=Math.log(1+50*Math.max(0,t/e-1))/50+1,n&&(o=Math.max(o,n),o/=Math.log(1+50*Math.max(0,n/t-1))/50+1),(0,v.uZ)(o,n/2,2*e)}function x(t,e,n,o,r){return function(i,s,a,l){if(void 0!==i){var c=o?E(t,o,a,r):t;return(void 0===n||n)&&l?w(i,c,e):(0,v.uZ)(i,e,c)}}}var C,T=n(828),O=n(1015),R=n(1424),P=(C=function(t,e){return C=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])},C(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}C(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function S(t,e){setTimeout((function(){t(e)}),0)}function L(t){if(void 0!==t.extent){var e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return y(t.extent,t.constrainOnlyCenter,e)}var n=(0,h.UQ)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&n.isGlobal()){var o=n.getExtent().slice();return o[0]=-1/0,o[2]=1/0,y(o,!1,!1)}return _}function I(t){var e,n,o,r=void 0!==t.minZoom?t.minZoom:0,s=void 0!==t.maxZoom?t.maxZoom:28,a=void 0!==t.zoomFactor?t.zoomFactor:2,l=void 0!==t.multiWorld&&t.multiWorld,c=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,p=void 0!==t.showFullExtent&&t.showFullExtent,d=(0,h.UQ)(t.projection,"EPSG:3857"),f=d.getExtent(),g=t.constrainOnlyCenter,y=t.extent;if(l||y||!d.isGlobal()||(g=!1,y=f),void 0!==t.resolutions){var _=t.resolutions;n=_[r],o=void 0!==_[s]?_[s]:_[_.length-1],e=t.constrainResolution?function(t,e,n,o){return function(r,i,s,a){if(void 0!==r){var l=t[0],c=t[t.length-1],u=n?E(l,n,s,o):l;if(a)return void 0===e||e?w(r,u,c):(0,v.uZ)(r,c,u);var h=Math.min(u,r),p=Math.floor((0,b.h7)(t,h,i));return t[p]>u&&p<t.length-1?t[p+1]:t[p]}}}(_,c,!g&&y,p):x(n,o,c,!g&&y,p)}else{var C=(f?Math.max((0,m.dz)(f),(0,m.Cr)(f)):360*h.Wm[i.ZP.DEGREES]/d.getMetersPerUnit())/u.S/Math.pow(2,0),T=C/Math.pow(2,28);void 0!==(n=t.maxResolution)?r=0:n=C/Math.pow(a,r),void 0===(o=t.minResolution)&&(o=void 0!==t.maxZoom?void 0!==t.maxResolution?n/Math.pow(a,s):C/Math.pow(a,s):T),s=r+Math.floor(Math.log(n/o)/Math.log(a)),o=n/Math.pow(a,s-r),e=t.constrainResolution?function(t,e,n,o,r,i){return function(s,a,l,c){if(void 0!==s){var u=r?E(e,r,l,i):e,h=void 0!==n?n:0;if(c)return void 0===o||o?w(s,u,h):(0,v.uZ)(s,h,u);var p=Math.ceil(Math.log(e/u)/Math.log(t)-1e-9),d=-a*(.5-1e-9)+.5,f=Math.min(u,s),g=Math.floor(Math.log(e/f)/Math.log(t)+d),y=Math.max(p,g),_=e/Math.pow(t,y);return(0,v.uZ)(_,h,u)}}}(a,n,o,c,!g&&y,p):x(n,o,c,!g&&y,p)}return{constraint:e,maxResolution:n,minResolution:o,minZoom:r,zoomFactor:a}}function A(t){if(void 0===t.enableRotation||t.enableRotation){var e=t.constrainRotation;return void 0===e||!0===e?(0,T.Gw)():!1===e?T.YP:"number"==typeof e?(0,T.gE)(e):T.YP}return T.h$}function M(t){return!(t.sourceCenter&&t.targetCenter&&!(0,d.fS)(t.sourceCenter,t.targetCenter))&&t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation}function Z(t,e,n,o,r){var i=Math.cos(-r),s=Math.sin(-r),a=t[0]*i-t[1]*s,l=t[1]*i+t[0]*s;return[(a+=(e[0]/2-n[0])*o)*i-(l+=(n[1]-e[1]/2)*o)*(s=-s),l*i+a*s]}const j=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var o=(0,g.f0)({},e);return n.hints_=[0,0],n.animations_=[],n.updateAnimationKey_,n.projection_=(0,h.UQ)(o.projection,"EPSG:3857"),n.viewportSize_=[100,100],n.targetCenter_=null,n.targetResolution_,n.targetRotation_,n.cancelAnchor_=void 0,o.center&&(o.center=(0,h.Vs)(o.center,n.projection_)),o.extent&&(o.extent=(0,h.dY)(o.extent,n.projection_)),n.applyOptions_(o),n}return P(e,t),e.prototype.applyOptions_=function(t){var e=I(t);this.maxResolution_=e.maxResolution,this.minResolution_=e.minResolution,this.zoomFactor_=e.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=e.minZoom;var n=L(t),o=e.constraint,r=A(t);this.constraints_={center:n,resolution:o,rotation:r},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom),this.setProperties({}),this.options_=t},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 o=t||[0,0,0,0];e=e||[0,0,0,0];var r=this.getResolution(),i=r/2*(o[3]-e[3]+e[1]-o[1]),s=r/2*(o[0]-e[0]+e[2]-o[2]);this.setCenterInternal([n[0]+i,n[1]-s])}},enumerable:!1,configurable:!0}),e.prototype.getUpdatedOptions_=function(t){var e=(0,g.f0)({},this.options_);return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),(0,g.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 o=arguments[n];o.center&&((o=(0,g.f0)({},o)).center=(0,h.Vs)(o.center,this.getProjection())),o.anchor&&((o=(0,g.f0)({},o)).anchor=(0,h.Vs)(o.anchor,this.getProjection())),e[n]=o}this.animateInternal.apply(this,e)},e.prototype.animateInternal=function(t){var e,n=arguments.length;if(n>1&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n),!this.isDef()){var o=arguments[n-1];return o.center&&this.setCenterInternal(o.center),void 0!==o.zoom&&this.setZoom(o.zoom),void 0!==o.rotation&&this.setRotation(o.rotation),void(e&&S(e,!0))}for(var r=Date.now(),i=this.targetCenter_.slice(),a=this.targetResolution_,l=this.targetRotation_,c=[],u=0;u<n;++u){var h=arguments[u],p={start:r,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||O.rd,callback:e};if(h.center&&(p.sourceCenter=i,p.targetCenter=h.center.slice(),i=p.targetCenter),void 0!==h.zoom?(p.sourceResolution=a,p.targetResolution=this.getResolutionForZoom(h.zoom),a=p.targetResolution):h.resolution&&(p.sourceResolution=a,p.targetResolution=h.resolution,a=p.targetResolution),void 0!==h.rotation){p.sourceRotation=l;var d=(0,v.$W)(h.rotation-l+Math.PI,2*Math.PI)-Math.PI;p.targetRotation=l+d,l=p.targetRotation}M(p)?p.complete=!0:r+=p.duration,c.push(p)}this.animations_.push(c),this.setHint(s.Z.ANIMATING,1),this.updateAnimations_()},e.prototype.getAnimating=function(){return this.hints_[s.Z.ANIMATING]>0},e.prototype.getInteracting=function(){return this.hints_[s.Z.INTERACTING]>0},e.prototype.cancelAnimations=function(){var t;this.setHint(s.Z.ANIMATING,-this.hints_[s.Z.ANIMATING]);for(var e=0,n=this.animations_.length;e<n;++e){var o=this.animations_[e];if(o[0].callback&&S(o[0].callback,!1),!t)for(var r=0,i=o.length;r<i;++r){var a=o[r];if(!a.complete){t=a.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t},e.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var t=Date.now(),e=!1,n=this.animations_.length-1;n>=0;--n){for(var o=this.animations_[n],r=!0,i=0,a=o.length;i<a;++i){var l=o[i];if(!l.complete){var c=t-l.start,u=l.duration>0?c/l.duration:1;u>=1?(l.complete=!0,u=1):r=!1;var h=l.easing(u);if(l.sourceCenter){var p=l.sourceCenter[0],d=l.sourceCenter[1],f=p+h*(l.targetCenter[0]-p),g=d+h*(l.targetCenter[1]-d);this.targetCenter_=[f,g]}if(l.sourceResolution&&l.targetResolution){var y=1===h?l.targetResolution:l.sourceResolution+h*(l.targetResolution-l.sourceResolution);if(l.anchor){var _=this.getViewportSize_(this.getRotation()),m=this.constraints_.resolution(y,0,_,!0);this.targetCenter_=this.calculateCenterZoom(m,l.anchor)}this.targetResolution_=y,this.applyTargetState_(!0)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var b=1===h?(0,v.$W)(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+h*(l.targetRotation-l.sourceRotation);if(l.anchor){var E=this.constraints_.rotation(b,!0);this.targetCenter_=this.calculateCenterRotate(E,l.anchor)}this.targetRotation_=b}if(this.applyTargetState_(!0),e=!0,!l.complete)break}}if(r){this.animations_[n]=null,this.setHint(s.Z.ANIMATING,-1);var w=o[0].callback;w&&S(w,!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,o=this.getCenterInternal();return void 0!==o&&(n=[o[0]-e[0],o[1]-e[1]],(0,d.U1)(n,t-this.getRotation()),(0,d.IH)(n,e)),n},e.prototype.calculateCenterZoom=function(t,e){var n,o=this.getCenterInternal(),r=this.getResolution();return void 0!==o&&void 0!==r&&(n=[e[0]-t*(e[0]-o[0])/r,e[1]-t*(e[1]-o[1])/r]),n},e.prototype.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var n=e[0],o=e[1];return[Math.abs(n*Math.cos(t))+Math.abs(o*Math.sin(t)),Math.abs(n*Math.sin(t))+Math.abs(o*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,h.lO)(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(a)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.options_.constrainResolution},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=this.calculateExtentInternal(t);return(0,h.Fj)(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getViewportSizeMinusPadding_(),n=this.getCenterInternal();(0,f.h)(n,1);var o=this.getResolution();(0,f.h)(void 0!==o,2);var r=this.getRotation();return(0,f.h)(void 0!==r,3),(0,m.p8)(n,o,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(l)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal((0,h.dY)(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var n=e||this.getViewportSizeMinusPadding_(),o=(0,m.dz)(t)/n[0],r=(0,m.Cr)(t)/n[1];return Math.max(o,r)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.getConstrainedResolution(this.maxResolution_),o=this.minResolution_,r=Math.log(n/o)/Math.log(e);return function(t){return n/Math.pow(e,t*r)}},e.prototype.getRotation=function(){return this.get(c)},e.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),o=this.minResolution_,r=Math.log(n/o)/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(),o=this.getCenterInternal(),r=this.padding_;if(r){var i=this.getViewportSizeMinusPadding_();o=Z(o,this.getViewportSize_(),[i[0]/2+r[3],i[1]/2+r[0]],e,n)}return{center:o.slice(0),projection:void 0!==t?t:null,resolution:e,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,o=this.minZoom_||0;if(this.resolutions_){var r=(0,b.h7)(this.resolutions_,t,1);o=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 o+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,v.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,v.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,f.h)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)){(0,f.h)(!(0,m.xb)(t),25);var o=(0,h.dY)(t,this.getProjection());n=(0,R.oJ)(o)}else if(t.getType()===r.Z.CIRCLE)o=(0,h.dY)(t.getExtent(),this.getProjection()),(n=(0,R.oJ)(o)).rotate(this.getRotation(),(0,m.qg)(o));else{var i=(0,h.Cs)();n=i?t.clone().transform(i,this.getProjection()):t}this.fitInternal(n,e)},e.prototype.rotatedExtentForGeometry=function(t){for(var e=this.getRotation(),n=Math.cos(e),o=Math.sin(-e),r=t.getFlatCoordinates(),i=t.getStride(),s=1/0,a=1/0,l=-1/0,c=-1/0,u=0,h=r.length;u<h;u+=i){var p=r[u]*n-r[u+1]*o,d=r[u]*o+r[u+1]*n;s=Math.min(s,p),a=Math.min(a,d),l=Math.max(l,p),c=Math.max(c,d)}return[s,a,l,c]},e.prototype.fitInternal=function(t,e){var n=e||{},o=n.size;o||(o=this.getViewportSizeMinusPadding_());var r,i=void 0!==n.padding?n.padding:[0,0,0,0],s=void 0!==n.nearest&&n.nearest;r=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0;var a=this.rotatedExtentForGeometry(t),l=this.getResolutionForExtentInternal(a,[o[0]-i[1]-i[3],o[1]-i[0]-i[2]]);l=isNaN(l)?r:Math.max(l,r),l=this.getConstrainedResolution(l,s?0:1);var c=this.getRotation(),u=Math.sin(c),h=Math.cos(c),d=(0,m.qg)(a);d[0]+=(i[1]-i[3])/2*l,d[1]+=(i[0]-i[2])/2*l;var f=d[0]*h-d[1]*u,g=d[1]*h+d[0]*u,v=this.getConstrainedCenter([f,g],l),y=n.callback?n.callback:p.Zn;void 0!==n.duration?this.animateInternal({resolution:l,center:v,duration:n.duration,easing:n.easing},y):(this.targetResolution_=l,this.targetCenter_=v,this.applyTargetState_(!1,!0),S(y,!0))},e.prototype.centerOn=function(t,e,n){this.centerOnInternal((0,h.Vs)(t,this.getProjection()),e,n)},e.prototype.centerOnInternal=function(t,e,n){this.setCenterInternal(Z(t,e,n,this.getResolution(),this.getRotation()))},e.prototype.calculateCenterShift=function(t,e,n,o){var r,i=this.padding_;if(i&&t){var s=this.getViewportSizeMinusPadding_(-n),a=Z(t,o,[s[0]/2+i[3],s[1]/2+i[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,h.lO)(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,h.Vs)(e,this.getProjection());this.adjustResolutionInternal(t,n)},e.prototype.adjustResolutionInternal=function(t,e){var n=this.getAnimating()||this.getInteracting(),o=this.getViewportSize_(this.getRotation()),r=this.constraints_.resolution(this.targetResolution_*t,0,o,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,h.Vs)(e,this.getProjection())),this.adjustRotationInternal(t,e)},e.prototype.adjustRotationInternal=function(t,e){var n=this.getAnimating()||this.getInteracting(),o=this.constraints_.rotation(this.targetRotation_+t,n);e&&(this.targetCenter_=this.calculateCenterRotate(o,e)),this.targetRotation_+=t,this.applyTargetState_()},e.prototype.setCenter=function(t){this.setCenterInternal((0,h.Vs)(t,this.getProjection()))},e.prototype.setCenterInternal=function(t){this.targetCenter_=t,this.applyTargetState_()},e.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},e.prototype.setResolution=function(t){this.targetResolution_=t,this.applyTargetState_()},e.prototype.setRotation=function(t){this.targetRotation_=t,this.applyTargetState_()},e.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},e.prototype.applyTargetState_=function(t,e){var n=this.getAnimating()||this.getInteracting()||e,o=this.constraints_.rotation(this.targetRotation_,n),r=this.getViewportSize_(o),i=this.constraints_.resolution(this.targetResolution_,0,r,n),s=this.constraints_.center(this.targetCenter_,i,r,n,this.calculateCenterShift(this.targetCenter_,i,o,r));this.get(c)!==o&&this.set(c,o),this.get(l)!==i&&this.set(l,i),this.get(a)&&(0,d.fS)(this.get(a),s)||this.set(a,s),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0},e.prototype.resolveConstraints=function(t,e,n){var o=void 0!==t?t:200,r=e||0,i=this.constraints_.rotation(this.targetRotation_),s=this.getViewportSize_(i),a=this.constraints_.resolution(this.targetResolution_,r,s),l=this.constraints_.center(this.targetCenter_,a,s,!1,this.calculateCenterShift(this.targetCenter_,a,i,s));if(0===o&&!this.cancelAnchor_)return this.targetResolution_=a,this.targetRotation_=i,this.targetCenter_=l,void this.applyTargetState_();var c=n||(0===o?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===a&&this.getRotation()===i&&this.getCenterInternal()&&(0,d.fS)(this.getCenterInternal(),l)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:i,center:l,resolution:a,duration:o,easing:O.Vv,anchor:c}))},e.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(s.Z.INTERACTING,1)},e.prototype.endInteraction=function(t,e,n){var o=n&&(0,h.Vs)(n,this.getProjection());this.endInteractionInternal(t,e,o)},e.prototype.endInteractionInternal=function(t,e,n){this.setHint(s.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,o=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,n,o)},e}(o.Z)},7755:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const o={ANIMATING:0,INTERACTING:1}},5537:(t,e,n)=>{"use strict";function o(t,e){return t>e?1:t<e?-1:0}function r(t,e,n){var o=t.length;if(t[0]<=e)return 0;if(e<=t[o-1])return o-1;var r=void 0;if(n>0){for(r=1;r<o;++r)if(t[r]<e)return r-1}else if(n<0){for(r=1;r<o;++r)if(t[r]<=e)return r}else for(r=1;r<o;++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 o-1}function i(t,e){for(var n=Array.isArray(e)?e:[e],o=n.length,r=0;r<o;r++)t[t.length]=n[r]}function s(t,e){var n=t.length;if(n!==e.length)return!1;for(var o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}function a(t,e,n){var r=e||o;return t.every((function(e,o){if(0===o)return!0;var i=r(t[o-1],e);return!(i>0||n&&0===i)}))}n.d(e,{kK:()=>o,h7:()=>r,l7:()=>i,fS:()=>s,pT:()=>a})},9515:(t,e,n)=>{"use strict";n.d(e,{h:()=>r});var o=n(6813);function r(t,e){if(!t)throw new o.Z(e)}},8775:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var o,r=n(2971),i=n(2126),s=n(6885),a=n(5818),l=n(8326),c=(o=function(t,e){return o=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])},o(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}o(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,o=e.element;return!o||e.target||o.style.pointerEvents||(o.style.pointerEvents="auto"),n.element=o||null,n.target_=null,n.map_=null,n.listenerKeys=[],e.render&&(n.render=e.render),e.target&&n.setTarget(e.target),n}return c(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,this.map_&&((this.target_?this.target_:t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==s.Zn&&this.listenerKeys.push((0,a.oL)(t,i.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)},7494:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Units:()=>h,default:()=>f});var o,r=n(8775),i=n(8375),s=n(245),a=n(8857),l=n(9515),c=(o=function(t,e){return o=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])},o(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}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u="units",h={DEGREES:"degrees",IMPERIAL:"imperial",NAUTICAL:"nautical",METRIC:"metric",US:"us"},p=[1,2,5],d=25.4/.28;const f=function(t){function e(e){var n=this,o=e||{},r=void 0!==o.className?o.className:o.bar?"ol-scale-bar":"ol-scale-line";return(n=t.call(this,{element:document.createElement("div"),render:o.render,target:o.target})||this).on,n.once,n.un,n.innerElement_=document.createElement("div"),n.innerElement_.className=r+"-inner",n.element.className=r+" "+s.XV,n.element.appendChild(n.innerElement_),n.viewState_=null,n.minWidth_=void 0!==o.minWidth?o.minWidth:64,n.renderedVisible_=!1,n.renderedWidth_=void 0,n.renderedHTML_="",n.addChangeListener(u,n.handleUnitsChanged_),n.setUnits(o.units||h.METRIC),n.scaleBar_=o.bar||!1,n.scaleBarSteps_=o.steps||4,n.scaleBarText_=o.text||!1,n.dpi_=o.dpi||void 0,n}return c(e,t),e.prototype.getUnits=function(){return this.get(u)},e.prototype.handleUnitsChanged_=function(){this.updateElement_()},e.prototype.setUnits=function(t){this.set(u,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,o=this.getUnits(),r=o==h.DEGREES?i.ZP.DEGREES:i.ZP.METERS,s=(0,a._Q)(n,t.resolution,e,r),c=this.minWidth_*(this.dpi_||d)/d,u=c*s,f="";if(o==h.DEGREES){var g=a.Wm[i.ZP.DEGREES];(u*=g)<g/60?(f="″",s*=3600):u<g?(f="′",s*=60):f="°"}else o==h.IMPERIAL?u<.9144?(f="in",s/=.0254):u<1609.344?(f="ft",s/=.3048):(f="mi",s/=1609.344):o==h.NAUTICAL?(s/=1852,f="nm"):o==h.METRIC?u<.001?(f="μm",s*=1e6):u<1?(f="mm",s*=1e3):u<1e3?f="m":(f="km",s/=1e3):o==h.US?u<.9144?(f="in",s*=39.37):u<1609.344?(f="ft",s/=.30480061):(f="mi",s/=1609.3472):(0,l.h)(!1,33);for(var v,y,_,m,b=3*Math.floor(Math.log(c*s)/Math.log(10));;){_=Math.floor(b/3);var E=Math.pow(10,_);if(v=p[(b%3+3)%3]*E,y=Math.round(v/s),isNaN(y))return this.element.style.display="none",void(this.renderedVisible_=!1);if(y>=c)break;++b}m=this.scaleBar_?this.createScaleBar(y,v,f):v.toFixed(_<0?-_:0)+" "+f,this.renderedHTML_!=m&&(this.innerElement_.innerHTML=m,this.renderedHTML_=m),this.renderedWidth_!=y&&(this.innerElement_.style.width=y+"px",this.renderedWidth_=y),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 o="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),r=[],i=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: '+i+"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;">'+o+"</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,o,r){var i=(0===t?0:Math.round(o/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")+';">'+i+"</div>"},e.prototype.getScaleForResolution=function(){var t=(0,a._Q)(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center),e=this.dpi_||d,n=this.viewState_.projection.getMetersPerUnit();return parseFloat(t.toString())*n*(1e3/25.4)*e},e.prototype.render=function(t){var e=t.frameState;this.viewState_=e?e.viewState:null,this.updateElement_()},e}(r.Z)},1900:(t,e,n)=>{"use strict";n.d(e,{IH:()=>r,fS:()=>i,U1:()=>s,bA:()=>a,Cf:()=>l});var o=n(7971);function r(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function i(t,e){for(var n=!0,o=t.length-1;o>=0;--o)if(t[o]!=e[o]){n=!1;break}return n}function s(t,e){var n=Math.cos(e),o=Math.sin(e),r=t[0]*n-t[1]*o,i=t[1]*n+t[0]*o;return t[0]=r,t[1]=i,t}function a(t,e){return t[0]*=e,t[1]*=e,t}function l(t,e){if(e.canWrapX()){var n=(0,o.dz)(e.getExtent()),r=function(t,e,n){var r=e.getExtent(),i=0;if(e.canWrapX()&&(t[0]<r[0]||t[0]>r[2])){var s=n||(0,o.dz)(r);i=Math.floor((t[0]-r[0])/s)}return i}(t,e,n);r&&(t[0]-=r*n)}return t}},245:(t,e,n)=>{"use strict";n.d(e,{oj:()=>o,XV:()=>r,hg:()=>i,hN:()=>s,p:()=>c});var o="ol-hidden",r="ol-unselectable",i="ol-control",s="ol-collapsed",a=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),l=["style","variant","weight","size","lineHeight","family"],c=function(t){var e=t.match(a);if(!e)return null;for(var n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},o=0,r=l.length;o<r;++o){var i=e[o+1];void 0!==i&&(n[l[o]]=i)}return n.families=n.family.split(/,\s?/),n}},8326:(t,e,n)=>{"use strict";n.d(e,{E4:()=>r,$H:()=>i,ZF:()=>s,ep:()=>a,hF:()=>l});var o=n(177);function r(t,e,n,r){var i;return n&&n.length?i=n.shift():o.Id?i=new OffscreenCanvas(t||300,e||300):(i=document.createElement("canvas")).style.all="initial",t&&(i.width=t),e&&(i.height=e),i.getContext("2d",r)}function i(t,e){var n=e.parentNode;n&&n.replaceChild(t,e)}function s(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function a(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function l(t,e){for(var n=t.childNodes,o=0;;++o){var r=n[o],i=e[o];if(!r&&!i)break;r!==i&&(r?i?t.insertBefore(i,r):(t.removeChild(r),--o):t.appendChild(i))}}},1015:(t,e,n)=>{"use strict";function o(t){return Math.pow(t,3)}function r(t){return 1-o(1-t)}function i(t){return 3*t*t-2*t*t*t}function s(t){return t}n.d(e,{YQ:()=>o,Vv:()=>r,rd:()=>i,GE:()=>s})},5818:(t,e,n)=>{"use strict";n.d(e,{oL:()=>r,Vx:()=>i,bN:()=>s});var o=n(9374);function r(t,e,n,o,r){if(o&&o!==t&&(n=n.bind(o)),r){var i=n;n=function(){t.removeEventListener(e,n),i.apply(this,arguments)}}var s={target:t,type:e,listener:n};return t.addEventListener(e,n),s}function i(t,e,n,o){return r(t,e,n,o,!0)}function s(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,o.ZH)(t))}},291:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>o});const o=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:()=>o});const o={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:()=>c});var o,r=n(5431),i=n(291),s=n(6885),a=n(9374),l=(o=function(t,e){return o=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])},o(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}o(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.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_={}),o=n[t]||(n[t]=[]);-1===o.indexOf(e)&&o.push(e)}},e.prototype.dispatchEvent=function(t){var e="string"==typeof t?new i.ZP(t):t,n=e.type;e.target||(e.target=this.eventTarget_||this);var o,r=this.listeners_&&this.listeners_[n];if(r){var a=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});n in a||(a[n]=0,l[n]=0),++a[n];for(var c=0,u=r.length;c<u;++c)if(!1===(o="handleEvent"in r[c]?r[c].handleEvent(e):r[c].call(this,e))||e.propagationStopped){o=!1;break}if(--a[n],0===a[n]){var h=l[n];for(delete l[n];h--;)this.removeEventListener(n,s.Zn);delete a[n]}return o}},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 o=n.indexOf(e);-1!==o&&(this.pendingRemovals_&&t in this.pendingRemovals_?(n[o]=s.Zn,++this.pendingRemovals_[t]):(n.splice(o,1),0===n.length&&delete this.listeners_[t]))}},e}(r.Z)},7971:(t,e,n)=>{"use strict";n.d(e,{Ne:()=>D,hI:()=>i,d9:()=>s,qf:()=>a,b8:()=>l,r4:()=>c,jE:()=>u,lJ:()=>p,T9:()=>d,YN:()=>f,HK:()=>g,GN:()=>v,fS:()=>y,l7:()=>_,Wj:()=>m,qP:()=>b,H6:()=>w,bg:()=>x,hC:()=>C,w$:()=>T,qg:()=>O,g0:()=>R,p8:()=>P,Cr:()=>S,Ed:()=>L,rL:()=>I,Xv:()=>A,dz:()=>M,kK:()=>Z,I7:()=>F,xb:()=>j,EO:()=>N});var o=n(9600);var r=n(9515);function i(t){for(var e=[1/0,1/0,-1/0,-1/0],n=0,o=t.length;n<o;++n)m(e,t[n]);return e}function s(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function a(t,e,n){var o,r;return(o=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*o+(r=n<t[1]?t[1]-n:t[3]<n?n-t[3]:0)*r}function l(t,e){return u(t,e[0],e[1])}function c(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function u(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function h(t,e){var n=t[0],o=t[1],r=t[2],i=t[3],s=e[0],a=e[1],l=0;return s<n?l|=16:s>r&&(l|=4),a<o?l|=8:a>i&&(l|=2),0===l&&(l=1),l}function p(){return[1/0,1/0,-1/0,-1/0]}function d(t,e,n,o,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=o,r):[t,e,n,o]}function f(t){return d(1/0,1/0,-1/0,-1/0,t)}function g(t,e){var n=t[0],o=t[1];return d(n,o,n,o,e)}function v(t,e,n,o,r){return b(f(r),t,e,n,o)}function y(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function _(t,e){return e[0]<t[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 m(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 b(t,e,n,o,r){for(;n<o;n+=r)E(t,e[n],e[n+1]);return t}function E(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 w(t,e){var n;return(n=e(C(t)))||(n=e(T(t)))||(n=e(A(t)))?n:(n=e(I(t)))||!1}function x(t){var e=0;return j(t)||(e=M(t)*S(t)),e}function C(t){return[t[0],t[1]]}function T(t){return[t[2],t[1]]}function O(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function R(t,e){var n;return e===o.Z.BOTTOM_LEFT?n=C(t):e===o.Z.BOTTOM_RIGHT?n=T(t):e===o.Z.TOP_LEFT?n=I(t):e===o.Z.TOP_RIGHT?n=A(t):(0,r.h)(!1,13),n}function P(t,e,n,o,r){var i=e*o[0]/2,s=e*o[1]/2,a=Math.cos(n),l=Math.sin(n),c=i*a,u=i*l,h=s*a,p=s*l,f=t[0],g=t[1],v=f-c+p,y=f-c-p,_=f+c-p,m=f+c+p,b=g-u-h,E=g-u+h,w=g+u+h,x=g+u-h;return d(Math.min(v,y,_,m),Math.min(b,E,w,x),Math.max(v,y,_,m),Math.max(b,E,w,x),r)}function S(t){return t[3]-t[1]}function L(t,e,n){var o=n||[1/0,1/0,-1/0,-1/0];return Z(t,e)?(t[0]>e[0]?o[0]=t[0]:o[0]=e[0],t[1]>e[1]?o[1]=t[1]:o[1]=e[1],t[2]<e[2]?o[2]=t[2]:o[2]=e[2],t[3]<e[3]?o[3]=t[3]:o[3]=e[3]):f(o),o}function I(t){return[t[0],t[3]]}function A(t){return[t[2],t[3]]}function M(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 j(t){return t[2]<t[0]||t[3]<t[1]}function N(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function F(t,e,n){var o=!1,r=h(t,e),i=h(t,n);if(1===r||1===i)o=!0;else{var s=t[0],a=t[1],l=t[2],c=t[3],u=e[0],p=e[1],d=n[0],f=n[1],g=(f-p)/(d-u),v=void 0,y=void 0;2&i&&!(2&r)&&(o=(v=d-(f-c)/g)>=s&&v<=l),o||!(4&i)||4&r||(o=(y=f-(d-l)*g)>=a&&y<=c),o||!(8&i)||8&r||(o=(v=d-(f-a)/g)>=s&&v<=l),o||!(16&i)||16&r||(o=(y=f-(d-s)*g)>=a&&y<=c)}return o}function D(t,e,n,o){var r=[];if(o>1)for(var i=t[2]-t[0],s=t[3]-t[1],a=0;a<o;++a)r.push(t[0]+i*a/o,t[1],t[2],t[1]+s*a/o,t[2]-i*a/o,t[3],t[0],t[3]-s*a/o);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=[],c=[],u=(a=0,r.length);a<u;a+=2)l.push(r[a]),c.push(r[a+1]);return function(t,e,n){return d(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),n)}(l,c,n)}},9600:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const o={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},6885:(t,e,n)=>{"use strict";n.d(e,{uX:()=>r,Dv:()=>i,Zn:()=>s,qe:()=>a});var o=n(5537);function r(){return!0}function i(){return!1}function s(){}function a(t){var e,n,r,i=!1;return function(){var s=Array.prototype.slice.call(arguments);return i&&this===r&&(0,o.fS)(s,n)||(i=!0,r=this,n=s,e=t.apply(this,arguments)),e}}},4754:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const o={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"}},1424:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>Y,oJ:()=>H});const o="XY",r="XYZM";var i,s=n(4754),a=n(2971),l=n(8375),c=n(4187),u=n(6101),h=n(7971),p=n(8857),d=n(6885),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)}),g=(0,u.Ue)(),v=function(t){function e(){var e=t.call(this)||this;return e.extent_=(0,h.lJ)(),e.extentRevision_=-1,e.simplifiedGeometryMaxMinSquaredTolerance=0,e.simplifiedGeometryRevision=0,e.simplifyTransformedInternal=(0,d.qe)((function(t,e,n){if(!n)return this.getSimplifiedGeometry(e);var o=this.clone();return o.applyTransform(n),o.getSimplifiedGeometry(e)})),e}return f(e,t),e.prototype.simplifyTransformed=function(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)},e.prototype.clone=function(){return(0,c.O3)()},e.prototype.closestPointXY=function(t,e,n,o){return(0,c.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,c.O3)()},e.prototype.getExtent=function(t){if(this.extentRevision_!=this.getRevision()){var e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&(0,h.YN)(e),this.extentRevision_=this.getRevision()}return(0,h.EO)(this.extent_,t)},e.prototype.rotate=function(t,e){(0,c.O3)()},e.prototype.scale=function(t,e,n){(0,c.O3)()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return(0,c.O3)()},e.prototype.getType=function(){return(0,c.O3)()},e.prototype.applyTransform=function(t){(0,c.O3)()},e.prototype.intersectsExtent=function(t){return(0,c.O3)()},e.prototype.translate=function(t,e){(0,c.O3)()},e.prototype.transform=function(t,e){var n=(0,p.U2)(t),o=n.getUnits()==l.ZP.TILE_PIXELS?function(t,o,r){var i=n.getExtent(),s=n.getWorldExtent(),a=(0,h.Cr)(s)/(0,h.Cr)(i);return(0,u.qC)(g,s[0],s[3],a,-a,0,0,0),function(t,e,n,o,r,i){for(var s=i||[],a=0,l=0;l<n;l+=o){var c=t[l],u=t[l+1];s[a++]=r[0]*c+r[2]*u+r[4],s[a++]=r[1]*c+r[3]*u+r[5]}i&&s.length!=a&&(s.length=a)}(t,0,t.length,r,g,o),(0,p.Ck)(n,e)(t,o,r)}:(0,p.Ck)(n,e);return this.applyTransform(o),this},e}(a.Z);const y=v;var _=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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),m=function(t){function e(){var e=t.call(this)||this;return e.layout=o,e.stride=2,e.flatCoordinates=null,e}return _(e,t),e.prototype.computeExtent=function(t){return(0,h.GN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return(0,c.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=b(t),this.layout=t,this.flatCoordinates=e},e.prototype.setCoordinates=function(t,e){(0,c.O3)()},e.prototype.setLayout=function(t,e,n){var i;if(t)i=b(t);else{for(var s=0;s<n;++s){if(0===e.length)return this.layout=o,void(this.stride=2);e=e[0]}t=function(t){var e;return 2==t?e=o:3==t?e="XYZ":4==t&&(e=r),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 o=this.getStride();!function(t,e,n,o,r,i,s){for(var a=s||[],l=Math.cos(r),c=Math.sin(r),u=i[0],h=i[1],p=0,d=0;d<n;d+=o){var f=t[d]-u,g=t[d+1]-h;a[p++]=u+f*l-g*c,a[p++]=h+f*c+g*l;for(var v=d+2;v<d+o;++v)a[p++]=t[v]}s&&a.length!=p&&(a.length=p)}(n,0,n.length,o,t,e,n),this.changed()}},e.prototype.scale=function(t,e,n){var o=e;void 0===o&&(o=t);var r=n;r||(r=(0,h.qg)(this.getExtent()));var i=this.getFlatCoordinates();if(i){var s=this.getStride();!function(t,e,n,o,r,i,s,a){for(var l=a||[],c=s[0],u=s[1],h=0,p=0;p<n;p+=o){var d=t[p]-c,f=t[p+1]-u;l[h++]=c+r*d,l[h++]=u+i*f;for(var g=p+2;g<p+o;++g)l[h++]=t[g]}a&&l.length!=h&&(l.length=h)}(i,0,i.length,s,t,o,r,i),this.changed()}},e.prototype.translate=function(t,e){var n=this.getFlatCoordinates();if(n){var o=this.getStride();!function(t,e,n,o,r,i,s){for(var a=s||[],l=0,c=0;c<n;c+=o){a[l++]=t[c]+r,a[l++]=t[c+1]+i;for(var u=c+2;u<c+o;++u)a[l++]=t[u]}s&&a.length!=l&&(a.length=l)}(n,0,n.length,o,t,e,n),this.changed()}},e}(y);function b(t){var e;return t==o?e=2:"XYZ"==t||"XYM"==t?e=3:t==r&&(e=4),e}const E=m;var w=n(3983);function x(t,e,n,o,r,i,s){var a,l=t[e],c=t[e+1],u=t[n]-l,h=t[n+1]-c;if(0===u&&0===h)a=e;else{var p=((r-l)*u+(i-c)*h)/(u*u+h*h);if(p>1)a=n;else{if(p>0){for(var d=0;d<o;++d)s[d]=(0,w.t7)(t[e+d],t[n+d],p);return void(s.length=o)}a=e}}for(d=0;d<o;++d)s[d]=t[a+d];s.length=o}function C(t,e,n,o,r){var i=t[e],s=t[e+1];for(e+=o;e<n;e+=o){var a=t[e],l=t[e+1],c=(0,w.bI)(i,s,a,l);c>r&&(r=c),i=a,s=l}return r}function T(t,e,n,o,r,i,s,a,l,c,u){if(e==n)return c;var h,p;if(0===r){if((p=(0,w.bI)(s,a,t[e],t[e+1]))<c){for(h=0;h<o;++h)l[h]=t[e+h];return l.length=o,p}return c}for(var d=u||[NaN,NaN],f=e+o;f<n;)if(x(t,f-o,f,o,s,a,d),(p=(0,w.bI)(s,a,d[0],d[1]))<c){for(c=p,h=0;h<o;++h)l[h]=d[h];l.length=o,f+=o}else f+=o*Math.max((Math.sqrt(p)-Math.sqrt(c))/r|0,1);if(i&&(x(t,n-o,e,o,s,a,d),(p=(0,w.bI)(s,a,d[0],d[1]))<c)){for(c=p,h=0;h<o;++h)l[h]=d[h];l.length=o}return c}function O(t,e,n,o){for(var r=0,i=n.length;r<i;++r)for(var s=n[r],a=0;a<o;++a)t[e++]=s[a];return e}function R(t,e){return e*Math.round(t/e)}function P(t,e,n,o,r,i,s){if(e==n)return s;var a,l,c=R(t[e],r),u=R(t[e+1],r);e+=o,i[s++]=c,i[s++]=u;do{if(a=R(t[e],r),l=R(t[e+1],r),(e+=o)==n)return i[s++]=a,i[s++]=l,s}while(a==c&&l==u);for(;e<n;){var h=R(t[e],r),p=R(t[e+1],r);if(e+=o,h!=a||p!=l){var d=a-c,f=l-u,g=h-c,v=p-u;d*v==f*g&&(d<0&&g<d||d==g||d>0&&g>d)&&(f<0&&v<f||f==v||f>0&&v>f)?(a=h,l=p):(i[s++]=a,i[s++]=l,c=a,u=l,a=h,l=p)}}return i[s++]=a,i[s++]=l,s}function S(t,e,n,o,r){for(var i=void 0!==r?r:[],s=0,a=e;a<n;a+=o)i[s++]=t.slice(a,a+o);return i.length=s,i}function L(t,e,n,o){for(var r=0,i=t[n-o],s=t[n-o+1];e<n;e+=o){var a=t[e],l=t[e+1];r+=s*a-i*l,i=a,s=l}return r/2}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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),A=function(t){function e(e,n){var o=t.call(this)||this;return o.maxDelta_=-1,o.maxDeltaRevision_=-1,void 0===n||Array.isArray(e[0])?o.setCoordinates(e,n):o.setFlatCoordinates(n,e),o}return I(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,n,o){return o<(0,h.qf)(this.getExtent(),t,e)?o:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(C(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),T(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,n,o))},e.prototype.getArea=function(){return L(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return S(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[];return n.length=function(t,e,n,o,r,i,s){var a=(n-e)/o;if(a<3){for(;e<n;e+=o)i[s++]=t[e],i[s++]=t[e+1];return s}var l=new Array(a);l[0]=1,l[a-1]=1;for(var c=[e,n-o],u=0;c.length>0;){for(var h=c.pop(),p=c.pop(),d=0,f=t[p],g=t[p+1],v=t[h],y=t[h+1],_=p+o;_<h;_+=o){var m=t[_],b=t[_+1],E=(0,w.rU)(m,b,f,g,v,y);E>d&&(u=_,d=E)}d>r&&(l[(u-e)/o]=1,p+o<u&&c.push(p,u),u+o<h&&c.push(u,h))}for(_=0;_<a;++_)l[_]&&(i[s++]=t[e+_*o],i[s++]=t[e+_*o+1]);return s}(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,o)},e.prototype.getType=function(){return s.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=O(this.flatCoordinates,0,t,this.stride),this.changed()},e}(E);const M=A;var Z=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),j=function(t){function e(e,n){var o=t.call(this)||this;return o.setCoordinates(e,n),o}return Z(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,o){var r=this.flatCoordinates,i=(0,w.bI)(t,e,r[0],r[1]);if(i<o){for(var s=this.stride,a=0;a<s;++a)n[a]=r[a];return n.length=s,i}return o},e.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},e.prototype.computeExtent=function(t){return(0,h.HK)(this.flatCoordinates,t)},e.prototype.getType=function(){return s.Z.POINT},e.prototype.intersectsExtent=function(t){return(0,h.jE)(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=function(t,e,n,o){for(var r=0,i=n.length;r<i;++r)t[e++]=n[r];return e}(this.flatCoordinates,0,t,this.stride),this.changed()},e}(E);const N=j;var F=n(5537);function D(t,e,n,o,r){return!(0,h.H6)(r,(function(r){return!k(t,e,n,o,r[0],r[1])}))}function k(t,e,n,o,r,i){for(var s=0,a=t[n-o],l=t[n-o+1];e<n;e+=o){var c=t[e],u=t[e+1];l<=i?u>i&&(c-a)*(i-l)-(r-a)*(u-l)>0&&s++:u<=i&&(c-a)*(i-l)-(r-a)*(u-l)<0&&s--,a=c,l=u}return 0!==s}function z(t,e,n,o,r,i){if(0===n.length)return!1;if(!k(t,e,n[0],o,r,i))return!1;for(var s=1,a=n.length;s<a;++s)if(k(t,n[s-1],n[s],o,r,i))return!1;return!0}function G(t,e,n,o,r){var i=(0,h.qP)((0,h.lJ)(),t,e,n,o);return!!(0,h.kK)(r,i)&&(!!(0,h.r4)(r,i)||i[0]>=r[0]&&i[2]<=r[2]||i[1]>=r[1]&&i[3]<=r[3]||function(t,e,n,o,i){var s,a,l;for(e+=o;e<n;e+=o)if(a=t.slice(e-o,e),l=t.slice(e,e+o),s=(0,h.I7)(r,a,l))return s;return!1}(t,e,n,o))}function U(t,e,n,o){for(;e<n-o;){for(var r=0;r<o;++r){var i=t[e+r];t[e+r]=t[n-o+r],t[n-o+r]=i}e+=o,n-=o}}function K(t,e,n,o){for(var r=0,i=t[n-o],s=t[n-o+1];e<n;e+=o){var a=t[e],l=t[e+1];r+=(a-i)*(l+s),i=a,s=l}return 0===r?void 0:r>0}function X(t,e,n,o,r){for(var i=void 0!==r&&r,s=0,a=n.length;s<a;++s){var l=n[s],c=K(t,e,l,o);(0===s?i&&c||!i&&!c:i&&!c||!i&&c)&&U(t,e,l,o),e=l}return e}var q=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),V=function(t){function e(e,n,o){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&&o?(r.setFlatCoordinates(n,e),r.ends_=o):r.setCoordinates(e,n),r}return q(e,t),e.prototype.appendLinearRing=function(t){this.flatCoordinates?(0,F.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,o){return o<(0,h.qf)(this.getExtent(),t,e)?o:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(function(t,e,n,o,r){for(var i=0,s=n.length;i<s;++i){var a=n[i];r=C(t,e,a,o,r),e=a}return r}(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),function(t,e,n,o,r,i,s,a,l,c,u){for(var h=u||[NaN,NaN],p=0,d=n.length;p<d;++p){var f=n[p];c=T(t,e,f,o,r,i,s,a,l,c,h),e=f}return c}(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,n,o))},e.prototype.containsXY=function(t,e){return z(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},e.prototype.getArea=function(){return function(t,e,n,o){for(var r=0,i=0,s=n.length;i<s;++i){var a=n[i];r+=L(t,e,a,o),e=a}return r}(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?X(e=this.getOrientedFlatCoordinates().slice(),0,this.ends_,this.stride,t):e=this.flatCoordinates,function(t,e,n,o,r){for(var i=void 0!==r?r:[],s=0,a=0,l=n.length;a<l;++a){var c=n[a];i[s++]=S(t,e,c,o,i[s]),e=c}return i.length=s,i}(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,h.qg)(this.getExtent());this.flatInteriorPoint_=function(t,e,n,o,r,i,s){for(var a,l,c,u,h,p,d,f=r[i+1],g=[],v=0,y=n.length;v<y;++v){var _=n[v];for(u=t[_-o],p=t[_-o+1],a=e;a<_;a+=o)h=t[a],d=t[a+1],(f<=p&&d<=f||p<=f&&f<=d)&&(c=(f-p)/(d-p)*(h-u)+u,g.push(c)),u=h,p=d}var m=NaN,b=-1/0;for(g.sort(F.kK),u=g[0],a=1,l=g.length;a<l;++a){h=g[a];var E=Math.abs(h-u);E>b&&z(t,e,n,o,c=(u+h)/2,f)&&(m=c,b=E),u=h}return isNaN(m)&&(m=r[i]),s?(s.push(m,f,b),s):[m,f,b]}(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},e.prototype.getInteriorPoint=function(){return new N(this.getFlatInteriorPoint(),"XYM")},e.prototype.getLinearRingCount=function(){return this.ends_.length},e.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new M(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_,o=[],r=0,i=0,s=n.length;i<s;++i){var a=n[i],l=new M(e.slice(r,a),t);o.push(l),r=a}return o},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;!function(t,e,n,o,r){for(var i=void 0!==r&&r,s=0,a=n.length;s<a;++s){var l=n[s],c=K(t,e,l,o);if(0===s){if(i&&c||!i&&!c)return!1}else if(i&&!c||!i&&c)return!1;e=l}return!0}(t,0,this.ends_,this.stride)?(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=X(this.orientedFlatCoordinates_,0,this.ends_,this.stride)):this.orientedFlatCoordinates_=t,this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],r=[];return n.length=function(t,e,n,o,r,i,s,a){for(var l=0,c=n.length;l<c;++l){var u=n[l];s=P(t,e,u,o,r,i,s),a.push(s),e=u}return s}(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),n,0,r),new e(n,o,r)},e.prototype.getType=function(){return s.Z.POLYGON},e.prototype.intersectsExtent=function(t){return function(t,e,n,o,r){if(!function(t,e,n,o,r){return!!(G(t,e,n,o,r)||k(t,e,n,o,r[0],r[1])||k(t,e,n,o,r[0],r[3])||k(t,e,n,o,r[2],r[1])||k(t,e,n,o,r[2],r[3]))}(t,e,n[0],o,r))return!1;if(1===n.length)return!0;for(var i=1,s=n.length;i<s;++i)if(D(t,n[i-1],n[i],o,r)&&!G(t,n[i-1],n[i],o,r))return!1;return!0}(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=function(t,e,n,o,r){for(var i=r||[],s=0,a=0,l=n.length;a<l;++a){var c=O(t,e,n[a],o);i[s++]=c,e=c}return i.length=s,i}(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},e}(E);const Y=V;function H(t){var e=t[0],n=t[1],r=t[2],i=t[3],s=[e,n,e,i,r,i,r,n,e,n];return new V(s,o,[s.length])}},177:(t,e,n)=>{"use strict";n.d(e,{V:()=>r,G$:()=>i,tK:()=>s,MP:()=>a,Id:()=>l,Tp:()=>c,bM:()=>u});var o="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",r=-1!==o.indexOf("firefox"),i=(-1!==o.indexOf("safari")&&o.indexOf("chrom"),-1!==o.indexOf("webkit")&&-1==o.indexOf("edge")),s=-1!==o.indexOf("macintosh"),a="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,l="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,c="undefined"!=typeof Image&&Image.prototype.decode,u=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(t){}return t}()},947:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var o,r=n(2971),i=n(1912),s=n(4187),a=n(9515),l=n(9374),c=n(3983),u=(o=function(t,e){return o=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])},o(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}o(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;var o=(0,l.f0)({},e);return"object"==typeof e.properties&&(delete o.properties,(0,l.f0)(o,e.properties)),o[i.Z.OPACITY]=void 0!==e.opacity?e.opacity:1,(0,a.h)("number"==typeof o[i.Z.OPACITY],64),o[i.Z.VISIBLE]=void 0===e.visible||e.visible,o[i.Z.Z_INDEX]=e.zIndex,o[i.Z.MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,o[i.Z.MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,o[i.Z.MIN_ZOOM]=void 0!==e.minZoom?e.minZoom:-1/0,o[i.Z.MAX_ZOOM]=void 0!==e.maxZoom?e.maxZoom:1/0,n.className_=void 0!==o.className?e.className:"ol-layer",delete o.className,n.setProperties(o),n.state_=null,n}return u(e,t),e.prototype.getClassName=function(){return this.className_},e.prototype.getLayerState=function(t){var e=this.state_||{layer:this,managed:void 0===t||t},n=this.getZIndex();return e.opacity=(0,c.uZ)(Math.round(100*this.getOpacity())/100,0,1),e.sourceState=this.getSourceState(),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==n||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(i.Z.EXTENT)},e.prototype.getMaxResolution=function(){return this.get(i.Z.MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(i.Z.MIN_RESOLUTION)},e.prototype.getMinZoom=function(){return this.get(i.Z.MIN_ZOOM)},e.prototype.getMaxZoom=function(){return this.get(i.Z.MAX_ZOOM)},e.prototype.getOpacity=function(){return this.get(i.Z.OPACITY)},e.prototype.getSourceState=function(){return(0,s.O3)()},e.prototype.getVisible=function(){return this.get(i.Z.VISIBLE)},e.prototype.getZIndex=function(){return this.get(i.Z.Z_INDEX)},e.prototype.setExtent=function(t){this.set(i.Z.EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(i.Z.MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(i.Z.MIN_RESOLUTION,t)},e.prototype.setMaxZoom=function(t){this.set(i.Z.MAX_ZOOM,t)},e.prototype.setMinZoom=function(t){this.set(i.Z.MIN_ZOOM,t)},e.prototype.setOpacity=function(t){(0,a.h)("number"==typeof t,64),this.set(i.Z.OPACITY,t)},e.prototype.setVisible=function(t){this.set(i.Z.VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(i.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)},1295:(t,e,n)=>{"use strict";n.d(e,{j:()=>d,Z:()=>f});var o,r=n(947),i=n(5487),s=n(1912),a=n(8771),l=n(4562),c=n(9515),u=n(9374),h=n(5818),p=(o=function(t,e){return o=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])},o(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}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function d(t,e){if(!t.visible)return!1;var n=e.resolution;if(n<t.minResolution||n>=t.maxResolution)return!1;var o=e.zoom;return o>t.minZoom&&o<=t.maxZoom}const f=function(t){function e(e){var n=this,o=(0,u.f0)({},e);delete o.source,(n=t.call(this,o)||this).on,n.once,n.un,n.mapPrecomposeKey_=null,n.mapRenderKey_=null,n.sourceChangeKey_=null,n.renderer_=null,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.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,i.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.render=function(t,e){var n=this.getRenderer();if(n.prepareFrame(t))return n.renderFrame(t,e)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&((0,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,c.h)(!e.some((function(t){return t.layer===n.layer})),67),e.push(n)}),this),this.mapRenderKey_=(0,h.oL)(this,i.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.setSource(null),t.prototype.disposeInternal.call(this)},e}(r.Z)},1912:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const o={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source"}},6560:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>A});var o=n(1295);const r="preload",i="useInterimTilesOnError";var s,a=n(9374),l=(s=function(t,e){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},s(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}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const c=function(t){function e(e){var n=this,o=e||{},r=(0,a.f0)({},o);return delete r.preload,delete r.useInterimTilesOnError,(n=t.call(this,r)||this).on,n.once,n.un,n.setPreload(void 0!==o.preload?o.preload:0),n.setUseInterimTilesOnError(void 0===o.useInterimTilesOnError||o.useInterimTilesOnError),n}return l(e,t),e.prototype.getPreload=function(){return this.get(r)},e.prototype.setPreload=function(t){this.set(r,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(i)},e.prototype.setUseInterimTilesOnError=function(t){this.set(i,t)},e}(o.Z);var u=n(5487),h=n(553),p=n(2706),d=n(4562),f=n(4187),g=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const v=function(t){function e(e){var n=t.call(this)||this;return n.boundHandleImageChange_=n.handleImageChange_.bind(n),n.layer_=e,n.declutterExecutorGroup=null,n}return g(e,t),e.prototype.getFeatures=function(t){return(0,f.O3)()},e.prototype.prepareFrame=function(t){return(0,f.O3)()},e.prototype.renderFrame=function(t,e){return(0,f.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(o,r){var i=this.loadedTileCallback.bind(this,n,o);return t.forEachLoadedTile(e,o,r,i)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,o,r){},e.prototype.getDataAtPixel=function(t,e,n){return(0,f.O3)()},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){t.target.getState()===h.Z.LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=h.Z.LOADED&&e!=h.Z.ERROR&&t.addEventListener(u.Z.CHANGE,this.boundHandleImageChange_),e==h.Z.IDLE&&(t.load(),e=t.getState()),e==h.Z.LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t.getVisible()&&t.getSourceState()==d.Z.READY&&t.changed()},e}(p.Z);var y=n(7380),_=n(8771),m=n(6101),b=n(7971),E=n(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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const x=function(t){function e(e){var n=t.call(this,e)||this;return n.container=null,n.renderedResolution,n.tempTransform=(0,m.Ue)(),n.pixelTransform=(0,m.Ue)(),n.inversePixelTransform=(0,m.Ue)(),n.context=null,n.containerReused=!1,n}return w(e,t),e.prototype.useContainer=function(t,e,n){var o,r,i=this.getLayer().getClassName();if(t&&""===t.style.opacity&&t.className===i&&(a=t.firstElementChild)instanceof HTMLCanvasElement&&(r=a.getContext("2d")),!r||0!==r.canvas.width&&r.canvas.style.transform!==e?this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1):(this.container=t,this.context=r,this.containerReused=!0),!this.container){(o=document.createElement("div")).className=i;var s=o.style;s.position="absolute",s.width="100%",s.height="100%";var a=(r=(0,E.E4)()).canvas;o.appendChild(a),(s=a.style).position="absolute",s.left="0",s.transformOrigin="top left",this.container=o,this.context=r}},e.prototype.clipUnrotated=function(t,e,n){var o=(0,b.rL)(n),r=(0,b.Xv)(n),i=(0,b.w$)(n),s=(0,b.hC)(n);(0,m.nn)(e.coordinateToPixelTransform,o),(0,m.nn)(e.coordinateToPixelTransform,r),(0,m.nn)(e.coordinateToPixelTransform,i),(0,m.nn)(e.coordinateToPixelTransform,s);var a=this.inversePixelTransform;(0,m.nn)(a,o),(0,m.nn)(a,r),(0,m.nn)(a,i),(0,m.nn)(a,s),t.save(),t.beginPath(),t.moveTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.clip()},e.prototype.dispatchRenderEvent_=function(t,e,n){var o=this.getLayer();if(o.hasListener(t)){var r=new y.Z(t,this.inversePixelTransform,n,e);o.dispatchEvent(r)}},e.prototype.preRender=function(t,e){this.dispatchRenderEvent_(_.Z.PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(_.Z.POSTRENDER,t,e)},e.prototype.getRenderTransform=function(t,e,n,o,r,i,s){var a=r/2,l=i/2,c=o/e,u=-c,h=-t[0]+s,p=-t[1];return(0,m.qC)(this.tempTransform,a,l,c,u,-n,h,p)},e.prototype.getDataAtPixel=function(t,e,n){var o,r=(0,m.nn)(this.inversePixelTransform,t.slice()),i=this.context,s=this.getLayer().getExtent();if(s){var a=(0,m.nn)(e.pixelToCoordinateTransform,t.slice());if(!(0,b.b8)(s,a))return null}try{var l=Math.round(r[0]),c=Math.round(r[1]),u=document.createElement("canvas"),h=u.getContext("2d");u.width=1,u.height=1,h.clearRect(0,0,1,1),h.drawImage(i.canvas,l,c,1,1,0,0,1,1),o=h.getImageData(0,0,1,1).data}catch(t){return"SecurityError"===t.name?new Uint8Array:o}return 0===o[3]?null:o},e}(v);var C=n(2519),T=n(7195),O=n(8857),R=n(5537),P=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),S=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,b.lJ)(),n.tmpTileRange_=new C.Z(0,0,0,0),n}return P(e,t),e.prototype.isDrawableTile=function(t){var e=this.getLayer(),n=t.getState(),o=e.getUseInterimTilesOnError();return n==T.Z.LOADED||n==T.Z.EMPTY||n==T.Z.ERROR&&!o},e.prototype.getTile=function(t,e,n,o){var r=o.pixelRatio,i=o.viewState.projection,s=this.getLayer(),a=s.getSource().getTile(t,e,n,r,i);return a.getState()==T.Z.ERROR&&(s.getUseInterimTilesOnError()?s.getPreload()>0&&(this.newTiles_=!0):a.setState(T.Z.LOADED)),this.isDrawableTile(a)||(a=a.getInterimTile()),a},e.prototype.loadedTileCallback=function(e,n,o){return!!this.isDrawableTile(o)&&t.prototype.loadedTileCallback.call(this,e,n,o)},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,e){var n=t.layerStatesArray[t.layerIndex],o=t.viewState,r=o.projection,i=o.resolution,s=o.center,l=o.rotation,c=t.pixelRatio,u=this.getLayer(),h=u.getSource(),p=h.getRevision(),d=h.getTileGridForProjection(r),g=d.getZForResolution(i,h.zDirection),v=d.getResolution(g),y=t.extent,_=n.extent&&(0,O.dY)(n.extent,r);_&&(y=(0,b.Ed)(y,(0,O.dY)(n.extent,r)));var E=h.getTilePixelRatio(c),w=Math.round(t.size[0]*E),x=Math.round(t.size[1]*E);if(l){var C=Math.round(Math.sqrt(w*w+x*x));w=C,x=C}var P=v*w/2/E,S=v*x/2/E,L=[s[0]-P,s[1]-S,s[0]+P,s[1]+S],I=d.getTileRangeForExtentAndZ(y,g),A={};A[g]={};var M=this.createLoadedTileFinder(h,r,A),Z=this.tmpExtent,j=this.tmpTileRange_;this.newTiles_=!1;for(var N=I.minX;N<=I.maxX;++N)for(var F=I.minY;F<=I.maxY;++F){var D=this.getTile(g,N,F,t);if(this.isDrawableTile(D)){var k=(0,f.sq)(this);if(D.getState()==T.Z.LOADED){A[g][D.tileCoord.toString()]=D;var z=D.inTransition(k);this.newTiles_||!z&&-1!==this.renderedTiles.indexOf(D)||(this.newTiles_=!0)}if(1===D.getAlpha(k,t.time))continue}var G=d.getTileCoordChildTileRange(D.tileCoord,j,Z),U=!1;G&&(U=M(g+1,G)),U||d.forEachTileCoordParentTileRange(D.tileCoord,M,j,Z)}var K=v/i;(0,m.qC)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/E,1/E,l,-w/2,-x/2);var X=(0,m.BB)(this.pixelTransform);this.useContainer(e,X,n.opacity);var q=this.context,V=q.canvas;(0,m.nb)(this.inversePixelTransform,this.pixelTransform),(0,m.qC)(this.tempTransform,w/2,x/2,K,K,0,-w/2,-x/2),V.width!=w||V.height!=x?(V.width=w,V.height=x):this.containerReused||q.clearRect(0,0,w,x),_&&this.clipUnrotated(q,t,_),(0,a.f0)(q,h.getContextOptions()),this.preRender(q,t),this.renderedTiles.length=0;var Y,H,W,B=Object.keys(A).map(Number);B.sort(R.kK),1!==n.opacity||this.containerReused&&!h.getOpaque(t.viewState.projection)?(Y=[],H=[]):B=B.reverse();for(var J=B.length-1;J>=0;--J){var Q=B[J],$=h.getTilePixelSize(Q,c,r),tt=d.getResolution(Q)/v,et=$[0]*tt*K,nt=$[1]*tt*K,ot=d.getTileCoordForCoordAndZ((0,b.rL)(L),Q),rt=d.getTileCoordExtent(ot),it=(0,m.nn)(this.tempTransform,[E*(rt[0]-L[0])/v,E*(L[3]-rt[3])/v]),st=E*h.getGutterForProjection(r),at=A[Q];for(var lt in at){var ct=(D=at[lt]).tileCoord,ut=ot[1]-ct[1],ht=Math.round(it[0]-(ut-1)*et),pt=ot[2]-ct[2],dt=Math.round(it[1]-(pt-1)*nt),ft=ht-(N=Math.round(it[0]-ut*et)),gt=dt-(F=Math.round(it[1]-pt*nt)),vt=g===Q;if(!(z=vt&&1!==D.getAlpha((0,f.sq)(this),t.time)))if(Y){q.save(),W=[N,F,N+ft,F,N+ft,F+gt,N,F+gt];for(var yt=0,_t=Y.length;yt<_t;++yt)if(g!==Q&&Q<H[yt]){var mt=Y[yt];q.beginPath(),q.moveTo(W[0],W[1]),q.lineTo(W[2],W[3]),q.lineTo(W[4],W[5]),q.lineTo(W[6],W[7]),q.moveTo(mt[6],mt[7]),q.lineTo(mt[4],mt[5]),q.lineTo(mt[2],mt[3]),q.lineTo(mt[0],mt[1]),q.clip()}Y.push(W),H.push(Q)}else q.clearRect(N,F,ft,gt);this.drawTileImage(D,t,N,F,ft,gt,st,vt,n.opacity),Y&&!z?(q.restore(),this.renderedTiles.unshift(D)):this.renderedTiles.push(D),this.updateUsedTiles(t.usedTiles,h,D)}}return this.renderedRevision=p,this.renderedResolution=v,this.extentChanged=!this.renderedExtent_||!(0,b.fS)(this.renderedExtent_,L),this.renderedExtent_=L,this.renderedPixelRatio=c,this.renderedProjection=r,this.manageTilePyramid(t,h,d,c,r,y,g,u.getPreload()),this.scheduleExpireCache(t,h),this.postRender(q,t),n.extent&&q.restore(),X!==V.style.transform&&(V.style.transform=X),this.container},e.prototype.drawTileImage=function(t,e,n,o,r,i,s,a,l){var c=this.getTileImage(t);if(c){var u=(0,f.sq)(this),h=a?t.getAlpha(u,e.time):1,p=l*h,d=p!==this.context.globalAlpha;d&&(this.context.save(),this.context.globalAlpha=p),this.context.drawImage(c,s,s,c.width-2*s,c.height-2*s,n,o,r,i),d&&this.context.restore(),1!==h?e.animate=!0:a&&t.endTransition(u)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getTileImage=function(t){return t.getImage()},e.prototype.scheduleExpireCache=function(t,e){if(e.canExpireCache()){var n=function(t,e,n){var o=(0,f.sq)(t);o in n.usedTiles&&t.expireCache(n.viewState.projection,n.usedTiles[o])}.bind(null,e);t.postRenderFunctions.push(n)}},e.prototype.updateUsedTiles=function(t,e,n){var o=(0,f.sq)(e);o in t||(t[o]={}),t[o][n.getKey()]=!0},e.prototype.manageTilePyramid=function(t,e,n,o,r,i,s,a,l){var c=(0,f.sq)(e);c in t.wantedTiles||(t.wantedTiles[c]={});var u,h,p,d,g,v,y=t.wantedTiles[c],_=t.tileQueue,m=0;for(v=n.getMinZoom();v<=s;++v)for(h=n.getTileRangeForExtentAndZ(i,v,h),p=n.getResolution(v),d=h.minX;d<=h.maxX;++d)for(g=h.minY;g<=h.maxY;++g)s-v<=a?(++m,(u=e.getTile(v,d,g,o,r)).getState()==T.Z.IDLE&&(y[u.getKey()]=!0,_.isKeyQueued(u.getKey())||_.enqueue([u,c,n.getTileCoordCenter(u.tileCoord),p])),void 0!==l&&l(u)):e.useTile(v,d,g,r);e.updateCacheSize(m,r)},e}(x);S.prototype.getLayer;const L=S;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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const A=function(t){function e(e){return t.call(this,e)||this}return I(e,t),e.prototype.createRenderer=function(){return new L(this)},e}(c)},3983:(t,e,n)=>{"use strict";function o(t,e,n){return Math.min(Math.max(t,e),n)}n.d(e,{uZ:()=>o,f9:()=>r,k3:()=>i,rU:()=>s,bI:()=>a,SV:()=>l,Yr:()=>c,$W:()=>u,t7:()=>h});var r="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2},i="log2"in Math?Math.log2:function(t){return Math.log(t)*Math.LOG2E};function s(t,e,n,o,r,i){var s=r-n,l=i-o;if(0!==s||0!==l){var c=((t-n)*s+(e-o)*l)/(s*s+l*l);c>1?(n=r,o=i):c>0&&(n+=s*c,o+=l*c)}return a(t,e,n,o)}function a(t,e,n,o){var r=n-t,i=o-e;return r*r+i*i}function l(t){for(var e=t.length,n=0;n<e;n++){for(var o=n,r=Math.abs(t[n][n]),i=n+1;i<e;i++){var s=Math.abs(t[i][n]);s>r&&(r=s,o=i)}if(0===r)return null;var a=t[o];t[o]=t[n],t[n]=a;for(var l=n+1;l<e;l++)for(var c=-t[l][n]/t[n][n],u=n;u<e+1;u++)n==u?t[l][u]=0:t[l][u]+=c*t[n][u]}for(var h=new Array(e),p=e-1;p>=0;p--){h[p]=t[p][e]/t[p][p];for(var d=p-1;d>=0;d--)t[d][e]-=t[d][p]*h[p]}return h}function c(t){return t*Math.PI/180}function u(t,e){var n=t%e;return n*e<0?n+e:n}function h(t,e,n){return t+n*(e-t)}},9374:(t,e,n)=>{"use strict";n.d(e,{f0:()=>o,ZH:()=>r,KX:()=>i,xb:()=>s});var o="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),o=1,r=arguments.length;o<r;++o){var i=arguments[o];if(null!=i)for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])}return n};function r(t){for(var e in t)delete t[e]}var i="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}},8857:(t,e,n)=>{"use strict";n.d(e,{Wm:()=>o.Wm,UQ:()=>L,OP:()=>I,Vs:()=>G,dY:()=>K,U2:()=>R,_Q:()=>P,Ck:()=>M,Cs:()=>k,lO:()=>z,Fj:()=>U,vs:()=>Z});var o=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_||o.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}();var i,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,c=Math.PI*l,u=[-c,-c,c,c],h=[-180,-85,180,85],p=l*Math.log(Math.tan(Math.PI/2)),d=function(t){function e(e){return t.call(this,{code:e,units:o.ZP.METERS,extent:u,global:!0,worldExtent:h,getPointResolution:function(t,e){return t/(0,s.f9)(e[1]/l)}})||this}return a(e,t),e}(r),f=[new d("EPSG:3857"),new d("EPSG:102100"),new d("EPSG:102113"),new d("EPSG:900913"),new d("http://www.opengis.net/def/crs/EPSG/0/3857"),new d("http://www.opengis.net/gml/srs/epsg.xml#3857")];var g=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),v=[-180,-90,180,90],y=6378137*Math.PI/180,_=function(t){function e(e,n){return t.call(this,{code:e,units:o.ZP.DEGREES,extent:v,axisOrientation:n,global:!0,metersPerUnit:y,worldExtent:v})||this}return g(e,t),e}(r),m=[new _("CRS:84"),new _("EPSG:4326","neu"),new _("urn:ogc:def:crs:OGC:1.3:CRS84"),new _("urn:ogc:def:crs:OGC:2:84"),new _("http://www.opengis.net/def/crs/OGC/1.3/CRS84","neu"),new _("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new _("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],b={},E={};function w(t,e,n){var o=t.getCode(),r=e.getCode();o in E||(E[o]={}),E[o][r]=n}n(7971);function x(t,e,n){var o=n||6371008.8,r=(0,s.Yr)(t[1]),i=(0,s.Yr)(e[1]),a=(i-r)/2,l=(0,s.Yr)(e[0]-t[0])/2,c=Math.sin(a)*Math.sin(a)+Math.sin(l)*Math.sin(l)*Math.cos(r)*Math.cos(i);return 2*o*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}function C(t,e,n){var o;if(void 0!==e){for(var r=0,i=t.length;r<i;++r)e[r]=t[r];o=e}else o=t.slice();return o}function T(t,e,n){if(void 0!==e&&t!==e){for(var o=0,r=t.length;o<r;++o)e[o]=t[o];t=e}return t}function O(t){!function(t,e){b[t]=e}(t.getCode(),t),w(t,t,C)}function R(t){return"string"==typeof t?b[e=t]||b[e.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:t||null;var e}function P(t,e,n,r){var i,s=(t=R(t)).getPointResolutionFunc();if(s)i=s(e,n),r&&r!==t.getUnits()&&(l=t.getMetersPerUnit())&&(i=i*l/o.Wm[r]);else{var a=t.getUnits();if(a==o.ZP.DEGREES&&!r||r==o.ZP.DEGREES)i=e;else{var l,c=A(t,R("EPSG:4326"));if(c===T&&a!==o.ZP.DEGREES)i=e*t.getMetersPerUnit();else{var u=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];i=(x((u=c(u,u,2)).slice(0,2),u.slice(2,4))+x(u.slice(4,6),u.slice(6,8)))/2}void 0!==(l=r?o.Wm[r]:t.getMetersPerUnit())&&(i/=l)}}return i}function S(t){!function(t){t.forEach(O)}(t),t.forEach((function(e){t.forEach((function(t){e!==t&&w(e,t,C)}))}))}function L(t,e){return t?"string"==typeof t?R(t):t:R(e)}function I(t,e){if(t===e)return!0;var n=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||A(t,e)===C)&&n}function A(t,e){var n=function(t,e){var n;return t in E&&e in E[t]&&(n=E[t][e]),n}(t.getCode(),e.getCode());return n||(n=T),n}function M(t,e){return A(R(t),R(e))}function Z(t,e,n){return M(e,n)(t,void 0,t.length)}var j,N,F,D=null;function k(){return D}function z(t,e){return t}function G(t,e){return t}function U(t,e){return t}function K(t,e){return t}S(f),S(m),j=f,N=function(t,e,n){var o=t.length,r=n>1?n:2,i=e;void 0===i&&(i=r>2?t.slice():new Array(o));for(var s=0;s<o;s+=r){i[s]=c*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),i[s+1]=a}return i},F=function(t,e,n){var o=t.length,r=n>1?n:2,i=e;void 0===i&&(i=r>2?t.slice():new Array(o));for(var s=0;s<o;s+=r)i[s]=180*t[s]/c,i[s+1]=360*Math.atan(Math.exp(t[s+1]/l))/Math.PI-90;return i},m.forEach((function(t){j.forEach((function(e){w(t,e,N),w(e,t,F)}))}))},8375:(t,e,n)=>{"use strict";n.d(e,{Wm:()=>r,ZP:()=>i});var o={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},r={};r[o.RADIANS]=6370997/(2*Math.PI),r[o.DEGREES]=2*Math.PI*6370997/360,r[o.FEET]=.3048,r[o.METERS]=1,r[o.USFEET]=1200/3937;const i=o},7380:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var o,r=n(291),i=(o=function(t,e){return o=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])},o(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}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const s=function(t){function e(e,n,o,r){var i=t.call(this,e)||this;return i.inversePixelTransform=n,i.frameState=o,i.context=r,i}return i(e,t),e}(r.ZP)},8771:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const o={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},828:(t,e,n)=>{"use strict";n.d(e,{h$:()=>r,YP:()=>i,gE:()=>s,Gw:()=>a});var o=n(3983);function r(t){return void 0!==t?0:void 0}function i(t){return void 0!==t?t:void 0}function s(t){var e=2*Math.PI/t;return function(t,n){return n?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0}}function a(t){var e=t||(0,o.Yr)(5);return function(t,n){return n?t:void 0!==t?Math.abs(t)<=e?0:t:void 0}}},4307:(t,e,n)=>{"use strict";function o(t){return t[0]>0&&t[1]>0}function r(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 i(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}n.d(e,{py:()=>o,bA:()=>r,Pq:()=>i})},8266:(t,e,n)=>{"use strict";n.r(e),n.d(e,{ATTRIBUTION:()=>s,default:()=>a});var o,r=n(6837),i=(o=function(t,e){return o=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])},o(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}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s='© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.';const a=function(t){function e(e){var n,o=e||{};n=void 0!==o.attributions?o.attributions:[s];var r=void 0!==o.crossOrigin?o.crossOrigin:"anonymous",i=void 0!==o.url?o.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";return t.call(this,{attributions:n,attributionsCollapsible:!1,cacheSize:o.cacheSize,crossOrigin:r,imageSmoothing:o.imageSmoothing,maxZoom:void 0!==o.maxZoom?o.maxZoom:19,opaque:void 0===o.opaque||o.opaque,reprojectionErrorThreshold:o.reprojectionErrorThreshold,tileLoadFunction:o.tileLoadFunction,transition:o.transition,url:i,wrapX:o.wrapX,zDirection:o.zDirection})||this}return i(e,t),e}(r.Z)},2347:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var o,r=n(6837),i=n(8266),s=(o=function(t,e){return o=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])},o(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}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=['Map tiles by <a href="https://stamen.com/" target="_blank">Stamen Design</a>, under <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY 3.0</a>.',i.ATTRIBUTION],l={terrain:{extension:"jpg",opaque:!0},"terrain-background":{extension:"jpg",opaque:!0},"terrain-labels":{extension:"png",opaque:!1},"terrain-lines":{extension:"png",opaque:!1},"toner-background":{extension:"png",opaque:!0},toner:{extension:"png",opaque:!0},"toner-hybrid":{extension:"png",opaque:!1},"toner-labels":{extension:"png",opaque:!1},"toner-lines":{extension:"png",opaque:!1},"toner-lite":{extension:"png",opaque:!0},watercolor:{extension:"jpg",opaque:!0}},c={terrain:{minZoom:0,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:0,maxZoom:18}};const u=function(t){function e(e){var n=e.layer.indexOf("-"),o=-1==n?e.layer:e.layer.slice(0,n),r=c[o],i=l[e.layer],s=void 0!==e.url?e.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+e.layer+"/{z}/{x}/{y}."+i.extension;return t.call(this,{attributions:a,cacheSize:e.cacheSize,crossOrigin:"anonymous",imageSmoothing:e.imageSmoothing,maxZoom:null!=e.maxZoom?e.maxZoom:r.maxZoom,minZoom:null!=e.minZoom?e.minZoom:r.minZoom,opaque:i.opaque,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:s,wrapX:e.wrapX,zDirection:e.zDirection})||this}return s(e,t),e}(r.Z)},4562:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const o={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"}},6837:(t,e,n)=>{"use strict";n.d(e,{Z:()=>yt});var o,r=n(5487),i=n(208),s=n(7195),a=n(4187),l=n(1015),c=(o=function(t,e){return o=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])},o(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}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const u=function(t){function e(e,n,o){var r=t.call(this)||this,i=o||{};return r.tileCoord=e,r.state=n,r.interimTile=null,r.key="",r.transition_=void 0===i.transition?250:i.transition,r.transitionStarts_={},r}return c(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(t.getState()==s.Z.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this},e.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==s.Z.LOADED){t.interimTile=null;break}t.getState()==s.Z.LOADING?e=t:t.getState()==s.Z.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},e.prototype.getTileCoord=function(){return this.tileCoord},e.prototype.getState=function(){return this.state},e.prototype.setState=function(t){if(this.state!==s.Z.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){(0,a.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 o=e-n+1e3/60;return o>=this.transition_?1:(0,l.YQ)(o/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(i.Z);var h=n(8326),p=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const d=function(t){function e(e,n,o,r){var i=t.call(this)||this;return i.extent=e,i.pixelRatio_=o,i.resolution=n,i.state=r,i}return p(e,t),e.prototype.changed=function(){this.dispatchEvent(r.Z.CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return(0,a.O3)()},e.prototype.getPixelRatio=function(){return this.pixelRatio_},e.prototype.getResolution=function(){return this.resolution},e.prototype.getState=function(){return this.state},e.prototype.load=function(){(0,a.O3)()},e}(i.Z);var f=n(553),g=n(177),v=n(7971),y=n(5818),_=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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();function m(t,e,n){var o=t;if(o.src&&g.Tp){var i=o.decode(),s=!0;return i.then((function(){s&&e()})).catch((function(t){s&&("EncodingError"===t.name&&"Invalid image type."===t.message?e():n())})),function(){s=!1}}var a=[(0,y.Vx)(o,r.Z.LOAD,e),(0,y.Vx)(o,r.Z.ERROR,n)];return function(){a.forEach(y.bN)}}!function(t){function e(e,n,o,r,i,s){var a=t.call(this,e,n,o,f.Z.IDLE)||this;return a.src_=r,a.image_=new Image,null!==i&&(a.image_.crossOrigin=i),a.unlisten_=null,a.state=f.Z.IDLE,a.imageLoadFunction_=s,a}_(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=f.Z.ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=(0,v.Cr)(this.extent)/this.image_.height),this.state=f.Z.LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=f.Z.IDLE&&this.state!=f.Z.ERROR||(this.state=f.Z.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=m(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.setImage=function(t){this.image_=t,this.resolution=(0,v.Cr)(this.extent)/this.image_.height},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}(d);var b=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const E=function(t){function e(e,n,o,r,i,s){var a=t.call(this,e,n,s)||this;return a.crossOrigin_=r,a.src_=o,a.key=o,a.image_=new Image,null!==r&&(a.image_.crossOrigin=r),a.unlisten_=null,a.tileLoadFunction_=i,a}return b(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=s.Z.LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){var t;this.state=s.Z.ERROR,this.unlistenImage_(),this.image_=((t=(0,h.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=s.Z.LOADED:this.state=s.Z.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==s.Z.ERROR&&(this.state=s.Z.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==s.Z.IDLE&&(this.state=s.Z.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=m(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(u);var w=n(8857),x=n(3983);const C=function(){function t(t,e,n,o,r,i){this.sourceProj_=t,this.targetProj_=e;var s={},a=(0,w.Ck)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return s[e]||(s[e]=a(t)),s[e]},this.maxSourceExtent_=o,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!o&&!!this.sourceProj_.getExtent()&&(0,v.dz)(o)==(0,v.dz)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,v.dz)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,v.dz)(this.targetProj_.getExtent()):null;var l=(0,v.rL)(n),c=(0,v.Xv)(n),u=(0,v.w$)(n),h=(0,v.hC)(n),p=this.transformInv_(l),d=this.transformInv_(c),f=this.transformInv_(u),g=this.transformInv_(h),y=10+(i?Math.max(0,Math.ceil((0,x.k3)((0,v.bg)(n)/(i*i*256*256)))):0);if(this.addQuad_(l,c,u,h,p,d,f,g,y),this.wrapsXInSource_){var _=1/0;this.triangles_.forEach((function(t,e,n){_=Math.min(_,t.source[0][0],t.source[1][0],t.source[2][0])})),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-_>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-_>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-_>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-_>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var n=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-n<this.sourceWorldWidth_/2&&(t.source=e)}}.bind(this))}s={}}return t.prototype.addTriangle_=function(t,e,n,o,r,i){this.triangles_.push({source:[o,r,i],target:[t,e,n]})},t.prototype.addQuad_=function(t,e,n,o,r,i,s,a,l){var c=(0,v.hI)([r,i,s,a]),u=this.sourceWorldWidth_?(0,v.dz)(c)/this.sourceWorldWidth_:null,h=this.sourceWorldWidth_,p=this.sourceProj_.canWrapX()&&u>.5&&u<1,d=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var f=(0,v.hI)([t,e,n,o]);d=(0,v.dz)(f)/this.targetWorldWidth_>.25||d}!p&&this.sourceProj_.isGlobal()&&u&&(d=u>.25||d)}if(!(!d&&this.maxSourceExtent_&&isFinite(c[0])&&isFinite(c[1])&&isFinite(c[2])&&isFinite(c[3]))||(0,v.kK)(c,this.maxSourceExtent_)){var g=0;if(!(d||isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1])))if(l>0)d=!0;else if(1!=(g=(isFinite(r[0])&&isFinite(r[1])?0:8)+(isFinite(i[0])&&isFinite(i[1])?0:4)+(isFinite(s[0])&&isFinite(s[1])?0:2)+(isFinite(a[0])&&isFinite(a[1])?0:1))&&2!=g&&4!=g&&8!=g)return;if(l>0){if(!d){var y=[(t[0]+n[0])/2,(t[1]+n[1])/2],_=this.transformInv_(y),m=void 0;m=p?((0,x.$W)(r[0],h)+(0,x.$W)(s[0],h))/2-(0,x.$W)(_[0],h):(r[0]+s[0])/2-_[0];var b=(r[1]+s[1])/2-_[1];d=m*m+b*b>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],w=this.transformInv_(E),C=[(o[0]+t[0])/2,(o[1]+t[1])/2],T=this.transformInv_(C);this.addQuad_(t,e,E,C,r,i,w,T,l-1),this.addQuad_(C,E,n,o,T,w,s,a,l-1)}else{var O=[(t[0]+e[0])/2,(t[1]+e[1])/2],R=this.transformInv_(O),P=[(n[0]+o[0])/2,(n[1]+o[1])/2],S=this.transformInv_(P);this.addQuad_(t,O,P,o,r,R,S,a,l-1),this.addQuad_(O,e,n,P,R,i,s,S,l-1)}return}}if(p){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&g)&&this.addTriangle_(t,n,o,r,s,a),0==(14&g)&&this.addTriangle_(t,n,e,r,s,i),g&&(0==(13&g)&&this.addTriangle_(e,o,t,i,a,r),0==(7&g)&&this.addTriangle_(e,o,n,i,a,s))}},t.prototype.calculateSourceExtent=function(){var t=(0,v.lJ)();return this.triangles_.forEach((function(e,n,o){var r=e.source;(0,v.Wj)(t,r[0]),(0,v.Wj)(t,r[1]),(0,v.Wj)(t,r[2])})),t},t.prototype.getTriangles=function(){return this.triangles_},t}();var T,O={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},R=n(9374);function P(t,e,n,o,r){t.beginPath(),t.moveTo(0,0),t.lineTo(e,n),t.lineTo(o,r),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,o)+1,Math.max(n,r)),t.restore()}function S(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function L(t,e,n,o){var r=(0,w.vs)(n,e,t),i=(0,w._Q)(e,o,n),s=e.getMetersPerUnit();void 0!==s&&(i*=s);var a=t.getMetersPerUnit();void 0!==a&&(i/=a);var l=t.getExtent();if(!l||(0,v.b8)(l,r)){var c=(0,w._Q)(t,i,r)/i;isFinite(c)&&c>0&&(i/=c)}return i}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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),A=function(t){function e(e,n,o,r,i,a,l,c,u,h,p,d){var f=t.call(this,i,s.Z.IDLE)||this;f.renderEdges_=void 0!==p&&p,f.contextOptions_=d,f.pixelRatio_=l,f.gutter_=c,f.canvas_=null,f.sourceTileGrid_=n,f.targetTileGrid_=r,f.wrappedTileCoord_=a||i,f.sourceTiles_=[],f.sourcesListenerKeys_=null,f.sourceZ_=0;var g=r.getTileCoordExtent(f.wrappedTileCoord_),y=f.targetTileGrid_.getExtent(),_=f.sourceTileGrid_.getExtent(),m=y?(0,v.Ed)(g,y):g;if(0===(0,v.bg)(m))return f.state=s.Z.EMPTY,f;var b=e.getExtent();b&&(_=_?(0,v.Ed)(_,b):b);var E=r.getResolution(f.wrappedTileCoord_[0]),w=function(t,e,n,o){var r=(0,v.qg)(n),i=L(t,e,r,o);return(!isFinite(i)||i<=0)&&(0,v.H6)(n,(function(n){return i=L(t,e,n,o),isFinite(i)&&i>0})),i}(e,o,m,E);if(!isFinite(w)||w<=0)return f.state=s.Z.EMPTY,f;var T=void 0!==h?h:.5;if(f.triangulation_=new C(e,o,m,_,w*T,E),0===f.triangulation_.getTriangles().length)return f.state=s.Z.EMPTY,f;f.sourceZ_=n.getZForResolution(w);var O=f.triangulation_.calculateSourceExtent();if(_&&(e.canWrapX()?(O[1]=(0,x.uZ)(O[1],_[1],_[3]),O[3]=(0,x.uZ)(O[3],_[1],_[3])):O=(0,v.Ed)(O,_)),(0,v.bg)(O)){for(var R=n.getTileRangeForExtentAndZ(O,f.sourceZ_),P=R.minX;P<=R.maxX;P++)for(var S=R.minY;S<=R.maxY;S++){var I=u(f.sourceZ_,P,S,l);I&&f.sourceTiles_.push(I)}0===f.sourceTiles_.length&&(f.state=s.Z.EMPTY)}else f.state=s.Z.EMPTY;return f}return I(e,t),e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,n,o){e&&e.getState()==s.Z.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=s.Z.ERROR;else{var e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),o="number"==typeof n?n:n[0],r="number"==typeof n?n:n[1],i=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(t,e,n,o,r,i,s,a,l,c,u,p){var d=(0,h.E4)(Math.round(n*t),Math.round(n*e));if((0,R.f0)(d,p),0===l.length)return d.canvas;function f(t){return Math.round(t*n)/n}d.scale(n,n),d.globalCompositeOperation="lighter";var g=(0,v.lJ)();l.forEach((function(t,e,n){(0,v.l7)(g,t.extent)}));var y=(0,v.dz)(g),_=(0,v.Cr)(g),m=(0,h.E4)(Math.round(n*y/o),Math.round(n*_/o));(0,R.f0)(m,p);var b=n/o;l.forEach((function(t,e,n){var o=t.extent[0]-g[0],r=-(t.extent[3]-g[3]),i=(0,v.dz)(t.extent),s=(0,v.Cr)(t.extent);t.image.width>0&&t.image.height>0&&m.drawImage(t.image,c,c,t.image.width-2*c,t.image.height-2*c,o*b,r*b,i*b,s*b)}));var E=(0,v.rL)(s);return a.getTriangles().forEach((function(t,e,r){var s=t.source,a=t.target,l=s[0][0],c=s[0][1],u=s[1][0],h=s[1][1],v=s[2][0],y=s[2][1],_=f((a[0][0]-E[0])/i),b=f(-(a[0][1]-E[1])/i),w=f((a[1][0]-E[0])/i),C=f(-(a[1][1]-E[1])/i),R=f((a[2][0]-E[0])/i),L=f(-(a[2][1]-E[1])/i),I=l,A=c;l=0,c=0;var M=[[u-=I,h-=A,0,0,w-_],[v-=I,y-=A,0,0,R-_],[0,0,u,h,C-b],[0,0,v,y,L-b]],Z=(0,x.SV)(M);if(Z){if(d.save(),d.beginPath(),function(){if(void 0===T){var t=document.createElement("canvas").getContext("2d");t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",P(t,4,5,4,0),P(t,4,5,0,5);var e=t.getImageData(0,0,3,3).data;T=S(e,0)||S(e,4)||S(e,8)}return T}()||p===O){d.moveTo(w,C);for(var j=_-w,N=b-C,F=0;F<4;F++)d.lineTo(w+f((F+1)*j/4),C+f(F*N/3)),3!=F&&d.lineTo(w+f((F+1)*j/4),C+f((F+1)*N/3));d.lineTo(R,L)}else d.moveTo(w,C),d.lineTo(_,b),d.lineTo(R,L);d.clip(),d.transform(Z[0],Z[2],Z[1],Z[3],_,b),d.translate(g[0]-I,g[3]-A),d.scale(o/n,-o/n),d.drawImage(m.canvas,0,0),d.restore()}})),u&&(d.save(),d.globalCompositeOperation="source-over",d.strokeStyle="black",d.lineWidth=1,a.getTriangles().forEach((function(t,e,n){var o=t.target,r=(o[0][0]-E[0])/i,s=-(o[0][1]-E[1])/i,a=(o[1][0]-E[0])/i,l=-(o[1][1]-E[1])/i,c=(o[2][0]-E[0])/i,u=-(o[2][1]-E[1])/i;d.beginPath(),d.moveTo(a,l),d.lineTo(r,s),d.lineTo(c,u),d.closePath(),d.stroke()})),d.restore()),d.canvas}(o,r,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),i,l,this.triangulation_,t,this.gutter_,this.renderEdges_,this.contextOptions_),this.state=s.Z.LOADED}this.changed()},e.prototype.load=function(){if(this.state==s.Z.IDLE){this.state=s.Z.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,n,o){var i=e.getState();if(i==s.Z.IDLE||i==s.Z.LOADING){t++;var a=(0,y.oL)(e,r.Z.CHANGE,(function(n){var o=e.getState();o!=s.Z.LOADED&&o!=s.Z.ERROR&&o!=s.Z.EMPTY||((0,y.bN)(a),0==--t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(a)}}.bind(this)),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(t,e,n){t.getState()==s.Z.IDLE&&t.load()}))}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(y.bN),this.sourcesListenerKeys_=null},e}(u);const M=A;var Z=n(9515),j=function(){function t(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return t.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},t.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},t.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},t.prototype.forEach=function(t){for(var e=this.oldest_;e;)t(e.value_,e.key_,this),e=e.newer},t.prototype.get=function(t,e){var n=this.entries_[t];return(0,Z.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,Z.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,Z.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}();const N=j;function F(t,e,n,o){return void 0!==o?(o[0]=t,o[1]=e,o[2]=n,o):[t,e,n]}function D(t,e,n){return t+"/"+e+"/"+n}function k(t){return D(t[0],t[1],t[2])}var z=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return z(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(k(e.tileCoord)),e.release())}.bind(this))}},e}(N);var U=n(291),K=n(2971),X=n(4562),q=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();function V(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}const Y=function(t){function e(e){var n=t.call(this)||this;return n.projection=(0,w.U2)(e.projection),n.attributions_=V(e.attributions),n.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,n.loading=!1,n.state_=void 0!==e.state?e.state:X.Z.READY,n.wrapX_=void 0!==e.wrapX&&e.wrapX,n}return q(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,a.O3)()},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.getContextOptions=function(){},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=V(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(K.Z);var H=n(9600),W=n(2519),B=n(4768),J=n(5537),Q=n(4307),$=[0,0,0];const tt=function(){function t(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,(0,Z.h)((0,J.pT)(this.resolutions_,(function(t,e){return e-t}),!0),17),!t.origins)for(var n=0,o=this.resolutions_.length-1;n<o;++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,Z.h)(this.origins_.length==this.resolutions_.length,20));var r=t.extent;void 0===r||this.origin_||this.origins_||(this.origin_=(0,v.rL)(r)),(0,Z.h)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,(0,Z.h)(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:B.S,(0,Z.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 W.Z(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 o=this.getTileRangeForExtentAndZ(r,e);n.minX=Math.max(o.minX,n.minX),n.maxX=Math.min(o.maxX,n.maxX),n.minY=Math.max(o.minY,n.minY),n.maxY=Math.min(o.maxY,n.maxY)}return n}),this):r&&this.calculateTileRanges_(r)}return t.prototype.forEachTileCoord=function(t,e,n){for(var o=this.getTileRangeForExtentAndZ(t,e),r=o.minX,i=o.maxX;r<=i;++r)for(var s=o.minY,a=o.maxY;s<=a;++s)n([e,r,s])},t.prototype.forEachTileCoordParentTileRange=function(t,e,n,o){var r,i,s,a=null,l=t[0]-1;for(2===this.zoomFactor_?(i=t[1],s=t[2]):a=this.getTileCoordExtent(t,o);l>=this.minZoom;){if(2===this.zoomFactor_?(i=Math.floor(i/2),s=Math.floor(s/2),r=(0,W.T)(i,i,s,s,n)):r=this.getTileRangeForExtentAndZ(a,l,n),e(l,r))return!0;--l}return!1},t.prototype.getExtent=function(){return this.extent_},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.getMinZoom=function(){return this.minZoom},t.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},t.prototype.getResolution=function(t){return this.resolutions_[t]},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getTileCoordChildTileRange=function(t,e,n){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){var o=2*t[1],r=2*t[2];return(0,W.T)(o,o+1,r,r+1,e)}var i=this.getTileCoordExtent(t,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(i,t[0]+1,e)}return null},t.prototype.getTileRangeForTileCoordAndZ=function(t,e,n){if(e>this.maxZoom||e<this.minZoom)return null;var o=t[0],r=t[1],i=t[2];if(e===o)return(0,W.T)(r,i,r,i,n);if(this.zoomFactor_){var s=Math.pow(this.zoomFactor_,e-o),a=Math.floor(r*s),l=Math.floor(i*s);if(e<o)return(0,W.T)(a,a,l,l,n);var c=Math.floor(s*(r+1))-1,u=Math.floor(s*(i+1))-1;return(0,W.T)(a,c,l,u,n)}var h=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(h,e,n)},t.prototype.getTileRangeExtent=function(t,e,n){var o=this.getOrigin(t),r=this.getResolution(t),i=(0,Q.Pq)(this.getTileSize(t),this.tmpSize_),s=o[0]+e.minX*i[0]*r,a=o[0]+(e.maxX+1)*i[0]*r,l=o[1]+e.minY*i[1]*r,c=o[1]+(e.maxY+1)*i[1]*r;return(0,v.T9)(s,l,a,c,n)},t.prototype.getTileRangeForExtentAndZ=function(t,e,n){var o=$;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,o);var r=o[1],i=o[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,o),(0,W.T)(r,o[1],i,o[2],n)},t.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),n=this.getResolution(t[0]),o=(0,Q.Pq)(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*o[0]*n,e[1]-(t[2]+.5)*o[1]*n]},t.prototype.getTileCoordExtent=function(t,e){var n=this.getOrigin(t[0]),o=this.getResolution(t[0]),r=(0,Q.Pq)(this.getTileSize(t[0]),this.tmpSize_),i=n[0]+t[1]*r[0]*o,s=n[1]-(t[2]+1)*r[1]*o,a=i+r[0]*o,l=s+r[1]*o;return(0,v.T9)(i,s,a,l,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,o,r){var i=this.getZForResolution(n),s=n/this.getResolution(i),a=this.getOrigin(i),l=(0,Q.Pq)(this.getTileSize(i),this.tmpSize_),c=o?.5:0,u=o?.5:0,h=Math.floor((t-a[0])/n+c),p=Math.floor((a[1]-e)/n+u),d=s*h/l[0],f=s*p/l[1];return o?(d=Math.ceil(d)-1,f=Math.ceil(f)-1):(d=Math.floor(d),f=Math.floor(f)),F(i,d,f,r)},t.prototype.getTileCoordForXYAndZ_=function(t,e,n,o,r){var i=this.getOrigin(n),s=this.getResolution(n),a=(0,Q.Pq)(this.getTileSize(n),this.tmpSize_),l=o?.5:0,c=o?.5:0,u=Math.floor((t-i[0])/s+l),h=Math.floor((i[1]-e)/s+c),p=u/a[0],d=h/a[1];return o?(p=Math.ceil(p)-1,d=Math.ceil(d)-1):(p=Math.floor(p),d=Math.floor(d)),F(n,p,d,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,J.h7)(this.resolutions_,t,e||0);return(0,x.uZ)(n,this.minZoom,this.maxZoom)},t.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,n=new Array(e),o=this.minZoom;o<e;++o)n[o]=this.getTileRangeForExtentAndZ(t,o);this.fullTileRanges_=n},t}();var et=n(8375);function nt(t){var e=t.getDefaultTileGrid();return e||(e=function(t,e,n,o){return function(t,e,n,o){var r=H.Z.TOP_LEFT,i=ot(t,undefined,n);return new tt({extent:t,origin:(0,v.g0)(t,r),resolutions:i,tileSize:n})}(rt(t),0,void 0)}(t),t.setDefaultTileGrid(e)),e}function ot(t,e,n,o){for(var r=void 0!==e?e:B.e,i=(0,v.Cr)(t),s=(0,v.dz)(t),a=(0,Q.Pq)(void 0!==n?n:B.S),l=o>0?o:Math.max(s/a[0],i/a[1]),c=r+1,u=new Array(c),h=0;h<c;++h)u[h]=l/Math.pow(2,h);return u}function rt(t){var e=(t=(0,w.U2)(t)).getExtent();if(!e){var n=180*w.Wm[et.ZP.DEGREES]/t.getMetersPerUnit();e=(0,v.T9)(-n,-n,n,n)}return e}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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),st=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX})||this;n.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;var o=e.tileGrid;return o&&(0,Q.Pq)(o.getTileSize(o.getMinZoom()),[256,256]),n.tileCache=new G(e.cacheSize||0),n.tmpSize=[0,0],n.key_=e.key||"",n.tileOptions={transition:e.transition},n.zDirection=e.zDirection?e.zDirection:0,n}return it(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,o){var r=this.getTileCacheForProjection(t);if(!r)return!1;for(var i,a,l,c=!0,u=n.minX;u<=n.maxX;++u)for(var h=n.minY;h<=n.maxY;++h)a=D(e,u,h),l=!1,r.containsKey(a)&&(l=(i=r.get(a)).getState()===s.Z.LOADED)&&(l=!1!==o(i)),l||(c=!1);return c},e.prototype.getGutterForProjection=function(t){return 0},e.prototype.getKey=function(){return this.key_},e.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},e.prototype.getOpaque=function(t){return this.opaque_},e.prototype.getResolutions=function(){return this.tileGrid.getResolutions()},e.prototype.getTile=function(t,e,n,o,r){return(0,a.O3)()},e.prototype.getTileGrid=function(){return this.tileGrid},e.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:nt(t)},e.prototype.getTileCacheForProjection=function(t){return(0,Z.h)((0,w.OP)(this.getProjection(),t),68),this.tileCache},e.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},e.prototype.getTilePixelSize=function(t,e,n){var o=this.getTileGridForProjection(n),r=this.getTilePixelRatio(e),i=(0,Q.Pq)(o.getTileSize(t),this.tmpSize);return 1==r?i:(0,Q.bA)(i,r,this.tmpSize)},e.prototype.getTileCoordForTileUrlFunction=function(t,e){var n=void 0!==e?e:this.getProjection(),o=this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(t=function(t,e,n){var o=e[0],r=t.getTileCoordCenter(e),i=rt(n);if((0,v.b8)(i,r))return e;var s=(0,v.dz)(i),a=Math.ceil((i[0]-r[0])/s);return r[0]+=s*a,t.getTileCoordForCoordAndZ(r,o)}(o,t,n)),function(t,e){var n=t[0],o=t[1],r=t[2];if(e.getMinZoom()>n||n>e.getMaxZoom())return!1;var i=e.getFullTileRange(n);return!i||i.containsXY(o,r)}(t,o)?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,o){},e}(Y),at=function(t){function e(e,n){var o=t.call(this,e)||this;return o.tile=n,o}return it(e,t),e}(U.ZP);const lt=st;function ct(t,e){var n=/\{z\}/g,o=/\{x\}/g,r=/\{y\}/g,i=/\{-y\}/g;return function(s,a,l){return s?t.replace(n,s[0].toString()).replace(o,s[1].toString()).replace(r,s[2].toString()).replace(i,(function(){var t=s[0],n=e.getFullTileRange(t);return(0,Z.h)(n,55),(n.getHeight()-s[2]-1).toString()})):void 0}}var 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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const ht=function(t){function e(n){var o=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,key:n.key,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this;return o.generateTileUrlFunction_=o.tileUrlFunction===e.prototype.tileUrlFunction,o.tileLoadFunction=n.tileLoadFunction,n.tileUrlFunction&&(o.tileUrlFunction=n.tileUrlFunction),o.urls=null,n.urls?o.setUrls(n.urls):n.url&&o.setUrl(n.url),o.tileLoadingKeys_={},o}return ut(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,o=(0,a.sq)(n),r=n.getState();r==s.Z.LOADING?(this.tileLoadingKeys_[o]=!0,e="tileloadstart"):o in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[o],e=r==s.Z.ERROR?"tileloaderror":r==s.Z.LOADED?"tileloadend":void 0),null!=e&&this.dispatchEvent(new at(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 o=n[1].charCodeAt(0),r=n[2].charCodeAt(0),i=void 0;for(i=o;i<=r;++i)e.push(t.replace(n[0],String.fromCharCode(i)));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,o=new Array(n),r=0;r<n;++r)o[r]=ct(t[r],e);return function(t){return 1===t.length?t[0]:function(e,n,o){if(e){var r=function(t){return(t[1]<<t[0])+t[2]}(e),i=(0,x.$W)(r,t.length);return t[i](e,n,o)}}}(o)}(t,this.tileGrid),e):this.setKey(e)},e.prototype.tileUrlFunction=function(t,e,n){},e.prototype.useTile=function(t,e,n){var o=D(t,e,n);this.tileCache.containsKey(o)&&this.tileCache.get(o)},e}(lt);var 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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),dt=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:ft,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this;return n.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,n.tileClass=void 0!==e.tileClass?e.tileClass:E,n.tileCacheForProjection={},n.tileGridForProjection={},n.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,n.contextOptions_=!1===e.imageSmoothing?O:void 0,n.renderReprojectionEdges_=!1,n}return pt(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 o in this.tileCache.expireCache(this.tileCache==n?e:{}),this.tileCacheForProjection){var r=this.tileCacheForProjection[o];r.expireCache(r==n?e:{})}},e.prototype.getContextOptions=function(){return this.contextOptions_},e.prototype.getGutterForProjection=function(t){return this.getProjection()&&t&&!(0,w.OP)(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getKey=function(){return t.prototype.getKey.call(this)+(this.contextOptions_?"\n"+JSON.stringify(this.contextOptions_):"")},e.prototype.getOpaque=function(e){return!(this.getProjection()&&e&&!(0,w.OP)(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(t){var e=this.getProjection();if(!this.tileGrid||e&&!(0,w.OP)(e,t)){var n=(0,a.sq)(t);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=nt(t)),this.tileGridForProjection[n]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();if(!e||(0,w.OP)(e,t))return this.tileCache;var n=(0,a.sq)(t);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new G(this.tileCache.highWaterMark)),this.tileCacheForProjection[n]},e.prototype.createTile_=function(t,e,n,o,i,a){var l=[t,e,n],c=this.getTileCoordForTileUrlFunction(l,i),u=c?this.tileUrlFunction(c,o,i):void 0,h=new this.tileClass(l,void 0!==u?s.Z.IDLE:s.Z.EMPTY,void 0!==u?u:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return h.key=a,h.addEventListener(r.Z.CHANGE,this.handleTileChange.bind(this)),h},e.prototype.getTile=function(t,e,n,o,r){var i=this.getProjection();if(i&&r&&!(0,w.OP)(i,r)){var s=this.getTileCacheForProjection(r),a=[t,e,n],l=void 0,c=k(a);s.containsKey(c)&&(l=s.get(c));var u=this.getKey();if(l&&l.key==u)return l;var h=this.getTileGridForProjection(i),p=this.getTileGridForProjection(r),d=this.getTileCoordForTileUrlFunction(a,r),f=new M(i,h,r,p,a,d,this.getTilePixelRatio(o),this.getGutter(),function(t,e,n,o){return this.getTileInternal(t,e,n,o,i)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.contextOptions_);return f.key=u,l?(f.interimTile=l,f.refreshInterimChain(),s.replace(c,f)):s.set(c,f),f}return this.getTileInternal(t,e,n,o,i||r)},e.prototype.getTileInternal=function(t,e,n,o,r){var i=null,a=D(t,e,n),l=this.getKey();if(this.tileCache.containsKey(a)){if((i=this.tileCache.get(a)).key!=l){var c=i;i=this.createTile_(t,e,n,o,r,l),c.getState()==s.Z.IDLE?i.interimTile=c.interimTile:i.interimTile=c,i.refreshInterimChain(),this.tileCache.replace(a,i)}}else i=this.createTile_(t,e,n,o,r,l),this.tileCache.set(a,i);return i},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,w.U2)(t);if(n){var o=(0,a.sq)(n);o in this.tileGridForProjection||(this.tileGridForProjection[o]=e)}},e}(ht);function ft(t,e){t.getImage().src=e}const gt=dt;var vt=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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const yt=function(t){function e(e){var n=e||{},o=void 0!==n.projection?n.projection:"EPSG:3857",r=void 0!==n.tileGrid?n.tileGrid:function(t){var e=t||{},n=e.extent||(0,w.U2)("EPSG:3857").getExtent(),o={extent:n,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:ot(n,e.maxZoom,e.tileSize,e.maxResolution)};return new tt(o)}({extent:rt(o),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,imageSmoothing:n.imageSmoothing,opaque:n.opaque,projection:o,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:r,tileLoadFunction:n.tileLoadFunction,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:n.tileUrlFunction,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this}return vt(e,t),e}(gt)},4768:(t,e,n)=>{"use strict";n.d(e,{e:()=>o,S:()=>r});var o=42,r=256},6101:(t,e,n)=>{"use strict";n.d(e,{Ue:()=>s,nn:()=>a,qC:()=>l,nb:()=>c,BB:()=>u});var o,r=n(177),i=n(9515);function s(){return[1,0,0,1,0,0]}function a(t,e){var n=e[0],o=e[1];return e[0]=t[0]*n+t[2]*o+t[4],e[1]=t[1]*n+t[3]*o+t[5],e}function l(t,e,n,o,r,i,s,a){var l=Math.sin(i),c=Math.cos(i);return t[0]=o*c,t[1]=r*l,t[2]=-o*l,t[3]=r*c,t[4]=s*o*c-a*o*l+e,t[5]=s*r*l+a*r*c+n,t}function c(t,e){var n,o=(n=e)[0]*n[3]-n[1]*n[2];(0,i.h)(0!==o,32);var r=e[0],s=e[1],a=e[2],l=e[3],c=e[4],u=e[5];return t[0]=l/o,t[1]=-s/o,t[2]=-a/o,t[3]=r/o,t[4]=(a*u-l*c)/o,t[5]=-(r*u-s*c)/o,t}function u(t){var e="matrix("+t.join(", ")+")";if(r.Id)return e;var n=o||(o=document.createElement("div"));return n.style.transform=e,n.style.transform}new Array(6)},4187:(t,e,n)=>{"use strict";function o(){return function(){throw new Error("Unimplemented abstract method.")}()}n.d(e,{O3:()=>o,sq:()=>i,q4:()=>s});var r=0;function i(t){return t.ol_uid||(t.ol_uid=String(++r))}var s="6.7.0"}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={id:o,exports:{}};return t[o](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";n(8127),n(2835),n(638),n(8929);var t=u(n(767)),e=u(n(9090)),o=u(n(7494)),r=u(n(1082)),i=u(n(2854)),s=u(n(6560)),a=u(n(8266)),l=u(n(2347)),c=u(n(2837));function u(t){return t&&t.__esModule?t:{default:t}}var h=new s.default({source:new a.default}),p=new s.default({source:new l.default({layer:"watercolor"})}),d=new s.default({source:new l.default({layer:"terrain-labels"})}),f=new t.default({target:"map",layers:[h,p,d],view:new e.default({center:[0,30],zoom:4})}),g=new c.default;g.addLayer(p),g.addLayer(h,!0),f.addControl(g),f.addControl(new o.default),f.addControl(new r.default);var v=new i.default;v.on("select",(function(t){f.getView().animate({center:t.coordinate,zoom:Math.max(f.getView().getZoom(),16)})})),f.addControl(v)})()})();
//# sourceMappingURL=dist.js.map