@google/earthengine 0.1.331 → 0.1.334

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,9 +50,9 @@ this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this
50
50
  x(mb,Da);var lb=db({2:"touch",3:"pen",4:"mouse"});mb.prototype.stopPropagation=function(){mb.L.stopPropagation.call(this);this.La.stopPropagation?this.La.stopPropagation():this.La.cancelBubble=!0};mb.prototype.preventDefault=function(){mb.L.preventDefault.call(this);var a=this.La;a.preventDefault?a.preventDefault():a.returnValue=!1};var nb="closure_listenable_"+(1E6*Math.random()|0),ob=function(a){return!(!a||!a[nb])};var pb=0;var qb=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.lb=e;this.key=++pb;this.hd=this.wd=!1},rb=function(a){a.hd=!0;a.listener=null;a.proxy=null;a.src=null;a.lb=null};function sb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function tb(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function ub(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d}function vb(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function wb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function xb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function yb(a,b){for(var c in a)if(a[c]==b)return!0;return!1}
51
51
  function zb(a){var b=Ab,c;for(c in b)if(a.call(void 0,b[c],c,b))return c}function Bb(a){for(var b in a)return!1;return!0}function Cb(a,b){b in a&&delete a[b]}function Db(a){var b={},c;for(c in a)b[c]=a[c];return b}
52
52
  function Eb(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();if("undefined"!==typeof Map&&a instanceof Map)return new Map(a);if("undefined"!==typeof Set&&a instanceof Set)return new Set(a);if(a instanceof Date)return new Date(a.getTime());var b=Array.isArray(a)?[]:"function"!==typeof ArrayBuffer||"function"!==typeof ArrayBuffer.isView||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=Eb(a[c]);return b}var Fb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
53
- function Gb(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Fb.length;f++)c=Fb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Hb=function(a){this.src=a;this.ha={};this.md=0};Hb.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.ha[f];a||(a=this.ha[f]=[],this.md++);var g=Jb(a,b,d,e);-1<g?(b=a[g],c||(b.wd=!1)):(b=new qb(b,this.src,f,!!d,e),b.wd=c,a.push(b));return b};Hb.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.ha))return!1;var e=this.ha[a];b=Jb(e,b,c,d);return-1<b?(rb(e[b]),Ya(e,b),0==e.length&&(delete this.ha[a],this.md--),!0):!1};
54
- var Kb=function(a,b){var c=b.type;c in a.ha&&Xa(a.ha[c],b)&&(rb(b),0==a.ha[c].length&&(delete a.ha[c],a.md--))};Hb.prototype.gd=function(a){a=a&&a.toString();var b=0,c;for(c in this.ha)if(!a||c==a){for(var d=this.ha[c],e=0;e<d.length;e++)++b,rb(d[e]);delete this.ha[c];this.md--}};Hb.prototype.Qc=function(a,b,c,d){a=this.ha[a.toString()];var e=-1;a&&(e=Jb(a,b,c,d));return-1<e?a[e]:null};
55
- Hb.prototype.hasListener=function(a,b){var c=void 0!==a,d=c?a.toString():"",e=void 0!==b;return vb(this.ha,function(f){for(var g=0;g<f.length;++g)if(!(c&&f[g].type!=d||e&&f[g].capture!=b))return!0;return!1})};var Jb=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.hd&&f.listener==b&&f.capture==!!c&&f.lb==d)return e}return-1};var Lb="closure_lm_"+(1E6*Math.random()|0),Mb={},Nb=0,Pb=function(a,b,c,d,e){if(d&&d.once)return Ob(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Pb(a,b[f],c,d,e);return null}c=Qb(c);return ob(a)?a.Ya(b,c,t(d)?!!d.capture:!!d,e):Rb(a,b,c,!1,d,e)},Rb=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=t(e)?!!e.capture:!!e,l=Sb(a);l||(a[Lb]=l=new Hb(a));c=l.add(b,c,d,g,f);if(c.proxy)return c;d=Tb();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)eb||(e=g),void 0===
53
+ function Gb(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Fb.length;f++)c=Fb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Hb=function(a){this.src=a;this.ha={};this.md=0};Hb.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.ha[f];a||(a=this.ha[f]=[],this.md++);var g=Ib(a,b,d,e);-1<g?(b=a[g],c||(b.wd=!1)):(b=new qb(b,this.src,f,!!d,e),b.wd=c,a.push(b));return b};Hb.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.ha))return!1;var e=this.ha[a];b=Ib(e,b,c,d);return-1<b?(rb(e[b]),Ya(e,b),0==e.length&&(delete this.ha[a],this.md--),!0):!1};
54
+ var Kb=function(a,b){var c=b.type;c in a.ha&&Xa(a.ha[c],b)&&(rb(b),0==a.ha[c].length&&(delete a.ha[c],a.md--))};Hb.prototype.gd=function(a){a=a&&a.toString();var b=0,c;for(c in this.ha)if(!a||c==a){for(var d=this.ha[c],e=0;e<d.length;e++)++b,rb(d[e]);delete this.ha[c];this.md--}};Hb.prototype.Qc=function(a,b,c,d){a=this.ha[a.toString()];var e=-1;a&&(e=Ib(a,b,c,d));return-1<e?a[e]:null};
55
+ Hb.prototype.hasListener=function(a,b){var c=void 0!==a,d=c?a.toString():"",e=void 0!==b;return vb(this.ha,function(f){for(var g=0;g<f.length;++g)if(!(c&&f[g].type!=d||e&&f[g].capture!=b))return!0;return!1})};var Ib=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.hd&&f.listener==b&&f.capture==!!c&&f.lb==d)return e}return-1};var Lb="closure_lm_"+(1E6*Math.random()|0),Mb={},Nb=0,Pb=function(a,b,c,d,e){if(d&&d.once)return Ob(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Pb(a,b[f],c,d,e);return null}c=Qb(c);return ob(a)?a.Ya(b,c,t(d)?!!d.capture:!!d,e):Rb(a,b,c,!1,d,e)},Rb=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=t(e)?!!e.capture:!!e,l=Sb(a);l||(a[Lb]=l=new Hb(a));c=l.add(b,c,d,g,f);if(c.proxy)return c;d=Tb();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)eb||(e=g),void 0===
56
56
  e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Ub(b.toString()),d);else if(a.addListener&&a.removeListener)z("change"===b,"MediaQueryList only has a change event"),a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Nb++;return c},Tb=function(){var a=Vb,b=function(c){return a.call(b.src,b.listener,c)};return b},Ob=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Ob(a,b[f],c,d,e);return null}c=Qb(c);return ob(a)?
57
57
  a.Zc(b,c,t(d)?!!d.capture:!!d,e):Rb(a,b,c,!0,d,e)},Wb=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Wb(a,b[f],c,d,e);else d=t(d)?!!d.capture:!!d,c=Qb(c),ob(a)?a.ne(b,c,d,e):a&&(a=Sb(a))&&(b=a.Qc(b,c,d,e))&&Xb(b)},Xb=function(a){if("number"!==typeof a&&a&&!a.hd){var b=a.src;if(ob(b))Kb(b.Ka,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Ub(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Nb--;(c=Sb(b))?
58
58
  (Kb(c,a),0==c.md&&(c.src=null,b[Lb]=null)):rb(a)}}},Ub=function(a){return a in Mb?Mb[a]:Mb[a]="on"+a},Vb=function(a,b){if(a.hd)a=!0;else{b=new mb(b,this);var c=a.listener,d=a.lb||a.src;a.wd&&Xb(a);a=c.call(d,b)}return a},Sb=function(a){a=a[Lb];return a instanceof Hb?a:null},Yb="__closure_events_fn_"+(1E9*Math.random()>>>0),Qb=function(a){z(a,"Listener can not be null.");if("function"===typeof a)return a;z(a.handleEvent,"An object listener must have handleEvent method.");a[Yb]||(a[Yb]=function(b){return a.handleEvent(b)});
@@ -150,9 +150,10 @@ a}},endTime:{configurable:!0,enumerable:!0,get:function(){return F(this,"endTime
150
150
  "featureViewAssetLocation")?E(this,"featureViewAssetLocation"):null},set:function(a){this.h.featureViewAssetLocation=a}},gcsLocation:{configurable:!0,enumerable:!0,get:function(){return F(this,"gcsLocation")?E(this,"gcsLocation"):null},set:function(a){this.h.gcsLocation=a}},geometry:{configurable:!0,enumerable:!0,get:function(){return F(this,"geometry")?E(this,"geometry"):null},set:function(a){this.h.geometry=a}},id:{configurable:!0,enumerable:!0,get:function(){return F(this,"id")?E(this,"id"):null},
151
151
  set:function(a){this.h.id=a}},name:{configurable:!0,enumerable:!0,get:function(){return F(this,"name")?E(this,"name"):null},set:function(a){this.h.name=a}},properties:{configurable:!0,enumerable:!0,get:function(){return F(this,"properties")?E(this,"properties"):null},set:function(a){this.h.properties=a}},quota:{configurable:!0,enumerable:!0,get:function(){return F(this,"quota")?E(this,"quota"):null},set:function(a){this.h.quota=a}},sizeBytes:{configurable:!0,enumerable:!0,get:function(){return F(this,
152
152
  "sizeBytes")?E(this,"sizeBytes"):null},set:function(a){this.h.sizeBytes=a}},startTime:{configurable:!0,enumerable:!0,get:function(){return F(this,"startTime")?E(this,"startTime"):null},set:function(a){this.h.startTime=a}},Li:{configurable:!0,enumerable:!0,get:function(){return F(this,"tilestoreEntry")?E(this,"tilestoreEntry"):null},set:function(a){this.h.tilestoreEntry=a}},Mi:{configurable:!0,enumerable:!0,get:function(){return F(this,"tilestoreLocation")?E(this,"tilestoreLocation"):null},set:function(a){this.h.tilestoreLocation=
153
- a}},title:{configurable:!0,enumerable:!0,get:function(){return F(this,"title")?E(this,"title"):null},set:function(a){this.h.title=a}},type:{configurable:!0,enumerable:!0,get:function(){return F(this,"type")?E(this,"type"):null},set:function(a){this.h.type=a}},updateTime:{configurable:!0,enumerable:!0,get:function(){return F(this,"updateTime")?E(this,"updateTime"):null},set:function(a){this.h.updateTime=a}}});var Je=function(a){a=void 0===a?{}:a;this.h={};this.h.name=null==a.name?null:a.name};
154
- q(Je,C);Je.prototype.i=function(){return{keys:["name"]}};k.Object.defineProperties(Je.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return F(this,"name")?E(this,"name"):null},set:function(a){this.h.name=a}}});var ef=function(a){a=void 0===a?{}:a;this.h={};this.h.name=null==a.name?null:a.name;this.h.expression=null==a.l?null:a.l;this.h.fileFormat=null==a.F?null:a.F;this.h.bandIds=null==a.ca?null:a.ca;this.h.visualizationOptions=null==a.kc?null:a.kc};q(ef,C);
155
- ef.prototype.i=function(){return{H:{fileFormat:Vd},keys:["bandIds","expression","fileFormat","name","visualizationOptions"],o:{expression:Oe,visualizationOptions:ff}}};
153
+ a}},title:{configurable:!0,enumerable:!0,get:function(){return F(this,"title")?E(this,"title"):null},set:function(a){this.h.title=a}},type:{configurable:!0,enumerable:!0,get:function(){return F(this,"type")?E(this,"type"):null},set:function(a){this.h.type=a}},updateTime:{configurable:!0,enumerable:!0,get:function(){return F(this,"updateTime")?E(this,"updateTime"):null},set:function(a){this.h.updateTime=a}}});
154
+ var Je=function(a){a=void 0===a?{}:a;this.h={};this.h.name=null==a.name?null:a.name;this.h.overwrite=null==a.overwrite?null:a.overwrite};q(Je,C);Je.prototype.i=function(){return{keys:["name","overwrite"]}};
155
+ k.Object.defineProperties(Je.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return F(this,"name")?E(this,"name"):null},set:function(a){this.h.name=a}},overwrite:{configurable:!0,enumerable:!0,get:function(){return F(this,"overwrite")?E(this,"overwrite"):null},set:function(a){this.h.overwrite=a}}});
156
+ var ef=function(a){a=void 0===a?{}:a;this.h={};this.h.name=null==a.name?null:a.name;this.h.expression=null==a.l?null:a.l;this.h.fileFormat=null==a.F?null:a.F;this.h.bandIds=null==a.ca?null:a.ca;this.h.visualizationOptions=null==a.kc?null:a.kc};q(ef,C);ef.prototype.i=function(){return{H:{fileFormat:Vd},keys:["bandIds","expression","fileFormat","name","visualizationOptions"],o:{expression:Oe,visualizationOptions:ff}}};
156
157
  k.Object.defineProperties(ef.prototype,{ca:{configurable:!0,enumerable:!0,get:function(){return F(this,"bandIds")?E(this,"bandIds"):null},set:function(a){this.h.bandIds=a}},l:{configurable:!0,enumerable:!0,get:function(){return F(this,"expression")?E(this,"expression"):null},set:function(a){this.h.expression=a}},F:{configurable:!0,enumerable:!0,get:function(){return F(this,"fileFormat")?E(this,"fileFormat"):null},set:function(a){this.h.fileFormat=a}},name:{configurable:!0,enumerable:!0,get:function(){return F(this,
157
158
  "name")?E(this,"name"):null},set:function(a){this.h.name=a}},kc:{configurable:!0,enumerable:!0,get:function(){return F(this,"visualizationOptions")?E(this,"visualizationOptions"):null},set:function(a){this.h.visualizationOptions=a}}});var gf=function(){this.h={}};q(gf,C);gf.prototype.i=function(){return{keys:[]}};
