Files
openlayers/wmts-hidpi/build/ol.js
T
2014-05-06 13:02:46 -05:00

692 lines
349 KiB
JavaScript

// OpenLayers 3. see http://ol3js.org/
(function(){function aa(){return function(a){return a}}function ba(){return function(){}}function k(a){return function(){return this[a]}}function ca(a){return function(){return a}}var l,da=da||{},ea=this;function fa(){}function ga(a){a.jb=function(){return a.me?a.me:a.me=new a}}
function ha(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function s(a){return void 0!==a}function ia(a){return null===a}function ja(a){return"array"==ha(a)}function ka(a){var b=ha(a);return"array"==b||"object"==b&&"number"==typeof a.length}function na(a){return"string"==typeof a}function oa(a){return"number"==typeof a}function pa(a){return"function"==ha(a)}function ra(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function sa(a){return a[ta]||(a[ta]=++ua)}
var ta="closure_uid_"+(1E9*Math.random()>>>0),ua=0;function va(a,b,c){return a.call.apply(a.bind,arguments)}function wa(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}
function xa(a,b,c){xa=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?va:wa;return xa.apply(null,arguments)}function ya(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var za=Date.now||function(){return+new Date};
function t(a,b){var c=a.split("."),d=ea;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b}function v(a,b){function c(){}c.prototype=b.prototype;a.H=b.prototype;a.prototype=new c};function Aa(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")}function Ba(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function Ca(a){if(!Da.test(a))return a;-1!=a.indexOf("\x26")&&(a=a.replace(Fa,"\x26amp;"));-1!=a.indexOf("\x3c")&&(a=a.replace(Ga,"\x26lt;"));-1!=a.indexOf("\x3e")&&(a=a.replace(Ha,"\x26gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ia,"\x26quot;"));return a}
var Fa=/&/g,Ga=/</g,Ha=/>/g,Ia=/\"/g,Da=/[&<>\"]/;function Ja(a){a=s(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);b=Math.max(0,2-b);return Array(b+1).join("0")+a}
function Ka(a,b){for(var c=0,d=Ba(String(a)).split("."),e=Ba(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var h=d[g]||"",m=e[g]||"",n=RegExp("(\\d*)(\\D*)","g"),p=RegExp("(\\d*)(\\D*)","g");do{var q=n.exec(h)||["","",""],r=p.exec(m)||["","",""];if(0==q[0].length&&0==r[0].length)break;c=((0==q[1].length?0:parseInt(q[1],10))<(0==r[1].length?0:parseInt(r[1],10))?-1:(0==q[1].length?0:parseInt(q[1],10))>(0==r[1].length?0:parseInt(r[1],10))?1:0)||((0==q[2].length)<(0==r[2].length)?
-1:(0==q[2].length)>(0==r[2].length)?1:0)||(q[2]<r[2]?-1:q[2]>r[2]?1:0)}while(0==c)}return c};var La,Ma,Oa,Pa,Qa,Ra,Sa;function Ta(){return ea.navigator?ea.navigator.userAgent:null}function Wa(){return ea.navigator}Pa=Oa=Ma=La=!1;var Xa;if(Xa=Ta()){var Ya=Wa();La=0==Xa.lastIndexOf("Opera",0);Ma=!La&&(-1!=Xa.indexOf("MSIE")||-1!=Xa.indexOf("Trident"));Oa=!La&&-1!=Xa.indexOf("WebKit");Pa=!La&&!Oa&&!Ma&&"Gecko"==Ya.product}var Za=La,$a=Ma,bb=Pa,cb=Oa,db,eb=Wa();db=eb&&eb.platform||"";Qa=-1!=db.indexOf("Mac");Ra=-1!=db.indexOf("Win");Sa=-1!=db.indexOf("Linux");
var fb=!!Wa()&&-1!=(Wa().appVersion||"").indexOf("X11");function gb(){var a=ea.document;return a?a.documentMode:void 0}var hb;a:{var ib="",jb;if(Za&&ea.opera)var kb=ea.opera.version,ib="function"==typeof kb?kb():kb;else if(bb?jb=/rv\:([^\);]+)(\)|;)/:$a?jb=/\b(?:MSIE|rv)\s+([^\);]+)(\)|;)/:cb&&(jb=/WebKit\/(\S+)/),jb)var lb=jb.exec(Ta()),ib=lb?lb[1]:"";if($a){var mb=gb();if(mb>parseFloat(ib)){hb=String(mb);break a}}hb=ib}var nb={};function ob(a){return nb[a]||(nb[a]=0<=Ka(hb,a))}
var pb=ea.document,qb=pb&&$a?gb()||("CSS1Compat"==pb.compatMode?parseInt(hb,10):5):void 0;var rb="https:"===ea.location.protocol,sb=$a&&!ob("9.0")&&""!==hb;function tb(a){Error.captureStackTrace?Error.captureStackTrace(this,tb):this.stack=Error().stack||"";a&&(this.message=String(a))}v(tb,Error);tb.prototype.name="CustomError";var ub=Array.prototype,vb=ub.indexOf?function(a,b,c){return ub.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(na(a))return na(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},wb=ub.forEach?function(a,b,c){ub.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=na(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},xb=ub.map?function(a,b,c){return ub.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),
f=na(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},yb=ub.some?function(a,b,c){return ub.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=na(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1};function zb(a,b){var c=Ab(a,b,void 0);return 0>c?null:na(a)?a.charAt(c):a[c]}function Ab(a,b,c){for(var d=a.length,e=na(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1}
function Bb(a,b){var c=vb(a,b),d;(d=0<=c)&&ub.splice.call(a,c,1);return d}function Cb(a){return ub.concat.apply(ub,arguments)}function Db(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Eb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(ja(d)||(e=ka(d))&&Object.prototype.hasOwnProperty.call(d,"callee"))a.push.apply(a,d);else if(e)for(var f=a.length,g=d.length,h=0;h<g;h++)a[f+h]=d[h];else a.push(d)}}
function Fb(a,b,c,d){ub.splice.apply(a,Gb(arguments,1))}function Gb(a,b,c){return 2>=arguments.length?ub.slice.call(a,b):ub.slice.call(a,b,c)}function Hb(a,b){ub.sort.call(a,b||Ib)}function Jb(a,b){if(!ka(a)||!ka(b)||a.length!=b.length)return!1;for(var c=a.length,d=Kb,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0}function Ib(a,b){return a>b?1:a<b?-1:0}function Kb(a,b){return a===b};function Lb(a,b,c){this.a=a;this.x=b;this.y=c}function Mb(a,b,c,d){return s(d)?(d.a=a,d.x=b,d.y=c,d):new Lb(a,b,c)}function Nb(a,b,c){return a+"/"+b+"/"+c}Lb.prototype.c=function(a){return s(a)?(a[0]=this.a,a[1]=this.x,a[2]=this.y,a):[this.a,this.x,this.y]};function Ob(a){var b=Array(a.a),c=1<<a.a-1,d,e;for(d=0;d<a.a;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}Lb.prototype.toString=function(){return Nb(this.a,this.x,this.y)};function Pb(a,b,c,d){this.a=a;this.d=b;this.b=c;this.c=d}function Qb(a,b,c,d,e){return s(e)?(e.a=a,e.d=b,e.b=c,e.c=d,e):new Pb(a,b,c,d)}Pb.prototype.contains=function(a){return this.a<=a.x&&a.x<=this.d&&this.b<=a.y&&a.y<=this.c};function Rb(a){this.c=a.html;this.a=s(a.tileRanges)?a.tileRanges:null};var Sb,Tb=!$a||$a&&9<=qb;!bb&&!$a||$a&&$a&&9<=qb||bb&&ob("1.9.1");$a&&ob("9");function Ub(a){a=a.className;return na(a)&&a.match(/\S+/g)||[]}function Vb(a,b){for(var c=Ub(a),d=Gb(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=vb(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e}function Wb(a,b,c){for(var d=Ub(a),e=!1,f=0;f<d.length;f++)d[f]==b&&(Fb(d,f--,1),e=!0);e&&(d.push(c),a.className=d.join(" "))};function Xb(a,b,c){return Math.min(Math.max(a,b),c)}function Yb(a,b){var c=a%b;return 0>c*b?c+b:c}function Zb(a){return a*Math.PI/180};function $b(a,b){this.x=s(a)?a:0;this.y=s(b)?b:0}l=$b.prototype;l.L=function(){return new $b(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(a,b){var c=oa(b)?b:a;this.x*=a;this.y*=c;return this};function ac(a,b){this.width=a;this.height=b}l=ac.prototype;l.L=function(){return new ac(this.width,this.height)};l.ja=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(a,b){var c=oa(b)?b:a;this.width*=a;this.height*=c;return this};function bc(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function dc(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function ec(a){var b=0,c;for(c in a)b++;return b}function fc(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function gc(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function hc(a){for(var b in a)return!1;return!0}function ic(a){for(var b in a)delete a[b]}function jc(a,b){b in a&&delete a[b]}function w(a,b,c){return b in a?a[b]:c}
function kc(a,b){var c=[];return b in a?a[b]:a[b]=c}function lc(a){var b={},c;for(c in a)b[c]=a[c];return b}var mc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function nc(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<mc.length;f++)c=mc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function oc(a){return a?new pc(qc(a)):Sb||(Sb=new pc)}function rc(a){return na(a)?document.getElementById(a):a}function sc(a,b){bc(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in tc?a.setAttribute(tc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}
var tc={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 uc(a){a=a.document.documentElement;return new ac(a.clientWidth,a.clientHeight)}
function vc(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Tb&&g&&(g.name||g.type)){f=["\x3c",f];g.name&&f.push(' name\x3d"',Ca(g.name),'"');if(g.type){f.push(' type\x3d"',Ca(g.type),'"');var h={};nc(h,g);delete h.type;g=h}f.push("\x3e");f=f.join("")}f=e.createElement(f);g&&(na(g)?f.className=g:ja(g)?Vb.apply(null,[f].concat(g)):sc(f,g));2<d.length&&wc(e,f,d,2);return f}
function wc(a,b,c,d){function e(c){c&&b.appendChild(na(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];!ka(f)||ra(f)&&0<f.nodeType?e(f):wb(xc(f)?Db(f):f,e)}}function yc(a){return document.createElement(a)}function zc(a,b){wc(qc(a),a,arguments,1)}function Ac(a){for(var b;b=a.firstChild;)a.removeChild(b)}function Bc(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)}function Dc(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}
function Ec(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Fc(a){if(void 0!=a.firstElementChild)a=a.firstElementChild;else for(a=a.firstChild;a&&1!=a.nodeType;)a=a.nextSibling;return a}function Gc(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function qc(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function xc(a){if(a&&"number"==typeof a.length){if(ra(a))return"function"==typeof a.item||"string"==typeof a.item;if(pa(a))return"function"==typeof a.item}return!1}function pc(a){this.a=a||ea.document||document}function Hc(a){var b=a.a;a=cb?b.body:b.documentElement;b=b.parentWindow||b.defaultView;return $a&&ob("10")&&b.pageYOffset!=a.scrollTop?new $b(a.scrollLeft,a.scrollTop):new $b(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}pc.prototype.appendChild=function(a,b){a.appendChild(b)};
pc.prototype.contains=Gc;function Ic(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}l=Ic.prototype;l.L=function(){return new Ic(this.top,this.right,this.bottom,this.left)};l.contains=function(a){return this&&a?a instanceof Ic?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.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(a,b){var c=oa(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function Jc(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}l=Jc.prototype;l.L=function(){return new Jc(this.left,this.top,this.width,this.height)};l.contains=function(a){return a instanceof Jc?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};
l.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
l.scale=function(a,b){var c=oa(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function Kc(a,b){var c=qc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Lc(a,b){return Kc(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function Mc(a,b,c){var d,e=bb&&(Qa||fb)&&ob("1.9");b instanceof $b?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Nc(d,e);a.style.top=Nc(b,e)}
function Oc(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}$a&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function Pc(a){if($a&&!($a&&8<=qb))return a.offsetParent;var b=qc(a),c=Lc(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Lc(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}
function Qc(a){var b,c=qc(a),d=Lc(a,"position"),e=bb&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new $b(0,0),g;b=c?qc(c):document;(g=!$a)||(g=$a&&9<=qb)||(oc(b),g=!0);g=g?b.documentElement:b.body;if(a==g)return f;if(a.getBoundingClientRect)b=Oc(a),a=Hc(oc(c)),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(g),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{e=a;do{f.x+=
e.offsetLeft;f.y+=e.offsetTop;e!=a&&(f.x+=e.clientLeft||0,f.y+=e.clientTop||0);if(cb&&"fixed"==Lc(e,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}e=e.offsetParent}while(e&&e!=a);if(Za||cb&&"absolute"==d)f.y-=c.body.offsetTop;for(e=a;(e=Pc(e))&&e!=c.body&&e!=g;)f.x-=e.scrollLeft,Za&&"TR"==e.tagName||(f.y-=e.scrollTop)}return f}function Rc(a,b){var c=Sc(a),d=Sc(b);return new $b(c.x-d.x,c.y-d.y)}
function Sc(a){if(1==a.nodeType){var b;if(a.getBoundingClientRect)b=Oc(a),b=new $b(b.left,b.top);else{b=Hc(oc(a));var c=Qc(a);b=new $b(c.x-b.x,c.y-b.y)}if(bb&&!ob(12)){var d;$a?d="-ms-transform":cb?d="-webkit-transform":Za?d="-o-transform":bb&&(d="-moz-transform");var e;d&&(e=Lc(a,d));e||(e=Lc(a,"transform"));a=e?(a=e.match(Tc))?new $b(parseFloat(a[1]),parseFloat(a[2])):new $b(0,0):new $b(0,0);a=new $b(b.x+a.x,b.y+a.y)}else a=b;return a}d=pa(a.vf);e=a;a.targetTouches?e=a.targetTouches[0]:d&&a.P.targetTouches&&
(e=a.P.targetTouches[0]);return new $b(e.clientX,e.clientY)}function Nc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Uc(a){var b=Vc;if("none"!=Lc(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}
function Vc(a){var b=a.offsetWidth,c=a.offsetHeight,d=cb&&!b&&!c;return s(b)&&!d||!a.getBoundingClientRect?new ac(b,c):(a=Oc(a),new ac(a.right-a.left,a.bottom-a.top))}function Wc(a,b){var c=a.style;"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity\x3d"+100*b+")")}function Xc(a,b){a.style.display=b?"":"none"}function Yc(a){return"rtl"==Lc(a,"direction")}
function Zc(a){var b=qc(a),c=$a&&a.currentStyle,d;if(d=c)oc(b),d="auto"!=c.width&&"auto"!=c.height&&!c.boxSizing;if(d)return b=$c(a,c.width,"width","pixelWidth"),a=$c(a,c.height,"height","pixelHeight"),new ac(b,a);c=new ac(a.offsetWidth,a.offsetHeight);b=bd(a,"padding");a=cd(a);return new ac(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)}
function $c(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=f;return b}function dd(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?$c(a,c,"left","pixelLeft"):0}
function bd(a,b){if($a){var c=dd(a,b+"Left"),d=dd(a,b+"Right"),e=dd(a,b+"Top"),f=dd(a,b+"Bottom");return new Ic(e,d,f,c)}c=Kc(a,b+"Left");d=Kc(a,b+"Right");e=Kc(a,b+"Top");f=Kc(a,b+"Bottom");return new Ic(parseFloat(e),parseFloat(d),parseFloat(f),parseFloat(c))}var ed={thin:2,medium:4,thick:6};function fd(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in ed?ed[c]:$c(a,c,"left","pixelLeft")}
function cd(a){if($a){var b=fd(a,"borderLeft"),c=fd(a,"borderRight"),d=fd(a,"borderTop");a=fd(a,"borderBottom");return new Ic(d,c,a,b)}b=Kc(a,"borderLeftWidth");c=Kc(a,"borderRightWidth");d=Kc(a,"borderTopWidth");a=Kc(a,"borderBottomWidth");return new Ic(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var Tc=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function gd(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}gd.prototype.a=4;gd.prototype.c=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};gd.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(gd.BYTES_PER_ELEMENT=4,gd.prototype.BYTES_PER_ELEMENT=gd.prototype.a,gd.prototype.set=gd.prototype.c,gd.prototype.toString=gd.prototype.toString,t("Float32Array",gd));function hd(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}hd.prototype.a=8;hd.prototype.c=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};hd.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{hd.BYTES_PER_ELEMENT=8}catch(id){}hd.prototype.BYTES_PER_ELEMENT=hd.prototype.a;hd.prototype.set=hd.prototype.c;hd.prototype.toString=hd.prototype.toString;t("Float64Array",hd)};function jd(a,b,c,d,e){a[0]=b;a[1]=c;a[2]=d;a[3]=e};function kd(){var a=Array(16);ld(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function md(){var a=Array(16);ld(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function ld(a,b,c,d,e,f,g,h,m,n,p,q,r,u,x,B,y){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=h;a[7]=m;a[8]=n;a[9]=p;a[10]=q;a[11]=r;a[12]=u;a[13]=x;a[14]=B;a[15]=y}
function nd(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];a[6]=b[6];a[7]=b[7];a[8]=b[8];a[9]=b[9];a[10]=b[10];a[11]=b[11];a[12]=b[12];a[13]=b[13];a[14]=b[14];a[15]=b[15]}function od(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1}
function pd(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],h=a[4],m=a[5],n=a[6],p=a[7],q=a[8],r=a[9],u=a[10],x=a[11],B=a[12],y=a[13],E=a[14];a=a[15];var C=b[0],M=b[1],R=b[2],la=b[3],W=b[4],qa=b[5],Ea=b[6],Na=b[7],Va=b[8],ma=b[9],ab=b[10],Ua=b[11],ad=b[12],cc=b[13],Cc=b[14];b=b[15];c[0]=d*C+h*M+q*R+B*la;c[1]=e*C+m*M+r*R+y*la;c[2]=f*C+n*M+u*R+E*la;c[3]=g*C+p*M+x*R+a*la;c[4]=d*W+h*qa+q*Ea+B*Na;c[5]=e*W+m*qa+r*Ea+y*Na;c[6]=f*W+n*qa+u*Ea+E*Na;c[7]=g*W+p*qa+x*Ea+a*Na;c[8]=d*Va+h*ma+q*ab+B*Ua;c[9]=e*Va+m*ma+r*ab+
y*Ua;c[10]=f*Va+n*ma+u*ab+E*Ua;c[11]=g*Va+p*ma+x*ab+a*Ua;c[12]=d*ad+h*cc+q*Cc+B*b;c[13]=e*ad+m*cc+r*Cc+y*b;c[14]=f*ad+n*cc+u*Cc+E*b;c[15]=g*ad+p*cc+x*Cc+a*b}function qd(a,b,c){var d=a[1]*b+a[5]*c+0*a[9]+a[13],e=a[2]*b+a[6]*c+0*a[10]+a[14],f=a[3]*b+a[7]*c+0*a[11]+a[15];a[12]=a[0]*b+a[4]*c+0*a[8]+a[12];a[13]=d;a[14]=e;a[15]=f}function rd(a,b,c){ld(a,a[0]*b,a[1]*b,a[2]*b,a[3]*b,a[4]*c,a[5]*c,a[6]*c,a[7]*c,1*a[8],1*a[9],1*a[10],1*a[11],a[12],a[13],a[14],a[15])}
function sd(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5],m=a[6],n=a[7],p=Math.cos(b),q=Math.sin(b);a[0]=c*p+g*q;a[1]=d*p+h*q;a[2]=e*p+m*q;a[3]=f*p+n*q;a[4]=c*-q+g*p;a[5]=d*-q+h*p;a[6]=e*-q+m*p;a[7]=f*-q+n*p}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function td(a,b){var c=yc("CANVAS");s(a)&&(c.width=a);s(b)&&(c.height=b);return c.getContext("2d")}
var ud=function(){var a;return function(){if(!s(a))if(ea.getComputedStyle){var b=yc("P"),c,d={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(b);for(var e in d)e in b.style&&(b.style[e]="translate(1px,1px)",c=ea.getComputedStyle(b).getPropertyValue(d[e]));Ec(b);a=c&&"none"!==c}else a=!1;return a}}(),vd=function(){var a;return function(){if(!s(a))if(ea.getComputedStyle){var b=yc("P"),
c,d={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(b);for(var e in d)e in b.style&&(b.style[e]="translate3d(1px,1px,1px)",c=ea.getComputedStyle(b).getPropertyValue(d[e]));Ec(b);a=c&&"none"!==c}else a=!1;return a}}();function wd(a,b){var c=a.style;c.WebkitTransform=b;c.MozTransform=b;c.a=b;c.msTransform=b;c.transform=b;$a&&!sb&&(a.style.transformOrigin="0 0")}
function xd(a,b){var c;if(vd()){if(s(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");wd(a,"matrix3d("+c+")")}else if(ud()){d=[b[0],b[1],b[4],b[5],b[12],b[13]];if(s(6)){var e=Array(6);for(c=0;6>c;++c)e[c]=d[c].toFixed(6);c=e.join(",")}else c=d.join(",");wd(a,"matrix("+c+")")}else a.style.left=Math.round(b[12])+"px",a.style.top=Math.round(b[13])+"px"};var yd=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function zd(a,b){var c,d,e=yd.length;for(d=0;d<e;++d)try{if(c=a.getContext(yd[d],b),null!==c)return c}catch(f){}return null};var Ad=ea.devicePixelRatio||1,Bd="ArrayBuffer"in ea,Cd=!1,Dd=function(){if(!("HTMLCanvasElement"in ea))return!1;try{var a=td();if(null===a)return!1;s(a.setLineDash)&&(Cd=!0);return!0}catch(b){return!1}}(),Ed="DeviceOrientationEvent"in ea,Fd="geolocation"in ea.navigator,Gd="JSON"in ea&&"parse"in ea.JSON,Hd="ontouchstart"in ea,Id="PointerEvent"in ea,Jd=!!ea.navigator.msPointerEnabled,Kd=function(){if(!("WebGLRenderingContext"in ea))return!1;try{var a=yc("CANVAS");return!ia(zd(a,{tf:!0}))}catch(b){return!1}}();function Ld(){0!=Md&&(this.Ei=Error().stack,Nd[sa(this)]=this)}var Md=0,Nd={};Ld.prototype.Na=!1;Ld.prototype.cc=function(){if(!this.Na&&(this.Na=!0,this.F(),0!=Md)){var a=sa(this);delete Nd[a]}};function Od(a,b){var c=ya(Pd,b);a.Ea||(a.Ea=[]);a.Ea.push(xa(c,void 0))}Ld.prototype.F=function(){if(this.Ea)for(;this.Ea.length;)this.Ea.shift()()};function Pd(a){a&&"function"==typeof a.cc&&a.cc()};function Qd(a,b){this.type=a;this.c=this.target=b}l=Qd.prototype;l.cc=ba();l.qb=!1;l.Mf=!1;l.Re=!0;l.Ia=function(){this.qb=!0};l.preventDefault=function(){this.Mf=!0;this.Re=!1};function Rd(a){a.Ia()}function Sd(a){a.preventDefault()};var Td=!$a||$a&&9<=qb,Ud=!$a||$a&&9<=qb,Vd=$a&&!ob("9");!cb||ob("528");bb&&ob("1.9b")||$a&&ob("8")||Za&&ob("9.5")||cb&&ob("528");bb&&!ob("8")||$a&&ob("9");var Wd=$a?"focusout":"DOMFocusOut";function Xd(a){Xd[" "](a);return a}Xd[" "]=fa;function Yd(a,b){a&&Zd(this,a,b)}v(Yd,Qd);var $d=[1,4,2];l=Yd.prototype;l.target=null;l.relatedTarget=null;l.offsetX=0;l.offsetY=0;l.clientX=0;l.clientY=0;l.screenX=0;l.screenY=0;l.button=0;l.Ya=0;l.qd=0;l.mc=!1;l.ma=!1;l.Za=!1;l.rd=!1;l.Sb=!1;l.P=null;
function Zd(a,b,c){var d=a.type=b.type;Qd.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(bb){var e;a:{try{Xd(c.nodeName);e=!0;break a}catch(f){}e=!1}e||(c=null)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.relatedTarget=c;a.offsetX=cb||void 0!==b.offsetX?b.offsetX:b.layerX;a.offsetY=cb||void 0!==b.offsetY?b.offsetY:b.layerY;a.clientX=void 0!==b.clientX?b.clientX:b.pageX;a.clientY=void 0!==b.clientY?b.clientY:b.pageY;a.screenX=b.screenX||0;a.screenY=
b.screenY||0;a.button=b.button;a.Ya=b.keyCode||0;a.qd=b.charCode||("keypress"==d?b.keyCode:0);a.mc=b.ctrlKey;a.ma=b.altKey;a.Za=b.shiftKey;a.rd=b.metaKey;a.Sb=Qa?b.metaKey:b.ctrlKey;a.state=b.state;a.P=b;b.defaultPrevented&&a.preventDefault();delete a.qb}function ae(a){return(Td?0==a.P.button:"click"==a.type?!0:!!(a.P.button&$d[0]))&&!(cb&&Qa&&a.mc)}l.Ia=function(){Yd.H.Ia.call(this);this.P.stopPropagation?this.P.stopPropagation():this.P.cancelBubble=!0};
l.preventDefault=function(){Yd.H.preventDefault.call(this);var a=this.P;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Vd)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};l.vf=k("P");var be="closure_listenable_"+(1E6*Math.random()|0);function ce(a){return!(!a||!a[be])}var de=0;function ee(a,b,c,d,e,f){this.Ja=a;this.a=b;this.src=c;this.type=d;this.capture=!!e;this.zb=f;this.key=++de;this.eb=this.Ib=!1}function fe(a){a.eb=!0;a.Ja=null;a.a=null;a.src=null;a.zb=null};var ge={},he={},ie={},je={};function z(a,b,c,d,e){if(ja(b)){for(var f=0;f<b.length;f++)z(a,b[f],c,d,e);return null}c=ke(c);return ce(a)?a.na(b,c,d,e):le(a,b,c,!1,d,e)}
function le(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");e=!!e;var g=he;b in g||(g[b]={N:0});g=g[b];e in g||(g[e]={N:0},g.N++);var g=g[e],h=sa(a),m;if(g[h]){m=g[h];for(var n=0;n<m.length;n++)if(g=m[n],g.Ja==c&&g.zb==f){if(g.eb)break;d||(m[n].Ib=!1);return m[n]}}else m=g[h]=[],g.N++;n=me();g=new ee(c,n,a,b,e,f);g.Ib=d;n.src=a;n.Ja=g;m.push(g);ie[h]||(ie[h]=[]);ie[h].push(g);a.addEventListener?a.addEventListener(b,n,e):a.attachEvent(b in je?je[b]:je[b]="on"+b,n);return ge[g.key]=g}
function me(){var a=ne,b=Ud?function(c){return a.call(b.src,b.Ja,c)}:function(c){c=a.call(b.src,b.Ja,c);if(!c)return c};return b}function oe(a,b,c,d,e){if(ja(b)){for(var f=0;f<b.length;f++)oe(a,b[f],c,d,e);return null}c=ke(c);return ce(a)?a.ga.add(b,c,!0,d,e):le(a,b,c,!0,d,e)}function pe(a,b,c,d,e){if(ja(b))for(var f=0;f<b.length;f++)pe(a,b[f],c,d,e);else if(c=ke(c),ce(a))a.Hd(b,c,d,e);else if(d=!!d,a=qe(a,b,d))for(f=0;f<a.length;f++)if(a[f].Ja==c&&a[f].capture==d&&a[f].zb==e){re(a[f]);break}}
function re(a){if(oa(a)||!a||a.eb)return!1;var b=a.src;if(ce(b))return se(b.ga,a);var c=a.type,d=a.a,e=a.capture;b.removeEventListener?b.removeEventListener(c,d,e):b.detachEvent&&b.detachEvent(c in je?je[c]:je[c]="on"+c,d);b=sa(b);ie[b]&&(d=ie[b],Bb(d,a),0==d.length&&delete ie[b]);fe(a);if(d=he[c][e][b])Bb(d,a),0==d.length&&(delete he[c][e][b],he[c][e].N--),0==he[c][e].N&&(delete he[c][e],he[c].N--),0==he[c].N&&delete he[c];delete ge[a.key];return!0}
function qe(a,b,c){var d=he;return b in d&&(d=d[b],c in d&&(d=d[c],a=sa(a),d[a]))?d[a]:null}function te(a){if(ce(a))return ue(a.ga,void 0);a=sa(a);var b=ie[a];if(b){var c=s(void 0),d=s(void 0);return c&&d?(b=he[void 0],!!b&&!!b[void 0]&&a in b[void 0]):c||d?yb(b,function(a){return c&&void 0==a.type||d&&void 0==a.capture}):!0}return!1}function ve(a,b,c){var d=1;b=sa(b);if(a[b])for(a=Db(a[b]),b=0;b<a.length;b++){var e=a[b];e&&!e.eb&&(d&=!1!==we(e,c))}return Boolean(d)}
function we(a,b){var c=a.Ja,d=a.zb||a.src;a.Ib&&re(a);return c.call(d,b)}
function ne(a,b){if(a.eb)return!0;var c=a.type,d=he;if(!(c in d))return!0;var d=d[c],e,f;if(!Ud){if(!(c=b))a:{for(var c=["window","event"],g=ea;e=c.shift();)if(null!=g[e])g=g[e];else{c=null;break a}c=g}e=c;c=!0 in d;g=!1 in d;if(c){if(0>e.keyCode||void 0!=e.returnValue)return!0;a:{var h=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(m){h=!0}if(h||void 0==e.returnValue)e.returnValue=!0}}h=new Yd;Zd(h,e,this);e=!0;try{if(c){for(var n=[],p=h.c;p;p=p.parentNode)n.push(p);f=d[!0];for(var q=n.length-
1;!h.qb&&0<=q;q--)h.c=n[q],e&=ve(f,n[q],h);if(g)for(f=d[!1],q=0;!h.qb&&q<n.length;q++)h.c=n[q],e&=ve(f,n[q],h)}else e=we(a,h)}finally{n&&(n.length=0)}return e}d=new Yd(b,this);return e=we(a,d)}var xe="__closure_events_fn_"+(1E9*Math.random()>>>0);function ke(a){return pa(a)?a:a[xe]||(a[xe]=function(b){return a.handleEvent(b)})};function ye(a){return function(){return a}}var ze=ye(!1),Ae=ye(!0);function Be(a){return a}function Ce(a){return function(){throw a;}}function De(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}function Ee(a){var b=arguments,c=b.length;return function(){for(var a=0;a<c;a++)if(!b[a].apply(this,arguments))return!1;return!0}};function Fe(a){this.src=a;this.a={};this.c=0}Fe.prototype.add=function(a,b,c,d,e){var f=this.a[a];f||(f=this.a[a]=[],this.c++);var g=Ge(f,b,d,e);-1<g?(a=f[g],c||(a.Ib=!1)):(a=new ee(b,null,this.src,a,!!d,e),a.Ib=c,f.push(a));return a};Fe.prototype.remove=function(a,b,c,d){if(!(a in this.a))return!1;var e=this.a[a];b=Ge(e,b,c,d);return-1<b?(fe(e[b]),ub.splice.call(e,b,1),0==e.length&&(delete this.a[a],this.c--),!0):!1};
function se(a,b){var c=b.type;if(!(c in a.a))return!1;var d=Bb(a.a[c],b);d&&(fe(b),0==a.a[c].length&&(delete a.a[c],a.c--));return d}function ue(a,b){var c=s(b),d=s(void 0);return dc(a.a,function(a){for(var f=0;f<a.length;++f)if(!(c&&a[f].type!=b||d&&void 0!=a[f].capture))return!0;return!1})}function Ge(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.eb&&f.Ja==b&&f.capture==!!c&&f.zb==d)return e}return-1};function He(){Ld.call(this);this.ga=new Fe(this);this.df=this}v(He,Ld);He.prototype[be]=!0;l=He.prototype;l.Ad=null;l.addEventListener=function(a,b,c,d){z(this,a,b,c,d)};l.removeEventListener=function(a,b,c,d){pe(this,a,b,c,d)};
function A(a,b){var c,d=a.Ad;if(d)for(c=[];d;d=d.Ad)c.push(d);var d=a.df,e=b,f=e.type||e;if(na(e))e=new Qd(e,d);else if(e instanceof Qd)e.target=e.target||d;else{var g=e,e=new Qd(f,d);nc(e,g)}var g=!0,h;if(c)for(var m=c.length-1;!e.qb&&0<=m;m--)h=e.c=c[m],g=Ie(h,f,!0,e)&&g;e.qb||(h=e.c=d,g=Ie(h,f,!0,e)&&g,e.qb||(g=Ie(h,f,!1,e)&&g));if(c)for(m=0;!e.qb&&m<c.length;m++)h=e.c=c[m],g=Ie(h,f,!1,e)&&g;return g}
l.F=function(){He.H.F.call(this);if(this.ga){var a=this.ga,b=0,c;for(c in a.a){for(var d=a.a[c],e=0;e<d.length;e++)++b,d[e].eb=!0;delete a.a[c];a.c--}}this.Ad=null};l.na=function(a,b,c,d){return this.ga.add(a,b,!1,c,d)};l.Hd=function(a,b,c,d){return this.ga.remove(a,b,c,d)};function Ie(a,b,c,d){b=a.ga.a[b];if(!b)return!0;b=Db(b);for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.eb&&g.capture==c){var h=g.Ja,m=g.zb||g.src;g.Ib&&se(a.ga,g);e=!1!==h.call(m,d)&&e}}return e&&!1!=d.Re};function Je(){He.call(this);this.c=0}v(Je,He);l=Je.prototype;l.k=function(){++this.c;A(this,"change")};l.q=function(a,b,c){return z(this,a,b,!1,c)};l.r=function(a,b,c){return oe(this,a,b,!1,c)};l.s=function(a,b,c){pe(this,a,b,!1,c)};l.t=function(a){re(a)};function Ke(a,b){Qd.call(this,a);this.key=b}v(Ke,Qd);function Le(a,b){this.target=a;this.key=b;this.c=this.a=Be}Le.prototype.transform=function(a,b){this.a=a;this.c=b;this.target.U(this.key)};function Me(a){Je.call(this);sa(this);this.p={};this.ca={};this.Gb={};this.Hb={};s(a)&&this.I(a)}v(Me,Je);var Ne={},Oe={},Pe={};function Qe(a){return Ne.hasOwnProperty(a)?Ne[a]:Ne[a]="change:"+a.toLowerCase()}l=Me.prototype;
l.X=function(a,b,c){c=c||a;this.V(a);var d=Qe(c);this.Hb[a]=z(b,d,function(){Re(this,a)},void 0,this);this.Gb[a]=z(b,"beforepropertychange",Se(a,c),void 0,this);b=new Le(b,c);this.ca[a]=b;Re(this,a);return b};function Se(a,b){return function(c){c.key===b&&A(this,new Ke("beforepropertychange",a))}}
l.get=function(a){var b,c=this.ca;if(c.hasOwnProperty(a)){a=c[a];b=a.target;var c=a.key,d=Oe.hasOwnProperty(c)?Oe[c]:Oe[c]="get"+(c.substr(0,1).toUpperCase()+c.substr(1)),d=w(b,d);b=s(d)?d.call(b):b.get(c);b=a.c(b)}else this.p.hasOwnProperty(a)&&(b=this.p[a]);return b};l.O=function(){var a=this.ca,b;if(hc(this.p)){if(hc(a))return[];b=a}else if(hc(a))b=this.p;else{b={};for(var c in this.p)b[c]=!0;for(c in a)b[c]=!0}return gc(b)};
l.T=function(){var a={},b;for(b in this.p)a[b]=this.p[b];for(b in this.ca)a[b]=this.get(b);return a};l.U=function(a){var b=this.ca;b.hasOwnProperty(a)?(a=b[a],a.target.U(a.key)):Re(this,a)};function Re(a,b){var c=Qe(b);A(a,c);A(a,new Ke("propertychange",b))}
l.w=function(a,b){A(this,new Ke("beforepropertychange",a));var c=this.ca;if(c.hasOwnProperty(a)){var d=c[a],c=d.target,e=d.key;b=d.a(b);d=Pe.hasOwnProperty(e)?Pe[e]:Pe[e]="set"+(e.substr(0,1).toUpperCase()+e.substr(1));d=w(c,d);s(d)?d.call(c,b):c.w(e,b)}else this.p[a]=b,Re(this,a)};l.I=function(a){for(var b in a)this.w(b,a[b])};l.V=function(a){var b=this.Hb,c=b[a];c&&(delete b[a],re(c),b=this.get(a),delete this.ca[a],this.p[a]=b);if(b=this.Gb[a])re(b),delete this.Gb[a]};l.Y=function(){for(var a in this.Hb)this.V(a)};function Ue(a,b,c){Qd.call(this,a,c);this.element=b}v(Ue,Qd);function D(a){Me.call(this);this.a=a||[];Ve(this)}v(D,Me);l=D.prototype;l.clear=function(){for(;0<this.Ab();)this.pop()};l.Gg=function(a){var b,c;b=0;for(c=a.length;b<c;++b)this.push(a[b]);return this};l.forEach=function(a,b){wb(this.a,a,b)};l.Hg=k("a");l.Zd=function(a){return this.a[a]};l.Ab=function(){return this.get("length")};l.Nc=function(a,b){Fb(this.a,a,0,b);Ve(this);A(this,new Ue("add",b,this))};
l.pop=function(){return this.Wc(this.Ab()-1)};l.push=function(a){var b=this.a.length;this.Nc(b,a);return b};l.remove=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)if(b[c]===a)return this.Wc(c)};l.Wc=function(a){var b=this.a[a];ub.splice.call(this.a,a,1);Ve(this);A(this,new Ue("remove",b,this));return b};l.$h=function(a,b){var c=this.Ab();if(a<c)c=this.a[a],this.a[a]=b,A(this,new Ue("remove",c,this)),A(this,new Ue("add",b,this));else{for(;c<a;++c)this.Nc(c,void 0);this.Nc(a,b)}};
function Ve(a){a.w("length",a.a.length)};function We(a,b){a[0]+=b[0];a[1]+=b[1];return a}function Xe(a,b){var c=a[0],d=a[1],e=b[0],f=b[1],g=e[0],e=e[1],h=f[0],f=f[1],m=h-g,n=f-e,c=0===m&&0===n?0:(m*(c-g)+n*(d-e))/(m*m+n*n||0);0>=c||(1<=c?(g=h,e=f):(g+=c*m,e+=c*n));return[g,e]}function Ye(a,b){var c=Yb(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)}
function Ze(a,b,c){return s(a)?b.replace("{x}",a[0].toFixed(c)).replace("{y}",a[1].toFixed(c)):""}function $e(a,b){for(var c=!0,d=a.length-1;0<=d;--d)if(a[d]!=b[d]){c=!1;break}return c}function af(a,b){var c=Math.cos(b),d=Math.sin(b),e=a[1]*c+a[0]*d;a[0]=a[0]*c-a[1]*d;a[1]=e;return a}function bf(a,b){var c=a[0]-b[0],d=a[1]-b[1];return c*c+d*d}function cf(a,b){return Ze(a,"{x}, {y}",b)};function F(a){Me.call(this);a=s(a)?a:{};this.a=null;z(this,Qe("tracking"),this.h,!1,this);this.b(s(a.tracking)?a.tracking:!1)}v(F,Me);F.prototype.F=function(){this.b(!1);F.H.F.call(this)};
F.prototype.l=function(a){a=a.P;if(null!=a.alpha){var b=Zb(a.alpha);this.w("alpha",b);"boolean"==typeof a.absolute&&a.absolute?this.w("heading",b):null!=a.webkitCompassHeading&&(null!=a.webkitCompassAccuracy&&-1!=a.webkitCompassAccuracy)&&this.w("heading",Zb(a.webkitCompassHeading))}null!=a.beta&&this.w("beta",Zb(a.beta));null!=a.gamma&&this.w("gamma",Zb(a.gamma));this.k()};F.prototype.e=function(){return this.get("alpha")};F.prototype.getAlpha=F.prototype.e;F.prototype.f=function(){return this.get("beta")};
F.prototype.getBeta=F.prototype.f;F.prototype.g=function(){return this.get("gamma")};F.prototype.getGamma=F.prototype.g;F.prototype.i=function(){return this.get("heading")};F.prototype.getHeading=F.prototype.i;F.prototype.d=function(){return this.get("tracking")};F.prototype.getTracking=F.prototype.d;F.prototype.h=function(){if(Ed){var a=this.d();a&&null===this.a?this.a=z(ea,"deviceorientation",this.l,!1,this):a||null===this.a||(re(this.a),this.a=null)}};
F.prototype.b=function(a){this.w("tracking",a)};F.prototype.setTracking=F.prototype.b;function df(a,b,c){Qd.call(this,a);this.map=b;this.b=s(c)?c:null}v(df,Qd);function ef(a,b,c){Qd.call(this,a);this.a=b;a=s(c)?c:{};this.buttons=ff(a);this.Bd=gf(a,this.buttons);this.bubbles=w(a,"bubbles",!1);this.cancelable=w(a,"cancelable",!1);this.view=w(a,"view",null);this.detail=w(a,"detail",null);this.screenX=w(a,"screenX",0);this.screenY=w(a,"screenY",0);this.clientX=w(a,"clientX",0);this.clientY=w(a,"clientY",0);this.d=w(a,"ctrlKey",!1);this.b=w(a,"altKey",!1);this.g=w(a,"shiftKey",!1);this.f=w(a,"metaKey",!1);this.button=w(a,"button",0);this.relatedTarget=w(a,"relatedTarget",
null);this.pointerId=w(a,"pointerId",0);this.width=w(a,"width",0);this.height=w(a,"height",0);this.i=w(a,"tiltX",0);this.h=w(a,"tiltY",0);this.pointerType=w(a,"pointerType","");this.e=w(a,"hwTimestamp",0);this.Oc=w(a,"isPrimary",!1);b.preventDefault&&(this.preventDefault=function(){b.preventDefault()})}v(ef,Qd);function ff(a){if(a.buttons||hf)a=a.buttons;else switch(a.which){case 1:a=1;break;case 2:a=4;break;case 3:a=2;break;default:a=0}return a}
function gf(a,b){var c=0;return c=a.Bd?a.Bd:b?0.5:0}var hf=!1;try{hf=1===(new MouseEvent("click",{buttons:1})).buttons}catch(jf){};function kf(a,b){this.a=a;this.e=b};function lf(a){kf.call(this,a,{mousedown:this.sg,mousemove:this.tg,mouseup:this.wg,mouseover:this.vg,mouseout:this.ug});this.c=a.c;this.b=[]}v(lf,kf);function mf(a,b){for(var c=a.b,d=b.clientX,e=b.clientY,f=0,g=c.length,h;f<g&&(h=c[f]);f++){var m=Math.abs(e-h[1]);if(25>=Math.abs(d-h[0])&&25>=m)return!0}return!1}function nf(a){var b=of(a,a.P),c=b.preventDefault;b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.Oc=!0;b.pointerType="mouse";return b}l=lf.prototype;
l.sg=function(a){if(!mf(this,a)){(1).toString()in this.c&&this.cancel(a);var b=nf(a);this.c[(1).toString()]=a;pf(this.a,qf,b,a)}};l.tg=function(a){if(!mf(this,a)){var b=nf(a);pf(this.a,rf,b,a)}};l.wg=function(a){if(!mf(this,a)){var b=w(this.c,(1).toString());b&&b.button===a.button&&(b=nf(a),pf(this.a,sf,b,a),jc(this.c,(1).toString()))}};l.vg=function(a){if(!mf(this,a)){var b=nf(a);tf(this.a,b,a)}};l.ug=function(a){if(!mf(this,a)){var b=nf(a);uf(this.a,b,a)}};
l.cancel=function(a){var b=nf(a);this.a.cancel(b,a);jc(this.c,(1).toString())};function vf(a){kf.call(this,a,{MSPointerDown:this.Bg,MSPointerMove:this.Cg,MSPointerUp:this.Fg,MSPointerOut:this.Dg,MSPointerOver:this.Eg,MSPointerCancel:this.Ag,MSGotPointerCapture:this.yg,MSLostPointerCapture:this.zg});this.c=a.c;this.b=["","unavailable","touch","pen","mouse"]}v(vf,kf);function wf(a,b){var c=b;oa(b.P.pointerType)&&(c=of(b,b.P),c.pointerType=a.b[b.P.pointerType]);return c}l=vf.prototype;l.Bg=function(a){this.c[a.P.pointerId]=a;var b=wf(this,a);pf(this.a,qf,b,a)};
l.Cg=function(a){var b=wf(this,a);pf(this.a,rf,b,a)};l.Fg=function(a){var b=wf(this,a);pf(this.a,sf,b,a);jc(this.c,a.P.pointerId)};l.Dg=function(a){var b=wf(this,a);uf(this.a,b,a)};l.Eg=function(a){var b=wf(this,a);tf(this.a,b,a)};l.Ag=function(a){var b=wf(this,a);this.a.cancel(b,a);jc(this.c,a.P.pointerId)};l.zg=function(a){A(this.a,new ef("lostpointercapture",a,a.P))};l.yg=function(a){A(this.a,new ef("gotpointercapture",a,a.P))};function xf(a){kf.call(this,a,{pointerdown:this.Hh,pointermove:this.Ih,pointerup:this.Lh,pointerout:this.Jh,pointerover:this.Kh,pointercancel:this.Gh,gotpointercapture:this.Nf,lostpointercapture:this.qg})}v(xf,kf);l=xf.prototype;l.Hh=function(a){yf(this.a,a)};l.Ih=function(a){yf(this.a,a)};l.Lh=function(a){yf(this.a,a)};l.Jh=function(a){yf(this.a,a)};l.Kh=function(a){yf(this.a,a)};l.Gh=function(a){yf(this.a,a)};l.qg=function(a){yf(this.a,a)};l.Nf=function(a){yf(this.a,a)};function zf(a,b){kf.call(this,a,{touchstart:this.gi,touchmove:this.fi,touchend:this.ei,touchcancel:this.di});this.c=a.c;this.g=b;this.b=void 0;this.f=0;this.d=void 0}v(zf,kf);l=zf.prototype;l.Qe=function(){this.f=0;this.d=void 0};
l.ci=function(a,b){var c=of(a,b);c.pointerId=b.identifier+2;c.bubbles=!0;c.cancelable=!0;c.detail=this.f;c.button=0;c.buttons=1;c.width=b.webkitRadiusX||b.radiusX||0;c.height=b.webkitRadiusY||b.radiusY||0;c.Bd=b.webkitForce||b.force||0.5;c.Oc=this.b===b.identifier;c.pointerType="touch";c.clientX=b.clientX;c.clientY=b.clientY;c.screenX=b.screenX;c.screenY=b.screenY;return c};
function Af(a,b,c){var d=Db(b.P.changedTouches),d=xb(d,ya(a.ci,b),a);wb(d,function(a){a.preventDefault=function(){b.preventDefault()}},a);wb(d,ya(c,b),a)}function Bf(a,b){var c=b.P.touches;if(ec(a.c)>=c.length){var d=[];bc(a.c,function(a,b){var g;if(!(g=1==b))a:{g=c.length;for(var h,m=0;m<g;m++)if(h=c[m],h.identifier===b-2){g=!0;break a}g=!1}g||d.push(a.Bb)},a);wb(d,ya(a.hd,b),a)}}
l.gi=function(a){Bf(this,a);var b=ec(this.c),c;if(!(c=0===b)){if(b=1===b)b=(1).toString()in this.c;c=b}c&&(this.b=a.P.changedTouches[0].identifier,s(this.d)&&ea.clearTimeout(this.d));Cf(this,a);this.f++;Af(this,a,this.Fh)};l.Fh=function(a,b){this.c[b.pointerId]={target:b.target,Bb:b,Me:b.target};var c=this.a;b.bubbles=!0;pf(c,Df,b,a);c=this.a;b.bubbles=!1;pf(c,Ef,b,a);pf(this.a,qf,b,a)};l.fi=function(a){a.preventDefault();Af(this,a,this.xg)};
l.xg=function(a,b){var c=w(this.c,b.pointerId);if(c){var d=c.Bb,e=c.Me;pf(this.a,rf,b,a);d&&e!==b.target&&(d.relatedTarget=b.target,b.relatedTarget=e,d.target=e,b.target?(uf(this.a,d,a),tf(this.a,b,a)):(b.target=e,b.relatedTarget=null,this.hd(a,b)));c.Bb=b;c.Me=b.target}};l.ei=function(a){Cf(this,a);Af(this,a,this.hi)};l.hi=function(a,b){pf(this.a,sf,b,a);this.a.Bb(b,a);var c=this.a;b.bubbles=!1;pf(c,Ff,b,a);jc(this.c,b.pointerId);b.Oc&&(this.b=void 0,this.d=ea.setTimeout(this.Qe,200))};
l.di=function(a){Af(this,a,this.hd)};l.hd=function(a,b){this.a.cancel(b,a);this.a.Bb(b,a);var c=this.a;b.bubbles=!1;pf(c,Ff,b,a);jc(this.c,b.pointerId);b.Oc&&(this.b=void 0,this.d=ea.setTimeout(this.Qe,200))};function Cf(a,b){var c=a.g.b,d=b.P.changedTouches[0];if(a.b===d.identifier){var e=[d.clientX,d.clientY];c.push(e);ea.setTimeout(function(){Bb(c,e)},2500)}};function Gf(a){He.call(this);this.d=a;this.c={};this.b={};this.a=[];Id?Hf(this,new xf(this)):Jd?Hf(this,new vf(this)):(a=new lf(this),Hf(this,a),Hd&&Hf(this,new zf(this,a)));a=this.a.length;for(var b,c=0;c<a;c++)b=this.a[c],If(this,gc(b.e))}v(Gf,He);function Hf(a,b){var c=gc(b.e);c&&(wb(c,function(a){var c=b.e[a];c&&(this.b[a]=xa(c,b))},a),a.a.push(b))}Gf.prototype.e=function(a){var b=this.b[a.type];b&&b(a)};function If(a,b){wb(b,function(a){z(this.d,a,this.e,!1,this)},a)}
function Jf(a,b){wb(b,function(a){pe(this.d,a,this.e,!1,this)},a)}function of(a,b){for(var c={},d,e=0,f=Kf.length;e<f;e++)d=Kf[e][0],c[d]=a[d]||b[d]||Kf[e][1];return c}Gf.prototype.Bb=function(a,b){a.bubbles=!0;pf(this,Lf,a,b)};Gf.prototype.cancel=function(a,b){pf(this,Mf,a,b)};function uf(a,b,c){a.Bb(b,c);b.target.contains(b.relatedTarget)||(b.bubbles=!1,pf(a,Ff,b,c))}function tf(a,b,c){b.bubbles=!0;pf(a,Df,b,c);b.target.contains(b.relatedTarget)||(b.bubbles=!1,pf(a,Ef,b,c))}
function pf(a,b,c,d){A(a,new ef(b,d,c))}function yf(a,b){A(a,new ef(b.type,b,b.P))}Gf.prototype.F=function(){for(var a=this.a.length,b,c=0;c<a;c++)b=this.a[c],Jf(this,gc(b.e));Gf.H.F.call(this)};
var rf="pointermove",qf="pointerdown",sf="pointerup",Df="pointerover",Lf="pointerout",Ef="pointerenter",Ff="pointerleave",Mf="pointercancel",Kf=[["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 Nf(a,b,c,d){df.call(this,a,b,d);this.a=c;this.originalEvent=c.P;this.coordinate=b.$d(this.originalEvent);this.pixel=b.md(this.originalEvent)}v(Nf,df);Nf.prototype.preventDefault=function(){Nf.H.preventDefault.call(this);this.a.preventDefault()};Nf.prototype.Ia=function(){Nf.H.Ia.call(this);this.a.Ia()};function Of(a,b,c,d){Nf.call(this,a,b,c.a,d);this.d=c}v(Of,Nf);
function Pf(a){He.call(this);this.c=a;this.e=0;this.i=!1;this.f=this.g=this.b=null;a=this.c.b;this.p=0;this.l={};this.d=new Gf(a);this.a=null;this.g=z(this.d,qf,this.cg,!1,this);this.h=z(this.d,rf,this.Qh,!1,this)}v(Pf,He);function Qf(a,b){var c;c=new Of(Rf,a.c,b);A(a,c);0!==a.e?(ea.clearTimeout(a.e),a.e=0,c=new Of(Sf,a.c,b),A(a,c)):a.e=ea.setTimeout(xa(function(){this.e=0;var a=new Of(Tf,this.c,b);A(this,a)},a),250)}
function Uf(a,b){b.type==Vf||b.type==Wf?delete a.l[b.pointerId]:b.type==Xf&&(a.l[b.pointerId]=!0);a.p=ec(a.l)}l=Pf.prototype;l.ke=function(a){Uf(this,a);var b=new Of(Vf,this.c,a);A(this,b);0===this.p&&(wb(this.b,re),this.b=null,Pd(this.a),this.a=null);!this.i&&0===a.button&&Qf(this,this.f)};
l.cg=function(a){Uf(this,a);var b=new Of(Xf,this.c,a);A(this,b);this.f=a;this.i=!1;null===this.b&&(this.a=new Gf(document),this.b=[z(this.a,Yf,this.Pg,!1,this),z(this.a,Vf,this.ke,!1,this),z(this.d,Wf,this.ke,!1,this)]);a.preventDefault()};l.Pg=function(a){if(a.clientX!=this.f.clientX||a.clientY!=this.f.clientY){this.i=!0;var b=new Of(Zf,this.c,a);A(this,b)}a.preventDefault()};l.Qh=function(a){A(this,new Of(a.type,this.c,a))};
l.F=function(){null!==this.h&&(re(this.h),this.h=null);null!==this.g&&(re(this.g),this.g=null);null!==this.b&&(wb(this.b,re),this.b=null);null!==this.a&&(Pd(this.a),this.a=null);null!==this.d&&(Pd(this.d),this.d=null);Pf.H.F.call(this)};var Tf="singleclick",Rf="click",Sf="dblclick",Zf="pointerdrag",Yf="pointermove",Xf="pointerdown",Vf="pointerup",Wf="pointercancel",$f={Di:Tf,si:Rf,ti:Sf,wi:Zf,zi:Yf,vi:Xf,Ci:Vf,Bi:"pointerover",Ai:"pointerout",xi:"pointerenter",yi:"pointerleave",ui:Wf};function ag(a){a=a.a;return a.ma&&!a.Sb&&a.Za}function bg(a){return a.type==Tf}function cg(a){a=a.a;return!a.ma&&!a.Sb&&!a.Za}function dg(a){a=a.a;return!a.ma&&!a.Sb&&a.Za}function eg(a){a=a.a.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a}function fg(a){return 1==a.d.pointerId};function gg(a){return function(b){if(s(b))return[Xb(b[0],a[0],a[2]),Xb(b[1],a[1],a[3])]}}function hg(a){return a};function ig(a,b){var c,d;c=0;for(d=b.length;c<d;++c)a.push(b[c])}function jg(a,b,c){var d=a.length;if(a[0]<=b)return 0;if(!(b<=a[d-1]))if(0<c)for(c=1;c<d;++c){if(a[c]<b)return c-1}else if(0>c)for(c=1;c<d;++c){if(a[c]<=b)return c}else for(c=1;c<d;++c){if(a[c]==b)return c;if(a[c]<b)return a[c-1]-b<b-a[c]?c-1:c}return d-1};function kg(a){return function(b,c,d){if(s(b))return b=jg(a,b,d),b=Xb(b+c,0,a.length-1),a[b]}}function lg(a,b,c){return function(d,e,f){if(s(d))return f=0<f?0:0>f?1:0.5,d=Math.floor(Math.log(b/d)/Math.log(a)+f),e=Math.max(d+e,0),s(c)&&(e=Math.min(e,c)),b/Math.pow(a,e)}};function mg(a){if(s(a))return 0}function ng(a,b){if(s(a))return a+b}function og(a){var b=2*Math.PI/a;return function(a,d){if(s(a))return a=Math.floor((a+d)/b+0.5)*b}}function pg(){var a=Zb(5);return function(b,c){if(s(b))return Math.abs(b+c)<=a?0:b+c}};function qg(a,b,c){this.center=a;this.resolution=b;this.rotation=c};function rg(){Me.call(this);this.h=[0,0]}v(rg,Me);rg.prototype.W=ca(null);rg.prototype.vd=ca(!1);function sg(a,b){a.h[1]+=b};function tg(a){for(var b=ug(),c=0,d=a.length;c<d;++c){var e=b,f=a[c];f[0]<e[0]&&(e[0]=f[0]);f[0]>e[2]&&(e[2]=f[0]);f[1]<e[1]&&(e[1]=f[1]);f[1]>e[3]&&(e[3]=f[1])}return b}function vg(a,b,c){var d=Math.min.apply(null,a),e=Math.min.apply(null,b);a=Math.max.apply(null,a);b=Math.max.apply(null,b);return wg(d,e,a,b,c)}function xg(a,b,c){return s(c)?(c[0]=a[0]-b,c[1]=a[1]-b,c[2]=a[2]+b,c[3]=a[3]+b,c):[a[0]-b,a[1]-b,a[2]+b,a[3]+b]}
function yg(a,b){return s(b)?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a.slice()}function zg(a,b,c){b=b<a[0]?a[0]-b:a[2]<b?b-a[2]:0;a=c<a[1]?a[1]-c:a[3]<c?c-a[3]:0;return b*b+a*a}function Ag(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]}function ug(){return[Infinity,Infinity,-Infinity,-Infinity]}function wg(a,b,c,d,e){return s(e)?(e[0]=a,e[1]=b,e[2]=c,e[3]=d,e):[a,b,c,d]}function Bg(a){return wg(Infinity,Infinity,-Infinity,-Infinity,a)}
function Cg(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]}function Dg(a,b){b[0]<a[0]&&(a[0]=b[0]);b[2]>a[2]&&(a[2]=b[2]);b[1]<a[1]&&(a[1]=b[1]);b[3]>a[3]&&(a[3]=b[3]);return a}function Eg(a,b,c,d,e){for(;c<d;c+=e){var f=a,g=b[c],h=b[c+1];f[0]=Math.min(f[0],g);f[1]=Math.min(f[1],h);f[2]=Math.max(f[2],g);f[3]=Math.max(f[3],h)}return a}function Fg(a){return[a[0],a[1]]}function Gg(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}
function Hg(a,b,c,d){var e=b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);c=Math.sin(c);e=[-e,-e,e,e];d=[-d,d,-d,d];var f,g,h;for(f=0;4>f;++f)g=e[f],h=d[f],e[f]=a[0]+g*b-h*c,d[f]=a[1]+g*c+h*b;return vg(e,d,void 0)}function Ig(a){return a[3]-a[1]}function Jg(a){return[a[0],a[3]]}function Kg(a){return a[2]-a[0]}function Mg(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function Ng(a){return a[2]<a[0]||a[3]<a[1]}function Og(a,b){return s(b)?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a}
function Pg(a,b){var c=(a[2]-a[0])/2*(b-1),d=(a[3]-a[1])/2*(b-1);a[0]-=c;a[2]+=c;a[1]-=d;a[3]+=d}function Qg(a,b){return Mg(a,b)&&(a[0]==b[2]||a[2]==b[0]||a[1]==b[3]||a[3]==b[1])}function Rg(a,b,c){a=[a[0],a[1],a[0],a[3],a[2],a[1],a[2],a[3]];b(a,a,2);return vg([a[0],a[2],a[4],a[6]],[a[1],a[3],a[5],a[7]],c)};/*
Latitude/longitude spherical geodesy formulae taken from
http://www.movable-type.co.uk/scripts/latlong.html
Licenced under CC-BY-3.0.
*/
function Sg(a){this.radius=a}function Tg(a,b,c){var d=Zb(b[1]),e=Zb(c[1]),f=(e-d)/2;b=Zb(c[0]-b[0])/2;d=Math.sin(f)*Math.sin(f)+Math.sin(b)*Math.sin(b)*Math.cos(d)*Math.cos(e);return 2*a.radius*Math.atan2(Math.sqrt(d),Math.sqrt(1-d))};var Ug=new Sg(6370997);var Vg={},Wg="object"==typeof Proj4js;Vg.degrees=2*Math.PI*Ug.radius/360;Vg.ft=0.3048;Vg.m=1;function Xg(a){this.a=a.code;this.Da=a.units;this.p=s(a.extent)?a.extent:null;this.e=s(a.axisOrientation)?a.axisOrientation:"enu";this.l=s(a.global)?a.global:!1;this.i=null}Xg.prototype.c=k("a");Xg.prototype.u=k("p");Xg.prototype.b=k("Da");Xg.prototype.f=function(){return Vg[this.Da]};function Yg(a){return a.e}
function Zg(a,b){var c={units:a.units,axisOrientation:a.axis};nc(c,b);Xg.call(this,c);this.h=a;this.g=null}v(Zg,Xg);Zg.prototype.f=function(){var a=this.h.to_meter;s(a)||(a=Vg[this.Da]);return a};
Zg.prototype.d=function(a,b){if("degrees"==this.Da)return a;null===this.g&&(this.g=$g(this,ah({code:"EPSG:4326",extent:null})));var c=[b[0]-a/2,b[1],b[0]+a/2,b[1],b[0],b[1]-a/2,b[0],b[1]+a/2],c=this.g(c,c,2),d=Tg(Ug,c.slice(0,2),c.slice(2,4)),c=Tg(Ug,c.slice(4,6),c.slice(6,8)),d=(d+c)/2;"ft"==this.Da&&(d/=0.3048);return d};function bh(a){return a.h}var ch={},dh={},eh={};function fh(a){gh(a);wb(a,function(b){wb(a,function(a){b!==a&&hh(b,a,ih)})})}
function jh(){var a=kh,b=lh,c=mh;wb(nh,function(d){wb(a,function(a){hh(d,a,b);hh(a,d,c)})})}function oh(a){dh[a.a]=a;hh(a,a,ih)}function gh(a){wb(a,function(a){oh(a)})}function ph(a){return null!=a?na(a)?qh(a):a:qh("EPSG:3857")}function hh(a,b,c){a=a.a;b=b.a;a in eh||(eh[a]={});eh[a][b]=c}function qh(a){var b;a instanceof Xg?b=a:na(a)?(b=dh[a],Wg&&!s(b)&&(b=ah({code:a,extent:null})),s(b)||(b=null)):b=null;return b}
function ah(a){var b=a.code,c=ch[b];if(!s(c)){var d=new Proj4js.Proj(b),e=d.srsCode,c=ch[e];s(c)||(a=lc(a),a.code=e,c=new Zg(d,a),ch[e]=c);ch[b]=c}return c}function rh(a,b){var c=qh(a),d=qh(b);return $g(c,d)}
function $g(a,b){var c=a.a,d=b.a,e;c in eh&&d in eh[c]&&(e=eh[c][d]);if(Wg&&!s(e)){var f=bh(a instanceof Zg?a:ah({code:c,extent:null})),g=bh(b instanceof Zg?b:ah({code:d,extent:null}));e=function(a,b,c){var d=a.length;c=1<c?c:2;s(b)||(b=2<c?a.slice():Array(d));for(var e,r=0;r<d;r+=c)e=new Proj4js.Point(a[r],a[r+1]),e=Proj4js.transform(f,g,e),b[r]=e.x,b[r+1]=e.y;return b};hh(a,b,e)}s(e)||(e=sh);return e}function sh(a,b){if(s(b)&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}
function ih(a,b){var c;if(s(b)){c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c};function G(a){rg.call(this);a=s(a)?a:{};var b={};b.center=s(a.center)?a.center:null;b.projection=ph(a.projection);var c,d,e;if(s(a.resolutions))c=a.resolutions,d=c[0],e=c[c.length-1],c=kg(c);else{d=a.maxResolution;s(d)||(d=a.projection,e=ph(d).u(),d=(null===e?360*Vg.degrees/Vg[d.Da]:Math.max(e[2]-e[0],e[3]-e[1]))/256);c=a.maxZoom;s(c)||(c=28);var f=a.zoomFactor;s(f)||(f=2);e=d/Math.pow(f,c);c=lg(f,d,c)}this.g=d;this.n=e;(s(a.enableRotation)?a.enableRotation:1)?(d=a.constrainRotation,d=s(d)&&!0!==
d?!1===d?ng:oa(d)?og(d):ng:pg()):d=mg;this.f=new qg(s(a.extent)?gg(a.extent):hg,c,d);s(a.resolution)?b.resolution=a.resolution:s(a.zoom)&&(b.resolution=this.constrainResolution(this.g,a.zoom));b.rotation=s(a.rotation)?a.rotation:0;this.I(b)}v(G,rg);G.prototype.constrainResolution=function(a,b,c){return this.f.resolution(a,b||0,c||0)};G.prototype.constrainRotation=function(a,b){return this.f.rotation(a,b||0)};G.prototype.a=function(){return this.get("center")};G.prototype.getCenter=G.prototype.a;
G.prototype.v=function(a){var b=this.a(),c=this.b();return[b[0]-c*a[0]/2,b[1]-c*a[1]/2,b[0]+c*a[0]/2,b[1]+c*a[1]/2]};G.prototype.i=function(){return this.get("projection")};G.prototype.getProjection=G.prototype.i;G.prototype.b=function(){return this.get("resolution")};G.prototype.getResolution=G.prototype.b;function th(a,b){return Math.max(Kg(a)/b[0],Ig(a)/b[1])}function uh(a){var b=a.g,c=Math.log(b/a.n)/Math.log(2);return function(a){return b/Math.pow(2,a*c)}}G.prototype.e=function(){return this.get("rotation")};
G.prototype.getRotation=G.prototype.e;function vh(a){var b=a.g,c=Math.log(b/a.n)/Math.log(2);return function(a){return Math.log(b/a)/Math.log(2)/c}}l=G.prototype;l.W=function(){return this};function wh(a){var b=a.a(),c=a.i(),d=a.b();a=a.e();return{center:b.slice(),projection:s(c)?c:null,resolution:d,rotation:s(a)?a:0}}l.Lf=function(){var a,b=this.b();if(s(b)){var c,d=0;do{c=this.constrainResolution(this.g,d);if(c==b){a=d;break}++d}while(c>this.n)}return a};
l.Xd=function(a,b){if(!Ng(a)){this.ya(Gg(a));var c=th(a,b),d=this.constrainResolution(c,0,0);d<c&&(d=this.constrainResolution(d,-1,0));this.d(d)}};
l.uf=function(a,b,c){var d=s(c)?c:{};c=s(d.padding)?d.padding:[0,0,0,0];var e=s(d.constrainResolution)?d.constrainResolution:!0,f=s(d.nearest)?d.nearest:!1,g=s(d.minResolution)?d.minResolution:0,h=a.j,m=this.e(),d=Math.cos(-m),m=Math.sin(-m),n=Infinity,p=Infinity,q=-Infinity,r=-Infinity;a=a.a;for(var u=0,x=h.length;u<x;u+=a)var B=h[u]*d-h[u+1]*m,y=h[u]*m+h[u+1]*d,n=Math.min(n,B),p=Math.min(p,y),q=Math.max(q,B),r=Math.max(r,y);b=th([n,p,q,r],[b[0]-c[1]-c[3],b[1]-c[0]-c[2]]);b=isNaN(b)?g:Math.max(b,
g);e&&(e=this.constrainResolution(b,0,0),!f&&e<b&&(e=this.constrainResolution(e,-1,0)),b=e);this.d(b);m=-m;f=(n+q)/2+(c[1]-c[3])/2*b;c=(p+r)/2+(c[0]-c[2])/2*b;this.ya([f*d-c*m,c*d+f*m])};l.pf=function(a,b,c){var d=this.e(),e=Math.cos(-d),d=Math.sin(-d),f=a[0]*e-a[1]*d;a=a[1]*e+a[0]*d;var g=this.b(),f=f+(b[0]/2-c[0])*g;a+=(c[1]-b[1]/2)*g;d=-d;this.ya([f*e-a*d,a*e+f*d])};l.vd=function(){return null!=this.a()&&s(this.b())};
l.rotate=function(a,b){if(s(b)){var c,d=this.a();s(d)&&(c=[d[0]-b[0],d[1]-b[1]],af(c,a-this.e()),We(c,b));this.ya(c)}this.l(a)};l.ya=function(a){this.w("center",a)};G.prototype.setCenter=G.prototype.ya;G.prototype.o=function(a){this.w("projection",a)};G.prototype.setProjection=G.prototype.o;G.prototype.d=function(a){this.w("resolution",a)};G.prototype.setResolution=G.prototype.d;G.prototype.l=function(a){this.w("rotation",a)};G.prototype.setRotation=G.prototype.l;
G.prototype.A=function(a){a=this.constrainResolution(this.g,a,0);this.d(a)};function xh(a){return 1-Math.pow(1-a,3)};function yh(a){return 3*a*a-2*a*a*a}function zh(a){return a}function Ah(a){return 0.5>a?yh(2*a):1-yh(2*(a-0.5))};function Bh(a){var b=a.source,c=s(a.start)?a.start:za(),d=b[0],e=b[1],f=s(a.duration)?a.duration:1E3,g=s(a.easing)?a.easing:yh;return function(a,b){if(b.time<c)return b.animate=!0,b.viewHints[0]+=1,!0;if(b.time<c+f){var n=1-g((b.time-c)/f),p=d-b.view2DState.center[0],q=e-b.view2DState.center[1];b.animate=!0;b.view2DState.center[0]+=n*p;b.view2DState.center[1]+=n*q;b.viewHints[0]+=1;return!0}return!1}}
function Ch(a){var b=s(a.rotation)?a.rotation:0,c=s(a.start)?a.start:za(),d=s(a.duration)?a.duration:1E3,e=s(a.easing)?a.easing:yh,f=s(a.anchor)?a.anchor:null;return function(a,h){if(h.time<c)return h.animate=!0,h.viewHints[0]+=1,!0;if(h.time<c+d){var m=1-e((h.time-c)/d),m=(b-h.view2DState.rotation)*m;h.animate=!0;h.view2DState.rotation+=m;if(null!==f){var n=h.view2DState.center;n[0]-=f[0];n[1]-=f[1];af(n,m);We(n,f)}h.viewHints[0]+=1;return!0}return!1}}
function Dh(a){var b=a.resolution,c=s(a.start)?a.start:za(),d=s(a.duration)?a.duration:1E3,e=s(a.easing)?a.easing:yh;return function(a,g){if(g.time<c)return g.animate=!0,g.viewHints[0]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),m=b-g.view2DState.resolution;g.animate=!0;g.view2DState.resolution+=h*m;g.viewHints[0]+=1;return!0}return!1}};function Eh(){Je.call(this);this.g=null}v(Eh,Je);Eh.prototype.setMap=function(a){this.g=a};function Fh(a,b,c,d,e){if(null!=c){var f=b.e(),g=b.a();s(f)&&(s(g)&&s(e)&&0<e)&&(a.sa(Ch({rotation:f,duration:e,easing:xh})),s(d)&&a.sa(Bh({source:g,duration:e,easing:xh})));b.rotate(c,d)}}function Gh(a,b,c,d,e){var f=b.b();c=b.constrainResolution(f,c,0);Hh(a,b,c,d,e)}
function Hh(a,b,c,d,e){if(null!=c){var f=b.b(),g=b.a();s(f)&&(s(g)&&s(e)&&0<e)&&(a.sa(Dh({resolution:f,duration:e,easing:xh})),s(d)&&a.sa(Bh({source:g,duration:e,easing:xh})));if(null!=d){var h;a=b.a();e=b.b();s(a)&&s(e)&&(h=[d[0]-c*(d[0]-a[0])/e,d[1]-c*(d[1]-a[1])/e]);b.ya(h)}b.d(c)}};function Ih(){Eh.call(this);this.i=!1;this.p={};this.b=[]}v(Ih,Eh);function Jh(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return[c/b,d/b]}l=Ih.prototype;l.mb=fa;l.ab=ze;l.$a=ze;
l.za=function(a){if(!(a instanceof Of))return!0;var b=!1,c=a.type;if(c===Xf||c===Zf||c===Vf)c=a.d,a.type==Vf?delete this.p[c.pointerId]:a.type==Xf?this.p[c.pointerId]=c:c.pointerId in this.p&&(this.p[c.pointerId]=c),this.b=fc(this.p);this.i&&(a.type==Zf?this.mb(a):a.type==Vf&&(this.i=this.ab(a)));a.type==Xf&&(this.i=a=this.$a(a),b=this.Zc(a));return!b};l.Zc=ze;function Kh(){Je.call(this);this.extent=void 0;this.f=-1;this.g={};this.l=this.i=0}v(Kh,Je);Kh.prototype.e=function(a,b){var c=s(b)?b:[NaN,NaN];this.ta(a[0],a[1],c,Infinity);return c};Kh.prototype.ub=ze;Kh.prototype.transform=function(a,b){this.tb(rh(a,b));return this};function Lh(a,b,c,d){var e=c[0],f=c[1],g=c[4],h=c[5],m=c[12];c=c[13];var n=s(d)?d:[],p=0,q,r;q=0;for(r=a.length;q<r;q+=b){var u=a[q],x=a[q+1];n[p++]=e*u+g*x+m;n[p++]=f*u+h*x+c}s(d)&&n.length!=p&&(n.length=p);return n};function Mh(){Kh.call(this);this.b="XY";this.a=2;this.j=null}v(Mh,Kh);function Nh(a){if("XY"==a)return 2;if("XYZ"==a||"XYM"==a)return 3;if("XYZM"==a)return 4;throw Error("unsupported layout: "+a);}l=Mh.prototype;l.ub=ze;l.u=function(a){if(this.f!=this.c){var b=this.j,c=this.j.length,d=this.a,e=Bg(this.extent);this.extent=Eg(e,b,0,c,d);this.f=this.c}return Og(this.extent,a)};l.Va=function(){return this.j.slice(0,this.a)};l.Wa=function(){return this.j.slice(this.j.length-this.a)};l.Xa=k("b");
l.ha=function(a){this.l!=this.c&&(ic(this.g),this.i=0,this.l=this.c);if(0>a||0!==this.i&&a<=this.i)return this;var b=a.toString();if(this.g.hasOwnProperty(b))return this.g[b];var c=this.Kb(a);if(c.j.length<this.j.length)return this.g[b]=c;this.i=a;return this};l.Kb=function(){return this};function Oh(a,b,c){a.a=Nh(b);a.b=b;a.j=c}
function Ph(a,b,c,d){if(s(b))c=Nh(b);else{for(b=0;b<d;++b){if(0===c.length){a.b="XY";a.a=2;return}c=c[0]}c=c.length;if(2==c)b="XY";else if(3==c)b="XYZ";else if(4==c)b="XYZM";else throw Error("unsupported stride: "+c);}a.b=b;a.a=c}l.tb=function(a){null!==this.j&&(a(this.j,this.j,this.a),this.k())};function Qh(a,b,c){var d=a.j;return null===d?null:Lh(d,a.a,b,c)};function Rh(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],m=a[b+1],e=e+(g*h-f*m),f=h,g=m;return e/2}function Sh(a,b,c,d){var e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],e=e+Rh(a,b,h,d);b=h}return e};function Th(a,b,c,d){a=c-a;b=d-b;return a*a+b*b};function Uh(a,b,c,d,e,f,g){var h=a[b],m=a[b+1],n=a[c]-h,p=a[c+1]-m;if(0!==n||0!==p)if(f=((e-h)*n+(f-m)*p)/(n*n+p*p),1<f)b=c;else if(0<f){for(e=0;e<d;++e)g[e]=a[b+e]+f*(a[c+e]-a[b+e]);g.length=d;return}for(e=0;e<d;++e)g[e]=a[b+e];g.length=d}function Vh(a,b,c,d,e){var f=a[b],g=a[b+1];for(b+=d;b<c;b+=d){var h=a[b],m=a[b+1],f=Th(f,g,h,m);f>e&&(e=f);f=h;g=m}return e}function Wh(a,b,c,d,e){var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];e=Vh(a,b,h,d,e);b=h}return e}
function Xh(a,b,c,d,e,f,g,h,m,n,p){if(b==c)return n;var q;if(0===e){q=Th(g,h,a[b],a[b+1]);if(q<n){for(p=0;p<d;++p)m[p]=a[b+p];m.length=d;return q}return n}for(var r=s(p)?p:[NaN,NaN],u=b+d;u<c;)if(Uh(a,u-d,u,d,g,h,r),q=Th(g,h,r[0],r[1]),q<n){n=q;for(p=0;p<d;++p)m[p]=r[p];m.length=d;u+=d}else u+=d*Math.max((Math.sqrt(q)-Math.sqrt(n))/e|0,1);if(f&&(Uh(a,c-d,b,d,g,h,r),q=Th(g,h,r[0],r[1]),q<n)){n=q;for(p=0;p<d;++p)m[p]=r[p];m.length=d}return n}
function Zh(a,b,c,d,e,f,g,h,m,n,p){p=s(p)?p:[NaN,NaN];var q,r;q=0;for(r=c.length;q<r;++q){var u=c[q];n=Xh(a,b,u,d,e,f,g,h,m,n,p);b=u}return n};function $h(a,b){var c=0,d,e;d=0;for(e=b.length;d<e;++d)a[c++]=b[d];return c}function ai(a,b,c,d){var e,f;e=0;for(f=c.length;e<f;++e){var g=c[e],h;for(h=0;h<d;++h)a[b++]=g[h]}return b}function bi(a,b,c,d,e){e=s(e)?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g)b=ai(a,b,c[g],d),e[f++]=b;e.length=f;return e};function ci(a,b,c,d,e){e=s(e)?e:[];for(var f=0;b<c;b+=d)e[f++]=a.slice(b,b+d);e.length=f;return e}function di(a,b,c,d,e){e=s(e)?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g){var m=c[g];e[f++]=ci(a,b,m,d,e[f]);b=m}e.length=f;return e};function ei(a,b,c,d,e,f,g){var h=(c-b)/d;if(3>h){for(;b<c;b+=d)f[g++]=a[b],f[g++]=a[b+1];return g}var m=Array(h);m[0]=1;m[h-1]=1;c=[b,c-d];for(var n=0,p;0<c.length;){var q=c.pop(),r=c.pop(),u=0,x=a[r],B=a[r+1],y=a[q],E=a[q+1];for(p=r+d;p<q;p+=d){var C;C=a[p];var M=a[p+1],R=x,la=B,W=y-R,qa=E-la;if(0!==W||0!==qa){var Ea=((C-R)*W+(M-la)*qa)/(W*W+qa*qa);1<Ea?(R=y,la=E):0<Ea&&(R+=W*Ea,la+=qa*Ea)}C=Th(C,M,R,la);C>u&&(n=p,u=C)}u>e&&(m[(n-b)/d]=1,r+d<n&&c.push(r,n),n+d<q&&c.push(n,q))}for(p=0;p<h;++p)m[p]&&
(f[g++]=a[b+p*d],f[g++]=a[b+p*d+1]);return g}
function fi(a,b,c,d,e,f,g,h){var m,n;m=0;for(n=c.length;m<n;++m){var p=c[m];a:{var q=a,r=p,u=d,x=e,B=f;if(b!=r){var y=x*Math.round(q[b]/x),E=x*Math.round(q[b+1]/x);b+=u;B[g++]=y;B[g++]=E;var C=void 0,M=void 0;do if(C=x*Math.round(q[b]/x),M=x*Math.round(q[b+1]/x),b+=u,b==r){B[g++]=C;B[g++]=M;break a}while(C==y&&M==E);for(;b<r;){var R,la;R=x*Math.round(q[b]/x);la=x*Math.round(q[b+1]/x);b+=u;if(R!=C||la!=M){var W=C-y,qa=M-E,Ea=R-y,Na=la-E;W*Na==qa*Ea&&(0>W&&Ea<W||W==Ea||0<W&&Ea>W)&&(0>qa&&Na<qa||qa==
Na||0<qa&&Na>qa)||(B[g++]=C,B[g++]=M,y=C,E=M);C=R;M=la}}B[g++]=C;B[g++]=M}}h.push(g);b=p}return g};function gi(a,b){Mh.call(this);this.d=this.h=-1;this.J(a,b)}v(gi,Mh);l=gi.prototype;l.L=function(){var a=new gi(null);hi(a,this.b,this.j.slice());return a};l.ta=function(a,b,c,d){if(d<zg(this.u(),a,b))return d;this.d!=this.c&&(this.h=Math.sqrt(Vh(this.j,0,this.j.length,this.a,0)),this.d=this.c);return Xh(this.j,0,this.j.length,this.a,this.h,!0,a,b,c,d)};l.ze=function(){return Rh(this.j,0,this.j.length,this.a)};l.C=function(){return ci(this.j,0,this.j.length,this.a)};
l.Kb=function(a){var b=[];b.length=ei(this.j,0,this.j.length,this.a,a,b,0);a=new gi(null);hi(a,"XY",b);return a};l.D=ca("LinearRing");l.J=function(a,b){null===a?hi(this,"XY",null):(Ph(this,b,a,1),null===this.j&&(this.j=[]),this.j.length=ai(this.j,0,a,this.a),this.k())};function hi(a,b,c){Oh(a,b,c);a.k()};function ii(a,b){Mh.call(this);this.J(a,b)}v(ii,Mh);l=ii.prototype;l.L=function(){var a=new ii(null);ji(a,this.b,this.j.slice());return a};l.ta=function(a,b,c,d){var e=this.j;a=Th(a,b,e[0],e[1]);if(a<d){d=this.a;for(b=0;b<d;++b)c[b]=e[b];c.length=d;return a}return d};l.C=function(){return this.j.slice()};l.u=function(a){if(this.f!=this.c){var b=this.j,c=b[0],b=b[1];this.extent=wg(c,b,c,b,this.extent);this.f=this.c}return Og(this.extent,a)};l.D=ca("Point");
l.J=function(a,b){null===a?ji(this,"XY",null):(Ph(this,b,a,0),null===this.j&&(this.j=[]),this.j.length=$h(this.j,a),this.k())};function ji(a,b,c){Oh(a,b,c);a.k()};function ki(a,b,c,d,e,f){for(var g=!1,h=a[c-d],m=a[c-d+1];b<c;b+=d){var n=a[b],p=a[b+1];m>f!=p>f&&e<(n-h)*(f-m)/(p-m)+h&&(g=!g);h=n;m=p}return g}function li(a,b,c,d,e,f){if(0===c.length||!ki(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;b<g;++b)if(ki(a,c[b-1],c[b],d,e,f))return!1;return!0};function mi(a,b,c,d,e,f,g){var h,m,n,p,q,r=e[f+1],u=[],x=c[0];n=a[x-d];q=a[x-d+1];for(h=b;h<x;h+=d){p=a[h];m=a[h+1];if(r<=q&&m<=r||q<=r&&r<=m)n=(r-q)/(m-q)*(p-n)+n,u.push(n);n=p;q=m}x=NaN;q=-Infinity;u.sort();n=u[0];h=1;for(m=u.length;h<m;++h){p=u[h];var B=Math.abs(p-n);B>q&&(n=(n+p)/2,li(a,b,c,d,n,r)&&(x=n,q=B));n=p}isNaN(x)&&(x=e[f]);return s(g)?(g.push(x,r),g):[x,r]};function ni(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],m=a[b+1],e=e+(h-f)*(m+g),f=h,g=m;return 0<e}function oi(a,b,c){var d=0,e,f;e=0;for(f=b.length;e<f;++e){var g=b[e],d=ni(a,d,g,c);if(0===e?!d:d)return!1;d=g}return!0}function pi(a,b,c,d){var e,f;e=0;for(f=c.length;e<f;++e){var g=c[e],h=ni(a,b,g,d);if(0===e?!h:h)for(var h=a,m=g,n=d;b<m-n;){var p;for(p=0;p<n;++p){var q=h[b+p];h[b+p]=h[m-n+p];h[m-n+p]=q}b+=n;m-=n}b=g}return b};function qi(a,b){Mh.call(this);this.d=[];this.p=-1;this.n=null;this.A=this.o=this.v=-1;this.h=null;this.J(a,b)}v(qi,Mh);l=qi.prototype;l.mf=function(a){null===this.j?this.j=a.j.slice():ig(this.j,a.j);this.d.push(this.j.length);this.k()};l.L=function(){var a=new qi(null);ri(a,this.b,this.j.slice(),this.d.slice());return a};
l.ta=function(a,b,c,d){if(d<zg(this.u(),a,b))return d;this.o!=this.c&&(this.v=Math.sqrt(Wh(this.j,0,this.d,this.a,0)),this.o=this.c);return Zh(this.j,0,this.d,this.a,this.v,!0,a,b,c,d)};l.ub=function(a,b){return li(si(this),0,this.d,this.a,a,b)};l.Sg=function(){return Sh(si(this),0,this.d,this.a)};l.C=function(){return di(this.j,0,this.d,this.a)};function ti(a){if(a.p!=a.c){var b=Gg(a.u());a.n=mi(si(a),0,a.d,a.a,b,0);a.p=a.c}return a.n}l.Af=function(){return new ii(ti(this))};
l.Df=function(a){if(0>a||this.d.length<=a)return null;var b=new gi(null);hi(b,this.b,this.j.slice(0===a?0:this.d[a-1],this.d[a]));return b};l.ee=function(){var a=this.b,b=this.j,c=this.d,d=[],e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],m=new gi(null);hi(m,a,b.slice(e,h));d.push(m);e=h}return d};function si(a){if(a.A!=a.c){var b=a.j;oi(b,a.d,a.a)?a.h=b:(a.h=b.slice(),a.h.length=pi(a.h,0,a.d,a.a));a.A=a.c}return a.h}
l.Kb=function(a){var b=[],c=[];b.length=fi(this.j,0,this.d,this.a,Math.sqrt(a),b,0,c);a=new qi(null);ri(a,"XY",b,c);return a};l.D=ca("Polygon");l.J=function(a,b){if(null===a)ri(this,"XY",null,this.d);else{Ph(this,b,a,2);null===this.j&&(this.j=[]);var c=bi(this.j,0,a,this.a,this.d);this.j.length=0===c.length?0:c[c.length-1];this.k()}};function ri(a,b,c,d){Oh(a,b,c);a.d=d;a.k()}
function ui(a,b,c,d){var e=s(d)?d:32;d=[];var f;for(f=0;f<e;++f){var g=2*Math.PI*f/e,h=Zb(b[1]),m=c/a.radius,n=Math.asin(Math.sin(h)*Math.cos(m)+Math.cos(h)*Math.sin(m)*Math.cos(g));Eb(d,[180*(Zb(b[0])+Math.atan2(Math.sin(g)*Math.sin(m)*Math.cos(h),Math.cos(m)-Math.sin(h)*Math.sin(n)))/Math.PI,180*n/Math.PI])}d.push(d[0],d[1]);a=new qi(null);ri(a,"XY",d,[d.length]);return a};function vi(a,b,c,d,e,f){Qd.call(this,a,b);this.vectorContext=c;this.frameState=d;this.context=e;this.glContext=f}v(vi,Qd);function wi(a){this.b=this.c=this.e=this.d=this.a=null;this.f=a}v(wi,Ld);function xi(a){var b=a.e,c=a.c;a=xb([b,[b[0],c[1]],c,[c[0],b[1]]],a.a.wa,a.a);a[4]=a[0].slice();return new qi([a])}wi.prototype.F=function(){this.setMap(null)};wi.prototype.g=function(a){var b=this.b,c=this.f;a.vectorContext.Cc(Infinity,function(a){a.Ca(c.d,c.b);a.oa(c.c);a.Jb(b,null)})};wi.prototype.M=k("b");function yi(a){null===a.a||(null===a.e||null===a.c)||a.a.R()}
wi.prototype.setMap=function(a){null!==this.d&&(re(this.d),this.d=null,this.a.R(),this.a=null);this.a=a;null!==this.a&&(this.d=z(a,"postcompose",this.g,!1,this),yi(this))};function zi(a,b){Qd.call(this,a);this.coordinate=b}v(zi,Qd);function Ai(a){Ih.call(this);a=s(a)?a:{};this.d=new wi(s(a.style)?a.style:null);this.a=null;this.e=s(a.condition)?a.condition:Ae}v(Ai,Ih);l=Ai.prototype;l.mb=function(a){if(fg(a)){var b=this.d;a=a.pixel;b.e=this.a;b.c=a;b.b=xi(b);yi(b)}};l.M=function(){return this.d.M()};l.Le=fa;
l.ab=function(a){if(!fg(a))return!0;this.d.setMap(null);var b=a.pixel[0]-this.a[0],c=a.pixel[1]-this.a[1];64<=b*b+c*c&&(this.Le(a),A(this,new zi("boxend",a.coordinate)));return!1};l.$a=function(a){if(fg(a)&&ae(a.a)&&this.e(a)){this.a=a.pixel;this.d.setMap(a.map);var b=this.d,c=this.a;b.e=this.a;b.c=c;b.b=xi(b);yi(b);A(this,new zi("boxstart",a.coordinate));return!0}return!1};l.Zc=Be;var Bi={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var Ci=/^#(?:[0-9a-f]{3}){1,2}$/i,Di=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,Ei=/^(?:rgba)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|1|0\.\d{0,10})\)$/i;function Fi(a){if(!na(a)){var b=a[0];b!=(b|0)&&(b=b+0.5|0);var c=a[1];c!=(c|0)&&(c=c+0.5|0);var d=a[2];d!=(d|0)&&(d=d+0.5|0);a="rgba("+b+","+c+","+d+","+a[3]+")"}return a}
var Hi=function(){var a={},b=0;return function(c,d){var e;if(a.hasOwnProperty(c))e=a[c];else{if(1024<=b){e=0;for(var f in a)0===(e++&3)&&(delete a[f],--b)}e=Gi(c);a[c]=e;++b}s(d)&&(d[0]=e[0],d[1]=e[1],d[2]=e[2],d[3]=e[3],e=d);return e}}();
function Gi(a){var b=!1;Bi.hasOwnProperty(a)&&(a=Bi[a],b=!0);var c,d;if(b||Ci.exec(a))return d=3==a.length-1?1:2,b=parseInt(a.substr(1+0*d,d),16),c=parseInt(a.substr(1+1*d,d),16),a=parseInt(a.substr(1+2*d,d),16),1==d&&(b=(b<<4)+b,c=(c<<4)+c,a=(a<<4)+a),b=[b,c,a,1];if(d=Ei.exec(a))return b=Number(d[1]),c=Number(d[2]),a=Number(d[3]),d=Number(d[4]),b=[b,c,a,d],Ii(b,b);if(d=Di.exec(a))return b=Number(d[1]),c=Number(d[2]),a=Number(d[3]),b=[b,c,a,1],Ii(b,b);throw Error(a+" is not a valid color");}
function Ii(a,b){var c=s(b)?b:[];c[0]=Xb(a[0]+0.5|0,0,255);c[1]=Xb(a[1]+0.5|0,0,255);c[2]=Xb(a[2]+0.5|0,0,255);c[3]=Xb(a[3],0,1);return c};var Ji=[0,0,0,1],Ki=[],Li=[0,0,0,1];function Mi(a){a=s(a)?a:{};this.a=s(a.color)?a.color:null}Mi.prototype.c=k("a");function Ni(a){this.n=a.opacity;this.o=a.origin;this.v=a.rotateWithView;this.e=a.rotation;this.f=a.scale;this.A=a.We}Ni.prototype.g=k("e");Ni.prototype.i=k("f");function Oi(a){a=s(a)?a:{};this.a=s(a.color)?a.color:null;this.b=a.lineCap;this.d=s(a.lineDash)?a.lineDash:null;this.e=a.lineJoin;this.f=a.miterLimit;this.c=a.width}l=Oi.prototype;l.lh=k("a");l.Bf=k("b");l.mh=k("d");l.Cf=k("e");l.Ef=k("f");l.nh=k("c");function Pi(a){a=s(a)?a:{};this.h=yc("CANVAS");this.c=null;this.b=s(a.fill)?a.fill:null;this.d=a.radius;this.a=s(a.stroke)?a.stroke:null;var b;a=this.h;var c;null===this.a?c=0:(b=Fi(this.a.a),c=this.a.c,s(c)||(c=1));var d=2*(this.d+c)+1;a.height=d;a.width=d;var d=a.width,e=a.getContext("2d");e.arc(d/2,d/2,this.d,0,2*Math.PI,!0);null!==this.b&&(e.fillStyle=Fi(this.b.a),e.fill());null!==this.a&&(e.strokeStyle=b,e.lineWidth=c,e.stroke());null===this.b?(a=this.c=yc("CANVAS"),a.height=d,a.width=d,e=a.getContext("2d"),
e.arc(d/2,d/2,this.d,0,2*Math.PI,!0),e.fillStyle=Ji,e.fill(),null!==this.a&&(e.strokeStyle=b,e.lineWidth=c,e.stroke())):this.c=a;b=d;this.l=[b/2,b/2];this.p=[b,b];Ni.call(this,{opacity:1,origin:[0,0],rotateWithView:!1,rotation:0,scale:1,We:void 0})}v(Pi,Ni);l=Pi.prototype;l.kc=k("l");l.hh=k("b");l.Ie=k("c");l.rc=k("h");l.Je=ca(2);l.ih=k("d");l.Rb=k("p");l.jh=k("a");l.ne=fa;l.Ke=fa;l.$e=fa;function Qi(a){a=s(a)?a:{};this.d=s(a.fill)?a.fill:null;this.e=s(a.image)?a.image:null;this.b=s(a.stroke)?a.stroke:null;this.c=s(a.text)?a.text:null;this.a=a.zIndex}l=Qi.prototype;l.oh=k("d");l.ph=k("e");l.qh=k("b");l.rh=k("c");l.Kf=k("a");function H(a){Me.call(this);this.Z=void 0;this.a="geometry";this.i=null;this.e=void 0;this.d=null;z(this,Qe(this.a),this.Mc,!1,this);null!=a?a instanceof Kh?this.fb(a):this.I(a):this.fb(null)}v(H,Me);H.prototype.M=function(){return this.get(this.a)};H.prototype.getGeometry=H.prototype.M;l=H.prototype;l.be=k("Z");l.ae=k("a");l.te=k("i");l.ue=k("e");l.Uf=function(){this.k()};l.Mc=function(){null!==this.d&&(re(this.d),this.d=null);var a=this.M();null!=a&&(this.d=z(a,"change",this.Uf,!1,this),this.k())};
l.fb=function(a){this.w(this.a,a)};H.prototype.setGeometry=H.prototype.fb;H.prototype.f=function(a){this.i=a;pa(a)||(a=ja(a)?a:[a],a=ye(a));this.e=a;this.k()};H.prototype.b=function(a){this.Z=a};H.prototype.g=function(a){pe(this,Qe(this.a),this.Mc,!1,this);this.a=a;z(this,Qe(this.a),this.Mc,!1,this);this.Mc()};
function Ri(){var a=new Mi({color:"rgba(255,255,255,0.4)"}),b=new Oi({color:"#3399CC",width:1.25}),c=[new Qi({image:new Pi({fill:a,stroke:b,radius:5}),fill:a,stroke:b})];Ri=function(){return c};return c}function Si(a,b){var c=a.e;s(c)||(c=Ri);return c.call(a,b)}function Ti(a){pa(a)||(a=ja(a)?a:[a],a=ye(a));return a}
function Ui(){var a={},b=[255,255,255,1],c=[0,153,255,1];a.Polygon=[new Qi({fill:new Mi({color:[255,255,255,0.5]})})];a.MultiPolygon=a.Polygon;a.LineString=[new Qi({stroke:new Oi({color:b,width:5})}),new Qi({stroke:new Oi({color:c,width:3})})];a.MultiLineString=a.LineString;a.Point=[new Qi({image:new Pi({radius:6,fill:new Mi({color:c}),stroke:new Oi({color:b,width:1.5})}),zIndex:Infinity})];a.MultiPoint=a.Point;a.GeometryCollection=a.Polygon.concat(a.Point);return a};function Vi(a){a=s(a)?a:{};this.g=this.d=this.e=this.c=this.b=this.a=null;this.f=s(a.style)?Ti(a.style):void 0;s(a.features)?ja(a.features)?this.uc(new D(Db(a.features))):this.uc(a.features):this.uc(new D);s(a.map)&&this.setMap(a.map)}l=Vi.prototype;l.re=function(a){this.a.push(a)};l.Ig=k("a");l.se=function(){Wi(this)};l.Sf=function(a){a=a.element;this.c[sa(a).toString()]=z(a,"change",this.se,!1,this);Wi(this)};l.Tf=function(a){a=sa(a.element).toString();re(this.c[a]);delete this.c[a];Wi(this)};
l.Lg=function(a){if(null!==this.a){var b=this.f;s(b)||(b=Si);var c=a.frameState.view2DState.resolution,d=a.vectorContext,e,f,g;this.a.forEach(function(a){g=b(a,c);if(null!=g)for(f=g.length,e=0;e<f;++e)d.jd(a,g[e])})}};l.Tc=function(a){this.a.remove(a)};function Wi(a){null===a.e||a.e.R()}
l.uc=function(a){null!==this.b&&(wb(this.b,re),this.b=null);null!==this.c&&(wb(fc(this.c),re),this.c=null);this.a=a;null!==a&&(this.b=[z(a,"add",this.Sf,!1,this),z(a,"remove",this.Tf,!1,this)],this.c={},a.forEach(function(a){this.c[sa(a).toString()]=z(a,"change",this.se,!1,this)},this));Wi(this)};l.setMap=function(a){null!==this.d&&(re(this.d),this.d=null);Wi(this);this.e=a;null!==a&&(this.d=z(a,"postcompose",this.Lg,!1,this),a.R())};l.Mg=function(a){this.g=a;this.f=Ti(a);Wi(this)};l.Jg=k("g");
l.Kg=k("f");function Xi(a){if("function"==typeof a.Ha)return a.Ha();if(na(a))return a.split("");if(ka(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return fc(a)}function Yi(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(ka(a)||na(a))wb(a,b,c);else{var d;if("function"==typeof a.O)d=a.O();else if("function"!=typeof a.Ha)if(ka(a)||na(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f)}else d=gc(a);else d=void 0;for(var e=Xi(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)}};function Zi(a,b){this.c={};this.a=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)$i(this,arguments[d],arguments[d+1])}else if(a){a instanceof Zi?(c=a.O(),d=a.Ha()):(c=gc(a),d=fc(a));for(var e=0;e<c.length;e++)$i(this,c[e],d[e])}}l=Zi.prototype;l.N=0;l.Kd=0;l.Ga=k("N");l.Ha=function(){aj(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.c[this.a[b]]);return a};l.O=function(){aj(this);return this.a.concat()};l.ja=function(){return 0==this.N};
l.clear=function(){this.c={};this.Kd=this.N=this.a.length=0};l.remove=function(a){return bj(this.c,a)?(delete this.c[a],this.N--,this.Kd++,this.a.length>2*this.N&&aj(this),!0):!1};function aj(a){if(a.N!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];bj(a.c,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.N!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],bj(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}l.get=function(a,b){return bj(this.c,a)?this.c[a]:b};
function $i(a,b,c){bj(a.c,b)||(a.N++,a.a.push(b),a.Kd++);a.c[b]=c}l.L=function(){return new Zi(this)};function bj(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var cj=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?\x3d[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function dj(a){if(ej){ej=!1;var b=ea.location;if(b){var c=b.href;if(c&&(c=(c=dj(c)[3]||null)&&decodeURIComponent(c))&&c!=b.hostname)throw ej=!0,Error();}}return a.match(cj)}var ej=cb;function fj(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")}
function gj(a,b,c){if(ja(b))for(var d=0;d<b.length;d++)gj(a,String(b[d]),c);else null!=b&&c.push("\x26",a,""===b?"":"\x3d",encodeURIComponent(String(b)))}function hj(a,b){for(var c in b)gj(c,b[c],a);return a};function ij(a,b){var c;if(a instanceof ij)this.xb=s(b)?b:a.xb,jj(this,a.rb),c=a.Eb,kj(this),this.Eb=c,c=a.Ra,kj(this),this.Ra=c,lj(this,a.Tb),c=a.Ma,kj(this),this.Ma=c,mj(this,a.a.L()),c=a.wb,kj(this),this.wb=c;else if(a&&(c=dj(String(a)))){this.xb=!!b;jj(this,c[1]||"",!0);var d=c[2]||"";kj(this);this.Eb=d?decodeURIComponent(d):"";d=c[3]||"";kj(this);this.Ra=d?decodeURIComponent(d):"";lj(this,c[4]);d=c[5]||"";kj(this);this.Ma=d?decodeURIComponent(d):"";mj(this,c[6]||"",!0);c=c[7]||"";kj(this);this.wb=
c?decodeURIComponent(c):""}else this.xb=!!b,this.a=new nj(null,0,this.xb)}l=ij.prototype;l.rb="";l.Eb="";l.Ra="";l.Tb=null;l.Ma="";l.wb="";l.pg=!1;l.xb=!1;
l.toString=function(){var a=[],b=this.rb;b&&a.push(oj(b,pj),":");if(b=this.Ra){a.push("//");var c=this.Eb;c&&a.push(oj(c,pj),"@");a.push(encodeURIComponent(String(b)));b=this.Tb;null!=b&&a.push(":",String(b))}if(b=this.Ma)this.Ra&&"/"!=b.charAt(0)&&a.push("/"),a.push(oj(b,"/"==b.charAt(0)?qj:rj));(b=this.a.toString())&&a.push("?",b);(b=this.wb)&&a.push("#",oj(b,sj));return a.join("")};l.L=function(){return new ij(this)};
function jj(a,b,c){kj(a);a.rb=c?b?decodeURIComponent(b):"":b;a.rb&&(a.rb=a.rb.replace(/:$/,""))}function lj(a,b){kj(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Tb=b}else a.Tb=null}function mj(a,b,c){kj(a);b instanceof nj?(a.a=b,tj(a.a,a.xb)):(c||(b=oj(b,uj)),a.a=new nj(b,0,a.xb))}function vj(a,b,c){kj(a);ja(c)||(c=[String(c)]);wj(a.a,b,c)}function kj(a){if(a.pg)throw Error("Tried to modify a read-only Uri");}
function xj(a){return a instanceof ij?a.L():new ij(a,void 0)}
function yj(a,b){a instanceof ij||(a=xj(a));b instanceof ij||(b=xj(b));var c=a,d=b,e=c.L(),f=!!d.rb;f?jj(e,d.rb):f=!!d.Eb;if(f){var g=d.Eb;kj(e);e.Eb=g}else f=!!d.Ra;f?(g=d.Ra,kj(e),e.Ra=g):f=null!=d.Tb;g=d.Ma;if(f)lj(e,d.Tb);else if(f=!!d.Ma)if("/"!=g.charAt(0)&&(c.Ra&&!c.Ma?g="/"+g:(c=e.Ma.lastIndexOf("/"),-1!=c&&(g=e.Ma.substr(0,c+1)+g))),".."==g||"."==g)g="";else if(-1!=g.indexOf("./")||-1!=g.indexOf("/.")){for(var c=0==g.lastIndexOf("/",0),g=g.split("/"),h=[],m=0;m<g.length;){var n=g[m++];"."==
n?c&&m==g.length&&h.push(""):".."==n?((1<h.length||1==h.length&&""!=h[0])&&h.pop(),c&&m==g.length&&h.push("")):(h.push(n),c=!0)}g=h.join("/")}f?(c=g,kj(e),e.Ma=c):f=""!==d.a.toString();f?mj(e,d.a.toString()?decodeURIComponent(d.a.toString()):""):f=!!d.wb;f&&(d=d.wb,kj(e),e.wb=d);return e}function oj(a,b){return na(a)?encodeURI(a).replace(b,zj):null}function zj(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var pj=/[#\/\?@]/g,rj=/[\#\?:]/g,qj=/[\#\?]/g,uj=/[\#\?@]/g,sj=/#/g;
function nj(a,b,c){this.a=a||null;this.c=!!c}function Aj(a){if(!a.ba&&(a.ba=new Zi,a.N=0,a.a))for(var b=a.a.split("\x26"),c=0;c<b.length;c++){var d=b[c].indexOf("\x3d"),e=null,f=null;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=Bj(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}l=nj.prototype;l.ba=null;l.N=null;l.Ga=function(){Aj(this);return this.N};
l.add=function(a,b){Aj(this);this.a=null;a=Bj(this,a);var c=this.ba.get(a);c||$i(this.ba,a,c=[]);c.push(b);this.N++;return this};l.remove=function(a){Aj(this);a=Bj(this,a);return bj(this.ba.c,a)?(this.a=null,this.N-=this.ba.get(a).length,this.ba.remove(a)):!1};l.clear=function(){this.ba=this.a=null;this.N=0};l.ja=function(){Aj(this);return 0==this.N};l.O=function(){Aj(this);for(var a=this.ba.Ha(),b=this.ba.O(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
l.Ha=function(a){Aj(this);var b=[];if(a){var c=a;Aj(this);c=Bj(this,c);bj(this.ba.c,c)&&(b=Cb(b,this.ba.get(Bj(this,a))))}else for(a=this.ba.Ha(),c=0;c<a.length;c++)b=Cb(b,a[c]);return b};l.get=function(a,b){var c=a?this.Ha(a):[];return 0<c.length?String(c[0]):b};function wj(a,b,c){a.remove(b);0<c.length&&(a.a=null,$i(a.ba,Bj(a,b),Db(c)),a.N+=c.length)}
l.toString=function(){if(this.a)return this.a;if(!this.ba)return"";for(var a=[],b=this.ba.O(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.Ha(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="\x3d"+encodeURIComponent(String(d[f])));a.push(g)}return this.a=a.join("\x26")};l.L=function(){var a=new nj;a.a=this.a;this.ba&&(a.ba=this.ba.L(),a.N=this.N);return a};function Bj(a,b){var c=String(b);a.c&&(c=c.toLowerCase());return c}
function tj(a,b){b&&!a.c&&(Aj(a),a.a=null,Yi(a.ba,function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),wj(this,e,a))},a));a.c=b};function Cj(a,b,c){Ld.call(this);this.d=a;this.b=c;this.a=b||window;this.c=xa(this.Ud,this)}v(Cj,Ld);l=Cj.prototype;l.Z=null;l.Jd=!1;l.start=function(){Dj(this);this.Jd=!1;var a=Ej(this),b=Fj(this);a&&!b&&this.a.mozRequestAnimationFrame?(this.Z=z(this.a,"MozBeforePaint",this.c),this.a.mozRequestAnimationFrame(null),this.Jd=!0):this.Z=a&&b?a.call(this.a,this.c):this.a.setTimeout(De(this.c),20)};
function Dj(a){if(null!=a.Z){var b=Ej(a),c=Fj(a);b&&!c&&a.a.mozRequestAnimationFrame?re(a.Z):b&&c?c.call(a.a,a.Z):a.a.clearTimeout(a.Z)}a.Z=null}l.Ud=function(){this.Jd&&this.Z&&re(this.Z);this.Z=null;this.d.call(this.b,za())};l.F=function(){Dj(this);Cj.H.F.call(this)};function Ej(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null}
function Fj(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};var Gj;
function Hj(){var a=ea.MessageChannel;"undefined"===typeof a&&("undefined"!==typeof window&&window.postMessage&&window.addEventListener)&&(a=function(){var a=document.createElement("iframe");a.style.display="none";a.src="";document.body.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d=b.location.protocol+"//"+b.location.host,a=xa(function(a){if(a.origin==d||a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,
!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a){var b=new a,c={},d=c;b.port1.onmessage=function(){c=c.next;var a=c.Rd;c.Rd=null;a()};return function(a){d.next={Rd:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("script")?function(a){var b=document.createElement("script");b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};
document.documentElement.appendChild(b)}:function(a){ea.setTimeout(a,0)}};function Ij(a){He.call(this);this.wc=a||window;this.Lc=z(this.wc,"resize",this.gg,!1,this);this.yb=uc(this.wc||window)}v(Ij,He);l=Ij.prototype;l.Lc=null;l.wc=null;l.yb=null;l.F=function(){Ij.H.F.call(this);this.Lc&&(re(this.Lc),this.Lc=null);this.yb=this.wc=null};l.gg=function(){var a=uc(this.wc||window);a==this.yb||a&&this.yb&&a.width==this.yb.width&&a.height==this.yb.height||(this.yb=a,A(this,"resize"))};function Jj(a,b,c,d,e){if(!($a||cb&&ob("525")))return!0;if(Qa&&e)return Kj(a);if(e&&!d||!c&&(17==b||18==b||Qa&&91==b))return!1;if(cb&&d&&c)switch(a){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($a&&d&&b==a)return!1;switch(a){case 13:return!($a&&$a&&9<=qb);case 27:return!cb}return Kj(a)}
function Kj(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||cb&&0==a)return!0;switch(a){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 Lj(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Mj(a,b){He.call(this);a&&Nj(this,a,b)}v(Mj,He);l=Mj.prototype;l.nc=null;l.Pc=null;l.sd=null;l.Qc=null;l.ka=-1;l.nb=-1;l.ed=!1;
var Oj={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},Pj={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},Qj=$a||cb&&ob("525"),Rj=Qa&&bb;
Mj.prototype.a=function(a){cb&&(17==this.ka&&!a.mc||18==this.ka&&!a.ma||Qa&&91==this.ka&&!a.rd)&&(this.nb=this.ka=-1);-1==this.ka&&(a.mc&&17!=a.Ya?this.ka=17:a.ma&&18!=a.Ya?this.ka=18:a.rd&&91!=a.Ya&&(this.ka=91));Qj&&!Jj(a.Ya,this.ka,a.Za,a.mc,a.ma)?this.handleEvent(a):(this.nb=bb?Lj(a.Ya):a.Ya,Rj&&(this.ed=a.ma))};Mj.prototype.c=function(a){this.nb=this.ka=-1;this.ed=a.ma};
Mj.prototype.handleEvent=function(a){var b=a.P,c,d,e=b.altKey;$a&&"keypress"==a.type?(c=this.nb,d=13!=c&&27!=c?b.keyCode:0):cb&&"keypress"==a.type?(c=this.nb,d=0<=b.charCode&&63232>b.charCode&&Kj(c)?b.charCode:0):Za?(c=this.nb,d=Kj(c)?b.keyCode:0):(c=b.keyCode||this.nb,d=b.charCode||0,Rj&&(e=this.ed),Qa&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Oj?f=Oj[c]:25==c&&a.Za&&(f=9):g&&g in Pj&&(f=Pj[g]);a=f==this.ka;this.ka=f;b=new Sj(f,d,a,b);b.ma=e;A(this,b)};
function Nj(a,b,c){a.Qc&&Tj(a);a.nc=b;a.Pc=z(a.nc,"keypress",a,c);a.sd=z(a.nc,"keydown",a.a,c,a);a.Qc=z(a.nc,"keyup",a.c,c,a)}function Tj(a){a.Pc&&(re(a.Pc),re(a.sd),re(a.Qc),a.Pc=null,a.sd=null,a.Qc=null);a.nc=null;a.ka=-1;a.nb=-1}Mj.prototype.F=function(){Mj.H.F.call(this);Tj(this)};function Sj(a,b,c,d){d&&Zd(this,d,void 0);this.type="key";this.Ya=a;this.qd=b;this.a=c}v(Sj,Yd);function Uj(a,b){He.call(this);this.a=a;var c=ra(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:null;this.e=!!c&&Yc(c);this.c=z(this.a,bb?"DOMMouseScroll":"mousewheel",this,b)}v(Uj,He);
Uj.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.P;if("mousewheel"==a.type){c=1;if($a||cb&&(Ra||ob("532.0")))c=40;d=Vj(-a.wheelDelta,c);s(a.wheelDeltaX)?(b=Vj(-a.wheelDeltaX,c),c=Vj(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),s(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;oa(this.b)&&(b=Xb(b,-this.b,this.b));oa(this.d)&&(c=Xb(c,-this.d,this.d));this.e&&(b=-b);b=new Wj(d,a,b,c);A(this,b)};function Vj(a,b){return cb&&(Qa||Sa)&&0!=a%b?a:a/b}
Uj.prototype.F=function(){Uj.H.F.call(this);re(this.c);this.c=null};function Wj(a,b,c,d){b&&Zd(this,b,void 0);this.type="mousewheel";this.detail=a;this.b=c;this.a=d}v(Wj,Yd);function Xj(a,b){He.call(this);this.a=a;this.state=b}v(Xj,He);Xj.prototype.d=function(){return sa(this).toString()};Xj.prototype.i=k("a");function Yj(a,b){this.f=a;this.e=b;this.a=[];this.c=[];this.b={}}Yj.prototype.clear=function(){this.a.length=0;this.c.length=0;ic(this.b)};function Zj(a){var b=a.a,c=a.c,d=b[0];1==b.length?(b.length=0,c.length=0):(b[0]=b.pop(),c[0]=c.pop(),ak(a,0));b=a.e(d);delete a.b[b];return d}function bk(a,b){var c=a.f(b);Infinity!=c&&(a.a.push(b),a.c.push(c),a.b[a.e(b)]=!0,ck(a,0,a.a.length-1))}Yj.prototype.Ga=function(){return this.a.length};Yj.prototype.ja=function(){return 0===this.a.length};
function ak(a,b){for(var c=a.a,d=a.c,e=c.length,f=c[b],g=d[b],h=b;b<e>>1;){var m=2*b+1,n=2*b+2,m=n<e&&d[n]<d[m]?n:m;c[b]=c[m];d[b]=d[m];b=m}c[b]=f;d[b]=g;ck(a,h,b)}function ck(a,b,c){var d=a.a;a=a.c;for(var e=d[c],f=a[c];c>b;){var g=c-1>>1;if(a[g]>f)d[c]=d[g],a[c]=a[g],c=g;else break}d[c]=e;a[c]=f}function dk(a){var b=a.f,c=a.a,d=a.c,e=0,f=c.length,g,h,m;for(h=0;h<f;++h)g=c[h],m=b(g),Infinity==m?delete a.b[a.e(g)]:(d[e]=m,c[e++]=g);c.length=e;d.length=e;for(b=(a.a.length>>1)-1;0<=b;b--)ak(a,b)};function ek(a,b){Yj.call(this,function(b){return a.apply(null,b)},function(a){return a[0].d()});this.i=b;this.d=0}v(ek,Yj);ek.prototype.g=function(){--this.d;this.i()};function fk(a){Me.call(this);this.element=s(a.element)?a.element:null;this.A=s(a.target)?rc(a.target):null;this.b=null;this.g=[]}v(fk,Me);fk.prototype.F=function(){Ec(this.element);fk.H.F.call(this)};fk.prototype.a=k("b");fk.prototype.d=fa;fk.prototype.setMap=function(a){null===this.b||Ec(this.element);0!=this.g.length&&(wb(this.g,re),this.g.length=0);this.b=a;null!==this.b&&((null===this.A?a.v:this.A).appendChild(this.element),this.d!==fa&&this.g.push(z(a,"postrender",this.d,!1,this)),a.R())};function gk(a){a=s(a)?a:{};this.h=yc("UL");var b=vc("DIV",{"class":(s(a.className)?a.className:"ol-attribution")+" ol-unselectable"},this.h);fk.call(this,{element:b,target:a.target});this.i=!0;this.f={};this.e={}}v(gk,fk);
gk.prototype.d=function(a){a=a.b;if(null===a)this.i&&(Xc(this.element,!1),this.i=!1);else{var b,c,d,e,f,g,h,m,n,p=a.layerStatesArray,q=lc(a.attributions),r={};b=0;for(c=p.length;b<c;b++)if(d=p[b].layer.a,n=sa(d).toString(),m=d.f,null!==m)for(d=0,e=m.length;d<e;d++)if(g=m[d],h=sa(g).toString(),!(h in q)){f=a.usedTiles[n];var u;if(u=s(f))a:if(null===g.a)u=!0;else{var x=u=void 0,B=void 0,y=void 0;for(y in f)if(y in g.a)for(B=f[y],u=0,x=g.a[y].length;u<x;++u)if(g.a[y][u].a<=B.d&&g.a[y][u].d>=B.a&&g.a[y][u].b<=
B.c&&g.a[y][u].c>=B.b){u=!0;break a}u=!1}u?(h in r&&delete r[h],q[h]=g):r[h]=g}b=[q,r];a=b[0];b=b[1];for(var E in this.f)E in a?(this.e[E]||(Xc(this.f[E],!0),this.e[E]=!0),delete a[E]):E in b?(this.e[E]&&(Xc(this.f[E],!1),delete this.e[E]),delete b[E]):(Ec(this.f[E]),delete this.f[E],delete this.e[E]);for(E in a)c=yc("LI"),c.innerHTML=a[E].c,this.h.appendChild(c),this.f[E]=c,this.e[E]=!0;for(E in b)c=yc("LI"),c.innerHTML=b[E].c,Xc(c,!1),this.h.appendChild(c),this.f[E]=c;E=!hc(this.e);this.i!=E&&(Xc(this.element,
E),this.i=E)}};function hk(a){a=s(a)?a:{};this.f=yc("UL");var b=vc("DIV",{"class":(s(a.className)?a.className:"ol-logo")+" ol-unselectable"},this.f);fk.call(this,{element:b,target:a.target});this.e=!0;this.i={}}v(hk,fk);
hk.prototype.d=function(a){a=a.b;if(null===a)this.e&&(Xc(this.element,!1),this.e=!1);else{var b;a=a.logos;var c=this.i;for(b in c)b in a||(Ec(c[b]),delete c[b]);for(var d in a)if(!(d in c)){b=new Image;b.src=d;var e=a[d];""===e?e=b:(e=vc("A",{href:e,target:"_blank"}),e.appendChild(b));b=vc("LI",void 0,e);this.f.appendChild(b);c[d]=b}d=!hc(a);this.e!=d&&(Xc(this.element,d),this.e=d)}};function ik(a){a=s(a)?a:{};var b=s(a.className)?a.className:"ol-rotate",c=vc("SPAN",{"class":"ol-compass"},s(a.label)?a.label:"\u21e7");this.e=c;var d=vc("SPAN",{role:"tooltip"},s(a.tipLabel)?a.tipLabel:"Reset rotation"),c=vc("BUTTON",{"class":b+"-reset ol-has-tooltip",name:"ResetRotation",type:"button"},d,c),d=new Gf(c);Od(this,d);z(d,sf,ik.prototype.h,!1,this);z(c,["mouseout",Wd],function(){this.blur()},!1);b=vc("DIV",b+" ol-unselectable ol-control",c);fk.call(this,{element:b,target:a.target});
this.i=s(a.duration)?a.duration:250;this.f=s(a.autoHide)?a.autoHide:!0;b.style.opacity=this.f?0:1}v(ik,fk);ik.prototype.h=function(a){a.a.preventDefault();a=this.b;for(var b=a.a().W(),c=b.e();c<-Math.PI;)c+=2*Math.PI;for(;c>Math.PI;)c-=2*Math.PI;s(c)&&(0<this.i&&a.sa(Ch({rotation:c,duration:this.i,easing:xh})),b.l(0))};
ik.prototype.d=function(a){a=a.b;if(null!==a){a=a.view2DState.rotation;var b="rotate("+360*a/(2*Math.PI)+"deg)";this.f&&(this.element.style.opacity=0===a?0:1);this.e.style.msTransform=b;this.e.style.webkitTransform=b;this.e.style.transform=b}};function jk(a){a=s(a)?a:{};var b=s(a.className)?a.className:"ol-zoom",c=s(a.delta)?a.delta:1,d=s(a.zoomInLabel)?a.zoomInLabel:"+",e=s(a.zoomOutLabel)?a.zoomOutLabel:"\u2212",f=s(a.zoomOutTipLabel)?a.zoomOutTipLabel:"Zoom out",g=vc("SPAN",{role:"tooltip"},s(a.zoomInTipLabel)?a.zoomInTipLabel:"Zoom in"),d=vc("BUTTON",{"class":b+"-in ol-has-tooltip",type:"button"},g,d),g=new Gf(d);Od(this,g);z(g,sf,ya(jk.prototype.f,c),!1,this);z(d,["mouseout",Wd],function(){this.blur()},!1);f=vc("SPAN",{role:"tooltip"},
f);e=vc("BUTTON",{"class":b+"-out ol-has-tooltip",type:"button"},f,e);f=new Gf(e);Od(this,f);z(f,sf,ya(jk.prototype.f,-c),!1,this);z(e,["mouseout",Wd],function(){this.blur()},!1);b=vc("DIV",b+" ol-unselectable ol-control",d,e);fk.call(this,{element:b,target:a.target});this.e=s(a.duration)?a.duration:250}v(jk,fk);jk.prototype.f=function(a,b){b.a.preventDefault();var c=this.b,d=c.a().W(),e=d.b();s(e)&&(0<this.e&&c.sa(Dh({resolution:e,duration:this.e,easing:xh})),c=d.constrainResolution(e,a),d.d(c))};function kk(a){a=s(a)?a:{};var b=new D;(s(a.zoom)?a.zoom:1)&&b.push(new jk(a.zoomOptions));(s(a.rotate)?a.rotate:1)&&b.push(new ik(a.rotateOptions));(s(a.attribution)?a.attribution:1)&&b.push(new gk(a.attributionOptions));(s(a.logo)?a.logo:1)&&b.push(new hk(a.logoOptions));return b};function lk(a,b,c){this.e=a;this.b=b;this.f=c;this.a=[];this.c=this.d=0}lk.prototype.update=function(a,b){this.a.push(a,b,za())};function mk(a,b){var c=a.e,d=a.c,e=a.b,f=Math.log(a.b/a.c)/a.e;return Bh({source:b,duration:f,easing:function(a){return d*(Math.exp(c*a*f)-1)/(e-d)}})};function nk(a){a=s(a)?a:{};this.a=s(a.delta)?a.delta:1;Eh.call(this);this.b=s(a.duration)?a.duration:250}v(nk,Eh);nk.prototype.za=function(a){var b=!1,c=a.a;if(a.type==Sf){var b=a.map,d=a.coordinate,c=c.Za?-this.a:this.a,e=b.a().W();Gh(b,e,c,d,this.b);a.preventDefault();b=!0}return!b};function ok(a){Ih.call(this);this.a=(s(a)?a:{}).kinetic;this.d=this.e=null;this.h=s(a.condition)?a.condition:cg;this.f=!1}v(ok,Ih);ok.prototype.mb=function(a){var b=Jh(this.b);if(null!==this.d){this.a&&this.a.update(b[0],b[1]);var c=this.d[0]-b[0],d=b[1]-this.d[1];a=a.map;var e=a.a().W(),f=wh(e),d=c=[c,d],g=f.resolution;d[0]*=g;d[1]*=g;af(c,f.rotation);We(c,f.center);c=e.f.center(c);a.R();e.ya(c)}this.d=b};
ok.prototype.ab=function(a){a=a.map;var b=a.a().W();if(0===this.b.length){var c;if(c=!this.f)if(c=this.a){c=this.a;var d=za()-c.f,e=c.a.length-3;if(c.a[e+2]<d)c=!1;else{for(var f=e-3;0<=f&&c.a[f+2]>d;)f-=3;if(0<=f){var d=c.a[e+2]-c.a[f+2],g=c.a[e]-c.a[f],e=c.a[e+1]-c.a[f+1];c.d=Math.atan2(e,g);c.c=Math.sqrt(g*g+e*e)/d;c=c.c>c.b}else c=!1}}c&&(c=(this.a.b-this.a.c)/this.a.e,e=this.a.d,f=b.a(),this.e=mk(this.a,f),a.sa(this.e),f=a.f(f),c=a.wa([f[0]-c*Math.cos(e),f[1]-c*Math.sin(e)]),c=b.f.center(c),
b.ya(c));sg(b,-1);a.R();return!1}this.d=null;return!0};ok.prototype.$a=function(a){if(0<this.b.length&&this.h(a)){var b=a.map,c=b.a().W();this.d=null;this.i||sg(c,1);b.R();null!==this.e&&Bb(b.A,this.e)&&(c.ya(a.b.view2DState.center),this.e=null);this.a&&(a=this.a,a.a.length=0,a.d=0,a.c=0);this.f=1<this.b.length;return!0}return!1};function pk(a){a=s(a)?a:{};Ih.call(this);this.d=s(a.condition)?a.condition:ag;this.a=void 0}v(pk,Ih);pk.prototype.mb=function(a){if(fg(a)){var b=a.map,c=b.e();a=a.pixel;c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(s(this.a)){a=c-this.a;var d=b.a().W(),e=wh(d);b.R();Fh(b,d,e.rotation-a)}this.a=c}};pk.prototype.ab=function(a){if(!fg(a))return!0;a=a.map;var b=a.a();sg(b,-1);var b=b.W(),c=wh(b).rotation,c=b.constrainRotation(c,0);Fh(a,b,c,void 0,250);return!1};
pk.prototype.$a=function(a){return fg(a)&&ae(a.a)&&this.d(a)?(a=a.map,sg(a.a(),1),a.R(),this.a=void 0,!0):!1};function rk(a){a=s(a)?a:{};Ai.call(this,{condition:s(a.condition)?a.condition:dg,style:s(a.style)?a.style:new Qi({stroke:new Oi({color:[0,0,255,1]})})})}v(rk,Ai);rk.prototype.Le=function(){var a=this.g,b=a.a().W(),c=this.M().u(),d=Gg(c),c=th(c,a.e()),c=b.constrainResolution(c,0,void 0);Hh(a,b,c,d,200)};function sk(a){Eh.call(this);a=s(a)?a:{};this.a=s(a.condition)?a.condition:Ee(cg,eg);this.b=s(a.pixelDelta)?a.pixelDelta:128}v(sk,Eh);sk.prototype.za=function(a){var b=!1;if("key"==a.type){var c=a.a.Ya;if(this.a(a)&&(40==c||37==c||39==c||38==c)){var d=a.map,b=d.a(),e=wh(b),f=e.resolution*this.b,g=0,h=0;40==c?h=-f:37==c?g=-f:39==c?g=f:h=f;c=[g,h];af(c,e.rotation);e=b.a();s(e)&&(s(100)&&d.sa(Bh({source:e,duration:100,easing:zh})),d=b.f.center([e[0]+c[0],e[1]+c[1]]),b.ya(d));a.preventDefault();b=!0}}return!b};function tk(a){Eh.call(this);a=s(a)?a:{};this.b=s(a.condition)?a.condition:eg;this.a=s(a.delta)?a.delta:1;this.d=s(a.duration)?a.duration:100}v(tk,Eh);tk.prototype.za=function(a){var b=!1;if("key"==a.type){var c=a.a.qd;if(this.b(a)&&(43==c||45==c)){b=a.map;c=43==c?this.a:-this.a;b.R();var d=b.a().W();Gh(b,d,c,void 0,this.d);a.preventDefault();b=!0}}return!b};function uk(a){a=s(a)?a:{};Eh.call(this);this.a=0;this.i=s(a.duration)?a.duration:250;this.d=null;this.e=this.b=void 0}v(uk,Eh);uk.prototype.za=function(a){var b=!1;if("mousewheel"==a.type){var b=a.map,c=a.a;this.d=a.coordinate;this.a+=c.a;s(this.b)||(this.b=za());c=Math.max(80-(za()-this.b),0);ea.clearTimeout(this.e);this.e=ea.setTimeout(xa(this.f,this,b),c);a.preventDefault();b=!0}return!b};
uk.prototype.f=function(a){var b=Xb(this.a,-1,1),c=a.a().W();a.R();Gh(a,c,-b,this.d,this.i);this.a=0;this.d=null;this.e=this.b=void 0};function vk(a){Ih.call(this);a=s(a)?a:{};this.d=null;this.e=void 0;this.a=!1;this.f=0;this.h=s(a.threshold)?a.threshold:0.3}v(vk,Ih);vk.prototype.mb=function(a){var b=0,c=this.b[0],d=this.b[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);s(this.e)&&(b=c-this.e,this.f+=b,!this.a&&Math.abs(this.f)>this.h&&(this.a=!0));this.e=c;a=a.map;c=Sc(a.b);d=Jh(this.b);d[0]-=c.x;d[1]-=c.y;this.d=a.wa(d);this.a&&(c=a.a().W(),d=wh(c),a.R(),Fh(a,c,d.rotation+b,this.d))};
vk.prototype.ab=function(a){if(2>this.b.length){a=a.map;var b=a.a();sg(b,-1);if(this.a){var b=b.W(),c=wh(b).rotation,d=this.d,c=b.constrainRotation(c,0);Fh(a,b,c,d,250)}return!1}return!0};vk.prototype.$a=function(a){return 2<=this.b.length?(a=a.map,this.d=null,this.e=void 0,this.a=!1,this.f=0,this.i||sg(a.a(),1),a.R(),!0):!1};function wk(a){a=s(a)?a:{};Ih.call(this);this.d=null;this.f=s(a.duration)?a.duration:400;this.a=void 0;this.e=1}v(wk,Ih);wk.prototype.mb=function(a){var b=1,c=this.b[0],d=this.b[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);s(this.a)&&(b=this.a/e);this.a=e;1!=b&&(this.e=b);a=a.map;var e=a.a().W(),c=wh(e),d=Sc(a.b),f=Jh(this.b);f[0]-=d.x;f[1]-=d.y;this.d=a.wa(f);a.R();Hh(a,e,c.resolution*b,this.d)};
wk.prototype.ab=function(a){if(2>this.b.length){a=a.map;var b=a.a();sg(b,-1);var b=b.W(),c=wh(b).resolution,d=this.d,e=this.f,c=b.constrainResolution(c,0,this.e-1);Hh(a,b,c,d,e);return!1}return!0};wk.prototype.$a=function(a){return 2<=this.b.length?(a=a.map,this.d=null,this.a=void 0,this.e=1,this.i||sg(a.a(),1),a.R(),!0):!1};function xk(a){a=s(a)?a:{};var b=new D,c=new lk(-0.005,0.05,100);(s(a.altShiftDragRotate)?a.altShiftDragRotate:1)&&b.push(new pk);(s(a.doubleClickZoom)?a.doubleClickZoom:1)&&b.push(new nk({delta:a.zoomDelta,duration:a.zoomDuration}));(s(a.dragPan)?a.dragPan:1)&&b.push(new ok({kinetic:c}));(s(a.pinchRotate)?a.pinchRotate:1)&&b.push(new vk);(s(a.pinchZoom)?a.pinchZoom:1)&&b.push(new wk({duration:a.zoomDuration}));if(s(a.keyboard)?a.keyboard:1)b.push(new sk),b.push(new tk({delta:a.zoomDelta,duration:a.zoomDuration}));
(s(a.mouseWheelZoom)?a.mouseWheelZoom:1)&&b.push(new uk({duration:a.zoomDuration}));(s(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new rk);return b};function yk(a){Je.call(this);this.l=qh(a.projection);this.Q=s(a.extent)?a.extent:s(a.projection)?this.l.u():null;this.f=s(a.attributions)?a.attributions:null;this.v=a.logo;this.i=s(a.state)?a.state:1}v(yk,Je);yk.prototype.Vc=fa;yk.prototype.u=k("Q");yk.prototype.a=k("i");function zk(a,b){a.i=b;a.k()};function I(a){Me.call(this);a=lc(a);a.brightness=s(a.brightness)?a.brightness:0;a.contrast=s(a.contrast)?a.contrast:1;a.hue=s(a.hue)?a.hue:0;a.opacity=s(a.opacity)?a.opacity:1;a.saturation=s(a.saturation)?a.saturation:1;a.visible=s(a.visible)?a.visible:!0;a.maxResolution=s(a.maxResolution)?a.maxResolution:Infinity;a.minResolution=s(a.minResolution)?a.minResolution:0;this.I(a)}v(I,Me);I.prototype.d=function(){return this.get("brightness")};I.prototype.getBrightness=I.prototype.d;I.prototype.e=function(){return this.get("contrast")};
I.prototype.getContrast=I.prototype.e;I.prototype.f=function(){return this.get("hue")};I.prototype.getHue=I.prototype.f;function Ak(a){var b=a.d(),c=a.e(),d=a.f(),e=a.l(),f=a.h(),g=a.Oa(),h=a.b(),m=a.g(),n=a.i();return{layer:a,brightness:s(b)?Xb(b,-1,1):0,contrast:s(c)?Math.max(c,0):1,hue:s(d)?d:0,opacity:s(e)?Xb(e,0,1):1,saturation:s(f)?Math.max(f,0):1,Pa:g,visible:s(h)?!!h:!0,maxResolution:s(m)?m:Infinity,minResolution:s(n)?Math.max(n,0):0}}I.prototype.g=function(){return this.get("maxResolution")};
I.prototype.getMaxResolution=I.prototype.g;I.prototype.i=function(){return this.get("minResolution")};I.prototype.getMinResolution=I.prototype.i;I.prototype.l=function(){return this.get("opacity")};I.prototype.getOpacity=I.prototype.l;I.prototype.h=function(){return this.get("saturation")};I.prototype.getSaturation=I.prototype.h;I.prototype.b=function(){return this.get("visible")};I.prototype.getVisible=I.prototype.b;I.prototype.n=function(a){this.w("brightness",a)};I.prototype.setBrightness=I.prototype.n;
I.prototype.o=function(a){this.w("contrast",a)};I.prototype.setContrast=I.prototype.o;I.prototype.v=function(a){this.w("hue",a)};I.prototype.setHue=I.prototype.v;I.prototype.A=function(a){this.w("maxResolution",a)};I.prototype.setMaxResolution=I.prototype.A;I.prototype.B=function(a){this.w("minResolution",a)};I.prototype.setMinResolution=I.prototype.B;I.prototype.G=function(a){this.w("opacity",a)};I.prototype.setOpacity=I.prototype.G;I.prototype.Q=function(a){this.w("saturation",a)};
I.prototype.setSaturation=I.prototype.Q;I.prototype.S=function(a){this.w("visible",a)};I.prototype.setVisible=I.prototype.S;function J(a){var b=s(a)?a:{};a=lc(b);delete a.layers;b=b.layers;I.call(this,a);this.a=null;z(this,Qe("layers"),this.Zf,!1,this);s(b)?ja(b)&&(b=new D(Db(b))):b=new D;this.aa(b)}v(J,I);l=J.prototype;l.je=function(){this.b()&&this.k()};
l.Zf=function(){null!==this.a&&(wb(fc(this.a),re),this.a=null);var a=this.Pb();if(null!=a){this.a={add:z(a,"add",this.Yf,!1,this),remove:z(a,"remove",this.$f,!1,this)};var a=a.a,b,c,d;b=0;for(c=a.length;b<c;b++)d=a[b],this.a[sa(d).toString()]=z(d,["propertychange","change"],this.je,!1,this)}this.k()};l.Yf=function(a){a=a.element;this.a[sa(a).toString()]=z(a,["propertychange","change"],this.je,!1,this);this.k()};l.$f=function(a){a=sa(a.element).toString();re(this.a[a]);delete this.a[a];this.k()};
l.Pb=function(){return this.get("layers")};J.prototype.getLayers=J.prototype.Pb;J.prototype.aa=function(a){this.w("layers",a)};J.prototype.setLayers=J.prototype.aa;
J.prototype.Hc=function(a){var b=s(a)?a:[],c=b.length;this.Pb().forEach(function(a){a.Hc(b)});a=Ak(this);var d,e;for(d=b.length;c<d;c++)e=b[c],e.brightness=Xb(e.brightness+a.brightness,-1,1),e.contrast*=a.contrast,e.hue+=a.hue,e.opacity*=a.opacity,e.saturation*=a.saturation,e.visible=e.visible&&a.visible,e.maxResolution=Math.min(e.maxResolution,a.maxResolution),e.minResolution=Math.max(e.minResolution,a.minResolution);return b};J.prototype.Oa=ca(1);function Bk(a){Xg.call(this,{code:a,units:"m",extent:Ck,global:!0})}v(Bk,Xg);var Dk=6378137*Math.PI,Ck=[-Dk,-Dk,Dk,Dk],kh=xb("EPSG:3857 EPSG:102100 EPSG:102113 EPSG:900913 urn:ogc:def:crs:EPSG:6.18:3:3857 http://www.opengis.net/gml/srs/epsg.xml#3857".split(" "),function(a){return new Bk(a)});function lh(a,b,c){var d=a.length;c=1<c?c:2;s(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=6378137*Math.PI*a[e]/180,b[e+1]=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));return b}
function mh(a,b,c){var d=a.length;c=1<c?c:2;s(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=180*a[e]/(6378137*Math.PI),b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b}Bk.prototype.d=function(a,b){return a/((Math.exp(b[1]/6378137)+Math.exp(-(b[1]/6378137)))/2)};function Ek(a,b){Xg.call(this,{code:a,units:"degrees",extent:Fk,axisOrientation:b,global:!0})}v(Ek,Xg);var Fk=[-180,-90,180,90],nh=[new Ek("CRS:84"),new Ek("EPSG:4326","neu"),new Ek("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Ek("urn:ogc:def:crs:OGC:1.3:CRS84"),new Ek("urn:ogc:def:crs:OGC:2:84"),new Ek("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new Ek("urn:x-ogc:def:crs:EPSG:4326","neu")];Ek.prototype.d=aa();function Gk(){fh(kh);fh(nh);jh()};function K(a){var b=lc(a);delete b.source;I.call(this,b);this.a=a.source;z(this.a,"change",this.dd,!1,this)}v(K,I);K.prototype.Hc=function(a){a=s(a)?a:[];a.push(Ak(this));return a};K.prototype.aa=k("a");K.prototype.Oa=function(){return this.a.i};K.prototype.dd=function(){this.k()};function Hk(a,b,c,d,e){He.call(this);this.g=e;this.h=a;this.b=c;this.d=b;this.state=d}v(Hk,He);Hk.prototype.u=k("h");function Ik(a,b,c,d,e,f){Hk.call(this,a,b,c,0,d);this.i=e;this.a=new Image;null!==f&&(this.a.crossOrigin=f);this.f={};this.c=null;this.state=0}v(Ik,Hk);Ik.prototype.e=function(a){if(s(a)){var b=sa(a);if(b in this.f)return this.f[b];a=hc(this.f)?this.a:this.a.cloneNode(!1);return this.f[b]=a}return this.a};Ik.prototype.l=function(){this.state=3;wb(this.c,re);this.c=null;A(this,"change")};Ik.prototype.p=function(){this.state=2;wb(this.c,re);this.c=null;A(this,"change")};
function Jk(a){0==a.state&&(a.state=1,a.c=[oe(a.a,"error",a.l,!1,a),oe(a.a,"load",a.p,!1,a)],a.a.src=a.i)};function Kk(a){this.minZoom=s(a.minZoom)?a.minZoom:0;this.a=a.resolutions;this.maxZoom=this.a.length-1;this.e=s(a.origin)?a.origin:null;this.g=null;s(a.origins)&&(this.g=a.origins);this.b=null;s(a.tileSizes)&&(this.b=a.tileSizes);this.f=s(a.tileSize)?a.tileSize:null===this.b?256:void 0}var Lk=new Lb(0,0,0);l=Kk.prototype;l.Fc=function(a,b,c,d,e){e=Mk(this,a,e);for(a=a.a-1;a>=this.minZoom;){if(b.call(c,a,Nk(this,e,a,d)))return!0;--a}return!1};l.Jc=k("minZoom");
l.ob=function(a){return null===this.e?this.g[a]:this.e};l.da=function(a){return this.a[a]};l.Kc=function(a,b,c){return a.a<this.maxZoom?(c=Mk(this,a,c),Nk(this,c,a.a+1,b)):null};function Ok(a,b,c,d){Pk(a,b[0],b[1],c,!1,Lk);var e=Lk.x,f=Lk.y;Pk(a,b[2],b[3],c,!0,Lk);return Qb(e,Lk.x,f,Lk.y,d)}function Nk(a,b,c,d){return Ok(a,b,a.da(c),d)}function Qk(a,b){var c=a.ob(b.a),d=a.da(b.a),e=a.ia(b.a);return[c[0]+(b.x+0.5)*e*d,c[1]+(b.y+0.5)*e*d]}
function Mk(a,b,c){var d=a.ob(b.a),e=a.da(b.a);a=a.ia(b.a);var f=d[0]+b.x*a*e;b=d[1]+b.y*a*e;return wg(f,b,f+a*e,b+a*e,c)}function Pk(a,b,c,d,e,f){var g=jg(a.a,d,0),h=d/a.da(g),m=a.ob(g);a=a.ia(g);b=h*(b-m[0])/(d*a);c=h*(c-m[1])/(d*a);e?(b=Math.ceil(b)-1,c=Math.ceil(c)-1):(b=Math.floor(b),c=Math.floor(c));return Mb(g,b,c,f)}l.ia=function(a){return s(this.f)?this.f:this.b[a]};function Rk(a){yk.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection});this.S=s(a.opaque)?a.opaque:!1;this.B=null!=a.pixelRatios?a.pixelRatios:[1];this.tileGrid=s(a.tileGrid)?a.tileGrid:null}v(Rk,yk);l=Rk.prototype;l.yd=ze;l.kd=function(a,b,c,d){var e=!0,f,g,h,m;for(h=d.a;h<=d.d;++h)for(m=d.b;m<=d.c;++m)g=this.kb(c,h,m),a[c]&&a[c][g]||(f=b(c,h,m),null===f?e=!1:(a[c]||(a[c]={}),a[c][g]=f));return e};l.Gc=ca(0);l.kb=Nb;l.la=k("tileGrid");
function Sk(a,b){var c;if(null===a.tileGrid){if(c=b.i,null===c){c=b.u();for(var d=null===c?360*Vg.degrees/b.f():Math.max(c[2]-c[0],c[3]-c[1]),e=s(void 0)?void 0:256,f=Array((s(void 0)?NaN:42)+1),d=d/e,g=0,h=f.length;g<h;++g)f[g]=d/Math.pow(2,g);c=new Kk({origin:null===c?[0,0]:Fg(c),resolutions:f,tileSize:e});b.i=c}}else c=a.tileGrid;return c}l.lc=function(a,b,c){a=Sk(this,c).ia(a);c=1;for(var d=0,e=this.B.length;d<e&&!(c=this.B[d],c>=b);++d);b=c;return 1==b?a:a*b+0.5|0};l.af=fa;function Tk(a,b){Ld.call(this);this.e=a;this.a=b}v(Tk,Ld);Tk.prototype.f=fa;Tk.prototype.p=function(a){2===a.target.state&&Uk(this)};function Uk(a){var b=a.a;b.b()&&1==b.Oa()&&a.e.f.R()}function Vk(a,b){b.yd()&&a.postRenderFunctions.push(ya(function(a,b,e){b=sa(a).toString();a.Ge(e.usedTiles[b])},b))}function Wk(a,b){if(null!=b){var c,d,e;d=0;for(e=b.length;d<e;++d)c=b[d],a[sa(c).toString()]=c}}function Xk(a,b){var c=b.v;s(c)&&(a.logos[c]="")}
function Yk(a,b,c,d){b=sa(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],d.a<a.a&&(a.a=d.a),d.d>a.d&&(a.d=d.d),d.b<a.b&&(a.b=d.b),d.c>a.c&&(a.c=d.c)):a[b][c]=d:(a[b]={},a[b][c]=d)}function Zk(a,b,c,d){return function(e,f,g){e=b.Lb(e,f,g,c,d);return a(e)?e:null}}function $k(a,b,c){return[b*(Math.round(a[0]/b)+c[0]%2/2),b*(Math.round(a[1]/b)+c[1]%2/2)]}
function al(a,b,c,d,e,f,g,h,m,n){var p=sa(b).toString();p in a.wantedTiles||(a.wantedTiles[p]={});var q=a.wantedTiles[p];a=a.tileQueue;var r=c.minZoom,u,x,B,y,E,C;s(h)||(h=0);for(C=g;C>=r;--C)for(x=Nk(c,f,C),B=c.da(C),y=x.a;y<=x.d;++y)for(E=x.b;E<=x.c;++E)g-C<=h?(u=b.Lb(C,y,E,d,e),0==u.state&&(q[u.a.toString()]=!0,u.d()in a.b||bk(a,[u,p,Qk(c,u.a),B])),s(m)&&m.call(n,u)):b.af(C,y,E)};function bl(a){a=s(a)?a:{};this.d=s(a.anchor)?a.anchor:[0.5,0.5];this.b=null;this.c=s(a.anchorOrigin)?a.anchorOrigin:"top-left";this.h=s(a.anchorXUnits)?a.anchorXUnits:"fraction";this.l=s(a.anchorYUnits)?a.anchorYUnits:"fraction";var b=a.src,c=s(a.crossOrigin)?a.crossOrigin:null,d=cl.jb(),e=d.get(b,c);null===e&&(e=new dl(b,c),d.a[c+":"+b]=e,++d.c);this.a=e;this.p=s(a.size)?a.size:null;Ni.call(this,{opacity:s(a.opacity)?a.opacity:1,origin:s(a.origin)?a.origin:[0,0],rotation:s(a.rotation)?a.rotation:
0,scale:s(a.scale)?a.scale:1,We:void 0,rotateWithView:s(a.rotateWithView)?a.rotateWithView:!1})}v(bl,Ni);l=bl.prototype;
l.kc=function(){if(null!==this.b)return this.b;var a=this.d,b=this.Rb();if("fraction"==this.h||"fraction"==this.l){if(null===b)return null;a=this.d.slice();"fraction"==this.h&&(a[0]*=b[0]);"fraction"==this.l&&(a[1]*=b[1])}if("top-left"!=this.c){if(null===b)return null;a===this.d&&(a=this.d.slice());if("top-right"==this.c||"bottom-right"==this.c)a[0]=-a[0]+b[0];if("bottom-left"==this.c||"bottom-right"==this.c)a[1]=-a[1]+b[1]}return this.b=a};l.rc=function(){return this.a.a};l.Je=function(){return this.a.c};
l.Ie=function(){var a=this.a;if(null===a.d)if(a.i){var b=a.e[0],c=a.e[1],d=td(b,c);d.fillRect(0,0,b,c);a.d=d.canvas}else a.d=a.a;return a.d};l.kh=function(){return this.a.f};l.Rb=function(){return null===this.p?this.a.e:this.p};l.ne=function(a,b){return z(this.a,"change",a,!1,b)};l.Ke=function(){var a=this.a;if(0==a.c){a.c=1;a.b=[oe(a.a,"error",a.g,!1,a),oe(a.a,"load",a.h,!1,a)];try{a.a.src=a.f}catch(b){a.g()}}};l.$e=function(a,b){pe(this.a,"change",a,!1,b)};
function dl(a,b){He.call(this);this.d=null;this.a=new Image;null!==b&&(this.a.crossOrigin=b);this.b=null;this.c=0;this.e=null;this.f=a;this.i=!1}v(dl,He);dl.prototype.g=function(){this.c=3;wb(this.b,re);this.b=null;A(this,"change")};dl.prototype.h=function(){this.c=2;this.e=[this.a.width,this.a.height];wb(this.b,re);this.b=null;var a=td(1,1);a.drawImage(this.a,0,0);try{a.getImageData(0,0,1,1)}catch(b){this.i=!0}A(this,"change")};function cl(){this.a={};this.c=0;this.b=32}ga(cl);
cl.prototype.clear=function(){this.a={};this.c=0};cl.prototype.get=function(a,b){var c=b+":"+a;return c in this.a?this.a[c]:null};function el(a,b,c,d,e,f,g,h){od(a);0===b&&0===c||qd(a,b,c);1==d&&1==e||rd(a,d,e);0!==f&&sd(a,f);0===g&&0===h||qd(a,g,h);return a}function fl(a,b){return a[0]==b[0]&&a[1]==b[1]&&a[4]==b[4]&&a[5]==b[5]&&a[12]==b[12]&&a[13]==b[13]}function gl(a,b,c){var d=a[1],e=a[5],f=a[13],g=b[0];b=b[1];c[0]=a[0]*g+a[4]*b+a[12];c[1]=d*g+e*b+f;return c};function hl(a,b){Ld.call(this);this.f=b;this.b={}}v(hl,Ld);
function il(a){var b=a.view2DState,c=a.coordinateToPixelMatrix;el(c,a.size[0]/2,a.size[1]/2,1/b.resolution,-1/b.resolution,-b.rotation,-b.center[0],-b.center[1]);a=a.pixelToCoordinateMatrix;var b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],h=c[5],m=c[6],n=c[7],p=c[8],q=c[9],r=c[10],u=c[11],x=c[12],B=c[13],y=c[14],c=c[15],E=b*h-d*g,C=b*m-e*g,M=b*n-f*g,R=d*m-e*h,la=d*n-f*h,W=e*n-f*m,qa=p*B-q*x,Ea=p*y-r*x,Na=p*c-u*x,Va=q*y-r*B,ma=q*c-u*B,ab=r*c-u*y,Ua=E*ab-C*ma+M*Va+R*Na-la*Ea+W*qa;0!=Ua&&(Ua=1/Ua,a[0]=(h*ab-m*
ma+n*Va)*Ua,a[1]=(-d*ab+e*ma-f*Va)*Ua,a[2]=(B*W-y*la+c*R)*Ua,a[3]=(-q*W+r*la-u*R)*Ua,a[4]=(-g*ab+m*Na-n*Ea)*Ua,a[5]=(b*ab-e*Na+f*Ea)*Ua,a[6]=(-x*W+y*M-c*C)*Ua,a[7]=(p*W-r*M+u*C)*Ua,a[8]=(g*ma-h*Na+n*qa)*Ua,a[9]=(-b*ma+d*Na-f*qa)*Ua,a[10]=(x*la-B*M+c*E)*Ua,a[11]=(-p*la+q*M-u*E)*Ua,a[12]=(-g*Va+h*Ea-m*qa)*Ua,a[13]=(b*Va-d*Ea+e*qa)*Ua,a[14]=(-x*R+B*C-y*E)*Ua,a[15]=(p*R-q*C+r*E)*Ua)}hl.prototype.Ac=function(a){return new Tk(this,a)};hl.prototype.F=function(){bc(this.b,function(a){Pd(a)});hl.H.F.call(this)};
function jl(a,b){var c=sa(b).toString();if(c in a.b)return a.b[c];var d=a.Ac(b);return a.b[c]=d}hl.prototype.Xc=fa;hl.prototype.v=function(a,b){for(var c in this.b)if(!(null!==b&&c in b.layerStates)){var d=this.b[c];delete this.b[c];Pd(d)}};function kl(a){a.postRenderFunctions.push(function(){var a=cl.jb();if(a.c>a.b){var c=0,d,e;for(d in a.a)e=a.a[d],0!==(c++&3)||te(e)||(delete a.a[d],--a.c)}})}
function ll(a,b){for(var c in a.b)if(!(c in b.layerStates)){b.postRenderFunctions.push(xa(a.v,a));break}};function L(a){K.call(this,a)}v(L,K);function N(a){K.call(this,a)}v(N,K);N.prototype.ea=function(){return this.get("preload")};N.prototype.getPreload=N.prototype.ea;N.prototype.qa=function(a){this.w("preload",a)};N.prototype.setPreload=N.prototype.qa;N.prototype.fa=function(){return this.get("useInterimTilesOnError")};N.prototype.getUseInterimTilesOnError=N.prototype.fa;N.prototype.Fa=function(a){this.w("useInterimTilesOnError",a)};N.prototype.setUseInterimTilesOnError=N.prototype.Fa;function O(a){a=s(a)?a:{};var b=lc(a);delete b.style;K.call(this,b);this.gb=null;this.qa=void 0;s(a.style)&&this.fa(a.style)}v(O,K);O.prototype.sb=k("gb");O.prototype.xc=k("qa");O.prototype.fa=function(a){this.gb=a;this.qa=Ti(a);this.k()};function ml(a,b,c,d,e){this.v={};this.b=a;this.l=b;this.g=c;this.f=d;this.sb=e;this.i=this.a=this.c=this.ea=this.Na=this.Ea=null;this.Gb=this.fa=this.A=this.S=this.Q=this.G=0;this.Oa=!1;this.h=this.Hb=0;this.qa=!1;this.ca=0;this.d="";this.n=this.B=this.Fa=this.Pa=0;this.aa=this.o=this.p=null;this.e=[];this.gb=kd()}
function nl(a,b){if(null!==a.i){var c=Lh(b,2,a.f,a.e),d=a.b,e=a.gb,f=d.globalAlpha;1!=a.A&&(d.globalAlpha=f*a.A);var g=a.Hb;a.Oa&&(g+=a.sb);var h,m;h=0;for(m=c.length;h<m;h+=2){var n=c[h]-a.G,p=c[h+1]-a.Q;a.qa&&(n=n+0.5|0,p=p+0.5|0);if(0!==g||1!=a.h){var q=n+a.G,r=p+a.Q;el(e,q,r,a.h,a.h,g,-q,-r);d.setTransform(e[0],e[1],e[4],e[5],e[12],e[13])}d.drawImage(a.i,a.fa,a.Gb,a.ca,a.S,n,p,a.ca,a.S)}0===g&&1==a.h||d.setTransform(1,0,0,1,0,0);1!=a.A&&(d.globalAlpha=f)}}
function pl(a,b,c,d){var e=0;if(null!==a.aa&&""!==a.d){null===a.p||ql(a,a.p);null===a.o||rl(a,a.o);var f=a.aa,g=a.b,h=a.ea;null===h?(g.font=f.font,g.textAlign=f.textAlign,g.textBaseline=f.textBaseline,a.ea={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline}):(h.font!=f.font&&(h.font=g.font=f.font),h.textAlign!=f.textAlign&&(h.textAlign=g.textAlign=f.textAlign),h.textBaseline!=f.textBaseline&&(h.textBaseline=g.textBaseline=f.textBaseline));b=Lh(b,d,a.f,a.e);for(f=a.b;e<c;e+=d){g=b[e]+a.Pa;
h=b[e+1]+a.Fa;if(0!==a.B||1!=a.n){var m=el(a.gb,g,h,a.n,a.n,a.B,-g,-h);f.setTransform(m[0],m[1],m[4],m[5],m[12],m[13])}null===a.o||f.strokeText(a.d,g,h);null===a.p||f.fillText(a.d,g,h)}0===a.B&&1==a.n||f.setTransform(1,0,0,1,0,0)}}function sl(a,b,c,d,e){a=a.b;a.moveTo(b[c],b[c+1]);var f;for(f=c+2;f<d;f+=2)a.lineTo(b[f],b[f+1]);e&&a.lineTo(b[c],b[c+1]);return d}function tl(a,b,c,d){var e=a.b,f,g;f=0;for(g=d.length;f<g;++f)c=sl(a,b,c,d[f],!0),e.closePath();return c}l=ml.prototype;
l.Cc=function(a,b){var c=a.toString(),d=this.v[c];s(d)?d.push(b):this.v[c]=[b]};l.ec=function(a){if(Mg(this.g,a.u())){if(null!==this.c||null!==this.a){null===this.c||ql(this,this.c);null===this.a||rl(this,this.a);var b=Qh(a,this.f,this.e),c=b[2]-b[0],d=b[3]-b[1],c=Math.sqrt(c*c+d*d),d=this.b;d.beginPath();d.arc(b[0],b[1],c,0,2*Math.PI);null===this.c||d.fill();null===this.a||d.stroke()}""!==this.d&&pl(this,a.xd(),2,2)}};
l.jd=function(a,b){var c=a.M();if(null!==c&&Mg(this.g,c.u())){var d=b.a;s(d)||(d=0);this.Cc(d,function(a){a.Ca(b.d,b.b);a.Wb(b.e);a.oa(b.c);ul[c.D()].call(a,c,null)})}};l.Vd=function(a,b){var c=a.a,d,e;d=0;for(e=c.length;d<e;++d){var f=c[d];ul[f.D()].call(this,f,b)}};l.jc=function(a){var b=a.j;a=a.a;null===this.i||nl(this,b);""!==this.d&&pl(this,b,b.length,a)};l.hc=function(a){var b=a.j;a=a.a;null===this.i||nl(this,b);""!==this.d&&pl(this,b,b.length,a)};
l.fc=function(a){if(Mg(this.g,a.u())){if(null!==this.a){rl(this,this.a);var b=Qh(a,this.f,this.e),c=this.b;c.beginPath();sl(this,b,0,b.length,!1);c.stroke()}""!==this.d&&(a=vl(a),pl(this,a,2,2))}};l.gc=function(a){var b=a.u();if(Mg(this.g,b)){if(null!==this.a){rl(this,this.a);var b=Qh(a,this.f,this.e),c=this.b;c.beginPath();var d=a.d,e=0,f,g;f=0;for(g=d.length;f<g;++f)e=sl(this,b,e,d[f],!1);c.stroke()}""!==this.d&&(a=wl(a),pl(this,a,a.length,2))}};
l.Jb=function(a){if(Mg(this.g,a.u())){var b;if(null!==this.a||null!==this.c){null===this.c||ql(this,this.c);null===this.a||rl(this,this.a);b=Qh(a,this.f,this.e);var c=this.b;c.beginPath();tl(this,b,0,a.d);null===this.c||c.fill();null===this.a||c.stroke()}""!==this.d&&(a=ti(a),pl(this,a,2,2))}};
l.ic=function(a){if(Mg(this.g,a.u())){var b;if(null!==this.a||null!==this.c){null===this.c||ql(this,this.c);null===this.a||rl(this,this.a);b=Qh(a,this.f,this.e);var c=this.b,d=a.d,e=0,f,g;f=0;for(g=d.length;f<g;++f){var h=d[f];c.beginPath();e=tl(this,b,e,h);null===this.c||c.fill();null===this.a||c.stroke()}}""!==this.d&&(a=xl(a),pl(this,a,a.length,2))}};
function yl(a){var b=xb(gc(a.v),Number);Hb(b);var c,d,e,f,g;c=0;for(d=b.length;c<d;++c)for(e=a.v[b[c].toString()],f=0,g=e.length;f<g;++f)e[f](a)}function ql(a,b){var c=a.b,d=a.Ea;null===d?(c.fillStyle=b.fillStyle,a.Ea={fillStyle:b.fillStyle}):d.fillStyle!=b.fillStyle&&(d.fillStyle=c.fillStyle=b.fillStyle)}
function rl(a,b){var c=a.b,d=a.Na;null===d?(c.lineCap=b.lineCap,Cd&&c.setLineDash(b.lineDash),c.lineJoin=b.lineJoin,c.lineWidth=b.lineWidth,c.miterLimit=b.miterLimit,c.strokeStyle=b.strokeStyle,a.Na={lineCap:b.lineCap,lineDash:b.lineDash,lineJoin:b.lineJoin,lineWidth:b.lineWidth,miterLimit:b.miterLimit,strokeStyle:b.strokeStyle}):(d.lineCap!=b.lineCap&&(d.lineCap=c.lineCap=b.lineCap),Cd&&!Jb(d.lineDash,b.lineDash)&&c.setLineDash(d.lineDash=b.lineDash),d.lineJoin!=b.lineJoin&&(d.lineJoin=c.lineJoin=
b.lineJoin),d.lineWidth!=b.lineWidth&&(d.lineWidth=c.lineWidth=b.lineWidth),d.miterLimit!=b.miterLimit&&(d.miterLimit=c.miterLimit=b.miterLimit),d.strokeStyle!=b.strokeStyle&&(d.strokeStyle=c.strokeStyle=b.strokeStyle))}
l.Ca=function(a,b){if(null===a)this.c=null;else{var c=a.a;this.c={fillStyle:Fi(null===c?Ji:c)}}if(null===b)this.a=null;else{var c=b.a,d=b.b,e=b.d,f=b.e,g=b.c,h=b.f;this.a={lineCap:s(d)?d:"round",lineDash:null!=e?e:Ki,lineJoin:s(f)?f:"round",lineWidth:this.l*(s(g)?g:1),miterLimit:s(h)?h:10,strokeStyle:Fi(null===c?Li:c)}}};
l.Wb=function(a){if(null===a)this.i=null;else{var b=a.kc(),c=a.rc(1),d=a.n,e=a.o,f=a.v,g=a.e,h=a.f,m=a.Rb();a=a.A;this.G=b[0];this.Q=b[1];this.S=m[1];this.i=c;this.A=s(d)?d:1;this.fa=e[0];this.Gb=e[1];this.Oa=s(f)?f:!1;this.Hb=s(g)?g:0;this.h=s(h)?h:1;this.qa=s(a)?a:!1;this.ca=m[0]}};
l.oa=function(a){if(null===a)this.d="";else{var b=a.c;null===b?this.p=null:(b=b.a,this.p={fillStyle:Fi(null===b?Ji:b)});var c=a.e;if(null===c)this.o=null;else{var b=c.a,d=c.b,e=c.d,f=c.e,g=c.c,c=c.f;this.o={lineCap:s(d)?d:"round",lineDash:null!=e?e:Ki,lineJoin:s(f)?f:"round",lineWidth:this.l*(s(g)?g:1),miterLimit:s(c)?c:10,strokeStyle:Fi(null===b?Li:b)}}var b=a.a,d=a.h,e=a.l,f=a.b,g=a.d,c=a.f,h=a.g;a=a.i;this.aa={font:s(b)?b:"10px sans-serif",textAlign:s(h)?h:"center",textBaseline:s(a)?a:"middle"};
this.d=s(c)?c:"";this.Pa=s(d)?this.l*d:0;this.Fa=s(e)?this.l*e:0;this.B=s(f)?f:0;this.n=this.l*(s(g)?g:1)}};var ul={Point:ml.prototype.jc,LineString:ml.prototype.fc,Polygon:ml.prototype.Jb,MultiPoint:ml.prototype.hc,MultiLineString:ml.prototype.gc,MultiPolygon:ml.prototype.ic,GeometryCollection:ml.prototype.Vd,Circle:ml.prototype.ec};function zl(a,b){Tk.call(this,a,b);this.G=kd()}v(zl,Tk);zl.prototype.n=function(a,b,c){Al(this,"precompose",c,a,void 0);var d=this.o();if(null!==d){var e=this.l();c.globalAlpha=b.opacity;if(0===a.view2DState.rotation){b=e[13];var f=d.width*e[0],g=d.height*e[5];c.drawImage(d,0,0,+d.width,+d.height,Math.round(e[12]),Math.round(b),Math.round(f),Math.round(g))}else c.setTransform(e[0],e[1],e[4],e[5],e[12],e[13]),c.drawImage(d,0,0),c.setTransform(1,0,0,1,0,0)}Al(this,"postcompose",c,a,void 0)};
function Al(a,b,c,d,e){var f=a.a;ue(f.ga,b)&&(a=s(e)?e:Bl(a,d),a=new ml(c,d.pixelRatio,d.extent,a,d.view2DState.rotation),A(f,new vi(b,f,a,d,c,null)),yl(a))}function Bl(a,b){var c=b.view2DState,d=b.pixelRatio;return el(a.G,d*b.size[0]/2,d*b.size[1]/2,d/c.resolution,-d/c.resolution,-c.rotation,-c.center[0],-c.center[1])}
var Cl=function(){var a=null,b=null;return function(c){if(null===a){a=td(1,1);b=a.createImageData(1,1);var d=b.data;d[0]=42;d[1]=84;d[2]=126;d[3]=255}var d=a.canvas,e=c[0]<=d.width&&c[1]<=d.height;e||(d.width=c[0],d.height=c[1],d=c[0]-1,c=c[1]-1,a.putImageData(b,d,c),c=a.getImageData(d,c,1,1),e=Jb(b.data,c.data));return e}}();function Dl(a){yk.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.n=s(a.resolutions)?a.resolutions:null}v(Dl,yk);function El(a,b){null===a.n||(b=a.n[jg(a.n,b,0)]);return b};function Fl(a,b){zl.call(this,a,b);this.c=null;this.b=kd()}v(Fl,zl);Fl.prototype.f=function(a,b,c,d){var e=this.a;return e.a.Vc(b.extent,b.view2DState.resolution,b.view2DState.rotation,a,function(a){return c.call(d,a,e)})};Fl.prototype.o=function(){return null===this.c?null:this.c.e()};Fl.prototype.l=k("b");
Fl.prototype.d=function(a){var b=a.pixelRatio,c=a.view2DState,d=c.center,e=c.resolution,f=c.rotation,g=this.a.a,h=a.viewHints;h[0]||h[1]||(c=g.Qb(a.extent,e,b,c.projection),null!==c&&(h=c.state,0==h?(oe(c,"change",this.p,!1,this),Jk(c)):2==h&&(this.c=c)));if(null!==this.c){var c=this.c,h=c.u(),m=c.d,n=c.b,e=b*m/(e*n);el(this.b,b*a.size[0]/2,b*a.size[1]/2,e,e,f,n*(h[0]-d[0])/m,n*(d[1]-h[3])/m);Wk(a.attributions,c.g);Xk(a,g)}};function Gl(a,b){zl.call(this,a,b);this.c=this.g=null;this.h=!1;this.v=null;this.A=kd();this.B=NaN;this.i=this.b=null}v(Gl,zl);Gl.prototype.o=k("g");Gl.prototype.l=k("A");
Gl.prototype.d=function(a){var b=a.pixelRatio,c=a.view2DState,d=c.projection,e=this.a,f=e.a,g=Sk(f,d),h=f.Gc(),m=jg(g.a,c.resolution,0),n=f.lc(m,a.pixelRatio,d),p=g.da(m),q=p/(n/g.ia(m)),r=c.center,u;p==c.resolution?(r=$k(r,p,a.size),u=Hg(r,p,c.rotation,a.size)):u=a.extent;var x=Ok(g,u,p),B=n*(x.d-x.a+1),y=n*(x.c-x.b+1),E,C;null===this.g?(C=td(B,y),this.g=C.canvas,this.c=[B,y],this.v=C,this.h=!Cl(this.c)):(E=this.g,C=this.v,this.c[0]<B||this.c[1]<y||this.h&&(this.c[0]>B||this.c[1]>y)?(E.width=B,E.height=
y,this.c=[B,y],this.h=!Cl(this.c),this.b=null):(B=this.c[0],y=this.c[1],m==this.B&&this.b.a<=x.a&&x.d<=this.b.d&&this.b.b<=x.b&&x.c<=this.b.c||(this.b=null)));var M,R;null===this.b?(B/=n,y/=n,M=x.a-Math.floor((B-(x.d-x.a+1))/2),R=x.b-Math.floor((y-(x.c-x.b+1))/2),this.B=m,this.b=new Pb(M,M+B-1,R,R+y-1),this.i=Array(B*y),y=this.b):(y=this.b,B=y.d-y.a+1);E={};E[m]={};var la=[],W=xa(f.kd,f,E,Zk(function(a){return null!==a&&2==a.state},f,b,d)),qa=e.fa();s(qa)||(qa=!0);var Ea=ug(),Na=new Pb(0,0,0,0),Va,
ma,ab;for(R=x.a;R<=x.d;++R)for(ab=x.b;ab<=x.c;++ab)ma=f.Lb(m,R,ab,b,d),M=ma.state,2==M||4==M||3==M&&!qa?E[m][ma.a.toString()]=ma:(Va=g.Fc(ma.a,W,null,Na,Ea),Va||(la.push(ma),Va=g.Kc(ma.a,Na,Ea),null===Va||W(m+1,Va)));W=0;for(Va=la.length;W<Va;++W)ma=la[W],R=n*(ma.a.x-y.a),ab=n*(y.c-ma.a.y),C.clearRect(R,ab,n,n);la=xb(gc(E),Number);Hb(la);var Ua=f.S,ad=Jg(Mk(g,new Lb(m,y.a,y.c),Ea)),cc,Cc,Yh,Lg,Te,qk,W=0;for(Va=la.length;W<Va;++W)if(cc=la[W],n=f.lc(cc,b,d),Lg=E[cc],cc==m)for(Yh in Lg)ma=Lg[Yh],Cc=
(ma.a.y-y.b)*B+(ma.a.x-y.a),this.i[Cc]!=ma&&(R=n*(ma.a.x-y.a),ab=n*(y.c-ma.a.y),M=ma.state,4!=M&&(3!=M||qa)&&Ua||C.clearRect(R,ab,n,n),2==M&&C.drawImage(ma.b(),h,h,n,n,R,ab,n,n),this.i[Cc]=ma);else for(Yh in cc=g.da(cc)/p,Lg)for(ma=Lg[Yh],Cc=Mk(g,ma.a,Ea),R=(Cc[0]-ad[0])/q,ab=(ad[1]-Cc[3])/q,qk=cc*n,Te=cc*n,M=ma.state,4!=M&&Ua||C.clearRect(R,ab,qk,Te),2==M&&C.drawImage(ma.b(),h,h,n,n,R,ab,qk,Te),ma=Nk(g,Cc,m,Na),M=Math.max(ma.a,y.a),ab=Math.min(ma.d,y.d),R=Math.max(ma.b,y.b),ma=Math.min(ma.c,y.c);M<=
ab;++M)for(Te=R;Te<=ma;++Te)Cc=(Te-y.b)*B+(M-y.a),this.i[Cc]=void 0;Yk(a.usedTiles,f,m,x);al(a,f,g,b,d,u,m,e.ea());Vk(a,f);Xk(a,f);el(this.A,b*a.size[0]/2,b*a.size[1]/2,b*q/c.resolution,b*q/c.resolution,c.rotation,(ad[0]-r[0])/q,(r[1]-ad[1])/q)};var Hl=["Polygon","LineString","Image","Text"];function Il(a,b,c){this.ea=a;this.ca=b;this.e=0;this.resolution=c;this.Q=this.G=null;this.c=[];this.coordinates=[];this.Ea=kd();this.a=[];this.aa=[];this.d=ug();this.Na=kd()}
function Jl(a,b,c,d,e,f){var g=a.coordinates.length,h=a.ld(),m=[b[c],b[c+1]],n=[NaN,NaN],p=!0,q,r,u;for(q=c+e;q<d;q+=e){n[0]=b[q];n[1]=b[q+1];u=h[1];var x=h[2],B=h[3],y=n[0],E=n[1],C=0;y<h[0]?C=C|16:y>x&&(C=C|4);E<u?C|=8:E>B&&(C|=2);0===C&&(C=1);u=C;u!==r?(p&&(a.coordinates[g++]=m[0],a.coordinates[g++]=m[1]),a.coordinates[g++]=n[0],a.coordinates[g++]=n[1],p=!1):1===u?(a.coordinates[g++]=n[0],a.coordinates[g++]=n[1],p=!1):p=!0;m[0]=n[0];m[1]=n[1];r=u}q===c+e&&(a.coordinates[g++]=m[0],a.coordinates[g++]=
m[1]);f&&(a.coordinates[g++]=b[c],a.coordinates[g++]=b[c+1]);return g}function Kl(a,b,c){a.G=[0,b,c,0];a.c.push(a.G);a.Q=[0,b,c,0];a.a.push(a.Q)}
function Ll(a,b,c,d,e,f,g,h){var m;fl(d,a.Ea)?m=a.aa:(m=Lh(a.coordinates,2,d,a.aa),nd(a.Ea,d));d=0;var n=g.length,p=0,q;for(a=a.Na;d<n;){var r=g[d],u,x,B,y,E;switch(r[0]){case 0:q=r[2];q=sa(q).toString();s(w(f,q))?d=r[3]:++d;break;case 1:b.beginPath();++d;break;case 2:q=m[p];x=m[p+1];var C=m[p+2]-q,r=m[p+3]-x;b.arc(q,x,Math.sqrt(C*C+r*r),0,2*Math.PI,!0);p+=4;++d;break;case 3:b.closePath();++d;break;case 4:p=r[1];q=r[2];u=r[3];y=r[4]*c;var M=r[5]*c,R=r[6]*c;B=r[7];var la=r[8],W=r[9];x=r[11];var C=
r[12],qa=r[13],Ea=r[14]*c;for(r[10]&&(x+=e);p<q;p+=2){r=m[p]-y;E=m[p+1]-M;qa&&(r=r+0.5|0,E=E+0.5|0);if(1!=C||0!==x){var Na=r+y,Va=E+M;el(a,Na,Va,C,C,x,-Na,-Va);b.setTransform(a[0],a[1],a[4],a[5],a[12],a[13])}Na=b.globalAlpha;1!=B&&(b.globalAlpha=Na*B);b.drawImage(u,la,W,Ea,R,r,E,Ea,R);1!=B&&(b.globalAlpha=Na);1==C&&0===x||b.setTransform(1,0,0,1,0,0)}++d;break;case 5:p=r[1];q=r[2];y=r[3];M=r[4]*c;R=r[5]*c;x=r[6];C=r[7]*c;u=r[8];for(B=r[9];p<q;p+=2){r=m[p]+M;E=m[p+1]+R;if(1!=C||0!==x)el(a,r,E,C,C,x,
-r,-E),b.setTransform(a[0],a[1],a[4],a[5],a[12],a[13]);B&&b.strokeText(y,r,E);u&&b.fillText(y,r,E);1==C&&0===x||b.setTransform(1,0,0,1,0,0)}++d;break;case 6:if(s(h)&&(x=r[1],q=r[2],q=h(x,q)))return q;++d;break;case 7:b.fill();++d;break;case 8:p=r[1];q=r[2];b.moveTo(m[p],m[p+1]);for(p+=2;p<q;p+=2)b.lineTo(m[p],m[p+1]);++d;break;case 9:b.fillStyle=r[1];++d;break;case 10:b.strokeStyle=r[1];b.lineWidth=r[2]*c;b.lineCap=r[3];b.lineJoin=r[4];b.miterLimit=r[5];Cd&&b.setLineDash(r[6]);++d;break;case 11:b.font=
r[1];b.textAlign=r[2];b.textBaseline=r[3];++d;break;case 12:b.stroke();++d;break;default:++d}}}function Ml(a){var b=a.a;b.reverse();var c,d=b.length,e,f,g=-1;for(c=0;c<d;++c)if(e=b[c],f=e[0],6==f)g=c;else if(0==f){e[3]=c;e=a.a;for(f=c;g<f;){var h=e[g];e[g]=e[f];e[f]=h;++g;--f}g=-1}}function Nl(a,b,c){a.G[3]=a.c.length;a.G=null;a.Q[3]=a.a.length;a.Q=null;b=[6,b,c];a.c.push(b);a.a.push(b)}Il.prototype.Uc=fa;Il.prototype.ld=k("ca");Il.prototype.u=k("d");
function Ol(a,b,c){Il.call(this,a,b,c);this.i=this.S=null;this.v=this.o=this.n=this.p=this.l=this.B=this.A=this.h=this.g=this.f=this.b=void 0}v(Ol,Il);
Ol.prototype.jc=function(a,b){if(null!==this.i){Dg(this.d,a.u());Kl(this,a,b);var c=a.j,d=this.coordinates.length,c=Jl(this,c,0,c.length,a.a,!1);this.c.push([4,d,c,this.i,this.b,this.f,this.g,this.h,this.A,this.B,this.l,this.p,this.n,this.o,this.v]);this.a.push([4,d,c,this.S,this.b,this.f,this.g,this.h,this.A,this.B,this.l,this.p,this.n,this.o,this.v]);Nl(this,a,b)}};
Ol.prototype.hc=function(a,b){if(null!==this.i){Dg(this.d,a.u());Kl(this,a,b);var c=a.j,d=this.coordinates.length,c=Jl(this,c,0,c.length,a.a,!1);this.c.push([4,d,c,this.i,this.b,this.f,this.g,this.h,this.A,this.B,this.l,this.p,this.n,this.o,this.v]);this.a.push([4,d,c,this.S,this.b,this.f,this.g,this.h,this.A,this.B,this.l,this.p,this.n,this.o,this.v]);Nl(this,a,b)}};
Ol.prototype.Uc=function(){Ml(this);this.f=this.b=void 0;this.i=this.S=null;this.v=this.o=this.p=this.l=this.B=this.A=this.h=this.n=this.g=void 0};Ol.prototype.Wb=function(a){var b=a.kc(),c=a.Rb(),d=a.Ie(1),e=a.rc(1),f=a.o;this.b=b[0];this.f=b[1];this.S=d;this.i=e;this.g=c[1];this.h=a.n;this.A=f[0];this.B=f[1];this.l=a.v;this.p=a.e;this.n=a.f;this.o=a.A;this.v=c[0]};
function Pl(a,b,c){Il.call(this,a,b,c);this.b={bc:void 0,Xb:void 0,Yb:null,Zb:void 0,$b:void 0,ac:void 0,td:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}v(Pl,Il);function Ql(a,b,c,d,e){var f=a.coordinates.length;b=Jl(a,b,c,d,e,!1);f=[8,f,b];a.c.push(f);a.a.push(f);return d}l=Pl.prototype;l.ld=function(){var a=this.ca;this.e&&(a=xg(a,this.resolution*(this.e+1)/2));return a};
function Rl(a){var b=a.b,c=b.strokeStyle,d=b.lineCap,e=b.lineDash,f=b.lineJoin,g=b.lineWidth,h=b.miterLimit;b.bc==c&&b.Xb==d&&Jb(b.Yb,e)&&b.Zb==f&&b.$b==g&&b.ac==h||(b.td!=a.coordinates.length&&(a.c.push([12]),b.td=a.coordinates.length),a.c.push([10,c,g,d,f,h,e],[1]),b.bc=c,b.Xb=d,b.Yb=e,b.Zb=f,b.$b=g,b.ac=h)}
l.fc=function(a,b){var c=this.b,d=c.lineWidth;s(c.strokeStyle)&&s(d)&&(Dg(this.d,a.u()),Rl(this),Kl(this,a,b),this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash],[1]),c=a.j,Ql(this,c,0,c.length,a.a),this.a.push([12]),Nl(this,a,b))};
l.gc=function(a,b){var c=this.b,d=c.lineWidth;if(s(c.strokeStyle)&&s(d)){Dg(this.d,a.u());Rl(this);Kl(this,a,b);this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash],[1]);var c=a.d,d=a.j,e=a.a,f=0,g,h;g=0;for(h=c.length;g<h;++g)f=Ql(this,d,f,c[g],e);this.a.push([12]);Nl(this,a,b)}};l.Uc=function(){this.b.td!=this.coordinates.length&&this.c.push([12]);Ml(this);this.b=null};
l.Ca=function(a,b){var c=b.a;this.b.strokeStyle=Fi(null===c?Li:c);c=b.b;this.b.lineCap=s(c)?c:"round";c=b.d;this.b.lineDash=null===c?Ki:c;c=b.e;this.b.lineJoin=s(c)?c:"round";c=b.c;this.b.lineWidth=s(c)?c:1;c=b.f;this.b.miterLimit=s(c)?c:10;this.e=Math.max(this.e,this.b.lineWidth)};
function Sl(a,b,c){Il.call(this,a,b,c);this.b={Td:void 0,bc:void 0,Xb:void 0,Yb:null,Zb:void 0,$b:void 0,ac:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}v(Sl,Il);
function Tl(a,b,c,d,e){var f=a.b,g=[1];a.c.push(g);a.a.push(g);var h,g=0;for(h=d.length;g<h;++g){var m=d[g],n=a.coordinates.length;c=Jl(a,b,c,m,e,!0);c=[8,n,c];n=[3];a.c.push(c,n);a.a.push(c,n);c=m}b=[7];a.a.push(b);s(f.fillStyle)&&a.c.push(b);s(f.strokeStyle)&&(f=[12],a.c.push(f),a.a.push(f));return c}l=Sl.prototype;
l.ec=function(a,b){var c=this.b,d=c.strokeStyle;if(s(c.fillStyle)||s(d)){Dg(this.d,a.u());Ul(this);Kl(this,a,b);this.a.push([9,Fi(Ji)]);s(c.strokeStyle)&&this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]);d=a.j;Jl(this,d,0,d.length,a.a,!1);var d=[1],e=[2];this.c.push(d,e);this.a.push(d,e);Nl(this,a,b);d=[7];this.a.push(d);s(c.fillStyle)&&this.c.push(d);s(c.strokeStyle)&&(c=[12],this.c.push(c),this.a.push(c))}};
l.Jb=function(a,b){var c=this.b,d=c.strokeStyle;if(s(c.fillStyle)||s(d))Dg(this.d,a.u()),Ul(this),Kl(this,a,b),this.a.push([9,Fi(Ji)]),s(c.strokeStyle)&&this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]),c=a.d,d=si(a),Tl(this,d,0,c,a.a),Nl(this,a,b)};
l.ic=function(a,b){var c=this.b,d=c.strokeStyle;if(s(c.fillStyle)||s(d)){Dg(this.d,a.u());Ul(this);Kl(this,a,b);this.a.push([9,Fi(Ji)]);s(c.strokeStyle)&&this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]);var c=a.d,d=Vl(a),e=a.a,f=0,g,h;g=0;for(h=c.length;g<h;++g)f=Tl(this,d,f,c[g],e);Nl(this,a,b)}};l.Uc=function(){Ml(this);this.b=null;var a=this.ea;if(0!==a){var b=this.coordinates,c,d;c=0;for(d=b.length;c<d;++c)b[c]=a*Math.round(b[c]/a)}};
l.ld=function(){var a=this.ca;this.e&&(a=xg(a,this.resolution*(this.e+1)/2));return a};
l.Ca=function(a,b){var c=this.b;if(null===a)c.fillStyle=void 0;else{var d=a.a;c.fillStyle=Fi(null===d?Ji:d)}null===b?(c.strokeStyle=void 0,c.lineCap=void 0,c.lineDash=null,c.lineJoin=void 0,c.lineWidth=void 0,c.miterLimit=void 0):(d=b.a,c.strokeStyle=Fi(null===d?Li:d),d=b.b,c.lineCap=s(d)?d:"round",d=b.d,c.lineDash=null===d?Ki:d.slice(),d=b.e,c.lineJoin=s(d)?d:"round",d=b.c,c.lineWidth=s(d)?d:1,d=b.f,c.miterLimit=s(d)?d:10,this.e=Math.max(this.e,c.lineWidth))};
function Ul(a){var b=a.b,c=b.fillStyle,d=b.strokeStyle,e=b.lineCap,f=b.lineDash,g=b.lineJoin,h=b.lineWidth,m=b.miterLimit;s(c)&&b.Td!=c&&(a.c.push([9,c]),b.Td=b.fillStyle);!s(d)||b.bc==d&&b.Xb==e&&b.Yb==f&&b.Zb==g&&b.$b==h&&b.ac==m||(a.c.push([10,d,h,e,g,m,f]),b.bc=d,b.Xb=e,b.Yb=f,b.Zb=g,b.$b=h,b.ac=m)}function Wl(a,b,c){Il.call(this,a,b,c);this.A=this.v=this.o=null;this.i="";this.n=this.p=this.l=this.h=0;this.g=this.f=this.b=null}v(Wl,Il);
Wl.prototype.hb=function(a,b,c,d,e,f){if(""!==this.i&&null!==this.g&&(null!==this.b||null!==this.f)){Eg(this.d,a,b,c,d);if(null!==this.b){var g=this.b,h=this.o;if(null===h||h.fillStyle!=g.fillStyle){var m=[9,g.fillStyle];this.c.push(m);this.a.push(m);null===h?this.o={fillStyle:g.fillStyle}:h.fillStyle=g.fillStyle}}null!==this.f&&(g=this.f,h=this.v,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)&&
(m=[10,g.strokeStyle,g.lineWidth,g.lineCap,g.lineJoin,g.miterLimit,g.lineDash],this.c.push(m),this.a.push(m),null===h?this.v={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=this.g;h=this.A;if(null===h||h.font!=g.font||h.textAlign!=g.textAlign||h.textBaseline!=g.textBaseline)m=
[11,g.font,g.textAlign,g.textBaseline],this.c.push(m),this.a.push(m),null===h?this.A={font:g.font,textAlign:g.textAlign,textBaseline:g.textBaseline}:(h.font=g.font,h.textAlign=g.textAlign,h.textBaseline=g.textBaseline);Kl(this,e,f);g=this.coordinates.length;a=Jl(this,a,b,c,d,!1);a=[5,g,a,this.i,this.h,this.l,this.p,this.n,null!==this.b,null!==this.f];this.c.push(a);this.a.push(a);Nl(this,e,f)}};
Wl.prototype.oa=function(a){if(null===a)this.i="";else{var b=a.c;null===b?this.b=null:(b=b.a,b=Fi(null===b?Ji:b),null===this.b?this.b={fillStyle:b}:this.b.fillStyle=b);var c=a.e;if(null===c)this.f=null;else{var b=c.a,d=c.b,e=c.d,f=c.e,g=c.c,c=c.f,d=s(d)?d:"round",e=null!=e?e.slice():Ki,f=s(f)?f:"round",g=s(g)?g:1,c=s(c)?c:10,b=Fi(null===b?Li:b);if(null===this.f)this.f={lineCap:d,lineDash:e,lineJoin:f,lineWidth:g,miterLimit:c,strokeStyle:b};else{var h=this.f;h.lineCap=d;h.lineDash=e;h.lineJoin=f;h.lineWidth=
g;h.miterLimit=c;h.strokeStyle=b}}var m=a.a,b=a.h,d=a.l,e=a.b,g=a.d,c=a.f,f=a.g,h=a.i;a=s(m)?m:"10px sans-serif";f=s(f)?f:"center";h=s(h)?h:"middle";null===this.g?this.g={font:a,textAlign:f,textBaseline:h}:(m=this.g,m.font=a,m.textAlign=f,m.textBaseline=h);this.i=s(c)?c:"";this.h=s(b)?b:0;this.l=s(d)?d:0;this.p=s(e)?e:0;this.n=s(g)?g:1}};function Xl(a,b,c){this.f=a;this.c=b;this.e=c;this.a={};this.b=td(1,1);this.d=kd()}
function Yl(a,b,c,d,e,f,g){var h=xb(gc(a.a),Number);Hb(h);a:{var m=a.c,n=m[0],p=m[1],q=m[2],m=m[3],n=Lh([n,p,n,m,q,m,q,p],2,e);b.save();b.beginPath();b.moveTo(n[0],n[1]);b.lineTo(n[2],n[3]);b.lineTo(n[4],n[5]);b.lineTo(n[6],n[7]);b.closePath();b.clip();for(var r,u,n=0,p=h.length;n<p;++n)for(r=a.a[h[n].toString()],q=0,m=Hl.length;q<m;++q)if(u=r[Hl[q]],s(u)&&Mg(c,u.u())&&(u=Ll(u,b,d,e,f,g,u.c,void 0)))break a;b.restore()}}
function Zl(a,b,c,d,e,f,g,h){var m,n,p,q,r;m=0;for(n=b.length;m<n;++m)for(q in p=a.a[b[m].toString()],p)if(r=p[q],Mg(d,r.u())&&(r=Ll(r,c,1,e,f,g,r.a,h)))return r}function $l(a,b,c,d,e,f,g){var h=a.d;el(h,0.5,0.5,1/c,-1/c,-d,-e[0],-e[1]);c=xb(gc(a.a),Number);Hb(c,function(a,b){return b-a});var m=a.b;m.clearRect(0,0,1,1);return Zl(a,c,m,b,h,d,f,function(a,b){if(0<m.getImageData(0,0,1,1).data[3]){var c=g(a,b);if(c)return c;m.clearRect(0,0,1,1)}})}
function am(a){for(var b in a.a){var c=a.a[b],d;for(d in c)c[d].Uc()}}function bm(a,b,c){var d=s(b)?b.toString():"0";b=a.a[d];s(b)||(b={},a.a[d]=b);d=b[c];s(d)||(d=new cm[c](a.f,a.c,a.e),b[c]=d);return d}Xl.prototype.ja=function(){return hc(this.a)};var cm={Image:Ol,LineString:Pl,Polygon:Sl,Text:Wl};function dm(a,b,c){Mh.call(this);this.Te(a,s(b)?b:0,c)}v(dm,Mh);l=dm.prototype;l.L=function(){var a=new dm(null),b=this.j.slice();Oh(a,this.b,b);a.k();return a};l.ta=function(a,b,c,d){var e=this.j;a-=e[0];var f=b-e[1];b=a*a+f*f;if(b<d){if(0===b)for(d=0;d<this.a;++d)c[d]=e[d];else for(d=this.we()/Math.sqrt(b),c[0]=e[0]+d*a,c[1]=e[1]+d*f,d=2;d<this.a;++d)c[d]=e[d];c.length=this.a;return b}return d};l.ub=function(a,b){var c=this.j,d=a-c[0],c=b-c[1];return d*d+c*c<=em(this)};
l.xd=function(){return this.j.slice(0,this.a)};l.u=function(a){if(this.f!=this.c){var b=this.j,c=b[this.a]-b[0];this.extent=wg(b[0]-c,b[1]-c,b[0]+c,b[1]+c,this.extent);this.f=this.c}return Og(this.extent,a)};l.we=function(){return Math.sqrt(em(this))};function em(a){var b=a.j[a.a]-a.j[0];a=a.j[a.a+1]-a.j[1];return b*b+a*a}l.ha=function(){return this};l.D=ca("Circle");l.Rg=function(a){var b=this.a,c=this.j[b]-this.j[0],d=a.slice();d[b]=d[0]+c;for(c=1;c<b;++c)d[b+c]=a[c];Oh(this,this.b,d);this.k()};
l.Te=function(a,b,c){if(null===a)Oh(this,"XY",null);else{Ph(this,c,a,0);null===this.j&&(this.j=[]);c=this.j;a=$h(c,a);c[a++]=c[0]+b;var d;b=1;for(d=this.a;b<d;++b)c[a++]=c[b];c.length=a}this.k()};l.ai=function(a){this.j[this.a]=this.j[0]+a;this.k()};function fm(a){Kh.call(this);this.a=s(a)?a:null;gm(this)}v(fm,Kh);function hm(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(a[c].L());return b}function im(a){var b,c;if(null!==a.a)for(b=0,c=a.a.length;b<c;++b)pe(a.a[b],"change",a.k,!1,a)}function gm(a){var b,c;if(null!==a.a)for(b=0,c=a.a.length;b<c;++b)z(a.a[b],"change",a.k,!1,a)}l=fm.prototype;l.L=function(){var a=new fm(null);a.Ue(this.a);return a};
l.ta=function(a,b,c,d){if(d<zg(this.u(),a,b))return d;var e=this.a,f,g;f=0;for(g=e.length;f<g;++f)d=e[f].ta(a,b,c,d);return d};l.ub=function(a,b){var c=this.a,d,e;d=0;for(e=c.length;d<e;++d)if(c[d].ub(a,b))return!0;return!1};l.u=function(a){if(this.f!=this.c){var b=Bg(this.extent),c=this.a,d,e;d=0;for(e=c.length;d<e;++d)Dg(b,c[d].u());this.extent=b;this.f=this.c}return Og(this.extent,a)};l.yf=function(){return hm(this.a)};
l.ha=function(a){this.l!=this.c&&(ic(this.g),this.i=0,this.l=this.c);if(0>a||0!==this.i&&a<this.i)return this;var b=a.toString();if(this.g.hasOwnProperty(b))return this.g[b];var c=[],d=this.a,e=!1,f,g;f=0;for(g=d.length;f<g;++f){var h=d[f],m=h.ha(a);c.push(m);m!==h&&(e=!0)}if(e)return a=new fm(null),im(a),a.a=c,gm(a),a.k(),this.g[b]=a;this.i=a;return this};l.D=ca("GeometryCollection");l.ja=function(){return 0==this.a.length};l.Ue=function(a){a=hm(a);im(this);this.a=a;gm(this);this.k()};
l.tb=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)b[c].tb(a);this.k()};l.F=function(){im(this);fm.H.F.call(this)};function jm(a,b,c,d,e){var f=NaN,g=NaN,h=(c-b)/d;if(0!==h)if(1==h)f=a[b],g=a[b+1];else if(2==h)f=0.5*a[b]+0.5*a[b+d],g=0.5*a[b+1]+0.5*a[b+d+1];else{var g=a[b],h=a[b+1],m=0,f=[0],n;for(n=b+d;n<c;n+=d){var p=a[n],q=a[n+1],m=m+Math.sqrt((p-g)*(p-g)+(q-h)*(q-h));f.push(m);g=p;h=q}c=0.5*m;for(var r,g=Ib,h=0,m=f.length;h<m;)n=h+m>>1,p=g(c,f[n]),0<p?h=n+1:(m=n,r=!p);r=r?h:~h;0>r?(c=(c-f[-r-2])/(f[-r-1]-f[-r-2]),b+=(-r-2)*d,f=a[b]+c*(a[b+d]-a[b]),g=a[b+1]+c*(a[b+d+1]-a[b+1])):(f=a[b+r*d],g=a[b+r*d+1])}return null!=
e?(e.push(f,g),e):[f,g]}function km(a,b,c,d,e,f){if(c==b)return null;if(e<a[b+d-1])return f?(c=a.slice(b,b+d),c[d-1]=e,c):null;if(a[c-1]<e)return f?(c=a.slice(c-d,c),c[d-1]=e,c):null;if(e==a[b+d-1])return a.slice(b,b+d);b/=d;for(c/=d;b<c;)f=b+c>>1,e<a[(f+1)*d-1]?c=f:b=f+1;c=a[b*d-1];if(e==c)return a.slice((b-1)*d,(b-1)*d+d);f=(e-c)/(a[(b+1)*d-1]-c);c=[];var g;for(g=0;g<d-1;++g)c.push(a[(b-1)*d+g]+f*(a[b*d+g]-a[(b-1)*d+g]));c.push(e);return c}
function lm(a,b,c,d,e,f){var g=0;if(f)return km(a,g,b[b.length-1],c,d,e);if(d<a[c-1])return e?(a=a.slice(0,c),a[c-1]=d,a):null;if(a[a.length-1]<d)return e?(a=a.slice(a.length-c),a[c-1]=d,a):null;e=0;for(f=b.length;e<f;++e){var h=b[e];if(g!=h){if(d<a[g+c-1])break;else if(d<=a[h-1])return km(a,g,h,c,d,!1);g=h}}return null};function P(a,b){Mh.call(this);this.d=null;this.p=this.n=this.h=-1;this.J(a,b)}v(P,Mh);l=P.prototype;l.Md=function(a){null===this.j?this.j=a.slice():ig(this.j,a);this.k()};l.L=function(){var a=new P(null);mm(a,this.b,this.j.slice());return a};l.ta=function(a,b,c,d){if(d<zg(this.u(),a,b))return d;this.p!=this.c&&(this.n=Math.sqrt(Vh(this.j,0,this.j.length,this.a,0)),this.p=this.c);return Xh(this.j,0,this.j.length,this.a,this.n,!1,a,b,c,d)};
l.xe=function(a,b){return"XYM"!=this.b&&"XYZM"!=this.b?null:km(this.j,0,this.j.length,this.a,a,s(b)?b:!1)};l.C=function(){return ci(this.j,0,this.j.length,this.a)};l.ye=function(){var a=this.j,b=this.a,c=a[0],d=a[1],e=0,f;for(f=0+b;f<this.j.length;f+=b)var g=a[f],h=a[f+1],e=e+Math.sqrt((g-c)*(g-c)+(h-d)*(h-d)),c=g,d=h;return e};function vl(a){a.h!=a.c&&(a.d=jm(a.j,0,a.j.length,a.a,a.d),a.h=a.c);return a.d}
l.Kb=function(a){var b=[];b.length=ei(this.j,0,this.j.length,this.a,a,b,0);a=new P(null);mm(a,"XY",b);return a};l.D=ca("LineString");l.J=function(a,b){null===a?mm(this,"XY",null):(Ph(this,b,a,1),null===this.j&&(this.j=[]),this.j.length=ai(this.j,0,a,this.a),this.k())};function mm(a,b,c){Oh(a,b,c);a.k()};function Q(a,b){Mh.call(this);this.d=[];this.h=this.p=-1;this.J(a,b)}v(Q,Mh);l=Q.prototype;l.Nd=function(a){null===this.j?this.j=a.j.slice():ig(this.j,a.j.slice());this.d.push(this.j.length);this.k()};l.L=function(){var a=new Q(null);nm(a,this.b,this.j.slice(),this.d.slice());return a};l.ta=function(a,b,c,d){if(d<zg(this.u(),a,b))return d;this.h!=this.c&&(this.p=Math.sqrt(Wh(this.j,0,this.d,this.a,0)),this.h=this.c);return Zh(this.j,0,this.d,this.a,this.p,!1,a,b,c,d)};
l.Ae=function(a,b,c){return"XYM"!=this.b&&"XYZM"!=this.b||0===this.j.length?null:lm(this.j,this.d,this.a,a,s(b)?b:!1,s(c)?c:!1)};l.C=function(){return di(this.j,0,this.d,this.a)};l.de=function(a){if(0>a||this.d.length<=a)return null;var b=new P(null);mm(b,this.b,this.j.slice(0===a?0:this.d[a-1],this.d[a]));return b};l.Ic=function(){var a=this.j,b=this.d,c=this.b,d=[],e=0,f,g;f=0;for(g=b.length;f<g;++f){var h=b[f],m=new P(null);mm(m,c,a.slice(e,h));d.push(m);e=h}return d};
function wl(a){var b=[],c=a.j,d=0,e=a.d;a=a.a;var f,g;f=0;for(g=e.length;f<g;++f){var h=e[f],d=jm(c,d,h,a);ig(b,d);d=h}return b}l.Kb=function(a){var b=[],c=[],d=this.j,e=this.d,f=this.a,g=0,h=0,m,n;m=0;for(n=e.length;m<n;++m){var p=e[m],h=ei(d,g,p,f,a,b,h);c.push(h);g=p}b.length=h;a=new Q(null);nm(a,"XY",b,c);return a};l.D=ca("MultiLineString");
l.J=function(a,b){if(null===a)nm(this,"XY",null,this.d);else{Ph(this,b,a,2);null===this.j&&(this.j=[]);var c=bi(this.j,0,a,this.a,this.d);this.j.length=0===c.length?0:c[c.length-1];this.k()}};function nm(a,b,c,d){Oh(a,b,c);a.d=d;a.k()}function om(a,b){var c="XY",d=[],e=[],f,g;f=0;for(g=b.length;f<g;++f){var h=b[f];0===f&&(c=h.b);ig(d,h.j);e.push(d.length)}nm(a,c,d,e)};function pm(a,b){Mh.call(this);this.J(a,b)}v(pm,Mh);l=pm.prototype;l.Od=function(a){null===this.j?this.j=a.j.slice():ig(this.j,a.j);this.k()};l.L=function(){var a=new pm(null),b=this.j.slice();Oh(a,this.b,b);a.k();return a};l.ta=function(a,b,c,d){if(d<zg(this.u(),a,b))return d;var e=this.j,f=this.a,g,h,m;g=0;for(h=e.length;g<h;g+=f)if(m=Th(a,b,e[g],e[g+1]),m<d){d=m;for(m=0;m<f;++m)c[m]=e[g+m];c.length=f}return d};l.C=function(){return ci(this.j,0,this.j.length,this.a)};
l.fe=function(a){var b=null===this.j?0:this.j.length/this.a;if(0>a||b<=a)return null;b=new ii(null);ji(b,this.b,this.j.slice(a*this.a,(a+1)*this.a));return b};l.od=function(){var a=this.j,b=this.b,c=this.a,d=[],e,f;e=0;for(f=a.length;e<f;e+=c){var g=new ii(null);ji(g,b,a.slice(e,e+c));d.push(g)}return d};l.D=ca("MultiPoint");l.J=function(a,b){null===a?Oh(this,"XY",null):(Ph(this,b,a,1),null===this.j&&(this.j=[]),this.j.length=ai(this.j,0,a,this.a));this.k()};function S(a,b){Mh.call(this);this.d=[];this.p=-1;this.n=null;this.A=this.o=this.v=-1;this.h=null;this.J(a,b)}v(S,Mh);l=S.prototype;l.Pd=function(a){if(null===this.j)this.j=a.j.slice(),a=a.d.slice(),this.d.push();else{var b=this.j.length;ig(this.j,a.j);a=a.d.slice();var c,d;c=0;for(d=a.length;c<d;++c)a[c]+=b}this.d.push(a);this.k()};l.L=function(){var a=new S(null);qm(a,this.b,this.j.slice(),this.d.slice());return a};
l.ta=function(a,b,c,d){if(d<zg(this.u(),a,b))return d;if(this.o!=this.c){var e=this.d,f=0,g=0,h,m;h=0;for(m=e.length;h<m;++h)var n=e[h],g=Wh(this.j,f,n,this.a,g),f=n[n.length-1];this.v=Math.sqrt(g);this.o=this.c}e=Vl(this);f=this.d;g=this.a;h=this.v;m=0;var n=s(void 0)?void 0:[NaN,NaN],p,q;p=0;for(q=f.length;p<q;++p){var r=f[p];d=Zh(e,m,r,g,h,!0,a,b,c,d,n);m=r[r.length-1]}return d};
l.ub=function(a,b){var c;a:{c=Vl(this);var d=this.d,e=0;if(0!==d.length){var f,g;f=0;for(g=d.length;f<g;++f){var h=d[f];if(li(c,e,h,this.a,a,b)){c=!0;break a}e=h[h.length-1]}}c=!1}return c};l.Be=function(){var a=Vl(this),b=this.d,c=0,d=0,e,f;e=0;for(f=b.length;e<f;++e)var g=b[e],d=d+Sh(a,c,g,this.a),c=g[g.length-1];return d};l.C=function(){var a=this.j,b=this.d,c=this.a,d=0,e=s(void 0)?void 0:[],f=0,g,h;g=0;for(h=b.length;g<h;++g){var m=b[g];e[f++]=di(a,d,m,c,e[f]);d=m[m.length-1]}e.length=f;return e};
function xl(a){if(a.p!=a.c){var b=a.j,c=a.d,d=a.a,e=0,f=[],g,h,m=ug();g=0;for(h=c.length;g<h;++g){var n=c[g],m=b,p=n[0],q=d,r=Bg(void 0),m=Eg(r,m,e,p,q);f.push((m[0]+m[2])/2,(m[1]+m[3])/2);e=n[n.length-1]}b=Vl(a);c=a.d;d=a.a;g=0;h=[];n=0;for(m=c.length;n<m;++n)e=c[n],h=mi(b,g,e,d,f,2*n,h),g=e[e.length-1];a.n=h;a.p=a.c}return a.n}l.ce=function(){var a=new pm(null),b=xl(this).slice();Oh(a,"XY",b);a.k();return a};
function Vl(a){if(a.A!=a.c){var b=a.j,c;a:{c=a.d;var d,e;d=0;for(e=c.length;d<e;++d)if(!oi(b,c[d],a.a)){c=!1;break a}c=!0}if(c)a.h=b;else{a.h=b.slice();c=b=a.h;d=a.d;e=a.a;var f=0,g,h;g=0;for(h=d.length;g<h;++g)f=pi(c,f,d[g],e);b.length=f}a.A=a.c}return a.h}l.Kb=function(a){var b=[],c=[],d=this.j,e=this.d,f=this.a;a=Math.sqrt(a);var g=0,h=0,m,n;m=0;for(n=e.length;m<n;++m){var p=e[m],q=[],h=fi(d,g,p,f,a,b,h,q);c.push(q);g=p[p.length-1]}b.length=h;d=new S(null);qm(d,"XY",b,c);return d};
l.ge=function(a){if(0>a||this.d.length<=a)return null;var b;0===a?b=0:(b=this.d[a-1],b=b[b.length-1]);a=this.d[a].slice();var c=a[a.length-1];if(0!==b){var d,e;d=0;for(e=a.length;d<e;++d)a[d]-=b}d=new qi(null);ri(d,this.b,this.j.slice(b,c),a);return d};l.pd=function(){var a=this.b,b=this.j,c=this.d,d=[],e=0,f,g,h,m;f=0;for(g=c.length;f<g;++f){var n=c[f].slice(),p=n[n.length-1];if(0!==e)for(h=0,m=n.length;h<m;++h)n[h]-=e;h=new qi(null);ri(h,a,b.slice(e,p),n);d.push(h);e=p}return d};l.D=ca("MultiPolygon");
l.J=function(a,b){if(null===a)qm(this,"XY",null,this.d);else{Ph(this,b,a,3);null===this.j&&(this.j=[]);var c=this.j,d=this.a,e=this.d,f=0,e=s(e)?e:[],g=0,h,m;h=0;for(m=a.length;h<m;++h)f=bi(c,f,a[h],d,e[g]),e[g++]=f,f=f[f.length-1];e.length=g;c=e[e.length-1];this.j.length=0===c.length?0:c[c.length-1];this.k()}};function qm(a,b,c,d){Oh(a,b,c);a.d=d;a.k()}
function rm(a,b){var c="XY",d=[],e=[],f,g,h;f=0;for(g=b.length;f<g;++f){var m=b[f];0===f&&(c=m.b);var n=d.length;h=m.d;var p,q;p=0;for(q=h.length;p<q;++p)h[p]+=n;ig(d,m.j);e.push(h)}qm(a,c,d,e)};function sm(a,b){return sa(a)-sa(b)}function tm(a,b,c,d,e,f,g){var h=!1,m,n;m=c.e;null===m?um(a,b,c,d,e):(n=m.Je(),2==n||3==n?(m.$e(f,g),2==n&&um(a,b,c,d,e)):(0==n&&m.Ke(),m.ne(f,g),h=!0));return h}function um(a,b,c,d,e){b=b.M();null!==b&&(d=b.ha(d),(0,vm[d.D()])(a,d,c,e))}
var vm={Point:function(a,b,c,d){var e=c.e;if(null!==e){var f=bm(a,c.a,"Image");f.Wb(e);f.jc(b,d)}e=c.c;null!==e&&(a=bm(a,c.a,"Text"),a.oa(e),a.hb(b.C(),0,2,2,b,d))},LineString:function(a,b,c,d){var e=c.b;if(null!==e){var f=bm(a,c.a,"LineString");f.Ca(null,e);f.fc(b,d)}e=c.c;null!==e&&(a=bm(a,c.a,"Text"),a.oa(e),a.hb(vl(b),0,2,2,b,d))},Polygon:function(a,b,c,d){var e=c.d,f=c.b;if(null!==e||null!==f){var g=bm(a,c.a,"Polygon");g.Ca(e,f);g.Jb(b,d)}e=c.c;null!==e&&(a=bm(a,c.a,"Text"),a.oa(e),a.hb(ti(b),
0,2,2,b,d))},MultiPoint:function(a,b,c,d){var e=c.e;if(null!==e){var f=bm(a,c.a,"Image");f.Wb(e);f.hc(b,d)}e=c.c;null!==e&&(a=bm(a,c.a,"Text"),a.oa(e),c=b.j,a.hb(c,0,c.length,b.a,b,d))},MultiLineString:function(a,b,c,d){var e=c.b;if(null!==e){var f=bm(a,c.a,"LineString");f.Ca(null,e);f.gc(b,d)}e=c.c;null!==e&&(a=bm(a,c.a,"Text"),a.oa(e),c=wl(b),a.hb(c,0,c.length,2,b,d))},MultiPolygon:function(a,b,c,d){var e=c.d,f=c.b;if(null!==f||null!==e){var g=bm(a,c.a,"Polygon");g.Ca(e,f);g.ic(b,d)}e=c.c;null!==
e&&(a=bm(a,c.a,"Text"),a.oa(e),c=xl(b),a.hb(c,0,c.length,2,b,d))},GeometryCollection:function(a,b,c,d){b=b.a;var e,f;e=0;for(f=b.length;e<f;++e)(0,vm[b[e].D()])(a,b[e],c,d)},Circle:function(a,b,c,d){var e=c.d,f=c.b;if(null!==e||null!==f){var g=bm(a,c.a,"Polygon");g.Ca(e,f);g.ec(b,d)}e=c.c;null!==e&&(a=bm(a,c.a,"Text"),a.oa(e),a.hb(b.xd(),0,2,2,b,d))}};function wm(a,b,c,d){this.extent=a;this.height=b;this.a=c;this.value=d}function xm(a,b){return a.extent[0]-b.extent[0]}function ym(a,b){return a.extent[1]-b.extent[1]}function zm(a,b,c,d){a=a.a;for(d=Bg(d);b<c;++b)Dg(d,a[b].extent);return d}wm.prototype.remove=function(a,b,c){var d=this.a,e=d.length,f,g;if(1==this.height)for(g=0;g<e;++g){if(f=d[g],f.value===b)return ub.splice.call(d,g,1),!0}else for(g=0;g<e;++g)if(f=d[g],Ag(f.extent,a)){c.push(f);if(f.remove(a,b,c))return!0;c.pop()}return!1};
function Am(a){var b=Bg(a.extent);a=a.a;var c,d;c=0;for(d=a.length;c<d;++c)Dg(b,a[c].extent)}function Bm(a){this.b=Math.max(4,s(a)?a:9);this.d=Math.max(2,Math.ceil(0.4*this.b));this.a=new wm(ug(),1,[],null);this.c={}}function Cm(a,b,c){var d=b.a;a=a.d;var e=d.length;Hb(d,c);c=zm(b,0,a);var f=zm(b,e-a,e),g=Kg(c)+Ig(c)+(Kg(f)+Ig(f));for(b=a;b<e-a;++b)Dg(c,d[b].extent),g+=Kg(c)+Ig(c);for(b=e-a-1;b>=a;--b)Dg(f,d[b].extent),g+=Kg(f)+Ig(f);return g}l=Bm.prototype;
l.clear=function(){var a=this.a;a.extent=Bg(this.a.extent);a.height=1;a.a.length=0;a.value=null;ic(this.c)};l.forEach=function(a,b){return Dm(this.a,a,b)};function Dm(a,b,c){for(var d=[a],e,f,g;0<d.length;)if(a=d.pop(),e=a.a,1==a.height)for(a=0,f=e.length;a<f;++a){if(g=b.call(c,e[a].value))return g}else d.push.apply(d,e)}function Em(a,b,c){Fm(a,b,c,void 0)}
function Fm(a,b,c,d){a=[a.a];for(var e;0<a.length;)if(e=a.pop(),Mg(b,e.extent))if(null===e.a){if(e=c.call(d,e.value))return e}else if(Ag(b,e.extent)){if(e=Dm(e,c,d))return e}else a.push.apply(a,e.a)}function Gm(a){var b=[];a.forEach(function(a){b.push(a)});return b}function Hm(a,b){var c=[];Fm(a,b,function(a){c.push(a)},void 0);return c}l.u=function(a){return Og(this.a.extent,a)};function Im(a,b,c){var d=sa(c).toString();Jm(a,b,c,a.a.height-1);a.c[d]=yg(b)}
function Jm(a,b,c,d){for(var e=[a.a],f=a.a;null!==f.a&&e.length-1!=d;){var g=Infinity,h=Infinity,f=f.a,m=null,n,p;n=0;for(p=f.length;n<p;++n){var q=f[n],r=Kg(q.extent)*Ig(q.extent),u=q.extent,x=b,B=Math.min(u[0],x[0]),y=Math.min(u[1],x[1]),E=Math.max(u[2],x[2]),u=Math.max(u[3],x[3]),B=(E-B)*(u-y)-r;B<h?(h=B,g=Math.min(r,g),m=q):B==h&&r<g&&(g=r,m=q)}f=m;e.push(f)}d=f;d.a.push(new wm(b,0,null,c));Dg(d.extent,b);for(c=e.length-1;0<=c;--c)if(e[c].a.length>a.b){g=a;h=e;f=c;d=h[f];p=g;m=d;n=Cm(p,m,xm);
p=Cm(p,m,ym);n<p&&Hb(m.a,xm);m=d;n=g.d;p=m.a.length;r=q=Infinity;B=ug();y=ug();E=0;u=void 0;for(u=n;u<=p-n;++u){var B=zm(m,0,u,B),y=zm(m,u,p,y),C=B,M=y,x=Math.max(C[0],M[0]),R=Math.max(C[1],M[1]),la=Math.min(C[2],M[2]),C=Math.min(C[3],M[3]),x=Math.max(0,la-x)*Math.max(0,C-R),R=Kg(B)*Ig(B)+Kg(y)*Ig(y);x<q?(q=x,r=Math.min(R,r),E=u):x==q&&R<r&&(r=R,E=u)}m=d.a.splice(E);m=new wm(ug(),d.height,m,null);Am(d);Am(m);f?h[f-1].a.push(m):(h=m,f=d.height+1,m=Dg(d.extent.slice(),h.extent),g.a=new wm(m,f,[d,h],
null))}else break;for(;0<=c;--c)Dg(e[c].extent,b)}l.ja=function(){return 0===this.a.a.length};l.remove=function(a){var b=sa(a).toString(),c=this.c[b];delete this.c[b];return Km(this,c,a)};function Km(a,b,c){var d=a.a,e=[d];if(b=d.remove(b,c,e))for(c=e.length-1;0<=c;--c)d=e[c],0===d.a.length?0<c?Bb(e[c-1].a,d):a.clear():Am(d);return b}l.update=function(a,b){var c=sa(b).toString(),d=this.c[c];Cg(d,a)||(Km(this,d,b),Jm(this,a,b,this.a.height-1),this.c[c]=yg(a,d))};function Lm(a){a=s(a)?a:{};yk.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.b=new Bm;this.d={};this.p={};s(a.features)&&this.ra(a.features)}v(Lm,yk);l=Lm.prototype;l.Ka=function(a){Mm(this,a);this.k()};function Mm(a,b){var c=sa(b).toString();a.p[c]=[z(b,"change",a.He,!1,a),z(b,"propertychange",a.He,!1,a)];c=b.M();null===c?a.d[sa(b).toString()]=b:(c=c.u(),Im(a.b,c,b));A(a,new Nm("addfeature",b))}l.Qa=function(a){this.ra(a);this.k()};
l.ra=function(a){var b,c;b=0;for(c=a.length;b<c;++b)Mm(this,a[b])};l.clear=function(){this.b.forEach(this.Ed,this);this.b.clear();bc(this.d,this.Ed,this);ic(this.d);this.k()};l.Sa=function(a,b){return this.b.forEach(a,b)};function Om(a,b,c){a.va([b[0],b[1],b[0],b[1]],function(a){if(a.M().ub(b[0],b[1]))return c.call(void 0,a)})}l.va=function(a,b,c){return Fm(this.b,a,b,c)};l.Ec=function(a,b,c,d){return this.va(a,c,d)};l.La=function(){var a=Gm(this.b);hc(this.d)||Eb(a,fc(this.d));return a};
l.Ua=function(a){var b=[];Om(this,a,function(a){b.push(a)});return b};l.Ta=function(a){var b=a[0],c=a[1],d=null,e=[NaN,NaN],f=Infinity,g=[-Infinity,-Infinity,Infinity,Infinity];Fm(this.b,g,function(a){var m=a.M(),n=f;f=m.ta(b,c,e,f);f<n&&(d=a,a=Math.sqrt(f),g[0]=b-a,g[1]=c-a,g[2]=b+a,g[3]=c+a)},void 0);return d};l.u=function(){return this.b.u()};
l.He=function(a){a=a.target;var b=sa(a).toString(),c=a.M();null===c?b in this.d||(this.b.remove(a),this.d[b]=a):(c=c.u(),b in this.d?(delete this.d[b],Im(this.b,c,a)):this.b.update(c,a));this.k()};l.ja=function(){return this.b.ja()&&hc(this.d)};l.ud=fa;l.cb=function(a){var b=sa(a).toString();b in this.d?delete this.d[b]:this.b.remove(a);this.Ed(a);this.k()};l.Ed=function(a){var b=sa(a).toString();wb(this.p[b],re);delete this.p[b];A(this,new Nm("removefeature",a))};
function Nm(a,b){Qd.call(this,a);this.feature=b}v(Nm,Qd);function Pm(a,b){zl.call(this,a,b);this.b=!1;this.h=-1;this.i=NaN;this.v=ug();this.c=this.A=null;this.g=td()}v(Pm,zl);
Pm.prototype.n=function(a,b,c){var d=Bl(this,a);Al(this,"precompose",c,a,d);var e=this.c;if(null!==e&&!e.ja()){var f;ue(this.a.ga,"render")?(this.g.canvas.width=c.canvas.width,this.g.canvas.height=c.canvas.height,f=this.g):f=c;f.globalAlpha=b.opacity;Yl(e,f,a.extent,a.pixelRatio,d,a.view2DState.rotation,a.skippedFeatureUids_);f!=c&&(Al(this,"render",f,a,d),c.drawImage(f.canvas,0,0))}Al(this,"postcompose",c,a,d)};
Pm.prototype.f=function(a,b,c,d){if(null!==this.c){var e=this.a;return $l(this.c,b.extent,b.view2DState.resolution,b.view2DState.rotation,a,b.skippedFeatureUids_,function(a,b){return c.call(d,b,e)})}};Pm.prototype.B=function(){Uk(this)};
Pm.prototype.d=function(a){var b=this.a,c=b.a;Wk(a.attributions,c.f);Xk(a,c);if(this.b||!a.viewHints[0]&&!a.viewHints[1]){var d=a.extent,e=a.view2DState,f=e.projection,g=e.resolution,h=a.pixelRatio;a=b.c;e=b.get("renderOrder");s(e)||(e=sm);if(this.b||this.i!=g||this.h!=a||this.A!=e||!Ag(this.v,d)){var m=this.v,n=Kg(d)/4,p=Ig(d)/4;m[0]=d[0]-n;m[1]=d[1]-p;m[2]=d[2]+n;m[3]=d[3]+p;Pd(this.c);this.c=null;this.b=!1;var q=b.qa;s(q)||(q=Si);var r=new Xl(g/(2*h),m,g);c.ud(m,g,f);b=function(a){var b=q(a,g);
if(null!=b){var c=g*g/(4*h*h),d,e,f=!1;d=0;for(e=b.length;d<e;++d)f=tm(r,a,b[d],c,a,this.B,this)||f;a=f}else a=!1;this.b=this.b||a};if(null===e)c.Ec(m,g,b,this);else{var u=[];c.Ec(m,g,function(a){u.push(a)},this);Hb(u,e);wb(u,b,this)}am(r);this.i=g;this.h=a;this.A=e;this.c=r}}};function Qm(a,b){hl.call(this,0,b);this.g=td();this.a=this.g.canvas;this.a.style.width="100%";this.a.style.height="100%";this.a.className="ol-unselectable";Dc(a,this.a,0);this.c=!0;this.i=kd()}v(Qm,hl);Qm.prototype.Ac=function(a){return a instanceof L?new Fl(this,a):a instanceof N?new Gl(this,a):a instanceof O?new Pm(this,a):null};
function Rm(a,b,c){var d=a.f,e=a.g;if(ue(d.ga,b)){var f=c.view2DState,g=c.pixelRatio;el(a.i,a.a.width/2,a.a.height/2,g/f.resolution,-g/f.resolution,-f.rotation,-f.center[0],-f.center[1]);a=new ml(e,g,c.extent,a.i,f.rotation);A(d,new vi(b,d,a,c,e,null));yl(a)}}
Qm.prototype.Xc=function(a){if(null===a)this.c&&(Xc(this.a,!1),this.c=!1);else{var b=this.g,c=a.size[0]*a.pixelRatio,d=a.size[1]*a.pixelRatio;this.a.width!=c||this.a.height!=d?(this.a.width=c,this.a.height=d):b.clearRect(0,0,this.a.width,this.a.height);il(a);Rm(this,"precompose",a);var c=a.layerStatesArray,d=a.view2DState.resolution,e,f,g,h;e=0;for(f=c.length;e<f;++e)h=c[e],g=h.layer,g=jl(this,g),!h.visible||(1!=h.Pa||d>=h.maxResolution||d<h.minResolution)||(g.d(a,h),g.n(a,h,b));Rm(this,"postcompose",
a);this.c||(Xc(this.a,!0),this.c=!0);ll(this,a);kl(a)}};function Sm(a,b,c){Tk.call(this,a,b);this.target=c}v(Sm,Tk);function Tm(a,b){var c=yc("DIV");c.style.position="absolute";Sm.call(this,a,b,c);this.c=null;this.b=md()}v(Tm,Sm);Tm.prototype.f=function(a,b,c,d){var e=this.a;return e.a.Vc(b.extent,b.view2DState.resolution,b.view2DState.rotation,a,function(a){return c.call(d,a,e)})};
Tm.prototype.d=function(a){var b=a.view2DState,c=b.center,d=b.resolution,e=b.rotation,f=this.c,g=this.a.a,h=a.viewHints;h[0]||h[1]||(b=g.Qb(a.extent,d,a.pixelRatio,b.projection),null!==b&&(h=b.state,0==h?(oe(b,"change",this.p,!1,this),Jk(b)):2==h&&(f=b)));if(null!==f){var h=f.u(),m=f.d,b=kd();el(b,a.size[0]/2,a.size[1]/2,m/d,m/d,e,(h[0]-c[0])/m,(c[1]-h[3])/m);f!=this.c&&(c=f.e(this),c.style.maxWidth="none",c.style.position="absolute",Ac(this.target),this.target.appendChild(c),this.c=f);fl(b,this.b)||
(xd(this.target,b),nd(this.b,b));Wk(a.attributions,f.g);Xk(a,g)}};function Um(a,b){var c=yc("DIV");c.style.position="absolute";Sm.call(this,a,b,c);this.b=!0;this.i=1;this.g=0;this.c={}}v(Um,Sm);
Um.prototype.d=function(a,b){if(b.visible){var c=a.pixelRatio,d=a.view2DState,e=d.projection,f=this.a,g=f.a,h=Sk(g,e),m=g.Gc(),n=jg(h.a,d.resolution,0),p=h.da(n),q=d.center,r;p==d.resolution?(q=$k(q,p,a.size),r=Hg(q,p,d.rotation,a.size)):r=a.extent;var p=Ok(h,r,p),u={};u[n]={};var x=xa(g.kd,g,u,Zk(function(a){return null!==a&&2==a.state},g,c,e)),B=f.fa();s(B)||(B=!0);var y=ug(),E=new Pb(0,0,0,0),C,M,R,la;for(R=p.a;R<=p.d;++R)for(la=p.b;la<=p.c;++la)C=g.Lb(n,R,la,c,e),M=C.state,2==M?u[n][C.a.toString()]=
C:4==M||3==M&&!B||(M=h.Fc(C.a,x,null,E,y),M||(C=h.Kc(C.a,E,y),null===C||x(n+1,C)));var W;if(this.g!=g.c){for(W in this.c)B=this.c[+W],Ec(B.target);this.c={};this.g=g.c}y=xb(gc(u),Number);Hb(y);var x={},qa;R=0;for(la=y.length;R<la;++R){W=y[R];W in this.c?B=this.c[W]:(B=Pk(h,q[0],q[1],h.da(W),!1,void 0),B=new Vm(h,B),x[W]=!0,this.c[W]=B);W=u[W];for(qa in W)Wm(B,W[qa],m);Xm(B)}m=xb(gc(this.c),Number);Hb(m);R=kd();qa=0;for(y=m.length;qa<y;++qa)if(W=m[qa],B=this.c[W],W in u)if(C=B.g,la=B.f,el(R,a.size[0]/
2,a.size[1]/2,C/d.resolution,C/d.resolution,d.rotation,(la[0]-q[0])/C,(q[1]-la[1])/C),Ym(B,R),W in x){for(W-=1;0<=W;--W)if(W in this.c){Bc(B.target,this.c[W].target);break}0>W&&Dc(this.target,B.target,0)}else a.viewHints[0]||a.viewHints[1]||Zm(B,r,E);else Ec(B.target),delete this.c[W];b.opacity!=this.i&&(Wc(this.target,b.opacity),this.i=b.opacity);b.visible&&!this.b&&(Xc(this.target,!0),this.b=!0);Yk(a.usedTiles,g,n,p);al(a,g,h,c,e,r,n,f.ea());Vk(a,g);Xk(a,g)}else this.b&&(Xc(this.target,!1),this.b=
!1)};function Vm(a,b){this.target=yc("DIV");this.target.style.position="absolute";this.target.style.width="100%";this.target.style.height="100%";this.d=a;this.b=b;this.f=Jg(Mk(a,b));this.g=a.da(b.a);this.c={};this.a=null;this.e=md()}
function Wm(a,b,c){var d=b.a,e=d.toString();if(!(e in a.c)){var f=a.d.ia(d.a),g=b.b(a),h=g.style;h.maxWidth="none";var m,n;0<c?(m=yc("DIV"),n=m.style,n.overflow="hidden",n.width=f+"px",n.height=f+"px",h.position="absolute",h.left=-c+"px",h.top=-c+"px",h.width=f+2*c+"px",h.height=f+2*c+"px",m.appendChild(g)):(h.width=f+"px",h.height=f+"px",m=g,n=h);n.position="absolute";n.left=(d.x-a.b.x)*f+"px";n.top=(a.b.y-d.y)*f+"px";null===a.a&&(a.a=document.createDocumentFragment());a.a.appendChild(m);a.c[e]=
b}}function Xm(a){null!==a.a&&(a.target.appendChild(a.a),a.a=null)}function Zm(a,b,c){var d=Nk(a.d,b,a.b.a,c);b=[];for(var e in a.c)c=a.c[e],d.contains(c.a)||b.push(c);var f,d=0;for(f=b.length;d<f;++d)c=b[d],e=c.a.toString(),Ec(c.b(a)),delete a.c[e]}function Ym(a,b){fl(b,a.e)||(xd(a.target,b),nd(a.e,b))};function $m(a,b){hl.call(this,0,b);this.a=yc("DIV");this.a.className="ol-unselectable";var c=this.a.style;c.position="absolute";c.width="100%";c.height="100%";Dc(a,this.a,0);this.c=!0}v($m,hl);$m.prototype.Ac=function(a){if(a instanceof L)a=new Tm(this,a);else if(a instanceof N)a=new Um(this,a);else return null;return a};
$m.prototype.Xc=function(a){if(null===a)this.c&&(Xc(this.a,!1),this.c=!1);else{var b;b=function(a,b){Dc(this.a,a,b)};var c=a.layerStatesArray,d,e,f,g;d=0;for(e=c.length;d<e;++d)g=c[d],f=g.layer,f=jl(this,f),b.call(this,f.target,d),1==g.Pa&&f.d(a,g);b=a.layerStates;for(var h in this.b)h in b||(f=this.b[h],Ec(f.target));this.c||(Xc(this.a,!0),this.c=!0);il(a);ll(this,a);kl(a)}};function an(){}l=an.prototype;l.Cc=ba();l.ec=ba();l.jd=ba();l.Vd=ba();l.jc=ba();l.fc=ba();l.gc=ba();l.hc=ba();l.ic=ba();l.Jb=ba();l.hb=ba();l.Ca=ba();l.Wb=ba();l.oa=ba();function bn(){this.g=kd();this.c=void 0;this.a=kd();this.d=void 0;this.b=kd();this.f=void 0;this.e=kd();this.h=void 0;this.i=kd()}
function cn(a,b,c,d,e){var f=!1;s(b)&&b!==a.c&&(f=a.a,od(f),f[12]=b,f[13]=b,f[14]=b,f[15]=1,a.c=b,f=!0);if(s(c)&&c!==a.d){f=a.b;od(f);f[0]=c;f[5]=c;f[10]=c;f[15]=1;var g=-0.5*c+0.5;f[12]=g;f[13]=g;f[14]=g;f[15]=1;a.d=c;f=!0}s(d)&&d!==a.f&&(f=Math.cos(d),g=Math.sin(d),ld(a.e,0.213+0.787*f-0.213*g,0.213-0.213*f+0.143*g,0.213-0.213*f-0.787*g,0,0.715-0.715*f-0.715*g,0.715+0.285*f+0.14*g,0.715-0.715*f+0.715*g,0,0.072-0.072*f+0.928*g,0.072-0.072*f-0.283*g,0.072+0.928*f+0.072*g,0,0,0,0,1),a.f=d,f=!0);s(e)&&
e!==a.h&&(ld(a.i,0.213+0.787*e,0.213-0.213*e,0.213-0.213*e,0,0.715-0.715*e,0.715+0.285*e,0.715-0.715*e,0,0.072-0.072*e,0.072-0.072*e,0.072+0.928*e,0,0,0,0,1),a.h=e,f=!0);f&&(f=a.g,od(f),s(c)&&pd(f,a.b,f),s(b)&&pd(f,a.a,f),s(e)&&pd(f,a.i,f),s(d)&&pd(f,a.e,f));return a.g};function dn(a){this.a=a}function en(a){this.a=a}v(en,dn);en.prototype.D=ca(35632);function fn(a){this.a=a}v(fn,dn);fn.prototype.D=ca(35633);function gn(){this.a="precision mediump float;varying vec2 a;uniform mat4 f;uniform float g;uniform sampler2D h;void main(void){vec4 texColor\x3dtexture2D(h,a);gl_FragColor.rgb\x3d(f*vec4(texColor.rgb,1.)).rgb;gl_FragColor.a\x3dtexColor.a*g;}"}v(gn,en);ga(gn);function hn(){this.a="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position\x3de*vec4(b,0.,1.);a\x3d(d*vec4(c,0.,1.)).st;}"}v(hn,fn);ga(hn);
function jn(a,b){this.g=a.getUniformLocation(b,"f");this.d=a.getUniformLocation(b,"g");this.e=a.getUniformLocation(b,"e");this.f=a.getUniformLocation(b,"d");this.b=a.getUniformLocation(b,"h");this.a=a.getAttribLocation(b,"b");this.c=a.getAttribLocation(b,"c")};function kn(){this.a="precision mediump float;varying vec2 a;uniform float f;uniform sampler2D g;void main(void){vec4 texColor\x3dtexture2D(g,a);gl_FragColor.rgb\x3dtexColor.rgb;gl_FragColor.a\x3dtexColor.a*f;}"}v(kn,en);ga(kn);function ln(){this.a="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position\x3de*vec4(b,0.,1.);a\x3d(d*vec4(c,0.,1.)).st;}"}v(ln,fn);ga(ln);
function mn(a,b){this.d=a.getUniformLocation(b,"f");this.e=a.getUniformLocation(b,"e");this.f=a.getUniformLocation(b,"d");this.b=a.getUniformLocation(b,"g");this.a=a.getAttribLocation(b,"b");this.c=a.getAttribLocation(b,"c")};function nn(a){this.a=s(a)?a:[]}function on(a,b,c){if(b!=c){var d=a.a,e=d.length,f;for(f=0;f<e;f+=2)if(b<=d[f]){d.splice(f,0,b,c);pn(a);return}d.push(b,c);pn(a)}}nn.prototype.clear=function(){this.a.length=0};function pn(a){a=a.a;var b=a.length,c=0,d;for(d=0;d<b;d+=2)a[d]!=a[d+1]&&(0<c&&a[c-2]<=a[d]&&a[d]<=a[c-1]?a[c-1]=Math.max(a[c-1],a[d+1]):(a[c++]=a[d],a[c++]=a[d+1]));a.length=c}function qn(a,b){var c=a.a,d=c.length,e;for(e=0;e<d;e+=2)b.call(void 0,c[e],c[e+1])}
nn.prototype.ja=function(){return 0===this.a.length};function rn(a,b,c){var d=a.a,e=d.length,f;for(f=0;f<e;f+=2)if(!(c<d[f]||d[f+1]<b)){if(d[f]>c)break;if(b<d[f])if(c==d[f])break;else if(c<d[f+1]){d[f]=Math.max(d[f],c);break}else d.splice(f,2),f-=2,e-=2;else if(b==d[f])if(c<d[f+1]){d[f]=c;break}else if(c==d[f+1]){d.splice(f,2);break}else d.splice(f,2),f-=2,e-=2;else if(c<d[f+1]){d.splice(f,2,d[f],b,c,d[f+1]);break}else if(c==d[f+1]){d[f+1]=b;break}else d[f+1]=b}pn(a)};function sn(a,b,c){this.c=s(a)?a:[];this.a=[];this.b=new nn;a=s(b)?b:this.c.length;a<this.c.length&&on(this.b,a,this.c.length);this.e=this.f=null;this.d=s(c)?c:35044}sn.prototype.add=function(a){var b=a.length,c;a:{c=this.b.a;var d=c.length,e=-1,f,g,h;for(g=0;g<d;g+=2){h=c[g+1]-c[g];if(h==b){c=c[g];break a}h>b&&(-1==e||h<f)&&(e=c[g],f=h)}c=e}rn(this.b,c,c+b);for(d=0;d<b;++d)this.c[c+d]=a[d];a=0;for(d=this.a.length;a<d;++a)on(this.a[a],c,c+b);return c};
sn.prototype.Ga=function(){var a=this.b.a,b=a.length,c=0,d;for(d=0;d<b;d+=2)c+=a[d+1]-a[d];return this.c.length-c};sn.prototype.remove=function(a,b){var c,d;on(this.b,b,b+a);c=0;for(d=this.a.length;c<d;++c)rn(this.a[c],b,b+a)};function tn(a,b){Tk.call(this,a,b);this.Q=new sn([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]);this.g=this.pa=null;this.i=void 0;this.A=kd();this.B=md();this.ca=new bn;this.l=this.h=null}v(tn,Tk);
function un(a,b,c){var d=a.e.d;if(s(a.i)&&a.i==c)d.bindFramebuffer(36160,a.g);else{b.postRenderFunctions.push(ya(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},d,a.g,a.pa));b=d.createTexture();d.bindTexture(3553,b);d.texImage2D(3553,0,6408,c,c,0,6408,5121,null);d.texParameteri(3553,10240,9729);d.texParameteri(3553,10241,9729);var e=d.createFramebuffer();d.bindFramebuffer(36160,e);d.framebufferTexture2D(36160,36064,3553,b,0);a.pa=b;a.g=e;a.i=c}}
function vn(a,b,c,d){a=a.a;ue(a.ga,b)&&A(a,new vi(b,a,new an,d,null,c))}tn.prototype.n=function(){this.g=this.pa=null;this.i=void 0};function wn(a,b){tn.call(this,a,b);this.c=null}v(wn,tn);function xn(a,b){var c=b.e(),d=a.e.d,e=d.createTexture();d.bindTexture(3553,e);d.texImage2D(3553,0,6408,6408,5121,c);d.texParameteri(3553,10242,33071);d.texParameteri(3553,10243,33071);d.texParameteri(3553,10241,9729);d.texParameteri(3553,10240,9729);return e}wn.prototype.f=function(a,b,c,d){var e=this.a;return e.a.Vc(b.extent,b.view2DState.resolution,b.view2DState.rotation,a,function(a){return c.call(d,a,e)})};
wn.prototype.d=function(a){var b=this.e.d,c=a.view2DState,d=c.center,e=c.resolution,f=c.rotation,g=this.c,h=this.pa,m=this.a.a,n=a.viewHints;n[0]||n[1]||(c=m.Qb(a.extent,e,a.pixelRatio,c.projection),null!==c&&(n=c.state,0==n?(oe(c,"change",this.p,!1,this),Jk(c)):2==n&&(g=c,h=xn(this,c),null===this.pa||a.postRenderFunctions.push(ya(function(a,b){a.isContextLost()||a.deleteTexture(b)},b,this.pa)))));null!==g&&(b=this.e.e.f,yn(this,b.width,b.height,d,e,f,g.u()),d=this.A,od(d),rd(d,1,-1),qd(d,0,-1),this.c=
g,this.pa=h,Wk(a.attributions,g.g),Xk(a,m))};function yn(a,b,c,d,e,f,g){b*=e;c*=e;a=a.B;od(a);rd(a,2/b,2/c);sd(a,-f);qd(a,g[0]-d[0],g[1]-d[1]);rd(a,(g[2]-g[0])/2,(g[3]-g[1])/2);qd(a,1,1)};function zn(){this.a="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor\x3dtexture2D(e,a);}"}v(zn,en);ga(zn);function An(){this.a="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform vec4 d;void main(void){gl_Position\x3dvec4(b*d.xy+d.zw,0.,1.);a\x3dc;}"}v(An,fn);ga(An);function Bn(a,b){this.b=a.getUniformLocation(b,"e");this.d=a.getUniformLocation(b,"d");this.a=a.getAttribLocation(b,"b");this.c=a.getAttribLocation(b,"c")};function Cn(a,b){tn.call(this,a,b);this.S=zn.jb();this.aa=An.jb();this.c=null;this.G=new sn([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]);this.v=this.b=null;this.o=-1}v(Cn,tn);Cn.prototype.F=function(){var a=this.e.e,b=a.c,c=sa(this.G),d=a.a[c];Bb(d.Qd.a,d.Bc);b.isContextLost()||b.deleteBuffer(d.buffer);delete a.a[c];Cn.H.F.call(this)};Cn.prototype.n=function(){Cn.H.n.call(this);this.c=null};
Cn.prototype.d=function(a){var b=this.e,c=b.e,d=b.d,e=a.view2DState,f=e.projection,g=this.a,h=g.a,m=Sk(h,f),n=jg(m.a,e.resolution,0),p=m.da(n),q=h.lc(n,a.pixelRatio,f),r=q/m.ia(n),u=p/r,x=h.Gc(),B=e.center,y;p==e.resolution?(B=$k(B,p,a.size),y=Hg(B,p,e.rotation,a.size)):y=a.extent;p=Ok(m,y,p);if(null!==this.b&&this.b.a==p.a&&(this.b.b==p.b&&this.b.d==p.d&&this.b.c==p.c)&&this.o==h.c)u=this.v;else{var E=[p.d-p.a+1,p.c-p.b+1],E=Math.max(E[0]*q,E[1]*q),C=Math.pow(2,Math.ceil(Math.log(E)/Math.LN2)),E=
u*C,M=m.ob(n),R=M[0]+p.a*q*u,u=M[1]+p.b*q*u,u=[R,u,R+E,u+E];un(this,a,C);d.viewport(0,0,C,C);d.clearColor(0,0,0,0);d.clear(16384);d.disable(3042);C=Dn(c,this.S,this.aa);c.zd(C);null===this.c&&(this.c=new Bn(d,C));En(c,this.G);d.enableVertexAttribArray(this.c.a);d.vertexAttribPointer(this.c.a,2,5126,!1,16,0);d.enableVertexAttribArray(this.c.c);d.vertexAttribPointer(this.c.c,2,5126,!1,16,8);d.uniform1i(this.c.b,0);c={};c[n]={};var la=xa(h.kd,h,c,Zk(function(a){return null!==a&&2==a.state&&Fn(b.c,a.d())},
h,r,f)),W=g.fa();s(W)||(W=!0);var C=!0,R=ug(),qa=new Pb(0,0,0,0),Ea,Na,Va;for(Na=p.a;Na<=p.d;++Na)for(Va=p.b;Va<=p.c;++Va){M=h.Lb(n,Na,Va,r,f);Ea=M.state;if(2==Ea){if(Fn(b.c,M.d())){c[n][M.a.toString()]=M;continue}}else if(4==Ea||3==Ea&&!W)continue;C=!1;Ea=m.Fc(M.a,la,null,qa,R);Ea||(M=m.Kc(M.a,qa,R),null===M||la(n+1,M))}la=xb(gc(c),Number);Hb(la);var W=new Float32Array(4),ma,ab,Ua,ad,qa=0;for(Na=la.length;qa<Na;++qa)for(ab in Ua=c[la[qa]],Ua)M=Ua[ab],ma=Mk(m,M.a,R),Va=2*(ma[2]-ma[0])/E,Ea=2*(ma[3]-
ma[1])/E,ad=2*(ma[0]-u[0])/E-1,ma=2*(ma[1]-u[1])/E-1,jd(W,Va,Ea,ad,ma),d.uniform4fv(this.c.d,W),Gn(b,M,q,x*r),d.drawArrays(5,0,4);C?(this.b=p,this.v=u,this.o=h.c):(this.v=this.b=null,this.o=-1,a.animate=!0)}Yk(a.usedTiles,h,n,p);var cc=b.i;al(a,h,m,r,f,y,n,g.ea(),function(a){var c;(c=2!=a.state)||(c=Fn(b.c,a.d()))||(c=a.d()in cc.b);c||bk(cc,[a,Qk(m,a.a),m.da(a.a.a),q,x*r])},this);Vk(a,h);Xk(a,h);d=this.A;od(d);qd(d,(B[0]-u[0])/(u[2]-u[0]),(B[1]-u[1])/(u[3]-u[1]));0!==e.rotation&&sd(d,e.rotation);
rd(d,a.size[0]*e.resolution/(u[2]-u[0]),a.size[1]*e.resolution/(u[3]-u[1]));qd(d,-0.5,-0.5)};function Hn(){this.N=0;this.b={};this.c=this.a=null}l=Hn.prototype;l.clear=function(){this.N=0;this.b={};this.c=this.a=null};function Fn(a,b){return a.b.hasOwnProperty(b)}l.forEach=function(a,b){for(var c=this.a;null!==c;)a.call(b,c.Fb,c.Rc,this),c=c.xa};l.get=function(a){a=this.b[a];if(a===this.c)return a.Fb;a===this.a?(this.a=this.a.xa,this.a.pb=null):(a.xa.pb=a.pb,a.pb.xa=a.xa);a.xa=null;a.pb=this.c;this.c=this.c.xa=a;return a.Fb};l.Ga=k("N");
l.O=function(){var a=Array(this.N),b=0,c;for(c=this.c;null!==c;c=c.pb)a[b++]=c.Rc;return a};l.Ha=function(){var a=Array(this.N),b=0,c;for(c=this.c;null!==c;c=c.pb)a[b++]=c.Fb;return a};l.pop=function(){var a=this.a;delete this.b[a.Rc];null!==a.xa&&(a.xa.pb=null);this.a=a.xa;null===this.a&&(this.c=null);--this.N;return a.Fb};function In(a,b,c){c={Rc:b,xa:null,pb:a.c,Fb:c};null===a.c?a.a=c:a.c.xa=c;a.c=c;a.b[b]=c;++a.N};function Jn(a,b){this.f=a;this.c=b;this.a={};this.d={};this.b={};this.e=null;z(this.f,"webglcontextlost",this.yh,!1,this);z(this.f,"webglcontextrestored",this.zh,!1,this)}
function En(a,b){var c=a.c,d=b.c,e=sa(b);if(e in a.a)e=a.a[e],c.bindBuffer(34962,e.buffer),qn(e.Bc,function(a,b){var e=d.slice(a,b);c.bufferSubData(34962,a,new Float32Array(e))}),e.Bc.clear();else{var f=c.createBuffer();c.bindBuffer(34962,f);c.bufferData(34962,new Float32Array(d),b.d);var g=new nn;b.a.push(g);a.a[e]={Qd:b,buffer:f,Bc:g}}}l=Jn.prototype;
l.F=function(){bc(this.a,function(a){Bb(a.Qd.a,a.Bc)});var a=this.c;a.isContextLost()||(bc(this.a,function(b){a.deleteBuffer(b.buffer)}),bc(this.b,function(b){a.deleteProgram(b)}),bc(this.d,function(b){a.deleteShader(b)}))};l.xh=k("c");function Kn(a,b){var c=sa(b);if(c in a.d)return a.d[c];var d=a.c,e=d.createShader(b.D());d.shaderSource(e,b.a);d.compileShader(e);return a.d[c]=e}
function Dn(a,b,c){var d=sa(b)+"/"+sa(c);if(d in a.b)return a.b[d];var e=a.c,f=e.createProgram();e.attachShader(f,Kn(a,b));e.attachShader(f,Kn(a,c));e.linkProgram(f);return a.b[d]=f}l.yh=function(){ic(this.a);ic(this.d);ic(this.b);this.e=null};l.zh=ba();l.zd=function(a){if(a==this.e)return!1;this.c.useProgram(a);this.e=a;return!0};function Ln(a,b){hl.call(this,0,b);this.a=yc("CANVAS");this.a.style.width="100%";this.a.style.height="100%";this.a.className="ol-unselectable";Dc(a,this.a,0);this.p=0;this.n=td();this.h=!0;this.d=zd(this.a,{antialias:!0,depth:!1,tf:!0,preserveDrawingBuffer:!1,stencil:!0});this.e=new Jn(this.a,this.d);z(this.a,"webglcontextlost",this.Vg,!1,this);z(this.a,"webglcontextrestored",this.Wg,!1,this);this.c=new Hn;this.l=null;this.i=new Yj(xa(function(a){var b=a[1];a=a[2];var e=b[0]-this.l[0],b=b[1]-this.l[1];
return 65536*Math.log(a)+Math.sqrt(e*e+b*b)/a},this),function(a){return a[0].d()});this.o=xa(function(){if(!this.i.ja()){dk(this.i);var a=Zj(this.i);Gn(this,a[0],a[3],a[4])}},this);this.g=0;Mn(this)}v(Ln,hl);
function Gn(a,b,c,d){var e=a.d,f=b.d();if(Fn(a.c,f))a=a.c.get(f),e.bindTexture(3553,a.pa),9729!=a.oe&&(e.texParameteri(3553,10240,9729),a.oe=9729),9729!=a.pe&&(e.texParameteri(3553,10240,9729),a.pe=9729);else{var g=e.createTexture();e.bindTexture(3553,g);if(0<d){var h=a.n.canvas,m=a.n;a.p!=c?(h.width=c,h.height=c,a.p=c):m.clearRect(0,0,c,c);m.drawImage(b.b(),d,d,c,c,0,0,c,c);e.texImage2D(3553,0,6408,6408,5121,h)}else e.texImage2D(3553,0,6408,6408,5121,b.b());e.texParameteri(3553,10240,9729);e.texParameteri(3553,
10241,9729);e.texParameteri(3553,10242,33071);e.texParameteri(3553,10243,33071);In(a.c,f,{pa:g,oe:9729,pe:9729})}}l=Ln.prototype;l.Ac=function(a){return a instanceof L?new wn(this,a):a instanceof N?new Cn(this,a):null};function Nn(a,b,c){var d=a.f;ue(d.ga,b)&&A(d,new vi(b,d,new an,c,null,a.e))}l.F=function(){var a=this.d;a.isContextLost()||this.c.forEach(function(b){null===b||a.deleteTexture(b.pa)});Pd(this.e);Ln.H.F.call(this)};
l.sf=function(a,b){for(var c=this.d,d;1024<this.c.Ga()-this.g;){d=this.c.a.Fb;if(null===d)if(+this.c.a.Rc==b.index)break;else--this.g;else c.deleteTexture(d.pa);this.c.pop()}};l.Vg=function(a){a.preventDefault();this.c.clear();this.g=0;bc(this.b,function(a){a.n()})};l.Wg=function(){Mn(this);this.f.R()};function Mn(a){a=a.d;a.activeTexture(33984);a.blendFuncSeparate(770,771,1,771);a.disable(2884);a.disable(2929);a.disable(3089);a.disable(2960)}
l.Xc=function(a){var b=this.e,c=this.d;if(c.isContextLost())return!1;if(null===a)return this.h&&(Xc(this.a,!1),this.h=!1),!1;this.l=a.focus;In(this.c,(-a.index).toString(),null);++this.g;var d=[],e=a.layerStatesArray,f=a.view2DState.resolution,g,h,m;g=0;for(h=e.length;g<h;++g)m=e[g],m.visible&&(1==m.Pa&&f<m.maxResolution&&f>=m.minResolution)&&d.push(m);g=0;for(h=d.length;g<h;++g)m=d[g],e=jl(this,m.layer),e.d(a,m);g=a.size[0]*a.pixelRatio;h=a.size[1]*a.pixelRatio;if(this.a.width!=g||this.a.height!=
h)this.a.width=g,this.a.height=h;c.bindFramebuffer(36160,null);c.clearColor(0,0,0,0);c.clear(16384);c.enable(3042);c.viewport(0,0,this.a.width,this.a.height);Nn(this,"precompose",a);g=0;for(h=d.length;g<h;++g){m=d[g];c=e=jl(this,m.layer);e=a;f=b;vn(c,"precompose",f,e);En(f,c.Q);var n=f.c,p=m.brightness||1!=m.contrast||m.hue||1!=m.saturation,q=void 0,r=void 0;p?(q=gn.jb(),r=hn.jb()):(q=kn.jb(),r=ln.jb());q=Dn(f,q,r);r=void 0;p?null===c.h?(r=new jn(n,q),c.h=r):r=c.h:null===c.l?(r=new mn(n,q),c.l=r):
r=c.l;f.zd(q)&&(n.enableVertexAttribArray(r.a),n.vertexAttribPointer(r.a,2,5126,!1,16,0),n.enableVertexAttribArray(r.c),n.vertexAttribPointer(r.c,2,5126,!1,16,8),n.uniform1i(r.b,0));n.uniformMatrix4fv(r.f,!1,c.A);n.uniformMatrix4fv(r.e,!1,c.B);p&&n.uniformMatrix4fv(r.g,!1,cn(c.ca,m.brightness,m.contrast,m.hue,m.saturation));n.uniform1f(r.d,m.opacity);n.bindTexture(3553,c.pa);n.drawArrays(5,0,4);vn(c,"postcompose",f,e)}this.h||(Xc(this.a,!0),this.h=!0);il(a);1024<this.c.Ga()-this.g&&a.postRenderFunctions.push(xa(this.sf,
this));this.i.ja()||(a.postRenderFunctions.push(this.o),a.animate=!0);Nn(this,"postcompose",a);ll(this,a);kl(a)};var On=["canvas","webgl","dom"];
function T(a){Me.call(this);var b=Pn(a);this.dd=s(a.pixelRatio)?a.pixelRatio:Ad;this.cd=b.ol3Logo;this.n=new Cj(this.Wh,void 0,this);Od(this,this.n);this.xc=kd();this.ff=kd();this.bd=0;this.l=this.Q=this.d=null;this.b=vc("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow="hidden";this.b.style.width="100%";this.b.style.height="100%";this.b.style.msTouchAction="none";Hd&&(this.b.className="ol-touch");this.fa=vc("DIV","ol-overlaycontainer");this.b.appendChild(this.fa);this.v=
vc("DIV","ol-overlaycontainer-stopevent");z(this.v,["click","dblclick","mousedown","touchstart","MSPointerDown",Xf,"mousewheel"],Rd);this.b.appendChild(this.v);a=new Pf(this);z(a,fc($f),this.ve,!1,this);Od(this,a);this.ea=b.keyboardEventTarget;this.o=new Mj;z(this.o,"key",this.ie,!1,this);Od(this,this.o);a=new Uj(this.b);z(a,"mousewheel",this.ie,!1,this);Od(this,a);this.i=b.controls;this.yc=b.deviceOptions;this.g=b.interactions;this.h=b.overlays;this.aa=new b.Yh(this.b,this);Od(this,this.aa);this.gf=
new Ij;z(this.gf,"resize",this.G,!1,this);this.S=null;this.A=[];this.Oa=[];this.gb=new ek(xa(this.If,this),xa(this.kg,this));this.skippedFeatureUids_={};z(this,Qe("layergroup"),this.Vf,!1,this);z(this,Qe("view"),this.lg,!1,this);z(this,Qe("size"),this.ig,!1,this);z(this,Qe("target"),this.jg,!1,this);this.I(b.ii);this.i.forEach(function(a){a.setMap(this)},this);z(this.i,"add",function(a){a.element.setMap(this)},!1,this);z(this.i,"remove",function(a){a.element.setMap(null)},!1,this);this.g.forEach(function(a){a.setMap(this)},
this);z(this.g,"add",function(a){a.element.setMap(this)},!1,this);z(this.g,"remove",function(a){a.element.setMap(null)},!1,this);this.h.forEach(function(a){a.setMap(this)},this);z(this.h,"add",function(a){a.element.setMap(this)},!1,this);z(this.h,"remove",function(a){a.element.setMap(null)},!1,this)}v(T,Me);l=T.prototype;l.hf=function(a){this.i.push(a)};l.jf=function(a){this.g.push(a)};l.kf=function(a){this.lb().Pb().push(a)};l.lf=function(a){this.h.push(a)};
l.sa=function(a){this.R();Array.prototype.push.apply(this.A,arguments)};l.F=function(){Ec(this.b);T.H.F.call(this)};l.wd=function(a,b,c,d,e){if(null!==this.d){a=this.wa(a);a:{var f=this.aa,g=this.d;c=s(c)?c:null;d=s(d)?d:Ae;e=s(e)?e:null;var h=f.f.lb().Hc(),m;for(m=h.length-1;0<=m;--m){var n=h[m],p=n.layer;if(n.visible&&d.call(e,p)&&(n=jl(f,p).f(a,g,b,c))){b=n;break a}}b=void 0}return b}};l.$d=function(a){return this.wa(this.md(a))};
l.md=function(a){if(s(a.changedTouches)){a=a.changedTouches.item(0);var b=Sc(this.b);return[a.clientX-b.x,a.clientY-b.y]}a=Rc(a,this.b);return[a.x,a.y]};l.pc=function(){return this.get("target")};T.prototype.getTarget=T.prototype.pc;l=T.prototype;l.wa=function(a){var b=this.d;if(null===b)return null;a=a.slice();return gl(b.pixelToCoordinateMatrix,a,a)};l.wf=k("i");l.Ff=k("h");l.zf=k("g");l.lb=function(){return this.get("layergroup")};T.prototype.getLayerGroup=T.prototype.lb;
T.prototype.ef=function(){var a=this.lb();if(s(a))return a.Pb()};T.prototype.f=function(a){var b=this.d;if(null===b)return null;a=a.slice(0,2);return gl(b.coordinateToPixelMatrix,a,a)};T.prototype.e=function(){return this.get("size")};T.prototype.getSize=T.prototype.e;T.prototype.a=function(){return this.get("view")};T.prototype.getView=T.prototype.a;l=T.prototype;l.Jf=k("b");
l.If=function(a,b,c,d){var e=this.d;if(!(null!==e&&b in e.wantedTiles&&e.wantedTiles[b][a.a.toString()]))return Infinity;a=c[0]-e.focus[0];c=c[1]-e.focus[1];return 65536*Math.log(d)+Math.sqrt(a*a+c*c)/d};l.ie=function(a,b){var c=new Nf(b||a.type,this,a);this.ve(c)};l.ve=function(a){if(null!==this.d){this.S=a.coordinate;a.b=this.d;var b=this.g.a,c;if(!1!==A(this,a))for(c=b.length-1;0<=c&&b[c].za(a);c--);}};
l.fg=function(){var a=this.d,b=this.gb;if(!b.ja()){var c=16,d=c,e=0;if(null!==a){var e=a.viewHints,f=this.yc;e[0]&&(c=!1===f.loadTilesWhileAnimating?0:8,d=2);e[1]&&(c=!1===f.loadTilesWhileInteracting?0:8,d=2);e=ec(a.wantedTiles)}c*=e;d*=e;if(b.d<c){dk(b);c=Math.min(c-b.d,d,b.Ga());for(d=0;d<c;++d)e=Zj(b)[0],oe(e,"change",b.g,!1,b),0==e.state&&(e.state=1,e.e=[oe(e.c,"error",e.l,!1,e),oe(e.c,"load",e.p,!1,e)],e.n(e,e.h));b.d+=c}}b=this.Oa;c=0;for(d=b.length;c<d;++c)b[c](this,a);b.length=0};l.ig=function(){this.R()};
l.jg=function(){var a=this.pc(),a=s(a)?rc(a):null;Tj(this.o);null===a?Ec(this.b):(a.appendChild(this.b),Nj(this.o,null===this.ea?a:this.ea));this.G()};l.kg=function(){this.R()};l.mg=function(){this.R()};l.lg=function(){null!==this.Q&&(re(this.Q),this.Q=null);var a=this.a();null!=a&&(this.Q=z(a,"propertychange",this.mg,!1,this));this.R()};l.Wf=function(){this.R()};l.Xf=function(){this.R()};
l.Vf=function(){if(null!==this.l){for(var a=this.l.length,b=0;b<a;++b)re(this.l[b]);this.l=null}a=this.lb();null!=a&&(this.l=[z(a,"propertychange",this.Xf,!1,this),z(a,"change",this.Wf,!1,this)]);this.R()};l.Xh=function(){var a=this.n;Dj(a);a.Ud()};l.R=function(){null!=this.n.Z||this.n.start()};l.Rh=function(a){if(s(this.i.remove(a)))return a};l.Th=function(a){var b;s(this.g.remove(a))&&(b=a);return b};l.Uh=function(a){return this.lb().Pb().remove(a)};l.Vh=function(a){if(s(this.h.remove(a)))return a};
l.Wh=function(a){var b,c,d,e=this.e();b=this.a();var f=s(b)?this.a().W():void 0,g=null;if(s(e)&&0<e[0]&&0<e[1]&&s(f)&&f.vd()){var g=Db(b.h),h=this.lb().Hc(),m={};b=0;for(c=h.length;b<c;++b)m[sa(h[b].layer)]=h[b];d=wh(f);g={animate:!1,attributions:{},coordinateToPixelMatrix:this.xc,extent:null,focus:null===this.S?d.center:this.S,index:this.bd++,layerStates:m,layerStatesArray:h,logos:{},pixelRatio:this.dd,pixelToCoordinateMatrix:this.ff,postRenderFunctions:[],size:e,skippedFeatureUids_:this.skippedFeatureUids_,
tileQueue:this.gb,time:a,usedTiles:{},view2DState:d,viewHints:g,wantedTiles:{}};this.cd&&(g.logos["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://ol3js.org/")}a=this.A;b=e=0;for(c=a.length;b<c;++b)f=a[b],f(this,g)&&(a[e++]=f);a.length=e;null!==g&&(g.extent=Hg(d.center,d.resolution,d.rotation,g.size));this.d=g;this.aa.Xc(g);null!==g&&(g.animate&&this.R(),Array.prototype.push.apply(this.Oa,g.postRenderFunctions),0!==this.A.length||(g.animate||g.viewHints[0]||g.viewHints[1])||A(this,new df("moveend",this)));A(this,new df("postrender",this,g));b=d=this.fg;this&&(b=xa(d,this));pa(ea.setImmediate)?ea.setImmediate(b):(Gj||(Gj=Hj()),Gj(b))};
l.Ve=function(a){this.w("layergroup",a)};T.prototype.setLayerGroup=T.prototype.Ve;T.prototype.B=function(a){this.w("size",a)};T.prototype.setSize=T.prototype.B;T.prototype.qa=function(a){this.w("target",a)};T.prototype.setTarget=T.prototype.qa;T.prototype.Pa=function(a){this.w("view",a)};T.prototype.setView=T.prototype.Pa;T.prototype.Fa=function(a){a=sa(a).toString();this.skippedFeatureUids_[a]=!0;this.R()};
T.prototype.G=function(){var a=this.pc(),a=s(a)?rc(a):null;null===a?this.B(void 0):(a=Zc(a),this.B([a.width,a.height]))};T.prototype.sb=function(a){a=sa(a).toString();delete this.skippedFeatureUids_[a];this.R()};
function Pn(a){var b=null;s(a.keyboardEventTarget)&&(b=na(a.keyboardEventTarget)?document.getElementById(a.keyboardEventTarget):a.keyboardEventTarget);var c={},d=s(a.ol3Logo)?a.ol3Logo:!0,e=a.layers instanceof J?a.layers:new J({layers:a.layers});c.layergroup=e;c.target=a.target;c.view=s(a.view)?a.view:new G;var e=hl,f;s(a.renderer)?ja(a.renderer)?f=a.renderer:na(a.renderer)&&(f=[a.renderer]):f=On;var g,h;g=0;for(h=f.length;g<h;++g){var m=f[g];if("canvas"==m){if(Dd){e=Qm;break}}else if("dom"==m){e=
$m;break}else if("webgl"==m&&Kd){e=Ln;break}}f=s(a.controls)?ja(a.controls)?new D(Db(a.controls)):a.controls:kk();g=s(a.deviceOptions)?a.deviceOptions:{};h=s(a.interactions)?ja(a.interactions)?new D(Db(a.interactions)):a.interactions:xk();a=s(a.overlays)?ja(a.overlays)?new D(Db(a.overlays)):a.overlays:new D;return{controls:f,deviceOptions:g,interactions:h,keyboardEventTarget:b,ol3Logo:d,overlays:a,Yh:e,ii:c}}Gk();function Qn(a,b){Qd.call(this,a);this.feature=b}v(Qn,Qd);
function Rn(a){Ih.call(this);this.v=null;this.B=s(a.source)?a.source:null;this.A=s(a.features)?a.features:null;this.Q=s(a.snapTolerance)?a.snapTolerance:12;this.G=s(a.minPointsPerRing)?a.minPointsPerRing:3;var b=this.n=a.type,c;if("Point"===b||"MultiPoint"===b)c=Sn;else if("LineString"===b||"MultiLineString"===b)c=Tn;else if("Polygon"===b||"MultiPolygon"===b)c=Un;this.a=c;this.d=this.h=this.l=this.f=this.e=null;this.S=4;this.o=new Vi({style:s(a.style)?a.style:Vn()})}v(Rn,Ih);
function Vn(){var a=Ui();return function(b){return a[b.M().D()]}}Rn.prototype.setMap=function(a){null===a&&Wn(this);this.o.setMap(a);Rn.H.setMap.call(this,a)};Rn.prototype.za=function(a){var b;b=a.map;if(Gc(document,b.b)&&"none"!=b.b.style.display){var c=b.e();null==c||0>=c[0]||0>=c[1]?b=!1:(b=b.a(),b=s(b)&&b.vd()?!0:!1)}else b=!1;if(!b)return!0;b=!0;a.type===Yf?b=Xn(this,a):a.type===Sf&&(b=!1);return Rn.H.za.call(this,a)&&b};Rn.prototype.$a=function(a){this.v=a.pixel;return!0};
Rn.prototype.ab=function(a){var b=this.v,c=a.pixel,d=b[0]-c[0],b=b[1]-c[1],c=!0;if(d*d+b*b<=this.S){Xn(this,a);if(null===this.e)Yn(this,a);else if(this.a===Sn||Zn(this,a)){a=Wn(this);var e,d=a.M();this.a===Sn?e=d.C():this.a===Tn?(e=d.C(),e.pop(),d.J(e)):this.a===Un&&(this.d[0].pop(),this.d[0].push(this.d[0][0]),d.J(this.d),e=d.C());"MultiPoint"===this.n?a.fb(new pm([e])):"MultiLineString"===this.n?a.fb(new Q([e])):"MultiPolygon"===this.n&&a.fb(new S([e]));null===this.A||this.A.push(a);null===this.B||
this.B.Ka(a);A(this,new Qn("drawend",a))}else e=a.coordinate,a=this.f.M(),this.a===Tn?(this.e=e.slice(),d=a.C(),d.push(e.slice()),a.J(d)):this.a===Un&&(this.d[0].push(e.slice()),a.J(this.d)),$n(this);c=!1}return c};
function Xn(a,b){if(a.a===Sn&&null===a.e)Yn(a,b);else if(null!==a.e){var c=b.coordinate,d=a.f.M(),e,f;a.a===Sn?(f=d.C(),f[0]=c[0],f[1]=c[1],d.J(f)):(a.a===Tn?e=d.C():a.a===Un&&(e=a.d[0]),Zn(a,b)&&(c=a.e.slice()),a.l.M().J(c),f=e[e.length-1],f[0]=c[0],f[1]=c[1],a.a===Tn?d.J(e):a.a===Un&&(a.h.M().J(e),d.J(a.d)));$n(a)}return!0}
function Zn(a,b){var c=!1;if(null!==a.f){var d=a.f.M(),e=!1,f=[a.e];a.a===Tn?e=2<d.C().length:a.a===Un&&(e=d.C()[0].length>a.G,f=[a.d[0][0],a.d[0][a.d[0].length-2]]);if(e)for(var d=b.map,e=0,g=f.length;e<g;e++){var h=f[e],m=d.f(h),n=b.pixel,c=n[0]-m[0],m=n[1]-m[1];if(c=Math.sqrt(c*c+m*m)<=a.Q){a.e=h;break}}}return c}
function Yn(a,b){var c=b.coordinate;a.e=c;var d;a.a===Sn?d=new ii(c.slice()):(a.l=new H(new ii(c.slice())),a.a===Tn?d=new P([c.slice(),c.slice()]):a.a===Un&&(a.h=new H(new P([c.slice(),c.slice()])),a.d=[[c.slice(),c.slice()]],d=new qi(a.d)));a.f=new H(d);$n(a);A(a,new Qn("drawstart",a.f))}function Wn(a){a.e=null;var b=a.f;null!==b&&(a.f=null,a.l=null,a.h=null,a.o.a.clear());return b}function $n(a){var b=[a.f];null===a.h||b.push(a.h);null===a.l||b.push(a.l);a.o.uc(new D(b))}
var Sn="Point",Tn="LineString",Un="Polygon";var ao=new Sg(6378137);function U(a){Me.call(this);a=s(a)?a:{};this.a=null;this.d=sh;this.b=void 0;z(this,Qe("projection"),this.Ng,!1,this);z(this,Qe("tracking"),this.Og,!1,this);s(a.projection)&&this.h(qh(a.projection));s(a.trackingOptions)&&this.l(a.trackingOptions);this.e(s(a.tracking)?a.tracking:!1)}v(U,Me);l=U.prototype;l.F=function(){this.e(!1);U.H.F.call(this)};l.Ng=function(){var a=this.g();null!=a&&(this.d=$g(qh("EPSG:4326"),a),null===this.a||this.w("position",this.d(this.a)))};
l.Og=function(){if(Fd){var a=this.i();a&&!s(this.b)?this.b=ea.navigator.geolocation.watchPosition(xa(this.Mh,this),xa(this.Nh,this),this.f()):!a&&s(this.b)&&(ea.navigator.geolocation.clearWatch(this.b),this.b=void 0)}};
l.Mh=function(a){a=a.coords;this.w("accuracy",a.accuracy);this.w("altitude",null===a.altitude?void 0:a.altitude);this.w("altitudeAccuracy",null===a.altitudeAccuracy?void 0:a.altitudeAccuracy);this.w("heading",null===a.heading?void 0:Zb(a.heading));null===this.a?this.a=[a.longitude,a.latitude]:(this.a[0]=a.longitude,this.a[1]=a.latitude);var b=this.d(this.a);this.w("position",b);this.w("speed",null===a.speed?void 0:a.speed);a=ui(ao,this.a,a.accuracy);a.tb(this.d);this.w("accuracyGeometry",a);this.k()};
l.Nh=function(a){a.type="error";A(this,a)};l.Yd=function(){return this.get("accuracy")};U.prototype.getAccuracy=U.prototype.Yd;U.prototype.n=function(){return this.get("accuracyGeometry")||null};U.prototype.getAccuracyGeometry=U.prototype.n;U.prototype.o=function(){return this.get("altitude")};U.prototype.getAltitude=U.prototype.o;U.prototype.v=function(){return this.get("altitudeAccuracy")};U.prototype.getAltitudeAccuracy=U.prototype.v;U.prototype.B=function(){return this.get("heading")};
U.prototype.getHeading=U.prototype.B;U.prototype.G=function(){return this.get("position")};U.prototype.getPosition=U.prototype.G;U.prototype.g=function(){return this.get("projection")};U.prototype.getProjection=U.prototype.g;U.prototype.A=function(){return this.get("speed")};U.prototype.getSpeed=U.prototype.A;U.prototype.i=function(){return this.get("tracking")};U.prototype.getTracking=U.prototype.i;U.prototype.f=function(){return this.get("trackingOptions")};U.prototype.getTrackingOptions=U.prototype.f;
U.prototype.h=function(a){this.w("projection",a)};U.prototype.setProjection=U.prototype.h;U.prototype.e=function(a){this.w("tracking",a)};U.prototype.setTracking=U.prototype.e;U.prototype.l=function(a){this.w("trackingOptions",a)};U.prototype.setTrackingOptions=U.prototype.l;function bo(a,b,c,d,e){Xj.call(this,a,b);this.h=c;this.c=new Image;null!==d&&(this.c.crossOrigin=d);this.f={};this.e=null;this.n=e}v(bo,Xj);bo.prototype.b=function(a){if(s(a)){var b=sa(a);if(b in this.f)return this.f[b];a=hc(this.f)?this.c:this.c.cloneNode(!1);return this.f[b]=a}return this.c};bo.prototype.d=k("h");bo.prototype.l=function(){this.state=3;wb(this.e,re);this.e=null;A(this,"change")};
bo.prototype.p=function(){s(this.c.naturalWidth)||(this.c.naturalWidth=this.c.width,this.c.naturalHeight=this.c.height);this.state=this.c.naturalWidth&&this.c.naturalHeight?2:4;wb(this.e,re);this.e=null;A(this,"change")};function V(a){Me.call(this);this.n=s(a.insertFirst)?a.insertFirst:!0;this.A=s(a.stopEvent)?a.stopEvent:!0;this.o=s(a.offsetX)?a.offsetX:0;this.v=s(a.offsetY)?a.offsetY:0;this.b=yc("DIV");this.b.style.position="absolute";this.a={zc:"",Sc:"",Yc:"",$c:"",visible:!0};this.d=null;z(this,Qe("element"),this.Pf,!1,this);z(this,Qe("map"),this.ag,!1,this);z(this,Qe("position"),this.dg,!1,this);z(this,Qe("positioning"),this.eg,!1,this);s(a.element)&&this.Fd(a.element);s(a.position)&&this.h(a.position);s(a.positioning)&&
this.l(a.positioning)}v(V,Me);V.prototype.g=function(){return this.get("element")};V.prototype.getElement=V.prototype.g;V.prototype.e=function(){return this.get("map")};V.prototype.getMap=V.prototype.e;V.prototype.i=function(){return this.get("position")};V.prototype.getPosition=V.prototype.i;V.prototype.f=function(){return this.get("positioning")};V.prototype.getPositioning=V.prototype.f;l=V.prototype;l.Pf=function(){Ac(this.b);var a=this.g();null!=a&&zc(this.b,a)};
l.ag=function(){null!==this.d&&(Ec(this.b),re(this.d),this.d=null);var a=this.e();null!=a&&(this.d=z(a,"postrender",this.Qg,!1,this),co(this),a=this.A?a.v:a.fa,this.n?Dc(a,this.b,0):zc(a,this.b))};l.Qg=function(){co(this)};l.dg=function(){co(this)};l.eg=function(){co(this)};l.Fd=function(a){this.w("element",a)};V.prototype.setElement=V.prototype.Fd;V.prototype.setMap=function(a){this.w("map",a)};V.prototype.setMap=V.prototype.setMap;V.prototype.h=function(a){this.w("position",a)};
V.prototype.setPosition=V.prototype.h;V.prototype.l=function(a){this.w("positioning",a)};V.prototype.setPositioning=V.prototype.l;
function co(a){var b=a.e(),c=a.i();if(s(b)&&null!==b.d&&s(c)){var c=b.f(c),d=b.e(),b=a.b.style,e=a.f();if("bottom-right"==e||"center-right"==e||"top-right"==e){""!==a.a.Sc&&(a.a.Sc=b.left="");var f=Math.round(d[0]-c[0])+"px";a.a.Yc!=f&&(a.a.Yc=b.right=f)}else{""!==a.a.Yc&&(a.a.Yc=b.right="");f=-a.o;if("bottom-center"==e||"center-center"==e||"top-center"==e)f+=Uc(a.b).width/2;f=Math.round(c[0]-f)+"px";a.a.Sc!=f&&(a.a.Sc=b.left=f)}if("bottom-left"==e||"bottom-center"==e||"bottom-right"==e)""!==a.a.$c&&
(a.a.$c=b.top=""),c=Math.round(d[1]-c[1])+"px",a.a.zc!=c&&(a.a.zc=b.bottom=c);else{""!==a.a.zc&&(a.a.zc=b.bottom="");d=-a.v;if("center-left"==e||"center-center"==e||"center-right"==e)d+=Uc(a.b).height/2;c=Math.round(c[1]-d)+"px";a.a.$c!=c&&(a.a.$c=b.top=c)}a.a.visible||(Xc(a.b,!0),a.a.visible=!0)}else a.a.visible&&(Xc(a.b,!1),a.a.visible=!1)};var eo=cb?"webkitfullscreenchange":bb?"mozfullscreenchange":$a?"MSFullscreenChange":"fullscreenchange";function fo(){var a=oc().a,b=a.body;return!!(b.webkitRequestFullscreen||b.mozRequestFullScreen&&a.mozFullScreenEnabled||b.msRequestFullscreen&&a.msFullscreenEnabled||b.requestFullscreen&&a.fullscreenEnabled)}
function go(a){a.webkitRequestFullscreen?a.webkitRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen?a.msRequestFullscreen():a.requestFullscreen&&a.requestFullscreen()}function ho(){var a=oc().a;return!!(a.webkitIsFullScreen||a.mozFullScreen||a.msFullscreenElement||a.fullscreenElement)};function io(a){a=s(a)?a:{};this.e=s(a.className)?a.className:"ol-full-screen";var b=vc("SPAN",{role:"tooltip"},s(a.tipLabel)?a.tipLabel:"Toggle full-screen"),c=vc("BUTTON",{"class":this.e+"-"+ho()+" ol-has-tooltip"});c.appendChild(b);b=new Gf(c);Od(this,b);z(b,sf,this.f,!1,this);z(c,["mouseout",Wd],function(){this.blur()},!1);z(ea.document,eo,this.i,!1,this);b=this.e+" ol-unselectable ol-control"+(fo()?"":"ol-unsupported");c=vc("DIV",b,c);fk.call(this,{element:c,target:a.target});this.h=s(a.keys)?
a.keys:!1}v(io,fk);io.prototype.f=function(a){fo()&&(a.a.preventDefault(),a=this.b,null!==a&&(ho()?(a=oc().a,a.webkitCancelFullScreen?a.webkitCancelFullScreen():a.mozCancelFullScreen?a.mozCancelFullScreen():a.msExitFullscreen?a.msExitFullscreen():a.exitFullscreen&&a.exitFullscreen()):(a=a.pc(),a=rc(a),this.h?a.mozRequestFullScreenWithKeys?a.mozRequestFullScreenWithKeys():a.webkitRequestFullscreen?a.webkitRequestFullscreen():go(a):go(a))))};
io.prototype.i=function(){var a=this.e+"-true",b=this.e+"-false",c=Fc(this.element),d=this.b;ho()?Wb(c,b,a):Wb(c,a,b);null===d||d.G()};function jo(a){a=s(a)?a:{};var b=vc("DIV",{"class":s(a.className)?a.className:"ol-mouse-position"});fk.call(this,{element:b,target:a.target});z(this,Qe("projection"),this.Q,!1,this);s(a.coordinateFormat)&&this.v(a.coordinateFormat);s(a.projection)&&this.o(qh(a.projection));this.S=s(a.undefinedHTML)?a.undefinedHTML:"";this.l=b.innerHTML;this.i=this.f=this.e=null}v(jo,fk);
jo.prototype.d=function(a){a=a.b;null===a?this.e=null:this.e!=a.view2DState.projection&&(this.e=a.view2DState.projection,this.f=null);ko(this,this.i)};jo.prototype.Q=function(){this.f=null};jo.prototype.h=function(){return this.get("coordinateFormat")};jo.prototype.getCoordinateFormat=jo.prototype.h;jo.prototype.n=function(){return this.get("projection")};jo.prototype.getProjection=jo.prototype.n;jo.prototype.B=function(a){a=Rc(a,this.b.b);this.i=[a.x,a.y];ko(this,this.i)};
jo.prototype.G=function(){ko(this,null);this.i=null};jo.prototype.setMap=function(a){jo.H.setMap.call(this,a);null!==a&&(a=a.b,this.g.push(z(a,"mousemove",this.B,!1,this),z(a,"mouseout",this.G,!1,this)))};jo.prototype.v=function(a){this.w("coordinateFormat",a)};jo.prototype.setCoordinateFormat=jo.prototype.v;jo.prototype.o=function(a){this.w("projection",a)};jo.prototype.setProjection=jo.prototype.o;
function ko(a,b){var c=a.S;if(null!==b&&null!==a.e){if(null===a.f){var d=a.n();a.f=s(d)?$g(a.e,d):sh}d=a.b.wa(b);null!==d&&(a.f(d,d),c=a.h(),c=s(c)?c(d):d.toString())}s(a.l)&&c==a.l||(a.element.innerHTML=c,a.l=c)};function lo(a){a=s(a)?a:{};var b=s(a.className)?a.className:"ol-scale-line";this.i=vc("DIV",{"class":b+"-inner"});this.l=vc("DIV",{"class":b+" ol-unselectable"},this.i);this.v=null;this.h=s(a.minWidth)?a.minWidth:64;this.f=!1;this.G=void 0;this.B="";this.e=null;fk.call(this,{element:this.l,target:a.target});z(this,Qe("units"),this.Q,!1,this);this.o(a.units||"metric")}v(lo,fk);var mo=[1,2,5];lo.prototype.n=function(){return this.get("units")};lo.prototype.getUnits=lo.prototype.n;
lo.prototype.d=function(a){a=a.b;null===a?this.v=null:this.v=a.view2DState;no(this)};lo.prototype.Q=function(){no(this)};lo.prototype.o=function(a){this.w("units",a)};lo.prototype.setUnits=lo.prototype.o;
function no(a){var b=a.v;if(null===b)a.f&&(Xc(a.l,!1),a.f=!1);else{var c=b.center,d=b.projection,b=d.d(b.resolution,c),e=d.Da,f=a.n();"degrees"!=e||"metric"!=f&&"imperial"!=f?"ft"!=e&&"m"!=e||"degrees"!=f?a.e=null:(null===a.e&&(a.e=$g(d,qh("EPSG:4326"))),c=Math.cos(Zb(a.e(c)[1])),d=Ug.radius,"ft"==e&&(d/=0.3048),b*=180/(Math.PI*c*d)):(a.e=null,c=Math.cos(Zb(c[1])),b*=Math.PI*c*Ug.radius/180);c=a.h*b;e="";"degrees"==f?c<1/60?(e="\u2033",b*=3600):1>c?(e="\u2032",b*=60):e="\u00b0":"imperial"==f?0.9144>
c?(e="in",b/=0.0254):1609.344>c?(e="ft",b/=0.3048):(e="mi",b/=1609.344):"nautical"==f?(b/=1852,e="nm"):"metric"==f?1>c?(e="mm",b*=1E3):1E3>c?e="m":(e="km",b/=1E3):"us"==f&&(0.9144>c?(e="in",b*=39.37):1609.344>c?(e="ft",b/=0.30480061):(e="mi",b/=1609.3472));for(var f=3*Math.floor(Math.log(a.h*b)/Math.log(10)),g,h;;){g=mo[f%3]*Math.pow(10,Math.floor(f/3));h=Math.round(g/b);if(h>=a.h)break;++f}g=g+e;a.B!=g&&(a.i.innerHTML=g,a.B=g);a.G!=h&&(a.i.style.width=h+"px",a.G=h);a.f||(Xc(a.l,!0),a.f=!0)}};function oo(a){Ld.call(this);this.c=a;this.a={}}v(oo,Ld);var po=[];oo.prototype.na=function(a,b,c,d,e){ja(b)||(po[0]=b,b=po);for(var f=0;f<b.length;f++){var g=z(a,b[f],c||this,d||!1,e||this.c||this);this.a[g.key]=g}return this};
oo.prototype.Hd=function(a,b,c,d,e){if(ja(b))for(var f=0;f<b.length;f++)this.Hd(a,b[f],c,d,e);else{a:if(e=e||this.c||this,d=!!d,c=ke(c||this),ce(a))a=a.ga.a[b],b=-1,a&&(b=Ge(a,c,d,e)),e=-1<b?a[b]:null;else{if(a=qe(a,b,d))for(b=0;b<a.length;b++)if(!a[b].eb&&a[b].Ja==c&&a[b].capture==d&&a[b].zb==e){e=a[b];break a}e=null}e&&(re(e),delete this.a[e.key])}return this};function qo(a){bc(a.a,re);a.a={}}oo.prototype.F=function(){oo.H.F.call(this);qo(this)};
oo.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function ro(a,b,c){He.call(this);this.target=a;this.handle=b||a;this.c=c||new Jc(NaN,NaN,NaN,NaN);this.b=qc(a);this.a=new oo(this);Od(this,this.a);z(this.handle,["touchstart","mousedown"],this.Xe,!1,this)}v(ro,He);var so=$a||bb&&ob("1.9.3");l=ro.prototype;l.clientX=0;l.clientY=0;l.screenX=0;l.screenY=0;l.Ye=0;l.Ze=0;l.Mb=0;l.Nb=0;l.Wd=!0;l.vb=!1;l.le=0;l.rg=0;l.ng=!1;l.Id=!1;
l.F=function(){ro.H.F.call(this);pe(this.handle,["touchstart","mousedown"],this.Xe,!1,this);qo(this.a);so&&this.b.releaseCapture();this.handle=this.target=null};function to(a){s(a.e)||(a.e=Yc(a.target));return a.e}
l.Xe=function(a){var b="mousedown"==a.type;if(!this.Wd||this.vb||b&&!ae(a))A(this,"earlycancel");else{uo(a);if(0==this.le)if(A(this,new vo("start",this,a.clientX,a.clientY,a)))this.vb=!0,a.preventDefault();else return;else a.preventDefault();var b=this.b,c=b.documentElement,d=!so;this.a.na(b,["touchmove","mousemove"],this.bg,d);this.a.na(b,["touchend","mouseup"],this.Dc,d);so?(c.setCapture(!1),this.a.na(c,"losecapture",this.Dc)):this.a.na(b?b.parentWindow||b.defaultView:window,"blur",this.Dc);$a&&
this.ng&&this.a.na(b,"dragstart",Sd);this.f&&this.a.na(this.f,"scroll",this.Eh,d);this.clientX=this.Ye=a.clientX;this.clientY=this.Ze=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.Id?(a=this.target,b=a.offsetLeft,c=a.offsetParent,c||"fixed"!=Lc(a,"position")||(c=qc(a).documentElement),c?(bb?(d=cd(c),b+=d.left):$a&&8<=qb&&(d=cd(c),b-=d.left),a=Yc(c)?c.clientWidth-(b+a.offsetWidth):b):a=b):a=this.target.offsetLeft;this.Mb=a;this.Nb=this.target.offsetTop;this.d=Hc(oc(this.b));this.rg=
za()}};l.Dc=function(a,b){qo(this.a);so&&this.b.releaseCapture();if(this.vb){uo(a);this.vb=!1;var c=wo(this,this.Mb),d=xo(this,this.Nb);A(this,new vo("end",this,a.clientX,a.clientY,a,c,d,b||"touchcancel"==a.type))}else A(this,"earlycancel")};function uo(a){var b=a.type;"touchstart"==b||"touchmove"==b?Zd(a,a.P.targetTouches[0],a.c):"touchend"!=b&&"touchcancel"!=b||Zd(a,a.P.changedTouches[0],a.c)}
l.bg=function(a){if(this.Wd){uo(a);var b=(this.Id&&to(this)?-1:1)*(a.clientX-this.clientX),c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.vb){var d=this.Ye-this.clientX,e=this.Ze-this.clientY;if(d*d+e*e>this.le)if(A(this,new vo("start",this,a.clientX,a.clientY,a)))this.vb=!0;else{this.Na||this.Dc(a);return}}c=yo(this,b,c);b=c.x;c=c.y;this.vb&&A(this,new vo("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(zo(this,a,b,c),
a.preventDefault())}};function yo(a,b,c){var d=Hc(oc(a.b));b+=d.x-a.d.x;c+=d.y-a.d.y;a.d=d;a.Mb+=b;a.Nb+=c;b=wo(a,a.Mb);a=xo(a,a.Nb);return new $b(b,a)}l.Eh=function(a){var b=yo(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;zo(this,a,b.x,b.y)};function zo(a,b,c,d){a.Id&&to(a)?a.target.style.right=c+"px":a.target.style.left=c+"px";a.target.style.top=d+"px";A(a,new vo("drag",a,b.clientX,b.clientY,b,c,d))}
function wo(a,b){var c=a.c,d=isNaN(c.left)?null:c.left,c=isNaN(c.width)?0:c.width;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}function xo(a,b){var c=a.c,d=isNaN(c.top)?null:c.top,c=isNaN(c.height)?0:c.height;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}function vo(a,b,c,d,e,f,g,h){Qd.call(this,a);this.clientX=c;this.clientY=d;this.d=e;this.left=s(f)?f:b.Mb;this.top=s(g)?g:b.Nb;this.b=b;this.a=!!h}v(vo,Qd);function Ao(a){a=s(a)?a:{};this.e=void 0;this.i=Bo;this.h=!1;var b=s(a.className)?a.className:"ol-zoomslider";a=vc("DIV",[b+"-thumb","ol-unselectable"]);b=vc("DIV",[b,"ol-unselectable"],a);this.f=new ro(a);Od(this,this.f);z(this.f,["drag","end"],this.n,void 0,this);z(b,"click",this.l,!1,this);z(a,"click",Rd);fk.call(this,{element:b})}v(Ao,fk);var Bo=0;Ao.prototype.setMap=function(a){Ao.H.setMap.call(this,a);null===a||a.R()};
Ao.prototype.d=function(a){if(null!==a.b){if(!this.h){var b=this.element,c=Fc(b),b=Zc(b),d;d=Qc(c);var e=Uc(c);d=new Jc(d.x,d.y,e.width,e.height);var e=bd(c,"margin"),f=cd(c),c=b.width-e.left-e.right-f.left-f.right-d.width;d=b.height-e.top-e.bottom-f.top-f.bottom-d.height;b.width>b.height?(this.i=1,b=new Jc(0,0,c,0)):(this.i=Bo,b=new Jc(0,0,0,d));this.f.c=b||new Jc(NaN,NaN,NaN,NaN);this.h=!0}a=a.b.view2DState.resolution;a!==this.e&&(this.e=a,a=-1*(vh(this.b.a().W())(a)-1),b=this.f,c=Fc(this.element),
1==this.i?Mc(c,b.c.left+b.c.width*a):Mc(c,b.c.left,b.c.top+b.c.height*a))}};Ao.prototype.l=function(a){var b=this.b,c=b.a().W();a=Co(this,Do(this,a.offsetX,a.offsetY));b.sa(Dh({resolution:a,duration:200,easing:xh}));a=c.constrainResolution(a);c.d(a)};function Do(a,b,c){var d=a.f.c,e=0;return e=1===a.i?(b-d.left)/d.width:(c-d.top)/d.height}function Co(a,b){b=-1*(Xb(b,0,1)-1);return uh(a.b.a().W())(b)}
Ao.prototype.n=function(a){var b=this.b,c=b.a().W();"drag"===a.type?(a=Co(this,Do(this,a.left,a.top)),a!==this.e&&(this.e=a,c.d(a))):(b.sa(Dh({resolution:this.e,duration:200,easing:xh})),a=c.constrainResolution(this.e),c.d(a))};function Eo(a){a=s(a)?a:{};this.e=s(a.extent)?a.extent:null;var b=s(a.className)?a.className:"ol-zoom-extent",c=vc("SPAN",{role:"tooltip"},s(a.tipLabel)?a.tipLabel:"Fit to extent"),d=vc("BUTTON",{"class":"ol-has-tooltip"});d.appendChild(c);c=new Gf(d);Od(this,c);z(c,sf,this.f,!1,this);z(d,["mouseout",Wd],function(){this.blur()},!1);b=vc("DIV",b+" ol-unselectable ol-control",d);fk.call(this,{element:b,target:a.target})}v(Eo,fk);
Eo.prototype.f=function(a){a.a.preventDefault();a=this.b;var b=a.a().W(),c=null===this.e?b.i().u():this.e;b.Xd(c,a.e())};function Fo(a){Me.call(this);this.a=a;z(this.a,["change","input"],this.i,!1,this);z(this,Qe("value"),this.h,!1,this);z(this,Qe("checked"),this.g,!1,this)}v(Fo,Me);Fo.prototype.b=function(){return this.get("checked")};Fo.prototype.getChecked=Fo.prototype.b;Fo.prototype.d=function(){return this.get("value")};Fo.prototype.getValue=Fo.prototype.d;Fo.prototype.f=function(a){this.w("value",a)};Fo.prototype.setValue=Fo.prototype.f;Fo.prototype.e=function(a){this.w("checked",a)};Fo.prototype.setChecked=Fo.prototype.e;
Fo.prototype.i=function(){var a=this.a;"checkbox"===a.type||"radio"===a.type?this.e(a.checked):this.f(a.value)};Fo.prototype.g=function(){this.a.checked=this.b()};Fo.prototype.h=function(){this.a.value=this.d()};function Go(){};var Ho;a:if(document.implementation&&document.implementation.createDocument)Ho=document.implementation.createDocument("","",null);else{if("undefined"!=typeof ActiveXObject){var Io=new ActiveXObject("MSXML2.DOMDocument");if(Io){Io.resolveExternals=!1;Io.validateOnParse=!1;try{Io.setProperty("ProhibitDTD",!0),Io.setProperty("MaxXMLSize",2048),Io.setProperty("MaxElementDepth",256)}catch(Jo){}}if(Io){Ho=Io;break a}}throw Error("Your browser does not support creating new documents");}var Ko=Ho;
function Lo(a,b){return Ko.createElementNS(a,b)}function Mo(a,b){null===a&&(a="");return Ko.createNode(1,b,a)}var No=document.implementation&&document.implementation.createDocument?Lo:Mo;function Oo(a){return Po(a,!1,[]).join("")}function Po(a,b,c){if(4==a.nodeType||3==a.nodeType)b?c.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(a.nodeValue);else for(a=a.firstChild;null!==a;a=a.nextSibling)Po(a,b,c);return c}function Qo(a){return a.localName}
function Ro(a){var b=a.localName;return s(b)?b:a.baseName}var So=$a?Ro:Qo;function To(a){return a instanceof Document}function Uo(a){return ra(a)&&9==a.nodeType}var Vo=$a?Uo:To;function Wo(a){return a instanceof Node}function Xo(a){return ra(a)&&s(a.nodeType)}var Yo=$a?Xo:Wo;function Zo(a,b,c){return a.getAttributeNS(b,c)||""}function $o(a,b,c){var d="";a=ap(a,b,c);s(a)&&(d=a.nodeValue);return d}var bp=document.implementation&&document.implementation.createDocument?Zo:$o;
function cp(a,b,c){return a.getAttributeNodeNS(b,c)}function dp(a,b,c){var d=null;a=a.attributes;for(var e,f,g=0,h=a.length;g<h;++g)if(e=a[g],e.namespaceURI==b&&(f=e.prefix?e.prefix+":"+c:c,f==e.nodeName)){d=e;break}return d}var ap=document.implementation&&document.implementation.createDocument?cp:dp;function ep(a,b,c,d){a.setAttributeNS(b,c,d)}function fp(a,b,c,d){null===b?a.setAttribute(c,d):(b=a.ownerDocument.createNode(2,c,b),b.nodeValue=d,a.setAttributeNode(b))}
var gp=document.implementation&&document.implementation.createDocument?ep:fp;function hp(a){return(new DOMParser).parseFromString(a,"application/xml")}function ip(a,b){return function(c,d){var e=a.call(b,c,d);s(e)&&Eb(d[d.length-1],e)}}function jp(a,b){return function(c,d){var e=a.call(b,c,d);s(e)&&d[d.length-1].push(e)}}function kp(a){return function(b,c){var d=a.call(void 0,b,c);s(d)&&(c[c.length-1]=d)}}
function lp(a){return function(b,c){var d=a.call(void 0,b,c);s(d)&&kc(c[c.length-1],s(void 0)?void 0:b.localName).push(d)}}function X(a,b){return function(c,d){var e=a.call(void 0,c,d);s(e)&&(d[d.length-1][s(b)?b:c.localName]=e)}}function Y(a){return function(b,c,d){a.call(void 0,b,c,d);d[d.length-1].node.appendChild(b)}}function mp(a){var b,c;return function(d,e,f){if(!s(b)){b={};var g={};g[d.localName]=a;b[d.namespaceURI]=g;c=np(d.localName)}op(b,c,e,f)}}
function np(a,b){return function(c,d,e){c=d[d.length-1].node;d=a;s(d)||(d=e);e=b;s(b)||(e=c.namespaceURI);return No(e,d)}}var pp=np();function qp(a,b){for(var c=b.length,d=Array(c),e=0;e<c;++e)d[e]=a[b[e]];return d}function rp(a,b,c){c=s(c)?c:{};var d,e;d=0;for(e=a.length;d<e;++d)c[a[d]]=b;return c}function sp(a,b,c,d){for(b=b.firstElementChild;null!==b;b=b.nextElementSibling){var e=a[b.namespaceURI];s(e)&&(e=e[b.localName],s(e)&&e.call(d,b,c))}}
function Z(a,b,c,d,e){d.push(a);sp(b,c,d,e);return d.pop()}function op(a,b,c,d,e,f){for(var g=(s(e)?e:c).length,h,m,n=0;n<g;++n)h=c[n],s(h)&&(m=b.call(f,h,d,s(e)?e[n]:void 0),s(m)&&a[m.namespaceURI][m.localName].call(f,m,h,d))}function tp(a,b,c,d,e,f){e.push(a);op(b,c,d,e,f,void 0);e.pop()};function up(){}v(up,Go);l=up.prototype;l.D=ca("xml");l.Ub=function(a){return Vo(a)?vp(this,a):Yo(a)?this.Pe(a):na(a)?(a=hp(a),vp(this,a)):null};function vp(a,b){var c=wp(a,b);return 0<c.length?c[0]:null}l.bb=function(a){return Vo(a)?wp(this,a):Yo(a)?this.Vb(a):na(a)?(a=hp(a),wp(this,a)):[]};function wp(a,b){var c=[],d;for(d=b.firstChild;null!==d;d=d.nextSibling)1==d.nodeType&&Eb(c,a.Vb(d));return c}l.Cd=function(a){return Vo(a)?this.e(a):Yo(a)?this.h(a):na(a)?(a=hp(a),this.e(a)):null};
l.Aa=function(a){return Vo(a)?this.sc(a):Yo(a)?this.tc(a):na(a)?(a=hp(a),this.sc(a)):null};l.Ld=function(a){return this.l(a)};l.ad=function(a){var b=No("http://www.topografix.com/GPX/1/1","gpx");tp({node:b},xp,yp,a,[]);return b};function zp(a){a=Oo(a);return Ap(a)}function Ap(a){if(a=/^\s*(true|1)|(false|0)\s*$/.exec(a))return s(a[1])||!1}function Bp(a){a=Oo(a);if(a=/^\s*(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(Z|(?:([+\-])(\d{2})(?::(\d{2}))?))\s*$/.exec(a)){var b=Date.UTC(parseInt(a[1],10),parseInt(a[2],10)-1,parseInt(a[3],10),parseInt(a[4],10),parseInt(a[5],10),parseInt(a[6],10))/1E3;if("Z"!=a[7]){var c="-"==a[8]?-1:1,b=b+60*c*parseInt(a[9],10);s(a[10])&&(b+=3600*c*parseInt(a[10],10))}return b}}
function Cp(a){a=Oo(a);return Dp(a)}function Dp(a){if(a=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(a))return parseFloat(a[1])}function Ep(a){a=Oo(a);return Fp(a)}function Fp(a){if(a=/^\s*(\d+)\s*$/.exec(a))return parseInt(a[1],10)}function Gp(a){a=Oo(a);return Ba(a)}function Hp(a,b){a.appendChild(Ko.createTextNode(b.toPrecision()))}function Ip(a,b){a.appendChild(Ko.createTextNode(b.toString()))}function Jp(a,b){a.appendChild(Ko.createTextNode(b))};function Kp(){}v(Kp,up);var Lp=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function Mp(a,b,c){a.push(parseFloat(b.getAttribute("lon")),parseFloat(b.getAttribute("lat")));"ele"in c?(a.push(w(c,"ele")),jc(c,"ele")):a.push(0);"time"in c?(a.push(w(c,"time")),jc(c,"time")):a.push(0);return a}function Np(a,b){var c=b[b.length-1],d=a.getAttribute("href");null!==d&&(c.link=d);sp(Op,a,b)}
function Pp(a,b){var c=Z({flatCoordinates:[]},Qp,a,b);if(s(c)){var d=w(c,"flatCoordinates");jc(c,"flatCoordinates");var e=new P(null);mm(e,"XYZM",d);d=new H(e);d.I(c);return d}}function Rp(a,b){var c=Z({flatCoordinates:[],ends:[]},Sp,a,b);if(s(c)){var d=w(c,"flatCoordinates");jc(c,"flatCoordinates");var e=w(c,"ends");jc(c,"ends");var f=new Q(null);nm(f,"XYZM",d,e);d=new H(f);d.I(c);return d}}
function Tp(a,b){var c=Z({},Up,a,b);if(s(c)){var d=Mp([],a,c),d=new ii(d,"XYZM"),d=new H(d);d.I(c);return d}}
var Vp={rte:Pp,trk:Rp,wpt:Tp},Wp=rp(Lp,{rte:jp(Pp),trk:jp(Rp),wpt:jp(Tp)},void 0),Op=rp(Lp,{text:X(Gp,"linkText"),type:X(Gp,"linkType")},void 0),Qp=rp(Lp,{name:X(Gp),cmt:X(Gp),desc:X(Gp),src:X(Gp),link:Np,number:X(Ep),type:X(Gp),rtept:function(a,b){var c=Z({},Xp,a,b);s(c)&&Mp(w(b[b.length-1],"flatCoordinates"),a,c)}},void 0),Xp=rp(Lp,{ele:X(Cp),time:X(Bp)},void 0),Sp=rp(Lp,{name:X(Gp),cmt:X(Gp),desc:X(Gp),src:X(Gp),link:Np,number:X(Ep),type:X(Gp),trkseg:function(a,b){var c=b[b.length-1];sp(Yp,a,b);
w(c,"ends").push(w(c,"flatCoordinates").length)}},void 0),Yp=rp(Lp,{trkpt:function(a,b){var c=Z({},Zp,a,b);s(c)&&Mp(w(b[b.length-1],"flatCoordinates"),a,c)}},void 0),Zp=rp(Lp,{ele:X(Cp),time:X(Bp)},void 0),Up=rp(Lp,{ele:X(Cp),time:X(Bp),magvar:X(Cp),geoidheight:X(Cp),name:X(Gp),cmt:X(Gp),desc:X(Gp),src:X(Gp),link:Np,sym:X(Gp),type:X(Gp),fix:X(Gp),sat:X(Ep),hdop:X(Cp),vdop:X(Cp),pdop:X(Cp),ageofdgpsdata:X(Cp),dgpsid:X(Ep)},void 0);
Kp.prototype.Pe=function(a){if(!(0<=vb(Lp,a.namespaceURI)))return null;var b=Vp[a.localName];if(!s(b))return null;a=b(a,[]);return s(a)?a:null};Kp.prototype.Vb=function(a){return 0<=vb(Lp,a.namespaceURI)?"gpx"==a.localName&&(a=Z([],Wp,a,[]),s(a))?a:[]:[]};Kp.prototype.sc=function(){return qh("EPSG:4326")};Kp.prototype.tc=function(){return qh("EPSG:4326")};function $p(a,b,c){a.setAttribute("href",b);b=w(c[c.length-1],"properties");tp({node:a},aq,pp,[w(b,"linkText"),w(b,"linkType")],c,bq)}
function cq(a,b,c){var d=c[c.length-1],e=d.node.namespaceURI,f=w(d,"properties");gp(a,null,"lat",b[1]);gp(a,null,"lon",b[0]);switch(w(d,"geometryLayout")){case "XYZM":0!==b[3]&&(f.time=b[3]);case "XYZ":0!==b[2]&&(f.ele=b[2]);break;case "XYM":0!==b[2]&&(f.time=b[2])}b=dq[e];d=qp(f,b);tp({node:a,properties:f},eq,pp,d,c,b)}
var bq=["text","type"],aq=rp(Lp,{text:Y(Jp),type:Y(Jp)}),fq=rp(Lp,"name cmt desc src link number type rtept".split(" ")),gq=rp(Lp,{name:Y(Jp),cmt:Y(Jp),desc:Y(Jp),src:Y(Jp),link:Y($p),number:Y(Ip),type:Y(Jp),rtept:mp(Y(cq))}),hq=rp(Lp,"name cmt desc src link number type trkseg".split(" ")),kq=rp(Lp,{name:Y(Jp),cmt:Y(Jp),desc:Y(Jp),src:Y(Jp),link:Y($p),number:Y(Ip),type:Y(Jp),trkseg:mp(Y(function(a,b,c){tp({node:a,geometryLayout:b.b,properties:{}},iq,jq,b.C(),c)}))}),jq=np("trkpt"),iq=rp(Lp,{trkpt:Y(cq)}),
dq=rp(Lp,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),eq=rp(Lp,{ele:Y(Hp),time:Y(function(a,b){var c=new Date(1E3*b),c=c.getUTCFullYear()+"-"+Ja(c.getUTCMonth()+1)+"-"+Ja(c.getUTCDate())+"T"+Ja(c.getUTCHours())+":"+Ja(c.getUTCMinutes())+":"+Ja(c.getUTCSeconds())+"Z";a.appendChild(Ko.createTextNode(c))}),magvar:Y(Hp),geoidheight:Y(Hp),name:Y(Jp),cmt:Y(Jp),desc:Y(Jp),src:Y(Jp),link:Y($p),sym:Y(Jp),type:Y(Jp),fix:Y(Jp),sat:Y(Ip),
hdop:Y(Hp),vdop:Y(Hp),pdop:Y(Hp),ageofdgpsdata:Y(Hp),dgpsid:Y(Ip)}),lq={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function yp(a,b){var c=a.M();if(s(c))return No(b[b.length-1].node.namespaceURI,lq[c.D()])}
var xp=rp(Lp,{rte:Y(function(a,b,c){var d=b.T();a={node:a,properties:d};b=b.M();s(b)&&(a.geometryLayout=b.b,b=b.C(),d.rtept=b);b=fq[c[c.length-1].node.namespaceURI];d=qp(d,b);tp(a,gq,pp,d,c,b)}),trk:Y(function(a,b,c){var d=b.T();a={node:a,properties:d};b=b.M();s(b)&&(b=b.Ic(),d.trkseg=b);b=hq[c[c.length-1].node.namespaceURI];d=qp(d,b);tp(a,kq,pp,d,c,b)}),wpt:Y(function(a,b,c){var d=c[c.length-1],e=b.T();d.properties=e;b=b.M();s(b)&&(d.geometryLayout=b.b,cq(a,b.C(),c))})});function mq(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.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("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};function nq(){}v(nq,Go);function oq(a){return ra(a)?a:na(a)?(a=Gd?JSON.parse(a):mq(a),s(a)?a:null):null}l=nq.prototype;l.D=ca("json");l.Ub=function(a){return pq(oq(a))};l.bb=function(a){return this.a(oq(a))};l.Cd=function(a){a=oq(a);return qq(a)};l.Aa=function(a){return this.b(oq(a))};l.Ld=function(a){return rq(a)};l.ad=function(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(rq(a[c]));return{type:"FeatureCollection",features:b}};function sq(a){a=s(a)?a:{};this.c=qh(a.defaultProjection?a.defaultProjection:"EPSG:4326")}v(sq,nq);function qq(a){return null===a?null:(0,tq[a.type])(a)}function uq(a){return(0,vq[a.D()])(a)}
var tq={Point:function(a){return new ii(a.coordinates)},LineString:function(a){return new P(a.coordinates)},Polygon:function(a){return new qi(a.coordinates)},MultiPoint:function(a){return new pm(a.coordinates)},MultiLineString:function(a){return new Q(a.coordinates)},MultiPolygon:function(a){return new S(a.coordinates)},GeometryCollection:function(a){a=xb(a.geometries,qq);return new fm(a)}},vq={Point:function(a){return{type:"Point",coordinates:a.C()}},LineString:function(a){return{type:"LineString",
coordinates:a.C()}},Polygon:function(a){return{type:"Polygon",coordinates:a.C()}},MultiPoint:function(a){return{type:"MultiPoint",coordinates:a.C()}},MultiLineString:function(a){return{type:"MultiLineString",coordinates:a.C()}},MultiPolygon:function(a){return{type:"MultiPolygon",coordinates:a.C()}},GeometryCollection:function(a){return{type:"GeometryCollection",geometries:xb(a.a,uq)}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};
function pq(a){var b=qq(a.geometry),b=new H(b);s(a.id)&&b.b(a.id);s(a.properties)&&b.I(a.properties);return b}sq.prototype.a=function(a){if("Feature"==a.type)return[pq(a)];if("FeatureCollection"==a.type){var b=[];a=a.features;var c,d;c=0;for(d=a.length;c<d;++c)b.push(pq(a[c]));return b}return[]};sq.prototype.Aa=function(a){a=a.crs;return null!=a?"name"==a.type?qh(a.properties.name):"EPSG"==a.type?qh("EPSG:"+a.properties.code):null:this.c};
function rq(a){var b={type:"Feature"},c=a.Z;null!=c&&(b.id=c);c=a.M();null!=c&&(c=uq(c),b.geometry=c);a=a.T();jc(a,"geometry");hc(a)||(b.properties=a);return b};function wq(a){a=xq(a);return xb(a,function(a){return a.b.substring(a.c,a.a)})}function yq(a,b,c,d){this.b=a;this.c=b;this.a=c;this.d=d}function xq(a){for(var b=RegExp("\r\n|\r|\n","g"),c=0,d,e=[];d=b.exec(a);)c=new yq(a,c,d.index,d.index+d[0].length),e.push(c),c=b.lastIndex;c<a.length&&(c=new yq(a,c,a.length,a.length),e.push(c));return e};function zq(){}v(zq,Go);l=zq.prototype;l.D=ca("text");l.Ub=function(a){return Aq(this,na(a)?a:"")};l.bb=function(a){a=Aq(this,na(a)?a:"");return null===a?[]:[a]};l.Cd=function(a){return this.c(na(a)?a:"")};l.Aa=function(){return qh("EPSG:4326")};l.Ld=function(a){return this.b(a)};l.ad=function(a){return this.d(a)};function Bq(a){a=s(a)?a:{};this.a=s(a.altitudeMode)?a.altitudeMode:"none"}v(Bq,zq);var Cq=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,Dq=/^H.([A-Z]{3}).*?:(.*)/,Eq=/^HFDTE(\d{2})(\d{2})(\d{2})/;
function Aq(a,b){var c=a.a,d=wq(b),e={},f=[],g=2E3,h=0,m=1,n,p;n=0;for(p=d.length;n<p;++n){var q=d[n],r;if("B"==q.charAt(0)){if(r=Cq.exec(q)){var q=parseInt(r[1],10),u=parseInt(r[2],10),x=parseInt(r[3],10),B=parseInt(r[4],10)+parseInt(r[5],10)/6E4;"S"==r[6]&&(B=-B);var y=parseInt(r[7],10)+parseInt(r[8],10)/6E4;"W"==r[9]&&(y=-y);f.push(y,B);"none"!=c&&f.push("gps"==c?parseInt(r[11],10):"barometric"==c?parseInt(r[12],10):0);f.push(Date.UTC(g,h,m,q,u,x)/1E3)}}else if("H"==q.charAt(0))if(r=Eq.exec(q))m=
parseInt(r[1],10),h=parseInt(r[2],10)-1,g=2E3+parseInt(r[3],10);else if(r=Dq.exec(q))e[r[1]]=Ba(r[2]),Eq.exec(q)}if(0===f.length)return null;d=new P(null);mm(d,"none"==c?"XYM":"XYZM",f);c=new H(d);c.I(e);return c};function Fq(a){function b(a){return ja(a)?a:na(a)?(!(a in d)&&"#"+a in d&&(a="#"+a),b(d[a])):c}a=s(a)?a:{};var c=s(a.defaultStyle)?a.defaultStyle:Gq,d={};this.a=d;this.c=function(){var a=this.get("Style");if(s(a))return a;a=this.get("styleUrl");return s(a)?b(a):c}}v(Fq,up);
var Hq=["http://www.google.com/kml/ext/2.2"],Iq=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],Jq=[255,255,255,1],Kq=new Mi({color:Jq}),Lq=[2,20],Mq=[32,32],Nq=new bl({anchor:Lq,anchorXUnits:"pixels",anchorYUnits:"pixels",crossOrigin:"anonymous",rotation:0,scale:1,size:Mq,src:"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),Oq=new Oi({color:Jq,width:1}),Gq=[new Qi({fill:Kq,image:Nq,text:null,
stroke:Oq,zIndex:0})],Pq={fraction:"fraction",pixels:"pixels"};function Qq(a){a=Oo(a);if(a=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(a))return a=a[1],[parseInt(a.substr(6,2),16),parseInt(a.substr(4,2),16),parseInt(a.substr(2,2),16),parseInt(a.substr(0,2),16)/255]}
function Rq(a){a=Oo(a);for(var b=[],c=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i,d;d=c.exec(a);)b.push(parseFloat(d[1]),parseFloat(d[2]),d[3]?parseFloat(d[3]):0),a=a.substr(d[0].length);return""!==a?void 0:b}function Sq(a){var b=Oo(a);return null!=a.baseURI?yj(a.baseURI,Ba(b)).toString():Ba(b)}function Tq(a,b){return Z(null,Uq,a,b)}
function Vq(a,b){var c=Z({j:[],bf:[]},Wq,a,b);if(s(c)){var d=c.j,c=c.bf,e,f;e=0;for(f=Math.min(d.length,c.length);e<f;++e)d[4*e+3]=c[e];c=new P(null);mm(c,"XYZM",d);return c}}function Xq(a,b){var c=Z(null,Yq,a,b);if(s(c)){var d=new P(null);mm(d,"XYZ",c);return d}}function Zq(a,b){var c=Z(null,Yq,a,b);if(s(c)){var d=new qi(null);ri(d,"XYZ",c,[c.length]);return d}}
function $q(a,b){var c=Z([],ar,a,b);if(!s(c))return null;if(0===c.length)return new fm(c);var d=!0,e=c[0].D(),f,g,h;g=1;for(h=c.length;g<h;++g)if(f=c[g],f.D()!=e){d=!1;break}if(d){if("Point"==e){f=c[0];d=f.b;e=f.j;g=1;for(h=c.length;g<h;++g)f=c[g],ig(e,f.j);c=new pm(null);Oh(c,d,e);c.k();return c}return"LineString"==e?(f=new Q(null),om(f,c),f):"Polygon"==e?(f=new S(null),rm(f,c),f):"GeometryCollection"==e?new fm(c):null}return new fm(c)}
function br(a,b){var c=Z(null,Yq,a,b);if(null!=c){var d=new ii(null);ji(d,"XYZ",c);return d}}function cr(a,b){var c=Z([null],dr,a,b);if(null!=c&&null!==c[0]){var d=new qi(null),e=c[0],f=[e.length],g,h;g=1;for(h=c.length;g<h;++g)ig(e,c[g]),f.push(e.length);ri(d,"XYZ",e,f);return d}}
function er(a,b){var c=Z({},fr,a,b);if(!s(c))return null;var d=w(c,"fillStyle",Kq),e=w(c,"fill");s(e)&&!e&&(d=null);var e=w(c,"imageStyle",Nq),f=w(c,"strokeStyle",Oq),c=w(c,"outline");s(c)&&!c&&(f=null);return[new Qi({fill:d,image:e,stroke:f,text:null,zIndex:void 0})]}
var gr=rp(Iq,{value:kp(Gp)},void 0),ir=rp(Iq,{Data:function(a,b){var c=a.getAttribute("name");if(null!==c){var d=Z(void 0,gr,a,b);s(d)&&(b[b.length-1][c]=d)}},SchemaData:function(a,b){sp(hr,a,b)}},void 0),Uq=rp(Iq,{coordinates:kp(Rq)},void 0),dr=rp(Iq,{innerBoundaryIs:function(a,b){var c=Z(void 0,jr,a,b);s(c)&&b[b.length-1].push(c)},outerBoundaryIs:function(a,b){var c=Z(void 0,kr,a,b);s(c)&&(b[b.length-1][0]=c)}},void 0),lr=rp(Hq,{coord:function(a,b){var c=b[b.length-1].j,d=Oo(a);(d=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(d))?
c.push(parseFloat(d[1]),parseFloat(d[2]),parseFloat(d[3]),0):c.push(0,0,0,0)}},void 0),Wq=rp(Iq,{when:function(a,b){var c=b[b.length-1].bf,d=Oo(a);if(d=/^\s*(\d{4})($|-(\d{2})($|-(\d{2})($|T(\d{2}):(\d{2}):(\d{2})(Z|(?:([+\-])(\d{2})(?::(\d{2}))?)))))\s*$/.exec(d)){var e=Date.UTC(parseInt(d[1],10),s(d[3])?parseInt(d[3],10)-1:0,s(d[5])?parseInt(d[5],10):1,s(d[7])?parseInt(d[7],10):0,s(d[8])?parseInt(d[8],10):0,s(d[9])?parseInt(d[9],10):0);if(s(d[10])&&"Z"!=d[10]){var f="-"==d[11]?-1:1,e=e+60*f*parseInt(d[12],
10);s(d[13])&&(e+=3600*f*parseInt(d[13],10))}c.push(e)}else c.push(0)}},lr),Yq=rp(Iq,{coordinates:kp(Rq)},void 0),mr=rp(Iq,{href:X(Sq)},void 0),nr=rp(Iq,{Icon:X(function(a,b){var c=Z({},mr,a,b);return s(c)?c:null}),heading:X(Cp),hotSpot:X(function(a){var b=a.getAttribute("xunits"),c=a.getAttribute("yunits");return{x:parseFloat(a.getAttribute("x")),qi:Pq[b],y:parseFloat(a.getAttribute("y")),ri:Pq[c]}}),scale:X(function(a){a=Cp(a);if(s(a))return Math.sqrt(a)})},void 0),jr=rp(Iq,{LinearRing:kp(Tq)},
void 0),or=rp(Iq,{color:X(Qq),width:X(Cp)},void 0),ar=rp(Iq,{LineString:jp(Xq),LinearRing:jp(Zq),MultiGeometry:jp($q),Point:jp(br),Polygon:jp(cr)},void 0),pr=rp(Hq,{Track:jp(Vq)},void 0),kr=rp(Iq,{LinearRing:kp(Tq)},void 0),qr=rp(Iq,{Style:X(er),key:X(Gp),styleUrl:X(function(a){var b=Ba(Oo(a));return null!=a.baseURI?yj(a.baseURI,b).toString():b})},void 0),sr={ExtendedData:function(a,b){sp(ir,a,b)},MultiGeometry:X($q,"geometry"),LineString:X(Xq,"geometry"),LinearRing:X(Zq,"geometry"),Point:X(br,"geometry"),
Polygon:X(cr,"geometry"),Style:X(er),StyleMap:function(a,b){var c=Z(void 0,rr,a,b);if(s(c)){var d=b[b.length-1];ja(c)?d.Style=c:na(c)&&(d.styleUrl=c)}},address:X(Gp),description:X(Gp),name:X(Gp),open:X(zp),phoneNumber:X(Gp),styleUrl:X(Sq),visibility:X(zp)},tr=rp(Hq,{MultiTrack:X(function(a,b){var c=Z([],pr,a,b);if(s(c)){var d=new Q(null);om(d,c);return d}},"geometry"),Track:X(Vq,"geometry")},void 0),ur=rp(Iq,sr,tr),vr=rp(Iq,{color:X(Qq),fill:X(zp),outline:X(zp)},void 0),hr=rp(Iq,{SimpleData:function(a,
b){var c=a.getAttribute("name");if(null!==c){var d=Gp(a);b[b.length-1][c]=d}}},void 0),fr=rp(Iq,{IconStyle:function(a,b){var c=Z({},nr,a,b);if(s(c)){var d=b[b.length-1],e;e=w(w(c,"Icon",{}),"href");e=s(e)?e:"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png";var f,g,h,m=w(c,"hotSpot");s(m)?(f=[m.x,m.y],g=m.qi,h=m.ri):"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"===e?(f=Lq,h=g="pixels"):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(e)&&(f=[0.5,0],h=g="fraction");var n,
m=w(c,"heading");s(m)&&(n=Zb(m));var c=w(c,"scale"),p;"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"==e&&(p=Mq);f=new bl({anchor:f,anchorOrigin:"bottom-left",anchorXUnits:g,anchorYUnits:h,crossOrigin:"anonymous",rotation:n,scale:c,size:p,src:e});d.imageStyle=f}},LineStyle:function(a,b){var c=Z({},or,a,b);s(c)&&(b[b.length-1].strokeStyle=new Oi({color:w(c,"color",Jq),width:w(c,"width",1)}))},PolyStyle:function(a,b){var c=Z({},vr,a,b);if(s(c)){var d=b[b.length-1];d.fillStyle=new Mi({color:w(c,
"color",Jq)});var e=w(c,"fill");s(e)&&(d.fill=e);c=w(c,"outline");s(c)&&(d.outline=c)}}},void 0),rr=rp(Iq,{Pair:function(a,b){var c=Z({},qr,a,b);if(s(c)){var d=w(c,"key");s(d)&&"normal"==d&&(d=w(c,"styleUrl"),s(d)&&(b[b.length-1]=d),c=w(c,"Style"),s(c)&&(b[b.length-1]=c))}}},void 0);l=Fq.prototype;l.Oe=function(a,b){So(a);var c;c={Folder:ip(this.Oe,this),Placemark:jp(this.Dd,this),Style:xa(this.Ph,this),StyleMap:xa(this.Oh,this)};c=rp(Iq,c,void 0);c=Z([],c,a,b,this);if(s(c))return c};
l.Dd=function(a,b){var c=Z({geometry:null},ur,a,b);if(s(c)){var d=new H,e=a.getAttribute("id");null===e||d.b(e);d.I(c);d.f(this.c);return d}};l.Ph=function(a,b){var c=a.getAttribute("id");if(null!==c){var d=er(a,b);s(d)&&(c=null!=a.baseURI?yj(a.baseURI,"#"+c).toString():"#"+c,this.a[c]=d)}};l.Oh=function(a,b){var c=a.getAttribute("id");if(null!==c){var d=Z(void 0,rr,a,b);s(d)&&(c=null!=a.baseURI?yj(a.baseURI,"#"+c).toString():"#"+c,this.a[c]=d)}};
l.Pe=function(a){if(!(0<=vb(Iq,a.namespaceURI)))return null;a=this.Dd(a,[]);return s(a)?a:null};l.Vb=function(a){if(!(0<=vb(Iq,a.namespaceURI)))return[];var b;b=So(a);if("Document"==b||"Folder"==b)return b=this.Oe(a,[]),s(b)?b:[];if("Placemark"==b)return b=this.Dd(a,[]),s(b)?[b]:[];if("kml"==b){b=[];for(a=a.firstElementChild;null!==a;a=a.nextElementSibling){var c=this.Vb(a);s(c)&&Eb(b,c)}return b}return[]};l.sc=function(){return qh("EPSG:4326")};l.tc=function(){return qh("EPSG:4326")};function wr(){}v(wr,up);function xr(a,b){var c=a.getAttribute("k"),d=a.getAttribute("v");b[b.length-1].vc[c]=d}
var yr=[null],zr=rp(yr,{nd:function(a,b){b[b.length-1].Ob.push(a.getAttribute("ref"))},tag:xr},void 0),Br=rp(yr,{node:function(a,b){var c=b[b.length-1],d=a.getAttribute("id"),e=[parseFloat(a.getAttribute("lon")),parseFloat(a.getAttribute("lat"))];c.qe[d]=e;var f=Z({vc:{}},Ar,a,b);hc(f.vc)||(e=new ii(e),e=new H(e),e.b(d),e.I(f.vc),c.features.push(e))},way:function(a,b){for(var c=a.getAttribute("id"),d=Z({Ob:[],vc:{}},zr,a,b),e=b[b.length-1],f=[],g=0,h=d.Ob.length;g<h;g++)Eb(f,w(e.qe,d.Ob[g]));d.Ob[0]==
d.Ob[d.Ob.length-1]?(g=new qi(null),ri(g,"XY",f,[f.length])):(g=new P(null),mm(g,"XY",f));f=new H(g);f.b(c);f.I(d.vc);e.features.push(f)}},void 0),Ar=rp(yr,{tag:xr},void 0);wr.prototype.Vb=function(a){return"osm"==a.localName&&(a=Z({qe:{},features:[]},Br,a,[]),s(a.features))?a.features:[]};wr.prototype.sc=function(){return qh("EPSG:4326")};wr.prototype.tc=function(){return qh("EPSG:4326")};function Cr(a){this.c=qh((s(a)?a:{}).defaultProjection||"EPSG:4326")}v(Cr,nq);function Dr(a,b){var c=[],d,e,f;e=0;for(f=a.length;e<f;++e)d=a[e],0<e&&c.pop(),d=0<=d?b[d]:b[~d].slice().reverse(),c.push.apply(c,d);e=0;for(f=c.length;e<f;++e)c[e]=c[e].slice();return c}function Er(a,b,c,d){a=a.geometries;var e=[],f,g;f=0;for(g=a.length;f<g;++f)e[f]=Fr(a[f],b,c,d);return e}
function Fr(a,b,c,d){var e=a.type,f=Gr[e];b="Point"===e||"MultiPoint"===e?f(a,c,d):f(a,b);c=new H;c.fb(b);s(a.id)&&c.b(a.id);s(a.properties)&&c.I(a.properties);return c}
Cr.prototype.a=function(a){if("Topology"==a.type){var b,c=null,d=null;s(a.transform)&&(b=a.transform,c=b.scale,d=b.translate);var e=a.arcs;if(s(b)){b=c;var f=d,g,h;g=0;for(h=e.length;g<h;++g)for(var m=e[g],n=b,p=f,q=0,r=0,u=void 0,x=void 0,B=void 0,x=0,B=m.length;x<B;++x)u=m[x],q+=u[0],r+=u[1],u[0]=q,u[1]=r,Hr(u,n,p)}b=[];a=fc(a.objects);f=0;for(g=a.length;f<g;++f)"GeometryCollection"===a[f].type?(h=a[f],b.push.apply(b,Er(h,e,c,d))):(h=a[f],b.push(Fr(h,e,c,d)));return b}return[]};
function Hr(a,b,c){a[0]=a[0]*b[0]+c[0];a[1]=a[1]*b[1]+c[1]}Cr.prototype.Aa=k("c");
var Gr={Point:function(a,b,c){a=a.coordinates;null===b||null===c||Hr(a,b,c);return new ii(a)},LineString:function(a,b){var c=Dr(a.arcs,b);return new P(c)},Polygon:function(a,b){var c=[],d,e;d=0;for(e=a.arcs.length;d<e;++d)c[d]=Dr(a.arcs[d],b);return new qi(c)},MultiPoint:function(a,b,c){a=a.coordinates;var d,e;if(null!==b&&null!==c)for(d=0,e=a.length;d<e;++d)Hr(a[d],b,c);return new pm(a)},MultiLineString:function(a,b){var c=[],d,e;d=0;for(e=a.arcs.length;d<e;++d)c[d]=Dr(a.arcs[d],b);return new Q(c)},
MultiPolygon:function(a,b){var c=[],d,e,f,g,h,m;h=0;for(m=a.arcs.length;h<m;++h){d=a.arcs[h];e=[];f=0;for(g=d.length;f<g;++f)e[f]=Dr(d[f],b);c[h]=e}return new S(c)}};function Ir(a,b){var c=So(a),d=b[0],e=w(d,"featureType"),f;if("FeatureCollection"==c)f=Z(null,Jr,a,b);else if("featureMembers"==c||"featureMember"==c){f={};var g={};f[e]="featureMembers"==c?jp(Kr):kp(Kr);g[w(d,"featureNS")]=f;f=Z([],g,a,b)}s(f)||(f=[]);return f}var Jr={"http://www.opengis.net/gml":{featureMember:jp(Ir),featureMembers:kp(Ir)}};function Lr(a,b){var c=a.firstElementChild.getAttribute("srsName");b[0].srsName=c;c=Z(null,Mr,a,b);if(null!=c)return c}
function Kr(a,b){var c,d=a.getAttribute("fid")||bp(a,"http://www.opengis.net/gml","id"),e={},f;for(c=a.firstElementChild;null!==c;c=c.nextElementSibling)if(0===c.childNodes.length||1===c.childNodes.length&&3===c.firstChild.nodeType){var g=Oo(c);/^[\s\xa0]*$/.test(g)&&(g=void 0);e[So(c)]=g}else f=So(c),e[f]=Lr(c,b);c=new H(e);s(f)&&c.g(f);d&&c.b(d);return c}function Nr(a,b){sp(Or,a,b)}function Pr(a,b){sp(Qr,a,b)}function Rr(a,b){sp(Sr,a,b)}function Tr(a,b){sp(Ur,a,b)}function Vr(a,b){sp(Wr,a,b)}
function Xr(a,b){var c=Yr(a,b);if(null!=c){var d=new P(null);mm(d,"XYZ",c);return d}}function Zr(a,b){var c=Z([null],$r,a,b);if(s(c)&&null!==c[0]){var d=new qi(null),e=c[0],f=[e.length],g,h;g=1;for(h=c.length;g<h;++g)ig(e,c[g]),f.push(e.length);ri(d,"XYZ",e,f);return d}}function as(a,b){var c=Z([null],bs,a,b);if(s(c)&&null!==c[0]){var d=new qi(null),e=c[0],f=[e.length],g,h;g=1;for(h=c.length;g<h;++g)ig(e,c[g]),f.push(e.length);ri(d,"XYZ",e,f);return d}}
function cs(a,b){var c=Z([null],ds,a,b);if(s(c)){var d=new P(null);mm(d,"XYZ",c);return d}}function Yr(a,b){return Z(null,es,a,b)}
function fs(a,b){var c=Oo(a).replace(/^\s*|\s*$/g,""),d=w(b[0],"srsName"),e=a.parentNode.getAttribute("srsDimension"),f="enu";null===d||(f=Yg(qh(d)));c=c.split(/\s+/);d=2;ia(a.getAttribute("srsDimension"))?ia(a.getAttribute("dimension"))?null===e||(d=Fp(e)):d=Fp(a.getAttribute("dimension")):d=Fp(a.getAttribute("srsDimension"));for(var g,h,m=[],n=0,p=c.length;n<p;n+=d)e=parseFloat(c[n]),g=parseFloat(c[n+1]),h=3===d?parseFloat(c[n+2]):0,"en"===f.substr(0,2)?m.push(e,g,h):m.push(g,e,h);return m}
var Mr={"http://www.opengis.net/gml":{Point:kp(function(a,b){var c=Yr(a,b);if(null!=c){var d=new ii(null);ji(d,"XYZ",c);return d}}),MultiPoint:kp(function(a,b){var c=Z([],gs,a,b);if(s(c))return new pm(c)}),LineString:kp(Xr),MultiLineString:kp(function(a,b){var c=Z([],hs,a,b);if(s(c)){var d=new Q(null);om(d,c);return d}}),LinearRing:kp(function(a,b){var c=Yr(a,b);if(s(c)){var d=new gi(null);hi(d,"XYZ",c);return d}}),Polygon:kp(Zr),MultiPolygon:kp(function(a,b){var c=Z([],is,a,b);if(s(c)){var d=new S(null);
rm(d,c);return d}}),Surface:kp(as),MultiSurface:kp(function(a,b){var c=Z([],js,a,b);if(s(c)){var d=new S(null);rm(d,c);return d}}),Curve:kp(cs),MultiCurve:kp(function(a,b){var c=Z([],ks,a,b);if(s(c)){var d=new Q(null);om(d,c);return d}}),Envelope:kp(function(a,b){var c=Z([null],ls,a,b);return wg(c[1][0],c[1][1],c[2][0],c[2][1])})}},es={"http://www.opengis.net/gml":{pos:kp(function(a,b){for(var c=Oo(a),d=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*/,e=[],f;f=d.exec(c);)e.push(parseFloat(f[1])),c=c.substr(f[0].length);
if(""===c){c=w(b[0],"srsName");d="enu";null===c||(d=Yg(qh(c)));if("neu"===d)for(c=0,d=e.length;c<d;c+=3)f=e[c],e[c]=e[c+1],e[c+1]=f;c=e.length;2==c&&e.push(0);return 0===c?void 0:e}}),posList:kp(fs)}},$r={"http://www.opengis.net/gml":{interior:function(a,b){var c=Z(void 0,ms,a,b);s(c)&&b[b.length-1].push(c)},exterior:function(a,b){var c=Z(void 0,ms,a,b);s(c)&&(b[b.length-1][0]=c)}}},gs={"http://www.opengis.net/gml":{pointMember:jp(Nr),pointMembers:jp(Nr)}},hs={"http://www.opengis.net/gml":{lineStringMember:jp(Pr),
lineStringMembers:jp(Pr)}},ks={"http://www.opengis.net/gml":{curveMember:jp(Rr),curveMembers:jp(Rr)}},js={"http://www.opengis.net/gml":{surfaceMember:jp(Tr),surfaceMembers:jp(Tr)}},is={"http://www.opengis.net/gml":{polygonMember:jp(Vr),polygonMembers:jp(Vr)}},Or={"http://www.opengis.net/gml":{Point:jp(Yr)}},Qr={"http://www.opengis.net/gml":{LineString:jp(Xr)}},Sr={"http://www.opengis.net/gml":{LineString:jp(Xr),Curve:jp(cs)}},Ur={"http://www.opengis.net/gml":{Polygon:jp(Zr),Surface:jp(as)}},Wr={"http://www.opengis.net/gml":{Polygon:jp(Zr)}},
bs={"http://www.opengis.net/gml":{patches:kp(function(a,b){return Z([null],ns,a,b)})}},ds={"http://www.opengis.net/gml":{segments:kp(function(a,b){return Z([null],os,a,b)})}},ls={"http://www.opengis.net/gml":{lowerCorner:jp(fs),upperCorner:jp(fs)}},ns={"http://www.opengis.net/gml":{PolygonPatch:kp(function(a,b){return Z([null],$r,a,b)})}},os={"http://www.opengis.net/gml":{LineStringSegment:kp(function(a,b){return Z([null],es,a,b)})}},ms={"http://www.opengis.net/gml":{LinearRing:kp(function(a,b){var c=
Z(null,es,a,b);if(null!=c)return c})}};function ps(a,b,c){c=w(c[c.length-1],"srsName");b=b.C();for(var d=b.length,e=Array(d),f,g=0;g<d;++g){f=b[g];var h=e,m=g,n="enu";null!=c&&(n=Yg(qh(c)));h[m]="en"===n.substr(0,2)?f[0]+" "+f[1]:f[1]+" "+f[0]}Jp(a,e.join(" "))}
function qs(a,b,c){var d=w(c[c.length-1],"srsName");null!=d&&a.setAttribute("srsName",d);d=No(a.namespaceURI,"pos");a.appendChild(d);c=w(c[c.length-1],"srsName");a="enu";null!=c&&(a=Yg(qh(c)));b=b.C();Jp(d,"en"===a.substr(0,2)?b[0]+" "+b[1]:b[1]+" "+b[0])}var rs={"http://www.opengis.net/gml":{lowerCorner:Y(Jp),upperCorner:Y(Jp)}};function ss(a,b,c){var d=w(c[c.length-1],"srsName");null!=d&&a.setAttribute("srsName",d);d=No(a.namespaceURI,"posList");a.appendChild(d);ps(d,b,c)}
function ts(a,b){var c=b[b.length-1],d=c.node,e=w(c,"exteriorWritten");s(e)||(c.exteriorWritten=!0);return No(d.namespaceURI,s(e)?"interior":"exterior")}
function us(a,b,c){var d=w(c[c.length-1],"srsName");"PolygonPatch"!==a.nodeName&&null!=d&&a.setAttribute("srsName",d);"Polygon"===a.nodeName||"PolygonPatch"===a.nodeName?(b=b.ee(),tp({node:a,srsName:d},vs,ts,b,c)):"Surface"===a.nodeName&&(d=No(a.namespaceURI,"patches"),a.appendChild(d),a=No(d.namespaceURI,"PolygonPatch"),d.appendChild(a),us(a,b,c))}
function ws(a,b,c){var d=w(c[c.length-1],"srsName");"LineStringSegment"!==a.nodeName&&null!=d&&a.setAttribute("srsName",d);"LineString"===a.nodeName||"LineStringSegment"===a.nodeName?(d=No(a.namespaceURI,"posList"),a.appendChild(d),ps(d,b,c)):"Curve"===a.nodeName&&(d=No(a.namespaceURI,"segments"),a.appendChild(d),a=No(d.namespaceURI,"LineStringSegment"),d.appendChild(a),ws(a,b,c))}
function xs(a,b,c){var d=c[c.length-1],e=w(d,"srsName"),d=w(d,"surface");null!=e&&a.setAttribute("srsName",e);b=b.pd();tp({node:a,srsName:e,surface:d},ys,zs,b,c)}function As(a,b,c){var d=c[c.length-1],e=w(d,"srsName"),d=w(d,"curve");null!=e&&a.setAttribute("srsName",e);b=b.Ic();tp({node:a,srsName:e,curve:d},Bs,zs,b,c)}function Cs(a,b,c){var d=No(a.namespaceURI,"LinearRing");a.appendChild(d);ss(d,b,c)}function Ds(a,b,c){var d=Es(b,c);s(d)&&(a.appendChild(d),us(d,b,c))}
function Fs(a,b,c){var d=Es(b,c);s(d)&&(a.appendChild(d),ws(d,b,c))}function Gs(a,b,c){var d=lc(c[c.length-1]);d.node=a;tp(d,Hs,Es,[b],c)}
var ys={"http://www.opengis.net/gml":{surfaceMember:Y(Ds),polygonMember:Y(Ds)}},Is={"http://www.opengis.net/gml":{pointMember:Y(function(a,b,c){var d=No(a.namespaceURI,"Point");a.appendChild(d);qs(d,b,c)})}},Bs={"http://www.opengis.net/gml":{lineStringMember:Y(Fs),curveMember:Y(Fs)}},vs={"http://www.opengis.net/gml":{exterior:Y(Cs),interior:Y(Cs)}},Hs={"http://www.opengis.net/gml":{Curve:Y(ws),MultiCurve:Y(As),Point:Y(qs),MultiPoint:Y(function(a,b,c){var d=w(c[c.length-1],"srsName");null!=d&&a.setAttribute("srsName",
d);b=b.od();tp({node:a,srsName:d},Is,np("pointMember"),b,c)}),LineString:Y(ws),MultiLineString:Y(As),LinearRing:Y(ss),Polygon:Y(us),MultiPolygon:Y(xs),Surface:Y(us),MultiSurface:Y(xs),Envelope:Y(function(a,b,c){var d=w(c[c.length-1],"srsName");s(d)&&a.setAttribute("srsName",d);tp({node:a},rs,pp,[b[0]+" "+b[1],b[2]+" "+b[3]],c,["lowerCorner","upperCorner"])})}},Js={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};
function zs(a,b){return No("http://www.opengis.net/gml",Js[b[b.length-1].node.nodeName])}function Es(a,b){var c=b[b.length-1],d=w(c,"multiSurface"),e=w(c,"surface"),f=w(c,"curve"),c=w(c,"multiCurve"),g;ja(a)?g="Envelope":(g=a.D(),"MultiPolygon"===g&&!0===d?g="MultiSurface":"Polygon"===g&&!0===e?g="Surface":"LineString"===g&&!0===f?g="Curve":"MultiLineString"===g&&!0===c&&(g="MultiCurve"));return No("http://www.opengis.net/gml",g)};function Ks(a){a=s(a)?a:{};this.b=a.featureType;this.a=a.featureNS;this.c=s(a.schemaLocation)?a.schemaLocation:"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"}v(Ks,up);Ks.prototype.Vb=function(a){a=Z([],Jr,a,[{featureType:this.b,featureNS:this.a}]);s(a)||(a=[]);return a};Ks.prototype.f=function(a){if(Vo(a))return Ls(a);if(Yo(a))return Z({},Ms,a,[]);if(na(a))return a=hp(a),Ls(a)};
Ks.prototype.d=function(a){if(Vo(a))return Ns(a);if(Yo(a))return Os(a);if(na(a))return a=hp(a),Ns(a)};function Ns(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return Os(a)}var Ps={"http://www.opengis.net/gml":{boundedBy:X(Lr,"bounds")}};function Os(a){var b={},c=Fp(a.getAttribute("numberOfFeatures"));b.numberOfFeatures=c;return Z(b,Ps,a,[])}
var Qs={"http://www.opengis.net/wfs":{totalInserted:X(Ep),totalUpdated:X(Ep),totalDeleted:X(Ep)}},Rs={"http://www.opengis.net/ogc":{FeatureId:jp(function(a){return a.getAttribute("fid")})}},Ss={"http://www.opengis.net/wfs":{Feature:function(a,b){sp(Rs,a,b)}}},Ms={"http://www.opengis.net/wfs":{TransactionSummary:X(function(a,b){return Z({},Qs,a,b)},"transactionSummary"),InsertResults:X(function(a,b){return Z([],Ss,a,b)},"insertIds")}};
function Ls(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return Z({},Ms,a,[])}var Ts={"http://www.opengis.net/wfs":{PropertyName:Y(Jp)}};function Us(a,b){var c=No("http://www.opengis.net/ogc","Filter"),d=No("http://www.opengis.net/ogc","FeatureId");c.appendChild(d);d.setAttribute("fid",b);a.appendChild(c)}
var Vs={"http://www.opengis.net/wfs":{Insert:Y(function(a,b,c){var d=c[c.length-1],d=No(w(d,"featureNS"),w(d,"featureType"));a.appendChild(d);a=b.Z;s(a)&&d.setAttribute("fid",a);a=c[c.length-1];var e=w(a,"featureNS"),f=b.a;s(a.Cb)||(a.Cb={},a.Cb[e]={});var g=b.T();b=[];var h=[],m;for(m in g){var n=g[m];null!==n&&(b.push(m),h.push(n),m==f?m in a.Cb[e]||(a.Cb[e][m]=Y(Gs)):m in a.Cb[e]||(a.Cb[e][m]=Y(Jp)))}m=lc(a);m.node=d;tp(m,a.Cb,np(void 0,e),h,c,b)}),Update:Y(function(a,b,c){var d=c[c.length-1];
a.setAttribute("typeName",w(d,"featurePrefix")+":"+w(d,"featureType"));d=b.Z;if(s(d)){for(var e=b.O(),f=[],g=0,h=e.length;g<h;g++){var m=b.get(e[g]);s(m)&&f.push({name:e[g],value:m})}tp({node:a},Vs,np("Property"),f,c);Us(a,d)}}),Delete:Y(function(a,b,c){c=c[c.length-1];a.setAttribute("typeName",w(c,"featurePrefix")+":"+w(c,"featureType"));b=b.Z;s(b)&&Us(a,b)}),Property:Y(function(a,b,c){var d=No("http://www.opengis.net/wfs","Name");a.appendChild(d);Jp(d,b.name);null!=b.value&&(d=No("http://www.opengis.net/wfs",
"Value"),a.appendChild(d),b.value instanceof Kh?Gs(d,b.value,c):Jp(d,b.value))}),Native:Y(function(a,b){s(b.ji)&&a.setAttribute("vendorId",b.ji);s(b.Zh)&&a.setAttribute("safeToIgnore",b.Zh);s(b.value)&&Jp(a,b.value)})}},Ws={"http://www.opengis.net/wfs":{Query:Y(function(a,b,c){var d=c[c.length-1],e=w(d,"featurePrefix"),f=w(d,"featureNS"),g=w(d,"propertyNames"),h=w(d,"srsName");a.setAttribute("typeName",(s(e)?e+":":"")+b);s(h)&&a.setAttribute("srsName",h);s(f)&&a.setAttribute("xmlns:"+e,f);b=lc(d);
b.node=a;tp(b,Ts,np("PropertyName"),g,c);d=w(d,"bbox");s(d)&&(g=No("http://www.opengis.net/ogc","Filter"),b=w(c[c.length-1],"geometryName"),e=No("http://www.opengis.net/ogc","BBOX"),g.appendChild(e),f=No("http://www.opengis.net/ogc","PropertyName"),Jp(f,b),e.appendChild(f),Gs(e,d,c),a.appendChild(g))})}};
Ks.prototype.g=function(a){var b=No("http://www.opengis.net/wfs","GetFeature");b.setAttribute("service","WFS");b.setAttribute("version","1.1.0");s(a)&&(s(a.handle)&&b.setAttribute("handle",a.handle),s(a.outputFormat)&&b.setAttribute("outputFormat",a.outputFormat),s(a.maxFeatures)&&b.setAttribute("maxFeatures",a.maxFeatures),s(a.resultType)&&b.setAttribute("resultType",a.resultType),s(a.bi)&&b.setAttribute("startIndex",a.bi),s(a.count)&&b.setAttribute("count",a.count));gp(b,"http://www.w3.org/2001/XMLSchema-instance",
"xsi:schemaLocation",this.c);var c=a.featureTypes;a=[{node:b,srsName:a.srsName,featureNS:s(a.featureNS)?a.featureNS:this.a,featurePrefix:a.featurePrefix,geometryName:a.geometryName,bbox:a.bbox,Ne:s(a.Ne)?a.Ne:[]}];var d=lc(a[a.length-1]);d.node=b;tp(d,Ws,np("Query"),c,a);return b};
Ks.prototype.i=function(a,b,c,d){var e=[],f=No("http://www.opengis.net/wfs","Transaction");f.setAttribute("service","WFS");f.setAttribute("version","1.1.0");s(d)&&s(d.handle)&&f.setAttribute("handle",d.handle);gp(f,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.c);null!=a&&tp({node:f,featureNS:d.featureNS,featureType:d.featureType},Vs,np("Insert"),a,e);null!=b&&tp({node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix},Vs,np("Update"),b,e);null!=
c&&tp({node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix},Vs,np("Delete"),c,e);s(d.nativeElements)&&tp({node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix},Vs,np("Native"),d.nativeElements,e);return f};Ks.prototype.sc=function(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return this.tc(a);return null};
Ks.prototype.tc=function(a){a=a.firstElementChild.firstElementChild;if(null!=a)for(a=a.firstElementChild;null!==a;a=a.nextElementSibling)if(0!==a.childNodes.length&&(1!==a.childNodes.length||3!==a.firstChild.nodeType)){var b=[{}];Lr(a,b);return qh(b.pop().srsName)}return null};function Xs(a){return a.getAttributeNS("http://www.w3.org/1999/xlink","href")};function Ys(){}Ys.prototype.a=function(a){return Vo(a)?Zs(this,a):Yo(a)?$s(this,a):na(a)?(a=hp(a),Zs(this,a)):null};function at(){this.version=void 0}v(at,Ys);function Zs(a,b){for(var c=b.firstChild;null!==c;c=c.nextSibling)if(1==c.nodeType)return $s(a,c);return null}function $s(a,b){a.version=Ba(b.getAttribute("version"));var c=Z({version:a.version},bt,b,[]);return s(c)?c:null}function ct(a,b){return Z({},dt,a,b)}function et(a,b){return Z({},ft,a,b)}function gt(a,b){var c=ct(a,b);if(s(c)){var d=[Fp(a.getAttribute("width")),Fp(a.getAttribute("height"))];c.size=d;return c}}function ht(a,b){return Z([],it,a,b)}
var jt=[null,"http://www.opengis.net/wms"],bt=rp(jt,{Service:X(function(a,b){return Z({},kt,a,b)}),Capability:X(function(a,b){return Z({},lt,a,b)})},void 0),lt=rp(jt,{Request:X(function(a,b){return Z({},mt,a,b)}),Exception:X(function(a,b){return Z([],nt,a,b)}),Layer:X(function(a,b){return Z({},ot,a,b)})},void 0),kt=rp(jt,{Name:X(Gp),Title:X(Gp),Abstract:X(Gp),KeywordList:X(ht),OnlineResource:X(Xs),ContactInformation:X(function(a,b){return Z({},pt,a,b)}),Fees:X(Gp),AccessConstraints:X(Gp),LayerLimit:X(Ep),
MaxWidth:X(Ep),MaxHeight:X(Ep)},void 0),pt=rp(jt,{ContactPersonPrimary:X(function(a,b){return Z({},qt,a,b)}),ContactPosition:X(Gp),ContactAddress:X(function(a,b){return Z({},rt,a,b)}),ContactVoiceTelephone:X(Gp),ContactFacsimileTelephone:X(Gp),ContactElectronicMailAddress:X(Gp)},void 0),qt=rp(jt,{ContactPerson:X(Gp),ContactOrganization:X(Gp)},void 0),rt=rp(jt,{AddressType:X(Gp),Address:X(Gp),City:X(Gp),StateOrProvince:X(Gp),PostCode:X(Gp),Country:X(Gp)},void 0),nt=rp(jt,{Format:jp(Gp)},void 0),ot=
rp(jt,{Name:X(Gp),Title:X(Gp),Abstract:X(Gp),KeywordList:X(ht),CRS:lp(Gp),EX_GeographicBoundingBox:X(function(a,b){var c=Z({},st,a,b);if(s(c)){var d=w(c,"westBoundLongitude"),e=w(c,"southBoundLatitude"),f=w(c,"eastBoundLongitude"),c=w(c,"northBoundLatitude");return s(d)&&s(e)&&s(f)&&s(c)?[d,e,f,c]:void 0}}),BoundingBox:lp(function(a){var b=[Dp(a.getAttribute("minx")),Dp(a.getAttribute("miny")),Dp(a.getAttribute("maxx")),Dp(a.getAttribute("maxy"))],c=[Dp(a.getAttribute("resx")),Dp(a.getAttribute("resy"))];
return{crs:a.getAttribute("CRS"),extent:b,res:c}}),Dimension:lp(function(a){return{name:a.getAttribute("name"),units:a.getAttribute("units"),unitSymbol:a.getAttribute("unitSymbol"),"default":a.getAttribute("default"),multipleValues:Ap(a.getAttribute("multipleValues")),nearestValue:Ap(a.getAttribute("nearestValue")),current:Ap(a.getAttribute("current")),values:Gp(a)}}),Attribution:X(function(a,b){return Z({},tt,a,b)}),AuthorityURL:lp(function(a,b){var c=ct(a,b);if(s(c)){var d=a.getAttribute("name");
c.name=d;return c}}),Identifier:lp(Gp),MetadataURL:lp(function(a,b){var c=ct(a,b);if(s(c)){var d=a.getAttribute("type");c.type=d;return c}}),DataURL:lp(ct),FeatureListURL:lp(ct),Style:lp(function(a,b){return Z({},ut,a,b)}),MinScaleDenominator:X(Cp),MaxScaleDenominator:X(Cp),Layer:lp(function(a,b){var c=b[b.length-1],d=Z({},ot,a,b);if(s(d)){var e=Ap(a.getAttribute("queryable"));s(e)||(e=w(c,"queryable"));d.queryable=s(e)?e:!1;e=Fp(a.getAttribute("cascaded"));s(e)||(e=w(c,"cascaded"));d.cascaded=e;
e=Ap(a.getAttribute("opaque"));s(e)||(e=w(c,"opaque"));d.opaque=s(e)?e:!1;e=Ap(a.getAttribute("noSubsets"));s(e)||(e=w(c,"noSubsets"));d.noSubsets=s(e)?e:!1;e=Dp(a.getAttribute("fixedWidth"));s(e)||(e=w(c,"fixedWidth"));d.fixedWidth=e;e=Dp(a.getAttribute("fixedHeight"));s(e)||(e=w(c,"fixedHeight"));d.fixedHeight=e;wb(["Style","CRS","AuthorityURL"],function(a){s(w(c,a))&&kc(d,a)});wb("EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" "),function(a){s(w(d,
a))||(d[a]=w(c,a))});return d}})},void 0),tt=rp(jt,{Title:X(Gp),OnlineResource:X(Xs),LogoURL:X(gt)},void 0),st=rp(jt,{westBoundLongitude:X(Cp),eastBoundLongitude:X(Cp),southBoundLatitude:X(Cp),northBoundLatitude:X(Cp)},void 0),mt=rp(jt,{GetCapabilities:X(et),GetMap:X(et),GetFeatureInfo:X(et)},void 0),ft=rp(jt,{Format:lp(Gp),DCPType:lp(function(a,b){return Z({},vt,a,b)})},void 0),vt=rp(jt,{HTTP:X(function(a,b){return Z({},wt,a,b)})},void 0),wt=rp(jt,{Get:X(ct),Post:X(ct)},void 0),ut=rp(jt,{Name:X(Gp),
Title:X(Gp),Abstract:X(Gp),LegendURL:lp(gt),StyleSheetURL:X(ct),StyleURL:X(ct)},void 0),dt=rp(jt,{Format:X(Gp),OnlineResource:X(Xs)},void 0),it=rp(jt,{Keyword:jp(Gp)},void 0);function xt(a,b){He.call(this);this.a=new oo(this);var c=a;b&&(c=qc(a));this.a.na(c,"dragenter",this.Ah);c!=a&&this.a.na(c,"dragover",this.Bh);this.a.na(a,"dragover",this.Ch);this.a.na(a,"drop",this.Dh)}v(xt,He);l=xt.prototype;l.dc=!1;l.F=function(){xt.H.F.call(this);this.a.cc()};l.Ah=function(a){var b=a.P.dataTransfer;(this.dc=!(!b||!(b.types&&(0<=vb(b.types,"Files")||0<=vb(b.types,"public.file-url"))||b.files&&0<b.files.length)))&&a.preventDefault()};
l.Bh=function(a){this.dc&&(a.preventDefault(),a.P.dataTransfer.dropEffect="none")};l.Ch=function(a){this.dc&&(a.preventDefault(),a.Ia(),a=a.P.dataTransfer,a.effectAllowed="all",a.dropEffect="copy")};l.Dh=function(a){this.dc&&(a.preventDefault(),a.Ia(),a=new Yd(a.P),a.type="drop",A(this,a))};/*
Portions of this code are from MochiKit, received by
The Closure Authors under the MIT license. All other code is Copyright
2005-2009 The Closure Authors. All Rights Reserved.
*/
function yt(a,b){this.a=[];this.f=a;this.e=b||null}l=yt.prototype;l.ib=!1;l.oc=!1;l.fd=!1;l.nf=!1;l.Gd=!1;l.gd=0;l.cancel=function(a){if(this.ib)this.b instanceof yt&&this.b.cancel();else{if(this.c){var b=this.c;delete this.c;a?b.cancel(a):(b.gd--,0>=b.gd&&b.cancel())}this.f?this.f.call(this.e,this):this.Gd=!0;this.ib||(a=new zt(this),At(this),Bt(this,!1,a))}};l.Sd=function(a,b){this.fd=!1;Bt(this,a,b)};function Bt(a,b,c){a.ib=!0;a.b=c;a.oc=!b;Ct(a)}
function At(a){if(a.ib){if(!a.Gd)throw new Dt(a);a.Gd=!1}}function Et(a){return yb(a.a,function(a){return pa(a[1])})}
function Ct(a){a.d&&(a.ib&&Et(a))&&(ea.clearTimeout(a.d),delete a.d);a.c&&(a.c.gd--,delete a.c);for(var b=a.b,c=!1,d=!1;a.a.length&&!a.fd;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.oc?g:f)try{var h=f.call(e||a.e,b);s(h)&&(a.oc=a.oc&&(h==b||h instanceof Error),a.b=b=h);b instanceof yt&&(d=!0,a.fd=!0)}catch(m){b=m,a.oc=!0,Et(a)||(c=!0)}}a.b=b;d&&(d=b,h=xa(a.Sd,a,!0),f=xa(a.Sd,a,!1),d.a.push([h,f,void 0]),d.ib&&Ct(d),b.nf=!0);c&&(a.d=ea.setTimeout(Ce(b),0))}
function Dt(a){tb.call(this);this.a=a}v(Dt,tb);Dt.prototype.message="Deferred has already fired";Dt.prototype.name="AlreadyCalledError";function zt(a){tb.call(this);this.a=a}v(zt,tb);zt.prototype.message="Deferred was canceled";zt.prototype.name="CanceledError";function Ft(a,b){tb.call(this,Aa("Error %s: %s",b,Gt(a)));this.code=a}v(Ft,tb);
function Gt(a){switch(a){case 1:return"File or directory not found";case 2:return"Insecure or disallowed operation";case 3:return"Operation aborted";case 4:return"File or directory not readable";case 5:return"Invalid encoding";case 6:return"Cannot modify file or directory";case 7:return"Invalid state";case 8:return"Invalid line-ending specifier";case 9:return"Invalid modification";case 10:return"Quota exceeded";case 11:return"Invalid filetype";case 12:return"File or directory already exists at specified path";
default:return"Unrecognized error"}};function Ht(a,b){Qd.call(this,a.type,b);this.a=a}v(Ht,Qd);function It(){He.call(this);this.Ba=new FileReader;this.Ba.onloadstart=xa(this.a,this);this.Ba.onprogress=xa(this.a,this);this.Ba.onload=xa(this.a,this);this.Ba.onabort=xa(this.a,this);this.Ba.onerror=xa(this.a,this);this.Ba.onloadend=xa(this.a,this)}v(It,He);It.prototype.getError=function(){return this.Ba.error&&new Ft(this.Ba.error.code,"reading file")};It.prototype.a=function(a){A(this,new Ht(a,this))};It.prototype.F=function(){It.H.F.call(this);delete this.Ba};
function Jt(a){var b=new yt;a.addEventListener("loadend",ya(function(a,b){var e=b.Ba.result,f=b.getError();null==e||f?(At(a),Bt(a,!1,f)):(At(a),Bt(a,!0,e));b.cc()},b,a));return b};function Kt(a){a=s(a)?a:{};Eh.call(this);this.d=s(a.formatConstructors)?a.formatConstructors:[];this.e=s(a.reprojectTo)?qh(a.reprojectTo):null;this.b=null;this.a=void 0}v(Kt,Eh);l=Kt.prototype;l.F=function(){s(this.a)&&re(this.a);Kt.H.F.call(this)};l.Of=function(a){a=a.P.dataTransfer.files;var b,c,d;b=0;for(c=a.length;b<c;++b){d=a[b];var e;e=d;var f=new It,g=Jt(f);f.Ba.readAsText(e,"");e=g;d=ya(this.hg,d);e.a.push([d,null,this]);e.ib&&Ct(e)}};
l.hg=function(a,b){var c=this.g,d=this.e;null===d&&(d=c.a().W().i());var c=this.d,e=[],f,g;f=0;for(g=c.length;f<g;++f){var h=new c[f],m;try{m=h.bb(b)}catch(n){m=null}if(null!==m){var h=h.Aa(b),h=rh(h,d),p,q;p=0;for(q=m.length;p<q;++p){var r=m[p],u=r.M();null===u||u.tb(h);e.push(r)}}}A(this,new Lt(Mt,this,a,e,d))};l.za=Ae;
l.setMap=function(a){s(this.a)&&(re(this.a),this.a=void 0);null!==this.b&&(Pd(this.b),this.b=null);Kt.H.setMap.call(this,a);null!==a&&(this.b=new xt(a.b),this.a=z(this.b,"drop",this.Of,!1,this))};var Mt="addfeatures";function Lt(a,b,c,d,e){Qd.call(this,a,b);this.features=d;this.file=c;this.projection=e}v(Lt,Qd);function Nt(a,b){this.x=a;this.y=b}v(Nt,$b);Nt.prototype.L=function(){return new Nt(this.x,this.y)};Nt.prototype.scale=$b.prototype.scale;Nt.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Nt.prototype.rotate=function(a){var b=Math.cos(a);a=Math.sin(a);var c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function Ot(a){a=s(a)?a:{};Ih.call(this);this.f=s(a.condition)?a.condition:dg;this.a=this.d=void 0;this.e=0}v(Ot,Ih);Ot.prototype.mb=function(a){if(fg(a)){var b=a.map,c=b.e();a=a.pixel;a=new Nt(a[0]-c[0]/2,c[1]/2-a[1]);c=Math.atan2(a.y,a.x);a=Math.sqrt(a.x*a.x+a.y*a.y);var d=b.a().W(),e=wh(d);b.R();s(this.d)&&Fh(b,d,e.rotation-(c-this.d));this.d=c;s(this.a)&&Hh(b,d,this.a*(e.resolution/a));s(this.a)&&(this.e=this.a/a);this.a=a}};
Ot.prototype.ab=function(a){if(!fg(a))return!0;a=a.map;var b=a.a();sg(b,-1);var b=b.W(),c=wh(b),d=this.e-1,e=c.rotation,e=b.constrainRotation(e,0);Fh(a,b,e,void 0,void 0);c=c.resolution;c=b.constrainResolution(c,0,d);Hh(a,b,c,void 0,400);this.e=0;return!1};Ot.prototype.$a=function(a){return fg(a)&&this.f(a)?(sg(a.map.a(),1),this.a=this.d=void 0,!0):!1};Ot.prototype.Zc=Be;function Pt(a){Ih.call(this);this.B=s(a.deleteCondition)?a.deleteCondition:Ee(cg,bg);this.A=this.d=null;this.v=[0,0];this.a=new Bm;this.f=s(a.pixelTolerance)?a.pixelTolerance:10;this.o=!1;this.e=null;this.h=new Vi({style:s(a.style)?a.style:Qt()});this.n={Point:this.oi,LineString:this.cf,LinearRing:this.cf,Polygon:this.pi,MultiPoint:this.mi,MultiLineString:this.li,MultiPolygon:this.ni,GeometryCollection:this.ki};this.l=a.features;this.l.forEach(this.Ce,this);z(this.l,"add",this.Qf,!1,this);z(this.l,
"remove",this.Rf,!1,this)}v(Pt,Ih);l=Pt.prototype;l.Ce=function(a){var b=a.M();s(this.n[b.D()])&&this.n[b.D()].call(this,a,b);a=this.g;null===a||Rt(this,this.v,a)};l.setMap=function(a){this.h.setMap(a);Pt.H.setMap.call(this,a)};l.Qf=function(a){this.Ce(a.element)};l.Rf=function(a){var b=a.element;a=this.a;var c,d=[];Em(a,b.M().u(),function(a){b===a.feature&&d.push(a)});for(c=d.length-1;0<=c;--c)a.remove(d[c]);null!==this.d&&0===this.l.Ab()&&(this.h.Tc(this.d),this.d=null)};
l.oi=function(a,b){var c=b.C(),c={feature:a,geometry:b,$:[c,c]};Im(this.a,b.u(),c)};l.mi=function(a,b){var c=b.C(),d,e,f;e=0;for(f=c.length;e<f;++e)d=c[e],d={feature:a,geometry:b,depth:[e],index:e,$:[d,d]},Im(this.a,b.u(),d)};l.cf=function(a,b){var c=b.C(),d,e,f,g;d=0;for(e=c.length-1;d<e;++d)f=c.slice(d,d+2),g={feature:a,geometry:b,index:d,$:f},Im(this.a,tg(f),g)};
l.li=function(a,b){var c=b.C(),d,e,f,g,h,m,n;g=0;for(h=c.length;g<h;++g)for(d=c[g],e=0,f=d.length-1;e<f;++e)m=d.slice(e,e+2),n={feature:a,geometry:b,depth:[g],index:e,$:m},Im(this.a,tg(m),n)};l.pi=function(a,b){var c=b.C(),d,e,f,g,h,m,n;g=0;for(h=c.length;g<h;++g)for(d=c[g],e=0,f=d.length-1;e<f;++e)m=d.slice(e,e+2),n={feature:a,geometry:b,depth:[g],index:e,$:m},Im(this.a,tg(m),n)};
l.ni=function(a,b){var c=b.C(),d,e,f,g,h,m,n,p,q,r;m=0;for(n=c.length;m<n;++m)for(p=c[m],g=0,h=p.length;g<h;++g)for(d=p[g],e=0,f=d.length-1;e<f;++e)q=d.slice(e,e+2),r={feature:a,geometry:b,depth:[g,m],index:e,$:q},Im(this.a,tg(q),r)};l.ki=function(a,b){var c,d=b.a;for(c=0;c<d.length;++c)this.n[d[c].D()].call(this,a,d[c])};function St(a,b){var c=a.d;null===c?(c=new H(new ii(b)),a.d=c,a.h.re(c)):c.M().J(b)}
l.$a=function(a){Rt(this,a.pixel,a.map);this.e=[];var b=this.d;if(null!==b){a=[];var b=b.M().C(),c=tg([b]),d=[];Fm(this.a,c,function(a){d.push(a)},void 0);for(var c={},e=0,f=d.length;e<f;++e){var g=d[e],h=g.$;sa(g.feature)in c||(c[sa(g.feature)]=!0);$e(h[0],b)?this.e.push([g,0]):$e(h[1],b)?this.e.push([g,1]):sa(h)in this.A&&a.push([g,b])}for(e=a.length-1;0<=e;--e)this.og.apply(this,a[e])}return null!==this.d};
l.mb=function(a){a=a.coordinate;for(var b=0,c=this.e.length;b<c;++b){var d=this.e[b],e=d[0],f=e.depth,g=e.geometry,h=g.C(),m=e.$,d=d[1];switch(g.D()){case "Point":h=a;m[0]=m[1]=a;break;case "MultiPoint":h[e.index]=a;m[0]=m[1]=a;break;case "LineString":h[e.index+d]=a;m[d]=a;break;case "MultiLineString":h[f[0]][e.index+d]=a;m[d]=a;break;case "Polygon":h[f[0]][e.index+d]=a;m[d]=a;break;case "MultiPolygon":h[f[1]][f[0]][e.index+d]=a,m[d]=a}g.J(h);St(this,a)}};
l.ab=function(){for(var a,b=this.e.length-1;0<=b;--b)a=this.e[b][0],this.a.update(tg(a.$),a);return!1};
l.za=function(a){var b,c=a.map.a();Db(c.h)[1]||a.type!=Yf||(this.v=a.pixel,Rt(this,a.pixel,a.map));if(null!==this.d&&this.o&&this.B(a)){this.d.M();b=this.e;var c={},d=!1,e,f,g,h,m,n,p,q,r;for(m=b.length-1;0<=m;--m)if(g=b[m],q=g[0],h=q.geometry,f=h.C(),r=sa(q.feature),e=p=n=void 0,0===g[1]?(p=q,n=q.index):1==g[1]&&(e=q,n=q.index+1),r in c||(c[r]=[e,p,n]),g=c[r],s(e)&&(g[0]=e),s(p)&&(g[1]=p),s(g[0])&&s(g[1])){e=f;d=!1;p=n-1;switch(h.D()){case "MultiLineString":f[q.depth[0]].splice(n,1);d=!0;break;case "LineString":f.splice(n,
1);d=!0;break;case "MultiPolygon":e=e[q.depth[1]];case "Polygon":e=e[q.depth[0]],4<e.length&&(n==e.length-1&&(n=0),e.splice(n,1),d=!0,0===n&&(e.pop(),e.push(e[0]),p=e.length-1))}d&&(this.a.remove(g[0]),this.a.remove(g[1]),h.J(f),f={depth:q.depth,feature:q.feature,geometry:q.geometry,index:p,$:[g[0].$[0],g[1].$[1]]},Im(this.a,tg(f.$),f),Tt(this,h,n,q.depth,-1),this.h.Tc(this.d),this.d=null)}b=d}return Pt.H.za.call(this,a)&&!b};
function Rt(a,b,c){function d(a,b){return bf(e,Xe(e,a.$))-bf(e,Xe(e,b.$))}var e=c.wa(b),f=c.wa([b[0]-a.f,b[1]+a.f]),g=c.wa([b[0]+a.f,b[1]-a.f]),f=tg([f,g]),f=Hm(a.a,f);if(0<f.length){f.sort(d);var g=f[0].$,h=Xe(e,g),m=c.f(h);if(Math.sqrt(bf(b,m))<=a.f){b=c.f(g[0]);c=c.f(g[1]);b=bf(m,b);c=bf(m,c);a.o=Math.sqrt(Math.min(b,c))<=a.f;a.o&&(h=b>c?g[1]:g[0]);St(a,h);c={};c[sa(g)]=!0;b=1;for(m=f.length;b<m;++b)if(h=f[b].$,$e(g[0],h[0])&&$e(g[1],h[1])||$e(g[0],h[1])&&$e(g[1],h[0]))c[sa(h)]=!0;else break;a.A=
c;return}}null!==a.d&&(a.h.Tc(a.d),a.d=null)}
l.og=function(a,b){var c=a.$,d=a.feature,e=a.geometry,f=a.depth,g=a.index,h;switch(e.D()){case "MultiLineString":h=e.C();h[f[0]].splice(g+1,0,b);break;case "Polygon":h=e.C();h[f[0]].splice(g+1,0,b);break;case "MultiPolygon":h=e.C();h[f[1]][f[0]].splice(g+1,0,b);break;case "LineString":h=e.C();h.splice(g+1,0,b);break;default:return}e.J(h);h=this.a;h.remove(a);Tt(this,e,g,f,1);var m={$:[c[0],b],feature:d,geometry:e,depth:f,index:g};Im(h,tg(m.$),m);this.e.push([m,1]);c={$:[b,c[1]],feature:d,geometry:e,
depth:f,index:g+1};Im(h,tg(c.$),c);this.e.push([c,0])};l.Zc=Be;function Tt(a,b,c,d,e){Em(a.a,b.u(),function(a){a.geometry===b&&((!s(d)||Jb(a.depth,d))&&a.index>c)&&(a.index+=e)})}function Qt(){var a=Ui();return function(){return a.Point}};function Ut(a){Eh.call(this);a=s(a)?a:{};this.e=s(a.condition)?a.condition:bg;this.d=s(a.addCondition)?a.addCondition:ze;this.f=s(a.removeCondition)?a.removeCondition:ze;this.i=s(a.toggleCondition)?a.toggleCondition:dg;var b;if(s(a.layers))if(pa(a.layers))b=a.layers;else{var c=a.layers;b=function(a){return 0<=vb(c,a)}}else b=Ae;this.b=b;this.a=new Vi({style:s(a.style)?a.style:Vt()});a=this.a.a;z(a,"add",this.Tg,!1,this);z(a,"remove",this.Sh,!1,this)}v(Ut,Eh);l=Ut.prototype;l.Ug=function(){return this.a.a};
l.za=function(a){if(!this.e(a))return!0;var b=this.d(a),c=this.f(a),d=this.i(a),e=a.map,f=this.a.a;b||c||d?e.wd(a.pixel,function(a){var e=vb(f.a,a);-1==e?(b||d)&&f.push(a):(c||d)&&f.Wc(e)},void 0,this.b):(a=e.wd(a.pixel,aa(),void 0,this.b),s(a)&&1==f.Ab()&&f.Zd(0)==a||(0!==f.Ab()&&f.clear(),s(a)&&f.push(a)));return!1};l.setMap=function(a){var b=this.g,c=this.a.a;null===b||c.forEach(b.sb,b);Ut.H.setMap.call(this,a);this.a.setMap(a);null===a||c.forEach(a.Fa,a)};
function Vt(){var a=Ui();Eb(a.Polygon,a.LineString);Eb(a.GeometryCollection,a.LineString);return function(b){return a[b.M().D()]}}l.Tg=function(a){a=a.element;var b=this.g;null===b||b.Fa(a)};l.Sh=function(a){a=a.element;var b=this.g;null===b||b.sb(a)};function $(a){a=s(a)?a:{};O.call(this,a);this.ea=null;z(this,Qe("gradient"),this.bd,!1,this);this.yc(s(a.gradient)?a.gradient:Wt);var b=Xt(s(a.radius)?a.radius:8,s(a.blur)?a.blur:15,s(a.shadow)?a.shadow:250),c=Array(256),d=s(a.weight)?a.weight:"weight",e;e=na(d)?function(a){return a.get(d)}:d;this.fa(function(a){a=e(a);a=s(a)?Xb(a,0,1):1;var d=255*a|0,h=c[d];s(h)||(h=[new Qi({image:new bl({opacity:a,src:b})})],c[d]=h);return h});this.w("renderOrder",null);z(this,"render",this.cd,!1,this)}v($,O);
var Wt=["#00f","#0ff","#0f0","#ff0","#f00"];function Xt(a,b,c){var d=a+b+1,e=2*d,e=td(e,e);e.shadowOffsetX=e.shadowOffsetY=c;e.shadowBlur=b;e.shadowColor="#000";e.beginPath();b=d-c;e.arc(b,b,a,0,2*Math.PI,!0);e.fill();return e.canvas.toDataURL()}$.prototype.Fa=function(){return this.get("gradient")};$.prototype.getGradient=$.prototype.Fa;
$.prototype.bd=function(){for(var a=this.Fa(),b=td(1,256),c=b.createLinearGradient(0,0,1,256),d=1/(a.length-1),e=0,f=a.length;e<f;++e)c.addColorStop(e*d,a[e]);b.fillStyle=c;b.fillRect(0,0,1,256);this.ea=b.getImageData(0,0,1,256).data};$.prototype.cd=function(a){a=a.context;var b=a.canvas,b=a.getImageData(0,0,b.width,b.height),c=b.data,d,e,f;d=0;for(e=c.length;d<e;d+=4)if(f=4*c[d+3])c[d]=this.ea[f],c[d+1]=this.ea[f+1],c[d+2]=this.ea[f+2];a.putImageData(b,0,0)};
$.prototype.yc=function(a){this.w("gradient",a)};$.prototype.setGradient=$.prototype.yc;function Yt(a){return[a]};var Zt=new function(a,b){this.b=a;this.d=b;this.e=this.b*(1-this.d);this.a=2*b-b*b;this.c=Math.sqrt(this.a)}(6377397.155,1/299.15281285);function $t(a){Xg.call(this,{code:a.code,extent:a.extent,global:!1,units:"m"})}v($t,Xg);var au=Zb(169028.66/3600),bu=Math.sin(au);Math.log(Math.tan(Math.PI/4+Math.asin(bu/Math.sqrt(1+Zt.a*Math.pow(Math.cos(au),4)/(1-Zt.a)))/2));Math.log(Math.tan(Math.PI/4+au/2));Math.log((1+Zt.c*bu)/(1-Zt.c*bu));$t.prototype.d=aa();function cu(){$t.call(this,{code:"EPSG:2056",extent:du})}v(cu,$t);var du=[2485869.5728,1076443.1884,2837076.5648,1299941.7864];
function eu(){$t.call(this,{code:"EPSG:21781",extent:fu})}v(eu,$t);var fu=[485869.5728,76443.1884,837076.5648,299941.7864];function gu(a,b){var c=b||{},d=c.document||document,e=yc("SCRIPT"),f={Se:e,Db:void 0},g=new yt(hu,f),h=null,m=null!=c.timeout?c.timeout:5E3;0<m&&(h=window.setTimeout(function(){iu(e,!0);var b=new ju(ku,"Timeout reached for loading script "+a);At(g);Bt(g,!1,b)},m),f.Db=h);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(iu(e,c.qf||!1,h),At(g),Bt(g,!0,null))};e.onerror=function(){iu(e,!0,h);var b=new ju(lu,"Error while loading script "+a);At(g);
Bt(g,!1,b)};sc(e,{type:"text/javascript",charset:"UTF-8",src:a});mu(d).appendChild(e);return g}function mu(a){var b=a.getElementsByTagName("HEAD");return b&&0!=b.length?b[0]:a.documentElement}function hu(){if(this&&this.Se){var a=this.Se;a&&"SCRIPT"==a.tagName&&iu(a,!0,this.Db)}}function iu(a,b,c){null!=c&&ea.clearTimeout(c);a.onload=fa;a.onerror=fa;a.onreadystatechange=fa;b&&window.setTimeout(function(){Ec(a)},0)}var lu=0,ku=1;
function ju(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);tb.call(this,c);this.code=a}v(ju,tb);function nu(a,b){this.c=new ij(a);this.a=b?b:"callback";this.Db=5E3}var ou=0;function pu(a,b,c){var d=b||null;b="_"+(ou++).toString(36)+za().toString(36);ea._callbacks_||(ea._callbacks_={});var e=a.c.L();if(d)for(var f in d)d.hasOwnProperty&&!d.hasOwnProperty(f)||vj(e,f,d[f]);c&&(ea._callbacks_[b]=qu(b,c),vj(e,a.a,"_callbacks_."+b));a=gu(e.toString(),{timeout:a.Db,qf:!0});a.a.push([null,ru(b),void 0]);a.ib&&Ct(a)}nu.prototype.cancel=function(a){a&&(a.rf&&a.rf.cancel(),a.Z&&su(a.Z,!1))};
function ru(a){return function(){su(a,!1)}}function qu(a,b){return function(c){su(a,!0);b.apply(void 0,arguments)}}function su(a,b){ea._callbacks_[a]&&(b?delete ea._callbacks_[a]:ea._callbacks_[a]=fa)};function tu(a){return function(b){return null===b?void 0:a.replace("{z}",b.a.toString()).replace("{x}",b.x.toString()).replace("{y}",b.y.toString()).replace("{-y}",function(){return((1<<b.a)-b.y-1).toString()})}}function uu(a){return vu(xb(a,tu))}function vu(a){return 1===a.length?a[0]:function(b,c,d){return null===b?void 0:a[Yb((b.x<<b.a)+b.y,a.length)](b,c,d)}}function wu(){}function xu(a,b){var c=new Lb(0,0,0);return function(d,e,f){return null===d?void 0:b(a(d,f,c),e,f)}}
function yu(a){var b=[],c=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(c){var d=c[2].charCodeAt(0),e;for(e=c[1].charCodeAt(0);e<=d;++e)b.push(a.replace(c[0],String.fromCharCode(e)))}else b.push(a);return b};function zu(a){Hn.call(this);this.d=s(a)?a:2048}v(zu,Hn);function Au(a,b){for(var c,d;a.Ga()>a.d&&!(c=a.a.Fb,d=c.a.a.toString(),d in b&&b[d].contains(c.a));)a.pop()};function Bu(a){Rk.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,opaque:a.opaque,pixelRatios:a.pixelRatios,projection:a.projection,tileGrid:a.tileGrid});this.tileUrlFunction=s(a.tileUrlFunction)?a.tileUrlFunction:wu;this.crossOrigin=s(a.crossOrigin)?a.crossOrigin:null;this.d=new zu;this.tileLoadFunction=s(a.tileLoadFunction)?a.tileLoadFunction:Cu;this.tileClass=s(a.tileClass)?a.tileClass:bo}v(Bu,Rk);function Cu(a,b){a.b().src=b}l=Bu.prototype;
l.yd=function(){return this.d.Ga()>this.d.d};l.Ge=function(a){Au(this.d,a)};l.Lb=function(a,b,c,d,e){var f=this.kb(a,b,c);if(Fn(this.d,f))return this.d.get(f);a=new Lb(a,b,c);d=this.tileUrlFunction(a,d,e);d=new this.tileClass(a,s(d)?0:4,s(d)?d:"",this.crossOrigin,this.tileLoadFunction);In(this.d,f,d);return d};l.qc=function(a){this.d.clear();this.tileUrlFunction=a;this.k()};l.af=function(a,b,c){a=this.kb(a,b,c);Fn(this.d,a)&&this.d.get(a)};function Du(a){var b=Array(a.maxZoom+1),c,d=2*Dk/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);Kk.call(this,{minZoom:a.minZoom,origin:[-Dk,Dk],resolutions:b,tileSize:256})}v(Du,Kk);
Du.prototype.c=function(a){a=s(a)?a:{};var b=this.minZoom,c=this.maxZoom,d=s(a.wrapX)?a.wrapX:!0,e=new Lb(0,0,0),f=null;if(s(a.extent)){var f=Array(c+1),g;for(g=0;g<=c;++g)f[g]=g<b?null:Nk(this,a.extent,g)}return function(a,g,n){g=a.a;if(g<b||c<g)return null;var p=Math.pow(2,g),q=a.x;if(d)q=Yb(q,p);else if(0>q||p<=q)return null;a=a.y;return a<-p||-1<a||null!==f&&(e.a=g,e.x=q,e.y=a,!f[g].contains(e))?null:Mb(g,q,-a-1,n)}};
Du.prototype.Kc=function(a,b){return a.a<this.maxZoom?Qb(2*a.x,2*(a.x+1),2*a.y,2*(a.y+1),b):null};Du.prototype.Fc=function(a,b,c,d){d=Qb(0,a.x,0,a.y,d);for(a=a.a-1;a>=this.minZoom;--a)if(d.a=d.d>>=1,d.b=d.c>>=1,b.call(c,a,d))return!0;return!1};function Eu(a){Bu.call(this,{crossOrigin:"anonymous",opaque:!0,projection:qh("EPSG:3857"),state:0,tileLoadFunction:a.tileLoadFunction});this.b=s(a.culture)?a.culture:"en-us";var b=new ij((rb?"https:":"http:")+"//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.imagerySet);pu(new nu(b,"jsonp"),{include:"ImageryProviders",key:a.key},xa(this.e,this))}v(Eu,Bu);var Fu=new Rb({html:'\x3ca class\x3d"ol-attribution-bing-tos" target\x3d"_blank" href\x3d"http://www.microsoft.com/maps/product/terms.html"\x3eTerms of Use\x3c/a\x3e'});
Eu.prototype.e=function(a){if(200!=a.statusCode||"OK"!=a.statusDescription||"ValidCredentials"!=a.authenticationResultCode||1!=a.resourceSets.length||1!=a.resourceSets[0].resources.length)zk(this,2);else{var b=a.brandLogoUri,c=a.resourceSets[0].resources[0],d=new Du({minZoom:c.zoomMin,maxZoom:c.zoomMax,tileSize:c.imageWidth});this.tileGrid=d;var e=this.b;this.tileUrlFunction=xu(d.c(),vu(xb(c.imageUrlSubdomains,function(a){var b=c.imageUrl.replace("{subdomain}",a).replace("{culture}",e);return function(a){return null===
a?void 0:b.replace("{quadkey}",Ob(a))}})));if(c.imageryProviders){var f=$g(qh("EPSG:4326"),this.l);a=xb(c.imageryProviders,function(a){var b=a.attribution,c={};wb(a.coverageAreas,function(a){var b=a.zoomMin,e=a.zoomMax;a=a.bbox;a=Rg([a[1],a[0],a[3],a[2]],f);var g,h;for(g=b;g<=e;++g)h=g.toString(),b=Nk(d,a,g),h in c?c[h].push(b):c[h]=[b]});return new Rb({html:b,tileRanges:c})});a.push(Fu);this.f=a}this.v=b;zk(this,1)}};function Gu(a,b,c){if(pa(a))c&&(a=xa(a,c));else if(a&&"function"==typeof a.handleEvent)a=xa(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:ea.setTimeout(a,b||0)};function Hu(){}Hu.prototype.a=null;function Iu(a){var b;(b=a.a)||(b={},Ju(a)&&(b[0]=!0,b[1]=!0),b=a.a=b);return b};var Ku;function Lu(){}v(Lu,Hu);function Mu(a){return(a=Ju(a))?new ActiveXObject(a):new XMLHttpRequest}function Ju(a){if(!a.c&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.c=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.c}Ku=new Lu;function Nu(a){He.call(this);this.B=new Zi;this.h=a||null;this.a=!1;this.i=this.K=null;this.G=this.n="";this.b=0;this.e="";this.c=this.v=this.p=this.l=!1;this.g=0;this.d=null;this.f=Ou;this.o=this.Q=!1}v(Nu,He);var Ou="",Pu=/^https?$/i,Qu=["POST","PUT"];
function Ru(a,b){if(a.K)throw Error("[goog.net.XhrIo] Object is active with another request\x3d"+a.n+"; newUri\x3d"+b);a.n=b;a.e="";a.b=0;a.G="GET";a.l=!1;a.a=!0;a.K=a.h?Mu(a.h):Mu(Ku);a.i=a.h?Iu(a.h):Iu(Ku);a.K.onreadystatechange=xa(a.A,a);try{a.v=!0,a.K.open("GET",b,!0),a.v=!1}catch(c){Su(a,c);return}var d=a.B.L(),e=zb(d.O(),Tu),f=ea.FormData&&!1;!(0<=vb(Qu,"GET"))||(e||f)||$i(d,"Content-Type","application/x-www-form-urlencoded;charset\x3dutf-8");Yi(d,function(a,b){this.K.setRequestHeader(b,a)},
a);a.f&&(a.K.responseType=a.f);"withCredentials"in a.K&&(a.K.withCredentials=a.Q);try{Uu(a),0<a.g&&(a.o=$a&&ob(9)&&oa(a.K.timeout)&&s(a.K.ontimeout),a.o?(a.K.timeout=a.g,a.K.ontimeout=xa(a.Db,a)):a.d=Gu(a.Db,a.g,a)),a.p=!0,a.K.send(""),a.p=!1}catch(g){Su(a,g)}}function Tu(a){return"content-type"==a.toLowerCase()}
Nu.prototype.Db=function(){"undefined"!=typeof da&&this.K&&(this.e="Timed out after "+this.g+"ms, aborting",this.b=8,A(this,"timeout"),this.K&&this.a&&(this.a=!1,this.c=!0,this.K.abort(),this.c=!1,this.b=8,A(this,"complete"),A(this,"abort"),Vu(this)))};function Su(a,b){a.a=!1;a.K&&(a.c=!0,a.K.abort(),a.c=!1);a.e=b;a.b=5;Wu(a);Vu(a)}function Wu(a){a.l||(a.l=!0,A(a,"complete"),A(a,"error"))}Nu.prototype.F=function(){this.K&&(this.a&&(this.a=!1,this.c=!0,this.K.abort(),this.c=!1),Vu(this,!0));Nu.H.F.call(this)};
Nu.prototype.A=function(){if(!this.Na&&this.a&&"undefined"!=typeof da&&(!this.i[1]||4!=Xu(this)||2!=Yu(this)))if(this.p&&4==Xu(this))Gu(this.A,0,this);else if(A(this,"readystatechange"),4==Xu(this)){this.a=!1;try{if(Zu(this))A(this,"complete"),A(this,"success");else{this.b=6;var a;try{a=2<Xu(this)?this.K.statusText:""}catch(b){a=""}this.e=a+" ["+Yu(this)+"]";Wu(this)}}finally{Vu(this)}}};
function Vu(a,b){if(a.K){Uu(a);var c=a.K,d=a.i[0]?fa:null;a.K=null;a.i=null;b||A(a,"ready");try{c.onreadystatechange=d}catch(e){}}}function Uu(a){a.K&&a.o&&(a.K.ontimeout=null);oa(a.d)&&(ea.clearTimeout(a.d),a.d=null)}
function Zu(a){var b=Yu(a),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=dj(String(a.n))[1]||null,!a&&self.location&&(a=self.location.protocol,a=a.substr(0,a.length-1)),b=!Pu.test(a?a.toLowerCase():"");c=b}return c}function Xu(a){return a.K?a.K.readyState:0}function Yu(a){try{return 2<Xu(a)?a.K.status:-1}catch(b){return-1}}function $u(a){try{return a.K?a.K.responseText:""}catch(b){return""}}
function av(a){try{if(!a.K)return null;if("response"in a.K)return a.K.response;switch(a.f){case Ou:case "text":return a.K.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.K)return a.K.mozResponseArrayBuffer}return null}catch(b){return null}};function bv(a){Lm.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection});this.format=a.format}v(bv,Lm);
function cv(a,b,c,d){var e=new Nu;e.f="binary"==a.format.D()&&Bd?"arraybuffer":"text";z(e,"complete",function(a){a=a.target;if(Zu(a)){var b=this.format.D(),e;if("binary"==b&&Bd)e=av(a);else if("json"==b)e=$u(a);else if("text"==b)e=$u(a);else if("xml"==b){if(!$a)try{e=a.K?a.K.responseXML:null}catch(m){e=null}null!=e||(e=hp($u(a)))}null!=e?c.call(d,this.e(e)):zk(this,2)}else zk(this,2);Pd(a)},!1,a);Ru(e,b)}
bv.prototype.e=function(a){var b=this.format,c=b.bb(a);a=b.Aa(a);b=this.l;if(null!==b&&null!==a&&a!==b&&(a.Da!=b.Da||$g(a,b)!==ih)){a=rh(a,b);var d,b=0;for(d=c.length;b<d;++b){var e=c[b].M();null===e||e.tb(a)}}return c};function dv(a){bv.call(this,{attributions:a.attributions,extent:a.extent,format:a.format,logo:a.logo,projection:a.projection});s(a.arrayBuffer)&&this.ra(this.e(a.arrayBuffer));s(a.doc)&&this.ra(this.e(a.doc));s(a.node)&&this.ra(this.e(a.node));s(a.object)&&this.ra(this.e(a.object));s(a.text)&&this.ra(this.e(a.text));if(s(a.url)||s(a.urls))if(zk(this,0),s(a.url)&&cv(this,a.url,function(a){this.ra(a);zk(this,1)},this),s(a.urls)){a=a.urls;var b,c;b=0;for(c=a.length;b<c;++b)cv(this,a[b],function(a){this.ra(a);
zk(this,1)},this)}}v(dv,bv);function ev(a){a=s(a)?a:{};dv.call(this,{attributions:a.attributions,doc:a.doc,extent:a.extent,format:new Kp,logo:a.logo,node:a.node,projection:a.projection,text:a.text,url:a.url,urls:a.urls})}v(ev,dv);function fv(a){a=s(a)?a:{};dv.call(this,{attributions:a.attributions,extent:a.extent,format:new sq({defaultProjection:a.defaultProjection}),logo:a.logo,object:a.object,projection:a.projection,text:a.text,url:a.url,urls:a.urls})}v(fv,dv);function gv(a){a=s(a)?a:{};dv.call(this,{format:new Bq({altitudeMode:a.altitudeMode}),projection:a.projection,text:a.text,url:a.url,urls:a.urls})}v(gv,dv);function hv(a,b,c,d,e){Hk.call(this,a,b,c,2,d);this.a=e}v(hv,Hk);hv.prototype.e=k("a");function iv(a){Dl.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,resolutions:a.resolutions,state:a.state});this.o=a.canvasFunction;this.h=null;this.p=0;this.A=s(a.ratio)?a.ratio:1.5}v(iv,Dl);iv.prototype.Qb=function(a,b,c,d){b=El(this,b);var e=this.h;if(null!==e&&this.p==this.c&&e.d==b&&e.b==c&&Ag(e.u(),a))return e;a=a.slice();Pg(a,this.A);d=this.o(a,b,c,[Kg(a)/b*c,Ig(a)/b*c],d);null===d||(e=new hv(a,b,c,this.f,d));this.h=e;this.p=this.c;return e};function jv(a){var b=s(a.attributions)?a.attributions:null,c=s(a.crossOrigin)?a.crossOrigin:null,d=a.imageExtent,e=(d[3]-d[1])/a.imageSize[1],f=a.url,g=qh(a.projection);Dl.call(this,{attributions:b,extent:a.extent,logo:a.logo,projection:g,resolutions:[e]});this.b=new Ik(d,e,1,b,f,c)}v(jv,Dl);jv.prototype.Qb=function(a){return Mg(a,this.b.u())?this.b:null};function kv(a){this.d=a.source;this.Xg=s(a.style)?Ti(a.style):Si;this.B=kd();this.b=td();this.e=[0,0];this.g=null;iv.call(this,{attributions:a.attributions,canvasFunction:xa(this.of,this),extent:a.extent,logo:a.logo,projection:a.projection,ratio:a.ratio,resolutions:a.resolutions,state:this.d.i});z(this.d,"change",this.$g,void 0,this)}v(kv,iv);l=kv.prototype;
l.of=function(a,b,c,d){var e=new Xl(b/(2*c),a,b),f=!1;this.d.Ec(a,b,function(a){var d;if(!(d=f))if(d=this.Xg(a,b),null!=d){var m=b*b/(4*c*c),n,p,q=!1;n=0;for(p=d.length;n<p;++n)q=tm(e,a,d[n],m,a,this.Zg,this)||q;d=q}else d=!1;f=d},this);am(e);if(f)return null;this.e[0]!=d[0]||this.e[1]!=d[1]?(this.b.canvas.width=d[0],this.b.canvas.height=d[1],this.e[0]=d[0],this.e[1]=d[1]):this.b.clearRect(0,0,d[0],d[1]);d=el(this.B,d[0]/2,d[1]/2,c/b,-c/b,0,-Gg(a)[0],-Gg(a)[1]);Yl(e,this.b,a,c,d,0,{});this.g=e;return this.b.canvas};
l.Vc=function(a,b,c,d,e){return null===this.g?void 0:$l(this.g,a,b,0,d,{},function(a,b){return e(b)})};l.Yg=k("d");l.Zg=function(){this.k()};l.$g=function(){zk(this,this.d.i)};function lv(a){a=s(a)?a:{};Dl.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,resolutions:a.resolutions});this.S=s(a.crossOrigin)?a.crossOrigin:null;this.e=a.url;this.d=a.params;this.g=!0;mv(this);this.G=a.serverType;this.ca=s(a.hidpi)?a.hidpi:!0;this.b=null;this.h=[0,0];this.p=null;this.A=NaN;this.B=0;this.o=s(a.ratio)?a.ratio:1.5}v(lv,Dl);l=lv.prototype;
l.ah=function(a,b,c,d){if(s(this.e)&&null!==this.b&&b==this.A&&(c===this.p||(c.Da!=this.p.Da?0:$g(c,this.p)===ih))){var e=this.b.u(),f=this.b.b,g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:w(this.d,"LAYERS")};nc(g,this.d,d);b/=f;d=Math.floor((e[3]-a[1])/b);g[this.g?"I":"X"]=Math.floor((a[0]-e[0])/b);g[this.g?"J":"Y"]=d;return nv(this,e,this.h,f,c,g)}};l.bh=k("d");
l.Qb=function(a,b,c,d){if(!s(this.e))return null;b=El(this,b);1==c||this.ca&&s(this.G)||(c=1);var e=this.b;if(null!==e&&this.B==this.c&&e.d==b&&e.b==c&&Ag(e.u(),a))return e;e={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};nc(e,this.d);a=a.slice();var f=(a[0]+a[2])/2,g=(a[1]+a[3])/2;if(1!=this.o){var h=this.o*Kg(a)/2,m=this.o*Ig(a)/2;a[0]=f-h;a[1]=g-m;a[2]=f+h;a[3]=g+m}var h=b/c,m=Math.ceil(Kg(a)/h),n=Math.ceil(Ig(a)/h);a[0]=f-h*m/2;a[2]=f+h*m/2;a[1]=g-h*n/2;a[3]=
g+h*n/2;this.h[0]=m;this.h[1]=n;e=nv(this,a,this.h,c,d,e);this.b=new Ik(a,b,c,this.f,e,this.S);this.p=d;this.A=b;this.B=this.c;return this.b};
function nv(a,b,c,d,e,f){f[a.g?"CRS":"SRS"]=e.a;"STYLES"in a.d||(f.STYLES=new String(""));if(1!=d)switch(a.G){case "geoserver":f.FORMAT_OPTIONS="dpi:"+(90*d+0.5|0);break;case "mapserver":f.MAP_RESOLUTION=90*d;break;case "carmentaserver":case "qgis":f.DPI=90*d}f.WIDTH=c[0];f.HEIGHT=c[1];c=e.e;f.BBOX=(a.g&&"ne"==c.substr(0,2)?[b[1],b[0],b[3],b[2]]:b).join(",");return fj(hj([a.e],f))}l.dh=k("e");l.eh=function(a){a!=this.e&&(this.e=a,this.b=null,this.k())};
l.fh=function(a){nc(this.d,a);mv(this);this.b=null;this.k()};function mv(a){a.g=0<=Ka(w(a.d,"VERSION","1.3.0"),"1.3")};function ov(a){a=s(a)?a:{};dv.call(this,{attributions:a.attributions,doc:a.doc,extent:a.extent,format:new Fq({defaultStyle:a.defaultStyle}),logo:a.logo,node:a.node,projection:a.projection,text:a.text,url:a.url,urls:a.urls})}v(ov,dv);function pv(a,b,c){return function(d,e,f){return c(a,b,d,e,f)}}function qv(){};function rv(a){Dl.call(this,{extent:a.extent,projection:a.projection,resolutions:a.resolutions});this.p=s(a.crossOrigin)?a.crossOrigin:null;this.b=s(a.displayDpi)?a.displayDpi:96;this.g=s(a.url)?pv(a.url,s(a.params)?a.params:{},xa(this.A,this)):qv;this.o=s(a.hidpi)?a.hidpi:!0;this.h=s(a.metersPerUnit)?a.metersPerUnit:1;this.e=s(a.ratio)?a.ratio:1;this.B=s(a.useOverlay)?a.useOverlay:!1;this.d=null}v(rv,Dl);
rv.prototype.Qb=function(a,b,c,d){b=El(this,b);c=this.o?c:1;var e=this.d;if(null!==e&&e.d==b&&e.b==c&&Ag(e.u(),a))return e;1!=this.e&&(a=a.slice(),Pg(a,this.e));d=this.g(a,[Kg(a)/b*c,Ig(a)/b*c],d);return this.d=e=s(d)?new Ik(a,b,c,this.f,d,this.p):null};
rv.prototype.A=function(a,b,c,d){var e;e=this.h;var f=Kg(c),g=Ig(c),h=d[0],m=d[1],n=0.0254/this.b;e=m*f>h*g?f*e/(h*n):g*e/(m*n);c=Gg(c);d={OPERATION:this.B?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.MapGuide source",CLIP:"1",SETDISPLAYDPI:this.b,SETDISPLAYWIDTH:Math.round(d[0]),SETDISPLAYHEIGHT:Math.round(d[1]),SETVIEWSCALE:e,SETVIEWCENTERX:c[0],SETVIEWCENTERY:c[1]};nc(d,b);return fj(hj([a],d))};function sv(a){var b=s(a.projection)?a.projection:"EPSG:3857",c=new Du({maxZoom:s(a.maxZoom)?a.maxZoom:18});Bu.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,projection:b,tileGrid:c,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:wu});this.e=c.c({extent:a.extent,wrapX:a.wrapX});s(a.tileUrlFunction)?this.qc(a.tileUrlFunction):s(a.urls)?this.qc(uu(a.urls)):s(a.url)&&this.b(a.url)}v(sv,Bu);sv.prototype.qc=function(a){sv.H.qc.call(this,xu(this.e,a))};
sv.prototype.b=function(a){this.qc(uu(yu(a)))};function tv(a){a=s(a)?a:{};var b=rb?"https:":"http:";sv.call(this,{attributions:s(a.attributions)?a.attributions:uv,crossOrigin:s(a.crossOrigin)?a.crossOrigin:"anonymous",opaque:!0,maxZoom:a.maxZoom,tileLoadFunction:a.tileLoadFunction,url:s(a.url)?a.url:b+"//{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}v(tv,sv);
var vv=new Rb({html:'Data \x26copy; \x3ca href\x3d"http://www.openstreetmap.org/"\x3eOpenStreetMap\x3c/a\x3e contributors, \x3ca href\x3d"http://www.openstreetmap.org/copyright"\x3eODbL\x3c/a\x3e'}),wv=new Rb({html:'Tiles \x26copy; \x3ca href\x3d"http://www.openstreetmap.org/"\x3eOpenStreetMap\x3c/a\x3e contributors, \x3ca href\x3d"http://creativecommons.org/licenses/by-sa/2.0/"\x3eCC BY-SA\x3c/a\x3e'}),uv=[wv,vv];function xv(a){a=s(a)?a:{};var b=yv[a.layer];sv.call(this,{attributions:b.attributions,crossOrigin:"anonymous",logo:"//developer.mapquest.com/content/osm/mq_logo.png",maxZoom:b.maxZoom,opaque:!0,tileLoadFunction:a.tileLoadFunction,url:(rb?"https:":"http:")+"//otile{1-4}-s.mqcdn.com/tiles/1.0.0/"+a.layer+"/{z}/{x}/{y}.jpg"})}v(xv,sv);
var zv=new Rb({html:'Tiles Courtesy of \x3ca href\x3d"http://www.mapquest.com/" target\x3d"_blank"\x3eMapQuest\x3c/a\x3e'}),yv={osm:{maxZoom:28,attributions:[zv,vv]},sat:{maxZoom:18,attributions:[zv,new Rb({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})]},hyb:{maxZoom:18,attributions:[zv,vv]}};function Av(a){a=s(a)?a:{};dv.call(this,{attributions:a.attributions,doc:a.doc,extent:a.extent,format:new wr,logo:a.logo,node:a.node,projection:a.projection,reprojectTo:a.reprojectTo,text:a.text,url:a.url})}v(Av,dv);function Bv(a){bv.call(this,{attributions:a.attributions,extent:a.extent,format:a.format,logo:a.logo,projection:a.projection});this.h=new Bm;this.n=a.loader;this.o=s(a.strategy)?a.strategy:Yt;this.g={}}v(Bv,bv);Bv.prototype.ra=function(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c){var e=a[c],f=e.Z;f in this.g||(b.push(e),this.g[f]=!0)}Bv.H.ra.call(this,b)};
Bv.prototype.ud=function(a,b,c){var d=this.h;a=this.o(a,b);var e,f;e=0;for(f=a.length;e<f;++e){var g=a[e];Fm(d,g,function(a){return Ag(a.extent,g)},void 0)||(this.n.call(this,g,b,c),Im(d,g,{extent:g.slice()}))}};var Cv={terrain:{ua:"jpg",opaque:!0},"terrain-background":{ua:"jpg",opaque:!0},"terrain-labels":{ua:"png",opaque:!1},"terrain-lines":{ua:"png",opaque:!1},"toner-background":{ua:"png",opaque:!0},toner:{ua:"png",opaque:!0},"toner-hybrid":{ua:"png",opaque:!1},"toner-labels":{ua:"png",opaque:!1},"toner-lines":{ua:"png",opaque:!1},"toner-lite":{ua:"png",opaque:!0},watercolor:{ua:"jpg",opaque:!0}},Dv={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}};
function Ev(a){var b=a.layer.indexOf("-"),b=-1==b?a.layer:a.layer.slice(0,b),c=Cv[a.layer],d=rb?"https:":"http:";sv.call(this,{attributions:Fv,crossOrigin:"anonymous",maxZoom:Dv[b].maxZoom,opaque:c.opaque,tileLoadFunction:a.tileLoadFunction,url:s(a.url)?a.url:d+"//{a-d}.tile.stamen.com/"+a.layer+"/{z}/{x}/{y}."+c.ua})}v(Ev,sv);
var Fv=[new Rb({html:'Map tiles by \x3ca href\x3d"http://stamen.com/"\x3eStamen Design\x3c/a\x3e, under \x3ca href\x3d"http://creativecommons.org/licenses/by/3.0/"\x3eCC BY 3.0\x3c/a\x3e.'}),vv];function Gv(a,b){Xj.call(this,a,2);this.f=a;this.e=b.ia(a.a);this.c={}}v(Gv,Xj);Gv.prototype.b=function(a){a=s(a)?sa(a):-1;if(a in this.c)return this.c[a];var b=this.e,c=td(b,b);c.strokeStyle="black";c.strokeRect(0.5,0.5,b+0.5,b+0.5);c.fillStyle="black";c.textAlign="center";c.textBaseline="middle";c.font="24px sans-serif";c.fillText(this.f.toString(),b/2,b/2);return this.c[a]=c.canvas};
function Hv(a){Rk.call(this,{extent:a.extent,opaque:!1,projection:a.projection,tileGrid:a.tileGrid});this.b=new zu}v(Hv,Rk);Hv.prototype.yd=function(){return this.b.Ga()>this.b.d};Hv.prototype.Ge=function(a){Au(this.b,a)};Hv.prototype.Lb=function(a,b,c){var d=this.kb(a,b,c);if(Fn(this.b,d))return this.b.get(d);a=new Gv(new Lb(a,b,c),this.tileGrid);In(this.b,d,a);return a};function Iv(a){Bu.call(this,{crossOrigin:a.crossOrigin,projection:qh("EPSG:3857"),state:0,tileLoadFunction:a.tileLoadFunction});pu(new nu(a.url),void 0,xa(this.b,this))}v(Iv,Bu);
Iv.prototype.b=function(a){var b=qh("EPSG:4326"),c;if(s(a.bounds)){var d=$g(b,this.l);this.Q=c=Rg(a.bounds,d)}var e=a.minzoom||0,d=a.maxzoom||22,f=new Du({maxZoom:d,minZoom:e});this.tileGrid=f;this.tileUrlFunction=xu(f.c({extent:c}),uu(a.tiles));if(s(a.attribution)){b=s(c)?c:b.u();c={};for(var g;e<=d;++e)g=e.toString(),c[g]=[Nk(f,b,e)];this.f=[new Rb({html:a.attribution,tileRanges:c})]}zk(this,1)};function Jv(a){bv.call(this,{attributions:a.attributions,extent:a.extent,format:a.format,logo:a.logo,projection:a.projection});var b=a.tileGrid;this.n=a.tileGrid;this.g=wu;this.o=b.c({extent:a.extent});this.h={};s(a.tileUrlFunction)?(this.g=a.tileUrlFunction,this.k()):s(a.urls)?(this.g=uu(a.urls),this.k()):s(a.url)&&(this.g=uu(yu(a.url)),this.k())}v(Jv,bv);Jv.prototype.clear=function(){ic(this.h)};
Jv.prototype.Ec=function(a,b,c,d){var e=this.n,f=this.h;b=jg(e.a,b,0);a=Nk(e,a,b);for(var g,e=a.a;e<=a.d;++e)for(g=a.b;g<=a.c;++g){var h=f[b+"/"+e+"/"+g];if(s(h)){var m,n;m=0;for(n=h.length;m<n;++m){var p=c.call(d,h[m]);if(p)return p}}}};Jv.prototype.La=function(){var a=this.h,b=[],c;for(c in a)Eb(b,a[c]);return b};
Jv.prototype.ud=function(a,b,c){var d=this.o,e=this.n,f=this.g,g=this.h;b=jg(e.a,b,0);a=Nk(e,a,b);var e=new Lb(b,0,0),h,m;for(h=a.a;h<=a.d;++h)for(m=a.b;m<=a.c;++m){var n=b+"/"+h+"/"+m;if(!(n in g)){e.a=b;e.x=h;e.y=m;d(e,c,e);var p=f(e,1,c);s(p)&&(g[n]=[],cv(this,p,ya(function(a,b){g[a]=b;zk(this,1)},n),this))}}};function Kv(a){a=s(a)?a:{};var b=s(a.params)?a.params:{};Bu.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,opaque:!w(b,"TRANSPARENT",!0),projection:a.projection,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:xa(this.gh,this)});var c=a.urls;!s(c)&&s(a.url)&&(c=yu(a.url));this.n=c;this.g=s(a.gutter)?a.gutter:0;this.b=b;this.h=NaN;this.e=!0;this.p=a.serverType;this.A=s(a.hidpi)?a.hidpi:!0;this.o="";Lv(this);this.G=ug();Mv(this)}
v(Kv,Bu);l=Kv.prototype;
l.De=function(a,b,c,d){var e=this.h;if(!isNaN(this.h)){var f=this.tileGrid;null===f&&(f=Sk(this,c));b=Pk(f,a[0],a[1],b,!1,void 0);if(!(f.a.length<=b.a)){var g=f.da(b.a),h=Mk(f,b,this.G),f=f.ia(b.a),m=this.g;0!==m&&(f+=2*m,h=xg(h,g*m,h));1!=e&&(f=f*e+0.5|0);m={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:w(this.b,"LAYERS")};nc(m,this.b,d);d=Math.floor((h[3]-a[1])/(g/e));m[this.e?"I":"X"]=Math.floor((a[0]-h[0])/(g/e));m[this.e?"J":"Y"]=d;return Nv(this,
b,f,h,e,c,m)}}};l.Gc=k("g");l.kb=function(a,b,c){return this.o+Kv.H.kb.call(this,a,b,c)};l.Ee=k("b");
function Nv(a,b,c,d,e,f,g){var h=a.n;if(s(h)&&0!=h.length){g.WIDTH=c;g.HEIGHT=c;g[a.e?"CRS":"SRS"]=f.a;"STYLES"in a.b||(g.STYLES=new String(""));if(1!=e)switch(a.p){case "geoserver":g.FORMAT_OPTIONS="dpi:"+(90*e+0.5|0);break;case "mapserver":g.MAP_RESOLUTION=90*e;break;case "carmentaserver":case "qgis":g.DPI=90*e}c=f.e;a.e&&"ne"==c.substr(0,2)&&(c=d[0],d[0]=d[1],d[1]=c,c=d[2],d[2]=d[3],d[3]=c);g.BBOX=d.join(",");return fj(hj([1==h.length?h[0]:h[Yb((b.x<<b.a)+b.y,a.n.length)]],g))}}
l.lc=function(a,b,c){a=Kv.H.lc.call(this,a,b,c);return 1!=b&&this.A&&s(this.p)?a*b+0.5|0:a};l.he=k("n");function Lv(a){var b=0,c=[],d;for(d in a.b)c[b++]=d+"-"+a.b[d];a.o=c.join("/")}
l.gh=function(a,b,c){var d=this.tileGrid;null===d&&(d=Sk(this,c));if(!(d.a.length<=a.a)){1==b||this.A&&s(this.p)||(b=1);var e=d.da(a.a),f=Mk(d,a,this.G),d=d.ia(a.a),g=this.g;0!==g&&(d+=2*g,f=xg(f,e*g,f));e=this.u();if(null===e||Mg(f,e)&&!Qg(f,e))return 1!=b&&(d=d*b+0.5|0),e={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},nc(e,this.b),this.h=b,Nv(this,a,d,f,b,c,e)}};l.Fe=function(a){nc(this.b,a);Lv(this);Mv(this);this.k()};
function Mv(a){a.e=0<=Ka(w(a.b,"VERSION","1.3.0"),"1.3")};function Ov(a){a=s(a)?a:{};dv.call(this,{attributions:a.attributions,extent:a.extent,format:new Cr({defaultProjection:a.defaultProjection}),logo:a.logo,object:a.object,projection:a.projection,text:a.text,url:a.url})}v(Ov,dv);function Pv(a){this.d=a.matrixIds;Kk.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}v(Pv,Kk);Pv.prototype.i=k("d");
function Qv(a){var b=[],c=[],d=[],e=[],f=qh(a.supportedCRS).f();Hb(a.matrixIds,function(a,b){return b.scaleDenominator-a.scaleDenominator});wb(a.matrixIds,function(a){c.push(a.identifier);d.push(a.topLeftCorner);b.push(2.8E-4*a.scaleDenominator/f);e.push(a.tileWidth)});return new Pv({origins:d,resolutions:b,matrixIds:c,tileSizes:e})};var Rv="KVP";
function Sv(a){function b(a){a=e==Rv?fj(hj([a],g)):a.replace(/\{(\w+?)\}/g,function(a,b){return b in g?g[b]:a});return function(b){if(null!==b){var c={TileMatrix:f.d[b.a],TileCol:b.x,TileRow:b.y};nc(c,h);b=a;return b=e==Rv?fj(hj([b],c)):b.replace(/\{(\w+?)\}/g,function(a,b){return c[b]})}}}var c=s(a.version)?a.version:"1.0.0",d=s(a.format)?a.format:"image/jpeg";this.b=s(a.dimensions)?a.dimensions:{};this.g="";Tv(this);var e=s(a.requestEncoding)?a.requestEncoding:Rv,f=a.tileGrid,g={Layer:a.layer,style:a.style,
Style:a.style,TileMatrixSet:a.matrixSet};e==Rv&&nc(g,{Service:"WMTS",Request:"GetTile",Version:c,Format:d});var h=this.b,c=wu,d=a.urls;!s(d)&&s(a.url)&&(d=yu(a.url));s(d)&&(c=vu(xb(d,b)));var m=ug(),n=new Lb(0,0,0),c=xu(function(b,c){if(f.a.length<=b.a)return null;var d=b.x,e=-b.y-1,g=Mk(f,b),h=c.u(),y=s(a.extent)?a.extent:h;null!==y&&(c.l&&y[0]===h[0]&&y[2]===h[2])&&(g=Math.ceil(Kg(y)/Kg(g)),d=Yb(d,g),n.a=b.a,n.x=d,n.y=b.y,g=Mk(f,n,m));return!Mg(g,y)||Qg(g,y)?null:new Lb(b.a,d,e)},c);Bu.call(this,
{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,projection:a.projection,tileGrid:f,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:c})}v(Sv,Bu);Sv.prototype.e=k("b");Sv.prototype.kb=function(a,b,c){return this.g+Sv.H.kb.call(this,a,b,c)};function Tv(a){var b=0,c=[],d;for(d in a.b)c[b++]=d+"-"+a.b[d];a.g=c.join("/")}Sv.prototype.h=function(a){nc(this.b,a);Tv(this);this.k()};
function Uv(a,b){var c=zb(a.contents.layers,function(a){return a.identifier==b}),d=c.tileMatrixSetLinks[0].tileMatrixSet,e=c.formats[0],f=Ab(c.styles,function(a){return a.isDefault});0>f&&(f=0);var f=c.styles[f].identifier,g={};wb(c.dimensions,function(a){var b=a.identifier,c=a["default"];s(c)||(c=a.values[0]);g[b]=c});var h=a.contents.tileMatrixSets[d],m=Qv(h),h=qh(h.supportedCRS),n=a.operationsMetadata.GetTile.dcp.http.get,p,q;switch(gc(n[0].constraints.GetEncoding.allowedValues)[0]){case "REST":case "RESTful":q=
"REST";p=c.resourceUrls.tile[e];break;case "KVP":q=Rv,p=[],wb(n,function(a){a.constraints.GetEncoding.allowedValues.hasOwnProperty(Rv)&&p.push(a.url)})}return{urls:p,layer:b,matrixSet:d,format:e,projection:h,requestEncoding:q,tileGrid:m,style:f,dimensions:g}};function Vv(a){var b=s(a)?a:b;Kk.call(this,{origin:[0,0],resolutions:b.resolutions})}v(Vv,Kk);Vv.prototype.c=function(a){a=s(a)?a:{};var b=this.minZoom,c=this.maxZoom,d=new Lb(0,0,0),e=null;if(s(a.extent)){var e=Array(c+1),f;for(f=0;f<=c;++f)e[f]=f<b?null:Nk(this,a.extent,f)}return function(a,f,m){f=a.a;if(f<b||c<f)return null;var n=Math.pow(2,f),p=a.x;if(0>p||n<=p)return null;a=a.y;return a<-n||-1<a||null!==e&&(d.a=f,d.x=p,d.y=-a-1,!e[f].contains(d))?null:Mb(f,p,-a-1,m)}};function Wv(a){a=s(a)?a:{};var b=a.size,c=b[0],d=b[1],e=[],f=256;switch(s(a.tierSizeCalculation)?a.tierSizeCalculation:"default"){case "default":for(;c>f||d>f;)e.push([Math.ceil(c/f),Math.ceil(d/f)]),f+=f;break;case "truncated":for(;c>f||d>f;)e.push([Math.ceil(c/f),Math.ceil(d/f)]),c>>=1,d>>=1}e.push([1,1]);e.reverse();for(var f=[1],g=[0],d=1,c=e.length;d<c;d++)f.push(1<<d),g.push(e[d-1][0]*e[d-1][1]+g[d-1]);f.reverse();var f=new Vv({resolutions:f}),h=a.url,b=xu(f.c({extent:[0,0,b[0],b[1]]}),function(a){return null===
a?void 0:h+"TileGroup"+((a.x+a.y*e[a.a][0]+g[a.a])/256|0)+"/"+a.a+"-"+a.x+"-"+a.y+".jpg"});Bu.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,tileClass:Xv,tileGrid:f,tileUrlFunction:b})}v(Wv,Bu);function Xv(a,b,c,d,e){bo.call(this,a,b,c,d,e);this.g={}}v(Xv,bo);
Xv.prototype.b=function(a){var b=s(a)?sa(a).toString():"";if(b in this.g)return this.g[b];a=Xv.H.b.call(this,a);if(2==this.state){if(256==a.width&&256==a.height)return this.g[b]=a;var c=td(256,256);c.drawImage(a,0,0);return this.g[b]=c.canvas}return a};function Yv(a){a=s(a)?a:{};this.a=a.font;this.b=a.rotation;this.d=a.scale;this.f=a.text;this.g=a.textAlign;this.i=a.textBaseline;this.c=s(a.fill)?a.fill:null;this.e=s(a.stroke)?a.stroke:null;this.h=s(a.offsetX)?a.offsetX:0;this.l=s(a.offsetY)?a.offsetY:0}l=Yv.prototype;l.xf=k("a");l.sh=k("c");l.th=k("b");l.uh=k("d");l.vh=k("e");l.wh=k("f");l.Gf=k("g");l.Hf=k("i");t("ol.Attribution",Rb);t("ol.BrowserFeature.DEVICE_PIXEL_RATIO",Ad);t("ol.BrowserFeature.HAS_CANVAS",Dd);t("ol.BrowserFeature.HAS_DEVICE_ORIENTATION",Ed);t("ol.BrowserFeature.HAS_GEOLOCATION",Fd);t("ol.BrowserFeature.HAS_TOUCH",Hd);t("ol.Collection",D);D.prototype.bindTo=D.prototype.X;D.prototype.clear=D.prototype.clear;D.prototype.dispatchChangeEvent=D.prototype.k;D.prototype.extend=D.prototype.Gg;D.prototype.forEach=D.prototype.forEach;D.prototype.get=D.prototype.get;D.prototype.getArray=D.prototype.Hg;
D.prototype.getAt=D.prototype.Zd;D.prototype.getKeys=D.prototype.O;D.prototype.getLength=D.prototype.Ab;D.prototype.getProperties=D.prototype.T;D.prototype.insertAt=D.prototype.Nc;D.prototype.notify=D.prototype.U;D.prototype.on=D.prototype.q;D.prototype.once=D.prototype.r;D.prototype.pop=D.prototype.pop;D.prototype.push=D.prototype.push;D.prototype.remove=D.prototype.remove;D.prototype.removeAt=D.prototype.Wc;D.prototype.set=D.prototype.w;D.prototype.setAt=D.prototype.$h;D.prototype.setValues=D.prototype.I;
D.prototype.un=D.prototype.s;D.prototype.unByKey=D.prototype.t;D.prototype.unbind=D.prototype.V;D.prototype.unbindAll=D.prototype.Y;t("ol.DeviceOrientation",F);F.prototype.bindTo=F.prototype.X;F.prototype.dispatchChangeEvent=F.prototype.k;F.prototype.get=F.prototype.get;F.prototype.getAlpha=F.prototype.e;F.prototype.getBeta=F.prototype.f;F.prototype.getGamma=F.prototype.g;F.prototype.getHeading=F.prototype.i;F.prototype.getKeys=F.prototype.O;F.prototype.getProperties=F.prototype.T;
F.prototype.getTracking=F.prototype.d;F.prototype.notify=F.prototype.U;F.prototype.on=F.prototype.q;F.prototype.once=F.prototype.r;F.prototype.set=F.prototype.w;F.prototype.setTracking=F.prototype.b;F.prototype.setValues=F.prototype.I;F.prototype.un=F.prototype.s;F.prototype.unByKey=F.prototype.t;F.prototype.unbind=F.prototype.V;F.prototype.unbindAll=F.prototype.Y;t("ol.Feature",H);H.prototype.bindTo=H.prototype.X;H.prototype.dispatchChangeEvent=H.prototype.k;H.prototype.get=H.prototype.get;
H.prototype.getGeometry=H.prototype.M;H.prototype.getGeometry=H.prototype.M;H.prototype.getGeometryName=H.prototype.ae;H.prototype.getGeometryName=H.prototype.ae;H.prototype.getId=H.prototype.be;H.prototype.getId=H.prototype.be;H.prototype.getKeys=H.prototype.O;H.prototype.getProperties=H.prototype.T;H.prototype.getStyle=H.prototype.te;H.prototype.getStyle=H.prototype.te;H.prototype.getStyleFunction=H.prototype.ue;H.prototype.getStyleFunction=H.prototype.ue;H.prototype.notify=H.prototype.U;
H.prototype.on=H.prototype.q;H.prototype.once=H.prototype.r;H.prototype.set=H.prototype.w;H.prototype.setGeometry=H.prototype.fb;H.prototype.setGeometry=H.prototype.fb;H.prototype.setGeometryName=H.prototype.g;H.prototype.setGeometryName=H.prototype.g;H.prototype.setId=H.prototype.b;H.prototype.setId=H.prototype.b;H.prototype.setStyle=H.prototype.f;H.prototype.setStyle=H.prototype.f;H.prototype.setValues=H.prototype.I;H.prototype.un=H.prototype.s;H.prototype.unByKey=H.prototype.t;
H.prototype.unbind=H.prototype.V;H.prototype.unbindAll=H.prototype.Y;t("ol.FeatureOverlay",Vi);Vi.prototype.addFeature=Vi.prototype.re;Vi.prototype.getFeatures=Vi.prototype.Ig;Vi.prototype.getStyle=Vi.prototype.Jg;Vi.prototype.getStyleFunction=Vi.prototype.Kg;Vi.prototype.removeFeature=Vi.prototype.Tc;Vi.prototype.setFeatures=Vi.prototype.uc;Vi.prototype.setMap=Vi.prototype.setMap;Vi.prototype.setStyle=Vi.prototype.Mg;t("ol.Geolocation",U);U.prototype.bindTo=U.prototype.X;
U.prototype.dispatchChangeEvent=U.prototype.k;U.prototype.get=U.prototype.get;U.prototype.getAccuracy=U.prototype.Yd;U.prototype.getAccuracyGeometry=U.prototype.n;U.prototype.getAltitude=U.prototype.o;U.prototype.getAltitudeAccuracy=U.prototype.v;U.prototype.getHeading=U.prototype.B;U.prototype.getKeys=U.prototype.O;U.prototype.getPosition=U.prototype.G;U.prototype.getProjection=U.prototype.g;U.prototype.getProperties=U.prototype.T;U.prototype.getSpeed=U.prototype.A;U.prototype.getTracking=U.prototype.i;
U.prototype.getTrackingOptions=U.prototype.f;U.prototype.notify=U.prototype.U;U.prototype.on=U.prototype.q;U.prototype.once=U.prototype.r;U.prototype.set=U.prototype.w;U.prototype.setProjection=U.prototype.h;U.prototype.setTracking=U.prototype.e;U.prototype.setTrackingOptions=U.prototype.l;U.prototype.setValues=U.prototype.I;U.prototype.un=U.prototype.s;U.prototype.unByKey=U.prototype.t;U.prototype.unbind=U.prototype.V;U.prototype.unbindAll=U.prototype.Y;bo.prototype.getImage=bo.prototype.b;
bo.prototype.getTileCoord=bo.prototype.i;t("ol.Kinetic",lk);t("ol.Map",T);T.prototype.addControl=T.prototype.hf;T.prototype.addInteraction=T.prototype.jf;T.prototype.addLayer=T.prototype.kf;T.prototype.addOverlay=T.prototype.lf;T.prototype.beforeRender=T.prototype.sa;T.prototype.bindTo=T.prototype.X;T.prototype.dispatchChangeEvent=T.prototype.k;T.prototype.forEachFeatureAtPixel=T.prototype.wd;T.prototype.get=T.prototype.get;T.prototype.getControls=T.prototype.wf;
T.prototype.getCoordinateFromPixel=T.prototype.wa;T.prototype.getEventCoordinate=T.prototype.$d;T.prototype.getEventPixel=T.prototype.md;T.prototype.getInteractions=T.prototype.zf;T.prototype.getKeys=T.prototype.O;T.prototype.getLayerGroup=T.prototype.lb;T.prototype.getLayers=T.prototype.ef;T.prototype.getOverlays=T.prototype.Ff;T.prototype.getPixelFromCoordinate=T.prototype.f;T.prototype.getProperties=T.prototype.T;T.prototype.getSize=T.prototype.e;T.prototype.getTarget=T.prototype.pc;
T.prototype.getView=T.prototype.a;T.prototype.getViewport=T.prototype.Jf;T.prototype.notify=T.prototype.U;T.prototype.on=T.prototype.q;T.prototype.once=T.prototype.r;T.prototype.removeControl=T.prototype.Rh;T.prototype.removeInteraction=T.prototype.Th;T.prototype.removeLayer=T.prototype.Uh;T.prototype.removeOverlay=T.prototype.Vh;T.prototype.render=T.prototype.R;T.prototype.renderSync=T.prototype.Xh;T.prototype.set=T.prototype.w;T.prototype.setLayerGroup=T.prototype.Ve;T.prototype.setSize=T.prototype.B;
T.prototype.setTarget=T.prototype.qa;T.prototype.setValues=T.prototype.I;T.prototype.setView=T.prototype.Pa;T.prototype.un=T.prototype.s;T.prototype.unByKey=T.prototype.t;T.prototype.unbind=T.prototype.V;T.prototype.unbindAll=T.prototype.Y;T.prototype.updateSize=T.prototype.G;Nf.prototype.preventDefault=Nf.prototype.preventDefault;Nf.prototype.stopPropagation=Nf.prototype.Ia;Of.prototype.preventDefault=Of.prototype.preventDefault;Of.prototype.stopPropagation=Of.prototype.Ia;t("ol.Object",Me);
Me.prototype.bindTo=Me.prototype.X;Me.prototype.dispatchChangeEvent=Me.prototype.k;Me.prototype.get=Me.prototype.get;Me.prototype.getKeys=Me.prototype.O;Me.prototype.getProperties=Me.prototype.T;Me.prototype.notify=Me.prototype.U;Me.prototype.on=Me.prototype.q;Me.prototype.once=Me.prototype.r;Me.prototype.set=Me.prototype.w;Me.prototype.setValues=Me.prototype.I;Me.prototype.un=Me.prototype.s;Me.prototype.unByKey=Me.prototype.t;Me.prototype.unbind=Me.prototype.V;Me.prototype.unbindAll=Me.prototype.Y;
t("ol.Observable",Je);Je.prototype.dispatchChangeEvent=Je.prototype.k;Je.prototype.on=Je.prototype.q;Je.prototype.once=Je.prototype.r;Je.prototype.un=Je.prototype.s;Je.prototype.unByKey=Je.prototype.t;t("ol.Overlay",V);V.prototype.bindTo=V.prototype.X;V.prototype.dispatchChangeEvent=V.prototype.k;V.prototype.get=V.prototype.get;V.prototype.getElement=V.prototype.g;V.prototype.getKeys=V.prototype.O;V.prototype.getMap=V.prototype.e;V.prototype.getPosition=V.prototype.i;V.prototype.getPositioning=V.prototype.f;
V.prototype.getProperties=V.prototype.T;V.prototype.notify=V.prototype.U;V.prototype.on=V.prototype.q;V.prototype.once=V.prototype.r;V.prototype.set=V.prototype.w;V.prototype.setElement=V.prototype.Fd;V.prototype.setMap=V.prototype.setMap;V.prototype.setPosition=V.prototype.h;V.prototype.setPositioning=V.prototype.l;V.prototype.setValues=V.prototype.I;V.prototype.un=V.prototype.s;V.prototype.unByKey=V.prototype.t;V.prototype.unbind=V.prototype.V;V.prototype.unbindAll=V.prototype.Y;
Xj.prototype.getTileCoord=Xj.prototype.i;Lb.prototype.getZXY=Lb.prototype.c;rg.prototype.dispatchChangeEvent=rg.prototype.k;rg.prototype.on=rg.prototype.q;rg.prototype.once=rg.prototype.r;rg.prototype.un=rg.prototype.s;rg.prototype.unByKey=rg.prototype.t;t("ol.View2D",G);G.prototype.calculateExtent=G.prototype.v;G.prototype.centerOn=G.prototype.pf;G.prototype.constrainResolution=G.prototype.constrainResolution;G.prototype.constrainRotation=G.prototype.constrainRotation;
G.prototype.dispatchChangeEvent=G.prototype.k;G.prototype.fitExtent=G.prototype.Xd;G.prototype.fitGeometry=G.prototype.uf;G.prototype.getCenter=G.prototype.a;G.prototype.getProjection=G.prototype.i;G.prototype.getResolution=G.prototype.b;G.prototype.getRotation=G.prototype.e;G.prototype.getView2D=G.prototype.W;G.prototype.getZoom=G.prototype.Lf;G.prototype.on=G.prototype.q;G.prototype.once=G.prototype.r;G.prototype.rotate=G.prototype.rotate;G.prototype.setCenter=G.prototype.ya;
G.prototype.setProjection=G.prototype.o;G.prototype.setResolution=G.prototype.d;G.prototype.setRotation=G.prototype.l;G.prototype.setZoom=G.prototype.A;G.prototype.un=G.prototype.s;G.prototype.unByKey=G.prototype.t;
t("ol.animation.bounce",function(a){var b=a.resolution,c=s(a.start)?a.start:za(),d=s(a.duration)?a.duration:1E3,e=s(a.easing)?a.easing:Ah;return function(a,g){if(g.time<c)return g.animate=!0,g.viewHints[0]+=1,!0;if(g.time<c+d){var h=e((g.time-c)/d),m=b-g.view2DState.resolution;g.animate=!0;g.view2DState.resolution+=h*m;g.viewHints[0]+=1;return!0}return!1}});t("ol.animation.pan",Bh);t("ol.animation.rotate",Ch);t("ol.animation.zoom",Dh);t("ol.color.asArray",function(a){return ja(a)?a:Hi(a)});
t("ol.color.asString",Fi);t("ol.control.Attribution",gk);gk.prototype.bindTo=gk.prototype.X;gk.prototype.dispatchChangeEvent=gk.prototype.k;gk.prototype.get=gk.prototype.get;gk.prototype.getKeys=gk.prototype.O;gk.prototype.getMap=gk.prototype.a;gk.prototype.getMap=gk.prototype.a;gk.prototype.getProperties=gk.prototype.T;gk.prototype.notify=gk.prototype.U;gk.prototype.on=gk.prototype.q;gk.prototype.once=gk.prototype.r;gk.prototype.set=gk.prototype.w;gk.prototype.setMap=gk.prototype.setMap;
gk.prototype.setMap=gk.prototype.setMap;gk.prototype.setValues=gk.prototype.I;gk.prototype.un=gk.prototype.s;gk.prototype.unByKey=gk.prototype.t;gk.prototype.unbind=gk.prototype.V;gk.prototype.unbindAll=gk.prototype.Y;t("ol.control.Control",fk);fk.prototype.bindTo=fk.prototype.X;fk.prototype.dispatchChangeEvent=fk.prototype.k;fk.prototype.get=fk.prototype.get;fk.prototype.getKeys=fk.prototype.O;fk.prototype.getMap=fk.prototype.a;fk.prototype.getMap=fk.prototype.a;fk.prototype.getProperties=fk.prototype.T;
fk.prototype.notify=fk.prototype.U;fk.prototype.on=fk.prototype.q;fk.prototype.once=fk.prototype.r;fk.prototype.set=fk.prototype.w;fk.prototype.setMap=fk.prototype.setMap;fk.prototype.setMap=fk.prototype.setMap;fk.prototype.setValues=fk.prototype.I;fk.prototype.un=fk.prototype.s;fk.prototype.unByKey=fk.prototype.t;fk.prototype.unbind=fk.prototype.V;fk.prototype.unbindAll=fk.prototype.Y;t("ol.control.FullScreen",io);io.prototype.bindTo=io.prototype.X;io.prototype.dispatchChangeEvent=io.prototype.k;
io.prototype.get=io.prototype.get;io.prototype.getKeys=io.prototype.O;io.prototype.getMap=io.prototype.a;io.prototype.getMap=io.prototype.a;io.prototype.getProperties=io.prototype.T;io.prototype.notify=io.prototype.U;io.prototype.on=io.prototype.q;io.prototype.once=io.prototype.r;io.prototype.set=io.prototype.w;io.prototype.setMap=io.prototype.setMap;io.prototype.setMap=io.prototype.setMap;io.prototype.setValues=io.prototype.I;io.prototype.un=io.prototype.s;io.prototype.unByKey=io.prototype.t;
io.prototype.unbind=io.prototype.V;io.prototype.unbindAll=io.prototype.Y;t("ol.control.Logo",hk);hk.prototype.bindTo=hk.prototype.X;hk.prototype.dispatchChangeEvent=hk.prototype.k;hk.prototype.get=hk.prototype.get;hk.prototype.getKeys=hk.prototype.O;hk.prototype.getMap=hk.prototype.a;hk.prototype.getMap=hk.prototype.a;hk.prototype.getProperties=hk.prototype.T;hk.prototype.notify=hk.prototype.U;hk.prototype.on=hk.prototype.q;hk.prototype.once=hk.prototype.r;hk.prototype.set=hk.prototype.w;
hk.prototype.setMap=hk.prototype.setMap;hk.prototype.setMap=hk.prototype.setMap;hk.prototype.setValues=hk.prototype.I;hk.prototype.un=hk.prototype.s;hk.prototype.unByKey=hk.prototype.t;hk.prototype.unbind=hk.prototype.V;hk.prototype.unbindAll=hk.prototype.Y;t("ol.control.MousePosition",jo);jo.prototype.bindTo=jo.prototype.X;jo.prototype.dispatchChangeEvent=jo.prototype.k;jo.prototype.get=jo.prototype.get;jo.prototype.getCoordinateFormat=jo.prototype.h;jo.prototype.getKeys=jo.prototype.O;
jo.prototype.getMap=jo.prototype.a;jo.prototype.getMap=jo.prototype.a;jo.prototype.getProjection=jo.prototype.n;jo.prototype.getProperties=jo.prototype.T;jo.prototype.notify=jo.prototype.U;jo.prototype.on=jo.prototype.q;jo.prototype.once=jo.prototype.r;jo.prototype.set=jo.prototype.w;jo.prototype.setCoordinateFormat=jo.prototype.v;jo.prototype.setMap=jo.prototype.setMap;jo.prototype.setProjection=jo.prototype.o;jo.prototype.setValues=jo.prototype.I;jo.prototype.un=jo.prototype.s;
jo.prototype.unByKey=jo.prototype.t;jo.prototype.unbind=jo.prototype.V;jo.prototype.unbindAll=jo.prototype.Y;t("ol.control.Rotate",ik);ik.prototype.bindTo=ik.prototype.X;ik.prototype.dispatchChangeEvent=ik.prototype.k;ik.prototype.get=ik.prototype.get;ik.prototype.getKeys=ik.prototype.O;ik.prototype.getMap=ik.prototype.a;ik.prototype.getMap=ik.prototype.a;ik.prototype.getProperties=ik.prototype.T;ik.prototype.notify=ik.prototype.U;ik.prototype.on=ik.prototype.q;ik.prototype.once=ik.prototype.r;
ik.prototype.set=ik.prototype.w;ik.prototype.setMap=ik.prototype.setMap;ik.prototype.setMap=ik.prototype.setMap;ik.prototype.setValues=ik.prototype.I;ik.prototype.un=ik.prototype.s;ik.prototype.unByKey=ik.prototype.t;ik.prototype.unbind=ik.prototype.V;ik.prototype.unbindAll=ik.prototype.Y;t("ol.control.ScaleLine",lo);lo.prototype.bindTo=lo.prototype.X;lo.prototype.dispatchChangeEvent=lo.prototype.k;lo.prototype.get=lo.prototype.get;lo.prototype.getKeys=lo.prototype.O;lo.prototype.getMap=lo.prototype.a;
lo.prototype.getMap=lo.prototype.a;lo.prototype.getProperties=lo.prototype.T;lo.prototype.getUnits=lo.prototype.n;lo.prototype.notify=lo.prototype.U;lo.prototype.on=lo.prototype.q;lo.prototype.once=lo.prototype.r;lo.prototype.set=lo.prototype.w;lo.prototype.setMap=lo.prototype.setMap;lo.prototype.setMap=lo.prototype.setMap;lo.prototype.setUnits=lo.prototype.o;lo.prototype.setValues=lo.prototype.I;lo.prototype.un=lo.prototype.s;lo.prototype.unByKey=lo.prototype.t;lo.prototype.unbind=lo.prototype.V;
lo.prototype.unbindAll=lo.prototype.Y;t("ol.control.Zoom",jk);jk.prototype.bindTo=jk.prototype.X;jk.prototype.dispatchChangeEvent=jk.prototype.k;jk.prototype.get=jk.prototype.get;jk.prototype.getKeys=jk.prototype.O;jk.prototype.getMap=jk.prototype.a;jk.prototype.getMap=jk.prototype.a;jk.prototype.getProperties=jk.prototype.T;jk.prototype.notify=jk.prototype.U;jk.prototype.on=jk.prototype.q;jk.prototype.once=jk.prototype.r;jk.prototype.set=jk.prototype.w;jk.prototype.setMap=jk.prototype.setMap;
jk.prototype.setMap=jk.prototype.setMap;jk.prototype.setValues=jk.prototype.I;jk.prototype.un=jk.prototype.s;jk.prototype.unByKey=jk.prototype.t;jk.prototype.unbind=jk.prototype.V;jk.prototype.unbindAll=jk.prototype.Y;t("ol.control.ZoomSlider",Ao);Ao.prototype.bindTo=Ao.prototype.X;Ao.prototype.dispatchChangeEvent=Ao.prototype.k;Ao.prototype.get=Ao.prototype.get;Ao.prototype.getKeys=Ao.prototype.O;Ao.prototype.getMap=Ao.prototype.a;Ao.prototype.getMap=Ao.prototype.a;Ao.prototype.getProperties=Ao.prototype.T;
Ao.prototype.notify=Ao.prototype.U;Ao.prototype.on=Ao.prototype.q;Ao.prototype.once=Ao.prototype.r;Ao.prototype.set=Ao.prototype.w;Ao.prototype.setValues=Ao.prototype.I;Ao.prototype.un=Ao.prototype.s;Ao.prototype.unByKey=Ao.prototype.t;Ao.prototype.unbind=Ao.prototype.V;Ao.prototype.unbindAll=Ao.prototype.Y;t("ol.control.ZoomToExtent",Eo);Eo.prototype.bindTo=Eo.prototype.X;Eo.prototype.dispatchChangeEvent=Eo.prototype.k;Eo.prototype.get=Eo.prototype.get;Eo.prototype.getKeys=Eo.prototype.O;
Eo.prototype.getMap=Eo.prototype.a;Eo.prototype.getMap=Eo.prototype.a;Eo.prototype.getProperties=Eo.prototype.T;Eo.prototype.notify=Eo.prototype.U;Eo.prototype.on=Eo.prototype.q;Eo.prototype.once=Eo.prototype.r;Eo.prototype.set=Eo.prototype.w;Eo.prototype.setMap=Eo.prototype.setMap;Eo.prototype.setMap=Eo.prototype.setMap;Eo.prototype.setValues=Eo.prototype.I;Eo.prototype.un=Eo.prototype.s;Eo.prototype.unByKey=Eo.prototype.t;Eo.prototype.unbind=Eo.prototype.V;Eo.prototype.unbindAll=Eo.prototype.Y;
t("ol.control.defaults",kk);t("ol.coordinate.add",We);t("ol.coordinate.createStringXY",function(a){return function(b){return cf(b,a)}});t("ol.coordinate.format",Ze);t("ol.coordinate.fromProjectedArray",function(a,b){var c=b.charAt(0);return"n"===c||"s"===c?[a[1],a[0]]:a});t("ol.coordinate.rotate",af);t("ol.coordinate.toStringHDMS",function(a){return s(a)?Ye(a[1],"NS")+" "+Ye(a[0],"EW"):""});t("ol.coordinate.toStringXY",cf);t("ol.dom.Input",Fo);Fo.prototype.bindTo=Fo.prototype.X;
Fo.prototype.dispatchChangeEvent=Fo.prototype.k;Fo.prototype.get=Fo.prototype.get;Fo.prototype.getChecked=Fo.prototype.b;Fo.prototype.getKeys=Fo.prototype.O;Fo.prototype.getProperties=Fo.prototype.T;Fo.prototype.getValue=Fo.prototype.d;Fo.prototype.notify=Fo.prototype.U;Fo.prototype.on=Fo.prototype.q;Fo.prototype.once=Fo.prototype.r;Fo.prototype.set=Fo.prototype.w;Fo.prototype.setChecked=Fo.prototype.e;Fo.prototype.setValue=Fo.prototype.f;Fo.prototype.setValues=Fo.prototype.I;Fo.prototype.un=Fo.prototype.s;
Fo.prototype.unByKey=Fo.prototype.t;Fo.prototype.unbind=Fo.prototype.V;Fo.prototype.unbindAll=Fo.prototype.Y;t("ol.easing.bounce",function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a});t("ol.easing.easeIn",function(a){return a*a*a});t("ol.easing.easeOut",xh);t("ol.easing.elastic",function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1});t("ol.easing.inAndOut",yh);
t("ol.easing.linear",zh);t("ol.easing.upAndDown",Ah);t("ol.events.condition.altKeyOnly",function(a){a=a.a;return a.ma&&!a.Sb&&!a.Za});t("ol.events.condition.altShiftKeysOnly",ag);t("ol.events.condition.always",Ae);t("ol.events.condition.never",ze);t("ol.events.condition.noModifierKeys",cg);t("ol.events.condition.platformModifierKeyOnly",function(a){a=a.a;return!a.ma&&a.Sb&&!a.Za});t("ol.events.condition.shiftKeyOnly",dg);t("ol.events.condition.targetNotEditable",eg);t("ol.extent.applyTransform",Rg);
t("ol.extent.boundingExtent",tg);t("ol.extent.buffer",xg);t("ol.extent.containsCoordinate",function(a,b){return a[0]<=b[0]&&b[0]<=a[2]&&a[1]<=b[1]&&b[1]<=a[3]});t("ol.extent.containsExtent",Ag);t("ol.extent.createEmpty",ug);t("ol.extent.equals",Cg);t("ol.extent.extend",Dg);t("ol.extent.getBottomLeft",Fg);t("ol.extent.getBottomRight",function(a){return[a[2],a[1]]});t("ol.extent.getCenter",Gg);t("ol.extent.getHeight",Ig);t("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]});
t("ol.extent.getTopLeft",Jg);t("ol.extent.getTopRight",function(a){return[a[2],a[3]]});t("ol.extent.getWidth",Kg);t("ol.extent.intersects",Mg);t("ol.extent.isEmpty",Ng);t("ol.format.GPX",Kp);Kp.prototype.readFeature=Kp.prototype.Ub;Kp.prototype.readFeatures=Kp.prototype.bb;Kp.prototype.readProjection=Kp.prototype.Aa;Kp.prototype.writeFeatures=Kp.prototype.ad;t("ol.format.GeoJSON",sq);sq.prototype.readFeature=sq.prototype.Ub;sq.prototype.readFeatures=sq.prototype.bb;sq.prototype.readGeometry=sq.prototype.Cd;
sq.prototype.readProjection=sq.prototype.Aa;sq.prototype.writeFeature=sq.prototype.Ld;sq.prototype.writeFeatures=sq.prototype.ad;t("ol.format.IGC",Bq);Bq.prototype.readFeature=Bq.prototype.Ub;Bq.prototype.readFeatures=Bq.prototype.bb;Bq.prototype.readProjection=Bq.prototype.Aa;t("ol.format.KML",Fq);Fq.prototype.readFeature=Fq.prototype.Ub;Fq.prototype.readFeatures=Fq.prototype.bb;Fq.prototype.readProjection=Fq.prototype.Aa;t("ol.format.OSMXML",wr);t("ol.format.TopoJSON",Cr);
Cr.prototype.readFeatures=Cr.prototype.bb;Cr.prototype.readProjection=Cr.prototype.Aa;t("ol.format.WFS",Ks);Ks.prototype.readFeatureCollectionMetadata=Ks.prototype.d;Ks.prototype.readTransactionResponse=Ks.prototype.f;Ks.prototype.writeGetFeature=Ks.prototype.g;Ks.prototype.writeTransaction=Ks.prototype.i;t("ol.format.WMSCapabilities",at);at.prototype.read=at.prototype.a;t("ol.geom.Circle",dm);dm.prototype.clone=dm.prototype.L;dm.prototype.dispatchChangeEvent=dm.prototype.k;
dm.prototype.getCenter=dm.prototype.xd;dm.prototype.getClosestPoint=dm.prototype.e;dm.prototype.getExtent=dm.prototype.u;dm.prototype.getFirstCoordinate=dm.prototype.Va;dm.prototype.getLastCoordinate=dm.prototype.Wa;dm.prototype.getLayout=dm.prototype.Xa;dm.prototype.getRadius=dm.prototype.we;dm.prototype.getSimplifiedGeometry=dm.prototype.ha;dm.prototype.getType=dm.prototype.D;dm.prototype.on=dm.prototype.q;dm.prototype.once=dm.prototype.r;dm.prototype.setCenter=dm.prototype.Rg;
dm.prototype.setCenterAndRadius=dm.prototype.Te;dm.prototype.setRadius=dm.prototype.ai;dm.prototype.transform=dm.prototype.transform;dm.prototype.un=dm.prototype.s;dm.prototype.unByKey=dm.prototype.t;t("ol.geom.Geometry",Kh);Kh.prototype.applyTransform=Kh.prototype.tb;Kh.prototype.dispatchChangeEvent=Kh.prototype.k;Kh.prototype.getClosestPoint=Kh.prototype.e;Kh.prototype.getExtent=Kh.prototype.u;Kh.prototype.on=Kh.prototype.q;Kh.prototype.once=Kh.prototype.r;Kh.prototype.transform=Kh.prototype.transform;
Kh.prototype.un=Kh.prototype.s;Kh.prototype.unByKey=Kh.prototype.t;t("ol.geom.GeometryCollection",fm);fm.prototype.clone=fm.prototype.L;fm.prototype.dispatchChangeEvent=fm.prototype.k;fm.prototype.getClosestPoint=fm.prototype.e;fm.prototype.getExtent=fm.prototype.u;fm.prototype.getGeometries=fm.prototype.yf;fm.prototype.getSimplifiedGeometry=fm.prototype.ha;fm.prototype.getType=fm.prototype.D;fm.prototype.on=fm.prototype.q;fm.prototype.once=fm.prototype.r;fm.prototype.setGeometries=fm.prototype.Ue;
fm.prototype.transform=fm.prototype.transform;fm.prototype.un=fm.prototype.s;fm.prototype.unByKey=fm.prototype.t;t("ol.geom.LineString",P);P.prototype.appendCoordinate=P.prototype.Md;P.prototype.appendCoordinate=P.prototype.Md;P.prototype.clone=P.prototype.L;P.prototype.clone=P.prototype.L;P.prototype.dispatchChangeEvent=P.prototype.k;P.prototype.getClosestPoint=P.prototype.e;P.prototype.getCoordinateAtM=P.prototype.xe;P.prototype.getCoordinateAtM=P.prototype.xe;P.prototype.getCoordinates=P.prototype.C;
P.prototype.getCoordinates=P.prototype.C;P.prototype.getExtent=P.prototype.u;P.prototype.getFirstCoordinate=P.prototype.Va;P.prototype.getLastCoordinate=P.prototype.Wa;P.prototype.getLayout=P.prototype.Xa;P.prototype.getLength=P.prototype.ye;P.prototype.getLength=P.prototype.ye;P.prototype.getSimplifiedGeometry=P.prototype.ha;P.prototype.getType=P.prototype.D;P.prototype.getType=P.prototype.D;P.prototype.on=P.prototype.q;P.prototype.once=P.prototype.r;P.prototype.setCoordinates=P.prototype.J;
P.prototype.setCoordinates=P.prototype.J;P.prototype.transform=P.prototype.transform;P.prototype.un=P.prototype.s;P.prototype.unByKey=P.prototype.t;t("ol.geom.LinearRing",gi);gi.prototype.clone=gi.prototype.L;gi.prototype.clone=gi.prototype.L;gi.prototype.dispatchChangeEvent=gi.prototype.k;gi.prototype.getArea=gi.prototype.ze;gi.prototype.getArea=gi.prototype.ze;gi.prototype.getClosestPoint=gi.prototype.e;gi.prototype.getCoordinates=gi.prototype.C;gi.prototype.getCoordinates=gi.prototype.C;
gi.prototype.getExtent=gi.prototype.u;gi.prototype.getFirstCoordinate=gi.prototype.Va;gi.prototype.getLastCoordinate=gi.prototype.Wa;gi.prototype.getLayout=gi.prototype.Xa;gi.prototype.getSimplifiedGeometry=gi.prototype.ha;gi.prototype.getType=gi.prototype.D;gi.prototype.getType=gi.prototype.D;gi.prototype.on=gi.prototype.q;gi.prototype.once=gi.prototype.r;gi.prototype.setCoordinates=gi.prototype.J;gi.prototype.setCoordinates=gi.prototype.J;gi.prototype.transform=gi.prototype.transform;
gi.prototype.un=gi.prototype.s;gi.prototype.unByKey=gi.prototype.t;t("ol.geom.MultiLineString",Q);Q.prototype.appendLineString=Q.prototype.Nd;Q.prototype.appendLineString=Q.prototype.Nd;Q.prototype.clone=Q.prototype.L;Q.prototype.clone=Q.prototype.L;Q.prototype.dispatchChangeEvent=Q.prototype.k;Q.prototype.getClosestPoint=Q.prototype.e;Q.prototype.getCoordinateAtM=Q.prototype.Ae;Q.prototype.getCoordinateAtM=Q.prototype.Ae;Q.prototype.getCoordinates=Q.prototype.C;Q.prototype.getCoordinates=Q.prototype.C;
Q.prototype.getExtent=Q.prototype.u;Q.prototype.getFirstCoordinate=Q.prototype.Va;Q.prototype.getLastCoordinate=Q.prototype.Wa;Q.prototype.getLayout=Q.prototype.Xa;Q.prototype.getLineString=Q.prototype.de;Q.prototype.getLineString=Q.prototype.de;Q.prototype.getLineStrings=Q.prototype.Ic;Q.prototype.getLineStrings=Q.prototype.Ic;Q.prototype.getSimplifiedGeometry=Q.prototype.ha;Q.prototype.getType=Q.prototype.D;Q.prototype.getType=Q.prototype.D;Q.prototype.on=Q.prototype.q;Q.prototype.once=Q.prototype.r;
Q.prototype.setCoordinates=Q.prototype.J;Q.prototype.setCoordinates=Q.prototype.J;Q.prototype.transform=Q.prototype.transform;Q.prototype.un=Q.prototype.s;Q.prototype.unByKey=Q.prototype.t;t("ol.geom.MultiPoint",pm);pm.prototype.appendPoint=pm.prototype.Od;pm.prototype.appendPoint=pm.prototype.Od;pm.prototype.clone=pm.prototype.L;pm.prototype.clone=pm.prototype.L;pm.prototype.dispatchChangeEvent=pm.prototype.k;pm.prototype.getClosestPoint=pm.prototype.e;pm.prototype.getCoordinates=pm.prototype.C;
pm.prototype.getCoordinates=pm.prototype.C;pm.prototype.getExtent=pm.prototype.u;pm.prototype.getFirstCoordinate=pm.prototype.Va;pm.prototype.getLastCoordinate=pm.prototype.Wa;pm.prototype.getLayout=pm.prototype.Xa;pm.prototype.getPoint=pm.prototype.fe;pm.prototype.getPoint=pm.prototype.fe;pm.prototype.getPoints=pm.prototype.od;pm.prototype.getPoints=pm.prototype.od;pm.prototype.getSimplifiedGeometry=pm.prototype.ha;pm.prototype.getType=pm.prototype.D;pm.prototype.getType=pm.prototype.D;
pm.prototype.on=pm.prototype.q;pm.prototype.once=pm.prototype.r;pm.prototype.setCoordinates=pm.prototype.J;pm.prototype.setCoordinates=pm.prototype.J;pm.prototype.transform=pm.prototype.transform;pm.prototype.un=pm.prototype.s;pm.prototype.unByKey=pm.prototype.t;t("ol.geom.MultiPolygon",S);S.prototype.appendPolygon=S.prototype.Pd;S.prototype.appendPolygon=S.prototype.Pd;S.prototype.clone=S.prototype.L;S.prototype.clone=S.prototype.L;S.prototype.dispatchChangeEvent=S.prototype.k;
S.prototype.getArea=S.prototype.Be;S.prototype.getArea=S.prototype.Be;S.prototype.getClosestPoint=S.prototype.e;S.prototype.getCoordinates=S.prototype.C;S.prototype.getCoordinates=S.prototype.C;S.prototype.getExtent=S.prototype.u;S.prototype.getFirstCoordinate=S.prototype.Va;S.prototype.getInteriorPoints=S.prototype.ce;S.prototype.getInteriorPoints=S.prototype.ce;S.prototype.getLastCoordinate=S.prototype.Wa;S.prototype.getLayout=S.prototype.Xa;S.prototype.getPolygon=S.prototype.ge;
S.prototype.getPolygon=S.prototype.ge;S.prototype.getPolygons=S.prototype.pd;S.prototype.getPolygons=S.prototype.pd;S.prototype.getSimplifiedGeometry=S.prototype.ha;S.prototype.getType=S.prototype.D;S.prototype.getType=S.prototype.D;S.prototype.on=S.prototype.q;S.prototype.once=S.prototype.r;S.prototype.setCoordinates=S.prototype.J;S.prototype.setCoordinates=S.prototype.J;S.prototype.transform=S.prototype.transform;S.prototype.un=S.prototype.s;S.prototype.unByKey=S.prototype.t;t("ol.geom.Point",ii);
ii.prototype.clone=ii.prototype.L;ii.prototype.clone=ii.prototype.L;ii.prototype.dispatchChangeEvent=ii.prototype.k;ii.prototype.getClosestPoint=ii.prototype.e;ii.prototype.getCoordinates=ii.prototype.C;ii.prototype.getCoordinates=ii.prototype.C;ii.prototype.getFirstCoordinate=ii.prototype.Va;ii.prototype.getLastCoordinate=ii.prototype.Wa;ii.prototype.getLayout=ii.prototype.Xa;ii.prototype.getSimplifiedGeometry=ii.prototype.ha;ii.prototype.getType=ii.prototype.D;ii.prototype.getType=ii.prototype.D;
ii.prototype.on=ii.prototype.q;ii.prototype.once=ii.prototype.r;ii.prototype.setCoordinates=ii.prototype.J;ii.prototype.setCoordinates=ii.prototype.J;ii.prototype.transform=ii.prototype.transform;ii.prototype.un=ii.prototype.s;ii.prototype.unByKey=ii.prototype.t;t("ol.geom.Polygon",qi);qi.prototype.appendLinearRing=qi.prototype.mf;qi.prototype.clone=qi.prototype.L;qi.prototype.dispatchChangeEvent=qi.prototype.k;qi.prototype.getArea=qi.prototype.Sg;qi.prototype.getClosestPoint=qi.prototype.e;
qi.prototype.getCoordinates=qi.prototype.C;qi.prototype.getExtent=qi.prototype.u;qi.prototype.getFirstCoordinate=qi.prototype.Va;qi.prototype.getInteriorPoint=qi.prototype.Af;qi.prototype.getLastCoordinate=qi.prototype.Wa;qi.prototype.getLayout=qi.prototype.Xa;qi.prototype.getLinearRing=qi.prototype.Df;qi.prototype.getLinearRings=qi.prototype.ee;qi.prototype.getSimplifiedGeometry=qi.prototype.ha;qi.prototype.getType=qi.prototype.D;qi.prototype.on=qi.prototype.q;qi.prototype.once=qi.prototype.r;
qi.prototype.setCoordinates=qi.prototype.J;qi.prototype.transform=qi.prototype.transform;qi.prototype.un=qi.prototype.s;qi.prototype.unByKey=qi.prototype.t;t("ol.geom.Polygon.circular",ui);t("ol.geom.SimpleGeometry",Mh);Mh.prototype.dispatchChangeEvent=Mh.prototype.k;Mh.prototype.getClosestPoint=Mh.prototype.e;Mh.prototype.getExtent=Mh.prototype.u;Mh.prototype.getFirstCoordinate=Mh.prototype.Va;Mh.prototype.getLastCoordinate=Mh.prototype.Wa;Mh.prototype.getLayout=Mh.prototype.Xa;
Mh.prototype.getSimplifiedGeometry=Mh.prototype.ha;Mh.prototype.on=Mh.prototype.q;Mh.prototype.once=Mh.prototype.r;Mh.prototype.transform=Mh.prototype.transform;Mh.prototype.un=Mh.prototype.s;Mh.prototype.unByKey=Mh.prototype.t;t("ol.inherits",v);t("ol.interaction.DoubleClickZoom",nk);nk.prototype.dispatchChangeEvent=nk.prototype.k;nk.prototype.on=nk.prototype.q;nk.prototype.once=nk.prototype.r;nk.prototype.un=nk.prototype.s;nk.prototype.unByKey=nk.prototype.t;t("ol.interaction.DragAndDrop",Kt);
Kt.prototype.dispatchChangeEvent=Kt.prototype.k;Kt.prototype.on=Kt.prototype.q;Kt.prototype.once=Kt.prototype.r;Kt.prototype.un=Kt.prototype.s;Kt.prototype.unByKey=Kt.prototype.t;t("ol.interaction.DragBox",Ai);Ai.prototype.dispatchChangeEvent=Ai.prototype.k;Ai.prototype.getGeometry=Ai.prototype.M;Ai.prototype.on=Ai.prototype.q;Ai.prototype.once=Ai.prototype.r;Ai.prototype.un=Ai.prototype.s;Ai.prototype.unByKey=Ai.prototype.t;t("ol.interaction.DragPan",ok);ok.prototype.dispatchChangeEvent=ok.prototype.k;
ok.prototype.on=ok.prototype.q;ok.prototype.once=ok.prototype.r;ok.prototype.un=ok.prototype.s;ok.prototype.unByKey=ok.prototype.t;t("ol.interaction.DragRotate",pk);pk.prototype.dispatchChangeEvent=pk.prototype.k;pk.prototype.on=pk.prototype.q;pk.prototype.once=pk.prototype.r;pk.prototype.un=pk.prototype.s;pk.prototype.unByKey=pk.prototype.t;t("ol.interaction.DragRotateAndZoom",Ot);Ot.prototype.dispatchChangeEvent=Ot.prototype.k;Ot.prototype.on=Ot.prototype.q;Ot.prototype.once=Ot.prototype.r;
Ot.prototype.un=Ot.prototype.s;Ot.prototype.unByKey=Ot.prototype.t;t("ol.interaction.DragZoom",rk);rk.prototype.dispatchChangeEvent=rk.prototype.k;rk.prototype.getGeometry=rk.prototype.M;rk.prototype.on=rk.prototype.q;rk.prototype.once=rk.prototype.r;rk.prototype.un=rk.prototype.s;rk.prototype.unByKey=rk.prototype.t;t("ol.interaction.Draw",Rn);Rn.prototype.dispatchChangeEvent=Rn.prototype.k;Rn.prototype.on=Rn.prototype.q;Rn.prototype.once=Rn.prototype.r;Rn.prototype.un=Rn.prototype.s;
Rn.prototype.unByKey=Rn.prototype.t;Eh.prototype.dispatchChangeEvent=Eh.prototype.k;Eh.prototype.on=Eh.prototype.q;Eh.prototype.once=Eh.prototype.r;Eh.prototype.un=Eh.prototype.s;Eh.prototype.unByKey=Eh.prototype.t;t("ol.interaction.KeyboardPan",sk);sk.prototype.dispatchChangeEvent=sk.prototype.k;sk.prototype.on=sk.prototype.q;sk.prototype.once=sk.prototype.r;sk.prototype.un=sk.prototype.s;sk.prototype.unByKey=sk.prototype.t;t("ol.interaction.KeyboardZoom",tk);tk.prototype.dispatchChangeEvent=tk.prototype.k;
tk.prototype.on=tk.prototype.q;tk.prototype.once=tk.prototype.r;tk.prototype.un=tk.prototype.s;tk.prototype.unByKey=tk.prototype.t;t("ol.interaction.Modify",Pt);Pt.prototype.dispatchChangeEvent=Pt.prototype.k;Pt.prototype.on=Pt.prototype.q;Pt.prototype.once=Pt.prototype.r;Pt.prototype.un=Pt.prototype.s;Pt.prototype.unByKey=Pt.prototype.t;t("ol.interaction.MouseWheelZoom",uk);uk.prototype.dispatchChangeEvent=uk.prototype.k;uk.prototype.on=uk.prototype.q;uk.prototype.once=uk.prototype.r;
uk.prototype.un=uk.prototype.s;uk.prototype.unByKey=uk.prototype.t;t("ol.interaction.PinchRotate",vk);vk.prototype.dispatchChangeEvent=vk.prototype.k;vk.prototype.on=vk.prototype.q;vk.prototype.once=vk.prototype.r;vk.prototype.un=vk.prototype.s;vk.prototype.unByKey=vk.prototype.t;t("ol.interaction.PinchZoom",wk);wk.prototype.dispatchChangeEvent=wk.prototype.k;wk.prototype.on=wk.prototype.q;wk.prototype.once=wk.prototype.r;wk.prototype.un=wk.prototype.s;wk.prototype.unByKey=wk.prototype.t;
Ih.prototype.dispatchChangeEvent=Ih.prototype.k;Ih.prototype.on=Ih.prototype.q;Ih.prototype.once=Ih.prototype.r;Ih.prototype.un=Ih.prototype.s;Ih.prototype.unByKey=Ih.prototype.t;t("ol.interaction.Select",Ut);Ut.prototype.dispatchChangeEvent=Ut.prototype.k;Ut.prototype.getFeatures=Ut.prototype.Ug;Ut.prototype.on=Ut.prototype.q;Ut.prototype.once=Ut.prototype.r;Ut.prototype.setMap=Ut.prototype.setMap;Ut.prototype.un=Ut.prototype.s;Ut.prototype.unByKey=Ut.prototype.t;t("ol.interaction.defaults",xk);
I.prototype.bindTo=I.prototype.X;I.prototype.dispatchChangeEvent=I.prototype.k;I.prototype.get=I.prototype.get;I.prototype.getBrightness=I.prototype.d;I.prototype.getContrast=I.prototype.e;I.prototype.getHue=I.prototype.f;I.prototype.getKeys=I.prototype.O;I.prototype.getMaxResolution=I.prototype.g;I.prototype.getMinResolution=I.prototype.i;I.prototype.getOpacity=I.prototype.l;I.prototype.getProperties=I.prototype.T;I.prototype.getSaturation=I.prototype.h;I.prototype.getVisible=I.prototype.b;
I.prototype.notify=I.prototype.U;I.prototype.on=I.prototype.q;I.prototype.once=I.prototype.r;I.prototype.set=I.prototype.w;I.prototype.setBrightness=I.prototype.n;I.prototype.setContrast=I.prototype.o;I.prototype.setHue=I.prototype.v;I.prototype.setMaxResolution=I.prototype.A;I.prototype.setMinResolution=I.prototype.B;I.prototype.setOpacity=I.prototype.G;I.prototype.setSaturation=I.prototype.Q;I.prototype.setValues=I.prototype.I;I.prototype.setVisible=I.prototype.S;I.prototype.un=I.prototype.s;
I.prototype.unByKey=I.prototype.t;I.prototype.unbind=I.prototype.V;I.prototype.unbindAll=I.prototype.Y;t("ol.layer.Group",J);J.prototype.bindTo=J.prototype.X;J.prototype.dispatchChangeEvent=J.prototype.k;J.prototype.get=J.prototype.get;J.prototype.getBrightness=J.prototype.d;J.prototype.getContrast=J.prototype.e;J.prototype.getHue=J.prototype.f;J.prototype.getKeys=J.prototype.O;J.prototype.getMaxResolution=J.prototype.g;J.prototype.getMinResolution=J.prototype.i;J.prototype.getOpacity=J.prototype.l;
J.prototype.getProperties=J.prototype.T;J.prototype.getSaturation=J.prototype.h;J.prototype.getVisible=J.prototype.b;J.prototype.notify=J.prototype.U;J.prototype.on=J.prototype.q;J.prototype.once=J.prototype.r;J.prototype.set=J.prototype.w;J.prototype.setBrightness=J.prototype.n;J.prototype.setContrast=J.prototype.o;J.prototype.setHue=J.prototype.v;J.prototype.setMaxResolution=J.prototype.A;J.prototype.setMinResolution=J.prototype.B;J.prototype.setOpacity=J.prototype.G;J.prototype.setSaturation=J.prototype.Q;
J.prototype.setValues=J.prototype.I;J.prototype.setVisible=J.prototype.S;J.prototype.un=J.prototype.s;J.prototype.unByKey=J.prototype.t;J.prototype.unbind=J.prototype.V;J.prototype.unbindAll=J.prototype.Y;t("ol.layer.Heatmap",$);$.prototype.bindTo=$.prototype.X;$.prototype.dispatchChangeEvent=$.prototype.k;$.prototype.get=$.prototype.get;$.prototype.getBrightness=$.prototype.d;$.prototype.getContrast=$.prototype.e;$.prototype.getHue=$.prototype.f;$.prototype.getKeys=$.prototype.O;
$.prototype.getMaxResolution=$.prototype.g;$.prototype.getMinResolution=$.prototype.i;$.prototype.getOpacity=$.prototype.l;$.prototype.getProperties=$.prototype.T;$.prototype.getSaturation=$.prototype.h;$.prototype.getSource=$.prototype.aa;$.prototype.getStyle=$.prototype.sb;$.prototype.getStyleFunction=$.prototype.xc;$.prototype.getVisible=$.prototype.b;$.prototype.notify=$.prototype.U;$.prototype.on=$.prototype.q;$.prototype.once=$.prototype.r;$.prototype.set=$.prototype.w;
$.prototype.setBrightness=$.prototype.n;$.prototype.setContrast=$.prototype.o;$.prototype.setHue=$.prototype.v;$.prototype.setMaxResolution=$.prototype.A;$.prototype.setMinResolution=$.prototype.B;$.prototype.setOpacity=$.prototype.G;$.prototype.setSaturation=$.prototype.Q;$.prototype.setStyle=$.prototype.fa;$.prototype.setValues=$.prototype.I;$.prototype.setVisible=$.prototype.S;$.prototype.un=$.prototype.s;$.prototype.unByKey=$.prototype.t;$.prototype.unbind=$.prototype.V;
$.prototype.unbindAll=$.prototype.Y;t("ol.layer.Image",L);L.prototype.bindTo=L.prototype.X;L.prototype.dispatchChangeEvent=L.prototype.k;L.prototype.get=L.prototype.get;L.prototype.getBrightness=L.prototype.d;L.prototype.getContrast=L.prototype.e;L.prototype.getHue=L.prototype.f;L.prototype.getKeys=L.prototype.O;L.prototype.getMaxResolution=L.prototype.g;L.prototype.getMinResolution=L.prototype.i;L.prototype.getOpacity=L.prototype.l;L.prototype.getProperties=L.prototype.T;
L.prototype.getSaturation=L.prototype.h;L.prototype.getSource=L.prototype.aa;L.prototype.getVisible=L.prototype.b;L.prototype.notify=L.prototype.U;L.prototype.on=L.prototype.q;L.prototype.once=L.prototype.r;L.prototype.set=L.prototype.w;L.prototype.setBrightness=L.prototype.n;L.prototype.setContrast=L.prototype.o;L.prototype.setHue=L.prototype.v;L.prototype.setMaxResolution=L.prototype.A;L.prototype.setMinResolution=L.prototype.B;L.prototype.setOpacity=L.prototype.G;L.prototype.setSaturation=L.prototype.Q;
L.prototype.setValues=L.prototype.I;L.prototype.setVisible=L.prototype.S;L.prototype.un=L.prototype.s;L.prototype.unByKey=L.prototype.t;L.prototype.unbind=L.prototype.V;L.prototype.unbindAll=L.prototype.Y;t("ol.layer.Layer",K);K.prototype.bindTo=K.prototype.X;K.prototype.dispatchChangeEvent=K.prototype.k;K.prototype.get=K.prototype.get;K.prototype.getBrightness=K.prototype.d;K.prototype.getContrast=K.prototype.e;K.prototype.getHue=K.prototype.f;K.prototype.getKeys=K.prototype.O;
K.prototype.getMaxResolution=K.prototype.g;K.prototype.getMinResolution=K.prototype.i;K.prototype.getOpacity=K.prototype.l;K.prototype.getProperties=K.prototype.T;K.prototype.getSaturation=K.prototype.h;K.prototype.getSource=K.prototype.aa;K.prototype.getVisible=K.prototype.b;K.prototype.notify=K.prototype.U;K.prototype.on=K.prototype.q;K.prototype.once=K.prototype.r;K.prototype.set=K.prototype.w;K.prototype.setBrightness=K.prototype.n;K.prototype.setContrast=K.prototype.o;K.prototype.setHue=K.prototype.v;
K.prototype.setMaxResolution=K.prototype.A;K.prototype.setMinResolution=K.prototype.B;K.prototype.setOpacity=K.prototype.G;K.prototype.setSaturation=K.prototype.Q;K.prototype.setValues=K.prototype.I;K.prototype.setVisible=K.prototype.S;K.prototype.un=K.prototype.s;K.prototype.unByKey=K.prototype.t;K.prototype.unbind=K.prototype.V;K.prototype.unbindAll=K.prototype.Y;t("ol.layer.Tile",N);N.prototype.bindTo=N.prototype.X;N.prototype.dispatchChangeEvent=N.prototype.k;N.prototype.get=N.prototype.get;
N.prototype.getBrightness=N.prototype.d;N.prototype.getContrast=N.prototype.e;N.prototype.getHue=N.prototype.f;N.prototype.getKeys=N.prototype.O;N.prototype.getMaxResolution=N.prototype.g;N.prototype.getMinResolution=N.prototype.i;N.prototype.getOpacity=N.prototype.l;N.prototype.getProperties=N.prototype.T;N.prototype.getSaturation=N.prototype.h;N.prototype.getSource=N.prototype.aa;N.prototype.getVisible=N.prototype.b;N.prototype.notify=N.prototype.U;N.prototype.on=N.prototype.q;
N.prototype.once=N.prototype.r;N.prototype.set=N.prototype.w;N.prototype.setBrightness=N.prototype.n;N.prototype.setContrast=N.prototype.o;N.prototype.setHue=N.prototype.v;N.prototype.setMaxResolution=N.prototype.A;N.prototype.setMinResolution=N.prototype.B;N.prototype.setOpacity=N.prototype.G;N.prototype.setSaturation=N.prototype.Q;N.prototype.setValues=N.prototype.I;N.prototype.setVisible=N.prototype.S;N.prototype.un=N.prototype.s;N.prototype.unByKey=N.prototype.t;N.prototype.unbind=N.prototype.V;
N.prototype.unbindAll=N.prototype.Y;t("ol.layer.Vector",O);O.prototype.bindTo=O.prototype.X;O.prototype.dispatchChangeEvent=O.prototype.k;O.prototype.get=O.prototype.get;O.prototype.getBrightness=O.prototype.d;O.prototype.getContrast=O.prototype.e;O.prototype.getHue=O.prototype.f;O.prototype.getKeys=O.prototype.O;O.prototype.getMaxResolution=O.prototype.g;O.prototype.getMinResolution=O.prototype.i;O.prototype.getOpacity=O.prototype.l;O.prototype.getProperties=O.prototype.T;
O.prototype.getSaturation=O.prototype.h;O.prototype.getSource=O.prototype.aa;O.prototype.getStyle=O.prototype.sb;O.prototype.getStyleFunction=O.prototype.xc;O.prototype.getVisible=O.prototype.b;O.prototype.notify=O.prototype.U;O.prototype.on=O.prototype.q;O.prototype.once=O.prototype.r;O.prototype.set=O.prototype.w;O.prototype.setBrightness=O.prototype.n;O.prototype.setContrast=O.prototype.o;O.prototype.setHue=O.prototype.v;O.prototype.setMaxResolution=O.prototype.A;O.prototype.setMinResolution=O.prototype.B;
O.prototype.setOpacity=O.prototype.G;O.prototype.setSaturation=O.prototype.Q;O.prototype.setStyle=O.prototype.fa;O.prototype.setValues=O.prototype.I;O.prototype.setVisible=O.prototype.S;O.prototype.un=O.prototype.s;O.prototype.unByKey=O.prototype.t;O.prototype.unbind=O.prototype.V;O.prototype.unbindAll=O.prototype.Y;t("ol.loadingstrategy.all",function(){return[[-Infinity,-Infinity,Infinity,Infinity]]});t("ol.loadingstrategy.bbox",Yt);
t("ol.loadingstrategy.createTile",function(a){return function(b,c){var d=jg(a.a,c,0),e=Nk(a,b,d),f=[],d=new Lb(d,0,0);for(d.x=e.a;d.x<=e.d;++d.x)for(d.y=e.b;d.y<=e.c;++d.y)f.push(Mk(a,d));return f}});t("ol.proj.CH",$t);$t.prototype.getCode=$t.prototype.c;$t.prototype.getExtent=$t.prototype.u;$t.prototype.getUnits=$t.prototype.b;t("ol.proj.EPSG2056",cu);cu.prototype.getCode=cu.prototype.c;cu.prototype.getExtent=cu.prototype.u;cu.prototype.getUnits=cu.prototype.b;t("ol.proj.EPSG21781",eu);
eu.prototype.getCode=eu.prototype.c;eu.prototype.getExtent=eu.prototype.u;eu.prototype.getUnits=eu.prototype.b;t("ol.proj.EPSG3857",Bk);Bk.prototype.getCode=Bk.prototype.c;Bk.prototype.getExtent=Bk.prototype.u;Bk.prototype.getUnits=Bk.prototype.b;t("ol.proj.EPSG4326",Ek);Ek.prototype.getCode=Ek.prototype.c;Ek.prototype.getExtent=Ek.prototype.u;Ek.prototype.getUnits=Ek.prototype.b;t("ol.proj.METERS_PER_UNIT[undefined]",Vg[void 0]);t("ol.proj.Projection",Xg);Xg.prototype.getCode=Xg.prototype.c;
Xg.prototype.getExtent=Xg.prototype.u;Xg.prototype.getUnits=Xg.prototype.b;t("ol.proj.addProjection",oh);t("ol.proj.common.add",Gk);t("ol.proj.configureProj4jsProjection",function(a){return ah(a)});t("ol.proj.get",qh);t("ol.proj.getTransform",rh);t("ol.proj.getTransformFromProjections",$g);t("ol.proj.transform",function(a,b,c){return rh(b,c)(a)});t("ol.proj.transformWithProjections",function(a,b,c){return $g(b,c)(a)});ml.prototype.drawAsync=ml.prototype.Cc;ml.prototype.drawCircleGeometry=ml.prototype.ec;
ml.prototype.drawFeature=ml.prototype.jd;ml.prototype.drawLineStringGeometry=ml.prototype.fc;ml.prototype.drawMultiLineStringGeometry=ml.prototype.gc;ml.prototype.drawMultiPointGeometry=ml.prototype.hc;ml.prototype.drawMultiPolygonGeometry=ml.prototype.ic;ml.prototype.drawPointGeometry=ml.prototype.jc;ml.prototype.drawPolygonGeometry=ml.prototype.Jb;ml.prototype.setFillStrokeStyle=ml.prototype.Ca;ml.prototype.setImageStyle=ml.prototype.Wb;ml.prototype.setTextStyle=ml.prototype.oa;
t("ol.source.BingMaps",Eu);Eu.prototype.dispatchChangeEvent=Eu.prototype.k;Eu.prototype.getState=Eu.prototype.a;Eu.prototype.getTileGrid=Eu.prototype.la;Eu.prototype.on=Eu.prototype.q;Eu.prototype.once=Eu.prototype.r;Eu.prototype.un=Eu.prototype.s;Eu.prototype.unByKey=Eu.prototype.t;t("ol.source.BingMaps.TOS_ATTRIBUTION",Fu);bv.prototype.addFeature=bv.prototype.Ka;bv.prototype.addFeatures=bv.prototype.Qa;bv.prototype.dispatchChangeEvent=bv.prototype.k;bv.prototype.forEachFeature=bv.prototype.Sa;
bv.prototype.forEachFeatureInExtent=bv.prototype.va;bv.prototype.getClosestFeatureToCoordinate=bv.prototype.Ta;bv.prototype.getExtent=bv.prototype.u;bv.prototype.getFeatures=bv.prototype.La;bv.prototype.getFeaturesAtCoordinate=bv.prototype.Ua;bv.prototype.getState=bv.prototype.a;bv.prototype.on=bv.prototype.q;bv.prototype.once=bv.prototype.r;bv.prototype.removeFeature=bv.prototype.cb;bv.prototype.un=bv.prototype.s;bv.prototype.unByKey=bv.prototype.t;t("ol.source.GPX",ev);ev.prototype.addFeature=ev.prototype.Ka;
ev.prototype.addFeatures=ev.prototype.Qa;ev.prototype.dispatchChangeEvent=ev.prototype.k;ev.prototype.forEachFeature=ev.prototype.Sa;ev.prototype.forEachFeatureInExtent=ev.prototype.va;ev.prototype.getClosestFeatureToCoordinate=ev.prototype.Ta;ev.prototype.getExtent=ev.prototype.u;ev.prototype.getFeatures=ev.prototype.La;ev.prototype.getFeaturesAtCoordinate=ev.prototype.Ua;ev.prototype.getState=ev.prototype.a;ev.prototype.on=ev.prototype.q;ev.prototype.once=ev.prototype.r;
ev.prototype.removeFeature=ev.prototype.cb;ev.prototype.un=ev.prototype.s;ev.prototype.unByKey=ev.prototype.t;t("ol.source.GeoJSON",fv);fv.prototype.addFeature=fv.prototype.Ka;fv.prototype.addFeatures=fv.prototype.Qa;fv.prototype.dispatchChangeEvent=fv.prototype.k;fv.prototype.forEachFeature=fv.prototype.Sa;fv.prototype.forEachFeatureInExtent=fv.prototype.va;fv.prototype.getClosestFeatureToCoordinate=fv.prototype.Ta;fv.prototype.getExtent=fv.prototype.u;fv.prototype.getFeatures=fv.prototype.La;
fv.prototype.getFeaturesAtCoordinate=fv.prototype.Ua;fv.prototype.getState=fv.prototype.a;fv.prototype.on=fv.prototype.q;fv.prototype.once=fv.prototype.r;fv.prototype.removeFeature=fv.prototype.cb;fv.prototype.un=fv.prototype.s;fv.prototype.unByKey=fv.prototype.t;t("ol.source.IGC",gv);gv.prototype.addFeature=gv.prototype.Ka;gv.prototype.addFeatures=gv.prototype.Qa;gv.prototype.dispatchChangeEvent=gv.prototype.k;gv.prototype.forEachFeature=gv.prototype.Sa;gv.prototype.forEachFeatureInExtent=gv.prototype.va;
gv.prototype.getClosestFeatureToCoordinate=gv.prototype.Ta;gv.prototype.getExtent=gv.prototype.u;gv.prototype.getFeatures=gv.prototype.La;gv.prototype.getFeaturesAtCoordinate=gv.prototype.Ua;gv.prototype.getState=gv.prototype.a;gv.prototype.on=gv.prototype.q;gv.prototype.once=gv.prototype.r;gv.prototype.removeFeature=gv.prototype.cb;gv.prototype.un=gv.prototype.s;gv.prototype.unByKey=gv.prototype.t;Dl.prototype.dispatchChangeEvent=Dl.prototype.k;Dl.prototype.on=Dl.prototype.q;Dl.prototype.once=Dl.prototype.r;
Dl.prototype.un=Dl.prototype.s;Dl.prototype.unByKey=Dl.prototype.t;t("ol.source.ImageCanvas",iv);iv.prototype.dispatchChangeEvent=iv.prototype.k;iv.prototype.on=iv.prototype.q;iv.prototype.once=iv.prototype.r;iv.prototype.un=iv.prototype.s;iv.prototype.unByKey=iv.prototype.t;t("ol.source.ImageStatic",jv);jv.prototype.dispatchChangeEvent=jv.prototype.k;jv.prototype.on=jv.prototype.q;jv.prototype.once=jv.prototype.r;jv.prototype.un=jv.prototype.s;jv.prototype.unByKey=jv.prototype.t;
t("ol.source.ImageVector",kv);kv.prototype.dispatchChangeEvent=kv.prototype.k;kv.prototype.getSource=kv.prototype.Yg;kv.prototype.on=kv.prototype.q;kv.prototype.once=kv.prototype.r;kv.prototype.un=kv.prototype.s;kv.prototype.unByKey=kv.prototype.t;t("ol.source.ImageWMS",lv);lv.prototype.dispatchChangeEvent=lv.prototype.k;lv.prototype.getGetFeatureInfoUrl=lv.prototype.ah;lv.prototype.getParams=lv.prototype.bh;lv.prototype.getUrl=lv.prototype.dh;lv.prototype.on=lv.prototype.q;lv.prototype.once=lv.prototype.r;
lv.prototype.setUrl=lv.prototype.eh;lv.prototype.un=lv.prototype.s;lv.prototype.unByKey=lv.prototype.t;lv.prototype.updateParams=lv.prototype.fh;t("ol.source.KML",ov);ov.prototype.addFeature=ov.prototype.Ka;ov.prototype.addFeatures=ov.prototype.Qa;ov.prototype.dispatchChangeEvent=ov.prototype.k;ov.prototype.forEachFeature=ov.prototype.Sa;ov.prototype.forEachFeatureInExtent=ov.prototype.va;ov.prototype.getClosestFeatureToCoordinate=ov.prototype.Ta;ov.prototype.getExtent=ov.prototype.u;
ov.prototype.getFeatures=ov.prototype.La;ov.prototype.getFeaturesAtCoordinate=ov.prototype.Ua;ov.prototype.getState=ov.prototype.a;ov.prototype.on=ov.prototype.q;ov.prototype.once=ov.prototype.r;ov.prototype.removeFeature=ov.prototype.cb;ov.prototype.un=ov.prototype.s;ov.prototype.unByKey=ov.prototype.t;t("ol.source.MapGuide",rv);rv.prototype.dispatchChangeEvent=rv.prototype.k;rv.prototype.on=rv.prototype.q;rv.prototype.once=rv.prototype.r;rv.prototype.un=rv.prototype.s;rv.prototype.unByKey=rv.prototype.t;
t("ol.source.MapQuest",xv);xv.prototype.dispatchChangeEvent=xv.prototype.k;xv.prototype.getState=xv.prototype.a;xv.prototype.getTileGrid=xv.prototype.la;xv.prototype.on=xv.prototype.q;xv.prototype.once=xv.prototype.r;xv.prototype.setUrl=xv.prototype.b;xv.prototype.setUrl=xv.prototype.b;xv.prototype.un=xv.prototype.s;xv.prototype.unByKey=xv.prototype.t;t("ol.source.OSM",tv);tv.prototype.dispatchChangeEvent=tv.prototype.k;tv.prototype.getState=tv.prototype.a;tv.prototype.getTileGrid=tv.prototype.la;
tv.prototype.on=tv.prototype.q;tv.prototype.once=tv.prototype.r;tv.prototype.setUrl=tv.prototype.b;tv.prototype.setUrl=tv.prototype.b;tv.prototype.un=tv.prototype.s;tv.prototype.unByKey=tv.prototype.t;t("ol.source.OSM.DATA_ATTRIBUTION",vv);t("ol.source.OSM.DATA_ATTRIBUTION",vv);t("ol.source.OSM.TILE_ATTRIBUTION",wv);t("ol.source.OSM.TILE_ATTRIBUTION",wv);t("ol.source.OSMXML",Av);Av.prototype.addFeature=Av.prototype.Ka;Av.prototype.addFeatures=Av.prototype.Qa;Av.prototype.dispatchChangeEvent=Av.prototype.k;
Av.prototype.forEachFeature=Av.prototype.Sa;Av.prototype.forEachFeatureInExtent=Av.prototype.va;Av.prototype.getClosestFeatureToCoordinate=Av.prototype.Ta;Av.prototype.getExtent=Av.prototype.u;Av.prototype.getFeatures=Av.prototype.La;Av.prototype.getFeaturesAtCoordinate=Av.prototype.Ua;Av.prototype.getState=Av.prototype.a;Av.prototype.on=Av.prototype.q;Av.prototype.once=Av.prototype.r;Av.prototype.removeFeature=Av.prototype.cb;Av.prototype.un=Av.prototype.s;Av.prototype.unByKey=Av.prototype.t;
t("ol.source.ServerVector",Bv);Bv.prototype.dispatchChangeEvent=Bv.prototype.k;Bv.prototype.on=Bv.prototype.q;Bv.prototype.once=Bv.prototype.r;Bv.prototype.readFeatures=Bv.prototype.e;Bv.prototype.un=Bv.prototype.s;Bv.prototype.unByKey=Bv.prototype.t;yk.prototype.dispatchChangeEvent=yk.prototype.k;yk.prototype.getState=yk.prototype.a;yk.prototype.on=yk.prototype.q;yk.prototype.once=yk.prototype.r;yk.prototype.un=yk.prototype.s;yk.prototype.unByKey=yk.prototype.t;t("ol.source.Stamen",Ev);
Ev.prototype.dispatchChangeEvent=Ev.prototype.k;Ev.prototype.getState=Ev.prototype.a;Ev.prototype.getTileGrid=Ev.prototype.la;Ev.prototype.on=Ev.prototype.q;Ev.prototype.once=Ev.prototype.r;Ev.prototype.setUrl=Ev.prototype.b;Ev.prototype.setUrl=Ev.prototype.b;Ev.prototype.un=Ev.prototype.s;Ev.prototype.unByKey=Ev.prototype.t;t("ol.source.StaticVector",dv);dv.prototype.addFeature=dv.prototype.Ka;dv.prototype.addFeatures=dv.prototype.Qa;dv.prototype.dispatchChangeEvent=dv.prototype.k;
dv.prototype.forEachFeature=dv.prototype.Sa;dv.prototype.forEachFeatureInExtent=dv.prototype.va;dv.prototype.getClosestFeatureToCoordinate=dv.prototype.Ta;dv.prototype.getExtent=dv.prototype.u;dv.prototype.getFeatures=dv.prototype.La;dv.prototype.getFeaturesAtCoordinate=dv.prototype.Ua;dv.prototype.getState=dv.prototype.a;dv.prototype.on=dv.prototype.q;dv.prototype.once=dv.prototype.r;dv.prototype.removeFeature=dv.prototype.cb;dv.prototype.un=dv.prototype.s;dv.prototype.unByKey=dv.prototype.t;
t("ol.source.Tile",Rk);Rk.prototype.dispatchChangeEvent=Rk.prototype.k;Rk.prototype.getState=Rk.prototype.a;Rk.prototype.getTileGrid=Rk.prototype.la;Rk.prototype.on=Rk.prototype.q;Rk.prototype.once=Rk.prototype.r;Rk.prototype.un=Rk.prototype.s;Rk.prototype.unByKey=Rk.prototype.t;t("ol.source.TileDebug",Hv);Hv.prototype.dispatchChangeEvent=Hv.prototype.k;Hv.prototype.getState=Hv.prototype.a;Hv.prototype.getTileGrid=Hv.prototype.la;Hv.prototype.on=Hv.prototype.q;Hv.prototype.once=Hv.prototype.r;
Hv.prototype.un=Hv.prototype.s;Hv.prototype.unByKey=Hv.prototype.t;t("ol.source.TileImage",Bu);Bu.prototype.dispatchChangeEvent=Bu.prototype.k;Bu.prototype.getState=Bu.prototype.a;Bu.prototype.getTileGrid=Bu.prototype.la;Bu.prototype.on=Bu.prototype.q;Bu.prototype.once=Bu.prototype.r;Bu.prototype.un=Bu.prototype.s;Bu.prototype.unByKey=Bu.prototype.t;t("ol.source.TileJSON",Iv);Iv.prototype.dispatchChangeEvent=Iv.prototype.k;Iv.prototype.getState=Iv.prototype.a;Iv.prototype.getTileGrid=Iv.prototype.la;
Iv.prototype.on=Iv.prototype.q;Iv.prototype.once=Iv.prototype.r;Iv.prototype.un=Iv.prototype.s;Iv.prototype.unByKey=Iv.prototype.t;t("ol.source.TileVector",Jv);Jv.prototype.dispatchChangeEvent=Jv.prototype.k;Jv.prototype.on=Jv.prototype.q;Jv.prototype.once=Jv.prototype.r;Jv.prototype.un=Jv.prototype.s;Jv.prototype.unByKey=Jv.prototype.t;t("ol.source.TileWMS",Kv);Kv.prototype.dispatchChangeEvent=Kv.prototype.k;Kv.prototype.getGetFeatureInfoUrl=Kv.prototype.De;Kv.prototype.getGetFeatureInfoUrl=Kv.prototype.De;
Kv.prototype.getParams=Kv.prototype.Ee;Kv.prototype.getParams=Kv.prototype.Ee;Kv.prototype.getState=Kv.prototype.a;Kv.prototype.getTileGrid=Kv.prototype.la;Kv.prototype.getUrls=Kv.prototype.he;Kv.prototype.getUrls=Kv.prototype.he;Kv.prototype.on=Kv.prototype.q;Kv.prototype.once=Kv.prototype.r;Kv.prototype.un=Kv.prototype.s;Kv.prototype.unByKey=Kv.prototype.t;Kv.prototype.updateParams=Kv.prototype.Fe;Kv.prototype.updateParams=Kv.prototype.Fe;t("ol.source.TopoJSON",Ov);Ov.prototype.addFeature=Ov.prototype.Ka;
Ov.prototype.addFeatures=Ov.prototype.Qa;Ov.prototype.dispatchChangeEvent=Ov.prototype.k;Ov.prototype.forEachFeature=Ov.prototype.Sa;Ov.prototype.forEachFeatureInExtent=Ov.prototype.va;Ov.prototype.getClosestFeatureToCoordinate=Ov.prototype.Ta;Ov.prototype.getExtent=Ov.prototype.u;Ov.prototype.getFeatures=Ov.prototype.La;Ov.prototype.getFeaturesAtCoordinate=Ov.prototype.Ua;Ov.prototype.getState=Ov.prototype.a;Ov.prototype.on=Ov.prototype.q;Ov.prototype.once=Ov.prototype.r;
Ov.prototype.removeFeature=Ov.prototype.cb;Ov.prototype.un=Ov.prototype.s;Ov.prototype.unByKey=Ov.prototype.t;t("ol.source.Vector",Lm);Lm.prototype.addFeature=Lm.prototype.Ka;Lm.prototype.addFeatures=Lm.prototype.Qa;Lm.prototype.dispatchChangeEvent=Lm.prototype.k;Lm.prototype.forEachFeature=Lm.prototype.Sa;Lm.prototype.forEachFeatureInExtent=Lm.prototype.va;Lm.prototype.getClosestFeatureToCoordinate=Lm.prototype.Ta;Lm.prototype.getExtent=Lm.prototype.u;Lm.prototype.getFeatures=Lm.prototype.La;
Lm.prototype.getFeaturesAtCoordinate=Lm.prototype.Ua;Lm.prototype.getState=Lm.prototype.a;Lm.prototype.on=Lm.prototype.q;Lm.prototype.once=Lm.prototype.r;Lm.prototype.removeFeature=Lm.prototype.cb;Lm.prototype.un=Lm.prototype.s;Lm.prototype.unByKey=Lm.prototype.t;t("ol.source.WMTS",Sv);Sv.prototype.dispatchChangeEvent=Sv.prototype.k;Sv.prototype.getDimensions=Sv.prototype.e;Sv.prototype.getDimensions=Sv.prototype.e;Sv.prototype.getState=Sv.prototype.a;Sv.prototype.getTileGrid=Sv.prototype.la;
Sv.prototype.on=Sv.prototype.q;Sv.prototype.once=Sv.prototype.r;Sv.prototype.un=Sv.prototype.s;Sv.prototype.unByKey=Sv.prototype.t;Sv.prototype.updateDimensions=Sv.prototype.h;Sv.prototype.updateDimensions=Sv.prototype.h;t("ol.source.WMTS.optionsFromCapabilities",Uv);t("ol.source.WMTS.optionsFromCapabilities",Uv);t("ol.source.XYZ",sv);sv.prototype.dispatchChangeEvent=sv.prototype.k;sv.prototype.getState=sv.prototype.a;sv.prototype.getTileGrid=sv.prototype.la;sv.prototype.on=sv.prototype.q;
sv.prototype.once=sv.prototype.r;sv.prototype.setUrl=sv.prototype.b;sv.prototype.setUrl=sv.prototype.b;sv.prototype.un=sv.prototype.s;sv.prototype.unByKey=sv.prototype.t;t("ol.source.Zoomify",Wv);Wv.prototype.dispatchChangeEvent=Wv.prototype.k;Wv.prototype.getState=Wv.prototype.a;Wv.prototype.getTileGrid=Wv.prototype.la;Wv.prototype.on=Wv.prototype.q;Wv.prototype.once=Wv.prototype.r;Wv.prototype.un=Wv.prototype.s;Wv.prototype.unByKey=Wv.prototype.t;t("ol.sphere.WGS84",ao);t("ol.style.Circle",Pi);
Pi.prototype.getAnchor=Pi.prototype.kc;Pi.prototype.getFill=Pi.prototype.hh;Pi.prototype.getImage=Pi.prototype.rc;Pi.prototype.getRadius=Pi.prototype.ih;Pi.prototype.getRotation=Pi.prototype.g;Pi.prototype.getScale=Pi.prototype.i;Pi.prototype.getSize=Pi.prototype.Rb;Pi.prototype.getStroke=Pi.prototype.jh;t("ol.style.Fill",Mi);Mi.prototype.getColor=Mi.prototype.c;t("ol.style.Icon",bl);bl.prototype.getAnchor=bl.prototype.kc;bl.prototype.getImage=bl.prototype.rc;bl.prototype.getRotation=bl.prototype.g;
bl.prototype.getScale=bl.prototype.i;bl.prototype.getSize=bl.prototype.Rb;bl.prototype.getSrc=bl.prototype.kh;t("ol.style.Image",Ni);Ni.prototype.getRotation=Ni.prototype.g;Ni.prototype.getScale=Ni.prototype.i;t("ol.style.Stroke",Oi);Oi.prototype.getColor=Oi.prototype.lh;Oi.prototype.getLineCap=Oi.prototype.Bf;Oi.prototype.getLineDash=Oi.prototype.mh;Oi.prototype.getLineJoin=Oi.prototype.Cf;Oi.prototype.getMiterLimit=Oi.prototype.Ef;Oi.prototype.getWidth=Oi.prototype.nh;t("ol.style.Style",Qi);
Qi.prototype.getFill=Qi.prototype.oh;Qi.prototype.getImage=Qi.prototype.ph;Qi.prototype.getStroke=Qi.prototype.qh;Qi.prototype.getText=Qi.prototype.rh;Qi.prototype.getZIndex=Qi.prototype.Kf;t("ol.style.Text",Yv);Yv.prototype.getFill=Yv.prototype.sh;Yv.prototype.getFont=Yv.prototype.xf;Yv.prototype.getRotation=Yv.prototype.th;Yv.prototype.getScale=Yv.prototype.uh;Yv.prototype.getStroke=Yv.prototype.vh;Yv.prototype.getText=Yv.prototype.wh;Yv.prototype.getTextAlign=Yv.prototype.Gf;
Yv.prototype.getTextBaseline=Yv.prototype.Hf;t("ol.tilegrid.TileGrid",Kk);Kk.prototype.getMinZoom=Kk.prototype.Jc;Kk.prototype.getOrigin=Kk.prototype.ob;Kk.prototype.getResolution=Kk.prototype.da;Kk.prototype.getTileSize=Kk.prototype.ia;t("ol.tilegrid.WMTS",Pv);Pv.prototype.getMatrixIds=Pv.prototype.i;Pv.prototype.getMinZoom=Pv.prototype.Jc;Pv.prototype.getOrigin=Pv.prototype.ob;Pv.prototype.getResolution=Pv.prototype.da;Pv.prototype.getTileSize=Pv.prototype.ia;t("ol.tilegrid.XYZ",Du);
Du.prototype.getMinZoom=Du.prototype.Jc;Du.prototype.getOrigin=Du.prototype.ob;Du.prototype.getResolution=Du.prototype.da;Du.prototype.getTileSize=Du.prototype.ia;t("ol.tilegrid.Zoomify",Vv);Vv.prototype.getMinZoom=Vv.prototype.Jc;Vv.prototype.getOrigin=Vv.prototype.ob;Vv.prototype.getResolution=Vv.prototype.da;Vv.prototype.getTileSize=Vv.prototype.ia;t("ol.webgl.Context",Jn);Jn.prototype.getGL=Jn.prototype.xh;Jn.prototype.useProgram=Jn.prototype.zd;})();