(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){q(a)||Ka("Expected number but got %s: %s.",[ca(a),a],b,Array.prototype.slice.call(arguments,2));return a},Na=function(a,b,c){r(a)||Ka("Expected function but got %s: %s.",[ca(a), a],b,Array.prototype.slice.call(arguments,2))};var Oa=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},Qa=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]},Xa=function(a){if(!n(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},Za=function(a,b){var c=Oa(a,b),d;(d=0<=c)&&Ya(a,c);return d},Ya=function(a,b){z(null!=a.length); Array.prototype.splice.call(a,b,1)},$a=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)},ab=function(a){var b=a.length;if(0=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a, b,c)},db=function(a){for(var b={},c=0,d=0;dparseFloat(qb)){pb=String(sb);break a}}pb=qb} var tb=pb,ub={},vb=function(a){var b;if(!(b=ub[a])){b=0;for(var c=za(String(tb)).split("."),d=za(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f=a.keyCode)a.keyCode=-1}catch(b){}};var Bb="closure_listenable_"+(1E6*Math.random()|0),Cb=function(a){return!(!a||!a[Bb])},Db=0;var Eb=function(a,b,c,d,e){this.listener=a;this.kb=null;this.src=b;this.type=c;this.Ua=!!d;this.ab=e;this.key=++Db;this.ua=this.Ta=!1},Fb=function(a){a.ua=!0;a.listener=null;a.kb=null;a.src=null;a.ab=null};var Gb=function(a){this.src=a;this.A={};this.Oa=0};Gb.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.A[f];a||(a=this.A[f]=[],this.Oa++);var g=Hb(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.ta&&0<=g;g--){c.currentTarget=e[g];var k=Xb(e[g],f,!0,c),d=d&&k}for(g=0;!c.ta&&g>>0),Nb=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[Yb]||(a[Yb]=function(b){return a.handleEvent(b)});return a[Yb]};var Zb=function(){A.call(this);this.O=new Gb(this);this.Uc=this;this.$b=null};x(Zb,A);Zb.prototype[Bb]=!0;h=Zb.prototype;h.addEventListener=function(a,b,c,d){Mb(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){Ub(this,a,b,c,d)}; h.dispatchEvent=function(a){$b(this);var b,c=this.$b;if(c){b=[];for(var d=1;c;c=c.$b)b.push(c),z(1E3>++d,"infinite loop")}c=this.Uc;d=a.type||a;if(p(a))a=new eb(a,c);else if(a instanceof eb)a.target=a.target||c;else{var e=a;a=new eb(d,c);wa(a,e)}var e=!0,f;if(b)for(var g=b.length-1;!a.ta&&0<=g;g--)f=a.currentTarget=b[g],e=ac(f,d,!0,a)&&e;a.ta||(f=a.currentTarget=c,e=ac(f,d,!0,a)&&e,a.ta||(e=ac(f,d,!1,a)&&e));if(b)for(g=0;!a.ta&&g");c=c.join("")}c=a.createElement(c);d&&(p(d)?c.className=d:n(d)?c.className=d.join(" "):Vc(c,d));2=b.Db&&b.cancel())}this.Dc?this.Dc.call(this.oc,this):this.cc=!0;this.pa||dd(this,new ed)}};cd.prototype.mc=function(a,b){this.Cb=!1;fd(this,a,b)}; var fd=function(a,b,c){a.pa=!0;a.W=c;a.Fa=!b;gd(a)},id=function(a){if(a.pa){if(!a.cc)throw new hd;a.cc=!1}};cd.prototype.Eb=function(a){id(this);jd(a);fd(this,!0,a)};var dd=function(a,b){id(a);jd(b);fd(a,!1,b)},jd=function(a){z(!(a instanceof cd),"An execution sequence may not be initiated with a blocking Deferred.")},kd=function(a,b,c){z(!a.jc,"Blocking Deferreds can not be re-used");a.ob.push([b,c,void 0]);a.pa&&gd(a)}; cd.prototype.then=function(a,b,c){var d,e,f=new tc(function(a,b){d=a;e=b});kd(this,d,function(a){a instanceof ed?f.cancel():e(a)});return f.then(a,b,c)};pc(cd); var ld=function(a){return Ta(a.ob,function(a){return r(a[1])})},gd=function(a){if(a.ub&&a.pa&&ld(a)){var b=a.ub,c=md[b];c&&(l.clearTimeout(c.V),delete md[b]);a.ub=0}a.h&&(a.h.Db--,delete a.h);for(var b=a.W,d=c=!1;a.ob.length&&!a.Cb;){var e=a.ob.shift(),f=e[0],g=e[1],e=e[2];if(f=a.Fa?g:f)try{var k=f.call(e||a.oc,b);m(k)&&(a.Fa=a.Fa&&(k==b||k instanceof Error),a.W=b=k);if(qc(b)||"function"===typeof l.Promise&&b instanceof l.Promise)d=!0,a.Cb=!0}catch(w){b=w,a.Fa=!0,ld(a)||(c=!0)}}a.W=b;d&&(k=u(a.mc, a,!0),d=u(a.mc,a,!1),b instanceof cd?(kd(b,k,d),b.jc=!0):b.then(k,d));c&&(b=new nd(b),md[b.V]=b,a.ub=b.V)},hd=function(){y.call(this)};x(hd,y);hd.prototype.message="Deferred has already fired";hd.prototype.name="AlreadyCalledError";var ed=function(){y.call(this)};x(ed,y);ed.prototype.message="Deferred was canceled";ed.prototype.name="CanceledError";var nd=function(a){this.V=l.setTimeout(u(this.Vd,this),0);this.Xa=a}; nd.prototype.Vd=function(){z(md[this.V],"Cannot throw an error that is not scheduled.");delete md[this.V];throw this.Xa;};var md={};var sd=function(a){var b={},c=b.document||document,d=document.createElement("SCRIPT"),e={Lc:d,Na:void 0},f=new cd(od,e),g=null,k=null!=b.timeout?b.timeout:5E3;0=a.length)throw td;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},wd=function(a,b){if(da(a))try{Qa(a,b,void 0)}catch(c){if(c!==td)throw c;}else{a=vd(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==td)throw c;}}};var xd=function(a,b){this.l={};this.f=[];this.Pa=this.c=0;var c=arguments.length;if(12*this.c&&yd(this),!0):!1};var yd=function(a){if(a.c!=a.f.length){for(var b=0,c=0;b=d.f.length)throw td;var e=d.f[b++];return a?e:d.l[e]};return e};var zd=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Ad=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=Ld(this).value)for(r(b)&&(b=b()),a=new Ed(a,String(b),this.Hd),c&&(a.qc=c),c="log:"+a.Gd,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.vc)for(var e=0,f=void 0;f=b.vc[e];e++)f(d);c=c.getParent()}}; var Md={},Nd=null,Od=function(a){Nd||(Nd=new Gd(""),Md[""]=Nd,Nd.Nc(Jd));var b;if(!(b=Md[a])){b=new Gd(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=Od(a.substr(0,c));c.tc()[d]=b;b.h=c;Md[a]=b}return b};var Pd=function(a,b){a&&a.log(Kd,b,void 0)};var Qd=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,Rd=function(a,b){if(a)for(var c=a.split("&"),d=0;db)throw Error("Bad port number "+b);a.ra=b}else a.ra=null};le.prototype.getPath=function(){return this.jb};le.prototype.setPath=function(a,b){ne(this);this.jb=b?qe(a,!0):a;return this};var pe=function(a,b,c){ne(a);b instanceof re?(a.R=b,a.R.bc(a.I)):(c||(b=se(b,xe)),a.R=new re(b,0,a.I))},ne=function(a){if(a.yd)throw Error("Tried to modify a read-only Uri");}; le.prototype.bc=function(a){this.I=a;this.R&&this.R.bc(a);return this}; var ye=function(a){return a instanceof le?a.clone():new le(a,void 0)},qe=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},se=function(a,b,c){return p(a)?(a=encodeURI(a).replace(b,ze),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},ze=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},te=/[#\/\?@]/g,ve=/[\#\?:]/g,ue=/[\#\?]/g,xe=/[\#\?@]/g,we=/#/g,re=function(a,b,c){this.c=this.g=null;this.C=a||null;this.I=!!c},Ae=function(a){a.g|| (a.g=new xd,a.c=0,a.C&&Rd(a.C,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=re.prototype;h.u=function(){Ae(this);return this.c};h.add=function(a,b){Ae(this);this.C=null;a=Be(this,a);var c=this.g.get(a);c||this.g.set(a,c=[]);c.push(b);this.c=Ma(this.c)+1;return this};h.remove=function(a){Ae(this);a=Be(this,a);return this.g.X(a)?(this.C=null,this.c=Ma(this.c)-this.g.get(a).length,this.g.remove(a)):!1};h.clear=function(){this.g=this.C=null;this.c=0}; h.isEmpty=function(){Ae(this);return 0==this.c};h.X=function(a){Ae(this);a=Be(this,a);return this.g.X(a)};h.K=function(){Ae(this);for(var a=this.g.v(),b=this.g.K(),c=[],d=0;db&&(b+=e);return[Pe,"map",a.mapid,d,b,c].join("/")+"?token="+a.token});var Ve=function(a,b){a=ta(a);return E("/value",F(a),b)};v("ee.data.getValue",Ve); var We=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",We);var Xe=function(a){return Pe+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token};v("ee.data.makeThumbUrl",Xe);var Ye=function(a,b){a=ta(a);return E("/download",F(a),b)};v("ee.data.getDownloadId",Ye);var Ze=function(a){return Pe+"/api/download?docid="+a.docid+"&token="+a.token};v("ee.data.makeDownloadUrl",Ze); var $e=function(a,b){a=ta(a);return E("/table",F(a),b)};v("ee.data.getTableDownloadId",$e);var af=function(a){return Pe+"/api/table?docid="+a.docid+"&token="+a.token};v("ee.data.makeTableDownloadUrl",af);var cf=function(a,b,c){var d=bf;try{return bf=a,b.call(c)}finally{bf=d}};v("ee.data.withProfiling",cf);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 df(a,"CANCEL",b)}); var df=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=ef;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",df);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:Nc(b)};return E("/ingestionrequest",F(a),c)});v("ee.data.getInfo",function(a,b){return E("/info",(new re).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=Nc(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.renameAsset",function(a,b,c){E("/rename",F({sourceId:a,destinationId:b}),c)});v("ee.data.copyAsset",function(a,b,c){E("/copy",F({sourceId:a,destinationId:b}),c)});v("ee.data.deleteAsset",function(a,b){E("/delete",F({id:a}),b)}); 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:Nc(b)};E("/setacl",F(a),c)});v("ee.data.setAssetProperties",function(a,b,c){a={id:a,properties:Nc(b)};E("/setproperties",F(a),c)}); var ef={ae:"CANCEL",de:"UPDATE"},E=function(a,b,c,d){Re();var e=bf,f={"Content-Type":"application/x-www-form-urlencoded"},g=Me();if(null!=g)f.Authorization=g;else if(c&&Je&&Ce)return Ge(function(){cf(e,function(){E(a,b,c,d)})}),null;g=d||"POST";b=b?b.clone():new re;e&&b.add("profiling","1");b=Te(b,a);null!=Qe&&(f["X-XSRF-Token"]=Qe);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=Lc(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 Q=Ne+a;if(c)return ff.push({url:Q,Eb:function(a){a=a.target;var b=a.getStatus(), d=u(a.getResponseHeader,a),e;try{e=a.a?a.a.responseText:""}catch(f){Pd(a.B,"Can not get responseText: "+f.message),e=""}return k(b,d,e,c)},method:g,content:w,headers:f}),gf.sc(),null;var H=Vd();H.open(g,Q,!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)},Fe=function(a){var b=function(){l.gapi.config.update("client/cors",!0);Je||(Je=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()};sd("https://apis.google.com/js/client.js?onload="+c)}},Ie=function(a,b,c){c.access_token?(b=c.token_type+" "+c.access_token,isFinite(c.expires_in)&&(c=900*c.expires_in,setTimeout(Ge,.9*c),Ke=ja()+c),Ee=b,a&&a()):b&&b(c.error||"Unknown error.")},F=function(a){var b=new re,c;for(c in a)b.set(c,a[c]);return b},ff=[],gf=new Ic(function(){var a=ff.shift();if(a){var b=a.url,c=a.Eb,d=a.method,e= a.content,a=a.headers,f=Se,g=new D;ae.push(g);c&&g.Ka("complete",c);g.fb("ready",g.bd);f&&(g.ya=Math.max(0,f));g.send(b,d,e,a)}0==ff.length||gf.sc()},350),Ne=null,Pe=null,Qe=null,Te=cc,Ee=null,Ke=null,Ce=null,De=[],Je=null,Oe=!1,Se=0,bf=null;var hf=function(){};var jf=function(){this.S=-1};var kf=function(){this.S=-1;this.S=64;this.s=Array(4);this.Yc=Array(this.S);this.sb=this.Aa=0;this.reset()};x(kf,jf);kf.prototype.reset=function(){this.s[0]=1732584193;this.s[1]=4023233417;this.s[2]=2562383102;this.s[3]=271733878;this.sb=this.Aa=0}; var lf=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.s[0];c=a.s[1];var e=a.s[2],f=a.s[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.s[0]=a.s[0]+b&4294967295;a.s[1]=a.s[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;a.s[2]=a.s[2]+e&4294967295;a.s[3]=a.s[3]+f&4294967295}; kf.prototype.update=function(a,b){m(b)||(b=a.length);for(var c=b-this.S,d=this.Yc,e=this.Aa,f=0;fthis.Aa?this.S:2*this.S)-this.Aa);a[0]=128;for(var b=1;bb;++b)for(var d=0;32>d;d+=8)a[c++]=this.s[b]>>>d&255;return a};var mf=function(a){this.Qa="__ee_hash__";this.Ub=!1!==a;this.wa=[];this.oa={};this.hc=[]};v("ee.Serializer",mf);var nf=new Mc,of=new kf,qf=function(a,b){return pf(new mf(m(b)?b:!0),a)};v("ee.Serializer.encode",qf);var rf=function(a){return nf.w(qf(a))};v("ee.Serializer.toJSON",rf);var sf=function(a){a=pf(new mf(!1),a);return"JSON"in l?l.JSON.stringify(a,null," "):nf.w(a)};v("ee.Serializer.toReadableJSON",sf); var pf=function(a,b){var c=a.Wa(b);a.Ub&&(c=t(c)&&"ValueRef"==c.type&&1==a.wa.length?a.wa[0][1]:{type:"CompoundValue",scope:a.wa,value:c},a.wa=[],Qa(a.hc,u(function(a){delete a[this.Qa]},a)),a.hc=[],a.oa={});return c}; mf.prototype.Wa=function(a){if(!m(a))throw Error("Can't encode an undefined value.");var b,c=t(a)?a[this.Qa]:null;if(this.Ub&&null!=c&&this.oa[c])return{type:"ValueRef",value:this.oa[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 hf){if(b=a.encode(u(this.Wa,this)),!(n(b)||t(b)&&"ArgumentRef"!=b.type))return b}else if(n(a))b=Sa(a,function(a){return this.Wa(a)}, this);else if(t(a)&&!r(a))b=na(a,function(a){if(!r(a))return this.Wa(a)},this),sa(b,this.Qa),b={type:"Dictionary",value:b};else throw Error("Can't encode object: "+a);if(this.Ub){of.reset();of.update(nf.w(b));var c=of.digest().toString(),d;this.oa[c]?d=this.oa[c]:(d=String(this.wa.length),this.wa.push([d,b]),this.oa[c]=d);a[this.Qa]=c;this.hc.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.j=b;this.o=c||null};x(G,hf);v("ee.ComputedObject",G);G.prototype.D=function(a){return Ve({json:this.w()},a)};G.prototype.getInfo=G.prototype.D; G.prototype.encode=function(a){if(null===this.b&&null===this.j)return{type:"ArgumentRef",value:this.o};var b={},c;for(c in this.j)m(this.j[c])&&(b[c]=a(this.j[c]));b={type:"Invocation",arguments:b};a=a(this.b);b[p(a)?"functionName":"function"]=a;return b};G.prototype.w=function(){return rf(this)};G.prototype.serialize=G.prototype.w;G.prototype.toString=function(){return"ee."+this.name()+"("+sf(this)+")"};G.prototype.toString=G.prototype.toString;G.prototype.name=function(){return"ComputedObject"}; G.prototype.Xc=function(a,b){var c=ab(arguments);c[0]=this;a.apply(l,c);return this};G.prototype.aside=G.prototype.Xc;var tf=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.j=b.j;c.o=b.o;return c},I=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var uf={},vf=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"},wf=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}},xf=function(a){return q(a)|| a instanceof G&&"Number"==a.name()},yf=function(a){return p(a)||a instanceof G&&"String"==a.name()},zf=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,hf);v("ee.Function",J);var Af=cc;J.prototype.call=function(a){return this.apply(Bf(this,Array.prototype.slice.call(arguments,0)))};J.prototype.call=J.prototype.call;J.prototype.apply=function(a){a=new G(this,Cf(this,a));return Af(a,this.F().returns)};J.prototype.apply=J.prototype.apply; var Df=function(a,b,c){var d=m(b),e=a.F(),f=!1;if(1==c.length&&zf(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=Bf(a,d?[b].concat(c):c);return a.apply(c)},Cf=function(a,b){for(var c=a.F().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){Hf();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.F();Gf[g]=!0;var Q=!1;if(w.args.length)var H= w.args[0].type,Q="Object"!=H&&wf(H,c);H=Q?a.prototype:a;k in H&&!H[k].signature||(H[k]=function(a){return Df(d,Q?this:void 0,Array.prototype.slice.call(arguments,0))},H[k].toString=u(d.toString,d,k,Q),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);Lf()};x(O,G);v("ee.Element",O);var Mf=!1,Lf=function(){Mf||(M(O,"Element","Element"),Mf=!0)};O.prototype.name=function(){return"Element"}; O.prototype.set=function(a){var b;if(1>=arguments.length){var c=arguments[0];if(b=zf(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]=ih(g),gh.push(g),a[g]?(f[g].signature=a[g],f[g].signature.isConstructor=!0,Gf[g]=!0):f[g].signature={});uf=f;jh()}catch(k){fh(k);return}bh="ready";for(ch=[];0b)return Za(this.M,a);Ya(this.H,b);return!0}; h.v=function(){for(var a=[],b=this.H.length-1;0<=b;--b)a.push(this.H[b]);for(var c=this.M.length,b=0;bthis.gb)throw Error("[goog.structs.Pool] Min can not be greater than max");this.P=new rh;this.$=new Cd;this.Ib=0;this.Vb=null;this.Ra()};x(sh,A);h=sh.prototype;h.Ya=function(){var a=ja();if(!(null!=this.Vb&&a-this.Vbthis.gb&&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=uh.prototype; h.remove=function(){var a=this.L,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Xa(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.gc}};h.v=function(){for(var a=this.L,b=[],c=a.length,d=0;da.Fd)return!1;a.ic++;qh(a.Z,a.V);setTimeout(u(a.Td,a),0);return!0}; zh.prototype.Td=function(){if(!this.ma){var a=u(function(a){this.ma||((a=p(a)?a:a.src)&&(this.Z.Ha[this.V]={src:a,nc:m(void 0)?void 0:null}),Tb(this.Z,Ch,u(this.ud,this)),this.Z.start())},this),b=this.getUrl();if(ye(b).R.X("profiling")){var c=new D;c.La="blob";c.Ka("complete",u(function(){this.Ic=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;var d;try{d=URL.createObjectURL(ke(c))}catch(e){}a(d||b)},this));c.fb("ready",u(c.N,c));c.send(b,"GET")}else a(b)}}; var Dh=function(){this.J=!1};x(Dh,A);Dh.prototype.setActive=function(a){this.J=a};Dh.prototype.yc=function(){return this.J};var yh=function(a,b){xh.call(this,a,b)};x(yh,xh);yh.prototype.Hb=function(){return new Dh};yh.prototype.Va=function(a){a.N()};yh.prototype.Yb=function(a){return!a.Y&&!a.yc()};var Z=function(a,b,c,d,e){Zb.call(this);this.Ed=b;this.Rc=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.zc=m(d.zc)?d.zc:!0;this.name=d.name;this.Ma=[];this.fc=new Cd;this.Oc=new Cd;this.ec=0;this.url=a;this.Zb=1;this.sa=e||null};x(Z,Zb);v("ee.MapLayerOverlay",Z);Z.prototype.Vc=function(a){return Mb(this,"tileevent",a)}; Z.prototype.addTileCallback=Z.prototype.Vc;Z.prototype.Qd=function(a){Vb(a)};Z.prototype.removeTileCallback=Z.prototype.Qd; 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.Ed,b,c,a.y].join("/");a=[this.url,b].join("/")+"?token="+this.Rc;this.sa&&this.sa.isEnabled()&&(a+="&profiling=1");b=[b,this.ec,this.Rc].join("/");this.ec+=1;d=Xc("div",{id:b});c=(new Date).getTime()/1E3;this.Ma.push(b);Y.uc().send(b,a,c,u(this.td,this,d,b));this.dispatchEvent(new Eh(this.Ma.length));return d}; Z.prototype.releaseTile=function(a){Y.uc().abort(a.id);this.fc.remove(m(a.firstElementChild)?a.firstElementChild:$c(a.firstChild));""!==a.id&&(this.Oc.remove(a.id),this.sa&&this.sa.ie(a.id))};Z.prototype.setOpacity=function(a){this.Zb=a;var b=this.fc.la();wd(b,function(b){kh(b,a)})};Z.prototype.getTile=Z.prototype.getTile;Z.prototype.setOpacity=Z.prototype.setOpacity;Z.prototype.releaseTile=Z.prototype.releaseTile; Z.prototype.td=function(a,b,c,d){"error"==c.type?(Za(this.Ma,b),this.Oc.add(b),this.dispatchEvent(c)):(Za(this.Ma,b),c.target&&"load"==c.type&&(c=c.target,this.fc.add(c),1!=this.Zb&&kh(c,this.Zb),a.appendChild(c)),this.dispatchEvent(new Eh(this.Ma.length)));this.sa&&null!==d&&this.sa.fe(b,d)};var Eh=function(a){eb.call(this,"tileevent");this.count=a};x(Eh,eb);})(); //@ sourceMappingURL=ee_api_js.sourcemap