158
159
  var hf=function(a){a=void 0===a?{}:a;this.h={};this.h.expression=null==a.l?null:a.l;this.h.description=null==a.description?null:a.description;this.h.requestId=null==a.requestId?null:a.requestId;this.h.assetExportOptions=null==a.ua?null:a.ua;this.h.maxWorkers=null==a.O?null:a.O;this.h.maxWorkerCount=null==a.W?null:a.W;this.h.workloadTag=null==a.workloadTag?null:a.workloadTag};q(hf,C);
@@ -444,17 +445,17 @@ Jc(p,g[m]))});return b?b(l):l};return this.callback?($i(d,null,function(g,l){ret
444
445
  aj.prototype.send=function(a,b){var c=[a.B+" "+a.path+" HTTP/1.1"];c.push("Content-Type: application/json; charset=utf-8");var d=cj();null!=d&&c.push("Authorization: "+d);a=a.body?JSON.stringify(a.body):"";return[c.join("\r\n")+"\r\n\r\n"+a,b]};
445
446
  var dj=function(a,b,c){a=n(b.split("--"+a.split("; boundary=")[1]));for(b=a.next();!b.done;b=a.next())if(b=b.value.split("\r\n\r\n"),!(3>b.length)){var d=b[0].match(/\r\nContent-ID: <response-([^>]*)>/)[1],e=Number(b[1].match(/^HTTP\S*\s(\d+)\s/)[1]);c(d,e,b.slice(2).join("\r\n\r\n"))}},Yi=function(){var a=ej.replace(/\/api$/,"");return"window"in r&&!a.match(/^https?:\/\/content-/)?a.replace(/^(https?:\/\/)(.*\.googleapis\.com)$/,"$1content-$2"):a},hj=function(a,b,c){var d=[];a&&(d=d.concat(fj));
446
447
  b&&d.push("https://www.googleapis.com/auth/devstorage.read_write");a=d=d.concat(c);c=b=0;for(var e={};c<a.length;){var f=a[c++],g=t(f)?"o"+xa(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(e,g)||(e[g]=!0,a[b++]=f)}a.length=b;return d},nj=function(a,b,c){ij&&jj&&ij({client_id:String(jj),immediate:!0,scope:kj.join(" ")},function(d){if("immediate_failed"==d.error&&c)c();else if("window"in r)try{lj(function(){try{r.gapi.auth.setToken(d),mj(a,b,d)}catch(e){b(e.toString())}})}catch(e){b(e.toString())}else mj(a,
447
- b,d)})},cj=function(){oj&&0<=Date.now()-oj&&pj();return qj},pj=function(){oj=qj=null},Vi=function(a,b,c,d){null!=a?ej=a:rj||(ej="https://earthengine.googleapis.com/api");null!=b?sj=b:rj||(sj="https://earthengine.googleapis.com");void 0!==c&&(tj=c);Ui=null!=d?d:Ui||"earthengine-legacy";rj=!0},$i=function(a,b,c,d,e,f){Vi();var g=uj,l="application/x-www-form-urlencoded";e&&(l="application/json",d&&d.startsWith("multipart")&&(l=d,d="POST"));d=d||"POST";l={"Content-Type":l};var m="0.1.331";"0.1.331"===
448
+ b,d)})},cj=function(){oj&&0<=Date.now()-oj&&pj();return qj},pj=function(){oj=qj=null},Vi=function(a,b,c,d){null!=a?ej=a:rj||(ej="https://earthengine.googleapis.com/api");null!=b?sj=b:rj||(sj="https://earthengine.googleapis.com");void 0!==c&&(tj=c);Ui=null!=d?d:Ui||"earthengine-legacy";rj=!0},$i=function(a,b,c,d,e,f){Vi();var g=uj,l="application/x-www-form-urlencoded";e&&(l="application/json",d&&d.startsWith("multipart")&&(l=d,d="POST"));d=d||"POST";l={"Content-Type":l};var m="0.1.334";"0.1.334"===
448
449
  m&&(m="latest");l["x-goog-api-client"]="ee-js/"+m;m=cj();if(null!=m)l.Authorization=m;else if(c&&ij&&jj)return nj(function(){vj(g,function(){$i(a,b,c,d)})}),null;b=b?b.clone():new ud;null!=wj&&b.add("key",wj);g&&(l["X-Earth-Engine-Computation-Profiling"]="1");Ui&&"earthengine-legacy"!==Ui&&(l["X-Goog-User-Project"]=Ui);b=xj(b,a);null!=tj&&(l["X-XSRF-Token"]=tj);null!=yj&&(l["X-Earth-Engine-App-ID-Token"]=yj);m=e||null;var p=b?b.toString():"";"POST"===d&&void 0===e?m=p:/^[\s\xa0]*$/.test(p)||(a+=-1!=
449
450
  a.indexOf("?")?"&":"?",a+=p);e=a.startsWith("/")?ej+a:a;if(c)return zj.push(Aj(e,c,d,m,l,f)),Bj.jf(),null;p=function(D,R){this.setRequestHeader&&this.setRequestHeader(R,D)};var v=0;for(f=null!=f?f:5;;){var B=Gi(Ei);B.open(d,e,!1);sb(l,p,B);B.send(m);if(429!=B.status||v>f)break;v++}return Cj(B.status,function(D){try{return B.getResponseHeader(D)}catch(R){return null}},B.responseText,g,void 0,e,d)},Aj=function(a,b,c,d,e,f){var g=0,l={url:a,method:c,content:d,headers:e},m=uj,p=null!=f?f:10;l.callback=
450
451
  function(v){v=v.target;if(429==v.getStatus()&&g<p)return g++,setTimeout(function(){zj.push(l);Bj.jf()},Math.min(12E4,1E3*Math.pow(2,g))),null;var B=Cj,D=v.getStatus(),R=u(v.getResponseHeader,v);try{var Y=v.s?v.s.responseText:""}catch(U){zi(v.ia,"Can not get responseText: "+U.message),Y=""}return B(D,R,Y,m,b,a,c)};return l},vj=function(a,b){var c=uj;try{uj=a,b.call(void 0)}finally{uj=c}},Cj=function(a,b,c,d,e,f,g){var l=d?b("X-Earth-Engine-Computation-Profile"):"";l&&d&&d(l);var m=function(Y){try{var U=
451
- JSON.parse(Y);return t(U)&&"error"in U&&"message"in U.error?U.error.message:{parsed:U}}catch(Ib){return"Invalid JSON: "+Y}},p=function(Y){if(0===Y)return"Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.";if(200>Y||300<=Y)return"Server returned HTTP code: "+Y+" for "+g+" "+f},v;b=b("Content-Type")||"application/json";d=b.replace(/;.*/,"");if("application/json"===d||"text/json"===d)if(b=m(c),b.parsed){var B=b.parsed;void 0===B&&(v="Malformed response: "+
452
- c)}else v=b;else if("multipart/mixed"===d){B={};var D=[];dj(b,c,function(Y,U,Ib){Ib=m(Ib);Ib.parsed&&(B[Y]=Ib.parsed);(U=(Ib.parsed?"":Ib)||p(U))&&D.push(Y+": "+U)});D.length&&(v=D.join("\n"))}else var R="Response was unexpectedly not JSON, but "+d;v=v||p(a)||R;if(e)return e(B,v),null;if(!v)return B;throw Error(v);},lj=function(a){var b=function(){r.gapi.config.update("client/cors",!0);ij||(ij=r.gapi.auth.authorize);a()};if(t(r.gapi)&&t(r.gapi.auth)&&"function"===typeof r.gapi.auth.authorize)b();
452
+ JSON.parse(Y);return t(U)&&"error"in U&&"message"in U.error?U.error.message:{parsed:U}}catch(Jb){return"Invalid JSON: "+Y}},p=function(Y){if(0===Y)return"Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.";if(200>Y||300<=Y)return"Server returned HTTP code: "+Y+" for "+g+" "+f},v;b=b("Content-Type")||"application/json";d=b.replace(/;.*/,"");if("application/json"===d||"text/json"===d)if(b=m(c),b.parsed){var B=b.parsed;void 0===B&&(v="Malformed response: "+
453
+ c)}else v=b;else if("multipart/mixed"===d){B={};var D=[];dj(b,c,function(Y,U,Jb){Jb=m(Jb);Jb.parsed&&(B[Y]=Jb.parsed);(U=(Jb.parsed?"":Jb)||p(U))&&D.push(Y+": "+U)});D.length&&(v=D.join("\n"))}else var R="Response was unexpectedly not JSON, but "+d;v=v||p(a)||R;if(e)return e(B,v),null;if(!v)return B;throw Error(v);},lj=function(a){var b=function(){r.gapi.config.update("client/cors",!0);ij||(ij=r.gapi.auth.authorize);a()};if(t(r.gapi)&&t(r.gapi.auth)&&"function"===typeof r.gapi.auth.authorize)b();
453
454
  else{for(var c=Date.now().toString(36);c in r;)c+="_";r[c]=function(){delete r[c];b()};ci(cd({onload:c}))}},mj=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;var d=setTimeout(nj,.9*c);void 0!==d.unref&&d.unref();oj=Date.now()+c}qj=b;a&&a()}else b&&b(c.error||"Unknown error.")},Zi=function(a){var b=new ud;a=n(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=n(c.value);c=d.next().value;d=d.next().value;b.set(c,
454
455
  d)}return b},zj=[],Bj=new Jh(function(){var a=zj.shift();if(a){var b=a.url,c=a.callback,d=a.method,e=a.content;a=a.headers;var f=Dj,g=new Hi;Ki.push(g);c&&g.Ya("complete",c);g.Zc("ready",g.Mk);f&&(g.Fc=Math.max(0,f));g.send(b,d,e,a)}0==zj.length||Bj.jf()},350),ej=null,sj=null,tj=null,yj=null,xj=dc,qj=null,oj=null,jj=null,kj=[],ij=null,fj=["https://www.googleapis.com/auth/earthengine","https://www.googleapis.com/auth/cloud-platform"],Zc=new Uc(Sc,"https://apis.google.com/js/client.js?onload=%{onload}"),
