text: // OpenLayers 3. See http://openlayers.org/
  // License: https://raw.githubusercontent.com/openlayers/ol3/master/LICENSE.md
  // Version: v3.5.0
  
  (function(){var l,aa=aa||{},n=this;function w(b){return void 0!==b}function ba(){}
  function ca(b){var c=typeof b;if("object"==c)if(b){if(b instanceof Array)return"array";if(b instanceof Object)return c;var d=Object.prototype.toString.call(b);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof b.length&&"undefined"!=typeof b.splice&&"undefined"!=typeof b.propertyIsEnumerable&&!b.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof b.call&&"undefined"!=typeof b.propertyIsEnumerable&&!b.propertyIsEnumerable("call"))return"function"}else return"null";
  else if("function"==c&&"undefined"==typeof b.call)return"object";return c}function da(b){return"array"==ca(b)}function ea(b){var c=ca(b);return"array"==c||"object"==c&&"number"==typeof b.length}function C(b){return"string"==typeof b}function fa(b){return"number"==typeof b}function ha(b){return"function"==ca(b)}function ia(b){var c=typeof b;return"object"==c&&null!=b||"function"==c}function H(b){return b[ja]||(b[ja]=++ka)}var ja="closure_uid_"+(1E9*Math.random()>>>0),ka=0;
  function la(b,c,d){return b.call.apply(b.bind,arguments)}function ma(b,c,d){if(!b)throw Error();if(2<arguments.length){var e=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,e);return b.apply(c,d)}}return function(){return b.apply(c,arguments)}}function na(b,c,d){na=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?la:ma;return na.apply(null,arguments)}
  function oa(b,c){var d=Array.prototype.slice.call(arguments,1);return function(){var c=d.slice();c.push.apply(c,arguments);return b.apply(this,c)}}var pa=Date.now||function(){return+new Date};function I(b,c){var d=b.split("."),e=n;d[0]in e||!e.execScript||e.execScript("var "+d[0]);for(var f;d.length&&(f=d.shift());)!d.length&&w(c)?e[f]=c:e[f]?e=e[f]:e=e[f]={}}
  function M(b,c){function d(){}d.prototype=c.prototype;b.F=c.prototype;b.prototype=new d;b.prototype.constructor=b;b.rf=function(b,d,g){for(var h=Array(arguments.length-2),k=2;k<arguments.length;k++)h[k-2]=arguments[k];return c.prototype[d].apply(b,h)}};var qa;var ra=String.prototype.trim?function(b){return b.trim()}:function(b){return b.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function sa(b){if(!ta.test(b))return b;-1!=b.indexOf("&")&&(b=b.replace(ua,"&amp;"));-1!=b.indexOf("<")&&(b=b.replace(va,"&lt;"));-1!=b.indexOf(">")&&(b=b.replace(wa,"&gt;"));-1!=b.indexOf('"')&&(b=b.replace(xa,"&quot;"));-1!=b.indexOf("'")&&(b=b.replace(ya,"&#39;"));-1!=b.indexOf("\x00")&&(b=b.replace(za,"&#0;"));return b}var ua=/&/g,va=/</g,wa=/>/g,xa=/"/g,ya=/'/g,za=/\x00/g,ta=/[\x00&<>"']/;
  function Ba(b,c){for(var d=0,e=ra(String(b)).split("."),f=ra(String(c)).split("."),g=Math.max(e.length,f.length),h=0;0==d&&h<g;h++){var k=e[h]||"",m=f[h]||"",p=RegExp("(\\d*)(\\D*)","g"),q=RegExp("(\\d*)(\\D*)","g");do{var r=p.exec(k)||["","",""],t=q.exec(m)||["","",""];if(0==r[0].length&&0==t[0].length)break;d=Ca(0==r[1].length?0:parseInt(r[1],10),0==t[1].length?0:parseInt(t[1],10))||Ca(0==r[2].length,0==t[2].length)||Ca(r[2],t[2])}while(0==d)}return d}function Ca(b,c){return b<c?-1:b>c?1:0};var Da=Array.prototype,Ea=Da.indexOf?function(b,c,d){return Da.indexOf.call(b,c,d)}:function(b,c,d){d=null==d?0:0>d?Math.max(0,b.length+d):d;if(C(b))return C(c)&&1==c.length?b.indexOf(c,d):-1;for(;d<b.length;d++)if(d in b&&b[d]===c)return d;return-1},N=Da.forEach?function(b,c,d){Da.forEach.call(b,c,d)}:function(b,c,d){for(var e=b.length,f=C(b)?b.split(""):b,g=0;g<e;g++)g in f&&c.call(d,f[g],g,b)},Ga=Da.filter?function(b,c,d){return Da.filter.call(b,c,d)}:function(b,c,d){for(var e=b.length,f=[],g=
  0,h=C(b)?b.split(""):b,k=0;k<e;k++)if(k in h){var m=h[k];c.call(d,m,k,b)&&(f[g++]=m)}return f},Ha=Da.map?function(b,c,d){return Da.map.call(b,c,d)}:function(b,c,d){for(var e=b.length,f=Array(e),g=C(b)?b.split(""):b,h=0;h<e;h++)h in g&&(f[h]=c.call(d,g[h],h,b));return f};function Ia(b){var c;a:{c=Ja;for(var d=b.length,e=C(b)?b.split(""):b,f=0;f<d;f++)if(f in e&&c.call(void 0,e[f],f,b)){c=f;break a}c=-1}return 0>c?null:C(b)?b.charAt(c):b[c]}
  function Ka(b,c){var d=Ea(b,c),e;(e=0<=d)&&Da.splice.call(b,d,1);return e}function La(b){var c=b.length;if(0<c){for(var d=Array(c),e=0;e<c;e++)d[e]=b[e];return d}return[]}function Ma(b,c){for(var d=1;d<arguments.length;d++){var e=arguments[d];if(ea(e)){var f=b.length||0,g=e.length||0;b.length=f+g;for(var h=0;h<g;h++)b[f+h]=e[h]}else b.push(e)}}function Na(b,c,d,e){Da.splice.apply(b,Oa(arguments,1))}function Oa(b,c,d){return 2>=arguments.length?Da.slice.call(b,c):Da.slice.call(b,c,d)}
  function Pa(b,c){if(!ea(b)||!ea(c)||b.length!=c.length)return!1;for(var d=b.length,e=Ra,f=0;f<d;f++)if(!e(b[f],c[f]))return!1;return!0}function Sa(b,c){return b>c?1:b<c?-1:0}function Ra(b,c){return b===c};var Ta;a:{var Ua=n.navigator;if(Ua){var Va=Ua.userAgent;if(Va){Ta=Va;break a}}Ta=""}function Wa(b){return-1!=Ta.indexOf(b)};function Xa(b,c,d){for(var e in b)c.call(d,b[e],e,b)}function Ya(b,c){for(var d in b)if(c.call(void 0,b[d],d,b))return!0;return!1}function Za(b){var c=0,d;for(d in b)c++;return c}function $a(b){var c=[],d=0,e;for(e in b)c[d++]=b[e];return c}function ab(b){var c=[],d=0,e;for(e in b)c[d++]=e;return c}function bb(b,c){for(var d in b)if(b[d]==c)return!0;return!1}function cb(b,c){for(var d in b)if(c.call(void 0,b[d],d,b))return d}function db(b){for(var c in b)return!1;return!0}
  function fb(b){for(var c in b)delete b[c]}function gb(b,c){c in b&&delete b[c]}function hb(b,c,d){return c in b?b[c]:d}function ib(b){var c={},d;for(d in b)c[d]=b[d];return c}var jb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function kb(b,c){for(var d,e,f=1;f<arguments.length;f++){e=arguments[f];for(d in e)b[d]=e[d];for(var g=0;g<jb.length;g++)d=jb[g],Object.prototype.hasOwnProperty.call(e,d)&&(b[d]=e[d])}}
  function lb(b){var c=arguments.length;if(1==c&&da(arguments[0]))return lb.apply(null,arguments[0]);for(var d={},e=0;e<c;e++)d[arguments[e]]=!0;return d};var mb=Wa("Opera")||Wa("OPR"),O=Wa("Trident")||Wa("MSIE"),nb=Wa("Gecko")&&-1==Ta.toLowerCase().indexOf("webkit")&&!(Wa("Trident")||Wa("MSIE")),ob=-1!=Ta.toLowerCase().indexOf("webkit"),pb=Wa("Macintosh"),qb=Wa("Windows"),rb=Wa("Linux")||Wa("CrOS");function sb(){var b=n.document;return b?b.documentMode:void 0}
  var tb=function(){var b="",c;if(mb&&n.opera)return b=n.opera.version,ha(b)?b():b;nb?c=/rv\:([^\);]+)(\)|;)/:O?c=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:ob&&(c=/WebKit\/(\S+)/);c&&(b=(b=c.exec(Ta))?b[1]:"");return O&&(c=sb(),c>parseFloat(b))?String(c):b}(),ub={};function vb(b){return ub[b]||(ub[b]=0<=Ba(tb,b))}var wb=n.document,xb=wb&&O?sb()||("CSS1Compat"==wb.compatMode?parseInt(tb,10):5):void 0;O&&vb("9.0");function yb(b,c,d){return Math.min(Math.max(b,c),d)}function zb(b,c){var d=b%c;return 0>d*c?d+c:d};function Ab(b){return function(c){if(w(c))return[yb(c[0],b[0],b[2]),yb(c[1],b[1],b[3])]}}function Bb(b){return b};function Cb(b,c,d){var e=b.length;if(b[0]<=c)return 0;if(!(c<=b[e-1]))if(0<d)for(d=1;d<e;++d){if(b[d]<c)return d-1}else if(0>d)for(d=1;d<e;++d){if(b[d]<=c)return d}else for(d=1;d<e;++d){if(b[d]==c)return d;if(b[d]<c)return b[d-1]-c<c-b[d]?d-1:d}return e-1};function Db(b){return function(c,d,e){if(w(c))return c=Cb(b,c,e),c=yb(c+d,0,b.length-1),b[c]}}function Eb(b,c,d){return function(e,f,g){if(w(e))return g=0<g?0:0>g?1:.5,e=Math.floor(Math.log(c/e)/Math.log(b)+g),f=Math.max(e+f,0),w(d)&&(f=Math.min(f,d)),c/Math.pow(b,f)}};function Fb(b){if(w(b))return 0}function Gb(b,c){if(w(b))return b+c}function Hb(b){var c=2*Math.PI/b;return function(b,e){if(w(b))return b=Math.floor((b+e)/c+.5)*c}}function Ib(){var b=5*Math.PI/180;return function(c,d){if(w(c))return Math.abs(c+d)<=b?0:c+d}};function Jb(b,c,d){this.center=b;this.resolution=c;this.rotation=d};var Kb=!O||O&&9<=xb,Lb=!O||O&&9<=xb,Mb=O&&!vb("9");!ob||vb("528");nb&&vb("1.9b")||O&&vb("8")||mb&&vb("9.5")||ob&&vb("528");nb&&!vb("8")||O&&vb("9");function Nb(){0!=Ob&&(Qb[H(this)]=this);this.B=this.B;this.s=this.s}var Ob=0,Qb={};Nb.prototype.B=!1;Nb.prototype.qb=function(){if(!this.B&&(this.B=!0,this.v(),0!=Ob)){var b=H(this);delete Qb[b]}};function Rb(b,c){var d=oa(Sb,c);b.B?d.call(void 0):(b.s||(b.s=[]),b.s.push(w(void 0)?na(d,void 0):d))}Nb.prototype.v=function(){if(this.s)for(;this.s.length;)this.s.shift()()};function Sb(b){b&&"function"==typeof b.qb&&b.qb()};function P(b,c){this.type=b;this.e=this.target=c;this.g=!1;this.yc=!0}P.prototype.ua=function(){this.g=!0};P.prototype.preventDefault=function(){this.yc=!1};function Tb(b){b.ua()};var Ub=O?"focusout":"DOMFocusOut";function Vb(b){Vb[" "](b);return b}Vb[" "]=ba;function Wb(b,c){P.call(this,b?b.type:"");this.relatedTarget=this.e=this.target=null;this.i=this.c=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.s=this.d=this.b=this.f=!1;this.state=null;this.h=!1;this.a=null;if(b){this.a=b;var d=this.type=b.type;this.target=b.target||b.srcElement;this.e=c;var e=b.relatedTarget;if(e){if(nb){var f;a:{try{Vb(e.nodeName);f=!0;break a}catch(g){}f=!1}f||(e=null)}}else"mouseover"==d?e=b.fromElement:"mouseout"==d&&(e=b.toElement);
  this.relatedTarget=e;Object.defineProperties?Object.defineProperties(this,{offsetX:{configurable:!0,enumerable:!0,get:this.fc,set:this.Pe},offsetY:{configurable:!0,enumerable:!0,get:this.gc,set:this.Qe}}):(this.offsetX=this.fc(),this.offsetY=this.gc());this.clientX=void 0!==b.clientX?b.clientX:b.pageX;this.clientY=void 0!==b.clientY?b.clientY:b.pageY;this.screenX=b.screenX||0;this.screenY=b.screenY||0;this.button=b.button;this.c=b.keyCode||0;this.i=b.charCode||("keypress"==d?b.keyCode:0);this.f=b.ctrlKey;
  this.b=b.altKey;this.d=b.shiftKey;this.s=b.metaKey;this.h=pb?b.metaKey:b.ctrlKey;this.state=b.state;b.defaultPrevented&&this.preventDefault()}}M(Wb,P);var Xb=[1,4,2];function Yb(b){return(Kb?0==b.a.button:"click"==b.type?!0:!!(b.a.button&Xb[0]))&&!(ob&&pb&&b.f)}l=Wb.prototype;l.ua=function(){Wb.F.ua.call(this);this.a.stopPropagation?this.a.stopPropagation():this.a.cancelBubble=!0};
  l.preventDefault=function(){Wb.F.preventDefault.call(this);var b=this.a;if(b.preventDefault)b.preventDefault();else if(b.returnValue=!1,Mb)try{if(b.ctrlKey||112<=b.keyCode&&123>=b.keyCode)b.keyCode=-1}catch(c){}};l.nd=function(){return this.a};l.fc=function(){return ob||void 0!==this.a.offsetX?this.a.offsetX:this.a.layerX};l.Pe=function(b){Object.defineProperties(this,{offsetX:{writable:!0,enumerable:!0,configurable:!0,value:b}})};
  l.gc=function(){return ob||void 0!==this.a.offsetY?this.a.offsetY:this.a.layerY};l.Qe=function(b){Object.defineProperties(this,{offsetY:{writable:!0,enumerable:!0,configurable:!0,value:b}})};var Zb="closure_listenable_"+(1E6*Math.random()|0);function $b(b){return!(!b||!b[Zb])}var ac=0;function bc(b,c,d,e,f){this.pa=b;this.a=null;this.src=c;this.type=d;this.za=!!e;this.Ta=f;this.key=++ac;this.wa=this.Ma=!1}function cc(b){b.wa=!0;b.pa=null;b.a=null;b.src=null;b.Ta=null};function dc(b){this.src=b;this.a={};this.b=0}dc.prototype.add=function(b,c,d,e,f){var g=b.toString();b=this.a[g];b||(b=this.a[g]=[],this.b++);var h=ec(b,c,e,f);-1<h?(c=b[h],d||(c.Ma=!1)):(c=new bc(c,this.src,g,!!e,f),c.Ma=d,b.push(c));return c};dc.prototype.remove=function(b,c,d,e){b=b.toString();if(!(b in this.a))return!1;var f=this.a[b];c=ec(f,c,d,e);return-1<c?(cc(f[c]),Da.splice.call(f,c,1),0==f.length&&(delete this.a[b],this.b--),!0):!1};
  function fc(b,c){var d=c.type;if(!(d in b.a))return!1;var e=Ka(b.a[d],c);e&&(cc(c),0==b.a[d].length&&(delete b.a[d],b.b--));return e}function gc(b,c,d){var e=w(c),f=e?c.toString():"",g=w(d);return Ya(b.a,function(b){for(var c=0;c<b.length;++c)if(!(e&&b[c].type!=f||g&&b[c].za!=d))return!0;return!1})}function ec(b,c,d,e){for(var f=0;f<b.length;++f){var g=b[f];if(!g.wa&&g.pa==c&&g.za==!!d&&g.Ta==e)return f}return-1};var hc="closure_lm_"+(1E6*Math.random()|0),ic={},jc=0;function Q(b,c,d,e,f){if(da(c)){for(var g=0;g<c.length;g++)Q(b,c[g],d,e,f);return null}d=kc(d);return $b(b)?b.Z.add(String(c),d,!1,e,f):lc(b,c,d,!1,e,f)}function lc(b,c,d,e,f,g){if(!c)throw Error("Invalid event type");var h=!!f,k=mc(b);k||(b[hc]=k=new dc(b));d=k.add(c,d,e,f,g);if(d.a)return d;e=nc();d.a=e;e.src=b;e.pa=d;b.addEventListener?b.addEventListener(c.toString(),e,h):b.attachEvent(oc(c.toString()),e);jc++;return d}
  function nc(){var b=pc,c=Lb?function(d){return b.call(c.src,c.pa,d)}:function(d){d=b.call(c.src,c.pa,d);if(!d)return d};return c}function qc(b,c,d,e,f){if(da(c)){for(var g=0;g<c.length;g++)qc(b,c[g],d,e,f);return null}d=kc(d);return $b(b)?b.Z.add(String(c),d,!0,e,f):lc(b,c,d,!0,e,f)}function rc(b,c,d,e,f){if(da(c))for(var g=0;g<c.length;g++)rc(b,c[g],d,e,f);else(d=kc(d),$b(b))?b.Z.remove(String(c),d,e,f):b&&(b=mc(b))&&(c=b.a[c.toString()],b=-1,c&&(b=ec(c,d,!!e,f)),(d=-1<b?c[b]:null)&&T(d))}
  function T(b){if(fa(b)||!b||b.wa)return!1;var c=b.src;if($b(c))return fc(c.Z,b);var d=b.type,e=b.a;c.removeEventListener?c.removeEventListener(d,e,b.za):c.detachEvent&&c.detachEvent(oc(d),e);jc--;(d=mc(c))?(fc(d,b),0==d.b&&(d.src=null,c[hc]=null)):cc(b);return!0}function oc(b){return b in ic?ic[b]:ic[b]="on"+b}function sc(b,c,d,e){var f=!0;if(b=mc(b))if(c=b.a[c.toString()])for(c=c.concat(),b=0;b<c.length;b++){var g=c[b];g&&g.za==d&&!g.wa&&(g=tc(g,e),f=f&&!1!==g)}return f}
  function tc(b,c){var d=b.pa,e=b.Ta||b.src;b.Ma&&T(b);return d.call(e,c)}
  function pc(b,c){if(b.wa)return!0;if(!Lb){var d;if(!(d=c))a:{d=["window","event"];for(var e=n,f;f=d.shift();)if(null!=e[f])e=e[f];else{d=null;break a}d=e}f=d;d=new Wb(f,this);e=!0;if(!(0>f.keyCode||void 0!=f.returnValue)){a:{var g=!1;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(h){g=!0}if(g||void 0==f.returnValue)f.returnValue=!0}f=[];for(g=d.e;g;g=g.parentNode)f.push(g);for(var g=b.type,k=f.length-1;!d.g&&0<=k;k--){d.e=f[k];var m=sc(f[k],g,!0,d),e=e&&m}for(k=0;!d.g&&k<f.length;k++)d.e=f[k],m=sc(f[k],
  g,!1,d),e=e&&m}return e}return tc(b,new Wb(c,this))}function mc(b){b=b[hc];return b instanceof dc?b:null}var uc="__closure_events_fn_"+(1E9*Math.random()>>>0);function kc(b){if(ha(b))return b;b[uc]||(b[uc]=function(c){return b.handleEvent(c)});return b[uc]};function V(){Nb.call(this);this.Z=new dc(this);this.La=this;this.W=null}M(V,Nb);V.prototype[Zb]=!0;V.prototype.addEventListener=function(b,c,d,e){Q(this,b,c,d,e)};V.prototype.removeEventListener=function(b,c,d,e){rc(this,b,c,d,e)};
  function X(b,c){var d,e=b.W;if(e)for(d=[];e;e=e.W)d.push(e);var e=b.La,f=c,g=f.type||f;if(C(f))f=new P(f,e);else if(f instanceof P)f.target=f.target||e;else{var h=f,f=new P(g,e);kb(f,h)}var h=!0,k;if(d)for(var m=d.length-1;!f.g&&0<=m;m--)k=f.e=d[m],h=vc(k,g,!0,f)&&h;f.g||(k=f.e=e,h=vc(k,g,!0,f)&&h,f.g||(h=vc(k,g,!1,f)&&h));if(d)for(m=0;!f.g&&m<d.length;m++)k=f.e=d[m],h=vc(k,g,!1,f)&&h;return h}
  V.prototype.v=function(){V.F.v.call(this);if(this.Z){var b=this.Z,c=0,d;for(d in b.a){for(var e=b.a[d],f=0;f<e.length;f++)++c,cc(e[f]);delete b.a[d];b.b--}}this.W=null};function vc(b,c,d,e){c=b.Z.a[String(c)];if(!c)return!0;c=c.concat();for(var f=!0,g=0;g<c.length;++g){var h=c[g];if(h&&!h.wa&&h.za==d){var k=h.pa,m=h.Ta||h.src;h.Ma&&fc(b.Z,h);f=!1!==k.call(m,e)&&f}}return f&&0!=e.yc}function wc(b,c,d){return gc(b.Z,w(c)?String(c):void 0,d)};function xc(){V.call(this);this.e=0}M(xc,V);xc.prototype.c=function(){++this.e;X(this,"change")};xc.prototype.S=function(b,c,d){return Q(this,b,c,!1,d)};function yc(b,c,d){P.call(this,b);this.key=c;this.oldValue=d}M(yc,P);function zc(b){xc.call(this);H(this);this.o={};w(b)&&Ac(this,b)}M(zc,xc);var Bc={};function Cc(b){return Bc.hasOwnProperty(b)?Bc[b]:Bc[b]="change:"+b}zc.prototype.get=function(b){var c;this.o.hasOwnProperty(b)&&(c=this.o[b]);return c};zc.prototype.la=function(){return ab(this.o)};function Dc(b){var c={},d;for(d in b.o)c[d]=b.o[d];return c}
  zc.prototype.set=function(b,c){var d=this.o[b];this.o[b]=c;var e;e=Cc(b);X(this,new yc(e,b,d));X(this,new yc("propertychange",b,d))};function Ac(b,c){for(var d in c)b.set(d,c[d])};function Ec(b,c,d){w(d)||(d=[0,0]);d[0]=b[0]*c+.5|0;d[1]=b[1]*c+.5|0;return d}function Fc(b,c){if(da(b))return b;w(c)?(c[0]=b,c[1]=b):c=[b,b];return c};function Gc(b,c){b[0]+=c[0];b[1]+=c[1]}function Hc(b,c){var d=Math.cos(c),e=Math.sin(c),f=b[1]*d+b[0]*e;b[0]=b[0]*d-b[1]*e;b[1]=f};function Ic(b){this.length=b.length||b;for(var c=0;c<this.length;c++)this[c]=b[c]||0}Ic.prototype.a=4;Ic.prototype.set=function(b,c){c=c||0;for(var d=0;d<b.length&&c+d<this.length;d++)this[c+d]=b[d]};Ic.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(Ic.BYTES_PER_ELEMENT=4,Ic.prototype.BYTES_PER_ELEMENT=Ic.prototype.a,Ic.prototype.set=Ic.prototype.set,Ic.prototype.toString=Ic.prototype.toString,I("Float32Array",Ic));function Jc(b){this.length=b.length||b;for(var c=0;c<this.length;c++)this[c]=b[c]||0}Jc.prototype.a=8;Jc.prototype.set=function(b,c){c=c||0;for(var d=0;d<b.length&&c+d<this.length;d++)this[c+d]=b[d]};Jc.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{Jc.BYTES_PER_ELEMENT=8}catch(Kc){}Jc.prototype.BYTES_PER_ELEMENT=Jc.prototype.a;Jc.prototype.set=Jc.prototype.set;Jc.prototype.toString=Jc.prototype.toString;I("Float64Array",Jc)};function Lc(){var b=Array(16);b[0]=0;b[1]=0;b[2]=0;b[3]=0;b[4]=0;b[5]=0;b[6]=0;b[7]=0;b[8]=0;b[9]=0;b[10]=0;b[11]=0;b[12]=0;b[13]=0;b[14]=0;b[15]=0;return b}function Mc(b,c,d){var e=b[1]*c+b[5]*d+0*b[9]+b[13],f=b[2]*c+b[6]*d+0*b[10]+b[14],g=b[3]*c+b[7]*d+0*b[11]+b[15];b[12]=b[0]*c+b[4]*d+0*b[8]+b[12];b[13]=e;b[14]=f;b[15]=g}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function Nc(b,c,d){var e=Math.min.apply(null,b),f=Math.min.apply(null,c);b=Math.max.apply(null,b);c=Math.max.apply(null,c);return Pc(e,f,b,c,d)}function Qc(b,c,d){return w(d)?(d[0]=b[0]-c,d[1]=b[1]-c,d[2]=b[2]+c,d[3]=b[3]+c,d):[b[0]-c,b[1]-c,b[2]+c,b[3]+c]}function Rc(b,c){return w(c)?(c[0]=b[0],c[1]=b[1],c[2]=b[2],c[3]=b[3],c):b.slice()}function Sc(b,c){return b[0]<=c[0]&&c[2]<=b[2]&&b[1]<=c[1]&&c[3]<=b[3]}function Tc(){return[Infinity,Infinity,-Infinity,-Infinity]}
  function Pc(b,c,d,e,f){return w(f)?(f[0]=b,f[1]=c,f[2]=d,f[3]=e,f):[b,c,d,e]}function Vc(b,c){return b[0]==c[0]&&b[2]==c[2]&&b[1]==c[1]&&b[3]==c[3]}function Wc(b,c,d,e,f){for(;d<e;d+=f){var g=b,h=c[d],k=c[d+1];g[0]=Math.min(g[0],h);g[1]=Math.min(g[1],k);g[2]=Math.max(g[2],h);g[3]=Math.max(g[3],k)}return b}function Xc(b){return[(b[0]+b[2])/2,(b[1]+b[3])/2]}
  function Yc(b,c,d,e){var f=c*e[0]/2;e=c*e[1]/2;c=Math.cos(d);d=Math.sin(d);f=[-f,-f,f,f];e=[-e,e,-e,e];var g,h,k;for(g=0;4>g;++g)h=f[g],k=e[g],f[g]=b[0]+h*c-k*d,e[g]=b[1]+h*d+k*c;return Nc(f,e,void 0)}function Zc(b){return b[3]-b[1]}function $c(b,c){var d=w(void 0)?void 0:Tc();ad(b,c)&&(d[0]=b[0]>c[0]?b[0]:c[0],d[1]=b[1]>c[1]?b[1]:c[1],d[2]=b[2]<c[2]?b[2]:c[2],d[3]=b[3]<c[3]?b[3]:c[3]);return d}function bd(b){return b[2]-b[0]}
  function ad(b,c){return b[0]<=c[2]&&b[2]>=c[0]&&b[1]<=c[3]&&b[3]>=c[1]}function cd(b){return b[2]<b[0]||b[3]<b[1]}function dd(b,c,d){b=[b[0],b[1],b[0],b[3],b[2],b[1],b[2],b[3]];c(b,b,2);return Nc([b[0],b[2],b[4],b[6]],[b[1],b[3],b[5],b[7]],d)};/*
  
   Latitude/longitude spherical geodesy formulae taken from
   http://www.movable-type.co.uk/scripts/latlong.html
   Licensed under CC-BY-3.0.
  */
  function ed(b){this.radius=b}function fd(b,c){var d=b[1]*Math.PI/180,e=c[1]*Math.PI/180,f=(e-d)/2,g=(c[0]-b[0])*Math.PI/180/2,d=Math.sin(f)*Math.sin(f)+Math.sin(g)*Math.sin(g)*Math.cos(d)*Math.cos(e);return 2*gd.radius*Math.atan2(Math.sqrt(d),Math.sqrt(1-d))}
  ed.prototype.offset=function(b,c,d){var e=b[1]*Math.PI/180;c/=this.radius;var f=Math.asin(Math.sin(e)*Math.cos(c)+Math.cos(e)*Math.sin(c)*Math.cos(d));return[180*(b[0]*Math.PI/180+Math.atan2(Math.sin(d)*Math.sin(c)*Math.cos(e),Math.cos(c)-Math.sin(e)*Math.sin(f)))/Math.PI,180*f/Math.PI]};var gd=new ed(6370997);var hd={};hd.degrees=2*Math.PI*gd.radius/360;hd.ft=.3048;hd.m=1;hd["us-ft"]=1200/3937;function id(b){this.a=b.code;this.b=b.units;this.f=w(b.extent)?b.extent:null;this.c=w(b.axisOrientation)?b.axisOrientation:"enu";this.e=(this.g=w(b.global)?b.global:!1)&&null!==this.f;this.h=w(b.getPointResolution)?b.getPointResolution:this.i;this.d=null}id.prototype.t=function(){return this.f};function jd(b){return b.c}
  id.prototype.i=function(b,c){if("degrees"==this.b)return b;var d=kd(this,ld("EPSG:4326")),e=[c[0]-b/2,c[1],c[0]+b/2,c[1],c[0],c[1]-b/2,c[0],c[1]+b/2],e=d(e,e,2),d=(fd(e.slice(0,2),e.slice(2,4))+fd(e.slice(4,6),e.slice(6,8)))/2,e=hd[this.b];w(e)&&(d/=e);return d};id.prototype.getPointResolution=function(b,c){return this.h(b,c)};var md={},nd={};function od(b){pd(b);N(b,function(c){N(b,function(b){c!==b&&qd(c,b,rd)})})}function sd(b){md[b.a]=b;qd(b,b,rd)}
  function pd(b){var c=[];N(b,function(b){c.push(sd(b))})}function td(b){return null!=b?C(b)?ld(b):b:ld("EPSG:3857")}function qd(b,c,d){b=b.a;c=c.a;b in nd||(nd[b]={});nd[b][c]=d}function ld(b){var c;b instanceof id?c=b:C(b)?c=md[b]:c=null;return c}function ud(b,c){var d=ld(b),e=ld(c);return kd(d,e)}function kd(b,c){var d=b.a,e=c.a,f;d in nd&&e in nd[d]&&(f=nd[d][e]);w(f)||(f=vd);return f}function vd(b,c){if(w(c)&&b!==c){for(var d=0,e=b.length;d<e;++d)c[d]=b[d];b=c}return b}
  function rd(b,c){var d;if(w(c)){d=0;for(var e=b.length;d<e;++d)c[d]=b[d];d=c}else d=b.slice();return d}function wd(b,c,d){c=ud(c,d);return dd(b,c)};function xd(b){zc.call(this);b=w(b)?b:{};this.b=[0,0];var c={};c.center=w(b.center)?b.center:null;this.f=td(b.projection);var d,e,f,g=w(b.minZoom)?b.minZoom:0;d=w(b.maxZoom)?b.maxZoom:28;var h=w(b.zoomFactor)?b.zoomFactor:2;if(w(b.resolutions))d=b.resolutions,e=d[0],d=Db(d);else{e=td(b.projection);f=e.t();var k=(null===f?360*hd.degrees/hd[e.b]:Math.max(bd(f),Zc(f)))/256/Math.pow(2,0),m=k/Math.pow(2,28);e=b.maxResolution;w(e)?g=0:e=k/Math.pow(h,g);f=b.minResolution;w(f)||(f=w(b.maxZoom)?w(b.maxResolution)?
  e/Math.pow(h,d):k/Math.pow(h,d):m);d=g+Math.floor(Math.log(e/f)/Math.log(h));d=Eb(h,e,d-g)}this.d=e;this.g=g;g=w(b.extent)?Ab(b.extent):Bb;(w(b.enableRotation)?b.enableRotation:1)?(e=b.constrainRotation,e=w(e)&&!0!==e?!1===e?Gb:fa(e)?Hb(e):Gb:Ib()):e=Fb;this.a=new Jb(g,d,e);w(b.resolution)?c.resolution=b.resolution:w(b.zoom)&&(c.resolution=this.constrainResolution(this.d,b.zoom-this.g));c.rotation=w(b.rotation)?b.rotation:0;Ac(this,c)}M(xd,zc);l=xd.prototype;
  l.constrainResolution=function(b,c,d){return this.a.resolution(b,c||0,d||0)};l.constrainRotation=function(b,c){return this.a.rotation(b,c||0)};function yd(b){return b.get("center")}function zd(b){return b.get("resolution")}l.L=function(){return this.get("rotation")};function Ad(b){var c=yd(b),d=b.f,e=zd(b);b=b.L();return{center:c.slice(),projection:w(d)?d:null,resolution:e,rotation:b}}
  l.ld=function(b,c){if(!cd(b)){this.ga(Xc(b));var d=Math.max(bd(b)/c[0],Zc(b)/c[1]),e=this.constrainResolution(d,0,0);e<d&&(e=this.constrainResolution(e,-1,0));Bd(this,e)}};l.rotate=function(b,c){if(w(c)){var d,e=yd(this);w(e)&&(d=[e[0]-c[0],e[1]-c[1]],Hc(d,b-this.L()),Gc(d,c));this.ga(d)}this.set("rotation",b)};l.ga=function(b){this.set("center",b)};function Cd(b,c){b.b[1]+=c}function Bd(b,c){b.set("resolution",c)}l.Re=function(b){b=this.constrainResolution(this.d,b-this.g,0);Bd(this,b)};function Dd(b){return 1-Math.pow(1-b,3)};function Ed(b){return 3*b*b-2*b*b*b}function Fd(b){return b};function Gd(b){var c=b.source,d=w(b.start)?b.start:pa(),e=c[0],f=c[1],g=w(b.duration)?b.duration:1E3,h=w(b.easing)?b.easing:Ed;return function(b,c){if(c.time<d)return c.animate=!0,c.viewHints[0]+=1,!0;if(c.time<d+g){var p=1-h((c.time-d)/g),q=e-c.viewState.center[0],r=f-c.viewState.center[1];c.animate=!0;c.viewState.center[0]+=p*q;c.viewState.center[1]+=p*r;c.viewHints[0]+=1;return!0}return!1}}
  function Hd(b){var c=w(b.rotation)?b.rotation:0,d=w(b.start)?b.start:pa(),e=w(b.duration)?b.duration:1E3,f=w(b.easing)?b.easing:Ed,g=w(b.anchor)?b.anchor:null;return function(b,k){if(k.time<d)return k.animate=!0,k.viewHints[0]+=1,!0;if(k.time<d+e){var m=1-f((k.time-d)/e),m=(c-k.viewState.rotation)*m;k.animate=!0;k.viewState.rotation+=m;if(null!==g){var p=k.viewState.center;p[0]-=g[0];p[1]-=g[1];Hc(p,m);Gc(p,g)}k.viewHints[0]+=1;return!0}return!1}}
  function Id(b){var c=b.resolution,d=w(b.start)?b.start:pa(),e=w(b.duration)?b.duration:1E3,f=w(b.easing)?b.easing:Ed;return function(b,h){if(h.time<d)return h.animate=!0,h.viewHints[0]+=1,!0;if(h.time<d+e){var k=1-f((h.time-d)/e),m=c-h.viewState.resolution;h.animate=!0;h.viewState.resolution+=k*m;h.viewHints[0]+=1;return!0}return!1}};function Jd(b,c,d){return b+"/"+c+"/"+d}function Kd(b){return Jd(b[0],b[1],b[2])};function Ld(b,c,d,e){this.a=b;this.e=c;this.c=d;this.b=e}function Md(b,c,d,e,f){return w(f)?(f.a=b,f.e=c,f.c=d,f.b=e,f):new Ld(b,c,d,e)}Ld.prototype.contains=function(b){var c=b[1];b=b[2];return this.a<=c&&c<=this.e&&this.c<=b&&b<=this.b};Ld.prototype.H=function(){return this.e-this.a+1};function Nd(b,c,d){P.call(this,b,d);this.element=c}M(Nd,P);function Od(b){zc.call(this);this.a=w(b)?b:[];Pd(this)}M(Od,zc);l=Od.prototype;l.clear=function(){for(;0<this.Eb();)this.pop()};l.forEach=function(b,c){N(this.a,b,c)};l.item=function(b){return this.a[b]};l.Eb=function(){return this.get("length")};l.kc=function(b,c){Na(this.a,b,0,c);Pd(this);X(this,new Nd("add",c,this))};l.pop=function(){return Qd(this,this.Eb()-1)};l.push=function(b){var c=this.a.length;this.kc(c,b);return c};
  l.remove=function(b){var c=this.a,d,e;d=0;for(e=c.length;d<e;++d)if(c[d]===b)return Qd(this,d)};function Qd(b,c){var d=b.a[c];Da.splice.call(b.a,c,1);Pd(b);X(b,new Nd("remove",d,b));return d}function Pd(b){b.set("length",b.a.length)};function Rd(b){if(!C(b)){var c=b[0];c!=(c|0)&&(c=c+.5|0);var d=b[1];d!=(d|0)&&(d=d+.5|0);var e=b[2];e!=(e|0)&&(e=e+.5|0);b="rgba("+c+","+d+","+e+","+b[3]+")"}return b};var Sd=!O||O&&9<=xb;!nb&&!O||O&&O&&9<=xb||nb&&vb("1.9.1");O&&vb("9");lb("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));function Td(b,c){this.x=w(b)?b:0;this.y=w(c)?c:0}l=Td.prototype;l.clone=function(){return new Td(this.x,this.y)};l.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};l.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};l.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};l.scale=function(b,c){var d=fa(c)?c:b;this.x*=b;this.y*=d;return this};function Ud(b,c){this.width=b;this.height=c}l=Ud.prototype;l.clone=function(){return new Ud(this.width,this.height)};l.U=function(){return!(this.width*this.height)};l.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
  l.scale=function(b,c){var d=fa(c)?c:b;this.width*=b;this.height*=d;return this};function Vd(b){var c=document;return C(b)?c.getElementById(b):b}function Wd(b,c){Xa(c,function(c,e){"style"==e?b.style.cssText=c:"class"==e?b.className=c:"for"==e?b.htmlFor=c:e in Xd?b.setAttribute(Xd[e],c):0==e.lastIndexOf("aria-",0)||0==e.lastIndexOf("data-",0)?b.setAttribute(e,c):b[e]=c})}
  var Xd={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function Yd(b){b=b.document.documentElement;return new Ud(b.clientWidth,b.clientHeight)}
  function Zd(b,c,d){var e=arguments,f=document,g=e[0],h=e[1];if(!Sd&&h&&(h.name||h.type)){g=["<",g];h.name&&g.push(' name="',sa(h.name),'"');if(h.type){g.push(' type="',sa(h.type),'"');var k={};kb(k,h);delete k.type;h=k}g.push(">");g=g.join("")}g=f.createElement(g);h&&(C(h)?g.className=h:da(h)?g.className=h.join(" "):Wd(g,h));2<e.length&&$d(f,g,e);return g}
  function $d(b,c,d){function e(d){d&&c.appendChild(C(d)?b.createTextNode(d):d)}for(var f=2;f<d.length;f++){var g=d[f];!ea(g)||ia(g)&&0<g.nodeType?e(g):N(ae(g)?La(g):g,e)}}function be(b){b&&b.parentNode&&b.parentNode.removeChild(b)}function ce(b,c){if(b.contains&&1==c.nodeType)return b==c||b.contains(c);if("undefined"!=typeof b.compareDocumentPosition)return b==c||Boolean(b.compareDocumentPosition(c)&16);for(;c&&b!=c;)c=c.parentNode;return c==b}
  function ae(b){if(b&&"number"==typeof b.length){if(ia(b))return"function"==typeof b.item||"string"==typeof b.item;if(ha(b))return"function"==typeof b.item}return!1}function de(){}de.prototype.appendChild=function(b,c){b.appendChild(c)};de.prototype.contains=ce;function ee(b){if(b.classList)return b.classList;b=b.className;return C(b)&&b.match(/\S+/g)||[]}function fe(b,c){var d;b.classList?d=b.classList.contains(c):(d=ee(b),d=0<=Ea(d,c));return d}function ge(b,c){b.classList?b.classList.add(c):fe(b,c)||(b.className+=0<b.className.length?" "+c:c)}function he(b,c){b.classList?b.classList.remove(c):fe(b,c)&&(b.className=Ga(ee(b),function(b){return b!=c}).join(" "))};function ie(b,c,d,e){this.top=b;this.right=c;this.bottom=d;this.left=e}l=ie.prototype;l.H=function(){return this.right-this.left};l.clone=function(){return new ie(this.top,this.right,this.bottom,this.left)};l.contains=function(b){return this&&b?b instanceof ie?b.left>=this.left&&b.right<=this.right&&b.top>=this.top&&b.bottom<=this.bottom:b.x>=this.left&&b.x<=this.right&&b.y>=this.top&&b.y<=this.bottom:!1};
  l.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};l.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};l.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
  l.scale=function(b,c){var d=fa(c)?c:b;this.left*=b;this.right*=b;this.top*=d;this.bottom*=d;return this};function je(b,c){var d=9==b.nodeType?b:b.ownerDocument||b.document;return d.defaultView&&d.defaultView.getComputedStyle&&(d=d.defaultView.getComputedStyle(b,null))?d[c]||d.getPropertyValue(c)||"":""}
  function ke(b){if(1==b.nodeType){a:{var c;try{c=b.getBoundingClientRect()}catch(d){b={left:0,top:0,right:0,bottom:0};break a}O&&b.ownerDocument.body&&(b=b.ownerDocument,c.left-=b.documentElement.clientLeft+b.body.clientLeft,c.top-=b.documentElement.clientTop+b.body.clientTop);b=c}return new Td(b.left,b.top)}c=ha(b.nd);var e=b;b.targetTouches&&b.targetTouches.length?e=b.targetTouches[0]:c&&b.a.targetTouches&&b.a.targetTouches.length&&(e=b.a.targetTouches[0]);return new Td(e.clientX,e.clientY)}
  function le(b,c){b.style.display=c?"":"none"}function me(b,c,d,e){if(/^\d+px?$/.test(c))return parseInt(c,10);var f=b.style[d],g=b.runtimeStyle[d];b.runtimeStyle[d]=b.currentStyle[d];b.style[d]=c;c=b.style[e];b.style[d]=f;b.runtimeStyle[d]=g;return c}function ne(b,c){var d=b.currentStyle?b.currentStyle[c]:null;return d?me(b,d,"left","pixelLeft"):0}var oe={thin:2,medium:4,thick:6};
  function pe(b,c){if("none"==(b.currentStyle?b.currentStyle[c+"Style"]:null))return 0;var d=b.currentStyle?b.currentStyle[c+"Width"]:null;return d in oe?oe[d]:me(b,d,"left","pixelLeft")};function qe(b,c,d){P.call(this,b);this.map=c;this.frameState=w(d)?d:null}M(qe,P);function re(b){zc.call(this);this.element=w(b.element)?b.element:null;this.g=this.p=null;this.h=[];this.render=w(b.render)?b.render:ba;w(b.target)&&(this.p=Vd(b.target))}M(re,zc);re.prototype.v=function(){be(this.element);re.F.v.call(this)};re.prototype.setMap=function(b){null===this.g||be(this.element);0!=this.h.length&&(N(this.h,T),this.h.length=0);this.g=b;null!==this.g&&((null===this.p?b.p:this.p).appendChild(this.element),this.render!==ba&&this.h.push(Q(b,"postrender",this.render,!1,this)),b.render())};function se(){this.e=0;this.c={};this.a=this.b=null}l=se.prototype;l.clear=function(){this.e=0;this.c={};this.a=this.b=null};l.forEach=function(b,c){for(var d=this.b;null!==d;)b.call(c,d.xa,d.Cb,this),d=d.Q};l.get=function(b){b=this.c[b];if(b===this.a)return b.xa;b===this.b?(this.b=this.b.Q,this.b.ia=null):(b.Q.ia=b.ia,b.ia.Q=b.Q);b.Q=null;b.ia=this.a;this.a=this.a.Q=b;return b.xa};l.Pa=function(){return this.e};l.la=function(){var b=Array(this.e),c=0,d;for(d=this.a;null!==d;d=d.ia)b[c++]=d.Cb;return b};
  l.Ia=function(){var b=Array(this.e),c=0,d;for(d=this.a;null!==d;d=d.ia)b[c++]=d.xa;return b};l.pop=function(){var b=this.b;delete this.c[b.Cb];null!==b.Q&&(b.Q.ia=null);this.b=b.Q;null===this.b&&(this.a=null);--this.e;return b.xa};l.set=function(b,c){var d={Cb:b,Q:null,ia:this.a,xa:c};null===this.a?this.b=d:this.a.Q=d;this.a=d;this.c[b]=d;++this.e};function te(b){se.call(this);this.d=w(b)?b:2048}M(te,se);function ue(b){return b.Pa()>b.d};function ve(b,c){V.call(this);this.a=b;this.state=c}M(ve,V);ve.prototype.getKey=function(){return H(this).toString()};function we(b){zc.call(this);this.u=ld(b.projection);this.i=w(b.attributions)?b.attributions:null;this.I=b.logo;this.T=w(b.state)?b.state:"ready";this.l=b.wrapX}M(we,zc);function xe(b){return function(){return b}}var ye=xe(!1),ze=xe(!0);function Ae(b){var c;c=c||0;return function(){return b.apply(this,Array.prototype.slice.call(arguments,0,c))}}function Be(b){var c=arguments,d=c.length;return function(){for(var b=0;b<d;b++)if(!c[b].apply(this,arguments))return!1;return!0}};function Ce(b){this.minZoom=w(b.minZoom)?b.minZoom:0;this.a=b.resolutions;this.maxZoom=this.a.length-1;this.b=w(b.origin)?b.origin:null;this.e=null;w(b.origins)&&(this.e=b.origins);this.d=null;w(b.tileSizes)&&(this.d=b.tileSizes);this.f=w(b.tileSize)?b.tileSize:null===this.d?256:null;this.c=[0,0];this.g=null;w(b.widths)&&(this.g=b.widths)}var De=[0,0,0];function Ee(b,c,d,e){Fe(b,c[0],c[1],d,!1);var f=De[1],g=De[2];Fe(b,c[2],c[3],d,!0);return Md(f,De[1],g,De[2],e)}
  function Ge(b,c,d){var e=null===b.b?b.e[c[0]]:b.b,f=b.a[c[0]];b=Fc(He(b,c[0]),b.c);var g=e[0]+c[1]*b[0]*f;c=e[1]+c[2]*b[1]*f;return Pc(g,c,g+b[0]*f,c+b[1]*f,d)}function Fe(b,c,d,e,f){var g=Ie(b,e),h=e/b.a[g],k=null===b.b?b.e[g]:b.b;b=Fc(He(b,g),b.c);c=h*(c-k[0])/(e*b[0]);d=h*(d-k[1])/(e*b[1]);f?(c=Math.ceil(c)-1,d=Math.ceil(d)-1):(c=Math.floor(c),d=Math.floor(d));w(De)&&(De[0]=g,De[1]=c,De[2]=d)}
  function Je(b,c,d){d=Ke(d);d=Ee(b,d,b.a[c],void 0);b=b.H(c);w(b)||(b=d.H());return Md(0,b-1,0,d.b-d.c+1,void 0)}function He(b,c){return null===b.f?b.d[c]:b.f}Ce.prototype.H=function(b){if(null!==this.g)return this.g[b]};function Ie(b,c){var d=Cb(b.a,c,0);return yb(d,b.minZoom,b.maxZoom)}
  function Le(b){var c=b.d;if(null===c){for(var c=Ke(b),d=w(void 0)?Fc(void 0):Fc(256),e=w(void 0)?void 0:"bottom-left",f=Fc(d),g=w(void 0)?void 0:42,h=Zc(c),k=bd(c),f=w(f)?f:Fc(256),h=Math.max(k/f[0],h/f[1]),k=g+1,g=Array(k),f=0;f<k;++f)g[f]=h/Math.pow(2,f);h=Array(g.length);k=bd(c);for(f=g.length-1;0<=f;--f)h[f]=k/d[0]/g[f];var m;"bottom-left"===e?m=[c[0],c[1]]:"bottom-right"===e?m=[c[2],c[1]]:"top-left"===e?m=[c[0],c[3]]:"top-right"===e&&(m=[c[2],c[3]]);c=new Ce({origin:m,resolutions:g,tileSize:w(void 0)?
  void 0:256,widths:h});b.d=c}return c}function Ke(b){b=ld(b);var c=b.t();null===c&&(b=180*hd.degrees/hd[b.b],c=Pc(-b,-b,b,b));return c};function Me(b){we.call(this,{attributions:b.attributions,extent:b.extent,logo:b.logo,projection:b.projection,state:b.state,wrapX:b.wrapX});this.X=w(b.opaque)?b.opaque:!1;this.Y=w(b.tilePixelRatio)?b.tilePixelRatio:1;this.tileGrid=w(b.tileGrid)?b.tileGrid:null;this.a=new te;this.b=[0,0]}M(Me,we);function Ne(b,c,d,e){for(var f=!0,g,h,k=d.a;k<=d.e;++k)for(var m=d.c;m<=d.b;++m)g=b.d(c,k,m),h=!1,b.a.c.hasOwnProperty(g)&&(g=b.a.get(g),(h=2===g.state)&&(h=!1!==e(g))),h||(f=!1);return f}Me.prototype.p=function(){return 0};
  Me.prototype.d=Jd;function Oe(b,c){return null===b.tileGrid?Le(c):b.tileGrid}Me.prototype.f=function(b,c,d){c=Oe(this,d);return Ec(Fc(He(c,b),this.b),this.Y,this.b)};Me.prototype.G=ba;function Pe(b,c){P.call(this,b);this.tile=c}M(Pe,P);function Qe(b){b=w(b)?b:{};this.j=document.createElement("UL");this.i=document.createElement("LI");this.j.appendChild(this.i);le(this.i,!1);this.d=w(b.collapsed)?b.collapsed:!0;this.f=w(b.collapsible)?b.collapsible:!0;this.f||(this.d=!1);var c=w(b.className)?b.className:"ol-attribution",d=w(b.tipLabel)?b.tipLabel:"Attributions",e=w(b.collapseLabel)?b.collapseLabel:"\u00bb";this.l=C(e)?Zd("SPAN",{},e):e;e=w(b.label)?b.label:"i";this.n=C(e)?Zd("SPAN",{},e):e;d=Zd("BUTTON",{type:"button",title:d},this.f&&
  !this.d?this.l:this.n);Q(d,"click",this.u,!1,this);Q(d,["mouseout",Ub],function(){this.blur()},!1);c=Zd("DIV",c+" ol-unselectable ol-control"+(this.d&&this.f?" ol-collapsed":"")+(this.f?"":" ol-uncollapsible"),this.j,d);re.call(this,{element:c,render:w(b.render)?b.render:Re,target:b.target});this.k=!0;this.b={};this.a={};this.q={}}M(Qe,re);
  function Re(b){b=b.frameState;if(null===b)this.k&&(le(this.element,!1),this.k=!1);else{var c,d,e,f,g,h,k,m,p,q,r=b.layerStatesArray,t=ib(b.attributions),v={},y=b.viewState.projection;d=0;for(c=r.length;d<c;d++)if(h=r[d].layer.ha(),null!==h&&(q=H(h).toString(),p=h.i,null!==p))for(e=0,f=p.length;e<f;e++)if(k=p[e],m=H(k).toString(),!(m in t)){g=b.usedTiles[q];if(w(g)){var x=Oe(h,y);g=k.b(g,x,y)}else g=!1;g?(m in v&&delete v[m],t[m]=k):v[m]=k}c=[t,v];d=c[0];c=c[1];for(var u in this.b)u in d?(this.a[u]||
  (le(this.b[u],!0),this.a[u]=!0),delete d[u]):u in c?(this.a[u]&&(le(this.b[u],!1),delete this.a[u]),delete c[u]):(be(this.b[u]),delete this.b[u],delete this.a[u]);for(u in d)e=document.createElement("LI"),e.innerHTML=d[u].a(),this.j.appendChild(e),this.b[u]=e,this.a[u]=!0;for(u in c)e=document.createElement("LI"),e.innerHTML=c[u].a(),le(e,!1),this.j.appendChild(e),this.b[u]=e;u=!db(this.a)||!db(b.logos);this.k!=u&&(le(this.element,u),this.k=u);u&&db(this.a)?ge(this.element,"ol-logo-only"):he(this.element,
  "ol-logo-only");var D;b=b.logos;u=this.q;for(D in u)D in b||(be(u[D]),delete u[D]);for(var z in b)z in u||(D=new Image,D.src=z,d=b[z],""===d?d=D:(d=Zd("A",{href:d}),d.appendChild(D)),this.i.appendChild(d),u[z]=d);le(this.i,!db(b))}}Qe.prototype.u=function(b){b.preventDefault();b=this.element;fe(b,"ol-collapsed")?he(b,"ol-collapsed"):ge(b,"ol-collapsed");if(this.d){b=this.n;var c=b.parentNode;c&&c.replaceChild(this.l,b)}else b=this.l,(c=b.parentNode)&&c.replaceChild(this.n,b);this.d=!this.d};function Se(b){b=w(b)?b:{};var c=w(b.className)?b.className:"ol-rotate",d=w(b.label)?b.label:"\u21e7";this.a=null;C(d)?this.a=Zd("SPAN","ol-compass",d):(this.a=d,ge(this.a,"ol-compass"));d=Zd("BUTTON",{"class":c+"-reset",type:"button",title:w(b.tipLabel)?b.tipLabel:"Reset rotation"},this.a);Q(d,"click",Se.prototype.i,!1,this);Q(d,["mouseout",Ub],function(){this.blur()},!1);c=Zd("DIV",c+" ol-unselectable ol-control",d);re.call(this,{element:c,render:w(b.render)?b.render:Te,target:b.target});this.d=
  w(b.duration)?b.duration:250;this.b=w(b.autoHide)?b.autoHide:!0;this.f=void 0;this.b&&ge(this.element,"ol-hidden")}M(Se,re);Se.prototype.i=function(b){b.preventDefault();b=this.g;var c=b.C();if(null!==c){for(var d=c.L();d<-Math.PI;)d+=2*Math.PI;for(;d>Math.PI;)d-=2*Math.PI;w(d)&&(0<this.d&&b.ea(Hd({rotation:d,duration:this.d,easing:Dd})),c.set("rotation",0))}};
  function Te(b){b=b.frameState;if(null!==b){b=b.viewState.rotation;if(b!=this.f){var c="rotate("+180*b/Math.PI+"deg)";if(this.b){var d=this.element;0===b?ge(d,"ol-hidden"):he(d,"ol-hidden")}this.a.style.msTransform=c;this.a.style.webkitTransform=c;this.a.style.transform=c}this.f=b}};function Ue(b){b=w(b)?b:{};var c=w(b.className)?b.className:"ol-zoom",d=w(b.delta)?b.delta:1,e=w(b.zoomOutLabel)?b.zoomOutLabel:"\u2212",f=w(b.zoomOutTipLabel)?b.zoomOutTipLabel:"Zoom out",g=Zd("BUTTON",{"class":c+"-in",type:"button",title:w(b.zoomInTipLabel)?b.zoomInTipLabel:"Zoom in"},w(b.zoomInLabel)?b.zoomInLabel:"+");Q(g,"click",oa(Ue.prototype.b,d),!1,this);Q(g,["mouseout",Ub],function(){this.blur()},!1);e=Zd("BUTTON",{"class":c+"-out",type:"button",title:f},e);Q(e,"click",oa(Ue.prototype.b,
  -d),!1,this);Q(e,["mouseout",Ub],function(){this.blur()},!1);c=Zd("DIV",c+" ol-unselectable ol-control",g,e);re.call(this,{element:c,target:b.target});this.a=w(b.duration)?b.duration:250}M(Ue,re);Ue.prototype.b=function(b,c){c.preventDefault();var d=this.g,e=d.C();if(null!==e){var f=zd(e);w(f)&&(0<this.a&&d.ea(Id({resolution:f,duration:this.a,easing:Dd})),d=e.constrainResolution(f,b),Bd(e,d))}};function Ve(b,c,d){Nb.call(this);this.e=b;this.c=d;this.a=c||window;this.b=na(this.hd,this)}M(Ve,Nb);l=Ve.prototype;l.P=null;l.Qb=!1;l.start=function(){We(this);this.Qb=!1;var b=Xe(this),c=Ye(this);b&&!c&&this.a.mozRequestAnimationFrame?(this.P=Q(this.a,"MozBeforePaint",this.b),this.a.mozRequestAnimationFrame(null),this.Qb=!0):this.P=b&&c?b.call(this.a,this.b):this.a.setTimeout(Ae(this.b),20)};
  function We(b){if(null!=b.P){var c=Xe(b),d=Ye(b);c&&!d&&b.a.mozRequestAnimationFrame?T(b.P):c&&d?d.call(b.a,b.P):b.a.clearTimeout(b.P)}b.P=null}l.hd=function(){this.Qb&&this.P&&T(this.P);this.P=null;this.e.call(this.c,pa())};l.v=function(){We(this);Ve.F.v.call(this)};function Xe(b){b=b.a;return b.requestAnimationFrame||b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||b.oRequestAnimationFrame||b.msRequestAnimationFrame||null}
  function Ye(b){b=b.a;return b.cancelAnimationFrame||b.cancelRequestAnimationFrame||b.webkitCancelRequestAnimationFrame||b.mozCancelRequestAnimationFrame||b.oCancelRequestAnimationFrame||b.msCancelRequestAnimationFrame||null};var Ze;
  function $e(){var b=n.MessageChannel;"undefined"===typeof b&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&(b=function(){var b=document.createElement("iframe");b.style.display="none";b.src="";document.documentElement.appendChild(b);var c=b.contentWindow,b=c.document;b.open();b.write("");b.close();var d="callImmediate"+Math.random(),e="file:"==c.location.protocol?"*":c.location.protocol+"//"+c.location.host,b=na(function(b){if(("*"==e||b.origin==e)&&b.data==d)this.port1.onmessage()},this);
  c.addEventListener("message",b,!1);this.port1={};this.port2={postMessage:function(){c.postMessage(d,e)}}});if("undefined"!==typeof b&&!Wa("Trident")&&!Wa("MSIE")){var c=new b,d={},e=d;c.port1.onmessage=function(){if(w(d.next)){d=d.next;var b=d.$b;d.$b=null;b()}};return function(b){e.next={$b:b};e=e.next;c.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("script")?function(b){var c=document.createElement("script");c.onreadystatechange=function(){c.onreadystatechange=
  null;c.parentNode.removeChild(c);c=null;b();b=null};document.documentElement.appendChild(c)}:function(b){n.setTimeout(b,0)}};function af(b){if("function"==typeof b.Ia)return b.Ia();if(C(b))return b.split("");if(ea(b)){for(var c=[],d=b.length,e=0;e<d;e++)c.push(b[e]);return c}return $a(b)}
  function bf(b,c){if("function"==typeof b.forEach)b.forEach(c,void 0);else if(ea(b)||C(b))N(b,c,void 0);else{var d;if("function"==typeof b.la)d=b.la();else if("function"!=typeof b.Ia)if(ea(b)||C(b)){d=[];for(var e=b.length,f=0;f<e;f++)d.push(f)}else d=ab(b);else d=void 0;for(var e=af(b),f=e.length,g=0;g<f;g++)c.call(void 0,e[g],d&&d[g],b)}};function cf(b,c){this.b={};this.a=[];this.c=0;var d=arguments.length;if(1<d){if(d%2)throw Error("Uneven number of arguments");for(var e=0;e<d;e+=2)this.set(arguments[e],arguments[e+1])}else if(b){b instanceof cf?(d=b.la(),e=b.Ia()):(d=ab(b),e=$a(b));for(var f=0;f<d.length;f++)this.set(d[f],e[f])}}l=cf.prototype;l.Pa=function(){return this.c};l.Ia=function(){df(this);for(var b=[],c=0;c<this.a.length;c++)b.push(this.b[this.a[c]]);return b};l.la=function(){df(this);return this.a.concat()};
  l.U=function(){return 0==this.c};l.clear=function(){this.b={};this.c=this.a.length=0};l.remove=function(b){return Object.prototype.hasOwnProperty.call(this.b,b)?(delete this.b[b],this.c--,this.a.length>2*this.c&&df(this),!0):!1};
  function df(b){if(b.c!=b.a.length){for(var c=0,d=0;c<b.a.length;){var e=b.a[c];Object.prototype.hasOwnProperty.call(b.b,e)&&(b.a[d++]=e);c++}b.a.length=d}if(b.c!=b.a.length){for(var f={},d=c=0;c<b.a.length;)e=b.a[c],Object.prototype.hasOwnProperty.call(f,e)||(b.a[d++]=e,f[e]=1),c++;b.a.length=d}}l.get=function(b,c){return Object.prototype.hasOwnProperty.call(this.b,b)?this.b[b]:c};l.set=function(b,c){Object.prototype.hasOwnProperty.call(this.b,b)||(this.c++,this.a.push(b));this.b[b]=c};
  l.forEach=function(b,c){for(var d=this.la(),e=0;e<d.length;e++){var f=d[e],g=this.get(f);b.call(c,g,f,this)}};l.clone=function(){return new cf(this)};function ef(){this.a=pa()}new ef;ef.prototype.set=function(b){this.a=b};ef.prototype.get=function(){return this.a};function ff(b){V.call(this);this.Ka=b||window;this.Wa=Q(this.Ka,"resize",this.Gd,!1,this);this.Qa=Yd(this.Ka||window)}M(ff,V);l=ff.prototype;l.Wa=null;l.Ka=null;l.Qa=null;l.v=function(){ff.F.v.call(this);this.Wa&&(T(this.Wa),this.Wa=null);this.Qa=this.Ka=null};l.Gd=function(){var b=Yd(this.Ka||window),c=this.Qa;b==c||b&&c&&b.width==c.width&&b.height==c.height||(this.Qa=b,X(this,"resize"))};function gf(b,c,d,e,f){if(!(O||ob&&vb("525")))return!0;if(pb&&f)return hf(b);if(f&&!e)return!1;fa(c)&&(c=jf(c));if(!d&&(17==c||18==c||pb&&91==c))return!1;if(ob&&e&&d)switch(b){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(O&&e&&c==b)return!1;switch(b){case 13:return!0;case 27:return!ob}return hf(b)}
  function hf(b){if(48<=b&&57>=b||96<=b&&106>=b||65<=b&&90>=b||ob&&0==b)return!0;switch(b){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}}function jf(b){if(nb)b=kf(b);else if(pb&&ob)a:switch(b){case 93:b=91;break a}return b}
  function kf(b){switch(b){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return b}};function lf(b,c){V.call(this);b&&mf(this,b,c)}M(lf,V);l=lf.prototype;l.Ja=null;l.Ua=null;l.Bb=null;l.Va=null;l.O=-1;l.fa=-1;l.lb=!1;
  var nf={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},of={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},pf=O||ob&&vb("525"),qf=pb&&nb;
  lf.prototype.a=function(b){ob&&(17==this.O&&!b.f||18==this.O&&!b.b||pb&&91==this.O&&!b.s)&&(this.fa=this.O=-1);-1==this.O&&(b.f&&17!=b.c?this.O=17:b.b&&18!=b.c?this.O=18:b.s&&91!=b.c&&(this.O=91));pf&&!gf(b.c,this.O,b.d,b.f,b.b)?this.handleEvent(b):(this.fa=jf(b.c),qf&&(this.lb=b.b))};lf.prototype.b=function(b){this.fa=this.O=-1;this.lb=b.b};
  lf.prototype.handleEvent=function(b){var c=b.a,d,e,f=c.altKey;O&&"keypress"==b.type?(d=this.fa,e=13!=d&&27!=d?c.keyCode:0):ob&&"keypress"==b.type?(d=this.fa,e=0<=c.charCode&&63232>c.charCode&&hf(d)?c.charCode:0):mb?(d=this.fa,e=hf(d)?c.keyCode:0):(d=c.keyCode||this.fa,e=c.charCode||0,qf&&(f=this.lb),pb&&63==e&&224==d&&(d=191));var g=d=jf(d),h=c.keyIdentifier;d?63232<=d&&d in nf?g=nf[d]:25==d&&b.d&&(g=9):h&&h in of&&(g=of[h]);this.O=g;b=new rf(g,e,0,c);b.b=f;X(this,b)};
  function mf(b,c,d){b.Va&&sf(b);b.Ja=c;b.Ua=Q(b.Ja,"keypress",b,d);b.Bb=Q(b.Ja,"keydown",b.a,d,b);b.Va=Q(b.Ja,"keyup",b.b,d,b)}function sf(b){b.Ua&&(T(b.Ua),T(b.Bb),T(b.Va),b.Ua=null,b.Bb=null,b.Va=null);b.Ja=null;b.O=-1;b.fa=-1}lf.prototype.v=function(){lf.F.v.call(this);sf(this)};function rf(b,c,d,e){Wb.call(this,e);this.type="key";this.c=b;this.i=c}M(rf,Wb);function tf(b,c){V.call(this);var d=this.a=b;(d=ia(d)&&1==d.nodeType?this.a:this.a?this.a.body:null)&&je(d,"direction");this.b=Q(this.a,nb?"DOMMouseScroll":"mousewheel",this,c)}M(tf,V);
  tf.prototype.handleEvent=function(b){var c=0,d=0,e=0;b=b.a;if("mousewheel"==b.type){d=1;if(O||ob&&(qb||vb("532.0")))d=40;e=uf(-b.wheelDelta,d);w(b.wheelDeltaX)?(c=uf(-b.wheelDeltaX,d),d=uf(-b.wheelDeltaY,d)):d=e}else e=b.detail,100<e?e=3:-100>e&&(e=-3),w(b.axis)&&b.axis===b.HORIZONTAL_AXIS?c=e:d=e;fa(this.c)&&yb(c,-this.c,this.c);fa(this.e)&&(d=yb(d,-this.e,this.e));c=new vf(e,b,0,d);X(this,c)};function uf(b,c){return ob&&(pb||rb)&&0!=b%c?b:b/c}
  tf.prototype.v=function(){tf.F.v.call(this);T(this.b);this.b=null};function vf(b,c,d,e){Wb.call(this,c);this.type="mousewheel";this.detail=b;this.o=e}M(vf,Wb);function wf(b,c,d){P.call(this,b);this.b=c;b=w(d)?d:{};this.buttons=xf(b);this.pressure=yf(b,this.buttons);this.bubbles=hb(b,"bubbles",!1);this.cancelable=hb(b,"cancelable",!1);this.view=hb(b,"view",null);this.detail=hb(b,"detail",null);this.screenX=hb(b,"screenX",0);this.screenY=hb(b,"screenY",0);this.clientX=hb(b,"clientX",0);this.clientY=hb(b,"clientY",0);this.button=hb(b,"button",0);this.relatedTarget=hb(b,"relatedTarget",null);this.pointerId=hb(b,"pointerId",0);this.width=hb(b,"width",0);this.height=
  hb(b,"height",0);this.pointerType=hb(b,"pointerType","");this.isPrimary=hb(b,"isPrimary",!1);c.preventDefault&&(this.preventDefault=function(){c.preventDefault()})}M(wf,P);function xf(b){if(b.buttons||zf)b=b.buttons;else switch(b.which){case 1:b=1;break;case 2:b=4;break;case 3:b=2;break;default:b=0}return b}function yf(b,c){var d=0;b.pressure?d=b.pressure:d=c?.5:0;return d}var zf=!1;try{zf=1===(new MouseEvent("click",{buttons:1})).buttons}catch(Af){};function Bf(b,c){var d=document.createElement("CANVAS");w(b)&&(d.width=b);w(c)&&(d.height=c);return d.getContext("2d")};var Cf=n.devicePixelRatio||1,Df=!1,Ef=function(){if(!("HTMLCanvasElement"in n))return!1;try{var b=Bf();if(null===b)return!1;w(b.setLineDash)&&(Df=!0);return!0}catch(c){return!1}}(),Ff="ontouchstart"in n,Gf="PointerEvent"in n,Hf=!!n.navigator.msPointerEnabled;function If(b,c){this.a=b;this.d=c};function Jf(b){If.call(this,b,{mousedown:this.Od,mousemove:this.Pd,mouseup:this.Sd,mouseover:this.Rd,mouseout:this.Qd});this.b=b.b;this.c=[]}M(Jf,If);function Kf(b,c){for(var d=b.c,e=c.clientX,f=c.clientY,g=0,h=d.length,k;g<h&&(k=d[g]);g++){var m=Math.abs(f-k[1]);if(25>=Math.abs(e-k[0])&&25>=m)return!0}return!1}function Lf(b){var c=Mf(b,b.a),d=c.preventDefault;c.preventDefault=function(){b.preventDefault();d()};c.pointerId=1;c.isPrimary=!0;c.pointerType="mouse";return c}l=Jf.prototype;
  l.Od=function(b){if(!Kf(this,b)){if((1).toString()in this.b){var c=Lf(b);Nf(this.a,Of,c,b);gb(this.b,(1).toString())}c=Lf(b);this.b[(1).toString()]=b;Nf(this.a,Pf,c,b)}};l.Pd=function(b){if(!Kf(this,b)){var c=Lf(b);Nf(this.a,Qf,c,b)}};l.Sd=function(b){if(!Kf(this,b)){var c=this.b[(1).toString()];c&&c.button===b.button&&(c=Lf(b),Nf(this.a,Rf,c,b),gb(this.b,(1).toString()))}};l.Rd=function(b){if(!Kf(this,b)){var c=Lf(b);Sf(this.a,c,b)}};l.Qd=function(b){if(!Kf(this,b)){var c=Lf(b);Tf(this.a,c,b)}};function Uf(b){If.call(this,b,{MSPointerDown:this.Xd,MSPointerMove:this.Yd,MSPointerUp:this.ae,MSPointerOut:this.Zd,MSPointerOver:this.$d,MSPointerCancel:this.Wd,MSGotPointerCapture:this.Ud,MSLostPointerCapture:this.Vd});this.b=b.b;this.c=["","unavailable","touch","pen","mouse"]}M(Uf,If);function Vf(b,c){var d=c;fa(c.a.pointerType)&&(d=Mf(c,c.a),d.pointerType=b.c[c.a.pointerType]);return d}l=Uf.prototype;l.Xd=function(b){this.b[b.a.pointerId]=b;var c=Vf(this,b);Nf(this.a,Pf,c,b)};
  l.Yd=function(b){var c=Vf(this,b);Nf(this.a,Qf,c,b)};l.ae=function(b){var c=Vf(this,b);Nf(this.a,Rf,c,b);gb(this.b,b.a.pointerId)};l.Zd=function(b){var c=Vf(this,b);Tf(this.a,c,b)};l.$d=function(b){var c=Vf(this,b);Sf(this.a,c,b)};l.Wd=function(b){var c=Vf(this,b);Nf(this.a,Of,c,b);gb(this.b,b.a.pointerId)};l.Vd=function(b){X(this.a,new wf("lostpointercapture",b,b.a))};l.Ud=function(b){X(this.a,new wf("gotpointercapture",b,b.a))};function Wf(b){If.call(this,b,{pointerdown:this.se,pointermove:this.te,pointerup:this.we,pointerout:this.ue,pointerover:this.ve,pointercancel:this.re,gotpointercapture:this.ud,lostpointercapture:this.Nd})}M(Wf,If);l=Wf.prototype;l.se=function(b){Xf(this.a,b)};l.te=function(b){Xf(this.a,b)};l.we=function(b){Xf(this.a,b)};l.ue=function(b){Xf(this.a,b)};l.ve=function(b){Xf(this.a,b)};l.re=function(b){Xf(this.a,b)};l.Nd=function(b){Xf(this.a,b)};l.ud=function(b){Xf(this.a,b)};function Yf(b,c){If.call(this,b,{touchstart:this.We,touchmove:this.Ve,touchend:this.Ue,touchcancel:this.Te});this.b=b.b;this.f=c;this.c=void 0;this.g=0;this.e=void 0}M(Yf,If);l=Yf.prototype;l.xc=function(){this.g=0;this.e=void 0};
  function Zf(b,c,d){c=Mf(c,d);c.pointerId=d.identifier+2;c.bubbles=!0;c.cancelable=!0;c.detail=b.g;c.button=0;c.buttons=1;c.width=d.d||d.b||0;c.height=d.g||d.c||0;c.pressure=d.e||d.a||.5;c.isPrimary=b.c===d.identifier;c.pointerType="touch";c.clientX=d.clientX;c.clientY=d.clientY;c.screenX=d.screenX;c.screenY=d.screenY;return c}
  function $f(b,c,d){function e(){c.preventDefault()}var f=Array.prototype.slice.call(c.a.changedTouches),g=f.length,h,k;for(h=0;h<g;++h)k=Zf(b,c,f[h]),k.preventDefault=e,d.call(b,c,k)}
  l.We=function(b){var c=b.a.touches,d=ab(this.b),e=d.length;if(e>=c.length){var f=[],g,h,k;for(g=0;g<e;++g){h=d[g];k=this.b[h];var m;if(!(m=1==h))a:{m=c.length;for(var p=void 0,q=0;q<m;q++)if(p=c[q],p.identifier===h-2){m=!0;break a}m=!1}m||f.push(k.ra)}for(g=0;g<f.length;++g)this.nb(b,f[g])}c=Za(this.b);if(!(d=0===c)){if(c=1===c)c=(1).toString()in this.b;d=c}d&&(this.c=b.a.changedTouches[0].identifier,w(this.e)&&n.clearTimeout(this.e));ag(this,b);this.g++;$f(this,b,this.ne)};
  l.ne=function(b,c){this.b[c.pointerId]={target:c.target,ra:c,qc:c.target};var d=this.a;c.bubbles=!0;Nf(d,bg,c,b);d=this.a;c.bubbles=!1;Nf(d,cg,c,b);Nf(this.a,Pf,c,b)};l.Ve=function(b){b.preventDefault();$f(this,b,this.Td)};l.Td=function(b,c){var d=this.b[c.pointerId];if(d){var e=d.ra,f=d.qc;Nf(this.a,Qf,c,b);e&&f!==c.target&&(e.relatedTarget=c.target,c.relatedTarget=f,e.target=f,c.target?(Tf(this.a,e,b),Sf(this.a,c,b)):(c.target=f,c.relatedTarget=null,this.nb(b,c)));d.ra=c;d.qc=c.target}};
  l.Ue=function(b){ag(this,b);$f(this,b,this.Ye)};l.Ye=function(b,c){Nf(this.a,Rf,c,b);this.a.ra(c,b);var d=this.a;c.bubbles=!1;Nf(d,dg,c,b);gb(this.b,c.pointerId);c.isPrimary&&(this.c=void 0,this.e=n.setTimeout(na(this.xc,this),200))};l.Te=function(b){$f(this,b,this.nb)};l.nb=function(b,c){Nf(this.a,Of,c,b);this.a.ra(c,b);var d=this.a;c.bubbles=!1;Nf(d,dg,c,b);gb(this.b,c.pointerId);c.isPrimary&&(this.c=void 0,this.e=n.setTimeout(na(this.xc,this),200))};
  function ag(b,c){var d=b.f.c,e=c.a.changedTouches[0];if(b.c===e.identifier){var f=[e.clientX,e.clientY];d.push(f);n.setTimeout(function(){Ka(d,f)},2500)}};function eg(b){V.call(this);this.d=b;this.b={};this.e={};this.a=[];Gf?fg(this,new Wf(this)):Hf?fg(this,new Uf(this)):(b=new Jf(this),fg(this,b),Ff&&fg(this,new Yf(this,b)));b=this.a.length;for(var c,d=0;d<b;d++)c=this.a[d],gg(this,ab(c.d))}M(eg,V);function fg(b,c){var d=ab(c.d);d&&(N(d,function(b){var d=c.d[b];d&&(this.e[b]=na(d,c))},b),b.a.push(c))}eg.prototype.c=function(b){var c=this.e[b.type];c&&c(b)};function gg(b,c){N(c,function(b){Q(this.d,b,this.c,!1,this)},b)}
  function hg(b,c){N(c,function(b){rc(this.d,b,this.c,!1,this)},b)}function Mf(b,c){for(var d={},e,f=0,g=ig.length;f<g;f++)e=ig[f][0],d[e]=b[e]||c[e]||ig[f][1];return d}eg.prototype.ra=function(b,c){b.bubbles=!0;Nf(this,jg,b,c)};function Tf(b,c,d){b.ra(c,d);var e=c.relatedTarget;null!==e&&ce(c.target,e)||(c.bubbles=!1,Nf(b,dg,c,d))}function Sf(b,c,d){c.bubbles=!0;Nf(b,bg,c,d);var e=c.relatedTarget;null!==e&&ce(c.target,e)||(c.bubbles=!1,Nf(b,cg,c,d))}function Nf(b,c,d,e){X(b,new wf(c,e,d))}
  function Xf(b,c){X(b,new wf(c.type,c,c.a))}eg.prototype.v=function(){for(var b=this.a.length,c,d=0;d<b;d++)c=this.a[d],hg(this,ab(c.d));eg.F.v.call(this)};
  var Qf="pointermove",Pf="pointerdown",Rf="pointerup",bg="pointerover",jg="pointerout",cg="pointerenter",dg="pointerleave",Of="pointercancel",ig=[["bubbles",!1],["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 kg(b,c,d,e,f){qe.call(this,b,c,f);this.b=d;this.originalEvent=d.a;d=this.originalEvent;w(d.changedTouches)?(b=d.changedTouches[0],d=ke(c.a),b=[b.clientX-d.x,b.clientY-d.y]):(b=c.a,d=ke(d),b=ke(b),b=new Td(d.x-b.x,d.y-b.y),b=[b.x,b.y]);this.pixel=b;this.coordinate=c.Ha(this.pixel);this.dragging=w(e)?e:!1}M(kg,qe);kg.prototype.preventDefault=function(){kg.F.preventDefault.call(this);this.b.preventDefault()};kg.prototype.ua=function(){kg.F.ua.call(this);this.b.ua()};
  function lg(b,c,d,e,f){kg.call(this,b,c,d.b,e,f);this.c=d}M(lg,kg);function mg(b){V.call(this);this.c=b;this.g=0;this.f=!1;this.b=this.h=this.e=null;b=this.c.a;this.k=0;this.o={};this.d=new eg(b);this.a=null;this.h=Q(this.d,Pf,this.Ed,!1,this);this.i=Q(this.d,Qf,this.Le,!1,this)}M(mg,V);function ng(b,c){var d;d=new lg(og,b.c,c);X(b,d);0!==b.g?(n.clearTimeout(b.g),b.g=0,d=new lg(pg,b.c,c),X(b,d)):b.g=n.setTimeout(na(function(){this.g=0;var b=new lg(qg,this.c,c);X(this,b)},b),250)}
  function rg(b,c){c.type==sg||c.type==tg?delete b.o[c.pointerId]:c.type==ug&&(b.o[c.pointerId]=!0);b.k=Za(b.o)}l=mg.prototype;l.jc=function(b){rg(this,b);var c=new lg(sg,this.c,b);X(this,c);!this.f&&0===b.button&&ng(this,this.b);0===this.k&&(N(this.e,T),this.e=null,this.f=!1,this.b=null,Sb(this.a),this.a=null)};
  l.Ed=function(b){rg(this,b);var c=new lg(ug,this.c,b);X(this,c);this.b=b;null===this.e&&(this.a=new eg(document),this.e=[Q(this.a,vg,this.fe,!1,this),Q(this.a,sg,this.jc,!1,this),Q(this.d,tg,this.jc,!1,this)])};l.fe=function(b){if(b.clientX!=this.b.clientX||b.clientY!=this.b.clientY){this.f=!0;var c=new lg(wg,this.c,b,this.f);X(this,c)}b.preventDefault()};l.Le=function(b){X(this,new lg(b.type,this.c,b,null!==this.b&&(b.clientX!=this.b.clientX||b.clientY!=this.b.clientY)))};
  l.v=function(){null!==this.i&&(T(this.i),this.i=null);null!==this.h&&(T(this.h),this.h=null);null!==this.e&&(N(this.e,T),this.e=null);null!==this.a&&(Sb(this.a),this.a=null);null!==this.d&&(Sb(this.d),this.d=null);mg.F.v.call(this)};var qg="singleclick",og="click",pg="dblclick",wg="pointerdrag",vg="pointermove",ug="pointerdown",sg="pointerup",tg="pointercancel",xg={pf:qg,df:og,ef:pg,hf:wg,lf:vg,gf:ug,of:sg,nf:"pointerover",mf:"pointerout",jf:"pointerenter",kf:"pointerleave",ff:tg};function yg(b){zc.call(this);var c=ib(b);c.brightness=w(b.brightness)?b.brightness:0;c.contrast=w(b.contrast)?b.contrast:1;c.hue=w(b.hue)?b.hue:0;c.opacity=w(b.opacity)?b.opacity:1;c.saturation=w(b.saturation)?b.saturation:1;c.visible=w(b.visible)?b.visible:!0;c.maxResolution=w(b.maxResolution)?b.maxResolution:Infinity;c.minResolution=w(b.minResolution)?b.minResolution:0;Ac(this,c)}M(yg,zc);
  function zg(b){var c=b.get("brightness"),d=b.get("contrast"),e=b.get("hue"),f=b.get("opacity"),g=b.get("saturation"),h=b.Ab(),k=b.get("visible"),m=b.t(),p=b.get("maxResolution"),q=b.get("minResolution");return{layer:b,brightness:yb(c,-1,1),contrast:Math.max(d,0),hue:e,opacity:yb(f,0,1),saturation:Math.max(g,0),Se:h,visible:k,extent:m,maxResolution:p,minResolution:Math.max(q,0)}}yg.prototype.t=function(){return this.get("extent")};function Ag(b){var c=ib(b);delete c.source;yg.call(this,c);this.a=null;Q(this,Cc("source"),this.Id,!1,this);this.set("source",w(b.source)?b.source:null)}M(Ag,yg);l=Ag.prototype;l.yb=function(b){b=w(b)?b:[];b.push(zg(this));return b};l.ha=function(){var b=this.get("source");return w(b)?b:null};l.Ab=function(){var b=this.ha();return null===b?"undefined":b.T};l.je=function(){this.c()};
  l.Id=function(){null!==this.a&&(T(this.a),this.a=null);var b=this.ha();null!==b&&(this.a=Q(b,"change",this.je,!1,this));this.c()};function Bg(b,c,d,e,f){V.call(this);this.f=f;this.extent=b;this.e=d;this.resolution=c;this.state=e}M(Bg,V);Bg.prototype.t=function(){return this.extent};function Cg(b,c,d,e,f,g,h,k){b[0]=1;b[1]=0;b[2]=0;b[3]=0;b[4]=0;b[5]=1;b[6]=0;b[7]=0;b[8]=0;b[9]=0;b[10]=1;b[11]=0;b[12]=0;b[13]=0;b[14]=0;b[15]=1;0===c&&0===d||Mc(b,c,d);if(1!=e||1!=f){c=b[1]*e;d=b[2]*e;var m=b[3]*e,p=b[4]*f,q=b[5]*f,r=b[6]*f;f=b[7]*f;var t=1*b[8],v=1*b[9],y=1*b[10],x=1*b[11],u=b[12],D=b[13],z=b[14],F=b[15];b[0]*=e;b[1]=c;b[2]=d;b[3]=m;b[4]=p;b[5]=q;b[6]=r;b[7]=f;b[8]=t;b[9]=v;b[10]=y;b[11]=x;b[12]=u;b[13]=D;b[14]=z;b[15]=F}0!==g&&(e=b[0],c=b[1],d=b[2],m=b[3],p=b[4],q=b[5],r=b[6],
  f=b[7],t=Math.cos(g),g=Math.sin(g),b[0]=e*t+p*g,b[1]=c*t+q*g,b[2]=d*t+r*g,b[3]=m*t+f*g,b[4]=e*-g+p*t,b[5]=c*-g+q*t,b[6]=d*-g+r*t,b[7]=m*-g+f*t);0===h&&0===k||Mc(b,h,k);return b}function Dg(b,c,d){var e=b[1],f=b[5],g=b[13],h=c[0];c=c[1];d[0]=b[0]*h+b[4]*c+b[12];d[1]=e*h+f*c+g;return d};function Eg(b){xc.call(this);this.b=b}M(Eg,xc);function Fg(b,c){return function(d,e){return Ne(b,d,e,function(b){c[d]||(c[d]={});c[d][b.a.toString()]=b})}}Eg.prototype.w=function(b){2===b.target.state&&Gg(this)};function Gg(b){var c=b.b;c.get("visible")&&"ready"==c.Ab()&&b.c()}function Hg(b,c){ue(c.a)&&b.postRenderFunctions.push(oa(function(b,c,f){c=H(b).toString();b=b.a;f=f.usedTiles[c];for(var g;ue(b)&&!(c=b.b.xa,g=c.a[0].toString(),g in f&&f[g].contains(c.a));)b.pop().qb()},c))}
  function Ig(b,c){if(null!=c){var d,e,f;e=0;for(f=c.length;e<f;++e)d=c[e],b[H(d).toString()]=d}}function Jg(b,c){var d=c.I;w(d)&&(C(d)?b.logos[d]="":ia(d)&&(b.logos[d.src]=d.href))};function Kg(b){this.s=b.opacity;this.o=b.rotateWithView;this.k=b.rotation;this.Za=b.scale;this.B=b.snapToPixel}Kg.prototype.L=function(){return this.k};function Lg(){this.a={};this.b=0}Lg.b=function(){return Lg.a?Lg.a:Lg.a=new Lg};Lg.prototype.clear=function(){this.a={};this.b=0};Lg.prototype.get=function(b,c){var d=c+":"+b;return d in this.a?this.a[d]:null};Lg.prototype.set=function(b,c,d){this.a[c+":"+b]=d;++this.b};function Mg(b,c){Nb.call(this);this.g=c;this.b={};this.e={}}M(Mg,Nb);Mg.prototype.v=function(){Xa(this.b,Sb);Mg.F.v.call(this)};function Ng(){var b=Lg.b();if(32<b.b){var c=0,d,e;for(d in b.a){e=b.a[d];var f;if(f=0===(c++&3))$b(e)?e=wc(e,void 0,void 0):(e=mc(e),e=!!e&&gc(e,void 0,void 0)),f=!e;f&&(delete b.a[d],--b.b)}}}Mg.prototype.h=function(){this.g.render()};Mg.prototype.f=ba;
  Mg.prototype.o=function(b,c){for(var d in this.b)if(!(null!==c&&d in c.layerStates)){var e=d,f=this.b[e];delete this.b[e];T(this.e[e]);delete this.e[e];Sb(f)}};function Og(b,c){this.f=b;this.d=c;this.a=[];this.b=[];this.c={}}Og.prototype.clear=function(){this.a.length=0;this.b.length=0;fb(this.c)};Og.prototype.Pa=function(){return this.a.length};Og.prototype.U=function(){return 0===this.a.length};function Pg(b,c){for(var d=b.a,e=b.b,f=d.length,g=d[c],h=e[c],k=c;c<f>>1;){var m=2*c+1,p=2*c+2,m=p<f&&e[p]<e[m]?p:m;d[c]=d[m];e[c]=e[m];c=m}d[c]=g;e[c]=h;Qg(b,k,c)}
  function Qg(b,c,d){var e=b.a;b=b.b;for(var f=e[d],g=b[d];d>c;){var h=d-1>>1;if(b[h]>g)e[d]=e[h],b[d]=b[h],d=h;else break}e[d]=f;b[d]=g};function Rg(b,c){Og.call(this,function(c){return b.apply(null,c)},function(b){return b[0].getKey()});this.h=c;this.e=0}M(Rg,Og);Rg.prototype.g=function(b){b=b.target;var c=b.state;if(2===c||3===c||4===c)rc(b,"change",this.g,!1,this),--this.e,this.h()};function Sg(){this.a=[];this.b=this.c=0}function Tg(b,c){var d=b.b,e=.05-d,f=Math.log(.05/b.b)/-.005;return Gd({source:c,duration:f,easing:function(b){return d*(Math.exp(-.005*b*f)-1)/e}})};function Ug(b){zc.call(this);this.u=null;this.w(!0);this.handleEvent=b.handleEvent}M(Ug,zc);Ug.prototype.w=function(b){this.set("active",b)};Ug.prototype.setMap=function(b){this.u=b};function Vg(b,c,d,e,f){if(null!=d){var g=c.L(),h=yd(c);w(g)&&w(h)&&w(f)&&0<f&&(b.ea(Hd({rotation:g,duration:f,easing:Dd})),w(e)&&b.ea(Gd({source:h,duration:f,easing:Dd})));c.rotate(d,e)}}function Wg(b,c,d,e,f){var g=zd(c);d=c.constrainResolution(g,d,0);Xg(b,c,d,e,f)}
  function Xg(b,c,d,e,f){if(null!=d){var g=zd(c),h=yd(c);w(g)&&w(h)&&w(f)&&0<f&&(b.ea(Id({resolution:g,duration:f,easing:Dd})),w(e)&&b.ea(Gd({source:h,duration:f,easing:Dd})));if(null!=e){var k;b=yd(c);f=zd(c);w(b)&&w(f)&&(k=[e[0]-d*(e[0]-b[0])/f,e[1]-d*(e[1]-b[1])/f]);c.ga(k)}Bd(c,d)}};function Yg(b){b=w(b)?b:{};this.a=w(b.delta)?b.delta:1;Ug.call(this,{handleEvent:Zg});this.b=w(b.duration)?b.duration:250}M(Yg,Ug);function Zg(b){var c=!1,d=b.b;if(b.type==pg){var c=b.map,e=b.coordinate,d=d.d?-this.a:this.a,f=c.C();Wg(c,f,d,e,this.b);b.preventDefault();c=!0}return!c};function $g(b){b=b.b;return b.b&&!b.h&&b.d}function ah(b){b=b.b;return!b.b&&!b.h&&!b.d}function bh(b){b=b.b;return!b.b&&!b.h&&b.d}function ch(b){b=b.b.target.tagName;return"INPUT"!==b&&"SELECT"!==b&&"TEXTAREA"!==b};function dh(b){b=w(b)?b:{};Ug.call(this,{handleEvent:w(b.handleEvent)?b.handleEvent:eh});this.ca=w(b.handleDownEvent)?b.handleDownEvent:ye;this.da=w(b.handleDragEvent)?b.handleDragEvent:ba;this.ta=w(b.handleMoveEvent)?b.handleMoveEvent:ba;this.ya=w(b.handleUpEvent)?b.handleUpEvent:ye;this.k=!1;this.n={};this.b=[]}M(dh,Ug);function fh(b){for(var c=b.length,d=0,e=0,f=0;f<c;f++)d+=b[f].clientX,e+=b[f].clientY;return[d/c,e/c]}
  function eh(b){if(!(b instanceof lg))return!0;var c=!1,d=b.type;if(d===ug||d===wg||d===sg)d=b.c,b.type==sg?delete this.n[d.pointerId]:b.type==ug?this.n[d.pointerId]=d:d.pointerId in this.n&&(this.n[d.pointerId]=d),this.b=$a(this.n);this.k&&(b.type==wg?this.da(b):b.type==sg&&(this.k=this.ya(b)));b.type==ug?(this.k=b=this.ca(b),c=this.j(b)):b.type==vg&&this.ta(b);return!c}dh.prototype.j=function(b){return b};function gh(b){dh.call(this,{handleDownEvent:hh,handleDragEvent:ih,handleUpEvent:jh});b=w(b)?b:{};this.a=b.kinetic;this.d=this.g=null;this.h=w(b.condition)?b.condition:ah;this.f=!1}M(gh,dh);function ih(b){var c=fh(this.b);this.a&&this.a.a.push(c[0],c[1],pa());if(null!==this.d){var d=this.d[0]-c[0],e=c[1]-this.d[1];b=b.map;var f=b.C(),g=Ad(f),e=d=[d,e],h=g.resolution;e[0]*=h;e[1]*=h;Hc(d,g.rotation);Gc(d,g.center);d=f.a.center(d);b.render();f.ga(d)}this.d=c}
  function jh(b){b=b.map;var c=b.C();if(0===this.b.length){var d;if(d=!this.f&&this.a)if(d=this.a,6>d.a.length)d=!1;else{var e=pa()-100,f=d.a.length-3;if(d.a[f+2]<e)d=!1;else{for(var g=f-3;0<g&&d.a[g+2]>e;)g-=3;var e=d.a[f+2]-d.a[g+2],h=d.a[f]-d.a[g],f=d.a[f+1]-d.a[g+1];d.c=Math.atan2(f,h);d.b=Math.sqrt(h*h+f*f)/e;d=.05<d.b}}d&&(d=(.05-this.a.b)/-.005,f=this.a.c,g=yd(c),this.g=Tg(this.a,g),b.ea(this.g),g=kh(b,g),d=b.Ha([g[0]-d*Math.cos(f),g[1]-d*Math.sin(f)]),d=c.a.center(d),c.ga(d));Cd(c,-1);b.render();
  return!1}this.d=null;return!0}function hh(b){if(0<this.b.length&&this.h(b)){var c=b.map,d=c.C();this.d=null;this.k||Cd(d,1);c.render();null!==this.g&&Ka(c.i,this.g)&&(d.ga(b.frameState.viewState.center),this.g=null);this.a&&(b=this.a,b.a.length=0,b.c=0,b.b=0);this.f=1<this.b.length;return!0}return!1}gh.prototype.j=ye;function lh(b){b=w(b)?b:{};dh.call(this,{handleDownEvent:mh,handleDragEvent:nh,handleUpEvent:oh});this.d=w(b.condition)?b.condition:$g;this.a=void 0;this.g=w(b.duration)?b.duration:250}M(lh,dh);function nh(b){if(1==b.c.pointerId){var c=b.map,d=c.Xa();b=b.pixel;d=Math.atan2(d[1]/2-b[1],b[0]-d[0]/2);if(w(this.a)){b=d-this.a;var e=c.C(),f=e.L();c.render();Vg(c,e,f-b)}this.a=d}}
  function oh(b){if(1!=b.c.pointerId)return!0;b=b.map;var c=b.C();Cd(c,-1);var d=c.L(),e=this.g,d=c.constrainRotation(d,0);Vg(b,c,d,void 0,e);return!1}function mh(b){return 1==b.c.pointerId&&Yb(b.b)&&this.d(b)?(b=b.map,Cd(b.C(),1),b.render(),this.a=void 0,!0):!1}lh.prototype.j=ye;function ph(){zc.call(this);this.n=Tc();this.p=-1;this.h={};this.l=this.i=0}M(ph,zc);ph.prototype.t=function(b){this.p!=this.e&&(this.n=this.Na(this.n),this.p=this.e);var c=this.n;w(b)?(b[0]=c[0],b[1]=c[1],b[2]=c[2],b[3]=c[3]):b=c;return b};ph.prototype.transform=function(b,c){this.mb(ud(b,c));return this};function qh(b,c,d,e,f,g){var h=f[0],k=f[1],m=f[4],p=f[5],q=f[12];f=f[13];for(var r=w(g)?g:[],t=0;c<d;c+=e){var v=b[c],y=b[c+1];r[t++]=h*v+m*y+q;r[t++]=k*v+p*y+f}w(g)&&r.length!=t&&(r.length=t);return r};function rh(){ph.call(this);this.g="XY";this.b=2;this.a=null}M(rh,ph);function sh(b){if("XY"==b)return 2;if("XYZ"==b||"XYM"==b)return 3;if("XYZM"==b)return 4}rh.prototype.Na=function(b){var c=this.a,d=this.a.length,e=this.b;b=Pc(Infinity,Infinity,-Infinity,-Infinity,b);return Wc(b,c,0,d,e)};
  rh.prototype.zb=function(b){this.l!=this.e&&(fb(this.h),this.i=0,this.l=this.e);if(0>b||0!==this.i&&b<=this.i)return this;var c=b.toString();if(this.h.hasOwnProperty(c))return this.h[c];var d=this.k(b);if(d.a.length<this.a.length)return this.h[c]=d;this.i=b;return this};rh.prototype.k=function(){return this};function th(b,c,d){b.b=sh(c);b.g=c;b.a=d}
  function uh(b,c,d,e){if(w(c))d=sh(c);else{for(c=0;c<e;++c){if(0===d.length){b.g="XY";b.b=2;return}d=d[0]}d=d.length;c=2==d?"XY":3==d?"XYZ":4==d?"XYZM":void 0}b.g=c;b.b=d}rh.prototype.mb=function(b){null!==this.a&&(b(this.a,this.a,this.b),this.c())};function vh(b,c){var d=0,e,f;e=0;for(f=c.length;e<f;++e)b[d++]=c[e];return d}function wh(b,c,d,e){var f,g;f=0;for(g=d.length;f<g;++f){var h=d[f],k;for(k=0;k<e;++k)b[c++]=h[k]}return c}function xh(b,c,d,e,f){f=w(f)?f:[];var g=0,h,k;h=0;for(k=d.length;h<k;++h)c=wh(b,c,d[h],e),f[g++]=c;f.length=g;return f};function yh(b,c,d,e,f){f=w(f)?f:[];for(var g=0;c<d;c+=e)f[g++]=b.slice(c,c+e);f.length=g;return f}function zh(b,c,d,e,f){f=w(f)?f:[];var g=0,h,k;h=0;for(k=d.length;h<k;++h){var m=d[h];f[g++]=yh(b,c,m,e,f[g]);c=m}f.length=g;return f};function Ah(b,c,d,e,f,g,h){var k=(d-c)/e;if(3>k){for(;c<d;c+=e)g[h++]=b[c],g[h++]=b[c+1];return h}var m=Array(k);m[0]=1;m[k-1]=1;d=[c,d-e];for(var p=0,q;0<d.length;){var r=d.pop(),t=d.pop(),v=0,y=b[t],x=b[t+1],u=b[r],D=b[r+1];for(q=t+e;q<r;q+=e){var z,F=b[q];z=b[q+1];var G=y,B=x,J=u-G,A=D-B;if(0!==J||0!==A){var S=((F-G)*J+(z-B)*A)/(J*J+A*A);1<S?(G=u,B=D):0<S&&(G+=J*S,B+=A*S)}F=G-F;z=B-z;z=F*F+z*z;z>v&&(p=q,v=z)}v>f&&(m[(p-c)/e]=1,t+e<p&&d.push(t,p),p+e<r&&d.push(p,r))}for(q=0;q<k;++q)m[q]&&(g[h++]=
  b[c+q*e],g[h++]=b[c+q*e+1]);return h}
  function Bh(b,c,d,e,f,g,h,k){var m,p;m=0;for(p=d.length;m<p;++m){var q=d[m];a:{var r=b,t=q,v=e,y=f,x=g;if(c!=t){var u=y*Math.round(r[c]/y),D=y*Math.round(r[c+1]/y);c+=v;x[h++]=u;x[h++]=D;var z=void 0,F=void 0;do if(z=y*Math.round(r[c]/y),F=y*Math.round(r[c+1]/y),c+=v,c==t){x[h++]=z;x[h++]=F;break a}while(z==u&&F==D);for(;c<t;){var G,B;G=y*Math.round(r[c]/y);B=y*Math.round(r[c+1]/y);c+=v;if(G!=z||B!=F){var J=z-u,A=F-D,S=G-u,U=B-D;J*U==A*S&&(0>J&&S<J||J==S||0<J&&S>J)&&(0>A&&U<A||A==U||0<A&&U>A)||(x[h++]=
  z,x[h++]=F,u=z,D=F);z=G;F=B}}x[h++]=z;x[h++]=F}}k.push(h);c=q}return h};function Ch(b,c){rh.call(this);null===b?th(this,"XY",null):(uh(this,c,b,1),null===this.a&&(this.a=[]),this.a.length=wh(this.a,0,b,this.b));this.c()}M(Ch,rh);Ch.prototype.clone=function(){var b=new Ch(null);th(b,this.g,this.a.slice());b.c();return b};Ch.prototype.f=function(){return yh(this.a,0,this.a.length,this.b)};Ch.prototype.k=function(b){var c=[];c.length=Ah(this.a,0,this.a.length,this.b,b,c,0);b=new Ch(null);th(b,"XY",c);b.c();return b};Ch.prototype.D=function(){return"LinearRing"};function Dh(b,c){rh.call(this);Eh(this,b,c)}M(Dh,rh);Dh.prototype.clone=function(){var b=new Dh(null);th(b,this.g,this.a.slice());b.c();return b};function Fh(b){return null===b.a?[]:b.a.slice()}Dh.prototype.Na=function(b){var c=this.a,d=c[0],c=c[1];return Pc(d,c,d,c,b)};Dh.prototype.D=function(){return"Point"};function Eh(b,c,d){null===c?th(b,"XY",null):(uh(b,d,c,0),null===b.a&&(b.a=[]),b.a.length=vh(b.a,c));b.c()};function Gh(b,c,d,e,f,g){for(var h=!1,k=b[d-e],m=b[d-e+1];c<d;c+=e){var p=b[c],q=b[c+1];m>g!=q>g&&f<(p-k)*(g-m)/(q-m)+k&&(h=!h);k=p;m=q}return h};function Hh(b,c,d,e,f,g,h){var k,m,p,q,r,t=f[g+1],v=[],y=d[0];p=b[y-e];r=b[y-e+1];for(k=c;k<y;k+=e){q=b[k];m=b[k+1];if(t<=r&&m<=t||r<=t&&t<=m)p=(t-r)/(m-r)*(q-p)+p,v.push(p);p=q;r=m}y=NaN;r=-Infinity;v.sort();p=v[0];k=1;for(m=v.length;k<m;++k){q=v[k];var x=Math.abs(q-p);if(x>r){p=(p+q)/2;var u;a:if(0!==d.length&&Gh(b,c,d[0],e,p,t)){var D=u=void 0;u=1;for(D=d.length;u<D;++u)if(Gh(b,d[u-1],d[u],e,p,t)){u=!1;break a}u=!0}else u=!1;u&&(y=p,r=x)}p=q}isNaN(y)&&(y=f[g]);return w(h)?(h.push(y,t),h):[y,t]}
  ;function Ih(b,c,d,e){for(var f=0,g=b[d-e],h=b[d-e+1];c<d;c+=e)var k=b[c],m=b[c+1],f=f+(k-g)*(m+h),g=k,h=m;return 0<f}function Jh(b,c,d,e){var f=0;e=w(e)?e:!1;var g,h;g=0;for(h=c.length;g<h;++g){var k=c[g],f=Ih(b,f,k,d);if(0===g){if(e&&f||!e&&!f)return!1}else if(e&&!f||!e&&f)return!1;f=k}return!0}
  function Kh(b,c,d,e,f){f=w(f)?f:!1;var g,h;g=0;for(h=d.length;g<h;++g){var k=d[g],m=Ih(b,c,k,e);if(0===g?f&&m||!f&&!m:f&&!m||!f&&m)for(var m=b,p=k,q=e;c<p-q;){var r;for(r=0;r<q;++r){var t=m[c+r];m[c+r]=m[p-q+r];m[p-q+r]=t}c+=q;p-=q}c=k}return c}function Lh(b,c,d,e){var f=0,g,h;g=0;for(h=c.length;g<h;++g)f=Kh(b,f,c[g],d,e);return f};function Mh(b,c){rh.call(this);this.f=[];this.q=-1;this.u=null;this.w=-1;this.j=null;Nh(this,b,c)}M(Mh,rh);Mh.prototype.clone=function(){var b=new Mh(null);Oh(b,this.g,this.a.slice(),this.f.slice());return b};function Ph(b,c){var d;w(c)?(d=Qh(b).slice(),Kh(d,0,b.f,b.b,c)):d=b.a;return zh(d,0,b.f,b.b)}function Rh(b){if(b.q!=b.e){var c=Xc(b.t());b.u=Hh(Qh(b),0,b.f,b.b,c,0);b.q=b.e}return b.u}
  function Sh(b){var c=b.g,d=b.a;b=b.f;var e=[],f=0,g,h;g=0;for(h=b.length;g<h;++g){var k=b[g],m=new Ch(null),p=m;th(p,c,d.slice(f,k));p.c();e.push(m);f=k}return e}function Qh(b){if(b.w!=b.e){var c=b.a;Jh(c,b.f,b.b)?b.j=c:(b.j=c.slice(),b.j.length=Kh(b.j,0,b.f,b.b));b.w=b.e}return b.j}Mh.prototype.k=function(b){var c=[],d=[];c.length=Bh(this.a,0,this.f,this.b,Math.sqrt(b),c,0,d);b=new Mh(null);Oh(b,"XY",c,d);return b};Mh.prototype.D=function(){return"Polygon"};
  function Nh(b,c,d){null===c?Oh(b,"XY",null,b.f):(uh(b,d,c,2),null===b.a&&(b.a=[]),c=xh(b.a,0,c,b.b,b.f),b.a.length=0===c.length?0:c[c.length-1],b.c())}function Oh(b,c,d,e){th(b,c,d);b.f=e;b.c()};function Th(){};function Uh(b,c,d,e,f,g,h){P.call(this,b,c);this.vectorContext=d;this.b=e;this.frameState=f;this.context=g;this.glContext=h}M(Uh,P);function Vh(b){this.c=this.b=this.d=this.e=this.a=null;this.g=b}M(Vh,Nb);function Wh(b){var c=b.d,d=b.b;b=Ha([c,[c[0],d[1]],d,[d[0],c[1]]],b.a.Ha,b.a);b[4]=b[0].slice();return new Mh([b])}Vh.prototype.v=function(){this.setMap(null)};Vh.prototype.f=function(b){var c=this.c,d=this.g;Xh(b.vectorContext,function(b){b.ja(d.ka(),d.$());b.ba(d.V);b.Oa(c,null)})};Vh.prototype.A=function(){return this.c};function Yh(b){null===b.a||null===b.d||null===b.b||b.a.render()}
  Vh.prototype.setMap=function(b){null!==this.e&&(T(this.e),this.e=null,this.a.render(),this.a=null);this.a=b;null!==this.a&&(this.e=Q(b,"postcompose",this.f,!1,this),Yh(this))};function Zh(b,c){P.call(this,b);this.coordinate=c}M(Zh,P);function $h(b){dh.call(this,{handleDownEvent:ai,handleDragEvent:bi,handleUpEvent:ci});b=w(b)?b:{};this.d=new Vh(w(b.style)?b.style:null);this.a=null;this.f=w(b.condition)?b.condition:ze}M($h,dh);function bi(b){if(1==b.c.pointerId){var c=this.d;b=b.pixel;c.d=this.a;c.b=b;c.c=Wh(c);Yh(c)}}$h.prototype.A=function(){return this.d.A()};$h.prototype.g=ba;
  function ci(b){if(1!=b.c.pointerId)return!0;this.d.setMap(null);var c=b.pixel[0]-this.a[0],d=b.pixel[1]-this.a[1];64<=c*c+d*d&&(this.g(b),X(this,new Zh("boxend",b.coordinate)));return!1}function ai(b){if(1==b.c.pointerId&&Yb(b.b)&&this.f(b)){this.a=b.pixel;this.d.setMap(b.map);var c=this.d,d=this.a;c.d=this.a;c.b=d;c.c=Wh(c);Yh(c);X(this,new Zh("boxstart",b.coordinate));return!0}return!1};function di(){this.b=-1};function ei(){this.b=-1;this.b=64;this.a=Array(4);this.d=Array(this.b);this.e=this.c=0;this.a[0]=1732584193;this.a[1]=4023233417;this.a[2]=2562383102;this.a[3]=271733878;this.e=this.c=0}M(ei,di);
  function fi(b,c,d){d||(d=0);var e=Array(16);if(C(c))for(var f=0;16>f;++f)e[f]=c.charCodeAt(d++)|c.charCodeAt(d++)<<8|c.charCodeAt(d++)<<16|c.charCodeAt(d++)<<24;else for(f=0;16>f;++f)e[f]=c[d++]|c[d++]<<8|c[d++]<<16|c[d++]<<24;c=b.a[0];d=b.a[1];var f=b.a[2],g=b.a[3],h=0,h=c+(g^d&(f^g))+e[0]+3614090360&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[1]+3905402710&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[2]+606105819&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+
  e[3]+3250441966&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(g^d&(f^g))+e[4]+4118548399&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[5]+1200080426&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[6]+2821735955&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[7]+4249261313&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(g^d&(f^g))+e[8]+1770035416&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[9]+2336552879&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&
  (c^d))+e[10]+4294925233&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[11]+2304563134&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(g^d&(f^g))+e[12]+1804603682&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[13]+4254626195&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[14]+2792965006&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[15]+1236535329&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(f^g&(d^f))+e[1]+4129170786&4294967295;c=d+(h<<5&4294967295|h>>>
  27);h=g+(d^f&(c^d))+e[6]+3225465664&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[11]+643717713&4294967295;f=g+(h<<14&4294967295|h>>>18);h=d+(g^c&(f^g))+e[0]+3921069994&4294967295;d=f+(h<<20&4294967295|h>>>12);h=c+(f^g&(d^f))+e[5]+3593408605&4294967295;c=d+(h<<5&4294967295|h>>>27);h=g+(d^f&(c^d))+e[10]+38016083&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[15]+3634488961&4294967295;f=g+(h<<14&4294967295|h>>>18);h=d+(g^c&(f^g))+e[4]+3889429448&4294967295;d=f+(h<<20&4294967295|
  h>>>12);h=c+(f^g&(d^f))+e[9]+568446438&4294967295;c=d+(h<<5&4294967295|h>>>27);h=g+(d^f&(c^d))+e[14]+3275163606&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[3]+4107603335&4294967295;f=g+(h<<14&4294967295|h>>>18);h=d+(g^c&(f^g))+e[8]+1163531501&4294967295;d=f+(h<<20&4294967295|h>>>12);h=c+(f^g&(d^f))+e[13]+2850285829&4294967295;c=d+(h<<5&4294967295|h>>>27);h=g+(d^f&(c^d))+e[2]+4243563512&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[7]+1735328473&4294967295;f=g+(h<<14&4294967295|
  h>>>18);h=d+(g^c&(f^g))+e[12]+2368359562&4294967295;d=f+(h<<20&4294967295|h>>>12);h=c+(d^f^g)+e[5]+4294588738&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[8]+2272392833&4294967295;g=c+(h<<11&4294967295|h>>>21);h=f+(g^c^d)+e[11]+1839030562&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[14]+4259657740&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(d^f^g)+e[1]+2763975236&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[4]+1272893353&4294967295;g=c+(h<<11&4294967295|h>>>21);h=f+(g^
  c^d)+e[7]+4139469664&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[10]+3200236656&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(d^f^g)+e[13]+681279174&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[0]+3936430074&4294967295;g=c+(h<<11&4294967295|h>>>21);h=f+(g^c^d)+e[3]+3572445317&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[6]+76029189&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(d^f^g)+e[9]+3654602809&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[12]+3873151461&4294967295;
  g=c+(h<<11&4294967295|h>>>21);h=f+(g^c^d)+e[15]+530742520&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[2]+3299628645&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(f^(d|~g))+e[0]+4096336452&4294967295;c=d+(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[7]+1126891415&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[14]+2878612391&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[5]+4237533241&4294967295;d=f+(h<<21&4294967295|h>>>11);h=c+(f^(d|~g))+e[12]+1700485571&4294967295;c=d+
  (h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[3]+2399980690&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[10]+4293915773&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[1]+2240044497&4294967295;d=f+(h<<21&4294967295|h>>>11);h=c+(f^(d|~g))+e[8]+1873313359&4294967295;c=d+(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[15]+4264355552&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[6]+2734768916&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[13]+1309151649&4294967295;
  d=f+(h<<21&4294967295|h>>>11);h=c+(f^(d|~g))+e[4]+4149444226&4294967295;c=d+(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[11]+3174756917&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[2]+718787259&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[9]+3951481745&4294967295;b.a[0]=b.a[0]+c&4294967295;b.a[1]=b.a[1]+(f+(h<<21&4294967295|h>>>11))&4294967295;b.a[2]=b.a[2]+f&4294967295;b.a[3]=b.a[3]+g&4294967295}
  function gi(b,c){var d;w(d)||(d=c.length);for(var e=d-b.b,f=b.d,g=b.c,h=0;h<d;){if(0==g)for(;h<=e;)fi(b,c,h),h+=b.b;if(C(c))for(;h<d;){if(f[g++]=c.charCodeAt(h++),g==b.b){fi(b,f);g=0;break}}else for(;h<d;)if(f[g++]=c[h++],g==b.b){fi(b,f);g=0;break}}b.c=g;b.e+=d};function hi(b){b=w(b)?b:{};this.c=w(b.color)?b.color:null;this.na=b.lineCap;this.a=w(b.lineDash)?b.lineDash:null;this.oa=b.lineJoin;this.qa=b.miterLimit;this.e=b.width;this.b=void 0}hi.prototype.N=function(){return this.c};hi.prototype.getLineDash=function(){return this.a};hi.prototype.H=function(){return this.e};
  hi.prototype.Ga=function(){if(!w(this.b)){var b="s"+(null===this.c?"-":Rd(this.c))+","+(w(this.na)?this.na.toString():"-")+","+(null===this.a?"-":this.a.toString())+","+(w(this.oa)?this.oa:"-")+","+(w(this.qa)?this.qa.toString():"-")+","+(w(this.e)?this.e.toString():"-"),c=new ei;gi(c,b);var d=Array((56>c.c?c.b:2*c.b)-c.c);d[0]=128;for(b=1;b<d.length-8;++b)d[b]=0;for(var e=8*c.e,b=d.length-8;b<d.length;++b)d[b]=e&255,e/=256;gi(c,d);d=Array(16);for(b=e=0;4>b;++b)for(var f=0;32>f;f+=8)d[e++]=c.a[b]>>>
  f&255;if(8192>d.length)c=String.fromCharCode.apply(null,d);else for(c="",b=0;b<d.length;b+=8192)c+=String.fromCharCode.apply(null,Oa(d,b,b+8192));this.b=c}return this.b};var ii=[0,0,0,1],ji=[],ki=[0,0,0,1];function li(b){b=w(b)?b:{};this.b=w(b.color)?b.color:null;this.a=void 0}li.prototype.N=function(){return this.b};li.prototype.Ga=function(){w(this.a)||(this.a="f"+(null===this.b?"-":Rd(this.b)));return this.a};function mi(b){b=w(b)?b:{};this.g=this.a=this.d=null;this.c=w(b.fill)?b.fill:null;this.b=w(b.stroke)?b.stroke:null;this.e=b.radius;this.h=[0,0];this.i=this.f=null;var c=b.atlasManager,d=null,e,f=0;null!==this.b&&(e=Rd(this.b.N()),f=this.b.H(),w(f)||(f=1),d=this.b.getLineDash(),Df||(d=null));var g=2*(this.e+f)+1;e={strokeStyle:e,zc:f,size:g,lineDash:d};if(w(c)){var g=Math.round(g),d=null===this.c,h;d&&(h=na(this.cc,this,e));f=this.Ga();h=c.add(f,g,g,na(this.dc,this,e),h);this.a=h.image;this.h=[h.offsetX,
  h.offsetY];this.g=d?h.sf:this.a}else this.a=document.createElement("CANVAS"),this.a.height=g,this.a.width=g,g=this.a.width,h=this.a.getContext("2d"),this.dc(e,h,0,0),null===this.c?(h=this.g=document.createElement("CANVAS"),h.height=e.size,h.width=e.size,h=h.getContext("2d"),this.cc(e,h,0,0)):this.g=this.a;this.f=[g/2,g/2];this.i=[g,g];Kg.call(this,{opacity:1,rotateWithView:!1,rotation:0,scale:1,snapToPixel:w(b.snapToPixel)?b.snapToPixel:!0})}M(mi,Kg);l=mi.prototype;l.ka=function(){return this.c};
  l.$=function(){return this.b};l.load=ba;l.Xe=ba;l.dc=function(b,c,d,e){c.setTransform(1,0,0,1,0,0);c.translate(d,e);c.beginPath();c.arc(b.size/2,b.size/2,this.e,0,2*Math.PI,!0);null!==this.c&&(c.fillStyle=Rd(this.c.N()),c.fill());null!==this.b&&(c.strokeStyle=b.strokeStyle,c.lineWidth=b.zc,null===b.lineDash||c.setLineDash(b.lineDash),c.stroke());c.closePath()};
  l.cc=function(b,c,d,e){c.setTransform(1,0,0,1,0,0);c.translate(d,e);c.beginPath();c.arc(b.size/2,b.size/2,this.e,0,2*Math.PI,!0);c.fillStyle=ii;c.fill();null!==this.b&&(c.strokeStyle=b.strokeStyle,c.lineWidth=b.zc,null===b.lineDash||c.setLineDash(b.lineDash),c.stroke());c.closePath()};l.Ga=function(){var b=null===this.b?"-":this.b.Ga(),c=null===this.c?"-":this.c.Ga();if(null===this.d||b!=this.d[1]||c!=this.d[2]||this.e!=this.d[3])this.d=["c"+b+c+(w(this.e)?this.e.toString():"-"),b,c,this.e];return this.d[0]};function ni(b){b=w(b)?b:{};this.e=null;this.b=oi;w(b.geometry)&&pi(this,b.geometry);this.d=w(b.fill)?b.fill:null;this.c=w(b.image)?b.image:null;this.g=w(b.stroke)?b.stroke:null;this.V=w(b.text)?b.text:null;this.a=b.zIndex}ni.prototype.A=function(){return this.e};ni.prototype.ka=function(){return this.d};ni.prototype.$=function(){return this.g};function pi(b,c){ha(c)?b.b=c:C(c)?b.b=function(b){return b.get(c)}:null===c?b.b=oi:w(c)&&(b.b=function(){return c});b.e=c}
  function qi(b){ha(b)||(b=da(b)?b:[b],b=xe(b));return b}function ri(){var b=new li({color:"rgba(255,255,255,0.4)"}),c=new hi({color:"#3399CC",width:1.25}),d=[new ni({image:new mi({fill:b,stroke:c,radius:5}),fill:b,stroke:c})];ri=function(){return d};return d}
  function si(){var b={},c=[255,255,255,1],d=[0,153,255,1];b.Polygon=[new ni({fill:new li({color:[255,255,255,.5]})})];b.MultiPolygon=b.Polygon;b.LineString=[new ni({stroke:new hi({color:c,width:5})}),new ni({stroke:new hi({color:d,width:3})})];b.MultiLineString=b.LineString;b.Circle=b.Polygon.concat(b.LineString);b.Point=[new ni({image:new mi({radius:6,fill:new li({color:d}),stroke:new hi({color:c,width:1.5})}),zIndex:Infinity})];b.MultiPoint=b.Point;b.GeometryCollection=b.Polygon.concat(b.Point);
  return b}function oi(b){return b.A()};function ti(b){var c=w(b)?b:{};b=w(c.condition)?c.condition:bh;this.h=w(c.duration)?c.duration:200;c=w(c.style)?c.style:new ni({stroke:new hi({color:[0,0,255,1]})});$h.call(this,{condition:b,style:c})}M(ti,$h);ti.prototype.g=function(){var b=this.u,c=b.C(),d=this.A().t(),e=Xc(d),f=b.Xa(),d=Math.max(bd(d)/f[0],Zc(d)/f[1]),f=this.h,d=c.constrainResolution(d,0,void 0);Xg(b,c,d,e,f)};function ui(b){Ug.call(this,{handleEvent:vi});b=w(b)?b:{};this.a=w(b.condition)?b.condition:Be(ah,ch);this.b=w(b.duration)?b.duration:100;this.d=w(b.pixelDelta)?b.pixelDelta:128}M(ui,Ug);
  function vi(b){var c=!1;if("key"==b.type){var d=b.b.c;if(this.a(b)&&(40==d||37==d||39==d||38==d)){var e=b.map,c=e.C(),f=Ad(c),g=f.resolution*this.d,h=0,k=0;40==d?k=-g:37==d?h=-g:39==d?h=g:k=g;d=[h,k];Hc(d,f.rotation);f=this.b;g=yd(c);w(g)&&(w(f)&&0<f&&e.ea(Gd({source:g,duration:f,easing:Fd})),e=c.a.center([g[0]+d[0],g[1]+d[1]]),c.ga(e));b.preventDefault();c=!0}}return!c};function wi(b){Ug.call(this,{handleEvent:xi});b=w(b)?b:{};this.b=w(b.condition)?b.condition:ch;this.a=w(b.delta)?b.delta:1;this.d=w(b.duration)?b.duration:100}M(wi,Ug);function xi(b){var c=!1;if("key"==b.type){var d=b.b.i;if(this.b(b)&&(43==d||45==d)){c=b.map;d=43==d?this.a:-this.a;c.render();var e=c.C();Wg(c,e,d,void 0,this.d);b.preventDefault();c=!0}}return!c};function yi(b){Ug.call(this,{handleEvent:zi});b=w(b)?b:{};this.a=0;this.h=w(b.duration)?b.duration:250;this.d=null;this.g=this.b=void 0}M(yi,Ug);function zi(b){var c=!1;if("mousewheel"==b.type){var c=b.map,d=b.b;this.d=b.coordinate;this.a+=d.o;w(this.b)||(this.b=pa());d=Math.max(80-(pa()-this.b),0);n.clearTimeout(this.g);this.g=n.setTimeout(na(this.f,this,c),d);b.preventDefault();c=!0}return!c}
  yi.prototype.f=function(b){var c=yb(this.a,-1,1),d=b.C();b.render();Wg(b,d,-c,this.d,this.h);this.a=0;this.d=null;this.g=this.b=void 0};function Ai(b){dh.call(this,{handleDownEvent:Bi,handleDragEvent:Ci,handleUpEvent:Di});b=w(b)?b:{};this.d=null;this.g=void 0;this.a=!1;this.f=0;this.i=w(b.threshold)?b.threshold:.3;this.h=w(b.duration)?b.duration:250}M(Ai,dh);
  function Ci(b){var c=0,d=this.b[0],e=this.b[1],d=Math.atan2(e.clientY-d.clientY,e.clientX-d.clientX);w(this.g)&&(c=d-this.g,this.f+=c,!this.a&&Math.abs(this.f)>this.i&&(this.a=!0));this.g=d;b=b.map;d=ke(b.a);e=fh(this.b);e[0]-=d.x;e[1]-=d.y;this.d=b.Ha(e);this.a&&(d=b.C(),e=d.L(),b.render(),Vg(b,d,e+c,this.d))}function Di(b){if(2>this.b.length){b=b.map;var c=b.C();Cd(c,-1);if(this.a){var d=c.L(),e=this.d,f=this.h,d=c.constrainRotation(d,0);Vg(b,c,d,e,f)}return!1}return!0}
  function Bi(b){return 2<=this.b.length?(b=b.map,this.d=null,this.g=void 0,this.a=!1,this.f=0,this.k||Cd(b.C(),1),b.render(),!0):!1}Ai.prototype.j=ye;function Ei(b){dh.call(this,{handleDownEvent:Fi,handleDragEvent:Gi,handleUpEvent:Hi});b=w(b)?b:{};this.d=null;this.f=w(b.duration)?b.duration:400;this.a=void 0;this.g=1}M(Ei,dh);function Gi(b){var c=1,d=this.b[0],e=this.b[1],f=d.clientX-e.clientX,d=d.clientY-e.clientY,f=Math.sqrt(f*f+d*d);w(this.a)&&(c=this.a/f);this.a=f;1!=c&&(this.g=c);b=b.map;var f=b.C(),d=zd(f),e=ke(b.a),g=fh(this.b);g[0]-=e.x;g[1]-=e.y;this.d=b.Ha(g);b.render();Xg(b,f,d*c,this.d)}
  function Hi(b){if(2>this.b.length){b=b.map;var c=b.C();Cd(c,-1);var d=zd(c),e=this.d,f=this.f,d=c.constrainResolution(d,0,this.g-1);Xg(b,c,d,e,f);return!1}return!0}function Fi(b){return 2<=this.b.length?(b=b.map,this.d=null,this.a=void 0,this.g=1,this.k||Cd(b.C(),1),b.render(),!0):!1}Ei.prototype.j=ye;function Ii(b){var c=w(b)?b:{};b=ib(c);delete b.layers;c=c.layers;yg.call(this,b);this.b=[];this.a={};Q(this,Cc("layers"),this.Cd,!1,this);null!=c?da(c)&&(c=new Od(c.slice())):c=new Od;this.set("layers",c)}M(Ii,yg);l=Ii.prototype;l.Sa=function(){this.get("visible")&&this.c()};
  l.Cd=function(){N(this.b,T);this.b.length=0;var b=Ji(this);this.b.push(Q(b,"add",this.Bd,!1,this),Q(b,"remove",this.Dd,!1,this));Xa(this.a,function(b){N(b,T)});fb(this.a);var b=b.a,c,d,e;c=0;for(d=b.length;c<d;c++)e=b[c],this.a[H(e).toString()]=[Q(e,"propertychange",this.Sa,!1,this),Q(e,"change",this.Sa,!1,this)];this.c()};l.Bd=function(b){b=b.element;var c=H(b).toString();this.a[c]=[Q(b,"propertychange",this.Sa,!1,this),Q(b,"change",this.Sa,!1,this)];this.c()};
  l.Dd=function(b){b=H(b.element).toString();N(this.a[b],T);delete this.a[b];this.c()};function Ji(b){return b.get("layers")}
  l.yb=function(b){var c=w(b)?b:[],d=c.length;Ji(this).forEach(function(b){b.yb(c)});b=zg(this);var e,f;for(e=c.length;d<e;d++)f=c[d],f.brightness=yb(f.brightness+b.brightness,-1,1),f.contrast*=b.contrast,f.hue+=b.hue,f.opacity*=b.opacity,f.saturation*=b.saturation,f.visible=f.visible&&b.visible,f.maxResolution=Math.min(f.maxResolution,b.maxResolution),f.minResolution=Math.max(f.minResolution,b.minResolution),w(b.extent)&&(f.extent=w(f.extent)?$c(f.extent,b.extent):b.extent);return c};l.Ab=function(){return"ready"};function Ki(b){id.call(this,{code:b,units:"m",extent:Li,global:!0,worldExtent:Mi})}M(Ki,id);Ki.prototype.getPointResolution=function(b,c){var d=c[1]/6378137;return b/((Math.exp(d)+Math.exp(-d))/2)};var Ni=6378137*Math.PI,Li=[-Ni,-Ni,Ni,Ni],Mi=[-180,-85,180,85],Oi=Ha("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(" "),function(b){return new Ki(b)});
  function Pi(b,c,d){var e=b.length;d=1<d?d:2;w(c)||(2<d?c=b.slice():c=Array(e));for(var f=0;f<e;f+=d)c[f]=6378137*Math.PI*b[f]/180,c[f+1]=6378137*Math.log(Math.tan(Math.PI*(b[f+1]+90)/360));return c}function Qi(b,c,d){var e=b.length;d=1<d?d:2;w(c)||(2<d?c=b.slice():c=Array(e));for(var f=0;f<e;f+=d)c[f]=180*b[f]/(6378137*Math.PI),c[f+1]=360*Math.atan(Math.exp(b[f+1]/6378137))/Math.PI-90;return c};function Ri(b,c){id.call(this,{code:b,units:"degrees",extent:Si,axisOrientation:c,global:!0,worldExtent:Si})}M(Ri,id);Ri.prototype.getPointResolution=function(b){return b};
  var Si=[-180,-90,180,90],Ti=[new Ri("CRS:84"),new Ri("EPSG:4326","neu"),new Ri("urn:ogc:def:crs:EPSG::4326","neu"),new Ri("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Ri("urn:ogc:def:crs:OGC:1.3:CRS84"),new Ri("urn:ogc:def:crs:OGC:2:84"),new Ri("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new Ri("urn:x-ogc:def:crs:EPSG:4326","neu")];function Ui(b){Ag.call(this,w(b)?b:{})}M(Ui,Ag);function Vi(b){b=w(b)?b:{};var c=ib(b);delete c.preload;delete c.useInterimTilesOnError;Ag.call(this,c);this.set("preload",w(b.preload)?b.preload:0);this.set("useInterimTilesOnError",w(b.useInterimTilesOnError)?b.useInterimTilesOnError:!0)}M(Vi,Ag);function Wi(b){b=w(b)?b:{};var c=ib(b);delete c.style;delete c.renderBuffer;delete c.updateWhileAnimating;delete c.updateWhileInteracting;Ag.call(this,c);this.g=w(b.renderBuffer)?b.renderBuffer:100;this.d=null;this.b=void 0;c=b.style;this.d=w(c)?c:ri;this.b=null===c?void 0:qi(this.d);this.c();this.f=w(b.updateWhileAnimating)?b.updateWhileAnimating:!1;this.h=w(b.updateWhileInteracting)?b.updateWhileInteracting:!1}M(Wi,Ag);function Xi(b,c,d,e,f){this.B={};this.c=b;this.j=c;this.f=d;this.n=e;this.ya=f;this.d=this.a=this.b=this.I=this.W=this.G=null;this.T=this.J=this.o=this.u=this.q=this.p=0;this.X=!1;this.g=this.Y=0;this.La=!1;this.w=0;this.e="";this.i=this.l=this.da=this.ca=0;this.S=this.s=this.h=null;this.k=[];this.ta=Lc()}
  function Yi(b,c,d){if(null!==b.d){c=qh(c,0,d,2,b.n,b.k);d=b.c;var e=b.ta,f=d.globalAlpha;1!=b.o&&(d.globalAlpha=f*b.o);var g=b.Y;b.X&&(g+=b.ya);var h,k;h=0;for(k=c.length;h<k;h+=2){var m=c[h]-b.p,p=c[h+1]-b.q;b.La&&(m=m+.5|0,p=p+.5|0);if(0!==g||1!=b.g){var q=m+b.p,r=p+b.q;Cg(e,q,r,b.g,b.g,g,-q,-r);d.setTransform(e[0],e[1],e[4],e[5],e[12],e[13])}d.drawImage(b.d,b.J,b.T,b.w,b.u,m,p,b.w,b.u)}0===g&&1==b.g||d.setTransform(1,0,0,1,0,0);1!=b.o&&(d.globalAlpha=f)}}
  function Zi(b,c,d,e){var f=0;if(null!==b.S&&""!==b.e){null===b.h||$i(b,b.h);null===b.s||aj(b,b.s);var g=b.S,h=b.c,k=b.I;null===k?(h.font=g.font,h.textAlign=g.textAlign,h.textBaseline=g.textBaseline,b.I={font:g.font,textAlign:g.textAlign,textBaseline:g.textBaseline}):(k.font!=g.font&&(k.font=h.font=g.font),k.textAlign!=g.textAlign&&(k.textAlign=h.textAlign=g.textAlign),k.textBaseline!=g.textBaseline&&(k.textBaseline=h.textBaseline=g.textBaseline));c=qh(c,f,d,e,b.n,b.k);for(g=b.c;f<d;f+=e){h=c[f]+b.ca;
  k=c[f+1]+b.da;if(0!==b.l||1!=b.i){var m=Cg(b.ta,h,k,b.i,b.i,b.l,-h,-k);g.setTransform(m[0],m[1],m[4],m[5],m[12],m[13])}null===b.s||g.strokeText(b.e,h,k);null===b.h||g.fillText(b.e,h,k)}0===b.l&&1==b.i||g.setTransform(1,0,0,1,0,0)}}function bj(b,c,d,e,f,g){var h=b.c;b=qh(c,d,e,f,b.n,b.k);h.moveTo(b[0],b[1]);for(c=2;c<b.length;c+=2)h.lineTo(b[c],b[c+1]);g&&h.lineTo(b[0],b[1]);return e}function cj(b,c,d,e,f){var g=b.c,h,k;h=0;for(k=e.length;h<k;++h)d=bj(b,c,d,e[h],f,!0),g.closePath();return d}
  function Xh(b,c){var d=Infinity.toString(),e=b.B[d];w(e)?e.push(c):b.B[d]=[c]}l=Xi.prototype;l.rb=function(b){if(ad(this.f,b.t())){if(null!==this.b||null!==this.a){null===this.b||$i(this,this.b);null===this.a||aj(this,this.a);var c;c=b.a;c=null===c?null:qh(c,0,c.length,b.b,this.n,this.k);var d=c[2]-c[0],e=c[3]-c[1],d=Math.sqrt(d*d+e*e),e=this.c;e.beginPath();e.arc(c[0],c[1],d,0,2*Math.PI);null===this.b||e.fill();null===this.a||e.stroke()}""!==this.e&&Zi(this,dj(b),2,2)}};
  l.jd=function(b,c){var d=b.d,e,f;e=0;for(f=d.length;e<f;++e){var g=d[e];ej[g.D()].call(this,g,c)}};l.wb=function(b){var c=b.a;b=b.b;null===this.d||Yi(this,c,c.length);""!==this.e&&Zi(this,c,c.length,b)};l.ub=function(b){var c=b.a;b=b.b;null===this.d||Yi(this,c,c.length);""!==this.e&&Zi(this,c,c.length,b)};l.sb=function(b){if(ad(this.f,b.t())){if(null!==this.a){aj(this,this.a);var c=this.c,d=b.a;c.beginPath();bj(this,d,0,d.length,b.b,!1);c.stroke()}""!==this.e&&(b=fj(b),Zi(this,b,2,2))}};
  l.tb=function(b){var c=b.t();if(ad(this.f,c)){if(null!==this.a){aj(this,this.a);var c=this.c,d=b.a,e=0,f=b.f,g=b.b;c.beginPath();var h,k;h=0;for(k=f.length;h<k;++h)e=bj(this,d,e,f[h],g,!1);c.stroke()}""!==this.e&&(b=gj(b),Zi(this,b,b.length,2))}};
  l.Oa=function(b){if(ad(this.f,b.t())){if(null!==this.a||null!==this.b){null===this.b||$i(this,this.b);null===this.a||aj(this,this.a);var c=this.c;c.beginPath();cj(this,Qh(b),0,b.f,b.b);null===this.b||c.fill();null===this.a||c.stroke()}""!==this.e&&(b=Rh(b),Zi(this,b,2,2))}};
  l.vb=function(b){if(ad(this.f,b.t())){if(null!==this.a||null!==this.b){null===this.b||$i(this,this.b);null===this.a||aj(this,this.a);var c=this.c,d=hj(b),e=0,f=b.f,g=b.b,h,k;h=0;for(k=f.length;h<k;++h){var m=f[h];c.beginPath();e=cj(this,d,e,m,g);null===this.b||c.fill();null===this.a||c.stroke()}}""!==this.e&&(b=ij(b),Zi(this,b,b.length,2))}};function jj(b){var c=Ha(ab(b.B),Number);c.sort(Sa);var d,e,f,g,h;d=0;for(e=c.length;d<e;++d)for(f=b.B[c[d].toString()],g=0,h=f.length;g<h;++g)f[g](b)}
  function $i(b,c){var d=b.c,e=b.G;null===e?(d.fillStyle=c.fillStyle,b.G={fillStyle:c.fillStyle}):e.fillStyle!=c.fillStyle&&(e.fillStyle=d.fillStyle=c.fillStyle)}
  function aj(b,c){var d=b.c,e=b.W;null===e?(d.lineCap=c.lineCap,Df&&d.setLineDash(c.lineDash),d.lineJoin=c.lineJoin,d.lineWidth=c.lineWidth,d.miterLimit=c.miterLimit,d.strokeStyle=c.strokeStyle,b.W={lineCap:c.lineCap,lineDash:c.lineDash,lineJoin:c.lineJoin,lineWidth:c.lineWidth,miterLimit:c.miterLimit,strokeStyle:c.strokeStyle}):(e.lineCap!=c.lineCap&&(e.lineCap=d.lineCap=c.lineCap),Df&&!Pa(e.lineDash,c.lineDash)&&d.setLineDash(e.lineDash=c.lineDash),e.lineJoin!=c.lineJoin&&(e.lineJoin=d.lineJoin=
  c.lineJoin),e.lineWidth!=c.lineWidth&&(e.lineWidth=d.lineWidth=c.lineWidth),e.miterLimit!=c.miterLimit&&(e.miterLimit=d.miterLimit=c.miterLimit),e.strokeStyle!=c.strokeStyle&&(e.strokeStyle=d.strokeStyle=c.strokeStyle))}
  l.ja=function(b,c){if(null===b)this.b=null;else{var d=b.N();this.b={fillStyle:Rd(null===d?ii:d)}}if(null===c)this.a=null;else{var d=c.N(),e=c.na,f=c.getLineDash(),g=c.oa,h=c.H(),k=c.qa;this.a={lineCap:w(e)?e:"round",lineDash:null!=f?f:ji,lineJoin:w(g)?g:"round",lineWidth:this.j*(w(h)?h:1),miterLimit:w(k)?k:10,strokeStyle:Rd(null===d?ki:d)}}};
  l.Ob=function(b){if(null===b)this.d=null;else{var c=b.f,d=b.a,e=b.h,f=b.i;this.p=c[0];this.q=c[1];this.u=f[1];this.d=d;this.o=b.s;this.J=e[0];this.T=e[1];this.X=b.o;this.Y=b.L();this.g=b.Za;this.La=b.B;this.w=f[0]}};
  l.ba=function(b){if(null===b)this.e="";else{var c=b.ka();null===c?this.h=null:(c=c.N(),this.h={fillStyle:Rd(null===c?ii:c)});var d=b.$();if(null===d)this.s=null;else{var c=d.N(),e=d.na,f=d.getLineDash(),g=d.oa,h=d.H(),d=d.qa;this.s={lineCap:w(e)?e:"round",lineDash:null!=f?f:ji,lineJoin:w(g)?g:"round",lineWidth:w(h)?h:1,miterLimit:w(d)?d:10,strokeStyle:Rd(null===c?ki:c)}}var c=b.od(),e=b.pd(),f=b.qd(),g=b.L(),h=b.Za,d=b.V,k=b.rd();b=b.sd();this.S={font:w(c)?c:"10px sans-serif",textAlign:w(k)?k:"center",
  textBaseline:w(b)?b:"middle"};this.e=w(d)?d:"";this.ca=w(e)?this.j*e:0;this.da=w(f)?this.j*f:0;this.l=w(g)?g:0;this.i=this.j*(w(h)?h:1)}};var ej={Point:Xi.prototype.wb,LineString:Xi.prototype.sb,Polygon:Xi.prototype.Oa,MultiPoint:Xi.prototype.ub,MultiLineString:Xi.prototype.tb,MultiPolygon:Xi.prototype.vb,GeometryCollection:Xi.prototype.jd,Circle:Xi.prototype.rb};var kj=["Polygon","LineString","Image","Text"];function lj(b,c,d){this.J=b;this.S=c;this.d=null;this.g=0;this.resolution=d;this.u=this.q=null;this.b=[];this.c=[];this.W=Lc();this.a=[];this.G=[];this.I=Lc()}M(lj,Th);
  function mj(b,c,d,e,f,g){var h=b.c.length,k=b.xb(),m=[c[d],c[d+1]],p=[NaN,NaN],q=!0,r,t,v;for(r=d+f;r<e;r+=f){p[0]=c[r];p[1]=c[r+1];v=k[1];var y=k[2],x=k[3],u=p[0],D=p[1],z=0;u<k[0]?z=z|16:u>y&&(z=z|4);D<v?z|=8:D>x&&(z|=2);0===z&&(z=1);v=z;v!==t?(q&&(b.c[h++]=m[0],b.c[h++]=m[1]),b.c[h++]=p[0],b.c[h++]=p[1],q=!1):1===v?(b.c[h++]=p[0],b.c[h++]=p[1],q=!1):q=!0;m[0]=p[0];m[1]=p[1];t=v}r===d+f&&(b.c[h++]=m[0],b.c[h++]=m[1]);g&&(b.c[h++]=c[d],b.c[h++]=c[d+1]);return h}
  function nj(b,c){b.q=[0,c,0];b.b.push(b.q);b.u=[0,c,0];b.a.push(b.u)}function oj(b){var c=b.a;c.reverse();var d,e=c.length,f,g,h=-1;for(d=0;d<e;++d)if(f=c[d],g=f[0],6==g)h=d;else if(0==g){f[2]=d;f=b.a;for(g=d;h<g;){var k=f[h];f[h]=f[g];f[g]=k;++h;--g}h=-1}}function pj(b,c){b.q[2]=b.b.length;b.q=null;b.u[2]=b.a.length;b.u=null;var d=[6,c];b.b.push(d);b.a.push(d)}lj.prototype.Ya=ba;lj.prototype.xb=function(){return this.S};
  function qj(b,c,d){lj.call(this,b,c,d);this.i=this.w=null;this.p=this.n=this.l=this.j=this.k=this.B=this.o=this.s=this.h=this.f=this.e=void 0}M(qj,lj);qj.prototype.wb=function(b,c){if(null!==this.i){nj(this,c);var d=b.a,e=this.c.length,d=mj(this,d,0,d.length,b.b,!1);this.b.push([4,e,d,this.i,this.e,this.f,this.h,this.s,this.o,this.B,this.k,this.j,this.l,this.n,this.p]);this.a.push([4,e,d,this.w,this.e,this.f,this.h,this.s,this.o,this.B,this.k,this.j,this.l,this.n,this.p]);pj(this,c)}};
  qj.prototype.ub=function(b,c){if(null!==this.i){nj(this,c);var d=b.a,e=this.c.length,d=mj(this,d,0,d.length,b.b,!1);this.b.push([4,e,d,this.i,this.e,this.f,this.h,this.s,this.o,this.B,this.k,this.j,this.l,this.n,this.p]);this.a.push([4,e,d,this.w,this.e,this.f,this.h,this.s,this.o,this.B,this.k,this.j,this.l,this.n,this.p]);pj(this,c)}};qj.prototype.Ya=function(){oj(this);this.f=this.e=void 0;this.i=this.w=null;this.p=this.n=this.j=this.k=this.B=this.o=this.s=this.l=this.h=void 0};
  qj.prototype.Ob=function(b){var c=b.f,d=b.i,e=b.g,f=b.a,g=b.h;this.e=c[0];this.f=c[1];this.w=e;this.i=f;this.h=d[1];this.s=b.s;this.o=g[0];this.B=g[1];this.k=b.o;this.j=b.L();this.l=b.Za;this.n=b.B;this.p=d[0]};function rj(b,c,d){lj.call(this,b,c,d);this.e={Fa:void 0,Aa:void 0,Ba:null,Ca:void 0,Da:void 0,Ea:void 0,Db:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}M(rj,lj);
  function sj(b,c,d,e,f){var g=b.c.length;c=mj(b,c,d,e,f,!1);g=[8,g,c];b.b.push(g);b.a.push(g);return e}l=rj.prototype;l.xb=function(){null===this.d&&(this.d=Rc(this.S),0<this.g&&Qc(this.d,this.resolution*(this.g+1)/2,this.d));return this.d};
  function tj(b){var c=b.e,d=c.strokeStyle,e=c.lineCap,f=c.lineDash,g=c.lineJoin,h=c.lineWidth,k=c.miterLimit;c.Fa==d&&c.Aa==e&&Pa(c.Ba,f)&&c.Ca==g&&c.Da==h&&c.Ea==k||(c.Db!=b.c.length&&(b.b.push([12]),c.Db=b.c.length),b.b.push([10,d,h,e,g,k,f],[1]),c.Fa=d,c.Aa=e,c.Ba=f,c.Ca=g,c.Da=h,c.Ea=k)}
  l.sb=function(b,c){var d=this.e,e=d.lineWidth;w(d.strokeStyle)&&w(e)&&(tj(this),nj(this,c),this.a.push([10,d.strokeStyle,d.lineWidth,d.lineCap,d.lineJoin,d.miterLimit,d.lineDash],[1]),d=b.a,sj(this,d,0,d.length,b.b),this.a.push([12]),pj(this,c))};
  l.tb=function(b,c){var d=this.e,e=d.lineWidth;if(w(d.strokeStyle)&&w(e)){tj(this);nj(this,c);this.a.push([10,d.strokeStyle,d.lineWidth,d.lineCap,d.lineJoin,d.miterLimit,d.lineDash],[1]);var d=b.f,e=b.a,f=b.b,g=0,h,k;h=0;for(k=d.length;h<k;++h)g=sj(this,e,g,d[h],f);this.a.push([12]);pj(this,c)}};l.Ya=function(){this.e.Db!=this.c.length&&this.b.push([12]);oj(this);this.e=null};
  l.ja=function(b,c){var d=c.N();this.e.strokeStyle=Rd(null===d?ki:d);d=c.na;this.e.lineCap=w(d)?d:"round";d=c.getLineDash();this.e.lineDash=null===d?ji:d;d=c.oa;this.e.lineJoin=w(d)?d:"round";d=c.H();this.e.lineWidth=w(d)?d:1;d=c.qa;this.e.miterLimit=w(d)?d:10;this.e.lineWidth>this.g&&(this.g=this.e.lineWidth,this.d=null)};
  function uj(b,c,d){lj.call(this,b,c,d);this.e={ac:void 0,Fa:void 0,Aa:void 0,Ba:null,Ca:void 0,Da:void 0,Ea:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}M(uj,lj);
  function vj(b,c,d,e,f){var g=b.e,h=[1];b.b.push(h);b.a.push(h);var k,h=0;for(k=e.length;h<k;++h){var m=e[h],p=b.c.length;d=mj(b,c,d,m,f,!0);d=[8,p,d];p=[3];b.b.push(d,p);b.a.push(d,p);d=m}c=[7];b.a.push(c);w(g.fillStyle)&&b.b.push(c);w(g.strokeStyle)&&(g=[12],b.b.push(g),b.a.push(g));return d}l=uj.prototype;
  l.rb=function(b,c){var d=this.e,e=d.strokeStyle;if(w(d.fillStyle)||w(e)){wj(this);nj(this,c);this.a.push([9,Rd(ii)]);w(d.strokeStyle)&&this.a.push([10,d.strokeStyle,d.lineWidth,d.lineCap,d.lineJoin,d.miterLimit,d.lineDash]);var f=b.a,e=this.c.length;mj(this,f,0,f.length,b.b,!1);f=[1];e=[2,e];this.b.push(f,e);this.a.push(f,e);e=[7];this.a.push(e);w(d.fillStyle)&&this.b.push(e);w(d.strokeStyle)&&(d=[12],this.b.push(d),this.a.push(d));pj(this,c)}};
  l.Oa=function(b,c){var d=this.e,e=d.strokeStyle;if(w(d.fillStyle)||w(e))wj(this),nj(this,c),this.a.push([9,Rd(ii)]),w(d.strokeStyle)&&this.a.push([10,d.strokeStyle,d.lineWidth,d.lineCap,d.lineJoin,d.miterLimit,d.lineDash]),d=b.f,e=Qh(b),vj(this,e,0,d,b.b),pj(this,c)};
  l.vb=function(b,c){var d=this.e,e=d.strokeStyle;if(w(d.fillStyle)||w(e)){wj(this);nj(this,c);this.a.push([9,Rd(ii)]);w(d.strokeStyle)&&this.a.push([10,d.strokeStyle,d.lineWidth,d.lineCap,d.lineJoin,d.miterLimit,d.lineDash]);var d=b.f,e=hj(b),f=b.b,g=0,h,k;h=0;for(k=d.length;h<k;++h)g=vj(this,e,g,d[h],f);pj(this,c)}};l.Ya=function(){oj(this);this.e=null;var b=this.J;if(0!==b){var c=this.c,d,e;d=0;for(e=c.length;d<e;++d)c[d]=b*Math.round(c[d]/b)}};
  l.xb=function(){null===this.d&&(this.d=Rc(this.S),0<this.g&&Qc(this.d,this.resolution*(this.g+1)/2,this.d));return this.d};
  l.ja=function(b,c){var d=this.e;if(null===b)d.fillStyle=void 0;else{var e=b.N();d.fillStyle=Rd(null===e?ii:e)}null===c?(d.strokeStyle=void 0,d.lineCap=void 0,d.lineDash=null,d.lineJoin=void 0,d.lineWidth=void 0,d.miterLimit=void 0):(e=c.N(),d.strokeStyle=Rd(null===e?ki:e),e=c.na,d.lineCap=w(e)?e:"round",e=c.getLineDash(),d.lineDash=null===e?ji:e.slice(),e=c.oa,d.lineJoin=w(e)?e:"round",e=c.H(),d.lineWidth=w(e)?e:1,e=c.qa,d.miterLimit=w(e)?e:10,d.lineWidth>this.g&&(this.g=d.lineWidth,this.d=null))};
  function wj(b){var c=b.e,d=c.fillStyle,e=c.strokeStyle,f=c.lineCap,g=c.lineDash,h=c.lineJoin,k=c.lineWidth,m=c.miterLimit;w(d)&&c.ac!=d&&(b.b.push([9,d]),c.ac=c.fillStyle);!w(e)||c.Fa==e&&c.Aa==f&&c.Ba==g&&c.Ca==h&&c.Da==k&&c.Ea==m||(b.b.push([10,e,k,f,h,m,g]),c.Fa=e,c.Aa=f,c.Ba=g,c.Ca=h,c.Da=k,c.Ea=m)}function xj(b,c,d){lj.call(this,b,c,d);this.n=this.l=this.j=null;this.i="";this.k=this.B=this.o=this.s=0;this.h=this.f=this.e=null}M(xj,lj);
  function yj(b,c,d,e,f){if(""!==b.i&&null!==b.h&&(null!==b.e||null!==b.f)){if(null!==b.e){var g=b.e,h=b.j;if(null===h||h.fillStyle!=g.fillStyle){var k=[9,g.fillStyle];b.b.push(k);b.a.push(k);null===h?b.j={fillStyle:g.fillStyle}:h.fillStyle=g.fillStyle}}null!==b.f&&(g=b.f,h=b.l,null===h||h.lineCap!=g.lineCap||h.lineDash!=g.lineDash||h.lineJoin!=g.lineJoin||h.lineWidth!=g.lineWidth||h.miterLimit!=g.miterLimit||h.strokeStyle!=g.strokeStyle)&&(k=[10,g.strokeStyle,g.lineWidth,g.lineCap,g.lineJoin,g.miterLimit,
  g.lineDash,!1],b.b.push(k),b.a.push(k),null===h?b.l={lineCap:g.lineCap,lineDash:g.lineDash,lineJoin:g.lineJoin,lineWidth:g.lineWidth,miterLimit:g.miterLimit,strokeStyle:g.strokeStyle}:(h.lineCap=g.lineCap,h.lineDash=g.lineDash,h.lineJoin=g.lineJoin,h.lineWidth=g.lineWidth,h.miterLimit=g.miterLimit,h.strokeStyle=g.strokeStyle));g=b.h;h=b.n;if(null===h||h.font!=g.font||h.textAlign!=g.textAlign||h.textBaseline!=g.textBaseline)k=[11,g.font,g.textAlign,g.textBaseline],b.b.push(k),b.a.push(k),null===h?
  b.n={font:g.font,textAlign:g.textAlign,textBaseline:g.textBaseline}:(h.font=g.font,h.textAlign=g.textAlign,h.textBaseline=g.textBaseline);nj(b,f);g=b.c.length;c=mj(b,c,0,d,e,!1);c=[5,g,c,b.i,b.s,b.o,b.B,b.k,null!==b.e,null!==b.f];b.b.push(c);b.a.push(c);pj(b,f)}}
  xj.prototype.ba=function(b){if(null===b)this.i="";else{var c=b.ka();null===c?this.e=null:(c=c.N(),c=Rd(null===c?ii:c),null===this.e?this.e={fillStyle:c}:this.e.fillStyle=c);var d=b.$();if(null===d)this.f=null;else{var c=d.N(),e=d.na,f=d.getLineDash(),g=d.oa,h=d.H(),d=d.qa,e=w(e)?e:"round",f=null!=f?f.slice():ji,g=w(g)?g:"round",h=w(h)?h:1,d=w(d)?d:10,c=Rd(null===c?ki:c);if(null===this.f)this.f={lineCap:e,lineDash:f,lineJoin:g,lineWidth:h,miterLimit:d,strokeStyle:c};else{var k=this.f;k.lineCap=e;k.lineDash=
  f;k.lineJoin=g;k.lineWidth=h;k.miterLimit=d;k.strokeStyle=c}}var m=b.od(),c=b.pd(),e=b.qd(),f=b.L(),h=b.Za,d=b.V,g=b.rd(),k=b.sd();b=w(m)?m:"10px sans-serif";g=w(g)?g:"center";k=w(k)?k:"middle";null===this.h?this.h={font:b,textAlign:g,textBaseline:k}:(m=this.h,m.font=b,m.textAlign=g,m.textBaseline=k);this.i=w(d)?d:"";this.s=w(c)?c:0;this.o=w(e)?e:0;this.B=w(f)?f:0;this.k=w(h)?h:1}};function zj(b,c,d){this.e=b;this.b=c;this.c=d;this.a={};Bf(1,1);Lc()}
  function Aj(b){for(var c in b.a){var d=b.a[c],e;for(e in d)d[e].Ya()}}function Bj(b,c,d){var e=w(c)?c.toString():"0";c=b.a[e];w(c)||(c={},b.a[e]=c);e=c[d];w(e)||(e=new Cj[d](b.e,b.b,b.c),c[d]=e);return e}zj.prototype.U=function(){return db(this.a)};
  function Dj(b,c,d,e,f,g){var h=Ha(ab(b.a),Number);h.sort(Sa);var k=b.b,m=k[0],p=k[1],q=k[2],k=k[3],m=[m,p,m,k,q,k,q,p];qh(m,0,8,2,e,m);c.save();c.beginPath();c.moveTo(m[0],m[1]);c.lineTo(m[2],m[3]);c.lineTo(m[4],m[5]);c.lineTo(m[6],m[7]);c.closePath();c.clip();for(var r,t,m=0,p=h.length;m<p;++m)for(r=b.a[h[m].toString()],q=0,k=kj.length;q<k;++q)if(t=r[kj[q]],w(t))a:{var v=t,y=c,x=d,u=e,D=f,z=g;t=t.b;var F=void 0,F=v.W;if(u[0]==F[0]&&u[1]==F[1]&&u[4]==F[4]&&u[5]==F[5]&&u[12]==F[12]&&u[13]==F[13])F=
  v.G;else{var F=qh(v.c,0,v.c.length,2,u,v.G),G=v.W;G[0]=u[0];G[1]=u[1];G[2]=u[2];G[3]=u[3];G[4]=u[4];G[5]=u[5];G[6]=u[6];G[7]=u[7];G[8]=u[8];G[9]=u[9];G[10]=u[10];G[11]=u[11];G[12]=u[12];G[13]=u[13];G[14]=u[14];G[15]=u[15]}for(var u=0,G=t.length,B=0,J=void 0,v=v.I;u<G;){var A=t[u],S,U,W,E;switch(A[0]){case 0:B=A[1];J=H(B).toString();w(z[J])?u=A[2]:w(void 0)&&!ad(void 0,B.A().t())?u=A[2]:++u;break;case 1:y.beginPath();++u;break;case 2:var B=A[1],J=F[B],K=F[B+1],L=F[B+2]-J,B=F[B+3]-K;y.arc(J,K,Math.sqrt(L*
  L+B*B),0,2*Math.PI,!0);++u;break;case 3:y.closePath();++u;break;case 4:B=A[1];J=A[2];S=A[3];W=A[4]*x;var ga=A[5]*x,R=A[6];U=A[7];var eb=A[8],Pb=A[9],K=A[11],L=A[12],Qa=A[13],Aa=A[14];for(A[10]&&(K+=D);B<J;B+=2){A=F[B]-W;E=F[B+1]-ga;Qa&&(A=A+.5|0,E=E+.5|0);if(1!=L||0!==K){var Fa=A+W,Oc=E+ga;Cg(v,Fa,Oc,L,L,K,-Fa,-Oc);y.setTransform(v[0],v[1],v[4],v[5],v[12],v[13])}Fa=y.globalAlpha;1!=U&&(y.globalAlpha=Fa*U);y.drawImage(S,eb,Pb,Aa,R,A,E,Aa*x,R*x);1!=U&&(y.globalAlpha=Fa);1==L&&0===K||y.setTransform(1,
  0,0,1,0,0)}++u;break;case 5:B=A[1];J=A[2];W=A[3];ga=A[4]*x;R=A[5]*x;K=A[6];L=A[7]*x;S=A[8];for(U=A[9];B<J;B+=2){A=F[B]+ga;E=F[B+1]+R;if(1!=L||0!==K)Cg(v,A,E,L,L,K,-A,-E),y.setTransform(v[0],v[1],v[4],v[5],v[12],v[13]);U&&y.strokeText(W,A,E);S&&y.fillText(W,A,E);1==L&&0===K||y.setTransform(1,0,0,1,0,0)}++u;break;case 6:if(w(void 0)&&(B=A[1],(void 0)(B)))break a;++u;break;case 7:y.fill();++u;break;case 8:B=A[1];J=A[2];y.moveTo(F[B],F[B+1]);for(B+=2;B<J;B+=2)y.lineTo(F[B],F[B+1]);++u;break;case 9:y.fillStyle=
  A[1];++u;break;case 10:B=w(A[7])?A[7]:!0;J=A[2];y.strokeStyle=A[1];y.lineWidth=B?J*x:J;y.lineCap=A[3];y.lineJoin=A[4];y.miterLimit=A[5];Df&&y.setLineDash(A[6]);++u;break;case 11:y.font=A[1];y.textAlign=A[2];y.textBaseline=A[3];++u;break;case 12:y.stroke();++u;break;default:++u}}}c.restore()}var Cj={Image:qj,LineString:rj,Polygon:uj,Text:xj};function Ej(b){Eg.call(this,b);this.G=Lc()}M(Ej,Eg);
  Ej.prototype.k=function(b,c,d){Fj(this,"precompose",d,b,void 0);var e=this.j();if(null!==e){var f=c.extent,g=w(f);if(g){var h=b.pixelRatio,k=[f[0],f[3]],m=[f[2],f[3]],p=[f[2],f[1]],f=[f[0],f[1]];Dg(b.coordinateToPixelMatrix,k,k);Dg(b.coordinateToPixelMatrix,m,m);Dg(b.coordinateToPixelMatrix,p,p);Dg(b.coordinateToPixelMatrix,f,f);d.save();d.beginPath();d.moveTo(k[0]*h,k[1]*h);d.lineTo(m[0]*h,m[1]*h);d.lineTo(p[0]*h,p[1]*h);d.lineTo(f[0]*h,f[1]*h);d.clip()}h=this.o();k=d.globalAlpha;d.globalAlpha=c.opacity;
  0===b.viewState.rotation?(c=h[13],m=e.width*h[0],p=e.height*h[5],d.drawImage(e,0,0,+e.width,+e.height,Math.round(h[12]),Math.round(c),Math.round(m),Math.round(p))):(d.setTransform(h[0],h[1],h[4],h[5],h[12],h[13]),d.drawImage(e,0,0),d.setTransform(1,0,0,1,0,0));d.globalAlpha=k;g&&d.restore()}Fj(this,"postcompose",d,b,void 0)};function Fj(b,c,d,e,f){var g=b.b;wc(g,c)&&(b=w(f)?f:Gj(b,e,0),b=new Xi(d,e.pixelRatio,e.extent,b,e.viewState.rotation),X(g,new Uh(c,g,b,null,e,d,null)),jj(b))}
  function Gj(b,c,d){var e=c.viewState,f=c.pixelRatio;return Cg(b.G,f*c.size[0]/2,f*c.size[1]/2,f/e.resolution,-f/e.resolution,-e.rotation,-e.center[0]+d,-e.center[1])}var Hj=function(){var b=null,c=null;return function(d){if(null===b){b=Bf(1,1);c=b.createImageData(1,1);var e=c.data;e[0]=42;e[1]=84;e[2]=126;e[3]=255}var e=b.canvas,f=d[0]<=e.width&&d[1]<=e.height;f||(e.width=d[0],e.height=d[1],e=d[0]-1,d=d[1]-1,b.putImageData(c,e,d),d=b.getImageData(e,d,1,1),f=Pa(c.data,d.data));return f}}();function Ij(b,c,d){rh.call(this);c=w(c)?c:0;if(null===b)th(this,"XY",null);else{uh(this,d,b,0);null===this.a&&(this.a=[]);d=this.a;b=vh(d,b);d[b++]=d[0]+c;var e;c=1;for(e=this.b;c<e;++c)d[b++]=d[c];d.length=b}this.c()}M(Ij,rh);Ij.prototype.clone=function(){var b=new Ij(null);th(b,this.g,this.a.slice());b.c();return b};function dj(b){return b.a.slice(0,b.b)}Ij.prototype.Na=function(b){var c=this.a,d=c[this.b]-c[0];return Pc(c[0]-d,c[1]-d,c[0]+d,c[1]+d,b)};Ij.prototype.D=function(){return"Circle"};function Jj(b){ph.call(this);this.d=w(b)?b:null;Kj(this)}M(Jj,ph);function Lj(b){var c=[],d,e;d=0;for(e=b.length;d<e;++d)c.push(b[d].clone());return c}function Mj(b){var c,d;if(null!==b.d)for(c=0,d=b.d.length;c<d;++c)rc(b.d[c],"change",b.c,!1,b)}function Kj(b){var c,d;if(null!==b.d)for(c=0,d=b.d.length;c<d;++c)Q(b.d[c],"change",b.c,!1,b)}l=Jj.prototype;l.clone=function(){var b=new Jj(null),c=Lj(this.d);Mj(b);b.d=c;Kj(b);b.c();return b};
  l.Na=function(b){Pc(Infinity,Infinity,-Infinity,-Infinity,b);for(var c=this.d,d=0,e=c.length;d<e;++d){var f=b,g=c[d].t();g[0]<f[0]&&(f[0]=g[0]);g[2]>f[2]&&(f[2]=g[2]);g[1]<f[1]&&(f[1]=g[1]);g[3]>f[3]&&(f[3]=g[3])}return b};
  l.zb=function(b){this.l!=this.e&&(fb(this.h),this.i=0,this.l=this.e);if(0>b||0!==this.i&&b<this.i)return this;var c=b.toString();if(this.h.hasOwnProperty(c))return this.h[c];var d=[],e=this.d,f=!1,g,h;g=0;for(h=e.length;g<h;++g){var k=e[g],m=k.zb(b);d.push(m);m!==k&&(f=!0)}if(f)return b=new Jj(null),Mj(b),b.d=d,Kj(b),b.c(),this.h[c]=b;this.i=b;return this};l.D=function(){return"GeometryCollection"};l.U=function(){return 0==this.d.length};
  l.mb=function(b){var c=this.d,d,e;d=0;for(e=c.length;d<e;++d)c[d].mb(b);this.c()};l.v=function(){Mj(this);Jj.F.v.call(this)};function Nj(b,c,d,e,f){var g=NaN,h=NaN,k=(d-c)/e;if(0!==k)if(1==k)g=b[c],h=b[c+1];else if(2==k)g=.5*b[c]+.5*b[c+e],h=.5*b[c+1]+.5*b[c+e+1];else{var h=b[c],k=b[c+1],m=0,g=[0],p;for(p=c+e;p<d;p+=e){var q=b[p],r=b[p+1],m=m+Math.sqrt((q-h)*(q-h)+(r-k)*(r-k));g.push(m);h=q;k=r}d=.5*m;for(var h=0,k=g.length,t;h<k;)m=h+k>>1,p=Sa(d,g[m]),0<p?h=m+1:(k=m,t=!p);h=t?h:~h;0>h?(t=(d-g[-h-2])/(g[-h-1]-g[-h-2]),c+=(-h-2)*e,g=b[c],g=g+t*(b[c+e]-g),d=b[c+1],h=d+t*(b[c+e+1]-d)):(g=b[c+h*e],h=b[c+h*e+1])}return null!=
  f?(f[0]=g,f[1]=h,f):[g,h]};function Oj(b,c){rh.call(this);this.j=null;this.q=-1;Pj(this,b,c)}M(Oj,rh);Oj.prototype.clone=function(){var b=new Oj(null);Qj(b,this.g,this.a.slice());return b};Oj.prototype.f=function(){return yh(this.a,0,this.a.length,this.b)};function fj(b){b.q!=b.e&&(b.j=Nj(b.a,0,b.a.length,b.b,b.j),b.q=b.e);return b.j}Oj.prototype.k=function(b){var c=[];c.length=Ah(this.a,0,this.a.length,this.b,b,c,0);b=new Oj(null);Qj(b,"XY",c);return b};Oj.prototype.D=function(){return"LineString"};
  function Pj(b,c,d){null===c?Qj(b,"XY",null):(uh(b,d,c,1),null===b.a&&(b.a=[]),b.a.length=wh(b.a,0,c,b.b),b.c())}function Qj(b,c,d){th(b,c,d);b.c()};function Rj(b,c){rh.call(this);this.f=[];if(null===b)Sj(this,"XY",null,this.f);else{uh(this,c,b,2);null===this.a&&(this.a=[]);var d=xh(this.a,0,b,this.b,this.f);this.a.length=0===d.length?0:d[d.length-1];this.c()}}M(Rj,rh);Rj.prototype.clone=function(){var b=new Rj(null);Sj(b,this.g,this.a.slice(),this.f.slice());return b};function Tj(b){var c=b.a,d=b.f;b=b.g;var e=[],f=0,g,h;g=0;for(h=d.length;g<h;++g){var k=d[g],m=new Oj(null);Qj(m,b,c.slice(f,k));e.push(m);f=k}return e}
  function gj(b){var c=[],d=b.a,e=0,f=b.f;b=b.b;var g,h;g=0;for(h=f.length;g<h;++g){var k=f[g],e=Nj(d,e,k,b);Ma(c,e);e=k}return c}Rj.prototype.k=function(b){var c=[],d=[],e=this.a,f=this.f,g=this.b,h=0,k=0,m,p;m=0;for(p=f.length;m<p;++m){var q=f[m],k=Ah(e,h,q,g,b,c,k);d.push(k);h=q}c.length=k;b=new Rj(null);Sj(b,"XY",c,d);return b};Rj.prototype.D=function(){return"MultiLineString"};function Sj(b,c,d,e){th(b,c,d);b.f=e;b.c()}
  function Uj(b,c){var d="XY",e=[],f=[],g,h;g=0;for(h=c.length;g<h;++g){var k=c[g];0===g&&(d=k.g);Ma(e,k.a);f.push(e.length)}Sj(b,d,e,f)};function Vj(b,c){rh.call(this);null===b?th(this,"XY",null):(uh(this,c,b,1),null===this.a&&(this.a=[]),this.a.length=wh(this.a,0,b,this.b));this.c()}M(Vj,rh);Vj.prototype.clone=function(){var b=new Vj(null);th(b,this.g,this.a.slice());b.c();return b};function Wj(b){var c=b.a,d=b.g;b=b.b;var e=[],f,g;f=0;for(g=c.length;f<g;f+=b){var h=new Dh(null),k=h;th(k,d,c.slice(f,f+b));k.c();e.push(h)}return e}Vj.prototype.D=function(){return"MultiPoint"};function Xj(b,c){rh.call(this);this.f=[];this.q=-1;this.u=null;this.w=-1;this.j=null;if(null===b)Yj(this,"XY",null,this.f);else{uh(this,c,b,3);null===this.a&&(this.a=[]);var d=this.a,e=this.b,f=this.f,g=0,f=w(f)?f:[],h=0,k,m;k=0;for(m=b.length;k<m;++k)g=xh(d,g,b[k],e,f[h]),f[h++]=g,g=g[g.length-1];f.length=h;0===f.length?this.a.length=0:(d=f[f.length-1],this.a.length=0===d.length?0:d[d.length-1]);this.c()}}M(Xj,rh);
  Xj.prototype.clone=function(){var b=new Xj(null);Yj(b,this.g,this.a.slice(),this.f.slice());return b};function ij(b){if(b.q!=b.e){var c=b.a,d=b.f,e=b.b,f=0,g=[],h,k,m=Tc();h=0;for(k=d.length;h<k;++h){var p=d[h],m=Wc(Pc(Infinity,Infinity,-Infinity,-Infinity,void 0),c,f,p[0],e);g.push((m[0]+m[2])/2,(m[1]+m[3])/2);f=p[p.length-1]}c=hj(b);d=b.f;e=b.b;f=0;h=[];k=0;for(m=d.length;k<m;++k)p=d[k],h=Hh(c,f,p,e,g,2*k,h),f=p[p.length-1];b.u=h;b.q=b.e}return b.u}
  function hj(b){if(b.w!=b.e){var c=b.a,d;a:{d=b.f;var e,f;e=0;for(f=d.length;e<f;++e)if(!Jh(c,d[e],b.b,void 0)){d=!1;break a}d=!0}d?b.j=c:(b.j=c.slice(),b.j.length=Lh(b.j,b.f,b.b));b.w=b.e}return b.j}Xj.prototype.k=function(b){var c=[],d=[],e=this.a,f=this.f,g=this.b;b=Math.sqrt(b);var h=0,k=0,m,p;m=0;for(p=f.length;m<p;++m){var q=f[m],r=[],k=Bh(e,h,q,g,b,c,k,r);d.push(r);h=q[q.length-1]}c.length=k;e=new Xj(null);Yj(e,"XY",c,d);return e};
  function Zj(b){var c=b.g,d=b.a;b=b.f;var e=[],f=0,g,h,k,m;g=0;for(h=b.length;g<h;++g){var p=b[g].slice(),q=p[p.length-1];if(0!==f)for(k=0,m=p.length;k<m;++k)p[k]-=f;k=new Mh(null);Oh(k,c,d.slice(f,q),p);e.push(k);f=q}return e}Xj.prototype.D=function(){return"MultiPolygon"};function Yj(b,c,d,e){th(b,c,d);b.f=e;b.c()}
  function ak(b,c){var d="XY",e=[],f=[],g,h,k;g=0;for(h=c.length;g<h;++g){var m=c[g];0===g&&(d=m.g);var p=e.length;k=m.f;var q,r;q=0;for(r=k.length;q<r;++q)k[q]+=p;Ma(e,m.a);f.push(k)}Yj(b,d,e,f)};function bk(b,c){return H(b)-H(c)}function ck(b,c){var d=.5*b/c;return d*d}function dk(b,c,d,e,f,g){var h;h=d.c;null!==h&&h.Xe(f,g);f=(0,d.b)(c);null!=f&&(e=f.zb(e),(0,ek[e.D()])(b,e,d,c));return!1}
  var ek={Point:function(b,c,d,e){var f=d.c;if(null!==f){var g=Bj(b,d.a,"Image");g.Ob(f);g.wb(c,e)}f=d.V;null!==f&&(b=Bj(b,d.a,"Text"),b.ba(f),yj(b,Fh(c),2,2,e))},LineString:function(b,c,d,e){var f=d.$();if(null!==f){var g=Bj(b,d.a,"LineString");g.ja(null,f);g.sb(c,e)}f=d.V;null!==f&&(b=Bj(b,d.a,"Text"),b.ba(f),yj(b,fj(c),2,2,e))},Polygon:function(b,c,d,e){var f=d.ka(),g=d.$();if(null!==f||null!==g){var h=Bj(b,d.a,"Polygon");h.ja(f,g);h.Oa(c,e)}f=d.V;null!==f&&(b=Bj(b,d.a,"Text"),b.ba(f),yj(b,Rh(c),
  2,2,e))},MultiPoint:function(b,c,d,e){var f=d.c;if(null!==f){var g=Bj(b,d.a,"Image");g.Ob(f);g.ub(c,e)}f=d.V;null!==f&&(b=Bj(b,d.a,"Text"),b.ba(f),d=c.a,yj(b,d,d.length,c.b,e))},MultiLineString:function(b,c,d,e){var f=d.$();if(null!==f){var g=Bj(b,d.a,"LineString");g.ja(null,f);g.tb(c,e)}f=d.V;null!==f&&(b=Bj(b,d.a,"Text"),b.ba(f),c=gj(c),yj(b,c,c.length,2,e))},MultiPolygon:function(b,c,d,e){var f=d.ka(),g=d.$();if(null!==g||null!==f){var h=Bj(b,d.a,"Polygon");h.ja(f,g);h.vb(c,e)}f=d.V;null!==f&&
  (b=Bj(b,d.a,"Text"),b.ba(f),c=ij(c),yj(b,c,c.length,2,e))},GeometryCollection:function(b,c,d,e){c=c.d;var f,g;f=0;for(g=c.length;f<g;++f)(0,ek[c[f].D()])(b,c[f],d,e)},Circle:function(b,c,d,e){var f=d.ka(),g=d.$();if(null!==f||null!==g){var h=Bj(b,d.a,"Polygon");h.ja(f,g);h.rb(c,e)}f=d.V;null!==f&&(b=Bj(b,d.a,"Text"),b.ba(f),yj(b,dj(c),2,2,e))}};function fk(b){we.call(this,{attributions:b.attributions,extent:b.extent,logo:b.logo,projection:b.projection,state:b.state});this.d=w(b.resolutions)?b.resolutions:null}M(fk,we);fk.prototype.q=function(b){b=b.target;switch(b.state){case 1:X(this,new gk(hk,b));break;case 2:X(this,new gk(ik,b));break;case 3:X(this,new gk(jk,b))}};function kk(b,c){lk(b).src=c}function gk(b,c){P.call(this,b);this.image=c}M(gk,P);var hk="imageloadstart",ik="imageloadend",jk="imageloaderror";function mk(b,c,d){if(ha(b))d&&(b=na(b,d));else if(b&&"function"==typeof b.handleEvent)b=na(b.handleEvent,b);else throw Error("Invalid listener argument");return 2147483647<c?-1:n.setTimeout(b,c||0)};function nk(b){b=String(b);if(/^\s*$/.test(b)?0:/^[\],:{}\s\u2028\u2029]*$/.test(b.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+b+")")}catch(c){}throw Error("Invalid JSON string: "+b);}function ok(){}
  function pk(b,c,d){switch(typeof c){case "string":qk(c,d);break;case "number":d.push(isFinite(c)&&!isNaN(c)?c:"null");break;case "boolean":d.push(c);break;case "undefined":d.push("null");break;case "object":if(null==c){d.push("null");break}if(da(c)){var e=c.length;d.push("[");for(var f="",g=0;g<e;g++)d.push(f),pk(b,c[g],d),f=",";d.push("]");break}d.push("{");e="";for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(g=c[f],"function"!=typeof g&&(d.push(e),qk(f,d),d.push(":"),pk(b,g,d),e=","));d.push("}");
  break;case "function":break;default:throw Error("Unknown type: "+typeof c);}}var rk={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},sk=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;function qk(b,c){c.push('"',b.replace(sk,function(b){if(b in rk)return rk[b];var c=b.charCodeAt(0),f="\\u";16>c?f+="000":256>c?f+="00":4096>c&&(f+="0");return rk[b]=f+c.toString(16)}),'"')};function tk(){}tk.prototype.a=null;function uk(b){var c;(c=b.a)||(c={},vk(b)&&(c[0]=!0,c[1]=!0),c=b.a=c);return c};var wk;function xk(){}M(xk,tk);function yk(b){return(b=vk(b))?new ActiveXObject(b):new XMLHttpRequest}function vk(b){if(!b.b&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var c=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],d=0;d<c.length;d++){var e=c[d];try{return new ActiveXObject(e),b.b=e}catch(f){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return b.b}wk=new xk;var zk=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function Ak(b){if(Bk){Bk=!1;var c=n.location;if(c){var d=c.href;if(d&&(d=(d=Ak(d)[3]||null)?decodeURI(d):d)&&d!=c.hostname)throw Bk=!0,Error();}}return b.match(zk)}var Bk=ob;function Ck(b){if(b[1]){var c=b[0],d=c.indexOf("#");0<=d&&(b.push(c.substr(d)),b[0]=c=c.substr(0,d));d=c.indexOf("?");0>d?b[1]="?":d==c.length-1&&(b[1]=void 0)}return b.join("")}
  function Dk(b,c,d){if(da(c))for(var e=0;e<c.length;e++)Dk(b,String(c[e]),d);else null!=c&&d.push("&",b,""===c?"":"=",encodeURIComponent(String(c)))}function Ek(b,c){for(var d in c)Dk(d,c[d],b);return b};function Fk(b){V.call(this);this.n=new cf;this.h=b||null;this.a=!1;this.f=this.r=null;this.d=this.k="";this.b=this.o=this.e=this.i=!1;this.g=0;this.c=null;this.j=Gk;this.l=this.p=!1}M(Fk,V);var Gk="",Hk=/^https?$/i,Ik=["POST","PUT"];l=Fk.prototype;
  l.send=function(b,c,d,e){if(this.r)throw Error("[goog.net.XhrIo] Object is active with another request="+this.k+"; newUri="+b);c=c?c.toUpperCase():"GET";this.k=b;this.d="";this.i=!1;this.a=!0;this.r=this.h?yk(this.h):yk(wk);this.f=this.h?uk(this.h):uk(wk);this.r.onreadystatechange=na(this.pc,this);try{this.o=!0,this.r.open(c,String(b),!0),this.o=!1}catch(f){Jk(this,f);return}b=d||"";var g=this.n.clone();e&&bf(e,function(b,c){g.set(c,b)});e=Ia(g.la());d=n.FormData&&b instanceof n.FormData;!(0<=Ea(Ik,
  c))||e||d||g.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");g.forEach(function(b,c){this.r.setRequestHeader(c,b)},this);this.j&&(this.r.responseType=this.j);"withCredentials"in this.r&&(this.r.withCredentials=this.p);try{Kk(this),0<this.g&&((this.l=Lk(this.r))?(this.r.timeout=this.g,this.r.ontimeout=na(this.Bc,this)):this.c=mk(this.Bc,this.g,this)),this.e=!0,this.r.send(b),this.e=!1}catch(h){Jk(this,h)}};function Lk(b){return O&&vb(9)&&fa(b.timeout)&&w(b.ontimeout)}
  function Ja(b){return"content-type"==b.toLowerCase()}l.Bc=function(){"undefined"!=typeof aa&&this.r&&(this.d="Timed out after "+this.g+"ms, aborting",X(this,"timeout"),this.r&&this.a&&(this.a=!1,this.b=!0,this.r.abort(),this.b=!1,X(this,"complete"),X(this,"abort"),Mk(this)))};function Jk(b,c){b.a=!1;b.r&&(b.b=!0,b.r.abort(),b.b=!1);b.d=c;Nk(b);Mk(b)}function Nk(b){b.i||(b.i=!0,X(b,"complete"),X(b,"error"))}
  l.v=function(){this.r&&(this.a&&(this.a=!1,this.b=!0,this.r.abort(),this.b=!1),Mk(this,!0));Fk.F.v.call(this)};l.pc=function(){this.B||(this.o||this.e||this.b?Ok(this):this.me())};l.me=function(){Ok(this)};
  function Ok(b){if(b.a&&"undefined"!=typeof aa&&(!b.f[1]||4!=Pk(b)||2!=Qk(b)))if(b.e&&4==Pk(b))mk(b.pc,0,b);else if(X(b,"readystatechange"),4==Pk(b)){b.a=!1;try{if(Rk(b))X(b,"complete"),X(b,"success");else{var c;try{c=2<Pk(b)?b.r.statusText:""}catch(d){c=""}b.d=c+" ["+Qk(b)+"]";Nk(b)}}finally{Mk(b)}}}function Mk(b,c){if(b.r){Kk(b);var d=b.r,e=b.f[0]?ba:null;b.r=null;b.f=null;c||X(b,"ready");try{d.onreadystatechange=e}catch(f){}}}
  function Kk(b){b.r&&b.l&&(b.r.ontimeout=null);fa(b.c)&&(n.clearTimeout(b.c),b.c=null)}function Rk(b){var c=Qk(b),d;a:switch(c){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:d=!0;break a;default:d=!1}if(!d){if(c=0===c)b=Ak(String(b.k))[1]||null,!b&&self.location&&(b=self.location.protocol,b=b.substr(0,b.length-1)),c=!Hk.test(b?b.toLowerCase():"");d=c}return d}function Pk(b){return b.r?b.r.readyState:0}function Qk(b){try{return 2<Pk(b)?b.r.status:-1}catch(c){return-1}}
  function Sk(b){try{return b.r?b.r.responseText:""}catch(c){return""}};var Tk;a:if(document.implementation&&document.implementation.createDocument)Tk=document.implementation.createDocument("","",null);else{if("undefined"!=typeof ActiveXObject){var Uk=new ActiveXObject("MSXML2.DOMDocument");if(Uk){Uk.resolveExternals=!1;Uk.validateOnParse=!1;try{Uk.setProperty("ProhibitDTD",!0),Uk.setProperty("MaxXMLSize",2048),Uk.setProperty("MaxElementDepth",256)}catch(Vk){}}if(Uk){Tk=Uk;break a}}throw Error("Your browser does not support creating new documents");}var Wk=Tk;
  function Xk(b,c){return Wk.createElementNS(b,c)}function Yk(b,c){null===b&&(b="");return Wk.createNode(1,c,b)}var Zk=document.implementation&&document.implementation.createDocument?Xk:Yk;function $k(b,c,d){if(4==b.nodeType||3==b.nodeType)c?d.push(String(b.nodeValue).replace(/(\r\n|\r|\n)/g,"")):d.push(b.nodeValue);else for(b=b.firstChild;null!==b;b=b.nextSibling)$k(b,c,d);return d}function al(b){return b.localName}function bl(b){var c=b.localName;return w(c)?c:b.baseName}var cl=O?bl:al;
  function dl(b){return b instanceof Document}function el(b){return ia(b)&&9==b.nodeType}var fl=O?el:dl;function gl(b){return b instanceof Node}function hl(b){return ia(b)&&w(b.nodeType)}var il=O?hl:gl;function jl(b,c,d){return b.getAttributeNS(c,d)||""}function kl(b,c,d){var e="";b=ll(b,c,d);w(b)&&(e=b.nodeValue);return e}var ml=document.implementation&&document.implementation.createDocument?jl:kl;function nl(b,c,d){return b.getAttributeNodeNS(c,d)}
  function pl(b,c,d){var e=null;b=b.attributes;for(var f,g,h=0,k=b.length;h<k;++h)if(f=b[h],f.namespaceURI==c&&(g=f.prefix?f.prefix+":"+d:d,g==f.nodeName)){e=f;break}return e}var ll=document.implementation&&document.implementation.createDocument?nl:pl;function ql(b,c,d,e){b.setAttributeNS(c,d,e)}function rl(b,c,d,e){null===c?b.setAttribute(d,e):(c=b.ownerDocument.createNode(2,d,c),c.nodeValue=e,b.setAttributeNode(c))}var sl=document.implementation&&document.implementation.createDocument?ql:rl;
  function tl(b){return(new DOMParser).parseFromString(b,"application/xml")}function ul(b,c){return function(d,e){var f=b.call(w(c)?c:this,d,e);w(f)&&e[e.length-1].push(f)}}function vl(b,c){return function(d,e){var f=b.call(w(c)?c:this,d,e);w(f)&&(e[e.length-1]=f)}}function wl(b,c){return function(d,e,f){b.call(w(c)?c:this,d,e,f);f[f.length-1].R.appendChild(d)}}function xl(b,c){return function(d,e,f){d=e[e.length-1].R;e=b;w(e)||(e=f);f=c;w(c)||(f=d.namespaceURI);return Zk(f,e)}}var yl=xl();
  function zl(b,c,d,e){for(c=c.firstElementChild;null!==c;c=c.nextElementSibling){var f=b[c.namespaceURI];w(f)&&(f=f[c.localName],w(f)&&f.call(e,c,d))}}function Al(b,c,d,e,f){e.push(b);zl(c,d,e,f);return e.pop()}function Bl(b,c,d,e,f,g,h){f.push(b);b=(w(g)?g:e).length;for(var k,m,p=0;p<b;++p)k=e[p],w(k)&&(m=d.call(h,k,f,w(g)?g[p]:void 0),w(m)&&c[m.namespaceURI][m.localName].call(h,m,k,f));f.pop()};function Cl(b,c,d){return function(e,f,g){e=new Fk;e.j="text";Q(e,"complete",function(b){b=b.target;if(Rk(b)){var e=c.D(),f;if("json"==e)f=Sk(b);else if("text"==e)f=Sk(b);else if("xml"==e){if(!O)try{f=b.r?b.r.responseXML:null}catch(p){f=null}null!=f||(f=tl(Sk(b)))}null!=f&&(f=c.va(f,{featureProjection:g}),d.call(this,f))}Sb(b)},!1,this);e.send(b)}}function Dl(b,c){return Cl(b,c,function(b){this.Zb(b)})};function El(){return[[-Infinity,-Infinity,Infinity,Infinity]]};var Fl;
  (function(){var b={ec:{}};(function(){function c(b,d){if(!(this instanceof c))return new c(b,d);this.kb=Math.max(4,b||9);this.Xb=Math.max(2,Math.ceil(.4*this.kb));d&&this.ed(d);this.clear()}function d(b,c){b.bbox=e(b,0,b.children.length,c)}function e(b,c,d,e){for(var g=[Infinity,Infinity,-Infinity,-Infinity],h;c<d;c++)h=b.children[c],f(g,b.K?e(h):h.bbox);return g}function f(b,c){b[0]=Math.min(b[0],c[0]);b[1]=Math.min(b[1],c[1]);b[2]=Math.max(b[2],c[2]);b[3]=Math.max(b[3],c[3])}function g(b,c){return b.bbox[0]-
  c.bbox[0]}function h(b,c){return b.bbox[1]-c.bbox[1]}function k(b){return(b[2]-b[0])*(b[3]-b[1])}function m(b){return b[2]-b[0]+(b[3]-b[1])}function p(b,c){return b[0]<=c[0]&&b[1]<=c[1]&&c[2]<=b[2]&&c[3]<=b[3]}function q(b,c){return c[0]<=b[2]&&c[1]<=b[3]&&c[2]>=b[0]&&c[3]>=b[1]}function r(b,c,d,e,f){for(var g=[c,d],h;g.length;)d=g.pop(),c=g.pop(),d-c<=e||(h=c+Math.ceil((d-c)/e/2)*e,t(b,c,d,h,f),g.push(c,h,h,d))}function t(b,c,d,e,f){for(var g,h,k,m,p;d>c;){600<d-c&&(g=d-c+1,h=e-c+1,k=Math.log(g),
  m=.5*Math.exp(2*k/3),p=.5*Math.sqrt(k*m*(g-m)/g)*(0>h-g/2?-1:1),k=Math.max(c,Math.floor(e-h*m/g+p)),h=Math.min(d,Math.floor(e+(g-h)*m/g+p)),t(b,k,h,e,f));g=b[e];h=c;m=d;v(b,c,e);for(0<f(b[d],g)&&v(b,c,d);h<m;){v(b,h,m);h++;for(m--;0>f(b[h],g);)h++;for(;0<f(b[m],g);)m--}0===f(b[c],g)?v(b,c,m):(m++,v(b,m,d));m<=e&&(c=m+1);e<=m&&(d=m-1)}}function v(b,c,d){var e=b[c];b[c]=b[d];b[d]=e}c.prototype={all:function(){return this.Tb(this.data,[])},search:function(b){var c=this.data,d=[],e=this.M;if(!q(b,c.bbox))return d;
  for(var f=[],g,h,k,m;c;){g=0;for(h=c.children.length;g<h;g++)k=c.children[g],m=c.K?e(k):k.bbox,q(b,m)&&(c.K?d.push(k):p(b,m)?this.Tb(k,d):f.push(k));c=f.pop()}return d},load:function(b){if(!b||!b.length)return this;if(b.length<this.Xb){for(var c=0,d=b.length;c<d;c++)this.ma(b[c]);return this}b=this.Vb(b.slice(),0,b.length-1,0);this.data.children.length?this.data.height===b.height?this.Yb(this.data,b):(this.data.height<b.height&&(c=this.data,this.data=b,b=c),this.Wb(b,this.data.height-b.height-1,!0)):
  this.data=b;return this},ma:function(b){b&&this.Wb(b,this.data.height-1);return this},clear:function(){this.data={children:[],height:1,bbox:[Infinity,Infinity,-Infinity,-Infinity],K:!0};return this},remove:function(b){if(!b)return this;for(var c=this.data,d=this.M(b),e=[],f=[],g,h,k,m;c||e.length;){c||(c=e.pop(),h=e[e.length-1],g=f.pop(),m=!0);if(c.K&&(k=c.children.indexOf(b),-1!==k)){c.children.splice(k,1);e.push(c);this.dd(e);break}m||c.K||!p(c.bbox,d)?h?(g++,c=h.children[g],m=!1):c=null:(e.push(c),
  f.push(g),g=0,h=c,c=c.children[0])}return this},M:function(b){return b},ob:function(b,c){return b[0]-c[0]},pb:function(b,c){return b[1]-c[1]},toJSON:function(){return this.data},Tb:function(b,c){for(var d=[];b;)b.K?c.push.apply(c,b.children):d.push.apply(d,b.children),b=d.pop();return c},Vb:function(b,c,e,f){var g=e-c+1,h=this.kb,k;if(g<=h)return k={children:b.slice(c,e+1),height:1,bbox:null,K:!0},d(k,this.M),k;f||(f=Math.ceil(Math.log(g)/Math.log(h)),h=Math.ceil(g/Math.pow(h,f-1)));k={children:[],
  height:f,bbox:null};var g=Math.ceil(g/h),h=g*Math.ceil(Math.sqrt(h)),m,p,q;for(r(b,c,e,h,this.ob);c<=e;c+=h)for(p=Math.min(c+h-1,e),r(b,c,p,g,this.pb),m=c;m<=p;m+=g)q=Math.min(m+g-1,p),k.children.push(this.Vb(b,m,q,f-1));d(k,this.M);return k},cd:function(b,c,d,e){for(var f,g,h,m,p,q,r,t;;){e.push(c);if(c.K||e.length-1===d)break;r=t=Infinity;f=0;for(g=c.children.length;f<g;f++){h=c.children[f];p=k(h.bbox);q=b;var v=h.bbox;q=(Math.max(v[2],q[2])-Math.min(v[0],q[0]))*(Math.max(v[3],q[3])-Math.min(v[1],
  q[1]))-p;q<t?(t=q,r=p<r?p:r,m=h):q===t&&p<r&&(r=p,m=h)}c=m}return c},Wb:function(b,c,d){var e=this.M;d=d?b.bbox:e(b);var e=[],g=this.cd(d,this.data,c,e);g.children.push(b);for(f(g.bbox,d);0<=c;)if(e[c].children.length>this.kb)this.fd(e,c),c--;else break;this.$c(d,e,c)},fd:function(b,c){var e=b[c],f=e.children.length,g=this.Xb;this.ad(e,g,f);f={children:e.children.splice(this.bd(e,g,f)),height:e.height};e.K&&(f.K=!0);d(e,this.M);d(f,this.M);c?b[c-1].children.push(f):this.Yb(e,f)},Yb:function(b,c){this.data=
  {children:[b,c],height:b.height+1};d(this.data,this.M)},bd:function(b,c,d){var f,g,h,m,p,q,r;p=q=Infinity;for(f=c;f<=d-c;f++){g=e(b,0,f,this.M);h=e(b,f,d,this.M);var t=g,v=h;m=Math.max(t[0],v[0]);var W=Math.max(t[1],v[1]),E=Math.min(t[2],v[2]),t=Math.min(t[3],v[3]);m=Math.max(0,E-m)*Math.max(0,t-W);g=k(g)+k(h);m<p?(p=m,r=f,q=g<q?g:q):m===p&&g<q&&(q=g,r=f)}return r},ad:function(b,c,d){var e=b.K?this.ob:g,f=b.K?this.pb:h,k=this.Ub(b,c,d,e);c=this.Ub(b,c,d,f);k<c&&b.children.sort(e)},Ub:function(b,c,
  d,g){b.children.sort(g);g=this.M;var h=e(b,0,c,g),k=e(b,d-c,d,g),p=m(h)+m(k),q,r;for(q=c;q<d-c;q++)r=b.children[q],f(h,b.K?g(r):r.bbox),p+=m(h);for(q=d-c-1;q>=c;q--)r=b.children[q],f(k,b.K?g(r):r.bbox),p+=m(k);return p},$c:function(b,c,d){for(;0<=d;d--)f(c[d].bbox,b)},dd:function(b){for(var c=b.length-1,e;0<=c;c--)0===b[c].children.length?0<c?(e=b[c-1].children,e.splice(e.indexOf(b[c]),1)):this.clear():d(b[c],this.M)},ed:function(b){var c=["return a"," - b",";"];this.ob=new Function("a","b",c.join(b[0]));
  this.pb=new Function("a","b",c.join(b[1]));this.M=new Function("a","return [a"+b.join(", a")+"];")}};"function"===typeof define&&define.qf?define("rbush",function(){return c}):"undefined"!==typeof b?b.ec=c:"undefined"!==typeof self?self.a=c:window.a=c})();Fl=b.ec})();function Gl(b){this.b=Fl(b);this.a={}}l=Gl.prototype;l.ma=function(b,c){var d=[b[0],b[1],b[2],b[3],c];this.b.ma(d);this.a[H(c)]=d};l.load=function(b,c){for(var d=Array(c.length),e=0,f=c.length;e<f;e++){var g=b[e],h=c[e],g=[g[0],g[1],g[2],g[3],h];d[e]=g;this.a[H(h)]=g}this.b.load(d)};l.remove=function(b){b=H(b);var c=this.a[b];gb(this.a,b);return null!==this.b.remove(c)};function Hl(b){b=b.b.all();return Ha(b,function(b){return b[4]})}
  function Il(b,c){var d=b.b.search(c);return Ha(d,function(b){return b[4]})}l.forEach=function(b,c){return Jl(Hl(this),b,c)};function Kl(b,c,d,e){return Jl(Il(b,c),d,e)}function Jl(b,c,d){for(var e,f=0,g=b.length;f<g&&!(e=c.call(d,b[f]));f++);return e}l.U=function(){return db(this.a)};l.clear=function(){this.b.clear();this.a={}};l.t=function(){return this.b.data.bbox};function Ll(b){b=w(b)?b:{};we.call(this,{attributions:b.attributions,logo:b.logo,projection:void 0,state:"ready",wrapX:w(b.wrapX)?b.wrapX:!0});this.h=ba;w(b.loader)?this.h=b.loader:w(b.url)&&(this.h=Dl(b.url,b.format));this.j=w(b.strategy)?b.strategy:El;this.a=new Gl;this.k=new Gl;this.b={};this.d={};this.g={};this.f={};w(b.features)&&Ml(this,b.features)}M(Ll,we);function Nl(b,c,d){b.f[c]=[Q(d,"change",b.oc,!1,b),Q(d,"propertychange",b.oc,!1,b)]}
  function Ol(b,c,d){var e=!0,f=d.b;w(f)?f.toString()in b.d?e=!1:b.d[f.toString()]=d:b.g[c]=d;return e}l=Ll.prototype;l.Zb=function(b){Ml(this,b);this.c()};function Ml(b,c){var d,e,f,g,h=[],k=[],m=[];e=0;for(f=c.length;e<f;e++)g=c[e],d=H(g).toString(),Ol(b,d,g)&&k.push(g);e=0;for(f=k.length;e<f;e++){g=k[e];d=H(g).toString();Nl(b,d,g);var p=g.A();null!=p?(d=p.t(),h.push(d),m.push(g)):b.b[d]=g}b.a.load(h,m);e=0;for(f=k.length;e<f;e++)X(b,new Pl("addfeature",k[e]))}
  l.clear=function(b){if(b){for(var c in this.f)N(this.f[c],T);this.f={};this.d={};this.g={}}else b=this.wc,this.a.forEach(b,this),Xa(this.b,b,this);this.a.clear();this.k.clear();this.b={};X(this,new Pl("clear"));this.c()};l.md=function(b,c){return this.a.forEach(b,c)};function Ql(b,c,d,e){Kl(b.a,c,d,e)}l.ke=function(){var b=Hl(this.a);db(this.b)||Ma(b,$a(this.b));return b};l.t=function(){return this.a.t()};
  l.oc=function(b){b=b.target;var c=H(b).toString(),d=b.A();if(null!=d)if(d=d.t(),c in this.b)delete this.b[c],this.a.ma(d,b);else{var e=this.a,f=H(b);Vc(e.a[f].slice(0,4),d)||(e.remove(b),e.ma(d,b))}else c in this.b||(this.a.remove(b),this.b[c]=b);d=b.b;w(d)?(d=d.toString(),c in this.g?(delete this.g[c],this.d[d]=b):this.d[d]!==b&&(Rl(this,b),this.d[d]=b)):c in this.g||(Rl(this,b),this.g[c]=b);this.c();X(this,new Pl("changefeature",b))};l.U=function(){return this.a.U()&&db(this.b)};
  function Sl(b,c,d,e){var f=b.k;c=b.j(c,d);var g,h;g=0;for(h=c.length;g<h;++g){var k=c[g];Kl(f,k,function(b){return Sc(b.extent,k)})||(b.h.call(b,k,d,e),f.ma(k,{extent:k.slice()}))}}l.le=function(b){var c=H(b).toString();c in this.b?delete this.b[c]:this.a.remove(b);this.wc(b);this.c()};l.wc=function(b){var c=H(b).toString();N(this.f[c],T);delete this.f[c];var d=b.b;w(d)?delete this.d[d.toString()]:delete this.g[c];X(this,new Pl("removefeature",b))};
  function Rl(b,c){for(var d in b.d)if(b.d[d]===c){delete b.d[d];break}}function Pl(b,c){P.call(this,b);this.feature=c}M(Pl,P);function Tl(b){Ej.call(this,b);this.a=null;this.d=Lc()}M(Tl,Ej);Tl.prototype.j=function(){return null===this.a?null:lk(this.a)};Tl.prototype.o=function(){return this.d};
  Tl.prototype.i=function(b,c){var d=b.pixelRatio,e=b.viewState,f=e.center,g=e.resolution,h=e.rotation,k,m=this.b.ha(),p=b.viewHints,q=b.extent;w(c.extent)&&(q=$c(q,c.extent));if(!p[0]&&!p[1]&&!cd(q)){var r=e.projection,e=m.u;null===e||(r=e);p=g;e=d;if(w(m.n)){null!==m.d&&(p=Cb(m.d,p,0),p=m.d[p]);1==e||m.w&&w(m.j)||(e=1);var t=m.a;if(null!==t&&m.k==m.e&&t.resolution==p&&t.e==e&&Sc(t.t(),q))k=t;else{t={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};kb(t,m.b);var q=
  q.slice(),v=(q[0]+q[2])/2,y=(q[1]+q[3])/2;if(1!=m.f){var x=m.f*bd(q)/2,u=m.f*Zc(q)/2;q[0]=v-x;q[1]=y-u;q[2]=v+x;q[3]=y+u}var x=p/e,u=Math.ceil(bd(q)/x),D=Math.ceil(Zc(q)/x);q[0]=v-x*u/2;q[2]=v+x*u/2;q[1]=y-x*D/2;q[3]=y+x*D/2;m.g[0]=u;m.g[1]=D;v=q;y=m.g;x=e;t[m.h?"CRS":"SRS"]=r.a;"STYLES"in m.b||(t.STYLES=new String(""));if(1!=x)switch(m.j){case "geoserver":x=90*x+.5|0;t.FORMAT_OPTIONS=w(t.FORMAT_OPTIONS)?t.FORMAT_OPTIONS+(";dpi:"+x):"dpi:"+x;break;case "mapserver":t.MAP_RESOLUTION=90*x;break;case "carmentaserver":case "qgis":t.DPI=
  90*x}t.WIDTH=y[0];t.HEIGHT=y[1];r=r.c;m.h&&"ne"==r.substr(0,2)?k=[v[1],v[0],v[3],v[2]]:k=v;t.BBOX=k.join(",");k=Ck(Ek([m.n],t));m.a=new Ul(q,p,e,m.i,k,m.p,m.G);m.k=m.e;Q(m.a,"change",m.q,!1,m);k=m.a}}else k=null;if(q=null!==k)q=k,e=q.state,2!=e&&3!=e&&Q(q,"change",this.w,!1,this),0==e&&(q.load(),e=q.state),q=2==e;q&&(this.a=k)}null!==this.a&&(k=this.a,q=k.t(),e=k.resolution,p=k.e,g=d*e/(g*p),Cg(this.d,d*b.size[0]/2,d*b.size[1]/2,g,g,h,p*(q[0]-f[0])/e,p*(f[1]-q[3])/e),Ig(b.attributions,k.f),Jg(b,m));
  return!0};function Vl(b){Ej.call(this,b);this.a=this.g=null;this.h=!1;this.l=null;this.n=Lc();this.q=this.u=this.p=NaN;this.f=this.d=null;this.I=[0,0]}M(Vl,Ej);Vl.prototype.j=function(){return this.g};Vl.prototype.o=function(){return this.n};
  Vl.prototype.i=function(b,c){var d=b.pixelRatio,e=b.viewState,f=e.projection,g=this.b,h=g.ha(),k=Oe(h,f),m=h.p(),p=Ie(k,e.resolution),q=h.f(p,b.pixelRatio,f),r=q[0]/Fc(He(k,p),this.I)[0],t=k.a[p],r=t/r,v=e.center,y;t==e.resolution?(y=b.size,v=[t*(Math.round(v[0]/t)+y[0]%2/2),t*(Math.round(v[1]/t)+y[1]%2/2)],y=Yc(v,t,e.rotation,b.size)):y=b.extent;w(c.extent)&&(y=$c(y,c.extent));if(cd(y))return!1;var x=Ee(k,y,t),u=q[0]*x.H(),D=q[1]*(x.b-x.c+1),z,F;null===this.g?(F=Bf(u,D),this.g=F.canvas,this.a=[u,
  D],this.l=F,this.h=!Hj(this.a)):(z=this.g,F=this.l,this.a[0]<u||this.a[1]<D||this.u!==q[0]||this.q!==q[1]||this.h&&(this.a[0]>u||this.a[1]>D)?(z.width=u,z.height=D,this.a=[u,D],this.h=!Hj(this.a),this.d=null):(u=this.a[0],D=this.a[1],(z=p!=this.p)||(z=this.d,z=!(z.a<=x.a&&x.e<=z.e&&z.c<=x.c&&x.b<=z.b)),z&&(this.d=null)));var G,B;null===this.d?(u/=q[0],D/=q[1],G=x.a-Math.floor((u-x.H())/2),B=x.c-Math.floor((D-(x.b-x.c+1))/2),this.p=p,this.u=q[0],this.q=q[1],this.d=new Ld(G,G+u-1,B,B+D-1),this.f=Array(u*
  D),z=this.d):(z=this.d,u=z.H());var J={};J[p]={};var D=[],A=Fg(h,J),S=g.get("useInterimTilesOnError"),U=Tc(),W=new Ld(0,0,0,0),E,K,L;for(B=x.a;B<=x.e;++B)for(L=x.c;L<=x.b;++L)if(E=Wl(h,p,B,L,d,f),G=E.state,2==G||4==G||3==G&&!S)J[p][Kd(E.a)]=E;else{a:{K=k;for(var ga=E.a,R=A,eb=W,Pb=Ge(K,ga,U),ga=ga[0]-1;ga>=K.minZoom;){if(R.call(null,ga,Ee(K,Pb,K.a[ga],eb))){K=!0;break a}--ga}K=!1}K||(D.push(E),K=k,E=E.a,R=W,E[0]<K.maxZoom?(eb=Ge(K,E,U),E=Ee(K,eb,K.a[E[0]+1],R)):E=null,null===E||A(p+1,E))}A=0;for(K=
  D.length;A<K;++A)E=D[A],B=q[0]*(E.a[1]-z.a),L=q[1]*(z.b-E.a[2]),F.clearRect(B,L,q[0],q[1]);R=Ha(ab(J),Number);R.sort(Sa);var eb=h.X,q=Ge(k,[p,z.a,z.b],U),D=[q[0],q[3]],Qa,Aa,Fa,Oc,A=0;for(K=R.length;A<K;++A)if(B=R[A],q=h.f(B,d,f),Pb=J[B],B==p)for(Aa in Pb)E=Pb[Aa],Qa=(E.a[2]-z.c)*u+(E.a[1]-z.a),this.f[Qa]!=E&&(B=q[0]*(E.a[1]-z.a),L=q[1]*(z.b-E.a[2]),G=E.state,4!=G&&(3!=G||S)&&eb||F.clearRect(B,L,q[0],q[1]),2==G&&F.drawImage(Xl(E),m,m,q[0],q[1],B,L,q[0],q[1]),this.f[Qa]=E);else for(Aa in ga=k.a[B]/
  t,Pb)for(E=Pb[Aa],Qa=Ge(k,E.a,U),B=(Qa[0]-D[0])/r,L=(D[1]-Qa[3])/r,Oc=ga*q[0],Fa=ga*q[1],G=E.state,4!=G&&eb||F.clearRect(B,L,Oc,Fa),2==G&&F.drawImage(Xl(E),m,m,q[0],q[1],B,L,Oc,Fa),E=Ee(k,Qa,k.a[p],W),G=Math.max(E.a,z.a),L=Math.min(E.e,z.e),B=Math.max(E.c,z.c),E=Math.min(E.b,z.b);G<=L;++G)for(Fa=B;Fa<=E;++Fa)Qa=(Fa-z.c)*u+(G-z.a),this.f[Qa]=void 0;m=b.usedTiles;t=H(h).toString();Aa=p.toString();t in m?Aa in m[t]?(m=m[t][Aa],x.a<m.a&&(m.a=x.a),x.e>m.e&&(m.e=x.e),x.c<m.c&&(m.c=x.c),x.b>m.b&&(m.b=x.b)):
  m[t][Aa]=x:(m[t]={},m[t][Aa]=x);g=g.get("preload");x=H(h).toString();x in b.wantedTiles||(b.wantedTiles[x]={});m=b.wantedTiles[x];t=b.tileQueue;Aa=k.minZoom;for(var Uc,J=p;J>=Aa;--J)for(Uc=Ee(k,y,k.a[J],Uc),F=k.a[J],u=Uc.a;u<=Uc.e;++u)for(z=Uc.c;z<=Uc.b;++z)p-J<=g?(q=Wl(h,J,u,z,d,f),0==q.state&&(m[Kd(q.a)]=!0,q.getKey()in t.c||(U=q,W=q.a,B=null===k.b?k.e[W[0]]:k.b,L=k.a[W[0]],E=Fc(He(k,W[0]),k.c),S=t,U=[U,x,[B[0]+(W[1]+.5)*E[0]*L,B[1]+(W[2]+.5)*E[1]*L],F],W=S.f(U),Infinity!=W&&(S.a.push(U),S.b.push(W),
  S.c[S.d(U)]=!0,Qg(S,0,S.a.length-1)))),w(void 0)&&(void 0).call(void 0,q)):h.G(J,u,z);Hg(b,h);Jg(b,h);Cg(this.n,d*b.size[0]/2,d*b.size[1]/2,d*r/e.resolution,d*r/e.resolution,e.rotation,(D[0]-v[0])/r,(v[1]-D[1])/r);return!0};function Yl(b){Ej.call(this,b);this.a=!1;this.n=-1;this.l=NaN;this.f=Tc();this.d=this.h=null;this.g=Bf()}M(Yl,Ej);
  Yl.prototype.k=function(b,c,d){var e=b.extent,f=b.focus,g=b.pixelRatio,h=b.skippedFeatureUids,k=b.viewState,m=k.projection,k=k.rotation,p=m.t(),q=this.b.ha(),r=Gj(this,b,0);Fj(this,"precompose",d,b,r);var t=this.d;if(null!==t&&!t.U()){var v;wc(this.b,"render")?(this.g.canvas.width=d.canvas.width,this.g.canvas.height=d.canvas.height,v=this.g):v=d;var y=v.globalAlpha;v.globalAlpha=c.opacity;c={};f=f[0];if(q.l&&m.e&&!Sc(p,e)){m=p[0];q=p[2];Dj(t,v,g,r,k,m<=f&&f<=q?h:c);for(var x=e[0],u=bd(p),D=0,z;x<
  p[0];)--D,z=u*D,r=Gj(this,b,z),Dj(t,v,g,r,k,m+z<=f&&f<=q+z?h:c),x+=u;D=0;for(x=e[2];x>p[2];)++D,z=u*D,r=Gj(this,b,z),Dj(t,v,g,r,k,m+z<=f&&f<=q+z?h:c),x-=u}else Dj(t,v,g,r,k,h);v!=d&&(Fj(this,"render",v,b,r),d.drawImage(v.canvas,0,0));v.globalAlpha=y}Fj(this,"postcompose",d,b,r)};Yl.prototype.p=function(){Gg(this)};
  Yl.prototype.i=function(b){function c(b){var c;w(b.g)?c=b.g.call(b,p):w(d.b)&&(c=(0,d.b)(b,p));if(null!=c){if(null!=c){var e,f,g=!1;e=0;for(f=c.length;e<f;++e)g=dk(t,b,c[e],ck(p,q),this.p,this)||g;b=g}else b=!1;this.a=this.a||b}}var d=this.b,e=d.ha();Ig(b.attributions,e.i);Jg(b,e);var f=b.viewHints[0],g=b.viewHints[1],h=d.f,k=d.h;if(!this.a&&!h&&f||!k&&g)return!0;var m=b.extent,f=b.viewState,g=f.projection,p=f.resolution,q=b.pixelRatio,h=d.e,r=d.g,k=d.get("renderOrder");w(k)||(k=bk);m=Qc(m,r*p);r=
  f.projection.t();e.l&&f.projection.e&&!Sc(r,b.extent)&&(m[0]=r[0],m[2]=r[2]);if(!this.a&&this.l==p&&this.n==h&&this.h==k&&Sc(this.f,m))return!0;Sb(this.d);this.d=null;this.a=!1;var t=new zj(.5*p/q,m,p);Sl(e,m,p,g);if(null===k)Ql(e,m,c,this);else{var v=[];Ql(e,m,function(b){v.push(b)},this);v.sort(k||Sa);N(v,c,this)}Aj(t);this.l=p;this.n=h;this.h=k;this.f=m;this.d=t;return!0};function Zl(b,c){Mg.call(this,0,c);this.d=Bf();this.a=this.d.canvas;this.a.style.width="100%";this.a.style.height="100%";this.a.className="ol-unselectable";b.insertBefore(this.a,b.childNodes[0]||null);this.c=!0;this.i=Lc()}M(Zl,Mg);
  function $l(b,c,d){var e=b.g,f=b.d;if(wc(e,c)){var g=d.extent,h=d.pixelRatio,k=d.viewState,m=k.projection,p=k.resolution,k=k.rotation,q=0;if(m.e){var r=m.t(),m=bd(r),t=d.focus[0];if(t<r[0]||t>r[2])q=Math.ceil((r[0]-t)/m),q*=m,g=[g[0]+q,g[1],g[2]+q,g[3]]}m=d.pixelRatio;r=d.viewState;t=r.resolution;b=Cg(b.i,b.a.width/2,b.a.height/2,m/t,-m/t,-r.rotation,-r.center[0]-q,-r.center[1]);p=new zj(.5*p/h,g,p);g=new Xi(f,h,g,b,k);X(e,new Uh(c,e,g,p,d,f,null));Aj(p);p.U()||Dj(p,f,h,b,k,{});jj(g)}}
  Zl.prototype.D=function(){return"canvas"};
  Zl.prototype.f=function(b){if(null===b)this.c&&(le(this.a,!1),this.c=!1);else{var c=this.d,d=b.size[0]*b.pixelRatio,e=b.size[1]*b.pixelRatio;this.a.width!=d||this.a.height!=e?(this.a.width=d,this.a.height=e):c.clearRect(0,0,this.a.width,this.a.height);var d=b.viewState,f=b.coordinateToPixelMatrix;Cg(f,b.size[0]/2,b.size[1]/2,1/d.resolution,-1/d.resolution,-d.rotation,-d.center[0],-d.center[1]);var d=b.pixelToCoordinateMatrix,e=f[0],g=f[1],h=f[2],k=f[3],m=f[4],p=f[5],q=f[6],r=f[7],t=f[8],v=f[9],y=
  f[10],x=f[11],u=f[12],D=f[13],z=f[14],f=f[15],F=e*p-g*m,G=e*q-h*m,B=e*r-k*m,J=g*q-h*p,A=g*r-k*p,S=h*r-k*q,U=t*D-v*u,W=t*z-y*u,E=t*f-x*u,K=v*z-y*D,L=v*f-x*D,ga=y*f-x*z,R=F*ga-G*L+B*K+J*E-A*W+S*U;0!=R&&(R=1/R,d[0]=(p*ga-q*L+r*K)*R,d[1]=(-g*ga+h*L-k*K)*R,d[2]=(D*S-z*A+f*J)*R,d[3]=(-v*S+y*A-x*J)*R,d[4]=(-m*ga+q*E-r*W)*R,d[5]=(e*ga-h*E+k*W)*R,d[6]=(-u*S+z*B-f*G)*R,d[7]=(t*S-y*B+x*G)*R,d[8]=(m*L-p*E+r*U)*R,d[9]=(-e*L+g*E-k*U)*R,d[10]=(u*A-D*B+f*F)*R,d[11]=(-t*A+v*B-x*F)*R,d[12]=(-m*K+p*W-q*U)*R,d[13]=(e*
  K-g*W+h*U)*R,d[14]=(-u*J+D*G-z*F)*R,d[15]=(t*J-v*G+y*F)*R);$l(this,"precompose",b);d=b.layerStatesArray;e=b.viewState.resolution;g=0;for(h=d.length;g<h;++g)k=d[g],m=k.layer,p=m,m=H(p).toString(),m in this.b?m=this.b[m]:(p=p instanceof Ui?new Tl(p):p instanceof Vi?new Vl(p):p instanceof Wi?new Yl(p):null,this.b[m]=p,this.e[m]=Q(p,"change",this.h,!1,this),m=p),k.visible&&e>=k.minResolution&&e<k.maxResolution&&"ready"==k.Se&&m.i(b,k)&&m.k(b,k,c);$l(this,"postcompose",b);this.c||(le(this.a,!0),this.c=
  !0);for(var eb in this.b)if(!(eb in b.layerStates)){b.postRenderFunctions.push(na(this.o,this));break}b.postRenderFunctions.push(Ng)}};var am=["canvas","webgl","dom"];
  function bm(b){zc.call(this);var c=cm(b);this.ca=w(b.loadTilesWhileAnimating)?b.loadTilesWhileAnimating:!1;this.da=w(b.loadTilesWhileInteracting)?b.loadTilesWhileInteracting:!1;this.ya=w(b.pixelRatio)?b.pixelRatio:Cf;this.ta=c.logos;this.j=new Ve(this.Ne,void 0,this);Rb(this,this.j);this.X=Lc();this.ib=Lc();this.Y=0;this.b=null;this.G=Tc();this.g=this.k=null;this.a=Zd("DIV","ol-viewport");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";Ff&&(this.a.className="ol-touch");this.hb=Zd("DIV","ol-overlaycontainer");this.a.appendChild(this.hb);this.p=Zd("DIV","ol-overlaycontainer-stopevent");Q(this.p,["click","dblclick","mousedown","touchstart","MSPointerDown",ug,nb?"DOMMouseScroll":"mousewheel"],Tb);this.a.appendChild(this.p);b=new mg(this);Q(b,$a(xg),this.ic,!1,this);Rb(this,b);this.u=c.keyboardEventTarget;this.h=new lf;Q(this.h,"key",this.hc,!1,this);Rb(this,this.h);b=new tf(this.a);Q(b,"mousewheel",
  this.hc,!1,this);Rb(this,b);this.l=c.controls;this.d=c.interactions;this.q=c.overlays;this.I=new c.Oe(this.a,this);Rb(this,this.I);this.T=new ff;Rb(this,this.T);this.n=this.f=null;this.i=[];this.w=[];this.J=new Rg(na(this.td,this),na(this.he,this));this.jb={};Q(this,Cc("layergroup"),this.yd,!1,this);Q(this,Cc("view"),this.Kd,!1,this);Q(this,Cc("size"),this.Hd,!1,this);Q(this,Cc("target"),this.Jd,!1,this);Ac(this,c.values);this.l.forEach(function(b){b.setMap(this)},this);Q(this.l,"add",function(b){b.element.setMap(this)},
  !1,this);Q(this.l,"remove",function(b){b.element.setMap(null)},!1,this);this.d.forEach(function(b){b.setMap(this)},this);Q(this.d,"add",function(b){b.element.setMap(this)},!1,this);Q(this.d,"remove",function(b){b.element.setMap(null)},!1,this);this.q.forEach(function(b){b.setMap(this)},this);Q(this.q,"add",function(b){b.element.setMap(this)},!1,this);Q(this.q,"remove",function(b){b.element.setMap(null)},!1,this)}M(bm,zc);l=bm.prototype;l.gd=function(b){this.d.push(b)};
  l.ea=function(b){this.render();Array.prototype.push.apply(this.i,arguments)};l.v=function(){be(this.a);bm.F.v.call(this)};function dm(b){b=b.get("target");return w(b)?Vd(b):null}l.Ha=function(b){var c=this.b;if(null===c)return null;b=b.slice();return Dg(c.pixelToCoordinateMatrix,b,b)};l.ge=function(){return Ji(this.get("layergroup"))};function kh(b,c){var d=b.b;if(null===d)return null;var e=c.slice(0,2);return Dg(d.coordinateToPixelMatrix,e,e)}l.Xa=function(){return this.get("size")};l.C=function(){return this.get("view")};
  l.td=function(b,c,d,e){var f=this.b;if(!(null!==f&&c in f.wantedTiles&&f.wantedTiles[c][Kd(b.a)]))return Infinity;b=d[0]-f.focus[0];d=d[1]-f.focus[1];return 65536*Math.log(e)+Math.sqrt(b*b+d*d)/e};l.hc=function(b,c){var d=new kg(c||b.type,this,b);this.ic(d)};l.ic=function(b){if(null!==this.b){this.n=b.coordinate;b.frameState=this.b;var c=this.d.a,d;if(!1!==X(this,b))for(d=c.length-1;0<=d;d--){var e=c[d];if(e.get("active")&&!e.handleEvent(b))break}}};
  l.Fd=function(){var b=this.b,c=this.J;if(!c.U()){var d=16,e=d,f=0;null!==b&&(f=b.viewHints,f[0]&&(d=this.ca?8:0,e=2),f[1]&&(d=this.da?8:0,e=2),f=Za(b.wantedTiles));d*=f;e*=f;if(c.e<d){var f=c.f,g=c.a,h=c.b,k=0,m=g.length,p,q,r;for(q=0;q<m;++q)p=g[q],r=f(p),Infinity==r?delete c.c[c.d(p)]:(h[k]=r,g[k++]=p);g.length=k;h.length=k;for(f=(c.a.length>>1)-1;0<=f;f--)Pg(c,f);d=Math.min(d-c.e,e,c.Pa());for(e=0;e<d;++e)f=c,h=f.a,k=f.b,g=h[0],1==h.length?(h.length=0,k.length=0):(h[0]=h.pop(),k[0]=k.pop(),Pg(f,
  0)),h=f.d(g),delete f.c[h],f=g[0],Q(f,"change",c.g,!1,c),f.load();c.e+=d}}c=this.w;d=0;for(e=c.length;d<e;++d)c[d](this,b);c.length=0};l.Hd=function(){this.render()};l.Jd=function(){var b=dm(this);sf(this.h);null===b?(be(this.a),null!==this.f&&(T(this.f),this.f=null)):(b.appendChild(this.a),mf(this.h,null===this.u?b:this.u),null===this.f&&(this.f=Q(this.T,"resize",this.Pb,!1,this)));this.Pb()};l.he=function(){this.render()};l.Ld=function(){this.render()};
  l.Kd=function(){null!==this.k&&(T(this.k),this.k=null);var b=this.C();null!==b&&(this.k=Q(b,"propertychange",this.Ld,!1,this));this.render()};l.zd=function(){this.render()};l.Ad=function(){this.render()};l.yd=function(){if(null!==this.g){for(var b=this.g.length,c=0;c<b;++c)T(this.g[c]);this.g=null}b=this.get("layergroup");null!=b&&(this.g=[Q(b,"propertychange",this.Ad,!1,this),Q(b,"change",this.zd,!1,this)]);this.render()};l.render=function(){null!=this.j.P||this.j.start()};
  l.Me=function(b){var c;w(this.d.remove(b))&&(c=b);return c};
  l.Ne=function(b){var c,d,e,f=this.Xa(),g=this.C(),h=null;if(c=w(f)&&0<f[0]&&0<f[1]&&null!==g)c=null!=yd(g)&&w(zd(g));if(c){var h=g.b.slice(),k=this.get("layergroup").yb(),m={};c=0;for(d=k.length;c<d;++c)m[H(k[c].layer)]=k[c];e=Ad(g);h={animate:!1,attributions:{},coordinateToPixelMatrix:this.X,extent:null,focus:null===this.n?e.center:this.n,index:this.Y++,layerStates:m,layerStatesArray:k,logos:ib(this.ta),pixelRatio:this.ya,pixelToCoordinateMatrix:this.ib,postRenderFunctions:[],size:f,skippedFeatureUids:this.jb,
  tileQueue:this.J,time:b,usedTiles:{},viewState:e,viewHints:h,wantedTiles:{}}}if(null!==h){b=this.i;c=f=0;for(d=b.length;c<d;++c)g=b[c],g(this,h)&&(b[f++]=g);b.length=f;h.extent=Yc(e.center,e.resolution,e.rotation,h.size)}this.b=h;this.I.f(h);null!==h&&(h.animate&&this.render(),Array.prototype.push.apply(this.w,h.postRenderFunctions),0!==this.i.length||h.viewHints[0]||h.viewHints[1]||Vc(h.extent,this.G)||(X(this,new qe("moveend",this,h)),Rc(h.extent,this.G)));X(this,new qe("postrender",this,h));c=
  e=this.Fd;this&&(c=na(e,this));!ha(n.setImmediate)||n.Window&&n.Window.prototype.setImmediate==n.setImmediate?(Ze||(Ze=$e()),Ze(c)):n.setImmediate(c)};l.ie=function(b){this.set("target",b)};
  l.Pb=function(){var b=dm(this);if(null===b)this.set("size",void 0);else{var c=9==b.nodeType?b:b.ownerDocument||b.document,d=O&&b.currentStyle,e;if(e=d)c||qa||(qa=new de),e=!0;if(e&&"auto"!=d.width&&"auto"!=d.height&&!d.boxSizing)c=me(b,d.width,"width","pixelWidth"),b=me(b,d.height,"height","pixelHeight"),b=new Ud(c,b);else{d=new Ud(b.offsetWidth,b.offsetHeight);if(O){c=ne(b,"paddingLeft");e=ne(b,"paddingRight");var f=ne(b,"paddingTop"),g=ne(b,"paddingBottom"),c=new ie(f,e,g,c)}else c=je(b,"paddingLeft"),
  e=je(b,"paddingRight"),f=je(b,"paddingTop"),g=je(b,"paddingBottom"),c=new ie(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(c));!O||O&&9<=xb?(e=je(b,"borderLeftWidth"),f=je(b,"borderRightWidth"),g=je(b,"borderTopWidth"),b=je(b,"borderBottomWidth"),b=new ie(parseFloat(g),parseFloat(f),parseFloat(b),parseFloat(e))):(e=pe(b,"borderLeft"),f=pe(b,"borderRight"),g=pe(b,"borderTop"),b=pe(b,"borderBottom"),b=new ie(g,f,b,e));b=new Ud(d.width-b.left-c.left-c.right-b.right,d.height-b.top-c.top-c.bottom-
  b.bottom)}this.set("size",[b.width,b.height])}};
  function cm(b){var c=null;w(b.keyboardEventTarget)&&(c=C(b.keyboardEventTarget)?document.getElementById(b.keyboardEventTarget):b.keyboardEventTarget);var d={},e={};if(!w(b.logo)||"boolean"==typeof b.logo&&b.logo)e["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"]="http://openlayers.org/";
  else{var f=b.logo;C(f)?e[f]="":ia(f)&&(e[f.src]=f.href)}f=b.layers instanceof Ii?b.layers:new Ii({layers:b.layers});d.layergroup=f;d.target=b.target;d.view=w(b.view)?b.view:new xd;var f=Mg,g;w(b.renderer)?da(b.renderer)?g=b.renderer:C(b.renderer)&&(g=[b.renderer]):g=am;var h,k;h=0;for(k=g.length;h<k;++h)if("canvas"==g[h]&&Ef){f=Zl;break}w(b.controls)?g=da(b.controls)?new Od(b.controls.slice()):b.controls:(g=w(void 0)?void 0:{},h=new Od,(w(g.zoom)?g.zoom:1)&&h.push(new Ue(g.zoomOptions)),(w(g.rotate)?
  g.rotate:1)&&h.push(new Se(g.rotateOptions)),(w(g.attribution)?g.attribution:1)&&h.push(new Qe(g.attributionOptions)),g=h);if(w(b.interactions))h=da(b.interactions)?new Od(b.interactions.slice()):b.interactions;else{h=w(void 0)?void 0:{};k=new Od;var m=new Sg;(w(h.altShiftDragRotate)?h.altShiftDragRotate:1)&&k.push(new lh);(w(h.doubleClickZoom)?h.doubleClickZoom:1)&&k.push(new Yg({delta:h.zoomDelta,duration:h.zoomDuration}));(w(h.dragPan)?h.dragPan:1)&&k.push(new gh({kinetic:m}));(w(h.pinchRotate)?
  h.pinchRotate:1)&&k.push(new Ai);(w(h.pinchZoom)?h.pinchZoom:1)&&k.push(new Ei({duration:h.zoomDuration}));if(w(h.keyboard)?h.keyboard:1)k.push(new ui),k.push(new wi({delta:h.zoomDelta,duration:h.zoomDuration}));(w(h.mouseWheelZoom)?h.mouseWheelZoom:1)&&k.push(new yi({duration:h.zoomDuration}));(w(h.shiftDragZoom)?h.shiftDragZoom:1)&&k.push(new ti);h=k}b=w(b.overlays)?da(b.overlays)?new Od(b.overlays.slice()):b.overlays:new Od;return{controls:g,interactions:h,keyboardEventTarget:c,logos:e,overlays:b,
  Oe:f,values:d}}od(Oi);od(Ti);N(Ti,function(b){N(Oi,function(c){qd(b,c,Pi);qd(c,b,Qi)})});function em(b){zc.call(this);this.b=void 0;this.a="geometry";this.f=null;this.g=void 0;this.d=null;Q(this,Cc(this.a),this.Ra,!1,this);w(b)&&(b instanceof ph||null===b?this.aa(b):Ac(this,b))}M(em,zc);l=em.prototype;l.clone=function(){var b=new em(Dc(this));fm(b,this.a);var c=this.A();null!=c&&b.aa(c.clone());c=this.f;null===c||b.nc(c);return b};l.A=function(){return this.get(this.a)};l.xd=function(){this.c()};
  l.Ra=function(){null!==this.d&&(T(this.d),this.d=null);var b=this.A();null!=b&&(this.d=Q(b,"change",this.xd,!1,this));this.c()};l.aa=function(b){this.set(this.a,b)};l.nc=function(b){this.f=b;null===b?b=void 0:ha(b)||(b=da(b)?b:[b],b=xe(b));this.g=b;this.c()};function fm(b,c){rc(b,Cc(b.a),b.Ra,!1,b);b.a=c;Q(b,Cc(b.a),b.Ra,!1,b);b.Ra()};function gm(b){b=w(b)?b:{};this.e=this.d=this.a=this.b=this.c=null;this.g=void 0;this.g=qi(w(b.style)?b.style:ri);hm(this);w(b.features)?da(b.features)?im(this,new Od(b.features.slice())):im(this,b.features):im(this,new Od);w(b.map)&&this.setMap(b.map)}l=gm.prototype;l.mc=function(){hm(this)};l.vd=function(b){b=b.element;this.a[H(b).toString()]=Q(b,"change",this.mc,!1,this);hm(this)};l.wd=function(b){b=H(b.element).toString();T(this.a[b]);delete this.a[b];hm(this)};l.be=function(){hm(this)};
  l.ce=function(b){if(null!==this.c){var c=this.g;w(c)||(c=ri);var d=b.b;b=b.frameState;var e=b.viewState.resolution,f=ck(e,b.pixelRatio),g,h,k,m;this.c.forEach(function(b){m=b.g;k=w(m)?m.call(b,e):c(b,e);if(null!=k)for(h=k.length,g=0;g<h;++g)dk(d,b,k[g],f,this.be,this)},this)}};function hm(b){null===b.d||b.d.render()}
  function im(b,c){null!==b.b&&(N(b.b,T),b.b=null);null!==b.a&&(N($a(b.a),T),b.a=null);b.c=c;null!==c&&(b.b=[Q(c,"add",b.vd,!1,b),Q(c,"remove",b.wd,!1,b)],b.a={},c.forEach(function(b){this.a[H(b).toString()]=Q(b,"change",this.mc,!1,this)},b));hm(b)}l.setMap=function(b){null!==this.e&&(T(this.e),this.e=null);hm(this);this.d=b;null!==b&&(this.e=Q(b,"postcompose",this.ce,!1,this),b.render())};function jm(){this.defaultDataProjection=null}function km(b,c,d){var e;w(d)&&(e={dataProjection:w(d.dataProjection)?d.dataProjection:b.Mb(c),featureProjection:d.featureProjection});return lm(b,e)}function lm(b,c){var d;w(c)&&(d={featureProjection:c.featureProjection,dataProjection:null!=c.dataProjection?c.dataProjection:b.defaultDataProjection,rightHanded:c.rightHanded});return d}
  function mm(b,c,d){var e=w(d)?ld(d.featureProjection):null;d=w(d)?ld(d.dataProjection):null;return null===e||null===d||e===d||e.a===d.a||(e.b!=d.b?0:kd(e,d)===rd)?b:b instanceof ph?(c?b.clone():b).transform(c?e:d,c?d:e):wd(c?b.slice():b,c?e:d,c?d:e)};function nm(){this.defaultDataProjection=null}M(nm,jm);function om(b){return ia(b)?b:C(b)?(b=nk(b),w(b)?b:null):null}nm.prototype.D=function(){return"json"};nm.prototype.va=function(b,c){var d;var e=om(b);d=km(this,b,c);if("Feature"==e.type)d=[pm(this,e,d)];else if("FeatureCollection"==e.type){var f=[],e=e.features,g,h;g=0;for(h=e.length;g<h;++g)f.push(pm(this,e[g],d));d=f}else d=[];return d};
  nm.prototype.Mb=function(b){b=om(b).crs;return null!=b?"name"==b.type?ld(b.properties.name):"EPSG"==b.type?ld("EPSG:"+b.properties.code):null:this.defaultDataProjection};nm.prototype.eb=function(b,c){var d;d=lm(this,c);var e=[],f,g;f=0;for(g=b.length;f<g;++f)e.push(qm(this,b[f],d));d=[];pk(new ok,{type:"FeatureCollection",features:e},d);return d.join("")};function rm(b){b=w(b)?b:{};this.defaultDataProjection=null;this.defaultDataProjection=ld(null!=b.defaultDataProjection?b.defaultDataProjection:"EPSG:4326");this.a=b.geometryName}M(rm,nm);function sm(b,c){return null===b?null:mm((0,tm[b.type])(b),!1,c)}function um(b,c){return(0,vm[b.D()])(mm(b,!0,c),c)}
  var tm={Point:function(b){return new Dh(b.coordinates)},LineString:function(b){return new Oj(b.coordinates)},Polygon:function(b){return new Mh(b.coordinates)},MultiPoint:function(b){return new Vj(b.coordinates)},MultiLineString:function(b){return new Rj(b.coordinates)},MultiPolygon:function(b){return new Xj(b.coordinates)},GeometryCollection:function(b,c){var d=Ha(b.geometries,function(b){return sm(b,c)});return new Jj(d)}},vm={Point:function(b){return{type:"Point",coordinates:Fh(b)}},LineString:function(b){return{type:"LineString",
  coordinates:b.f()}},Polygon:function(b,c){var d;w(c)&&(d=c.rightHanded);return{type:"Polygon",coordinates:Ph(b,d)}},MultiPoint:function(b){return{type:"MultiPoint",coordinates:yh(b.a,0,b.a.length,b.b)}},MultiLineString:function(b){return{type:"MultiLineString",coordinates:zh(b.a,0,b.f,b.b)}},MultiPolygon:function(b,c){var d;w(c)&&(d=c.rightHanded);var e;w(d)?(e=hj(b).slice(),Lh(e,b.f,b.b,d)):e=b.a;d=e;e=b.f;var f=b.b,g=0,h=w(void 0)?void 0:[],k=0,m,p;m=0;for(p=e.length;m<p;++m){var q=e[m];h[k++]=
  zh(d,g,q,f,h[k]);g=q[q.length-1]}h.length=k;return{type:"MultiPolygon",coordinates:h}},GeometryCollection:function(b,c){return{type:"GeometryCollection",geometries:Ha(b.d,function(b){return um(b,c)})}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};function pm(b,c,d){d=sm(c.geometry,d);var e=new em;w(b.a)&&fm(e,b.a);e.aa(d);w(c.id)&&(e.b=c.id,e.c());w(c.properties)&&Ac(e,c.properties);return e}
  function qm(b,c,d){d=lm(b,d);b={type:"Feature"};var e=c.b;null!=e&&(b.id=e);e=c.A();null!=e&&(b.geometry=um(e,d));d=Dc(c);gb(d,c.a);b.properties=db(d)?null:d;return b};function wm(){this.defaultDataProjection=null}M(wm,jm);l=wm.prototype;l.D=function(){return"xml"};l.va=function(b,c){if(fl(b))return xm(this,b,c);if(il(b))return this.Ib(b,c);if(C(b)){var d=tl(b);return xm(this,d,c)}return[]};function xm(b,c,d){var e=[];for(c=c.firstChild;null!==c;c=c.nextSibling)1==c.nodeType&&Ma(e,b.Ib(c,d));return e}l.Mb=function(b){return fl(b)?this.Nb(b):il(b)?this.bb(b):C(b)?(b=tl(b),this.Nb(b)):null};l.Nb=function(){return this.defaultDataProjection};l.bb=function(){return this.defaultDataProjection};
  l.eb=function(b,c){var d;d=lm(this,c);var e=Zk("http://www.opengis.net/gml","featureMembers");sl(e,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);var f={srsName:this.srsName,curve:this.e,surface:this.h,multiSurface:this.g,multiCurve:this.d,featureNS:this.featureNS,featureType:this.featureType};w(d)&&kb(f,d);d=[f];var g=d[d.length-1],f=g.featureType,h=g.featureNS,k={};k[h]={};k[h][f]=wl(this.$e,this);g=ib(g);g.R=e;Bl(g,k,xl(f,h),b,d);if("undefined"!=typeof XMLSerializer)e=
  (new XMLSerializer).serializeToString(e);else if(e=e.xml,!e)throw Error("Your browser does not support serializing XML documents");return e};function Y(b){b=w(b)?b:{};this.featureType=b.featureType;this.featureNS=b.featureNS;this.srsName=b.srsName;this.schemaLocation="";this.a={};this.a["http://www.opengis.net/gml"]={featureMember:vl(Y.prototype.$a),featureMembers:vl(Y.prototype.$a)};this.defaultDataProjection=null}M(Y,wm);l=Y.prototype;
  l.$a=function(b,c){var d=cl(b),e;if("FeatureCollection"==d)"http://www.opengis.net/wfs"===b.namespaceURI?e=Al([],this.a,b,c,this):e=Al(null,this.a,b,c,this);else if("featureMembers"==d||"featureMember"==d){var f=c[0],g=f.featureType;e=f.featureNS;var h,k;if(!w(g)&&null!=b.childNodes){g=[];e={};h=0;for(k=b.childNodes.length;h<k;++h){var m=b.childNodes[h];if(1===m.nodeType){var p=m.nodeName.split(":").pop();if(-1===Ea(g,p)){var q;bb(e,m.namespaceURI)?q=cb(e,function(b){return b===m.namespaceURI}):(q=
  "p"+Za(e),e[q]=m.namespaceURI);g.push(q+":"+p)}}}f.featureType=g;f.featureNS=e}C(e)&&(h=e,e={},e.p0=h);var f={},g=da(g)?g:[g],r;for(r in e){p={};h=0;for(k=g.length;h<k;++h)(-1===g[h].indexOf(":")?"p0":g[h].split(":")[0])===r&&(p[g[h].split(":").pop()]="featureMembers"==d?ul(this.uc,this):vl(this.uc,this));f[e[r]]=p}e=Al([],f,b,c)}w(e)||(e=[]);return e};function ym(b,c,d){var e=d[0];e.srsName=c.firstElementChild.getAttribute("srsName");b=Al(null,b.Mc,c,d,b);if(null!=b)return mm(b,!1,e)}
  l.uc=function(b,c){var d,e=b.getAttribute("fid")||ml(b,"http://www.opengis.net/gml","id"),f={},g;for(d=b.firstElementChild;null!==d;d=d.nextElementSibling){var h=cl(d);if(0===d.childNodes.length||1===d.childNodes.length&&3===d.firstChild.nodeType){var k=$k(d,!1,[]).join("");/^[\s\xa0]*$/.test(k)&&(k=void 0);f[h]=k}else"boundedBy"!==h&&(g=h),f[h]=ym(this,d,c)}d=new em(f);w(g)&&fm(d,g);e&&(d.b=e,d.c());return d};
  l.Ie=function(b,c){var d=this.ab(b,c);if(null!=d){var e=new Dh(null);th(e,"XYZ",d);e.c();return e}};l.Ee=function(b,c){var d=Al([],this.Qc,b,c,this);if(w(d))return new Vj(d)};l.De=function(b,c){var d=Al([],this.Pc,b,c,this);if(w(d)){var e=new Rj(null);Uj(e,d);return e}};l.Fe=function(b,c){var d=Al([],this.Rc,b,c,this);if(w(d)){var e=new Xj(null);ak(e,d);return e}};l.rc=function(b,c){zl(this.Uc,b,c,this)};l.lc=function(b,c){zl(this.Nc,b,c,this)};l.sc=function(b,c){zl(this.Vc,b,c,this)};
  l.Kb=function(b,c){var d=this.ab(b,c);if(null!=d){var e=new Oj(null);Qj(e,"XYZ",d);return e}};l.ye=function(b,c){var d=Al(null,this.gb,b,c,this);if(null!=d)return d};l.Be=function(b,c){var d=this.ab(b,c);if(w(d)){var e=new Ch(null);th(e,"XYZ",d);e.c();return e}};l.Lb=function(b,c){var d=Al([null],this.Rb,b,c,this);if(w(d)&&null!==d[0]){var e=new Mh(null),f=d[0],g=[f.length],h,k;h=1;for(k=d.length;h<k;++h)Ma(f,d[h]),g.push(f.length);Oh(e,"XYZ",f,g);return e}};
  l.ab=function(b,c){return Al(null,this.gb,b,c,this)};l.Qc=Object({"http://www.opengis.net/gml":{pointMember:ul(Y.prototype.rc),pointMembers:ul(Y.prototype.rc)}});l.Pc=Object({"http://www.opengis.net/gml":{lineStringMember:ul(Y.prototype.lc),lineStringMembers:ul(Y.prototype.lc)}});l.Rc=Object({"http://www.opengis.net/gml":{polygonMember:ul(Y.prototype.sc),polygonMembers:ul(Y.prototype.sc)}});l.Uc=Object({"http://www.opengis.net/gml":{Point:ul(Y.prototype.ab)}});l.Nc=Object({"http://www.opengis.net/gml":{LineString:ul(Y.prototype.Kb)}});
  l.Vc=Object({"http://www.opengis.net/gml":{Polygon:ul(Y.prototype.Lb)}});l.Sb=Object({"http://www.opengis.net/gml":{LinearRing:vl(Y.prototype.ye)}});l.Ib=function(b,c){var d={featureType:this.featureType,featureNS:this.featureNS};w(c)&&kb(d,km(this,b,c));return this.$a(b,[d])};l.bb=function(b){return ld(w(this.f)?this.f:b.firstElementChild.getAttribute("srsName"))};function zm(b){if(b=/^\s*(\d+)\s*$/.exec(b))return parseInt(b[1],10)}function Am(b,c){b.appendChild(Wk.createTextNode(c))};function Z(b){b=w(b)?b:{};Y.call(this,b);this.h=w(b.surface)?b.surface:!1;this.e=w(b.curve)?b.curve:!1;this.d=w(b.multiCurve)?b.multiCurve:!0;this.g=w(b.multiSurface)?b.multiSurface:!0;this.schemaLocation=w(b.schemaLocation)?b.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd"}M(Z,Y);l=Z.prototype;l.Ce=function(b,c){var d=Al([],this.Oc,b,c,this);if(w(d)){var e=new Rj(null);Uj(e,d);return e}};
  l.Ge=function(b,c){var d=Al([],this.Sc,b,c,this);if(w(d)){var e=new Xj(null);ak(e,d);return e}};l.bc=function(b,c){zl(this.Jc,b,c,this)};l.Ac=function(b,c){zl(this.Yc,b,c,this)};l.He=function(b,c){return Al([null],this.Tc,b,c,this)};l.Ke=function(b,c){return Al([null],this.Xc,b,c,this)};l.Je=function(b,c){return Al([null],this.Rb,b,c,this)};l.Ae=function(b,c){return Al([null],this.gb,b,c,this)};l.Md=function(b,c){var d=Al(void 0,this.Sb,b,c,this);w(d)&&c[c.length-1].push(d)};
  l.kd=function(b,c){var d=Al(void 0,this.Sb,b,c,this);w(d)&&(c[c.length-1][0]=d)};l.vc=function(b,c){var d=Al([null],this.Zc,b,c,this);if(w(d)&&null!==d[0]){var e=new Mh(null),f=d[0],g=[f.length],h,k;h=1;for(k=d.length;h<k;++h)Ma(f,d[h]),g.push(f.length);Oh(e,"XYZ",f,g);return e}};l.tc=function(b,c){var d=Al([null],this.Kc,b,c,this);if(w(d)){var e=new Oj(null);Qj(e,"XYZ",d);return e}};l.xe=function(b,c){var d=Al([null],this.Lc,b,c,this);return Pc(d[1][0],d[1][1],d[2][0],d[2][1])};
  l.ze=function(b,c){for(var d=$k(b,!1,[]).join(""),e=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/,f=[],g;g=e.exec(d);)f.push(parseFloat(g[1])),d=d.substr(g[0].length);if(""===d){d=c[0].srsName;e="enu";null===d||(e=jd(ld(d)));if("neu"===e)for(d=0,e=f.length;d<e;d+=3)g=f[d],f[d]=f[d+1],f[d+1]=g;d=f.length;2==d&&f.push(0);return 0===d?void 0:f}};
  l.Jb=function(b,c){var d=$k(b,!1,[]).join("").replace(/^\s*|\s*$/g,""),e=c[0].srsName,f=b.parentNode.getAttribute("srsDimension"),g="enu";null===e||(g=jd(ld(e)));d=d.split(/\s+/);e=2;null===b.getAttribute("srsDimension")?null===b.getAttribute("dimension")?null===f||(e=zm(f)):e=zm(b.getAttribute("dimension")):e=zm(b.getAttribute("srsDimension"));for(var h,k,m=[],p=0,q=d.length;p<q;p+=e)f=parseFloat(d[p]),h=parseFloat(d[p+1]),k=3===e?parseFloat(d[p+2]):0,"en"===g.substr(0,2)?m.push(f,h,k):m.push(h,
  f,k);return m};l.gb=Object({"http://www.opengis.net/gml":{pos:vl(Z.prototype.ze),posList:vl(Z.prototype.Jb)}});l.Rb=Object({"http://www.opengis.net/gml":{interior:Z.prototype.Md,exterior:Z.prototype.kd}});
  l.Mc=Object({"http://www.opengis.net/gml":{Point:vl(Y.prototype.Ie),MultiPoint:vl(Y.prototype.Ee),LineString:vl(Y.prototype.Kb),MultiLineString:vl(Y.prototype.De),LinearRing:vl(Y.prototype.Be),Polygon:vl(Y.prototype.Lb),MultiPolygon:vl(Y.prototype.Fe),Surface:vl(Z.prototype.vc),MultiSurface:vl(Z.prototype.Ge),Curve:vl(Z.prototype.tc),MultiCurve:vl(Z.prototype.Ce),Envelope:vl(Z.prototype.xe)}});l.Oc=Object({"http://www.opengis.net/gml":{curveMember:ul(Z.prototype.bc),curveMembers:ul(Z.prototype.bc)}});
  l.Sc=Object({"http://www.opengis.net/gml":{surfaceMember:ul(Z.prototype.Ac),surfaceMembers:ul(Z.prototype.Ac)}});l.Jc=Object({"http://www.opengis.net/gml":{LineString:ul(Y.prototype.Kb),Curve:ul(Z.prototype.tc)}});l.Yc=Object({"http://www.opengis.net/gml":{Polygon:ul(Y.prototype.Lb),Surface:ul(Z.prototype.vc)}});l.Zc=Object({"http://www.opengis.net/gml":{patches:vl(Z.prototype.He)}});l.Kc=Object({"http://www.opengis.net/gml":{segments:vl(Z.prototype.Ke)}});
  l.Lc=Object({"http://www.opengis.net/gml":{lowerCorner:ul(Z.prototype.Jb),upperCorner:ul(Z.prototype.Jb)}});l.Tc=Object({"http://www.opengis.net/gml":{PolygonPatch:vl(Z.prototype.Je)}});l.Xc=Object({"http://www.opengis.net/gml":{LineStringSegment:vl(Z.prototype.Ae)}});function Bm(b,c,d){d=d[d.length-1].srsName;c=c.f();for(var e=c.length,f=Array(e),g,h=0;h<e;++h){g=c[h];var k=h,m="enu";null!=d&&(m=jd(ld(d)));f[k]="en"===m.substr(0,2)?g[0]+" "+g[1]:g[1]+" "+g[0]}Am(b,f.join(" "))}
  l.Gc=function(b,c,d){var e=d[d.length-1].srsName;null!=e&&b.setAttribute("srsName",e);e=Zk(b.namespaceURI,"pos");b.appendChild(e);d=d[d.length-1].srsName;b="enu";null!=d&&(b=jd(ld(d)));c=Fh(c);Am(e,"en"===b.substr(0,2)?c[0]+" "+c[1]:c[1]+" "+c[0])};var Cm={"http://www.opengis.net/gml":{lowerCorner:wl(Am),upperCorner:wl(Am)}};l=Z.prototype;
  l.Ze=function(b,c,d){var e=d[d.length-1].srsName;w(e)&&b.setAttribute("srsName",e);Bl({R:b},Cm,yl,[c[0]+" "+c[1],c[2]+" "+c[3]],d,["lowerCorner","upperCorner"],this)};l.Dc=function(b,c,d){var e=d[d.length-1].srsName;null!=e&&b.setAttribute("srsName",e);e=Zk(b.namespaceURI,"posList");b.appendChild(e);Bm(e,c,d)};l.Wc=function(b,c){var d=c[c.length-1],e=d.R,f=d.exteriorWritten;w(f)||(d.exteriorWritten=!0);return Zk(e.namespaceURI,w(f)?"interior":"exterior")};
  l.fb=function(b,c,d){var e=d[d.length-1].srsName;"PolygonPatch"!==b.nodeName&&null!=e&&b.setAttribute("srsName",e);"Polygon"===b.nodeName||"PolygonPatch"===b.nodeName?(c=Sh(c),Bl({R:b,srsName:e},Dm,this.Wc,c,d,void 0,this)):"Surface"===b.nodeName&&(e=Zk(b.namespaceURI,"patches"),b.appendChild(e),b=Zk(e.namespaceURI,"PolygonPatch"),e.appendChild(b),this.fb(b,c,d))};
  l.cb=function(b,c,d){var e=d[d.length-1].srsName;"LineStringSegment"!==b.nodeName&&null!=e&&b.setAttribute("srsName",e);"LineString"===b.nodeName||"LineStringSegment"===b.nodeName?(e=Zk(b.namespaceURI,"posList"),b.appendChild(e),Bm(e,c,d)):"Curve"===b.nodeName&&(e=Zk(b.namespaceURI,"segments"),b.appendChild(e),b=Zk(e.namespaceURI,"LineStringSegment"),e.appendChild(b),this.cb(b,c,d))};
  l.Fc=function(b,c,d){var e=d[d.length-1],f=e.srsName,e=e.surface;null!=f&&b.setAttribute("srsName",f);c=Zj(c);Bl({R:b,srsName:f,surface:e},Em,this.c,c,d,void 0,this)};l.bf=function(b,c,d){var e=d[d.length-1].srsName;null!=e&&b.setAttribute("srsName",e);c=Wj(c);Bl({R:b,srsName:e},Fm,xl("pointMember"),c,d,void 0,this)};l.Ec=function(b,c,d){var e=d[d.length-1],f=e.srsName,e=e.curve;null!=f&&b.setAttribute("srsName",f);c=Tj(c);Bl({R:b,srsName:f,curve:e},Gm,this.c,c,d,void 0,this)};
  l.Hc=function(b,c,d){var e=Zk(b.namespaceURI,"LinearRing");b.appendChild(e);this.Dc(e,c,d)};l.Ic=function(b,c,d){var e=this.b(c,d);w(e)&&(b.appendChild(e),this.fb(e,c,d))};l.cf=function(b,c,d){var e=Zk(b.namespaceURI,"Point");b.appendChild(e);this.Gc(e,c,d)};l.Cc=function(b,c,d){var e=this.b(c,d);w(e)&&(b.appendChild(e),this.cb(e,c,d))};
  l.af=function(b,c,d){var e=d[d.length-1],f=ib(e);f.R=b;var g;da(c)?w(e.dataProjection)?g=wd(c,e.featureProjection,e.dataProjection):g=c:g=mm(c,!0,e);Bl(f,Hm,this.b,[g],d,void 0,this)};
  l.$e=function(b,c,d){var e=c.b;w(e)&&b.setAttribute("fid",e);var e=d[d.length-1],f=e.featureNS,g=c.a;w(e.sa)||(e.sa={},e.sa[f]={});var h=Dc(c);c=[];var k=[],m;for(m in h){var p=h[m];null!==p&&(c.push(m),k.push(p),m==g?m in e.sa[f]||(e.sa[f][m]=wl(this.af,this)):m in e.sa[f]||(e.sa[f][m]=wl(Am)))}m=ib(e);m.R=b;Bl(m,e.sa,xl(void 0,f),k,d,c)};
  var Em={"http://www.opengis.net/gml":{surfaceMember:wl(Z.prototype.Ic),polygonMember:wl(Z.prototype.Ic)}},Fm={"http://www.opengis.net/gml":{pointMember:wl(Z.prototype.cf)}},Gm={"http://www.opengis.net/gml":{lineStringMember:wl(Z.prototype.Cc),curveMember:wl(Z.prototype.Cc)}},Dm={"http://www.opengis.net/gml":{exterior:wl(Z.prototype.Hc),interior:wl(Z.prototype.Hc)}},Hm={"http://www.opengis.net/gml":{Curve:wl(Z.prototype.cb),MultiCurve:wl(Z.prototype.Ec),Point:wl(Z.prototype.Gc),MultiPoint:wl(Z.prototype.bf),
  LineString:wl(Z.prototype.cb),MultiLineString:wl(Z.prototype.Ec),LinearRing:wl(Z.prototype.Dc),Polygon:wl(Z.prototype.fb),MultiPolygon:wl(Z.prototype.Fc),Surface:wl(Z.prototype.fb),MultiSurface:wl(Z.prototype.Fc),Envelope:wl(Z.prototype.Ze)}},Im={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};Z.prototype.c=function(b,c){return Zk("http://www.opengis.net/gml",Im[c[c.length-1].R.nodeName])};
  Z.prototype.b=function(b,c){var d=c[c.length-1],e=d.multiSurface,f=d.surface,g=d.curve,d=d.multiCurve,h;da(b)?h="Envelope":(h=b.D(),"MultiPolygon"===h&&!0===e?h="MultiSurface":"Polygon"===h&&!0===f?h="Surface":"LineString"===h&&!0===g?h="Curve":"MultiLineString"===h&&!0===d&&(h="MultiCurve"));return Zk("http://www.opengis.net/gml",h)};function Jm(){this.defaultDataProjection=null}M(Jm,jm);Jm.prototype.D=function(){return"text"};Jm.prototype.va=function(b,c){var d=[],e;e=lm(this,c);var f;f=new Km(new Lm(C(b)?b:""));f.a=Mm(f.b);f=Nm(f);e=w(f)?mm(f,!1,e):null;this.a&&"GeometryCollection"==e.D()?d=e.d:d=[e];f=[];for(var g=0,h=d.length;g<h;++g)e=new em,e.aa(d[g]),f.push(e);return f};Jm.prototype.Mb=function(){return this.defaultDataProjection};
  Jm.prototype.eb=function(b,c){var d;d=lm(this,c);if(1==b.length){var e=b[0].A();d=w(e)?Om(mm(e,!0,d)):""}else{for(var e=[],f=0,g=b.length;f<g;++f)e.push(b[f].A());e=new Jj(e);d=Om(mm(e,!0,d))}return d};function Pm(b){b=w(b)?b:{};this.c=b.featureType;this.b=b.featureNS;this.a=w(b.gmlFormat)?b.gmlFormat:new Z;this.defaultDataProjection=null}M(Pm,wm);Pm.prototype.Ib=function(b,c){var d={featureType:this.c,featureNS:this.b};kb(d,km(this,b,w(c)?c:{}));d=[d];this.a.a["http://www.opengis.net/gml"].featureMember=ul(Y.prototype.$a);d=Al([],this.a.a,b,d,this.a);w(d)||(d=[]);return d};Pm.prototype.Nb=function(b){for(b=b.firstChild;null!==b;b=b.nextSibling)if(1==b.nodeType)return this.bb(b);return null};
  Pm.prototype.bb=function(b){if(null!=b.firstElementChild&&null!=b.firstElementChild.firstElementChild)for(b=b.firstElementChild.firstElementChild,b=b.firstElementChild;null!==b;b=b.nextElementSibling)if(0!==b.childNodes.length&&(1!==b.childNodes.length||3!==b.firstChild.nodeType)){var c=[{}];ym(this.a,b,c);return ld(c.pop().srsName)}return null};function Qm(b){b=w(b)?b:{};this.defaultDataProjection=null;this.a=w(b.splitCollection)?b.splitCollection:!1}M(Qm,Jm);function Rm(b){b=Fh(b);return 0==b.length?"":b[0]+" "+b[1]}function Sm(b){b=b.f();for(var c=[],d=0,e=b.length;d<e;++d)c.push(b[d][0]+" "+b[d][1]);return c.join(",")}function Tm(b){var c=[];b=Sh(b);for(var d=0,e=b.length;d<e;++d)c.push("("+Sm(b[d])+")");return c.join(",")}function Om(b){var c=b.D();b=(0,Um[c])(b);c=c.toUpperCase();return 0===b.length?c+" EMPTY":c+"("+b+")"}
  var Um={Point:Rm,LineString:Sm,Polygon:Tm,MultiPoint:function(b){var c=[];b=Wj(b);for(var d=0,e=b.length;d<e;++d)c.push("("+Rm(b[d])+")");return c.join(",")},MultiLineString:function(b){var c=[];b=Tj(b);for(var d=0,e=b.length;d<e;++d)c.push("("+Sm(b[d])+")");return c.join(",")},MultiPolygon:function(b){var c=[];b=Zj(b);for(var d=0,e=b.length;d<e;++d)c.push("("+Tm(b[d])+")");return c.join(",")},GeometryCollection:function(b){var c=[];b=Lj(b.d);for(var d=0,e=b.length;d<e;++d)c.push(Om(b[d]));return c.join(",")}};
  function Lm(b){this.b=b;this.a=-1}function Vm(b,c){var d=w(c)?c:!1;return"0"<=b&&"9">=b||"."==b&&!d}
  function Mm(b){var c=b.b.charAt(++b.a),d={position:b.a,value:c};if("("==c)d.type=2;else if(","==c)d.type=5;else if(")"==c)d.type=3;else if(Vm(c)||"-"==c){d.type=4;var e,c=b.a,f=!1;do"."==e&&(f=!0),e=b.b.charAt(++b.a);while(Vm(e,f));b=parseFloat(b.b.substring(c,b.a--));d.value=b}else if("a"<=c&&"z">=c||"A"<=c&&"Z">=c){d.type=1;c=b.a;do e=b.b.charAt(++b.a);while("a"<=e&&"z">=e||"A"<=e&&"Z">=e);b=b.b.substring(c,b.a--).toUpperCase();d.value=b}else{if(" "==c||"\t"==c||"\r"==c||"\n"==c)return Mm(b);if(""===
  c)d.type=6;else throw Error("Unexpected character: "+c);}return d}function Km(b){this.b=b}l=Km.prototype;l.match=function(b){if(b=this.a.type==b)this.a=Mm(this.b);return b};
  function Nm(b){var c=b.a;if(b.match(1)){var d=c.value;if("GEOMETRYCOLLECTION"==d){a:{if(b.match(2)){c=[];do c.push(Nm(b));while(b.match(5));if(b.match(3)){b=c;break a}}else if(Wm(b)){b=[];break a}throw Error(Xm(b));}return new Jj(b)}var e=Ym[d],c=Zm[d];if(!w(e)||!w(c))throw Error("Invalid geometry type: "+d);b=e.call(b);return new c(b)}throw Error(Xm(b));}l.Gb=function(){if(this.match(2)){var b=$m(this);if(this.match(3))return b}else if(Wm(this))return null;throw Error(Xm(this));};
  l.Fb=function(){if(this.match(2)){var b=an(this);if(this.match(3))return b}else if(Wm(this))return[];throw Error(Xm(this));};l.Hb=function(){if(this.match(2)){var b=bn(this);if(this.match(3))return b}else if(Wm(this))return[];throw Error(Xm(this));};l.pe=function(){if(this.match(2)){var b;if(2==this.a.type)for(b=[this.Gb()];this.match(5);)b.push(this.Gb());else b=an(this);if(this.match(3))return b}else if(Wm(this))return[];throw Error(Xm(this));};
  l.oe=function(){if(this.match(2)){var b=bn(this);if(this.match(3))return b}else if(Wm(this))return[];throw Error(Xm(this));};l.qe=function(){if(this.match(2)){for(var b=[this.Hb()];this.match(5);)b.push(this.Hb());if(this.match(3))return b}else if(Wm(this))return[];throw Error(Xm(this));};function $m(b){for(var c=[],d=0;2>d;++d){var e=b.a;if(b.match(4))c.push(e.value);else break}if(2==c.length)return c;throw Error(Xm(b));}function an(b){for(var c=[$m(b)];b.match(5);)c.push($m(b));return c}
  function bn(b){for(var c=[b.Fb()];b.match(5);)c.push(b.Fb());return c}function Wm(b){var c=1==b.a.type&&"EMPTY"==b.a.value;c&&(b.a=Mm(b.b));return c}function Xm(b){return"Unexpected `"+b.a.value+"` at position "+b.a.position+" in `"+b.b.b+"`"}var Zm={POINT:Dh,LINESTRING:Oj,POLYGON:Mh,MULTIPOINT:Vj,MULTILINESTRING:Rj,MULTIPOLYGON:Xj},Ym={POINT:Km.prototype.Gb,LINESTRING:Km.prototype.Fb,POLYGON:Km.prototype.Hb,MULTIPOINT:Km.prototype.pe,MULTILINESTRING:Km.prototype.oe,MULTIPOLYGON:Km.prototype.qe};function Ul(b,c,d,e,f,g,h){Bg.call(this,b,c,d,0,e);this.g=f;this.a=new Image;null!==g&&(this.a.crossOrigin=g);this.c={};this.b=null;this.state=0;this.d=h}M(Ul,Bg);function lk(b){if(w(void 0)){var c,d=H(void 0);if(d in b.c)return b.c[d];c=db(b.c)?b.a:b.a.cloneNode(!1);return b.c[d]=c}return b.a}Ul.prototype.h=function(){this.state=3;N(this.b,T);this.b=null;X(this,"change")};
  Ul.prototype.i=function(){w(this.resolution)||(this.resolution=Zc(this.extent)/this.a.height);this.state=2;N(this.b,T);this.b=null;X(this,"change")};Ul.prototype.load=function(){0==this.state&&(this.state=1,X(this,"change"),this.b=[qc(this.a,"error",this.h,!1,this),qc(this.a,"load",this.i,!1,this)],this.d(this,this.g))};function cn(b,c,d,e,f){ve.call(this,b,c);this.d=d;this.b=new Image;null!==e&&(this.b.crossOrigin=e);this.c={};this.e=null;this.g=f}M(cn,ve);l=cn.prototype;l.v=function(){1==this.state&&dn(this);cn.F.v.call(this)};function Xl(b){if(w(void 0)){var c,d=H(void 0);if(d in b.c)return b.c[d];c=db(b.c)?b.b:b.b.cloneNode(!1);return b.c[d]=c}return b.b}l.getKey=function(){return this.d};l.de=function(){this.state=3;dn(this);X(this,"change")};
  l.ee=function(){this.state=this.b.naturalWidth&&this.b.naturalHeight?2:4;dn(this);X(this,"change")};l.load=function(){0==this.state&&(this.state=1,X(this,"change"),this.e=[qc(this.b,"error",this.de,!1,this),qc(this.b,"load",this.ee,!1,this)],this.g(this,this.d))};function dn(b){N(b.e,T);b.e=null};function en(b,c){P.call(this,b);this.feature=c}M(en,P);
  function fn(b){dh.call(this,{handleDownEvent:gn,handleEvent:hn,handleUpEvent:jn});this.q=null;this.l=!1;this.X=w(b.source)?b.source:null;this.J=w(b.features)?b.features:null;this.jb=w(b.snapTolerance)?b.snapTolerance:12;this.hb=w(b.minPointsPerRing)?b.minPointsPerRing:3;var c=this.p=b.type,d;"Point"===c||"MultiPoint"===c?d=kn:"LineString"===c||"MultiLineString"===c?d=ln:"Polygon"===c||"MultiPolygon"===c?d=mn:"Circle"===c&&(d=nn);this.a=d;this.d=this.h=this.i=this.g=this.f=null;this.G=new gm({style:w(b.style)?
  b.style:on()});this.T=b.geometryName;this.ib=w(b.condition)?b.condition:ah;this.I=w(b.freehandCondition)?b.freehandCondition:bh;Q(this,Cc("active"),this.Y,!1,this)}M(fn,dh);function on(){var b=si();return function(c){return b[c.A().D()]}}fn.prototype.setMap=function(b){fn.F.setMap.call(this,b);this.Y()};function hn(b){var c=!this.l;this.l&&b.type===wg?(pn(this,b),c=!1):b.type===vg?c=qn(this,b):b.type===pg&&(c=!1);return eh.call(this,b)&&c}
  function gn(b){if(this.ib(b))return this.q=b.pixel,!0;if(this.a!==ln&&this.a!==mn||!this.I(b))return!1;this.q=b.pixel;this.l=!0;null===this.f&&rn(this,b);return!0}
  function jn(b){this.l=!1;var c=this.q,d=b.pixel,e=c[0]-d[0],c=c[1]-d[1],d=!0;if(4>=e*e+c*c){qn(this,b);if(null===this.f)rn(this,b);else if((this.a===kn||this.a===nn)&&null!==this.f||sn(this,b)){b=tn(this);var f,e=b.A();this.a===kn?f=Fh(e):this.a===ln?(f=e.f(),f.pop(),Pj(e,f)):this.a===mn&&(this.d[0].pop(),this.d[0].push(this.d[0][0]),Nh(e,this.d),f=Ph(e));"MultiPoint"===this.p?b.aa(new Vj([f])):"MultiLineString"===this.p?b.aa(new Rj([f])):"MultiPolygon"===this.p&&b.aa(new Xj([f]));X(this,new en("drawend",
  b));null===this.J||this.J.push(b);null!==this.X&&(f=this.X,e=H(b).toString(),Ol(f,e,b)&&(Nl(f,e,b),c=b.A(),null!=c?(e=c.t(),f.a.ma(e,b)):f.b[e]=b,X(f,new Pl("addfeature",b))),f.c())}else pn(this,b);d=!1}return d}
  function qn(b,c){if(b.a===kn&&null===b.f)rn(b,c);else if(null===b.f){var d=c.coordinate.slice();null===b.i?(b.i=new em(new Dh(d)),un(b)):Eh(b.i.A(),d)}else{var e=c.coordinate,d=b.g.A(),f,g;if(b.a===kn)g=Fh(d),g[0]=e[0],g[1]=e[1],Eh(d,g);else if(b.a===ln?f=d.f():b.a===mn?f=b.d[0]:b.a===nn&&(f=dj(d)),sn(b,c)&&(e=b.f.slice()),Eh(b.i.A(),e),g=f[f.length-1],g[0]=e[0],g[1]=e[1],b.a===ln)Pj(d,f);else if(b.a===mn)g=b.h.A(),Pj(g,f),Nh(d,b.d);else if(b.a===nn){g=b.h.A();Pj(g,[dj(d),e]);e=g.a;f=g.b;var h=e[0],
  k=e[1],m=0,p;for(p=0+f;p<g.a.length;p+=f)var q=e[p],r=e[p+1],m=m+Math.sqrt((q-h)*(q-h)+(r-k)*(r-k)),h=q,k=r;d.a[d.b]=d.a[0]+m;d.c()}un(b)}return!0}function sn(b,c){var d=!1;if(null!==b.g){var e=b.g.A(),f=!1,g=[b.f];b.a===ln?f=2<e.f().length:b.a===mn&&(f=Ph(e)[0].length>b.hb,g=[b.d[0][0],b.d[0][b.d[0].length-2]]);if(f)for(var e=c.map,f=0,h=g.length;f<h;f++){var k=g[f],m=kh(e,k),p=c.pixel,d=p[0]-m[0],m=p[1]-m[1],p=b.l&&b.I(c)?1:b.jb;if(d=Math.sqrt(d*d+m*m)<=p){b.f=k;break}}}return d}
  function rn(b,c){var d=c.coordinate;b.f=d;var e;b.a===kn?e=new Dh(d.slice()):b.a===ln?e=new Oj([d.slice(),d.slice()]):b.a===mn?(b.h=new em(new Oj([d.slice(),d.slice()])),b.d=[[d.slice(),d.slice()]],e=new Mh(b.d)):b.a===nn&&(e=new Ij(d.slice(),0),b.h=new em(new Oj([d.slice(),d.slice()])));b.g=new em;w(b.T)&&fm(b.g,b.T);b.g.aa(e);un(b);X(b,new en("drawstart",b.g))}
  function pn(b,c){var d=c.coordinate,e=b.g.A(),f;b.a===ln?(b.f=d.slice(),f=e.f(),f.push(d.slice()),Pj(e,f)):b.a===mn&&(b.d[0].push(d.slice()),Nh(e,b.d));un(b)}function tn(b){b.f=null;var c=b.g;null!==c&&(b.g=null,b.i=null,b.h=null,b.G.c.clear());return c}fn.prototype.j=ye;function un(b){var c=[];null===b.g||c.push(b.g);null===b.h||c.push(b.h);null===b.i||c.push(b.i);im(b.G,new Od(c))}fn.prototype.Y=function(){var b=this.u,c=this.get("active");null!==b&&c||tn(this);this.G.setMap(c?b:null)};
  var kn="Point",ln="LineString",mn="Polygon",nn="Circle";function vn(){};function wn(b){Me.call(this,{attributions:b.attributions,extent:b.extent,logo:b.logo,opaque:b.opaque,projection:b.projection,state:w(b.state)?b.state:void 0,tileGrid:b.tileGrid,tilePixelRatio:b.tilePixelRatio,wrapX:b.wrapX});this.tileUrlFunction=w(b.tileUrlFunction)?b.tileUrlFunction:vn;this.crossOrigin=w(b.crossOrigin)?b.crossOrigin:null;this.tileLoadFunction=w(b.tileLoadFunction)?b.tileLoadFunction:xn;this.tileClass=w(b.tileClass)?b.tileClass:cn}M(wn,Me);function xn(b,c){Xl(b).src=c}
  function Wl(b,c,d,e,f,g){var h=b.d(c,d,e);if(b.a.c.hasOwnProperty(h))return b.a.get(h);c=[c,d,e];d=w(g)?g:b.u;e=Oe(b,d);var k=b.l,m;if(m=w(k)){m=c[0];var p=e.H(m);if(w(p)){var q=Le(d),r=d.t();m=Fc(He(e,m),e.c)[0]*p==He(q,m)*Ee(q,r,q.a[m],void 0).H()}else m=d.g}m?k?(k=c[0],m=c[1],d=Je(e,k,d),m<d.a||m>d.e?(m=zb(m,d.H()),d=[k,m,c[2]]):d=c):(k=c[1],d=Je(e,c[0],d),d=k<d.a||k>d.e?null:c):d=c;f=null===d?void 0:b.tileUrlFunction(d,f,g);f=new b.tileClass(c,w(f)?0:4,w(f)?f:"",b.crossOrigin,b.tileLoadFunction);
  Q(f,"change",b.J,!1,b);b.a.set(h,f);return f}wn.prototype.J=function(b){b=b.target;switch(b.state){case 1:X(this,new Pe("tileloadstart",b));break;case 2:X(this,new Pe("tileloadend",b));break;case 3:X(this,new Pe("tileloaderror",b))}};wn.prototype.G=function(b,c,d){b=this.d(b,c,d);this.a.c.hasOwnProperty(b)&&this.a.get(b)};function yn(b){b=w(b)?b:{};fk.call(this,{attributions:b.attributions,logo:b.logo,projection:b.projection,resolutions:b.resolutions});this.p=w(b.crossOrigin)?b.crossOrigin:null;this.n=b.url;this.G=w(b.imageLoadFunction)?b.imageLoadFunction:kk;this.b=b.params;this.h=!0;zn(this);this.j=b.serverType;this.w=w(b.hidpi)?b.hidpi:!0;this.a=null;this.g=[0,0];this.k=0;this.f=w(b.ratio)?b.ratio:1.5}M(yn,fk);yn.prototype.J=function(b){kb(this.b,b);zn(this);this.a=null;this.c()};
  function zn(b){b.h=0<=Ba(hb(b.b,"VERSION","1.3.0"),"1.3")};function An(b){b=w(b)?b:{};var c=w(b.params)?b.params:{};wn.call(this,{attributions:b.attributions,crossOrigin:b.crossOrigin,logo:b.logo,opaque:!hb(c,"TRANSPARENT",!0),projection:b.projection,tileGrid:b.tileGrid,tileLoadFunction:b.tileLoadFunction,tileUrlFunction:na(this.ca,this),wrapX:b.wrapX});var d=b.urls;if(!w(d)&&w(b.url)){var d=b.url,e=[],f=/\{(\d)-(\d)\}/.exec(d)||/\{([a-z])-([a-z])\}/.exec(d);if(f){var g=f[2].charCodeAt(0),h;for(h=f[1].charCodeAt(0);h<=g;++h)e.push(d.replace(f[0],String.fromCharCode(h)))}else e.push(d);
  d=e}this.j=null!=d?d:[];this.q=w(b.gutter)?b.gutter:0;this.g=c;this.k=!0;this.h=b.serverType;this.w=w(b.hidpi)?b.hidpi:!0;this.n="";b=0;c=[];d=0;for(e=this.j.length;d<e;++d)c[b++]=this.j[d];for(var k in this.g)c[b++]=k+"-"+this.g[k];this.n=c.join("#");this.da=Tc();this.k=0<=Ba(hb(this.g,"VERSION","1.3.0"),"1.3")}M(An,wn);An.prototype.p=function(){return this.q};An.prototype.d=function(b,c,d){return this.n+An.F.d.call(this,b,c,d)};
  An.prototype.f=function(b,c,d){b=An.F.f.call(this,b,c,d);return 1!=c&&this.w&&w(this.h)?Ec(b,c,this.b):b};
  An.prototype.ca=function(b,c,d){var e=this.tileGrid;null===e&&(e=Oe(this,d));if(!(e.a.length<=b[0])){1==c||this.w&&w(this.h)||(c=1);var f=e.a[b[0]],g=Ge(e,b,this.da),h=Fc(He(e,b[0]),this.b),e=this.q;if(0!==e){var k=this.b;w(k)||(k=[0,0]);k[0]=h[0]+2*e;k[1]=h[1]+2*e;h=k;g=Qc(g,f*e,g)}1!=c&&(h=Ec(h,c,this.b));f={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};kb(f,this.g);e=h;h=c;c=this.j;if(0==c.length)b=void 0;else{f.WIDTH=e[0];f.HEIGHT=e[1];f[this.k?"CRS":"SRS"]=
  d.a;"STYLES"in this.g||(f.STYLES=new String(""));if(1!=h)switch(this.h){case "geoserver":e=90*h+.5|0;f.FORMAT_OPTIONS=w(f.FORMAT_OPTIONS)?f.FORMAT_OPTIONS+(";dpi:"+e):"dpi:"+e;break;case "mapserver":f.MAP_RESOLUTION=90*h;break;case "carmentaserver":case "qgis":f.DPI=90*h}d=d.c;this.k&&"ne"==d.substr(0,2)&&(d=g[0],g[0]=g[1],g[1]=d,d=g[2],g[2]=g[3],g[3]=d);f.BBOX=g.join(",");b=Ck(Ek([1==c.length?c[0]:c[zb((b[1]<<b[0])+b[2],c.length)]],f))}return b}};I("ol.proj.Projection",id);I("ol.proj.addProjection",sd);I("ol.proj.getTransform",ud);I("ol.proj.transformExtent",wd);I("ol.extent.applyTransform",dd);I("ol.View",xd);xd.prototype.fitExtent=xd.prototype.ld;xd.prototype.setCenter=xd.prototype.ga;xd.prototype.setZoom=xd.prototype.Re;I("ol.Map",bm);bm.prototype.getLayers=bm.prototype.ge;bm.prototype.getView=bm.prototype.C;bm.prototype.setTarget=bm.prototype.ie;Od.prototype.insertAt=Od.prototype.kc;Od.prototype.getLength=Od.prototype.Eb;
  bm.prototype.getSize=bm.prototype.Xa;bm.prototype.updateSize=bm.prototype.Pb;bm.prototype.addInteraction=bm.prototype.gd;bm.prototype.removeInteraction=bm.prototype.Me;bm.prototype.set=bm.prototype.set;I("ol.events.condition.shiftKeyOnly",bh);I("ol.source.Vector",Ll);Ll.prototype.getExtent=Ll.prototype.t;Ll.prototype.addFeatures=Ll.prototype.Zb;Ll.prototype.on=Ll.prototype.S;Ll.prototype.getFeatures=Ll.prototype.ke;Ll.prototype.forEachFeature=Ll.prototype.md;Ll.prototype.removeFeature=Ll.prototype.le;
  I("ol.layer.Vector",Wi);Wi.prototype.changed=Wi.prototype.c;I("ol.layer.Tile",Vi);I("ol.source.TileWMS",An);I("ol.layer.Image",Ui);Ui.prototype.getSource=Ui.prototype.ha;I("ol.source.ImageWMS",yn);yn.prototype.updateParams=yn.prototype.J;I("ol.interaction.Draw",fn);fn.prototype.setActive=fn.prototype.w;fn.prototype.on=fn.prototype.S;I("ol.interaction.DragBox",$h);$h.prototype.setActive=$h.prototype.w;$h.prototype.on=$h.prototype.S;$h.prototype.getGeometry=$h.prototype.A;Mh.prototype.getExtent=Mh.prototype.t;
  I("ol.format.GML",Z);Z.prototype.readFeatures=Z.prototype.va;I("ol.format.WKT",Qm);I("ol.format.GeoJSON",rm);rm.prototype.writeFeatures=rm.prototype.eb;Qm.prototype.writeFeatures=Qm.prototype.eb;Qm.prototype.readFeatures=Qm.prototype.va;I("ol.format.WFS",Pm);Pm.prototype.readFeatures=Pm.prototype.va;I("ol.style.Style",ni);I("ol.style.Fill",li);I("ol.style.Stroke",hi);I("ol.style.Circle",mi);I("ol.Feature",em);I("ol.geom.Polygon",Mh);em.prototype.setGeometry=em.prototype.aa;
  em.prototype.getGeometry=em.prototype.A;em.prototype.set=em.prototype.set;em.prototype.get=em.prototype.get;em.prototype.setStyle=em.prototype.nc;})();
  