This commit is contained in:
Tom Payne
2013-01-18 01:55:38 +01:00
parent 1ac4ed574f
commit 17c3936ab6

View File

@@ -11,18 +11,18 @@ a:{var nb="",ob;if(hb&&x.opera)var pb=x.opera.version,nb="function"==typeof pb?p
function ub(a){var b;if(!(b=tb[a])){b=0;for(var c=String(mb).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]||"",j=d[f]||"",s=RegExp("(\\d*)(\\D*)","g"),q=RegExp("(\\d*)(\\D*)","g");do{var n=s.exec(g)||["","",""],l=q.exec(j)||["","",""];if(0==n[0].length&&0==l[0].length)break;b=((0==n[1].length?0:parseInt(n[1],10))<(0==l[1].length?0:parseInt(l[1],10))?-1:(0==n[1].length?0:parseInt(n[1],
10))>(0==l[1].length?0:parseInt(l[1],10))?1:0)||((0==n[2].length)<(0==l[2].length)?-1:(0==n[2].length)>(0==l[2].length)?1:0)||(n[2]<l[2]?-1:n[2]>l[2]?1:0)}while(0==b)}b=tb[a]=0<=b}return b}var vb={};function wb(a){return vb[a]||(vb[a]=J&&!!document.documentMode&&document.documentMode>=a)};var xb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function yb(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 zb(a,b,c){if(ca(b))for(var d=0;d<b.length;d++)zb(a,String(b[d]),c);else b!=k&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))}
function Ab(a,b){for(var c in b)zb(c,b[c],a);return a};function Bb(a,b){var c;if(a instanceof Bb)this.Y=z(b)?b:a.Y,Cb(this,a.ja),c=a.Ua,Db(this),this.Ua=c,c=a.ma,Db(this),this.ma=c,Eb(this,a.Na),c=a.La,Db(this),this.La=c,Fb(this,a.a.I()),c=a.va,Db(this),this.va=c;else if(a&&(c=String(a).match(xb))){this.Y=!!b;Cb(this,c[1]||"",i);var d=c[2]||"";Db(this);this.Ua=d?decodeURIComponent(d):"";d=c[3]||"";Db(this);this.ma=d?decodeURIComponent(d):"";Eb(this,c[4]);d=c[5]||"";Db(this);this.La=d?decodeURIComponent(d):"";Fb(this,c[6]||"",i);c=c[7]||"";Db(this);this.va=
c?decodeURIComponent(c):""}else this.Y=!!b,this.a=new Gb(k,0,this.Y)}v=Bb.prototype;v.ja="";v.Ua="";v.ma="";v.Na=k;v.La="";v.va="";v.Nc=m;v.Y=m;
c?decodeURIComponent(c):""}else this.Y=!!b,this.a=new Gb(k,0,this.Y)}v=Bb.prototype;v.ja="";v.Ua="";v.ma="";v.Na=k;v.La="";v.va="";v.Oc=m;v.Y=m;
v.toString=function(){var a=[],b=this.ja;b&&a.push(Hb(b,Ib),":");if(b=this.ma){a.push("//");var c=this.Ua;c&&a.push(Hb(c,Ib),"@");a.push(encodeURIComponent(String(b)));b=this.Na;b!=k&&a.push(":",String(b))}if(b=this.La)this.ma&&"/"!=b.charAt(0)&&a.push("/"),a.push(Hb(b,"/"==b.charAt(0)?Jb:Kb));(b=this.a.toString())&&a.push("?",b);(b=this.va)&&a.push("#",Hb(b,Lb));return a.join("")};v.I=function(){return new Bb(this)};
function Cb(a,b,c){Db(a);a.ja=c?b?decodeURIComponent(b):"":b;a.ja&&(a.ja=a.ja.replace(/:$/,""))}function Eb(a,b){Db(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Na=b}else a.Na=k}
function Fb(a,b,c){Db(a);if(b instanceof Gb){a.a=b;b=a.a;if((a=a.Y)&&!b.b){Mb(b);b.a=k;var d=b.s,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),Nb(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(da(d)||C(d))I(d,c,b);else{var e;if("function"==typeof d.Q)e=d.Q();else if("function"!=typeof d.G)if(da(d)||C(d)){e=[];for(var f=d.length,g=0;g<f;g++)e.push(g)}else e=Pa(d);else e=h;d=Sa(d);f=d.length;for(g=0;g<f;g++)c.call(b,d[g],e&&e[g])}}b.b=a}else c||(b=Hb(b,Ob)),a.a=new Gb(b,
0,a.Y)}function Pb(a,b,c){Db(a);ca(c)||(c=[String(c)]);Nb(a.a,b,c)}function Db(a){if(a.Nc)throw Error("Tried to modify a read-only Uri");}function Hb(a,b){return C(a)?encodeURI(a).replace(b,Qb):k}function Qb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Ib=/[#\/\?@]/g,Kb=/[\#\?:]/g,Jb=/[\#\?]/g,Ob=/[\#\?@]/g,Lb=/#/g;function Gb(a,b,c){this.a=a||k;this.b=!!c}
0,a.Y)}function Pb(a,b,c){Db(a);ca(c)||(c=[String(c)]);Nb(a.a,b,c)}function Db(a){if(a.Oc)throw Error("Tried to modify a read-only Uri");}function Hb(a,b){return C(a)?encodeURI(a).replace(b,Qb):k}function Qb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Ib=/[#\/\?@]/g,Kb=/[\#\?:]/g,Jb=/[\#\?]/g,Ob=/[\#\?@]/g,Lb=/#/g;function Gb(a,b,c){this.a=a||k;this.b=!!c}
function Mb(a){if(!a.s&&(a.s=new Ta,a.m=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=Rb(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}v=Gb.prototype;v.s=k;v.m=k;v.Za=function(){Mb(this);return this.m};v.add=function(a,b){Mb(this);this.a=k;var a=Rb(this,a),c=Wa(this.s,a);c||this.s.set(a,c=[]);c.push(b);this.m++;return this};
v.remove=function(a){Mb(this);a=Rb(this,a);return Va(this.s.b,a)?(this.a=k,this.m-=Wa(this.s,a).length,this.s.remove(a)):m};v.clear=function(){this.s=this.a=k;this.m=0};v.$=function(){Mb(this);return 0==this.m};function Sb(a,b){Mb(a);b=Rb(a,b);return Va(a.s.b,b)}v.Q=function(){Mb(this);for(var a=this.s.G(),b=this.s.Q(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
v.G=function(a){Mb(this);var b=[];if(a)Sb(this,a)&&(b=Ha(b,Wa(this.s,Rb(this,a))));else for(var a=this.s.G(),c=0;c<a.length;c++)b=Ha(b,a[c]);return b};v.set=function(a,b){Mb(this);this.a=k;a=Rb(this,a);Sb(this,a)&&(this.m-=Wa(this.s,a).length);this.s.set(a,[b]);this.m++;return this};function Tb(a,b){var c=b?a.G(b):[];return 0<c.length?String(c[0]):h}function Nb(a,b,c){a.remove(b);0<c.length&&(a.a=k,a.s.set(Rb(a,b),Ia(c)),a.m+=c.length)}
v.toString=function(){if(this.a)return this.a;if(!this.s)return"";for(var a=[],b=this.s.Q(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.G(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("&")};v.I=function(){var a=new Gb;a.a=this.a;this.s&&(a.s=this.s.I());return a};function Rb(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};var Ub=!J||wb(9),Vb=!J||wb(9),Wb=J&&!ub("9");!K||ub("528");ib&&ub("1.9b")||J&&ub("8")||hb&&ub("9.5")||K&&ub("528");ib&&!ub("8")||J&&ub("9");function L(){0!=Xb&&(this.fd=Error().stack,Yb[D(this)]=this)}var Xb=0,Yb={};L.prototype.Sb=m;L.prototype.Ya=function(){if(!this.Sb&&(this.Sb=i,this.q(),0!=Xb)){var a=D(this);delete Yb[a]}};function Zb(a,b){a.R||(a.R=[]);a.R.push(b)}L.prototype.q=function(){this.R&&$b.apply(k,this.R);if(this.Wb)for(;this.Wb.length;)this.Wb.shift()()};function ac(a){a&&"function"==typeof a.Ya&&a.Ya()}function $b(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];da(d)?$b.apply(k,d):ac(d)}};function bc(a,b){this.type=a;this.b=this.target=b}v=bc.prototype;v.Ya=function(){};v.ba=m;v.Aa=m;v.Pa=i;v.$a=function(){this.ba=i};v.v=function(){this.Aa=i;this.Pa=m};function cc(a){a.$a()};function dc(a){dc[" "](a);return a}dc[" "]=y;function ec(a,b){a&&fc(this,a,b)}G(ec,bc);var gc=[1,4,2];v=ec.prototype;v.target=k;v.Ac=k;v.yc=0;v.zc=0;v.clientX=0;v.clientY=0;v.Bc=0;v.Cc=0;v.wc=0;v.ga=0;v.ya=0;v.za=m;v.M=m;v.Z=m;v.xc=m;v.Ma=m;v.F=k;
function fc(a,b,c){var d=a.type=b.type;bc.call(a,d);a.target=b.target||b.srcElement;a.b=c;if(c=b.relatedTarget){if(ib){var e;a:{try{dc(c.nodeName);e=i;break a}catch(f){}e=m}e||(c=k)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.Ac=c;a.yc=K||b.offsetX!==h?b.offsetX:b.layerX;a.zc=K||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.Bc=b.screenX||0;a.Cc=b.screenY||0;a.wc=b.button;a.ga=b.keyCode||0;a.ya=b.charCode||
("keypress"==d?b.keyCode:0);a.za=b.ctrlKey;a.M=b.altKey;a.Z=b.shiftKey;a.xc=b.metaKey;a.Ma=ab?b.metaKey:b.ctrlKey;a.d=b.state;a.F=b;b.defaultPrevented&&a.v();delete a.ba}function hc(a){return(Ub?0==a.F.button:"click"==a.type?i:!!(a.F.button&gc[0]))&&!(K&&ab&&a.za)}v.$a=function(){ec.p.$a.call(this);this.F.stopPropagation?this.F.stopPropagation():this.F.cancelBubble=i};
v.v=function(){ec.p.v.call(this);var a=this.F;if(a.preventDefault)a.preventDefault();else if(a.returnValue=m,Wb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};v.uc=p("F");function ic(){}var jc=0;ic.prototype.key=0;ic.prototype.ia=m;ic.prototype.a=m;ic.prototype.handleEvent=function(a){return this.b?this.qa.call(this.mb||this.src,a):this.qa.handleEvent.call(this.qa,a)};var kc={},lc={},mc={},nc={};
v.toString=function(){if(this.a)return this.a;if(!this.s)return"";for(var a=[],b=this.s.Q(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.G(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("&")};v.I=function(){var a=new Gb;a.a=this.a;this.s&&(a.s=this.s.I());return a};function Rb(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};var Ub=!J||wb(9),Vb=!J||wb(9),Wb=J&&!ub("9");!K||ub("528");ib&&ub("1.9b")||J&&ub("8")||hb&&ub("9.5")||K&&ub("528");ib&&!ub("8")||J&&ub("9");function L(){0!=Xb&&(this.gd=Error().stack,Yb[D(this)]=this)}var Xb=0,Yb={};L.prototype.Sb=m;L.prototype.Ya=function(){if(!this.Sb&&(this.Sb=i,this.q(),0!=Xb)){var a=D(this);delete Yb[a]}};function Zb(a,b){a.R||(a.R=[]);a.R.push(b)}L.prototype.q=function(){this.R&&$b.apply(k,this.R);if(this.Wb)for(;this.Wb.length;)this.Wb.shift()()};function ac(a){a&&"function"==typeof a.Ya&&a.Ya()}function $b(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];da(d)?$b.apply(k,d):ac(d)}};function bc(a,b){this.type=a;this.b=this.target=b}v=bc.prototype;v.Ya=function(){};v.ba=m;v.Aa=m;v.Pa=i;v.$a=function(){this.ba=i};v.v=function(){this.Aa=i;this.Pa=m};function cc(a){a.$a()};function dc(a){dc[" "](a);return a}dc[" "]=y;function ec(a,b){a&&fc(this,a,b)}G(ec,bc);var gc=[1,4,2];v=ec.prototype;v.target=k;v.Bc=k;v.zc=0;v.Ac=0;v.clientX=0;v.clientY=0;v.Cc=0;v.Dc=0;v.xc=0;v.ga=0;v.ya=0;v.za=m;v.M=m;v.Z=m;v.yc=m;v.Ma=m;v.F=k;
function fc(a,b,c){var d=a.type=b.type;bc.call(a,d);a.target=b.target||b.srcElement;a.b=c;if(c=b.relatedTarget){if(ib){var e;a:{try{dc(c.nodeName);e=i;break a}catch(f){}e=m}e||(c=k)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.Bc=c;a.zc=K||b.offsetX!==h?b.offsetX:b.layerX;a.Ac=K||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.Cc=b.screenX||0;a.Dc=b.screenY||0;a.xc=b.button;a.ga=b.keyCode||0;a.ya=b.charCode||
("keypress"==d?b.keyCode:0);a.za=b.ctrlKey;a.M=b.altKey;a.Z=b.shiftKey;a.yc=b.metaKey;a.Ma=ab?b.metaKey:b.ctrlKey;a.d=b.state;a.F=b;b.defaultPrevented&&a.v();delete a.ba}function hc(a){return(Ub?0==a.F.button:"click"==a.type?i:!!(a.F.button&gc[0]))&&!(K&&ab&&a.za)}v.$a=function(){ec.p.$a.call(this);this.F.stopPropagation?this.F.stopPropagation():this.F.cancelBubble=i};
v.v=function(){ec.p.v.call(this);var a=this.F;if(a.preventDefault)a.preventDefault();else if(a.returnValue=m,Wb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};v.vc=p("F");function ic(){}var jc=0;ic.prototype.key=0;ic.prototype.ia=m;ic.prototype.a=m;ic.prototype.handleEvent=function(a){return this.b?this.qa.call(this.mb||this.src,a):this.qa.handleEvent.call(this.qa,a)};var kc={},lc={},mc={},nc={};
function M(a,b,c,d,e){if(b){if(ca(b)){for(var f=0;f<b.length;f++)M(a,b[f],c,d,e);return k}var d=!!d,g=lc;b in g||(g[b]={m:0,H:0});g=g[b];d in g||(g[d]={m:0,H:0},g.m++);var g=g[d],j=D(a),s;g.H++;if(g[j]){s=g[j];for(f=0;f<s.length;f++)if(g=s[f],g.qa==c&&g.mb==e){if(g.ia)break;return s[f].key}}else s=g[j]=[],g.m++;var q=oc,n=Vb?function(a){return q.call(n.src,n.key,a)}:function(a){a=q.call(n.src,n.key,a);if(!a)return a},f=n;f.src=a;var l=g=new ic;if(ea(c))l.b=i;else if(c&&c.handleEvent&&ea(c.handleEvent))l.b=
m;else throw Error("Invalid listener argument");l.qa=c;l.c=f;l.src=a;l.type=b;l.capture=!!d;l.mb=e;l.a=m;l.key=++jc;l.ia=m;c=g.key;f.key=c;s.push(g);kc[c]=g;mc[j]||(mc[j]=[]);mc[j].push(g);a.addEventListener?(a==x||!a.Bb)&&a.addEventListener(b,f,d):a.attachEvent(b in nc?nc[b]:nc[b]="on"+b,f);return c}throw Error("Invalid event type");}function pc(a,b,c,d,e){if(ca(b)){for(var f=0;f<b.length;f++)pc(a,b[f],c,d,e);return k}a=M(a,b,c,d,e);kc[a].a=i;return a}
function qc(a,b,c,d,e){if(ca(b))for(var f=0;f<b.length;f++)qc(a,b[f],c,d,e);else{d=!!d;a:{f=lc;if(b in f&&(f=f[b],d in f&&(f=f[d],a=D(a),f[a]))){a=f[a];break a}a=k}if(a)for(f=0;f<a.length;f++)if(a[f].qa==c&&a[f].capture==d&&a[f].mb==e){N(a[f].key);break}}}
@@ -40,26 +40,26 @@ Cc.prototype.appendChild=function(a,b){a.appendChild(b)};Cc.prototype.contains=f
The Closure Authors under the MIT license. All other code is Copyright
2005-2009 The Closure Authors. All Rights Reserved.
*/
function Oc(a,b){this.a=[];this.f=a;this.e=b||k}v=Oc.prototype;v.W=m;v.pa=m;v.ra=0;v.$b=m;v.jc=m;v.ic=0;v.zb=function(a,b){Pc(this,a,b);this.ra--;0==this.ra&&this.W&&Qc(this)};function Pc(a,b,c){a.W=i;a.b=c;a.pa=!b;Qc(a)}function Rc(a){if(a.W){if(!a.$b)throw new Sc(a);a.$b=m}}function Tc(a){return ya(a.a,function(a){return ea(a[1])})}
function Qc(a){a.c&&(a.W&&Tc(a))&&(x.clearTimeout(a.c),delete a.c);a.d&&(a.d.ic--,delete a.d);for(var b=a.b,c=m,d=m;a.a.length&&0==a.ra;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.pa?g:f)try{var j=f.call(e||a.e,b);z(j)&&(a.pa=a.pa&&(j==b||j instanceof Error),a.b=b=j);b instanceof Oc&&(d=i,a.ra++)}catch(s){b=s,a.pa=i,Tc(a)||(c=i)}}a.b=b;d&&a.ra&&(d=b,j=ka(a.zb,a,i),f=ka(a.zb,a,m),d.a.push([j,f,h]),d.W&&Qc(d),b.jc=i);c&&(a.c=x.setTimeout(function(){throw b;},0))}
function Oc(a,b){this.a=[];this.f=a;this.e=b||k}v=Oc.prototype;v.W=m;v.pa=m;v.ra=0;v.$b=m;v.kc=m;v.jc=0;v.zb=function(a,b){Pc(this,a,b);this.ra--;0==this.ra&&this.W&&Qc(this)};function Pc(a,b,c){a.W=i;a.b=c;a.pa=!b;Qc(a)}function Rc(a){if(a.W){if(!a.$b)throw new Sc(a);a.$b=m}}function Tc(a){return ya(a.a,function(a){return ea(a[1])})}
function Qc(a){a.c&&(a.W&&Tc(a))&&(x.clearTimeout(a.c),delete a.c);a.d&&(a.d.jc--,delete a.d);for(var b=a.b,c=m,d=m;a.a.length&&0==a.ra;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.pa?g:f)try{var j=f.call(e||a.e,b);z(j)&&(a.pa=a.pa&&(j==b||j instanceof Error),a.b=b=j);b instanceof Oc&&(d=i,a.ra++)}catch(s){b=s,a.pa=i,Tc(a)||(c=i)}}a.b=b;d&&a.ra&&(d=b,j=ka(a.zb,a,i),f=ka(a.zb,a,m),d.a.push([j,f,h]),d.W&&Qc(d),b.kc=i);c&&(a.c=x.setTimeout(function(){throw b;},0))}
function Sc(a){oa.call(this);this.a=a}G(Sc,oa);Sc.prototype.message="Deferred has already fired";Sc.prototype.name="AlreadyCalledError";function Uc(a,b){var c=b||{},d=c.document||document,e=Jc("SCRIPT"),f={Xb:e,Sa:h},g=new Oc(Vc,f),j=k,s=c.timeout!=k?c.timeout:5E3;0<s&&(j=window.setTimeout(function(){Wc(e,i);var b=new Xc(ad,"Timeout reached for loading script "+a);Rc(g);Pc(g,m,b)},s),f.Sa=j);e.onload=e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)Wc(e,c.yb||m,j),Rc(g),Pc(g,i,k)};e.onerror=function(){Wc(e,i,j);var b=new Xc(bd,"Error while loading script "+a);Rc(g);Pc(g,m,b)};Ec(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 Vc(){if(this&&this.Xb){var a=this.Xb;a&&"SCRIPT"==a.tagName&&Wc(a,i,this.Sa)}}function Wc(a,b,c){c!=k&&x.clearTimeout(c);a.onload=y;a.onerror=y;a.onreadystatechange=y;b&&window.setTimeout(function(){Mc(a)},0)}var bd=0,ad=1;function Xc(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);oa.call(this,c);this.a=a}G(Xc,oa);function cd(a){this.b=new Bb(a);this.a="jsonp";this.Sa=5E3}var dd=0;function ed(a,b){x._callbacks_[a]&&(b?delete x._callbacks_[a]:x._callbacks_[a]=y)};function fd(a,b){this.x=a;this.y=b}G(fd,zc);fd.prototype.I=function(){return new fd(this.x,this.y)};fd.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};fd.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 R(a,b){fd.call(this,a,b)}G(R,fd);function gd(a,b){var c=yc(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 hd(a,b){Ac.call(this,a,b)}G(hd,Ac);function id(a,b,c,d){this.h=a;this.i=b;this.j=c;this.n=d}id.prototype.a=function(){return this.n-this.i};id.prototype.b=function(){return this.j-this.h};function jd(a,b){return a.h<=b.j&&a.j>=b.h&&a.i<=b.n&&a.n>=b.i}id.prototype.toString=function(){return"("+[this.h,this.i,this.j,this.n].join(", ")+")"};function S(a,b,c){fd.call(this,b,c);this.l=a}G(S,R);S.prototype.hash=function(){return(this.x<<this.l)+this.y};function kd(a){var b=Array(a.l),c=1<<a.l-1,d,e;for(d=0;d<a.l;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}S.prototype.toString=function(){return[this.l,this.x,this.y].join("/")};function ld(a,b,c,d){id.call(this,a,b,c,d)}G(ld,id);ld.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.j&&this.i<=a.y&&a.y<=this.n};ld.prototype.a=function(){return this.n-this.i+1};ld.prototype.b=function(){return this.j-this.h+1};function md(a,b,c,d){id.call(this,a,b,c,d)}G(md,id);function nd(a){var b=arguments[0],b=new md(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.i=Math.min(b.i,d.y);b.j=Math.max(b.j,d.x);b.n=Math.max(b.n,d.y)}return b}md.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.j&&this.i<=a.y&&a.y<=this.n};function od(a){return new R(a.h,a.n)}
md.prototype.transform=function(a){var b=a(new R(this.h,this.i)),a=a(new R(this.j,this.n));return new md(b.x,b.y,a.x,a.y)};function pd(){L.call(this)}G(pd,L);v=pd.prototype;v.Bb=i;v.ob=k;v.addEventListener=function(a,b,c,d){M(this,a,b,c,d)};v.removeEventListener=function(a,b,c,d){qc(this,a,b,c,d)};v.q=function(){pd.p.q.call(this);var a,b=0,c=a==k;a=!!a;if(this==k)Na(mc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)N(f.key),b++}});else{var d=D(this);if(mc[d])for(var d=mc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)N(f.key),b++}}this.ob=k};function qd(a){L.call(this);this.da=a;this.a=0}G(qd,pd);qd.prototype.getKey=function(){return D(this).toString()};function rd(a,b,c){qd.call(this,a);this.e=b;this.b=new Image;c!==k&&(this.b.crossOrigin=c);this.d={};this.c=k}G(rd,qd);v=rd.prototype;v.P=function(a){if(z(a)){var b,a=D(a);if(a in this.d)return this.d[a];a:{for(b in this.d){b=m;break a}b=i}b=b?this.b:this.b.cloneNode(m);return this.d[a]=b}return this.b};v.getKey=p("e");v.Fc=function(){this.a=3;I(this.c,N);this.c=k;O(this,"change")};v.Gc=function(){this.a=2;I(this.c,N);this.c=k;O(this,"change")};
v.load=function(){0==this.a&&(this.a=1,this.c=[pc(this.b,"error",this.Fc,m,this),pc(this.b,"load",this.Gc,m,this)],this.b.src=this.e)};var sd={dd:"degrees",gd:"m"};function U(a,b,c){this.a=a;this.e=b;this.d=c}U.prototype.b=p("a");U.prototype.K=p("d");U.prototype.c=p("e");function td(a,b){U.call(this,a,b.units,k);this.Ub=b}G(td,U);var ud={},vd={},wd={};function xd(a){I(a,function(a){yd(a)});I(a,function(b){I(a,function(a){b!==a&&zd(b,a,Ad)})})}function yd(a){vd[a.a]=a;zd(a,a,Ad)}function Bd(a){return a!=k?C(a)?Cd(a):a:Cd("EPSG:3857")}function zd(a,b,c){a=a.a;b=b.a;a in wd||(wd[a]={});wd[a][b]=c}
md.prototype.transform=function(a){var b=a(new R(this.h,this.i)),a=a(new R(this.j,this.n));return new md(b.x,b.y,a.x,a.y)};function pd(){L.call(this)}G(pd,L);v=pd.prototype;v.Bb=i;v.ob=k;v.addEventListener=function(a,b,c,d){M(this,a,b,c,d)};v.removeEventListener=function(a,b,c,d){qc(this,a,b,c,d)};v.q=function(){pd.p.q.call(this);var a,b=0,c=a==k;a=!!a;if(this==k)Na(mc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)N(f.key),b++}});else{var d=D(this);if(mc[d])for(var d=mc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)N(f.key),b++}}this.ob=k};function qd(a){L.call(this);this.da=a;this.a=0}G(qd,pd);qd.prototype.getKey=function(){return D(this).toString()};function rd(a,b,c){qd.call(this,a);this.e=b;this.b=new Image;c!==k&&(this.b.crossOrigin=c);this.d={};this.c=k}G(rd,qd);v=rd.prototype;v.P=function(a){if(z(a)){var b,a=D(a);if(a in this.d)return this.d[a];a:{for(b in this.d){b=m;break a}b=i}b=b?this.b:this.b.cloneNode(m);return this.d[a]=b}return this.b};v.getKey=p("e");v.Gc=function(){this.a=3;I(this.c,N);this.c=k;O(this,"change")};v.Hc=function(){this.a=2;I(this.c,N);this.c=k;O(this,"change")};
v.load=function(){0==this.a&&(this.a=1,this.c=[pc(this.b,"error",this.Gc,m,this),pc(this.b,"load",this.Hc,m,this)],this.b.src=this.e)};var sd={ed:"degrees",hd:"m"};function U(a,b,c){this.a=a;this.e=b;this.d=c}U.prototype.b=p("a");U.prototype.K=p("d");U.prototype.c=p("e");function td(a,b){U.call(this,a,b.units,k);this.Ub=b}G(td,U);var ud={},vd={},wd={};function xd(a){I(a,function(a){yd(a)});I(a,function(b){I(a,function(a){b!==a&&zd(b,a,Ad)})})}function yd(a){vd[a.a]=a;zd(a,a,Ad)}function Bd(a){return a!=k?C(a)?Cd(a):a:Cd("EPSG:3857")}function zd(a,b,c){a=a.a;b=b.a;a in wd||(wd[a]={});wd[a][b]=c}
function Cd(a){var b=vd[a];"Proj4js"in x&&!z(b)&&(b=Dd(a));z(b)||(b=k);return b}function Dd(a){var b=ud[a];z(b)||(b=new Proj4js.Proj(a),b=new td(a,b),ud[a]=b);return b}function Ed(a,b){var c=a.a,d=b.a,e;c in wd&&d in wd[c]&&(e=wd[c][d]);if("Proj4js"in x&&!z(e)){var f;f=(a instanceof td?a:Dd(a.a)).Ub;var g;g=(b instanceof td?b:Dd(a.a)).Ub;e=function(a){a=new Proj4js.Point(a.x,a.y);a=Proj4js.transform(f,g,a);return new R(a.x,a.y)};zd(a,b,e)}z(e)||(e=Fd);return e}
function Gd(a,b){var c=Cd(a),d=Cd(b);return Ed(c,d)}function Fd(a){return a}function Ad(a){return new R(a.x,a.y)}var Hd=6378137*Math.PI,Id=new md(-Hd,-Hd,Hd,Hd),Jd=xa(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new U(a,"m",Id)}),Kd=new md(-180,-90,180,90),Ld=xa(["CRS:84","EPSG:4326","urn:ogc:def:crs:EPSG:6.6:4326"],function(a){return new U(a,"degrees",Kd)});xd(Jd);xd(Ld);
function Md(a){var b=6378137*Math.PI*a.x/180,a=6378137*Math.log(Math.tan(Math.PI*(a.y+90)/360));return new R(b,a)}function Nd(a){return new R(180*a.x/(6378137*Math.PI),360*Math.atan(Math.exp(a.y/6378137))/Math.PI-90)}I(Ld,function(a){I(Jd,function(b){zd(a,b,Md);zd(b,a,Nd)})});function Od(a,b,c,d){id.call(this,a,b,c,d)}G(Od,id);function Pd(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 Qd(a){this.a=a.resolutions;this.g=this.a.length;this.f=z(a.extent)?a.extent:k;this.d=z(a.origin)?a.origin:k;this.e=k;z(a.origins)&&(this.e=a.origins);this.b=z(a.tileSize)?a.tileSize:new hd(256,256)}Qd.prototype.c=function(a,b,c){for(var d=Rd(this,a),a=a.l-1;0<=a&&!b.call(c,a,Sd(this,d,this.a[a]));)--a};Qd.prototype.K=p("f");function Td(a,b){return a.d===k?a.e[b]:a.d}function Sd(a,b,c){var d=Ud(a,new R(b.h,b.i),c),a=Ud(a,new R(b.j,b.n),c);return new ld(d.x,d.y,a.x,a.y)}
function Vd(a,b){var c=Td(a,b.l),d=a.a[b.l],e=a.b;return new R(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function Rd(a,b){var c=Td(a,b.l),d=a.a[b.l],e=a.b,f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new md(f,c,f+e.width*d,c+e.height*d)}
function Ud(a,b,c){var d=Pd(a.a,c),e=c/a.a[d],f=Td(a,d),b=new R(Math.floor((b.x-f.x)/c),Math.floor((b.y-f.y)/c)),f=a.b,f=new hd(f.width/e,f.height/e),d=new S(d,Math.floor(b.x/f.width),Math.floor(b.y/f.height)),c=c/a.a[d.l],a=a.b,a=new hd(a.width/c,a.height/c),c=Math.round(d.x*a.width),e=Math.round((d.x+1)*a.width),f=Math.round(d.y*a.height),a=Math.round((d.y+1)*a.height),a=new Od(c,f,e,a);b.x<a.h?d.x-=1:b.x>=a.j&&(d.x+=1);b.y<a.i?d.y-=1:b.y>=a.n&&(d.y+=1);return d};function Wd(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 Xd(xa(c,Wd))}return function(b){return b===k?h:a.replace("{z}",b.l).replace("{x}",b.x).replace("{y}",b.y)}}function Xd(a){return function(b){if(b!==k){var c=yc(b.hash(),a.length);return a[c](b)}}}
function Yd(a,b){return function(c){if(c!==k)return c=Rd(b,c),yb([a,"&","BBOX","=",encodeURIComponent(String([c.h,c.i,c.j,c.n].join()))])}}function Zd(){}function $d(a,b){return function(c){return c===k?h:b(a(c))}};function ae(a){return function(){return a}}var be=ae(m),ce=ae(i),de=ae(k);function ee(a){L.call(this);this.f=z(a.projection)?a.projection:k;this.e=z(a.extent)?a.extent:a.projection.K();this.ta=z(a.attributions)?a.attributions:k}G(ee,pd);ee.prototype.K=p("e");ee.prototype.b=ce;function fe(a){ee.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.tileGrid=z(a.tileGrid)?a.tileGrid:k}G(fe,ee);function ge(a){fe.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.O=z(a.O)?a.O:Zd;this.g=z(a.crossOrigin)?a.crossOrigin:"anonymous";this.c={}}G(ge,fe);ge.prototype.a=function(a){var b=a.toString();if(b in this.c)return this.c[b];var c=this.O(a),a=z(c)?new rd(a,c,this.g):k;return this.c[b]=a};function he(a){var b=Array(a.maxZoom+1),c;for(c=0;c<=a.maxZoom;++c)b[c]=2*Hd/(256<<c);Qd.call(this,{extent:Id,origin:new R(-Hd,Hd),resolutions:b,tileSize:new hd(256,256)})}G(he,Qd);he.prototype.c=function(a,b,c){for(var d=a.x,e=a.y,a=a.l,f;;){a-=1;if(0>a)break;d=Math.floor(d/2);e=Math.floor(e/2);f=new ld(d,e,d,e);if(b.call(c,a,f))break}};var ie={$c:"Aerial",ad:"AerialWithLabels",jd:"Road",hd:"OrdnanceSurvey",cd:"CollinsBart"};
function je(a){ge.call(this,{projection:Cd("EPSG:3857")});this.qc=z(a.culture)?a.culture:"en-us";this.d=m;var b=new Bb("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new cd(b),a={include:"ImageryProviders",key:a.key},c=ka(this.k,this),a=a||k,d="_"+(dd++).toString(36)+ma().toString(36);x._callbacks_||(x._callbacks_={});var e=b.b.I();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&Pb(e,f,a[f]);c&&(x._callbacks_[d]=function(a){ed(d,i);c.apply(h,arguments)},Pb(e,b.a,"_callbacks_."+
function Yd(a,b){return function(c){if(c!==k)return c=Rd(b,c),yb([a,"&","BBOX","=",encodeURIComponent(String([c.h,c.i,c.j,c.n].join()))])}}function Zd(){}function $d(a,b){return function(c){return c===k?h:b(a(c))}};function ae(a){return function(){return a}}var be=ae(m),ce=ae(i),de=ae(k);function ee(a){L.call(this);this.f=z(a.projection)?a.projection:k;this.e=z(a.extent)?a.extent:a.projection.K();this.ta=z(a.attributions)?a.attributions:k}G(ee,pd);ee.prototype.K=p("e");ee.prototype.b=ce;function fe(a){ee.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.tileGrid=z(a.tileGrid)?a.tileGrid:k}G(fe,ee);function ge(a){fe.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.O=z(a.O)?a.O:Zd;this.g=z(a.crossOrigin)?a.crossOrigin:"anonymous";this.c={}}G(ge,fe);ge.prototype.a=function(a){var b=a.toString();if(b in this.c)return this.c[b];var c=this.O(a),a=z(c)?new rd(a,c,this.g):k;return this.c[b]=a};function he(a){var b=Array(a.maxZoom+1),c;for(c=0;c<=a.maxZoom;++c)b[c]=2*Hd/(256<<c);Qd.call(this,{extent:Id,origin:new R(-Hd,Hd),resolutions:b,tileSize:new hd(256,256)})}G(he,Qd);he.prototype.c=function(a,b,c){for(var d=a.x,e=a.y,a=a.l,f;;){a-=1;if(0>a)break;d=Math.floor(d/2);e=Math.floor(e/2);f=new ld(d,e,d,e);if(b.call(c,a,f))break}};var ie={ad:"Aerial",bd:"AerialWithLabels",kd:"Road",jd:"OrdnanceSurvey",dd:"CollinsBart"};
function je(a){ge.call(this,{projection:Cd("EPSG:3857")});this.rc=z(a.culture)?a.culture:"en-us";this.d=m;var b=new Bb("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new cd(b),a={include:"ImageryProviders",key:a.key},c=ka(this.k,this),a=a||k,d="_"+(dd++).toString(36)+ma().toString(36);x._callbacks_||(x._callbacks_={});var e=b.b.I();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&Pb(e,f,a[f]);c&&(x._callbacks_[d]=function(a){ed(d,i);c.apply(h,arguments)},Pb(e,b.a,"_callbacks_."+
d));f=Uc(e.toString(),{timeout:b.Sa,yb:i});f.a.push([k,function(){ed(d,m)},h]);f.W&&Qc(f)}G(je,ge);
je.prototype.k=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new he({maxZoom:d,tileSize:new hd(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.O=$d(function(a){if(a.l<c||d<a.l)return k;var b=1<<a.l,e=-a.y-1;return 0>e||b<=e?k:new S(a.l,yc(a.x,b),e)},Xd(xa(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.qc);return function(a){return a===k?h:c.replace("{quadkey}",kd(a))}})));var f=Ed(Cd("EPSG:4326"),this.f);this.ta=
xa(b.imageryProviders,function(a){var b=a.attribution,c={};I(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new md(a[1],a[0],a[3],a[2])).transform(f),g,j;for(g=b;g<=d;++g)j=g.toString(),b=Sd(e,a,e.a[g]),j in c?c[j].push(b):c[j]=[b]});return new na(b,c)});this.d=i;O(this,"load")};je.prototype.b=p("d");function V(a){L.call(this);z(a)&&this.Ka(a)}G(V,pd);var ke={},le={},me={};function ne(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function oe(a){return a.ol_accessors_||(a.ol_accessors_={})}function pe(a){return ke[a]||(ke[a]=a.toLowerCase()+"_changed")}function qe(a){return a.ol_bindings_||(a.ol_bindings_={})}v=V.prototype;v.hc=function(a,b,c,d){c=c||a;this.vb(a);var e=pe(c);qe(this)[a]=M(b,e,function(){re(this,a)},h,this);oe(this)[a]={target:b,key:c};d||re(this,a)};v.kc=y;
je.prototype.k=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new he({maxZoom:d,tileSize:new hd(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.O=$d(function(a){if(a.l<c||d<a.l)return k;var b=1<<a.l,e=-a.y-1;return 0>e||b<=e?k:new S(a.l,yc(a.x,b),e)},Xd(xa(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.rc);return function(a){return a===k?h:c.replace("{quadkey}",kd(a))}})));var f=Ed(Cd("EPSG:4326"),this.f);this.ta=
xa(b.imageryProviders,function(a){var b=a.attribution,c={};I(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new md(a[1],a[0],a[3],a[2])).transform(f),g,j;for(g=b;g<=d;++g)j=g.toString(),b=Sd(e,a,e.a[g]),j in c?c[j].push(b):c[j]=[b]});return new na(b,c)});this.d=i;O(this,"load")};je.prototype.b=p("d");function V(a){L.call(this);z(a)&&this.Ka(a)}G(V,pd);var ke={},le={},me={};function ne(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function oe(a){return a.ol_accessors_||(a.ol_accessors_={})}function pe(a){return ke[a]||(ke[a]=a.toLowerCase()+"_changed")}function qe(a){return a.ol_bindings_||(a.ol_bindings_={})}v=V.prototype;v.ic=function(a,b,c,d){c=c||a;this.vb(a);var e=pe(c);qe(this)[a]=M(b,e,function(){re(this,a)},h,this);oe(this)[a]={target:b,key:c};d||re(this,a)};v.lc=y;
v.u=function(a){var b=oe(this);if(a in b){var b=b[a],a=b.target,b=b.key,c=le[b]||(le[b]="get"+ne(b));return a[c]?a[c]():a.u(b)}return this[a]};v.Nb=function(a){var b=oe(this);a in b?(a=b[a],a.target.Nb(a.key)):re(this,a)};function re(a,b){var c=pe(b);O(a,c);O(a,"changed")}v.set=function(a,b){var c=oe(this);if(a in c){var d=c[a],c=d.target,d=d.key,e=me[d]||(me[d]="set"+ne(d));if(c[e])c[e](b);else c.set(d,b)}else this[a]=b,re(this,a)};
v.Zb=function(a){Na(a,function(a,c){var d=me[c]||(me[c]="set"+ne(c));if(this[d])this[d](a);else this.set(c,a)},this)};v.Ka=V.prototype.Zb;v.vb=function(a){var b=qe(this),c=b[a];c&&(delete b[a],N(c),b=this.u(a),delete oe(this)[a],this[a]=b)};v.Xc=function(){var a=qe(this);I(Pa(a),function(a){this.vb(a)},this)};function se(a,b,c,d,e){bc.call(this,a,e);this.a=b;this.index=c;this.c=d}G(se,bc);function W(a){V.call(this);this.a=a||[];te(this)}G(W,V);v=W.prototype;v.clear=function(){for(;this.length;)this.Ob()};v.forEach=function(a,b){I(this.a,a,b)};v.sc=p("a");v.tc=function(a){return this.a[a]};v.Cb=function(){return this.u("length")};v.Ca=function(a,b){Ja(this.a,a,0,b);te(this);O(this,new se("add",b,h,h,this));O(this,new se("insert_at",b,a,h,this))};v.Ob=function(){return this.Vb(this.Cb()-1)};
v.push=function(a){var b=this.a.length;this.Ca(b,a);return b};v.Vb=function(a){var b=this.a[a];H.splice.call(this.a,a,1);te(this);O(this,new se("remove",b,h,h,this));O(this,new se("remove_at",h,a,b,this));return b};v.Rc=function(a,b){var c=this.length;if(a<c)c=this.a[a],this.a[a]=b,O(this,new se("set_at",b,a,c,this)),O(this,new se("remove",c,h,h,this)),O(this,new se("add",b,h,h,this));else{for(;c<a;++c)this.Ca(c,h);this.Ca(a,b)}};function te(a){a.set("length",a.a.length)};function ue(a,b,c){L.call(this);this.g=a;this.f=c;this.b=b||window;this.c=ka(this.d,this)}G(ue,L);ue.prototype.a=k;ue.prototype.e=m;function ve(a){if(a.a!=k){var b=we(a),c=xe(a);b&&!c&&a.b.mozRequestAnimationFrame?N(a.a):b&&c?c.call(a.b,a.a):a.b.clearTimeout(a.a)}a.a=k}ue.prototype.d=function(){this.e&&this.a&&N(this.a);this.a=k;this.g.call(this.f,ma())};ue.prototype.q=function(){ve(this);ue.p.q.call(this)};
function we(a){a=a.b;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||k}function xe(a){a=a.b;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||k};function ye(a){L.call(this);this.ea=a||window;this.Ia=M(this.ea,"resize",this.Lc,m,this);this.ca=Gc(this.ea||window);if(K&&bb||hb&&this.ea.self!=this.ea.top)this.Va=window.setInterval(ka(this.xb,this),ze)}G(ye,pd);var ze=500;v=ye.prototype;v.Ia=k;v.ea=k;v.ca=k;v.Va=k;v.q=function(){ye.p.q.call(this);this.Ia&&(N(this.Ia),this.Ia=k);this.Va&&(window.clearInterval(this.Va),this.Va=k);this.ca=this.ea=k};v.Lc=function(){this.xb()};
v.Zb=function(a){Na(a,function(a,c){var d=me[c]||(me[c]="set"+ne(c));if(this[d])this[d](a);else this.set(c,a)},this)};v.Ka=V.prototype.Zb;v.vb=function(a){var b=qe(this),c=b[a];c&&(delete b[a],N(c),b=this.u(a),delete oe(this)[a],this[a]=b)};v.Yc=function(){var a=qe(this);I(Pa(a),function(a){this.vb(a)},this)};function se(a,b,c,d,e){bc.call(this,a,e);this.a=b;this.index=c;this.c=d}G(se,bc);function W(a){V.call(this);this.a=a||[];te(this)}G(W,V);v=W.prototype;v.clear=function(){for(;this.length;)this.Ob()};v.forEach=function(a,b){I(this.a,a,b)};v.tc=p("a");v.uc=function(a){return this.a[a]};v.Cb=function(){return this.u("length")};v.Ca=function(a,b){Ja(this.a,a,0,b);te(this);O(this,new se("add",b,h,h,this));O(this,new se("insert_at",b,a,h,this))};v.Ob=function(){return this.Vb(this.Cb()-1)};
v.push=function(a){var b=this.a.length;this.Ca(b,a);return b};v.Vb=function(a){var b=this.a[a];H.splice.call(this.a,a,1);te(this);O(this,new se("remove",b,h,h,this));O(this,new se("remove_at",h,a,b,this));return b};v.Sc=function(a,b){var c=this.length;if(a<c)c=this.a[a],this.a[a]=b,O(this,new se("set_at",b,a,c,this)),O(this,new se("remove",c,h,h,this)),O(this,new se("add",b,h,h,this));else{for(;c<a;++c)this.Ca(c,h);this.Ca(a,b)}};function te(a){a.set("length",a.a.length)};function ue(a,b,c){L.call(this);this.g=a;this.f=c;this.b=b||window;this.c=ka(this.d,this)}G(ue,L);ue.prototype.a=k;ue.prototype.e=m;function ve(a){if(a.a!=k){var b=we(a),c=xe(a);b&&!c&&a.b.mozRequestAnimationFrame?N(a.a):b&&c?c.call(a.b,a.a):a.b.clearTimeout(a.a)}a.a=k}ue.prototype.d=function(){this.e&&this.a&&N(this.a);this.a=k;this.g.call(this.f,ma())};ue.prototype.q=function(){ve(this);ue.p.q.call(this)};
function we(a){a=a.b;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||k}function xe(a){a=a.b;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||k};function ye(a){L.call(this);this.ea=a||window;this.Ia=M(this.ea,"resize",this.Mc,m,this);this.ca=Gc(this.ea||window);if(K&&bb||hb&&this.ea.self!=this.ea.top)this.Va=window.setInterval(ka(this.xb,this),ze)}G(ye,pd);var ze=500;v=ye.prototype;v.Ia=k;v.ea=k;v.ca=k;v.Va=k;v.q=function(){ye.p.q.call(this);this.Ia&&(N(this.Ia),this.Ia=k);this.Va&&(window.clearInterval(this.Va),this.Va=k);this.ca=this.ea=k};v.Mc=function(){this.xb()};
v.xb=function(){var a=Gc(this.ea||window);if(!(a==this.ca||(!a||!this.ca?0:a.width==this.ca.width&&a.height==this.ca.height)))this.ca=a,O(this,"resize")};function Ae(a,b,c,d,e){if(!J&&(!K||!ub("525")))return i;if(ab&&e)return Be(a);if(e&&!d||!c&&(17==b||18==b)||J&&d&&b==a)return m;switch(a){case 13:return!(J&&wb(9));case 27:return!K}return Be(a)}function Be(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||K&&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 m}}
function Ce(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function De(a,b){L.call(this);a&&(this.Fa&&Ee(this),this.oa=a,this.Ea=M(this.oa,"keypress",this,b),this.nb=M(this.oa,"keydown",this.a,b,this),this.Fa=M(this.oa,"keyup",this.b,b,this))}G(De,pd);v=De.prototype;v.oa=k;v.Ea=k;v.nb=k;v.Fa=k;v.T=-1;v.S=-1;v.Wa=m;
var Fe={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},Ge={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},He=J||K&&ub("525"),Ie=ab&&ib;
@@ -70,7 +70,7 @@ function Qe(a,b){var c,d,e=ib&&(ab||lb)&&ub("1.9");b instanceof zc?(c=b.x,d=b.y)
function Te(a){if(J&&!wb(8))return a.offsetParent;for(var b=Dc(a),c=Pe(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Pe(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 Ue(a,b){var c=Ve(a),d=Ve(b);return new zc(c.x-d.x,c.y-d.y)}
function Ve(a){var b=new zc;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Se(a);b.x=c.left;b.y=c.top}else{c=Nc(Bc(a));var d,e=Dc(a),f=Pe(a,"position"),g=ib&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),j=new zc(0,0),s;d=e?Dc(e):document;if(s=J)if(s=!wb(9))Bc(d),s=m;s=s?d.body:d.documentElement;if(a!=s)if(a.getBoundingClientRect)d=Se(a),e=Nc(Bc(e)),j.x=d.left+e.x,j.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a),
e=e.getBoxObjectFor(s),j.x=d.screenX-e.screenX,j.y=d.screenY-e.screenY;else{g=a;do{j.x+=g.offsetLeft;j.y+=g.offsetTop;g!=a&&(j.x+=g.clientLeft||0,j.y+=g.clientTop||0);if(K&&"fixed"==Pe(g,"position")){j.x+=e.body.scrollLeft;j.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(hb||K&&"absolute"==f)j.y-=e.body.offsetTop;for(g=a;(g=Te(g))&&g!=e.body&&g!=s;)if(j.x-=g.scrollLeft,!hb||"TR"!=g.tagName)j.y-=g.scrollTop}b.x=j.x-c.x;b.y=j.y-c.y}if(ib&&!ub(12)){var q;J?q="-ms-transform":K?q="-webkit-transform":
hb?q="-o-transform":ib&&(q="-moz-transform");var n;q&&(n=Pe(a,q));n||(n=Pe(a,"transform"));n?(a=n.match(We),a=!a?new zc(0,0):new zc(parseFloat(a[1]),parseFloat(a[2]))):a=new zc(0,0);b=new zc(b.x+a.x,b.y+a.y)}}else q=ea(a.uc),n=a,a.targetTouches?n=a.targetTouches[0]:q&&a.F.targetTouches&&(n=a.F.targetTouches[0]),b.x=n.clientX,b.y=n.clientY;return b}function Re(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Xe(a,b){a.style.display=b?"":"none"}
hb?q="-o-transform":ib&&(q="-moz-transform");var n;q&&(n=Pe(a,q));n||(n=Pe(a,"transform"));n?(a=n.match(We),a=!a?new zc(0,0):new zc(parseFloat(a[1]),parseFloat(a[2]))):a=new zc(0,0);b=new zc(b.x+a.x,b.y+a.y)}}else q=ea(a.vc),n=a,a.targetTouches?n=a.targetTouches[0]:q&&a.F.targetTouches&&(n=a.F.targetTouches[0]),b.x=n.clientX,b.y=n.clientY;return b}function Re(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Xe(a,b){a.style.display=b?"":"none"}
function Ye(a,b){Bc(Dc(a));if(J&&!ub("8")){var c=a.style,d;if(J){d=Ze(a,Oe(a,"paddingLeft"));var e=Ze(a,Oe(a,"paddingRight")),f=Ze(a,Oe(a,"paddingTop")),g=Ze(a,Oe(a,"paddingBottom"));d=new Ke(f,e,g,d)}else d=Ne(a,"paddingLeft"),e=Ne(a,"paddingRight"),f=Ne(a,"paddingTop"),g=Ne(a,"paddingBottom"),d=new Ke(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(J)var e=$e(a,"borderLeft"),f=$e(a,"borderRight"),g=$e(a,"borderTop"),j=$e(a,"borderBottom"),e=new Ke(g,f,j,e);else e=Ne(a,"borderLeftWidth"),
f=Ne(a,"borderRightWidth"),g=Ne(a,"borderTopWidth"),j=Ne(a,"borderBottomWidth"),e=new Ke(parseFloat(g),parseFloat(f),parseFloat(j),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,ib?c.MozBoxSizing="border-box":K?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 Ze(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 af={thin:2,medium:4,thick:6};function $e(a,b){if("none"==Oe(a,b+"Style"))return 0;var c=Oe(a,b+"Width");return c in af?af[c]:Ze(a,c)}var We=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function bf(a){L.call(this);this.a=a;a=fa(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:k;this.e=!!a&&"rtl"==Pe(a,"direction");this.b=M(this.a,ib?"DOMMouseScroll":"mousewheel",this)}G(bf,pd);
@@ -85,19 +85,19 @@ X.prototype.getHue=X.prototype.d;X.prototype.e=function(){return this.u("opacity
X.prototype.o=function(a){a=Math.max(0,a);a!=this.c()&&this.set("contrast",a)};X.prototype.setContrast=X.prototype.o;X.prototype.r=function(a){a!=this.d()&&this.set("hue",a)};X.prototype.setHue=X.prototype.r;X.prototype.w=function(a){a=xc(a,0,1);a!=this.e()&&this.set("opacity",a)};X.prototype.setOpacity=X.prototype.w;X.prototype.B=function(a){a=Math.max(0,a);a!=this.f()&&this.set("saturation",a)};X.prototype.setSaturation=X.prototype.B;
X.prototype.C=function(a){a=!!a;a!=this.a()&&this.set("visible",a)};X.prototype.setVisible=X.prototype.C;function wf(a,b,c){bc.call(this,a);this.map=b;this.Aa=m;this.f=z(c)?c:k}G(wf,bc);wf.prototype.v=function(){wf.p.v.call(this);this.Aa=i};function xf(a,b){zc.call(this,a,b)}G(xf,zc);function yf(a,b,c){wf.call(this,a,b);this.a=c;this.e=this.d=k}G(yf,wf);yf.prototype.c=function(){this.d===k&&(this.d=zf(this.map,Af(this)));return this.d};function Af(a){if(a.e===k){var b=Ue(a.a,a.map.b);a.e=new xf(b.x,b.y)}return a.e}function Bf(a){this.a=a;this.d=k;this.c=m;this.f=0;this.e=this.b=k;a=this.a.b;ef||M(a,["click","dblclick"],this.Xa,m,this);M(a,ef?"touchstart":"mousedown",this.Fb,m,this)}G(Bf,pd);
function Cf(a){if(ef){var b=a.F;b.touches&&b.touches.length&&(b=b.touches[0],a.clientX=b.clientX,a.clientY=b.clientY)}}v=Bf.prototype;v.Xa=function(a){if(!this.c){var b;"dblclick"!==a.type&&(b=new yf(Df,this.a,a),O(this,b));this.f||(b=new yf(Ef,this.a,a),O(this,b))}};v.Gb=function(a){if(this.d){if(!this.c){var b=(new Date).getTime();this.f=!this.f||250<b-this.f?b:0;ef&&this.Xa(this.e)}this.e=k;I(this.b,N);this.d=this.b=k;this.c&&O(this,new yf(Ff,this.a,a))}};
v.Fb=function(a){this.d||(Cf(a),this.e=a,this.d={clientX:a.clientX,clientY:a.clientY},this.c=m,this.b=[M(document,ef?"touchmove":"mousemove",this.rc,m,this),M(document,ef?"touchend":"mouseup",this.Gb,m,this)],"mousedown"===a.type&&a.v())};v.rc=function(a){var b;this.c||(this.c=i,b=new yf(Gf,this.a,this.e),O(this,b));Cf(a);this.d={clientX:a.clientX,clientY:a.clientY};a.v();b=new yf(Hf,this.a,a);O(this,b)};
v.q=function(){var a=this.a.b;qc(a,ef?"touchstart":"mousedown",this.Fb,m,this);qc(a,ef?"touchend":"mouseup",this.Gb,m,this);qc(a,"click",this.Xa,m,this);this.b!==k&&(I(this.b,N),this.b=k);Bf.p.q.call(this)};var Df="click",Ef="dblclick",Gf="dragstart",Hf="drag",Ff="dragend";function If(a,b){if(z(a))return a+b};function Jf(){this.a=[0,0]}G(Jf,V);function Kf(a){this.resolution=a;this.rotation=If};function Lf(a){return 3*a*a-2*a*a*a};function Mf(a){return a}function Nf(a){return 0.5>a?Lf(2*a):1-Lf(2*(a-0.5))};var Of={lc:function(a,b,c,d){var e=z(c)?c:Date.now(),f=z(b)?b:1E3,g=z(d)?d:Nf;return function(b,c){if(c.time<e)return c.D=i,c.A[0]+=1,i;if(c.time<e+f){var d=g((c.time-e)/f),n=a-c.z.resolution;c.D=i;c.z.resolution+=d*n;c.A[0]+=1;return i}return m}},nc:function(a,b,c,d){var e=z(c)?c:Date.now(),f=a.x,g=a.y,j=z(b)?b:1E3,s=z(d)?d:Lf;return function(a,b){if(b.time<e)return b.D=i,b.A[0]+=1,i;if(b.time<e+j){var c=1-s((b.time-e)/j),d=f-b.z.center.x,w=g-b.z.center.y;b.D=i;b.z.center.x+=c*d;b.z.center.y+=c*
w;b.A[0]+=1;return i}return m}},oc:function(a,b,c,d){var e=z(c)?c:Date.now(),f=z(a)?a:1E3,g=2*(z(b)?b:1)*Math.PI,j=z(d)?d:Lf;return function(a,b){if(b.time<e)return b.D=i,b.A[0]+=1,i;if(b.time<e+f){var c=j((b.time-e)/f);b.D=i;b.z.rotation+=c*g;b.A[0]+=1;return i}return m}},pc:function(a,b,c,d){var e=z(c)?c:Date.now(),f=z(b)?b:1E3,g=z(d)?d:Mf;return function(b,c){if(c.time<e)return c.D=i,c.A[0]+=1,i;if(c.time<e+f){var d=1-g((c.time-e)/f),n=a-c.z.resolution;c.D=i;c.z.resolution+=d*n;c.A[0]+=1;return i}return m}}};function Z(a){this.a=[0,0];var a=a||{},b={};b.center=z(a.center)?a.center:k;b.projection=Bd(a.projection);if(z(a.resolution))b.resolution=a.resolution;else if(z(a.zoom)){var c=b.projection.K(),c=Math.max(c.j-c.h,c.n-c.i);b.resolution=c/(256<<a.zoom)}b.rotation=a.rotation;this.Ka(b);if(z(a.resolutions))var d=a.resolutions,a=function(a,b){if(z(a)){var c=Pd(d,a),c=xc(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):
v.Fb=function(a){this.d||(Cf(a),this.e=a,this.d={clientX:a.clientX,clientY:a.clientY},this.c=m,this.b=[M(document,ef?"touchmove":"mousemove",this.sc,m,this),M(document,ef?"touchend":"mouseup",this.Gb,m,this)],"mousedown"===a.type&&a.v())};v.sc=function(a){var b;this.c||(this.c=i,b=new yf(Gf,this.a,this.e),O(this,b));Cf(a);this.d={clientX:a.clientX,clientY:a.clientY};a.v();b=new yf(Hf,this.a,a);O(this,b)};
v.q=function(){var a=this.a.b;qc(a,ef?"touchstart":"mousedown",this.Fb,m,this);qc(a,ef?"touchend":"mouseup",this.Gb,m,this);qc(a,"click",this.Xa,m,this);this.b!==k&&(I(this.b,N),this.b=k);Bf.p.q.call(this)};var Df="click",Ef="dblclick",Gf="dragstart",Hf="drag",Ff="dragend";function If(a,b){if(z(a))return a+b};function Jf(){this.a=[0,0]}G(Jf,V);function Kf(a){this.resolution=a;this.rotation=If};function Lf(a){return 3*a*a-2*a*a*a};function Mf(a){return a}function Nf(a){return 0.5>a?Lf(2*a):1-Lf(2*(a-0.5))};var Of={mc:function(a,b,c,d){var e=z(c)?c:Date.now(),f=z(b)?b:1E3,g=z(d)?d:Nf;return function(b,c){if(c.time<e)return c.D=i,c.A[0]+=1,i;if(c.time<e+f){var d=g((c.time-e)/f),n=a-c.z.resolution;c.D=i;c.z.resolution+=d*n;c.A[0]+=1;return i}return m}},oc:function(a,b,c,d){var e=z(c)?c:Date.now(),f=a.x,g=a.y,j=z(b)?b:1E3,s=z(d)?d:Lf;return function(a,b){if(b.time<e)return b.D=i,b.A[0]+=1,i;if(b.time<e+j){var c=1-s((b.time-e)/j),d=f-b.z.center.x,w=g-b.z.center.y;b.D=i;b.z.center.x+=c*d;b.z.center.y+=c*
w;b.A[0]+=1;return i}return m}},pc:function(a,b,c,d){var e=z(c)?c:Date.now(),f=z(a)?a:1E3,g=2*(z(b)?b:1)*Math.PI,j=z(d)?d:Lf;return function(a,b){if(b.time<e)return b.D=i,b.A[0]+=1,i;if(b.time<e+f){var c=j((b.time-e)/f);b.D=i;b.z.rotation+=c*g;b.A[0]+=1;return i}return m}},qc:function(a,b,c,d){var e=z(c)?c:Date.now(),f=z(b)?b:1E3,g=z(d)?d:Mf;return function(b,c){if(c.time<e)return c.D=i,c.A[0]+=1,i;if(c.time<e+f){var d=1-g((c.time-e)/f),n=a-c.z.resolution;c.D=i;c.z.resolution+=d*n;c.A[0]+=1;return i}return m}}};function Z(a){this.a=[0,0];var a=a||{},b={};b.center=z(a.center)?a.center:k;b.projection=Bd(a.projection);if(z(a.resolution))b.resolution=a.resolution;else if(z(a.zoom)){var c=b.projection.K(),c=Math.max(c.j-c.h,c.n-c.i);b.resolution=c/(256<<a.zoom)}b.rotation=a.rotation;this.Ka(b);if(z(a.resolutions))var d=a.resolutions,a=function(a,b){if(z(a)){var c=Pd(d,a),c=xc(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=Bd(a.projection).K(),b=Math.max(a.j-a.h,a.n-a.i)/256,c=116,a=Math.exp(Math.log(2)/4));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.d=new Kf(a)}G(Z,Jf);Z.prototype.aa=function(){return this.u("center")};Z.prototype.getCenter=Z.prototype.aa;Z.prototype.K=function(a){var b=this.aa(),c=this.U();return new md(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)};
Z.prototype.Pb=function(){return this.u("projection")};Z.prototype.getProjection=Z.prototype.Pb;Z.prototype.U=function(){return this.u("resolution")};Z.prototype.getResolution=Z.prototype.U;Z.prototype.xa=function(){return this.u("rotation")||0};Z.prototype.getRotation=Z.prototype.xa;Z.prototype.Da=function(){return this.aa()!=k&&z(this.U())};Z.prototype.b=function(a){this.set("center",a)};Z.prototype.setCenter=Z.prototype.b;Z.prototype.f=function(a){this.set("projection",a)};
Z.prototype.setProjection=Z.prototype.f;Z.prototype.c=function(a){this.set("resolution",a)};Z.prototype.setResolution=Z.prototype.c;Z.prototype.e=function(a){this.set("rotation",a)};Z.prototype.setRotation=Z.prototype.e;Z.prototype.rotate=function(a,b,c){b=this.d.rotation(b,c);this.e(b)};
Z.prototype.zoom=function(a,b,c,d){var e=this.U();z(e)&&z(d)&&(Pf(a),a.J(Of.pc(e,d)));var f=this.d.resolution(e,b);if(f!=k&&c!=k){var b=this.aa(),d=this.U(),g=new R(c.x-f*(c.x-b.x)/d,c.y-f*(c.y-b.y)/d);Qf(a,function(){this.b(g);this.c(f)},this)}else this.c(f)};function Rf(a){L.call(this);this.element=z(a.element)?a.element:k;this.k=a.target;this.b=k;z(a.map)&&this.a(a.map)}G(Rf,L);Rf.prototype.q=function(){Mc(this.element);Rf.p.q.call(this)};Rf.prototype.a=function(a){this.b===k||Mc(this.element);this.b=a;this.b!==k&&(z(this.k)?this.k:a.o).appendChild(this.element)};function Sf(a){this.g=Jc("UL");var b=Hc("DIV",{"class":"ol-attribution"},this.g);Rf.call(this,{element:b,map:a.map,target:a.target});this.f=i;this.c={};this.d={};this.e=k}G(Sf,Rf);Sf.prototype.o=function(a){a=a.f;a===k?Tf(this,k):Tf(this,a.Ra)};Sf.prototype.a=function(a){this.e!==k&&(I(this.e,N),this.e=k);Sf.p.a.call(this,a);a!==k&&(this.e=[M(a,"postrender",this.o,m,this)])};
Z.prototype.zoom=function(a,b,c,d){var e=this.U();z(e)&&z(d)&&(Pf(a),a.J(Of.qc(e,d)));var f=this.d.resolution(e,b);if(f!=k&&c!=k){var b=this.aa(),d=this.U(),g=new R(c.x-f*(c.x-b.x)/d,c.y-f*(c.y-b.y)/d);Qf(a,function(){this.b(g);this.c(f)},this)}else this.c(f)};function Rf(a){L.call(this);this.element=z(a.element)?a.element:k;this.k=a.target;this.b=k;z(a.map)&&this.a(a.map)}G(Rf,L);Rf.prototype.q=function(){Mc(this.element);Rf.p.q.call(this)};Rf.prototype.a=function(a){this.b===k||Mc(this.element);this.b=a;this.b!==k&&(z(this.k)?this.k:a.o).appendChild(this.element)};function Sf(a){this.g=Jc("UL");var b=Hc("DIV",{"class":"ol-attribution"},this.g);Rf.call(this,{element:b,map:a.map,target:a.target});this.f=i;this.c={};this.d={};this.e=k}G(Sf,Rf);Sf.prototype.o=function(a){a=a.f;a===k?Tf(this,k):Tf(this,a.Ra)};Sf.prototype.a=function(a){this.e!==k&&(I(this.e,N),this.e=k);Sf.p.a.call(this,a);a!==k&&(this.e=[M(a,"postrender",this.o,m,this)])};
function Tf(a,b){if(b===k)a.f&&(Xe(a.element,m),a.f=m);else{var c={},d={},e=a.b.u(Uf);z(e)&&e.forEach(function(a){a=a.X();a instanceof fe&&(d[D(a).toString()]=a);a=a.ta;if(a!==k){var b,e;for(e=0;e<a.length;++e)b=a[e],r=D(b).toString(),c[r]=i}});var e={},f,g,j,s,q,n;for(n in b)if(f=d[n],q=f.ta,q!==k){g=b[n];for(f=0;f<q.length;++f)if(j=q[f],s=D(j).toString(),!(s in e)){var l;a:if(j.a===k)l=i;else{var u=l=h,w=h;for(w in g)if(w in j.a){u=g[w];for(l=0;l<j.a[w].length;++l)if(jd(j.a[w][l],u)){l=i;break a}}l=
m}l&&(e[s]=j)}}n=xa(Pa(e),Number);La(n);var r;for(f=0;f<n.length;++f)r=n[f].toString(),r in a.c?a.d[r]||(Xe(a.c[r],i),a.d[r]=i):(g=Jc("LI"),g.innerHTML=e[r].b,a.g.appendChild(g),a.c[r]=g,a.d[r]=i),delete c[r];for(r in c)Mc(a.c[r]),delete a.c[r],delete a.d[r];e=0!=n.length;a.f!=e&&(Xe(a.element,e),a.f=e)}};function Vf(a){var b=ef?"touchend":"click",c=Hc("A",{href:"#zoomIn","class":"ol-zoom-in"},"+");M(c,b,this.d,m,this);var d=Hc("A",{href:"#zoomOut","class":"ol-zoom-out"},"\u2212");M(d,b,this.e,m,this);b=Hc("DIV","ol-zoom ol-unselectable",c,d);Rf.call(this,{element:b,map:a.map,target:a.target});this.c=z(a.delta)?a.delta:1}G(Vf,Rf);Vf.prototype.d=function(a){a.v();a=this.b;Pf(a);a.a().zoom(a,this.c,h,250)};Vf.prototype.e=function(a){a.v();a=this.b;Pf(a);a.a().zoom(a,-this.c,h,250)};function Wf(){};function Xf(a){this.a=a}G(Xf,Wf);Xf.prototype.b=function(a){var b=a.a;if(a.type==Ef&&(ef||hc(a.a))){var c=a.map,d=a.c(),e=a.a.Z?-this.a:this.a;c.a().zoom(c,e,d);a.v();b.v()}};function Yf(a){return a.M&&!a.Ma&&!a.Z}function Zf(a){return!a.M&&!a.Ma&&!a.Z}function $f(a){return!a.M&&!a.Ma&&a.Z};function ag(){this.f=m;this.C=this.B=this.r=this.o=0;this.sa=this.R=k}G(ag,Wf);ag.prototype.g=y;ag.prototype.k=y;ag.prototype.d=be;ag.prototype.b=function(a){var b=a.map;if(b.Da()){var b=b.a(),c=a.a;this.f?a.type==Hf?(this.c=c.clientX-this.o,this.a=c.clientY-this.r,this.g(a)):a.type==Ff&&(this.c=c.clientX-this.o,this.a=c.clientY-this.r,this.k(a),this.f=m):a.type==Gf&&(this.o=c.clientX,this.r=c.clientY,this.a=this.c=0,this.R=b.aa(),this.sa=a.c(),this.d(a)&&(this.f=i,a.v()))}};function bg(a){ag.call(this);this.e=a}G(bg,ag);bg.prototype.g=function(a){var a=a.map,b=a.a(),c=b.U(),d=b.xa(),c=new R(-c*this.c,c*this.a);c.rotate(d);d=new R(this.R.x+c.x,this.R.y+c.y);Pf(a);b.b(d)};bg.prototype.k=function(a){a=a.map;Pf(a);a=a.a();a.a[1]+=-1};bg.prototype.d=function(a){return this.e(a.a)?(a=a.map,Pf(a),a=a.a(),a.a[1]+=1,i):m};function cg(a){ag.call(this);this.w=a;this.e=0}G(cg,ag);cg.prototype.g=function(a){var b=a.map,c=b.e(),a=Af(a),c=Math.atan2(c.height/2-a.y,a.x-c.width/2),a=b.a();Pf(b);a.rotate(b,this.e,-c)};cg.prototype.d=function(a){var b=a.a,c=a.map,d=c.a();return hc(b)&&this.w(b)?(Pf(c),b=c.e(),a=Af(a),a=Math.atan2(b.height/2-a.y,a.x-b.width/2),this.e=(d.xa()||0)+a,i):m};function dg(a){var b=Hc("DIV","ol-dragbox");this.c=k;this.e=a.sa;this.d=k;Rf.call(this,{element:b,map:a.map})}G(dg,Rf);dg.prototype.a=function(a){this.d!==k&&(N(this.d),this.d=k);a!==k&&(this.c=eg(a,this.e),Qe(this.element,this.c),Ye(this.element,new hd(0,0)),this.d=M(a,Hf,this.f,m,this));dg.p.a.call(this,a)};dg.prototype.f=function(a){var b=this.b,a=a.c(),b=eg(b,a);Qe(this.element,new xf(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));Ye(this.element,new hd(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function fg(a){ag.call(this);this.w=a;this.e=k}G(fg,ag);fg.prototype.k=function(a){this.e.a(k);this.e=k;if(64<=this.c*this.c+this.a*this.a){var b=a.map,c=nd(this.sa,a.c());Qf(b,function(){var a=b.a(),e=b.e();a.b(new R((c.h+c.j)/2,(c.i+c.n)/2));e=Math.max((c.j-c.h)/e.width,(c.n-c.i)/e.height);e=a.d.resolution(e,0);a.c(e);a.e(0)})}};fg.prototype.d=function(a){var b=a.a;return hc(b)&&this.w(b)?(this.e=new dg({map:a.map,sa:this.sa}),i):m};function gg(a){this.a=a}G(gg,Wf);gg.prototype.b=function(a){if("key"==a.type){var b=a.a,c=b.ga;if(40==c||37==c||39==c||38==c){var d=a.map.a(),e=d.U()*this.a,c=40==c?new R(0,-e):37==c?new R(-e,0):39==c?new R(e,0):new R(0,e),e=d.aa();d.b(new R(e.x+c.x,e.y+c.y));b.v();a.v()}}};function hg(){}G(hg,Wf);hg.prototype.b=function(a){if("key"==a.type){var b=a.a,c=b.ya;if(43==c||45==c){var d=a.map,c=43==c?4:-4;Pf(d);d.a().zoom(d,c,h,100);b.v();a.v()}}};function ig(a){this.a=a}G(ig,Wf);ig.prototype.b=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a,d=a.c(),e=0>c.a?this.a:-this.a,f=b.a();Pf(b);f.zoom(b,e,d);a.v();c.v()}};function jg(a,b){V.call(this);this.o=a;this.a=b;M(this.a,pe("brightness"),this.bb,m,this);M(this.a,pe("contrast"),this.cb,m,this);M(this.a,pe("hue"),this.eb,m,this);M(this.a,"load",this.fb,m,this);M(this.a,pe("opacity"),this.gb,m,this);M(this.a,pe("saturation"),this.hb,m,this);M(this.a,pe("visible"),this.ib,m,this)}G(jg,V);v=jg.prototype;v.na=p("o");v.bb=y;v.cb=y;v.eb=y;v.fb=y;v.gb=y;v.hb=y;v.ib=y;
function kg(a,b,c,d){var b=D(b).toString(),e=c.toString();b in a?c in a[b]?(a=a[b][e],a.h=Math.min(a.h,d.h),a.i=Math.min(a.i,d.i),a.j=Math.max(a.j,d.j),a.n=Math.max(a.n,d.n)):a[b][e]=d:(a[b]={},a[b][e]=d)};function lg(a,b){L.call(this);this.ha=a;this.map=b;this.c={};this.f=this.d=k;this.C=[M(b,pe(mg),this.ab,m,this),M(b,pe(Uf),this.Ic,m,this),M(b,pe(ng),this.jb,m,this),M(b,pe(og),this.kb,m,this)]}G(lg,L);v=lg.prototype;v.fa=function(a){var b=this.ua(a);this.sb(a,b)};
function kg(a,b,c,d){var b=D(b).toString(),e=c.toString();b in a?c in a[b]?(a=a[b][e],a.h=Math.min(a.h,d.h),a.i=Math.min(a.i,d.i),a.j=Math.max(a.j,d.j),a.n=Math.max(a.n,d.n)):a[b][e]=d:(a[b]={},a[b][e]=d)};function lg(a,b){L.call(this);this.ha=a;this.map=b;this.c={};this.f=this.d=k;this.C=[M(b,pe(mg),this.ab,m,this),M(b,pe(Uf),this.Jc,m,this),M(b,pe(ng),this.jb,m,this),M(b,pe(og),this.kb,m,this)]}G(lg,L);v=lg.prototype;v.fa=function(a){var b=this.ua(a);this.sb(a,b)};
function pg(a){var b=a.z,c=a.Ab;lf(c);of(c,a.size.width/2,a.size.height/2);pf(c,1/b.resolution,-1/b.resolution);qf(c,-b.rotation);of(c,-b.center.x,-b.center.y);var a=a.Tb,b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],j=c[5],s=c[6],q=c[7],n=c[8],l=c[9],u=c[10],w=c[11],r=c[12],t=c[13],B=c[14],c=c[15],E=b*j-d*g,A=b*s-e*g,P=b*q-f*g,Y=d*s-e*j,T=d*q-f*j,za=e*q-f*s,Aa=n*t-l*r,Ba=n*B-u*r,Ca=n*c-w*r,Da=l*B-u*t,Ea=l*c-w*t,Fa=u*c-w*B,Q=E*Fa-A*Ea+P*Da+Y*Ca-T*Ba+za*Aa;0!=Q&&(Q=1/Q,a[0]=(j*Fa-s*Ea+q*Da)*Q,a[1]=(-d*Fa+e*Ea-
f*Da)*Q,a[2]=(t*za-B*T+c*Y)*Q,a[3]=(-l*za+u*T-w*Y)*Q,a[4]=(-g*Fa+s*Ca-q*Ba)*Q,a[5]=(b*Fa-e*Ca+f*Ba)*Q,a[6]=(-r*za+B*P-c*A)*Q,a[7]=(n*za-u*P+w*A)*Q,a[8]=(g*Ea-j*Ca+q*Aa)*Q,a[9]=(-b*Ea+d*Ca-f*Aa)*Q,a[10]=(r*T-t*P+c*E)*Q,a[11]=(-n*T+l*P-w*E)*Q,a[12]=(-g*Da+j*Ba-s*Aa)*Q,a[13]=(b*Da-d*Ba+e*Aa)*Q,a[14]=(-r*Y+t*A-B*E)*Q,a[15]=(n*Y-l*A+u*E)*Q)}v.ua=de;v.q=function(){Na(this.c,function(a){ac(a)});I(this.C,N);this.f===k||N(this.f);this.d===k||I(this.d,N);lg.p.q.call(this)};
function qg(a,b){var c=D(b);return a.c[c]}v.ab=y;v.Hc=function(a){this.fa(a.a)};v.Ic=function(){$b(Oa(this.c));this.c={};this.d!==k&&(I(this.d,N),this.d=k);var a=this.map.u(Uf);a!=k&&(a.forEach(this.fa,this),this.d=[M(a,"add",this.Hc,m,this),M(a,"remove",this.Jc,m,this)])};v.Jc=function(a){this.qb(a.a)};v.lb=function(){rg(this.map)};v.jb=function(){rg(this.map)};v.kb=function(){this.f!==k&&(N(this.f),this.f=k);var a=this.map.a();a!=k&&(this.f=M(a,"changed",this.lb,m,this));rg(this.map)};v.qb=function(a){ac(this.rb(a))};
function qg(a,b){var c=D(b);return a.c[c]}v.ab=y;v.Ic=function(a){this.fa(a.a)};v.Jc=function(){$b(Oa(this.c));this.c={};this.d!==k&&(I(this.d,N),this.d=k);var a=this.map.u(Uf);a!=k&&(a.forEach(this.fa,this),this.d=[M(a,"add",this.Ic,m,this),M(a,"remove",this.Kc,m,this)])};v.Kc=function(a){this.qb(a.a)};v.lb=function(){rg(this.map)};v.jb=function(){rg(this.map)};v.kb=function(){this.f!==k&&(N(this.f),this.f=k);var a=this.map.a();a!=k&&(this.f=M(a,"changed",this.lb,m,this));rg(this.map)};v.qb=function(a){ac(this.rb(a))};
v.rb=function(a){a=D(a);if(a in this.c){var b=this.c[a];delete this.c[a];return b}return k};v.L=y;v.sb=function(a,b){var c=D(a);this.c[c]=b};function sg(){if(!("HTMLCanvasElement"in x))return m;try{return Jc("CANVAS").getContext("2d")!==k}catch(a){return m}};function tg(a){X.call(this,a)}G(tg,X);function ug(a,b){jg.call(this,a,b)}G(ug,jg);function vg(a,b){jg.call(this,a,b);this.e=this.b=this.c=k;this.N=jf()}G(vg,ug);vg.prototype.P=p("c");
vg.prototype.L=function(a){function b(a,b){var c=i,e,f,g,j;for(g=b.h;g<=b.j;++g)for(j=b.i;j<=b.n;++j){e=new S(a,g,j);f=e.toString();if(u[a]&&u[a][f])return;e=d.a(e);e!==k&&2==e.a?(u[a]||(u[a]={}),u[a][f]=e):c=m}return c}var c=a.z,d=this.a.X(),e=d.tileGrid,f=e.b,g=Pd(e.a,c.resolution),j=e.a[g],s=Sd(e,a.extent,j),q=new hd(f.width*s.b(),f.height*s.a()),n,l;this.c===k?(n=Jc("CANVAS"),n.width=q.width,n.height=q.height,l=n.getContext("2d"),this.c=n,this.b=q,this.e=l):(n=this.c,l=this.e,this.b.width==q.width&&
this.b.height==q.height||(n.width=q.width,n.height=q.height,this.b=q));l.clearRect(0,0,q.width,q.height);var u={};u[g]={};var q=i,w,r,t,B;for(t=s.h;t<=s.j;++t)for(B=s.i;B<=s.n;++B)if(w=new S(g,t,B),n=d.a(w),n!==k){r=n.a;if(0==r)q=Vd(e,w),a.tb.b(n,q,j);else if(2==r){u[g][w.toString()]=n;continue}else if(3==r)continue;q=m;e.c(w,b)}t=xa(Pa(u),Number);La(t);w=od(Rd(e,new S(g,s.h,s.n)));var E,A,P;for(B=0;B<t.length;++B)if(n=t[B],r=u[n],n==g)for(A in r)n=r[A],l.drawImage(n.P(),f.width*(n.da.x-s.h),f.height*
@@ -117,49 +117,49 @@ v.hb=function(){var a=this.a.f();kf(this.ha,0.213+0.787*a,0.213-0.213*a,0.213-0.
function Mg(a,b){Hg.call(this,a,b);this.Qa=Kg.wa();this.Ta=Lg.wa();this.e=this.g=this.f=this.t=k;this.k=h;this.d=jf();this.r=this.b=k}G(Mg,Hg);Mg.prototype.q=function(){var a=this.na().b;a.isContextLost()||(a.deleteBuffer(this.f),a.deleteFramebuffer(this.e),a.deleteTexture(this.g));Mg.p.q.call(this)};Mg.prototype.Ba=function(){this.e=this.g=this.f=this.t=k;this.k=h};
Mg.prototype.L=function(a){var b=this.na(),c=b.b,d=a.z,e=d.center,f=this.a.X(),g=f.tileGrid,j=Pd(g.a,d.resolution),s=g.a[j],q=Sd(g,a.extent,s),n;if(this.b!==k&&this.b.h==q.h&&q.j==this.b.j&&this.b.i==q.i&&q.i==this.b.i)n=this.r;else{var l=new hd(q.b(),q.a()),u=g.b,l=Math.max(l.width*u.width,l.height*u.height),l=Math.pow(2,Math.ceil(Math.log(l)/Math.log(2))),w=new hd(s*l,s*l),r=Td(g,j),t=r.x+q.h*u.width*s,u=r.y+q.i*u.height*s;n=new md(t,u,t+w.width,u+w.height);u=this.na().b;!z(this.k)||this.k!=l?(a.pb.push(la(function(a,
b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},u,this.e,this.g)),t=u.createTexture(),u.bindTexture(3553,t),u.texImage2D(3553,0,6408,l,l,0,6408,5121,k),u.texParameteri(3553,10240,9729),u.texParameteri(3553,10241,9729),r=u.createFramebuffer(),u.bindFramebuffer(36160,r),u.framebufferTexture2D(36160,36064,3553,t,0),this.g=t,this.e=r,this.k=l):u.bindFramebuffer(36160,this.e);c.viewport(0,0,l,l);c.clearColor(0,0,0,0);c.clear(16384);c.disable(3042);l=Ng(b,this.Qa,this.Ta);c.useProgram(l);
this.t===k&&(this.t={ka:c.getAttribLocation(l,"aPosition"),la:c.getAttribLocation(l,"aTexCoord"),Wc:c.getUniformLocation(l,"uTileOffset"),ub:c.getUniformLocation(l,"uTexture")});this.f===k?(l=c.createBuffer(),c.bindBuffer(34962,l),c.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=l):c.bindBuffer(34962,this.f);c.enableVertexAttribArray(this.t.ka);c.vertexAttribPointer(this.t.ka,2,5126,m,16,0);c.enableVertexAttribArray(this.t.la);c.vertexAttribPointer(this.t.la,2,
this.t===k&&(this.t={ka:c.getAttribLocation(l,"aPosition"),la:c.getAttribLocation(l,"aTexCoord"),Xc:c.getUniformLocation(l,"uTileOffset"),ub:c.getUniformLocation(l,"uTexture")});this.f===k?(l=c.createBuffer(),c.bindBuffer(34962,l),c.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=l):c.bindBuffer(34962,this.f);c.enableVertexAttribArray(this.t.ka);c.vertexAttribPointer(this.t.ka,2,5126,m,16,0);c.enableVertexAttribArray(this.t.la);c.vertexAttribPointer(this.t.la,2,
5126,m,16,8);c.uniform1i(this.t.ub,0);var B={};B[j]={};var u=function(a,c){var d=i,e,g,j,l;for(j=c.h;j<=c.j;++j)for(l=c.i;l<=c.n;++l){e=new S(a,j,l);g=e.toString();if(B[a]&&B[a][g])return;e=f.a(e);e!==k&&2==e.a&&e.getKey()in b.e?(B[a]||(B[a]={}),B[a][g]=e):d=m}return d},l=new uf,E=i,A,P,Y;for(P=q.h;P<=q.j;++P)for(Y=q.i;Y<=q.n;++Y)if(r=new S(j,P,Y),t=f.a(r),t!==k){A=t.a;if(0==A)A=Vd(g,r),a.tb.b(t,A,s);else if(2==A)if(t.getKey()in b.e){B[j][r.toString()]=t;continue}else A=Vd(g,r),E=A.x-e.x,A=A.y-e.y,
E=Math.sqrt(E*E+A*A),tf(l,E,t);else if(3==A)continue;E=m;g.c(r,u)}e=xa(Pa(B),Number);La(e);var T=new Float32Array(4);I(e,function(a){Na(B[a],function(a){var d=Rd(g,a.da),e=2*d.a()/w.height,f=2*(d.h-n.h)/w.width-1,j=2*(d.i-n.i)/w.height-1;T[0]=2*d.b()/w.width;T[1]=e;T[2]=f;T[3]=j;c.uniform4fv(this.t.Wc,T);Og(b,a);c.drawArrays(5,0,4)},this)},this);l.$()||a.pb.push(la(function(a,b){var c,d;for(c=0;!b.$()&&4>c;++c)d=b.remove(),Og(a,d)},b,l));E?(this.b=q,this.r=n):(this.r=this.b=k,a.D=i)}kg(a.Ra,f,j,q);
E=Math.sqrt(E*E+A*A),tf(l,E,t);else if(3==A)continue;E=m;g.c(r,u)}e=xa(Pa(B),Number);La(e);var T=new Float32Array(4);I(e,function(a){Na(B[a],function(a){var d=Rd(g,a.da),e=2*d.a()/w.height,f=2*(d.h-n.h)/w.width-1,j=2*(d.i-n.i)/w.height-1;T[0]=2*d.b()/w.width;T[1]=e;T[2]=f;T[3]=j;c.uniform4fv(this.t.Xc,T);Og(b,a);c.drawArrays(5,0,4)},this)},this);l.$()||a.pb.push(la(function(a,b){var c,d;for(c=0;!b.$()&&4>c;++c)d=b.remove(),Og(a,d)},b,l));E?(this.b=q,this.r=n):(this.r=this.b=k,a.D=i)}kg(a.Ra,f,j,q);
lf(this.d);of(this.d,(d.center.x-n.h)/(n.j-n.h),(d.center.y-n.i)/(n.n-n.i));qf(this.d,d.rotation);pf(this.d,a.size.width*d.resolution/(n.j-n.h),a.size.height*d.resolution/(n.n-n.i));of(this.d,-0.5,-0.5)};function Pg(){this.a="precision mediump float;\n\nuniform mat4 uColorMatrix;\nuniform float uOpacity;\nuniform mat4 uMatrix;\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n\n vec4 texCoord = uMatrix * vec4(vTexCoord, 0., 1.);\n vec4 texColor = texture2D(uTexture, texCoord.st);\n vec4 color = uColorMatrix * vec4(texColor.rgb, 1.);\n color.a = texColor.a * uOpacity;\n\n gl_FragColor = color;\n\n}"}G(Pg,Fg);aa(Pg);
function Qg(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_Position = vec4(aPosition, 0., 1.);\n vTexCoord = aTexCoord;\n}"}G(Qg,Gg);aa(Qg);
function Rg(a,b){lg.call(this,a,b);this.a=Jc("CANVAS");this.a.height=a.clientHeight;this.a.width=a.clientWidth;this.a.className="ol-unselectable";Lc(a,this.a);this.r=i;this.B=new hd(a.clientHeight,a.clientWidth);this.b=Cg(this.a,{alpha:m,antialias:i,depth:m,preserveDrawingBuffer:m,stencil:m});M(this.a,"webglcontextlost",this.Ba,m,this);M(this.a,"webglcontextrestored",this.Mc,m,this);this.o=this.t=k;this.k={};this.g={};this.e={};this.J=Pg.wa();this.N=Qg.wa();this.w={};Sg(this)}G(Rg,lg);v=Rg.prototype;
function Rg(a,b){lg.call(this,a,b);this.a=Jc("CANVAS");this.a.height=a.clientHeight;this.a.width=a.clientWidth;this.a.className="ol-unselectable";Lc(a,this.a);this.r=i;this.B=new hd(a.clientHeight,a.clientWidth);this.b=Cg(this.a,{alpha:m,antialias:i,depth:m,preserveDrawingBuffer:m,stencil:m});M(this.a,"webglcontextlost",this.Ba,m,this);M(this.a,"webglcontextrestored",this.Nc,m,this);this.o=this.t=k;this.k={};this.g={};this.e={};this.J=Pg.wa();this.N=Qg.wa();this.w={};Sg(this)}G(Rg,lg);v=Rg.prototype;
v.fa=function(a){Rg.p.fa.call(this,a);a.a()&&rg(this.map)};
function Og(a,b){var c=a.b,d=b.getKey(),e=a.e[d];z(e)?(c.bindTexture(3553,e.ac),9729!=e.Jb&&(c.texParameteri(3553,10240,9729),e.Jb=9729),9729!=e.Kb&&(c.texParameteri(3553,10240,9729),e.Kb=9729)):(e=c.createTexture(),c.bindTexture(3553,e),c.texImage2D(3553,0,6408,6408,5121,b.P()),c.texParameteri(3553,10240,9729),c.texParameteri(3553,10241,9729),c.texParameteri(3553,10242,33071),c.texParameteri(3553,10243,33071),a.e[d]={ac:e,Jb:9729,Kb:9729})}v.ua=function(a){return a instanceof tg?new Mg(this,a):k};
v.q=function(){var a=this.b;a.isContextLost()||(Na(this.g,function(b){a.deleteProgram(b)}),Na(this.k,function(b){a.deleteShader(b)}),Na(this.e,function(b){a.deleteTexture(b.ac)}));Rg.p.q.call(this)};function Ng(a,b,c){var d=D(b)+"/"+D(c);if(d in a.g)return a.g[d];var e=a.b,f=e.createProgram();e.attachShader(f,Tg(a,b));e.attachShader(f,Tg(a,c));e.linkProgram(f);return a.g[d]=f}
function Tg(a,b){var c=D(b);if(c in a.k)return a.k[c];var d=a.b,e=d.createShader(b.b());d.shaderSource(e,b.X());d.compileShader(e);return a.k[c]=e}v.ab=function(){rg(this.map)};v.Pc=function(){rg(this.map)};v.Ba=function(a){a.v();this.o=this.t=k;this.k={};this.g={};this.e={};Na(this.c,function(a){a.Ba()})};v.Mc=function(){Sg(this);rg(this.map)};function Sg(a){a=a.b;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}
function Tg(a,b){var c=D(b);if(c in a.k)return a.k[c];var d=a.b,e=d.createShader(b.b());d.shaderSource(e,b.X());d.compileShader(e);return a.k[c]=e}v.ab=function(){rg(this.map)};v.Qc=function(){rg(this.map)};v.Ba=function(a){a.v();this.o=this.t=k;this.k={};this.g={};this.e={};Na(this.c,function(a){a.Ba()})};v.Nc=function(){Sg(this);rg(this.map)};function Sg(a){a=a.b;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}
v.qb=function(a){Rg.p.qb.call(this,a);a.a()&&rg(this.map)};v.rb=function(a){var b=Rg.p.rb.call(this,a);b!==k&&(a=D(a),N(this.w[a]),delete this.w[a]);return b};
v.L=function(a){var b=this.b;if(a===k)return this.r&&(Xe(this.a,m),this.r=m),m;I(a.Ha,function(b){var c=a.Ga[D(b)];c.visible&&c.Oa&&qg(this,b).L(a,c)},this);var c=a.size;this.B.width==c.width&&this.B.height==c.height||(this.a.width=c.width,this.a.height=c.height,this.B=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=Ng(this,this.J,this.N);b.useProgram(c);this.t===k&&(this.t={ka:b.getAttribLocation(c,
"aPosition"),la:b.getAttribLocation(c,"aTexCoord"),Tc:b.getUniformLocation(c,"uColorMatrix"),Uc:b.getUniformLocation(c,"uMatrix"),Vc:b.getUniformLocation(c,"uOpacity"),ub:b.getUniformLocation(c,"uTexture")});this.o===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.o=c):b.bindBuffer(34962,this.o);b.enableVertexAttribArray(this.t.ka);b.vertexAttribPointer(this.t.ka,2,5126,m,16,0);b.enableVertexAttribArray(this.t.la);
b.vertexAttribPointer(this.t.la,2,5126,m,16,8);b.uniform1i(this.t.ub,0);I(a.Ha,function(c){var d=a.Ga[D(c)];d.visible&&d.Oa&&(d=qg(this,c),b.uniformMatrix4fv(this.t.Uc,m,d.d),b.uniformMatrix4fv(this.t.Tc,m,Jg(d)),b.uniform1f(this.t.Vc,c.e()),b.bindTexture(3553,d.g),b.drawArrays(5,0,4))},this);this.r||(Xe(this.a,i),this.r=i);pg(a)};v.sb=function(a,b){Rg.p.sb.call(this,a,b);var c=D(a);this.w[c]=M(b,"change",this.Pc,m,this)};var Ug={},Vg={bd:"canvas",ed:"dom",Ad:"webgl"},Wg=["webgl","canvas","dom"],mg="backgroundColor",Uf="layers",ng="size",og="view";
"aPosition"),la:b.getAttribLocation(c,"aTexCoord"),Uc:b.getUniformLocation(c,"uColorMatrix"),Vc:b.getUniformLocation(c,"uMatrix"),Wc:b.getUniformLocation(c,"uOpacity"),ub:b.getUniformLocation(c,"uTexture")});this.o===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.o=c):b.bindBuffer(34962,this.o);b.enableVertexAttribArray(this.t.ka);b.vertexAttribPointer(this.t.ka,2,5126,m,16,0);b.enableVertexAttribArray(this.t.la);
b.vertexAttribPointer(this.t.la,2,5126,m,16,8);b.uniform1i(this.t.ub,0);I(a.Ha,function(c){var d=a.Ga[D(c)];d.visible&&d.Oa&&(d=qg(this,c),b.uniformMatrix4fv(this.t.Vc,m,d.d),b.uniformMatrix4fv(this.t.Uc,m,Jg(d)),b.uniform1f(this.t.Wc,c.e()),b.bindTexture(3553,d.g),b.drawArrays(5,0,4))},this);this.r||(Xe(this.a,i),this.r=i);pg(a)};v.sb=function(a,b){Rg.p.sb.call(this,a,b);var c=D(a);this.w[c]=M(b,"change",this.Qc,m,this)};var Ug={},Vg={cd:"canvas",fd:"dom",Bd:"webgl"},Wg=["webgl","canvas","dom"],mg="backgroundColor",Uf="layers",ng="size",og="view";
function $(a){var b,c;V.call(this);var d={};d[Uf]=z(a.layers)?a.layers:new W;d[og]=z(a.view)?a.view:new Z;c=lg;var e;e=z(a.renderers)?a.renderers:z(a.renderer)?[a.renderer]:Wg;var f;for(b=0;b<e.length;++b)if(f=e[b],"canvas"==f){if(sg()){c=wg;break}}else if("dom"==f){if(ce()){c=Ag;break}}else if("webgl"==f&&Dg()){c=Rg;break}z(a.controls)?e=a.controls:(e=new W,e.push(new Sf({})),e.push(new Vf({delta:z(a.zoomDelta)?a.zoomDelta:4})));if(z(a.interactions))b=a.interactions;else{b=new W;(z(a.rotate)?a.rotate:
1)&&b.push(new cg(Yf));if(z(a.doubleClickZoom)?a.doubleClickZoom:1)b.push(new Xf(z(a.zoomDelta)?a.zoomDelta:4));(z(a.dragPan)?a.dragPan:1)&&b.push(new bg(Zf));f=z(a.keyboardPanOffset)?a.keyboardPanOffset:80;if(z(a.keyboard)?a.keyboard:1)b.push(new gg(f)),b.push(new hg);if(z(a.mouseWheelZoom)?a.mouseWheelZoom:1)b.push(new ig(z(a.mouseWheelZoomDelta)?a.mouseWheelZoomDelta:1));(z(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new fg($f))}a=C(a.target)?document.getElementById(a.target):a.target;this.c=new ue(this.Qc,
h,this);Zb(this,this.c);this.Yc=jf();this.dc=jf();this.d=k;this.f=0;this.k=m;this.r=a;this.b=Hc("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow="hidden";this.b.style.width="100%";this.b.style.height="100%";this.r.appendChild(this.b);this.o=Hc("DIV","ol-overlaycontainer");M(this.o,["click",ef?"touchstart":"mousedown"],cc);this.b.appendChild(this.o);a=new Bf(this);M(a,[Df,Ef,Gf,Hf,Ff],this.Qb,m,this);Zb(this,a);a=new De(document);M(a,"key",this.Db,m,this);Zb(this,a);a=new bf(this.b);
M(a,"mousewheel",this.Db,m,this);Zb(this,a);this.g=e;M(this.g,"add",this.Dc,m,this);M(this.g,"remove",this.Ec,m,this);this.ha=b;this.Qa=new c(this.b,this);Zb(this,this.Qa);this.gc=new ye;M(this.gc,"resize",this.Eb,m,this);this.B=[];this.w=[];this.cc=ka(this.Kc,this);this.C=new vf(ka(this.vc,this));this.Ka(d);this.Eb();this.g.forEach(function(a){a.a(this)},this)}G($,V);$.prototype.J=function(a){Pf(this);this.B.push(a)};$.prototype.q=function(){Mc(this.b);$.p.q.call(this)};$.prototype.N=function(){return this.u(mg)};
$.prototype.getBackgroundColor=$.prototype.N;$.prototype.Zc=p("g");function zf(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];nf(c.Tb,d,d);return new R(d[0],d[1])}$.prototype.bc=p("ha");function eg(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];nf(c.Ab,d,d);return new xf(d[0],d[1])}$.prototype.e=function(){return this.u(ng)};$.prototype.getSize=$.prototype.e;$.prototype.a=function(){return this.u(og)};$.prototype.getView=$.prototype.a;v=$.prototype;
v.vc=function(a,b,c){if(this.d!==k){var d=this.d.z.center,a=b.x-d.x,b=b.y-d.y;return Math.sqrt(a*a+b*b)/c}};v.Db=function(a,b){this.Qb(new yf(b||a.type,this,a))};v.Dc=function(a){a.a.a(this)};v.Ec=function(a){a.a.a(k)};v.Qb=function(a){var b=this.ha.a;if(O(this,a)!==m)for(var c=b.length-1;0<=c&&!(b[c].b(a),a.Aa);c--);};
v.Kc=function(){var a=this.C;if(!a.a.$()){var b=a.a.G();a.a.clear();a.c={};var c;for(c=0;c<b.length;++c)a.b.apply(a,b[c])}for(a=this.C;!a.a.$()&&a.d<a.f;)b=a.a.remove()[0],c=b.getKey(),delete a.c[c],M(b,"change",a.e,m,a),b.load(),++a.d;I(this.w,function(a){a(this,this.d)},this);this.w.length=0};v.Eb=function(){this.Ta(new hd(this.r.clientWidth,this.r.clientHeight))};v.Da=function(){var a=this.a(),b;if(b=z(a)){if(a=a.Da())a=this.e()!=k;b=a}return b};
1)&&b.push(new cg(Yf));if(z(a.doubleClickZoom)?a.doubleClickZoom:1)b.push(new Xf(z(a.zoomDelta)?a.zoomDelta:4));(z(a.dragPan)?a.dragPan:1)&&b.push(new bg(Zf));f=z(a.keyboardPanOffset)?a.keyboardPanOffset:80;if(z(a.keyboard)?a.keyboard:1)b.push(new gg(f)),b.push(new hg);if(z(a.mouseWheelZoom)?a.mouseWheelZoom:1)b.push(new ig(z(a.mouseWheelZoomDelta)?a.mouseWheelZoomDelta:1));(z(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new fg($f))}a=C(a.target)?document.getElementById(a.target):a.target;this.c=new ue(this.Rc,
h,this);Zb(this,this.c);this.$c=jf();this.ec=jf();this.d=k;this.f=0;this.k=m;this.w=a;this.b=Hc("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow="hidden";this.b.style.width="100%";this.b.style.height="100%";this.w.appendChild(this.b);this.o=Hc("DIV","ol-overlaycontainer");M(this.o,["click",ef?"touchstart":"mousedown"],cc);this.b.appendChild(this.o);a=new Bf(this);M(a,[Df,Ef,Gf,Hf,Ff],this.Qb,m,this);Zb(this,a);a=new De(document);M(a,"key",this.Db,m,this);Zb(this,a);a=new bf(this.b);
M(a,"mousewheel",this.Db,m,this);Zb(this,a);this.g=e;M(this.g,"add",this.Ec,m,this);M(this.g,"remove",this.Fc,m,this);this.ha=b;this.Qa=new c(this.b,this);Zb(this,this.Qa);this.hc=new ye;M(this.hc,"resize",this.Eb,m,this);this.r=[];this.B=[];this.dc=ka(this.Lc,this);this.C=new vf(ka(this.wc,this));this.Ka(d);this.Eb();this.g.forEach(function(a){a.a(this)},this)}G($,V);$.prototype.J=function(a){Pf(this);this.r.push(a)};$.prototype.Zc=function(a){Pf(this);Array.prototype.push.apply(this.r,a)};
$.prototype.q=function(){Mc(this.b);$.p.q.call(this)};$.prototype.N=function(){return this.u(mg)};$.prototype.getBackgroundColor=$.prototype.N;$.prototype.bc=p("g");function zf(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];nf(c.Tb,d,d);return new R(d[0],d[1])}$.prototype.cc=p("ha");function eg(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];nf(c.Ab,d,d);return new xf(d[0],d[1])}$.prototype.e=function(){return this.u(ng)};$.prototype.getSize=$.prototype.e;$.prototype.a=function(){return this.u(og)};
$.prototype.getView=$.prototype.a;v=$.prototype;v.wc=function(a,b,c){if(this.d!==k){var d=this.d.z.center,a=b.x-d.x,b=b.y-d.y;return Math.sqrt(a*a+b*b)/c}};v.Db=function(a,b){this.Qb(new yf(b||a.type,this,a))};v.Ec=function(a){a.a.a(this)};v.Fc=function(a){a.a.a(k)};v.Qb=function(a){var b=this.ha.a;if(O(this,a)!==m)for(var c=b.length-1;0<=c&&!(b[c].b(a),a.Aa);c--);};
v.Lc=function(){var a=this.C;if(!a.a.$()){var b=a.a.G();a.a.clear();a.c={};var c;for(c=0;c<b.length;++c)a.b.apply(a,b[c])}for(a=this.C;!a.a.$()&&a.d<a.f;)b=a.a.remove()[0],c=b.getKey(),delete a.c[c],M(b,"change",a.e,m,a),b.load(),++a.d;I(this.B,function(a){a(this,this.d)},this);this.B.length=0};v.Eb=function(){this.Ta(new hd(this.w.clientWidth,this.w.clientHeight))};v.Da=function(){var a=this.a(),b;if(b=z(a)){if(a=a.Da())a=this.e()!=k;b=a}return b};
function rg(a){a.c.a==k&&(0===a.f?(a=a.c,ve(a),a.d()):a.k=i)}function Pf(a){if(0===a.f){if(a.c.a==k){a=a.c;ve(a);a.e=m;var b=we(a),c=xe(a);if(b&&!c&&a.b.mozRequestAnimationFrame)a.a=M(a.b,"MozBeforePaint",a.c),a.b.mozRequestAnimationFrame(k),a.e=i;else{if(b&&c)b=b.call(a.b,a.c);else{var d=a.c,e;e=e||0;b=a.b.setTimeout(function(){return d.apply(this,Array.prototype.slice.call(arguments,0,e))},20)}a.a=b}}}else a.k=i}
v.Qc=function(a){var b;if(0==this.f){b=this.e();var c=this.u(Uf),c=z(c)?c.a:h,d=this.a(),e=z(d)?this.a():h,f=k;if(z(c)&&z(b)&&z(e)&&e.Da()){var g=this.N(),d=Ia(d.a),j={};I(c,function(a){var b=D(a),c=a.b(),d=a.c(),e=a.d(),f=a.e(),g=a.X().b(),n=a.f(),a=a.a();j[b]={brightness:z(c)?c:0,contrast:z(d)?d:1,hue:z(e)?e:0,opacity:z(f)?f:1,Oa:g,saturation:z(n)?n:1,visible:z(a)?a:i}});var s;s=e.aa();var q=e.Pb(),n=e.U(),e=e.xa();s={center:new R(s.x,s.y),projection:q,resolution:n,rotation:e};f={D:m,backgroundColor:z(g)?
g:new ff,Ab:this.Yc,extent:k,Ha:c,Ga:j,Tb:this.dc,pb:[],size:b,tb:this.C,Ra:{},z:s,A:d,time:a}}this.B=wa(this.B,function(a){return a(this,f)},this);if(f!==k){a=s.center;g=s.resolution;c=s.rotation;e=g*b.width/2;b=g*b.height/2;g=[new R(-e,-b),new R(-e,b),new R(e,-b),new R(e,b)];for(b=0;4>b;++b)e=g[b],e.rotate(c),e.add(a);f.extent=nd.apply(k,g)}this.Qa.L(f);f!==k&&(f.D&&Pf(this),Array.prototype.push.apply(this.w,f.pb));this.d=f;this.k=m;O(this,new wf("postrender",this,f));x.setTimeout(this.cc,0)}};
v.Sc=function(a){this.set(mg,a)};$.prototype.setBackgroundColor=$.prototype.Sc;$.prototype.ec=function(a){this.set(Uf,a)};$.prototype.setLayers=$.prototype.ec;$.prototype.Ta=function(a){this.set(ng,a)};$.prototype.setSize=$.prototype.Ta;$.prototype.fc=function(a){this.set(og,a)};$.prototype.setView=$.prototype.fc;function Qf(a,b,c){++a.f;try{b.call(c)}finally{0===--a.f&&a.k&&(a=a.c,ve(a),a.d())}}
Ug.mc=function(a){var b=x.location.search.substring(1),a=z(a)?a:new Gb(b);return Sb(a,"renderers")?Tb(a,"renderers").split(","):Sb(a,"renderer")?[Tb(a,"renderer")]:Wg};function Xg(a){var b=Hc("DIV",{"class":"ol-mouse-position"});Rf.call(this,{element:b,map:a.map,target:a.target});this.o=a.projection;this.g=a.coordinateFormat;this.N=z(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.r=Fd;this.d=this.e=this.w=k}G(Xg,Rf);Xg.prototype.J=function(a){a=a.f;a===k?this.c=k:this.c=a.z.projection;Yg(this,this.e)};Xg.prototype.B=function(a){a=Ue(a,this.b.b);a=new xf(a.x,a.y);Yg(this,a);this.e=a};Xg.prototype.C=function(){Yg(this,k);this.e=k};
v.Rc=function(a){var b;if(0==this.f){b=this.e();var c=this.u(Uf),c=z(c)?c.a:h,d=this.a(),e=z(d)?this.a():h,f=k;if(z(c)&&z(b)&&z(e)&&e.Da()){var g=this.N(),d=Ia(d.a),j={};I(c,function(a){var b=D(a),c=a.b(),d=a.c(),e=a.d(),f=a.e(),g=a.X().b(),n=a.f(),a=a.a();j[b]={brightness:z(c)?c:0,contrast:z(d)?d:1,hue:z(e)?e:0,opacity:z(f)?f:1,Oa:g,saturation:z(n)?n:1,visible:z(a)?a:i}});var s;s=e.aa();var q=e.Pb(),n=e.U(),e=e.xa();s={center:new R(s.x,s.y),projection:q,resolution:n,rotation:e};f={D:m,backgroundColor:z(g)?
g:new ff,Ab:this.$c,extent:k,Ha:c,Ga:j,Tb:this.ec,pb:[],size:b,tb:this.C,Ra:{},z:s,A:d,time:a}}this.r=wa(this.r,function(a){return a(this,f)},this);if(f!==k){a=s.center;g=s.resolution;c=s.rotation;e=g*b.width/2;b=g*b.height/2;g=[new R(-e,-b),new R(-e,b),new R(e,-b),new R(e,b)];for(b=0;4>b;++b)e=g[b],e.rotate(c),e.add(a);f.extent=nd.apply(k,g)}this.Qa.L(f);f!==k&&(f.D&&Pf(this),Array.prototype.push.apply(this.B,f.pb));this.d=f;this.k=m;O(this,new wf("postrender",this,f));x.setTimeout(this.dc,0)}};
v.Tc=function(a){this.set(mg,a)};$.prototype.setBackgroundColor=$.prototype.Tc;$.prototype.fc=function(a){this.set(Uf,a)};$.prototype.setLayers=$.prototype.fc;$.prototype.Ta=function(a){this.set(ng,a)};$.prototype.setSize=$.prototype.Ta;$.prototype.gc=function(a){this.set(og,a)};$.prototype.setView=$.prototype.gc;function Qf(a,b,c){++a.f;try{b.call(c)}finally{0===--a.f&&a.k&&(a=a.c,ve(a),a.d())}}
Ug.nc=function(a){var b=x.location.search.substring(1),a=z(a)?a:new Gb(b);return Sb(a,"renderers")?Tb(a,"renderers").split(","):Sb(a,"renderer")?[Tb(a,"renderer")]:Wg};function Xg(a){var b=Hc("DIV",{"class":"ol-mouse-position"});Rf.call(this,{element:b,map:a.map,target:a.target});this.o=a.projection;this.g=a.coordinateFormat;this.N=z(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.r=Fd;this.d=this.e=this.w=k}G(Xg,Rf);Xg.prototype.J=function(a){a=a.f;a===k?this.c=k:this.c=a.z.projection;Yg(this,this.e)};Xg.prototype.B=function(a){a=Ue(a,this.b.b);a=new xf(a.x,a.y);Yg(this,a);this.e=a};Xg.prototype.C=function(){Yg(this,k);this.e=k};
Xg.prototype.a=function(a){this.d!==k&&(I(this.d,N),this.d=k);Xg.p.a.call(this,a);if(a!==k){var b=a.b;this.d=[M(b,"mousemove",this.B,m,this),M(b,"mouseout",this.C,m,this),M(a,"postrender",this.J,m,this)]}};function Yg(a,b){var c=a.N;if(b!==k){a.w!=a.c&&(a.r=z(a.o)?Ed(a.c,a.o):Fd,a.w=a.c);var d=zf(a.b,b);d!==k&&(d=a.r(d),c=z(a.g)?a.g(d):d.toString())}if(!z(a.f)||c!=a.f)a.element.innerHTML=c,a.f=c};function Zg(){this.a={}}G(Zg,Wf);Zg.prototype.c=function(a,b){var c;for(c=0;c<a.length;++c)this.a[a.charCodeAt(c)]=b};Zg.prototype.b=function(a){if("key"==a.type){var b=this.a[a.a.ya];b&&(b(),a.v())}};function $g(a){this.b=this.a=this.f=k;this.c=[ah,bh];this.e=this.d=k;z(a.coordinate)&&this.Yb(a.coordinate);z(a.element)&&ch(this,a.element);z(a.map)&&this.Rb(a.map);z(a.positioning)&&(this.c=a.positioning,this.V())}v=$g.prototype;v.Hb=function(){this.e!==k&&(I(this.e,N),this.e=k);var a=this.b.a();a!=k&&(this.e=[M(a,pe("center"),this.V,m,this),M(a,pe("resolution"),this.V,m,this),M(a,pe("rotation"),this.V,m,this)],this.V())};v.Yb=function(a){this.f=a;this.V()};
function ch(a,b){a.a&&Mc(a.a);a.a=b;a.b&&(Le(a.a,"position","absolute"),Kc(a.b.o,a.a));a.V()}v.Oc=p("a");v.Rb=function(a){this.b=a;this.d!==k&&(I(this.d,N),this.d=k);this.a&&ch(this,this.a);a!=k&&(this.d=[M(a,pe(ng),this.V,m,this),M(a,pe(og),this.Hb,m,this)],this.Hb())};
function ch(a,b){a.a&&Mc(a.a);a.a=b;a.b&&(Le(a.a,"position","absolute"),Kc(a.b.o,a.a));a.V()}v.Pc=p("a");v.Rb=function(a){this.b=a;this.d!==k&&(I(this.d,N),this.d=k);this.a&&ch(this,this.a);a!=k&&(this.d=[M(a,pe(ng),this.V,m,this),M(a,pe(og),this.Hb,m,this)],this.Hb())};
v.V=function(){if(this.b!==k&&this.f!==k&&this.a!==k){var a=eg(this.b,this.f),b=this.b.u(ng),c=Math.round(a.x);this.c[0]===dh&&(c=b.width-c);a=Math.round(a.y);this.c[1]===bh&&(a=b.height-a);Le(this.a,this.c[0],c+"px");Le(this.a,this.c[1],a+"px")}};var ah="left",dh="right",bh="bottom";function eh(a,b){qd.call(this,a);this.a=2;this.d=a;this.c=b.b;this.b={}}G(eh,qd);eh.prototype.P=function(a){a=z(a)?D(a):-1;if(a in this.b)return this.b[a];var b=this.c,c=Jc("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.d.toString(),b.width/2,b.height/2);return this.b[a]=c};
function fh(a){fe.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.c={}}G(fh,fe);fh.prototype.a=function(a){var b=a.toString();if(b in this.c)return this.c[b];a=new eh(a,this.tileGrid);return this.c[b]=a};function gh(a){var b=a.projection||Cd("EPSG:3857"),c=Zd;z(a.O)?c=a.O:z(a.urls)?c=Xd(xa(a.urls,Wd)):z(a.url)&&(c=Wd(a.url));var d=new he({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?$d(function(b){if(a.maxZoom<b.l)return k;var c=1<<b.l,j=-b.y-1;if(0>j||c<=j)return k;c=yc(b.x,c);return!jd(Rd(d,new S(b.l,c,b.y)),e)?k:new S(b.l,c,j)},c):$d(function(b){if(a.maxZoom<b.l)return k;var c=1<<b.l,d=-b.y-1;return 0>d||c<=d?k:new S(b.l,yc(b.x,c),d)},c);ge.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
extent:a.extent,projection:b,tileGrid:d,O:c})}G(gh,ge);function hh(){gh.call(this,{attributions:[new na('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 na('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>')],maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}G(hh,gh);
function ih(){gh.call(this,{attributions:[new na('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 na("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}G(ih,gh);function jh(){gh.call(this,{attributions:[new na('&copy; <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}G(jh,gh);var kh={ld:"background",md:"labels",nd:"lines",pd:"2010",qd:"2011",rd:"2011-labels",sd:"2011-lines",td:"2011-lite",ud:"background",vd:"hybrid",wd:"labels",xd:"lines",yd:"lite"},lh={kd:"terrain",od:"toner",zd:"watercolor"},mh={terrain:{type:"jpg",Lb:4,maxZoom:18},toner:{type:"png",Lb:0,maxZoom:20},watercolor:{type:"jpg",Lb:3,maxZoom:16}};
function ih(){gh.call(this,{attributions:[new na('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 na("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}G(ih,gh);function jh(){gh.call(this,{attributions:[new na('&copy; <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}G(jh,gh);var kh={md:"background",nd:"labels",od:"lines",qd:"2010",rd:"2011",sd:"2011-labels",td:"2011-lines",ud:"2011-lite",vd:"background",wd:"hybrid",xd:"labels",yd:"lines",zd:"lite"},lh={ld:"terrain",pd:"toner",Ad:"watercolor"},mh={terrain:{type:"jpg",Lb:4,maxZoom:18},toner:{type:"png",Lb:0,maxZoom:20},watercolor:{type:"jpg",Lb:3,maxZoom:16}};
function nh(a){var b=new na('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>.'),c=a.provider;z(a.flavor)&&(c+="-"+a.flavor);a=mh[a.provider];gh.call(this,{attributions:[b],maxZoom:a.maxZoom,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}G(nh,gh);var oh=[];F("grid",function(a){oh.push(a)});function ph(a){ge.call(this,{projection:Cd("EPSG:3857")});this.d=m;a=this.k=Uc(a.uri,{yb:i});a.a.push([this.o,k,this]);a.W&&Qc(a)}G(ph,ge);
ph.prototype.o=function(){var a=oh.pop(),b=Cd("EPSG:4326"),c,d;z(a.bounds)?(c=a.bounds,c=new md(c[0],c[1],c[2],c[3]),this.e=d=c.transform(Ed(b,this.f))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new he({maxZoom:f});this.tileGrid=g;this.O=$d(function(a){if(a.l<e||f<a.l)return k;var b=1<<a.l,c=-a.y-1;if(0>c||b<=c)return k;b=yc(a.x,b);return d!==k&&!jd(Rd(g,new S(a.l,b,a.y)),d)?k:new S(a.l,b,c)},Xd(xa(a.tiles,Wd)));if(z(a.attribution)){b=d===k?b.K():d;c={};var j,s;for(j=e;j<=f;++j)s=j.toString(),c[s]=
[Sd(g,b,g.a[j])];this.ta=[new na(a.attribution,c)]}this.d=i;O(this,"load")};ph.prototype.b=p("d");function qh(a){var b=Bd(a.projection),c=b.K(),d=z(a.extent)?a.extent:c,e=z(a.version)?a.version:"1.3",f,g;if(z(a.tileGrid))g=a.tileGrid;else{var j=a.maxZoom;g=b.K();for(var s=Math.max(g.j-g.h,g.n-g.i),q=z(h)?h:new hd(256,256),j=Array((z(j)?j:18)+1),n=0,l=j.length;n<l;++n)j[n]=s/(q.width<<n);g=new Qd({origin:od(g),resolutions:j,tileSize:q})}f=g;var u={SERVICE:"WMS",VERSION:e,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:i};g=f.b;u.WIDTH=g.width;u.HEIGHT=g.height;u["1.3"<=e?"CRS":"SRS"]=
b.a;Ra(u,a.params);a.urls?(e=xa(a.urls,function(a){a=yb(Ab([a],u));return Yd(a,f)}),e=Xd(e)):a.url?(e=yb(Ab([a.url],u)),e=Yd(e,f)):e=Zd;ge.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:f,projection:b,O:$d(function(a){if(f.a.length<=a.l)return k;var b=a.x,e=Rd(f,a);d.h===c.h&&d.j===c.j&&(e=Math.ceil((d.j-d.h)/(e.j-e.h)),b=yc(b,e),e=Rd(f,new S(a.l,b,a.y)));return!jd(e,d)?k:new S(a.l,b,a.y)},e)})}G(qh,ge);F("goog.require",y);F("ol.Attribution",na);F("ol.BingMapsStyle",ie);ie.AERIAL="Aerial";ie.AERIAL_WITH_LABELS="AerialWithLabels";ie.COLLINS_BART="CollinsBart";ie.ORDNANCE_SURVEY="OrdnanceSurvey";ie.ROAD="Road";F("ol.Collection",W);W.prototype.clear=W.prototype.clear;W.prototype.forEach=W.prototype.forEach;W.prototype.getArray=W.prototype.sc;W.prototype.getAt=W.prototype.tc;W.prototype.getLength=W.prototype.Cb;W.prototype.insertAt=W.prototype.Ca;W.prototype.pop=W.prototype.Ob;W.prototype.push=W.prototype.push;
W.prototype.removeAt=W.prototype.Vb;W.prototype.setAt=W.prototype.Rc;F("ol.Coordinate",R);R.toStringHDMS=function(a){return z(a)?gd(a.y,"NS")+" "+gd(a.x,"EW"):""};F("ol.Extent",md);
function rh(a){$.call(this,{controls:a.controls,doubleClickZoom:a.doubleClickZoom,dragPan:a.dragPan,interactions:a.interactions,keyboard:a.keyboard,keyboardPanOffset:a.keyboardPanOffset,layers:a.layers,mouseWheelZoom:a.mouseWheelZoom,mouseWheelZoomDelta:a.mouseWheelZoomDelta,renderer:a.renderer,renderers:a.renderers,shiftDragZoom:a.shiftDragZoom,target:a.target,view:a.view,zoomDelta:a.zoomDelta})}G(rh,$);F("ol.Map",rh);$.prototype.addPreRenderFunction=$.prototype.J;$.prototype.getControls=$.prototype.Zc;
$.prototype.getInteractions=$.prototype.bc;yf.prototype.getCoordinate=yf.prototype.c;F("ol.Object",V);V.prototype.bindTo=V.prototype.hc;V.prototype.changed=V.prototype.kc;V.prototype.get=V.prototype.u;V.prototype.notify=V.prototype.Nb;V.prototype.set=V.prototype.set;V.prototype.setOptions=V.prototype.Zb;V.prototype.setValues=V.prototype.Ka;V.prototype.unbind=V.prototype.vb;V.prototype.unbindAll=V.prototype.Xc;F("ol.Projection",U);U.addProjection=yd;U.getFromCode=Cd;U.getTransform=Ed;
U.getTransformFromCodes=Gd;U.transform=function(a,b,c){return Ed(b,c)(a)};U.transformWithCodes=function(a,b,c){return Gd(b,c)(a)};U.prototype.getCode=U.prototype.b;U.prototype.getExtent=U.prototype.K;U.prototype.getUnits=U.prototype.c;F("ol.ProjectionUnits",sd);sd.DEGREES="degrees";sd.METERS="m";F("ol.RendererHint",Vg);Vg.CANVAS="canvas";Vg.DOM="dom";Vg.WEBGL="webgl";F("ol.RendererHints",Ug);Ug.createFromQueryData=Ug.mc;
function sh(a){Z.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})}G(sh,Z);F("ol.View2D",sh);F("ol.animation",Of);Of.createBounce=Of.lc;Of.createPanFrom=Of.nc;Of.createSpin=Of.oc;function th(a){Sf.call(this,{map:a.map,target:a.target})}G(th,Sf);F("ol.control.Attribution",th);
b.a;Ra(u,a.params);a.urls?(e=xa(a.urls,function(a){a=yb(Ab([a],u));return Yd(a,f)}),e=Xd(e)):a.url?(e=yb(Ab([a.url],u)),e=Yd(e,f)):e=Zd;ge.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:f,projection:b,O:$d(function(a){if(f.a.length<=a.l)return k;var b=a.x,e=Rd(f,a);d.h===c.h&&d.j===c.j&&(e=Math.ceil((d.j-d.h)/(e.j-e.h)),b=yc(b,e),e=Rd(f,new S(a.l,b,a.y)));return!jd(e,d)?k:new S(a.l,b,a.y)},e)})}G(qh,ge);F("goog.require",y);F("ol.Attribution",na);F("ol.BingMapsStyle",ie);ie.AERIAL="Aerial";ie.AERIAL_WITH_LABELS="AerialWithLabels";ie.COLLINS_BART="CollinsBart";ie.ORDNANCE_SURVEY="OrdnanceSurvey";ie.ROAD="Road";F("ol.Collection",W);W.prototype.clear=W.prototype.clear;W.prototype.forEach=W.prototype.forEach;W.prototype.getArray=W.prototype.tc;W.prototype.getAt=W.prototype.uc;W.prototype.getLength=W.prototype.Cb;W.prototype.insertAt=W.prototype.Ca;W.prototype.pop=W.prototype.Ob;W.prototype.push=W.prototype.push;
W.prototype.removeAt=W.prototype.Vb;W.prototype.setAt=W.prototype.Sc;F("ol.Coordinate",R);R.toStringHDMS=function(a){return z(a)?gd(a.y,"NS")+" "+gd(a.x,"EW"):""};F("ol.Extent",md);
function rh(a){$.call(this,{controls:a.controls,doubleClickZoom:a.doubleClickZoom,dragPan:a.dragPan,interactions:a.interactions,keyboard:a.keyboard,keyboardPanOffset:a.keyboardPanOffset,layers:a.layers,mouseWheelZoom:a.mouseWheelZoom,mouseWheelZoomDelta:a.mouseWheelZoomDelta,renderer:a.renderer,renderers:a.renderers,shiftDragZoom:a.shiftDragZoom,target:a.target,view:a.view,zoomDelta:a.zoomDelta})}G(rh,$);F("ol.Map",rh);$.prototype.addPreRenderFunction=$.prototype.J;
$.prototype.addPreRenderFunctions=$.prototype.Zc;$.prototype.getControls=$.prototype.bc;$.prototype.getInteractions=$.prototype.cc;yf.prototype.getCoordinate=yf.prototype.c;F("ol.Object",V);V.prototype.bindTo=V.prototype.ic;V.prototype.changed=V.prototype.lc;V.prototype.get=V.prototype.u;V.prototype.notify=V.prototype.Nb;V.prototype.set=V.prototype.set;V.prototype.setOptions=V.prototype.Zb;V.prototype.setValues=V.prototype.Ka;V.prototype.unbind=V.prototype.vb;V.prototype.unbindAll=V.prototype.Yc;
F("ol.Projection",U);U.addProjection=yd;U.getFromCode=Cd;U.getTransform=Ed;U.getTransformFromCodes=Gd;U.transform=function(a,b,c){return Ed(b,c)(a)};U.transformWithCodes=function(a,b,c){return Gd(b,c)(a)};U.prototype.getCode=U.prototype.b;U.prototype.getExtent=U.prototype.K;U.prototype.getUnits=U.prototype.c;F("ol.ProjectionUnits",sd);sd.DEGREES="degrees";sd.METERS="m";F("ol.RendererHint",Vg);Vg.CANVAS="canvas";Vg.DOM="dom";Vg.WEBGL="webgl";F("ol.RendererHints",Ug);Ug.createFromQueryData=Ug.nc;
function sh(a){Z.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})}G(sh,Z);F("ol.View2D",sh);F("ol.animation",Of);Of.createBounce=Of.mc;Of.createPanFrom=Of.oc;Of.createSpin=Of.pc;function th(a){Sf.call(this,{map:a.map,target:a.target})}G(th,Sf);F("ol.control.Attribution",th);
function uh(a){Xg.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}G(uh,Xg);F("ol.control.MousePosition",uh);function vh(a){Vf.call(this,{delta:a.delta,map:a.map,target:a.target})}G(vh,Vf);F("ol.control.Zoom",vh);F("ol.interaction.Keyboard",Zg);Zg.prototype.addCallback=Zg.prototype.c;
function wh(a){X.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}G(wh,tg);F("ol.layer.TileLayer",wh);function xh(a){$g.call(this,{coordinate:a.coordinate,element:a.element,map:a.map,positioning:a.positioning})}G(xh,$g);F("ol.overlay.Overlay",xh);$g.prototype.getElement=$g.prototype.Oc;$g.prototype.setCoordinate=$g.prototype.Yb;$g.prototype.setMap=$g.prototype.Rb;F("ol.source.BingMaps",je);
function wh(a){X.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}G(wh,tg);F("ol.layer.TileLayer",wh);function xh(a){$g.call(this,{coordinate:a.coordinate,element:a.element,map:a.map,positioning:a.positioning})}G(xh,$g);F("ol.overlay.Overlay",xh);$g.prototype.getElement=$g.prototype.Pc;$g.prototype.setCoordinate=$g.prototype.Yb;$g.prototype.setMap=$g.prototype.Rb;F("ol.source.BingMaps",je);
function yh(a){fh.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}G(yh,fh);F("ol.source.DebugTileSource",yh);F("ol.source.MapQuestOSM",hh);F("ol.source.MapQuestOpenAerial",ih);F("ol.source.OpenStreetMap",jh);F("ol.source.Stamen",nh);F("ol.source.StamenFlavor",kh);kh.TERRAIN_BACKGROUND="background";kh.TERRAIN_LABELS="labels";kh.TERRAIN_LINES="lines";kh.TONER_2010="2010";kh.TONER_2011="2011";kh.TONER_2011_LABELS="2011-labels";kh.TONER_2011_LINES="2011-lines";
kh.TONER_2011_LITE="2011-lite";kh.TONER_BACKGROUND="background";kh.TONER_HYBRID="hybrid";kh.TONER_LABELS="labels";kh.TONER_LINES="lines";kh.TONER_LITE="lite";F("ol.source.StamenProvider",lh);lh.TERRAIN="terrain";lh.TONER="toner";lh.WATERCOLOR="watercolor";F("ol.source.TileJSON",ph);F("ol.source.TiledWMS",qh);function zh(a){Qd.call(this,{extent:a.extent,origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize})}G(zh,Qd);F("ol.tilegrid.TileGrid",zh);
function Ah(a){he.call(this,{maxZoom:a.maxZoom})}G(Ah,he);F("ol.tilegrid.XYZ",Ah);})();