(function(){var h,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ba="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,ca=function(){ca=function(){};ba.Symbol||(ba.Symbol=da)},da=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(),fa=function(){ca();var a=ba.Symbol.iterator;a||(a=ba.Symbol.iterator=ba.Symbol("iterator"));"function"!=typeof Array.prototype[a]&& aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(this)}});fa=function(){}},ea=function(a){var b=0;return ha(function(){return b>>0),va=0,wa=function(a,b,c){return a.call.apply(a.bind,arguments)},xa=function(a,b,c){if(!a)throw Error();if(2c&&(c=Math.max(0,a.length+c));if(n(a))return n(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},La=Array.prototype.forEach?function(a,b,c){x(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=n(a)?a.split(""):a,f=0;fb?null:n(a)?a.charAt(b):a[b]},Ta=function(a){if(!p(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},Va=function(a,b){b=Ia(a,b);var c;(c=0<= b)&&Ua(a,b);return c},Ua=function(a,b){x(null!=a.length);Array.prototype.splice.call(a,b,1)},Wa=function(a){return Array.prototype.concat.apply([],arguments)},Xa=function(a){var b=a.length;if(0=arguments.length?Array.prototype.slice.call(a, b):Array.prototype.slice.call(a,b,c)},$a=function(a){for(var b={},c=0,d=0;d")&&(a=a.replace(gb,">"));-1!=a.indexOf('"')&&(a=a.replace(hb,"""));-1!= a.indexOf("'")&&(a=a.replace(ib,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(jb,"�"));return a},eb=/&/g,fb=//g,hb=/"/g,ib=/'/g,jb=/\x00/g,db=/[\x00&<>"']/,lb=function(a,b){return ab?1:0};var mb;a:{var nb=k.navigator;if(nb){var ob=nb.userAgent;if(ob){mb=ob;break a}}mb=""}var B=function(a){return-1!=mb.indexOf(a)};var pb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},qb=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},rb=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d},sb=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},tb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},ub=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},vb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},xb=function(a){var b= wb,c;for(c in b)if(a.call(void 0,b[c],c,b))return c},yb=function(a){for(var b in a)return!1;return!0},zb=function(a,b){b in a&&delete a[b]},Ab=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Bb=function(a){var b=ra(a);if("object"==b||"array"==b){if(q(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=Bb(a[c]);return b}return a},Cb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Db=function(a,b){for(var c,d,e=1;eparseFloat(Ob)){Nb=String(Qb);break a}}Nb=Ob} var Rb=Nb,Fb={},Sb=function(a){return Gb(a,function(){for(var b=0,c=cb(String(Rb)).split("."),d=cb(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f=a.keyCode)a.keyCode=-1}catch(b){}};var ac="closure_listenable_"+(1E6*Math.random()|0),bc=function(a){return!(!a||!a[ac])},cc=0;var dc=function(a,b,c,d,e){this.listener=a;this.Lb=null;this.src=b;this.type=c;this.capture=!!d;this.da=e;this.key=++cc;this.Ma=this.rb=!1},ec=function(a){a.Ma=!0;a.listener=null;a.Lb=null;a.src=null;a.da=null};var fc=function(a){this.src=a;this.D={};this.mb=0};fc.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.D[f];a||(a=this.D[f]=[],this.mb++);var g=gc(a,b,d,e);-1 d.keyCode||void 0!=d.returnValue)){a:{var e=!1;if(0==d.keyCode)try{d.keyCode=-1;break a}catch(g){e=!0}if(e||void 0==d.returnValue)d.returnValue=!0}d=[];for(e=b.currentTarget;e;e=e.parentNode)d.push(e);a=a.type;for(e=d.length-1;!b.xa&&0<=e;e--){b.currentTarget=d[e];var f=wc(d[e],a,!0,b);c=c&&f}for(e=0;!b.xa&&e>> 0),nc=function(a){x(a,"Listener can not be null.");if(q(a))return a;x(a.handleEvent,"An object listener must have handleEvent method.");a[xc]||(a[xc]=function(b){return a.handleEvent(b)});return a[xc]};var yc=function(a){z.call(this);this.ua=a;this.h={}};v(yc,z);var zc=[];yc.prototype.aa=function(a,b,c,d){p(b)||(b&&(zc[0]=b.toString()),b=zc);for(var e=0;e++d,"infinite loop")}b=this.Vd;d=a.type||a;if(n(a))a=new A(a,b);else if(a instanceof A)a.target=a.target||b;else{var e=a;a=new A(d,b);Db(a,e)}e=!0;if(c)for(var f=c.length-1;!a.xa&&0<=f;f--){var g=a.currentTarget=c[f];e=Cc(g,d,!0,a)&&e}a.xa||(g=a.currentTarget=b,e=Cc(g,d,!0,a)&&e,a.xa||(e=Cc(g,d,!1,a)&&e));if(c)for(f=0;!a.xa&&f=b.fc&&b.cancel())}this.Ed?this.Ed.call(this.fd,this):this.Lc=!0;this.Ia||md(this,new nd(this))}};ld.prototype.cd=function(a,b){this.ec=!1;od(this,a,b)}; var od=function(a,b,c){a.Ia=!0;a.ga=c;a.ab=!b;pd(a)},rd=function(a){if(a.Ia){if(!a.Lc)throw new qd(a);a.Lc=!1}};ld.prototype.gc=function(a){rd(this);sd(a);od(this,!0,a)};var md=function(a,b){rd(a);sd(b);od(a,!1,b)},sd=function(a){x(!(a instanceof ld),"An execution sequence may not be initiated with a blocking Deferred.")},td=function(a,b,c){x(!a.Yc,"Blocking Deferreds can not be re-used");a.Pb.push([b,c,void 0]);a.Ia&&pd(a)}; ld.prototype.then=function(a,b,c){var d,e,f=new Yc(function(a,b){d=a;e=b});td(this,d,function(a){a instanceof nd?f.cancel():e(a)});return f.then(a,b,c)};Uc(ld); var ud=function(a){return Oa(a.Pb,function(a){return q(a[1])})},pd=function(a){if(a.Vb&&a.Ia&&ud(a)){var b=a.Vb,c=vd[b];c&&(k.clearTimeout(c.ea),delete vd[b]);a.Vb=0}a.u&&(a.u.fc--,delete a.u);b=a.ga;for(var d=c=!1;a.Pb.length&&!a.ec;){var e=a.Pb.shift(),f=e[0],g=e[1];e=e[2];if(f=a.ab?g:f)try{var l=f.call(e||a.fd,b);m(l)&&(a.ab=a.ab&&(l==b||l instanceof Error),a.ga=b=l);if(Vc(b)||"function"===typeof k.Promise&&b instanceof k.Promise)d=!0,a.ec=!0}catch(y){b=y,a.ab=!0,ud(a)||(c=!0)}}a.ga=b;d&&(l=t(a.cd, a,!0),d=t(a.cd,a,!1),b instanceof ld?(td(b,l,d),b.Yc=!0):b.then(l,d));c&&(b=new wd(b),vd[b.ea]=b,a.Vb=b.ea)},qd=function(){w.call(this)};v(qd,w);qd.prototype.message="Deferred has already fired";qd.prototype.name="AlreadyCalledError";var nd=function(){w.call(this)};v(nd,w);nd.prototype.message="Deferred was canceled";nd.prototype.name="CanceledError";var wd=function(a){this.ea=k.setTimeout(t(this.Be,this),0);this.vb=a}; wd.prototype.Be=function(){x(vd[this.ea],"Cannot throw an error that is not scheduled.");delete vd[this.ea];throw this.vb;};var vd={};var xd=function(){C.call(this);this.F=new FileReader;this.F.onloadstart=t(this.Ga,this);this.F.onprogress=t(this.Ga,this);this.F.onload=t(this.Ga,this);this.F.onabort=t(this.Ga,this);this.F.onerror=t(this.Ga,this);this.F.onloadend=t(this.Ga,this)};v(xd,C);h=xd.prototype;h.abort=function(){try{this.F.abort()}catch(a){throw new Sc(a,"aborting read");}};h.ka=function(){return this.F.readyState};h.getError=function(){return this.F.error&&new Sc(this.F.error,"reading file")}; h.Ga=function(a){this.dispatchEvent(new Tc(a,this))};h.f=function(){xd.l.f.call(this);delete this.F};h.readAsBinaryString=function(a){this.F.readAsBinaryString(a)};h.readAsArrayBuffer=function(a){this.F.readAsArrayBuffer(a)};h.readAsText=function(a,b){this.F.readAsText(a,b)};var yd=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var zd=function(a,b,c){this.reset(a,b,c,void 0,void 0)};zd.prototype.jd=null;var Ad=0;zd.prototype.reset=function(a,b,c,d,e){"number"==typeof e||Ad++;d||za();this.fb=a;delete this.jd};zd.prototype.Pd=function(a){this.fb=a};var Bd=function(a){this.Dd=a;this.sd=this.hc=this.fb=this.u=null},Cd=function(a,b){this.name=a;this.value=b};Cd.prototype.toString=function(){return this.name};var Dd=new Cd("SEVERE",1E3),Ed=new Cd("INFO",800),Fd=new Cd("CONFIG",700),Gd=new Cd("FINE",500);Bd.prototype.getName=function(){return this.Dd};Bd.prototype.getParent=function(){return this.u};Bd.prototype.od=function(){this.hc||(this.hc={});return this.hc};Bd.prototype.Pd=function(a){this.fb=a}; var Hd=function(a){if(a.fb)return a.fb;if(a.u)return Hd(a.u);Da("Root logger has no level set.");return null};Bd.prototype.log=function(a,b,c){if(a.value>=Hd(this).value)for(q(b)&&(b=b()),a=new zd(a,String(b),this.Dd),c&&(a.jd=c),c=this;c;){var d=c,e=a;if(d.sd)for(var f=0;b=d.sd[f];f++)b(e);c=c.getParent()}};Bd.prototype.info=function(a,b){this.log(Ed,a,b)}; var Id={},Jd=null,Kd=function(a){Jd||(Jd=new Bd(""),Id[""]=Jd,Jd.Pd(Fd));var b;if(!(b=Id[a])){b=new Bd(a);var c=a.lastIndexOf("."),d=a.substr(c+1);c=Kd(a.substr(0,c));c.od()[d]=b;b.u=c;Id[a]=b}return b};var Ld="StopIteration"in k?k.StopIteration:{message:"StopIteration",stack:""},Md=function(){};Md.prototype.next=function(){throw Ld;};Md.prototype.Ca=function(){return this}; var Nd=function(a){if(a instanceof Md)return a;if("function"==typeof a.Ca)return a.Ca(!1);if(ta(a)){var b=0,c=new Md;c.next=function(){for(;;){if(b>=a.length)throw Ld;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},Od=function(a,b){if(ta(a))try{La(a,b,void 0)}catch(c){if(c!==Ld)throw c;}else{a=Nd(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==Ld)throw c;}}};var Qd=function(a){return(new Pd(void 0)).A(a)},Pd=function(a){this.Nb=a};Pd.prototype.A=function(a){var b=[];Rd(this,a,b);return b.join("")}; var Rd=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(p(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f2*this.j&&ae(this),!0):!1};var ae=function(a){if(a.j!=a.h.length){for(var b=0,c=0;b=d.h.length)throw Ld;var e=d.h[b++];return a?e:d.s[e]};return e};var be=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var de=function(a){if(a.m&&"function"==typeof a.m)a=a.m();else if(ta(a)||n(a))a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},fe=function(a){if(a.w&&"function"==typeof a.w)return a.w();if(n(a))return a.split("");if(ta(a)){for(var b=[],c=a.length,d=0;d");c=c.join("")}c=a.createElement(c);d&&(n(d)?c.className=d:p(d)?c.className=d.join(" "):Qe(c,d));2a.y||a.y>=d)return c.createElement("div");var e=a.x%d;0>e&&(e+=d);d=new google.maps.Point(e,a.y);a=[[a.x,a.y,b,this.oa].join("-"),this.Pc.rd()].join("-");var f=this.ed(d,b,c,a);f.tileSize=this.tileSize;Ze(f.J,this.opacity);this.pa.set(a,f);this.da.aa(f,"status-changed",function(){switch(f.getStatus()){case "loaded":this.dispatchEvent(new bf(this.tc()));break;case "throttled":this.dispatchEvent(new cf(f.Ra));break;case "failed":this.dispatchEvent(new df(f.Ra, f.ge))}});this.Pc.Ad(f,(new Date).getTime()/1E3);return f.J};h.releaseTile=function(a){var b=this.pa.get(a.id);this.pa.remove(a.id);b&&(b.abort(),ab(b))};h.f=function(){$e.l.f.call(this);this.pa.forEach(ab);this.pa.clear();this.pa=null;ab(this.da);this.Pc=this.da=null};var af=function(a,b){return Qa(a.pa.w(),function(a){return a.getStatus()==b})},bf=function(){A.call(this,"tile-load")};v(bf,A);var cf=function(){A.call(this,"tile-throttle")};v(cf,A); var df=function(a,b){A.call(this,"tile-fail");this.errorMessage=b};v(df,A);var ef=function(a,b,c,d){C.call(this);this.Fa=a;this.zoom=b;this.J=c.createElement("div");this.J.id=d;this.re=5;this.Mb=function(){};this.Mc="new";this.Ld=0;this.Bc=!1};v(ef,C); var gf=function(a){if(!a.Bc&&"loading"==a.getStatus())throw Error("startLoad() can only be invoked once. Use retryLoad() after the first attempt.");ff(a,"loading");a.ha=new E;a.ha.Oa="blob";a.ha.aa("complete",function(){var a=ye(this.ha),c=this.ha.getStatus();429==c&&ff(this,"throttled");if(yd(c)){var d={};pb(ze(this.ha),function(a,b){d[b.toLowerCase()]=a});this.ze=d;this.Qd=a;this.Xa()}else if(a){var e=new xd;e.aa("loadend",function(){this.jb(e.F.result)},void 0,this);e.readAsText(a)}else this.jb("Failed to load tile.")}, !1,a);a.ha.gb("ready",ya(ab,a.ha));a.ha.send(a.Ra,"GET")};h=ef.prototype;h.Xa=function(){this.Mb(this);ff(this,"loaded")};h.Ua=function(){ab(this.ha)};h.jb=function(a){var b=function(a){try{if(a=JSON.parse(a),a.error&&a.error.message)return a.error.message}catch(d){}return a};this.Ld>=this.re?(this.ge=b(a),ff(this,"failed")):(this.Ua(),setTimeout(t(function(){this.Y||(this.Bc=!0,gf(this),this.Bc=!1)},this),1E3*Math.pow(2,this.Ld++)))};h.abort=function(){this.Ua();ff(this,"aborted")};h.getStatus=function(){return this.Mc}; var ff=function(a,b){a.Mc=b;a.dispatchEvent("status-changed")},hf={aborted:!0,failed:!0,loaded:!0};ef.prototype.f=function(){ef.l.f.call(this);this.Ua();this.J.remove();this.Mb=null};var jf=function(){z.call(this)};v(jf,z);var kf=function(a,b){$e.call(this,a,b);this.$c=new D;this.hd=new D};v(kf,$e);u("ee.layers.BinaryOverlay",kf);kf.prototype.ed=function(a,b,c,d){var e=new lf(a,b,c,d);this.da.aa(e,"status-changed",function(){"loaded"==e.getStatus()&&(this.$c.set(a,new Float32Array(e.Zd)),this.hd.set(a,e.J))});return e};kf.prototype.f=function(){kf.l.f.call(this);this.hd=this.$c=null};var lf=function(a,b,c,d){ef.call(this,a,b,c,d)};v(lf,ef); lf.prototype.Xa=function(){var a=new xd;a.aa("loadend",function(){this.Zd=a.F.result;ef.prototype.Xa.call(this)},void 0,this);a.readAsArrayBuffer(this.Qd)};var mf=function(a){for(var b=arguments[0],c=1;cb)throw Error("Bad port number "+b);a.La=b}else a.La=null}; wf.prototype.getPath=function(){return this.fa};wf.prototype.setPath=function(a,b){yf(this);this.fa=b?Bf(a,!0):a;return this};var Af=function(a,b,c){yf(a);b instanceof Cf?(a.V=b,a.V.Kc(a.N)):(c||(b=Df(b,If)),a.V=new Cf(b,a.N))};wf.prototype.removeParameter=function(a){yf(this);this.V.remove(a);return this};var yf=function(a){if(a.ne)throw Error("Tried to modify a read-only Uri");};wf.prototype.Kc=function(a){this.N=a;this.V&&this.V.Kc(a)}; var Jf=function(a){return a instanceof wf?a.clone():new wf(a,void 0)},Bf=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Df=function(a,b,c){return n(a)?(a=encodeURI(a).replace(b,Kf),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Kf=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Ef=/[#\/\?@]/g,Gf=/[#\?:]/g,Ff=/[#\?]/g,If=/[#\?@]/g,Hf=/#/g,Cf=function(a,b){this.j=this.o=null;this.K=a||null;this.N=!!b},Lf=function(a){a.o|| (a.o=new D,a.j=0,a.K&&le(a.K,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=Cf.prototype;h.m=function(){Lf(this);return this.j};h.add=function(a,b){Lf(this);this.K=null;a=Mf(this,a);var c=this.o.get(a);c||this.o.set(a,c=[]);c.push(b);this.j=Ea(this.j)+1;return this};h.remove=function(a){Lf(this);a=Mf(this,a);return this.o.ja(a)?(this.K=null,this.j=Ea(this.j)-this.o.get(a).length,this.o.remove(a)):!1};h.clear=function(){this.o=this.K=null;this.j=0}; h.isEmpty=function(){Lf(this);return 0==this.j};h.ja=function(a){Lf(this);a=Mf(this,a);return this.o.ja(a)};h.Va=function(a){var b=this.w();return 0<=Ia(b,a)};h.forEach=function(a,b){Lf(this);this.o.forEach(function(c,d){La(c,function(c){a.call(b,c,d,this)},this)},this)};h.U=function(){Lf(this);for(var a=this.o.w(),b=this.o.U(),c=[],d=0;db&&(b+=e);return[ig,"map",a.mapid,d,b,c].join("/")+"?token="+a.token};u("ee.data.getTileUrl",tg);var ug=function(a,b){a=Ab(a);return F("/value",G(a),b)};u("ee.data.getValue",ug); var vg=function(a,b){a=Ab(a);p(a.dimensions)&&(a.dimensions=a.dimensions.join("x"));a=G(a).add("getid","1");return F("/thumb",a,b)};u("ee.data.getThumbId",vg);var wg=function(a){return ig+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token};u("ee.data.makeThumbUrl",wg);var xg=function(a,b){a=Ab(a);return F("/download",G(a),b)};u("ee.data.getDownloadId",xg);var yg=function(a){return ig+"/api/download?docid="+a.docid+"&token="+a.token};u("ee.data.makeDownloadUrl",yg); var zg=function(a,b){a=Ab(a);return F("/table",G(a),b)};u("ee.data.getTableDownloadId",zg);var Ag=function(a){return ig+"/api/table?docid="+a.docid+"&token="+a.token};u("ee.data.makeTableDownloadUrl",Ag);var Cg=function(a,b,c){var d=Bg;try{return Bg=a,b.call(c)}finally{Bg=d}};u("ee.data.withProfiling",Cg);u("ee.data.newTaskId",function(a,b){var c={};ma(a)&&(c.count=a);return F("/newtaskid",G(c),b)}); u("ee.data.getTaskStatus",function(a,b){if(n(a))a=[a];else if(!p(a))throw Error("Invalid taskId: expected a string or an array of strings.");return F("/taskstatus?q="+a.join(),null,b,"GET")});u("ee.data.getTaskList",function(a){return F("/tasklist",null,a,"GET")});u("ee.data.cancelTask",function(a,b){return Dg(a,"CANCEL",b)}); var Dg=function(a,b,c){if(n(a))a=[a];else if(!p(a))throw Error("Invalid taskId: expected a string or an array of strings.");if(!vb(Eg,b))throw Error("Invalid action: "+b);return F("/updatetask",G({id:a,action:b}),c,"POST")};u("ee.data.updateTask",Dg);u("ee.data.startProcessing",function(a,b,c){b=Ab(b);b.id=a;return F("/processingrequest",G(b),c)});u("ee.data.startIngestion",function(a,b,c){a={id:a,request:Qd(b)};return F("/ingestionrequest",G(a),c)}); u("ee.data.startTableIngestion",function(a,b,c){a={id:a,tableRequest:Qd(b)};return F("/ingestionrequest",G(a),c)});var Fg=function(a,b){return F("/info",(new Cf).add("id",a),b)};u("ee.data.getInfo",Fg);var Gg=function(a,b){a=G(a);return F("/list",a,b)};u("ee.data.getList",Gg);u("ee.data.getAssetRoots",function(a){return F("/buckets",null,a,"GET")});u("ee.data.createAssetHome",function(a,b){a=G({id:a});F("/createbucket",a,b)}); u("ee.data.createAsset",function(a,b,c,d,e){n(a)||(a=Qd(a));a={value:a};void 0!==b&&(a.id=b);a.force=c||!1;void 0!=d&&(a.properties=Qd(d));return F("/create",G(a),e)});u("ee.data.createFolder",function(a,b,c){return F("/createfolder",G({id:a,force:b||!1}),c)});u("ee.data.renameAsset",function(a,b,c){F("/rename",G({sourceId:a,destinationId:b}),c)});u("ee.data.copyAsset",function(a,b,c){F("/copy",G({sourceId:a,destinationId:b}),c)});u("ee.data.deleteAsset",function(a,b){F("/delete",G({id:a}),b)}); u("ee.data.getAssetAcl",function(a,b){return F("/getacl",G({id:a}),b,"GET")});u("ee.data.setAssetAcl",function(a,b,c){a={id:a,value:Qd(b)};F("/setacl",G(a),c)});u("ee.data.setAssetProperties",function(a,b,c){a={id:a,properties:Qd(b)};F("/setproperties",G(a),c)});u("ee.data.getAssetRootQuota",function(a,b){return F("/quota",G({id:a}),b,"GET")}); var Eg={Fe:"CANCEL",Ie:"UPDATE"},F=function(a,b,c,d){kg();var e=Bg,f={"Content-Type":"application/x-www-form-urlencoded"},g=dg();if(null!=g)f.Authorization=g;else if(c&&Wf&&Nf)return Rf(function(){Cg(e,function(){F(a,b,c,d)})}),null;g=d||"POST";b=b?b.clone():new Cf;e&&b.add("profiling","1");null!=Yf&&b.add("api_key",Yf);b=ng(b,a);null!=jg&&(f["X-XSRF-Token"]=jg);var l=b?b.toString():"";"GET"!=g||/^[\s\xa0]*$/.test(l)||(a+=-1!=a.indexOf("?")?"&":"?",a+=l,l=null);var y=gg+a;if(c)return Hg.push(Ig(y, c,g,l,f)),Jg.rc(),null;for(var oa=function(a,b){this.setRequestHeader&&this.setRequestHeader(b,a)},Ka,Tg=0;;){Ka=Zd();Ka.open(g,y,!1);pb(f,oa,Ka);Ka.send(l);if(429!=Ka.status||5f)return f++,setTimeout(function(){Hg.push(g);Jg.rc()},Math.min(12E4, 1E3*Math.pow(2,f))),null;var c=a.getStatus(),d=t(a.getResponseHeader,a);try{var e=a.a?a.a.responseText:""}catch(nj){Vd(a.I,"Can not get responseText: "+nj.message),e=""}return Kg(c,d,e,l,b)};return g},Kg=function(a,b,c,d,e){var f=b("X-Earth-Engine-Computation-Profile");f&&d&&d(f);b=(b=b("Content-Type"))?b.replace(/;.*/,""):"application/json";if("application/json"==b||"text/json"==b)try{var g=JSON.parse(c);var l=g.data}catch(oa){var y="Invalid JSON: "+c}else y="Response was unexpectedly not JSON, but "+ b;if(r(g))"error"in g&&"message"in g.error?y=g.error.message:"data"in g||(y="Malformed response: "+c);else if(0===a)y="Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.";else if(200>a||300<=a)y="Server returned HTTP code: "+a;if(e)return e(l,y),null;if(!y)return l;throw Error(y);},Qf=function(a){var b=function(){k.gapi.config.update("client/cors",!0);Wf||(Wf=k.gapi.auth.authorize);a()};if(r(k.gapi)&&r(k.gapi.auth)&&q(k.gapi.auth.authorize))b(); else{for(var c=za().toString(36);c in k;)c+="_";k[c]=function(){delete k[c];b()};vf(Ne({onload:c}))}},Vf=function(a,b,c){c.access_token?(b=c.token_type+" "+c.access_token,isFinite(c.expires_in)&&(c=900*c.expires_in,setTimeout(Rf,.9*c),bg=za()+c),Pf=b,a&&a()):b&&b(c.error||"Unknown error.")},G=function(a){var b=new Cf;a=ia(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=ia(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}return b},Hg=[],Jg=new pf(function(){var a=Hg.shift();if(a){var b= a.url,c=a.gc,d=a.method,e=a.content;a=a.headers;var f=lg,g=new E;qe.push(g);c&&g.aa("complete",c);g.gb("ready",g.be);f&&(g.Sa=Math.max(0,f));g.send(b,d,e,a)}0==Hg.length||Jg.rc()},350),gg=null,ig=null,jg=null,ng=Ec,Pf=null,bg=null,Nf=null,Of=[],Wf=null,Je=Fe("https://apis.google.com/js/client.js?onload=%{onload}"),Yf=null,hg=!1,lg=0,Bg=null;var Lg=function(a,b){this.yd=a;this.Yb=b};Lg.prototype.getKey=function(){return this.yd};Lg.prototype.clone=function(){return new Lg(this.yd,this.Yb)};var Mg=function(a){this.O=[];if(a)a:{if(a instanceof Mg){var b=a.U();a=a.w();if(0>=this.m()){for(var c=this.O,d=0;d>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};h=Mg.prototype; h.remove=function(){var a=this.O,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ta(a);else{a[0]=a.pop();a=0;b=this.O;for(var d=b.length,e=b[a];a>1;){var f=2*a+1,g=2*a+2;f=ge.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.Yb}};h.w=function(){for(var a=this.O,b=[],c=a.length,d=0;dc)return!1;!(b instanceof H)&&5this.Fb)throw Error("[goog.structs.Pool] Min can not be greater than max");this.Z=new Og;this.la=new H;this.kc=0;this.Cc=null;this.pb()};v(Ug,z);Ug.prototype.Za=function(){var a=za();if(!(null!=this.Cc&&a-this.Ccthis.Fb&&0e&&(e+=d);return[a.qe,c,e,b.y].join("/")};ih.prototype.tc=function(){return this.qa.length};var kh=function(a){A.call(this,"tileevent");this.count=a};v(kh,A);var lh=function(){};var mh=function(){this.ia=-1};var nh=function(){this.ia=64;this.C=Array(4);this.Xd=Array(this.ia);this.Tb=this.Ta=0;this.reset()};v(nh,mh);nh.prototype.reset=function(){this.C[0]=1732584193;this.C[1]=4023233417;this.C[2]=2562383102;this.C[3]=271733878;this.Tb=this.Ta=0}; var oh=function(a,b,c){c||(c=0);var d=Array(16);if(n(b))for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.C[0];c=a.C[1];e=a.C[2];var f=a.C[3];var g=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e& (f^b))+d[3]+3250441966&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(g<<12&4294967295|g>>>20);g= e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(g<<5&4294967295| g>>>27);g=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=e+(g<<20&4294967295| g>>>12);g=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[7]+1735328473&4294967295;e=f+(g<<14&4294967295| g>>>18);g=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^ b^c)+d[7]+4139469664&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[12]+3873151461&4294967295; f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[12]+1700485571&4294967295;b=c+ (g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[13]+1309151649&4294967295; c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.C[0]=a.C[0]+b&4294967295;a.C[1]=a.C[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;a.C[2]=a.C[2]+e&4294967295;a.C[3]=a.C[3]+f&4294967295}; nh.prototype.update=function(a,b){m(b)||(b=a.length);for(var c=b-this.ia,d=this.Xd,e=this.Ta,f=0;fthis.Ta?this.ia:2*this.ia)-this.Ta);a[0]=128;for(var b=1;bb;++b)for(var d=0;32>d;d+=8)a[c++]=this.C[b]>>>d&255;return a};var ph=function(a){this.ob="__ee_hash__";this.Ac=!1!==a;this.Pa=[];this.Ha={};this.Vc=[]};u("ee.Serializer",ph);var qh=new Pd,rh=new nh,th=function(a,b){return sh(new ph(m(b)?b:!0),a)};u("ee.Serializer.encode",th);var uh=function(a){return qh.A(th(a))};u("ee.Serializer.toJSON",uh);var vh=function(a){a=sh(new ph(!1),a);return"JSON"in k?k.JSON.stringify(a,null," "):qh.A(a)};u("ee.Serializer.toReadableJSON",vh); var sh=function(a,b){b=a.ub(b);a.Ac&&(b=r(b)&&"ValueRef"==b.type&&1==a.Pa.length?a.Pa[0][1]:{type:"CompoundValue",scope:a.Pa,value:b},a.Pa=[],La(a.Vc,t(function(a){delete a[this.ob]},a)),a.Vc=[],a.Ha={});return b}; ph.prototype.ub=function(a){if(!m(a))throw Error("Can't encode an undefined value.");var b=r(a)?a[this.ob]:null;if(this.Ac&&null!=b&&this.Ha[b])return{type:"ValueRef",value:this.Ha[b]};if(null===a||"boolean"==typeof a||ma(a)||n(a))return a;if(r(a)&&"function"==typeof a.getFullYear)return{type:"Invocation",functionName:"Date",arguments:{value:Math.floor(a.getTime())}};if(a instanceof lh){var c=a.encode(t(this.ub,this));if(!(p(c)||r(c)&&"ArgumentRef"!=c.type))return c}else if(p(a))c=Na(a,function(a){return this.ub(a)}, this);else if(r(a)&&!q(a))c=rb(a,function(a){if(!q(a))return this.ub(a)},this),zb(c,this.ob),c={type:"Dictionary",value:c};else throw Error("Can't encode object: "+a);if(this.Ac){rh.reset();rh.update(qh.A(c));b=rh.digest().toString();if(this.Ha[b])var d=this.Ha[b];else d=String(this.Pa.length),this.Pa.push([d,c]),this.Ha[b]=d;a[this.ob]=b;this.Vc.push(a);return{type:"ValueRef",value:d}}return c};var I=function(a,b,c){if(!(this instanceof I))return J(I,arguments);if(c&&(a||b))throw Error('When "opt_varName" is specified, "func" and "args" must be null.');if(a&&!b)throw Error('When "func" is specified, "args" must not be null.');this.i=a;this.args=b;this.B=c||null};v(I,lh);u("ee.ComputedObject",I);I.prototype.evaluate=function(a){if(!a||!q(a))throw Error("evaluate() requires a callback function.");ug({json:this.A()},a)};I.prototype.evaluate=I.prototype.evaluate; I.prototype.$=function(a){return ug({json:this.A()},a)};I.prototype.getInfo=I.prototype.$;I.prototype.encode=function(a){if(null===this.i&&null===this.args)return{type:"ArgumentRef",value:this.B};var b={},c;for(c in this.args)m(this.args[c])&&(b[c]=a(this.args[c]));b={type:"Invocation",arguments:b};a=a(this.i);b[n(a)?"functionName":"function"]=a;return b};I.prototype.A=function(){return uh(this)};I.prototype.serialize=I.prototype.A; I.prototype.toString=function(){return"ee."+this.name()+"("+vh(this)+")"};u("ee.ComputedObject.prototype.toString",I.prototype.toString);I.prototype.name=function(){return"ComputedObject"};I.prototype.Wc=function(a,b){var c=Xa(arguments);c[0]=this;a.apply(k,c);return this};I.prototype.aside=I.prototype.Wc; var wh=function(a,b){if(b instanceof a.constructor)return b;var c=function(){};c.prototype=a.constructor.prototype;a=new c;a.i=b.i;a.args=b.args;a.B=b.B;return a},J=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var xh={},yh=function(a){return a.prototype instanceof I?a.prototype.name.call(null):a==Number?"Number":a==String?"String":a==Array?"Array":a==Date?"Date":"Object"},zh=function(a,b){if(b==a)return!0;switch(a){case "Element":return"Element"==b||"Image"==b||"Feature"==b||"Collection"==b||"ImageCollection"==b||"FeatureCollection"==b;case "FeatureCollection":case "Collection":return"Collection"==b||"ImageCollection"==b||"FeatureCollection"==b;case "Object":return!0;default:return!1}},Ah=function(a){return ma(a)|| a instanceof I&&"Number"==a.name()},Bh=function(a){return n(a)||a instanceof I&&"String"==a.name()},Ch=function(a){return r(a)&&!q(a)?(a=Object.getPrototypeOf(a),null!==a&&null===Object.getPrototypeOf(a)):!1};var K=function(){if(!(this instanceof K))return new K};v(K,lh);u("ee.Function",K);var Dh=Ec;K.prototype.call=function(a){return this.apply(Eh(this,Array.prototype.slice.call(arguments,0)))};K.prototype.call=K.prototype.call;K.prototype.apply=function(a){a=new I(this,Fh(this,a));return Dh(a,this.H().returns)};K.prototype.apply=K.prototype.apply; var Gh=function(a,b,c){var d=m(b),e=a.H(),f=!1;if(1==c.length&&Ch(c[0])){var g=e.args;d&&(g=g.slice(1));g.length&&(f=!((1==g.length||g[1].optional)&&"Dictionary"==g[0].type))}if(f){if(c=Ab(c[0]),d){d=e.args[0].name;if(d in c)throw Error("Named args for "+e.name+" can't contain keyword "+d);c[d]=b}}else c=Eh(a,d?[b].concat(c):c);return a.apply(c)},Fh=function(a,b){for(var c=a.H().args,d={},e={},f=0;f/,"");for(var c=0;c/,"");return new L(b,a)}),a&&a())};a?rg(c):c(rg())}},N=function(a,b,c,d){Lh();var e=d||"";pb(Jh,function(d,g){var f=g.split(".");if(2==f.length&&f[0]==b){f=e+f[1];var y=d.H();Kh[g]=!0;var oa=!1;y.args.length&&(g=y.args[0].type,oa="Object"!=g&&zh(g, c));g=oa?a.prototype:a;f in g&&!g[f].signature||(g[f]=function(a){return Gh(d,oa?this:void 0,Array.prototype.slice.call(arguments,0))},g[f].toString=t(d.toString,d,f,oa),g[f].signature=y)}})},O=function(a){var b=function(a){for(var b in a)q(a[b])&&a[b].signature&&delete a[b]};b(a);b(a.prototype)};var P=function(a,b){var c=Ph(a),d=Na(c,function(a){return a.replace(/^opt_/,"")});a=(a=k.EXPORTED_FN_INFO?k.EXPORTED_FN_INFO[a.toString()].name.split(".").pop()+"()":null)?" to function "+a:"";var e={},f=b[0],g=r(f)&&!q(f)&&!p(f)&&!(f instanceof I);if(1d.length)throw Error("Received too many arguments"+a+". Expected at most "+d.length+" but got "+b.length+".");for(f=0;f=arguments.length){var c=arguments[0];if(b=Ch(c))a:{b=ub(c);var d=["properties"];if(ta(b)&&ta(d)&&b.length==d.length){for(var e=b.length,f=0;fc||4/,"");c[e]=!0}var f=k.ee,g;for(g in b)g in c&&!(g in f)&&(f[g]=uj(g),oj.push(g),a[g]?(f[g].signature=a[g],f[g].signature.isConstructor=!0,Kh[g]=!0):f[g].signature={});xh=f;vj()}catch(l){lj(l);return}hj="ready";for(ij=[];0a.se)return!1;a.Xc++;dh(a.G,a.ea);setTimeout(t(a.Ae,a),0);return!0}; Aj.prototype.Ae=function(){if(!this.Da){var a=t(function(a){this.Da||(ch(this.G,this.ea,a),lc(this.G,Dj,t(this.ke,this)),this.G.start())},this),b=this.getUrl();if(Jf(b).V.ja("profiling")){var c=new E;c.Oa="blob";c.aa("complete",t(function(){this.Id=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;if(200<=c.getStatus()&&300>c.getStatus())try{var d=URL.createObjectURL(ye(c))}catch(e){}a(d||b)},this));c.gb("ready",t(c.X,c));c.send(b,"GET")}else a(b)}};var Ej=function(){this.P=!1}; v(Ej,z);Ej.prototype.setActive=function(a){this.P=a};Ej.prototype.wd=function(){return this.P};var zj=function(a,b){Xg.call(this,a,b)};v(zj,Xg);zj.prototype.jc=function(){return new Ej};zj.prototype.sb=function(a){a.X()};zj.prototype.Fc=function(a){return!a.Y&&!a.wd()};var Z=function(a,b,c,d,e){ih.call(this,a,b,c,d,e);this.minZoom=d.minZoom||0;this.maxZoom=d.maxZoom||20;if(!window.google||!window.google.maps)throw Error("Google Maps API hasn't been initialized.");this.tileSize=d.tileSize||new google.maps.Size(256,256);this.name=d.name;this.Rc=new H;this.Gc=1;this.L=e||null};v(Z,ih);u("ee.MapLayerOverlay",Z);Z.prototype.cc=function(a){return mc(this,"tileevent",a)};Z.prototype.addTileCallback=Z.prototype.cc;Z.prototype.Jc=function(a){uc(a)}; Z.prototype.removeTileCallback=Z.prototype.Jc;Z.prototype.getTile=function(a,b,c){if(ba.y||a.y>=1<