mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 22:55:52 -05:00
1 line
478 KiB
JavaScript
1 line
478 KiB
JavaScript
!function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define([],e):t.ol=e()}(this,function(){var r={},n=this;function t(t,e){var o,i=r;t=t.split("."),i=i||n,t[0]in i||!i.execScript||i.execScript("var "+t[0]);for(;t.length&&(o=t.shift());)t.length||void 0===e?i=i[o]&&i[o]!==Object.prototype[o]?i[o]:i[o]={}:i[o]=e}function D(t,e){return e<t?1:t<e?-1:0}function d(t,e){return 0<=t.indexOf(e)}function v(t,e,o){var i=t.length;if(t[0]<=e)return 0;if(!(e<=t[i-1]))if(0<o){for(o=1;o<i;++o)if(t[o]<e)return o-1}else if(o<0){for(o=1;o<i;++o)if(t[o]<=e)return o}else for(o=1;o<i;++o){if(t[o]==e)return o;if(t[o]<e)return t[o-1]-e<e-t[o]?o-1:o}return i-1}function c(t,e){var o=Array.isArray(e)?e:[e],i=o.length;for(e=0;e<i;e++)t[t.length]=o[e]}function s(t,e){-1<(e=t.indexOf(e))&&t.splice(e,1)}function b(t,e){for(var o,i=t.length>>>0,r=0;r<i;r++)if(e(o=t[r],r,t))return o;return null}function U(t,e){var o=t.length;if(o===e.length){for(var i=0;i<o;i++)if(t[i]!==e[i])return;return 1}}function h(t){for(var o=us,e=t.length,i=Array(t.length),r=0;r<e;r++)i[r]={index:r,value:t[r]};for(i.sort(function(t,e){return o(t.value,e.value)||t.index-e.index}),r=0;r<t.length;r++)t[r]=i[r].value}function m(o,i){var r;return o.every(function(t,e){return!i(t,r=e,o)})?-1:r}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function w(){}function G(t){return t.Vo||(t.Vo=++o)}var o=0;function a(t){this.message="Assertion failed. See https://openlayers.org/en/v4.2.0/doc/errors/#"+t+" for details.",this.code=t,this.name="AssertionError"}function O(t,e){if(!t)throw new a(e)}function B(t,e,o,i){this.ca=t,this.$=e,this.da=o,this.ia=i}function p(t,e,o){return t.ca<=e&&e<=t.$&&t.da<=o&&o<=t.ia}function C(t,e){return t.ca<=e.$&&t.$>=e.ca&&t.da<=e.ia&&t.ia>=e.da}function x(t,e,o){return Math.min(Math.max(t,e),o)}e(a,Error);var i="cosh"in Math?Math.cosh:function(t){return((t=Math.exp(t))+1/t)/2};function S(t,e,o,i,r,n){var s,a=r-o,p=n-i;return(a||p)&&(1<(s=((t-o)*a+(e-i)*p)/(a*a+p*p))?(o=r,i=n):0<s&&(o+=a*s,i+=p*s)),y(t,e,o,i)}function y(t,e,o,i){return(t=o-t)*t+(e=i-e)*e}function M(t){return t*Math.PI/180}function L(t,e){return(t%=e)*e<0?t+e:t}function f(t,e,o){return t+o*(e-t)}function l(t,e,o){return(o=void 0===o?[0,0]:o)[0]=t[0]+2*e,o[1]=t[1]+2*e,o}function u(t,e,o){return(o=void 0===o?[0,0]:o)[0]=t[0]*e+.5|0,o[1]=t[1]*e+.5|0,o}function X(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:e[0]=e[1]=t,e)}function P(t){for(var e=V(),o=0,i=t.length;o<i;++o)z(e,t[o]);return e}function A(t,e,o){return o?(o[0]=t[0]-e,o[1]=t[1]-e,o[2]=t[2]+e,o[3]=t[3]+e,o):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function g(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function E(t,e,o){return(e=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*e+(t=o<t[1]?t[1]-o:t[3]<o?o-t[3]:0)*t}function T(t,e){return j(t,e[0],e[1])}function N(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function j(t,e,o){return t[0]<=e&&e<=t[2]&&t[1]<=o&&o<=t[3]}function R(t,e){var o=t[1],i=t[2],r=t[3],n=e[0];e=e[1];var s=0;return n<t[0]?s|=16:i<n&&(s|=4),e<o?s|=8:r<e&&(s|=2),s=s||1}function V(){return[1/0,1/0,-1/0,-1/0]}function F(t,e,o,i,r){return r?(r[0]=t,r[1]=e,r[2]=o,r[3]=i,r):[t,e,o,i]}function I(t){return F(1/0,1/0,-1/0,-1/0,t)}function k(t,e){var o=t[0];return F(o,t=t[1],o,t,e)}function W(t,e,o,i,r){return Y(r=I(r),t,e,o,i)}function Z(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function K(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 z(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 Y(t,e,o,i,r){for(;o<i;o+=r){var n=t,s=e[o],a=e[o+1];n[0]=Math.min(n[0],s),n[1]=Math.min(n[1],a),n[2]=Math.max(n[2],s),n[3]=Math.max(n[3],a)}return t}function H(t,e,o){var i;return((i=e.call(o,J(t)))||(i=e.call(o,_(t)))||(i=e.call(o,it(t)))||!!(i=e.call(o,ot(t))))&&i}function q(t){var e=0;return e=!st(t)?rt(t)*tt(t):e}function J(t){return[t[0],t[1]]}function _(t){return[t[2],t[1]]}function $(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function Q(t,e,o,i,r){var n=e*i[0]/2;i=e*i[1]/2,e=Math.cos(o);var s=Math.sin(o);o=n*e,n*=s,e*=i;var a=i*s,p=t[0],h=t[1];t=p-o+a,i=p-o-a,s=p+o-a,o=p+o+a;var a=h-n-e,p=h-n+e,l=h+n+e,n=h+n-e;return F(Math.min(t,i,s,o),Math.min(a,p,l,n),Math.max(t,i,s,o),Math.max(a,p,l,n),r)}function tt(t){return t[3]-t[1]}function et(t,e,o){return o=o||V(),nt(t,e)&&(o[0]=(t[0]>e[0]?t:e)[0],o[1]=(t[1]>e[1]?t:e)[1],o[2]=(t[2]<e[2]?t:e)[2],o[3]=(t[3]<e[3]?t:e)[3]),o}function ot(t){return[t[0],t[3]]}function it(t){return[t[2],t[3]]}function rt(t){return t[2]-t[0]}function nt(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function st(t){return t[2]<t[0]||t[3]<t[1]}function at(t,e){var o=(t[2]-t[0])/2*(e-1);e=(t[3]-t[1])/2*(e-1),t[0]-=o,t[2]+=o,t[1]-=e,t[3]+=e}function pt(t,e,o){e(t=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]],t,2);var i=[t[0],t[2],t[4],t[6]],r=[t[1],t[3],t[5],t[7]];return F(e=Math.min.apply(null,i),t=Math.min.apply(null,r),Math.max.apply(null,i),Math.max.apply(null,r),o)}var ht="function"==typeof Object.assign?Object.assign:function(t,e){if(!t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(t),i=1,r=arguments.length;i<r;++i){var n=arguments[i];if(null!=n)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s])}return o};function lt(t){for(var e in t)delete t[e]}function ut(t){var e,o=[];for(e in t)o.push(t[e]);return o}function ct(t){for(var e in t)return!1;return!e}function ft(t){this.radius=t}ft.prototype.a=function(t){for(var e=0,o=t.length,i=t[o-1][0],r=t[o-1][1],n=0;n<o;n++)var s=t[n][0],a=t[n][1],e=e+M(s-i)*(2+Math.sin(M(r))+Math.sin(M(a))),i=s,r=a;return e*this.radius*this.radius/2},ft.prototype.b=function(t,e){var o=M(t[1]),i=M(e[1]),r=(i-o)/2;return t=M(e[0]-t[0])/2,o=Math.sin(r)*Math.sin(r)+Math.sin(t)*Math.sin(t)*Math.cos(o)*Math.cos(i),2*this.radius*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))},ft.prototype.offset=function(t,e,o){var i=M(t[1]);e/=this.radius;var r=Math.asin(Math.sin(i)*Math.cos(e)+Math.cos(i)*Math.sin(e)*Math.cos(o));return[180*(M(t[0])+Math.atan2(Math.sin(o)*Math.sin(e)*Math.cos(i),Math.cos(e)-Math.sin(i)*Math.sin(r)))/Math.PI,180*r/Math.PI]};var yt=new ft(6370997),gt={};gt.degrees=2*Math.PI*yt.radius/360,gt.ft=.3048,gt.m=1,gt["us-ft"]=1200/3937;var dt=null;function vt(t){this.mb=t.code,this.a=t.units,this.f=void 0!==t.extent?t.extent:null,this.g=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.i=!(!this.c||!this.f),this.o=t.getPointResolution,this.j=null,this.l=t.metersPerUnit;var e=t.code,o=dt||window.proj4;"function"!=typeof o||void 0!==(e=o.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 bt(t){vt.call(this,{code:t,units:"m",extent:wt,global:!0,worldExtent:xt,getPointResolution:function(t,e){return t/i(e[1]/6378137)}})}(Au=vt.prototype).Jk=function(){return this.mb},Au.G=function(){return this.f},Au.Un=function(){return this.a},Au.sc=function(){return this.l||gt[this.a]},Au.tl=function(){return this.g},Au.dm=function(){return this.c},Au.$p=function(t){this.c=t,this.i=!(!t||!this.f)},Au.Vn=function(t){this.f=t,this.i=!(!this.c||!t)},Au.kq=function(t){this.g=t},Au.Zp=function(t){this.o=t},e(bt,vt);var mt=6378137*Math.PI,wt=[-mt,-mt,mt,mt],xt=[-180,-85,180,85],St="EPSG:3857 EPSG:102100 EPSG:102113 EPSG:900913 urn:ogc:def:crs:EPSG:6.18:3:3857 urn:ogc:def:crs:EPSG::3857 http://www.opengis.net/gml/srs/epsg.xml#3857".split(" ").map(function(t){return new bt(t)});function Mt(t,e,o){var i=t.length;o=1<o?o:2,void 0===e&&(e=2<o?t.slice():Array(i));for(var r=0;r<i;r+=o){e[r]=mt*t[r]/180;var n=6378137*Math.log(Math.tan(Math.PI*(t[r+1]+90)/360));mt<n?n=mt:n<-mt&&(n=-mt),e[r+1]=n}return e}function Pt(t,e,o){var i=t.length;o=1<o?o:2,void 0===e&&(e=2<o?t.slice():Array(i));for(var r=0;r<i;r+=o)e[r]=180*t[r]/mt,e[r+1]=360*Math.atan(Math.exp(t[r+1]/6378137))/Math.PI-90;return e}var At=new ft(6378137);function Et(t,e){vt.call(this,{code:t,units:"degrees",extent:Tt,axisOrientation:e,global:!0,metersPerUnit:jt,worldExtent:Tt})}e(Et,vt);var Tt=[-180,-90,180,90],jt=Math.PI*At.radius/180,Ct=[new Et("CRS:84"),new Et("EPSG:4326","neu"),new Et("urn:ogc:def:crs:EPSG::4326","neu"),new Et("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Et("urn:ogc:def:crs:OGC:1.3:CRS84"),new Et("urn:ogc:def:crs:OGC:2:84"),new Et("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new Et("urn:x-ogc:def:crs:EPSG:4326","neu")],Lt={},Rt={};function It(t,e,o){t=t.mb,e=e.mb,t in Rt||(Rt[t]={}),Rt[t][e]=o}function Nt(t,e){var o;return o=t in Rt&&e in Rt[t]?Rt[t][e]:o}function Ft(t,e,o){var i=(t=Bt(t)).o;return i?e=i(e,o):"degrees"!=t.a&&(e=(i=Wt(t,Bt("EPSG:4326")))(e=[o[0]-e/2,o[1],o[0]+e/2,o[1],o[0],o[1]-e/2,o[0],o[1]+e/2],e,2),e=(yt.b(e.slice(0,2),e.slice(2,4))+yt.b(e.slice(4,6),e.slice(6,8)))/2,void 0!==(t=t.sc())&&(e/=t)),e}function kt(t){t.forEach(Dt),t.forEach(function(e){t.forEach(function(t){e!==t&&It(e,t,Kt)})})}function Dt(t){It(Lt[t.mb]=t,t,Kt)}function Ot(t){return t?"string"==typeof t?Bt(t):t:Bt("EPSG:3857")}function Ut(t,e,o,i){It(t=Bt(t),e=Bt(e),Gt(o)),It(e,t,Gt(i))}function Gt(s){return function(t,e,o){var i,r=t.length;for(o=void 0!==o?o:2,e=void 0!==e?e:Array(r),i=0;i<r;i+=o){var n=s([t[i],t[i+1]]);for(e[i]=n[0],e[i+1]=n[1],n=o-1;2<=n;--n)e[i+n]=t[i+n]}return e}}function Bt(t){var e,o=null;return t instanceof vt?o=t:"string"==typeof t&&(o=Lt[t]||null,e=dt||window.proj4,o||"function"!=typeof e||void 0===e.defs(t)||Dt(o=new vt({code:t}))),o}function Xt(t,e){if(t===e)return!0;var o=t.a===e.a;return(t.mb===e.mb||Wt(t,e)===Kt)&&o}function Vt(t,e){return Wt(t=Bt(t),e=Bt(e))}function Wt(t,e){var o,i,r,n=t.mb,s=e.mb,a=Nt(n,s);return a||"function"==typeof(o=dt||window.proj4)&&(i=o.defs(n),r=o.defs(s),void 0!==i&&void 0!==r&&(i===r?kt([e,t]):Ut(e,t,(a=o(s,n)).forward,a.inverse),a=Nt(n,s))),a=a||Zt}function Zt(t,e){if(void 0!==e&&t!==e){for(var o=0,i=t.length;o<i;++o)e[o]=t[o];t=e}return t}function Kt(t,e){if(void 0!==e){for(var o=0,i=t.length;o<i;++o)e[o]=t[o];t=e}else t=t.slice();return t}function zt(t,e,o){return Vt(e,o)(t,void 0,t.length)}function Yt(t,e,o){return pt(t,e=Vt(e,o))}function Ht(){kt(St),kt(Ct),Ct.forEach(function(e){St.forEach(function(t){It(e,t,Mt),It(t,e,Pt)})})}function qt(t,e,o,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=o,i):[t,e,o]}function Jt(t){var o,i;this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.b=t.resolutions,O((o=this.b,i=function(t,e){return e-t}||D,o.every(function(t,e){return!e||!(0<(t=i(o[e-1],t))||0===t)})),17),this.maxZoom=this.b.length-1,this.i=void 0!==t.origin?t.origin:null,this.c=null,void 0!==t.origins&&(this.c=t.origins,O(this.c.length==this.b.length,20));var e=t.extent;void 0===e||this.i||this.c||(this.i=ot(e)),O(!this.i&&this.c||this.i&&!this.c,18),this.f=null,void 0!==t.tileSizes&&(this.f=t.tileSizes,O(this.f.length==this.b.length,19)),this.g=void 0!==t.tileSize?t.tileSize:this.f?null:256,O(!this.g&&this.f||this.g&&!this.f,22),this.v=void 0!==e?e:null,this.a=null,this.j=[0,0],void 0!==t.sizes?this.a=t.sizes.map(function(t){return new B(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1))},this):e&&function(t,e){for(var o=t.b.length,i=Array(o),r=t.minZoom;r<o;++r)i[r]=ee(t,e,r);t.a=i}(this,e)}Ht();var _t=[0,0,0];function $t(t,e,o,i,r){for(r=t.Aa(e,r),e=e[0]-1;e>=t.minZoom;){if(o.call(null,e,ee(t,r,e,i)))return!0;--e}return!1}function Qt(t,e,o,i){return e[0]<t.maxZoom?(i=t.Aa(e,i),ee(t,i,e[0]+1,o)):null}function te(t,e,o,i){ie(t,e[0],e[1],o,!1,_t);var r=_t[1],n=_t[2];return ie(t,e[2],e[3],o,!0,_t),t=_t[1],e=_t[2],void 0!==i?(i.ca=r,i.$=t,i.da=n,i.ia=e):i=new B(r,t,n,e),i}function ee(t,e,o,i){return te(t,e,t.Da(o),i)}function oe(t,e){var o=t.Pc(e[0]),i=t.Da(e[0]);return t=X(t.gb(e[0]),t.j),[o[0]+(e[1]+.5)*t[0]*i,o[1]+(e[2]+.5)*t[1]*i]}function ie(t,e,o,i,r,n){var s=t.tc(i),a=i/t.Da(s),p=t.Pc(s);return t=X(t.gb(s),t.j),e=a*Math.floor((e-p[0])/i+(r?.5:0))/t[0],o=a*Math.floor((o-p[1])/i+(r?0:.5))/t[1],o=r?(e=Math.ceil(e)-1,Math.ceil(o)-1):(e=Math.floor(e),Math.floor(o)),qt(s,e,o,n)}function re(t){var e=t.j;return e||(e=ae(t),t.j=e),e}function ne(t){var e={};return ht(e,t||{}),void 0===e.extent&&(e.extent=Bt("EPSG:3857").G()),e.resolutions=se(e.extent,e.maxZoom,e.tileSize),delete e.maxZoom,new Jt(e)}function se(t,e,o){e=void 0!==e?e:42;var i=tt(t);for(t=rt(t),o=X(void 0!==o?o:256),o=Math.max(t/o[0],i/o[1]),e+=1,i=Array(e),t=0;t<e;++t)i[t]=o/Math.pow(2,t);return i}function ae(t,e,o){return e=se(t=pe(t),e,o),new Jt({extent:t,origin:ot(t),resolutions:e,tileSize:o})}function pe(t){var e=(t=Bt(t)).G();return e=!e?F(-(t=180*gt.degrees/t.sc()),-t,t,t):e}function he(t){this.b=t.html,this.a=t.tileRanges||null}function le(t){return t}function ue(i){return i.mh=function(t){var e=i.listener,o=i.lh||i.target;return i.nh&&me(i),e.call(o,t)}}function ce(t,e,o,i){for(var r,n=0,s=t.length;n<s;++n)if((r=t[n]).listener===e&&r.lh===o)return i&&(r.deleteIndex=n),r}function fe(t,e){return(t=t.fb)?t[e]:void 0}function ye(t){return t.fb||(t.fb={})}function ge(t,e){var o=fe(t,e);if(o){for(var i=0,r=o.length;i<r;++i)t.removeEventListener(e,o[i].mh),lt(o[i]);o.length=0,(o=t.fb)&&(delete o[e],Object.keys(o).length||delete t.fb)}}function de(t,e,o,i,r){var n=ye(t),s=n[e];return(n=ce(s=s||(n[e]=[]),o,i,!1))?r||(n.nh=!1):(n={lh:i,nh:!!r,listener:o,target:t,type:e},t.addEventListener(e,ue(n)),s.push(n)),n}function ve(t,e,o,i){return de(t,e,o,i,!0)}function be(t,e,o,i){(t=fe(t,e))&&(o=ce(t,o,i,!0))&&me(o)}function me(t){var e,o;t&&t.target&&(t.target.removeEventListener(t.type,t.mh),(e=fe(t.target,t.type))&&(-1!==(o="deleteIndex"in t?t.deleteIndex:e.indexOf(t))&&e.splice(o,1),e.length||ge(t.target,t.type)),lt(t))}function we(t){for(var e in ye(t))ge(t,e)}function xe(){}function Se(t){t.Jb||(t.Jb=!0,t.ka())}function Me(t){this.type=t,this.target=null}function Pe(t){t.stopPropagation()}function Ae(){this.Ua={},this.ra={},this.oa={}}function Ee(t,e){return e?e in t.oa:0<Object.keys(t.oa).length}function Te(){Ae.call(this),this.i=0}function je(t){Te.call(this),G(this),this.S={},void 0!==t&&this.H(t)}(Au=Jt.prototype).Rf=function(t,e,o){for(var i=(t=ee(this,t,e)).ca,r=t.$;i<=r;++i)for(var n=t.da,s=t.ia;n<=s;++n)o([e,i,n])},Au.G=function(){return this.v},Au.Ti=function(){return this.maxZoom},Au.Ui=function(){return this.minZoom},Au.Pc=function(t){return this.i||this.c[t]},Au.Da=function(t){return this.b[t]},Au.Vi=function(){return this.b},Au.Aa=function(t,e){var o=this.Pc(t[0]),i=this.Da(t[0]),r=X(this.gb(t[0]),this.j),n=o[0]+t[1]*r[0]*i;return F(n,t=o[1]+t[2]*r[1]*i,n+r[0]*i,t+r[1]*i,e)},Au.Be=function(t,e,o){return ie(this,t[0],t[1],e,!1,o)},Au.bg=function(t,e,o){return ie(this,t[0],t[1],this.Da(e),!1,o)},Au.gb=function(t){return this.g||this.f[t]},Au.tc=function(t,e){return x(v(this.b,t,e||0),this.minZoom,this.maxZoom)},xe.prototype.Jb=!(he.prototype.i=function(){return this.b}),xe.prototype.ka=w,Me.prototype.preventDefault=Me.prototype.stopPropagation=function(){this.qp=!0},e(Ae,xe),Ae.prototype.addEventListener=function(t,e){var o=this.oa[t];-1===(o=o||(this.oa[t]=[])).indexOf(e)&&o.push(e)},Ae.prototype.b=function(t){var e="string"==typeof t?new Me(t):t;t=e.type;var o=(e.target=this).oa[t];if(o){t in this.ra||(this.ra[t]=0,this.Ua[t]=0),++this.ra[t];for(var i=0,r=o.length;i<r;++i)if(!1===o[i].call(this,e)||e.qp){var n=!1;break}if(--this.ra[t],!this.ra[t]){for(e=this.Ua[t],delete this.Ua[t];e--;)this.removeEventListener(t,w);delete this.ra[t]}return n}},Ae.prototype.ka=function(){we(this)},Ae.prototype.removeEventListener=function(t,e){var o=this.oa[t];o&&(e=o.indexOf(e),t in this.Ua?(o[e]=w,++this.Ua[t]):(o.splice(e,1),o.length||delete this.oa[t]))},e(Te,Ae),(Au=Te.prototype).s=function(){++this.i,this.b("change")},Au.L=function(){return this.i},Au.J=function(t,e,o){if(Array.isArray(t)){for(var i=t.length,r=Array(i),n=0;n<i;++n)r[n]=de(this,t[n],e,o);return r}return de(this,t,e,o)},Au.once=function(t,e,o){if(Array.isArray(t)){for(var i=t.length,r=Array(i),n=0;n<i;++n)r[n]=ve(this,t[n],e,o);return r}return ve(this,t,e,o)},Au.K=function(t,e,o){if(Array.isArray(t))for(var i=0,r=t.length;i<r;++i)be(this,t[i],e,o);else be(this,t,e,o)},e(je,Te);var Ce={};function Le(t){return Ce.hasOwnProperty(t)?Ce[t]:Ce[t]="change:"+t}function Re(t,e,o){var i=Le(e);t.b(new Ie(i,e,o)),t.b(new Ie("propertychange",e,o))}function Ie(t,e,o){Me.call(this,t),this.key=e,this.oldValue=o}function Ne(t,e){if(je.call(this),this.c=!!(e||{}).unique,this.a=t||[],this.c)for(t=0,e=this.a.length;t<e;++t)ke(this,this.a[t],t);Fe(this)}function Fe(t){t.set(De,t.a.length)}function ke(t,e,o){for(var i=0,r=t.a.length;i<r;++i)if(t.a[i]===e&&i!==o)throw new a(58)}(Au=je.prototype).get=function(t){var e;return e=this.S.hasOwnProperty(t)?this.S[t]:e},Au.O=function(){return Object.keys(this.S)},Au.N=function(){return ht({},this.S)},Au.set=function(t,e,o){o?this.S[t]=e:(o=this.S[t])!==(this.S[t]=e)&&Re(this,t,o)},Au.H=function(t,e){for(var o in t)this.set(o,t[o],e)},Au.P=function(t,e){var o;t in this.S&&(o=this.S[t],delete this.S[t],e||Re(this,t,o))},e(Ie,Me),e(Ne,je),(Au=Ne.prototype).clear=function(){for(;0<this.dc();)this.pop()},Au.fg=function(t){for(var e=0,o=t.length;e<o;++e)this.push(t[e]);return this},Au.forEach=function(t,e){this.a.forEach(t,e)},Au.tm=function(){return this.a},Au.item=function(t){return this.a[t]},Au.dc=function(){return this.get(De)},Au.He=function(t,e){this.c&&ke(this,e),this.a.splice(t,0,e),Fe(this),this.b(new Oe("add",e))},Au.pop=function(){return this.Hg(this.dc()-1)},Au.push=function(t){this.c&&ke(this,t);var e=this.dc();return this.He(e,t),this.dc()},Au.remove=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)if(e[o]===t)return this.Hg(o)},Au.Hg=function(t){var e=this.a[t];return this.a.splice(t,1),Fe(this),this.b(new Oe("remove",e)),e},Au.Wp=function(t,e){var o=this.dc();if(t<o)this.c&&ke(this,e,t),o=this.a[t],this.a[t]=e,this.b(new Oe("remove",o)),this.b(new Oe("add",e));else{for(;o<t;++o)this.He(o,void 0);this.He(t,e)}};var De="length";function Oe(t,e){Me.call(this,t),this.element=e}e(Oe,Me);var Ue=/^#(?:[0-9a-f]{3}){1,2}$/i,Ge=/^([a-z]*)$/i;function Be(t){return Array.isArray(t)?t:Ze(t)}function Xe(t){var e;return t="string"!=typeof t?"rgba("+(e=(e=t[0])!=(0|e)?e+.5|0:e)+","+(e=(e=t[1])!=(0|e)?e+.5|0:e)+","+(e=(e=t[2])!=(0|e)?e+.5|0:e)+","+(void 0===t[3]?1:t[3])+")":t}var Ve,We,Ze=(Ve={},We=0,function(t){if(Ve.hasOwnProperty(t))var e=Ve[t];else{if(1024<=We)for(var o in e=0,Ve)3&e++||(delete Ve[o],--We);var i,r;e=t,Ge.exec(e)&&((o=document.createElement("div")).style.color=e,document.body.appendChild(o),e=getComputedStyle(o).color,document.body.removeChild(o)),Ue.exec(e)?(O(3==(r=e.length-1)||6==r,54),i=3==r?1:2,r=parseInt(e.substr(1+0*i,i),16),o=parseInt(e.substr(1+i,i),16),e=parseInt(e.substr(1+2*i,i),16),1==i&&(r=(r<<4)+r,o=(o<<4)+o,e=(e<<4)+e),r=[r,o,e,1]):e.indexOf("rgba(")?e.indexOf("rgb(")?O(!1,14):((e=e.slice(4,-1).split(",").map(Number)).push(1),r=Ke(e)):r=Ke(e=e.slice(5,-1).split(",").map(Number)),e=r,Ve[t]=e,++We}return e});function Ke(t){var e=[];return e[0]=x(t[0]+.5|0,0,255),e[1]=x(t[1]+.5|0,0,255),e[2]=x(t[2]+.5|0,0,255),e[3]=x(t[3],0,1),e}function ze(t){return"string"==typeof t||t instanceof CanvasPattern||t instanceof CanvasGradient?t:Xe(t)}function Ye(t,e){var o=document.createElement("CANVAS");return t&&(o.width=t),e&&(o.height=e),o.getContext("2d")}function He(t,e){var o=e.parentNode;o&&o.replaceChild(t,e)}function qe(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Je(t){je.call(this),this.element=t.element||null,this.a=this.R=null,this.v=[],this.render=t.render||w,t.target&&this.f(t.target)}function _e(t){t=t||{},this.I=document.createElement("UL"),this.u=document.createElement("LI"),this.I.appendChild(this.u),this.u.style.display="none",this.c=void 0===t.collapsed||t.collapsed,this.o=void 0===t.collapsible||t.collapsible,this.o||(this.c=!1);var e=void 0!==t.className?t.className:"ol-attribution",o=void 0!==t.tipLabel?t.tipLabel:"Attributions",i=void 0!==t.collapseLabel?t.collapseLabel:"»";"string"==typeof i?(this.D=document.createElement("span"),this.D.textContent=i):this.D=i,"string"==typeof(i=void 0!==t.label?t.label:"i")?(this.C=document.createElement("span"),this.C.textContent=i):this.C=i;var r=this.o&&!this.c?this.D:this.C;(i=document.createElement("button")).setAttribute("type","button"),i.title=o,i.appendChild(r),de(i,"click",this.Vm,this),(o=document.createElement("div")).className=e+" ol-unselectable ol-control"+(this.c&&this.o?" ol-collapsed":"")+(this.o?"":" ol-uncollapsible"),o.appendChild(this.I),o.appendChild(i),Je.call(this,{element:o,render:t.render||$e,target:t.target}),this.B=!0,this.l={},this.j={},this.T={}}function $e(t){if(t=t.frameState){var e,o,i,r,n,s,a,p=t.layerStatesArray,h=ht({},t.attributions),l={},u={},c=t.viewState.projection,f=0;for(a=p.length;f<a;f++)if(o=p[f].layer.ha()){var y=G(o).toString();if(i=o.j)for(var g=0,d=i.length;g<d;g++){var v=i[g],b=G(v).toString();if(!(b in h)){if(e=t.usedTiles[y])t:{var m=void 0,w=v,x=M=o.Ta(c),S=c;if(w.a){for(m in e)if(m in w.a)for(var M=e[m],P=0,A=w.a[m].length;P<A;++P){var E=w.a[m][P];if(C(E,M)){m=!0;break t}var T=ee(x,pe(S),parseInt(m,10)),j=T.$-T.ca+1;if((M.ca<T.ca||M.$>T.$)&&(C(E,new B(L(M.ca,j),L(M.$,j),M.da,M.ia))||M.$-M.ca+1>j&&C(E,T))){m=!0;break t}}m=!1}else m=!0}else m=!1;m?(b in l&&delete l[b],(m=v.b)in u||(u[m]=!0,h[b]=v)):l[b]=v}}}for(r in f=(a=[h,l])[0],a=a[1],this.l)r in f?(this.j[r]||(this.l[r].style.display="",this.j[r]=!0),delete f[r]):r in a?(this.j[r]&&(this.l[r].style.display="none",delete this.j[r]),delete a[r]):(qe(this.l[r]),delete this.l[r],delete this.j[r]);for(r in f)g=document.createElement("LI"),g.innerHTML=f[r].b,this.I.appendChild(g),this.l[r]=g,this.j[r]=!0;for(r in a)g=document.createElement("LI"),g.innerHTML=a[r].b,g.style.display="none",this.I.appendChild(g),this.l[r]=g;for(s in r=!ct(this.j)||!ct(t.logos),this.B!=r&&(this.element.style.display=r?"":"none",this.B=r),r&&ct(this.j)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only"),t=t.logos,r=this.T)s in t||(qe(r[s]),delete r[s]);for(n in t)(a=t[n])instanceof HTMLElement&&(this.u.appendChild(a),r[n]=a),n in r||((s=new Image).src=n,""===a?f=s:((f=document.createElement("a")).href=a,f.appendChild(s)),this.u.appendChild(f),r[n]=f);this.u.style.display=ct(t)?"none":""}else this.B&&(this.element.style.display="none",this.B=!1)}function Qe(t){t.element.classList.toggle("ol-collapsed"),t.c?He(t.D,t.C):He(t.C,t.D),t.c=!t.c}function to(t){return Math.pow(t,3)}function eo(t){return 1-to(1-t)}function oo(t){return 3*t*t-2*t*t*t}function io(t){return t}function ro(t){var e=void 0!==(t=t||{}).className?t.className:"ol-rotate",o=void 0!==t.label?t.label:"⇧";this.c=null,"string"==typeof o?(this.c=document.createElement("span"),this.c.className="ol-compass",this.c.textContent=o):(this.c=o,this.c.classList.add("ol-compass"));var i=t.tipLabel||"Reset rotation";(o=document.createElement("button")).className=e+"-reset",o.setAttribute("type","button"),o.title=i,o.appendChild(this.c),de(o,"click",ro.prototype.D,this),(i=document.createElement("div")).className=e+" ol-unselectable ol-control",i.appendChild(o),e=t.render||no,this.o=t.resetNorth||void 0,Je.call(this,{element:i,render:e,target:t.target}),this.l=void 0!==t.duration?t.duration:250,this.j=void 0===t.autoHide||t.autoHide,this.u=void 0,this.j&&this.element.classList.add("ol-hidden")}function no(t){var e,o;(t=t.frameState)&&((t=t.viewState.rotation)!=this.u&&(e="rotate("+t+"rad)",this.j&&((o=this.element.classList.contains("ol-hidden"))||t?o&&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.u=t)}function so(t){var e=void 0!==(t=t||{}).className?t.className:"ol-zoom",o=void 0!==t.delta?t.delta:1,i=void 0!==t.zoomInLabel?t.zoomInLabel:"+",r=void 0!==t.zoomOutLabel?t.zoomOutLabel:"−",n=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",s=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",a=document.createElement("button");a.className=e+"-in",a.setAttribute("type","button"),a.title=n,a.appendChild("string"==typeof i?document.createTextNode(i):i),de(a,"click",so.prototype.j.bind(this,o)),(i=document.createElement("button")).className=e+"-out",i.setAttribute("type","button"),i.title=s,i.appendChild("string"==typeof r?document.createTextNode(r):r),de(i,"click",so.prototype.j.bind(this,-o)),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(a),o.appendChild(i),Je.call(this,{element:o,target:t.target}),this.c=void 0!==t.duration?t.duration:250}function ao(t){t=t||{};var e=new Ne;return void 0!==t.zoom&&!t.zoom||e.push(new so(t.zoomOptions)),void 0!==t.rotate&&!t.rotate||e.push(new ro(t.rotateOptions)),void 0!==t.attribution&&!t.attribution||e.push(new _e(t.attributionOptions)),e}function po(t){t=t||{},this.c=void 0!==t.className?t.className:"ol-full-screen";var e=void 0!==t.label?t.label:"⤢";this.o="string"==typeof e?document.createTextNode(e):e,e=void 0!==t.labelActive?t.labelActive:"×",this.l="string"==typeof e?document.createTextNode(e):e;var o=t.tipLabel||"Toggle full-screen";(e=document.createElement("button")).className=this.c+"-"+lo(),e.setAttribute("type","button"),e.title=o,e.appendChild(this.o),de(e,"click",this.C,this),(o=document.createElement("div")).className=this.c+" ol-unselectable ol-control "+(ho()?"":"ol-unsupported"),o.appendChild(e),Je.call(this,{element:o,target:t.target}),this.D=void 0!==t.keys&&t.keys,this.j=t.source}function ho(){var t=document.body;return t.webkitRequestFullscreen||t.mozRequestFullScreen&&document.mozFullScreenEnabled||t.msRequestFullscreen&&document.msFullscreenEnabled||t.requestFullscreen&&document.fullscreenEnabled}function lo(){return!!(document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||document.fullscreenElement)}function uo(t){t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}e(Je,je),Je.prototype.ka=function(){qe(this.element),je.prototype.ka.call(this)},Je.prototype.g=function(){return this.a},Je.prototype.setMap=function(t){this.a&&qe(this.element);for(var e=0,o=this.v.length;e<o;++e)me(this.v[e]);this.v.length=0,(this.a=t)&&((this.R||t.D).appendChild(this.element),this.render!==w&&this.v.push(de(t,"postrender",this.render,this)),t.render())},Je.prototype.f=function(t){this.R="string"==typeof t?document.getElementById(t):t},e(_e,Je),(Au=_e.prototype).Vm=function(t){t.preventDefault(),Qe(this)},Au.Um=function(){return this.o},Au.Xm=function(t){this.o!==t&&(this.o=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.c&&Qe(this))},Au.Wm=function(t){this.o&&this.c!==t&&Qe(this)},Au.Tm=function(){return this.c},e(ro,Je),ro.prototype.D=function(t){t.preventDefault(),this.o?this.o():(t=this.a.Z())&&void 0!==t.Qa()&&(0<this.l?t.animate({rotation:0,duration:this.l,easing:eo}):t.Oe(0))},e(so,Je),so.prototype.j=function(t,e){var o;e.preventDefault(),!(e=this.a.Z())||(o=e.Pa())&&(t=e.constrainResolution(o,t),0<this.c?(e.Ic()&&e.ed(),e.animate({resolution:t,duration:this.c,easing:eo})):e.Vc(t))},e(po,Je),po.prototype.C=function(t){t.preventDefault(),ho()&&(t=this.a)&&(lo()?document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():(t=this.j?"string"==typeof this.j?document.getElementById(this.j):this.j:t.jd(),this.D?t.mozRequestFullScreenWithKeys?t.mozRequestFullScreenWithKeys():t.webkitRequestFullscreen?t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):uo(t):uo(t)))},po.prototype.u=function(){var t=this.element.firstElementChild,e=this.a;lo()?(t.className=this.c+"-true",He(this.l,this.o)):(t.className=this.c+"-false",He(this.o,this.l)),e&&e.Ad()},po.prototype.setMap=function(t){Je.prototype.setMap.call(this,t),t&&this.v.push(de(document,fo(),this.u,this))};var co,fo=function(){var t;return co||((t=document.body).webkitRequestFullscreen?co="webkitfullscreenchange":t.mozRequestFullScreen?co="mozfullscreenchange":t.msRequestFullscreen?co="MSFullscreenChange":t.requestFullscreen&&(co="fullscreenchange")),co};function yo(t){t=t||{};var e=document.createElement("DIV");e.className=void 0!==t.className?t.className:"ol-mouse-position",Je.call(this,{element:e,render:t.render||go,target:t.target}),de(this,Le(bo),this.Ym,this),t.coordinateFormat&&this.kj(t.coordinateFormat),t.projection&&this.$h(t.projection),this.u=void 0!==t.undefinedHTML?t.undefinedHTML:"",this.l=e.innerHTML,this.o=this.j=this.c=null}function go(t){(t=t.frameState)?this.c!=t.viewState.projection&&(this.c=t.viewState.projection,this.j=null):this.c=null,vo(this,this.o)}function vo(t,e){var o,i=t.u;e&&t.c&&(t.j||(o=t.Zh(),t.j=o?Wt(t.c,o):Zt),(e=t.a.Wa(e))&&(t.j(e,e),i=(i=t.xh())?i(e):e.toString())),t.l&&i==t.l||(t.element.innerHTML=i,t.l=i)}e(yo,Je),(Au=yo.prototype).Ym=function(){this.j=null},Au.xh=function(){return this.get(mo)},Au.Zh=function(){return this.get(bo)},Au.Ll=function(t){this.o=this.a.xe(t),vo(this,this.o)},Au.Ml=function(){vo(this,null),this.o=null},Au.setMap=function(t){Je.prototype.setMap.call(this,t),t&&(t=t.a,this.v.push(de(t,"mousemove",this.Ll,this),de(t,"mouseout",this.Ml,this)))},Au.kj=function(t){this.set(mo,t)},Au.$h=function(t){this.set(bo,Bt(t))};var bo="projection",mo="coordinateFormat";function wo(t,e,o){Me.call(this,t),this.map=e,this.frameState=void 0!==o?o:null}function xo(t,e,o,i,r){wo.call(this,t,e,r),this.originalEvent=o,this.pixel=e.xe(o),this.coordinate=e.Wa(this.pixel),this.dragging=void 0!==i&&i}e(wo,Me),e(xo,wo),xo.prototype.preventDefault=function(){wo.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},xo.prototype.stopPropagation=function(){wo.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()};var So=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Mo(t,e){for(var o,i=So.length,r=0;r<i;++r)try{if(o=t.getContext(So[r],e))return o}catch(t){}return null}var Po,Ao="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",Eo=-1!==Ao.indexOf("firefox"),To=-1!==Ao.indexOf("safari")&&-1==Ao.indexOf("chrom"),jo=-1!==Ao.indexOf("webkit")&&-1==Ao.indexOf("edge"),Co=-1!==Ao.indexOf("macintosh"),Lo=window.devicePixelRatio||1,Ro=!1,Io=function(){if(!("HTMLCanvasElement"in window))return!1;try{var t=document.createElement("CANVAS").getContext("2d");return!!t&&(void 0!==t.setLineDash&&(Ro=!0),!0)}catch(t){return!1}}(),No="DeviceOrientationEvent"in window,Fo="geolocation"in navigator,ko="ontouchstart"in window,Do="PointerEvent"in window,Oo=!!navigator.msPointerEnabled,Uo=!1,Go=[];if("WebGLRenderingContext"in window)try{var Bo=Mo(document.createElement("CANVAS"),{failIfMajorPerformanceCaveat:!0});Bo&&(Uo=!0,Po=Bo.getParameter(Bo.MAX_TEXTURE_SIZE),Go=Bo.getSupportedExtensions())}catch(t){}var Xo=Uo,Vo=Go,Wo=Po,Zo={Iq:"singleclick",xq:"click",yq:"dblclick",Bq:"pointerdrag",Eq:"pointermove",Aq:"pointerdown",Hq:"pointerup",Gq:"pointerover",Fq:"pointerout",Cq:"pointerenter",Dq:"pointerleave",zq:"pointercancel"};function Ko(t,e,o,i,r){xo.call(this,t,e,o.b,i,r),this.b=o}function zo(t,e){this.b=t,this.f=e}function Yo(t){zo.call(this,t,{mousedown:this.fm,mousemove:this.gm,mouseup:this.jm,mouseover:this.im,mouseout:this.hm}),this.a=t.i,this.i=[]}function Ho(t,e){t=t.i;var o=e.clientX;e=e.clientY;for(var i,r=0,n=t.length;r<n&&(i=t[r]);r++){var s=Math.abs(e-i[1]);if(Math.abs(o-i[0])<=25&&s<=25)return 1}}function qo(t){var e=si(t,t),o=e.preventDefault;return e.preventDefault=function(){t.preventDefault(),o()},e.pointerId=1,e.isPrimary=!0,e.pointerType="mouse",e}function Jo(t){zo.call(this,t,{MSPointerDown:this.om,MSPointerMove:this.pm,MSPointerUp:this.sm,MSPointerOut:this.qm,MSPointerOver:this.rm,MSPointerCancel:this.nm,MSGotPointerCapture:this.lm,MSLostPointerCapture:this.mm}),this.a=t.i,this.i=["","unavailable","touch","pen","mouse"]}function _o(t,e){var o=e;return"number"==typeof e.pointerType&&((o=si(e,e)).pointerType=t.i[e.pointerType]),o}function $o(t){zo.call(this,t,{pointerdown:this.ip,pointermove:this.jp,pointerup:this.mp,pointerout:this.kp,pointerover:this.lp,pointercancel:this.hp,gotpointercapture:this.ul,lostpointercapture:this.em})}function Qo(t,e,o){var i;Me.call(this,t),this.b=e,t=o||{},this.buttons=function(t){if(t.buttons||ti)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}(t),this.pressure=(i=t,o=this.buttons,i.pressure||(o?.5:0)),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()})}e(Ko,xo),e(Yo,zo),(Au=Yo.prototype).fm=function(t){var e;Ho(this,t)||(1..toString()in this.a&&this.cancel(t),e=qo(t),this.a[1..toString()]=t,li(this.b,"pointerdown",e,t))},Au.gm=function(t){var e;Ho(this,t)||(e=qo(t),li(this.b,"pointermove",e,t))},Au.jm=function(t){var e;Ho(this,t)||(e=this.a[1..toString()])&&e.button===t.button&&(e=qo(t),li(this.b,"pointerup",e,t),delete this.a[1..toString()])},Au.im=function(t){var e;Ho(this,t)||(e=qo(t),hi(this.b,e,t))},Au.hm=function(t){var e;Ho(this,t)||(e=qo(t),pi(this.b,e,t))},Au.cancel=function(t){var e=qo(t);this.b.cancel(e,t),delete this.a[1..toString()]},e(Jo,zo),(Au=Jo.prototype).om=function(t){this.a[t.pointerId.toString()]=t;var e=_o(this,t);li(this.b,"pointerdown",e,t)},Au.pm=function(t){var e=_o(this,t);li(this.b,"pointermove",e,t)},Au.sm=function(t){var e=_o(this,t);li(this.b,"pointerup",e,t),delete this.a[t.pointerId.toString()]},Au.qm=function(t){var e=_o(this,t);pi(this.b,e,t)},Au.rm=function(t){var e=_o(this,t);hi(this.b,e,t)},Au.nm=function(t){var e=_o(this,t);this.b.cancel(e,t),delete this.a[t.pointerId.toString()]},Au.mm=function(t){this.b.b(new Qo("lostpointercapture",t,t))},Au.lm=function(t){this.b.b(new Qo("gotpointercapture",t,t))},e($o,zo),(Au=$o.prototype).ip=function(t){ui(this.b,t)},Au.jp=function(t){ui(this.b,t)},Au.mp=function(t){ui(this.b,t)},Au.kp=function(t){ui(this.b,t)},Au.lp=function(t){ui(this.b,t)},Au.hp=function(t){ui(this.b,t)},Au.em=function(t){ui(this.b,t)},Au.ul=function(t){ui(this.b,t)},e(Qo,Me);var ti=!1;try{ti=1===new MouseEvent("click",{buttons:1}).buttons}catch(t){}function ei(t,e){zo.call(this,t,{touchstart:this.rq,touchmove:this.qq,touchend:this.pq,touchcancel:this.oq}),this.a=t.i,this.j=e,this.i=void 0,this.g=0,this.c=void 0}function oi(t,e,o){function i(){e.preventDefault()}for(var r,n,s=Array.prototype.slice.call(e.changedTouches),a=s.length,p=0;p<a;++p){var h=(r=t,h=e,n=s[p],(h=si(h,n)).pointerId=n.identifier+2,h.bubbles=!0,h.cancelable=!0,h.detail=r.g,h.button=0,h.buttons=1,h.width=n.webkitRadiusX||n.radiusX||0,h.height=n.webkitRadiusY||n.radiusY||0,h.pressure=n.webkitForce||n.force||.5,h.isPrimary=r.i===n.identifier,h.pointerType="touch",h.clientX=n.clientX,h.clientY=n.clientY,h.screenX=n.screenX,h.screenY=n.screenY,h);h.preventDefault=i,o.call(t,e,h)}}function ii(t,e){var o,i=t.j.i;e=e.changedTouches[0],t.i===e.identifier&&(o=[e.clientX,e.clientY],i.push(o),setTimeout(function(){s(i,o)},2500))}function ri(t){Ae.call(this),this.g=t,this.i={},this.f={},this.a=[],Do?ni(this,new $o(this)):Oo?ni(this,new Jo(this)):(ni(this,t=new Yo(this)),ko&&ni(this,new ei(this,t))),t=this.a.length;for(var e,o,i=0;i<t;i++)e=this.a[i],o=this,Object.keys(e.f).forEach(function(t){de(this.g,t,this.c,this)},o)}function ni(t,o){var e=Object.keys(o.f);e&&(e.forEach(function(t){var e=o.f[t];e&&(this.f[t]=e.bind(o))},t),t.a.push(o))}function si(t,e){for(var o,i={},r=0,n=ci.length;r<n;r++)i[o=ci[r][0]]=t[o]||e[o]||ci[r][1];return i}function ai(t,e,o){e.bubbles=!1,li(t,"pointerleave",e,o)}function pi(t,e,o){t.out(e,o);var i=e.target,r=e.relatedTarget;i&&r&&i.contains(r)||ai(t,e,o)}function hi(t,e,o){e.bubbles=!0,li(t,"pointerover",e,o);var i=e.target,r=e.relatedTarget;i&&r&&i.contains(r)||(e.bubbles=!1,li(t,"pointerenter",e,o))}function li(t,e,o,i){t.b(new Qo(e,i,o))}function ui(t,e){t.b(new Qo(e.type,e,e))}e(ei,zo),(Au=ei.prototype).ij=function(){this.g=0,this.c=void 0},Au.rq=function(t){var e=t.touches,o=Object.keys(this.a),i=o.length;if(i>=e.length){for(var r=[],n=0;n<i;++n){var s,a=o[n],p=this.a[a];if(!(s=1==a))t:{for(var h=e.length,l=0;l<h;l++)if((s=e[l]).identifier===a-2){s=!0;break t}s=!1}s||r.push(p.out)}for(n=0;n<r.length;++n)this.Kf(t,r[n])}e=t.changedTouches[0],(!(o=Object.keys(this.a).length)||1===o&&1..toString()in this.a)&&(this.i=e.identifier,void 0!==this.c&&clearTimeout(this.c)),ii(this,t),this.g++,oi(this,t,this.cp)},Au.cp=function(t,e){this.a[e.pointerId]={target:e.target,out:e,Wi:e.target};var o=this.b;e.bubbles=!0,li(o,"pointerover",e,t),o=this.b,e.bubbles=!1,li(o,"pointerenter",e,t),li(this.b,"pointerdown",e,t)},Au.qq=function(t){t.preventDefault(),oi(this,t,this.km)},Au.km=function(t,e){var o,i,r=this.a[e.pointerId];r&&(o=r.out,i=r.Wi,li(this.b,"pointermove",e,t),o&&i!==e.target&&(o.relatedTarget=e.target,e.relatedTarget=i,o.target=i,e.target?(pi(this.b,o,t),hi(this.b,e,t)):(e.target=i,e.relatedTarget=null,this.Kf(t,e))),r.out=e,r.Wi=e.target)},Au.pq=function(t){ii(this,t),oi(this,t,this.sq)},Au.sq=function(t,e){li(this.b,"pointerup",e,t),this.b.out(e,t),ai(this.b,e,t),delete this.a[e.pointerId],e.isPrimary&&(this.i=void 0,this.c=setTimeout(this.ij.bind(this),200))},Au.oq=function(t){oi(this,t,this.Kf)},Au.Kf=function(t,e){this.b.cancel(e,t),this.b.out(e,t),ai(this.b,e,t),delete this.a[e.pointerId],e.isPrimary&&(this.i=void 0,this.c=setTimeout(this.ij.bind(this),200))},e(ri,Ae),ri.prototype.c=function(t){var e=this.f[t.type];e&&e(t)},ri.prototype.out=function(t,e){t.bubbles=!0,li(this,"pointerout",t,e)},ri.prototype.cancel=function(t,e){li(this,"pointercancel",t,e)};var ci=[["bubbles",!(ri.prototype.ka=function(){for(var t,e,o=this.a.length,i=0;i<o;i++)t=this.a[i],e=this,Object.keys(t.f).forEach(function(t){be(this.g,t,this.c,this)},e);Ae.prototype.ka.call(this)})],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]];function fi(t,e){Ae.call(this),this.i=t,this.j=0,this.o=!1,this.f=[],this.D=e?e*Lo:Lo,this.c=null,t=this.i.a,this.S=0,this.u={},this.g=new ri(t),this.a=null,this.l=de(this.g,"pointerdown",this.Ol,this),this.v=de(this.g,"pointermove",this.Lp,this)}function yi(t,e){"pointerup"==e.type||"pointercancel"==e.type?delete t.u[e.pointerId]:"pointerdown"==e.type&&(t.u[e.pointerId]=!0),t.S=Object.keys(t.u).length}function gi(t,e){return Math.abs(e.clientX-t.c.clientX)>t.D||Math.abs(e.clientY-t.c.clientY)>t.D}function di(t,e){this.l=t,this.c=e,this.b=[],this.i=[],this.a={}}function vi(t){var e=t.b,o=t.i,i=e[0];return 1==e.length?(e.length=0,o.length=0):(e[0]=e.pop(),o[0]=o.pop(),bi(t,0)),e=t.c(i),delete t.a[e],i}function bi(t,e){for(var o=t.b,i=t.i,r=o.length,n=o[e],s=i[e],a=e;e<r>>1;){var p=2*e+1,h=2*e+2,p=h<r&&i[h]<i[p]?h:p;o[e]=o[p],i[e]=i[p],e=p}o[e]=n,i[e]=s,mi(t,a,e)}function mi(t,e,o){var i=t.b;t=t.i;for(var r=i[o],n=t[o];e<o;){var s=o-1>>1;if(!(t[s]>n))break;i[o]=i[s],t[o]=t[s],o=s}i[o]=r,t[o]=n}function wi(t){for(var e=t.l,o=t.b,i=t.i,r=0,n=o.length,s=0;s<n;++s){var a=o[s],p=e(a);1/0==p?delete t.a[t.c(a)]:(i[r]=p,o[r++]=a)}for(o.length=r,i.length=r,e=(t.b.length>>1)-1;0<=e;e--)bi(t,e)}function xi(e,t){di.call(this,function(t){return e.apply(null,t)},function(t){return t[0].bb()}),this.v=t,this.j=0,this.g={}}function Si(t,e,o){for(var i,r,n=0;t.j<e&&n<o&&0<t.b.length;)r=(i=vi(t)[0]).bb(),0!==i.getState()||r in t.g||(t.g[r]=!0,++t.j,++n,i.load())}function Mi(t){if(void 0!==t)return 0}function Pi(t,e){if(void 0!==t)return t+e}function Ai(t,e){return 2<(e=-1===(e=(t=void 0!==e?t.toFixed(e):""+t).indexOf("."))?t.length:e)?t:Array(3-e).join("0")+t}function Ei(t){t=(""+t).split(".");for(var e=["1","3"],o=0;o<Math.max(t.length,e.length);o++){var i=parseInt(t[o]||"0",10),r=parseInt(e[o]||"0",10);if(r<i)return 1;if(i<r)return-1}return 0}function Ti(t,e){return t[0]+=e[0],t[1]+=e[1],t}function ji(t,e){var o=t[0];t=t[1];var i=e[0],r=e[1];e=i[0];var i=i[1],n=r[0],s=n-e,a=(r=r[1])-i;return o=(o=s||a?(s*(o-e)+a*(t-i))/(s*s+a*a||0):0)<=0?(t=e,i):1<=o?(t=n,r):(t=e+o*s,i+o*a),[t,o]}function Ci(t,e,o){e=L(e+180,360)-180;var i=Math.abs(3600*e);o=o||0;var r=Math.pow(10,o),n=Math.floor(i/3600),s=Math.floor((i-3600*n)/60);return 60<=(i=Math.ceil((i-3600*n-60*s)*r)/r)&&(i=0,s+=1),60<=s&&(s=0,n+=1),n+"° "+Ai(s)+"′ "+Ai(i,o)+"″"+(e?" "+t.charAt(e<0?1:0):"")}function Li(t,e,o){return t?e.replace("{x}",t[0].toFixed(o)).replace("{y}",t[1].toFixed(o)):""}function Ri(t,e){for(var o=!0,i=t.length-1;0<=i;--i)if(t[i]!=e[i]){o=!1;break}return o}function Ii(t,e){var o=Math.cos(e);e=Math.sin(e);var i=t[1]*o+t[0]*e;return t[0]=t[0]*o-t[1]*e,t[1]=i,t}function Ni(t,e){t[0]*=e,t[1]*=e}function Fi(t,e){var o=t[0]-e[0];return o*o+(t=t[1]-e[1])*t}function ki(t,e){return Math.sqrt(Fi(t,e))}function Di(t,e){return Fi(t,ji(t,e))}function Oi(t,e){return Li(t,"{x}, {y}",e)}function Ui(){return!0}function Gi(){return!1}function Bi(){je.call(this),this.l=V(),this.v=-1,this.f={},this.o=this.g=0}function Xi(t,e,o,i,r,n){for(var s=n||[],a=0;e<o;e+=i){var p=t[e],h=t[e+1];s[a++]=r[0]*p+r[2]*h+r[4],s[a++]=r[1]*p+r[3]*h+r[5]}return n&&s.length!=a&&(s.length=a),s}function Vi(t,e,o,i,r,n,s){for(var a,p=s||[],h=0;e<o;e+=i)for(p[h++]=t[e]+r,p[h++]=t[e+1]+n,a=e+2;a<e+i;++a)p[h++]=t[a];return s&&p.length!=h&&(p.length=h),p}function Wi(){Bi.call(this),this.ja="XY",this.a=2,this.A=null}function Zi(t){var e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function Ki(t,e,o){t.a=Zi(e),t.ja=e,t.A=o}function zi(t,e,o,i){if(e)o=Zi(e);else{for(e=0;e<i;++e){if(!o.length)return t.ja="XY",void(t.a=2);o=o[0]}var r;2==(o=o.length)?r="XY":3==o?r="XYZ":4==o&&(r="XYZM"),e=r}t.ja=e,t.a=o}function Yi(t,e,o,i){for(var r=0,n=t[o-i],s=t[o-i+1];e<o;e+=i)var a=t[e],p=t[e+1],r=r+(s*a-n*p),n=a,s=p;return r/2}function Hi(t,e,o,i){for(var r=0,n=0,s=o.length;n<s;++n){var a=o[n],r=r+Yi(t,e,a,i);e=a}return r}function qi(t,e,o,i,r,n,s){var a=t[e],p=t[e+1],h=t[o]-a,l=t[o+1]-p;if(h||l)if(1<(n=((r-a)*h+(n-p)*l)/(h*h+l*l)))e=o;else if(0<n){for(r=0;r<i;++r)s[r]=f(t[e+r],t[o+r],n);return void(s.length=i)}for(r=0;r<i;++r)s[r]=t[e+r];s.length=i}function Ji(t,e,o,i,r){var n=t[e],s=t[e+1];for(e+=i;e<o;e+=i){var a=t[e],p=t[e+1];r<(n=y(n,s,a,p))&&(r=n),n=a,s=p}return r}function _i(t,e,o,i,r){for(var n=0,s=o.length;n<s;++n){var a=o[n];r=Ji(t,e,a,i,r),e=a}return r}function $i(t,e,o,i,r,n,s,a,p,h,l){if(e==o)return h;if(!r){var u=y(s,a,t[e],t[e+1]);if(u<h){for(l=0;l<i;++l)p[l]=t[e+l];return p.length=i,u}return h}for(var c=l||[NaN,NaN],f=e+i;f<o;)if(qi(t,f-i,f,i,s,a,c),(u=y(s,a,c[0],c[1]))<h){for(h=u,l=0;l<i;++l)p[l]=c[l];f+=p.length=i}else f+=i*Math.max((Math.sqrt(u)-Math.sqrt(h))/r|0,1);if(n&&(qi(t,o-i,e,i,s,a,c),(u=y(s,a,c[0],c[1]))<h)){for(h=u,l=0;l<i;++l)p[l]=c[l];p.length=i}return h}function Qi(t,e,o,i,r,n,s,a,p,h,l){l=l||[NaN,NaN];for(var u=0,c=o.length;u<c;++u){var f=o[u];h=$i(t,e,f,i,r,n,s,a,p,h,l),e=f}return h}function tr(t,e){for(var o=0,i=0,r=e.length;i<r;++i)t[o++]=e[i];return o}function er(t,e,o,i){for(var r=0,n=o.length;r<n;++r)for(var s=o[r],a=0;a<i;++a)t[e++]=s[a];return e}function or(t,e,o,i,r){r=r||[];for(var n=0,s=0,a=o.length;s<a;++s)e=er(t,e,o[s],i),r[n++]=e;return r.length=n,r}function ir(t,e,o,i,r){r=void 0!==r?r:[];for(var n=0;e<o;e+=i)r[n++]=t.slice(e,e+i);return r.length=n,r}function rr(t,e,o,i,r){r=void 0!==r?r:[];for(var n=0,s=0,a=o.length;s<a;++s){var p=o[s];r[n++]=ir(t,e,p,i,r[n]),e=p}return r.length=n,r}function nr(t,e,o,i,r,n,s){var a=(o-e)/i;if(a<3){for(;e<o;e+=i)n[s++]=t[e],n[s++]=t[e+1];return s}var p=Array(a);p[0]=1,p[a-1]=1,o=[e,o-i];for(var h=0;0<o.length;){for(var l=o.pop(),u=o.pop(),c=0,f=t[u],y=t[u+1],g=t[l],d=t[l+1],v=u+i;v<l;v+=i){var b=S(t[v],t[v+1],f,y,g,d);c<b&&(h=v,c=b)}r<c&&(p[(h-e)/i]=1,u+i<h&&o.push(u,h),h+i<l&&o.push(h,l))}for(v=0;v<a;++v)p[v]&&(n[s++]=t[e+v*i],n[s++]=t[e+v*i+1]);return s}function sr(t,e,o,i,r,n,s,a){for(var p=0,h=o.length;p<h;++p){var l=o[p];t:{var u=t,c=l,f=i,y=r,g=n,d=s;if(e!=c){var v=y*Math.round(u[e]/y),b=y*Math.round(u[e+1]/y);e+=f,g[d++]=v,g[d++]=b;do{var m=y*Math.round(u[e]/y);if(s=y*Math.round(u[e+1]/y),(e+=f)==c){g[d++]=m,g[d++]=s,s=d;break t}}while(m==v&&s==b);for(;e<c;){var w,x,S,M,P=y*Math.round(u[e]/y),A=y*Math.round(u[e+1]/y);e+=f,P==m&&A==s||((w=m-v)*(M=A-b)==(x=s-b)*(S=P-v)&&(w<0&&S<w||w==S||0<w&&w<S)&&(x<0&&M<x||x==M||0<x&&x<M)||(v=g[d++]=m,b=g[d++]=s),m=P,s=A)}g[d++]=m,g[d++]=s}s=d}a.push(s),e=l}return s}function ar(t,e){Wi.call(this),this.c=this.j=-1,this.ma(t,e)}function pr(t,e,o){Ki(t,e,o),t.s()}function hr(t,e){Wi.call(this),this.ma(t,e)}function lr(t,e,o,i,r,n){for(var s=0,a=t[o-i],p=t[o-i+1];e<o;e+=i){var h=t[e],l=t[e+1];p<=n?n<l&&0<(h-a)*(n-p)-(r-a)*(l-p)&&s++:l<=n&&(h-a)*(n-p)-(r-a)*(l-p)<0&&s--,a=h,p=l}return s}function ur(t,e,o,i,r,n){if(!o.length||!lr(t,e,o[0],i,r,n))return!1;var s;for(e=1,s=o.length;e<s;++e)if(lr(t,o[e-1],o[e],i,r,n))return!1;return!0}function cr(t,e,o,i,r,n,s){for(var a=r[n+1],p=[],h=o[0],l=t[h-i],u=t[h-i+1],c=e;c<h;c+=i){var f=t[c],y=t[c+1];(a<=u&&y<=a||u<=a&&a<=y)&&(l=(a-u)/(y-u)*(f-l)+l,p.push(l)),l=f,u=y}for(h=NaN,u=-1/0,p.sort(D),l=p[0],c=1,y=p.length;c<y;++c){var f=p[c],g=Math.abs(f-l);u<g&&(ur(t,e,o,i,l=(l+f)/2,a)&&(h=l,u=g)),l=f}return isNaN(h)&&(h=r[n]),s?(s.push(h,a),s):[h,a]}function fr(t,e,o,i,r,n){for(var s,a=[t[e],t[e+1]],p=[];e+i<o;e+=i){if(p[0]=t[e+i],p[1]=t[e+i+1],s=r.call(n,a,p))return s;a[0]=p[0],a[1]=p[1]}return!1}function yr(t,e,o,i,l){var r=Y(V(),t,e,o,i);return!!nt(l,r)&&(!!(N(l,r)||r[0]>=l[0]&&r[2]<=l[2]||r[1]>=l[1]&&r[3]<=l[3])||fr(t,e,o,i,function(t,e){var o,i,r,n,s,a=!1,p=R(l,t),h=R(l,e);return 1===p||1===h?a=!0:(o=l[0],i=l[1],r=l[2],n=l[3],s=e[0],t=((e=e[1])-t[1])/(s-t[0]),(a=!(a=!(a=2&h&&!(2&p)?o<=(a=s-(e-n)/t)&&a<=r:a)&&4&h&&!(4&p)?i<=(a=e-(s-r)*t)&&a<=n:a)&&8&h&&!(8&p)?o<=(a=s-(e-i)/t)&&a<=r:a)||!(16&h)||16&p||(a=i<=(a=e-(s-o)*t)&&a<=n)),a}))}function gr(t,e,o,i,r){var n=o[0];if(!(yr(t,e,n,i,r)||lr(t,e,n,i,r[0],r[1])||lr(t,e,n,i,r[0],r[3])||lr(t,e,n,i,r[2],r[1])||lr(t,e,n,i,r[2],r[3])))return!1;if(1===o.length)return!0;for(e=1,n=o.length;e<n;++e)if(function(e,o,i,r,t){return!H(t,function(t){return!lr(e,o,i,r,t[0],t[1])})}(t,o[e-1],o[e],i,r))return!1;return!0}function dr(t,e,o,i){for(var r=0,n=t[o-i],s=t[o-i+1];e<o;e+=i)var a=t[e],p=t[e+1],r=r+(a-n)*(p+s),n=a,s=p;return 0<r}function vr(t,e,o,i){var r=0;i=void 0!==i&&i;for(var n=0,s=e.length;n<s;++n){var a=e[n],r=dr(t,r,a,o);if(n){if(i&&!r||!i&&r)return}else if(i&&r||!i&&!r)return;r=a}return 1}function br(t,e,o,i,r){r=void 0!==r&&r;for(var n=0,s=o.length;n<s;++n){var a=o[n],p=dr(t,e,a,i);if(n?r&&!p||!r&&p:r&&p||!r&&!p)for(var p=t,h=a,l=i;e<h-l;){for(var u=0;u<l;++u){var c=p[e+u];p[e+u]=p[h-l+u],p[h-l+u]=c}e+=l,h-=l}e=a}return e}function mr(t,e,o,i){for(var r=0,n=0,s=e.length;n<s;++n)r=br(t,r,e[n],o,i);return r}function wr(t,e){Wi.call(this),this.c=[],this.u=-1,this.D=null,this.I=this.C=this.B=-1,this.j=null,this.ma(t,e)}function xr(t){var e;return t.u!=t.i&&(e=$(t.G()),t.D=cr(t.ec(),0,t.c,t.a,e,0),t.u=t.i),t.D}function Sr(t,e,o,i){var r,n=i||32;for(i=[],r=0;r<n;++r)c(i,t.offset(e,o,2*Math.PI*r/n));return i.push(i[0],i[1]),(t=new wr(null)).ba("XY",i,[i.length]),t}function Mr(t){var e=t[0],o=t[1],i=t[2],e=[e,o,e,t=t[3],i,t,i,o,e,o];return(o=new wr(null)).ba("XY",e,[e.length]),o}function Pr(t,e,o){for(var i=e||32,r=t.qa(),n=new wr(null,e=t.ja),i=r*(i+1),r=Array(i),s=0;s<i;s++)r[s]=0;return n.ba(e,r,[r.length]),Ar(n,t.wa(),t.pd(),o),n}function Ar(t,e,o,i){var r=t.ga(),n=t.ja,s=t.qa(),a=t.Bb(),p=r.length/s-1;i=i||0;for(var h,l,u=0;u<=p;++u)l=u*s,h=i+2*L(u,p)*Math.PI/p,r[l]=e[0]+o*Math.cos(h),r[1+l]=e[1]+o*Math.sin(h);t.ba(n,r,a)}function Er(t){je.call(this),t=ht({},t),this.o=[0,0],this.c=[],this.wf=this.wf.bind(this),this.v=Ot(t.projection),Tr(this,t)}function Tr(t,e){var o={};o.center=void 0!==e.center?e.center:null;var i,r,n,s,a,p,h,l,u,c,f,y=void 0!==e.minZoom?e.minZoom:0,g=void 0!==e.maxZoom?e.maxZoom:28,d=void 0!==e.zoomFactor?e.zoomFactor:2;g=void 0!==e.resolutions?(i=(g=e.resolutions)[0],r=g[g.length-1],l=g,function(t,e,o){if(void 0!==t)return(t=x((t=v(l,t,o))+e,0,l.length-1))!=(e=Math.floor(t))&&e<l.length-1?l[e]/Math.pow(l[e]/l[e+1],t-e):l[e]}):(s=(n=((r=(i=Ot(e.projection)).G())?Math.max(rt(r),tt(r)):360*gt.degrees/i.sc())/256/Math.pow(2,0))/Math.pow(2,28),void 0!==(i=e.maxResolution)?y=0:i=n/Math.pow(d,y),void 0===(r=e.minResolution)&&(r=void 0!==e.maxZoom?void 0!==e.maxResolution?i/Math.pow(d,g):n/Math.pow(d,g):s),g=y+Math.floor(Math.log(i/r)/Math.log(d)),r=i/Math.pow(d,g-y),a=d,p=i,h=g-y,function(t,e,o){if(void 0!==t)return t=Math.max(Math.floor(Math.log(p/t)/Math.log(a)+(-o/2+.5))+e,0),void 0!==h&&(t=Math.min(t,h)),p/Math.pow(a,t)}),t.a=i,t.f=r,t.C=d,t.j=e.resolutions,t.l=y,y=void 0===e.enableRotation||e.enableRotation?void 0===(y=e.constrainRotation)||!0===y?(c=M(5),function(t,e){if(void 0!==t)return Math.abs(t+e)<=c?0:t+e}):!1!==y&&"number"==typeof y?(d=y,u=2*Math.PI/d,function(t,e){if(void 0!==t)return Math.floor((t+e)/u+.5)*u}):Pi:Mi,t.g={center:void 0!==e.extent?(f=e.extent,function(t){if(t)return[x(t[0],f[0],f[2]),x(t[1],f[1],f[3])]}):le,resolution:g,rotation:y},void 0!==e.resolution?o.resolution=e.resolution:void 0!==e.zoom&&(o.resolution=t.constrainResolution(t.a,e.zoom-t.l)),o.rotation=void 0!==e.rotation?e.rotation:0,t.H(o),t.D=e}function jr(t,e){var o=ht({},t.D);return void 0!==o.resolution?o.resolution=t.Pa():o.zoom=t.Hh(),o.center=t.wa(),o.rotation=t.Qa(),ht({},o,e)}function Cr(t,e,o){var i,r=t.wa();return void 0!==r&&(Ii(i=[r[0]-o[0],r[1]-o[1]],e-t.Qa()),Ti(i,o)),i}function Lr(t,e,o){var i,r=t.wa();return t=t.Pa(),i=void 0!==r&&void 0!==t?[o[0]-e*(o[0]-r[0])/t,o[1]-e*(o[1]-r[1])/t]:i}function Rr(t){var e=[100,100];return t='.ol-viewport[data-view="'+G(t)+'"]',(t=document.querySelector(t))&&(t=getComputedStyle(t),e[0]=parseInt(t.width,10),e[1]=parseInt(t.height,10)),e}function Ir(t,e){return void 0!==e?(e[0]=t.o[0],e[1]=t.o[1],e):t.o.slice()}function Nr(t){return t.wa()&&void 0!==t.Pa()}function Fr(t,e,o){t.o[e]+=o,t.s()}function kr(t,e,o){this.f=t,this.c=e,this.g=o,this.b=[],this.a=this.i=0}function Dr(t){t.b.length=0,t.i=0,t.a=0}function Or(t){je.call(this),this.v=null,this.Ha(!0),this.handleEvent=t.handleEvent}function Ur(t,e,o,i){var r,n;void 0!==e&&(r=t.Qa(),n=t.wa(),void 0!==r&&n&&0<i?t.animate({rotation:e,anchor:o,duration:i,easing:eo}):t.rotate(e,o))}function Gr(t,e,o,i){var r,n=t.Pa();e=t.constrainResolution(n,e,0),o&&void 0!==e&&e!==n&&(r=t.wa(),o=Lr(t,e,o),o=t.Ec(o),o=[(e*r[0]-n*o[0])/(e-n),(e*r[1]-n*o[1])/(e-n)]),Br(t,e,o,i)}function Br(t,e,o,i){var r,n;e&&(r=t.Pa(),n=t.wa(),void 0!==r&&n&&e!==r&&i?t.animate({resolution:e,anchor:o,duration:i,easing:eo}):(o&&(o=Lr(t,e,o),t.ob(o)),t.Vc(e)))}function Xr(t){t=t||{},this.a=t.delta||1,Or.call(this,{handleEvent:Vr}),this.g=void 0!==t.duration?t.duration:250}function Vr(t){var e=!1,o=t.originalEvent;return"dblclick"==t.type&&(e=t.coordinate,o=o.shiftKey?-this.a:this.a,Gr(t.map.Z(),o,e,this.g),t.preventDefault(),e=!0),!e}function Wr(t){return(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}function Zr(t){return!((t=t.originalEvent).button||jo&&Co&&t.ctrlKey)}function Kr(t){return"pointermove"==t.type}function zr(t){return"singleclick"==t.type}function Yr(t){return!(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}function Hr(t){return!(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}function qr(t){return"INPUT"!==(t=t.originalEvent.target.tagName)&&"SELECT"!==t&&"TEXTAREA"!==t}function Jr(t){return O(t.b,56),"mouse"==t.b.pointerType}function _r(t){return(t=t.b).isPrimary&&0===t.button}function $r(t){Or.call(this,{handleEvent:(t=t||{}).handleEvent||tn}),this.yf=t.handleDownEvent||Gi,this.If=t.handleDragEvent||w,this.Jf=t.handleMoveEvent||w,this.sk=t.handleUpEvent||Gi,this.D=!1,this.na={},this.o=[]}function Qr(t){for(var e=t.length,o=0,i=0,r=0;r<e;r++)o+=t[r].clientX,i+=t[r].clientY;return[o/e,i/e]}function tn(t){if(!(t instanceof Ko))return!0;var e=!1,o=t.type;return"pointerdown"!==o&&"pointerdrag"!==o&&"pointerup"!==o||(o=t.b,"pointerup"==t.type?delete this.na[o.pointerId]:("pointerdown"==t.type||o.pointerId in this.na)&&(this.na[o.pointerId]=o),this.o=ut(this.na)),this.D?"pointerdrag"==t.type?this.If(t):"pointerup"==t.type&&(this.D=this.sk(t)&&0<this.o.length):"pointerdown"==t.type?(this.D=t=this.yf(t),e=this.Xc(t)):"pointermove"==t.type&&this.Jf(t),!e}function en(t){$r.call(this,{handleDownEvent:nn,handleDragEvent:on,handleUpEvent:rn}),t=t||{},this.a=t.kinetic,this.g=null,this.u=t.condition||Yr,this.j=!1}function on(t){var e,o,i=this.o,r=Qr(i);i.length==this.l?(this.a&&this.a.b.push(r[0],r[1],Date.now()),this.g&&(Ni(o=[o=this.g[0]-r[0],r[1]-this.g[1]],(e=(t=t.map.Z()).getState()).resolution),Ii(o,e.rotation),Ti(o,e.center),o=t.Ec(o),t.ob(o))):this.a&&Dr(this.a),this.g=r,this.l=i.length}function rn(t){var e,o,i,r=t.map;return t=r.Z(),this.o.length?(this.a&&Dr(this.a),!(this.g=null)):(!this.j&&this.a&&function(t){if(!(t.b.length<6)){var e=Date.now()-t.g,o=t.b.length-3;if(!(t.b[2+o]<e)){for(var i=o-3;0<i&&t.b[i+2]>e;)i-=3;if(!((e=t.b[2+o]-t.b[i+2])<1e3/60)){var r=t.b[o]-t.b[i],o=t.b[1+o]-t.b[i+1];return t.i=Math.atan2(o,r),t.a=Math.sqrt(r*r+o*o)/e,t.a>t.c}}}}(this.a)&&(e=((e=this.a).c-e.a)/e.f,o=this.a.i,i=t.wa(),i=r.Ja(i),r=r.Wa([i[0]-e*Math.cos(o),i[1]-e*Math.sin(o)]),t.animate({center:t.Ec(r),duration:500,easing:eo})),Fr(t,1,-1),!1)}function nn(t){if(0<this.o.length&&this.u(t)){var e=t.map.Z();return this.g=null,this.D||Fr(e,1,1),Ir(e)[0]&&e.ob(t.frameState.viewState.center),this.a&&Dr(this.a),this.j=1<this.o.length,!0}return!1}function sn(t){t=t||{},$r.call(this,{handleDownEvent:hn,handleDragEvent:an,handleUpEvent:pn}),this.g=t.condition||Wr,this.a=void 0,this.j=void 0!==t.duration?t.duration:250}function an(t){var e,o,i;!Jr(t)||(e=(o=t.map).Z()).g.rotation!==Mi&&(o=o.Ob(),t=t.pixel,t=Math.atan2(o[1]/2-t[1],t[0]-o[0]/2),void 0!==this.a&&(o=t-this.a,i=e.Qa(),Ur(e,i-o)),this.a=t)}function pn(t){if(!Jr(t))return!0;Fr(t=t.map.Z(),1,-1);var e=t.Qa(),o=this.j,e=t.constrainRotation(e,0);return Ur(t,e,void 0,o),!1}function hn(t){return!!(Jr(t)&&Zr(t)&&this.g(t))&&(Fr(t.map.Z(),1,1),!(this.a=void 0))}function ln(t){this.Gc=null,this.a=document.createElement("div"),this.a.style.position="absolute",this.a.className="ol-box "+t,this.i=this.c=this.b=null}function un(t){var e=t.c,o=t.i;(t=t.a.style).left=Math.min(e[0],o[0])+"px",t.top=Math.min(e[1],o[1])+"px",t.width=Math.abs(o[0]-e[0])+"px",t.height=Math.abs(o[1]-e[1])+"px"}function cn(t){var e=t.c,o=t.i;(e=[e,[e[0],o[1]],o,[o[0],e[1]]].map(t.b.Wa,t.b))[4]=e[0].slice(),t.Gc?t.Gc.ma([e]):t.Gc=new wr([e])}function fn(t){$r.call(this,{handleDownEvent:vn,handleDragEvent:gn,handleUpEvent:dn}),t=t||{},this.a=new ln(t.className||"ol-dragbox"),this.u=void 0!==t.minArea?t.minArea:64,this.g=null,this.C=t.condition||Ui,this.l=t.boxEndCondition||yn}function yn(t,e,o){return(t=o[0]-e[0])*t+(e=o[1]-e[1])*e>=this.u}function gn(t){var e,o;Jr(t)&&(e=this.a,o=t.pixel,e.c=this.g,e.i=o,cn(e),un(e),this.b(new xn(mn,t.coordinate,t)))}function dn(t){return!Jr(t)||(this.a.setMap(null),this.l(t,this.g,t.pixel)&&(this.j(t),this.b(new xn(wn,t.coordinate,t))),!1)}function vn(t){if(Jr(t)&&Zr(t)&&this.C(t)){this.g=t.pixel,this.a.setMap(t.map);var e=this.a,o=this.g;return e.c=this.g,e.i=o,cn(e),un(e),this.b(new xn(bn,t.coordinate,t)),!0}return!1}e(fi,Ae),(Au=fi.prototype).Jh=function(t){yi(this,t);var e,o=new Ko("pointerup",this.i,t);this.b(o),this.o||t.button||(e=(o=this).c,t=new Ko("click",o.i,e),o.b(t),o.j?(clearTimeout(o.j),o.j=0,t=new Ko("dblclick",o.i,e),o.b(t)):o.j=setTimeout(function(){this.j=0;var t=new Ko("singleclick",this.i,e);this.b(t)}.bind(o),250)),this.S||(this.f.forEach(me),this.f.length=0,this.o=!1,this.c=null,Se(this.a),this.a=null)},Au.Ol=function(t){yi(this,t);var e=new Ko("pointerdown",this.i,t);this.b(e),this.c=t,this.f.length||(this.a=new ri(document),this.f.push(de(this.a,"pointermove",this.Hm,this),de(this.a,"pointerup",this.Jh,this),de(this.g,"pointercancel",this.Jh,this)))},Au.Hm=function(t){var e;gi(this,t)&&(this.o=!0,e=new Ko("pointerdrag",this.i,t,this.o),this.b(e)),t.preventDefault()},Au.Lp=function(t){this.b(new Ko(t.type,this.i,t,!(!this.c||!gi(this,t))))},Au.ka=function(){this.v&&(me(this.v),this.v=null),this.l&&(me(this.l),this.l=null),this.f.forEach(me),this.f.length=0,this.a&&(Se(this.a),this.a=null),this.g&&(Se(this.g),this.g=null),Ae.prototype.ka.call(this)},di.prototype.clear=function(){this.b.length=0,this.i.length=0,lt(this.a)},di.prototype.f=function(t){O(!(this.c(t)in this.a),31);var e=this.l(t);return 1/0!=e&&(this.b.push(t),this.i.push(e),this.a[this.c(t)]=!0,mi(this,0,this.b.length-1),!0)},e(xi,di),xi.prototype.f=function(t){var e=di.prototype.f.call(this,t);return e&&de(t[0],"change",this.o,this),e},xi.prototype.o=function(t){var e=(t=t.target).getState();2!==e&&3!==e&&4!==e&&5!==e||(be(t,"change",this.o,this),(t=t.bb())in this.g&&(delete this.g[t],--this.j),this.v())},e(Bi,je),(Au=Bi.prototype).Ab=function(t,e){return e=e||[NaN,NaN],this.Kb(t[0],t[1],e,1/0),e},Au.sb=function(t){return this.Mc(t[0],t[1])},Au.Mc=Gi,Au.G=function(t){this.v!=this.i&&(this.l=this.se(this.l),this.v=this.i);var e=this.l;return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]):t=e,t},Au.Rb=function(t){return this.Vd(t*t)},Au.tb=function(t,e){return this.Dc(Vt(t,e)),this},e(Wi,Bi),(Au=Wi.prototype).Mc=Gi,Au.se=function(t){return W(this.A,0,this.A.length,this.a,t)},Au.ac=function(){return this.A.slice(0,this.a)},Au.ga=function(){return this.A},Au.bc=function(){return this.A.slice(this.A.length-this.a)},Au.cc=function(){return this.ja},Au.Vd=function(t){if(this.o!=this.i&&(lt(this.f),this.g=0,this.o=this.i),t<0||this.g&&t<=this.g)return this;var e=t.toString();if(this.f.hasOwnProperty(e))return this.f[e];var o=this.hd(t);return o.ga().length<this.A.length?this.f[e]=o:(this.g=t,this)},Au.hd=function(){return this},Au.qa=function(){return this.a},Au.Dc=function(t){this.A&&(t(this.A,this.A,this.a),this.s())},Au.rotate=function(t,e){var o=this.ga();if(o){var i=o.length,r=this.qa(),n=o||[],s=Math.cos(t);t=Math.sin(t);var a=e[0];e=e[1];for(var p=0,h=0;h<i;h+=r){var l=o[h]-a,u=o[h+1]-e;for(n[p++]=a+l*s-u*t,n[p++]=e+l*t+u*s,l=h+2;l<h+r;++l)n[p++]=o[l]}o&&n.length!=p&&(n.length=p),this.s()}},Au.scale=function(t,e,o){var i=e;if(void 0===i&&(i=t),a=(a=o)||$(this.G()),o=this.ga()){e=o.length;for(var r=this.qa(),n=o||[],s=a[0],a=a[1],p=0,h=0;h<e;h+=r){var l=o[h]-s,u=o[h+1]-a;for(n[p++]=s+t*l,n[p++]=a+i*u,l=h+2;l<h+r;++l)n[p++]=o[l]}o&&n.length!=p&&(n.length=p),this.s()}},Au.translate=function(t,e){var o=this.ga();o&&(Vi(o,0,o.length,this.qa(),t,e,o),this.s())},e(ar,Wi),(Au=ar.prototype).clone=function(){var t=new ar(null);return pr(t,this.ja,this.A.slice()),t},Au.Kb=function(t,e,o,i){return i<E(this.G(),t,e)?i:(this.c!=this.i&&(this.j=Math.sqrt(Ji(this.A,0,this.A.length,this.a,0)),this.c=this.i),$i(this.A,0,this.A.length,this.a,this.j,!0,t,e,o,i))},Au.qn=function(){return Yi(this.A,0,this.A.length,this.a)},Au.X=function(){return ir(this.A,0,this.A.length,this.a)},Au.hd=function(t){var e=[];return e.length=nr(this.A,0,this.A.length,this.a,t,e,0),pr(t=new ar(null),"XY",e),t},Au.U=function(){return"LinearRing"},Au.Xa=function(){},Au.ma=function(t,e){t?(zi(this,e,t,1),this.A||(this.A=[]),this.A.length=er(this.A,0,t,this.a),this.s()):pr(this,"XY",null)},e(hr,Wi),(Au=hr.prototype).clone=function(){var t=new hr(null);return t.ba(this.ja,this.A.slice()),t},Au.Kb=function(t,e,o,i){var r=this.A;if((t=y(t,e,r[0],r[1]))<i){for(i=this.a,e=0;e<i;++e)o[e]=r[e];return o.length=i,t}return i},Au.X=function(){return this.A?this.A.slice():[]},Au.se=function(t){return k(this.A,t)},Au.U=function(){return"Point"},Au.Xa=function(t){return j(t,this.A[0],this.A[1])},Au.ma=function(t,e){t?(zi(this,e,t,0),this.A||(this.A=[]),this.A.length=tr(this.A,t),this.s()):this.ba("XY",null)},Au.ba=function(t,e){Ki(this,t,e),this.s()},e(wr,Wi),(Au=wr.prototype).pk=function(t){this.A?c(this.A,t.ga()):this.A=t.ga().slice(),this.c.push(this.A.length),this.s()},Au.clone=function(){var t=new wr(null);return t.ba(this.ja,this.A.slice(),this.c.slice()),t},Au.Kb=function(t,e,o,i){return i<E(this.G(),t,e)?i:(this.C!=this.i&&(this.B=Math.sqrt(_i(this.A,0,this.c,this.a,0)),this.C=this.i),Qi(this.A,0,this.c,this.a,this.B,!0,t,e,o,i))},Au.Mc=function(t,e){return ur(this.ec(),0,this.c,this.a,t,e)},Au.tn=function(){return Hi(this.ec(),0,this.c,this.a)},Au.X=function(t){var e;return void 0!==t?br(e=this.ec().slice(),0,this.c,this.a,t):e=this.A,rr(e,0,this.c,this.a)},Au.Bb=function(){return this.c},Au.Tk=function(){return new hr(xr(this))},Au.Zk=function(){return this.c.length},Au.Ch=function(t){if(t<0||this.c.length<=t)return null;var e=new ar(null);return pr(e,this.ja,this.A.slice(t?this.c[t-1]:0,this.c[t])),e},Au.Sd=function(){for(var t=this.ja,e=this.A,o=this.c,i=[],r=0,n=0,s=o.length;n<s;++n){var a=o[n],p=new ar(null);pr(p,t,e.slice(r,a)),i.push(p),r=a}return i},Au.ec=function(){var t;return this.I!=this.i&&(vr(t=this.A,this.c,this.a)?this.j=t:(this.j=t.slice(),this.j.length=br(this.j,0,this.c,this.a)),this.I=this.i),this.j},Au.hd=function(t){var e=[],o=[];return e.length=sr(this.A,0,this.c,this.a,Math.sqrt(t),e,0,o),(t=new wr(null)).ba("XY",e,o),t},Au.U=function(){return"Polygon"},Au.Xa=function(t){return gr(this.ec(),0,this.c,this.a,t)},Au.ma=function(t,e){t?(zi(this,e,t,2),this.A||(this.A=[]),t=or(this.A,0,t,this.a,this.c),this.A.length=t.length?t[t.length-1]:0,this.s()):this.ba("XY",null,this.c)},Au.ba=function(t,e,o){Ki(this,t,e),this.c=o,this.s()},e(Er,je),(Au=Er.prototype).animate=function(t){var e,o=Date.now(),i=this.wa().slice(),r=this.Pa(),n=this.Qa(),s=arguments.length;1<s&&"function"==typeof arguments[s-1]&&(e=arguments[s-1],--s);for(var a=[],p=0;p<s;++p){var h=arguments[p],l={start:o,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||oo};h.center&&(l.Rg=i,l.Tg=h.center,i=l.Tg),void 0!==h.zoom?(l.tf=r,l.zd=this.constrainResolution(this.a,h.zoom-this.l,0),r=l.zd):h.resolution&&(l.tf=r,l.zd=h.resolution,r=l.zd),void 0!==h.rotation&&(l.Sg=n,l.uf=h.rotation,n=l.uf),l.callback=e,o+=l.duration,a.push(l)}this.c.push(a),Fr(this,0,1),this.wf()},Au.Ic=function(){return 0<Ir(this)[0]},Au.Rk=function(){return 0<Ir(this)[1]},Au.ed=function(){Fr(this,0,-Ir(this)[0]);for(var t=0,e=this.c.length;t<e;++t){var o=this.c[t];o[0].callback&&o[0].callback(!1)}this.c.length=0},Au.wf=function(){if(void 0!==this.u&&(cancelAnimationFrame(this.u),this.u=void 0),this.Ic()){for(var t=Date.now(),e=!1,o=this.c.length-1;0<=o;--o){for(var i=this.c[o],r=!0,n=0,s=i.length;n<s;++n){var a=i[n];if(!a.complete){var p,h,e=t-a.start;if(1<=(e=0<a.duration?e/a.duration:1)?(a.complete=!0,e=1):r=!1,e=a.easing(e),a.Rg&&(p=a.Rg[0],h=a.Rg[1],this.set("center",[p+e*(a.Tg[0]-p),h+e*(a.Tg[1]-h)])),a.tf&&a.zd&&(p=1===e?a.zd:a.tf+e*(a.zd-a.tf),a.anchor&&this.set("center",Lr(this,p,a.anchor)),this.set("resolution",p)),void 0!==a.Sg&&void 0!==a.uf&&(e=1===e?a.uf:a.Sg+e*(a.uf-a.Sg),a.anchor&&this.set("center",Cr(this,e,a.anchor)),this.set("rotation",e)),e=!0,!a.complete)break}}r&&(this.c[o]=null,Fr(this,0,-1),(i=i[0].callback)&&i(!0))}this.c=this.c.filter(Boolean),e&&void 0===this.u&&(this.u=requestAnimationFrame(this.wf))}},Au.Ec=function(t){return this.g.center(t)},Au.constrainResolution=function(t,e,o){return this.g.resolution(t,e||0,o||0)},Au.constrainRotation=function(t,e){return this.g.rotation(t,e||0)},Au.wa=function(){return this.get("center")},Au.dd=function(t){t=t||Rr(this);var e=this.wa();O(e,1);var o=this.Pa();O(void 0!==o,2);var i=this.Qa();return O(void 0!==i,3),Q(e,o,i,t)},Au.Nm=function(){return this.a},Au.Pm=function(){return this.f},Au.Om=function(){return this.Ce(this.f)},Au.eq=function(t){Tr(this,jr(this,{maxZoom:t}))},Au.Qm=function(){return this.Ce(this.a)},Au.fq=function(t){Tr(this,jr(this,{minZoom:t}))},Au.Rm=function(){return this.v},Au.Pa=function(){return this.get("resolution")},Au.Sm=function(){return this.j},Au.ze=function(t,e){return e=e||Rr(this),Math.max(rt(t)/e[0],tt(t)/e[1])},Au.Qa=function(){return this.get("rotation")},Au.getState=function(){var t=this.wa(),e=this.v,o=this.Pa(),i=this.Qa();return{center:t.slice(),projection:void 0!==e?e:null,resolution:o,rotation:i}},Au.Hh=function(){var t,e=this.Pa();return t=void 0!==e?this.Ce(e):t},Au.Ce=function(t){if(t>=this.f&&t<=this.a){var e=this.l||0;if(this.j){if(e+=i=v(this.j,t,1),i==this.j.length-1)return e;var o=this.j[i],i=o/this.j[i+1]}else o=this.a,i=this.C;e+=Math.log(o/t)/Math.log(i)}return e},Au.Qf=function(t,e){var o=(o=(e=e||{}).size)||Rr(this);t instanceof Wi?"Circle"===t.U()?(f=Mr(t=t.G())).rotate(this.Qa(),$(t)):f=t:(O(Array.isArray(t),24),O(!st(t),25),f=Mr(t));var i=e.padding||[0,0,0,0],r=void 0===e.constrainResolution||e.constrainResolution,n=void 0!==e.nearest&&e.nearest,s=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.constrainResolution(this.a,e.maxZoom-this.l,0):0,a=f.ga(),p=this.Qa();t=Math.cos(-p);for(var p=Math.sin(-p),h=1/0,l=1/0,u=-1/0,c=-1/0,f=f.qa(),y=0,g=a.length;y<g;y+=f)var d=a[y]*t-a[y+1]*p,v=a[y]*p+a[y+1]*t,h=Math.min(h,d),l=Math.min(l,v),u=Math.max(u,d),c=Math.max(c,v);o=this.ze([h,l,u,c],[o[0]-i[1]-i[3],o[1]-i[0]-i[2]]),o=isNaN(o)?s:Math.max(o,s),r&&(s=this.constrainResolution(o,0,0),o=s=!n&&s<o?this.constrainResolution(s,-1,0):s),p=-p,t=[(s=(h+u)/2+(i[1]-i[3])/2*o)*t-(i=(l+c)/2+(i[0]-i[2])/2*o)*p,i*t+s*p],i=e.callback||w,void 0!==e.duration?this.animate({resolution:o,center:t,duration:e.duration,easing:e.easing},i):(this.Vc(o),this.ob(t),setTimeout(i.bind(void 0,!0),0))},Au.uk=function(t,e,o){var i=this.Qa(),r=Math.cos(-i),i=Math.sin(-i),n=t[0]*r-t[1]*i;t=t[1]*r+t[0]*i;var s=this.Pa(),n=n+(e[0]/2-o[0])*s;t+=(o[1]-e[1]/2)*s,i=-i,this.ob([n*r-t*i,t*r+n*i])},Au.rotate=function(t,e){void 0!==e&&(e=Cr(this,t,e),this.ob(e)),this.Oe(t)},Au.ob=function(t){this.set("center",t),this.Ic()&&this.ed()},Au.Vc=function(t){this.set("resolution",t),this.Ic()&&this.ed()},Au.Oe=function(t){this.set("rotation",t),this.Ic()&&this.ed()},Au.lq=function(t){t=this.constrainResolution(this.a,t-this.l,0),this.Vc(t)},e(Or,je),Or.prototype.c=function(){return this.get("active")},Or.prototype.f=function(){return this.v},Or.prototype.Ha=function(t){this.set("active",t)},Or.prototype.setMap=function(t){this.v=t},e(Xr,Or),e($r,Or),$r.prototype.Xc=function(t){return t},e(en,$r),en.prototype.Xc=Gi,e(sn,$r),sn.prototype.Xc=Gi,e(ln,xe),ln.prototype.ka=function(){this.setMap(null)},ln.prototype.setMap=function(t){var e;this.b&&(this.b.C.removeChild(this.a),(e=this.a.style).left=e.top=e.width=e.height="inherit"),(this.b=t)&&this.b.C.appendChild(this.a)},ln.prototype.V=function(){return this.Gc},e(fn,$r),fn.prototype.V=function(){return this.a.V()},fn.prototype.j=w;var bn="boxstart",mn="boxdrag",wn="boxend";function xn(t,e,o){Me.call(this,t),this.coordinate=e,this.mapBrowserEvent=o}function Sn(t){var e=(t=t||{}).condition||Hr;this.B=void 0!==t.duration?t.duration:200,this.I=void 0!==t.out&&t.out,fn.call(this,{condition:e,className:t.className||"ol-dragzoom"})}function Mn(t){Or.call(this,{handleEvent:Pn}),t=t||{},this.a=function(t){return Yr(t)&&qr(t)},this.g=t.condition||this.a,this.j=void 0!==t.duration?t.duration:100,this.o=void 0!==t.pixelDelta?t.pixelDelta:128}function Pn(t){var e,o,i,r,n=!1;return"keydown"==t.type&&(e=t.originalEvent.keyCode,!this.g(t)||40!=e&&37!=e&&39!=e&&38!=e||(o=(n=t.map.Z()).Pa()*this.o,r=i=0,40==e?r=-o:37==e?i=-o:39==e?i=o:r=o,Ii(o=[i,r],n.Qa()),e=this.j,(i=n.wa())&&(o=n.Ec([i[0]+o[0],i[1]+o[1]]),e?n.animate({duration:e,easing:io,center:o}):n.ob(o)),t.preventDefault(),n=!0)),!n}function An(t){Or.call(this,{handleEvent:En}),t=t||{},this.g=t.condition||qr,this.a=t.delta||1,this.j=void 0!==t.duration?t.duration:100}function En(t){var e,o=!1;return"keydown"!=t.type&&"keypress"!=t.type||(e=t.originalEvent.charCode,!this.g(t)||43!=e&&45!=e||(o=43==e?this.a:-this.a,Gr(e=t.map.Z(),o,void 0,this.j),t.preventDefault(),o=!0)),!o}function Tn(t){Or.call(this,{handleEvent:jn}),t=t||{},this.j=0,this.D=void 0!==t.duration?t.duration:250,this.na=void 0!==t.timeout?t.timeout:80,this.C=void 0===t.useAnchor||t.useAnchor,this.R=t.constrainResolution||!1,this.a=null,this.l=this.o=this.u=this.g=void 0}function jn(t){if("wheel"!==(o=t.type)&&"mousewheel"!==o)return!0;t.preventDefault();var e,o=t.map,i=t.originalEvent;if(this.C&&(this.a=t.coordinate),"wheel"==t.type?(e=i.deltaY,Eo&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=Lo),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)):"mousewheel"==t.type&&(e=-i.wheelDeltaY,To&&(e/=3)),0===e)return!1;if(t=Date.now(),void 0===this.g&&(this.g=t),(!this.o||400<t-this.g)&&(this.o=Math.abs(e)<4?Cn:Ln),this.o!==Cn)return this.j+=e,e=Math.max(this.na-(t-this.g),0),clearTimeout(this.u),this.u=setTimeout(this.I.bind(this,o),e),!1;o=o.Z(),this.l?clearTimeout(this.l):Fr(o,1,1),this.l=setTimeout(this.B.bind(this),400);var r,i=o.Pa()*Math.pow(2,e/300),n=o.f,s=o.a,a=0;return i<n?(i=Math.max(i,n/1.5),a=1):s<i&&(i=Math.min(i,1.5*s),a=-1),this.a&&(r=Lr(o,i,this.a),o.ob(o.Ec(r))),o.Vc(i),!a&&this.R&&o.animate({resolution:o.constrainResolution(i,0<e?-1:1),easing:eo,anchor:this.a,duration:this.D}),0<a?o.animate({resolution:n,easing:eo,anchor:this.a,duration:500}):a<0&&o.animate({resolution:s,easing:eo,anchor:this.a,duration:500}),this.g=t,!1}e(xn,Me),e(Sn,fn),Sn.prototype.j=function(){var t=(r=this.v).Z(),e=r.Ob(),o=this.V().G();if(this.I){for(var i=t.dd(e),o=[r.Ja(J(o)),r.Ja(it(o))],r=I(void 0),n=0,s=o.length;n<s;++n)z(r,o[n]);at(i,1/(o=t.ze(r,e))),o=i}e=t.constrainResolution(t.ze(o,e)),i=$(o),i=t.Ec(i),t.animate({resolution:e,center:i,duration:this.B,easing:eo})},e(Mn,Or),e(An,Or),e(Tn,Or),Tn.prototype.B=function(){this.l=void 0,Fr(this.v.Z(),1,-1)},Tn.prototype.I=function(t){(t=t.Z()).Ic()&&t.ed(),Gr(t,-x(this.j,-1,1),this.a,this.D),this.o=void 0,this.j=0,this.a=null,this.u=this.g=void 0},Tn.prototype.T=function(t){(this.C=t)||(this.a=null)};var Cn="trackpad",Ln="wheel";function Rn(t){$r.call(this,{handleDownEvent:Fn,handleDragEvent:In,handleUpEvent:Nn}),t=t||{},this.g=null,this.j=void 0,this.a=!1,this.l=0,this.C=void 0!==t.threshold?t.threshold:.3,this.u=void 0!==t.duration?t.duration:250}function In(t){var e,o=0,i=this.o[0],r=this.o[1],i=Math.atan2(r.clientY-i.clientY,r.clientX-i.clientX);void 0!==this.j&&(o=i-this.j,this.l+=o,!this.a&&Math.abs(this.l)>this.C&&(this.a=!0)),this.j=i,(i=(t=t.map).Z()).g.rotation!==Mi&&(r=t.a.getBoundingClientRect(),(e=Qr(this.o))[0]-=r.left,e[1]-=r.top,this.g=t.Wa(e),this.a&&(r=i.Qa(),t.render(),Ur(i,r+o,this.g)))}function Nn(t){var e,o,i;return!(this.o.length<2)||(Fr(t=t.map.Z(),1,-1),this.a&&(i=t.Qa(),e=this.g,o=this.u,i=t.constrainRotation(i,0),Ur(t,i,e,o)),!1)}function Fn(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.j=void 0,this.a=!1,this.l=0,this.D||Fr(t.Z(),1,1),!0)}function kn(t){$r.call(this,{handleDownEvent:Un,handleDragEvent:Dn,handleUpEvent:On}),t=t||{},this.l=t.constrainResolution||!1,this.g=null,this.u=void 0!==t.duration?t.duration:400,this.a=void 0,this.j=1}function Dn(t){var e=1,o=this.o[0],i=this.o[1],r=o.clientX-i.clientX,o=o.clientY-i.clientY,r=Math.sqrt(r*r+o*o);void 0!==this.a&&(e=this.a/r),this.a=r;var i=(r=(t=t.map).Z()).Pa(),n=r.a,s=r.f;n<(o=i*e)?(e=n/i,o=n):o<s&&(e=s/i,o=s),1!=e&&(this.j=e),e=t.a.getBoundingClientRect(),(i=Qr(this.o))[0]-=e.left,i[1]-=e.top,this.g=t.Wa(i),t.render(),Br(r,o,this.g)}function On(t){if(this.o.length<2){Fr(t=t.map.Z(),1,-1);var e,o,i=t.Pa();return(this.l||i<t.f||i>t.a)&&(e=this.g,o=this.u,i=t.constrainResolution(i,0,this.j-1),Br(t,i,e,o)),!1}return!0}function Un(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.a=void 0,this.j=1,this.D||Fr(t.Z(),1,1),!0)}function Gn(t){t=t||{};var e=new Ne,o=new kr(-.005,.05,100);return void 0!==t.altShiftDragRotate&&!t.altShiftDragRotate||e.push(new sn),void 0!==t.doubleClickZoom&&!t.doubleClickZoom||e.push(new Xr({delta:t.zoomDelta,duration:t.zoomDuration})),void 0!==t.dragPan&&!t.dragPan||e.push(new en({kinetic:o})),void 0!==t.pinchRotate&&!t.pinchRotate||e.push(new Rn),void 0!==t.pinchZoom&&!t.pinchZoom||e.push(new kn({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.keyboard&&!t.keyboard||(e.push(new Mn),e.push(new An({delta:t.zoomDelta,duration:t.zoomDuration}))),void 0!==t.mouseWheelZoom&&!t.mouseWheelZoom||e.push(new Tn({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.shiftDragZoom&&!t.shiftDragZoom||e.push(new Sn({duration:t.zoomDuration})),e}function Bn(t){je.call(this);var e=ht({},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,Je:!0}}function Xn(t){return t.a.opacity=x(t.hc(),0,1),t.a.yj=t.$f(),t.a.visible=t.Mb(),t.a.extent=t.G(),t.a.zIndex=t.Ba(),t.a.maxResolution=t.fc(),t.a.minResolution=Math.max(t.gc(),0),t.a}function Vn(t){var e=t||{};delete(t=ht({},e)).layers,e=e.layers,Bn.call(this,t),this.f=[],this.c={},de(this,Le(Wn),this.Hl,this),e?Array.isArray(e)?e=new Ne(e.slice(),{unique:!0}):O(e instanceof Ne,43):e=new Ne(void 0,{unique:!0}),this.xi(e)}e(Rn,$r),Rn.prototype.Xc=Gi,e(kn,$r),kn.prototype.Xc=Gi,e(Bn,je),(Au=Bn.prototype).G=function(){return this.get("extent")},Au.fc=function(){return this.get("maxResolution")},Au.gc=function(){return this.get("minResolution")},Au.hc=function(){return this.get("opacity")},Au.Mb=function(){return this.get("visible")},Au.Ba=function(){return this.get("zIndex")},Au.vc=function(t){this.set("extent",t)},Au.Ac=function(t){this.set("maxResolution",t)},Au.Bc=function(t){this.set("minResolution",t)},Au.wc=function(t){this.set("opacity",t)},Au.xc=function(t){this.set("visible",t)},Au.Vb=function(t){this.set("zIndex",t)},e(Vn,Bn),(Au=Vn.prototype).Fd=function(){},Au.Fe=function(){this.Mb()&&this.s()},Au.Hl=function(){this.f.forEach(me),this.f.length=0;var t=this.qd();for(e in this.f.push(de(t,"add",this.Gl,this),de(t,"remove",this.Il,this)),this.c)this.c[e].forEach(me);lt(this.c);for(var e=0,o=(t=t.a).length;e<o;e++){var i=t[e];this.c[G(i).toString()]=[de(i,"propertychange",this.Fe,this),de(i,"change",this.Fe,this)]}this.s()},Au.Gl=function(t){var e=G(t=t.element).toString();this.c[e]=[de(t,"propertychange",this.Fe,this),de(t,"change",this.Fe,this)],this.s()},Au.Il=function(t){t=G(t.element).toString(),this.c[t].forEach(me),delete this.c[t],this.s()},Au.qd=function(){return this.get(Wn)},Au.xi=function(t){this.set(Wn,t)},Au.Yf=function(t){var e,o=void 0!==t?t:[],i=o.length;for(this.qd().forEach(function(t){t.Yf(o)}),t=Xn(this),e=o.length;i<e;i++){var r=o[i];r.opacity*=t.opacity,r.visible=r.visible&&t.visible,r.maxResolution=Math.min(r.maxResolution,t.maxResolution),r.minResolution=Math.max(r.minResolution,t.minResolution),void 0!==t.extent&&(r.extent=void 0!==r.extent?et(r.extent,t.extent):t.extent)}return o},Au.$f=function(){return"ready"};var Wn="layers";function Zn(t){var e=ht({},t);delete e.source,Bn.call(this,e),this.v=this.l=this.o=null,t.map&&this.setMap(t.map),de(this,Le("source"),this.Ul,this),this.Wc(t.source||null)}function Kn(t,e){return t.visible&&e>=t.minResolution&&e<t.maxResolution}function zn(){this.b={},this.a=0}e(Zn,Bn),(Au=Zn.prototype).Yf=function(t){return(t=t||[]).push(Xn(this)),t},Au.ha=function(){return this.get("source")||null},Au.$f=function(){var t=this.ha();return t?t.getState():"undefined"},Au.Tn=function(){this.s()},Au.Ul=function(){this.v&&(me(this.v),this.v=null);var t=this.ha();t&&(this.v=de(t,"change",this.Tn,this)),this.s()},Au.setMap=function(t){this.o&&(me(this.o),this.o=null),t||this.s(),this.l&&(me(this.l),this.l=null),t&&(this.o=de(t,"precompose",function(t){var e=Xn(this);e.Je=!1,e.zIndex=1/0,t.frameState.layerStatesArray.push(e),t.frameState.layerStates[G(this)]=e},this),this.l=de(this,"change",t.render,t),this.s())},Au.Wc=function(t){this.set("source",t)},zn.prototype.clear=function(){this.b={},this.a=0},zn.prototype.get=function(t,e,o){return(t=e+":"+t+":"+(o?Xe(o):"null"))in this.b?this.b[t]:null},zn.prototype.set=function(t,e,o,i){this.b[e+":"+t+":"+(o?Xe(o):"null")]=i,++this.a};var Yn=new zn,Hn=Array(6);function qn(){return[1,0,0,1,0,0]}function Jn(t){return $n(t,1,0,0,1,0,0)}function _n(t,e){var o=t[0],i=t[1],r=t[2],n=t[3],s=t[4],a=t[5],p=e[0],h=e[1],l=e[2],u=e[3],c=e[4];return e=e[5],t[0]=o*p+r*h,t[1]=i*p+n*h,t[2]=o*l+r*u,t[3]=i*l+n*u,t[4]=o*c+r*e+s,t[5]=i*c+n*e+a,t}function $n(t,e,o,i,r,n,s){return t[0]=e,t[1]=o,t[2]=i,t[3]=r,t[4]=n,t[5]=s,t}function Qn(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 ts(t,e){var o=e[0],i=e[1];return e[0]=t[0]*o+t[2]*i+t[4],e[1]=t[1]*o+t[3]*i+t[5],e}function es(t,e){var o=Math.cos(e);e=Math.sin(e),_n(t,$n(Hn,o,e,-e,o,0,0))}function os(t,e,o){return _n(t,$n(Hn,e,0,0,o,0,0))}function is(t,e,o){_n(t,$n(Hn,1,0,0,1,e,o))}function rs(t,e,o,i,r,n,s,a){var p=Math.sin(n);return n=Math.cos(n),t[0]=i*n,t[1]=r*p,t[2]=-i*p,t[3]=r*n,t[4]=s*i*n-a*i*p+e,t[5]=s*r*p+a*r*n+o,t}function ns(t){var e=t[0]*t[3]-t[1]*t[2];O(!!e,32);var o=t[0],i=t[1],r=t[2],n=t[3],s=t[4],a=t[5];return t[0]=n/e,t[1]=-i/e,t[2]=-r/e,t[3]=o/e,t[4]=(r*a-n*s)/e,t[5]=-(o*a-i*s)/e,t}function ss(t,e){this.o=e,this.c={},this.v={}}function as(t){var e=t.viewState,o=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;rs(o,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),ns(Qn(i,o))}function ps(){if(32<Yn.a){var t,e=0;for(t in Yn.b){var o=Yn.b[t];3&e++||Ee(o)||(delete Yn.b[t],--Yn.a)}}}function hs(t,e){var o=G(e).toString();return o in t.c?t.c[o]:(e=e.Fd(t),t.c[o]=e,t.v[o]=de(e,"change",t.Fl,t),e)}function ls(t,e){for(var o in t.c)if(!(o in e.layerStates)){e.postRenderFunctions.push(t.Rp.bind(t));break}}function us(t,e){return t.zIndex-e.zIndex}function cs(t,e,o,i,r){Me.call(this,t),this.vectorContext=e,this.frameState=o,this.context=i,this.glContext=r}e(ss,xe),(Au=ss.prototype).ka=function(){for(var t in this.c)Se(this.c[t])},Au.Ea=function(t,r,e,n,s,o,i){function a(t,e){var o=G(t).toString(),i=r.layerStates[G(e)].Je;if(!(o in r.skippedFeatureUids)||i)return n.call(s,t,i?e:null)}var p,h,l=(c=r.viewState).resolution,u=c.projection,c=t;for(u.i&&(h=rt(u=u.G()),((y=t[0])<u[0]||y>u[2])&&(c=[y+h*Math.ceil((u[0]-y)/h),t[1]])),h=(u=r.layerStatesArray).length-1;0<=h;--h){var f=u[h],y=f.layer;if(Kn(f,l)&&o.call(i,y)&&(f=hs(this,y),p=y.ha()?f.Ea(y.ha().u?c:t,r,e,a,s):p))return p}},Au.Ei=function(t,e,o,i,r){return void 0!==this.Ea(t,e,o,Ui,this,i,r)},Au.Fl=function(){this.o.render()},Au.Jg=w,Au.Rp=function(t,e){for(var o in this.c)e&&o in e.layerStates||(t=o,o=this.c[t],delete this.c[t],me(this.v[t]),delete this.v[t],Se(o))},e(cs,Me);var fs=[0,0,0,1],ys=[],gs=[0,0,0,1];function ds(t,e,o,i){e&&(t.translate(o,i),t.rotate(e),t.translate(-o,-i))}function vs(){}function bs(t,e,o,i,r){this.i=t,this.u=e,this.c=o,this.S=i,this.Yb=r,this.M=this.b=this.a=this.Ua=this.R=this.I=null,this.na=this.T=this.l=this.B=this.C=this.D=0,this.fa=!1,this.f=this.fb=0,this.pa=!1,this.oa=0,this.Ia="",this.va=this.Jb=0,this.Sa=!1,this.j=this.$a=0,this.ra=this.o=this.g=null,this.v=[],this.xb=qn()}function ms(t,e,o){if(t.M){e=Xi(e,0,o,2,t.S,t.v),o=t.i;var i=t.xb,r=o.globalAlpha;1!=t.l&&(o.globalAlpha=r*t.l);var n=t.fb;t.fa&&(n+=t.Yb);for(var s=0,a=e.length;s<a;s+=2){var p,h,l=e[s]-t.D,u=e[s+1]-t.C;t.pa&&(l=Math.round(l),u=Math.round(u)),!n&&1==t.f||(rs(i,p=l+t.D,h=u+t.C,t.f,t.f,n,-p,-h),o.setTransform.apply(o,i)),o.drawImage(t.M,t.T,t.na,t.oa,t.B,l,u,t.oa,t.B)}!n&&1==t.f||o.setTransform(1,0,0,1,0,0),1!=t.l&&(o.globalAlpha=r)}}function ws(t,e,o,i){var r=0;if(t.ra&&""!==t.Ia){t.g&&Ms(t,t.g),t.o&&Ps(t,t.o);var n=t.ra,s=t.i;for((p=t.Ua)?(p.font!=n.font&&(p.font=s.font=n.font),p.textAlign!=n.textAlign&&(p.textAlign=s.textAlign=n.textAlign),p.textBaseline!=n.textBaseline&&(p.textBaseline=s.textBaseline=n.textBaseline)):(s.font=n.font,s.textAlign=n.textAlign,s.textBaseline=n.textBaseline,t.Ua={font:n.font,textAlign:n.textAlign,textBaseline:n.textBaseline}),e=Xi(e,r,o,i,t.S,t.v),n=t.i,s=t.$a,t.Sa&&(s+=t.Yb);r<o;r+=i){var a,p=e[r]+t.Jb,h=e[r+1]+t.va;!s&&1==t.j||(a=rs(t.xb,p,h,t.j,t.j,s,-p,-h),n.setTransform.apply(n,a)),t.o&&n.strokeText(t.Ia,p,h),t.g&&n.fillText(t.Ia,p,h)}!s&&1==t.j||n.setTransform(1,0,0,1,0,0)}}function xs(t,e,o,i,r,n){var s=t.i;for(t=Xi(e,o,i,r,t.S,t.v),s.moveTo(t[0],t[1]),e=t.length,n&&(e-=2),o=2;o<e;o+=2)s.lineTo(t[o],t[o+1]);return n&&s.closePath(),i}function Ss(t,e,o,i,r){for(var n=0,s=i.length;n<s;++n)o=xs(t,e,o,i[n],r,!0);return o}function Ms(t,e){var o=t.i,i=t.I;i?i.fillStyle!=e.fillStyle&&(i.fillStyle=o.fillStyle=e.fillStyle):(o.fillStyle=e.fillStyle,t.I={fillStyle:e.fillStyle})}function Ps(t,e){var o=t.i,i=t.R;i?(i.lineCap!=e.lineCap&&(i.lineCap=o.lineCap=e.lineCap),Ro&&!U(i.lineDash,e.lineDash)&&o.setLineDash(i.lineDash=e.lineDash),i.lineJoin!=e.lineJoin&&(i.lineJoin=o.lineJoin=e.lineJoin),i.lineWidth!=e.lineWidth&&(i.lineWidth=o.lineWidth=e.lineWidth),i.miterLimit!=e.miterLimit&&(i.miterLimit=o.miterLimit=e.miterLimit),i.strokeStyle!=e.strokeStyle&&(i.strokeStyle=o.strokeStyle=e.strokeStyle)):(o.lineCap=e.lineCap,Ro&&o.setLineDash(e.lineDash),o.lineJoin=e.lineJoin,o.lineWidth=e.lineWidth,o.miterLimit=e.miterLimit,o.strokeStyle=e.strokeStyle,t.R={lineCap:e.lineCap,lineDash:e.lineDash,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle})}function As(t,e){ss.call(this,0,e),this.i=Ye(),this.b=this.i.canvas,this.b.style.width="100%",this.b.style.height="100%",this.b.style.display="block",this.b.className="ol-unselectable",t.insertBefore(this.b,t.childNodes[0]||null),this.a=!0,this.f=qn()}function Es(t,e,o){var i,r,n,s,a,p=t.o,h=t.i;Ee(p,e)&&(i=o.extent,r=o.pixelRatio,n=o.viewState.rotation,s=o.viewState,a=o.pixelRatio/s.resolution,t=rs(t.f,t.b.width/2,t.b.height/2,a,-a,-s.rotation,-s.center[0],-s.center[1]),p.b(new cs(e,new bs(h,r,i,t,n),o,h,null)))}(Au=vs.prototype).zb=function(){},Au.rd=function(){},Au.Zb=function(){},Au.te=function(){},Au.ue=function(){},Au.mc=function(){},Au.nc=function(){},Au.oc=function(){},Au.pc=function(){},Au.qc=function(){},Au.rc=function(){},Au.yc=function(){},Au.Ma=function(){},Au.Ub=function(){},Au.Cb=function(){},e(bs,vs),(Au=bs.prototype).Zb=function(t){var e,o,i;nt(this.c,t.G())&&((this.a||this.b)&&(this.a&&Ms(this,this.a),this.b&&Ps(this,this.b),e=this.S,o=this.v,o=(e=(i=t.ga())?Xi(i,0,i.length,t.qa(),e,o):null)[2]-e[0],i=e[3]-e[1],o=Math.sqrt(o*o+i*i),(i=this.i).beginPath(),i.arc(e[0],e[1],o,0,2*Math.PI),this.a&&i.fill(),this.b&&i.stroke()),""!==this.Ia&&ws(this,t.wa(),2,2))},Au.rd=function(t){this.Ma(t.Fa(),t.Ga()),this.Ub(t.Y()),this.Cb(t.Na())},Au.zb=function(t){switch(t.U()){case"Point":this.qc(t);break;case"LineString":this.mc(t);break;case"Polygon":this.rc(t);break;case"MultiPoint":this.oc(t);break;case"MultiLineString":this.nc(t);break;case"MultiPolygon":this.pc(t);break;case"GeometryCollection":this.ue(t);break;case"Circle":this.Zb(t)}},Au.te=function(t,e){(t=(0,e.Za)(t))&&nt(this.c,t.G())&&(this.rd(e),this.zb(t))},Au.ue=function(t){for(var e=0,o=(t=t.a).length;e<o;++e)this.zb(t[e])},Au.qc=function(t){var e=t.ga();t=t.qa(),this.M&&ms(this,e,e.length),""!==this.Ia&&ws(this,e,e.length,t)},Au.oc=function(t){var e=t.ga();t=t.qa(),this.M&&ms(this,e,e.length),""!==this.Ia&&ws(this,e,e.length,t)},Au.mc=function(t){var e,o;nt(this.c,t.G())&&(this.b&&(Ps(this,this.b),e=this.i,o=t.ga(),e.beginPath(),xs(this,o,0,o.length,t.qa(),!1),e.stroke()),""!==this.Ia&&ws(this,t=ul(t),2,2))},Au.nc=function(t){var e=t.G();if(nt(this.c,e)){if(this.b){Ps(this,this.b);var e=this.i,o=t.ga(),i=0,r=t.Bb(),n=t.qa();e.beginPath();for(var s=0,a=r.length;s<a;++s)i=xs(this,o,i,r[s],n,!1);e.stroke()}""!==this.Ia&&ws(this,t=fl(t),t.length,2)}},Au.rc=function(t){var e;nt(this.c,t.G())&&((this.b||this.a)&&(this.a&&Ms(this,this.a),this.b&&Ps(this,this.b),(e=this.i).beginPath(),Ss(this,t.ec(),0,t.Bb(),t.qa()),this.a&&e.fill(),this.b&&e.stroke()),""!==this.Ia&&ws(this,t=xr(t),2,2))},Au.pc=function(t){if(nt(this.c,t.G())){if(this.b||this.a){this.a&&Ms(this,this.a),this.b&&Ps(this,this.b);var e=this.i,o=bl(t),i=0,r=t.c,n=t.qa();e.beginPath();for(var s=0,a=r.length;s<a;++s)i=Ss(this,o,i,r[s],n);this.a&&e.fill(),this.b&&e.stroke()}""!==this.Ia&&ws(this,t=vl(t),t.length,2)}},Au.Ma=function(t,e){var o,i,r,n,s;t?(t=t.b,this.a={fillStyle:ze(t||fs)}):this.a=null,e?(t=e.a,o=e.f,i=e.i,r=e.g,n=e.j,s=e.c,e=e.o,this.b={lineCap:void 0!==o?o:"round",lineDash:i||ys,lineDashOffset:r||0,lineJoin:void 0!==n?n:"round",lineWidth:this.u*(void 0!==s?s:1),miterLimit:void 0!==e?e:10,strokeStyle:ze(t||gs)}):this.b=null},Au.Ub=function(t){var e,o,i,r;t?(e=t.Hc(),o=t.Y(1),i=t.Oc(),r=t.ic(),this.D=e[0],this.C=e[1],this.B=r[1],this.M=o,this.l=t.f,this.T=i[0],this.na=i[1],this.fa=t.l,this.fb=t.g,this.f=t.a,this.pa=t.v,this.oa=r[0]):this.M=null},Au.Cb=function(t){var e,o,i,r,n,s,a,p;t?((e=t.Fa())?(e=e.b,this.g={fillStyle:ze(e||fs)}):this.g=null,(a=t.Ga())?(e=a.a,o=a.f,i=a.i,r=a.g,n=a.j,s=a.c,a=a.o,this.o={lineCap:void 0!==o?o:"round",lineDash:i||ys,lineDashOffset:r||0,lineJoin:void 0!==n?n:"round",lineWidth:void 0!==s?s:1,miterLimit:void 0!==a?a:10,strokeStyle:ze(e||gs)}):this.o=null,e=t.a,o=t.i,i=t.c,r=t.o,n=t.f,s=t.b,a=t.Na(),p=t.g,t=t.j,this.ra={font:void 0!==e?e:"10px sans-serif",textAlign:void 0!==p?p:"center",textBaseline:void 0!==t?t:"middle"},this.Ia=void 0!==a?a:"",this.Jb=void 0!==o?this.u*o:0,this.va=void 0!==i?this.u*i:0,this.Sa=void 0!==r&&r,this.$a=void 0!==n?n:0,this.j=this.u*(void 0!==s?s:1)):this.Ia=""},e(As,ss),As.prototype.U=function(){return"canvas"},As.prototype.Jg=function(t){if(t){var e=this.i,o=t.pixelRatio,i=Math.round(t.size[0]*o),r=Math.round(t.size[1]*o);this.b.width!=i||this.b.height!=r?(this.b.width=i,this.b.height=r):e.clearRect(0,0,i,r),o=t.viewState.rotation,as(t),Es(this,"precompose",t);var n=t.layerStatesArray;h(n),o&&(e.save(),ds(e,o,i/2,r/2));for(var i=t.viewState.resolution,r=0,s=n.length;r<s;++r){var a=n[r],p=hs(this,p=a.layer);Kn(a,i)&&"ready"==a.yj&&p.sd(t,a)&&p.S(t,a,e)}o&&e.restore(),Es(this,"postcompose",t),this.a||(this.b.style.display="",this.a=!0),ls(this,t),t.postRenderFunctions.push(ps)}else this.a&&(this.b.style.display="none",this.a=!1)},As.prototype.Di=function(t,e,o,i,r,n){var s=e.viewState.resolution,a=e.layerStatesArray,p=a.length;for(t=ts(e.pixelToCoordinateTransform,t.slice()),--p;0<=p;--p){var h=a[p],l=h.layer;if(Kn(h,s)&&r.call(n,l)&&(h=hs(this,l).u(t,e,o,i)))return h}};var Ts=["Polygon","Circle","LineString","Image","Text"];function js(){}function Cs(t){this.b=t}function Ls(t){this.b=t}function Rs(t){this.b=t}function Is(){this.b="precision mediump float;varying vec2 a;varying vec2 b;varying float c;varying float d;uniform float m;uniform vec4 n;uniform vec4 o;uniform vec2 p;void main(void){vec2 windowCenter=vec2((a.x+1.0)/2.0*p.x*d,(a.y+1.0)/2.0*p.y*d);vec2 windowOffset=vec2((b.x+1.0)/2.0*p.x*d,(b.y+1.0)/2.0*p.y*d);float radius=length(windowCenter-windowOffset);float dist=length(windowCenter-gl_FragCoord.xy);if(dist>radius+c){if(o.a==0.0){gl_FragColor=n;}else{gl_FragColor=o;}gl_FragColor.a=gl_FragColor.a-(dist-(radius+c));}else if(n.a==0.0){gl_FragColor=o;if(dist<radius-c){gl_FragColor.a=gl_FragColor.a-(radius-c-dist);}} else{gl_FragColor=n;float strokeDist=radius-c;float antialias=2.0*d;if(dist>strokeDist){gl_FragColor=o;}else if(dist>=strokeDist-antialias){float step=smoothstep(strokeDist-antialias,strokeDist,dist);gl_FragColor=mix(n,o,step);}} gl_FragColor.a=gl_FragColor.a*m;if(gl_FragColor.a<=0.0){discard;}}"}e(Ls,Cs),Ls.prototype.U=function(){return 35632},e(Rs,Cs),Rs.prototype.U=function(){return 35633},e(Is,Ls);var Ns=new Is;function Fs(){this.b="varying vec2 a;varying vec2 b;varying float c;varying float d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;void main(void){mat4 offsetMatrix=i*j;a=vec4(h*vec4(e,0.0,1.0)).xy;d=l;float lineWidth=k*l;c=lineWidth/2.0;if(lineWidth==0.0){lineWidth=2.0*l;}vec2 offset;float radius=g+3.0*l;if(f==0.0){offset=vec2(-1.0,1.0);}else if(f==1.0){offset=vec2(-1.0,-1.0);}else if(f==2.0){offset=vec2(1.0,-1.0);}else{offset=vec2(1.0,1.0);}gl_Position=h*vec4(e+offset*radius,0.0,1.0)+offsetMatrix*vec4(offset*lineWidth,0.0,0.0);b=vec4(h*vec4(e.x+g,e.y,0.0,1.0)).xy;if(distance(a,b)>20000.0){gl_Position=vec4(a,0.0,1.0);}}"}e(Fs,Rs);var ks=new Fs;function Ds(t,e){this.B=t.getUniformLocation(e,"n"),this.oa=t.getUniformLocation(e,"k"),this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"m"),this.ra=t.getUniformLocation(e,"l"),this.i=t.getUniformLocation(e,"h"),this.I=t.getUniformLocation(e,"p"),this.R=t.getUniformLocation(e,"o"),this.j=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"e"),this.S=t.getAttribLocation(e,"g")}function Os(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function Us(t,e){return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}function Gs(t,e){this.origin=$(e),this.xb=qn(),this.Sa=qn(),this.$a=qn(),this.Jb=Os(),this.b=[],this.o=null,this.i=[],this.f=[],this.a=[],this.l=null,this.g=void 0}function Bs(t,e,o,i){t.drawElements(4,i-o,e.g?5125:5123,o*(e.g?4:2))}e(Gs,vs),Gs.prototype.La=function(t,e,o,i,r,n,s,a,p,h,l){var u,c,f,y,g,d,v,b,m=t.b;this.g&&(u=m.isEnabled(m.STENCIL_TEST),c=m.getParameter(m.STENCIL_FUNC),f=m.getParameter(m.STENCIL_VALUE_MASK),y=m.getParameter(m.STENCIL_REF),g=m.getParameter(m.STENCIL_WRITEMASK),d=m.getParameter(m.STENCIL_FAIL),v=m.getParameter(m.STENCIL_PASS_DEPTH_PASS),b=m.getParameter(m.STENCIL_PASS_DEPTH_FAIL),m.enable(m.STENCIL_TEST),m.clear(m.STENCIL_BUFFER_BIT),m.stencilMask(255),m.stencilFunc(m.ALWAYS,1,255),m.stencilOp(m.KEEP,m.KEEP,m.REPLACE),this.g.La(t,e,o,i,r,n,s,a,p,h,l),m.stencilMask(0),m.stencilFunc(m.NOTEQUAL,1,255)),oa(t,34962,this.l),oa(t,34963,this.o),n=this.rf(m,t,r,n);var w,x=Jn(this.xb);return os(x,2/(o*r[0]),2/(o*r[1])),es(x,-i),is(x,-(e[0]-this.origin[0]),-(e[1]-this.origin[1])),os(e=Jn(this.$a),2/r[0],2/r[1]),r=Jn(this.Sa),i&&es(r,-i),m.uniformMatrix4fv(n.i,!1,Us(this.Jb,x)),m.uniformMatrix4fv(n.f,!1,Us(this.Jb,e)),m.uniformMatrix4fv(n.c,!1,Us(this.Jb,r)),m.uniform1f(n.a,s),p?w=t=h?this.ve(m,t,a,p,l):(m.clear(m.COLOR_BUFFER_BIT|m.DEPTH_BUFFER_BIT),this.Od(m,t,a,!0),(t=p(null))?t:void 0):this.Od(m,t,a,!1),this.sf(m,n),this.g&&(u||m.disable(m.STENCIL_TEST),m.clear(m.STENCIL_BUFFER_BIT),m.stencilFunc(c,y,f),m.stencilMask(g),m.stencilOp(d,b,v)),w};var Xs=[0,0,0,1],Vs=[],Ws=[0,0,0,1];function Zs(t,e,o,i,r,n){return(t=(o-t)*(n-e)-(r-t)*(i-e))<=Ks&&-Ks<=t?void 0:0<t}var Ks=Number.EPSILON||2220446049250313e-31;function zs(t){this.b=void 0!==t?t:[],this.a=Ys}var Ys=35044;function Hs(t,e){Gs.call(this,0,e),this.v=null,this.j=[],this.u=[],this.S=0,this.c={fillColor:null,strokeColor:null,lineDash:null,lineDashOffset:void 0,lineWidth:void 0,s:!1}}function qs(t,e,o,i){e.uniform4fv(t.v.R,o),e.uniform1f(t.v.oa,i)}function Js(){this.b="precision mediump float;varying vec2 a;varying float b;uniform float k;uniform sampler2D l;void main(void){vec4 texColor=texture2D(l,a);gl_FragColor.rgb=texColor.rgb;float alpha=texColor.a*b*k;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(Hs,Gs),(Au=Hs.prototype).Zb=function(t,e){var o=t.pd(),i=t.qa();if(o){this.i.push(this.b.length),this.f.push(e),this.c.s&&(this.u.push(this.b.length),this.c.s=!1),this.S=o,t=Vi(t=t.ga(),0,2,i,-this.origin[0],-this.origin[1]),e=this.a.length;for(var o=this.b.length,r=e/4,n=0;n<2;n+=i)this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=0,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=1,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=2,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=3,this.a[e++]=this.S,this.b[o++]=r,this.b[o++]=r+1,this.b[o++]=r+2,this.b[o++]=r+2,this.b[o++]=r+3,this.b[o++]=r,r+=4}else this.c.s&&(this.j.pop(),this.j.length&&(i=this.j[this.j.length-1],this.c.fillColor=i[0],this.c.strokeColor=i[1],this.c.lineWidth=i[2],this.c.s=!1))},Au.Db=function(){this.l=new zs(this.a),this.o=new zs(this.b),this.i.push(this.b.length),!this.u.length&&0<this.j.length&&(this.j=[]),this.b=this.a=null},Au.Eb=function(t){var e=this.l,o=this.o;return function(){ia(t,e),ia(t,o)}},Au.rf=function(t,e,o,i){var r,n=sa(e,Ns,ks);return this.v?r=this.v:this.v=r=new Ds(t,n),e.Qc(n),t.enableVertexAttribArray(r.b),t.vertexAttribPointer(r.b,2,5126,!1,16,0),t.enableVertexAttribArray(r.j),t.vertexAttribPointer(r.j,1,5126,!1,16,8),t.enableVertexAttribArray(r.S),t.vertexAttribPointer(r.S,1,5126,!1,16,12),t.uniform2fv(r.I,o),t.uniform1f(r.ra,i),r},Au.sf=function(t,e){t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.j),t.disableVertexAttribArray(e.S)},Au.Od=function(t,e,o){if(ct(o)){var i=this.i[this.i.length-1];for(o=this.u.length-1;0<=o;--o){var r=this.u[o],n=this.j[o];t.uniform4fv(this.v.B,n[0]),qs(this,t,n[1],n[2]),Bs(t,e,r,i),i=r}}else for(var s=this.i.length-2,n=i=this.i[s+1],r=this.u.length-1;0<=r;--r){var a=this.j[r];for(t.uniform4fv(this.v.B,a[0]),qs(this,t,a[1],a[2]),a=this.u[r];0<=s&&this.i[s]>=a;){var p=this.i[s];o[G(this.f[s]).toString()]&&(i!==n&&Bs(t,e,i,n),n=p),s--,i=p}i!==n&&Bs(t,e,i,n),i=n=a}},Au.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.u.length-1;0<=p;--p){var h=this.j[p];for(t.uniform4fv(this.v.B,h[0]),qs(this,t,h[1],h[2]),n=this.u[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Bs(t,e,h,a),a=i(l)))return a;s--,a=h}}},Au.Ma=function(t,e){var o;e=e?(o=e.i,this.c.lineDash=o||Vs,o=e.g,this.c.lineDashOffset=o||0,o=!((o=e.a)instanceof CanvasGradient||o instanceof CanvasPattern)&&Be(o).map(function(t,e){return 3!=e?t/255:t})||Ws,void 0!==(e=e.c)?e:1):(o=[0,0,0,0],0),t=!((t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern)&&Be(t).map(function(t,e){return 3!=e?t/255:t})||Xs,this.c.strokeColor&&U(this.c.strokeColor,o)&&this.c.fillColor&&U(this.c.fillColor,t)&&this.c.lineWidth===e||(this.c.s=!0,this.c.fillColor=t,this.c.strokeColor=o,this.c.lineWidth=e,this.j.push([t,o,e]))},e(Js,Ls);var _s=new Js;function $s(){this.b="varying vec2 a;varying float b;attribute vec2 c;attribute vec2 d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;void main(void){mat4 offsetMatrix=i;if(g==1.0){offsetMatrix=i*j;}vec4 offsets=offsetMatrix*vec4(e,0.0,0.0);gl_Position=h*vec4(c,0.0,1.0)+offsets;a=d;b=f;}"}e($s,Rs);var Qs=new $s;function ta(t,e){this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"k"),this.i=t.getUniformLocation(e,"h"),this.v=t.getAttribLocation(e,"e"),this.u=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"c"),this.D=t.getAttribLocation(e,"g"),this.C=t.getAttribLocation(e,"d")}function ea(t,e){this.j=t,this.b=e,this.a={},this.c={},this.i={},this.l=this.v=this.f=this.o=null,(this.g=d(Vo,"OES_element_index_uint"))&&e.getExtension("OES_element_index_uint"),de(this.j,"webglcontextlost",this.Xo,this),de(this.j,"webglcontextrestored",this.Yo,this)}function oa(t,e,o){var i,r,n=t.b,s=o.b,a=String(G(o));a in t.a?n.bindBuffer(e,t.a[a].buffer):(i=n.createBuffer(),n.bindBuffer(e,i),34962==e?r=new Float32Array(s):34963==e&&(r=new(t.g?Uint32Array:Uint16Array)(s)),n.bufferData(e,r,o.a),t.a[a]={lc:o,buffer:i})}function ia(t,e){var o=t.b;e=String(G(e));var i=t.a[e];o.isContextLost()||o.deleteBuffer(i.buffer),delete t.a[e]}function ra(t){var e,o,i,r;return t.f||(o=(e=t.b).createFramebuffer(),e.bindFramebuffer(e.FRAMEBUFFER,o),i=pa(e,1,1),r=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,r),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,1,1),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,i,0),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,r),e.bindTexture(e.TEXTURE_2D,null),e.bindRenderbuffer(e.RENDERBUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null),t.f=o,t.v=i,t.l=r),t.f}function na(t,e){var o=String(G(e));if(o in t.c)return t.c[o];var i=t.b,r=i.createShader(e.U());return i.shaderSource(r,e.b),i.compileShader(r),t.c[o]=r}function sa(t,e,o){var i=G(e)+"/"+G(o);if(i in t.i)return t.i[i];var r=t.b,n=r.createProgram();return r.attachShader(n,na(t,e)),r.attachShader(n,na(t,o)),r.linkProgram(n),t.i[i]=n}function aa(t,e,o){var i=t.createTexture();return t.bindTexture(t.TEXTURE_2D,i),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),void 0!==e&&t.texParameteri(3553,10242,e),void 0!==o&&t.texParameteri(3553,10243,o),i}function pa(t,e,o){var i=aa(t,void 0,void 0);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,o,0,t.RGBA,t.UNSIGNED_BYTE,null),i}function ha(t,e){var o=aa(t,33071,33071);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),o}function la(t,e){Gs.call(this,0,e),this.C=this.D=void 0,this.S=[],this.v=[],this.oa=void 0,this.j=[],this.c=[],this.I=this.ra=void 0,this.B=null,this.fb=this.fa=this.na=this.T=this.Ua=this.R=void 0,this.va=[],this.u=[],this.pa=void 0}function ua(t,e,o,i){for(var r=t.D,n=t.C,s=t.oa,a=t.ra,p=t.I,h=t.R,l=t.Ua,u=t.T,c=t.na?1:0,f=-t.fa,y=t.fb,g=t.pa,d=Math.cos(f),f=Math.sin(f),v=t.b.length,b=t.a.length,m=0;m<o;m+=i){var w=e[m]-t.origin[0],x=e[m+1]-t.origin[1],S=b/8,M=-y*r,P=-y*(s-n);t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=l/p,t.a[b++]=(u+s)/a,t.a[b++]=h,t.a[b++]=c,M=y*(g-r),P=-y*(s-n),t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=(l+g)/p,t.a[b++]=(u+s)/a,t.a[b++]=h,t.a[b++]=c,M=y*(g-r),P=y*n,t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=(l+g)/p,t.a[b++]=u/a,t.a[b++]=h,t.a[b++]=c,M=-y*r,P=y*n,t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=l/p,t.a[b++]=u/a,t.a[b++]=h,t.a[b++]=c,t.b[v++]=S,t.b[v++]=1+S,t.b[v++]=2+S,t.b[v++]=S,t.b[v++]=2+S,t.b[v++]=3+S}}function ca(t,e,o,i){for(var r=e.length,n=0;n<r;++n){var s=e[n],a=G(s).toString();a in o?s=o[a]:(s=ha(i,s),o[a]=s),t[n]=s}}function fa(t,e,o){var i=e-o;return t[0]===t[i]&&t[1]===t[1+i]&&3<+e/o&&!!Yi(t,0,e,o)}function ya(){this.b="precision mediump float;varying float a;varying vec2 b;varying float c;uniform float m;uniform vec4 n;uniform vec2 o;uniform float p;void main(void){if(a>0.0){vec2 windowCoords=vec2((b.x+1.0)/2.0*o.x*p,(b.y+1.0)/2.0*o.y*p);if(length(windowCoords-gl_FragCoord.xy)>c*p){discard;}} gl_FragColor=n;float alpha=n.a*m;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(ea,xe),(Au=ea.prototype).ka=function(){we(this.j);var t=this.b;if(!t.isContextLost()){for(var e in this.a)t.deleteBuffer(this.a[e].buffer);for(e in this.i)t.deleteProgram(this.i[e]);for(e in this.c)t.deleteShader(this.c[e]);t.deleteFramebuffer(this.f),t.deleteRenderbuffer(this.l),t.deleteTexture(this.v)}},Au.Wo=function(){return this.b},Au.Xo=function(){lt(this.a),lt(this.c),lt(this.i),this.l=this.v=this.f=this.o=null},Au.Yo=function(){},Au.Qc=function(t){return t!=this.o&&(this.b.useProgram(t),this.o=t,!0)},e(la,Gs),(Au=la.prototype).Eb=function(o){var i=this.l,r=this.o,n=this.va,s=this.u,a=o.b;return function(){if(!a.isContextLost()){for(var t=0,e=n.length;t<e;++t)a.deleteTexture(n[t]);for(t=0,e=s.length;t<e;++t)a.deleteTexture(s[t])}ia(o,i),ia(o,r)}},Au.oc=function(t,e){this.i.push(this.b.length),this.f.push(e),ua(this,e=t.ga(),e.length,t.qa())},Au.qc=function(t,e){this.i.push(this.b.length),this.f.push(e),ua(this,e=t.ga(),e.length,t.qa())},Au.Db=function(t){t=t.b,this.S.push(this.b.length),this.v.push(this.b.length),this.l=new zs(this.a),this.o=new zs(this.b);var e={};ca(this.va,this.j,e,t),ca(this.u,this.c,e,t),this.oa=this.C=this.D=void 0,this.c=this.j=null,this.I=this.ra=void 0,this.b=null,this.fb=this.fa=this.na=this.T=this.Ua=this.R=void 0,this.a=null,this.pa=void 0},Au.rf=function(t,e){var o,i=sa(e,_s,Qs);return this.B?o=this.B:this.B=o=new ta(t,i),e.Qc(i),t.enableVertexAttribArray(o.b),t.vertexAttribPointer(o.b,2,5126,!1,32,0),t.enableVertexAttribArray(o.v),t.vertexAttribPointer(o.v,2,5126,!1,32,8),t.enableVertexAttribArray(o.C),t.vertexAttribPointer(o.C,2,5126,!1,32,16),t.enableVertexAttribArray(o.u),t.vertexAttribPointer(o.u,1,5126,!1,32,24),t.enableVertexAttribArray(o.D),t.vertexAttribPointer(o.D,1,5126,!1,32,28),o},Au.sf=function(t,e){t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.v),t.disableVertexAttribArray(e.C),t.disableVertexAttribArray(e.u),t.disableVertexAttribArray(e.D)},Au.Od=function(t,e,o,i){var r=i?this.u:this.va;if(i=i?this.v:this.S,ct(o)){o=0;for(var n=r.length,s=0;o<n;++o){t.bindTexture(3553,r[o]);var a=i[o];Bs(t,e,s,a),s=a}}else for(s=n=0,a=r.length;s<a;++s){t.bindTexture(3553,r[s]);for(var p=0<s?i[s-1]:0,h=i[s],l=p;n<this.i.length&&this.i[n]<=h;){p=void 0!==o[G(this.f[n]).toString()]?(l!==p&&Bs(t,e,l,p),l=n===this.i.length-1?h:this.i[n+1]):n===this.i.length-1?h:this.i[n+1];n++}l!==p&&Bs(t,e,l,p)}},Au.ve=function(t,e,o,i,r){for(var n=this.i.length-1,s=this.u.length-1;0<=s;--s){t.bindTexture(3553,this.u[s]);for(var a=0<s?this.v[s-1]:0,p=this.v[s];0<=n&&this.i[n]>=a;){var h=this.i[n],l=this.f[n];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Bs(t,e,h,p),p=i(l)))return p;p=h,n--}}},Au.Ub=function(t){var e=t.Hc(),o=t.Y(1),i=t.ye(),r=t.qg(1),n=t.f,s=t.Oc(),a=t.l,p=t.g,h=t.ic();t=t.a,this.j.length?G(this.j[this.j.length-1])!=G(o)&&(this.S.push(this.b.length),this.j.push(o)):this.j.push(o),this.c.length?G(this.c[this.c.length-1])!=G(r)&&(this.v.push(this.b.length),this.c.push(r)):this.c.push(r),this.D=e[0],this.C=e[1],this.oa=h[1],this.ra=i[1],this.I=i[0],this.R=n,this.Ua=s[0],this.T=s[1],this.fa=p,this.na=a,this.fb=t,this.pa=h[0]},e(ya,Ls);var ga=new ya;function da(){this.b="varying float a;varying vec2 b;varying float c;attribute vec2 d;attribute vec2 e;attribute vec2 f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;bool nearlyEquals(in float value,in float ref){float epsilon=0.000000000001;return value>=ref-epsilon&&value<=ref+epsilon;}void alongNormal(out vec2 offset,in vec2 nextP,in float turnDir,in float direction){vec2 dirVect=nextP-e;vec2 normal=normalize(vec2(-turnDir*dirVect.y,turnDir*dirVect.x));offset=k/2.0*normal*direction;}void miterUp(out vec2 offset,out float round,in bool isRound,in float direction){float halfWidth=k/2.0;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=f-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;round=0.0;if(isRound){round=1.0;}else if(miterLength>l+k){offset=halfWidth*tmpNormal*direction;}} bool miterDown(out vec2 offset,in vec4 projPos,in mat4 offsetMatrix,in float direction){bool degenerate=false;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=d-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));vec2 longOffset,shortOffset,longVertex;vec4 shortProjVertex;float halfWidth=k/2.0;if(length(f-e)>length(d-e)){longOffset=tmpNormal*direction*halfWidth;shortOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=f;shortProjVertex=h*vec4(d,0.0,1.0);}else{shortOffset=tmpNormal*direction*halfWidth;longOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=d;shortProjVertex=h*vec4(f,0.0,1.0);}vec4 p1=h*vec4(longVertex,0.0,1.0)+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p2=projPos+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p3=shortProjVertex+offsetMatrix*vec4(-shortOffset,0.0,0.0);vec4 p4=shortProjVertex+offsetMatrix*vec4(shortOffset,0.0,0.0);float denom=(p4.y-p3.y)*(p2.x-p1.x)-(p4.x-p3.x)*(p2.y-p1.y);float firstU=((p4.x-p3.x)*(p1.y-p3.y)-(p4.y-p3.y)*(p1.x-p3.x))/denom;float secondU=((p2.x-p1.x)*(p1.y-p3.y)-(p2.y-p1.y)*(p1.x-p3.x))/denom;float epsilon=0.000000000001;if(firstU>epsilon&&firstU<1.0-epsilon&&secondU>epsilon&&secondU<1.0-epsilon){shortProjVertex.x=p1.x+firstU*(p2.x-p1.x);shortProjVertex.y=p1.y+firstU*(p2.y-p1.y);offset=shortProjVertex.xy;degenerate=true;}else{float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;}return degenerate;}void squareCap(out vec2 offset,out float round,in bool isRound,in vec2 nextP,in float turnDir,in float direction){round=0.0;vec2 dirVect=e-nextP;vec2 firstNormal=normalize(dirVect);vec2 secondNormal=vec2(turnDir*firstNormal.y*direction,-turnDir*firstNormal.x*direction);vec2 hypotenuse=normalize(firstNormal-secondNormal);vec2 normal=vec2(turnDir*hypotenuse.y*direction,-turnDir*hypotenuse.x*direction);float length=sqrt(c*c*2.0);offset=normal*length;if(isRound){round=1.0;}} void main(void){bool degenerate=false;float direction=float(sign(g));mat4 offsetMatrix=i*j;vec2 offset;vec4 projPos=h*vec4(e,0.0,1.0);bool round=nearlyEquals(mod(g,2.0),0.0);a=0.0;c=k/2.0;b=projPos.xy;if(nearlyEquals(mod(g,3.0),0.0)||nearlyEquals(mod(g,17.0),0.0)){alongNormal(offset,f,1.0,direction);}else if(nearlyEquals(mod(g,5.0),0.0)||nearlyEquals(mod(g,13.0),0.0)){alongNormal(offset,d,-1.0,direction);}else if(nearlyEquals(mod(g,23.0),0.0)){miterUp(offset,a,round,direction);}else if(nearlyEquals(mod(g,19.0),0.0)){degenerate=miterDown(offset,projPos,offsetMatrix,direction);}else if(nearlyEquals(mod(g,7.0),0.0)){squareCap(offset,a,round,f,1.0,direction);}else if(nearlyEquals(mod(g,11.0),0.0)){squareCap(offset,a,round,d,-1.0,direction);}if(!degenerate){vec4 offsets=offsetMatrix*vec4(offset,0.0,0.0);gl_Position=projPos+offsets;}else{gl_Position=vec4(offset,0.0,1.0);}}"}e(da,Rs);var va=new da;function ba(t,e){this.B=t.getUniformLocation(e,"n"),this.oa=t.getUniformLocation(e,"k"),this.R=t.getUniformLocation(e,"l"),this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"m"),this.ra=t.getUniformLocation(e,"p"),this.i=t.getUniformLocation(e,"h"),this.I=t.getUniformLocation(e,"o"),this.g=t.getAttribLocation(e,"g"),this.o=t.getAttribLocation(e,"d"),this.l=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"e")}function ma(t,e){Gs.call(this,0,e),this.v=null,this.u=[],this.j=[],this.c={strokeColor:null,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0,s:!1}}function wa(t,e,o,i){for(var r=t.a.length,n=t.b.length,s="bevel"===t.c.lineJoin?0:"miter"===t.c.lineJoin?1:2,a="butt"===t.c.lineCap?0:"square"===t.c.lineCap?1:2,p=fa(e,o,i),h=n,l=1,u=0;u<o;u+=i){var c,f=r/7,y=g,g=c||[e[u],e[u+1]];if(u){if(u===o-i){p?c=d:(r=xa(t,y=y||[0,0],g,[0,0],l*Ta*(a||1),r),r=xa(t,y,g,[0,0],-l*Ta*(a||1),r),t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=h,t.b[n++]=f+1,t.b[n++]=f,a&&(r=xa(t,y,g,[0,0],l*Ca*a,r),r=xa(t,y,g,[0,0],-l*Ca*a,r),t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=f+1,t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f+2));break}c=[e[u+i],e[u+i+1]]}else{if(c=[e[u+i],e[u+i+1]],+o==2*i&&U(g,c))break;if(!p){a&&(r=xa(t,[0,0],g,c,l*ja*a,r),r=xa(t,[0,0],g,c,-l*ja*a,r),t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=f+1,t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f+2),r=xa(t,[0,0],g,c,l*Ea*(a||1),r),h=(r=xa(t,[0,0],g,c,-l*Ea*(a||1),r))/7-1;continue}var y=[e[o-2*i],e[o-2*i+1]],d=c}var v=Zs(y[0],y[1],g[0],g[1],c[0],c[1])?-1:1,r=xa(t,y,g,c,v*La*(s||1),r);r=xa(t,y,g,c,v*Ra*(s||1),r),r=xa(t,y,g,c,-v*Ia*(s||1),r),0<u&&(t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=0<l*v?h:h-1),t.b[n++]=f,t.b[n++]=f+2,t.b[n++]=f+1,h=f+2,l=v,s&&(r=xa(t,y,g,c,v*Na*s,r),t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f)}p&&(f=f||r/7,r=xa(t,y,g,c,(v=dr([y[0],y[1],g[0],g[1],c[0],c[1]],0,6,2)?1:-1)*La*(s||1),r),xa(t,y,g,c,-v*Ia*(s||1),r),t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=f+1,t.b[n++]=f,t.b[n++]=0<l*v?h:h-1)}function xa(t,e,o,i,r,n){return t.a[n++]=e[0],t.a[n++]=e[1],t.a[n++]=o[0],t.a[n++]=o[1],t.a[n++]=i[0],t.a[n++]=i[1],t.a[n++]=r,n}function Sa(t,e,o,i){return!((o-=e)<2*i)&&(o!==2*i||!U([t[e],t[e+1]],[t[e+i],t[e+i+1]]))}function Ma(t,e,o,i){var r;if(fa(e,e.length,i)||(e.push(e[0]),e.push(e[1])),wa(t,e,e.length,i),o.length)for(e=0,r=o.length;e<r;++e)fa(o[e],o[e].length,i)||(o[e].push(o[e][0]),o[e].push(o[e][1])),wa(t,o[e],o[e].length,i)}function Pa(t,e,o){o=void 0===o?t.b.length:o,t.i.push(o),t.f.push(e),t.c.s&&(t.j.push(o),t.c.s=!1)}function Aa(t,e,o,i,r){e.uniform4fv(t.v.B,o),e.uniform1f(t.v.oa,i),e.uniform1f(t.v.R,r)}e(ma,Gs),(Au=ma.prototype).mc=function(t,e){var o=t.ga();t=t.qa(),Sa(o,0,o.length,t)&&(o=Vi(o,0,o.length,t,-this.origin[0],-this.origin[1]),this.c.s&&(this.j.push(this.b.length),this.c.s=!1),this.i.push(this.b.length),this.f.push(e),wa(this,o,o.length,t))},Au.nc=function(t,e){var o=this.b.length,i=t.Bb();i.unshift(0);var r=t.ga();if(t=t.qa(),1<i.length)for(var n,s=1,a=i.length;s<a;++s)Sa(r,i[s-1],i[s],t)&&wa(this,n=Vi(r,i[s-1],i[s],t,-this.origin[0],-this.origin[1]),n.length,t);this.b.length>o&&(this.i.push(o),this.f.push(e),this.c.s&&(this.j.push(o),this.c.s=!1))},Au.Db=function(){this.l=new zs(this.a),this.o=new zs(this.b),this.i.push(this.b.length),!this.j.length&&0<this.u.length&&(this.u=[]),this.b=this.a=null},Au.Eb=function(t){var e=this.l,o=this.o;return function(){ia(t,e),ia(t,o)}},Au.rf=function(t,e,o,i){var r,n=sa(e,ga,va);return this.v?r=this.v:this.v=r=new ba(t,n),e.Qc(n),t.enableVertexAttribArray(r.o),t.vertexAttribPointer(r.o,2,5126,!1,28,0),t.enableVertexAttribArray(r.b),t.vertexAttribPointer(r.b,2,5126,!1,28,8),t.enableVertexAttribArray(r.l),t.vertexAttribPointer(r.l,2,5126,!1,28,16),t.enableVertexAttribArray(r.g),t.vertexAttribPointer(r.g,1,5126,!1,28,24),t.uniform2fv(r.I,o),t.uniform1f(r.ra,i),r},Au.sf=function(t,e){t.disableVertexAttribArray(e.o),t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.l),t.disableVertexAttribArray(e.g)},Au.Od=function(t,e,o,i){var r=t.getParameter(t.DEPTH_FUNC),n=t.getParameter(t.DEPTH_WRITEMASK);if(i||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),ct(o)){var s=this.i[this.i.length-1];for(o=this.j.length-1;0<=o;--o){var a=this.j[o],p=this.u[o];Aa(this,t,p[0],p[1],p[2]),Bs(t,e,a,s),t.clear(t.DEPTH_BUFFER_BIT),s=a}}else for(var h=this.i.length-2,p=s=this.i[h+1],a=this.j.length-1;0<=a;--a){var l=this.u[a];for(Aa(this,t,l[0],l[1],l[2]),l=this.j[a];0<=h&&this.i[h]>=l;){var u=this.i[h];o[G(this.f[h]).toString()]&&(s!==p&&(Bs(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),p=u),h--,s=u}s!==p&&(Bs(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),s=p=l}i||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(n),t.depthFunc(r))},Au.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.j.length-1;0<=p;--p)for(Aa(this,t,(h=this.u[p])[0],h[1],h[2]),n=this.j[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Bs(t,e,h,a),a=i(l)))return a;s--,a=h}},Au.Ma=function(t,e){t=e.f,this.c.lineCap=void 0!==t?t:"round",t=e.i,this.c.lineDash=t||Vs,t=e.g,this.c.lineDashOffset=t||0,t=e.j,this.c.lineJoin=void 0!==t?t:"round",t=!((t=e.a)instanceof CanvasGradient||t instanceof CanvasPattern)&&Be(t).map(function(t,e){return 3!=e?t/255:t})||Ws;var o=void 0!==(o=e.c)?o:1;e=void 0!==(e=e.o)?e:10,this.c.strokeColor&&U(this.c.strokeColor,t)&&this.c.lineWidth===o&&this.c.miterLimit===e||(this.c.s=!0,this.c.strokeColor=t,this.c.lineWidth=o,this.c.miterLimit=e,this.u.push([t,o,e]))};var Ea=3,Ta=5,ja=7,Ca=11,La=13,Ra=17,Ia=19,Na=23;function Fa(){this.b="precision mediump float;uniform vec4 e;uniform float f;void main(void){gl_FragColor=e;float alpha=e.a*f;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(Fa,Ls);var ka=new Fa;function Da(){this.b="attribute vec2 a;uniform mat4 b;uniform mat4 c;uniform mat4 d;void main(void){gl_Position=b*vec4(a,0.0,1.0);}"}e(Da,Rs);var Oa=new Da;function Ua(t,e){this.B=t.getUniformLocation(e,"e"),this.c=t.getUniformLocation(e,"d"),this.f=t.getUniformLocation(e,"c"),this.a=t.getUniformLocation(e,"f"),this.i=t.getUniformLocation(e,"b"),this.b=t.getAttribLocation(e,"a")}function Ga(t){t=t||{},this.a=void 0!==t.color?t.color:null,this.f=t.lineCap,this.i=void 0!==t.lineDash?t.lineDash:null,this.g=t.lineDashOffset,this.j=t.lineJoin,this.o=t.miterLimit,this.c=t.width,this.b=void 0}function Ba(t){this.b=this.a=this.i=void 0,this.f=void 0===t||t,this.c=0}function Xa(t){var e,o,i=t.b;i&&(e=i.next,o=i.ub,e&&(e.ub=o),o&&(o.next=e),t.b=e||o,t.i===t.a?(t.b=void 0,t.i=void 0,t.a=void 0):t.i===i?t.i=t.b:t.a===i&&(t.a=o?t.b.ub:t.b),t.c--)}function Va(t){if(t.b=t.i,t.b)return t.b.data}function Wa(t){if(t.b&&t.b.next)return t.b=t.b.next,t.b.data}function Za(t){if(t.b&&t.b.next)return t.b.next.data}function Ka(t){if(t.b&&t.b.ub)return t.b=t.b.ub,t.b.data}function za(t){if(t.b&&t.b.ub)return t.b.ub.data}function Ya(t){if(t.b)return t.b.data}(Au=Ga.prototype).clone=function(){var t=this.a;return new Ga({color:t&&t.slice?t.slice():t||void 0,lineCap:this.f,lineDash:this.i?this.i.slice():void 0,lineDashOffset:this.g,lineJoin:this.j,miterLimit:this.o,width:this.c})},Au.No=function(){return this.a},Au.Vk=function(){return this.f},Au.Oo=function(){return this.i},Au.Wk=function(){return this.g},Au.Xk=function(){return this.j},Au.bl=function(){return this.o},Au.Po=function(){return this.c},Au.Qo=function(t){this.a=t,this.b=void 0},Au.aq=function(t){this.f=t,this.b=void 0},Au.setLineDash=function(t){this.i=t,this.b=void 0},Au.bq=function(t){this.g=t,this.b=void 0},Au.cq=function(t){this.j=t,this.b=void 0},Au.gq=function(t){this.o=t,this.b=void 0},Au.jq=function(t){this.c=t,this.b=void 0},Ba.prototype.concat=function(t){var e;t.b&&(this.b?(e=this.b.next,this.b.next=t.i,t.i.ub=this.b,e.ub=t.a,t.a.next=e,this.c+=t.c):(this.b=t.b,this.i=t.i,this.a=t.a,this.c=t.c),t.b=void 0,t.i=void 0,t.a=void 0,t.c=0)};var Ha,qa={$d:function(){}};function Ja(t,e,o){var i=t[e];t[e]=t[o],t[o]=i}function _a(t,e){return t<e?-1:e<t?1:0}function $a(t,e){if(!(this instanceof $a))return new $a(t,e);this.Hf=Math.max(4,t||9),this.fh=Math.max(2,Math.ceil(.4*this.Hf)),e&&this.ek(e),this.clear()}function Qa(t,e){tp(t,0,t.children.length,e,t)}function tp(t,e,o,i,r){(r=r||pp(null)).ca=1/0,r.da=1/0,r.$=-1/0,r.ia=-1/0;for(var n;e<o;e++)n=t.children[e],ep(r,t.ib?i(n):n);return r}function ep(t,e){t.ca=Math.min(t.ca,e.ca),t.da=Math.min(t.da,e.da),t.$=Math.max(t.$,e.$),t.ia=Math.max(t.ia,e.ia)}function op(t,e){return t.ca-e.ca}function ip(t,e){return t.da-e.da}function rp(t){return(t.$-t.ca)*(t.ia-t.da)}function np(t){return t.$-t.ca+(t.ia-t.da)}function sp(t,e){return t.ca<=e.ca&&t.da<=e.da&&e.$<=t.$&&e.ia<=t.ia}function ap(t,e){return e.ca<=t.$&&e.da<=t.ia&&e.$>=t.ca&&e.ia>=t.da}function pp(t){return{children:t,height:1,ib:!0,ca:1/0,da:1/0,$:-1/0,ia:-1/0}}function hp(t,e,o,i,r){for(var n,s=[e,o];s.length;)(o=s.pop())-(e=s.pop())<=i||(n=e+Math.ceil((o-e)/i/2)*i,Ha(t,n,e,o,r),s.push(e,n,n,o))}function lp(t){this.a=qa.$d(t),this.b={}}function up(t,e,o){var i=t.b[G(o)];Z([i.ca,i.da,i.$,i.ia],e)||(t.remove(o),t.Ca(e,o))}function cp(t){return t.a.all().map(function(t){return t.value})}function fp(t,e){return t.a.search({ca:e[0],da:e[1],$:e[2],ia:e[3]}).map(function(t){return t.value})}function yp(t,e,o,i){return gp(fp(t,e),o,i)}function gp(t,e,o){for(var i,r=0,n=t.length;r<n&&!(i=e.call(o,t[r]));r++);return i}function dp(t,e){Gs.call(this,0,e),this.g=new ma(0,e),this.v=null,this.u=[],this.c=[],this.j={fillColor:null,s:!1}}function vp(t,e,o,i){var r=new Ba,n=new lp;if(e=bp(t,e,i,r,n,!0),o.length){for(var s=[],a=0,p=o.length;a<p;++a){var h={list:new Ba,$:void 0,Mg:new lp};s.push(h),h.$=bp(t,o[a],i,h.list,h.Mg,!1)}for(s.sort(function(t,e){return e.$[0]===t.$[0]?t.$[1]-e.$[1]:e.$[0]-t.$[0]}),a=0;a<s.length;++a){p=i=Va(o=s[a].list);do{if(Tp(p,n).length){var l=!0;break}}while(i!==(p=Wa(o)));l||(mp(o,s[a].Mg,!0),function(t,e,o,i,r){for(var n=Va(t);n.W.x!==e;)n=Wa(t);e=n.W,i={x:i,y:e.y,hb:-1};var s,a=1/0,p=Tp({aa:e,W:i},r,!0),h=0;for(s=p.length;h<s;++h){var l,u=p[h],c=jp(e,i,u.aa,u.W,!0),f=Math.abs(e.x-c[0]);f<a&&void 0!==Zs(e.x,e.y,u.aa.x,u.aa.y,u.W.x,u.W.y)&&(a=f,l={x:c[0],y:c[1],hb:-1},n=u)}if(1/0===a)return!1;if(p=n.W,0<a&&(n=Ep(e,l,n.W,r)).length)for(l=1/0,h=0,s=n.length;h<s;++h)a=n[h],((u=Math.atan2(e.y-a.y,i.x-a.x))<l||u===l&&a.x<p.x)&&(l=u,p=a);for(n=Va(o);n.W.x!==p.x||n.W.y!==p.y;)n=Wa(o);return i={x:e.x,y:e.y,hb:e.hb,Fb:void 0},h={x:n.W.x,y:n.W.y,hb:n.W.hb,Fb:void 0},Za(t).aa=i,Pp(e,n.W,t,r),Pp(h,i,t,r),n.W=h,t.f&&t.b&&(t.i=t.b,t.a=t.b.ub),o.concat(t),!0}(o,s[a].$[0],r,e[0],n)&&(n.concat(s[a].Mg),mp(r,n,!1)))}}else mp(r,n,!1);!function t(e,o,i){for(var r=!1,n=Sp(o,i);3<o.c;)if(n){if(!wp(e,o,i,n,r)&&!mp(o,i,r)&&!xp(e,o,i,!0))break}else if(!wp(e,o,i,n,r)&&!mp(o,i,r)&&!xp(e,o,i)){if(!(n=Sp(o,i))){n=e,s=a=Va(r=o);do{if((p=Tp(s,i)).length){for(a=p[0],p=jp(s.aa,s.W,a.aa,a.W),p=Mp(n,p[0],p[1],n.a.length/2),h=new Ba,l=new lp,Pp(p,s.W,h,l),s.W=p,up(i,[Math.min(s.aa.x,p.x),Math.min(s.aa.y,p.y),Math.max(s.aa.x,p.x),Math.max(s.aa.y,p.y)],s),s=Wa(r);s!==a;)Pp(s.aa,s.W,h,l),i.remove(s),Xa(r),s=Ya(r);Pp(a.aa,p,h,l),a.aa=p,up(i,[Math.min(a.W.x,p.x),Math.min(a.W.y,p.y),Math.max(a.W.x,p.x),Math.max(a.W.y,p.y)],a),mp(r,i,!1),t(n,r,i),mp(h,l,!1),t(n,h,l);break}}while((s=Wa(r))!==a);break}for(var r=o,s=2*r.c,a=Array(s),p=Va(r),h=p,l=0;a[l++]=h.aa.x,a[l++]=h.aa.y,h=Wa(r),h!==p;);r=!dr(a,0,s,2),mp(o,i,r)}3===o.c&&(n=e.b.length,e.b[n++]=za(o).aa.hb,e.b[n++]=Ya(o).aa.hb,e.b[n++]=Za(o).aa.hb)}(t,r,n)}function bp(t,e,o,i,r,n){var s,a=t.a.length/2,p=[],h=[];if(n===dr(e,0,e.length,o)){var l=s=Mp(t,e[0],e[1],a++);n=e[0];for(var u=e[1],c=o,f=e.length;c<f;c+=o){var y=Mp(t,e[c],e[c+1],a++);h.push(Pp(l,y,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),e[c]>n&&(n=e[c],u=e[c+1]),l=y}}else for(l=s=Mp(t,e[c=e.length-o],e[c+1],a++),n=e[c],u=e[c+1],c-=o,f=0;f<=c;c-=o)y=Mp(t,e[c],e[c+1],a++),h.push(Pp(l,y,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),e[c]>n&&(n=e[c],u=e[c+1]),l=y;return h.push(Pp(y,s,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),r.load(p,h),[n,u]}function mp(t,e,o){var i=Va(t),r=i,n=Wa(t),s=!1;do{var a=o?Zs(n.W.x,n.W.y,r.W.x,r.W.y,r.aa.x,r.aa.y):Zs(r.aa.x,r.aa.y,r.W.x,r.W.y,n.W.x,n.W.y)}while(void 0===a?(Ap(r,n,t,e),s=!0,n===i&&(i=Za(t)),n=r,Ka(t)):r.W.Fb!==a&&(r.W.Fb=a,s=!0),r=n,n=Wa(t),r!==i);return s}function wp(t,e,o,i,r){var n=t.b.length,s=Va(e),a=za(e),p=s,h=Wa(e),l=Za(e),u=!1;do{var c,f=p.aa,y=p.W,g=h.W}while(!1===y.Fb&&(c=r?Cp(l.W,g,y,f,a.aa):Cp(a.aa,f,y,g,l.W),!i&&Tp({aa:f,W:g},o).length||!c||Ep(f,y,g,o,!0).length||!i&&!1!==f.Fb&&!1!==g.Fb&&dr([a.aa.x,a.aa.y,f.x,f.y,y.x,y.y,g.x,g.y,l.W.x,l.W.y],0,10,2)!==!r||(t.b[n++]=f.hb,t.b[n++]=y.hb,t.b[n++]=g.hb,Ap(p,h,e,o),h===s&&(s=l),u=!0)),a=za(e),p=Ya(e),h=Wa(e),l=Za(e),p!==s&&3<e.c);return u}function xp(t,e,o,i){var r=Va(e);Wa(e);var n=r,s=Wa(e),a=!1;do{var p=jp(n.aa,n.W,s.aa,s.W,i);if(p){var a=t.b.length,h=t.a.length/2,l=Ka(e);Xa(e),o.remove(l);var u=l===r;if(i?(u=p[0]===n.aa.x&&p[1]===n.aa.y?(Ka(e),p=n.aa,s.aa=p,o.remove(n),u||n===r):(p=s.W,n.W=p,o.remove(s),u||s===r),Xa(e)):(p=Mp(t,p[0],p[1],h),n.W=p,s.aa=p,up(o,[Math.min(n.aa.x,n.W.x),Math.min(n.aa.y,n.W.y),Math.max(n.aa.x,n.W.x),Math.max(n.aa.y,n.W.y)],n),up(o,[Math.min(s.aa.x,s.W.x),Math.min(s.aa.y,s.W.y),Math.max(s.aa.x,s.W.x),Math.max(s.aa.y,s.W.y)],s)),t.b[a++]=l.aa.hb,t.b[a++]=l.W.hb,t.b[a++]=p.hb,a=!0,u)break}}while(n=za(e),s=Wa(e),n!==r);return a}function Sp(t,e){var o=Va(t),i=o;do{if(Tp(i,e).length)return!1}while((i=Wa(t))!==o);return!0}function Mp(t,e,o,i){var r=t.a.length;return{x:t.a[r++]=e,y:t.a[+r]=o,hb:i,Fb:void 0}}function Pp(t,e,o,i){var r,n={aa:t,W:e},s={ub:void 0,next:void 0,data:n},a=o.b;return a?(r=a.next,s.ub=a,s.next=r,a.next=s,r&&(r.ub=s),a===o.a&&(o.a=s)):(o.i=s,o.a=s,o.f&&((s.next=s).ub=s)),o.b=s,o.c++,i&&i.Ca([Math.min(t.x,e.x),Math.min(t.y,e.y),Math.max(t.x,e.x),Math.max(t.y,e.y)],n),n}function Ap(t,e,o,i){Ya(o)===e&&(Xa(o),t.W=e.W,i.remove(e),up(i,[Math.min(t.aa.x,t.W.x),Math.min(t.aa.y,t.W.y),Math.max(t.aa.x,t.W.x),Math.max(t.aa.y,t.W.y)],t))}function Ep(t,e,o,i,r){var n,s,a=[],p=fp(i,[Math.min(t.x,e.x,o.x),Math.min(t.y,e.y,o.y),Math.max(t.x,e.x,o.x),Math.max(t.y,e.y,o.y)]);for(i=0,n=p.length;i<n;++i)for(s in p[i]){var h=p[i][s];"object"!=typeof h||r&&!h.Fb||h.x===t.x&&h.y===t.y||h.x===e.x&&h.y===e.y||h.x===o.x&&h.y===o.y||-1!==a.indexOf(h)||!lr([t.x,t.y,e.x,e.y,o.x,o.y],0,6,2,h.x,h.y)||a.push(h)}return a}function Tp(t,e,o){for(var i=t.aa,r=t.W,n=[],s=0,a=(e=fp(e,[Math.min(i.x,r.x),Math.min(i.y,r.y),Math.max(i.x,r.x),Math.max(i.y,r.y)])).length;s<a;++s){var p=e[s];t!==p&&(o||p.aa!==r||p.W!==i)&&jp(i,r,p.aa,p.W,o)&&n.push(p)}return n}function jp(t,e,o,i,r){var n=(i.y-o.y)*(e.x-t.x)-(i.x-o.x)*(e.y-t.y);if(n&&(i=((i.x-o.x)*(t.y-o.y)-(i.y-o.y)*(t.x-o.x))/n,o=((e.x-t.x)*(t.y-o.y)-(e.y-t.y)*(t.x-o.x))/n,!r&&Ks<i&&i<1-Ks&&Ks<o&&o<1-Ks||r&&0<=i&&i<=1&&0<=o&&o<=1))return[t.x+i*(e.x-t.x),t.y+i*(e.y-t.y)]}function Cp(t,e,o,i,r){if(void 0===e.Fb||void 0===i.Fb)return!1;var n=(o.x-i.x)*(e.y-i.y)>(o.y-i.y)*(e.x-i.x);return r=(r.x-i.x)*(e.y-i.y)<(r.y-i.y)*(e.x-i.x),t=(t.x-e.x)*(i.y-e.y)>(t.y-e.y)*(i.x-e.x),o=(o.x-e.x)*(i.y-e.y)<(o.y-e.y)*(i.x-e.x),e=e.Fb?o||t:o&&t,(i.Fb?r||n:r&&n)&&e}function Lp(){}function Rp(t,e,o){this.f=e,this.g=t,this.c=o,this.a={}}function Ip(t,e){var o,i=[];for(o in t.a){var r,n=t.a[o];for(r in n)i.push(n[r].Eb(e))}return function(){for(var t,e=i.length,o=0;o<e;o++)t=i[o].apply(this,arguments);return t}}function Np(t,e,o,i,r,n,s,a,p,h,l){var u=Fp,c=Object.keys(t.a).map(Number);c.sort(function(t,e){return e-t});for(var f=0,y=c.length;f<y;++f)for(var g=t.a[c[f].toString()],d=Ts.length-1;0<=d;--d){var v=g[Ts[d]];if(void 0!==v&&(v=v.La(e,o,i,r,u,n,s,a,p,h,l)))return v}}qy=qa.$d=qa.$d||{},Ha=function t(e,o,i,r,n){for(i=i||0,r=r||e.length-1,n=n||_a;i<r;){var s,a,p,h;for(600<r-i&&(s=r-i+1,a=o-i+1,h=Math.log(s),p=.5*Math.exp(2*h/3),h=.5*Math.sqrt(h*p*(s-p)/s)*(a-s/2<0?-1:1),t(e,o,Math.max(i,Math.floor(o-a*p/s+h)),Math.min(r,Math.floor(o+(s-a)*p/s+h)),n)),s=e[o],p=r,Ja(e,a=i,o),0<n(e[r],s)&&Ja(e,i,r);a<p;){for(Ja(e,a,p),a++,p--;n(e[a],s)<0;)a++;for(;0<n(e[p],s);)p--}0===n(e[i],s)?Ja(e,i,p):Ja(e,++p,r),p<=o&&(i=p+1),o<=p&&(r=p-1)}},$a.prototype={all:function(){return this.$g(this.data,[])},search:function(t){var e=this.data,o=[],i=this.wb;if(!ap(t,e))return o;for(var r,n,s,a,p=[];e;){for(r=0,n=e.children.length;r<n;r++)s=e.children[r],ap(t,a=e.ib?i(s):s)&&(e.ib?o.push(s):sp(t,a)?this.$g(s,o):p.push(s));e=p.pop()}return o},load:function(t){if(!t||!t.length)return this;if(t.length<this.fh){for(var e=0,o=t.length;e<o;e++)this.Ca(t[e]);return this}return t=this.bh(t.slice(),0,t.length-1,0),this.data.children.length?this.data.height===t.height?this.hh(this.data,t):(this.data.height<t.height&&(e=this.data,this.data=t,t=e),this.eh(t,this.data.height-t.height-1,!0)):this.data=t,this},Ca:function(t){return t&&this.eh(t,this.data.height-1),this},clear:function(){return this.data=pp([]),this},remove:function(t,e){if(!t)return this;for(var o,i,r,n=this.data,s=this.wb(t),a=[],p=[];n||a.length;){if(n||(n=a.pop(),i=a[a.length-1],o=p.pop(),r=!0),n.ib){t:{var h=t,l=n.children,u=e;if(u){for(var c=0;c<l.length;c++)if(u(h,l[c])){h=c;break t}h=-1}else h=l.indexOf(h)}if(-1!==h){n.children.splice(h,1),a.push(n),this.ck(a);break}}r||n.ib||!sp(n,s)?i?(o++,n=i.children[o],r=!1):n=null:(a.push(n),p.push(o),o=0,n=(i=n).children[0])}return this},wb:function(t){return t},Lf:op,Mf:ip,toJSON:function(){return this.data},$g:function(t,e){for(var o=[];t;)t.ib?e.push.apply(e,t.children):o.push.apply(o,t.children),t=o.pop();return e},bh:function(t,e,o,i){var r,n=o-e+1,s=this.Hf;if(n<=s){var a=pp(t.slice(e,o+1));return Qa(a,this.wb),a}for(i||(i=Math.ceil(Math.log(n)/Math.log(s)),s=Math.ceil(n/Math.pow(s,i-1))),(a=pp([])).ib=!1,a.height=i,hp(t,e,o,s=(n=Math.ceil(n/s))*Math.ceil(Math.sqrt(s)),this.Lf);e<=o;e+=s){var p=Math.min(e+s-1,o);for(hp(t,e,p,n,this.Mf),r=e;r<=p;r+=n){var h=Math.min(r+n-1,p);a.children.push(this.bh(t,r,h,i-1))}}return Qa(a,this.wb),a},bk:function(t,e,o,i){for(var r,n,s,a,p,h,l,u;i.push(e),!e.ib&&i.length-1!==o;){for(l=u=1/0,r=0,n=e.children.length;r<n;r++)p=rp(s=e.children[r]),(h=(Math.max(s.$,t.$)-Math.min(s.ca,t.ca))*(Math.max(s.ia,t.ia)-Math.min(s.da,t.da))-p)<u?(u=h,l=p<l?p:l,a=s):h===u&&p<l&&(l=p,a=s);e=a||e.children[0]}return e},eh:function(t,e,o){var i=this.wb;o=o?t:i(t);var i=[],r=this.bk(o,this.data,e,i);for(r.children.push(t),ep(r,o);0<=e&&i[e].children.length>this.Hf;)this.jk(i,e),e--;this.Zj(o,i,e)},jk:function(t,e){var o=t[e],i=o.children.length,r=this.fh;this.$j(o,r,i),i=this.ak(o,r,i),(i=pp(o.children.splice(i,o.children.length-i))).height=o.height,i.ib=o.ib,Qa(o,this.wb),Qa(i,this.wb),e?t[e-1].children.push(i):this.hh(o,i)},hh:function(t,e){this.data=pp([t,e]),this.data.height=t.height+1,this.data.ib=!1,Qa(this.data,this.wb)},ak:function(t,e,o){for(var i=s=1/0,r=e;r<=o-e;r++){var n,s,a=tp(t,0,r,this.wb),p=tp(t,r,o,this.wb),h=Math.max(0,Math.min(a.$,p.$)-Math.max(a.ca,p.ca))*Math.max(0,Math.min(a.ia,p.ia)-Math.max(a.da,p.da)),a=rp(a)+rp(p);h<i?(i=h,n=r,s=a<s?a:s):h===i&&a<s&&(s=a,n=r)}return n},$j:function(t,e,o){var i=t.ib?this.Lf:op,r=t.ib?this.Mf:ip;this.ah(t,e,o,i)<(e=this.ah(t,e,o,r))&&t.children.sort(i)},ah:function(t,e,o,i){t.children.sort(i);for(var r=tp(t,0,e,i=this.wb),n=tp(t,o-e,o,i),s=np(r)+np(n),a=e;a<o-e;a++){var p=t.children[a];ep(r,t.ib?i(p):p),s+=np(r)}for(a=o-e-1;e<=a;a--)p=t.children[a],ep(n,t.ib?i(p):p),s+=np(n);return s},Zj:function(t,e,o){for(;0<=o;o--)ep(e[o],t)},ck:function(t){for(var e,o=t.length-1;0<=o;o--)0===t[o].children.length?0<o?(e=t[o-1].children).splice(e.indexOf(t[o]),1):this.clear():Qa(t[o],this.wb)},ek:function(t){var e=["return a"," - b",";"];this.Lf=new Function("a","b",e.join(t[0])),this.Mf=new Function("a","b",e.join(t[1])),this.wb=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}},qy.default=$a,qa.$d=qa.$d.default,(Au=lp.prototype).Ca=function(t,e){t={ca:t[0],da:t[1],$:t[2],ia:t[3],value:e},this.a.Ca(t),this.b[G(e)]=t},Au.load=function(t,e){for(var o=Array(e.length),i=0,r=e.length;i<r;i++){var n=t[i],s=e[i],n={ca:n[0],da:n[1],$:n[2],ia:n[3],value:s};o[i]=n,this.b[G(s)]=n}this.a.load(o)},Au.remove=function(t){t=G(t);var e=this.b[t];return delete this.b[t],null!==this.a.remove(e)},Au.forEach=function(t,e){return gp(cp(this),t,e)},Au.clear=function(){this.a.clear(),this.b={}},Au.G=function(t){var e=this.a.data;return F(e.ca,e.da,e.$,e.ia,t)},Au.concat=function(t){for(var e in this.a.load(t.a.all()),t.b)this.b[0|e]=t.b[0|e]},e(dp,Gs),(Au=dp.prototype).pc=function(t,e){var o=t.c,i=t.qa(),r=this.b.length,n=this.g.b.length;t=t.ga();for(var s=c=0,a=o.length;s<a;++s){var p=o[s];if(0<p.length){var h=Vi(t,c,p[0],i,-this.origin[0],-this.origin[1]);if(h.length){for(var l,u=[],c=1,f=p.length;c<f;++c)p[c]!==p[c-1]&&(l=Vi(t,p[c-1],p[c],i,-this.origin[0],-this.origin[1]),u.push(l));Ma(this.g,h,u,i),vp(this,h,u,i)}}c=p[p.length-1]}this.b.length>r&&(this.i.push(r),this.f.push(e),this.j.s&&(this.c.push(r),this.j.s=!1)),this.g.b.length>n&&Pa(this.g,e,n)},Au.rc=function(t,e){var o=t.Bb(),i=t.qa();if(0<o.length){var r=Vi(t=t.ga().map(Number),0,o[0],i,-this.origin[0],-this.origin[1]);if(r.length){for(var n,s=[],a=1,p=o.length;a<p;++a)o[a]!==o[a-1]&&(n=Vi(t,o[a-1],o[a],i,-this.origin[0],-this.origin[1]),s.push(n));this.i.push(this.b.length),this.f.push(e),this.j.s&&(this.c.push(this.b.length),this.j.s=!1),Pa(this.g,e),Ma(this.g,r,s,i),vp(this,r,s,i)}}},Au.Db=function(t){this.l=new zs(this.a),this.o=new zs(this.b),this.i.push(this.b.length),this.g.Db(t),!this.c.length&&0<this.u.length&&(this.u=[]),this.b=this.a=null},Au.Eb=function(t){var e=this.l,o=this.o,i=this.g.Eb(t);return function(){ia(t,e),ia(t,o),i()}},Au.rf=function(t,e){var o,i=sa(e,ka,Oa);return this.v?o=this.v:this.v=o=new Ua(t,i),e.Qc(i),t.enableVertexAttribArray(o.b),t.vertexAttribPointer(o.b,2,5126,!1,8,0),o},Au.sf=function(t,e){t.disableVertexAttribArray(e.b)},Au.Od=function(t,e,o,i){var r=t.getParameter(t.DEPTH_FUNC),n=t.getParameter(t.DEPTH_WRITEMASK);if(i||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),ct(o)){var s=this.i[this.i.length-1];for(o=this.c.length-1;0<=o;--o){var a=this.c[o],p=this.u[o];t.uniform4fv(this.v.B,p),Bs(t,e,a,s),s=a}}else for(var h=this.i.length-2,p=s=this.i[h+1],a=this.c.length-1;0<=a;--a){var l=this.u[a];for(t.uniform4fv(this.v.B,l),l=this.c[a];0<=h&&this.i[h]>=l;){var u=this.i[h];o[G(this.f[h]).toString()]&&(s!==p&&(Bs(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),p=u),h--,s=u}s!==p&&(Bs(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),s=p=l}i||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(n),t.depthFunc(r))},Au.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.c.length-1;0<=p;--p){var h=this.u[p];for(t.uniform4fv(this.v.B,h),n=this.c[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Bs(t,e,h,a),a=i(l)))return a;s--,a=h}}},Au.Ma=function(t,e){t=!((t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern)&&Be(t).map(function(t,e){return 3!=e?t/255:t})||Xs,this.j.fillColor&&U(t,this.j.fillColor)||(this.j.fillColor=t,this.j.s=!0,this.u.push(t)),e?this.g.Ma(null,e):this.g.Ma(null,new Ga({color:[0,0,0,0],lineWidth:0}))},Lp.prototype.La=function(){},e(Rp,js),Rp.prototype.b=function(t,e){var o=void 0!==t?t.toString():"0";return void 0===(t=this.a[o])&&(t={},this.a[o]=t),void 0===(o=t[e])&&(o=new kp[e](this.g,this.f),t[e]=o),o},Rp.prototype.i=function(){return ct(this.a)},Rp.prototype.La=function(t,e,o,i,r,n,s,a){var p=Object.keys(this.a).map(Number);p.sort(D);for(var h=0,l=p.length;h<l;++h)for(var u=this.a[p[h].toString()],c=0,f=Ts.length;c<f;++c){var y=u[Ts[c]];void 0!==y&&y.La(t,e,o,i,r,n,s,a,void 0,!1)}},Rp.prototype.Ea=function(t,e,o,i,r,n,s,a,p,h){var l,u=e.b;return u.bindFramebuffer(u.FRAMEBUFFER,ra(e)),Np(this,e,t,i,r,s,a,p,function(t){var e=new Uint8Array(4);if(u.readPixels(0,0,1,1,u.RGBA,u.UNSIGNED_BYTE,e),0<e[3]&&(t=h(t)))return t},!0,l=void 0!==this.c?A(k(t),i*this.c):l)};var Fp=[1,1],kp={Circle:Hs,Image:la,LineString:ma,Polygon:dp,Text:Lp};function Dp(t,e,o,i,r,n,s){this.b=t,this.i=e,this.a=n,this.c=s,this.j=r,this.g=i,this.f=o,this.o=this.l=this.v=null}function Op(){this.c=0,this.b={},this.i=this.a=null}function Up(t,e){ss.call(this,0,e),this.b=document.createElement("CANVAS"),this.b.style.width="100%",this.b.style.height="100%",this.b.style.display="block",this.b.className="ol-unselectable",t.insertBefore(this.b,t.childNodes[0]||null),this.S=this.D=0,this.C=Ye(),this.l=!0,this.i=Mo(this.b,{antialias:!0,depth:!0,failIfMajorPerformanceCaveat:!0,preserveDrawingBuffer:!1,stencil:!0}),this.f=new ea(this.b,this.i),de(this.b,"webglcontextlost",this.Yn,this),de(this.b,"webglcontextrestored",this.Zn,this),this.a=new Op,this.u=null,this.j=new di(function(t){var e=t[1];t=t[2];var o=e[0]-this.u[0],e=e[1]-this.u[1];return 65536*Math.log(t)+Math.sqrt(o*o+e*e)/t}.bind(this),function(t){return t[0].bb()}),this.B=function(){var t;return this.j.b.length&&(wi(this.j),Gp(this,(t=vi(this.j))[0],t[3],t[4])),!1}.bind(this),this.g=0,Xp(this)}function Gp(t,e,o,i){var r,n,s,a=t.i,p=e.bb();t.a.b.hasOwnProperty(p)?(t=t.a.get(p),a.bindTexture(3553,t.Ib),9729!=t.Ph&&(a.texParameteri(3553,10240,9729),t.Ph=9729),9729!=t.Rh&&(a.texParameteri(3553,10241,9729),t.Rh=9729)):(r=a.createTexture(),a.bindTexture(3553,r),0<i?(n=t.C.canvas,s=t.C,t.D!==o[0]||t.S!==o[1]?(n.width=o[0],n.height=o[1],t.D=o[0],t.S=o[1]):s.clearRect(0,0,o[0],o[1]),s.drawImage(e.Y(),i,i,o[0],o[1],0,0,o[0],o[1]),a.texImage2D(3553,0,6408,6408,5121,n)):a.texImage2D(3553,0,6408,6408,5121,e.Y()),a.texParameteri(3553,10240,9729),a.texParameteri(3553,10241,9729),a.texParameteri(3553,10242,33071),a.texParameteri(3553,10243,33071),t.a.set(p,{Ib:r,Ph:9729,Rh:9729}))}function Bp(t,e,o){var i,r=t.o;Ee(r,e)&&(t=t.f,i=o.viewState,r.b(new cs(e,new Dp(t,i.center,i.resolution,i.rotation,o.size,o.extent,o.pixelRatio),o,null,t)))}function Xp(t){(t=t.i).activeTexture(33984),t.blendFuncSeparate(770,771,1,771),t.disable(2884),t.disable(2929),t.disable(3089),t.disable(2960)}e(Dp,vs),(Au=Dp.prototype).rd=function(t){this.Ma(t.Fa(),t.Ga()),this.Ub(t.Y())},Au.zb=function(t){switch(t.U()){case"Point":this.qc(t,null);break;case"LineString":this.mc(t,null);break;case"Polygon":this.rc(t,null);break;case"MultiPoint":this.oc(t,null);break;case"MultiLineString":this.nc(t,null);break;case"MultiPolygon":this.pc(t,null);break;case"GeometryCollection":this.ue(t,null);break;case"Circle":this.Zb(t,null)}},Au.te=function(t,e){(t=(0,e.Za)(t))&&nt(this.a,t.G())&&(this.rd(e),this.zb(t))},Au.ue=function(t){for(var e=0,o=(t=t.a).length;e<o;++e)this.zb(t[e])},Au.qc=function(t,e){var o=this.b,i=new Rp(1,this.a).b(0,"Image");i.Ub(this.v),i.qc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Au.oc=function(t,e){var o=this.b,i=new Rp(1,this.a).b(0,"Image");i.Ub(this.v),i.oc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Au.mc=function(t,e){var o=this.b,i=new Rp(1,this.a).b(0,"LineString");i.Ma(null,this.o),i.mc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Au.nc=function(t,e){var o=this.b,i=new Rp(1,this.a).b(0,"LineString");i.Ma(null,this.o),i.nc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Au.rc=function(t,e){var o=this.b,i=new Rp(1,this.a).b(0,"Polygon");i.Ma(this.l,this.o),i.rc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Au.pc=function(t,e){var o=this.b,i=new Rp(1,this.a).b(0,"Polygon");i.Ma(this.l,this.o),i.pc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Au.Zb=function(t,e){var o=this.b,i=new Rp(1,this.a).b(0,"Circle");i.Ma(this.l,this.o),i.Zb(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Au.Ub=function(t){this.v=t},Au.Ma=function(t,e){this.l=t,this.o=e},(Au=Op.prototype).clear=function(){this.c=0,this.b={},this.i=this.a=null},Au.forEach=function(t,e){for(var o=this.a;o;)t.call(e,o.Yc,o.uc,this),o=o.Nb},Au.get=function(t){return O(!!(t=this.b[t]),15),t===this.i?t.Yc:(t===this.a?(this.a=this.a.Nb,this.a.vd=null):(t.Nb.vd=t.vd,t.vd.Nb=t.Nb),t.Nb=null,t.vd=this.i,(this.i=this.i.Nb=t).Yc)},Au.pop=function(){var t=this.a;return delete this.b[t.uc],t.Nb&&(t.Nb.vd=null),this.a=t.Nb,this.a||(this.i=null),--this.c,t.Yc},Au.replace=function(t,e){this.get(t),this.b[t].Yc=e},Au.set=function(t,e){O(!(t in this.b),16),e={uc:t,Nb:null,vd:this.i,Yc:e},this.i?this.i.Nb=e:this.a=e,this.i=e,this.b[t]=e,++this.c},e(Up,ss),(Au=Up.prototype).ka=function(){var e=this.i;e.isContextLost()||this.a.forEach(function(t){t&&e.deleteTexture(t.Ib)}),Se(this.f),ss.prototype.ka.call(this)},Au.xk=function(t,e){t=this.i;for(var o;1024<this.a.c-this.g;){if(o=this.a.a.Yc)t.deleteTexture(o.Ib);else{if(+this.a.a.uc==e.index)break;--this.g}this.a.pop()}},Au.U=function(){return"webgl"},Au.Yn=function(t){for(var e in t.preventDefault(),this.a.clear(),this.g=0,t=this.c)t[e].mg()},Au.Zn=function(){Xp(this),this.o.render()},Au.Jg=function(t){var e=this.f,o=this.i;if(o.isContextLost())return!1;if(!t)return this.l&&(this.b.style.display="none",this.l=!1),!1;this.u=t.focus,this.a.set((-t.index).toString(),null),++this.g,Bp(this,"precompose",t);var i=[],r=t.layerStatesArray;h(r);for(var n=t.viewState.resolution,s=0,a=r.length;s<a;++s){var p=r[s];!Kn(p,n)||"ready"!=p.yj||hs(this,p.layer).ng(t,p,e)&&i.push(p)}for(r=t.size[0]*t.pixelRatio,n=t.size[1]*t.pixelRatio,this.b.width==r&&this.b.height==n||(this.b.width=r,this.b.height=n),o.bindFramebuffer(36160,null),o.clearColor(0,0,0,0),o.clear(16384),o.enable(3042),o.viewport(0,0,this.b.width,this.b.height),s=0,a=i.length;s<a;++s)hs(this,(p=i[s]).layer).Gi(t,p,e);this.l||(this.b.style.display="",this.l=!0),as(t),1024<this.a.c-this.g&&t.postRenderFunctions.push(this.xk.bind(this)),this.j.b.length&&(t.postRenderFunctions.push(this.B),t.animate=!0),Bp(this,"postcompose",t),ls(this,t),t.postRenderFunctions.push(ps)},Au.Ea=function(t,e,o,i,r,n,s){if(this.i.isContextLost())return!1;for(var a=e.viewState,p=e.layerStatesArray,h=p.length-1;0<=h;--h){var l=p[h],u=l.layer;if(Kn(l,a.resolution)&&n.call(s,u)&&(l=hs(this,u).Ea(t,e,o,i,r)))return l}},Au.Ei=function(t,e,o,i,r){if(o=!1,this.i.isContextLost())return!1;for(var n=e.viewState,s=e.layerStatesArray,a=s.length-1;0<=a;--a){var p=s[a],h=p.layer;if(Kn(p,n.resolution)&&i.call(r,h)&&(o=hs(this,h).Ue(t,e)))return!0}return o},Au.Di=function(t,e,o,i,r){if(this.i.isContextLost())return!1;for(var n=e.viewState,s=e.layerStatesArray,a=s.length-1;0<=a;--a){var p=s[a],h=p.layer;if(Kn(p,n.resolution)&&r.call(i,h)&&(p=hs(this,h).lg(t,e,o,i)))return p}};var Vp=["canvas","webgl"];function Wp(t){je.call(this);var e=function(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var o={},i={};void 0===t.logo||"boolean"==typeof t.logo&&t.logo?i["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/":"string"==typeof(s=t.logo)?i[s]="":s instanceof HTMLElement?i[G(s).toString()]=s:s&&(O("string"==typeof s.href,44),O("string"==typeof s.src,45),i[s.src]=s.href);s=t.layers instanceof Vn?t.layers:new Vn({layers:t.layers}),o.layergroup=s,o.target=t.target,o.view=void 0!==t.view?t.view:new Er;var r,n,s=ss;void 0!==t.renderer?(Array.isArray(t.renderer)?r=t.renderer:"string"==typeof t.renderer?r=[t.renderer]:O(!1,46),0<=r.indexOf("dom")&&(r=r.concat(Vp))):r=Vp;var a=0;for(n=r.length;a<n;++a){var p=r[a];if("canvas"==p){if(Io){s=As;break}}else if("webgl"==p&&Xo){s=Up;break}}return r=void 0!==t.controls?Array.isArray(t.controls)?new Ne(t.controls.slice()):(O(t.controls instanceof Ne,47),t.controls):ao(),a=void 0!==t.interactions?Array.isArray(t.interactions)?new Ne(t.interactions.slice()):(O(t.interactions instanceof Ne,48),t.interactions):Gn(),t=void 0!==t.overlays?Array.isArray(t.overlays)?new Ne(t.overlays.slice()):(O(t.overlays instanceof Ne,49),t.overlays):new Ne,{controls:r,interactions:a,keyboardEventTarget:e,logos:i,overlays:t,Up:s,values:o}}(t);this.Cf=void 0!==t.loadTilesWhileAnimating&&t.loadTilesWhileAnimating,this.Df=void 0!==t.loadTilesWhileInteracting&&t.loadTilesWhileInteracting,this.If=void 0!==t.pixelRatio?t.pixelRatio:Lo,this.yf=e.logos,this.pa=function(){this.j=void 0,this.Sp.call(this,Date.now())}.bind(this),this.Yb=qn(),this.Jf=qn(),this.ad=0,this.I=this.R=this.T=this.g=this.c=null,this.a=document.createElement("DIV"),this.a.className="ol-viewport"+(ko?" 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.C=document.createElement("DIV"),this.C.className="ol-overlaycontainer",this.a.appendChild(this.C),this.D=document.createElement("DIV"),this.D.className="ol-overlaycontainer-stopevent";for(var o,i="click dblclick mousedown touchstart MSPointerDown pointerdown mousewheel wheel".split(" "),r=0,n=i.length;r<n;++r)de(this.D,i[r],Pe);for(o in this.a.appendChild(this.D),this.Sa=new fi(this,t.moveTolerance),Zo)de(this.Sa,Zo[o],this.Ih,this);this.va=e.keyboardEventTarget,this.u=null,de(this.a,"wheel",this.ld,this),de(this.a,"mousewheel",this.ld,this),this.l=e.controls,this.o=e.interactions,this.v=e.overlays,this.rg={},this.B=new e.Up(this.a,this),this.na=null,this.xb=[],this.$a=new xi(this.ql.bind(this),this.Wl.bind(this)),this.fa={},de(this,Le("layergroup"),this.El,this),de(this,Le("view"),this.Xl,this),de(this,Le("size"),this.Tl,this),de(this,Le("target"),this.Vl,this),this.H(e.values),this.l.forEach(function(t){t.setMap(this)},this),de(this.l,"add",function(t){t.element.setMap(this)},this),de(this.l,"remove",function(t){t.element.setMap(null)},this),this.o.forEach(function(t){t.setMap(this)},this),de(this.o,"add",function(t){t.element.setMap(this)},this),de(this.o,"remove",function(t){t.element.setMap(null)},this),this.v.forEach(this.kh,this),de(this.v,"add",function(t){this.kh(t.element)},this),de(this.v,"remove",function(t){var e=t.element.g;void 0!==e&&delete this.rg[e.toString()],t.element.setMap(null)},this)}function Zp(t){je.call(this),this.g=t.id,this.l=void 0===t.insertFirst||t.insertFirst,this.v=void 0===t.stopEvent||t.stopEvent,this.c=document.createElement("DIV"),this.c.className="ol-overlay-container ol-selectable",this.c.style.position="absolute",this.autoPan=void 0!==t.autoPan&&t.autoPan,this.j=t.autoPanAnimation||{},this.o=void 0!==t.autoPanMargin?t.autoPanMargin:20,this.a={re:"",Ie:"",nf:"",vf:"",visible:!0},this.f=null,de(this,Le(Hp),this.zl,this),de(this,Le(qp),this.Jl,this),de(this,Le(Jp),this.Nl,this),de(this,Le(_p),this.Pl,this),de(this,Le($p),this.Ql,this),void 0!==t.element&&this.lj(t.element),this.rj(void 0!==t.offset?t.offset:[0,0]),this.uj(void 0!==t.positioning?t.positioning:"top-left"),void 0!==t.position&&this.Ne(t.position)}function Kp(t,e){var o=t.getBoundingClientRect();return[t=o.left+window.pageXOffset,o=o.top+window.pageYOffset,t+e[0],o+e[1]]}function zp(t,e){t.a.visible!==e&&(t.c.style.display=e?"":"none",t.a.visible=e)}function Yp(t){var e,o,i,r,n=t.Me(),s=t.Yh();n&&n.c&&s?(s=n.Ja(s),e=n.Ob(),n=t.c.style,r=t.Dh(),o=t.Eh(),zp(t,!0),i=r[0],r=r[1],"bottom-right"==o||"center-right"==o||"top-right"==o?(""!==t.a.Ie&&(t.a.Ie=n.left=""),i=Math.round(e[0]-s[0]-i)+"px",t.a.nf!=i&&(t.a.nf=n.right=i)):(""!==t.a.nf&&(t.a.nf=n.right=""),"bottom-center"!=o&&"center-center"!=o&&"top-center"!=o||(i-=t.c.offsetWidth/2),i=Math.round(s[0]+i)+"px",t.a.Ie!=i&&(t.a.Ie=n.left=i)),"bottom-left"==o||"bottom-center"==o||"bottom-right"==o?(""!==t.a.vf&&(t.a.vf=n.top=""),s=Math.round(e[1]-s[1]-r)+"px",t.a.re!=s&&(t.a.re=n.bottom=s)):(""!==t.a.re&&(t.a.re=n.bottom=""),"center-left"!=o&&"center-center"!=o&&"center-right"!=o||(r-=t.c.offsetHeight/2),s=Math.round(s[1]+r)+"px",t.a.vf!=s&&(t.a.vf=n.top=s))):zp(t,!1)}e(Wp,je),(Au=Wp.prototype).kk=function(t){this.l.push(t)},Au.lk=function(t){this.o.push(t)},Au.ih=function(t){this.Kc().qd().push(t)},Au.jh=function(t){this.v.push(t)},Au.kh=function(t){var e=t.g;void 0!==e&&(this.rg[e.toString()]=t),t.setMap(this)},Au.ka=function(){Se(this.Sa),Se(this.B),be(this.a,"wheel",this.ld,this),be(this.a,"mousewheel",this.ld,this),this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0),this.j&&(cancelAnimationFrame(this.j),this.j=void 0),this.Le(null),je.prototype.ka.call(this)},Au.we=function(t,e,o){if(this.c)return t=this.Wa(t),o=o||{},this.B.Ea(t,this.c,void 0!==o.hitTolerance?o.hitTolerance*this.c.pixelRatio:0,e,null,o.layerFilter||Ui,null)},Au.Im=function(t,e,o,i,r){if(this.c)return this.B.Di(t,this.c,e,void 0!==o?o:null,i||Ui,void 0!==r?r:null)},Au.Yl=function(t,e){return!!this.c&&(t=this.Wa(t),e=e||{},this.B.Ei(t,this.c,void 0!==e.hitTolerance?e.hitTolerance*this.c.pixelRatio:0,e.layerFilter||Ui,null))},Au.Tf=function(t){return this.Wa(this.xe(t))},Au.xe=function(t){var e=this.a.getBoundingClientRect();return[(t=t.changedTouches?t.changedTouches[0]:t).clientX-e.left,t.clientY-e.top]},Au.ag=function(){return this.get("target")},Au.jd=function(){var t=this.ag();return void 0!==t?"string"==typeof t?document.getElementById(t):t:null},Au.Wa=function(t){var e=this.c;return e?ts(e.pixelToCoordinateTransform,t.slice()):null},Au.Lk=function(){return this.l},Au.fl=function(){return this.v},Au.el=function(t){return void 0!==(t=this.rg[t.toString()])?t:null},Au.Sk=function(){return this.o},Au.Kc=function(){return this.get("layergroup")},Au.Xh=function(){return this.Kc().qd()},Au.Ja=function(t){var e=this.c;return e?ts(e.coordinateToPixelTransform,t.slice(0,2)):null},Au.Ob=function(){return this.get("size")},Au.Z=function(){return this.get("view")},Au.sl=function(){return this.a},Au.ql=function(t,e,o,i){var r=this.c;return r&&e in r.wantedTiles&&r.wantedTiles[e][t.bb()]?(t=o[0]-r.focus[0],o=o[1]-r.focus[1],65536*Math.log(i)+Math.sqrt(t*t+o*o)/i):1/0},Au.ld=function(t,e){t=new xo(e||t.type,this,t),this.Ih(t)},Au.Ih=function(t){if(this.c){this.na=t.coordinate,t.frameState=this.c;var e,o=this.o.a;if(!1!==this.b(t))for(e=o.length-1;0<=e;e--){var i=o[e];if(i.c()&&!i.handleEvent(t))break}}},Au.Rl=function(){var t,e,o,i=this.c,r=this.$a;for(r.b.length&&(e=t=16,i&&((o=i.viewHints)[0]&&(t=this.Cf?8:0,e=2),o[1]&&(t=this.Df?8:0,e=2)),r.j<t&&(wi(r),Si(r,t,e))),t=0,e=(r=this.xb).length;t<e;++t)r[t](this,i);r.length=0},Au.Tl=function(){this.render()},Au.Vl=function(){var t;if(this.ag()&&(t=this.jd()),this.u){for(var e=0,o=this.u.length;e<o;++e)me(this.u[e]);this.u=null}t?(t.appendChild(this.a),t=this.va||t,this.u=[de(t,"keydown",this.ld,this),de(t,"keypress",this.ld,this)],this.f||(this.f=this.Ad.bind(this),window.addEventListener("resize",this.f,!1))):(qe(this.a),this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0)),this.Ad()},Au.Wl=function(){this.render()},Au.Lh=function(){this.render()},Au.Xl=function(){this.T&&(me(this.T),this.T=null),this.R&&(me(this.R),this.R=null);var t=this.Z();t&&(this.a.setAttribute("data-view",G(t)),this.T=de(t,"propertychange",this.Lh,this),this.R=de(t,"change",this.Lh,this)),this.render()},Au.El=function(){this.I&&(this.I.forEach(me),this.I=null);var t=this.Kc();t&&(this.I=[de(t,"propertychange",this.render,this),de(t,"change",this.render,this)]),this.render()},Au.Tp=function(){this.j&&cancelAnimationFrame(this.j),this.pa()},Au.render=function(){void 0===this.j&&(this.j=requestAnimationFrame(this.pa))},Au.Mp=function(t){return this.l.remove(t)},Au.Np=function(t){return this.o.remove(t)},Au.Pp=function(t){return this.Kc().qd().remove(t)},Au.Qp=function(t){return this.v.remove(t)},Au.Sp=function(t){var e=this.Ob(),o=this.Z(),i=V(),r=this.c,n=null;if(void 0!==e&&0<e[0]&&0<e[1]&&o&&Nr(o)){for(var n=Ir(o,this.c?this.c.viewHints:void 0),s=this.Kc().Yf(),a={},p=0,h=s.length;p<h;++p)a[G(s[p].layer)]=s[p];p=o.getState(),n={animate:!1,attributions:{},coordinateToPixelTransform:this.Yb,extent:i,focus:this.na||p.center,index:this.ad++,layerStates:a,layerStatesArray:s,logos:ht({},this.yf),pixelRatio:this.If,pixelToCoordinateTransform:this.Jf,postRenderFunctions:[],size:e,skippedFeatureUids:this.fa,tileQueue:this.$a,time:t,usedTiles:{},viewState:p,viewHints:n,wantedTiles:{}}}n&&(n.extent=Q(p.center,p.resolution,p.rotation,n.size,i)),this.c=n,this.B.Jg(n),n&&(n.animate&&this.render(),Array.prototype.push.apply(this.xb,n.postRenderFunctions),!r||this.g&&(st(this.g)||Z(n.extent,this.g))||(this.b(new wo("movestart",this,r)),this.g=I(this.g)),!this.g||n.viewHints[0]||n.viewHints[1]||Z(n.extent,this.g)||(this.b(new wo("moveend",this,n)),g(n.extent,this.g))),this.b(new wo("postrender",this,n)),setTimeout(this.Rl.bind(this),0)},Au.qj=function(t){this.set("layergroup",t)},Au.Qg=function(t){this.set("size",t)},Au.Le=function(t){this.set("target",t)},Au.iq=function(t){this.set("view",t)},Au.xj=function(t){t=G(t).toString(),this.fa[t]=!0,this.render()},Au.Ad=function(){var t,e=this.jd();e?(t=getComputedStyle(e),this.Qg([e.offsetWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)-parseFloat(t.borderRightWidth),e.offsetHeight-parseFloat(t.borderTopWidth)-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)-parseFloat(t.borderBottomWidth)])):this.Qg(void 0)},Au.Cj=function(t){t=G(t).toString(),delete this.fa[t],this.render()},e(Zp,je),(Au=Zp.prototype).Rd=function(){return this.get(Hp)},Au.Jm=function(){return this.g},Au.Me=function(){return this.get(qp)},Au.Dh=function(){return this.get(Jp)},Au.Yh=function(){return this.get(_p)},Au.Eh=function(){return this.get($p)},Au.zl=function(){for(var t=this.c;t.lastChild;)t.removeChild(t.lastChild);(t=this.Rd())&&this.c.appendChild(t)},Au.Jl=function(){this.f&&(qe(this.c),me(this.f),this.f=null);var t=this.Me();t&&(this.f=de(t,"postrender",this.render,this),Yp(this),t=this.v?t.D:t.C,this.l?t.insertBefore(this.c,t.childNodes[0]||null):t.appendChild(this.c))},Au.render=function(){Yp(this)},Au.Nl=function(){Yp(this)},Au.Pl=function(){var t,e,o,i,r,n,s;Yp(this),this.get(_p)&&this.autoPan&&((t=this.Me())&&t.jd()&&(e=Kp(t.jd(),t.Ob()),o=(s=this.Rd()).offsetWidth,r=getComputedStyle(s),o+=parseInt(r.marginLeft,10)+parseInt(r.marginRight,10),r=s.offsetHeight,i=getComputedStyle(s),n=Kp(s,[o,r=r+(parseInt(i.marginTop,10)+parseInt(i.marginBottom,10))]),s=this.o,N(e,n)||(o=n[0]-e[0],r=e[2]-n[2],i=n[1]-e[1],n=e[3]-n[3],e=[0,0],o<0?e[0]=o-s:r<0&&(e[0]=Math.abs(r)+s),i<0?e[1]=i-s:n<0&&(e[1]=Math.abs(n)+s),0===e[0]&&0===e[1])||(s=t.Z().wa(),e=[(s=t.Ja(s))[0]+e[0],s[1]+e[1]],t.Z().animate({center:t.Wa(e),duration:this.j.duration,easing:this.j.easing}))))},Au.Ql=function(){Yp(this)},Au.lj=function(t){this.set(Hp,t)},Au.setMap=function(t){this.set(qp,t)},Au.rj=function(t){this.set(Jp,t)},Au.Ne=function(t){this.set(_p,t)},Au.uj=function(t){this.set($p,t)};var Hp="element",qp="map",Jp="offset",_p="position",$p="positioning";function Qp(t){function e(t){t=a.Tf(t),p.a.Z().ob(t),window.removeEventListener("mousemove",o),window.removeEventListener("mouseup",e)}function o(t){t=a.Tf({clientX:t.clientX-l.offsetWidth/2,clientY:t.clientY+l.offsetHeight/2}),h.Ne(t)}t=t||{},this.j=void 0===t.collapsed||t.collapsed,this.o=void 0===t.collapsible||t.collapsible,this.o||(this.j=!1);var i=void 0!==t.className?t.className:"ol-overviewmap",r=void 0!==t.tipLabel?t.tipLabel:"Overview map",n=void 0!==t.collapseLabel?t.collapseLabel:"«";"string"==typeof n?(this.u=document.createElement("span"),this.u.textContent=n):this.u=n,"string"==typeof(n=void 0!==t.label?t.label:"»")?(this.D=document.createElement("span"),this.D.textContent=n):this.D=n;var s=this.o&&!this.j?this.u:this.D;(n=document.createElement("button")).setAttribute("type","button"),n.title=r,n.appendChild(s),de(n,"click",this.an,this),this.C=document.createElement("DIV"),this.C.className="ol-overviewmap-map";var a=this.c=new Wp({controls:new Ne,interactions:new Ne,view:t.view});t.layers&&t.layers.forEach(function(t){a.ih(t)},this),(r=document.createElement("DIV")).className="ol-overviewmap-box",r.style.boxSizing="border-box",this.l=new Zp({position:[0,0],positioning:"bottom-left",element:r}),this.c.jh(this.l),(r=document.createElement("div")).className=i+" ol-unselectable ol-control"+(this.j&&this.o?" ol-collapsed":"")+(this.o?"":" ol-uncollapsible"),r.appendChild(this.C),r.appendChild(n),Je.call(this,{element:r,render:t.render||th,target:t.target});var p=this,h=this.l,l=this.l.Rd();l.addEventListener("mousedown",function(){window.addEventListener("mousemove",o),window.addEventListener("mouseup",e)})}function th(){var t,e,o,i,r=this.a,n=this.c;r.c&&n.c&&(t=r.Ob(),r=r.Z().dd(t),i=n.Ob(),t=n.Z().dd(i),e=n.Ja(ot(r)),o=n.Ja(_(r)),n=Math.abs(e[0]-o[0]),e=Math.abs(e[1]-o[1]),o=i[0],i=i[1],n<.1*o||e<.1*i||.75*o<n||.75*i<e?eh(this):N(t,r)||(r=this.c,t=this.a.Z(),r.Z().ob(t.wa()))),oh(this)}function eh(t){var e=t.a;t=t.c;var o=e.Ob(),e=e.Z().dd(o);t=t.Z(),at(e,1/(.1*Math.pow(2,Math.log(7.5)/Math.LN2/2))),t.Qf(e)}function oh(t){var e,o,i,r,n,s,a=t.a,p=t.c;a.c&&p.c&&(i=a.Ob(),r=a.Z(),n=p.Z(),p=r.Qa(),a=t.l,e=t.l.Rd(),o=r.dd(i),i=n.Pa(),r=J(o),n=it(o),(t=t.a.Z().wa())&&(Ii(s=[r[0]-t[0],r[1]-t[1]],p),Ti(s,t)),a.Ne(s),e&&(e.style.width=Math.abs((r[0]-n[0])/i)+"px",e.style.height=Math.abs((n[1]-r[1])/i)+"px"))}function ih(t){t.element.classList.toggle("ol-collapsed"),t.j?He(t.u,t.D):He(t.D,t.u),t.j=!t.j;var e=t.c;t.j||e.c||(e.Ad(),eh(t),ve(e,"postrender",function(){oh(this)},t))}function rh(t){var e=void 0!==(t=t||{}).className?t.className:"ol-scale-line";this.o=document.createElement("DIV"),this.o.className=e+"-inner",this.c=document.createElement("DIV"),this.c.className=e+" ol-unselectable",this.c.appendChild(this.o),this.u=null,this.l=void 0!==t.minWidth?t.minWidth:64,this.j=!1,this.B=void 0,this.D="",Je.call(this,{element:this.c,render:t.render||sh,target:t.target}),de(this,Le(ph),this.T,this),this.I(t.units||"metric")}e(Qp,Je),(Au=Qp.prototype).setMap=function(t){var e=this.a;t!==e&&(e&&((e=e.Z())&&be(e,Le("rotation"),this.Ge,this),this.c.Le(null)),Je.prototype.setMap.call(this,t),t&&(this.c.Le(this.C),this.v.push(de(t,"propertychange",this.Kl,this)),this.c.Xh().dc()||this.c.qj(t.Kc()),t=t.Z()))&&(de(t,Le("rotation"),this.Ge,this),Nr(t)&&(this.c.Ad(),eh(this)))},Au.Kl=function(t){"view"===t.key&&((t=t.oldValue)&&be(t,Le("rotation"),this.Ge,this),de(t=this.a.Z(),Le("rotation"),this.Ge,this))},Au.Ge=function(){this.c.Z().Oe(this.a.Z().Qa())},Au.an=function(t){t.preventDefault(),ih(this)},Au.$m=function(){return this.o},Au.cn=function(t){this.o!==t&&(this.o=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.j&&ih(this))},Au.bn=function(t){this.o&&this.j!==t&&ih(this)},Au.Zm=function(){return this.j},Au.gl=function(){return this.c},e(rh,Je);var nh=[1,2,5];function sh(t){(t=t.frameState)?this.u=t.viewState:this.u=null,ah(this)}function ah(t){if(o=t.u){var e=(i=o.projection).sc(),o=Ft(i,o.resolution,o.center)*e,e=t.l*o,i="";"degrees"==(n=t.C())?(o/=i=gt.degrees,e<i/60?(i="″",o*=3600):e<i?(i="′",o*=60):i="°"):"imperial"==n?e<.9144?(i="in",o/=.0254):e<1609.344?(i="ft",o/=.3048):(i="mi",o/=1609.344):"nautical"==n?(o/=1852,i="nm"):"metric"==n?e<.001?(i="μm",o*=1e6):e<1?(i="mm",o*=1e3):e<1e3?i="m":(i="km",o/=1e3):"us"==n?e<.9144?(i="in",o*=39.37):e<1609.344?(i="ft",o/=.30480061):(i="mi",o/=1609.3472):O(!1,33);for(var r,n=3*Math.floor(Math.log(t.l*o)/Math.log(10));;){if(r=nh[(n%3+3)%3]*Math.pow(10,Math.floor(n/3)),e=Math.round(r/o),isNaN(e))return t.c.style.display="none",void(t.j=!1);if(e>=t.l)break;++n}o=r+" "+i,t.D!=o&&(t.o.innerHTML=o,t.D=o),t.B!=e&&(t.o.style.width=e+"px",t.B=e),t.j||(t.c.style.display="",t.j=!0)}else t.j&&(t.c.style.display="none",t.j=!1)}rh.prototype.C=function(){return this.get(ph)},rh.prototype.T=function(){ah(this)},rh.prototype.I=function(t){this.set(ph,t)};var ph="units";function hh(t){t=t||{},this.c=void 0,this.j=lh,this.D=this.l=0,this.I=null,this.na=!1,this.T=void 0!==t.duration?t.duration:200;var e=void 0!==t.className?t.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=e+"-thumb ol-unselectable";var i=document.createElement("div");i.className=e+" ol-unselectable ol-control",i.appendChild(o),this.o=new ri(i),de(this.o,"pointerdown",this.yl,this),de(this.o,"pointermove",this.wl,this),de(this.o,"pointerup",this.xl,this),de(i,"click",this.vl,this),de(o,"click",Pe),Je.call(this,{element:i,render:t.render||uh})}e(hh,Je),hh.prototype.ka=function(){Se(this.o),Je.prototype.ka.call(this)};var lh=0;function uh(t){var e,o,i,r,n;t.frameState&&(this.na||(e=(r=this.element).offsetWidth,o=r.offsetHeight,n=r.firstElementChild,i=getComputedStyle(n),r=n.offsetWidth+parseFloat(i.marginRight)+parseFloat(i.marginLeft),n=n.offsetHeight+parseFloat(i.marginTop)+parseFloat(i.marginBottom),this.I=[r,n],o<e?(this.j=1,this.D=e-r):(this.j=lh,this.l=o-n),this.na=!0),(t=t.frameState.viewState.resolution)!==this.c&&(this.c=t,ch(this,t)))}function ch(t,e){var o,i;e=1-(r=t.a.Z(),o=r.a,i=Math.log(o/r.f)/Math.log(2),function(t){return Math.log(o/t)/Math.log(2)/i}(e));var r=t.element.firstElementChild;1==t.j?r.style.left=t.D*e+"px":r.style.top=t.l*e+"px"}function fh(t,e){return t=t.a.Z(),o=t.a,i=Math.log(o/t.f)/Math.log(2),function(t){return o/Math.pow(2,t*i)}(1-e);var o,i}function yh(t){t=t||{},this.c=t.extent||null;var e=void 0!==t.className?t.className:"ol-zoom-extent",o=void 0!==t.label?t.label:"E",i=void 0!==t.tipLabel?t.tipLabel:"Fit to extent",r=document.createElement("button");r.setAttribute("type","button"),r.title=i,r.appendChild("string"==typeof o?document.createTextNode(o):o),de(r,"click",this.j,this),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(r),Je.call(this,{element:o,target:t.target})}function gh(t){je.call(this),t=t||{},this.a=null,de(this,Le(wh),this.vm,this),this.gg(void 0!==t.tracking&&t.tracking)}(Au=hh.prototype).setMap=function(t){Je.prototype.setMap.call(this,t),t&&t.render()},Au.vl=function(t){var e=this.a.Z();t=fh(this,x(1===this.j?(t.offsetX-this.I[0]/2)/this.D:(t.offsetY-this.I[1]/2)/this.l,0,1)),e.animate({resolution:e.constrainResolution(t),duration:this.T,easing:eo})},Au.yl=function(t){this.u||t.b.target!==this.element.firstElementChild||(Fr(this.a.Z(),1,1),this.C=t.clientX,this.B=t.clientY,this.u=!0)},Au.wl=function(t){var e;this.u&&(e=this.element.firstElementChild,this.c=fh(this,x(1===this.j?(t.clientX-this.C+parseInt(e.style.left,10))/this.D:(t.clientY-this.B+parseInt(e.style.top,10))/this.l,0,1)),this.a.Z().Vc(this.c),ch(this,this.c),this.C=t.clientX,this.B=t.clientY)},Au.xl=function(){var t;this.u&&(Fr(t=this.a.Z(),1,-1),t.animate({resolution:t.constrainResolution(this.c),duration:this.T,easing:eo}),this.u=!1,this.B=this.C=void 0)},e(yh,Je),yh.prototype.j=function(t){t.preventDefault(),t=this.a.Z();var e=this.c||t.v.G();t.Qf(e)},e(gh,je),(Au=gh.prototype).ka=function(){this.gg(!1),je.prototype.ka.call(this)},Au.ap=function(t){var e;null!==t.alpha&&(e=M(t.alpha),this.set(dh,e),"boolean"==typeof t.absolute&&t.absolute?this.set(mh,e):"number"==typeof t.webkitCompassHeading&&-1!=t.webkitCompassAccuracy&&this.set(mh,M(t.webkitCompassHeading))),null!==t.beta&&this.set(vh,M(t.beta)),null!==t.gamma&&this.set(bh,M(t.gamma)),this.s()},Au.Fk=function(){return this.get(dh)},Au.Ik=function(){return this.get(vh)},Au.Ok=function(){return this.get(bh)},Au.um=function(){return this.get(mh)},Au.Th=function(){return this.get(wh)},Au.vm=function(){var t;No&&((t=this.Th())&&!this.a?this.a=de(window,"deviceorientation",this.ap,this):t||null===this.a||(me(this.a),this.a=null))},Au.gg=function(t){this.set(wh,t)};var dh="alpha",vh="beta",bh="gamma",mh="heading",wh="tracking";function xh(t){this.f=t.opacity,this.l=t.rotateWithView,this.g=t.rotation,this.a=t.scale,this.v=t.snapToPixel}function Sh(t){this.D=this.u=this.c=null,this.Va=void 0!==t.fill?t.fill:null,this.oa=[0,0],this.o=t.points,this.b=void 0!==t.radius?t.radius:t.radius1,this.i=t.radius2,this.j=void 0!==t.angle?t.angle:0,this.Ya=void 0!==t.stroke?t.stroke:null,this.B=this.ra=this.C=null,this.S=t.atlasManager,Mh(this,this.S),xh.call(this,{opacity:1,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,rotation:void 0!==t.rotation?t.rotation:0,scale:1,snapToPixel:void 0===t.snapToPixel||t.snapToPixel})}function Mh(t,e){var o,i="",r="",n=0,s=null,a=0;t.Ya&&(o=ze(o=null===(o=t.Ya.a)?gs:o),void 0===(a=t.Ya.c)&&(a=1),s=t.Ya.i,Ro||(s=null),void 0===(r=t.Ya.j)&&(r="round"),void 0===(i=t.Ya.f)&&(i="round"),void 0===(n=t.Ya.o)&&(n=10));var p,h=2*(t.b+a)+1,i={strokeStyle:o,zj:a,size:h,lineCap:i,lineDash:s,lineJoin:r,miterLimit:n};void 0===e?(p=Ye(h,h),t.u=p.canvas,e=h=t.u.width,t.rh(i,p,0,0),t.Va?t.D=t.u:(p=Ye(i.size,i.size),t.D=p.canvas,t.qh(i,p,0,0))):(h=Math.round(h),(r=!t.Va)&&(p=t.qh.bind(t,i)),n=t.Ya?(void 0===(n=t.Ya).b&&(n.b="s",n.b=n.a?"string"==typeof n.a?n.b+n.a:n.b+G(n.a).toString():n.b+"-",n.b+=","+(void 0!==n.f?n.f.toString():"-")+","+(n.i?n.i.toString():"-")+","+(void 0!==n.g?n.g:"-")+","+(void 0!==n.j?n.j:"-")+","+(void 0!==n.o?n.o.toString():"-")+","+(void 0!==n.c?n.c.toString():"-")),n.b):"-",s=t.Va?(void 0===(s=t.Va).a&&(s.a=s.b instanceof CanvasPattern||s.b instanceof CanvasGradient?G(s.b).toString():"f"+(s.b?Xe(s.b):"-")),s.a):"-",t.c&&n==t.c[1]&&s==t.c[2]&&t.b==t.c[3]&&t.i==t.c[4]&&t.j==t.c[5]&&t.o==t.c[6]||(t.c=["r"+n+s+(void 0!==t.b?t.b.toString():"-")+(void 0!==t.i?t.i.toString():"-")+(void 0!==t.j?t.j.toString():"-")+(void 0!==t.o?t.o.toString():"-"),n,s,t.b,t.i,t.j,t.o]),p=e.add(t.c[0],h,h,t.rh.bind(t,i),p),t.u=p.image,t.oa=[p.offsetX,p.offsetY],e=p.image.width,t.D=r?p.Zl:t.u),t.C=[h/2,h/2],t.ra=[h,h],t.B=[e,e]}function Ph(t){Sh.call(this,{points:1/0,fill:(t=t||{}).fill,radius:t.radius,snapToPixel:t.snapToPixel,stroke:t.stroke,atlasManager:t.atlasManager})}function Ah(t){t=t||{},this.b=void 0!==t.color?t.color:null,this.a=void 0}function Eh(t){t=t||{},this.Gc=null,this.Za=Rh,void 0!==t.geometry&&this.Ra(t.geometry),this.Va=void 0!==t.fill?t.fill:null,this.M=void 0!==t.image?t.image:null,this.Ya=void 0!==t.stroke?t.stroke:null,this.Ia=void 0!==t.text?t.text:null,this.Fj=t.zIndex}function Th(t){var e;return"function"!=typeof t&&(e=Array.isArray(t)?t:(O(t instanceof Eh,41),[t]),t=function(){return e}),t}(Au=xh.prototype).Ze=function(){return this.f},Au.$e=function(){return this.l},Au.af=function(){return this.g},Au.bf=function(){return this.a},Au.Ae=function(){return this.v},Au.td=function(t){this.f=t},Au.cf=function(t){this.g=t},Au.ud=function(t){this.a=t},e(Sh,xh),(Au=Sh.prototype).clone=function(){var t=new Sh({fill:this.Fa()?this.Fa().clone():void 0,points:this.o,radius:this.b,radius2:this.i,angle:this.j,snapToPixel:this.v,stroke:this.Ga()?this.Ga().clone():void 0,rotation:this.g,rotateWithView:this.l,atlasManager:this.S});return t.td(this.f),t.ud(this.a),t},Au.Hc=function(){return this.C},Au.Pi=function(){return this.j},Au.Fa=function(){return this.Va},Au.qg=function(){return this.D},Au.Y=function(){return this.u},Au.ye=function(){return this.B},Au.Ye=function(){return 2},Au.Oc=function(){return this.oa},Au.Qi=function(){return this.o},Au.Ri=function(){return this.b},Au.Fh=function(){return this.i},Au.ic=function(){return this.ra},Au.Ga=function(){return this.Ya},Au.Nh=function(){},Au.load=function(){},Au.Bj=function(){},Au.rh=function(t,e,o,i){e.setTransform(1,0,0,1,0,0),e.translate(o,i),e.beginPath();var r=this.o;if(1/0===r)e.arc(t.size/2,t.size/2,this.b,0,2*Math.PI,!0);else{var n=void 0!==this.i?this.i:this.b;for(n!==this.b&&(r*=2),o=0;o<=r;o++){i=2*o*Math.PI/r-Math.PI/2+this.j;var s=o%2?n:this.b;e.lineTo(t.size/2+s*Math.cos(i),t.size/2+s*Math.sin(i))}}this.Va&&(null===(o=this.Va.b)&&(o=fs),e.fillStyle=ze(o),e.fill()),this.Ya&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.zj,t.lineDash&&e.setLineDash(t.lineDash),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke()),e.closePath()},Au.qh=function(t,e,o,i){var r;if(e.setTransform(1,0,0,1,0,0),e.translate(o,i),e.beginPath(),o=this.o,1/0===o)e.arc(t.size/2,t.size/2,this.b,0,2*Math.PI,!0);else for((i=void 0!==this.i?this.i:this.b)!==this.b&&(o*=2),r=0;r<=o;r++){var n=2*r*Math.PI/o-Math.PI/2+this.j,s=r%2?i:this.b;e.lineTo(t.size/2+s*Math.cos(n),t.size/2+s*Math.sin(n))}e.fillStyle=fs,e.fill(),this.Ya&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.zj,t.lineDash&&e.setLineDash(t.lineDash),e.stroke()),e.closePath()},e(Ph,Sh),Ph.prototype.clone=function(){var t=new Ph({fill:this.Fa()?this.Fa().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,radius:this.b,snapToPixel:this.v,atlasManager:this.S});return t.td(this.f),t.ud(this.a),t},Ph.prototype.Uc=function(t){this.b=t,Mh(this,this.S)},Ah.prototype.clone=function(){var t=this.b;return new Ah({color:t&&t.slice?t.slice():t||void 0})},Ah.prototype.i=function(){return this.b},Ah.prototype.c=function(t){this.b=t,this.a=void 0},(Au=Eh.prototype).clone=function(){var t=this.V();return new Eh({geometry:t=t&&t.clone?t.clone():t,fill:this.Fa()?this.Fa().clone():void 0,image:this.Y()?this.Y().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,text:this.Na()?this.Na().clone():void 0,zIndex:this.Ba()})},Au.V=function(){return this.Gc},Au.Pk=function(){return this.Za},Au.Fa=function(){return this.Va},Au.pf=function(t){this.Va=t},Au.Y=function(){return this.M},Au.Og=function(t){this.M=t},Au.Ga=function(){return this.Ya},Au.qf=function(t){this.Ya=t},Au.Na=function(){return this.Ia},Au.xd=function(t){this.Ia=t},Au.Ba=function(){return this.Fj},Au.Ra=function(e){"function"==typeof e?this.Za=e:"string"==typeof e?this.Za=function(t){return t.get(e)}:e?e&&(this.Za=function(){return e}):this.Za=Rh,this.Gc=e},Au.Vb=function(t){this.Fj=t};var jh=null;function Ch(){var t,e;return jh||(t=new Ah({color:"rgba(255,255,255,0.4)"}),e=new Ga({color:"#3399CC",width:1.25}),jh=[new Eh({image:new Ph({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]),jh}function Lh(){var t={},e=[255,255,255,1],o=[0,153,255,1];return t.Polygon=[new Eh({fill:new Ah({color:[255,255,255,.5]})})],t.MultiPolygon=t.Polygon,t.LineString=[new Eh({stroke:new Ga({color:e,width:5})}),new Eh({stroke:new Ga({color:o,width:3})})],t.MultiLineString=t.LineString,t.Circle=t.Polygon.concat(t.LineString),t.Point=[new Eh({image:new Ph({radius:6,fill:new Ah({color:o}),stroke:new Ga({color:e,width:1.5})}),zIndex:1/0})],t.MultiPoint=t.Point,t.GeometryCollection=t.Polygon.concat(t.LineString,t.Point),t}function Rh(t){return t.V()}function Ih(t){je.call(this),this.a=void 0,this.c="geometry",this.g=null,this.j=void 0,this.f=null,de(this,Le(this.c),this.Ee,this),void 0!==t&&(t instanceof Bi||!t?this.Ra(t):this.H(t))}e(Ih,je),(Au=Ih.prototype).clone=function(){var t=new Ih(this.N());t.Tc(this.c);var e=this.V();return e&&t.Ra(e.clone()),(e=this.g)&&t.hg(e),t},Au.V=function(){return this.get(this.c)},Au.wm=function(){return this.a},Au.Qk=function(){return this.c},Au.xm=function(){return this.g},Au.Lc=function(){return this.j},Au.Al=function(){this.s()},Au.Ee=function(){this.f&&(me(this.f),this.f=null);var t=this.V();t&&(this.f=de(t,"change",this.Al,this)),this.s()},Au.Ra=function(t){this.set(this.c,t)},Au.hg=function(t){this.j=(this.g=t)?function(e){var t;{var o;t="function"==typeof e?2==e.length?function(t){return e(this,t)}:e:(o=Array.isArray(e)?e:(O(e instanceof Eh,41),[e]),function(){return o})}return t}(t):void 0,this.s()},Au.jc=function(t){this.a=t,this.s()},Au.Tc=function(t){be(this,Le(this.c),this.Ee,this),this.c=t,de(this,Le(this.c),this.Ee,this),this.Ee()};var Nh=document.implementation.createDocument("","",null);function Fh(t,e){return Nh.createElementNS(t,e)}function kh(t,e){return function t(e,o,i){if(e.nodeType==Node.CDATA_SECTION_NODE||e.nodeType==Node.TEXT_NODE)o?i.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):i.push(e.nodeValue);else for(e=e.firstChild;e;e=e.nextSibling)t(e,o,i);return i}(t,e,[]).join("")}function Dh(t){return t instanceof Document}function Oh(t){return t instanceof Node}function Uh(t){return(new DOMParser).parseFromString(t,"application/xml")}function Gh(o,i){return function(t,e){void 0!==(t=o.call(i,t,e))&&c(e[e.length-1],t)}}function Bh(o,i){return function(t,e){void 0!==(t=o.call(void 0!==i?i:this,t,e))&&e[e.length-1].push(t)}}function Xh(o,i){return function(t,e){void 0!==(t=o.call(void 0!==i?i:this,t,e))&&(e[e.length-1]=t)}}function Vh(i){return function(t,e){var o=i.call(this,t,e);void 0!==o&&(e=e[e.length-1],((t=t.localName)in e?e[t]:e[t]=[]).push(o))}}function Wh(i,r){return function(t,e){var o=i.call(this,t,e);void 0!==o&&(e[e.length-1][void 0!==r?r:t.localName]=o)}}function Zh(i,r){return function(t,e,o){i.call(void 0!==r?r:this,t,e,o),o[o.length-1].node.appendChild(t)}}function Kh(r){var n,s;return function(t,e,o){var i;n||(n={},(i={})[t.localName]=r,n[t.namespaceURI]=i,s=zh(t.localName)),$h(n,s,e,o)}}function zh(i,r){return function(t,e,o){return t=e[e.length-1].node,void 0===(e=i)&&(e=o),Fh(o=void 0===(o=r)?t.namespaceURI:o,e)}}var Yh=zh();function Hh(t,e){for(var o=e.length,i=Array(o),r=0;r<o;++r)i[r]=t[e[r]];return i}function qh(t,e,o){o=void 0!==o?o:{};for(var i=0,r=t.length;i<r;++i)o[t[i]]=e;return o}function Jh(t,e,o,i){for(e=e.firstElementChild;e;e=e.nextElementSibling){var r=t[e.namespaceURI];void 0!==r&&(r=r[e.localName])&&r.call(i,e,o)}}function _h(t,e,o,i,r){return i.push(t),Jh(e,o,i,r),i.pop()}function $h(t,e,o,i,r,n){for(var s,a,p=(void 0!==r?r:o).length,h=0;h<p;++h)void 0!==(s=o[h])&&(void 0!==(a=e.call(n,s,i,void 0!==r?r[h]:void 0))&&t[a.namespaceURI][a.localName].call(n,a,s,i))}function Qh(t,e,o,i,r,n,s){r.push(t),$h(e,o,i,r,n,s),r.pop()}function tl(r,n,s,a){return function(t,e,o){var i=new XMLHttpRequest;i.open("GET","function"==typeof r?r(t,e,o):r,!0),"arraybuffer"==n.U()&&(i.responseType="arraybuffer"),i.onload=function(){var t,e;!i.status||200<=i.status&&i.status<300?("json"==(t=n.U())||"text"==t?e=i.responseText:"xml"==t?(e=i.responseXML)||(e=Uh(i.responseText)):"arraybuffer"==t&&(e=i.response),e?s.call(this,n.Oa(e,{featureProjection:o}),n.kb(e)):a.call(this)):a.call(this)}.bind(this),i.onerror=function(){a.call(this)}.bind(this),i.send()}}function el(t,e){return tl(t,e,function(t){this.cd(t)},w)}function ol(){this.f=this.defaultDataProjection=null}function il(t,e,o){var i;return o&&(i={dataProjection:o.dataProjection||t.kb(e),featureProjection:o.featureProjection}),rl(t,i)}function rl(t,e){return ht({dataProjection:t.defaultDataProjection,featureProjection:t.f},e)}function nl(t,e,o){var i,r=o?Bt(o.featureProjection):null,n=o?Bt(o.dataProjection):null,r=r&&n&&!Xt(r,n)?t instanceof Bi?(e?t.clone():t).tb(e?r:n,e?n:r):Yt(t,n,r):t;return e&&o&&void 0!==o.decimals&&(i=Math.pow(10,o.decimals),(r=r===t?r.clone():r).Dc(function(t){for(var e=0,o=t.length;e<o;++e)t[e]=Math.round(t[e]*i)/i;return t})),r}function sl(){ol.call(this)}function al(t){return"string"==typeof t?(t=JSON.parse(t))?t:null:null!==t?t:null}function pl(t,e,o,i,r,n){var s=NaN,a=NaN;if(1===(p=(o-e)/i))s=t[e],a=t[e+1];else if(2==p)s=(1-r)*t[e]+r*t[e+i],a=(1-r)*t[e+1]+r*t[e+i+1];else if(p){for(var a=t[e],p=t[e+1],h=0,s=[0],l=e+i;l<o;l+=i){var u=t[l],c=t[l+1],h=h+Math.sqrt((u-a)*(u-a)+(c-p)*(c-p));s.push(h),a=u,p=c}for(o=r*h,p=0,h=s.length,l=!1;p<h;)(a=+D(s[r=p+(h-p>>1)],o))<0?p=r+1:(h=r,l=!a);a=(r=l?p:~p)<0?(o=(o-s[-r-2])/(s[-r-1]-s[-r-2]),s=f(t[e+=(-r-2)*i],t[e+i],o),f(t[e+1],t[e+i+1],o)):(s=t[e+r*i],t[e+r*i+1])}return n?(n[0]=s,n[1]=a,n):[s,a]}function hl(t,e,o,i,r,n){if(o==e)return null;if(r<t[e+i-1])return n?((o=t.slice(e,e+i))[i-1]=r,o):null;if(t[o-1]<r)return n?((o=t.slice(o-i,o))[i-1]=r,o):null;if(r==t[e+i-1])return t.slice(e,e+i);for(e/=i,o/=i;e<o;)r<t[((n=e+o>>1)+1)*i-1]?o=n:e=n+1;if(r==(o=t[e*i-1]))return t.slice((e-1)*i,(e-1)*i+i);var s;for(n=(r-o)/(t[(e+1)*i-1]-o),o=[],s=0;s<i-1;++s)o.push(f(t[(e-1)*i+s],t[e*i+s],n));return o.push(r),o}function ll(t,e){Wi.call(this),this.c=null,this.u=this.D=this.j=-1,this.ma(t,e)}function ul(t){return t.j!=t.i&&(t.c=t.wh(.5,t.c),t.j=t.i),t.c}function cl(t,e){Wi.call(this),this.c=[],this.j=this.u=-1,this.ma(t,e)}function fl(t){var e=[],o=t.A,i=0,r=t.c;t=t.a;for(var n=0,s=r.length;n<s;++n){var a=r[n];c(e,i=pl(o,i,a,t,.5)),i=a}return e}function yl(t,e){for(var o=t.ja,i=[],r=[],n=0,s=e.length;n<s;++n){var a=e[n];n||(o=a.ja),c(i,a.ga()),r.push(i.length)}t.ba(o,i,r)}function gl(t,e){Wi.call(this),this.ma(t,e)}function dl(t,e){Wi.call(this),this.c=[],this.u=-1,this.D=null,this.I=this.C=this.B=-1,this.j=null,this.ma(t,e)}function vl(t){if(t.u!=t.i){var e=t.A,o=t.c,i=t.a,r=0,n=[],s=0;for(h=o.length;s<h;++s){var a=o[s],r=W(e,r,a[0],i);n.push((r[0]+r[2])/2,(r[1]+r[3])/2),r=a[a.length-1]}for(e=bl(t),o=t.c,i=t.a,h=[],a=s=0,r=o.length;a<r;++a)var p=o[a],h=cr(e,s,p,i,n,2*a,h),s=p[p.length-1];t.D=h,t.u=t.i}return t.D}function bl(t){if(t.I!=t.i){var e=t.A;t:{for(var o=t.c,i=0,r=o.length;i<r;++i)if(!vr(e,o[i],t.a,void 0)){o=!1;break t}o=!0}o?t.j=e:(t.j=e.slice(),t.j.length=mr(t.j,t.c,t.a)),t.I=t.i}return t.j}function ml(t,e,o,i){Ki(t,e,o),t.c=i,t.s()}function wl(t,e){for(var o=t.ja,i=[],r=[],n=0,s=e.length;n<s;++n){var a=e[n];n||(o=a.ja);for(var p=i.length,h=a.Bb(),l=0,u=h.length;l<u;++l)h[l]+=p;c(i,a.ga()),r.push(h)}ml(t,o,i,r)}function xl(t){t=t||{},ol.call(this),this.b=t.geometryName}function Sl(t,e){if(!t)return null;if("number"==typeof t.x&&"number"==typeof t.y)var o="Point";else if(t.points)o="MultiPoint";else if(t.paths)o=1===t.paths.length?"LineString":"MultiLineString";else if(t.rings){for(var i=t.rings,r=Ml(t),n=[],s=[],o=[],a=0,p=i.length;a<p;++a)n.length=0,er(n,0,i[a],r.length),dr(n,0,n.length,r.length)?s.push([i[a]]):o.push(i[a]);for(;o.length;){for(i=o.shift(),r=!1,a=s.length-1;0<=a;a--)if(N(new ar(s[a][0]).G(),new ar(i).G())){s[a].push(i),r=!0;break}r||s.push([i.reverse()])}t=ht({},t),1===s.length?(o="Polygon",t.rings=s[0]):(o="MultiPolygon",t.rings=s)}return nl((0,Al[o])(t),!1,e)}function Ml(t){var e="XY";return!0===t.hasZ&&!0===t.hasM?e="XYZM":!0===t.hasZ?e="XYZ":!0===t.hasM&&(e="XYM"),e}function Pl(t){return{hasZ:"XYZ"===(t=t.ja)||"XYZM"===t,hasM:"XYM"===t||"XYZM"===t}}e(sl,ol),(Au=sl.prototype).U=function(){return"json"},Au.Tb=function(t,e){return this.Rc(al(t),il(this,t,e))},Au.Oa=function(t,e){return this.yg(al(t),il(this,t,e))},Au.Sc=function(t,e){return this.Cg(al(t),il(this,t,e))},Au.kb=function(t){return this.Fg(al(t))},Au.Bd=function(t,e){return JSON.stringify(this.Zc(t,e))},Au.Wb=function(t,e){return JSON.stringify(this.he(t,e))},Au.$c=function(t,e){return JSON.stringify(this.je(t,e))},e(ll,Wi),(Au=ll.prototype).mk=function(t){this.A?c(this.A,t):this.A=t.slice(),this.s()},Au.clone=function(){var t=new ll(null);return t.ba(this.ja,this.A.slice()),t},Au.Kb=function(t,e,o,i){return i<E(this.G(),t,e)?i:(this.u!=this.i&&(this.D=Math.sqrt(Ji(this.A,0,this.A.length,this.a,0)),this.u=this.i),$i(this.A,0,this.A.length,this.a,this.D,!1,t,e,o,i))},Au.Ck=function(t,e){return fr(this.A,0,this.A.length,this.a,t,e)},Au.nn=function(t,e){return"XYM"!=this.ja&&"XYZM"!=this.ja?null:hl(this.A,0,this.A.length,this.a,t,void 0!==e&&e)},Au.X=function(){return ir(this.A,0,this.A.length,this.a)},Au.wh=function(t,e){return pl(this.A,0,this.A.length,this.a,t,e)},Au.pn=function(){for(var t=this.A,e=this.a,o=t[0],i=t[1],r=0,n=0+e;n<this.A.length;n+=e)var s=t[n],a=t[n+1],r=r+Math.sqrt((s-o)*(s-o)+(a-i)*(a-i)),o=s,i=a;return r},Au.hd=function(t){var e=[];return e.length=nr(this.A,0,this.A.length,this.a,t,e,0),(t=new ll(null)).ba("XY",e),t},Au.U=function(){return"LineString"},Au.Xa=function(t){return yr(this.A,0,this.A.length,this.a,t)},Au.ma=function(t,e){t?(zi(this,e,t,1),this.A||(this.A=[]),this.A.length=er(this.A,0,t,this.a),this.s()):this.ba("XY",null)},Au.ba=function(t,e){Ki(this,t,e),this.s()},e(cl,Wi),(Au=cl.prototype).nk=function(t){this.A?c(this.A,t.ga().slice()):this.A=t.ga().slice(),this.c.push(this.A.length),this.s()},Au.clone=function(){var t=new cl(null);return t.ba(this.ja,this.A.slice(),this.c.slice()),t},Au.Kb=function(t,e,o,i){return i<E(this.G(),t,e)?i:(this.j!=this.i&&(this.u=Math.sqrt(_i(this.A,0,this.c,this.a,0)),this.j=this.i),Qi(this.A,0,this.c,this.a,this.u,!1,t,e,o,i))},Au.rn=function(t,e,o){return"XYM"!=this.ja&&"XYZM"!=this.ja||!this.A.length?null:function(t,e,o,i,r,n){var s=0;if(n)return hl(t,s,e[e.length-1],o,i,r);if(i<t[o-1])return r?((t=t.slice(0,o))[o-1]=i,t):null;if(t[t.length-1]<i)return r?((t=t.slice(t.length-o))[o-1]=i,t):null;for(r=0,n=e.length;r<n;++r){var a=e[r];if(s!=a){if(i<t[s+o-1])break;if(i<=t[a-1])return hl(t,s,a,o,i,!1);s=a}}return null}(this.A,this.c,this.a,t,void 0!==e&&e,void 0!==o&&o)},Au.X=function(){return rr(this.A,0,this.c,this.a)},Au.Bb=function(){return this.c},Au.Yk=function(t){if(t<0||this.c.length<=t)return null;var e=new ll(null);return e.ba(this.ja,this.A.slice(t?this.c[t-1]:0,this.c[t])),e},Au.gd=function(){for(var t=this.A,e=this.c,o=this.ja,i=[],r=0,n=0,s=e.length;n<s;++n){var a=e[n],p=new ll(null);p.ba(o,t.slice(r,a)),i.push(p),r=a}return i},Au.hd=function(t){for(var e=[],o=[],i=this.A,r=this.c,n=this.a,s=0,a=0,p=0,h=r.length;p<h;++p){var l=r[p],a=nr(i,s,l,n,t,e,a);o.push(a),s=l}return e.length=a,(t=new cl(null)).ba("XY",e,o),t},Au.U=function(){return"MultiLineString"},Au.Xa=function(t){t:{for(var e=this.A,o=this.c,i=this.a,r=0,n=0,s=o.length;n<s;++n){if(yr(e,r,o[n],i,t)){t=!0;break t}r=o[n]}t=!1}return t},Au.ma=function(t,e){t?(zi(this,e,t,2),this.A||(this.A=[]),t=or(this.A,0,t,this.a,this.c),this.A.length=t.length?t[t.length-1]:0,this.s()):this.ba("XY",null,this.c)},Au.ba=function(t,e,o){Ki(this,t,e),this.c=o,this.s()},e(gl,Wi),(Au=gl.prototype).qk=function(t){this.A?c(this.A,t.ga()):this.A=t.ga().slice(),this.s()},Au.clone=function(){var t=new gl(null);return t.ba(this.ja,this.A.slice()),t},Au.Kb=function(t,e,o,i){if(i<E(this.G(),t,e))return i;for(var r=this.A,n=this.a,s=0,a=r.length;s<a;s+=n){var p=y(t,e,r[s],r[s+1]);if(p<i){for(i=p,p=0;p<n;++p)o[p]=r[s+p];o.length=n}}return i},Au.X=function(){return ir(this.A,0,this.A.length,this.a)},Au.il=function(t){var e=this.A?this.A.length/this.a:0;return t<0||e<=t?null:((e=new hr(null)).ba(this.ja,this.A.slice(t*this.a,(t+1)*this.a)),e)},Au.Zd=function(){for(var t=this.A,e=this.ja,o=this.a,i=[],r=0,n=t.length;r<n;r+=o){var s=new hr(null);s.ba(e,t.slice(r,r+o)),i.push(s)}return i},Au.U=function(){return"MultiPoint"},Au.Xa=function(t){for(var e=this.A,o=this.a,i=0,r=e.length;i<r;i+=o)if(j(t,e[i],e[i+1]))return!0;return!1},Au.ma=function(t,e){t?(zi(this,e,t,1),this.A||(this.A=[]),this.A.length=er(this.A,0,t,this.a),this.s()):this.ba("XY",null)},Au.ba=function(t,e){Ki(this,t,e),this.s()},e(dl,Wi),(Au=dl.prototype).rk=function(t){if(this.A){var e=this.A.length;c(this.A,t.ga());for(var o=0,i=(t=t.Bb().slice()).length;o<i;++o)t[o]+=e}else this.A=t.ga().slice(),t=t.Bb().slice(),this.c.push();this.c.push(t),this.s()},Au.clone=function(){for(var t=new dl(null),e=this.c.length,o=Array(e),i=0;i<e;++i)o[i]=this.c[i].slice();return ml(t,this.ja,this.A.slice(),o),t},Au.Kb=function(t,e,o,i){if(i<E(this.G(),t,e))return i;if(this.C!=this.i){for(var r=this.c,n=0,s=0,a=0,p=r.length;a<p;++a)var h=r[a],s=_i(this.A,n,h,this.a,s),n=h[h.length-1];this.B=Math.sqrt(s),this.C=this.i}r=bl(this),n=this.c,s=this.a;for(var a=this.B,h=[NaN,NaN],l=p=0,u=n.length;l<u;++l){var c=n[l];i=Qi(r,p,c,s,a,!0,t,e,o,i,h),p=c[c.length-1]}return i},Au.Mc=function(t,e){t:{var o=bl(this),i=this.c,r=0;if(i.length)for(var n=0,s=i.length;n<s;++n){var a=i[n];if(ur(o,r,a,this.a,t,e)){t=!0;break t}r=a[a.length-1]}t=!1}return t},Au.sn=function(){for(var t=bl(this),e=this.c,o=0,i=0,r=0,n=e.length;r<n;++r)var s=e[r],i=i+Hi(t,o,s,this.a),o=s[s.length-1];return i},Au.X=function(t){void 0!==t?mr(e=bl(this).slice(),this.c,this.a,t):e=this.A,t=e;for(var e=this.c,o=this.a,i=0,r=[],n=0,s=0,a=e.length;s<a;++s){var p=e[s];r[n++]=rr(t,i,p,o,r[n]),i=p[p.length-1]}return r.length=n,r},Au.Uk=function(){var t=new gl(null);return t.ba("XY",vl(this).slice()),t},Au.hd=function(t){var e=[],o=[],i=this.A,r=this.c,n=this.a;t=Math.sqrt(t);for(var s=0,a=0,p=0,h=r.length;p<h;++p){var l=r[p],u=[],a=sr(i,s,l,n,t,e,a,u);o.push(u),s=l[l.length-1]}return e.length=a,ml(i=new dl(null),"XY",e,o),i},Au.jl=function(t){if(t<0||this.c.length<=t)return null;var e;e=t?(e=this.c[t-1])[e.length-1]:0;var o=(t=this.c[t].slice())[t.length-1];if(e)for(var i=0,r=t.length;i<r;++i)t[i]-=e;return(i=new wr(null)).ba(this.ja,this.A.slice(e,o),t),i},Au.Td=function(){for(var t=this.ja,e=this.A,o=this.c,i=[],r=0,n=0,s=o.length;n<s;++n){var a=o[n].slice(),p=a[a.length-1];if(r)for(var h=0,l=a.length;h<l;++h)a[h]-=r;(h=new wr(null)).ba(t,e.slice(r,p),a),i.push(h),r=p}return i},Au.U=function(){return"MultiPolygon"},Au.Xa=function(t){t:{for(var e=bl(this),o=this.c,i=this.a,r=0,n=0,s=o.length;n<s;++n){var a=o[n];if(gr(e,r,a,i,t)){t=!0;break t}r=a[a.length-1]}t=!1}return t},Au.ma=function(t,e){if(t){zi(this,e,t,3),this.A||(this.A=[]),e=this.A;for(var o=this.a,i=0,r=(r=this.c)||[],n=0,s=0,a=t.length;s<a;++s)i=or(e,i,t[s],o,r[n]),i=(r[n++]=i)[i.length-1];r.length=n,r.length?(t=r[r.length-1],this.A.length=t.length?t[t.length-1]:0):this.A.length=0,this.s()}else ml(this,"XY",null,this.c)},e(xl,sl);var Al={Point:function(t){return void 0!==t.m&&void 0!==t.z?new hr([t.x,t.y,t.z,t.m],"XYZM"):void 0!==t.z?new hr([t.x,t.y,t.z],"XYZ"):void 0!==t.m?new hr([t.x,t.y,t.m],"XYM"):new hr([t.x,t.y])},LineString:function(t){return new ll(t.paths[0],Ml(t))},Polygon:function(t){return new wr(t.rings,Ml(t))},MultiPoint:function(t){return new gl(t.points,Ml(t))},MultiLineString:function(t){return new cl(t.paths,Ml(t))},MultiPolygon:function(t){return new dl(t.rings,Ml(t))}},El={Point:function(t){var e,o=t.X();return"XYZ"===(t=t.ja)?e={x:o[0],y:o[1],z:o[2]}:"XYM"===t?e={x:o[0],y:o[1],m:o[2]}:"XYZM"===t?e={x:o[0],y:o[1],z:o[2],m:o[3]}:"XY"===t?e={x:o[0],y:o[1]}:O(!1,34),e},LineString:function(t){var e=Pl(t);return{hasZ:e.hasZ,hasM:e.hasM,paths:[t.X()]}},Polygon:function(t){var e=Pl(t);return{hasZ:e.hasZ,hasM:e.hasM,rings:t.X(!1)}},MultiPoint:function(t){var e=Pl(t);return{hasZ:e.hasZ,hasM:e.hasM,points:t.X()}},MultiLineString:function(t){var e=Pl(t);return{hasZ:e.hasZ,hasM:e.hasM,paths:t.X()}},MultiPolygon:function(t){var e=Pl(t);t=t.X(!1);for(var o=[],i=0;i<t.length;i++)for(var r=t[i].length-1;0<=r;r--)o.push(t[i][r]);return{hasZ:e.hasZ,hasM:e.hasM,rings:o}}};function Tl(t,e){return(0,El[t.U()])(nl(t,!0,e),e)}function jl(t){this.kc=t}function Cl(t,e){this.kc=t,this.b=Array.prototype.slice.call(arguments,1),O(2<=this.b.length,57)}function Ll(t){var e=["And"].concat(Array.prototype.slice.call(arguments));Cl.apply(this,e)}function Rl(t,e,o){this.kc="BBOX",this.geometryName=t,this.extent=e,this.srsName=o}function Il(t,e){this.kc=t,this.b=e}function Nl(t,e,o){Il.call(this,"During",t),this.a=e,this.i=o}function Fl(t,e,o,i){Il.call(this,t,e),this.i=o,this.a=i}function kl(t,e,o){Fl.call(this,"PropertyIsEqualTo",t,e,o)}function Dl(t,e){Fl.call(this,"PropertyIsGreaterThan",t,e)}function Ol(t,e){Fl.call(this,"PropertyIsGreaterThanOrEqualTo",t,e)}function Ul(t,e,o,i){this.kc=t,this.geometryName=e||"the_geom",this.geometry=o,this.srsName=i}function Gl(t,e,o){Ul.call(this,"Intersects",t,e,o)}function Bl(t,e,o){Il.call(this,"PropertyIsBetween",t),this.a=e,this.i=o}function Xl(t,e,o,i,r,n){Il.call(this,"PropertyIsLike",t),this.c=e,this.g=void 0!==o?o:"*",this.f=void 0!==i?i:".",this.i=void 0!==r?r:"!",this.a=n}function Vl(t){Il.call(this,"PropertyIsNull",t)}function Wl(t,e){Fl.call(this,"PropertyIsLessThan",t,e)}function Zl(t,e){Fl.call(this,"PropertyIsLessThanOrEqualTo",t,e)}function Kl(t){this.kc="Not",this.condition=t}function zl(t,e,o){Fl.call(this,"PropertyIsNotEqualTo",t,e,o)}function Yl(t){var e=["Or"].concat(Array.prototype.slice.call(arguments));Cl.apply(this,e)}function Hl(t,e,o){Ul.call(this,"Within",t,e,o)}function ql(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(Ll,e))}function Jl(t,e,o){return new Rl(t,e,o)}function _l(t){Bi.call(this),this.a=t||null,tu(this)}function $l(t){for(var e=[],o=0,i=t.length;o<i;++o)e.push(t[o].clone());return e}function Ql(t){if(t.a)for(var e=0,o=t.a.length;e<o;++e)be(t.a[e],"change",t.s,t)}function tu(t){if(t.a)for(var e=0,o=t.a.length;e<o;++e)de(t.a[e],"change",t.s,t)}function eu(t){t=t||{},ol.call(this),this.defaultDataProjection=Bt(t.defaultDataProjection||"EPSG:4326"),t.featureProjection&&(this.f=Bt(t.featureProjection)),this.b=t.geometryName}function ou(t,e){return t?nl((0,ru[t.type])(t),!1,e):null}function iu(t,e){return(0,nu[t.U()])(nl(t,!0,e),e)}(Au=xl.prototype).Rc=function(t,e){var o=Sl(t.geometry,e),i=new Ih;return this.b&&i.Tc(this.b),i.Ra(o),e&&e.dg&&t.attributes[e.dg]&&i.jc(t.attributes[e.dg]),t.attributes&&i.H(t.attributes),i},Au.yg=function(t,e){if(e=e||{},t.features){var o,i=[],r=t.features;for(e.dg=t.objectIdFieldName,t=0,o=r.length;t<o;++t)i.push(this.Rc(r[t],e));return i}return[this.Rc(t,e)]},Au.Cg=Sl,Au.Fg=function(t){return t.spatialReference&&t.spatialReference.wkid?Bt("EPSG:"+t.spatialReference.wkid):null},Au.je=function(t,e){return Tl(t,rl(this,e))},Au.Zc=function(t,e){e=rl(this,e);var o={},i=t.V();return i&&(o.geometry=Tl(i,e)),delete(i=t.N())[t.c],o.attributes=ct(i)?{}:i,e&&e.featureProjection&&(o.spatialReference={wkid:Bt(e.featureProjection).mb.split(":").pop()}),o},Au.he=function(t,e){e=rl(this,e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(this.Zc(t[i],e));return{features:o}},e(Cl,jl),e(Ll,Cl),e(Rl,jl),e(Il,jl),e(Nl,Il),e(Fl,Il),e(kl,Fl),e(Dl,Fl),e(Ol,Fl),e(Ul,jl),e(Gl,Ul),e(Bl,Il),e(Xl,Il),e(Vl,Il),e(Wl,Fl),e(Zl,Fl),e(Kl,jl),e(zl,Fl),e(Yl,Cl),e(Hl,Ul),e(_l,Bi),(Au=_l.prototype).clone=function(){var t=new _l(null);return t.oj(this.a),t},Au.Kb=function(t,e,o,i){if(i<E(this.G(),t,e))return i;for(var r=this.a,n=0,s=r.length;n<s;++n)i=r[n].Kb(t,e,o,i);return i},Au.Mc=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)if(o[i].Mc(t,e))return!0;return!1},Au.se=function(t){I(t);for(var e=this.a,o=0,i=e.length;o<i;++o)K(t,e[o].G());return t},Au.Vf=function(){return $l(this.a)},Au.Vd=function(t){if(this.o!=this.i&&(lt(this.f),this.g=0,this.o=this.i),t<0||this.g&&t<this.g)return this;var e=t.toString();if(this.f.hasOwnProperty(e))return this.f[e];for(var o=[],i=this.a,r=!1,n=0,s=i.length;n<s;++n){var a=i[n],p=a.Vd(t);o.push(p),p!==a&&(r=!0)}return r?(Ql(t=new _l(null)),t.a=o,tu(t),t.s(),this.f[e]=t):(this.g=t,this)},Au.U=function(){return"GeometryCollection"},Au.Xa=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)if(e[o].Xa(t))return!0;return!1},Au.rotate=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)o[i].rotate(t,e);this.s()},Au.scale=function(t,e,o){o=o||$(this.G());for(var i=this.a,r=0,n=i.length;r<n;++r)i[r].scale(t,e,o);this.s()},Au.oj=function(t){t=$l(t),Ql(this),this.a=t,tu(this),this.s()},Au.Dc=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)e[o].Dc(t);this.s()},Au.translate=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)o[i].translate(t,e);this.s()},Au.ka=function(){Ql(this),Bi.prototype.ka.call(this)},e(eu,sl);var ru={Point:function(t){return new hr(t.coordinates)},LineString:function(t){return new ll(t.coordinates)},Polygon:function(t){return new wr(t.coordinates)},MultiPoint:function(t){return new gl(t.coordinates)},MultiLineString:function(t){return new cl(t.coordinates)},MultiPolygon:function(t){return new dl(t.coordinates)},GeometryCollection:function(t,e){return new _l(t=t.geometries.map(function(t){return ou(t,e)}))}},nu={Point:function(t){return{type:"Point",coordinates:t.X()}},LineString:function(t){return{type:"LineString",coordinates:t.X()}},Polygon:function(t,e){var o;return e&&(o=e.rightHanded),{type:"Polygon",coordinates:t.X(o)}},MultiPoint:function(t){return{type:"MultiPoint",coordinates:t.X()}},MultiLineString:function(t){return{type:"MultiLineString",coordinates:t.X()}},MultiPolygon:function(t,e){var o;return e&&(o=e.rightHanded),{type:"MultiPolygon",coordinates:t.X(o)}},GeometryCollection:function(t,o){return{type:"GeometryCollection",geometries:t.a.map(function(t){var e=ht({},o);return delete e.featureProjection,iu(t,e)})}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};function su(){this.i=new XMLSerializer,ol.call(this)}function au(t,e,o){return 0<(t=pu(t,e,o)).length?t[0]:null}function pu(t,e,o){var i=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&c(i,t.zc(e,o));return i}function hu(t){t=t||{},this.featureType=t.featureType,this.featureNS=t.featureNS,this.srsName=t.srsName,this.schemaLocation="",this.b={},this.b["http://www.opengis.net/gml"]={featureMember:Xh(hu.prototype.be),featureMembers:Xh(hu.prototype.be)},su.call(this)}(Au=eu.prototype).Rc=function(t,e){e=ou((t="Feature"===t.type?t:{type:"Feature",geometry:t}).geometry,e);var o=new Ih;return this.b&&o.Tc(this.b),o.Ra(e),void 0!==t.id&&o.jc(t.id),t.properties&&o.H(t.properties),o},Au.yg=function(t,e){if("FeatureCollection"===t.type)for(var o=[],i=0,r=(t=t.features).length;i<r;++i)o.push(this.Rc(t[i],e));else o=[this.Rc(t,e)];return o},Au.Cg=ou,Au.Fg=function(t){var e;return(t=t.crs)?"name"==t.type?e=Bt(t.properties.name):"EPSG"==t.type?e=Bt("EPSG:"+t.properties.code):O(!1,36):e=this.defaultDataProjection,e},Au.Zc=function(t,e){e=rl(this,e);var o={type:"Feature"},i=t.a;return void 0!==i&&(o.id=i),(i=t.V())?o.geometry=iu(i,e):o.geometry=null,delete(e=t.N())[t.c],ct(e)?o.properties=null:o.properties=e,o},Au.he=function(t,e){e=rl(this,e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(this.Zc(t[i],e));return{type:"FeatureCollection",features:o}},Au.je=function(t,e){return iu(t,rl(this,e))},e(su,ol),(Au=su.prototype).U=function(){return"xml"},Au.Tb=function(t,e){return Dh(t)?au(this,t,e):Oh(t)?this.xg(t,e):"string"==typeof t?au(this,t=Uh(t),e):null},Au.xg=function(){return null},Au.Oa=function(t,e){return Dh(t)?pu(this,t,e):Oh(t)?this.zc(t,e):"string"==typeof t?pu(this,t=Uh(t),e):[]},Au.Sc=function(t,e){return Dh(t)?null:Oh(t)?this.aj(t,e):("string"==typeof t&&Uh(t),null)},Au.aj=function(){return null},Au.kb=function(t){return Dh(t)?this.Eg(t):Oh(t)?this.kf(t):"string"==typeof t?(t=Uh(t),this.Eg(t)):null},Au.Eg=function(){return this.defaultDataProjection},Au.kf=function(){return this.defaultDataProjection},Au.Bd=function(t,e){return this.i.serializeToString(this.Vg(t,e))},Au.Vg=function(){return null},Au.Wb=function(t,e){return t=this.Xb(t,e),this.i.serializeToString(t)},Au.Xb=function(){return null},Au.$c=function(t,e){return t=this.ie(t,e),this.i.serializeToString(t)},Au.ie=function(){return null},e(hu,su);var lu=/^[\s\xa0]*$/;function uu(t){return cu(t=kh(t,!1))}function cu(t){if(t=/^\s*(true|1)|(false|0)\s*$/.exec(t))return void 0!==t[1]||!1}function fu(t){return t=kh(t,!1),t=Date.parse(t),isNaN(t)?void 0:t/1e3}function yu(t){return gu(t=kh(t,!1))}function gu(t){if(t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(t))return parseFloat(t[1])}function du(t){return vu(t=kh(t,!1))}function vu(t){if(t=/^\s*(\d+)\s*$/.exec(t))return parseInt(t[1],10)}function bu(t){return kh(t,!1).trim()}function mu(t,e){Su(t,e?"1":"0")}function wu(t,e){t.appendChild(Nh.createTextNode(e.toPrecision()))}function xu(t,e){t.appendChild(Nh.createTextNode(e.toString()))}function Su(t,e){t.appendChild(Nh.createTextNode(e))}function Mu(t){hu.call(this,t=t||{}),this.l=void 0!==t.surface&&t.surface,this.c=void 0!==t.curve&&t.curve,this.g=void 0===t.multiCurve||t.multiCurve,this.j=void 0===t.multiSurface||t.multiSurface,this.schemaLocation=t.schemaLocation||"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd"}function Pu(t,e,o){o=(i=o[o.length-1]).hasZ;for(var i=i.srsName,r=(e=e.X()).length,n=Array(r),s=0;s<r;++s){var a=e[s],p=s,h=o,l="enu",l="en"===(l=i?Bt(i).b:l).substr(0,2)?a[0]+" "+a[1]:a[1]+" "+a[0];h&&(l+=" "+(a[2]||0)),n[p]=l}Su(t,n.join(" "))}(Au=hu.prototype).be=function(t,e){var o=t.localName,i=null;if("FeatureCollection"==o)i="http://www.opengis.net/wfs"===t.namespaceURI?_h([],this.b,t,e,this):_h(null,this.b,t,e,this);else if("featureMembers"==o||"featureMember"==o){var r=(y=e[0]).featureType,n=y.featureNS;if(!r&&t.childNodes){r=[];for(var n={},s=0,a=t.childNodes.length;s<a;++s)if(1===(c=t.childNodes[s]).nodeType){var p=c.nodeName.split(":").pop();if(-1===r.indexOf(p)){var h,l="",u=0,c=c.namespaceURI;for(h in n){if(n[h]===c){l=h;break}++u}l||(n[l="p"+u]=c),r.push(l+":"+p)}}"featureMember"!=o&&(y.featureType=r,y.featureNS=n)}"string"==typeof n&&(s=n,(n={}).p0=s);var f,y={},r=Array.isArray(r)?r:[r];for(f in n){for(p={},s=0,a=r.length;s<a;++s)(-1===r[s].indexOf(":")?"p0":r[s].split(":")[0])===f&&(p[r[s].split(":").pop()]=("featureMembers"==o?Bh:Xh)(this.wg,this));y[n[f]]=p}i=_h("featureMember"==o?void 0:[],y,t,e)}return i=null===i?[]:i},Au.gf=function(t,e){var o=e[0];if(o.srsName=t.firstElementChild.getAttribute("srsName"),t=_h(null,this.Zg,t,e,this))return nl(t,!1,o)},Au.wg=function(t,e){var o;(o=t.getAttribute("fid"))||(o=t.getAttributeNS("http://www.opengis.net/gml","id")||"");var i,r={};for(t=t.firstElementChild;t;t=t.nextElementSibling){var n,s=t.localName;0===t.childNodes.length||1===t.childNodes.length&&(3===t.firstChild.nodeType||4===t.firstChild.nodeType)?(n=kh(t,!1),lu.test(n)&&(n=void 0),r[s]=n):("boundedBy"!==s&&(i=s),r[s]=this.gf(t,e))}return e=new Ih(r),i&&e.Tc(i),o&&e.jc(o),e},Au.fj=function(t,e){if(t=this.ff(t,e))return(e=new hr(null)).ba("XYZ",t),e},Au.dj=function(t,e){if(t=_h([],this.Nj,t,e,this))return new gl(t)},Au.cj=function(t,e){if(t=_h([],this.Mj,t,e,this))return yl(e=new cl(null),t),e},Au.ej=function(t,e){if(t=_h([],this.Oj,t,e,this))return wl(e=new dl(null),t),e},Au.Xi=function(t,e){Jh(this.Rj,t,e,this)},Au.Mh=function(t,e){Jh(this.Kj,t,e,this)},Au.Yi=function(t,e){Jh(this.Sj,t,e,this)},Au.hf=function(t,e){if(t=this.ff(t,e))return(e=new ll(null)).ba("XYZ",t),e},Au.wp=function(t,e){if(t=_h(null,this.ke,t,e,this))return t},Au.bj=function(t,e){if(t=this.ff(t,e))return pr(e=new ar(null),"XYZ",t),e},Au.jf=function(t,e){if((t=_h([null],this.zf,t,e,this))&&t[0]){e=new wr(null);for(var o=t[0],i=[o.length],r=1,n=t.length;r<n;++r)c(o,t[r]),i.push(o.length);return e.ba("XYZ",o,i),e}},Au.ff=function(t,e){return _h(null,this.ke,t,e,this)},Au.Nj={"http://www.opengis.net/gml":{pointMember:Bh(hu.prototype.Xi),pointMembers:Bh(hu.prototype.Xi)}},Au.Mj={"http://www.opengis.net/gml":{lineStringMember:Bh(hu.prototype.Mh),lineStringMembers:Bh(hu.prototype.Mh)}},Au.Oj={"http://www.opengis.net/gml":{polygonMember:Bh(hu.prototype.Yi),polygonMembers:Bh(hu.prototype.Yi)}},Au.Rj={"http://www.opengis.net/gml":{Point:Bh(hu.prototype.ff)}},Au.Kj={"http://www.opengis.net/gml":{LineString:Bh(hu.prototype.hf)}},Au.Sj={"http://www.opengis.net/gml":{Polygon:Bh(hu.prototype.jf)}},Au.le={"http://www.opengis.net/gml":{LinearRing:Xh(hu.prototype.wp)}},Au.aj=function(t,e){return(t=this.gf(t,[il(this,t,e||{})]))?t:null},Au.zc=function(t,e){var o={featureType:this.featureType,featureNS:this.featureNS};return e&&ht(o,il(this,t,e)),this.be(t,[o])||[]},Au.kf=function(t){return Bt(this.srsName||t.firstElementChild.getAttribute("srsName"))},e(Mu,hu),(Au=Mu.prototype).Ap=function(t,e){if(t=_h([],this.Lj,t,e,this))return yl(e=new cl(null),t),e},Au.Bp=function(t,e){if(t=_h([],this.Pj,t,e,this))return wl(e=new dl(null),t),e},Au.ph=function(t,e){Jh(this.Hj,t,e,this)},Au.Aj=function(t,e){Jh(this.Uj,t,e,this)},Au.Ep=function(t,e){return _h([null],this.Qj,t,e,this)},Au.Hp=function(t,e){return _h([null],this.Tj,t,e,this)},Au.Fp=function(t,e){return _h([null],this.zf,t,e,this)},Au.zp=function(t,e){return _h([null],this.ke,t,e,this)},Au.cm=function(t,e){(t=_h(void 0,this.le,t,e,this))&&e[e.length-1].push(t)},Au.yk=function(t,e){(t=_h(void 0,this.le,t,e,this))&&(e[e.length-1][0]=t)},Au.gj=function(t,e){if((t=_h([null],this.Vj,t,e,this))&&t[0]){e=new wr(null);for(var o=t[0],i=[o.length],r=1,n=t.length;r<n;++r)c(o,t[r]),i.push(o.length);return e.ba("XYZ",o,i),e}},Au.Zi=function(t,e){if(t=_h([null],this.Ij,t,e,this))return(e=new ll(null)).ba("XYZ",t),e},Au.vp=function(t,e){return F((t=_h([null],this.Jj,t,e,this))[1][0],t[1][1],t[2][0],t[2][1])},Au.xp=function(t,e){var o,i=kh(t,!1),r=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/;for(t=[];o=r.exec(i);)t.push(parseFloat(o[1])),i=i.substr(o[0].length);if(""===i){if(i="enu","neu"===(i=(e=e[0].srsName)?Bt(e).b:i))for(e=0,i=t.length;e<i;e+=3)r=t[e],t[e]=t[e+1],t[e+1]=r;if(2==(e=t.length)&&t.push(0),e)return t}},Au.Bg=function(t,e){var o=kh(t,!1).replace(/^\s*|\s*$/g,""),i=e[0].srsName,r=t.parentNode.getAttribute("srsDimension");e="enu",i&&(e=Bt(i).b),o=o.split(/\s+/),i=2,t.getAttribute("srsDimension")?i=vu(t.getAttribute("srsDimension")):t.getAttribute("dimension")?i=vu(t.getAttribute("dimension")):r&&(i=vu(r));for(var n,s=[],a=0,p=o.length;a<p;a+=i)t=parseFloat(o[a]),r=parseFloat(o[a+1]),n=3===i?parseFloat(o[a+2]):0,"en"===e.substr(0,2)?s.push(t,r,n):s.push(r,t,n);return s},Au.ke={"http://www.opengis.net/gml":{pos:Xh(Mu.prototype.xp),posList:Xh(Mu.prototype.Bg)}},Au.zf={"http://www.opengis.net/gml":{interior:Mu.prototype.cm,exterior:Mu.prototype.yk}},Au.Zg={"http://www.opengis.net/gml":{Point:Xh(hu.prototype.fj),MultiPoint:Xh(hu.prototype.dj),LineString:Xh(hu.prototype.hf),MultiLineString:Xh(hu.prototype.cj),LinearRing:Xh(hu.prototype.bj),Polygon:Xh(hu.prototype.jf),MultiPolygon:Xh(hu.prototype.ej),Surface:Xh(Mu.prototype.gj),MultiSurface:Xh(Mu.prototype.Bp),Curve:Xh(Mu.prototype.Zi),MultiCurve:Xh(Mu.prototype.Ap),Envelope:Xh(Mu.prototype.vp)}},Au.Lj={"http://www.opengis.net/gml":{curveMember:Bh(Mu.prototype.ph),curveMembers:Bh(Mu.prototype.ph)}},Au.Pj={"http://www.opengis.net/gml":{surfaceMember:Bh(Mu.prototype.Aj),surfaceMembers:Bh(Mu.prototype.Aj)}},Au.Hj={"http://www.opengis.net/gml":{LineString:Bh(hu.prototype.hf),Curve:Bh(Mu.prototype.Zi)}},Au.Uj={"http://www.opengis.net/gml":{Polygon:Bh(hu.prototype.jf),Surface:Bh(Mu.prototype.gj)}},Au.Vj={"http://www.opengis.net/gml":{patches:Xh(Mu.prototype.Ep)}},Au.Ij={"http://www.opengis.net/gml":{segments:Xh(Mu.prototype.Hp)}},Au.Jj={"http://www.opengis.net/gml":{lowerCorner:Bh(Mu.prototype.Bg),upperCorner:Bh(Mu.prototype.Bg)}},Au.Qj={"http://www.opengis.net/gml":{PolygonPatch:Xh(Mu.prototype.Fp)}},Au.Tj={"http://www.opengis.net/gml":{LineStringSegment:Xh(Mu.prototype.zp)}},Au.ni=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=Fh(t.namespaceURI,"pos"),t.appendChild(i),t=(o=o[o.length-1]).hasZ;var r=o.srsName;o="enu",r&&(o=Bt(r).b),e=e.X(),o="en"===o.substr(0,2)?e[0]+" "+e[1]:e[1]+" "+e[0],t&&(o+=" "+(e[2]||0)),Su(i,o)};var Au,Eu={"http://www.opengis.net/gml":{lowerCorner:Zh(Su),upperCorner:Zh(Su)}};(Au=Mu.prototype).jn=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),Qh({node:t},Eu,Yh,[e[0]+" "+e[1],e[2]+" "+e[3]],o,["lowerCorner","upperCorner"],this)},Au.ki=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=Fh(t.namespaceURI,"posList"),t.appendChild(i),Pu(i,e,o)},Au.hn=function(t,e){e=(t=e[e.length-1]).node;var o=t.exteriorWritten;return void 0===o&&(t.exteriorWritten=!0),Fh(e.namespaceURI,void 0!==o?"interior":"exterior")},Au.Se=function(t,e,o){var i=(r=o[o.length-1]).hasZ,r=r.srsName;"PolygonPatch"!==t.nodeName&&r&&t.setAttribute("srsName",r),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName?(e=e.Sd(),Qh({node:t,hasZ:i,srsName:r},Lu,this.hn,e,o,void 0,this)):"Surface"===t.nodeName&&(i=Fh(t.namespaceURI,"patches"),t.appendChild(i),t=Fh(i.namespaceURI,"PolygonPatch"),i.appendChild(t),this.Se(t,e,o))},Au.Re=function(t,e,o){var i=o[o.length-1].srsName;"LineStringSegment"!==t.nodeName&&i&&t.setAttribute("srsName",i),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName?(i=Fh(t.namespaceURI,"posList"),t.appendChild(i),Pu(i,e,o)):"Curve"===t.nodeName&&(i=Fh(t.namespaceURI,"segments"),t.appendChild(i),t=Fh(i.namespaceURI,"LineStringSegment"),i.appendChild(t),this.Re(t,e,o))},Au.mi=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.surface;r&&t.setAttribute("srsName",r),e=e.Td(),Qh({node:t,hasZ:i,srsName:r,surface:n},Tu,this.o,e,o,void 0,this)},Au.kn=function(t,e,o){var i=(r=o[o.length-1]).srsName,r=r.hasZ;i&&t.setAttribute("srsName",i),e=e.Zd(),Qh({node:t,hasZ:r,srsName:i},ju,zh("pointMember"),e,o,void 0,this)},Au.li=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.curve;r&&t.setAttribute("srsName",r),e=e.gd(),Qh({node:t,hasZ:i,srsName:r,curve:n},Cu,this.o,e,o,void 0,this)},Au.oi=function(t,e,o){var i=Fh(t.namespaceURI,"LinearRing");t.appendChild(i),this.ki(i,e,o)},Au.pi=function(t,e,o){var i=this.a(e,o);i&&(t.appendChild(i),this.Se(i,e,o))},Au.ln=function(t,e,o){var i=Fh(t.namespaceURI,"Point");t.appendChild(i),this.ni(i,e,o)},Au.ji=function(t,e,o){var i=this.a(e,o);i&&(t.appendChild(i),this.Re(i,e,o))},Au.od=function(t,e,o){var i=o[o.length-1],r=ht({},i);r.node=t,i=Array.isArray(e)?i.dataProjection?Yt(e,i.featureProjection,i.dataProjection):e:nl(e,!0,i),Qh(r,Ru,this.a,[i],o,void 0,this)},Au.ii=function(t,e,o){var i=e.a;i&&t.setAttribute("fid",i);var r=(i=o[o.length-1]).featureNS,n=e.c;i.lb||(i.lb={},i.lb[r]={});var s=e.N();e=[];var a=[];for(h in s){var p=s[h];null!==p&&(e.push(h),a.push(p),h==n||p instanceof Bi?h in i.lb[r]||(i.lb[r][h]=Zh(this.od,this)):h in i.lb[r]||(i.lb[r][h]=Zh(Su)))}var h=ht({},i);h.node=t,Qh(h,i.lb,zh(void 0,r),a,o,e)};var Tu={"http://www.opengis.net/gml":{surfaceMember:Zh(Mu.prototype.pi),polygonMember:Zh(Mu.prototype.pi)}},ju={"http://www.opengis.net/gml":{pointMember:Zh(Mu.prototype.ln)}},Cu={"http://www.opengis.net/gml":{lineStringMember:Zh(Mu.prototype.ji),curveMember:Zh(Mu.prototype.ji)}},Lu={"http://www.opengis.net/gml":{exterior:Zh(Mu.prototype.oi),interior:Zh(Mu.prototype.oi)}},Ru={"http://www.opengis.net/gml":{Curve:Zh(Mu.prototype.Re),MultiCurve:Zh(Mu.prototype.li),Point:Zh(Mu.prototype.ni),MultiPoint:Zh(Mu.prototype.kn),LineString:Zh(Mu.prototype.Re),MultiLineString:Zh(Mu.prototype.li),LinearRing:Zh(Mu.prototype.ki),Polygon:Zh(Mu.prototype.Se),MultiPolygon:Zh(Mu.prototype.mi),Surface:Zh(Mu.prototype.Se),MultiSurface:Zh(Mu.prototype.mi),Envelope:Zh(Mu.prototype.jn)}},Iu={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};function Nu(t){hu.call(this,t=t||{}),this.b["http://www.opengis.net/gml"].featureMember=Bh(hu.prototype.be),this.schemaLocation=t.schemaLocation||"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd"}function Fu(t){return(t=Fh(t,"coordinates")).setAttribute("decimal","."),t.setAttribute("cs",","),t.setAttribute("ts"," "),t}function ku(t,e,o){o=(r=o[o.length-1]).hasZ;for(var i,r=r.srsName,n=(e=e.X()).length,s=Array(n),a=0;a<n;++a)i=e[a],s[a]=Du(i,r,o);Su(t,s.join(" "))}function Du(t,e,o){var i="enu";return e="en"===(i=e?Bt(e).b:i).substr(0,2)?t[0]+","+t[1]:t[1]+","+t[0],o&&(e+=","+(t[2]||0)),e}Mu.prototype.o=function(t,e){return Fh("http://www.opengis.net/gml",Iu[e[e.length-1].node.nodeName])},Mu.prototype.a=function(t,e){e=(r=e[e.length-1]).multiSurface;var o=r.surface,i=r.curve,r=r.multiCurve;return Array.isArray(t)?t="Envelope":"MultiPolygon"===(t=t.U())&&!0===e?t="MultiSurface":"Polygon"===t&&!0===o?t="Surface":"LineString"===t&&!0===i?t="Curve":"MultiLineString"===t&&!0===r&&(t="MultiCurve"),Fh("http://www.opengis.net/gml",t)},Mu.prototype.ie=function(t,e){e=rl(this,e);var o=Fh("http://www.opengis.net/gml","geom"),i={node:o,hasZ:this.hasZ,srsName:this.srsName,curve:this.c,surface:this.l,multiSurface:this.j,multiCurve:this.g};return e&&ht(i,e),this.od(o,t,[i]),o},Mu.prototype.Xb=function(t,e){e=rl(this,e);var o=Fh("http://www.opengis.net/gml","featureMembers");o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);var i={srsName:this.srsName,hasZ:this.hasZ,curve:this.c,surface:this.l,multiSurface:this.j,multiCurve:this.g,featureNS:this.featureNS,featureType:this.featureType};e&&ht(i,e);var r=(e=[i])[e.length-1],i=r.featureType,n=r.featureNS,s={};return s[n]={},s[n][i]=Zh(this.ii,this),(r=ht({},r)).node=o,Qh(r,s,zh(i,n),t,e),o},e(Nu,hu),(Au=Nu.prototype).$i=function(t,e){t=kh(t,!1).replace(/^\s*|\s*$/g,"");var o=e[0].srsName;e="enu",(o=o&&Bt(o))&&(e=o.b);for(var i,r,n=[],s=0,a=(t=t.trim().split(/\s+/)).length;s<a;s++)r=t[s].split(/,+/),o=parseFloat(r[0]),i=parseFloat(r[1]),r=3===r.length?parseFloat(r[2]):0,"en"===e.substr(0,2)?n.push(o,i,r):n.push(i,o,r);return n},Au.tp=function(t,e){return F((t=_h([null],this.Gj,t,e,this))[1][0],t[1][1],t[1][3],t[1][4])},Au.am=function(t,e){(t=_h(void 0,this.le,t,e,this))&&e[e.length-1].push(t)},Au.bp=function(t,e){(t=_h(void 0,this.le,t,e,this))&&(e[e.length-1][0]=t)},Au.ke={"http://www.opengis.net/gml":{coordinates:Xh(Nu.prototype.$i)}},Au.zf={"http://www.opengis.net/gml":{innerBoundaryIs:Nu.prototype.am,outerBoundaryIs:Nu.prototype.bp}},Au.Gj={"http://www.opengis.net/gml":{coordinates:Bh(Nu.prototype.$i)}},Au.Zg={"http://www.opengis.net/gml":{Point:Xh(hu.prototype.fj),MultiPoint:Xh(hu.prototype.dj),LineString:Xh(hu.prototype.hf),MultiLineString:Xh(hu.prototype.cj),LinearRing:Xh(hu.prototype.bj),Polygon:Xh(hu.prototype.jf),MultiPolygon:Xh(hu.prototype.ej),Box:Xh(Nu.prototype.tp)}},Au.jg=function(t,e){e=(i=e[e.length-1]).multiSurface;var o=i.surface,i=i.multiCurve;return Array.isArray(t)?t="Envelope":"MultiPolygon"===(t=t.U())&&!0===e?t="MultiSurface":"Polygon"===t&&!0===o?t="Surface":"MultiLineString"===t&&!0===i&&(t="MultiCurve"),Fh("http://www.opengis.net/gml",t)},Au.ai=function(t,e,o){var i=o[o.length-1],r=ht({},i);r.node=t,i=Array.isArray(e)?i.dataProjection?Yt(e,i.featureProjection,i.dataProjection):e:nl(e,!0,i),Qh(r,Ou,this.jg,[i],o,void 0,this)},Au.Pe=function(t,e,o){var i=o[o.length-1].srsName;"LineStringSegment"!==t.nodeName&&i&&t.setAttribute("srsName",i),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName?(i=Fu(t.namespaceURI),t.appendChild(i),ku(i,e,o)):"Curve"===t.nodeName&&(i=Fh(t.namespaceURI,"segments"),t.appendChild(i),t=Fh(i.namespaceURI,"LineStringSegment"),i.appendChild(t),this.Pe(t,e,o))},Au.Qe=function(t,e,o){var i=(r=o[o.length-1]).hasZ,r=r.srsName;"PolygonPatch"!==t.nodeName&&r&&t.setAttribute("srsName",r),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName?(e=e.Sd(),Qh({node:t,hasZ:i,srsName:r},Uu,this.dn,e,o,void 0,this)):"Surface"===t.nodeName&&(i=Fh(t.namespaceURI,"patches"),t.appendChild(i),t=Fh(i.namespaceURI,"PolygonPatch"),i.appendChild(t),this.Qe(t,e,o))},Au.dn=function(t,e){e=(t=e[e.length-1]).node;var o=t.exteriorWritten;return void 0===o&&(t.exteriorWritten=!0),Fh(e.namespaceURI,void 0!==o?"innerBoundaryIs":"outerBoundaryIs")},Au.gi=function(t,e,o){var i=Fh(t.namespaceURI,"LinearRing");t.appendChild(i),this.ci(i,e,o)},Au.di=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.curve;r&&t.setAttribute("srsName",r),e=e.gd(),Qh({node:t,hasZ:i,srsName:r,curve:n},Bu,this.a,e,o,void 0,this)},Au.fi=function(t,e,o){var i=o[o.length-1];o=i.hasZ;var r=i.srsName;r&&t.setAttribute("srsName",r),i=Fu(t.namespaceURI),t.appendChild(i),Su(i,t=Du(t=e.X(),r,o))},Au.fn=function(t,e,o){var i=o[o.length-1],r=i.hasZ;(i=i.srsName)&&t.setAttribute("srsName",i),e=e.Zd(),Qh({node:t,hasZ:r,srsName:i},Gu,zh("pointMember"),e,o,void 0,this)},Au.gn=function(t,e,o){var i=Fh(t.namespaceURI,"Point");t.appendChild(i),this.fi(i,e,o)},Au.bi=function(t,e,o){var i=this.jg(e,o);i&&(t.appendChild(i),this.Pe(i,e,o))},Au.ci=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=Fu(t.namespaceURI),t.appendChild(i),ku(i,e,o)},Au.ei=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.surface;r&&t.setAttribute("srsName",r),e=e.Td(),Qh({node:t,hasZ:i,srsName:r,surface:n},Vu,this.a,e,o,void 0,this)},Au.hi=function(t,e,o){var i=this.jg(e,o);i&&(t.appendChild(i),this.Qe(i,e,o))},Au.en=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),Qh({node:t},Wu,Yh,[e[0]+" "+e[1],e[2]+" "+e[3]],o,["lowerCorner","upperCorner"],this)};var Ou={"http://www.opengis.net/gml":{Curve:Zh(Nu.prototype.Pe),MultiCurve:Zh(Nu.prototype.di),Point:Zh(Nu.prototype.fi),MultiPoint:Zh(Nu.prototype.fn),LineString:Zh(Nu.prototype.Pe),MultiLineString:Zh(Nu.prototype.di),LinearRing:Zh(Nu.prototype.ci),Polygon:Zh(Nu.prototype.Qe),MultiPolygon:Zh(Nu.prototype.ei),Surface:Zh(Nu.prototype.Qe),MultiSurface:Zh(Nu.prototype.ei),Envelope:Zh(Nu.prototype.en)}},Uu={"http://www.opengis.net/gml":{outerBoundaryIs:Zh(Nu.prototype.gi),innerBoundaryIs:Zh(Nu.prototype.gi)}},Gu={"http://www.opengis.net/gml":{pointMember:Zh(Nu.prototype.gn)}},Bu={"http://www.opengis.net/gml":{lineStringMember:Zh(Nu.prototype.bi),curveMember:Zh(Nu.prototype.bi)}};Nu.prototype.a=function(t,e){return Fh("http://www.opengis.net/gml",Xu[e[e.length-1].node.nodeName])};var Xu={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"},Vu={"http://www.opengis.net/gml":{surfaceMember:Zh(Nu.prototype.hi),polygonMember:Zh(Nu.prototype.hi)}},Wu={"http://www.opengis.net/gml":{lowerCorner:Zh(Su),upperCorner:Zh(Su)}};function Zu(t){t=t||{},su.call(this),this.defaultDataProjection=Bt("EPSG:4326"),this.b=t.readExtensions}e(Zu,su);var Ku=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function zu(t,e,o,i){return t.push(parseFloat(o.getAttribute("lon")),parseFloat(o.getAttribute("lat"))),"ele"in i?(t.push(i.ele),delete i.ele,e.hasZ=!0):t.push(0),"time"in i?(t.push(i.time),delete i.time,e.hasM=!0):t.push(0),t}function Yu(t,e,o){var i="XY",r=2;if(t.hasZ&&t.hasM?(i="XYZM",r=4):t.hasZ?(i="XYZ",r=3):t.hasM&&(i="XYM",r=3),4!==r){for(var n=0,s=e.length/4;n<s;n++)e[n*r]=e[4*n],e[n*r+1]=e[4*n+1],t.hasZ&&(e[n*r+2]=e[4*n+2]),t.hasM&&(e[n*r+2]=e[4*n+3]);if(e.length=e.length/4*r,o)for(n=0,s=o.length;n<s;n++)o[n]=o[n]/4*r}return i}function Hu(t,e){var o=e[e.length-1],i=t.getAttribute("href");null!==i&&(o.link=i),Jh(ec,t,e)}function qu(t,e){e[e.length-1].extensionsNode_=t}function Ju(t,e){var o=e[0];if(t=_h({flatCoordinates:[],layoutOptions:{}},oc,t,e)){e=t.flatCoordinates,delete t.flatCoordinates;var i=t.layoutOptions;delete t.layoutOptions;var i=Yu(i,e),r=new ll(null);return r.ba(i,e),nl(r,!1,o),(o=new Ih(r)).H(t),o}}function _u(t,e){var o=e[0];if(t=_h({flatCoordinates:[],ends:[],layoutOptions:{}},rc,t,e)){e=t.flatCoordinates,delete t.flatCoordinates;var i=t.ends;delete t.ends;var r=t.layoutOptions;delete t.layoutOptions;var r=Yu(r,e,i),n=new cl(null);return n.ba(r,e,i),nl(n,!1,o),(o=new Ih(n)).H(t),o}}function $u(t,e){var o=e[0];if(e=_h({},ac,t,e)){var i={};return nl(t=new hr(t=zu([],i,t,e),Yu(i,t)),!1,o),(o=new Ih(t)).H(e),o}}var Qu={rte:Ju,trk:_u,wpt:$u},tc=qh(Ku,{rte:Bh(Ju),trk:Bh(_u),wpt:Bh($u)}),ec=qh(Ku,{text:Wh(bu,"linkText"),type:Wh(bu,"linkType")}),oc=qh(Ku,{name:Wh(bu),cmt:Wh(bu),desc:Wh(bu),src:Wh(bu),link:Hu,number:Wh(du),extensions:qu,type:Wh(bu),rtept:function(t,e){var o=_h({},ic,t,e);o&&zu((e=e[e.length-1]).flatCoordinates,e.layoutOptions,t,o)}}),ic=qh(Ku,{ele:Wh(yu),time:Wh(fu)}),rc=qh(Ku,{name:Wh(bu),cmt:Wh(bu),desc:Wh(bu),src:Wh(bu),link:Hu,number:Wh(du),type:Wh(bu),extensions:qu,trkseg:function(t,e){var o=e[e.length-1];Jh(nc,t,e),o.ends.push(o.flatCoordinates.length)}}),nc=qh(Ku,{trkpt:function(t,e){var o=_h({},sc,t,e);o&&zu((e=e[e.length-1]).flatCoordinates,e.layoutOptions,t,o)}}),sc=qh(Ku,{ele:Wh(yu),time:Wh(fu)}),ac=qh(Ku,{ele:Wh(yu),time:Wh(fu),magvar:Wh(yu),geoidheight:Wh(yu),name:Wh(bu),cmt:Wh(bu),desc:Wh(bu),src:Wh(bu),link:Hu,sym:Wh(bu),type:Wh(bu),fix:Wh(bu),sat:Wh(du),hdop:Wh(yu),vdop:Wh(yu),pdop:Wh(yu),ageofdgpsdata:Wh(yu),dgpsid:Wh(du),extensions:qu});function pc(t,e){for(var o=0,i=(e=e||[]).length;o<i;++o){var r,n=e[o];t.b&&(r=n.get("extensionsNode_")||null,t.b(n,r)),n.set("extensionsNode_",void 0)}}function hc(t,e,o){t.setAttribute("href",e),e=o[o.length-1].properties,Qh({node:t},cc,Yh,[e.linkText,e.linkType],o,uc)}function lc(t,e,o){var i=o[o.length-1],r=i.node.namespaceURI,n=i.properties;switch(t.setAttributeNS(null,"lat",e[1]),t.setAttributeNS(null,"lon",e[0]),i.geometryLayout){case"XYZM":e[3]&&(n.time=e[3]);case"XYZ":e[2]&&(n.ele=e[2]);break;case"XYM":e[2]&&(n.time=e[2])}i=Hh(n,e=("rtept"==t.nodeName?gc:wc)[r]),Qh({node:t,properties:n},xc,Yh,i,o,e)}Zu.prototype.xg=function(t,e){if(!d(Ku,t.namespaceURI))return null;var o=Qu[t.localName];return o&&(t=o(t,[il(this,t,e)]))?(pc(this,[t]),t):null},Zu.prototype.zc=function(t,e){return d(Ku,t.namespaceURI)&&"gpx"==t.localName&&(t=_h([],tc,t,[il(this,t,e)]))?(pc(this,t),t):[]};var uc=["text","type"],cc=qh(Ku,{text:Zh(Su),type:Zh(Su)}),fc=qh(Ku,"name cmt desc src link number type rtept".split(" ")),yc=qh(Ku,{name:Zh(Su),cmt:Zh(Su),desc:Zh(Su),src:Zh(Su),link:Zh(hc),number:Zh(xu),type:Zh(Su),rtept:Kh(Zh(lc))}),gc=qh(Ku,["ele","time"]),dc=qh(Ku,"name cmt desc src link number type trkseg".split(" ")),vc=qh(Ku,{name:Zh(Su),cmt:Zh(Su),desc:Zh(Su),src:Zh(Su),link:Zh(hc),number:Zh(xu),type:Zh(Su),trkseg:Kh(Zh(function(t,e,o){Qh({node:t,geometryLayout:e.ja,properties:{}},mc,bc,e.X(),o)}))}),bc=zh("trkpt"),mc=qh(Ku,{trkpt:Zh(lc)}),wc=qh(Ku,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),xc=qh(Ku,{ele:Zh(wu),time:Zh(function(t,e){e=new Date(1e3*e),t.appendChild(Nh.createTextNode(e.getUTCFullYear()+"-"+Ai(e.getUTCMonth()+1)+"-"+Ai(e.getUTCDate())+"T"+Ai(e.getUTCHours())+":"+Ai(e.getUTCMinutes())+":"+Ai(e.getUTCSeconds())+"Z"))}),magvar:Zh(wu),geoidheight:Zh(wu),name:Zh(Su),cmt:Zh(Su),desc:Zh(Su),src:Zh(Su),link:Zh(hc),sym:Zh(Su),type:Zh(Su),fix:Zh(Su),sat:Zh(xu),hdop:Zh(wu),vdop:Zh(wu),pdop:Zh(wu),ageofdgpsdata:Zh(wu),dgpsid:Zh(xu)}),Sc={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function Mc(t,e){if((t=t.V())&&(t=Sc[t.U()]))return Fh(e[e.length-1].node.namespaceURI,t)}var Pc=qh(Ku,{rte:Zh(function(t,e,o){var i=o[0],r=e.N();t={node:t,properties:r},(e=e.V())&&(e=nl(e,!0,i),t.geometryLayout=e.ja,r.rtept=e.X()),r=Hh(r,i=fc[o[o.length-1].node.namespaceURI]),Qh(t,yc,Yh,r,o,i)}),trk:Zh(function(t,e,o){var i=o[0],r=e.N();t={node:t,properties:r},(e=e.V())&&(e=nl(e,!0,i),r.trkseg=e.gd()),r=Hh(r,i=dc[o[o.length-1].node.namespaceURI]),Qh(t,vc,Yh,r,o,i)}),wpt:Zh(function(t,e,o){var i=o[0],r=o[o.length-1];r.properties=e.N(),(e=e.V())&&(e=nl(e,!0,i),r.geometryLayout=e.ja,lc(t,e.X(),o))})});function Ac(){ol.call(this)}function Ec(t){return"string"==typeof t?t:""}function Tc(t){t=t||{},ol.call(this),this.defaultDataProjection=Bt("EPSG:4326"),this.b=t.altitudeMode||"none"}Zu.prototype.Xb=function(t,e){e=rl(this,e);var o=Fh("http://www.topografix.com/GPX/1/1","gpx");return o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"),o.setAttribute("version","1.1"),o.setAttribute("creator","OpenLayers"),Qh({node:o},Pc,Mc,t,[e]),o},e(Ac,ol),(Au=Ac.prototype).U=function(){return"text"},Au.Tb=function(t,e){return this.ae(Ec(t),rl(this,e))},Au.Oa=function(t,e){return this.zg(Ec(t),rl(this,e))},Au.Sc=function(t,e){return this.wd(Ec(t),rl(this,e))},Au.kb=function(){return this.defaultDataProjection},Au.Bd=function(t,e){return this.ge(t,rl(this,e))},Au.Wb=function(t,e){return this.Wg(t,rl(this,e))},Au.$c=function(t,e){return this.Cd(t,rl(this,e))},e(Tc,Ac);var jc,Cc,Lc,Rc,Ic,Nc,Fc,kc,Dc,Oc,Uc,Gc,Bc,Xc,Vc,Wc=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,Zc=/^H.([A-Z]{3}).*?:(.*)/,Kc=/^HFDTE(\d{2})(\d{2})(\d{2})/,zc=/\r\n|\r|\n/;function Yc(t,e,o,i,r,n){Ae.call(this),this.j=null,this.M=t||new Image,null!==i&&(this.M.crossOrigin=i),this.c=n?document.createElement("CANVAS"):null,this.g=n,this.f=null,this.i=r,this.a=o,this.o=e,this.l=!1,2==this.i&&Hc(this)}function Hc(e){var t=Ye(1,1);try{t.drawImage(e.M,0,0),t.getImageData(0,0,1,1)}catch(t){e.l=!0}}function qc(t){t=t||{},this.o=void 0!==t.anchor?t.anchor:[.5,.5],this.u=null,this.i=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.C=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.B=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.ra=void 0!==t.crossOrigin?t.crossOrigin:null;var e=void 0!==t.img?t.img:null,o=void 0!==t.imgSize?t.imgSize:null,i=t.src;O(!(void 0!==i&&e),4),O(!e||e&&o,5),O(void 0!==(i=(void 0===i||!i.length)&&e?e.src||G(e).toString():i)&&0<i.length,6);var r=void 0!==t.src?0:2;this.j=void 0!==t.color?Be(t.color):null;var n=this.ra,s=this.j,a=Yn.get(i,n,s);a||(a=new Yc(e,i,o,n,r,s),Yn.set(i,n,s,a)),this.b=a,this.oa=void 0!==t.offset?t.offset:[0,0],this.c=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.S=null,this.D=void 0!==t.size?t.size:null,xh.call(this,{opacity:void 0!==t.opacity?t.opacity:1,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,snapToPixel:void 0===t.snapToPixel||t.snapToPixel,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView})}function Jc(t){t=t||{},this.a=t.font,this.f=t.rotation,this.o=t.rotateWithView,this.b=t.scale,this.Ia=t.text,this.g=t.textAlign,this.j=t.textBaseline,this.Va=void 0!==t.fill?t.fill:new Ah({color:"#333"}),this.Ya=void 0!==t.stroke?t.stroke:null,this.i=void 0!==t.offsetX?t.offsetX:0,this.c=void 0!==t.offsetY?t.offsetY:0}function _c(t){t=t||{},su.call(this),jc||(Lc=new Ah({color:Cc=[255,255,255,1]}),Nc=Ic="pixels",Oc=new qc({anchor:Rc=[20,2],anchorOrigin:"bottom-left",anchorXUnits:Ic,anchorYUnits:Nc,crossOrigin:"anonymous",rotation:0,scale:Dc=.5,size:Fc=[64,64],src:kc="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),Uc="NO_IMAGE",Gc=new Ga({color:Cc,width:1}),Bc=new Ga({color:[51,51,51,1],width:2}),Xc=new Jc({font:"bold 16px Helvetica",fill:Lc,stroke:Bc,scale:.8}),Vc=new Eh({fill:Lc,image:Oc,text:Xc,stroke:Gc,zIndex:0}),jc=[Vc]),this.defaultDataProjection=Bt("EPSG:4326"),this.a=t.defaultStyle||jc,this.c=void 0===t.extractStyles||t.extractStyles,this.j=void 0===t.writeStyles||t.writeStyles,this.b={},this.g=void 0===t.showPointNames||t.showPointNames}(Au=Tc.prototype).ae=function(t,e){var o=this.b,i=t.split(zc);t={};for(var r=[],n=2e3,s=0,a=1,p=-1,h=0,l=i.length;h<l;++h){var u,c,f,y,g,d=i[h];"B"==d.charAt(0)?(u=Wc.exec(d))&&(d=parseInt(u[1],10),c=parseInt(u[2],10),f=parseInt(u[3],10),y=parseInt(u[4],10)+parseInt(u[5],10)/6e4,"S"==u[6]&&(y=-y),g=parseInt(u[7],10)+parseInt(u[8],10)/6e4,"W"==u[9]&&(g=-g),r.push(g,y),"none"!=o&&r.push("gps"==o?parseInt(u[11],10):"barometric"==o?parseInt(u[12],10):0),(u=Date.UTC(n,s,a,d,c,f))<p&&(u=Date.UTC(n,s,a+1,d,c,f)),r.push(u/1e3),p=u):"H"==d.charAt(0)&&((u=Kc.exec(d))?(a=parseInt(u[1],10),s=parseInt(u[2],10)-1,n=2e3+parseInt(u[3],10)):(u=Zc.exec(d))&&(t[u[1]]=u[2].trim()))}return r.length?((i=new ll(null)).ba("none"==o?"XYM":"XYZM",r),(e=new Ih(nl(i,!1,e))).H(t),e):null},Au.zg=function(t,e){return(t=this.ae(t,e))?[t]:[]},Au.ge=function(){},Au.Wg=function(){},Au.Cd=function(){},Au.wd=function(){},e(Yc,Ae),Yc.prototype.v=function(){this.i=3,this.f.forEach(me),this.f=null,this.b("change")},Yc.prototype.u=function(){if(this.i=2,this.a&&(this.M.width=this.a[0],this.M.height=this.a[1]),this.a=[this.M.width,this.M.height],this.f.forEach(me),this.f=null,Hc(this),!this.l&&null!==this.g){this.c.width=this.M.width,this.c.height=this.M.height;var t=this.c.getContext("2d");t.drawImage(this.M,0,0);for(var e=t.getImageData(0,0,this.M.width,this.M.height),o=e.data,i=this.g[0]/255,r=this.g[1]/255,n=this.g[2]/255,s=0,a=o.length;s<a;s+=4)o[s]*=i,o[s+1]*=r,o[s+2]*=n;t.putImageData(e,0,0)}this.b("change")},Yc.prototype.Y=function(){return this.c||this.M},Yc.prototype.load=function(){if(0==this.i){this.i=1,this.f=[ve(this.M,"error",this.v,this),ve(this.M,"load",this.u,this)];try{this.M.src=this.o}catch(t){this.v()}}},e(qc,xh),(Au=qc.prototype).clone=function(){var t,e,o=this.Y(1);return 2===this.b.i&&("IMG"===o.tagName.toUpperCase()?t=o.cloneNode(!0):(e=(t=document.createElement("canvas")).getContext("2d"),t.width=o.width,t.height=o.height,e.drawImage(o,0,0))),new qc({anchor:this.o.slice(),anchorOrigin:this.i,anchorXUnits:this.C,anchorYUnits:this.B,crossOrigin:this.ra,color:this.j&&this.j.slice?this.j.slice():this.j||void 0,img:t||void 0,imgSize:t?this.b.a.slice():void 0,src:t?void 0:this.b.o,offset:this.oa.slice(),offsetOrigin:this.c,size:null!==this.D?this.D.slice():void 0,opacity:this.f,scale:this.a,snapToPixel:this.v,rotation:this.g,rotateWithView:this.l})},Au.Hc=function(){if(this.u)return this.u;var t=this.o,e=this.ic();if("fraction"==this.C||"fraction"==this.B){if(!e)return null;t=this.o.slice(),"fraction"==this.C&&(t[0]*=e[0]),"fraction"==this.B&&(t[1]*=e[1])}if("top-left"!=this.i){if(!e)return null;t===this.o&&(t=this.o.slice()),"top-right"!=this.i&&"bottom-right"!=this.i||(t[0]=-t[0]+e[0]),"bottom-left"!=this.i&&"bottom-right"!=this.i||(t[1]=-t[1]+e[1])}return this.u=t},Au.Lo=function(){return this.j},Au.Y=function(t){return this.b.Y(t)},Au.ye=function(){return this.b.a},Au.Ye=function(){return this.b.i},Au.qg=function(){var t,e,o,i=this.b;return i.j||(i.l?((o=Ye(t=i.a[0],e=i.a[1])).fillRect(0,0,t,e),i.j=o.canvas):i.j=i.M),i.j},Au.Oc=function(){if(this.S)return this.S;var t=this.oa;if("top-left"!=this.c){var e=this.ic(),o=this.b.a;if(!e||!o)return null;t=t.slice(),"top-right"!=this.c&&"bottom-right"!=this.c||(t[0]=o[0]-e[0]-t[0]),"bottom-left"!=this.c&&"bottom-right"!=this.c||(t[1]=o[1]-e[1]-t[1])}return this.S=t},Au.Mo=function(){return this.b.o},Au.ic=function(){return this.D||this.b.a},Au.Nh=function(t,e){return de(this.b,"change",t,e)},Au.load=function(){this.b.load()},Au.Bj=function(t,e){be(this.b,"change",t,e)},(Au=Jc.prototype).clone=function(){return new Jc({font:this.a,rotation:this.f,rotateWithView:this.o,scale:this.b,text:this.Na(),textAlign:this.g,textBaseline:this.j,fill:this.Fa()?this.Fa().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,offsetX:this.i,offsetY:this.c})},Au.Nk=function(){return this.a},Au.cl=function(){return this.i},Au.dl=function(){return this.c},Au.Fa=function(){return this.Va},Au.Ro=function(){return this.o},Au.So=function(){return this.f},Au.To=function(){return this.b},Au.Ga=function(){return this.Ya},Au.Na=function(){return this.Ia},Au.nl=function(){return this.g},Au.ol=function(){return this.j},Au.nj=function(t){this.a=t},Au.sj=function(t){this.i=t},Au.tj=function(t){this.c=t},Au.pf=function(t){this.Va=t},Au.Uo=function(t){this.f=t},Au.Si=function(t){this.b=t},Au.qf=function(t){this.Ya=t},Au.xd=function(t){this.Ia=t},Au.vj=function(t){this.g=t},Au.hq=function(t){this.j=t},e(_c,su);var $c=["http://www.google.com/kml/ext/2.2"],Qc=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],tf={fraction:"fraction",pixels:"pixels",insetPixels:"pixels"};function ef(t,e){var o,i=[0,0],r="start";return!t.Y()||2==(o=null===(o=t.Y().ye())?Fc:o).length&&(r=t.Y().a,i[0]=r*o[0]/2,i[1]=-r*o[1]/2,r="left"),null!==t.Na()?((t=(o=t.Na()).clone()).nj(o.a||Xc.a),t.Si(o.b||Xc.b),t.pf(o.Fa()||Xc.Fa()),t.qf(o.Ga()||Bc)):t=Xc.clone(),t.xd(e),t.sj(i[0]),t.tj(i[1]),t.vj(r),new Eh({text:t})}function of(i,r,n,s,a){return function(){var t=a,e="";if((t=t&&this.V()?"Point"===this.V().U():t)&&(e=this.get("name"),t=t&&e),i)return t?(t=ef(i[0],e),i.concat(t)):i;if(r){var o=function t(e,o,i){return Array.isArray(e)?e:"string"==typeof e?(!(e in i)&&"#"+e in i&&(e="#"+e),t(i[e],o,i)):o}(r,n,s);return t?(t=ef(o[0],e),o.concat(t)):o}return t?(t=ef(n[0],e),n.concat(t)):n}}function rf(t){if(t=kh(t,!1),t=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(t))return t=t[1],[parseInt(t.substr(6,2),16),parseInt(t.substr(4,2),16),parseInt(t.substr(2,2),16),parseInt(t.substr(0,2),16)/255]}function nf(t){t=kh(t,!1);for(var e,o=[],i=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i;e=i.exec(t);)o.push(parseFloat(e[1]),parseFloat(e[2]),e[3]?parseFloat(e[3]):0),t=t.substr(e[0].length);if(""===t)return o}function sf(t){var e=kh(t,!1).trim();return t.baseURI&&"about:blank"!==t.baseURI?new URL(e,t.baseURI).href:e}function af(t){return yu(t)}function pf(t,e){return _h(null,Af,t,e)}function hf(t,e){if(e=_h({A:[],Ej:[]},Tf,t,e)){t=e.A,e=e.Ej;for(var o=0,i=Math.min(t.length,e.length);o<i;++o)t[4*o+3]=e[o];return(e=new ll(null)).ba("XYZM",t),e}}function lf(t,e){var o=_h({},Pf,t,e);if(t=_h(null,jf,t,e))return(e=new ll(null)).ba("XYZ",t),e.H(o),e}function uf(t,e){var o=_h({},Pf,t,e);if(t=_h(null,jf,t,e))return(e=new wr(null)).ba("XYZ",t,[t.length]),e.H(o),e}function cf(t,e){if(!(t=_h([],Ff,t,e)))return null;if(!t.length)return new _l(t);var o=!0,i=t[0].U(),r=1;for(s=t.length;r<s;++r)if((e=t[r]).U()!=i){o=!1;break}if(o)if("Point"==i){for(var n=t[0],o=n.ja,i=n.ga(),r=1,s=t.length;r<s;++r)c(i,(e=t[r]).ga());(n=new gl(null)).ba(o,i),df(n,t)}else"LineString"==i?(yl(n=new cl(null),t),df(n,t)):"Polygon"==i?(wl(n=new dl(null),t),df(n,t)):"GeometryCollection"==i?n=new _l(t):O(!1,37);else n=new _l(t);return n}function ff(t,e){var o=_h({},Pf,t,e);if(t=_h(null,jf,t,e))return(e=new hr(null)).ba("XYZ",t),e.H(o),e}function yf(t,e){var o=_h({},Pf,t,e);if((t=_h([null],Ef,t,e))&&t[0]){e=new wr(null);for(var i=t[0],r=[i.length],n=1,s=t.length;n<s;++n)c(i,t[n]),r.push(i.length);return e.ba("XYZ",i,r),e.H(o),e}}function gf(t,e){if(!(e=_h({},Wf,t,e)))return null;t="fillStyle"in e?e.fillStyle:Lc;var o=e.fill;void 0===o||o||(t=null),(o="imageStyle"in e?e.imageStyle:Oc)==Uc&&(o=void 0);var i="textStyle"in e?e.textStyle:Xc,r="strokeStyle"in e?e.strokeStyle:Gc;return[new Eh({fill:t,image:o,stroke:r=void 0!==(e=e.outline)&&!e?null:r,text:i,zIndex:void 0})]}function df(t,e){for(var o,i=e.length,r=Array(e.length),n=Array(e.length),s=o=!1,a=0;a<i;++a){var p=e[a];r[a]=p.get("extrude"),n[a]=p.get("altitudeMode"),s=s||void 0!==r[a],o=o||n[a]}s&&t.set("extrude",r),o&&t.set("altitudeMode",n)}function vf(t,e){Jh(wf,t,e)}function bf(t,e){Jh(xf,t,e)}var mf=qh(Qc,{displayName:Wh(bu),value:Wh(bu)}),wf=qh(Qc,{Data:function(t,e){var o=t.getAttribute("name");Jh(mf,t,e),t=e[e.length-1],null!==o?t[o]=t.value:null!==t.displayName&&(t[t.displayName]=t.value)},SchemaData:function(t,e){Jh(Vf,t,e)}}),xf=qh(Qc,{LatLonAltBox:function(t,e){(t=_h({},Sf,t,e))&&((e=e[e.length-1]).extent=[parseFloat(t.west),parseFloat(t.south),parseFloat(t.east),parseFloat(t.north)],e.altitudeMode=t.altitudeMode,e.minAltitude=parseFloat(t.minAltitude),e.maxAltitude=parseFloat(t.maxAltitude))},Lod:function(t,e){(t=_h({},Mf,t,e))&&((e=e[e.length-1]).minLodPixels=parseFloat(t.minLodPixels),e.maxLodPixels=parseFloat(t.maxLodPixels),e.minFadeExtent=parseFloat(t.minFadeExtent),e.maxFadeExtent=parseFloat(t.maxFadeExtent))}}),Sf=qh(Qc,{altitudeMode:Wh(bu),minAltitude:Wh(yu),maxAltitude:Wh(yu),north:Wh(yu),south:Wh(yu),east:Wh(yu),west:Wh(yu)}),Mf=qh(Qc,{minLodPixels:Wh(yu),maxLodPixels:Wh(yu),minFadeExtent:Wh(yu),maxFadeExtent:Wh(yu)}),Pf=qh(Qc,{extrude:Wh(uu),altitudeMode:Wh(bu)}),Af=qh(Qc,{coordinates:Xh(nf)}),Ef=qh(Qc,{innerBoundaryIs:function(t,e){(t=_h(void 0,Rf,t,e))&&e[e.length-1].push(t)},outerBoundaryIs:function(t,e){(t=_h(void 0,Uf,t,e))&&(e[e.length-1][0]=t)}}),Tf=qh(Qc,{when:function(t,e){e=e[e.length-1].Ej,t=kh(t,!1),t=Date.parse(t),e.push(isNaN(t)?0:t)}},qh($c,{coord:function(t,e){e=e[e.length-1].A,t=kh(t,!1),(t=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(t))?e.push(parseFloat(t[1]),parseFloat(t[2]),parseFloat(t[3]),0):e.push(0,0,0,0)}})),jf=qh(Qc,{coordinates:Xh(nf)}),Cf=qh(Qc,{href:Wh(sf)},qh($c,{x:Wh(yu),y:Wh(yu),w:Wh(yu),h:Wh(yu)})),Lf=qh(Qc,{Icon:Wh(function(t,e){return(t=_h({},Cf,t,e))?t:null}),heading:Wh(yu),hotSpot:Wh(function(t){var e=t.getAttribute("xunits"),o=t.getAttribute("yunits"),i="insetPixels"!==e?"insetPixels"!==o?"bottom-left":"top-left":"insetPixels"!==o?"bottom-right":"top-right";return{x:parseFloat(t.getAttribute("x")),Xg:tf[e],y:parseFloat(t.getAttribute("y")),Yg:tf[o],origin:i}}),scale:Wh(af)}),Rf=qh(Qc,{LinearRing:Xh(pf)}),If=qh(Qc,{color:Wh(rf),scale:Wh(af)}),Nf=qh(Qc,{color:Wh(rf),width:Wh(yu)}),Ff=qh(Qc,{LineString:Bh(lf),LinearRing:Bh(uf),MultiGeometry:Bh(cf),Point:Bh(ff),Polygon:Bh(yf)}),kf=qh($c,{Track:Bh(hf)}),Df=qh(Qc,{ExtendedData:vf,Region:bf,Link:function(t,e){Jh(Of,t,e)},address:Wh(bu),description:Wh(bu),name:Wh(bu),open:Wh(uu),phoneNumber:Wh(bu),visibility:Wh(uu)}),Of=qh(Qc,{href:Wh(sf)}),Uf=qh(Qc,{LinearRing:Xh(pf)}),Gf=qh(Qc,{Style:Wh(gf),key:Wh(bu),styleUrl:Wh(sf)}),Bf=qh(Qc,{ExtendedData:vf,Region:bf,MultiGeometry:Wh(cf,"geometry"),LineString:Wh(lf,"geometry"),LinearRing:Wh(uf,"geometry"),Point:Wh(ff,"geometry"),Polygon:Wh(yf,"geometry"),Style:Wh(gf),StyleMap:function(t,e){(t=_h(void 0,Zf,t,e))&&(e=e[e.length-1],Array.isArray(t)?e.Style=t:"string"==typeof t?e.styleUrl=t:O(!1,38))},address:Wh(bu),description:Wh(bu),name:Wh(bu),open:Wh(uu),phoneNumber:Wh(bu),styleUrl:Wh(sf),visibility:Wh(uu)},qh($c,{MultiTrack:Wh(function(t,e){if(t=_h([],kf,t,e))return yl(e=new cl(null),t),e},"geometry"),Track:Wh(hf,"geometry")})),Xf=qh(Qc,{color:Wh(rf),fill:Wh(uu),outline:Wh(uu)}),Vf=qh(Qc,{SimpleData:function(t,e){var o=t.getAttribute("name");null!==o&&(t=bu(t),e[e.length-1][o]=t)}}),Wf=qh(Qc,{IconStyle:function(t,e){var o,i,r,n,s,a,p,h,l,u,c,f;(t=_h({},Lf,t,e))&&(e=e[e.length-1],f="Icon"in t?t.Icon:{},o=!("Icon"in t)||0<Object.keys(f).length,(r=f.href)?i=r:o&&(i=kc),r="bottom-left",(u=t.hotSpot)?(n=[u.x,u.y],s=u.Xg,a=u.Yg,r=u.origin):i===kc?(n=Rc,s=Ic,a=Nc):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(i)&&(n=[.5,0],a=s="fraction"),u=f.x,h=f.y,void 0!==u&&void 0!==h&&(p=[u,h]),u=f.w,f=f.h,void 0!==u&&void 0!==f&&(l=[u,f]),void 0!==(f=t.heading)&&(c=M(f)),t=t.scale,o?(i==kc&&(l=Fc,void 0===t&&(t=Dc)),i=new qc({anchor:n,anchorOrigin:r,anchorXUnits:s,anchorYUnits:a,crossOrigin:"anonymous",offset:p,offsetOrigin:"bottom-left",rotation:c,scale:t,size:l,src:i}),e.imageStyle=i):e.imageStyle=Uc)},LabelStyle:function(t,e){(t=_h({},If,t,e))&&(e[e.length-1].textStyle=new Jc({fill:new Ah({color:"color"in t?t.color:Cc}),scale:t.scale}))},LineStyle:function(t,e){(t=_h({},Nf,t,e))&&(e[e.length-1].strokeStyle=new Ga({color:"color"in t?t.color:Cc,width:"width"in t?t.width:1}))},PolyStyle:function(t,e){var o;(t=_h({},Xf,t,e))&&((e=e[e.length-1]).fillStyle=new Ah({color:"color"in t?t.color:Cc}),void 0!==(o=t.fill)&&(e.fill=o),void 0!==(t=t.outline)&&(e.outline=t))}}),Zf=qh(Qc,{Pair:function(t,e){var o;!(t=_h({},Gf,t,e))||(o=t.key)&&"normal"==o&&((o=t.styleUrl)&&(e[e.length-1]=o),(t=t.Style)&&(e[e.length-1]=t))}});function Kf(t,e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE){var o=zf(t,e);if(o)return o}}function zf(t,e){for(var o=e.firstElementChild;o;o=o.nextElementSibling)if(d(Qc,o.namespaceURI)&&"name"==o.localName)return bu(o);for(o=e.firstElementChild;o;o=o.nextElementSibling)if(e=o.localName,d(Qc,o.namespaceURI)&&("Document"==e||"Folder"==e||"Placemark"==e||"kml"==e)&&(e=zf(t,o)))return e}function Yf(t,e){var o=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&c(o,Hf(t,e));return o}function Hf(t,e){for(var o,i=[],r=e.firstElementChild;r;r=r.nextElementSibling)d(Qc,r.namespaceURI)&&"NetworkLink"==r.localName&&(o=_h({},Df,r,[]),i.push(o));for(r=e.firstElementChild;r;r=r.nextElementSibling)e=r.localName,!d(Qc,r.namespaceURI)||"Document"!=e&&"Folder"!=e&&"kml"!=e||c(i,Hf(t,r));return i}function qf(t,e){var o=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&c(o,t.lf(e));return o}function Jf(t,e){var o;for(e=[255*(4==(e=Be(e)).length?e[3]:1),e[2],e[1],e[0]],o=0;o<4;++o){var i=parseInt(e[o],10).toString(16);e[o]=1==i.length?"0"+i:i}Su(t,e.join(""))}function _f(t,e,o){t={node:t};var i,r,n=e.U();"GeometryCollection"==n?(i=e.Vf(),r=Ty):"MultiPoint"==n?(i=e.Zd(),r=Ny):"MultiLineString"==n?(i=e.gd(),r=Fy):"MultiPolygon"==n?(i=e.Td(),r=Dy):O(!1,39),Qh(t,vy,r,i,o)}function $f(t,e,o){Qh({node:t},dy,ky,[e],o)}function Qf(t,e,o){var i={node:t};e.a&&t.setAttribute("id",e.a),t=e.N();var r={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};r[e.c]=1;var n,s=Object.keys(t||{}).sort().filter(function(t){return!r[t]});0<s.length&&(n=Hh(t,s),Qh(i,my,Ry,[{names:s,values:n}],o)),(s=e.Lc())&&(s=s.call(e,0))&&(s=Array.isArray(s)?s[0]:s,this.j&&(t.Style=s),(s=s.Na())&&(t.name=s.Na())),t=Hh(t,s=by[o[o.length-1].node.namespaceURI]),Qh(i,my,Yh,t,o,s),t=o[0],(e=e.V())&&(e=nl(e,!0,t)),Qh(i,my,Ty,[e],o)}function ty(t,e,o){var i=e.ga();(t={node:t}).layout=e.ja,t.stride=e.qa(),Qh(t,wy,Cy,[i],o)}function ey(t,e,o){var i=(e=e.Sd()).shift();Qh(t={node:t},xy,Iy,e,o),Qh(t,xy,Oy,[i],o)}function oy(t,e){wu(t,Math.round(1e6*e)/1e6)}(Au=_c.prototype).vg=function(t,e){if(t=_h([],qh(Qc,{Document:Gh(this.vg,this),Folder:Gh(this.vg,this),Placemark:Bh(this.Dg,this),Style:this.Jp.bind(this),StyleMap:this.Ip.bind(this)}),t,e,this))return t},Au.Dg=function(t,e){var o=_h({geometry:null},Bf,t,e);if(o){var i=new Ih;return null!==(t=t.getAttribute("id"))&&i.jc(t),e=e[0],(t=o.geometry)&&nl(t,!1,e),i.Ra(t),delete o.geometry,this.c&&i.hg(of(o.Style,o.styleUrl,this.a,this.b,this.g)),delete o.Style,i.H(o),i}},Au.Jp=function(t,e){var o=t.getAttribute("id");null!==o&&(e=gf(t,e))&&(t=t.baseURI&&"about:blank"!==t.baseURI?new URL("#"+o,t.baseURI).href:"#"+o,this.b[t]=e)},Au.Ip=function(t,e){var o=t.getAttribute("id");null!==o&&(e=_h(void 0,Zf,t,e))&&(t=t.baseURI&&"about:blank"!==t.baseURI?new URL("#"+o,t.baseURI).href:"#"+o,this.b[t]=e)},Au.xg=function(t,e){return d(Qc,t.namespaceURI)&&(t=this.Dg(t,[il(this,t,e)]))?t:null},Au.zc=function(t,e){if(!d(Qc,t.namespaceURI))return[];var o=t.localName;if("Document"==o||"Folder"==o)return(o=this.vg(t,[il(this,t,e)]))?o:[];if("Placemark"==o)return(e=this.Dg(t,[il(this,t,e)]))?[e]:[];if("kml"!=o)return[];for(o=[],t=t.firstElementChild;t;t=t.nextElementSibling){var i=this.zc(t,e);i&&c(o,i)}return o},Au.Cp=function(t){return Dh(t)?Kf(this,t):Oh(t)?zf(this,t):"string"==typeof t?Kf(this,t=Uh(t)):void 0},Au.Dp=function(t){var e=[];return Dh(t)?c(e,Yf(this,t)):Oh(t)?c(e,Hf(this,t)):"string"==typeof t&&c(e,Yf(this,t=Uh(t))),e},Au.Gp=function(t){var e=[];return Dh(t)?c(e,qf(this,t)):Oh(t)?c(e,this.lf(t)):"string"==typeof t&&c(e,qf(this,t=Uh(t))),e},Au.lf=function(t){for(var e,o=[],i=t.firstElementChild;i;i=i.nextElementSibling)d(Qc,i.namespaceURI)&&"Region"==i.localName&&(e=_h({},xf,i,[]),o.push(e));for(i=t.firstElementChild;i;i=i.nextElementSibling)t=i.localName,!d(Qc,i.namespaceURI)||"Document"!=t&&"Folder"!=t&&"kml"!=t||c(o,this.lf(i));return o};var iy=qh(Qc,["Document","Placemark"]),ry=qh(Qc,{Document:Zh(function(t,e,o){Qh({node:t},ny,Ey,e,o,void 0,this)}),Placemark:Zh(Qf)}),ny=qh(Qc,{Placemark:Zh(Qf)}),sy=qh(Qc,{Data:Zh(function(t,e,o){t.setAttribute("name",e.name),t={node:t},"object"==typeof(e=e.value)?(null!==e&&e.displayName&&Qh(t,sy,Yh,[e.displayName],o,["displayName"]),null!==e&&e.value&&Qh(t,sy,Yh,[e.value],o,["value"])):Qh(t,sy,Yh,[e],o,["value"])}),value:Zh(function(t,e){Su(t,e)}),displayName:Zh(function(t,e){t.appendChild(Nh.createCDATASection(e))})}),ay={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},py=qh(Qc,["href"],qh($c,["x","y","w","h"])),hy=qh(Qc,{href:Zh(Su)},qh($c,{x:Zh(wu),y:Zh(wu),w:Zh(wu),h:Zh(wu)})),ly=qh(Qc,["scale","heading","Icon","hotSpot"]),uy=qh(Qc,{Icon:Zh(function(t,e,o){t={node:t};var i=py[o[o.length-1].node.namespaceURI],r=Hh(e,i);Qh(t,hy,Yh,r,o,i),r=Hh(e,i=py[$c[0]]),Qh(t,hy,Ay,r,o,i)}),heading:Zh(wu),hotSpot:Zh(function(t,e){t.setAttribute("x",e.x),t.setAttribute("y",e.y),t.setAttribute("xunits",e.Xg),t.setAttribute("yunits",e.Yg)}),scale:Zh(oy)}),cy=qh(Qc,["color","scale"]),fy=qh(Qc,{color:Zh(Jf),scale:Zh(oy)}),yy=qh(Qc,["color","width"]),gy=qh(Qc,{color:Zh(Jf),width:Zh(wu)}),dy=qh(Qc,{LinearRing:Zh(ty)}),vy=qh(Qc,{LineString:Zh(ty),Point:Zh(ty),Polygon:Zh(ey),GeometryCollection:Zh(_f)}),by=qh(Qc,"name open visibility address phoneNumber description styleUrl Style".split(" ")),my=qh(Qc,{ExtendedData:Zh(function(t,e,o){t={node:t};var i=e.names;e=e.values;for(var r=i.length,n=0;n<r;n++)Qh(t,sy,Ly,[{name:i[n],value:e[n]}],o)}),MultiGeometry:Zh(_f),LineString:Zh(ty),LinearRing:Zh(ty),Point:Zh(ty),Polygon:Zh(ey),Style:Zh(function(t,e,o){t={node:t};var i={},r=e.Fa(),n=e.Ga(),s=e.Y();e=e.Na(),s instanceof qc&&(i.IconStyle=s),e&&(i.LabelStyle=e),n&&(i.LineStyle=n),r&&(i.PolyStyle=r),i=Hh(i,e=My[o[o.length-1].node.namespaceURI]),Qh(t,Py,Yh,i,o,e)}),address:Zh(Su),description:Zh(Su),name:Zh(Su),open:Zh(mu),phoneNumber:Zh(Su),styleUrl:Zh(Su),visibility:Zh(mu)}),wy=qh(Qc,{coordinates:Zh(function(t,e,o){var i,r=(o=o[o.length-1]).layout;o=o.stride,"XY"==r||"XYM"==r?i=2:"XYZ"==r||"XYZM"==r?i=3:O(!1,34);var n,s=e.length,a="";if(0<s){for(a+=e[0],r=1;r<i;++r)a+=","+e[r];for(n=o;n<s;n+=o)for(a+=" "+e[n],r=1;r<i;++r)a+=","+e[n+r]}Su(t,a)})}),xy=qh(Qc,{outerBoundaryIs:Zh($f),innerBoundaryIs:Zh($f)}),Sy=qh(Qc,{color:Zh(Jf)}),My=qh(Qc,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Py=qh(Qc,{IconStyle:Zh(function(t,e,o){t={node:t};var i,r,n={},s=e.ic(),a=e.ye(),p={href:e.b.o};s&&(p.w=s[0],p.h=s[1],i=e.Hc(),(r=e.Oc())&&a&&r[0]&&r[1]!==s[1]&&(p.x=r[0],p.y=a[1]-(r[1]+s[1])),i&&i[0]&&i[1]!==s[1]&&(n.hotSpot={x:i[0],Xg:"pixels",y:s[1]-i[1],Yg:"pixels"})),n.Icon=p,1!==(s=e.a)&&(n.scale=s),(e=e.g)&&(n.heading=e),n=Hh(n,e=ly[o[o.length-1].node.namespaceURI]),Qh(t,uy,Yh,n,o,e)}),LabelStyle:Zh(function(t,e,o){t={node:t};var i={},r=e.Fa();r&&(i.color=r.b),(e=e.b)&&1!==e&&(i.scale=e),i=Hh(i,e=cy[o[o.length-1].node.namespaceURI]),Qh(t,fy,Yh,i,o,e)}),LineStyle:Zh(function(t,e,o){t={node:t};var i=yy[o[o.length-1].node.namespaceURI];e=Hh({color:e.a,width:e.c},i),Qh(t,gy,Yh,e,o,i)}),PolyStyle:Zh(function(t,e,o){Qh({node:t},Sy,jy,[e.b],o)})});function Ay(t,e,o){return Fh($c[0],"gx:"+o)}function Ey(t,e){return Fh(e[e.length-1].node.namespaceURI,"Placemark")}function Ty(t,e){if(t)return Fh(e[e.length-1].node.namespaceURI,ay[t.U()])}var jy=zh("color"),Cy=zh("coordinates"),Ly=zh("Data"),Ry=zh("ExtendedData"),Iy=zh("innerBoundaryIs"),Ny=zh("Point"),Fy=zh("LineString"),ky=zh("LinearRing"),Dy=zh("Polygon"),Oy=zh("outerBoundaryIs");function Uy(t,e,o,i,r){this.g=r,this.i=t,this.b=e,this.f=o,this.c=i}function Gy(t){ol.call(this),t=t||{},this.defaultDataProjection=new vt({code:"",units:"tile-pixels"}),this.b=t.featureClass||Uy,this.a=t.geometryName,this.i=t.layerName||"layer",this.c=t.layers||null}function By(t,e,o){for(var i=0,r=0,n=t.length;r<n;++r){for(var s=t[r],a=0,p=s.length;a<p;++a){var h=s[a];e.push(h.x,h.y)}i+=2*a,o.push(i)}}function Xy(){su.call(this),this.defaultDataProjection=Bt("EPSG:4326")}function Vy(t,e){e[e.length-1].fe[t.getAttribute("k")]=t.getAttribute("v")}_c.prototype.Xb=function(t,e){e=rl(this,e);var o=Fh(Qc[4],"kml");o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:gx",$c[0]),o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");var i={node:o},r={};return 1<t.length?r.Document=t:1==t.length&&(r.Placemark=t[0]),r=Hh(r,t=iy[o.namespaceURI]),Qh(i,ry,Yh,r,[e],t,this),o},qa.Dd=function(){},function(t){function e(t){this.lc=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.type=this.ea=0,this.length=this.lc.length}function s(t,e,o){return o?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}var o=function(t,e,o,i,r){var n=8*r-i-1,s=(1<<n)-1,a=s>>1,p=-7,h=o?-1:1,l=t[e+(r=o?r-1:0)];for(r+=h,o=l&(1<<-p)-1,l>>=-p,p+=n;0<p;o=256*o+t[e+r],r+=h,p-=8);for(n=o&(1<<-p)-1,o>>=-p,p+=i;0<p;n=256*n+t[e+r],r+=h,p-=8);if(0===o)o=1-a;else{if(o===s)return n?NaN:1/0*(l?-1:1);n+=Math.pow(2,i),o-=a}return(l?-1:1)*n*Math.pow(2,o-i)};e.c=0,e.i=1,e.b=2,e.a=5,e.prototype={Ag:function(t,e,o){for(o=o||this.length;this.ea<o;){var i=this.Ka(),r=i>>3,n=this.ea;this.type=7&i,t(r,e,this),this.ea===n&&this.mq(i)}return e},yp:function(){var t=o(this.lc,this.ea,!0,23,4);return this.ea+=4,t},up:function(){var t=o(this.lc,this.ea,!0,52,8);return this.ea+=8,t},Ka:function(t){var e=this.lc,o=e[this.ea++],i=127&o;return o<128?i:(i|=(127&(o=e[this.ea++]))<<7,o<128?i:(i|=(127&(o=e[this.ea++]))<<14,o<128?i:(i|=(127&(o=e[this.ea++]))<<21,o<128?i:function(t,e,o){var i=o.lc,r=i[o.ea++],n=(112&r)>>4;if(r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<3,r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<10,r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<17,r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<24,r<128)return s(t,n,e);if((r=i[o.ea++])<128)return s(t,n|(1&r)<<31,e);throw Error("Expected varint not more than 10 bytes")}(i|(15&e[this.ea])<<28,t,this))))},Kp:function(){return this.Ka(!0)},ce:function(){var t=this.Ka();return 1==t%2?(t+1)/-2:t/2},sp:function(){return!!this.Ka()},Gg:function(){for(var t=this.Ka()+this.ea,e=this.lc,o="",i=this.ea;i<t;){var r,n,s,a=e[i],p=null,h=239<a?4:223<a?3:191<a?2:1;if(t<i+h)break;1===h?a<128&&(p=a):2===h?128!=(192&(r=e[i+1]))||(p=(31&a)<<6|63&r)<=127&&(p=null):3===h?(r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&((p=(15&a)<<12|(63&r)<<6|63&n)<=2047||55296<=p&&p<=57343)&&(p=null)):4===h&&(r=e[i+1],n=e[i+2],s=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&((p=(15&a)<<18|(63&r)<<12|(63&n)<<6|63&s)<=65535||1114112<=p)&&(p=null)),null===p?(p=65533,h=1):65535<p&&(p-=65536,o+=String.fromCharCode(p>>>10&1023|55296),p=56320|1023&p),o+=String.fromCharCode(p),i+=h}return this.ea=t,o},mq:function(t){if((t&=7)===e.c)for(;127<this.lc[this.ea++];);else if(t===e.b)this.ea=this.Ka()+this.ea;else if(t===e.a)this.ea+=4;else{if(t!==e.i)throw Error("Unimplemented type: "+t);this.ea+=8}}},t.default=e}(qa.Dd=qa.Dd||{}),qa.Dd=qa.Dd.default,qa.xf={},qa.xf.Bf=function(){},function(t){function e(t,e){this.layers=t.Ag(s,{},e)}function p(t,e){this.x=t,this.y=e}function o(t,e,o,i,r){this.properties={},this.extent=o,this.type=0,this.Cc=t,this.Ef=-1,this.ne=i,this.pe=r,t.Ag(n,this,e)}function n(t,e,o){if(1==t)e.id=o.Ka();else if(2==t)for(t=o.Ka()+o.ea;o.ea<t;){var i=e.ne[o.Ka()],r=e.pe[o.Ka()];e.properties[i]=r}else 3==t?e.type=o.Ka():4==t&&(e.Ef=o.ea)}function i(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this.Cc=t,this.ne=[],this.pe=[],this.me=[],t.Ag(r,this,e),this.length=this.me.length}function r(t,e,o){15===t?e.version=o.Ka():1===t?e.name=o.Gg():5===t?e.extent=o.Ka():2===t?e.me.push(o.ea):3===t?e.ne.push(o.Gg()):4===t&&e.pe.push(function(t){for(var e=null,o=t.Ka()+t.ea;t.ea<o;)e=1==(e=t.Ka()>>3)?t.Gg():2===e?t.yp():3===e?t.up():4===e?t.Kp():5===e?t.Ka():6===e?t.ce():7===e?t.sp():null;return e}(o))}function s(t,e,o){3===t&&((t=new a(o,o.Ka()+o.ea)).length&&(e[t.name]=t))}p.prototype={clone:function(){return new p(this.x,this.y)},add:function(t){return this.clone().Yj(t)},rotate:function(t){return this.clone().hk(t)},round:function(){return this.clone().ik()},angle:function(){return Math.atan2(this.y,this.x)},Yj:function(t){return this.x+=t.x,this.y+=t.y,this},hk:function(t){var e=Math.cos(t),o=(t=Math.sin(t))*this.x+e*this.y;return this.x=e*this.x-t*this.y,this.y=o,this},ik:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},p.Kq=function(t){return!(t instanceof p)&&Array.isArray(t)?new p(t[0],t[1]):t},o.b=["Unknown","Point","LineString","Polygon"],o.prototype.Oh=function(){var t=this.Cc;t.ea=this.Ef;for(var e,o=t.Ka()+t.ea,i=1,r=0,n=0,s=0,a=[];t.ea<o;)if(r||(i=7&(r=t.Ka()),r>>=3),r--,1===i||2===i)n+=t.ce(),s+=t.ce(),1===i&&(e&&a.push(e),e=[]),e.push(new p(n,s));else{if(7!==i)throw Error("unknown command "+i);e&&e.push(e[0].clone())}return e&&a.push(e),a},o.prototype.bbox=function(){var t=this.Cc;t.ea=this.Ef;for(var e=t.Ka()+t.ea,o=1,i=0,r=0,n=0,s=1/0,a=-1/0,p=1/0,h=-1/0;t.ea<e;)if(i||(o=7&(i=t.Ka()),i>>=3),i--,1===o||2===o)(r+=t.ce())<s&&(s=r),a<r&&(a=r),(n+=t.ce())<p&&(p=n),h<n&&(h=n);else if(7!==o)throw Error("unknown command "+o);return[s,p,a,h]};var a=i;i.prototype.feature=function(t){if(t<0||t>=this.me.length)throw Error("feature index out of bounds");return this.Cc.ea=this.me[t],t=this.Cc.Ka()+this.Cc.ea,new o(this.Cc,t,this.extent,this.ne,this.pe)};var h=a;t.default={Bf:e,Wj:o,Xj:h},t.Bf=e,t.Wj=o,t.Xj=h}(qa.xf=qa.xf||{}),(Au=Uy.prototype).get=function(t){return this.c[t]},Au.Bb=function(){return this.f},Au.G=function(){return this.a||(this.a="Point"===this.i?k(this.b):W(this.b,0,this.b.length,2)),this.a},Au.Wn=function(){return this.g},Au.ec=function(){return this.b},Au.ga=Uy.prototype.ec,Au.V=function(){return this},Au.Xn=function(){return this.c},Au.Vd=Uy.prototype.V,Au.qa=function(){return 2},Au.Lc=w,Au.U=function(){return this.i},e(Gy,ol),(Au=Gy.prototype).U=function(){return"arraybuffer"},Au.Oa=function(t,e){var o=this.c;t=new qa.Dd(t),t=new qa.xf.Bf(t);var i,r=[],n=this.b;for(i in t.layers)if(!o||-1!=o.indexOf(i))for(var s,a,p,h,l,u,c,f,y,g=t.layers[i],d=0,v=g.length;d<v;++d)n===Uy?(s=void 0,p=i,By(h=(a=g.feature(d)).Oh(),u=[],l=[]),1===(c=a.type)?s=1===h.length?"Point":"MultiPoint":2===c?s=1===h.length?"LineString":"MultiLineString":3===c&&(s="Polygon"),(h=a.properties)[this.i]=p,s=new this.b(s,u,l,h,a.id)):(c=g.feature(d),u=i,l=e,s=new this.b,a=c.id,(p=c.properties)[this.i]=u,this.a&&s.Tc(this.a),u=void 0,0===(h=c.type)?u=null:(f=[],y=[],By(c=c.Oh(),y,f),1===h?u=new(1===c.length?hr:gl)(null):2===h?u=new(1===c.length?ll:cl)(null):3===h&&(u=new wr(null)),u.ba("XY",y,f)),l=nl(u,!1,rl(this,l)),s.Ra(l),s.jc(a),s.H(p)),r.push(s);return r},Au.kb=function(){return this.defaultDataProjection},Au.mn=function(t){this.c=t},Au.Tb=function(){},Au.Sc=function(){},Au.Bd=function(){},Au.$c=function(){},Au.Wb=function(){},e(Xy,su);var Ao=[null],Wy=qh(Ao,{nd:function(t,e){e[e.length-1].md.push(t.getAttribute("ref"))},tag:Vy}),Zy=qh(Ao,{node:function(t,e){var o=e[0],i=e[e.length-1],r=t.getAttribute("id"),n=[parseFloat(t.getAttribute("lon")),parseFloat(t.getAttribute("lat"))];i.Sh[r]=n,ct((t=_h({fe:{}},Ky,t,e)).fe)||(nl(n=new hr(n),!1,o),(o=new Ih(n)).jc(r),o.H(t.fe),i.features.push(o))},way:function(t,e){var o=e[0],i=t.getAttribute("id");t=_h({md:[],fe:{}},Wy,t,e),e=e[e.length-1];for(var r=[],n=0,s=t.md.length;n<s;n++)c(r,e.Sh[t.md[n]]);t.md[0]==t.md[t.md.length-1]?(n=new wr(null)).ba("XY",r,[r.length]):(n=new ll(null)).ba("XY",r),nl(n,!1,o),(o=new Ih(n)).jc(i),o.H(t.fe),e.features.push(o)}}),Ky=qh(Ao,{tag:Vy});function zy(t){return t.getAttributeNS("http://www.w3.org/1999/xlink","href")}function Yy(){}function Hy(){}Xy.prototype.zc=function(t,e){return e=il(this,t,e),"osm"==t.localName&&(t=_h({Sh:{},features:[]},Zy,t,[e])).features?t.features:[]},Xy.prototype.Vg=function(){},Xy.prototype.Xb=function(){},Xy.prototype.ie=function(){},Yy.prototype.read=function(t){return Dh(t)?this.a(t):Oh(t)?this.b(t):"string"==typeof t?(t=Uh(t),this.a(t)):null},e(Hy,Yy),Hy.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},Hy.prototype.b=function(t){return(t=_h({},Jy,t,[]))?t:null};var qy=[null,"http://www.opengis.net/ows/1.1"],Jy=qh(qy,{ServiceIdentification:Wh(function(t,e){return _h({},pg,t,e)}),ServiceProvider:Wh(function(t,e){return _h({},hg,t,e)}),OperationsMetadata:Wh(function(t,e){return _h({},rg,t,e)})}),_y=qh(qy,{DeliveryPoint:Wh(bu),City:Wh(bu),AdministrativeArea:Wh(bu),PostalCode:Wh(bu),Country:Wh(bu),ElectronicMailAddress:Wh(bu)}),$y=qh(qy,{Value:Vh(bu)}),Qy=qh(qy,{AllowedValues:Wh(function(t,e){return _h({},$y,t,e)})}),tg=qh(qy,{Phone:Wh(function(t,e){return _h({},ng,t,e)}),Address:Wh(function(t,e){return _h({},_y,t,e)})}),eg=qh(qy,{HTTP:Wh(function(t,e){return _h({},og,t,e)})}),og=qh(qy,{Get:Vh(function(t,e){var o=zy(t);if(o)return _h({href:o},sg,t,e)}),Post:void 0}),ig=qh(qy,{DCP:Wh(function(t,e){return _h({},eg,t,e)})}),rg=qh(qy,{Operation:function(t,e){var o=t.getAttribute("name");(t=_h({},ig,t,e))&&(e[e.length-1][o]=t)}}),ng=qh(qy,{Voice:Wh(bu),Facsimile:Wh(bu)}),sg=qh(qy,{Constraint:Vh(function(t,e){var o=t.getAttribute("name");if(o)return _h({name:o},Qy,t,e)})}),ag=qh(qy,{IndividualName:Wh(bu),PositionName:Wh(bu),ContactInfo:Wh(function(t,e){return _h({},tg,t,e)})}),pg=qh(qy,{Title:Wh(bu),ServiceTypeVersion:Wh(bu),ServiceType:Wh(bu)}),hg=qh(qy,{ProviderName:Wh(bu),ProviderSite:Wh(zy),ServiceContact:Wh(function(t,e){return _h({},ag,t,e)})});function lg(t,e,o,i){for(var r=void 0!==i?i:[],n=i=0;n<e;){var s=t[n++];for(r[i++]=t[n++],r[i++]=s,s=2;s<o;++s)r[i++]=t[n++]}r.length=i}function ug(t){t=t||{},ol.call(this),this.defaultDataProjection=Bt("EPSG:4326"),this.b=t.factor||1e5,this.a=t.geometryLayout||"XY"}function cg(t,e,o){for(var i=Array(e),r=0;r<e;++r)i[r]=0;for(var n=0,s=t.length;n<s;)for(r=0;r<e;++r,++n){var a=t[n],p=a-i[r];i[r]=a,t[n]=p}return yg(t,o||1e5)}function fg(t,e,o){for(var i,r=Array(e),n=0;n<e;++n)r[n]=0;for(t=gg(t,o||1e5),o=0,i=t.length;o<i;)for(n=0;n<e;++n,++o)r[n]+=t[o],t[o]=r[n];return t}function yg(t,e){e=e||1e5;for(var o=0,i=t.length;o<i;++o)t[o]=Math.round(t[o]*e);for(e=0,o=t.length;e<o;++e)i=t[e],t[e]=i<0?~(i<<1):i<<1;for(e="",o=0,i=t.length;o<i;++o){for(var r,n=t[o],s="";32<=n;)r=63+(32|31&n),s+=String.fromCharCode(r),n>>=5;e+=s+=String.fromCharCode(n+63)}return e}function gg(t,e){e=e||1e5;for(var o=[],i=0,r=0,n=0,s=t.length;n<s;++n){var a=t.charCodeAt(n)-63,i=i|(31&a)<<r;a<32?(o.push(i),r=i=0):r+=5}for(t=0,i=o.length;t<i;++t)r=o[t],o[t]=1&r?~(r>>1):r>>1;for(t=0,i=o.length;t<i;++t)o[t]/=e;return o}function dg(t){t=t||{},ol.call(this),this.a=t.layerName,this.b=t.layers||null,this.defaultDataProjection=Bt(t.defaultDataProjection||"EPSG:4326")}function vg(t,e){for(var o=[],i=0,r=t.length;i<r;++i){var n=t[i];0<i&&o.pop(),n=0<=n?e[n]:e[~n].slice().reverse(),o.push.apply(o,n)}for(t=0,e=o.length;t<e;++t)o[t]=o[t].slice();return o}function bg(t,e,o,i,r,n,s){var a=t.type,p=wg[a];return o="Point"===a||"MultiPoint"===a?p(t,o,i):p(t,e),(e=new Ih).Ra(nl(o,!1,s)),void 0!==t.id&&e.jc(t.id),t=t.properties,r&&((t=t||{})[r]=n),t&&e.H(t),e}function mg(t,e,o){t[0]=t[0]*e[0]+o[0],t[1]=t[1]*e[1]+o[1]}e(ug,Ac),(Au=ug.prototype).ae=function(t,e){return new Ih(t=this.wd(t,e))},Au.zg=function(t,e){return[this.ae(t,e)]},Au.wd=function(t,e){var o=Zi(this.a);return lg(t=fg(t,o,this.b),t.length,o,t),nl(new ll(ir(t,0,t.length,o),this.a),!1,rl(this,e))},Au.ge=function(t,e){return(t=t.V())?this.Cd(t,e):(O(!1,40),"")},Au.Wg=function(t,e){return this.ge(t[0],e)},Au.Cd=function(t,e){return e=(t=nl(t,!0,rl(this,e))).ga(),t=t.qa(),lg(e,e.length,t,e),cg(e,t,this.b)},e(dg,sl),dg.prototype.yg=function(t,e){if("Topology"!=t.type)return[];var o=null,i=null;t.transform&&(o=(n=t.transform).scale,i=n.translate);var r=t.arcs;if(n)for(var n=o,s=i,a=0,p=r.length;a<p;++a)for(var h=r[a],l=n,u=s,c=0,f=0,y=0,g=h.length;y<g;++y){var d=h[y];c+=d[0],f+=d[1],d[0]=c,d[1]=f,mg(d,l,u)}n=[],t=t.objects;var v,s=this.a;for(v in t)this.b&&-1==this.b.indexOf(v)||("GeometryCollection"===t[v].type?(a=t[v],n.push.apply(n,function(t,e,o,i,r,n,s){for(var a=[],p=0,h=(t=t.geometries).length;p<h;++p)a[p]=bg(t[p],e,o,i,r,n,s);return a}(a,r,o,i,s,v,e))):(a=t[v],n.push(bg(a,r,o,i,s,v,e))));return n},dg.prototype.Fg=function(){return this.defaultDataProjection};var wg={Point:function(t,e,o){return t=t.coordinates,e&&o&&mg(t,e,o),new hr(t)},LineString:function(t,e){return new ll(t=vg(t.arcs,e))},Polygon:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i)o[i]=vg(t.arcs[i],e);return new wr(o)},MultiPoint:function(t,e,o){if(t=t.coordinates,e&&o)for(var i=0,r=t.length;i<r;++i)mg(t[i],e,o);return new gl(t)},MultiLineString:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i)o[i]=vg(t.arcs[i],e);return new cl(o)},MultiPolygon:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i){for(var n=t.arcs[i],s=[],a=0,p=n.length;a<p;++a)s[a]=vg(n[a],e);o[i]=s}return new dl(o)}};function xg(t){t=t||{},this.c=t.featureType,this.a=t.featureNS,this.b=t.gmlFormat||new Mu,this.o=t.schemaLocation||Sg["1.1.0"],su.call(this)}(Au=dg.prototype).Zc=function(){},Au.he=function(){},Au.je=function(){},Au.Cg=function(){},Au.Rc=function(){},e(xg,su);var Sg={"1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"};function Mg(t,e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return Ag(t,e)}xg.prototype.zc=function(t,e){var o={featureType:this.c,featureNS:this.a};return ht(o,il(this,t,e||{})),e=[o],this.b.b["http://www.opengis.net/gml"].featureMember=Bh(hu.prototype.be),t=!(t=_h([],this.b.b,t,e,this.b))?[]:t},xg.prototype.j=function(t){return Dh(t)?Lg(t):Oh(t)?_h({},Cg,t,[]):"string"==typeof t?Lg(t=Uh(t)):void 0},xg.prototype.g=function(t){return Dh(t)?Mg(this,t):Oh(t)?Ag(this,t):"string"==typeof t?Mg(this,t=Uh(t)):void 0};var Pg={"http://www.opengis.net/gml":{boundedBy:Wh(hu.prototype.gf,"bounds")}};function Ag(t,e){var o={},i=vu(e.getAttribute("numberOfFeatures"));return o.numberOfFeatures=i,_h(o,Pg,e,[],t.b)}var Eg={"http://www.opengis.net/wfs":{totalInserted:Wh(du),totalUpdated:Wh(du),totalDeleted:Wh(du)}},Tg={"http://www.opengis.net/ogc":{FeatureId:Bh(function(t){return t.getAttribute("fid")})}},jg={"http://www.opengis.net/wfs":{Feature:function(t,e){Jh(Tg,t,e)}}},Cg={"http://www.opengis.net/wfs":{TransactionSummary:Wh(function(t,e){return _h({},Eg,t,e)},"transactionSummary"),InsertResults:Wh(function(t,e){return _h([],jg,t,e)},"insertIds")}};function Lg(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return _h({},Cg,t,[])}var Rg={"http://www.opengis.net/wfs":{PropertyName:Zh(Su)}};function Ig(t,e){var o=Fh("http://www.opengis.net/ogc","Filter"),i=Fh("http://www.opengis.net/ogc","FeatureId");o.appendChild(i),i.setAttribute("fid",e),t.appendChild(o)}function Ng(t,e){return t=(t||"feature")+":",e.indexOf(t)?t+e:e}var Fg={"http://www.opengis.net/wfs":{Insert:Zh(function(t,e,o){var i=(r=o[o.length-1]).gmlVersion,r=Fh(r.featureNS,r.featureType);if(t.appendChild(r),2===i){t=Nu.prototype,(i=e.a)&&r.setAttribute("fid",i);var n=(i=o[o.length-1]).featureNS,s=e.c;i.lb||(i.lb={},i.lb[n]={});var a=e.N();e=[];var p=[];for(l in a){var h=a[l];null!==h&&(e.push(l),p.push(h),l==s||h instanceof Bi?l in i.lb[n]||(i.lb[n][l]=Zh(t.ai,t)):l in i.lb[n]||(i.lb[n][l]=Zh(Su)))}var l=ht({},i);l.node=r,Qh(l,i.lb,zh(void 0,n),p,o,e)}else Mu.prototype.ii(r,e,o)}),Update:Zh(function(t,e,o){var i=o[o.length-1];O(void 0!==e.a,27);var r=i.featurePrefix,n=i.featureNS;if(t.setAttribute("typeName",Ng(r,i.featureType)),t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+r,n),void 0!==(r=e.a)){for(var s=[],a=0,p=(n=e.O()).length;a<p;a++){var h=e.get(n[a]);void 0!==h&&s.push({name:n[a],value:h})}Qh({gmlVersion:i.gmlVersion,node:t,hasZ:i.hasZ,srsName:i.srsName},Fg,zh("Property"),s,o),Ig(t,r)}}),Delete:Zh(function(t,e,o){o=o[o.length-1],O(void 0!==e.a,26);var i=o.featurePrefix,r=o.featureNS;t.setAttribute("typeName",Ng(i,o.featureType)),t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+i,r),void 0!==(e=e.a)&&Ig(t,e)}),Property:Zh(function(t,e,o){var i=Fh("http://www.opengis.net/wfs","Name"),r=o[o.length-1].gmlVersion;t.appendChild(i),Su(i,e.name),void 0!==e.value&&null!==e.value&&(i=Fh("http://www.opengis.net/wfs","Value"),t.appendChild(i),e.value instanceof Bi?2===r?Nu.prototype.ai(i,e.value,o):Mu.prototype.od(i,e.value,o):Su(i,e.value))}),Native:Zh(function(t,e){e.vq&&t.setAttribute("vendorId",e.vq),void 0!==e.Vp&&t.setAttribute("safeToIgnore",e.Vp),void 0!==e.value&&Su(t,e.value)})}};function kg(t,e,o){var i={node:t};e.b.forEach(function(t){Qh(i,Xg,zh(t.kc),[t],o)})}function Dg(t,e){void 0!==e.a&&t.setAttribute("matchCase",e.a.toString()),Ug(t,e.b),Gg(t,""+e.i)}function Og(t,e,o){Su(t=Fh("http://www.opengis.net/ogc",t),o),e.appendChild(t)}function Ug(t,e){Og("PropertyName",t,e)}function Gg(t,e){Og("Literal",t,e)}function Bg(t,e){var o=Fh("http://www.opengis.net/gml","TimeInstant");t.appendChild(o),t=Fh("http://www.opengis.net/gml","timePosition"),o.appendChild(t),Su(t,e)}var Xg={"http://www.opengis.net/wfs":{Query:Zh(function(t,e,o){var i=o[o.length-1],r=i.featurePrefix,n=i.featureNS,s=i.propertyNames,a=i.srsName;t.setAttribute("typeName",r?Ng(r,e):e),a&&t.setAttribute("srsName",a),n&&t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+r,n),(e=ht({},i)).node=t,Qh(e,Rg,zh("PropertyName"),s,o),(i=i.filter)&&(s=Fh("http://www.opengis.net/ogc","Filter"),t.appendChild(s),Qh({node:s},Xg,zh(i.kc),[i],o))})},"http://www.opengis.net/ogc":{During:Zh(function(t,e){var o=Fh("http://www.opengis.net/fes","ValueReference");Su(o,e.b),t.appendChild(o),o=Fh("http://www.opengis.net/gml","TimePeriod"),t.appendChild(o),t=Fh("http://www.opengis.net/gml","begin"),o.appendChild(t),Bg(t,e.a),t=Fh("http://www.opengis.net/gml","end"),o.appendChild(t),Bg(t,e.i)}),And:Zh(kg),Or:Zh(kg),Not:Zh(function(t,e,o){e=e.condition,Qh({node:t},Xg,zh(e.kc),[e],o)}),BBOX:Zh(function(t,e,o){o[o.length-1].srsName=e.srsName,Ug(t,e.geometryName),Mu.prototype.od(t,e.extent,o)}),Intersects:Zh(function(t,e,o){o[o.length-1].srsName=e.srsName,Ug(t,e.geometryName),Mu.prototype.od(t,e.geometry,o)}),Within:Zh(function(t,e,o){o[o.length-1].srsName=e.srsName,Ug(t,e.geometryName),Mu.prototype.od(t,e.geometry,o)}),PropertyIsEqualTo:Zh(Dg),PropertyIsNotEqualTo:Zh(Dg),PropertyIsLessThan:Zh(Dg),PropertyIsLessThanOrEqualTo:Zh(Dg),PropertyIsGreaterThan:Zh(Dg),PropertyIsGreaterThanOrEqualTo:Zh(Dg),PropertyIsNull:Zh(function(t,e){Ug(t,e.b)}),PropertyIsBetween:Zh(function(t,e){Ug(t,e.b);var o=Fh("http://www.opengis.net/ogc","LowerBoundary");t.appendChild(o),Gg(o,""+e.a),o=Fh("http://www.opengis.net/ogc","UpperBoundary"),t.appendChild(o),Gg(o,""+e.i)}),PropertyIsLike:Zh(function(t,e){t.setAttribute("wildCard",e.g),t.setAttribute("singleChar",e.f),t.setAttribute("escapeChar",e.i),void 0!==e.a&&t.setAttribute("matchCase",e.a.toString()),Ug(t,e.b),Gg(t,""+e.c)})}};function Vg(t){t=t||{},ol.call(this),this.b=void 0!==t.splitCollection&&t.splitCollection}function Wg(t){return(t=t.X()).length?t.join(" "):""}function Zg(t){for(var e=[],o=0,i=(t=t.X()).length;o<i;++o)e.push(t[o].join(" "));return e.join(",")}function Kg(t){for(var e=[],o=0,i=(t=t.Sd()).length;o<i;++o)e.push("("+Zg(t[o])+")");return e.join(",")}function zg(t){var e,o=t.U(),i=(0,Yg[o])(t),o=o.toUpperCase();return t instanceof Wi&&(e="","XYZ"!==(t=t.ja)&&"XYZM"!==t||(e+="Z"),"XYM"!==t&&"XYZM"!==t||(e+="M"),0<(t=e).length&&(o+=" "+t)),i.length?o+"("+i+")":o+" EMPTY"}xg.prototype.l=function(t){var e,o,i=Fh("http://www.opengis.net/wfs","GetFeature");return i.setAttribute("service","WFS"),i.setAttribute("version","1.1.0"),t&&(t.handle&&i.setAttribute("handle",t.handle),t.outputFormat&&i.setAttribute("outputFormat",t.outputFormat),void 0!==t.maxFeatures&&i.setAttribute("maxFeatures",t.maxFeatures),t.resultType&&i.setAttribute("resultType",t.resultType),void 0!==t.startIndex&&i.setAttribute("startIndex",t.startIndex),void 0!==t.count&&i.setAttribute("count",t.count),o=t.filter,t.bbox&&(O(t.geometryName,12),e=Jl(t.geometryName,t.bbox,t.srsName),o=o?ql(o,e):e)),i.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.o),o={node:i,srsName:t.srsName,featureNS:t.featureNS||this.a,featurePrefix:t.featurePrefix,geometryName:t.geometryName,filter:o,propertyNames:t.propertyNames||[]},O(Array.isArray(t.featureTypes),11),t=t.featureTypes,(e=ht({},(o=[o])[o.length-1])).node=i,Qh(e,Xg,zh("Query"),t,o),i},xg.prototype.v=function(t,e,o,i){var r,n=[],s=Fh("http://www.opengis.net/wfs","Transaction"),a=i.version||"1.1.0",p="1.0.0"===a?2:3;return s.setAttribute("service","WFS"),s.setAttribute("version",a),i&&(r=i.gmlOptions||{},i.handle&&s.setAttribute("handle",i.handle)),s.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",Sg[a]),t&&(a={node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,hasZ:i.hasZ,srsName:i.srsName},ht(a,r),Qh(a,Fg,zh("Insert"),t,n)),e&&(a={node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,hasZ:i.hasZ,srsName:i.srsName},ht(a,r),Qh(a,Fg,zh("Update"),e,n)),o&&Qh({node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,srsName:i.srsName},Fg,zh("Delete"),o,n),i.nativeElements&&Qh({node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,srsName:i.srsName},Fg,zh("Native"),i.nativeElements,n),s},xg.prototype.Eg=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.kf(t);return null},xg.prototype.kf=function(t){if(t.firstElementChild&&t.firstElementChild.firstElementChild)for(t=(t=t.firstElementChild.firstElementChild).firstElementChild;t;t=t.nextElementSibling)if(0!==t.childNodes.length&&(1!==t.childNodes.length||3!==t.firstChild.nodeType)){var e=[{}];return this.b.gf(t,e),Bt(e.pop().srsName)}return null},e(Vg,Ac);var Yg={Point:Wg,LineString:Zg,Polygon:Kg,MultiPoint:function(t){for(var e=[],o=0,i=(t=t.Zd()).length;o<i;++o)e.push("("+Wg(t[o])+")");return e.join(",")},MultiLineString:function(t){for(var e=[],o=0,i=(t=t.gd()).length;o<i;++o)e.push("("+Zg(t[o])+")");return e.join(",")},MultiPolygon:function(t){for(var e=[],o=0,i=(t=t.Td()).length;o<i;++o)e.push("("+Kg(t[o])+")");return e.join(",")},GeometryCollection:function(t){for(var e=[],o=0,i=(t=t.Vf()).length;o<i;++o)e.push(zg(t[o]));return e.join(",")}};function Hg(t){this.a=t,this.b=-1}function qg(t){this.i=t,this.a="XY"}function Jg(t){t.b=function t(e){var o=e.a.charAt(++e.b),i={position:e.b,value:o};if("("==o)i.type=2;else if(","==o)i.type=5;else if(")"==o)i.type=3;else if("0"<=o&&o<="9"||"."==o||"-"==o){i.type=4;var o=e.b,r=!1,n=!1;do{"."==s?r=!0:"e"!=s&&"E"!=s||(n=!0);var s=e.a.charAt(++e.b)}while("0"<=s&&s<="9"||"."==s&&(void 0===r||!r)||!n&&("e"==s||"E"==s)||n&&("-"==s||"+"==s));e=parseFloat(e.a.substring(o,e.b--)),i.value=e}else if("a"<=o&&o<="z"||"A"<=o&&o<="Z"){for(i.type=1,o=e.b;s=e.a.charAt(++e.b),"a"<=s&&s<="z"||"A"<=s&&s<="Z";);e=e.a.substring(o,e.b--).toUpperCase(),i.value=e}else{if(" "==o||"\t"==o||"\r"==o||"\n"==o)return t(e);if(""!==o)throw Error("Unexpected character: "+o);i.type=6}return i}(t.i)}function _g(t,e){return(e=t.b.type==e)&&Jg(t),e}function $g(t){for(var e=[],o=t.a.length,i=0;i<o;++i){var r=t.b;if(!_g(t,4))break;e.push(r.value)}if(e.length==o)return e;throw Error(od(t))}function Qg(t){for(var e=[$g(t)];_g(t,5);)e.push($g(t));return e}function td(t){for(var e=[t.sg()];_g(t,5);)e.push(t.sg());return e}function ed(t){var e=1==t.b.type&&"EMPTY"==t.b.value;return e&&Jg(t),e}function od(t){return"Unexpected `"+t.b.value+"` at position "+t.b.position+" in `"+t.i.a+"`"}(Au=Vg.prototype).ae=function(t,e){return(t=this.wd(t,e))?((e=new Ih).Ra(t),e):null},Au.zg=function(t,e){var o=[];t=this.wd(t,e),e=[];for(var i=0,r=(o=this.b&&"GeometryCollection"==t.U()?t.a:[t]).length;i<r;++i)(t=new Ih).Ra(o[i]),e.push(t);return e},Au.wd=function(t,e){return Jg(t=new qg(new Hg(t))),(t=function t(e){var o=e.b;if(_g(e,1)){var o=o.value,i="XY",r=e.b;if(1==e.b.type&&("Z"===(r=r.value)?i="XYZ":"M"===r?i="XYM":"ZM"===r&&(i="XYZM"),"XY"!==i&&Jg(e)),e.a=i,"GEOMETRYCOLLECTION"==o){t:{if(_g(e,2)){for(o=[];o.push(t(e)),_g(e,5););if(_g(e,3)){e=o;break t}}else if(ed(e)){e=[];break t}throw Error(od(e))}return new _l(e)}if(r=rd[o],i=id[o],!r||!i)throw Error("Invalid geometry type: "+o);return o=r.call(e),new i(o,e.a)}throw Error(od(e))}(t))?nl(t,!1,e):null},Au.ge=function(t,e){return(t=t.V())?this.Cd(t,e):""},Au.Wg=function(t,e){if(1==t.length)return this.ge(t[0],e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(t[i].V());return t=new _l(o),this.Cd(t,e)},Au.Cd=function(t,e){return zg(nl(t,!0,e))},(Au=qg.prototype).tg=function(){if(_g(this,2)){var t=$g(this);if(_g(this,3))return t}else if(ed(this))return null;throw Error(od(this))},Au.sg=function(){if(_g(this,2)){var t=Qg(this);if(_g(this,3))return t}else if(ed(this))return[];throw Error(od(this))},Au.ug=function(){if(_g(this,2)){var t=td(this);if(_g(this,3))return t}else if(ed(this))return[];throw Error(od(this))},Au.fp=function(){if(_g(this,2)){var t;if(2==this.b.type)for(t=[this.tg()];_g(this,5);)t.push(this.tg());else t=Qg(this);if(_g(this,3))return t}else if(ed(this))return[];throw Error(od(this))},Au.ep=function(){if(_g(this,2)){var t=td(this);if(_g(this,3))return t}else if(ed(this))return[];throw Error(od(this))},Au.gp=function(){if(_g(this,2)){for(var t=[this.ug()];_g(this,5);)t.push(this.ug());if(_g(this,3))return t}else if(ed(this))return[];throw Error(od(this))};var id={POINT:hr,LINESTRING:ll,POLYGON:wr,MULTIPOINT:gl,MULTILINESTRING:cl,MULTIPOLYGON:dl},rd={POINT:qg.prototype.tg,LINESTRING:qg.prototype.sg,POLYGON:qg.prototype.ug,MULTIPOINT:qg.prototype.fp,MULTILINESTRING:qg.prototype.ep,MULTIPOLYGON:qg.prototype.gp};function nd(){this.version=void 0}function sd(t,e){return _h({},Ad,t,e)}function ad(t,e){return _h({},xd,t,e)}function pd(t,e){if(e=sd(t,e))return t=[vu(t.getAttribute("width")),vu(t.getAttribute("height"))],e.size=t,e}function hd(t,e){return _h([],Ed,t,e)}e(nd,Yy),nd.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},nd.prototype.b=function(t){return this.version=t.getAttribute("version").trim(),(t=_h({version:this.version},ld,t,[]))?t:null};var Ao=[null,"http://www.opengis.net/wms"],ld=qh(Ao,{Service:Wh(function(t,e){return _h({},cd,t,e)}),Capability:Wh(function(t,e){return _h({},ud,t,e)})}),ud=qh(Ao,{Request:Wh(function(t,e){return _h({},wd,t,e)}),Exception:Wh(function(t,e){return _h([],dd,t,e)}),Layer:Wh(function(t,e){return _h({},vd,t,e)})}),cd=qh(Ao,{Name:Wh(bu),Title:Wh(bu),Abstract:Wh(bu),KeywordList:Wh(hd),OnlineResource:Wh(zy),ContactInformation:Wh(function(t,e){return _h({},fd,t,e)}),Fees:Wh(bu),AccessConstraints:Wh(bu),LayerLimit:Wh(du),MaxWidth:Wh(du),MaxHeight:Wh(du)}),fd=qh(Ao,{ContactPersonPrimary:Wh(function(t,e){return _h({},yd,t,e)}),ContactPosition:Wh(bu),ContactAddress:Wh(function(t,e){return _h({},gd,t,e)}),ContactVoiceTelephone:Wh(bu),ContactFacsimileTelephone:Wh(bu),ContactElectronicMailAddress:Wh(bu)}),yd=qh(Ao,{ContactPerson:Wh(bu),ContactOrganization:Wh(bu)}),gd=qh(Ao,{AddressType:Wh(bu),Address:Wh(bu),City:Wh(bu),StateOrProvince:Wh(bu),PostCode:Wh(bu),Country:Wh(bu)}),dd=qh(Ao,{Format:Bh(bu)}),vd=qh(Ao,{Name:Wh(bu),Title:Wh(bu),Abstract:Wh(bu),KeywordList:Wh(hd),CRS:Vh(bu),EX_GeographicBoundingBox:Wh(function(t,e){if(i=_h({},md,t,e)){t=i.westBoundLongitude,e=i.southBoundLatitude;var o=i.eastBoundLongitude,i=i.northBoundLatitude;if(void 0!==t&&void 0!==e&&void 0!==o&&void 0!==i)return[t,e,o,i]}}),BoundingBox:Vh(function(t){var e=[gu(t.getAttribute("minx")),gu(t.getAttribute("miny")),gu(t.getAttribute("maxx")),gu(t.getAttribute("maxy"))],o=[gu(t.getAttribute("resx")),gu(t.getAttribute("resy"))];return{crs:t.getAttribute("CRS"),extent:e,res:o}}),Dimension:Vh(function(t){return{name:t.getAttribute("name"),units:t.getAttribute("units"),unitSymbol:t.getAttribute("unitSymbol"),default:t.getAttribute("default"),multipleValues:cu(t.getAttribute("multipleValues")),nearestValue:cu(t.getAttribute("nearestValue")),current:cu(t.getAttribute("current")),values:bu(t)}}),Attribution:Wh(function(t,e){return _h({},bd,t,e)}),AuthorityURL:Vh(function(t,e){if(e=sd(t,e))return e.name=t.getAttribute("name"),e}),Identifier:Vh(bu),MetadataURL:Vh(function(t,e){if(e=sd(t,e))return e.type=t.getAttribute("type"),e}),DataURL:Vh(sd),FeatureListURL:Vh(sd),Style:Vh(function(t,e){return _h({},Pd,t,e)}),MinScaleDenominator:Wh(yu),MaxScaleDenominator:Wh(yu),Layer:Vh(function(t,e){var o=e[e.length-1],i=_h({},vd,t,e);if(i)return void 0===(e=cu(t.getAttribute("queryable")))&&(e=o.queryable),i.queryable=void 0!==e&&e,void 0===(e=vu(t.getAttribute("cascaded")))&&(e=o.cascaded),i.cascaded=e,void 0===(e=cu(t.getAttribute("opaque")))&&(e=o.opaque),i.opaque=void 0!==e&&e,void 0===(e=cu(t.getAttribute("noSubsets")))&&(e=o.noSubsets),i.noSubsets=void 0!==e&&e,(e=gu(t.getAttribute("fixedWidth")))||(e=o.fixedWidth),i.fixedWidth=e,(t=gu(t.getAttribute("fixedHeight")))||(t=o.fixedHeight),i.fixedHeight=t,["Style","CRS","AuthorityURL"].forEach(function(t){t in o&&(i[t]=(i[t]||[]).concat(o[t]))}),"EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" ").forEach(function(t){t in i||(i[t]=o[t])}),i})}),bd=qh(Ao,{Title:Wh(bu),OnlineResource:Wh(zy),LogoURL:Wh(pd)}),md=qh(Ao,{westBoundLongitude:Wh(yu),eastBoundLongitude:Wh(yu),southBoundLatitude:Wh(yu),northBoundLatitude:Wh(yu)}),wd=qh(Ao,{GetCapabilities:Wh(ad),GetMap:Wh(ad),GetFeatureInfo:Wh(ad)}),xd=qh(Ao,{Format:Vh(bu),DCPType:Vh(function(t,e){return _h({},Sd,t,e)})}),Sd=qh(Ao,{HTTP:Wh(function(t,e){return _h({},Md,t,e)})}),Md=qh(Ao,{Get:Wh(sd),Post:Wh(sd)}),Pd=qh(Ao,{Name:Wh(bu),Title:Wh(bu),Abstract:Wh(bu),LegendURL:Vh(pd),StyleSheetURL:Wh(sd),StyleURL:Wh(sd)}),Ad=qh(Ao,{Format:Wh(bu),OnlineResource:Wh(zy)}),Ed=qh(Ao,{Keyword:Bh(bu)});function Td(t){t=t||{},this.a="http://mapserver.gis.umn.edu/mapserver",this.b=new Nu,this.c=t.layers||null,su.call(this)}function jd(){this.i=new Hy}function Cd(t){var e=bu(t).split(" ");if(e&&2==e.length&&(t=+e[0],e=+e[1],!isNaN(t)&&!isNaN(e)))return[t,e]}e(Td,su),Td.prototype.zc=function(t,e){var o={};e&&ht(o,il(this,t,e)),o=[o],t.setAttribute("namespaceURI",this.a);var i=t.localName;if(e=[],t.childNodes.length){if("msGMLOutput"==i)for(var r=0,n=t.childNodes.length;r<n;r++){var s,a,p,h=t.childNodes[r];h.nodeType===Node.ELEMENT_NODE&&(s=o[0],a=h.localName.replace("_layer",""),this.c&&!d(this.c,a)||(a+="_feature",s.featureType=a,s.featureNS=this.a,(p={})[a]=Bh(this.b.wg,this.b),s=qh([s.featureNS,null],p),h.setAttribute("namespaceURI",this.a),(h=_h([],s,h,o,this.b))&&c(e,h)))}"FeatureCollection"==i&&(t=_h([],this.b.b,t,[{}],this.b))&&(e=t)}return e},Td.prototype.Vg=function(){},Td.prototype.Xb=function(){},Td.prototype.ie=function(){},e(jd,Yy),jd.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},jd.prototype.b=function(t){var e=t.getAttribute("version").trim(),o=this.i.b(t);return o?(o.version=e,(o=_h(o,Ld,t,[]))?o:null):null};var qy=[null,"http://www.opengis.net/wmts/1.0"],Ao=[null,"http://www.opengis.net/ows/1.1"],Ld=qh(qy,{Contents:Wh(function(t,e){return _h({},Rd,t,e)})}),Rd=qh(qy,{Layer:Vh(function(t,e){return _h({},Id,t,e)}),TileMatrixSet:Vh(function(t,e){return _h({},Gd,t,e)})}),Id=qh(qy,{Style:Vh(function(t,e){if(e=_h({},Nd,t,e))return t="true"===t.getAttribute("isDefault"),e.isDefault=t,e}),Format:Vh(bu),TileMatrixSetLink:Vh(function(t,e){return _h({},Fd,t,e)}),Dimension:Vh(function(t,e){return _h({},Od,t,e)}),ResourceURL:Vh(function(t){var e=t.getAttribute("format"),o=t.getAttribute("template");t=t.getAttribute("resourceType");var i={};return e&&(i.format=e),o&&(i.template=o),t&&(i.resourceType=t),i})},qh(Ao,{Title:Wh(bu),Abstract:Wh(bu),WGS84BoundingBox:Wh(function(t,e){if(2==(t=_h([],Ud,t,e)).length)return P(t)}),Identifier:Wh(bu)})),Nd=qh(qy,{LegendURL:Vh(function(t){var e={};return e.format=t.getAttribute("format"),e.href=zy(t),e})},qh(Ao,{Title:Wh(bu),Identifier:Wh(bu)})),Fd=qh(qy,{TileMatrixSet:Wh(bu),TileMatrixSetLimits:Wh(function(t,e){return _h([],kd,t,e)})}),kd=qh(qy,{TileMatrixLimits:Bh(function(t,e){return _h({},Dd,t,e)})}),Dd=qh(qy,{TileMatrix:Wh(bu),MinTileRow:Wh(du),MaxTileRow:Wh(du),MinTileCol:Wh(du),MaxTileCol:Wh(du)}),Od=qh(qy,{Default:Wh(bu),Value:Vh(bu)},qh(Ao,{Identifier:Wh(bu)})),Ud=qh(Ao,{LowerCorner:Bh(Cd),UpperCorner:Bh(Cd)}),Gd=qh(qy,{WellKnownScaleSet:Wh(bu),TileMatrix:Vh(function(t,e){return _h({},Bd,t,e)})},qh(Ao,{SupportedCRS:Wh(bu),Identifier:Wh(bu)})),Bd=qh(qy,{TopLeftCorner:Wh(Cd),ScaleDenominator:Wh(yu),TileWidth:Wh(du),TileHeight:Wh(du),MatrixWidth:Wh(du),MatrixHeight:Wh(du)},qh(Ao,{Identifier:Wh(bu)}));function Xd(t){je.call(this),t=t||{},this.a=null,this.f=Zt,this.c=void 0,de(this,Le("projection"),this.Am,this),de(this,Le("tracking"),this.Bm,this),void 0!==t.projection&&this.Wh(t.projection),void 0!==t.trackingOptions&&this.wj(t.trackingOptions),this.Ke(void 0!==t.tracking&&t.tracking)}function Vd(t,e,o){Wi.call(this),this.Ng(t,e||0,o)}function Wd(t){var e=t.A[t.a]-t.A[0];return e*e+(t=t.A[t.a+1]-t.A[1])*t}function Zd(t,e,o){for(var i,r,n,s,a,p=[],h=t(0),l=t(1),u=e(h),c=e(l),f=[l,h],y=[c,u],g=[1,0],d={},v=1e5;0<--v&&0<g.length;)n=g.pop(),h=f.pop(),u=y.pop(),(l=n.toString())in d||(p.push(u[0],u[1]),d[l]=!0),s=g.pop(),l=f.pop(),c=y.pop(),S((r=e(i=t(a=(n+s)/2)))[0],r[1],u[0],u[1],c[0],c[1])<o?(p.push(c[0],c[1]),d[l=s.toString()]=!0):(g.push(s,a,a,n),y.push(c,r,r,u),f.push(l,i,i,h));return p}function Kd(t){t=t||{},this.j=this.v=null,this.f=this.o=1/0,this.g=this.l=-1/0,this.ra=this.oa=1/0,this.R=this.I=-1/0,this.Jb=void 0!==t.targetSize?t.targetSize:100,this.fb=void 0!==t.maxLines?t.maxLines:100,this.i=[],this.c=[],this.pa=void 0!==t.strokeStyle?t.strokeStyle:zd,this.D=this.u=void 0,this.a=this.b=this.S=null,1==t.showLabels&&(this.na=t.lonLabelFormatter||Ci.bind(this,"EW"),this.Ua=t.latLabelFormatter||Ci.bind(this,"NS"),this.fa=null==t.lonLabelPosition?0:t.lonLabelPosition,this.T=null==t.latLabelPosition?1:t.latLabelPosition,this.B=void 0!==t.lonLabelStyle?t.lonLabelStyle:new Jc({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new Ah({color:"rgba(0,0,0,1)"}),stroke:new Ga({color:"rgba(255,255,255,1)",width:3})}),this.C=void 0!==t.latLabelStyle?t.latLabelStyle:new Jc({font:"12px Calibri,sans-serif",textAlign:"end",fill:new Ah({color:"rgba(0,0,0,1)"}),stroke:new Ga({color:"rgba(255,255,255,1)",width:3})}),this.b=[],this.a=[]),this.setMap(void 0!==t.map?t.map:null)}e(Xd,je),(Au=Xd.prototype).ka=function(){this.Ke(!1),je.prototype.ka.call(this)},Au.Am=function(){var t=this.Uh();t&&(this.f=Wt(Bt("EPSG:4326"),t),this.a&&this.set("position",this.f(this.a)))},Au.Bm=function(){var t;Fo&&((t=this.Vh())&&void 0===this.c?this.c=navigator.geolocation.watchPosition(this.np.bind(this),this.op.bind(this),this.Gh()):t||void 0===this.c||(navigator.geolocation.clearWatch(this.c),this.c=void 0))},Au.np=function(t){t=t.coords,this.set("accuracy",t.accuracy),this.set("altitude",null===t.altitude?void 0:t.altitude),this.set("altitudeAccuracy",null===t.altitudeAccuracy?void 0:t.altitudeAccuracy),this.set("heading",null===t.heading?void 0:M(t.heading)),this.a?(this.a[0]=t.longitude,this.a[1]=t.latitude):this.a=[t.longitude,t.latitude];var e=this.f(this.a);this.set("position",e),this.set("speed",null===t.speed?void 0:t.speed),(t=Sr(At,this.a,t.accuracy)).Dc(this.f),this.set("accuracyGeometry",t),this.s()},Au.op=function(t){t.type="error",this.Ke(!1),this.b(t)},Au.Dk=function(){return this.get("accuracy")},Au.Ek=function(){return this.get("accuracyGeometry")||null},Au.Gk=function(){return this.get("altitude")},Au.Hk=function(){return this.get("altitudeAccuracy")},Au.ym=function(){return this.get("heading")},Au.zm=function(){return this.get("position")},Au.Uh=function(){return this.get("projection")},Au.ll=function(){return this.get("speed")},Au.Vh=function(){return this.get("tracking")},Au.Gh=function(){return this.get("trackingOptions")},Au.Wh=function(t){this.set("projection",Bt(t))},Au.Ke=function(t){this.set("tracking",t)},Au.wj=function(t){this.set("trackingOptions",t)},e(Vd,Wi),(Au=Vd.prototype).clone=function(){var t=new Vd(null);return Ki(t,this.ja,this.A.slice()),t.s(),t},Au.Kb=function(t,e,o,i){var r=this.A;t-=r[0];var n=e-r[1];if((e=t*t+n*n)<i){if(e)for(i=this.pd()/Math.sqrt(e),o[0]=r[0]+i*t,o[1]=r[1]+i*n,i=2;i<this.a;++i)o[i]=r[i];else for(i=0;i<this.a;++i)o[i]=r[i];return o.length=this.a,e}return i},Au.Mc=function(t,e){var o=this.A;return(t-=o[0])*t+(e-=o[1])*e<=Wd(this)},Au.wa=function(){return this.A.slice(0,this.a)},Au.se=function(t){var e=this.A,o=e[this.a]-e[0];return F(e[0]-o,e[1]-o,e[0]+o,e[1]+o,t)},Au.pd=function(){return Math.sqrt(Wd(this))},Au.U=function(){return"Circle"},Au.Xa=function(t){var e=this.G();return!!nt(t,e)&&(e=this.wa(),t[0]<=e[0]&&t[2]>=e[0]||t[1]<=e[1]&&t[3]>=e[1]||H(t,this.sb,this))},Au.ob=function(t){var e,o=this.a,i=t.slice();for(i[o]=i[0]+(this.A[o]-this.A[0]),e=1;e<o;++e)i[o+e]=t[e];Ki(this,this.ja,i),this.s()},Au.Ng=function(t,e,o){if(t){var i;for(zi(this,o,t,0),this.A||(this.A=[]),t=tr(o=this.A,t),o[t++]=o[0]+e,e=1,i=this.a;e<i;++e)o[t++]=o[e];o.length=t}else Ki(this,"XY",null);this.s()},Au.X=function(){},Au.ma=function(){},Au.Uc=function(t){this.A[this.a]=this.A[0]+t,this.s()};var zd=new Ga({color:"rgba(0,0,0,0.2)"}),Yd=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001];function Hd(t,e,o,i,r,n,s){var a,p,h,l,u=s;return a=e,p=o,h=i,l=t.j,r=r,o=Zd(function(t){return[a,p+(h-p)*t]},Vt(Bt("EPSG:4326"),l),r),(u=void 0!==t.i[u]?t.i[u]:new ll(null)).ba("XY",o),nt(u.G(),n)&&(t.b&&(o=s,n=[(i=u.ga())[0],x(n[1]+Math.abs(n[1]-n[3])*t.fa,Math.max(n[1],i[1]),Math.min(n[3],i[i.length-1]))],(o=t.b[o]?t.b[o].Qd:new hr(null)).ma(n),t.b[s]={Qd:o,text:t.na(e)}),t.i[s++]=u),s}function qd(t,e,o,i,r){var n,s,a,p,h,l=r;return n=e,s=t.g,a=t.f,p=t.j,h=o,o=Zd(function(t){return[s+(a-s)*t,n]},Vt(Bt("EPSG:4326"),p),h),(l=void 0!==t.c[l]?t.c[l]:new ll(null)).ba("XY",o),nt(l.G(),i)&&(t.a&&(o=r,h=l.ga(),i=[x(i[0]+Math.abs(i[0]-i[2])*t.T,Math.max(i[0],h[0]),Math.min(i[2],h[h.length-2])),h[1]],(o=t.a[o]?t.a[o].Qd:new hr(null)).ma(i),t.a[r]={Qd:o,text:t.Ua(e)}),t.c[r++]=l),r}function Jd(t,e,o,i,r){Ae.call(this),this.f=r,this.extent=t,this.a=o,this.resolution=e,this.state=i}function _d(t,e,o,i,r,n,s){Jd.call(this,t,e,o,0,i),this.j=r,this.M=new Image,null!==n&&(this.M.crossOrigin=n),this.c={},this.i=null,this.state=0,this.g=s}function $d(t,e,o,i,r,n){this.c=n||null,Jd.call(this,t,e,o,n?0:2,i),this.i=r}function Qd(t,e){Ae.call(this),this.ta=t,this.state=e,this.i=null,this.key=""}function tv(t){if(!t.i)return t;var e=t.i;do{if(2==e.getState())return e}while(e=e.i);return t}function ev(t,e){t.state=e,t.s()}function ov(t,e,o,i,r){Qd.call(this,t,e),this.g=o,this.M=new Image,null!==i&&(this.M.crossOrigin=i),this.c=null,this.j=r}function iv(t){t.c.forEach(me),t.c=null}(Au=Kd.prototype).Cm=function(){return this.v},Au.al=function(){return this.i},Au.hl=function(){return this.c},Au.Kh=function(t){var e,o,i,r,n,s,a,p,h,l,u=t.vectorContext,c=t.frameState,f=c.extent,y=(t=c.viewState).center,g=t.projection,d=t.resolution;for(t=d*d/(4*(t=c.pixelRatio)*t),this.j&&Xt(this.j,g)||(e=Bt("EPSG:4326"),o=g.G(),l=Yt(i=g.g,e,g),r=i[2],n=i[1],s=i[0],a=l[3],p=l[2],h=l[1],l=l[0],this.o=i[3],this.f=r,this.l=n,this.g=s,this.oa=a,this.ra=p,this.I=h,this.R=l,this.u=Vt(e,g),this.D=Vt(g,e),this.S=this.D($(o)),this.j=g),g.i&&(e=rt(g=g.G()),(c=c.focus[0])<g[0]||c>g[2])&&(c=e*Math.ceil((g[0]-c)/e),f=[f[0]+c,f[1],f[2]+c,f[3]]),c=this.S[0],g=this.S[1],e=-1,i=Math.pow(this.Jb*d,2),r=[],n=[],d=0,o=Yd.length;d<o&&(s=Yd[d]/2,r[0]=c-s,r[1]=g-s,n[0]=c+s,n[1]=g+s,this.u(r,r),this.u(n,n),!((s=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2))<=i));++d)e=Yd[d];if(-1==(d=e))this.i.length=this.c.length=0,this.b&&(this.b.length=0),this.a&&(this.a.length=0);else{for(y=(c=this.D(y))[0],c=c[1],g=this.fb,i=(e=Yt(e=[Math.max(f[0],this.R),Math.max(f[1],this.I),Math.min(f[2],this.ra),Math.min(f[3],this.oa)],this.j,"EPSG:4326"))[3],n=e[1],o=Hd(this,r=x(y=Math.floor(y/d)*d,this.g,this.f),n,i,t,f,0),e=0;r!=this.g&&e++<g;)o=Hd(this,r=Math.max(r-d,this.g),n,i,t,f,o);for(r=x(y,this.g,this.f),e=0;r!=this.f&&e++<g;)o=Hd(this,r=Math.min(r+d,this.f),n,i,t,f,o);for(this.i.length=o,this.b&&(this.b.length=o),o=qd(this,y=x(c=Math.floor(c/d)*d,this.l,this.o),t,f,0),e=0;y!=this.l&&e++<g;)o=qd(this,y=Math.max(y-d,this.l),t,f,o);for(y=x(c,this.l,this.o),e=0;y!=this.o&&e++<g;)o=qd(this,y=Math.min(y+d,this.o),t,f,o);this.c.length=o,this.a&&(this.a.length=o)}for(u.Ma(null,this.pa),t=0,y=this.i.length;t<y;++t)d=this.i[t],u.zb(d);for(t=0,y=this.c.length;t<y;++t)d=this.c[t],u.zb(d);if(this.b)for(t=0,y=this.b.length;t<y;++t)d=this.b[t],this.B.xd(d.text),u.Cb(this.B),u.zb(d.Qd);if(this.a)for(t=0,y=this.a.length;t<y;++t)d=this.a[t],this.C.xd(d.text),u.Cb(this.C),u.zb(d.Qd)},Au.setMap=function(t){this.v&&(this.v.K("postcompose",this.Kh,this),this.v.render()),t&&(t.J("postcompose",this.Kh,this),t.render()),this.v=t},e(Jd,Ae),Jd.prototype.s=function(){this.b("change")},Jd.prototype.G=function(){return this.extent},Jd.prototype.getState=function(){return this.state},e(_d,Jd),(Au=_d.prototype).Y=function(t){return void 0===t?this.M:(t=G(t))in this.c?this.c[t]:(e=ct(this.c)?this.M:this.M.cloneNode(!1),this.c[t]=e);var e},Au.Fm=function(){this.state=3,this.i.forEach(me),this.i=null,this.s()},Au.Gm=function(){void 0===this.resolution&&(this.resolution=tt(this.extent)/this.M.height),this.state=2,this.i.forEach(me),this.i=null,this.s()},Au.load=function(){0!=this.state&&3!=this.state||(this.state=1,this.s(),this.i=[ve(this.M,"error",this.Fm,this),ve(this.M,"load",this.Gm,this)],this.g(this,this.j))},Au.Og=function(t){this.M=t},e($d,Jd),$d.prototype.g=function(t){this.state=t?3:2,this.s()},$d.prototype.load=function(){0==this.state&&(this.state=1,this.s(),this.c(this.g.bind(this)))},$d.prototype.Y=function(){return this.i},e(Qd,Ae),Qd.prototype.s=function(){this.b("change")},Qd.prototype.bb=function(){return this.key+"/"+this.ta},Qd.prototype.f=function(){return this.ta},Qd.prototype.getState=function(){return this.state},e(ov,Qd),(Au=ov.prototype).ka=function(){1==this.state&&iv(this),this.i&&Se(this.i),this.state=5,this.s(),Qd.prototype.ka.call(this)},Au.Y=function(){return this.M},Au.bb=function(){return this.g},Au.Dm=function(){this.state=3,this.M=rv,iv(this),this.s()},Au.Em=function(){this.state=this.M.naturalWidth&&this.M.naturalHeight?2:4,iv(this),this.s()},Au.load=function(){0!=this.state&&3!=this.state||(this.state=1,this.s(),this.c=[ve(this.M,"error",this.Dm,this),ve(this.M,"load",this.Em,this)],this.j(this,this.g))};var rv=new Image;function nv(t){t=t||{},Or.call(this,{handleEvent:Ui}),this.g=t.formatConstructors||[],this.o=t.projection?Bt(t.projection):null,this.a=null,this.target=t.target||null}function sv(t){for(var e=0,o=(t=t.dataTransfer.files).length;e<o;++e){var i=t.item(e),r=new FileReader;r.addEventListener("load",this.j.bind(this,i)),r.readAsText(i)}}function av(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy"}function pv(t){var e=t.v;e&&(e=t.target||e.a,t.a=[de(e,"drop",sv,t),de(e,"dragenter",av,t),de(e,"dragover",av,t),de(e,"drop",av,t)])}function hv(t){t.a&&(t.a.forEach(me),t.a=null)}rv.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",e(nv,Or),nv.prototype.j=function(t,e){e=e.target.result;for(var o=this.v,i=(i=this.o)||o.Z().v,r=[],n=0,s=(o=this.g).length;n<s;++n){var a=new o[n],p={featureProjection:i};try{r=a.Oa(e,p)}catch(t){r=null}if(r&&0<r.length)break}this.b(new uv(lv,t,r,i))},nv.prototype.Ha=function(t){Or.prototype.Ha.call(this,t),(t?pv:hv)(this)},nv.prototype.setMap=function(t){hv(this),Or.prototype.setMap.call(this,t),this.c()&&pv(this)};var lv="addfeatures";function uv(t,e,o,i){Me.call(this,t),this.features=o,this.file=e,this.projection=i}function cv(t){t=t||{},$r.call(this,{handleDownEvent:gv,handleDragEvent:fv,handleUpEvent:yv}),this.l=t.condition||Hr,this.a=this.g=void 0,this.j=0,this.u=void 0!==t.duration?t.duration:400}function fv(t){var e,o,i;Jr(t)&&(o=(e=t.map).Ob(),t=(i=t.pixel)[0]-o[0]/2,i=o[1]/2-i[1],o=Math.atan2(i,t),t=Math.sqrt(t*t+i*i),(e=e.Z()).g.rotation!==Mi&&void 0!==this.g&&(i=o-this.g,Ur(e,e.Qa()-i)),this.g=o,void 0!==this.a&&(o=this.a*(e.Pa()/t),Br(e,o)),void 0!==this.a&&(this.j=this.a/t),this.a=t)}function yv(t){if(!Jr(t))return!0;Fr(t=t.map.Z(),1,-1);var e=this.j-1,o=t.Qa(),o=t.constrainRotation(o,0);Ur(t,o,void 0,void 0);var o=t.Pa(),i=this.u,o=t.constrainResolution(o,0,e);return Br(t,o,void 0,i),this.j=0,!1}function gv(t){return!(!Jr(t)||!this.l(t))&&(Fr(t.map.Z(),1,1),!(this.a=this.g=void 0))}function dv(t,e,o,i){this.fb=t,this.Ua=e,this.overlaps=i,this.c=0,this.resolution=o,this.ra=this.oa=null,this.a=[],this.coordinates=[],this.T=qn(),this.b=[],this.B=null,this.fa=qn(),this.na=qn()}function vv(t,e,o,i,r,n,s){var a=t.coordinates.length,p=t.Sf();s&&(o+=r),s=[e[o],e[o+1]];for(var h=[NaN,NaN],l=!0,u=o+r;u<i;u+=r){h[0]=e[u],h[1]=e[u+1];var c=R(p,h),l=c!==f?(l&&(t.coordinates[a++]=s[0],t.coordinates[a++]=s[1]),t.coordinates[a++]=h[0],t.coordinates[a++]=h[1],!1):1!==c||(t.coordinates[a++]=h[0],t.coordinates[a++]=h[1],!1);s[0]=h[0],s[1]=h[1];var f=c}return(n&&l||u===o+r)&&(t.coordinates[a++]=s[0],t.coordinates[a++]=s[1]),a}function bv(t,e){t.oa=[0,e,0],t.a.push(t.oa),t.ra=[0,e,0],t.b.push(t.ra)}function mv(t,e,o,i,r,n,s,a,p){var h;t.B&&U(i,t.T)?h=t.B:(t.B||(t.B=[]),h=Xi(t.coordinates,0,t.coordinates.length,2,i,t.B),Qn(t.T,i)),i=!ct(n);for(var l,u,c=0,f=s.length,y=0,g=t.fa,d=t.na,v=0,b=0,m=t.a!=s||t.overlaps?0:200;c<f;)switch((F=s[c])[0]){case 0:y=F[1],i&&n[G(y).toString()]||!y.V()?c=F[2]:void 0===p||nt(p,y.V().G())?++c:c=F[2]+1;break;case 1:m<v&&(t.Va(e,r),v=0),m<b&&(e.stroke(),b=0),v||b||(e.beginPath(),l=u=NaN),++c;break;case 2:w=h[y=F[1]],F=h[y+1],C=h[y+2]-w,y=h[y+3]-F,y=Math.sqrt(C*C+y*y),e.moveTo(w+y,F),e.arc(w,F,y,0,2*Math.PI,!0),++c;break;case 3:e.closePath(),++c;break;case 4:y=F[1];var w=F[2],x=F[3],S=F[4]*o,M=F[5]*o,P=F[6],A=F[7],E=F[8],T=F[9],j=F[10],C=F[11],L=F[12],R=F[13],I=F[14];for(j&&(C+=r);y<w;y+=2){var N,F=h[y]-S,j=h[y+1]-M;R&&(F=Math.round(F),j=Math.round(j)),1==L&&!C||(rs(g,N=F+S,k=j+M,L,L,C,-N,-k),e.setTransform.apply(e,g)),N=e.globalAlpha,1!=A&&(e.globalAlpha=N*A);var k=I+E>x.width?x.width-E:I,D=P+T>x.height?x.height-T:P;e.drawImage(x,E,T,k,D,F,j,k*o,D*o),1!=A&&(e.globalAlpha=N),1==L&&!C||e.setTransform.apply(e,d)}++c;break;case 5:for(y=F[1],w=F[2],M=F[3],P=F[4]*o,A=F[5]*o,C=F[6],L=F[7]*o,x=F[8],S=F[9],(j=F[10])&&(C+=r);y<w;y+=2){for(F=h[y]+P,j=h[y+1]+A,1==L&&!C||(rs(g,F,j,L,L,C,-F,-j),e.setTransform.apply(e,g)),1<(T=(E=M.split("\n")).length)?j-=(T-1)/2*(R=Math.round(1.5*e.measureText("M").width)):R=0,I=0;I<T;I++)N=E[I],S&&e.strokeText(N,F,j),x&&e.fillText(N,F,j),j+=R;1==L&&!C||e.setTransform.apply(e,d)}++c;break;case 6:if(a&&(y=a(y=F[1])))return y;++c;break;case 7:m?v++:t.Va(e,r),++c;break;case 8:for(y=F[1],w=F[2],F=h[y],L=(j=h[y+1])+.5|0,(C=F+.5|0)===l&&L===u||(e.moveTo(F,j),l=C,u=L),y+=2;y<w;y+=2)C=(F=h[y])+.5|0,L=(j=h[y+1])+.5|0,y!=w-2&&C===l&&L===u||(e.lineTo(F,j),l=C,u=L);++c;break;case 9:t.R=F[2],v&&(t.Va(e,r),v=0,b&&(e.stroke(),b=0)),e.fillStyle=F[1],++c;break;case 10:var y=void 0===F[8]||F[8],O=F[9];w=F[2],b&&(e.stroke(),b=0),e.strokeStyle=F[1],e.lineWidth=y?w*o:w,e.lineCap=F[3],e.lineJoin=F[4],e.miterLimit=F[5],Ro&&(w=F[6],C=F[7],y&&o!==O&&(w=w.map(function(t){return t*o/O}),C*=o/O,F[6]=w,F[7]=C,F[9]=o),e.lineDashOffset=C,e.setLineDash(w)),++c;break;case 11:e.font=F[1],e.textAlign=F[2],e.textBaseline=F[3],++c;break;case 12:m?b++:e.stroke(),++c;break;default:++c}v&&t.Va(e,r),b&&e.stroke()}function wv(t){var e=t.b;e.reverse();for(var o=e.length,i=-1,r=0;r<o;++r){var n=e[r],s=n[0];if(6==s)i=r;else if(0==s){for(n[2]=r,n=t.b,s=r;i<s;){var a=n[i];n[i]=n[s],n[s]=a,++i,--s}i=-1}}}function xv(t,e){t.oa[2]=t.a.length,t.oa=null,t.ra[2]=t.b.length,t.ra=null,e=[6,e],t.a.push(e),t.b.push(e)}function Sv(t,e,o,i){dv.call(this,t,e,o,i),this.M=this.I=null,this.C=this.D=this.S=this.u=this.v=this.l=this.o=this.j=this.g=this.f=this.i=void 0}function Mv(t,e,o,i){dv.call(this,t,e,o,i),this.f=null,this.i={Md:void 0,Gd:void 0,Hd:null,Id:void 0,Jd:void 0,Kd:void 0,Ld:void 0,eg:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}function Pv(t,e,o,i,r){var n=[8,n=t.coordinates.length,e=vv(t,e,o,i,r,!1,!1)];return t.a.push(n),t.b.push(n),i}function Av(t){var e=t.i,o=e.strokeStyle,i=e.lineCap,r=e.lineDash,n=e.lineDashOffset,s=e.lineJoin,a=e.lineWidth,p=e.miterLimit;e.Md==o&&e.Gd==i&&U(e.Hd,r)&&e.Id==n&&e.Jd==s&&e.Kd==a&&e.Ld==p||(e.eg!=t.coordinates.length&&(t.a.push([12]),e.eg=t.coordinates.length),t.a.push([10,o,a,i,s,p,r,n,!0,1],[1]),e.Md=o,e.Gd=i,e.Hd=r,e.Id=n,e.Jd=s,e.Kd=a,e.Ld=p)}function Ev(t,e,o,i){dv.call(this,t,e,o,i),this.f=null,this.i={oh:void 0,Md:void 0,Gd:void 0,Hd:null,Id:void 0,Jd:void 0,Kd:void 0,Ld:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}function Tv(t,e,o,i,r){var n=void 0!==(s=t.i).fillStyle,s=null!=s.strokeStyle,a=i.length,p=[1];for(t.a.push(p),t.b.push(p),p=0;p<a;++p){var h=i[p];o=[8,t.coordinates.length,o=vv(t,e,o,h,r,!0,!s)],t.a.push(o),t.b.push(o),s&&(o=[3],t.a.push(o),t.b.push(o)),o=h}return e=[7],t.b.push(e),n&&t.a.push(e),s&&(n=[12],t.a.push(n),t.b.push(n)),o}function jv(t,e){var o,i=t.i,r=i.fillStyle,n=i.strokeStyle,s=i.lineCap,a=i.lineDash,p=i.lineDashOffset,h=i.lineJoin,l=i.lineWidth,u=i.miterLimit;void 0===r||"string"==typeof r&&i.oh==r||(o=[9,r],"string"!=typeof r&&(e=e.G(),o.push([e[0],e[3]])),t.a.push(o),i.oh=i.fillStyle),void 0===n||i.Md==n&&i.Gd==s&&U(i.Hd,a)&&i.Id==p&&i.Jd==h&&i.Kd==l&&i.Ld==u||(t.a.push([10,n,l,s,h,u,a,p,!0,1]),i.Md=n,i.Gd=s,i.Hd=a,i.Id=p,i.Jd=h,i.Kd=l,i.Ld=u)}function Cv(t,e,o,i){dv.call(this,t,e,o,i),this.C=this.D=this.S=null,this.Ia="",this.o=this.j=0,this.l=void 0,this.u=this.v=0,this.g=this.f=this.i=null}function Lv(t,e,o,i,r){this.v=t,this.c=e,this.o=i,this.l=o,this.f=r,this.a={},this.g=Ye(1,1),this.j=qn()}e(uv,Me),e(cv,$r),e(dv,vs),dv.prototype.Va=function(t,e){var o;this.R&&(o=ts(this.T,this.R.slice()),t.translate(o[0],o[1]),t.rotate(e)),t.fill(),this.R&&t.setTransform.apply(t,this.na)},dv.prototype.La=function(t,e,o,i,r){mv(this,t,e,o,i,r,this.a,void 0,void 0)},dv.prototype.Te=w,dv.prototype.Sf=function(){return this.Ua},e(Sv,dv),Sv.prototype.qc=function(t,e){var o,i;this.M&&(bv(this,e),o=t.ga(),i=this.coordinates.length,t=vv(this,o,0,o.length,t.qa(),!1,!1),this.a.push([4,i,t,this.M,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),this.b.push([4,i,t,this.I,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),xv(this,e))},Sv.prototype.oc=function(t,e){var o,i;this.M&&(bv(this,e),o=t.ga(),i=this.coordinates.length,t=vv(this,o,0,o.length,t.qa(),!1,!1),this.a.push([4,i,t,this.M,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),this.b.push([4,i,t,this.I,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),xv(this,e))},Sv.prototype.Te=function(){wv(this),this.f=this.i=void 0,this.M=this.I=null,this.C=this.D=this.u=this.v=this.l=this.o=this.j=this.S=this.g=void 0},Sv.prototype.Ub=function(t){var e=t.Hc(),o=t.ic(),i=t.qg(1),r=t.Y(1),n=t.Oc();this.i=e[0],this.f=e[1],this.I=i,this.M=r,this.g=o[1],this.j=t.f,this.o=n[0],this.l=n[1],this.v=t.l,this.u=t.g,this.S=t.a,this.D=t.v,this.C=o[0]},e(Mv,dv),(Au=Mv.prototype).Sf=function(){return this.f||(this.f=g(this.Ua),0<this.c&&A(this.f,this.resolution*(this.c+1)/2,this.f)),this.f},Au.mc=function(t,e){var o=this.i,i=o.lineWidth;void 0!==o.strokeStyle&&void 0!==i&&(Av(this),bv(this,e),this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1],[1]),Pv(this,o=t.ga(),0,o.length,t.qa()),this.b.push([12]),xv(this,e))},Au.nc=function(t,e){var o=this.i,i=o.lineWidth;if(void 0!==o.strokeStyle&&void 0!==i){Av(this),bv(this,e),this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1],[1]),o=t.Bb(),i=t.ga(),t=t.qa();for(var r=0,n=0,s=o.length;n<s;++n)r=Pv(this,i,r,o[n],t);this.b.push([12]),xv(this,e)}},Au.Te=function(){this.i.eg!=this.coordinates.length&&this.a.push([12]),wv(this),this.i=null},Au.Ma=function(t,e){t=e.a,this.i.strokeStyle=ze(t||gs),t=e.f,this.i.lineCap=void 0!==t?t:"round",t=e.i,this.i.lineDash=t||ys,t=e.g,this.i.lineDashOffset=t||0,t=e.j,this.i.lineJoin=void 0!==t?t:"round",t=e.c,this.i.lineWidth=void 0!==t?t:1,e=e.o,this.i.miterLimit=void 0!==e?e:10,this.i.lineWidth>this.c&&(this.c=this.i.lineWidth,this.f=null)},e(Ev,dv),(Au=Ev.prototype).Zb=function(t,e){var o,i=this.i,r=i.strokeStyle;void 0===i.fillStyle&&void 0===r||(jv(this,t),bv(this,e),this.b.push([9,Xe(fs)]),void 0!==i.strokeStyle&&this.b.push([10,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset,!0,1]),o=t.ga(),r=this.coordinates.length,vv(this,o,0,o.length,t.qa(),!1,!1),t=[1],r=[2,r],this.a.push(t,r),this.b.push(t,r),t=[7],this.b.push(t),void 0!==i.fillStyle&&this.a.push(t),void 0!==i.strokeStyle&&(i=[12],this.a.push(i),this.b.push(i)),xv(this,e))},Au.rc=function(t,e){var o=this.i;jv(this,t),bv(this,e),this.b.push([9,Xe(fs)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]);o=t.Bb();Tv(this,t.ec(),0,o,t.qa()),xv(this,e)},Au.pc=function(t,e){var o=this.i,i=o.strokeStyle;if(void 0!==o.fillStyle||void 0!==i){jv(this,t),bv(this,e),this.b.push([9,Xe(fs)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]),o=t.c,i=bl(t),t=t.qa();for(var r=0,n=0,s=o.length;n<s;++n)r=Tv(this,i,r,o[n],t);xv(this,e)}},Au.Te=function(){wv(this),this.i=null;var t=this.fb;if(t)for(var e=this.coordinates,o=0,i=e.length;o<i;++o)e[o]=t*Math.round(e[o]/t)},Au.Sf=function(){return this.f||(this.f=g(this.Ua),0<this.c&&A(this.f,this.resolution*(this.c+1)/2,this.f)),this.f},Au.Ma=function(t,e){var o=this.i;t?(t=t.b,o.fillStyle=ze(t||fs)):o.fillStyle=void 0,e?(t=e.a,o.strokeStyle=ze(t||gs),t=e.f,o.lineCap=void 0!==t?t:"round",t=e.i,o.lineDash=t?t.slice():ys,t=e.g,o.lineDashOffset=t||0,t=e.j,o.lineJoin=void 0!==t?t:"round",t=e.c,o.lineWidth=void 0!==t?t:1,e=e.o,o.miterLimit=void 0!==e?e:10,o.lineWidth>this.c&&(this.c=o.lineWidth,this.f=null)):(o.strokeStyle=void 0,o.lineCap=void 0,o.lineDash=null,o.lineDashOffset=void 0,o.lineJoin=void 0,o.lineWidth=void 0,o.miterLimit=void 0)},e(Cv,dv),Cv.prototype.yc=function(t,e,o,i,r,n){var s,a;""!==this.Ia&&this.g&&(this.i||this.f)&&(this.i&&(r=this.i,(s=this.S)&&s.fillStyle==r.fillStyle||(a=[9,r.fillStyle],this.a.push(a),this.b.push(a),s?s.fillStyle=r.fillStyle:this.S={fillStyle:r.fillStyle})),this.f&&(r=this.f,(s=this.D)&&s.lineCap==r.lineCap&&s.lineDash==r.lineDash&&s.lineDashOffset==r.lineDashOffset&&s.lineJoin==r.lineJoin&&s.lineWidth==r.lineWidth&&s.miterLimit==r.miterLimit&&s.strokeStyle==r.strokeStyle||(a=[10,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset,!1,1],this.a.push(a),this.b.push(a),s?(s.lineCap=r.lineCap,s.lineDash=r.lineDash,s.lineDashOffset=r.lineDashOffset,s.lineJoin=r.lineJoin,s.lineWidth=r.lineWidth,s.miterLimit=r.miterLimit,s.strokeStyle=r.strokeStyle):this.D={lineCap:r.lineCap,lineDash:r.lineDash,lineDashOffset:r.lineDashOffset,lineJoin:r.lineJoin,lineWidth:r.lineWidth,miterLimit:r.miterLimit,strokeStyle:r.strokeStyle})),r=this.g,(s=this.C)&&s.font==r.font&&s.textAlign==r.textAlign&&s.textBaseline==r.textBaseline||(a=[11,r.font,r.textAlign,r.textBaseline],this.a.push(a),this.b.push(a),s?(s.font=r.font,s.textAlign=r.textAlign,s.textBaseline=r.textBaseline):this.C={font:r.font,textAlign:r.textAlign,textBaseline:r.textBaseline}),bv(this,n),t=[5,r=this.coordinates.length,t=vv(this,t,e,o,i,!1,!1),this.Ia,this.j,this.o,this.v,this.u,!!this.i,!!this.f,this.l],this.a.push(t),this.b.push(t),xv(this,n))},Cv.prototype.Cb=function(t){var e,o,i,r,n,s,a,p,h;t?((o=t.Fa())?(o=ze((o=o.b)||fs),this.i?this.i.fillStyle=o:this.i={fillStyle:o}):this.i=null,(s=t.Ga())?(o=s.a,i=s.f,r=s.i,a=s.g,p=s.j,n=s.c,s=s.o,i=void 0!==i?i:"round",r=r?r.slice():ys,a=void 0!==a?a:0,p=void 0!==p?p:"round",n=void 0!==n?n:1,s=void 0!==s?s:10,o=ze(o||gs),this.f?((h=this.f).lineCap=i,h.lineDash=r,h.lineDashOffset=a,h.lineJoin=p,h.lineWidth=n,h.miterLimit=s,h.strokeStyle=o):this.f={lineCap:i,lineDash:r,lineDashOffset:a,lineJoin:p,lineWidth:n,miterLimit:s,strokeStyle:o}):this.f=null,e=t.a,o=t.i,i=t.c,r=t.o,n=t.f,s=t.b,a=t.Na(),p=t.g,h=t.j,t=void 0!==e?e:"10px sans-serif",p=void 0!==p?p:"center",h=void 0!==h?h:"middle",this.g?((e=this.g).font=t,e.textAlign=p,e.textBaseline=h):this.g={font:t,textAlign:p,textBaseline:h},this.Ia=void 0!==a?a:"",this.j=void 0!==o?o:0,this.o=void 0!==i?i:0,this.l=void 0!==r&&r,this.v=void 0!==n?n:0,this.u=void 0!==s?s:1):this.Ia=""},e(Lv,js);var Rv={0:[[!0]]};function Iv(t,e,o){var i,r=Math.floor(t.length/2);if(r<=e)for(i=r;i<e;i++)t[i][o]=!0;else if(e<r)for(i=e+1;i<r;i++)t[i][o]=!0}function Nv(t){for(var e in t.a){var o,i=t.a[e];for(o in i)i[o].Te()}}function Fv(t,e){var o=t.c;t=o[0];var i=o[1],r=o[2];return Xi(t=[t,i,t,o=o[3],r,o,r,i],0,8,2,e,t),t}Lv.prototype.Ea=function(t,e,o,i,r,n){var s,a=2*(i=Math.round(i))+1,p=rs(this.j,i+.5,i+.5,1/e,-1/e,-o,-t[0],-t[1]),h=this.g;h.canvas.width!==a||h.canvas.height!==a?(h.canvas.width=a,h.canvas.height=a):h.clearRect(0,0,a,a),void 0!==this.f&&(z(s=V(),t),A(s,e*(this.f+i),s));var l=function(t){if(void 0!==Rv[t])return Rv[t];for(var e=2*t+1,o=Array(e),i=0;i<e;i++)o[i]=Array(e);for(var e=t,r=i=0;i<=e;)Iv(o,t+e,t+i),Iv(o,t+i,t+e),Iv(o,t-i,t+e),Iv(o,t-e,t+i),Iv(o,t-e,t-i),Iv(o,t-i,t-e),Iv(o,t+i,t-e),Iv(o,t+e,t-i),0<2*((r+=1+2*++i)-e)+1&&(r+=1-2*--e);return Rv[t]=o}(i);return function(t,e,o,i,r,n,s){var a,p,h=Object.keys(t.a).map(Number);h.sort(function(t,e){return e-t});var l=0;for(a=h.length;l<a;++l){var u=t.a[h[l].toString()];for(p=Ts.length-1;0<=p;--p){var c=u[Ts[p]];if(void 0!==c&&(c=mv(c,e,1,o,i,r,c.b,n,s)))return c}}}(this,h,p,o,r,function(t){for(var e=h.getImageData(0,0,a,a).data,o=0;o<a;o++)for(var i=0;i<a;i++)if(l[o][i]&&0<e[4*(i*a+o)+3])return(t=n(t))?t:void h.clearRect(0,0,a,a)},s)},Lv.prototype.b=function(t,e){var o=void 0!==t?t.toString():"0";return void 0===(t=this.a[o])&&(t={},this.a[o]=t),void 0===(o=t[e])&&(o=new kv[e](this.v,this.c,this.l,this.o),t[e]=o),o},Lv.prototype.i=function(){return ct(this.a)},Lv.prototype.La=function(t,e,o,i,r,n){var s=Object.keys(this.a).map(Number);s.sort(D);var a=Fv(this,o);t.save(),t.beginPath(),t.moveTo(a[0],a[1]),t.lineTo(a[2],a[3]),t.lineTo(a[4],a[5]),t.lineTo(a[6],a[7]),t.clip(),n=n||Ts;for(var a=0,p=s.length;a<p;++a)for(var h=this.a[s[a].toString()],l=0,u=n.length;l<u;++l){var c=h[n[l]];void 0!==c&&c.La(t,e,o,i,r)}t.restore()};var kv={Circle:Ev,Image:Sv,LineString:Mv,Polygon:Ev,Text:Cv};function Dv(t){Te.call(this),this.a=t}function Ov(t,e){var o=e.getState();return 2!=o&&3!=o&&de(e,"change",t.na,t),0==o&&(e.load(),o=e.getState()),2==o}function Uv(t){var e=t.a;e.Mb()&&"ready"==e.$f()&&t.s()}function Gv(t,e){e.Ki()&&t.postRenderFunctions.push(function(t,e,o){e=G(t).toString(),t.fd(o.viewState.projection,o.usedTiles[e])}.bind(null,e))}function Bv(t,e){if(e)for(var o=0,i=e.length;o<i;++o){var r=e[o];t[G(r).toString()]=r}}function Xv(t,e){void 0!==(e=e.D)&&("string"==typeof e?t.logos[e]="":e&&(O("string"==typeof e.href,44),O("string"==typeof e.src,45),t.logos[e.src]=e.href))}function Vv(t,e,o,i){e=G(e).toString(),o=o.toString(),e in t?o in t[e]?(t=t[e][o],i.ca<t.ca&&(t.ca=i.ca),i.$>t.$&&(t.$=i.$),i.da<t.da&&(t.da=i.da),i.ia>t.ia&&(t.ia=i.ia)):t[e][o]=i:(t[e]={},t[e][o]=i)}function Wv(t,e,o,i,r,n,s,a,p,h){var l=G(e).toString();l in t.wantedTiles||(t.wantedTiles[l]={});var u=t.wantedTiles[l];t=t.tileQueue;for(var c,f=o.minZoom,y=s;f<=y;--y)for(var g,d=ee(o,n,y,d),v=o.Da(y),b=d.ca;b<=d.$;++b)for(c=d.da;c<=d.ia;++c)s-y<=a?(0==(g=e.Nc(y,b,c,i,r)).getState()&&(u[g.bb()]=!0,g.bb()in t.a||t.f([g,l,oe(o,g.ta),v])),p&&p.call(h,g)):e.Ug(y,b,c,r)}function Zv(t){Dv.call(this,t),this.fa=qn()}function Kv(t,e,o){var i=e.pixelRatio,r=e.size[0]*i,n=e.size[1]*i,s=e.viewState.rotation,a=ot(o),p=it(o),h=_(o);o=J(o),ts(e.coordinateToPixelTransform,a),ts(e.coordinateToPixelTransform,p),ts(e.coordinateToPixelTransform,h),ts(e.coordinateToPixelTransform,o),t.save(),ds(t,-s,r/2,n/2),t.beginPath(),t.moveTo(a[0]*i,a[1]*i),t.lineTo(p[0]*i,p[1]*i),t.lineTo(h[0]*i,h[1]*i),t.lineTo(o[0]*i,o[1]*i),t.clip(),ds(t,s,r/2,n/2)}function zv(t,e,o,i,r){var n,s,a,p=t.a;Ee(p,e)&&(n=i.size[0]*i.pixelRatio,s=i.size[1]*i.pixelRatio,ds(o,-(a=i.viewState.rotation),n/2,s/2),t=r||Yv(t,i,0),p.b(new cs(e,new bs(o,i.pixelRatio,i.extent,t,i.viewState.rotation),i,o,null)),ds(o,a,n/2,s/2))}function Yv(t,e,o){var i=e.viewState,r=e.pixelRatio,n=r/i.resolution;return rs(t.fa,r*e.size[0]/2,r*e.size[1]/2,n,-n,-i.rotation,-i.center[0]+o,-i.center[1])}function Hv(t,e){return G(t)-G(e)}function qv(t,e){return(t=.5*t/e)*t}function Jv(t,e,o,i,r,n){var s,a,p=!1;return(s=o.Y())&&(2==(a=s.Ye())||3==a?s.Bj(r,n):(0==a&&s.load(),s.Nh(r,n),p=!0)),(r=(0,o.Za)(e))&&(i=r.Vd(i),(0,_v[i.U()])(t,i,o,e)),p}e(Dv,Te),Dv.prototype.Ea=w,Dv.prototype.Ue=Gi,Dv.prototype.Nf=function(o,i,r){return function(e,t){return fw(o,i,e,t,function(t){r[e]||(r[e]={}),r[e][t.ta.toString()]=t})}},Dv.prototype.na=function(t){2===t.target.getState()&&Uv(this)},e(Zv,Dv),Zv.prototype.u=function(t,e,o,i){if(this.Ea(t,e,0,Ui,this))return o.call(i,this.a,null)},Zv.prototype.ef=function(t,e,o,i){zv(this,"postcompose",t,e,i)};var _v={Point:function(t,e,o,i){var r=o.Y();if(r){if(2!=r.Ye())return;var n=t.b(o.Ba(),"Image");n.Ub(r),n.qc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),t.yc(e.ga(),0,2,2,e,i))},LineString:function(t,e,o,i){var r,n=o.Ga();n&&((r=t.b(o.Ba(),"LineString")).Ma(null,n),r.mc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(ul(e),0,2,2,e,i))},Polygon:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(n||s)&&((r=t.b(o.Ba(),"Polygon")).Ma(n,s),r.rc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(xr(e),0,2,2,e,i))},MultiPoint:function(t,e,o,i){var r=o.Y();if(r){if(2!=r.Ye())return;var n=t.b(o.Ba(),"Image");n.Ub(r),n.oc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),o=e.ga(),t.yc(o,0,o.length,e.qa(),e,i))},MultiLineString:function(t,e,o,i){var r,n=o.Ga();n&&((r=t.b(o.Ba(),"LineString")).Ma(null,n),r.nc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),o=fl(e),t.yc(o,0,o.length,2,e,i))},MultiPolygon:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(s||n)&&((r=t.b(o.Ba(),"Polygon")).Ma(n,s),r.pc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),o=vl(e),t.yc(o,0,o.length,2,e,i))},GeometryCollection:function(t,e,o,i){for(var r=0,n=(e=e.a).length;r<n;++r)(0,_v[e[r].U()])(t,e[r],o,i)},Circle:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(n||s)&&((r=t.b(o.Ba(),"Circle")).Ma(n,s),r.Zb(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(e.wa(),0,2,2,e,i))}};function $v(t){Zv.call(this,t),this.c=!1,this.v=-1,this.l=NaN,this.j=V(),this.f=this.o=null,this.g=Ye()}function Qv(){this.b="precision mediump float;varying vec2 a;uniform float f;uniform sampler2D g;void main(void){vec4 texColor=texture2D(g,a);gl_FragColor.rgb=texColor.rgb;gl_FragColor.a=texColor.a*f;}"}e($v,Zv),$v.prototype.S=function(t,e,o){var i=t.extent,r=t.pixelRatio,n=e.Je?t.skippedFeatureUids:{},s=(a=t.viewState).projection,a=a.rotation,p=s.G(),h=this.a.ha(),l=Yv(this,t,0);zv(this,"precompose",o,t,l);var u=e.extent,c=void 0!==u;if(c&&Kv(o,t,u),(u=this.f)&&!u.i()){var f,y=0,g=0,d=(f=Ee(this.a,"render")?(f=o.canvas.width,d=o.canvas.height,a&&(y=((v=Math.round(Math.sqrt(f*f+d*d)))-f)/2,g=(v-d)/2,f=d=v),this.g.canvas.width=f,this.g.canvas.height=d,this.g):o).globalAlpha;f.globalAlpha=e.opacity,f!=o&&f.translate(y,g);var v=t.size[0]*r,b=t.size[1]*r;if(ds(f,-a,v/2,b/2),u.La(f,r,l,a,n),h.u&&s.i&&!N(p,i)){for(var s=i[0],h=rt(p),m=0;s<p[0];)l=Yv(this,t,l=h*--m),u.La(f,r,l,a,n),s+=h;for(m=0,s=i[2];s>p[2];)l=Yv(this,t,l=h*++m),u.La(f,r,l,a,n),s-=h;l=Yv(this,t,0)}ds(f,a,v/2,b/2),f!=o&&(zv(this,"render",f,t,l),o.drawImage(f.canvas,-y,-g),f.translate(-y,-g)),f.globalAlpha=d}c&&o.restore(),this.ef(o,t,e,l)},$v.prototype.Ea=function(t,e,o,i,r){if(this.f){var n=this.a,s={};return this.f.Ea(t,e.viewState.resolution,e.viewState.rotation,o,{},function(t){var e=G(t).toString();if(!(e in s))return s[e]=!0,i.call(r,t,n)})}},$v.prototype.D=function(){Uv(this)},$v.prototype.sd=function(t){function e(t){var e,o=t.Lc();if(o?e=o.call(t,h):(o=n.f)&&(e=o(t,h)),e){if(e){if(o=!1,Array.isArray(e))for(var i=0,r=e.length;i<r;++i)o=Jv(f,t,e[i],qv(h,l),this.D,this)||o;else o=Jv(f,t,e,qv(h,l),this.D,this)||o;t=o}else t=!1;this.c=this.c||t}}var n=this.a,o=n.ha();Bv(t.attributions,o.j),Xv(t,o);var i=t.viewHints[0],r=t.viewHints[1],s=n.T,a=n.na;if(!this.c&&!s&&i||!a&&r)return!0;var p=t.extent,i=(a=t.viewState).projection,h=a.resolution,l=t.pixelRatio,r=n.i,u=n.c;if(void 0===(s=n.get(pb))&&(s=Hv),p=A(p,u*h),u=a.projection.G(),o.u&&a.projection.i&&!N(u,t.extent)&&(t=Math.max(rt(p)/2,rt(u)),p[0]=u[0]-t,p[2]=u[2]+t),!this.c&&this.l==h&&this.v==r&&this.o==s&&N(this.j,p))return!0;this.f=null,this.c=!1;var c,f=new Lv(.5*h/l,p,h,o.T,n.c);return o.Yd(p,h,i),s?(c=[],o.$b(p,function(t){c.push(t)},this),c.sort(s),c.forEach(e,this)):o.$b(p,e,this),Nv(f),this.l=h,this.v=r,this.o=s,this.j=p,this.f=f,!0},e(Qv,Ls);var tb=new Qv;function eb(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position=e*vec4(b,0.,1.);a=(d*vec4(c,0.,1.)).st;}"}e(eb,Rs);var ob=new eb;function ib(t,e){this.i=t.getUniformLocation(e,"f"),this.c=t.getUniformLocation(e,"e"),this.g=t.getUniformLocation(e,"d"),this.f=t.getUniformLocation(e,"g"),this.b=t.getAttribLocation(e,"b"),this.a=t.getAttribLocation(e,"c")}function rb(t,e){Dv.call(this,e),this.c=t,this.T=new zs([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),this.g=this.Ib=null,this.j=void 0,this.v=qn(),this.S=qn(),this.C=Os(),this.u=null}function nb(t,e,o,i){var r;Ee(t=t.a,e)&&(r=i.viewState,t.b(new cs(e,new Dp(o,r.center,r.resolution,r.rotation,i.size,i.extent,i.pixelRatio),i,null,o)))}function sb(t,e){rb.call(this,t,e),this.l=!1,this.R=-1,this.I=NaN,this.D=V(),this.o=this.f=this.B=null}function ab(t){var e=ht({},t=t||{});delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,Zn.call(this,e),this.c=void 0!==t.renderBuffer?t.renderBuffer:100,this.u=null,this.f=void 0,this.g(t.style),this.T=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.na=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}e(rb,Dv),rb.prototype.Gi=function(t,e,o){nb(this,"precompose",o,t),oa(o,34962,this.T);var i,r=o.b,n=sa(o,tb,ob);this.u?i=this.u:this.u=i=new ib(r,n),o.Qc(n)&&(r.enableVertexAttribArray(i.b),r.vertexAttribPointer(i.b,2,5126,!1,16,0),r.enableVertexAttribArray(i.a),r.vertexAttribPointer(i.a,2,5126,!1,16,8),r.uniform1i(i.f,0)),r.uniformMatrix4fv(i.g,!1,Us(this.C,this.v)),r.uniformMatrix4fv(i.c,!1,Us(this.C,this.S)),r.uniform1f(i.i,e.opacity),r.bindTexture(3553,this.Ib),r.drawArrays(5,0,4),nb(this,"postcompose",o,t)},rb.prototype.mg=function(){this.g=this.Ib=null,this.j=void 0},e(sb,rb),(Au=sb.prototype).Gi=function(t,e,o){this.o=e;var i=t.viewState,r=this.f,n=t.size,s=t.pixelRatio,a=this.c.i;r&&!r.i()&&(a.enable(a.SCISSOR_TEST),a.scissor(0,0,n[0]*s,n[1]*s),r.La(o,i.center,i.resolution,i.rotation,n,s,e.opacity,e.Je?t.skippedFeatureUids:{}),a.disable(a.SCISSOR_TEST))},Au.ka=function(){var t=this.f;t&&(Ip(t,this.c.f)(),this.f=null),rb.prototype.ka.call(this)},Au.Ea=function(t,e,o,i,r){if(this.f&&this.o){o=e.viewState;var n=this.a,s={};return this.f.Ea(t,this.c.f,o.center,o.resolution,o.rotation,e.size,e.pixelRatio,this.o.opacity,{},function(t){var e=G(t).toString();if(!(e in s))return s[e]=!0,i.call(r,t,n)})}},Au.Ue=function(t,e){if(this.f&&this.o){var o=e.viewState;return i=this.f,r=t,n=this.c.f,s=o.resolution,a=o.rotation,t=e.pixelRatio,o=this.o.opacity,e=e.skippedFeatureUids,(p=n.b).bindFramebuffer(p.FRAMEBUFFER,ra(n)),void 0!==Np(i,n,r,s,a,t,o,e,function(){var t=new Uint8Array(4);return p.readPixels(0,0,1,1,p.RGBA,p.UNSIGNED_BYTE,t),0<t[3]},!1)}var i,r,n,s,a,p;return!1},Au.lg=function(t,e,o,i){if(t=ts(e.pixelToCoordinateTransform,t.slice()),this.Ue(t,e))return o.call(i,this.a,null)},Au.Hi=function(){Uv(this)},Au.ng=function(t,e,o){function i(t){var e,o=t.Lc();if(o?e=o.call(t,h):(o=r.f)&&(e=o(t,h)),e){if(e){if(o=!1,Array.isArray(e))for(var i=e.length-1;0<=i;--i)o=Jv(f,t,e[i],qv(h,l),this.Hi,this)||o;else o=Jv(f,t,e,qv(h,l),this.Hi,this)||o;t=o}else t=!1;this.l=this.l||t}}var r=this.a;e=r.ha(),Bv(t.attributions,e.j),Xv(t,e);var n=t.viewHints[0],s=t.viewHints[1],a=r.T,p=r.na;if(!this.l&&!a&&n||!p&&s)return!0;var s=t.extent,n=(a=t.viewState).projection,h=a.resolution,l=t.pixelRatio,a=r.i,u=r.c;if(void 0===(p=r.get(pb))&&(p=Hv),s=A(s,u*h),!this.l&&this.I==h&&this.R==a&&this.B==p&&N(this.D,s))return!0;this.f&&t.postRenderFunctions.push(Ip(this.f,o)),this.l=!1;var c,f=new Rp(.5*h/l,s,r.c);return e.Yd(s,h,n),p?(c=[],e.$b(s,function(t){c.push(t)},this),c.sort(p),c.forEach(i,this)):e.$b(s,i,this),function(t,e){for(var o in t.a){var i,r=t.a[o];for(i in r)r[i].Db(e)}}(f,o),this.I=h,this.R=a,this.B=p,this.D=s,this.f=f,!0},e(ab,Zn),ab.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new $v(this):"webgl"===o&&(e=new sb(t,this)),e},ab.prototype.D=function(){return this.u},ab.prototype.C=function(){return this.f},ab.prototype.g=function(t){this.u=void 0!==t?t:Ch,this.f=null===t?void 0:Th(this.u),this.s()};var pb="renderOrder";function hb(){return[[-1/0,-1/0,1/0,1/0]]}function lb(t){je.call(this),this.c=Bt(t.projection),this.j=ub(t.attributions),this.D=t.logo,this.na=void 0!==t.state?t.state:"ready",this.u=void 0!==t.wrapX&&t.wrapX}function ub(t){if("string"==typeof t)return[new he({html:t})];if(t instanceof he)return[t];if(Array.isArray(t)){for(var e=t.length,o=Array(e),i=0;i<e;i++){var r=t[i];o[i]="string"==typeof r?new he({html:r}):r}return o}return null}function cb(t,e){t.na=e,t.s()}function fb(t){lb.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.B=w,this.C=t.format,this.T=null==t.overlaps||t.overlaps,this.I=t.url,t.loader?this.B=t.loader:void 0!==this.I&&(O(this.C,7),this.B=el(this.I,this.C)),this.fa=t.strategy||hb;var e,o,i,r,n=void 0===t.useSpatialIndex||t.useSpatialIndex;this.a=n?new lp:null,this.R=new lp,this.g={},this.o={},this.l={},this.v={},this.f=null,t.features instanceof Ne?e=(o=t.features).a:Array.isArray(t.features)&&(e=t.features),n||o||(o=new Ne(e)),e&&db(this,e),o&&(i=o,r=!1,de(o=this,"addfeature",function(t){r||(r=!0,i.push(t.feature),r=!1)}),de(o,"removefeature",function(t){r||(r=!0,i.remove(t.feature),r=!1)}),de(i,"add",function(t){r||(r=!0,this.yb(t.element),r=!1)},o),de(i,"remove",function(t){r||(r=!0,this.Gb(t.element),r=!1)},o),o.f=i)}function yb(t,e,o){t.v[e]=[de(o,"change",t.Oi,t),de(o,"propertychange",t.Oi,t)]}function gb(t,e,o){var i=!0,r=o.a;return void 0!==r?r.toString()in t.o?i=!1:t.o[r.toString()]=o:(O(!(e in t.l),30),t.l[e]=o),i}function db(t,e){for(var o=[],i=[],r=[],n=0,s=e.length;n<s;n++){var a=e[n],p=G(a).toString();gb(t,p,a)&&i.push(a)}for(n=0,s=i.length;n<s;n++)yb(t,p=G(a=i[n]).toString(),a),(e=a.V())?(p=e.G(),o.push(p),r.push(a)):t.g[p]=a;for(t.a&&t.a.load(o,r),n=0,s=i.length;n<s;n++)t.b(new bb("addfeature",i[n]))}function vb(t,e){for(var o in t.o)if(t.o[o]===e){delete t.o[o];break}}function bb(t,e){Me.call(this,t),this.feature=e}function mb(t){var e;$r.call(this,{handleDownEvent:xb,handleEvent:wb,handleUpEvent:Sb}),this.T=!1,this.fa=null,this.u=!1,this.Yb=t.source||null,this.$a=t.features||null,this.wk=t.snapTolerance||12,this.R=t.type,this.g=("Point"===(e=this.R)||"MultiPoint"===e?n=Cb:"LineString"===e||"MultiLineString"===e?n=Lb:"Polygon"===e||"MultiPolygon"===e?n=Rb:"Circle"===e&&(n=Ib),n),this.Sa=t.minPoints||(this.g===Rb?3:2),this.va=t.maxPoints||1/0,this.Cf=t.finishCondition||Ui;var o,i,r,n=(n=t.geometryFunction)||("Circle"===this.R?function(t,e){return(e=e||new Vd([NaN,NaN])).Ng(t[0],Math.sqrt(Fi(t[0],t[1]))),e}:((i=this.g)===Cb?o=hr:i===Lb?o=ll:i===Rb&&(o=wr),function(t,e){return e?i===Rb?e.ma([t[0].concat([t[0][0]])]):e.ma(t):e=new o(t),e}));this.Za=n,this.I=this.C=this.a=this.B=this.j=this.l=null,this.ad=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,this.pa=new ab({source:new fb({useSpatialIndex:!1,wrapX:t.wrapX||!1}),style:t.style||(r=Lh(),function(t){return r[t.V().U()]})}),this.xb=t.geometryName,this.vk=t.condition||Yr,this.Df=t.freehand?Ui:t.freehandCondition||Hr,de(this,Le("active"),this.ri,this)}function wb(t){this.u=this.g!==Cb&&this.Df(t);var e=!this.u;return this.u&&"pointerdrag"===t.type&&null!==this.j?(Eb(this,t),e=!1):"pointermove"===t.type?e=Mb(this,t):"dblclick"===t.type&&(e=!1),tn.call(this,t)&&e}function xb(t){return this.T=!this.u,this.u?(this.fa=t.pixel,this.l||Ab(this,t),!0):!!this.vk(t)&&(this.fa=t.pixel,!0)}function Sb(t){var e=!0;Mb(this,t);var o=this.g===Ib;return this.T?(this.l?this.u||o?this.Pd():Pb(this,t)?this.Cf(t)&&this.Pd():Eb(this,t):(Ab(this,t),this.g===Cb&&this.Pd()),e=!1):this.u&&(this.l=null,Tb(this)),e}function Mb(t,e){var o,i,r;return t.fa&&(!t.u&&t.T||t.u&&!t.T)&&(i=t.fa,o=e.pixel,r=(r=i[0]-o[0])*r+(i=i[1]-o[1])*i,t.T=t.u?r>t.ad:r<=t.ad),t.l?(r=e.coordinate,i=t.j.V(),t.g===Cb?o=t.a:t.g===Rb?(o=(o=t.a[0])[o.length-1],Pb(t,e)&&(r=t.l.slice())):o=(o=t.a)[o.length-1],o[0]=r[0],o[1]=r[1],t.Za(t.a,i),t.B&&t.B.V().ma(r),i instanceof wr&&t.g!==Rb?(t.C||(t.C=new Ih(new ll(null))),r=i.Ch(0),(e=t.C.V()).ba(r.ja,r.ga())):t.I&&(e=t.C.V()).ma(t.I),jb(t)):(e=e.coordinate.slice(),t.B?t.B.V().ma(e):(t.B=new Ih(new hr(e)),jb(t))),!0}function Pb(t,e){var o=!1;if(t.j){var i=!1,r=[t.l];if(t.g===Lb?i=t.a.length>t.Sa:t.g===Rb&&(i=t.a[0].length>t.Sa,r=[t.a[0][0],t.a[0][t.a[0].length-2]]),i)for(var i=e.map,n=0,s=r.length;n<s;n++){var a=r[n],p=i.Ja(a),h=e.pixel,o=h[0]-p[0],p=h[1]-p[1];if(o=Math.sqrt(o*o+p*p)<=(t.u?1:t.wk)){t.l=a;break}}}return o}function Ab(t,e){e=e.coordinate,t.l=e,t.g===Cb?t.a=e.slice():t.g===Rb?(t.a=[[e.slice(),e.slice()]],t.I=t.a[0]):(t.a=[e.slice(),e.slice()],t.g===Ib&&(t.I=t.a)),t.I&&(t.C=new Ih(new ll(t.I))),e=t.Za(t.a),t.j=new Ih,t.xb&&t.j.Tc(t.xb),t.j.Ra(e),jb(t),t.b(new Nb("drawstart",t.j))}function Eb(t,e){e=e.coordinate;var o,i,r=t.j.V();t.g===Lb?(t.l=e.slice(),(i=t.a).length>=t.va&&(t.u?i.pop():o=!0),i.push(e.slice()),t.Za(i,r)):t.g===Rb&&((i=t.a[0]).length>=t.va&&(t.u?i.pop():o=!0),i.push(e.slice()),o&&(t.l=i[0]),t.Za(t.a,r)),jb(t),o&&t.Pd()}function Tb(t){t.l=null;var e=t.j;return e&&(t.j=null,t.B=null,t.C=null,t.pa.ha().clear(!0)),e}function jb(t){var e=[];t.j&&e.push(t.j),t.C&&e.push(t.C),t.B&&e.push(t.B),(t=t.pa.ha()).clear(!0),t.cd(e)}e(lb,je),(Au=lb.prototype).Ea=w,Au.ya=function(){return this.j},Au.xa=function(){return this.D},Au.za=function(){return this.c},Au.getState=function(){return this.na},Au.sa=function(){this.s()},Au.ua=function(t){this.j=ub(t),this.s()},e(fb,lb),(Au=fb.prototype).yb=function(t){var e,o=G(t).toString();gb(this,o,t)&&(yb(this,o,t),(e=t.V())?(o=e.G(),this.a&&this.a.Ca(o,t)):this.g[o]=t,this.b(new bb("addfeature",t))),this.s()},Au.cd=function(t){db(this,t),this.s()},Au.clear=function(t){if(t){for(var e in this.v)this.v[e].forEach(me);this.f||(this.v={},this.o={},this.l={})}else if(this.a)for(var o in this.a.forEach(this.Ig,this),this.g)this.Ig(this.g[o]);this.f&&this.f.clear(),this.a&&this.a.clear(),this.R.clear(),this.g={},this.b(new bb("clear")),this.s()},Au.sh=function(t,e){return this.a?this.a.forEach(t,e):this.f?this.f.forEach(t,e):void 0},Au.$b=function(t,e,o){return this.a?yp(this.a,t,e,o):this.f?this.f.forEach(e,o):void 0},Au.th=function(e,o,i){return this.$b(e,function(t){if(t.V().Xa(e)&&(t=o.call(i,t)))return t})},Au.Ah=function(){return this.f},Au.Xe=function(){var t;return this.f?t=this.f.a:this.a&&(t=cp(this.a),ct(this.g)||c(t,ut(this.g))),t},Au.zh=function(t){var e,o,i=[];return e=t,o=function(t){i.push(t)},this.$b([e[0],e[1],e[0],e[1]],function(t){if(t.V().sb(e))return o.call(void 0,t)}),i},Au.Uf=function(t){return fp(this.a,t)},Au.vh=function(t,e){var i=t[0],r=t[1],n=null,s=[NaN,NaN],a=1/0,p=[-1/0,-1/0,1/0,1/0],h=e||Ui;return yp(this.a,p,function(t){var e,o;h(t)&&(e=t.V(),o=a,(a=e.Kb(i,r,s,a))<o&&(n=t,t=Math.sqrt(a),p[0]=i-t,p[1]=r-t,p[2]=i+t,p[3]=r+t))}),n},Au.G=function(t){return this.a.G(t)},Au.yh=function(t){return void 0!==(t=this.o[t.toString()])?t:null},Au.Mi=function(){return this.C},Au.Ni=function(){return this.I},Au.Oi=function(t){var e=G(t=t.target).toString(),o=t.V();o?(o=o.G(),e in this.g?(delete this.g[e],this.a&&this.a.Ca(o,t)):this.a&&up(this.a,o,t)):e in this.g||(this.a&&this.a.remove(t),this.g[e]=t),void 0!==(o=t.a)?(o=o.toString(),e in this.l?(delete this.l[e],this.o[o]=t):this.o[o]!==t&&(vb(this,t),this.o[o]=t)):e in this.l||(vb(this,t),this.l[e]=t),this.s(),this.b(new bb("changefeature",t))},Au.Yd=function(t,e,o){for(var i=this.R,r=0,n=(t=this.fa(t,e)).length;r<n;++r){var s=t[r];yp(i,s,function(t){return N(t.extent,s)})||(this.B.call(this,s,e,o),i.Ca(s,{extent:s.slice()}))}},Au.Gb=function(t){var e=G(t).toString();e in this.g?delete this.g[e]:this.a&&this.a.remove(t),this.Ig(t),this.s()},Au.Ig=function(t){var e=G(t).toString();this.v[e].forEach(me),delete this.v[e];var o=t.a;void 0!==o?delete this.o[o.toString()]:delete this.l[e],this.b(new bb("removefeature",t))},e(bb,Me),e(mb,$r),(Au=mb.prototype).setMap=function(t){$r.prototype.setMap.call(this,t),this.ri()},Au.Op=function(){var t,e;this.j&&(t=this.j.V(),this.g===Lb?((e=this.a).splice(-2,1),this.Za(e,t),2<=e.length&&(this.l=e[e.length-2].slice())):this.g===Rb&&((e=this.a[0]).splice(-2,1),this.C.V().ma(e),this.Za(this.a,t)),0===e.length&&(this.l=null),jb(this))},Au.Pd=function(){var t=Tb(this),e=this.a,o=t.V();this.g===Lb?(e.pop(),this.Za(e,o)):this.g===Rb&&(e[0].pop(),this.Za(e,o),e=o.X()),"MultiPoint"===this.R?t.Ra(new gl([e])):"MultiLineString"===this.R?t.Ra(new cl([e])):"MultiPolygon"===this.R&&t.Ra(new dl([e])),this.b(new Nb("drawend",t)),this.$a&&this.$a.push(t),this.Yb&&this.Yb.yb(t)},Au.vn=function(t){var e=t.V();this.j=t,this.a=e.X(),t=this.a[this.a.length-1],this.l=t.slice(),this.a.push(t.slice()),jb(this),this.b(new Nb("drawstart",this.j))},Au.Xc=Gi,Au.ri=function(){var t=this.v,e=this.c();t&&e||Tb(this),this.pa.setMap(e?t:null)};var Cb="Point",Lb="LineString",Rb="Polygon",Ib="Circle";function Nb(t,e){Me.call(this,t),this.feature=e}function Fb(t){var e,o;this.a=this.j=null,this.C=!1,this.B=this.l=null,(t=t||{}).extent&&this.g(t.extent),$r.call(this,{handleDownEvent:Db,handleDragEvent:Ob,handleEvent:kb,handleUpEvent:Ub}),this.u=new ab({source:new fb({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.boxStyle||(e=Lh(),function(){return e.Polygon}),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.I=new ab({source:new fb({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.pointerStyle||(o=Lh(),function(){return o.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0})}function kb(t){return!(t instanceof Ko)||("pointermove"!=t.type||this.D||Vb(this,Xb(this,e=t.pixel,o=t.map)||o.Wa(e)),tn.call(this,t),!1);var e,o}function Db(t){function e(t){var e=null,o=null;return t[0]==r[0]?e=r[2]:t[0]==r[2]&&(e=r[0]),t[1]==r[1]?o=r[3]:t[1]==r[3]&&(o=r[1]),null!==e&&null!==o?[e,o]:null}var o=t.pixel,i=t.map,r=this.G();return(t=Xb(this,o,i))&&r?(o=t[0]==r[0]||t[0]==r[2]?t[0]:null,i=t[1]==r[1]||t[1]==r[3]?t[1]:null,null!==o&&null!==i?this.a=Gb(e(t)):null!==o?this.a=Bb(e([o,r[1]]),e([o,r[3]])):null!==i&&(this.a=Bb(e([r[0],i]),e([r[2],i])))):(t=i.Wa(o),this.g([t[0],t[1],t[0],t[1]]),this.a=Gb(t)),!0}function Ob(t){return this.a&&(t=t.coordinate,this.g(this.a(t)),Vb(this,t)),!0}function Ub(){this.a=null;var t=this.G();return t&&q(t)||this.g(null),!1}function Gb(e){return function(t){return P([e,t])}}function Bb(e,o){return e[0]==o[0]?function(t){return P([e,[t[0],o[1]]])}:e[1]==o[1]?function(t){return P([e,[o[0],t[1]]])}:null}function Xb(t,e,o){var i=o.Wa(e);if(r=t.G()){(r=[[[r[0],r[1]],[r[0],r[3]]],[[r[0],r[3]],[r[2],r[3]]],[[r[2],r[3]],[r[2],r[1]]],[[r[2],r[1]],[r[0],r[1]]]]).sort(function(t,e){return Di(i,t)-Di(i,e)});var r=r[0],n=ji(i,r),s=o.Ja(n);if(ki(e,s)<=10)return e=o.Ja(r[0]),o=o.Ja(r[1]),e=Fi(s,e),o=Fi(s,o),t.C=Math.sqrt(Math.min(e,o))<=10,n=t.C?o<e?r[1]:r[0]:n}return null}function Vb(t,e){var o=t.B;o?o.V().ma(e):(o=new Ih(new hr(e)),t.B=o,t.I.ha().yb(o))}function Wb(t){Me.call(this,Zb),this.b=t}e(Nb,Me),e(Fb,$r),Fb.prototype.setMap=function(t){this.u.setMap(t),this.I.setMap(t),$r.prototype.setMap.call(this,t)},Fb.prototype.G=function(){return this.j},Fb.prototype.g=function(t){this.j=t||null;var e=this.l;e?t?e.Ra(Mr(t)):e.Ra(void 0):(this.l=e=new Ih(t?Mr(t):{}),this.u.ha().yb(e)),this.b(new Wb(this.j))},e(Wb,Me);var Zb="extentchanged";function Kb(t){var e;$r.call(this,{handleDownEvent:Jb,handleDragEvent:_b,handleEvent:Qb,handleUpEvent:$b}),this.ad=t.condition||_r,this.$a=function(t){return Yr(t)&&zr(t)},this.xb=t.deleteCondition||this.$a,this.Yb=t.insertVertexCondition||Ui,this.Sa=this.g=null,this.va=[0,0],this.C=this.I=!1,this.a=new lp,this.fa=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.l=this.pa=!1,this.j=[],this.B=new ab({source:new fb({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style||(e=Lh(),function(){return e.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.T={Point:this.Dn,LineString:this.ti,LinearRing:this.ti,Polygon:this.En,MultiPoint:this.Bn,MultiLineString:this.An,MultiPolygon:this.Cn,Circle:this.yn,GeometryCollection:this.zn},this.u=t.features,this.u.forEach(this.kg,this),de(this.u,"add",this.wn,this),de(this.u,"remove",this.xn,this),this.R=null}function zb(t,e){t.C||(t.C=!0,t.b(new rm("modifystart",t.u,e)))}function Yb(t,e){!function(t,e){t=t.a;var o=[];t.forEach(function(t){e===t.feature&&o.push(t)});for(var i=o.length-1;0<=i;--i)t.remove(o[i])}(t,e),t.g&&!t.u.dc()&&(t.B.ha().Gb(t.g),t.g=null),be(e,"change",t.si,t)}function Hb(t,e){var o=t.g;o?o.V().ma(e):(o=new Ih(new hr(e)),t.g=o,t.B.ha().yb(o))}function qb(t,e){return t.index-e.index}function Jb(t){if(!this.ad(t))return!1;tm(this,t.pixel,t.map);var e=t.map.Wa(t.pixel);if(this.j.length=0,this.C=!1,o=this.g){var o,i=[],r=P([o=o.V().X()]),n={};(r=fp(this.a,r)).sort(qb);for(var s=0,a=r.length;s<a;++s){var p=r[s],h=p.la,l=G(p.feature),u=p.depth;u&&(l+="-"+u.join("-")),n[l]||(n[l]=Array(2)),"Circle"===p.geometry.U()&&1===p.index?Ri(h=om(e,p),o)&&!n[l][0]&&(this.j.push([p,0]),n[l][0]=p):Ri(h[0],o)&&!n[l][0]?(this.j.push([p,0]),n[l][0]=p):Ri(h[1],o)&&!n[l][1]?("LineString"===p.geometry.U()||"MultiLineString"===p.geometry.U())&&n[l][0]&&0===n[l][0].index||(this.j.push([p,1]),n[l][1]=p):this.Yb(t)&&G(h)in this.Sa&&!n[l][0]&&!n[l][1]&&i.push([p,o])}for(i.length&&zb(this,t),t=i.length-1;0<=t;--t)this.bm.apply(this,i[t])}return!!this.g}function _b(t){this.I=!1,zb(this,t),t=t.coordinate;for(var e=0,o=this.j.length;e<o;++e){for(var i,r=(p=this.j[e])[0],n=r.depth,s=r.geometry,a=r.la,p=p[1];t.length<s.qa();)t.push(a[p][t.length]);switch(s.U()){case"Point":i=t,a[0]=a[1]=t;break;case"MultiPoint":(i=s.X())[r.index]=t,a[0]=a[1]=t;break;case"LineString":(i=s.X())[r.index+p]=t,a[p]=t;break;case"MultiLineString":case"Polygon":(i=s.X())[n[0]][r.index+p]=t,a[p]=t;break;case"MultiPolygon":(i=s.X())[n[1]][n[0]][r.index+p]=t,a[p]=t;break;case"Circle":a[0]=a[1]=t,0===r.index?(this.l=!0,s.ob(t)):(this.l=!0,s.Uc(ki(s.wa(),t))),this.l=!1}i&&(r=s,n=i,this.l=!0,r.ma(n),this.l=!1)}Hb(this,t)}function $b(t){for(var e,o,i,r,n=this.j.length-1;0<=n;--n)"Circle"===(e=(r=this.j[n][0]).geometry).U()?(o=e.wa(),i=r.Pf[0],r=r.Pf[1],i.la[0]=i.la[1]=o,r.la[0]=r.la[1]=o,up(this.a,k(o),i),up(this.a,e.G(),r)):up(this.a,P(r.la),r);return this.C&&(this.b(new rm("modifyend",this.u,t)),this.C=!1),!1}function Qb(t){return!(t instanceof Ko)||(Ir((this.R=t).map.Z())[1]||"pointermove"!=t.type||this.D||(this.va=t.pixel,tm(this,t.pixel,t.map)),this.g&&this.xb(t)&&(e=!("singleclick"!=t.type||!this.I)||this.hj()),"singleclick"==t.type&&(this.I=!1),tn.call(this,t)&&!e);var e}function tm(t,e,o){var i=o.Wa(e),r=A(k(i),o.Z().Pa()*t.fa);if(0<(r=fp(t.a,r)).length){r.sort(function(t,e){return em(i,t)-em(i,e)});var n=r[0],s=n.la,a=om(i,n),p=o.Ja(a),h=ki(e,p);if(h<=t.fa){if(e={},"Circle"===n.geometry.U()&&1===n.index)t.pa=!0,Hb(t,a);else for(h=o.Ja(s[0]),n=o.Ja(s[1]),o=Fi(p,h),p=Fi(p,n),h=Math.sqrt(Math.min(o,p)),t.pa=h<=t.fa,Hb(t,a=t.pa?p<o?s[1]:s[0]:a),p=1,o=r.length;p<o&&(a=r[p].la,Ri(s[0],a[0])&&Ri(s[1],a[1])||Ri(s[0],a[1])&&Ri(s[1],a[0]));++p)e[G(a)]=!0;return e[G(s)]=!0,void(t.Sa=e)}}t.g&&(t.B.ha().Gb(t.g),t.g=null)}function em(t,e){var o=e.geometry;return"Circle"===o.U()&&1===e.index?(t=Fi(o.wa(),t),(o=Math.sqrt(t)-o.pd())*o):Di(t,e.la)}function om(t,e){var o=e.geometry;return"Circle"===o.U()&&1===e.index?o.Ab(t):ji(t,e.la)}function im(t,e,o,i,r){yp(t.a,e.G(),function(t){t.geometry===e&&(void 0===i||void 0===t.depth||U(t.depth,i))&&t.index>o&&(t.index+=r)})}function rm(t,e,o){Me.call(this,t),this.features=e,this.mapBrowserEvent=o}function nm(t){var e,o;Or.call(this,{handleEvent:sm}),t=t||{},this.C=t.condition||zr,this.D=t.addCondition||Gi,this.B=t.removeCondition||Gi,this.I=t.toggleCondition||Hr,this.l=t.multi||!1,this.o=t.filter||Ui,this.j=t.hitTolerance||0,this.g=new ab({source:new fb({useSpatialIndex:!1,features:t.features,wrapX:t.wrapX}),style:t.style||(c((e=Lh()).Polygon,e.LineString),c(e.GeometryCollection,e.LineString),function(t){return t.V()?e[t.V().U()]:null}),updateWhileAnimating:!0,updateWhileInteracting:!0}),t=t.layers?"function"==typeof t.layers?t.layers:(o=t.layers,function(t){return d(o,t)}):Ui,this.u=t,this.a={},de(t=this.g.ha().f,"add",this.Fn,this),de(t,"remove",this.Jn,this)}function sm(t){if(!this.C(t))return!0;var o=this.D(t),i=this.B(t),r=this.I(t),e=!o&&!i&&!r,n=t.map,s=this.g.ha().f,a=[],p=[];if(e){for(lt(this.a),n.we(t.pixel,function(t,e){if(this.o(t,e))return p.push(t),t=G(t),this.a[t]=e,!this.l}.bind(this),{layerFilter:this.u,hitTolerance:this.j}),e=s.dc()-1;0<=e;--e){var n=s.item(e),h=p.indexOf(n);-1<h?p.splice(h,1):(s.remove(n),a.push(n))}p.length&&s.fg(p)}else{for(n.we(t.pixel,function(t,e){if(this.o(t,e))return!o&&!r||d(s.a,t)?(i||r)&&d(s.a,t)&&(a.push(t),e=G(t),delete this.a[e]):(p.push(t),t=G(t),this.a[t]=e),!this.l}.bind(this),{layerFilter:this.u,hitTolerance:this.j}),e=a.length-1;0<=e;--e)s.remove(a[e]);s.fg(p)}return(0<p.length||0<a.length)&&this.b(new am(pm,p,a,t)),Kr(t)}function am(t,e,o,i){Me.call(this,t),this.selected=e,this.deselected=o,this.mapBrowserEvent=i}e(Kb,$r),(Au=Kb.prototype).kg=function(t){var e=t.V();e&&e.U()in this.T&&this.T[e.U()].call(this,t,e),(e=this.v)&&e.c&&this.c()&&tm(this,this.va,e),de(t,"change",this.si,this)},Au.Ha=function(t){this.g&&!t&&(this.B.ha().Gb(this.g),this.g=null),$r.prototype.Ha.call(this,t)},Au.setMap=function(t){this.B.setMap(t),$r.prototype.setMap.call(this,t)},Au.wn=function(t){this.kg(t.element)},Au.si=function(t){this.l||(Yb(this,t=t.target),this.kg(t))},Au.xn=function(t){Yb(this,t.element)},Au.Dn=function(t,e){var o=e.X();t={feature:t,geometry:e,la:[o,o]},this.a.Ca(e.G(),t)},Au.Bn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i){var n={feature:t,geometry:e,depth:[i],index:i,la:[n=o[i],n]};this.a.Ca(e.G(),n)}},Au.ti=function(t,e){for(var o=e.X(),i=0,r=o.length-1;i<r;++i){var n=o.slice(i,i+2),s={feature:t,geometry:e,index:i,la:n};this.a.Ca(P(n),s)}},Au.An=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length-1;s<a;++s){var p=n.slice(s,s+2),h={feature:t,geometry:e,depth:[i],index:s,la:p};this.a.Ca(P(p),h)}},Au.En=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length-1;s<a;++s){var p=n.slice(s,s+2),h={feature:t,geometry:e,depth:[i],index:s,la:p};this.a.Ca(P(p),h)}},Au.Cn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length;s<a;++s)for(var p=n[s],h=0,l=p.length-1;h<l;++h){var u=p.slice(h,h+2),c={feature:t,geometry:e,depth:[s,i],index:h,la:u};this.a.Ca(P(u),c)}},Au.yn=function(t,e){var o=e.wa(),i={feature:t,geometry:e,index:0,la:[o,o]};t={feature:t,geometry:e,index:1,la:[o,o]},i.Pf=t.Pf=[i,t],this.a.Ca(k(o),i),this.a.Ca(e.G(),t)},Au.zn=function(t,e){var o=e.a;for(e=0;e<o.length;++e)this.T[o[e].U()].call(this,t,o[e])},Au.bm=function(t,e){for(var o,i=t.la,r=t.feature,n=t.geometry,s=t.depth,a=t.index;e.length<n.qa();)e.push(0);switch(n.U()){case"MultiLineString":case"Polygon":(o=n.X())[s[0]].splice(a+1,0,e);break;case"MultiPolygon":(o=n.X())[s[1]][s[0]].splice(a+1,0,e);break;case"LineString":(o=n.X()).splice(a+1,0,e);break;default:return}this.l=!0,n.ma(o),this.l=!1,(o=this.a).remove(t),im(this,n,a,s,1),t={la:[i[0],e],feature:r,geometry:n,depth:s,index:a},o.Ca(P(t.la),t),this.j.push([t,1]),e={la:[e,i[1]],feature:r,geometry:n,depth:s,index:a+1},o.Ca(P(e.la),e),this.j.push([e,0]),this.I=!0},Au.hj=function(){if(this.R&&"pointerdrag"!=this.R.type){var t=this.R;zb(this,t);var e,o=this.j,i={};for(a=o.length-1;0<=a;--a){var r=o[a],n=r[0],s=G(n.feature);n.depth&&(s+="-"+n.depth.join("-")),s in i||(i[s]={}),0===r[1]?(i[s].right=n,i[s].index=n.index):1==r[1]&&(i[s].left=n,i[s].index=n.index+1)}for(s in i){var a,p=i[s].right,h=i[s].left,l=(a=i[s].index)-1;l<0&&(l=0);var u=e=(r=(n=void 0!==h?h:p).geometry).X(),c=!1;switch(r.U()){case"MultiLineString":2<e[n.depth[0]].length&&(e[n.depth[0]].splice(a,1),c=!0);break;case"LineString":2<e.length&&(e.splice(a,1),c=!0);break;case"MultiPolygon":u=u[n.depth[1]];case"Polygon":4<(u=u[n.depth[0]]).length&&(a==u.length-1&&(a=0),u.splice(a,1),c=!0,0===a&&(u.pop(),u.push(u[0]),l=u.length-1))}c&&(c=r,this.l=!0,c.ma(e),this.l=!1,e=[],void 0!==h&&(this.a.remove(h),e.push(h.la[0])),void 0!==p&&(this.a.remove(p),e.push(p.la[1])),void 0!==h&&void 0!==p&&(h={depth:n.depth,feature:n.feature,geometry:n.geometry,index:l,la:e},this.a.Ca(P(h.la),h)),im(this,r,a,n.depth,-1),this.g&&(this.B.ha().Gb(this.g),this.g=null),o.length=0)}return this.b(new rm("modifyend",this.u,t)),!(this.C=!1)}return!1},e(rm,Me),e(nm,Or),(Au=nm.prototype).Gn=function(){return this.g.ha().f},Au.Hn=function(){return this.j},Au.In=function(t){return t=G(t),this.a[t]},Au.Kn=function(t){this.j=t},Au.setMap=function(t){var e=this.v,o=this.g.ha().f;e&&o.forEach(e.Cj,e),Or.prototype.setMap.call(this,t),this.g.setMap(t),t&&o.forEach(t.xj,t)},Au.Fn=function(t){var e=this.v;e&&e.xj(t.element)},Au.Jn=function(t){var e=this.v;e&&e.Cj(t.element)},e(am,Me);var pm="select";function hm(t){$r.call(this,{handleEvent:um,handleDownEvent:Ui,handleUpEvent:cm}),t=t||{},this.l=t.source||null,this.R=void 0===t.vertex||t.vertex,this.C=void 0===t.edge||t.edge,this.j=t.features||null,this.pa=[],this.B={},this.T={},this.u={},this.I=null,this.g=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.va=function(t,e){return Di(this.I,t.la)-Di(this.I,e.la)}.bind(this),this.a=new lp,this.fa={Point:this.Rn,LineString:this.wi,LinearRing:this.wi,Polygon:this.Sn,MultiPoint:this.Pn,MultiLineString:this.On,MultiPolygon:this.Qn,GeometryCollection:this.Nn,Circle:this.Mn}}function lm(t,e,o,i){var r,n=i.Wa([e[0]-t.g,e[1]+t.g]),s=i.Wa([e[0]+t.g,e[1]-t.g]),n=P([n,s]),a=fp(t.a,n),p=!1,n=!1,h=s=null;return 0<(a=t.R&&!t.C?a.filter(function(t){return"Circle"!==t.feature.V().U()}):a).length&&(t.I=o,a.sort(t.va),r=a[0].la,p="Circle"===a[0].feature.V().U(),t.R&&!t.C?(o=i.Ja(r[0]),p=i.Ja(r[1]),o=Fi(e,o),e=Fi(e,p),(p=(p=Math.sqrt(Math.min(o,e)))<=t.g)&&(n=!0,s=e<o?r[1]:r[0],h=i.Ja(s))):t.C&&(s=p?function(t,e){var o=e.pd();e=(i=e.wa())[0];var i=i[1],r=t[0]-e;t=t[1]-i,r||t||(r=1);var n=Math.sqrt(r*r+t*t);return[e+o*r/n,i+o*t/n]}(o,a[0].feature.V()):ji(o,r),ki(e,h=i.Ja(s))<=t.g&&(n=!0,t.R&&!p&&(o=i.Ja(r[0]),p=i.Ja(r[1]),o=Fi(h,o),e=Fi(h,p),p=(p=Math.sqrt(Math.min(o,e)))<=t.g)))&&(s=e<o?r[1]:r[0],h=i.Ja(s)),n&&(h=[Math.round(h[0]),Math.round(h[1])])),{nq:n,vertex:s,wq:h}}function um(t){var e=lm(this,t.pixel,t.coordinate,t.map);return e.nq&&(t.coordinate=e.vertex.slice(0,2),t.pixel=e.wq),tn.call(this,t)}function cm(){var t=ut(this.u);return t.length&&(t.forEach(this.Dj,this),this.u={}),!1}function fm(t){var e,o;$r.call(this,{handleDownEvent:ym,handleDragEvent:dm,handleMoveEvent:vm,handleUpEvent:gm}),t=t||{},this.a=null,this.j=void 0!==t.features?t.features:null,o=t.layers?"function"==typeof t.layers?t.layers:(e=t.layers,function(t){return d(e,t)}):Ui,this.C=o,this.l=t.hitTolerance||0,this.g=null,de(this,Le("active"),this.u,this)}function ym(t){if(this.g=bm(this,t.pixel,t.map),this.a||!this.g)return!1;this.a=t.coordinate,vm.call(this,t);var e=this.j||new Ne([this.g]);return this.b(new wm("translatestart",e,t.coordinate)),!0}function gm(t){if(this.a){this.a=null,vm.call(this,t);var e=this.j||new Ne([this.g]);return this.b(new wm("translateend",e,t.coordinate)),!0}return!1}function dm(t){var o,i,e;this.a&&(o=(t=t.coordinate)[0]-this.a[0],i=t[1]-this.a[1],(e=this.j||new Ne([this.g])).forEach(function(t){var e=t.V();e.translate(o,i),t.Ra(e)}),this.a=t,this.b(new wm("translating",e,t)))}function vm(t){var e=t.map.a;bm(this,t.pixel,t.map)?(e.classList.remove(this.a?"ol-grab":"ol-grabbing"),e.classList.add(this.a?"ol-grabbing":"ol-grab")):e.classList.remove("ol-grab","ol-grabbing")}function bm(t,e,o){return o.we(e,function(t){if(!this.j||d(this.j.a,t))return t}.bind(t),{layerFilter:t.C,hitTolerance:t.l})}function mm(t,e){var o=t.v;t=t.c(),o&&t||(o=o||e).a.classList.remove("ol-grab","ol-grabbing")}function wm(t,e,o){Me.call(this,t),this.features=e,this.coordinate=o}function xm(t){var e=ht({},t=t||{});delete e.gradient,delete e.radius,delete e.blur,delete e.shadow,delete e.weight,ab.call(this,e),this.j=null,this.R=void 0!==t.shadow?t.shadow:250,this.I=void 0,this.B=null,de(this,Le(Pm),this.Bl,this),this.pj(t.gradient||Sm),this.jj(void 0!==t.blur?t.blur:15),this.Uc(void 0!==t.radius?t.radius:8),de(this,Le(Mm),this.cg,this),de(this,Le(Am),this.cg,this),this.cg();var o=t.weight||"weight",i="string"==typeof o?function(t){return t.get(o)}:o;this.g(function(t){var e=255*(t=void 0!==(t=i(t))?x(t,0,1):1)|0,o=this.B[e];return o||(o=[new Eh({image:new qc({opacity:t,src:this.I})})],this.B[e]=o),o}.bind(this)),this.set(pb,null),de(this,"render",this.Sl,this)}e(hm,$r),(Au=hm.prototype).yb=function(t,e){e=void 0===e||e;var o,i=G(t),r=t.V();!r||(o=this.fa[r.U()])&&(this.T[i]=r.G(V()),o.call(this,t,r)),e&&(this.B[i]=de(t,"change",this.Ln,this))},Au.Ak=function(t){this.yb(t)},Au.Bk=function(t){this.Gb(t)},Au.ui=function(t){var e;t instanceof bb?e=t.feature:t instanceof Oe&&(e=t.element),this.yb(e)},Au.vi=function(t){var e;t instanceof bb?e=t.feature:t instanceof Oe&&(e=t.element),this.Gb(e)},Au.Ln=function(t){var e;t=t.target,this.D?(e=G(t))in this.u||(this.u[e]=t):this.Dj(t)},Au.Gb=function(e,t){t=void 0===t||t;var o=G(e),i=this.T[o];if(i){var r=this.a,n=[];for(yp(r,i,function(t){e===t.feature&&n.push(t)}),i=n.length-1;0<=i;--i)r.remove(n[i])}t&&(me(this.B[o]),delete this.B[o])},Au.setMap=function(t){var e,o=this.v,i=this.pa;this.j?e=this.j:this.l&&(e=this.l.Xe()),o&&(i.forEach(me),i.length=0,e.forEach(this.Bk,this)),$r.prototype.setMap.call(this,t),t&&(this.j?i.push(de(this.j,"add",this.ui,this),de(this.j,"remove",this.vi,this)):this.l&&i.push(de(this.l,"addfeature",this.ui,this),de(this.l,"removefeature",this.vi,this)),e.forEach(this.Ak,this))},Au.Xc=Gi,Au.Dj=function(t){this.Gb(t,!1),this.yb(t,!1)},Au.Mn=function(t,e){for(var o=0,i=(e=Pr(e).X()[0]).length-1;o<i;++o){var r=e.slice(o,o+2),n={feature:t,la:r};this.a.Ca(P(r),n)}},Au.Nn=function(t,e){var o=e.a;for(e=0;e<o.length;++e){var i=this.fa[o[e].U()];i&&i.call(this,t,o[e])}},Au.wi=function(t,e){for(var o=0,i=(e=e.X()).length-1;o<i;++o){var r=e.slice(o,o+2),n={feature:t,la:r};this.a.Ca(P(r),n)}},Au.On=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length-1;n<s;++n){var a=r.slice(n,n+2),p={feature:t,la:a};this.a.Ca(P(a),p)}},Au.Pn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i){var n={feature:t,la:[n=o[i],n]};this.a.Ca(e.G(),n)}},Au.Qn=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length;n<s;++n)for(var a=r[n],p=0,h=a.length-1;p<h;++p){var l=a.slice(p,p+2),u={feature:t,la:l};this.a.Ca(P(l),u)}},Au.Rn=function(t,e){var o=e.X();t={feature:t,la:[o,o]},this.a.Ca(e.G(),t)},Au.Sn=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length-1;n<s;++n){var a=r.slice(n,n+2),p={feature:t,la:a};this.a.Ca(P(a),p)}},e(fm,$r),fm.prototype.B=function(){return this.l},fm.prototype.I=function(t){this.l=t},fm.prototype.setMap=function(t){var e=this.v;$r.prototype.setMap.call(this,t),mm(this,e)},fm.prototype.u=function(){mm(this,null)},e(wm,Me),e(xm,ab);var Sm=["#00f","#0ff","#0f0","#ff0","#f00"];(Au=xm.prototype).uh=function(){return this.get(Mm)},Au.Bh=function(){return this.get(Pm)},Au.yi=function(){return this.get(Am)},Au.Bl=function(){for(var t=this.Bh(),e=Ye(1,256),o=e.createLinearGradient(0,0,1,256),i=1/(t.length-1),r=0,n=t.length;r<n;++r)o.addColorStop(r*i,t[r]);e.fillStyle=o,e.fillRect(0,0,1,256),this.j=e.getImageData(0,0,1,256).data},Au.cg=function(){var t=this.yi(),e=this.uh(),o=t+e+1,i=2*o;(i=Ye(i,i)).shadowOffsetX=i.shadowOffsetY=this.R,i.shadowBlur=e,i.shadowColor="#000",i.beginPath(),e=o-this.R,i.arc(e,e,t,0,2*Math.PI,!0),i.fill(),this.I=i.canvas.toDataURL(),this.B=Array(256),this.s()},Au.Sl=function(t){for(var e,o=(t=t.context).canvas,i=(o=t.getImageData(0,0,o.width,o.height)).data,r=0,n=i.length;r<n;r+=4)(e=4*i[r+3])&&(i[r]=this.j[e],i[r+1]=this.j[1+e],i[r+2]=this.j[2+e]);t.putImageData(o,0,0)},Au.jj=function(t){this.set(Mm,t)},Au.pj=function(t){this.set(Pm,t)},Au.Uc=function(t){this.set(Am,t)};var Mm="blur",Pm="gradient",Am="radius";function Em(t){Zv.call(this,t),this.v=qn(),this.j=null}function Tm(t){Em.call(this,t),this.M=null,this.c=qn()}function jm(t,e,o,i){var r=zt(o,e,t);return o=Ft(e,i,o),void 0!==(e=e.sc())&&(o*=e),void 0!==(e=t.sc())&&(o/=e),t=Ft(t,o,r)/o,isFinite(t)&&0<t&&(o/=t),o}function Cm(t,e,o,i){t=o-t,e=i-e;var r=Math.sqrt(t*t+e*e);return[Math.round(o+t/r),Math.round(i+e/r)]}function Lm(t,e,g,d,o,v,i,r,n,s,a){var b=Ye(Math.round(g*t),Math.round(g*e));if(!n.length)return b.canvas;b.scale(g,g);var m=V();n.forEach(function(t){K(m,t.extent)});var w=Ye(Math.round(g*rt(m)/d),Math.round(g*tt(m)/d)),p=g/d;n.forEach(function(t){w.drawImage(t.image,s,s,t.image.width-2*s,t.image.height-2*s,(t.extent[0]-m[0])*p,-(t.extent[3]-m[3])*p,rt(t.extent)*p,tt(t.extent)*p)});var x=ot(i);return r.c.forEach(function(t){var e=t.source,o=t.target,i=e[1][0],r=e[1][1],n=e[2][0],s=e[2][1];t=(o[0][0]-x[0])/v;var a=-(o[0][1]-x[1])/v,p=(o[1][0]-x[0])/v,h=-(o[1][1]-x[1])/v,l=(o[2][0]-x[0])/v,u=-(o[2][1]-x[1])/v;t:{for(r=(i=[[i=i-(o=e[0][0]),r=r-(e=e[0][1]),0,0,p-t],[n=n-o,s=s-e,0,0,l-t],[0,0,i,r,h-a],[0,0,n,s,u-a]]).length,n=0;n<r;n++){for(var s=n,c=Math.abs(i[n][n]),f=n+1;f<r;f++){var y=Math.abs(i[f][n]);c<y&&(c=y,s=f)}if(!c){i=null;break t}for(c=i[s],i[s]=i[n],i[n]=c,s=n+1;s<r;s++)for(c=-i[s][n]/i[n][n],f=n;f<r+1;f++)i[s][f]=n==f?0:i[s][f]+c*i[n][f]}for(n=Array(r),s=r-1;0<=s;s--)for(n[s]=i[s][r]/i[s][s],c=s-1;0<=c;c--)i[c][r]-=i[c][s]*n[s];i=n}i&&(b.save(),b.beginPath(),r=Cm(n=(t+p+l)/3,s=(a+h+u)/3,t,a),p=Cm(n,s,p,h),l=Cm(n,s,l,u),b.moveTo(p[0],p[1]),b.lineTo(r[0],r[1]),b.lineTo(l[0],l[1]),b.clip(),b.transform(i[0],i[2],i[1],i[3],t,a),b.translate(m[0]-o,m[3]-e),b.scale(d/g,-d/g),b.drawImage(w.canvas,0,0),b.restore())}),a&&(b.save(),b.strokeStyle="black",b.lineWidth=1,r.c.forEach(function(t){t=((n=t.target)[0][0]-x[0])/v;var e=-(n[0][1]-x[1])/v,o=(n[1][0]-x[0])/v,i=-(n[1][1]-x[1])/v,r=(n[2][0]-x[0])/v,n=-(n[2][1]-x[1])/v;b.beginPath(),b.moveTo(o,i),b.lineTo(t,e),b.lineTo(r,n),b.closePath(),b.stroke()}),b.restore()),b.canvas}function Rm(t,e,o,i,r){this.i=t,this.f=e;var n={},s=Vt(this.f,this.i);this.a=function(t){var e=t[0]+"/"+t[1];return n[e]||(n[e]=s(t)),n[e]},this.g=i,this.v=r*r,this.c=[],this.o=!1,this.l=this.i.i&&!!i&&!!this.i.G()&&rt(i)==rt(this.i.G()),this.b=this.i.G()?rt(this.i.G()):null,this.j=this.f.G()?rt(this.f.G()):null,t=ot(o),e=it(o),i=_(o),o=J(o),r=this.a(t);var a,p=this.a(e),h=this.a(i),l=this.a(o);!function t(e,o,i,r,n,s,a,p,h,l){var u=P([s,a,p,h]),c=e.b?rt(u)/e.b:null,f=e.b,y=e.i.i&&.5<c&&c<1,g=!1;{var d;0<l&&(e.f.c&&e.j&&(d=P([o,i,r,n]),g|=.25<rt(d)/e.j),!y&&e.i.c&&c&&(g|=.25<c))}if(g||!e.g||nt(u,e.g)){if(!(g||isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(p[0])&&isFinite(p[1])&&isFinite(h[0])&&isFinite(h[1]))){if(!(0<l))return;g=!0}if(0<l&&(g||(u=e.a([(o[0]+r[0])/2,(o[1]+r[1])/2]),f=y?(L(s[0],f)+L(p[0],f))/2-L(u[0],f):(s[0]+p[0])/2-u[0],u=(s[1]+p[1])/2-u[1],g=f*f+u*u>e.v),g))Math.abs(o[0]-r[0])<=Math.abs(o[1]-r[1])?(y=[(i[0]+r[0])/2,(i[1]+r[1])/2],f=e.a(y),u=[(n[0]+o[0])/2,(n[1]+o[1])/2],c=e.a(u),t(e,o,i,y,u,s,a,f,c,l-1),t(e,u,y,r,n,c,f,p,h,l-1)):(y=[(o[0]+i[0])/2,(o[1]+i[1])/2],f=e.a(y),u=[(r[0]+n[0])/2,(r[1]+n[1])/2],c=e.a(u),t(e,o,y,u,n,s,f,c,h,l-1),t(e,y,i,r,u,f,a,p,c,l-1));else{if(y){if(!e.l)return;e.o=!0}e.c.push({source:[s,p,h],target:[o,r,n]}),e.c.push({source:[s,a,p],target:[o,i,r]})}}}(this,t,e,i,o,r,p,h,l,10),this.o&&(a=1/0,this.c.forEach(function(t){a=Math.min(a,t.source[0][0],t.source[1][0],t.source[2][0])}),this.c.forEach(function(t){var e;Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-a>this.b/2&&((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]]])[0][0]-a>this.b/2&&(e[0][0]-=this.b),e[1][0]-a>this.b/2&&(e[1][0]-=this.b),e[2][0]-a>this.b/2&&(e[2][0]-=this.b),Math.max(e[0][0],e[1][0],e[2][0])-Math.min(e[0][0],e[1][0],e[2][0])<this.b/2&&(t.source=e))},this)),n={}}function Im(t){var e=V();return t.c.forEach(function(t){t=t.source,z(e,t[0]),z(e,t[1]),z(e,t[2])}),e}function Nm(t,e,o,i,r,n){this.v=e,this.l=t.G();var s=(a=e.G())?et(o,a):o,a=jm(t,e,$(s),i);this.j=new Rm(t,e,s,this.l,.5*a),this.c=i,this.i=o,t=Im(this.j),this.o=(this.Hb=n(t,a,r))?this.Hb.a:1,this.ee=this.g=null,r=2,n=[],this.Hb&&(r=0,n=this.Hb.f),Jd.call(this,o,i,this.o,r,n)}function Fm(t){lb.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,state:t.state}),this.C=void 0!==t.resolutions?t.resolutions:null,this.a=null,this.fa=0}function km(t,e){return e=t.C?t.C[v(t.C,e,0)]:e}function Dm(t,e){t.Y().src=e}function Om(t,e){Me.call(this,t),this.image=e}e(Em,Zv),Em.prototype.S=function(t,e,o){zv(this,"precompose",o,t,void 0);var i,r,n,s=this.Y();s&&((i=void 0!==(r=e.extent)&&!N(r,t.extent)&&nt(r,t.extent))&&Kv(o,t,r),r=this.C(),n=o.globalAlpha,o.globalAlpha=e.opacity,o.drawImage(s,0,0,+s.width,+s.height,Math.round(r[4]),Math.round(r[5]),Math.round(s.width*r[0]),Math.round(s.height*r[3])),o.globalAlpha=n,i&&o.restore()),this.ef(o,t,e)},Em.prototype.Ea=function(t,e,o,i,r){var n=this.a;return n.ha().Ea(t,e.viewState.resolution,e.viewState.rotation,o,e.skippedFeatureUids,function(t){return i.call(r,t,n)})},Em.prototype.u=function(t,e,o,i){if(this.Y()){if(this.a.ha().Ea!==w)return Zv.prototype.u.apply(this,arguments);var r=ts(this.v,t.slice());return Ni(r,e.viewState.resolution/this.f),this.j||(this.j=Ye(1,1)),this.j.clearRect(0,0,1,1),this.j.drawImage(this.Y(),r[0],r[1],1,1,0,0,1,1),0<(r=this.j.getImageData(0,0,1,1).data)[3]?o.call(i,this.a,r):void 0}},e(Tm,Em),Tm.prototype.Y=function(){return this.M?this.M.Y():null},Tm.prototype.C=function(){return this.c},Tm.prototype.sd=function(t,e){var o,i=t.pixelRatio,r=t.size,n=t.viewState,s=n.center,a=n.resolution,p=this.a.ha(),h=t.viewHints,l=t.extent;return void 0!==e.extent&&(l=et(l,e.extent)),h[0]||h[1]||st(l)||(e=p.Y(l,a,i,n.projection))&&Ov(this,e)&&(this.M=e),this.M&&(h=(e=this.M).G(),o=i*(l=e.resolution)/(a*(n=e.a)),h=rs(this.c,i*r[0]/2,i*r[1]/2,o,o,0,n*(h[0]-s[0])/l,n*(s[1]-h[3])/l),rs(this.v,i*r[0]/2-h[4],i*r[1]/2-h[5],i/a,-i/a,0,-s[0],-s[1]),Bv(t.attributions,e.f),Xv(t,p),this.f=a*i/n),!!this.M},e(Nm,Jd),Nm.prototype.ka=function(){1==this.state&&(me(this.ee),this.ee=null),Jd.prototype.ka.call(this)},Nm.prototype.Y=function(){return this.g},Nm.prototype.de=function(){var t=this.Hb.getState();2==t&&(this.g=Lm(rt(this.i)/this.c,tt(this.i)/this.c,this.o,this.Hb.resolution,0,this.c,this.i,this.j,[{extent:this.Hb.G(),image:this.Hb.Y()}],0)),this.state=t,this.s()},Nm.prototype.load=function(){var t;0==this.state&&(this.state=1,this.s(),2==(t=this.Hb.getState())||3==t?this.de():(this.ee=de(this.Hb,"change",function(){var t=this.Hb.getState();2!=t&&3!=t||(me(this.ee),this.ee=null,this.de())},this),this.Hb.load()))},e(Fm,lb),Fm.prototype.Y=function(t,e,o,i){var r=this.c;if(r&&i&&!Xt(r,i)){if(this.a){if(this.fa==this.i&&Xt(this.a.v,i)&&this.a.resolution==e&&this.a.a==o&&Z(this.a.G(),t))return this.a;Se(this.a),this.a=null}return this.a=new Nm(r,i,t,e,o,function(t,e,o){return this.Jc(t,e,o,r)}.bind(this)),this.fa=this.i,this.a}return r&&(i=r),this.Jc(t,e,o,i)},Fm.prototype.o=function(t){switch((t=t.target).getState()){case 1:this.b(new Om(Um,t));break;case 2:this.b(new Om(Gm,t));break;case 3:this.b(new Om(Bm,t))}},e(Om,Me);var Um="imageloadstart",Gm="imageloadend",Bm="imageloaderror";function Xm(t){Fm.call(this,{attributions:t.attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions,state:t.state}),this.pa=t.canvasFunction,this.R=null,this.T=0,this.va=void 0!==t.ratio?t.ratio:1.5}function Vm(t){this.f=t.source,this.$a=qn(),this.g=Ye(),this.l=[0,0],this.Sa=null==t.renderBuffer?100:t.renderBuffer,this.B=null,Xm.call(this,{attributions:t.attributions,canvasFunction:this.tk.bind(this),logo:t.logo,projection:t.projection,ratio:t.ratio,resolutions:t.resolutions,state:this.f.getState()}),this.I=null,this.v=void 0,this.Ii(t.style),de(this.f,"change",this.ro,this)}function Wm(t,e){rb.call(this,t,e),this.o=this.f=this.M=null}function Zm(t){Zn.call(this,t||{})}function Km(t){Em.call(this,t),this.c=null===this.c?null:Ye(),this.o=null,this.g=[],this.l=V(),this.va=new B(0,0,0,0),this.B=qn(),this.T=0}function zm(t,e){return e=e.getState(),t=t.a.kd(),2==e||4==e||3==e&&!t}function Ym(){this.b="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor=texture2D(e,a);}"}e(Xm,Fm),Xm.prototype.Jc=function(t,e,o,i){e=km(this,e);var r=this.R;return r&&this.T==this.i&&r.resolution==e&&r.a==o&&N(r.G(),t)||(at(t=t.slice(),this.va),(i=this.pa(t,e,o,[rt(t)/e*o,tt(t)/e*o],i))&&(r=new $d(t,e,o,this.j,i)),this.R=r,this.T=this.i),r},e(Vm,Xm),(Au=Vm.prototype).tk=function(t,n,s,e,o){var a=new Lv(.5*n/s,t,n,this.f.T,this.Sa);this.f.Yd(t,n,o);var i,r,p=!1;return this.f.$b(t,function(t){var e;if(!(i=p))if((i=t.Lc())?e=i.call(t,n):this.v&&(e=this.v(t,n)),e){for(var o=!1,i=0,r=(e=!Array.isArray(e)?[e]:e).length;i<r;++i)o=Jv(a,t,e[i],qv(n,s),this.qo,this)||o;i=o}else i=!1;p=i},this),Nv(a),p?null:(this.l[0]!=e[0]||this.l[1]!=e[1]?(this.g.canvas.width=e[0],this.g.canvas.height=e[1],this.l[0]=e[0],this.l[1]=e[1]):this.g.clearRect(0,0,e[0],e[1]),i=this,r=$(t),o=e,e=s/(e=n),t=rs(i.$a,o[0]/2,o[1]/2,e,-e,0,-r[0],-r[1]),a.La(this.g,s,t,0,{}),this.B=a,this.g.canvas)},Au.Ea=function(t,e,o,i,r,n){if(this.B){var s={};return this.B.Ea(t,e,0,i,r,function(t){var e=G(t).toString();if(!(e in s))return s[e]=!0,n(t)})}},Au.no=function(){return this.f},Au.oo=function(){return this.I},Au.po=function(){return this.v},Au.qo=function(){this.s()},Au.ro=function(){cb(this,this.f.getState())},Au.Ii=function(t){this.I=void 0!==t?t:Ch,this.v=t?Th(this.I):void 0,this.s()},e(Wm,rb),Wm.prototype.Ea=function(t,e,o,i,r){var n=this.a;return n.ha().Ea(t,e.viewState.resolution,e.viewState.rotation,o,e.skippedFeatureUids,function(t){return i.call(r,t,n)})},Wm.prototype.ng=function(t,e){var o,i,r=this.c.i,n=t.pixelRatio,s=t.viewState,a=s.center,p=s.resolution,h=s.rotation,l=this.M,u=this.Ib,c=this.a.ha(),f=t.viewHints,y=t.extent;return void 0!==e.extent&&(y=et(y,e.extent)),f[0]||f[1]||st(y)||(e=c.Y(y,p,n,s.projection))&&Ov(this,e)&&(o=this,i=(i=l=e).Y(),u=ha(o.c.i,i),this.Ib&&t.postRenderFunctions.push(function(t,e){t.isContextLost()||t.deleteTexture(e)}.bind(null,r,this.Ib))),l&&(r=this.c.f.j,s=this,e=r.width,o=r.height,i=n,r=a,a=p,p=h,h=l.G(),e*=a,o*=a,Jn(s=s.S),os(s,2*i/e,2*i/o),es(s,-p),is(s,h[0]-r[0],h[1]-r[1]),os(s,(h[2]-h[0])/2,(h[3]-h[1])/2),is(s,1,1),this.o=null,Jn(n=this.v),os(n,1,-1),is(n,0,-1),this.M=l,this.Ib=u,Bv(t.attributions,l.f),Xv(t,c)),!!l},Wm.prototype.Ue=function(t,e){return void 0!==this.Ea(t,e,0,Ui,this)},Wm.prototype.lg=function(t,e,o,i){if(this.M&&this.M.Y())if(this.a.ha()instanceof Vm){var r=ts(e.pixelToCoordinateTransform,t.slice());if(this.Ea(r,e,0,Ui,this))return o.call(i,this.a,null)}else{var n,s,r=[this.M.Y().width,this.M.Y().height];if(this.o||(n=e.size,is(e=qn(),-1,-1),os(e,2/n[0],2/n[1]),is(e,0,n[1]),os(e,1,-1),n=ns(this.S.slice()),is(s=qn(),0,r[1]),os(s,1,-1),os(s,r[0]/2,r[1]/2),is(s,1,1),_n(s,n),_n(s,e),this.o=s),!((t=ts(this.o,t.slice()))[0]<0||t[0]>r[0]||t[1]<0||t[1]>r[1])&&(this.f||(this.f=Ye(1,1)),this.f.clearRect(0,0,1,1),this.f.drawImage(this.M.Y(),t[0],t[1],1,1,0,0,1,1),0<(r=this.f.getImageData(0,0,1,1).data)[3]))return o.call(i,this.a,r)}},e(Zm,Zn),Zm.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new Tm(this):"webgl"===o&&(e=new Wm(t,this)),e},e(Km,Em),Km.prototype.sd=function(t,e){var o=t.pixelRatio,i=t.size,r=(s=t.viewState).projection,n=s.resolution,s=s.center,a=this.a,p=a.ha(),h=p.i,l=p.Ta(r),u=l.tc(n,this.T),c=l.Da(u),f=Math.round(n/c)||1,y=t.extent;if(st(y=void 0!==e.extent?et(y,e.extent):y))return!1;var g=te(l,y,c),d=l.Pc(u),v=l.Da(u),b=X(l.gb(u),l.j),d=F(d[0]+g.ca*b[0]*v,d[1]+g.da*b[1]*v,d[0]+(g.$+1)*b[0]*v,d[1]+(g.ia+1)*b[1]*v,void 0),v=p.nb(o);(b={})[u]={};var m=this.Nf(p,r,b),w=this.l,x=this.va,S=!1;for(C=g.ca;C<=g.$;++C)for(L=g.da;L<=g.ia;++L){var M=p.Nc(u,C,L,o,r);3!=M.getState()||this.a.kd()||ev(M,2),zm(this,M)||(M=tv(M)),zm(this,M)?2==M.getState()&&(b[u][M.ta.toString()]=M,S||-1!=this.g.indexOf(M)||(S=!0)):$t(l,M.ta,m,x,w)||(M=Qt(l,M.ta,x,w))&&m(u+1,M)}if(C=(C=t.viewHints)[0]||C[1],!(this.f&&16<Date.now()-t.time&&C||!S&&this.o&&N(this.o,y)&&this.mf==h&&f==this.R&&(C||c*o/v*f==this.f))){(C=this.c)&&(L=p.Xd(u,o,r),M=Math.round((g.$-g.ca+1)*L[0]/f),L=Math.round((g.ia-g.da+1)*L[1]/f),(S=C.canvas).width!=M||S.height!=L?(this.R=f,S.width=M,S.height=L):(C.clearRect(0,0,M,L),f=this.R)),this.g.length=0,(S=Object.keys(b).map(Number)).sort(D);for(var x=0,P=S.length;x<P;++x){C=S[x];var A,m=p.Xd(C,o,r),E=(M=l.Da(C))/c,T=v*p.Wf(r),j=b[C];for(A in j){var M=j[A],C=((L=l.Aa(M.ta,w))[0]-d[0])/c*v/f,L=(d[3]-L[3])/c*v/f,R=m[0]*E/f,I=m[1]*E/f;this.Of(M,t,e,C,L,R,I,T),this.g.push(M)}}this.mf=h,this.f=c*o/v*f,this.o=d}return e=this.f/n,e=rs(this.B,o*i[0]/2,o*i[1]/2,e,e,0,(this.o[0]-s[0])/this.f*o,(s[1]-this.o[3])/this.f*o),rs(this.v,o*i[0]/2-e[4],o*i[1]/2-e[5],o/n,-o/n,0,-s[0],-s[1]),Vv(t.usedTiles,p,u,g),Wv(t,p,l,o,r,y,u,a.Ud()),Gv(t,p),Xv(t,p),0<this.g.length},Km.prototype.Of=function(t,e,o,i,r,n,s,a){this.a.ha().Zf(e.viewState.projection)||this.c.clearRect(i,r,n,s),(t=t.Y())&&this.c.drawImage(t,a,a,t.width-2*a,t.height-2*a,i,r,n,s)},Km.prototype.Y=function(){var t=this.c;return t?t.canvas:null},Km.prototype.C=function(){return this.B},e(Ym,Ls);var Hm=new Ym;function qm(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform vec4 d;void main(void){gl_Position=vec4(b*d.xy+d.zw,0.,1.);a=c;}"}e(qm,Rs);var Jm=new qm;function _m(t,e){this.i=t.getUniformLocation(e,"e"),this.c=t.getUniformLocation(e,"d"),this.b=t.getAttribLocation(e,"b"),this.a=t.getAttribLocation(e,"c")}function $m(t,e){rb.call(this,t,e),this.I=Hm,this.fa=Jm,this.f=null,this.B=new zs([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),this.D=this.o=null,this.l=-1,this.R=[0,0]}function Qm(t){var e=ht({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,Zn.call(this,e),this.zi(void 0!==t.preload?t.preload:0),this.Ai(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}function tw(t){this.c=null,Km.call(this,t),this.I=!1,this.D=qn(),this.T="vector"==t.j?1:0}e($m,rb),(Au=$m.prototype).ka=function(){ia(this.c.f,this.B),rb.prototype.ka.call(this)},Au.Nf=function(e,i,r){var n=this.c;return function(o,t){return fw(e,i,o,t,function(t){var e=n.a.b.hasOwnProperty(t.bb());return e&&(r[o]||(r[o]={}),r[o][t.ta.toString()]=t),e})}},Au.mg=function(){rb.prototype.mg.call(this),this.f=null},Au.ng=function(t,e,o){var i,r,n,s,a,p=this.c,h=o.b,l=t.viewState,u=l.projection,c=this.a,f=c.ha(),y=f.Ta(u),g=y.tc(l.resolution),d=y.Da(g),v=f.Xd(g,t.pixelRatio,u),b=v[0]/X(y.gb(g),this.R)[0],m=d/b,w=f.nb(b)*f.Wf(u),x=l.center,S=t.extent,M=te(y,S,d);if(this.o&&(s=this.o,a=M,s.ca==a.ca&&s.da==a.da&&s.$==a.$&&s.ia==a.ia)&&this.l==f.i)m=this.D;else{var P=[M.$-M.ca+1,M.ia-M.da+1],P=m*(C=(O(0<(n=Math.max(P[0]*v[0],P[1]*v[1])),29),Math.pow(2,Math.ceil(Math.log(n)/Math.LN2)))),A=y.Pc(g),m=[L=A[0]+M.ca*v[0]*m,m=A[1]+M.da*v[1]*m,L+P,m+P];i=t,r=C,a=(s=this).c.i,void 0===s.j||s.j!=r?(i.postRenderFunctions.push(function(t,e,o){t.isContextLost()||(t.deleteFramebuffer(e),t.deleteTexture(o))}.bind(null,a,s.g,s.Ib)),i=pa(a,r,r),n=a.createFramebuffer(),a.bindFramebuffer(36160,n),a.framebufferTexture2D(36160,36064,3553,i,0),s.Ib=i,s.g=n,s.j=r):a.bindFramebuffer(36160,s.g),h.viewport(0,0,C,C),h.clearColor(0,0,0,0),h.clear(16384),h.disable(3042),C=sa(o,this.I,this.fa),o.Qc(C),this.f||(this.f=new _m(h,C)),oa(o,34962,this.B),h.enableVertexAttribArray(this.f.b),h.vertexAttribPointer(this.f.b,2,5126,!1,16,0),h.enableVertexAttribArray(this.f.a),h.vertexAttribPointer(this.f.a,2,5126,!1,16,8),h.uniform1i(this.f.i,0),(o={})[g]={};for(var E,T=this.Nf(f,u,o),j=c.kd(),C=!0,L=V(),R=new B(0,0,0,0),I=M.ca;I<=M.$;++I)for(E=M.da;E<=M.ia;++E){if(A=f.Nc(g,I,E,b,u),void 0!==e.extent){var N=y.Aa(A.ta,L);if(!nt(N,e.extent))continue}if(2==(N=(A=!(N=2==(N=A.getState())||4==N||3==N&&!j)?tv(A):A).getState())){if(p.a.b.hasOwnProperty(A.bb())){o[g][A.ta.toString()]=A;continue}}else if(4==N||3==N&&!j)continue;C=!1,(N=$t(y,A.ta,T,R,L))||(A=Qt(y,A.ta,R,L))&&T(g+1,A)}(e=Object.keys(o).map(Number)).sort(D);for(var F,T=new Float32Array(4),j=0,R=e.length;j<R;++j)for(F in I=o[e[j]])A=I[F],N=y.Aa(A.ta,L),T[0]=2*(N[2]-N[0])/P,T[1]=2*(N[3]-N[1])/P,T[2]=2*(N[0]-m[0])/P-1,T[3]=2*(N[1]-m[1])/P-1,h.uniform4fv(this.f.c,T),Gp(p,A,v,w*b),h.drawArrays(5,0,4);C?(this.o=M,this.D=m,this.l=f.i):(this.D=this.o=null,this.l=-1,t.animate=!0)}Vv(t.usedTiles,f,g,M);var k=p.j;return Wv(t,f,y,b,u,S,g,c.Ud(),function(t){2!=t.getState()||p.a.b.hasOwnProperty(t.bb())||t.bb()in k.a||k.f([t,oe(y,t.ta),y.Da(t.ta[0]),v,w*b])},this),Gv(t,f),Xv(t,f),Jn(h=this.v),is(h,(Math.round(x[0]/d)*d-m[0])/(m[2]-m[0]),(Math.round(x[1]/d)*d-m[1])/(m[3]-m[1])),l.rotation&&es(h,l.rotation),os(h,t.size[0]*l.resolution/(m[2]-m[0]),t.size[1]*l.resolution/(m[3]-m[1])),is(h,-.5,-.5),!0},Au.lg=function(t,e,o,i){if(this.g){t=[(t=ts(this.v,[t[0]/e.size[0],(e.size[1]-t[1])/e.size[1]].slice()))[0]*this.j,t[1]*this.j],(e=this.c.f.b).bindFramebuffer(e.FRAMEBUFFER,this.g);var r=new Uint8Array(4);if(e.readPixels(t[0],t[1],1,1,e.RGBA,e.UNSIGNED_BYTE,r),0<r[3])return o.call(i,this.a,r)}},e(Qm,Zn),(Au=Qm.prototype).Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new Km(this):"webgl"===o&&(e=new $m(t,this)),e},Au.Ud=function(){return this.get("preload")},Au.zi=function(t){this.set("preload",t)},Au.kd=function(){return this.get("useInterimTilesOnError")},Au.Ai=function(t){this.set("useInterimTilesOnError",t)},e(tw,Km);var ew={image:Ts,hybrid:["Polygon","LineString"]},ow={hybrid:["Image","Text"],vector:Ts};function iw(t){var e=ht({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,ab.call(this,e),this.Bi(t.preload||0),this.Ci(t.useInterimTilesOnError||!0),O(null==t.renderMode||"image"==t.renderMode||"hybrid"==t.renderMode||"vector"==t.renderMode,28),this.j=t.renderMode||"hybrid"}function rw(t,e,o,i){function r(){delete window[s],n.parentNode.removeChild(n)}var n=document.createElement("script"),s="olc_"+G(e);n.async=!0,n.src=t+(-1==t.indexOf("?")?"?":"&")+(i||"callback")+"="+s;var a=setTimeout(function(){r(),o&&o()},1e4);window[s]=function(t){clearTimeout(a),r(),e(t)},document.getElementsByTagName("head")[0].appendChild(n)}function nw(t,e,o,i,r,n,s,a,p,h,l){if(Qd.call(this,r,0),this.D=void 0!==l&&l,this.S=s,this.u=a,this.v=null,this.c=e,this.j=i,this.o=n||r,this.a=[],this.yd=null,this.g=0,n=i.Aa(this.o),a=this.j.G(),r=this.c.G(),q(n=a?et(n,a):n))if((a=t.G())&&(r=r?et(r,a):a),i=jm(t,o,$(n),i.Da(this.o[0])),!isFinite(i)||i<=0)this.state=4;else if(this.l=new Rm(t,o,n,r,i*(void 0!==h?h:.5)),this.l.c.length)if(this.g=e.tc(i),o=Im(this.l),r&&(t.i?(o[1]=x(o[1],r[1],r[3]),o[3]=x(o[3],r[1],r[3])):o=et(o,r)),q(o)){for(e=(t=ee(e,o,this.g)).ca;e<=t.$;e++)for(o=t.da;o<=t.ia;o++)(h=p(this.g,e,o,s))&&this.a.push(h);this.a.length||(this.state=4)}else this.state=4;else this.state=4;else this.state=4}function sw(t,e){for(var o=t.length,i=Array(o),r=0;r<o;++r)i[r]=function(t,o){var i=/\{z\}/g,r=/\{x\}/g,n=/\{y\}/g,s=/\{-y\}/g;return function(e){if(e)return t.replace(i,e[0].toString()).replace(r,e[1].toString()).replace(n,function(){return(-e[2]-1).toString()}).replace(s,function(){var t=o.a?o.a[e[0]]:null;return O(t,55),(t.ia-t.da+1+e[2]).toString()})}}(t[r],e);return aw(i)}function aw(i){return 1===i.length?i[0]:function(t,e,o){if(t)return i[L((t[1]<<t[0])+t[2],i.length)](t,e,o)}}function pw(){}function hw(t){var e=[],o=/\{([a-z])-([a-z])\}/.exec(t);if(o){for(var i=o[2].charCodeAt(0),r=o[1].charCodeAt(0);r<=i;++r)e.push(t.replace(o[0],String.fromCharCode(r)));return e}if(o=/\{(\d+)-(\d+)\}/.exec(t)){for(i=parseInt(o[2],10),r=parseInt(o[1],10);r<=i;r++)e.push(t.replace(o[0],r.toString()));return e}return e.push(t),e}function lw(t){Op.call(this),this.highWaterMark=void 0!==t?t:2048}function uw(t){return t.c>t.highWaterMark}function cw(t){lb.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,state:t.state,wrapX:t.wrapX}),this.va=void 0!==t.opaque&&t.opaque,this.$a=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null,this.a=new lw(t.cacheSize),this.o=[0,0],this.uc=""}function fw(t,e,o,i,r){if(!(e=t.Wd(e)))return!1;for(var n,s,a=!0,p=i.ca;p<=i.$;++p)for(var h=i.da;h<=i.ia;++h)n=t.Sb(o,p,h),s=!1,e.b.hasOwnProperty(n)&&((s=2===(n=e.get(n)).getState())&&(s=!1!==r(n))),s||(a=!1);return a}function yw(t,e){t.uc!==e&&(t.uc=e,t.s())}function gw(t,e,o){var i,r,n=void 0!==o?o:t.c;return o=t.Ta(n),t.u&&n.c&&(e=(i=e)[0],t=oe(o,i),e=T(n=pe(n),t)?i:(i=rt(n),t[0]+=i*Math.ceil((n[0]-t[0])/i),o.bg(t,e))),i=e[0],n=e[1],t=e[2],(o=!(o.minZoom>i||i>o.maxZoom)&&(!(o=(r=o.G())?ee(o,r,i):o.a?o.a[i]:null)||p(o,n,t)))?e:null}function dw(t,e){Me.call(this,t),this.tile=e}function vw(t){cw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,extent:t.extent,logo:t.logo,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX}),this.tileLoadFunction=t.tileLoadFunction,this.tileUrlFunction=this.Fc?this.Fc.bind(this):pw,this.urls=null,t.urls?this.eb(t.urls):t.url&&this.jb(t.url),t.tileUrlFunction&&this.cb(t.tileUrlFunction)}function bw(t){vw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,extent:t.extent,logo:t.logo,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction||xw,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX}),this.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,this.tileClass=t.tileClass||ov,this.g={},this.v={},this.Sa=t.reprojectionErrorThreshold,this.I=!1}function mw(t,e,o,i,r,n,s){return r=(o=gw(t,e=[e,o,i],n))?t.tileUrlFunction(o,r,n):void 0,(r=new t.tileClass(e,void 0!==r?0:4,void 0!==r?r:"",t.crossOrigin,t.tileLoadFunction)).key=s,de(r,"change",t.Li,t),r}function ww(t,e,o,i,r,n){var s=t.Sb(e,o,i),a=t.uc;if(t.a.b.hasOwnProperty(s)){if((h=t.a.get(s)).key!=a){var p=h,h=mw(t,e,o,i,r,n,a);if(0==p.getState()?h.i=p.i:h.i=p,h.i){e=h.i,o=h;do{if(2==e.getState()){e.i=null;break}}while(1!=e.getState()&&0==e.getState()?o.i=e.i:o=e,e=o.i)}t.a.replace(s,h)}}else h=mw(t,e,o,i,r,n,a),t.a.set(s,h);return h}function xw(t,e){t.Y().src=e}function Sw(t){this.B=void 0!==t.hidpi&&t.hidpi,bw.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",opaque:!0,projection:Bt("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,tilePixelRatio:this.B?2:1,wrapX:void 0===t.wrapX||t.wrapX}),this.R=void 0!==t.culture?t.culture:"en-us",this.C=void 0!==t.maxZoom?t.maxZoom:-1,this.f=t.key,this.l=t.imagerySet,rw("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.l+"?uriScheme=https&include=ImageryProviders&key="+this.f,this.pa.bind(this),void 0,"jsonp")}(Au=tw.prototype).sd=function(t,e){var o=this.a,i=o.i;return this.pa!=i&&(this.g.length=0,o=o.j,this.c||"vector"==o||(this.c=Ye()),this.c&&"vector"==o&&(this.c=null)),this.pa=i,Km.prototype.sd.apply(this,arguments)},Au.Of=function(t,e,o,i,r,n,s,a){var p=t,h=this.a,l=e.pixelRatio,u=e.viewState.projection,c=h.i,f=h.get(pb)||null,y=p.o;if(y.Nd||y.mf!=c||y.Kg!=f){for(var g=0,d=p.a.length;g<d;++g){var v=p.c[p.a[g]];v.S=null,y.Nd=!1;var b,m,w=h.ha(),x=w.tileGrid,S=v.ta,M=v.a,P=(E=w.Ta(u)).Da(p.ta[0]),A=x.Da(v.ta[0]),E=et(E=E.Aa(p.v),S=x.Aa(S));for("tile-pixels"==M.a?(b=x=w.nb(),A=ts(A=rs(this.D,0,0,1/A*b,-1/A*b,0,-S[0],-S[3]),[E[0],E[3]]).concat(ts(A,[E[2],E[1]]))):(x=P,A=E,Xt(u,M)||(m=!0,v.ig(u))),y.Nd=!1,w=new Lv(0,A,x,w.l,h.c),A=qv(x,l),x=v.g,f&&f!==y.Kg&&x.sort(f),S=0,E=x.length;S<E;++S){b=x[S],m&&b.V().tb(M,u);var T=void 0;if((j=b.Lc())?T=j.call(b,P):(j=h.f)&&(T=j(b,P)),T){var j=A,C=w;if(T=!Array.isArray(T)?[T]:T){var L=!1;if(Array.isArray(T))for(var R=0,I=T.length;R<I;++R)L=Jv(C,b,T[R],j,this.Fi,this)||L;else L=Jv(C,b,T,j,this.Fi,this)||L;b=L}else b=!1;this.I=this.I||b,y.Nd=y.Nd||b}}Nv(w),v.c[p.ta.toString()]=w}y.mf=c,y.Kg=f}if(this.c){if(g=e,u=this.a,l=p.o,c=u.i,(h=ew[u.j])&&l.Lg!==c)for(l.Lg=c,v=(d=p.v)[0],l=g.pixelRatio,u=(P=u.ha()).tileGrid,c=(M=P.Ta(g.viewState.projection)).Da(v),f=P.nb(),p.j||(p.j=Ye()),y=p.j,g=P.Xd(v,l,g.viewState.projection),y.canvas.width=g[0],y.canvas.height=g[1],g=M.Aa(d),d=0,v=p.a.length;d<v;++d)w=(M=p.c[p.a[d]]).ta,m=l/c,P=Jn(this.D),"tile-pixels"==M.a.a?(m=u.Aa(w,this.l),os(P,A=l/f*(w=u.Da(w[0]))/c,A),is(P,Math.round((m[0]-g[0])/w*f),Math.round((g[3]-m[3])/w*f))):(os(P,m,-m),is(P,-g[0],-g[3])),M.c[p.ta.toString()].La(y,l,P,0,{},h);Km.prototype.Of.apply(this,arguments)}},Au.Ea=function(t,e,o,i,r){var n=e.viewState.resolution,s=e.viewState.rotation;o=null==o?0:o;var a=this.a,p={},h=this.g,l=a.ha();e=l.Ta(e.viewState.projection);for(var u=l.tileGrid,c=0,f=h.length;c<f;++c){var y=h[c],g=y.ta,d=A(g=e.Aa(g,this.l),o*n,d);if(T(d,t))for(var g=0,v=y.a.length;g<v;++g)var b,m="tile-pixels"===(w=y.c[y.a[g]]).a.a?(b=w.ta,m=ot(n=u.Aa(b,this.l)),n=l.nb(),b=u.Da(b[0])/n,[(t[0]-m[0])/b,(m[1]-t[1])/b]):t,w=w.c[y.ta],x=x||w.Ea(m,n,s,o,{},function(t){var e=G(t).toString();if(!(e in p))return p[e]=!0,i.call(r,t,a)})}return x},Au.Fi=function(){Uv(this)},Au.ef=function(t,e,o){var i=(l=this.a).ha(),r=ow[l.j];if(r)for(var n=e.pixelRatio,s=e.viewState.rotation,a=e.size,p=Math.round(n*a[0]/2),a=Math.round(n*a[1]/2),h=this.g,l=l.ha().nb(),u=i.tileGrid,i=i.Ta(e.viewState.projection),c=[],f=[],y=h.length-1;0<=y;--y){var g=h[y];if(5!=g.getState())for(var d=g.ta,v=i.Aa(d)[0]-i.Aa(g.v)[0],b=0,m=g.a.length;b<m;++b){var w,x,S,M,P,A=g.c[g.a[b]],E=A.ta[0],T=u.Da(E),j=A,C=e;for(is(C="tile-pixels"==j.a.a?(M=(w=this.a.ha()).tileGrid,P=j.ta,w=M.Da(P[0])/w.nb(),j=C.viewState,x=C.pixelRatio,S=j.resolution/x,P=M.Aa(P,this.l),M=j.center,P=ot(P),C=C.size,rs(this.D,Math.round(x*C[0]/2),Math.round(x*C[1]/2),w/S,w/S,j.rotation,(P[0]-M[0])/w,(M[1]-P[1])/w)):Yv(this,C,0),v*l/T,0),T=Fv(A=A.c[d.toString()],C),t.save(),t.globalAlpha=o.opacity,ds(t,-s,p,a),w=0,j=c.length;w<j;++w)x=c[w],E<f[w]&&(t.beginPath(),t.moveTo(T[0],T[1]),t.lineTo(T[2],T[3]),t.lineTo(T[4],T[5]),t.lineTo(T[6],T[7]),t.moveTo(x[6],x[7]),t.lineTo(x[4],x[5]),t.lineTo(x[2],x[3]),t.lineTo(x[0],x[1]),t.clip());A.La(t,n,C,s,{},r),t.restore(),c.push(T),f.push(E)}}Km.prototype.ef.apply(this,arguments)},e(iw,ab),(Au=iw.prototype).Fd=function(t){var e=null;return e="canvas"===t.U()?new tw(this):e},Au.Ud=function(){return this.get("preload")},Au.kd=function(){return this.get("useInterimTilesOnError")},Au.Bi=function(t){this.set("preload",t)},Au.Ci=function(t){this.set("useInterimTilesOnError",t)},e(nw,Qd),nw.prototype.ka=function(){1==this.state&&(this.yd.forEach(me),this.yd=null),Qd.prototype.ka.call(this)},nw.prototype.Y=function(){return this.v},nw.prototype.de=function(){var t,e,o,i,r,n=[];this.a.forEach(function(t){t&&2==t.getState()&&n.push({extent:this.c.Aa(t.ta),image:t.Y()})},this),this.a.length=0,n.length?(o=this.o[0],t="number"==typeof(e=this.j.gb(o))?e:e[0],e="number"==typeof e?e:e[1],o=this.j.Da(o),i=this.c.Da(this.g),r=this.j.Aa(this.o),this.v=Lm(t,e,this.S,i,this.c.G(),o,r,this.l,n,this.u,this.D),this.state=2):this.state=3,this.s()},nw.prototype.load=function(){var i;0==this.state&&(this.state=1,this.s(),i=0,this.yd=[],this.a.forEach(function(e){var o,t=e.getState();0!=t&&1!=t||(i++,o=de(e,"change",function(){var t=e.getState();2!=t&&3!=t&&4!=t||(me(o),--i||(this.yd.forEach(me),this.yd=null,this.de()))},this),this.yd.push(o))},this),this.a.forEach(function(t){0==t.getState()&&t.load()}),i||setTimeout(this.de.bind(this),0))},e(lw,Op),lw.prototype.fd=function(t){for(var e,o,i;uw(this);){if((e=(i=(o=this.a.Yc).ta[0].toString())in t)&&(o=o.ta,e=p(t[i],o[1],o[2])),e)break;Se(this.pop())}},e(cw,lb),(Au=cw.prototype).Ki=function(){return uw(this.a)},Au.fd=function(t,e){(t=this.Wd(t))&&t.fd(e)},Au.Wf=function(){return 0},Au.Sb=function(t,e,o){return t+"/"+e+"/"+o},Au.Zf=function(){return this.va},Au.ab=function(){return this.tileGrid},Au.Ta=function(t){return this.tileGrid||re(t)},Au.Wd=function(t){var e=this.c;return e&&!Xt(e,t)?null:this.a},Au.nb=function(){return this.$a},Au.Xd=function(t,e,o){return o=this.Ta(o),e=this.nb(e),t=X(o.gb(t),this.o),1==e?t:u(t,e,this.o)},Au.sa=function(){this.a.clear(),this.s()},Au.Ug=w,e(dw,Me),e(vw,cw),(Au=vw.prototype).pb=function(){return this.tileLoadFunction},Au.qb=function(){return this.tileUrlFunction},Au.rb=function(){return this.urls},Au.Li=function(t){switch((t=t.target).getState()){case 1:this.b(new dw("tileloadstart",t));break;case 2:this.b(new dw("tileloadend",t));break;case 3:this.b(new dw("tileloaderror",t))}},Au.vb=function(t){this.a.clear(),this.tileLoadFunction=t,this.s()},Au.cb=function(t,e){this.tileUrlFunction=t,void 0!==e?yw(this,e):this.s()},Au.jb=function(t){var e=this.urls=hw(t);this.cb(this.Fc?this.Fc.bind(this):sw(e,this.tileGrid),t)},Au.eb=function(t){var e=(this.urls=t).join("\n");this.cb(this.Fc?this.Fc.bind(this):sw(t,this.tileGrid),e)},Au.Ug=function(t,e,o){t=this.Sb(t,e,o),this.a.b.hasOwnProperty(t)&&this.a.get(t)},e(bw,vw),(Au=bw.prototype).Ki=function(){if(uw(this.a))return!0;for(var t in this.g)if(uw(this.g[t]))return!0;return!1},Au.fd=function(t,e){for(var o in t=this.Wd(t),this.a.fd(this.a==t?e:{}),this.g){o=this.g[o];o.fd(o==t?e:{})}},Au.Wf=function(t){return this.c&&t&&!Xt(this.c,t)?0:this.Xf()},Au.Xf=function(){return 0},Au.Zf=function(t){return!(this.c&&t&&!Xt(this.c,t))&&vw.prototype.Zf.call(this,t)},Au.Ta=function(t){var e=this.c;return!this.tileGrid||e&&!Xt(e,t)?((e=G(t).toString())in this.v||(this.v[e]=re(t)),this.v[e]):this.tileGrid},Au.Wd=function(t){var e=this.c;return!e||Xt(e,t)?this.a:((t=G(t).toString())in this.g||(this.g[t]=new lw(this.a.highWaterMark)),this.g[t])},Au.Nc=function(t,e,o,i,r){if(this.c&&r&&!Xt(this.c,r)){var n,s=this.Wd(r);if(o=[t,e,o],t=this.Sb.apply(this,o),s.b.hasOwnProperty(t)&&(n=s.get(t)),e=this.uc,n&&n.key==e)return n;var a=this.c,p=this.Ta(a),h=this.Ta(r),l=gw(this,o,r);return(i=new nw(a,p,r,h,o,l,this.nb(i),this.Xf(),function(t,e,o,i){return ww(this,t,e,o,i,a)}.bind(this),this.Sa,this.I)).key=e,n?(i.i=n,s.replace(t,i)):s.set(t,i),i}return ww(this,t,e,o,i,r)},Au.Pb=function(t){if(this.I!=t){for(var e in this.I=t,this.g)this.g[e].clear();this.s()}},Au.Qb=function(t,e){(t=Bt(t))&&((t=G(t).toString())in this.v||(this.v[t]=e))},e(Sw,bw);var Mw=new he({html:'<a class="ol-attribution-bing-tos" href="http://www.microsoft.com/maps/product/terms.html">Terms of Use</a>'});function Pw(t){var e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",o=void 0!==t.tileGrid?t.tileGrid:ne({extent:pe(e),maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});bw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:o,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX})}function Aw(t){this.C=t.account,this.B=t.map||"",this.f=t.config||{},this.l={},Pw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,maxZoom:void 0!==t.maxZoom?t.maxZoom:18,minZoom:t.minZoom,projection:t.projection,state:"loading",wrapX:t.wrapX}),Ew(this)}function Ew(t){var e,o,i=JSON.stringify(t.f);t.l[i]?Tw(t,t.l[i]):(e="https://"+t.C+".cartodb.com/api/v1/map",t.B&&(e+="/named/"+t.B),(o=new XMLHttpRequest).addEventListener("load",t.Dl.bind(t,i)),o.addEventListener("error",t.Cl.bind(t)),o.open("POST",e),o.setRequestHeader("Content-type","application/json"),o.send(JSON.stringify(t.f)))}function Tw(t,e){t.jb("https://"+e.cdn_url.https+"/"+t.C+"/api/v1/map/"+e.layergroupid+"/{z}/{x}/{y}.png")}function jw(t){fb.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,wrapX:t.wrapX}),this.resolution=void 0,this.distance=void 0!==t.distance?t.distance:20,this.features=[],this.geometryFunction=t.geometryFunction||function(t){return O((t=t.V())instanceof hr,10),t},this.source=t.source,this.source.J("change",jw.prototype.sa,this)}function Cw(t){if(void 0!==t.resolution){t.features.length=0;for(var e=V(),o=t.distance*t.resolution,i=t.source.Xe(),r={},n=0,s=i.length;n<s;n++){var a=i[n];G(a).toString()in r||!(a=t.geometryFunction(a))||(k(a=a.X(),e),A(e,o,e),a=(a=t.source.Uf(e)).filter(function(t){return!((t=G(t).toString())in r)&&(r[t]=!0)}),t.features.push(function(t,e){for(var o=[0,0],i=e.length-1;0<=i;--i){var r=t.geometryFunction(e[i]);r?Ti(o,r.X()):e.splice(i,1)}return Ni(o,1/e.length),(t=new Ih(new hr(o))).set("features",e),t}(t,a)))}}}function Lw(t,e){var o=[];Object.keys(e).forEach(function(t){null!==e[t]&&void 0!==e[t]&&o.push(t+"="+encodeURIComponent(e[t]))});var i=o.join("&");return(t=-1===(t=t.replace(/[?&]$/,"")).indexOf("?")?t+"?":t+"&")+i}function Rw(t){Fm.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions}),this.R=void 0!==t.crossOrigin?t.crossOrigin:null,this.T=void 0===t.hidpi||t.hidpi,this.f=t.url,this.g=t.imageLoadFunction||Dm,this.v=t.params||{},this.M=null,this.l=[0,0],this.I=0,this.B=void 0!==t.ratio?t.ratio:1.5}function Iw(t){Fm.call(this,{projection:t.projection,resolutions:t.resolutions}),this.R=void 0!==t.crossOrigin?t.crossOrigin:null,this.l=void 0!==t.displayDpi?t.displayDpi:96,this.g=t.params||{},this.I=t.url,this.f=t.imageLoadFunction||Dm,this.T=void 0===t.hidpi||t.hidpi,this.pa=void 0!==t.metersPerUnit?t.metersPerUnit:1,this.v=void 0!==t.ratio?t.ratio:1,this.va=void 0!==t.useOverlay&&t.useOverlay,this.M=null,this.B=0}function Nw(t){var e=t.imageExtent,o=void 0!==t.crossOrigin?t.crossOrigin:null,i=t.imageLoadFunction||Dm;Fm.call(this,{attributions:t.attributions,logo:t.logo,projection:Bt(t.projection)}),this.M=new _d(e,void 0,1,this.j,t.url,o,i),this.f=t.imageSize||null,de(this.M,"change",this.o,this)}function Fw(t){Fm.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions}),this.pa=void 0!==t.crossOrigin?t.crossOrigin:null,this.g=t.url,this.v=t.imageLoadFunction||Dm,this.f=t.params||{},this.l=!0,Ow(this),this.T=t.serverType,this.va=void 0===t.hidpi||t.hidpi,this.M=null,this.B=[0,0],this.R=0,this.I=void 0!==t.ratio?t.ratio:1.5}Sw.prototype.T=function(){return this.f},Sw.prototype.fa=function(){return this.l},Sw.prototype.pa=function(t){var e,i,s,a,r,n,p;200!=t.statusCode||"OK"!=t.statusDescription||"ValidCredentials"!=t.authenticationResultCode||1!=t.resourceSets.length||1!=t.resourceSets[0].resources.length?cb(this,"error"):(-1==(e=t.brandLogoUri).indexOf("https")&&(e=e.replace("http","https")),i=t.resourceSets[0].resources[0],s=-1==this.C?i.zoomMax:this.C,a=ne({extent:t=pe(this.c),minZoom:i.zoomMin,maxZoom:s,tileSize:(i.imageWidth==i.imageHeight?i.imageWidth:[i.imageWidth,i.imageHeight])/this.nb()}),this.tileGrid=a,r=this.R,n=this.B,this.tileUrlFunction=aw(i.imageUrlSubdomains.map(function(t){var e=[0,0,0],o=i.imageUrl.replace("{subdomain}",t).replace("{culture}",r);return function(t){if(t)return qt(t[0],t[1],-t[2]-1,e),t=o,n&&(t+="&dpi=d1&device=mobile"),t.replace("{quadkey}",function(t){for(var e=t[0],o=Array(e),i=1<<e-1,r=0;r<e;++r){var n=48;t[1]&i&&(n+=1),t[2]&i&&(n+=2),o[r]=String.fromCharCode(n),i>>=1}return o.join("")}(e))}})),i.imageryProviders&&(p=Wt(Bt("EPSG:4326"),this.c),(t=i.imageryProviders.map(function(t){var e=t.attribution,n={};return t.coverageAreas.forEach(function(t){var e,o=t.zoomMin,i=Math.min(t.zoomMax,s);for(t=pt([(t=t.bbox)[1],t[0],t[3],t[2]],p),e=o;e<=i;++e){var r=e.toString(),o=ee(a,t,e);r in n?n[r].push(o):n[r]=[o]}}),new he({html:e,tileRanges:n})})).push(Mw),this.ua(t)),this.D=e,cb(this,"ready"))},e(Pw,bw),e(Aw,Pw),(Au=Aw.prototype).Kk=function(){return this.f},Au.tq=function(t){ht(this.f,t),Ew(this)},Au.Xp=function(t){this.f=t||{},Ew(this)},Au.Dl=function(t,e){if(!(e=e.target).status||200<=e.status&&e.status<300){try{var o=JSON.parse(e.responseText)}catch(t){return void cb(this,"error")}Tw(this,o),this.l[t]=o,cb(this,"ready")}else cb(this,"error")},Au.Cl=function(){cb(this,"error")},e(jw,fb),(Au=jw.prototype).$n=function(){return this.distance},Au.ao=function(){return this.source},Au.Yd=function(t,e,o){this.source.Yd(t,e,o),e!==this.resolution&&(this.clear(),this.resolution=e,Cw(this),this.cd(this.features))},Au.Yp=function(t){this.distance=t,this.sa()},Au.sa=function(){this.clear(),Cw(this),this.cd(this.features),fb.prototype.sa.call(this)},e(Rw,Fm),(Au=Rw.prototype).co=function(){return this.v},Au.Jc=function(t,e,o,i){if(void 0===this.f)return null;e=km(this,e),o=this.T?o:1;var r=this.M;if(r&&this.I==this.i&&r.resolution==e&&r.a==o&&N(r.G(),t))return r;ht(r={F:"image",FORMAT:"PNG32",TRANSPARENT:!0},this.v);var n=((t=t.slice())[0]+t[2])/2,s=(t[1]+t[3])/2;1!=this.B&&(a=this.B*rt(t)/2,p=this.B*tt(t)/2,t[0]=n-a,t[1]=s-p,t[2]=n+a,t[3]=s+p);var a=e/o,p=Math.ceil(rt(t)/a),h=Math.ceil(tt(t)/a);return t[0]=n-a*p/2,t[2]=n+a*p/2,t[1]=s-a*h/2,t[3]=s+a*h/2,this.l[0]=p,this.l[1]=h,n=t,s=this.l,a=o,i=i.mb.split(":").pop(),r.SIZE=s[0]+","+s[1],r.BBOX=n.join(","),r.BBOXSR=i,r.IMAGESR=i,r.DPI=Math.round(90*a),(n=(i=this.f).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"))==i&&O(!1,50),r=Lw(n,r),this.M=new _d(t,e,o,this.j,r,this.R,this.g),this.I=this.i,de(this.M,"change",this.o,this),this.M},Au.bo=function(){return this.g},Au.eo=function(){return this.f},Au.fo=function(t){this.M=null,this.g=t,this.s()},Au.ho=function(t){t!=this.f&&(this.f=t,this.M=null,this.s())},Au.io=function(t){ht(this.v,t),this.M=null,this.s()},e(Iw,Fm),(Au=Iw.prototype).ko=function(){return this.g},Au.Jc=function(t,e,o){e=km(this,e),o=this.T?o:1;var i=this.M;if(i&&this.B==this.i&&i.resolution==e&&i.a==o&&N(i.G(),t))return i;1!=this.v&&at(t=t.slice(),this.v);var r,n,s,a,p,h,l,u=[rt(t)/e*o,tt(t)/e*o];return void 0!==this.I?(i=this.I,r=$(t),n=this.pa,s=rt(t),a=tt(t),p=u[0],h=u[1],l=.0254/this.l,u={OPERATION:this.va?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.l,SETDISPLAYWIDTH:Math.round(u[0]),SETDISPLAYHEIGHT:Math.round(u[1]),SETVIEWSCALE:p*a<h*s?s*n/(p*l):a*n/(h*l),SETVIEWCENTERX:r[0],SETVIEWCENTERY:r[1]},ht(u,this.g),i=Lw(i,u),de(i=new _d(t,e,o,this.j,i,this.R,this.f),"change",this.o,this)):i=null,this.M=i,this.B=this.i,i},Au.jo=function(){return this.f},Au.mo=function(t){ht(this.g,t),this.s()},Au.lo=function(t){this.M=null,this.f=t,this.s()},e(Nw,Fm),Nw.prototype.Jc=function(t){return nt(t,this.M.G())?this.M:null},Nw.prototype.o=function(t){var e,o,i,r,n;2==this.M.getState()&&(i=this.M.G(),e=this.M.Y(),n=this.f?(o=this.f[0],this.f[1]):(o=e.width,e.height),(i=Math.ceil(rt(i)/(tt(i)/n)))!=o&&(r=(i=Ye(i,n)).canvas,i.drawImage(e,0,0,o,n,0,0,r.width,r.height),this.M.Og(r))),Fm.prototype.o.call(this,t)},e(Fw,Fm);var kw=[101,101];function Dw(t,e,o,i,r,n){if(O(void 0!==t.g,9),n[t.l?"CRS":"SRS"]=r.mb,"STYLES"in t.f||(n.STYLES=""),1!=i)switch(t.T){case"geoserver":i=90*i+.5|0,n.FORMAT_OPTIONS="FORMAT_OPTIONS"in n?n.FORMAT_OPTIONS+";dpi:"+i:"dpi:"+i;break;case"mapserver":n.MAP_RESOLUTION=90*i;break;case"carmentaserver":case"qgis":n.DPI=90*i;break;default:O(!1,8)}return n.WIDTH=o[0],n.HEIGHT=o[1],o=r.b,e=t.l&&"ne"==o.substr(0,2)?[e[1],e[0],e[3],e[2]]:e,n.BBOX=e.join(","),Lw(t.g,n)}function Ow(t){t.l=0<=Ei(t.f.VERSION||"1.3.0")}function Uw(t){var e=void 0!==(t=t||{}).attributions?t.attributions:[Gw];Pw.call(this,{attributions:e,cacheSize:t.cacheSize,crossOrigin:void 0!==t.crossOrigin?t.crossOrigin:"anonymous",opaque:void 0===t.opaque||t.opaque,maxZoom:void 0!==t.maxZoom?t.maxZoom:19,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,url:void 0!==t.url?t.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:t.wrapX})}(Au=Fw.prototype).so=function(t,e,o,i){if(void 0!==this.g){var r=Q(t,e,0,kw),n={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS};return ht(n,this.f,i),i=Math.floor((r[3]-t[1])/e),n[this.l?"I":"X"]=Math.floor((t[0]-r[0])/e),n[this.l?"J":"Y"]=i,Dw(this,r,kw,1,Bt(o),n)}},Au.uo=function(){return this.f},Au.Jc=function(t,e,o,i){if(void 0===this.g)return null;var r=(e=km(this,e))/(o=!(1==o||this.va&&void 0!==this.T)?1:o),n=$(t),s=Q(n,r,0,[Math.ceil(rt(t)/r),Math.ceil(tt(t)/r)]);return t=Q(n,r,0,[Math.ceil(this.I*rt(t)/r),Math.ceil(this.I*tt(t)/r)]),(n=this.M)&&this.R==this.i&&n.resolution==e&&n.a==o&&N(n.G(),s)?n:(ht(s={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},this.f),this.B[0]=Math.round(rt(t)/r),this.B[1]=Math.round(tt(t)/r),i=Dw(this,t,this.B,o,i,s),this.M=new _d(t,e,o,this.j,i,this.pa,this.v),this.R=this.i,de(this.M,"change",this.o,this),this.M)},Au.to=function(){return this.v},Au.vo=function(){return this.g},Au.wo=function(t){this.M=null,this.v=t,this.s()},Au.xo=function(t){t!=this.g&&(this.g=t,this.M=null,this.s())},Au.yo=function(t){ht(this.f,t),Ow(this),this.M=null,this.s()},e(Uw,Pw);var Gw=new he({html:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.'});function Bw(t){this.B=null,this.va=void 0!==t.operationType?t.operationType:"pixel",this.Sa=void 0!==t.threads?t.threads:1,this.g=function(t){for(var e=t.length,o=Array(e),i=0;i<e;++i){var r=i,n=t[i],s=null;n instanceof cw?(n=new Qm({source:n}),s=new Km(n)):n instanceof Fm&&(n=new Zm({source:n}),s=new Tm(n)),o[r]=s}return o}(t.sources);for(var e=0,o=this.g.length;e<o;++e)de(this.g[e],"change",this.s,this);this.T=new xi(function(){return 1},this.s.bind(this));for(var o={},i=0,r=(e=this.g.map(function(t){return Xn(t.a)})).length;i<r;++i)o[G(e[i].layer)]=e[i];this.f=null,this.I={animate:!1,attributions:{},coordinateToPixelTransform:qn(),extent:null,focus:null,index:0,layerStates:o,layerStatesArray:e,logos:{},pixelRatio:1,pixelToCoordinateTransform:qn(),postRenderFunctions:[],size:[0,0],skippedFeatureUids:{},tileQueue:this.T,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{}},Fm.call(this,{}),t.operation&&this.v(t.operation,t.lib)}qa.df={},qa.df.Af=function(){},function(t){function a(u){var c=!0;try{new ImageData(10,10)}catch(t){c=!1}return function(t){var e=t.buffers,o=t.meta,i=t.width,r=t.height,n=e.length,s=e[0].byteLength;if(t.imageOps){for(s=Array(n),t=0;t<n;++t){var a=t,p=new Uint8ClampedArray(e[t]),h=i,l=r,p=c?new ImageData(p,h,l):{data:p,width:h,height:l};s[a]=p}i=u(s,o).data}else{for(i=new Uint8ClampedArray(s),r=Array(n),a=Array(n),t=0;t<n;++t)r[t]=new Uint8ClampedArray(e[t]),a[t]=[0,0,0,0];for(e=0;e<s;e+=4){for(t=0;t<n;++t)p=r[t],a[t][0]=p[e],a[t][1]=p[e+1],a[t][2]=p[e+2],a[t][3]=p[e+3];t=u(a,o),i[e]=t[0],i[e+1]=t[1],i[e+2]=t[2],i[e+3]=t[3]}}return i.buffer}}function e(t){this.Ff=!!t.$l;var e,o,i,r,n=[];if(e=0===t.threads?0:!this.Ff&&t.threads||1)for(var s=0;s<e;++s)n[s]=function(e,t){var o=Object.keys(e.lib||{}).map(function(t){return"var "+t+" = "+e.lib[t].toString()+";"}).concat(["var __minion__ = ("+a.toString()+")(",e.operation.toString(),");",'self.addEventListener("message", function(event) {'," var buffer = __minion__(event.data);"," self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),o=URL.createObjectURL(new Blob(o,{type:"text/javascript"}));return(o=new Worker(o)).addEventListener("message",t),o}(t,this.gh.bind(this,s));else n[0]=(o=t,i=this.gh.bind(this,0),r=a(o.operation),{postMessage:function(t){setTimeout(function(){i({data:{buffer:r(t),meta:t.meta}})},0)}});this.qe=n,this.Ed=[],this.fk=t.rp||1/0,this.oe=0,this.bd={},this.Gf=null}var h=!0;try{new ImageData(10,10)}catch(t){h=!1}var l=document.createElement("canvas").getContext("2d");e.prototype.pp=function(t,e,o){this.dk({inputs:t,Qh:e,callback:o}),this.dh()},e.prototype.dk=function(t){for(this.Ed.push(t);this.Ed.length>this.fk;)this.Ed.shift().callback(null,null)},e.prototype.dh=function(){if(0===this.oe&&0<this.Ed.length){var t=this.Gf=this.Ed.shift(),e=t.inputs[0].width,o=t.inputs[0].height,i=t.inputs.map(function(t){return t.data.buffer}),r=this.qe.length;if(1===(this.oe=r))this.qe[0].postMessage({buffers:i,meta:t.Qh,imageOps:this.Ff,width:e,height:o},i);else for(var n=4*Math.ceil(t.inputs[0].data.length/4/r),s=0;s<r;++s){for(var a=s*n,p=[],h=0,l=i.length;h<l;++h)p.push(i[s].slice(a,a+n));this.qe[s].postMessage({buffers:p,meta:t.Qh,imageOps:this.Ff,width:e,height:o},p)}}},e.prototype.gh=function(t,e){this.Jq||(this.bd[t]=e.data,--this.oe,0===this.oe&&this.gk())},e.prototype.gk=function(){var t,e,o=this.Gf,i=this.qe.length;if(1===i)var r=new Uint8ClampedArray(this.bd[0].buffer),n=this.bd[0].meta;else for(var s=o.inputs[0].data.length,r=new Uint8ClampedArray(s),n=Array(s),s=4*Math.ceil(s/4/i),a=0;a<i;++a){var p=a*s;r.set(new Uint8ClampedArray(this.bd[a].buffer),p),n[a]=this.bd[a].meta}this.Gf=null,this.bd={},o.callback(null,(t=r,e=o.inputs[0].width,o=o.inputs[0].height,h?new ImageData(t,e,o):((e=l.createImageData(e,o)).data.set(t),e)),n),this.dh()},t.default={Af:e},t.Af=e}(qa.df=qa.df||{}),e(Bw,Fm),Bw.prototype.v=function(t,e){this.B=new qa.df.Af({operation:t,$l:"image"===this.va,rp:1,lib:e,threads:this.Sa}),this.s()},Bw.prototype.Y=function(t,e,o,i){o=!0;for(var r=0,n=this.g.length;r<n;++r)if("ready"!==(h=this.g[r].a.ha()).getState()){o=!1;break}if(!o)return null;if((o=ht({},this.I)).viewState=ht({},o.viewState),h=$(t),o.extent=t.slice(),o.focus=h,o.size[0]=Math.round(rt(t)/e),o.size[1]=Math.round(tt(t)/e),(r=o.viewState).center=h,r.projection=i,r.resolution=e,Si((this.l=o).tileQueue,16,16),this.f&&(i=this.f.resolution,o=this.f.G(),e===i&&Z(t,o)||(this.f=null)),!this.f||this.i!==this.R)t:{for(t=this.l,i=this.g.length,e=Array(i),o=0;o<i;++o){var s,a,p,h=this.g[o],r=t,n=t.layerStatesArray[o];if(!(h=h.sd(r,n)?(s=r.size[0],a=r.size[1],!Xw||(p=Xw.canvas).width!==s||p.height!==a?Xw=Ye(s,a):Xw.clearRect(0,0,s,a),h.S(r,n,Xw),Xw.getImageData(0,0,s,a)):null))break t;e[o]=h}i={},this.b(new Vw(Ww,t,i)),this.B.pp(e,i,this.pa.bind(this,t))}return this.f},Bw.prototype.pa=function(t,e,o,i){var r,n;!e&&o&&(e=t.extent,(r=t.viewState.resolution)===this.l.viewState.resolution&&Z(e,this.l.extent)&&(this.f?n=this.f.Y().getContext("2d"):(n=Ye(Math.round(rt(e)/r),Math.round(tt(e)/r)),this.f=new $d(e,r,1,this.j,n.canvas)),n.putImageData(o,0,0),this.s(),this.R=this.i,this.b(new Vw(Zw,t,i))))};var Xw=null;function Vw(t,e,o){Me.call(this,t),this.extent=e.extent,this.resolution=e.viewState.resolution/e.pixelRatio,this.data=o}e(Vw,Me),Bw.prototype.Jc=function(){return null};var Ww="beforeoperations",Zw="afteroperations";function Kw(t){var e=t.layer.indexOf("-"),e=Hw[-1==e?t.layer:t.layer.slice(0,e)],o=Yw[t.layer];Pw.call(this,{attributions:zw,cacheSize:t.cacheSize,crossOrigin:"anonymous",maxZoom:(null!=t.maxZoom?t:e).maxZoom,minZoom:(null!=t.minZoom?t:e).minZoom,opaque:o.opaque,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,url:void 0!==t.url?t.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+t.layer+"/{z}/{x}/{y}."+o.Lb,wrapX:t.wrapX})}e(Kw,Pw);var zw=[new he({html:'Map tiles by <a href="http://stamen.com/">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.'}),Gw],Yw={terrain:{Lb:"jpg",opaque:!0},"terrain-background":{Lb:"jpg",opaque:!0},"terrain-labels":{Lb:"png",opaque:!1},"terrain-lines":{Lb:"png",opaque:!1},"toner-background":{Lb:"png",opaque:!0},toner:{Lb:"png",opaque:!0},"toner-hybrid":{Lb:"png",opaque:!1},"toner-labels":{Lb:"png",opaque:!1},"toner-lines":{Lb:"png",opaque:!1},"toner-lite":{Lb:"png",opaque:!0},watercolor:{Lb:"jpg",opaque:!0}},Hw={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:1,maxZoom:16}};function qw(t){bw.call(this,{attributions:(t=t||{}).attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.f=t.params||{},this.l=V(),yw(this,Jw(this))}function Jw(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function _w(t){cw.call(this,{opaque:!1,projection:t.projection,tileGrid:t.tileGrid,wrapX:void 0===t.wrapX||t.wrapX})}function $w(t,e,o){Qd.call(this,t,2),this.c=e,this.Ia=o,this.a=null}function Qw(t){var e;this.f=null,bw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,projection:Bt("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,wrapX:void 0===t.wrapX||t.wrapX}),t.url?t.jsonp?rw(t.url,this.og.bind(this),this.Ve.bind(this)):((e=new XMLHttpRequest).addEventListener("load",this.Ao.bind(this)),e.addEventListener("error",this.zo.bind(this)),e.open("GET",t.url),e.send()):t.tileJSON?this.og(t.tileJSON):O(!1,51)}function tx(t){var e;cw.call(this,{projection:Bt("EPSG:3857"),state:"loading"}),this.v=void 0===t.preemptive||t.preemptive,this.l=pw,this.g=void 0,this.f=t.jsonp||!1,t.url?this.f?rw(t.url,this.pg.bind(this),this.We.bind(this)):((e=new XMLHttpRequest).addEventListener("load",this.Eo.bind(this)),e.addEventListener("error",this.Do.bind(this)),e.open("GET",t.url),e.send()):t.tileJSON?this.pg(t.tileJSON):O(!1,51)}function ex(t,e,o,i,r,n){Qd.call(this,t,e),this.o=o,this.a=i,this.v=r,this.c=this.j=this.g=null,this.l=n}function ox(t){var e;0==t.state&&(t.state=1,t.l?rw(t.o,t.Ji.bind(t),t.De.bind(t)):((e=new XMLHttpRequest).addEventListener("load",t.Co.bind(t)),e.addEventListener("error",t.Bo.bind(t)),e.open("GET",t.o),e.send()))}function ix(t){var e=(t=t||{}).params||{};bw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,opaque:!(!("TRANSPARENT"in e)||e.TRANSPARENT),projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.C=void 0!==t.gutter?t.gutter:0,this.f=e,this.l=!0,this.B=t.serverType,this.T=void 0===t.hidpi||t.hidpi,this.R="",nx(this),this.fa=V(),ax(this),yw(this,sx(this))}function rx(t,e,o,i,r,n,s){var a=t.urls;if(a){if(s.WIDTH=o[0],s.HEIGHT=o[1],s[t.l?"CRS":"SRS"]=n.mb,"STYLES"in t.f||(s.STYLES=""),1!=r)switch(t.B){case"geoserver":o=90*r+.5|0,s.FORMAT_OPTIONS="FORMAT_OPTIONS"in s?s.FORMAT_OPTIONS+";dpi:"+o:"dpi:"+o;break;case"mapserver":s.MAP_RESOLUTION=90*r;break;case"carmentaserver":case"qgis":s.DPI=90*r;break;default:O(!1,52)}return n=n.b,t.l&&"ne"==n.substr(0,2)&&(t=i[0],i[0]=i[1],i[1]=t,t=i[2],i[2]=i[3],i[3]=t),s.BBOX=i.join(","),Lw(1==a.length?a[0]:a[L((e[1]<<e[0])+e[2],a.length)],s)}}function nx(t){var e=0,o=[];if(t.urls)for(var i=0,r=t.urls.length;i<r;++i)o[e++]=t.urls[i];t.R=o.join("#")}function sx(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function ax(t){t.l=0<=Ei(t.f.VERSION||"1.3.0")}function px(t,e,o,i,r,n,s,a,p,h,l,u,c,f){var y,g;Qd.call(this,t,e),this.j=null,this.o={Nd:!1,Kg:null,mf:-1,Lg:-1},this.c=h,this.a=[],this.u=o,this.v=n,this.g=[],this.l=[],n&&(y=p.Aa(n),g=p.Da(t[0]),a.Rf(y,a.tc(g),function(t){var e,o=et(y,a.Aa(t));.5<=rt(o)/g&&.5<=tt(o)/g&&(o=t.toString(),(e=h[o])||(e=s(t,l,u),e=h[o]=new c(t,null==e?4:0,null==e?"":e,i,r),this.l.push(de(e,"change",f))),e.j++,this.a.push(o))}.bind(this)))}function hx(t,e){t.Pg(tl(e,t.o,t.$o.bind(t),t.Zo.bind(t)))}function lx(t,e,o,i,r){Qd.call(this,t,e),this.j=0,this.o=i,this.g=null,this.c={},this.u=r,this.l=o}function ux(t){vw.call(this,{attributions:t.attributions,cacheSize:void 0!==t.cacheSize?t.cacheSize:128,extent:t.extent,logo:t.logo,opaque:!1,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction||hx,tileUrlFunction:t.tileUrlFunction,tilePixelRatio:t.tilePixelRatio,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.g=t.format||null,this.v={},this.l=null==t.overlaps||t.overlaps,this.tileClass=t.tileClass||lx,this.f={},this.tileGrid||(this.tileGrid=this.Ta(Bt(t.projection||"EPSG:3857")))}function cx(t){this.o=t.matrixIds,Jt.call(this,{extent:t.extent,origin:t.origin,origins:t.origins,resolutions:t.resolutions,tileSize:t.tileSize,tileSizes:t.tileSizes,sizes:t.sizes})}function fx(t,e,o){var r=[],n=[],s=[],a=[],p=[],h=void 0!==o?o:[],l=(o=Bt(t.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))).sc(),u="ne"==o.b.substr(0,2);return t.TileMatrix.sort(function(t,e){return e.ScaleDenominator-t.ScaleDenominator}),t.TileMatrix.forEach(function(e){var t,o,i;(t=!(0<h.length)||b(h,function(t){return e.Identifier==t.TileMatrix}))&&(n.push(e.Identifier),t=28e-5*e.ScaleDenominator/l,o=e.TileWidth,i=e.TileHeight,u?s.push([e.TopLeftCorner[1],e.TopLeftCorner[0]]):s.push(e.TopLeftCorner),r.push(t),a.push(o==i?o:[o,i]),p.push([e.MatrixWidth,-e.MatrixHeight]))}),new cx({extent:e,origins:s,resolutions:r,matrixIds:n,tileSizes:a,sizes:p})}function yx(t){this.fa=void 0!==t.version?t.version:"1.0.0",this.C=void 0!==t.format?t.format:"image/jpeg",this.f=t.dimensions||{},this.B=t.layer,this.l=t.matrixSet,this.R=t.style;var e=t.urls;void 0===e&&void 0!==t.url&&(e=hw(t.url));var i=this.T=void 0!==t.requestEncoding?t.requestEncoding:"KVP",r=t.tileGrid,o={layer:this.B,style:this.R,tilematrixset:this.l};"KVP"==i&&ht(o,{Service:"WMTS",Request:"GetTile",Version:this.fa,Format:this.C});var n=this.f,s=e&&0<e.length?aw(e.map(function(e){return e="KVP"==i?Lw(e,o):e.replace(/\{(\w+?)\}/g,function(t,e){return e.toLowerCase()in o?o[e.toLowerCase()]:t}),function(t){if(t){var o={TileMatrix:r.o[t[0]],TileCol:t[1],TileRow:-t[2]-1};return ht(o,n),t=e,"KVP"==i?Lw(t,o):t.replace(/\{(\w+?)\}/g,function(t,e){return o[e]})}}})):pw;bw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:r,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:s,urls:e,wrapX:void 0!==t.wrapX&&t.wrapX}),yw(this,gx(this))}function gx(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function dx(t){var e=(t=t||{}).size,o=e[0],i=e[1],n=[],r=256;switch(void 0!==t.tierSizeCalculation?t.tierSizeCalculation:bx){case bx:for(;r<o||r<i;)n.push([Math.ceil(o/r),Math.ceil(i/r)]),r+=r;break;case mx:for(;r<o||r<i;)n.push([Math.ceil(o/r),Math.ceil(i/r)]),o>>=1,i>>=1;break;default:O(!1,53)}n.push([1,1]),n.reverse();for(var r=[1],s=[0],i=1,o=n.length;i<o;i++)r.push(1<<i),s.push(n[i-1][0]*n[i-1][1]+s[i-1]);r.reverse(),e=new Jt({extent:e=[0,-e[1],e[0],0],origin:ot(e),resolutions:r}),(r=t.url)&&-1==r.indexOf("{TileGroup}")&&(r+="{TileGroup}/{z}-{x}-{y}.jpg"),r=aw((r=hw(r)).map(function(r){return function(t){if(t){var e=t[0],o=t[1],i={z:e,x:o,y:t=-t[2]-1,TileGroup:"TileGroup"+((o+t*n[e][0]+s[e])/256|0)};return r.replace(/\{(\w+?)\}/g,function(t,e){return i[e]})}}})),bw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:vx,tileGrid:e,tileUrlFunction:r})}function vx(t,e,o,i,r){ov.call(this,t,e,o,i,r),this.a=null}e(qw,bw),qw.prototype.C=function(){return this.f},qw.prototype.nb=function(t){return t},qw.prototype.Fc=function(t,e,o){var i=this.tileGrid;if(!((i=i||this.Ta(o)).b.length<=t[0])){var r=i.Aa(t,this.l),n=X(i.gb(t[0]),this.o);1!=e&&(n=u(n,e,this.o)),ht(i={F:"image",FORMAT:"PNG32",TRANSPARENT:!0},this.f);var s=this.urls;return t=s?(o=o.mb.split(":").pop(),i.SIZE=n[0]+","+n[1],i.BBOX=r.join(","),i.BBOXSR=o,i.IMAGESR=o,i.DPI=Math.round(i.DPI?i.DPI*e:90*e),Lw(t=(1==s.length?s[0]:s[L((t[1]<<t[0])+t[2],s.length)]).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"),i)):void 0}},qw.prototype.B=function(t){ht(this.f,t),yw(this,Jw(this))},e(_w,cw),_w.prototype.Nc=function(t,e,o){var i=this.Sb(t,e,o);if(this.a.b.hasOwnProperty(i))return this.a.get(i);var r=X(this.tileGrid.gb(t)),r=new $w(t=[t,e,o],r,e=(e=gw(this,t))?gw(this,e).toString():"");return this.a.set(i,r),r},e($w,Qd),$w.prototype.Y=function(){if(this.a)return this.a;var t=this.c,e=Ye(t[0],t[1]);return e.strokeStyle="black",e.strokeRect(.5,.5,t[0]+.5,t[1]+.5),e.fillStyle="black",e.textAlign="center",e.textBaseline="middle",e.font="24px sans-serif",e.fillText(this.Ia,t[0]/2,t[1]/2),this.a=e.canvas},$w.prototype.load=function(){},e(Qw,bw),(Au=Qw.prototype).Ao=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.Ve()}this.og(e)}else this.Ve()},Au.zo=function(){this.Ve()},Au.pl=function(){return this.f},Au.og=function(t){var e,o=Bt("EPSG:4326"),i=this.c;t.bounds&&(n=Wt(o,i),e=pt(t.bounds,n));var r=t.minzoom||0,n=t.maxzoom||22;if(this.tileGrid=i=ne({extent:pe(i),maxZoom:n,minZoom:r}),this.tileUrlFunction=sw(t.tiles,i),void 0!==t.attribution&&!this.j){o=void 0!==e?e:o.G(),e={};for(;r<=n;++r)e[r.toString()]=[ee(i,o,r)];this.ua([new he({html:t.attribution,tileRanges:e})])}this.f=t,cb(this,"ready")},Au.Ve=function(){cb(this,"error")},e(tx,cw),(Au=tx.prototype).Eo=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.We()}this.pg(e)}else this.We()},Au.Do=function(){this.We()},Au.ml=function(){return this.g},Au.zk=function(t,e,o,i,r){var n,s,a;this.tileGrid?(e=this.tileGrid.Be(t,e),e=this.Nc(e[0],e[1],e[2],1,this.c),n=t,s=o,a=i,t=r,0==e.state&&!0===t?(ve(e,"change",function(){s.call(a,this.getData(n))},e),ox(e)):!0===t?setTimeout(function(){s.call(a,this.getData(n))}.bind(e),0):s.call(a,e.getData(n))):!0===r?setTimeout(function(){o.call(i,null)},0):o.call(i,null)},Au.We=function(){cb(this,"error")},Au.pg=function(t){var e,o=Bt("EPSG:4326"),i=this.c;t.bounds&&(n=Wt(o,i),e=pt(t.bounds,n));var r=t.minzoom||0,n=t.maxzoom||22;this.tileGrid=i=ne({extent:pe(i),maxZoom:n,minZoom:r}),this.g=t.template;var s=t.grids;if(s){if(this.l=sw(s,i),void 0!==t.attribution){for(o=void 0!==e?e:o.G(),e={};r<=n;++r)e[s=r.toString()]=[ee(i,o,r)];this.ua([new he({html:t.attribution,tileRanges:e})])}cb(this,"ready")}else cb(this,"error")},Au.Nc=function(t,e,o,i,r){var n=this.Sb(t,e,o);return this.a.b.hasOwnProperty(n)?this.a.get(n):(e=gw(this,t=[t,e,o],r),i=new ex(t,void 0!==(i=this.l(e,i,r))?0:4,void 0!==i?i:"",this.tileGrid.Aa(t),this.v,this.f),this.a.set(n,i),i)},Au.Ug=function(t,e,o){t=this.Sb(t,e,o),this.a.b.hasOwnProperty(t)&&this.a.get(t)},e(ex,Qd),(Au=ex.prototype).Y=function(){return null},Au.getData=function(t){if(!this.g||!this.j)return null;var e=this.g[Math.floor((1-(t[1]-this.a[1])/(this.a[3]-this.a[1]))*this.g.length)];return"string"!=typeof e?null:(93<=(e=e.charCodeAt(Math.floor((t[0]-this.a[0])/(this.a[2]-this.a[0])*e.length)))&&e--,35<=e&&e--,t=null,(e-=32)in this.j&&(e=this.j[e],t=this.c&&e in this.c?this.c[e]:e),t)},Au.bb=function(){return this.o},Au.De=function(){this.state=3,this.s()},Au.Ji=function(t){this.g=t.grid,this.j=t.keys,this.c=t.data,this.state=4,this.s()},Au.Co=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.De()}this.Ji(e)}else this.De()},Au.Bo=function(){this.De()},Au.load=function(){this.v&&ox(this)},e(ix,bw),(Au=ix.prototype).Fo=function(t,e,o,i){if(o=Bt(o),e=(s=(s=this.tileGrid)||this.Ta(o)).Be(t,e),!(s.b.length<=e[0])){var r=s.Da(e[0]),n=s.Aa(e,this.fa),s=X(s.gb(e[0]),this.o),a=this.C;return a&&(s=l(s,a,this.o),n=A(n,r*a,n)),a={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS},ht(a,this.f,i),i=Math.floor((n[3]-t[1])/r),a[this.l?"I":"X"]=Math.floor((t[0]-n[0])/r),a[this.l?"J":"Y"]=i,rx(this,e,s,n,1,o,a)}},Au.Xf=function(){return this.C},Au.Sb=function(t,e,o){return this.R+bw.prototype.Sb.call(this,t,e,o)},Au.Go=function(){return this.f},Au.nb=function(t){return this.T&&void 0!==this.B?t:1},Au.Fc=function(t,e,o){if(!((n=(n=this.tileGrid)||this.Ta(o)).b.length<=t[0])){1==e||this.T&&void 0!==this.B||(e=1);var i=n.Da(t[0]),r=n.Aa(t,this.fa),n=X(n.gb(t[0]),this.o),s=this.C;return s&&(n=l(n,s,this.o),r=A(r,i*s,r)),1!=e&&(n=u(n,e,this.o)),ht(i={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},this.f),rx(this,t,n,r,e,o,i)}},Au.eb=function(t){bw.prototype.eb.call(this,t),nx(this)},Au.Ho=function(t){ht(this.f,t),nx(this),ax(this),yw(this,sx(this))},e(px,Qd),px.prototype.ka=function(){for(var t=0,e=this.a.length;t<e;++t){var o=this.a[t],i=this.c[o];i.j--,i.j||(delete this.c[o],Se(i))}this.a.length=0,this.c=null,1==this.state&&(this.g.forEach(me),this.g.length=0),this.i&&Se(this.i),this.state=5,this.s(),this.l.forEach(me),this.l.length=0,Qd.prototype.ka.call(this)},px.prototype.Y=function(){return-1==this.o.Lg?null:this.j.canvas},px.prototype.bb=function(){return this.a.join("/")+"/"+this.u},px.prototype.load=function(){var r=0,n=!1;0==this.state&&ev(this,1),1==this.state&&this.a.forEach(function(e){var o,i=this.c[e];0==i.state?(i.Pg(this.S),i.load()):3==i.state?n=!0:4==i.state&&s(this.a,e),1==i.state&&(o=de(i,"change",function(){var t=i.getState();2!=t&&3!=t||(--r,me(o),s(this.g,o),3==t&&(s(this.a,e),n=!0),r||ev(this,0<this.a.length?2:3))}.bind(this)),this.g.push(o),++r)}.bind(this)),r||setTimeout(function(){ev(this,0<this.a.length?2:n?3:4)}.bind(this),0)},e(lx,Qd),(Au=lx.prototype).ka=function(){this.g=null,this.c={},this.state=5,this.s(),Qd.prototype.ka.call(this)},Au.Lm=function(){return this.o},Au.Km=function(){return this.g},Au.bb=function(){return this.l},Au.Mm=function(){return this.a},Au.load=function(){0==this.state&&(ev(this,1),this.u(this,this.l),this.v(null,NaN,null))},Au.$o=function(t,e){this.ig(e),this.mj(t)},Au.Zo=function(){ev(this,3)},Au.mj=function(t){this.g=t,ev(this,2)},Au.ig=function(t){this.a=t},Au.Pg=function(t){this.v=t},e(ux,vw),ux.prototype.Nc=function(t,e,o,i,r){var n=this.Sb(t,e,o);return this.a.b.hasOwnProperty(n)?this.a.get(n):(i=new px(t=[t,e,o],void 0!==(o=(e=gw(this,t,r))?this.tileUrlFunction(e,i,r):void 0)?0:4,void 0!==o?o:"",this.g,this.tileLoadFunction,e,this.tileUrlFunction,this.tileGrid,this.Ta(r),this.v,i,r,this.tileClass,this.Li.bind(this)),this.a.set(n,i),i)},ux.prototype.Ta=function(t){var e=t.mb,o=this.f[e];return o||(o=this.tileGrid,o=this.f[e]=ae(t,void 0,o?o.gb(o.minZoom):void 0)),o},ux.prototype.nb=function(t){return null==t?vw.prototype.nb.call(this,t):t},ux.prototype.Xd=function(t,e,o){return t=X(this.Ta(o).gb(t)),[Math.round(t[0]*e),Math.round(t[1]*e)]},e(cx,Jt),cx.prototype.l=function(){return this.o},e(yx,bw),(Au=yx.prototype).Mk=function(){return this.f},Au.Io=function(){return this.C},Au.Jo=function(){return this.B},Au.$k=function(){return this.l},Au.kl=function(){return this.T},Au.Ko=function(){return this.R},Au.rl=function(){return this.fa},Au.uq=function(t){ht(this.f,t),yw(this,gx(this))},e(dx,bw),e(vx,ov),vx.prototype.Y=function(){if(this.a)return this.a;var t=ov.prototype.Y.call(this);if(2!=this.state)return t;if(256==t.width&&256==t.height)return this.a=t;var e=Ye(256,256);return e.drawImage(t,0,0),this.a=e.canvas};var bx="default",mx="truncated";function wx(t,e){this.b=e,this.a=[{x:0,y:0,width:t,height:t}],this.c={},this.i=Ye(t,t),this.f=this.i.canvas}function xx(t,e,o,i){e=[e,1],0<o.width&&0<o.height&&e.push(o),0<i.width&&0<i.height&&e.push(i),t.a.splice.apply(t.a,e)}function Sx(t){t=t||{},this.a=void 0!==t.initialSize?t.initialSize:256,this.i=void 0!==t.maxSize?t.maxSize:void 0!==Wo?Wo:2048,this.b=void 0!==t.space?t.space:1,this.f=[new wx(this.a,this.b)],this.c=this.a,this.g=[new wx(this.c,this.b)]}function Mx(t,e,o,i,r,n,s){for(var a=e?t.g:t.f,p=0,h=a.length;p<h;++p){var l=a[p];if(l=l.add(o,i,r,n,s))return l;l||p!==h-1||(e?(l=Math.min(2*t.c,t.i),t.c=l):(l=Math.min(2*t.a,t.i),t.a=l),l=new wx(l,t.b),a.push(l),++h)}return null}return wx.prototype.get=function(t){return this.c[t]||null},wx.prototype.add=function(t,e,o,i,r){for(var n=0,s=this.a.length;n<s;++n){var a=this.a[n];if(a.width>=e+this.b&&a.height>=o+this.b)return s={offsetX:a.x+this.b,offsetY:a.y+this.b,image:this.f},this.c[t]=s,i.call(r,this.i,a.x+this.b,a.y+this.b),t=n,e+=this.b,i=o+this.b,e=a.width-e>a.height-i?(o={x:a.x+e,y:a.y,width:a.width-e,height:a.height},{x:a.x,y:a.y+i,width:e,height:a.height-i}):(o={x:a.x+e,y:a.y,width:a.width-e,height:i},{x:a.x,y:a.y+i,width:a.width,height:a.height-i}),xx(this,t,o,e),s}return null},Sx.prototype.add=function(t,e,o,i,r,n){return!(e+this.b>this.i||o+this.b>this.i)&&(i=Mx(this,!1,t,e,o,i,n))?(t=Mx(this,!0,t,e,o,r||w,n),{offsetX:i.offsetX,offsetY:i.offsetY,image:i.image,Zl:t.image}):null},t("ol.Attribution",he),he.prototype.getHTML=he.prototype.i,t("ol.Collection",Ne),Ne.prototype.extend=Ne.prototype.fg,Ne.prototype.getArray=Ne.prototype.tm,Ne.prototype.getLength=Ne.prototype.dc,Ne.prototype.insertAt=Ne.prototype.He,Ne.prototype.removeAt=Ne.prototype.Hg,Ne.prototype.setAt=Ne.prototype.Wp,t("ol.color.asArray",Be),t("ol.color.asString",Xe),t("ol.colorlike.asColorLike",ze),t("ol.control.defaults",ao),t("ol.coordinate.add",Ti),t("ol.coordinate.createStringXY",function(e){return function(t){return Oi(t,e)}}),t("ol.coordinate.format",Li),t("ol.coordinate.rotate",Ii),t("ol.coordinate.toStringHDMS",function(t,e){return t?Ci("NS",t[1],e)+" "+Ci("EW",t[0],e):""}),t("ol.coordinate.toStringXY",Oi),t("ol.DeviceOrientation",gh),gh.prototype.getAlpha=gh.prototype.Fk,gh.prototype.getBeta=gh.prototype.Ik,gh.prototype.getGamma=gh.prototype.Ok,gh.prototype.getHeading=gh.prototype.um,gh.prototype.getTracking=gh.prototype.Th,gh.prototype.setTracking=gh.prototype.gg,t("ol.easing.easeIn",to),t("ol.easing.easeOut",eo),t("ol.easing.inAndOut",oo),t("ol.easing.linear",io),t("ol.easing.upAndDown",function(t){return t<.5?oo(2*t):1-oo(2*(t-.5))}),t("ol.extent.boundingExtent",P),t("ol.extent.buffer",A),t("ol.extent.containsCoordinate",T),t("ol.extent.containsExtent",N),t("ol.extent.containsXY",j),t("ol.extent.createEmpty",V),t("ol.extent.equals",Z),t("ol.extent.extend",K),t("ol.extent.getArea",q),t("ol.extent.getBottomLeft",J),t("ol.extent.getBottomRight",_),t("ol.extent.getCenter",$),t("ol.extent.getHeight",tt),t("ol.extent.getIntersection",et),t("ol.extent.getSize",function(t){return[t[2]-t[0],t[3]-t[1]]}),t("ol.extent.getTopLeft",ot),t("ol.extent.getTopRight",it),t("ol.extent.getWidth",rt),t("ol.extent.intersects",nt),t("ol.extent.isEmpty",st),t("ol.extent.applyTransform",pt),t("ol.Feature",Ih),Ih.prototype.getGeometry=Ih.prototype.V,Ih.prototype.getId=Ih.prototype.wm,Ih.prototype.getGeometryName=Ih.prototype.Qk,Ih.prototype.getStyle=Ih.prototype.xm,Ih.prototype.getStyleFunction=Ih.prototype.Lc,Ih.prototype.setGeometry=Ih.prototype.Ra,Ih.prototype.setStyle=Ih.prototype.hg,Ih.prototype.setId=Ih.prototype.jc,Ih.prototype.setGeometryName=Ih.prototype.Tc,t("ol.featureloader.xhr",el),t("ol.Geolocation",Xd),Xd.prototype.getAccuracy=Xd.prototype.Dk,Xd.prototype.getAccuracyGeometry=Xd.prototype.Ek,Xd.prototype.getAltitude=Xd.prototype.Gk,Xd.prototype.getAltitudeAccuracy=Xd.prototype.Hk,Xd.prototype.getHeading=Xd.prototype.ym,Xd.prototype.getPosition=Xd.prototype.zm,Xd.prototype.getProjection=Xd.prototype.Uh,Xd.prototype.getSpeed=Xd.prototype.ll,Xd.prototype.getTracking=Xd.prototype.Vh,Xd.prototype.getTrackingOptions=Xd.prototype.Gh,Xd.prototype.setProjection=Xd.prototype.Wh,Xd.prototype.setTracking=Xd.prototype.Ke,Xd.prototype.setTrackingOptions=Xd.prototype.wj,t("ol.Graticule",Kd),Kd.prototype.getMap=Kd.prototype.Cm,Kd.prototype.getMeridians=Kd.prototype.al,Kd.prototype.getParallels=Kd.prototype.hl,t("ol.has.DEVICE_PIXEL_RATIO",Lo),t("ol.has.CANVAS",Io),t("ol.has.DEVICE_ORIENTATION",No),t("ol.has.GEOLOCATION",Fo),t("ol.has.TOUCH",ko),t("ol.has.WEBGL",Xo),_d.prototype.getImage=_d.prototype.Y,ov.prototype.getImage=ov.prototype.Y,t("ol.inherits",e),t("ol.interaction.defaults",Gn),t("ol.Kinetic",kr),t("ol.loadingstrategy.all",hb),t("ol.loadingstrategy.bbox",function(t){return[t]}),t("ol.loadingstrategy.tile",function(i){return function(t,e){e=i.tc(e),t=ee(i,t,e);var o=[];for((e=[e,0,0])[1]=t.ca;e[1]<=t.$;++e[1])for(e[2]=t.da;e[2]<=t.ia;++e[2])o.push(i.Aa(e));return o}}),t("ol.Map",Wp),Wp.prototype.addControl=Wp.prototype.kk,Wp.prototype.addInteraction=Wp.prototype.lk,Wp.prototype.addLayer=Wp.prototype.ih,Wp.prototype.addOverlay=Wp.prototype.jh,Wp.prototype.forEachFeatureAtPixel=Wp.prototype.we,Wp.prototype.forEachLayerAtPixel=Wp.prototype.Im,Wp.prototype.hasFeatureAtPixel=Wp.prototype.Yl,Wp.prototype.getEventCoordinate=Wp.prototype.Tf,Wp.prototype.getEventPixel=Wp.prototype.xe,Wp.prototype.getTarget=Wp.prototype.ag,Wp.prototype.getTargetElement=Wp.prototype.jd,Wp.prototype.getCoordinateFromPixel=Wp.prototype.Wa,Wp.prototype.getControls=Wp.prototype.Lk,Wp.prototype.getOverlays=Wp.prototype.fl,Wp.prototype.getOverlayById=Wp.prototype.el,Wp.prototype.getInteractions=Wp.prototype.Sk,Wp.prototype.getLayerGroup=Wp.prototype.Kc,Wp.prototype.getLayers=Wp.prototype.Xh,Wp.prototype.getPixelFromCoordinate=Wp.prototype.Ja,Wp.prototype.getSize=Wp.prototype.Ob,Wp.prototype.getView=Wp.prototype.Z,Wp.prototype.getViewport=Wp.prototype.sl,Wp.prototype.renderSync=Wp.prototype.Tp,Wp.prototype.removeControl=Wp.prototype.Mp,Wp.prototype.removeInteraction=Wp.prototype.Np,Wp.prototype.removeLayer=Wp.prototype.Pp,Wp.prototype.removeOverlay=Wp.prototype.Qp,Wp.prototype.setLayerGroup=Wp.prototype.qj,Wp.prototype.setSize=Wp.prototype.Qg,Wp.prototype.setTarget=Wp.prototype.Le,Wp.prototype.setView=Wp.prototype.iq,Wp.prototype.updateSize=Wp.prototype.Ad,t("ol.Object",je),je.prototype.getKeys=je.prototype.O,je.prototype.getProperties=je.prototype.N,je.prototype.setProperties=je.prototype.H,je.prototype.unset=je.prototype.P,t("ol.Observable",Te),t("ol.Observable.unByKey",function(t){if(Array.isArray(t))for(var e=0,o=t.length;e<o;++e)me(t[e]);else me(t)}),Te.prototype.changed=Te.prototype.s,Te.prototype.dispatchEvent=Te.prototype.b,Te.prototype.getRevision=Te.prototype.L,Te.prototype.on=Te.prototype.J,Te.prototype.un=Te.prototype.K,t("ol.Overlay",Zp),Zp.prototype.getElement=Zp.prototype.Rd,Zp.prototype.getId=Zp.prototype.Jm,Zp.prototype.getMap=Zp.prototype.Me,Zp.prototype.getOffset=Zp.prototype.Dh,Zp.prototype.getPosition=Zp.prototype.Yh,Zp.prototype.getPositioning=Zp.prototype.Eh,Zp.prototype.setElement=Zp.prototype.lj,Zp.prototype.setOffset=Zp.prototype.rj,Zp.prototype.setPosition=Zp.prototype.Ne,Zp.prototype.setPositioning=Zp.prototype.uj,t("ol.proj.METERS_PER_UNIT",gt),t("ol.proj.setProj4",function(t){dt=t}),t("ol.proj.getPointResolution",Ft),t("ol.proj.addEquivalentProjections",kt),t("ol.proj.addProjection",Dt),t("ol.proj.addCoordinateTransforms",Ut),t("ol.proj.fromLonLat",function(t,e){return zt(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}),t("ol.proj.toLonLat",function(t,e){return zt(t,void 0!==e?e:"EPSG:3857","EPSG:4326")}),t("ol.proj.get",Bt),t("ol.proj.equivalent",Xt),t("ol.proj.getTransform",Vt),t("ol.proj.transform",zt),t("ol.proj.transformExtent",Yt),t("ol.render.toContext",function(t,e){var o=t.canvas,i=e||{};return e=i.pixelRatio||Lo,(i=i.size)&&(o.width=i[0]*e,o.height=i[1]*e,o.style.width=i[0]+"px",o.style.height=i[1]+"px"),new bs(t,e,o=[0,0,o.width,o.height],i=os(qn(),e,e),0)}),t("ol.size.toSize",X),t("ol.Sphere",ft),ft.prototype.geodesicArea=ft.prototype.a,ft.prototype.haversineDistance=ft.prototype.b,Qd.prototype.getTileCoord=Qd.prototype.f,t("ol.tilegrid.createXYZ",ne),lx.prototype.getFormat=lx.prototype.Lm,lx.prototype.getFeatures=lx.prototype.Km,lx.prototype.getProjection=lx.prototype.Mm,lx.prototype.setFeatures=lx.prototype.mj,lx.prototype.setProjection=lx.prototype.ig,lx.prototype.setLoader=lx.prototype.Pg,t("ol.View",Er),Er.prototype.getAnimating=Er.prototype.Ic,Er.prototype.getInteracting=Er.prototype.Rk,Er.prototype.cancelAnimations=Er.prototype.ed,Er.prototype.constrainCenter=Er.prototype.Ec,Er.prototype.getCenter=Er.prototype.wa,Er.prototype.calculateExtent=Er.prototype.dd,Er.prototype.getMaxResolution=Er.prototype.Nm,Er.prototype.getMinResolution=Er.prototype.Pm,Er.prototype.getMaxZoom=Er.prototype.Om,Er.prototype.setMaxZoom=Er.prototype.eq,Er.prototype.getMinZoom=Er.prototype.Qm,Er.prototype.setMinZoom=Er.prototype.fq,Er.prototype.getProjection=Er.prototype.Rm,Er.prototype.getResolution=Er.prototype.Pa,Er.prototype.getResolutions=Er.prototype.Sm,Er.prototype.getResolutionForExtent=Er.prototype.ze,Er.prototype.getRotation=Er.prototype.Qa,Er.prototype.getZoom=Er.prototype.Hh,Er.prototype.getZoomForResolution=Er.prototype.Ce,Er.prototype.fit=Er.prototype.Qf,Er.prototype.centerOn=Er.prototype.uk,Er.prototype.setCenter=Er.prototype.ob,Er.prototype.setResolution=Er.prototype.Vc,Er.prototype.setRotation=Er.prototype.Oe,Er.prototype.setZoom=Er.prototype.lq,t("ol.xml.getAllTextContent",kh),t("ol.xml.parse",Uh),ea.prototype.getGL=ea.prototype.Wo,ea.prototype.useProgram=ea.prototype.Qc,t("ol.tilegrid.TileGrid",Jt),Jt.prototype.forEachTileCoord=Jt.prototype.Rf,Jt.prototype.getMaxZoom=Jt.prototype.Ti,Jt.prototype.getMinZoom=Jt.prototype.Ui,Jt.prototype.getOrigin=Jt.prototype.Pc,Jt.prototype.getResolution=Jt.prototype.Da,Jt.prototype.getResolutions=Jt.prototype.Vi,Jt.prototype.getTileCoordExtent=Jt.prototype.Aa,Jt.prototype.getTileCoordForCoordAndResolution=Jt.prototype.Be,Jt.prototype.getTileCoordForCoordAndZ=Jt.prototype.bg,Jt.prototype.getTileSize=Jt.prototype.gb,Jt.prototype.getZForResolution=Jt.prototype.tc,t("ol.tilegrid.WMTS",cx),cx.prototype.getMatrixIds=cx.prototype.l,t("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",fx),t("ol.style.AtlasManager",Sx),t("ol.style.Circle",Ph),Ph.prototype.setRadius=Ph.prototype.Uc,t("ol.style.Fill",Ah),Ah.prototype.getColor=Ah.prototype.i,Ah.prototype.setColor=Ah.prototype.c,t("ol.style.Icon",qc),qc.prototype.getAnchor=qc.prototype.Hc,qc.prototype.getColor=qc.prototype.Lo,qc.prototype.getImage=qc.prototype.Y,qc.prototype.getOrigin=qc.prototype.Oc,qc.prototype.getSrc=qc.prototype.Mo,qc.prototype.getSize=qc.prototype.ic,t("ol.style.Image",xh),xh.prototype.getOpacity=xh.prototype.Ze,xh.prototype.getRotateWithView=xh.prototype.$e,xh.prototype.getRotation=xh.prototype.af,xh.prototype.getScale=xh.prototype.bf,xh.prototype.getSnapToPixel=xh.prototype.Ae,xh.prototype.setOpacity=xh.prototype.td,xh.prototype.setRotation=xh.prototype.cf,xh.prototype.setScale=xh.prototype.ud,t("ol.style.RegularShape",Sh),Sh.prototype.getAnchor=Sh.prototype.Hc,Sh.prototype.getAngle=Sh.prototype.Pi,Sh.prototype.getFill=Sh.prototype.Fa,Sh.prototype.getImage=Sh.prototype.Y,Sh.prototype.getOrigin=Sh.prototype.Oc,Sh.prototype.getPoints=Sh.prototype.Qi,Sh.prototype.getRadius=Sh.prototype.Ri,Sh.prototype.getRadius2=Sh.prototype.Fh,Sh.prototype.getSize=Sh.prototype.ic,Sh.prototype.getStroke=Sh.prototype.Ga,t("ol.style.Stroke",Ga),Ga.prototype.getColor=Ga.prototype.No,Ga.prototype.getLineCap=Ga.prototype.Vk,Ga.prototype.getLineDash=Ga.prototype.Oo,Ga.prototype.getLineDashOffset=Ga.prototype.Wk,Ga.prototype.getLineJoin=Ga.prototype.Xk,Ga.prototype.getMiterLimit=Ga.prototype.bl,Ga.prototype.getWidth=Ga.prototype.Po,Ga.prototype.setColor=Ga.prototype.Qo,Ga.prototype.setLineCap=Ga.prototype.aq,Ga.prototype.setLineDashOffset=Ga.prototype.bq,Ga.prototype.setLineJoin=Ga.prototype.cq,Ga.prototype.setMiterLimit=Ga.prototype.gq,Ga.prototype.setWidth=Ga.prototype.jq,t("ol.style.Style",Eh),Eh.prototype.getGeometry=Eh.prototype.V,Eh.prototype.getGeometryFunction=Eh.prototype.Pk,Eh.prototype.getFill=Eh.prototype.Fa,Eh.prototype.setFill=Eh.prototype.pf,Eh.prototype.getImage=Eh.prototype.Y,Eh.prototype.setImage=Eh.prototype.Og,Eh.prototype.getStroke=Eh.prototype.Ga,Eh.prototype.setStroke=Eh.prototype.qf,Eh.prototype.getText=Eh.prototype.Na,Eh.prototype.setText=Eh.prototype.xd,Eh.prototype.getZIndex=Eh.prototype.Ba,Eh.prototype.setGeometry=Eh.prototype.Ra,Eh.prototype.setZIndex=Eh.prototype.Vb,t("ol.style.Text",Jc),Jc.prototype.getFont=Jc.prototype.Nk,Jc.prototype.getOffsetX=Jc.prototype.cl,Jc.prototype.getOffsetY=Jc.prototype.dl,Jc.prototype.getFill=Jc.prototype.Fa,Jc.prototype.getRotateWithView=Jc.prototype.Ro,Jc.prototype.getRotation=Jc.prototype.So,Jc.prototype.getScale=Jc.prototype.To,Jc.prototype.getStroke=Jc.prototype.Ga,Jc.prototype.getText=Jc.prototype.Na,Jc.prototype.getTextAlign=Jc.prototype.nl,Jc.prototype.getTextBaseline=Jc.prototype.ol,Jc.prototype.setFont=Jc.prototype.nj,Jc.prototype.setOffsetX=Jc.prototype.sj,Jc.prototype.setOffsetY=Jc.prototype.tj,Jc.prototype.setFill=Jc.prototype.pf,Jc.prototype.setRotation=Jc.prototype.Uo,Jc.prototype.setScale=Jc.prototype.Si,Jc.prototype.setStroke=Jc.prototype.qf,Jc.prototype.setText=Jc.prototype.xd,Jc.prototype.setTextAlign=Jc.prototype.vj,Jc.prototype.setTextBaseline=Jc.prototype.hq,t("ol.source.BingMaps",Sw),t("ol.source.BingMaps.TOS_ATTRIBUTION",Mw),Sw.prototype.getApiKey=Sw.prototype.T,Sw.prototype.getImagerySet=Sw.prototype.fa,t("ol.source.CartoDB",Aw),Aw.prototype.getConfig=Aw.prototype.Kk,Aw.prototype.updateConfig=Aw.prototype.tq,Aw.prototype.setConfig=Aw.prototype.Xp,t("ol.source.Cluster",jw),jw.prototype.getDistance=jw.prototype.$n,jw.prototype.getSource=jw.prototype.ao,jw.prototype.setDistance=jw.prototype.Yp,t("ol.source.Image",Fm),t("ol.source.ImageArcGISRest",Rw),Rw.prototype.getParams=Rw.prototype.co,Rw.prototype.getImageLoadFunction=Rw.prototype.bo,Rw.prototype.getUrl=Rw.prototype.eo,Rw.prototype.setImageLoadFunction=Rw.prototype.fo,Rw.prototype.setUrl=Rw.prototype.ho,Rw.prototype.updateParams=Rw.prototype.io,t("ol.source.ImageCanvas",Xm),t("ol.source.ImageMapGuide",Iw),Iw.prototype.getParams=Iw.prototype.ko,Iw.prototype.getImageLoadFunction=Iw.prototype.jo,Iw.prototype.updateParams=Iw.prototype.mo,Iw.prototype.setImageLoadFunction=Iw.prototype.lo,t("ol.source.ImageStatic",Nw),t("ol.source.ImageVector",Vm),Vm.prototype.getSource=Vm.prototype.no,Vm.prototype.getStyle=Vm.prototype.oo,Vm.prototype.getStyleFunction=Vm.prototype.po,Vm.prototype.setStyle=Vm.prototype.Ii,t("ol.source.ImageWMS",Fw),Fw.prototype.getGetFeatureInfoUrl=Fw.prototype.so,Fw.prototype.getParams=Fw.prototype.uo,Fw.prototype.getImageLoadFunction=Fw.prototype.to,Fw.prototype.getUrl=Fw.prototype.vo,Fw.prototype.setImageLoadFunction=Fw.prototype.wo,Fw.prototype.setUrl=Fw.prototype.xo,Fw.prototype.updateParams=Fw.prototype.yo,t("ol.source.OSM",Uw),t("ol.source.OSM.ATTRIBUTION",Gw),t("ol.source.Raster",Bw),Bw.prototype.setOperation=Bw.prototype.v,t("ol.source.Source",lb),lb.prototype.getAttributions=lb.prototype.ya,lb.prototype.getLogo=lb.prototype.xa,lb.prototype.getProjection=lb.prototype.za,lb.prototype.refresh=lb.prototype.sa,lb.prototype.setAttributions=lb.prototype.ua,t("ol.source.Stamen",Kw),t("ol.source.Tile",cw),cw.prototype.getTileGrid=cw.prototype.ab,t("ol.source.TileArcGISRest",qw),qw.prototype.getParams=qw.prototype.C,qw.prototype.updateParams=qw.prototype.B,t("ol.source.TileDebug",_w),t("ol.source.TileImage",bw),bw.prototype.setRenderReprojectionEdges=bw.prototype.Pb,bw.prototype.setTileGridForProjection=bw.prototype.Qb,t("ol.source.TileJSON",Qw),Qw.prototype.getTileJSON=Qw.prototype.pl,t("ol.source.TileUTFGrid",tx),tx.prototype.getTemplate=tx.prototype.ml,tx.prototype.forDataAtCoordinateAndResolution=tx.prototype.zk,t("ol.source.TileWMS",ix),ix.prototype.getGetFeatureInfoUrl=ix.prototype.Fo,ix.prototype.getParams=ix.prototype.Go,ix.prototype.updateParams=ix.prototype.Ho,vw.prototype.getTileLoadFunction=vw.prototype.pb,vw.prototype.getTileUrlFunction=vw.prototype.qb,vw.prototype.getUrls=vw.prototype.rb,vw.prototype.setTileLoadFunction=vw.prototype.vb,vw.prototype.setTileUrlFunction=vw.prototype.cb,vw.prototype.setUrl=vw.prototype.jb,vw.prototype.setUrls=vw.prototype.eb,t("ol.source.Vector",fb),fb.prototype.addFeature=fb.prototype.yb,fb.prototype.addFeatures=fb.prototype.cd,fb.prototype.forEachFeature=fb.prototype.sh,fb.prototype.forEachFeatureInExtent=fb.prototype.$b,fb.prototype.forEachFeatureIntersectingExtent=fb.prototype.th,fb.prototype.getFeaturesCollection=fb.prototype.Ah,fb.prototype.getFeatures=fb.prototype.Xe,fb.prototype.getFeaturesAtCoordinate=fb.prototype.zh,fb.prototype.getFeaturesInExtent=fb.prototype.Uf,fb.prototype.getClosestFeatureToCoordinate=fb.prototype.vh,fb.prototype.getExtent=fb.prototype.G,fb.prototype.getFeatureById=fb.prototype.yh,fb.prototype.getFormat=fb.prototype.Mi,fb.prototype.getUrl=fb.prototype.Ni,fb.prototype.removeFeature=fb.prototype.Gb,t("ol.source.VectorTile",ux),t("ol.source.WMTS",yx),yx.prototype.getDimensions=yx.prototype.Mk,yx.prototype.getFormat=yx.prototype.Io,yx.prototype.getLayer=yx.prototype.Jo,yx.prototype.getMatrixSet=yx.prototype.$k,yx.prototype.getRequestEncoding=yx.prototype.kl,yx.prototype.getStyle=yx.prototype.Ko,yx.prototype.getVersion=yx.prototype.rl,yx.prototype.updateDimensions=yx.prototype.uq,t("ol.source.WMTS.optionsFromCapabilities",function(t,r){var e=b(t.Contents.Layer,function(t){return t.Identifier==r.layer});if(null===e)return null;var n=t.Contents.TileMatrixSet;(a=1<e.TileMatrixSetLink.length?"projection"in r?m(e.TileMatrixSetLink,function(e){var t=b(n,function(t){return t.Identifier==e.TileMatrixSet}).SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"),o=Bt(t),i=Bt(r.projection);return o&&i?Xt(o,i):t==r.projection}):m(e.TileMatrixSetLink,function(t){return t.TileMatrixSet==r.matrixSet}):0)<0&&(a=0);var o=e.TileMatrixSetLink[a].TileMatrixSet,i=e.TileMatrixSetLink[a].TileMatrixSetLimits,s=e.Format[0];"format"in r&&(s=r.format),(a=m(e.Style,function(t){return"style"in r?t.Title==r.style:t.isDefault}))<0&&(a=0);var a=e.Style[a].Identifier,p={};"Dimension"in e&&e.Dimension.forEach(function(t){var e=t.Identifier,o=t.Default;void 0===o&&(o=t.Value[0]),p[e]=o});var h,l,u=b(t.Contents.TileMatrixSet,function(t){return t.Identifier==o}),c="projection"in r?Bt(r.projection):Bt(u.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3")),f=e.WGS84BoundingBox;void 0!==f&&(h=Bt("EPSG:4326").G(),h=f[0]==h[0]&&f[2]==h[2],l=Yt(f,"EPSG:4326",c),(f=c.G())&&(N(f,l)||(l=void 0)));var i=fx(u,l,i),y=[],u=void 0!==(u=r.requestEncoding)?u:"";if("OperationsMetadata"in t&&"GetTile"in t.OperationsMetadata)for(l=0,f=(t=t.OperationsMetadata.GetTile.DCP.HTTP.Get).length;l<f;++l){var g=b(t[l].Constraint,function(t){return"GetEncoding"==t.name}).AllowedValues.Value;if("KVP"!==(u=""===u?g[0]:u))break;d(g,"KVP")&&y.push(t[l].href)}return y.length||(u="REST",e.ResourceURL.forEach(function(t){"tile"===t.resourceType&&(s=t.format,y.push(t.template))})),{urls:y,layer:r.layer,matrixSet:o,format:s,projection:c,requestEncoding:u,tileGrid:i,style:a,dimensions:p,wrapX:h,crossOrigin:r.crossOrigin}}),t("ol.source.XYZ",Pw),t("ol.source.Zoomify",dx),Uy.prototype.getExtent=Uy.prototype.G,Uy.prototype.getId=Uy.prototype.Wn,Uy.prototype.getGeometry=Uy.prototype.V,Uy.prototype.getProperties=Uy.prototype.Xn,Uy.prototype.getType=Uy.prototype.U,t("ol.render.VectorContext",vs),Dp.prototype.setStyle=Dp.prototype.rd,Dp.prototype.drawGeometry=Dp.prototype.zb,Dp.prototype.drawFeature=Dp.prototype.te,bs.prototype.drawCircle=bs.prototype.Zb,bs.prototype.setStyle=bs.prototype.rd,bs.prototype.drawGeometry=bs.prototype.zb,bs.prototype.drawFeature=bs.prototype.te,t("ol.proj.common.add",Ht),t("ol.proj.Projection",vt),vt.prototype.getCode=vt.prototype.Jk,vt.prototype.getExtent=vt.prototype.G,vt.prototype.getUnits=vt.prototype.Un,vt.prototype.getMetersPerUnit=vt.prototype.sc,vt.prototype.getWorldExtent=vt.prototype.tl,vt.prototype.isGlobal=vt.prototype.dm,vt.prototype.setGlobal=vt.prototype.$p,vt.prototype.setExtent=vt.prototype.Vn,vt.prototype.setWorldExtent=vt.prototype.kq,vt.prototype.setGetPointResolution=vt.prototype.Zp,t("ol.proj.Units.METERS_PER_UNIT",gt),t("ol.layer.Base",Bn),Bn.prototype.getExtent=Bn.prototype.G,Bn.prototype.getMaxResolution=Bn.prototype.fc,Bn.prototype.getMinResolution=Bn.prototype.gc,Bn.prototype.getOpacity=Bn.prototype.hc,Bn.prototype.getVisible=Bn.prototype.Mb,Bn.prototype.getZIndex=Bn.prototype.Ba,Bn.prototype.setExtent=Bn.prototype.vc,Bn.prototype.setMaxResolution=Bn.prototype.Ac,Bn.prototype.setMinResolution=Bn.prototype.Bc,Bn.prototype.setOpacity=Bn.prototype.wc,Bn.prototype.setVisible=Bn.prototype.xc,Bn.prototype.setZIndex=Bn.prototype.Vb,t("ol.layer.Group",Vn),Vn.prototype.getLayers=Vn.prototype.qd,Vn.prototype.setLayers=Vn.prototype.xi,t("ol.layer.Heatmap",xm),xm.prototype.getBlur=xm.prototype.uh,xm.prototype.getGradient=xm.prototype.Bh,xm.prototype.getRadius=xm.prototype.yi,xm.prototype.setBlur=xm.prototype.jj,xm.prototype.setGradient=xm.prototype.pj,xm.prototype.setRadius=xm.prototype.Uc,t("ol.layer.Image",Zm),Zm.prototype.getSource=Zm.prototype.ha,t("ol.layer.Layer",Zn),Zn.prototype.getSource=Zn.prototype.ha,Zn.prototype.setSource=Zn.prototype.Wc,t("ol.layer.Tile",Qm),Qm.prototype.getPreload=Qm.prototype.Ud,Qm.prototype.getSource=Qm.prototype.ha,Qm.prototype.setPreload=Qm.prototype.zi,Qm.prototype.getUseInterimTilesOnError=Qm.prototype.kd,Qm.prototype.setUseInterimTilesOnError=Qm.prototype.Ai,t("ol.layer.Vector",ab),ab.prototype.getSource=ab.prototype.ha,ab.prototype.getStyle=ab.prototype.D,ab.prototype.getStyleFunction=ab.prototype.C,ab.prototype.setStyle=ab.prototype.g,t("ol.layer.VectorTile",iw),iw.prototype.getPreload=iw.prototype.Ud,iw.prototype.getUseInterimTilesOnError=iw.prototype.kd,iw.prototype.setPreload=iw.prototype.Bi,iw.prototype.setUseInterimTilesOnError=iw.prototype.Ci,t("ol.interaction.DoubleClickZoom",Xr),t("ol.interaction.DoubleClickZoom.handleEvent",Vr),t("ol.interaction.DragAndDrop",nv),t("ol.interaction.DragAndDrop.handleEvent",Ui),t("ol.interaction.DragBox",fn),fn.prototype.getGeometry=fn.prototype.V,t("ol.interaction.DragPan",en),t("ol.interaction.DragRotate",sn),t("ol.interaction.DragRotateAndZoom",cv),t("ol.interaction.DragZoom",Sn),t("ol.interaction.Draw",mb),t("ol.interaction.Draw.handleEvent",wb),mb.prototype.removeLastPoint=mb.prototype.Op,mb.prototype.finishDrawing=mb.prototype.Pd,mb.prototype.extend=mb.prototype.vn,t("ol.interaction.Draw.createRegularPolygon",function(r,n){return function(t,e){var o=t[0];t=t[1];var i=Math.sqrt(Fi(o,t));return Ar(e=e||Pr(new Vd(o),r),o,i,n||Math.atan((t[1]-o[1])/(t[0]-o[0]))),e}}),t("ol.interaction.Draw.createBox",function(){return function(t,e){return t=P(t),(e=e||new wr(null)).ma([[J(t),_(t),it(t),ot(t),J(t)]]),e}}),t("ol.interaction.Extent",Fb),Fb.prototype.getExtent=Fb.prototype.G,Fb.prototype.setExtent=Fb.prototype.g,Wb.prototype.extent_=Wb.prototype.b,t("ol.interaction.Interaction",Or),Or.prototype.getActive=Or.prototype.c,Or.prototype.getMap=Or.prototype.f,Or.prototype.setActive=Or.prototype.Ha,t("ol.interaction.KeyboardPan",Mn),t("ol.interaction.KeyboardPan.handleEvent",Pn),t("ol.interaction.KeyboardZoom",An),t("ol.interaction.KeyboardZoom.handleEvent",En),t("ol.interaction.Modify",Kb),t("ol.interaction.Modify.handleEvent",Qb),Kb.prototype.removePoint=Kb.prototype.hj,t("ol.interaction.MouseWheelZoom",Tn),t("ol.interaction.MouseWheelZoom.handleEvent",jn),Tn.prototype.setMouseAnchor=Tn.prototype.T,t("ol.interaction.PinchRotate",Rn),t("ol.interaction.PinchZoom",kn),t("ol.interaction.Pointer",$r),t("ol.interaction.Pointer.handleEvent",tn),t("ol.interaction.Select",nm),nm.prototype.getFeatures=nm.prototype.Gn,nm.prototype.getHitTolerance=nm.prototype.Hn,nm.prototype.getLayer=nm.prototype.In,t("ol.interaction.Select.handleEvent",sm),nm.prototype.setHitTolerance=nm.prototype.Kn,t("ol.interaction.Snap",hm),hm.prototype.addFeature=hm.prototype.yb,hm.prototype.removeFeature=hm.prototype.Gb,t("ol.interaction.Translate",fm),fm.prototype.getHitTolerance=fm.prototype.B,fm.prototype.setHitTolerance=fm.prototype.I,t("ol.geom.Circle",Vd),Vd.prototype.getCenter=Vd.prototype.wa,Vd.prototype.getRadius=Vd.prototype.pd,Vd.prototype.getType=Vd.prototype.U,Vd.prototype.intersectsExtent=Vd.prototype.Xa,Vd.prototype.setCenter=Vd.prototype.ob,Vd.prototype.setCenterAndRadius=Vd.prototype.Ng,Vd.prototype.setRadius=Vd.prototype.Uc,Vd.prototype.transform=Vd.prototype.tb,t("ol.geom.Geometry",Bi),Bi.prototype.getClosestPoint=Bi.prototype.Ab,Bi.prototype.intersectsCoordinate=Bi.prototype.sb,Bi.prototype.getExtent=Bi.prototype.G,Bi.prototype.simplify=Bi.prototype.Rb,Bi.prototype.transform=Bi.prototype.tb,t("ol.geom.GeometryCollection",_l),_l.prototype.getGeometries=_l.prototype.Vf,_l.prototype.getType=_l.prototype.U,_l.prototype.intersectsExtent=_l.prototype.Xa,_l.prototype.setGeometries=_l.prototype.oj,_l.prototype.applyTransform=_l.prototype.Dc,t("ol.geom.LinearRing",ar),ar.prototype.getArea=ar.prototype.qn,ar.prototype.getCoordinates=ar.prototype.X,ar.prototype.getType=ar.prototype.U,ar.prototype.setCoordinates=ar.prototype.ma,t("ol.geom.LineString",ll),ll.prototype.appendCoordinate=ll.prototype.mk,ll.prototype.forEachSegment=ll.prototype.Ck,ll.prototype.getCoordinateAtM=ll.prototype.nn,ll.prototype.getCoordinates=ll.prototype.X,ll.prototype.getCoordinateAt=ll.prototype.wh,ll.prototype.getLength=ll.prototype.pn,ll.prototype.getType=ll.prototype.U,ll.prototype.intersectsExtent=ll.prototype.Xa,ll.prototype.setCoordinates=ll.prototype.ma,t("ol.geom.MultiLineString",cl),cl.prototype.appendLineString=cl.prototype.nk,cl.prototype.getCoordinateAtM=cl.prototype.rn,cl.prototype.getCoordinates=cl.prototype.X,cl.prototype.getLineString=cl.prototype.Yk,cl.prototype.getLineStrings=cl.prototype.gd,cl.prototype.getType=cl.prototype.U,cl.prototype.intersectsExtent=cl.prototype.Xa,cl.prototype.setCoordinates=cl.prototype.ma,t("ol.geom.MultiPoint",gl),gl.prototype.appendPoint=gl.prototype.qk,gl.prototype.getCoordinates=gl.prototype.X,gl.prototype.getPoint=gl.prototype.il,gl.prototype.getPoints=gl.prototype.Zd,gl.prototype.getType=gl.prototype.U,gl.prototype.intersectsExtent=gl.prototype.Xa,gl.prototype.setCoordinates=gl.prototype.ma,t("ol.geom.MultiPolygon",dl),dl.prototype.appendPolygon=dl.prototype.rk,dl.prototype.getArea=dl.prototype.sn,dl.prototype.getCoordinates=dl.prototype.X,dl.prototype.getInteriorPoints=dl.prototype.Uk,dl.prototype.getPolygon=dl.prototype.jl,dl.prototype.getPolygons=dl.prototype.Td,dl.prototype.getType=dl.prototype.U,dl.prototype.intersectsExtent=dl.prototype.Xa,dl.prototype.setCoordinates=dl.prototype.ma,t("ol.geom.Point",hr),hr.prototype.getCoordinates=hr.prototype.X,hr.prototype.getType=hr.prototype.U,hr.prototype.intersectsExtent=hr.prototype.Xa,hr.prototype.setCoordinates=hr.prototype.ma,t("ol.geom.Polygon",wr),wr.prototype.appendLinearRing=wr.prototype.pk,wr.prototype.getArea=wr.prototype.tn,wr.prototype.getCoordinates=wr.prototype.X,wr.prototype.getInteriorPoint=wr.prototype.Tk,wr.prototype.getLinearRingCount=wr.prototype.Zk,wr.prototype.getLinearRing=wr.prototype.Ch,wr.prototype.getLinearRings=wr.prototype.Sd,wr.prototype.getType=wr.prototype.U,wr.prototype.intersectsExtent=wr.prototype.Xa,wr.prototype.setCoordinates=wr.prototype.ma,t("ol.geom.Polygon.circular",Sr),t("ol.geom.Polygon.fromExtent",Mr),t("ol.geom.Polygon.fromCircle",Pr),t("ol.geom.SimpleGeometry",Wi),Wi.prototype.getFirstCoordinate=Wi.prototype.ac,Wi.prototype.getLastCoordinate=Wi.prototype.bc,Wi.prototype.getLayout=Wi.prototype.cc,Wi.prototype.applyTransform=Wi.prototype.Dc,t("ol.format.EsriJSON",xl),xl.prototype.readFeature=xl.prototype.Tb,xl.prototype.readFeatures=xl.prototype.Oa,xl.prototype.readGeometry=xl.prototype.Sc,xl.prototype.readProjection=xl.prototype.kb,xl.prototype.writeGeometry=xl.prototype.$c,xl.prototype.writeGeometryObject=xl.prototype.je,xl.prototype.writeFeature=xl.prototype.Bd,xl.prototype.writeFeatureObject=xl.prototype.Zc,xl.prototype.writeFeatures=xl.prototype.Wb,xl.prototype.writeFeaturesObject=xl.prototype.he,t("ol.format.Feature",ol),t("ol.format.filter.and",ql),t("ol.format.filter.or",function(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(Yl,e))}),t("ol.format.filter.not",function(t){return new Kl(t)}),t("ol.format.filter.bbox",Jl),t("ol.format.filter.intersects",function(t,e,o){return new Gl(t,e,o)}),t("ol.format.filter.within",function(t,e,o){return new Hl(t,e,o)}),t("ol.format.filter.equalTo",function(t,e,o){return new kl(t,e,o)}),t("ol.format.filter.notEqualTo",function(t,e,o){return new zl(t,e,o)}),t("ol.format.filter.lessThan",function(t,e){return new Wl(t,e)}),t("ol.format.filter.lessThanOrEqualTo",function(t,e){return new Zl(t,e)}),t("ol.format.filter.greaterThan",function(t,e){return new Dl(t,e)}),t("ol.format.filter.greaterThanOrEqualTo",function(t,e){return new Ol(t,e)}),t("ol.format.filter.isNull",function(t){return new Vl(t)}),t("ol.format.filter.between",function(t,e,o){return new Bl(t,e,o)}),t("ol.format.filter.like",function(t,e,o,i,r,n){return new Xl(t,e,o,i,r,n)}),t("ol.format.filter.during",function(t,e,o){return new Nl(t,e,o)}),t("ol.format.GeoJSON",eu),eu.prototype.readFeature=eu.prototype.Tb,eu.prototype.readFeatures=eu.prototype.Oa,eu.prototype.readGeometry=eu.prototype.Sc,eu.prototype.readProjection=eu.prototype.kb,eu.prototype.writeFeature=eu.prototype.Bd,eu.prototype.writeFeatureObject=eu.prototype.Zc,eu.prototype.writeFeatures=eu.prototype.Wb,eu.prototype.writeFeaturesObject=eu.prototype.he,eu.prototype.writeGeometry=eu.prototype.$c,eu.prototype.writeGeometryObject=eu.prototype.je,t("ol.format.GML",Mu),Mu.prototype.writeFeatures=Mu.prototype.Wb,Mu.prototype.writeFeaturesNode=Mu.prototype.Xb,t("ol.format.GML2",Nu),t("ol.format.GML3",Mu),Mu.prototype.writeGeometryNode=Mu.prototype.ie,Mu.prototype.writeFeatures=Mu.prototype.Wb,Mu.prototype.writeFeaturesNode=Mu.prototype.Xb,hu.prototype.readFeatures=hu.prototype.Oa,t("ol.format.GPX",Zu),Zu.prototype.readFeature=Zu.prototype.Tb,Zu.prototype.readFeatures=Zu.prototype.Oa,Zu.prototype.readProjection=Zu.prototype.kb,Zu.prototype.writeFeatures=Zu.prototype.Wb,Zu.prototype.writeFeaturesNode=Zu.prototype.Xb,t("ol.format.IGC",Tc),Tc.prototype.readFeature=Tc.prototype.Tb,Tc.prototype.readFeatures=Tc.prototype.Oa,Tc.prototype.readProjection=Tc.prototype.kb,t("ol.format.KML",_c),_c.prototype.readFeature=_c.prototype.Tb,_c.prototype.readFeatures=_c.prototype.Oa,_c.prototype.readName=_c.prototype.Cp,_c.prototype.readNetworkLinks=_c.prototype.Dp,_c.prototype.readRegion=_c.prototype.Gp,_c.prototype.readRegionFromNode=_c.prototype.lf,_c.prototype.readProjection=_c.prototype.kb,_c.prototype.writeFeatures=_c.prototype.Wb,_c.prototype.writeFeaturesNode=_c.prototype.Xb,t("ol.format.MVT",Gy),Gy.prototype.readFeatures=Gy.prototype.Oa,Gy.prototype.readProjection=Gy.prototype.kb,Gy.prototype.setLayers=Gy.prototype.mn,t("ol.format.OSMXML",Xy),Xy.prototype.readFeatures=Xy.prototype.Oa,Xy.prototype.readProjection=Xy.prototype.kb,t("ol.format.Polyline",ug),t("ol.format.Polyline.encodeDeltas",cg),t("ol.format.Polyline.decodeDeltas",fg),t("ol.format.Polyline.encodeFloats",yg),t("ol.format.Polyline.decodeFloats",gg),ug.prototype.readFeature=ug.prototype.Tb,ug.prototype.readFeatures=ug.prototype.Oa,ug.prototype.readGeometry=ug.prototype.Sc,ug.prototype.readProjection=ug.prototype.kb,ug.prototype.writeGeometry=ug.prototype.$c,t("ol.format.TopoJSON",dg),dg.prototype.readFeatures=dg.prototype.Oa,dg.prototype.readProjection=dg.prototype.kb,t("ol.format.WFS",xg),xg.prototype.readFeatures=xg.prototype.Oa,xg.prototype.readTransactionResponse=xg.prototype.j,xg.prototype.readFeatureCollectionMetadata=xg.prototype.g,t("ol.format.WFS.writeFilter",function(t){var e=Fh("http://www.opengis.net/ogc","Filter");return Qh({node:e},Xg,zh(t.kc),[t],[]),e}),xg.prototype.writeGetFeature=xg.prototype.l,xg.prototype.writeTransaction=xg.prototype.v,xg.prototype.readProjection=xg.prototype.kb,t("ol.format.WKT",Vg),Vg.prototype.readFeature=Vg.prototype.Tb,Vg.prototype.readFeatures=Vg.prototype.Oa,Vg.prototype.readGeometry=Vg.prototype.Sc,Vg.prototype.writeFeature=Vg.prototype.Bd,Vg.prototype.writeFeatures=Vg.prototype.Wb,Vg.prototype.writeGeometry=Vg.prototype.$c,t("ol.format.WMSCapabilities",nd),t("ol.format.WMSGetFeatureInfo",Td),Td.prototype.readFeatures=Td.prototype.Oa,t("ol.format.WMTSCapabilities",jd),t("ol.format.filter.And",Ll),t("ol.format.filter.Bbox",Rl),t("ol.format.filter.Comparison",Il),t("ol.format.filter.ComparisonBinary",Fl),t("ol.format.filter.During",Nl),t("ol.format.filter.EqualTo",kl),t("ol.format.filter.Filter",jl),t("ol.format.filter.GreaterThan",Dl),t("ol.format.filter.GreaterThanOrEqualTo",Ol),t("ol.format.filter.Intersects",Gl),t("ol.format.filter.IsBetween",Bl),t("ol.format.filter.IsLike",Xl),t("ol.format.filter.IsNull",Vl),t("ol.format.filter.LessThan",Wl),t("ol.format.filter.LessThanOrEqualTo",Zl),t("ol.format.filter.Not",Kl),t("ol.format.filter.NotEqualTo",zl),t("ol.format.filter.Or",Yl),t("ol.format.filter.Spatial",Ul),t("ol.format.filter.Within",Hl),t("ol.events.condition.altKeyOnly",function(t){return(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}),t("ol.events.condition.altShiftKeysOnly",Wr),t("ol.events.condition.always",Ui),t("ol.events.condition.click",function(t){return"click"==t.type}),t("ol.events.condition.never",Gi),t("ol.events.condition.pointerMove",Kr),t("ol.events.condition.singleClick",zr),t("ol.events.condition.doubleClick",function(t){return"dblclick"==t.type}),t("ol.events.condition.noModifierKeys",Yr),t("ol.events.condition.platformModifierKeyOnly",function(t){return!(t=t.originalEvent).altKey&&(Co?t.metaKey:t.ctrlKey)&&!t.shiftKey}),t("ol.events.condition.shiftKeyOnly",Hr),t("ol.events.condition.targetNotEditable",qr),t("ol.events.condition.mouseOnly",Jr),t("ol.events.condition.primaryAction",_r),t("ol.control.Attribution",_e),t("ol.control.Attribution.render",$e),_e.prototype.getCollapsible=_e.prototype.Um,_e.prototype.setCollapsible=_e.prototype.Xm,_e.prototype.setCollapsed=_e.prototype.Wm,_e.prototype.getCollapsed=_e.prototype.Tm,t("ol.control.Control",Je),Je.prototype.getMap=Je.prototype.g,Je.prototype.setTarget=Je.prototype.f,t("ol.control.FullScreen",po),t("ol.control.MousePosition",yo),t("ol.control.MousePosition.render",go),yo.prototype.getCoordinateFormat=yo.prototype.xh,yo.prototype.getProjection=yo.prototype.Zh,yo.prototype.setCoordinateFormat=yo.prototype.kj,yo.prototype.setProjection=yo.prototype.$h,t("ol.control.OverviewMap",Qp),t("ol.control.OverviewMap.render",th),Qp.prototype.getCollapsible=Qp.prototype.$m,Qp.prototype.setCollapsible=Qp.prototype.cn,Qp.prototype.setCollapsed=Qp.prototype.bn,Qp.prototype.getCollapsed=Qp.prototype.Zm,Qp.prototype.getOverviewMap=Qp.prototype.gl,t("ol.control.Rotate",ro),t("ol.control.Rotate.render",no),t("ol.control.ScaleLine",rh),rh.prototype.getUnits=rh.prototype.C,t("ol.control.ScaleLine.render",sh),rh.prototype.setUnits=rh.prototype.I,t("ol.control.Zoom",so),t("ol.control.ZoomSlider",hh),t("ol.control.ZoomSlider.render",uh),t("ol.control.ZoomToExtent",yh),je.prototype.changed=je.prototype.s,je.prototype.dispatchEvent=je.prototype.b,je.prototype.getRevision=je.prototype.L,je.prototype.on=je.prototype.J,je.prototype.un=je.prototype.K,Ne.prototype.getKeys=Ne.prototype.O,Ne.prototype.getProperties=Ne.prototype.N,Ne.prototype.setProperties=Ne.prototype.H,Ne.prototype.unset=Ne.prototype.P,Ne.prototype.changed=Ne.prototype.s,Ne.prototype.dispatchEvent=Ne.prototype.b,Ne.prototype.getRevision=Ne.prototype.L,Ne.prototype.on=Ne.prototype.J,Ne.prototype.un=Ne.prototype.K,gh.prototype.getKeys=gh.prototype.O,gh.prototype.getProperties=gh.prototype.N,gh.prototype.setProperties=gh.prototype.H,gh.prototype.unset=gh.prototype.P,gh.prototype.changed=gh.prototype.s,gh.prototype.dispatchEvent=gh.prototype.b,gh.prototype.getRevision=gh.prototype.L,gh.prototype.on=gh.prototype.J,gh.prototype.un=gh.prototype.K,Ih.prototype.getKeys=Ih.prototype.O,Ih.prototype.getProperties=Ih.prototype.N,Ih.prototype.setProperties=Ih.prototype.H,Ih.prototype.unset=Ih.prototype.P,Ih.prototype.changed=Ih.prototype.s,Ih.prototype.dispatchEvent=Ih.prototype.b,Ih.prototype.getRevision=Ih.prototype.L,Ih.prototype.on=Ih.prototype.J,Ih.prototype.un=Ih.prototype.K,Xd.prototype.getKeys=Xd.prototype.O,Xd.prototype.getProperties=Xd.prototype.N,Xd.prototype.setProperties=Xd.prototype.H,Xd.prototype.unset=Xd.prototype.P,Xd.prototype.changed=Xd.prototype.s,Xd.prototype.dispatchEvent=Xd.prototype.b,Xd.prototype.getRevision=Xd.prototype.L,Xd.prototype.on=Xd.prototype.J,Xd.prototype.un=Xd.prototype.K,ov.prototype.getTileCoord=ov.prototype.f,Wp.prototype.getKeys=Wp.prototype.O,Wp.prototype.getProperties=Wp.prototype.N,Wp.prototype.setProperties=Wp.prototype.H,Wp.prototype.unset=Wp.prototype.P,Wp.prototype.changed=Wp.prototype.s,Wp.prototype.dispatchEvent=Wp.prototype.b,Wp.prototype.getRevision=Wp.prototype.L,Wp.prototype.on=Wp.prototype.J,Wp.prototype.un=Wp.prototype.K,Zp.prototype.getKeys=Zp.prototype.O,Zp.prototype.getProperties=Zp.prototype.N,Zp.prototype.setProperties=Zp.prototype.H,Zp.prototype.unset=Zp.prototype.P,Zp.prototype.changed=Zp.prototype.s,Zp.prototype.dispatchEvent=Zp.prototype.b,Zp.prototype.getRevision=Zp.prototype.L,Zp.prototype.on=Zp.prototype.J,Zp.prototype.un=Zp.prototype.K,px.prototype.getTileCoord=px.prototype.f,lx.prototype.getTileCoord=lx.prototype.f,Er.prototype.getKeys=Er.prototype.O,Er.prototype.getProperties=Er.prototype.N,Er.prototype.setProperties=Er.prototype.H,Er.prototype.unset=Er.prototype.P,Er.prototype.changed=Er.prototype.s,Er.prototype.dispatchEvent=Er.prototype.b,Er.prototype.getRevision=Er.prototype.L,Er.prototype.on=Er.prototype.J,Er.prototype.un=Er.prototype.K,cx.prototype.forEachTileCoord=cx.prototype.Rf,cx.prototype.getMaxZoom=cx.prototype.Ti,cx.prototype.getMinZoom=cx.prototype.Ui,cx.prototype.getOrigin=cx.prototype.Pc,cx.prototype.getResolution=cx.prototype.Da,cx.prototype.getResolutions=cx.prototype.Vi,cx.prototype.getTileCoordExtent=cx.prototype.Aa,cx.prototype.getTileCoordForCoordAndResolution=cx.prototype.Be,cx.prototype.getTileCoordForCoordAndZ=cx.prototype.bg,cx.prototype.getTileSize=cx.prototype.gb,cx.prototype.getZForResolution=cx.prototype.tc,Sh.prototype.getOpacity=Sh.prototype.Ze,Sh.prototype.getRotateWithView=Sh.prototype.$e,Sh.prototype.getRotation=Sh.prototype.af,Sh.prototype.getScale=Sh.prototype.bf,Sh.prototype.getSnapToPixel=Sh.prototype.Ae,Sh.prototype.setOpacity=Sh.prototype.td,Sh.prototype.setRotation=Sh.prototype.cf,Sh.prototype.setScale=Sh.prototype.ud,Ph.prototype.getAngle=Ph.prototype.Pi,Ph.prototype.getFill=Ph.prototype.Fa,Ph.prototype.getPoints=Ph.prototype.Qi,Ph.prototype.getRadius=Ph.prototype.Ri,Ph.prototype.getRadius2=Ph.prototype.Fh,Ph.prototype.getStroke=Ph.prototype.Ga,Ph.prototype.getOpacity=Ph.prototype.Ze,Ph.prototype.getRotateWithView=Ph.prototype.$e,Ph.prototype.getRotation=Ph.prototype.af,Ph.prototype.getScale=Ph.prototype.bf,Ph.prototype.getSnapToPixel=Ph.prototype.Ae,Ph.prototype.setOpacity=Ph.prototype.td,Ph.prototype.setRotation=Ph.prototype.cf,Ph.prototype.setScale=Ph.prototype.ud,qc.prototype.getOpacity=qc.prototype.Ze,qc.prototype.getRotateWithView=qc.prototype.$e,qc.prototype.getRotation=qc.prototype.af,qc.prototype.getScale=qc.prototype.bf,qc.prototype.getSnapToPixel=qc.prototype.Ae,qc.prototype.setOpacity=qc.prototype.td,qc.prototype.setRotation=qc.prototype.cf,qc.prototype.setScale=qc.prototype.ud,lb.prototype.getKeys=lb.prototype.O,lb.prototype.getProperties=lb.prototype.N,lb.prototype.setProperties=lb.prototype.H,lb.prototype.unset=lb.prototype.P,lb.prototype.changed=lb.prototype.s,lb.prototype.dispatchEvent=lb.prototype.b,lb.prototype.getRevision=lb.prototype.L,lb.prototype.on=lb.prototype.J,lb.prototype.un=lb.prototype.K,cw.prototype.getAttributions=cw.prototype.ya,cw.prototype.getLogo=cw.prototype.xa,cw.prototype.getProjection=cw.prototype.za,cw.prototype.refresh=cw.prototype.sa,cw.prototype.setAttributions=cw.prototype.ua,cw.prototype.getKeys=cw.prototype.O,cw.prototype.getProperties=cw.prototype.N,cw.prototype.setProperties=cw.prototype.H,cw.prototype.unset=cw.prototype.P,cw.prototype.changed=cw.prototype.s,cw.prototype.dispatchEvent=cw.prototype.b,cw.prototype.getRevision=cw.prototype.L,cw.prototype.on=cw.prototype.J,cw.prototype.un=cw.prototype.K,vw.prototype.getTileGrid=vw.prototype.ab,vw.prototype.refresh=vw.prototype.sa,vw.prototype.getAttributions=vw.prototype.ya,vw.prototype.getLogo=vw.prototype.xa,vw.prototype.getProjection=vw.prototype.za,vw.prototype.setAttributions=vw.prototype.ua,vw.prototype.getKeys=vw.prototype.O,vw.prototype.getProperties=vw.prototype.N,vw.prototype.setProperties=vw.prototype.H,vw.prototype.unset=vw.prototype.P,vw.prototype.changed=vw.prototype.s,vw.prototype.dispatchEvent=vw.prototype.b,vw.prototype.getRevision=vw.prototype.L,vw.prototype.on=vw.prototype.J,vw.prototype.un=vw.prototype.K,bw.prototype.getTileLoadFunction=bw.prototype.pb,bw.prototype.getTileUrlFunction=bw.prototype.qb,bw.prototype.getUrls=bw.prototype.rb,bw.prototype.setTileLoadFunction=bw.prototype.vb,bw.prototype.setTileUrlFunction=bw.prototype.cb,bw.prototype.setUrl=bw.prototype.jb,bw.prototype.setUrls=bw.prototype.eb,bw.prototype.getTileGrid=bw.prototype.ab,bw.prototype.refresh=bw.prototype.sa,bw.prototype.getAttributions=bw.prototype.ya,bw.prototype.getLogo=bw.prototype.xa,bw.prototype.getProjection=bw.prototype.za,bw.prototype.setAttributions=bw.prototype.ua,bw.prototype.getKeys=bw.prototype.O,bw.prototype.getProperties=bw.prototype.N,bw.prototype.setProperties=bw.prototype.H,bw.prototype.unset=bw.prototype.P,bw.prototype.changed=bw.prototype.s,bw.prototype.dispatchEvent=bw.prototype.b,bw.prototype.getRevision=bw.prototype.L,bw.prototype.on=bw.prototype.J,bw.prototype.un=bw.prototype.K,Sw.prototype.setRenderReprojectionEdges=Sw.prototype.Pb,Sw.prototype.setTileGridForProjection=Sw.prototype.Qb,Sw.prototype.getTileLoadFunction=Sw.prototype.pb,Sw.prototype.getTileUrlFunction=Sw.prototype.qb,Sw.prototype.getUrls=Sw.prototype.rb,Sw.prototype.setTileLoadFunction=Sw.prototype.vb,Sw.prototype.setTileUrlFunction=Sw.prototype.cb,Sw.prototype.setUrl=Sw.prototype.jb,Sw.prototype.setUrls=Sw.prototype.eb,Sw.prototype.getTileGrid=Sw.prototype.ab,Sw.prototype.refresh=Sw.prototype.sa,Sw.prototype.getAttributions=Sw.prototype.ya,Sw.prototype.getLogo=Sw.prototype.xa,Sw.prototype.getProjection=Sw.prototype.za,Sw.prototype.setAttributions=Sw.prototype.ua,Sw.prototype.getKeys=Sw.prototype.O,Sw.prototype.getProperties=Sw.prototype.N,Sw.prototype.setProperties=Sw.prototype.H,Sw.prototype.unset=Sw.prototype.P,Sw.prototype.changed=Sw.prototype.s,Sw.prototype.dispatchEvent=Sw.prototype.b,Sw.prototype.getRevision=Sw.prototype.L,Sw.prototype.on=Sw.prototype.J,Sw.prototype.un=Sw.prototype.K,Pw.prototype.setRenderReprojectionEdges=Pw.prototype.Pb,Pw.prototype.setTileGridForProjection=Pw.prototype.Qb,Pw.prototype.getTileLoadFunction=Pw.prototype.pb,Pw.prototype.getTileUrlFunction=Pw.prototype.qb,Pw.prototype.getUrls=Pw.prototype.rb,Pw.prototype.setTileLoadFunction=Pw.prototype.vb,Pw.prototype.setTileUrlFunction=Pw.prototype.cb,Pw.prototype.setUrl=Pw.prototype.jb,Pw.prototype.setUrls=Pw.prototype.eb,Pw.prototype.getTileGrid=Pw.prototype.ab,Pw.prototype.refresh=Pw.prototype.sa,Pw.prototype.getAttributions=Pw.prototype.ya,Pw.prototype.getLogo=Pw.prototype.xa,Pw.prototype.getProjection=Pw.prototype.za,Pw.prototype.setAttributions=Pw.prototype.ua,Pw.prototype.getKeys=Pw.prototype.O,Pw.prototype.getProperties=Pw.prototype.N,Pw.prototype.setProperties=Pw.prototype.H,Pw.prototype.unset=Pw.prototype.P,Pw.prototype.changed=Pw.prototype.s,Pw.prototype.dispatchEvent=Pw.prototype.b,Pw.prototype.getRevision=Pw.prototype.L,Pw.prototype.on=Pw.prototype.J,Pw.prototype.un=Pw.prototype.K,Aw.prototype.setRenderReprojectionEdges=Aw.prototype.Pb,Aw.prototype.setTileGridForProjection=Aw.prototype.Qb,Aw.prototype.getTileLoadFunction=Aw.prototype.pb,Aw.prototype.getTileUrlFunction=Aw.prototype.qb,Aw.prototype.getUrls=Aw.prototype.rb,Aw.prototype.setTileLoadFunction=Aw.prototype.vb,Aw.prototype.setTileUrlFunction=Aw.prototype.cb,Aw.prototype.setUrl=Aw.prototype.jb,Aw.prototype.setUrls=Aw.prototype.eb,Aw.prototype.getTileGrid=Aw.prototype.ab,Aw.prototype.refresh=Aw.prototype.sa,Aw.prototype.getAttributions=Aw.prototype.ya,Aw.prototype.getLogo=Aw.prototype.xa,Aw.prototype.getProjection=Aw.prototype.za,Aw.prototype.setAttributions=Aw.prototype.ua,Aw.prototype.getKeys=Aw.prototype.O,Aw.prototype.getProperties=Aw.prototype.N,Aw.prototype.setProperties=Aw.prototype.H,Aw.prototype.unset=Aw.prototype.P,Aw.prototype.changed=Aw.prototype.s,Aw.prototype.dispatchEvent=Aw.prototype.b,Aw.prototype.getRevision=Aw.prototype.L,Aw.prototype.on=Aw.prototype.J,Aw.prototype.un=Aw.prototype.K,fb.prototype.getAttributions=fb.prototype.ya,fb.prototype.getLogo=fb.prototype.xa,fb.prototype.getProjection=fb.prototype.za,fb.prototype.refresh=fb.prototype.sa,fb.prototype.setAttributions=fb.prototype.ua,fb.prototype.getKeys=fb.prototype.O,fb.prototype.getProperties=fb.prototype.N,fb.prototype.setProperties=fb.prototype.H,fb.prototype.unset=fb.prototype.P,fb.prototype.changed=fb.prototype.s,fb.prototype.dispatchEvent=fb.prototype.b,fb.prototype.getRevision=fb.prototype.L,fb.prototype.on=fb.prototype.J,fb.prototype.un=fb.prototype.K,jw.prototype.addFeature=jw.prototype.yb,jw.prototype.addFeatures=jw.prototype.cd,jw.prototype.forEachFeature=jw.prototype.sh,jw.prototype.forEachFeatureInExtent=jw.prototype.$b,jw.prototype.forEachFeatureIntersectingExtent=jw.prototype.th,jw.prototype.getFeaturesCollection=jw.prototype.Ah,jw.prototype.getFeatures=jw.prototype.Xe,jw.prototype.getFeaturesAtCoordinate=jw.prototype.zh,jw.prototype.getFeaturesInExtent=jw.prototype.Uf,jw.prototype.getClosestFeatureToCoordinate=jw.prototype.vh,jw.prototype.getExtent=jw.prototype.G,jw.prototype.getFeatureById=jw.prototype.yh,jw.prototype.getFormat=jw.prototype.Mi,jw.prototype.getUrl=jw.prototype.Ni,jw.prototype.removeFeature=jw.prototype.Gb,jw.prototype.getAttributions=jw.prototype.ya,jw.prototype.getLogo=jw.prototype.xa,jw.prototype.getProjection=jw.prototype.za,jw.prototype.refresh=jw.prototype.sa,jw.prototype.setAttributions=jw.prototype.ua,jw.prototype.getKeys=jw.prototype.O,jw.prototype.getProperties=jw.prototype.N,jw.prototype.setProperties=jw.prototype.H,jw.prototype.unset=jw.prototype.P,jw.prototype.changed=jw.prototype.s,jw.prototype.dispatchEvent=jw.prototype.b,jw.prototype.getRevision=jw.prototype.L,jw.prototype.on=jw.prototype.J,jw.prototype.un=jw.prototype.K,Fm.prototype.getAttributions=Fm.prototype.ya,Fm.prototype.getLogo=Fm.prototype.xa,Fm.prototype.getProjection=Fm.prototype.za,Fm.prototype.refresh=Fm.prototype.sa,Fm.prototype.setAttributions=Fm.prototype.ua,Fm.prototype.getKeys=Fm.prototype.O,Fm.prototype.getProperties=Fm.prototype.N,Fm.prototype.setProperties=Fm.prototype.H,Fm.prototype.unset=Fm.prototype.P,Fm.prototype.changed=Fm.prototype.s,Fm.prototype.dispatchEvent=Fm.prototype.b,Fm.prototype.getRevision=Fm.prototype.L,Fm.prototype.on=Fm.prototype.J,Fm.prototype.un=Fm.prototype.K,Rw.prototype.getAttributions=Rw.prototype.ya,Rw.prototype.getLogo=Rw.prototype.xa,Rw.prototype.getProjection=Rw.prototype.za,Rw.prototype.refresh=Rw.prototype.sa,Rw.prototype.setAttributions=Rw.prototype.ua,Rw.prototype.getKeys=Rw.prototype.O,Rw.prototype.getProperties=Rw.prototype.N,Rw.prototype.setProperties=Rw.prototype.H,Rw.prototype.unset=Rw.prototype.P,Rw.prototype.changed=Rw.prototype.s,Rw.prototype.dispatchEvent=Rw.prototype.b,Rw.prototype.getRevision=Rw.prototype.L,Rw.prototype.on=Rw.prototype.J,Rw.prototype.un=Rw.prototype.K,Xm.prototype.getAttributions=Xm.prototype.ya,Xm.prototype.getLogo=Xm.prototype.xa,Xm.prototype.getProjection=Xm.prototype.za,Xm.prototype.refresh=Xm.prototype.sa,Xm.prototype.setAttributions=Xm.prototype.ua,Xm.prototype.getKeys=Xm.prototype.O,Xm.prototype.getProperties=Xm.prototype.N,Xm.prototype.setProperties=Xm.prototype.H,Xm.prototype.unset=Xm.prototype.P,Xm.prototype.changed=Xm.prototype.s,Xm.prototype.dispatchEvent=Xm.prototype.b,Xm.prototype.getRevision=Xm.prototype.L,Xm.prototype.on=Xm.prototype.J,Xm.prototype.un=Xm.prototype.K,Iw.prototype.getAttributions=Iw.prototype.ya,Iw.prototype.getLogo=Iw.prototype.xa,Iw.prototype.getProjection=Iw.prototype.za,Iw.prototype.refresh=Iw.prototype.sa,Iw.prototype.setAttributions=Iw.prototype.ua,Iw.prototype.getKeys=Iw.prototype.O,Iw.prototype.getProperties=Iw.prototype.N,Iw.prototype.setProperties=Iw.prototype.H,Iw.prototype.unset=Iw.prototype.P,Iw.prototype.changed=Iw.prototype.s,Iw.prototype.dispatchEvent=Iw.prototype.b,Iw.prototype.getRevision=Iw.prototype.L,Iw.prototype.on=Iw.prototype.J,Iw.prototype.un=Iw.prototype.K,Nw.prototype.getAttributions=Nw.prototype.ya,Nw.prototype.getLogo=Nw.prototype.xa,Nw.prototype.getProjection=Nw.prototype.za,Nw.prototype.refresh=Nw.prototype.sa,Nw.prototype.setAttributions=Nw.prototype.ua,Nw.prototype.getKeys=Nw.prototype.O,Nw.prototype.getProperties=Nw.prototype.N,Nw.prototype.setProperties=Nw.prototype.H,Nw.prototype.unset=Nw.prototype.P,Nw.prototype.changed=Nw.prototype.s,Nw.prototype.dispatchEvent=Nw.prototype.b,Nw.prototype.getRevision=Nw.prototype.L,Nw.prototype.on=Nw.prototype.J,Nw.prototype.un=Nw.prototype.K,Vm.prototype.getAttributions=Vm.prototype.ya,Vm.prototype.getLogo=Vm.prototype.xa,Vm.prototype.getProjection=Vm.prototype.za,Vm.prototype.refresh=Vm.prototype.sa,Vm.prototype.setAttributions=Vm.prototype.ua,Vm.prototype.getKeys=Vm.prototype.O,Vm.prototype.getProperties=Vm.prototype.N,Vm.prototype.setProperties=Vm.prototype.H,Vm.prototype.unset=Vm.prototype.P,Vm.prototype.changed=Vm.prototype.s,Vm.prototype.dispatchEvent=Vm.prototype.b,Vm.prototype.getRevision=Vm.prototype.L,Vm.prototype.on=Vm.prototype.J,Vm.prototype.un=Vm.prototype.K,Fw.prototype.getAttributions=Fw.prototype.ya,Fw.prototype.getLogo=Fw.prototype.xa,Fw.prototype.getProjection=Fw.prototype.za,Fw.prototype.refresh=Fw.prototype.sa,Fw.prototype.setAttributions=Fw.prototype.ua,Fw.prototype.getKeys=Fw.prototype.O,Fw.prototype.getProperties=Fw.prototype.N,Fw.prototype.setProperties=Fw.prototype.H,Fw.prototype.unset=Fw.prototype.P,Fw.prototype.changed=Fw.prototype.s,Fw.prototype.dispatchEvent=Fw.prototype.b,Fw.prototype.getRevision=Fw.prototype.L,Fw.prototype.on=Fw.prototype.J,Fw.prototype.un=Fw.prototype.K,Uw.prototype.setRenderReprojectionEdges=Uw.prototype.Pb,Uw.prototype.setTileGridForProjection=Uw.prototype.Qb,Uw.prototype.getTileLoadFunction=Uw.prototype.pb,Uw.prototype.getTileUrlFunction=Uw.prototype.qb,Uw.prototype.getUrls=Uw.prototype.rb,Uw.prototype.setTileLoadFunction=Uw.prototype.vb,Uw.prototype.setTileUrlFunction=Uw.prototype.cb,Uw.prototype.setUrl=Uw.prototype.jb,Uw.prototype.setUrls=Uw.prototype.eb,Uw.prototype.getTileGrid=Uw.prototype.ab,Uw.prototype.refresh=Uw.prototype.sa,Uw.prototype.getAttributions=Uw.prototype.ya,Uw.prototype.getLogo=Uw.prototype.xa,Uw.prototype.getProjection=Uw.prototype.za,Uw.prototype.setAttributions=Uw.prototype.ua,Uw.prototype.getKeys=Uw.prototype.O,Uw.prototype.getProperties=Uw.prototype.N,Uw.prototype.setProperties=Uw.prototype.H,Uw.prototype.unset=Uw.prototype.P,Uw.prototype.changed=Uw.prototype.s,Uw.prototype.dispatchEvent=Uw.prototype.b,Uw.prototype.getRevision=Uw.prototype.L,Uw.prototype.on=Uw.prototype.J,Uw.prototype.un=Uw.prototype.K,Bw.prototype.getAttributions=Bw.prototype.ya,Bw.prototype.getLogo=Bw.prototype.xa,Bw.prototype.getProjection=Bw.prototype.za,Bw.prototype.refresh=Bw.prototype.sa,Bw.prototype.setAttributions=Bw.prototype.ua,Bw.prototype.getKeys=Bw.prototype.O,Bw.prototype.getProperties=Bw.prototype.N,Bw.prototype.setProperties=Bw.prototype.H,Bw.prototype.unset=Bw.prototype.P,Bw.prototype.changed=Bw.prototype.s,Bw.prototype.dispatchEvent=Bw.prototype.b,Bw.prototype.getRevision=Bw.prototype.L,Bw.prototype.on=Bw.prototype.J,Bw.prototype.un=Bw.prototype.K,Kw.prototype.setRenderReprojectionEdges=Kw.prototype.Pb,Kw.prototype.setTileGridForProjection=Kw.prototype.Qb,Kw.prototype.getTileLoadFunction=Kw.prototype.pb,Kw.prototype.getTileUrlFunction=Kw.prototype.qb,Kw.prototype.getUrls=Kw.prototype.rb,Kw.prototype.setTileLoadFunction=Kw.prototype.vb,Kw.prototype.setTileUrlFunction=Kw.prototype.cb,Kw.prototype.setUrl=Kw.prototype.jb,Kw.prototype.setUrls=Kw.prototype.eb,Kw.prototype.getTileGrid=Kw.prototype.ab,Kw.prototype.refresh=Kw.prototype.sa,Kw.prototype.getAttributions=Kw.prototype.ya,Kw.prototype.getLogo=Kw.prototype.xa,Kw.prototype.getProjection=Kw.prototype.za,Kw.prototype.setAttributions=Kw.prototype.ua,Kw.prototype.getKeys=Kw.prototype.O,Kw.prototype.getProperties=Kw.prototype.N,Kw.prototype.setProperties=Kw.prototype.H,Kw.prototype.unset=Kw.prototype.P,Kw.prototype.changed=Kw.prototype.s,Kw.prototype.dispatchEvent=Kw.prototype.b,Kw.prototype.getRevision=Kw.prototype.L,Kw.prototype.on=Kw.prototype.J,Kw.prototype.un=Kw.prototype.K,qw.prototype.setRenderReprojectionEdges=qw.prototype.Pb,qw.prototype.setTileGridForProjection=qw.prototype.Qb,qw.prototype.getTileLoadFunction=qw.prototype.pb,qw.prototype.getTileUrlFunction=qw.prototype.qb,qw.prototype.getUrls=qw.prototype.rb,qw.prototype.setTileLoadFunction=qw.prototype.vb,qw.prototype.setTileUrlFunction=qw.prototype.cb,qw.prototype.setUrl=qw.prototype.jb,qw.prototype.setUrls=qw.prototype.eb,qw.prototype.getTileGrid=qw.prototype.ab,qw.prototype.refresh=qw.prototype.sa,qw.prototype.getAttributions=qw.prototype.ya,qw.prototype.getLogo=qw.prototype.xa,qw.prototype.getProjection=qw.prototype.za,qw.prototype.setAttributions=qw.prototype.ua,qw.prototype.getKeys=qw.prototype.O,qw.prototype.getProperties=qw.prototype.N,qw.prototype.setProperties=qw.prototype.H,qw.prototype.unset=qw.prototype.P,qw.prototype.changed=qw.prototype.s,qw.prototype.dispatchEvent=qw.prototype.b,qw.prototype.getRevision=qw.prototype.L,qw.prototype.on=qw.prototype.J,qw.prototype.un=qw.prototype.K,_w.prototype.getTileGrid=_w.prototype.ab,_w.prototype.refresh=_w.prototype.sa,_w.prototype.getAttributions=_w.prototype.ya,_w.prototype.getLogo=_w.prototype.xa,_w.prototype.getProjection=_w.prototype.za,_w.prototype.setAttributions=_w.prototype.ua,_w.prototype.getKeys=_w.prototype.O,_w.prototype.getProperties=_w.prototype.N,_w.prototype.setProperties=_w.prototype.H,_w.prototype.unset=_w.prototype.P,_w.prototype.changed=_w.prototype.s,_w.prototype.dispatchEvent=_w.prototype.b,_w.prototype.getRevision=_w.prototype.L,_w.prototype.on=_w.prototype.J,_w.prototype.un=_w.prototype.K,Qw.prototype.setRenderReprojectionEdges=Qw.prototype.Pb,Qw.prototype.setTileGridForProjection=Qw.prototype.Qb,Qw.prototype.getTileLoadFunction=Qw.prototype.pb,Qw.prototype.getTileUrlFunction=Qw.prototype.qb,Qw.prototype.getUrls=Qw.prototype.rb,Qw.prototype.setTileLoadFunction=Qw.prototype.vb,Qw.prototype.setTileUrlFunction=Qw.prototype.cb,Qw.prototype.setUrl=Qw.prototype.jb,Qw.prototype.setUrls=Qw.prototype.eb,Qw.prototype.getTileGrid=Qw.prototype.ab,Qw.prototype.refresh=Qw.prototype.sa,Qw.prototype.getAttributions=Qw.prototype.ya,Qw.prototype.getLogo=Qw.prototype.xa,Qw.prototype.getProjection=Qw.prototype.za,Qw.prototype.setAttributions=Qw.prototype.ua,Qw.prototype.getKeys=Qw.prototype.O,Qw.prototype.getProperties=Qw.prototype.N,Qw.prototype.setProperties=Qw.prototype.H,Qw.prototype.unset=Qw.prototype.P,Qw.prototype.changed=Qw.prototype.s,Qw.prototype.dispatchEvent=Qw.prototype.b,Qw.prototype.getRevision=Qw.prototype.L,Qw.prototype.on=Qw.prototype.J,Qw.prototype.un=Qw.prototype.K,tx.prototype.getTileGrid=tx.prototype.ab,tx.prototype.refresh=tx.prototype.sa,tx.prototype.getAttributions=tx.prototype.ya,tx.prototype.getLogo=tx.prototype.xa,tx.prototype.getProjection=tx.prototype.za,tx.prototype.setAttributions=tx.prototype.ua,tx.prototype.getKeys=tx.prototype.O,tx.prototype.getProperties=tx.prototype.N,tx.prototype.setProperties=tx.prototype.H,tx.prototype.unset=tx.prototype.P,tx.prototype.changed=tx.prototype.s,tx.prototype.dispatchEvent=tx.prototype.b,tx.prototype.getRevision=tx.prototype.L,tx.prototype.on=tx.prototype.J,tx.prototype.un=tx.prototype.K,ix.prototype.setRenderReprojectionEdges=ix.prototype.Pb,ix.prototype.setTileGridForProjection=ix.prototype.Qb,ix.prototype.getTileLoadFunction=ix.prototype.pb,ix.prototype.getTileUrlFunction=ix.prototype.qb,ix.prototype.getUrls=ix.prototype.rb,ix.prototype.setTileLoadFunction=ix.prototype.vb,ix.prototype.setTileUrlFunction=ix.prototype.cb,ix.prototype.setUrl=ix.prototype.jb,ix.prototype.setUrls=ix.prototype.eb,ix.prototype.getTileGrid=ix.prototype.ab,ix.prototype.refresh=ix.prototype.sa,ix.prototype.getAttributions=ix.prototype.ya,ix.prototype.getLogo=ix.prototype.xa,ix.prototype.getProjection=ix.prototype.za,ix.prototype.setAttributions=ix.prototype.ua,ix.prototype.getKeys=ix.prototype.O,ix.prototype.getProperties=ix.prototype.N,ix.prototype.setProperties=ix.prototype.H,ix.prototype.unset=ix.prototype.P,ix.prototype.changed=ix.prototype.s,ix.prototype.dispatchEvent=ix.prototype.b,ix.prototype.getRevision=ix.prototype.L,ix.prototype.on=ix.prototype.J,ix.prototype.un=ix.prototype.K,ux.prototype.getTileLoadFunction=ux.prototype.pb,ux.prototype.getTileUrlFunction=ux.prototype.qb,ux.prototype.getUrls=ux.prototype.rb,ux.prototype.setTileLoadFunction=ux.prototype.vb,ux.prototype.setTileUrlFunction=ux.prototype.cb,ux.prototype.setUrl=ux.prototype.jb,ux.prototype.setUrls=ux.prototype.eb,ux.prototype.getTileGrid=ux.prototype.ab,ux.prototype.refresh=ux.prototype.sa,ux.prototype.getAttributions=ux.prototype.ya,ux.prototype.getLogo=ux.prototype.xa,ux.prototype.getProjection=ux.prototype.za,ux.prototype.setAttributions=ux.prototype.ua,ux.prototype.getKeys=ux.prototype.O,ux.prototype.getProperties=ux.prototype.N,ux.prototype.setProperties=ux.prototype.H,ux.prototype.unset=ux.prototype.P,ux.prototype.changed=ux.prototype.s,ux.prototype.dispatchEvent=ux.prototype.b,ux.prototype.getRevision=ux.prototype.L,ux.prototype.on=ux.prototype.J,ux.prototype.un=ux.prototype.K,yx.prototype.setRenderReprojectionEdges=yx.prototype.Pb,yx.prototype.setTileGridForProjection=yx.prototype.Qb,yx.prototype.getTileLoadFunction=yx.prototype.pb,yx.prototype.getTileUrlFunction=yx.prototype.qb,yx.prototype.getUrls=yx.prototype.rb,yx.prototype.setTileLoadFunction=yx.prototype.vb,yx.prototype.setTileUrlFunction=yx.prototype.cb,yx.prototype.setUrl=yx.prototype.jb,yx.prototype.setUrls=yx.prototype.eb,yx.prototype.getTileGrid=yx.prototype.ab,yx.prototype.refresh=yx.prototype.sa,yx.prototype.getAttributions=yx.prototype.ya,yx.prototype.getLogo=yx.prototype.xa,yx.prototype.getProjection=yx.prototype.za,yx.prototype.setAttributions=yx.prototype.ua,yx.prototype.getKeys=yx.prototype.O,yx.prototype.getProperties=yx.prototype.N,yx.prototype.setProperties=yx.prototype.H,yx.prototype.unset=yx.prototype.P,yx.prototype.changed=yx.prototype.s,yx.prototype.dispatchEvent=yx.prototype.b,yx.prototype.getRevision=yx.prototype.L,yx.prototype.on=yx.prototype.J,yx.prototype.un=yx.prototype.K,dx.prototype.setRenderReprojectionEdges=dx.prototype.Pb,dx.prototype.setTileGridForProjection=dx.prototype.Qb,dx.prototype.getTileLoadFunction=dx.prototype.pb,dx.prototype.getTileUrlFunction=dx.prototype.qb,dx.prototype.getUrls=dx.prototype.rb,dx.prototype.setTileLoadFunction=dx.prototype.vb,dx.prototype.setTileUrlFunction=dx.prototype.cb,dx.prototype.setUrl=dx.prototype.jb,dx.prototype.setUrls=dx.prototype.eb,dx.prototype.getTileGrid=dx.prototype.ab,dx.prototype.refresh=dx.prototype.sa,dx.prototype.getAttributions=dx.prototype.ya,dx.prototype.getLogo=dx.prototype.xa,dx.prototype.getProjection=dx.prototype.za,dx.prototype.setAttributions=dx.prototype.ua,dx.prototype.getKeys=dx.prototype.O,dx.prototype.getProperties=dx.prototype.N,dx.prototype.setProperties=dx.prototype.H,dx.prototype.unset=dx.prototype.P,dx.prototype.changed=dx.prototype.s,dx.prototype.dispatchEvent=dx.prototype.b,dx.prototype.getRevision=dx.prototype.L,dx.prototype.on=dx.prototype.J,dx.prototype.un=dx.prototype.K,nw.prototype.getTileCoord=nw.prototype.f,Dv.prototype.changed=Dv.prototype.s,Dv.prototype.dispatchEvent=Dv.prototype.b,Dv.prototype.getRevision=Dv.prototype.L,Dv.prototype.on=Dv.prototype.J,Dv.prototype.un=Dv.prototype.K,rb.prototype.changed=rb.prototype.s,rb.prototype.dispatchEvent=rb.prototype.b,rb.prototype.getRevision=rb.prototype.L,rb.prototype.on=rb.prototype.J,rb.prototype.un=rb.prototype.K,Wm.prototype.changed=Wm.prototype.s,Wm.prototype.dispatchEvent=Wm.prototype.b,Wm.prototype.getRevision=Wm.prototype.L,Wm.prototype.on=Wm.prototype.J,Wm.prototype.un=Wm.prototype.K,$m.prototype.changed=$m.prototype.s,$m.prototype.dispatchEvent=$m.prototype.b,$m.prototype.getRevision=$m.prototype.L,$m.prototype.on=$m.prototype.J,$m.prototype.un=$m.prototype.K,sb.prototype.changed=sb.prototype.s,sb.prototype.dispatchEvent=sb.prototype.b,sb.prototype.getRevision=sb.prototype.L,sb.prototype.on=sb.prototype.J,sb.prototype.un=sb.prototype.K,Zv.prototype.changed=Zv.prototype.s,Zv.prototype.dispatchEvent=Zv.prototype.b,Zv.prototype.getRevision=Zv.prototype.L,Zv.prototype.on=Zv.prototype.J,Zv.prototype.un=Zv.prototype.K,Em.prototype.changed=Em.prototype.s,Em.prototype.dispatchEvent=Em.prototype.b,Em.prototype.getRevision=Em.prototype.L,Em.prototype.on=Em.prototype.J,Em.prototype.un=Em.prototype.K,Tm.prototype.changed=Tm.prototype.s,Tm.prototype.dispatchEvent=Tm.prototype.b,Tm.prototype.getRevision=Tm.prototype.L,Tm.prototype.on=Tm.prototype.J,Tm.prototype.un=Tm.prototype.K,Km.prototype.changed=Km.prototype.s,Km.prototype.dispatchEvent=Km.prototype.b,Km.prototype.getRevision=Km.prototype.L,Km.prototype.on=Km.prototype.J,Km.prototype.un=Km.prototype.K,$v.prototype.changed=$v.prototype.s,$v.prototype.dispatchEvent=$v.prototype.b,$v.prototype.getRevision=$v.prototype.L,$v.prototype.on=$v.prototype.J,$v.prototype.un=$v.prototype.K,tw.prototype.changed=tw.prototype.s,tw.prototype.dispatchEvent=tw.prototype.b,tw.prototype.getRevision=tw.prototype.L,tw.prototype.on=tw.prototype.J,tw.prototype.un=tw.prototype.K,Bn.prototype.getKeys=Bn.prototype.O,Bn.prototype.getProperties=Bn.prototype.N,Bn.prototype.setProperties=Bn.prototype.H,Bn.prototype.unset=Bn.prototype.P,Bn.prototype.changed=Bn.prototype.s,Bn.prototype.dispatchEvent=Bn.prototype.b,Bn.prototype.getRevision=Bn.prototype.L,Bn.prototype.on=Bn.prototype.J,Bn.prototype.un=Bn.prototype.K,Vn.prototype.getExtent=Vn.prototype.G,Vn.prototype.getMaxResolution=Vn.prototype.fc,Vn.prototype.getMinResolution=Vn.prototype.gc,Vn.prototype.getOpacity=Vn.prototype.hc,Vn.prototype.getVisible=Vn.prototype.Mb,Vn.prototype.getZIndex=Vn.prototype.Ba,Vn.prototype.setExtent=Vn.prototype.vc,Vn.prototype.setMaxResolution=Vn.prototype.Ac,Vn.prototype.setMinResolution=Vn.prototype.Bc,Vn.prototype.setOpacity=Vn.prototype.wc,Vn.prototype.setVisible=Vn.prototype.xc,Vn.prototype.setZIndex=Vn.prototype.Vb,Vn.prototype.getKeys=Vn.prototype.O,Vn.prototype.getProperties=Vn.prototype.N,Vn.prototype.setProperties=Vn.prototype.H,Vn.prototype.unset=Vn.prototype.P,Vn.prototype.changed=Vn.prototype.s,Vn.prototype.dispatchEvent=Vn.prototype.b,Vn.prototype.getRevision=Vn.prototype.L,Vn.prototype.on=Vn.prototype.J,Vn.prototype.un=Vn.prototype.K,Zn.prototype.getExtent=Zn.prototype.G,Zn.prototype.getMaxResolution=Zn.prototype.fc,Zn.prototype.getMinResolution=Zn.prototype.gc,Zn.prototype.getOpacity=Zn.prototype.hc,Zn.prototype.getVisible=Zn.prototype.Mb,Zn.prototype.getZIndex=Zn.prototype.Ba,Zn.prototype.setExtent=Zn.prototype.vc,Zn.prototype.setMaxResolution=Zn.prototype.Ac,Zn.prototype.setMinResolution=Zn.prototype.Bc,Zn.prototype.setOpacity=Zn.prototype.wc,Zn.prototype.setVisible=Zn.prototype.xc,Zn.prototype.setZIndex=Zn.prototype.Vb,Zn.prototype.getKeys=Zn.prototype.O,Zn.prototype.getProperties=Zn.prototype.N,Zn.prototype.setProperties=Zn.prototype.H,Zn.prototype.unset=Zn.prototype.P,Zn.prototype.changed=Zn.prototype.s,Zn.prototype.dispatchEvent=Zn.prototype.b,Zn.prototype.getRevision=Zn.prototype.L,Zn.prototype.on=Zn.prototype.J,Zn.prototype.un=Zn.prototype.K,ab.prototype.setSource=ab.prototype.Wc,ab.prototype.getExtent=ab.prototype.G,ab.prototype.getMaxResolution=ab.prototype.fc,ab.prototype.getMinResolution=ab.prototype.gc,ab.prototype.getOpacity=ab.prototype.hc,ab.prototype.getVisible=ab.prototype.Mb,ab.prototype.getZIndex=ab.prototype.Ba,ab.prototype.setExtent=ab.prototype.vc,ab.prototype.setMaxResolution=ab.prototype.Ac,ab.prototype.setMinResolution=ab.prototype.Bc,ab.prototype.setOpacity=ab.prototype.wc,ab.prototype.setVisible=ab.prototype.xc,ab.prototype.setZIndex=ab.prototype.Vb,ab.prototype.getKeys=ab.prototype.O,ab.prototype.getProperties=ab.prototype.N,ab.prototype.setProperties=ab.prototype.H,ab.prototype.unset=ab.prototype.P,ab.prototype.changed=ab.prototype.s,ab.prototype.dispatchEvent=ab.prototype.b,ab.prototype.getRevision=ab.prototype.L,ab.prototype.on=ab.prototype.J,ab.prototype.un=ab.prototype.K,xm.prototype.getSource=xm.prototype.ha,xm.prototype.getStyle=xm.prototype.D,xm.prototype.getStyleFunction=xm.prototype.C,xm.prototype.setStyle=xm.prototype.g,xm.prototype.setSource=xm.prototype.Wc,xm.prototype.getExtent=xm.prototype.G,xm.prototype.getMaxResolution=xm.prototype.fc,xm.prototype.getMinResolution=xm.prototype.gc,xm.prototype.getOpacity=xm.prototype.hc,xm.prototype.getVisible=xm.prototype.Mb,xm.prototype.getZIndex=xm.prototype.Ba,xm.prototype.setExtent=xm.prototype.vc,xm.prototype.setMaxResolution=xm.prototype.Ac,xm.prototype.setMinResolution=xm.prototype.Bc,xm.prototype.setOpacity=xm.prototype.wc,xm.prototype.setVisible=xm.prototype.xc,xm.prototype.setZIndex=xm.prototype.Vb,xm.prototype.getKeys=xm.prototype.O,xm.prototype.getProperties=xm.prototype.N,xm.prototype.setProperties=xm.prototype.H,xm.prototype.unset=xm.prototype.P,xm.prototype.changed=xm.prototype.s,xm.prototype.dispatchEvent=xm.prototype.b,xm.prototype.getRevision=xm.prototype.L,xm.prototype.on=xm.prototype.J,xm.prototype.un=xm.prototype.K,Zm.prototype.setSource=Zm.prototype.Wc,Zm.prototype.getExtent=Zm.prototype.G,Zm.prototype.getMaxResolution=Zm.prototype.fc,Zm.prototype.getMinResolution=Zm.prototype.gc,Zm.prototype.getOpacity=Zm.prototype.hc,Zm.prototype.getVisible=Zm.prototype.Mb,Zm.prototype.getZIndex=Zm.prototype.Ba,Zm.prototype.setExtent=Zm.prototype.vc,Zm.prototype.setMaxResolution=Zm.prototype.Ac,Zm.prototype.setMinResolution=Zm.prototype.Bc,Zm.prototype.setOpacity=Zm.prototype.wc,Zm.prototype.setVisible=Zm.prototype.xc,Zm.prototype.setZIndex=Zm.prototype.Vb,Zm.prototype.getKeys=Zm.prototype.O,Zm.prototype.getProperties=Zm.prototype.N,Zm.prototype.setProperties=Zm.prototype.H,Zm.prototype.unset=Zm.prototype.P,Zm.prototype.changed=Zm.prototype.s,Zm.prototype.dispatchEvent=Zm.prototype.b,Zm.prototype.getRevision=Zm.prototype.L,Zm.prototype.on=Zm.prototype.J,Zm.prototype.un=Zm.prototype.K,Qm.prototype.setSource=Qm.prototype.Wc,Qm.prototype.getExtent=Qm.prototype.G,Qm.prototype.getMaxResolution=Qm.prototype.fc,Qm.prototype.getMinResolution=Qm.prototype.gc,Qm.prototype.getOpacity=Qm.prototype.hc,Qm.prototype.getVisible=Qm.prototype.Mb,Qm.prototype.getZIndex=Qm.prototype.Ba,Qm.prototype.setExtent=Qm.prototype.vc,Qm.prototype.setMaxResolution=Qm.prototype.Ac,Qm.prototype.setMinResolution=Qm.prototype.Bc,Qm.prototype.setOpacity=Qm.prototype.wc,Qm.prototype.setVisible=Qm.prototype.xc,Qm.prototype.setZIndex=Qm.prototype.Vb,Qm.prototype.getKeys=Qm.prototype.O,Qm.prototype.getProperties=Qm.prototype.N,Qm.prototype.setProperties=Qm.prototype.H,Qm.prototype.unset=Qm.prototype.P,Qm.prototype.changed=Qm.prototype.s,Qm.prototype.dispatchEvent=Qm.prototype.b,Qm.prototype.getRevision=Qm.prototype.L,Qm.prototype.on=Qm.prototype.J,Qm.prototype.un=Qm.prototype.K,iw.prototype.getSource=iw.prototype.ha,iw.prototype.getStyle=iw.prototype.D,iw.prototype.getStyleFunction=iw.prototype.C,iw.prototype.setStyle=iw.prototype.g,iw.prototype.setSource=iw.prototype.Wc,iw.prototype.getExtent=iw.prototype.G,iw.prototype.getMaxResolution=iw.prototype.fc,iw.prototype.getMinResolution=iw.prototype.gc,iw.prototype.getOpacity=iw.prototype.hc,iw.prototype.getVisible=iw.prototype.Mb,iw.prototype.getZIndex=iw.prototype.Ba,iw.prototype.setExtent=iw.prototype.vc,iw.prototype.setMaxResolution=iw.prototype.Ac,iw.prototype.setMinResolution=iw.prototype.Bc,iw.prototype.setOpacity=iw.prototype.wc,iw.prototype.setVisible=iw.prototype.xc,iw.prototype.setZIndex=iw.prototype.Vb,iw.prototype.getKeys=iw.prototype.O,iw.prototype.getProperties=iw.prototype.N,iw.prototype.setProperties=iw.prototype.H,iw.prototype.unset=iw.prototype.P,iw.prototype.changed=iw.prototype.s,iw.prototype.dispatchEvent=iw.prototype.b,iw.prototype.getRevision=iw.prototype.L,iw.prototype.on=iw.prototype.J,iw.prototype.un=iw.prototype.K,Or.prototype.getKeys=Or.prototype.O,Or.prototype.getProperties=Or.prototype.N,Or.prototype.setProperties=Or.prototype.H,Or.prototype.unset=Or.prototype.P,Or.prototype.changed=Or.prototype.s,Or.prototype.dispatchEvent=Or.prototype.b,Or.prototype.getRevision=Or.prototype.L,Or.prototype.on=Or.prototype.J,Or.prototype.un=Or.prototype.K,Xr.prototype.getActive=Xr.prototype.c,Xr.prototype.getMap=Xr.prototype.f,Xr.prototype.setActive=Xr.prototype.Ha,Xr.prototype.getKeys=Xr.prototype.O,Xr.prototype.getProperties=Xr.prototype.N,Xr.prototype.setProperties=Xr.prototype.H,Xr.prototype.unset=Xr.prototype.P,Xr.prototype.changed=Xr.prototype.s,Xr.prototype.dispatchEvent=Xr.prototype.b,Xr.prototype.getRevision=Xr.prototype.L,Xr.prototype.on=Xr.prototype.J,Xr.prototype.un=Xr.prototype.K,nv.prototype.getActive=nv.prototype.c,nv.prototype.getMap=nv.prototype.f,nv.prototype.setActive=nv.prototype.Ha,nv.prototype.getKeys=nv.prototype.O,nv.prototype.getProperties=nv.prototype.N,nv.prototype.setProperties=nv.prototype.H,nv.prototype.unset=nv.prototype.P,nv.prototype.changed=nv.prototype.s,nv.prototype.dispatchEvent=nv.prototype.b,nv.prototype.getRevision=nv.prototype.L,nv.prototype.on=nv.prototype.J,nv.prototype.un=nv.prototype.K,$r.prototype.getActive=$r.prototype.c,$r.prototype.getMap=$r.prototype.f,$r.prototype.setActive=$r.prototype.Ha,$r.prototype.getKeys=$r.prototype.O,$r.prototype.getProperties=$r.prototype.N,$r.prototype.setProperties=$r.prototype.H,$r.prototype.unset=$r.prototype.P,$r.prototype.changed=$r.prototype.s,$r.prototype.dispatchEvent=$r.prototype.b,$r.prototype.getRevision=$r.prototype.L,$r.prototype.on=$r.prototype.J,$r.prototype.un=$r.prototype.K,fn.prototype.getActive=fn.prototype.c,fn.prototype.getMap=fn.prototype.f,fn.prototype.setActive=fn.prototype.Ha,fn.prototype.getKeys=fn.prototype.O,fn.prototype.getProperties=fn.prototype.N,fn.prototype.setProperties=fn.prototype.H,fn.prototype.unset=fn.prototype.P,fn.prototype.changed=fn.prototype.s,fn.prototype.dispatchEvent=fn.prototype.b,fn.prototype.getRevision=fn.prototype.L,fn.prototype.on=fn.prototype.J,fn.prototype.un=fn.prototype.K,en.prototype.getActive=en.prototype.c,en.prototype.getMap=en.prototype.f,en.prototype.setActive=en.prototype.Ha,en.prototype.getKeys=en.prototype.O,en.prototype.getProperties=en.prototype.N,en.prototype.setProperties=en.prototype.H,en.prototype.unset=en.prototype.P,en.prototype.changed=en.prototype.s,en.prototype.dispatchEvent=en.prototype.b,en.prototype.getRevision=en.prototype.L,en.prototype.on=en.prototype.J,en.prototype.un=en.prototype.K,sn.prototype.getActive=sn.prototype.c,sn.prototype.getMap=sn.prototype.f,sn.prototype.setActive=sn.prototype.Ha,sn.prototype.getKeys=sn.prototype.O,sn.prototype.getProperties=sn.prototype.N,sn.prototype.setProperties=sn.prototype.H,sn.prototype.unset=sn.prototype.P,sn.prototype.changed=sn.prototype.s,sn.prototype.dispatchEvent=sn.prototype.b,sn.prototype.getRevision=sn.prototype.L,sn.prototype.on=sn.prototype.J,sn.prototype.un=sn.prototype.K,cv.prototype.getActive=cv.prototype.c,cv.prototype.getMap=cv.prototype.f,cv.prototype.setActive=cv.prototype.Ha,cv.prototype.getKeys=cv.prototype.O,cv.prototype.getProperties=cv.prototype.N,cv.prototype.setProperties=cv.prototype.H,cv.prototype.unset=cv.prototype.P,cv.prototype.changed=cv.prototype.s,cv.prototype.dispatchEvent=cv.prototype.b,cv.prototype.getRevision=cv.prototype.L,cv.prototype.on=cv.prototype.J,cv.prototype.un=cv.prototype.K,Sn.prototype.getGeometry=Sn.prototype.V,Sn.prototype.getActive=Sn.prototype.c,Sn.prototype.getMap=Sn.prototype.f,Sn.prototype.setActive=Sn.prototype.Ha,Sn.prototype.getKeys=Sn.prototype.O,Sn.prototype.getProperties=Sn.prototype.N,Sn.prototype.setProperties=Sn.prototype.H,Sn.prototype.unset=Sn.prototype.P,Sn.prototype.changed=Sn.prototype.s,Sn.prototype.dispatchEvent=Sn.prototype.b,Sn.prototype.getRevision=Sn.prototype.L,Sn.prototype.on=Sn.prototype.J,Sn.prototype.un=Sn.prototype.K,mb.prototype.getActive=mb.prototype.c,mb.prototype.getMap=mb.prototype.f,mb.prototype.setActive=mb.prototype.Ha,mb.prototype.getKeys=mb.prototype.O,mb.prototype.getProperties=mb.prototype.N,mb.prototype.setProperties=mb.prototype.H,mb.prototype.unset=mb.prototype.P,mb.prototype.changed=mb.prototype.s,mb.prototype.dispatchEvent=mb.prototype.b,mb.prototype.getRevision=mb.prototype.L,mb.prototype.on=mb.prototype.J,mb.prototype.un=mb.prototype.K,Fb.prototype.getActive=Fb.prototype.c,Fb.prototype.getMap=Fb.prototype.f,Fb.prototype.setActive=Fb.prototype.Ha,Fb.prototype.getKeys=Fb.prototype.O,Fb.prototype.getProperties=Fb.prototype.N,Fb.prototype.setProperties=Fb.prototype.H,Fb.prototype.unset=Fb.prototype.P,Fb.prototype.changed=Fb.prototype.s,Fb.prototype.dispatchEvent=Fb.prototype.b,Fb.prototype.getRevision=Fb.prototype.L,Fb.prototype.on=Fb.prototype.J,Fb.prototype.un=Fb.prototype.K,Mn.prototype.getActive=Mn.prototype.c,Mn.prototype.getMap=Mn.prototype.f,Mn.prototype.setActive=Mn.prototype.Ha,Mn.prototype.getKeys=Mn.prototype.O,Mn.prototype.getProperties=Mn.prototype.N,Mn.prototype.setProperties=Mn.prototype.H,Mn.prototype.unset=Mn.prototype.P,Mn.prototype.changed=Mn.prototype.s,Mn.prototype.dispatchEvent=Mn.prototype.b,Mn.prototype.getRevision=Mn.prototype.L,Mn.prototype.on=Mn.prototype.J,Mn.prototype.un=Mn.prototype.K,An.prototype.getActive=An.prototype.c,An.prototype.getMap=An.prototype.f,An.prototype.setActive=An.prototype.Ha,An.prototype.getKeys=An.prototype.O,An.prototype.getProperties=An.prototype.N,An.prototype.setProperties=An.prototype.H,An.prototype.unset=An.prototype.P,An.prototype.changed=An.prototype.s,An.prototype.dispatchEvent=An.prototype.b,An.prototype.getRevision=An.prototype.L,An.prototype.on=An.prototype.J,An.prototype.un=An.prototype.K,Kb.prototype.getActive=Kb.prototype.c,Kb.prototype.getMap=Kb.prototype.f,Kb.prototype.setActive=Kb.prototype.Ha,Kb.prototype.getKeys=Kb.prototype.O,Kb.prototype.getProperties=Kb.prototype.N,Kb.prototype.setProperties=Kb.prototype.H,Kb.prototype.unset=Kb.prototype.P,Kb.prototype.changed=Kb.prototype.s,Kb.prototype.dispatchEvent=Kb.prototype.b,Kb.prototype.getRevision=Kb.prototype.L,Kb.prototype.on=Kb.prototype.J,Kb.prototype.un=Kb.prototype.K,Tn.prototype.getActive=Tn.prototype.c,Tn.prototype.getMap=Tn.prototype.f,Tn.prototype.setActive=Tn.prototype.Ha,Tn.prototype.getKeys=Tn.prototype.O,Tn.prototype.getProperties=Tn.prototype.N,Tn.prototype.setProperties=Tn.prototype.H,Tn.prototype.unset=Tn.prototype.P,Tn.prototype.changed=Tn.prototype.s,Tn.prototype.dispatchEvent=Tn.prototype.b,Tn.prototype.getRevision=Tn.prototype.L,Tn.prototype.on=Tn.prototype.J,Tn.prototype.un=Tn.prototype.K,Rn.prototype.getActive=Rn.prototype.c,Rn.prototype.getMap=Rn.prototype.f,Rn.prototype.setActive=Rn.prototype.Ha,Rn.prototype.getKeys=Rn.prototype.O,Rn.prototype.getProperties=Rn.prototype.N,Rn.prototype.setProperties=Rn.prototype.H,Rn.prototype.unset=Rn.prototype.P,Rn.prototype.changed=Rn.prototype.s,Rn.prototype.dispatchEvent=Rn.prototype.b,Rn.prototype.getRevision=Rn.prototype.L,Rn.prototype.on=Rn.prototype.J,Rn.prototype.un=Rn.prototype.K,kn.prototype.getActive=kn.prototype.c,kn.prototype.getMap=kn.prototype.f,kn.prototype.setActive=kn.prototype.Ha,kn.prototype.getKeys=kn.prototype.O,kn.prototype.getProperties=kn.prototype.N,kn.prototype.setProperties=kn.prototype.H,kn.prototype.unset=kn.prototype.P,kn.prototype.changed=kn.prototype.s,kn.prototype.dispatchEvent=kn.prototype.b,kn.prototype.getRevision=kn.prototype.L,kn.prototype.on=kn.prototype.J,kn.prototype.un=kn.prototype.K,nm.prototype.getActive=nm.prototype.c,nm.prototype.getMap=nm.prototype.f,nm.prototype.setActive=nm.prototype.Ha,nm.prototype.getKeys=nm.prototype.O,nm.prototype.getProperties=nm.prototype.N,nm.prototype.setProperties=nm.prototype.H,nm.prototype.unset=nm.prototype.P,nm.prototype.changed=nm.prototype.s,nm.prototype.dispatchEvent=nm.prototype.b,nm.prototype.getRevision=nm.prototype.L,nm.prototype.on=nm.prototype.J,nm.prototype.un=nm.prototype.K,hm.prototype.getActive=hm.prototype.c,hm.prototype.getMap=hm.prototype.f,hm.prototype.setActive=hm.prototype.Ha,hm.prototype.getKeys=hm.prototype.O,hm.prototype.getProperties=hm.prototype.N,hm.prototype.setProperties=hm.prototype.H,hm.prototype.unset=hm.prototype.P,hm.prototype.changed=hm.prototype.s,hm.prototype.dispatchEvent=hm.prototype.b,hm.prototype.getRevision=hm.prototype.L,hm.prototype.on=hm.prototype.J,hm.prototype.un=hm.prototype.K,fm.prototype.getActive=fm.prototype.c,fm.prototype.getMap=fm.prototype.f,fm.prototype.setActive=fm.prototype.Ha,fm.prototype.getKeys=fm.prototype.O,fm.prototype.getProperties=fm.prototype.N,fm.prototype.setProperties=fm.prototype.H,fm.prototype.unset=fm.prototype.P,fm.prototype.changed=fm.prototype.s,fm.prototype.dispatchEvent=fm.prototype.b,fm.prototype.getRevision=fm.prototype.L,fm.prototype.on=fm.prototype.J,fm.prototype.un=fm.prototype.K,Bi.prototype.getKeys=Bi.prototype.O,Bi.prototype.getProperties=Bi.prototype.N,Bi.prototype.setProperties=Bi.prototype.H,Bi.prototype.unset=Bi.prototype.P,Bi.prototype.changed=Bi.prototype.s,Bi.prototype.dispatchEvent=Bi.prototype.b,Bi.prototype.getRevision=Bi.prototype.L,Bi.prototype.on=Bi.prototype.J,Bi.prototype.un=Bi.prototype.K,Wi.prototype.getClosestPoint=Wi.prototype.Ab,Wi.prototype.intersectsCoordinate=Wi.prototype.sb,Wi.prototype.getExtent=Wi.prototype.G,Wi.prototype.simplify=Wi.prototype.Rb,Wi.prototype.transform=Wi.prototype.tb,Wi.prototype.getKeys=Wi.prototype.O,Wi.prototype.getProperties=Wi.prototype.N,Wi.prototype.setProperties=Wi.prototype.H,Wi.prototype.unset=Wi.prototype.P,Wi.prototype.changed=Wi.prototype.s,Wi.prototype.dispatchEvent=Wi.prototype.b,Wi.prototype.getRevision=Wi.prototype.L,Wi.prototype.on=Wi.prototype.J,Wi.prototype.un=Wi.prototype.K,Vd.prototype.getFirstCoordinate=Vd.prototype.ac,Vd.prototype.getLastCoordinate=Vd.prototype.bc,Vd.prototype.getLayout=Vd.prototype.cc,Vd.prototype.getClosestPoint=Vd.prototype.Ab,Vd.prototype.intersectsCoordinate=Vd.prototype.sb,Vd.prototype.getExtent=Vd.prototype.G,Vd.prototype.simplify=Vd.prototype.Rb,Vd.prototype.getKeys=Vd.prototype.O,Vd.prototype.getProperties=Vd.prototype.N,Vd.prototype.setProperties=Vd.prototype.H,Vd.prototype.unset=Vd.prototype.P,Vd.prototype.changed=Vd.prototype.s,Vd.prototype.dispatchEvent=Vd.prototype.b,Vd.prototype.getRevision=Vd.prototype.L,Vd.prototype.on=Vd.prototype.J,Vd.prototype.un=Vd.prototype.K,_l.prototype.getClosestPoint=_l.prototype.Ab,_l.prototype.intersectsCoordinate=_l.prototype.sb,_l.prototype.getExtent=_l.prototype.G,_l.prototype.simplify=_l.prototype.Rb,_l.prototype.transform=_l.prototype.tb,_l.prototype.getKeys=_l.prototype.O,_l.prototype.getProperties=_l.prototype.N,_l.prototype.setProperties=_l.prototype.H,_l.prototype.unset=_l.prototype.P,_l.prototype.changed=_l.prototype.s,_l.prototype.dispatchEvent=_l.prototype.b,_l.prototype.getRevision=_l.prototype.L,_l.prototype.on=_l.prototype.J,_l.prototype.un=_l.prototype.K,ar.prototype.getFirstCoordinate=ar.prototype.ac,ar.prototype.getLastCoordinate=ar.prototype.bc,ar.prototype.getLayout=ar.prototype.cc,ar.prototype.getClosestPoint=ar.prototype.Ab,ar.prototype.intersectsCoordinate=ar.prototype.sb,ar.prototype.getExtent=ar.prototype.G,ar.prototype.simplify=ar.prototype.Rb,ar.prototype.transform=ar.prototype.tb,ar.prototype.getKeys=ar.prototype.O,ar.prototype.getProperties=ar.prototype.N,ar.prototype.setProperties=ar.prototype.H,ar.prototype.unset=ar.prototype.P,ar.prototype.changed=ar.prototype.s,ar.prototype.dispatchEvent=ar.prototype.b,ar.prototype.getRevision=ar.prototype.L,ar.prototype.on=ar.prototype.J,ar.prototype.un=ar.prototype.K,ll.prototype.getFirstCoordinate=ll.prototype.ac,ll.prototype.getLastCoordinate=ll.prototype.bc,ll.prototype.getLayout=ll.prototype.cc,ll.prototype.getClosestPoint=ll.prototype.Ab,ll.prototype.intersectsCoordinate=ll.prototype.sb,ll.prototype.getExtent=ll.prototype.G,ll.prototype.simplify=ll.prototype.Rb,ll.prototype.transform=ll.prototype.tb,ll.prototype.getKeys=ll.prototype.O,ll.prototype.getProperties=ll.prototype.N,ll.prototype.setProperties=ll.prototype.H,ll.prototype.unset=ll.prototype.P,ll.prototype.changed=ll.prototype.s,ll.prototype.dispatchEvent=ll.prototype.b,ll.prototype.getRevision=ll.prototype.L,ll.prototype.on=ll.prototype.J,ll.prototype.un=ll.prototype.K,cl.prototype.getFirstCoordinate=cl.prototype.ac,cl.prototype.getLastCoordinate=cl.prototype.bc,cl.prototype.getLayout=cl.prototype.cc,cl.prototype.getClosestPoint=cl.prototype.Ab,cl.prototype.intersectsCoordinate=cl.prototype.sb,cl.prototype.getExtent=cl.prototype.G,cl.prototype.simplify=cl.prototype.Rb,cl.prototype.transform=cl.prototype.tb,cl.prototype.getKeys=cl.prototype.O,cl.prototype.getProperties=cl.prototype.N,cl.prototype.setProperties=cl.prototype.H,cl.prototype.unset=cl.prototype.P,cl.prototype.changed=cl.prototype.s,cl.prototype.dispatchEvent=cl.prototype.b,cl.prototype.getRevision=cl.prototype.L,cl.prototype.on=cl.prototype.J,cl.prototype.un=cl.prototype.K,gl.prototype.getFirstCoordinate=gl.prototype.ac,gl.prototype.getLastCoordinate=gl.prototype.bc,gl.prototype.getLayout=gl.prototype.cc,gl.prototype.getClosestPoint=gl.prototype.Ab,gl.prototype.intersectsCoordinate=gl.prototype.sb,gl.prototype.getExtent=gl.prototype.G,gl.prototype.simplify=gl.prototype.Rb,gl.prototype.transform=gl.prototype.tb,gl.prototype.getKeys=gl.prototype.O,gl.prototype.getProperties=gl.prototype.N,gl.prototype.setProperties=gl.prototype.H,gl.prototype.unset=gl.prototype.P,gl.prototype.changed=gl.prototype.s,gl.prototype.dispatchEvent=gl.prototype.b,gl.prototype.getRevision=gl.prototype.L,gl.prototype.on=gl.prototype.J,gl.prototype.un=gl.prototype.K,dl.prototype.getFirstCoordinate=dl.prototype.ac,dl.prototype.getLastCoordinate=dl.prototype.bc,dl.prototype.getLayout=dl.prototype.cc,dl.prototype.getClosestPoint=dl.prototype.Ab,dl.prototype.intersectsCoordinate=dl.prototype.sb,dl.prototype.getExtent=dl.prototype.G,dl.prototype.simplify=dl.prototype.Rb,dl.prototype.transform=dl.prototype.tb,dl.prototype.getKeys=dl.prototype.O,dl.prototype.getProperties=dl.prototype.N,dl.prototype.setProperties=dl.prototype.H,dl.prototype.unset=dl.prototype.P,dl.prototype.changed=dl.prototype.s,dl.prototype.dispatchEvent=dl.prototype.b,dl.prototype.getRevision=dl.prototype.L,dl.prototype.on=dl.prototype.J,dl.prototype.un=dl.prototype.K,hr.prototype.getFirstCoordinate=hr.prototype.ac,hr.prototype.getLastCoordinate=hr.prototype.bc,hr.prototype.getLayout=hr.prototype.cc,hr.prototype.getClosestPoint=hr.prototype.Ab,hr.prototype.intersectsCoordinate=hr.prototype.sb,hr.prototype.getExtent=hr.prototype.G,hr.prototype.simplify=hr.prototype.Rb,hr.prototype.transform=hr.prototype.tb,hr.prototype.getKeys=hr.prototype.O,hr.prototype.getProperties=hr.prototype.N,hr.prototype.setProperties=hr.prototype.H,hr.prototype.unset=hr.prototype.P,hr.prototype.changed=hr.prototype.s,hr.prototype.dispatchEvent=hr.prototype.b,hr.prototype.getRevision=hr.prototype.L,hr.prototype.on=hr.prototype.J,hr.prototype.un=hr.prototype.K,wr.prototype.getFirstCoordinate=wr.prototype.ac,wr.prototype.getLastCoordinate=wr.prototype.bc,wr.prototype.getLayout=wr.prototype.cc,wr.prototype.getClosestPoint=wr.prototype.Ab,wr.prototype.intersectsCoordinate=wr.prototype.sb,wr.prototype.getExtent=wr.prototype.G,wr.prototype.simplify=wr.prototype.Rb,wr.prototype.transform=wr.prototype.tb,wr.prototype.getKeys=wr.prototype.O,wr.prototype.getProperties=wr.prototype.N,wr.prototype.setProperties=wr.prototype.H,wr.prototype.unset=wr.prototype.P,wr.prototype.changed=wr.prototype.s,wr.prototype.dispatchEvent=wr.prototype.b,wr.prototype.getRevision=wr.prototype.L,wr.prototype.on=wr.prototype.J,wr.prototype.un=wr.prototype.K,Mu.prototype.readFeatures=Mu.prototype.Oa,Nu.prototype.readFeatures=Nu.prototype.Oa,Mu.prototype.readFeatures=Mu.prototype.Oa,Je.prototype.getKeys=Je.prototype.O,Je.prototype.getProperties=Je.prototype.N,Je.prototype.setProperties=Je.prototype.H,Je.prototype.unset=Je.prototype.P,Je.prototype.changed=Je.prototype.s,Je.prototype.dispatchEvent=Je.prototype.b,Je.prototype.getRevision=Je.prototype.L,Je.prototype.on=Je.prototype.J,Je.prototype.un=Je.prototype.K,_e.prototype.getMap=_e.prototype.g,_e.prototype.setTarget=_e.prototype.f,_e.prototype.getKeys=_e.prototype.O,_e.prototype.getProperties=_e.prototype.N,_e.prototype.setProperties=_e.prototype.H,_e.prototype.unset=_e.prototype.P,_e.prototype.changed=_e.prototype.s,_e.prototype.dispatchEvent=_e.prototype.b,_e.prototype.getRevision=_e.prototype.L,_e.prototype.on=_e.prototype.J,_e.prototype.un=_e.prototype.K,po.prototype.getMap=po.prototype.g,po.prototype.setTarget=po.prototype.f,po.prototype.getKeys=po.prototype.O,po.prototype.getProperties=po.prototype.N,po.prototype.setProperties=po.prototype.H,po.prototype.unset=po.prototype.P,po.prototype.changed=po.prototype.s,po.prototype.dispatchEvent=po.prototype.b,po.prototype.getRevision=po.prototype.L,po.prototype.on=po.prototype.J,po.prototype.un=po.prototype.K,yo.prototype.getMap=yo.prototype.g,yo.prototype.setTarget=yo.prototype.f,yo.prototype.getKeys=yo.prototype.O,yo.prototype.getProperties=yo.prototype.N,yo.prototype.setProperties=yo.prototype.H,yo.prototype.unset=yo.prototype.P,yo.prototype.changed=yo.prototype.s,yo.prototype.dispatchEvent=yo.prototype.b,yo.prototype.getRevision=yo.prototype.L,yo.prototype.on=yo.prototype.J,yo.prototype.un=yo.prototype.K,Qp.prototype.getMap=Qp.prototype.g,Qp.prototype.setTarget=Qp.prototype.f,Qp.prototype.getKeys=Qp.prototype.O,Qp.prototype.getProperties=Qp.prototype.N,Qp.prototype.setProperties=Qp.prototype.H,Qp.prototype.unset=Qp.prototype.P,Qp.prototype.changed=Qp.prototype.s,Qp.prototype.dispatchEvent=Qp.prototype.b,Qp.prototype.getRevision=Qp.prototype.L,Qp.prototype.on=Qp.prototype.J,Qp.prototype.un=Qp.prototype.K,ro.prototype.getMap=ro.prototype.g,ro.prototype.setTarget=ro.prototype.f,ro.prototype.getKeys=ro.prototype.O,ro.prototype.getProperties=ro.prototype.N,ro.prototype.setProperties=ro.prototype.H,ro.prototype.unset=ro.prototype.P,ro.prototype.changed=ro.prototype.s,ro.prototype.dispatchEvent=ro.prototype.b,ro.prototype.getRevision=ro.prototype.L,ro.prototype.on=ro.prototype.J,ro.prototype.un=ro.prototype.K,rh.prototype.getMap=rh.prototype.g,rh.prototype.setTarget=rh.prototype.f,rh.prototype.getKeys=rh.prototype.O,rh.prototype.getProperties=rh.prototype.N,rh.prototype.setProperties=rh.prototype.H,rh.prototype.unset=rh.prototype.P,rh.prototype.changed=rh.prototype.s,rh.prototype.dispatchEvent=rh.prototype.b,rh.prototype.getRevision=rh.prototype.L,rh.prototype.on=rh.prototype.J,rh.prototype.un=rh.prototype.K,so.prototype.getMap=so.prototype.g,so.prototype.setMap,so.prototype.setTarget=so.prototype.f,so.prototype.get,so.prototype.getKeys=so.prototype.O,so.prototype.getProperties=so.prototype.N,so.prototype.set,so.prototype.setProperties=so.prototype.H,so.prototype.unset=so.prototype.P,so.prototype.changed=so.prototype.s,so.prototype.dispatchEvent=so.prototype.b,so.prototype.getRevision=so.prototype.L,so.prototype.on=so.prototype.J,so.prototype.once,so.prototype.un=so.prototype.K,hh.prototype.getMap=hh.prototype.g,hh.prototype.setTarget=hh.prototype.f,hh.prototype.getKeys=hh.prototype.O,hh.prototype.getProperties=hh.prototype.N,hh.prototype.setProperties=hh.prototype.H,hh.prototype.unset=hh.prototype.P,hh.prototype.changed=hh.prototype.s,hh.prototype.dispatchEvent=hh.prototype.b,hh.prototype.getRevision=hh.prototype.L,hh.prototype.on=hh.prototype.J,hh.prototype.un=hh.prototype.K,yh.prototype.getMap=yh.prototype.g,yh.prototype.setTarget=yh.prototype.f,yh.prototype.getKeys=yh.prototype.O,yh.prototype.getProperties=yh.prototype.N,yh.prototype.setProperties=yh.prototype.H,yh.prototype.unset=yh.prototype.P,yh.prototype.changed=yh.prototype.s,yh.prototype.dispatchEvent=yh.prototype.b,yh.prototype.getRevision=yh.prototype.L,yh.prototype.on=yh.prototype.J,yh.prototype.un=yh.prototype.K,r.ol}) |