(function() {var h,aa=aa||{},l=this,m=function(a){return void 0!==a},ba=function(){},ca=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!= typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},n=function(a){return"array"==ca(a)},da=function(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length},p=function(a){return"string"==typeof a},q=function(a){return"number"==typeof a},r=function(a){return"function"==ca(a)},t=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},ea="closure_uid_"+ (1E9*Math.random()>>>0),fa=0,ga=function(a,b,c){return a.call.apply(a.bind,arguments)},ha=function(a,b,c){if(!a)throw Error();if(2")&&(a=a.replace(Da,">"));-1!=a.indexOf('"')&&(a=a.replace(Ea,"""));-1!=a.indexOf("'")&& (a=a.replace(Fa,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(Ga,"�"));return a},Ba=/&/g,Ca=//g,Ea=/"/g,Fa=/'/g,Ga=/\x00/g,Aa=/[\x00&<>"']/,Ia=function(a,b){return ab?1:0};var Ja=function(a,b){b.unshift(a);y.call(this,ya.apply(null,b));b.shift()};x(Ja,y);Ja.prototype.name="AssertionError"; var Ka=function(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);throw new Ja(""+e,f||[]);},z=function(a,b,c){a||Ka("",null,b,Array.prototype.slice.call(arguments,2));return a},La=function(a,b){throw new Ja("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},Ma=function(a,b,c){r(a)||Ka("Expected function but got %s: %s.",[ca(a),a],b,Array.prototype.slice.call(arguments,2))};var Na=Array.prototype.indexOf?function(a,b,c){z(null!=a.length);return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(p(a))return p(b)&&1==b.length?a.indexOf(b,c):-1;for(;cc&&(c=Math.max(0,a.length+c));if(p(a))return p(b)&&1== b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},Pa=Array.prototype.forEach?function(a,b,c){z(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=p(a)?a.split(""):a,f=0;fb?null:p(a)?a.charAt(b):a[b]},Wa=function(a){if(!n(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},Ya=function(a,b){var c=Na(a,b),d;(d=0<=c)&&Xa(a,c);return d},Xa=function(a,b){z(null!=a.length); Array.prototype.splice.call(a,b,1)},Za=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)},$a=function(a){var b=a.length;if(0=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a, b,c)},cb=function(a){for(var b={},c=0,d=0;dparseFloat(a))?String(b):a}(),xb={},yb=function(a){var b;if(!(b=xb[a])){b=0;for(var c=za(String(wb)).split("."),d=za(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f");c=c.join("")}c=a.createElement(c);d&&(p(d)?c.className=d:n(d)?c.className=d.join(" "):Eb(c,d));2=b.Ab&&b.cancel())}this.yc?this.yc.call(this.kc,this):this.Zb=!0;this.oa||rc(this,new sc)}};qc.prototype.ic=function(a,b){this.zb=!1;tc(this,a,b)}; var tc=function(a,b,c){a.oa=!0;a.W=c;a.Ea=!b;uc(a)},wc=function(a){if(a.oa){if(!a.Zb)throw new vc;a.Zb=!1}},rc=function(a,b){wc(a);xc(b);tc(a,!1,b)},xc=function(a){z(!(a instanceof qc),"An execution sequence may not be initiated with a blocking Deferred.")},yc=function(a,b,c){z(!a.fc,"Blocking Deferreds can not be re-used");a.nb.push([b,c,void 0]);a.oa&&uc(a)}; qc.prototype.then=function(a,b,c){var d,e,f=new cc(function(a,b){d=a;e=b});yc(this,d,function(a){a instanceof sc?f.cancel():e(a)});return f.then(a,b,c)};Zb(qc); var zc=function(a){return Sa(a.nb,function(a){return r(a[1])})},uc=function(a){if(a.sb&&a.oa&&zc(a)){var b=a.sb,c=Ac[b];c&&(l.clearTimeout(c.V),delete Ac[b]);a.sb=0}a.h&&(a.h.Ab--,delete a.h);for(var b=a.W,d=c=!1;a.nb.length&&!a.zb;){var e=a.nb.shift(),f=e[0],g=e[1],e=e[2];if(f=a.Ea?g:f)try{var k=f.call(e||a.kc,b);m(k)&&(a.Ea=a.Ea&&(k==b||k instanceof Error),a.W=b=k);if($b(b)||"function"===typeof l.Promise&&b instanceof l.Promise)d=!0,a.zb=!0}catch(w){b=w,a.Ea=!0,zc(a)||(c=!0)}}a.W=b;d&&(k=u(a.ic, a,!0),d=u(a.ic,a,!1),b instanceof qc?(yc(b,k,d),b.fc=!0):b.then(k,d));c&&(b=new Bc(b),Ac[b.V]=b,a.sb=b.V)},vc=function(){y.call(this)};x(vc,y);vc.prototype.message="Deferred has already fired";vc.prototype.name="AlreadyCalledError";var sc=function(){y.call(this)};x(sc,y);sc.prototype.message="Deferred was canceled";sc.prototype.name="CanceledError";var Bc=function(a){this.V=l.setTimeout(u(this.Ld,this),0);this.Wa=a}; Bc.prototype.Ld=function(){z(Ac[this.V],"Cannot throw an error that is not scheduled.");delete Ac[this.V];throw this.Wa;};var Ac={};var Gc=function(a){var b={},c=b.document||document,d=document.createElement("SCRIPT"),e={Fc:d,Ma:void 0},f=new qc(Cc,e),g=null,k=null!=b.timeout?b.timeout:5E3;0=a.keyCode)a.keyCode=-1}catch(b){}};var Nc="closure_listenable_"+(1E6*Math.random()|0),Oc=function(a){return!(!a||!a[Nc])},Pc=0;var Qc=function(a,b,c,d,e){this.listener=a;this.jb=null;this.src=b;this.type=c;this.Ta=!!d;this.$a=e;this.key=++Pc;this.ta=this.Sa=!1},Rc=function(a){a.ta=!0;a.listener=null;a.jb=null;a.src=null;a.$a=null};var Sc=function(a){this.src=a;this.A={};this.Na=0};Sc.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.A[f];a||(a=this.A[f]=[],this.Na++);var g=Tc(a,b,d,e);-1e.keyCode||void 0!=e.returnValue)){a:{var f=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(w){f=!0}if(f||void 0==e.returnValue)e.returnValue=!0}e=[];for(f=c.currentTarget;f;f=f.parentNode)e.push(f);for(var f=a.type,g=e.length-1;!c.sa&&0<=g;g--){c.currentTarget=e[g];var k=id(e[g],f,!0,c),d=d&&k}for(g=0;!c.sa&&g>>0),Zc=function(a){z(a,"Listener can not be null.");if(r(a))return a;z(a.handleEvent,"An object listener must have handleEvent method.");a[jd]||(a[jd]=function(b){return a.handleEvent(b)});return a[jd]};var C=function(){Hc.call(this);this.O=new Sc(this);this.Oc=this;this.Wb=null};x(C,Hc);C.prototype[Nc]=!0;h=C.prototype;h.addEventListener=function(a,b,c,d){Yc(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){fd(this,a,b,c,d)}; h.dispatchEvent=function(a){kd(this);var b,c=this.Wb;if(c){b=[];for(var d=1;c;c=c.Wb)b.push(c),z(1E3>++d,"infinite loop")}c=this.Oc;d=a.type||a;if(p(a))a=new Ic(a,c);else if(a instanceof Ic)a.target=a.target||c;else{var e=a;a=new Ic(d,c);wa(a,e)}var e=!0,f;if(b)for(var g=b.length-1;!a.sa&&0<=g;g--)f=a.currentTarget=b[g],e=ld(f,d,!0,a)&&e;a.sa||(f=a.currentTarget=c,e=ld(f,d,!0,a)&&e,a.sa||(e=ld(f,d,!1,a)&&e));if(b)for(g=0;!a.sa&&g=a.length)throw md;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},pd=function(a,b){if(da(a))try{Pa(a,b,void 0)}catch(c){if(c!==md)throw c;}else{a=od(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==md)throw c;}}};var qd=function(a,b){this.j={};this.c=[];this.Oa=this.f=0;var c=arguments.length;if(12*this.f&&rd(this),!0):!1};var rd=function(a){if(a.f!=a.c.length){for(var b=0,c=0;b=d.c.length)throw md;var e=d.c[b++];return a?e:d.j[e]};return e};var sd=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var td=function(a){if(a.v&&"function"==typeof a.v)return a.v();if(p(a))return a.split("");if(da(a)){for(var b=[],c=a.length,d=0;d=Ed(this).value)for(r(b)&&(b=b()),a=new xd(a,String(b),this.yd),c&&(a.mc=c),c="log:"+a.xd,l.console&&(l.console.timeStamp?l.console.timeStamp(c):l.console.markTimeline&&l.console.markTimeline(c)),l.msWriteProfilerMark&&l.msWriteProfilerMark(c),c=this;c;){b=c;var d=a;if(b.qc)for(var e=0,f=void 0;f=b.qc[e];e++)f(d);c=c.getParent()}}; var Fd={},Gd=null,Hd=function(a){Gd||(Gd=new zd(""),Fd[""]=Gd,Gd.Hc(Cd));var b;if(!(b=Fd[a])){b=new zd(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=Hd(a.substr(0,c));c.oc()[d]=b;b.h=c;Fd[a]=b}return b};var Id=function(a,b){a&&a.log(Dd,b,void 0)};var Jd=function(a,b,c){if(r(a))c&&(a=u(a,c));else if(a&&"function"==typeof a.handleEvent)a=u(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647b)throw Error("Bad port number "+b);a.qa=b}else a.qa=null};he.prototype.getPath=function(){return this.ib};he.prototype.setPath=function(a,b){je(this);this.ib=b?me(a,!0):a;return this}; var le=function(a,b,c){je(a);b instanceof ne?(a.R=b,a.R.Yb(a.I)):(c||(b=oe(b,te)),a.R=new ne(b,0,a.I))},ue=function(a){return a.R},je=function(a){if(a.qd)throw Error("Tried to modify a read-only Uri");};he.prototype.Yb=function(a){this.I=a;this.R&&this.R.Yb(a);return this}; var ve=function(a){return a instanceof he?a.clone():new he(a,void 0)},me=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},oe=function(a,b,c){return p(a)?(a=encodeURI(a).replace(b,we),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},we=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},pe=/[#\/\?@]/g,re=/[\#\?:]/g,qe=/[\#\?]/g,te=/[\#\?@]/g,se=/#/g,ne=function(a,b,c){this.f=this.g=null;this.C=a||null;this.I=!!c},xe=function(a){a.g|| (a.g=new qd,a.f=0,a.C&&Ld(a.C,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=ne.prototype;h.u=function(){xe(this);return this.f};h.add=function(a,b){xe(this);this.C=null;a=ye(this,a);var c=this.g.get(a);c||this.g.set(a,c=[]);c.push(b);this.f++;return this};h.remove=function(a){xe(this);a=ye(this,a);return this.g.X(a)?(this.C=null,this.f-=this.g.get(a).length,this.g.remove(a)):!1};h.clear=function(){this.g=this.C=null;this.f=0};h.isEmpty=function(){xe(this);return 0==this.f}; h.X=function(a){xe(this);a=ye(this,a);return this.g.X(a)};h.K=function(){xe(this);for(var a=this.g.v(),b=this.g.K(),c=[],d=0;db&&(b+=e);return[Me,"map",a.mapid,d,b,c].join("/")+"?token="+a.token});var Re=function(a,b){a=ta(a);return E("/value",F(a),b)};v("ee.data.getValue",Re); var Se=function(a,b){a=ta(a);n(a.size)&&(a.size=a.size.join("x"));var c=F(a).add("getid","1");return E("/thumb",c,b)};v("ee.data.getThumbId",Se);var Te=function(a){return Me+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token};v("ee.data.makeThumbUrl",Te);var Ue=function(a,b){a=ta(a);return E("/download",F(a),b)};v("ee.data.getDownloadId",Ue);var Ve=function(a){return Me+"/api/download?docid="+a.docid+"&token="+a.token};v("ee.data.makeDownloadUrl",Ve); var We=function(a,b){a=ta(a);return E("/table",F(a),b)};v("ee.data.getTableDownloadId",We);var Xe=function(a){return Me+"/api/table?docid="+a.docid+"&token="+a.token};v("ee.data.makeTableDownloadUrl",Xe);var Ze=function(a,b,c){var d=Ye;try{return Ye=a,b.call(c)}finally{Ye=d}};v("ee.data.withProfiling",Ze);v("ee.data.newTaskId",function(a,b){var c={};q(a)&&(c.count=a);return E("/newtaskid",F(c),b)}); v("ee.data.getTaskStatus",function(a,b){if(p(a))a=[a];else if(!n(a))throw Error("Invalid taskId: expected a string or an array of strings.");return E("/taskstatus?q="+a.join(),null,b,"GET")});v("ee.data.getTaskList",function(a){return E("/tasklist",null,a,"GET")});v("ee.data.cancelTask",function(a,b){return $e(a,"CANCEL",b)}); var $e=function(a,b,c){if(p(a))a=[a];else if(!n(a))throw Error("Invalid taskId: expected a string or an array of strings.");var d;a:{d=af;for(var e in d)if(d[e]==b){d=!0;break a}d=!1}if(!d)throw Error("Invalid action: "+b);return E("/updatetask",F({id:a,action:b}),c,"POST")};v("ee.data.updateTask",$e);v("ee.data.prepareValue",function(a,b,c){b=ta(b);b.tid=a;return E("/prepare",F(b),c)});v("ee.data.startProcessing",function(a,b,c){b=ta(b);b.id=a;return E("/processingrequest",F(b),c)}); v("ee.data.startIngestion",function(a,b,c){a={id:a,request:hb(b)};return E("/ingestionrequest",F(a),c)});v("ee.data.getInfo",function(a,b){return E("/info",(new ne).add("id",a),b)});v("ee.data.getList",function(a,b){var c=F(a);return E("/list",c,b)});v("ee.data.getAssetRoots",function(a){return E("/buckets",null,a,"GET")});v("ee.data.createAssetHome",function(a,b){var c=F({id:a});E("/createbucket",c,b)}); v("ee.data.createAsset",function(a,b,c,d){p(a)||(a=hb(a));a={value:a};void 0!==b&&(a.id=b);a.force=c||!1;return E("/create",F(a),d)});v("ee.data.createFolder",function(a,b,c){return E("/createfolder",F({id:a,force:b||!1}),c)});v("ee.data.getAssetAcl",function(a,b){return E("/getacl",F({id:a}),b,"GET")});v("ee.data.setAssetAcl",function(a,b,c){a={id:a,value:hb(b)};E("/setacl",F(a),c)}); var af={Rd:"CANCEL",Ud:"UPDATE"},E=function(a,b,c,d){Oe();var e=Ye,f={"Content-Type":"application/x-www-form-urlencoded"},g=Je();if(null!=g)f.Authorization=g;else if(c&&Boolean(Ge&&ze))return De(function(){Ze(e,function(){E(a,b,c,d)})}),null;g=d||"POST";b=b?b.clone():new ne;e&&b.add("profiling","1");b=Pe(b,a);null!=Ne&&(f["X-XSRF-Token"]=Ne);var k=function(a,b,c,d){var f=b("X-Earth-Engine-Computation-Profile");f&&e&&e(f);var g,k,w;b=(b=b("Content-Type"))?b.replace(/;.*/,""):"application/json";if("application/json"== b||"text/json"==b)try{g=fb(c),k=g.data}catch(H){w="Invalid JSON: "+c}else w="Response was unexpectedly not JSON, but "+b;if(t(g))"error"in g&&"message"in g.error?w=g.error.message:"data"in g||(w="Malformed response: "+c);else if(200>a||300<=a)w="Server returned HTTP code: "+a;if(d)return d(k,w),null;if(!w)return k;throw Error(w);},w=b?b.toString():"";"GET"!=g||/^[\s\xa0]*$/.test(w)||(a+=-1!=a.indexOf("?")?"&":"?",a+=w,w=null);var P=Ke+a;if(c)return Xd(P,function(a){a=a.target;var b=a.getStatus(), d=u(a.getResponseHeader,a),e;try{e=a.a?a.a.responseText:""}catch(f){Id(a.B,"Can not get responseText: "+f.message),e=""}return k(b,d,e,c)},g,w,f),null;var H=Pd();H.open(g,P,!1);ka(f,function(a,b){H.setRequestHeader(b,a)});H.send(w);return k(H.status,function(a){try{return H.getResponseHeader(a)}catch(b){return null}},H.responseText,null)},Ce=function(a){var b=function(){l.gapi.config.update("client/cors",!0);Ge||(Ge=l.gapi.auth.authorize);a()};if(t(l.gapi)&&t(l.gapi.auth)&&r(l.gapi.auth.authorize))b(); else{for(var c=ja().toString(36);c in l;)c+="_";l[c]=function(){delete l[c];b()};Gc("https://apis.google.com/js/client.js?onload="+c)}},Fe=function(a,b,c){c.access_token?(b=c.token_type+" "+c.access_token,isFinite(c.expires_in)&&(c=900*c.expires_in,setTimeout(De,.9*c),He=ja()+c),Be=b,a&&a()):b&&b(c.error||"Unknown error.")},F=function(a){var b=new ne,c;for(c in a)b.set(c,a[c]);return b},Ke=null,Me=null,Ne=null,Pe=db,Be=null,He=null,ze=null,Ae=[],Ge=null,Le=!1,Wd=0,Ye=null;var bf=function(){};var cf=function(){this.S=-1};var df=function(){this.S=-1;this.S=64;this.o=Array(4);this.Sc=Array(this.S);this.qb=this.za=0;this.reset()};x(df,cf);df.prototype.reset=function(){this.o[0]=1732584193;this.o[1]=4023233417;this.o[2]=2562383102;this.o[3]=271733878;this.qb=this.za=0}; var ef=function(a,b,c){c||(c=0);var d=Array(16);if(p(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.o[0];c=a.o[1];var e=a.o[2],f=a.o[3],g=0,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.o[0]=a.o[0]+b&4294967295;a.o[1]=a.o[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;a.o[2]=a.o[2]+e&4294967295;a.o[3]=a.o[3]+f&4294967295}; df.prototype.update=function(a,b){m(b)||(b=a.length);for(var c=b-this.S,d=this.Sc,e=this.za,f=0;fthis.za?this.S:2*this.S)-this.za);a[0]=128;for(var b=1;bb;++b)for(var d=0;32>d;d+=8)a[c++]=this.o[b]>>>d&255;return a};var ff=function(a){this.Pa="__ee_hash__";this.Qb=!1!==a;this.va=[];this.na={};this.dc=[]};v("ee.Serializer",ff);var gf=new gb,hf=new df,kf=function(a,b){return jf(new ff(m(b)?b:!0),a)};v("ee.Serializer.encode",kf);var lf=function(a){return gf.w(kf(a))};v("ee.Serializer.toJSON",lf);var mf=function(a){a=jf(new ff(!1),a);return"JSON"in l?l.JSON.stringify(a,null," "):gf.w(a)};v("ee.Serializer.toReadableJSON",mf); var jf=function(a,b){var c=a.Va(b);a.Qb&&(c=t(c)&&"ValueRef"==c.type&&1==a.va.length?a.va[0][1]:{type:"CompoundValue",scope:a.va,value:c},a.va=[],Pa(a.dc,u(function(a){delete a[this.Pa]},a)),a.dc=[],a.na={});return c}; ff.prototype.Va=function(a){if(!m(a))throw Error("Can't encode an undefined value.");var b,c=t(a)?a[this.Pa]:null;if(this.Qb&&null!=c&&this.na[c])return{type:"ValueRef",value:this.na[c]};if(null===a||"boolean"==typeof a||q(a)||p(a))return a;if(t(a)&&"function"==typeof a.getFullYear)return{type:"Invocation",functionName:"Date",arguments:{value:Math.floor(a.getTime())}};if(a instanceof bf){if(b=a.encode(u(this.Va,this)),!(n(b)||t(b)&&"ArgumentRef"!=b.type))return b}else if(n(a))b=Ra(a,function(a){return this.Va(a)}, this);else if(t(a)&&!r(a))b=na(a,function(a){if(!r(a))return this.Va(a)},this),sa(b,this.Pa),b={type:"Dictionary",value:b};else throw Error("Can't encode object: "+a);if(this.Qb){hf.reset();hf.update(gf.w(b));var c=hf.digest().toString(),d;this.na[c]?d=this.na[c]:(d=String(this.va.length),this.va.push([d,b]),this.na[c]=d);a[this.Pa]=c;this.dc.push(a);return{type:"ValueRef",value:d}}return b};var G=function(a,b,c){if(!(this instanceof G))return I(G,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.b=a;this.i=b;this.m=c||null};x(G,bf);v("ee.ComputedObject",G);G.prototype.D=function(a){return Re({json:this.w()},a)};G.prototype.getInfo=G.prototype.D; G.prototype.encode=function(a){if(null===this.b&&null===this.i)return{type:"ArgumentRef",value:this.m};var b={},c;for(c in this.i)m(this.i[c])&&(b[c]=a(this.i[c]));b={type:"Invocation",arguments:b};a=a(this.b);b[p(a)?"functionName":"function"]=a;return b};G.prototype.w=function(){return lf(this)};G.prototype.serialize=G.prototype.w;G.prototype.toString=function(){return"ee."+this.name()+"("+mf(this)+")"};G.prototype.toString=G.prototype.toString;G.prototype.name=function(){return"ComputedObject"}; G.prototype.Rc=function(a,b){var c=$a(arguments);c[0]=this;a.apply(l,c);return this};G.prototype.aside=G.prototype.Rc;var nf=function(a,b){if(b instanceof a.constructor)return b;var c=function(){};c.prototype=a.constructor.prototype;c=new c;c.b=b.b;c.i=b.i;c.m=b.m;return c},I=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var of={},pf=function(a){return a.prototype instanceof G?a.prototype.name.call(null):a==Number?"Number":a==String?"String":a==Array?"Array":a==Date?"Date":"Object"},qf=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}},rf=function(a){return q(a)|| a instanceof G&&"Number"==a.name()},sf=function(a){return p(a)||a instanceof G&&"String"==a.name()},tf=function(a){return t(a)&&!r(a)?(a=Object.getPrototypeOf(a),null!==a&&null===Object.getPrototypeOf(a)):!1};var J=function(){if(!(this instanceof J))return new J};x(J,bf);v("ee.Function",J);var uf=db;J.prototype.call=function(a){return this.apply(vf(this,Array.prototype.slice.call(arguments,0)))};J.prototype.call=J.prototype.call;J.prototype.apply=function(a){a=new G(this,wf(this,a));return uf(a,this.H().returns)};J.prototype.apply=J.prototype.apply; var xf=function(a,b,c){var d=m(b),e=a.H(),f=!1;if(1==c.length&&tf(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=ta(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=vf(a,d?[b].concat(c):c);return a.apply(c)},wf=function(a,b){for(var c=a.H().args,d={},e={},f=0;f/,"");for(var c=0;c/,"");return new K(b,a)}),a&&a())};a?E("/algorithms",null,c,"GET"):c(E("/algorithms",null,void 0,"GET"))}},M=function(a,b,c,d){Bf();var e=d||"";ka(la,function(d,g){var k=g.split(".");if(2==k.length&&k[0]==b){var k=e+k[1],w=d.H();Af[g]=!0;var P=!1;if(w.args.length)var H= w.args[0].type,P="Object"!=H&&qf(H,c);H=P?a.prototype:a;k in H&&!H[k].signature||(H[k]=function(a){return xf(d,P?this:void 0,Array.prototype.slice.call(arguments,0))},H[k].toString=u(d.toString,d,k,P),H[k].signature=w)}})},N=function(a){var b=function(a){for(var b in a)r(a[b])&&a[b].signature&&delete a[b]};b(a);b(a.prototype)};var O=function(a,b,c){G.call(this,a,b,c);Ff()};x(O,G);v("ee.Element",O);var Gf=!1,Ff=function(){Gf||(M(O,"Element","Element"),Gf=!0)};O.prototype.name=function(){return"Element"}; O.prototype.set=function(a){var b;if(1>=arguments.length){var c=arguments[0];if(b=tf(c))a:{b=pa(c);var d=["properties"];if(da(b)&&da(d)&&b.length==d.length){for(var e=b.length,f=0;fe.length)throw Error("Geometry constructor given extra arguments.");for(var f=0;fb||4/,"");c[e]=!0}var f=l.ee,g;for(g in b)g in c&&!(g in f)&&(f[g]=ch(g),ah.push(g),a[g]?(f[g].signature=a[g],f[g].signature.isConstructor=!0,Af[g]=!0):f[g].signature={});of=f;dh()}catch(k){$g(k);return}Wg="ready";for(Xg=[];0b)return Ya(this.M,a);Xa(this.G,b);return!0}; h.v=function(){for(var a=[],b=this.G.length-1;0<=b;--b)a.push(this.G[b]);for(var c=this.M.length,b=0;bthis.fb)throw Error("[goog.structs.Pool] Min can not be greater than max");this.P=new lh;this.$=new vd;this.Eb=0;this.Rb=null;this.Qa()};x(mh,Hc);h=mh.prototype;h.Xa=function(){var a=ja();if(!(null!=this.Rb&&a-this.Rbthis.fb&&0=a.u()){a=this.L;for(var d=0;d>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};h=oh.prototype; h.remove=function(){var a=this.L,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Wa(a);else{a[0]=a.pop();for(var a=0,b=this.L,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.cc}};h.v=function(){for(var a=this.L,b=[],c=a.length,d=0;da.wd)return!1;a.ec++;kh(a.Z,a.V);setTimeout(u(a.Jd,a),0);return!0}; th.prototype.Jd=function(){if(!this.ya){var a=u(function(a){(a=p(a)?a:a.src)&&(this.Z.Ga[this.V]={src:a,jc:m(void 0)?void 0:null});ed(this.Z,wh,u(this.nd,this));this.Z.start()},this),b=this.getUrl();if(ue(ve(b)).X("profiling")){var c=new D;c.Ka="blob";c.Ja("complete",u(function(){this.Cc=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;var d;try{d=URL.createObjectURL(ge(c))}catch(e){}a(d||b)},this));c.eb("ready",u(c.N,c));c.send(b,"GET")}else a(b)}};var xh=function(){this.J=!1}; x(xh,Hc);xh.prototype.setActive=function(a){this.J=a};xh.prototype.tc=function(){return this.J};var sh=function(a,b){rh.call(this,a,b)};x(sh,rh);sh.prototype.Db=function(){return new xh};sh.prototype.Ua=function(a){a.N()};sh.prototype.Ub=function(a){return!a.Y&&!a.tc()};var Z=function(a,b,c,d,e){C.call(this);this.vd=b;this.Lc=c;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.uc=m(d.uc)?d.uc:!0;this.name=d.name;this.La=[];this.bc=new vd;this.Ic=new vd;this.ac=0;this.url=a;this.Vb=1;this.ra=e||null};x(Z,C);v("ee.MapLayerOverlay",Z);Z.prototype.Pc=function(a){return Yc(this,"tileevent",a)}; Z.prototype.addTileCallback=Z.prototype.Pc;Z.prototype.Gd=function(a){gd(a)};Z.prototype.removeTileCallback=Z.prototype.Gd; Z.prototype.getTile=function(a,b,c){var d=1<a.y||a.y>=d)return a=c.createElement("IMG"),a.style.width="0px",a.style.height="0px",a;c=a.x%d;0>c&&(c+=d);b=[this.vd,b,c,a.y].join("/");a=[this.url,b].join("/")+"?token="+this.Lc;this.ra&&this.ra.isEnabled()&&(a+="&profiling=1&no-cache=1");b=[b,this.ac,this.Lc].join("/");this.ac+=1;d=Gb("div",{id:b});c=(new Date).getTime()/1E3;this.La.push(b);Y.pc().send(b,a,c,u(this.md,this,d,b));this.dispatchEvent(new yh(this.La.length));return d}; Z.prototype.releaseTile=function(a){Y.pc().abort(a.id);this.bc.remove(m(a.firstElementChild)?a.firstElementChild:Jb(a.firstChild));this.Ic.remove(a.id);this.ra&&this.ra.Yd(a.id)};Z.prototype.setOpacity=function(a){this.Vb=a;var b=this.bc.la();pd(b,function(b){eh(b,a)})};Z.prototype.getTile=Z.prototype.getTile;Z.prototype.setOpacity=Z.prototype.setOpacity;Z.prototype.releaseTile=Z.prototype.releaseTile; Z.prototype.md=function(a,b,c,d){"error"==c.type?(Ya(this.La,b),this.Ic.add(b),this.dispatchEvent(c)):(Ya(this.La,b),c.target&&"load"==c.type&&(c=c.target,this.bc.add(c),1!=this.Vb&&eh(c,this.Vb),a.appendChild(c)),this.dispatchEvent(new yh(this.La.length)));this.ra&&null!==d&&this.ra.Vd(b,d)};var yh=function(a){Ic.call(this,"tileevent");this.count=a};x(yh,Ic);})(); //@ sourceMappingURL=ee_api_js.sourcemap