function e(a){throw a;}var i=void 0,n=null;function aa(){return function(){}}function ba(a){return function(b){this[a]=b}}function p(a){return function(){return this[a]}}function q(a){return function(){return a}}var s,t=this;function v(){}function ca(a){a.za=function(){return a.Ii||(a.Ii=new a)}}
function da(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array)return"array";else if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(c=="[object Window]")return"object";if(c=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(c=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if(b=="function"&&typeof a.call=="undefined")return"object";return b}function w(a){return a!==i}function x(a){return a===n}function y(a){return da(a)=="array"}function ea(a){var b=da(a);return b=="array"||b=="object"&&typeof a.length=="number"}function z(a){return typeof a=="string"}function fa(a){return typeof a=="number"}function ga(a){return da(a)=="function"}function ha(a){a=da(a);return a=="object"||a=="array"||a=="function"}function ia(a){return a[ja]||(a[ja]=++ka)}
var ja="closure_uid_"+Math.floor(Math.random()*2147483648).toString(36),ka=0;function la(a){return a.call.apply(a.bind,arguments)}function ma(a,b){var c=b||t;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var b=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(b,d);return a.apply(c,b)}}else return function(){return a.apply(c,arguments)}}
function A(){A=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?la:ma;return A.apply(n,arguments)}function na(a){var b=Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.unshift.apply(c,b);return a.apply(this,c)}}var B=Date.now||function(){return+new Date};function C(a,b){function c(){}c.prototype=b.prototype;a.b=b.prototype;a.prototype=new c;a.prototype.constructor=a};function oa(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")}function pa(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}var qa=/^[a-zA-Z0-9\-_.!~*'()]*$/;function ra(a){a=String(a);if(!qa.test(a))return encodeURIComponent(a);return a}function sa(a){if(!ta.test(a))return a;a.indexOf("&")!=-1&&(a=a.replace(ua,"&amp;"));a.indexOf("<")!=-1&&(a=a.replace(va,"&lt;"));a.indexOf(">")!=-1&&(a=a.replace(wa,"&gt;"));a.indexOf('"')!=-1&&(a=a.replace(xa,"&quot;"));return a}
var ua=/&/g,va=/</g,wa=/>/g,xa=/\"/g,ta=/[&<>\"]/;function ya(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}
function za(a,b){for(var c=0,d=pa(String(a)).split("."),f=pa(String(b)).split("."),g=Math.max(d.length,f.length),h=0;c==0&&h<g;h++){var j=d[h]||"",k=f[h]||"",l=RegExp("(\\d*)(\\D*)","g"),o=RegExp("(\\d*)(\\D*)","g");do{var m=l.exec(j)||["","",""],u=o.exec(k)||["","",""];if(m[0].length==0&&u[0].length==0)break;c=Aa(m[1].length==0?0:parseInt(m[1],10),u[1].length==0?0:parseInt(u[1],10))||Aa(m[2].length==0,u[2].length==0)||Aa(m[2],u[2])}while(c==0)}return c}
function Aa(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};function D(){Ba&&(Ca[ia(this)]=this)}var Ba=!1,Ca={};D.prototype.Ye=!1;D.prototype.j=function(){if(!this.Ye&&(this.Ye=!0,this.h(),Ba)){var a=ia(this);Ca.hasOwnProperty(a)||e(Error(this+" did not call the goog.Disposable base constructor or was disposed of after a clearUndisposedObjects call"));delete Ca[a]}};D.prototype.h=function(){this.ji&&Da.apply(n,this.ji)};function Da(){for(var a=0,b=arguments.length;a<b;++a){var c=arguments[a];ea(c)?Da.apply(n,c):c&&typeof c.j=="function"&&c.j()}};function Ea(a,b,c,d){this.zoom=a||0;this.x=b||0;this.y=c||0;this.Ag=0;this.$b=d||0;this.sd=this.Sb=n;this.state=Fa}C(Ea,D);Ea.prototype.ei=v;Ea.prototype.h=function(){this.Sb=n;if(this.sd)this.ei(this.sd),this.sd=n};var Fa=0;function E(a,b){this.x=w(a)?a:0;this.y=w(b)?b:0}E.prototype.ja=function(){return new E(this.x,this.y)};function Ga(a,b){return new E(a.x-b.x,a.y-b.y)};function Ha(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}Ha.prototype.ja=function(){return new Ha(this.top,this.right,this.bottom,this.left)};Ha.prototype.contains=function(a){a=!this||!a?!1:a instanceof Ha?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom;return a};function Ia(a,b){for(var c in a)b.call(i,a[c],c,a)}function Ja(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ka(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function La(){var a=Ma,b;for(b in a)return!1;return!0}function Na(a,b){b in a&&delete a[b]}function Oa(a,b,c){b in a&&e(Error('The object already contains the key "'+b+'"'));a[b]=c}var Pa=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];
function Qa(a){for(var b,c,d=1;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var f=0;f<Pa.length;f++)b=Pa[f],Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])}};var G=Array.prototype,Ra=G.indexOf?function(a,b,c){return G.indexOf.call(a,b,c)}:function(a,b,c){c=c==n?0:c<0?Math.max(0,a.length+c):c;if(z(a)){if(!z(b)||b.length!=1)return-1;return a.indexOf(b,c)}for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},H=G.forEach?function(a,b,c){G.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=z(a)?a.split(""):a,g=0;g<d;g++)g in f&&b.call(c,f[g],g,a)},Sa=G.filter?function(a,b,c){return G.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=[],g=
0,h=z(a)?a.split(""):a,j=0;j<d;j++)if(j in h){var k=h[j];b.call(c,k,j,a)&&(f[g++]=k)}return f},Ta=G.map?function(a,b,c){return G.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=Array(d),g=z(a)?a.split(""):a,h=0;h<d;h++)h in g&&(f[h]=b.call(c,g[h],h,a));return f},Ua=G.every?function(a,b,c){return G.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=z(a)?a.split(""):a,g=0;g<d;g++)if(g in f&&!b.call(c,f[g],g,a))return!1;return!0};
function Va(a,b){var c;a:{c=a.length;for(var d=z(a)?a.split(""):a,f=0;f<c;f++)if(f in d&&b.call(i,d[f],f,a)){c=f;break a}c=-1}return c<0?n:z(a)?a.charAt(c):a[c]}function Wa(a,b){return Ra(a,b)>=0}function Xa(a,b){var c=Ra(a,b),d;(d=c>=0)&&G.splice.call(a,c,1);return d}function Ya(){return G.concat.apply(G,arguments)}function Za(a){if(y(a))return Ya(a);else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}}
function $a(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],d;if(y(c)||(d=ea(c))&&c.hasOwnProperty("callee"))a.push.apply(a,c);else if(d)for(var f=a.length,g=c.length,h=0;h<g;h++)a[f+h]=c[h];else a.push(c)}}function ab(a){G.splice.apply(a,bb(arguments,1))}function bb(a,b,c){return arguments.length<=2?G.slice.call(a,b):G.slice.call(a,b,c)}function cb(a,b){G.sort.call(a,b||db)}function db(a,b){return a>b?1:a<b?-1:0}
function eb(){for(var a=[],b=0;b<arguments.length;b++){var c=arguments[b];y(c)?a.push.apply(a,eb.apply(n,c)):a.push(c)}return a};function fb(a){if(typeof a.Rb=="function")return a.Rb();if(z(a))return a.split("");if(ea(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ja(a)}function gb(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(ea(a)||z(a))H(a,b,c);else{var d;if(typeof a.pc=="function")d=a.pc();else if(typeof a.Rb!="function")if(ea(a)||z(a)){d=[];for(var f=a.length,g=0;g<f;g++)d.push(g)}else d=Ka(a);else d=i;for(var f=fb(a),g=f.length,h=0;h<g;h++)b.call(c,f[h],d&&d[h],a)}};var hb="StopIteration"in t?t.StopIteration:Error("StopIteration");function ib(){}ib.prototype.next=function(){e(hb)};ib.prototype.Le=function(){return this};function jb(a){if(a instanceof ib)return a;if(typeof a.Le=="function")return a.Le(!1);if(ea(a)){var b=0,c=new ib;c.next=function(){for(;;)if(b>=a.length&&e(hb),b in a)return a[b++];else b++};return c}e(Error("Not implemented"))}
function kb(a,b,c){if(ea(a))try{H(a,b,c)}catch(d){d!==hb&&e(d)}else{a=jb(a);try{for(;;)b.call(c,a.next(),i,a)}catch(f){f!==hb&&e(f)}}};function lb(a){this.Ya={};this.A=[];var b=arguments.length;if(b>1){b%2&&e(Error("Uneven number of arguments"));for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else if(a){a instanceof lb?(b=a.pc(),c=a.Rb()):(b=Ka(a),c=Ja(a));for(var d=0;d<b.length;d++)this.set(b[d],c[d])}}s=lb.prototype;s.z=0;s.Yd=0;s.df=p("z");s.Rb=function(){mb(this);for(var a=[],b=0;b<this.A.length;b++)a.push(this.Ya[this.A[b]]);return a};s.pc=function(){mb(this);return this.A.concat()};
s.Ob=function(a){return nb(this.Ya,a)};s.equals=function(a,b){if(this===a)return!0;if(this.z!=a.df())return!1;var c=b||ob;mb(this);for(var d,f=0;d=this.A[f];f++)if(!c(this.get(d),a.get(d)))return!1;return!0};function ob(a,b){return a===b}s.clear=function(){this.Ya={};this.Yd=this.z=this.A.length=0};s.remove=function(a){if(nb(this.Ya,a))return delete this.Ya[a],this.z--,this.Yd++,this.A.length>2*this.z&&mb(this),!0;return!1};
function mb(a){if(a.z!=a.A.length){for(var b=0,c=0;b<a.A.length;){var d=a.A[b];nb(a.Ya,d)&&(a.A[c++]=d);b++}a.A.length=c}if(a.z!=a.A.length){for(var f={},c=b=0;b<a.A.length;)d=a.A[b],nb(f,d)||(a.A[c++]=d,f[d]=1),b++;a.A.length=c}}s.get=function(a,b){if(nb(this.Ya,a))return this.Ya[a];return b};s.set=function(a,b){nb(this.Ya,a)||(this.z++,this.A.push(a),this.Yd++);this.Ya[a]=b};s.ja=function(){return new lb(this)};
s.Le=function(a){mb(this);var b=0,c=this.A,d=this.Ya,f=this.Yd,g=this,h=new ib;h.next=function(){for(;;){f!=g.Yd&&e(Error("The map has changed since the iterator was created"));b>=c.length&&e(hb);var h=c[b++];return a?h:d[h]}};return h};function nb(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function pb(a){this.name=a;this.Zc=0;this.bk=[];this.aj=-qb;this.Qi=qb;this.bj=-Math.PI;this.Ri=Math.PI;this.Se=[]}function rb(a,b){if(a.Se[b]==n){var c=1<<b;a.Se[b]=new Ha(Math.floor((0.5-sb(a.Qi)/(Math.PI*2))*c),Math.floor((a.Ri/(2*Math.PI)+0.5)*c),Math.floor((0.5-sb(a.aj)/(Math.PI*2))*c),Math.floor((a.bj/(2*Math.PI)+0.5)*c))}return a.Se[b]}s=pb.prototype;s.zd=q(0);s.Te=q(!1);s.Uf=q(!1);function tb(a,b,c,d){ub(a,b,c,d)}s.nd=aa();s.Fj=v;s.ci=v;
function vb(a,b,c,d,f){this.$j=a;this.ak=b;this.hk=c;this.ik=d;this.jk=f};function wb(a){pb.call(this,a);this.Nf=""}C(wb,pb);wb.prototype.Te=q(!0);wb.prototype.Uf=function(a){var b=this.Nf!=a;this.Nf=a;return b};function ub(a,b,c,d){var f=new Image;f.onload=A(function(){b.state=20;this.Zc--;c(b)},a);f.onerror=A(function(){b.Ag++;b.state=-10;this.Zc--;d&&d(b)},a);b.state=10;b.Sb=f;f.di="";var g=xb(a,b.zoom,b.x,b.y);f.src=a.Nf+g;a.Zc++};function I(a,b,c){return Math.min(Math.max(a,b),c)}function yb(a,b){var c=a%b;return c*b<0?c+b:c}function J(a){return a*Math.PI/180}function zb(a){return a*180/Math.PI};function Ab(a){var b=w(i),c=new XMLHttpRequest;if(b)c.onreadystatechange=function(){c.readyState==4&&i(c.responseText)};c.open("GET",a,b);c.send(n);return b?"":c.responseText}function Bb(a){a=yb(a,2*Math.PI);return a>Math.PI?a-2*Math.PI:a};function K(a,b,c,d,f,g,h,j){wb.call(this,a);this.url=b;this.minZoom=c;this.maxZoom=d;this.tileSize=f;this.ni=g===!0;this.$f=h||[];this.copyright=j||""}C(K,wb);K.prototype.zd=p("minZoom");function xb(a,b,c,d){var f=a.url.replace("{z}",b.toFixed(0)),f=f.replace("{x}",c.toFixed(0)),f=f.replace("{y}",(a.ni?(1<<b)-d-1:d).toFixed(0));a.$f.length>0&&(f=f.replace("{sub}",a.$f[yb(c+d+b,a.$f.length)]));return f}K.prototype.nd=function(a){this.copyright.length>0&&Cb(a,this.copyright)};var Db=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Eb(a,b){var c;a instanceof Eb?(this.fd(b==n?a.mb:b),Fb(this,a.ac),Gb(this,a.Xd),Hb(this,a.Qc),Ib(this,a.cd),this.setPath(a.getPath()),Jb(this,a.pb.ja()),Kb(this,a.wd)):a&&(c=String(a).match(Db))?(this.fd(!!b),Fb(this,c[1]||"",!0),Gb(this,c[2]||"",!0),Hb(this,c[3]||"",!0),Ib(this,c[4]),this.setPath(c[5]||"",!0),Jb(this,c[6]||"",!0),Kb(this,c[7]||"",!0)):(this.fd(!!b),this.pb=new Lb(n,this,this.mb))}s=Eb.prototype;s.ac="";s.Xd="";s.Qc="";s.cd=n;s.zc="";s.wd="";s.Ji=!1;s.mb=!1;
s.toString=function(){if(this.Pa)return this.Pa;var a=[];this.ac&&a.push(Mb(this.ac,Nb),":");if(this.Qc){a.push("//");this.Xd&&a.push(Mb(this.Xd,Nb),"@");var b;b=this.Qc;b=z(b)?encodeURIComponent(b):n;a.push(b);this.cd!=n&&a.push(":",String(this.cd))}this.zc&&(this.Qc&&this.zc.charAt(0)!="/"&&a.push("/"),a.push(Mb(this.zc,this.zc.charAt(0)=="/"?Ob:Pb)));(b=String(this.pb))&&a.push("?",b);this.wd&&a.push("#",Mb(this.wd,Qb));return this.Pa=a.join("")};
s.ja=function(){var a=this.ac,b=this.Xd,c=this.Qc,d=this.cd,f=this.zc,g=this.pb.ja(),h=this.wd,j=new Eb(n,this.mb);a&&Fb(j,a);b&&Gb(j,b);c&&Hb(j,c);d&&Ib(j,d);f&&j.setPath(f);g&&Jb(j,g);h&&Kb(j,h);return j};function Fb(a,b,c){Rb(a);delete a.Pa;a.ac=c?b?decodeURIComponent(b):"":b;if(a.ac)a.ac=a.ac.replace(/:$/,"")}function Gb(a,b,c){Rb(a);delete a.Pa;a.Xd=c?b?decodeURIComponent(b):"":b}function Hb(a,b,c){Rb(a);delete a.Pa;a.Qc=c?b?decodeURIComponent(b):"":b}
function Ib(a,b){Rb(a);delete a.Pa;b?(b=Number(b),(isNaN(b)||b<0)&&e(Error("Bad port number "+b)),a.cd=b):a.cd=n}s.getPath=p("zc");s.setPath=function(a,b){Rb(this);delete this.Pa;this.zc=b?a?decodeURIComponent(a):"":a;return this};function Jb(a,b,c){Rb(a);delete a.Pa;b instanceof Lb?(a.pb=b,a.pb.Wd=a,a.pb.fd(a.mb)):(c||(b=Mb(b,Sb)),a.pb=new Lb(b,a,a.mb))}function Tb(a,b,c){Rb(a);delete a.Pa;y(c)||(c=[String(c)]);a.pb.setValues(b,c)}
function Kb(a,b,c){Rb(a);delete a.Pa;a.wd=c?b?decodeURIComponent(b):"":b}function Rb(a){a.Ji&&e(Error("Tried to modify a read-only Uri"))}s.fd=function(a){this.mb=a;this.pb&&this.pb.fd(a);return this};var Ub=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/;function Mb(a,b){var c=n;z(a)&&(c=a,Ub.test(c)||(c=encodeURI(a)),c.search(b)>=0&&(c=c.replace(b,Vb)));return c}function Vb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Nb=/[#\/\?@]/g,Pb=/[\#\?:]/g,Ob=/[\#\?]/g,Sb=/[\#\?@]/g,Qb=/#/g;
function Lb(a,b,c){this.ub=a||n;this.Wd=b||n;this.mb=!!c}function Wb(a){if(!a.F&&(a.F=new lb,a.ub))for(var b=a.ub.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),f=n,g=n;d>=0?(f=b[c].substring(0,d),g=b[c].substring(d+1)):f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));f=Xb(a,f);a.add(f,g?decodeURIComponent(g.replace(/\+/g," ")):"")}}s=Lb.prototype;s.F=n;s.z=n;s.df=function(){Wb(this);return this.z};
s.add=function(a,b){Wb(this);Yb(this);a=Xb(this,a);if(this.Ob(a)){var c=this.F.get(a);y(c)?c.push(b):this.F.set(a,[c,b])}else this.F.set(a,b);this.z++;return this};s.remove=function(a){Wb(this);a=Xb(this,a);if(this.F.Ob(a)){Yb(this);var b=this.F.get(a);y(b)?this.z-=b.length:this.z--;return this.F.remove(a)}return!1};s.clear=function(){Yb(this);this.F&&this.F.clear();this.z=0};s.Ob=function(a){Wb(this);a=Xb(this,a);return this.F.Ob(a)};
s.pc=function(){Wb(this);for(var a=this.F.Rb(),b=this.F.pc(),c=[],d=0;d<b.length;d++){var f=a[d];if(y(f))for(var g=0;g<f.length;g++)c.push(b[d]);else c.push(b[d])}return c};s.Rb=function(a){Wb(this);if(a)if(a=Xb(this,a),this.Ob(a)){var b=this.F.get(a);if(y(b))return b;else a=[],a.push(b)}else a=[];else for(var b=this.F.Rb(),a=[],c=0;c<b.length;c++){var d=b[c];y(d)?$a(a,d):a.push(d)}return a};
s.set=function(a,b){Wb(this);Yb(this);a=Xb(this,a);if(this.Ob(a)){var c=this.F.get(a);y(c)?this.z-=c.length:this.z--}this.F.set(a,b);this.z++;return this};s.get=function(a,b){Wb(this);a=Xb(this,a);if(this.Ob(a)){var c=this.F.get(a);return y(c)?c[0]:c}else return b};s.setValues=function(a,b){Wb(this);Yb(this);a=Xb(this,a);if(this.Ob(a)){var c=this.F.get(a);y(c)?this.z-=c.length:this.z--}b.length>0&&(this.F.set(a,b),this.z+=b.length)};
s.toString=function(){if(this.ub)return this.ub;if(!this.F)return"";for(var a=[],b=0,c=this.F.pc(),d=0;d<c.length;d++){var f=c[d],g=ra(f),f=this.F.get(f);if(y(f))for(var h=0;h<f.length;h++)b>0&&a.push("&"),a.push(g),f[h]!==""&&a.push("=",ra(f[h])),b++;else b>0&&a.push("&"),a.push(g),f!==""&&a.push("=",ra(f)),b++}return this.ub=a.join("")};function Yb(a){delete a.We;delete a.ub;a.Wd&&delete a.Wd.Pa}
s.ja=function(){var a=new Lb;if(this.We)a.We=this.We;if(this.ub)a.ub=this.ub;if(this.F)a.F=this.F.ja();return a};function Xb(a,b){var c=String(b);a.mb&&(c=c.toLowerCase());return c}s.fd=function(a){a&&!this.mb&&(Wb(this),Yb(this),gb(this.F,function(a,c){var d=c.toLowerCase();c!=d&&(this.remove(c),this.add(d,a))},this));this.mb=a};var Zb;function $b(a){return(a=a.className)&&typeof a.split=="function"?a.split(/\s+/):[]}function ac(a){var b=$b(a),c=bb(arguments,1),d;d=b;for(var f=0,g=0;g<c.length;g++)Wa(d,c[g])||(d.push(c[g]),f++);d=f==c.length;a.className=b.join(" ");return d}function bc(a){var b=$b(a),c=bb(arguments,1),d;d=b;for(var f=0,g=0;g<d.length;g++)Wa(c,d[g])&&(ab(d,g--,1),f++);d=f==c.length;a.className=b.join(" ");return d};var cc,dc,ec,fc,gc,hc,ic;function jc(){return t.navigator?t.navigator.userAgent:n}function kc(){return t.navigator}gc=fc=ec=dc=cc=!1;var lc;if(lc=jc()){var mc=kc();cc=lc.indexOf("Opera")==0;dc=!cc&&lc.indexOf("MSIE")!=-1;fc=(ec=!cc&&lc.indexOf("WebKit")!=-1)&&lc.indexOf("Mobile")!=-1;gc=!cc&&!ec&&mc.product=="Gecko"}var nc=cc,L=dc,M=gc,N=ec,oc=fc,pc,qc=kc();pc=qc&&qc.platform||"";hc=pc.indexOf("Mac")!=-1;ic=pc.indexOf("Win")!=-1;var rc=!!kc()&&(kc().appVersion||"").indexOf("X11")!=-1,sc;
a:{var tc="",uc;if(nc&&t.opera)var vc=t.opera.version,tc=typeof vc=="function"?vc():vc;else if(M?uc=/rv\:([^\);]+)(\)|;)/:L?uc=/MSIE\s+([^\);]+)(\)|;)/:N&&(uc=/WebKit\/(\S+)/),uc)var wc=uc.exec(jc()),tc=wc?wc[1]:"";if(L){var xc,yc=t.document;xc=yc?yc.documentMode:i;if(xc>parseFloat(tc)){sc=String(xc);break a}}sc=tc}var zc={};function O(a){return zc[a]||(zc[a]=za(sc,a)>=0)};function Ac(a,b){this.width=a;this.height=b}function Bc(a,b){if(a==b)return!0;if(!a||!b)return!1;return a.width==b.width&&a.height==b.height}s=Ac.prototype;s.ja=function(){return new Ac(this.width,this.height)};s.od=function(){return this.width/this.height};s.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};s.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
s.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};s.scale=function(a){this.width*=a;this.height*=a;return this};var Cc=!L||O("9");!M&&!L||L&&O("9")||M&&O("1.9.1");var Dc=L&&!O("9");function Ec(a){return a?new Fc(P(a)):Zb||(Zb=new Fc)}function Gc(a){return z(a)?document.getElementById(a):a}
function Hc(a,b,c,d){a=d||a;b=b&&b!="*"?b.toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(!N||Ic(document)||O("528"))&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName)if(a=a.getElementsByClassName(c),b){for(var d={},f=0,g=0,h;h=a[g];g++)b==h.nodeName&&(d[f++]=h);d.length=f;return d}else return a;a=a.getElementsByTagName(b||"*");if(c){d={};for(g=f=0;h=a[g];g++)b=h.className,typeof b.split=="function"&&Wa(b.split(/\s+/),c)&&(d[f++]=h);d.length=f;return d}else return a}
function Jc(a,b){Ia(b,function(b,d){d=="style"?a.style.cssText=b:d=="class"?a.className=b:d=="for"?a.htmlFor=b:d in Kc?a.setAttribute(Kc[d],b):a[d]=b})}var Kc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",maxlength:"maxLength",type:"type"};function Q(){return Lc(document,arguments)}
function Lc(a,b){var c=b[0],d=b[1];if(!Cc&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',sa(d.name),'"');if(d.type){c.push(' type="',sa(d.type),'"');var f={};Qa(f,d);d=f;delete d.type}c.push(">");c=c.join("")}c=a.createElement(c);if(d)z(d)?c.className=d:y(d)?ac.apply(n,[c].concat(d)):Jc(c,d);b.length>2&&Mc(a,c,b,2);return c}
function Mc(a,b,c,d){function f(c){c&&b.appendChild(z(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];ea(g)&&!(ha(g)&&g.nodeType>0)?H(Nc(g)?Za(g):g,f):f(g)}}function Ic(a){return a.compatMode=="CSS1Compat"}function Cb(a){Mc(P(a),a,arguments,1)}function Oc(a){for(var b;b=a.firstChild;)a.removeChild(b)}function Pc(a){return a&&a.parentNode?a.parentNode.removeChild(a):n}
function Qc(a){if(a.firstElementChild!=i)return a.firstElementChild;for(a=a.firstChild;a&&a.nodeType!=1;)a=a.nextSibling;return a}function Rc(a,b){if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function P(a){return a.nodeType==9?a:a.ownerDocument||a.document}
function Sc(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else Oc(a),a.appendChild(P(a).createTextNode(b))}var Tc={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Uc={IMG:" ",BR:"\n"};function Vc(a){var b=a.getAttributeNode("tabindex");if(b&&b.specified)return a=a.tabIndex,fa(a)&&a>=0;return!1}function Wc(a){var b=[];Xc(a,b,!1);return b.join("")}
function Xc(a,b,c){if(!(a.nodeName in Tc))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Uc)b.push(Uc[a.nodeName]);else for(a=a.firstChild;a;)Xc(a,b,c),a=a.nextSibling}function Nc(a){if(a&&typeof a.length=="number")if(ha(a))return typeof a.item=="function"||typeof a.item=="string";else if(ga(a))return typeof a.item=="function";return!1}function Fc(a){this.B=a||t.document||document}s=Fc.prototype;s.V=Ec;
function Yc(a){return a.B}s.c=function(a){return z(a)?this.B.getElementById(a):a};s.r=function(){return Lc(this.B,arguments)};s.createElement=function(a){return this.B.createElement(a)};s.createTextNode=function(a){return this.B.createTextNode(a)};function Zc(a){var b=a.B,a=!N&&Ic(b)?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new E(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}s.appendChild=function(a,b){a.appendChild(b)};s.nh=Oc;s.removeNode=Pc;s.Cg=Qc;s.contains=Rc;function $c(a,b){this.Wd=new Eb(a);this.ai=b?b:"callback";this.Rd=5E3}var ad=0;
$c.prototype.send=function(a,b,c,d){a=a||n;if(!document.documentElement.firstChild)return c&&c(a),n;d=d||"_"+(ad++).toString(36)+B().toString(36);t._callbacks_||(t._callbacks_={});var f=document.createElement("script"),g=n;this.Rd>0&&(g=t.setTimeout(bd(d,f,a,c),this.Rd));c=this.Wd.ja();if(a)for(var h in a)(!a.hasOwnProperty||a.hasOwnProperty(h))&&Tb(c,h,a[h]);b&&(t._callbacks_[d]=cd(d,f,b,g),Tb(c,this.ai,"_callbacks_."+d));Jc(f,{type:"text/javascript",id:d,charset:"UTF-8",src:c.toString()});document.getElementsByTagName("head")[0].appendChild(f);
return{Xa:d,Rd:g}};$c.prototype.cancel=function(a){if(a&&a.Xa){var b=Gc(a.Xa);b&&b.tagName=="SCRIPT"&&typeof t._callbacks_[a.Xa]=="function"&&(a.Rd&&t.clearTimeout(a.Rd),dd(a.Xa,b,!1))}};function bd(a,b,c,d){return function(){dd(a,b,!1);d&&d(c)}}function cd(a,b,c,d){return function(){t.clearTimeout(d);dd(a,b,!0);c.apply(i,arguments)}}function dd(a,b,c){t.setTimeout(function(){Pc(b)},0);t._callbacks_[a]&&(c?delete t._callbacks_[a]:t._callbacks_[a]=v)};function ed(a,b){this.Uj=a||"http://open.mapquestapi.com/nominatim/v1/search";this.Gd=b||{};this.Tg=new $c(this.Uj,"json_callback")}
function fd(a,b,c,d){a.Gd.q=b;a.Gd.format="json";a.Gd.addressdetails=1;a.Gd.limit=c;if(!b||b.length==1)d(b,[]);else{if(c==1)a.oj=b;if(!(c>1&&b===a.oj))a.ph!==n&&a.Tg.cancel(a.ph),a.ph=a.Tg.send(a.Gd,function(a){var c=Sa(a,function(a){return a["class"]=="place"});c.length>0?(H(c,function(a){var b=a.address.country_code=="us"?a.address.state:a.address.country;a.type=="suburb"&&(b=a.address.city+", "+b);a.display_name=a.address[a.type]?a.address[a.type]+", "+b:a.display_name}),d(b,c)):d(b,a)})}};var gd;var hd=!L||O("9"),id=L&&!O("8");function R(a,b){D.call(this);this.type=a;this.currentTarget=this.target=b}C(R,D);s=R.prototype;s.h=function(){delete this.type;delete this.target;delete this.currentTarget};s.Cc=!1;s.Jd=!0;s.stopPropagation=function(){this.Cc=!0};s.preventDefault=function(){this.Jd=!1};function jd(a){a.preventDefault()};var kd=new Function("a","return a");function ld(a,b){a&&this.Ub(a,b)}C(ld,R);var nd=[1,4,2];s=ld.prototype;s.target=n;s.relatedTarget=n;s.offsetX=0;s.offsetY=0;s.clientX=0;s.clientY=0;s.screenX=0;s.screenY=0;s.button=0;s.keyCode=0;s.charCode=0;s.ctrlKey=!1;s.altKey=!1;s.shiftKey=!1;s.metaKey=!1;s.Aj=!1;s.pa=n;
s.Ub=function(a,b){var c=this.type=a.type;R.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(M){var f;a:{try{kd(d.nodeName);f=!0;break a}catch(g){}f=!1}f||(d=n)}}else if(c=="mouseover")d=a.fromElement;else if(c=="mouseout")d=a.toElement;this.relatedTarget=d;this.offsetX=a.offsetX!==i?a.offsetX:a.layerX;this.offsetY=a.offsetY!==i?a.offsetY:a.layerY;this.clientX=a.clientX!==i?a.clientX:a.pageX;this.clientY=a.clientY!==i?a.clientY:a.pageY;this.screenX=
a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.Aj=hc?a.metaKey:a.ctrlKey;this.state=a.state;this.pa=a;delete this.Jd;delete this.Cc};function od(a,b){return hd?a.pa.button==b:a.type=="click"?b==0:!!(a.pa.button&nd[b])}function pd(a){return od(a,0)&&!(N&&hc&&a.ctrlKey)}
s.stopPropagation=function(){ld.b.stopPropagation.call(this);this.pa.stopPropagation?this.pa.stopPropagation():this.pa.cancelBubble=!0};s.preventDefault=function(){ld.b.preventDefault.call(this);var a=this.pa;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,id)try{if(a.ctrlKey||a.keyCode>=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}};s.pi=p("pa");s.h=function(){ld.b.h.call(this);this.relatedTarget=this.currentTarget=this.target=this.pa=n};function qd(){}var rd=0;s=qd.prototype;s.key=0;s.Dc=!1;s.rg=!1;s.Ub=function(a,b,c,d,f,g){ga(a)?this.Sg=!0:a&&a.handleEvent&&ga(a.handleEvent)?this.Sg=!1:e(Error("Invalid listener argument"));this.Yc=a;this.lh=b;this.src=c;this.type=d;this.capture=!!f;this.me=g;this.rg=!1;this.key=++rd;this.Dc=!1};s.handleEvent=function(a){if(this.Sg)return this.Yc.call(this.me||this.src,a);return this.Yc.handleEvent.call(this.Yc,a)};var sd,ud=(sd="ScriptEngine"in t&&t.ScriptEngine()=="JScript")?t.ScriptEngineMajorVersion()+"."+t.ScriptEngineMinorVersion()+"."+t.ScriptEngineBuildVersion():"0";function vd(a,b){D.call(this);this.$g=b;this.oc=[];a>this.$g&&e(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var c=0;c<a;c++)this.oc.push(this.sb?this.sb():{})}C(vd,D);vd.prototype.sb=n;vd.prototype.xg=n;vd.prototype.getObject=function(){if(this.oc.length)return this.oc.pop();return this.sb?this.sb():{}};function wd(a,b){a.oc.length<a.$g?a.oc.push(b):xd(a,b)}function xd(a,b){if(a.xg)a.xg(b);else if(ha(b))if(ga(b.j))b.j();else for(var c in b)delete b[c]}
vd.prototype.h=function(){vd.b.h.call(this);for(var a=this.oc;a.length;)xd(this,a.pop());delete this.oc};var yd,zd,Ad,Bd,Cd,Dd,Ed,Fd,Gd,Hd,Id;
(function(){function a(){return{z:0,$a:0}}function b(){return[]}function c(){function a(b){return h.call(a.src,a.key,b)}return a}function d(){return new qd}function f(){return new ld}var g=sd&&!(za(ud,"5.7")>=0),h;Dd=function(a){h=a};if(g){yd=function(){return j.getObject()};zd=function(a){wd(j,a)};Ad=function(){return k.getObject()};Bd=function(a){wd(k,a)};Cd=function(){return l.getObject()};Ed=function(){wd(l,c())};Fd=function(){return o.getObject()};Gd=function(a){wd(o,a)};Hd=function(){return m.getObject()};
Id=function(a){wd(m,a)};var j=new vd(0,600);j.sb=a;var k=new vd(0,600);k.sb=b;var l=new vd(0,600);l.sb=c;var o=new vd(0,600);o.sb=d;var m=new vd(0,600);m.sb=f}else yd=a,zd=v,Ad=b,Bd=v,Cd=c,Ed=v,Fd=d,Gd=v,Hd=f,Id=v})();var Jd={},S={},Kd={},Ld={};
function T(a,b,c,d,f){if(b)if(y(b)){for(var g=0;g<b.length;g++)T(a,b[g],c,d,f);return n}else{var d=!!d,h=S;b in h||(h[b]=yd());h=h[b];d in h||(h[d]=yd(),h.z++);var h=h[d],j=ia(a),k;h.$a++;if(h[j]){k=h[j];for(g=0;g<k.length;g++)if(h=k[g],h.Yc==c&&h.me==f){if(h.Dc)break;return k[g].key}}else k=h[j]=Ad(),h.z++;g=Cd();g.src=a;h=Fd();h.Ub(c,g,a,b,d,f);c=h.key;g.key=c;k.push(h);Jd[c]=h;Kd[j]||(Kd[j]=Ad());Kd[j].push(h);a.addEventListener?(a==t||!a.vg)&&a.addEventListener(b,g,d):a.attachEvent(Md(b),g);return c}else e(Error("Invalid event type"))}
function Nd(a,b,c,d,f){if(y(b))for(var g=0;g<b.length;g++)Nd(a,b[g],c,d,f);else if(d=!!d,a=Od(a,b,d))for(g=0;g<a.length;g++)if(a[g].Yc==c&&a[g].capture==d&&a[g].me==f){U(a[g].key);break}}function U(a){if(Jd[a]){var b=Jd[a];if(!b.Dc){var c=b.src,d=b.type,f=b.lh,g=b.capture;c.removeEventListener?(c==t||!c.vg)&&c.removeEventListener(d,f,g):c.detachEvent&&c.detachEvent(Md(d),f);c=ia(c);f=S[d][g][c];if(Kd[c]){var h=Kd[c];Xa(h,b);h.length==0&&delete Kd[c]}b.Dc=!0;f.dh=!0;Pd(d,g,c,f);delete Jd[a]}}}
function Pd(a,b,c,d){if(!d.se&&d.dh){for(var f=0,g=0;f<d.length;f++)if(d[f].Dc){var h=d[f].lh;h.src=n;Ed(h);Gd(d[f])}else f!=g&&(d[g]=d[f]),g++;d.length=g;d.dh=!1;g==0&&(Bd(d),delete S[a][b][c],S[a][b].z--,S[a][b].z==0&&(zd(S[a][b]),delete S[a][b],S[a].z--),S[a].z==0&&(zd(S[a]),delete S[a]))}}
function Qd(a){var b,c=0,d=b==n;b=!!b;if(a==n)Ia(Kd,function(a){for(var f=a.length-1;f>=0;f--){var g=a[f];if(d||b==g.capture)U(g.key),c++}});else if(a=ia(a),Kd[a])for(var a=Kd[a],f=a.length-1;f>=0;f--){var g=a[f];if(d||b==g.capture)U(g.key),c++}}function Od(a,b,c){var d=S;if(b in d&&(d=d[b],c in d&&(d=d[c],a=ia(a),d[a])))return d[a];return n}function Md(a){if(a in Ld)return Ld[a];return Ld[a]="on"+a}
function Rd(a,b,c,d,f){var g=1,b=ia(b);if(a[b]){a.$a--;a=a[b];a.se?a.se++:a.se=1;try{for(var h=a.length,j=0;j<h;j++){var k=a[j];k&&!k.Dc&&(g&=Sd(k,f)!==!1)}}finally{a.se--,Pd(c,d,b,a)}}return Boolean(g)}function Sd(a,b){var c=a.handleEvent(b);a.rg&&U(a.key);return c}
Dd(function(a,b){if(!Jd[a])return!0;var c=Jd[a],d=c.type,f=S;if(!(d in f))return!0;var f=f[d],g,h;gd===i&&(gd=L&&!t.addEventListener);if(gd){var j;if(!(j=b))a:{j="window.event".split(".");for(var k=t;g=j.shift();)if(k[g]!=n)k=k[g];else{j=n;break a}j=k}g=j;j=!0 in f;k=!1 in f;if(j){if(g.keyCode<0||g.returnValue!=i)return!0;a:{var l=!1;if(g.keyCode==0)try{g.keyCode=-1;break a}catch(o){l=!0}if(l||g.returnValue==i)g.returnValue=!0}}l=Hd();l.Ub(g,this);g=!0;try{if(j){for(var m=Ad(),u=l.currentTarget;u;u=
u.parentNode)m.push(u);h=f[!0];h.$a=h.z;for(var r=m.length-1;!l.Cc&&r>=0&&h.$a;r--)l.currentTarget=m[r],g&=Rd(h,m[r],d,!0,l);if(k){h=f[!1];h.$a=h.z;for(r=0;!l.Cc&&r<m.length&&h.$a;r++)l.currentTarget=m[r],g&=Rd(h,m[r],d,!1,l)}}else g=Sd(c,l)}finally{if(m)m.length=0,Bd(m);l.j();Id(l)}return g}d=new ld(b,this);try{g=Sd(c,d)}finally{d.j()}return g});function W(){D.call(this)}C(W,D);s=W.prototype;s.vg=!0;s.Ae=n;s.Tf=ba("Ae");s.addEventListener=function(a,b,c,d){T(this,a,b,c,d)};s.removeEventListener=function(a,b,c,d){Nd(this,a,b,c,d)};
s.dispatchEvent=function(a){var b=a.type||a,c=S;if(b in c){if(z(a))a=new R(a,this);else if(a instanceof R)a.target=a.target||this;else{var d=a,a=new R(b,this);Qa(a,d)}var d=1,f,c=c[b],b=!0 in c,g;if(b){f=[];for(g=this;g;g=g.Ae)f.push(g);g=c[!0];g.$a=g.z;for(var h=f.length-1;!a.Cc&&h>=0&&g.$a;h--)a.currentTarget=f[h],d&=Rd(g,f[h],a.type,!0,a)&&a.Jd!=!1}if(!1 in c)if(g=c[!1],g.$a=g.z,b)for(h=0;!a.Cc&&h<f.length&&g.$a;h++)a.currentTarget=f[h],d&=Rd(g,f[h],a.type,!1,a)&&a.Jd!=!1;else for(f=this;!a.Cc&&
f&&g.$a;f=f.Ae)a.currentTarget=f,d&=Rd(g,f,a.type,!1,a)&&a.Jd!=!1;a=Boolean(d)}else a=!0;return a};s.h=function(){W.b.h.call(this);Qd(this);this.Ae=n};function Td(a,b,c){D.call(this);this.Dd=a;this.Ec=c;this.k=b;T(b,[Ud,Vd,Wd,Xd],this);this.ab=n;this.na=[];this.ra=-1;this.ya=0;this.mc=this.fa=n}C(Td,W);s=Td.prototype;s.Si=10;s.Qh=!0;s.og=!1;s.Jh=!1;s.Bh=!1;var Ud="hilite",Vd="select",Xd="dismiss",Wd="canceldismiss";s=Td.prototype;s.handleEvent=function(a){if(a.target==this.k)switch(a.type){case Ud:this.Wa(a.row);break;case Vd:Yd(this);break;case Wd:Zd(this);break;case Xd:$d(this)}};s.Tc=p("fa");s.nb=function(){return this.k.X()};
function ae(a){var b=a.ya+a.na.length-1;a.ra>=a.ya&&a.ra<b?a.Wa(a.ra+1):a.ra==-1?a.Wa(a.ya):a.ra==b&&(a.og?a.Wa(-1):a.Jh&&a.Wa(a.ya))}function be(a){a.ra>a.ya?a.Wa(a.ra-1):a.og&&a.ra==a.ya?a.Wa(-1):a.Jh&&(a.ra==-1||a.ra==a.ya)&&a.Wa(a.ya+a.na.length-1)}s.Wa=function(a){this.ra=a;this.k.Wa(a);return ce(this,a)!=-1};
function Yd(a){var b=ce(a,a.ra);if(b!=-1){var b=a.na[b],c=a.Ec,d=b.toString();if(w(i)?0:c.$c){var f=de(c,c.p(),ee(c.M)),g=fe(c,c.p());c.Kj.test(d)||(d=d.replace(/[\s\xa0]+$/,"")+c.hi);c.Wj&&(f!=0&&!/^[\s\xa0]*$/.test(g[f-1])&&(d=" "+d),f==g.length-1&&(d+=" "));if(d!=g[f]){g[f]=d;d=c.M;M&&d.blur();d.value=g.join("");for(var h=0,j=0;j<=f;j++)h+=g[j].length;d.focus();f=h;g=c.M;d=f;ge(g)?g.selectionStart=d:L&&(h=he(g),j=h[0],j.inRange(h[1])&&(d=ie(g,d),j.collapse(!0),j.move("character",d),j.select()));
g=c.M;ge(g)?g.selectionEnd=f:L&&(h=he(g),d=h[1],h[0].inRange(d)&&(f=ie(g,f),g=ie(g,ee(g)),d.collapse(!0),d.moveEnd("character",f-g),d.select()))}}else c.S(d);c.Qf=!0;a.Bh?(a.ab=n,$d(a)):a.tb();a.dispatchEvent({type:"update",row:b});a.Bh&&a.Ec.update(!0);return!0}else return a.tb(),a.dispatchEvent({type:"update",row:n}),!1}s.tb=function(){this.ra=-1;this.ab=n;this.ya+=this.na.length;this.na=[];window.clearTimeout(this.mc);this.mc=n;this.k.tb()};
function $d(a){if(!a.mc)a.mc=window.setTimeout(A(a.tb,a),100)}function Zd(a){window.setTimeout(A(function(){if(this.mc)window.clearTimeout(this.mc),this.mc=n},a),10)}s.h=function(){Td.b.h.call(this);this.k.j();this.Ec.j();this.Dd=n};s.Pi=function(a,b,c){this.ab==a&&this.Of(b,c)};
s.Of=function(a,b){var c=b?ce(this,this.ra):n;this.ya+=this.na.length;this.na=a;for(var d=[],f=0;f<a.length;++f)d.push({id:this.ya+f,data:a[f]});this.k.Of(d,this.ab,this.fa);this.Qh&&d.length!=0&&this.ab?this.Wa(c!=n?this.ya+c:this.ya):this.ra=-1;this.dispatchEvent("suggestionsupdate")};function ce(a,b){var c=b-a.ya;if(c<0||c>=a.na.length)return-1;return c}s.Pe=function(){var a=this.Ec;a.Pe.apply(a,arguments)};function je(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}je.prototype.ja=function(){return new je(this.left,this.top,this.width,this.height)};je.prototype.contains=function(a){return a instanceof je?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};je.prototype.vb=function(){return new Ac(this.width,this.height)};function ke(a,b){var c=P(a);if(c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,n)))return c[b]||c.getPropertyValue(b);return""}function le(a,b){return ke(a,b)||(a.currentStyle?a.currentStyle[b]:n)||a.style[b]}function me(a,b,c){var d,f=M&&(hc||rc)&&O("1.9");b instanceof E?(d=b.x,b=b.y):(d=b,b=c);a.style.left=ne(d,f);a.style.top=ne(b,f)}
function oe(a){var a=a?a.nodeType==9?a:P(a):document,b;if(b=L)if(b=!O(9))b=Ec(a),b=!Ic(b.B);if(b)return a.body;return a.documentElement}function pe(a){var b=a.getBoundingClientRect();if(L)a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop;return b}
function qe(a){if(L)return a.offsetParent;for(var b=P(a),c=le(a,"position"),d=c=="fixed"||c=="absolute",a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=le(a,"position"),d=d&&c=="static"&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a;return n}
function re(a){for(var b=new Ha(0,Infinity,Infinity,0),c=Ec(a),d=c.B.body,f=!N&&Ic(c.B)?c.B.documentElement:c.B.body,g;a=qe(a);)if((!L||a.clientWidth!=0)&&(!N||a.clientHeight!=0||a!=d)&&(a.scrollWidth!=a.clientWidth||a.scrollHeight!=a.clientHeight)&&le(a,"overflow")!="visible"){var h=se(a),j;j=a;if(M&&!O("1.9")){var k=parseFloat(ke(j,"borderLeftWidth"));if(te(j)){var l=j.offsetWidth-j.clientWidth-k-parseFloat(ke(j,"borderRightWidth"));k+=l}j=new E(k,parseFloat(ke(j,"borderTopWidth")))}else j=new E(j.clientLeft,
j.clientTop);h.x+=j.x;h.y+=j.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x);g=g||a!=f}d=f.scrollLeft;f=f.scrollTop;N?(b.left+=d,b.top+=f):(b.left=Math.max(b.left,d),b.top=Math.max(b.top,f));if(!g||N)b.right+=d,b.bottom+=f;c=c.B.parentWindow||c.B.defaultView||window;g=c.document;N&&!O("500")&&!oc?(typeof c.innerHeight=="undefined"&&(c=window),g=c.innerHeight,a=c.document.documentElement.scrollHeight,
c==c.top&&a<g&&(g-=15),c=new Ac(c.innerWidth,g)):(c=Ic(g)?g.documentElement:g.body,c=new Ac(c.clientWidth,c.clientHeight));b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:n}
function se(a){var b,c=P(a),d=le(a,"position"),f=M&&c.getBoxObjectFor&&!a.getBoundingClientRect&&d=="absolute"&&(b=c.getBoxObjectFor(a))&&(b.screenX<0||b.screenY<0),g=new E(0,0),h=oe(c);if(a==h)return g;if(a.getBoundingClientRect)b=pe(a),a=Zc(Ec(c)),g.x=b.left+a.x,g.y=b.top+a.y;else if(c.getBoxObjectFor&&!f)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(h),g.x=b.screenX-a.screenX,g.y=b.screenY-a.screenY;else{b=a;do{g.x+=b.offsetLeft;g.y+=b.offsetTop;b!=a&&(g.x+=b.clientLeft||0,g.y+=b.clientTop||0);if(N&&
le(b,"position")=="fixed"){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(nc||N&&d=="absolute")g.y-=c.body.offsetTop;for(b=a;(b=qe(b))&&b!=c.body&&b!=h;)if(g.x-=b.scrollLeft,!nc||b.tagName!="TR")g.y-=b.scrollTop}return g}
function ue(a){var b=new E;if(a.nodeType==1)if(a.getBoundingClientRect)a=pe(a),b.x=a.left,b.y=a.top;else{var c=Zc(Ec(a)),a=se(a);b.x=a.x-c.x;b.y=a.y-c.y}else{var c=ga(a.pi),d=a;a.targetTouches?d=a.targetTouches[0]:c&&a.pa.targetTouches&&(d=a.pa.targetTouches[0]);b.x=d.clientX;b.y=d.clientY}return b}function ve(a,b,c){var d=se(a);if(b instanceof E)c=b.y,b=b.x;me(a,a.offsetLeft+(b-d.x),a.offsetTop+(c-d.y))}
function we(a,b,c){b instanceof Ac?(c=b.height,b=b.width):c==i&&e(Error("missing height argument"));a.style.width=ne(b,!0);a.style.height=ne(c,!0)}function ne(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a}
function xe(a){if(le(a,"display")!="none")return new Ac(a.offsetWidth,a.offsetHeight);var b=a.style,c=b.display,d=b.visibility,f=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";var g=a.offsetWidth,a=a.offsetHeight;b.display=c;b.position=f;b.visibility=d;return new Ac(g,a)}function ye(a){var b=se(a),a=xe(a);return new je(b.x,b.y,a.width,a.height)}function ze(a,b){a.style.display=b?"":"none"}function te(a){return"rtl"==le(a,"direction")}
var Ae=M?"MozUserSelect":N?"WebkitUserSelect":n;function Be(a,b,c){c=!c?a.getElementsByTagName("*"):n;if(Ae){if(b=b?"none":"",a.style[Ae]=b,c)for(var a=0,d;d=c[a];a++)d.style[Ae]=b}else if(L||nc)if(b=b?"on":"",a.setAttribute("unselectable",b),c)for(a=0;d=c[a];a++)d.setAttribute("unselectable",b)}var Ce={thin:2,medium:4,thick:6};
function De(a,b){if((a.currentStyle?a.currentStyle[b+"Style"]:n)=="none")return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:n;if(c in Ce)return Ce[c];var d;if(/^\d+px?$/.test(c))d=parseInt(c,10);else{d=a.style.left;var f=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=c;c=a.style.pixelLeft;a.style.left=d;a.runtimeStyle.left=f;d=c}return d};function Ee(a,b){D.call(this);this.Bd=a||1;this.Sd=b||Fe;this.Re=A(this.cg,this);this.Bf=B()}C(Ee,W);Ee.prototype.enabled=!1;var Fe=t.window;s=Ee.prototype;s.u=n;s.setInterval=function(a){this.Bd=a;this.u&&this.enabled?(this.stop(),this.start()):this.u&&this.stop()};s.cg=function(){if(this.enabled){var a=B()-this.Bf;if(a>0&&a<this.Bd*0.8)this.u=this.Sd.setTimeout(this.Re,this.Bd-a);else if(this.dispatchEvent(Ge),this.enabled)this.u=this.Sd.setTimeout(this.Re,this.Bd),this.Bf=B()}};
s.start=function(){this.enabled=!0;if(!this.u)this.u=this.Sd.setTimeout(this.Re,this.Bd),this.Bf=B()};s.stop=function(){this.enabled=!1;if(this.u)this.Sd.clearTimeout(this.u),this.u=n};s.h=function(){Ee.b.h.call(this);this.stop();delete this.Sd};var Ge="tick";function He(a,b,c,d){D.call(this);(!y(a)||!y(b))&&e(Error("Start and end parameters must be arrays"));a.length!=b.length&&e(Error("Start and end points must be the same length"));this.hd=a;this.li=b;this.duration=c;this.lg=d;this.coords=[]}C(He,W);var Ma={},Ie=n;function Je(){Fe.clearTimeout(Ie);var a=B(),b;for(b in Ma)Ke(Ma[b],a);Ie=La()?n:Fe.setTimeout(Je,20)}function Le(a){a=ia(a);delete Ma[a];Ie&&La()&&(Fe.clearTimeout(Ie),Ie=n)}s=He.prototype;s.t=0;s.Bg=0;s.ua=0;s.startTime=n;s.zg=n;s.zf=n;
s.play=function(a){if(a||this.t==0)this.ua=0,this.coords=this.hd;else if(this.t==1)return!1;Le(this);this.startTime=B();this.t==-1&&(this.startTime-=this.duration*this.ua);this.zg=this.startTime+this.duration;this.zf=this.startTime;this.ua||this.Fa();Me(this,"play");this.t==-1&&this.Lf();this.t=1;a=ia(this);a in Ma||(Ma[a]=this);Ie||(Ie=Fe.setTimeout(Je,20));Ke(this,this.startTime);return!0};s.stop=function(a){Le(this);this.t=0;if(a)this.ua=1;Ne(this,this.ua);this.Mf();this.Zb()};
s.h=function(){this.t!=0&&this.stop(!1);this.If();He.b.h.call(this)};function Ke(a,b){a.ua=(b-a.startTime)/(a.zg-a.startTime);if(a.ua>=1)a.ua=1;a.Bg=1E3/(b-a.zf);a.zf=b;Ne(a,a.ua);a.ua==1?(a.t=0,Le(a),Me(a,"finish"),a.Zb()):a.t==1&&a.Gf()}function Ne(a,b){ga(a.lg)&&(b=a.lg(b));a.coords=Array(a.hd.length);for(var c=0;c<a.hd.length;c++)a.coords[c]=(a.li[c]-a.hd[c])*b+a.hd[c]}s.Gf=function(){Me(this,"animate")};s.Fa=function(){Me(this,"begin")};s.If=function(){Me(this,"destroy")};
s.Zb=function(){Me(this,"end")};s.Lf=function(){Me(this,"resume")};s.Mf=function(){Me(this,"stop")};function Me(a,b){a.dispatchEvent(new Oe(b,a))}function Oe(a,b){R.call(this,a);this.coords=b.coords;this.x=b.coords[0];this.y=b.coords[1];this.G=b.coords[2];this.duration=b.duration;this.ua=b.ua;this.af=b.Bg;this.state=b.t;this.Yj=b}C(Oe,R);function Pe(a,b,c,d,f){He.call(this,b,c,d,f);this.element=a}C(Pe,He);Pe.prototype.Vd=v;Pe.prototype.Gf=function(){this.Vd();Pe.b.Gf.call(this)};Pe.prototype.Zb=function(){this.Vd();Pe.b.Zb.call(this)};Pe.prototype.Fa=function(){this.Vd();Pe.b.Fa.call(this)};function Qe(a,b,c){(b.length!=2||c.length!=2)&&e(Error("Start and end points must be 2D"));Pe.apply(this,arguments)}C(Qe,Pe);
Qe.prototype.Vd=function(){this.element.style.left=Math.round(this.coords[0])+"px";this.element.style.top=Math.round(this.coords[1])+"px"};function Re(a,b,c,d){Qe.call(this,a,[a.offsetLeft,a.offsetTop],b,c,d)}C(Re,Qe);Re.prototype.Fa=function(){this.hd=[this.element.offsetLeft,this.element.offsetTop];Re.b.Fa.call(this)};function Se(a,b,c,d,f){fa(b)&&(b=[b]);fa(c)&&(c=[c]);Pe.call(this,a,b,c,d,f);(b.length!=1||c.length!=1)&&e(Error("Start and end points must be 1D"))}C(Se,Pe);
Se.prototype.Vd=function(){var a=this.coords[0],b=this.element.style;if("opacity"in b)b.opacity=a;else if("MozOpacity"in b)b.MozOpacity=a;else if("filter"in b)b.filter=a===""?"":"alpha(opacity="+a*100+")"};Se.prototype.show=function(){this.element.style.display=""};function Te(a,b,c){Se.call(this,a,1,0,b,c)}C(Te,Se);Te.prototype.Fa=function(){this.show();Te.b.Fa.call(this)};Te.prototype.Zb=function(){this.element.style.display="none";Te.b.Zb.call(this)};
function Ue(a,b,c){Se.call(this,a,0,1,b,c)}C(Ue,Se);Ue.prototype.Fa=function(){this.show();Ue.b.Fa.call(this)};function Ve(){}ca(Ve);Ve.prototype.kj=0;function We(a){return":"+(a.kj++).toString(36)}Ve.za();function Xe(a,b){a.setAttribute("role",b);a.gk=b}function X(a,b,c){a.setAttribute("aria-"+b,c)};function Ye(a,b,c,d){D.call(this);this.ba=a||document.body;this.R=Ec(this.ba);this.Ej=!a;this.e=n;this.ab="";this.na=[];this.vh=this.ne=-1;this.Q=!1;this.className="ac-renderer";this.Pf="ac-row";this.Vg="active";this.mg="ac-active";this.Ei="ac-highlighted";this.Nc=b||n;this.Vj=d!=n?d:!0;this.rf=!1;this.Hj=c!=n?c:!1;this.vf=n;this.Je=!1;this.ue=0}C(Ye,W);s=Ye.prototype;s.c=p("e");s.Of=function(a,b,c){this.ab=b;this.na=a;this.ne=-1;this.vh=B();this.fa=c;this.Ld=[];Ze(this)};
s.tb=function(){this.fa&&X(this.fa,"activedescendant","");if(this.Q)this.Q=!1,this.ue>0?(new Te(this.e,this.ue)).play():ze(this.e,!1)};s.show=function(){if(!this.Q)this.Q=!0,this.ue>0?(new Ue(this.e,this.ue)).play():ze(this.e,!0)};s.X=p("Q");
function $e(a,b){af(a);a.ne=b;if(b>=0&&b<a.e.childNodes.length){var c=a.Ld[b];ac(c,a.mg,a.Vg);a.fa&&X(a.fa,"activedescendant",c?c.id:"");var d=a.e,f=se(c),g=se(d),h;if(L){var j=De(d,"borderLeft");h=De(d,"borderRight");var k=De(d,"borderTop"),l=De(d,"borderBottom");h=new Ha(k,h,l,j)}else j=ke(d,"borderLeftWidth"),h=ke(d,"borderRightWidth"),k=ke(d,"borderTopWidth"),l=ke(d,"borderBottomWidth"),h=new Ha(parseFloat(k),parseFloat(h),parseFloat(l),parseFloat(j));j=f.x-g.x-h.left;f=f.y-g.y-h.top;g=d.clientHeight-
c.offsetHeight;d.scrollLeft+=Math.min(j,Math.max(j-(d.clientWidth-c.offsetWidth),0));d.scrollTop+=Math.min(f,Math.max(f-g,0))}}function af(a){a.ne>=0&&bc(a.Ld[a.ne],a.mg,a.Vg)}s.Wa=function(a){if(a==-1)$e(this,-1);else for(var b=0;b<this.na.length;b++)if(this.na[b].id==a){$e(this,b);break}};
function bf(a){if(!a.e){var b=a.R.r("div",{style:"display:none"});a.e=b;ac(b,a.className);Xe(b,"listbox");b.id=We(Ve.za());a.fa&&(Xe(a.fa,"combobox"),X(a.fa,"autocomplete","list"),X(a.fa,"haspopup",!0));a.R.appendChild(a.ba,b);T(b,"click",a.Gg,!1,a);T(b,"mousedown",a.le,!1,a);T(a.R.B,"mousedown",a.Ig,!1,a);T(b,"mouseover",a.Jg,!1,a)}}
function Ze(a){bf(a);if(a.Je)a.e.style.visibility="hidden";a.Ld.length=0;a.R.nh(a.e);if(a.Nc&&a.Nc.Db)a.Nc.Db(a);else{var b=n;kb(a.na,function(a){var d=this.ab,f=this.R.r("div",{className:this.Pf,id:We(Ve.za())});Xe(f,"option");this.Nc&&this.Nc.oh?this.Nc.oh(a,d,f):f.innerHTML=sa(a.data.toString());d&&this.Vj&&cf(this,f,d);ac(f,this.Pf);this.Ld.push(f);a=f;this.Je?this.e.insertBefore(a,b):this.R.appendChild(this.e,a);b=a},a)}a.na.length==0?a.tb():(a.show(),df(a.e),a.Id(),Be(a.e,!0))}
s.Id=function(){if(this.fa&&this.Ej){var a=se(this.fa),b=xe(this.fa),c=xe(oe(this.fa)),d=xe(this.e);a.y=this.Je?a.y-d.height:a.y+b.height;(this.Hj||a.x+d.width>c.width)&&this.vf!="LEFT"?(a.x=a.x+b.width-d.width,this.vf="RIGHT"):this.vf="LEFT";ve(this.e,a);if(this.Je)this.e.style.visibility="visible"}};
s.h=function(){Ye.b.h.call(this);if(this.e)Nd(this.e,"click",this.Gg,!1,this),Nd(this.e,"mousedown",this.le,!1,this),Nd(this.R.B,"mousedown",this.Ig,!1,this),Nd(this.e,"mouseover",this.Jg,!1,this),this.R.removeNode(this.e),this.e=n,this.Q=!1;delete this.ba};function df(a){if(M&&hc)a.style.width="",a.style.overflow="visible",a.style.width=a.offsetWidth,a.style.overflow="auto"}
function cf(a,b,c){if(b.nodeType==3){var d=n;y(c)&&c.length>1&&!a.rf&&(d=bb(c,1));c=ef(a,c);if(c.length!=0){for(var f=b.nodeValue,g=RegExp("(.*?)(^|\\W+)("+c+")","gi"),c=[],h=0,j=g.exec(f),k=0;j;)k++,c.push(j[1]),c.push(j[2]),c.push(j[3]),h=g.lastIndex,j=g.exec(f);c.push(f.substring(h));if(c.length>1){d=!a.rf?1:k;for(f=0;f<d;f++)g=3*f,b.nodeValue=c[g]+c[g+1],h=a.R.createElement("b"),h.className=a.Ei,a.R.appendChild(h,a.R.createTextNode(c[g+2])),h=b.parentNode.insertBefore(h,b.nextSibling),b.parentNode.insertBefore(a.R.createTextNode(""),
h.nextSibling),b=h.nextSibling;a=bb(c,d*3);b.nodeValue=a.join("")}else d&&cf(a,b,d)}}else for(b=b.firstChild;b;)d=b.nextSibling,cf(a,b,c),b=d}function ef(a,b){var c="";if(!b)return c;a.rf?y(b)?(c=Sa(b,function(a){return!/^[\s\xa0]*$/.test(a==n?"":String(a))}),c=Ta(c,ya),c=c.join("|")):(c=b.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,""),c=ya(c),c=c.replace(/ /g,"|")):c=y(b)?b.length>0?ya(b[0]):"":ya(b);return c}
function ff(a,b){for(;b&&b!=a.e&&!Wa($b(b),a.Pf);)b=b.parentNode;return b?Ra(a.Ld,b):-1}s.Gg=function(a){var b=ff(this,a.target);b>=0&&this.dispatchEvent({type:Vd,row:this.na[b].id});a.stopPropagation()};s.le=function(a){this.dispatchEvent(Wd);a.stopPropagation();a.preventDefault()};s.Ig=function(a){this.fa==a.target?(af(this),a.stopPropagation()):this.dispatchEvent(Xd)};s.Jg=function(a){a=ff(this,a.target);a>=0&&!(B()-this.vh<300)&&this.dispatchEvent({type:Ud,row:this.na[a].id})};function gf(a){D.call(this);this.Mg=a}C(gf,D);var hf=new vd(0,100),jf=[];gf.prototype.i=function(a,b,c,d,f){y(b)||(jf[0]=b,b=jf);for(var g=0;g<b.length;g++){var h=T(a,b[g],c||this,d||!1,f||this.Mg||this);this.A?this.A[h]=!0:this.Xb?(this.A=hf.getObject(),this.A[this.Xb]=!0,this.Xb=n,this.A[h]=!0):this.Xb=h}return this};
gf.prototype.Z=function(a,b,c,d,f){if(this.Xb||this.A)if(y(b))for(var g=0;g<b.length;g++)this.Z(a,b[g],c,d,f);else{a:{c=c||this;f=f||this.Mg||this;d=!!d;if(a=Od(a,b,d))for(b=0;b<a.length;b++)if(!a[b].Dc&&a[b].Yc==c&&a[b].capture==d&&a[b].me==f){a=a[b];break a}a=n}if(a)if(a=a.key,U(a),this.A)Na(this.A,a);else if(this.Xb==a)this.Xb=n}return this};function kf(a){if(a.A){for(var b in a.A)U(b),delete a.A[b];wd(hf,a.A);a.A=n}else a.Xb&&U(a.Xb)}gf.prototype.h=function(){gf.b.h.call(this);kf(this)};
gf.prototype.handleEvent=function(){e(Error("EventHandler.handleEvent not implemented"))};function ee(a){var b;a:{var c=0,d=0;if(ge(a))c=a.selectionStart,d=-1;else if(L){var f=he(a);b=f[0];f=f[1];if(b.inRange(f)){b.setEndPoint("EndToStart",f);if(a.type=="textarea"){f.duplicate();c=a=b.text;for(d=!1;!d;)b.compareEndPoints("StartToEnd",b)==0?d=!0:(b.moveEnd("character",-1),b.text==a?c+="\r\n":d=!0);b=[c.length,-1];break a}c=b.text.length;d=-1}}b=[c,d]}return b[0]}
function he(a){var b=a.ownerDocument||a.document,c=b.selection.createRange();a.type=="textarea"?(b=b.body.createTextRange(),b.moveToElementText(a)):b=a.createTextRange();return[b,c]}function ie(a,b){if(a.type=="textarea")b=a.value.substring(0,b).replace(/(\r\n|\r|\n)/g,"\n").length;return b}function ge(a){try{return typeof a.selectionStart=="number"}catch(b){return!1}};function lf(a,b,c,d,f){if(!L&&(!N||!O("525")))return!0;if(hc&&f)return mf(a);if(f&&!d)return!1;if(!c&&(b==17||b==18))return!1;if(L&&d&&b==a)return!1;switch(a){case 13:return!(L&&O("9"));case 27:return!N}return mf(a)}
function mf(a){if(a>=48&&a<=57)return!0;if(a>=96&&a<=106)return!0;if(a>=65&&a<=90)return!0;if(N&&a==0)return!0;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}};function nf(a,b){D.call(this);a&&this.pd(a,b)}C(nf,W);s=nf.prototype;s.e=n;s.pe=n;s.wf=n;s.qe=n;s.Yb=-1;s.Wb=-1;
var of={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},pf={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},qf={61:187,59:186},rf=L||N&&O("525");s=nf.prototype;
s.kf=function(a){if(N&&(this.Yb==17&&!a.ctrlKey||this.Yb==18&&!a.altKey))this.Wb=this.Yb=-1;rf&&!lf(a.keyCode,this.Yb,a.shiftKey,a.ctrlKey,a.altKey)?this.handleEvent(a):this.Wb=M&&a.keyCode in qf?qf[a.keyCode]:a.keyCode};s.xi=function(){this.Wb=this.Yb=-1};
s.handleEvent=function(a){var b=a.pa,c,d;L&&a.type=="keypress"?(c=this.Wb,d=c!=13&&c!=27?b.keyCode:0):N&&a.type=="keypress"?(c=this.Wb,d=b.charCode>=0&&b.charCode<63232&&mf(c)?b.charCode:0):nc?(c=this.Wb,d=mf(c)?b.keyCode:0):(c=b.keyCode||this.Wb,d=b.charCode||0,hc&&d==63&&!c&&(c=191));var f=c,g=b.keyIdentifier;c?c>=63232&&c in of?f=of[c]:c==25&&a.shiftKey&&(f=9):g&&g in pf&&(f=pf[g]);a=f==this.Yb;this.Yb=f;b=new sf(f,d,a,b);try{this.dispatchEvent(b)}finally{b.j()}};s.c=p("e");
s.pd=function(a,b){this.qe&&this.detach();this.e=a;this.pe=T(this.e,"keypress",this,b);this.wf=T(this.e,"keydown",this.kf,b,this);this.qe=T(this.e,"keyup",this.xi,b,this)};s.detach=function(){if(this.pe)U(this.pe),U(this.wf),U(this.qe),this.qe=this.wf=this.pe=n;this.e=n;this.Wb=this.Yb=-1};s.h=function(){nf.b.h.call(this);this.detach()};function sf(a,b,c,d){d&&this.Ub(d,i);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c}C(sf,ld);function tf(a,b,c,d){D.call(this);d=d||150;this.Md=a!=n?a:uf;this.hi=this.Md.substring(0,1);a=this.$c?"[\\s"+this.Md+"]+":"[\\s]+";this.Ch=RegExp("^"+a+"|"+a+"$","g");this.Kj=RegExp("\\s*["+this.Md+"]$");this.Xg=b||"";this.Cj=this.$c=c!=n?c:!0;this.u=d>0?new Ee(d):n;this.oa=new gf(this);this.Me=new gf(this);this.L=new nf;this.Ug=-1}C(tf,D);var uf=",;";s=tf.prototype;s.Wj=!0;s.oi=!0;s.Eh=!1;s.Mj=!0;s.Lj=!0;s.M=n;s.Af="";s.ic=!1;s.Qf=!1;s.Dh=!0;s.p=function(){return this.M.value};
s.S=function(a){this.M.value=a};s.Pe=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];X(b,"haspopup",!0);this.oa.i(b,"focus",this.qc);this.oa.i(b,"blur",this.xb);this.M||this.Me.i(b,"keydown",this.tj)}};s.h=function(){tf.b.h.call(this);this.oa.j();delete this.oa;this.Me.j();this.L.j()};function vf(a){a.u?a.u.setInterval(300):a.u=new Ee(300)}
s.Va=function(a){switch(a.keyCode){case 40:if(this.K.nb())return this.Eh?be(this.K):ae(this.K),a.preventDefault(),!0;else if(!this.$c)return this.update(!0),a.preventDefault(),!0;break;case 38:if(this.K.nb())return this.Eh?ae(this.K):be(this.K),a.preventDefault(),!0;break;case 9:if(this.K.nb()&&!a.shiftKey){if(this.update(),Yd(this.K)&&this.Cj)return a.preventDefault(),!0}else this.K.tb();break;case 13:if(this.K.nb()){if(this.update(),Yd(this.K))return a.preventDefault(),a.stopPropagation(),!0}else this.K.tb();
break;case 27:if(this.K.nb())return this.K.tb(),a.preventDefault(),a.stopPropagation(),!0;break;case 229:if(!this.ic){if(!this.ic)this.oa.i(this.M,"keyup",this.ih),this.oa.i(this.M,"keypress",this.hh),this.ic=!0;return!0}break;default:this.u&&!this.Dh&&(this.u.stop(),this.u.start())}return wf(this,a)};function wf(a,b){var c=a.$c&&b.charCode&&a.Md.indexOf(String.fromCharCode(b.charCode))!=-1;a.Mj&&c&&a.update();if(a.Lj&&c&&Yd(a.K))return b.preventDefault(),!0;return!1}s.wi=q(!1);
s.qc=function(a){kf(this.Me);this.K&&Zd(this.K);if(a.target!=this.M)this.M=a.target||n,this.u&&(this.u.start(),this.oa.i(this.u,Ge,this.ad)),this.Af=this.p(),this.L.pd(this.M),this.oa.i(this.L,"key",this.jh),L&&this.oa.i(this.M,"keypress",this.gh)};s.xb=function(){if(this.M)this.oa.Z(this.L,"key",this.jh),this.L.detach(),this.oa.Z(this.M,"keyup",this.wi),L&&this.oa.Z(this.M,"keypress",this.gh),this.ic&&xf(this),this.M=n,this.u&&(this.u.stop(),this.oa.Z(this.u,Ge,this.ad)),this.K&&$d(this.K)};
s.ad=function(){this.update()};s.tj=function(a){this.qc(a)};s.jh=function(a){this.Ug=a.keyCode;this.K&&this.Va(a)};s.hh=function(){this.ic&&this.Ug!=229&&xf(this)};s.ih=function(a){this.ic&&(a.keyCode==13||a.keyCode==77&&a.ctrlKey)&&xf(this)};function xf(a){if(a.ic)a.ic=!1,a.oa.Z(a.M,"keypress",a.hh),a.oa.Z(a.M,"keyup",a.ih)}s.gh=function(a){wf(this,a)};
s.update=function(a){if(a||this.M&&this.p()!=this.Af){if(a||!this.Qf){var a=ee(this.M),b=this.p(),a=fe(this,b)[de(this,b,a)],a=this.Ch?String(a).replace(this.Ch,""):a;if(this.K&&(this.K.fa=this.M,b=this.K,this.p(),b.ab!=a))b.ab=a,fd(b.Dd,b.ab,b.Si,A(b.Pi,b)),Zd(b)}this.Af=this.p()}this.Qf=!1};function de(a,b,c){a=fe(a,b);if(c==b.length)return a.length-1;for(var d=b=0,f=0;d<a.length&&f<c;d++)f+=a[d].length,b=d;return b}
function fe(a,b){if(!a.$c)return[b];for(var c=String(b).split(""),d=[],f=[],g=0,h=!1;g<c.length;g++)if(a.Xg&&a.Xg.indexOf(c[g])!=-1){if(a.oi&&!h)d.push(f.join("")),f.length=0;f.push(c[g]);h=!h}else!h&&a.Md.indexOf(c[g])!=-1?(f.push(c[g]),d.push(f.join("")),f.length=0):f.push(c[g]);d.push(f.join(""));return d};function yf(a,b,c){var d=new Ye(n,{oh:function(a,b,c){c.innerHTML=a.data.display_name+" ("+a.data.type+")"}});this.Dd=new ed(b,c);b=new tf(n,n,!1);vf(b);b.Dh=!1;b.K=this;b.Pe(a);Td.call(this,this.Dd,d,b);this.addEventListener("update",function(b){a.value=b.row.display_name})}C(yf,Td);yf.prototype.search=function(a,b,c){fd(this.Dd,a,b,c)};function zf(){this.mh=B()}new zf;zf.prototype.set=ba("mh");zf.prototype.get=p("mh");function Af(a){K.call(this,a||"MapQuest OSM","http://otile{sub}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png",0,18,256,!1,["1","2","3","4"])}C(Af,K);Af.prototype.nd=function(a){Cb(a,"Map data \u00a9 ",Q("a",{href:"http://www.openstreetmap.org/"},"OpenStreetMap")," contributors, CC-BY-SA",Q("br"));Cb(a,"Tiles Courtesy of ",Q("a",{href:"http://open.mapquest.co.uk/"},"MapQuest")," ",Q("img",{src:"http://developer.mapquest.com/content/osm/mq_logo.png",border:0}))};function Bf(a){D.call(this);this.R=a||Ec();this.Kd=Cf}C(Bf,W);Bf.prototype.Fi=Ve.za();var Cf=n;function Df(a,b){switch(a){case 1:return b?"disable":"enable";case 2:return b?"highlight":"unhighlight";case 4:return b?"activate":"deactivate";case 8:return b?"select":"unselect";case 16:return b?"check":"uncheck";case 32:return b?"focus":"blur";case 64:return b?"open":"close"}e(Error("Invalid component state"))}s=Bf.prototype;s.Xa=n;s.H=!1;s.e=n;s.Kd=n;s.Ef=n;s.ba=n;s.ha=n;s.Ra=n;s.Hh=!1;
function Ef(a){return a.Xa||(a.Xa=We(a.Fi))}function Ff(a,b){a.ba&&a.ba.Ra&&(Na(a.ba.Ra,a.Xa),Oa(a.ba.Ra,b,a));a.Xa=b}s.c=p("e");s.qa=function(){return this.Uc||(this.Uc=new gf(this))};function Gf(a,b){a==b&&e(Error("Unable to set parent component"));b&&a.ba&&a.Xa&&Hf(a.ba,a.Xa)&&a.ba!=b&&e(Error("Unable to set parent component"));a.ba=b;Bf.b.Tf.call(a,b)}s.getParent=p("ba");s.Tf=function(a){this.ba&&this.ba!=a&&e(Error("Method not supported"));Bf.b.Tf.call(this,a)};s.V=p("R");
s.r=function(){this.e=this.R.createElement("div")};s.Db=function(a){If(this,a)};function If(a,b,c){a.H&&e(Error("Component already rendered"));a.e||a.r();b?b.insertBefore(a.e,c||n):a.R.B.body.appendChild(a.e);(!a.ba||a.ba.H)&&a.$()}s.da=function(a){if(this.H)e(Error("Component already rendered"));else if(a&&this.Qa(a)){this.Hh=!0;if(!this.R||this.R.B!=P(a))this.R=Ec(a);this.ib(a);this.$()}else e(Error("Invalid element to decorate"))};s.Qa=q(!0);s.ib=ba("e");
s.$=function(){this.H=!0;Jf(this,function(a){!a.H&&a.c()&&a.$()})};s.kb=function(){Jf(this,function(a){a.H&&a.kb()});this.Uc&&kf(this.Uc);this.H=!1};s.h=function(){Bf.b.h.call(this);this.H&&this.kb();this.Uc&&(this.Uc.j(),delete this.Uc);Jf(this,function(a){a.j()});!this.Hh&&this.e&&Pc(this.e);this.ba=this.Ef=this.e=this.Ra=this.ha=n};s.kd=function(a,b){this.ld(a,Kf(this),b)};
s.ld=function(a,b,c){a.H&&(c||!this.H)&&e(Error("Component already rendered"));(b<0||b>Kf(this))&&e(Error("Child component index out of bounds"));if(!this.Ra||!this.ha)this.Ra={},this.ha=[];a.getParent()==this?(this.Ra[Ef(a)]=a,Xa(this.ha,a)):Oa(this.Ra,Ef(a),a);Gf(a,this);ab(this.ha,b,0,a);a.H&&this.H&&a.getParent()==this?(c=this.U(),c.insertBefore(a.c(),c.childNodes[b]||n)):c?(this.e||this.r(),b=Lf(this,b+1),If(a,this.U(),b?b.e:n)):this.H&&!a.H&&a.e&&a.$()};s.U=p("e");
function Mf(a){if(a.Kd==n)a.Kd=te(a.H?a.e:a.R.B.body);return a.Kd}s.gd=function(a){this.H&&e(Error("Component already rendered"));this.Kd=a};function Kf(a){return a.ha?a.ha.length:0}function Hf(a,b){var c;a.Ra&&b?(c=a.Ra,c=b in c?c[b]:i,c=c||n):c=n;return c}function Lf(a,b){return a.ha?a.ha[b]||n:n}function Jf(a,b,c){a.ha&&H(a.ha,b,c)}function Nf(a,b){return a.ha&&b?Ra(a.ha,b):-1}
s.removeChild=function(a,b){if(a){var c=z(a)?a:Ef(a),a=Hf(this,c);c&&a&&(Na(this.Ra,c),Xa(this.ha,a),b&&(a.kb(),a.e&&Pc(a.e)),Gf(a,n))}a||e(Error("Child is not in parent component"));return a};s.nh=function(a){for(;this.ha&&this.ha.length!=0;)this.removeChild(Lf(this,0),a)};function Of(){}var Pf;ca(Of);s=Of.prototype;s.lb=aa();s.r=function(a){return a.V().r("div",this.Sc(a).join(" "),a.getContent())};s.U=function(a){return a};s.ud=function(a,b,c){if(a=a.c?a.c():a)if(L&&!O("7")){var d=Qf($b(a),b);d.push(b);na(c?ac:bc,a).apply(n,d)}else c?ac(a,b):bc(a,b)};s.Qa=q(!0);
s.da=function(a,b){b.id&&Ff(a,b.id);var c=this.U(b);c&&c.firstChild?Rf(a,c.firstChild.nextSibling?Za(c.childNodes):c.firstChild):a.Lc=n;var d=0,f=this.o(),g=this.o(),h=!1,j=!1,c=!1,k=$b(b);H(k,function(a){!h&&a==f?(h=!0,g==f&&(j=!0)):!j&&a==g?j=!0:d|=this.gf(a)},this);a.t=d;h||(k.push(f),g==f&&(j=!0));j||k.push(g);var l=a.Ua;l&&k.push.apply(k,l);if(L&&!O("7")){var o=Qf(k);o.length>0&&(k.push.apply(k,o),c=!0)}if(!h||!j||l||c)b.className=k.join(" ");return b};
s.Xc=function(a){Mf(a)&&this.gd(a.c(),!0);a.isEnabled()&&this.dc(a,a.X())};s.Nd=function(a,b){Be(a,!b,!L&&!nc)};s.gd=function(a,b){this.ud(a,this.o()+"-rtl",b)};s.Vb=function(a){var b;if(a.ca&32&&(b=a.W()))return Vc(b);return!1};s.dc=function(a,b){var c;if(a.ca&32&&(c=a.W())){if(!b&&a.t&32){try{c.blur()}catch(d){}a.t&32&&a.xb(n)}if(Vc(c)!=b)b?c.tabIndex=0:c.removeAttribute("tabIndex")}};s.setVisible=function(a,b){ze(a,b)};
s.Ca=function(a,b,c){var d=a.c();if(d){var f=this.xd(b);f&&this.ud(a,f,c);this.jd(d,b,c)}};s.jd=function(a,b,c){Pf||(Pf={1:"disabled",4:"pressed",8:"selected",16:"checked",64:"expanded"});(b=Pf[b])&&X(a,b,c)};s.setContent=function(a,b){var c=this.U(a);if(c&&(Oc(c),b))if(z(b))Sc(c,b);else{var d=function(a){if(a){var b=P(c);c.appendChild(z(a)?b.createTextNode(a):a)}};y(b)?H(b,d):ea(b)&&!("nodeType"in b)?H(Za(b),d):d(b)}};s.W=function(a){return a.c()};s.o=q("goog-control");
s.Sc=function(a){var b=this.o(),c=[b],d=this.o();d!=b&&c.push(d);b=a.t;for(d=[];b;){var f=b&-b;d.push(this.xd(f));b&=~f}c.push.apply(c,d);(a=a.Ua)&&c.push.apply(c,a);L&&!O("7")&&c.push.apply(c,Qf(c));return c};function Qf(a,b){var c=[];b&&(a=a.concat([b]));H([],function(d){Ua(d,na(Wa,a))&&(!b||Wa(d,b))&&c.push(d.join("_"))});return c}s.xd=function(a){this.ce||Sf(this);return this.ce[a]};
s.gf=function(a){if(!this.yh){this.ce||Sf(this);var b=this.ce,c={},d;for(d in b)c[b[d]]=d;this.yh=c}a=parseInt(this.yh[a],10);return isNaN(a)?0:a};function Sf(a){var b=a.o();a.ce={1:b+"-disabled",2:b+"-hover",4:b+"-active",8:b+"-selected",16:b+"-checked",32:b+"-focused",64:b+"-open"}};function Tf(a,b){a||e(Error("Invalid class name "+a));ga(b)||e(Error("Invalid decorator function "+b));Uf[a]=b}var Vf={},Uf={};function Y(a,b,c){Bf.call(this,c);if(!b){for(var b=this.constructor,d;b;){d=ia(b);if(d=Vf[d])break;b=b.b?b.b.constructor:n}b=d?ga(d.za)?d.za():new d:n}this.k=b;this.Lc=a}C(Y,Bf);s=Y.prototype;s.Lc=n;s.t=0;s.ca=39;s.Qe=255;s.Ge=0;s.Q=!0;s.Ua=n;s.mf=!0;s.be=!1;function Wf(a,b){a.H&&b!=a.mf&&Xf(a,b);a.mf=b}s.W=function(){return this.k.W(this)};s.je=function(){return this.L||(this.L=new nf)};function Yf(a,b){if(b)a.Ua?Wa(a.Ua,b)||a.Ua.push(b):a.Ua=[b],a.k.ud(a,b,!0)}
s.ud=function(a,b){if(b)Yf(this,a);else if(a&&this.Ua){Xa(this.Ua,a);if(this.Ua.length==0)this.Ua=n;this.k.ud(this,a,!1)}};s.r=function(){var a=this.k.r(this);this.e=a;var b=this.k.lb();b&&Xe(a,b);this.be||this.k.Nd(a,!1);this.X()||this.k.setVisible(a,!1)};s.U=function(){return this.k.U(this.c())};s.Qa=function(a){return this.k.Qa(a)};s.ib=function(a){this.e=a=this.k.da(this,a);var b=this.k.lb();b&&Xe(a,b);this.be||this.k.Nd(a,!1);this.Q=a.style.display!="none"};
s.$=function(){Y.b.$.call(this);this.k.Xc(this);if(this.ca&-2&&(this.mf&&Xf(this,!0),this.ca&32)){var a=this.W();if(a){var b=this.je();b.pd(a);this.qa().i(b,"key",this.Va).i(a,"focus",this.qc).i(a,"blur",this.xb)}}};function Xf(a,b){var c=a.qa(),d=a.c();b?(c.i(d,"mouseover",a.of).i(d,"mousedown",a.rc).i(d,"mouseup",a.sc).i(d,"mouseout",a.nf),L&&c.i(d,"dblclick",a.Hg)):(c.Z(d,"mouseover",a.of).Z(d,"mousedown",a.rc).Z(d,"mouseup",a.sc).Z(d,"mouseout",a.nf),L&&c.Z(d,"dblclick",a.Hg))}
s.kb=function(){Y.b.kb.call(this);this.L&&this.L.detach();this.X()&&this.isEnabled()&&this.k.dc(this,!1)};s.h=function(){Y.b.h.call(this);this.L&&(this.L.j(),delete this.L);delete this.k;this.Ua=this.Lc=n};s.getContent=p("Lc");s.setContent=function(a){this.k.setContent(this.c(),a);this.Lc=a};function Rf(a,b){a.Lc=b}
s.Rc=function(){var a=this.getContent();if(!a)return"";if(!z(a))if(y(a))a=Ta(a,Wc).join("");else{if(Dc&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Xc(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");L||(a=a.replace(/ +/g," "));a!=" "&&(a=a.replace(/^\s*/,""))}return oa(a)};s.gd=function(a){Y.b.gd.call(this,a);var b=this.c();b&&this.k.gd(b,a)};s.Nd=function(a){this.be=a;var b=this.c();b&&this.k.Nd(b,a)};s.X=p("Q");
s.setVisible=function(a,b){if(b||this.Q!=a&&this.dispatchEvent(a?"show":"hide")){var c=this.c();c&&this.k.setVisible(c,a);this.isEnabled()&&this.k.dc(this,a);this.Q=a;return!0}return!1};s.isEnabled=function(){return!(this.t&1)};s.cc=function(a){var b=this.getParent();if((!b||typeof b.isEnabled!="function"||b.isEnabled())&&Zf(this,1,!a))a||(this.setActive(!1),this.qb(!1)),this.X()&&this.k.dc(this,a),this.Ca(1,!a)};s.qb=function(a){Zf(this,2,a)&&this.Ca(2,a)};
s.setActive=function(a){Zf(this,4,a)&&this.Ca(4,a)};s.Vf=function(a){Zf(this,8,a)&&this.Ca(8,a)};s.nb=function(){return!!(this.t&64)};s.P=function(a){Zf(this,64,a)&&this.Ca(64,a)};s.Ca=function(a,b){if(this.ca&a&&b!=!!(this.t&a))this.k.Ca(this,a,b),this.t=b?this.t|a:this.t&~a};function $f(a,b,c){a.H&&a.t&b&&!c&&e(Error("Component already rendered"));!c&&a.t&b&&a.Ca(b,!1);a.ca=c?a.ca|b:a.ca&~b}function ag(a,b){return!!(a.Qe&b)&&!!(a.ca&b)}
function Zf(a,b,c){return!!(a.ca&b)&&!!(a.t&b)!=c&&(!(a.Ge&b)||a.dispatchEvent(Df(b,c)))&&!a.Ye}s.of=function(a){(!a.relatedTarget||!Rc(this.c(),a.relatedTarget))&&this.dispatchEvent("enter")&&this.isEnabled()&&ag(this,2)&&this.qb(!0)};s.nf=function(a){if((!a.relatedTarget||!Rc(this.c(),a.relatedTarget))&&this.dispatchEvent("leave"))ag(this,4)&&this.setActive(!1),ag(this,2)&&this.qb(!1)};
s.rc=function(a){this.isEnabled()&&(ag(this,2)&&this.qb(!0),pd(a)&&(ag(this,4)&&this.setActive(!0),this.k.Vb(this)&&this.W().focus()));!this.be&&pd(a)&&a.preventDefault()};s.sc=function(a){this.isEnabled()&&(ag(this,2)&&this.qb(!0),this.t&4&&this.bd(a)&&ag(this,4)&&this.setActive(!1))};s.Hg=function(a){this.isEnabled()&&this.bd(a)};
s.bd=function(a){if(ag(this,16)){var b=!(this.t&16);Zf(this,16,b)&&this.Ca(16,b)}ag(this,8)&&this.Vf(!0);ag(this,64)&&this.P(!this.nb());b=new R("action",this);if(a)for(var c=["altKey","ctrlKey","metaKey","shiftKey","platformModifierKey"],d,f=0;d=c[f];f++)b[d]=a[d];return this.dispatchEvent(b)};s.qc=function(){ag(this,32)&&Zf(this,32,!0)&&this.Ca(32,!0)};s.xb=function(){ag(this,4)&&this.setActive(!1);ag(this,32)&&Zf(this,32,!1)&&this.Ca(32,!1)};
s.Va=function(a){if(this.X()&&this.isEnabled()&&this.Vc(a))return a.preventDefault(),a.stopPropagation(),!0;return!1};s.Vc=function(a){return a.keyCode==13&&this.bd(a)};ga(Y)||e(Error("Invalid component class "+Y));ga(Of)||e(Error("Invalid renderer class "+Of));var bg=ia(Y);Vf[bg]=Of;Tf("goog-control",function(){return new Y(n)});function cg(){}C(cg,Of);ca(cg);s=cg.prototype;s.lb=q("button");s.jd=function(a,b,c){b==16?X(a,"pressed",c):cg.b.jd.call(this,a,b,c)};s.r=function(a){var b=cg.b.r.call(this,a),c=a.Ad();c&&this.Xf(b,c);(c=a.p())&&this.S(b,c);a.ca&16&&this.jd(b,16,!1);return b};s.da=function(a,b){var b=cg.b.da.call(this,a,b),c=this.p(b);a.bb=c;a.eg=this.Ad(b);a.ca&16&&this.jd(b,16,!1);return b};s.p=v;s.S=v;s.Ad=function(a){return a.title};s.Xf=function(a,b){if(a)a.title=b||""};s.o=q("goog-button");function dg(){}C(dg,cg);ca(dg);s=dg.prototype;s.lb=aa();s.r=function(a){Wf(a,!1);a.Qe&=-256;$f(a,32,!1);return a.V().r("button",{"class":this.Sc(a).join(" "),disabled:!a.isEnabled(),title:a.Ad()||"",value:a.p()||""},a.Rc()||"")};s.Qa=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.type=="button"||a.type=="submit"||a.type=="reset")};s.da=function(a,b){Wf(a,!1);a.Qe&=-256;$f(a,32,!1);b.disabled&&ac(b,this.xd(1));return dg.b.da.call(this,a,b)};s.Xc=function(a){a.qa().i(a.c(),"click",a.bd)};
s.Nd=v;s.gd=v;s.Vb=function(a){return a.isEnabled()};s.dc=v;s.Ca=function(a,b,c){dg.b.Ca.call(this,a,b,c);if((a=a.c())&&b==1)a.disabled=c};s.p=function(a){return a.value};s.S=function(a,b){if(a)a.value=b};s.jd=v;function eg(a,b,c){Y.call(this,a,b||dg.za(),c)}C(eg,Y);s=eg.prototype;s.p=p("bb");s.S=function(a){this.bb=a;this.k.S(this.c(),a)};s.Ad=p("eg");s.Xf=function(a){this.eg=a;this.k.Xf(this.c(),a)};s.h=function(){eg.b.h.call(this);delete this.bb;delete this.eg};s.$=function(){eg.b.$.call(this);if(this.ca&32){var a=this.W();a&&this.qa().i(a,"keyup",this.Vc)}};s.Vc=function(a){if(a.keyCode==13&&a.type=="key"||a.keyCode==32&&a.type=="keyup")return this.bd(a);return a.keyCode==32};Tf("goog-button",function(){return new eg(n)});function fg(){}C(fg,cg);ca(fg);s=fg.prototype;s.r=function(a){var b={"class":"goog-inline-block "+this.Sc(a).join(" "),title:a.Ad()||""};return a.V().r("div",b,this.de(a.getContent(),a.V()))};s.lb=q("button");s.U=function(a){return a&&a.firstChild.firstChild};s.de=function(a,b){return b.r("div","goog-inline-block "+(this.o()+"-outer-box"),b.r("div","goog-inline-block "+(this.o()+"-inner-box"),a))};s.Qa=function(a){return a.tagName=="DIV"};
s.da=function(a,b){gg(b,!0);gg(b,!1);var c;a:{if((c=a.V().Cg(b))&&c.className.indexOf(this.o()+"-outer-box")!=-1)if((c=a.V().Cg(c))&&c.className.indexOf(this.o()+"-inner-box")!=-1){c=!0;break a}c=!1}c||b.appendChild(this.de(b.childNodes,a.V()));ac(b,"goog-inline-block",this.o());return fg.b.da.call(this,a,b)};s.o=q("goog-custom-button");
function gg(a,b){if(a)for(var c=b?a.firstChild:a.lastChild,d;c&&c.parentNode==a;){d=b?c.nextSibling:c.previousSibling;if(c.nodeType==3){var f=c.nodeValue;if(pa(f)=="")a.removeChild(c);else{c.nodeValue=b?f.replace(/^[\s\xa0]+/,""):f.replace(/[\s\xa0]+$/,"");break}}else break;c=d}};function hg(a,b,c){eg.call(this,a,b||fg.za(),c)}C(hg,eg);Tf("goog-custom-button",function(){return new hg(n)});function Z(a,b){if(a instanceof Z)this.C=a.Td();else{var c;if(c=ea(a))a:{for(var d=c=0;d<a.length;d++){if(!ea(a[d])||c>0&&a[d].length!=c){c=!1;break a}for(var f=0;f<a[d].length;f++)if(!fa(a[d][f])){c=!1;break a}if(c==0)c=a[d].length}c=c!=0}c?this.C=Za(a):a instanceof Ac?this.C=ig(a.height,a.width):fa(a)&&fa(b)&&a>0&&b>0?this.C=ig(a,b):e(Error("Invalid argument(s) for Matrix contructor"))}this.m=new Ac(this.C[0].length,this.C.length)}
function jg(a){for(var b=[],c=0;c<a;c++){b[c]=[];for(var d=0;d<a;d++)b[c][d]=c==d?1:0}return new Z(b)}function kg(a,b,c){for(var d=0;d<a.vb().height;d++)for(var f=0;f<a.vb().width;f++)b.call(c,a.C[d][f],d,f,a)}function lg(a,b){var c=new Z(a.vb());kg(a,function(d,f,g){c.C[f][g]=b.call(i,d,f,g,a)});return c}function ig(a,b){for(var c=[],d=0;d<a;d++){c[d]=[];for(var f=0;f<b;f++)c[d][f]=0}return c}s=Z.prototype;
s.add=function(a){Bc(this.m,a.vb())||e(Error("Matrix summation is only supported on arrays of equal size"));return lg(this,function(b,c,d){return b+a.C[c][d]})};function mg(a,b){a.m.height!=b.vb().height&&e(Error("The given matrix has height "+b.m.height+", but  needs to have height "+a.m.height+"."));var c=new Z(a.m.height,a.m.width+b.m.width);kg(a,function(a,b,g){c.C[b][g]=a});kg(b,function(a,b,g){c.C[b][this.m.width+g]=a},a);return c}
s.equals=function(a,b){if(this.m.width!=a.m.width)return!1;if(this.m.height!=a.m.height)return!1;for(var c=b||0,d=0;d<this.m.height;d++)for(var f=0;f<this.m.width;f++)if(!(Math.abs(this.C[d][f]-a.C[d][f])<=(c||1.0E-6)))return!1;return!0};s.vb=p("m");function ng(a){var b=new Z(a.m.width,a.m.height);kg(a,function(a,d,f){b.C[f][d]=a});return b}function og(a,b,c){if(!(b>=0&&b<a.m.height&&c>=0&&c<a.m.width))return n;return a.C[b][c]}
function pg(a,b,c,d){b>=0&&b<a.m.height&&c>=0&&c<a.m.width||e(Error("Index out of bounds when setting matrix value, ("+b+","+c+") in size ("+a.m.height+","+a.m.width+")"));a.C[b][c]=d}s.multiply=function(a){if(a instanceof Z)return this.m.width!=a.vb().height&&e(Error("Invalid matrices for multiplication. Second matrix should have the same number of rows as the first has columns.")),qg(this,a);else if(fa(a))return rg(this,a);else e(Error("A matrix can only be multiplied by a number or another matrix."))};
s.bg=function(a){Bc(this.m,a.vb())||e(Error("Matrix subtraction is only supported on arrays of equal size."));return lg(this,function(b,c,d){return b-a.C[c][d]})};s.Td=p("C");function sg(a,b,c,d){var f=new Z((c?c:a.m.height-1)-0+1,(d?d:a.m.width-1)-b+1);kg(f,function(a,c,d){f.C[c][d]=this.C[0+c][b+d]},a);return f}function qg(a,b){var c=new Z(a.m.height,b.vb().width);kg(c,function(a,f,g){for(var h=a=0;h<this.m.width;h++)a+=og(this,f,h)*og(b,h,g);pg(c,f,g,a)},a);return c}
function rg(a,b){return lg(a,function(a){return a*b})};function tg(){this.sa=jg(4)}tg.prototype.translate=function(a,b,c){this.sa=this.sa.multiply(new Z([[1,0,0,a],[0,1,0,b],[0,0,1,c],[0,0,0,1]]))};tg.prototype.scale=function(a,b,c){this.sa=this.sa.multiply(new Z([[a,0,0,0],[0,b,0,0],[0,0,c,0],[0,0,0,1]]))};function ug(a,b){var c=Math.cos(b),d=Math.sin(b);a.sa=a.sa.multiply(new Z([[1,0,0,0],[0,c,-d,0],[0,d,c,0],[0,0,0,1]]))}function vg(a,b){var c=Math.cos(b),d=Math.sin(b);a.sa=a.sa.multiply(new Z([[c,-d,0,0],[d,c,0,0],[0,0,1,0],[0,0,0,1]]))};function wg(a,b,c){function d(a,b){try{var c=a.getContext(b);if(c!=n)return c}catch(d){}return n}for(var f=n,g=["webgl","experimental-webgl"],h=0;x(f)&&h<g.length;++h)f=f||d(a,g[h]);x(f)&&(w(c)?c():e(Error("unable to get a valid WebGL context")));f.enable(f.CULL_FACE);f.cullFace(f.BACK);f.clearColor(0,0,0,0);f.clearDepth(1);f.enable(f.DEPTH_TEST);f.depthFunc(f.LEQUAL);f.blendFunc(f.SRC_ALPHA,f.ONE_MINUS_SRC_ALPHA);this.canvas=a;this.bf=b||n;this.g=f;this.fb=a.width;this.eb=a.height;f.viewport(0,0,
this.fb,this.eb);this.ae=this.nc=0;this.$d=1;this.od=this.fb/this.eb;this.Bc=jg(4);this.Ba=new tg;this.we=this.ve=this.Bc;this.cf=this.he=this.yf=this.pg=this.af=0;T(t,"resize",this.Be,!1,this)}function xg(a){a.nc=J(50);a.ae=1.0E-6;a.$d=5;a.od=a.fb/a.eb;yg(a)}function yg(a){var b=1/Math.tan(a.nc/2);a.Bc=new Z([[b/a.od,0,0,0],[0,b,0,0],[0,0,0,0],[0,0,-1,0]]);zg(a)}function zg(a){var b=a.ae-a.$d;pg(a.Bc,2,2,(a.$d+a.ae)/b);pg(a.Bc,2,3,2*a.$d*a.ae/b)}
wg.prototype.Be=function(){this.fb=this.canvas.width=this.canvas.clientWidth;this.eb=this.canvas.height=this.canvas.clientHeight;this.g.viewport(0,0,this.fb,this.eb);this.od=this.fb/this.eb;yg(this);Ag(this.n)};wg.prototype.n=n;
function Bg(a){a.ve=a.Bc.multiply(a.Ba.sa);var b;var c=a.ve;c.m.width!=c.m.height&&e(Error("An inverse can only be taken on a square matrix."));b=jg(c.m.height);b:{for(var c=mg(c,b),d=new Z(c),f=0,g=0;g<d.m.height;g++){if(f>=d.m.width)break;for(var h=g;d.C[h][f]==0;)if(h++,h==d.m.height&&(h=g,f++,f==d.m.width)){c=d;break b}var j=c,k=g,l=j.C[h];j.C[h]=j.C[k];j.C[k]=l;h=d.C[g][f];for(j=f;j<d.m.width;j++)d.C[g][j]/=h;for(h=0;h<d.m.height;h++)if(h!=g){k=d.C[h][f];for(j=f;j<d.m.width;j++)d.C[h][j]-=k*
d.C[g][j]}f++}c=d}b=sg(c,0,b.m.width-1,b.m.height-1).equals(b)?sg(c,b.m.width):n;a.we=b;return a.ve}wg.prototype.Hf=v;wg.prototype.Hd="";function Cg(a,b,c){c=a.g.createShader(c);a.g.shaderSource(c,b);a.g.compileShader(c);a.g.getShaderParameter(c,a.g.COMPILE_STATUS)?x(c)&&e(Error("Unknown")):e(Error("Shader err: "+a.g.getShaderInfoLog(c)));return c};var Dg={"earth-fs-overlay.glsl":"precision mediump float;uniform sampler2D uBufferL0A;uniform sampler2D uBufferL1A;uniform sampler2D uBufferL2A;uniform sampler2D uBufferLnA;varying float vFallbackA;varying vec2 vTCA;uniform sampler2D uBufferL0B;uniform sampler2D uBufferL1B;uniform sampler2D uBufferL2B;varying float vFallbackB;varying vec2 vTCB;uniform float uMixFactor;void main(){float fallbackA=floor(vFallbackA+0.5);vec4 colorA;if(fallbackA==0.0){colorA=texture2D(uBufferL0A,vTCA);}else if(fallbackA==1.0){colorA=texture2D(uBufferL1A,vTCA);}else if(fallbackA==2.0){colorA=texture2D(uBufferL2A,vTCA);}else if(fallbackA==-1.0){colorA=texture2D(uBufferLnA,vTCA);}else{discard;}float fallbackB=floor(vFallbackB+0.5);vec4 colorB=vec4(0.0);if(fallbackB==0.0){colorB=texture2D(uBufferL0B,vTCB);}else if(fallbackB==1.0){colorB=texture2D(uBufferL1B,vTCB);}else if(fallbackB==2.0){colorB=texture2D(uBufferL2B,vTCB);}gl_FragColor=mix(colorA,colorB,uMixFactor*colorB.a);}",
"earth-fs.glsl":"precision mediump float;uniform sampler2D uBufferL0A;uniform sampler2D uBufferL1A;uniform sampler2D uBufferL2A;uniform sampler2D uBufferLnA;varying float vFallbackA;varying vec2 vTCA;void main(){float fallback=floor(vFallbackA+0.5);if(fallback==0.0){gl_FragColor=texture2D(uBufferL0A,vTCA);}else if(fallback==1.0){gl_FragColor=texture2D(uBufferL1A,vTCA);}else if(fallback==2.0){gl_FragColor=texture2D(uBufferL2A,vTCA);}else if(fallback==-1.0){gl_FragColor=texture2D(uBufferLnA,vTCA);}else{discard;}}",
"earth-vs-overlay.glsl":"#define BUFF_SIDE 4.0\n#define BUFF_SIZE 16\n#define TERRAIN %TERRAIN_BOOL%\n#define BUFF_SIDE_T %BUFFER_SIDE_T_FLOAT%\n#define BUFF_SIZE_T int(BUFF_SIDE_T*BUFF_SIDE_T)\nprecision highp float;const float PI=3.1415927;const float PI2=6.2831855;const float EARTH_RADIUS=6378137.0;const float TERRAIN_MIN=-10000.0;const float TERRAIN_MAX=12000.0;attribute vec2 aVertexPosition;attribute vec2 aTextureCoord;uniform mat4 uMVPMatrix;uniform float uTileCount;uniform vec2 uOffset;uniform float uMetaL0A[BUFF_SIZE];uniform float uMetaL1A[BUFF_SIZE];uniform float uMetaL2A[BUFF_SIZE];uniform vec2 uOffLA[3];varying float vFallbackA;varying vec2 vTCA;uniform float uMetaL0B[BUFF_SIZE];uniform float uMetaL1B[BUFF_SIZE];uniform float uMetaL2B[BUFF_SIZE];uniform vec2 uOffLB[3];varying float vFallbackB;varying vec2 vTCB;\n#if TERRAIN\nuniform float uMetaL0T[BUFF_SIZE_T];uniform float uMetaL1T[BUFF_SIZE_T];uniform vec2 uOffLT[2];uniform sampler2D uBufferL0T;uniform sampler2D uBufferL1T;uniform sampler2D uBufferLnT;uniform float uDegradationT;bool validateOffsetT(vec2 off){return off.x>=0.0&&off.y>=0.0&&off.x<BUFF_SIDE_T&&off.y<BUFF_SIDE_T;}\n#endif\nbool validateOffset(vec2 off){return off.x>=0.0&&off.y>=0.0&&off.x<BUFF_SIDE&&off.y<BUFF_SIDE;}vec2 modFirst(vec2 x,float y){return vec2(x.x-y*floor(x.x/y),x.y);}void main(){vec2 phi=PI2*(aVertexPosition+uOffset)/uTileCount;vec2 tileCoords=vec2(mod(aVertexPosition.x-aTextureCoord.x+uOffset.x+uTileCount*0.5,uTileCount),-aTextureCoord.y-aVertexPosition.y-uOffset.y+uTileCount*0.5);float elev=0.0;\n#if TERRAIN\nvec2 TCT;float fallbackT=-1.0;float degradationModifier=exp2(uDegradationT);vec2 offT=modFirst(tileCoords/degradationModifier-uOffLT[0],uTileCount/degradationModifier);vec2 rawElev;if(validateOffsetT(offT)&&uMetaL0T[int(floor(offT.y)*BUFF_SIDE_T+offT.x)]==1.0){fallbackT=0.0;}else{offT=modFirst((tileCoords/(2.0*degradationModifier))-uOffLT[1],uTileCount/(2.0*degradationModifier));if(validateOffsetT(offT)&&uMetaL1T[int(floor(offT.y)*BUFF_SIDE_T+offT.x)]==1.0){fallbackT=1.0;}else{TCT=(tileCoords+aTextureCoord)/uTileCount;}}if(fallbackT>=0.0){TCT=(offT+aTextureCoord/(exp2(fallbackT)*degradationModifier)+mod(uOffLT[int(fallbackT)],BUFF_SIDE_T))/BUFF_SIDE_T;}TCT.y=1.0-TCT.y;if(fallbackT==0.0){rawElev=texture2D(uBufferL0T,TCT).rg;}else if(fallbackT==1.0){rawElev=texture2D(uBufferL1T,TCT).rg;}else{rawElev=texture2D(uBufferLnT,TCT).rg;}elev=((TERRAIN_MAX-TERRAIN_MIN)*(rawElev.r+rawElev.g/256.0)-TERRAIN_MAX)/EARTH_RADIUS;\n#endif\nfloat exp_2y=exp(2.0*phi.y);float tanh=((exp_2y-1.0)/(exp_2y+1.0));float cosy=sqrt(1.0-tanh*tanh);vec3 pos=vec3(sin(phi.x)*cosy,tanh,cos(phi.x)*cosy);gl_Position=uMVPMatrix*vec4(pos*(1.0+elev),1.0);if(abs(phi.y)>PI){vFallbackA=-1.0e3;return;}vFallbackA=-1.0;vec2 off=modFirst(tileCoords-uOffLA[0],uTileCount);if(validateOffset(off)&&uMetaL0A[int(floor(off.y)*BUFF_SIDE+off.x)]==1.0){vFallbackA=0.0;}else{off=modFirst((tileCoords/2.0)-uOffLA[1],uTileCount/2.0);if(validateOffset(off)&&uMetaL1A[int(floor(off.y)*BUFF_SIDE+off.x)]==1.0){vFallbackA=1.0;}else{off=modFirst((tileCoords/4.0)-uOffLA[2],uTileCount/4.0);if(validateOffset(off)&&uMetaL2A[int(floor(off.y)*BUFF_SIDE+off.x)]==1.0){vFallbackA=2.0;}}}if(vFallbackA>=0.0){vTCA=(off+aTextureCoord/exp2(vFallbackA)+mod(uOffLA[int(vFallbackA)],BUFF_SIDE))/BUFF_SIDE;}else{vTCA=(tileCoords+aTextureCoord)/uTileCount;}vTCA.y=1.0-vTCA.y;vFallbackB=-1.0;off=modFirst(tileCoords-uOffLB[0],uTileCount);if(validateOffset(off)&&uMetaL0B[int(floor(off.y)*BUFF_SIDE+off.x)]==1.0){vFallbackB=0.0;}else{off=modFirst((tileCoords/2.0)-uOffLB[1],uTileCount/2.0);if(validateOffset(off)&&uMetaL1B[int(floor(off.y)*BUFF_SIDE+off.x)]==1.0){vFallbackB=1.0;}else{off=modFirst((tileCoords/4.0)-uOffLB[2],uTileCount/4.0);if(validateOffset(off)&&uMetaL2B[int(floor(off.y)*BUFF_SIDE+off.x)]==1.0){vFallbackB=2.0;}}}if(vFallbackB>=0.0){vTCB=(off+aTextureCoord/exp2(vFallbackB)+mod(uOffLB[int(vFallbackB)],BUFF_SIDE))/BUFF_SIDE;}else{vTCB=(tileCoords+aTextureCoord)/uTileCount;}vTCB.y=1.0-vTCB.y;}",
"earth-vs.glsl":"#define BUFF_SIDE 8.0\n#define BUFF_SIZE 64\n#define TERRAIN %TERRAIN_BOOL%\n#define BUFF_SIDE_T %BUFFER_SIDE_T_FLOAT%\n#define BUFF_SIZE_T int(BUFF_SIDE_T*BUFF_SIDE_T)\nprecision highp float;const float PI=3.1415927;const float PI2=6.2831855;const float EARTH_RADIUS=6378137.0;const float TERRAIN_MIN=-10000.0;const float TERRAIN_MAX=12000.0;attribute vec2 aVertexPosition;attribute vec2 aTextureCoord;uniform mat4 uMVPMatrix;uniform float uTileCount;uniform vec2 uOffset;uniform float uMetaL0A[BUFF_SIZE];uniform float uMetaL1A[BUFF_SIZE];uniform float uMetaL2A[BUFF_SIZE];uniform vec2 uOffLA[3];varying float vFallbackA;varying vec2 vTCA;\n#if TERRAIN\nuniform float uMetaL0T[BUFF_SIZE_T];uniform float uMetaL1T[BUFF_SIZE_T];uniform vec2 uOffLT[2];uniform sampler2D uBufferL0T;uniform sampler2D uBufferL1T;uniform sampler2D uBufferLnT;uniform float uDegradationT;bool validateOffsetT(vec2 off){return off.x>=0.0&&off.y>=0.0&&off.x<BUFF_SIDE_T&&off.y<BUFF_SIDE_T;}\n#endif\nbool validateOffset(vec2 off){return off.x>=0.0&&off.y>=0.0&&off.x<BUFF_SIDE&&off.y<BUFF_SIDE;}vec2 modFirst(vec2 x,float y){return vec2(x.x-y*floor(x.x/y),x.y);}void main(){vec2 phi=PI2*(aVertexPosition+uOffset)/uTileCount;vec2 tileCoords=vec2(mod(aVertexPosition.x-aTextureCoord.x+uOffset.x+uTileCount*0.5,uTileCount),-aTextureCoord.y-aVertexPosition.y-uOffset.y+uTileCount*0.5);float elev=0.0;\n#if TERRAIN\nvec2 TCT;float fallbackT=-1.0;float degradationModifier=exp2(uDegradationT);vec2 offT=modFirst(tileCoords/degradationModifier-uOffLT[0],uTileCount/degradationModifier);vec2 rawElev;if(validateOffsetT(offT)&&uMetaL0T[int(floor(offT.y)*BUFF_SIDE_T+offT.x)]==1.0){fallbackT=0.0;}else{offT=modFirst((tileCoords/(2.0*degradationModifier))-uOffLT[1],uTileCount/(2.0*degradationModifier));if(validateOffsetT(offT)&&uMetaL1T[int(floor(offT.y)*BUFF_SIDE_T+offT.x)]==1.0){fallbackT=1.0;}else{TCT=(tileCoords+aTextureCoord)/uTileCount;}}if(fallbackT>=0.0){TCT=(offT+aTextureCoord/(exp2(fallbackT)*degradationModifier)+mod(uOffLT[int(fallbackT)],BUFF_SIDE_T))/BUFF_SIDE_T;}TCT.y=1.0-TCT.y;if(fallbackT==0.0){rawElev=texture2D(uBufferL0T,TCT).rg;}else if(fallbackT==1.0){rawElev=texture2D(uBufferL1T,TCT).rg;}else{rawElev=texture2D(uBufferLnT,TCT).rg;}elev=((TERRAIN_MAX-TERRAIN_MIN)*(rawElev.r+rawElev.g/256.0)-TERRAIN_MAX)/EARTH_RADIUS;\n#endif\nfloat exp_2y=exp(2.0*phi.y);float tanh=((exp_2y-1.0)/(exp_2y+1.0));float cosy=sqrt(1.0-tanh*tanh);vec3 pos=vec3(sin(phi.x)*cosy,tanh,cos(phi.x)*cosy);gl_Position=uMVPMatrix*vec4(pos*(1.0+elev),1.0);if(abs(phi.y)>PI){vFallbackA=-1.0e3;return;}vFallbackA=-1.0;vec2 off=modFirst(tileCoords-uOffLA[0],uTileCount);if(validateOffset(off)&&uMetaL0A[int(floor(off.y)*BUFF_SIDE+off.x)]==1.0){vFallbackA=0.0;}else{off=modFirst((tileCoords/2.0)-uOffLA[1],uTileCount/2.0);if(validateOffset(off)&&uMetaL1A[int(floor(off.y)*BUFF_SIDE+off.x)]==1.0){vFallbackA=1.0;}else{off=modFirst((tileCoords/4.0)-uOffLA[2],uTileCount/4.0);if(validateOffset(off)&&uMetaL2A[int(floor(off.y)*BUFF_SIDE+off.x)]==1.0){vFallbackA=2.0;}}}if(vFallbackA>=0.0){vTCA=(off+aTextureCoord/exp2(vFallbackA)+mod(uOffLA[int(vFallbackA)],BUFF_SIDE))/BUFF_SIDE;}else{vTCA=(tileCoords+aTextureCoord)/uTileCount;}vTCA.y=1.0-vTCA.y;}",
"halo-fs.glsl":"precision lowp float;uniform sampler2D uGradient;varying vec2 vCoords;void main(){float distance=vCoords.x*vCoords.x+vCoords.y*vCoords.y;if(distance<0.98){discard;}else{gl_FragColor=texture2D(uGradient,vec2((sqrt(distance)-1.0)/0.1,0.5));}}","halo-vs.glsl":"precision lowp float;attribute vec2 aVertexPosition;uniform mat4 uMVMatrix;uniform mat4 uPMatrix;varying vec2 vCoords;void main(){gl_Position=uPMatrix*(uMVMatrix[3]+uMVMatrix[0]*aVertexPosition.x+uMVMatrix[1]*aVertexPosition.y);gl_Position.z=0.0;vCoords=aVertexPosition;}"};function Eg(a){return a in Dg?Dg[a]:Ab("../we/shaders/"+a)};function Fg(a){var c;this.a=a.a;c=this.g=a.a.g,a=c;this.Fh=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Fh);a.bufferData(a.ARRAY_BUFFER,new Float32Array([1.1,1.1,-1.1,1.1,1.1,-1.1,-1.1,-1.1]),a.STATIC_DRAW);this.Eg=a.createTexture();var b=new Uint8Array([224,224,255,255,207,218,250,220,179,194,245,180,137,166,237,145,84,123,221,110,51,94,198,75,25,67,178,30,13,53,161,0]);a.bindTexture(a.TEXTURE_2D,this.Eg);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,8,1,0,a.RGBA,a.UNSIGNED_BYTE,b);a.texParameteri(a.TEXTURE_2D,
a.TEXTURE_MAG_FILTER,a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE);b=Eg("halo-fs.glsl");a=Eg("halo-vs.glsl");b=Cg(this.a,b,this.g.FRAGMENT_SHADER);a=Cg(this.a,a,this.g.VERTEX_SHADER);this.La=this.g.createProgram();x(this.La)&&e(Error("Unknown"));this.g.attachShader(this.La,a);this.g.attachShader(this.La,b);this.g.bindAttribLocation(this.La,0,"aVertexPosition");
this.g.linkProgram(this.La);this.g.getProgramParameter(this.La,this.g.LINK_STATUS)||e(Error("Shader program err: "+this.g.getProgramInfoLog(this.La)));this.Zd=this.g.getAttribLocation(this.La,"aVertexPosition");this.g.enableVertexAttribArray(this.Zd);this.ij=this.g.getUniformLocation(this.La,"uMVMatrix");this.zj=this.g.getUniformLocation(this.La,"uPMatrix");this.qi=this.g.getUniformLocation(this.La,"uGradient")}
Fg.prototype.draw=function(){this.g.useProgram(this.La);this.g.bindBuffer(this.g.ARRAY_BUFFER,this.Fh);this.g.vertexAttribPointer(this.Zd,2,this.g.FLOAT,!1,0,0);this.g.activeTexture(this.g.TEXTURE0);this.g.bindTexture(this.g.TEXTURE_2D,this.Eg);this.g.uniform1i(this.qi,0);var a=new Float32Array(eb(ng(this.a.Ba.sa).Td())),b=new Float32Array(eb(ng(this.a.Bc).Td()));this.g.uniformMatrix4fv(this.ij,!1,a);this.g.uniformMatrix4fv(this.zj,!1,b);this.g.drawArrays(this.g.TRIANGLE_STRIP,0,4)};function Gg(a){this.f=a;this.yb=this.ob=0;this.ga=1E7;this.qh=this.Gb=this.Wc=0}C(Gg,W);s=Gg.prototype;s.setPosition=function(a,b){this.ob=I(a,-1.57,1.57);this.yb=Bb(b);this.dispatchEvent(new Hg(Ig))};function Jg(a,b,c){function d(a){var d=c;c=d*Math.cos(a)-2*b*Math.sin(a);b=d*Math.sin(a)/2+b*Math.cos(a)}d(a.qh);b/=Math.max(Math.abs(Math.cos(a.Gb)),0.1);d(a.Wc);a.setPosition(a.ob+b,a.yb+c)}s.getPosition=function(){return[this.ob,this.yb]};
function Kg(a,b){a.ga=I(b,250,1E7);a.dispatchEvent(new Hg(Lg))}s.Tc=function(){return Mg(this.f,this.f.a.fb/2,this.f.a.eb/2,!0)};s.setHeading=ba("Wc");s.setTilt=ba("Gb");s.getHeading=p("Wc");s.getTilt=p("Gb");var Ig="poschanged",Lg="altchanged";function Hg(a){R.call(this,a)}C(Hg,R);function Ng(a,b,c,d,f){function g(a,b,c,d){return a?b:Math.max(1,Math.pow(2,Math.ceil(Math.log(b/Math.max(1,Math.sqrt(c*c+d*d)))/Math.LN2)))}a=a.g;this.cb=[];this.Mc=[];this.v=[];for(var h=-b/2;h<b/2;++h)for(var j=-c/2;j<c/2;++j){var k=g(f,d,h,j);Og(this,h,j,k,[j+1<c/2&&g(f,d,h,j+1)>k,h+1<b/2&&g(f,d,h+1,j)>k,j-1>-c/2&&g(f,d,h,j-1)>k,h-1>-b/2&&g(f,d,h-1,j)>k])}this.Ke=a.createBuffer();this.Ie=a.createBuffer();this.Qg=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Ke);a.bufferData(a.ARRAY_BUFFER,
new Float32Array(this.cb),a.STATIC_DRAW);this.Ke.uf=2;a.bindBuffer(a.ARRAY_BUFFER,this.Ie);a.bufferData(a.ARRAY_BUFFER,new Float32Array(this.Mc),a.STATIC_DRAW);this.Ie.uf=2;a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Qg);a.bufferData(a.ELEMENT_ARRAY_BUFFER,new Uint16Array(this.v),a.STATIC_DRAW);this.mj=this.v.length}
function Og(a,b,c,d,f){for(var g=a.cb.length/2,h=0;h<=d;++h)for(var j=0;j<=d;++j)a.cb.push(b+j/d,c+h/d),a.Mc.push(j/d,1-h/d);var k=[0,0,0,0];if(f[0]){k[0]=a.cb.length/2;for(j=0;j<d;++j)a.cb.push(b+(j+0.5)/d,c+1),a.Mc.push((j+0.5)/d,0)}if(f[1]){k[1]=a.cb.length/2;for(h=0;h<d;++h)a.cb.push(b+1,c+(h+0.5)/d),a.Mc.push(1,1-(h+0.5)/d)}if(f[2]){k[2]=a.cb.length/2;for(j=0;j<d;++j)a.cb.push(b+(j+0.5)/d,c),a.Mc.push((j+0.5)/d,1)}if(f[3]){k[3]=a.cb.length/2;for(h=0;h<d;++h)a.cb.push(b,c+(h+0.5)/d),a.Mc.push(0,
1-(h+0.5)/d)}b=A(aa(),a);c=d+1;for(h=0;h<d;++h)for(j=0;j<d;++j){var l=g+h*c+j;a.v.push(l);var o=h==0&&f[2],m=j==0&&f[3];o&&!m?(a.v.push(k[2]+j),a.v.push(l+c),b(),a.v.push(k[2]+j)):m&&!o?(a.v.push(l+1),a.v.push(k[3]+h),b(),a.v.push(k[3]+h)):m&&o&&(a.v.push(k[2]+j),a.v.push(k[3]+h),b(),a.v.push(k[3]+h),a.v.push(k[2]+j),a.v.push(l+c),b(),a.v.push(k[2]+j));a.v.push(l+1);a.v.push(l+c);b();a.v.push(l+c+1);o=h==d-1&&f[0];m=j==d-1&&f[1];o&&!m?(a.v.push(k[0]+j),a.v.push(l+1),b(),a.v.push(k[0]+j)):m&&!o?(a.v.push(l+
c),a.v.push(k[1]+h),b(),a.v.push(k[1]+h)):o&&m&&(a.v.push(k[0]+j),a.v.push(k[1]+h),b(),a.v.push(k[1]+h),a.v.push(k[0]+j),a.v.push(l+1),b(),a.v.push(k[0]+j));a.v.push(l+c);a.v.push(l+1);b()}};function Pg(a,b,c,d){b=b.g;this.D=a;this.Zd=b.getAttribLocation(this.D,"aVertexPosition");b.enableVertexAttribArray(this.Zd);this.zh=b.getAttribLocation(this.D,"aTextureCoord");b.enableVertexAttribArray(this.zh);this.jj=$(b,this.D,"uMVPMatrix");this.Ti=$(b,this.D,"uMetaL0A");this.Wi=$(b,this.D,"uMetaL1A");this.Zi=$(b,this.D,"uMetaL2A");this.Ki=$(b,this.D,"uOffLA");this.Rh=$(b,this.D,"uBufferL0A");this.Uh=$(b,this.D,"uBufferL1A");this.Xh=$(b,this.D,"uBufferL2A");this.Zh=$(b,this.D,"uBufferLnA");if(c)this.Ui=
$(b,this.D,"uMetaL0B"),this.Xi=$(b,this.D,"uMetaL1B"),this.$i=$(b,this.D,"uMetaL2B"),this.Li=$(b,this.D,"uOffLB"),this.Sh=$(b,this.D,"uBufferL0B"),this.Vh=$(b,this.D,"uBufferL1B"),this.Yh=$(b,this.D,"uBufferL2B"),this.cj=$(b,this.D,"uMixFactor");if(d)this.ii=$(b,this.D,"uDegradationT"),this.Vi=$(b,this.D,"uMetaL0T"),this.Yi=$(b,this.D,"uMetaL1T"),this.Mi=$(b,this.D,"uOffLT"),this.Th=$(b,this.D,"uBufferL0T"),this.Wh=$(b,this.D,"uBufferL1T"),this.$h=$(b,this.D,"uBufferLnT");this.Qj=$(b,this.D,"uTileCount");
this.nj=$(b,this.D,"uOffset")}function $(a,b,c){a=a.getUniformLocation(b,c);x(a)&&e(Error("Invalid name "+c));return a};function Qg(a){this.Fb=new lb;this.vc=[];this.Oj=512;this.ug=new Ee(2E4);T(this.ug,Ge,this.bi,!1,this);this.ug.start();Rg(this,a)}function Rg(a,b){a.Ah=B();a.Ha=b;gb(a.Fb,function(a){a.j()});a.Fb.clear();a.vc=[]}s=Qg.prototype;s.Ha=n;s.Ah=0;s.Pj=v;
s.bi=function(){var a=Sa(this.Fb.Rb(),function(a){return a.state==20||a.state==Fa||a.state==-10});for(cb(a,function(a,b){return a.$b-b.$b});this.Fb.df()>this.Oj&&a.length>0;){var b=a.shift();b.state==Fa&&Xa(this.vc,b);this.Fb.remove(b.zoom+"_"+b.x+"_"+b.y);b.j()}};s.Rj=function(a){a.$b<this.Ah?(a.state=-10,this.Fb.remove(a.zoom+"_"+a.x+"_"+a.y),a.j()):this.Pj(a)};
function Sg(a){cb(a.vc,function(a,b){return a.$b-b.$b});for(var b=Math.min(a.vc.length,5-a.Ha.Zc),c=0;c<b;c++)tb(a.Ha,a.vc.pop(),A(a.Rj,a))};function Tg(a,b,c,d){this.hb=b;this.Jb=[];this.s=c;this.Ha=a;this.dg=new Qg(a);this.wa=d;this.Ga=1<<this.wa;this.Oc=this.s>=this.Ga;this.Ab=this.yc=0;this.buffer=n;this.ta=[];Ug(this)}function Ug(a){a.ta=[];for(var b=0;b<a.s;++b)a.ta.push(Array(a.s));a.buffer&&a.buffer.clear()}Tg.prototype.disable=function(){this.Jb=[];Ug(this);this.buffer=n};Tg.prototype.Lb=function(a){this.Ha=a;Rg(this.dg,a);this.Jb=[];Ug(this)};
function Vg(a){a.Jb=[];for(var b=A(function(a,b){var c=(this.Oc?this.Ga:this.s)/2;a+=c;b+=c;this.ta[b][a]!==1&&Wg(this,this.yc+a,this.Ab+b,d)},a),c=A(function(a,c){for(var d=-c;d<c;++d)b(d,-c),b(d,c-1);for(d=-c;d<c;++d)b(-c,d),b(c-1,d)},a),d=B(),a=Math.min(a.s,a.Ga)/2;a>0;--a)c(d+a,a)}
function Wg(a,b,c,d){var b=yb(b,a.Ga),c=yb(c,a.Ga),f;a:{f=a.dg;var g=a.wa,h=b,j=c,c=g+"_"+h+"_"+j,b=f.Fb.get(c);if(b!=n)b.state==-10?d-b.$b>7E3&&(b.j(),b=new Ea(g,h,j,d),f.Fb.set(c,b),f.vc.push(b)):b.$b=d;else{d=b=new Ea(g,h,j,d);g=rb(f.Ha,d.zoom);if(!(d.x>=g.left&&d.x<=g.right&&d.y>=g.top&&d.y<=g.bottom)){f=n;break a}f.Fb.set(c,b);f.vc.push(b)}f=b}!x(f)&&f.state==20&&a.Jb.push(f)};function Xg(a,b,c){var d;d=this.wb=a.g,a=d;this.hg=b;this.qf=c;this.Ma=a.createTexture();Yg(this)}Xg.prototype.Be=function(a,b){if(!(this.hg==a&&this.qf==b))this.hg=a,this.qf=b,this.wb.deleteTexture(this.Ma),this.Ma=this.wb.createTexture(),Yg(this)};
function Yg(a){var b=a.wb;b.bindTexture(b.TEXTURE_2D,a.Ma);b.pixelStorei(b.UNPACK_FLIP_Y_WEBGL,1);b.texImage2D(b.TEXTURE_2D,0,b.RGBA,a.hg,a.qf,0,b.RGBA,b.UNSIGNED_BYTE,n);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,Zg?b.LINEAR_MIPMAP_LINEAR:b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,Zg?b.LINEAR_MIPMAP_LINEAR:b.LINEAR)}Xg.prototype.clear=function(){this.wb.deleteTexture(this.Ma);this.Ma=this.wb.createTexture();Yg(this)};function $g(a,b,c){function d(b){g.isTexture(h)&&!(b.Ag>=3)&&ub(a,b,f,d)}function f(c){if(g.isTexture(h)){g.bindTexture(g.TEXTURE_2D,h);try{g.texSubImage2D(g.TEXTURE_2D,0,c.x*k,(j-c.y-1)*k,g.RGBA,g.UNSIGNED_BYTE,c.sd?n:c.Sb)}catch(l){a.Te()&&(a.Uf(b.Hd)||!(c.Sb&&c.Sb.src.lastIndexOf(b.Hd,0)==0))?ub(a,c,f,d):b.Hf()}}}var g=this.wb=b.g,h=g.createTexture();this.Ma=h;var j=1<<c,k=a.tileSize;g.bindTexture(g.TEXTURE_2D,h);g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,1);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,k*j,k*j,
0,g.RGBA,g.UNSIGNED_BYTE,n);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR);for(var l=0;l<j;++l)for(var o=0;o<j;++o)tb(a,new Ea(c,l,o),f,d)}C($g,D);$g.prototype.h=function(){this.wb.deleteTexture(this.Ma)};function ah(a,b,c,d,f,g,h){this.hb=b;this.s=c;this.Ka=f;this.te=g;this.Ha=a;var j=a.tileSize;this.rb=[];for(var k=0;k<d;++k)this.rb.push(new Xg(b,this.s*j,this.s*j));for(this.aa=[];f<=g;++f)this.aa.push(new Tg(a,b,c,f));for(k=0;k<d;++k)this.aa[k].buffer=this.rb[k];this.Oa=0;this.Cd=h?n:new $g(a,b,2)}ah.prototype.Lb=function(a){if(!x(this.Cd))this.Cd.j(),this.Cd=new $g(a,this.hb,2);this.Ha=a;var b=this.s*a.tileSize;H(this.rb,function(a){a.Be(b,b)});H(this.aa,function(b){b.Lb(a)});bh(this)};
function ch(a,b,c,d,f,g){for(var g=I(g,a.Ka,a.te),h=g-(a.Ka+a.Oa+a.rb.length-1);h>0;){var j=a.aa[a.Oa].buffer;a.aa[a.Oa].disable();a.aa[++a.Oa+a.rb.length-1].buffer=j;h--}for(;h<0&&a.Oa>0;)j=a.aa[a.Oa+a.rb.length-1].buffer,a.aa[a.Oa+a.rb.length-1].disable(),a.aa[--a.Oa].buffer=j,h++;for(var h=1<<g,k=!1,c=(c/(2*Math.PI)+0.5)*h,b=(0.5-sb(b)/(Math.PI*2))*h,f=(f/(2*Math.PI)+0.5)*h,j=(0.5-sb(d)/(Math.PI*2))*h,d=g-a.Ka;d>=a.Oa;d--){var l=I(c-a.s/2,f-a.s,f),o=I(b-a.s/2,j-a.s,j),m=rb(a.Ha,a.Ka+d),l=I(l,m.left,
m.right+1-a.s),o=I(o,m.top,m.bottom+1-a.s),l=yb(Math.round(l),h),o=Math.round(o),m=a.aa[d],u=o,o=!1;if(!m.Oc){var r=l-m.yc,V=u-m.Ab;Math.abs(r)>m.Ga/2&&(r=(r-(r==0?0:r<0?-1:1)*m.Ga)%m.Ga);m.yc=l;m.Ab=u;if(Math.abs(r)>=m.s||Math.abs(V)>=m.s)Ug(m),o=!0;else{o=r!=0||V!=0;if(r>0)for(l=0;l<m.s;++l)m.ta[l].splice(0,r),m.ta[l].push.apply(m.ta[l],Array(r));if(r<0)for(l=0;l<m.s;++l)m.ta[l].splice(m.s+r,-r),m.ta[l].unshift.apply(m.ta[l],Array(-r));if(V>0)for(l=0;l<V;++l)m.ta.shift(),m.ta.push(Array(m.s));if(V<
0)for(l=0;l<-V;++l)m.ta.pop(),m.ta.unshift(Array(m.s))}}Vg(m);k|=o;c/=2;b/=2;f/=2;j/=2}k&&bh(a);f=1;for(d=a.Oa;f>0&&d<=g-a.Ka;d++){h=f;c=a.aa[d];b=0;if(c.Jb.length>0){f=Math.min(c.Jb.length,f>=0?1:0);for(j=0;j<f;j++){l=c;k=c.Jb.pop();if(!x(l.buffer)&&k.zoom==l.wa&&(m=k.x-l.yc,o=k.y-l.Ab,r=1<<l.wa,m=yb(m,r),o=yb(o,r),!(m<0||m>=l.s||o<0||o>=l.s))){r=l.hb.g;u=l.Ha.tileSize;r.bindTexture(r.TEXTURE_2D,l.buffer.Ma);V=yb(m+l.yc,l.s)*u;u*=l.s-yb(o+l.Ab,l.s)-1;try{r.texSubImage2D(r.TEXTURE_2D,0,V,u,r.RGBA,
r.UNSIGNED_BYTE,k.sd?n:k.Sb),l.ta[o][m]=1}catch(md){l.Ha.Te()&&(l.Ha.Uf(l.hb.Hd)||!(k.Sb&&k.Sb.src.lastIndexOf(l.hb.Hd,0)==0))?Wg(l,k.x,k.y,k.$b):l.hb.Hf()}}b++}}Sg(c.dg);Zg&&b>0&&(c.hb.g.bindTexture(c.hb.g.TEXTURE_2D,c.buffer.Ma),c.hb.g.generateMipmap(c.hb.g.TEXTURE_2D));f=h-b}}function dh(a,b,c){if(b>a.te||b-c<a.Ka)return Array(a.s*a.s);return eb(a.aa[b-a.Ka-c].ta)}function eh(a,b,c){if(b>a.te||b-c<a.Ka)return n;return a.aa[b-a.Ka-c].buffer.Ma}
function fh(a,b,c){if(b>a.te)return Array(2*c);for(var d=[],f=b-a.Ka;f>b-a.Ka-c;--f)d.push(Math.round(a.aa[Math.max(0,f)].yc),Math.round(a.aa[Math.max(0,f)].Ab));return d}
function bh(a){for(var b=Array(a.rb.length),c=0;c<a.rb.length;c++){var d=a.aa[a.Oa+c],f=gh((0.5-d.Ab/d.Ga)*2*Math.PI),g=gh((0.5-(d.Ab+d.s)/d.Ga)*2*Math.PI);b[c]=new vb(d.Oc?0:gh((0.5-(d.Ab+d.s/2)/d.Ga)*2*Math.PI),d.Oc?0:((d.yc+d.s/2)/d.Ga-0.5)*2*Math.PI,d.Oc?Math.PI/2:Math.abs(f-g),d.Oc?Math.PI:d.s/d.Ga*2*Math.PI,d.wa)}a.Ha.Fj(b)};function hh(a,b){this.a=a.a;this.n=a;this.Sa=b||new Af;this.Da=new ah(this.Sa,this.a,8,3,1,19);this.ia=this.rd=n;this.yj=0;this.Hc=!1;this.Lb(this.Sa,!0);this.Ic=1;this.Ff=[0,0];this.sh=[new Ng(this.a,1,1,1),new Ng(this.a,4,4,16,!0),new Ng(this.a,6,6,8,!0),new Ng(this.a,8,8,8,!0),new Ng(this.a,10,10,8),new Ng(this.a,64,64,this.Hc?8:4)];this.Ni=ih(this,!1);this.Oi=ih(this,!0);this.wa=n;T(this.n.d,Lg,this.ig,!1,this)}s=hh.prototype;
s.Lb=function(a,b,c){if(a)a.ci=A(this.n.gg,this.n);if(c)if(this.rd=a)this.ia!=n?this.ia.Lb(a):(this.Da=new ah(this.Sa,this.a,4,3,1,19),this.ia=new ah(this.rd,this.a,4,3,0,15));else{if(this.ia!=n)this.Da=new ah(this.Sa,this.a,8,3,1,19),this.ia=n}else{if(!a)return;this.Da.Lb(a);this.Sa=a}b!==!0&&(Ag(this.n),this.n.gg(),this.setZoom(this.getZoom()))};function jh(a,b){return b?a.rd:a.Sa}
s.draw=function(){var a=this.a.g;this.Ic=1<<this.getZoom();var b=this.n.d.getPosition(),c=this.n.d.Tc()||b;this.Ff[0]=Math.floor(b[1]/(2*Math.PI)*this.Ic);this.Ff[1]=I(Math.floor(sb(b[0])/(Math.PI*2)*this.Ic),-this.Ic/2,this.Ic/2);ch(this.Da,c[0],c[1],b[0],b[1],Math.floor(this.getZoom()));this.ia&&ch(this.ia,c[0],c[1],b[0],b[1],Math.floor(this.getZoom()));this.Hc&&ch(this.Nb,c[0],c[1],b[0],b[1],Math.floor(this.getZoom())-5);c=Math.floor(this.getZoom());this.Ic=1<<c;b=this.ia?this.Oi:this.Ni;a.useProgram(b.D);
a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,eh(this.Da,c,0));a.uniform1i(b.Rh,0);a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,eh(this.Da,c,1));a.uniform1i(b.Uh,1);a.activeTexture(a.TEXTURE2);a.bindTexture(a.TEXTURE_2D,eh(this.Da,c,2));a.uniform1i(b.Xh,2);a.activeTexture(a.TEXTURE3);a.bindTexture(a.TEXTURE_2D,this.Da.Cd.Ma);a.uniform1i(b.Zh,3);a.uniform1fv(b.Ti,new Float32Array(dh(this.Da,c,0)));a.uniform1fv(b.Wi,new Float32Array(dh(this.Da,c,1)));a.uniform1fv(b.Zi,new Float32Array(dh(this.Da,
c,2)));a.uniform2fv(b.Ki,new Float32Array(fh(this.Da,c,3)));this.ia&&(a.activeTexture(a.TEXTURE4),a.bindTexture(a.TEXTURE_2D,eh(this.ia,c,0)),a.uniform1i(b.Sh,4),a.activeTexture(a.TEXTURE5),a.bindTexture(a.TEXTURE_2D,eh(this.ia,c,1)),a.uniform1i(b.Vh,5),a.activeTexture(a.TEXTURE6),a.bindTexture(a.TEXTURE_2D,eh(this.ia,c,2)),a.uniform1i(b.Yh,6),a.uniform1fv(b.Ui,new Float32Array(dh(this.ia,c,0))),a.uniform1fv(b.Xi,new Float32Array(dh(this.ia,c,1))),a.uniform1fv(b.$i,new Float32Array(dh(this.ia,c,2))),
a.uniform2fv(b.Li,new Float32Array(fh(this.ia,c,3))),a.uniform1f(b.cj,this.yj));if(this.Hc){var d=I(c-5,2,this.He.maxZoom);a.uniform1f(b.ii,c-d);a.activeTexture(a.TEXTURE7);a.bindTexture(a.TEXTURE_2D,eh(this.Nb,d,0));a.uniform1i(b.Th,7);a.activeTexture(a.TEXTURE8);a.bindTexture(a.TEXTURE_2D,eh(this.Nb,d,1));a.uniform1i(b.Wh,8);a.activeTexture(a.TEXTURE9);a.bindTexture(a.TEXTURE_2D,this.Nb.Cd.Ma);a.uniform1i(b.$h,9);a.uniform1fv(b.Vi,new Float32Array(dh(this.Nb,d,0)));a.uniform1fv(b.Yi,new Float32Array(dh(this.Nb,
d,1)));a.uniform2fv(b.Mi,new Float32Array(fh(this.Nb,d,2)))}d=new Float32Array(eb(ng(Bg(this.a)).Td()));c=this.sh[Math.min(c,this.sh.length-1)];a.bindBuffer(a.ARRAY_BUFFER,c.Ke);a.vertexAttribPointer(b.Zd,c.Ke.uf,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,c.Ie);a.vertexAttribPointer(b.zh,c.Ie.uf,a.FLOAT,!1,0,0);a.uniformMatrix4fv(b.jj,!1,d);a.uniform1f(b.Qj,this.Ic);a.uniform2fv(b.nj,new Float32Array(this.Ff));a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,c.Qg);a.drawElements(a.TRIANGLES,c.mj,a.UNSIGNED_SHORT,
0)};
function ih(a,b){var c=a.a.g,d=Eg("earth-fs"+(b?"-overlay":"")+".glsl"),f=Eg("earth-vs"+(b?"-overlay":"")+".glsl"),f=f.replace("%TERRAIN_BOOL%",a.Hc?"1":"0");a.Hc&&(f=f.replace("%BUFFER_SIDE_T_FLOAT%",a.Nb.s.toFixed(1)));var d=Cg(a.a,d,c.FRAGMENT_SHADER),f=Cg(a.a,f,c.VERTEX_SHADER),g=c.createProgram();x(g)&&e(Error("Unknown"));c.attachShader(g,f);c.attachShader(g,d);c.bindAttribLocation(g,0,"aVertexPosition");c.linkProgram(g);c.getProgramParameter(g,c.LINK_STATUS)||e(Error("Shader program err: "+c.getProgramInfoLog(g)));
return new Pg(g,a.a,b,a.Hc)}s.setZoom=function(a){this.wa=I(a,this.Sa.zd(),this.Sa.maxZoom);Kg(this.n.d,kh(this,this.wa,this.n.d.ob))};s.ig=function(){this.wa=n};s.getZoom=function(){x(this.wa)&&lh(this);return this.wa};function lh(a,b){var c=a.n.d,c=Math.log(Math.cos(Math.abs(c.ob))*2*Math.PI/(2*(c.ga/6378137)*Math.tan(a.a.nc/2)/a.n.Qd))/Math.LN2;return b?c:(a.wa=I(c,a.Sa.zd(),a.Sa.maxZoom),a.wa)}
function kh(a,b,c){return 1/Math.tan(a.a.nc/2)*(Math.cos(Math.abs(c))*2*Math.PI/Math.pow(2,b)*a.n.Qd/2)*6378137}function mh(a,b,c,d){var f=Math.sin((c-a)/2),b=Math.sin((d-b)/2);return 6378137*2*Math.asin(Math.sqrt(f*f+Math.cos(a)*Math.cos(c)*b*b))};function nh(a,b,c){this.x=w(a)?a:0;this.y=w(b)?b:0;this.G=w(c)?c:0}nh.prototype.ja=function(){return new nh(this.x,this.y,this.G)};nh.prototype.Td=function(){return[this.x,this.y,this.G]};function oh(a,b,c){this.x=a;this.y=b;this.G=c}C(oh,nh);s=oh.prototype;s.ja=function(){return new oh(this.x,this.y,this.G)};s.scale=function(a){this.x*=a;this.y*=a;this.G*=a;return this};s.normalize=function(){return this.scale(1/Math.sqrt(this.x*this.x+this.y*this.y+this.G*this.G))};s.add=function(a){this.x+=a.x;this.y+=a.y;this.G+=a.G;return this};s.bg=function(a){this.x-=a.x;this.y-=a.y;this.G-=a.G;return this};s.equals=function(a){return this==a||!!a&&this.x==a.x&&this.y==a.y&&this.G==a.G};function ph(a,b,c,d,f,g){if(x(d))return n;a=d.multiply(new Z([[a/f*2-1],[1-2*b/g],[c*2-1],[1]]));if(og(a,3,0)==0)return n;a=a.multiply(1/og(a,3,0));return new oh(og(a,0,0),og(a,1,0),og(a,2,0))};var Zg=!0,qb=1.4844222297453324;function qh(a,b,c,d,f,g){this.a=a;this.Rg=b||n;this.hc=c||document.createElement("div");if(!w(c))a=this.a.canvas,a.parentNode&&a.parentNode.insertBefore(this.hc,a.nextSibling);this.Ud=d||document.createElement("img");if(!w(d))d=this.hc,d.parentNode&&d.parentNode.insertBefore(this.Ud,d.nextSibling);this.Mh=g||n;this.d=new Gg(this);this.I=new hh(this,f);this.ri=new Fg(this);this.Qd=0;Ag(this);this.gg()}
qh.prototype.gg=function(){x(this.hc)||(Oc(this.hc),Cb(this.hc,this.Mh),jh(this.I).nd(this.hc),jh(this.I,!0)&&(Cb(this.hc,Q("br"),Q("strong",{},"Overlay data:"),Q("br")),jh(this.I,!0).nd(this.hc)));if(!x(this.Ud))x(n)?this.Ud.style.visibility="hidden":(this.Ud.src=n,this.Ud.style.visibility="visible")};function rh(a){return Math.max(1,jh(a.I).zd())}function Ag(a){a.Qd=0.7*a.a.canvas.height/jh(a.I).tileSize}
qh.prototype.draw=function(){var a=this.a.g;if(!x(this.Rg)){for(var b=this.Rg,c=zb(this.d.ob).toFixed(4)+"; "+zb(this.d.yb).toFixed(4)+" @ "+this.d.ga.toFixed(0)+"m -> z="+this.I.getZoom().toFixed(3)+"; ",d=this.I,f=d.Da,g="",h=0;h<f.aa.length;++h)g+=h+f.Ka+":"+f.aa[h].Jb.length+" ";f="BufferQueue size: "+g+"; Loading tiles: "+d.Sa.Zc;d.rd&&(f+=" + "+d.rd.Zc);b.innerHTML=c+f}b=this.d.ga/6378137;c=this.a;c.ae=0.25*b;c.$d=1+b;zg(c);a.enable(a.BLEND);a.disable(a.DEPTH_TEST);b=Math.sin((Math.PI-this.a.nc)/
2);c=Math.sin(this.a.nc/2);this.a.Ba.sa=jg(4);ug(this.a.Ba,-this.d.getTilt());this.a.Ba.translate(0,0,c-1-this.d.ga/6378137);this.a.Ba.scale(b,b,b);this.ri.draw();a.disable(a.BLEND);a.enable(a.DEPTH_TEST);this.a.Ba.sa=jg(4);vg(this.a.Ba,-this.d.qh);ug(this.a.Ba,-this.d.getTilt());vg(this.a.Ba,-this.d.getHeading());this.a.Ba.translate(0,0,-1-this.d.ga/6378137);ug(this.a.Ba,this.d.ob);a=this.a.Ba;c=-this.d.yb;b=Math.cos(c);c=Math.sin(c);a.sa=a.sa.multiply(new Z([[b,0,c,0],[0,1,0,0],[-c,0,b,0],[0,0,
0,1]]));this.I.draw()};function sh(a,b){var c=a.ja();c.x=-c.x;c.y=-c.y;c.G=-c.G;var d=b.x*c.x+b.y*c.y+b.G*c.G,c=d*d-(c.x*c.x+c.y*c.y+c.G*c.G)+1;return c<0?n:[Math.min(d+Math.sqrt(c),d-Math.sqrt(c)),Math.max(d+Math.sqrt(c),d-Math.sqrt(c))]}
function Mg(a,b,c,d){var f=ph(b,c,0,a.a.we,a.a.fb,a.a.eb),a=ph(b,c,1,a.a.we,a.a.fb,a.a.eb);if(x(f)||x(a))return n;a.bg(f);a.normalize();b=sh(f,a);if(x(b))return n;a=a.scale(b[0]);f=new oh(f.x+a.x,f.y+a.y,f.G+a.G);a=Math.asin(f.x/Math.sqrt(1-f.y*f.y));f.G<0&&(a=Math.PI-a);return d==!0?[Math.asin(f.y),Bb(a)]:[zb(Math.asin(f.y)),zb(Bb(a))]}function sb(a){return Math.log(Math.tan(a/2+Math.PI/4))}function gh(a){return 2*Math.atan(Math.exp(a))-Math.PI/2};function th(a,b,c){D.call(this);this.target=a;this.handle=b||a;this.Wg=c||new je(NaN,NaN,NaN,NaN);this.B=P(a);this.jb=new gf(this);T(this.handle,["touchstart","mousedown"],this.uh,!1,this)}C(th,W);var uh=L||M&&O("1.9.3");s=th.prototype;s.clientX=0;s.clientY=0;s.screenX=0;s.screenY=0;s.wh=0;s.xh=0;s.Pc=0;s.Pb=0;s.Ta=!0;s.Ia=!1;s.Og=0;s.dj=0;s.Gi=!1;s.qa=p("jb");s.cc=ba("Ta");
s.h=function(){th.b.h.call(this);Nd(this.handle,["touchstart","mousedown"],this.uh,!1,this);this.jb.j();delete this.target;delete this.handle;delete this.jb};
s.uh=function(a){var b=a.type=="mousedown";if(this.Ta&&!this.Ia&&(!b||pd(a))){vh(a);if(this.Og==0)if(wh(this,a),this.Ia)a.preventDefault();else return;else a.preventDefault();var b=this.B,c=b.documentElement,d=!uh;this.jb.i(b,["touchmove","mousemove"],this.Ai,d);this.jb.i(b,["touchend","mouseup"],this.fe,d);uh?(c.setCapture(!1),this.jb.i(c,"losecapture",this.fe)):this.jb.i(b?b.parentWindow||b.defaultView:window,"blur",this.fe);L&&this.Gi&&this.jb.i(b,"dragstart",jd);this.Jj&&this.jb.i(this.Jj,"scroll",
this.wj,d);this.clientX=this.wh=a.clientX;this.clientY=this.xh=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.Pc=this.target.offsetLeft;this.Pb=this.target.offsetTop;this.Fd=Zc(Ec(this.B));this.dj=B()}else this.dispatchEvent("earlycancel")};function wh(a,b){if(a.dispatchEvent(new xh("start",a,b.clientX,b.clientY,b))!==!1)a.Ia=!0}
s.fe=function(a,b){kf(this.jb);uh&&this.B.releaseCapture();var c=yh(this,this.Pc),d=zh(this,this.Pb);this.Ia?(vh(a),this.Ia=!1,this.dispatchEvent(new xh("end",this,a.clientX,a.clientY,a,c,d,b||a.type=="touchcancel"))):this.dispatchEvent("earlycancel");(a.type=="touchend"||a.type=="touchcancel")&&a.preventDefault()};
function vh(a){var b=a.type;b=="touchstart"||b=="touchmove"?a.Ub(a.pa.targetTouches[0],a.currentTarget):(b=="touchend"||b=="touchcancel")&&a.Ub(a.pa.changedTouches[0],a.currentTarget)}
s.Ai=function(a){if(this.Ta){vh(a);var b=a.clientX-this.clientX,c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.Ia){var d=this.wh-this.clientX,f=this.xh-this.clientY;if(d*d+f*f>this.Og&&(wh(this,a),!this.Ia)){this.fe(a);return}}c=Ah(this,b,c);b=c.x;c=c.y;this.Ia&&this.dispatchEvent(new xh("beforedrag",this,a.clientX,a.clientY,a,b,c))!==!1&&(Bh(this,a,b,c),a.preventDefault())}};
function Ah(a,b,c){var d=Zc(Ec(a.B));b+=d.x-a.Fd.x;c+=d.y-a.Fd.y;a.Fd=d;a.Pc+=b;a.Pb+=c;return new E(yh(a,a.Pc),zh(a,a.Pb))}s.wj=function(a){var b=Ah(this,0,0);a.clientX=this.Fd.x-this.clientX;a.clientY=this.Fd.y-this.clientY;Bh(this,a,b.x,b.y)};function Bh(a,b,c,d){a.Xe(c,d);a.dispatchEvent(new xh("drag",a,b.clientX,b.clientY,b,c,d))}function yh(a,b){var c=a.Wg,d=!isNaN(c.left)?c.left:n,c=!isNaN(c.width)?c.width:0;return Math.min(d!=n?d+c:Infinity,Math.max(d!=n?d:-Infinity,b))}
function zh(a,b){var c=a.Wg,d=!isNaN(c.top)?c.top:n,c=!isNaN(c.height)?c.height:0;return Math.min(d!=n?d+c:Infinity,Math.max(d!=n?d:-Infinity,b))}s.Xe=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};function xh(a,b,c,d,f,g,h,j){R.call(this,a);this.clientX=c;this.clientY=d;this.Zj=f;this.left=w(g)?g:b.Pc;this.top=w(h)?h:b.Pb;this.yg=b;this.ck=!!j}C(xh,R);function Ch(a){D.call(this);this.e=a;this.ma=T(this.e,M?"DOMMouseScroll":"mousewheel",this)}C(Ch,W);
Ch.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.pa;if(a.type=="mousewheel"){c=1;if(L||N&&(ic||O("532.0")))c=40;d=N&&hc&&-a.wheelDelta%c!=0?-a.wheelDelta:-a.wheelDelta/c;w(a.wheelDeltaX)?(b=N&&hc&&-a.wheelDeltaX%c!=0?-a.wheelDeltaX:-a.wheelDeltaX/c,c=N&&hc&&-a.wheelDeltaY%c!=0?-a.wheelDeltaY:-a.wheelDeltaY/c):c=d}else d=a.detail,d>100?d=3:d<-100&&(d=-3),w(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;fa(this.ah)&&(b=I(b,-this.ah,this.ah));fa(this.bh)&&(c=I(c,-this.bh,this.bh));b=new Dh(d,a,
b,c);try{this.dispatchEvent(b)}finally{b.j()}};Ch.prototype.h=function(){Ch.b.h.call(this);U(this.ma);delete this.ma};function Dh(a,b,c,d){b&&this.Ub(b,i);this.type="mousewheel";this.detail=a;this.Pc=c;this.Pb=d}C(Dh,ld);function Eh(){D.call(this)}C(Eh,W);s=Eh.prototype;s.bb=0;s.Za=0;s.Ja=100;s.Ea=0;s.gc=1;s.Aa=!1;s.xc=!1;s.S=function(a){a=Fh(this,a);if(this.bb!=a)this.bb=a+this.Ea>this.Ja?this.Ja-this.Ea:a<this.Za?this.Za:a,!this.Aa&&!this.xc&&this.dispatchEvent("change")};s.p=function(){return Fh(this,this.bb)};s.ed=function(a){a=Fh(this,a);if(this.Ea!=a)this.Ea=a<0?0:this.bb+a>this.Ja?this.Ja-this.bb:a,!this.Aa&&!this.xc&&this.dispatchEvent("change")};
s.Qb=function(){var a;a=this.Ea;a=this.gc==n?a:Math.round(a/this.gc)*this.gc;return a};s.Sf=function(a){if(this.Za!=a){var b=this.Aa;this.Aa=!0;this.Za=a;if(a+this.Ea>this.Ja)this.Ea=this.Ja-this.Za;a>this.bb&&this.S(a);if(a>this.Ja)this.Ea=0,this.Od(a),this.S(a);this.Aa=b;!this.Aa&&!this.xc&&this.dispatchEvent("change")}};s.la=function(){return Fh(this,this.Za)};
s.Od=function(a){a=Fh(this,a);if(this.Ja!=a){var b=this.Aa;this.Aa=!0;this.Ja=a;a<this.bb+this.Ea&&this.S(a-this.Ea);if(a<this.Za)this.Ea=0,this.Sf(a),this.S(this.Ja);if(a<this.Za+this.Ea)this.Ea=this.Ja-this.Za;this.Aa=b;!this.Aa&&!this.xc&&this.dispatchEvent("change")}};s.ka=function(){return Fh(this,this.Ja)};s.Wf=function(a){if(this.gc!=a)this.gc=a,a=this.Aa,this.Aa=!0,this.Od(this.ka()),this.ed(this.Qb()),this.S(this.p()),this.Aa=a,!this.Aa&&!this.xc&&this.dispatchEvent("change")};
function Fh(a,b){if(a.gc==n)return b;return a.Za+Math.round((b-a.Za)/a.gc)*a.gc};function Hh(a){Bf.call(this,a);this.w=new Eh;T(this.w,"change",this.Ci,!1,this)}C(Hh,Bf);s=Hh.prototype;s.O="horizontal";s.sf=!1;s.hj=!1;s.Ib=10;s.Ed=0;s.r=function(){Hh.b.r.call(this);this.ib(this.V().r("div",this.o(this.O)))};s.ib=function(a){Hh.b.ib.call(this,a);ac(a,this.o(this.O));var a=this.c(),b=Hc(document,n,"goog-slider-thumb",a)[0];b||(b=this.V().r("div","goog-slider-thumb"),Xe(b,"button"),a.appendChild(b));this.T=this.xa=b;Xe(this.c(),"slider");Ih(this)};
s.$=function(){Hh.b.$.call(this);this.Jc=new th(this.T);this.vd=new th(this.xa);this.Jc.Xe=this.vd.Xe=v;this.L=new nf(this.c());this.wc=new Ch(this.c());this.qa().i(this.Jc,"beforedrag",this.Fg).i(this.vd,"beforedrag",this.Fg).i(this.L,"key",this.kf).i(this.c(),"mousedown",this.le).i(this.wc,"mousewheel",this.zi);this.c().tabIndex=0;Jh(this)};
s.Fg=function(a){var b=a.yg==this.Jc?this.T:this.xa,c;this.O=="vertical"?(c=this.c().clientHeight-b.offsetHeight,c=(c-a.top)/c*(this.ka()-this.la())+this.la()):c=a.left/(this.c().clientWidth-b.offsetWidth)*(this.ka()-this.la())+this.la();c=a.yg==this.Jc?Math.min(Math.max(c,this.la()),this.p()+this.Qb()):Math.min(Math.max(c,this.p()),this.ka());Kh(this,b,c)};
s.kf=function(a){var b=!0;switch(a.keyCode){case 36:Lh(this,this.la());break;case 35:Lh(this,this.ka());break;case 33:Mh(this,this.Ib);break;case 34:Mh(this,-this.Ib);break;case 37:case 40:Mh(this,a.shiftKey?-this.Ib:-this.fg);break;case 39:case 38:Mh(this,a.shiftKey?this.Ib:this.fg);break;default:b=!1}b&&a.preventDefault()};
s.le=function(a){this.c().focus&&this.c().focus();var b=a.target;if(!Rc(this.T,b)&&!Rc(this.xa,b))if(this.hj)Lh(this,Nh(this,a));else{this.Zf(a);this.Na=Oh(this,Nh(this,a));this.Pg=this.O=="vertical"?this.re<this.Na.offsetTop:this.re>this.Na.offsetLeft+this.Na.offsetWidth;a=P(this.c());this.qa().i(a,"mouseup",this.Kg,!0).i(this.c(),"mousemove",this.Zf);if(!this.Tb)this.Tb=new Ee(200),this.qa().i(this.Tb,Ge,this.Lg);this.Lg();this.Tb.start()}};s.zi=function(a){Mh(this,(a.detail>0?-1:1)*this.fg);a.preventDefault()};
s.Lg=function(){var a;if(this.O=="vertical"){var b=this.re,c=this.Na.offsetTop;this.Pg?b<c&&(a=Ph(this,this.Na)+this.Ib):b>c+this.Na.offsetHeight&&(a=Ph(this,this.Na)-this.Ib)}else b=this.re,c=this.Na.offsetLeft,this.Pg?b>c+this.Na.offsetWidth&&(a=Ph(this,this.Na)+this.Ib):b<c&&(a=Ph(this,this.Na)-this.Ib);w(a)&&Kh(this,this.Na,a)};s.Kg=function(){this.Tb&&this.Tb.stop();var a=P(this.c());this.qa().Z(a,"mouseup",this.Kg,!0).Z(this.c(),"mousemove",this.Zf)};
function Qh(a,b){var c,d=a.c();c=ue(b);d=ue(d);c=new E(c.x-d.x,c.y-d.y);return a.O=="vertical"?c.y:c.x}s.Zf=function(a){this.re=Qh(this,a)};function Nh(a,b){var c=a.la(),d=a.ka();if(a.O=="vertical"){var f=a.T.offsetHeight,g=a.c().clientHeight-f,f=Qh(a,b)-f/2;return(d-c)*(g-f)/g+c}else return f=a.T.offsetWidth,g=a.c().clientWidth-f,f=Qh(a,b)-f/2,(d-c)*f/g+c}
function Ph(a,b){if(b==a.T)return a.w.p();else if(b==a.xa)return a.w.p()+a.w.Qb();else e(Error("Illegal thumb element. Neither minThumb nor maxThumb"))}function Mh(a,b){var c=Ph(a,a.T)+b,d=Ph(a,a.xa)+b,c=I(c,a.la(),a.ka()-a.Ed),d=I(d,a.la()+a.Ed,a.ka());Rh(a,c,d-c)}function Kh(a,b,c){var d=n;b==a.xa&&c<=a.w.ka()&&c>=a.w.p()+a.Ed&&(d=c-a.w.p());var f=d||a.w.Qb();b==a.T&&c>=a.la()&&c<=a.w.p()+f-a.Ed&&(b=f-(c-a.w.p()),Fh(a.w,c)+Fh(a.w,b)==Fh(a.w,c+b)&&(Rh(a,c,b),d=n));d!=n&&a.w.ed(d)}
function Rh(a,b,c){if(a.la()<=b&&b<=a.ka()-c&&a.Ed<=c&&c<=a.ka()-b&&!(b==a.p()&&c==a.Qb()))a.w.xc=!0,a.w.ed(0),a.w.S(b),a.w.ed(c),a.w.xc=!1,Jh(a),a.dispatchEvent("change")}s.la=function(){return this.w.la()};s.Sf=function(a){this.w.Sf(a)};s.ka=function(){return this.w.ka()};s.Od=function(a){this.w.Od(a)};function Oh(a,b){return b<=a.w.p()+a.w.Qb()/2?a.T:a.xa}s.Ci=function(){Jh(this);Ih(this);this.dispatchEvent("change")};
function Jh(a){if(a.T&&!a.sf){var b=Sh(a,Ph(a,a.T)),c=Sh(a,Ph(a,a.xa));a.O=="vertical"?(a.T.style.top=b.y+"px",a.xa.style.top=c.y+"px"):(a.T.style.left=b.x+"px",a.xa.style.left=c.x+"px")}}function Sh(a,b){var c=new E;if(a.T){var d=a.la(),f=a.ka(),d=b==d&&d==f?0:(b-d)/(f-d);a.O=="vertical"?(f=a.c().clientHeight-a.T.offsetHeight,c.y=f-Math.round(d*f)):c.x=Math.round(d*(a.c().clientWidth-a.T.offsetWidth))}return c}
function Lh(a,b){b=Math.min(a.ka(),Math.max(b,a.la()));a.qd&&a.qd.stop(!0);var c=Oh(a,b),d=Sh(a,b),d=new Re(c,a.O=="vertical"?[c.offsetLeft,d.y]:[d.x,c.offsetTop],100);a.qd=d;a.qa().i(d,"end",a.ki);a.sf=!0;Kh(a,c,b);d.play(!1)}s.ki=function(){this.sf=!1};
s.Ee=function(a){if(this.O!=a){var b=this.o(this.O),c=this.o(a);this.O=a;if(this.c()){for(var a=this.c(),d=$b(a),f=!1,g=0;g<d.length;g++)d[g]==b&&(ab(d,g--,1),f=!0);if(f)d.push(c),a.className=d.join(" ");this.T.style.left=this.T.style.top="";this.xa.style.left=this.xa.style.top="";Jh(this)}}};
s.h=function(){Hh.b.h.call(this);this.Tb&&this.Tb.j();delete this.Tb;this.qd&&this.qd.j();delete this.qd;delete this.T;delete this.xa;this.w.j();delete this.w;this.L&&(this.L.j(),delete this.L);this.wc&&(this.wc.j(),delete this.wc);this.Jc&&(this.Jc.j(),delete this.Jc);this.vd&&(this.vd.j(),delete this.vd)};s.fg=1;s.Wf=function(a){this.w.Wf(a)};s.p=function(){return this.w.p()};s.S=function(a){Kh(this,this.T,a)};s.Qb=function(){return this.w.Qb()};s.ed=function(a){Kh(this,this.xa,this.w.p()+a)};
s.setVisible=function(a){ze(this.c(),a);a&&Jh(this)};function Ih(a){var b=a.c();b&&(X(b,"valuemin",a.la()),X(b,"valuemax",a.ka()),X(b,"valuenow",a.p()))};function Th(a){Hh.call(this,a);this.w.ed(0)}C(Th,Hh);Th.prototype.o=function(a){return a=="vertical"?"goog-slider-vertical":"goog-slider-horizontal"};function Uh(a,b){this.f=a;this.fc=new Th;this.fc.Ee("vertical");this.fc.Od(1);this.fc.Wf(0.01);Vh=!1;this.fc.S((this.f.I.getZoom()-rh(this.f))/jh(this.f.I).maxZoom);this.ma=T(this.fc,"change",function(b){Vh==!1&&a.I.setZoom(b.target.p()*(jh(a.I).maxZoom-rh(a))+rh(a));Vh=!1});this.Xj=T(this.f.d,Lg,this.ig,!1,this);this.Ne=new hg("");Yf(this.Ne,"weapp-zoomslider-add");this.ag=new hg("");Yf(this.ag,"weapp-zoomslider-substract");this.Lh=T(this.Ne,"action",function(){a.I.setZoom(Math.floor(a.I.getZoom()+
1))});this.Nj=T(this.ag,"action",function(){a.I.setZoom(Math.floor(a.I.getZoom()-1))});this.Ne.Db(b);this.fc.Db(b);this.ag.Db(b)}var Vh;C(Uh,D);Uh.prototype.ig=function(){Vh=!0;this.fc.S((this.f.I.getZoom()-rh(this.f))/jh(this.f.I).maxZoom)};Uh.prototype.h=function(){U(this.ma);U(this.Xj);U(this.Lh);U(this.Nj);this.fc.j()};function Wh(){He.call(this,[0],[0],0);this.va=[]}C(Wh,He);Wh.prototype.Lf=function(){this.Ze(function(a){a.play(a.ua==0)});Wh.b.Lf.call(this)};Wh.prototype.Mf=function(){this.Ze(function(a){a.stop()});Wh.b.Mf.call(this)};Wh.prototype.If=function(){this.wg();Wh.b.If.call(this)};Wh.prototype.wg=function(){H(this.va,function(a){a.j()})};function Xh(){Wh.call(this)}C(Xh,Wh);Xh.prototype.Fa=function(){for(var a=0;a<this.va.length;a++)this.va[a].play();Xh.b.Fa.call(this)};
Xh.prototype.Ze=function(a){H(this.va,a)};Xh.prototype.add=function(a){this.va.push(a);this.duration=Math.max(this.duration,a.duration)};Xh.prototype.remove=function(a){if(Xa(this.va,a)&&a.duration==this.duration)this.duration=0,H(this.va,function(a){this.duration=Math.max(a.duration,this.duration)},this)};function Yh(){Wh.call(this);this.Ue=new gf(this)}C(Yh,Wh);s=Yh.prototype;s.lc=0;s.Fa=function(){Zh(this);Yh.b.Fa.call(this)};s.Zb=function(){$h(this);Yh.b.Zb.call(this)};
function $h(a){a.lc=0;kf(a.Ue)}function Zh(a){a.t==-1&&($h(a),H(a.va,function(a){a.ua=0;Ne(a,a.ua);a.stop()}));a.va[a.lc].play();a.lc++;a.lc<a.va.length&&a.Ue.i(a.va[a.lc-1],"finish",function(){Zh(this)})}s.add=function(a){this.va.push(a);this.duration+=a.duration};s.remove=function(a){Xa(this.va,a)&&(this.duration-=a.duration)};s.Ze=function(a){this.lc>0&&a(this.va[this.lc-1])};s.wg=function(){H(this.va,function(a){a.j()});this.Ue.j()};function ai(a){this.Kb=a;this.N=n;this.Fe=[];this.ge=[]}
function bi(a,b,c,d){function f(a){var b=a*a;a*=a*a;return 6*a*b+-15*b*b+10*a}a.N!=n&&a.Jf();a.N=new Xh;var g=a.Kb.getPosition();a.Fe=[0,0,a.Kb.getHeading(),a.Kb.getTilt()];a.ge=[0,0,0,0];ci(a,g[0],g[1],b,c);var h=["begin","animate","end"],j=new He(a.Fe,a.ge,3E3,f);T(j,h,a.sj,!1,a);a.N.add(j);if(d)j=a.Kb.ga,c=Math.min(j,d)+mh(g[0],g[1],b,c)*0.2,c=Math.max(Math.max(j,d),c),b=new He([j],[c],1500,f),d=new He([c],[d],1500,f),T(b,h,a.fh,!1,a),T(d,h,a.fh,!1,a),h=new Yh,h.add(b),h.add(d),a.N.add(h);T(a.N,
"end",a.Jf,!1,a);a.N.play()}function ci(a,b,c,d,f){var c=yb(c,2*Math.PI),f=yb(f,2*Math.PI),g=c-f;g<-Math.PI?c+=2*Math.PI:g>Math.PI&&(f+=2*Math.PI);a.Fe[0]=b;a.Fe[1]=c;a.ge[0]=d;a.ge[1]=f}ai.prototype.sj=function(a){this.Kb.setPosition(a.coords[0],a.coords[1]);this.Kb.setHeading(a.coords[2]);this.Kb.setTilt(a.coords[3])};ai.prototype.fh=function(a){Kg(this.Kb,a.coords[0])};ai.prototype.Jf=function(){if(this.N!=n)this.N.j(),this.N=n};ai.prototype.cancel=function(){this.Jf()};function di(a,b,c){this.lat=a;this.Yg=b;this.element=c;this.parentElement=n;this.enabled=!0;this.visible=!1}s=di.prototype;s.pd=function(a){this.parentElement&&this.detach();this.parentElement=a;this.parentElement.appendChild(this.element)};s.detach=function(){if(this.parentElement)Pc(this.element),this.parentElement=n};s.enable=function(a){(this.enabled=a||!1)||this.show(!1)};s.isEnabled=p("enabled");s.X=p("visible");
s.show=function(a){this.visible=a==!0;this.element.style.display=this.visible?"block":"none"};function ei(a,b,c,d){var f=Q("div",{"class":"leaflet-marker-icon"}),g=Q("a",{"class":"leaflet-popup-close-button",href:"#"}),c=Q("div",{"class":"leaflet-popup-content"},Q("h3",{},c),Q("p",{},d)),c=Q("div",{"class":"leaflet-popup-content-wrapper"},c),d=Q("div",{"class":"leaflet-popup-tip-container"},Q("div",{"class":"leaflet-popup-tip"}));this.Ac=Q("div",{"class":"leaflet-popup"},g,c,d);c=Q("div",{style:"position:absolute;"},f,this.Ac);di.call(this,a,b,c);this.show(!1);this.Yf(!1);f.onclick=A(this.Yf,
this,!0);g.onclick=A(this.Yf,this,!1)}C(ei,di);ei.prototype.Yf=function(a){a?(this.Ac.style.left=-Math.round((this.Ac.offsetWidth-this.element.offsetWidth)/2)+"px",this.Ac.style.opacity=1,this.Ac.style.visibility="visible"):(this.Ac.style.opacity=0,this.Ac.style.visibility="hidden")};var fi=A(document.createElement,document);document.createElement=function(a){var b=fi(a);if(a=="img")b.di="";return b};function gi(a){K.call(this,a||"OpenStreetMaps","http://{sub}.tile.openstreetmap.org/{z}/{x}/{y}.png",0,18,256,!1,["a","b","c"])}C(gi,K);gi.prototype.nd=function(a){Cb(a,"\u00a9 ",Q("a",{href:"http://www.openstreetmap.org/"},"OpenStreetMap")," contributors, CC-BY-SA")};function hi(a,b){this.f=a;this.u=new Ee(20);this.kg=this.jg=0.1;this.tf=!1;this.kc=new Y("");this.kc.Ge|=255;this.Kh=T(this.kc,"activate",this.pj,!1,this);this.gi=T(this.kc,"deactivate",this.qj,!1,this);this.ek=T(this.kc,"enter",this.rj,!1,this);this.cg=T(this.u,Ge,this.ad,!1,this);this.fj=T(P(this.f.a.canvas),"mousemove",this.Kf,!1,this);this.ej=T(P(this.f.a.canvas),"mousedown",function(){this.tf=!0},!1,this);this.gj=T(P(this.f.a.canvas),"mouseup",function(){this.tf=!1},!1,this);this.kc.Db(b)}
C(hi,D);s=hi.prototype;s.rj=function(){this.tf&&(this.kc.Ca(4,!0),this.u.start())};s.pj=function(){this.u.start()};s.qj=function(){this.u&&this.u.stop()};s.ad=function(){this.Ce(this.jg,this.kg)};s.Kf=function(a){this.jg=-(a.offsetX-a.target.offsetWidth/2)*2;this.kg=-(a.offsetY-a.target.offsetHeight/2)};s.h=function(){U(this.Kh);U(this.fj);U(this.gj);U(this.ej);U(this.gi);U(this.cg);this.kc.j()};
s.Ce=function(a,b){var c=Math.PI*(1/this.f.a.canvas.height)*(this.f.Qd/Math.pow(2,lh(this.f.I,!0)));Jg(this.f.d,b*c,-2*a*c)};function ii(a){return 1-Math.pow(1-a,3)};function ji(a,b){this.f=a;this.Ia=!1;this.Eb=i;this.ye=this.xe=this.Cb=this.Bb=this.rh=0;this.tc=this.ma=n;T(this.f.a.canvas,"mousedown",A(this.uj,this));T(P(this.f.a.canvas),"mouseup",A(this.vj,this));this.md=b||n}s=ji.prototype;
s.uj=function(a){if(!od(a,2)&&!a.ctrlKey&&!a.altKey){this.md!=n&&this.md.cancel();if(this.tc)this.tc.stop(!1),this.tc.j(),this.tc=n;this.Ia=!0;this.xe=this.Bb=a.screenX;this.ye=this.Cb=a.screenY;if(od(a,1)||od(a,0)&&a.shiftKey)if(this.Eb=this.f.d.Tc(),this.Eb!=n){if(window.td)window.td.lat=zb(this.Eb[0]),window.td.Yg=zb(this.Eb[1]),window.td.enable(!0);this.rh=this.f.d.getTilt()==0?this.f.d.ga:Math.sin(Math.PI-this.f.d.getTilt()-(Math.PI-Math.asin((1+this.f.d.ga/6378137)*Math.sin(this.f.d.getTilt()))))/
Math.sin(this.f.d.getTilt())*6378137}if(!x(this.ma))U(this.ma),this.ma=n;this.ma=T(P(this.f.a.canvas),"mousemove",A(this.Kf,this));a.preventDefault()}};
s.vj=function(a){if(this.Ia){a.preventDefault();this.Eb=i;window.td&&window.td.enable(!1);this.Ia=!1;if(!x(this.ma))U(this.ma),this.ma=n;if(od(a,0)){var b=a.screenX-this.xe,c=a.screenY-this.ye,a=Math.sqrt(Math.pow(b,2)+Math.pow(c,2));b/=a;c/=a;this.Bb==this.xe&&this.Cb==this.ye&&(a*=2);if(a>6)a=Math.max(15,a)*6,this.tc=new He([this.Bb,this.Cb],[this.Bb+a*b,this.Cb+a*c],1300,ii),T(this.tc,["animate"],this.Hi,!1,this),this.tc.play(!1)}}};
s.Ce=function(a,b){if(w(this.Eb)){var c=a/this.f.a.canvas.width*Math.PI*-2,d=b/this.f.a.canvas.height*Math.PI/2;if(x(this.Eb))this.f.d.setHeading(this.f.d.getHeading()+c),this.f.d.setTilt(this.f.d.getTilt()+d);else{var f=this.f.d,g=this.Eb[0],h=this.Eb[1],j=this.rh;f.Wc+=c;c=Math.asin(6378137/Math.sqrt(j*j+40680631590769));f.Gb=I(f.Gb+d,-c,c);d=Math.asin(j/6378137*Math.sin(f.Gb));Math.abs(f.Gb)<1.0E-4?Kg(f,j):Kg(f,(Math.sin(Math.PI-f.Gb-d)/Math.sin(f.Gb)-1)*6378137);g-=Math.cos(f.Wc)*d;f.setPosition(g,
h+Math.sin(f.Wc)*d/Math.cos(g))}}else f=Math.PI*(1/this.f.a.canvas.height)*(this.f.Qd/Math.pow(2,lh(this.f.I,!0))),Jg(this.f.d,b*f,-2*a*f)};s.Kf=function(a){this.Ce(a.screenX-this.Bb,a.screenY-this.Cb);this.xe=this.Bb;this.ye=this.Cb;this.Bb=a.screenX;this.Cb=a.screenY;a.preventDefault()};s.Hi=function(a){this.Ce(a.x-this.Bb,a.y-this.Cb);this.Bb=a.x;this.Cb=a.y};function ki(a,b){this.f=a;this.e=b;this.Df=new lb}function li(a,b,c){b=b||Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^B()).toString(36);c.pd(a.e);a.Df.set(b,c)}
ki.prototype.Tj=function(a){a=this.Df.get(a);if(a.isEnabled()){var b;a:{var c=this.f;b=a.lat;var d=a.Yg;b=J(b);var d=J(d),f=Math.cos(b),f=new oh(Math.sin(d)*f,Math.sin(b),Math.cos(d)*f),d=c.a.ve.multiply(new Z([[f.x],[f.y],[f.G],[1]]));if(og(d,3,0)==0)b=n;else{d=d.multiply(1/og(d,3,0));b=(og(d,0,0)+1)/2*c.a.fb;var d=(og(d,1,0)-1)/-2*c.a.eb,g=1;if(b<0||b>c.a.fb||d<0||d>c.a.eb)g=0;else{c=ph(0.5,0.5,0,c.a.we,1,1);if(x(c)){b=n;break a}var g=f.x-c.x,h=f.y-c.y,j=f.G-c.G,g=Math.sqrt(g*g+h*h+j*j),f=f.bg(c).normalize(),
f=sh(c,f),g=x(f)?0:Math.abs(g-f[0])<Math.abs(g-f[1])?1:0}b=[b,d,g]}}b!=n?(d=b[1],a.element.style.left=b[0].toFixed()+"px",a.element.style.top=d.toFixed()+"px",a.enabled&&a.show(!0),a.show(b[2]>0)):a.show(!1)}};function mi(a){this.f=a;this.wc=new Ch(a.a.canvas);this.ma=T(this.wc,"mousewheel",function(a){this.wa(-(a.Pb==0?0:a.Pb<0?-1:1));a.preventDefault()},!1,this);this.fi=T(a.a.canvas,"dblclick",A(function(a){Kg(this.d,this.d.ga/2);var c=Mg(this,a.offsetX,a.offsetY,!0)||this.d.Tc(this);if(c){var d=(this.d.yb+c[1])/2;Math.abs(this.d.yb-c[1])>Math.PI&&(d+=Math.PI);this.d.setPosition((this.d.ob+c[0])/2,d)}a.preventDefault()},a));this.Ij=T(a.a.canvas,"mouseup",A(function(a){if(od(a,2)){Kg(this.d,this.d.ga*
2);var c=Mg(this,a.offsetX,a.offsetY,!0)||this.d.Tc(this);c&&this.d.setPosition(2*this.d.ob-c[0],2*this.d.yb-c[1]);a.preventDefault()}},a));this.lj=T(a.a.canvas,"contextmenu",function(a){a.preventDefault()});this.N=n;this.Gc=this.Fc=0}C(mi,D);
mi.prototype.wa=function(a){var b=120;a*=-1;if(this.N)if(this.Gc>this.Fc==a>0)return;else this.N.j(),this.N=n,b*=(this.f.d.ga-this.Fc)/(this.Gc-this.Fc),a=this.Gc,this.Gc=this.Fc,this.Fc=a;else this.Fc=this.f.d.ga,this.Gc=I(this.Fc*Math.pow(2,a),250,1E7);if(!(isNaN(b)||b<=0)){var a=this.f.d.getPosition(),c=this.f.d.Tc()||a,d=this.Gc/this.f.d.ga;a.push(this.f.d.ga);this.N=new He(a,[c[0]+d*(a[0]-c[0]),c[1]+d*(a[1]-c[1]),this.Gc],b);T(this.N,["animate","finish"],function(a){this.f.d.setPosition(a.x,
a.y);Kg(this.f.d,a.G)},!1,this);T(this.N,["finish"],this.mi,!1,this);this.N.play(!1)}};mi.prototype.mi=function(){if(this.N)this.N.j(),this.N=n};mi.prototype.h=function(){U(this.ma);U(this.fi);U(this.Ij);U(this.lj);this.wc.j();this.N.j()};function ni(a,b){var c=Q("div",{style:"position:absolute;width:16px;height:32px;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBoZWlnaHQ9IjMyIiB3aWR0aD0iMTYiIHZlcnNpb249IjEuMSI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwtMTAyMC4zNjIyKSI+PHBhdGggc3Ryb2tlLWxpbmVqb2luPSJtaXRlciIgZD0ibTE1LDcuODdjMCwzLjQ3LTIuNzcsNi4yOC02LjE5LDYuMjhzLTYuMTktMi44MS02LjE5LTYuMjgsMi43Ny02LjI4LDYuMTktNi4yOCw2LjE5LDIuODEsNi4xOSw2LjI4em0tNi4xNiwyMy4ydi0xNi41IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0wLjcwNzEwNjc4LDEwMjAuNzE1OCkiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjFweCIgZmlsbD0iI2UxMzUxZSIvPjwvZz48L3N2Zz4=);margin:-32px 0 0 -8px;opacity:0.8;"});
di.call(this,a,b,c);this.show(!1)}C(ni,di);function oi(a,b,c,d,f,g,h,j){var k,l=c.offsetParent;if(l){var o=l.tagName=="HTML"||l.tagName=="BODY";if(!o||le(l,"position")!="static")k=se(l),o||(k=Ga(k,new E(l.scrollLeft,l.scrollTop)))}l=ye(a);if(o=re(a)){var m=new je(o.left,o.top,o.right-o.left,o.bottom-o.top),o=Math.max(l.left,m.left),u=Math.min(l.left+l.width,m.left+m.width);if(o<=u){var r=Math.max(l.top,m.top),m=Math.min(l.top+l.height,m.top+m.height);if(r<=m)l.left=o,l.top=r,l.width=u-o,l.height=m-r}}o=Ec(a);r=Ec(c);if(o.B!=r.B){var u=o.B.body,
r=r.B.parentWindow||r.B.defaultView,m=new E(0,0),V=P(u)?P(u).parentWindow||P(u).defaultView:window,md=u;do{var Gh=V==r?se(md):ue(md);m.x+=Gh.x;m.y+=Gh.y}while(V&&V!=r&&(md=V.frameElement)&&(V=V.parent));u=Ga(m,se(u));L&&!Ic(o.B)&&(u=Ga(u,Zc(o)));l.left+=u.x;l.top+=u.y}a=(b&4&&te(a)?b^2:b)&-5;b=new E(a&2?l.left+l.width:l.left,a&1?l.top+l.height:l.top);k&&(b=Ga(b,k));f&&(b.x+=(a&2?-1:1)*f.x,b.y+=(a&1?-1:1)*f.y);var F;if(h&&(F=re(c))&&k)F.top=Math.max(0,F.top-k.y),F.right-=k.x,F.bottom-=k.y,F.left=Math.max(0,
F.left-k.x);a:{k=F;f=b.ja();F=0;a=(d&4&&te(c)?d^2:d)&-5;d=xe(c);j=j?j.ja():d.ja();if(g||a!=0)a&2?f.x-=j.width+(g?g.right:0):g&&(f.x+=g.left),a&1?f.y-=j.height+(g?g.bottom:0):g&&(f.y+=g.top);if(h){if(k){g=f;F=0;if((h&65)==65&&(g.x<k.left||g.x>=k.right))h&=-2;if((h&132)==132&&(g.y<k.top||g.y>=k.bottom))h&=-5;if(g.x<k.left&&h&1)g.x=k.left,F|=1;g.x<k.left&&g.x+j.width>k.right&&h&16&&(j.width-=g.x+j.width-k.right,F|=4);if(g.x+j.width>k.right&&h&1)g.x=Math.max(k.right-j.width,k.left),F|=1;h&2&&(F|=(g.x<
k.left?16:0)|(g.x+j.width>k.right?32:0));if(g.y<k.top&&h&4)g.y=k.top,F|=2;g.y>=k.top&&g.y+j.height>k.bottom&&h&32&&(j.height-=g.y+j.height-k.bottom,F|=8);if(g.y+j.height>k.bottom&&h&4)g.y=Math.max(k.bottom-j.height,k.top),F|=2;h&8&&(F|=(g.y<k.top?64:0)|(g.y+j.height>k.bottom?128:0));h=F}else h=256;F=h;if(F&496){c=F;break a}}me(c,f);Bc(d,j)||we(c,j);c=F}return c};function pi(){}pi.prototype.Id=aa();function qi(a,b){this.element=a;this.Ve=b}C(qi,pi);qi.prototype.Id=function(a,b,c){oi(this.element,this.Ve,a,b,i,c)};function ri(a,b,c){qi.call(this,a,b);this.Nh=c}C(ri,qi);ri.prototype.Dg=q(5);ri.prototype.Id=function(a,b,c,d){var f=oi(this.element,this.Ve,a,b,n,c,10,d);if(f&496){var g=si(f,this.Ve),b=si(f,b),f=oi(this.element,g,a,b,n,c,10,d);f&496&&(g=si(f,g),b=si(f,b),this.Nh?oi(this.element,g,a,b,n,c,this.Dg(),d):oi(this.element,g,a,b,n,c,0,d))}};function si(a,b){a&48&&(b^=2);a&192&&(b^=1);return b};function ti(a,b,c,d){ri.call(this,a,b,c||d);this.Gj=d}C(ti,ri);ti.prototype.Dg=function(){return 65|(this.Gj?32:132)};var ui,vi;vi=ui=!1;var wi=jc();wi&&(wi.indexOf("Firefox")!=-1||wi.indexOf("Camino")!=-1||(wi.indexOf("iPhone")!=-1||wi.indexOf("iPod")!=-1?ui=!0:wi.indexOf("iPad")!=-1&&(vi=!0)));var xi=ui,yi=vi;function zi(){}C(zi,Of);ca(zi);zi.prototype.r=function(a){return a.V().r("div",this.o())};zi.prototype.da=function(a,b){if(b.tagName=="HR"){var c=b,b=this.r(a);c.parentNode&&c.parentNode.insertBefore(b,c);Pc(c)}else ac(b,this.o());return b};zi.prototype.setContent=aa();zi.prototype.o=q("goog-menuseparator");function Ai(a,b){Y.call(this,n,a||zi.za(),b);$f(this,1,!1);$f(this,2,!1);$f(this,4,!1);$f(this,32,!1);this.t=1}C(Ai,Y);Ai.prototype.$=function(){Ai.b.$.call(this);Xe(this.c(),"separator")};Tf("goog-menuseparator",function(){return new Ai});function Bi(){}ca(Bi);s=Bi.prototype;s.lb=aa();function Ci(a,b){if(a)a.tabIndex=b?0:-1}s.r=function(a){return a.V().r("div",this.Sc(a).join(" "))};s.U=function(a){return a};s.Qa=function(a){return a.tagName=="DIV"};s.da=function(a,b){b.id&&Ff(a,b.id);var c=this.o(),d=!1,f=$b(b);f&&H(f,function(b){b==c?d=!0:b&&(b==c+"-disabled"?a.cc(!1):b==c+"-horizontal"?a.Ee(Di):b==c+"-vertical"&&a.Ee(Ei))},this);d||ac(b,c);Fi(this,a,this.U(b));return b};
function Fi(a,b,c){if(c)for(var d=c.firstChild,f;d&&d.parentNode==c;){f=d.nextSibling;if(d.nodeType==1){var g=a.ef(d);if(g)g.e=d,b.isEnabled()||g.cc(!1),b.kd(g),g.da(d)}else(!d.nodeValue||pa(d.nodeValue)=="")&&c.removeChild(d);d=f}}s.ef=function(a){a:{for(var b=$b(a),c=0,d=b.length;c<d;c++)if(a=b[c]in Uf?Uf[b[c]]():n)break a;a=n}return a};s.Xc=function(a){a=a.c();Be(a,!0,M);if(L)a.hideFocus=!0;var b=this.lb();b&&Xe(a,b)};s.W=function(a){return a.c()};s.o=q("goog-container");
s.Sc=function(a){var b=this.o(),c=[b,a.O==Di?b+"-horizontal":b+"-vertical"];a.isEnabled()||c.push(b+"-disabled");return c};function Gi(){}C(Gi,Bi);ca(Gi);s=Gi.prototype;s.lb=q("menu");s.Qa=function(a){return a.tagName=="UL"||Gi.b.Qa.call(this,a)};s.ef=function(a){return a.tagName=="HR"?new Ai:Gi.b.ef.call(this,a)};s.jc=function(a,b){return Rc(a.c(),b)};s.o=q("goog-menu");s.Xc=function(a){Gi.b.Xc.call(this,a);X(a.c(),"haspopup","true")};Tf("goog-menuseparator",function(){return new Ai});function Hi(){this.tg=[]}C(Hi,Of);ca(Hi);function Ii(a,b){var c=a.tg[b];if(!c){switch(b){case 0:c=a.o()+"-highlight";break;case 1:c=a.o()+"-checkbox";break;case 2:c=a.o()+"-content"}a.tg[b]=c}return c}s=Hi.prototype;s.lb=q("menuitem");s.r=function(a){var b=a.V().r("div",this.Sc(a).join(" "),Ji(this,a.getContent(),a.V()));Ki(this,a,b,!!(a.ca&8)||!!(a.ca&16));return b};s.U=function(a){return a&&a.firstChild};
s.da=function(a,b){var c=Qc(b),d=Ii(this,2);c&&c.className.indexOf(d)!=-1||b.appendChild(Ji(this,b.childNodes,a.V()));Wa($b(b),"goog-option")&&(a.De(!0),this.De(a,b,!0));return Hi.b.da.call(this,a,b)};s.setContent=function(a,b){var c=this.U(a),d=Li(this,a)?c.firstChild:n;Hi.b.setContent.call(this,a,b);d&&!Li(this,a)&&c.insertBefore(d,c.firstChild||n)};function Ji(a,b,c){a=Ii(a,2);return c.r("div",a,b)}s.De=function(a,b,c){b&&(Xe(b,c?"menuitemcheckbox":this.lb()),Ki(this,a,b,c))};
function Li(a,b){var c=a.U(b);if(c){var c=c.firstChild,d=Ii(a,1);return!!c&&!!c.className&&c.className.indexOf(d)!=-1}return!1}function Ki(a,b,c,d){d!=Li(a,c)&&(d?ac(c,"goog-option"):bc(c,"goog-option"),c=a.U(c),d?(a=Ii(a,1),c.insertBefore(b.V().r("div",a),c.firstChild||n)):c.removeChild(c.firstChild))}s.xd=function(a){switch(a){case 2:return Ii(this,0);case 16:case 8:return"goog-option-selected";default:return Hi.b.xd.call(this,a)}};
s.gf=function(a){var b=Ii(this,0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return Hi.b.gf.call(this,a)}};s.o=q("goog-menuitem");function Mi(a,b,c,d){Y.call(this,a,d||Hi.za(),c);this.S(b)}C(Mi,Y);s=Mi.prototype;s.p=function(){var a=this.Ef;return a!=n?a:this.Rc()};s.S=ba("Ef");s.De=function(a){$f(this,16,a);var b=this.c();b&&this.k.De(this,b,a)};s.Rc=function(){var a=this.getContent();if(y(a))return a=Ta(a,function(a){return Wa($b(a),"goog-menuitem-accel")?"":Wc(a)}).join(""),oa(a);return Mi.b.Rc.call(this)};
s.sc=function(a){var b=this.getParent();if(b){var c=b.kh;b.kh=n;if(b=c&&fa(a.clientX))b=new E(a.clientX,a.clientY),b=c==b?!0:!c||!b?!1:c.x==b.x&&c.y==b.y;if(b)return}Mi.b.sc.call(this,a)};Tf("goog-menuitem",function(){return new Mi(n)});function Ni(a,b,c){Bf.call(this,c);this.k=b||Bi.za();this.O=a||Ei}C(Ni,Bf);var Di="horizontal",Ei="vertical";s=Ni.prototype;s.xf=n;s.L=n;s.k=n;s.O=n;s.Q=!0;s.Ta=!0;s.$e=!0;s.ea=-1;s.Y=n;s.zb=!1;s.Oh=!1;s.xj=!0;s.Mb=n;s.W=function(){return this.xf||this.k.W(this)};s.je=function(){return this.L||(this.L=new nf(this.W()))};s.r=function(){this.e=this.k.r(this)};s.U=function(){return this.k.U(this.c())};s.Qa=function(a){return this.k.Qa(a)};
s.ib=function(a){this.e=this.k.da(this,a);if(a.style.display=="none")this.Q=!1};s.$=function(){Ni.b.$.call(this);Jf(this,function(a){a.H&&Oi(this,a)},this);var a=this.c();this.k.Xc(this);this.setVisible(this.Q,!0);this.qa().i(this,"enter",this.hf).i(this,"highlight",this.jf).i(this,"unhighlight",this.pf).i(this,"open",this.Bi).i(this,"close",this.ti).i(a,"mousedown",this.rc).i(P(a),"mouseup",this.vi).i(a,["mousedown","mouseup","mouseover","mouseout"],this.si);this.Vb()&&Pi(this,!0)};
function Pi(a,b){var c=a.qa(),d=a.W();b?c.i(d,"focus",a.qc).i(d,"blur",a.xb).i(a.je(),"key",a.Va):c.Z(d,"focus",a.qc).Z(d,"blur",a.xb).Z(a.je(),"key",a.Va)}s.kb=function(){Qi(this,-1);this.Y&&this.Y.P(!1);this.zb=!1;Ni.b.kb.call(this)};s.h=function(){Ni.b.h.call(this);if(this.L)this.L.j(),this.L=n;this.k=this.Y=this.Mb=this.xf=n};s.hf=q(!0);
s.jf=function(a){var b=Nf(this,a.target);if(b>-1&&b!=this.ea){var c=Lf(this,this.ea);c&&c.qb(!1);this.ea=b;c=Lf(this,this.ea);this.zb&&c.setActive(!0);this.xj&&this.Y&&c!=this.Y&&(c.ca&64?c.P(!0):this.Y.P(!1))}X(this.c(),"activedescendant",a.target.c().id)};s.pf=function(a){if(a.target==Lf(this,this.ea))this.ea=-1;X(this.c(),"activedescendant","")};s.Bi=function(a){if((a=a.target)&&a!=this.Y&&a.getParent()==this)this.Y&&this.Y.P(!1),this.Y=a};s.ti=function(a){if(a.target==this.Y)this.Y=n};
s.rc=function(a){if(this.Ta)this.zb=!0;var b=this.W();b&&Vc(b)?b.focus():a.preventDefault()};s.vi=function(){this.zb=!1};s.si=function(a){var b;a:{b=a.target;if(this.Mb)for(var c=this.c();b&&b!==c;){var d=b.id;if(d in this.Mb){b=this.Mb[d];break a}b=b.parentNode}b=n}if(b)switch(a.type){case "mousedown":b.rc(a);break;case "mouseup":b.sc(a);break;case "mouseover":b.of(a);break;case "mouseout":b.nf(a)}};s.qc=aa();s.xb=function(){Qi(this,-1);this.zb=!1;this.Y&&this.Y.P(!1)};
s.Va=function(a){if(this.isEnabled()&&this.X()&&(Kf(this)!=0||this.xf)&&this.Vc(a))return a.preventDefault(),a.stopPropagation(),!0;return!1};
s.Vc=function(a){var b=Lf(this,this.ea);if(b&&typeof b.Va=="function"&&b.Va(a))return!0;if(this.Y&&this.Y!=b&&typeof this.Y.Va=="function"&&this.Y.Va(a))return!0;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return!1;switch(a.keyCode){case 27:if(this.Vb())this.W().blur();else return!1;break;case 36:Ri(this);break;case 35:Si(this);break;case 38:if(this.O==Ei)Ti(this);else return!1;break;case 37:if(this.O==Di)Mf(this)?Ui(this):Ti(this);else return!1;break;case 40:if(this.O==Ei)Ui(this);else return!1;
break;case 39:if(this.O==Di)Mf(this)?Ti(this):Ui(this);else return!1;break;default:return!1}return!0};function Oi(a,b){var c=b.c(),c=c.id||(c.id=Ef(b));if(!a.Mb)a.Mb={};a.Mb[c]=b}s.kd=function(a,b){Ni.b.kd.call(this,a,b)};s.ld=function(a,b,c){a.Ge|=2;a.Ge|=64;(this.Vb()||!this.Oh)&&$f(a,32,!1);Wf(a,!1);Ni.b.ld.call(this,a,b,c);c&&this.H&&Oi(this,a);b<=this.ea&&this.ea++};
s.removeChild=function(a,b){if(a=z(a)?Hf(this,a):a){var c=Nf(this,a);c!=-1&&(c==this.ea?a.qb(!1):c<this.ea&&this.ea--);(c=a.c())&&c.id&&Na(this.Mb,c.id)}a=Ni.b.removeChild.call(this,a,b);Wf(a,!0);return a};s.Ee=function(a){this.c()&&e(Error("Component already rendered"));this.O=a};s.X=p("Q");
s.setVisible=function(a,b){if(b||this.Q!=a&&this.dispatchEvent(a?"show":"hide")){this.Q=a;var c=this.c();c&&(ze(c,a),this.Vb()&&Ci(this.W(),this.Ta&&this.Q),b||this.dispatchEvent(this.Q?"aftershow":"afterhide"));return!0}return!1};s.isEnabled=p("Ta");s.cc=function(a){if(this.Ta!=a&&this.dispatchEvent(a?"enable":"disable"))a?(this.Ta=!0,Jf(this,function(a){a.Ih?delete a.Ih:a.cc(!0)})):(Jf(this,function(a){a.isEnabled()?a.cc(!1):a.Ih=!0}),this.zb=this.Ta=!1),this.Vb()&&Ci(this.W(),a&&this.Q)};
s.Vb=p("$e");s.dc=function(a){a!=this.$e&&this.H&&Pi(this,a);this.$e=a;this.Ta&&this.Q&&Ci(this.W(),a)};function Qi(a,b){var c=Lf(a,b);c?c.qb(!0):a.ea>-1&&Lf(a,a.ea).qb(!1)}s.qb=function(a){Qi(this,Nf(this,a))};function Ri(a){Vi(a,function(a,c){return(a+1)%c},Kf(a)-1)}function Si(a){Vi(a,function(a,c){a--;return a<0?c-1:a},0)}function Ui(a){Vi(a,function(a,c){return(a+1)%c},a.ea)}function Ti(a){Vi(a,function(a,c){a--;return a<0?c-1:a},a.ea)}
function Vi(a,b,c){for(var c=c<0?Nf(a,a.Y):c,d=Kf(a),c=b.call(a,c,d),f=0;f<=d;){var g=Lf(a,c);if(g&&a.sg(g)){Qi(a,c);break}f++;c=b.call(a,c,d)}}s.sg=function(a){return a.X()&&a.isEnabled()&&!!(a.ca&2)};function Wi(){}C(Wi,Of);ca(Wi);Wi.prototype.o=q("goog-menuheader");function Xi(a,b,c){Y.call(this,a,c||Wi.za(),b);$f(this,1,!1);$f(this,2,!1);$f(this,4,!1);$f(this,32,!1);this.t=1}C(Xi,Y);Tf("goog-menuheader",function(){return new Xi(n)});function Yi(a,b){Ni.call(this,Ei,b||Gi.za(),a);this.dc(!1)}C(Yi,Ni);s=Yi.prototype;s.Oe=!0;s.Ph=!1;s.o=function(){return this.k.o()};s.jc=function(a){if(this.k.jc(this,a))return!0;for(var b=0,c=Kf(this);b<c;b++){var d=Lf(this,b);if(typeof d.jc=="function"&&d.jc(a))return!0}return!1};s.Hb=function(a){this.kd(a,!0)};s.Kc=function(a,b){this.ld(a,b,!0)};s.yd=function(a){return Lf(this,a)};s.ie=function(){return Kf(this)};
s.setPosition=function(a,b){var c=this.X();c||ze(this.c(),!0);ve(this.c(),a,b);c||ze(this.c(),!1)};s.getPosition=function(){return this.X()?se(this.c()):n};s.setVisible=function(a,b,c){(b=Yi.b.setVisible.call(this,a,b))&&a&&this.H&&this.Oe&&this.W().focus();this.kh=a&&c&&fa(c.clientX)?new E(c.clientX,c.clientY):n;return b};s.hf=function(a){this.Oe&&this.W().focus();return Yi.b.hf.call(this,a)};s.sg=function(a){return(this.Ph||a.isEnabled())&&a.X()&&!!(a.ca&2)};
s.ib=function(a){var b=this.k,c;c=this.V();c=Hc(c.B,"div",b.o()+"-content",a);for(var d,f=0;d=c[f];f++)Fi(b,this,d);Yi.b.ib.call(this,a)};function Zi(){}C(Zi,fg);ca(Zi);if(M)Zi.prototype.setContent=function(a,b){var c=Zi.b.U.call(this,a&&a.firstChild);if(c){var d=this.createCaption(b,Ec(a)),f=c.parentNode;f&&f.replaceChild(d,c)}};s=Zi.prototype;s.U=function(a){a=Zi.b.U.call(this,a&&a.firstChild);if(M&&a&&a.__goog_wrapper_div)a=a.firstChild;return a};s.da=function(a,b){var c=Hc(document,"*","goog-menu",b)[0];if(c){ze(c,!1);P(c).body.appendChild(c);var d=new Yi;d.da(c);a.Pd(d)}return Zi.b.da.call(this,a,b)};
s.de=function(a,b){return Zi.b.de.call(this,[this.createCaption(a,b),b.r("div","goog-inline-block "+(this.o()+"-dropdown"),"\u00a0")],b)};s.createCaption=function(a,b){return b.r("div","goog-inline-block "+(this.o()+"-caption"),a)};s.o=q("goog-menu-button");function $i(a,b,c,d){eg.call(this,a,c||Zi.za(),d);$f(this,64,!0);b&&this.Pd(b);this.u=new Ee(500);if((xi||yi)&&!O("533.17.9"))this.oe=!0}C($i,eg);s=$i.prototype;s.ng=!0;s.Rf=!1;s.oe=!1;s.Dj=!1;s.$=function(){$i.b.$.call(this);this.l&&aj(this,this.l,!0);X(this.c(),"haspopup","true")};s.kb=function(){$i.b.kb.call(this);if(this.l){this.P(!1);this.l.kb();aj(this,this.l,!1);var a=this.l.c();a&&Pc(a)}};s.h=function(){$i.b.h.call(this);this.l&&(this.l.j(),delete this.l);delete this.Bj;this.u.j()};
s.rc=function(a){$i.b.rc.call(this,a);if(this.t&4&&(this.P(!this.nb(),a),this.l))this.l.zb=this.nb()};s.sc=function(a){$i.b.sc.call(this,a);if(this.l&&!(this.t&4))this.l.zb=!1};s.bd=function(){this.setActive(!1);return!0};s.ui=function(a){this.l&&this.l.X()&&!this.jc(a.target)&&this.P(!1)};s.jc=function(a){return a&&Rc(this.c(),a)||this.l&&this.l.jc(a)||!1};
s.Vc=function(a){if(a.keyCode==32){if(a.preventDefault(),a.type!="keyup")return!1}else if(a.type!="key")return!1;if(this.l&&this.l.X()){var b=this.l.Va(a);if(a.keyCode==27)return this.P(!1),!0;return b}if(a.keyCode==40||a.keyCode==38||a.keyCode==32)return this.P(!0),!0;return!1};s.lf=function(){this.P(!1)};s.yi=function(){this.t&4||this.P(!1)};s.xb=function(a){this.oe||this.P(!1);$i.b.xb.call(this,a)};function bj(a){a.l||a.Pd(new Yi(a.V()));return a.l||n}
s.Pd=function(a){var b=this.l;if(a!=b&&(b&&(this.P(!1),this.H&&aj(this,b,!1),delete this.l),a)){this.l=a;Gf(a,this);a.setVisible(!1);var c=this.oe;(a.Oe=c)&&a.dc(!0);this.H&&aj(this,a,!0)}return b};s.Hb=function(a){bj(this).kd(a,!0)};s.Kc=function(a,b){bj(this).ld(a,b,!0)};s.yd=function(a){return this.l?Lf(this.l,a):n};s.ie=function(){return this.l?Kf(this.l):0};s.setVisible=function(a,b){var c=$i.b.setVisible.call(this,a,b);c&&!this.X()&&this.P(!1);return c};
s.cc=function(a){$i.b.cc.call(this,a);this.isEnabled()||this.P(!1)};
s.P=function(a,b){$i.b.P.call(this,a);if(this.l&&!!(this.t&64)==a){if(a)this.l.H||(this.Dj?this.l.Db(this.c().parentNode):this.l.Db()),this.Gh=re(this.c()),this.qg=ye(this.c()),cj(this),Qi(this.l,-1);else if(this.setActive(!1),this.l.zb=!1,this.c()&&X(this.c(),"activedescendant",""),this.ze!=n){this.ze=i;var c=this.l.c();c&&we(c,"","")}this.l.setVisible(a,!1,b);var c=this.qa(),d=a?c.i:c.Z;d.call(c,Yc(this.V()),"mousedown",this.ui,!0);this.oe&&d.call(c,this.l,"blur",this.yi);d.call(c,this.u,Ge,this.ad);
a?this.u.start():this.u.stop()}};function cj(a){if(a.l.H){var b=new ti(a.Bj||a.c(),a.ng?5:7,!a.Rf,a.Rf),c=a.l.c();if(!a.l.X())c.style.visibility="hidden",ze(c,!0);if(!a.ze&&a.Rf)a.ze=xe(c);b.Id(c,a.ng?4:6,n,a.ze);if(!a.l.X())ze(c,!1),c.style.visibility="visible"}}
s.ad=function(){var a=ye(this.c()),b=re(this.c()),c;c=this.qg;c=c==a?!0:!c||!a?!1:c.left==a.left&&c.width==a.width&&c.top==a.top&&c.height==a.height;if(!(c=!c))c=this.Gh,c=c==b?!0:!c||!b?!1:c.top==b.top&&c.right==b.right&&c.bottom==b.bottom&&c.left==b.left,c=!c;if(c)this.qg=a,this.Gh=b,cj(this)};function aj(a,b,c){var d=a.qa(),c=c?d.i:d.Z;c.call(d,b,"action",a.lf);c.call(d,b,"highlight",a.jf);c.call(d,b,"unhighlight",a.pf)}s.jf=function(a){X(this.c(),"activedescendant",a.target.c().id)};
s.pf=function(){Lf(this.l,this.l.ea)||X(this.c(),"activedescendant","")};Tf("goog-menu-button",function(){return new $i(n)});function dj(a){D.call(this);this.uc=[];ej(this,a)}C(dj,W);s=dj.prototype;s.bc=n;s.Ec=n;s.ie=function(){return this.uc.length};s.yd=function(a){return this.uc[a]||n};function ej(a,b){b&&(H(b,function(a){fj(this,a,!1)},a),$a(a.uc,b))}s.Hb=function(a){this.Kc(a,this.ie())};s.Kc=function(a,b){a&&(fj(this,a,!1),ab(this.uc,b,0,a))};s.ke=p("bc");s.ec=function(a){if(a!=this.bc)fj(this,this.bc,!1),this.bc=a,fj(this,a,!0);this.dispatchEvent("select")};s.ff=function(){return this.bc?Ra(this.uc,this.bc):-1};
s.th=function(a){this.ec(this.yd(a))};s.clear=function(){var a=this.uc;if(!y(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0;this.bc=n};s.h=function(){dj.b.h.call(this);delete this.uc;this.bc=n};function fj(a,b,c){b&&(typeof a.Ec=="function"?a.Ec(b,c):typeof b.Vf=="function"&&b.Vf(c))};function gj(a,b,c,d){$i.call(this,a,b,c,d);this.ee=a;hj(this)}C(gj,$i);s=gj.prototype;s.J=n;s.ee=n;s.$=function(){gj.b.$.call(this);hj(this);ij(this)};s.ib=function(a){gj.b.ib.call(this,a);(a=this.Rc())?(this.ee=a,hj(this)):this.th(0)};s.h=function(){gj.b.h.call(this);if(this.J)this.J.j(),this.J=n;this.ee=n};s.lf=function(a){this.ec(a.target);gj.b.lf.call(this,a);a.stopPropagation();this.dispatchEvent("action")};s.Di=function(){var a=this.ke();gj.b.S.call(this,a&&a.p());hj(this)};
s.Pd=function(a){var b=gj.b.Pd.call(this,a);a!=b&&(this.J&&this.J.clear(),a&&(this.J?Jf(a,function(a){this.J.Hb(a)},this):jj(this,a)));return b};s.Hb=function(a){gj.b.Hb.call(this,a);this.J?this.J.Hb(a):jj(this,bj(this))};s.Kc=function(a,b){gj.b.Kc.call(this,a,b);this.J?this.J.Kc(a,b):jj(this,bj(this))};s.ec=function(a){this.J&&this.J.ec(a)};s.th=function(a){this.J&&this.ec(this.J.yd(a))};
s.S=function(a){if(a!=n&&this.J)for(var b=0,c;c=this.J.yd(b);b++)if(c&&typeof c.p=="function"&&c.p()==a){this.ec(c);return}this.ec(n)};s.ke=function(){return this.J?this.J.ke():n};s.ff=function(){return this.J?this.J.ff():-1};function jj(a,b){a.J=new dj;b&&Jf(b,function(a){this.J.Hb(a)},a);ij(a)}function ij(a){a.J&&a.qa().i(a.J,"select",a.Di)}function hj(a){var b=a.ke();a.setContent(b?b.Rc():a.ee)}s.P=function(a,b){gj.b.P.call(this,a,b);this.nb()&&Qi(bj(this),this.ff())};Tf("goog-select",function(){return new gj(n)});function kj(a,b){this.f=a;this.dd=new gj("---");this.ma=T(this.dd,"action",function(b){a.I.Lb(b.target.p())});this.dd.Db(b)}C(kj,D);kj.prototype.gb=function(a,b){var c=new Mi(a.name,a);this.dd.Hb(c);if(b||this.dd.ie()==1)this.dd.ec(c),this.f.I.Lb(a)};kj.prototype.h=function(){U(this.ma);this.dd.j()};function lj(a){x(a)||function(){this.a=new wg(a,Gc("weapp-fpsbox"),function(){window.document.location="http://www.webglearth.com/upgrade.html"});xg(this.a);this.Zg=new Ee(15);T(this.Zg,Ge,A(function(){var a=this.a,b=a.g;if(!x(a.bf)){var c=B();if(a.yf<B()-2E3)a.af=1E3*a.he/(B()-a.yf),a.pg=a.cf/a.he,a.yf=B(),a.he=0,a.cf=0,a.bf.innerHTML=a.pg.toFixed(2)+" ms / fps: "+a.af.toFixed(2);a.he++}b.clear(b.COLOR_BUFFER_BIT|b.DEPTH_BUFFER_BIT);a.Ba.sa=jg(4);a.n.draw();!x(a.bf)&&(a.cf+=B()-c);a=this.Cf;H(a.Df.pc(),
a.Tj,a)},this));this.a.Hd="http://data.webglearth.com/cgi-bin/corsproxy.fcgi?url=";var b=!1;this.a.Hf=function(){if(!b)b=!0,window.location="http://data.webglearth.com/"};this.a.n=new qh(this.a,Gc("weapp-infobox"),Gc("weapp-mapcopyright"),Gc("weapp-maplogo"));this.a.Be();this.md=new ai(this.a.n.d);this.dk=new ji(this.a.n,this.md);this.kk=new mi(this.a.n);this.Sj=new kj(this.a.n,Gc("weapp-tileprovider"));this.lk=new Uh(this.a.n,Gc("weapp-zoomslider"));this.fk=new hi(this.a.n,Gc("weapp-pancontrol"));
var c=Gc("weapp-nominatim");this.eh=new yf(c);this.Cf=new ki(this.a.n,a.parentNode);var d=new ni(0,0);d.enable(!1);li(this.Cf,"nominatimMarker",d);var f=A(function(a){var b=a.boundingbox,c=J(parseFloat(a.lat)),d=J(parseFloat(b[0])),f=J(parseFloat(b[1])),o=(d+f)/2,b=mh(o,J(parseFloat(b[2])),o,J(parseFloat(b[3]))),d=mh(d,0,f,0),f=J(zb(this.a.nc)/(Math.min(Math.max(this.a.od,b/d),1)+0.4)-2);bi(this.md,c,J(parseFloat(a.lon)),Math.max(9567205.5*(Math.sin(Math.min(Math.PI/2,f+Math.max(d,b)/12756274))*Math.sqrt(1+
1/Math.pow(Math.tan(f),2))-1),kh(this.a.n.I,jh(this.a.n.I).maxZoom+0.1,c)))},this);this.eh.addEventListener("update",function(a){f(a.row)});T(Gc("weapp-nominatimform"),"submit",A(function(a){a.preventDefault();this.eh.search(c.value,1,function(a,b){b.length>0&&f(b[0])})},this));d=A(function(){function a(c){c+="=";var d=Va(b,function(a){return a.indexOf(c)===0});if(d!=n&&(d=d.substr(c.length),d.length>0))return d}var b=window.location.hash.substr(1).split(";"),c=a("zoom")||a("z");isNaN(c)||this.a.n.I.setZoom(c);
c=a("alt");isNaN(c)||Kg(this.a.n.d,c);c=a("t");isNaN(c)||this.a.n.d.setTilt(parseFloat(c));c=a("h");isNaN(c)||this.a.n.d.setHeading(parseFloat(c));c=a("ll");if(c!=n)c=c.split(","),c.length>1&&!isNaN(c[0])&&!isNaN(c[1])&&this.a.n.d.setPosition(J(c[0]),J(c[1]));else{var c=a("lat"),d=a("lon")||a("long");!isNaN(c)&&!isNaN(d)&&this.a.n.d.setPosition(J(c),J(d))}},this);this.Ng=new Ee(2E3);T(this.Ng,Ge,A(function(){var a=[zb(this.a.n.d.ob),zb(this.a.n.d.yb)];window.location.hash="#ll="+a[0].toFixed(5)+","+
a[1].toFixed(5)+";alt="+this.a.n.d.ga.toFixed(0)+";h="+this.a.n.d.getHeading().toFixed(3)+";t="+this.a.n.d.getTilt().toFixed(3)},this));this.Ng.start();window.addEventListener("hashchange",d,!1);d();T(this.a.canvas,"click",A(function(a){if(a.ctrlKey){var b=Mg(this.a.n,a.offsetX,a.offsetY);li(this.Cf,n,new ei(b[0],b[1],"Title",Q("span",{},"This is an example of new PrettyMarker. You can easily customize this popup and even add links and other objects: ",Q("br"),Q("br"),Q("a",{target:"blank",href:"http://www.klokantech.com/"},
"Klokan Technologies"),Q("br"),Q("br"))));a.preventDefault()}},this))}.call(this)}lj.prototype.gb=function(a){this.Sj.gb(a)};lj.prototype.start=function(){this.Zg.start()};
function mj(){var a=new lj(Gc("weapp-canvas"));a.gb(new K("NASA Blue Marble","http://data.webglearth.com/tileserver/blue-marble-topo-bathy-jul/{z}/{x}/{y}.jpg",0,8,256,!0,[],""));a.gb(new Af);a.gb(new gi("Open Street Map"));a.gb(new K("Natural Earth II","http://data.webglearth.com/tileserver/natural-earth-2/{z}/{x}/{y}.png",0,6,256,!0));a.gb(new K("Natural Earth Colored","http://data.webglearth.com/natural-earth-color/{z}/{x}/{y}.jpg",0,5,256,!0));a.gb(new K("MapBox World Bright","http://data.webglearth.com/tileserver/world-bright/{z}/{x}/{y}.png",
0,11,256,!0));a.gb(new K("MapBox World Dark","http://data.webglearth.com/tileserver/world-dark/{z}/{x}/{y}.png",0,11,256,!0));a.gb(new K("MapBox Control Room","http://data.webglearth.com/tileserver/control-room/{z}/{x}/{y}.png",0,8,256,!0));a.start()}var nj="WEApp".split("."),oj=t;!(nj[0]in oj)&&oj.execScript&&oj.execScript("var "+nj[0]);for(var pj;nj.length&&(pj=nj.shift());)!nj.length&&w(mj)?oj[pj]=mj:oj=oj[pj]?oj[pj]:oj[pj]={};