455
456
  wj=null,rj=!1,Dj=0,uj=null;w("ee.api.ListAssetsResponse",dg);w("ee.api.EarthEngineAsset",Ye);w("ee.api.Operation",gg);w("ee.api.ListFeaturesResponse",eg);w("ee.api.FeatureViewLocation",$e);var Ej=function(){},Fj=function(a){if(void 0===a||null===a)a=Ec;return new Ae({jb:a})},Gj=function(a){return new Ae({Qa:a})},Hj=function(a){return new Ae({Ha:new ze({values:a})})},Ij=function(a){return new Ae({Ia:new Ve({values:a})})},Jj=function(a,b){return new Ae({Aa:new Jf({functionName:a,arguments:b})})},Kj=function(a,b){return new Ae({Aa:new Jf({Xa:a,arguments:b})})},Lj=function(a,b){return new Ae({Wa:new If({nc:a,body:b})})},Mj=function(a){if(!a)return"AUTO_JPEG_PNG";a=a.toUpperCase();switch(a){case "JPG":return"JPEG";
456
457
  case "AUTO":return"AUTO_JPEG_PNG";case "TIF":case "TIFF":case "GEOTIF":case "GEOTIFF":return"GEO_TIFF";case "TF_RECORD":case "TFRECORD":return"TF_RECORD_IMAGE";case "NUMPY":return"NPY";case "ZIPPED_TIF":case "ZIPPED_TIFF":case "ZIPPED_GEOTIF":case "ZIPPED_GEOTIFF":return"ZIPPED_GEO_TIFF";case "ZIPPED_TIF_PER_BAND":case "ZIPPED_TIFF_PER_BAND":case "ZIPPED_GEOTIF_PER_BAND":case "ZIPPED_GEOTIFF_PER_BAND":return"ZIPPED_GEO_TIFF_PER_BAND";default:return a}},Nj=function(a){if(!a)return"CSV";a=a.toUpperCase();
457
- switch(a){case "TF_RECORD":case "TFRECORD":return"TF_RECORD_TABLE";case "JSON":case "GEOJSON":return"GEO_JSON";default:return a}},Oj=function(a){if(!a)return"VERTICAL";a=a.toUpperCase();if("HORIZONTAL"!==a||"VERTICAL"!==a)throw Error('Orientation must be "horizontal" or "vertical"');return a},Pj=function(a){if(!a)return[];if("string"===typeof a)return a.split(",");if(Array.isArray(a))return a;throw Error("Invalid band list "+a);},Sj=function(a){var b=new ff,c=!1;"palette"in a&&(c=a.palette,b.cd="string"===
458
+ switch(a){case "TF_RECORD":case "TFRECORD":return"TF_RECORD_TABLE";case "JSON":case "GEOJSON":return"GEO_JSON";default:return a}},Oj=function(a){if(!a)return"VERTICAL";a=a.toUpperCase();if("HORIZONTAL"!==a&&"VERTICAL"!==a)throw Error('Orientation must be "horizontal" or "vertical"');return a},Pj=function(a){if(!a)return[];if("string"===typeof a)return a.split(",");if(Array.isArray(a))return a;throw Error("Invalid band list "+a);},Sj=function(a){var b=new ff,c=!1;"palette"in a&&(c=a.palette,b.cd="string"===
458
459
  typeof c?c.split(","):c,c=!0);var d=[];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 e=b.cd?b.cd.length-1:255;d=Qj(a,"bias","gain").map(function(f){var g=-f.bias/f.gain;return{min:g,max:e/f.gain+g}})}else if("min"in a||"max"in a)d=Qj(a,"min","max");0!==d.length&&(b.Sf=d.map(function(f){return new We(f)}),c=!0);a=Rj(a.gamma);if(1<a.length)throw Error("Only one gamma value is supported");1===a.length&&(b.gamma=a[0],c=!0);return c?
459
460
  b:null},Rj=function(a){return a?a.split(",").map(Number):[]},Qj=function(a,b,c){var d=Rj(a[b]),e=Rj(a[c]);if(0===d.length)return e.map(function(f){var g={};return g[b]=0,g[c]=f,g});if(0===e.length)return d.map(function(f){var g={};return g[b]=f,g[c]=1,g});if(d.length!==e.length)throw Error("Length of "+b+" and "+c+" must match.");return d.map(function(f,g){var l={};return l[b]=f,l[c]=e[g],l})},Tj=function(a){var b=function(g){var l={};l.description=g.description||"";l.type=g.type||"";null!=g.td&&
460
461
  (l.name=g.td);void 0!==g.defaultValue&&(l["default"]=g.defaultValue);null!=g.optional&&(l.optional=g.optional);return l},c=function(g){var l={};l.args=(g.arguments||[]).map(b);l.description=g.description||"";l.returns=g.Yf||"";null!=g.hidden&&(l.hidden=g.hidden);g.preview&&(l.preview=g.preview);g.deprecated&&(l.deprecated=g.Ze);g.sourceCodeUri&&(l.sourceCodeUri=g.sourceCodeUri);return l},d={};a=n(a.Ic||[]);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.name.replace(/^algorithms\//,"");d[f]=
@@ -511,26 +512,26 @@ break;default:throw Error("Ranking rule direction '"+c+"' is invalid. Directions
511
512
  var il=function(a,b,c,d,e){if("window"in r)throw Error("Use of private key authentication in the browser is insecure. Consider using OAuth, instead.");d=hj(!e,!e,d||[]);jj=a.client_email;kj=d;var f=new google.auth.JWT(a.client_email,null,a.private_key,d,null);ij=function(g,l){f.authorize(function(m,p){m?l({error:m}):l({access_token:p.access_token,token_type:p.token_type,expires_in:(p.expiry_date-Date.now())/1E3})})};nj(b,c)};w("ee.data.authenticateViaPrivateKey",il);
512
513
  w("ee.data.setExpressionAugmenter",function(a){jl=a||dc});var jl=dc;w("ee.data.setAuthToken",function(a,b,c,d,e,f,g,l){e=hj(!l,!1,e||[]);jj=a;kj=e;var m={token_type:b,access_token:c,state:e.join(" "),expires_in:d};mj(void 0,void 0,m);!1===g?f&&f():lj(function(){r.gapi.auth.setToken(m);f&&f()})});w("ee.data.refreshAuthToken",nj);w("ee.data.setAuthTokenRefresher",function(a){ij=a});w("ee.data.getAuthToken",cj);w("ee.data.clearAuthToken",pj);w("ee.data.getAuthClientId",function(){return jj});
513
514
  w("ee.data.getAuthScopes",function(){return kj});w("ee.data.setDeadline",function(a){Dj=a});w("ee.data.setParamAugmenter",function(a){xj=a||dc});
514
- var kl=function(a){a=new I(a);return J(a,a.Ic().list(Xi(),{prettyPrint:!1}).then(Tj))},ml=function(a,b){if("string"===typeof a.image)throw Error("Image as JSON string not supported.");if(void 0!==a.version)throw Error("Image version specification not supported.");a=new ef({name:null,l:jl(Fk(a.image)),F:Mj(a.format),ca:Pj(a.bands),kc:Sj(a)});b=new I(b);return J(b,b.maps().create(Xi(),a,{fields:["name"]}).then(function(c){return ll(c.name,"")}))};w("ee.data.getMapId",ml);
515
- var nl=function(a,b,c,d){if(!a.formatTileUrl){var e=ll(a.mapid,a.token,a.urlFormat);a.urlFormat=e.urlFormat;a.formatTileUrl=e.formatTileUrl}return a.formatTileUrl(b,c,d)};w("ee.data.getTileUrl",nl);
516
- var ll=function(a,b,c){var d=void 0===c?"":c;d||(Vi(),c=sj,d=b?c+"/map/"+a+"/{z}/{x}/{y}?token="+b:c+"/v1alpha/"+a+"/tiles/{z}/{x}/{y}");return{mapid:a,token:b,formatTileUrl:function(e,f,g){var l=Math.pow(2,g);e%=l;e=String(0>e?e+l:e);return d.replace("{x}",e).replace("{y}",f).replace("{z}",g)},urlFormat:d}},ol=function(a,b){var c=a.visParams?jl(Fk(a.visParams)):null;a=new zf({name:null,Qb:a.assetId,mapName:a.mapName,zg:c});b=new I(b);return J(b,(new Hg(b.P)).create(Xi(),a,{fields:["name"]}).then(function(d){var e=
517
- d.name.split("/").pop();return{token:e,formatTileUrl:function(f,g,l){return sj+"/v1alpha/"+d.name+"/tiles/"+l+"/"+f+"/"+g},rawTilesKey:e.substring(0,e.lastIndexOf("-"))}}))};w("ee.data.getFeatureViewTilesKey",ol);var pl=function(a,b,c){c=new I(c);a=Yj(a);var d=c.assets();b=void 0===b?{}:b;var e=void 0===e?{}:e;d.j.C(a,RegExp("^projects/[^/]+/assets/.*$"));e=H(d.j,{body:null,B:"GET",D:"earthengine.projects.assets.listFeatures",path:"/"+d.m+"/"+a+":listFeatures",u:G(b,e),G:eg});return J(c,e)};
518
- w("ee.data.listFeatures",pl);var rl=function(a,b){a={l:jl(Fk(a))};var c=ql();c&&(a.workloadTag=c);b=new I(b);return J(b,Rg(b.value(),Xi(),new Ne(a)).then(function(d){return d.result}))};w("ee.data.computeValue",rl);
515
+ var kl=function(a){a=new I(a);return J(a,a.Ic().list(Xi(),{prettyPrint:!1}).then(Tj))},nl=function(a,b){if("string"===typeof a.image)throw Error("Image as JSON string not supported.");if(void 0!==a.version)throw Error("Image version specification not supported.");a=new ef({name:null,l:jl(Fk(a.image)),F:Mj(a.format),ca:Pj(a.bands),kc:Sj(a)});var c={fields:"name"},d=ll();d&&(c.workloadTag=d);b=new I(b);return J(b,b.maps().create(Xi(),a,c).then(function(e){return ml(e.name,"")}))};
516
+ w("ee.data.getMapId",nl);var ol=function(a,b,c,d){if(!a.formatTileUrl){var e=ml(a.mapid,a.token,a.urlFormat);a.urlFormat=e.urlFormat;a.formatTileUrl=e.formatTileUrl}return a.formatTileUrl(b,c,d)};w("ee.data.getTileUrl",ol);
517
+ var ml=function(a,b,c){var d=void 0===c?"":c;d||(Vi(),c=sj,d=b?c+"/map/"+a+"/{z}/{x}/{y}?token="+b:c+"/v1alpha/"+a+"/tiles/{z}/{x}/{y}");return{mapid:a,token:b,formatTileUrl:function(e,f,g){var l=Math.pow(2,g);e%=l;e=String(0>e?e+l:e);return d.replace("{x}",e).replace("{y}",f).replace("{z}",g)},urlFormat:d}},pl=function(a,b){var c=a.visParams?jl(Fk(a.visParams)):null;a=new zf({name:null,Qb:a.assetId,mapName:a.mapName,zg:c});b=new I(b);return J(b,(new Hg(b.P)).create(Xi(),a,{fields:["name"]}).then(function(d){var e=
518
+ d.name.split("/").pop();return{token:e,formatTileUrl:function(f,g,l){return sj+"/v1alpha/"+d.name+"/tiles/"+l+"/"+f+"/"+g},rawTilesKey:e.substring(0,e.lastIndexOf("-"))}}))};w("ee.data.getFeatureViewTilesKey",pl);var ql=function(a,b,c){c=new I(c);a=Yj(a);var d=c.assets();b=void 0===b?{}:b;var e=void 0===e?{}:e;d.j.C(a,RegExp("^projects/[^/]+/assets/.*$"));e=H(d.j,{body:null,B:"GET",D:"earthengine.projects.assets.listFeatures",path:"/"+d.m+"/"+a+":listFeatures",u:G(b,e),G:eg});return J(c,e)};
519
+ w("ee.data.listFeatures",ql);var rl=function(a,b){a={l:jl(Fk(a))};var c=ll();c&&(a.workloadTag=c);b=new I(b);return J(b,Rg(b.value(),Xi(),new Ne(a)).then(function(d){return d.result}))};w("ee.data.computeValue",rl);
519
520
  var sl=function(a,b){if("string"===typeof a.image)throw Error("Image as JSON string not supported.");if(void 0!==a.version)throw Error("Image version specification not supported.");if(void 0!==a.region)throw Error('"region" not supported in call to ee.data.getThumbId. Use ee.Image.getThumbURL.');if(void 0!==a.dimensions)throw Error('"dimensions" is not supported in call to ee.data.getThumbId. Use ee.Image.getThumbURL.');a=new yg({name:null,l:jl(Fk(a.image)),F:Mj(a.format),ea:a.name,ca:Pj(a.bands),
520
- kc:Sj(a),grid:null});b=new I(b);return J(b,(new Pg(b.P)).create(Xi(),a,{fields:["name"]}).then(function(c){return{thumbid:c.name,token:""}}))};w("ee.data.getThumbId",sl);
521
- var tl=function(a,b){var c=new wf({framesPerSecond:a.framesPerSecond||null,maxFrames:a.maxFrames||null,maxPixelsPerFrame:a.maxPixelsPerFrame||null});a=new Cg({name:null,l:jl(Fk(a.imageCollection)),F:Mj(a.format),Ra:c,grid:null});b=new I(b);return J(b,(new Ug(b.P)).create(Xi(),a,{fields:["name"]}).then(function(d){return{thumbid:d.name,token:""}}))};w("ee.data.getVideoThumbId",tl);
522
- var ul=function(a,b){a=new Hf({name:null,l:jl(Fk(a.imageCollection)),F:Mj(a.format),orientation:Oj(a.orientation),grid:null});b=new I(b);return J(b,(new Ig(b.P)).create(Xi(),a,{fields:["name"]}).then(function(c){return{thumbid:c.name,token:""}}))};w("ee.data.getFilmstripThumbId",ul);var vl=function(a){return sj+"/v1alpha/"+a.thumbid+":getPixels"};w("ee.data.makeThumbUrl",vl);
521
+ kc:Sj(a),grid:null});var c={fields:"name"},d=ll();d&&(c.workloadTag=d);b=new I(b);return J(b,(new Pg(b.P)).create(Xi(),a,c).then(function(e){return{thumbid:e.name,token:""}}))};w("ee.data.getThumbId",sl);
522
+ var tl=function(a,b){var c=new wf({framesPerSecond:a.framesPerSecond||null,maxFrames:a.maxFrames||null,maxPixelsPerFrame:a.maxPixelsPerFrame||null});a=new Cg({name:null,l:jl(Fk(a.imageCollection)),F:Mj(a.format),Ra:c,grid:null});c={fields:"name"};var d=ll();d&&(c.workloadTag=d);b=new I(b);return J(b,(new Ug(b.P)).create(Xi(),a,c).then(function(e){return{thumbid:e.name,token:""}}))};w("ee.data.getVideoThumbId",tl);
523
+ var ul=function(a,b){a=new Hf({name:null,l:jl(Fk(a.imageCollection)),F:Mj(a.format),orientation:Oj(a.orientation),grid:null});var c={fields:"name"},d=ll();d&&(c.workloadTag=d);b=new I(b);return J(b,(new Ig(b.P)).create(Xi(),a,c).then(function(e){return{thumbid:e.name,token:""}}))};w("ee.data.getFilmstripThumbId",ul);var vl=function(a){return sj+"/v1alpha/"+a.thumbid+":getPixels"};w("ee.data.makeThumbUrl",vl);
523
524
  var xl=function(a,b){a=Object.assign({},a);a.id&&(a.image=new L(a.id));if("string"===typeof a.image)throw Error("Image as serialized JSON string not supported.");if(!a.image)throw Error("Missing ID or image parameter.");a.filePerBand=!1!==a.filePerBand;a.format=a.format||(a.filePerBand?"ZIPPED_GEO_TIFF_PER_BAND":"ZIPPED_GEO_TIFF");if(null!=a.region&&(null!=a.scale||null!=a.crs_transform)&&null!=a.dimensions)throw Error("Cannot specify (bounding region, crs_transform/scale, dimensions) simultaneously.");
524
- if("string"===typeof a.bands)try{a.bands=JSON.parse(a.bands)}catch(d){a.bands=Pj(a.bands)}if(a.bands&&!Array.isArray(a.bands))throw Error("Bands parameter must be an array.");a.bands&&a.bands.every(function(d){return"string"===typeof d})&&(a.bands=a.bands.map(function(d){return{id:d}}));if(a.bands&&a.bands.some(function(d){return null==d.id}))throw Error("Each band dictionary must have an id.");"string"===typeof a.region&&(a.region=JSON.parse(a.region));if("string"===typeof a.crs_transform)try{a.crs_transform=
525
- JSON.parse(a.crs_transform)}catch(d){}var c=wl(a.image,a);a=new yg({name:null,l:jl(Fk(c)),F:Mj(a.format),ea:a.name,ca:a.bands&&Pj(a.bands.map(function(d){return d.id})),grid:null});b=new I(b);return J(b,(new Pg(b.P)).create(Xi(),a,{fields:["name"]}).then(function(d){return{docid:d.name,token:""}}))};w("ee.data.getDownloadId",xl);var yl=function(a){Vi();return sj+"/v1alpha/"+a.docid+":getPixels"};w("ee.data.makeDownloadUrl",yl);
526
- var zl=function(a,b){b=new I(b);var c=Nj(a.format),d=jl(Fk(a.table)),e=null;if(null!=a.selectors)if("string"===typeof a.selectors)e=a.selectors.split(",");else if(Array.isArray(a.selectors)&&a.selectors.every(function(f){return"string"===typeof f}))e=a.selectors;else throw Error("'selectors' parameter must be an array of strings.");a=new wg({name:null,l:d,F:c,selectors:e,filename:a.filename||null});return J(b,(new Og(b.P)).create(Xi(),a,{fields:["name"]}).then(function(f){return{docid:f.name||"",
527
- token:""}}))};w("ee.data.getTableDownloadId",zl);var Al=function(a){return sj+"/v1alpha/"+a.docid+":getFeatures"};w("ee.data.makeTableDownloadUrl",Al);var Bl=function(a,b){var c=function(d){return Math.floor(Math.random()*Math.pow(2,4*d)).toString(16).padStart(d,"0")};a=bb(a||1).map(function(){return[c(8),c(4),"4"+c(3),(8+Math.floor(4*Math.random())).toString(16)+c(3),c(12)].join("-")});return b?b(a):a};w("ee.data.newTaskId",Bl);
525
+ if("string"===typeof a.bands)try{a.bands=JSON.parse(a.bands)}catch(e){a.bands=Pj(a.bands)}if(a.bands&&!Array.isArray(a.bands))throw Error("Bands parameter must be an array.");a.bands&&a.bands.every(function(e){return"string"===typeof e})&&(a.bands=a.bands.map(function(e){return{id:e}}));if(a.bands&&a.bands.some(function(e){return null==e.id}))throw Error("Each band dictionary must have an id.");"string"===typeof a.region&&(a.region=JSON.parse(a.region));if("string"===typeof a.crs_transform)try{a.crs_transform=
526
+ JSON.parse(a.crs_transform)}catch(e){}var c=wl(a.image,a);a=new yg({name:null,l:jl(Fk(c)),F:Mj(a.format),ea:a.name,ca:a.bands&&Pj(a.bands.map(function(e){return e.id})),grid:null});c={fields:"name"};var d=ll();d&&(c.workloadTag=d);b=new I(b);return J(b,(new Pg(b.P)).create(Xi(),a,c).then(function(e){return{docid:e.name,token:""}}))};w("ee.data.getDownloadId",xl);var yl=function(a){Vi();return sj+"/v1alpha/"+a.docid+":getPixels"};w("ee.data.makeDownloadUrl",yl);
527
+ var zl=function(a,b){b=new I(b);var c=Nj(a.format),d=jl(Fk(a.table)),e=null;if(null!=a.selectors)if("string"===typeof a.selectors)e=a.selectors.split(",");else if(Array.isArray(a.selectors)&&a.selectors.every(function(f){return"string"===typeof f}))e=a.selectors;else throw Error("'selectors' parameter must be an array of strings.");a=new wg({name:null,l:d,F:c,selectors:e,filename:a.filename||null});c={fields:"name"};if(d=ll())c.workloadTag=d;return J(b,(new Og(b.P)).create(Xi(),a,c).then(function(f){return{docid:f.name||
528
+ "",token:""}}))};w("ee.data.getTableDownloadId",zl);var Al=function(a){return sj+"/v1alpha/"+a.docid+":getFeatures"};w("ee.data.makeTableDownloadUrl",Al);var Bl=function(a,b){var c=function(d){return Math.floor(Math.random()*Math.pow(2,4*d)).toString(16).padStart(d,"0")};a=bb(a||1).map(function(){return[c(8),c(4),"4"+c(3),(8+Math.floor(4*Math.random())).toString(16)+c(3),c(12)].join("-")});return b?b(a):a};w("ee.data.newTaskId",Bl);
528
529
  var Dl=function(a,b){var c=Cl(a).map(kk);if(1===c.length)return a=new I(b),J(a,a.Pa().get(c[0]).then(function(e){return[lk(e)]}));a=new bj(b);var d=a.Pa();return a.send(c.map(function(e){return[e,d.get(e)]}),function(e){return c.map(function(f){return lk(e[f])})})};w("ee.data.getTaskStatus",Dl);var Cl=function(a){if("string"===typeof a)return[a];if(Array.isArray(a))return a;throw Error("Invalid value: expected a string or an array of strings.");},Fl=function(a){return El(void 0,a)};
