opengis
Version:
openlayer Map Component for Vue 2.0
1 lines • 6.39 MB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.opengis=e():t.opengis=e()}(this,function(){return function(t){function e(f){if(n[f])return n[f].exports;var r=n[f]={i:f,l:!1,exports:{}};return t[f].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,f){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:f})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=43)}([function(t,e){t.exports=function(t,e,n,f){var r,o=t=t||{},i=typeof t.default;"object"!==i&&"function"!==i||(r=t,o=t.default);var s="function"==typeof o?o.options:o;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),n&&(s._scopeId=n),f){var v=s.computed||(s.computed={});Object.keys(f).forEach(function(t){var e=f[t];v[t]=function(){return e}})}return{esModule:r,exports:o,options:s}}},function(t,e,n){var f,r,o;!function(n,i){r=[t,e],f=i,void 0!==(o="function"==typeof f?f.apply(e,r):f)&&(t.exports=o)}(0,function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var f={control:{unload:"removeControl"},layer:{unload:"removeLayer"},overlay:{unload:"removeOverlay"},interaction:{unload:"removeInteraction"}},r=function t(e){return e.abstract||e.$el===e.$children[0].$el?t(e.$parent):e},o=function t(e){n(this,t),this.methods={ready:function(){var t=this.ol=this.$rootComponent.ol,e=this.map=this.$rootComponent.olmap;this.load(),this.$emit("ready",{ol:t,map:e})},transmitEvent:function(t){this.$emit(t.type.replace(/^on/,""),t)},reload:function(){var t=this;this&&this.ol&&this.$nextTick(function(){t.unload(),t.$nextTick(t.load)})},unload:function(){var t=this.map,n=this.originInstance;t[f[e.type].unload](n)}},this.computed={renderByParent:function(){return this.$parent.preventChildrenRender}},this.mounted=function(){var t=this;this.$rootComponent=r(this.$parent);var e=this.$rootComponent.olmap,n=this.ready;e?n():this.$rootComponent.$on("ready",function(e){var n=t.ol=e.ol,f=t.map=e.map;t.load(),t.$emit("ready",{ol:n,map:f})})},this.beforeDestroy=function(){var t=this.unload,e=this.renderByParent,n=this.$parent;e&&n.reload(),t()}};e.default=function(t){return new o({type:t})},t.exports=e.default})},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var f={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(f[o]=!0)}for(r=0;r<e.length;r++){var i=e[r];"number"==typeof i[0]&&f[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),t.push(i))}},t}},function(t,e,n){function f(t){for(var e=0;e<t.length;e++){var n=t[e],f=c[n.id];if(f){f.refs++;for(var r=0;r<f.parts.length;r++)f.parts[r](n.parts[r]);for(;r<n.parts.length;r++)f.parts.push(o(n.parts[r]));f.parts.length>n.parts.length&&(f.parts.length=n.parts.length)}else{for(var i=[],r=0;r<n.parts.length;r++)i.push(o(n.parts[r]));c[n.id]={id:n.id,refs:1,parts:i}}}}function r(){var t=document.createElement("style");return t.type="text/css",d.appendChild(t),t}function o(t){var e,n,f=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(f){if(P)return a;f.parentNode.removeChild(f)}if(y){var o=l++;f=u||(u=r()),e=i.bind(null,f,o,!1),n=i.bind(null,f,o,!0)}else f=r(),e=s.bind(null,f),n=function(){f.parentNode.removeChild(f)};return e(t),function(f){if(f){if(f.css===t.css&&f.media===t.media&&f.sourceMap===t.sourceMap)return;e(t=f)}else n()}}function i(t,e,n,f){var r=n?"":f.css;if(t.styleSheet)t.styleSheet.cssText=h(e,r);else{var o=document.createTextNode(r),i=t.childNodes;i[e]&&t.removeChild(i[e]),i.length?t.insertBefore(o,i[e]):t.appendChild(o)}}function s(t,e){var n=e.css,f=e.media,r=e.sourceMap;if(f&&t.setAttribute("media",f),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var v="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!v)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var p=n(74),c={},d=v&&(document.head||document.getElementsByTagName("head")[0]),u=null,l=0,P=!1,a=function(){},y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n){P=n;var r=p(t,e);return f(r),function(e){for(var n=[],o=0;o<r.length;o++){var i=r[o],s=c[i.id];s.refs--,n.push(s)}e?(r=p(t,e),f(r)):r=[];for(var o=0;o<n.length;o++){var s=n[o];if(0===s.refs){for(var v=0;v<s.parts.length;v++)s.parts[v]();delete c[s.id]}}}};var h=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){function t(t,e){var n=Wy;t=t.split("."),n=n||Yy,t[0]in n||!n.execScript||n.execScript("var "+t[0]);for(var f;t.length&&(f=t.shift());)t.length||void 0===e?n=n[f]&&n[f]!==Object.prototype[f]?n[f]:n[f]={}:n[f]=e}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function n(){}function f(t){return t.xp||(t.xp=++Cy)}function r(t){this.message="Assertion failed. See https://openlayers.org/en/v4.6.4/doc/errors/#"+t+" for details.",this.code=t,this.name="AssertionError"}function o(t,e,n,f){this.fa=t,this.la=e,this.ea=n,this.ka=f}function i(t,e,n,f,r){return void 0!==r?(r.fa=t,r.la=e,r.ea=n,r.ka=f,r):new o(t,e,n,f)}function s(t,e,n){return t.fa<=e&&e<=t.la&&t.ea<=n&&n<=t.ka}function v(t,e){return t.fa==e.fa&&t.ea==e.ea&&t.la==e.la&&t.ka==e.ka}function p(t,e){if(!t)throw new r(e)}function c(t,e,n){return Math.min(Math.max(t,e),n)}function d(t){return p(0<t,29),Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function u(t,e,n,f,r,o){var i=r-n,s=o-f;if(0!==i||0!==s){var v=((t-n)*i+(e-f)*s)/(i*i+s*s);1<v?(n=r,f=o):0<v&&(n+=i*v,f+=s*v)}return l(t,e,n,f)}function l(t,e,n,f){return t=n-t,e=f-e,t*t+e*e}function P(t){return t*Math.PI/180}function a(t,e){return t%=e,0>t*e?t+e:t}function y(t,e,n){return t+n*(e-t)}function h(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]+2*e,n[1]=t[1]+2*e,n}function O(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function b(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:e[0]=e[1]=t,e)}function z(t){for(var e=D(),n=0,f=t.length;n<f;++n)G(e,t[n]);return e}function H(t,e,n){return n?(n[0]=t[0]-e,n[1]=t[1]-e,n[2]=t[2]+e,n[3]=t[3]+e,n):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function w(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function g(t,e,n){return e=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,t=n<t[1]?t[1]-n:t[3]<n?n-t[3]:0,e*e+t*t}function X(t,e){return T(t,e[0],e[1])}function j(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function T(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function x(t,e){var n=t[1],f=t[2],r=t[3],o=e[0];e=e[1];var i=0;return o<t[0]?i|=16:o>f&&(i|=4),e<n?i|=8:e>r&&(i|=2),0===i&&(i=1),i}function D(){return[1/0,1/0,-1/0,-1/0]}function M(t,e,n,f,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=f,r):[t,e,n,f]}function Z(t){return M(1/0,1/0,-1/0,-1/0,t)}function m(t,e){var n=t[0];return t=t[1],M(n,t,n,t,e)}function A(t,e,n,f,r){return r=Z(r),N(r,t,e,n,f)}function L(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function B(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function G(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 N(t,e,n,f,r){for(;n<f;n+=r){var o=t,i=e[n],s=e[n+1];o[0]=Math.min(o[0],i),o[1]=Math.min(o[1],s),o[2]=Math.max(o[2],i),o[3]=Math.max(o[3],s)}return t}function k(t,e,n){var f;return(f=e.call(n,W(t)))||(f=e.call(n,Y(t)))||(f=e.call(n,S(t)))?f:!!(f=e.call(n,R(t)))&&f}function J(t){var e=0;return I(t)||(e=Q(t)*E(t)),e}function W(t){return[t[0],t[1]]}function Y(t){return[t[2],t[1]]}function C(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function V(t,e,n,f,r){var o=e*f[0]/2;f=e*f[1]/2,e=Math.cos(n);var i=Math.sin(n);n=o*e,o*=i,e*=f;var s=f*i,v=t[0],p=t[1];t=v-n+s,f=v-n-s,i=v+n-s,n=v+n+s,s=p-o-e,v=p-o+e;var c=p+o+e;return o=p+o-e,M(Math.min(t,f,i,n),Math.min(s,v,c,o),Math.max(t,f,i,n),Math.max(s,v,c,o),r)}function E(t){return t[3]-t[1]}function K(t,e,n){return n=n||D(),F(t,e)&&(n[0]=t[0]>e[0]?t[0]:e[0],n[1]=t[1]>e[1]?t[1]:e[1],n[2]=t[2]<e[2]?t[2]:e[2],n[3]=t[3]<e[3]?t[3]:e[3]),n}function R(t){return[t[0],t[3]]}function S(t){return[t[2],t[3]]}function Q(t){return t[2]-t[0]}function F(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function I(t){return t[2]<t[0]||t[3]<t[1]}function q(t,e){var n=(t[2]-t[0])/2*(e-1);e=(t[3]-t[1])/2*(e-1),t[0]-=n,t[2]+=n,t[1]-=e,t[3]+=e}function U(t,e,n){t=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]],e(t,t,2);var f=[t[0],t[2],t[4],t[6]],r=[t[1],t[3],t[5],t[7]];return e=Math.min.apply(null,f),t=Math.min.apply(null,r),f=Math.max.apply(null,f),r=Math.max.apply(null,r),M(e,t,f,r,n)}function _(t){for(var e in t)delete t[e]}function $(t){var e,n=[];for(e in t)n.push(t[e]);return n}function tt(t){for(var e in t)return!1;return!e}function et(t){this.radius=t}function nt(t,e){var n=e||{},f=n.radius||6371008.8;n=n.projection||"EPSG:3857",t=t.clone().mb(n,"EPSG:4326");var r=t.S();n=0;var o;switch(r){case"Point":case"MultiPoint":break;case"LineString":case"LinearRing":e=t.W(),n=ft(e,f);break;case"MultiLineString":case"Polygon":for(e=t.W(),t=0,r=e.length;t<r;++t)n+=ft(e[t],f);break;case"MultiPolygon":for(e=t.W(),t=0,r=e.length;t<r;++t){var i=e[t],s=0;for(o=i.length;s<o;++s)n+=ft(i[s],f)}break;case"GeometryCollection":for(f=t.vd(),t=0,r=f.length;t<r;++t)n+=nt(f[t],e);break;default:throw Error("Unsupported geometry type: "+r)}return n}function ft(t,e){for(var n=0,f=0,r=t.length;f<r-1;++f)n+=rt(t[f],t[f+1],e);return n}function rt(t,e,n){var f=P(t[1]),r=P(e[1]),o=(r-f)/2;return t=P(e[0]-t[0])/2,f=Math.sin(o)*Math.sin(o)+Math.sin(t)*Math.sin(t)*Math.cos(f)*Math.cos(r),2*n*Math.atan2(Math.sqrt(f),Math.sqrt(1-f))}function ot(t,e){var n=e||{},f=n.radius||6371008.8;n=n.projection||"EPSG:3857",t=t.clone().mb(n,"EPSG:4326");var r=t.S();n=0;var o;switch(r){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"LinearRing":break;case"Polygon":for(e=t.W(),n=Math.abs(it(e[0],f)),t=1,r=e.length;t<r;++t)n-=Math.abs(it(e[t],f));break;case"MultiPolygon":for(e=t.W(),t=0,r=e.length;t<r;++t){var i=e[t];n+=Math.abs(it(i[0],f));var s=1;for(o=i.length;s<o;++s)n-=Math.abs(it(i[s],f))}break;case"GeometryCollection":for(f=t.vd(),t=0,r=f.length;t<r;++t)n+=ot(f[t],e);break;default:throw Error("Unsupported geometry type: "+r)}return n}function it(t,e){for(var n=0,f=t.length,r=t[f-1][0],o=t[f-1][1],i=0;i<f;i++){var s=t[i][0],v=t[i][1];n+=P(s-r)*(2+Math.sin(P(o))+Math.sin(P(v))),r=s,o=v}return n*e*e/2}function st(t){this.wb=t.code,this.a=t.units,this.i=void 0!==t.extent?t.extent:null,this.oe=void 0!==t.worldExtent?t.worldExtent:null,this.b=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.c=void 0!==t.global&&t.global,this.g=!(!this.c||!this.i),this.j=t.getPointResolution,this.f=null,this.l=t.metersPerUnit;var e=t.code,n=Ry||window.proj4;"function"==typeof n&&void 0!==(e=n.defs(e))&&(void 0!==e.axis&&void 0===t.axisOrientation&&(this.b=e.axis),void 0===t.metersPerUnit&&(this.l=e.to_meter),void 0===t.units&&(this.a=e.units))}function vt(t){st.call(this,{code:t,units:"m",extent:Qy,global:!0,worldExtent:Fy,getPointResolution:function(t,e){return t/Vy(e[1]/6378137)}})}function pt(t,e,n){var f=t.length;n=1<n?n:2,void 0===e&&(e=2<n?t.slice():Array(f));for(var r=0;r<f;r+=n){e[r]=Sy*t[r]/180;var o=6378137*Math.log(Math.tan(Math.PI*(t[r+1]+90)/360));o>Sy?o=Sy:o<-Sy&&(o=-Sy),e[r+1]=o}return e}function ct(t,e,n){var f=t.length;n=1<n?n:2,void 0===e&&(e=2<n?t.slice():Array(f));for(var r=0;r<f;r+=n)e[r]=180*t[r]/Sy,e[r+1]=360*Math.atan(Math.exp(t[r+1]/6378137))/Math.PI-90;return e}function dt(t,e){st.call(this,{code:t,units:"degrees",extent:qy,axisOrientation:e,global:!0,metersPerUnit:Uy,worldExtent:qy})}function ut(t,e,n){t=t.wb,e=e.wb,t in th||(th[t]={}),th[t][e]=n}function lt(t,e){var n;return t in th&&e in th[t]&&(n=th[t][e]),n}function Pt(t,e,n,f){t=Ht(t);var r=t.j;return r?e=r(e,n):"degrees"==t.a&&!f||"degrees"==f||(r=Xt(t,Ht("EPSG:4326")),e=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2],e=r(e,e,2),e=(eh.b(e.slice(0,2),e.slice(2,4))+eh.b(e.slice(4,6),e.slice(6,8)))/2,void 0!==(t=f?Ky[f]:t.Bc())&&(e/=t)),e}function at(t){t.forEach(ht),t.forEach(function(e){t.forEach(function(t){e!==t&&ut(e,t,Tt)})})}function yt(){_y.forEach(function(t){Iy.forEach(function(e){ut(t,e,pt),ut(e,t,ct)})})}function ht(t){$y[t.wb]=t,ut(t,t,Tt)}function Ot(t){return t?"string"==typeof t?Ht(t):t:Ht("EPSG:3857")}function bt(t,e,n,f){t=Ht(t),e=Ht(e),ut(t,e,zt(n)),ut(e,t,zt(f))}function zt(t){return function(e,n,f){var r=e.length;f=void 0!==f?f:2,n=void 0!==n?n:Array(r);var o;for(o=0;o<r;o+=f){var i=t([e[o],e[o+1]]);for(n[o]=i[0],n[o+1]=i[1],i=f-1;2<=i;--i)n[o+i]=e[o+i]}return n}}function Ht(t){var e=null;if(t instanceof st)e=t;else if("string"==typeof t&&!(e=$y[t]||null)){var n=Ry||window.proj4;"function"==typeof n&&void 0!==n.defs(t)&&(e=new st({code:t}),ht(e))}return e}function wt(t,e){if(t===e)return!0;var n=t.a===e.a;return t.wb===e.wb?n:Xt(t,e)===Tt&&n}function gt(t,e){return t=Ht(t),e=Ht(e),Xt(t,e)}function Xt(t,e){var n=t.wb,f=e.wb,r=lt(n,f);if(!r){var o=Ry||window.proj4;if("function"==typeof o){var i=o.defs(n),s=o.defs(f);void 0!==i&&void 0!==s&&(i===s?at([e,t]):(r=o(f,n),bt(e,t,r.forward,r.inverse)),r=lt(n,f))}}return r||(r=jt),r}function jt(t,e){if(void 0!==e&&t!==e){for(var n=0,f=t.length;n<f;++n)e[n]=t[n];t=e}return t}function Tt(t,e){if(void 0!==e){for(var n=0,f=t.length;n<f;++n)e[n]=t[n];t=e}else t=t.slice();return t}function xt(t,e,n){return gt(e,n)(t,void 0,t.length)}function Dt(t,e,n){return e=gt(e,n),U(t,e)}function Mt(){at(Iy),at(_y),yt()}function Zt(t,e){return t>e?1:t<e?-1:0}function mt(t,e){return 0<=t.indexOf(e)}function At(t,e,n){var f=t.length;if(t[0]<=e)return 0;if(!(e<=t[f-1]))if(0<n){for(n=1;n<f;++n)if(t[n]<e)return n-1}else if(0>n){for(n=1;n<f;++n)if(t[n]<=e)return n}else for(n=1;n<f;++n){if(t[n]==e)return n;if(t[n]<e)return t[n-1]-e<e-t[n]?n-1:n}return f-1}function Lt(t,e){var n=Array.isArray(e)?e:[e],f=n.length;for(e=0;e<f;e++)t[t.length]=n[e]}function Bt(t,e){for(var n,f=t.length>>>0,r=0;r<f;r++)if(n=t[r],e(n,r,t))return n;return null}function Gt(t,e){var n=t.length;if(n!==e.length)return!1;for(var f=0;f<n;f++)if(t[f]!==e[f])return!1;return!0}function Nt(t){var e,n=oi,f=t.length,r=Array(t.length);for(e=0;e<f;e++)r[e]={index:e,value:t[e]};for(r.sort(function(t,e){return n(t.value,e.value)||t.index-e.index}),e=0;e<t.length;e++)t[e]=r[e].value}function kt(t,e){var n;return t.every(function(f,r){return n=r,!e(f,r,t)})?-1:n}function Jt(t,e){var n=e||Zt;return t.every(function(e,f){return 0===f||!(0<(e=n(t[f-1],e))||0===e)})}function Wt(t,e,n,f){return void 0!==f?(f[0]=t,f[1]=e,f[2]=n,f):[t,e,n]}function Yt(t){var e,n=t[0],f=Array(n),r=1<<n-1;for(e=0;e<n;++e){var o=48;t[1]&r&&(o+=1),t[2]&r&&(o+=2),f[e]=String.fromCharCode(o),r>>=1}return f.join("")}function Ct(t){if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.b=t.resolutions,p(Jt(this.b,function(t,e){return e-t}),17),!t.origins)for(var e=0,n=this.b.length-1;e<n;++e)if(f){if(this.b[e]/this.b[e+1]!==f){f=void 0;break}}else var f=this.b[e]/this.b[e+1];this.l=f,this.maxZoom=this.b.length-1,this.g=void 0!==t.origin?t.origin:null,this.c=null,void 0!==t.origins&&(this.c=t.origins,p(this.c.length==this.b.length,20)),f=t.extent,void 0===f||this.g||this.c||(this.g=R(f)),p(!this.g&&this.c||this.g&&!this.c,18),this.i=null,void 0!==t.tileSizes&&(this.i=t.tileSizes,p(this.i.length==this.b.length,19)),this.j=void 0!==t.tileSize?t.tileSize:this.i?null:256,p(!this.j&&this.i||this.j&&!this.i,22),this.o=void 0!==f?f:null,this.a=null,this.f=[0,0],void 0!==t.sizes?this.a=t.sizes.map(function(t){return new o(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1))},this):f&&Ft(this,f)}function Vt(t,e,n,f,r){var o=null,s=e[0]-1;if(2===t.l)var v=e[1],p=e[2];else o=t.Ma(e,r);for(;s>=t.minZoom;){if(2===t.l?(v=Math.floor(v/2),p=Math.floor(p/2),e=i(v,v,p,p,f)):e=Rt(t,o,s,f),n.call(null,s,e))return!0;--s}return!1}function Et(t,e,n,f){return e[0]<t.maxZoom?2===t.l?(t=2*e[1],e=2*e[2],i(t,t+1,e,e+1,n)):(f=t.Ma(e,f),Rt(t,f,e[0]+1,n)):null}function Kt(t,e,n){var f=t.Ic(e),r=t.Ta(e);return t=b(t.Za(e),t.f),M(f[0]+n.fa*t[0]*r,f[1]+n.ea*t[1]*r,f[0]+(n.la+1)*t[0]*r,f[1]+(n.ka+1)*t[1]*r,void 0)}function Rt(t,e,n,f){Qt(t,e[0],e[1],n,!1,nh);var r=nh[1],o=nh[2];return Qt(t,e[2],e[3],n,!0,nh),i(r,nh[1],o,nh[2],f)}function St(t,e){var n=t.Ic(e[0]),f=t.Ta(e[0]);return t=b(t.Za(e[0]),t.f),[n[0]+(e[1]+.5)*t[0]*f,n[1]+(e[2]+.5)*t[1]*f]}function Qt(t,e,n,f,r,o){var i=t.Ic(f),s=t.Ta(f);return t=b(t.Za(f),t.f),e=Math.floor((e-i[0])/s+(r?.5:0))/t[0],n=Math.floor((n-i[1])/s+(r?0:.5))/t[1],r?(e=Math.ceil(e)-1,n=Math.ceil(n)-1):(e=Math.floor(e),n=Math.floor(n)),Wt(f,e,n,o)}function Ft(t,e){for(var n=t.b.length,f=Array(n),r=t.minZoom;r<n;++r)f[r]=Rt(t,e,r);t.a=f}function It(t){var e=t.f;return e||(e=_t(t),t.f=e),e}function qt(t){var e={};return Ey(e,void 0!==t?t:{}),void 0===e.extent&&(e.extent=Ht("EPSG:3857").G()),e.resolutions=Ut(e.extent,e.maxZoom,e.tileSize),delete e.maxZoom,new Ct(e)}function Ut(t,e,n){e=void 0!==e?e:42;var f=E(t);for(t=Q(t),n=b(void 0!==n?n:256),n=Math.max(t/n[0],f/n[1]),e+=1,f=Array(e),t=0;t<e;++t)f[t]=n/Math.pow(2,t);return f}function _t(t,e,n){return t=$t(t),e=Ut(t,e,n),new Ct({extent:t,origin:R(t),resolutions:e,tileSize:n})}function $t(t){t=Ht(t);var e=t.G();return e||(t=180*Ky.degrees/t.Bc(),e=M(-t,-t,t,t)),e}function te(t){this.og=t.html}function ee(t){function e(e){var n=t.listener,f=t.Ch||t.target;return t.Eh&&pe(t),n.call(f,e)}return t.Dh=e}function ne(t,e,n,f){for(var r,o=0,i=t.length;o<i;++o)if(r=t[o],r.listener===e&&r.Ch===n)return f&&(r.deleteIndex=o),r}function fe(t,e){return(t=t.ab)?t[e]:void 0}function re(t){var e=t.ab;return e||(e=t.ab={}),e}function oe(t,e){var n=fe(t,e);if(n){for(var f=0,r=n.length;f<r;++f)t.removeEventListener(e,n[f].Dh),_(n[f]);n.length=0,(n=t.ab)&&(delete n[e],0===Object.keys(n).length&&delete t.ab)}}function ie(t,e,n,f,r){var o=re(t),i=o[e];return i||(i=o[e]=[]),(o=ne(i,n,f,!1))?r||(o.Eh=!1):(o={Ch:f,Eh:!!r,listener:n,target:t,type:e},t.addEventListener(e,ee(o)),i.push(o)),o}function se(t,e,n,f){return ie(t,e,n,f,!0)}function ve(t,e,n,f){(t=fe(t,e))&&(n=ne(t,n,f,!0))&&pe(n)}function pe(t){if(t&&t.target){t.target.removeEventListener(t.type,t.Dh);var e=fe(t.target,t.type);if(e){var n="deleteIndex"in t?t.deleteIndex:e.indexOf(t);-1!==n&&e.splice(n,1),0===e.length&&oe(t.target,t.type)}_(t)}}function ce(t){var e,n=re(t);for(e in n)oe(t,e)}function de(){}function ue(t){t.Ub||(t.Ub=!0,t.ia())}function le(t){this.type=t,this.target=null}function Pe(t){t.stopPropagation()}function ae(){this.Wa={},this.qa={},this.oa={}}function ye(t,e){return e?e in t.oa:0<Object.keys(t.oa).length}function he(){ae.call(this),this.g=0}function Oe(t){he.call(this),f(this),this.N={},void 0!==t&&this.H(t)}function be(t){return fh.hasOwnProperty(t)?fh[t]:fh[t]="change:"+t}function ze(t,e,n){var f=be(e);t.b(new He(f,e,n)),t.b(new He("propertychange",e,n))}function He(t,e,n){le.call(this,t),this.key=e,this.oldValue=n}function we(t,e){if(Oe.call(this),this.c=!!(e||{}).unique,this.a=t||[],this.c)for(t=0,e=this.a.length;t<e;++t)Xe(this,this.a[t],t);ge(this)}function ge(t){t.set(rh,t.a.length)}function Xe(t,e,n){for(var f=0,o=t.a.length;f<o;++f)if(t.a[f]===e&&f!==n)throw new r(58)}function je(t,e){le.call(this,t),this.element=e}function Te(t,e,n){le.call(this,t),this.map=e,this.frameState=void 0!==n?n:null}function xe(t,e,n,f,r){Te.call(this,t,e,r),this.originalEvent=n,this.pixel=e.ud(n),this.coordinate=e.Ra(this.pixel),this.dragging=void 0!==f&&f}function De(t,e){var n,f,r=sh.length;for(f=0;f<r;++f)try{if(n=t.getContext(sh[f],e))return n}catch(t){}return null}function Me(t,e,n,f,r){xe.call(this,t,e,n.b,f,r),this.b=n}function Ze(t,e){this.b=t,this.i=e}function me(t){Ze.call(this,t,{mousedown:this.Jm,mousemove:this.Km,mouseup:this.Nm,mouseover:this.Mm,mouseout:this.Lm}),this.a=t.g,this.g=[]}function Ae(t,e){t=t.g;var n=e.clientX;e=e.clientY;for(var f,r=0,o=t.length;r<o&&(f=t[r]);r++){var i=Math.abs(e-f[1]);if(25>=Math.abs(n-f[0])&&25>=i)return!0}return!1}function Le(t){var e=Fe(t,t),n=e.preventDefault;return e.preventDefault=function(){t.preventDefault(),n()},e.pointerId=1,e.isPrimary=!0,e.pointerType="mouse",e}function Be(t){Ze.call(this,t,{MSPointerDown:this.Sm,MSPointerMove:this.Tm,MSPointerUp:this.Wm,MSPointerOut:this.Um,MSPointerOver:this.Vm,MSPointerCancel:this.Rm,MSGotPointerCapture:this.Pm,MSLostPointerCapture:this.Qm}),this.a=t.g,this.g=["","unavailable","touch","pen","mouse"]}function Ge(t,e){var n=e;return"number"==typeof e.pointerType&&(n=Fe(e,e),n.pointerType=t.g[e.pointerType]),n}function Ne(t){Ze.call(this,t,{pointerdown:this.Kp,pointermove:this.Lp,pointerup:this.Op,pointerout:this.Mp,pointerover:this.Np,pointercancel:this.Jp,gotpointercapture:this.Wl,lostpointercapture:this.Hm})}function ke(t,e,n){le.call(this,t),this.b=e,t=n||{},this.buttons=Je(t),this.pressure=We(t,this.buttons),this.bubbles="bubbles"in t&&t.bubbles,this.cancelable="cancelable"in t&&t.cancelable,this.view="view"in t?t.view:null,this.detail="detail"in t?t.detail:null,this.screenX="screenX"in t?t.screenX:0,this.screenY="screenY"in t?t.screenY:0,this.clientX="clientX"in t?t.clientX:0,this.clientY="clientY"in t?t.clientY:0,this.ctrlKey="ctrlKey"in t&&t.ctrlKey,this.altKey="altKey"in t&&t.altKey,this.shiftKey="shiftKey"in t&&t.shiftKey,this.metaKey="metaKey"in t&&t.metaKey,this.button="button"in t?t.button:0,this.relatedTarget="relatedTarget"in t?t.relatedTarget:null,this.pointerId="pointerId"in t?t.pointerId:0,this.width="width"in t?t.width:0,this.height="height"in t?t.height:0,this.tiltX="tiltX"in t?t.tiltX:0,this.tiltY="tiltY"in t?t.tiltY:0,this.pointerType="pointerType"in t?t.pointerType:"",this.isPrimary="isPrimary"in t&&t.isPrimary,e.preventDefault&&(this.preventDefault=function(){e.preventDefault()})}function Je(t){if(t.buttons||jh)t=t.buttons;else switch(t.which){case 1:t=1;break;case 2:t=4;break;case 3:t=2;break;default:t=0}return t}function We(t,e){return t.pressure?t.pressure:e?.5:0}function Ye(t,e){Ze.call(this,t,{touchstart:this.Qq,touchmove:this.Pq,touchend:this.Oq,touchcancel:this.Nq}),this.a=t.g,this.j=e,this.g=void 0,this.f=0,this.c=void 0}function Ce(t,e,n){return e=Fe(e,n),e.pointerId=n.identifier+2,e.bubbles=!0,e.cancelable=!0,e.detail=t.f,e.button=0,e.buttons=1,e.width=n.webkitRadiusX||n.radiusX||0,e.height=n.webkitRadiusY||n.radiusY||0,e.pressure=n.webkitForce||n.force||.5,e.isPrimary=t.g===n.identifier,e.pointerType="touch",e.clientX=n.clientX,e.clientY=n.clientY,e.screenX=n.screenX,e.screenY=n.screenY,e}function Ve(t,e,n){function f(){e.preventDefault()}var r,o=Array.prototype.slice.call(e.changedTouches),i=o.length;for(r=0;r<i;++r){var s=Ce(t,e,o[r]);s.preventDefault=f,n.call(t,e,s)}}function Ee(t,e){var n=t.j.g;if(e=e.changedTouches[0],t.g===e.identifier){var f=[e.clientX,e.clientY];n.push(f),setTimeout(function(){var t=n.indexOf(f);-1<t&&n.splice(t,1)},2500)}}function Ke(t){ae.call(this),this.f=t,this.g={},this.i={},this.a=[],bh?Re(this,new Ne(this)):zh?Re(this,new Be(this)):(t=new me(this),Re(this,t),Oh&&Re(this,new Ye(this,t))),t=this.a.length;for(var e,n=0;n<t;n++)e=this.a[n],Se(this,Object.keys(e.i))}function Re(t,e){var n=Object.keys(e.i);n&&(n.forEach(function(t){var n=e.i[t];n&&(this.i[t]=n.bind(e))},t),t.a.push(e))}function Se(t,e){e.forEach(function(t){ie(this.f,t,this.c,this)},t)}function Qe(t,e){e.forEach(function(t){ve(this.f,t,this.c,this)},t)}function Fe(t,e){for(var n,f={},r=0,o=Th.length;r<o;r++)n=Th[r][0],f[n]=t[n]||e[n]||Th[r][1];return f}function Ie(t,e,n){e.bubbles=!1,_e(t,"pointerleave",e,n)}function qe(t,e,n){t.out(e,n);var f=e.target,r=e.relatedTarget;f&&r&&f.contains(r)||Ie(t,e,n)}function Ue(t,e,n){e.bubbles=!0,_e(t,"pointerover",e,n);var f=e.target,r=e.relatedTarget;f&&r&&f.contains(r)||(e.bubbles=!1,_e(t,"pointerenter",e,n))}function _e(t,e,n,f){t.b(new ke(e,f,n))}function $e(t,e){t.b(new ke(e.type,e,e))}function tn(t,e){ae.call(this),this.g=t,this.j=0,this.l=!1,this.i=[],this.D=e?e*lh:lh,this.c=null,t=this.g.a,this.N=0,this.o={},this.f=new Ke(t),this.a=null,this.s=ie(this.f,"pointerdown",this.pm,this),this.v=ie(this.f,"pointermove",this.mq,this)}function en(t,e){var n=new Me("click",t.g,e);t.b(n),0!==t.j?(clearTimeout(t.j),t.j=0,n=new Me("dblclick",t.g,e),t.b(n)):t.j=setTimeout(function(){this.j=0;var t=new Me("singleclick",this.g,e);this.b(t)}.bind(t),250)}function nn(t,e){"pointerup"==e.type||"pointercancel"==e.type?delete t.o[e.pointerId]:"pointerdown"==e.type&&(t.o[e.pointerId]=!0),t.N=Object.keys(t.o).length}function fn(t,e){return Math.abs(e.clientX-t.c.clientX)>t.D||Math.abs(e.clientY-t.c.clientY)>t.D}function rn(t,e){this.s=t,this.c=e,this.b=[],this.g=[],this.a={}}function on(t){var e=t.b,n=t.g,f=e[0];return 1==e.length?(e.length=0,n.length=0):(e[0]=e.pop(),n[0]=n.pop(),sn(t,0)),e=t.c(f),delete t.a[e],f}function sn(t,e){for(var n=t.b,f=t.g,r=n.length,o=n[e],i=f[e],s=e;e<r>>1;){var v=2*e+1,p=2*e+2;v=p<r&&f[p]<f[v]?p:v,n[e]=n[v],f[e]=f[v],e=v}n[e]=o,f[e]=i,vn(t,s,e)}function vn(t,e,n){var f=t.b;t=t.g;for(var r=f[n],o=t[n];n>e;){var i=n-1>>1;if(!(t[i]>o))break;f[n]=f[i],t[n]=t[i],n=i}f[n]=r,t[n]=o}function pn(t){var e,n=t.s,f=t.b,r=t.g,o=0,i=f.length;for(e=0;e<i;++e){var s=f[e],v=n(s);1/0==v?delete t.a[t.c(s)]:(r[o]=v,f[o++]=s)}for(f.length=o,r.length=o,n=(t.b.length>>1)-1;0<=n;n--)sn(t,n)}function cn(t,e){rn.call(this,function(e){return t.apply(null,e)},function(t){return t[0].lb()}),this.v=e,this.j=0,this.f={}}function dn(t,e,n){for(var f,r,o,i=0,s=!1;t.j<e&&i<n&&0<t.b.length;)r=on(t)[0],o=r.lb(),f=r.getState(),5===f?s=!0:0!==f||o in t.f||(t.f[o]=!0,++t.j,++i,r.load());0===i&&s&&t.v()}function un(t){return function(e){if(e)return[c(e[0],t[0],t[2]),c(e[1],t[1],t[3])]}}function ln(t){return t}function Pn(t){return function(e,n,f){if(void 0!==e)return e=At(t,e,f),e=c(e+n,0,t.length-1),n=Math.floor(e),e!=n&&n<t.length-1?t[n]/Math.pow(t[n]/t[n+1],e-n):t[n]}}function an(t,e,n){return function(f,r,o){if(void 0!==f)return f=Math.max(Math.floor(Math.log(e/f)/Math.log(t)+(-o/2+.5))+r,0),void 0!==n&&(f=Math.min(f,n)),e/Math.pow(t,f)}}function yn(t){if(void 0!==t)return 0}function hn(t,e){if(void 0!==t)return t+e}function On(t){var e=2*Math.PI/t;return function(t,n){if(void 0!==t)return t=Math.floor((t+n)/e+.5)*e}}function bn(){var t=P(5);return function(e,n){if(void 0!==e)return Math.abs(e+n)<=t?0:e+n}}function zn(t,e){return t=void 0!==e?t.toFixed(e):""+t,e=t.indexOf("."),e=-1===e?t.length:e,2<e?t:Array(3-e).join("0")+t}function Hn(t){t=(""+t).split(".");for(var e=["1","3"],n=0;n<Math.max(t.length,e.length);n++){var f=parseInt(t[n]||"0",10),r=parseInt(e[n]||"0",10);if(f>r)return 1;if(r>f)return-1}return 0}function wn(t,e){return t[0]+=e[0],t[1]+=e[1],t}function gn(t,e){var n=e.Bd(),f=e.xa();e=f[0],f=f[1];var r=t[0]-e;t=t[1]-f,0===r&&0===t&&(r=1);var o=Math.sqrt(r*r+t*t);return[e+n*r/o,f+n*t/o]}function Xn(t,e){var n=t[0];t=t[1];var f=e[0],r=e[1];e=f[0],f=f[1];var o=r[0];r=r[1];var i=o-e,s=r-f;return n=0===i&&0===s?0:(i*(n-e)+s*(t-f))/(i*i+s*s||0),0>=n?(t=e,n=f):1<=n?(t=o,n=r):(t=e+n*i,n=f+n*s),[t,n]}function jn(t,e,n){e=a(e+180,360)-180;var f=Math.abs(3600*e);n=n||0;var r=Math.pow(10,n),o=Math.floor(f/3600),i=Math.floor((f-3600*o)/60);return f=Math.ceil((f-3600*o-60*i)*r)/r,60<=f&&(f=0,i+=1),60<=i&&(i=0,o+=1),o+"° "+zn(i)+"′ "+zn(f,n)+"″"+(0==e?"":" "+t.charAt(0>e?1:0))}function Tn(t,e,n){return t?e.replace("{x}",t[0].toFixed(n)).replace("{y}",t[1].toFixed(n)):""}function xn(t,e){for(var n=!0,f=t.length-1;0<=f;--f)if(t[f]!=e[f]){n=!1;break}return n}function Dn(t,e){var n=Math.cos(e);e=Math.sin(e);var f=t[1]*n+t[0]*e;return t[0]=t[0]*n-t[1]*e,t[1]=f,t}function Mn(t,e){t[0]*=e,t[1]*=e}function Zn(t,e){var n=t[0]-e[0];return t=t[1]-e[1],n*n+t*t}function mn(t,e){return Math.sqrt(Zn(t,e))}function An(t,e){return Zn(t,Xn(t,e))}function Ln(t,e){return Tn(t,"{x}, {y}",e)}function Bn(t){return Math.pow(t,3)}function Gn(t){return 1-Bn(1-t)}function Nn(t){return 3*t*t-2*t*t*t}function kn(t){return t}function Jn(){return!0}function Wn(){return!1}function Yn(t,e,n,f,r,o){for(var i=o||[],s=0;e<n;e+=f){var v=t[e],p=t[e+1];i[s++]=r[0]*v+r[2]*p+r[4],i[s++]=r[1]*v+r[3]*p+r[5]}return o&&i.length!=s&&(i.length=s),i}function Cn(t,e,n,f,r,o,i){for(var s,v=i||[],p=0;e<n;e+=f)for(v[p++]=t[e]+r,v[p++]=t[e+1]+o,s=e+2;s<e+f;++s)v[p++]=t[s];return i&&v.length!=p&&(v.length=p),v}function Vn(){return[1,0,0,1,0,0]}function En(t){return Rn(t,1,0,0,1,0,0)}function Kn(t,e){var n=t[0],f=t[1],r=t[2],o=t[3],i=t[4],s=t[5],v=e[0],p=e[1],c=e[2],d=e[3],u=e[4];return e=e[5],t[0]=n*v+r*p,t[1]=f*v+o*p,t[2]=n*c+r*d,t[3]=f*c+o*d,t[4]=n*u+r*e+i,t[5]=f*u+o*e+s,t}function Rn(t,e,n,f,r,o,i){return t[0]=e,t[1]=n,t[2]=f,t[3]=r,t[4]=o,t[5]=i,t}function Sn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Qn(t,e){var n=e[0],f=e[1];return e[0]=t[0]*n+t[2]*f+t[4],e[1]=t[1]*n+t[3]*f+t[5],e}function Fn(t,e){var n=Math.cos(e);e=Math.sin(e),Kn(t,Rn(xh,n,e,-e,n,0,0))}function In(t,e,n){return Kn(t,Rn(xh,e,0,0,n,0,0))}function qn(t,e,n){Kn(t,Rn(xh,1,0,0,1,e,n))}function Un(t,e,n,f,r,o,i,s){var v=Math.sin(o);return o=Math.cos(o),t[0]=f*o,t[1]=r*v,t[2]=-f*v,t[3]=r*o,t[4]=i*f*o-s*f*v+e,t[5]=i*r*v+s*r*o+n,t}function _n(t){var e=t[0]*t[3]-t[1]*t[2];p(0!==e,32);var n=t[0],f=t[1],r=t[2],o=t[3],i=t[4],s=t[5];return t[0]=o/e,t[1]=-f/e,t[2]=-r/e,t[3]=n/e,t[4]=(r*s-o*i)/e,t[5]=-(n*s-f*i)/e,t}function $n(){Oe.call(this),this.s=D(),this.v=-1,this.i={},this.l=this.f=0,this.O=Vn()}function tf(){$n.call(this),this.ja="XY",this.a=2,this.A=null}function ef(t){var e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function nf(t,e,n){t.a=ef(e),t.ja=e,t.A=n}function ff(t,e,n,f){if(e)n=ef(e);else{for(e=0;e<f;++e){if(0===n.length)return t.ja="XY",void(t.a=2);n=n[0]}n=n.length;var r;2==n?r="XY":3==n?r="XYZ":4==n&&(r="XYZM"),e=r}t.ja=e,t.a=n}function rf(t,e,n,f){for(var r=0,o=t[n-f],i=t[n-f+1];e<n;e+=f){var s=t[e],v=t[e+1];r+=i*s-o*v,o=s,i=v}return r/2}function of(t,e,n,f){var r,o=0,i=0;for(r=n.length;i<r;++i){var s=n[i];o+=rf(t,e,s,f),e=s}return o}function sf(t,e,n,f,r,o,i){var s=t[e],v=t[e+1],p=t[n]-s,c=t[n+1]-v;if(0!==p||0!==c)if(1<(o=((r-s)*p+(o-v)*c)/(p*p+c*c)))e=n;else if(0<o){for(r=0;r<f;++r)i[r]=y(t[e+r],t[n+r],o);return void(i.length=f)}for(r=0;r<f;++r)i[r]=t[e+r];i.length=f}function vf(t,e,n,f,r){var o=t[e],i=t[e+1];for(e+=f;e<n;e+=f){var s=t[e],v=t[e+1];o=l(o,i,s,v),o>r&&(r=o),o=s,i=v}return r}function pf(t,e,n,f,r){var o,i=0;for(o=n.length;i<o;++i){var s=n[i];r=vf(t,e,s,f,r),e=s}return r}function cf(t,e,n,f,r,o,i,s,v,p,c){if(e==n)return p;if(0===r){var d=l(i,s,t[e],t[e+1]);if(d<p){for(c=0;c<f;++c)v[c]=t[e+c];return v.length=f,d}return p}for(var u=c||[NaN,NaN],P=e+f;P<n;)if(sf(t,P-f,P,f,i,s,u),(d=l(i,s,u[0],u[1]))<p){for(p=d,c=0;c<f;++c)v[c]=u[c];v.length=f,P+=f}else P+=f*Math.max((Math.sqrt(d)-Math.sqrt(p))/r|0,1);if(o&&(sf(t,n-f,e,f,i,s,u),(d=l(i,s,u[0],u[1]))<p)){for(p=d,c=0;c<f;++c)v[c]=u[c];v.length=f}return p}function df(t,e,n,f,r,o,i,s,v,p,c){c=c||[NaN,NaN];var d,u=0;for(d=n.length;u<d;++u){var l=n[u];p=cf(t,e,l,f,r,o,i,s,v,p,c),e=l}return p}function uf(t,e){var n,f=0,r=0;for(n=e.length;r<n;++r)t[f++]=e[r];return f}function lf(t,e,n,f){var r,o=0;for(r=n.length;o<r;++o){var i,s=n[o];for(i=0;i<f;++i)t[e++]=s[i]}return e}function Pf(t,e,n,f,r){r=r||[];var o,i=0,s=0;for(o=n.length;s<o;++s)e=lf(t,e,n[s],f),r[i++]=e;return r.length=i,r}function af(t,e,n,f,r){r=void 0!==r?r:[];for(var o=0;e<n;e+=f)r[o++]=t.slice(e,e+f);return r.length=o,r}function yf(t,e,n,f,r){r=void 0!==r?r:[];var o,i=0,s=0;for(o=n.length;s<o;++s){var v=n[s];r[i++]=af(t,e,v,f,r[i]),e=v}return r.length=i,r}function hf(t,e,n,f,r){r=void 0!==r?r:[];var o,i=0,s=0;for(o=n.length;s<o;++s){var v=n[s];r[i++]=yf(t,e,v,f,r[i]),e=v[v.length-1]}return r.length=i,r}function Of(t,e,n,f,r,o,i){var s=(n-e)/f;if(3>s){for(;e<n;e+=f)o[i++]=t[e],o[i++]=t[e+1];return i}var v=Array(s);v[0]=1,v[s-1]=1,n=[e,n-f];for(var p,c=0;0<n.length;){var d=n.pop(),l=n.pop(),P=0,a=t[l],y=t[l+1],h=t[d],O=t[d+1];for(p=l+f;p<d;p+=f){var b=u(t[p],t[p+1],a,y,h,O);b>P&&(c=p,P=b)}P>r&&(v[(c-e)/f]=1,l+f<c&&n.push(l,c),c+f<d&&n.push(c,d))}for(p=0;p<s;++p)v[p]&&(o[i++]=t[e+p*f],o[i++]=t[e+p*f+1]);return i}function bf(t,e,n,f,r,o,i,s){var v,p=0;for(v=n.length;p<v;++p){var c=n[p];t:{var d=t,u=c,l=f,P=r,a=o,y=i;if(e!=u){var h=P*Math.round(d[e]/P),O=P*Math.round(d[e+1]/P);e+=l,a[y++]=h,a[y++]=O;do{var b=P*Math.round(d[e]/P);if(i=P*Math.round(d[e+1]/P),(e+=l)==u){a[y++]=b,a[y++]=i,i=y;break t}}while(b==h&&i==O);for(;e<u;){var z=P*Math.round(d[e]/P),H=P*Math.round(d[e+1]/P);if(e+=l,z!=b||H!=i){var w=b-h,g=i-O,X=z-h,j=H-O;w*j==g*X&&(0>w&&X<w||w==X||0<w&&X>w)&&(0>g&&j<g||g==j||0<g&&j>g)||(a[y++]=b,a[y++]=i,h=b,O=i),b=z,i=H}}a[y++]=b,a[y++]=i}i=y}s.push(i),e=c}return i}function zf(t,e){tf.call(this),this.c=this.j=-1,this.na(t,e)}function Hf(t,e,n){nf(t,e,n),t.u()}function wf(t,e){tf.call(this),this.na(t,e)}function gf(t,e,n,f,r){return!k(r,function(r){return!Xf(t,e,n,f,r[0],r[1])})}function Xf(t,e,n,f,r,o){for(var i=0,s=t[n-f],v=t[n-f+1];e<n;e+=f){var p=t[e],c=t[e+1];v<=o?c>o&&0<(p-s)*(o-v)-(r-s)*(c-v)&&i++:c<=o&&0>(p-s)*(o-v)-(r-s)*(c-v)&&i--,s=p,v=c}return 0!==i}function jf(t,e,n,f,r,o){if(0===n.length||!Xf(t,e,n[0],f,r,o))return!1;var i;for(e=1,i=n.length;e<i;++e)if(Xf(t,n[e-1],n[e],f,r,o))return!1;return!0}function Tf(t,e,n,f,r,o,i){for(var s,v,p,c,d,u=r[o+1],l=[],P=0,a=n.length;P<a;++P){var y=n[P];for(p=t[y-f],d=t[y-f+1],s=e;s<y;s+=f)c=t[s],v=t[s+1],(u<=d&&v<=u||d<=u&&u<=v)&&(p=(u-d)/(v-d)*(c-p)+p,l.push(p)),p=c,d=v}for(P=NaN,a=-1/0,l.sort(Zt),p=l[0],s=1,v=l.length;s<v;++s)c=l[s],y=Math.abs(c-p),y>a&&(p=(p+c)/2,jf(t,e,n,f,p,u)&&(P=p,a=y)),p=c;return isNaN(P)&&(P=r[o]),i?(i.push(P,u,a),i):[P,u,a]}function xf(t,e,n,f,r,o){for(var i,s=[t[e],t[e+1]],v=[];e+f<n;e+=f){if(v[0]=t[e+f],v[1]=t[e+f+1],i=r.call(o,s,v))return i;s[0]=v[0],s[1]=v[1]}return!1}function Df(t,e,n,f,r){var o=N(D(),t,e,n,f);return!!F(r,o)&&(!!(j(r,o)||o[0]>=r[0]&&o[2]<=r[2]||o[1]>=r[1]&&o[3]<=r[3])||xf(t,e,n,f,function(t,e){var n=!1,f=x(r,t),o=x(r,e);if(1===f||1===o)n=!0;else{var i=r[0],s=r[1],v=r[2],p=r[3],c=e[0];e=e[1],t=(e-t[1])/(c-t[0]),2&o&&!(2&f)&&(n=c-(e-p)/t,n=n>=i&&n<=v),n||!(4&o)||4&f||(n=e-(c-v)*t,n=n>=s&&n<=p),n||!(8&o)||8&f||(n=c-(e-s)/t,n=n>=i&&n<=v),n||!(16&o)||16&f||(n=e-(c-i)*t,n=n>=s&&n<=p)}return n}))}function Mf(t,e,n,f,r){var o=n[0];if(!(Df(t,e,o,f,r)||Xf(t,e,o,f,r[0],r[1])||Xf(t,e,o,f,r[0],r[3])||Xf(t,e,o,f,r[2],r[1])||Xf(t,e,o,f,r[2],r[3])))return!1;if(1===n.length)return!0;for(e=1,o=n.length;e<o;++e)if(gf(t,n[e-1],n[e],f,r))return!1;return!0}function Zf(t,e,n,f){for(var r=0,o=t[n-f],i=t[n-f+1];e<n;e+=f){var s=t[e],v=t[e+1];r+=(s-o)*(v+i),o=s,i=v}return 0<r}function mf(t,e,n,f){var r=0;f=void 0!==f&&f;var o,i=0;for(o=e.length;i<o;++i){var s=e[i];if(r=Zf(t,r,s,n),0===i){if(f&&r||!f&&!r)return!1}else if(f&&!r||!f&&r)return!1;r=s}return!0}function Af(t,e,n,f,r){r=void 0!==r&&r;var o,i=0;for(o=n.length;i<o;++i){var s=n[i],v=Zf(t,e,s,f);if(0===i?r&&v||!r&&!v:r&&!v||!r&&v){v=t;for(var p=s,c=f;e<p-c;){var d;for(d=0;d<c;++d){var u=v[e+d];v[e+d]=v[p-c+d],v[p-c+d]=u}e+=c,p-=c}}e=s}return e}function Lf(t,e,n,f){var r,o=0,i=0;for(r=e.length;i<r;++i)o=Af(t,o,e[i],n,f);return o}function Bf(t,e){tf.call(this),this.c=[],this.o=-1,this.D=null,this.T=this.C=this.B=-1,this.j=null,this.na(t,e)}function Gf(t,e,n,f){var r=f||32;f=[];var o;for(o=0;o<r;++o)Lt(f,t.offset(e,n,2*Math.PI*o/r));return f.push(f[0],f[1]),t=new Bf(null),t.ba("XY",f,[f.length]),t}function Nf(t){var e=t[0],n=t[1],f=t[2];return t=t[3],e=[e,n,e,t,f,t,f,n,e,n],n=new Bf(null),n.ba("XY",e,[e.length]),n}function kf(t,e,n){var f=e||32,r=t.pa();e=t.ja;var o=new Bf(null,e);f=r*(f+1),r=Array(f);for(var i=0;i<f;i++)r[i]=0;return o.ba(e,r,[r.length]),Jf(o,t.xa(),t.Bd(),n),o}function Jf(t,e,n,f){var r=t.da(),o=t.ja,i=t.pa(),s=t.pb(),v=r.length/i-1;f=f||0;for(var p,c,d=0;d<=v;++d)c=d*i,p=f+2*a(d,v)*Math.PI/v,r[c]=e[0]+n*Math.cos(p),r[c+1]=e[1]+n*Math.sin(p);t.ba(o,r,s)}function Wf(t){Oe.call(this),t=Ey({},t),this.f=[0,0],this.c=[],this.Ff=this.Ff.bind(this),this.v=Ot(t.projection),Yf(this,t)}function Yf(t,e){var n={};n.center=void 0!==e.center?e.center:null;var f=void 0!==e.minZoom?e.minZoom:0,r=void 0!==e.maxZoom?e.maxZoom:28,o=void 0!==e.zoomFactor?e.zoomFactor:2;if(void 0!==e.resolutions){var i=e.resolutions,s=i[f],v=void 0!==i[r]?i[r]:i[i.length-1];r=Pn(i)}else{s=Ot(e.projection),v=s.G(),i=(v?Math.max(Q(v),E(v)):360*Ky.degrees/s.Bc())/256/Math.pow(2,0);var p=i/Math.pow(2,28);s=e.maxResolution,void 0!==s?f=0:s=i/Math.pow(o,f),v=e.minResolution,void 0===v&&(v=void 0!==e.maxZoom?void 0!==e.maxResolution?s/Math.pow(o,r):i/Math.pow(o,r):p),r=f+Math.floor(Math.log(s/v)/Math.log(o)),v=s/Math.pow(o,r-f),r=an(o,s,r-f)}t.a=s,t.i=v,t.D=o,t.j=e.resolutions,t.s=f,(void 0!==e.enableRotation?e.enableRotation:1)?(f=e.constrainRotation,f=void 0===f||!0===f?bn():!1===f?hn:"number"==typeof f?On(f):hn):f=yn,t.l={center:void 0!==e.extent?un(e.extent):ln,resolution:r,rotation:f},void 0!==e.resolution?n.resolution=e.resolution:void 0!==e.zoom&&(n.resolution=t.constrainResolution(t.a,e.zoom-t.s),t.j&&(n.resolution=c(Number(t.Pa()||n.resolution),t.i,t.a))),n.rotation=void 0!==e.rotation?e.rotation:0,t.H(n),t.C=e}function Cf(t,e){var n=Ey({},t.C);return void 0!==n.resolution?n.resolution=t.Pa():n.zoom=t.lg(),n.center=t.xa(),n.rotation=t.Sa(),Ey({},n,e)}function Vf(t,e,n){var f=t.xa();if(void 0!==f){var r=[f[0]-n[0],f[1]-n[1]];Dn(r,e-t.Sa()),wn(r,n)}return r}function Ef(t,e,n){var f,r=t.xa();return t=t.Pa(),void 0!==r&&void 0!==t&&(f=[n[0]-e*(n[0]-r[0])/t,n[1]-e*(n[1]-r[1])/t]),f}function Kf(t){var e=[100,100];return t='.ol-viewport[data-view="'+f(t)+'"]',(t=document.querySelector(t))&&(t=getComputedStyle(t),e[0]=parseInt(t.width,10),e[1]=parseInt(t.height,10)),e}function Rf(t){var e=t.a,n=Math.log(e/t.i)/Math.log(2);return function(t){return e/Math.pow(2,t*n)}}function Sf(t){var e=t.a,n=Math.log(e/t.i)/Math.log(2);return function(t){return Math.log(e/t)/Math.log(2)/n}}function Qf(t){return!!t.xa()&&void 0!==t.Pa()}function Ff(t,e,n){t.f[e]+=n,t.u()}function If(t,e){var n=document.createElement("CANVAS");return t&&(n.width=t),e&&(n.height=e),n.getContext("2d")}function qf(t,e){var n=e.parentNode;n&&n.replaceChild(t,e)}function Uf(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function _f(t){Oe.call(this);var e=Ey({},t);e.opacity=void 0!==t.opacity?t.opacity:1,e.visible=void 0===t.visible||t.visible,e.zIndex=void 0!==t.zIndex?t.zIndex:0,e.maxResolution=void 0!==t.maxResolution?t.maxResolution:1/0,e.minResolution=void 0!==t.minResolution?t.minResolution:0,this.H(e),this.a={layer:this,Te:!0}}function $f(t){return t.a.opacity=c(t.nc(),0,1),t.a.Vj=t.hg(),t.a.visible=t.Jb(),t.a.extent=t.G(),t.a.zIndex=t.Ba(),t.a.maxResolution=t.lc(),t.a.minResolution=Math.max(t.mc(),0),t.a}function tr(t){var e=t||{};t=Ey({},e),delete t.layers,e=e.layers,_f.call(this,t),this.i=[],this.c={},ie(this,be(Dh),this.im,this),e?Array.isArray(e)?e=new we(e.slice(),{unique:!0}):p(e instanceof we,43):e=new we(void 0,{unique:!0}),this.Qi(e)}function er(t,e){switch(t){case"MAP_RENDERER":t=Mh,t.push(e);break;case"LAYER_RENDERER":t=Zh,t.push(e);break;default:throw Error("Unsupported plugin type: "+t)}}function nr(t){for(var e=0,n=t.length;e<n;++e)er("LAYER_RENDERER",t[e])}function fr(t){Oe.call(this);var e=rr(t);this.ob=void 0!==t.loadTilesWhileAnimating&&t.loadTilesWhileAnimating,this.sc=void 0!==t.loadTilesWhileInteracting&&t.loadTilesWhileInteracting,this.ra=void 0!==t.pixelRatio?t.pixelRatio:lh,this.Md=e.logos,this.V=function(){this.j=void 0,this.pq.call(this)}.bind(this),this.La=Vn(),this.If=Vn(),this.bb=0,this.D=this.C=this.B=this.f=this.c=null,this.a=document.createElement("DIV"),this.a.className="ol-viewport"+(Oh?" ol-touch":""),this.a.style.position="relative",this.a.style.overflow="hidden",this.a.style.width="100%",this.a.style.height="100%",this.a.style.msTouchAction="none",this.a.style.touchAction="none",this.o=document.createElement("DIV"),this.o.className="ol-overlaycontainer",this.a.appendChild(this.o),this.v=document.createElement("DIV"),this.v.className="ol-overlaycontainer-stopevent";for(var n="click dblclick mousedown touchstart MSPointerDown pointerdown mousewheel wheel".split(" "),f=0,r=n.length;f<r;++f)ie(this.v,n[f],Pe);this.a.appendChild(this.v),this.ca=new tn(this,t.moveTolerance);for(var o in Xh)ie(this.ca,Xh[o],this.bi,this);this.$=e.keyboardEventTarget,this.s=null,ie(this.a,"wheel",this.yd,this),ie(this.a,"mousewheel",this.yd,this),this.controls=e.controls||new we,this.interactions=e.interactions||new we,this.l=e.overlays,this.Fg={},this.pc=e.Im.create(this.a,this),this.T=null,this.Ea=[],this.ua=new cn(this.Tl.bind(this),this.zm.bind(this)),this.O={},ie(this,be("layergroup"),this.fm,this),ie(this,be("view"),this.Am,this),ie(this,be("size"),this.um,this),ie(this,be("target"),this.ym,this),this.H(e.values),this.controls.forEach(function(t){t.setMap(this)},this),ie(this.controls,"add",function(t){t.element.setMap(this)},this),ie(this.controls,"remove",function(t){t.element.setMap(null)},this),this.interactions.forEach(function(t){t.setMap(this)},this),ie(this.interactions,"add",function(t){t.element.setMap(this)},this),ie(this.interactions,"remove",function(t){t.element.setMap(null)},this),this.l.forEach(this.zh,this),ie(this.l,"add",function(t){this.zh(t.element)},this),ie(this.l,"remove",function(t){var e=t.element.id;void 0!==e&&delete this.Fg[e.toString()],t.element.setMap(null)},this)}function rr(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var n={},r={};if(void 0===t.logo||"boolean"==typeof t.logo&&t.logo)r["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC"]="https://openlayers.org/";else{var o=t.logo;"string"==typeof o?r[o]="":o instanceof HTMLElement?r[f(o).toString()]=o:o&&(p("string"==typeof o.href,44),p("string"==typeof o.src,45),r[o.src]=o.href)}o=t.layers instanceof tr?t.layers:new tr({layers:t.layers}),n.layergroup=o,n.target=t.target,n.view=void 0!==t.view?t.view:new Wf;var i;void 0!==t.renderer?(Array.isArray(t.renderer)?i=t.renderer:"string"==typeof t.renderer?i=[t.renderer]:p(!1,46),0<=i.indexOf("dom")&&(i=i.concat(mh))):i=mh,o=0;var s=i.length;t:for(;o<s;++o)for(var v=i[o],c=0,d=Mh.length;c<d;++c){var u=Mh[c];if(u.handles(v)){var l=u;break t}}if(!l)throw Error("Unable to create a map renderer for types: "+i.join(", "));if(void 0!==t.controls)if(Array.isArray(t.controls))var P=new we(t.controls.slice());else p(t.controls instanceof we,47),P=t.controls;if(void 0!==t.interactions)if(Array.isArray(t.interactions))var a=new we(t.interactions.slice());else p(t.interactions instanceof we,48),a=t.interactions;return void 0!==t.overlays?Array.isArray(t.overlays)?t=new we(t.overlays.slice()):(p(t.overlays instanceof we,49),t=t.overlays):t=new we,{controls:P,interactions:a,keyboardEventTarget:e,logos:r,overlays:t,Im:l,values:n}}function or(t){Oe.call(this),this.element=t.element?t.element:null,this.a=this.T=null,this.s=[],this.render=t.render?t.render:n,t.target&&this.i(t.target)}function ir(t){var e=Ey({},t);delete e.source,_f.call(this,e),this.o=this.v=this.s=null,t.map&&this.setMap(t.map),ie(this,be("source"),this.wm,this),this.hd(t.source?t.source:null)}function sr(t,e){return t.visible&&e>=t.minResolution&&e<t.maxResolution}function vr(t){t=t||{},this.v=document.createElement("UL"),this.l=document.createElement("LI"),this.v.appendChild(this.l),this.l.style.display="none",this.c=void 0===t.collapsed||t.collapsed,this.j=void 0===t.collapsible||t.collapsible,this.j||(this.c=!1);var e=void 0!==t.className?t.className:"ol-attribution",n=void 0!==t.tipLabel?t.tipLabel:"Attributions",f=void 0!==t.collapseLabel?t.collapseLabel:"»";"string"==typeof f?(this.o=document.createElement("span"),this.o.textContent=f):this.o=f,f=void 0!==t.label?t.label:"i","string"==typeof f?(this.D=document.createElement("span"),this.D.textContent=f):this.D=f;var r=this.j&&!this.c?this.o:this.D;f=document.createElement("button"),f.setAttribute("type","button"),f.title=n,f.appendChild(r),ie(f,"click",this.Bn,this),n=document.createElement("div"),n.className=e+" ol-unselectable ol-control"+(this.c&&this.j?" ol-collapsed":"")+(this.j?"":" ol-uncollapsible"),n.appendChild(this.v),n.appendChild(f),or.call(this,{element:n,render:t.render?t.render:pr,target:t.target}),this.B=[],this.C=!0,this.O={}}function pr(t){if(t=t.frameState){for(var e={},n=[],f=t.layerStatesArray,r=t.viewState.resolution,o=0,i=f.length;o<i;++o){var s=f[o];if(sr(s,r)&&(s=s.layer.ha())&&(s=s.C)&&(s=s(t)))if(Array.isArray(s))for(var v=0,p=s.length;v<p;++v)s[v]in e||(n.push(s[v]),e[s[v]]=!0);else s in e||(n.push(s),e[s]=!0)}if(!Gt(n,this.B)){for(;this.v.lastChild!==this.l;)this.v.removeChild(this.v.lastChild);for(e=0,f=n.length;e<f;++e)r=document.createElement("LI"),r.innerHTML=n[e],this.v.appendChild(r);0===n.length&&0<this.B.length?this.element.classList.add("ol-logo-only"):0===this.B.length&&0<n.length&&this.element.classList.remove("ol-logo-only"),e=0<n.length||!tt(t.logos),this.C!=e&&(this.element.style.display=e?"":"none",this.C=e),this.B=n,t=t.logos,n=this.O;for(d in n)d in t||(Uf(n[d]),delete n[d]);for(var c in t)if(f=t[c],f instanceof HTMLElement&&(this.l.appendChild(f),n[c]=f),!(c in n)){var d=new Image;d.src=c,""===f?e=d:(e=document.createElement("a"),e.href=f,e.appendChild(d)),this.l.appendChild(e),n[c]=e}this.l.style.display=tt(t)?"none":""}}else this.C&&(this.element.style.display="none",this.C=!1)}function cr(t){t.element.classList.toggle("ol-collapsed"),t.c?qf(t.o,t.D):qf(t.D,t.o),t.c=!t.c}function dr(t){t=t||{};var e=void 0!==t.className?t.className:"ol-rotate",n=void 0!==t.label?t.label:"⇧";this.c=null,"string"==typeof n?(this.c=document.createElement("span"),this.c.className="ol-compass",this.c.textContent=n):(this.c=n,this.c.classList.add("ol-compass"));var f=t.tipLabel?t.tipLabel:"Reset rotation";n=document.createElement("button"),n.className=e+"-reset",n.setAttribute("type","button"),n.title=f,n.appendChild(this.c),ie(n,"click",dr.prototype.D,this),f=document.createElement("div"),f.className=e+" ol-unselectable ol-control",f.appendChild(n),e=t.render?t.render:ur,this.l=t.resetNorth?t.resetNorth:void 0,or.call(this,{element:f,render:e,target:t.target}),this.v=void 0!==t.duration?t.duration:250,this.j=void 0===t.autoHide||t.autoHide,this.o=void 0,this.j&&this.element.classList.add("ol-hidden")}function ur(t){if(t=t.frameState){if((t=t.viewState.rotation)!=this.o){var e="rotate("+t+"rad)";if(this.j){var n=this.element.classList.contains("ol-hidden");n||0!==t?n&&0!==t&&this.element.classList.remove("ol-hidden"):this.element.classList.add("ol-hidden")}this.c.style.msTransform=e,this.c.style.webkitTransform=e,this.c.style.transform=e}this.o=t}}function lr(t){t=t||{};var e=void 0!==t.className?t.className:"ol-zoom",n=void 0!==t.delta?t.delta:1,f=void 0!==t.zoomInLabel?t.zoomInLabel:"+",r=void 0!==t.zoomOutLabel?t.zoomOutLabel:"−",o=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",i=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",s=document.createElement("button");s.className=e+"-in",s.setAttribute("type","button"),s.title=o,s.appendChild("string"==typeof f?document.createTextNode(f):f),ie(s,"click",lr.prototype.j.bind(this,n)),f=document.createElement("button"),f.className=e+"-out",f.setAttribute("type","button"),f.title=i,f.appendChild("string"==typeof r?document.createTextNode(r):r),ie(f,"click",lr.prototype.j.bind(this,-n)),n=document.createElement("div"),n.className=e+" ol-unselectable ol-control",n.appendChild(s),n.appendChild(f),or.call(this,{element:n,target:t.target}),this.c=void 0!==t.duration?t.duration:250}function Pr(t){t=t||{};var e=new we;return(void 0!==t.zoom?t.zoom:1)&&e.