(function(){var h,aa=function(a){var b=0;return function(){return bc&&(c=Math.max(c+e,0));c>>0),za=0,Aa=function(a,b,c){return a.call.apply(a.bind,arguments)},Ba=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},Qa=Array.prototype.forEach?function(a,b,c){A(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]},Ya=function(a,b){return 0<=Oa(a,b)},Za=function(a){if(!q(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},ab= function(a,b){b=Oa(a,b);var c;(c=0<=b)&&$a(a,b);return c},$a=function(a,b){A(null!=a.length);Array.prototype.splice.call(a,b,1)},bb=function(a){return Array.prototype.concat.apply([],arguments)},cb=function(a){var b=a.length;if(0=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},fb=function(a){for(var b={},c=0,d=0;d")&&(a=a.replace(lb,">"));-1!=a.indexOf('"')&&(a=a.replace(mb,"""));-1!= a.indexOf("'")&&(a=a.replace(nb,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(ob,"�"));return a},jb=/&/g,kb=//g,mb=/"/g,nb=/'/g,ob=/\x00/g,ib=/[\x00&<>"']/,qb=function(a,b){return ab?1:0},rb=function(a){var b=1;a=a.split(":");for(var c=[];0parseFloat(Vb)){Ub=String(Xb);break a}}Ub=Vb} var Yb=Ub,Mb={},Zb=function(a){return Nb(a,function(){for(var b=0,c=hb(String(Yb)).split("."),d=hb(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f=a.keyCode)a.keyCode=-1}catch(b){}};var hc="closure_listenable_"+(1E6*Math.random()|0),ic=function(a){return!(!a||!a[hc])},jc=0;var kc=function(a,b,c,d,e){this.listener=a;this.ac=null;this.src=b;this.type=c;this.capture=!!d;this.na=e;this.key=++jc;this.$a=this.Ib=!1},lc=function(a){a.$a=!0;a.listener=null;a.ac=null;a.src=null;a.na=null};var mc=function(a){this.src=a;this.G={};this.Eb=0};mc.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.G[f];a||(a=this.G[f]=[],this.Eb++);var g=nc(a,b,d,e);-1c.keyCode||void 0!=c.returnValue)){a:{var e=!1;if(0==c.keyCode)try{c.keyCode= -1;break a}catch(g){e=!0}if(e||void 0==c.returnValue)c.returnValue=!0}c=[];for(e=b.currentTarget;e;e=e.parentNode)c.push(e);a=a.type;for(e=c.length-1;!b.Ha&&0<=e;e--){b.currentTarget=c[e];var f=Ec(c[e],a,!0,b);d=d&&f}for(e=0;!b.Ha&&e>>0),uc=function(a){A(a,"Listener can not be null.");if(t(a))return a;A(a.handleEvent, "An object listener must have handleEvent method.");a[Fc]||(a[Fc]=function(b){return a.handleEvent(b)});return a[Fc]};var B=function(){y.call(this);this.Z=new mc(this);this.te=this;this.Yc=null};x(B,y);B.prototype[hc]=!0;h=B.prototype;h.addEventListener=function(a,b,c,d){tc(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){Ac(this,a,b,c,d)}; h.dispatchEvent=function(a){Gc(this);var b=this.Yc;if(b){var c=[];for(var d=1;b;b=b.Yc)c.push(b),A(1E3>++d,"infinite loop")}b=this.te;d=a.type||a;if(n(a))a=new z(a,b);else if(a instanceof z)a.target=a.target||b;else{var e=a;a=new z(d,b);Kb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.Ha&&0<=f;f--){var g=a.currentTarget=c[f];e=Hc(g,d,!0,a)&&e}a.Ha||(g=a.currentTarget=b,e=Hc(g,d,!0,a)&&e,a.Ha||(e=Hc(g,d,!1,a)&&e));if(c)for(f=0;!a.Ha&&f=a.length)throw Jc;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},Mc=function(a,b){if(wa(a))try{Qa(a,b,void 0)}catch(c){if(c!==Jc)throw c;}else{a=Lc(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==Jc)throw c;}}};var C=function(a,b){this.s={};this.j=[];this.Fb=this.l=0;var c=arguments.length;if(12*this.l&&Nc(this),!0):!1};var Nc=function(a){if(a.l!=a.j.length){for(var b=0,c=0;b=d.j.length)throw Jc;var e=d.j[b++];return a?e:d.s[e]};return e};var Oc=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Qc=function(a){if(a.m&&"function"==typeof a.m)a=a.m();else if(wa(a)||n(a))a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},Rc=function(a){if(a.w&&"function"==typeof a.w)return a.w();if(n(a))return a.split("");if(wa(a)){for(var b=[],c=a.length,d=0;dc)return!1;!(b instanceof D)&&5e&&(e+=d);return[a.Re,c,e,b.y].join("/")};Zc.prototype.Kc=function(){return this.za.length};var ad=function(a){z.call(this,"tileevent");this.count=a};x(ad,z);var bd={kind:"discovery#restDescription",name:"earthengine",version:"v1",rootUrl:"https://earthengine.googleapis.com/",servicePath:"",batchPath:"batch",id:"earthengine:v1",parameters:{"$.xgafv":{location:"query",required:!1},access_token:{location:"query",required:!1},alt:{location:"query",required:!1},callback:{location:"query",required:!1},fields:{location:"query",required:!1},key:{location:"query",required:!1},oauth_token:{location:"query",required:!1},prettyPrint:{location:"query",required:!1}, quotaUser:{location:"query",required:!1},uploadType:{location:"query",required:!1},upload_protocol:{location:"query",required:!1}},resources:{algorithms:{methods:{list:{id:"earthengine.algorithms.list",path:"v1/algorithms",httpMethod:"GET"}}},assets:{methods:{copy:{id:"earthengine.assets.copy",path:"v1/{+sourceName}:copy",httpMethod:"POST",request:{$ref:"CopyAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}},create:{id:"earthengine.assets.create",path:"v1/assets",httpMethod:"POST", request:{$ref:"EarthEngineAsset"},parameters:{parent:{location:"query",required:!1},assetId:{location:"query",required:!1},overwrite:{location:"query",required:!1}}},"delete":{id:"earthengine.assets.delete",path:"v1/{+name}",httpMethod:"DELETE",parameters:{name:{location:"path",required:!0}}},get:{id:"earthengine.assets.get",path:"v1/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0},path:{location:"query",required:!1}}},getPixels:{id:"earthengine.assets.getPixels",path:"v1/{+name}:getPixels", httpMethod:"POST",request:{$ref:"GetPixelsRequest"},parameters:{name:{location:"path",required:!0}}},ingestImage:{id:"earthengine.assets.ingestImage",path:"v1/assets:ingestImage",httpMethod:"POST",request:{$ref:"IngestImageRequest"}},ingestTable:{id:"earthengine.assets.ingestTable",path:"v1/assets:ingestTable",httpMethod:"POST",request:{$ref:"IngestTableRequest"}},list:{id:"earthengine.assets.list",path:"v1/{+name}:list",httpMethod:"GET",parameters:{name:{location:"path",required:!0},parentPath:{location:"query", required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1}}},listFeatures:{id:"earthengine.assets.listFeatures",path:"v1/{+name}:listFeatures",httpMethod:"GET",parameters:{name:{location:"path",required:!0},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1},region:{location:"query",required:!1},filter:{location:"query",required:!1}}},listImages:{id:"earthengine.assets.listImages",path:"v1/{+name}:listImages",httpMethod:"GET",parameters:{name:{location:"path", required:!0},parentPath:{location:"query",required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1},startTime:{location:"query",required:!1},endTime:{location:"query",required:!1},region:{location:"query",required:!1},filter:{location:"query",required:!1},view:{location:"query",required:!1}}},move:{id:"earthengine.assets.move",path:"v1/{+sourceName}:move",httpMethod:"POST",request:{$ref:"MoveAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}}, patch:{id:"earthengine.assets.patch",path:"v1/{+name}",httpMethod:"PATCH",request:{$ref:"UpdateAssetRequest"},parameters:{name:{location:"path",required:!0}}}}},filmstrips:{methods:{create:{id:"earthengine.filmstrips.create",path:"v1/filmstrips",httpMethod:"POST",request:{$ref:"Filmstrip"}},getPixels:{id:"earthengine.filmstrips.getPixels",path:"v1/{+name}:getPixels",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}}}},maps:{methods:{create:{id:"earthengine.maps.create",path:"v1/maps", httpMethod:"POST",request:{$ref:"EarthEngineMap"}}},resources:{tiles:{methods:{get:{id:"earthengine.maps.tiles.get",path:"v1/{+parent}/tiles/{zoom}/{x}/{y}",httpMethod:"GET",parameters:{parent:{location:"path",required:!0},zoom:{location:"path",required:!0},x:{location:"path",required:!0},y:{location:"path",required:!0}}}}}}},operations:{methods:{cancel:{id:"earthengine.operations.cancel",path:"v1/{+name}:cancel",httpMethod:"POST",request:{$ref:"CancelOperationRequest"},parameters:{name:{location:"path", required:!0}}},"delete":{id:"earthengine.operations.delete",path:"v1/{+name}",httpMethod:"DELETE",parameters:{name:{location:"path",required:!0}}},get:{id:"earthengine.operations.get",path:"v1/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}},list:{id:"earthengine.operations.list",path:"v1/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0},filter:{location:"query",required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1}}}}}, projects:{methods:{},resources:{assets:{methods:{copy:{id:"earthengine.projects.assets.copy",path:"v1/{+sourceName}:copy",httpMethod:"POST",request:{$ref:"CopyAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}},create:{id:"earthengine.projects.assets.create",path:"v1/{+parent}/assets",httpMethod:"POST",request:{$ref:"EarthEngineAsset"},parameters:{parent:{location:"path",required:!0},assetId:{location:"query",required:!1},overwrite:{location:"query",required:!1}}},"delete":{id:"earthengine.projects.assets.delete", path:"v1/{+name}",httpMethod:"DELETE",parameters:{name:{location:"path",required:!0}}},get:{id:"earthengine.projects.assets.get",path:"v1/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0},path:{location:"query",required:!1}}},getIamPolicy:{id:"earthengine.projects.assets.getIamPolicy",path:"v1/{+resource}:getIamPolicy",httpMethod:"POST",request:{$ref:"GetIamPolicyRequest"},parameters:{resource:{location:"path",required:!0}}},getPixels:{id:"earthengine.projects.assets.getPixels", path:"v1/{+name}:getPixels",httpMethod:"POST",request:{$ref:"GetPixelsRequest"},parameters:{name:{location:"path",required:!0}}},list:{id:"earthengine.projects.assets.list",path:"v1/{+name}:list",httpMethod:"GET",parameters:{name:{location:"path",required:!0},parentPath:{location:"query",required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1}}},listFeatures:{id:"earthengine.projects.assets.listFeatures",path:"v1/{+name}:listFeatures",httpMethod:"GET",parameters:{name:{location:"path", required:!0},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1},region:{location:"query",required:!1},filter:{location:"query",required:!1}}},listImages:{id:"earthengine.projects.assets.listImages",path:"v1/{+name}:listImages",httpMethod:"GET",parameters:{name:{location:"path",required:!0},parentPath:{location:"query",required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1},startTime:{location:"query",required:!1},endTime:{location:"query", required:!1},region:{location:"query",required:!1},filter:{location:"query",required:!1},view:{location:"query",required:!1}}},move:{id:"earthengine.projects.assets.move",path:"v1/{+sourceName}:move",httpMethod:"POST",request:{$ref:"MoveAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}},patch:{id:"earthengine.projects.assets.patch",path:"v1/{+name}",httpMethod:"PATCH",request:{$ref:"UpdateAssetRequest"},parameters:{name:{location:"path",required:!0}}},setIamPolicy:{id:"earthengine.projects.assets.setIamPolicy", path:"v1/{+resource}:setIamPolicy",httpMethod:"POST",request:{$ref:"SetIamPolicyRequest"},parameters:{resource:{location:"path",required:!0}}},testIamPermissions:{id:"earthengine.projects.assets.testIamPermissions",path:"v1/{+resource}:testIamPermissions",httpMethod:"POST",request:{$ref:"TestIamPermissionsRequest"},parameters:{resource:{location:"path",required:!0}}}}}}},thumbnails:{methods:{create:{id:"earthengine.thumbnails.create",path:"v1/thumbnails",httpMethod:"POST",request:{$ref:"Thumbnail"}}, getPixels:{id:"earthengine.thumbnails.getPixels",path:"v1/{+name}:getPixels",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}}}},v1:{methods:{computeImage:{id:"earthengine.computeImage",path:"v1:computeImage",httpMethod:"POST",request:{$ref:"ComputeImageRequest"}},computeTable:{id:"earthengine.computeTable",path:"v1:computeTable",httpMethod:"POST",request:{$ref:"ComputeTableRequest"}},computeValue:{id:"earthengine.computeValue",path:"v1:computeValue",httpMethod:"POST",request:{$ref:"ComputeValueRequest"}}, exportImage:{id:"earthengine.exportImage",path:"v1:exportImage",httpMethod:"POST",request:{$ref:"ExportImageRequest"}},exportMap:{id:"earthengine.exportMap",path:"v1:exportMap",httpMethod:"POST",request:{$ref:"ExportMapRequest"}},exportTable:{id:"earthengine.exportTable",path:"v1:exportTable",httpMethod:"POST",request:{$ref:"ExportTableRequest"}},exportVideo:{id:"earthengine.exportVideo",path:"v1:exportVideo",httpMethod:"POST",request:{$ref:"ExportVideoRequest"}},exportVideoMap:{id:"earthengine.exportVideoMap", path:"v1:exportVideoMap",httpMethod:"POST",request:{$ref:"ExportVideoMapRequest"}},ingestImage:{id:"earthengine.ingestImage",path:"v1:ingestImage",httpMethod:"POST",request:{$ref:"IngestImageRequest"}},ingestTable:{id:"earthengine.ingestTable",path:"v1:ingestTable",httpMethod:"POST",request:{$ref:"IngestTableRequest"}},listBuckets:{id:"earthengine.listBuckets",path:"v1:listBuckets",httpMethod:"GET"}}}},methods:{}};var cd=function(){},dd=function(a){return{constantValue:a}},ed=function(a){return{valueReference:a}},fd=function(a,b){return{functionInvocationValue:{functionName:a,arguments:b}}},gd=function(a,b){return{functionInvocationValue:{arguments:b,functionReference:a}}},hd=function(a,b){return{functionDefinitionValue:{argumentNames:a,body:b}}},id=function(a){if(!a)return"AUTO_PNG_JPEG";a=a.toUpperCase();return"JPG"===a?"JPEG":"AUTO"===a?"AUTO_PNG_JPEG":"GEOTIFF"===a?"GEO_TIFF":"TFRECORD"===a?"TF_RECORD_IMAGE": a},jd=function(a){if(!a)return[];if(n(a))return a.split(",");if(q(a))return a;throw Error("Invalid band list "+a);},md=function(a){var b={};if("palette"in a){var c=a.palette;b.paletteColors=n(c)?c.split(","):c}c=[];if("gain"in a||"bias"in a){if("min"in a||"max"in a)throw Error("Gain and bias can't be specified with min and max");var d=b.paletteColors?b.paletteColors.length-1:255;c=kd(a,"bias","gain").map(function(a){var b=-a.bias/a.gain;return{min:b,max:d/a.gain+b}})}else if("min"in a||"max"in a)c= kd(a,"min","max");0!==c.length&&(b.ranges=c);a=ld(a.gamma);if(1e;++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.F[0];c=a.F[1];e=a.F[2];var f=a.F[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.F[0]=a.F[0]+b&4294967295;a.F[1]=a.F[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;a.F[2]=a.F[2]+e&4294967295;a.F[3]=a.F[3]+f&4294967295}; od.prototype.update=function(a,b){m(b)||(b=a.length);for(var c=b-this.ka,d=this.we,e=this.gb,f=0;fthis.gb?this.ka:2*this.ka)-this.gb);a[0]=128;for(var b=1;bb;++b)for(var d=0;32>d;d+=8)a[c++]=this.F[b]>>>d&255;return a};var rd=function(a){return(new qd(void 0)).D(a)},qd=function(a){this.cc=a};qd.prototype.D=function(a){var b=[];sd(this,a,b);return b.join("")}; var sd=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(q(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f");c=c.join("")}c=a.createElement(c);d&&(n(d)?c.className=d:q(d)?c.className=d.join(" "):Te(c,d));2=b.xc&&b.cancel())}this.Wd?this.Wd.call(this.zd,this):this.cd=!0;this.Ua||df(this,new ef(this))}};cf.prototype.vd=function(a,b){this.wc=!1;ff(this,a,b)}; var ff=function(a,b,c){a.Ua=!0;a.T=c;a.qb=!b;gf(a)},jf=function(a){if(a.Ua){if(!a.cd)throw new hf(a);a.cd=!1}};cf.prototype.callback=function(a){jf(this);kf(a);ff(this,!0,a)};var df=function(a,b){jf(a);kf(b);ff(a,!1,b)},kf=function(a){A(!(a instanceof cf),"An execution sequence may not be initiated with a blocking Deferred.")},lf=function(a,b,c){A(!a.pd,"Blocking Deferreds can not be re-used");a.ec.push([b,c,void 0]);a.Ua&&gf(a)}; cf.prototype.then=function(a,b,c){var d,e,f=new ge(function(a,b){d=a;e=b});lf(this,d,function(a){a instanceof ef?f.cancel():e(a)});return f.then(a,b,c)};cf.prototype.$goog_Thenable=!0; var mf=function(a){return Ta(a.ec,function(a){return t(a[1])})},gf=function(a){if(a.lc&&a.Ua&&mf(a)){var b=a.lc,c=nf[b];c&&(k.clearTimeout(c.J),delete nf[b]);a.lc=0}a.u&&(a.u.xc--,delete a.u);b=a.T;for(var d=c=!1;a.ec.length&&!a.wc;){var e=a.ec.shift(),f=e[0],g=e[1];e=e[2];if(f=a.qb?g:f)try{var l=f.call(e||a.zd,b);m(l)&&(a.qb=a.qb&&(l==b||l instanceof Error),a.T=b=l);if(ce(b)||"function"===typeof k.Promise&&b instanceof k.Promise)d=!0,a.wc=!0}catch(v){b=v,a.qb=!0,mf(a)||(c=!0)}}a.T=b;d&&(l=u(a.vd, a,!0),d=u(a.vd,a,!1),b instanceof cf?(lf(b,l,d),b.pd=!0):b.then(l,d));c&&(b=new of(b),nf[b.J]=b,a.lc=b.J)},hf=function(){Fa.call(this)};x(hf,Fa);hf.prototype.message="Deferred has already fired";hf.prototype.name="AlreadyCalledError";var ef=function(){Fa.call(this)};x(ef,Fa);ef.prototype.message="Deferred was canceled";ef.prototype.name="CanceledError";var of=function(a){this.J=k.setTimeout(u(this.gf,this),0);this.Nb=a}; of.prototype.gf=function(){A(nf[this.J],"Cannot throw an error that is not scheduled.");delete nf[this.J];throw this.Nb;};var nf={};var sf=function(a){var b={},c=b.document||document,d=De(a),e=document.createElement("SCRIPT"),f={ie:e,Db:void 0},g=new cf(f),l=null,v=null!=b.timeout?b.timeout:5E3;0=Bf(this).value)for(t(b)&&(b=b()),a=new tf(a,String(b),this.Vd),c&&(a.Cd=c),c=this;c;){var d=c,e=a;if(d.Md)for(var f=0;b=d.Md[f];f++)b(e);c=c.getParent()}};vf.prototype.info=function(a,b){this.log(yf,a,b)}; var Cf={},Df=null,Ef=function(a){Df||(Df=new vf(""),Cf[""]=Df,Df.ke(zf));var b;if(!(b=Cf[a])){b=new vf(a);var c=a.lastIndexOf("."),d=a.substr(c+1);c=Ef(a.substr(0,c));c.Jd()[d]=b;b.u=c;Cf[a]=b}return b};var Ff=function(a,b){a&&a.log(Af,b,void 0)};var Gf=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Hf=function(){};Hf.prototype.td=null;Hf.prototype.pb=function(){var a;(a=this.td)||(a={},If(this)&&(a[0]=!0,a[1]=!0),a=this.td=a);return a};var Jf=function(a,b){this.lf=a;this.Xe=b};x(Jf,Hf);Jf.prototype.Ac=function(){return this.lf()};Jf.prototype.pb=function(){return this.Xe()};var Kf=function(){return Kf.Dd.Ac()};Kf.pe=!1;Kf.pb=function(){return Kf.Dd.pb()};Kf.tf=function(a,b){Kf.je(new Jf(A(a),A(b)))};Kf.je=function(a){Kf.Dd=a};var Lf=function(){};x(Lf,Hf);Lf.prototype.Ac=function(){var a=If(this);return a?new ActiveXObject(a):new XMLHttpRequest}; var If=function(a){if(Kf.pe)return"";if(!a.Nd&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;cb)throw Error("Bad port number "+b);a.Za=b}else a.Za=null}; bg.prototype.getPath=function(){return this.oa};bg.prototype.setPath=function(a,b){dg(this);this.oa=b?gg(a,!0):a;return this};var fg=function(a,b,c){dg(a);b instanceof hg?(a.X=b,a.X.bd(a.V)):(c||(b=ig(b,ng)),a.X=new hg(b,a.V))};bg.prototype.getQuery=function(){return this.X.toString()};bg.prototype.removeParameter=function(a){dg(this);this.X.remove(a);return this};var dg=function(a){if(a.Me)throw Error("Tried to modify a read-only Uri");};bg.prototype.bd=function(a){this.V=a;this.X&&this.X.bd(a)}; var og=function(a){return a instanceof bg?a.clone():new bg(a,void 0)},gg=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},ig=function(a,b,c){return n(a)?(a=encodeURI(a).replace(b,pg),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},pg=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},jg=/[#\/\?@]/g,lg=/[#\?:]/g,kg=/[#\?]/g,ng=/[#\?@]/g,mg=/#/g,hg=function(a,b){this.l=this.o=null;this.R=a||null;this.V=!!b},qg=function(a){a.o|| (a.o=new C,a.l=0,a.R&&Nf(a.R,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=hg.prototype;h.m=function(){qg(this);return this.l};h.add=function(a,b){qg(this);this.R=null;a=rg(this,a);var c=this.o.get(a);c||this.o.set(a,c=[]);c.push(b);this.l=Ka(this.l)+1;return this};h.remove=function(a){qg(this);a=rg(this,a);return this.o.ta(a)?(this.R=null,this.l=Ka(this.l)-this.o.get(a).length,this.o.remove(a)):!1};h.clear=function(){this.o=this.R=null;this.l=0}; h.isEmpty=function(){qg(this);return 0==this.l};h.ta=function(a){qg(this);a=rg(this,a);return this.o.ta(a)};h.ib=function(a){var b=this.w();return Ya(b,a)};h.forEach=function(a,b){qg(this);this.o.forEach(function(c,d){Qa(c,function(c){a.call(b,c,d,this)},this)},this)};h.ba=function(){qg(this);for(var a=this.o.w(),b=this.o.ba(),c=[],d=0;d');Fg=a};w("ee.data.setCloudApiEnabled",Gg);w("ee.data.getCloudApiEnabled",function(){return Fg}); var Hg=function(a,b,c,d,e,f,g){var l=["https://www.googleapis.com/auth/earthengine"];e&&(db(l,e),fb(l));sg=a;tg=l;var v={token_type:b,access_token:c,state:l.join(" "),expires_in:d};Ag(void 0,void 0,v);!1===g?f&&f():vg(function(){k.gapi.auth.setToken(v);f&&f()})};w("ee.data.setAuthToken",Hg);var wg=function(a,b,c){Bg&&sg&&Bg({client_id:String(sg),immediate:!0,scope:tg.join(" ")},function(d){"immediate_failed"==d.error&&c?c():Ag(a,b,d)})},Ig=function(a){Bg=a};w("ee.data.setAuthTokenRefresher",Ig); var Lg=function(){Jg&&0<=Da()-Jg&&Kg();return ug};w("ee.data.getAuthToken",Lg);var Kg=function(){Jg=ug=null};w("ee.data.clearAuthToken",Kg);var Mg=function(){return sg};w("ee.data.getAuthClientId",Mg);var Ng=function(){return tg};w("ee.data.getAuthScopes",Ng); var Ug=function(a,b,c){null!=a?Og=a:Pg||(Og="https://earthengine.googleapis.com/api");null!=b?Qg=b:Pg||(Qg="https://earthengine.googleapis.com");m(c)&&(Rg=c);!Fg||Sg&&null==a||(Sg=new Promise(function(a,b){gapi.load("client",{callback:function(){var b=Object.assign({},bd,{rootUrl:Og.replace(/\/api$/,"")});gapi.client.init({apiKey:Dg,discoveryDocs:[b]}).then(function(){Tg=!0;gapi.client.earthengine.v1=gapi.client.earthengine;a()})},onerror:b})}));Pg=!0},Xg=function(a,b,c){Ug();if(c){var d=function(a){return Vg(a.status, function(b){return a.headers[b.toLowerCase()]},a.body,null,c,b)};Sg.then(function(){a().then(d,d)});return null}if(!Tg)throw Error("Cloud API not ready");return Wg(function(c){a().then(function(){return null},function(){return null});return Vg(c().status,function(a){try{return c().getResponseHeader(a)}catch(g){return null}},c().responseText,null,void 0,b)})},Wg=function(a){if(XMLHttpRequest.prototype.sc)throw Error("Cannot initialize synchronous request mode");var b=function(){this.ja=new this.sc; XMLHttpRequest.Ne=this.ja};b.prototype.open=function(a,b,e,f,g){this.ja.open(a,b,!1,f,g)};b.prototype.send=function(a){this.ja.send(a)};b.prototype.abort=function(){this.ja.abort()};b.prototype.overrideMimeType=function(a){this.ja.overrideMimeType(a)};b.prototype.setRequestHeader=function(a,b){this.ja.setRequestHeader(a,b)};b.prototype.getResponseHeader=function(a){return this.ja.getResponseHeader(a)};b.prototype.getAllResponseHeaders=function(){return this.ja.getAllResponseHeaders()};"onabort onerror onload onloadstart onloadend onprogress onreadystatechange readyState responseText responseType responseXML status statusText upload withCredentials DONE UNSENT HEADERS_RECEIVED LOADING OPENED".split(" ").forEach(function(a){return Object.defineProperty(b.prototype, a,{get:function(){return this.ja[a]},set:function(b){this.ja[a]=b}})});b.prototype.sc=XMLHttpRequest;XMLHttpRequest=b;try{return a(function(){return XMLHttpRequest.Ne})}finally{XMLHttpRequest=XMLHttpRequest.prototype.sc}},Zg=function(a){Yg=a};w("ee.data.setDeadline",Zg);w("ee.data.setParamAugmenter",function(a){$g=a||Ic});var ah=function(){return Og};w("ee.data.getApiBaseUrl",ah);var bh=function(){return Qg};w("ee.data.getTileBaseUrl",bh);var ch=function(){return Rg};w("ee.data.getXsrfToken",ch); var dh=function(a){var b=G("/algorithms",null,a,"GET");return a?null:b},fh=function(a,b){if(Fg){if(n(a.image))throw Error("Image as JSON string not supported.");if(m(a.version))throw Error("Image version specification not supported.");var c={name:null,expression:Gd(a.image),fileFormat:id(a.format),bandIds:jd(a.bands),visualizationOptions:md(a)},d=["name"];return Xg(function(){return gapi.client.earthengine.maps.create({He:d},c)},function(a){return eh(a.name,"","/v1/{}/tiles",Dg?"?key="+Dg:"")},b)}a= Hb(a);n(a.image)||(a.image=a.image.D());var e=function(a){return eh(a.mapid,a.token,"/map/{}","?token={}")};return b?(G("/mapid",H(a),function(a,c){return b(a&&e(a),c)}),null):e(G("/mapid",H(a)))};w("ee.data.getMapId",fh);var gh=function(a,b,c,d){return a.formatTileUrl(b,c,d)};w("ee.data.getTileUrl",gh); var eh=function(a,b,c,d){c=Qg+c.replace("{}",a);d=d.replace("{}",b);return{mapid:a,token:b,formatTileUrl:function(a,b,g){var e=Math.pow(2,g);a%=e;0>a&&(a+=e);return[c,g,a,b].join("/")+d}}},hh=function(a,b){a=Hb(a);return G("/value",H(a),b)};w("ee.data.getValue",hh); var ih=function(a,b){if(Fg){var c=Gd(a);return Xg(function(){return gapi.client.earthengine.v1.computeValue({expression:c})},function(a){return a.result},b)}a={json:Bd(a)};return G("/value",H(a),b)},jh=function(a,b){if(Fg){if(n(a.image))throw Error("Image as JSON string not supported.");if(m(a.version))throw Error("Image version specification not supported.");if(m(a.region))throw Error('"region" not supported in call to ee.data.getThumbId. Use ee.Image.getThumbURL.');var c={name:null,expression:Gd(a.image), fileFormat:id(a.format),bandIds:jd(a.bands),visualizationOptions:md(a),grid:null},d=["name"];return Xg(function(){return gapi.client.earthengine.thumbnails.create({He:d},c)},function(a){return{thumbid:a.name,token:""}},b)}a=Hb(a);n(a.image)||(a.image=a.image.D());q(a.dimensions)&&(a.dimensions=a.dimensions.join("x"));a=H(a).add("getid","1");return G("/thumb",a,b)};w("ee.data.getThumbId",jh); var kh=function(a){return Fg?Qg+"/v1/"+a.thumbid+":getPixels"+(Dg?"?key="+Dg:""):Qg+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token};w("ee.data.makeThumbUrl",kh);var lh=function(a,b){a=Hb(a);return G("/download",H(a),b)};w("ee.data.getDownloadId",lh);var mh=function(a){return Qg+"/api/download?docid="+a.docid+"&token="+a.token};w("ee.data.makeDownloadUrl",mh);var nh=function(a,b){a=Hb(a);return G("/table",H(a),b)};w("ee.data.getTableDownloadId",nh); var oh=function(a){return Qg+"/api/table?docid="+a.docid+"&token="+a.token};w("ee.data.makeTableDownloadUrl",oh);var qh=function(a,b,c){var d=ph;try{return ph=a,b.call(c)}finally{ph=d}};w("ee.data.withProfiling",qh);var rh=function(a,b){var c={};p(a)&&(c.count=a);return G("/newtaskid",H(c),b)};w("ee.data.newTaskId",rh); w("ee.data.getTaskStatus",function(a,b){if(n(a))a=[a];else if(!q(a))throw Error("Invalid taskId: expected a string or an array of strings.");return G("/taskstatus?q="+a.join(),null,b,"GET")});w("ee.data.getTaskList",function(a){return sh(void 0,a)}); var sh=function(a,b){function c(b){var c={pagesize:500};a&&(c.pagesize=Math.min(c.pagesize,a-e.tasks.length));b&&(c.pagetoken=b);return c}function d(b,f){G("/tasklist",H(c(f)),function(c,f){f?b(e,f):(db(e.tasks,c.tasks),!c.next_page_token||a&&e.tasks.length>=a?b(e):d(b,c.next_page_token))},"GET")}var e={tasks:[]};if(b)return d(b),null;for(b="";;){var f=G("/tasklist",H(c(b)),void 0,"GET");db(e.tasks,f.tasks);b=f.next_page_token;if(!f.next_page_token||a&&e.tasks.length>=a)break}return e}; w("ee.data.getTaskListWithLimit",sh);w("ee.data.cancelTask",function(a,b){return th(a,"CANCEL",b)});var th=function(a,b,c){if(n(a))a=[a];else if(!q(a))throw Error("Invalid taskId: expected a string or an array of strings.");if(!Cb(uh,b))throw Error("Invalid action: "+b);return G("/updatetask",H({id:a,action:b}),c,"POST")};w("ee.data.updateTask",th);var vh=function(a,b,c){b=Hb(b);b.id=a;return G("/processingrequest",H(b),c)};w("ee.data.startProcessing",vh); w("ee.data.startIngestion",function(a,b,c){a={id:a,request:rd(b)};return G("/ingestionrequest",H(a),c)});w("ee.data.startTableIngestion",function(a,b,c){a={id:a,tableRequest:rd(b)};return G("/ingestionrequest",H(a),c)});var wh=function(a,b){return G("/info",(new hg).add("id",a),b)};w("ee.data.getInfo",wh); var xh=function(a,b){if(Fg){var c="projects/earthengine-legacy/assets/"+a.id;return Xg(function(){return gapi.client.earthengine.assets.list({name:c})},function(a){return a.assets},b)}a=H(a);return G("/list",a,b)};w("ee.data.getList",xh);w("ee.data.getAssetRoots",function(a){return G("/buckets",null,a,"GET")});w("ee.data.createAssetHome",function(a,b){a=H({id:a});G("/createbucket",a,b)}); w("ee.data.createAsset",function(a,b,c,d,e){n(a)||(a=rd(a));a={value:a};void 0!==b&&(a.id=b);a.force=c||!1;void 0!=d&&(a.properties=rd(d));return G("/create",H(a),e)});w("ee.data.createFolder",function(a,b,c){return G("/createfolder",H({id:a,force:b||!1}),c)});w("ee.data.renameAsset",function(a,b,c){G("/rename",H({sourceId:a,destinationId:b}),c)});w("ee.data.copyAsset",function(a,b,c){G("/copy",H({sourceId:a,destinationId:b}),c)});w("ee.data.deleteAsset",function(a,b){G("/delete",H({id:a}),b)}); w("ee.data.getAssetAcl",function(a,b){return G("/getacl",H({id:a}),b,"GET")});w("ee.data.setAssetAcl",function(a,b,c){a={id:a,value:rd(b)};G("/setacl",H(a),c)});w("ee.data.setAssetProperties",function(a,b,c){a={id:a,properties:rd(b)};G("/setproperties",H(a),c)});w("ee.data.getAssetRootQuota",function(a,b){return G("/quota",H({id:a}),b,"GET")}); var uh={mf:"CANCEL",qf:"UPDATE"},G=function(a,b,c,d){Ug();var e=ph,f={"Content-Type":"application/x-www-form-urlencoded"},g=Lg();if(null!=g)f.Authorization=g;else if(c&&Bg&&sg)return wg(function(){qh(e,function(){G(a,b,c,d)})}),null;g=d||"POST";b=b?b.clone():new hg;e&&b.add("profiling","1");null!=Dg&&b.add("key",Dg);b=$g(b,a);null!=Rg&&(f["X-XSRF-Token"]=Rg);var l=b?b.toString():"";"GET"!=g||/^[\s\xa0]*$/.test(l)||(a+=-1!=a.indexOf("?")?"&":"?",a+=l,l=null);var v=Og+a;if(c)return yh.push(zh(v,c,g, l,f)),Ah.Ic(),null;for(var F=function(a,b){this.setRequestHeader&&this.setRequestHeader(b,a)},M,ka=0;;){M=Kf();M.open(g,v,!1);wb(f,F,M);M.send(l);if(429!=M.status||5f)return f++,setTimeout(function(){yh.push(g);Ah.Ic()},Math.min(12E4,1E3*Math.pow(2, f))),null;var c=Vg,d=a.getStatus(),e=u(a.getResponseHeader,a);try{var v=a.a?a.a.responseText:""}catch(Cc){Ff(a.N,"Can not get responseText: "+Cc.message),v=""}return c(d,e,v,l,b)};return g},Vg=function(a,b,c,d,e,f){f=void 0===f?function(a){return a.data}:f;var g=b("X-Earth-Engine-Computation-Profile");g&&d&&d(g);b=(b=b("Content-Type"))?b.replace(/;.*/,""):"application/json";if("application/json"==b||"text/json"==b)try{var l=JSON.parse(c);var v=f(l)}catch(M){var F="Invalid JSON: "+c}else F="Response was unexpectedly not JSON, but "+ b;if(r(l))"error"in l&&"message"in l.error?F=l.error.message:void 0===v&&(F="Malformed response: "+c);else if(0===a)F="Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.";else if(200>a||300<=a)F="Server returned HTTP code: "+a;if(e)return e(v,F),null;if(!F)return v;throw Error(F);},vg=function(a){var b=function(){k.gapi.config.update("client/cors",!0);Bg||(Bg=k.gapi.auth.authorize);a()};if(r(k.gapi)&&r(k.gapi.auth)&&t(k.gapi.auth.authorize))b(); else{for(var c=Da().toString(36);c in k;)c+="_";k[c]=function(){delete k[c];b()};sf(Ie({onload:c}))}},Ag=function(a,b,c){if(c.access_token){b=c.token_type+" "+c.access_token;if(c.expires_in||0===c.expires_in)c=900*c.expires_in,setTimeout(wg,.9*c),Jg=Da()+c;ug=b;a&&a()}else b&&b(c.error||"Unknown error.")},H=function(a){var b=new hg;a=ba(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=ba(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}return b},yh=[],Ah=new ve(function(){var a= yh.shift();if(a){var b=a.url,c=a.callback,d=a.method,e=a.content;a=a.headers;var f=Yg,g=new E;Sf.push(g);c&&g.ga("complete",c);g.wb("ready",g.Ae);f&&(g.eb=Math.max(0,f));g.send(b,d,e,a)}0==yh.length||Ah.Ic()},350),Og=null,Qg=null,Rg=null,$g=Ic,ug=null,Jg=null,sg=null,tg=[],Bg=null,Ee=new ze(xe,"https://apis.google.com/js/client.js?onload=%{onload}"),Dg=null,Fg=!1,Sg=null,Tg=!1,Pg=!1,Yg=0,ph=null;var I=function(a,b,c){if(!(this instanceof I))return Bh(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.A=c||null};x(I,cd);w("ee.ComputedObject",I);I.prototype.evaluate=function(a){if(!a||!t(a))throw Error("evaluate() requires a callback function.");ih(this,a)};I.prototype.evaluate=I.prototype.evaluate; I.prototype.C=function(a){return ih(this,a)};I.prototype.getInfo=I.prototype.C;I.prototype.encode=function(a){if(null===this.i&&null===this.args)return{type:"ArgumentRef",value:this.A};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.P=function(a){if(null===this.i&&null===this.args)return{argumentReference:this.A||"uninitializedVar"};var b={},c;for(c in this.args)m(this.args[c])&&(b[c]=ed(a(this.args[c])));return n(this.i)?fd(String(this.i),b):this.i.Dc(a,b)};I.prototype.D=function(){return Bd(this)};I.prototype.serialize=I.prototype.D;I.prototype.toString=function(){return"ee."+this.name()+"("+Dd(this)+")"};w("ee.ComputedObject.prototype.toString",I.prototype.toString);I.prototype.name=function(){return"ComputedObject"}; I.prototype.ld=function(a,b){var c=cb(arguments);c[0]=this;a.apply(k,c);return this};I.prototype.aside=I.prototype.ld;var Ch=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.A=b.A;return a},Bh=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var Dh={},Eh=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"},Fh=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}},Gh=function(a){return p(a)|| a instanceof I&&"Number"==a.name()},Hh=function(a){return n(a)||a instanceof I&&"String"==a.name()},Ih=function(a){return r(a)&&!t(a)?(a=Object.getPrototypeOf(a),null!==a&&null===Object.getPrototypeOf(a)):!1};var J=function(){if(!(this instanceof J))return new J};x(J,cd);w("ee.Function",J);var Jh=Ic;J.prototype.call=function(a){return this.apply(Kh(this,Array.prototype.slice.call(arguments,0)))};J.prototype.call=J.prototype.call;J.prototype.apply=function(a){a=new I(this,Lh(this,a));return Jh(a,this.L().returns)};J.prototype.apply=J.prototype.apply; var Mh=function(a,b,c){var d=m(b),e=a.L(),f=!1;if(1==c.length&&Ih(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=Hb(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=Kh(a,d?[b].concat(c):c);return a.apply(c)},Lh=function(a,b){for(var c=a.L().args,d={},e={},f=0;f/,"");for(var c=0;c/,"");return new K(b,a)}),a&&a())};a?dh(c):c(dh())}},N=function(a,b,c,d){Rh();var e=d||"";wb(Ph,function(d,g){var f=g.split(".");if(2==f.length&&f[0]==b){f=e+f[1];var v=d.L();Qh[g]=!0;var F=!1;v.args.length&&(g=v.args[0].type,F="Object"!=g&&Fh(g,c)); g=F?a.prototype:a;f in g&&!g[f].signature||(g[f]=function(a){return Mh(d,F?this:void 0,Array.prototype.slice.call(arguments,0))},g[f].toString=u(d.toString,d,f,F),g[f].signature=v)}})},Vh=function(a){var b=function(a){for(var b in a)t(a[b])&&a[b].signature&&delete a[b]};b(a);b(a.prototype||{})};var O=function(a,b){var c=Wh(a),d=Sa(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)&&!t(f)&&!q(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=Ih(c))a:{b=Bb(c);var d=["properties"];if(wa(b)&&wa(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]=Xj(g),Rj.push(g),a[g]?(f[g].signature=a[g],f[g].signature.isConstructor=!0,Qh[g]=!0):f[g].signature={});Dh=f;Yj()}catch(l){Pj(l);return}Lj="ready";for(Mj=[];0a.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.xa++].join("-"),this.gd.Ld()].join("-");b=this.yd(d,b,c,a);b.tileSize=this.tileSize;lk(b.O,this.opacity);this.ya.set(a,b);ok(this,b);this.gd.Td(b,(new Date).getTime()/1E3);return b.O};h.releaseTile=function(a){var b=this.ya.get(a.id);this.ya.remove(a.id);b&&(b.abort(),Ea(b))}; var ok=function(a,b){a.na.ga(b,"status-changed",function(){switch(b.getStatus()){case "loaded":var a=b.Qe,d=(new Date).getTime();dk(this.fc,b.zoom).tileLatencies.push(d-a);this.dispatchEvent(new pk(this.Kc()));break;case "throttled":dk(this.fc,b.zoom).throttleCount++;this.dispatchEvent(new qk(b.Ja));break;case "failed":dk(this.fc,b.zoom).errorCount++,this.dispatchEvent(new rk(b.Ja,b.De))}})}; mk.prototype.h=function(){mk.f.h.call(this);this.ya.forEach(Ea);this.ya.clear();this.ya=null;Ea(this.na);this.gd=this.na=null};var nk=function(a,b){return Va(a.ya.w(),function(a){return a.getStatus()==b})},pk=function(){z.call(this,"tile-load")};x(pk,z);var qk=function(){z.call(this,"tile-throttle")};x(qk,z);var rk=function(a,b){z.call(this,"tile-fail");this.errorMessage=b};x(rk,z); var sk=function(a,b,c,d){B.call(this);this.Ra=a;this.zoom=b;this.O=c.createElement("div");this.O.id=d;this.Se=5;this.bc=function(){};this.dd="new";this.fe=0;this.Tc=!1};x(sk,B); var uk=function(a){if(!a.Tc&&"loading"==a.getStatus())throw Error("startLoad() can only be invoked once. Use retryLoad() after the first attempt.");tk(a,"loading");a.Qe=(new Date).getTime();a.qa=new E;a.qa.bb="blob";a.qa.ga("complete",function(){var a=$f(this.qa),c=this.qa.getStatus();429==c&&tk(this,"throttled");if(Gf(c)){var d={};wb(ag(this.qa),function(a,b){d[b.toLowerCase()]=a});this.ef=d;this.me=a;this.mb()}else if(a){var e=new kk;e.ga("loadend",function(){this.Bb(e.H.result)},void 0,this);e.readAsText(a)}else this.Bb("Failed to load tile.")}, !1,a);a.qa.wb("ready",Ca(Ea,a.qa));a.qa.send(a.Ja,"GET")};h=sk.prototype;h.mb=function(){this.bc(this);tk(this,"loaded")};h.hb=function(){Ea(this.qa)};h.Bb=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.fe>=this.Se?(this.De=b(a),tk(this,"failed")):(this.hb(),setTimeout(u(function(){this.ea||(this.Tc=!0,uk(this),this.Tc=!1)},this),1E3*Math.pow(2,this.fe++)))};h.abort=function(){this.hb();tk(this,"aborted")}; h.getStatus=function(){return this.dd};var tk=function(a,b){a.dd=b;a.dispatchEvent("status-changed")},vk={aborted:!0,failed:!0,loaded:!0};sk.prototype.h=function(){sk.f.h.call(this);this.hb();this.O.remove();this.bc=null};var wk=function(){y.call(this)};x(wk,y);var xk=function(a,b){mk.call(this,a,b);this.sd=new C;this.Bd=new C};x(xk,mk);w("ee.layers.BinaryOverlay",xk);xk.prototype.yd=function(a,b,c,d){var e=new yk(a,b,c,d);this.na.ga(e,"status-changed",function(){"loaded"==e.getStatus()&&(this.sd.set(a,new Float32Array(e.xe)),this.Bd.set(a,e.O))});return e};xk.prototype.h=function(){xk.f.h.call(this);this.Bd=this.sd=null};var yk=function(a,b,c,d){sk.call(this,a,b,c,d)};x(yk,sk); yk.prototype.mb=function(){var a=new kk;a.ga("loadend",function(){this.xe=a.H.result;sk.prototype.mb.call(this)},void 0,this);a.readAsArrayBuffer(this.me)};var zk=function(a){B.call(this);this.sb={};this.rb={};this.Da=new ek(this);this.u=a};x(zk,B);var Ak=[Pb&&!Zb("11")?"readystatechange":"load","abort","error"],Bk=function(a,b,c){(c=n(c)?c:c.src)&&(a.sb[b]={src:c,xd:m(void 0)?void 0:null})},Ck=function(a,b){delete a.sb[b];var c=a.rb[b];c&&(delete a.rb[b],a.Da.mc(c,Ak,a.Xd),Fb(a.rb)&&Fb(a.sb)&&a.dispatchEvent("complete"))}; zk.prototype.start=function(){var a=this.sb;Qa(Bb(a),function(b){var c=a[b];if(c&&(delete a[b],!this.ea)){if(this.u){var d=this.u;d=(d?new af($e(d)):Ga||(Ga=new af)).Be("IMG")}else d=new Image;c.xd&&(d.crossOrigin=c.xd);this.Da.ga(d,Ak,this.Xd);this.rb[b]=d;d.id=b;d.src=c.src}},this)}; zk.prototype.Xd=function(a){var b=a.currentTarget;if(b){if("readystatechange"==a.type)if("complete"==b.readyState)a.type="load";else return;"undefined"==typeof b.naturalWidth&&("load"==a.type?(b.naturalWidth=b.width,b.naturalHeight=b.height):(b.naturalWidth=0,b.naturalHeight=0));this.dispatchEvent({type:a.type,target:b});this.ea||Ck(this,b.id)}};zk.prototype.h=function(){delete this.sb;delete this.rb;Ea(this.Da);zk.f.h.call(this)};var Dk=function(a,b){mk.call(this,a,b)};x(Dk,mk);w("ee.layers.ImageOverlay",Dk);Dk.prototype.yd=function(a,b,c,d){return new Ek(a,b,c,d)};var Ek=function(a,b,c,d){sk.call(this,a,b,c,d);this.bc=Fk;this.Od=this.K=this.Rb=null;this.yb=""};x(Ek,sk); Ek.prototype.mb=function(){try{var a=Qe(this.me);this.yb=Ne(a);var b="about:invalid#zClosurez"!==this.yb?this.yb:this.Ja}catch(c){b=this.Ja}this.K=new zk;Bk(this.K,this.O.id+"-image",b);this.Od=sc(this.K,Gk,function(a){"load"==a.type?(this.Rb=a.target,sk.prototype.mb.call(this)):this.Bb()},void 0,this);this.K.start()};Ek.prototype.hb=function(){Ek.f.hb.call(this);this.K&&(Bc(this.Od),Ea(this.K))};Ek.prototype.h=function(){Ek.f.h.call(this);this.yb&&URL.revokeObjectURL(this.yb)}; var Gk=["load","abort","error"],Fk=function(a){a.O.appendChild(a.Rb)};var Hk=function(a){for(var b=arguments[0],c=1;cthis.Vb)throw Error("[goog.structs.Pool] Min can not be greater than max");this.fa=new Kk;this.va=new D;this.delay=0;this.Uc=null;this.Gb()};x(Lk,y);Lk.prototype.ob=function(){var a=Da();if(!(null!=this.Uc&&a-this.Ucthis.Vb&&0=this.m()){for(var c=this.W,d=0;d>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};h=Ok.prototype; h.remove=function(){var a=this.W,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Za(a);else{a[0]=a.pop();a=0;b=this.W;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.oc}};h.w=function(){for(var a=this.W,b=[],c=a.length,d=0;da.Te)return!1;a.od++;Ck(a.K,a.J);setTimeout(u(a.ff,a),0);return!0}; Xk.prototype.ff=function(){if(!this.Pa){var a=u(function(a){this.Pa||(Bk(this.K,this.J,a),sc(this.K,$k,u(this.Je,this)),this.K.start())},this),b=this.getUrl();if(og(b).X.ta("profiling")){var c=new E;c.bb="blob";c.ga("complete",u(function(){this.ae=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;if(200<=c.getStatus()&&300>c.getStatus())try{var d=Ne(Qe($f(c)));var e="about:invalid#zClosurez"!==d}catch(f){}a(e?d:b)},this));c.wb("ready",u(c.da,c));c.send(b,"GET")}else a(b)}}; var al=function(){this.Y=!1};x(al,y);al.prototype.setActive=function(a){this.Y=a};al.prototype.Pd=function(){return this.Y};var Vk=function(a,b){Rk.call(this,a,b)};x(Vk,Rk);Vk.prototype.Bc=function(){return new al};Vk.prototype.Kb=function(a){a.da()};Vk.prototype.Wc=function(a){return!a.ea&&!a.Pd()};var Z=function(a,b,c,d,e){Zc.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.jd=new D;this.Xc=1;this.S=e||null};x(Z,Zc);w("ee.MapLayerOverlay",Z);Z.prototype.uc=function(a){return tc(this,"tileevent",a)};Z.prototype.addTileCallback=Z.prototype.uc;Z.prototype.ad=function(a){Bc(a)}; Z.prototype.removeTileCallback=Z.prototype.ad;Z.prototype.getTile=function(a,b,c){if(ba.y||a.y>=1<