529
530
  w("ee.data.getTaskList",Fl);var El=function(a,b){return b?(Gl(a,function(c,d){return b(c?{tasks:c.map(lk)}:null,d)}),null):{tasks:Gl(a).map(lk)}};w("ee.data.getTaskListWithLimit",El);
530
531
  var Gl=function(a,b){var c=[],d={pageSize:500},e=function(l){$a(c,l.Pa||[]);!l.nextPageToken||a&&c.length>=a?b&&b(a?c.slice(0,a):c):(d.pageToken=l.nextPageToken,J(f,g.list(Xi(),d).then(e)));return null},f=new I(b?function(l,m){return m&&b(l,m)}:void 0),g=f.Pa();J(f,g.list(Xi(),d).then(e));return b?null:a?c.slice(0,a):c};w("ee.data.listOperations",Gl);
531
532
  var Hl=function(a,b){a=Cl(a);var c=new Ge;if(1===a.length)b=new I(b),J(b,b.Pa().cancel(a[0],c));else{b=new bj(b);var d=b.Pa();b.send(a.map(function(e){return[e,d.cancel(e,c)]}))}};w("ee.data.cancelOperation",Hl);var Il=function(a,b){var c=Cl(a).map(kk);if(!Array.isArray(a))return a=new I(b),J(a,a.Pa().get(c[0]));a=new bj(b);var d=a.Pa();return a.send(c.map(function(e){return[e,d.get(e)]}))};w("ee.data.getOperation",Il);var Kl=function(a,b){return Jl(a,"CANCEL",b)};w("ee.data.cancelTask",Kl);
532
533
  var Jl=function(a,b,c){if(!yb(Ll,b))throw Error("Invalid action: "+b);a=Cl(a);a=a.map(kk);Hl(a,c);return null};w("ee.data.updateTask",Jl);
