This commit is contained in:
Éric Lemoine
2013-03-15 10:38:51 +01:00
parent 9b734a3335
commit ef9db32dda
215 changed files with 12768 additions and 8296 deletions
+286 -240
View File
@@ -1,250 +1,296 @@
(function(){var h=void 0,j=!0,k=null,l=!1;function aa(){return function(a){return a}}function n(a){return function(){return this[a]}}var p,v=this;function ba(){}function ca(a){a.cb=function(){return a.zc?a.zc:a.zc=new a}}
function da(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 z(a){return a!==h}function ea(a){return"array"==da(a)}function fa(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ga(a){return"string"==typeof a}function ha(a){return"function"==da(a)}function ia(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function A(a){return a[ja]||(a[ja]=++ka)}var ja="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ka=0;
function la(a,b,c){return a.call.apply(a.bind,arguments)}function ma(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 na(a,b,c){na=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?la:ma;return na.apply(k,arguments)}
function oa(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 qa=Date.now||function(){return+new Date};function C(a,b){var c=a.split("."),d=v;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&z(b)?d[e]=b:d=d[e]?d[e]:d[e]={}}function D(a,b){function c(){}c.prototype=b.prototype;a.w=b.prototype;a.prototype=new c};function ra(a){Error.captureStackTrace?Error.captureStackTrace(this,ra):this.stack=Error().stack||"";a&&(this.message=String(a))}D(ra,Error);ra.prototype.name="CustomError";function sa(a){if(!ta.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ua,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(va,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(wa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(za,"&quot;"));return a}var ua=/&/g,va=/</g,wa=/>/g,za=/\"/g,ta=/[&<>\"]/;var Aa=Array.prototype,Ba=Aa.indexOf?function(a,b,c){return Aa.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(ga(a))return!ga(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},F=Aa.forEach?function(a,b,c){Aa.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ga(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Ca=Aa.map?function(a,b,c){return Aa.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=
ga(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Da=Aa.some?function(a,b,c){return Aa.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ga(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return j;return l};function Ea(a,b,c){for(var d=a.length,e=ga(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 Fa(a){if(!ea(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}
function Ga(a,b){var c=Ba(a,b),d;(d=0<=c)&&Aa.splice.call(a,c,1);return d}function Ha(a){return Aa.concat.apply(Aa,arguments)}function Ia(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 Ja(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(ea(d)||(e=fa(d))&&d.hasOwnProperty("callee"))a.push.apply(a,d);else if(e)for(var f=a.length,g=d.length,i=0;i<g;i++)a[f+i]=d[i];else a.push(d)}}function Ka(a,b,c,d){Aa.splice.apply(a,La(arguments,1))}
function La(a,b,c){return 2>=arguments.length?Aa.slice.call(a,b):Aa.slice.call(a,b,c)}function Ma(a){Aa.sort.call(a,Na)}function Na(a,b){return a>b?1:a<b?-1:0};function Oa(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Pa(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Qa(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Ra(a){for(var b in a)return l;return j}function Ua(a){var b={},c;for(c in a)b[c]=a[c];return b}var Va="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function Wa(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<Va.length;f++)c=Va[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function Xa(a){if("function"==typeof a.O)return a.O();if(ga(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Pa(a)};function Ya(a,b){this.b={};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)Za(this,arguments[d],arguments[d+1])}else if(a){a instanceof Ya?(c=a.Z(),d=a.O()):(c=Qa(a),d=Pa(a));for(var e=0;e<c.length;e++)Za(this,c[e],d[e])}}p=Ya.prototype;p.o=0;p.dc=0;p.ca=n("o");p.O=function(){$a(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};p.Z=function(){$a(this);return this.a.concat()};p.Pa=function(){return 0==this.o};
p.clear=function(){this.b={};this.dc=this.o=this.a.length=0};p.remove=function(a){return ab(this.b,a)?(delete this.b[a],this.o--,this.dc++,this.a.length>2*this.o&&$a(this),j):l};function $a(a){if(a.o!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];ab(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.o!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],ab(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function bb(a,b){return ab(a.b,b)?a.b[b]:h}
function Za(a,b,c){ab(a.b,b)||(a.o++,a.a.push(b),a.dc++);a.b[b]=c}p.T=function(){return new Ya(this)};function ab(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var cb,db,eb,fb,gb,hb,ib;function jb(){return v.navigator?v.navigator.userAgent:k}function kb(){return v.navigator}fb=eb=db=cb=l;var lb;if(lb=jb()){var mb=kb();cb=0==lb.indexOf("Opera");db=!cb&&-1!=lb.indexOf("MSIE");eb=!cb&&-1!=lb.indexOf("WebKit");fb=!cb&&!eb&&"Gecko"==mb.product}var nb=cb,G=db,ob=fb,pb=eb,qb,rb=kb();qb=rb&&rb.platform||"";gb=-1!=qb.indexOf("Mac");hb=-1!=qb.indexOf("Win");ib=-1!=qb.indexOf("Linux");var sb=!!kb()&&-1!=(kb().appVersion||"").indexOf("X11"),tb;
a:{var ub="",vb;if(nb&&v.opera)var wb=v.opera.version,ub="function"==typeof wb?wb():wb;else if(ob?vb=/rv\:([^\);]+)(\)|;)/:G?vb=/MSIE\s+([^\);]+)(\)|;)/:pb&&(vb=/WebKit\/(\S+)/),vb)var xb=vb.exec(jb()),ub=xb?xb[1]:"";if(G){var yb,zb=v.document;yb=zb?zb.documentMode:h;if(yb>parseFloat(ub)){tb=String(yb);break a}}tb=ub}var Ab={};
function Bb(a){var b;if(!(b=Ab[a])){b=0;for(var c=String(tb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",i=d[f]||"",m=RegExp("(\\d*)(\\D*)","g"),q=RegExp("(\\d*)(\\D*)","g");do{var t=m.exec(g)||["","",""],r=q.exec(i)||["","",""];if(0==t[0].length&&0==r[0].length)break;b=((0==t[1].length?0:parseInt(t[1],10))<(0==r[1].length?0:parseInt(r[1],10))?-1:(0==t[1].length?0:parseInt(t[1],
10))>(0==r[1].length?0:parseInt(r[1],10))?1:0)||((0==t[2].length)<(0==r[2].length)?-1:(0==t[2].length)>(0==r[2].length)?1:0)||(t[2]<r[2]?-1:t[2]>r[2]?1:0)}while(0==b)}b=Ab[a]=0<=b}return b}var Cb={};function Db(a){return Cb[a]||(Cb[a]=G&&!!document.documentMode&&document.documentMode>=a)};var Eb,Fb=!G||Db(9);!ob&&!G||G&&Db(9)||ob&&Bb("1.9.1");G&&Bb("9");function Gb(a,b){var c;c=a.className;c=ga(c)&&c.match(/\S+/g)||[];for(var d=La(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=Ba(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};function Hb(a,b,c){return Math.min(Math.max(a,b),c)}function Ib(a,b){var c=a%b;return 0>c*b?c+b:c};function Jb(a,b){this.x=z(a)?a:0;this.y=z(b)?b:0}Jb.prototype.T=function(){return new Jb(this.x,this.y)};function Kb(a,b){this.width=a;this.height=b}p=Kb.prototype;p.T=function(){return new Kb(this.width,this.height)};p.Pa=function(){return!(this.width*this.height)};p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};p.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Lb(a){return a?new Mb(Nb(a)):Eb||(Eb=new Mb)}function Ob(a,b){Oa(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Pb?a.setAttribute(Pb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Pb={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 Qb(a){a=a.document.documentElement;return new Kb(a.clientWidth,a.clientHeight)}function Rb(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Fb&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',sa(g.name),'"');if(g.type){f.push(' type="',sa(g.type),'"');var i={};Wa(i,g);delete i.type;g=i}f.push(">");f=f.join("")}f=e.createElement(f);g&&(ga(g)?f.className=g:ea(g)?Gb.apply(k,[f].concat(g)):Ob(f,g));2<d.length&&Sb(e,f,d,2);return f}
function Sb(a,b,c,d){function e(c){c&&b.appendChild(ga(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];if(fa(f)&&!(ia(f)&&0<f.nodeType)){var g=F,i;a:{if((i=f)&&"number"==typeof i.length){if(ia(i)){i="function"==typeof i.item||"string"==typeof i.item;break a}if(ha(i)){i="function"==typeof i.item;break a}}i=l}g(i?Ia(f):f,e)}else e(f)}}function Tb(a){return document.createElement(a)}function Ub(a,b){Sb(Nb(a),a,arguments,1)}function Vb(a){for(var b;b=a.firstChild;)a.removeChild(b)}
function Wb(a,b){a.insertBefore(b,a.childNodes[0]||k)}function Xb(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Nb(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Mb(a){this.a=a||v.document||document}Mb.prototype.createElement=function(a){return this.a.createElement(a)};Mb.prototype.createTextNode=function(a){return this.a.createTextNode(a)};
function Yb(a){var b=a.a,a=!pb?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new Jb(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Mb.prototype.appendChild=function(a,b){a.appendChild(b)};Mb.prototype.contains=function(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};var Zb=!G||Db(9),$b=!G||Db(9),ac=G&&!Bb("9");!pb||Bb("528");ob&&Bb("1.9b")||G&&Bb("8")||nb&&Bb("9.5")||pb&&Bb("528");ob&&!Bb("8")||G&&Bb("9");function bc(){0!=cc&&(this.Qe=Error().stack,dc[A(this)]=this)}var cc=0,dc={};bc.prototype.Jc=l;bc.prototype.Jb=function(){if(!this.Jc&&(this.Jc=j,this.s(),0!=cc)){var a=A(this);delete dc[a]}};function ec(a,b){a.Qa||(a.Qa=[]);a.Qa.push(b)}bc.prototype.s=function(){this.Qa&&fc.apply(k,this.Qa);if(this.Sc)for(;this.Sc.length;)this.Sc.shift()()};function gc(a){a&&"function"==typeof a.Jb&&a.Jb()}function fc(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];fa(d)?fc.apply(k,d):gc(d)}};function hc(a,b){this.type=a;this.c=this.target=b}p=hc.prototype;p.Jb=function(){};p.sa=l;p.jb=l;p.Ab=j;p.Nb=function(){this.sa=j};p.D=function(){this.jb=j;this.Ab=l};function ic(a){a.Nb()};function jc(a){jc[" "](a);return a}jc[" "]=ba;function kc(a,b){a&&lc(this,a,b)}D(kc,hc);var mc=[1,4,2];p=kc.prototype;p.target=k;p.yd=k;p.wd=0;p.xd=0;p.clientX=0;p.clientY=0;p.zd=0;p.Ad=0;p.ud=0;p.za=0;p.hb=0;p.ib=l;p.fa=l;p.qa=l;p.vd=l;p.xb=l;p.L=k;
function lc(a,b,c){var d=a.type=b.type;hc.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(ob){var e;a:{try{jc(c.nodeName);e=j;break a}catch(f){}e=l}e||(c=k)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.yd=c;a.wd=pb||b.offsetX!==h?b.offsetX:b.layerX;a.xd=pb||b.offsetY!==h?b.offsetY:b.layerY;a.clientX=b.clientX!==h?b.clientX:b.pageX;a.clientY=b.clientY!==h?b.clientY:b.pageY;a.zd=b.screenX||0;a.Ad=b.screenY||0;a.ud=b.button;a.za=b.keyCode||0;a.hb=b.charCode||
("keypress"==d?b.keyCode:0);a.ib=b.ctrlKey;a.fa=b.altKey;a.qa=b.shiftKey;a.vd=b.metaKey;a.xb=gb?b.metaKey:b.ctrlKey;a.a=b.state;a.L=b;b.defaultPrevented&&a.D();delete a.sa}function nc(a){return(Zb?0==a.L.button:"click"==a.type?j:!!(a.L.button&mc[0]))&&!(pb&&gb&&a.ib)}p.Nb=function(){kc.w.Nb.call(this);this.L.stopPropagation?this.L.stopPropagation():this.L.cancelBubble=j};
p.D=function(){kc.w.D.call(this);var a=this.L;if(a.preventDefault)a.preventDefault();else if(a.returnValue=l,ac)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};p.pd=n("L");function oc(){}var pc=0;oc.prototype.key=0;oc.prototype.Ea=l;oc.prototype.a=l;oc.prototype.handleEvent=function(a){return this.b?this.Ra.call(this.Ub||this.src,a):this.Ra.handleEvent.call(this.Ra,a)};var qc={},rc={},sc={},tc={};
function H(a,b,c,d,e){if(b){if(ea(b)){for(var f=0;f<b.length;f++)H(a,b[f],c,d,e);return k}var d=!!d,g=rc;b in g||(g[b]={o:0,R:0});g=g[b];d in g||(g[d]={o:0,R:0},g.o++);var g=g[d],i=A(a),m;g.R++;if(g[i]){m=g[i];for(f=0;f<m.length;f++)if(g=m[f],g.Ra==c&&g.Ub==e){if(g.Ea)break;return m[f].key}}else m=g[i]=[],g.o++;var q=uc,t=$b?function(a){return q.call(t.src,t.key,a)}:function(a){a=q.call(t.src,t.key,a);if(!a)return a},f=t;f.src=a;var r=g=new oc;if(ha(c))r.b=j;else if(c&&c.handleEvent&&ha(c.handleEvent))r.b=
l;else throw Error("Invalid listener argument");r.Ra=c;r.c=f;r.src=a;r.type=b;r.capture=!!d;r.Ub=e;r.a=l;r.key=++pc;r.Ea=l;c=g.key;f.key=c;m.push(g);qc[c]=g;sc[i]||(sc[i]=[]);sc[i].push(g);a.addEventListener?(a==v||!a.oc)&&a.addEventListener(b,f,d):a.attachEvent(b in tc?tc[b]:tc[b]="on"+b,f);return c}throw Error("Invalid event type");}function vc(a,b,c,d,e){if(ea(b)){for(var f=0;f<b.length;f++)vc(a,b[f],c,d,e);return k}a=H(a,b,c,d,e);qc[a].a=j;return a}
function wc(a,b,c,d,e){if(ea(b))for(var f=0;f<b.length;f++)wc(a,b[f],c,d,e);else{d=!!d;a:{f=rc;if(b in f&&(f=f[b],d in f&&(f=f[d],a=A(a),f[a]))){a=f[a];break a}a=k}if(a)for(f=0;f<a.length;f++)if(a[f].Ra==c&&a[f].capture==d&&a[f].Ub==e){J(a[f].key);break}}}
function J(a){if(!qc[a])return l;var b=qc[a];if(b.Ea)return l;var c=b.src,d=b.type,e=b.c,f=b.capture;c.removeEventListener?(c==v||!c.oc)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in tc?tc[d]:tc[d]="on"+d,e);c=A(c);sc[c]&&(e=sc[c],Ga(e,b),0==e.length&&delete sc[c]);b.Ea=j;if(b=rc[d][f][c])b.Dc=j,xc(d,f,c,b);delete qc[a];return j}
function xc(a,b,c,d){if(!d.tb&&d.Dc){for(var e=0,f=0;e<d.length;e++)d[e].Ea?d[e].c.src=k:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.Dc=l;0==f&&(delete rc[a][b][c],rc[a][b].o--,0==rc[a][b].o&&(delete rc[a][b],rc[a].o--),0==rc[a].o&&delete rc[a])}}function yc(a,b,c,d,e){var f=1,b=A(b);if(a[b]){a.R--;a=a[b];a.tb?a.tb++:a.tb=1;try{for(var g=a.length,i=0;i<g;i++){var m=a[i];m&&!m.Ea&&(f&=zc(m,e)!==l)}}finally{a.tb--,xc(c,d,b,a)}}return Boolean(f)}function zc(a,b){a.a&&J(a.key);return a.handleEvent(b)}
function K(a,b){var c=b.type||b,d=rc;if(!(c in d))return j;if(ga(b))b=new hc(b,a);else if(b instanceof hc)b.target=b.target||a;else{var e=b,b=new hc(c,a);Wa(b,e)}var e=1,f,d=d[c],c=j in d,g;if(c){f=[];for(g=a;g;g=g.Xb)f.push(g);g=d[j];g.R=g.o;for(var i=f.length-1;!b.sa&&0<=i&&g.R;i--)b.c=f[i],e&=yc(g,f[i],b.type,j,b)&&b.Ab!=l}if(l in d)if(g=d[l],g.R=g.o,c)for(i=0;!b.sa&&i<f.length&&g.R;i++)b.c=f[i],e&=yc(g,f[i],b.type,l,b)&&b.Ab!=l;else for(d=a;!b.sa&&d&&g.R;d=d.Xb)b.c=d,e&=yc(g,d,b.type,l,b)&&b.Ab!=
(function(){function aa(a){throw a;}var g=void 0,i=!0,k=null,l=!1;function ba(){return function(a){return a}}function n(a){return function(){return this[a]}}function ca(a){return function(){return a}}var p,r=this;function da(){}function fa(a){a.lb=function(){return a.Tc?a.Tc:a.Tc=new a}}
function ga(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 x(a){return a!==g}function ha(a){return"array"==ga(a)}function ia(a){var b=ga(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ja(a){return"string"==typeof a}function ka(a){return"function"==ga(a)}function la(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function z(a){return a[na]||(a[na]=++oa)}var na="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),oa=0;
function pa(a,b,c){return a.call.apply(a.bind,arguments)}function qa(a,b,c){a||aa(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 ra(a,b,c){ra=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?pa:qa;return ra.apply(k,arguments)}
function sa(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 ta=Date.now||function(){return+new Date};function C(a,b){var c=a.split("."),d=r;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&x(b)?d[e]=b:d=d[e]?d[e]:d[e]={}}function D(a,b){function c(){}c.prototype=b.prototype;a.z=b.prototype;a.prototype=new c};function ua(a){Error.captureStackTrace?Error.captureStackTrace(this,ua):this.stack=Error().stack||"";a&&(this.message=String(a))}D(ua,Error);ua.prototype.name="CustomError";function va(a){if(!xa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ya,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(za,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ba,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ca,"&quot;"));return a}var ya=/&/g,za=/</g,Ba=/>/g,Ca=/\"/g,xa=/[&<>\"]/;var Da=Array.prototype,Fa=Da.indexOf?function(a,b,c){return Da.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(ja(a))return!ja(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},F=Da.forEach?function(a,b,c){Da.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ja(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Ga=Da.map?function(a,b,c){return Da.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=
ja(a)?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));return e},Ha=Da.some?function(a,b,c){return Da.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ja(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return i;return l};function Ja(a,b,c){for(var d=a.length,e=ja(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 La(a){if(!ha(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}
function Ma(a,b){var c=Fa(a,b),d;(d=0<=c)&&Da.splice.call(a,c,1);return d}function Na(a){return Da.concat.apply(Da,arguments)}function Oa(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 Pa(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(ha(d)||(e=ia(d))&&d.hasOwnProperty("callee"))a.push.apply(a,d);else if(e)for(var f=a.length,h=d.length,j=0;j<h;j++)a[f+j]=d[j];else a.push(d)}}function Qa(a,b,c,d){Da.splice.apply(a,Ra(arguments,1))}
function Ra(a,b,c){return 2>=arguments.length?Da.slice.call(a,b):Da.slice.call(a,b,c)}function Sa(a){Da.sort.call(a,Ta)}function Ta(a,b){return a>b?1:a<b?-1:0};function Ua(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Va(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Wa(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Xa(a){for(var b in a)return l;return i}function Ya(a){var b={},c;for(c in a)b[c]=a[c];return b}var Za="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function $a(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<Za.length;f++)c=Za[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function ab(a){if("function"==typeof a.W)return a.W();if(ja(a))return a.split("");if(ia(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Va(a)};function bb(a,b){this.b={};this.a=[];var c=arguments.length;if(1<c){c%2&&aa(Error("Uneven number of arguments"));for(var d=0;d<c;d+=2)cb(this,arguments[d],arguments[d+1])}else if(a){a instanceof bb?(c=a.ba(),d=a.W()):(c=Wa(a),d=Va(a));for(var e=0;e<c.length;e++)cb(this,c[e],d[e])}}p=bb.prototype;p.o=0;p.qc=0;p.J=n("o");p.W=function(){db(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};p.ba=function(){db(this);return this.a.concat()};p.Wa=function(){return 0==this.o};
p.clear=function(){this.b={};this.qc=this.o=this.a.length=0};p.remove=function(a){return eb(this.b,a)?(delete this.b[a],this.o--,this.qc++,this.a.length>2*this.o&&db(this),i):l};function db(a){if(a.o!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];eb(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.o!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],eb(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function fb(a,b){return eb(a.b,b)?a.b[b]:g}
function cb(a,b,c){eb(a.b,b)||(a.o++,a.a.push(b),a.qc++);a.b[b]=c}p.V=function(){return new bb(this)};function eb(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var gb,hb,ib,jb,kb,lb,ob;function pb(){return r.navigator?r.navigator.userAgent:k}function qb(){return r.navigator}jb=ib=hb=gb=l;var rb;if(rb=pb()){var sb=qb();gb=0==rb.indexOf("Opera");hb=!gb&&-1!=rb.indexOf("MSIE");ib=!gb&&-1!=rb.indexOf("WebKit");jb=!gb&&!ib&&"Gecko"==sb.product}var tb=gb,G=hb,ub=jb,xb=ib,yb,zb=qb();yb=zb&&zb.platform||"";kb=-1!=yb.indexOf("Mac");lb=-1!=yb.indexOf("Win");ob=-1!=yb.indexOf("Linux");var Ab=!!qb()&&-1!=(qb().appVersion||"").indexOf("X11"),Bb;
a:{var Eb="",Fb;if(tb&&r.opera)var Gb=r.opera.version,Eb="function"==typeof Gb?Gb():Gb;else if(ub?Fb=/rv\:([^\);]+)(\)|;)/:G?Fb=/MSIE\s+([^\);]+)(\)|;)/:xb&&(Fb=/WebKit\/(\S+)/),Fb)var Hb=Fb.exec(pb()),Eb=Hb?Hb[1]:"";if(G){var Ib,Jb=r.document;Ib=Jb?Jb.documentMode:g;if(Ib>parseFloat(Eb)){Bb=String(Ib);break a}}Bb=Eb}var Kb={};
function Lb(a){var b;if(!(b=Kb[a])){b=0;for(var c=String(Bb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var h=c[f]||"",j=d[f]||"",m=RegExp("(\\d*)(\\D*)","g"),q=RegExp("(\\d*)(\\D*)","g");do{var v=m.exec(h)||["","",""],s=q.exec(j)||["","",""];if(0==v[0].length&&0==s[0].length)break;b=((0==v[1].length?0:parseInt(v[1],10))<(0==s[1].length?0:parseInt(s[1],10))?-1:(0==v[1].length?0:parseInt(v[1],
10))>(0==s[1].length?0:parseInt(s[1],10))?1:0)||((0==v[2].length)<(0==s[2].length)?-1:(0==v[2].length)>(0==s[2].length)?1:0)||(v[2]<s[2]?-1:v[2]>s[2]?1:0)}while(0==b)}b=Kb[a]=0<=b}return b}var Mb={};function Nb(a){return Mb[a]||(Mb[a]=G&&!!document.documentMode&&document.documentMode>=a)};var Ob,Pb=!G||Nb(9);!ub&&!G||G&&Nb(9)||ub&&Lb("1.9.1");G&&Lb("9");function Qb(a,b){var c;c=a.className;c=ja(c)&&c.match(/\S+/g)||[];for(var d=Ra(arguments,1),e=c.length+d.length,f=c,h=0;h<d.length;h++)0<=Fa(f,d[h])||f.push(d[h]);a.className=c.join(" ");return c.length==e};function Rb(a,b,c){return Math.min(Math.max(a,b),c)}function Sb(a,b){var c=a%b;return 0>c*b?c+b:c};function Tb(a,b){this.x=x(a)?a:0;this.y=x(b)?b:0}Tb.prototype.V=function(){return new Tb(this.x,this.y)};function Ub(a,b){this.width=a;this.height=b}p=Ub.prototype;p.V=function(){return new Ub(this.width,this.height)};p.Wa=function(){return!(this.width*this.height)};p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};p.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Vb(a){return a?new Zb($b(a)):Ob||(Ob=new Zb)}function ac(a,b){Ua(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in bc?a.setAttribute(bc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var bc={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 cc(a){a=a.document.documentElement;return new Ub(a.clientWidth,a.clientHeight)}function dc(a,b,c){var d=arguments,e=document,f=d[0],h=d[1];if(!Pb&&h&&(h.name||h.type)){f=["<",f];h.name&&f.push(' name="',va(h.name),'"');if(h.type){f.push(' type="',va(h.type),'"');var j={};$a(j,h);delete j.type;h=j}f.push(">");f=f.join("")}f=e.createElement(f);h&&(ja(h)?f.className=h:ha(h)?Qb.apply(k,[f].concat(h)):ac(f,h));2<d.length&&ec(e,f,d,2);return f}
function ec(a,b,c,d){function e(c){c&&b.appendChild(ja(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];if(ia(f)&&!(la(f)&&0<f.nodeType)){var h=F,j;a:{if((j=f)&&"number"==typeof j.length){if(la(j)){j="function"==typeof j.item||"string"==typeof j.item;break a}if(ka(j)){j="function"==typeof j.item;break a}}j=l}h(j?Oa(f):f,e)}else e(f)}}function fc(a){return document.createElement(a)}function gc(a,b){ec($b(a),a,arguments,1)}function hc(a){for(var b;b=a.firstChild;)a.removeChild(b)}
function ic(a,b){a.insertBefore(b,a.childNodes[0]||k)}function jc(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function kc(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function $b(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Zb(a){this.a=a||r.document||document}Zb.prototype.createElement=function(a){return this.a.createElement(a)};Zb.prototype.createTextNode=function(a){return this.a.createTextNode(a)};function lc(){return i}
function mc(a){var b=a.a,a=!xb?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new Tb(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Zb.prototype.appendChild=function(a,b){a.appendChild(b)};Zb.prototype.contains=function(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};var qc=!G||Nb(9),rc=!G||Nb(9),sc=G&&!Lb("9");!xb||Lb("528");ub&&Lb("1.9b")||G&&Lb("8")||tb&&Lb("9.5")||xb&&Lb("528");ub&&!Lb("8")||G&&Lb("9");function tc(){0!=uc&&(this.sf=Error().stack,vc[z(this)]=this)}var uc=0,vc={};tc.prototype.hc=l;tc.prototype.Sb=function(){if(!this.hc&&(this.hc=i,this.r(),0!=uc)){var a=z(this);delete vc[a]}};function wc(a,b){a.vb||(a.vb=[]);a.vb.push(b)}tc.prototype.r=function(){this.vb&&xc.apply(k,this.vb);if(this.od)for(;this.od.length;)this.od.shift()()};function yc(a){a&&"function"==typeof a.Sb&&a.Sb()}function xc(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ia(d)?xc.apply(k,d):yc(d)}};function zc(a,b){this.type=a;this.b=this.target=b}p=zc.prototype;p.Sb=function(){};p.Ga=l;p.rb=l;p.Jb=i;p.Zb=function(){this.Ga=i};p.A=function(){this.rb=i;this.Jb=l};function Ac(a){a.Zb()}function Bc(a){a.A()};function Cc(a){Cc[" "](a);return a}Cc[" "]=da;function Dc(a,b){a&&Ec(this,a,b)}D(Dc,zc);var Fc=[1,4,2];p=Dc.prototype;p.target=k;p.Td=k;p.Rd=0;p.Sd=0;p.clientX=0;p.clientY=0;p.Xb=0;p.Yb=0;p.Pd=0;p.Ia=0;p.pb=0;p.qb=l;p.na=l;p.Ca=l;p.Qd=l;p.Gb=l;p.L=k;
function Ec(a,b,c){var d=a.type=b.type;zc.call(a,d);a.target=b.target||b.srcElement;a.b=c;if(c=b.relatedTarget){if(ub){var e;a:{try{Cc(c.nodeName);e=i;break a}catch(f){}e=l}e||(c=k)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.Td=c;a.Rd=xb||b.offsetX!==g?b.offsetX:b.layerX;a.Sd=xb||b.offsetY!==g?b.offsetY:b.layerY;a.clientX=b.clientX!==g?b.clientX:b.pageX;a.clientY=b.clientY!==g?b.clientY:b.pageY;a.Xb=b.screenX||0;a.Yb=b.screenY||0;a.Pd=b.button;a.Ia=b.keyCode||0;a.pb=b.charCode||
("keypress"==d?b.keyCode:0);a.qb=b.ctrlKey;a.na=b.altKey;a.Ca=b.shiftKey;a.Qd=b.metaKey;a.Gb=kb?b.metaKey:b.ctrlKey;a.a=b.state;a.L=b;b.defaultPrevented&&a.A();delete a.Ga}function Gc(a){return(qc?0==a.L.button:"click"==a.type?i:!!(a.L.button&Fc[0]))&&!(xb&&kb&&a.qb)}p.Zb=function(){Dc.z.Zb.call(this);this.L.stopPropagation?this.L.stopPropagation():this.L.cancelBubble=i};
p.A=function(){Dc.z.A.call(this);var a=this.L;if(a.preventDefault)a.preventDefault();else if(a.returnValue=l,sc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};p.Kd=n("L");function Hc(){}var Ic=0;Hc.prototype.key=0;Hc.prototype.La=l;Hc.prototype.a=l;Hc.prototype.handleEvent=function(a){return this.b?this.Xa.call(this.fc||this.src,a):this.Xa.handleEvent.call(this.Xa,a)};var Jc={},Kc={},Lc={},Mc={};
function I(a,b,c,d,e){if(b){if(ha(b)){for(var f=0;f<b.length;f++)I(a,b[f],c,d,e);return k}var d=!!d,h=Kc;b in h||(h[b]={o:0,Y:0});h=h[b];d in h||(h[d]={o:0,Y:0},h.o++);var h=h[d],j=z(a),m;h.Y++;if(h[j]){m=h[j];for(f=0;f<m.length;f++)if(h=m[f],h.Xa==c&&h.fc==e){if(h.La)break;return m[f].key}}else m=h[j]=[],h.o++;var q=Nc,v=rc?function(a){return q.call(v.src,v.key,a)}:function(a){a=q.call(v.src,v.key,a);if(!a)return a},f=v;f.src=a;var s=h=new Hc;ka(c)?s.b=i:c&&c.handleEvent&&ka(c.handleEvent)?s.b=l:
aa(Error("Invalid listener argument"));s.Xa=c;s.c=f;s.src=a;s.type=b;s.capture=!!d;s.fc=e;s.a=l;s.key=++Ic;s.La=l;c=h.key;f.key=c;m.push(h);Jc[c]=h;Lc[j]||(Lc[j]=[]);Lc[j].push(h);a.addEventListener?(a==r||!a.Bc)&&a.addEventListener(b,f,d):a.attachEvent(b in Mc?Mc[b]:Mc[b]="on"+b,f);return c}aa(Error("Invalid event type"))}function Oc(a,b,c,d,e){if(ha(b)){for(var f=0;f<b.length;f++)Oc(a,b[f],c,d,e);return k}a=I(a,b,c,d,e);Jc[a].a=i;return a}
function Uc(a,b,c,d,e){if(ha(b))for(var f=0;f<b.length;f++)Uc(a,b[f],c,d,e);else{d=!!d;a:{f=Kc;if(b in f&&(f=f[b],d in f&&(f=f[d],a=z(a),f[a]))){a=f[a];break a}a=k}if(a)for(f=0;f<a.length;f++)if(a[f].Xa==c&&a[f].capture==d&&a[f].fc==e){J(a[f].key);break}}}
function J(a){if(!Jc[a])return l;var b=Jc[a];if(b.La)return l;var c=b.src,d=b.type,e=b.c,f=b.capture;c.removeEventListener?(c==r||!c.Bc)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in Mc?Mc[d]:Mc[d]="on"+d,e);c=z(c);Lc[c]&&(e=Lc[c],Ma(e,b),0==e.length&&delete Lc[c]);b.La=i;if(b=Kc[d][f][c])b.Xc=i,Vc(d,f,c,b);delete Jc[a];return i}
function Vc(a,b,c,d){if(!d.Cb&&d.Xc){for(var e=0,f=0;e<d.length;e++)d[e].La?d[e].c.src=k:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.Xc=l;0==f&&(delete Kc[a][b][c],Kc[a][b].o--,0==Kc[a][b].o&&(delete Kc[a][b],Kc[a].o--),0==Kc[a].o&&delete Kc[a])}}function Wc(a,b,c,d,e){var f=1,b=z(b);if(a[b]){a.Y--;a=a[b];a.Cb?a.Cb++:a.Cb=1;try{for(var h=a.length,j=0;j<h;j++){var m=a[j];m&&!m.La&&(f&=Xc(m,e)!==l)}}finally{a.Cb--,Vc(c,d,b,a)}}return Boolean(f)}function Xc(a,b){a.a&&J(a.key);return a.handleEvent(b)}
function K(a,b){var c=b.type||b,d=Kc;if(!(c in d))return i;if(ja(b))b=new zc(b,a);else if(b instanceof zc)b.target=b.target||a;else{var e=b,b=new zc(c,a);$a(b,e)}var e=1,f,d=d[c],c=i in d,h;if(c){f=[];for(h=a;h;h=h.ic)f.push(h);h=d[i];h.Y=h.o;for(var j=f.length-1;!b.Ga&&0<=j&&h.Y;j--)b.b=f[j],e&=Wc(h,f[j],b.type,i,b)&&b.Jb!=l}if(l in d)if(h=d[l],h.Y=h.o,c)for(j=0;!b.Ga&&j<f.length&&h.Y;j++)b.b=f[j],e&=Wc(h,f[j],b.type,l,b)&&b.Jb!=l;else for(d=a;!b.Ga&&d&&h.Y;d=d.ic)b.b=d,e&=Wc(h,d,b.type,l,b)&&b.Jb!=
l;return Boolean(e)}
function uc(a,b){if(!qc[a])return j;var c=qc[a],d=c.type,e=rc;if(!(d in e))return j;var e=e[d],f,g;if(!$b){var i;if(!(i=b))a:{i=["window","event"];for(var m=v;f=i.shift();)if(m[f]!=k)m=m[f];else{i=k;break a}i=m}f=i;i=j in e;m=l in e;if(i){if(0>f.keyCode||f.returnValue!=h)return j;a:{var q=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(t){q=j}if(q||f.returnValue==h)f.returnValue=j}}q=new kc;lc(q,f,this);f=j;try{if(i){for(var r=[],y=q.c;y;y=y.parentNode)r.push(y);g=e[j];g.R=g.o;for(var w=r.length-
1;!q.sa&&0<=w&&g.R;w--)q.c=r[w],f&=yc(g,r[w],d,j,q);if(m){g=e[l];g.R=g.o;for(w=0;!q.sa&&w<r.length&&g.R;w++)q.c=r[w],f&=yc(g,r[w],d,l,q)}}else f=zc(c,q)}finally{r&&(r.length=0)}return f}d=new kc(b,this);return f=zc(c,d)};function Ac(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}Ac.prototype.T=function(){return new Ac(this.top,this.right,this.bottom,this.left)};Ac.prototype.contains=function(a){return!this||!a?l:a instanceof Ac?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};function Bc(a,b){var c=Nb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function Cc(a,b){return a.currentStyle?a.currentStyle[b]:k}function Dc(a,b){return Bc(a,b)||Cc(a,b)||a.style&&a.style[b]}function Ec(a,b){var c,d,e=ob&&(gb||sb)&&Bb("1.9");b instanceof Jb?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Fc(c,e);a.style.top=Fc(d,e)}
function Gc(a){var b=a.getBoundingClientRect();G&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function Hc(a){if(G&&!Db(8))return a.offsetParent;for(var b=Nb(a),c=Dc(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Dc(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 k}function Ic(a,b){var c=Jc(a),d=Jc(b);return new Jb(c.x-d.x,c.y-d.y)}
function Jc(a){var b=new Jb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Gc(a);b.x=c.left;b.y=c.top}else{c=Yb(Lb(a));var d,e=Nb(a),f=Dc(a,"position"),g=ob&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),i=new Jb(0,0),m;d=e?Nb(e):document;if(m=G)if(m=!Db(9))Lb(d),m=l;m=m?d.body:d.documentElement;if(a!=m)if(a.getBoundingClientRect)d=Gc(a),e=Yb(Lb(e)),i.x=d.left+e.x,i.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a),
e=e.getBoxObjectFor(m),i.x=d.screenX-e.screenX,i.y=d.screenY-e.screenY;else{g=a;do{i.x+=g.offsetLeft;i.y+=g.offsetTop;g!=a&&(i.x+=g.clientLeft||0,i.y+=g.clientTop||0);if(pb&&"fixed"==Dc(g,"position")){i.x+=e.body.scrollLeft;i.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(nb||pb&&"absolute"==f)i.y-=e.body.offsetTop;for(g=a;(g=Hc(g))&&g!=e.body&&g!=m;)if(i.x-=g.scrollLeft,!nb||"TR"!=g.tagName)i.y-=g.scrollTop}b.x=i.x-c.x;b.y=i.y-c.y}if(ob&&!Bb(12)){var q;G?q="-ms-transform":pb?q="-webkit-transform":
nb?q="-o-transform":ob&&(q="-moz-transform");var t;q&&(t=Dc(a,q));t||(t=Dc(a,"transform"));t?(a=t.match(Kc),a=!a?new Jb(0,0):new Jb(parseFloat(a[1]),parseFloat(a[2]))):a=new Jb(0,0);b=new Jb(b.x+a.x,b.y+a.y)}}else q=ha(a.pd),t=a,a.targetTouches?t=a.targetTouches[0]:q&&a.L.targetTouches&&(t=a.L.targetTouches[0]),b.x=t.clientX,b.y=t.clientY;return b}function Fc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}
function Lc(a){var b=a.offsetWidth,c=a.offsetHeight,d=pb&&!b&&!c;return(!z(b)||d)&&a.getBoundingClientRect?(a=Gc(a),new Kb(a.right-a.left,a.bottom-a.top)):new Kb(b,c)}function Mc(a,b){a.style.display=b?"":"none"}
function Nc(a,b){Lb(Nb(a));if(G&&!Bb("8")){var c=a.style,d;if(G){d=Oc(a,Cc(a,"paddingLeft"));var e=Oc(a,Cc(a,"paddingRight")),f=Oc(a,Cc(a,"paddingTop")),g=Oc(a,Cc(a,"paddingBottom"));d=new Ac(f,e,g,d)}else d=Bc(a,"paddingLeft"),e=Bc(a,"paddingRight"),f=Bc(a,"paddingTop"),g=Bc(a,"paddingBottom"),d=new Ac(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(G)var e=Pc(a,"borderLeft"),f=Pc(a,"borderRight"),g=Pc(a,"borderTop"),i=Pc(a,"borderBottom"),e=new Ac(g,f,i,e);else e=Bc(a,"borderLeftWidth"),
f=Bc(a,"borderRightWidth"),g=Bc(a,"borderTopWidth"),i=Bc(a,"borderBottomWidth"),e=new Ac(parseFloat(g),parseFloat(f),parseFloat(i),parseFloat(e));c.pixelWidth=b.width-e.left-d.left-d.right-e.right;c.pixelHeight=b.height-e.top-d.top-d.bottom-e.bottom}else c=a.style,ob?c.MozBoxSizing="border-box":pb?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(b.width,0)+"px",c.height=Math.max(b.height,0)+"px"}
function Oc(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}var Qc={thin:2,medium:4,thick:6};function Pc(a,b){if("none"==Cc(a,b+"Style"))return 0;var c=Cc(a,b+"Width");return c in Qc?Qc[c]:Oc(a,c)}var Kc=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Rc(a,b){this.x=a;this.y=b}D(Rc,Jb);Rc.prototype.T=function(){return new Rc(this.x,this.y)};Rc.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function L(a,b){Rc.call(this,a,b)}D(L,Rc);function Sc(a,b){var c=Ib(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 Tc(a,b){if(z(a)){var c=b||0;return a.x.toFixed(c)+", "+a.y.toFixed(c)}return""}function Uc(a,b){var c=b.charAt(0);return"n"===c||"s"===c?new L(a[1],a[0]):new L(a[0],a[1])};var Vc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Wc(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]=h)}return a.join("")}function Xc(a,b,c){if(ea(b))for(var d=0;d<b.length;d++)Xc(a,String(b[d]),c);else b!=k&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))}
function Yc(a,b){for(var c in b)Xc(c,b[c],a);return a};function Zc(a,b){var c;if(a instanceof Zc)this.pa=z(b)?b:a.pa,$c(this,a.Fa),c=a.Eb,ad(this),this.Eb=c,c=a.Ha,ad(this),this.Ha=c,bd(this,a.yb),c=a.wb,ad(this),this.wb=c,cd(this,a.a.T()),c=a.ab,ad(this),this.ab=c;else if(a&&(c=String(a).match(Vc))){this.pa=!!b;$c(this,c[1]||"",j);var d=c[2]||"";ad(this);this.Eb=d?decodeURIComponent(d):"";d=c[3]||"";ad(this);this.Ha=d?decodeURIComponent(d):"";bd(this,c[4]);d=c[5]||"";ad(this);this.wb=d?decodeURIComponent(d):"";cd(this,c[6]||"",j);c=c[7]||"";ad(this);
this.ab=c?decodeURIComponent(c):""}else this.pa=!!b,this.a=new dd(k,0,this.pa)}p=Zc.prototype;p.Fa="";p.Eb="";p.Ha="";p.yb=k;p.wb="";p.ab="";p.ae=l;p.pa=l;
p.toString=function(){var a=[],b=this.Fa;b&&a.push(ed(b,fd),":");if(b=this.Ha){a.push("//");var c=this.Eb;c&&a.push(ed(c,fd),"@");a.push(encodeURIComponent(String(b)));b=this.yb;b!=k&&a.push(":",String(b))}if(b=this.wb)this.Ha&&"/"!=b.charAt(0)&&a.push("/"),a.push(ed(b,"/"==b.charAt(0)?gd:hd));(b=this.a.toString())&&a.push("?",b);(b=this.ab)&&a.push("#",ed(b,id));return a.join("")};p.T=function(){return new Zc(this)};
function $c(a,b,c){ad(a);a.Fa=c?b?decodeURIComponent(b):"":b;a.Fa&&(a.Fa=a.Fa.replace(/:$/,""))}function bd(a,b){ad(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.yb=b}else a.yb=k}
function cd(a,b,c){ad(a);if(b instanceof dd){a.a=b;b=a.a;if((a=a.pa)&&!b.b){jd(b);b.a=k;var d=b.F,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),kd(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(fa(d)||ga(d))F(d,c,b);else{var e;if("function"==typeof d.Z)e=d.Z();else if("function"!=typeof d.O)if(fa(d)||ga(d)){e=[];for(var f=d.length,g=0;g<f;g++)e.push(g)}else e=Qa(d);else e=h;d=Xa(d);f=d.length;for(g=0;g<f;g++)c.call(b,d[g],e&&e[g])}}b.b=a}else c||(b=ed(b,ld)),a.a=
new dd(b,0,a.pa)}function md(a,b,c){ad(a);ea(c)||(c=[String(c)]);kd(a.a,b,c)}function ad(a){if(a.ae)throw Error("Tried to modify a read-only Uri");}function ed(a,b){return ga(a)?encodeURI(a).replace(b,nd):k}function nd(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var fd=/[#\/\?@]/g,hd=/[\#\?:]/g,gd=/[\#\?]/g,ld=/[\#\?@]/g,id=/#/g;function dd(a,b,c){this.a=a||k;this.b=!!c}
function jd(a){if(!a.F&&(a.F=new Ya,a.o=0,a.a))for(var b=a.a.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=k,f=k;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=od(a,e);d=a;f=f?decodeURIComponent(f.replace(/\+/g," ")):"";jd(d);d.a=k;var e=od(d,e),g=bb(d.F,e);g||Za(d.F,e,g=[]);g.push(f);d.o++}}p=dd.prototype;p.F=k;p.o=k;p.ca=function(){jd(this);return this.o};
p.remove=function(a){jd(this);a=od(this,a);return ab(this.F.b,a)?(this.a=k,this.o-=bb(this.F,a).length,this.F.remove(a)):l};p.clear=function(){this.F=this.a=k;this.o=0};p.Pa=function(){jd(this);return 0==this.o};function pd(a,b){jd(a);b=od(a,b);return ab(a.F.b,b)}p.Z=function(){jd(this);for(var a=this.F.O(),b=this.F.Z(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
p.O=function(a){jd(this);var b=[];if(a)pd(this,a)&&(b=Ha(b,bb(this.F,od(this,a))));else for(var a=this.F.O(),c=0;c<a.length;c++)b=Ha(b,a[c]);return b};function qd(a,b){var c=b?a.O(b):[];return 0<c.length?String(c[0]):h}function kd(a,b,c){a.remove(b);0<c.length&&(a.a=k,Za(a.F,od(a,b),Ia(c)),a.o+=c.length)}
p.toString=function(){if(this.a)return this.a;if(!this.F)return"";for(var a=[],b=this.F.Z(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.O(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.a=a.join("&")};p.T=function(){var a=new dd;a.a=this.a;this.F&&(a.F=this.F.T());return a};function od(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};function rd(){bc.call(this)}D(rd,bc);p=rd.prototype;p.oc=j;p.Xb=k;p.addEventListener=function(a,b,c,d){H(this,a,b,c,d)};p.removeEventListener=function(a,b,c,d){wc(this,a,b,c,d)};p.s=function(){rd.w.s.call(this);var a,b=0,c=a==k;a=!!a;if(this==k)Oa(sc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)J(f.key),b++}});else{var d=A(this);if(sc[d])for(var d=sc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)J(f.key),b++}}this.Xb=k};function sd(a){return function(){return a}}var td=sd(l),ud=sd(j),vd=sd(k);function wd(a,b,c){bc.call(this);this.d=a;this.c=c;this.a=b||window;this.b=na(this.Mb,this)}D(wd,bc);p=wd.prototype;p.P=k;p.cc=l;p.start=function(){xd(this);this.cc=l;var a=Bd(this),b=Cd(this);if(a&&!b&&this.a.mozRequestAnimationFrame)this.P=H(this.a,"MozBeforePaint",this.b),this.a.mozRequestAnimationFrame(k),this.cc=j;else{if(a&&b)a=a.call(this.a,this.b);else{var c=this.b,d;d=d||0;a=this.a.setTimeout(function(){return c.apply(this,Array.prototype.slice.call(arguments,0,d))},20)}this.P=a}};
function xd(a){if(a.P!=k){var b=Bd(a),c=Cd(a);b&&!c&&a.a.mozRequestAnimationFrame?J(a.P):b&&c?c.call(a.a,a.P):a.a.clearTimeout(a.P)}a.P=k}p.Mb=function(){this.cc&&this.P&&J(this.P);this.P=k;this.d.call(this.c,qa())};p.s=function(){xd(this);wd.w.s.call(this)};function Bd(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||k}
function Cd(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||k};function Dd(a){bc.call(this);this.xa=a||window;this.sb=H(this.xa,"resize",this.Rd,l,this);this.ua=Qb(this.xa||window);if(pb&&hb||nb&&this.xa.self!=this.xa.top)this.Fb=window.setInterval(na(this.ic,this),Ed)}D(Dd,rd);var Ed=500;p=Dd.prototype;p.sb=k;p.xa=k;p.ua=k;p.Fb=k;p.s=function(){Dd.w.s.call(this);this.sb&&(J(this.sb),this.sb=k);this.Fb&&(window.clearInterval(this.Fb),this.Fb=k);this.ua=this.xa=k};p.Rd=function(){this.ic()};
p.ic=function(){var a=Qb(this.xa||window);if(!(a==this.ua||(!a||!this.ua?0:a.width==this.ua.width&&a.height==this.ua.height)))this.ua=a,K(this,"resize")};function Fd(a,b,c,d,e){if(!G&&(!pb||!Bb("525")))return j;if(gb&&e)return Gd(a);if(e&&!d||!c&&(17==b||18==b)||G&&d&&b==a)return l;switch(a){case 13:return!(G&&Db(9));case 27:return!pb}return Gd(a)}function Gd(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||pb&&0==a)return j;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 j;default:return l}}
function Hd(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Id(a,b){bc.call(this);a&&(this.ob&&Jd(this),this.Ka=a,this.nb=H(this.Ka,"keypress",this,b),this.Vb=H(this.Ka,"keydown",this.a,b,this),this.ob=H(this.Ka,"keyup",this.b,b,this))}D(Id,rd);p=Id.prototype;p.Ka=k;p.nb=k;p.Vb=k;p.ob=k;p.ja=-1;p.ia=-1;p.Hb=l;
var Kd={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},Ld={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},Md=G||pb&&Bb("525"),Nd=gb&&ob;
Id.prototype.a=function(a){if(pb&&(17==this.ja&&!a.ib||18==this.ja&&!a.fa))this.ia=this.ja=-1;Md&&!Fd(a.za,this.ja,a.qa,a.ib,a.fa)?this.handleEvent(a):(this.ia=ob?Hd(a.za):a.za,Nd&&(this.Hb=a.fa))};Id.prototype.b=function(a){this.ia=this.ja=-1;this.Hb=a.fa};
Id.prototype.handleEvent=function(a){var b=a.L,c,d,e=b.altKey;G&&"keypress"==a.type?(c=this.ia,d=13!=c&&27!=c?b.keyCode:0):pb&&"keypress"==a.type?(c=this.ia,d=0<=b.charCode&&63232>b.charCode&&Gd(c)?b.charCode:0):nb?(c=this.ia,d=Gd(c)?b.keyCode:0):(c=b.keyCode||this.ia,d=b.charCode||0,Nd&&(e=this.Hb),gb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Kd?f=Kd[c]:25==c&&a.qa&&(f=9):g&&g in Ld&&(f=Ld[g]);a=f==this.ja;this.ja=f;b=new Od(f,d,a,b);b.fa=e;K(this,b)};
function Jd(a){a.nb&&(J(a.nb),J(a.Vb),J(a.ob),a.nb=k,a.Vb=k,a.ob=k);a.Ka=k;a.ja=-1;a.ia=-1}Id.prototype.s=function(){Id.w.s.call(this);Jd(this)};function Od(a,b,c,d){d&&lc(this,d,h);this.type="key";this.za=a;this.hb=b;this.b=c}D(Od,kc);function Pd(a){bc.call(this);this.a=a;a=ia(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:k;this.e=!!a&&"rtl"==Dc(a,"direction");this.b=H(this.a,ob?"DOMMouseScroll":"mousewheel",this)}D(Pd,rd);
Pd.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.L;if("mousewheel"==a.type){c=1;if(G||pb&&(hb||Bb("532.0")))c=40;d=Qd(-a.wheelDelta,c);z(a.wheelDeltaX)?(b=Qd(-a.wheelDeltaX,c),c=Qd(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),z(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=Hb(b,-this.c,this.c));"number"==typeof this.d&&(c=Hb(c,-this.d,this.d));this.e&&(b=-b);b=new Rd(d,a,b,c);K(this,b)};function Qd(a,b){return pb&&(gb||ib)&&0!=a%b?a:a/b}
Pd.prototype.s=function(){Pd.w.s.call(this);J(this.b);delete this.b};function Rd(a,b,c,d){b&&lc(this,b,h);this.type="mousewheel";this.e=a;this.d=c;this.b=d}D(Rd,kc);var Sd=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function M(a){bc.call(this);this.t={};z(a)&&this.ub(a)}D(M,rd);var Td={},Ud={},Vd={};function Wd(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Xd(a){return a.ol_accessors_||(a.ol_accessors_={})}function Yd(a){return Td.hasOwnProperty(a)?Td[a]:Td[a]=a.toLowerCase()+"_changed"}function Zd(a){return a.ol_bindings_||(a.ol_bindings_={})}p=M.prototype;
p.ad=function(a,b,c,d){c=c||a;this.bc(a);var e=Yd(c);Zd(this)[a]=H(b,e,function(){$d(this,a)},h,this);Xd(this)[a]={target:b,key:c};d||$d(this,a)};p.dd=ba;p.q=function(a){var b,c=Xd(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Ud.hasOwnProperty(b)?Ud[b]:Ud[b]="get"+Wd(b),b=a[c]?a[c]():a.q(b)):this.t.hasOwnProperty(a)&&(b=this.t[a]);return b};
p.Z=function(){for(var a=Qa(Xd(this)).concat(Qa(this.t)),b={},c=0,d=0;d<a.length;){var e=a[d++],f=ia(e)?"o"+A(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=j,a[c++]=e)}a.length=c;return a};p.Ec=function(a){var b=Xd(this);b.hasOwnProperty(a)?(a=b[a],a.target.Ec(a.key)):$d(this,a)};function $d(a,b){var c=Yd(b);K(a,c);K(a,"changed")}
p.p=function(a,b){var c=Xd(this);if(c.hasOwnProperty(a)){var d=c[a],c=d.target,d=d.key,e=Vd.hasOwnProperty(d)?Vd[d]:Vd[d]="set"+Wd(d);if(c[e])c[e](b);else c.p(d,b)}else this.t[a]=b,$d(this,a)};p.Mc=function(a){var b,c,d;for(b in a)if(c=a[b],d=Vd.hasOwnProperty(b)?Vd[b]:Vd[b]="set"+Wd(b),this[d])this[d](c);else this.p(b,c)};p.ub=M.prototype.Mc;p.bc=function(a){var b=Zd(this),c=b[a];c&&(delete b[a],J(c),b=this.q(a),delete Xd(this)[a],this.t[a]=b)};p.ye=function(){for(var a in Zd(this))this.bc(a)};function ae(a,b,c){hc.call(this,a,c);this.a=b}D(ae,hc);function N(a){M.call(this);this.a=a||[];be(this)}D(N,M);p=N.prototype;p.clear=function(){for(;0<this.eb();)this.pop()};p.forEach=function(a,b){F(this.a,a,b)};p.ld=function(a){return this.a[a]};p.eb=function(){return this.q("length")};p.mb=function(a,b){Ka(this.a,a,0,b);be(this);K(this,new ae("add",b,this))};p.pop=function(){return this.Yb(this.eb()-1)};p.push=function(a){var b=this.a.length;this.mb(b,a);return b};
p.remove=function(a){var b;for(b=0;b<this.a.length;++b)if(this.a[b]===a)return this.Yb(b)};p.Yb=function(a){var b=this.a[a];Aa.splice.call(this.a,a,1);be(this);K(this,new ae("remove",b,this));return b};p.oe=function(a,b){var c=this.eb();if(a<c)c=this.a[a],this.a[a]=b,K(this,new ae("remove",c,this)),K(this,new ae("add",b,this));else{for(;c<a;++c)this.mb(c,h);this.mb(a,b)}};function be(a){a.p("length",a.a.length)};function ce(){this.c=Hb(255,0,255);this.b=Hb(255,0,255);this.a=Hb(255,0,255);this.d=Hb(1,0,1)};function de(a,b){Kb.call(this,a,b)}D(de,Kb);function ee(a,b,c,d){this.h=a;this.k=b;this.j=c;this.l=d}ee.prototype.a=function(){return new L((this.h+this.j)/2,(this.k+this.l)/2)};ee.prototype.da=function(){return this.l-this.k};ee.prototype.ha=function(){return this.j-this.h};function fe(a,b){return a.h<=b.j&&a.j>=b.h&&a.k<=b.l&&a.l>=b.k}ee.prototype.toString=function(){return"("+[this.h,this.k,this.j,this.l].join(", ")+")"};function P(a,b,c,d){ee.call(this,a,b,c,d)}D(P,ee);function ge(a){var b=arguments[0],b=new P(b.x,b.y,b.x,b.y),c;for(c=1;c<arguments.length;++c){var d=arguments[c];b.h=Math.min(b.h,d.x);b.k=Math.min(b.k,d.y);b.j=Math.max(b.j,d.x);b.l=Math.max(b.l,d.y)}return b}
function he(a,b,c,d){for(var e=b*d.width/2,f=b*d.height/2,b=Math.cos(c),d=Math.sin(c),e=[-e,-e,e,e],c=[-f,f,-f,f],g,i,f=0;4>f;++f)g=e[f],i=c[f],e[f]=a.x+g*b-i*d,c[f]=a.y+g*d+i*b;a=Math.min.apply(k,e);b=Math.min.apply(k,c);e=Math.max.apply(k,e);c=Math.max.apply(k,c);return new P(a,b,e,c)}p=P.prototype;p.ed=function(a){return this.h<=a.x&&a.x<=this.j&&this.k<=a.y&&a.y<=this.l};p.lc=function(a){return this.h<=a.h&&a.j<=this.j&&this.k<=a.k&&a.l<=this.l};p.nd=function(){return new L(this.h,this.k)};
p.od=function(){return new L(this.j,this.k)};p.gb=function(){return new L(this.h,this.l)};p.sd=function(){return new L(this.j,this.l)};p.transform=function(a){var b=[this.h,this.k,this.j,this.l],b=a(b,b,2);return new P(Math.min(b[0],b[2]),Math.min(b[1],b[3]),Math.max(b[0],b[2]),Math.max(b[1],b[3]))};function ie(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}ie.prototype.a=4;ie.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};ie.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(ie.BYTES_PER_ELEMENT=4,ie.prototype.BYTES_PER_ELEMENT=ie.prototype.a,ie.prototype.set=ie.prototype.b,ie.prototype.toString=ie.prototype.toString,C("Float32Array",ie));function je(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}je.prototype.a=8;je.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};je.prototype.toString=Array.prototype.join;"undefined"==typeof Float64Array&&(je.BYTES_PER_ELEMENT=8,je.prototype.BYTES_PER_ELEMENT=je.prototype.a,je.prototype.set=je.prototype.b,je.prototype.toString=je.prototype.toString,C("Float64Array",je));function ke(){var a=Array(16);le(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function me(){var a=Array(16);le(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function le(a,b,c,d,e,f,g,i,m,q,t,r,y,w,s,x,u){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=i;a[7]=m;a[8]=q;a[9]=t;a[10]=r;a[11]=y;a[12]=w;a[13]=s;a[14]=x;a[15]=u}
function ne(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 oe(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 pe(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],i=a[4],m=a[5],q=a[6],t=a[7],r=a[8],y=a[9],w=a[10],s=a[11],x=a[12],u=a[13],B=a[14],a=a[15],E=b[0],Q=b[1],I=b[2],O=b[3],Z=b[4],Y=b[5],pa=b[6],xa=b[7],ya=b[8],Sa=b[9],Ta=b[10],$=b[11],yd=b[12],zd=b[13],Ad=b[14],b=b[15];c[0]=d*E+i*Q+r*I+x*O;c[1]=e*E+m*Q+y*I+u*O;c[2]=f*E+q*Q+w*I+B*O;c[3]=g*E+t*Q+s*I+a*O;c[4]=d*Z+i*Y+r*pa+x*xa;c[5]=e*Z+m*Y+y*pa+u*xa;c[6]=f*Z+q*Y+w*pa+B*xa;c[7]=g*Z+t*Y+s*pa+a*xa;c[8]=d*ya+i*Sa+r*Ta+x*$;c[9]=e*ya+m*Sa+y*Ta+u*$;c[10]=f*ya+
q*Sa+w*Ta+B*$;c[11]=g*ya+t*Sa+s*Ta+a*$;c[12]=d*yd+i*zd+r*Ad+x*b;c[13]=e*yd+m*zd+y*Ad+u*b;c[14]=f*yd+q*zd+w*Ad+B*b;c[15]=g*yd+t*zd+s*Ad+a*b}function qe(a,b){return a.length==b.length&&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 re(a,b,c){var d=b[0],e=b[1],b=b[2];c[0]=d*a[0]+e*a[4]+b*a[8]+a[12];c[1]=d*a[1]+e*a[5]+b*a[9]+a[13];c[2]=d*a[2]+e*a[6]+b*a[10]+a[14]}function se(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 te(a,b,c){le(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 ue(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],i=a[5],m=a[6],q=a[7],t=Math.cos(b),r=Math.sin(b);a[0]=c*t+g*r;a[1]=d*t+i*r;a[2]=e*t+m*r;a[3]=f*t+q*r;a[4]=c*-r+g*t;a[5]=d*-r+i*t;a[6]=e*-r+m*t;a[7]=f*-r+q*t}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function ve(a,b,c){Rc.call(this,b,c);this.n=a}D(ve,L);ve.prototype.hash=function(){return(this.x<<this.n)+this.y};function we(a){var b=Array(a.n),c=1<<a.n-1,d,e;for(d=0;d<a.n;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}ve.prototype.toString=function(){return[this.n,this.x,this.y].join("/")};function xe(a,b,c,d){this.h=a;this.k=b;this.j=c;this.l=d}D(xe,ee);xe.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.j&&this.k<=a.y&&a.y<=this.l};xe.prototype.da=function(){return this.l-this.k+1};xe.prototype.ha=function(){return this.j-this.h+1};function ye(a,b){this.b=a;this.a=b||k};function ze(a,b){bc.call(this);this.X=a;this.a=b}D(ze,rd);ze.prototype.b=function(){return A(this).toString()};function Ae(a){this.d=a;this.f=8;this.c=0;this.a=[];this.b={}}function Be(a,b,c,d){if(0==b.a){var e=b.b();if(!(e in a.b)){var f=a.d(b,c,d);Infinity!=f&&(a.a.push([f,b,c,d]),a.b[e]=j,Ce(a,0,a.a.length-1))}}}Ae.prototype.e=function(){--this.c};function De(a,b){for(var c=a.a,d=c.length,e=c[b],f=b;b<d>>1;){var g=2*b+1,i=2*b+2,g=i<d&&c[i][0]<c[g][0]?i:g;c[b]=c[g];b=g}c[b]=e;Ce(a,f,b)}function Ce(a,b,c){for(var a=a.a,d=a[c];c>b;){var e=c-1>>1;if(a[e][0]>d[0])a[c]=a[e],c=e;else break}a[c]=d};/*
function Nc(a,b){if(!Jc[a])return i;var c=Jc[a],d=c.type,e=Kc;if(!(d in e))return i;var e=e[d],f,h;if(!rc){var j;if(!(j=b))a:{j=["window","event"];for(var m=r;f=j.shift();)if(m[f]!=k)m=m[f];else{j=k;break a}j=m}f=j;j=i in e;m=l in e;if(j){if(0>f.keyCode||f.returnValue!=g)return i;a:{var q=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(v){q=i}if(q||f.returnValue==g)f.returnValue=i}}q=new Dc;Ec(q,f,this);f=i;try{if(j){for(var s=[],A=q.b;A;A=A.parentNode)s.push(A);h=e[i];h.Y=h.o;for(var u=s.length-
1;!q.Ga&&0<=u&&h.Y;u--)q.b=s[u],f&=Wc(h,s[u],d,i,q);if(m){h=e[l];h.Y=h.o;for(u=0;!q.Ga&&u<s.length&&h.Y;u++)q.b=s[u],f&=Wc(h,s[u],d,l,q)}}else f=Xc(c,q)}finally{s&&(s.length=0)}return f}d=new Dc(b,this);return f=Xc(c,d)};function Yc(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}Yc.prototype.V=function(){return new Yc(this.top,this.right,this.bottom,this.left)};Yc.prototype.contains=function(a){return!this||!a?l:a instanceof Yc?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};function Zc(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}Zc.prototype.V=function(){return new Zc(this.left,this.top,this.width,this.height)};Zc.prototype.ha=function(a){return this.left<=a.left+a.width&&a.left<=this.left+this.width&&this.top<=a.top+a.height&&a.top<=this.top+this.height};
Zc.prototype.contains=function(a){return a instanceof Zc?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};function $c(a,b){var c=$b(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function ad(a,b){return $c(a,b)||(a.currentStyle?a.currentStyle[b]:k)||a.style&&a.style[b]}function bd(a,b,c){var d,e=ub&&(kb||Ab)&&Lb("1.9");b instanceof Tb?(d=b.x,b=b.y):(d=b,b=c);a.style.left=cd(d,e);a.style.top=cd(b,e)}
function dd(a){var b=a.getBoundingClientRect();G&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function ed(a){if(G&&!Nb(8))return a.offsetParent;for(var b=$b(a),c=ad(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=ad(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 k}
function fd(a){var b,c=$b(a),d=ad(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),h;b=c?$b(c):document;h=G&&!Nb(9)&&!lc(Vb(b))?b.body:b.documentElement;if(a==h)return f;if(a.getBoundingClientRect)b=dd(a),a=mc(Vb(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(h),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{b=a;do{f.x+=b.offsetLeft;f.y+=
b.offsetTop;b!=a&&(f.x+=b.clientLeft||0,f.y+=b.clientTop||0);if(xb&&"fixed"==ad(b,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(tb||xb&&"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=ed(b))&&b!=c.body&&b!=h;)if(f.x-=b.scrollLeft,!tb||"TR"!=b.tagName)f.y-=b.scrollTop}return f}function gd(a,b){var c=hd(a),d=hd(b);return new Tb(c.x-d.x,c.y-d.y)}
function hd(a){var b=new Tb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=dd(a);b.x=c.left;b.y=c.top}else{var c=mc(Vb(a)),d=fd(a);b.x=d.x-c.x;b.y=d.y-c.y}if(ub&&!Lb(12)){var e;G?e="-ms-transform":xb?e="-webkit-transform":tb?e="-o-transform":ub&&(e="-moz-transform");var f;e&&(f=ad(a,e));f||(f=ad(a,"transform"));f?(a=f.match(id),a=!a?new Tb(0,0):new Tb(parseFloat(a[1]),parseFloat(a[2]))):a=new Tb(0,0);b=new Tb(b.x+a.x,b.y+a.y)}}else e=ka(a.Kd),f=a,a.targetTouches?f=a.targetTouches[0]:e&&a.L.targetTouches&&
(f=a.L.targetTouches[0]),b.x=f.clientX,b.y=f.clientY;return b}function cd(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function jd(a){if("none"!=ad(a,"display"))return kd(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=kd(a);b.display=c;b.position=e;b.visibility=d;return a}
function kd(a){var b=a.offsetWidth,c=a.offsetHeight,d=xb&&!b&&!c;return(!x(b)||d)&&a.getBoundingClientRect?(a=dd(a),new Ub(a.right-a.left,a.bottom-a.top)):new Ub(b,c)}function ld(a,b){a.style.display=b?"":"none"}function md(a){return"rtl"==ad(a,"direction")}
function nd(a,b){var c=lc(Vb($b(a)));if(G&&(!c||!Lb("8"))){var d=a.style;if(c){var c=od(a,"padding"),e=pd(a);d.pixelWidth=b.width-e.left-c.left-c.right-e.right;d.pixelHeight=b.height-e.top-c.top-c.bottom-e.bottom}else d.pixelWidth=b.width,d.pixelHeight=b.height}else d=a.style,ub?d.MozBoxSizing="border-box":xb?d.WebkitBoxSizing="border-box":d.boxSizing="border-box",d.width=Math.max(b.width,0)+"px",d.height=Math.max(b.height,0)+"px"}
function qd(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 rd(a,b){return qd(a,a.currentStyle?a.currentStyle[b]:k,"left","pixelLeft")}
function od(a,b){if(G){var c=rd(a,b+"Left"),d=rd(a,b+"Right"),e=rd(a,b+"Top"),f=rd(a,b+"Bottom");return new Yc(e,d,f,c)}c=$c(a,b+"Left");d=$c(a,b+"Right");e=$c(a,b+"Top");f=$c(a,b+"Bottom");return new Yc(parseFloat(e),parseFloat(d),parseFloat(f),parseFloat(c))}var sd={thin:2,medium:4,thick:6};function td(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:k))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:k;return c in sd?sd[c]:qd(a,c,"left","pixelLeft")}
function pd(a){if(G){var b=td(a,"borderLeft"),c=td(a,"borderRight"),d=td(a,"borderTop"),a=td(a,"borderBottom");return new Yc(d,c,a,b)}b=$c(a,"borderLeftWidth");c=$c(a,"borderRightWidth");d=$c(a,"borderTopWidth");a=$c(a,"borderBottomWidth");return new Yc(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var id=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function ud(a,b){this.x=a;this.y=b}D(ud,Tb);ud.prototype.V=function(){return new ud(this.x,this.y)};ud.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function L(a,b){ud.call(this,a,b)}D(L,ud);function vd(a,b){var c=Sb(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 wd(a,b){if(x(a)){var c=b||0;return a.x.toFixed(c)+", "+a.y.toFixed(c)}return""}function xd(a,b){var c=b.charAt(0);return"n"===c||"s"===c?new L(a[1],a[0]):new L(a[0],a[1])};var yd=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function zd(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]=g)}return a.join("")}function Ad(a,b,c){if(ha(b))for(var d=0;d<b.length;d++)Ad(a,String(b[d]),c);else b!=k&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))}
function Bd(a,b){for(var c in b)Ad(c,b[c],a);return a};function Cd(a,b){var c;if(a instanceof Cd)this.Aa=x(b)?b:a.Aa,Dd(this,a.Ma),c=a.Nb,Ed(this),this.Nb=c,c=a.Na,Ed(this),this.Na=c,Fd(this,a.Hb),c=a.Fb,Ed(this),this.Fb=c,Gd(this,a.a.V()),c=a.jb,Ed(this),this.jb=c;else if(a&&(c=String(a).match(yd))){this.Aa=!!b;Dd(this,c[1]||"",i);var d=c[2]||"";Ed(this);this.Nb=d?decodeURIComponent(d):"";d=c[3]||"";Ed(this);this.Na=d?decodeURIComponent(d):"";Fd(this,c[4]);d=c[5]||"";Ed(this);this.Fb=d?decodeURIComponent(d):"";Gd(this,c[6]||"",i);c=c[7]||"";Ed(this);
this.jb=c?decodeURIComponent(c):""}else this.Aa=!!b,this.a=new Hd(k,0,this.Aa)}p=Cd.prototype;p.Ma="";p.Nb="";p.Na="";p.Hb=k;p.Fb="";p.jb="";p.we=l;p.Aa=l;
p.toString=function(){var a=[],b=this.Ma;b&&a.push(Id(b,Jd),":");if(b=this.Na){a.push("//");var c=this.Nb;c&&a.push(Id(c,Jd),"@");a.push(encodeURIComponent(String(b)));b=this.Hb;b!=k&&a.push(":",String(b))}if(b=this.Fb)this.Na&&"/"!=b.charAt(0)&&a.push("/"),a.push(Id(b,"/"==b.charAt(0)?Kd:Ld));(b=this.a.toString())&&a.push("?",b);(b=this.jb)&&a.push("#",Id(b,Md));return a.join("")};p.V=function(){return new Cd(this)};
function Dd(a,b,c){Ed(a);a.Ma=c?b?decodeURIComponent(b):"":b;a.Ma&&(a.Ma=a.Ma.replace(/:$/,""))}function Fd(a,b){Ed(a);b?(b=Number(b),(isNaN(b)||0>b)&&aa(Error("Bad port number "+b)),a.Hb=b):a.Hb=k}
function Gd(a,b,c){Ed(a);if(b instanceof Hd){a.a=b;b=a.a;if((a=a.Aa)&&!b.b){Nd(b);b.a=k;var d=b.H,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),$d(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(ia(d)||ja(d))F(d,c,b);else{var e;if("function"==typeof d.ba)e=d.ba();else if("function"!=typeof d.W)if(ia(d)||ja(d)){e=[];for(var f=d.length,h=0;h<f;h++)e.push(h)}else e=Wa(d);else e=g;d=ab(d);f=d.length;for(h=0;h<f;h++)c.call(b,d[h],e&&e[h])}}b.b=a}else c||(b=Id(b,ae)),a.a=
new Hd(b,0,a.Aa)}function be(a,b,c){Ed(a);ha(c)||(c=[String(c)]);$d(a.a,b,c)}function Ed(a){a.we&&aa(Error("Tried to modify a read-only Uri"))}function Id(a,b){return ja(a)?encodeURI(a).replace(b,ce):k}function ce(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Jd=/[#\/\?@]/g,Ld=/[\#\?:]/g,Kd=/[\#\?]/g,ae=/[\#\?@]/g,Md=/#/g;function Hd(a,b,c){this.a=a||k;this.b=!!c}
function Nd(a){if(!a.H&&(a.H=new bb,a.o=0,a.a))for(var b=a.a.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=k,f=k;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=de(a,e);d=a;f=f?decodeURIComponent(f.replace(/\+/g," ")):"";Nd(d);d.a=k;var e=de(d,e),h=fb(d.H,e);h||cb(d.H,e,h=[]);h.push(f);d.o++}}p=Hd.prototype;p.H=k;p.o=k;p.J=function(){Nd(this);return this.o};
p.remove=function(a){Nd(this);a=de(this,a);return eb(this.H.b,a)?(this.a=k,this.o-=fb(this.H,a).length,this.H.remove(a)):l};p.clear=function(){this.H=this.a=k;this.o=0};p.Wa=function(){Nd(this);return 0==this.o};function ee(a,b){Nd(a);b=de(a,b);return eb(a.H.b,b)}p.ba=function(){Nd(this);for(var a=this.H.W(),b=this.H.ba(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
p.W=function(a){Nd(this);var b=[];if(a)ee(this,a)&&(b=Na(b,fb(this.H,de(this,a))));else for(var a=this.H.W(),c=0;c<a.length;c++)b=Na(b,a[c]);return b};function fe(a,b){var c=b?a.W(b):[];return 0<c.length?String(c[0]):g}function $d(a,b,c){a.remove(b);0<c.length&&(a.a=k,cb(a.H,de(a,b),Oa(c)),a.o+=c.length)}
p.toString=function(){if(this.a)return this.a;if(!this.H)return"";for(var a=[],b=this.H.ba(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.W(d),f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+encodeURIComponent(String(d[f])));a.push(h)}return this.a=a.join("&")};p.V=function(){var a=new Hd;a.a=this.a;this.H&&(a.H=this.H.V());return a};function de(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};function ge(){tc.call(this)}D(ge,tc);p=ge.prototype;p.Bc=i;p.ic=k;p.addEventListener=function(a,b,c,d){I(this,a,b,c,d)};p.removeEventListener=function(a,b,c,d){Uc(this,a,b,c,d)};p.r=function(){ge.z.r.call(this);var a,b=0,c=a==k;a=!!a;if(this==k)Ua(Lc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)J(f.key),b++}});else{var d=z(this);if(Lc[d])for(var d=Lc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)J(f.key),b++}}this.ic=k};function he(a){return function(){return a}}var ie=he(l),je=he(i),ke=he(k);function le(a,b,c){tc.call(this);this.d=a;this.c=c;this.a=b||window;this.b=ra(this.Wb,this)}D(le,tc);p=le.prototype;p.X=k;p.pc=l;p.start=function(){me(this);this.pc=l;var a=ne(this),b=oe(this);if(a&&!b&&this.a.mozRequestAnimationFrame)this.X=I(this.a,"MozBeforePaint",this.b),this.a.mozRequestAnimationFrame(k),this.pc=i;else{if(a&&b)a=a.call(this.a,this.b);else{var c=this.b,d;d=d||0;a=this.a.setTimeout(function(){return c.apply(this,Array.prototype.slice.call(arguments,0,d))},20)}this.X=a}};
function me(a){if(a.X!=k){var b=ne(a),c=oe(a);b&&!c&&a.a.mozRequestAnimationFrame?J(a.X):b&&c?c.call(a.a,a.X):a.a.clearTimeout(a.X)}a.X=k}p.Wb=function(){this.pc&&this.X&&J(this.X);this.X=k;this.d.call(this.c,ta())};p.r=function(){me(this);le.z.r.call(this)};function ne(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||k}
function oe(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||k};function pe(a){tc.call(this);this.Ha=a||window;this.Bb=I(this.Ha,"resize",this.le,l,this);this.Ba=cc(this.Ha||window);if(xb&&lb||tb&&this.Ha.self!=this.Ha.top)this.Ob=window.setInterval(ra(this.vc,this),qe)}D(pe,ge);var qe=500;p=pe.prototype;p.Bb=k;p.Ha=k;p.Ba=k;p.Ob=k;p.r=function(){pe.z.r.call(this);this.Bb&&(J(this.Bb),this.Bb=k);this.Ob&&(window.clearInterval(this.Ob),this.Ob=k);this.Ba=this.Ha=k};p.le=function(){this.vc()};
p.vc=function(){var a=cc(this.Ha||window);if(!(a==this.Ba||(!a||!this.Ba?0:a.width==this.Ba.width&&a.height==this.Ba.height)))this.Ba=a,K(this,"resize")};function re(a,b,c,d,e){if(!G&&(!xb||!Lb("525")))return i;if(kb&&e)return se(a);if(e&&!d||!c&&(17==b||18==b)||G&&d&&b==a)return l;switch(a){case 13:return!(G&&Nb(9));case 27:return!xb}return se(a)}function se(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||xb&&0==a)return i;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 i;default:return l}}
function te(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function ue(a,b){tc.call(this);a&&(this.xb&&ve(this),this.Ra=a,this.wb=I(this.Ra,"keypress",this,b),this.gc=I(this.Ra,"keydown",this.a,b,this),this.xb=I(this.Ra,"keyup",this.b,b,this))}D(ue,ge);p=ue.prototype;p.Ra=k;p.wb=k;p.gc=k;p.xb=k;p.ua=-1;p.ta=-1;p.Qb=l;
var we={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},xe={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},ye=G||xb&&Lb("525"),ze=kb&&ub;
ue.prototype.a=function(a){if(xb&&(17==this.ua&&!a.qb||18==this.ua&&!a.na))this.ta=this.ua=-1;ye&&!re(a.Ia,this.ua,a.Ca,a.qb,a.na)?this.handleEvent(a):(this.ta=ub?te(a.Ia):a.Ia,ze&&(this.Qb=a.na))};ue.prototype.b=function(a){this.ta=this.ua=-1;this.Qb=a.na};
ue.prototype.handleEvent=function(a){var b=a.L,c,d,e=b.altKey;G&&"keypress"==a.type?(c=this.ta,d=13!=c&&27!=c?b.keyCode:0):xb&&"keypress"==a.type?(c=this.ta,d=0<=b.charCode&&63232>b.charCode&&se(c)?b.charCode:0):tb?(c=this.ta,d=se(c)?b.keyCode:0):(c=b.keyCode||this.ta,d=b.charCode||0,ze&&(e=this.Qb),kb&&(63==d&&224==c)&&(c=191));var f=c,h=b.keyIdentifier;c?63232<=c&&c in we?f=we[c]:25==c&&a.Ca&&(f=9):h&&h in xe&&(f=xe[h]);a=f==this.ua;this.ua=f;b=new Ae(f,d,a,b);b.na=e;K(this,b)};
function ve(a){a.wb&&(J(a.wb),J(a.gc),J(a.xb),a.wb=k,a.gc=k,a.xb=k);a.Ra=k;a.ua=-1;a.ta=-1}ue.prototype.r=function(){ue.z.r.call(this);ve(this)};function Ae(a,b,c,d){d&&Ec(this,d,g);this.type="key";this.Ia=a;this.pb=b;this.c=c}D(Ae,Dc);function Be(a){tc.call(this);this.a=a;a=la(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:k;this.e=!!a&&md(a);this.b=I(this.a,ub?"DOMMouseScroll":"mousewheel",this)}D(Be,ge);
Be.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.L;if("mousewheel"==a.type){c=1;if(G||xb&&(lb||Lb("532.0")))c=40;d=Ce(-a.wheelDelta,c);x(a.wheelDeltaX)?(b=Ce(-a.wheelDeltaX,c),c=Ce(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),x(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=Rb(b,-this.c,this.c));"number"==typeof this.d&&(c=Rb(c,-this.d,this.d));this.e&&(b=-b);b=new De(d,a,b,c);K(this,b)};function Ce(a,b){return xb&&(kb||ob)&&0!=a%b?a:a/b}
Be.prototype.r=function(){Be.z.r.call(this);J(this.b);delete this.b};function De(a,b,c,d){b&&Ec(this,b,g);this.type="mousewheel";this.c=a;this.O=c;this.N=d}D(De,Dc);var Ee=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function M(a){tc.call(this);this.s={};x(a)&&this.Db(a)}D(M,ge);var Fe={},Ge={},He={};function Ie(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Je(a){return a.ol_accessors_||(a.ol_accessors_={})}function Ke(a){return Fe.hasOwnProperty(a)?Fe[a]:Fe[a]=a.toLowerCase()+"_changed"}function Le(a){return a.ol_bindings_||(a.ol_bindings_={})}p=M.prototype;
p.xd=function(a,b,c,d){c=c||a;this.nc(a);var e=Ke(c);Le(this)[a]=I(b,e,function(){Me(this,a)},g,this);Je(this)[a]={target:b,key:c};d||Me(this,a)};p.Ad=da;p.q=function(a){var b,c=Je(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Ge.hasOwnProperty(b)?Ge[b]:Ge[b]="get"+Ie(b),b=a[c]?a[c]():a.q(b)):this.s.hasOwnProperty(a)&&(b=this.s[a]);return b};
p.ba=function(){for(var a=Wa(Je(this)).concat(Wa(this.s)),b={},c=0,d=0;d<a.length;){var e=a[d++],f=la(e)?"o"+z(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=i,a[c++]=e)}a.length=c;return a};p.Yc=function(a){var b=Je(this);b.hasOwnProperty(a)?(a=b[a],a.target.Yc(a.key)):Me(this,a)};function Me(a,b){var c=Ke(b);K(a,c);K(a,"changed")}
p.p=function(a,b){var c=Je(this);if(c.hasOwnProperty(a)){var d=c[a],c=d.target,d=d.key,e=He.hasOwnProperty(d)?He[d]:He[d]="set"+Ie(d);if(c[e])c[e](b);else c.p(d,b)}else this.s[a]=b,Me(this,a)};p.hd=function(a){var b,c,d;for(b in a)if(c=a[b],d=He.hasOwnProperty(b)?He[b]:He[b]="set"+Ie(b),this[d])this[d](c);else this.p(b,c)};p.Db=M.prototype.hd;p.nc=function(a){var b=Le(this),c=b[a];c&&(delete b[a],J(c),b=this.q(a),delete Je(this)[a],this.s[a]=b)};p.Ye=function(){for(var a in Le(this))this.nc(a)};function Ne(a,b,c){zc.call(this,a,c);this.a=b}D(Ne,zc);function N(a){M.call(this);this.a=a||[];Oe(this)}D(N,M);p=N.prototype;p.clear=function(){for(;0<this.mb();)this.pop()};p.forEach=function(a,b){F(this.a,a,b)};p.Hd=function(a){return this.a[a]};p.mb=function(){return this.q("length")};p.ub=function(a,b){Qa(this.a,a,0,b);Oe(this);K(this,new Ne("add",b,this))};p.pop=function(){return this.jc(this.mb()-1)};p.push=function(a){var b=this.a.length;this.ub(b,a);return b};
p.remove=function(a){var b;for(b=0;b<this.a.length;++b)if(this.a[b]===a)return this.jc(b)};p.jc=function(a){var b=this.a[a];Da.splice.call(this.a,a,1);Oe(this);K(this,new Ne("remove",b,this));return b};p.Ne=function(a,b){var c=this.mb();if(a<c)c=this.a[a],this.a[a]=b,K(this,new Ne("remove",c,this)),K(this,new Ne("add",b,this));else{for(;c<a;++c)this.ub(c,g);this.ub(a,b)}};function Oe(a){a.p("length",a.a.length)};function Pe(){this.c=Rb(255,0,255);this.b=Rb(255,0,255);this.a=Rb(255,0,255);this.d=Rb(1,0,1)};function Qe(a,b){Ub.call(this,a,b)}D(Qe,Ub);function Re(a,b,c,d){this.h=a;this.l=b;this.j=c;this.k=d}function Se(a,b){a.h=Math.min(a.h,b.h);a.l=Math.min(a.l,b.l);a.j=Math.max(a.j,b.j);a.k=Math.max(a.k,b.k)}p=Re.prototype;p.ad=function(){return new L((this.h+this.j)/2,(this.l+this.k)/2)};p.ga=function(){return this.k-this.l};p.ma=function(){return this.j-this.h};p.ha=function(a){return this.h<=a.j&&this.j>=a.h&&this.l<=a.k&&this.k>=a.l};p.toString=function(){return"("+[this.h,this.l,this.j,this.k].join(", ")+")"};function O(a,b,c,d){Re.call(this,a,b,c,d)}D(O,Re);function Te(a){var b=arguments[0],b=new O(b.x,b.y,b.x,b.y),c;for(c=1;c<arguments.length;++c){var d=arguments[c];b.h=Math.min(b.h,d.x);b.l=Math.min(b.l,d.y);b.j=Math.max(b.j,d.x);b.k=Math.max(b.k,d.y)}return b}
function Ue(a,b,c,d){for(var e=b*d.width/2,f=b*d.height/2,b=Math.cos(c),d=Math.sin(c),e=[-e,-e,e,e],c=[-f,f,-f,f],h,j,f=0;4>f;++f)h=e[f],j=c[f],e[f]=a.x+h*b-j*d,c[f]=a.y+h*d+j*b;a=Math.min.apply(k,e);b=Math.min.apply(k,c);e=Math.max.apply(k,e);c=Math.max.apply(k,c);return new O(a,b,e,c)}p=O.prototype;p.Bd=function(a){return this.h<=a.x&&a.x<=this.j&&this.l<=a.y&&a.y<=this.k};p.yc=function(a){return this.h<=a.h&&a.j<=this.j&&this.l<=a.l&&a.k<=this.k};p.Gc=function(){return new L(this.h,this.l)};
p.Jd=function(){return new L(this.j,this.l)};p.ob=function(){return new L(this.h,this.k)};p.Nd=function(){return new L(this.j,this.k)};p.transform=function(a){var b=[this.h,this.l,this.j,this.k],b=a(b,b,2);return new O(Math.min(b[0],b[2]),Math.min(b[1],b[3]),Math.max(b[0],b[2]),Math.max(b[1],b[3]))};function Ve(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Ve.prototype.a=4;Ve.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};Ve.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(Ve.BYTES_PER_ELEMENT=4,Ve.prototype.BYTES_PER_ELEMENT=Ve.prototype.a,Ve.prototype.set=Ve.prototype.b,Ve.prototype.toString=Ve.prototype.toString,C("Float32Array",Ve));function We(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}We.prototype.a=8;We.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};We.prototype.toString=Array.prototype.join;"undefined"==typeof Float64Array&&(We.BYTES_PER_ELEMENT=8,We.prototype.BYTES_PER_ELEMENT=We.prototype.a,We.prototype.set=We.prototype.b,We.prototype.toString=We.prototype.toString,C("Float64Array",We));function Xe(){var a=Array(16);Ye(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function Ze(){var a=Array(16);Ye(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function Ye(a,b,c,d,e,f,h,j,m,q,v,s,A,u,t,y,w){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=h;a[6]=j;a[7]=m;a[8]=q;a[9]=v;a[10]=s;a[11]=A;a[12]=u;a[13]=t;a[14]=y;a[15]=w}
function $e(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 af(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 bf(a,b,c){var d=a[0],e=a[1],f=a[2],h=a[3],j=a[4],m=a[5],q=a[6],v=a[7],s=a[8],A=a[9],u=a[10],t=a[11],y=a[12],w=a[13],B=a[14],a=a[15],E=b[0],Q=b[1],H=b[2],R=b[3],Y=b[4],Z=b[5],ea=b[6],ma=b[7],wa=b[8],Ea=b[9],Aa=b[10],S=b[11],Ia=b[12],vb=b[13],wb=b[14],b=b[15];c[0]=d*E+j*Q+s*H+y*R;c[1]=e*E+m*Q+A*H+w*R;c[2]=f*E+q*Q+u*H+B*R;c[3]=h*E+v*Q+t*H+a*R;c[4]=d*Y+j*Z+s*ea+y*ma;c[5]=e*Y+m*Z+A*ea+w*ma;c[6]=f*Y+q*Z+u*ea+B*ma;c[7]=h*Y+v*Z+t*ea+a*ma;c[8]=d*wa+j*Ea+s*Aa+y*S;c[9]=e*wa+m*Ea+A*Aa+w*S;c[10]=f*wa+
q*Ea+u*Aa+B*S;c[11]=h*wa+v*Ea+t*Aa+a*S;c[12]=d*Ia+j*vb+s*wb+y*b;c[13]=e*Ia+m*vb+A*wb+w*b;c[14]=f*Ia+q*vb+u*wb+B*b;c[15]=h*Ia+v*vb+t*wb+a*b}function cf(a,b){return a.length==b.length&&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 df(a,b,c){var d=b[0],e=b[1],b=b[2];c[0]=d*a[0]+e*a[4]+b*a[8]+a[12];c[1]=d*a[1]+e*a[5]+b*a[9]+a[13];c[2]=d*a[2]+e*a[6]+b*a[10]+a[14];return c}function ef(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 ff(a,b,c){Ye(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 xf(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],h=a[4],j=a[5],m=a[6],q=a[7],v=Math.cos(b),s=Math.sin(b);a[0]=c*v+h*s;a[1]=d*v+j*s;a[2]=e*v+m*s;a[3]=f*v+q*s;a[4]=c*-s+h*v;a[5]=d*-s+j*v;a[6]=e*-s+m*v;a[7]=f*-s+q*v}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function yf(a,b,c){ud.call(this,b,c);this.n=a}D(yf,L);yf.prototype.hash=function(){return(this.x<<this.n)+this.y};function zf(a){var b=Array(a.n),c=1<<a.n-1,d,e;for(d=0;d<a.n;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}yf.prototype.toString=function(){return[this.n,this.x,this.y].join("/")};function Af(a,b,c,d){this.h=a;this.l=b;this.j=c;this.k=d}D(Af,Re);Af.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.j&&this.l<=a.y&&a.y<=this.k};Af.prototype.ga=function(){return this.k-this.l+1};Af.prototype.ma=function(){return this.j-this.h+1};function Bf(a,b){this.b=a;this.a=b||k};function Cf(a,b){tc.call(this);this.fa=a;this.a=b}D(Cf,ge);Cf.prototype.b=function(){return z(this).toString()};function Df(a){this.d=a;this.f=8;this.c=0;this.a=[];this.b={}}function Ef(a,b,c,d){if(0==b.a){var e=b.b();if(!(e in a.b)){var f=a.d(b,c,d);Infinity!=f&&(a.a.push([f,b,c,d]),a.b[e]=i,Ff(a,0,a.a.length-1))}}}Df.prototype.e=function(){--this.c};function Gf(a,b){for(var c=a.a,d=c.length,e=c[b],f=b;b<d>>1;){var h=2*b+1,j=2*b+2,h=j<d&&c[j][0]<c[h][0]?j:h;c[b]=c[h];b=h}c[b]=e;Ff(a,f,b)}function Ff(a,b,c){for(var a=a.a,d=a[c];c>b;){var e=c-1>>1;if(a[e][0]>d[0])a[c]=a[e],c=e;else break}a[c]=d};/*
Latitude/longitude spherical geodesy formulae taken from
http://www.movable-type.co.uk/scripts/latlong.html
Licenced under CC-BY-3.0.
*/
function Ee(a,b){var c=a.y*Math.PI/180,d=b.y*Math.PI/180,e=(d-c)/2,f=(b.x-a.x)*Math.PI/180/2,c=Math.sin(e)*Math.sin(e)+Math.sin(f)*Math.sin(f)*Math.cos(c)*Math.cos(d);return 2*Fe.a*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))};var Fe=new function(){this.a=6370997};var Ge="object"==typeof Proj4js,He={Uc:"degrees",Ne:"ft",Re:"m"},Ie={};Ie.degrees=2*Math.PI*Fe.a/360;Ie.ft=0.3048;Ie.m=1;function Je(a){this.a=a.code;this.b=a.units;this.g=a.extent;this.d=z(a.axisOrientation)?a.axisOrientation:"enu";this.Lb=z(a.global)?a.global:l;this.f=k}p=Je.prototype;p.qd=n("a");p.I=n("g");p.td=n("b");p.sc=function(){return Ie[this.b]};p.md=n("d");p.$d=n("Lb");function Ke(a,b){var c={units:a.units,axisOrientation:a.axis};Wa(c,b);Je.call(this,c);this.Ic=a;this.e=k}D(Ke,Je);
Ke.prototype.c=function(a,b){if("degrees"==this.b)return a;this.e===k&&(this.e=Le(this,Me({code:"EPSG:4326",extent:k})));var c=[b.x-a/2,b.y,b.x+a/2,b.y,b.x,b.y-a/2,b.x,b.y+a/2],c=this.e(c,c,2),c=(Ee(new L(c[0],c[1]),new L(c[2],c[3]))+Ee(new L(c[4],c[5]),new L(c[6],c[7])))/2;"ft"==this.b&&(c/=0.3048);return c};var Ne={},Oe={},Pe={};function Qe(a){F(a,function(a){Re(a)});F(a,function(b){F(a,function(a){b!==a&&Se(b,a,Te)})})}function Re(a){Oe[a.a]=a;Se(a,a,Te)}
function Ue(a){return a!=k?ga(a)?Ve(a):a:Ve("EPSG:3857")}function Se(a,b,c){a=a.a;b=b.a;a in Pe||(Pe[a]={});Pe[a][b]=c}function Ve(a){var b;a instanceof Je?b=a:ga(a)?(b=Oe[a],Ge&&!z(b)&&(b=Me({code:a,extent:k})),z(b)||(b=k)):b=k;return b}function Me(a){var b=a.code,c=Ne[b];if(!z(c)){var d=new Proj4js.Proj(b),e=d.srsCode,c=Ne[e];z(c)||(a=Ua(a),a.code=e,c=new Ke(d,a),Ne[e]=c);Ne[b]=c}return c}function We(a,b){var c=Ve(a),d=Ve(b);return Le(c,d)}
function Le(a,b){var c=a.a,d=b.a,e;c in Pe&&d in Pe[c]&&(e=Pe[c][d]);if(Ge&&!z(e)){var f;f=(a instanceof Ke?a:Me({code:c,extent:k})).Ic;var g;g=(b instanceof Ke?b:Me({code:d,extent:k})).Ic;e=function(a,b,c){var d=a.length,c=1<c?c:2;z(b)||(b=2<c?a.slice():Array(d));for(var e,y=0;y<d;y+=c)e=new Proj4js.Point(a[y],a[y+1]),e=Proj4js.transform(f,g,e),b[y]=e.x,b[y+1]=e.y;return b};Se(a,b,e)}z(e)||(e=Xe);return e}function Xe(a,b){if(z(b)&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}
function Te(a,b){var c;if(z(b)){c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c};function Ye(a){bc.call(this);this.f=Ve(a.projection);this.t=z(a.extent)?a.extent:z(a.projection)?this.f.I():k;this.e=z(a.attributions)?a.attributions:k}D(Ye,rd);Ye.prototype.oa=n("e");Ye.prototype.I=n("t");Ye.prototype.c=ud;function R(a){M.call(this);this.g=a.source;this.i(z(a.brightness)?a.brightness:0);this.r(z(a.contrast)?a.contrast:1);this.u(z(a.hue)?a.hue:0);this.z(z(a.opacity)?a.opacity:1);this.G(z(a.saturation)?a.saturation:1);this.H(z(a.visible)?a.visible:j);this.g.c()||vc(this.g,"load",this.K,l,this)}D(R,M);R.prototype.b=function(){return this.q("brightness")};R.prototype.getBrightness=R.prototype.b;R.prototype.c=function(){return this.q("contrast")};R.prototype.getContrast=R.prototype.c;R.prototype.d=function(){return this.q("hue")};
R.prototype.getHue=R.prototype.d;R.prototype.e=function(){return this.q("opacity")};R.prototype.getOpacity=R.prototype.e;R.prototype.f=function(){return this.q("saturation")};R.prototype.getSaturation=R.prototype.f;R.prototype.$=n("g");R.prototype.a=function(){return this.q("visible")};R.prototype.getVisible=R.prototype.a;R.prototype.K=function(){K(this,"load")};R.prototype.i=function(a){a=Hb(a,-1,1);a!=this.b()&&this.p("brightness",a)};R.prototype.setBrightness=R.prototype.i;
R.prototype.r=function(a){a=Math.max(0,a);a!=this.c()&&this.p("contrast",a)};R.prototype.setContrast=R.prototype.r;R.prototype.u=function(a){a!=this.d()&&this.p("hue",a)};R.prototype.setHue=R.prototype.u;R.prototype.z=function(a){a=Hb(a,0,1);a!=this.e()&&this.p("opacity",a)};R.prototype.setOpacity=R.prototype.z;R.prototype.G=function(a){a=Math.max(0,a);a!=this.f()&&this.p("saturation",a)};R.prototype.setSaturation=R.prototype.G;R.prototype.H=function(a){a=!!a;a!=this.a()&&this.p("visible",a)};
R.prototype.setVisible=R.prototype.H;function Ze(a,b,c){hc.call(this,a);this.map=b;this.jb=l;this.d=z(c)?c:k}D(Ze,hc);Ze.prototype.D=function(){Ze.w.D.call(this);this.jb=j};function $e(a,b){Jb.call(this,a,b)}D($e,Jb);function af(a,b,c,d){Ze.call(this,a,b,d);this.a=c;this.f=this.e=k}D(af,Ze);af.prototype.b=function(){this.e===k&&(this.e=bf(this.map,cf(this)));return this.e};function cf(a){if(a.f===k){var b=Ic(a.a,a.map.b);a.f=new $e(b.x,b.y)}return a.f}
function df(a){this.a=a;this.e=k;this.b=l;this.c=this.g=this.d=this.t=this.i=this.f=k;a=this.a.b;this.i=H(a,["click","dblclick"],this.kc,l,this);this.t=H(a,"mousedown",this.Ld,l,this);this.g=[H(a,["touchstart","MSPointerDown"],this.Wd,l,this),H(a,["touchmove","MSPointerMove"],this.Vd,l,this),H(a,["touchend","MSPointerUp"],this.Ud,l,this)]}D(df,rd);p=df.prototype;p.kc=function(a){if(!this.b){var b=a.type;K(this,0==this.f||"dblclick"==b?new af(ef,this.a,a):new af(ff,this.a,a))}};
p.Nd=function(a){this.e&&(this.c=k,F(this.d,J),this.e=this.d=k,this.b&&K(this,new af(gf,this.a,a)))};p.Ld=function(a){K(this,new af(hf,this.a,a));this.e||(this.c=a,this.e={clientX:a.clientX,clientY:a.clientY},this.b=l,this.d=[H(document,"mousemove",this.Md,l,this),H(document,"mouseup",this.Nd,l,this)],a.D())};p.Md=function(a){var b;this.b||(this.b=j,b=new af(jf,this.a,this.c),K(this,b));this.e={clientX:a.clientX,clientY:a.clientY};b=new af(kf,this.a,a);K(this,b)};
p.Wd=function(a){a.D();this.c=a;this.b=l;K(this,new af(lf,this.a,a))};p.Vd=function(a){this.b=j;K(this,new af(mf,this.a,a))};p.Ud=function(a){K(this,new af(nf,this.a,a));this.b||(a=qa(),this.f=!this.f||250<a-this.f?a:0,this.kc(this.c));this.c=k};p.s=function(){J(this.i);J(this.t);this.d!==k&&(F(this.d,J),this.d=k);this.g!==k&&(F(this.g,J),this.g=k);df.w.s.call(this)};
var ff="click",ef="dblclick",hf="down",jf="dragstart",kf="drag",gf="dragend",lf="touchstart",mf="touchmove",nf="touchend",of={Fe:ff,Ge:ef,Ie:hf,Le:jf,Je:kf,Ke:gf,$e:lf,Ze:mf,Ye:nf};function pf(){M.call(this);this.e=[0,0]}D(pf,M);function qf(a,b){a.e[1]+=b};function rf(a,b){var c=a.length;if(a[0]<=b)return 0;if(!(b<=a[c-1])){var d;for(d=1;d<c;++d){if(a[d]==b)return d;if(a[d]<b)return a[d-1]-b<b-a[d]?d-1:d}}return c-1};function sf(a){this.resolution=a;this.rotation=function(a,c){if(z(a))return 0.1>=Math.abs(a+c)?0:a+c}};var S={Ib: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},hd:function(a){return a*a*a},Ia:function(a){return 1-Math.pow(1-a,3)},jd:function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},Aa:function(a){return 3*a*a-2*a*a*a},Ac:aa(),Rc:function(a){return 0.5>a?S.Aa(2*a):1-S.Aa(2*(a-0.5))}};var tf={Ib:function(a){var b=a.resolution,c=z(a.start)?a.start:qa(),d=z(a.duration)?a.duration:1E3,e=z(a.easing)?a.easing:S.Rc;return function(a,g){if(g.time<c)return g.S=j,g.C[0]+=1,j;if(g.time<c+d){var i=e((g.time-c)/d),m=b-g.v.resolution;g.S=j;g.v.resolution+=i*m;g.C[0]+=1;return j}return l}},aa:function(a){var b=a.source,c=z(a.start)?a.start:qa(),d=b.x,e=b.y,f=z(a.duration)?a.duration:1E3,g=z(a.easing)?a.easing:S.Aa;return function(a,b){if(b.time<c)return b.S=j,b.C[0]+=1,j;if(b.time<c+f){var q=
1-g((b.time-c)/f),t=d-b.v.center.x,r=e-b.v.center.y;b.S=j;b.v.center.x+=q*t;b.v.center.y+=q*r;b.C[0]+=1;return j}return l}},rotate:function(a){var b=a.rotation,c=z(a.start)?a.start:qa(),d=z(a.duration)?a.duration:1E3,e=z(a.easing)?a.easing:S.Aa;return function(a,g){if(g.time<c)return g.S=j,g.C[0]+=1,j;if(g.time<c+d){var i=1-e((g.time-c)/d),m=b-g.v.rotation;g.S=j;g.v.rotation+=i*m;g.C[0]+=1;return j}return l}},zoom:function(a){var b=a.resolution,c=z(a.start)?a.start:qa(),d=z(a.duration)?a.duration:
1E3,e=z(a.easing)?a.easing:S.Aa;return function(a,g){if(g.time<c)return g.S=j,g.C[0]+=1,j;if(g.time<c+d){var i=1-e((g.time-c)/d),m=b-g.v.resolution;g.S=j;g.v.resolution+=i*m;g.C[0]+=1;return j}return l}}};function T(a){pf.call(this);var a=a||{},b={};b.center=z(a.center)?a.center:k;b.projection=Ue(a.projection);if(z(a.resolution))b.resolution=a.resolution;else if(z(a.zoom)){var c=b.projection.I(),c=Math.max(c.j-c.h,c.l-c.k);b.resolution=c/(256*Math.pow(2,a.zoom))}b.rotation=a.rotation;this.ub(b);if(z(a.resolutions))var d=a.resolutions,a=function(a,b){if(z(a)){var c=rf(d,a),c=Hb(c+b,0,d.length-1);return d[c]}};else{z(a.maxResolution)&&z(a.numZoomLevels)&&z(a.zoomFactor)?(b=a.maxResolution,c=a.numZoomLevels,
a=a.zoomFactor):(a=Ue(a.projection).I(),b=Math.max(a.j-a.h,a.l-a.k)/256,c=29,a=2);var e=a,f=b,g=c-1,a=function(a,b){if(z(a)){var c=Math.floor(Math.log(f/a)/Math.log(e)+0.5),c=Math.max(c+b,0);z(g)&&(c=Math.min(c,g));return f/Math.pow(e,c)}}}this.b=new sf(a)}D(T,pf);T.prototype.N=function(){return this.q("center")};T.prototype.getCenter=T.prototype.N;T.prototype.I=function(a){var b=this.N(),c=this.Q();return new P(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)};T.prototype.Fc=function(){return this.q("projection")};
T.prototype.getProjection=T.prototype.Fc;T.prototype.Q=function(){return this.q("resolution")};T.prototype.getResolution=T.prototype.Q;T.prototype.V=function(){return this.q("rotation")||0};T.prototype.getRotation=T.prototype.V;T.prototype.g=function(){return this};T.prototype.f=function(a,b){this.a(a.a());var c=Math.max((a.j-a.h)/b.width,(a.l-a.k)/b.height),c=this.b.resolution(c,0);this.c(c)};T.prototype.Oa=function(){return this.N()!=k&&z(this.Q())};T.prototype.a=function(a){this.p("center",a)};
T.prototype.setCenter=T.prototype.a;T.prototype.i=function(a){this.p("projection",a)};T.prototype.setProjection=T.prototype.i;T.prototype.c=function(a){this.p("resolution",a)};T.prototype.setResolution=T.prototype.c;T.prototype.d=function(a){this.p("rotation",a)};T.prototype.setRotation=T.prototype.d;T.prototype.aa=function(a,b,c){var d=this.N();z(d)&&(z(c)&&(uf(a),a.ga(tf.aa({source:d,duration:c,easing:S.Ac}))),this.a(new L(d.x+b.x,d.y+b.y)))};
T.prototype.rotate=function(a,b,c,d){b=this.b.rotation(b,0);vf(this,a,b,c,d)};function vf(a,b,c,d,e){if(c!=k){var f=a.V(),g=a.N();z(f)&&(z(g)&&z(e))&&(uf(b),b.ga(tf.rotate({rotation:f,duration:e,easing:S.Ia})),z(d)&&b.ga(tf.aa({source:g,duration:e,easing:S.Ia})));if(d!=k){var e=a.N(),i=new L(e.x-d.x,e.y-d.y);i.rotate(c-a.V());i.x+=d.x;i.y+=d.y;wf(b,function(){this.a(i);this.d(c)},a)}else a.d(c)}}T.prototype.zoom=function(a,b,c,d){b=this.b.resolution(b,0);xf(this,a,b,c,d)};
function yf(a,b,c,d,e){var f=a.Q(),c=a.b.resolution(f,c);xf(a,b,c,d,e)}function xf(a,b,c,d,e){if(c!=k){var f=a.Q(),g=a.N();z(f)&&(z(g)&&z(e))&&(uf(b),b.ga(tf.zoom({resolution:f,duration:e,easing:S.Ia})),z(d)&&b.ga(tf.aa({source:g,duration:e,easing:S.Ia})));if(d!=k){var e=a.N(),f=a.Q(),i=new L(d.x-c*(d.x-e.x)/f,d.y-c*(d.y-e.y)/f);wf(b,function(){this.a(i);this.c(c)},a)}else a.c(c)}};function zf(a){bc.call(this);this.element=z(a.element)?a.element:k;this.r=a.target;this.b=k;z(a.map)&&this.a(a.map)}D(zf,bc);zf.prototype.s=function(){Xb(this.element);zf.w.s.call(this)};zf.prototype.a=function(a){this.b===k||Xb(this.element);this.b=a;this.b!==k&&(z(this.r)?this.r:a.z).appendChild(this.element)};function Af(a){a=z(a)?a:{};this.g=Tb("UL");var b=Rb("DIV",{"class":"ol-attribution ol-unselectable"},this.g);zf.call(this,{element:b,map:a.map,target:a.target});this.f=j;this.c={};this.d={};this.e=k}D(Af,zf);
Af.prototype.i=function(a){var b=a.d;if(b===k)this.f&&(Mc(this.element,l),this.f=l);else{var c={},d={},a=this.b.e();z(a)&&a.forEach(function(a){a=a.$();d[A(a).toString()]=a;a=a.oa();if(a!==k){var b,e;for(e=0;e<a.length;++e)b=a[e],s=A(b).toString(),c[s]=j}});var a=Ua(b.attributions),b=b.Va,e={},f,g,i,m,q,t;for(t in b)if(f=d[t],q=f.oa(),q!==k){g=b[t];for(f=0;f<q.length;++f)if(i=q[f],m=A(i).toString(),!(m in e)){var r;a:if(i.a===k)r=j;else{var y=r=h,w=h;for(w in g)if(w in i.a){y=g[w];for(r=0;r<i.a[w].length;++r)if(fe(i.a[w][r],
y)){r=j;break a}}r=l}r&&(e[m]=i)}}Wa(a,e);t=Ca(Qa(a),Number);Ma(t);for(var s,b=0;b<t.length;++b)s=t[b].toString(),s in this.c?this.d[s]||(Mc(this.c[s],j),this.d[s]=j):(e=Tb("LI"),e.innerHTML=a[s].b,this.g.appendChild(e),this.c[s]=e,this.d[s]=j),delete c[s];for(s in c)Xb(this.c[s]),delete this.c[s],delete this.d[s];a=0!=t.length;this.f!=a&&(Mc(this.element,a),this.f=a)}};Af.prototype.a=function(a){this.e!==k&&(F(this.e,J),this.e=k);Af.w.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.i,l,this)])};function Bf(a){var a=z(a)?a:{},b=Rb("A",{href:"#zoomIn","class":"ol-zoom-in"});H(b,["touchend","click"],this.d,l,this);var c=Rb("A",{href:"#zoomOut","class":"ol-zoom-out"});H(c,["touchend","click"],this.e,l,this);b=Rb("DIV","ol-zoom ol-unselectable",b,c);zf.call(this,{element:b,map:a.map,target:a.target});this.c=z(a.delta)?a.delta:1}D(Bf,zf);Bf.prototype.d=function(a){a.D();a=this.b;uf(a);yf(a.a(),a,this.c,h,250)};Bf.prototype.e=function(a){a.D();a=this.b;uf(a);yf(a.a(),a,-this.c,h,250)};function Cf(a,b){var c=z(a)?a:{},d=[];if(z(c.attribution)?c.attribution:1)d.push(new Af(z(c.ee)?c.ee:h));if(z(c.zoom)?c.zoom:1)d.push(new Bf(z(c.ze)?c.ze:h));z(b)&&Ja(d,b);return d};function Df(a,b,c){this.e=a;this.d=b;this.f=c;this.a=[];this.b=this.c=0}function Ef(a){for(var b=qa(),c=a.a.length-1,d=c-1;0<=d&&a.a[d].Ua>b-a.f;)d--;if(0<=d){var b=a.a[d],c=a.a[c],d=c.x-b.x,e=c.y-b.y;a.c=Math.atan2(e,d);a.b=Math.sqrt(d*d+e*e)/(c.Ua-b.Ua);return a.b>a.d}return l}Df.prototype.aa=function(a){var b=this.e,c=this.b,d=this.d,e=Math.log(this.d/this.b)/this.e;return tf.aa({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function Ff(){};function Gf(a){this.a=a}D(Gf,Ff);Gf.prototype.ra=function(a){var b=a.a;if(a.type==ef&&(Sd||nc(a.a))){var c=a.map,d=a.b(),e=a.a.qa?-this.a:this.a;yf(c.a(),c,e,d,250);a.D();b.D()}};function Hf(a){return a.fa&&!a.xb&&a.qa}function If(a){return!a.fa&&!a.xb&&!a.qa}function Jf(a){return!a.fa&&!a.xb&&a.qa};function Kf(){this.e=l;this.r=this.Qa=this.i=this.g=0;this.Ta=this.f=k}D(Kf,Ff);p=Kf.prototype;p.Ob=ba;p.kb=ba;p.lb=td;p.yc=ba;p.ra=function(a){var b=a.map;if(b.Oa()){var b=b.a(),c=a.a;a.type==hf&&this.yc(a);this.e?a.type==kf?(this.d=c.clientX-this.g,this.b=c.clientY-this.i,this.Ob(a)):a.type==gf&&(this.d=c.clientX-this.g,this.b=c.clientY-this.i,this.kb(a),this.e=l):a.type==jf&&(this.g=c.clientX,this.i=c.clientY,this.b=this.d=0,this.f=b.N(),this.Ta=a.b(),this.lb(a)&&(this.e=j,a.D()))}};function Lf(a,b){Kf.call(this);this.t=a;this.a=b;this.c=k}D(Lf,Kf);Lf.prototype.Ob=function(a){this.a&&this.a.a.push({x:a.a.clientX,y:a.a.clientY,Ua:qa()});var a=a.map,b=a.a(),c=b.Q(),d=b.V(),c=new L(-c*this.d,c*this.b);c.rotate(d);d=new L(this.f.x+c.x,this.f.y+c.y);uf(a);b.a(d)};
Lf.prototype.kb=function(a){var b=a.map,a=b.a();qf(a,-1);if(this.a&&Ef(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.N();this.c=this.a.aa(e);b.ga(this.c);e=Mf(b,e);b=bf(b,new $e(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}};Lf.prototype.lb=function(a){var b=a.a;if(this.t(b)){if(this.a){var c=this.a;c.a.length=0;c.c=0;c.b=0;this.a.a.push({x:b.clientX,y:b.clientY,Ua:qa()})}a=a.map;uf(a);qf(a.a(),1);return j}return l};
Lf.prototype.yc=function(a){var b=a.map,c=b.a();this.c!==k&&Ga(b.i,this.c)&&(uf(b),c.a(a.d.v.center),this.c=k)};function Nf(a){Kf.call(this);this.c=a}D(Nf,Kf);Nf.prototype.Ob=function(a){var b=a.map,c=b.f(),a=cf(a),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(z(this.a)){var a=c-this.a,d=b.a();uf(b);vf(d,b,d.V()-a)}this.a=c};Nf.prototype.kb=function(a){var a=a.map,b=a.a();b.rotate(a,b.V(),h,250);qf(b,-1)};Nf.prototype.lb=function(a){var b=a.a;return nc(b)&&this.c(b)?(a=a.map,b=a.a(),uf(a),this.a=h,qf(b,1),j):l};function Of(a){var b=Rb("DIV","ol-dragbox");this.c=k;this.e=a.Ta;this.d=k;zf.call(this,{element:b,map:a.map})}D(Of,zf);Of.prototype.a=function(a){this.d!==k&&(J(this.d),this.d=k);a!==k&&(this.c=Mf(a,this.e),Ec(this.element,this.c),Nc(this.element,new de(0,0)),this.d=H(a,kf,this.f,l,this));Of.w.a.call(this,a)};Of.prototype.f=function(a){var b=this.b,a=a.b(),b=Mf(b,a);Ec(this.element,new $e(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));Nc(this.element,new de(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function Pf(a){Kf.call(this);this.c=a;this.a=k}D(Pf,Kf);Pf.prototype.kb=function(a){this.a.a(k);this.a=k;if(64<=this.d*this.d+this.b*this.b){var b=a.map,c=ge(this.Ta,a.b());wf(b,function(){var a=b.a(),e=b.f();a.f(c,e);a.d(0)})}};Pf.prototype.lb=function(a){var b=a.a;return nc(b)&&this.c(b)?(this.a=new Of({map:a.map,Ta:this.Ta}),j):l};function Qf(a){a=z(a)?a:{};this.a=z(a.delta)?a.delta:128}D(Qf,Ff);Qf.prototype.ra=function(a){if("key"==a.type){var b=a.a,c=b.za;if(40==c||37==c||39==c||38==c){var d=a.map,e=d.a(),f=e.Q(),g=e.V(),f=f*this.a,i=0,m=0;40==c?m=-f:37==c?i=-f:39==c?i=f:m=f;c=new L(i,m);c.rotate(g);e.aa(d,c,100);b.D();a.D()}}};function Rf(a){a=z(a)?a:{};this.a=z(a.delta)?a.delta:1}D(Rf,Ff);Rf.prototype.ra=function(a){if("key"==a.type){var b=a.a,c=b.hb;if(43==c||45==c){var d=a.map,c=43==c?this.a:-this.a;uf(d);yf(d.a(),d,c,h,100);b.D();a.D()}}};function Sf(){this.a=0;this.c=k;this.d=this.b=h}D(Sf,Ff);Sf.prototype.ra=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a;this.c=a.b();this.a+=c.b/3;z(this.b)||(this.b=qa());var d=Math.max(80-(qa()-this.b),0);v.clearTimeout(this.d);this.d=v.setTimeout(na(this.e,this,b),d);a.D();c.D()}};Sf.prototype.e=function(a){var b=Hb(this.a,-1,1),c=a.a();uf(a);yf(c,a,-b,this.c,250);this.a=0;this.c=k;this.d=this.b=h};function Tf(){this.g=l;this.i={};this.targetTouches=[]}D(Tf,Ff);function Uf(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return new $e(c/b,d/b)}Tf.prototype.e=ba;Tf.prototype.d=td;Tf.prototype.f=td;Tf.prototype.ra=function(a){var b=a.a.L;z(b.targetTouches)?this.targetTouches=b.targetTouches:(a.type==nf?delete this.i[b.pointerId]:this.i[b.pointerId]=b,this.targetTouches=Pa(this.i));this.g&&(a.type==mf?this.e(a):a.type==nf&&(this.g=this.d(a)));a.type==lf&&(this.g=this.f(a))};function Vf(a){Tf.call(this);this.a=a;this.b=this.c=k}D(Vf,Tf);Vf.prototype.e=function(a){var b=Uf(this.targetTouches);if(this.b!==k){this.a&&this.a.a.push({x:b.x,y:b.y,Ua:qa()});var c=this.b.x-b.x,d=b.y-this.b.y,a=a.map.a(),c=new L(c,d),d=a.Q();c.x*=d;c.y*=d;c=c.rotate(a.V());d=a.N();c.x+=d.x;c.y+=d.y;a.a(c)}this.b=b};
Vf.prototype.d=function(a){var b=a.map,a=b.a();if(0==this.targetTouches.length){qf(a,-1);if(this.a&&Ef(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.N();this.c=this.a.aa(e);b.ga(this.c);e=Mf(b,e);b=bf(b,new $e(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}return l}this.b=k;return j};Vf.prototype.f=function(a){if(1<=this.targetTouches.length){var b=a.map,c=b.a();this.b=k;this.c!==k&&Ga(b.i,this.c)&&(uf(b),c.a(a.d.v.center),this.c=k);this.a&&(a=this.a,a.a.length=0,a.c=0,a.b=0);qf(c,1);return j}return l};function Wf(a){Tf.call(this);this.a=l;this.b=0;this.t=z(a)?a:0.3}D(Wf,Tf);Wf.prototype.e=function(a){var b=0,c=this.targetTouches[0],d=this.targetTouches[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);z(this.c)&&(b=c-this.c,this.b+=b,!this.a&&Math.abs(this.b)>this.t&&(this.a=j));this.c=c;var a=a.map,c=a.a(),d=Jc(a.b),e=Uf(this.targetTouches);e.x-=d.x;e.y-=d.y;d=bf(a,e);this.a&&vf(c,a,c.V()+b,d)};
Wf.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a();this.a&&b.rotate(a,b.V(),h,250);qf(b,-1);return l}return j};Wf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.c=h,this.a=l,this.b=0,qf(a,1),j):l};function Xf(){Tf.call(this)}D(Xf,Tf);Xf.prototype.e=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);z(this.a)&&(b=this.a/e);this.a=e;a=a.map;e=a.a();c=Jc(a.b);d=Uf(this.targetTouches);d.x-=c.x;d.y-=c.y;c=bf(a,d);xf(e,a,e.Q()*b,c)};Xf.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a();b.zoom(a,b.Q(),h,250);qf(b,-1);return l}return j};
Xf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.a=h,qf(a,1),j):l};function Yf(a,b){var c=z(a)?a:{},d=new N;(z(c.rotate)?c.rotate:1)&&d.push(new Nf(Hf));if(z(c.fe)?c.fe:1)d.push(new Gf(z(c.Ae)?c.Ae:1));(z(c.ke)?c.ke:1)&&d.push(new Vf(new Df(-0.005,0.05,100)));(z(c.le)?c.le:1)&&d.push(new Wf);(z(c.me)?c.me:1)&&d.push(new Xf);(z(c.ge)?c.ge:1)&&d.push(new Lf(If,new Df(-0.005,0.05,100)));if(z(c.he)?c.he:1)d.push(new Qf),d.push(new Rf);(z(c.ie)?c.ie:1)&&d.push(new Sf);(z(c.je)?c.je:1)&&d.push(new Pf(Jf));if(z(b))for(c=0;c<b.length;++c)d.push(b[c]);return d};function Zf(a){Je.call(this,{code:a,units:"m",extent:$f,global:j})}D(Zf,Je);var ag=6378137*Math.PI,$f=new P(-ag,-ag,ag,ag),bg=Ca(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new Zf(a)});Zf.prototype.c=function(a,b){return a/((Math.exp(b.y/6378137)+Math.exp(-(b.y/6378137)))/2)};function cg(a,b){Je.call(this,{code:a,units:"degrees",extent:dg,axisOrientation:b,global:j})}D(cg,Je);var dg=new P(-180,-90,180,90),eg=[new cg("CRS:84"),new cg("EPSG:4326","neu"),new cg("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new cg("urn:ogc:def:crs:OGC:1.3:CRS84")];cg.prototype.c=aa();function fg(a,b,c,d,e){this.f=e;this.g=a;this.i=c;this.e=b;this.b=new Image;d!==k&&(this.b.crossOrigin=d);this.d={};this.c=k;this.a=0}D(fg,rd);fg.prototype.oa=n("f");fg.prototype.I=n("g");function gg(a,b){if(z(b)){var c,d=A(b);if(d in a.d)return a.d[d];c=Ra(a.d)?a.b:a.b.cloneNode(l);return a.d[d]=c}return a.b}fg.prototype.t=function(){this.a=3;F(this.c,J);this.c=k;K(this,"change")};fg.prototype.r=function(){this.a=2;F(this.c,J);this.c=k;K(this,"change")};
function hg(a){0==a.a&&(a.a=1,a.c=[vc(a.b,"error",a.t,l,a),vc(a.b,"load",a.r,l,a)],a.b.src=a.i)};function ig(a){this.a=a.resolutions;this.i=this.a.length;this.d=z(a.origin)?a.origin:k;this.f=k;z(a.origins)&&(this.f=a.origins);this.c=k;z(a.tileSizes)&&(this.c=a.tileSizes);this.e=z(a.tileSize)?a.tileSize:this.c===k?new de(256,256):k}ig.prototype.b=function(a,b,c){for(var d=jg(this,a),a=a.n-1;0<=a&&!b.call(c,a,kg(this,d,this.a[a]));)--a};function lg(a,b){return a.d===k?a.f[b]:a.d}ig.prototype.fb=n("a");
function kg(a,b,c){var d=mg(a,new L(b.h,b.k),c),a=mg(a,new L(b.j,b.l),c,j);return new xe(d.x,d.y,a.x,a.y)}function ng(a,b){var c=lg(a,b.n),d=a.a[b.n],e=og(a,b.n);return new L(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function jg(a,b){var c=lg(a,b.n),d=a.a[b.n],e=og(a,b.n),f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new P(f,c,f+e.width*d,c+e.height*d)}
function mg(a,b,c,d){var e=rf(a.a,c),f=c/a.a[e],g=lg(a,e),i=og(a,e),a=f*(b.x-g.x)/(c*i.width),b=f*(b.y-g.y)/(c*i.height);d?(a=Math.ceil(a)-1,b=Math.ceil(b)-1):(a=Math.floor(a),b=Math.floor(b));return new ve(e,a,b)}function og(a,b){return a.e===k?a.c[b]:a.e}
function pg(a){var b=a.f;if(b===k){for(var b=a.I(),c=Math.max(b.j-b.h,b.l-b.k),d=z(h)?h:new de(256,256),e=Array((z(h)?NaN:42)+1),c=c/d.width,f=0,g=e.length;f<g;++f)e[f]=c/Math.pow(2,f);b=new ig({origin:b.gb(),resolutions:e,tileSize:d});a.f=b}return b};function qg(a){Ye.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.H=z(a.opaque)?a.opaque:l;this.tileGrid=z(a.tileGrid)?a.tileGrid:k}D(qg,Ye);qg.prototype.g=td;qg.prototype.d=function(a,b,c,d){var e=j,f,g,i,m;for(i=d.h;i<=d.j;++i)for(m=d.k;m<=d.l;++m)if(f=new ve(c,i,m),g=f.toString(),!a[c]||!a[c][g])f=b(f),f===k?e=l:(a[c]||(a[c]={}),a[c][g]=f);return e};qg.prototype.fb=function(){return this.tileGrid.fb()};
function rg(a,b,c,d){for(var e,f,g;0<=b;--b){e=kg(d,c,d.a[b]);for(f=e.h;f<=e.j;++f)for(g=e.k;g<=e.l;++g)a.r(b+"/"+f+"/"+g)}}qg.prototype.r=ba;function sg(a,b){M.call(this);this.r=a;this.a=b;this.u={};H(this.a,Yd("brightness"),this.Qb,l,this);H(this.a,Yd("contrast"),this.Rb,l,this);H(this.a,Yd("hue"),this.Sb,l,this);H(this.a,"load",this.Dd,l,this);H(this.a,Yd("opacity"),this.Ed,l,this);H(this.a,Yd("saturation"),this.Tb,l,this);H(this.a,Yd("visible"),this.Gd,l,this)}D(sg,M);function tg(a){K(a,"change")}p=sg.prototype;p.ea=n("r");p.Qb=ba;p.Rb=ba;p.Sb=ba;p.Pb=function(a){2===a.target.a&&uf(this.r.map)};p.Dd=function(){tg(this)};p.Ed=function(){tg(this)};
p.Tb=ba;p.Gd=function(){tg(this)};p.Td=function(a){a=a.target;2===a.a&&uf(this.r.map);delete this.u[a.b()]};function ug(a,b){var c=b.b();c in a.u||(a.u[c]=j,vc(b,"change",a.Td,l,a))}function vg(a,b){b.g()&&a.Ca.push(oa(function(a,b,e){b=A(a).toString();a.Ja(e.Va[b])},b))}function wg(a,b){if(b!=k){var c,d;for(c=0;c<b.length;++c)d=b[c],a[A(d).toString()]=d}}
function xg(a,b,c,d){b=A(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],a.h=Math.min(a.h,d.h),a.k=Math.min(a.k,d.k),a.j=Math.max(a.j,d.j),a.l=Math.max(a.l,d.l)):a[b][c]=d:(a[b]={},a[b][c]=d)}function yg(a,b,c){b=A(b).toString();c=c.toString();b in a||(a[b]={});a[b][c]=j}function zg(a,b,c,d){return function(e){e=b.b(e,c,d);return a(e)?e:k}}function Ag(a,b,c){return new L(b*(Math.round(a.x/b)+c.width%2/2),b*(Math.round(a.y/b)+c.height%2/2))};function Bg(a,b){bc.call(this);this.ma=a;this.map=b;this.d={};this.G=H(b,Yd(Cg),this.Id,l,this);this.e=k;this.u={}}D(Bg,bc);p=Bg.prototype;p.Ba=function(a){var b=this.Za(a),a=A(a);this.d[a]=b;this.u[a]=H(b,"change",this.Fd,l,this)};
function Dg(a){var b=a.v,c=a.nc;oe(c);se(c,a.size.width/2,a.size.height/2);te(c,1/b.resolution,-1/b.resolution);ue(c,-b.rotation);se(c,-b.center.x,-b.center.y);var a=a.Hc,b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],i=c[5],m=c[6],q=c[7],t=c[8],r=c[9],y=c[10],w=c[11],s=c[12],x=c[13],u=c[14],c=c[15],B=b*i-d*g,E=b*m-e*g,Q=b*q-f*g,I=d*m-e*i,O=d*q-f*i,Z=e*q-f*m,Y=t*x-r*s,pa=t*u-y*s,xa=t*c-w*s,ya=r*u-y*x,Sa=r*c-w*x,Ta=y*c-w*u,$=B*Ta-E*Sa+Q*ya+I*xa-O*pa+Z*Y;0!=$&&($=1/$,a[0]=(i*Ta-m*Sa+q*ya)*$,a[1]=(-d*Ta+e*Sa-f*
ya)*$,a[2]=(x*Z-u*O+c*I)*$,a[3]=(-r*Z+y*O-w*I)*$,a[4]=(-g*Ta+m*xa-q*pa)*$,a[5]=(b*Ta-e*xa+f*pa)*$,a[6]=(-s*Z+u*Q-c*E)*$,a[7]=(t*Z-y*Q+w*E)*$,a[8]=(g*Sa-i*xa+q*Y)*$,a[9]=(-b*Sa+d*xa-f*Y)*$,a[10]=(s*O-x*Q+c*B)*$,a[11]=(-t*O+r*Q-w*B)*$,a[12]=(-g*ya+i*pa-m*Y)*$,a[13]=(b*ya-d*pa+e*Y)*$,a[14]=(-s*I+x*E-u*B)*$,a[15]=(t*I-r*E+y*B)*$)}p.Za=function(a){return new sg(this,a)};p.s=function(){Oa(this.d,function(a){gc(a)});J(this.G);this.e===k||F(this.e,J);Bg.w.s.call(this)};p.bb=vd;
function Eg(a,b){var c=A(b);return a.d[c]}p.Fd=function(){Fg(this.map)};p.Hd=function(a){this.Ba(a.a)};p.Id=function(){fc(Pa(this.d));this.d={};this.e!==k&&(F(this.e,J),this.e=k);var a=this.map.e();a!=k&&(a.forEach(this.Ba,this),this.e=[H(a,"add",this.Hd,l,this),H(a,"remove",this.Jd,l,this)])};p.Jd=function(a){this.Wb(a.a)};p.Wb=function(a){a=A(a);if(a in this.d){var b=this.d[a];delete this.d[a];J(this.u[a]);delete this.u[a];a=b}else a=k;gc(a)};p.vb=ba;function Gg(a,b,c,d,e){d={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:j,WIDTH:Math.round(d.width),HEIGHT:Math.round(d.height)};Wa(d,b);d.STYLES=b.STYLES||new String("");b="1.3"<d.VERSION;d[b?"CRS":"SRS"]=e.a;e=e.d;d.BBOX=(b&&"ne"==e.substr(0,2)?[c.k,c.h,c.l,c.j]:[c.h,c.k,c.j,c.l]).join(",");return Wc(Yc([a],d))};function Hg(a,b){return function(c,d,e){return Gg(a,b,c,d,e)}}function Ig(){};function Jg(a){Ye.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.Na=z(a.Na)?a.Na:Ig;this.d=z(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=z(a.resolutions)?a.resolutions:k}D(Jg,Ye);function Kg(a,b,c,d,e){var f=k,d=a.Na(b,d,e);z(d)&&(f=new fg(b,c,d,a.d,a.oa()));return f};function Lg(a){R.call(this,a)}D(Lg,R);function Mg(a){R.call(this,a)}D(Mg,R);function Ng(a,b){sg.call(this,a,b)}D(Ng,sg);function Og(a,b){sg.call(this,a,b);this.b=k;this.c=ke()}D(Og,Ng);Og.prototype.J=function(){return this.b===k?k:gg(this.b,this)};Og.prototype.ma=n("c");
Og.prototype.ka=function(a){var b=a.v,c=b.center,d=b.resolution,e=b.rotation,f=this.a.$(),g=a.C;!g[0]&&!g[1]&&(b=f.J(a.extent,d,b.projection),b!==k&&(f=b.a,0==f?(vc(b,"change",this.Pb,l,this),hg(b)):2==f&&(this.b=b)));if(this.b!==k){var b=this.b,f=b.I(),g=b.e,i=this.c;oe(i);se(i,a.size.width/2,a.size.height/2);ue(i,e);te(i,g/d,g/d);se(i,(f.h-c.x)/g,(c.y-f.l)/g);wg(a.attributions,b.oa())}};function Pg(a,b){sg.call(this,a,b);this.e=this.c=this.d=k;this.f=ke();this.b=k}D(Pg,Ng);Pg.prototype.J=n("d");Pg.prototype.ma=n("f");
Pg.prototype.ka=function(a){var b=a.v,c=b.projection,d=this.a.$(),e=A(d).toString(),f=d.tileGrid;f===k&&(f=pg(c));var g=rf(f.a,b.resolution),i=og(f,g),m=f.a[g],q=b.center,t;m==b.resolution?(q=Ag(q,m,a.size),t=he(q,m,b.rotation,a.size)):t=a.extent;var r=kg(f,t,m),y=r.ha(),w=r.da(),i=new de(i.width*y,i.height*w),s,x;this.d===k?(s=Tb("CANVAS"),s.width=i.width,s.height=i.height,x=s.getContext("2d"),this.d=s,this.c=i,this.e=x,this.b=Array(y*w)):(s=this.d,x=this.e,this.c.width==i.width&&this.c.height==
i.height||(s.width=i.width,s.height=i.height,this.c=i,this.b=Array(y*w)));w={};w[g]={};var i=na(d.d,d,w,zg(function(a){return a!==k&&2==a.a},d,f,c)),u,B,E,Q,I;for(Q=r.h;Q<=r.j;++Q)for(I=r.k;I<=r.l;++I){B=new ve(g,Q,I);u=d.b(B,f,c);E=u.a;if(0==E)yg(a.Wa,d,B),s=ng(f,B),Be(a.ac,u,e,s);else if(1==E)ug(this,u);else if(2==E||4==E){w[g][B.toString()]=u;continue}else if(3==E)continue;f.b(B,i)}e=Ca(Qa(w),Number);Ma(e);s=d.H;var c=jg(f,new ve(g,r.h,r.l)).gb(),O,Z,Y,pa,xa,ya;for(O=0;O<e.length;++O)if(B=e[O],
i=og(f,B),pa=w[B],B==g)for(Z in pa)u=pa[Z],B=u.X,B=(B.y-r.k)*y+(B.x-r.h),this.b[B]!=u&&(Q=i.width*(u.X.x-r.h),I=i.height*(r.l-u.X.y),E=u.a,(4==E||!s)&&x.clearRect(Q,I,i.width,i.height),2==E&&x.drawImage(u.J(),Q,I),this.b[B]=u);else for(Z in B=f.a[B]/m,pa){u=pa[Z];Y=jg(f,u.X);Q=(Y.h-c.x)/m;I=(c.y-Y.l)/m;ya=B*i.width;xa=B*i.height;E=u.a;(4==E||!s)&&x.clearRect(Q,I,ya,xa);2==E&&x.drawImage(u.J(),Q,I,ya,xa);I=kg(f,Y,f.a[g]);E=Math.max(I.h,r.h);u=Math.min(I.j,r.j);Q=Math.max(I.k,r.k);for(I=Math.min(I.l,
r.l);E<=u;++E)for(Y=Q;Y<=I;++Y)this.b[(Y-r.k)*y+(E-r.h)]=h}xg(a.Va,d,g,r);rg(d,g,t,f);vg(a,d);d=this.f;oe(d);se(d,a.size.width/2,a.size.height/2);ue(d,b.rotation);te(d,m/b.resolution,m/b.resolution);se(d,(c.x-q.x)/m,(q.y-c.y)/m)};function Qg(a,b){Bg.call(this,a,b);this.f=new de(a.clientHeight,a.clientWidth);this.c=Tb("CANVAS");this.c.height=this.f.height;this.c.width=this.f.width;this.c.className="ol-unselectable";Wb(a,this.c);this.g=j;this.i=this.c.getContext("2d")}D(Qg,Bg);Qg.prototype.Za=function(a){return a instanceof Lg?new Og(this,a):a instanceof Mg?new Pg(this,a):k};Qg.prototype.bb=n("c");
Qg.prototype.vb=function(a){if(a===k)this.g&&(Mc(this.c,l),this.g=l);else{var b=a.size;this.f.width==b.width&&this.f.height==b.height||(this.c.width=b.width,this.c.height=b.height,this.f=b);var c=this.i;c.setTransform(1,0,0,1,0,0);var d=a.backgroundColor;c.fillStyle="rgb("+d.c.toFixed(0)+","+d.b.toFixed(0)+","+d.a.toFixed(0)+")";c.globalAlpha=1;c.fillRect(0,0,b.width,b.height);F(a.qb,function(b){var d=a.pb[A(b)];if(d.visible)if(d.zb){var g=Eg(this,b);g.ka(a,d);b=g.J();b!==k&&(g=g.ma(),c.setTransform(g[0],
g[1],g[4],g[5],g[12],g[13]),c.globalAlpha=d.opacity,c.drawImage(b,0,0))}else a.S=j},this);this.g||(Mc(this.c,j),this.g=j);Dg(a)}};var Rg=function(){if(!("HTMLCanvasElement"in v))return l;try{return Tb("CANVAS").getContext("2d")!==k}catch(a){return l}}();function Sg(a,b){var c;if(z(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");c="matrix3d("+c+")";d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.transform=c};function Tg(a,b,c){sg.call(this,a,b);this.target=c}D(Tg,sg);Tg.prototype.s=function(){Xb(this.target);Tg.w.s.call(this)};function Ug(a,b){var c=Tb("DIV");c.className="ol-layer-image";c.style.position="absolute";Tg.call(this,a,b,c);this.b=k;this.c=me()}D(Ug,Tg);
Ug.prototype.ka=function(a){var b=a.v,c=b.center,d=b.resolution,e=b.rotation,f=this.b,g=this.a.$(),i=a.C;!i[0]&&!i[1]&&(b=g.J(a.extent,d,b.projection),b!==k&&(g=b.a,0==g?(vc(b,"change",this.Pb,l,this),hg(b)):2==g&&(f=b)));f!==k&&(g=f.I(),i=f.e,b=ke(),oe(b),se(b,a.size.width/2,a.size.height/2),ue(b,e),te(b,i/d,i/d),se(b,(g.h-c.x)/i,(c.y-g.l)/i),f!=this.b&&(c=gg(f,this),c.style.position="absolute",Vb(this.target),this.target.appendChild(c),this.b=f),qe(b,this.c)||(Sg(this.target,b),ne(this.c,b)),wg(a.attributions,
f.oa()))};function Vg(a,b){var c=Tb("DIV");c.className="ol-layer-tile";c.style.position="absolute";Tg.call(this,a,b,c);this.c=j;this.d=1;this.b={}}D(Vg,Tg);
Vg.prototype.ka=function(a,b){if(b.visible){var c=a.v,d=c.projection,e=this.a.$(),f=A(e).toString(),g=e.tileGrid;g===k&&(g=pg(d));var i=rf(g.a,c.resolution),m=g.a[i],q=c.center,t;m==c.resolution?(q=Ag(q,m,a.size),t=he(q,m,c.rotation,a.size)):t=a.extent;var m=kg(g,t,m),r={};r[i]={};var y=na(e.d,e,r,zg(function(a){return a!==k&&2==a.a},e,g,d)),w,s,x,u,B;for(u=m.h;u<=m.j;++u)for(B=m.k;B<=m.l;++B){x=new ve(i,u,B);w=e.b(x,g,d);s=w.a;if(0==s)yg(a.Wa,e,x),s=ng(g,x),Be(a.ac,w,f,s);else if(1==s)ug(this,w);
else if(2==s){r[i][x.toString()]=w;continue}else if(3==s||4==s)continue;g.b(x,y)}y=Ca(Qa(r),Number);Ma(y);var d={},E;for(w=0;w<y.length;++w){x=y[w];x in this.b?f=this.b[x]:(f=mg(g,q,g.a[x]),f=new Wg(g,f),d[x]=j,this.b[x]=f);x=r[x];for(E in x){u=f;B=x[E];s=B.X;var Q=s.toString();if(!(Q in u.b)){var I=og(u.d,s.n),O=B.J(u),Z=O.style;Z.position="absolute";Z.left=(s.x-u.c.x)*I.width+"px";Z.top=(u.c.y-s.y)*I.height+"px";u.a===k&&(u.a=document.createDocumentFragment());u.a.appendChild(O);u.b[Q]=B}}f.a!==
k&&(f.target.appendChild(f.a),f.a=k)}E=Ca(Qa(this.b),Number);Ma(E);w=ke();for(y=0;y<E.length;++y)if(x=E[y],f=this.b[x],x in r)if(B=f.g,u=f.f,oe(w),se(w,a.size.width/2,a.size.height/2),ue(w,c.rotation),te(w,B/c.resolution,B/c.resolution),se(w,(u.x-q.x)/B,(q.y-u.y)/B),u=f,B=w,qe(B,u.e)||(Sg(u.target,B),ne(u.e,B)),x in d){for(x-=1;0<=x;--x)if(x in this.b){u=this.b[x].target;u.parentNode&&u.parentNode.insertBefore(f.target,u.nextSibling);break}0>x&&Wb(this.target,f.target)}else{if(!a.C[0]&&!a.C[1]){s=
kg(f.d,t,f.d.a[f.c.n]);x=[];B=u=h;for(B in f.b)u=f.b[B],s.contains(u.X)||x.push(u);s=h;for(s=0;s<x.length;++s)u=x[s],B=u.X.toString(),Xb(u.J(f)),delete f.b[B]}}else Xb(f.target),delete this.b[x];b.opacity!=this.d&&(c=b.opacity,q=this.target.style,"opacity"in q?q.opacity=c:"MozOpacity"in q?q.MozOpacity=c:"filter"in q&&(q.filter=""===c?"":"alpha(opacity="+100*c+")"),this.d=b.opacity);b.visible&&!this.c&&(Mc(this.target,j),this.c=j);xg(a.Va,e,i,m);rg(e,i,t,g);vg(a,e)}else this.c&&(Mc(this.target,l),
this.c=l)};function Wg(a,b){this.target=Tb("DIV");this.target.style.position="absolute";this.d=a;this.c=b;this.f=jg(a,b).gb();this.g=a.a[b.n];this.b={};this.a=k;this.e=me()};function Xg(a,b){Bg.call(this,a,b);this.c=Tb("DIV");this.c.className="ol-layers ol-unselectable";var c=this.c.style;c.position="absolute";c.width="100%";c.height="100%";Wb(a,this.c);this.f=j}D(Xg,Bg);Xg.prototype.Ba=function(a){Xg.w.Ba.call(this,a);Fg(this.map)};Xg.prototype.Za=function(a){var b;a instanceof Mg?b=new Vg(this,a):a instanceof Lg&&(b=new Ug(this,a));this.c.appendChild(b.target);return b};
Xg.prototype.vb=function(a){a===k?this.f&&(Mc(this.c,l),this.f=l):(F(a.qb,function(b){var c=a.pb[A(b)];c.zb&&Eg(this,b).ka(a,c)},this),this.f||(Mc(this.c,j),this.f=j),Dg(a))};function Yg(a){this.a=a}Yg.prototype.$=n("a");function Zg(a){this.a=a}D(Zg,Yg);Zg.prototype.b=function(){return 35632};function $g(a){this.a=a}D($g,Yg);$g.prototype.b=function(){return 35633};function ah(a,b){sg.call(this,a,b);this.G=new Float32Array(16);this.K=new Float32Array(16);this.va=new Float32Array(16);this.wa=new Float32Array(16);this.H=new Float32Array(16);this.c=j;this.Qb();this.Rb();this.Sb();this.Tb()}D(ah,sg);function bh(a){if(a.c){var b=a.H;oe(b);pe(b,a.K,b);pe(b,a.G,b);pe(b,a.wa,b);pe(b,a.va,b);a.c=l}return a.H}p=ah.prototype;p.ea=function(){return ah.w.ea.call(this)};p.Qb=function(){var a=this.a.b(),b=this.G;oe(b);b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=j;tg(this)};
p.Rb=function(){var a=this.a.c(),b=this.K;oe(b);b[0]=a;b[5]=a;b[10]=a;b[15]=1;a=-0.5*a+0.5;b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=j;tg(this)};p.Sb=function(){var a=this.a.d(),b=Math.cos(a),a=Math.sin(a);le(this.va,0.213+0.787*b-0.213*a,0.213-0.213*b+0.143*a,0.213-0.213*b-0.787*a,0,0.715-0.715*b-0.715*a,0.715+0.285*b+0.14*a,0.715-0.715*b+0.715*a,0,0.072-0.072*b+0.928*a,0.072-0.072*b-0.283*a,0.072+0.928*b+0.072*a,0,0,0,0,1);this.c=j;tg(this)};
p.Tb=function(){var a=this.a.f();le(this.wa,0.213+0.787*a,0.213-0.213*a,0.213-0.213*a,0,0.715-0.715*a,0.715+0.285*a,0.715-0.715*a,0,0.072-0.072*a,0.072-0.072*a,0.072+0.928*a,0,0,0,0,1);this.c=j;tg(this)};p.Ma=ba;function ch(a,b){ah.call(this,a,b);this.b=this.d=k;this.f=me();this.e=ke()}D(ch,ah);p=ch.prototype;p.s=function(){var a=this.ea().a;a.isContextLost()||a.deleteTexture(this.b);ch.w.s.call(this)};p.uc=n("f");p.vc=n("b");p.tc=n("e");p.Ma=function(){this.b=k};
p.ka=function(a){var b=this.ea().a,c=a.v,d=c.center,e=c.resolution,f=c.rotation,g=this.d,i=this.b,m=this.a.$(),q=a.C;!q[0]&&!q[1]&&(c=m.J(a.extent,e,c.projection),c!==k&&(m=c.a,0==m?(vc(c,"change",this.Pb,l,this),hg(c)):2==m&&(g=c,i=gg(c,this),c=this.ea().a,m=c.createTexture(),c.bindTexture(3553,m),c.texImage2D(3553,0,6408,6408,5121,i),c.texParameteri(3553,10242,33071),c.texParameteri(3553,10243,33071),c.texParameteri(3553,10241,9729),c.texParameteri(3553,10240,9729),i=m,this.b===k||a.Ca.push(oa(function(a,
b){a.isContextLost()||a.deleteTexture(b)},b,this.b)))));g!==k&&(m=this.ea().bb(),b=g.I(),c=m.width*e,e*=m.height,m=this.e,oe(m),te(m,2/c,2/e),ue(m,-f),se(m,b.h-d.x,b.k-d.y),te(m,b.ha()/2,b.da()/2),se(m,1,1),d=this.f,oe(d),te(d,1,-1),se(d,0,-1),this.d=g,this.b=i,wg(a.attributions,g.oa()))};function dh(a,b){this.M=a;this.Y=b}dh.prototype.T=function(){return new dh(this.M,this.Y)};function eh(a){this.a=[];if(a)a:{var b,c;if(a instanceof eh){if(b=a.Z(),c=a.O(),0>=a.ca()){for(var a=this.a,d=0;d<b.length;d++)a.push(new dh(b[d],c[d]));break a}}else b=Qa(a),c=Pa(a);for(d=0;d<b.length;d++)fh(this,b[d],c[d])}}function fh(a,b,c){var d=a.a;d.push(new dh(b,c));b=d.length-1;a=a.a;for(c=a[b];0<b;)if(d=b-1>>1,a[d].M>c.M)a[b]=a[d],b=d;else break;a[b]=c}p=eh.prototype;
p.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Fa(a);else{a[0]=a.pop();for(var a=0,b=this.a,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,g=2*a+2,f=g<d&&b[g].M<b[f].M?g:f;if(b[f].M>e.M)break;b[a]=b[f];a=f}b[a]=e}return c.Y}};p.O=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].Y);return b};p.Z=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].M);return b};p.T=function(){return new eh(this)};p.ca=function(){return this.a.length};
p.Pa=function(){return 0==this.a.length};p.clear=function(){Fa(this.a)};function gh(){eh.call(this)}D(gh,eh);function hh(){this.a="precision mediump float;\n\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n}"}D(hh,Zg);ca(hh);function ih(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nuniform vec4 uTileOffset;\n\nvoid main(void) {\n gl_Position.xy = aPosition * uTileOffset.xy + uTileOffset.zw;\n gl_Position.z = 0.;\n gl_Position.w = 1.;\n vTexCoord = aTexCoord;\n}"}D(ih,$g);ca(ih);
function jh(a,b){ah.call(this,a,b);this.ya=hh.cb();this.Gb=ih.cb();this.e=this.g=this.f=this.B=k;this.i=h;this.d=ke();this.Ga=me();this.z=this.b=k}D(jh,ah);p=jh.prototype;p.s=function(){var a=this.ea().a;a.isContextLost()||(a.deleteBuffer(this.f),a.deleteFramebuffer(this.e),a.deleteTexture(this.g));jh.w.s.call(this)};p.uc=n("d");p.vc=n("g");p.tc=n("Ga");p.Ma=function(){this.e=this.g=this.f=this.B=k;this.i=h};
p.ka=function(a){var b=this.ea(),c=b.a,d=a.v,e=d.projection,f=this.a.$(),g=A(f).toString(),i=f.tileGrid;i===k&&(i=pg(e));var m=rf(i.a,d.resolution),q=i.a[m],t=d.center,r;q==d.resolution?(t=Ag(t,q,a.size),r=he(t,q,d.rotation,a.size)):r=a.extent;var y=kg(i,r,q),w;if(this.b!==k&&this.b.h==y.h&&this.b.k==y.k&&this.b.j==y.j&&this.b.l==y.l)w=this.z;else{var s=new de(y.ha(),y.da()),x=og(i,m),s=Math.max(s.width*x.width,s.height*x.height),s=Math.pow(2,Math.ceil(Math.log(s)/Math.log(2))),u=new de(q*s,q*s),
B=lg(i,m),E=B.x+y.h*x.width*q,q=B.y+y.k*x.height*q;w=new P(E,q,E+u.width,q+u.height);q=this.ea().a;!z(this.i)||this.i!=s?(a.Ca.push(oa(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},q,this.e,this.g)),x=q.createTexture(),q.bindTexture(3553,x),q.texImage2D(3553,0,6408,s,s,0,6408,5121,k),q.texParameteri(3553,10240,9729),q.texParameteri(3553,10241,9729),E=q.createFramebuffer(),q.bindFramebuffer(36160,E),q.framebufferTexture2D(36160,36064,3553,x,0),this.g=x,this.e=E,this.i=
s):q.bindFramebuffer(36160,this.e);c.viewport(0,0,s,s);c.clearColor(0,0,0,0);c.clear(16384);c.disable(3042);s=kh(b,this.ya,this.Gb);c.useProgram(s);this.B===k&&(this.B={ec:c.getAttribLocation(s,"aPosition"),fc:c.getAttribLocation(s,"aTexCoord"),se:c.getUniformLocation(s,"uTileOffset"),re:c.getUniformLocation(s,"uTexture")});this.f===k?(s=c.createBuffer(),c.bindBuffer(34962,s),c.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=s):c.bindBuffer(34962,this.f);c.enableVertexAttribArray(this.B.ec);
c.vertexAttribPointer(this.B.ec,2,5126,l,16,0);c.enableVertexAttribArray(this.B.fc);c.vertexAttribPointer(this.B.fc,2,5126,l,16,8);c.uniform1i(this.B.re,0);var Q={};Q[m]={};for(var q=na(f.d,f,Q,zg(function(a){return a!==k&&2==a.a&&lh(b.b,a.b())},f,i,e)),s=new gh,I=j,O,Z,B=y.h;B<=y.j;++B)for(Z=y.k;Z<=y.l;++Z){E=new ve(m,B,Z);x=f.b(E,i,e);O=x.a;if(0==O)yg(a.Wa,f,E),O=ng(i,E),Be(a.ac,x,g,O);else if(1==O)ug(this,x);else if(2==O)if(lh(b.b,x.b())){Q[m][E.toString()]=x;continue}else O=ng(i,E),I=O.x-t.x,
O=O.y-t.y,I=Math.sqrt(I*I+O*O),fh(s,I,x);else if(3==O||4==O)continue;I=l;i.b(E,q)}e=Ca(Qa(Q),Number);Ma(e);var Y=new Float32Array(4);F(e,function(a){Oa(Q[a],function(a){var d=jg(i,a.X),e=2*d.da()/u.height,f=2*(d.h-w.h)/u.width-1,g=2*(d.k-w.k)/u.height-1;Y[0]=2*d.ha()/u.width;Y[1]=e;Y[2]=f;Y[3]=g;c.uniform4fv(this.B.se,Y);mh(b,a);c.drawArrays(5,0,4)},this)},this);s.Pa()||a.Ca.push(oa(function(a,b){var c,d;for(c=0;!b.Pa()&&4>c;++c)d=b.remove(),mh(a,d)},b,s));I?(this.b=y,this.z=w):(this.z=this.b=k,a.S=
j)}xg(a.Va,f,m,y);rg(f,m,r,i);vg(a,f);oe(this.d);se(this.d,(t.x-w.h)/(w.j-w.h),(t.y-w.k)/(w.l-w.k));ue(this.d,d.rotation);te(this.d,a.size.width*d.resolution/(w.j-w.h),a.size.height*d.resolution/(w.l-w.k));se(this.d,-0.5,-0.5)};function nh(){this.o=0;this.c={};this.b=this.a=k}p=nh.prototype;p.clear=function(){this.o=0;this.c={};this.b=this.a=k};function lh(a,b){return a.c.hasOwnProperty(b)}p.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.Y,c.M,this),c=c.W};function oh(a,b){var c=a.c[b];if(c===a.b)return c.Y;c===a.a?(a.a=a.a.W,a.a.la=k):(c.W.la=c.la,c.la.W=c.W);c.W=k;c.la=a.b;a.b.W=c;a.b=c;return c.Y}p.ca=n("o");p.Z=function(){var a=Array(this.o),b=0,c;for(c=this.b;c!==k;c=c.la)a[b++]=c.M;return a};
p.O=function(){var a=Array(this.o),b=0,c;for(c=this.b;c!==k;c=c.la)a[b++]=c.Y;return a};p.pop=function(){var a=this.a;delete this.c[a.M];a.W!==k&&(a.W.la=k);this.a=a.W;this.a===k&&(this.b=k);--this.o;return a.Y};function ph(a,b,c){c={M:b,W:k,la:a.b,Y:c};a.b===k?a.a=c:a.b.W=c;a.b=c;a.c[b]=c;++a.o};var qh=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function rh(a,b){var c,d,e=qh.length;for(d=0;d<e;++d)try{if(c=a.getContext(qh[d],b),c!==k)return c}catch(f){}return k}var sh=function(){if(!("WebGLRenderingContext"in v))return l;try{var a=Tb("CANVAS");return rh(a)!==k}catch(b){return l}}();function th(){this.a="precision mediump float;\n\nuniform mat4 u_colorMatrix;\nuniform float u_opacity;\nuniform sampler2D u_texture;\n\nvarying vec2 v_texCoord;\n\nvoid main(void) {\n\n vec4 texColor = texture2D(u_texture, v_texCoord);\n vec4 color = u_colorMatrix * vec4(texColor.rgb, 1.);\n color.a = texColor.a * u_opacity;\n\n gl_FragColor = color;\n\n}"}D(th,Zg);ca(th);
function uh(){this.a="attribute vec2 a_position;\nattribute vec2 a_texCoord;\n\nuniform mat4 u_texCoordMatrix;\nuniform mat4 u_projectionMatrix;\n\nvarying vec2 v_texCoord;\n\nvoid main(void) {\n gl_Position = u_projectionMatrix * vec4(a_position, 0., 1.);\n v_texCoord = (u_texCoordMatrix * vec4(a_texCoord, 0., 1.)).st;\n}"}D(uh,$g);ca(uh);
function vh(a,b){Bg.call(this,a,b);this.c=Tb("CANVAS");this.c.height=a.clientHeight;this.c.width=a.clientWidth;this.c.className="ol-unselectable";Wb(a,this.c);this.r=j;this.z=new de(a.clientHeight,a.clientWidth);this.a=rh(this.c,{alpha:l,antialias:j,depth:l,preserveDrawingBuffer:l,stencil:l});H(this.c,"webglcontextlost",this.Ma,l,this);H(this.c,"webglcontextrestored",this.Zd,l,this);this.t=this.B=k;this.g={};this.f={};this.b=new nh;this.i=0;this.H=th.cb();this.K=uh.cb();wh(this)}D(vh,Bg);p=vh.prototype;
p.Ba=function(a){vh.w.Ba.call(this,a);a.a()&&Fg(this.map)};
function mh(a,b){var c=a.a,d=b.b();if(lh(a.b,d))d=oh(a.b,d),c.bindTexture(3553,d.$b),9729!=d.Bc&&(c.texParameteri(3553,10240,9729),d.Bc=9729),9729!=d.Cc&&(c.texParameteri(3553,10240,9729),d.Cc=9729);else{var e=c.createTexture();c.bindTexture(3553,e);c.texImage2D(3553,0,6408,6408,5121,b.J());c.texParameteri(3553,10240,9729);c.texParameteri(3553,10241,9729);c.texParameteri(3553,10242,33071);c.texParameteri(3553,10243,33071);ph(a.b,d,{$b:e,Bc:9729,Cc:9729})}}
p.Za=function(a){var b=k;a instanceof Mg?b=new jh(this,a):a instanceof Lg&&(b=new ch(this,a));return b};p.s=function(){var a=this.a;a.isContextLost()||(Oa(this.f,function(b){a.deleteProgram(b)}),Oa(this.g,function(b){a.deleteShader(b)}),this.b.forEach(function(b){b===k||a.deleteTexture(b.$b)}));vh.w.s.call(this)};p.kd=function(a,b){for(var c=this.a,d;1024<this.b.ca()-this.i;){d=this.b.a.Y;if(d===k)if(+this.b.a.M==b.time)break;else--this.i;else c.deleteTexture(d.$b);this.b.pop()}};p.bb=n("c");
function kh(a,b,c){var d=A(b)+"/"+A(c);if(d in a.f)return a.f[d];var e=a.a,f=e.createProgram();e.attachShader(f,xh(a,b));e.attachShader(f,xh(a,c));e.linkProgram(f);return a.f[d]=f}function xh(a,b){var c=A(b);if(c in a.g)return a.g[c];var d=a.a,e=d.createShader(b.b());d.shaderSource(e,b.$());d.compileShader(e);return a.g[c]=e}p.Ma=function(a){a.D();this.t=this.B=k;this.g={};this.f={};this.b.clear();this.i=0;Oa(this.d,function(a){a.Ma()})};p.Zd=function(){wh(this);Fg(this.map)};
function wh(a){a=a.a;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}p.Wb=function(a){vh.w.Wb.call(this,a);a.a()&&Fg(this.map)};
p.vb=function(a){var b=this.a;if(a===k)return this.r&&(Mc(this.c,l),this.r=l),l;ph(this.b,a.time.toString(),k);++this.i;F(a.qb,function(b){var c=a.pb[A(b)];c.visible&&c.zb&&Eg(this,b).ka(a,c)},this);var c=a.size;this.z.width==c.width&&this.z.height==c.height||(this.c.width=c.width,this.c.height=c.height,this.z=c);b.bindFramebuffer(36160,k);var d=a.backgroundColor;b.clearColor(d.c/255,d.b/255,d.a/255,d.d);b.clear(16384);b.enable(3042);b.viewport(0,0,c.width,c.height);c=kh(this,this.H,this.K);b.useProgram(c);
this.B===k&&(this.B={gc:b.getAttribLocation(c,"a_position"),hc:b.getAttribLocation(c,"a_texCoord"),te:b.getUniformLocation(c,"u_colorMatrix"),we:b.getUniformLocation(c,"u_texCoordMatrix"),ve:b.getUniformLocation(c,"u_projectionMatrix"),ue:b.getUniformLocation(c,"u_opacity"),xe:b.getUniformLocation(c,"u_texture")});this.t===k?(c=b.createBuffer(),b.bindBuffer(34962,c),b.bufferData(34962,new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),35044),this.t=c):b.bindBuffer(34962,this.t);b.enableVertexAttribArray(this.B.gc);
b.vertexAttribPointer(this.B.gc,2,5126,l,16,0);b.enableVertexAttribArray(this.B.hc);b.vertexAttribPointer(this.B.hc,2,5126,l,16,8);b.uniform1i(this.B.xe,0);F(a.qb,function(c){var d=a.pb[A(c)];d.visible&&d.zb&&(d=Eg(this,c),b.uniformMatrix4fv(this.B.we,l,d.uc()),b.uniformMatrix4fv(this.B.ve,l,d.tc()),b.uniformMatrix4fv(this.B.te,l,bh(d)),b.uniform1f(this.B.ue,c.e()),b.bindTexture(3553,d.vc()),b.drawArrays(5,0,4))},this);this.r||(Mc(this.c,j),this.r=j);Dg(a);1024<this.b.ca()-this.i&&a.Ca.push(na(this.kd,
this))};var yh={},zh={Ee:"canvas",He:"dom",cf:"webgl"},Ah=["webgl","canvas","dom"],Cg="layers";
function U(a){var b;M.call(this);var c={},d;d=z(a.layers)?ea(a.layers)?new N(Ia(a.layers)):a.layers:new N;c[Cg]=d;c.view=z(a.view)?a.view:new T;b=Bg;d=z(a.renderers)?a.renderers:z(a.renderer)?[a.renderer]:Ah;var e,f;for(e=0;e<d.length;++e)if(f=d[e],"canvas"==f){if(Rg){b=Qg;break}}else if("dom"==f){b=Xg;break}else if("webgl"==f&&sh){b=vh;break}d=z(a.controls)?a.controls:Cf();e=z(a.interactions)?a.interactions:Yf();a=ga(a.target)?document.getElementById(a.target):a.target;this.c=new wd(this.ne,h,this);
ec(this,this.c);this.Ga=ke();this.Wc=ke();this.d=k;this.g=0;this.r=l;this.va=a;this.G=k;this.b=Rb("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";this.va.appendChild(this.b);this.z=Rb("DIV","ol-overlaycontainer");H(this.z,["click",Sd?"touchstart":"mousedown"],ic);this.b.appendChild(this.z);a=new df(this);H(a,Pa(of),this.Gc,l,this);ec(this,a);a=new Id(document);H(a,"key",this.wc,
l,this);ec(this,a);a=new Pd(this.b);H(a,"mousewheel",this.wc,l,this);ec(this,a);this.ma=e;this.H=new b(this.b,this);ec(this,this.H);this.Zc=new Dd;H(this.Zc,"resize",this.xc,l,this);this.u=k;this.i=[];this.wa=[];this.Vc=na(this.Qd,this);this.K=new Ae(na(this.rd,this));H(this,Yd("view"),this.Xd,l,this);H(this,Yd("size"),this.Sd,l,this);H(this,Yd("backgroundColor"),this.Bd,l,this);this.ub(c);this.xc();z(d)&&F(d,function(a){a.a(this)},this)}D(U,M);p=U.prototype;p.ce=function(a){this.e().push(a)};
p.ga=function(a){uf(this);this.i.push(a)};p.$c=function(a){uf(this);Array.prototype.push.apply(this.i,a)};p.s=function(){Xb(this.b);U.w.s.call(this)};p.rc=function(){return this.q("backgroundColor")};U.prototype.getBackgroundColor=U.prototype.rc;U.prototype.Tc=n("H");function bf(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];re(c.Hc,d,d);return new L(d[0],d[1])}U.prototype.Gb=n("ma");U.prototype.e=function(){return this.q(Cg)};U.prototype.getLayers=U.prototype.e;
function Mf(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];re(c.nc,d,d);return new $e(d[0],d[1])}U.prototype.f=function(){return this.q("size")};U.prototype.getSize=U.prototype.f;U.prototype.a=function(){return this.q("view")};U.prototype.getView=U.prototype.a;p=U.prototype;p.rd=function(a,b,c){var d=this.d;if(d===k||!(b in d.Wa)||!d.Wa[b][a.X.toString()])return Infinity;b=this.u===k?d.v.center:this.u;a=c.x-b.x;c=c.y-b.y;return a*a+c*c};
p.wc=function(a,b){var c=b||a.type,d=new af(c,this,a);this.Gc(d);"mouseout"==c?this.u=k:this.u=d.b()};p.Gc=function(a){a.d=this.d;var b=this.ma.a;if(K(this,a)!==l)for(var c=b.length-1;0<=c&&!(b[c].ra(a),a.jb);c--);};
p.Qd=function(){var a=this.K,b=a.a,c,d=0,e,f,g,i;for(c=0;c<b.length;++c)e=b[c],g=e[1],i=e[2],f=e[3],f=a.d(g,i,f),Infinity==f?(e=g.b(),delete a.b[e]):(e[0]=f,b[d++]=e);b.length=d;for(b=(a.a.length>>1)-1;0<=b;b--)De(a,b);for(var a=this.K,m;0<a.a.length&&a.c<a.f;)m=a,c=m.a,b=c[0][1],1==c.length?c.length=0:(c[0]=c.pop(),De(m,0)),c=b.b(),delete m.b[c],m=b,vc(m,"change",a.e,l,a),b=m,0==b.a&&(b.a=1,b.d=[vc(b.c,"error",b.g,l,b),vc(b.c,"load",b.i,l,b)],b.c.src=b.f),++a.c;z(m)&&uf(this);m=this.wa;for(a=0;a<
m.length;++a)m[a](this,this.d);m.length=0};p.Bd=function(){Fg(this)};p.xc=function(){var a;var b=this.va;if("none"!=Dc(b,"display"))a=Lc(b);else{a=b.style;var c=a.display,d=a.visibility,e=a.position;a.visibility="hidden";a.position="absolute";a.display="inline";b=Lc(b);a.display=c;a.position=e;a.visibility=d;a=b}this.ya(new de(a.width,a.height))};p.Sd=function(){Fg(this)};p.Yd=function(){Fg(this)};
p.Xd=function(){this.G!==k&&(J(this.G),this.G=k);var a=this.a();a!=k&&(this.G=H(a,"changed",this.Yd,l,this));Fg(this)};p.Oa=function(){var a=this.a(),b;if(b=z(a)){if(a=a.Oa())a=this.f()!=k;b=a}return b};function Fg(a){a.c.P==k&&(0===a.g?(a=a.c,xd(a),a.Mb()):a.r=j)}function uf(a){0===a.g?a.c.P!=k||a.c.start():a.r=j}p.de=function(a){return this.e().remove(a)};
p.ne=function(a){var b;if(0==this.g){var c=this.f(),d=this.e(),d=z(d)?d.a:h;b=this.a();var e=z(b)?this.a().g():h,f=k;if(z(d)&&z(c)&&z(e)&&e.Oa()){var f=this.rc(),g=Ia(b.e),i={},m;for(b=0;b<d.length;++b){m=d[b];var q=i,t=A(m),r=m;m=r.b();var y=r.c(),w=r.d(),s=r.e(),x=r.$().c(),u=r.f(),r=r.a();q[t]={brightness:z(m)?m:0,contrast:z(y)?y:1,hue:z(w)?w:0,opacity:z(s)?s:1,zb:x,saturation:z(u)?u:1,visible:z(r)?r:j}}b=e.N();q=e.Fc();t=e.Q();e=e.V();q={center:new L(b.x,b.y),projection:q,resolution:t,rotation:e};
f={S:l,attributions:{},backgroundColor:z(f)?f:new ce,nc:this.Ga,extent:k,qb:d,pb:i,Hc:this.Wc,Ca:[],size:c,ac:this.K,time:a,Va:{},v:q,C:g,Wa:{}}}a=this.i;for(b=c=0;b<a.length;++b)d=a[b],d(this,f)&&(a[c++]=d);a.length=c;f!==k&&(f.extent=he(q.center,q.resolution,q.rotation,f.size));this.d=f;this.H.vb(f);this.r=l;f!==k&&(f.S&&uf(this),Array.prototype.push.apply(this.wa,f.Ca));K(this,new Ze("postrender",this,f));v.setTimeout(this.Vc,0)}};p.pe=function(a){this.p("backgroundColor",a)};
U.prototype.setBackgroundColor=U.prototype.pe;U.prototype.Xc=function(a){this.p(Cg,a)};U.prototype.setLayers=U.prototype.Xc;U.prototype.ya=function(a){this.p("size",a)};U.prototype.setSize=U.prototype.ya;U.prototype.Yc=function(a){this.p("view",a)};U.prototype.setView=U.prototype.Yc;function wf(a,b,c){++a.g;try{b.call(c)}finally{0===--a.g&&a.r&&(a=a.c,xd(a),a.Mb())}}
yh.fd=function(a){var b=v.location.search.substring(1),a=z(a)?a:new dd(b);return pd(a,"renderers")?qd(a,"renderers").split(","):pd(a,"renderer")?[qd(a,"renderer")]:Ah};Qe(bg);Qe(eg);function Bh(a,b,c){var d=a.length,c=1<c?c:2;z(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 Ch(a,b,c){var d=a.length,c=1<c?c:2;z(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}F(eg,function(a){F(bg,function(b){Se(a,b,Bh);Se(b,a,Ch)})});var Dh={Be:"bottom-left",Ce:"bottom-right",We:"top-left",Xe:"top-right"};function Eh(a){M.call(this);this.b=Tb("DIV");this.b.style.position="absolute";this.a={Ya:"",rb:"",Bb:"",Db:"",visible:j};H(this,Yd("element"),this.Cd,l,this);H(this,Yd("map"),this.Kd,l,this);H(this,Yd("position"),this.Od,l,this);H(this,Yd("positioning"),this.Pd,l,this);z(a.element)&&this.Lc(a.element);z(a.position)&&this.r(a.position);z(a.positioning)&&this.p("positioning",a.positioning);z(a.map)&&this.i(a.map)}D(Eh,M);
Eh.prototype.f=function(){return this.q("element")};Eh.prototype.getElement=Eh.prototype.f;Eh.prototype.d=function(){return this.q("map")};Eh.prototype.getMap=Eh.prototype.d;Eh.prototype.g=function(){return this.q("position")};Eh.prototype.getPosition=Eh.prototype.g;Eh.prototype.e=function(){return this.q("positioning")};Eh.prototype.getPositioning=Eh.prototype.e;p=Eh.prototype;p.Cd=function(){Vb(this.b);var a=this.f();a!=k&&Ub(this.b,a)};
p.Kd=function(){this.c!==k&&(Xb(this.b),J(this.c),this.c=k);var a=this.d();a!=k&&(this.c=H(a,"postrender",this.be,l,this),Fh(this),Ub(a.z,this.b))};p.be=function(){Fh(this)};p.Od=function(){Fh(this)};p.Pd=function(){Fh(this)};p.Lc=function(a){this.p("element",a)};Eh.prototype.setElement=Eh.prototype.Lc;Eh.prototype.i=function(a){this.p("map",a)};Eh.prototype.setMap=Eh.prototype.i;Eh.prototype.r=function(a){this.p("position",a)};Eh.prototype.setPosition=Eh.prototype.r;
function Fh(a){var b=a.d(),c=a.g();if(!z(b)||!b.Oa()||!z(c))a.a.visible&&(Mc(a.b,l),a.a.visible=l);else{var c=Mf(b,c),d=b.f(),b=a.b.style,e=a.e();if("bottom-right"==e||"top-right"==e){""!==a.a.rb&&(a.a.rb=b.left="");var f=Math.round(d.width-c.x)+"px";a.a.Bb!=f&&(a.a.Bb=b.right=f)}else""!==a.a.Bb&&(a.a.Bb=b.right=""),f=Math.round(c.x)+"px",a.a.rb!=f&&(a.a.rb=b.left=f);"top-left"==e||"top-right"==e?(""!==a.a.Ya&&(a.a.Ya=b.bottom=""),c=Math.round(c.y)+"px",a.a.Db!=c&&(a.a.Db=b.top=c)):(""!==a.a.Db&&
(a.a.Db=b.top=""),c=Math.round(d.height-c.y)+"px",a.a.Ya!=c&&(a.a.Ya=b.bottom=c));a.a.visible||(Mc(a.b,j),a.a.visible=j)}};function V(){M.call(this);this.a=k;this.c(l);H(this,Yd("projection"),this.H,l,this);H(this,Yd("tracking"),this.K,l,this)}D(V,M);V.prototype.s=function(){this.c(l);V.w.s.call(this)};V.prototype.H=function(){var a=this.g();a!=k&&(this.d=Le(Ve("EPSG:4326"),a),this.a!==k&&(a=[this.a.x,this.a.y],a=this.d(a,a,2),this.p("position",new L(a[0],a[1]))))};
V.prototype.K=function(){if(Gh){var a=this.e();a&&!z(this.b)?this.b=navigator.geolocation.watchPosition(na(this.wa,this),na(this.ya,this),this.f()):!a&&z(this.b)&&(navigator.geolocation.clearWatch(this.b),this.b=h)}};var Gh="geolocation"in navigator;
V.prototype.wa=function(a){a=a.coords;this.p("accuracy",a.accuracy);this.p("altitude",a.altitude===k?h:a.altitude);this.p("altitudeAccuracy",a.altitudeAccuracy===k?h:a.altitudeAccuracy);this.p("heading",a.heading===k?h:a.heading*Math.PI/180);this.a=new L(a.longitude,a.latitude);var b=[a.longitude,a.latitude],b=this.d(b,b,2);this.p("position",new L(b[0],b[1]));this.p("speed",a.speed===k?h:a.speed)};V.prototype.ya=function(){};V.prototype.i=function(){return this.q("accuracy")};
V.prototype.getAccuracy=V.prototype.i;V.prototype.r=function(){return this.q("altitude")};V.prototype.getAltitude=V.prototype.r;V.prototype.u=function(){return this.q("altitudeAccuracy")};V.prototype.getAltitudeAccuracy=V.prototype.u;V.prototype.z=function(){return this.q("heading")};V.prototype.getHeading=V.prototype.z;V.prototype.ma=function(){return this.q("position")};V.prototype.getPosition=V.prototype.ma;V.prototype.g=function(){return this.q("projection")};V.prototype.getProjection=V.prototype.g;
V.prototype.G=function(){return this.q("speed")};V.prototype.getSpeed=V.prototype.G;V.prototype.e=function(){return this.q("tracking")};V.prototype.getTracking=V.prototype.e;V.prototype.f=function(){return this.q("trackingOptions")};V.prototype.getTrackingOptions=V.prototype.f;V.prototype.va=function(a){this.p("projection",a)};V.prototype.setProjection=V.prototype.va;V.prototype.c=function(a){this.p("tracking",a)};V.prototype.setTracking=V.prototype.c;
V.prototype.Ga=function(a){this.p("trackingOptions",a)};V.prototype.setTrackingOptions=V.prototype.Ga;V.prototype.d=aa();function Hh(a){var a=z(a)?a:{},b=Rb("DIV",{"class":"ol-mouse-position"});zf.call(this,{element:b,map:a.map,target:a.target});this.i=Ve(a.projection);this.g=a.coordinateFormat;this.K=z(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.t=Xe;this.d=this.e=this.u=k}D(Hh,zf);Hh.prototype.H=function(a){a=a.d;a===k?this.c=k:this.c=a.v.projection;Ih(this,this.e)};Hh.prototype.z=function(a){a=Ic(a,this.b.b);a=new $e(a.x,a.y);Ih(this,a);this.e=a};
Hh.prototype.G=function(){Ih(this,k);this.e=k};Hh.prototype.a=function(a){this.d!==k&&(F(this.d,J),this.d=k);Hh.w.a.call(this,a);if(a!==k){var b=a.b;this.d=[H(b,"mousemove",this.z,l,this),H(b,"mouseout",this.G,l,this),H(a,"postrender",this.H,l,this)]}};function Ih(a,b){var c=a.K;if(b!==k){a.u!=a.c&&(a.t=a.i===k?Xe:Le(a.c,a.i),a.u=a.c);var d=bf(a.b,b);d!==k&&(c=[d.x,d.y],c=a.t(c,c),d=new L(c[0],c[1]),c=z(a.g)?a.g(d):d.toString())}if(!z(a.f)||c!=a.f)a.element.innerHTML=c,a.f=c};var Jh={Uc:"degrees",Pe:"imperial",Te:"nautical",Se:"metric",af:"us"};function Kh(a){a=a||{};this.g=Rb("DIV",{"class":"ol-scale-line-inner"});this.t=Rb("DIV",{"class":"ol-scale-line ol-unselectable"},this.g);this.i=z(a.minWidth)?a.minWidth:64;this.c=z(a.units)?a.units:"metric";this.e=k;this.f=l;this.u="";this.d=k;zf.call(this,{element:this.t,map:a.map,target:a.target})}D(Kh,zf);var Lh=[1,2,5];
Kh.prototype.z=function(a){a=a.d;if(a===k)this.f&&(Mc(this.t,l),this.f=l);else{var a=a.v,b=a.center,c=a.projection,a=c.c(a.resolution,b),d=c.b;"degrees"==d&&("metric"==this.c||"imperial"==this.c)?(this.d=k,b=Math.cos(b.y*Math.PI/180),a*=Math.PI*b*Fe.a/180):("ft"==d||"m"==d)&&"degrees"==this.c?(this.d===k&&(this.d=Le(c,Ve("EPSG:4326"))),b=[b.x,b.y],b=this.d(b,b,2),b=Math.cos(b[1]*Math.PI/180),c=Fe.a,"ft"==d&&(c/=0.3048),a*=180/(Math.PI*b*c)):this.d=k;b=this.i*a;d="";"degrees"==this.c?b<1/60?(d="\u2033",
a*=3600):1>b?(d="\u2032",a*=60):d="\u00b0":"imperial"==this.c?0.9144>b?(d="in",a/=0.0254):1609.344>b?(d="ft",a/=0.3048):(d="mi",a/=1609.344):"nautical"==this.c?(a/=1852,d="nm"):"metric"==this.c?1>b?(d="mm",a*=1E3):1E3>b?d="m":(d="km",a/=1E3):"us"==this.c&&(0.9144>b?(d="in",a*=39.37):1609.344>b?(d="ft",a/=0.30480061):(d="mi",a/=1609.3472));for(var b=3*Math.floor(Math.log(this.i*a)/Math.log(10)),e,f;;){e=Lh[b%3]*Math.pow(10,Math.floor(b/3));f=Math.round(e/a);if(f>=this.i)break;++b}e=e+d;this.u!=e&&
(this.u=this.g.innerHTML=e);this.G!=f&&(this.g.style.width=f+"px",this.G=f);this.f||(Mc(this.t,j),this.f=j)}};Kh.prototype.a=function(a){this.e!==k&&(F(this.e,J),this.e=k);Kh.w.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.z,l,this)])};function Mh(){this.a={}}D(Mh,Ff);Mh.prototype.b=function(a,b){var c;for(c=0;c<a.length;++c)this.a[a.charCodeAt(c)]=b};Mh.prototype.ra=function(a){if("key"==a.type){var b=this.a[a.a.hb];b&&(b(),a.D())}};function Nh(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=new ActiveXObject("MSXML2.DOMDocument");if(b){b.resolveExternals=l;b.validateOnParse=l;try{b.setProperty("ProhibitDTD",j),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};function Oh(){this.Da={Qc:/^\s*|\s*$/g,a:/\s*/g,Oc:/\s+/,Pc:/\s*,\s*/g}}function Ph(a,b,c){c||(c={});var d=a.A[b.namespaceURI]||a.A[a.a];if(d){var e=b.localName||b.nodeName.split(":").pop();(d=d[e]||d["*"])&&d.apply(a,[b,c])}}function W(a,b,c){c||(c={});for(var b=b.childNodes,d,e=0,f=b.length;e<f;++e)d=b[e],1==d.nodeType&&Ph(a,d,c)}function X(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}
Oh.prototype.getAttributeNS=function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else{var e=k;if(a.getAttributeNodeNS)e=a.getAttributeNodeNS(b,c);else for(var a=a.attributes,f,g,i=0,m=a.length;i<m;++i)if(f=a[i],f.namespaceURI==b&&(g=f.prefix?f.prefix+":"+c:c,g==f.nodeName)){e=f;break}if(b=e)d=b.nodeValue}return d};function Qh(){function a(a,b){b.qe.push(X(a))}function b(a,b){var e={code:a.getAttribute("exceptionCode"),ef:a.getAttribute("locator"),qe:[]};b.qc.push(e);W(this,a,e)}this.A={"http://www.opengis.net/ogc":{ServiceExceptionReport:function(a,b){b.exceptionReport={};b.exceptionReport.exceptions=[];W(this,a,b.exceptionReport)},ServiceException:function(a,b){var e={};e.code=a.getAttribute("code");e.locator=a.getAttribute("locator");e.text=X(a);b.exceptions.push(e)}},"http://www.opengis.net/ows":{ExceptionReport:function(a,
b){b.ff=l;b.Kb={version:a.getAttribute("version"),language:a.getAttribute("language"),qc:[]};W(this,a,b.Kb)},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.Kb={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),qc:[]};W(this,a,b.Kb)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}}};Oh.call(this)}D(Qh,Oh);
Qh.prototype.ta=function(a){"string"==typeof a&&(a=Nh(a));var b={exceptionReport:k};a&&W(this,a,b);return b};function Rh(a){this.c=a=a||{};this.$a=a.$a||k;this.version=a.version;this.profile=a.profile;a.Xa!==h?this.Xa=a.Xa:this.Xa=l;a.Zb!==h?this.Zb=a.Zb:this.Zb=l}
Rh.prototype.ta=function(a,b){"string"==typeof a&&(a=Nh(a));var c;c=a.documentElement;var d;c?(d=this.version,d||(d=c.getAttribute("version"),d||(d=this.$a))):d=this.version||this.$a;d=(c=d)||this.$a;var e=this.profile?"_"+this.profile:"";if(!this.b||this.b.VERSION!=d){var f=this.a["v"+d.replace(/\./g,"_")+e];if(!f&&(""!==e&&this.Xa&&(e="",f=this.a["v"+d.replace(/\./g,"_")+e]),!f))throw"Can't find a parser for version "+d+e;this.b=new f(this.c)}this.b=this.b;d=this.b.ta(a,b);e=this.b.pc||k;e!==k&&
d[e]===h&&(d.error=(new Qh).ta(a));d.version=c;return d};function Sh(){this.a="http://www.opengis.net/wms";this.pc="service";this.A={"http://www.opengis.net/wms":{Service:function(a,b){b.service={};W(this,a,b.service)},Name:function(a,b){b.name=X(a)},Title:function(a,b){b.title=X(a)},Abstract:function(a,b){b["abstract"]=X(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"))};
if(!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={};W(this,a,b.contactInformation)},ContactPersonPrimary:function(a,b){b.personPrimary={};W(this,a,b.personPrimary)},ContactPerson:function(a,b){b.person=X(a)},ContactOrganization:function(a,b){b.organization=X(a)},ContactPosition:function(a,b){b.position=X(a)},ContactAddress:function(a,b){b.contactAddress=
{};W(this,a,b.contactAddress)},AddressType:function(a,b){b.type=X(a)},Address:function(a,b){b.address=X(a)},City:function(a,b){b.city=X(a)},StateOrProvince:function(a,b){b.stateOrProvince=X(a)},PostCode:function(a,b){b.postcode=X(a)},Country:function(a,b){b.country=X(a)},ContactVoiceTelephone:function(a,b){b.phone=X(a)},ContactFacsimileTelephone:function(a,b){b.fax=X(a)},ContactElectronicMailAddress:function(a,b){b.email=X(a)},Fees:function(a,b){var c=X(a);c&&"none"!=c.toLowerCase()&&(b.fees=c)},
AccessConstraints:function(a,b){var c=X(a);c&&"none"!=c.toLowerCase()&&(b.accessConstraints=c)},Capability:function(a,b){b.capability={};b.capability.nestedLayers=[];b.capability.layers=[];W(this,a,b.capability)},Request:function(a,b){b.request={};W(this,a,b.request)},GetCapabilities:function(a,b){b.getcapabilities={};b.getcapabilities.formats=[];W(this,a,b.getcapabilities)},Format:function(a,b){ea(b.formats)?b.formats.push(X(a)):b.format=X(a)},DCPType:function(a,b){W(this,a,b)},HTTP:function(a,b){W(this,
a,b)},Get:function(a,b){b.get={};W(this,a,b.get)},Post:function(a,b){b.post={};W(this,a,b.post)},GetMap:function(a,b){b.getmap={};b.getmap.formats=[];W(this,a,b.getmap)},GetFeatureInfo:function(a,b){b.getfeatureinfo={};b.getfeatureinfo.formats=[];W(this,a,b.getfeatureinfo)},Exception:function(a,b){b.exception={};b.exception.formats=[];W(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"):
k,g=(e=a.getAttributeNode("cascaded"))&&e.specified?a.getAttribute("cascaded"):k,i=(e=a.getAttributeNode("opaque"))&&e.specified?a.getAttribute("opaque"):k,m=a.getAttribute("noSubsets"),q=a.getAttribute("fixedWidth"),t=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||l,cascaded:g!==k?parseInt(g,10):e.cascaded||
0,opaque:i?"1"===i||"true"===i:e.opaque||l,noSubsets:m!==k?"1"===m||"true"===m:e.noSubsets||l,fixedWidth:q!==k?parseInt(q,10):e.fixedWidth||0,fixedHeight:t!==k?parseInt(t,10):e.fixedHeight||0,minScale:e.minScale,maxScale:e.maxScale,attribution:e.attribution};c&&(Wa(f.srs,e.srs),Wa(f.bbox,e.bbox),Wa(f.dimensions,e.dimensions),Wa(f.authorityURLs,e.authorityURLs));b.nestedLayers.push(f);f.capability=d;W(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),f.formats===h&&(f.formats=g.getmap.formats),f.infoFormats===h&&e&&(f.infoFormats=e.formats))},Attribution:function(a,b){b.attribution={};W(this,a,b.attribution)},LogoURL:function(a,b){b.logo={width:a.getAttribute("width"),height:a.getAttribute("height")};W(this,a,b.logo)},Style:function(a,b){var c={};b.styles.push(c);W(this,a,c)},LegendURL:function(a,b){var c={width:a.getAttribute("width"),height:a.getAttribute("height")};b.legend=c;W(this,a,c)},MetadataURL:function(a,
b){var c={type:a.getAttribute("type")};b.metadataURLs.push(c);W(this,a,c)},DataURL:function(a,b){b.dataURL={};W(this,a,b.dataURL)},FeatureListURL:function(a,b){b.featureListURL={};W(this,a,b.featureListURL)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};W(this,a,d);b.authorityURLs[c]=d.href},Identifier:function(a,b){var c=a.getAttribute("authority");b.identifiers[c]=X(a)},KeywordList:function(a,b){W(this,a,b)},SRS:function(a,b){b.srs[X(a)]=j}}};Oh.call(this)}D(Sh,Oh);
Sh.prototype.ta=function(a){"string"==typeof a&&(a=Nh(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Ph(this,a,b);return b};function Th(){Sh.call(this);var a=this.A["http://www.opengis.net/wms"].BoundingBox;Wa(this.A["http://www.opengis.net/wms"],{WMT_MS_Capabilities:function(a,c){W(this,a,c)},Keyword:function(a,c){c.keywords&&c.keywords.push({value:X(a)})},DescribeLayer:function(a,c){c.describelayer={formats:[]};W(this,a,c.describelayer)},GetLegendGraphic:function(a,c){c.getlegendgraphic={formats:[]};W(this,a,c.getlegendgraphic)},GetStyles:function(a,c){c.getstyles={formats:[]};W(this,a,c.getstyles)},PutStyles:function(a,
c){c.putstyles={formats:[]};W(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));e!=Number.POSITIVE_INFINITY&&(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=X(a).split(","))}})}D(Th,Sh);function Uh(){Th.call(this);this.version="1.1.0";Wa(this.A["http://www.opengis.net/wms"],{SRS:function(a,b){for(var c=X(a).split(/ +/),d=0,e=c.length;d<e;d++)b.srs[c[d]]=j}})}D(Uh,Th);function Vh(){Th.call(this);this.version="1.1.1";Wa(this.A["http://www.opengis.net/wms"],{SRS:function(a,b){b.srs[X(a)]=j}})}D(Vh,Th);function Wh(){Vh.call(this);this.profile="WMSC";Wa(this.A["http://www.opengis.net/wms"],{VendorSpecificCapabilities:function(a,b){b.vendorSpecific={tileSets:[]};W(this,a,b.vendorSpecific)},TileSet:function(a,b){var c={srs:{},bbox:{},resolutions:[]};W(this,a,c);b.gf.push(c)},Resolutions:function(a,b){for(var c=X(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(X(a),10)},Height:function(a,b){b.height=parseInt(X(a),10)},Layers:function(a,
b){b.layers=X(a)},Styles:function(a,b){b.styles=X(a)}})}D(Wh,Vh);function Xh(){Sh.call(this);var a=this.A["http://www.opengis.net/wms"].BoundingBox;Wa(this.A["http://www.opengis.net/wms"],{WMS_Capabilities:function(a,c){W(this,a,c)},LayerLimit:function(a,c){c.layerLimit=parseInt(X(a),10)},MaxWidth:function(a,c){c.maxWidth=parseInt(X(a),10)},MaxHeight:function(a,c){c.maxHeight=parseInt(X(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.A["http://www.opengis.net/wms"].SRS.apply(this,
arguments)},EX_GeographicBoundingBox:function(a,c){c.llbbox=[];W(this,a,c.llbbox)},westBoundLongitude:function(a,c){c[0]=X(a)},eastBoundLongitude:function(a,c){c[2]=X(a)},southBoundLatitude:function(a,c){c[1]=X(a)},northBoundLatitude:function(a,c){c[3]=X(a)},MinScaleDenominator:function(a,c){c.maxScale=parseFloat(X(a)).toPrecision(16)},MaxScaleDenominator:function(a,c){c.minScale=parseFloat(X(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:X(a).split(",")};c.dimensions[d.name]=d},Keyword:function(a,c){var d={value:X(a),vocabulary:a.getAttribute("vocabulary")};c.keywords&&c.keywords.push(d)}});this.A.sld={UserDefinedSymbolization:function(a,c){this.A["http://www.opengis.net/wms"].bf.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.A["http://www.opengis.net/wms"].Me.apply(this,arguments)},GetLegendGraphic:function(a,c){this.A["http://www.opengis.net/wms"].Oe.apply(this,arguments)}}}D(Xh,Sh);function Yh(a){a=a||{};a.defaultVersion="1.1.1";this.a={};this.a.v1_1_0=Uh;this.a.v1_1_1=Vh;this.a.v1_1_1_WMSC=Wh;this.a.v1_3_0=Xh;Rh.call(this,a)}D(Yh,Rh);function Zh(){this.A={"http://www.opengis.net/ows":{ServiceIdentification:function(a,b){b.serviceIdentification={};W(this,a,b.serviceIdentification)},Title:function(a,b){b.title=X(a)},Abstract:function(a,b){b["abstract"]=X(a)},Keywords:function(a,b){b.keywords={};W(this,a,b.keywords)},Keyword:function(a,b){b[X(a)]=j},ServiceType:function(a,b){b.serviceType={codeSpace:a.getAttribute("codeSpace"),value:X(a)}},ServiceTypeVersion:function(a,b){b.serviceTypeVersion=X(a)},Fees:function(a,b){b.fees=X(a)},
AccessConstraints:function(a,b){b.accessConstraints=X(a)},ServiceProvider:function(a,b){b.serviceProvider={};W(this,a,b.serviceProvider)},ProviderName:function(a,b){b.providerName=X(a)},ProviderSite:function(a,b){b.providerSite=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceContact:function(a,b){b.serviceContact={};W(this,a,b.serviceContact)},IndividualName:function(a,b){b.individualName=X(a)},PositionName:function(a,b){b.positionName=X(a)},ContactInfo:function(a,b){b.contactInfo=
{};W(this,a,b.contactInfo)},Phone:function(a,b){b.phone={};W(this,a,b.phone)},Voice:function(a,b){b.voice=X(a)},Address:function(a,b){b.address={};W(this,a,b.address)},DeliveryPoint:function(a,b){b.deliveryPoint=X(a)},City:function(a,b){b.city=X(a)},AdministrativeArea:function(a,b){b.administrativeArea=X(a)},PostalCode:function(a,b){b.postalCode=X(a)},Country:function(a,b){b.country=X(a)},ElectronicMailAddress:function(a,b){b.electronicMailAddress=X(a)},Role:function(a,b){b.role=X(a)},OperationsMetadata:function(a,
b){b.operationsMetadata={};W(this,a,b.operationsMetadata)},Operation:function(a,b){var c=a.getAttribute("name");b[c]={};W(this,a,b[c])},DCP:function(a,b){b.dcp={};W(this,a,b.dcp)},HTTP:function(a,b){b.http={};W(this,a,b.http)},Get:function(a,b){b.get||(b.get=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};W(this,a,c);b.get.push(c)},Post:function(a,b){b.post||(b.post=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};W(this,a,c);b.post.push(c)},
Parameter:function(a,b){b.parameters||(b.parameters={});var c=a.getAttribute("name");b.parameters[c]={};W(this,a,b.parameters[c])},Constraint:function(a,b){b.constraints||(b.constraints={});var c=a.getAttribute("name");b.constraints[c]={};W(this,a,b.constraints[c])},Value:function(a,b){b[X(a)]=j},OutputFormat:function(a,b){b.formats.push({value:X(a)});W(this,a,b)},WGS84BoundingBox:function(a,b){var c={};c.crs=a.getAttribute("crs");b.BoundingBox?b.BoundingBox.push(c):(b.projection=c.crs,c=b);W(this,
a,c)},BoundingBox:function(a,b){this.A["http://www.opengis.net/ows"].WGS84BoundingBox.apply(this,[a,b])},LowerCorner:function(a,b){var c=X(a).replace(this.Da.Qc,""),c=c.replace(this.Da.Pc,","),c=c.split(this.Da.Oc);b.left=c[0];b.bottom=c[1]},UpperCorner:function(a,b){var c=X(a).replace(this.Da.Qc,""),c=c.replace(this.Da.Pc,","),c=c.split(this.Da.Oc);b.right=c[0];b.top=c[1];b.bounds=new P(parseFloat(b.left),parseFloat(b.bottom),parseFloat(b.right),parseFloat(b.top));delete b.left;delete b.bottom;delete b.right;
delete b.top},Language:function(a,b){b.language=X(a)}}};Oh.call(this)}D(Zh,Oh);function $h(){Zh.call(this);this.A["http://www.opengis.net/ows/1.1"]=this.A["http://www.opengis.net/ows"];Wa(this.A["http://www.opengis.net/ows/1.1"],{AllowedValues:function(a,b){b.allowedValues={};W(this,a,b.allowedValues)},AnyValue:function(a,b){b.anyValue=j},DataType:function(a,b){b.dataType=X(a)},Range:function(a,b){b.range={};W(this,a,b.range)},MinimumValue:function(a,b){b.minValue=X(a)},MaximumValue:function(a,b){b.maxValue=X(a)},Identifier:function(a,b){b.identifier=X(a)},SupportedCRS:function(a,
b){b.supportedCRS=X(a)}})}D($h,Zh);function ai(){this.a="http://www.opengis.net/wtms/1.0";this.pc="serviceIdentification";this.A={"http://www.opengis.net/wmts/1.0":{Capabilities:function(a,c){W(this,a,c)},Contents:function(a,c){c.contents={};c.contents.layers=[];c.contents.tileMatrixSets={};W(this,a,c.contents)},Layer:function(a,c){var d={styles:[],formats:[],dimensions:[],tileMatrixSetLinks:[],layers:[]};W(this,a,d);c.layers.push(d)},Style:function(a,c){var d={};d.isDefault="true"===a.getAttribute("isDefault");W(this,a,d);c.styles.push(d)},
Format:function(a,c){c.formats.push(X(a))},TileMatrixSetLink:function(a,c){var d={};W(this,a,d);c.tileMatrixSetLinks.push(d)},TileMatrixSet:function(a,c){if(c.layers){var d={matrixIds:[]};W(this,a,d);c.tileMatrixSets[d.identifier]=d}else c.tileMatrixSet=X(a)},TileMatrix:function(a,c){var d={supportedCRS:c.supportedCRS};W(this,a,d);c.matrixIds.push(d)},ScaleDenominator:function(a,c){c.scaleDenominator=parseFloat(X(a))},TopLeftCorner:function(a,c){var d=X(a).split(" "),e=Ve(c.supportedCRS).d;c.topLeftCorner=
Uc([parseFloat(d[0]),parseFloat(d[1])],e)},TileWidth:function(a,c){c.tileWidth=parseInt(X(a),10)},TileHeight:function(a,c){c.tileHeight=parseInt(X(a),10)},MatrixWidth:function(a,c){c.matrixWidth=parseInt(X(a),10)},MatrixHeight:function(a,c){c.matrixHeight=parseInt(X(a),10)},ResourceURL:function(a,c){var d=a.getAttribute("resourceType"),e=a.getAttribute("format"),f=a.getAttribute("template");c.resourceUrls||(c.resourceUrls={});c.resourceUrls[d]||(c.resourceUrls[d]={});c.resourceUrls[d][e]||(c.resourceUrls[d][e]=
[]);c.resourceUrls[d][e].push(f)},WSDL:function(a,c){c.wsdl={};c.wsdl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceMetadataURL:function(a,c){c.serviceMetadataUrl={};c.serviceMetadataUrl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},LegendURL:function(a,c){c.legend={};c.legend.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href");c.legend.format=a.getAttribute("format")},Dimension:function(a,c){var d={values:[]};W(this,a,d);c.dimensions.push(d)},
Default:function(a,c){c["default"]=X(a)},Value:function(a,c){c.values.push(X(a))}}};var a=new $h;this.A["http://www.opengis.net/ows/1.1"]=a.A["http://www.opengis.net/ows/1.1"];Oh.call(this)}D(ai,Oh);ai.prototype.ta=function(a){"string"==typeof a&&(a=Nh(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Ph(this,a,b);return b};function bi(a){a=a||{};a.defaultVersion="1.0.0";this.a={};this.a.v1_0_0=ai;Rh.call(this,a)}D(bi,Rh);/*
function Hf(a){this.a=a}function If(a,b){var c=a.y*Math.PI/180,d=b.y*Math.PI/180,e=(d-c)/2,f=(b.x-a.x)*Math.PI/180/2,c=Math.sin(e)*Math.sin(e)+Math.sin(f)*Math.sin(f)*Math.cos(c)*Math.cos(d);return 2*Jf.a*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}
Hf.prototype.offset=function(a,b,c){var d=a.y*Math.PI/180,b=b/this.a,e=Math.asin(Math.sin(d)*Math.cos(b)+Math.cos(d)*Math.sin(b)*Math.cos(c));return new L(180*(a.x*Math.PI/180+Math.atan2(Math.sin(c)*Math.sin(b)*Math.cos(d),Math.cos(b)-Math.sin(d)*Math.sin(e)))/Math.PI,180*e/Math.PI)};var Jf=new Hf(6370997);var Kf="object"==typeof Proj4js,Lf={rd:"degrees",of:"ft",vf:"m"},Mf={};Mf.degrees=2*Math.PI*Jf.a/360;Mf.ft=0.3048;Mf.m=1;function Nf(a){this.a=a.code;this.b=a.units;this.g=a.extent;this.d=x(a.axisOrientation)?a.axisOrientation:"enu";this.Vb=x(a.global)?a.global:l;this.f=k}p=Nf.prototype;p.Ld=n("a");p.I=n("g");p.Od=n("b");p.Hc=function(){return Mf[this.b]};p.Id=n("d");p.ve=n("Vb");function Of(a,b){var c={units:a.units,axisOrientation:a.axis};$a(c,b);Nf.call(this,c);this.dd=a;this.e=k}D(Of,Nf);
Of.prototype.c=function(a,b){if("degrees"==this.b)return a;this.e===k&&(this.e=Pf(this,Qf({code:"EPSG:4326",extent:k})));var c=[b.x-a/2,b.y,b.x+a/2,b.y,b.x,b.y-a/2,b.x,b.y+a/2],c=this.e(c,c,2),c=(If(new L(c[0],c[1]),new L(c[2],c[3]))+If(new L(c[4],c[5]),new L(c[6],c[7])))/2;"ft"==this.b&&(c/=0.3048);return c};var Rf={},Sf={},Tf={};function Uf(a){F(a,function(a){Vf(a)});F(a,function(b){F(a,function(a){b!==a&&Wf(b,a,Xf)})})}function Vf(a){Sf[a.a]=a;Wf(a,a,Xf)}
function Yf(a){return a!=k?ja(a)?Zf(a):a:Zf("EPSG:3857")}function Wf(a,b,c){a=a.a;b=b.a;a in Tf||(Tf[a]={});Tf[a][b]=c}function Zf(a){var b;a instanceof Nf?b=a:ja(a)?(b=Sf[a],Kf&&!x(b)&&(b=Qf({code:a,extent:k})),x(b)||(b=k)):b=k;return b}function Qf(a){var b=a.code,c=Rf[b];if(!x(c)){var d=new Proj4js.Proj(b),e=d.srsCode,c=Rf[e];x(c)||(a=Ya(a),a.code=e,c=new Of(d,a),Rf[e]=c);Rf[b]=c}return c}function $f(a,b){var c=Zf(a),d=Zf(b);return Pf(c,d)}
function Pf(a,b){var c=a.a,d=b.a,e;c in Tf&&d in Tf[c]&&(e=Tf[c][d]);if(Kf&&!x(e)){var f;f=(a instanceof Of?a:Qf({code:c,extent:k})).dd;var h;h=(b instanceof Of?b:Qf({code:d,extent:k})).dd;e=function(a,b,c){var d=a.length,c=1<c?c:2;x(b)||(b=2<c?a.slice():Array(d));for(var e,A=0;A<d;A+=c)e=new Proj4js.Point(a[A],a[A+1]),e=Proj4js.transform(f,h,e),b[A]=e.x,b[A+1]=e.y;return b};Wf(a,b,e)}x(e)||(e=ag);return e}function ag(a,b){if(x(b)&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}
function Xf(a,b){var c;if(x(b)){c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c};function bg(a){tc.call(this);this.c=Zf(a.projection);this.s=x(a.extent)?a.extent:x(a.projection)?this.c.I():k;this.f=x(a.attributions)?a.attributions:k}D(bg,ge);bg.prototype.za=n("f");bg.prototype.I=n("s");bg.prototype.d=je;function P(a){M.call(this);this.t=a.source;this.B(x(a.brightness)?a.brightness:0);this.G(x(a.contrast)?a.contrast:1);this.K(x(a.hue)?a.hue:0);this.T(x(a.opacity)?a.opacity:1);this.Z(x(a.saturation)?a.saturation:1);this.qa(x(a.visible)?a.visible:i);this.t.d()||Oc(this.t,"load",this.wa,l,this)}D(P,M);P.prototype.d=function(){return this.q("brightness")};P.prototype.getBrightness=P.prototype.d;P.prototype.e=function(){return this.q("contrast")};P.prototype.getContrast=P.prototype.e;P.prototype.f=function(){return this.q("hue")};
P.prototype.getHue=P.prototype.f;P.prototype.g=function(){return this.q("opacity")};P.prototype.getOpacity=P.prototype.g;P.prototype.i=function(){return this.q("saturation")};P.prototype.getSaturation=P.prototype.i;P.prototype.da=n("t");P.prototype.u=function(){return this.q("visible")};P.prototype.getVisible=P.prototype.u;P.prototype.wa=function(){K(this,"load")};P.prototype.B=function(a){a=Rb(a,-1,1);a!=this.d()&&this.p("brightness",a)};P.prototype.setBrightness=P.prototype.B;
P.prototype.G=function(a){a=Math.max(0,a);a!=this.e()&&this.p("contrast",a)};P.prototype.setContrast=P.prototype.G;P.prototype.K=function(a){a!=this.f()&&this.p("hue",a)};P.prototype.setHue=P.prototype.K;P.prototype.T=function(a){a=Rb(a,0,1);a!=this.g()&&this.p("opacity",a)};P.prototype.setOpacity=P.prototype.T;P.prototype.Z=function(a){a=Math.max(0,a);a!=this.i()&&this.p("saturation",a)};P.prototype.setSaturation=P.prototype.Z;P.prototype.qa=function(a){a=!!a;a!=this.u()&&this.p("visible",a)};
P.prototype.setVisible=P.prototype.qa;function cg(a,b,c){zc.call(this,a);this.map=b;this.rb=l;this.c=x(c)?c:k}D(cg,zc);cg.prototype.A=function(){cg.z.A.call(this);this.rb=i};function dg(a,b){Tb.call(this,a,b)}D(dg,Tb);function eg(a,b,c,d){cg.call(this,a,b,d);this.a=c;this.f=this.e=k}D(eg,cg);eg.prototype.d=function(){this.e===k&&(this.e=fg(this.map,gg(this)));return this.e};function gg(a){if(a.f===k){var b=gd(a.a,a.map.b);a.f=new dg(b.x,b.y)}return a.f}
function hg(a){this.a=a;this.e=k;this.b=l;this.c=this.g=this.d=this.s=this.i=this.f=k;a=this.a.b;this.i=I(a,["click","dblclick"],this.xc,l,this);this.s=I(a,"mousedown",this.ee,l,this);this.g=[I(a,["touchstart","MSPointerDown"],this.qe,l,this),I(a,["touchmove","MSPointerMove"],this.pe,l,this),I(a,["touchend","MSPointerUp"],this.oe,l,this)]}D(hg,ge);p=hg.prototype;p.xc=function(a){if(!this.b){var b=a.type;K(this,0==this.f||"dblclick"==b?new eg(ig,this.a,a):new eg(jg,this.a,a))}};
p.ge=function(a){this.e&&(this.c=k,F(this.d,J),this.e=this.d=k,this.b&&K(this,new eg(kg,this.a,a)))};p.ee=function(a){K(this,new eg(lg,this.a,a));this.e||(this.c=a,this.e={clientX:a.clientX,clientY:a.clientY},this.b=l,this.d=[I(document,"mousemove",this.fe,l,this),I(document,"mouseup",this.ge,l,this)],a.A())};p.fe=function(a){var b;this.b||(this.b=i,b=new eg(mg,this.a,this.c),K(this,b));this.e={clientX:a.clientX,clientY:a.clientY};b=new eg(ng,this.a,a);K(this,b)};
p.qe=function(a){a.A();this.c=a;this.b=l;K(this,new eg(og,this.a,a))};p.pe=function(a){this.b=i;K(this,new eg(pg,this.a,a))};p.oe=function(a){K(this,new eg(qg,this.a,a));this.b||(a=ta(),this.f=!this.f||250<a-this.f?a:0,this.xc(this.c));this.c=k};p.r=function(){J(this.i);J(this.s);this.d!==k&&(F(this.d,J),this.d=k);this.g!==k&&(F(this.g,J),this.g=k);hg.z.r.call(this)};
var jg="click",ig="dblclick",lg="down",mg="dragstart",ng="drag",kg="dragend",og="touchstart",pg="touchmove",qg="touchend",rg={ff:jg,gf:ig,jf:lg,mf:mg,kf:ng,lf:kg,Jf:og,If:pg,Hf:qg};function sg(){M.call(this);this.e=[0,0]}D(sg,M);function tg(a,b){a.e[1]+=b};function ug(a,b){var c=a.length;if(a[0]<=b)return 0;if(!(b<=a[c-1])){var d;for(d=1;d<c;++d){if(a[d]==b)return d;if(a[d]<b)return a[d-1]-b<b-a[d]?d-1:d}}return c-1};function vg(a){this.resolution=a;this.rotation=function(a,c){if(x(a))return 0.1>=Math.abs(a+c)?0:a+c}};var wg={Rb: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},Ed:function(a){return a*a*a},Oa:function(a){return 1-Math.pow(1-a,3)},Fd:function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},Ja:function(a){return 3*a*a-2*a*a*a},Uc:ba(),pd:function(a){return 0.5>a?wg.Ja(2*a):1-wg.Ja(2*(a-0.5))}};var xg={Rb:function(a){var b=a.resolution,c=x(a.start)?a.start:ta(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:wg.pd;return function(a,h){if(h.time<c)return h.$=i,h.F[0]+=1,i;if(h.time<c+d){var j=e((h.time-c)/d),m=b-h.v.resolution;h.$=i;h.v.resolution+=j*m;h.F[0]+=1;return i}return l}},ia:function(a){var b=a.source,c=x(a.start)?a.start:ta(),d=b.x,e=b.y,f=x(a.duration)?a.duration:1E3,h=x(a.easing)?a.easing:wg.Ja;return function(a,b){if(b.time<c)return b.$=i,b.F[0]+=1,i;if(b.time<c+f){var q=
1-h((b.time-c)/f),v=d-b.v.center.x,s=e-b.v.center.y;b.$=i;b.v.center.x+=q*v;b.v.center.y+=q*s;b.F[0]+=1;return i}return l}},rotate:function(a){var b=a.rotation,c=x(a.start)?a.start:ta(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:wg.Ja;return function(a,h){if(h.time<c)return h.$=i,h.F[0]+=1,i;if(h.time<c+d){var j=1-e((h.time-c)/d),m=b-h.v.rotation;h.$=i;h.v.rotation+=j*m;h.F[0]+=1;return i}return l}},zoom:function(a){var b=a.resolution,c=x(a.start)?a.start:ta(),d=x(a.duration)?a.duration:
1E3,e=x(a.easing)?a.easing:wg.Ja;return function(a,h){if(h.time<c)return h.$=i,h.F[0]+=1,i;if(h.time<c+d){var j=1-e((h.time-c)/d),m=b-h.v.resolution;h.$=i;h.v.resolution+=j*m;h.F[0]+=1;return i}return l}}};function T(a){sg.call(this);var a=a||{},b={};b.center=x(a.center)?a.center:k;b.projection=Yf(a.projection);if(x(a.resolution))b.resolution=a.resolution;else if(x(a.zoom)){var c=b.projection.I(),c=Math.max(c.j-c.h,c.k-c.l);b.resolution=c/(256*Math.pow(2,a.zoom))}b.rotation=a.rotation;this.Db(b);if(x(a.resolutions))var d=a.resolutions,a=function(a,b){if(x(a)){var c=ug(d,a),c=Rb(c+b,0,d.length-1);return d[c]}};else{x(a.maxResolution)&&x(a.numZoomLevels)&&x(a.zoomFactor)?(b=a.maxResolution,c=a.numZoomLevels,
a=a.zoomFactor):(a=Yf(a.projection).I(),b=Math.max(a.j-a.h,a.k-a.l)/256,c=29,a=2);var e=a,f=b,h=c-1,a=function(a,b){if(x(a)){var c=Math.floor(Math.log(f/a)/Math.log(e)+0.5),c=Math.max(c+b,0);x(h)&&(c=Math.min(c,h));return f/Math.pow(e,c)}}}this.c=new vg(a)}D(T,sg);T.prototype.R=function(){return this.q("center")};T.prototype.getCenter=T.prototype.R;T.prototype.I=function(a){var b=this.R(),c=this.S();return new O(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)};T.prototype.Zc=function(){return this.q("projection")};
T.prototype.getProjection=T.prototype.Zc;T.prototype.S=function(){return this.q("resolution")};T.prototype.getResolution=T.prototype.S;T.prototype.ca=function(){return this.q("rotation")||0};T.prototype.getRotation=T.prototype.ca;T.prototype.g=function(){return this};T.prototype.f=function(a,b){this.a(a.ad());var c=Math.max((a.j-a.h)/b.width,(a.k-a.l)/b.height),c=this.c.resolution(c,0);this.b(c)};T.prototype.Va=function(){return this.R()!=k&&x(this.S())};
T.prototype.a=function(a){this.p("center",a)};T.prototype.setCenter=T.prototype.a;T.prototype.i=function(a){this.p("projection",a)};T.prototype.setProjection=T.prototype.i;T.prototype.b=function(a){this.p("resolution",a)};T.prototype.setResolution=T.prototype.b;T.prototype.d=function(a){this.p("rotation",a)};T.prototype.setRotation=T.prototype.d;T.prototype.ia=function(a,b,c){var d=this.R();x(d)&&(x(c)&&(yg(a),a.ra(xg.ia({source:d,duration:c,easing:wg.Uc}))),this.a(new L(d.x+b.x,d.y+b.y)))};
T.prototype.rotate=function(a,b,c,d){b=this.c.rotation(b,0);zg(this,a,b,c,d)};function zg(a,b,c,d,e){if(c!=k){var f=a.ca(),h=a.R();x(f)&&(x(h)&&x(e))&&(yg(b),b.ra(xg.rotate({rotation:f,duration:e,easing:wg.Oa})),x(d)&&b.ra(xg.ia({source:h,duration:e,easing:wg.Oa})));if(d!=k){var e=a.R(),j=new L(e.x-d.x,e.y-d.y);j.rotate(c-a.ca());j.x+=d.x;j.y+=d.y;Ag(b,function(){this.a(j);this.d(c)},a)}else a.d(c)}}T.prototype.zoom=function(a,b,c,d){b=this.c.resolution(b,0);Bg(this,a,b,c,d)};
function Cg(a,b,c,d,e){var f=a.S(),c=a.c.resolution(f,c);Bg(a,b,c,d,e)}function Bg(a,b,c,d,e){if(c!=k){var f=a.S(),h=a.R();x(f)&&(x(h)&&x(e))&&(yg(b),b.ra(xg.zoom({resolution:f,duration:e,easing:wg.Oa})),x(d)&&b.ra(xg.ia({source:h,duration:e,easing:wg.Oa})));if(d!=k){var e=a.R(),f=a.S(),j=new L(d.x-c*(d.x-e.x)/f,d.y-c*(d.y-e.y)/f);Ag(b,function(){this.a(j);this.b(c)},a)}else a.b(c)}};function Dg(a){tc.call(this);this.element=x(a.element)?a.element:k;this.u=a.target;this.b=k;x(a.map)&&this.a(a.map)}D(Dg,tc);Dg.prototype.r=function(){jc(this.element);Dg.z.r.call(this)};Dg.prototype.a=function(a){this.b===k||jc(this.element);this.b=a;this.b!==k&&(x(this.u)?this.u:a.t).appendChild(this.element)};function Eg(a){a=x(a)?a:{};this.g=fc("UL");var b=dc("DIV",{"class":"ol-attribution ol-unselectable"},this.g);Dg.call(this,{element:b,map:a.map,target:a.target});this.f=i;this.c={};this.d={};this.e=k}D(Eg,Dg);
Eg.prototype.i=function(a){var b=a.c;if(b===k)this.f&&(ld(this.element,l),this.f=l);else{var c={},d={},a=this.b.e();x(a)&&a.forEach(function(a){a=a.da();d[z(a).toString()]=a;a=a.za();if(a!==k){var b,e;for(e=0;e<a.length;++e)b=a[e],t=z(b).toString(),c[t]=i}});var a=Ya(b.attributions),b=b.ab,e={},f,h,j,m,q,v;for(v in b)if(f=d[v],q=f.za(),q!==k){h=b[v];for(f=0;f<q.length;++f)if(j=q[f],m=z(j).toString(),!(m in e)){var s;a:if(j.a===k)s=i;else{var A=s=g,u=g;for(u in h)if(u in j.a){A=h[u];for(s=0;s<j.a[u].length;++s)if(j.a[u][s].ha(A)){s=
i;break a}}s=l}s&&(e[m]=j)}}$a(a,e);v=Ga(Wa(a),Number);Sa(v);for(var t,b=0;b<v.length;++b)t=v[b].toString(),t in this.c?this.d[t]||(ld(this.c[t],i),this.d[t]=i):(e=fc("LI"),e.innerHTML=a[t].b,this.g.appendChild(e),this.c[t]=e,this.d[t]=i),delete c[t];for(t in c)jc(this.c[t]),delete this.c[t],delete this.d[t];a=0!=v.length;this.f!=a&&(ld(this.element,a),this.f=a)}};Eg.prototype.a=function(a){this.e!==k&&(F(this.e,J),this.e=k);Eg.z.a.call(this,a);a!==k&&(this.e=[I(a,"postrender",this.i,l,this)])};function Fg(a){var a=x(a)?a:{},b=dc("A",{href:"#zoomIn","class":"ol-zoom-in"});I(b,["touchend","click"],this.d,l,this);var c=dc("A",{href:"#zoomOut","class":"ol-zoom-out"});I(c,["touchend","click"],this.e,l,this);b=dc("DIV","ol-zoom ol-unselectable",b,c);Dg.call(this,{element:b,map:a.map,target:a.target});this.c=x(a.delta)?a.delta:1}D(Fg,Dg);Fg.prototype.d=function(a){a.A();a=this.b;yg(a);Cg(a.a(),a,this.c,g,250)};Fg.prototype.e=function(a){a.A();a=this.b;yg(a);Cg(a.a(),a,-this.c,g,250)};function Gg(a,b){var c=x(a)?a:{},d=[];if(x(c.attribution)?c.attribution:1)d.push(new Eg(x(c.Be)?c.Be:g));if(x(c.zoom)?c.zoom:1)d.push(new Fg(x(c.Ze)?c.Ze:g));x(b)&&Pa(d,b);return d};function Hg(a,b,c){this.e=a;this.d=b;this.f=c;this.a=[];this.b=this.c=0}function Ig(a){for(var b=ta(),c=a.a.length-1,d=c-1;0<=d&&a.a[d].$a>b-a.f;)d--;if(0<=d){var b=a.a[d],c=a.a[c],d=c.x-b.x,e=c.y-b.y;a.c=Math.atan2(e,d);a.b=Math.sqrt(d*d+e*e)/(c.$a-b.$a);return a.b>a.d}return l}Hg.prototype.ia=function(a){var b=this.e,c=this.b,d=this.d,e=Math.log(this.d/this.b)/this.e;return xg.ia({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function Jg(){};function Kg(a){this.a=a}D(Kg,Jg);Kg.prototype.Ea=function(a){var b=a.a;if(a.type==ig&&(Ee||Gc(a.a))){var c=a.map,d=a.d(),e=a.a.Ca?-this.a:this.a;Cg(c.a(),c,e,d,250);a.A();b.A()}};function Lg(a){return a.na&&!a.Gb&&a.Ca}function Mg(a){return!a.na&&!a.Gb&&!a.Ca}function Ng(a){return!a.na&&!a.Gb&&a.Ca};function Og(){this.c=l;this.s=this.i=this.e=this.d=0;this.Za=this.f=k}D(Og,Jg);p=Og.prototype;p.$b=da;p.sb=da;p.tb=ie;p.Rc=da;p.Ea=function(a){var b=a.map;if(b.Va()){var b=b.a(),c=a.a;a.type==lg&&this.Rc(a);this.c?a.type==ng?(this.O=c.clientX-this.d,this.N=c.clientY-this.e,this.$b(a)):a.type==kg&&(this.O=c.clientX-this.d,this.N=c.clientY-this.e,this.sb(a),this.c=l):a.type==mg&&(this.d=c.clientX,this.e=c.clientY,this.N=this.O=0,this.f=b.R(),this.Za=a.d(),this.tb(a)&&(this.c=i,a.A()))}};function Pg(a,b){Og.call(this);this.g=a;this.a=b;this.b=k}D(Pg,Og);Pg.prototype.$b=function(a){this.a&&this.a.a.push({x:a.a.clientX,y:a.a.clientY,$a:ta()});var a=a.map,b=a.a(),c=b.S(),d=b.ca(),c=new L(-c*this.O,c*this.N);c.rotate(d);d=new L(this.f.x+c.x,this.f.y+c.y);yg(a);b.a(d)};
Pg.prototype.sb=function(a){var b=a.map,a=b.a();tg(a,-1);if(this.a&&Ig(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.R();this.b=this.a.ia(e);b.ra(this.b);e=Qg(b,e);b=fg(b,new dg(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}};Pg.prototype.tb=function(a){var b=a.a;if(this.g(b)){if(this.a){var c=this.a;c.a.length=0;c.c=0;c.b=0;this.a.a.push({x:b.clientX,y:b.clientY,$a:ta()})}a=a.map;yg(a);tg(a.a(),1);return i}return l};
Pg.prototype.Rc=function(a){var b=a.map,c=b.a();this.b!==k&&Ma(b.i,this.b)&&(yg(b),c.a(a.c.v.center),this.b=k)};function Rg(a){Og.call(this);this.b=a}D(Rg,Og);Rg.prototype.$b=function(a){var b=a.map,c=b.f(),a=gg(a),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(x(this.a)){var a=c-this.a,d=b.a();yg(b);zg(d,b,d.ca()-a)}this.a=c};Rg.prototype.sb=function(a){var a=a.map,b=a.a();b.rotate(a,b.ca(),g,250);tg(b,-1)};Rg.prototype.tb=function(a){var b=a.a;return Gc(b)&&this.b(b)?(a=a.map,b=a.a(),yg(a),this.a=g,tg(b,1),i):l};function Sg(a){var b=dc("DIV","ol-dragbox");this.c=k;this.e=a.Za;this.d=k;Dg.call(this,{element:b,map:a.map})}D(Sg,Dg);Sg.prototype.a=function(a){this.d!==k&&(J(this.d),this.d=k);a!==k&&(this.c=Qg(a,this.e),bd(this.element,this.c),nd(this.element,new Qe(0,0)),this.d=I(a,ng,this.f,l,this));Sg.z.a.call(this,a)};Sg.prototype.f=function(a){var b=this.b,a=a.d(),b=Qg(b,a);bd(this.element,new dg(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));nd(this.element,new Qe(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function Tg(a){Og.call(this);this.b=a;this.a=k}D(Tg,Og);Tg.prototype.sb=function(a){this.a.a(k);this.a=k;if(64<=this.O*this.O+this.N*this.N){var b=a.map,c=Te(this.Za,a.d());Ag(b,function(){var a=b.a(),e=b.f();a.f(c,e);a.d(0)})}};Tg.prototype.tb=function(a){var b=a.a;return Gc(b)&&this.b(b)?(this.a=new Sg({map:a.map,Za:this.Za}),i):l};function Ug(a){a=x(a)?a:{};this.a=x(a.delta)?a.delta:128}D(Ug,Jg);Ug.prototype.Ea=function(a){if("key"==a.type){var b=a.a,c=b.Ia;if(40==c||37==c||39==c||38==c){var d=a.map,e=d.a(),f=e.S(),h=e.ca(),f=f*this.a,j=0,m=0;40==c?m=-f:37==c?j=-f:39==c?j=f:m=f;c=new L(j,m);c.rotate(h);e.ia(d,c,100);b.A();a.A()}}};function Vg(a){a=x(a)?a:{};this.a=x(a.delta)?a.delta:1}D(Vg,Jg);Vg.prototype.Ea=function(a){if("key"==a.type){var b=a.a,c=b.pb;if(43==c||45==c){var d=a.map,c=43==c?this.a:-this.a;yg(d);Cg(d.a(),d,c,g,100);b.A();a.A()}}};function Wg(){this.a=0;this.c=k;this.d=this.b=g}D(Wg,Jg);Wg.prototype.Ea=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a;this.c=a.d();this.a+=c.N/3;x(this.b)||(this.b=ta());var d=Math.max(80-(ta()-this.b),0);r.clearTimeout(this.d);this.d=r.setTimeout(ra(this.e,this,b),d);a.A();c.A()}};Wg.prototype.e=function(a){var b=Rb(this.a,-1,1),c=a.a();yg(a);Cg(c,a,-b,this.c,250);this.a=0;this.c=k;this.d=this.b=g};function Xg(){this.g=l;this.i={};this.targetTouches=[]}D(Xg,Jg);function Yg(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return new dg(c/b,d/b)}Xg.prototype.e=da;Xg.prototype.d=ie;Xg.prototype.f=ie;Xg.prototype.Ea=function(a){var b=a.a.L;x(b.targetTouches)?this.targetTouches=b.targetTouches:(a.type==qg?delete this.i[b.pointerId]:this.i[b.pointerId]=b,this.targetTouches=Va(this.i));this.g&&(a.type==pg?this.e(a):a.type==qg&&(this.g=this.d(a)));a.type==og&&(this.g=this.f(a))};function Zg(a){Xg.call(this);this.a=a;this.b=this.c=k}D(Zg,Xg);Zg.prototype.e=function(a){var b=Yg(this.targetTouches);if(this.b!==k){this.a&&this.a.a.push({x:b.x,y:b.y,$a:ta()});var c=this.b.x-b.x,d=b.y-this.b.y,a=a.map.a(),c=new L(c,d),d=a.S();c.x*=d;c.y*=d;c=c.rotate(a.ca());d=a.R();c.x+=d.x;c.y+=d.y;a.a(c)}this.b=b};
Zg.prototype.d=function(a){var b=a.map,a=b.a();if(0==this.targetTouches.length){tg(a,-1);if(this.a&&Ig(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.R();this.c=this.a.ia(e);b.ra(this.c);e=Qg(b,e);b=fg(b,new dg(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}return l}this.b=k;return i};Zg.prototype.f=function(a){if(1<=this.targetTouches.length){var b=a.map,c=b.a();this.b=k;this.c!==k&&Ma(b.i,this.c)&&(yg(b),c.a(a.c.v.center),this.c=k);this.a&&(a=this.a,a.a.length=0,a.c=0,a.b=0);tg(c,1);return i}return l};function $g(a){Xg.call(this);this.a=l;this.b=0;this.s=x(a)?a:0.3}D($g,Xg);$g.prototype.e=function(a){var b=0,c=this.targetTouches[0],d=this.targetTouches[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);x(this.c)&&(b=c-this.c,this.b+=b,!this.a&&Math.abs(this.b)>this.s&&(this.a=i));this.c=c;var a=a.map,c=a.a(),d=hd(a.b),e=Yg(this.targetTouches);e.x-=d.x;e.y-=d.y;d=fg(a,e);this.a&&zg(c,a,c.ca()+b,d)};
$g.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a();this.a&&b.rotate(a,b.ca(),g,250);tg(b,-1);return l}return i};$g.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.c=g,this.a=l,this.b=0,tg(a,1),i):l};function ah(){Xg.call(this)}D(ah,Xg);ah.prototype.e=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);x(this.a)&&(b=this.a/e);this.a=e;a=a.map;e=a.a();c=hd(a.b);d=Yg(this.targetTouches);d.x-=c.x;d.y-=c.y;c=fg(a,d);Bg(e,a,e.S()*b,c)};ah.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a();b.zoom(a,b.S(),g,250);tg(b,-1);return l}return i};
ah.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.a=g,tg(a,1),i):l};function bh(a,b){var c=x(a)?a:{},d=new N;(x(c.rotate)?c.rotate:1)&&d.push(new Rg(Lg));if(x(c.Ce)?c.Ce:1)d.push(new Kg(x(c.$e)?c.$e:1));(x(c.He)?c.He:1)&&d.push(new Zg(new Hg(-0.005,0.05,100)));(x(c.Ie)?c.Ie:1)&&d.push(new $g);(x(c.Je)?c.Je:1)&&d.push(new ah);(x(c.De)?c.De:1)&&d.push(new Pg(Mg,new Hg(-0.005,0.05,100)));if(x(c.Ee)?c.Ee:1)d.push(new Ug),d.push(new Vg);(x(c.Fe)?c.Fe:1)&&d.push(new Wg);(x(c.Ge)?c.Ge:1)&&d.push(new Tg(Ng));if(x(b))for(c=0;c<b.length;++c)d.push(b[c]);return d};function ch(a){Nf.call(this,{code:a,units:"m",extent:dh,global:i})}D(ch,Nf);var eh=6378137*Math.PI,dh=new O(-eh,-eh,eh,eh),fh=Ga(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new ch(a)});ch.prototype.c=function(a,b){return a/((Math.exp(b.y/6378137)+Math.exp(-(b.y/6378137)))/2)};function gh(a,b){Nf.call(this,{code:a,units:"degrees",extent:hh,axisOrientation:b,global:i})}D(gh,Nf);var hh=new O(-180,-90,180,90),ih=[new gh("CRS:84"),new gh("EPSG:4326","neu"),new gh("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new gh("urn:ogc:def:crs:OGC:1.3:CRS84")];gh.prototype.c=ba();function jh(a,b,c,d,e){this.f=e;this.g=a;this.i=c;this.e=b;this.b=new Image;d!==k&&(this.b.crossOrigin=d);this.d={};this.c=k;this.a=0}D(jh,ge);jh.prototype.za=n("f");jh.prototype.I=n("g");function kh(a,b){if(x(b)){var c,d=z(b);if(d in a.d)return a.d[d];c=Xa(a.d)?a.b:a.b.cloneNode(l);return a.d[d]=c}return a.b}jh.prototype.s=function(){this.a=3;F(this.c,J);this.c=k;K(this,"change")};jh.prototype.u=function(){this.a=2;F(this.c,J);this.c=k;K(this,"change")};
function lh(a){0==a.a&&(a.a=1,a.c=[Oc(a.b,"error",a.s,l,a),Oc(a.b,"load",a.u,l,a)],a.b.src=a.i)};function Rh(a){this.a=a.resolutions;this.i=this.a.length;this.d=x(a.origin)?a.origin:k;this.f=k;x(a.origins)&&(this.f=a.origins);this.c=k;x(a.tileSizes)&&(this.c=a.tileSizes);this.e=x(a.tileSize)?a.tileSize:this.c===k?new Qe(256,256):k}Rh.prototype.b=function(a,b,c){for(var d=Sh(this,a),a=a.n-1;0<=a&&!b.call(c,a,Th(this,d,this.a[a]));)--a};function Uh(a,b){return a.d===k?a.f[b]:a.d}Rh.prototype.nb=n("a");
function Th(a,b,c){var d=Vh(a,new L(b.h,b.l),c),a=Vh(a,new L(b.j,b.k),c,i);return new Af(d.x,d.y,a.x,a.y)}function Wh(a,b){var c=Uh(a,b.n),d=a.a[b.n],e=Xh(a,b.n);return new L(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function Sh(a,b){var c=Uh(a,b.n),d=a.a[b.n],e=Xh(a,b.n),f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new O(f,c,f+e.width*d,c+e.height*d)}
function Vh(a,b,c,d){var e=ug(a.a,c),f=c/a.a[e],h=Uh(a,e),j=Xh(a,e),a=f*(b.x-h.x)/(c*j.width),b=f*(b.y-h.y)/(c*j.height);d?(a=Math.ceil(a)-1,b=Math.ceil(b)-1):(a=Math.floor(a),b=Math.floor(b));return new yf(e,a,b)}function Xh(a,b){return a.e===k?a.c[b]:a.e}function Yh(a){var b=a.f;b===k&&(b=Zh(a),a.f=b);return b}
function Zh(a,b,c){for(var a=a.I(),d=Math.max(a.j-a.h,a.k-a.l),c=x(c)?c:new Qe(256,256),b=Array((x(b)?b:42)+1),d=d/c.width,e=0,f=b.length;e<f;++e)b[e]=d/Math.pow(2,e);return new Rh({origin:a.Gc(),resolutions:b,tileSize:c})};function $h(a){bg.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.G=x(a.opaque)?a.opaque:l;this.tileGrid=x(a.tileGrid)?a.tileGrid:k}D($h,bg);$h.prototype.g=ie;$h.prototype.e=function(a,b,c,d){var e=i,f,h,j,m;for(j=d.h;j<=d.j;++j)for(m=d.l;m<=d.k;++m)if(f=new yf(c,j,m),h=f.toString(),!a[c]||!a[c][h])f=b(f),f===k?e=l:(a[c]||(a[c]={}),a[c][h]=f);return e};$h.prototype.nb=function(){return this.tileGrid.nb()};
function ai(a,b,c,d){for(var e,f,h;0<=b;--b){e=Th(d,c,d.a[b]);for(f=e.h;f<=e.j;++f)for(h=e.l;h<=e.k;++h)a.u(b+"/"+f+"/"+h)}}$h.prototype.u=da;function bi(a,b){M.call(this);this.u=a;this.a=b;this.t={};I(this.a,Ke("brightness"),this.bc,l,this);I(this.a,Ke("contrast"),this.cc,l,this);I(this.a,Ke("hue"),this.dc,l,this);I(this.a,"load",this.Xd,l,this);I(this.a,Ke("opacity"),this.Yd,l,this);I(this.a,Ke("saturation"),this.ec,l,this);I(this.a,Ke("visible"),this.$d,l,this)}D(bi,M);function ci(a){K(a,"change")}p=bi.prototype;p.la=n("u");p.bc=da;p.cc=da;p.dc=da;p.ac=function(a){2===a.target.a&&yg(this.u.map)};p.Xd=function(){ci(this)};p.Yd=function(){ci(this)};
p.ec=da;p.$d=function(){ci(this)};p.ne=function(a){a=a.target;2===a.a&&yg(this.u.map);delete this.t[a.b()]};function di(a,b){var c=b.b();c in a.t||(a.t[c]=i,Oc(b,"change",a.ne,l,a))}function ei(a,b){b.g()&&a.Fa.push(sa(function(a,b,e){b=z(a).toString();a.Pa(e.ab[b])},b))}function fi(a,b){if(b!=k){var c,d;for(c=0;c<b.length;++c)d=b[c],a[z(d).toString()]=d}}function gi(a,b,c,d){b=z(b).toString();c=c.toString();b in a?c in a[b]?Se(a[b][c],d):a[b][c]=d:(a[b]={},a[b][c]=d)}
function hi(a,b,c){b=z(b).toString();c=c.toString();b in a||(a[b]={});a[b][c]=i}function ii(a,b,c,d){return function(e){e=b.b(e,c,d);return a(e)?e:k}}function ji(a,b,c){return new L(b*(Math.round(a.x/b)+c.width%2/2),b*(Math.round(a.y/b)+c.height%2/2))};function ki(a,b){tc.call(this);this.T=a;this.map=b;this.d={};this.B=I(b,Ke(li),this.be,l,this);this.e=k;this.t={}}D(ki,tc);p=ki.prototype;p.bd=function(a){var b=this.gb(a),a=z(a);this.d[a]=b;this.t[a]=I(b,"change",this.Zd,l,this);mi(this.map)};
function ni(a){var b=a.v,c=a.Ac;af(c);ef(c,a.size.width/2,a.size.height/2);ff(c,1/b.resolution,-1/b.resolution);xf(c,-b.rotation);ef(c,-b.center.x,-b.center.y);var a=a.cd,b=c[0],d=c[1],e=c[2],f=c[3],h=c[4],j=c[5],m=c[6],q=c[7],v=c[8],s=c[9],A=c[10],u=c[11],t=c[12],y=c[13],w=c[14],c=c[15],B=b*j-d*h,E=b*m-e*h,Q=b*q-f*h,H=d*m-e*j,R=d*q-f*j,Y=e*q-f*m,Z=v*y-s*t,ea=v*w-A*t,ma=v*c-u*t,wa=s*w-A*y,Ea=s*c-u*y,Aa=A*c-u*w,S=B*Aa-E*Ea+Q*wa+H*ma-R*ea+Y*Z;0!=S&&(S=1/S,a[0]=(j*Aa-m*Ea+q*wa)*S,a[1]=(-d*Aa+e*Ea-f*
wa)*S,a[2]=(y*Y-w*R+c*H)*S,a[3]=(-s*Y+A*R-u*H)*S,a[4]=(-h*Aa+m*ma-q*ea)*S,a[5]=(b*Aa-e*ma+f*ea)*S,a[6]=(-t*Y+w*Q-c*E)*S,a[7]=(v*Y-A*Q+u*E)*S,a[8]=(h*Ea-j*ma+q*Z)*S,a[9]=(-b*Ea+d*ma-f*Z)*S,a[10]=(t*R-y*Q+c*B)*S,a[11]=(-v*R+s*Q-u*B)*S,a[12]=(-h*wa+j*ea-m*Z)*S,a[13]=(b*wa-d*ea+e*Z)*S,a[14]=(-t*H+y*E-w*B)*S,a[15]=(v*H-s*E+A*B)*S)}p.gb=function(a){return new bi(this,a)};p.r=function(){Ua(this.d,function(a){yc(a)});J(this.B);this.e===k||F(this.e,J);ki.z.r.call(this)};p.kb=ke;
function oi(a,b){var c=z(b);return a.d[c]}p.Zd=function(){mi(this.map)};p.ae=function(a){this.bd(a.a)};p.be=function(){xc(Va(this.d));this.d={};this.e!==k&&(F(this.e,J),this.e=k);var a=this.map.e();a!=k&&(a.forEach(this.bd,this),this.e=[I(a,"add",this.ae,l,this),I(a,"remove",this.ce,l,this)])};p.ce=function(a){a=z(a.a);if(a in this.d){var b=this.d[a];delete this.d[a];J(this.t[a]);delete this.t[a];a=b}else a=k;yc(a);mi(this.map)};p.Eb=da;function pi(a,b,c,d,e){d={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:i,WIDTH:Math.round(d.width),HEIGHT:Math.round(d.height)};$a(d,b);d.STYLES=b.STYLES||new String("");b="1.3"<d.VERSION;d[b?"CRS":"SRS"]=e.a;e=e.d;d.BBOX=(b&&"ne"==e.substr(0,2)?[c.l,c.h,c.k,c.j]:[c.h,c.l,c.j,c.k]).join(",");return zd(Bd([a],d))};function qi(a,b){return function(c,d,e){return pi(a,b,c,d,e)}}function ri(){};function si(a){bg.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.Ua=x(a.Ua)?a.Ua:ri;this.e=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=x(a.resolutions)?a.resolutions:k}D(si,bg);function ti(a,b,c,d,e){var f=k,d=a.Ua(b,d,e);x(d)&&(f=new jh(b,c,d,a.e,a.za()));return f};function ui(a){P.call(this,a)}D(ui,P);function vi(a){P.call(this,a)}D(vi,P);function wi(a){a=a?a:{};this.b=[];this.d=[];this.e=[];this.a=a.P||2;this.c=a.offset||k}function xi(a,b){for(var c=a.b.length,d=a.c,e=a.a,f=b.length,h,j,m=0;m<f;++m)if(h=b[m],d){j=c+m*e;for(var q=0;q<e;++q)a.b[j+q]=h[q]-d[q]}else Array.prototype.push.apply(a.b,h);c=a.d.push(c);a.e.push(f);return c-1}function yi(a,b,c,d){b=a.b[a.d[b]+c*a.a+d];a.c&&(b+=a.c[d]);return b}wi.prototype.J=function(a){return this.e[a]};function zi(){this.a=k}var Ai={Bf:"point",uf:"linestring",tf:"linearring",Cf:"polygon",yf:"multipoint",xf:"multilinestring",zf:"multipolygon",pf:"geometrycollection"};function Bi(a){M.call(this,a);this.b=k}D(Bi,M);p=Bi.prototype;p.Qa=function(){var a=this.ba(),b=a.length,c={},d,e;for(d=0;d<b;++d)e=a[d],c[e]=this.q(e);return c};p.sa=function(){return x(this.a)?this.q(this.a):k};p.p=function(a,b){!x(this.a)&&b instanceof zi&&(this.a=a);Bi.z.p.call(this,a,b)};p.gd=function(a){x(this.a)||(this.a="geometry");this.p(this.a,a)};p.Pe=function(a){this.b=a};function Ci(a){bg.call(this,a)}D(Ci,bg);function Di(a,b,c,d,e,f){Re.call(this,a,b,c,d);this.c=e;this.d=f;this.b={};this.a=[]}D(Di,Re);function Ei(a,b,c,d){if(a.ha(b)&&(!x(d)||a.b[d]===i)){var e=a.a.length;if(0===e)x(a.e)&&(c[a.f]=a.e);else for(var f=0;f<e;++f)Ei(a.a[f],b,c,d)}}function Fi(a,b){if(a.ha(b)){var c=a.a.length;if(0===c)return a.c===k?a:a.c;for(var d,e=0;e<c;++e)if(d=Fi(a.a[e],b),x(d))return d;return a}}function Gi(a,b){Se(a,b);a.c===k||Gi(a.c,b)}
function Hi(){this.a=new Di(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,k,0)}function Ii(a,b,c){var d={};Ei(a.a,b,d,c);return d};function Ji(a){x(a)&&(this.a=a)};function Ki(){}function Li(){};function Mi(a){this.a=x(a.filter)?a.filter:k;this.b=x(a.symbolizers)?a.symbolizers:[]};function Ni(a){this.a=x(a.rules)?a.rules:[]}Ni.prototype.apply=function(a){for(var b=this.a,c=[],d,e=0,f=b.length;e<f;++e)if(d=b[e],d.a===k||d.a.a(a)){d=d.b;for(var h=0,j=d.length;h<j;++h)c.push(d[h].a(a))}return c};function Oi(a){Ji.call(this);this.b=a}D(Oi,Ji);Oi.prototype.I=n("b");Oi.prototype.a=function(a){return a.sa().d().ha(this.b)};function Pi(a){Ji.call(this);this.b=a}D(Pi,Ji);Pi.prototype.a=function(a){a=a.sa();return a===k?l:a.c()===this.b};function Qi(a,b){Ji.call(this);this.b=a;this.c=b}D(Qi,Ji);Qi.prototype.a=function(a){for(var b=this.b,c=0,d=b.length,e=this.c,f=e(i,l),h=f;h===f&&c<d;)h=e(h,b[c].a(a)),++c;return h};function Ri(a,b){return a&&b}function Si(a,b){return a||b}var Ti={a:Ri,b:Si};function Ui(){this.clear()}Ui.prototype.clear=function(){this.a={};var a={},b;for(b in Ai)a[Ai[b]]={};this.c=a;this.b=new Hi};function Vi(a){P.call(this,a);this.Pb=x(a.style)?a.style:k;this.w=new Ui;this.b=new wi;this.a=new wi;this.c=new wi}D(Vi,P);
Vi.prototype.xa=function(a,b,c){function d(a,b){return f[b]}var e,f={point:this.b,linestring:this.a,polygon:this.c,multipoint:this.b,multilinstring:this.a,multipolygon:this.c};"string"===typeof a?(e={fb:d},a=JSON.parse(a),e=Wi(a,e)):"object"===typeof a?e=Wi(a,{fb:d}):aa(Error("Data type not supported: "+a));c=$f(this.da().c,c);c(this.b.b,this.b.b,this.b.a);c(this.a.b,this.a.b,this.a.a);c(this.c.b,this.c.b,this.c.a);c=e;a=0;for(e=c.length;a<e;++a){var b=this.w,h=c[a],j=z(h).toString(),m=h.sa();b.a[j]=
h;if(m!==k){var q=m.c();b.c[q][j]=h;j=m.d();if(b=Fi(b.b.a,j))if(m=new Di(j.h,j.l,j.j,j.k,b,b.d+1),m.e=h,m.f=z(h).toString(),b.a.push(m),Gi(b,j),x(q)&&(m.b[q]=i,b.b[q]=i),6<=b.a.length&&6>b.d&&(j=b.a.length,0!==j))for(var q=Math.ceil(j/2),m=h=g,v=0;v<j;++v)h=b.a[v],0===v%q&&(m=new Di(h.h,h.l,h.j,h.k,b,b.d+1),$a(b.b,m.b),b.a.push(m)),h.c=m,$a(m.b,h.b),m.a.push(h),Se(m,h)}}K(this,"change")};function Xi(a,b){bi.call(this,a,b)}D(Xi,bi);function Yi(a,b){bi.call(this,a,b);this.b=k;this.c=Xe()}D(Yi,Xi);Yi.prototype.M=function(){return this.b===k?k:kh(this.b,this)};Yi.prototype.Ub=n("c");
Yi.prototype.oa=function(a){var b=a.v,c=b.center,d=b.resolution,e=b.rotation,f=this.a.da(),h=a.F;!h[0]&&!h[1]&&(b=f.M(a.extent,d,b.projection),b!==k&&(f=b.a,0==f?(Oc(b,"change",this.ac,l,this),lh(b)):2==f&&(this.b=b)));if(this.b!==k){var b=this.b,f=b.I(),h=b.e,j=this.c;af(j);ef(j,a.size.width/2,a.size.height/2);xf(j,e);ff(j,h/d,h/d);ef(j,(f.h-c.x)/h,(c.y-f.k)/h);fi(a.attributions,b.za())}};function Zi(a,b){bi.call(this,a,b);this.e=this.c=this.d=k;this.f=Xe();this.b=k}D(Zi,Xi);Zi.prototype.M=n("d");Zi.prototype.Ub=n("f");
Zi.prototype.oa=function(a){var b=a.v,c=b.projection,d=this.a.da(),e=z(d).toString(),f=d.tileGrid;f===k&&(f=Yh(c));var h=ug(f.a,b.resolution),j=Xh(f,h),m=f.a[h],q=b.center,v;m==b.resolution?(q=ji(q,m,a.size),v=Ue(q,m,b.rotation,a.size)):v=a.extent;var s=Th(f,v,m),A=s.ma(),u=s.ga(),j=new Qe(j.width*A,j.height*u),t,y;this.d===k?(t=fc("CANVAS"),t.width=j.width,t.height=j.height,y=t.getContext("2d"),this.d=t,this.c=j,this.e=y,this.b=Array(A*u)):(t=this.d,y=this.e,this.c.width==j.width&&this.c.height==
j.height||(t.width=j.width,t.height=j.height,this.c=j,this.b=Array(A*u)));u={};u[h]={};var j=ra(d.e,d,u,ii(function(a){return a!==k&&2==a.a},d,f,c)),w,B,E,Q,H;for(Q=s.h;Q<=s.j;++Q)for(H=s.l;H<=s.k;++H){B=new yf(h,Q,H);w=d.b(B,f,c);E=w.a;if(0==E)hi(a.bb,d,B),t=Wh(f,B),Ef(a.mc,w,e,t);else if(1==E)di(this,w);else if(2==E||4==E){u[h][B.toString()]=w;continue}else if(3==E)continue;f.b(B,j)}e=Ga(Wa(u),Number);Sa(e);t=d.G;var c=Sh(f,new yf(h,s.h,s.k)).ob(),R,Y,Z,ea,ma,wa;for(R=0;R<e.length;++R)if(B=e[R],
j=Xh(f,B),ea=u[B],B==h)for(Y in ea)w=ea[Y],B=w.fa,B=(B.y-s.l)*A+(B.x-s.h),this.b[B]!=w&&(Q=j.width*(w.fa.x-s.h),H=j.height*(s.k-w.fa.y),E=w.a,(4==E||!t)&&y.clearRect(Q,H,j.width,j.height),2==E&&y.drawImage(w.M(),Q,H),this.b[B]=w);else for(Y in B=f.a[B]/m,ea){w=ea[Y];Z=Sh(f,w.fa);Q=(Z.h-c.x)/m;H=(c.y-Z.k)/m;wa=B*j.width;ma=B*j.height;E=w.a;(4==E||!t)&&y.clearRect(Q,H,wa,ma);2==E&&y.drawImage(w.M(),Q,H,wa,ma);H=Th(f,Z,f.a[h]);E=Math.max(H.h,s.h);w=Math.min(H.j,s.j);Q=Math.max(H.l,s.l);for(H=Math.min(H.k,
s.k);E<=w;++E)for(Z=Q;Z<=H;++Z)this.b[(Z-s.l)*A+(E-s.h)]=g}gi(a.ab,d,h,s);ai(d,h,v,f);ei(a,d);d=this.f;af(d);ef(d,a.size.width/2,a.size.height/2);xf(d,b.rotation);ff(d,m/b.resolution,m/b.resolution);ef(d,(c.x-q.x)/m,(q.y-c.y)/m)};function $i(){this.o=0;this.c={};this.b=this.a=k}p=$i.prototype;p.clear=function(){this.o=0;this.c={};this.b=this.a=k};function aj(a,b){return a.c.hasOwnProperty(b)}p.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.U,c.Q,this),c=c.ea};function bj(a,b){var c=a.c[b];if(c===a.b)return c.U;c===a.a?(a.a=a.a.ea,a.a.va=k):(c.ea.va=c.va,c.va.ea=c.ea);c.ea=k;c.va=a.b;a.b.ea=c;a.b=c;return c.U}p.J=n("o");p.ba=function(){var a=Array(this.o),b=0,c;for(c=this.b;c!==k;c=c.va)a[b++]=c.Q;return a};
p.W=function(){var a=Array(this.o),b=0,c;for(c=this.b;c!==k;c=c.va)a[b++]=c.U;return a};p.pop=function(){var a=this.a;delete this.c[a.Q];a.ea!==k&&(a.ea.va=k);this.a=a.ea;this.a===k&&(this.b=k);--this.o;return a.U};function cj(a,b,c){c={Q:b,ea:k,va:a.b,U:c};a.b===k?a.a=c:a.b.ea=c;a.b=c;a.c[b]=c;++a.o};function dj(a){$i.call(this);this.d=x(a)?a:512}D(dj,$i);dj.prototype.Pa=function(a){for(var b,c;this.J()>this.d&&!(b=this.a.U,c=b.fa.n.toString(),c in a&&a[c].contains(b.fa));)this.pop()};function ej(a,b){this.a=k;var c=b;x(c)||(c=a[0].length,c=new wi({P:c}));this.a=c;this.b=xi(c,a);this.P=c.a;this.e=k}D(ej,zi);ej.prototype.J=function(){return this.a.J(this.b)};ej.prototype.d=function(){if(this.e===k){var a=this.P,b=this.a,c=this.b,d=b.J(c),e=b.d[c],d=e+d*a,b=b.b,f,h,j,m,q,c=f=b[e];h=j=b[e+1];for(q=e+a;q<d;q+=a)e=b[q],m=b[q+1],e<c?c=e:e>f&&(f=e),m<h?h=m:m>j&&(j=m);this.e=new O(c,h,f,j)}return this.e};ej.prototype.c=ca("linestring");function fj(){this.bounds=this.b=this.a=k}D(fj,zi);fj.prototype.d=function(){if(this.bounds===k){var a,b=a=Number.POSITIVE_INFINITY,c,d=c=Number.NEGATIVE_INFINITY,e=this.b,f=e.length,h,j;for(j=0;j<f;++j)h=e[j].d(),a=Math.min(h.h,a),b=Math.min(h.l,b),c=Math.max(h.j,c),d=Math.max(h.k,d);this.bounds=new O(a,b,c,d)}return this.bounds};function gj(a,b){fj.call(this);var c=b;x(c)||(c=a[0][0].length,c=new wi({P:c}));var d=a.length;this.b=Array(d);for(var e=0;e<d;++e)this.b[e]=new ej(a[e],c);this.P=c.a}D(gj,fj);gj.prototype.c=ca("multilinestring");function hj(a,b){this.a=k;var c=b;x(c)||(c=a.length,c=new wi({P:c}));this.a=c;this.b=xi(c,[a]);this.P=c.a;this.e=k}D(hj,zi);hj.prototype.d=function(){if(this.e===k){var a=yi(this.a,this.b,0,0),b=yi(this.a,this.b,0,1);this.e=new O(a,b,a,b)}return this.e};hj.prototype.c=ca("point");function ij(a,b){fj.call(this);var c=b;x(c)||(c=a[0].length,c=new wi({P:c}));this.a=c;var d=a.length;this.b=Array(d);for(var e=0;e<d;++e)this.b[e]=new hj(a[e],c);this.P=c.a}D(ij,fj);ij.prototype.c=ca("multipoint");function jj(a,b){ej.call(this,a,b)}D(jj,ej);jj.prototype.c=ca("linearring");function kj(a,b){this.a=k;var c=b;x(c)||(c=a[0][0].length,c=new wi({P:c}));this.a=c;var d=a.length;this.b=Array(d);for(var e=0;e<d;++e)this.b[e]=new jj(a[e],c);this.P=c.a;this.e=k}D(kj,zi);kj.prototype.d=function(){return this.b[0].d()};kj.prototype.c=ca("polygon");function lj(a,b){fj.call(this);var c=b;x(c)||(c=a[0][0][0].length,c=new wi({P:c}));var d=a.length;this.b=Array(d);for(var e=0;e<d;++e)this.b[e]=new kj(a[e],c);this.P=c.a}D(lj,fj);lj.prototype.c=ca("multipolygon");function mj(a){this.b=a}mj.prototype.a=function(a,b){var c=x(a)?a:r,d=x(b)?b:r,e=[],f=[],h;for(h in d)e.push(h),f.push(d[h]);return(new Function(e.join(","),"return "+this.b)).apply(c,f)};function U(a){this.U=a}D(U,mj);U.prototype.a=n("U");function nj(){}D(nj,Ki);function oj(a){this.url=a.url;this.width=a.width;this.height=a.height;this.opacity=a.opacity;this.rotation=a.rotation}D(oj,nj);oj.prototype.a=function(a){return this.url==a.type&&this.width==a.width&&this.height==a.height&&this.opacity==a.opacity&&this.rotation==a.rotation};
function pj(a){this.e=a.url instanceof mj?a.url:new U(a.url);this.d=!x(a.width)?k:a.width instanceof mj?a.width:new U(a.width);this.b=!x(a.height)?k:a.height instanceof mj?a.height:new U(a.height);this.c=!x(a.opacity)?new U(qj.opacity):a.opacity instanceof mj?a.opacity:new U(a.opacity);this.f=!x(a.rotation)?new U(qj.rotation):a.rotation instanceof mj?a.rotation:new U(a.rotation)}
pj.prototype.a=function(a){var b=a.Qa(),c=this.e.a(a,b),d=this.d===k?g:this.d.a(a,b),e=this.b===k?g:this.b.a(a,b),f=this.c.a(a,b),a=this.c.a(a,b);return new oj({url:c,width:d,height:e,opacity:f,rotation:a})};var qj=new oj({url:"#",opacity:1,rotation:0});function rj(a){this.strokeColor=a.strokeColor;this.strokeWidth=a.strokeWidth;this.opacity=a.opacity}D(rj,Ki);rj.prototype.a=function(a){return this.strokeColor==a.strokeColor&&this.strokeWidth==a.strokeWidth&&this.opacity==a.opacity};
function sj(a){this.c=!x(a.strokeColor)?new U(tj.strokeColor):a.strokeColor instanceof mj?a.strokeColor:new U(a.strokeColor);this.d=!x(a.strokeWidth)?new U(tj.strokeWidth):a.strokeWidth instanceof mj?a.strokeWidth:new U(a.strokeWidth);this.b=!x(a.opacity)?new U(tj.opacity):a.opacity instanceof mj?a.opacity:new U(a.opacity)}D(sj,Li);sj.prototype.a=function(a){var b;x(a)&&(b=a.Qa());var c=this.c.a(a,b),d=this.d.a(a,b),a=this.b.a(a,b);return new rj({strokeColor:c,strokeWidth:d,opacity:a})};
var tj=new rj({strokeColor:"#696969",strokeWidth:1.5,opacity:0.75});function uj(a){this.fillColor=a.fillColor;this.strokeColor=a.strokeColor;this.strokeWidth=a.strokeWidth;this.opacity=a.opacity}D(uj,Ki);uj.prototype.a=function(a){return this.fillColor==a.fillColor&&this.strokeColor==a.strokeColor&&this.strokeWidth==a.strokeWidth&&this.opacity==a.opacity};
function vj(a){this.b=a.fillColor==k?k:a.fillColor instanceof mj?a.fillColor:new U(a.fillColor);var b=k,c=k;if(a.strokeColor!=k||a.strokeWidth!=k)b=a.strokeColor==k?new U(wj.strokeColor):a.strokeColor instanceof mj?a.strokeColor:new U(a.strokeColor),c=!x(a.strokeWidth)?new U(wj.strokeWidth):a.strokeWidth instanceof mj?a.strokeWidth:new U(a.strokeWidth);this.c=b;this.d=c;this.e=!x(a.opacity)?new U(wj.opacity):a.opacity instanceof mj?a.opacity:new U(a.opacity)}D(vj,Li);
vj.prototype.a=function(a){var b;x(a)&&(b=a.Qa());var c=this.b===k?g:this.b.a(a,b),d=this.c===k?g:this.c.a(a,b),e=this.d===k?g:this.d.a(a,b),a=this.e.a(a,b);return new uj({fillColor:c,strokeColor:d,strokeWidth:e,opacity:a})};var wj=new uj({fillColor:"#ffffff",strokeColor:"#696969",strokeWidth:1.5,opacity:0.75});var xj={ef:"circle"};function yj(a){this.type=a.type;this.size=a.size;this.fillColor=a.fillColor;this.strokeColor=a.strokeColor;this.strokeWidth=a.strokeWidth;this.opacity=a.opacity}D(yj,nj);yj.prototype.a=function(a){return this.type==a.type&&this.size==a.size&&this.fillColor==a.fillColor&&this.strokeColor==a.strokeColor&&this.strokeWidth==a.strokeWidth&&this.opacity==a.opacity};
function zj(a){this.g=x(a.type)?a.type:Aj.type;this.f=!x(a.size)?new U(Aj.size):a.size instanceof mj?a.size:new U(a.size);this.b=a.fillColor==k?k:a.fillColor instanceof mj?a.fillColor:new U(a.fillColor);var b=k,c=k;if(a.strokeColor!=k||a.strokeWidth!=k)b=a.strokeColor==k?new U(Aj.strokeColor):a.strokeColor instanceof mj?a.strokeColor:new U(a.strokeColor),c=!x(a.strokeWidth)?new U(Aj.strokeWidth):a.strokeWidth instanceof mj?a.strokeWidth:new U(a.strokeWidth);this.c=b;this.d=c;this.e=!x(a.opacity)?
new U(Aj.opacity):a.opacity instanceof mj?a.opacity:new U(a.opacity)}zj.prototype.a=function(a){var b;x(a)&&(b=a.Qa());var c=this.f.a(a,b),d=this.b===k?g:this.b.a(a,b),e=this.c===k?g:this.c.a(a,b),f=this.d===k?g:this.d.a(a,b),a=this.e.a(a,b);return new yj({type:this.g,size:c,fillColor:d,strokeColor:e,strokeWidth:f,opacity:a})};var Aj=new yj({type:"circle",size:5,fillColor:"#ffffff",strokeColor:"#696969",strokeWidth:1.5,opacity:0.75});function Bj(a,b,c){var a=a.getContext("2d"),d=x(g)?g.x:0,e=x(g)?g.y:0;this.d=b;a.setTransform(b[0],b[1],b[4],b[5],b[12]+d,b[13]+e);var d=[1,0,0],e=d[0],f=d[1],h=d[2];d[0]=e*b[0]+f*b[4]+h*b[8];d[1]=e*b[1]+f*b[5]+h*b[9];d[2]=e*b[2]+f*b[6]+h*b[10];this.b=1/Math.sqrt(d[0]*d[0]+d[1]*d[1]);this.a=a;this.c=c}
function Cj(a,b){var c=a.url,d=Dj[c],e=l;if(x(d)){if(d!==k){var c=a.width,f=a.height;x(c)&&x(f)?(d.width=c,d.height=f):x(c)?(d.height*=c/d.width,d.width=c):x(f)&&(d.width*=f/d.height,d.height=f)}}else e=i,d=fc("IMG"),Oc(d,"error",ra(Ej,k,b),l,Cj),Oc(d,"load",ra(Fj,k,b),l,Cj),d.setAttribute("src",c),Dj[c]=d;return e?k:d}var Dj={};function Ej(a,b){if(x(b)){var c=b.target.getAttribute("src");Dj[c]=k;Fj(a,b)}}function Fj(a,b){if(x(b)){var c=b.target.getAttribute("src");Dj[c]=b.target}x(a)&&a()};function Gj(a,b){bi.call(this,a,b);this.d=fc("CANVAS");this.G=this.d.getContext("2d");this.g=Xe();this.T=fc("CANVAS");this.Z=Xe();this.b=new dj(Hj);Oc(b,"change",this.Wd,l,this);this.c=k;this.B=[new Pi("point"),new Pi("multipoint"),new Pi("linestring"),new Pi("multilinestring"),new Pi("polygon"),new Pi("multipolygon")];this.i=k;this.e=this.ka=l;this.f=k;this.w=ra(function(){this.ka=i;yg(a.map)},this)}D(Gj,Xi);p=Gj.prototype;p.M=n("d");p.Ub=n("g");p.Wd=function(){this.b.clear();this.w()};
p.oa=function(a){var b=a.v,c=b.resolution,d=a.extent,e=this.a,f=this.f;f===k&&(this.f=f=Zh(b.projection,22,new Qe(512,512)));var h=ug(f.a,c),j=f.a[h],m=Th(f,d,j),q,v=Uh(f,h),s=f.a[h],A=Xh(f,h);q=new O(v.x+m.h*A.width*s,v.y+m.l*A.height*s,v.x+(m.j+1)*A.width*s,v.y+(m.k+1)*A.height*s);var u=Xh(f,h),t=q.ob(),y=this.g;af(y);ef(y,a.size.width/2,a.size.height/2);ff(y,j/c,j/c);xf(y,b.rotation);ef(y,(t.x-b.center.x)/j,(b.center.y-t.y)/j);if(this.ka||!(this.K===j&&this.i.toString()===q.toString())){this.c===
k&&(this.c=fc("CANVAS"),this.c.width=u.width,this.c.height=u.height);var w=this.T,B=new Qe(u.width*m.ma(),u.height*m.ga()),E=this.Z,Q=B.width/2,H=B.height/2;af(E);ef(E,Q,H);ff(E,1/j,-1/j);ef(E,-(t.x+Q*j),-(t.y-H*j));w.width=B.width;w.height=B.height;var R=new Bj(w,E,this.w),Y=this.d;Y.width=B.width;Y.height=B.height;var Z=this.G,ea={},ma={},wa={},Ea=15*j,Aa,S,Ia,vb,wb,dk=this.B,Rm=dk.length,ek=l,gf,mh,mb,fk,nc,nh,oh,hf,gk;for(vb=m.h;vb<=m.j;++vb)for(wb=m.l;wb<=m.k;++wb)if(S=new yf(h,vb,wb),Ia=S.toString(),
aj(this.b,Ia))ma[Ia]=S;else if(!a.F[0]){mb=Sh(f,S);mb.h-=Ea;mb.l-=Ea;mb.j+=Ea;mb.k+=Ea;fk=new Oi(mb);for(gf=0;gf<Rm;++gf){mh=dk[gf];nc=mh.b;x(ea[nc])||(ea[nc]={});var Sm=$a,Tm=ea[nc],Od=e.w,Cb=new Qi([mh,fk],Ri),oc=g,Wb=g;if(x(Cb)){if(Cb instanceof Pi)Wb=Od.c[Cb.b];else if(Cb instanceof Oi)Wb=Ii(Od.b,Cb.I());else if(Cb instanceof Qi&&Cb.c===Ri){var hk=Cb.b;if(2===hk.length){for(var Pd=g,ph=g,qh=g,oc=0;1>=oc;++oc)Pd=hk[oc],Pd instanceof Pi?ph=Pd:Pd instanceof Oi&&(qh=Pd);qh&&ph&&(Wb=Ii(Od.b,qh.I(),
ph.b))}}if(!x(Wb)){var ik=Od.a,rh=g,Wb={};for(oc in ik)rh=ik[oc],Cb.a(rh)===i&&(Wb[oc]=rh)}}else Wb=Od.a;Sm(Tm,Wb)}wa[Ia]=S}for(nc in ea){var jk=ea[nc],Qd={},Rd=[],kk=e.Pb,lk=g,jf=g,mk=g,kf=g,Sd=g,nk=g,Td=g,sh=g,lf=g;for(lk in jk){var mf=kf=jk[lk],th=k;if(mf.b!==k)for(var ok=mf.b.length,th=Array(ok),nf=0;nf<ok;++nf)th[nf]=mf.b[nf].a(mf);Sd=th;if(Sd===k){var uh;if(kk===k){var pk=kf.sa(),of=[];if(pk!==k){var pc=pk.c();"point"===pc||"multipoint"===pc?of.push(Aj):"linestring"===pc||"multilinestring"===
pc?of.push(tj):("linearring"===pc||"polygon"===pc||"multipolygon"===pc)&&of.push(wj)}uh=of}else uh=kk.apply(kf);Sd=uh}nk=Sd.length;for(jf=0;jf<nk;++jf){Td=Sd[jf];for(mk in Qd)if(sh=Rd[Qd[mk]][1],Td.a(sh)){Td=sh;break}lf=z(Td);lf in Qd||(Qd[lf]=Rd.length,Rd.push([[],Td]));Rd[Qd[lf]][0].push(kf)}}nh=Rd;gk=nh.length;for(hf=0;hf<gk;++hf){oh=nh[hf];var vh=R,qk=nc,wh=oh[0],xh=oh[1],yh=l;switch(qk){case "point":case "multipoint":var zh=vh,rk=wh,Xb=xh,Ud=zh.a,Yb=g,Ah=g,pf=g,sk=g,qf=g,Bh=g,rf=g,tk=g,Vd=g,
Ch=g;if(Xb instanceof yj){var uk=g;if("circle"===Xb.type){var Pc=Xb,vk=Pc.strokeWidth||0,Dh=Pc.size+2*vk+1,wk=Dh/2,sf=fc("CANVAS"),nb=sf.getContext("2d"),Eh=Pc.fillColor,Fh=Pc.strokeColor,Um=2*Math.PI;sf.height=Dh;sf.width=Dh;nb.globalAlpha=Pc.opacity;Eh&&(nb.fillStyle=Eh);Fh&&(nb.lineWidth=vk,nb.strokeStyle=Fh,nb.lineCap="round",nb.lineJoin="round");nb.beginPath();nb.arc(wk,wk,Pc.size/2,0,Um,i);Eh&&nb.fill();Fh&&nb.stroke();uk=sf}else aa(Error("Unsupported shape type: "+Xb));Yb=uk;Ah=1}else Xb instanceof
oj?(Yb=Cj(Xb,zh.c),Ah=Xb.opacity):aa(Error("Unsupported symbolizer: "+Xb));if(Yb===k)yh=i;else{var Vm=Yb.width/2,Wm=Yb.height/2;Ud.save();Ud.setTransform(1,0,0,1,-Vm,-Wm);Ud.globalAlpha=Ah;pf=0;for(sk=rk.length;pf<sk;++pf){qf=rk[pf].sa();Bh=qf instanceof hj?[qf]:qf.b;rf=0;for(tk=Bh.length;rf<tk;++rf)Vd=Bh[rf],Ch=df(zh.d,[yi(Vd.a,Vd.b,0,0),yi(Vd.a,Vd.b,0,1),0],[]),Ud.drawImage(Yb,Ch[0],Ch[1],Yb.width,Yb.height)}Ud.restore();yh=l}break;case "linestring":case "multilinestring":var xk=vh,yk=wh,Gh=xh,
Db=xk.a,tf=g,zk=g,uf=g,Hh=g,vf=g,Ak=g,Qc=g,Rc=g,Bk=g,Ih=g,Jh=g;Db.globalAlpha=Gh.opacity;Db.strokeStyle=Gh.strokeColor;Db.lineWidth=Gh.strokeWidth*xk.b;Db.lineCap="round";Db.lineJoin="round";Db.beginPath();tf=0;for(zk=yk.length;tf<zk;++tf){uf=yk[tf].sa();Hh=uf instanceof ej?[uf]:uf.b;vf=0;for(Ak=Hh.length;vf<Ak;++vf){Qc=Hh[vf];Rc=0;for(Bk=Qc.J();Rc<Bk;++Rc)Ih=yi(Qc.a,Qc.b,Rc,0),Jh=yi(Qc.a,Qc.b,Rc,1),0===Rc?Db.moveTo(Ih,Jh):Db.lineTo(Ih,Jh)}}Db.stroke();break;case "polygon":case "multipolygon":var Ck=
vh,Dk=wh,Wd=xh,Ka=Ck.a,Kh=Wd.strokeColor,Xd=Wd.fillColor,Yd=g,Lh=g,wf=g,Mh=g,Zd=g,Nh=g,Ek=g,Oh=g,Fk=g,Sc=g,Tc=g,Gk=g,Ph=g,Qh=g;Ka.globalAlpha=Wd.opacity;Kh&&(Ka.strokeStyle=Wd.strokeColor,Ka.lineWidth=Wd.strokeWidth*Ck.b,Ka.lineCap="round",Ka.lineJoin="round");Xd&&(Ka.fillStyle=Xd);Ka.beginPath();Yd=0;for(Lh=Dk.length;Yd<Lh;++Yd){wf=Dk[Yd].sa();Mh=wf instanceof kj?[wf]:wf.b;Zd=0;for(Nh=Mh.length;Zd<Nh;++Zd)if(Ek=Mh[Zd],Oh=Ek.b,Fk=Oh.length,0<Fk){Sc=Oh[0];Tc=0;for(Gk=Sc.J();Tc<Gk;++Tc)Ph=yi(Sc.a,Sc.b,
Tc,0),Qh=yi(Sc.a,Sc.b,Tc,1),0===Tc?Ka.moveTo(Ph,Qh):Ka.lineTo(Ph,Qh);Xd&&Kh&&(Ka.fill(),Ka.stroke(),(Yd<Lh-1||Zd<Nh-1)&&Ka.beginPath())}}if(!Xd||!Kh)Xd?Ka.fill():Ka.stroke();break;default:aa(Error("Rendering not implemented for geometry type: "+qk))}if(ek=yh)break}ek||$a(ma,wa)}this.ka=i;for(Ia in ma)S=ma[Ia],aj(this.b,Ia)?Aa=bj(this.b,Ia):(Aa=this.c.cloneNode(l),Aa.getContext("2d").drawImage(w,(m.h-S.x)*u.width,(S.y-m.k)*u.height),cj(this.b,Ia,Aa)),Z.drawImage(Aa,u.width*(S.x-m.h),u.height*(m.k-
S.y)),this.ka=l;this.K=j;this.i=q;this.e||(this.e=i,a.Fa.push(ra(this.Le,this)))}};p.Le=function(){for(;this.b.J()>this.b.d;)this.b.pop();this.e=l};var Hj=128;function Ij(a,b){ki.call(this,a,b);this.f=new Qe(a.clientHeight,a.clientWidth);this.c=fc("CANVAS");this.c.height=this.f.height;this.c.width=this.f.width;this.c.className="ol-unselectable";ic(a,this.c);this.g=i;this.i=this.c.getContext("2d")}D(Ij,ki);Ij.prototype.gb=function(a){return a instanceof ui?new Yi(this,a):a instanceof vi?new Zi(this,a):a instanceof Vi?new Gj(this,a):k};Ij.prototype.kb=n("c");
Ij.prototype.Eb=function(a){if(a===k)this.g&&(ld(this.c,l),this.g=l);else{var b=a.size;this.f.width==b.width&&this.f.height==b.height||(this.c.width=b.width,this.c.height=b.height,this.f=b);var c=this.i;c.setTransform(1,0,0,1,0,0);var d=a.backgroundColor;c.fillStyle="rgb("+d.c.toFixed(0)+","+d.b.toFixed(0)+","+d.a.toFixed(0)+")";c.globalAlpha=1;c.fillRect(0,0,b.width,b.height);ni(a);F(a.zb,function(b){var d=a.yb[z(b)];if(d.visible)if(d.Ib){var h=oi(this,b);h.oa(a,d);b=h.M();b!==k&&(h=h.Ub(),c.setTransform(h[0],
h[1],h[4],h[5],h[12],h[13]),c.globalAlpha=d.opacity,c.drawImage(b,0,0))}else a.$=i},this);this.g||(ld(this.c,i),this.g=i)}};var Jj=function(){if(!("HTMLCanvasElement"in r))return l;try{return fc("CANVAS").getContext("2d")!==k}catch(a){return l}}();function Kj(a,b){var c;if(x(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");c="matrix3d("+c+")";d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.transform=c};function Lj(a,b,c){bi.call(this,a,b);this.target=c}D(Lj,bi);Lj.prototype.r=function(){jc(this.target);Lj.z.r.call(this)};function Mj(a,b){var c=fc("DIV");c.className="ol-layer-image";c.style.position="absolute";Lj.call(this,a,b,c);this.b=k;this.c=Ze()}D(Mj,Lj);
Mj.prototype.oa=function(a){var b=a.v,c=b.center,d=b.resolution,e=b.rotation,f=this.b,h=this.a.da(),j=a.F;!j[0]&&!j[1]&&(b=h.M(a.extent,d,b.projection),b!==k&&(h=b.a,0==h?(Oc(b,"change",this.ac,l,this),lh(b)):2==h&&(f=b)));f!==k&&(h=f.I(),j=f.e,b=Xe(),af(b),ef(b,a.size.width/2,a.size.height/2),xf(b,e),ff(b,j/d,j/d),ef(b,(h.h-c.x)/j,(c.y-h.k)/j),f!=this.b&&(c=kh(f,this),c.style.position="absolute",hc(this.target),this.target.appendChild(c),this.b=f),cf(b,this.c)||(Kj(this.target,b),$e(this.c,b)),fi(a.attributions,
f.za()))};function Nj(a,b){var c=fc("DIV");c.className="ol-layer-tile";c.style.position="absolute";Lj.call(this,a,b,c);this.c=i;this.d=1;this.b={}}D(Nj,Lj);
Nj.prototype.oa=function(a,b){if(b.visible){var c=a.v,d=c.projection,e=this.a.da(),f=z(e).toString(),h=e.tileGrid;h===k&&(h=Yh(d));var j=ug(h.a,c.resolution),m=h.a[j],q=c.center,v;m==c.resolution?(q=ji(q,m,a.size),v=Ue(q,m,c.rotation,a.size)):v=a.extent;var m=Th(h,v,m),s={};s[j]={};var A=ra(e.e,e,s,ii(function(a){return a!==k&&2==a.a},e,h,d)),u,t,y,w,B;for(w=m.h;w<=m.j;++w)for(B=m.l;B<=m.k;++B){y=new yf(j,w,B);u=e.b(y,h,d);t=u.a;if(0==t)hi(a.bb,e,y),t=Wh(h,y),Ef(a.mc,u,f,t);else if(1==t)di(this,u);
else if(2==t){s[j][y.toString()]=u;continue}else if(3==t||4==t)continue;h.b(y,A)}A=Ga(Wa(s),Number);Sa(A);var d={},E;for(u=0;u<A.length;++u){y=A[u];y in this.b?f=this.b[y]:(f=Vh(h,q,h.a[y]),f=new Oj(h,f),d[y]=i,this.b[y]=f);y=s[y];for(E in y){w=f;B=y[E];t=B.fa;var Q=t.toString();if(!(Q in w.b)){var H=Xh(w.c,t.n),R=B.M(w),Y=R.style;Y.position="absolute";Y.left=(t.x-w.d.x)*H.width+"px";Y.top=(w.d.y-t.y)*H.height+"px";w.a===k&&(w.a=document.createDocumentFragment());w.a.appendChild(R);w.b[Q]=B}}f.a!==
k&&(f.target.appendChild(f.a),f.a=k)}E=Ga(Wa(this.b),Number);Sa(E);u=Xe();for(A=0;A<E.length;++A)if(y=E[A],f=this.b[y],y in s)if(B=f.g,w=f.f,af(u),ef(u,a.size.width/2,a.size.height/2),xf(u,c.rotation),ff(u,B/c.resolution,B/c.resolution),ef(u,(w.x-q.x)/B,(q.y-w.y)/B),w=f,B=u,cf(B,w.e)||(Kj(w.target,B),$e(w.e,B)),y in d){for(y-=1;0<=y;--y)if(y in this.b){w=this.b[y].target;w.parentNode&&w.parentNode.insertBefore(f.target,w.nextSibling);break}0>y&&ic(this.target,f.target)}else{if(!a.F[0]&&!a.F[1]){t=
Th(f.c,v,f.c.a[f.d.n]);y=[];B=w=g;for(B in f.b)w=f.b[B],t.contains(w.fa)||y.push(w);t=g;for(t=0;t<y.length;++t)w=y[t],B=w.fa.toString(),jc(w.M(f)),delete f.b[B]}}else jc(f.target),delete this.b[y];b.opacity!=this.d&&(c=b.opacity,q=this.target.style,"opacity"in q?q.opacity=c:"MozOpacity"in q?q.MozOpacity=c:"filter"in q&&(q.filter=""===c?"":"alpha(opacity="+100*c+")"),this.d=b.opacity);b.visible&&!this.c&&(ld(this.target,i),this.c=i);gi(a.ab,e,j,m);ai(e,j,v,h);ei(a,e)}else this.c&&(ld(this.target,l),
this.c=l)};function Oj(a,b){this.target=fc("DIV");this.target.style.position="absolute";this.c=a;this.d=b;this.f=Sh(a,b).ob();this.g=a.a[b.n];this.b={};this.a=k;this.e=Ze()};function Pj(a,b){ki.call(this,a,b);this.c=fc("DIV");this.c.className="ol-layers ol-unselectable";var c=this.c.style;c.position="absolute";c.width="100%";c.height="100%";ic(a,this.c);this.f=i}D(Pj,ki);Pj.prototype.gb=function(a){var b;a instanceof vi?b=new Nj(this,a):a instanceof ui&&(b=new Mj(this,a));this.c.appendChild(b.target);return b};
Pj.prototype.Eb=function(a){a===k?this.f&&(ld(this.c,l),this.f=l):(F(a.zb,function(b){var c=a.yb[z(b)];c.Ib&&oi(this,b).oa(a,c)},this),this.f||(ld(this.c,i),this.f=i),ni(a))};function Qj(a){this.a=a}Qj.prototype.da=n("a");function Rj(a){this.a=a}D(Rj,Qj);Rj.prototype.b=ca(35632);function Sj(a){this.a=a}D(Sj,Qj);Sj.prototype.b=ca(35633);function Tj(a,b){bi.call(this,a,b);this.B=new Float32Array(16);this.K=new Float32Array(16);this.T=new Float32Array(16);this.Z=new Float32Array(16);this.G=new Float32Array(16);this.c=i;this.bc();this.cc();this.dc();this.ec()}D(Tj,bi);function Uj(a){if(a.c){var b=a.G;af(b);bf(b,a.K,b);bf(b,a.B,b);bf(b,a.Z,b);bf(b,a.T,b);a.c=l}return a.G}p=Tj.prototype;p.la=function(){return Tj.z.la.call(this)};p.bc=function(){var a=this.a.d(),b=this.B;af(b);b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;ci(this)};
p.cc=function(){var a=this.a.e(),b=this.K;af(b);b[0]=a;b[5]=a;b[10]=a;b[15]=1;a=-0.5*a+0.5;b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;ci(this)};p.dc=function(){var a=this.a.f(),b=Math.cos(a),a=Math.sin(a);Ye(this.T,0.213+0.787*b-0.213*a,0.213-0.213*b+0.143*a,0.213-0.213*b-0.787*a,0,0.715-0.715*b-0.715*a,0.715+0.285*b+0.14*a,0.715-0.715*b+0.715*a,0,0.072-0.072*b+0.928*a,0.072-0.072*b-0.283*a,0.072+0.928*b+0.072*a,0,0,0,0,1);this.c=i;ci(this)};
p.ec=function(){var a=this.a.i();Ye(this.Z,0.213+0.787*a,0.213-0.213*a,0.213-0.213*a,0,0.715-0.715*a,0.715+0.285*a,0.715-0.715*a,0,0.072-0.072*a,0.072-0.072*a,0.072+0.928*a,0,0,0,0,1);this.c=i;ci(this)};p.Ta=da;function Vj(a,b){Tj.call(this,a,b);this.b=this.d=k;this.f=Ze();this.e=Xe()}D(Vj,Tj);p=Vj.prototype;p.r=function(){var a=this.la().a;a.isContextLost()||a.deleteTexture(this.b);Vj.z.r.call(this)};p.Jc=n("f");p.Kc=n("b");p.Ic=n("e");p.Ta=function(){this.b=k};
p.oa=function(a){var b=this.la().a,c=a.v,d=c.center,e=c.resolution,f=c.rotation,h=this.d,j=this.b,m=this.a.da(),q=a.F;!q[0]&&!q[1]&&(c=m.M(a.extent,e,c.projection),c!==k&&(m=c.a,0==m?(Oc(c,"change",this.ac,l,this),lh(c)):2==m&&(h=c,j=kh(c,this),c=this.la().a,m=c.createTexture(),c.bindTexture(3553,m),c.texImage2D(3553,0,6408,6408,5121,j),c.texParameteri(3553,10242,33071),c.texParameteri(3553,10243,33071),c.texParameteri(3553,10241,9729),c.texParameteri(3553,10240,9729),j=m,this.b===k||a.Fa.push(sa(function(a,
b){a.isContextLost()||a.deleteTexture(b)},b,this.b)))));h!==k&&(m=this.la().kb(),b=h.I(),c=m.width*e,e*=m.height,m=this.e,af(m),ff(m,2/c,2/e),xf(m,-f),ef(m,b.h-d.x,b.l-d.y),ff(m,b.ma()/2,b.ga()/2),ef(m,1,1),d=this.f,af(d),ff(d,1,-1),ef(d,0,-1),this.d=h,this.b=j,fi(a.attributions,h.za()))};function Wj(a,b){this.Q=a;this.U=b}Wj.prototype.V=function(){return new Wj(this.Q,this.U)};function Xj(a){this.a=[];if(a)a:{var b,c;if(a instanceof Xj){if(b=a.ba(),c=a.W(),0>=a.J()){for(var a=this.a,d=0;d<b.length;d++)a.push(new Wj(b[d],c[d]));break a}}else b=Wa(a),c=Va(a);for(d=0;d<b.length;d++)Yj(this,b[d],c[d])}}function Yj(a,b,c){var d=a.a;d.push(new Wj(b,c));b=d.length-1;a=a.a;for(c=a[b];0<b;)if(d=b-1>>1,a[d].Q>c.Q)a[b]=a[d],b=d;else break;a[b]=c}p=Xj.prototype;
p.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)La(a);else{a[0]=a.pop();for(var a=0,b=this.a,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,h=2*a+2,f=h<d&&b[h].Q<b[f].Q?h:f;if(b[f].Q>e.Q)break;b[a]=b[f];a=f}b[a]=e}return c.U}};p.W=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].U);return b};p.ba=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].Q);return b};p.V=function(){return new Xj(this)};p.J=function(){return this.a.length};
p.Wa=function(){return 0==this.a.length};p.clear=function(){La(this.a)};function Zj(){Xj.call(this)}D(Zj,Xj);function $j(){this.a="precision mediump float;\n\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n}"}D($j,Rj);fa($j);function ak(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nuniform vec4 uTileOffset;\n\nvoid main(void) {\n gl_Position.xy = aPosition * uTileOffset.xy + uTileOffset.zw;\n gl_Position.z = 0.;\n gl_Position.w = 1.;\n vTexCoord = aTexCoord;\n}"}D(ak,Sj);fa(ak);
function bk(a,b){Tj.call(this,a,b);this.qa=$j.lb();this.xa=ak.lb();this.e=this.g=this.f=this.D=k;this.i=g;this.d=Xe();this.wa=Ze();this.w=this.b=k}D(bk,Tj);p=bk.prototype;p.r=function(){var a=this.la().a;a.isContextLost()||(a.deleteBuffer(this.f),a.deleteFramebuffer(this.e),a.deleteTexture(this.g));bk.z.r.call(this)};p.Jc=n("d");p.Kc=n("g");p.Ic=n("wa");p.Ta=function(){this.e=this.g=this.f=this.D=k;this.i=g};
p.oa=function(a){var b=this.la(),c=b.a,d=a.v,e=d.projection,f=this.a.da(),h=z(f).toString(),j=f.tileGrid;j===k&&(j=Yh(e));var m=ug(j.a,d.resolution),q=j.a[m],v=d.center,s;q==d.resolution?(v=ji(v,q,a.size),s=Ue(v,q,d.rotation,a.size)):s=a.extent;var A=Th(j,s,q),u;if(this.b!==k&&this.b.h==A.h&&this.b.l==A.l&&this.b.j==A.j&&this.b.k==A.k)u=this.w;else{var t=new Qe(A.ma(),A.ga()),y=Xh(j,m),t=Math.max(t.width*y.width,t.height*y.height),t=Math.pow(2,Math.ceil(Math.log(t)/Math.log(2))),w=new Qe(q*t,q*t),
B=Uh(j,m),E=B.x+A.h*y.width*q,q=B.y+A.l*y.height*q;u=new O(E,q,E+w.width,q+w.height);q=this.la().a;!x(this.i)||this.i!=t?(a.Fa.push(sa(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},q,this.e,this.g)),y=q.createTexture(),q.bindTexture(3553,y),q.texImage2D(3553,0,6408,t,t,0,6408,5121,k),q.texParameteri(3553,10240,9729),q.texParameteri(3553,10241,9729),E=q.createFramebuffer(),q.bindFramebuffer(36160,E),q.framebufferTexture2D(36160,36064,3553,y,0),this.g=y,this.e=E,this.i=
t):q.bindFramebuffer(36160,this.e);c.viewport(0,0,t,t);c.clearColor(0,0,0,0);c.clear(16384);c.disable(3042);t=ck(b,this.qa,this.xa);c.useProgram(t);this.D===k&&(this.D={rc:c.getAttribLocation(t,"aPosition"),sc:c.getAttribLocation(t,"aTexCoord"),Se:c.getUniformLocation(t,"uTileOffset"),Re:c.getUniformLocation(t,"uTexture")});this.f===k?(t=c.createBuffer(),c.bindBuffer(34962,t),c.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=t):c.bindBuffer(34962,this.f);c.enableVertexAttribArray(this.D.rc);
c.vertexAttribPointer(this.D.rc,2,5126,l,16,0);c.enableVertexAttribArray(this.D.sc);c.vertexAttribPointer(this.D.sc,2,5126,l,16,8);c.uniform1i(this.D.Re,0);var Q={};Q[m]={};for(var q=ra(f.e,f,Q,ii(function(a){return a!==k&&2==a.a&&aj(b.b,a.b())},f,j,e)),t=new Zj,H=i,R,Y,B=A.h;B<=A.j;++B)for(Y=A.l;Y<=A.k;++Y){E=new yf(m,B,Y);y=f.b(E,j,e);R=y.a;if(0==R)hi(a.bb,f,E),R=Wh(j,E),Ef(a.mc,y,h,R);else if(1==R)di(this,y);else if(2==R)if(aj(b.b,y.b())){Q[m][E.toString()]=y;continue}else R=Wh(j,E),H=R.x-v.x,
R=R.y-v.y,H=Math.sqrt(H*H+R*R),Yj(t,H,y);else if(3==R||4==R)continue;H=l;j.b(E,q)}e=Ga(Wa(Q),Number);Sa(e);var Z=new Float32Array(4);F(e,function(a){Ua(Q[a],function(a){var d=Sh(j,a.fa),e=2*d.ga()/w.height,f=2*(d.h-u.h)/w.width-1,h=2*(d.l-u.l)/w.height-1;Z[0]=2*d.ma()/w.width;Z[1]=e;Z[2]=f;Z[3]=h;c.uniform4fv(this.D.Se,Z);Hk(b,a);c.drawArrays(5,0,4)},this)},this);t.Wa()||a.Fa.push(sa(function(a,b){var c,d;for(c=0;!b.Wa()&&4>c;++c)d=b.remove(),Hk(a,d)},b,t));H?(this.b=A,this.w=u):(this.w=this.b=k,
a.$=i)}gi(a.ab,f,m,A);ai(f,m,s,j);ei(a,f);af(this.d);ef(this.d,(v.x-u.h)/(u.j-u.h),(v.y-u.l)/(u.k-u.l));xf(this.d,d.rotation);ff(this.d,a.size.width*d.resolution/(u.j-u.h),a.size.height*d.resolution/(u.k-u.l));ef(this.d,-0.5,-0.5)};var Ik=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function Jk(a,b){var c,d,e=Ik.length;for(d=0;d<e;++d)try{if(c=a.getContext(Ik[d],b),c!==k)return c}catch(f){}return k}var Kk=function(){if(!("WebGLRenderingContext"in r))return l;try{var a=fc("CANVAS");return Jk(a)!==k}catch(b){return l}}();function Lk(){this.a="precision mediump float;\n\nuniform mat4 u_colorMatrix;\nuniform float u_opacity;\nuniform sampler2D u_texture;\n\nvarying vec2 v_texCoord;\n\nvoid main(void) {\n\n vec4 texColor = texture2D(u_texture, v_texCoord);\n vec4 color = u_colorMatrix * vec4(texColor.rgb, 1.);\n color.a = texColor.a * u_opacity;\n\n gl_FragColor = color;\n\n}"}D(Lk,Rj);fa(Lk);
function Mk(){this.a="attribute vec2 a_position;\nattribute vec2 a_texCoord;\n\nuniform mat4 u_texCoordMatrix;\nuniform mat4 u_projectionMatrix;\n\nvarying vec2 v_texCoord;\n\nvoid main(void) {\n gl_Position = u_projectionMatrix * vec4(a_position, 0., 1.);\n v_texCoord = (u_texCoordMatrix * vec4(a_texCoord, 0., 1.)).st;\n}"}D(Mk,Sj);fa(Mk);
function Nk(a,b){ki.call(this,a,b);this.c=fc("CANVAS");this.c.height=a.clientHeight;this.c.width=a.clientWidth;this.c.className="ol-unselectable";ic(a,this.c);this.u=i;this.w=new Qe(a.clientHeight,a.clientWidth);this.a=Jk(this.c,{alpha:l,antialias:i,depth:l,preserveDrawingBuffer:l,stencil:l});I(this.c,"webglcontextlost",this.Ta,l,this);I(this.c,"webglcontextrestored",this.te,l,this);this.s=this.D=k;this.g={};this.f={};this.b=new $i;this.i=0;this.G=Lk.lb();this.K=Mk.lb();Ok(this)}D(Nk,ki);
function Hk(a,b){var c=a.a,d=b.b();if(aj(a.b,d))d=bj(a.b,d),c.bindTexture(3553,d.lc),9729!=d.Vc&&(c.texParameteri(3553,10240,9729),d.Vc=9729),9729!=d.Wc&&(c.texParameteri(3553,10240,9729),d.Wc=9729);else{var e=c.createTexture();c.bindTexture(3553,e);c.texImage2D(3553,0,6408,6408,5121,b.M());c.texParameteri(3553,10240,9729);c.texParameteri(3553,10241,9729);c.texParameteri(3553,10242,33071);c.texParameteri(3553,10243,33071);cj(a.b,d,{lc:e,Vc:9729,Wc:9729})}}p=Nk.prototype;
p.gb=function(a){var b=k;a instanceof vi?b=new bk(this,a):a instanceof ui&&(b=new Vj(this,a));return b};p.r=function(){var a=this.a;a.isContextLost()||(Ua(this.f,function(b){a.deleteProgram(b)}),Ua(this.g,function(b){a.deleteShader(b)}),this.b.forEach(function(b){b===k||a.deleteTexture(b.lc)}));Nk.z.r.call(this)};p.Gd=function(a,b){for(var c=this.a,d;1024<this.b.J()-this.i;){d=this.b.a.U;if(d===k)if(+this.b.a.Q==b.time)break;else--this.i;else c.deleteTexture(d.lc);this.b.pop()}};p.kb=n("c");
function ck(a,b,c){var d=z(b)+"/"+z(c);if(d in a.f)return a.f[d];var e=a.a,f=e.createProgram();e.attachShader(f,Pk(a,b));e.attachShader(f,Pk(a,c));e.linkProgram(f);return a.f[d]=f}function Pk(a,b){var c=z(b);if(c in a.g)return a.g[c];var d=a.a,e=d.createShader(b.b());d.shaderSource(e,b.da());d.compileShader(e);return a.g[c]=e}p.Ta=function(a){a.A();this.s=this.D=k;this.g={};this.f={};this.b.clear();this.i=0;Ua(this.d,function(a){a.Ta()})};p.te=function(){Ok(this);mi(this.map)};
function Ok(a){a=a.a;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}
p.Eb=function(a){var b=this.a;if(a===k)return this.u&&(ld(this.c,l),this.u=l),l;cj(this.b,a.time.toString(),k);++this.i;F(a.zb,function(b){var c=a.yb[z(b)];c.visible&&c.Ib&&oi(this,b).oa(a,c)},this);var c=a.size;this.w.width==c.width&&this.w.height==c.height||(this.c.width=c.width,this.c.height=c.height,this.w=c);b.bindFramebuffer(36160,k);var d=a.backgroundColor;b.clearColor(d.c/255,d.b/255,d.a/255,d.d);b.clear(16384);b.enable(3042);b.viewport(0,0,c.width,c.height);c=ck(this,this.G,this.K);b.useProgram(c);
this.D===k&&(this.D={tc:b.getAttribLocation(c,"a_position"),uc:b.getAttribLocation(c,"a_texCoord"),Te:b.getUniformLocation(c,"u_colorMatrix"),We:b.getUniformLocation(c,"u_texCoordMatrix"),Ve:b.getUniformLocation(c,"u_projectionMatrix"),Ue:b.getUniformLocation(c,"u_opacity"),Xe:b.getUniformLocation(c,"u_texture")});this.s===k?(c=b.createBuffer(),b.bindBuffer(34962,c),b.bufferData(34962,new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),35044),this.s=c):b.bindBuffer(34962,this.s);b.enableVertexAttribArray(this.D.tc);
b.vertexAttribPointer(this.D.tc,2,5126,l,16,0);b.enableVertexAttribArray(this.D.uc);b.vertexAttribPointer(this.D.uc,2,5126,l,16,8);b.uniform1i(this.D.Xe,0);F(a.zb,function(c){var d=a.yb[z(c)];d.visible&&d.Ib&&(d=oi(this,c),b.uniformMatrix4fv(this.D.We,l,d.Jc()),b.uniformMatrix4fv(this.D.Ve,l,d.Ic()),b.uniformMatrix4fv(this.D.Te,l,Uj(d)),b.uniform1f(this.D.Ue,c.g()),b.bindTexture(3553,d.Kc()),b.drawArrays(5,0,4))},this);this.u||(ld(this.c,i),this.u=i);ni(a);1024<this.b.J()-this.i&&a.Fa.push(ra(this.Gd,
this))};var Qk={},Rk={df:"canvas",hf:"dom",Mf:"webgl"},Sk=["webgl","canvas","dom"],li="layers";
function V(a){var b;M.call(this);var c={},d;d=x(a.layers)?ha(a.layers)?new N(Oa(a.layers)):a.layers:new N;c[li]=d;c.view=x(a.view)?a.view:new T;b=ki;d=x(a.renderers)?a.renderers:x(a.renderer)?[a.renderer]:Sk;var e,f;for(e=0;e<d.length;++e)if(f=d[e],"canvas"==f){if(Jj){b=Ij;break}}else if("dom"==f){b=Pj;break}else if("webgl"==f&&Kk){b=Nk;break}d=x(a.controls)?a.controls:Gg();e=x(a.interactions)?a.interactions:bh();a=ja(a.target)?document.getElementById(a.target):a.target;this.c=new le(this.Me,g,this);
wc(this,this.c);this.wa=Xe();this.sd=Xe();this.d=k;this.g=0;this.ka=l;this.T=a;this.w=k;this.b=dc("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";this.T.appendChild(this.b);this.t=dc("DIV","ol-overlaycontainer");I(this.t,["click",Ee?"touchstart":"mousedown"],Ac);this.b.appendChild(this.t);a=new hg(this);I(a,Va(rg),this.$c,l,this);wc(this,a);a=new ue(document);I(a,"key",this.Pc,
l,this);wc(this,a);a=new Be(this.b);I(a,"mousewheel",this.Pc,l,this);wc(this,a);this.K=e;this.B=new b(this.b,this);wc(this,this.B);this.vd=new pe;I(this.vd,"resize",this.Qc,l,this);this.u=k;this.i=[];this.Z=[];this.qd=ra(this.ke,this);this.G=new Df(ra(this.Md,this));I(this,Ke("view"),this.re,l,this);I(this,Ke("size"),this.me,l,this);I(this,Ke("backgroundColor"),this.Ud,l,this);this.Db(c);this.Qc();x(d)&&F(d,function(a){a.a(this)},this)}D(V,M);p=V.prototype;p.ze=function(a){this.e().push(a)};
p.ra=function(a){yg(this);this.i.push(a)};p.wd=function(a){yg(this);Array.prototype.push.apply(this.i,a)};p.r=function(){jc(this.b);V.z.r.call(this)};p.Fc=function(){return this.q("backgroundColor")};V.prototype.getBackgroundColor=V.prototype.Fc;V.prototype.Pb=n("B");function fg(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];df(c.cd,d,d);return new L(d[0],d[1])}V.prototype.xa=n("K");V.prototype.e=function(){return this.q(li)};V.prototype.getLayers=V.prototype.e;
function Qg(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];df(c.Ac,d,d);return new dg(d[0],d[1])}V.prototype.f=function(){return this.q("size")};V.prototype.getSize=V.prototype.f;V.prototype.a=function(){return this.q("view")};V.prototype.getView=V.prototype.a;p=V.prototype;p.Md=function(a,b,c){var d=this.d;if(d===k||!(b in d.bb)||!d.bb[b][a.fa.toString()])return Infinity;b=this.u===k?d.v.center:this.u;a=c.x-b.x;c=c.y-b.y;return a*a+c*c};
p.Pc=function(a,b){var c=b||a.type,d=new eg(c,this,a);this.$c(d);"mouseout"==c?this.u=k:this.u=d.d()};p.$c=function(a){a.c=this.d;var b=this.K.a;if(K(this,a)!==l)for(var c=b.length-1;0<=c&&!(b[c].Ea(a),a.rb);c--);};
p.ke=function(){var a=this.G,b=a.a,c,d=0,e,f,h,j;for(c=0;c<b.length;++c)e=b[c],h=e[1],j=e[2],f=e[3],f=a.d(h,j,f),Infinity==f?(e=h.b(),delete a.b[e]):(e[0]=f,b[d++]=e);b.length=d;for(b=(a.a.length>>1)-1;0<=b;b--)Gf(a,b);for(var a=this.G,m;0<a.a.length&&a.c<a.f;)m=a,c=m.a,b=c[0][1],1==c.length?c.length=0:(c[0]=c.pop(),Gf(m,0)),c=b.b(),delete m.b[c],m=b,Oc(m,"change",a.e,l,a),b=m,0==b.a&&(b.a=1,b.d=[Oc(b.c,"error",b.g,l,b),Oc(b.c,"load",b.i,l,b)],b.c.src=b.f),++a.c;x(m)&&yg(this);m=this.Z;for(a=0;a<
m.length;++a)m[a](this,this.d);m.length=0};p.Ud=function(){mi(this)};p.Qc=function(){var a=jd(this.T);this.qa(new Qe(a.width,a.height))};p.me=function(){mi(this)};p.se=function(){mi(this)};p.re=function(){this.w!==k&&(J(this.w),this.w=k);var a=this.a();a!=k&&(this.w=I(a,"changed",this.se,l,this));mi(this)};p.Va=function(){var a=this.a(),b;if(b=x(a)){if(a=a.Va())a=this.f()!=k;b=a}return b};function mi(a){a.c.X==k&&(0===a.g?(a=a.c,me(a),a.Wb()):a.ka=i)}
function yg(a){0===a.g?a.c.X!=k||a.c.start():a.ka=i}p.Ae=function(a){return this.e().remove(a)};
p.Me=function(a){var b;if(0==this.g){var c=this.f(),d=this.e(),d=x(d)?d.a:g;b=this.a();var e=x(b)?this.a().g():g,f=k;if(x(d)&&x(c)&&x(e)&&e.Va()){var f=this.Fc(),h=Oa(b.e),j={},m;for(b=0;b<d.length;++b){m=d[b];var q=j,v=z(m),s=m;m=s.d();var A=s.e(),u=s.f(),t=s.g(),y=s.da().d(),w=s.i(),s=s.u();q[v]={brightness:x(m)?m:0,contrast:x(A)?A:1,hue:x(u)?u:0,opacity:x(t)?t:1,Ib:y,saturation:x(w)?w:1,visible:x(s)?s:i}}b=e.R();q=e.Zc();v=e.S();e=e.ca();q={center:new L(b.x,b.y),projection:q,resolution:v,rotation:e};
f={$:l,attributions:{},backgroundColor:x(f)?f:new Pe,Ac:this.wa,extent:k,zb:d,yb:j,cd:this.sd,Fa:[],size:c,mc:this.G,time:a,ab:{},v:q,F:h,bb:{}}}a=this.i;for(b=c=0;b<a.length;++b)d=a[b],d(this,f)&&(a[c++]=d);a.length=c;f!==k&&(f.extent=Ue(q.center,q.resolution,q.rotation,f.size));this.d=f;this.B.Eb(f);this.ka=l;f!==k&&(f.$&&yg(this),Array.prototype.push.apply(this.Z,f.Fa));K(this,new cg("postrender",this,f));r.setTimeout(this.qd,0)}};p.Oe=function(a){this.p("backgroundColor",a)};
V.prototype.setBackgroundColor=V.prototype.Oe;V.prototype.td=function(a){this.p(li,a)};V.prototype.setLayers=V.prototype.td;V.prototype.qa=function(a){this.p("size",a)};V.prototype.setSize=V.prototype.qa;V.prototype.ud=function(a){this.p("view",a)};V.prototype.setView=V.prototype.ud;function Ag(a,b,c){++a.g;try{b.call(c)}finally{0===--a.g&&a.ka&&(a=a.c,me(a),a.Wb())}}
Qk.Cd=function(a){var b=r.location.search.substring(1),a=x(a)?a:new Hd(b);return ee(a,"renderers")?fe(a,"renderers").split(","):ee(a,"renderer")?[fe(a,"renderer")]:Sk};Uf(fh);Uf(ih);function Tk(a,b,c){var d=a.length,c=1<c?c:2;x(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 Uk(a,b,c){var d=a.length,c=1<c?c:2;x(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}F(ih,function(a){F(fh,function(b){Wf(a,b,Tk);Wf(b,a,Uk)})});var Vk={af:"bottom-left",bf:"bottom-right",Ff:"top-left",Gf:"top-right"};function Wk(a){M.call(this);this.b=fc("DIV");this.b.style.position="absolute";this.a={eb:"",Ab:"",Kb:"",Mb:"",visible:i};I(this,Ke("element"),this.Vd,l,this);I(this,Ke("map"),this.de,l,this);I(this,Ke("position"),this.ie,l,this);I(this,Ke("positioning"),this.je,l,this);x(a.element)&&this.fd(a.element);x(a.position)&&this.u(a.position);x(a.positioning)&&this.p("positioning",a.positioning);x(a.map)&&this.i(a.map)}D(Wk,M);
Wk.prototype.f=function(){return this.q("element")};Wk.prototype.getElement=Wk.prototype.f;Wk.prototype.d=function(){return this.q("map")};Wk.prototype.getMap=Wk.prototype.d;Wk.prototype.g=function(){return this.q("position")};Wk.prototype.getPosition=Wk.prototype.g;Wk.prototype.e=function(){return this.q("positioning")};Wk.prototype.getPositioning=Wk.prototype.e;p=Wk.prototype;p.Vd=function(){hc(this.b);var a=this.f();a!=k&&gc(this.b,a)};
p.de=function(){this.c!==k&&(jc(this.b),J(this.c),this.c=k);var a=this.d();a!=k&&(this.c=I(a,"postrender",this.ye,l,this),Xk(this),gc(a.t,this.b))};p.ye=function(){Xk(this)};p.ie=function(){Xk(this)};p.je=function(){Xk(this)};p.fd=function(a){this.p("element",a)};Wk.prototype.setElement=Wk.prototype.fd;Wk.prototype.i=function(a){this.p("map",a)};Wk.prototype.setMap=Wk.prototype.i;Wk.prototype.u=function(a){this.p("position",a)};Wk.prototype.setPosition=Wk.prototype.u;
function Xk(a){var b=a.d(),c=a.g();if(!x(b)||!b.Va()||!x(c))a.a.visible&&(ld(a.b,l),a.a.visible=l);else{var c=Qg(b,c),d=b.f(),b=a.b.style,e=a.e();if("bottom-right"==e||"top-right"==e){""!==a.a.Ab&&(a.a.Ab=b.left="");var f=Math.round(d.width-c.x)+"px";a.a.Kb!=f&&(a.a.Kb=b.right=f)}else""!==a.a.Kb&&(a.a.Kb=b.right=""),f=Math.round(c.x)+"px",a.a.Ab!=f&&(a.a.Ab=b.left=f);"top-left"==e||"top-right"==e?(""!==a.a.eb&&(a.a.eb=b.bottom=""),c=Math.round(c.y)+"px",a.a.Mb!=c&&(a.a.Mb=b.top=c)):(""!==a.a.Mb&&
(a.a.Mb=b.top=""),c=Math.round(d.height-c.y)+"px",a.a.eb!=c&&(a.a.eb=b.bottom=c));a.a.visible||(ld(a.b,i),a.a.visible=i)}};function W(){M.call(this);this.a=k;this.c(l);I(this,Ke("projection"),this.G,l,this);I(this,Ke("tracking"),this.K,l,this)}D(W,M);W.prototype.r=function(){this.c(l);W.z.r.call(this)};W.prototype.G=function(){var a=this.g();a!=k&&(this.d=Pf(Zf("EPSG:4326"),a),this.a!==k&&(a=[this.a.x,this.a.y],a=this.d(a,a,2),this.p("position",new L(a[0],a[1]))))};
W.prototype.K=function(){if(Yk){var a=this.e();a&&!x(this.b)?this.b=navigator.geolocation.watchPosition(ra(this.qa,this),ra(this.wa,this),this.f()):!a&&x(this.b)&&(navigator.geolocation.clearWatch(this.b),this.b=g)}};var Yk="geolocation"in navigator;
W.prototype.qa=function(a){a=a.coords;this.p("accuracy",a.accuracy);this.p("altitude",a.altitude===k?g:a.altitude);this.p("altitudeAccuracy",a.altitudeAccuracy===k?g:a.altitudeAccuracy);this.p("heading",a.heading===k?g:a.heading*Math.PI/180);this.a=new L(a.longitude,a.latitude);var b=[a.longitude,a.latitude],b=this.d(b,b,2);this.p("position",new L(b[0],b[1]));this.p("speed",a.speed===k?g:a.speed)};W.prototype.wa=function(){};W.prototype.i=function(){return this.q("accuracy")};
W.prototype.getAccuracy=W.prototype.i;W.prototype.u=function(){return this.q("altitude")};W.prototype.getAltitude=W.prototype.u;W.prototype.t=function(){return this.q("altitudeAccuracy")};W.prototype.getAltitudeAccuracy=W.prototype.t;W.prototype.w=function(){return this.q("heading")};W.prototype.getHeading=W.prototype.w;W.prototype.T=function(){return this.q("position")};W.prototype.getPosition=W.prototype.T;W.prototype.g=function(){return this.q("projection")};W.prototype.getProjection=W.prototype.g;
W.prototype.B=function(){return this.q("speed")};W.prototype.getSpeed=W.prototype.B;W.prototype.e=function(){return this.q("tracking")};W.prototype.getTracking=W.prototype.e;W.prototype.f=function(){return this.q("trackingOptions")};W.prototype.getTrackingOptions=W.prototype.f;W.prototype.Z=function(a){this.p("projection",a)};W.prototype.setProjection=W.prototype.Z;W.prototype.c=function(a){this.p("tracking",a)};W.prototype.setTracking=W.prototype.c;
W.prototype.xa=function(a){this.p("trackingOptions",a)};W.prototype.setTrackingOptions=W.prototype.xa;W.prototype.d=ba();function Zk(a){var a=x(a)?a:{},b=dc("DIV",{"class":"ol-mouse-position"});Dg.call(this,{element:b,map:a.map,target:a.target});this.i=Zf(a.projection);this.g=a.coordinateFormat;this.K=x(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.s=ag;this.d=this.e=this.t=k}D(Zk,Dg);Zk.prototype.G=function(a){a=a.c;a===k?this.c=k:this.c=a.v.projection;$k(this,this.e)};Zk.prototype.w=function(a){a=gd(a,this.b.b);a=new dg(a.x,a.y);$k(this,a);this.e=a};
Zk.prototype.B=function(){$k(this,k);this.e=k};Zk.prototype.a=function(a){this.d!==k&&(F(this.d,J),this.d=k);Zk.z.a.call(this,a);if(a!==k){var b=a.b;this.d=[I(b,"mousemove",this.w,l,this),I(b,"mouseout",this.B,l,this),I(a,"postrender",this.G,l,this)]}};function $k(a,b){var c=a.K;if(b!==k){a.t!=a.c&&(a.s=a.i===k?ag:Pf(a.c,a.i),a.t=a.c);var d=fg(a.b,b);d!==k&&(c=[d.x,d.y],c=a.s(c,c),d=new L(c[0],c[1]),c=x(a.g)?a.g(d):d.toString())}if(!x(a.f)||c!=a.f)a.element.innerHTML=c,a.f=c};var al={rd:"degrees",rf:"imperial",Af:"nautical",wf:"metric",Kf:"us"};function bl(a){a=a||{};this.g=dc("DIV",{"class":"ol-scale-line-inner"});this.s=dc("DIV",{"class":"ol-scale-line ol-unselectable"},this.g);this.i=x(a.minWidth)?a.minWidth:64;this.c=x(a.units)?a.units:"metric";this.e=k;this.f=l;this.t="";this.d=k;Dg.call(this,{element:this.s,map:a.map,target:a.target})}D(bl,Dg);var cl=[1,2,5];
bl.prototype.w=function(a){a=a.c;if(a===k)this.f&&(ld(this.s,l),this.f=l);else{var a=a.v,b=a.center,c=a.projection,a=c.c(a.resolution,b),d=c.b;"degrees"==d&&("metric"==this.c||"imperial"==this.c)?(this.d=k,b=Math.cos(b.y*Math.PI/180),a*=Math.PI*b*Jf.a/180):("ft"==d||"m"==d)&&"degrees"==this.c?(this.d===k&&(this.d=Pf(c,Zf("EPSG:4326"))),b=[b.x,b.y],b=this.d(b,b,2),b=Math.cos(b[1]*Math.PI/180),c=Jf.a,"ft"==d&&(c/=0.3048),a*=180/(Math.PI*b*c)):this.d=k;b=this.i*a;d="";"degrees"==this.c?b<1/60?(d="\u2033",
a*=3600):1>b?(d="\u2032",a*=60):d="\u00b0":"imperial"==this.c?0.9144>b?(d="in",a/=0.0254):1609.344>b?(d="ft",a/=0.3048):(d="mi",a/=1609.344):"nautical"==this.c?(a/=1852,d="nm"):"metric"==this.c?1>b?(d="mm",a*=1E3):1E3>b?d="m":(d="km",a/=1E3):"us"==this.c&&(0.9144>b?(d="in",a*=39.37):1609.344>b?(d="ft",a/=0.30480061):(d="mi",a/=1609.3472));for(var b=3*Math.floor(Math.log(this.i*a)/Math.log(10)),e,f;;){e=cl[b%3]*Math.pow(10,Math.floor(b/3));f=Math.round(e/a);if(f>=this.i)break;++b}e=e+d;this.t!=e&&
(this.t=this.g.innerHTML=e);this.B!=f&&(this.g.style.width=f+"px",this.B=f);this.f||(ld(this.s,i),this.f=i)}};bl.prototype.a=function(a){this.e!==k&&(F(this.e,J),this.e=k);bl.z.a.call(this,a);a!==k&&(this.e=[I(a,"postrender",this.w,l,this)])};function dl(a){tc.call(this);this.b=a;this.a=[]}D(dl,tc);var el=[];function fl(a,b,c,d,e){ha(c)||(el[0]=c,c=el);for(var f=0;f<c.length;f++){var h=I(b,c[f],d||a,e||l,a.b||a);a.a.push(h)}}function gl(a){F(a.a,J);a.a.length=0}dl.prototype.r=function(){dl.z.r.call(this);gl(this)};dl.prototype.handleEvent=function(){aa(Error("EventHandler.handleEvent not implemented"))};function hl(a,b,c){tc.call(this);this.target=a;this.d=b||a;this.b=c||new Zc(NaN,NaN,NaN,NaN);this.c=$b(a);this.a=new dl(this);I(this.d,["touchstart","mousedown"],this.ld,l,this)}D(hl,ge);var il=G||ub&&Lb("1.9.3");p=hl.prototype;p.clientX=0;p.clientY=0;p.Lc=0;p.Mc=0;p.Nc=0;p.Oc=0;p.O=0;p.N=0;p.Cc=i;p.Da=l;p.Sc=0;p.xe=0;p.ue=l;p.oc=l;p.r=function(){hl.z.r.call(this);Uc(this.d,["touchstart","mousedown"],this.ld,l,this);gl(this.a);il&&this.c.releaseCapture();this.a=this.d=this.target=k};
function jl(a){x(a.f)||(a.f=md(a.target));return a.f}
p.ld=function(a){var b="mousedown"==a.type;if(this.Cc&&!this.Da&&(!b||Gc(a))){kl(a);if(0==this.Sc)if(K(this,new ll("start",this,a.clientX,a.clientY,a)))this.Da=i,a.A();else return;else a.A();var b=this.c,c=b.documentElement,d=!il;fl(this.a,b,["touchmove","mousemove"],this.he,d);fl(this.a,b,["touchend","mouseup"],this.ib,d);il?(c.setCapture(l),fl(this.a,c,"losecapture",this.ib)):fl(this.a,b?b.parentWindow||b.defaultView:window,"blur",this.ib);G&&this.ue&&fl(this.a,b,"dragstart",Bc);this.g&&fl(this.a,
this.g,"scroll",this.Ke,d);this.clientX=this.Nc=a.clientX;this.clientY=this.Oc=a.clientY;this.Lc=a.Xb;this.Mc=a.Yb;this.oc?(a=this.target,b=a.offsetLeft,c=a.offsetParent,!c&&"fixed"==ad(a,"position")&&(c=$b(a).documentElement),c?(ub?(d=pd(c),b+=d.left):Nb(8)&&(d=pd(c),b-=d.left),a=md(c)?c.clientWidth-(b+a.offsetWidth):b):a=b):a=this.target.offsetLeft;this.O=a;this.N=this.target.offsetTop;this.e=mc(Vb(this.c));this.xe=ta()}else K(this,"earlycancel")};
p.ib=function(a,b){gl(this.a);il&&this.c.releaseCapture();if(this.Da){kl(a);this.Da=l;var c=ml(this,this.O),d=nl(this,this.N);K(this,new ll("end",this,a.clientX,a.clientY,a,c,d,b||"touchcancel"==a.type))}else K(this,"earlycancel");("touchend"==a.type||"touchcancel"==a.type)&&a.A()};function kl(a){var b=a.type;"touchstart"==b||"touchmove"==b?Ec(a,a.L.targetTouches[0],a.b):("touchend"==b||"touchcancel"==b)&&Ec(a,a.L.changedTouches[0],a.b)}
p.he=function(a){if(this.Cc){kl(a);var b=(this.oc&&jl(this)?-1:1)*(a.clientX-this.clientX),c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.Lc=a.Xb;this.Mc=a.Yb;if(!this.Da){var d=this.Nc-this.clientX,e=this.Oc-this.clientY;if(d*d+e*e>this.Sc)if(K(this,new ll("start",this,a.clientX,a.clientY,a)))this.Da=i;else{this.hc||this.ib(a);return}}c=pl(this,b,c);b=c.x;c=c.y;this.Da&&K(this,new ll("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(ql(this,a,b,c),a.A())}};
function pl(a,b,c){var d=mc(Vb(a.c)),b=b+(d.x-a.e.x),c=c+(d.y-a.e.y);a.e=d;a.O+=b;a.N+=c;b=ml(a,a.O);a=nl(a,a.N);return new Tb(b,a)}p.Ke=function(a){var b=pl(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;ql(this,a,b.x,b.y)};function ql(a,b,c,d){a.oc&&jl(a)?a.target.style.right=c+"px":a.target.style.left=c+"px";a.target.style.top=d+"px";K(a,new ll("drag",a,b.clientX,b.clientY,b,c,d))}
function ml(a,b){var c=a.b,d=!isNaN(c.left)?c.left:k,c=!isNaN(c.width)?c.width:0;return Math.min(d!=k?d+c:Infinity,Math.max(d!=k?d:-Infinity,b))}function nl(a,b){var c=a.b,d=!isNaN(c.top)?c.top:k,c=!isNaN(c.height)?c.height:0;return Math.min(d!=k?d+c:Infinity,Math.max(d!=k?d:-Infinity,b))}function ll(a,b,c,d,e,f,h,j){zc.call(this,a);this.clientX=c;this.clientY=d;this.d=e;this.left=x(f)?f:b.O;this.top=x(h)?h:b.N;this.c=b;this.a=!!j}D(ll,zc);function rl(a){this.s=x(a.maxResolution)?a.maxResolution:156543.0339;this.g=x(a.minResolution)?a.minResolution:0.5971642833948135;this.t=this.s-this.g;this.d=sl;this.e=this.f=k;var b=dc("DIV","ol-zoomslider ol-unselectable",dc("DIV","ol-zoomslider-thumb ol-unselectable"));this.e!==k&&(F(this.e,J),this.e=k);var c=new hl(b.childNodes[0]);this.e=[I(c,["drag","end"],this.G,g,this)];this.i=c;I(b,["touchend","click"],this.w,l,this);Dg.call(this,{element:b,map:a.map})}D(rl,Dg);var sl=0;
rl.prototype.a=function(a){rl.z.a.call(this,a);this.c=a.a().S();this.f!==k&&(F(this.f,J),this.f=k);this.b!==k&&(this.f=[I(this.b,"postrender",this.B,g,this)]);var b=this.element,a=b.firstElementChild!=g?b.firstElementChild:kc(b.firstChild);var c=$b(b),d=G&&b.currentStyle;d&&lc(Vb(c))&&"auto"!=d.width&&"auto"!=d.height&&!d.boxSizing?(c=qd(b,d.width,"width","pixelWidth"),b=qd(b,d.height,"height","pixelHeight"),b=new Ub(c,b)):(d=new Ub(b.offsetWidth,b.offsetHeight),c=od(b,"padding"),b=pd(b),b=new Ub(d.width-
b.left-c.left-c.right-b.right,d.height-b.top-c.top-c.bottom-b.bottom));var d=fd(a),c=jd(a),d=new Zc(d.x,d.y,c.width,c.height),c=od(a,"margin"),e=pd(a),a=b.width-c.left-c.right-e.left-e.right-d.width,d=b.height-c.top-c.bottom-e.top-e.bottom-d.height;b.width>b.height?(this.d=1,a=new Zc(0,0,a,0)):(this.d=sl,a=new Zc(0,0,0,d));this.i.b=a||new Zc(NaN,NaN,NaN,NaN);tl(this,this.c)};rl.prototype.B=function(a){a=a.c.v.resolution;a!==this.c&&(this.c=a,tl(this,a))};rl.prototype.w=function(){};
function tl(a,b){var c=(Rb(b,a.g,a.s)-a.g)/a.t,d=a.i,e=a.element.firstElementChild!=g?a.element.firstElementChild:kc(a.element.firstChild);1==a.d?bd(e,d.b.left+d.b.width*c):bd(e,d.b.left,d.b.top+d.b.height*c)}rl.prototype.G=function(a){var b=this.b,c=this.i.b,d=0,d=1===this.d?(a.left-c.left)/c.width:(a.top-c.top)/c.height,a=Rb(d,0,1),a=this.g+this.t*a;a!==this.c&&(this.c=a,b.a().b(a))};function ul(){this.a={}}D(ul,Jg);ul.prototype.b=function(a,b){var c;for(c=0;c<a.length;++c)this.a[a.charCodeAt(c)]=b};ul.prototype.Ea=function(a){if("key"==a.type){var b=this.a[a.a.pb];b&&(b(),a.A())}};function vl(){};function wl(){}D(wl,vl);wl.prototype.pa=function(a){a=JSON.parse(a);return xl(this,a)};
function xl(a,b){var c;switch(b.type){case "FeatureCollection":c=Wi(b);break;case "Feature":c=yl(b);break;case "GeometryCollection":c=b.geometries;var d=c.length,e=Array(d),f;for(f=0;f<d;++f)e[f]=xl(a,c[f]);c=e;break;case "Point":c=new hj(b.coordinates,g);break;case "LineString":c=new ej(b.coordinates,g);break;case "Polygon":c=new kj(b.coordinates,g);break;case "MultiPoint":c=new ij(b.coordinates,g);break;case "MultiLineString":c=new gj(b.coordinates,g);break;case "MultiPolygon":c=new lj(b.coordinates,
g);break;default:aa(Error("GeoJSON parsing not implemented for type: "+b.type))}return c}
function yl(a,b){var c=a.geometry,d=k,e=b||{},f=new Bi(a.properties);if(c){var h=c.type,e=e.fb,j;e&&(j=e(f,zl[h]));switch(h){case "Point":d=new hj(c.coordinates,j);break;case "LineString":d=new ej(c.coordinates,j);break;case "Polygon":d=new kj(c.coordinates,j);break;case "MultiPoint":d=new ij(c.coordinates,j);break;case "MultiLineString":d=new gj(c.coordinates,j);break;case "MultiPolygon":d=new lj(c.coordinates,j);break;default:aa(Error("Bad geometry type: "+h))}f.gd(d)}return f}
function Wi(a,b){var c=a.features,d=c.length,e=Array(d),f;for(f=0;f<d;++f)e[f]=yl(c[f],b);return e}var zl={Point:"point",LineString:"linestring",Polygon:"polygon",MultiPoint:"multipoint",MultiLineString:"multilinestring",MultiPolygon:"multipolygon",GeometryCollection:"geometrycollection"};function Al(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=new ActiveXObject("MSXML2.DOMDocument");if(b){b.resolveExternals=l;b.validateOnParse=l;try{b.setProperty("ProhibitDTD",i),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}}b.loadXML(a);return b}aa(Error("Your browser does not support loading xml documents"))};function Bl(){this.Ka={nd:/^\s*|\s*$/g,a:/\s*/g,kd:/\s+/,md:/\s*,\s*/g}}D(Bl,vl);function Cl(a,b,c){c||(c={});var d=a.C[b.namespaceURI]||a.C[a.a];if(d){var e=b.localName||b.nodeName.split(":").pop();(d=d[e]||d["*"])&&d.apply(a,[b,c])}}function X(a,b,c){c||(c={});for(var b=b.childNodes,d,e=0,f=b.length;e<f;++e)d=b[e],1==d.nodeType&&Cl(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}
Bl.prototype.getAttributeNS=function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else{var e=k;if(a.getAttributeNodeNS)e=a.getAttributeNodeNS(b,c);else for(var a=a.attributes,f,h,j=0,m=a.length;j<m;++j)if(f=a[j],f.namespaceURI==b&&(h=f.prefix?f.prefix+":"+c:c,h==f.nodeName)){e=f;break}if(b=e)d=b.nodeValue}return d};function Dl(){function a(a,b){b.Qe.push($(a))}function b(a,b){var e={code:a.getAttribute("exceptionCode"),Of:a.getAttribute("locator"),Qe:[]};b.Ec.push(e);X(this,a,e)}this.C={"http://www.opengis.net/ogc":{ServiceExceptionReport:function(a,b){b.exceptionReport={};b.exceptionReport.exceptions=[];X(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.Pf=l;b.Tb={version:a.getAttribute("version"),language:a.getAttribute("language"),Ec:[]};X(this,a,b.Tb)},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.Tb={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),Ec:[]};X(this,a,b.Tb)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}}};Bl.call(this)}D(Dl,Bl);
Dl.prototype.pa=function(a){"string"==typeof a&&(a=Al(a));var b={exceptionReport:k};a&&X(this,a,b);return b};function El(a){this.c=a=a||{};this.hb=a.hb||k;this.version=a.version;this.profile=a.profile;a.cb!==g?this.cb=a.cb:this.cb=l;a.kc!==g?this.kc=a.kc:this.kc=l}
El.prototype.pa=function(a,b){"string"==typeof a&&(a=Al(a));var c;c=a.documentElement;var d;c?(d=this.version,d||(d=c.getAttribute("version"),d||(d=this.hb))):d=this.version||this.hb;d=(c=d)||this.hb;var e=this.profile?"_"+this.profile:"";if(!this.b||this.b.VERSION!=d){var f=this.a["v"+d.replace(/\./g,"_")+e];f||(""!==e&&this.cb&&(e="",f=this.a["v"+d.replace(/\./g,"_")+e]),f||aa("Can't find a parser for version "+d+e));this.b=new f(this.c)}this.b=this.b;d=this.b.pa(a,b);e=this.b.Dc||k;e!==k&&d[e]===
g&&(d.error=(new Dl).pa(a));d.version=c;return d};function Fl(){this.a="http://www.opengis.net/wms";this.Dc="service";this.C={"http://www.opengis.net/wms":{Service:function(a,b){b.service={};X(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"))};
if(!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={};X(this,a,b.contactInformation)},ContactPersonPrimary:function(a,b){b.personPrimary={};X(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=
{};X(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=[];X(this,a,b.capability)},Request:function(a,b){b.request={};X(this,a,b.request)},GetCapabilities:function(a,b){b.getcapabilities={};b.getcapabilities.formats=[];X(this,a,b.getcapabilities)},Format:function(a,b){ha(b.formats)?b.formats.push($(a)):b.format=$(a)},DCPType:function(a,b){X(this,a,b)},HTTP:function(a,b){X(this,
a,b)},Get:function(a,b){b.get={};X(this,a,b.get)},Post:function(a,b){b.post={};X(this,a,b.post)},GetMap:function(a,b){b.getmap={};b.getmap.formats=[];X(this,a,b.getmap)},GetFeatureInfo:function(a,b){b.getfeatureinfo={};b.getfeatureinfo.formats=[];X(this,a,b.getfeatureinfo)},Exception:function(a,b){b.exception={};b.exception.formats=[];X(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"):
k,h=(e=a.getAttributeNode("cascaded"))&&e.specified?a.getAttribute("cascaded"):k,j=(e=a.getAttributeNode("opaque"))&&e.specified?a.getAttribute("opaque"):k,m=a.getAttribute("noSubsets"),q=a.getAttribute("fixedWidth"),v=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||l,cascaded:h!==k?parseInt(h,10):e.cascaded||
0,opaque:j?"1"===j||"true"===j:e.opaque||l,noSubsets:m!==k?"1"===m||"true"===m:e.noSubsets||l,fixedWidth:q!==k?parseInt(q,10):e.fixedWidth||0,fixedHeight:v!==k?parseInt(v,10):e.fixedHeight||0,minScale:e.minScale,maxScale:e.maxScale,attribution:e.attribution};c&&($a(f.srs,e.srs),$a(f.bbox,e.bbox),$a(f.dimensions,e.dimensions),$a(f.authorityURLs,e.authorityURLs));b.nestedLayers.push(f);f.capability=d;X(this,a,f);delete f.capability;f.name&&(c=f.name.split(":"),h=d.request,e=h.getfeatureinfo,0<c.length&&
(f.prefix=c[0]),d.layers.push(f),f.formats===g&&(f.formats=h.getmap.formats),f.infoFormats===g&&e&&(f.infoFormats=e.formats))},Attribution:function(a,b){b.attribution={};X(this,a,b.attribution)},LogoURL:function(a,b){b.logo={width:a.getAttribute("width"),height:a.getAttribute("height")};X(this,a,b.logo)},Style:function(a,b){var c={};b.styles.push(c);X(this,a,c)},LegendURL:function(a,b){var c={width:a.getAttribute("width"),height:a.getAttribute("height")};b.legend=c;X(this,a,c)},MetadataURL:function(a,
b){var c={type:a.getAttribute("type")};b.metadataURLs.push(c);X(this,a,c)},DataURL:function(a,b){b.dataURL={};X(this,a,b.dataURL)},FeatureListURL:function(a,b){b.featureListURL={};X(this,a,b.featureListURL)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};X(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){X(this,a,b)},SRS:function(a,b){b.srs[$(a)]=i}}};Bl.call(this)}D(Fl,Bl);
Fl.prototype.pa=function(a){"string"==typeof a&&(a=Al(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Cl(this,a,b);return b};function Gl(){Fl.call(this);var a=this.C["http://www.opengis.net/wms"].BoundingBox;$a(this.C["http://www.opengis.net/wms"],{WMT_MS_Capabilities:function(a,c){X(this,a,c)},Keyword:function(a,c){c.keywords&&c.keywords.push({value:$(a)})},DescribeLayer:function(a,c){c.describelayer={formats:[]};X(this,a,c.describelayer)},GetLegendGraphic:function(a,c){c.getlegendgraphic={formats:[]};X(this,a,c.getlegendgraphic)},GetStyles:function(a,c){c.getstyles={formats:[]};X(this,a,c.getstyles)},PutStyles:function(a,
c){c.putstyles={formats:[]};X(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),h=25.4/0.28;0!==d&&(c.maxScale=parseFloat(39.37*(d/f)*h));e!=Number.POSITIVE_INFINITY&&(c.minScale=parseFloat(39.37*(e/f)*h))},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(","))}})}D(Gl,Fl);function Hl(){Gl.call(this);this.version="1.1.0";$a(this.C["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]]=i}})}D(Hl,Gl);function Il(){Gl.call(this);this.version="1.1.1";$a(this.C["http://www.opengis.net/wms"],{SRS:function(a,b){b.srs[$(a)]=i}})}D(Il,Gl);function Jl(){Il.call(this);this.profile="WMSC";$a(this.C["http://www.opengis.net/wms"],{VendorSpecificCapabilities:function(a,b){b.vendorSpecific={tileSets:[]};X(this,a,b.vendorSpecific)},TileSet:function(a,b){var c={srs:{},bbox:{},resolutions:[]};X(this,a,c);b.Qf.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)}})}D(Jl,Il);function Kl(){Fl.call(this);var a=this.C["http://www.opengis.net/wms"].BoundingBox;$a(this.C["http://www.opengis.net/wms"],{WMS_Capabilities:function(a,c){X(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.C["http://www.opengis.net/wms"].SRS.apply(this,
arguments)},EX_GeographicBoundingBox:function(a,c){c.llbbox=[];X(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.C.sld={UserDefinedSymbolization:function(a,c){this.C["http://www.opengis.net/wms"].Lf.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.C["http://www.opengis.net/wms"].nf.apply(this,arguments)},GetLegendGraphic:function(a,c){this.C["http://www.opengis.net/wms"].qf.apply(this,arguments)}}}D(Kl,Fl);function Ll(a){a=a||{};a.defaultVersion="1.1.1";this.a={};this.a.v1_1_0=Hl;this.a.v1_1_1=Il;this.a.v1_1_1_WMSC=Jl;this.a.v1_3_0=Kl;El.call(this,a)}D(Ll,El);function Ml(){this.C={"http://www.opengis.net/ows":{ServiceIdentification:function(a,b){b.serviceIdentification={};X(this,a,b.serviceIdentification)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},Keywords:function(a,b){b.keywords={};X(this,a,b.keywords)},Keyword:function(a,b){b[$(a)]=i},ServiceType:function(a,b){b.serviceType={codeSpace:a.getAttribute("codeSpace"),value:$(a)}},ServiceTypeVersion:function(a,b){b.serviceTypeVersion=$(a)},Fees:function(a,b){b.fees=$(a)},
AccessConstraints:function(a,b){b.accessConstraints=$(a)},ServiceProvider:function(a,b){b.serviceProvider={};X(this,a,b.serviceProvider)},ProviderName:function(a,b){b.providerName=$(a)},ProviderSite:function(a,b){b.providerSite=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceContact:function(a,b){b.serviceContact={};X(this,a,b.serviceContact)},IndividualName:function(a,b){b.individualName=$(a)},PositionName:function(a,b){b.positionName=$(a)},ContactInfo:function(a,b){b.contactInfo=
{};X(this,a,b.contactInfo)},Phone:function(a,b){b.phone={};X(this,a,b.phone)},Voice:function(a,b){b.voice=$(a)},Address:function(a,b){b.address={};X(this,a,b.address)},DeliveryPoint:function(a,b){b.deliveryPoint=$(a)},City:function(a,b){b.city=$(a)},AdministrativeArea:function(a,b){b.administrativeArea=$(a)},PostalCode:function(a,b){b.postalCode=$(a)},Country:function(a,b){b.country=$(a)},ElectronicMailAddress:function(a,b){b.electronicMailAddress=$(a)},Role:function(a,b){b.role=$(a)},OperationsMetadata:function(a,
b){b.operationsMetadata={};X(this,a,b.operationsMetadata)},Operation:function(a,b){var c=a.getAttribute("name");b[c]={};X(this,a,b[c])},DCP:function(a,b){b.dcp={};X(this,a,b.dcp)},HTTP:function(a,b){b.http={};X(this,a,b.http)},Get:function(a,b){b.get||(b.get=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};X(this,a,c);b.get.push(c)},Post:function(a,b){b.post||(b.post=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};X(this,a,c);b.post.push(c)},
Parameter:function(a,b){b.parameters||(b.parameters={});var c=a.getAttribute("name");b.parameters[c]={};X(this,a,b.parameters[c])},Constraint:function(a,b){b.constraints||(b.constraints={});var c=a.getAttribute("name");b.constraints[c]={};X(this,a,b.constraints[c])},Value:function(a,b){b[$(a)]=i},OutputFormat:function(a,b){b.formats.push({value:$(a)});X(this,a,b)},WGS84BoundingBox:function(a,b){var c={};c.crs=a.getAttribute("crs");b.BoundingBox?b.BoundingBox.push(c):(b.projection=c.crs,c=b);X(this,
a,c)},BoundingBox:function(a,b){this.C["http://www.opengis.net/ows"].WGS84BoundingBox.apply(this,[a,b])},LowerCorner:function(a,b){var c=$(a).replace(this.Ka.nd,""),c=c.replace(this.Ka.md,","),c=c.split(this.Ka.kd);b.left=c[0];b.bottom=c[1]},UpperCorner:function(a,b){var c=$(a).replace(this.Ka.nd,""),c=c.replace(this.Ka.md,","),c=c.split(this.Ka.kd);b.right=c[0];b.top=c[1];b.bounds=new O(parseFloat(b.left),parseFloat(b.bottom),parseFloat(b.right),parseFloat(b.top));delete b.left;delete b.bottom;delete b.right;
delete b.top},Language:function(a,b){b.language=$(a)}}};Bl.call(this)}D(Ml,Bl);function Nl(){Ml.call(this);this.C["http://www.opengis.net/ows/1.1"]=this.C["http://www.opengis.net/ows"];$a(this.C["http://www.opengis.net/ows/1.1"],{AllowedValues:function(a,b){b.allowedValues={};X(this,a,b.allowedValues)},AnyValue:function(a,b){b.anyValue=i},DataType:function(a,b){b.dataType=$(a)},Range:function(a,b){b.range={};X(this,a,b.range)},MinimumValue:function(a,b){b.minValue=$(a)},MaximumValue:function(a,b){b.maxValue=$(a)},Identifier:function(a,b){b.identifier=$(a)},SupportedCRS:function(a,
b){b.supportedCRS=$(a)}})}D(Nl,Ml);function Ol(){this.a="http://www.opengis.net/wtms/1.0";this.Dc="serviceIdentification";this.C={"http://www.opengis.net/wmts/1.0":{Capabilities:function(a,c){X(this,a,c)},Contents:function(a,c){c.contents={};c.contents.layers=[];c.contents.tileMatrixSets={};X(this,a,c.contents)},Layer:function(a,c){var d={styles:[],formats:[],dimensions:[],tileMatrixSetLinks:[],layers:[]};X(this,a,d);c.layers.push(d)},Style:function(a,c){var d={};d.isDefault="true"===a.getAttribute("isDefault");X(this,a,d);c.styles.push(d)},
Format:function(a,c){c.formats.push($(a))},TileMatrixSetLink:function(a,c){var d={};X(this,a,d);c.tileMatrixSetLinks.push(d)},TileMatrixSet:function(a,c){if(c.layers){var d={matrixIds:[]};X(this,a,d);c.tileMatrixSets[d.identifier]=d}else c.tileMatrixSet=$(a)},TileMatrix:function(a,c){var d={supportedCRS:c.supportedCRS};X(this,a,d);c.matrixIds.push(d)},ScaleDenominator:function(a,c){c.scaleDenominator=parseFloat($(a))},TopLeftCorner:function(a,c){var d=$(a).split(" "),e=Zf(c.supportedCRS).d;c.topLeftCorner=
xd([parseFloat(d[0]),parseFloat(d[1])],e)},TileWidth:function(a,c){c.tileWidth=parseInt($(a),10)},TileHeight:function(a,c){c.tileHeight=parseInt($(a),10)},MatrixWidth:function(a,c){c.matrixWidth=parseInt($(a),10)},MatrixHeight:function(a,c){c.matrixHeight=parseInt($(a),10)},ResourceURL:function(a,c){var d=a.getAttribute("resourceType"),e=a.getAttribute("format"),f=a.getAttribute("template");c.resourceUrls||(c.resourceUrls={});c.resourceUrls[d]||(c.resourceUrls[d]={});c.resourceUrls[d][e]||(c.resourceUrls[d][e]=
[]);c.resourceUrls[d][e].push(f)},WSDL:function(a,c){c.wsdl={};c.wsdl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceMetadataURL:function(a,c){c.serviceMetadataUrl={};c.serviceMetadataUrl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},LegendURL:function(a,c){c.legend={};c.legend.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href");c.legend.format=a.getAttribute("format")},Dimension:function(a,c){var d={values:[]};X(this,a,d);c.dimensions.push(d)},
Default:function(a,c){c["default"]=$(a)},Value:function(a,c){c.values.push($(a))}}};var a=new Nl;this.C["http://www.opengis.net/ows/1.1"]=a.C["http://www.opengis.net/ows/1.1"];Bl.call(this)}D(Ol,Bl);Ol.prototype.pa=function(a){"string"==typeof a&&(a=Al(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Cl(this,a,b);return b};function Pl(a){a=a||{};a.defaultVersion="1.0.0";this.a={};this.a.v1_0_0=Ol;El.call(this,a)}D(Pl,El);/*
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 ci(a,b){this.a=[];this.f=a;this.e=b||k}p=ci.prototype;p.na=l;p.La=l;p.Sa=0;p.Nc=l;p.cd=l;p.bd=0;p.mc=function(a,b){di(this,a,b);this.Sa--;0==this.Sa&&this.na&&ei(this)};function di(a,b,c){a.na=j;a.b=c;a.La=!b;ei(a)}function fi(a){if(a.na){if(!a.Nc)throw new gi(a);a.Nc=l}}function hi(a){return Da(a.a,function(a){return ha(a[1])})}
function ei(a){a.c&&(a.na&&hi(a))&&(v.clearTimeout(a.c),delete a.c);a.d&&(a.d.bd--,delete a.d);for(var b=a.b,c=l,d=l;a.a.length&&0==a.Sa;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.La?g:f)try{var i=f.call(e||a.e,b);z(i)&&(a.La=a.La&&(i==b||i instanceof Error),a.b=b=i);b instanceof ci&&(d=j,a.Sa++)}catch(m){b=m,a.La=j,hi(a)||(c=j)}}a.b=b;d&&a.Sa&&(d=b,i=na(a.mc,a,j),f=na(a.mc,a,l),d.a.push([i,f,h]),d.na&&ei(d),b.cd=j);c&&(a.c=v.setTimeout(function(){throw b;},0))}
function gi(a){ra.call(this);this.a=a}D(gi,ra);gi.prototype.message="Deferred has already fired";gi.prototype.name="AlreadyCalledError";function ii(a,b){var c=b||{},d=c.document||document,e=Tb("SCRIPT"),f={Kc:e,Cb:h},g=new ci(ji,f),i=k,m=c.timeout!=k?c.timeout:5E3;0<m&&(i=window.setTimeout(function(){ki(e,j);var b=new li(mi,"Timeout reached for loading script "+a);fi(g);di(g,l,b)},m),f.Cb=i);e.onload=e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)ki(e,c.jc||l,i),fi(g),di(g,j,k)};e.onerror=function(){ki(e,j,i);var b=new li(ni,"Error while loading script "+a);fi(g);di(g,l,b)};Ob(e,
{type:"text/javascript",charset:"UTF-8",src:a});f=d.getElementsByTagName("HEAD");(!f||0==f.length?d.documentElement:f[0]).appendChild(e);return g}function ji(){if(this&&this.Kc){var a=this.Kc;a&&"SCRIPT"==a.tagName&&ki(a,j,this.Cb)}}function ki(a,b,c){c!=k&&v.clearTimeout(c);a.onload=ba;a.onerror=ba;a.onreadystatechange=ba;b&&window.setTimeout(function(){Xb(a)},0)}var ni=0,mi=1;function li(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ra.call(this,c);this.code=a}D(li,ra);function oi(a){this.b=new Zc(a);this.a="jsonp";this.Cb=5E3}var pi=0;function qi(a,b){v._callbacks_[a]&&(b?delete v._callbacks_[a]:v._callbacks_[a]=ba)};function ri(a){var b=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(b){var c=[],d=b[2].charCodeAt(0),e;for(e=b[1].charCodeAt(0);e<=d;++e)c.push(a.replace(b[0],String.fromCharCode(e)));return si(Ca(c,ri))}return function(b){return b===k?h:a.replace("{z}",b.n).replace("{x}",b.x).replace("{y}",b.y)}}function si(a){return 1===a.length?a[0]:function(b,c,d){if(b!==k){var e=Ib(b.hash(),a.length);return a[e](b,c,d)}}}
function ti(a,b){return function(c,d,e){return c===k?h:Gg(a,b,jg(d,c),og(d,c.n),e)}}function ui(){}function vi(a,b){return function(c,d,e){return c===k?h:b(a(c,d,e),d,e)}};function wi(a,b,c,d){ze.call(this,a,b);this.f=c;this.c=new Image;d!==k&&(this.c.crossOrigin=d);this.e={};this.d=k}D(wi,ze);wi.prototype.J=function(a){if(z(a)){var b=A(a);if(b in this.e)return this.e[b];a=Ra(this.e)?this.c:this.c.cloneNode(l);return this.e[b]=a}return this.c};wi.prototype.b=n("f");wi.prototype.g=function(){this.a=3;F(this.d,J);this.d=k;K(this,"change")};wi.prototype.i=function(){this.a=2;F(this.d,J);this.d=k;K(this,"change")};function xi(a){nh.call(this);this.d=z(a)?a:512}D(xi,nh);xi.prototype.Ja=function(a){for(var b,c;this.ca()>this.d&&!(b=this.a.Y,c=b.X.n.toString(),c in a&&a[c].contains(b.X));)this.pop()};function yi(a){qg.call(this,{attributions:a.attributions,extent:a.extent,opaque:a.opaque,projection:a.projection,tileGrid:a.tileGrid});this.ba=z(a.ba)?a.ba:ui;this.G=z(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=new xi}D(yi,qg);yi.prototype.g=function(){return this.a.ca()>this.a.d};yi.prototype.Ja=function(a){this.a.Ja(a)};yi.prototype.b=function(a,b,c){var d=a.toString();if(lh(this.a,d))return oh(this.a,d);b=this.ba(a,b,c);a=new wi(a,z(b)?0:4,z(b)?b:"",this.G);ph(this.a,d,a);return a};
yi.prototype.r=function(a){a=a.toString();lh(this.a,a)&&oh(this.a,a)};function zi(a){var b=Array(a.maxZoom+1),c,d=2*ag/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);ig.call(this,{origin:new L(-ag,ag),resolutions:b,tileSize:new de(256,256)})}D(zi,ig);zi.prototype.b=function(a,b,c){for(var d=a.x,e=a.y,a=a.n,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new xe(d,e,d,e);if(b.call(c,a,f))break}};function Ai(a){yi.call(this,{opaque:j,projection:Ve("EPSG:3857")});this.gd=z(a.culture)?a.culture:"en-us";this.i=l;var b=new Zc("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new oi(b),a={include:"ImageryProviders",key:a.key},c=na(this.u,this),a=a||k,d="_"+(pi++).toString(36)+qa().toString(36);v._callbacks_||(v._callbacks_={});var e=b.b.T();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&md(e,f,a[f]);c&&(v._callbacks_[d]=function(a){qi(d,j);c.apply(h,arguments)},md(e,
b.a,"_callbacks_."+d));f=ii(e.toString(),{timeout:b.Cb,jc:j});f.a.push([k,function(){qi(d,l)},h]);f.na&&ei(f)}D(Ai,yi);
Ai.prototype.u=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new zi({maxZoom:d,tileSize:new de(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.ba=vi(function(a){if(a.n<c||d<a.n)return k;var b=1<<a.n,e=-a.y-1;return 0>e||b<=e?k:new ve(a.n,Ib(a.x,b),e)},si(Ca(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.gd);return function(a){return a===k?h:c.replace("{quadkey}",we(a))}})));var f=Le(Ve("EPSG:4326"),this.f);this.e=
Ca(b.imageryProviders,function(a){var b=a.attribution,c={};F(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new P(a[1],a[0],a[3],a[2])).transform(f),g,i;for(g=b;g<=d;++g)i=g.toString(),b=kg(e,a,e.a[g]),i in c?c[i].push(b):c[i]=[b]});return new ye(b,c)});this.i=j;K(this,"load")};Ai.prototype.c=n("i");function Bi(a,b){ze.call(this,a,2);this.e=a;this.d=og(b,a.n);this.c={}}D(Bi,ze);Bi.prototype.J=function(a){a=z(a)?A(a):-1;if(a in this.c)return this.c[a];var b=this.d,c=Tb("CANVAS");c.width=b.width;c.height=b.height;var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b.width+0.5,b.height+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.e.toString(),b.width/2,b.height/2);return this.c[a]=c};
function Ci(a){qg.call(this,{extent:a.extent,opaque:l,projection:a.projection,tileGrid:a.tileGrid});this.a=new xi}D(Ci,qg);Ci.prototype.g=function(){return this.a.ca()>this.a.d};Ci.prototype.Ja=function(a){this.a.Ja(a)};Ci.prototype.b=function(a){var b=a.toString();if(lh(this.a,b))return oh(this.a,b);a=new Bi(a,this.tileGrid);ph(this.a,b,a);return a};function Di(a){var b=a.projection||Ve("EPSG:3857"),c=ui;z(a.ba)?c=a.ba:z(a.urls)?c=si(Ca(a.urls,ri)):z(a.url)&&(c=ri(a.url));var d=new zi({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?vi(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,i=-b.y-1;if(0>i||c<=i)return k;c=Ib(b.x,c);return!fe(jg(d,new ve(b.n,c,b.y)),e)?k:new ve(b.n,c,i)},c):vi(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,d=-b.y-1;return 0>d||c<=d?k:new ve(b.n,Ib(b.x,c),d)},c);yi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
extent:a.extent,projection:b,tileGrid:d,ba:c})}D(Di,yi);function Ei(){Di.call(this,{attributions:[new ye('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new ye('Data &copy; <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],opaque:j,maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}D(Ei,Di);
function Fi(){Di.call(this,{attributions:[new ye('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new ye("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,opaque:j,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}D(Fi,Di);function Gi(){Di.call(this,{attributions:[new ye('&copy; <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],opaque:j,maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}D(Gi,Di);function Hi(a){Jg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,Na:z(a.url)?Hg(a.url,a.params):Ig});this.b=k;this.g=1.5}D(Hi,Jg);Hi.prototype.J=function(a,b,c){this.a===k||(b=this.a[rf(this.a,b)]);var d=this.b;if(d!==k&&d.e==b&&d.I().lc(a))return d;var d=a=new P(a.h,a.k,a.j,a.l),e=this.g,f=d.ha()/2*(e-1),e=d.da()/2*(e-1);d.h-=f;d.k-=e;d.j+=f;d.l+=e;return this.b=Kg(this,a,b,new de(a.ha()/b,a.da()/b),c)};var Ii={terrain:{U:"jpg",opaque:j},"terrain-background":{U:"jpg",opaque:j},"terrain-labels":{U:"png",opaque:l},"terrain-lines":{U:"png",opaque:l},"toner-background":{U:"png",opaque:j},toner:{U:"png",opaque:j},"toner-hybrid":{U:"png",opaque:l},"toner-labels":{U:"png",opaque:l},"toner-lines":{U:"png",opaque:l},"toner-lite":{U:"png",opaque:j},watercolor:{U:"jpg",opaque:j}},Ji={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}},Ki=[new ye('Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.')];
function Li(a){var b=a.layer.indexOf("-"),b=-1==b?a.layer:a.layer.slice(0,b),c=Ii[a.layer];Di.call(this,{attributions:Ki,maxZoom:Ji[b].maxZoom,opaque:c.opaque,url:z(a.url)?a.url:"http://{a-d}.tile.stamen.com/"+a.layer+"/{z}/{x}/{y}."+c.U})}D(Li,Di);function Mi(a){var b=a.url,c=a.imageExtent,d=a.imageSize,e=c.da()/d.height,f=Ve(a.projection);Jg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Na:function(){return b},resolutions:[e]});this.b=Kg(this,c,e,d,f)}D(Mi,Jg);Mi.prototype.J=function(a){return fe(a,this.b.I())?this.b:k};var Ni=[];C("grid",function(a){Ni.push(a)});function Oi(a){yi.call(this,{projection:Ve("EPSG:3857")});this.i=l;a=this.u=ii(a.uri,{jc:j});a.a.push([this.z,k,this]);a.na&&ei(a)}D(Oi,yi);
Oi.prototype.z=function(){var a=Ni.pop(),b=Ve("EPSG:4326"),c,d;z(a.bounds)?(c=a.bounds,c=new P(c[0],c[1],c[2],c[3]),this.t=d=c.transform(Le(b,this.f))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new zi({maxZoom:f});this.tileGrid=g;this.ba=vi(function(a){if(a.n<e||f<a.n)return k;var b=1<<a.n,c=-a.y-1;if(0>c||b<=c)return k;b=Ib(a.x,b);return d!==k&&!fe(jg(g,new ve(a.n,b,a.y)),d)?k:new ve(a.n,b,c)},si(Ca(a.tiles,ri)));if(z(a.attribution)){b=d===k?b.I():d;c={};var i,m;for(i=e;i<=f;++i)m=i.toString(),
c[m]=[kg(g,b,g.a[i])];this.e=[new ye(a.attribution,c)]}this.i=j;K(this,"load")};Oi.prototype.c=n("i");function Pi(a){var b;a.urls?(b=Ca(a.urls,function(b){return ti(b,a.params)}),b=si(b)):b=a.url?ti(a.url,a.params):ui;var c=a.extent;yi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:c,tileGrid:a.tileGrid,opaque:!(z(a.params.TRANSPARENT)?a.params.TRANSPARENT:1),projection:a.projection,ba:vi(function(a,b,f){if(b.fb().length<=a.n)return k;var g=a.x,i=jg(b,a),m=f.I();c=z(c)?c:m;c!==k&&(f.Lb&&c.h===m.h&&c.j===m.j)&&(f=Math.ceil((c.j-c.h)/(i.j-i.h)),g=Ib(g,f),i=jg(b,new ve(a.n,g,
a.y)));return!fe(i,c)?k:new ve(a.n,g,a.y)},b)})}D(Pi,yi);function Qi(a){this.g=a.matrixIds;ig.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}D(Qi,ig);function Ri(a){var b=z(a.version)?a.version:"1.0.0",c=z(a.format)?a.format:"image/jpeg",d=z(a.requestEncoding)?a.requestEncoding:"KVP",e=a.tileGrid,f={Layer:a.layer,style:a.style,TileMatrixSet:a.matrixSet};Wa(f,a.dimensions||{});var g;"KVP"==d&&(g={Service:"WMTS",Request:"GetTile",Version:b,Format:c,TileMatrix:"{TileMatrix}",TileRow:"{TileRow}",TileCol:"{TileCol}"},Wa(g,f));b=a.urls;if(!z(b)){var b=[],c=a.url,i=/\{(\d)-(\d)\}/.exec(c)||/\{([a-z])-([a-z])\}/.exec(c);if(i){var m=i[2].charCodeAt(0),
q;for(q=i[1].charCodeAt(0);q<=m;++q)b.push(c.replace(i[0],String.fromCharCode(q)))}else b.push(c)}b=si(Ca(b,function(a){z(g)&&(a=Wc(Yc([a],g)));var b=a;return function(a){if(a!==k){a={TileMatrix:e.g[a.n],TileCol:a.x,TileRow:a.y};"KVP"!=d&&Wa(a,f);var c=b,g;for(g in a)c=c.replace("{"+g+"}",a[g]).replace("%7B"+g+"%7D",a[g]);return c}}}));b=vi(function(b,c,d){if(c.fb().length<=b.n)return k;var e=b.x,f=-b.y-1,g=jg(c,b),i=d.I(),m=z(a.extent)?a.extent:i;m!==k&&(d.Lb&&m.h===i.h&&m.j===i.j)&&(d=Math.ceil((m.j-
m.h)/(g.j-g.h)),e=Ib(e,d),g=jg(c,new ve(b.n,e,b.y)));return!fe(g,m)?k:new ve(b.n,e,f)},b);yi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,tileGrid:e,ba:b})}D(Ri,yi);C("goog.require",ba);function Si(a){Eh.call(this,{element:a.element,map:a.map,position:a.position,positioning:a.positioning})}D(Si,Eh);C("ol.AnchoredElement",Si);C("ol.AnchoredElementPositioning",Dh);Dh.BOTTOM_LEFT="bottom-left";Dh.BOTTOM_RIGHT="bottom-right";Dh.TOP_LEFT="top-left";Dh.TOP_RIGHT="top-right";C("ol.Attribution",ye);C("ol.Collection",N);N.prototype.clear=N.prototype.clear;N.prototype.forEach=N.prototype.forEach;N.prototype.getAt=N.prototype.ld;N.prototype.getLength=N.prototype.eb;
N.prototype.insertAt=N.prototype.mb;N.prototype.pop=N.prototype.pop;N.prototype.push=N.prototype.push;N.prototype.remove=N.prototype.remove;N.prototype.removeAt=N.prototype.Yb;N.prototype.setAt=N.prototype.oe;C("ol.Coordinate",L);C("ol.Coordinate.createStringXY",function(a){return function(b){return Tc(b,a)}});C("ol.Coordinate.fromProjectedArray",Uc);C("ol.Coordinate.toStringHDMS",function(a){return z(a)?Sc(a.y,"NS")+" "+Sc(a.x,"EW"):""});C("ol.Coordinate.toStringXY",Tc);C("ol.Extent",P);
P.prototype.containsCoordinate=P.prototype.ed;P.prototype.containsExtent=P.prototype.lc;P.prototype.getBottomLeft=P.prototype.nd;P.prototype.getBottomRight=P.prototype.od;P.prototype.getCenter=P.prototype.a;P.prototype.getHeight=P.prototype.da;P.prototype.getTopLeft=P.prototype.gb;P.prototype.getTopRight=P.prototype.sd;P.prototype.getWidth=P.prototype.ha;P.prototype.transform=P.prototype.transform;C("ol.Geolocation",V);
function Ti(a){U.call(this,{controls:a.controls,interactions:a.interactions,layers:a.layers,renderer:a.renderer,renderers:a.renderers,target:a.target,view:a.view})}D(Ti,U);C("ol.Map",Ti);U.prototype.addLayer=U.prototype.ce;U.prototype.addPreRenderFunction=U.prototype.ga;U.prototype.addPreRenderFunctions=U.prototype.$c;U.prototype.getInteractions=U.prototype.Gb;U.prototype.getRenderer=U.prototype.Tc;U.prototype.removeLayer=U.prototype.de;af.prototype.getCoordinate=af.prototype.b;C("ol.Object",M);
M.prototype.bindTo=M.prototype.ad;M.prototype.changed=M.prototype.dd;M.prototype.get=M.prototype.q;M.prototype.notify=M.prototype.Ec;M.prototype.set=M.prototype.p;M.prototype.setOptions=M.prototype.Mc;M.prototype.setValues=M.prototype.ub;M.prototype.unbind=M.prototype.bc;M.prototype.unbindAll=M.prototype.ye;function Ui(a){Je.call(this,{axisOrientation:a.axisOrientation,code:a.code,extent:a.extent,global:a.global,units:a.units})}D(Ui,Je);C("ol.Projection",Ui);Je.prototype.getAxisOrientation=Je.prototype.md;
Je.prototype.getCode=Je.prototype.qd;Je.prototype.getExtent=Je.prototype.I;Je.prototype.getMetersPerUnit=Je.prototype.sc;Je.prototype.getPointResolution=Je.prototype.c;Je.prototype.getUnits=Je.prototype.td;Je.prototype.isGlobal=Je.prototype.$d;C("ol.ProjectionUnits",He);He.DEGREES="degrees";He.FEET="ft";He.METERS="m";C("ol.RendererHint",zh);zh.CANVAS="canvas";zh.DOM="dom";zh.WEBGL="webgl";C("ol.RendererHints",yh);yh.createFromQueryData=yh.fd;
function Vi(a){T.call(this,{center:a.center,maxResolution:a.maxResolution,numZoomLevels:a.numZoomLevels,projection:a.projection,resolution:a.resolution,resolutions:a.resolutions,rotation:a.rotation,zoom:a.zoom,zoomFactor:a.zoomFactor})}D(Vi,T);C("ol.View2D",Vi);T.prototype.fitExtent=T.prototype.f;T.prototype.getView2D=T.prototype.g;C("ol.animation",tf);tf.bounce=tf.Ib;tf.pan=tf.aa;tf.rotate=tf.rotate;tf.zoom=tf.zoom;function Wi(a){Af.call(this,{map:a.map,target:a.target})}D(Wi,Af);
C("ol.control.Attribution",Wi);Af.prototype.setMap=Af.prototype.a;function Xi(a){Hh.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}D(Xi,Hh);C("ol.control.MousePosition",Xi);Hh.prototype.setMap=Hh.prototype.a;function Yi(a){Kh.call(this,{map:a.map,minWidth:a.minWidth,target:a.target,units:a.units})}D(Yi,Kh);C("ol.control.ScaleLine",Yi);Kh.prototype.setMap=Kh.prototype.a;C("ol.control.ScaleLineUnits",Jh);Jh.DEGREES="degrees";
Jh.IMPERIAL="imperial";Jh.METRIC="metric";Jh.NAUTICAL="nautical";Jh.US="us";function Zi(a){Bf.call(this,{delta:a.delta,map:a.map,target:a.target})}D(Zi,Bf);C("ol.control.Zoom",Zi);Bf.prototype.setMap=Bf.prototype.a;C("ol.control.defaults",Cf);C("ol.easing",S);S.bounce=S.Ib;S.easeIn=S.hd;S.easeOut=S.Ia;S.elastic=S.jd;S.inAndOut=S.Aa;S.linear=S.Ac;S.upAndDown=S.Rc;C("ol.interaction.Keyboard",Mh);Mh.prototype.addCallback=Mh.prototype.b;C("ol.interaction.defaults",Yf);
function $i(a){R.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}D($i,Lg);C("ol.layer.ImageLayer",$i);function aj(a){R.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}D(aj,Mg);C("ol.layer.TileLayer",aj);C("ol.parser.ogc.WMSCapabilities",Yh);Yh.prototype.read=Yh.prototype.ta;C("ol.parser.ogc.WMTSCapabilities",bi);
bi.prototype.read=bi.prototype.ta;C("ol.projection.addProjection",Re);C("ol.projection.configureProj4jsProjection",function(a){return Me(a)});C("ol.projection.get",Ve);C("ol.projection.getTransform",We);C("ol.projection.getTransformFromProjections",Le);C("ol.projection.transform",function(a,b,c){b=We(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});C("ol.projection.transformWithProjections",function(a,b,c){b=Le(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});Qg.prototype.getCanvas=Qg.prototype.bb;
function bj(a){Ai.call(this,{culture:a.culture,key:a.key,style:a.style})}D(bj,Ai);C("ol.source.BingMaps",bj);function cj(a){Ci.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}D(cj,Ci);C("ol.source.DebugTileSource",cj);C("ol.source.MapQuestOSM",Ei);C("ol.source.MapQuestOpenAerial",Fi);C("ol.source.OpenStreetMap",Gi);
function dj(a){Hi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,params:a.params,projection:a.projection,resolutions:a.resolutions,url:a.url})}D(dj,Hi);C("ol.source.SingleImageWMS",dj);function ej(a){Li.call(this,{layer:a.layer,maxZoom:a.maxZoom,minZoom:a.minZoom,opaque:a.opaque,url:a.url})}D(ej,Li);C("ol.source.Stamen",ej);
function fj(a){Mi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,imageExtent:a.imageExtent,imageSize:a.imageSize,projection:a.projection,url:a.url})}D(fj,Mi);C("ol.source.StaticImage",fj);function gj(a){Oi.call(this,{uri:a.uri})}D(gj,Oi);C("ol.source.TileJSON",gj);function hj(a){Pi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,maxZoom:a.maxZoom,params:a.params,projection:a.projection,tileGrid:a.tileGrid,url:a.url,urls:a.urls})}
D(hj,Pi);C("ol.source.TiledWMS",hj);function ij(a){Ri.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,dimensions:a.dimensions,extent:a.extent,format:a.format,layer:a.layer,matrixSet:a.matrixSet,maxZoom:a.maxZoom,projection:a.projection,requestEncoding:a.requestEncoding,style:a.style,tileGrid:a.tileGrid,url:a.url,urls:a.urls})}D(ij,Ri);C("ol.source.WMTS",ij);
C("ol.source.WMTS.optionsFromCapabilities",function(a,b){var c;c=a.contents.layers;var d=Ea(c,function(a){return a.identifier==b},h);c=0>d?k:ga(c)?c.charAt(d):c[d];var d=c.tileMatrixSetLinks[0].tileMatrixSet,e=c.formats[0],f=Ea(c.styles,function(a){return a.isDefault});0>f&&(f=0);var f=c.styles[f].identifier,g={};F(c.dimensions,function(a){var b=a.identifier,c=a["default"];z(c)||(c=a.values[0]);g[b]=c});var i=a.contents.tileMatrixSets[d],m,q=[],t=[],r=[],y=[],w=Ve(i.supportedCRS).sc();F(i.matrixIds,
function(a){t.push(a.identifier);r.push(a.topLeftCorner);q.push(2.8E-4*a.scaleDenominator/w);y.push(new de(a.tileWidth,a.tileHeight))});m=new Qi({origins:r,resolutions:q,matrixIds:t,tileSizes:y});var i=Ve(i.supportedCRS),s=a.operationsMetadata.GetTile.dcp.http.get,x=Qa(s[0].constraints.GetEncoding.allowedValues)[0],u;switch(x){case "REST":u=c.resourceUrls.tile[e];break;case "KVP":u=[],F(s,function(a){a.constraints.GetEncoding.allowedValues.hasOwnProperty("KVP")&&u.push(a.url)})}return{urls:u,layer:b,
matrixSet:d,format:e,projection:i,requestEncoding:x,tileGrid:m,style:f,dimensions:g}});function jj(a){ig.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}D(jj,ig);C("ol.tilegrid.TileGrid",jj);function kj(a){Qi.call(this,{matrixIds:a.matrixIds,origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}D(kj,Qi);C("ol.tilegrid.WMTS",kj);function lj(a){zi.call(this,{maxZoom:a.maxZoom})}
D(lj,zi);C("ol.tilegrid.XYZ",lj);tf.De={};tf.Ue={};tf.Ve={};tf.df={};})();
function Ql(a,b){this.a=[];this.f=a;this.e=b||k}p=Ql.prototype;p.ya=l;p.Sa=l;p.Ya=0;p.jd=l;p.zd=l;p.yd=0;p.zc=function(a,b){Rl(this,a,b);this.Ya--;0==this.Ya&&this.ya&&Sl(this)};function Rl(a,b,c){a.ya=i;a.b=c;a.Sa=!b;Sl(a)}function Tl(a){a.ya&&(a.jd||aa(new Ul(a)),a.jd=l)}p.fb=function(a){Tl(this);Rl(this,i,a)};function Vl(a){return Ha(a.a,function(a){return ka(a[1])})}
function Sl(a){a.c&&(a.ya&&Vl(a))&&(r.clearTimeout(a.c),delete a.c);a.d&&(a.d.yd--,delete a.d);for(var b=a.b,c=l,d=l;a.a.length&&0==a.Ya;){var e=a.a.shift(),f=e[0],h=e[1],e=e[2];if(f=a.Sa?h:f)try{var j=f.call(e||a.e,b);x(j)&&(a.Sa=a.Sa&&(j==b||j instanceof Error),a.b=b=j);b instanceof Ql&&(d=i,a.Ya++)}catch(m){b=m,a.Sa=i,Vl(a)||(c=i)}}a.b=b;d&&a.Ya&&(d=b,j=ra(a.zc,a,i),f=ra(a.zc,a,l),d.a.push([j,f,g]),d.ya&&Sl(d),b.zd=i);c&&(a.c=r.setTimeout(function(){aa(b)},0))}
function Ul(a){ua.call(this);this.a=a}D(Ul,ua);Ul.prototype.message="Deferred has already fired";Ul.prototype.name="AlreadyCalledError";function Wl(a,b){var c=b||{},d=c.document||document,e=fc("SCRIPT"),f={ed:e,Lb:g},h=new Ql(Xl,f),j=k,m=c.timeout!=k?c.timeout:5E3;0<m&&(j=window.setTimeout(function(){Yl(e,i);var b=new Zl($l,"Timeout reached for loading script "+a);Tl(h);Rl(h,l,b)},m),f.Lb=j);e.onload=e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)Yl(e,c.wc||l,j),h.fb(k)};e.onerror=function(){Yl(e,i,j);var b=new Zl(am,"Error while loading script "+a);Tl(h);Rl(h,l,b)};ac(e,{type:"text/javascript",
charset:"UTF-8",src:a});f=d.getElementsByTagName("HEAD");(!f||0==f.length?d.documentElement:f[0]).appendChild(e);return h}function Xl(){if(this&&this.ed){var a=this.ed;a&&"SCRIPT"==a.tagName&&Yl(a,i,this.Lb)}}function Yl(a,b,c){c!=k&&r.clearTimeout(c);a.onload=da;a.onerror=da;a.onreadystatechange=da;b&&window.setTimeout(function(){jc(a)},0)}var am=0,$l=1;function Zl(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ua.call(this,c);this.code=a}D(Zl,ua);function bm(a){this.b=new Cd(a);this.a="jsonp";this.Lb=5E3}var cm=0;function dm(a,b){r._callbacks_[a]&&(b?delete r._callbacks_[a]:r._callbacks_[a]=da)};function em(a){return function(b){return b===k?g:a.replace("{z}",b.n).replace("{x}",b.x).replace("{y}",b.y)}}function fm(a){return 1===a.length?a[0]:function(b,c,d){if(b!==k){var e=Sb(b.hash(),a.length);return a[e](b,c,d)}}}function gm(){}function hm(a,b){return function(c,d,e){return c===k?g:b(a(c,d,e),d,e)}}
function im(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 jm(a,b,c,d){Cf.call(this,a,b);this.f=c;this.c=new Image;d!==k&&(this.c.crossOrigin=d);this.e={};this.d=k}D(jm,Cf);jm.prototype.M=function(a){if(x(a)){var b=z(a);if(b in this.e)return this.e[b];a=Xa(this.e)?this.c:this.c.cloneNode(l);return this.e[b]=a}return this.c};jm.prototype.b=n("f");jm.prototype.g=function(){this.a=3;F(this.d,J);this.d=k;K(this,"change")};jm.prototype.i=function(){this.a=2;F(this.d,J);this.d=k;K(this,"change")};function km(a){$h.call(this,{attributions:a.attributions,extent:a.extent,opaque:a.opaque,projection:a.projection,tileGrid:a.tileGrid});this.ja=x(a.ja)?a.ja:gm;this.B=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=new dj}D(km,$h);km.prototype.g=function(){return this.a.J()>this.a.d};km.prototype.Pa=function(a){this.a.Pa(a)};km.prototype.b=function(a,b,c){var d=a.toString();if(aj(this.a,d))return bj(this.a,d);b=this.ja(a,b,c);a=new jm(a,x(b)?0:4,x(b)?b:"",this.B);cj(this.a,d,a);return a};
km.prototype.u=function(a){aj(this.a,a)&&bj(this.a,a)};function lm(a){var b=Array(a.maxZoom+1),c,d=2*eh/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);Rh.call(this,{origin:new L(-eh,eh),resolutions:b,tileSize:new Qe(256,256)})}D(lm,Rh);lm.prototype.b=function(a,b,c){for(var d=a.x,e=a.y,a=a.n,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new Af(d,e,d,e);if(b.call(c,a,f))break}};function mm(a){km.call(this,{opaque:i,projection:Zf("EPSG:3857")});this.Dd=x(a.culture)?a.culture:"en-us";this.i=l;var b=new Cd("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new bm(b),a={include:"ImageryProviders",key:a.key},c=ra(this.t,this),a=a||k,d="_"+(cm++).toString(36)+ta().toString(36);r._callbacks_||(r._callbacks_={});var e=b.b.V();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&be(e,f,a[f]);c&&(r._callbacks_[d]=function(a){dm(d,i);c.apply(g,arguments)},be(e,
b.a,"_callbacks_."+d));f=Wl(e.toString(),{timeout:b.Lb,wc:i});f.a.push([k,function(){dm(d,l)},g]);f.ya&&Sl(f)}D(mm,km);
mm.prototype.t=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new lm({maxZoom:d,tileSize:new Qe(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.ja=hm(function(a){if(a.n<c||d<a.n)return k;var b=1<<a.n,e=-a.y-1;return 0>e||b<=e?k:new yf(a.n,Sb(a.x,b),e)},fm(Ga(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.Dd);return function(a){return a===k?g:c.replace("{quadkey}",zf(a))}})));var f=Pf(Zf("EPSG:4326"),this.c);this.f=
Ga(b.imageryProviders,function(a){var b=a.attribution,c={};F(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new O(a[1],a[0],a[3],a[2])).transform(f),h,j;for(h=b;h<=d;++h)j=h.toString(),b=Th(e,a,e.a[h]),j in c?c[j].push(b):c[j]=[b]});return new Bf(b,c)});this.i=i;K(this,"load")};mm.prototype.d=n("i");function nm(a,b){Cf.call(this,a,2);this.e=a;this.d=Xh(b,a.n);this.c={}}D(nm,Cf);nm.prototype.M=function(a){a=x(a)?z(a):-1;if(a in this.c)return this.c[a];var b=this.d,c=fc("CANVAS");c.width=b.width;c.height=b.height;var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b.width+0.5,b.height+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.e.toString(),b.width/2,b.height/2);return this.c[a]=c};
function om(a){$h.call(this,{extent:a.extent,opaque:l,projection:a.projection,tileGrid:a.tileGrid});this.a=new dj}D(om,$h);om.prototype.g=function(){return this.a.J()>this.a.d};om.prototype.Pa=function(a){this.a.Pa(a)};om.prototype.b=function(a){var b=a.toString();if(aj(this.a,b))return bj(this.a,b);a=new nm(a,this.tileGrid);cj(this.a,b,a);return a};function pm(a){var b=a.projection||Zf("EPSG:3857"),c=gm;x(a.ja)?c=a.ja:x(a.urls)?c=fm(Ga(a.urls,em)):x(a.url)&&(c=im(a.url),c=fm(Ga(c,em)));var d=new lm({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?hm(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,j=-b.y-1;if(0>j||c<=j)return k;c=Sb(b.x,c);return!Sh(d,new yf(b.n,c,b.y)).ha(e)?k:new yf(b.n,c,j)},c):hm(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,d=-b.y-1;return 0>d||c<=d?k:new yf(b.n,Sb(b.x,c),d)},c);km.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
extent:a.extent,projection:b,tileGrid:d,ja:c})}D(pm,km);function qm(){pm.call(this,{attributions:[new Bf('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new Bf('Data &copy; <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],opaque:i,maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}D(qm,pm);
function rm(){pm.call(this,{attributions:[new Bf('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new Bf("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,opaque:i,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}D(rm,pm);function sm(){pm.call(this,{attributions:[new Bf('&copy; <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],opaque:i,maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}D(sm,pm);function tm(a){si.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,Ua:x(a.url)?qi(a.url,a.params):ri});this.b=k;this.g=x(a.ratio)?a.ratio:1.5}D(tm,si);
tm.prototype.M=function(a,b,c){this.a===k||(b=this.a[ug(this.a,b)]);var d=this.b;if(d!==k&&d.e==b&&d.I().yc(a))return d;var d=a=new O(a.h,a.l,a.j,a.k),e=this.g,f=d.ma()/2*(e-1),e=d.ga()/2*(e-1);d.h-=f;d.l-=e;d.j+=f;d.k+=e;return this.b=ti(this,a,b,new Qe(a.ma()/b,a.ga()/b),c)};var um={terrain:{aa:"jpg",opaque:i},"terrain-background":{aa:"jpg",opaque:i},"terrain-labels":{aa:"png",opaque:l},"terrain-lines":{aa:"png",opaque:l},"toner-background":{aa:"png",opaque:i},toner:{aa:"png",opaque:i},"toner-hybrid":{aa:"png",opaque:l},"toner-labels":{aa:"png",opaque:l},"toner-lines":{aa:"png",opaque:l},"toner-lite":{aa:"png",opaque:i},watercolor:{aa:"jpg",opaque:i}},vm={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}},wm=[new Bf('Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.')];
function xm(a){var b=a.layer.indexOf("-"),b=-1==b?a.layer:a.layer.slice(0,b),c=um[a.layer];pm.call(this,{attributions:wm,maxZoom:vm[b].maxZoom,opaque:c.opaque,url:x(a.url)?a.url:"http://{a-d}.tile.stamen.com/"+a.layer+"/{z}/{x}/{y}."+c.aa})}D(xm,pm);function ym(a){var b=a.url,c=a.imageExtent,d=a.imageSize,e=c.ga()/d.height,f=Zf(a.projection);si.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Ua:function(){return b},resolutions:[e]});this.b=ti(this,c,e,d,f)}D(ym,si);ym.prototype.M=function(a){return a.ha(this.b.I())?this.b:k};var zm=[];C("grid",function(a){zm.push(a)});function Am(a){km.call(this,{projection:Zf("EPSG:3857")});this.i=l;a=this.t=Wl(a.uri,{wc:i});a.a.push([this.w,k,this]);a.ya&&Sl(a)}D(Am,km);
Am.prototype.w=function(){var a=zm.pop(),b=Zf("EPSG:4326"),c,d;x(a.bounds)?(c=a.bounds,c=new O(c[0],c[1],c[2],c[3]),this.s=d=c.transform(Pf(b,this.c))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,h=new lm({maxZoom:f});this.tileGrid=h;this.ja=hm(function(a){if(a.n<e||f<a.n)return k;var b=1<<a.n,c=-a.y-1;if(0>c||b<=c)return k;b=Sb(a.x,b);return d!==k&&!Sh(h,new yf(a.n,b,a.y)).ha(d)?k:new yf(a.n,b,c)},fm(Ga(a.tiles,em)));if(x(a.attribution)){b=d===k?b.I():d;c={};var j,m;for(j=e;j<=f;++j)m=j.toString(),
c[m]=[Th(h,b,h.a[j])];this.f=[new Bf(a.attribution,c)]}this.i=i;K(this,"load")};Am.prototype.d=n("i");function Bm(a){var b=gm,c=a.urls;!x(c)&&x(a.url)&&(c=im(a.url));x(c)&&(b=Ga(c,function(b){var c=a.params;return function(a,d,m){return a===k?g:pi(b,c,Sh(d,a),Xh(d,a.n),m)}}),b=fm(b));var d=a.extent;km.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:a.tileGrid,opaque:!(x(a.params.TRANSPARENT)?a.params.TRANSPARENT:1),projection:a.projection,ja:hm(function(a,b,c){if(b.nb().length<=a.n)return k;var j=a.x,m=Sh(b,a),q=c.I();d=x(d)?d:q;d!==k&&(c.Vb&&d.h===q.h&&d.j===q.j)&&
(c=Math.ceil((d.j-d.h)/(m.j-m.h)),j=Sb(j,c),m=Sh(b,new yf(a.n,j,a.y)));return!m.ha(d)?k:new yf(a.n,j,a.y)},b)})}D(Bm,km);function Cm(a){this.g=a.matrixIds;Rh.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}D(Cm,Rh);function Dm(a){var b=x(a.version)?a.version:"1.0.0",c=x(a.format)?a.format:"image/jpeg",d=x(a.requestEncoding)?a.requestEncoding:"KVP",e=a.tileGrid,f={Layer:a.layer,style:a.style,TileMatrixSet:a.matrixSet};$a(f,a.dimensions||{});var h;"KVP"==d&&(h={Service:"WMTS",Request:"GetTile",Version:b,Format:c,TileMatrix:"{TileMatrix}",TileRow:"{TileRow}",TileCol:"{TileCol}"},$a(h,f));b=gm;c=a.urls;!x(c)&&x(a.url)&&(c=im(a.url));x(c)&&(b=fm(Ga(c,function(a){x(h)&&(a=zd(Bd([a],h)));var b=a;return function(a){if(a!==
k){a={TileMatrix:e.g[a.n],TileCol:a.x,TileRow:a.y};"KVP"!=d&&$a(a,f);var c=b,h;for(h in a)c=c.replace("{"+h+"}",a[h]).replace("%7B"+h+"%7D",a[h]);return c}}})));b=hm(function(b,c,d){if(c.nb().length<=b.n)return k;var e=b.x,f=-b.y-1,h=Sh(c,b),u=d.I(),t=x(a.extent)?a.extent:u;t!==k&&(d.Vb&&t.h===u.h&&t.j===u.j)&&(d=Math.ceil((t.j-t.h)/(h.j-h.h)),e=Sb(e,d),h=Sh(c,new yf(b.n,e,b.y)));return!h.ha(t)?k:new yf(b.n,e,f)},b);km.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,
projection:a.projection,tileGrid:e,ja:b})}D(Dm,km);C("goog.require",da);function Em(a){Wk.call(this,{element:a.element,map:a.map,position:a.position,positioning:a.positioning})}D(Em,Wk);C("ol.AnchoredElement",Em);C("ol.AnchoredElementPositioning",Vk);Vk.BOTTOM_LEFT="bottom-left";Vk.BOTTOM_RIGHT="bottom-right";Vk.TOP_LEFT="top-left";Vk.TOP_RIGHT="top-right";C("ol.Attribution",Bf);C("ol.Collection",N);N.prototype.clear=N.prototype.clear;N.prototype.forEach=N.prototype.forEach;N.prototype.getAt=N.prototype.Hd;N.prototype.getLength=N.prototype.mb;
N.prototype.insertAt=N.prototype.ub;N.prototype.pop=N.prototype.pop;N.prototype.push=N.prototype.push;N.prototype.remove=N.prototype.remove;N.prototype.removeAt=N.prototype.jc;N.prototype.setAt=N.prototype.Ne;C("ol.Coordinate",L);C("ol.Coordinate.createStringXY",function(a){return function(b){return wd(b,a)}});C("ol.Coordinate.fromProjectedArray",xd);C("ol.Coordinate.toStringHDMS",function(a){return x(a)?vd(a.y,"NS")+" "+vd(a.x,"EW"):""});C("ol.Coordinate.toStringXY",wd);C("ol.Expression",mj);
C("ol.Extent",O);O.prototype.containsCoordinate=O.prototype.Bd;O.prototype.containsExtent=O.prototype.yc;O.prototype.getBottomLeft=O.prototype.Gc;O.prototype.getBottomRight=O.prototype.Jd;O.prototype.getCenter=O.prototype.ad;O.prototype.getHeight=O.prototype.ga;O.prototype.getTopLeft=O.prototype.ob;O.prototype.getTopRight=O.prototype.Nd;O.prototype.getWidth=O.prototype.ma;O.prototype.transform=O.prototype.transform;C("ol.Feature",Bi);Bi.prototype.get=Bi.prototype.q;Bi.prototype.getAttributes=Bi.prototype.Qa;
Bi.prototype.getGeometry=Bi.prototype.sa;Bi.prototype.set=Bi.prototype.p;Bi.prototype.setGeometry=Bi.prototype.gd;Bi.prototype.setSymbolizers=Bi.prototype.Pe;C("ol.Geolocation",W);function Fm(a){V.call(this,{controls:a.controls,interactions:a.interactions,layers:a.layers,renderer:a.renderer,renderers:a.renderers,target:a.target,view:a.view})}D(Fm,V);C("ol.Map",Fm);V.prototype.addLayer=V.prototype.ze;V.prototype.addPreRenderFunction=V.prototype.ra;V.prototype.addPreRenderFunctions=V.prototype.wd;
V.prototype.getInteractions=V.prototype.xa;V.prototype.getRenderer=V.prototype.Pb;V.prototype.removeLayer=V.prototype.Ae;eg.prototype.getCoordinate=eg.prototype.d;C("ol.Object",M);M.prototype.bindTo=M.prototype.xd;M.prototype.changed=M.prototype.Ad;M.prototype.get=M.prototype.q;M.prototype.notify=M.prototype.Yc;M.prototype.set=M.prototype.p;M.prototype.setOptions=M.prototype.hd;M.prototype.setValues=M.prototype.Db;M.prototype.unbind=M.prototype.nc;M.prototype.unbindAll=M.prototype.Ye;
function Gm(a){Nf.call(this,{axisOrientation:a.axisOrientation,code:a.code,extent:a.extent,global:a.global,units:a.units})}D(Gm,Nf);C("ol.Projection",Gm);Nf.prototype.getAxisOrientation=Nf.prototype.Id;Nf.prototype.getCode=Nf.prototype.Ld;Nf.prototype.getExtent=Nf.prototype.I;Nf.prototype.getMetersPerUnit=Nf.prototype.Hc;Nf.prototype.getPointResolution=Nf.prototype.c;Nf.prototype.getUnits=Nf.prototype.Od;Nf.prototype.isGlobal=Nf.prototype.ve;C("ol.ProjectionUnits",Lf);Lf.DEGREES="degrees";
Lf.FEET="ft";Lf.METERS="m";C("ol.RendererHint",Rk);Rk.CANVAS="canvas";Rk.DOM="dom";Rk.WEBGL="webgl";C("ol.RendererHints",Qk);Qk.createFromQueryData=Qk.Cd;function Hm(a){T.call(this,{center:a.center,maxResolution:a.maxResolution,numZoomLevels:a.numZoomLevels,projection:a.projection,resolution:a.resolution,resolutions:a.resolutions,rotation:a.rotation,zoom:a.zoom,zoomFactor:a.zoomFactor})}D(Hm,T);C("ol.View2D",Hm);T.prototype.fitExtent=T.prototype.f;T.prototype.getView2D=T.prototype.g;
C("ol.animation",xg);xg.bounce=xg.Rb;xg.pan=xg.ia;xg.rotate=xg.rotate;xg.zoom=xg.zoom;function Im(a){Eg.call(this,{map:a.map,target:a.target})}D(Im,Eg);C("ol.control.Attribution",Im);Eg.prototype.setMap=Eg.prototype.a;function Jm(a){Zk.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}D(Jm,Zk);C("ol.control.MousePosition",Jm);Zk.prototype.setMap=Zk.prototype.a;
function Km(a){bl.call(this,{map:a.map,minWidth:a.minWidth,target:a.target,units:a.units})}D(Km,bl);C("ol.control.ScaleLine",Km);bl.prototype.setMap=bl.prototype.a;C("ol.control.ScaleLineUnits",al);al.DEGREES="degrees";al.IMPERIAL="imperial";al.METRIC="metric";al.NAUTICAL="nautical";al.US="us";function Lm(a){Fg.call(this,{delta:a.delta,map:a.map,target:a.target})}D(Lm,Fg);C("ol.control.Zoom",Lm);Fg.prototype.setMap=Fg.prototype.a;
function Mm(a){rl.call(this,{map:a.map,maxResolution:a.maxResolution,minResolution:a.minResolution})}D(Mm,rl);C("ol.control.ZoomSlider",Mm);C("ol.control.defaults",Gg);C("ol.easing",wg);wg.bounce=wg.Rb;wg.easeIn=wg.Ed;wg.easeOut=wg.Oa;wg.elastic=wg.Fd;wg.inAndOut=wg.Ja;wg.linear=wg.Uc;wg.upAndDown=wg.pd;C("ol.filter.Filter",Ji);C("ol.filter.Geometry",Pi);C("ol.filter.Logical",Qi);C("ol.filter.LogicalOperator",Ti);Ti.AND=Ri;Ti.OR=Si;C("ol.geom.LineString",ej);C("ol.geom.MultiLineString",gj);
C("ol.geom.MultiPoint",ij);C("ol.geom.MultiPolygon",lj);C("ol.geom.Point",hj);C("ol.geom.Polygon",kj);C("ol.interaction.Keyboard",ul);ul.prototype.addCallback=ul.prototype.b;C("ol.interaction.defaults",bh);function Nm(a){P.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}D(Nm,ui);C("ol.layer.ImageLayer",Nm);
function Om(a){P.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}D(Om,vi);C("ol.layer.TileLayer",Om);function Pm(a){Vi.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}D(Pm,Vi);C("ol.layer.Vector",Pm);Vi.prototype.parseFeatures=Vi.prototype.xa;C("ol.parser.GeoJSON",wl);wl.prototype.read=wl.prototype.pa;
C("ol.parser.ogc.WMSCapabilities",Ll);Ll.prototype.read=Ll.prototype.pa;C("ol.parser.ogc.WMTSCapabilities",Pl);Pl.prototype.read=Pl.prototype.pa;C("ol.projection.addProjection",Vf);C("ol.projection.configureProj4jsProjection",function(a){return Qf(a)});C("ol.projection.get",Zf);C("ol.projection.getTransform",$f);C("ol.projection.getTransformFromProjections",Pf);C("ol.projection.transform",function(a,b,c){b=$f(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});
C("ol.projection.transformWithProjections",function(a,b,c){b=Pf(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});Ij.prototype.getCanvas=Ij.prototype.kb;function Qm(a){mm.call(this,{culture:a.culture,key:a.key,style:a.style})}D(Qm,mm);C("ol.source.BingMaps",Qm);function Xm(a){om.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}D(Xm,om);C("ol.source.DebugTileSource",Xm);C("ol.source.MapQuestOSM",qm);C("ol.source.MapQuestOpenAerial",rm);C("ol.source.OpenStreetMap",sm);
function Ym(a){tm.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,params:a.params,projection:a.projection,ratio:a.ratio,resolutions:a.resolutions,url:a.url})}D(Ym,tm);C("ol.source.SingleImageWMS",Ym);function Zm(a){xm.call(this,{layer:a.layer,maxZoom:a.maxZoom,minZoom:a.minZoom,opaque:a.opaque,url:a.url})}D(Zm,xm);C("ol.source.Stamen",Zm);
function $m(a){ym.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,imageExtent:a.imageExtent,imageSize:a.imageSize,projection:a.projection,url:a.url})}D($m,ym);C("ol.source.StaticImage",$m);function an(a){Am.call(this,{uri:a.uri})}D(an,Am);C("ol.source.TileJSON",an);function bn(a){Bm.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,maxZoom:a.maxZoom,params:a.params,projection:a.projection,tileGrid:a.tileGrid,url:a.url,urls:a.urls})}
D(bn,Bm);C("ol.source.TiledWMS",bn);function cn(a){bg.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection})}D(cn,Ci);C("ol.source.Vector",cn);function dn(a){Dm.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,dimensions:a.dimensions,extent:a.extent,format:a.format,layer:a.layer,matrixSet:a.matrixSet,maxZoom:a.maxZoom,projection:a.projection,requestEncoding:a.requestEncoding,style:a.style,tileGrid:a.tileGrid,url:a.url,urls:a.urls})}D(dn,Dm);
C("ol.source.WMTS",dn);
C("ol.source.WMTS.optionsFromCapabilities",function(a,b){var c;c=a.contents.layers;var d=Ja(c,function(a){return a.identifier==b},g);c=0>d?k:ja(c)?c.charAt(d):c[d];var d=c.tileMatrixSetLinks[0].tileMatrixSet,e=c.formats[0],f=Ja(c.styles,function(a){return a.isDefault});0>f&&(f=0);var f=c.styles[f].identifier,h={};F(c.dimensions,function(a){var b=a.identifier,c=a["default"];x(c)||(c=a.values[0]);h[b]=c});var j=a.contents.tileMatrixSets[d],m,q=[],v=[],s=[],A=[],u=Zf(j.supportedCRS).Hc();F(j.matrixIds,
function(a){v.push(a.identifier);s.push(a.topLeftCorner);q.push(2.8E-4*a.scaleDenominator/u);A.push(new Qe(a.tileWidth,a.tileHeight))});m=new Cm({origins:s,resolutions:q,matrixIds:v,tileSizes:A});var j=Zf(j.supportedCRS),t=a.operationsMetadata.GetTile.dcp.http.get,y=Wa(t[0].constraints.GetEncoding.allowedValues)[0],w;switch(y){case "REST":w=c.resourceUrls.tile[e];break;case "KVP":w=[],F(t,function(a){a.constraints.GetEncoding.allowedValues.hasOwnProperty("KVP")&&w.push(a.url)})}return{urls:w,layer:b,
matrixSet:d,format:e,projection:j,requestEncoding:y,tileGrid:m,style:f,dimensions:h}});function en(a){pj.call(this,{height:a.height,opacity:a.opacity,rotation:a.rotation,url:a.url,width:a.width})}D(en,pj);C("ol.style.Icon",en);C("ol.style.IconType",{});function fn(a){sj.call(this,{opacity:a.opacity,strokeColor:a.strokeColor,strokeWidth:a.strokeWidth})}D(fn,sj);C("ol.style.Line",fn);
function gn(a){vj.call(this,{fillColor:a.fillColor,opacity:a.opacity,strokeColor:a.strokeColor,strokeWidth:a.strokeWidth})}D(gn,vj);C("ol.style.Polygon",gn);function hn(a){Mi.call(this,{filter:a.filter,symbolizers:a.symbolizers})}D(hn,Mi);C("ol.style.Rule",hn);function jn(a){zj.call(this,{fillColor:a.fillColor,opacity:a.opacity,size:a.size,strokeColor:a.strokeColor,strokeWidth:a.strokeWidth,type:a.type})}D(jn,zj);C("ol.style.Shape",jn);C("ol.style.ShapeType",xj);xj.CIRCLE="circle";
function kn(a){Ni.call(this,{rules:a.rules})}D(kn,Ni);C("ol.style.Style",kn);function ln(a){Rh.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}D(ln,Rh);C("ol.tilegrid.TileGrid",ln);function mn(a){Cm.call(this,{matrixIds:a.matrixIds,origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}D(mn,Cm);C("ol.tilegrid.WMTS",mn);function nn(a){lm.call(this,{maxZoom:a.maxZoom})}D(nn,lm);
C("ol.tilegrid.XYZ",nn);xg.cf={};xg.Df={};xg.Ef={};xg.Nf={};})();