Files
openlayers/float-no-zero/build/ol.js
2014-03-07 10:55:12 +01:00

556 lines
283 KiB
JavaScript

// OpenLayers 3. see http://ol3js.org/
(function(){function ba(){return function(){}}function k(a){return function(){return this[a]}}function ca(a){return function(){return a}}var l,da=da||{},s=this;function fa(){}function ga(a){a.Ka=function(){return a.fe?a.fe:a.fe=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 t(a){return void 0!==a}function ia(a){return"array"==ha(a)}function ja(a){var b=ha(a);return"array"==b||"object"==b&&"number"==typeof a.length}function la(a){return"string"==typeof a}function na(a){return"number"==typeof a}function oa(a){return"function"==ha(a)}function pa(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function A(a){return a[qa]||(a[qa]=++ra)}
var qa="closure_uid_"+(1E9*Math.random()>>>0),ra=0;function ta(a,b,c){return a.call.apply(a.bind,arguments)}function ua(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 B(a,b,c){B=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ta:ua;return B.apply(null,arguments)}function va(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 wa=Date.now||function(){return+new Date};
function C(a,b){var c=a.split("."),d=s;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 G(a,b){function c(){}c.prototype=b.prototype;a.F=b.prototype;a.prototype=new c};function xa(a){Error.captureStackTrace?Error.captureStackTrace(this,xa):this.stack=Error().stack||"";a&&(this.message=String(a))}G(xa,Error);xa.prototype.name="CustomError";function ya(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 za(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function Aa(a){if(!Ba.test(a))return a;-1!=a.indexOf("\x26")&&(a=a.replace(Ca,"\x26amp;"));-1!=a.indexOf("\x3c")&&(a=a.replace(Da,"\x26lt;"));-1!=a.indexOf("\x3e")&&(a=a.replace(Ea,"\x26gt;"));-1!=a.indexOf('"')&&(a=a.replace(Fa,"\x26quot;"));return a}
var Ca=/&/g,Da=/</g,Ea=/>/g,Fa=/\"/g,Ba=/[&<>\"]/;function Ga(a){a=t(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 Ha(a,b){for(var c=0,d=za(String(a)).split("."),e=za(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 r=n.exec(h)||["","",""],q=p.exec(m)||["","",""];if(0==r[0].length&&0==q[0].length)break;c=((0==r[1].length?0:parseInt(r[1],10))<(0==q[1].length?0:parseInt(q[1],10))?-1:(0==r[1].length?0:parseInt(r[1],10))>(0==q[1].length?0:parseInt(q[1],10))?1:0)||((0==r[2].length)<(0==q[2].length)?
-1:(0==r[2].length)>(0==q[2].length)?1:0)||(r[2]<q[2]?-1:r[2]>q[2]?1:0)}while(0==c)}return c};var Ia=Array.prototype,Ja=Ia.indexOf?function(a,b,c){return Ia.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(la(a))return la(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},Ka=Ia.forEach?function(a,b,c){Ia.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=la(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},La=Ia.map?function(a,b,c){return Ia.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),
f=la(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Ma=Ia.some?function(a,b,c){return Ia.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=la(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 Na(a,b){var c=Oa(a,b,void 0);return 0>c?null:la(a)?a.charAt(c):a[c]}function Oa(a,b,c){for(var d=a.length,e=la(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 Pa(a,b){var c=Ja(a,b),d;(d=0<=c)&&Ia.splice.call(a,c,1);return d}function Qa(a){return Ia.concat.apply(Ia,arguments)}function Ra(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 Sa(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(ia(d)||(e=ja(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 Ta(a,b,c,d){Ia.splice.apply(a,Ua(arguments,1))}function Ua(a,b,c){return 2>=arguments.length?Ia.slice.call(a,b):Ia.slice.call(a,b,c)}function Va(a,b){Ia.sort.call(a,b||Wa)}function Xa(a,b){if(!ja(a)||!ja(b)||a.length!=b.length)return!1;for(var c=a.length,d=Ya,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0}function Wa(a,b){return a>b?1:a<b?-1:0}function Ya(a,b){return a===b}
function Za(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];ia(d)?b.push.apply(b,Za.apply(null,d)):b.push(d)}return b};function $a(a,b,c){this.a=a;this.x=b;this.y=c}function ab(a,b,c,d){return t(d)?(d.a=a,d.x=b,d.y=c,d):new $a(a,b,c)}function bb(a,b,c){return a+"/"+b+"/"+c}$a.prototype.c=function(a){return t(a)?(a[0]=this.a,a[1]=this.x,a[2]=this.y,a):[this.a,this.x,this.y]};function cb(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("")}$a.prototype.toString=function(){return bb(this.a,this.x,this.y)};function db(a,b,c,d){this.a=a;this.d=b;this.b=c;this.c=d}function eb(a,b,c,d,e){return t(e)?(e.a=a,e.d=b,e.b=c,e.c=d,e):new db(a,b,c,d)}db.prototype.contains=function(a){return this.a<=a.x&&a.x<=this.d&&this.b<=a.y&&a.y<=this.c};function fb(a){this.c=a.html;this.a=t(a.tileRanges)?a.tileRanges:null};var gb,hb,ib,kb,lb,mb,nb;function ob(){return s.navigator?s.navigator.userAgent:null}function pb(){return s.navigator}kb=ib=hb=gb=!1;var qb;if(qb=ob()){var rb=pb();gb=0==qb.lastIndexOf("Opera",0);hb=!gb&&(-1!=qb.indexOf("MSIE")||-1!=qb.indexOf("Trident"));ib=!gb&&-1!=qb.indexOf("WebKit");kb=!gb&&!ib&&!hb&&"Gecko"==rb.product}var sb=gb,H=hb,ub=kb,vb=ib,wb,xb=pb();wb=xb&&xb.platform||"";lb=-1!=wb.indexOf("Mac");mb=-1!=wb.indexOf("Win");nb=-1!=wb.indexOf("Linux");
var yb=!!pb()&&-1!=(pb().appVersion||"").indexOf("X11");function zb(){var a=s.document;return a?a.documentMode:void 0}var Ab;a:{var Bb="",Cb;if(sb&&s.opera)var Db=s.opera.version,Bb="function"==typeof Db?Db():Db;else if(ub?Cb=/rv\:([^\);]+)(\)|;)/:H?Cb=/\b(?:MSIE|rv)\s+([^\);]+)(\)|;)/:vb&&(Cb=/WebKit\/(\S+)/),Cb)var Eb=Cb.exec(ob()),Bb=Eb?Eb[1]:"";if(H){var Fb=zb();if(Fb>parseFloat(Bb)){Ab=String(Fb);break a}}Ab=Bb}var Gb={};function Hb(a){return Gb[a]||(Gb[a]=0<=Ha(Ab,a))}
var Ib=s.document,Jb=Ib&&H?zb()||("CSS1Compat"==Ib.compatMode?parseInt(Ab,10):5):void 0;var Kb,Lb=!H||H&&9<=Jb;!ub&&!H||H&&H&&9<=Jb||ub&&Hb("1.9.1");H&&Hb("9");function Nb(a){a=a.className;return la(a)&&a.match(/\S+/g)||[]}function Ob(a,b){for(var c=Nb(a),d=Ua(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=Ja(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e}function Pb(a,b,c){for(var d=Nb(a),e=!1,f=0;f<d.length;f++)d[f]==b&&(Ta(d,f--,1),e=!0);e&&(d.push(c),a.className=d.join(" "))};function Qb(a,b,c){return Math.min(Math.max(a,b),c)}function Rb(a,b){var c=a%b;return 0>c*b?c+b:c}function Sb(a){return a*Math.PI/180};function Tb(a,b){this.x=t(a)?a:0;this.y=t(b)?b:0}l=Tb.prototype;l.J=function(){return new Tb(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=na(b)?b:a;this.x*=a;this.y*=c;return this};function Ub(a,b){this.width=a;this.height=b}l=Ub.prototype;l.J=function(){return new Ub(this.width,this.height)};l.aa=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=na(b)?b:a;this.width*=a;this.height*=c;return this};function Vb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Wb(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function Xb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Yb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Zb(a){for(var b in a)return!1;return!0}function $b(a){for(var b in a)delete a[b]}function ac(a,b){b in a&&delete a[b]}function I(a,b,c){return b in a?a[b]:c}function bc(a){var b={},c;for(c in a)b[c]=a[c];return b}var cc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function dc(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<cc.length;f++)c=cc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function ec(a){return a?new fc(gc(a)):Kb||(Kb=new fc)}function hc(a){return la(a)?document.getElementById(a):a}function ic(a,b){Vb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in jc?a.setAttribute(jc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}
var jc={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 kc(a){a=a.document.documentElement;return new Ub(a.clientWidth,a.clientHeight)}
function lc(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Lb&&g&&(g.name||g.type)){f=["\x3c",f];g.name&&f.push(' name\x3d"',Aa(g.name),'"');if(g.type){f.push(' type\x3d"',Aa(g.type),'"');var h={};dc(h,g);delete h.type;g=h}f.push("\x3e");f=f.join("")}f=e.createElement(f);g&&(la(g)?f.className=g:ia(g)?Ob.apply(null,[f].concat(g)):ic(f,g));2<d.length&&mc(e,f,d,2);return f}
function mc(a,b,c,d){function e(c){c&&b.appendChild(la(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];!ja(f)||pa(f)&&0<f.nodeType?e(f):Ka(nc(f)?Ra(f):f,e)}}function oc(a){return document.createElement(a)}function pc(a,b){mc(gc(a),a,arguments,1)}function qc(a){for(var b;b=a.firstChild;)a.removeChild(b)}function rc(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)}function sc(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}
function tc(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function uc(a){if(void 0!=a.firstElementChild)a=a.firstElementChild;else for(a=a.firstChild;a&&1!=a.nodeType;)a=a.nextSibling;return a}function vc(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 gc(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function nc(a){if(a&&"number"==typeof a.length){if(pa(a))return"function"==typeof a.item||"string"==typeof a.item;if(oa(a))return"function"==typeof a.item}return!1}function fc(a){this.a=a||s.document||document}fc.prototype.createTextNode=function(a){return this.a.createTextNode(String(a))};
function wc(a){var b=a.a;a=vb?b.body:b.documentElement;b=b.parentWindow||b.defaultView;return H&&Hb("10")&&b.pageYOffset!=a.scrollTop?new Tb(a.scrollLeft,a.scrollTop):new Tb(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}fc.prototype.appendChild=function(a,b){a.appendChild(b)};fc.prototype.contains=vc;var xc=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function yc(a,b){var c,d,e=xc.length;for(d=0;d<e;++d)try{if(c=a.getContext(xc[d],b),null!==c)return c}catch(f){}return null};var zc={},Ac=H&&!Hb("9.0")&&""!==Ab;zc.Bd=s.devicePixelRatio||1;zc.Cd="ArrayBuffer"in s;zc.dc=!1;zc.Dd=function(){if(!("HTMLCanvasElement"in s))return!1;try{var a=oc("CANVAS").getContext("2d");if(null===a)return!1;t(a.setLineDash)&&(zc.dc=!0);return!0}catch(b){return!1}}();zc.Ed="DeviceOrientationEvent"in s;zc.Le=!0;zc.Fd="geolocation"in s.navigator;zc.Gd=s.document&&"ontouchstart"in s.document.documentElement||!!s.navigator.msPointerEnabled;
zc.Hd=function(){if(!("WebGLRenderingContext"in s))return!1;try{var a=oc("CANVAS");return null!==yc(a,{af:!0})}catch(b){return!1}}();function Bc(){0!=Cc&&(this.si=Error().stack,Dc[A(this)]=this)}var Cc=0,Dc={};Bc.prototype.ca=!1;Bc.prototype.Ib=function(){if(!this.ca&&(this.ca=!0,this.A(),0!=Cc)){var a=A(this);delete Dc[a]}};function Ec(a,b){var c=va(Fc,b);a.S||(a.S=[]);a.S.push(B(c,void 0))}Bc.prototype.A=function(){if(this.S)for(;this.S.length;)this.S.shift()()};function Fc(a){a&&"function"==typeof a.Ib&&a.Ib()};function Gc(a,b){this.type=a;this.c=this.target=b}l=Gc.prototype;l.Ib=ba();l.Qa=!1;l.Jf=!1;l.ye=!0;l.Ea=function(){this.Qa=!0};l.M=function(){this.Jf=!0;this.ye=!1};function Hc(a){a.Ea()}function Ic(a){a.M()};var Jc=!H||H&&9<=Jb,Kc=!H||H&&9<=Jb,Lc=H&&!Hb("9");!vb||Hb("528");ub&&Hb("1.9b")||H&&Hb("8")||sb&&Hb("9.5")||vb&&Hb("528");ub&&!Hb("8")||H&&Hb("9");var Mc=H?"focusout":"DOMFocusOut";function Nc(a){Nc[" "](a);return a}Nc[" "]=fa;function Oc(a,b){a&&Pc(this,a,b)}G(Oc,Gc);var Qc=[1,4,2];l=Oc.prototype;l.target=null;l.If=null;l.Wd=0;l.Xd=0;l.clientX=0;l.clientY=0;l.$c=0;l.ad=0;l.Hf=0;l.Ca=0;l.Yc=0;l.Sb=!1;l.fa=!1;l.Da=!1;l.Zc=!1;l.wb=!1;l.Q=null;
function Pc(a,b,c){var d=a.type=b.type;Gc.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(ub){var e;a:{try{Nc(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.If=c;a.Wd=vb||void 0!==b.offsetX?b.offsetX:b.layerX;a.Xd=vb||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.$c=b.screenX||0;a.ad=b.screenY||0;a.Hf=b.button;a.Ca=
b.keyCode||0;a.Yc=b.charCode||("keypress"==d?b.keyCode:0);a.Sb=b.ctrlKey;a.fa=b.altKey;a.Da=b.shiftKey;a.Zc=b.metaKey;a.wb=lb?b.metaKey:b.ctrlKey;a.state=b.state;a.Q=b;b.defaultPrevented&&a.M();delete a.Qa}function Rc(a){return(Jc?0==a.Q.button:"click"==a.type?!0:!!(a.Q.button&Qc[0]))&&!(vb&&lb&&a.Sb)}l.Ea=function(){Oc.F.Ea.call(this);this.Q.stopPropagation?this.Q.stopPropagation():this.Q.cancelBubble=!0};
l.M=function(){Oc.F.M.call(this);var a=this.Q;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Lc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};l.df=k("Q");var Sc="closure_listenable_"+(1E6*Math.random()|0);function Tc(a){return!(!a||!a[Sc])}var Uc=0;function Vc(a,b,c,d,e,f){this.xa=a;this.a=b;this.src=c;this.type=d;this.capture=!!e;this.cb=f;this.key=++Uc;this.Ha=this.kb=!1}function Wc(a){a.Ha=!0;a.xa=null;a.a=null;a.src=null;a.cb=null};var Xc={},Yc={},Zc={},$c={};function J(a,b,c,d,e){if(ia(b)){for(var f=0;f<b.length;f++)J(a,b[f],c,d,e);return null}c=ad(c);return Tc(a)?a.ga(b,c,d,e):bd(a,b,c,!1,d,e)}
function bd(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");e=!!e;var g=Yc;b in g||(g[b]={H:0});g=g[b];e in g||(g[e]={H:0},g.H++);var g=g[e],h=A(a),m;if(g[h]){m=g[h];for(var n=0;n<m.length;n++)if(g=m[n],g.xa==c&&g.cb==f){if(g.Ha)break;d||(m[n].kb=!1);return m[n]}}else m=g[h]=[],g.H++;n=cd();g=new Vc(c,n,a,b,e,f);g.kb=d;n.src=a;n.xa=g;m.push(g);Zc[h]||(Zc[h]=[]);Zc[h].push(g);a.addEventListener?a.addEventListener(b,n,e):a.attachEvent(b in $c?$c[b]:$c[b]="on"+b,n);return Xc[g.key]=g}
function cd(){var a=dd,b=Kc?function(c){return a.call(b.src,b.xa,c)}:function(c){c=a.call(b.src,b.xa,c);if(!c)return c};return b}function ed(a,b,c,d,e){if(ia(b)){for(var f=0;f<b.length;f++)ed(a,b[f],c,d,e);return null}c=ad(c);return Tc(a)?a.W.add(b,c,!0,d,e):bd(a,b,c,!0,d,e)}function fd(a,b,c,d,e){if(ia(b))for(var f=0;f<b.length;f++)fd(a,b[f],c,d,e);else if(c=ad(c),Tc(a))a.ud(b,c,d,e);else if(d=!!d,a=gd(a,b,d))for(f=0;f<a.length;f++)if(a[f].xa==c&&a[f].capture==d&&a[f].cb==e){K(a[f]);break}}
function K(a){if(na(a)||!a||a.Ha)return!1;var b=a.src;if(Tc(b))return hd(b.W,a);var c=a.type,d=a.a,e=a.capture;b.removeEventListener?b.removeEventListener(c,d,e):b.detachEvent&&b.detachEvent(c in $c?$c[c]:$c[c]="on"+c,d);b=A(b);Zc[b]&&(d=Zc[b],Pa(d,a),0==d.length&&delete Zc[b]);Wc(a);if(d=Yc[c][e][b])Pa(d,a),0==d.length&&(delete Yc[c][e][b],Yc[c][e].H--),0==Yc[c][e].H&&(delete Yc[c][e],Yc[c].H--),0==Yc[c].H&&delete Yc[c];delete Xc[a.key];return!0}
function gd(a,b,c){var d=Yc;return b in d&&(d=d[b],c in d&&(d=d[c],a=A(a),d[a]))?d[a]:null}function id(a){if(Tc(a))return jd(a.W,void 0);a=A(a);var b=Zc[a];if(b){var c=t(void 0),d=t(void 0);return c&&d?(b=Yc[void 0],!!b&&!!b[void 0]&&a in b[void 0]):c||d?Ma(b,function(a){return c&&void 0==a.type||d&&void 0==a.capture}):!0}return!1}function kd(a,b,c){var d=1;b=A(b);if(a[b])for(a=Ra(a[b]),b=0;b<a.length;b++){var e=a[b];e&&!e.Ha&&(d&=!1!==ld(e,c))}return Boolean(d)}
function ld(a,b){var c=a.xa,d=a.cb||a.src;a.kb&&K(a);return c.call(d,b)}
function dd(a,b){if(a.Ha)return!0;var c=a.type,d=Yc;if(!(c in d))return!0;var d=d[c],e,f;if(!Kc){if(!(c=b))a:{for(var c=["window","event"],g=s;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 Oc;Pc(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 r=n.length-
1;!h.Qa&&0<=r;r--)h.c=n[r],e&=kd(f,n[r],h);if(g)for(f=d[!1],r=0;!h.Qa&&r<n.length;r++)h.c=n[r],e&=kd(f,n[r],h)}else e=ld(a,h)}finally{n&&(n.length=0)}return e}d=new Oc(b,this);return e=ld(a,d)}var md="__closure_events_fn_"+(1E9*Math.random()>>>0);function ad(a){return oa(a)?a:a[md]||(a[md]=function(b){return a.handleEvent(b)})};function nd(a){return function(){return a}}var od=nd(!1),pd=nd(!0);function qd(a){return a}function rd(a){return function(){throw a;}}function sd(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}function td(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 ud(a){this.src=a;this.a={};this.c=0}ud.prototype.add=function(a,b,c,d,e){var f=this.a[a];f||(f=this.a[a]=[],this.c++);var g=vd(f,b,d,e);-1<g?(a=f[g],c||(a.kb=!1)):(a=new Vc(b,null,this.src,a,!!d,e),a.kb=c,f.push(a));return a};ud.prototype.remove=function(a,b,c,d){if(!(a in this.a))return!1;var e=this.a[a];b=vd(e,b,c,d);return-1<b?(Wc(e[b]),Ia.splice.call(e,b,1),0==e.length&&(delete this.a[a],this.c--),!0):!1};
function hd(a,b){var c=b.type;if(!(c in a.a))return!1;var d=Pa(a.a[c],b);d&&(Wc(b),0==a.a[c].length&&(delete a.a[c],a.c--));return d}function jd(a,b){var c=t(b),d=t(void 0);return Wb(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 vd(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Ha&&f.xa==b&&f.capture==!!c&&f.cb==d)return e}return-1};function wd(){Bc.call(this);this.W=new ud(this);this.Me=this}G(wd,Bc);wd.prototype[Sc]=!0;l=wd.prototype;l.md=null;l.addEventListener=function(a,b,c,d){J(this,a,b,c,d)};l.removeEventListener=function(a,b,c,d){fd(this,a,b,c,d)};
function N(a,b){var c,d=a.md;if(d)for(c=[];d;d=d.md)c.push(d);var d=a.Me,e=b,f=e.type||e;if(la(e))e=new Gc(e,d);else if(e instanceof Gc)e.target=e.target||d;else{var g=e,e=new Gc(f,d);dc(e,g)}var g=!0,h;if(c)for(var m=c.length-1;!e.Qa&&0<=m;m--)h=e.c=c[m],g=xd(h,f,!0,e)&&g;e.Qa||(h=e.c=d,g=xd(h,f,!0,e)&&g,e.Qa||(g=xd(h,f,!1,e)&&g));if(c)for(m=0;!e.Qa&&m<c.length;m++)h=e.c=c[m],g=xd(h,f,!1,e)&&g;return g}
l.A=function(){wd.F.A.call(this);if(this.W){var a=this.W,b=0,c;for(c in a.a){for(var d=a.a[c],e=0;e<d.length;e++)++b,d[e].Ha=!0;delete a.a[c];a.c--}}this.md=null};l.ga=function(a,b,c,d){return this.W.add(a,b,!1,c,d)};l.ud=function(a,b,c,d){return this.W.remove(a,b,c,d)};function xd(a,b,c,d){b=a.W.a[b];if(!b)return!0;b=Ra(b);for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.Ha&&g.capture==c){var h=g.xa,m=g.cb||g.src;g.kb&&hd(a.W,g);e=!1!==h.call(m,d)&&e}}return e&&!1!=d.ye};function yd(){wd.call(this);this.c=0}G(yd,wd);l=yd.prototype;l.u=function(){++this.c;N(this,"change")};l.wh=function(a,b,c){return J(this,a,b,!1,c)};l.Ch=function(a,b,c){return ed(this,a,b,!1,c)};l.Wh=function(a,b,c){fd(this,a,b,!1,c)};l.Xh=function(a){K(a)};function zd(a,b){Gc.call(this,a);this.key=b}G(zd,Gc);function Ad(a,b){this.target=a;this.key=b;this.c=this.a=qd}Ad.prototype.transform=function(a,b){this.a=a;this.c=b;this.target.ed(this.key)};function P(a){yd.call(this);this.e={};this.h={};this.U={};this.ja={};t(a)&&this.Y(a)}G(P,yd);var Bd={},Dd={},Ed={};function Fd(a){return Bd.hasOwnProperty(a)?Bd[a]:Bd[a]="change:"+a.toLowerCase()}l=P.prototype;
l.We=function(a,b,c){c=c||a;this.td(a);var d=Fd(c);this.ja[a]=J(b,d,function(){Gd(this,a)},void 0,this);this.U[a]=J(b,"beforepropertychange",Hd(a,c),void 0,this);b=new Ad(b,c);this.h[a]=b;Gd(this,a);return b};function Hd(a,b){return function(c){c.key===b&&N(this,new zd("beforepropertychange",a))}}
l.s=function(a){var b,c=this.h;if(c.hasOwnProperty(a)){a=c[a];b=a.target;var c=a.key,d=Dd.hasOwnProperty(c)?Dd[c]:Dd[c]="get"+(c.substr(0,1).toUpperCase()+c.substr(1)),d=I(b,d);b=t(d)?d.call(b):b.s(c);b=a.c(b)}else this.e.hasOwnProperty(a)&&(b=this.e[a]);return b};l.Aa=function(){var a=this.h,b;if(Zb(this.e)){if(Zb(a))return[];b=a}else if(Zb(a))b=this.e;else{b={};for(var c in this.e)b[c]=!0;for(c in a)b[c]=!0}return Yb(b)};
l.Qb=function(){var a={},b;for(b in this.e)a[b]=this.e[b];for(b in this.h)a[b]=this.s(b);return a};l.ed=function(a){var b=this.h;b.hasOwnProperty(a)?(a=b[a],a.target.ed(a.key)):Gd(this,a)};function Gd(a,b){var c=Fd(b);N(a,c);N(a,new zd("propertychange",b))}
l.t=function(a,b){N(this,new zd("beforepropertychange",a));var c=this.h;if(c.hasOwnProperty(a)){var d=c[a],c=d.target,e=d.key;b=d.a(b);d=Ed.hasOwnProperty(e)?Ed[e]:Ed[e]="set"+(e.substr(0,1).toUpperCase()+e.substr(1));d=I(c,d);t(d)?d.call(c,b):c.t(e,b)}else this.e[a]=b,Gd(this,a)};l.Y=function(a){for(var b in a)this.t(b,a[b])};l.td=function(a){var b=this.ja,c=b[a];c&&(delete b[a],K(c),b=this.s(a),delete this.h[a],this.e[a]=b);if(b=this.U[a])K(b),delete this.U[a]};l.Yh=function(){for(var a in this.ja)this.td(a)};function Id(a,b,c){Gc.call(this,a,c);this.element=b}G(Id,Gc);function Q(a){P.call(this);this.a=a||[];Jd(this)}G(Q,P);l=Q.prototype;l.clear=function(){for(;0<this.Na();)this.pop()};l.sg=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){Ka(this.a,a,b)};l.tg=k("a");l.Td=function(a){return this.a[a]};l.Na=function(){return this.s("length")};l.uc=function(a,b){Ta(this.a,a,0,b);Jd(this);N(this,new Id("add",b,this))};
l.pop=function(){return this.qd(this.Na()-1)};l.push=function(a){var b=this.a.length;this.uc(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.qd(c)};l.qd=function(a){var b=this.a[a];Ia.splice.call(this.a,a,1);Jd(this);N(this,new Id("remove",b,this));return b};l.Ae=function(a,b){var c=this.Na();if(a<c)c=this.a[a],this.a[a]=b,N(this,new Id("remove",c,this)),N(this,new Id("add",b,this));else{for(;c<a;++c)this.uc(c,void 0);this.uc(a,b)}};
function Jd(a){a.t("length",a.a.length)};function Kd(a){P.call(this);a=t(a)?a:{};this.a=null;J(this,Fd("tracking"),this.l,!1,this);this.b(t(a.tracking)?a.tracking:!1)}G(Kd,P);Kd.prototype.A=function(){this.b(!1);Kd.F.A.call(this)};
Kd.prototype.n=function(a){a=a.Q;if(null!=a.alpha){var b=Sb(a.alpha);this.t("alpha",b);"boolean"==typeof a.absolute&&a.absolute?this.t("heading",b):null!=a.webkitCompassHeading&&(null!=a.webkitCompassAccuracy&&-1!=a.webkitCompassAccuracy)&&this.t("heading",Sb(a.webkitCompassHeading))}null!=a.beta&&this.t("beta",Sb(a.beta));null!=a.gamma&&this.t("gamma",Sb(a.gamma))};Kd.prototype.f=function(){return this.s("alpha")};Kd.prototype.getAlpha=Kd.prototype.f;Kd.prototype.g=function(){return this.s("beta")};
Kd.prototype.getBeta=Kd.prototype.g;Kd.prototype.i=function(){return this.s("gamma")};Kd.prototype.getGamma=Kd.prototype.i;Kd.prototype.k=function(){return this.s("heading")};Kd.prototype.getHeading=Kd.prototype.k;Kd.prototype.d=function(){return this.s("tracking")};Kd.prototype.getTracking=Kd.prototype.d;Kd.prototype.l=function(){if(zc.Ed){var a=this.d();a&&null===this.a?this.a=J(s,"deviceorientation",this.n,!1,this):a||null===this.a||(K(this.a),this.a=null)}};
Kd.prototype.b=function(a){this.t("tracking",a)};Kd.prototype.setTracking=Kd.prototype.b;function Ld(){yd.call(this);this.extent=void 0;this.e=-1;this.f={};this.i=this.g=0}G(Ld,yd);Ld.prototype.r=function(a,b){var c=t(b)?b:[NaN,NaN];this.la(a[0],a[1],c,Infinity);return c};Ld.prototype.Va=od;var Md={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"};function Nd(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Nd.prototype.a=4;Nd.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]};Nd.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(Nd.BYTES_PER_ELEMENT=4,Nd.prototype.BYTES_PER_ELEMENT=Nd.prototype.a,Nd.prototype.set=Nd.prototype.c,Nd.prototype.toString=Nd.prototype.toString,C("Float32Array",Nd));function Od(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Od.prototype.a=8;Od.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]};Od.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{Od.BYTES_PER_ELEMENT=8}catch(Pd){}Od.prototype.BYTES_PER_ELEMENT=Od.prototype.a;Od.prototype.set=Od.prototype.c;Od.prototype.toString=Od.prototype.toString;C("Float64Array",Od)};function Qd(a,b,c,d,e){a[0]=b;a[1]=c;a[2]=d;a[3]=e};function Rd(){var a=Array(16);Sd(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function Td(){var a=Array(16);Sd(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function Sd(a,b,c,d,e,f,g,h,m,n,p,r,q,u,x,w,v){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]=r;a[11]=q;a[12]=u;a[13]=x;a[14]=w;a[15]=v}
function Ud(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 Vd(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 Wd(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],r=a[8],q=a[9],u=a[10],x=a[11],w=a[12],v=a[13],y=a[14];a=a[15];var z=b[0],D=b[1],E=b[2],L=b[3],F=b[4],O=b[5],aa=b[6],sa=b[7],ma=b[8],M=b[9],ka=b[10],ea=b[11],Mb=b[12],jb=b[13],tb=b[14];b=b[15];c[0]=d*z+h*D+r*E+w*L;c[1]=e*z+m*D+q*E+v*L;c[2]=f*z+n*D+u*E+y*L;c[3]=g*z+p*D+x*E+a*L;c[4]=d*F+h*O+r*aa+w*sa;c[5]=e*F+m*O+q*aa+v*sa;c[6]=f*F+n*O+u*aa+y*sa;c[7]=g*F+p*O+x*aa+a*sa;c[8]=d*ma+h*M+r*ka+w*ea;c[9]=e*ma+m*M+q*ka+v*ea;c[10]=
f*ma+n*M+u*ka+y*ea;c[11]=g*ma+p*M+x*ka+a*ea;c[12]=d*Mb+h*jb+r*tb+w*b;c[13]=e*Mb+m*jb+q*tb+v*b;c[14]=f*Mb+n*jb+u*tb+y*b;c[15]=g*Mb+p*jb+x*tb+a*b}function Xd(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 Yd(a,b,c){Sd(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 Zd(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),r=Math.sin(b);a[0]=c*p+g*r;a[1]=d*p+h*r;a[2]=e*p+m*r;a[3]=f*p+n*r;a[4]=c*-r+g*p;a[5]=d*-r+h*p;a[6]=e*-r+m*p;a[7]=f*-r+n*p}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);var $d=/^#(?:[0-9a-f]{3}){1,2}$/i,ae=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,be=/^(?: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 ce(a){if(!la(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 ee=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=de(c);a[c]=e;++b}t(d)&&(d[0]=e[0],d[1]=e[1],d[2]=e[2],d[3]=e[3],e=d);return e}}();
function de(a){var b=!1;Md.hasOwnProperty(a)&&(a=Md[a],b=!0);var c,d;if(b||$d.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=be.exec(a))return b=Number(d[1]),c=Number(d[2]),a=Number(d[3]),d=Number(d[4]),b=[b,c,a,d],fe(b,b);if(d=ae.exec(a))return b=Number(d[1]),c=Number(d[2]),a=Number(d[3]),b=[b,c,a,1],fe(b,b);throw Error(a+" is not a valid color");}
function fe(a,b){var c=t(b)?b:[];c[0]=Qb(a[0]+0.5|0,0,255);c[1]=Qb(a[1]+0.5|0,0,255);c[2]=Qb(a[2]+0.5|0,0,255);c[3]=Qb(a[3],0,1);return c};var ge=ee("black"),he=[],ie=[0,0,0,1];function je(a){a=t(a)?a:{};this.a=t(a.color)?a.color:null}je.prototype.c=k("a");function ke(a){this.i=a.opacity;this.k=a.rotateWithView;this.e=a.rotation;this.f=a.scale;this.l=a.Fe}ke.prototype.S=k("e");ke.prototype.o=k("f");function le(a){a=t(a)?a:{};this.a=t(a.color)?a.color:null;this.b=a.lineCap;this.d=t(a.lineDash)?a.lineDash:null;this.e=a.lineJoin;this.f=a.miterLimit;this.c=a.width}l=le.prototype;l.hh=k("a");l.sf=k("b");l.ih=k("d");l.tf=k("e");l.wf=k("f");l.jh=k("c");function me(a){a=t(a)?a:{};this.g=oc("CANVAS");this.c=null;this.b=t(a.fill)?a.fill:null;this.d=a.radius;this.a=t(a.stroke)?a.stroke:null;a=this.g;var b,c;null===this.a?c=0:(b=ce(this.a.a),c=this.a.c,t(c)||(c=1));var d=2*(this.d+c)+1;a.height=d;a.width=d;var e=a.getContext("2d");e.arc(d/2,d/2,this.d,0,2*Math.PI,!0);null!==this.b&&(e.fillStyle=ce(this.b.a),e.fill());null!==this.a&&(e.strokeStyle=b,e.lineWidth=c,e.stroke());null===this.b?(a=this.c=oc("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=ge,e.fill(),null!==this.a&&(e.strokeStyle=b,e.lineWidth=c,e.stroke())):this.c=a;this.h=[d/2,d/2];this.n=[d,d];ke.call(this,{opacity:1,rotateWithView:!1,rotation:0,scale:1,Fe:void 0})}G(me,ke);l=me.prototype;l.Pb=k("h");l.dh=k("b");l.qe=k("c");l.Vb=k("g");l.re=ca(2);l.eh=k("d");l.vb=k("n");l.fh=k("a");l.ge=fa;l.se=fa;l.He=fa;function ne(a){a=t(a)?a:{};this.d=t(a.fill)?a.fill:null;this.e=t(a.image)?a.image:null;this.b=t(a.stroke)?a.stroke:null;this.c=t(a.text)?a.text:null;this.a=a.zIndex}l=ne.prototype;l.kh=k("d");l.lh=k("e");l.mh=k("b");l.nh=k("c");l.Ff=k("a");function R(a){P.call(this);this.X=void 0;this.a="geometry";this.g=null;this.f=void 0;this.d=null;J(this,Fd(this.a),this.tc,!1,this);null!=a?a instanceof Ld?this.fb(a):this.Y(a):this.fb(null)}G(R,P);R.prototype.L=function(){return this.s(this.a)};R.prototype.getGeometry=R.prototype.L;l=R.prototype;l.mf=k("X");l.lf=k("a");l.zg=k("g");l.Ag=k("f");l.Pf=function(){this.u()};l.tc=function(){null!==this.d&&(K(this.d),this.d=null);var a=this.L();null!=a&&(this.d=J(a,"change",this.Pf,!1,this));this.u()};
l.fb=function(a){this.t(this.a,a)};R.prototype.setGeometry=R.prototype.fb;R.prototype.i=function(a){this.g=a;oa(a)||(a=ia(a)?a:[a],a=nd(a));this.f=a;this.u()};R.prototype.b=function(a){this.X=a};R.prototype.k=function(a){fd(this,Fd(this.a),this.tc,!1,this);this.a=a;J(this,Fd(this.a),this.tc,!1,this);this.tc()};var oe=function(){var a=new je({color:"rgba(255,255,255,0.4)"}),b=new le({color:"#3399CC",width:1.25}),c=[new ne({image:new me({fill:a,stroke:b,radius:5}),fill:a,stroke:b})];return function(){return c}}();
function pe(a,b){var c=a.f;t(c)||(c=oe);return c.call(a,b)}function qe(a){oa(a)||(a=ia(a)?a:[a],a=nd(a));return a};function re(a,b,c,d,e,f){Gc.call(this,a,b);this.vectorContext=c;this.frameState=d;this.context=e;this.glContext=f}G(re,Gc);function se(a){a=t(a)?a:{};this.g=this.d=this.f=this.c=this.b=this.a=null;this.e=t(a.style)?qe(a.style):void 0;t(a.features)?ia(a.features)?this.Zb(new Q(Ra(a.features))):this.Zb(a.features):this.Zb(new Q);t(a.map)&&this.setMap(a.map)}l=se.prototype;l.ke=function(a){this.a.push(a)};l.ug=k("a");l.le=function(){te(this)};l.Nf=function(a){a=a.element;this.c[A(a).toString()]=J(a,"change",this.le,!1,this);te(this)};l.Of=function(a){a=A(a.element).toString();K(this.c[a]);delete this.c[a];te(this)};
l.xg=function(a){if(null!==this.a&&t(this.e)){var b=a.frameState.w.resolution,c=a.vectorContext,d,e,f;this.a.forEach(function(a){f=this.e(a,b);if(null!=f)for(e=f.length,d=0;d<e;++d)c.Sc(a,f[d])},this)}};l.fd=function(a){this.a.remove(a)};function te(a){null===a.f||a.f.I()}
l.Zb=function(a){null!==this.b&&(Ka(this.b,K),this.b=null);null!==this.c&&(Ka(Xb(this.c),K),this.c=null);this.a=a;if(null!==a){this.b=[J(a,"add",this.Nf,!1,this),J(a,"remove",this.Of,!1,this)];this.c={};a=a.a;var b,c=a.length,d;for(b=0;b<c;++b)d=a[b],this.c[A(d).toString()]=J(d,"change",this.le,!1,this)}te(this)};l.setMap=function(a){null!==this.d&&(K(this.d),this.d=null);te(this);this.f=a;null!==a&&(this.d=J(a,"postcompose",this.xg,!1,this),a.I())};l.yg=function(a){this.g=a;this.e=qe(a);te(this)};
l.vg=k("g");l.wg=k("e");function ue(a,b){a[0]+=b[0];a[1]+=b[1]}function ve(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 we(a,b){var c=Rb(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 xe(a,b,c){return t(a)?b.replace("{x}",a[0].toFixed(c)).replace("{y}",a[1].toFixed(c)):""}function ye(a,b){for(var c=!0,d=a.length-1;0<=d;--d)if(a[d]!=b[d]){c=!1;break}return c}function ze(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 Ae(a,b){var c=a[0]-b[0],d=a[1]-b[1];return c*c+d*d}function Be(a,b){return xe(a,"{x}, {y}",b)};function Ce(a){for(var b=De(),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 Ee(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 Fe(d,e,a,b,c)}function Ge(a,b,c){return t(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 He(a,b){return t(b)?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a.slice()}function Ie(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 Je(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]}function De(){return[Infinity,Infinity,-Infinity,-Infinity]}function Fe(a,b,c,d,e){return t(e)?(e[0]=a,e[1]=b,e[2]=c,e[3]=d,e):[a,b,c,d]}function Ke(a){return Fe(Infinity,Infinity,-Infinity,-Infinity,a)}
function Le(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]}function Me(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 Ne(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 Oe(a){return[a[0],a[1]]}function Pe(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}
function Qe(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 Ee(e,d,void 0)}function Re(a){return a[3]-a[1]}function Se(a){return[a[0],a[3]]}function Te(a){return a[2]-a[0]}function Ue(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function Ve(a){return a[2]<a[0]||a[3]<a[1]}function We(a,b){return t(b)?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a}
function Xe(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 Ye(a,b){return Ue(a,b)&&(a[0]==b[2]||a[2]==b[0]||a[1]==b[3]||a[3]==b[1])}function Ze(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 Ee([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 $e(a,b,c){var d=Sb(b[1]),e=Sb(c[1]),f=(e-d)/2;b=Sb(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 af=new function(){this.radius=6370997};var bf={},cf="object"==typeof Proj4js;bf.degrees=2*Math.PI*af.radius/360;bf.ft=0.3048;bf.m=1;function df(a){this.a=a.code;this.ta=a.units;this.k=t(a.extent)?a.extent:null;this.e=t(a.axisOrientation)?a.axisOrientation:"enu";this.i=t(a.global)?a.global:!1;this.f=null}df.prototype.h=k("a");df.prototype.p=k("k");df.prototype.l=k("ta");df.prototype.c=function(){return bf[this.ta]};function ef(a,b){var c={units:a.units,axisOrientation:a.axis};dc(c,b);df.call(this,c);this.g=a;this.d=null}G(ef,df);
ef.prototype.c=function(){var a=this.g.to_meter;t(a)||(a=bf[this.ta]);return a};ef.prototype.b=function(a,b){if("degrees"==this.ta)return a;null===this.d&&(this.d=ff(this,gf({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.d(c,c,2),d=$e(af,c.slice(0,2),c.slice(2,4)),c=$e(af,c.slice(4,6),c.slice(6,8)),d=(d+c)/2;"ft"==this.ta&&(d/=0.3048);return d};function hf(a){return a.g}var jf={},kf={},lf={};
function mf(a){nf(a);Ka(a,function(b){Ka(a,function(a){b!==a&&of(b,a,pf)})})}function qf(){var a=rf,b=sf,c=tf;Ka(uf,function(d){Ka(a,function(a){of(d,a,b);of(a,d,c)})})}function vf(a){kf[a.a]=a;of(a,a,pf)}function nf(a){Ka(a,function(a){vf(a)})}function wf(a){return null!=a?la(a)?xf(a):a:xf("EPSG:3857")}function of(a,b,c){a=a.a;b=b.a;a in lf||(lf[a]={});lf[a][b]=c}function xf(a){var b;a instanceof df?b=a:la(a)?(b=kf[a],cf&&!t(b)&&(b=gf({code:a,extent:null})),t(b)||(b=null)):b=null;return b}
function gf(a){var b=a.code,c=jf[b];if(!t(c)){var d=new Proj4js.Proj(b),e=d.srsCode,c=jf[e];t(c)||(a=bc(a),a.code=e,c=new ef(d,a),jf[e]=c);jf[b]=c}return c}function yf(a,b){var c=xf(a),d=xf(b);return ff(c,d)}
function ff(a,b){var c=a.a,d=b.a,e;c in lf&&d in lf[c]&&(e=lf[c][d]);if(cf&&!t(e)){var f=hf(a instanceof ef?a:gf({code:c,extent:null})),g=hf(b instanceof ef?b:gf({code:d,extent:null}));e=function(a,b,c){var d=a.length;c=1<c?c:2;t(b)||(b=2<c?a.slice():Array(d));for(var e,q=0;q<d;q+=c)e=new Proj4js.Point(a[q],a[q+1]),e=Proj4js.transform(f,g,e),b[q]=e.x,b[q+1]=e.y;return b};of(a,b,e)}t(e)||(e=zf);return e}function zf(a,b){if(t(b)&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}
function pf(a,b){var c;if(t(b)){c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c};function S(a){P.call(this);a=t(a)?a:{};this.a=null;this.d=zf;this.b=void 0;J(this,Fd("projection"),this.Bg,!1,this);J(this,Fd("tracking"),this.Cg,!1,this);t(a.projection)&&this.l(xf(a.projection));t(a.trackingOptions)&&this.n(a.trackingOptions);this.f(t(a.tracking)?a.tracking:!1)}G(S,P);l=S.prototype;l.A=function(){this.f(!1);S.F.A.call(this)};l.Bg=function(){var a=this.i();null!=a&&(this.d=ff(xf("EPSG:4326"),a),null===this.a||this.t("position",this.d(this.a)))};
l.Cg=function(){if(zc.Fd){var a=this.k();a&&!t(this.b)?this.b=s.navigator.geolocation.watchPosition(B(this.Dh,this),B(this.Eh,this),this.g()):!a&&t(this.b)&&(s.navigator.geolocation.clearWatch(this.b),this.b=void 0)}};
l.Dh=function(a){a=a.coords;this.t("accuracy",a.accuracy);this.t("altitude",null===a.altitude?void 0:a.altitude);this.t("altitudeAccuracy",null===a.altitudeAccuracy?void 0:a.altitudeAccuracy);this.t("heading",null===a.heading?void 0:Sb(a.heading));null===this.a?this.a=[a.longitude,a.latitude]:(this.a[0]=a.longitude,this.a[1]=a.latitude);this.t("position",this.d(this.a));this.t("speed",null===a.speed?void 0:a.speed)};l.Eh=function(a){a.type="error";N(this,a)};l.cf=function(){return this.s("accuracy")};
S.prototype.getAccuracy=S.prototype.cf;S.prototype.o=function(){return this.s("altitude")};S.prototype.getAltitude=S.prototype.o;S.prototype.q=function(){return this.s("altitudeAccuracy")};S.prototype.getAltitudeAccuracy=S.prototype.q;S.prototype.B=function(){return this.s("heading")};S.prototype.getHeading=S.prototype.B;S.prototype.G=function(){return this.s("position")};S.prototype.getPosition=S.prototype.G;S.prototype.i=function(){return this.s("projection")};S.prototype.getProjection=S.prototype.i;
S.prototype.r=function(){return this.s("speed")};S.prototype.getSpeed=S.prototype.r;S.prototype.k=function(){return this.s("tracking")};S.prototype.getTracking=S.prototype.k;S.prototype.g=function(){return this.s("trackingOptions")};S.prototype.getTrackingOptions=S.prototype.g;S.prototype.l=function(a){this.t("projection",a)};S.prototype.setProjection=S.prototype.l;S.prototype.f=function(a){this.t("tracking",a)};S.prototype.setTracking=S.prototype.f;
S.prototype.n=function(a){this.t("trackingOptions",a)};S.prototype.setTrackingOptions=S.prototype.n;function Af(a,b){wd.call(this);this.a=a;this.state=b}G(Af,wd);Af.prototype.d=function(){return A(this).toString()};Af.prototype.i=k("a");function Cf(a,b,c,d,e){Af.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}G(Cf,Af);Cf.prototype.b=function(a){if(t(a)){var b=A(a);if(b in this.f)return this.f[b];a=Zb(this.f)?this.c:this.c.cloneNode(!1);return this.f[b]=a}return this.c};Cf.prototype.d=k("h");Cf.prototype.k=function(){this.state=3;Ka(this.e,K);this.e=null;N(this,"change")};
Cf.prototype.l=function(){t(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;Ka(this.e,K);this.e=null;N(this,"change")};function Df(a,b){this.f=a;this.e=b;this.a=[];this.c=[];this.b={}}Df.prototype.clear=function(){this.a.length=0;this.c.length=0;$b(this.b)};function Ef(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(),Ff(a,0));b=a.e(d);delete a.b[b];return d}function Gf(a,b){var c=a.f(b);Infinity!=c&&(a.a.push(b),a.c.push(c),a.b[a.e(b)]=!0,Hf(a,0,a.a.length-1))}Df.prototype.wa=function(){return this.a.length};Df.prototype.aa=function(){return 0===this.a.length};
function Ff(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;Hf(a,h,b)}function Hf(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 If(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--)Ff(a,b)};function Jf(a,b){Df.call(this,function(b){return a.apply(null,b)},function(a){return a[0].d()});this.h=b;this.d=0}G(Jf,Df);Jf.prototype.g=function(){--this.d;this.h()};function Kf(a){yd.call(this);this.l=xf(a.projection);this.O=t(a.extent)?a.extent:t(a.projection)?this.l.p():null;this.d=t(a.attributions)?a.attributions:null;this.q=a.logo;this.f=t(a.state)?a.state:1}G(Kf,yd);Kf.prototype.k=fa;Kf.prototype.p=k("O");Kf.prototype.V=k("f");function Lf(a,b){a.f=b;a.u()};function T(a){P.call(this);a=bc(a);a.brightness=t(a.brightness)?a.brightness:0;a.contrast=t(a.contrast)?a.contrast:1;a.hue=t(a.hue)?a.hue:0;a.opacity=t(a.opacity)?a.opacity:1;a.saturation=t(a.saturation)?a.saturation:1;a.visible=t(a.visible)?a.visible:!0;a.maxResolution=t(a.maxResolution)?a.maxResolution:Infinity;a.minResolution=t(a.minResolution)?a.minResolution:0;this.Y(a)}G(T,P);T.prototype.i=function(){return this.s("brightness")};T.prototype.getBrightness=T.prototype.i;T.prototype.k=function(){return this.s("contrast")};
T.prototype.getContrast=T.prototype.k;T.prototype.n=function(){return this.s("hue")};T.prototype.getHue=T.prototype.n;function Mf(a){var b=a.i(),c=a.k(),d=a.n(),e=a.G(),f=a.B(),g=a.Xc(),h=a.b(),m=a.o();a=a.q();return{brightness:t(b)?Qb(b,-1,1):0,contrast:t(c)?Math.max(c,0):1,hue:t(d)?d:0,opacity:t(e)?Qb(e,0,1):1,saturation:t(f)?Math.max(f,0):1,sd:g,visible:t(h)?!!h:!0,maxResolution:t(m)?m:Infinity,minResolution:t(a)?Math.max(a,0):0}}T.prototype.o=function(){return this.s("maxResolution")};
T.prototype.getMaxResolution=T.prototype.o;T.prototype.q=function(){return this.s("minResolution")};T.prototype.getMinResolution=T.prototype.q;T.prototype.G=function(){return this.s("opacity")};T.prototype.getOpacity=T.prototype.G;T.prototype.B=function(){return this.s("saturation")};T.prototype.getSaturation=T.prototype.B;T.prototype.b=function(){return this.s("visible")};T.prototype.getVisible=T.prototype.b;T.prototype.Ua=function(a){this.t("brightness",a)};T.prototype.setBrightness=T.prototype.Ua;
T.prototype.jb=function(a){this.t("contrast",a)};T.prototype.setContrast=T.prototype.jb;T.prototype.Jc=function(a){this.t("hue",a)};T.prototype.setHue=T.prototype.Jc;T.prototype.Kc=function(a){this.t("maxResolution",a)};T.prototype.setMaxResolution=T.prototype.Kc;T.prototype.Lc=function(a){this.t("minResolution",a)};T.prototype.setMinResolution=T.prototype.Lc;T.prototype.Mc=function(a){this.t("opacity",a)};T.prototype.setOpacity=T.prototype.Mc;T.prototype.Oc=function(a){this.t("saturation",a)};
T.prototype.setSaturation=T.prototype.Oc;T.prototype.Pc=function(a){this.t("visible",a)};T.prototype.setVisible=T.prototype.Pc;function Nf(a){var b=bc(a);delete b.source;T.call(this,b);this.a=a.source;J(this.a,"change",this.Ng,!1,this)}G(Nf,T);l=Nf.prototype;l.Wc=function(a){a=t(a)?a:[];a.push(this);return a};l.Vc=function(a){a=t(a)?a:{layers:[],$:[]};a.layers.push(this);a.$.push(Mf(this));return a};l.Mg=k("a");l.Xc=function(){return this.a.f};l.Ng=function(){this.u()};function Of(){P.call(this);this.k=[0,0]}G(Of,P);Of.prototype.N=ca(null);Of.prototype.gd=ca(!1);function Pf(a,b){a.k[1]+=b};function Qf(a){return 1-Math.pow(1-a,3)};function Rf(a){return 3*a*a-2*a*a*a}function Sf(a){return a}function Tf(a){return 0.5>a?Rf(2*a):1-Rf(2*(a-0.5))};function Uf(a){var b=a.source,c=t(a.start)?a.start:wa(),d=b[0],e=b[1],f=t(a.duration)?a.duration:1E3,g=t(a.easing)?a.easing:Rf;return function(a,b){if(b.time<c)return b.da=!0,b.P[0]+=1,!0;if(b.time<c+f){var n=1-g((b.time-c)/f),p=d-b.w.center[0],r=e-b.w.center[1];b.da=!0;b.w.center[0]+=n*p;b.w.center[1]+=n*r;b.P[0]+=1;return!0}return!1}}
function Vf(a){var b=a.rotation,c=t(a.start)?a.start:wa(),d=t(a.duration)?a.duration:1E3,e=t(a.easing)?a.easing:Rf;return function(a,g){if(g.time<c)return g.da=!0,g.P[0]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),m=b-g.w.rotation;g.da=!0;g.w.rotation+=h*m;g.P[0]+=1;return!0}return!1}}
function Wf(a){var b=a.resolution,c=t(a.start)?a.start:wa(),d=t(a.duration)?a.duration:1E3,e=t(a.easing)?a.easing:Rf;return function(a,g){if(g.time<c)return g.da=!0,g.P[0]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),m=b-g.w.resolution;g.da=!0;g.w.resolution+=h*m;g.P[0]+=1;return!0}return!1}};function Xf(a,b,c){this.e=a;this.d=b;this.f=c;this.a=[];this.c=this.b=0}Xf.prototype.update=function(a,b){this.a.push(a,b,wa())};function Yf(a){var b=wa()-a.f,c=a.a.length-3;if(a.a[c+2]<b)return!1;for(var d=c-3;0<=d&&a.a[d+2]>b;)d-=3;if(0<=d){var b=a.a[c+2]-a.a[d+2],e=a.a[c]-a.a[d],c=a.a[c+1]-a.a[d+1];a.b=Math.atan2(c,e);a.c=Math.sqrt(e*e+c*c)/b;return a.c>a.d}return!1}
function Zf(a,b){var c=a.e,d=a.c,e=a.d,f=Math.log(a.d/a.c)/a.e;return Uf({source:b,duration:f,easing:function(a){return d*(Math.exp(c*a*f)-1)/(e-d)}})};function $f(a){if("function"==typeof a.Ba)return a.Ba();if(la(a))return a.split("");if(ja(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Xb(a)}function ag(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(ja(a)||la(a))Ka(a,b,c);else{var d;if("function"==typeof a.Aa)d=a.Aa();else if("function"!=typeof a.Ba)if(ja(a)||la(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f)}else d=Yb(a);else d=void 0;for(var e=$f(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)}};function bg(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)cg(this,arguments[d],arguments[d+1])}else if(a){a instanceof bg?(c=a.Aa(),d=a.Ba()):(c=Yb(a),d=Xb(a));for(var e=0;e<c.length;e++)cg(this,c[e],d[e])}}l=bg.prototype;l.H=0;l.xd=0;l.wa=k("H");l.Ba=function(){dg(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.c[this.a[b]]);return a};l.Aa=function(){dg(this);return this.a.concat()};l.aa=function(){return 0==this.H};
l.clear=function(){this.c={};this.xd=this.H=this.a.length=0};l.remove=function(a){return eg(this.c,a)?(delete this.c[a],this.H--,this.xd++,this.a.length>2*this.H&&dg(this),!0):!1};function dg(a){if(a.H!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];eg(a.c,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.H!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],eg(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function fg(a,b){return eg(a.c,b)?a.c[b]:void 0}
function cg(a,b,c){eg(a.c,b)||(a.H++,a.a.push(b),a.xd++);a.c[b]=c}l.J=function(){return new bg(this)};function eg(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var gg=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?\x3d[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function hg(a){if(ig){ig=!1;var b=s.location;if(b){var c=b.href;if(c&&(c=(c=hg(c)[3]||null)&&decodeURIComponent(c))&&c!=b.hostname)throw ig=!0,Error();}}return a.match(gg)}var ig=vb;function jg(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 kg(a,b,c){if(ia(b))for(var d=0;d<b.length;d++)kg(a,String(b[d]),c);else null!=b&&c.push("\x26",a,""===b?"":"\x3d",encodeURIComponent(String(b)))}function lg(a,b){for(var c in b)kg(c,b[c],a);return a};function mg(a,b){var c;if(a instanceof mg)this.$a=t(b)?b:a.$a,ng(this,a.Ra),c=a.hb,og(this),this.hb=c,c=a.za,og(this),this.za=c,pg(this,a.xb),c=a.ya,og(this),this.ya=c,qg(this,a.a.J()),c=a.Wa,og(this),this.Wa=c;else if(a&&(c=hg(String(a)))){this.$a=!!b;ng(this,c[1]||"",!0);var d=c[2]||"";og(this);this.hb=d?decodeURIComponent(d):"";d=c[3]||"";og(this);this.za=d?decodeURIComponent(d):"";pg(this,c[4]);d=c[5]||"";og(this);this.ya=d?decodeURIComponent(d):"";qg(this,c[6]||"",!0);c=c[7]||"";og(this);this.Wa=
c?decodeURIComponent(c):""}else this.$a=!!b,this.a=new rg(null,0,this.$a)}l=mg.prototype;l.Ra="";l.hb="";l.za="";l.xb=null;l.ya="";l.Wa="";l.qg=!1;l.$a=!1;
l.toString=function(){var a=[],b=this.Ra;b&&a.push(sg(b,tg),":");if(b=this.za){a.push("//");var c=this.hb;c&&a.push(sg(c,tg),"@");a.push(encodeURIComponent(String(b)));b=this.xb;null!=b&&a.push(":",String(b))}if(b=this.ya)this.za&&"/"!=b.charAt(0)&&a.push("/"),a.push(sg(b,"/"==b.charAt(0)?ug:vg));(b=this.a.toString())&&a.push("?",b);(b=this.Wa)&&a.push("#",sg(b,wg));return a.join("")};l.J=function(){return new mg(this)};
function ng(a,b,c){og(a);a.Ra=c?b?decodeURIComponent(b):"":b;a.Ra&&(a.Ra=a.Ra.replace(/:$/,""))}function pg(a,b){og(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.xb=b}else a.xb=null}function qg(a,b,c){og(a);b instanceof rg?(a.a=b,xg(a.a,a.$a)):(c||(b=sg(b,yg)),a.a=new rg(b,0,a.$a))}function zg(a,b,c){og(a);ia(c)||(c=[String(c)]);Ag(a.a,b,c)}function og(a){if(a.qg)throw Error("Tried to modify a read-only Uri");}
function Bg(a){return a instanceof mg?a.J():new mg(a,void 0)}
function Cg(a,b){a instanceof mg||(a=Bg(a));b instanceof mg||(b=Bg(b));var c=a,d=b,e=c.J(),f=!!d.Ra;f?ng(e,d.Ra):f=!!d.hb;if(f){var g=d.hb;og(e);e.hb=g}else f=!!d.za;f?(g=d.za,og(e),e.za=g):f=null!=d.xb;g=d.ya;if(f)pg(e,d.xb);else if(f=!!d.ya)if("/"!=g.charAt(0)&&(c.za&&!c.ya?g="/"+g:(c=e.ya.lastIndexOf("/"),-1!=c&&(g=e.ya.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,og(e),e.ya=c):f=""!==d.a.toString();f?qg(e,d.a.toString()?decodeURIComponent(d.a.toString()):""):f=!!d.Wa;f&&(d=d.Wa,og(e),e.Wa=d);return e}function sg(a,b){return la(a)?encodeURI(a).replace(b,Dg):null}function Dg(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var tg=/[#\/\?@]/g,vg=/[\#\?:]/g,ug=/[\#\?]/g,yg=/[\#\?@]/g,wg=/#/g;
function rg(a,b,c){this.a=a||null;this.c=!!c}function Eg(a){if(!a.R&&(a.R=new bg,a.H=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=Fg(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}l=rg.prototype;l.R=null;l.H=null;l.wa=function(){Eg(this);return this.H};
l.add=function(a,b){Eg(this);this.a=null;a=Fg(this,a);var c=fg(this.R,a);c||cg(this.R,a,c=[]);c.push(b);this.H++;return this};l.remove=function(a){Eg(this);a=Fg(this,a);return eg(this.R.c,a)?(this.a=null,this.H-=fg(this.R,a).length,this.R.remove(a)):!1};l.clear=function(){this.R=this.a=null;this.H=0};l.aa=function(){Eg(this);return 0==this.H};l.Aa=function(){Eg(this);for(var a=this.R.Ba(),b=this.R.Aa(),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.Ba=function(a){Eg(this);var b=[];if(a){var c=a;Eg(this);c=Fg(this,c);eg(this.R.c,c)&&(b=Qa(b,fg(this.R,Fg(this,a))))}else for(a=this.R.Ba(),c=0;c<a.length;c++)b=Qa(b,a[c]);return b};function Ag(a,b,c){a.remove(b);0<c.length&&(a.a=null,cg(a.R,Fg(a,b),Ra(c)),a.H+=c.length)}
l.toString=function(){if(this.a)return this.a;if(!this.R)return"";for(var a=[],b=this.R.Aa(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.Ba(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.J=function(){var a=new rg;a.a=this.a;this.R&&(a.R=this.R.J(),a.H=this.H);return a};function Fg(a,b){var c=String(b);a.c&&(c=c.toLowerCase());return c}
function xg(a,b){b&&!a.c&&(Eg(a),a.a=null,ag(a.R,function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),Ag(this,e,a))},a));a.c=b};function Gg(a,b,c){Bc.call(this);this.d=a;this.b=c;this.a=b||window;this.c=B(this.Od,this)}G(Gg,Bc);l=Gg.prototype;l.X=null;l.wd=!1;l.start=function(){Hg(this);this.wd=!1;var a=Ig(this),b=Jg(this);a&&!b&&this.a.mozRequestAnimationFrame?(this.X=J(this.a,"MozBeforePaint",this.c),this.a.mozRequestAnimationFrame(null),this.wd=!0):this.X=a&&b?a.call(this.a,this.c):this.a.setTimeout(sd(this.c),20)};
function Hg(a){if(null!=a.X){var b=Ig(a),c=Jg(a);b&&!c&&a.a.mozRequestAnimationFrame?K(a.X):b&&c?c.call(a.a,a.X):a.a.clearTimeout(a.X)}a.X=null}l.Od=function(){this.wd&&this.X&&K(this.X);this.X=null;this.d.call(this.b,wa())};l.A=function(){Hg(this);Gg.F.A.call(this)};function Ig(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null}
function Jg(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};var Kg;
function Lg(){var a=s.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=B(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.Jd;c.Jd=null;a()};return function(a){d.next={Jd: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){s.setTimeout(a,0)}};function Mg(a){wd.call(this);this.cc=a||window;this.sc=J(this.cc,"resize",this.eg,!1,this);this.ab=kc(this.cc||window)}G(Mg,wd);l=Mg.prototype;l.sc=null;l.cc=null;l.ab=null;l.A=function(){Mg.F.A.call(this);this.sc&&(K(this.sc),this.sc=null);this.ab=this.cc=null};l.eg=function(){var a=kc(this.cc||window);a==this.ab||a&&this.ab&&a.width==this.ab.width&&a.height==this.ab.height||(this.ab=a,N(this,"resize"))};function Ng(a,b,c,d,e){if(!(H||vb&&Hb("525")))return!0;if(lb&&e)return Og(a);if(e&&!d||!c&&(17==b||18==b||lb&&91==b))return!1;if(vb&&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(H&&d&&b==a)return!1;switch(a){case 13:return!(H&&H&&9<=Jb);case 27:return!vb}return Og(a)}
function Og(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||vb&&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 Pg(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Qg(a,b){wd.call(this);a&&Rg(this,a,b)}G(Qg,wd);l=Qg.prototype;l.Tb=null;l.vc=null;l.bd=null;l.wc=null;l.ba=-1;l.Ma=-1;l.Qc=!1;
var Tg={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},Ug={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},Vg=H||vb&&Hb("525"),Wg=lb&&ub;
Qg.prototype.a=function(a){vb&&(17==this.ba&&!a.Sb||18==this.ba&&!a.fa||lb&&91==this.ba&&!a.Zc)&&(this.Ma=this.ba=-1);-1==this.ba&&(a.Sb&&17!=a.Ca?this.ba=17:a.fa&&18!=a.Ca?this.ba=18:a.Zc&&91!=a.Ca&&(this.ba=91));Vg&&!Ng(a.Ca,this.ba,a.Da,a.Sb,a.fa)?this.handleEvent(a):(this.Ma=ub?Pg(a.Ca):a.Ca,Wg&&(this.Qc=a.fa))};Qg.prototype.c=function(a){this.Ma=this.ba=-1;this.Qc=a.fa};
Qg.prototype.handleEvent=function(a){var b=a.Q,c,d,e=b.altKey;H&&"keypress"==a.type?(c=this.Ma,d=13!=c&&27!=c?b.keyCode:0):vb&&"keypress"==a.type?(c=this.Ma,d=0<=b.charCode&&63232>b.charCode&&Og(c)?b.charCode:0):sb?(c=this.Ma,d=Og(c)?b.keyCode:0):(c=b.keyCode||this.Ma,d=b.charCode||0,Wg&&(e=this.Qc),lb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Tg?f=Tg[c]:25==c&&a.Da&&(f=9):g&&g in Ug&&(f=Ug[g]);a=f==this.ba;this.ba=f;b=new Xg(f,d,a,b);b.fa=e;N(this,b)};
function Rg(a,b,c){a.wc&&Yg(a);a.Tb=b;a.vc=J(a.Tb,"keypress",a,c);a.bd=J(a.Tb,"keydown",a.a,c,a);a.wc=J(a.Tb,"keyup",a.c,c,a)}function Yg(a){a.vc&&(K(a.vc),K(a.bd),K(a.wc),a.vc=null,a.bd=null,a.wc=null);a.Tb=null;a.ba=-1;a.Ma=-1}Qg.prototype.A=function(){Qg.F.A.call(this);Yg(this)};function Xg(a,b,c,d){d&&Pc(this,d,void 0);this.type="key";this.Ca=a;this.Yc=b;this.a=c}G(Xg,Oc);function Zg(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}l=Zg.prototype;l.J=function(){return new Zg(this.top,this.right,this.bottom,this.left)};l.contains=function(a){return this&&a?a instanceof Zg?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=na(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function $g(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}l=$g.prototype;l.J=function(){return new $g(this.left,this.top,this.width,this.height)};l.contains=function(a){return a instanceof $g?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=na(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function ah(a,b){var c=gc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function bh(a,b){return ah(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function ch(a,b,c){var d,e=ub&&(lb||yb)&&Hb("1.9");b instanceof Tb?(d=b.x,b=b.y):(d=b,b=c);a.style.left=dh(d,e);a.style.top=dh(b,e)}
function eh(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}H&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function fh(a){if(H&&!(H&&8<=Jb))return a.offsetParent;var b=gc(a),c=bh(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=bh(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 gh(a){var b,c=gc(a),d=bh(a,"position"),e=ub&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new Tb(0,0),g;b=c?gc(c):document;(g=!H)||(g=H&&9<=Jb)||(ec(b),g=!0);g=g?b.documentElement:b.body;if(a==g)return f;if(a.getBoundingClientRect)b=eh(a),a=wc(ec(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(vb&&"fixed"==bh(e,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}e=e.offsetParent}while(e&&e!=a);if(sb||vb&&"absolute"==d)f.y-=c.body.offsetTop;for(e=a;(e=fh(e))&&e!=c.body&&e!=g;)f.x-=e.scrollLeft,sb&&"TR"==e.tagName||(f.y-=e.scrollTop)}return f}function hh(a,b){var c=ih(a),d=ih(b);return new Tb(c.x-d.x,c.y-d.y)}
function ih(a){if(1==a.nodeType){var b;if(a.getBoundingClientRect)b=eh(a),b=new Tb(b.left,b.top);else{b=wc(ec(a));var c=gh(a);b=new Tb(c.x-b.x,c.y-b.y)}if(ub&&!Hb(12)){var d;H?d="-ms-transform":vb?d="-webkit-transform":sb?d="-o-transform":ub&&(d="-moz-transform");var e;d&&(e=bh(a,d));e||(e=bh(a,"transform"));a=e?(a=e.match(jh))?new Tb(parseFloat(a[1]),parseFloat(a[2])):new Tb(0,0):new Tb(0,0);a=new Tb(b.x+a.x,b.y+a.y)}else a=b;return a}d=oa(a.df);e=a;a.targetTouches?e=a.targetTouches[0]:d&&a.Q.targetTouches&&
(e=a.Q.targetTouches[0]);return new Tb(e.clientX,e.clientY)}function dh(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function kh(a){var b=lh;if("none"!=bh(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 lh(a){var b=a.offsetWidth,c=a.offsetHeight,d=vb&&!b&&!c;return t(b)&&!d||!a.getBoundingClientRect?new Ub(b,c):(a=eh(a),new Ub(a.right-a.left,a.bottom-a.top))}function mh(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 nh(a,b){a.style.display=b?"":"none"}function oh(a){return"rtl"==bh(a,"direction")}
function ph(a){var b=gc(a),c=H&&a.currentStyle,d;if(d=c)ec(b),d="auto"!=c.width&&"auto"!=c.height&&!c.boxSizing;if(d)return b=qh(a,c.width,"width","pixelWidth"),a=qh(a,c.height,"height","pixelHeight"),new Ub(b,a);c=new Ub(a.offsetWidth,a.offsetHeight);b=rh(a,"padding");a=sh(a);return new Ub(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)}
function qh(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 th(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?qh(a,c,"left","pixelLeft"):0}
function rh(a,b){if(H){var c=th(a,b+"Left"),d=th(a,b+"Right"),e=th(a,b+"Top"),f=th(a,b+"Bottom");return new Zg(e,d,f,c)}c=ah(a,b+"Left");d=ah(a,b+"Right");e=ah(a,b+"Top");f=ah(a,b+"Bottom");return new Zg(parseFloat(e),parseFloat(d),parseFloat(f),parseFloat(c))}var uh={thin:2,medium:4,thick:6};function vh(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 uh?uh[c]:qh(a,c,"left","pixelLeft")}
function sh(a){if(H){var b=vh(a,"borderLeft"),c=vh(a,"borderRight"),d=vh(a,"borderTop");a=vh(a,"borderBottom");return new Zg(d,c,a,b)}b=ah(a,"borderLeftWidth");c=ah(a,"borderRightWidth");d=ah(a,"borderTopWidth");a=ah(a,"borderBottomWidth");return new Zg(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var jh=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function wh(a,b){wd.call(this);this.a=a;var c=pa(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:null;this.e=!!c&&oh(c);this.c=J(this.a,ub?"DOMMouseScroll":"mousewheel",this,b)}G(wh,wd);
wh.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.Q;if("mousewheel"==a.type){c=1;if(H||vb&&(mb||Hb("532.0")))c=40;d=xh(-a.wheelDelta,c);t(a.wheelDeltaX)?(b=xh(-a.wheelDeltaX,c),c=xh(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),t(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;na(this.b)&&(b=Qb(b,-this.b,this.b));na(this.d)&&(c=Qb(c,-this.d,this.d));this.e&&(b=-b);b=new yh(d,a,b,c);N(this,b)};function xh(a,b){return vb&&(lb||nb)&&0!=a%b?a:a/b}
wh.prototype.A=function(){wh.F.A.call(this);K(this.c);this.c=null};function yh(a,b,c,d){b&&Pc(this,b,void 0);this.type="mousewheel";this.d=a;this.b=c;this.a=d}G(yh,Oc);function zh(a,b,c){Gc.call(this,a);this.map=b;this.b=t(c)?c:null}G(zh,Gc);function Ah(a,b,c,d){zh.call(this,a,b,d);this.a=c;this.originalEvent=c.Q;this.coordinate=b.Ud(this.originalEvent);this.pixel=b.pc(this.originalEvent)}G(Ah,zh);Ah.prototype.M=function(){Ah.F.M.call(this);this.a.M()};Ah.prototype.Ea=function(){Ah.F.Ea.call(this);this.a.Ea()};
function Bh(a){wd.call(this);this.a=a;this.g=0;this.b=!1;this.va=this.f=this.e=this.d=this.c=null;a=this.a.b;this.h=[J(a,"mousemove",this.xe,!1,this),J(a,"click",this.xe,!1,this)];this.d=J(a,"mousedown",this.Xf,!1,this);this.e=J(a,"MSPointerDown",this.Zf,!1,this);this.f=J(a,"touchstart",this.lg,!1,this)}G(Bh,wd);function Ch(a,b){if(0!==a.g){s.clearTimeout(a.g);a.g=0;var c=new Ah(Dh,a.a,b);N(a,c)}else a.g=s.setTimeout(B(function(){this.g=0;var a=new Ah(Eh,this.a,b);N(this,a)},a),250)}l=Bh.prototype;
l.Yf=function(a){this.va&&(Ka(this.c,K),this.c=null,this.b?(a=new Ah(Fh,this.a,a),N(this,a)):Rc(a)&&Ch(this,a))};l.Xf=function(a){null!==this.e&&(K(this.e),this.e=null,K(this.f),this.f=null);var b=new Ah(Gh,this.a,a);N(this,b);this.va=a;this.b=!1;this.c=[J(s.document,"mousemove",this.Dg,!1,this),J(s.document,"mouseup",this.Yf,!1,this)];a.M()};l.Dg=function(a){var b;this.b||(this.b=!0,b=new Ah(Hh,this.a,this.va),N(this,b));b=new Ah(Ih,this.a,a);N(this,b)};
l.Zf=function(a){null!==this.d&&(K(this.d),this.d=null,K(this.f),this.f=null);var b=new Ah(Jh,this.a,a);N(this,b);this.va=a;this.b=!1;this.c=[J(s.document,"MSPointerMove",this.$f,!1,this),J(s.document,"MSPointerUp",this.ag,!1,this)];a.M()};l.$f=function(a){if(a.clientX!=this.va.clientX||a.clientY!=this.va.clientY)this.b=!0,a=new Ah(Kh,this.a,a),N(this,a)};l.ag=function(a){var b=new Ah(Lh,this.a,a);N(this,b);Ka(this.c,K);!this.b&&Rc(a)&&Ch(this,this.va)};
l.lg=function(a){null!==this.d&&(K(this.d),this.d=null,K(this.e),this.e=null);var b=new Ah(Jh,this.a,a);N(this,b);this.va=a;this.b=!1;null===this.c&&(this.c=[J(s.document,"touchmove",this.kg,!1,this),J(s.document,"touchend",this.jg,!1,this)]);a.M()};l.kg=function(a){this.b=!0;var b=new Ah(Kh,this.a,a);N(this,b);a.M()};l.jg=function(a){var b=new Ah(Lh,this.a,a);N(this,b);0===a.Q.targetTouches.length&&(Ka(this.c,K),this.c=null);this.b||Ch(this,this.va)};
l.A=function(){null!==this.h&&(Ka(this.h,K),this.h=null);null!==this.d&&(K(this.d),this.d=null);null!==this.e&&(K(this.e),this.e=null);null!==this.f&&(K(this.f),this.f=null);null!==this.c&&(Ka(this.c,K),this.c=null);Bh.F.A.call(this)};l.xe=function(a){N(this,new Ah(a.type,this.a,a))};var Dh="dblclick",Gh="down",Hh="dragstart",Ih="drag",Fh="dragend",Eh="singleclick",Jh="touchstart",Kh="touchmove",Lh="touchend",Mh={ii:"click",ji:Dh,qi:"mousemove",ki:Gh,ni:Hh,li:Ih,mi:Fh,ri:Eh,vi:Jh,ui:Kh,ti:Lh};function Nh(a){return function(b){if(t(b))return[Qb(b[0],a[0],a[2]),Qb(b[1],a[1],a[3])]}}function Oh(a){return a};function Ph(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 Qh(a){return function(b,c,d){if(t(b))return b=Ph(a,b,d),b=Qb(b+c,0,a.length-1),a[b]}}function Rh(a,b,c){return function(d,e,f){if(t(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),t(c)&&(e=Math.min(e,c)),b/Math.pow(a,e)}};function Sh(a){if(t(a))return 0}function Th(a,b){if(t(a))return a+b}function Uh(a){var b=2*Math.PI/a;return function(a,d){if(t(a))return a=Math.floor((a+d)/b+0.5)*b}}function Vh(){var a=Sb(5);return function(b,c){if(t(b))return Math.abs(b+c)<=a?0:b+c}};function Wh(a,b,c){this.center=a;this.resolution=b;this.rotation=c};function U(a){Of.call(this);a=a||{};var b={};b.center=t(a.center)?a.center:null;b.projection=wf(a.projection);var c,d,e;if(t(a.resolutions))c=a.resolutions,d=c[0],e=c[c.length-1],c=Qh(c);else{d=a.maxResolution;t(d)||(d=a.projection,e=wf(d).p(),d=(null===e?360*bf.degrees/bf[d.ta]:Math.max(e[2]-e[0],e[3]-e[1]))/256);c=a.maxZoom;t(c)||(c=28);var f=a.zoomFactor;t(f)||(f=2);e=d/Math.pow(f,c);c=Rh(f,d,c)}this.i=d;this.o=e;(t(a.enableRotation)?a.enableRotation:1)?(d=a.constrainRotation,d=t(d)&&!0!==d?!1===
d?Th:na(d)?Uh(d):Th:Vh()):d=Sh;this.g=new Wh(t(a.extent)?Nh(a.extent):Oh,c,d);t(a.resolution)?b.resolution=a.resolution:t(a.zoom)&&(b.resolution=this.a(this.i,a.zoom));b.rotation=t(a.rotation)?a.rotation:0;this.Y(b)}G(U,Of);U.prototype.a=function(a,b,c){return this.g.resolution(a,b||0,c||0)};U.prototype.constrainRotation=function(a,b){return this.g.rotation(a,b||0)};U.prototype.b=function(){return this.s("center")};U.prototype.getCenter=U.prototype.b;
U.prototype.r=function(a){var b=this.b(),c=this.d();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]};U.prototype.l=function(){return this.s("projection")};U.prototype.getProjection=U.prototype.l;U.prototype.d=function(){return this.s("resolution")};U.prototype.getResolution=U.prototype.d;function Xh(a,b){return Math.max((a[2]-a[0])/b[0],(a[3]-a[1])/b[1])}function Yh(a){var b=a.i,c=Math.log(b/a.o)/Math.log(2);return function(a){return b/Math.pow(2,a*c)}}U.prototype.n=function(){return this.s("rotation")};
U.prototype.getRotation=U.prototype.n;function Zh(a){var b=a.i,c=Math.log(b/a.o)/Math.log(2);return function(a){return Math.log(b/a)/Math.log(2)/c}}l=U.prototype;l.N=function(){return this};function $h(a){var b=a.b(),c=a.l(),d=a.d();a=a.n();return{center:b.slice(),projection:t(c)?c:null,resolution:d,rotation:t(a)?a:0}}l.Gf=function(){var a,b=this.d();if(t(b)){var c,d=0;do{c=this.a(this.i,d);if(c==b){a=d;break}++d}while(c>this.o)}return a};
l.Sd=function(a,b){if(!Ve(a)){this.pa(Pe(a));var c=Xh(a,b),d=this.a(c,0,0);d<c&&(d=this.a(d,-1,0));this.f(d)}};l.gd=function(){return null!=this.b()&&t(this.d())};l.pa=function(a){this.t("center",a)};U.prototype.setCenter=U.prototype.pa;U.prototype.B=function(a){this.t("projection",a)};U.prototype.setProjection=U.prototype.B;U.prototype.f=function(a){this.t("resolution",a)};U.prototype.setResolution=U.prototype.f;U.prototype.q=function(a){this.t("rotation",a)};U.prototype.setRotation=U.prototype.q;
U.prototype.G=function(a){a=this.a(this.i,a,0);this.f(a)};function ai(a){P.call(this);this.element=t(a.element)?a.element:null;this.o=t(a.target)?hc(a.target):null;this.a=null;this.g=[]}G(ai,P);ai.prototype.A=function(){tc(this.element);ai.F.A.call(this)};ai.prototype.V=k("a");ai.prototype.f=fa;ai.prototype.setMap=function(a){null===this.a||tc(this.element);0!=this.g.length&&(Ka(this.g,K),this.g.length=0);this.a=a;null!==this.a&&((null===this.o?a.B:this.o).appendChild(this.element),this.f!==fa&&this.g.push(J(a,"postrender",this.f,!1,this)),a.I())};function bi(a){a=t(a)?a:{};this.k=oc("UL");var b=lc("DIV",{"class":(t(a.className)?a.className:"ol-attribution")+" ol-unselectable"},this.k);ai.call(this,{element:b,target:a.target});this.i=!0;this.d={};this.b={}}G(bi,ai);
bi.prototype.f=function(a){a=a.b;if(null===a)this.i&&(nh(this.element,!1),this.i=!1);else{var b,c,d,e,f,g,h,m,n,p=a.yc,r=bc(a.attributions),q={};b=0;for(c=p.length;b<c;b++)if(d=p[b].a,n=A(d).toString(),m=d.d,null!==m)for(d=0,e=m.length;d<e;d++)if(g=m[d],h=A(g).toString(),!(h in r)){f=a.bc[n];var u;if(u=t(f))a:if(null===g.a)u=!0;else{var x=u=void 0,w=void 0,v=void 0;for(v in f)if(v in g.a)for(w=f[v],u=0,x=g.a[v].length;u<x;++u)if(g.a[v][u].a<=w.d&&g.a[v][u].d>=w.a&&g.a[v][u].b<=w.c&&g.a[v][u].c>=w.b){u=
!0;break a}u=!1}u?(h in q&&delete q[h],r[h]=g):q[h]=g}b=[r,q];a=b[0];b=b[1];for(var y in this.d)y in a?(this.b[y]||(nh(this.d[y],!0),this.b[y]=!0),delete a[y]):y in b?(this.b[y]&&(nh(this.d[y],!1),delete this.b[y]),delete b[y]):(tc(this.d[y]),delete this.d[y],delete this.b[y]);for(y in a)c=oc("LI"),c.innerHTML=a[y].c,this.k.appendChild(c),this.d[y]=c,this.b[y]=!0;for(y in b)c=oc("LI"),c.innerHTML=b[y].c,nh(c,!1),this.k.appendChild(c),this.d[y]=c;y=!Zb(this.b);this.i!=y&&(nh(this.element,y),this.i=
y)}};function ci(a){a=t(a)?a:{};this.d=oc("UL");var b=lc("DIV",{"class":(t(a.className)?a.className:"ol-logo")+" ol-unselectable"},this.d);ai.call(this,{element:b,target:a.target});this.b=!0;this.i={}}G(ci,ai);
ci.prototype.f=function(a){a=a.b;if(null===a)this.b&&(nh(this.element,!1),this.b=!1);else{var b;a=a.dd;var c=this.i;for(b in c)b in a||(tc(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=lc("A",{href:e,target:"_blank"}),e.appendChild(b));b=lc("LI",void 0,e);this.d.appendChild(b);c[d]=b}d=!Zb(a);this.b!=d&&(nh(this.element,d),this.b=d)}};function di(a){a=t(a)?a:{};var b=t(a.className)?a.className:"ol-zoom",c=t(a.delta)?a.delta:1,d=t(a.zoomInLabel)?a.zoomInLabel:"+",e=t(a.zoomOutLabel)?a.zoomOutLabel:"\u2212",f=t(a.zoomOutTipLabel)?a.zoomOutTipLabel:"Zoom out",g=lc("SPAN",{role:"tooltip"},t(a.zoomInTipLabel)?a.zoomInTipLabel:"Zoom in"),d=lc("BUTTON",{"class":b+"-in ol-has-tooltip",name:"ZoomIn",type:"button"},g,d);J(d,["touchend","click"],va(di.prototype.d,c),!1,this);J(d,["mouseout",Mc],function(){this.blur()},!1);f=lc("SPAN",{role:"tooltip",
type:"button"},f);e=lc("BUTTON",{"class":b+"-out ol-has-tooltip",name:"ZoomOut"},f,e);J(e,["touchend","click"],va(di.prototype.d,-c),!1,this);J(e,["mouseout",Mc],function(){this.blur()},!1);b=lc("DIV",b+" ol-unselectable",d,e);ai.call(this,{element:b,target:a.target});this.b=t(a.duration)?a.duration:250}G(di,ai);di.prototype.d=function(a,b){b.M();var c=this.a,d=c.a().N(),e=d.d();t(e)&&(0<this.b&&c.ka(Wf({resolution:e,duration:this.b,easing:Qf})),c=d.a(e,a),d.f(c))};function ei(a){a=t(a)?a:{};var b=new Q;(t(a.zoom)?a.zoom:1)&&b.push(new di(t(a.zoomOptions)?a.zoomOptions:void 0));(t(a.attribution)?a.attribution:1)&&b.push(new bi(t(a.attributionOptions)?a.attributionOptions:void 0));(t(a.logo)?a.logo:1)&&b.push(new ci(t(a.logoOptions)?a.logoOptions:void 0));return b};function fi(){yd.call(this);this.k=null}G(fi,yd);fi.prototype.setMap=function(a){this.k=a};function gi(a,b,c,d,e){if(null!=c){var f=b.n(),g=b.b();t(f)&&(t(g)&&t(e)&&0<e)&&(a.ka(Vf({rotation:f,duration:e,easing:Qf})),t(d)&&a.ka(Uf({source:g,duration:e,easing:Qf})));if(null!=d){var h;a=b.b();t(a)&&(h=[a[0]-d[0],a[1]-d[1]],ze(h,c-b.n()),ue(h,d));b.pa(h)}b.q(c)}}function hi(a,b,c,d,e){var f=b.d();c=b.a(f,c,0);ii(a,b,c,d,e)}
function ii(a,b,c,d,e){if(null!=c){var f=b.d(),g=b.b();t(f)&&(t(g)&&t(e)&&0<e)&&(a.ka(Wf({resolution:f,duration:e,easing:Qf})),t(d)&&a.ka(Uf({source:g,duration:e,easing:Qf})));if(null!=d){var h;a=b.b();e=b.d();t(a)&&t(e)&&(h=[d[0]-c*(d[0]-a[0])/e,d[1]-c*(d[1]-a[1])/e]);b.pa(h)}b.f(c)}};function ji(a){a=t(a)?a:{};this.a=t(a.delta)?a.delta:1;fi.call(this);this.b=t(a.duration)?a.duration:250}G(ji,fi);ji.prototype.qa=function(a){var b=!1,c=a.a;if(a.type==Dh){var b=a.map,d=a.coordinate,c=c.Da?-this.a:this.a,e=b.a().N();hi(b,e,c,d,this.b);a.M();b=!0}return!b};function ki(a){a=a.a;return a.fa&&!a.wb&&a.Da}function li(a){return a.type==Eh}function mi(a){a=a.a;return!a.fa&&!a.wb&&!a.Da}function ni(a){a=a.a;return!a.fa&&!a.wb&&a.Da}function oi(a){a=a.a.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a};function pi(){fi.call(this);this.i=!1;this.f=this.e=this.q=this.o=0;this.U=this.G=null}G(pi,fi);l=pi.prototype;l.qb=fa;l.rb=fa;l.sb=od;l.ce=fa;
l.qa=function(a){var b=a.map;if(!qi(b))return!0;var c=!1,d=b.a(),b=a.a;a.type==Gh&&this.ce(a);this.i?a.type==Ih?(this.e=b.clientX-this.o,this.f=b.clientY-this.q,this.qb(a)):a.type==Fh&&(this.e=b.clientX-this.o,this.f=b.clientY-this.q,this.i=!1,this.rb(a)):a.type==Hh&&(d=$h(d.N()),this.o=b.clientX,this.q=b.clientY,this.f=this.e=0,this.G=d.center,this.U=a.coordinate,this.sb(a)&&(this.i=!0,a.M(),c=!0));return!c};function ri(a){pi.call(this);a=t(a)?a:{};this.d=t(a.condition)?a.condition:mi;this.a=a.kinetic;this.b=null}G(ri,pi);ri.prototype.qb=function(a){this.a&&this.a.update(a.a.clientX,a.a.clientY);a=a.map;var b=a.a(),c=$h(b),d=[-c.resolution*this.e,c.resolution*this.f];ze(d,c.rotation);ue(d,this.G);d=b.g.center(d);a.I();b.pa(d)};
ri.prototype.rb=function(a){a=a.map;var b=a.a();Pf(b,-1);if(this.a&&Yf(this.a)){var b=b.N(),c=$h(b),d=(this.a.d-this.a.c)/this.a.e,e=this.a.b;this.b=Zf(this.a,c.center);a.ka(this.b);c=a.f(c.center);d=a.ea([c[0]-d*Math.cos(e),c[1]-d*Math.sin(e)]);d=b.g.center(d);b.pa(d)}a.I()};ri.prototype.sb=function(a){var b=a.a;if(Rc(b)&&this.d(a)){if(this.a){var c=this.a;c.a.length=0;c.b=0;c.c=0;this.a.update(b.clientX,b.clientY)}a=a.map;Pf(a.a(),1);a.I();return!0}return!1};
ri.prototype.ce=function(a){var b=a.map,c=b.a();null!==this.b&&Pa(b.o,this.b)&&(b.I(),c.pa(a.b.w.center),this.b=null)};function si(a){a=t(a)?a:{};pi.call(this);this.b=t(a.condition)?a.condition:ki;this.a=void 0}G(si,pi);si.prototype.qb=function(a){var b=a.map,c=b.g();a=a.pixel;c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(t(this.a)){a=c-this.a;var d=b.a().N(),e=$h(d);b.I();gi(b,d,e.rotation-a)}this.a=c};si.prototype.rb=function(a){a=a.map;var b=a.a();Pf(b,-1);var b=b.N(),c=$h(b).rotation,c=b.constrainRotation(c,0);gi(a,b,c,void 0,250)};
si.prototype.sb=function(a){return Rc(a.a)&&this.b(a)?(a=a.map,Pf(a.a(),1),a.I(),this.a=void 0,!0):!1};function ti(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 ui(a,b){var c=0,d,e;d=0;for(e=b.length;d<e;++d)a[c++]=b[d];return c}function vi(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 wi(a,b,c,d,e){e=t(e)?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g)b=vi(a,b,c[g],d),e[f++]=b;e.length=f;return e}function xi(a,b,c,d,e){e=t(e)?e:[];for(var f=0;b<c;b+=d)e[f++]=a.slice(b,b+d);e.length=f;return e}function yi(a,b,c,d,e){e=t(e)?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g){var m=c[g];e[f++]=xi(a,b,m,d,e[f]);b=m}e.length=f;return e}
function zi(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],r=a[n+1],m=m+Math.sqrt((p-g)*(p-g)+(r-h)*(r-h));f.push(m);g=p;h=r}c=0.5*m;for(var q,g=Wa,h=0,m=f.length;h<m;)n=h+m>>1,p=g(c,f[n]),0<p?h=n+1:(m=n,q=!p);q=q?h:~h;0>q?(c=(c-f[-q-2])/(f[-q-1]-f[-q-2]),b+=(-q-2)*d,f=(1-c)*a[b]+c*a[b+d],g=(1-c)*a[b+1]+c*a[b+d+1]):(f=a[b+q*d],g=a[b+q*d+1])}return null!=
e?(e.push(f,g),e):[f,g]}function Ai(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((1-f)*a[(b-1)*d+g]+f*a[b*d+g]);c.push(e);return c}
function Bi(a,b,c,d,e,f){var g=0;if(f)return Ai(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 Ai(a,g,h,c,d,!1);g=h}}return null}function Ci(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 Di(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 Ei(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 Fi(a,b,c,d){var e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],e=e+Ci(a,b,h,d);b=h}return e}
function Gi(a,b,c,d,e,f){if(0===c.length||!Di(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;b<g;++b)if(Di(a,c[b-1],c[b],d,e,f))return!1;return!0}
function Hi(a,b,c,d,e,f,g){var h,m,n,p,r,q=e[f+1],u=[],x=c[0];n=a[x-d];r=a[x-d+1];for(h=b;h<x;h+=d){p=a[h];m=a[h+1];if(q<=r&&m<=q||r<=q&&q<=m)n=(q-r)/(m-r)*(p-n)+n,u.push(n);n=p;r=m}x=NaN;r=-Infinity;u.sort();n=u[0];h=1;for(m=u.length;h<m;++h){p=u[h];var w=Math.abs(p-n);w>r&&(n=(n+p)/2,Gi(a,b,c,d,n,q)&&(x=n,r=w));n=p}isNaN(x)&&(x=e[f]);return t(g)?(g.push(x,q),g):[x,q]}function Ii(a,b,c){var d=0,e,f;e=0;for(f=b.length;e<f;++e){var g=b[e],d=Ei(a,d,g,c);if(0===e?!d:d)return!1;d=g}return!0}
function Ji(a,b,c,d){var e,f;e=0;for(f=c.length;e<f;++e){var g=c[e],h=Ei(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 r=h[b+p];h[b+p]=h[m-n+p];h[m-n+p]=r}b+=n;m-=n}b=g}return b}function Ki(a,b,c,d){a=c-a;b=d-b;return a*a+b*b}function Li(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=t(d)?d:[],p=0,r,q;r=0;for(q=a.length;r<q;r+=b){var u=a[r],x=a[r+1];n[p++]=e*u+g*x+m;n[p++]=f*u+h*x+c}t(d)&&n.length!=p&&(n.length=p);return n};function Mi(){Ld.call(this);this.b="XY";this.a=2;this.j=null}G(Mi,Ld);function Ni(a){if("XY"==a)return 2;if("XYZ"==a||"XYM"==a)return 3;if("XYZM"==a)return 4;throw Error("unsupported layout: "+a);}l=Mi.prototype;l.Va=od;l.p=function(a){if(this.e!=this.c){var b=this.j,c=this.j.length,d=this.a,e=Ke(this.extent);this.extent=Ne(e,b,0,c,d);this.e=this.c}return We(this.extent,a)};l.hf=function(){return this.j.slice(0,this.a)};l.qf=function(){return this.j.slice(this.j.length-this.a)};l.rf=k("b");
l.Za=function(a){this.i!=this.c&&($b(this.f),this.g=0,this.i=this.c);if(0>a||0!==this.g&&a<=this.g)return this;var b=a.toString();if(this.f.hasOwnProperty(b))return this.f[b];var c=this.mb(a);if(c.j.length<this.j.length)return this.f[b]=c;this.g=a;return this};l.mb=function(){return this};function Oi(a,b,c){a.a=Ni(b);a.b=b;a.j=c}
function Pi(a,b,c,d){if(t(b))c=Ni(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.transform=function(a){null!==this.j&&(a(this.j,this.j,this.a),this.u())};function Qi(a,b,c){var d=a.j;return null===d?null:Li(d,a.a,b,c)};function Ri(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=Ki(f,g,h,m);f>e&&(e=f);f=h;g=m}return e}function Si(a,b,c,d,e){var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];e=Ri(a,b,h,d,e);b=h}return e}
function Ti(a,b,c,d,e,f,g,h,m,n,p){if(b==c)return n;var r;if(0===e){r=Ki(g,h,a[b],a[b+1]);if(r<n){for(p=0;p<d;++p)m[p]=a[b+p];m.length=d;return r}return n}for(var q=t(p)?p:[NaN,NaN],u=b+d;u<c;)if(ti(a,u-d,u,d,g,h,q),r=Ki(g,h,q[0],q[1]),r<n){n=r;for(p=0;p<d;++p)m[p]=q[p];m.length=d;u+=d}else u+=d*Math.max((Math.sqrt(r)-Math.sqrt(n))/e|0,1);if(f&&(ti(a,c-d,b,d,g,h,q),r=Ki(g,h,q[0],q[1]),r<n)){n=r;for(p=0;p<d;++p)m[p]=q[p];m.length=d}return n}
function Ui(a,b,c,d,e,f,g,h,m,n,p){p=t(p)?p:[NaN,NaN];var r,q;r=0;for(q=c.length;r<q;++r){var u=c[r];n=Ti(a,b,u,d,e,f,g,h,m,n,p);b=u}return n};function Vi(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 r=c.pop(),q=c.pop(),u=0,x=a[q],w=a[q+1],v=a[r],y=a[r+1];for(p=q+d;p<r;p+=d){var z;z=a[p];var D=a[p+1],E=x,L=w,F=v-E,O=y-L;if(0!==F||0!==O){var aa=((z-E)*F+(D-L)*O)/(F*F+O*O);1<aa?(E=v,L=y):0<aa&&(E+=F*aa,L+=O*aa)}z=Ki(z,D,E,L);z>u&&(n=p,u=z)}u>e&&(m[(n-b)/d]=1,q+d<n&&c.push(q,n),n+d<r&&c.push(n,r))}for(p=0;p<h;++p)m[p]&&(f[g++]=a[b+
p*d],f[g++]=a[b+p*d+1]);return g}
function Wi(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 r=a,q=p,u=d,x=e,w=f;if(b!=q){var v=x*Math.round(r[b]/x),y=x*Math.round(r[b+1]/x);b+=u;w[g++]=v;w[g++]=y;var z=void 0,D=void 0;do if(z=x*Math.round(r[b]/x),D=x*Math.round(r[b+1]/x),b+=u,b==q){w[g++]=z;w[g++]=D;break a}while(z==v&&D==y);for(;b<q;){var E,L;E=x*Math.round(r[b]/x);L=x*Math.round(r[b+1]/x);b+=u;if(E!=z||L!=D){var F=z-v,O=D-y,aa=E-v,sa=L-y;F*sa==O*aa&&(0>F&&aa<F||F==aa||0<F&&aa>F)&&(0>O&&sa<O||O==sa||0<O&&
sa>O)||(w[g++]=z,w[g++]=D,v=z,y=D);z=E;D=L}}w[g++]=z;w[g++]=D}}h.push(g);b=p}return g};function Xi(a,b){Mi.call(this);this.d=this.h=-1;this.K(a,b)}G(Xi,Mi);l=Xi.prototype;l.J=function(){var a=new Xi(null),b=this.j.slice();Oi(a,this.b,b);a.u();return a};l.la=function(a,b,c,d){if(d<Ie(this.p(),a,b))return d;this.d!=this.c&&(this.h=Math.sqrt(Ri(this.j,0,this.j.length,this.a,0)),this.d=this.c);return Ti(this.j,0,this.j.length,this.a,this.h,!0,a,b,c,d)};l.Ig=function(){return Ci(this.j,0,this.j.length,this.a)};l.v=function(){return xi(this.j,0,this.j.length,this.a)};
l.mb=function(a){var b=[];b.length=Vi(this.j,0,this.j.length,this.a,a,b,0);a=new Xi(null);Oi(a,"XY",b);a.u();return a};l.D=ca("LinearRing");l.K=function(a,b){null===a?Oi(this,"XY",null):(Pi(this,b,a,1),null===this.j&&(this.j=[]),this.j.length=vi(this.j,0,a,this.a));this.u()};function Yi(a,b){Mi.call(this);this.K(a,b)}G(Yi,Mi);l=Yi.prototype;l.J=function(){var a=new Yi(null),b=this.j.slice();Oi(a,this.b,b);a.u();return a};l.la=function(a,b,c,d){var e=this.j;a=Ki(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.v=function(){return this.j.slice()};l.p=function(a){if(this.e!=this.c){var b=this.j,c=b[0],b=b[1];this.extent=Fe(c,b,c,b,this.extent);this.e=this.c}return We(this.extent,a)};l.D=ca("Point");
l.K=function(a,b){null===a?Oi(this,"XY",null):(Pi(this,b,a,0),null===this.j&&(this.j=[]),this.j.length=ui(this.j,a));this.u()};function Zi(a,b){Mi.call(this);this.d=[];this.k=-1;this.l=null;this.q=this.n=this.o=-1;this.h=null;this.K(a,b)}G(Zi,Mi);l=Zi.prototype;l.J=function(){var a=new Zi(null);$i(a,this.b,this.j.slice(),this.d.slice());return a};l.la=function(a,b,c,d){if(d<Ie(this.p(),a,b))return d;this.n!=this.c&&(this.o=Math.sqrt(Si(this.j,0,this.d,this.a,0)),this.n=this.c);return Ui(this.j,0,this.d,this.a,this.o,!0,a,b,c,d)};l.Va=function(a,b){return Gi(aj(this),0,this.d,this.a,a,b)};
l.Lg=function(){return Fi(aj(this),0,this.d,this.a)};l.v=function(){return yi(this.j,0,this.d,this.a)};function bj(a){if(a.k!=a.c){var b=Pe(a.p());a.l=Hi(aj(a),0,a.d,a.a,b,0);a.k=a.c}return a.l}l.of=function(){return new Yi(bj(this))};l.uf=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 Xi(null),n=m,e=b.slice(e,h);Oi(n,a,e);n.u();d.push(m);e=h}return d};
function aj(a){if(a.q!=a.c){var b=a.j;Ii(b,a.d,a.a)?a.h=b:(a.h=b.slice(),a.h.length=Ji(a.h,0,a.d,a.a));a.q=a.c}return a.h}l.mb=function(a){var b=[],c=[];b.length=Wi(this.j,0,this.d,this.a,Math.sqrt(a),b,0,c);a=new Zi(null);$i(a,"XY",b,c);return a};l.D=ca("Polygon");l.K=function(a,b){if(null===a)$i(this,"XY",null,this.d);else{Pi(this,b,a,2);null===this.j&&(this.j=[]);var c=wi(this.j,0,a,this.a,this.d);this.j.length=0===c.length?0:c[c.length-1];this.u()}};
function $i(a,b,c,d){Oi(a,b,c);a.d=d;a.u()};function cj(a){this.b=this.c=this.e=this.d=this.a=null;this.f=a}G(cj,Bc);function ej(a){var b=a.e,c=a.c;a=La([b,[b[0],c[1]],c,[c[0],b[1]]],a.a.ea,a.a);a[4]=a[0].slice();return new Zi([a])}cj.prototype.A=function(){this.setMap(null)};cj.prototype.g=function(a){var b=this.b,c=this.f;a.vectorContext.jc(Infinity,function(a){a.sa(c.d,c.b);a.ha(c.c);a.lb(b,null)})};cj.prototype.L=k("b");function fj(a){null===a.a||(null===a.e||null===a.c)||a.a.I()}
cj.prototype.setMap=function(a){null!==this.d&&(K(this.d),this.d=null,this.a.I(),this.a=null);this.a=a;null!==this.a&&(this.d=J(a,"postcompose",this.g,!1,this),fj(this))};function gj(a,b){Gc.call(this,a);this.coordinate=b}G(gj,Gc);function hj(a){pi.call(this);a=t(a)?a:{};this.a=new cj(t(a.style)?a.style:null);this.b=null;this.d=t(a.condition)?a.condition:pd}G(hj,pi);l=hj.prototype;l.qb=function(a){var b=this.a;a=a.pixel;b.e=this.b;b.c=a;b.b=ej(b);fj(b)};l.L=function(){return this.a.L()};l.te=fa;l.rb=function(a){this.a.setMap(null);64<=this.e*this.e+this.f*this.f&&(this.te(a),N(this,new gj("boxend",a.coordinate)))};
l.sb=function(a){if(Rc(a.a)&&this.d(a)){this.b=a.pixel;this.a.setMap(a.map);var b=this.a,c=this.b;b.e=this.b;b.c=c;b.b=ej(b);fj(b);N(this,new gj("boxstart",a.coordinate));return!0}return!1};function ij(a){a=t(a)?a:{};hj.call(this,{condition:t(a.condition)?a.condition:ni,style:t(a.style)?a.style:new ne({stroke:new le({color:[0,0,255,1]})})})}G(ij,hj);ij.prototype.te=function(){var a=this.k,b=a.a().N(),c=this.L().p(),d=Pe(c),c=Xh(c,a.g()),c=b.a(c,0,void 0);ii(a,b,c,d,200)};function jj(a){fi.call(this);a=t(a)?a:{};this.a=t(a.condition)?a.condition:td(mi,oi);this.b=t(a.pixelDelta)?a.pixelDelta:128}G(jj,fi);jj.prototype.qa=function(a){var b=!1;if("key"==a.type){var c=a.a.Ca;if(this.a(a)&&(40==c||37==c||39==c||38==c)){var d=a.map,b=d.a(),e=$h(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];ze(c,e.rotation);e=b.b();t(e)&&(t(100)&&d.ka(Uf({source:e,duration:100,easing:Sf})),d=b.g.center([e[0]+c[0],e[1]+c[1]]),b.pa(d));a.M();b=!0}}return!b};function kj(a){fi.call(this);a=t(a)?a:{};this.b=t(a.condition)?a.condition:oi;this.a=t(a.delta)?a.delta:1;this.d=t(a.duration)?a.duration:100}G(kj,fi);kj.prototype.qa=function(a){var b=!1;if("key"==a.type){var c=a.a.Yc;if(this.b(a)&&(43==c||45==c)){b=a.map;c=43==c?this.a:-this.a;b.I();var d=b.a().N();hi(b,d,c,void 0,this.d);a.M();b=!0}}return!b};function lj(a){a=t(a)?a:{};fi.call(this);this.a=0;this.g=t(a.duration)?a.duration:250;this.d=null;this.e=this.b=void 0}G(lj,fi);lj.prototype.qa=function(a){var b=!1;if("mousewheel"==a.type){var b=a.map,c=a.a;this.d=a.coordinate;this.a+=c.a/3;t(this.b)||(this.b=wa());c=Math.max(80-(wa()-this.b),0);s.clearTimeout(this.e);this.e=s.setTimeout(B(this.f,this,b),c);a.M();b=!0}return!b};
lj.prototype.f=function(a){var b=Qb(this.a,-1,1),c=a.a().N();a.I();hi(a,c,-b,this.d,this.g);this.a=0;this.d=null;this.e=this.b=void 0};function mj(){fi.call(this);this.d=!1;this.l={};this.targetTouches=[]}G(mj,fi);function nj(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]}mj.prototype.g=fa;mj.prototype.f=od;mj.prototype.h=od;
mj.prototype.qa=function(a){var b=a.map.a(),c=a.type;if(c===Jh||c===Kh||c===Lh)c=a.originalEvent,t(c.targetTouches)?this.targetTouches=c.targetTouches:t(c.pointerId)&&(a.type==Lh?delete this.l[c.pointerId]:this.l[c.pointerId]=c,this.targetTouches=Xb(this.l));this.d&&(a.type==Kh?this.g(a):a.type==Lh&&((this.d=this.f(a))||Pf(b,-1)));a.type==Jh&&(a=this.h(a),!this.d&&a&&Pf(b,1),this.d=a);return!0};function oj(a){mj.call(this);this.a=(t(a)?a:{}).kinetic;this.b=this.e=null;this.i=!1}G(oj,mj);oj.prototype.g=function(a){var b=nj(this.targetTouches);if(null!==this.b){this.a&&this.a.update(b[0],b[1]);var c=this.b[0]-b[0],d=b[1]-this.b[1];a=a.map;var e=a.a().N(),f=$h(e),d=c=[c,d],g=f.resolution;d[0]*=g;d[1]*=g;ze(c,f.rotation);ue(c,f.center);c=e.g.center(c);a.I();e.pa(c)}this.b=b};
oj.prototype.f=function(a){a=a.map;var b=a.a().N();if(0===this.targetTouches.length){if(!this.i&&this.a&&Yf(this.a)){var c=(this.a.d-this.a.c)/this.a.e,d=this.a.b,e=b.b();this.e=Zf(this.a,e);a.ka(this.e);e=a.f(e);c=a.ea([e[0]-c*Math.cos(d),e[1]-c*Math.sin(d)]);c=b.g.center(c);b.pa(c)}a.I();return!1}this.b=null;return!0};
oj.prototype.h=function(a){if(0<this.targetTouches.length){var b=a.map,c=b.a().N();this.b=null;b.I();null!==this.e&&Pa(b.o,this.e)&&(c.pa(a.b.w.center),this.e=null);this.a&&(a=this.a,a.a.length=0,a.b=0,a.c=0);this.i=1<this.targetTouches.length;return!0}return!1};function pj(a){mj.call(this);a=t(a)?a:{};this.b=null;this.e=void 0;this.a=!1;this.i=0;this.n=t(a.threshold)?a.threshold:0.3}G(pj,mj);pj.prototype.g=function(a){var b=0,c=this.targetTouches[0],d=this.targetTouches[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);t(this.e)&&(b=c-this.e,this.i+=b,!this.a&&Math.abs(this.i)>this.n&&(this.a=!0));this.e=c;a=a.map;c=ih(a.b);d=nj(this.targetTouches);d[0]-=c.x;d[1]-=c.y;this.b=a.ea(d);this.a&&(c=a.a().N(),d=$h(c),a.I(),gi(a,c,d.rotation+b,this.b))};
pj.prototype.f=function(a){if(2>this.targetTouches.length){a=a.map;var b=a.a().N(),c=$h(b);if(this.a){var c=c.rotation,d=this.b,c=b.constrainRotation(c,0);gi(a,b,c,d,250)}return!1}return!0};pj.prototype.h=function(a){return 2<=this.targetTouches.length?(a=a.map,this.b=null,this.e=void 0,this.a=!1,this.i=0,a.I(),!0):!1};function qj(a){a=t(a)?a:{};mj.call(this);this.b=null;this.i=t(a.duration)?a.duration:400;this.a=void 0;this.e=1}G(qj,mj);qj.prototype.g=function(a){var b=1,c=this.targetTouches[0],d=this.targetTouches[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);t(this.a)&&(b=this.a/e);this.a=e;1!=b&&(this.e=b);a=a.map;var e=a.a().N(),c=$h(e),d=ih(a.b),f=nj(this.targetTouches);f[0]-=d.x;f[1]-=d.y;this.b=a.ea(f);a.I();ii(a,e,c.resolution*b,this.b)};
qj.prototype.f=function(a){if(2>this.targetTouches.length){a=a.map;var b=a.a().N(),c=$h(b).resolution,d=this.b,e=this.i,c=b.a(c,0,this.e-1);ii(a,b,c,d,e);return!1}return!0};qj.prototype.h=function(a){return 2<=this.targetTouches.length?(a=a.map,this.b=null,this.a=void 0,this.e=1,a.I(),!0):!1};function rj(a){a=t(a)?a:{};var b=new Q,c=new Xf(-0.005,0.05,100);(t(a.altShiftDragRotate)?a.altShiftDragRotate:1)&&b.push(new si);(t(a.doubleClickZoom)?a.doubleClickZoom:1)&&b.push(new ji({delta:a.zoomDelta,duration:a.zoomDuration}));(t(a.touchPan)?a.touchPan:1)&&b.push(new oj({kinetic:c}));(t(a.touchRotate)?a.touchRotate:1)&&b.push(new pj);(t(a.touchZoom)?a.touchZoom:1)&&b.push(new qj({duration:a.zoomDuration}));(t(a.dragPan)?a.dragPan:1)&&b.push(new ri({kinetic:c}));if(t(a.keyboard)?a.keyboard:
1)b.push(new jj),b.push(new kj({delta:a.zoomDelta,duration:a.zoomDuration}));(t(a.mouseWheelZoom)?a.mouseWheelZoom:1)&&b.push(new lj({duration:a.zoomDuration}));(t(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new ij);return b};function sj(a){var b=t(a)?a:{};a=bc(b);delete a.layers;b=b.layers;T.call(this,a);this.a=null;J(this,Fd("layers"),this.Uf,!1,this);t(b)?ia(b)&&(b=new Q(Ra(b))):b=new Q;this.d(b)}G(sj,T);l=sj.prototype;l.de=function(){this.b()&&this.u()};
l.Uf=function(){null!==this.a&&(Ka(Xb(this.a),K),this.a=null);var a=this.eb();if(null!=a){this.a={add:J(a,"add",this.Tf,!1,this),remove:J(a,"remove",this.Vf,!1,this)};var a=a.a,b,c,d;b=0;for(c=a.length;b<c;b++)d=a[b],this.a[A(d).toString()]=J(d,["propertychange","change"],this.de,!1,this)}this.u()};l.Tf=function(a){a=a.element;this.a[A(a).toString()]=J(a,["propertychange","change"],this.de,!1,this);this.u()};l.Vf=function(a){a=A(a.element).toString();K(this.a[a]);delete this.a[a];this.u()};l.eb=function(){return this.s("layers")};
sj.prototype.getLayers=sj.prototype.eb;sj.prototype.d=function(a){this.t("layers",a)};sj.prototype.setLayers=sj.prototype.d;sj.prototype.Wc=function(a){var b=t(a)?a:[];this.eb().forEach(function(a){a.Wc(b)});return b};
sj.prototype.Vc=function(a){var b=t(a)?a:{layers:[],$:[]},c=b.layers.length;this.eb().forEach(function(a){a.Vc(b)});a=Mf(this);var d,e;for(d=b.$.length;c<d;c++)e=b.$[c],e.brightness=Qb(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};sj.prototype.Xc=ca(1);function tj(a){df.call(this,{code:a,units:"m",extent:uj,global:!0})}G(tj,df);var vj=6378137*Math.PI,uj=[-vj,-vj,vj,vj],rf=La(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913","urn:ogc:def:crs:EPSG:6.18:3:3857"],function(a){return new tj(a)});function sf(a,b,c){var d=a.length;c=1<c?c:2;t(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 tf(a,b,c){var d=a.length;c=1<c?c:2;t(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}tj.prototype.b=function(a,b){return a/((Math.exp(b[1]/6378137)+Math.exp(-(b[1]/6378137)))/2)};function wj(a,b){df.call(this,{code:a,units:"degrees",extent:xj,axisOrientation:b,global:!0})}G(wj,df);var xj=[-180,-90,180,90],uf=[new wj("CRS:84"),new wj("EPSG:4326","neu"),new wj("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new wj("urn:ogc:def:crs:OGC:1.3:CRS84"),new wj("urn:ogc:def:crs:OGC:2:84"),new wj("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new wj("urn:x-ogc:def:crs:EPSG:4326","neu")];wj.prototype.b=function(a){return a};function yj(){mf(rf);mf(uf);qf()};function zj(a,b,c,d,e){wd.call(this);this.g=e;this.i=a;this.b=c;this.d=b;this.state=d}G(zj,wd);zj.prototype.p=k("i");function Aj(a,b,c,d,e,f){zj.call(this,a,b,c,0,d);this.h=e;this.a=new Image;null!==f&&(this.a.crossOrigin=f);this.f={};this.c=null;this.state=0}G(Aj,zj);Aj.prototype.e=function(a){if(t(a)){var b=A(a);if(b in this.f)return this.f[b];a=Zb(this.f)?this.a:this.a.cloneNode(!1);return this.f[b]=a}return this.a};Aj.prototype.k=function(){this.state=3;Ka(this.c,K);this.c=null;N(this,"change")};Aj.prototype.l=function(){this.state=2;Ka(this.c,K);this.c=null;N(this,"change")};
function Bj(a){0==a.state&&(a.state=1,a.c=[ed(a.a,"error",a.k,!1,a),ed(a.a,"load",a.l,!1,a)],a.a.src=a.h)};function Cj(a){this.minZoom=t(a.minZoom)?a.minZoom:0;this.a=a.resolutions;this.maxZoom=this.a.length-1;this.d=t(a.origin)?a.origin:null;this.f=null;t(a.origins)&&(this.f=a.origins);this.b=null;t(a.tileSizes)&&(this.b=a.tileSizes);this.e=t(a.tileSize)?a.tileSize:null===this.b?256:void 0}var Dj=new $a(0,0,0);l=Cj.prototype;l.oc=function(a,b,c,d,e){e=Ej(this,a,e);for(a=a.a-1;a>=this.minZoom;){if(b.call(c,a,Fj(this,e,a,d)))return!0;--a}return!1};l.vf=k("minZoom");
l.Wb=function(a){return null===this.d?this.f[a]:this.d};l.Ya=k("a");l.rc=function(a,b,c){return a.a<this.maxZoom?(c=Ej(this,a,c),Fj(this,c,a.a+1,b)):null};function Gj(a,b,c,d){Hj(a,b[0],b[1],c,!1,Dj);var e=Dj.x,f=Dj.y;Hj(a,b[2],b[3],c,!0,Dj);return eb(e,Dj.x,f,Dj.y,d)}function Fj(a,b,c,d){return Gj(a,b,a.a[c],d)}function Ij(a,b){var c=a.Wb(b.a),d=a.a[b.a],e=a.na(b.a);return[c[0]+(b.x+0.5)*e*d,c[1]+(b.y+0.5)*e*d]}
function Ej(a,b,c){var d=a.Wb(b.a),e=a.a[b.a];a=a.na(b.a);var f=d[0]+b.x*a*e;b=d[1]+b.y*a*e;return Fe(f,b,f+a*e,b+a*e,c)}function Hj(a,b,c,d,e,f){var g=Ph(a.a,d,0),h=d/a.a[g],m=a.Wb(g);a=a.na(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 ab(g,b,c,f)}l.na=function(a){return t(this.e)?this.e:this.b[a]};function Jj(a){Kf.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection});this.G=t(a.opaque)?a.opaque:!1;this.tileGrid=t(a.tileGrid)?a.tileGrid:null}G(Jj,Kf);l=Jj.prototype;l.kd=od;l.Uc=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.La(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.qc=ca(0);l.La=bb;l.Ya=function(){return this.tileGrid.Ya()};l.Cf=k("tileGrid");
function Kj(a,b){var c;if(null===a.tileGrid){if(c=b.f,null===c){c=b.p();for(var d=null===c?360*bf.degrees/b.c():Math.max(c[2]-c[0],c[3]-c[1]),e=t(void 0)?void 0:256,f=Array((t(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 Cj({origin:null===c?[0,0]:Oe(c),resolutions:f,tileSize:e});b.f=c}}else c=a.tileGrid;return c}l.Rb=function(a,b,c){return Kj(this,c).na(a)};l.Ie=fa;function Lj(a,b){Bc.call(this);this.d=a;this.a=b}G(Lj,Bc);Lj.prototype.f=fa;Lj.prototype.l=function(a){2===a.target.state&&Mj(this)};function Mj(a){var b=a.a;b.b()&&1==b.Xc()&&a.d.f.I()}function Nj(a,b){b.kd()&&a.Pa.push(va(function(a,b,e){b=A(a).toString();a.oe(e.bc[b])},b))}function Oj(a,b){if(null!=b){var c,d,e;d=0;for(e=b.length;d<e;++d)c=b[d],a[A(c).toString()]=c}}function Pj(a,b){var c=b.q;t(c)&&(a.dd[c]="")}
function Qj(a,b,c,d){b=A(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 Rj(a,b,c,d){return function(e,f,g){e=b.nb(e,f,g,c,d);return a(e)?e:null}}function Sj(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 Tj(a,b,c,d,e,f,g,h,m,n){var p=A(b).toString();p in a.Ab||(a.Ab[p]={});var r=a.Ab[p];a=a.Uh;var q=c.minZoom,u,x,w,v,y,z;t(h)||(h=0);for(z=g;z>=q;--z)for(x=Fj(c,f,z),w=c.a[z],v=x.a;v<=x.d;++v)for(y=x.b;y<=x.c;++y)g-z<=h?(u=b.nb(z,v,y,d,e),0==u.state&&(r[u.a.toString()]=!0,u.d()in a.b||Gf(a,[u,p,Ij(c,u.a),w])),t(m)&&m.call(n,u)):b.Ie(z,v,y)};function Uj(a){a=t(a)?a:{};this.b=t(a.anchor)?a.anchor:[0.5,0.5];this.c=t(a.anchorOrigin)?a.anchorOrigin:"top-left";this.d=t(a.anchorXUnits)?a.anchorXUnits:"fraction";this.g=t(a.anchorYUnits)?a.anchorYUnits:"fraction";var b=a.src,c=t(a.crossOrigin)?a.crossOrigin:null,d=Vj.Ka(),e;e=c+":"+b;e=e in d.a?d.a[e]:null;null===e&&(e=new Wj(b,c),d.a[c+":"+b]=e,++d.c);this.a=e;this.h=t(a.size)?a.size:null;ke.call(this,{opacity:t(a.opacity)?a.opacity:1,rotation:t(a.rotation)?a.rotation:0,scale:t(a.scale)?a.scale:
1,Fe:void 0,rotateWithView:t(a.rotateWithView)?a.rotateWithView:!1})}G(Uj,ke);l=Uj.prototype;l.Pb=function(){var a=this.b,b=this.vb();if("fraction"==this.d||"fraction"==this.g){if(null===b)return null;a=this.b.slice();"fraction"==this.d&&(a[0]*=b[0]);"fraction"==this.g&&(a[1]*=b[1])}if("top-left"!=this.c){if(null===b)return null;a===this.b&&(a=this.b.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]+=b[1]}return a};l.Vb=function(){return this.a.a};
l.re=function(){return this.a.c};l.qe=function(){var a=this.a;if(null===a.d)if(a.h){var b=oc("CANVAS"),c=a.e[0],d=a.e[1];b.width=c;b.height=d;b.getContext("2d").fillRect(0,0,c,d);a.d=b}else a.d=a.a;return a.d};l.gh=function(){return this.a.f};l.vb=function(){return null===this.h?this.a.e:this.h};l.ge=function(a,b){return J(this.a,"change",a,!1,b)};l.se=function(){var a=this.a;if(0==a.c){a.c=1;a.b=[ed(a.a,"error",a.g,!1,a),ed(a.a,"load",a.i,!1,a)];try{a.a.src=a.f}catch(b){a.g()}}};
l.He=function(a,b){fd(this.a,"change",a,!1,b)};function Wj(a,b){wd.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.h=!1}G(Wj,wd);Wj.prototype.g=function(){this.c=3;Ka(this.b,K);this.b=null;N(this,"change")};
Wj.prototype.i=function(){this.c=2;this.e=[this.a.width,this.a.height];Ka(this.b,K);this.b=null;var a=oc("CANVAS");a.width=1;a.height=1;a=a.getContext("2d");a.drawImage(this.a,0,0);try{a.getImageData(0,0,1,1)}catch(b){this.h=!0}N(this,"change")};function Vj(){this.a={};this.c=0;this.b=32}ga(Vj);Vj.prototype.clear=function(){this.a={};this.c=0};function Xj(a,b,c,d,e,f,g,h){Vd(a);0===b&&0===c||Xd(a,b,c);1==d&&1==e||Yd(a,d,e);0!==f&&Zd(a,f);0===g&&0===h||Xd(a,g,h);return a}function Yj(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 Zj(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 ak(a,b){Bc.call(this);this.f=b;this.b={}}G(ak,Bc);
function bk(a){var b=a.w,c=a.Md;Xj(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.ue;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],r=c[9],q=c[10],u=c[11],x=c[12],w=c[13],v=c[14],c=c[15],y=b*h-d*g,z=b*m-e*g,D=b*n-f*g,E=d*m-e*h,L=d*n-f*h,F=e*n-f*m,O=p*w-r*x,aa=p*v-q*x,sa=p*c-u*x,ma=r*v-q*w,M=r*c-u*w,ka=q*c-u*v,ea=y*ka-z*M+D*ma+E*sa-L*aa+F*O;0!=ea&&(ea=1/ea,a[0]=(h*ka-m*M+n*ma)*ea,a[1]=(-d*ka+e*M-f*ma)*ea,a[2]=(w*F-v*L+c*E)*ea,
a[3]=(-r*F+q*L-u*E)*ea,a[4]=(-g*ka+m*sa-n*aa)*ea,a[5]=(b*ka-e*sa+f*aa)*ea,a[6]=(-x*F+v*D-c*z)*ea,a[7]=(p*F-q*D+u*z)*ea,a[8]=(g*M-h*sa+n*O)*ea,a[9]=(-b*M+d*sa-f*O)*ea,a[10]=(x*L-w*D+c*y)*ea,a[11]=(-p*L+r*D-u*y)*ea,a[12]=(-g*ma+h*aa-m*O)*ea,a[13]=(b*ma-d*aa+e*O)*ea,a[14]=(-x*E+w*z-v*y)*ea,a[15]=(p*E-r*z+q*y)*ea)}ak.prototype.gc=function(a){return new Lj(this,a)};ak.prototype.A=function(){Vb(this.b,function(a){Fc(a)});ak.F.A.call(this)};
function ck(a,b){var c=A(b).toString();if(c in a.b)return a.b[c];var d=a.gc(b);return a.b[c]=d}ak.prototype.Ec=fa;ak.prototype.r=function(a,b){for(var c in this.b)if(!(null!==b&&c in b.$)){var d=this.b[c];delete this.b[c];Fc(d)}};function dk(a){a.Pa.push(function(){var a=Vj.Ka();if(a.c>a.b){var c=0,d,e;for(d in a.a)e=a.a[d],0!==(c++&3)||id(e)||(delete a.a[d],--a.c)}})}function ek(a,b){for(var c in a.b)if(!(c in b.$)){b.Pa.push(B(a.r,a));break}};function fk(a){Nf.call(this,a)}G(fk,Nf);function gk(a){Nf.call(this,a)}G(gk,Nf);gk.prototype.d=function(){return this.s("preload")};gk.prototype.getPreload=gk.prototype.d;gk.prototype.g=function(a){this.t("preload",a)};gk.prototype.setPreload=gk.prototype.g;gk.prototype.f=function(){return this.s("useInterimTilesOnError")};gk.prototype.getUseInterimTilesOnError=gk.prototype.f;gk.prototype.l=function(a){this.t("useInterimTilesOnError",a)};gk.prototype.setUseInterimTilesOnError=gk.prototype.l;function hk(a){a=t(a)?a:{};var b=bc(a);delete b.style;Nf.call(this,b);this.O=null;this.f=void 0;t(a.style)&&this.g(a.style)}G(hk,Nf);hk.prototype.r=function(){return this.s("renderGeometryFunctions")};hk.prototype.getRenderGeometryFunctions=hk.prototype.r;hk.prototype.Sa=k("O");hk.prototype.Ta=k("f");hk.prototype.Nc=function(a){this.t("renderGeometryFunctions",a)};hk.prototype.setRenderGeometryFunctions=hk.prototype.Nc;hk.prototype.g=function(a){this.O=a;this.f=qe(a);this.u()};function ik(a,b,c,d,e){this.S={};this.b=a;this.B=b;this.g=c;this.f=d;this.jb=e;this.h=this.a=this.c=this.ja=this.U=this.O=null;this.o=this.V=this.r=this.ca=0;this.ua=!1;this.i=this.Ia=0;this.Sa=!1;this.Ta=0;this.d="";this.l=this.q=0;this.G=this.n=this.k=null;this.e=[];this.Ua=Rd()}
function jk(a,b){if(null!==a.h){var c=Li(b,2,a.f,a.e),d=a.b,e=a.Ua,f=d.globalAlpha;1!=a.o&&(d.globalAlpha=f*a.o);var g=a.Ia;a.ua&&(g+=a.jb);var h,m;h=0;for(m=c.length;h<m;h+=2){var n=c[h]-a.ca,p=c[h+1]-a.r;a.Sa&&(n=n+0.5|0,p=p+0.5|0);if(0!==g||1!=a.i){var r=n+a.ca,q=p+a.r;Xj(e,r,q,a.i,a.i,g,-r,-q);d.setTransform(e[0],e[1],e[4],e[5],e[12],e[13])}d.drawImage(a.h,n,p,a.Ta,a.V)}0===g&&1==a.i||d.setTransform(1,0,0,1,0,0);1!=a.o&&(d.globalAlpha=f)}}
function kk(a,b,c,d){var e=0;if(null!==a.G&&""!==a.d){null===a.k||lk(a,a.k);null===a.n||mk(a,a.n);var f=a.G,g=a.b,h=a.ja;null===h?(g.font=f.font,g.textAlign=f.textAlign,g.textBaseline=f.textBaseline,a.ja={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=Li(b,d,a.f,a.e);for(f=a.b;e<c;e+=d){g=b[e];h=b[e+
1];if(0!==a.q||1!=a.l){var m=Xj(a.Ua,g,h,a.l,a.l,a.q,-g,-h);f.setTransform(m[0],m[1],m[4],m[5],m[12],m[13])}null===a.n||f.strokeText(a.d,g,h);null===a.k||f.fillText(a.d,g,h)}0===a.q&&1==a.l||f.setTransform(1,0,0,1,0,0)}}function nk(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 ok(a,b,c,d){var e=a.b,f,g;f=0;for(g=d.length;f<g;++f)c=nk(a,b,c,d[f],!0),e.closePath();return c}l=ik.prototype;
l.jc=function(a,b){var c=a.toString(),d=this.S[c];t(d)?d.push(b):this.S[c]=[b]};l.Kb=function(a){if(Ue(this.g,a.p())){if(null!==this.c||null!==this.a){null===this.c||lk(this,this.c);null===this.a||mk(this,this.a);var b=Qi(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&&kk(this,a.jd(),2,2)}};
l.Sc=function(a,b){var c=a.L();if(null!==c&&Ue(this.g,c.p())){var d=b.a;t(d)||(d=0);this.jc(d,function(a){a.sa(b.d,b.b);a.zb(b.e);a.ha(b.c);pk[c.D()].call(a,c,null)})}};l.Pd=function(a,b){var c=a.a,d,e;d=0;for(e=c.length;d<e;++d){var f=c[d];pk[f.D()].call(this,f,b)}};l.Ob=function(a){var b=a.j;a=a.a;null===this.h||jk(this,b);""!==this.d&&kk(this,b,b.length,a)};l.Nb=function(a){var b=a.j;a=a.a;null===this.h||jk(this,b);""!==this.d&&kk(this,b,b.length,a)};
l.Lb=function(a){if(Ue(this.g,a.p())){if(null!==this.a){mk(this,this.a);var b=Qi(a,this.f,this.e),c=this.b;c.beginPath();nk(this,b,0,b.length,!1);c.stroke()}""!==this.d&&(a=qk(a),kk(this,a,2,2))}};l.Mb=function(a){var b=a.p();if(Ue(this.g,b)){if(null!==this.a){mk(this,this.a);var b=Qi(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=nk(this,b,e,d[f],!1);c.stroke()}""!==this.d&&(a=rk(a),kk(this,a,a.length,2))}};
l.lb=function(a){if(Ue(this.g,a.p())){var b;if(null!==this.a||null!==this.c){null===this.c||lk(this,this.c);null===this.a||mk(this,this.a);b=Qi(a,this.f,this.e);var c=this.b;c.beginPath();ok(this,b,0,a.d);null===this.c||c.fill();null===this.a||c.stroke()}""!==this.d&&(a=bj(a),kk(this,a,2,2))}};
l.kc=function(a){if(Ue(this.g,a.p())){var b;if(null!==this.a||null!==this.c){null===this.c||lk(this,this.c);null===this.a||mk(this,this.a);b=Qi(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=ok(this,b,e,h);null===this.c||c.fill();null===this.a||c.stroke()}}""!==this.d&&(a=sk(a),kk(this,a,a.length,2))}};
function tk(a){var b=La(Yb(a.S),Number);Va(b);var c,d,e,f,g;c=0;for(d=b.length;c<d;++c)for(e=a.S[b[c].toString()],f=0,g=e.length;f<g;++f)e[f](a)}function lk(a,b){var c=a.b,d=a.O;null===d?(c.fillStyle=b.fillStyle,a.O={fillStyle:b.fillStyle}):d.fillStyle!=b.fillStyle&&(d.fillStyle=c.fillStyle=b.fillStyle)}
function mk(a,b){var c=a.b,d=a.U;null===d?(c.lineCap=b.lineCap,zc.dc&&c.setLineDash(b.lineDash),c.lineJoin=b.lineJoin,c.lineWidth=b.lineWidth,c.miterLimit=b.miterLimit,c.strokeStyle=b.strokeStyle,a.U={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),zc.dc&&!Xa(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.sa=function(a,b){if(null===a)this.c=null;else{var c=a.a;this.c={fillStyle:ce(null===c?ge: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:t(d)?d:"round",lineDash:null!=e?e:he,lineJoin:t(f)?f:"round",lineWidth:this.B*(t(g)?g:1),miterLimit:t(h)?h:10,strokeStyle:ce(null===c?ie:c)}}};
l.zb=function(a){if(null===a)this.h=null;else{var b=a.Pb(),c=a.Vb(1),d=a.i,e=a.k,f=a.e,g=a.f,h=a.vb();a=a.l;this.ca=b[0];this.r=b[1];this.V=h[1];this.h=c;this.o=t(d)?d:1;this.ua=t(e)?e:!1;this.Ia=t(f)?f:0;this.i=t(g)?g:1;this.Sa=t(a)?a:!1;this.Ta=h[0]}};
l.ha=function(a){if(null===a)this.d="";else{var b=a.c;null===b?this.k=null:(b=b.a,this.k={fillStyle:ce(null===b?ge:b)});var c=a.e;if(null===c)this.n=null;else{var b=c.a,d=c.b,e=c.d,f=c.e,g=c.c,c=c.f;this.n={lineCap:t(d)?d:"round",lineDash:null!=e?e:he,lineJoin:t(f)?f:"round",lineWidth:this.B*(t(g)?g:1),miterLimit:t(c)?c:10,strokeStyle:ce(null===b?ie:b)}}b=a.a;d=a.b;e=a.d;f=a.f;g=a.g;a=a.h;this.G={font:t(b)?b:"10px sans-serif",textAlign:t(g)?g:"center",textBaseline:t(a)?a:"middle"};this.d=t(f)?f:"";
this.q=t(d)?d:0;this.l=this.B*(t(e)?e:1)}};var pk={Point:ik.prototype.Ob,LineString:ik.prototype.Lb,Polygon:ik.prototype.lb,MultiPoint:ik.prototype.Nb,MultiLineString:ik.prototype.Mb,MultiPolygon:ik.prototype.kc,GeometryCollection:ik.prototype.Pd,Circle:ik.prototype.Kb};function uk(a,b){Lj.call(this,a,b);this.B=Rd()}G(uk,Lj);uk.prototype.k=function(a,b,c){vk(this,"precompose",c,a,void 0);var d=this.n();if(null!==d){var e=this.i();c.globalAlpha=b.opacity;if(0===a.w.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)}vk(this,"postcompose",c,a,void 0)};
function vk(a,b,c,d,e){var f=a.a;jd(f.W,b)&&(a=t(e)?e:wk(a,d),a=new ik(c,d.pixelRatio,d.extent,a,d.w.rotation),N(f,new re(b,f,a,d,c,null)),tk(a))}function wk(a,b){var c=b.w,d=b.pixelRatio;return Xj(a.B,d*b.size[0]/2,d*b.size[1]/2,d/c.resolution,-d/c.resolution,-c.rotation,-c.center[0],-c.center[1])};function xk(a){Kf.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.i=t(a.resolutions)?a.resolutions:null}G(xk,Kf);xk.prototype.Ya=k("i");function yk(a,b){null===a.i||(b=a.i[Ph(a.i,b,0)]);return b};function zk(a,b){uk.call(this,a,b);this.c=null;this.e=Rd()}G(zk,uk);zk.prototype.f=function(a,b,c,d){var e=this.a;return e.a.k(b.extent,b.w.resolution,b.w.rotation,a,function(a){return c.call(d,a,e)})};zk.prototype.n=function(){return null===this.c?null:this.c.e()};zk.prototype.i=k("e");
zk.prototype.b=function(a){var b=a.pixelRatio,c=a.w,d=c.center,e=c.resolution,f=c.rotation,g=this.a.a,h=a.P;h[0]||h[1]||(c=g.ub(a.extent,e,b,c.projection),null!==c&&(h=c.state,0==h?(ed(c,"change",this.l,!1,this),Bj(c)):2==h&&(this.c=c)));if(null!==this.c){var c=this.c,h=c.p(),m=c.d,n=c.b,e=b*m/(e*n);Xj(this.e,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);Oj(a.attributions,c.g);Pj(a,g)}};function Ak(a,b){uk.call(this,a,b);this.o=this.e=this.g=null;this.q=Rd();this.r=NaN;this.h=this.c=null}G(Ak,uk);Ak.prototype.n=k("g");Ak.prototype.i=k("q");
Ak.prototype.b=function(a){var b=a.pixelRatio,c=a.w,d=c.projection,e=this.a,f=e.a,g=Kj(f,d),h=f.qc(),m=Ph(g.a,c.resolution,0),n=f.Rb(m,a.pixelRatio,d),p=g.a[m],r=p/(n/g.na(m)),q=c.center,u;p==c.resolution?(q=Sj(q,p,a.size),u=Qe(q,p,c.rotation,a.size)):u=a.extent;var x=Gj(g,u,p),w=n*(x.d-x.a+1),v=n*(x.c-x.b+1),y,z;null===this.g?(y=oc("CANVAS"),y.width=w,y.height=v,z=y.getContext("2d"),this.g=y,this.e=[w,v],this.o=z):(y=this.g,z=this.o,this.e[0]<w||this.e[1]<v?(y.width=w,y.height=v,this.e=[w,v],this.c=
null):(w=this.e[0],v=this.e[1],m==this.r&&this.c.a<=x.a&&x.d<=this.c.d&&this.c.b<=x.b&&x.c<=this.c.c||(this.c=null)));var D,E;null===this.c?(w/=n,v/=n,D=x.a-Math.floor((w-(x.d-x.a+1))/2),E=x.b-Math.floor((v-(x.c-x.b+1))/2),this.r=m,this.c=new db(D,D+w-1,E,E+v-1),this.h=Array(w*v),v=this.c):(v=this.c,w=v.d-v.a+1);y={};y[m]={};var L=[],F=B(f.Uc,f,y,Rj(function(a){return null!==a&&2==a.state},f,b,d)),O=e.f();t(O)||(O=!0);var aa=De(),sa=new db(0,0,0,0),ma,M,ka;for(E=x.a;E<=x.d;++E)for(ka=x.b;ka<=x.c;++ka)M=
f.nb(m,E,ka,b,d),D=M.state,2==D||4==D||3==D&&!O?y[m][M.a.toString()]=M:(ma=g.oc(M.a,F,null,sa,aa),ma||(L.push(M),ma=g.rc(M.a,sa,aa),null===ma||F(m+1,ma)));F=0;for(ma=L.length;F<ma;++F)M=L[F],E=n*(M.a.x-v.a),ka=n*(v.c-M.a.y),z.clearRect(E,ka,n,n);L=La(Yb(y),Number);Va(L);var ea=f.G,Mb=Se(Ej(g,new $a(m,v.a,v.c),aa)),jb,tb,Sg,Bf,Cd,dj,F=0;for(ma=L.length;F<ma;++F)if(jb=L[F],n=f.Rb(jb,b,d),Bf=y[jb],jb==m)for(Sg in Bf)M=Bf[Sg],tb=(M.a.y-v.b)*w+(M.a.x-v.a),this.h[tb]!=M&&(E=n*(M.a.x-v.a),ka=n*(v.c-M.a.y),
D=M.state,4!=D&&(3!=D||O)&&ea||z.clearRect(E,ka,n,n),2==D&&z.drawImage(M.b(),h,h,n,n,E,ka,n,n),this.h[tb]=M);else for(Sg in jb=g.a[jb]/p,Bf)for(M=Bf[Sg],tb=Ej(g,M.a,aa),E=(tb[0]-Mb[0])/r,ka=(Mb[1]-tb[3])/r,dj=jb*n,Cd=jb*n,D=M.state,4!=D&&ea||z.clearRect(E,ka,dj,Cd),2==D&&z.drawImage(M.b(),h,h,n,n,E,ka,dj,Cd),M=Fj(g,tb,m,sa),D=Math.max(M.a,v.a),ka=Math.min(M.d,v.d),E=Math.max(M.b,v.b),M=Math.min(M.c,v.c);D<=ka;++D)for(Cd=E;Cd<=M;++Cd)tb=(Cd-v.b)*w+(D-v.a),this.h[tb]=void 0;Qj(a.bc,f,m,x);Tj(a,f,g,
b,d,u,m,e.d());Nj(a,f);Pj(a,f);Xj(this.q,b*a.size[0]/2,b*a.size[1]/2,b*r/c.resolution,b*r/c.resolution,c.rotation,(Mb[0]-q[0])/r,(q[1]-Mb[1])/r)};var Bk=["Polygon","LineString","Image","Text"];function Ck(a,b){this.U=a;this.G=b;this.q=this.o=null;this.c=[];this.coordinates=[];this.B=Rd();this.a=[];this.r=[];this.d=De();this.O=Rd()}
function Dk(a,b,c,d,e,f){var g=a.coordinates.length,h=a.G,m=[b[c],b[c+1]],n=[NaN,NaN],p=!0,r,q,u;for(r=c+e;r<d;r+=e){n[0]=b[r];n[1]=b[r+1];u=h[1];var x=h[2],w=h[3],v=n[0],y=n[1],z=0;v<h[0]?z=z|16:v>x&&(z=z|4);y<u?z|=8:y>w&&(z|=2);0===z&&(z=1);u=z;u!==q?(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];q=u}f&&(a.coordinates[g++]=b[c],a.coordinates[g++]=b[c+
1]);return g}function Ek(a,b){a.o=[0,b,0];a.c.push(a.o);a.q=[0,b,0];a.a.push(a.q)}
function Fk(a,b,c,d,e,f,g,h){var m;Yj(d,a.B)?m=a.r:(m=Li(a.coordinates,2,d,a.r),Ud(a.B,d));d=0;var n=g.length,p=0,r;for(a=a.O;d<n;){var q=g[d],u,x,w,v;switch(q[0]){case 0:r=q[1];f(r)?++d:d=q[2];break;case 1:b.beginPath();++d;break;case 2:r=m[p];var y=m[p+1],z=m[p+2]-r,q=m[p+3]-y;b.arc(r,y,Math.sqrt(z*z+q*q),0,2*Math.PI,!0);p+=4;++d;break;case 3:b.closePath();++d;break;case 4:p=q[1];r=q[2];u=q[3];w=q[4]*c;x=q[5]*c;var D=q[6]*c,E=q[7],y=q[9],z=q[10],L=q[11],F=q[12]*c;for(q[8]&&(y+=e);p<r;p+=2){q=m[p]-
w;v=m[p+1]-x;L&&(q=q+0.5|0,v=v+0.5|0);if(1!=z||0!==y){var O=q+w,aa=v+x;Xj(a,O,aa,z,z,y,-O,-aa);b.setTransform(a[0],a[1],a[4],a[5],a[12],a[13])}O=b.globalAlpha;1!=E&&(b.globalAlpha=O*E);b.drawImage(u,q,v,F,D);1!=E&&(b.globalAlpha=O);1==z&&0===y||b.setTransform(1,0,0,1,0,0)}++d;break;case 5:p=q[1];r=q[2];w=q[3];y=q[4];z=q[5]*c;u=q[6];for(x=q[7];p<r;p+=2){q=m[p];v=m[p+1];if(1!=z||0!==y)Xj(a,q,v,z,z,y,-q,-v),b.setTransform(a[0],a[1],a[4],a[5],a[12],a[13]);x&&b.strokeText(w,q,v);u&&b.fillText(w,q,v);1==
z&&0===y||b.setTransform(1,0,0,1,0,0)}++d;break;case 6:if(t(h)&&(r=q[1],r=h(r,q[2])))return r;++d;break;case 7:b.fill();++d;break;case 8:p=q[1];r=q[2];b.moveTo(m[p],m[p+1]);for(p+=2;p<r;p+=2)b.lineTo(m[p],m[p+1]);++d;break;case 9:b.fillStyle=q[1];++d;break;case 10:b.strokeStyle=q[1];b.lineWidth=q[2]*c;b.lineCap=q[3];b.lineJoin=q[4];b.miterLimit=q[5];zc.dc&&b.setLineDash(q[6]);++d;break;case 11:b.font=q[1];b.textAlign=q[2];b.textBaseline=q[3];++d;break;case 12:b.stroke();++d;break;default:++d}}}
function Gk(a){var b=a.a;b.reverse();var c,d=b.length,e,f=-1;for(c=0;c<d;++c)if(e=b[c],e=e[0],6==e)f=c;else if(0==e){e=a.a;for(var g=c;f<g;){var h=e[f];e[f]=e[g];e[g]=h;++f;--g}f=-1}}function Hk(a,b,c){a.o[2]=a.c.length;a.o=null;a.q[2]=a.a.length;a.q=null;b=[6,b,c];a.c.push(b);a.a.push(b)}Ck.prototype.Bc=fa;Ck.prototype.p=k("d");function Ik(a,b){Ck.call(this,a,b);this.g=this.ca=null;this.S=this.n=this.l=this.k=this.i=this.h=this.f=this.e=this.b=void 0}G(Ik,Ck);
Ik.prototype.Ob=function(a,b){if(null!==this.g){Me(this.d,a.p());Ek(this,a);var c=a.j,d=this.coordinates.length,c=Dk(this,c,0,c.length,a.a,!1);this.c.push([4,d,c,this.g,this.b,this.e,this.f,this.h,this.i,this.k,this.l,this.n,this.S]);this.a.push([4,d,c,this.ca,this.b,this.e,this.f,this.h,this.i,this.k,this.l,this.n,this.S]);Hk(this,a,b)}};
Ik.prototype.Nb=function(a,b){if(null!==this.g){Me(this.d,a.p());Ek(this,a);var c=a.j,d=this.coordinates.length,c=Dk(this,c,0,c.length,a.a,!1);this.c.push([4,d,c,this.g,this.b,this.e,this.f,this.h,this.i,this.k,this.l,this.n,this.S]);this.a.push([4,d,c,this.ca,this.b,this.e,this.f,this.h,this.i,this.k,this.l,this.n,this.S]);Hk(this,a,b)}};Ik.prototype.Bc=function(){Gk(this);this.e=this.b=void 0;this.g=this.ca=null;this.S=this.n=this.k=this.i=this.h=this.l=this.f=void 0};
Ik.prototype.zb=function(a){var b=a.Pb(),c=a.vb(),d=a.qe(1),e=a.Vb(1);this.b=b[0];this.e=b[1];this.ca=d;this.g=e;this.f=c[1];this.h=a.i;this.i=a.k;this.k=a.e;this.l=a.f;this.n=a.l;this.S=c[0]};function Jk(a,b){Ck.call(this,a,b);this.b={Gb:void 0,Bb:void 0,Cb:null,Db:void 0,Eb:void 0,Fb:void 0,cd:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}G(Jk,Ck);
function Kk(a,b,c,d,e){var f=a.coordinates.length;b=Dk(a,b,c,d,e,!1);f=[8,f,b];a.c.push(f);a.a.push(f);return d}function Lk(a){var b=a.b,c=b.strokeStyle,d=b.lineCap,e=b.lineDash,f=b.lineJoin,g=b.lineWidth,h=b.miterLimit;b.Gb==c&&b.Bb==d&&Xa(b.Cb,e)&&b.Db==f&&b.Eb==g&&b.Fb==h||(b.cd!=a.coordinates.length&&(a.c.push([12]),b.cd=a.coordinates.length),a.c.push([10,c,g,d,f,h,e],[1]),b.Gb=c,b.Bb=d,b.Cb=e,b.Db=f,b.Eb=g,b.Fb=h)}
Jk.prototype.Lb=function(a,b){var c=this.b,d=c.lineWidth;t(c.strokeStyle)&&t(d)&&(Me(this.d,a.p()),Lk(this),Ek(this,a),this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash],[1]),c=a.j,Kk(this,c,0,c.length,a.a),this.a.push([12]),Hk(this,a,b))};
Jk.prototype.Mb=function(a,b){var c=this.b,d=c.lineWidth;if(t(c.strokeStyle)&&t(d)){Me(this.d,a.p());Lk(this);Ek(this,a);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=Kk(this,d,f,c[g],e);this.a.push([12]);Hk(this,a,b)}};Jk.prototype.Bc=function(){this.b.cd!=this.coordinates.length&&this.c.push([12]);Gk(this);this.b=null};
Jk.prototype.sa=function(a,b){var c=b.a;this.b.strokeStyle=ce(null===c?ie:c);c=b.b;this.b.lineCap=t(c)?c:"round";c=b.d;this.b.lineDash=null===c?he:c;c=b.e;this.b.lineJoin=t(c)?c:"round";c=b.c;this.b.lineWidth=t(c)?c:1;c=b.f;this.b.miterLimit=t(c)?c:10};function Mk(a,b){Ck.call(this,a,b);this.b={Nd:void 0,Gb:void 0,Bb:void 0,Cb:null,Db:void 0,Eb:void 0,Fb:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}G(Mk,Ck);
function Nk(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=Dk(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);t(f.fillStyle)&&a.c.push(b);t(f.strokeStyle)&&(f=[12],a.c.push(f),a.a.push(f));return c}l=Mk.prototype;
l.Kb=function(a,b){var c=this.b,d=c.strokeStyle;if(t(c.fillStyle)||t(d)){Me(this.d,a.p());Ok(this);Ek(this,a);this.a.push([9,ce(ge)]);t(c.strokeStyle)&&this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]);d=a.j;Dk(this,d,0,d.length,a.a,!1);var d=[1],e=[2];this.c.push(d,e);this.a.push(d,e);Hk(this,a,b);d=[7];this.a.push(d);t(c.fillStyle)&&this.c.push(d);t(c.strokeStyle)&&(c=[12],this.c.push(c),this.a.push(c))}};
l.lb=function(a,b){var c=this.b,d=c.strokeStyle;if(t(c.fillStyle)||t(d))Me(this.d,a.p()),Ok(this),Ek(this,a),this.a.push([9,ce(ge)]),t(c.strokeStyle)&&this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]),c=a.d,d=aj(a),Nk(this,d,0,c,a.a),Hk(this,a,b)};
l.kc=function(a,b){var c=this.b,d=c.strokeStyle;if(t(c.fillStyle)||t(d)){Me(this.d,a.p());Ok(this);Ek(this,a);this.a.push([9,ce(ge)]);t(c.strokeStyle)&&this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]);var c=a.d,d=Pk(a),e=a.a,f=0,g,h;g=0;for(h=c.length;g<h;++g)f=Nk(this,d,f,c[g],e);Hk(this,a,b)}};l.Bc=function(){Gk(this);this.b=null;var a=this.U;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.sa=function(a,b){var c=this.b;if(null===a)c.fillStyle=void 0;else{var d=a.a;c.fillStyle=ce(null===d?ge: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=ce(null===d?ie:d),d=b.b,c.lineCap=t(d)?d:"round",d=b.d,c.lineDash=null===d?he:d.slice(),d=b.e,c.lineJoin=t(d)?d:"round",d=b.c,c.lineWidth=t(d)?d:1,d=b.f,c.miterLimit=t(d)?d:10)};
function Ok(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;t(c)&&b.Nd!=c&&(a.c.push([9,c]),b.Nd=b.fillStyle);!t(d)||b.Gb==d&&b.Bb==e&&b.Cb==f&&b.Db==g&&b.Eb==h&&b.Fb==m||(a.c.push([10,d,h,e,g,m,f]),b.Gb=d,b.Bb=e,b.Cb=f,b.Db=g,b.Eb=h,b.Fb=m)}function Qk(a,b){Ck.call(this,a,b);this.n=this.l=this.k=null;this.g="";this.i=this.h=0;this.f=this.e=this.b=null}G(Qk,Ck);
Qk.prototype.Ja=function(a,b,c,d,e,f){if(""!==this.g&&null!==this.f&&(null!==this.b||null!==this.e)){Ne(this.d,a,b,c,d);if(null!==this.b){var g=this.b,h=this.k;if(null===h||h.fillStyle!=g.fillStyle){var m=[9,g.fillStyle];this.c.push(m);this.a.push(m);null===h?this.k={fillStyle:g.fillStyle}:h.fillStyle=g.fillStyle}}null!==this.e&&(g=this.e,h=this.l,null===h||h.lineCap!=g.lineCap||h.lineDash!=g.lineDash||h.lineJoin!=g.lineJoin||h.lineWidth!=g.lineWidth||h.miterLimit!=g.miterLimit||h.strokeStyle!=g.strokeStyle)&&
(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.l={lineCap:g.lineCap,lineDash:g.lineDash,lineJoin:g.lineJoin,lineWidth:g.lineWidth,miterLimit:g.miterLimit,strokeStyle:g.strokeStyle}:(h.lineCap=g.lineCap,h.lineDash=g.lineDash,h.lineJoin=g.lineJoin,h.lineWidth=g.lineWidth,h.miterLimit=g.miterLimit,h.strokeStyle=g.strokeStyle));g=this.f;h=this.n;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.n={font:g.font,textAlign:g.textAlign,textBaseline:g.textBaseline}:(h.font=g.font,h.textAlign=g.textAlign,h.textBaseline=g.textBaseline);Ek(this,e);g=this.coordinates.length;a=Dk(this,a,b,c,d,!1);a=[5,g,a,this.g,this.h,this.i,null!==this.b,null!==this.e];this.c.push(a);this.a.push(a);Hk(this,e,f)}};
Qk.prototype.ha=function(a){if(null===a)this.g="";else{var b=a.c;null===b?this.b=null:(b=b.a,b=ce(null===b?ge:b),null===this.b?this.b={fillStyle:b}:this.b.fillStyle=b);var c=a.e;if(null===c)this.e=null;else{var b=c.a,d=c.b,e=c.d,f=c.e,g=c.c,c=c.f,d=t(d)?d:"round",e=null!=e?e.slice():he,f=t(f)?f:"round",g=t(g)?g:1,c=t(c)?c:10,b=ce(null===b?ie:b);if(null===this.e)this.e={lineCap:d,lineDash:e,lineJoin:f,lineWidth:g,miterLimit:c,strokeStyle:b};else{var h=this.e;h.lineCap=d;h.lineDash=e;h.lineJoin=f;h.lineWidth=
g;h.miterLimit=c;h.strokeStyle=b}}f=a.a;b=a.b;d=a.d;e=a.f;g=a.g;c=a.h;a=t(f)?f:"10px sans-serif";g=t(g)?g:"center";c=t(c)?c:"middle";null===this.f?this.f={font:a,textAlign:g,textBaseline:c}:(f=this.f,f.font=a,f.textAlign=g,f.textBaseline=c);this.g=t(e)?e:"";this.h=t(b)?b:0;this.i=t(d)?d:1}};function Rk(a,b){this.e=a;this.c=b;this.a={};var c=oc("CANVAS");c.width=1;c.height=1;this.b=c.getContext("2d");this.d=Rd()}
function Sk(a,b,c,d,e,f,g){var h=La(Yb(a.a),Number);Va(h);a:{var m=a.c,n=m[0],p=m[1],r=m[2],m=m[3],n=Li([n,p,n,m,r,m,r,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 q,u,n=0,p=h.length;n<p;++n)for(q=a.a[h[n].toString()],r=0,m=Bk.length;r<m;++r)if(u=q[Bk[r]],t(u)&&Ue(c,u.p())&&(u=Fk(u,b,d,e,f,g,u.c,void 0)))break a;b.restore()}}
function Tk(a,b,c,d,e,f,g,h){var m,n,p,r,q;m=0;for(n=b.length;m<n;++m)for(r in p=a.a[b[m].toString()],p)if(q=p[r],Ue(d,q.p())&&(q=Fk(q,c,1,e,f,g,q.a,h)))return q}function Uk(a,b,c,d,e,f,g){var h=a.d;Xj(h,0.5,0.5,1/c,-1/c,-d,-e[0],-e[1]);c=La(Yb(a.a),Number);Va(c,function(a,b){return b-a});var m=a.b;m.clearRect(0,0,1,1);return Tk(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 Vk(a){for(var b in a.a){var c=a.a[b],d;for(d in c)c[d].Bc()}}function Wk(a,b,c){var d=t(b)?b.toString():"0";b=a.a[d];t(b)||(b={},a.a[d]=b);d=b[c];t(d)||(d=new Xk[c](a.e,a.c),b[c]=d);return d}Rk.prototype.aa=function(){return Zb(this.a)};var Xk={Image:Ik,LineString:Jk,Polygon:Mk,Text:Qk};function Yk(a,b,c){Mi.call(this);this.Be(a,t(b)?b:0,c)}G(Yk,Mi);l=Yk.prototype;l.J=function(){var a=new Yk(null),b=this.j.slice();Oi(a,this.b,b);a.u();return a};l.la=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.ne()/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.Va=function(a,b){var c=this.j,d=a-c[0],c=b-c[1];return d*d+c*c<=Zk(this)};
l.jd=function(){return this.j.slice(0,this.a)};l.p=function(a){if(this.e!=this.c){var b=this.j,c=b[this.a]-b[0];this.extent=Fe(b[0]-c,b[1]-c,b[0]+c,b[1]+c,this.extent);this.e=this.c}return We(this.extent,a)};l.ne=function(){return Math.sqrt(Zk(this))};function Zk(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.Za=function(){return this};l.D=ca("Circle");l.Fg=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];Oi(this,this.b,d);this.u()};
l.Be=function(a,b,c){if(null===a)Oi(this,"XY",null);else{Pi(this,c,a,0);null===this.j&&(this.j=[]);c=this.j;a=ui(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.u()};l.Rh=function(a){this.j[this.a]=this.j[0]+a;this.u()};function $k(a){Ld.call(this);this.a=t(a)?a:null;al(this)}G($k,Ld);function bl(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(a[c].J());return b}function cl(a){var b,c;if(null!==a.a)for(b=0,c=a.a.length;b<c;++b)fd(a.a[b],"change",a.u,!1,a)}function al(a){var b,c;if(null!==a.a)for(b=0,c=a.a.length;b<c;++b)J(a.a[b],"change",a.u,!1,a)}l=$k.prototype;l.J=function(){var a=new $k(null);a.De(this.a);return a};
l.la=function(a,b,c,d){if(d<Ie(this.p(),a,b))return d;var e=this.a,f,g;f=0;for(g=e.length;f<g;++f)d=e[f].la(a,b,c,d);return d};l.Va=function(a,b){var c=this.a,d,e;d=0;for(e=c.length;d<e;++d)if(c[d].Va(a,b))return!0;return!1};l.p=function(a){if(this.e!=this.c){var b=Ke(this.extent),c=this.a,d,e;d=0;for(e=c.length;d<e;++d)Me(b,c[d].p());this.extent=b;this.e=this.c}return We(this.extent,a)};l.kf=function(){return bl(this.a)};
l.Za=function(a){this.i!=this.c&&($b(this.f),this.g=0,this.i=this.c);if(0>a||0!==this.g&&a<this.g)return this;var b=a.toString();if(this.f.hasOwnProperty(b))return this.f[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.Za(a);c.push(m);m!==h&&(e=!0)}if(e)return a=new $k(null),cl(a),a.a=c,al(a),a.u(),this.f[b]=a;this.g=a;return this};l.D=ca("GeometryCollection");l.aa=function(){return 0==this.a.length};l.De=function(a){a=bl(a);cl(this);this.a=a;al(this);this.u()};
l.transform=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)b[c].transform(a);this.u()};l.A=function(){cl(this);$k.F.A.call(this)};function dl(a,b){Mi.call(this);this.d=null;this.k=this.l=this.h=-1;this.K(a,b)}G(dl,Mi);l=dl.prototype;l.J=function(){var a=new dl(null);el(a,this.b,this.j.slice());return a};l.la=function(a,b,c,d){if(d<Ie(this.p(),a,b))return d;this.k!=this.c&&(this.l=Math.sqrt(Ri(this.j,0,this.j.length,this.a,0)),this.k=this.c);return Ti(this.j,0,this.j.length,this.a,this.l,!1,a,b,c,d)};l.Gg=function(a,b){return"XYM"!=this.b&&"XYZM"!=this.b?null:Ai(this.j,0,this.j.length,this.a,a,t(b)?b:!1)};
l.v=function(){return xi(this.j,0,this.j.length,this.a)};l.Hg=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 qk(a){a.h!=a.c&&(a.d=zi(a.j,0,a.j.length,a.a,a.d),a.h=a.c);return a.d}l.mb=function(a){var b=[];b.length=Vi(this.j,0,this.j.length,this.a,a,b,0);a=new dl(null);el(a,"XY",b);return a};l.D=ca("LineString");
l.K=function(a,b){null===a?el(this,"XY",null):(Pi(this,b,a,1),null===this.j&&(this.j=[]),this.j.length=vi(this.j,0,a,this.a),this.u())};function el(a,b,c){Oi(a,b,c);a.u()};function fl(a,b){Mi.call(this);this.d=[];this.h=this.k=-1;this.K(a,b)}G(fl,Mi);l=fl.prototype;l.J=function(){var a=new fl(null);gl(a,this.b,this.j.slice(),this.d.slice());return a};l.la=function(a,b,c,d){if(d<Ie(this.p(),a,b))return d;this.h!=this.c&&(this.k=Math.sqrt(Si(this.j,0,this.d,this.a,0)),this.h=this.c);return Ui(this.j,0,this.d,this.a,this.k,!1,a,b,c,d)};l.Jg=function(a,b,c){return"XYM"!=this.b&&"XYZM"!=this.b||0===this.j.length?null:Bi(this.j,this.d,this.a,a,t(b)?b:!1,t(c)?c:!1)};
l.v=function(){return yi(this.j,0,this.d,this.a)};l.Vd=function(){var a=this.v(),b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(new dl(a[c]));return b};function rk(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=zi(c,d,h,a);Sa(b,d);d=h}return b}l.mb=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=Vi(d,g,p,f,a,b,h);c.push(h);g=p}b.length=h;a=new fl(null);gl(a,"XY",b,c);return a};l.D=ca("MultiLineString");
l.K=function(a,b){if(null===a)gl(this,"XY",null,this.d);else{Pi(this,b,a,2);null===this.j&&(this.j=[]);var c=wi(this.j,0,a,this.a,this.d);this.j.length=0===c.length?0:c[c.length-1];this.u()}};function gl(a,b,c,d){Oi(a,b,c);a.d=d;a.u()}function hl(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);Sa(d,h.j);e.push(d.length)}gl(a,c,d,e)};function il(a,b){Mi.call(this);this.K(a,b)}G(il,Mi);l=il.prototype;l.J=function(){var a=new il(null),b=this.j.slice();Oi(a,this.b,b);a.u();return a};l.la=function(a,b,c,d){if(d<Ie(this.p(),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=Ki(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.v=function(){return xi(this.j,0,this.j.length,this.a)};l.yf=function(){var a=this.v(),b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(new Yi(a[c]));return b};
l.D=ca("MultiPoint");l.K=function(a,b){null===a?Oi(this,"XY",null):(Pi(this,b,a,1),null===this.j&&(this.j=[]),this.j.length=vi(this.j,0,a,this.a));this.u()};function jl(a,b){Mi.call(this);this.d=[];this.k=-1;this.l=null;this.q=this.n=this.o=-1;this.h=null;this.K(a,b)}G(jl,Mi);l=jl.prototype;l.J=function(){var a=new jl(null);kl(a,this.b,this.j.slice(),this.d.slice());return a};
l.la=function(a,b,c,d){if(d<Ie(this.p(),a,b))return d;if(this.n!=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=Si(this.j,f,n,this.a,g),f=n[n.length-1];this.o=Math.sqrt(g);this.n=this.c}e=Pk(this);f=this.d;g=this.a;h=this.o;m=0;var n=t(void 0)?void 0:[NaN,NaN],p,r;p=0;for(r=f.length;p<r;++p){var q=f[p];d=Ui(e,m,q,g,h,!0,a,b,c,d,n);m=q[q.length-1]}return d};
l.Va=function(a,b){var c;a:{c=Pk(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(Gi(c,e,h,this.a,a,b)){c=!0;break a}e=h[h.length-1]}}c=!1}return c};l.Kg=function(){var a=Pk(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+Fi(a,c,g,this.a),c=g[g.length-1];return d};l.v=function(){var a=this.j,b=this.d,c=this.a,d=0,e=t(void 0)?void 0:[],f=0,g,h;g=0;for(h=b.length;g<h;++g){var m=b[g];e[f++]=yi(a,d,m,c,e[f]);d=m[m.length-1]}e.length=f;return e};
function sk(a){if(a.k!=a.c){var b=a.j,c=a.d,d=a.a,e=0,f=[],g,h,m=De();g=0;for(h=c.length;g<h;++g){var n=c[g],m=b,p=n[0],r=d,q=Ke(void 0),m=Ne(q,m,e,p,r);f.push((m[0]+m[2])/2,(m[1]+m[3])/2);e=n[n.length-1]}b=Pk(a);c=a.d;d=a.a;g=0;h=[];n=0;for(m=c.length;n<m;++n)e=c[n],h=Hi(b,g,e,d,f,2*n,h),g=e[e.length-1];a.l=h;a.k=a.c}return a.l}l.pf=function(){var a=new il(null),b=sk(this).slice();Oi(a,"XY",b);a.u();return a};
function Pk(a){if(a.q!=a.c){var b=a.j,c;a:{c=a.d;var d,e;d=0;for(e=c.length;d<e;++d)if(!Ii(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=Ji(c,f,d[g],e);b.length=f}a.q=a.c}return a.h}l.mb=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],r=[],h=Wi(d,g,p,f,a,b,h,r);c.push(r);g=p[p.length-1]}b.length=h;d=new jl(null);kl(d,"XY",b,c);return d};
l.zf=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=h[h.length-1],n=new Zi(null);$i(n,a,b.slice(e,m),h.slice());d.push(n);e=m}return d};l.D=ca("MultiPolygon");
l.K=function(a,b){if(null===a)kl(this,"XY",null,this.d);else{Pi(this,b,a,3);null===this.j&&(this.j=[]);var c=this.j,d=this.a,e=this.d,f=0,e=t(e)?e:[],g=0,h,m;h=0;for(m=a.length;h<m;++h)f=wi(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.u()}};function kl(a,b,c,d){Oi(a,b,c);a.d=d;a.u()};function ll(a,b,c,d,e,f,g){var h=!1,m,n;m=c.e;null===m?ml(a,b,c,d,e):(n=m.re(),2==n||3==n?(m.He(f,g),2==n&&ml(a,b,c,d,e)):(0==n&&m.se(),m.ge(f,g),h=!0));return h}function ml(a,b,c,d,e){b=b.L();null!==b&&(d=b.Za(d),(0,nl[d.D()])(a,d,c,e))}
var nl={Point:function(a,b,c,d){var e=c.e;if(null!==e){var f=Wk(a,c.a,"Image");f.zb(e);f.Ob(b,d)}e=c.c;null!==e&&(a=Wk(a,c.a,"Text"),a.ha(e),a.Ja(b.v(),0,2,2,b,d))},LineString:function(a,b,c,d){var e=c.b;if(null!==e){var f=Wk(a,c.a,"LineString");f.sa(null,e);f.Lb(b,d)}e=c.c;null!==e&&(a=Wk(a,c.a,"Text"),a.ha(e),a.Ja(qk(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=Wk(a,c.a,"Polygon");g.sa(e,f);g.lb(b,d)}e=c.c;null!==e&&(a=Wk(a,c.a,"Text"),a.ha(e),a.Ja(bj(b),
0,2,2,b,d))},MultiPoint:function(a,b,c,d){var e=c.e;if(null!==e){var f=Wk(a,c.a,"Image");f.zb(e);f.Nb(b,d)}e=c.c;null!==e&&(a=Wk(a,c.a,"Text"),a.ha(e),c=b.j,a.Ja(c,0,c.length,b.a,b,d))},MultiLineString:function(a,b,c,d){var e=c.b;if(null!==e){var f=Wk(a,c.a,"LineString");f.sa(null,e);f.Mb(b,d)}e=c.c;null!==e&&(a=Wk(a,c.a,"Text"),a.ha(e),c=rk(b),a.Ja(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=Wk(a,c.a,"Polygon");g.sa(e,f);g.kc(b,d)}e=c.c;null!==
e&&(a=Wk(a,c.a,"Text"),a.ha(e),c=sk(b),a.Ja(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,nl[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=Wk(a,c.a,"Polygon");g.sa(e,f);g.Kb(b,d)}e=c.c;null!==e&&(a=Wk(a,c.a,"Text"),a.ha(e),a.Ja(b.jd(),0,2,2,b,d))}};function pl(a,b,c,d){this.extent=a;this.height=b;this.a=c;this.value=d}function ql(a,b){return a.extent[0]-b.extent[0]}function rl(a,b){return a.extent[1]-b.extent[1]}function sl(a,b,c,d){a=a.a;for(d=Ke(d);b<c;++b)Me(d,a[b].extent);return d}pl.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 Ia.splice.call(d,g,1),!0}else for(g=0;g<e;++g)if(f=d[g],Je(f.extent,a)){c.push(f);if(f.remove(a,b,c))return!0;c.pop()}return!1};
function tl(a){var b=Ke(a.extent);a=a.a;var c,d;c=0;for(d=a.length;c<d;++c)Me(b,a[c].extent)}function ul(a){this.b=Math.max(4,t(a)?a:9);this.d=Math.max(2,Math.ceil(0.4*this.b));this.a=new pl(De(),1,[],null);this.c={}}function vl(a,b,c){var d=b.a;a=a.d;var e=d.length;Va(d,c);c=sl(b,0,a);var f=sl(b,e-a,e),g=Te(c)+Re(c)+(Te(f)+Re(f));for(b=a;b<e-a;++b)Me(c,d[b].extent),g+=Te(c)+Re(c);for(b=e-a-1;b>=a;--b)Me(f,d[b].extent),g+=Te(f)+Re(f);return g}l=ul.prototype;
l.clear=function(){var a=this.a;a.extent=Ke(this.a.extent);a.height=1;a.a.length=0;a.value=null;$b(this.c)};l.forEach=function(a,b){return wl(this.a,a,b)};function wl(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 xl(a,b,c){yl(a,b,c,void 0)}
function yl(a,b,c,d){a=[a.a];for(var e;0<a.length;)if(e=a.pop(),Ue(b,e.extent))if(null===e.a){if(e=c.call(d,e.value))return e}else if(Je(b,e.extent)){if(e=wl(e,c,d))return e}else a.push.apply(a,e.a)}function zl(a){var b=[];a.forEach(function(a){b.push(a)});return b}function Al(a,b){var c=[];yl(a,b,function(a){c.push(a)},void 0);return c}l.p=function(a){return We(this.a.extent,a)};function Bl(a,b,c){var d=A(c).toString();Cl(a,b,c,a.a.height-1);a.c[d]=He(b)}
function Cl(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 r=f[n],q=Te(r.extent)*Re(r.extent),u=r.extent,x=b,w=Math.min(u[0],x[0]),v=Math.min(u[1],x[1]),y=Math.max(u[2],x[2]),u=Math.max(u[3],x[3]),w=(y-w)*(u-v)-q;w<h?(h=w,g=Math.min(q,g),m=r):w==h&&q<g&&(g=q,m=r)}f=m;e.push(f)}d=f;d.a.push(new pl(b,0,null,c));Me(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=vl(p,m,ql);
p=vl(p,m,rl);n<p&&Va(m.a,ql);m=d;n=g.d;p=m.a.length;q=r=Infinity;w=De();v=De();y=0;u=void 0;for(u=n;u<=p-n;++u){var w=sl(m,0,u,w),v=sl(m,u,p,v),z=w,D=v,x=Math.max(z[0],D[0]),E=Math.max(z[1],D[1]),L=Math.min(z[2],D[2]),z=Math.min(z[3],D[3]),x=Math.max(0,L-x)*Math.max(0,z-E),E=Te(w)*Re(w)+Te(v)*Re(v);x<r?(r=x,q=Math.min(E,q),y=u):x==r&&E<q&&(q=E,y=u)}m=d.a.splice(y);m=new pl(De(),d.height,m,null);tl(d);tl(m);f?h[f-1].a.push(m):(h=m,f=d.height+1,m=Me(d.extent.slice(),h.extent),g.a=new pl(m,f,[d,h],null))}else break;
for(;0<=c;--c)Me(e[c].extent,b)}l.aa=function(){return 0===this.a.a.length};l.remove=function(a){var b=A(a).toString(),c=this.c[b];delete this.c[b];return Dl(this,c,a)};function Dl(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?Pa(e[c-1].a,d):a.clear():tl(d);return b}l.update=function(a,b){var c=A(b).toString(),d=this.c[c];Le(d,a)||(Dl(this,d,b),Cl(this,a,b,this.a.height-1),this.c[c]=He(a,d))};function El(a){a=t(a)?a:{};Kf.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.a=new ul;this.b={};this.e={};t(a.features)&&Fl(this,a.features)}G(El,Kf);l=El.prototype;l.pe=function(a){Gl(this,a);this.u()};function Gl(a,b){var c=A(b).toString();a.e[c]=J(b,"change",a.ah,!1,a);c=b.L();null===c?a.b[A(b).toString()]=b:(c=c.p(),Bl(a.a,c,b));N(a,new Hl("addfeature",b))}l.Se=function(a){Fl(this,a);this.u()};
function Fl(a,b){var c,d;c=0;for(d=b.length;c<d;++c)Gl(a,b[c])}l.clear=function(){this.a.forEach(this.rd,this);this.a.clear();Vb(this.b,this.rd,this);$b(this.b);this.u()};l.bf=function(a,b){return this.a.forEach(a,b)};function Il(a,b,c){a.nc([b[0],b[1],b[0],b[1]],function(a){if(a.L().Va(b[0],b[1]))return c.call(void 0,a)})}l.nc=function(a,b,c){return yl(this.a,a,b,c)};l.$g=function(){var a=zl(this.a);Zb(this.b)||Sa(a,Xb(this.b));return a};
l.gf=function(a){var b=[];Il(this,a,function(a){b.push(a)});return b};l.ef=function(a){var b=a[0],c=a[1],d=null,e=[NaN,NaN],f=Infinity,g=[-Infinity,-Infinity,Infinity,Infinity];yl(this.a,g,function(a){var m=a.L(),n=f;f=m.la(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.p=function(){return this.a.p()};
l.ah=function(a){a=a.target;var b=A(a).toString(),c=a.L();null===c?b in this.b||(this.a.remove(a),this.b[b]=a):(c=c.p(),b in this.b?(delete this.b[b],Bl(this.a,c,a)):this.a.update(c,a));this.u()};l.aa=function(){return this.a.aa()&&Zb(this.b)};l.bh=function(a){var b=A(a).toString();b in this.b?delete this.b[b]:this.a.remove(a);this.rd(a);this.u()};l.rd=function(a){var b=A(a).toString();K(this.e[b]);delete this.e[b];N(this,new Hl("removefeature",a))};
function Hl(a,b){Gc.call(this,a);this.feature=b}G(Hl,Gc);function Jl(a,b){uk.call(this,a,b);this.Hb=!1;this.h=-1;this.g=NaN;this.o=De();this.c=null;this.e=oc("CANVAS").getContext("2d")}G(Jl,uk);
Jl.prototype.k=function(a,b,c){var d=wk(this,a);vk(this,"precompose",c,a,d);var e=this.c;if(null!==e&&!e.aa()){var f;jd(this.a.W,"render")?(this.e.canvas.width=c.canvas.width,this.e.canvas.height=c.canvas.height,f=this.e):f=c;var g=Kl(this);f.globalAlpha=b.opacity;Sk(e,f,a.extent,a.pixelRatio,d,a.w.rotation,g);f!=c&&(vk(this,"render",f,a,d),c.drawImage(f.canvas,0,0))}vk(this,"postcompose",c,a,d)};
Jl.prototype.f=function(a,b,c,d){if(null!==this.c){var e=b.extent,f=b.w.resolution;b=b.w.rotation;var g=this.a,h=Kl(this);return Uk(this.c,e,f,b,a,h,function(a,b){return c.call(d,b,g)})}};function Kl(a){a=a.a.r();if(!t(a))return pd;var b=a.a;switch(b.length){case 0:return pd;case 1:return b[0];default:return function(a){var d,e;d=0;for(e=b.length;d<e;++d)if(!b[d](a))return!1;return!0}}}Jl.prototype.Og=function(){Mj(this)};
Jl.prototype.b=function(a){var b=this.a,c=b.a;Oj(a.attributions,c.d);Pj(a,c);if(this.Hb||!a.P[0]&&!a.P[1]){var d=a.extent,e=a.w.resolution,f=a.pixelRatio;a=b.c;if(this.Hb||this.g!=e||this.h!=a||!Je(this.o,d)){var g=this.o,h=Te(d)/4,m=Re(d)/4;g[0]=d[0]-h;g[1]=d[1]-m;g[2]=d[2]+h;g[3]=d[3]+m;Fc(this.c);this.c=null;this.Hb=!1;var n=b.f;t(n)||(n=pe);var p=new Rk(e/(2*f),g);c.nc(g,function(a){var b=n(a,e);if(null!=b){var c=e*e/(4*f*f),d,g,h=!1;d=0;for(g=b.length;d<g;++d)h=ll(p,a,b[d],c,a,this.Og,this)||
h;a=h}else a=!1;this.Hb=this.Hb||a},this);Vk(p);this.g=e;this.h=a;this.c=p}}};function Ll(a,b){ak.call(this,0,b);this.a=oc("CANVAS");this.a.style.width="100%";this.a.style.height="100%";this.a.className="ol-unselectable";sc(a,this.a,0);this.c=!0;this.g=this.a.getContext("2d");this.h=Rd()}G(Ll,ak);Ll.prototype.gc=function(a){return a instanceof fk?new zk(this,a):a instanceof gk?new Ak(this,a):a instanceof hk?new Jl(this,a):null};
function Ml(a,b,c){var d=a.f,e=a.g;if(jd(d.W,b)){var f=c.w,g=c.pixelRatio;Xj(a.h,a.a.width/2,a.a.height/2,g/f.resolution,-g/f.resolution,-f.rotation,-f.center[0],-f.center[1]);a=new ik(e,g,c.extent,a.h,f.rotation);N(d,new re(b,d,a,c,e,null));tk(a)}}
Ll.prototype.Ec=function(a){if(null===a)this.c&&(nh(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);bk(a);Ml(this,"precompose",a);var c=a.$,d=a.yc,e=a.w.resolution,f,g,h,m;f=0;for(g=d.length;f<g;++f)h=d[f],m=ck(this,h),h=c[A(h)],!h.visible||(1!=h.sd||e>=h.maxResolution||e<h.minResolution)||(m.b(a,h),m.k(a,h,b));Ml(this,"postcompose",a);this.c||(nh(this.a,
!0),this.c=!0);ek(this,a);dk(a)}};var Nl=function(){var a;return function(){if(!t(a))if(s.getComputedStyle){var b=oc("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=s.getComputedStyle(b).getPropertyValue(d[e]));tc(b);a=c&&"none"!==c}else a=!1;return a}}(),Ol=function(){var a;return function(){if(!t(a))if(s.getComputedStyle){var b=oc("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=s.getComputedStyle(b).getPropertyValue(d[e]));tc(b);a=c&&"none"!==c}else a=!1;return a}}();function Pl(a,b){var c=a.style;c.WebkitTransform=b;c.MozTransform=b;c.a=b;c.msTransform=b;c.transform=b;H&&!Ac&&(a.style.transformOrigin="0 0")}
function Ql(a,b){var c;if(Ol()){if(t(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");Pl(a,"matrix3d("+c+")")}else if(Nl()){d=[b[0],b[1],b[4],b[5],b[12],b[13]];if(t(6)){var e=Array(6);for(c=0;6>c;++c)e[c]=d[c].toFixed(6);c=e.join(",")}else c=d.join(",");Pl(a,"matrix("+c+")")}else a.style.left=Math.round(b[12])+"px",a.style.top=Math.round(b[13])+"px"};function Rl(a,b,c){Lj.call(this,a,b);this.target=c}G(Rl,Lj);function Sl(a,b){var c=oc("DIV");c.style.position="absolute";Rl.call(this,a,b,c);this.c=null;this.e=Td()}G(Sl,Rl);Sl.prototype.f=function(a,b,c,d){var e=this.a;return e.a.k(b.extent,b.w.resolution,b.w.rotation,a,function(a){return c.call(d,a,e)})};
Sl.prototype.b=function(a){var b=a.w,c=b.center,d=b.resolution,e=b.rotation,f=this.c,g=this.a.a,h=a.P;h[0]||h[1]||(b=g.ub(a.extent,d,a.pixelRatio,b.projection),null!==b&&(h=b.state,0==h?(ed(b,"change",this.l,!1,this),Bj(b)):2==h&&(f=b)));if(null!==f){var h=f.p(),m=f.d,b=Rd();Xj(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",qc(this.target),this.target.appendChild(c),this.c=f);Yj(b,this.e)||(Ql(this.target,
b),Ud(this.e,b));Oj(a.attributions,f.g);Pj(a,g)}};function Tl(a,b){var c=oc("DIV");c.style.position="absolute";Rl.call(this,a,b,c);this.e=!0;this.h=1;this.g=0;this.c={}}G(Tl,Rl);
Tl.prototype.b=function(a,b){if(b.visible){var c=a.pixelRatio,d=a.w,e=d.projection,f=this.a,g=f.a,h=Kj(g,e),m=g.qc(),n=Ph(h.a,d.resolution,0),p=h.a[n],r=d.center,q;p==d.resolution?(r=Sj(r,p,a.size),q=Qe(r,p,d.rotation,a.size)):q=a.extent;var p=Gj(h,q,p),u={};u[n]={};var x=B(g.Uc,g,u,Rj(function(a){return null!==a&&2==a.state},g,c,e)),w=f.f();t(w)||(w=!0);var v=De(),y=new db(0,0,0,0),z,D,E,L;for(E=p.a;E<=p.d;++E)for(L=p.b;L<=p.c;++L)z=g.nb(n,E,L,c,e),D=z.state,2==D?u[n][z.a.toString()]=z:4==D||3==
D&&!w||(D=h.oc(z.a,x,null,y,v),D||(z=h.rc(z.a,y,v),null===z||x(n+1,z)));var F;if(this.g!=g.c){for(F in this.c)w=this.c[+F],tc(w.target);this.c={};this.g=g.c}v=La(Yb(u),Number);Va(v);var x={},O;E=0;for(L=v.length;E<L;++E){F=v[E];F in this.c?w=this.c[F]:(w=Hj(h,r[0],r[1],h.a[F],!1,void 0),w=new Ul(h,w),x[F]=!0,this.c[F]=w);F=u[F];for(O in F)Vl(w,F[O],m);Wl(w)}m=La(Yb(this.c),Number);Va(m);E=Rd();O=0;for(v=m.length;O<v;++O)if(F=m[O],w=this.c[F],F in u)if(z=w.g,L=w.f,Xj(E,a.size[0]/2,a.size[1]/2,z/d.resolution,
z/d.resolution,d.rotation,(L[0]-r[0])/z,(r[1]-L[1])/z),Xl(w,E),F in x){for(F-=1;0<=F;--F)if(F in this.c){rc(w.target,this.c[F].target);break}0>F&&sc(this.target,w.target,0)}else a.P[0]||a.P[1]||Yl(w,q,y);else tc(w.target),delete this.c[F];b.opacity!=this.h&&(mh(this.target,b.opacity),this.h=b.opacity);b.visible&&!this.e&&(nh(this.target,!0),this.e=!0);Qj(a.bc,g,n,p);Tj(a,g,h,c,e,q,n,f.d());Nj(a,g);Pj(a,g)}else this.e&&(nh(this.target,!1),this.e=!1)};
function Ul(a,b){this.target=oc("DIV");this.target.style.position="absolute";this.target.style.width="100%";this.target.style.height="100%";this.e=a;this.b=b;this.f=Se(Ej(a,b));this.g=a.a[b.a];this.c={};this.a=null;this.d=Td()}
function Vl(a,b,c){var d=b.a,e=d.toString();if(!(e in a.c)){var f=a.e.na(d.a),g=b.b(a),h=g.style;h.maxWidth="none";var m,n;0<c?(m=oc("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 Wl(a){null!==a.a&&(a.target.appendChild(a.a),a.a=null)}function Yl(a,b,c){var d=Fj(a.e,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(),tc(c.b(a)),delete a.c[e]}function Xl(a,b){Yj(b,a.d)||(Ql(a.target,b),Ud(a.d,b))};function Zl(a,b){ak.call(this,0,b);this.a=oc("DIV");this.a.className="ol-unselectable";var c=this.a.style;c.position="absolute";c.width="100%";c.height="100%";sc(a,this.a,0);this.c=!0}G(Zl,ak);Zl.prototype.gc=function(a){if(a instanceof fk)a=new Sl(this,a);else if(a instanceof gk)a=new Tl(this,a);else return null;return a};
Zl.prototype.Ec=function(a){if(null===a)this.c&&(nh(this.a,!1),this.c=!1);else{var b;b=function(a,b){sc(this.a,a,b)};var c=a.$,d=a.yc,e,f,g,h;e=0;for(f=d.length;e<f;++e)g=d[e],h=ck(this,g),b.call(this,h.target,e),g=a.$[A(g)],1==g.sd&&h.b(a,g);for(var m in this.b)m in c||(h=this.b[m],tc(h.target));this.c||(nh(this.a,!0),this.c=!0);bk(a);ek(this,a);dk(a)}};function $l(){}l=$l.prototype;l.jc=ba();l.Kb=ba();l.Sc=ba();l.Pd=ba();l.Ob=ba();l.Lb=ba();l.Mb=ba();l.Nb=ba();l.kc=ba();l.lb=ba();l.Ja=ba();l.sa=ba();l.zb=ba();l.ha=ba();function am(){this.g=Rd();this.c=void 0;this.a=Rd();this.d=void 0;this.b=Rd();this.f=void 0;this.e=Rd();this.i=void 0;this.h=Rd()}
function bm(a,b,c,d,e){var f=!1;t(b)&&b!==a.c&&(f=a.a,Vd(f),f[12]=b,f[13]=b,f[14]=b,f[15]=1,a.c=b,f=!0);if(t(c)&&c!==a.d){f=a.b;Vd(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}t(d)&&d!==a.f&&(f=Math.cos(d),g=Math.sin(d),Sd(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);t(e)&&
e!==a.i&&(Sd(a.h,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.i=e,f=!0);f&&(f=a.g,Vd(f),t(c)&&Wd(f,a.b,f),t(b)&&Wd(f,a.a,f),t(e)&&Wd(f,a.h,f),t(d)&&Wd(f,a.e,f));return a.g};function cm(a){this.a=a}function dm(a){this.a=a}G(dm,cm);dm.prototype.D=ca(35632);function em(a){this.a=a}G(em,cm);em.prototype.D=ca(35633);function fm(){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;}"}G(fm,dm);ga(fm);function gm(){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;}"}G(gm,em);ga(gm);
function hm(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 im(){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;}"}G(im,dm);ga(im);function jm(){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;}"}G(jm,em);ga(jm);
function km(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 lm(a){this.a=t(a)?a:[]}function mm(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);nm(a);return}d.push(b,c);nm(a)}}lm.prototype.clear=function(){this.a.length=0};function nm(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 om(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])}
lm.prototype.aa=function(){return 0===this.a.length};function pm(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}nm(a)};function qm(a,b,c){this.c=t(a)?a:[];this.a=[];this.b=new lm;a=t(b)?b:this.c.length;a<this.c.length&&mm(this.b,a,this.c.length);this.e=this.f=null;this.d=t(c)?c:35044}qm.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}pm(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)mm(this.a[a],c,c+b);return c};
qm.prototype.wa=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};qm.prototype.remove=function(a,b){var c,d;mm(this.b,b,b+a);c=0;for(d=this.a.length;c<d;++c)pm(this.a[c],b,b+a)};function rm(a,b){Lj.call(this,a,b);this.O=new qm([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]);this.g=this.ia=null;this.h=void 0;this.r=Rd();this.B=Td();this.ja=new am;this.k=this.i=null}G(rm,Lj);
function sm(a,b,c){var d=a.d.d;if(t(a.h)&&a.h==c)d.bindFramebuffer(36160,a.g);else{b.Pa.push(va(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},d,a.g,a.ia));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.ia=b;a.g=e;a.h=c}}
function tm(a,b,c,d){a=a.a;jd(a.W,b)&&N(a,new re(b,a,new $l,d,null,c))}rm.prototype.n=function(){this.g=this.ia=null;this.h=void 0};function um(a,b){rm.call(this,a,b);this.c=null}G(um,rm);function vm(a,b){var c=b.e(),d=a.d.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}um.prototype.f=function(a,b,c,d){var e=this.a;return e.a.k(b.extent,b.w.resolution,b.w.rotation,a,function(a){return c.call(d,a,e)})};
um.prototype.b=function(a){var b=this.d.d,c=a.w,d=c.center,e=c.resolution,f=c.rotation,g=this.c,h=this.ia,m=this.a.a,n=a.P;n[0]||n[1]||(c=m.ub(a.extent,e,a.pixelRatio,c.projection),null!==c&&(n=c.state,0==n?(ed(c,"change",this.l,!1,this),Bj(c)):2==n&&(g=c,h=vm(this,c),null===this.ia||a.Pa.push(va(function(a,b){a.isContextLost()||a.deleteTexture(b)},b,this.ia)))));null!==g&&(b=this.d.e.f,wm(this,b.width,b.height,d,e,f,g.p()),d=this.r,Vd(d),Yd(d,1,-1),Xd(d,0,-1),this.c=g,this.ia=h,Oj(a.attributions,
g.g),Pj(a,m))};function wm(a,b,c,d,e,f,g){b*=e;c*=e;a=a.B;Vd(a);Yd(a,2/b,2/c);Zd(a,-f);Xd(a,g[0]-d[0],g[1]-d[1]);Yd(a,(g[2]-g[0])/2,(g[3]-g[1])/2);Xd(a,1,1)};function xm(){this.a="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor\x3dtexture2D(e,a);}"}G(xm,dm);ga(xm);function ym(){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;}"}G(ym,em);ga(ym);function zm(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 Am(a,b){rm.call(this,a,b);this.U=xm.Ka();this.V=ym.Ka();this.c=null;this.G=new qm([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]);this.q=this.e=null;this.o=-1}G(Am,rm);Am.prototype.A=function(){var a=this.d.e,b=a.c,c=A(this.G),d=a.a[c];Pa(d.Id.a,d.ic);b.isContextLost()||b.deleteBuffer(d.buffer);delete a.a[c];Am.F.A.call(this)};Am.prototype.n=function(){Am.F.n.call(this);this.c=null};
Am.prototype.b=function(a){var b=this.d,c=b.e,d=b.d,e=a.w,f=e.projection,g=this.a,h=g.a,m=Kj(h,f),n=Ph(m.a,e.resolution,0),p=m.a[n],r=h.Rb(n,a.pixelRatio,f),q=r/m.na(n),u=p/q,x=h.qc(),w=e.center,v;p==e.resolution?(w=Sj(w,p,a.size),v=Qe(w,p,e.rotation,a.size)):v=a.extent;p=Gj(m,v,p);if(null!==this.e&&this.e.a==p.a&&(this.e.b==p.b&&this.e.d==p.d&&this.e.c==p.c)&&this.o==h.c)u=this.q;else{var y=[p.d-p.a+1,p.c-p.b+1],y=Math.max(y[0]*r,y[1]*r),z=Math.pow(2,Math.ceil(Math.log(y)/Math.LN2)),y=u*z,D=m.Wb(n),
E=D[0]+p.a*r*u,u=D[1]+p.b*r*u,u=[E,u,E+y,u+y];sm(this,a,z);d.viewport(0,0,z,z);d.clearColor(0,0,0,0);d.clear(16384);d.disable(3042);z=Bm(c,this.U,this.V);c.ld(z);null===this.c&&(this.c=new zm(d,z));Cm(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 L=B(h.Uc,h,c,Rj(function(a){return null!==a&&2==a.state&&Dm(b.c,a.d())},h,q,f)),F=g.f();
t(F)||(F=!0);var z=!0,E=De(),O=new db(0,0,0,0),aa,sa,ma;for(sa=p.a;sa<=p.d;++sa)for(ma=p.b;ma<=p.c;++ma){D=h.nb(n,sa,ma,q,f);aa=D.state;if(2==aa){if(Dm(b.c,D.d())){c[n][D.a.toString()]=D;continue}}else if(4==aa||3==aa&&!F)continue;z=!1;aa=m.oc(D.a,L,null,O,E);aa||(D=m.rc(D.a,O,E),null===D||L(n+1,D))}L=La(Yb(c),Number);Va(L);var F=new Float32Array(4),M,ka,ea,Mb,O=0;for(sa=L.length;O<sa;++O)for(ka in ea=c[L[O]],ea)D=ea[ka],M=Ej(m,D.a,E),ma=2*(M[2]-M[0])/y,aa=2*(M[3]-M[1])/y,Mb=2*(M[0]-u[0])/y-1,M=2*
(M[1]-u[1])/y-1,Qd(F,ma,aa,Mb,M),d.uniform4fv(this.c.d,F),Em(b,D,r,x*q),d.drawArrays(5,0,4);z?(this.e=p,this.q=u,this.o=h.c):(this.q=this.e=null,this.o=-1,a.da=!0)}Qj(a.bc,h,n,p);var jb=b.h;Tj(a,h,m,q,f,v,n,g.d(),function(a){var c;(c=2!=a.state)||(c=Dm(b.c,a.d()))||(c=a.d()in jb.b);c||Gf(jb,[a,Ij(m,a.a),m.a[a.a.a],r,x*q])},this);Nj(a,h);Pj(a,h);d=this.r;Vd(d);Xd(d,(w[0]-u[0])/(u[2]-u[0]),(w[1]-u[1])/(u[3]-u[1]));0!==e.rotation&&Zd(d,e.rotation);Yd(d,a.size[0]*e.resolution/(u[2]-u[0]),a.size[1]*e.resolution/
(u[3]-u[1]));Xd(d,-0.5,-0.5)};function Fm(){this.H=0;this.b={};this.c=this.a=null}l=Fm.prototype;l.clear=function(){this.H=0;this.b={};this.c=this.a=null};function Dm(a,b){return a.b.hasOwnProperty(b)}l.forEach=function(a,b){for(var c=this.a;null!==c;)a.call(b,c.ib,c.xc,this),c=c.oa};function Gm(a,b){var c=a.b[b];if(c===a.c)return c.ib;c===a.a?(a.a=a.a.oa,a.a.Oa=null):(c.oa.Oa=c.Oa,c.Oa.oa=c.oa);c.oa=null;c.Oa=a.c;a.c.oa=c;a.c=c;return c.ib}l.wa=k("H");
l.Aa=function(){var a=Array(this.H),b=0,c;for(c=this.c;null!==c;c=c.Oa)a[b++]=c.xc;return a};l.Ba=function(){var a=Array(this.H),b=0,c;for(c=this.c;null!==c;c=c.Oa)a[b++]=c.ib;return a};l.pop=function(){var a=this.a;delete this.b[a.xc];null!==a.oa&&(a.oa.Oa=null);this.a=a.oa;null===this.a&&(this.c=null);--this.H;return a.ib};function Hm(a,b,c){c={xc:b,oa:null,Oa:a.c,ib:c};null===a.c?a.a=c:a.c.oa=c;a.c=c;a.b[b]=c;++a.H};function Im(a,b){this.f=a;this.c=b;this.a={};this.d={};this.b={};this.e=null;J(this.f,"webglcontextlost",this.uh,!1,this);J(this.f,"webglcontextrestored",this.vh,!1,this)}
function Cm(a,b){var c=a.c,d=b.c,e=A(b);if(e in a.a)e=a.a[e],c.bindBuffer(34962,e.buffer),om(e.ic,function(a,b){var e=d.slice(a,b);c.bufferSubData(34962,a,new Float32Array(e))}),e.ic.clear();else{var f=c.createBuffer();c.bindBuffer(34962,f);c.bufferData(34962,new Float32Array(d),b.d);var g=new lm;b.a.push(g);a.a[e]={Id:b,buffer:f,ic:g}}}l=Im.prototype;
l.A=function(){Vb(this.a,function(a){Pa(a.Id.a,a.ic)});var a=this.c;a.isContextLost()||(Vb(this.a,function(b){a.deleteBuffer(b.buffer)}),Vb(this.b,function(b){a.deleteProgram(b)}),Vb(this.d,function(b){a.deleteShader(b)}))};l.th=k("c");function Jm(a,b){var c=A(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 Bm(a,b,c){var d=A(b)+"/"+A(c);if(d in a.b)return a.b[d];var e=a.c,f=e.createProgram();e.attachShader(f,Jm(a,b));e.attachShader(f,Jm(a,c));e.linkProgram(f);return a.b[d]=f}l.uh=function(){$b(this.a);$b(this.d);$b(this.b);this.e=null};l.vh=ba();l.ld=function(a){if(a==this.e)return!1;this.c.useProgram(a);this.e=a;return!0};function Km(a,b){ak.call(this,0,b);this.a=oc("CANVAS");this.a.style.width="100%";this.a.style.height="100%";this.a.className="ol-unselectable";sc(a,this.a,0);this.n=oc("CANVAS");this.l=0;this.o=this.n.getContext("2d");this.i=!0;this.d=yc(this.a,{antialias:!0,depth:!1,af:!0,preserveDrawingBuffer:!1,stencil:!0});this.e=new Im(this.a,this.d);J(this.a,"webglcontextlost",this.Pg,!1,this);J(this.a,"webglcontextrestored",this.Qg,!1,this);this.c=new Fm;this.k=null;this.h=new Df(B(function(a){var b=a[1];a=
a[2];var e=b[0]-this.k[0],b=b[1]-this.k[1];return 65536*Math.log(a)+Math.sqrt(e*e+b*b)/a},this),function(a){return a[0].d()});this.q=B(function(){if(!this.h.aa()){If(this.h);var a=Ef(this.h);Em(this,a[0],a[3],a[4])}},this);this.g=0;Lm(this)}G(Km,ak);
function Em(a,b,c,d){var e=a.d,f=b.d();if(Dm(a.c,f))a=Gm(a.c,f),e.bindTexture(3553,a.ia),9729!=a.he&&(e.texParameteri(3553,10240,9729),a.he=9729),9729!=a.ie&&(e.texParameteri(3553,10240,9729),a.ie=9729);else{var g=e.createTexture();e.bindTexture(3553,g);if(0<d){var h=a.n,m=a.o;a.l!=c?(h.width=c,h.height=c,a.l=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);Hm(a.c,f,{ia:g,he:9729,ie:9729})}}l=Km.prototype;l.gc=function(a){return a instanceof fk?new um(this,a):a instanceof gk?new Am(this,a):null};function Mm(a,b,c){var d=a.f;jd(d.W,b)&&N(d,new re(b,d,new $l,c,null,a.e))}l.A=function(){var a=this.d;a.isContextLost()||this.c.forEach(function(b){null===b||a.deleteTexture(b.ia)});Fc(this.e);Km.F.A.call(this)};
l.$e=function(a,b){for(var c=this.d,d;1024<this.c.wa()-this.g;){d=this.c.a.ib;if(null===d)if(+this.c.a.xc==b.index)break;else--this.g;else c.deleteTexture(d.ia);this.c.pop()}};l.Pg=function(a){a.M();this.c.clear();this.g=0;Vb(this.b,function(a){a.n()})};l.Qg=function(){Lm(this);this.f.I()};function Lm(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.Ec=function(a){var b=this.e,c=this.d;if(c.isContextLost())return!1;if(null===a)return this.i&&(nh(this.a,!1),this.i=!1),!1;this.k=a.focus;Hm(this.c,(-a.index).toString(),null);++this.g;var d=[],e=a.yc,f=a.w.resolution,g,h,m,n;g=0;for(h=e.length;g<h;++g)m=e[g],n=a.$[A(m)],n.visible&&(1==n.sd&&f<n.maxResolution&&f>=n.minResolution)&&d.push(m);g=0;for(h=d.length;g<h;++g)m=d[g],e=ck(this,m),n=a.$[A(m)],e.b(a,n);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);Mm(this,"precompose",a);g=0;for(h=d.length;g<h;++g){m=d[g];n=a.$[A(m)];c=e=ck(this,m);m=a;e=b;tm(c,"precompose",e,m);Cm(e,c.O);var f=e.c,p=n.brightness||1!=n.contrast||n.hue||1!=n.saturation,r=void 0,q=void 0;p?(r=fm.Ka(),q=gm.Ka()):(r=im.Ka(),q=jm.Ka());r=Bm(e,r,q);q=void 0;p?null===c.i?(q=new hm(f,r),c.i=q):q=c.i:null===c.k?(q=new km(f,r),c.k=q):q=c.k;e.ld(r)&&
(f.enableVertexAttribArray(q.a),f.vertexAttribPointer(q.a,2,5126,!1,16,0),f.enableVertexAttribArray(q.c),f.vertexAttribPointer(q.c,2,5126,!1,16,8),f.uniform1i(q.b,0));f.uniformMatrix4fv(q.f,!1,c.r);f.uniformMatrix4fv(q.e,!1,c.B);p&&f.uniformMatrix4fv(q.g,!1,bm(c.ja,n.brightness,n.contrast,n.hue,n.saturation));f.uniform1f(q.d,n.opacity);f.bindTexture(3553,c.ia);f.drawArrays(5,0,4);tm(c,"postcompose",e,m)}this.i||(nh(this.a,!0),this.i=!0);bk(a);1024<this.c.wa()-this.g&&a.Pa.push(B(this.$e,this));this.h.aa()||
(a.Pa.push(this.q),a.da=!0);Mm(this,"postcompose",a);ek(this,a);dk(a)};var Nm=["webgl","canvas","dom"];
function V(a){P.call(this);var b=Om(a);this.Nc=t(a.pixelRatio)?a.pixelRatio:zc.Bd;this.Mc=b.ol3Logo;this.q=new Gg(this.Nh,void 0,this);Ec(this,this.q);this.Jc=Rd();this.Pc=Rd();this.Lc=0;this.n=this.O=this.d=null;this.b=lc("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";zc.Gd&&(this.b.className="ol-touch");this.Ta=lc("DIV","ol-overlaycontainer");this.b.appendChild(this.Ta);this.B=
lc("DIV","ol-overlaycontainer-stopevent");J(this.B,["click","dblclick","mousedown","touchstart","MSPointerDown"],Hc);this.b.appendChild(this.B);a=new Bh(this);J(a,Xb(Mh),this.me,!1,this);Ec(this,a);this.Sa=b.keyboardEventTarget;this.r=new Qg;J(this.r,"key",this.be,!1,this);Ec(this,this.r);a=new wh(this.b);J(a,"mousewheel",this.be,!1,this);Ec(this,a);this.k=b.controls;this.Kc=b.deviceOptions;this.i=b.interactions;this.l=b.overlays;this.ua=new b.Ph(this.b,this);Ec(this,this.ua);this.Pe=new Mg;J(this.Pe,
"resize",this.G,!1,this);this.V=null;this.o=[];this.Ua=[];this.jb=new Jf(B(this.Df,this),B(this.ig,this));J(this,Fd("layergroup"),this.Qf,!1,this);J(this,Fd("view"),this.mg,!1,this);J(this,Fd("size"),this.gg,!1,this);J(this,Fd("target"),this.hg,!1,this);this.Y(b.Zh);this.k.forEach(function(a){a.setMap(this)},this);J(this.k,"add",function(a){a.element.setMap(this)},!1,this);J(this.k,"remove",function(a){a.element.setMap(null)},!1,this);this.i.forEach(function(a){a.setMap(this)},this);J(this.i,"add",
function(a){a.element.setMap(this)},!1,this);J(this.i,"remove",function(a){a.element.setMap(null)},!1,this);this.l.forEach(function(a){a.setMap(this)},this);J(this.l,"add",function(a){a.element.setMap(this)},!1,this);J(this.l,"remove",function(a){a.element.setMap(null)},!1,this)}G(V,P);l=V.prototype;l.Qe=function(a){this.k.push(a)};l.Te=function(a){this.i.push(a)};l.Ue=function(a){this.Xa().eb().push(a)};l.Ve=function(a){this.l.push(a)};
l.ka=function(a){this.I();Array.prototype.push.apply(this.o,arguments)};l.A=function(){tc(this.b);V.F.A.call(this)};l.hd=function(a,b,c,d,e){if(null!==this.d){a=this.ea(a);a:{var f=this.ua,g=this.d;c=t(c)?c:null;d=t(d)?d:pd;e=t(e)?e:null;var h=f.f.Xa().Wc(),m;for(m=h.length-1;0<=m;--m){var n=h[m];if(n.b()&&d.call(e,n)&&(n=ck(f,n).f(a,g,b,c))){b=n;break a}}b=void 0}return b}};l.Ud=function(a){return this.ea(this.pc(a))};
l.pc=function(a){if(t(a.changedTouches)){a=a.changedTouches.item(0);var b=ih(this.b);return[a.clientX-b.x,a.clientY-b.y]}a=hh(a,this.b);return[a.x,a.y]};l.Ac=function(){return this.s("target")};V.prototype.getTarget=V.prototype.Ac;l=V.prototype;l.ea=function(a){var b=this.d;if(null===b)return null;a=a.slice();return Zj(b.ue,a,a)};l.ff=k("k");l.xf=k("l");l.nf=k("i");l.Xa=function(){return this.s("layergroup")};V.prototype.getLayerGroup=V.prototype.Xa;V.prototype.Oc=function(){var a=this.Xa();if(t(a))return a.eb()};
V.prototype.f=function(a){var b=this.d;if(null===b)return null;a=a.slice(0,2);return Zj(b.Md,a,a)};V.prototype.g=function(){return this.s("size")};V.prototype.getSize=V.prototype.g;V.prototype.a=function(){return this.s("view")};V.prototype.getView=V.prototype.a;l=V.prototype;l.Ef=k("b");l.Df=function(a,b,c,d){var e=this.d;if(!(null!==e&&b in e.Ab&&e.Ab[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.be=function(a,b){var c=new Ah(b||a.type,this,a);this.me(c)};l.me=function(a){if(null!==this.d){this.V=a.coordinate;a.b=this.d;var b=this.i.a,c;if(!1!==N(this,a))for(c=b.length-1;0<=c&&b[c].qa(a);c--);}};
l.dg=function(){var a=this.d,b=this.jb;if(!b.aa()){var c=16,d=c,e=0;if(null!==a){var e=a.P,f=this.Kc;e[0]&&(c=!1===f.loadTilesWhileAnimating?0:8,d=2);e[1]&&(c=!1===f.loadTilesWhileInteracting?0:8,d=2);var e=a.Ab,f=0,g;for(g in e)f++;e=f}c*=e;d*=e;if(b.d<c){If(b);c=Math.min(c-b.d,d,b.wa());for(d=0;d<c;++d)g=Ef(b)[0],ed(g,"change",b.g,!1,b),0==g.state&&(g.state=1,g.e=[ed(g.c,"error",g.k,!1,g),ed(g.c,"load",g.l,!1,g)],g.n(g,g.h));b.d+=c}}b=this.Ua;c=0;for(d=b.length;c<d;++c)b[c](this,a);b.length=0};
l.gg=function(){this.I()};l.hg=function(){var a=this.Ac(),a=t(a)?hc(a):null;Yg(this.r);null===a?tc(this.b):(a.appendChild(this.b),Rg(this.r,null===this.Sa?a:this.Sa));this.G()};l.ig=function(){this.I()};l.ng=function(){this.I()};l.mg=function(){null!==this.O&&(K(this.O),this.O=null);var a=this.a();null!=a&&(this.O=J(a,"propertychange",this.ng,!1,this));this.I()};l.Rf=function(){this.I()};l.Sf=function(){this.I()};
l.Qf=function(){if(null!==this.n){for(var a=this.n.length,b=0;b<a;++b)K(this.n[b]);this.n=null}a=this.Xa();null!=a&&(this.n=[J(a,"propertychange",this.Sf,!1,this),J(a,"change",this.Rf,!1,this)]);this.I()};function qi(a){if(!vc(document,a.b)||"none"==a.b.style.display)return!1;var b=a.g();if(null==b||0>=b[0]||0>=b[1])return!1;a=a.a();return t(a)&&a.gd()?!0:!1}l.Oh=function(){var a=this.q;Hg(a);a.Od()};l.I=function(){null!=this.q.X||this.q.start()};l.Ih=function(a){if(t(this.k.remove(a)))return a};
l.Kh=function(a){var b;t(this.i.remove(a))&&(b=a);return b};l.Lh=function(a){return this.Xa().eb().remove(a)};l.Mh=function(a){if(t(this.l.remove(a)))return a};
l.Nh=function(a){var b,c,d,e=this.g();b=this.a();var f=t(b)?this.a().N():void 0,g=null;if(t(e)&&0<e[0]&&0<e[1]&&t(f)&&f.gd()){g=Ra(b.k);b=this.Xa().Vc();var h=b.layers;d=b.$;var m={},n;b=0;for(c=h.length;b<c;++b)n=h[b],m[A(n)]=d[b];d=$h(f);g={da:!1,attributions:{},Md:this.Jc,extent:null,focus:null===this.V?d.center:this.V,index:this.Lc++,yc:h,$:m,dd:{},pixelRatio:this.Nc,ue:this.Pc,Pa:[],size:e,Uh:this.jb,time:a,bc:{},w:d,P:g,Ab:{}};this.Mc&&(g.dd["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.o;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=Qe(d.center,d.resolution,d.rotation,g.size));this.d=g;this.ua.Ec(g);null!==g&&(g.da&&this.I(),Array.prototype.push.apply(this.Ua,g.Pa),0!=this.o.length||(g.da||g.P[0]||g.P[1])||N(this,new zh("moveend",this)));N(this,new zh("postrender",this,g));c=b=this.dg;this&&(c=B(b,this));oa(s.setImmediate)?s.setImmediate(c):(Kg||(Kg=Lg()),Kg(c))};l.Qh=function(a){this.t("layergroup",a)};
V.prototype.setLayerGroup=V.prototype.Qh;V.prototype.Ia=function(a){this.t("size",a)};V.prototype.setSize=V.prototype.Ia;V.prototype.Ne=function(a){this.t("target",a)};V.prototype.setTarget=V.prototype.Ne;V.prototype.Oe=function(a){this.t("view",a)};V.prototype.setView=V.prototype.Oe;V.prototype.G=function(){var a=this.Ac(),a=t(a)?hc(a):null;null===a?this.Ia(void 0):(a=ph(a),this.Ia([a.width,a.height]))};
function Om(a){var b=null;t(a.keyboardEventTarget)&&(b=la(a.keyboardEventTarget)?document.getElementById(a.keyboardEventTarget):a.keyboardEventTarget);var c={},d=t(a.ol3Logo)?a.ol3Logo:!0,e=a.layers instanceof sj?a.layers:new sj({layers:a.layers});c.layergroup=e;c.target=a.target;c.view=t(a.view)?a.view:new U;var e=ak,f;t(a.renderer)?ia(a.renderer)?f=a.renderer:la(a.renderer)&&(f=[a.renderer]):f=Nm;var g,h;g=0;for(h=f.length;g<h;++g){var m=f[g];if("canvas"==m){if(zc.Dd){e=Ll;break}}else if("dom"==
m){if(zc.Le){e=Zl;break}}else if("webgl"==m&&zc.Hd){e=Km;break}}f=t(a.controls)?ia(a.controls)?new Q(Ra(a.controls)):a.controls:ei();g=t(a.deviceOptions)?a.deviceOptions:{};h=t(a.interactions)?ia(a.interactions)?new Q(Ra(a.interactions)):a.interactions:rj();a=t(a.overlays)?ia(a.overlays)?new Q(Ra(a.overlays)):a.overlays:new Q;return{controls:f,deviceOptions:g,interactions:h,keyboardEventTarget:b,ol3Logo:d,overlays:a,Ph:e,Zh:c}}yj();function Pm(a){P.call(this);this.o=t(a.insertFirst)?a.insertFirst:!0;this.q=t(a.stopEvent)?a.stopEvent:!0;this.b=oc("DIV");this.b.style.position="absolute";this.a={fc:"",zc:"",Fc:"",Ic:"",visible:!0};this.d=null;J(this,Fd("element"),this.Mf,!1,this);J(this,Fd("map"),this.Wf,!1,this);J(this,Fd("position"),this.bg,!1,this);J(this,Fd("positioning"),this.cg,!1,this);t(a.element)&&this.Ce(a.element);t(a.position)&&this.l(a.position);t(a.positioning)&&this.n(a.positioning)}G(Pm,P);Pm.prototype.i=function(){return this.s("element")};
Pm.prototype.getElement=Pm.prototype.i;Pm.prototype.f=function(){return this.s("map")};Pm.prototype.getMap=Pm.prototype.f;Pm.prototype.k=function(){return this.s("position")};Pm.prototype.getPosition=Pm.prototype.k;Pm.prototype.g=function(){return this.s("positioning")};Pm.prototype.getPositioning=Pm.prototype.g;l=Pm.prototype;l.Mf=function(){qc(this.b);var a=this.i();null!=a&&pc(this.b,a)};
l.Wf=function(){null!==this.d&&(tc(this.b),K(this.d),this.d=null);var a=this.f();null!=a&&(this.d=J(a,"postrender",this.Eg,!1,this),Qm(this),a=this.q?a.B:a.Ta,this.o?sc(a,this.b,0):pc(a,this.b))};l.Eg=function(){Qm(this)};l.bg=function(){Qm(this)};l.cg=function(){Qm(this)};l.Ce=function(a){this.t("element",a)};Pm.prototype.setElement=Pm.prototype.Ce;Pm.prototype.setMap=function(a){this.t("map",a)};Pm.prototype.setMap=Pm.prototype.setMap;Pm.prototype.l=function(a){this.t("position",a)};
Pm.prototype.setPosition=Pm.prototype.l;Pm.prototype.n=function(a){this.t("positioning",a)};Pm.prototype.setPositioning=Pm.prototype.n;
function Qm(a){var b=a.f(),c=a.k();if(t(b)&&null!==b.d&&t(c)){var c=b.f(c),d=b.g(),b=a.b.style,e=a.g();if("bottom-right"==e||"center-right"==e||"top-right"==e){""!==a.a.zc&&(a.a.zc=b.left="");var f=Math.round(d[0]-c[0])+"px";a.a.Fc!=f&&(a.a.Fc=b.right=f)}else{""!==a.a.Fc&&(a.a.Fc=b.right="");f=0;if("bottom-center"==e||"center-center"==e||"top-center"==e)f=kh(a.b).width/2;f=Math.round(c[0]-f)+"px";a.a.zc!=f&&(a.a.zc=b.left=f)}if("bottom-left"==e||"bottom-center"==e||"bottom-right"==e)""!==a.a.Ic&&
(a.a.Ic=b.top=""),c=Math.round(d[1]-c[1])+"px",a.a.fc!=c&&(a.a.fc=b.bottom=c);else{""!==a.a.fc&&(a.a.fc=b.bottom="");d=0;if("center-left"==e||"center-center"==e||"center-right"==e)d=kh(a.b).height/2;c=Math.round(c[1]-d)+"px";a.a.Ic!=c&&(a.a.Ic=b.top=c)}a.a.visible||(nh(a.b,!0),a.a.visible=!0)}else a.a.visible&&(nh(a.b,!1),a.a.visible=!1)};var Rm=vb?"webkitfullscreenchange":ub?"mozfullscreenchange":H?"MSFullscreenChange":"fullscreenchange";function Sm(){var a=ec().a,b=a.body;return!!(b.webkitRequestFullscreen||b.mozRequestFullScreen&&a.mozFullScreenEnabled||b.msRequestFullscreen&&a.msFullscreenEnabled||b.requestFullscreen&&a.fullscreenEnabled)}
function Tm(a){a.webkitRequestFullscreen?a.webkitRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen?a.msRequestFullscreen():a.requestFullscreen&&a.requestFullscreen()}function Um(){var a=ec().a;return!!(a.webkitIsFullScreen||a.mozFullScreen||a.msFullscreenElement||a.fullscreenElement)};function Vm(a){a=t(a)?a:{};this.b=t(a.className)?a.className:"ol-full-screen";var b=lc("SPAN",{role:"tooltip"},t(a.tipLabel)?a.tipLabel:"Toggle full-screen"),c=lc("BUTTON",{"class":this.b+"-"+Um()+" ol-has-tooltip"});c.appendChild(b);J(c,["click","touchend"],this.k,!1,this);J(c,["mouseout",Mc],function(){this.blur()},!1);J(s.document,Rm,this.d,!1,this);b=lc("DIV",{"class":this.b+" ol-unselectable "+(Sm()?"":"ol-unsupported")},c);ai.call(this,{element:b,target:a.target});this.i=t(a.keys)?a.keys:!1}
G(Vm,ai);Vm.prototype.k=function(a){Sm()&&(a.M(),a=this.a,null!==a&&(Um()?(a=ec().a,a.webkitCancelFullScreen?a.webkitCancelFullScreen():a.mozCancelFullScreen?a.mozCancelFullScreen():a.msExitFullscreen?a.msExitFullscreen():a.exitFullscreen&&a.exitFullscreen()):(a=a.Ac(),a=hc(a),this.i?a.mozRequestFullScreenWithKeys?a.mozRequestFullScreenWithKeys():a.webkitRequestFullscreen?a.webkitRequestFullscreen():Tm(a):Tm(a))))};
Vm.prototype.d=function(){var a=this.b+"-true",b=this.b+"-false",c=uc(this.element),d=this.a;Um()?Pb(c,b,a):Pb(c,a,b);null===d||d.G()};function Wm(a){a=t(a)?a:{};var b=lc("DIV",{"class":t(a.className)?a.className:"ol-mouse-position"});ai.call(this,{element:b,target:a.target});J(this,Fd("projection"),this.O,!1,this);t(a.coordinateFormat)&&this.r(a.coordinateFormat);t(a.projection)&&this.q(xf(a.projection));this.ua=t(a.undefinedHTML)?a.undefinedHTML:"";this.k=b.innerHTML;this.i=this.d=this.b=null}G(Wm,ai);Wm.prototype.f=function(a){a=a.b;null===a?this.b=null:this.b!=a.w.projection&&(this.b=a.w.projection,this.d=null);Xm(this,this.i)};
Wm.prototype.O=function(){this.d=null};Wm.prototype.l=function(){return this.s("coordinateFormat")};Wm.prototype.getCoordinateFormat=Wm.prototype.l;Wm.prototype.n=function(){return this.s("projection")};Wm.prototype.getProjection=Wm.prototype.n;Wm.prototype.B=function(a){a=hh(a,this.a.b);this.i=[a.x,a.y];Xm(this,this.i)};Wm.prototype.G=function(){Xm(this,null);this.i=null};
Wm.prototype.setMap=function(a){Wm.F.setMap.call(this,a);null!==a&&(a=a.b,this.g.push(J(a,"mousemove",this.B,!1,this),J(a,"mouseout",this.G,!1,this)))};Wm.prototype.r=function(a){this.t("coordinateFormat",a)};Wm.prototype.setCoordinateFormat=Wm.prototype.r;Wm.prototype.q=function(a){this.t("projection",a)};Wm.prototype.setProjection=Wm.prototype.q;
function Xm(a,b){var c=a.ua;if(null!==b&&null!==a.b){if(null===a.d){var d=a.n();a.d=t(d)?ff(a.b,d):zf}d=a.a.ea(b);null!==d&&(a.d(d,d),c=a.l(),c=t(c)?c(d):d.toString())}t(a.k)&&c==a.k||(a.element.innerHTML=c,a.k=c)};function Ym(a){a=a||{};var b=t(a.className)?a.className:"ol-scale-line";this.i=lc("DIV",{"class":b+"-inner"});this.l=lc("DIV",{"class":b+" ol-unselectable"},this.i);this.n=null;this.k=t(a.minWidth)?a.minWidth:64;this.d=!1;this.B=void 0;this.q="";this.b=null;ai.call(this,{element:this.l,target:a.target});J(this,Fd("units"),this.O,!1,this);this.G(a.units||"metric")}G(Ym,ai);var Zm=[1,2,5];Ym.prototype.r=function(){return this.s("units")};Ym.prototype.getUnits=Ym.prototype.r;
Ym.prototype.f=function(a){a=a.b;null===a?this.n=null:this.n=a.w;$m(this)};Ym.prototype.O=function(){$m(this)};Ym.prototype.G=function(a){this.t("units",a)};Ym.prototype.setUnits=Ym.prototype.G;
function $m(a){var b=a.n;if(null===b)a.d&&(nh(a.l,!1),a.d=!1);else{var c=b.center,d=b.projection,b=d.b(b.resolution,c),e=d.ta,f=a.r();"degrees"!=e||"metric"!=f&&"imperial"!=f?"ft"!=e&&"m"!=e||"degrees"!=f?a.b=null:(null===a.b&&(a.b=ff(d,xf("EPSG:4326"))),c=Math.cos(Sb(a.b(c)[1])),d=af.radius,"ft"==e&&(d/=0.3048),b*=180/(Math.PI*c*d)):(a.b=null,c=Math.cos(Sb(c[1])),b*=Math.PI*c*af.radius/180);c=a.k*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.k*b)/Math.log(10)),g,h;;){g=Zm[f%3]*Math.pow(10,Math.floor(f/3));h=Math.round(g/b);if(h>=a.k)break;++f}g=g+e;a.q!=g&&(a.i.innerHTML=g,a.q=g);a.B!=h&&(a.i.style.width=h+"px",a.B=h);a.d||(nh(a.l,!0),a.d=!0)}};function an(a){Bc.call(this);this.c=a;this.a={}}G(an,Bc);var bn=[];an.prototype.ga=function(a,b,c,d,e){ia(b)||(bn[0]=b,b=bn);for(var f=0;f<b.length;f++){var g=J(a,b[f],c||this,d||!1,e||this.c||this);this.a[g.key]=g}return this};
an.prototype.ud=function(a,b,c,d,e){if(ia(b))for(var f=0;f<b.length;f++)this.ud(a,b[f],c,d,e);else{a:if(e=e||this.c||this,d=!!d,c=ad(c||this),Tc(a))a=a.W.a[b],b=-1,a&&(b=vd(a,c,d,e)),e=-1<b?a[b]:null;else{if(a=gd(a,b,d))for(b=0;b<a.length;b++)if(!a[b].Ha&&a[b].xa==c&&a[b].capture==d&&a[b].cb==e){e=a[b];break a}e=null}e&&(K(e),delete this.a[e.key])}return this};function cn(a){Vb(a.a,K);a.a={}}an.prototype.A=function(){an.F.A.call(this);cn(this)};
an.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function dn(a,b,c){wd.call(this);this.target=a;this.d=b||a;this.c=c||new $g(NaN,NaN,NaN,NaN);this.b=gc(a);this.a=new an(this);Ec(this,this.a);J(this.d,["touchstart","mousedown"],this.Ge,!1,this)}G(dn,wd);var en=H||ub&&Hb("1.9.3");l=dn.prototype;l.clientX=0;l.clientY=0;l.Yd=0;l.Zd=0;l.$d=0;l.ae=0;l.ob=0;l.pb=0;l.Qd=!0;l.bb=!1;l.ee=0;l.rg=0;l.og=!1;l.vd=!1;
l.A=function(){dn.F.A.call(this);fd(this.d,["touchstart","mousedown"],this.Ge,!1,this);cn(this.a);en&&this.b.releaseCapture();this.d=this.target=null};function fn(a){t(a.f)||(a.f=oh(a.target));return a.f}
l.Ge=function(a){var b="mousedown"==a.type;if(!this.Qd||this.bb||b&&!Rc(a))N(this,"earlycancel");else{gn(a);if(0==this.ee)if(N(this,new hn("start",this,a.clientX,a.clientY,a)))this.bb=!0,a.M();else return;else a.M();var b=this.b,c=b.documentElement,d=!en;this.a.ga(b,["touchmove","mousemove"],this.Kf,d);this.a.ga(b,["touchend","mouseup"],this.lc,d);en?(c.setCapture(!1),this.a.ga(c,"losecapture",this.lc)):this.a.ga(b?b.parentWindow||b.defaultView:window,"blur",this.lc);H&&this.og&&this.a.ga(b,"dragstart",
Ic);this.g&&this.a.ga(this.g,"scroll",this.Bh,d);this.clientX=this.$d=a.clientX;this.clientY=this.ae=a.clientY;this.Yd=a.$c;this.Zd=a.ad;this.vd?(a=this.target,b=a.offsetLeft,c=a.offsetParent,c||"fixed"!=bh(a,"position")||(c=gc(a).documentElement),c?(ub?(d=sh(c),b+=d.left):H&&8<=Jb&&(d=sh(c),b-=d.left),a=oh(c)?c.clientWidth-(b+a.offsetWidth):b):a=b):a=this.target.offsetLeft;this.ob=a;this.pb=this.target.offsetTop;this.e=wc(ec(this.b));this.rg=wa()}};
l.lc=function(a,b){cn(this.a);en&&this.b.releaseCapture();if(this.bb){gn(a);this.bb=!1;var c=jn(this,this.ob),d=kn(this,this.pb);N(this,new hn("end",this,a.clientX,a.clientY,a,c,d,b||"touchcancel"==a.type))}else N(this,"earlycancel")};function gn(a){var b=a.type;"touchstart"==b||"touchmove"==b?Pc(a,a.Q.targetTouches[0],a.c):"touchend"!=b&&"touchcancel"!=b||Pc(a,a.Q.changedTouches[0],a.c)}
l.Kf=function(a){if(this.Qd){gn(a);var b=(this.vd&&fn(this)?-1:1)*(a.clientX-this.clientX),c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.Yd=a.$c;this.Zd=a.ad;if(!this.bb){var d=this.$d-this.clientX,e=this.ae-this.clientY;if(d*d+e*e>this.ee)if(N(this,new hn("start",this,a.clientX,a.clientY,a)))this.bb=!0;else{this.ca||this.lc(a);return}}c=ln(this,b,c);b=c.x;c=c.y;this.bb&&N(this,new hn("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(mn(this,a,b,c),a.M())}};
function ln(a,b,c){var d=wc(ec(a.b));b+=d.x-a.e.x;c+=d.y-a.e.y;a.e=d;a.ob+=b;a.pb+=c;b=jn(a,a.ob);a=kn(a,a.pb);return new Tb(b,a)}l.Bh=function(a){var b=ln(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;mn(this,a,b.x,b.y)};function mn(a,b,c,d){a.vd&&fn(a)?a.target.style.right=c+"px":a.target.style.left=c+"px";a.target.style.top=d+"px";N(a,new hn("drag",a,b.clientX,b.clientY,b,c,d))}
function jn(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 kn(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 hn(a,b,c,d,e,f,g,h){Gc.call(this,a);this.clientX=c;this.clientY=d;this.d=e;this.left=t(f)?f:b.ob;this.top=t(g)?g:b.pb;this.b=b;this.a=!!h}G(hn,Gc);function nn(a){a=t(a)?a:{};this.b=void 0;this.i=on;this.k=!1;var b=t(a.className)?a.className:"ol-zoomslider";a=lc("DIV",[b+"-thumb","ol-unselectable"]);b=lc("DIV",[b,"ol-unselectable"],a);this.d=new dn(a);Ec(this,this.d);J(this.d,["drag","end"],this.n,void 0,this);J(b,"click",this.l,!1,this);J(a,"click",Hc);ai.call(this,{element:b})}G(nn,ai);var on=0;nn.prototype.setMap=function(a){nn.F.setMap.call(this,a);null===a||a.I()};
nn.prototype.f=function(a){if(null!==a.b){if(!this.k){var b=this.element,c=uc(b),b=ph(b),d;d=gh(c);var e=kh(c);d=new $g(d.x,d.y,e.width,e.height);var e=rh(c,"margin"),f=sh(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 $g(0,0,c,0)):(this.i=on,b=new $g(0,0,0,d));this.d.c=b||new $g(NaN,NaN,NaN,NaN);this.k=!0}a=a.b.w.resolution;a!==this.b&&(this.b=a,a=-1*(Zh(this.a.a().N())(a)-1),b=this.d,c=uc(this.element),1==this.i?
ch(c,b.c.left+b.c.width*a):ch(c,b.c.left,b.c.top+b.c.height*a))}};nn.prototype.l=function(a){var b=this.a,c=b.a().N();a=pn(this,qn(this,a.Wd,a.Xd));b.ka(Wf({resolution:a,duration:200,easing:Qf}));a=c.a(a);c.f(a)};function qn(a,b,c){var d=a.d.c,e=0;return e=1===a.i?(b-d.left)/d.width:(c-d.top)/d.height}function pn(a,b){b=-1*(Qb(b,0,1)-1);return Yh(a.a.a().N())(b)}
nn.prototype.n=function(a){var b=this.a,c=b.a().N();"drag"===a.type?(a=pn(this,qn(this,a.left,a.top)),a!==this.b&&(this.b=a,c.f(a))):(b.ka(Wf({resolution:this.b,duration:200,easing:Qf})),a=c.a(this.b),c.f(a))};function rn(a){a=t(a)?a:{};this.b=t(a.extent)?a.extent:null;var b=t(a.className)?a.className:"ol-zoom-extent",c=lc("SPAN",{role:"tooltip"},t(a.tipLabel)?a.tipLabel:"Fit to extent"),b=lc("DIV",{"class":b+" ol-unselectable"}),d=lc("BUTTON",{"class":"ol-has-tooltip"});d.appendChild(c);b.appendChild(d);J(d,["touchend","click"],this.d,!1,this);J(d,["mouseout",Mc],function(){this.blur()},!1);ai.call(this,{element:b,target:a.target})}G(rn,ai);
rn.prototype.d=function(a){a.M();a=this.a;var b=a.a().N(),c=null===this.b?b.l().p():this.b;b.Sd(c,a.g())};function sn(a){P.call(this);this.a=a;J(this.a,["change","input"],this.k,!1,this);J(this,Fd("value"),this.l,!1,this);J(this,Fd("checked"),this.i,!1,this)}G(sn,P);sn.prototype.b=function(){return this.s("checked")};sn.prototype.getChecked=sn.prototype.b;sn.prototype.d=function(){return this.s("value")};sn.prototype.getValue=sn.prototype.d;sn.prototype.g=function(a){this.t("value",a)};sn.prototype.setValue=sn.prototype.g;sn.prototype.f=function(a){this.t("checked",a)};sn.prototype.setChecked=sn.prototype.f;
sn.prototype.k=function(){var a=this.a;"checkbox"===a.type||"radio"===a.type?this.f(a.checked):this.g(a.value)};sn.prototype.i=function(){this.a.checked=this.b()};sn.prototype.l=function(){this.a.value=this.d()};function tn(){};function un(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=vn();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}function vn(){var a=new ActiveXObject("MSXML2.DOMDocument");if(a){a.resolveExternals=!1;a.validateOnParse=!1;try{a.setProperty("ProhibitDTD",!0),a.setProperty("MaxXMLSize",2048),a.setProperty("MaxElementDepth",256)}catch(b){}}return a};var wn;a:if(document.implementation&&document.implementation.createDocument)wn=document.implementation.createDocument("","",null);else{if("undefined"!=typeof ActiveXObject){var xn=vn();if(xn){wn=xn;break a}}throw Error("Your browser does not support creating new documents");}var yn=wn;function zn(a,b){return yn.createElementNS(a,b)}function An(a,b){null===a&&(a="");return yn.createNode(1,b,a)}var Bn=document.implementation&&document.implementation.createDocument?zn:An;
function Cn(a){return Dn(a,!1,[]).join("")}function Dn(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)Dn(a,b,c);return c}function En(a){return a.localName}function Fn(a){var b=a.localName;return t(b)?b:a.baseName}var Gn=H?Fn:En;function Hn(a){return a instanceof Document}function In(a){return pa(a)&&9==a.nodeType}var Jn=H?In:Hn;function Kn(a){return a instanceof Node}
function Ln(a){return pa(a)&&t(a.nodeType)}var Mn=H?Ln:Kn;function Nn(a,b,c,d){a.setAttributeNS(b,c,d)}function On(a,b,c,d){null===b?a.setAttribute(c,d):(b=a.ownerDocument.createNode(2,c,b),b.nodeValue=d,a.setAttributeNode(b))}var Pn=document.implementation&&document.implementation.createDocument?Nn:On;function Qn(a){return(new DOMParser).parseFromString(a,"application/xml")}function Rn(a,b){return function(c,d){var e=a.call(b,c,d);t(e)&&Sa(d[d.length-1],e)}}
function Sn(a,b){return function(c,d){var e=a.call(b,c,d);t(e)&&d[d.length-1].push(e)}}function Tn(a){return function(b,c){var d=a.call(void 0,b,c);t(d)&&(c[c.length-1]=d)}}function W(a,b){return function(c,d){var e=a.call(void 0,c,d);t(e)&&(d[d.length-1][t(b)?b:c.localName]=e)}}function X(a){return function(b,c,d){a.call(void 0,b,c,d);d[d.length-1].node.appendChild(b)}}
function Un(a){var b,c;return function(d,e,f){if(!t(b)){b={};var g={};g[d.localName]=a;b[d.namespaceURI]=g;c=Vn(d.localName)}Wn(b,c,e,f)}}function Vn(a){return function(b,c,d){b=c[c.length-1].node;c=a;t(c)||(c=d);d=void 0;t(void 0)||(d=b.namespaceURI);return Bn(d,c)}}var Xn=Vn();function Yn(a,b){for(var c=b.length,d=Array(c),e=0;e<c;++e)d[e]=a[b[e]];return d}function Y(a,b,c){c=t(c)?c:{};var d,e;d=0;for(e=a.length;d<e;++d)c[a[d]]=b;return c}
function Zn(a,b,c,d){for(b=b.firstElementChild;null!==b;b=b.nextElementSibling){var e=a[b.namespaceURI];t(e)&&(e=e[b.localName],t(e)&&e.call(d,b,c))}}function $n(a,b,c,d,e){d.push(a);Zn(b,c,d,e);return d.pop()}function Wn(a,b,c,d,e,f){for(var g=(t(e)?e:c).length,h,m,n=0;n<g;++n)h=c[n],t(h)&&(m=b.call(f,h,d,t(e)?e[n]:void 0),t(m)&&a[m.namespaceURI][m.localName].call(f,m,h,d))}function ao(a,b,c,d,e,f){e.push(a);Wn(b,c,d,e,f,void 0);e.pop()};function bo(){}G(bo,tn);l=bo.prototype;l.D=ca("xml");l.yb=function(a){return Jn(a)?co(this,a):Mn(a)?this.we(a):la(a)?(a=Qn(a),co(this,a)):null};function co(a,b){var c=eo(a,b);return 0<c.length?c[0]:null}l.Fa=function(a){return Jn(a)?eo(this,a):Mn(a)?this.Yb(a):la(a)?(a=Qn(a),eo(this,a)):[]};function eo(a,b){var c=[],d;for(d=b.firstChild;null!==d;d=d.nextSibling)1==d.nodeType&&Sa(c,a.Yb(d));return c}l.Cc=function(a){return Jn(a)?this.b(a):Mn(a)?this.d(a):la(a)?(a=Qn(a),this.b(a)):null};
l.Ga=function(a){return Jn(a)?this.Dc(a):Mn(a)?this.pd(a):la(a)?(a=Qn(a),this.Dc(a)):null};l.yd=function(a){return this.e(a)};l.zd=function(a){return this.f(a)};l.Ad=function(a){return this.g(a)};function fo(a){a=Cn(a);a=(a=/^\s*(true|1)|(false|0)\s*$/.exec(a))?t(a[1])||!1:void 0;return a}function go(a){a=Cn(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);t(a[10])&&(b+=3600*c*parseInt(a[10],10))}return b}}
function ho(a){a=Cn(a);a=(a=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(a))?parseFloat(a[1]):void 0;return a}function io(a){a=Cn(a);a=(a=/^\s*(\d+)\s*$/.exec(a))?parseInt(a[1],10):void 0;return a}function jo(a){a=Cn(a);return za(a)}function ko(a,b){a.appendChild(yn.createTextNode(b.toPrecision()))}function lo(a,b){a.appendChild(yn.createTextNode(b.toString()))}function mo(a,b){a.appendChild(yn.createTextNode(b))};function no(){}G(no,bo);var oo=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function po(a,b,c){a.push(parseFloat(b.getAttribute("lon")),parseFloat(b.getAttribute("lat")));"ele"in c?(a.push(I(c,"ele")),ac(c,"ele")):a.push(0);"time"in c?(a.push(I(c,"time")),ac(c,"time")):a.push(0);return a}function qo(a,b){var c=b[b.length-1],d=a.getAttribute("href");null!==d&&(c.link=d);Zn(ro,a,b)}
function so(a,b){var c=$n({flatCoordinates:[]},to,a,b);if(t(c)){var d=I(c,"flatCoordinates");ac(c,"flatCoordinates");var e=new dl(null);el(e,"XYZM",d);d=new R(e);d.Y(c);return d}}function uo(a,b){var c=$n({flatCoordinates:[],ends:[]},vo,a,b);if(t(c)){var d=I(c,"flatCoordinates");ac(c,"flatCoordinates");var e=I(c,"ends");ac(c,"ends");var f=new fl(null);gl(f,"XYZM",d,e);d=new R(f);d.Y(c);return d}}
function wo(a,b){var c=$n({},xo,a,b);if(t(c)){var d=po([],a,c),d=new Yi(d,"XYZM"),d=new R(d);d.Y(c);return d}}
var yo={rte:so,trk:uo,wpt:wo},zo=Y(oo,{rte:Sn(so),trk:Sn(uo),wpt:Sn(wo)},void 0),ro=Y(oo,{text:W(jo,"linkText"),type:W(jo,"linkType")},void 0),to=Y(oo,{name:W(jo),cmt:W(jo),desc:W(jo),src:W(jo),link:qo,number:W(io),type:W(jo),rtept:function(a,b){var c=$n({},Ao,a,b);t(c)&&po(I(b[b.length-1],"flatCoordinates"),a,c)}},void 0),Ao=Y(oo,{ele:W(ho),time:W(go)},void 0),vo=Y(oo,{name:W(jo),cmt:W(jo),desc:W(jo),src:W(jo),link:qo,number:W(io),type:W(jo),trkseg:function(a,b){var c=b[b.length-1];Zn(Bo,a,b);I(c,
"ends").push(I(c,"flatCoordinates").length)}},void 0),Bo=Y(oo,{trkpt:function(a,b){var c=$n({},Co,a,b);t(c)&&po(I(b[b.length-1],"flatCoordinates"),a,c)}},void 0),Co=Y(oo,{ele:W(ho),time:W(go)},void 0),xo=Y(oo,{ele:W(ho),time:W(go),magvar:W(ho),geoidheight:W(ho),name:W(jo),cmt:W(jo),desc:W(jo),src:W(jo),link:qo,sym:W(jo),type:W(jo),fix:W(jo),sat:W(io),hdop:W(ho),vdop:W(ho),pdop:W(ho),ageofdgpsdata:W(ho),dgpsid:W(io)},void 0);
no.prototype.we=function(a){if(-1==Ja(oo,a.namespaceURI))return null;var b=yo[a.localName];if(!t(b))return null;a=b(a,[]);return t(a)?a:null};no.prototype.Yb=function(a){return-1==Ja(oo,a.namespaceURI)?[]:"gpx"==a.localName&&(a=$n([],zo,a,[]),t(a))?a:[]};no.prototype.Dc=function(){return xf("EPSG:4326")};no.prototype.pd=function(){return xf("EPSG:4326")};function Do(a,b,c){a.setAttribute("href",b);b=I(c[c.length-1],"properties");ao({node:a},Eo,Xn,[I(b,"linkText"),I(b,"linkType")],c,Fo)}
function Go(a,b,c){var d=c[c.length-1],e=d.node.namespaceURI,f=I(d,"properties");Pn(a,null,"lat",b[1]);Pn(a,null,"lon",b[0]);switch(I(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=Ho[e];d=Yn(f,b);ao({node:a,properties:f},Io,Xn,d,c,b)}
var Fo=["text","type"],Eo=Y(oo,{text:X(mo),type:X(mo)}),Jo=Y(oo,"name cmt desc src link number type rtept".split(" ")),Ko=Y(oo,{name:X(mo),cmt:X(mo),desc:X(mo),src:X(mo),link:X(Do),number:X(lo),type:X(mo),rtept:Un(X(Go))}),Lo=Y(oo,"name cmt desc src link number type trkseg".split(" ")),Oo=Y(oo,{name:X(mo),cmt:X(mo),desc:X(mo),src:X(mo),link:X(Do),number:X(lo),type:X(mo),trkseg:Un(X(function(a,b,c){ao({node:a,geometryLayout:b.b,properties:{}},Mo,No,b.v(),c)}))}),No=Vn("trkpt"),Mo=Y(oo,{trkpt:X(Go)}),
Ho=Y(oo,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),Io=Y(oo,{ele:X(ko),time:X(function(a,b){var c=new Date(1E3*b),c=c.getUTCFullYear()+"-"+Ga(c.getUTCMonth()+1)+"-"+Ga(c.getUTCDate())+"T"+Ga(c.getUTCHours())+":"+Ga(c.getUTCMinutes())+":"+Ga(c.getUTCSeconds())+"Z";a.appendChild(yn.createTextNode(c))}),magvar:X(ko),geoidheight:X(ko),name:X(mo),cmt:X(mo),desc:X(mo),src:X(mo),link:X(Do),sym:X(mo),type:X(mo),fix:X(mo),sat:X(lo),
hdop:X(ko),vdop:X(ko),pdop:X(ko),ageofdgpsdata:X(ko),dgpsid:X(lo)});
Y(oo,{rte:X(function(a,b,c){var d=b.Qb();a={node:a,properties:d};b=b.L();t(b)&&(a.geometryLayout=b.b,b=b.v(),d.rtept=b);b=Jo[c[c.length-1].node.namespaceURI];d=Yn(d,b);ao(a,Ko,Xn,d,c,b)}),trk:X(function(a,b,c){var d=b.Qb();a={node:a,properties:d};b=b.L();t(b)&&(b=b.Vd(),d.trkseg=b);b=Lo[c[c.length-1].node.namespaceURI];d=Yn(d,b);ao(a,Oo,Xn,d,c,b)}),wpt:X(function(a,b,c){var d=c[c.length-1],e=b.Qb();d.properties=e;b=b.L();t(b)&&(d.geometryLayout=b.b,Go(a,b.v(),c))})});function Po(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 Qo(){}G(Qo,tn);function Ro(a){return pa(a)?a:la(a)?(a=Po(a),t(a)?a:null):null}l=Qo.prototype;l.D=ca("json");l.yb=function(a){return So(Ro(a))};l.Fa=function(a){return this.a(Ro(a))};l.Cc=function(a){a=Ro(a);return To(a)};l.Ga=function(a){return this.d(Ro(a))};l.yd=function(a){return Uo(a)};l.zd=function(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(Uo(a[c]));return{type:"FeatureCollection",features:b}};l.Ad=function(a){return this.b(a)};function Vo(a){a=t(a)?a:{};this.c=xf(a.defaultProjection?a.defaultProjection:"EPSG:4326")}G(Vo,Qo);function To(a){return null===a?null:(0,Wo[a.type])(a)}function Xo(a){return(0,Yo[a.D()])(a)}
var Wo={Point:function(a){return new Yi(a.coordinates)},LineString:function(a){return new dl(a.coordinates)},Polygon:function(a){return new Zi(a.coordinates)},MultiPoint:function(a){return new il(a.coordinates)},MultiLineString:function(a){return new fl(a.coordinates)},MultiPolygon:function(a){return new jl(a.coordinates)},GeometryCollection:function(a){a=La(a.geometries,To);return new $k(a)}},Yo={Point:function(a){return{type:"Point",coordinates:a.v()}},LineString:function(a){return{type:"LineString",
coordinates:a.v()}},Polygon:function(a){return{type:"Polygon",coordinates:a.v()}},MultiPoint:function(a){return{type:"MultiPoint",coordinates:a.v()}},MultiLineString:function(a){return{type:"MultiLineString",coordinates:a.v()}},MultiPolygon:function(a){return{type:"MultiPolygon",coordinates:a.v()}},GeometryCollection:function(a){return{type:"GeometryCollection",geometries:La(a.a,Xo)}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};
function So(a){var b=To(a.geometry),b=new R(b);t(a.id)&&b.b(a.id);t(a.properties)&&b.Y(a.properties);return b}Vo.prototype.a=function(a){if("Feature"==a.type)return[So(a)];if("FeatureCollection"==a.type){var b=[];a=a.features;var c,d;c=0;for(d=a.length;c<d;++c)b.push(So(a[c]));return b}return[]};Vo.prototype.Ga=function(a){a=a.crs;return null!=a?"name"==a.type?xf(a.properties.name):"EPSG"==a.type?xf("EPSG:"+a.properties.code):null:this.c};
function Uo(a){var b={type:"Feature"},c=a.X;null!=c&&(b.id=c);c=a.L();null!=c&&(c=Xo(c),b.geometry=c);a=a.Qb();ac(a,"geometry");Zb(a)||(b.properties=a);return b}Vo.prototype.b=Xo;function Zo(a){a=$o(a);return La(a,function(a){return a.b.substring(a.c,a.a)})}function ap(a,b,c,d){this.b=a;this.c=b;this.a=c;this.d=d}function $o(a){for(var b=RegExp("\r\n|\r|\n","g"),c=0,d,e=[];d=b.exec(a);)c=new ap(a,c,d.index,d.index+d[0].length),e.push(c),c=b.lastIndex;c<a.length&&(c=new ap(a,c,a.length,a.length),e.push(c));return e};function bp(){}G(bp,tn);l=bp.prototype;l.D=ca("text");l.yb=function(a){return cp(this,la(a)?a:"")};l.Fa=function(a){a=cp(this,la(a)?a:"");return null===a?[]:[a]};l.Cc=function(a){return this.c(la(a)?a:"")};l.Ga=function(){return xf("EPSG:4326")};l.yd=function(a){return this.b(a)};l.zd=function(a){return this.d(a)};l.Ad=function(a){return this.e(a)};function dp(a){a=t(a)?a:{};this.a=t(a.altitudeMode)?a.altitudeMode:"none"}G(dp,bp);var ep=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,fp=/^H.([A-Z]{3}).*?:(.*)/,gp=/^HFDTE(\d{2})(\d{2})(\d{2})/;
function cp(a,b){var c=a.a,d=Zo(b),e={},f=[],g=2E3,h=0,m=1,n,p;n=0;for(p=d.length;n<p;++n){var r=d[n],q;if("B"==r.charAt(0)){if(q=ep.exec(r)){var r=parseInt(q[1],10),u=parseInt(q[2],10),x=parseInt(q[3],10),w=parseInt(q[4],10)+parseInt(q[5],10)/6E4;"S"==q[6]&&(w=-w);var v=parseInt(q[7],10)+parseInt(q[8],10)/6E4;"W"==q[9]&&(v=-v);f.push(v,w);"none"!=c&&f.push("gps"==c?parseInt(q[11],10):"barometric"==c?parseInt(q[12],10):0);f.push(Date.UTC(g,h,m,r,u,x)/1E3)}}else if("H"==r.charAt(0))if(q=gp.exec(r))m=
parseInt(q[1],10),h=parseInt(q[2],10)-1,g=2E3+parseInt(q[3],10);else if(q=fp.exec(r))e[q[1]]=za(q[2]),gp.exec(r)}d=new dl(null);el(d,"none"==c?"XYM":"XYZM",f);c=new R(d);c.Y(e);return c};function hp(a){function b(a){return ia(a)?a:la(a)?(!(a in d)&&"#"+a in d&&(a="#"+a),b(d[a])):c}a=t(a)?a:{};var c=t(a.defaultStyle)?a.defaultStyle:ip,d={};this.a=d;this.c=function(){var a=this.s("Style");if(t(a))return a;a=this.s("styleUrl");return t(a)?b(a):c}}G(hp,bo);
var jp=["http://www.google.com/kml/ext/2.2"],kp=[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"],lp=[255,255,255,1],mp=new je({color:lp}),np=[2,20],op=[32,32],pp=new Uj({anchor:np,anchorXUnits:"pixels",anchorYUnits:"pixels",crossOrigin:"anonymous",rotation:0,scale:1,size:op,src:"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),qp=new le({color:lp,width:1}),ip=[new ne({fill:mp,image:pp,text:null,
stroke:qp,zIndex:0})],rp={fraction:"fraction",pixels:"pixels"};function sp(a){a=Cn(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 tp(a){a=Cn(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 up(a){var b=Cn(a);return null!=a.baseURI?Cg(a.baseURI,za(b)).toString():za(b)}function vp(a,b){return $n(null,wp,a,b)}
function xp(a,b){var c=$n({j:[],Je:[]},yp,a,b);if(t(c)){var d=c.j,c=c.Je,e,f;e=0;for(f=Math.min(d.length,c.length);e<f;++e)d[4*e+3]=c[e];c=new dl(null);el(c,"XYZM",d);return c}}function zp(a,b){var c=$n(null,Ap,a,b);if(t(c)){var d=new dl(null);el(d,"XYZ",c);return d}}function Bp(a,b){var c=$n(null,Ap,a,b);if(t(c)){var d=new Zi(null);$i(d,"XYZ",c,[c.length]);return d}}
function Cp(a,b){var c=$n([],Dp,a,b);if(!t(c))return null;if(0===c.length)return new $k(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],Sa(e,f.j);c=new il(null);Oi(c,d,e);c.u();return c}if("LineString"==e)return f=new fl(null),hl(f,c),f;if("Polygon"==e){f=new jl(null);g="XY";h=[];var d=[],m,n,e=0;for(m=c.length;e<m;++e){var p=c[e];0===e&&(g=p.b);var r=h.length;n=p.d;var q,u;q=0;for(u=n.length;q<
u;++q)n[q]+=r;Sa(h,p.j);d.push(n)}kl(f,g,h,d);return f}return"GeometryCollection"==e?new $k(c):null}return new $k(c)}function Ep(a,b){var c=$n(null,Ap,a,b);if(null!=c){var d=new Yi(null);Oi(d,"XYZ",c);d.u();return d}}function Fp(a,b){var c=$n([null],Gp,a,b);if(null!=c&&null!==c[0]){var d=new Zi(null),e=c[0],f=[e.length],g,h;g=1;for(h=c.length;g<h;++g)Sa(e,c[g]),f.push(e.length);$i(d,"XYZ",e,f);return d}}
function Hp(a,b){var c=$n({},Ip,a,b);if(!t(c))return null;var d=I(c,"fillStyle",mp),e=I(c,"fill");t(e)&&!e&&(d=null);var e=I(c,"imageStyle",pp),f=I(c,"strokeStyle",qp),c=I(c,"outline");t(c)&&!c&&(f=null);return[new ne({fill:d,image:e,stroke:f,text:null,zIndex:void 0})]}
var Jp=Y(kp,{value:Tn(jo)},void 0),Lp=Y(kp,{Data:function(a,b){var c=a.getAttribute("name");if(null!==c){var d=$n(void 0,Jp,a,b);t(d)&&(b[b.length-1][c]=d)}},SchemaData:function(a,b){Zn(Kp,a,b)}},void 0),wp=Y(kp,{coordinates:Tn(tp)},void 0),Gp=Y(kp,{innerBoundaryIs:function(a,b){var c=$n(void 0,Mp,a,b);t(c)&&b[b.length-1].push(c)},outerBoundaryIs:function(a,b){var c=$n(void 0,Np,a,b);t(c)&&(b[b.length-1][0]=c)}},void 0),Op=Y(jp,{coord:function(a,b){var c=b[b.length-1].j,d=Cn(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),yp=Y(kp,{when:function(a,b){var c=b[b.length-1].Je,d=Cn(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),t(d[3])?parseInt(d[3],10)-1:0,t(d[5])?parseInt(d[5],10):1,t(d[7])?parseInt(d[7],10):0,t(d[8])?parseInt(d[8],10):0,t(d[9])?parseInt(d[9],10):0);if(t(d[10])&&"Z"!=d[10]){var f="-"==d[11]?-1:1,e=e+60*f*parseInt(d[12],
10);t(d[13])&&(e+=3600*f*parseInt(d[13],10))}c.push(e)}else c.push(0)}},Op),Ap=Y(kp,{coordinates:Tn(tp)},void 0),Pp=Y(kp,{href:W(up)},void 0),Qp=Y(kp,{Icon:W(function(a,b){var c=$n({},Pp,a,b);return t(c)?c:null}),heading:W(ho),hotSpot:W(function(a){var b=a.getAttribute("xunits"),c=a.getAttribute("yunits");return{x:parseFloat(a.getAttribute("x")),gi:rp[b],y:parseFloat(a.getAttribute("y")),hi:rp[c]}}),scale:W(function(a){a=ho(a);if(t(a))return Math.sqrt(a)})},void 0),Mp=Y(kp,{LinearRing:Tn(vp)},void 0),
Rp=Y(kp,{color:W(sp),width:W(ho)},void 0),Dp=Y(kp,{LineString:Sn(zp),LinearRing:Sn(Bp),MultiGeometry:Sn(Cp),Point:Sn(Ep),Polygon:Sn(Fp)},void 0),Sp=Y(jp,{Track:Sn(xp)},void 0),Np=Y(kp,{LinearRing:Tn(vp)},void 0),Tp=Y(kp,{Style:W(Hp),key:W(jo),styleUrl:W(function(a){var b=za(Cn(a));return null!=a.baseURI?Cg(a.baseURI,b).toString():b})},void 0),Vp={ExtendedData:function(a,b){Zn(Lp,a,b)},MultiGeometry:W(Cp,"geometry"),LineString:W(zp,"geometry"),LinearRing:W(Bp,"geometry"),Point:W(Ep,"geometry"),Polygon:W(Fp,
"geometry"),Style:W(Hp),StyleMap:function(a,b){var c=$n(void 0,Up,a,b);if(t(c)){var d=b[b.length-1];ia(c)?d.Style=c:la(c)&&(d.styleUrl=c)}},address:W(jo),description:W(jo),name:W(jo),open:W(fo),phoneNumber:W(jo),styleUrl:W(up),visibility:W(fo)},Wp=Y(jp,{MultiTrack:W(function(a,b){var c=$n([],Sp,a,b);if(t(c)){var d=new fl(null);hl(d,c);return d}},"geometry"),Track:W(xp,"geometry")},void 0),Xp=Y(kp,Vp,Wp),Yp=Y(kp,{color:W(sp),fill:W(fo),outline:W(fo)},void 0),Kp=Y(kp,{SimpleData:function(a,b){var c=
a.getAttribute("name");if(null!==c){var d=jo(a);b[b.length-1][c]=d}}},void 0),Ip=Y(kp,{IconStyle:function(a,b){var c=$n({},Qp,a,b);if(t(c)){var d=b[b.length-1],e;e=I(I(c,"Icon",{}),"href");e=t(e)?e:"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png";var f,g,h,m=I(c,"hotSpot");t(m)?(f=[m.x,m.y],g=m.gi,h=m.hi):"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"===e?(f=np,h=g="pixels"):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(e)&&(f=[0.5,1],h=g="fraction");var n,m=I(c,"heading");
t(m)&&(n=Sb(m));var c=I(c,"scale"),p;"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"==e&&(p=op);f=new Uj({anchor:f,anchorOrigin:"top-left",anchorXUnits:g,anchorYUnits:h,crossOrigin:"anonymous",rotation:n,scale:c,size:p,src:e});d.imageStyle=f}},LineStyle:function(a,b){var c=$n({},Rp,a,b);t(c)&&(b[b.length-1].strokeStyle=new le({color:I(c,"color",lp),width:I(c,"width",1)}))},PolyStyle:function(a,b){var c=$n({},Yp,a,b);if(t(c)){var d=b[b.length-1];d.fillStyle=new je({color:I(c,"color",
lp)});var e=I(c,"fill");t(e)&&(d.fill=e);c=I(c,"outline");t(c)&&(d.outline=c)}}},void 0),Up=Y(kp,{Pair:function(a,b){var c=$n({},Tp,a,b);if(t(c)){var d=I(c,"key");t(d)&&"normal"==d&&(d=I(c,"styleUrl"),t(d)&&(b[b.length-1]=d),c=I(c,"Style"),t(c)&&(b[b.length-1]=c))}}},void 0);l=hp.prototype;l.ve=function(a,b){Gn(a);var c;c={Folder:Rn(this.ve,this),Placemark:Sn(this.od,this),Style:B(this.Hh,this),StyleMap:B(this.Gh,this)};c=Y(kp,c,void 0);c=$n([],c,a,b,this);if(t(c))return c};
l.od=function(a,b){var c=$n({geometry:null},Xp,a,b);if(t(c)){var d=new R,e=a.getAttribute("id");null===e||d.b(e);d.Y(c);d.i(this.c);return d}};l.Hh=function(a,b){var c=a.getAttribute("id");if(null!==c){var d=Hp(a,b);t(d)&&(c=null!=a.baseURI?Cg(a.baseURI,"#"+c).toString():"#"+c,this.a[c]=d)}};l.Gh=function(a,b){var c=a.getAttribute("id");if(null!==c){var d=$n(void 0,Up,a,b);t(d)&&(c=null!=a.baseURI?Cg(a.baseURI,"#"+c).toString():"#"+c,this.a[c]=d)}};
l.we=function(a){if(-1==Ja(kp,a.namespaceURI))return null;a=this.od(a,[]);return t(a)?a:null};l.Yb=function(a){if(-1==Ja(kp,a.namespaceURI))return[];var b;b=Gn(a);if("Document"==b||"Folder"==b)return b=this.ve(a,[]),t(b)?b:[];if("Placemark"==b)return b=this.od(a,[]),t(b)?[b]:[];if("kml"==b){b=[];for(a=a.firstElementChild;null!==a;a=a.nextElementSibling){var c=this.Yb(a);t(c)&&Sa(b,c)}return b}return[]};
l.Fh=function(a){if(Jn(a))return Zp(this,a);if(Mn(a))return $p(this,a);if(la(a))return a=Qn(a),Zp(this,a)};function Zp(a,b){var c;for(c=b.firstChild;null!==c;c=c.nextSibling)if(1==c.nodeType){var d=$p(a,c);if(t(d))return d}}
function $p(a,b){var c;for(c=b.firstElementChild;null!==c;c=c.nextElementSibling)if(-1!=Ja(kp,c.namespaceURI)&&"name"==c.localName)return jo(c);for(c=b.firstElementChild;null!==c;c=c.nextElementSibling){var d=Gn(c);if(-1!=Ja(kp,c.namespaceURI)&&("Document"==d||"Folder"==d||"Placemark"==d||"kml"==d)&&(d=$p(a,c),t(d)))return d}}l.Dc=function(){return xf("EPSG:4326")};l.pd=function(){return xf("EPSG:4326")};function aq(a){this.c=xf((t(a)?a:{}).defaultProjection||"EPSG:4326")}G(aq,Qo);function bq(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 cq(a,b,c,d){a=a.geometries;var e=[],f,g;f=0;for(g=a.length;f<g;++f)e[f]=dq(a[f],b,c,d);return e}
function dq(a,b,c,d){var e=a.type,f=eq[e];b="Point"===e||"MultiPoint"===e?f(a,c,d):f(a,b);c=new R;c.fb(b);t(a.id)&&c.b(a.id);t(a.properties)&&c.Y(a.properties);return c}
aq.prototype.a=function(a){if("Topology"==a.type){var b,c=null,d=null;t(a.transform)&&(b=a.transform,c=b.scale,d=b.translate);var e=a.arcs;if(t(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,r=0,q=0,u=void 0,x=void 0,w=void 0,x=0,w=m.length;x<w;++x)u=m[x],r+=u[0],q+=u[1],u[0]=r,u[1]=q,fq(u,n,p)}b=[];a=Xb(a.objects);f=0;for(g=a.length;f<g;++f)"GeometryCollection"===a[f].type?(h=a[f],b.push.apply(b,cq(h,e,c,d))):(h=a[f],b.push(dq(h,e,c,d)));return b}return[]};
function fq(a,b,c){a[0]=a[0]*b[0]+c[0];a[1]=a[1]*b[1]+c[1]}aq.prototype.Ga=k("c");
var eq={Point:function(a,b,c){a=a.coordinates;t(b)&&t(c)&&fq(a,b,c);return new Yi(a)},LineString:function(a,b){var c=bq(a.arcs,b);return new dl(Za(c))},Polygon:function(a,b){var c=[],d,e;d=0;for(e=a.arcs.length;d<e;++d)c[d]=bq(a.arcs[d],b);return new Zi(c)},MultiPoint:function(a,b,c){a=a.coordinates;var d,e;if(t(b)&&t(c))for(d=0,e=a.length;d<e;++d)fq(a[d],b,c);return new il(a)},MultiLineString:function(a,b){var c=[],d,e;d=0;for(e=a.arcs.length;d<e;++d)c[d]=bq(a.arcs[d],b);return new fl(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]=bq(d[f],b);c[h]=e}return new jl(c)}};function gq(a,b){wd.call(this);this.a=new an(this);var c=a;b&&(c=gc(a));this.a.ga(c,"dragenter",this.xh);c!=a&&this.a.ga(c,"dragover",this.yh);this.a.ga(a,"dragover",this.zh);this.a.ga(a,"drop",this.Ah)}G(gq,wd);l=gq.prototype;l.Jb=!1;l.A=function(){gq.F.A.call(this);this.a.Ib()};l.xh=function(a){var b=a.Q.dataTransfer;(this.Jb=!(!b||!(b.types&&(0<=Ja(b.types,"Files")||0<=Ja(b.types,"public.file-url"))||b.files&&0<b.files.length)))&&a.M()};
l.yh=function(a){this.Jb&&(a.M(),a.Q.dataTransfer.dropEffect="none")};l.zh=function(a){this.Jb&&(a.M(),a.Ea(),a=a.Q.dataTransfer,a.effectAllowed="all",a.dropEffect="copy")};l.Ah=function(a){this.Jb&&(a.M(),a.Ea(),a=new Oc(a.Q),a.type="drop",N(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 hq(a,b){this.a=[];this.f=a;this.e=b||null}l=hq.prototype;l.mc=!1;l.Ub=!1;l.Rc=!1;l.Xe=!1;l.Ee=!1;l.Ye=0;l.Ld=function(a,b){this.Rc=!1;iq(this,a,b)};function iq(a,b,c){a.mc=!0;a.c=c;a.Ub=!b;jq(a)}function kq(a){if(a.mc){if(!a.Ee)throw new lq(a);a.Ee=!1}}function mq(a,b,c,d){a.a.push([b,c,d]);a.mc&&jq(a)}function nq(a){return Ma(a.a,function(a){return oa(a[1])})}
function jq(a){a.b&&(a.mc&&nq(a))&&(s.clearTimeout(a.b),delete a.b);a.d&&(a.d.Ye--,delete a.d);for(var b=a.c,c=!1,d=!1;a.a.length&&!a.Rc;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.Ub?g:f)try{var h=f.call(e||a.e,b);t(h)&&(a.Ub=a.Ub&&(h==b||h instanceof Error),a.c=b=h);b instanceof hq&&(d=!0,a.Rc=!0)}catch(m){b=m,a.Ub=!0,nq(a)||(c=!0)}}a.c=b;d&&(mq(b,B(a.Ld,a,!0),B(a.Ld,a,!1)),b.Xe=!0);c&&(a.b=s.setTimeout(rd(b),0))}function lq(a){xa.call(this);this.a=a}G(lq,xa);lq.prototype.message="Deferred has already fired";
lq.prototype.name="AlreadyCalledError";function oq(a,b){xa.call(this,ya("Error %s: %s",b,pq(a)));this.code=a}G(oq,xa);
function pq(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 qq(a,b){Gc.call(this,a.type,b);this.a=a}G(qq,Gc);function rq(){wd.call(this);this.ra=new FileReader;this.ra.onloadstart=B(this.a,this);this.ra.onprogress=B(this.a,this);this.ra.onload=B(this.a,this);this.ra.onabort=B(this.a,this);this.ra.onerror=B(this.a,this);this.ra.onloadend=B(this.a,this)}G(rq,wd);rq.prototype.getError=function(){return this.ra.error&&new oq(this.ra.error.code,"reading file")};rq.prototype.a=function(a){N(this,new qq(a,this))};rq.prototype.A=function(){rq.F.A.call(this);delete this.ra};
function sq(a){var b=new hq;a.addEventListener("loadend",va(function(a,b){var e=b.ra.result,f=b.getError();null==e||f?(kq(a),iq(a,!1,f)):(kq(a),iq(a,!0,e));b.Ib()},b,a));return b};function tq(a){a=t(a)?a:{};fi.call(this);this.d=t(a.formatConstructors)?a.formatConstructors:[];this.e=t(a.reprojectTo)?xf(a.reprojectTo):null;this.b=null;this.a=void 0}G(tq,fi);l=tq.prototype;l.A=function(){t(this.a)&&K(this.a);tq.F.A.call(this)};l.Lf=function(a){a=a.Q.dataTransfer.files;var b,c;b=0;for(c=a.length;b<c;++b){var d=a[b],e=new rq,f=sq(e);e.ra.readAsText(d,"");mq(f,this.fg,null,this)}};
l.fg=function(a){var b=this.k,c=this.e;null===c&&(c=b.a().N().l());var b=this.d,d=[],e,f;e=0;for(f=b.length;e<f;++e){var g=new b[e],h;try{h=g.Fa(a)}catch(m){h=null}if(null!==h){var g=g.Ga(a),g=yf(g,c),n,p;n=0;for(p=h.length;n<p;++n){var r=h[n],q=r.L();null===q||q.transform(g);d.push(r)}}}N(this,new uq(vq,this,d,c))};l.qa=pd;
l.setMap=function(a){t(this.a)&&(K(this.a),this.a=void 0);null!==this.b&&(Fc(this.b),this.b=null);tq.F.setMap.call(this,a);null!==a&&(this.b=new gq(a.b),this.a=J(this.b,"drop",this.Lf,!1,this))};var vq="addfeatures";function uq(a,b,c,d){Gc.call(this,a,b);this.features=c;this.projection=d}G(uq,Gc);function wq(a,b){this.x=a;this.y=b}G(wq,Tb);wq.prototype.J=function(){return new wq(this.x,this.y)};wq.prototype.scale=Tb.prototype.scale;wq.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function xq(a){a=t(a)?a:{};pi.call(this);this.g=t(a.condition)?a.condition:ni;this.a=this.b=void 0;this.d=0}G(xq,pi);xq.prototype.qb=function(a){var b=a.map,c=b.g();a=a.pixel;a=new wq(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().N(),e=$h(d);b.I();t(this.b)&&gi(b,d,e.rotation-(c-this.b));this.b=c;t(this.a)&&ii(b,d,this.a*(e.resolution/a));t(this.a)&&(this.d=this.a/a);this.a=a};
xq.prototype.rb=function(a){a=a.map;var b=a.a();Pf(b,-1);var b=b.N(),c=$h(b),d=this.d-1,e=c.rotation,e=b.constrainRotation(e,0);gi(a,b,e,void 0,void 0);c=c.resolution;c=b.a(c,0,d);ii(a,b,c,void 0,400);this.d=0;return!0};xq.prototype.sb=function(a){return this.g(a)?(Pf(a.map.a(),1),this.a=this.b=void 0,!0):!1};function yq(a,b){Gc.call(this,a);this.feature=b}G(yq,Gc);
function zq(a){fi.call(this);this.n=t(a.source)?a.source:null;this.l=t(a.features)?a.features:null;this.q=t(a.snapTolerance)?a.snapTolerance:12;this.o=t(a.minPointsPerRing)?a.minPointsPerRing:3;var b=this.h=a.type,c;if("Point"===b||"MultiPoint"===b)c=Aq;else if("LineString"===b||"MultiLineString"===b)c=Bq;else if("Polygon"===b||"MultiPolygon"===b)c=Cq;this.a=c;this.b=this.f=this.g=this.e=this.d=null;this.r=4;this.i=new se({style:t(a.style)?a.style:Dq()})}G(zq,fi);
function Dq(){var a={};a.Polygon=[new ne({fill:new je({color:[255,255,255,0.5]})})];a.MultiPolygon=a.Polygon;a.LineString=[new ne({stroke:new le({color:[255,255,255,1],width:5})}),new ne({stroke:new le({color:[0,153,255,1],width:3})})];a.MultiLineString=a.LineString;a.Point=[new ne({image:new me({radius:7,fill:new je({color:[0,153,255,1]}),stroke:new le({color:[255,255,255,0.75],width:1.5})}),zIndex:1E5})];a.MultiPoint=a.Point;return function(b){return a[b.L().D()]}}
zq.prototype.setMap=function(a){null===a&&Eq(this);this.i.setMap(a);zq.F.setMap.call(this,a)};
zq.prototype.qa=function(a){if(!qi(a.map))return!0;var b=!0;if("click"===a.type){var b=a.map.pc(a.target.va),c=a.pixel,d=b[0]-c[0],b=b[1]-c[1],c=!0;if(d*d+b*b<=this.r){if(null===this.d)Fq(this,a);else if(this.a===Aq||Gq(this,a)){a=Eq(this);var e,d=a.L();this.a===Aq?e=d.v():this.a===Bq?(e=d.v(),e.pop(),d.K(e)):this.a===Cq&&(this.b[0].pop(),this.b[0].push(this.b[0][0]),d.K(this.b),e=d.v());"MultiPoint"===this.h?a.fb(new il([e])):"MultiLineString"===this.h?a.fb(new fl([e])):"MultiPolygon"===this.h&&
a.fb(new jl([e]));null===this.l||this.l.push(a);null===this.n||this.n.pe(a);N(this,new yq("drawend",a))}else a=a.coordinate,e=this.e.L(),this.a===Bq?(this.d=a.slice(),d=e.v(),d.push(a.slice()),e.K(d)):this.a===Cq&&(this.b[0].push(a.slice()),e.K(this.b)),Hq(this);c=!1}b=c}else"mousemove"===a.type?(this.a===Aq&&null===this.d?Fq(this,a):null!==this.d&&(e=a.coordinate,b=this.e.L(),this.a===Aq?(a=b.v(),a[0]=e[0],a[1]=e[1],b.K(a)):(this.a===Bq?d=b.v():this.a===Cq&&(d=this.b[0]),Gq(this,a)&&(e=this.d.slice()),
this.g.L().K(e),a=d[d.length-1],a[0]=e[0],a[1]=e[1],this.a===Bq?b.K(d):this.a===Cq&&(this.f.L().K(d),b.K(this.b))),Hq(this)),b=!0):a.type===Dh&&(b=!1);return b};function Gq(a,b){var c=!1;if(null!==a.e){var d=a.e.L(),e=!1,f=[a.d];a.a===Bq?e=2<d.v().length:a.a===Cq&&(e=d.v()[0].length>a.o,f=[a.b[0][0],a.b[0][a.b[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.d=h;break}}}return c}
function Fq(a,b){var c=b.coordinate;a.d=c;var d;a.a===Aq?d=new Yi(c.slice()):(a.g=new R(new Yi(c.slice())),a.a===Bq?d=new dl([c.slice(),c.slice()]):a.a===Cq&&(a.f=new R(new dl([c.slice(),c.slice()])),a.b=[[c.slice(),c.slice()]],d=new Zi(a.b)));a.e=new R(d);Hq(a);N(a,new yq("drawstart",a.e))}function Eq(a){a.d=null;var b=a.e;null!==b&&(a.e=null,a.g=null,a.f=null,a.i.a.clear());return b}function Hq(a){var b=[a.e];null===a.f||b.push(a.f);null===a.g||b.push(a.g);a.i.Zb(new Q(b))}
var Aq="Point",Bq="LineString",Cq="Polygon";function Iq(a){pi.call(this);this.O=this.d=null;this.h=!1;this.a=this.B=null;this.g=t(a.pixelTolerance)?a.pixelTolerance:20;this.b=null;this.l=new se({style:a.style});this.r=a.features;J(this.r,"add",this.Re,!1,this);J(this.r,"remove",this.Jh,!1,this);this.n={Point:this.ei,LineString:this.Ke,LinearRing:this.Ke,Polygon:this.fi,MultiPoint:this.ci,MultiLineString:this.bi,MultiPolygon:this.di,GeometryCollection:this.ai}}G(Iq,pi);l=Iq.prototype;
l.setMap=function(a){null===a?this.a=null:null===this.a&&(this.a=new ul);this.l.setMap(a);Iq.F.setMap.call(this,a)};l.Re=function(a){a=a.element;var b=a.L();t(this.n[b.D()])&&this.n[b.D()].call(this,a,b);Jq(this,this.B,this.k)};l.ei=function(a,b){var c=b.v(),c={feature:a,geometry:b,T:[c,c]};Bl(this.a,b.p(),c)};l.ci=function(a,b){var c=b.v(),d,e,f;e=0;for(f=c.length;e<f;++e)d=c[e],d={feature:a,geometry:b,depth:[e],index:e,T:[d,d]},Bl(this.a,b.p(),d)};
l.Ke=function(a,b){var c=b.v(),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,T:f},Bl(this.a,Ce(f),g)};l.bi=function(a,b){var c=b.v(),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,T:m},Bl(this.a,Ce(m),n)};l.fi=function(a,b){var c=b.v()[0],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,T:f},Bl(this.a,Ce(f),g)};
l.di=function(a,b){var c=b.v(),d,e,f,g,h,m,n;g=0;for(h=c.length;g<h;++g)for(d=c[g][0],e=0,f=d.length-1;e<f;++e)m=d.slice(e,e+2),n={feature:a,geometry:b,depth:[g],index:e,T:m},Bl(this.a,Ce(m),n)};l.ai=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])};l.Jh=function(a){var b=a.element;a=this.a;var c,d=[];xl(a,b.L().p(),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.r.Na()&&(this.l.fd(this.d),this.d=null)};
function Kq(a,b){var c=a.d;null===c?(c=new R(new Yi(b)),a.d=c,a.l.ke(c)):c.L().K(b)}l.sb=function(){this.b=[];var a=this.d;if(null!==a){var b=[],a=a.L().v(),c=Ce([a]),d=[];yl(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.T;A(g.feature)in c||(c[A(g.feature)]=!0);ye(h[0],a)?this.b.push([g,0]):ye(h[1],a)?this.b.push([g,1]):A(h)in this.O&&b.push([g,a])}for(e=b.length-1;0<=e;--e)this.pg.apply(this,b[e])}return this.h};
l.qb=function(a){a=a.coordinate;for(var b=0,c=this.b.length;b<c;++b){var d=this.b[b],e=d[0],f=e.depth,g=e.geometry,h=g.v(),m=e.T,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[0][e.index+d]=a;m[d]=a;break;case "MultiPolygon":h[f[0]][0][e.index+d]=a,m[d]=a}g.K(h);f=Ce(m);Kq(this,a);this.a.remove(e);Bl(this.a,f,e)}};
l.rb=function(){for(var a,b=this.b.length-1;0<=b;--b)a=this.b[b][0],this.a.update(Ce(a.T),a)};l.qa=function(a){var b=a.map.a();Ra(b.k)[1]||(this.i||"mousemove"!=a.type)||(this.B=a.pixel,Jq(this,a.pixel,a.map));Iq.F.qa.call(this,a);return!this.h};
function Jq(a,b,c){function d(a,b){return Ae(e,ve(e,a.T))-Ae(e,ve(e,b.T))}var e=c.ea(b),f=c.ea([b[0]-a.g,b[1]+a.g]),g=c.ea([b[0]+a.g,b[1]-a.g]),f=Ce([f,g]);a.h=!1;f=Al(a.a,f);if(0<f.length){f.sort(d);var g=f[0].T,h=ve(e,g),m=c.f(h);if(Math.sqrt(Ae(b,m))<=a.g){b=c.f(g[0]);c=c.f(g[1]);b=Ae(m,b);c=Ae(m,c);10>=Math.sqrt(Math.min(b,c))&&(h=b>c?g[1]:g[0]);Kq(a,h);c={};c[A(g)]=!0;b=1;for(m=f.length;b<m;++b)if(h=f[b].T,ye(g[0],h[0])&&ye(g[1],h[1])||ye(g[0],h[1])&&ye(g[1],h[0]))c[A(h)]=!0;else break;a.O=c;
a.h=!0;return}}null!==a.d&&(a.l.fd(a.d),a.d=null)}
l.pg=function(a,b){var c=a.T,d=a.feature,e=a.geometry,f=a.depth,g=a.index,h;switch(e.D()){case "MultiLineString":h=e.v();h[f[0]].splice(g+1,0,b);break;case "Polygon":h=e.v();h[0].splice(g+1,0,b);break;case "MultiPolygon":h=e.v();h[f[0]][0].splice(g+1,0,b);break;case "LineString":h=e.v();h.splice(g+1,0,b);break;default:return}e.K(h);h=this.a;h.remove(a);var m=A(d),n=[];xl(this.a,e.p(),function(a){A(a.feature)===m&&n.push(a)});for(var p=0,r=n.length;p<r;++p){var q=n[p];q.geometry===e&&q.index>g&&++q.index}p=
{T:[c[0],b],feature:d,geometry:e,depth:f,index:g};Bl(h,Ce(p.T),p);this.b.push([p,1]);c={T:[b,c[1]],feature:d,geometry:e,depth:f,index:g+1};Bl(h,Ce(c.T),c);this.b.push([c,0])};function Lq(a){fi.call(this);this.e=t(a.condition)?a.condition:li;this.d=t(a.addCondition)?a.addCondition:ni;var b;if(t(a.layerFilter))b=a.layerFilter;else if(t(a.layer)){var c=a.layer;b=function(a){return a===c}}else if(t(a.layers)){var d=a.layers;b=function(a){return-1!=Ja(d,a)}}else b=pd;this.b=b;this.a=new se({style:a.style})}G(Lq,fi);Lq.prototype.f=function(){return this.a.a};
Lq.prototype.qa=function(a){if(!this.e(a))return!0;var b=this.d(a),c=a.map,d=this.a.a;b?c.hd(a.pixel,function(a){-1==Ja(d.a,a)&&d.push(a)},void 0,this.b):(a=c.hd(a.pixel,function(a){return a},void 0,this.b),t(a)?1==d.Na()?d.Td(0)!==a&&d.Ae(0,a):(1!=d.Na()&&d.clear(),d.push(a)):0!==d.Na()&&d.clear());return!1};Lq.prototype.setMap=function(a){Lq.F.setMap.call(this,a);this.a.setMap(a)};function Mq(a){var b=t(a)?a:{};hk.call(this,b);this.d=null;J(this,Fd("gradient"),this.ua,!1,this);this.V(t(b.gradient)?b.gradient:Nq);a=t(b.radius)?b.radius:8;var c=t(b.blur)?b.blur:15,d=t(b.Sh)?b.Sh:250,b=oc("CANVAS"),e=b.getContext("2d"),f=a+c+1;b.width=b.height=2*f;e.shadowOffsetX=e.shadowOffsetY=d;e.shadowBlur=c;e.shadowColor="#000";e.beginPath();c=f-d;e.arc(c,c,a,0,2*Math.PI,!0);e.fill();a=new Uj({src:b.toDataURL()});this.g(new ne({image:a}));J(this,"render",this.Ia,!1,this)}G(Mq,hk);
var Nq=["#00f","#0ff","#0f0","#ff0","#f00"];Mq.prototype.l=function(){return this.s("gradient")};Mq.prototype.getGradient=Mq.prototype.l;Mq.prototype.ua=function(){var a=this.l(),b=oc("CANVAS"),c=b.getContext("2d");b.width=1;b.height=256;for(var b=c.createLinearGradient(0,0,1,256),d=1/a.length,e=0,f=a.length;e<f;++e)b.addColorStop(e*d,a[e]);c.fillStyle=b;c.fillRect(0,0,1,256);this.d=c.getImageData(0,0,1,256).data};
Mq.prototype.Ia=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.d[f],c[d+1]=this.d[f+1],c[d+2]=this.d[f+2];a.putImageData(b,0,0)};Mq.prototype.V=function(a){this.t("gradient",a)};Mq.prototype.setGradient=Mq.prototype.V;function Oq(){};function Pq(){s.ActiveXObject&&(this.a=new ActiveXObject("Microsoft.XMLDOM"));this.b={d:/^\s*|\s*$/g,a:/\s*/g,c:/\s+/,b:/\s*,\s*/g}}G(Pq,Oq);function Qq(a,b,c){c||(c={});var d=a.Z[b.namespaceURI]||a.Z[a.c];if(d){var e=b.localName||b.nodeName.split(":").pop();(d=d[e]||d["*"])&&d.apply(a,[b,c])}}function Z(a,b,c){c||(c={});b=b.childNodes;for(var d,e=0,f=b.length;e<f;++e)d=b[e],1==d.nodeType&&Qq(a,d,c)}
function $(a){var b="";if(a)for(a=a.firstChild;a;a=a.nextSibling)switch(a.nodeType){case 3:case 4:b+=a.nodeValue}return b}Pq.prototype.getAttributeNS=function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else{var e=null;if(a.getAttributeNodeNS)e=a.getAttributeNodeNS(b,c);else{a=a.attributes;for(var f,g,h=0,m=a.length;h<m;++h)if(f=a[h],f.namespaceURI==b&&(g=f.prefix?f.prefix+":"+c:c,g==f.nodeName)){e=f;break}}if(b=e)d=b.nodeValue}return d};
Pq.prototype.createTextNode=function(a){return this.a?this.a.createTextNode(a):document.createTextNode(a)};Pq.prototype.createDocumentFragment=function(){return this.a?this.a.createDocumentFragment():document.createDocumentFragment()};function Rq(){function a(a,b){b.Th.push($(a))}function b(a,b){var e={code:a.getAttribute("exceptionCode"),xi:a.getAttribute("locator"),Th:[]};b.Rd.push(e);Z(this,a,e)}this.Z={"http://www.opengis.net/ogc":{ServiceExceptionReport:function(a,b){b.exceptionReport={};b.exceptionReport.exceptions=[];Z(this,a,b.exceptionReport)},ServiceException:function(a,b){var e={};e.code=a.getAttribute("code");e.locator=a.getAttribute("locator");e.text=$(a);b.exceptions.push(e)}},"http://www.opengis.net/ows":{ExceptionReport:function(a,
b){b.yi=!1;b.Tc={version:a.getAttribute("version"),language:a.getAttribute("language"),Rd:[]};Z(this,a,b.Tc)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}},"http://www.opengis.net/ows/1.1":{ExceptionReport:function(a,b){b.Tc={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),Rd:[]};Z(this,a,b.Tc)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}}};Pq.call(this)}G(Rq,Pq);
Rq.prototype.Xb=function(a){la(a)&&(a=un(a));var b={exceptionReport:null};a&&Z(this,a,b);return b};function Sq(a){this.b=a=t(a)?a:{};this.hc=a.hc||null;this.version=a.version;this.profile=a.profile;t(a.ec)?this.ec=a.ec:this.ec=!1;t(a.Gc)?this.Gc=a.Gc:this.Gc=!1}function Tq(a,b,c){b?(c=a.version,c||(c=b.getAttribute("version"),c||(c=a.hc))):c=c&&c.version||a.version||a.hc;return c}
function Uq(a,b){b=b||a.hc;var c=a.profile?"_"+a.profile:"";if(!a.a||a.a.VERSION!=b){var d=a.c["v"+b.replace(/\./g,"_")+c];if(!d&&(""!==c&&a.ec&&(c="",d=a.c["v"+b.replace(/\./g,"_")+c]),!d))throw"Can't find a parser for version "+b+c;a.a=new d(a.b)}return a.a}
Sq.prototype.write=function(a,b){var c=Tq(this,null,b);this.a=Uq(this,c);c=this.a.write(a,b);if(!1!==this.Gc)if("undefined"!=typeof XMLSerializer)c=(new XMLSerializer).serializeToString(c);else if(c=c.xml,!c)throw Error("Your browser does not support serializing XML documents");return c};Sq.prototype.Xb=function(a,b){la(a)&&(a=un(a));var c=Tq(this,a.documentElement);this.a=Uq(this,c);var d=this.a.Xb(a,b),e=this.a.Ze||null;null!==e&&void 0===d[e]&&(e=new Rq,d.error=e.Xb(a));d.version=c;return d};function Vq(){this.c="http://www.opengis.net/wms";this.Ze="service";this.Z={"http://www.opengis.net/wms":{Service:function(a,b){b.service={};Z(this,a,b.service)},Name:function(a,b){b.name=$(a)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},BoundingBox:function(a){var b={};b.bbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))];a={x:parseFloat(a.getAttribute("resx")),y:parseFloat(a.getAttribute("resy"))};
isNaN(a.x)&&isNaN(a.y)||(b.res=a);return b},OnlineResource:function(a,b){b.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ContactInformation:function(a,b){b.contactInformation={};Z(this,a,b.contactInformation)},ContactPersonPrimary:function(a,b){b.personPrimary={};Z(this,a,b.personPrimary)},ContactPerson:function(a,b){b.person=$(a)},ContactOrganization:function(a,b){b.organization=$(a)},ContactPosition:function(a,b){b.position=$(a)},ContactAddress:function(a,b){b.contactAddress=
{};Z(this,a,b.contactAddress)},AddressType:function(a,b){b.type=$(a)},Address:function(a,b){b.address=$(a)},City:function(a,b){b.city=$(a)},StateOrProvince:function(a,b){b.stateOrProvince=$(a)},PostCode:function(a,b){b.postcode=$(a)},Country:function(a,b){b.country=$(a)},ContactVoiceTelephone:function(a,b){b.phone=$(a)},ContactFacsimileTelephone:function(a,b){b.fax=$(a)},ContactElectronicMailAddress:function(a,b){b.email=$(a)},Fees:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.fees=c)},
AccessConstraints:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.accessConstraints=c)},Capability:function(a,b){b.capability={};b.capability.nestedLayers=[];b.capability.layers=[];Z(this,a,b.capability)},Request:function(a,b){b.request={};Z(this,a,b.request)},GetCapabilities:function(a,b){b.getcapabilities={};b.getcapabilities.formats=[];Z(this,a,b.getcapabilities)},Format:function(a,b){ia(b.formats)?b.formats.push($(a)):b.format=$(a)},DCPType:function(a,b){Z(this,a,b)},HTTP:function(a,b){Z(this,
a,b)},Get:function(a,b){b.get={};Z(this,a,b.get)},Post:function(a,b){b.post={};Z(this,a,b.post)},GetMap:function(a,b){b.getmap={};b.getmap.formats=[];Z(this,a,b.getmap)},GetFeatureInfo:function(a,b){b.getfeatureinfo={};b.getfeatureinfo.formats=[];Z(this,a,b.getfeatureinfo)},Exception:function(a,b){b.exception={};b.exception.formats=[];Z(this,a,b.exception)},Layer:function(a,b){var c,d;b.capability?(d=b.capability,c=b):d=b;var e=a.getAttributeNode("queryable"),f=e&&e.specified?a.getAttribute("queryable"):
null,g=(e=a.getAttributeNode("cascaded"))&&e.specified?a.getAttribute("cascaded"):null,h=(e=a.getAttributeNode("opaque"))&&e.specified?a.getAttribute("opaque"):null,m=a.getAttribute("noSubsets"),n=a.getAttribute("fixedWidth"),p=a.getAttribute("fixedHeight"),e=c||{},f={nestedLayers:[],styles:c?[].concat(c.styles):[],srs:{},metadataURLs:[],bbox:{},llbbox:e.llbbox,dimensions:{},authorityURLs:{},identifiers:{},keywords:[],queryable:f&&""!==f?"1"===f||"true"===f:e.queryable||!1,cascaded:null!==g?parseInt(g,
10):e.cascaded||0,opaque:h?"1"===h||"true"===h:e.opaque||!1,noSubsets:null!==m?"1"===m||"true"===m:e.noSubsets||!1,fixedWidth:null!==n?parseInt(n,10):e.fixedWidth||0,fixedHeight:null!==p?parseInt(p,10):e.fixedHeight||0,minScale:e.minScale,maxScale:e.maxScale,attribution:e.attribution};c&&(dc(f.srs,e.srs),dc(f.bbox,e.bbox),dc(f.dimensions,e.dimensions),dc(f.authorityURLs,e.authorityURLs));b.nestedLayers.push(f);f.capability=d;Z(this,a,f);delete f.capability;f.name&&(c=f.name.split(":"),g=d.request,
e=g.getfeatureinfo,0<c.length&&(f.prefix=c[0]),d.layers.push(f),t(f.formats)||(f.formats=g.getmap.formats),!t(f.infoFormats)&&e&&(f.infoFormats=e.formats))},Attribution:function(a,b){b.attribution={};Z(this,a,b.attribution)},LogoURL:function(a,b){b.logo={width:a.getAttribute("width"),height:a.getAttribute("height")};Z(this,a,b.logo)},Style:function(a,b){var c={};b.styles.push(c);Z(this,a,c)},LegendURL:function(a,b){var c={width:a.getAttribute("width"),height:a.getAttribute("height")};b.legend=c;Z(this,
a,c)},MetadataURL:function(a,b){var c={type:a.getAttribute("type")};b.metadataURLs.push(c);Z(this,a,c)},DataURL:function(a,b){b.dataURL={};Z(this,a,b.dataURL)},FeatureListURL:function(a,b){b.featureListURL={};Z(this,a,b.featureListURL)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};Z(this,a,d);b.authorityURLs[c]=d.href},Identifier:function(a,b){var c=a.getAttribute("authority");b.identifiers[c]=$(a)},KeywordList:function(a,b){Z(this,a,b)},SRS:function(a,b){b.srs[$(a)]=!0}}};Pq.call(this)}
G(Vq,Pq);Vq.prototype.Xb=function(a){la(a)&&(a=un(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Qq(this,a,b);return b};function Wq(){Vq.call(this);var a=this.Z["http://www.opengis.net/wms"].BoundingBox;dc(this.Z["http://www.opengis.net/wms"],{WMT_MS_Capabilities:function(a,c){Z(this,a,c)},Keyword:function(a,c){c.keywords&&c.keywords.push({value:$(a)})},DescribeLayer:function(a,c){c.describelayer={formats:[]};Z(this,a,c.describelayer)},GetLegendGraphic:function(a,c){c.getlegendgraphic={formats:[]};Z(this,a,c.getlegendgraphic)},GetStyles:function(a,c){c.getstyles={formats:[]};Z(this,a,c.getstyles)},PutStyles:function(a,
c){c.putstyles={formats:[]};Z(this,a,c.putstyles)},UserDefinedSymbolization:function(a,c){var d={supportSLD:1==parseInt(a.getAttribute("SupportSLD"),10),userLayer:1==parseInt(a.getAttribute("UserLayer"),10),userStyle:1==parseInt(a.getAttribute("UserStyle"),10),remoteWFS:1==parseInt(a.getAttribute("RemoteWFS"),10)};c.userSymbols=d},LatLonBoundingBox:function(a,c){c.llbbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))]},
BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("SRS");c.bbox[d.srs]=d},ScaleHint:function(a,c){var d=parseFloat(a.getAttribute("min")),e=parseFloat(a.getAttribute("max")),f=Math.pow(2,0.5),g=25.4/0.28;0!==d&&(c.maxScale=parseFloat(39.37*(d/f)*g));Infinity!=e&&(c.minScale=parseFloat(39.37*(e/f)*g))},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),unitsymbol:a.getAttribute("unitSymbol")};c.dimensions[d.name]=d},Extent:function(a,
c){var d=a.getAttribute("name").toLowerCase();d in c.dimensions&&(d=c.dimensions[d],d.nearestVal="1"===a.getAttribute("nearestValue"),d.multipleVal="1"===a.getAttribute("multipleValues"),d.current="1"===a.getAttribute("current"),d["default"]=a.getAttribute("default")||"",d.values=$(a).split(","))}})}G(Wq,Vq);function Xq(){Wq.call(this);this.version="1.1.0";dc(this.Z["http://www.opengis.net/wms"],{SRS:function(a,b){for(var c=$(a).split(/ +/),d=0,e=c.length;d<e;d++)b.srs[c[d]]=!0}})}G(Xq,Wq);function Yq(){Wq.call(this);this.version="1.1.1";dc(this.Z["http://www.opengis.net/wms"],{SRS:function(a,b){b.srs[$(a)]=!0}})}G(Yq,Wq);function Zq(){Yq.call(this);this.profile="WMSC";dc(this.Z["http://www.opengis.net/wms"],{VendorSpecificCapabilities:function(a,b){b.vendorSpecific={tileSets:[]};Z(this,a,b.vendorSpecific)},TileSet:function(a,b){var c={srs:{},bbox:{},resolutions:[]};Z(this,a,c);b.zi.push(c)},Resolutions:function(a,b){for(var c=$(a).split(" "),d=0,e=c.length;d<e;d++)""!==c[d]&&b.resolutions.push(parseFloat(c[d]))},Width:function(a,b){b.width=parseInt($(a),10)},Height:function(a,b){b.height=parseInt($(a),10)},Layers:function(a,
b){b.layers=$(a)},Styles:function(a,b){b.styles=$(a)}})}G(Zq,Yq);function $q(){Vq.call(this);var a=this.Z["http://www.opengis.net/wms"].BoundingBox;dc(this.Z["http://www.opengis.net/wms"],{WMS_Capabilities:function(a,c){Z(this,a,c)},LayerLimit:function(a,c){c.layerLimit=parseInt($(a),10)},MaxWidth:function(a,c){c.maxWidth=parseInt($(a),10)},MaxHeight:function(a,c){c.maxHeight=parseInt($(a),10)},BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("CRS");c.bbox[d.srs]=d},CRS:function(a,c){this.Z["http://www.opengis.net/wms"].SRS.apply(this,
arguments)},EX_GeographicBoundingBox:function(a,c){c.llbbox=[];Z(this,a,c.llbbox)},westBoundLongitude:function(a,c){c[0]=$(a)},eastBoundLongitude:function(a,c){c[2]=$(a)},southBoundLatitude:function(a,c){c[1]=$(a)},northBoundLatitude:function(a,c){c[3]=$(a)},MinScaleDenominator:function(a,c){c.maxScale=parseFloat($(a)).toPrecision(16)},MaxScaleDenominator:function(a,c){c.minScale=parseFloat($(a)).toPrecision(16)},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),
unitsymbol:a.getAttribute("unitSymbol"),nearestVal:"1"===a.getAttribute("nearestValue"),multipleVal:"1"===a.getAttribute("multipleValues"),"default":a.getAttribute("default")||"",current:"1"===a.getAttribute("current"),values:$(a).split(",")};c.dimensions[d.name]=d},Keyword:function(a,c){var d={value:$(a),vocabulary:a.getAttribute("vocabulary")};c.keywords&&c.keywords.push(d)}});this.Z.sld={UserDefinedSymbolization:function(a,c){this.Z["http://www.opengis.net/wms"].wi.apply(this,arguments);var d=
a.getAttribute("InlineFeature");c.userSymbols.inlineFeature=1==parseInt(d,10);d=a.getAttribute("RemoteWCS");c.userSymbols.remoteWCS=1==parseInt(d,10)},DescribeLayer:function(a,c){this.Z["http://www.opengis.net/wms"].oi.apply(this,arguments)},GetLegendGraphic:function(a,c){this.Z["http://www.opengis.net/wms"].pi.apply(this,arguments)}}}G($q,Vq);function ar(a){a=a||{};a.defaultVersion="1.1.1";this.c={};this.c.v1_1_0=Xq;this.c.v1_1_1=Yq;this.c.v1_1_1_WMSC=Zq;this.c.v1_3_0=$q;Sq.call(this,a)}G(ar,Sq);function br(a,b){var c=b||{},d=c.document||document,e=oc("SCRIPT"),f={ze:e,gb:void 0},g=new hq(cr,f),h=null,m=null!=c.timeout?c.timeout:5E3;0<m&&(h=window.setTimeout(function(){dr(e,!0);var b=new er(fr,"Timeout reached for loading script "+a);kq(g);iq(g,!1,b)},m),f.gb=h);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(dr(e,c.Kd||!1,h),kq(g),iq(g,!0,null))};e.onerror=function(){dr(e,!0,h);var b=new er(gr,"Error while loading script "+a);kq(g);
iq(g,!1,b)};ic(e,{type:"text/javascript",charset:"UTF-8",src:a});hr(d).appendChild(e);return g}function hr(a){var b=a.getElementsByTagName("HEAD");return b&&0!=b.length?b[0]:a.documentElement}function cr(){if(this&&this.ze){var a=this.ze;a&&"SCRIPT"==a.tagName&&dr(a,!0,this.gb)}}function dr(a,b,c){null!=c&&s.clearTimeout(c);a.onload=fa;a.onerror=fa;a.onreadystatechange=fa;b&&window.setTimeout(function(){tc(a)},0)}var gr=0,fr=1;
function er(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);xa.call(this,c);this.code=a}G(er,xa);function ir(a){this.c=new mg(a);this.a="jsonp";this.gb=5E3}var jr=0;function kr(a){return function(){lr(a,!1)}}function mr(a,b){return function(c){lr(a,!0);b.apply(void 0,arguments)}}function lr(a,b){s._callbacks_[a]&&(b?delete s._callbacks_[a]:s._callbacks_[a]=fa)};function nr(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())}}function or(a){return pr(La(a,nr))}function pr(a){return 1===a.length?a[0]:function(b,c,d){return null===b?void 0:a[Rb((b.x<<b.a)+b.y,a.length)].call(this,b,c,d)}}function qr(){}function rr(a,b){var c=new $a(0,0,0);return function(d,e,f){return null===d?void 0:b.call(this,a.call(this,d,f,c),e,f)}}
function sr(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 tr(a){Fm.call(this);this.d=t(a)?a:2048}G(tr,Fm);function ur(a,b){for(var c,d;a.wa()>a.d&&!(c=a.a.ib,d=c.a.a.toString(),d in b&&b[d].contains(c.a));)a.pop()};function vr(a){Jj.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,tileGrid:a.tileGrid});this.tileUrlFunction=t(a.tileUrlFunction)?a.tileUrlFunction:qr;this.crossOrigin=t(a.crossOrigin)?a.crossOrigin:null;this.b=new tr;this.tileLoadFunction=t(a.tileLoadFunction)?a.tileLoadFunction:wr;this.Hc=t(a.Hc)?a.Hc:Cf}G(vr,Jj);function wr(a,b){a.b().src=b}l=vr.prototype;l.kd=function(){return this.b.wa()>this.b.d};l.oe=function(a){ur(this.b,a)};
l.nb=function(a,b,c,d,e){var f=this.La(a,b,c);if(Dm(this.b,f))return Gm(this.b,f);a=new $a(a,b,c);d=this.tileUrlFunction(a,d,e);d=new this.Hc(a,t(d)?0:4,t(d)?d:"",this.crossOrigin,this.tileLoadFunction);Hm(this.b,f,d);return d};l.$b=function(a){this.b.clear();this.tileUrlFunction=a;this.u()};l.Ie=function(a,b,c){a=this.La(a,b,c);Dm(this.b,a)&&Gm(this.b,a)};function xr(a){var b=Array(a.maxZoom+1),c,d=2*vj/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);Cj.call(this,{minZoom:a.minZoom,origin:[-vj,vj],resolutions:b,tileSize:256})}G(xr,Cj);
xr.prototype.c=function(a){a=t(a)?a:{};var b=this.minZoom,c=this.maxZoom,d=t(a.$h)?a.$h:!0,e=new $a(0,0,0),f=null;if(t(a.extent)){var f=Array(c+1),g;for(g=0;g<=c;++g)f[g]=g<b?null:Fj(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),r=a.x;if(d)r=Rb(r,p);else if(0>r||p<=r)return null;a=a.y;return a<-p||-1<a||null!==f&&(e.a=g,e.x=r,e.y=a,!f[g].contains(e))?null:ab(g,r,-a-1,n)}};
xr.prototype.rc=function(a,b){return a.a<this.maxZoom?eb(2*a.x,2*(a.x+1),2*a.y,2*(a.y+1),b):null};xr.prototype.oc=function(a,b,c,d){d=eb(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 yr(a){vr.call(this,{crossOrigin:"anonymous",opaque:!0,projection:xf("EPSG:3857"),state:0,tileLoadFunction:a.tileLoadFunction});this.a=t(a.culture)?a.culture:"en-us";var b=new mg("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.imagerySet),b=new ir(b),c={include:"ImageryProviders",key:a.key};a=B(this.e,this);var d=c||null,c="_"+(jr++).toString(36)+wa().toString(36);s._callbacks_||(s._callbacks_={});var e=b.c.J();if(d)for(var f in d)d.hasOwnProperty&&!d.hasOwnProperty(f)||zg(e,f,d[f]);
a&&(s._callbacks_[c]=mr(c,a),zg(e,b.a,"_callbacks_."+c));f=br(e.toString(),{timeout:b.gb,Kd:!0});mq(f,null,kr(c),void 0)}G(yr,vr);var zr=new fb({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'});
yr.prototype.e=function(a){if(200!=a.statusCode||"OK"!=a.statusDescription||"ValidCredentials"!=a.authenticationResultCode||1!=a.resourceSets.length||1!=a.resourceSets[0].resources.length)Lf(this,2);else{var b=a.brandLogoUri,c=a.resourceSets[0].resources[0],d=new xr({minZoom:c.zoomMin,maxZoom:c.zoomMax,tileSize:c.imageWidth});this.tileGrid=d;var e=this.a;this.tileUrlFunction=rr(d.c(),pr(La(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}",cb(a))}})));if(c.imageryProviders){var f=ff(xf("EPSG:4326"),this.l);a=La(c.imageryProviders,function(a){var b=a.attribution,c={};Ka(a.coverageAreas,function(a){var b=a.zoomMin,e=a.zoomMax;a=a.bbox;a=Ze([a[1],a[0],a[3],a[2]],f);var g,h;for(g=b;g<=e;++g)h=g.toString(),b=Fj(d,a,g),h in c?c[h].push(b):c[h]=[b]});return new fb({html:b,tileRanges:c})});a.push(zr);this.d=a}this.q=b;Lf(this,1)}};function Ar(a,b,c){if(oa(a))c&&(a=B(a,c));else if(a&&"function"==typeof a.handleEvent)a=B(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:s.setTimeout(a,b||0)};function Br(){}Br.prototype.a=null;function Cr(a){var b;(b=a.a)||(b={},Dr(a)&&(b[0]=!0,b[1]=!0),b=a.a=b);return b};var Er;function Fr(){}G(Fr,Br);function Gr(a){return(a=Dr(a))?new ActiveXObject(a):new XMLHttpRequest}function Dr(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}Er=new Fr;function Hr(a){wd.call(this);this.B=new bg;this.i=a||null;this.a=!1;this.h=this.C=null;this.G=this.n="";this.b=0;this.f="";this.c=this.q=this.l=this.k=!1;this.g=0;this.e=null;this.d=Ir;this.o=this.O=!1}G(Hr,wd);var Ir="",Jr=/^https?$/i,Kr=["POST","PUT"];
function Lr(a,b){if(a.C)throw Error("[goog.net.XhrIo] Object is active with another request\x3d"+a.n+"; newUri\x3d"+b);a.n=b;a.f="";a.b=0;a.G="GET";a.k=!1;a.a=!0;a.C=a.i?Gr(a.i):Gr(Er);a.h=a.i?Cr(a.i):Cr(Er);a.C.onreadystatechange=B(a.r,a);try{a.q=!0,a.C.open("GET",b,!0),a.q=!1}catch(c){Mr(a,c);return}var d=a.B.J(),e=Na(d.Aa(),Nr),f=s.FormData&&!1;!(0<=Ja(Kr,"GET"))||(e||f)||cg(d,"Content-Type","application/x-www-form-urlencoded;charset\x3dutf-8");ag(d,function(a,b){this.C.setRequestHeader(b,a)},
a);a.d&&(a.C.responseType=a.d);"withCredentials"in a.C&&(a.C.withCredentials=a.O);try{Or(a),0<a.g&&(a.o=H&&Hb(9)&&na(a.C.timeout)&&t(a.C.ontimeout),a.o?(a.C.timeout=a.g,a.C.ontimeout=B(a.gb,a)):a.e=Ar(a.gb,a.g,a)),a.l=!0,a.C.send(""),a.l=!1}catch(g){Mr(a,g)}}function Nr(a){return"content-type"==a.toLowerCase()}
Hr.prototype.gb=function(){"undefined"!=typeof da&&this.C&&(this.f="Timed out after "+this.g+"ms, aborting",this.b=8,N(this,"timeout"),this.C&&this.a&&(this.a=!1,this.c=!0,this.C.abort(),this.c=!1,this.b=8,N(this,"complete"),N(this,"abort"),Pr(this)))};function Mr(a,b){a.a=!1;a.C&&(a.c=!0,a.C.abort(),a.c=!1);a.f=b;a.b=5;Qr(a);Pr(a)}function Qr(a){a.k||(a.k=!0,N(a,"complete"),N(a,"error"))}Hr.prototype.A=function(){this.C&&(this.a&&(this.a=!1,this.c=!0,this.C.abort(),this.c=!1),Pr(this,!0));Hr.F.A.call(this)};
Hr.prototype.r=function(){if(!this.ca&&this.a&&"undefined"!=typeof da&&(!this.h[1]||4!=Rr(this)||2!=Sr(this)))if(this.l&&4==Rr(this))Ar(this.r,0,this);else if(N(this,"readystatechange"),4==Rr(this)){this.a=!1;try{if(Tr(this))N(this,"complete"),N(this,"success");else{this.b=6;var a;try{a=2<Rr(this)?this.C.statusText:""}catch(b){a=""}this.f=a+" ["+Sr(this)+"]";Qr(this)}}finally{Pr(this)}}};
function Pr(a,b){if(a.C){Or(a);var c=a.C,d=a.h[0]?fa:null;a.C=null;a.h=null;b||N(a,"ready");try{c.onreadystatechange=d}catch(e){}}}function Or(a){a.C&&a.o&&(a.C.ontimeout=null);na(a.e)&&(s.clearTimeout(a.e),a.e=null)}
function Tr(a){var b=Sr(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=hg(String(a.n))[1]||null,!a&&self.location&&(a=self.location.protocol,a=a.substr(0,a.length-1)),b=!Jr.test(a?a.toLowerCase():"");c=b}return c}function Rr(a){return a.C?a.C.readyState:0}function Sr(a){try{return 2<Rr(a)?a.C.status:-1}catch(b){return-1}}function Ur(a){try{return a.C?a.C.responseText:""}catch(b){return""}}
function Vr(a){try{if(!a.C)return null;if("response"in a.C)return a.C.response;switch(a.d){case Ir:case "text":return a.C.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.C)return a.C.mozResponseArrayBuffer}return null}catch(b){return null}};function Wr(a){var b=t(a)?a:{};El.call(this,{attributions:b.attributions,extent:b.extent,logo:b.logo,projection:b.projection});this.format=b.format;t(b.doc)&&Xr(this,b.doc);t(b.node)&&Xr(this,b.node);t(b.object)&&Xr(this,b.object);t(b.text)&&Xr(this,b.text);t(b.arrayBuffer)&&Xr(this,b.arrayBuffer);if(t(b.url)||t(b.urls)){Lf(this,0);a="binary"==this.format.D()&&zc.Cd?"arraybuffer":"text";var c;t(b.url)&&(c=new Hr,c.d=a,J(c,"complete",B(this.g,this)),Lr(c,b.url));if(t(b.urls)){var b=b.urls,d,e;d=0;
for(e=b.length;d<e;++d)c=new Hr,c.d=a,J(c,"complete",B(this.g,this)),Lr(c,b[d])}}}G(Wr,El);Wr.prototype.g=function(a){a=a.target;if(Tr(a)){var b=this.format.D(),c;if("binary"==b&&zc.Cd)c=Vr(a);else if("json"==b)c=a.C?Po(a.C.responseText):void 0;else if("text"==b)c=Ur(a);else if("xml"==b){if(!H)try{c=a.C?a.C.responseXML:null}catch(d){c=null}null!=c||(c=Qn(Ur(a)))}Fc(a);null!=c?Xr(this,c):Lf(this,2)}else Lf(this,2)};
function Xr(a,b){var c=a.format,d=c.Fa(b),c=c.Ga(b),e=a.l;if(null!==e&&c!==e&&(c.ta!=e.ta||ff(c,e)!==pf)){var c=yf(c,e),f,e=0;for(f=d.length;e<f;++e){var g=d[e].L();null===g||g.transform(c)}}Fl(a,d);Lf(a,1)};function Yr(a){a=t(a)?a:{};Wr.call(this,{attributions:a.attributions,doc:a.doc,extent:a.extent,format:new no,logo:a.logo,node:a.node,projection:a.projection,text:a.text,url:a.url,urls:a.urls})}G(Yr,Wr);function Zr(a){a=t(a)?a:{};Wr.call(this,{attributions:a.attributions,extent:a.extent,format:new Vo({defaultProjection:a.defaultProjection}),logo:a.logo,object:a.object,projection:a.projection,text:a.text,url:a.url,urls:a.urls})}G(Zr,Wr);function $r(a){a=t(a)?a:{};Wr.call(this,{format:new dp({altitudeMode:a.altitudeMode}),projection:a.projection,text:a.text,url:a.url,urls:a.urls})}G($r,Wr);function as(a,b,c,d,e){zj.call(this,a,b,c,2,d);this.a=e}G(as,zj);as.prototype.e=k("a");function bs(a){xk.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,resolutions:a.resolutions,state:a.state});this.B=a.canvasFunction;this.n=null;this.o=0;this.G=t(a.ratio)?a.ratio:1.5}G(bs,xk);bs.prototype.ub=function(a,b,c,d){b=yk(this,b);var e=this.n;if(null!==e&&this.o==this.c&&e.d==b&&e.b==c&&Je(e.p(),a))return e;a=a.slice();Xe(a,this.G);d=this.B(a,b,c,[(a[2]-a[0])/b*c,(a[3]-a[1])/b*c],d);null===d||(e=new as(a,b,c,this.d,d));this.n=e;this.o=this.c;return e};function cs(a){var b=t(a.attributions)?a.attributions:null,c=t(a.crossOrigin)?a.crossOrigin:null,d=a.imageExtent,e=(d[3]-d[1])/a.imageSize[1],f=a.url,g=xf(a.projection);xk.call(this,{attributions:b,extent:a.extent,logo:a.logo,projection:g,resolutions:[e]});this.a=new Aj(d,e,1,b,f,c)}G(cs,xk);cs.prototype.ub=function(a){return Ue(a,this.a.p())?this.a:null};function ds(a){this.e=a.source;this.Rg=t(a.style)?qe(a.style):pe;this.U=Rd();this.a=oc("CANVAS");this.h=this.a.getContext("2d");this.b=[0,0];this.g=null;bs.call(this,{attributions:a.attributions,canvasFunction:B(this.r,this),extent:a.extent,logo:a.logo,projection:a.projection,ratio:a.ratio,resolutions:a.resolutions,state:this.e.f});J(this.e,"change",this.ja,void 0,this)}G(ds,bs);
ds.prototype.r=function(a,b,c,d){var e=new Rk(b/(2*c),a),f=!1;this.e.nc(a,function(a){var d;if(!(d=f))if(d=this.Rg(a,b),null!=d){var m=b*b/(4*c*c),n,p,r=!1;n=0;for(p=d.length;n<p;++n)r=ll(e,a,d[n],m,a,this.Sg,this)||r;d=r}else d=!1;f=d},this);Vk(e);if(f)return null;this.b[0]!=d[0]||this.b[1]!=d[1]?(this.a.width=d[0],this.a.height=d[1],this.b[0]=d[0],this.b[1]=d[1]):this.h.clearRect(0,0,d[0],d[1]);d=Xj(this.U,d[0]/2,d[1]/2,c/b,-c/b,0,-Pe(a)[0],-Pe(a)[1]);Sk(e,this.h,a,c,d,0,pd);this.g=e;return this.a};
ds.prototype.k=function(a,b,c,d,e){return null===this.g?void 0:Uk(this.g,a,b,0,d,pd,function(a,b){return e(b)})};ds.prototype.Sg=function(){this.u()};ds.prototype.ja=function(){Lf(this,this.e.f)};function es(a){a=t(a)?a:{};xk.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,resolutions:a.resolutions});this.U=t(a.crossOrigin)?a.crossOrigin:null;this.g=a.url;this.b=a.params;this.e=!0;fs(this);this.G=a.serverType;this.ja=t(a.hidpi)?a.hidpi:!0;this.a=null;this.h=[0,0];this.n=null;this.r=NaN;this.B=0;this.o=t(a.ratio)?a.ratio:1.5}G(es,xk);l=es.prototype;
l.Tg=function(a,b,c,d){if(t(this.g)&&null!==this.a&&b==this.r&&(c===this.n||(c.ta!=this.n.ta?0:ff(c,this.n)===pf))){var e=this.a.p(),f=this.a.b,g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:I(this.b,"LAYERS")};dc(g,this.b,d);b/=f;d=Math.floor((e[3]-a[1])/b);g[this.e?"I":"X"]=Math.floor((a[0]-e[0])/b);g[this.e?"J":"Y"]=d;return gs(this,e,this.h,f,c,g)}};l.Ug=k("b");
l.ub=function(a,b,c,d){if(!t(this.g))return null;b=yk(this,b);1==c||this.ja&&t(this.G)||(c=1);var e=this.a;if(null!==e&&this.B==this.c&&e.d==b&&e.b==c&&Je(e.p(),a))return e;e={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};dc(e,this.b);a=a.slice();var f=(a[0]+a[2])/2,g=(a[1]+a[3])/2;if(1!=this.o){var h=this.o*(a[2]-a[0])/2,m=this.o*(a[3]-a[1])/2;a[0]=f-h;a[1]=g-m;a[2]=f+h;a[3]=g+m}var h=b/c,m=Math.ceil((a[2]-a[0])/h),n=Math.ceil((a[3]-a[1])/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=gs(this,a,this.h,c,d,e);this.a=new Aj(a,b,c,this.d,e,this.U);this.n=d;this.r=b;this.B=this.c;return this.a};
function gs(a,b,c,d,e,f){f[a.e?"CRS":"SRS"]=e.a;"STYLES"in a.b||(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.e&&"ne"==c.substr(0,2)?[b[1],b[0],b[3],b[2]]:b).join(",");return jg(lg([a.g],f))}l.Vg=function(a){a!=this.g&&(this.g=a,this.a=null,this.u())};l.Wg=function(a){dc(this.b,a);fs(this);this.a=null;this.u()};
function fs(a){a.e=0<=Ha(I(a.b,"VERSION","1.3.0"),"1.3")};function hs(a){a=t(a)?a:{};Wr.call(this,{attributions:a.attributions,doc:a.doc,extent:a.extent,format:new hp({defaultStyle:a.defaultStyle}),logo:a.logo,node:a.node,projection:a.projection,text:a.text,url:a.url,urls:a.urls})}G(hs,Wr);function is(a,b,c){return function(d,e,f){return c(a,b,d,e,f)}}function js(){};function ks(a){xk.call(this,{extent:a.extent,projection:a.projection,resolutions:a.resolutions});this.o=t(a.crossOrigin)?a.crossOrigin:null;this.a=t(a.displayDpi)?a.displayDpi:96;this.h=t(a.url)?is(a.url,t(a.params)?a.params:{},B(this.g,this)):js;this.r=t(a.hidpi)?a.hidpi:!0;this.n=t(a.metersPerUnit)?a.metersPerUnit:1;this.e=t(a.ratio)?a.ratio:1;this.B=t(a.useOverlay)?a.useOverlay:!1;this.b=null}G(ks,xk);
ks.prototype.ub=function(a,b,c,d){b=yk(this,b);c=this.r?c:1;var e=this.b;if(null!==e&&e.d==b&&e.b==c&&Je(e.p(),a))return e;1!=this.e&&(a=a.slice(),Xe(a,this.e));d=this.h(a,[(a[2]-a[0])/b*c,(a[3]-a[1])/b*c],d);return this.b=e=t(d)?new Aj(a,b,c,this.d,d,this.o):null};
ks.prototype.g=function(a,b,c,d){var e;e=this.n;var f=Te(c),g=Re(c),h=d[0],m=d[1],n=0.0254/this.a;e=m*f>h*g?f*e/(h*n):g*e/(m*n);c=Pe(c);d={OPERATION:this.B?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.MapGuide source",CLIP:"1",SETDISPLAYDPI:this.a,SETDISPLAYWIDTH:Math.round(d[0]),SETDISPLAYHEIGHT:Math.round(d[1]),SETVIEWSCALE:e,SETVIEWCENTERX:c[0],SETVIEWCENTERY:c[1]};dc(d,b);return jg(lg([a],d))};function ls(a){var b=a.projection||xf("EPSG:3857"),c=new xr({maxZoom:t(a.maxZoom)?a.maxZoom:18});vr.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,projection:b,tileGrid:c,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:qr});this.e=c.c({extent:a.extent});t(a.tileUrlFunction)?this.$b(a.tileUrlFunction):t(a.urls)?this.$b(or(a.urls)):t(a.url)&&this.a(a.url)}G(ls,vr);ls.prototype.$b=function(a){ls.F.$b.call(this,rr(this.e,a))};ls.prototype.a=function(a){this.$b(or(sr(a)))};function ms(a){a=t(a)?a:{};ls.call(this,{attributions:t(a.attributions)?a.attributions:ns,crossOrigin:t(a.crossOrigin)?a.crossOrigin:"anonymous",opaque:!0,maxZoom:a.maxZoom,tileLoadFunction:a.tileLoadFunction,url:t(a.url)?a.url:"//{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}G(ms,ls);
var os=new fb({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'}),ps=new fb({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'}),ns=[ps,os];function qs(a){a=t(a)?a:{};var b=rs[a.layer];ls.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:"//otile{1-4}.mqcdn.com/tiles/1.0.0/"+a.layer+"/{z}/{x}/{y}.jpg"})}G(qs,ls);
var ss=new fb({html:'Tiles Courtesy of \x3ca href\x3d"http://www.mapquest.com/" target\x3d"_blank"\x3eMapQuest\x3c/a\x3e'}),rs={osm:{maxZoom:28,attributions:[ss,os]},sat:{maxZoom:18,attributions:[ss,new fb({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})]},hyb:{maxZoom:18,attributions:[ss,os]}};function ts(){}G(ts,bo);function us(a,b){var c=a.getAttribute("k"),d=a.getAttribute("v");b[b.length-1].ac[c]=d}
var vs=[null],ws=Y(vs,{nd:function(a,b){b[b.length-1].tb.push(a.getAttribute("ref"))},tag:us},void 0),ys=Y(vs,{node:function(a,b){var c=b[b.length-1],d=a.getAttribute("id"),e=[parseFloat(a.getAttribute("lon")),parseFloat(a.getAttribute("lat"))];c.je[d]=e;var f=$n({ac:{}},xs,a,b);Zb(f.ac)||(e=new Yi(e),e=new R(e),e.b(d),e.Y(f.ac),c.features.push(e))},way:function(a,b){for(var c=a.getAttribute("id"),d=$n({tb:[],ac:{}},ws,a,b),e=b[b.length-1],f=[],g=0,h=d.tb.length;g<h;g++)Sa(f,I(e.je,d.tb[g]));d.tb[0]==
d.tb[d.tb.length-1]?(g=new Zi(null),$i(g,"XY",f,[f.length])):(g=new dl(null),el(g,"XY",f));f=new R(g);f.b(c);f.Y(d.ac);e.features.push(f)}},void 0),xs=Y(vs,{tag:us},void 0);ts.prototype.Yb=function(a){return"osm"==a.localName&&(a=$n({je:{},features:[]},ys,a,[]),t(a.features))?a.features:[]};ts.prototype.Dc=function(){return xf("EPSG:4326")};ts.prototype.pd=function(){return xf("EPSG:4326")};function zs(a){a=t(a)?a:{};Wr.call(this,{attributions:a.attributions,doc:a.doc,extent:a.extent,format:new ts,logo:a.logo,node:a.node,projection:a.projection,reprojectTo:a.reprojectTo,text:a.text,url:a.url})}G(zs,Wr);var As={terrain:{ma:"jpg",opaque:!0},"terrain-background":{ma:"jpg",opaque:!0},"terrain-labels":{ma:"png",opaque:!1},"terrain-lines":{ma:"png",opaque:!1},"toner-background":{ma:"png",opaque:!0},toner:{ma:"png",opaque:!0},"toner-hybrid":{ma:"png",opaque:!1},"toner-labels":{ma:"png",opaque:!1},"toner-lines":{ma:"png",opaque:!1},"toner-lite":{ma:"png",opaque:!0},watercolor:{ma:"jpg",opaque:!0}},Bs={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}};
function Cs(a){var b=a.layer.indexOf("-"),b=-1==b?a.layer:a.layer.slice(0,b),c=As[a.layer];ls.call(this,{attributions:Ds,crossOrigin:"anonymous",maxZoom:Bs[b].maxZoom,opaque:c.opaque,tileLoadFunction:a.tileLoadFunction,url:t(a.url)?a.url:"//{a-d}.tile.stamen.com/"+a.layer+"/{z}/{x}/{y}."+c.ma})}G(Cs,ls);var Ds=[new fb({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.'}),os];function Es(a,b){Af.call(this,a,2);this.f=a;this.e=b.na(a.a);this.c={}}G(Es,Af);Es.prototype.b=function(a){a=t(a)?A(a):-1;if(a in this.c)return this.c[a];var b=this.e,c=oc("CANVAS");c.width=b;c.height=b;var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b+0.5,b+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.f.toString(),b/2,b/2);return this.c[a]=c};
function Fs(a){Jj.call(this,{extent:a.extent,opaque:!1,projection:a.projection,tileGrid:a.tileGrid});this.a=new tr}G(Fs,Jj);Fs.prototype.kd=function(){return this.a.wa()>this.a.d};Fs.prototype.oe=function(a){ur(this.a,a)};Fs.prototype.nb=function(a,b,c){var d=this.La(a,b,c);if(Dm(this.a,d))return Gm(this.a,d);a=new Es(new $a(a,b,c),this.tileGrid);Hm(this.a,d,a);return a};var Gs=[];C("grid",function(a){Gs.push(a)});function Hs(a){vr.call(this,{crossOrigin:a.crossOrigin,projection:xf("EPSG:3857"),state:0,tileLoadFunction:a.tileLoadFunction});this.a=br(a.url,{Kd:!0});mq(this.a,this.e,null,this)}G(Hs,vr);
Hs.prototype.e=function(){var a=Gs.pop(),b=xf("EPSG:4326"),c;if(t(a.bounds)){var d=ff(b,this.l);this.O=c=Ze(a.bounds,d)}var e=a.minzoom||0,d=a.maxzoom||22,f=new xr({maxZoom:d,minZoom:e});this.tileGrid=f;this.tileUrlFunction=rr(f.c({extent:c}),or(a.tiles));if(t(a.attribution)){b=t(c)?c:b.p();c={};for(var g;e<=d;++e)g=e.toString(),c[g]=[Fj(f,b,e)];this.d=[new fb({html:a.attribution,tileRanges:c})]}Lf(this,1)};function Is(a){a=t(a)?a:{};var b=t(a.params)?a.params:{};vr.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,opaque:!I(b,"TRANSPARENT",!0),projection:a.projection,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:B(this.Vh,this)});var c=a.urls;!t(c)&&t(a.url)&&(c=sr(a.url));this.B=c;this.g=t(a.gutter)?a.gutter:0;this.a=b;this.h=NaN;this.e=!0;this.i=a.serverType;this.o=t(a.hidpi)?a.hidpi:!0;this.n="";Js(this);this.r=De();Ks(this)}
G(Is,vr);l=Is.prototype;
l.Xg=function(a,b,c,d){var e=this.h;if(!isNaN(this.h)){var f=this.tileGrid;null===f&&(f=Kj(this,c));b=Hj(f,a[0],a[1],b,!1,void 0);if(!(f.Ya().length<=b.a)){var g=f.a[b.a],h=Ej(f,b,this.r),f=f.na(b.a),m=this.g;0!==m&&(f+=2*m,h=Ge(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:I(this.a,"LAYERS")};dc(m,this.a,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 Ls(this,
b,f,h,e,c,m)}}};l.qc=k("g");l.La=function(a,b,c){return this.n+Is.F.La.call(this,a,b,c)};l.Yg=k("a");
function Ls(a,b,c,d,e,f,g){var h=a.B;if(t(h)&&0!=h.length){g.WIDTH=c;g.HEIGHT=c;g[a.e?"CRS":"SRS"]=f.a;"STYLES"in a.a||(g.STYLES=new String(""));if(1!=e)switch(a.i){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 jg(lg([1==h.length?h[0]:h[Rb((b.x<<b.a)+b.y,a.B.length)]],g))}}
l.Rb=function(a,b,c){a=Is.F.Rb.call(this,a,b,c);return 1!=b&&this.o&&t(this.i)?a*b+0.5|0:a};function Js(a){var b=0,c=[],d;for(d in a.a)c[b++]=d+"-"+a.a[d];a.n=c.join("/")}
l.Vh=function(a,b,c){var d=this.tileGrid;null===d&&(d=Kj(this,c));if(!(d.Ya().length<=a.a)){1==b||this.o&&t(this.i)||(b=1);var e=d.a[a.a],f=Ej(d,a,this.r),d=d.na(a.a),g=this.g;0!==g&&(d+=2*g,f=Ge(f,e*g,f));e=this.p();if(null===e||Ue(f,e)&&!Ye(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},dc(e,this.a),this.h=b,Ls(this,a,d,f,b,c,e)}};l.Zg=function(a){dc(this.a,a);Js(this);Ks(this);this.u()};
function Ks(a){a.e=0<=Ha(I(a.a,"VERSION","1.3.0"),"1.3")};function Ms(a){a=t(a)?a:{};Wr.call(this,{attributions:a.attributions,extent:a.extent,format:new aq({defaultProjection:a.defaultProjection}),logo:a.logo,object:a.object,projection:a.projection,text:a.text,url:a.url})}G(Ms,Wr);function Ns(a){this.c=a.matrixIds;Cj.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}G(Ns,Cj);Ns.prototype.g=k("c");
function Os(a){var b=[],c=[],d=[],e=[],f=xf(a.supportedCRS).c();Va(a.matrixIds,function(a,b){return b.scaleDenominator-a.scaleDenominator});Ka(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 Ns({origins:d,resolutions:b,matrixIds:c,tileSizes:e})};var Ps="KVP";
function Qs(a){function b(a){a=e==Ps?jg(lg([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.c[b.a],TileCol:b.x,TileRow:b.y};dc(c,this.a);b=a;return b=e==Ps?jg(lg([b],c)):b.replace(/\{(\w+?)\}/g,function(a,b){return c[b]})}}}var c=t(a.version)?a.version:"1.0.0",d=t(a.format)?a.format:"image/jpeg";this.a=a.dimensions||{};this.e="";Rs(this);var e=t(a.requestEncoding)?a.requestEncoding:Ps,f=a.tileGrid,g={Layer:a.layer,style:a.style,
Style:a.style,TileMatrixSet:a.matrixSet};e==Ps&&dc(g,{Service:"WMTS",Request:"GetTile",Version:c,Format:d});c=qr;d=a.urls;!t(d)&&t(a.url)&&(d=sr(a.url));t(d)&&(c=pr(La(d,b)));var h=De(),m=new $a(0,0,0),c=rr(function(b,c){var d=this.tileGrid;if(d.Ya().length<=b.a)return null;var e=b.x,f=-b.y-1,g=Ej(d,b),w=c.p(),v=t(a.extent)?a.extent:w;null!==v&&(c.i&&v[0]===w[0]&&v[2]===w[2])&&(g=Math.ceil((v[2]-v[0])/(g[2]-g[0])),e=Rb(e,g),m.a=b.a,m.x=e,m.y=b.y,g=Ej(d,m,h));return!Ue(g,v)||Ye(g,v)?null:new $a(b.a,
e,f)},c);vr.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,projection:a.projection,tileGrid:f,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:c})}G(Qs,vr);Qs.prototype.g=k("a");Qs.prototype.La=function(a,b,c){return this.e+Qs.F.La.call(this,a,b,c)};function Rs(a){var b=0,c=[],d;for(d in a.a)c[b++]=d+"-"+a.a[d];a.e=c.join("/")}Qs.prototype.h=function(a){dc(this.a,a);Rs(this);this.u()};function Ss(a){var b=t(a)?a:b;Cj.call(this,{origin:[0,0],resolutions:b.resolutions})}G(Ss,Cj);Ss.prototype.c=function(a){a=t(a)?a:{};var b=this.minZoom,c=this.maxZoom,d=new $a(0,0,0),e=null;if(t(a.extent)){var e=Array(c+1),f;for(f=0;f<=c;++f)e[f]=f<b?null:Fj(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:ab(f,p,-a-1,m)}};function Ts(a){a=t(a)?a:{};var b=a.size,c=b[0],d=b[1],e=[],f=256;switch(t(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 Ss({resolutions:f}),h=a.url,b=rr(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"});vr.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,Hc:Us,tileGrid:f,tileUrlFunction:b})}G(Ts,vr);function Us(a,b,c,d,e){Cf.call(this,a,b,c,d,e);this.g={}}G(Us,Cf);
Us.prototype.b=function(a){var b=t(a)?A(a).toString():"";if(b in this.g)return this.g[b];a=Us.F.b.call(this,a);if(2==this.state){if(256==a.width&&256==a.height)return this.g[b]=a;var c=oc("CANVAS");c.width=256;c.height=256;c.getContext("2d").drawImage(a,0,0);return this.g[b]=c}return a};function Vs(a){a=t(a)?a:{};this.a=a.font;this.b=a.rotation;this.d=a.scale;this.f=a.text;this.g=a.textAlign;this.h=a.textBaseline;this.c=t(a.fill)?a.fill:null;this.e=t(a.stroke)?a.stroke:null}l=Vs.prototype;l.jf=k("a");l.oh=k("c");l.ph=k("b");l.qh=k("d");l.rh=k("e");l.sh=k("f");l.Af=k("g");l.Bf=k("h");C("ol.Attribution",fb);C("ol.BrowserFeature",zc);zc.DEVICE_PIXEL_RATIO=zc.Bd;zc.HAS_CANVAS=zc.Dd;zc.HAS_DEVICE_ORIENTATION=zc.Ed;zc.HAS_GEOLOCATION=zc.Fd;zc.HAS_TOUCH=zc.Gd;zc.HAS_WEBGL=zc.Hd;C("ol.Collection",Q);Q.prototype.clear=Q.prototype.clear;Q.prototype.extend=Q.prototype.sg;Q.prototype.forEach=Q.prototype.forEach;Q.prototype.getArray=Q.prototype.tg;Q.prototype.getAt=Q.prototype.Td;Q.prototype.getLength=Q.prototype.Na;Q.prototype.insertAt=Q.prototype.uc;Q.prototype.pop=Q.prototype.pop;
Q.prototype.push=Q.prototype.push;Q.prototype.remove=Q.prototype.remove;Q.prototype.removeAt=Q.prototype.qd;Q.prototype.setAt=Q.prototype.Ae;C("ol.DeviceOrientation",Kd);C("ol.Feature",R);R.prototype.getGeometryName=R.prototype.lf;R.prototype.getId=R.prototype.mf;R.prototype.getStyle=R.prototype.zg;R.prototype.getStyleFunction=R.prototype.Ag;R.prototype.setGeometryName=R.prototype.k;R.prototype.setId=R.prototype.b;R.prototype.setStyle=R.prototype.i;C("ol.FeatureOverlay",se);
se.prototype.addFeature=se.prototype.ke;se.prototype.getFeatures=se.prototype.ug;se.prototype.getStyle=se.prototype.vg;se.prototype.getStyleFunction=se.prototype.wg;se.prototype.removeFeature=se.prototype.fd;se.prototype.setFeatures=se.prototype.Zb;se.prototype.setMap=se.prototype.setMap;se.prototype.setStyle=se.prototype.yg;C("ol.Geolocation",S);Cf.prototype.getImage=Cf.prototype.b;C("ol.Kinetic",Xf);C("ol.Map",V);V.prototype.addControl=V.prototype.Qe;V.prototype.addInteraction=V.prototype.Te;
V.prototype.addLayer=V.prototype.Ue;V.prototype.addOverlay=V.prototype.Ve;V.prototype.beforeRender=V.prototype.ka;V.prototype.forEachFeatureAtPixel=V.prototype.hd;V.prototype.getControls=V.prototype.ff;V.prototype.getCoordinateFromPixel=V.prototype.ea;V.prototype.getEventCoordinate=V.prototype.Ud;V.prototype.getEventPixel=V.prototype.pc;V.prototype.getInteractions=V.prototype.nf;V.prototype.getLayers=V.prototype.Oc;V.prototype.getOverlays=V.prototype.xf;V.prototype.getPixelFromCoordinate=V.prototype.f;
V.prototype.getViewport=V.prototype.Ef;V.prototype.removeControl=V.prototype.Ih;V.prototype.removeInteraction=V.prototype.Kh;V.prototype.removeLayer=V.prototype.Lh;V.prototype.removeOverlay=V.prototype.Mh;V.prototype.render=V.prototype.I;V.prototype.renderSync=V.prototype.Oh;V.prototype.updateSize=V.prototype.G;Ah.prototype.preventDefault=Ah.prototype.M;Ah.prototype.stopPropagation=Ah.prototype.Ea;C("ol.Object",P);P.prototype.bindTo=P.prototype.We;P.prototype.get=P.prototype.s;
P.prototype.getProperties=P.prototype.Qb;P.prototype.notify=P.prototype.ed;P.prototype.set=P.prototype.t;P.prototype.setValues=P.prototype.Y;P.prototype.unbind=P.prototype.td;P.prototype.unbindAll=P.prototype.Yh;C("ol.Observable",yd);yd.prototype.dispatchChangeEvent=yd.prototype.u;yd.prototype.on=yd.prototype.wh;yd.prototype.once=yd.prototype.Ch;yd.prototype.un=yd.prototype.Wh;yd.prototype.unByKey=yd.prototype.Xh;C("ol.Overlay",Pm);Af.prototype.getTileCoord=Af.prototype.i;$a.prototype.getZXY=$a.prototype.c;
C("ol.View2D",U);U.prototype.calculateExtent=U.prototype.r;U.prototype.constrainResolution=U.prototype.a;U.prototype.constrainRotation=U.prototype.constrainRotation;U.prototype.fitExtent=U.prototype.Sd;U.prototype.getView2D=U.prototype.N;U.prototype.getZoom=U.prototype.Gf;U.prototype.setZoom=U.prototype.G;
C("ol.animation.bounce",function(a){var b=a.resolution,c=t(a.start)?a.start:wa(),d=t(a.duration)?a.duration:1E3,e=t(a.easing)?a.easing:Tf;return function(a,g){if(g.time<c)return g.da=!0,g.P[0]+=1,!0;if(g.time<c+d){var h=e((g.time-c)/d),m=b-g.w.resolution;g.da=!0;g.w.resolution+=h*m;g.P[0]+=1;return!0}return!1}});C("ol.animation.pan",Uf);C("ol.animation.rotate",Vf);C("ol.animation.zoom",Wf);C("ol.color.asArray",function(a){return ia(a)?a:ee(a)});C("ol.color.asString",ce);
C("ol.control.Attribution",bi);bi.prototype.setMap=bi.prototype.setMap;C("ol.control.Control",ai);ai.prototype.getMap=ai.prototype.V;ai.prototype.setMap=ai.prototype.setMap;C("ol.control.FullScreen",Vm);C("ol.control.Logo",ci);ci.prototype.setMap=ci.prototype.setMap;C("ol.control.MousePosition",Wm);Wm.prototype.setMap=Wm.prototype.setMap;C("ol.control.ScaleLine",Ym);Ym.prototype.setMap=Ym.prototype.setMap;C("ol.control.Zoom",di);di.prototype.setMap=di.prototype.setMap;C("ol.control.ZoomSlider",nn);
C("ol.control.ZoomToExtent",rn);C("ol.control.defaults",ei);C("ol.coordinate.createStringXY",function(a){return function(b){return Be(b,a)}});C("ol.coordinate.format",xe);C("ol.coordinate.fromProjectedArray",function(a,b){var c=b.charAt(0);return"n"===c||"s"===c?[a[1],a[0]]:a});C("ol.coordinate.rotate",ze);C("ol.coordinate.toStringHDMS",function(a){return t(a)?we(a[1],"NS")+" "+we(a[0],"EW"):""});C("ol.coordinate.toStringXY",Be);C("ol.dom.Input",sn);
C("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});C("ol.easing.easeIn",function(a){return a*a*a});C("ol.easing.easeOut",Qf);C("ol.easing.elastic",function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1});C("ol.easing.inAndOut",Rf);C("ol.easing.linear",Sf);C("ol.easing.upAndDown",Tf);
C("ol.events.condition.altKeyOnly",function(a){a=a.a;return a.fa&&!a.wb&&!a.Da});C("ol.events.condition.altShiftKeysOnly",ki);C("ol.events.condition.always",pd);C("ol.events.condition.noModifierKeys",mi);C("ol.events.condition.platformModifierKeyOnly",function(a){a=a.a;return!a.fa&&a.wb&&!a.Da});C("ol.events.condition.shiftKeyOnly",ni);C("ol.events.condition.targetNotEditable",oi);C("ol.extent.boundingExtent",Ce);C("ol.extent.buffer",Ge);
C("ol.extent.containsCoordinate",function(a,b){return a[0]<=b[0]&&b[0]<=a[2]&&a[1]<=b[1]&&b[1]<=a[3]});C("ol.extent.containsExtent",Je);C("ol.extent.createEmpty",De);C("ol.extent.equals",Le);C("ol.extent.extend",Me);C("ol.extent.getBottomLeft",Oe);C("ol.extent.getBottomRight",function(a){return[a[2],a[1]]});C("ol.extent.getCenter",Pe);C("ol.extent.getHeight",Re);C("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]});C("ol.extent.getTopLeft",Se);
C("ol.extent.getTopRight",function(a){return[a[2],a[3]]});C("ol.extent.getWidth",Te);C("ol.extent.intersects",Ue);C("ol.extent.isEmpty",Ve);C("ol.extent.transform",Ze);C("ol.format.GPX",no);no.prototype.readFeature=no.prototype.yb;no.prototype.readFeatures=no.prototype.Fa;C("ol.format.GeoJSON",Vo);Vo.prototype.readFeature=Vo.prototype.yb;Vo.prototype.readFeatures=Vo.prototype.Fa;Vo.prototype.readGeometry=Vo.prototype.Cc;Vo.prototype.readProjection=Vo.prototype.Ga;Vo.prototype.writeFeature=Vo.prototype.yd;
Vo.prototype.writeFeatures=Vo.prototype.zd;Vo.prototype.writeGeometry=Vo.prototype.Ad;C("ol.format.IGC",dp);dp.prototype.readFeature=dp.prototype.yb;dp.prototype.readFeatures=dp.prototype.Fa;C("ol.format.KML",hp);hp.prototype.readFeature=hp.prototype.yb;hp.prototype.readFeatures=hp.prototype.Fa;hp.prototype.readGeometry=hp.prototype.Cc;hp.prototype.readName=hp.prototype.Fh;hp.prototype.readProjection=hp.prototype.Ga;C("ol.format.TopoJSON",aq);aq.prototype.readFeatures=aq.prototype.Fa;
aq.prototype.readProjection=aq.prototype.Ga;C("ol.geom.Circle",Yk);Yk.prototype.clone=Yk.prototype.J;Yk.prototype.getCenter=Yk.prototype.jd;Yk.prototype.getExtent=Yk.prototype.p;Yk.prototype.getRadius=Yk.prototype.ne;Yk.prototype.getSimplifiedGeometry=Yk.prototype.Za;Yk.prototype.getType=Yk.prototype.D;Yk.prototype.setCenter=Yk.prototype.Fg;Yk.prototype.setCenterAndRadius=Yk.prototype.Be;Yk.prototype.setRadius=Yk.prototype.Rh;Yk.prototype.transform=Yk.prototype.transform;C("ol.geom.Geometry",Ld);
Ld.prototype.getClosestPoint=Ld.prototype.r;Ld.prototype.getType=Ld.prototype.D;C("ol.geom.GeometryCollection",$k);$k.prototype.clone=$k.prototype.J;$k.prototype.getExtent=$k.prototype.p;$k.prototype.getGeometries=$k.prototype.kf;$k.prototype.getSimplifiedGeometry=$k.prototype.Za;$k.prototype.getType=$k.prototype.D;$k.prototype.setGeometries=$k.prototype.De;C("ol.geom.LineString",dl);dl.prototype.clone=dl.prototype.J;dl.prototype.getCoordinateAtM=dl.prototype.Gg;dl.prototype.getCoordinates=dl.prototype.v;
dl.prototype.getLength=dl.prototype.Hg;dl.prototype.getType=dl.prototype.D;dl.prototype.setCoordinates=dl.prototype.K;C("ol.geom.LinearRing",Xi);Xi.prototype.clone=Xi.prototype.J;Xi.prototype.getArea=Xi.prototype.Ig;Xi.prototype.getCoordinates=Xi.prototype.v;Xi.prototype.getType=Xi.prototype.D;Xi.prototype.setCoordinates=Xi.prototype.K;C("ol.geom.MultiLineString",fl);fl.prototype.clone=fl.prototype.J;fl.prototype.getCoordinateAtM=fl.prototype.Jg;fl.prototype.getCoordinates=fl.prototype.v;
fl.prototype.getLineStrings=fl.prototype.Vd;fl.prototype.getType=fl.prototype.D;fl.prototype.setCoordinates=fl.prototype.K;C("ol.geom.MultiPoint",il);il.prototype.clone=il.prototype.J;il.prototype.getCoordinates=il.prototype.v;il.prototype.getPoints=il.prototype.yf;il.prototype.getType=il.prototype.D;il.prototype.setCoordinates=il.prototype.K;C("ol.geom.MultiPolygon",jl);jl.prototype.clone=jl.prototype.J;jl.prototype.getArea=jl.prototype.Kg;jl.prototype.getCoordinates=jl.prototype.v;
jl.prototype.getInteriorPoints=jl.prototype.pf;jl.prototype.getPolygons=jl.prototype.zf;jl.prototype.getType=jl.prototype.D;jl.prototype.setCoordinates=jl.prototype.K;C("ol.geom.Point",Yi);Yi.prototype.clone=Yi.prototype.J;Yi.prototype.getCoordinates=Yi.prototype.v;Yi.prototype.getType=Yi.prototype.D;Yi.prototype.setCoordinates=Yi.prototype.K;C("ol.geom.Polygon",Zi);Zi.prototype.clone=Zi.prototype.J;Zi.prototype.getArea=Zi.prototype.Lg;Zi.prototype.getCoordinates=Zi.prototype.v;
Zi.prototype.getInteriorPoint=Zi.prototype.of;Zi.prototype.getLinearRings=Zi.prototype.uf;Zi.prototype.getType=Zi.prototype.D;Zi.prototype.setCoordinates=Zi.prototype.K;C("ol.geom.SimpleGeometry",Mi);Mi.prototype.getExtent=Mi.prototype.p;Mi.prototype.getFirstCoordinate=Mi.prototype.hf;Mi.prototype.getLastCoordinate=Mi.prototype.qf;Mi.prototype.getLayout=Mi.prototype.rf;Mi.prototype.getSimplifiedGeometry=Mi.prototype.Za;Mi.prototype.transform=Mi.prototype.transform;C("ol.inherits",G);
C("ol.interaction.DoubleClickZoom",ji);C("ol.interaction.DragAndDrop",tq);C("ol.interaction.DragBox",hj);hj.prototype.getGeometry=hj.prototype.L;C("ol.interaction.DragPan",ri);C("ol.interaction.DragRotate",si);C("ol.interaction.DragRotateAndZoom",xq);C("ol.interaction.DragZoom",ij);C("ol.interaction.Draw",zq);C("ol.interaction.KeyboardPan",jj);C("ol.interaction.KeyboardZoom",kj);C("ol.interaction.Modify",Iq);C("ol.interaction.MouseWheelZoom",lj);C("ol.interaction.Select",Lq);
Lq.prototype.getFeatures=Lq.prototype.f;Lq.prototype.setMap=Lq.prototype.setMap;C("ol.interaction.TouchPan",oj);C("ol.interaction.TouchRotate",pj);C("ol.interaction.TouchZoom",qj);C("ol.interaction.defaults",rj);C("ol.layer.Group",sj);C("ol.layer.Heatmap",Mq);C("ol.layer.Image",fk);C("ol.layer.Layer",Nf);Nf.prototype.getSource=Nf.prototype.Mg;C("ol.layer.Tile",gk);C("ol.layer.Vector",hk);hk.prototype.getStyle=hk.prototype.Sa;hk.prototype.getStyleFunction=hk.prototype.Ta;hk.prototype.setStyle=hk.prototype.g;
C("ol.parser.ogc.WMSCapabilities",ar);ar.prototype.read=ar.prototype.Xb;C("ol.proj.METERS_PER_UNIT",bf);C("ol.proj.Projection",df);df.prototype.getCode=df.prototype.h;df.prototype.getExtent=df.prototype.p;df.prototype.getUnits=df.prototype.l;C("ol.proj.addProjection",vf);C("ol.proj.common.add",yj);C("ol.proj.configureProj4jsProjection",function(a){return gf(a)});C("ol.proj.get",xf);C("ol.proj.getTransform",yf);C("ol.proj.getTransformFromProjections",ff);
C("ol.proj.transform",function(a,b,c){return yf(b,c)(a)});C("ol.proj.transformWithProjections",function(a,b,c){return ff(b,c)(a)});ik.prototype.drawAsync=ik.prototype.jc;ik.prototype.drawCircleGeometry=ik.prototype.Kb;ik.prototype.drawFeature=ik.prototype.Sc;ik.prototype.drawLineStringGeometry=ik.prototype.Lb;ik.prototype.drawMultiLineStringGeometry=ik.prototype.Mb;ik.prototype.drawMultiPointGeometry=ik.prototype.Nb;ik.prototype.drawPointGeometry=ik.prototype.Ob;ik.prototype.drawPolygonGeometry=ik.prototype.lb;
ik.prototype.setFillStrokeStyle=ik.prototype.sa;ik.prototype.setImageStyle=ik.prototype.zb;ik.prototype.setTextStyle=ik.prototype.ha;C("ol.source.BingMaps",yr);yr.TOS_ATTRIBUTION=zr;C("ol.source.GPX",Yr);C("ol.source.GeoJSON",Zr);C("ol.source.IGC",$r);C("ol.source.ImageCanvas",bs);C("ol.source.ImageStatic",cs);C("ol.source.ImageVector",ds);C("ol.source.ImageWMS",es);es.prototype.getGetFeatureInfoUrl=es.prototype.Tg;es.prototype.getParams=es.prototype.Ug;es.prototype.setUrl=es.prototype.Vg;
es.prototype.updateParams=es.prototype.Wg;C("ol.source.KML",hs);C("ol.source.MapGuide",ks);C("ol.source.MapQuest",qs);C("ol.source.OSM",ms);ms.DATA_ATTRIBUTION=os;ms.TILE_ATTRIBUTION=ps;C("ol.source.OSMXML",zs);Kf.prototype.getExtent=Kf.prototype.p;Kf.prototype.getState=Kf.prototype.V;C("ol.source.Stamen",Cs);C("ol.source.Tile",Jj);Jj.prototype.getTileGrid=Jj.prototype.Cf;C("ol.source.TileDebug",Fs);C("ol.source.TileJSON",Hs);C("ol.source.TileWMS",Is);Is.prototype.getGetFeatureInfoUrl=Is.prototype.Xg;
Is.prototype.getParams=Is.prototype.Yg;Is.prototype.updateParams=Is.prototype.Zg;C("ol.source.TopoJSON",Ms);C("ol.source.Vector",El);El.prototype.addFeature=El.prototype.pe;El.prototype.addFeatures=El.prototype.Se;El.prototype.forEachFeature=El.prototype.bf;El.prototype.forEachFeatureInExtent=El.prototype.nc;El.prototype.getClosestFeatureToCoordinate=El.prototype.ef;El.prototype.getExtent=El.prototype.p;El.prototype.getFeatures=El.prototype.$g;El.prototype.getFeaturesAtCoordinate=El.prototype.gf;
El.prototype.removeFeature=El.prototype.bh;C("ol.source.VectorFile",Wr);C("ol.source.WMTS",Qs);
C("ol.source.WMTS.optionsFromCapabilities",function(a,b){var c=Na(a.contents.layers,function(a){return a.identifier==b}),d=c.tileMatrixSetLinks[0].tileMatrixSet,e=c.formats[0],f=Oa(c.styles,function(a){return a.isDefault});0>f&&(f=0);var f=c.styles[f].identifier,g={};Ka(c.dimensions,function(a){var b=a.identifier,c=a["default"];t(c)||(c=a.values[0]);g[b]=c});var h=a.contents.tileMatrixSets[d],m=Os(h),h=xf(h.supportedCRS),n=a.operationsMetadata.GetTile.dcp.http.get,p,r;switch(Yb(n[0].constraints.GetEncoding.allowedValues)[0]){case "REST":case "RESTful":r=
"REST";p=c.resourceUrls.tile[e];break;case "KVP":r=Ps,p=[],Ka(n,function(a){a.constraints.GetEncoding.allowedValues.hasOwnProperty(Ps)&&p.push(a.url)})}return{urls:p,layer:b,matrixSet:d,format:e,projection:h,requestEncoding:r,tileGrid:m,style:f,dimensions:g}});Qs.prototype.getDimensions=Qs.prototype.g;Qs.prototype.updateDimensions=Qs.prototype.h;C("ol.source.XYZ",ls);ls.prototype.setUrl=ls.prototype.a;C("ol.source.Zoomify",Ts);C("ol.style.Circle",me);me.prototype.getAnchor=me.prototype.Pb;
me.prototype.getFill=me.prototype.dh;me.prototype.getImage=me.prototype.Vb;me.prototype.getRadius=me.prototype.eh;me.prototype.getSize=me.prototype.vb;me.prototype.getStroke=me.prototype.fh;C("ol.style.Fill",je);je.prototype.getColor=je.prototype.c;C("ol.style.Icon",Uj);Uj.prototype.getAnchor=Uj.prototype.Pb;Uj.prototype.getImage=Uj.prototype.Vb;Uj.prototype.getSize=Uj.prototype.vb;Uj.prototype.getSrc=Uj.prototype.gh;C("ol.style.Image",ke);ke.prototype.getRotation=ke.prototype.S;
ke.prototype.getScale=ke.prototype.o;C("ol.style.Stroke",le);le.prototype.getColor=le.prototype.hh;le.prototype.getLineCap=le.prototype.sf;le.prototype.getLineDash=le.prototype.ih;le.prototype.getLineJoin=le.prototype.tf;le.prototype.getMiterLimit=le.prototype.wf;le.prototype.getWidth=le.prototype.jh;C("ol.style.Style",ne);ne.prototype.getFill=ne.prototype.kh;ne.prototype.getImage=ne.prototype.lh;ne.prototype.getStroke=ne.prototype.mh;ne.prototype.getText=ne.prototype.nh;ne.prototype.getZIndex=ne.prototype.Ff;
C("ol.style.Text",Vs);Vs.prototype.getFill=Vs.prototype.oh;Vs.prototype.getFont=Vs.prototype.jf;Vs.prototype.getRotation=Vs.prototype.ph;Vs.prototype.getScale=Vs.prototype.qh;Vs.prototype.getStroke=Vs.prototype.rh;Vs.prototype.getText=Vs.prototype.sh;Vs.prototype.getTextAlign=Vs.prototype.Af;Vs.prototype.getTextBaseline=Vs.prototype.Bf;C("ol.tilegrid.TileGrid",Cj);Cj.prototype.getMinZoom=Cj.prototype.vf;Cj.prototype.getOrigin=Cj.prototype.Wb;Cj.prototype.getResolutions=Cj.prototype.Ya;
Cj.prototype.getTileSize=Cj.prototype.na;C("ol.tilegrid.WMTS",Ns);Ns.prototype.getMatrixIds=Ns.prototype.g;C("ol.tilegrid.XYZ",xr);C("ol.tilegrid.Zoomify",Ss);C("ol.webgl.Context",Im);Im.prototype.getGL=Im.prototype.th;Im.prototype.useProgram=Im.prototype.ld;})();