533
- var Rl=function(a,b,c){b.id=a;var d=b.type;a=null!=b.sourceUrl?{__source_url__:b.sourceUrl}:{};if("workloadTag"in b)b.workloadTag||delete b.workloadTag;else{var e=ql();e&&(b.workloadTag=e)}var f=new I(c);c=function(g){return J(f,g.then(mk))};switch(d){case "EXPORT_IMAGE":return b=Ml(b,a),c(f.image().Ma(Xi(),b));case "EXPORT_FEATURES":return b=Xk(b),b.l=jl(b.l,a),c(f.table().Ma(Xi(),b));case "EXPORT_VIDEO":return b=Nl(b,a),c(f.video().Ma(Xi(),b));case "EXPORT_TILES":return b=Ol(b,a),c(f.map().Ma(Xi(),
534
+ var Rl=function(a,b,c){b.id=a;var d=b.type;a=null!=b.sourceUrl?{__source_url__:b.sourceUrl}:{};if("workloadTag"in b)b.workloadTag||delete b.workloadTag;else{var e=ll();e&&(b.workloadTag=e)}var f=new I(c);c=function(g){return J(f,g.then(mk))};switch(d){case "EXPORT_IMAGE":return b=Ml(b,a),c(f.image().Ma(Xi(),b));case "EXPORT_FEATURES":return b=Xk(b),b.l=jl(b.l,a),c(f.table().Ma(Xi(),b));case "EXPORT_VIDEO":return b=Nl(b,a),c(f.video().Ma(Xi(),b));case "EXPORT_TILES":return b=Ol(b,a),c(f.map().Ma(Xi(),
534
535
  b));case "EXPORT_VIDEO_MAP":return b=Pl(b),c((new Tg(f.P)).Ma(Xi(),b));case "EXPORT_CLASSIFIER":return b=Ql(b),c((new Gg(f.P)).Ma(Xi(),b));default:throw Error("Unable to start processing for task of type "+d);}};w("ee.data.startProcessing",Rl);
535
536
  var Ml=function(a,b){var c=Sl(a);if(null==c.element)throw Error('"element" not found in params '+c);var d=new jf({l:Fk(c.element),description:Rk(c.description),pa:null,ua:null,grid:null,Lf:Rk(c.maxPixels),requestId:Rk(c.id),O:K(c.maxWorkers)}),e=Sk(c);switch(e){case "GOOGLE_CLOUD_STORAGE":case "DRIVE":d.pa=$k(c,e);break;case "ASSET":e=c.pyramidingPolicy||{};try{e=JSON.parse(e)}catch(g){}var f="PYRAMIDING_POLICY_UNSPECIFIED";"string"===typeof e?(f=e,e={}):e[".default"]&&(f=e[".default"],delete e[".default"]);
536
537
  c=new kf({Ja:Vk(c),pyramidingPolicy:f,Rf:Bb(e)?null:e,tileSize:K(c.shardSize)});d.ua=c;break;default:throw Error('Export destination "'+e+'" unknown');}d.l=jl(d.l,b);a.workloadTag&&(d.workloadTag=a.workloadTag);return d},Nl=function(a,b){var c=Tl(a);if(null==c.element)throw Error('"element" not found in params '+c);var d=new xf({l:Fk(c.element),description:Rk(c.description),Ra:new wf({framesPerSecond:K(c.framesPerSecond),maxFrames:K(c.maxFrames),maxPixelsPerFrame:Rk(c.maxPixels)}),pa:null,requestId:Rk(c.id),
@@ -550,7 +551,7 @@ var mm=function(a,b,c){a=Yj(a);b=ik(b);b=new vg({mb:b});c=new I(c);var d=c.asset
550
551
  var nm=function(a,b,c){var d=dk(b);b=Fc(d.i()).keys.filter(function(e){return"properties"!==e&&F(d,e)}).map(function(e){return e.replace(/([A-Z])/g,function(f,g){return"_"+g.toLowerCase()})}).concat(Object.keys(d.properties||{}).map(function(e){return'properties."'+e+'"'}));lm(a,d,b,c)};w("ee.data.setAssetProperties",nm);
551
552
  var om=function(a,b){var c=Yj(a);b=new I(b);var d=b.assets(),e=d.j.C;d.j.C=function(f,g){"^projects\\/[^/]+\\/assets\\/.+$"===g.source&&(g=RegExp("^projects/[^/]+/assets/.*$"));return e(f,g)};c=d.get(c,{prettyPrint:!1});return J(b,c.then(function(f){if(!(f instanceof Ye&&f.quota))throw Error(a+" is not a root folder.");f=f.quota;var g,l=Number(f.Ne||0),m=null!=(g=f.If)?g:f.Hf;return{asset_count:{usage:l,limit:Number(m||0)},asset_size:{usage:Number(f.sizeBytes||0),limit:Number(f.Zb||0)}}}))};
552
553
  w("ee.data.getAssetRootQuota",om);var pm=function(){this.default=this.tag=""};pm.prototype.get=function(){return this.tag};pm.prototype.set=function(a){this.tag=this.validate(a)};pm.prototype.reset=function(){this.tag=this.default};
553
- pm.prototype.validate=function(a){if(null==a||""===a)return"";a=String(a);if(!/^([a-z0-9]|[a-z0-9][-_\.a-z0-9]{0,61}[a-z0-9])$/g.test(a))throw Error('Invalid tag, "'+a+'". Tags must be 1-63 characters, beginning and ending with a lowercase alphanumeric character([a-z0-9]) with dashes (-), underscores (_), dots (.), andlowercase alphanumerics between.');return a};var ql=function(){return el(pm).get()};w("ee.data.getWorkloadTag",ql);var qm=function(a){el(pm).set(a)};w("ee.data.setWorkloadTag",qm);
554
+ pm.prototype.validate=function(a){if(null==a||""===a)return"";a=String(a);if(!/^([a-z0-9]|[a-z0-9][-_\.a-z0-9]{0,61}[a-z0-9])$/g.test(a))throw Error('Invalid tag, "'+a+'". Tags must be 1-63 characters, beginning and ending with a lowercase alphanumeric character([a-z0-9]) with dashes (-), underscores (_), dots (.), andlowercase alphanumerics between.');return a};var ll=function(){return el(pm).get()};w("ee.data.getWorkloadTag",ll);var qm=function(a){el(pm).set(a)};w("ee.data.setWorkloadTag",qm);
554
555
  var rm=function(a){var b=el(pm);b.default=b.validate(a);el(pm).set(a)};w("ee.data.setDefaultWorkloadTag",rm);var sm=function(a){a&&(a=el(pm),a.default=a.validate(""));el(pm).reset()};w("ee.data.resetWorkloadTag",sm);var Ll={zl:"CANCEL",Cl:"UPDATE"};var M=function(a,b,c){if(!(this instanceof M))return tm(M,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.T=c||null};x(M,Ej);w("ee.ComputedObject",M);M.prototype.evaluate=function(a){if(!a||"function"!==typeof a)throw Error("evaluate() requires a callback function.");rl(this,a)};M.prototype.evaluate=M.prototype.evaluate;
555
556
  M.prototype.U=function(a){return rl(this,a)};M.prototype.getInfo=M.prototype.U;M.prototype.encode=function(a){if(null===this.I&&null===this.args)return{type:"ArgumentRef",value:this.T};var b={},c;for(c in this.args)void 0!==this.args[c]&&(b[c]=a(this.args[c]));b={type:"Invocation",arguments:b};a=a(this.I);b["string"===typeof a?"functionName":"function"]=a;return b};
556
557
  M.prototype.oa=function(a){if(null===this.I&&null===this.args){a=this.T||a.Qi;if(!a)throw Error("A mapped function's arguments cannot be used in client-side operations");return new Ae({Pb:a})}var b={},c;for(c in this.args)void 0!==this.args[c]&&(b[c]=Gj(Lk(a,this.args[c])));return"string"===typeof this.I?Jj(String(this.I),b):this.I.Bd(a,b)};M.prototype.xa=function(a){return(void 0===a?0:a)?Bk(this):Jk(this)};M.prototype.serialize=M.prototype.xa;
@@ -599,7 +600,7 @@ d):Hm("Image.clip",d));return a},Kn=function(a,b){var c=b.crs||"",d=b.crsTransfo
599
600
  b));c.image=a;return c},Nn=function(a,b){var c="bands gain bias min max gamma palette opacity forceRgbOutput".split(" "),d={};sb(a,function(e,f){Wa(c,f)?d[f]=e:b[f]=e});return d},wl=function(a,b){b=Object.assign({},b);var c=function(e){var f={};["crs","crs_transform","dimensions","region"].forEach(function(g){g in e&&(f[g]=e[g])});null!=e.scale&&null==e.dimensions&&(f.scale=e.scale);return f},d=function(e){var f=e.id;if(void 0===f)throw Error("Each band dictionary must have an id.");f=a.select(f);
600
601
  var g=c(b);e=c(e);e=c(Object.assign(g,e));f=Kn(f,e);return f=Ln(f,e,{})};"ZIPPED_GEO_TIFF_PER_BAND"===b.format&&b.bands&&b.bands.length?(d=b.bands.map(d),a=d.reduce(function(e,f){return O("Image.addBands",e,f,null,!0)},d.shift())):(d=c(b),a=Kn(a,d),a=Ln(a,d,{}));return a};var L=function(a){if(!(this instanceof L))return tm(L,arguments);if(a instanceof L)return a;Pn();var b=arguments.length;if(0==b||1==b&&void 0===a)Q.call(this,new N("Image.mask"),{image:new L(0),mask:new L(0)});else if(1==b)if(xm(a))Q.call(this,new N("Image.constant"),{value:a});else if(ym(a))Q.call(this,new N("Image.load"),{id:a});else{if(Array.isArray(a))return Qn(Sa(a,function(d){return new L(d)}));if(a instanceof M)"Array"==a.name()?Q.call(this,new N("Image.constant"),{value:a}):Q.call(this,a.I,
601
602
  a.args,a.T);else throw Error("Unrecognized argument type to convert to an Image: "+a);}else if(2==b){b=arguments[0];var c=arguments[1];if(ym(b)&&xm(c))Q.call(this,new N("Image.load"),{id:b,version:c});else throw Error("Unrecognized argument types to convert to an Image: "+arguments);}else throw Error("The Image constructor takes at most 2 arguments ("+b+" given)");};x(L,Q);w("ee.Image",L);var Rn=!1,Pn=function(){Rn||(Om(L,"Image","Image"),Rn=!0)};L.prototype.U=function(a){return L.L.U.call(this,a)};
602
- L.prototype.getInfo=L.prototype.U;L.prototype.getMap=function(a,b){var c=this,d=P(L.prototype.getMap,arguments),e=On(this,d.visParams);if(d.callback){var f=d.callback;ml(e,function(g,l){g=g?Object.assign(g,{image:c}):void 0;f(g,l)})}else return d=ml(e),d.image=this,d};L.prototype.getMap=L.prototype.getMap;L.prototype.ub=function(a,b){var c=P(L.prototype.ub,arguments),d=c.params?Db(c.params):{};d.image=this;if(c.callback){var e=c.callback;xl(d,function(f,g){f?e(yl(f)):e(null,g)})}else return yl(xl(d))};
603
+ L.prototype.getInfo=L.prototype.U;L.prototype.getMap=function(a,b){var c=this,d=P(L.prototype.getMap,arguments),e=On(this,d.visParams);if(d.callback){var f=d.callback;nl(e,function(g,l){g=g?Object.assign(g,{image:c}):void 0;f(g,l)})}else return d=nl(e),d.image=this,d};L.prototype.getMap=L.prototype.getMap;L.prototype.ub=function(a,b){var c=P(L.prototype.ub,arguments),d=c.params?Db(c.params):{};d.image=this;if(c.callback){var e=c.callback;xl(d,function(f,g){f?e(yl(f)):e(null,g)})}else return yl(xl(d))};
603
604
  L.prototype.getDownloadURL=L.prototype.ub;L.prototype.Hd=function(a,b){var c=P(L.prototype.ub,arguments),d=c.params?Db(c.params):{},e={},f=Kn(this,d);f=Ln(f,d,e);d=On(f,e);return c.callback?(sl(d,c.callback),null):sl(d)};L.prototype.getThumbId=L.prototype.Hd;L.prototype.pf=function(a,b){var c=P(L.prototype.pf,arguments);if(c.callback)this.Hd(c.params,function(d,e){var f="";if(void 0===e)try{f=vl(d)}catch(g){e=String(g.message)}c.callback(f,e)});else return vl(this.Hd(c.params))};
604
605
  L.prototype.getThumbURL=L.prototype.pf;var Sn=function(a,b,c){var d=P(Sn,arguments);return Qn([d.r,d.g,d.b],["vis-red","vis-green","vis-blue"])};L.rgb=Sn;var Tn=function(a){return Qn(Array.prototype.slice.call(arguments),null)};L.cat=Tn;var Qn=function(a,b){if(0==a.length)return O("Image.constant",[]);for(var c=new L(a[0]),d=1;d<a.length;d++)c=O("Image.addBands",c,a[d]);b&&(c=c.select([".*"],b));return c};
605
606
  L.prototype.select=function(a){var b=Array.prototype.slice.call(arguments),c={input:this,bandSelectors:b[0]||[]};if(2<b.length||ym(b[0])||xm(b[0])){for(var d=0;d<b.length;d++)if(!(ym(b[d])||xm(b[d])||b[d]instanceof M))throw Error("Illegal argument to select(): "+b[d]);c.bandSelectors=b}else b[1]&&(c.newNames=b[1]);return Hm("Image.select",c)};L.prototype.select=L.prototype.select;
@@ -619,7 +620,7 @@ bo.prototype.start=function(a,b){var c=this;z(this.Ue,"Task config must be speci
619
620
  w("module$contents$ee$batch_Export.image.toAsset",fo);var ho=function(a,b,c,d,e,f,g,l,m,p,v,B,D,R,Y){var U=P(ho,arguments);U=go(U,"GOOGLE_CLOUD_STORAGE","EXPORT_IMAGE");return eo(U)};w("module$contents$ee$batch_Export.image.toCloudStorage",ho);var io=function(a,b,c,d,e,f,g,l,m,p,v,B,D,R,Y){var U=P(io,arguments);U=go(U,"DRIVE","EXPORT_IMAGE");return eo(U)};w("module$contents$ee$batch_Export.image.toDrive",io);
620
621
  var jo=function(a,b,c,d,e,f,g,l,m,p,v,B,D){var R=P(jo,arguments);R=go(R,"GOOGLE_CLOUD_STORAGE","EXPORT_TILES");return eo(R)};w("module$contents$ee$batch_Export.map.toCloudStorage",jo);var ko=function(a,b,c,d,e,f,g){var l=P(ko,arguments);l=go(l,"GOOGLE_CLOUD_STORAGE","EXPORT_FEATURES");return eo(l)};w("module$contents$ee$batch_Export.table.toCloudStorage",ko);var lo=function(a,b,c,d,e,f,g){var l=P(lo,arguments);l.type="EXPORT_FEATURES";l=go(l,"DRIVE","EXPORT_FEATURES");return eo(l)};
621
622
  w("module$contents$ee$batch_Export.table.toDrive",lo);var mo=function(a,b,c,d){var e=P(mo,arguments);e=go(e,"ASSET","EXPORT_FEATURES");return eo(e)};w("module$contents$ee$batch_Export.table.toAsset",mo);var no=function(a,b,c,d,e,f,g){var l=P(no,arguments);l=go(l,"FEATURE_VIEW","EXPORT_FEATURES");return eo(l)};w("module$contents$ee$batch_Export.table.toFeatureView",no);var oo=function(a,b,c,d,e,f,g,l,m,p,v,B){var D=P(oo,arguments);D=go(D,"GOOGLE_CLOUD_STORAGE","EXPORT_VIDEO");return eo(D)};
622
- w("module$contents$ee$batch_Export.video.toCloudStorage",oo);var po=function(a,b,c,d,e,f,g,l,m,p,v,B){var D=P(po,arguments);D=go(D,"DRIVE","EXPORT_VIDEO");return eo(D)};w("module$contents$ee$batch_Export.video.toDrive",po);var qo=function(a,b,c,d,e,f,g,l,m,p,v,B,D,R,Y,U,Ib,pq,qq,rq){var gj=P(qo,arguments);gj=go(gj,"GOOGLE_CLOUD_STORAGE","EXPORT_VIDEO_MAP");return eo(gj)};w("module$contents$ee$batch_Export.videoMap.toCloudStorage",qo);
623
+ w("module$contents$ee$batch_Export.video.toCloudStorage",oo);var po=function(a,b,c,d,e,f,g,l,m,p,v,B){var D=P(po,arguments);D=go(D,"DRIVE","EXPORT_VIDEO");return eo(D)};w("module$contents$ee$batch_Export.video.toDrive",po);var qo=function(a,b,c,d,e,f,g,l,m,p,v,B,D,R,Y,U,Jb,pq,qq,rq){var gj=P(qo,arguments);gj=go(gj,"GOOGLE_CLOUD_STORAGE","EXPORT_VIDEO_MAP");return eo(gj)};w("module$contents$ee$batch_Export.videoMap.toCloudStorage",qo);
623
624
  var ro=function(a,b,c){var d=P(ro,arguments);d=go(d,"ASSET","EXPORT_CLASSIFIER");return eo(d)};w("module$contents$ee$batch_Export.classifier.toAsset",ro);
624
625
  var co=function(a){var b=function(d){return d in a},c=so.find(b);z(1===Va(so,b),'Expected a single "image", "collection" or "classifier" key.');b=a[c];if(!(b instanceof L||b instanceof X||b instanceof Z||b instanceof Q||b instanceof M))throw Error("Unknown element type provided: "+typeof b+". Expected: ee.Image, ee.ImageCollection, ee.FeatureCollection, ee.Element or ee.ComputedObject.");delete a[c];return b},go=function(a,b,c){var d=void 0===d?!0:d;var e={type:c};Object.assign(e,a);switch(c){case "EXPORT_IMAGE":null==
625
626
  e.fileFormat&&(e.fileFormat="GeoTIFF");a=e.fileFormat;null==a&&(a="GEO_TIFF");a=a.toUpperCase();switch(a){case "TIFF":case "TIF":case "GEO_TIFF":case "GEOTIFF":a="GEO_TIFF";break;case "TF_RECORD":case "TF_RECORD_IMAGE":case "TFRECORD":a="TF_RECORD_IMAGE";break;default:throw Error("Invalid file format "+a+". Supported formats are: 'GEOTIFF', 'TFRECORD'.");}e.fileFormat=a;null!=e.formatOptions&&(a=to(e,a),delete e.formatOptions,Object.assign(e,a));e=uo(e,b);null!=e.crsTransform&&(e.crs_transform=e.crsTransform,
@@ -681,7 +682,7 @@ h.contains=function(a){return this.Va.contains(a)||this.xb.contains(a)};h.R=func
681
682
  h.remove=function(){var a=this.Ca,b=a.length,c=a[0];if(!(0>=b)){if(1==b)a.length=0;else{a[0]=a.pop();a=0;b=this.Ca;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,g=2*a+2;f=g<d&&b[g].getKey()<b[f].getKey()?g:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.pe}};h.aa=function(){for(var a=this.Ca,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].pe);return b};h.vb=function(){for(var a=this.Ca,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
682
683
  h.Lc=function(a){return this.Ca.some(function(b){return b.pe==a})};h.Sb=function(a){return this.Ca.some(function(b){return b.getKey()==a})};h.clone=function(){return new aq(this)};h.R=function(){return this.Ca.length};h.isEmpty=function(){return 0===this.Ca.length};h.clear=function(){this.Ca.length=0};var cq=function(){aq.apply(this,arguments)};q(cq,aq);cq.prototype.enqueue=function(a,b){bq(this,a,b)};cq.prototype.Nc=function(){return this.remove()};var dq=function(a,b){this.nh=void 0;this.ae=new cq;Yp.call(this,a,b)};x(dq,Yp);h=dq.prototype;h.Sc=function(a,b){if(!a)return(a=dq.L.Sc.call(this))&&this.delay&&(this.nh=r.setTimeout(u(this.Kd,this),this.delay)),a;this.ae.enqueue(void 0!==b?b:100,a);this.Kd()};h.Kd=function(){for(var a=this.ae;0<a.R();){var b=this.Sc();if(b)a.Nc().apply(this,[b]);else break}};h.Le=function(a){dq.L.Le.call(this,a);this.Kd()};h.qd=function(){dq.L.qd.call(this);this.Kd()};
683
684
  h.J=function(){dq.L.J.call(this);r.clearTimeout(this.nh);this.ae.clear();this.ae=null};var eq=function(a,b){y.call(this);this.Df=a;this.wa=b||null};q(eq,Jp);eq.prototype.Cf=function(a,b){var c=Pb(a,"status-changed",function(){switch(a.getStatus()){case "loaded":var e=a.sl["x-earth-engine-computation-profile"];this.wa&&e&&this.wa.Hk(a.ma.id,e);break;case "failed":case "aborted":this.wa&&""!==a.ma.id&&this.wa.ll(a.ma.id),Xb(c)}},void 0,this);a.Ea=this.Id(a.sb,a.zoom);var d=u(this.tf,this,a);fq().Sc(d,b)};eq.prototype.rf=function(){return this.Df.mapid+"-"+this.Df.token};
684
- eq.prototype.tf=function(a,b){var c=fq();if(a.Ua||"aborted"==a.getStatus())Zp(c,b);else{var d=Pb(a,"status-changed",function(){a.fe in Ip&&(Xb(d),Zp(c,b))});Hp(a)}};eq.prototype.Id=function(a,b){a=nl(this.Df,a.x,a.y,b);return this.wa&&this.wa.isEnabled()?a+"&profiling=1":a};var fq=function(){gq||(gq=new dq(0,4));return gq};w("ee.layers.EarthEngineTileSource",eq);var gq=null;var hq=function(a){y.call(this);this.Ii=a};q(hq,Jp);hq.prototype.Cf=function(a){a.Ea=this.Ii.formatTileUrl(a.sb.x,a.sb.y,a.zoom);Hp(a)};hq.prototype.rf=function(){return this.Ii.token};w("ee.layers.FeatureViewTileSource",hq);var jq=function(){A.call(this);this.ke=new iq(0,60);this.Bc=new mc};q(jq,A);jq.prototype.send=function(a,b,c,d,e){if(this.Bc.get(a))throw Error("[ee.MapTileManager] ID in use");b=new kq(a,b,d,u(this.oi,this),void 0!==e?e:1);this.Bc.set(a,b);a=u(this.tf,this,b);this.ke.Sc(a,c);return b};jq.prototype.abort=function(a){if(a=this.Bc.get(a))a.mc||(a.mc=!0,a.La=new Da("abort")),this.oi(a)};
685
+ eq.prototype.tf=function(a,b){var c=fq();if(a.Ua||"aborted"==a.getStatus())Zp(c,b);else{var d=Pb(a,"status-changed",function(){a.fe in Ip&&(Xb(d),Zp(c,b))});Hp(a)}};eq.prototype.Id=function(a,b){a=ol(this.Df,a.x,a.y,b);return this.wa&&this.wa.isEnabled()?a+"&profiling=1":a};var fq=function(){gq||(gq=new dq(0,4));return gq};w("ee.layers.EarthEngineTileSource",eq);var gq=null;var hq=function(a){y.call(this);this.Ii=a};q(hq,Jp);hq.prototype.Cf=function(a){a.Ea=this.Ii.formatTileUrl(a.sb.x,a.sb.y,a.zoom);Hp(a)};hq.prototype.rf=function(){return this.Ii.token};w("ee.layers.FeatureViewTileSource",hq);var jq=function(){A.call(this);this.ke=new iq(0,60);this.Bc=new mc};q(jq,A);jq.prototype.send=function(a,b,c,d,e){if(this.Bc.get(a))throw Error("[ee.MapTileManager] ID in use");b=new kq(a,b,d,u(this.oi,this),void 0!==e?e:1);this.Bc.set(a,b);a=u(this.tf,this,b);this.ke.Sc(a,c);return b};jq.prototype.abort=function(a){if(a=this.Bc.get(a))a.mc||(a.mc=!0,a.La=new Da("abort")),this.oi(a)};
685
686
  jq.prototype.tf=function(a,b){if(a.ga||a.mc)lq(this,b);else if(a.Ni=b,b.setActive(!0),b=new Mp,a.ga=b,!a.retry())throw Error("Cannot dispatch first request!");};jq.prototype.oi=function(a){this.Bc.remove(a.getId());a.ga&&(lq(this,a.Ni),a.ga.Ta());a.uf&&a.uf(a.La,a.ki)};var lq=function(a,b){b.setActive(!1);if(!Zp(a.ke,b))throw Error("Object not released");};jq.prototype.J=function(){A.prototype.J.call(this);this.ke.Ta();this.ke=null;var a=this.Bc;Qa(a.aa(),function(b){b.Ta()});a.clear();this.Bc=null};
686
687
  w("ee.MapTileManager",jq);var kq=function(a,b,c,d,e){y.call(this);this.fa=a;this.yl=b;this.gl=void 0!==e?e:1;this.uf=c;this.ec=d};q(kq,y);h=kq.prototype;h.getId=function(){return this.fa};h.getUrl=function(){return this.yl};h.Uk=function(a){if(this.mc)this.ec&&this.ec(this);else switch(a.type){case "load":this.La=a;this.ec&&this.ec(this);break;case "error":case "abort":this.retry()||(this.La=a,this.ec&&this.ec(this))}};h.J=function(){y.prototype.J.call(this);delete this.uf;delete this.ec};
687
688
  h.retry=function(){if(this.Hg>this.gl)return!1;this.Hg++;Pp(this.ga,this.fa);setTimeout(u(this.tl,this),0);return!0};
@@ -689,17 +690,18 @@ h.tl=function(){if(!this.mc){var a=u(function(d){this.mc||(Op(this.ga,this.fa,d)
689
690
  h.ga=null;h.Ni=null;h.La=null;h.ki=null;var mq=["load","abort","error"],nq=function(){y.call(this);this.Ga=!1};q(nq,y);nq.prototype.setActive=function(a){this.Ga=a};nq.prototype.isActive=function(){return this.Ga};var iq=function(a,b){dq.call(this,a,b)};q(iq,dq);iq.prototype.Ve=function(){return new nq};iq.prototype.zd=function(a){a.Ta()};iq.prototype.Mf=function(a){return!a.Ua&&!a.isActive()};var oq=function(a,b,c,d,e){Ac.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.tg=new vc;this.Nf=1;this.wa=e||null};q(oq,Ac);h=oq.prototype;h.Me=function(a){return Pb(this,"tileevent",a)};h.Xf=function(a){Xb(a)};
690
691
  h.getTile=function(a,b,c){if(b<this.minZoom||0>a.y||a.y>=1<<b)return a=c.createElement("IMG"),a.style.width="0px",a.style.height="0px",a;b=Bc(this,a,b);a=[this.url,b].join("/")+"?token="+this.token;this.wa&&this.wa.isEnabled()&&(a+="&profiling=1");b=[b,this.Ab,this.token].join("/");this.Ab+=1;c=$g("DIV",{id:b});var d=(new Date).getTime()/1E3;this.Cb.push(b);el(jq).send(b,a,d,u(this.Tk,this,c,b));lp(this);return c};h.Rc=function(){return this.Cb.length};
691
692
  h.releaseTile=function(a){el(jq).abort(a.id);if(void 0!==a.firstElementChild)var b=a.firstElementChild;else for(b=a.firstChild;b&&1!=b.nodeType;)b=b.nextSibling;this.tg.remove(b);""!==a.id&&(this.sg.remove(a.id),this.wa&&this.wa.ll(a.id))};h.setOpacity=function(a){this.Nf=a;var b=this.tg.Fa();hc(b,function(c){wp(c,a)})};
692
- h.Tk=function(a,b,c,d){"error"==c.type?(Xa(this.Cb,b),this.sg.add(b),this.dispatchEvent(c)):(Xa(this.Cb,b),c.target&&"load"==c.type&&(c=c.target,this.tg.add(c),1!=this.Nf&&wp(c,this.Nf),a.appendChild(c)),lp(this));this.wa&&null!==d&&this.wa.Hk(b,d)};w("ee.MapLayerOverlay",oq);oq.prototype.removeTileCallback=oq.prototype.Xf;oq.prototype.addTileCallback=oq.prototype.Me;oq.prototype.getTile=oq.prototype.getTile;oq.prototype.setOpacity=oq.prototype.setOpacity;oq.prototype.releaseTile=oq.prototype.releaseTile;(function(){var a={},b="ee.ApiFunction._call ee.ApiFunction._apply ee.ApiFunction.lookup ee.batch.Export.table.toFeatureView ee.batch.Export.image.toDrive ee.batch.Export.classifier.toAsset ee.batch.Export.image.toCloudStorage ee.batch.Export.table.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.image.toAsset ee.batch.Export.table.toAsset ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.map.toCloudStorage ee.batch.Export.table.toDrive ee.batch.Export.video.toDrive ee.Collection.prototype.limit ee.Collection.prototype.sort ee.Collection.prototype.iterate ee.Collection.prototype.map ee.Collection.prototype.filter ee.Collection.prototype.filterMetadata ee.Collection.prototype.filterDate ee.Collection.prototype.filterBounds ee.ComputedObject.prototype.serialize ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.aside ee.data.getInfo ee.data.getOperation ee.data.cancelTask ee.data.getMapId ee.data.getTileUrl ee.data.updateTask ee.data.getList ee.data.startProcessing ee.data.listAssets ee.data.getFeatureViewTilesKey ee.data.listImages ee.data.listFeatures ee.data.listBuckets ee.data.computeValue ee.data.getAssetRoots ee.data.setWorkloadTag ee.data.newTaskId ee.data.createAssetHome ee.data.getThumbId ee.data.setDefaultWorkloadTag ee.data.authenticateViaOauth ee.data.createAsset ee.data.getVideoThumbId ee.data.getTaskStatus ee.data.getFilmstripThumbId ee.data.resetWorkloadTag ee.data.makeThumbUrl ee.data.updateAsset ee.data.startIngestion ee.data.authenticate ee.data.createFolder ee.data.setAssetAcl ee.data.getTaskList ee.data.renameAsset ee.data.authenticateViaPopup ee.data.getDownloadId ee.data.setAssetProperties ee.data.getTaskListWithLimit ee.data.copyAsset ee.data.authenticateViaPrivateKey ee.data.makeDownloadUrl ee.data.startTableIngestion ee.data.getAssetRootQuota ee.data.getTableDownloadId ee.data.listOperations ee.data.deleteAsset ee.data.cancelOperation ee.data.getAsset ee.data.getAssetAcl ee.data.makeTableDownloadUrl ee.data.getWorkloadTag ee.Date ee.Deserializer.fromCloudApiJSON ee.Deserializer.fromJSON ee.Deserializer.decodeCloudApi ee.Deserializer.decode ee.Dictionary ee.initialize ee.apply ee.TILE_SIZE ee.reset ee.InitState ee.Algorithms ee.call ee.Element.prototype.set ee.Feature.prototype.getMap ee.Feature.prototype.getInfo ee.Feature ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.select ee.FeatureCollection ee.Filter.gte ee.Filter.or ee.Filter.date ee.Filter ee.Filter.prototype.not ee.Filter.inList ee.Filter.metadata ee.Filter.eq ee.Filter.neq ee.Filter.gt ee.Filter.bounds ee.Filter.lte ee.Filter.lt ee.Filter.and ee.Function.prototype.apply ee.Function.prototype.call ee.Geometry.prototype.toGeoJSONString ee.Geometry.Point ee.Geometry.BBox ee.Geometry.LinearRing ee.Geometry ee.Geometry.MultiPoint ee.Geometry.prototype.serialize ee.Geometry.MultiPolygon ee.Geometry.MultiLineString ee.Geometry.Rectangle ee.Geometry.LineString ee.Geometry.Polygon ee.Geometry.prototype.toGeoJSON ee.Image.prototype.getInfo ee.Image.prototype.rename ee.Image.prototype.getThumbURL ee.Image.prototype.getThumbId ee.Image.prototype.clip ee.Image.prototype.select ee.Image.prototype.expression ee.Image.cat ee.Image ee.Image.prototype.getMap ee.Image.prototype.getDownloadURL ee.Image.rgb ee.ImageCollection.prototype.select ee.ImageCollection ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.first ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.getInfo ee.List ee.Number ee.Serializer.toReadableJSON ee.Serializer.encodeCloudApi ee.Serializer.toReadableCloudApiJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.toCloudApiJSON ee.Serializer.encode ee.Serializer.toJSON ee.String ee.Terrain".split(" "),
693
- c=[["name","var_args"],["name","namedArgs"],["name"],"collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking".split(" "),"image opt_description opt_folder opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions".split(" "),["classifier","opt_description","opt_assetId"],"image opt_description opt_bucket opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions".split(" "),
694
- "collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices".split(" "),"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "),"image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize".split(" "),["collection","opt_description","opt_assetId","opt_maxVertices"],
695
- "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles opt_minTimeMachineZoomSubset opt_maxTimeMachineZoomSubset opt_tileWidth opt_tileHeight opt_tileStride opt_videoFormat opt_version opt_mapsApiKey opt_bucketCorsUris".split(" "),"image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey opt_bucketCorsUris".split(" "),
696
- "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices".split(" "),"collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "),["max","opt_property","opt_ascending"],["property","opt_ascending"],["algorithm","opt_first"],["algorithm","opt_dropNulls"],["filter"],["name","operator","value"],["start","opt_end"],["geometry"],["legacy"],
697
- ["callback"],["opt_callback"],["func","var_args"],["id","opt_callback"],["operationName","opt_callback"],["taskId","opt_callback"],["params","opt_callback"],["id","x","y","z"],["taskId","action","opt_callback"],["params","opt_callback"],["taskId","params","opt_callback"],["parent","opt_params","opt_callback"],["params","opt_callback"],["parent","opt_params","opt_callback"],["asset","params","opt_callback"],["project","opt_callback"],["obj","opt_callback"],["opt_callback"],["tag"],["opt_count","opt_callback"],
698
- ["requestedId","opt_callback"],["params","opt_callback"],["tag"],"clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "),["value","opt_path","opt_force","opt_properties","opt_callback"],["params","opt_callback"],["taskId","opt_callback"],["params","opt_callback"],["opt_resetDefault"],["id"],["assetId","asset","updateFields","opt_callback"],["taskId","request","opt_callback"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],
699
- ["path","opt_force","opt_callback"],["assetId","aclUpdate","opt_callback"],["opt_callback"],["sourceId","destinationId","opt_callback"],["opt_success","opt_error"],["params","opt_callback"],["assetId","properties","opt_callback"],["opt_limit","opt_callback"],["sourceId","destinationId","opt_overwrite","opt_callback"],["privateKey","opt_success","opt_error","opt_extraScopes","opt_suppressDefaultScopes"],["id"],["taskId","request","opt_callback"],["rootId","opt_callback"],["params","opt_callback"],
700
- ["opt_limit","opt_callback"],["assetId","opt_callback"],["operationName","opt_callback"],["id","opt_callback"],["assetId","opt_callback"],["id"],[],["date","opt_tz"],["json"],["json"],["json"],["json"],["opt_dict"],"opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "),["func","namedArgs"],[],[],[],[],["func","var_args"],["var_args"],["opt_visParams","opt_callback"],["opt_callback"],["geometry","opt_properties"],["opt_callback"],["opt_visParams","opt_callback"],
701
- ["opt_format","opt_selectors","opt_filename","opt_callback"],["propertySelectors","opt_newProperties","opt_retainGeometry"],["args","opt_column"],["name","value"],["var_args"],["start","opt_end"],["opt_filter"],[],["opt_leftField","opt_rightValue","opt_rightField","opt_leftValue"],["name","operator","value"],["name","value"],["name","value"],["name","value"],["geometry","opt_errorMargin"],["name","value"],["name","value"],["var_args"],["namedArgs"],["var_args"],[],["coords","opt_proj"],["west","south",
702
- "east","north"],["coords","opt_proj","opt_geodesic","opt_maxError"],["geoJson","opt_proj","opt_geodesic","opt_evenOdd"],["coords","opt_proj"],["legacy"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj","opt_geodesic","opt_evenOdd"],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],[],["opt_callback"],["var_args"],["params","opt_callback"],["params",
703
- "opt_callback"],["geometry"],["var_args"],["expression","opt_map"],["var_args"],["opt_args"],["opt_visParams","opt_callback"],["params","opt_callback"],["r","g","b"],["selectors","opt_names"],["args"],["params","opt_callback"],["params","opt_callback"],[],["opt_visParams","opt_callback"],["opt_callback"],["list"],["number"],["obj"],["obj"],["obj"],["obj"],["obj"],["obj","opt_isCompound"],["obj"],["string"],[]];[O,Hm,Gm,no,io,ro,ho,ko,oo,fo,mo,qo,jo,lo,po,V.prototype.limit,V.prototype.sort,V.prototype.Kh,
704
- V.prototype.map,V.prototype.filter,V.prototype.hf,V.prototype.gf,V.prototype.vh,M.prototype.xa,M.prototype.evaluate,M.prototype.U,M.prototype.Dg,Yl,Il,Kl,ml,nl,Jl,$l,Rl,am,ol,bm,pl,cm,rl,dm,qm,Bl,em,sl,rm,gl,fm,tl,Dl,ul,sm,vl,lm,Vl,hl,gm,mm,Fl,hm,fl,xl,nm,El,im,il,yl,Xl,om,zl,Gl,jm,Hl,Yl,km,Al,ql,Io,Ro,Mo,No,Lo,So,ap,gp,256,dp,ep,cp,fp,Q.prototype.set,W.prototype.getMap,W.prototype.U,W,X.prototype.U,X.prototype.getMap,X.prototype.ub,X.prototype.select,X,xn,Bn,Cn,T,T.prototype.xc,Dn,Fn,un,vn,yn,En,
705
- zn,wn,An,Bm.prototype.apply,Bm.prototype.call,S.prototype.vg,$m,en,jn,S,cn,S.prototype.xa,mn,kn,dn,hn,ln,S.prototype.je,L.prototype.U,L.prototype.pi,L.prototype.pf,L.prototype.Hd,L.prototype.clip,L.prototype.select,L.prototype.l,Tn,L,L.prototype.getMap,L.prototype.ub,Sn,Z.prototype.select,Z,Z.prototype.mf,Z.prototype.sf,Z.prototype.first,Z.prototype.getMap,Z.prototype.U,Un,yo,Dk,Gk,Kk,Ik,Jk,Ak,Bk,Bo,Vo].forEach(function(d,e){d&&(a[d.toString()]={name:b[e],paramNames:c[e]})});r.EXPORTED_FN_INFO=a})();}).call(this);
693
+ h.Tk=function(a,b,c,d){"error"==c.type?(Xa(this.Cb,b),this.sg.add(b),this.dispatchEvent(c)):(Xa(this.Cb,b),c.target&&"load"==c.type&&(c=c.target,this.tg.add(c),1!=this.Nf&&wp(c,this.Nf),a.appendChild(c)),lp(this));this.wa&&null!==d&&this.wa.Hk(b,d)};w("ee.MapLayerOverlay",oq);oq.prototype.removeTileCallback=oq.prototype.Xf;oq.prototype.addTileCallback=oq.prototype.Me;oq.prototype.getTile=oq.prototype.getTile;oq.prototype.setOpacity=oq.prototype.setOpacity;oq.prototype.releaseTile=oq.prototype.releaseTile;(function(){var a={},b="ee.ApiFunction.lookup ee.ApiFunction._apply ee.ApiFunction._call ee.batch.Export.map.toCloudStorage ee.batch.Export.classifier.toAsset ee.batch.Export.image.toAsset ee.batch.Export.table.toAsset ee.batch.Export.video.toDrive ee.batch.Export.table.toFeatureView ee.batch.Export.table.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.image.toCloudStorage ee.batch.Export.table.toDrive ee.batch.Export.image.toDrive ee.Collection.prototype.filter ee.Collection.prototype.filterDate ee.Collection.prototype.map ee.Collection.prototype.limit ee.Collection.prototype.sort ee.Collection.prototype.iterate ee.Collection.prototype.filterBounds ee.Collection.prototype.filterMetadata ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.serialize ee.data.getInfo ee.data.getTableDownloadId ee.data.getOperation ee.data.setWorkloadTag ee.data.createAssetHome ee.data.getDownloadId ee.data.setDefaultWorkloadTag ee.data.createAsset ee.data.cancelTask ee.data.resetWorkloadTag ee.data.makeThumbUrl ee.data.startIngestion ee.data.updateTask ee.data.makeDownloadUrl ee.data.getList ee.data.createFolder ee.data.getThumbId ee.data.startProcessing ee.data.listAssets ee.data.renameAsset ee.data.makeTableDownloadUrl ee.data.copyAsset ee.data.listImages ee.data.startTableIngestion ee.data.deleteAsset ee.data.listBuckets ee.data.getVideoThumbId ee.data.getFilmstripThumbId ee.data.getAsset ee.data.getAssetAcl ee.data.getAssetRoots ee.data.computeValue ee.data.newTaskId ee.data.getMapId ee.data.getTaskStatus ee.data.listFeatures ee.data.getTileUrl ee.data.updateAsset ee.data.getFeatureViewTilesKey ee.data.authenticateViaPrivateKey ee.data.setAssetAcl ee.data.authenticateViaOauth ee.data.getTaskList ee.data.setAssetProperties ee.data.getTaskListWithLimit ee.data.authenticate ee.data.getAssetRootQuota ee.data.listOperations ee.data.cancelOperation ee.data.authenticateViaPopup ee.data.getWorkloadTag ee.Date ee.Deserializer.fromCloudApiJSON ee.Deserializer.fromJSON ee.Deserializer.decodeCloudApi ee.Deserializer.decode ee.Dictionary ee.initialize ee.apply ee.TILE_SIZE ee.reset ee.InitState ee.Algorithms ee.call ee.Element.prototype.set ee.Feature.prototype.getMap ee.Feature.prototype.getInfo ee.Feature ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.select ee.FeatureCollection ee.Filter.gte ee.Filter.or ee.Filter.date ee.Filter ee.Filter.inList ee.Filter.prototype.not ee.Filter.metadata ee.Filter.eq ee.Filter.neq ee.Filter.gt ee.Filter.bounds ee.Filter.lte ee.Filter.lt ee.Filter.and ee.Function.prototype.apply ee.Function.prototype.call ee.Geometry.prototype.toGeoJSONString ee.Geometry.Point ee.Geometry.BBox ee.Geometry.LinearRing ee.Geometry ee.Geometry.MultiPoint ee.Geometry.prototype.serialize ee.Geometry.MultiPolygon ee.Geometry.MultiLineString ee.Geometry.Rectangle ee.Geometry.LineString ee.Geometry.Polygon ee.Geometry.prototype.toGeoJSON ee.Image.prototype.getInfo ee.Image.prototype.rename ee.Image.prototype.getThumbURL ee.Image.prototype.getThumbId ee.Image.prototype.clip ee.Image.prototype.select ee.Image.prototype.expression ee.Image.cat ee.Image ee.Image.prototype.getMap ee.Image.prototype.getDownloadURL ee.Image.rgb ee.ImageCollection.prototype.select ee.ImageCollection ee.ImageCollection.prototype.first ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.getInfo ee.List ee.Number ee.Serializer.toReadableJSON ee.Serializer.encodeCloudApi ee.Serializer.toReadableCloudApiJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.toCloudApiJSON ee.Serializer.encode ee.Serializer.toJSON ee.String ee.Terrain".split(" "),
694
+ c=[["name"],["name","namedArgs"],["name","var_args"],"image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey opt_bucketCorsUris".split(" "),["classifier","opt_description","opt_assetId"],"image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize".split(" "),["collection","opt_description","opt_assetId","opt_maxVertices"],
695
+ "collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "),"collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking".split(" "),"collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices".split(" "),"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "),
696
+ "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles opt_minTimeMachineZoomSubset opt_maxTimeMachineZoomSubset opt_tileWidth opt_tileHeight opt_tileStride opt_videoFormat opt_version opt_mapsApiKey opt_bucketCorsUris".split(" "),"image opt_description opt_bucket opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions".split(" "),
697
+ "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices".split(" "),"image opt_description opt_folder opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions".split(" "),["filter"],["start","opt_end"],["algorithm","opt_dropNulls"],["max","opt_property","opt_ascending"],["property","opt_ascending"],["algorithm","opt_first"],["geometry"],
698
+ ["name","operator","value"],["callback"],["opt_callback"],["func","var_args"],["legacy"],["id","opt_callback"],["params","opt_callback"],["operationName","opt_callback"],["tag"],["requestedId","opt_callback"],["params","opt_callback"],["tag"],["value","opt_path","opt_force","opt_properties","opt_callback"],["taskId","opt_callback"],["opt_resetDefault"],["id"],["taskId","request","opt_callback"],["taskId","action","opt_callback"],["id"],["params","opt_callback"],["path","opt_force","opt_callback"],
699
+ ["params","opt_callback"],["taskId","params","opt_callback"],["parent","opt_params","opt_callback"],["sourceId","destinationId","opt_callback"],["id"],["sourceId","destinationId","opt_overwrite","opt_callback"],["parent","opt_params","opt_callback"],["taskId","request","opt_callback"],["assetId","opt_callback"],["project","opt_callback"],["params","opt_callback"],["params","opt_callback"],["id","opt_callback"],["assetId","opt_callback"],["opt_callback"],["obj","opt_callback"],["opt_count","opt_callback"],
700
+ ["params","opt_callback"],["taskId","opt_callback"],["asset","params","opt_callback"],["id","x","y","z"],["assetId","asset","updateFields","opt_callback"],["params","opt_callback"],["privateKey","opt_success","opt_error","opt_extraScopes","opt_suppressDefaultScopes"],["assetId","aclUpdate","opt_callback"],"clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "),["opt_callback"],["assetId","properties","opt_callback"],["opt_limit","opt_callback"],["clientId",
701
+ "success","opt_error","opt_extraScopes","opt_onImmediateFailed"],["rootId","opt_callback"],["opt_limit","opt_callback"],["operationName","opt_callback"],["opt_success","opt_error"],[],["date","opt_tz"],["json"],["json"],["json"],["json"],["opt_dict"],"opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "),["func","namedArgs"],[],[],[],[],["func","var_args"],["var_args"],["opt_visParams","opt_callback"],["opt_callback"],["geometry","opt_properties"],["opt_callback"],
702
+ ["opt_visParams","opt_callback"],["opt_format","opt_selectors","opt_filename","opt_callback"],["propertySelectors","opt_newProperties","opt_retainGeometry"],["args","opt_column"],["name","value"],["var_args"],["start","opt_end"],["opt_filter"],["opt_leftField","opt_rightValue","opt_rightField","opt_leftValue"],[],["name","operator","value"],["name","value"],["name","value"],["name","value"],["geometry","opt_errorMargin"],["name","value"],["name","value"],["var_args"],["namedArgs"],["var_args"],[],
703
+ ["coords","opt_proj"],["west","south","east","north"],["coords","opt_proj","opt_geodesic","opt_maxError"],["geoJson","opt_proj","opt_geodesic","opt_evenOdd"],["coords","opt_proj"],["legacy"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj","opt_geodesic","opt_evenOdd"],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],[],["opt_callback"],["var_args"],
704
+ ["params","opt_callback"],["params","opt_callback"],["geometry"],["var_args"],["expression","opt_map"],["var_args"],["opt_args"],["opt_visParams","opt_callback"],["params","opt_callback"],["r","g","b"],["selectors","opt_names"],["args"],[],["params","opt_callback"],["params","opt_callback"],["opt_visParams","opt_callback"],["opt_callback"],["list"],["number"],["obj"],["obj"],["obj"],["obj"],["obj"],["obj","opt_isCompound"],["obj"],["string"],[]];[Gm,Hm,O,jo,ro,fo,mo,po,no,ko,oo,qo,ho,lo,io,V.prototype.filter,
705
+ V.prototype.gf,V.prototype.map,V.prototype.limit,V.prototype.sort,V.prototype.Kh,V.prototype.vh,V.prototype.hf,M.prototype.evaluate,M.prototype.U,M.prototype.Dg,M.prototype.xa,Yl,zl,Il,qm,em,xl,rm,fm,Kl,sm,vl,Vl,Jl,yl,$l,gm,sl,Rl,am,hm,Al,im,bm,Xl,jm,cm,tl,ul,Yl,km,dm,rl,Bl,nl,Dl,ql,ol,lm,pl,il,mm,gl,Fl,nm,El,hl,om,Gl,Hl,fl,ll,Io,Ro,Mo,No,Lo,So,ap,gp,256,dp,ep,cp,fp,Q.prototype.set,W.prototype.getMap,W.prototype.U,W,X.prototype.U,X.prototype.getMap,X.prototype.ub,X.prototype.select,X,xn,Bn,Cn,T,Dn,
706
+ T.prototype.xc,Fn,un,vn,yn,En,zn,wn,An,Bm.prototype.apply,Bm.prototype.call,S.prototype.vg,$m,en,jn,S,cn,S.prototype.xa,mn,kn,dn,hn,ln,S.prototype.je,L.prototype.U,L.prototype.pi,L.prototype.pf,L.prototype.Hd,L.prototype.clip,L.prototype.select,L.prototype.l,Tn,L,L.prototype.getMap,L.prototype.ub,Sn,Z.prototype.select,Z,Z.prototype.first,Z.prototype.mf,Z.prototype.sf,Z.prototype.getMap,Z.prototype.U,Un,yo,Dk,Gk,Kk,Ik,Jk,Ak,Bk,Bo,Vo].forEach(function(d,e){d&&(a[d.toString()]={name:b[e],paramNames:c[e]})});
707
+ r.EXPORTED_FN_INFO=a})();}).call(this);
@@ -5616,9 +5616,7 @@ ee.TileEvent = function(count) {
5616
5616
  this.count = count;
5617
5617
  };
5618
5618
  goog.inherits(ee.TileEvent, goog.events.Event);
5619
- var module$exports$tslib = {}, module$contents$tslib_extendStatics = Object.setPrototypeOf || {__proto__:[]} instanceof Array && function(d, b) {
5620
- d.__proto__ = b;
5621
- } || function(d, b) {
5619
+ var module$exports$tslib = {}, module$contents$tslib_extendStatics = Object.setPrototypeOf || function(d, b) {
5622
5620
  for (var p in b) {
5623
5621
  Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]);
5624
5622
  }
@@ -9903,18 +9901,23 @@ module$exports$eeapiclient$ee_api_client.EarthEngineDestination = function(param
9903
9901
  parameters = void 0 === parameters ? {} : parameters;
9904
9902
  module$exports$eeapiclient$domain_object.Serializable.call(this);
9905
9903
  this.Serializable$set("name", null == parameters.name ? null : parameters.name);
9904
+ this.Serializable$set("overwrite", null == parameters.overwrite ? null : parameters.overwrite);
9906
9905
  };
9907
9906
  $jscomp.inherits(module$exports$eeapiclient$ee_api_client.EarthEngineDestination, module$exports$eeapiclient$domain_object.Serializable);
9908
9907
  module$exports$eeapiclient$ee_api_client.EarthEngineDestination.prototype.getConstructor = function() {
9909
9908
  return module$exports$eeapiclient$ee_api_client.EarthEngineDestination;
9910
9909
  };
9911
9910
  module$exports$eeapiclient$ee_api_client.EarthEngineDestination.prototype.getPartialClassMetadata = function() {
9912
- return {keys:["name"]};
9911
+ return {keys:["name", "overwrite"]};
9913
9912
  };
9914
9913
  $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.EarthEngineDestination.prototype, {name:{configurable:!0, enumerable:!0, get:function() {
9915
9914
  return this.Serializable$has("name") ? this.Serializable$get("name") : null;
9916
9915
  }, set:function(value) {
9917
9916
  this.Serializable$set("name", value);
9917
+ }}, overwrite:{configurable:!0, enumerable:!0, get:function() {
9918
+ return this.Serializable$has("overwrite") ? this.Serializable$get("overwrite") : null;
9919
+ }, set:function(value) {
9920
+ this.Serializable$set("overwrite", value);
9918
9921
  }}});
9919
9922
  module$exports$eeapiclient$ee_api_client.EarthEngineMapParameters = function module$contents$eeapiclient$ee_api_client_EarthEngineMapParameters() {
9920
9923
  };
@@ -17100,7 +17103,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
17100
17103
  ee.apiclient = {};
17101
17104
  var module$contents$ee$apiclient_apiclient = {};
17102
17105
  ee.apiclient.VERSION = module$exports$ee$apiVersion.V1ALPHA;
17103
- ee.apiclient.API_CLIENT_VERSION = "0.1.331";
17106
+ ee.apiclient.API_CLIENT_VERSION = "0.1.334";
17104
17107
  ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
17105
17108
  ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
17106
17109
  ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
@@ -17381,8 +17384,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
17381
17384
  var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
17382
17385
  body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
17383
17386
  method = method || "POST";
17384
- var headers = {"Content-Type":contentType,}, version = "0.1.331";
17385
- "0.1.331" === version && (version = "latest");
17387
+ var headers = {"Content-Type":contentType,}, version = "0.1.334";
17388
+ "0.1.334" === version && (version = "latest");
17386
17389
  headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
17387
17390
  var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
17388
17391
  if (null != authToken) {
@@ -17785,7 +17788,7 @@ ee.rpc_convert.orientation = function(orientation) {
17785
17788
  return "VERTICAL";
17786
17789
  }
17787
17790
  var upper = orientation.toUpperCase();
17788
- if ("HORIZONTAL" !== upper || "VERTICAL" !== upper) {
17791
+ if ("HORIZONTAL" !== upper && "VERTICAL" !== upper) {
17789
17792
  throw Error('Orientation must be "horizontal" or "vertical"');
17790
17793
  }
17791
17794
  return upper;
@@ -19087,8 +19090,10 @@ ee.data.getMapId = function(params, opt_callback) {
19087
19090
  if (void 0 !== params.version) {
19088
19091
  throw Error("Image version specification not supported.");
19089
19092
  }
19090
- var map = new module$exports$eeapiclient$ee_api_client.EarthEngineMap({name:null, expression:ee.data.expressionAugmenter_(ee.Serializer.encodeCloudApiExpression(params.image)), fileFormat:ee.rpc_convert.fileFormat(params.format), bandIds:ee.rpc_convert.bandList(params.bands), visualizationOptions:ee.rpc_convert.visualizationOptions(params),}), call = new module$contents$ee$apiclient_Call(opt_callback);
19091
- return call.handle(call.maps().create(call.projectsPath(), map, {fields:["name"]}).then(function(response) {
19093
+ var map = new module$exports$eeapiclient$ee_api_client.EarthEngineMap({name:null, expression:ee.data.expressionAugmenter_(ee.Serializer.encodeCloudApiExpression(params.image)), fileFormat:ee.rpc_convert.fileFormat(params.format), bandIds:ee.rpc_convert.bandList(params.bands), visualizationOptions:ee.rpc_convert.visualizationOptions(params),}), queryParams = {fields:"name"}, workloadTag = ee.data.getWorkloadTag();
19094
+ workloadTag && (queryParams.workloadTag = workloadTag);
19095
+ var call = new module$contents$ee$apiclient_Call(opt_callback);
19096
+ return call.handle(call.maps().create(call.projectsPath(), map, queryParams).then(function(response) {
19092
19097
  return ee.data.makeMapId_(response.name, "");
19093
19098
  }));
19094
19099
  };
@@ -19153,23 +19158,29 @@ ee.data.getThumbId = function(params, opt_callback) {
19153
19158
  if (void 0 !== params.dimensions) {
19154
19159
  throw Error('"dimensions" is not supported in call to ee.data.getThumbId. Use ee.Image.getThumbURL.');
19155
19160
  }
19156
- var thumbnail = new module$exports$eeapiclient$ee_api_client.Thumbnail({name:null, expression:ee.data.expressionAugmenter_(ee.Serializer.encodeCloudApiExpression(params.image)), fileFormat:ee.rpc_convert.fileFormat(params.format), filenamePrefix:params.name, bandIds:ee.rpc_convert.bandList(params.bands), visualizationOptions:ee.rpc_convert.visualizationOptions(params), grid:null,}), call = new module$contents$ee$apiclient_Call(opt_callback);
19157
- return call.handle(call.thumbnails().create(call.projectsPath(), thumbnail, {fields:["name"]}).then(function(response) {
19161
+ var thumbnail = new module$exports$eeapiclient$ee_api_client.Thumbnail({name:null, expression:ee.data.expressionAugmenter_(ee.Serializer.encodeCloudApiExpression(params.image)), fileFormat:ee.rpc_convert.fileFormat(params.format), filenamePrefix:params.name, bandIds:ee.rpc_convert.bandList(params.bands), visualizationOptions:ee.rpc_convert.visualizationOptions(params), grid:null,}), queryParams = {fields:"name"}, workloadTag = ee.data.getWorkloadTag();
19162
+ workloadTag && (queryParams.workloadTag = workloadTag);
19163
+ var call = new module$contents$ee$apiclient_Call(opt_callback);
19164
+ return call.handle(call.thumbnails().create(call.projectsPath(), thumbnail, queryParams).then(function(response) {
19158
19165
  return {thumbid:response.name, token:""};
19159
19166
  }));
19160
19167
  };
19161
19168
  goog.exportSymbol("ee.data.getThumbId", ee.data.getThumbId);
19162
19169
  ee.data.getVideoThumbId = function(params, opt_callback) {
19163
19170
  var videoOptions = new module$exports$eeapiclient$ee_api_client.VideoOptions({framesPerSecond:params.framesPerSecond || null, maxFrames:params.maxFrames || null, maxPixelsPerFrame:params.maxPixelsPerFrame || null,}), request = new module$exports$eeapiclient$ee_api_client.VideoThumbnail({name:null, expression:ee.data.expressionAugmenter_(ee.Serializer.encodeCloudApiExpression(params.imageCollection)), fileFormat:ee.rpc_convert.fileFormat(params.format),
19164
- videoOptions:videoOptions, grid:null,}), call = new module$contents$ee$apiclient_Call(opt_callback);
19165
- return call.handle(call.videoThumbnails().create(call.projectsPath(), request, {fields:["name"]}).then(function(response) {
19171
+ videoOptions:videoOptions, grid:null,}), queryParams = {fields:"name"}, workloadTag = ee.data.getWorkloadTag();
19172
+ workloadTag && (queryParams.workloadTag = workloadTag);
19173
+ var call = new module$contents$ee$apiclient_Call(opt_callback);
19174
+ return call.handle(call.videoThumbnails().create(call.projectsPath(), request, queryParams).then(function(response) {
19166
19175
  return {thumbid:response.name, token:""};
19167
19176
  }));
19168
19177
  };
19169
19178
  goog.exportSymbol("ee.data.getVideoThumbId", ee.data.getVideoThumbId);
19170
19179
  ee.data.getFilmstripThumbId = function(params, opt_callback) {
19171
- var request = new module$exports$eeapiclient$ee_api_client.FilmstripThumbnail({name:null, expression:ee.data.expressionAugmenter_(ee.Serializer.encodeCloudApiExpression(params.imageCollection)), fileFormat:ee.rpc_convert.fileFormat(params.format), orientation:ee.rpc_convert.orientation(params.orientation), grid:null,}), call = new module$contents$ee$apiclient_Call(opt_callback);
19172
- return call.handle(call.filmstripThumbnails().create(call.projectsPath(), request, {fields:["name"]}).then(function(response) {
19180
+ var request = new module$exports$eeapiclient$ee_api_client.FilmstripThumbnail({name:null, expression:ee.data.expressionAugmenter_(ee.Serializer.encodeCloudApiExpression(params.imageCollection)), fileFormat:ee.rpc_convert.fileFormat(params.format), orientation:ee.rpc_convert.orientation(params.orientation), grid:null,}), queryParams = {fields:"name"}, workloadTag = ee.data.getWorkloadTag();
19181
+ workloadTag && (queryParams.workloadTag = workloadTag);
19182
+ var call = new module$contents$ee$apiclient_Call(opt_callback);
19183
+ return call.handle(call.filmstripThumbnails().create(call.projectsPath(), request, queryParams).then(function(response) {
19173
19184
  return {thumbid:response.name, token:""};
19174
19185
  }));
19175
19186
  };
@@ -19221,8 +19232,10 @@ ee.data.getDownloadId = function(params, opt_callback) {
19221
19232
  }
19222
19233
  var image = ee.data.images.buildDownloadIdImage(params.image, params), thumbnail = new module$exports$eeapiclient$ee_api_client.Thumbnail({name:null, expression:ee.data.expressionAugmenter_(ee.Serializer.encodeCloudApiExpression(image)), fileFormat:ee.rpc_convert.fileFormat(params.format), filenamePrefix:params.name, bandIds:params.bands && ee.rpc_convert.bandList(params.bands.map(function(band) {
19223
19234
  return band.id;
19224
- })), grid:null,}), call = new module$contents$ee$apiclient_Call(opt_callback);
19225
- return call.handle(call.thumbnails().create(call.projectsPath(), thumbnail, {fields:["name"]}).then(function(response) {
19235
+ })), grid:null,}), queryParams = {fields:"name"}, workloadTag = ee.data.getWorkloadTag();
19236
+ workloadTag && (queryParams.workloadTag = workloadTag);
19237
+ var call = new module$contents$ee$apiclient_Call(opt_callback);
19238
+ return call.handle(call.thumbnails().create(call.projectsPath(), thumbnail, queryParams).then(function(response) {
19226
19239
  return {docid:response.name, token:""};
19227
19240
  }));
19228
19241
  };
@@ -19245,8 +19258,9 @@ ee.data.getTableDownloadId = function(params, opt_callback) {
19245
19258
  throw Error("'selectors' parameter must be an array of strings.");
19246
19259
  }
19247
19260
  }
19248
- var table = new module$exports$eeapiclient$ee_api_client.Table({name:null, expression:expression, fileFormat:fileFormat, selectors:selectors, filename:params.filename || null,});
19249
- return call.handle(call.tables().create(call.projectsPath(), table, {fields:["name"]}).then(function(res) {
19261
+ var table = new module$exports$eeapiclient$ee_api_client.Table({name:null, expression:expression, fileFormat:fileFormat, selectors:selectors, filename:params.filename || null,}), queryParams = {fields:"name"}, workloadTag = ee.data.getWorkloadTag();
19262
+ workloadTag && (queryParams.workloadTag = workloadTag);
19263
+ return call.handle(call.tables().create(call.projectsPath(), table, queryParams).then(function(res) {
19250
19264
  return {docid:res.name || "", token:""};
19251
19265
  }));
19252
19266
  };