@google/earthengine 1.4.6 → 1.5.0
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.
- package/README.md +7 -0
- package/build/browser.js +272 -214
- package/build/ee_api_js.js +20 -20
- package/build/ee_api_js_debug.js +249 -192
- package/build/ee_api_js_npm.js +272 -214
- package/build/main.js +272 -214
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/batch.js +26 -28
- package/src/data.js +0 -3
- package/src/ee.js +0 -2
package/build/ee_api_js.js
CHANGED
|
@@ -5,14 +5,14 @@ n("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(va
|
|
|
5
5
|
var fa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a},ha=typeof Object.create=="function"?Object.create:function(a){var b=function(){};b.prototype=a;return new b},ia;if(typeof Object.setPrototypeOf=="function")ia=Object.setPrototypeOf;else{var ja;a:{var ka={a:!0},la={};try{la.__proto__=ka;ja=la.a;break a}catch(a){}ja=!1}ia=ja?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
|
|
6
6
|
var ma=ia,q=function(a,b){a.prototype=ha(b.prototype);a.prototype.constructor=a;if(ma)ma(a,b);else for(var c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.L=b.prototype},r=function(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:aa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");},na=function(a){if(!(a instanceof
|
|
7
7
|
Array)){a=r(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a},pa=function(a){return oa(a,a)},oa=function(a,b){a.raw=b;Object.freeze&&(Object.freeze(a),Object.freeze(b));return a},qa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},ra=typeof Object.assign=="function"?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)qa(d,e)&&(a[e]=d[e])}return a};n("Object.assign",function(a){return a||ra});
|
|
8
|
-
var sa=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
|
|
8
|
+
var sa=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};n("globalThis",function(a){return a||k});
|
|
9
9
|
n("Promise",function(a){function b(){this.ob=null}function c(f){return f instanceof e?f:new e(function(l){l(f)})}if(a)return a;b.prototype.Fg=function(f){if(this.ob==null){this.ob=[];var l=this;this.Gg(function(){l.Qk()})}this.ob.push(f)};var d=k.setTimeout;b.prototype.Gg=function(f){d(f,0)};b.prototype.Qk=function(){for(;this.ob&&this.ob.length;){var f=this.ob;this.ob=[];for(var l=0;l<f.length;++l){var m=f[l];f[l]=null;try{m()}catch(p){this.Ik(p)}}}this.ob=null};b.prototype.Ik=function(f){this.Gg(function(){throw f;
|
|
10
10
|
})};var e=function(f){this.T=0;this.ia=void 0;this.uc=[];this.Gh=!1;var l=this.Ze();try{f(l.resolve,l.reject)}catch(m){l.reject(m)}};e.prototype.Ze=function(){function f(p){return function(v){m||(m=!0,p.call(l,v))}}var l=this,m=!1;return{resolve:f(this.ol),reject:f(this.Xf)}};e.prototype.ol=function(f){if(f===this)this.Xf(new TypeError("A Promise cannot resolve to itself"));else if(f instanceof e)this.ql(f);else{a:switch(typeof f){case "object":var l=f!=null;break a;case "function":l=!0;break a;default:l=
|
|
11
11
|
!1}l?this.nl(f):this.xh(f)}};e.prototype.nl=function(f){var l=void 0;try{l=f.then}catch(m){this.Xf(m);return}typeof l=="function"?this.rl(l,f):this.xh(f)};e.prototype.Xf=function(f){this.ui(2,f)};e.prototype.xh=function(f){this.ui(1,f)};e.prototype.ui=function(f,l){if(this.T!=0)throw Error("Cannot settle("+f+", "+l+"): Promise already settled in state"+this.T);this.T=f;this.ia=l;this.T===2&&this.pl();this.Sk()};e.prototype.pl=function(){var f=this;d(function(){if(f.il()){var l=k.console;typeof l!==
|
|
12
12
|
"undefined"&&l.error(f.ia)}},1)};e.prototype.il=function(){if(this.Gh)return!1;var f=k.CustomEvent,l=k.Event,m=k.dispatchEvent;if(typeof m==="undefined")return!0;typeof f==="function"?f=new f("unhandledrejection",{cancelable:!0}):typeof l==="function"?f=new l("unhandledrejection",{cancelable:!0}):(f=k.document.createEvent("CustomEvent"),f.initCustomEvent("unhandledrejection",!1,!0,f));f.promise=this;f.reason=this.ia;return m(f)};e.prototype.Sk=function(){if(this.uc!=null){for(var f=0;f<this.uc.length;++f)g.Fg(this.uc[f]);
|
|
13
13
|
this.uc=null}};var g=new b;e.prototype.ql=function(f){var l=this.Ze();f.Bd(l.resolve,l.reject)};e.prototype.rl=function(f,l){var m=this.Ze();try{f.call(l,m.resolve,m.reject)}catch(p){m.reject(p)}};e.prototype.then=function(f,l){function m(B,H){return typeof B=="function"?function(ea){try{p(B(ea))}catch(W){v(W)}}:H}var p,v,z=new e(function(B,H){p=B;v=H});this.Bd(m(f,p),m(l,v));return z};e.prototype.catch=function(f){return this.then(void 0,f)};e.prototype.Bd=function(f,l){function m(){switch(p.T){case 1:f(p.ia);
|
|
14
14
|
break;case 2:l(p.ia);break;default:throw Error("Unexpected state: "+p.T);}}var p=this;this.uc==null?g.Fg(m):this.uc.push(m);this.Gh=!0};e.resolve=c;e.reject=function(f){return new e(function(l,m){m(f)})};e.race=function(f){return new e(function(l,m){for(var p=r(f),v=p.next();!v.done;v=p.next())c(v.value).Bd(l,m)})};e.all=function(f){var l=r(f),m=l.next();return m.done?c([]):new e(function(p,v){function z(ea){return function(W){B[ea]=W;H--;H==0&&p(B)}}var B=[],H=0;do B.push(void 0),H++,c(m.value).Bd(z(B.length-
|
|
15
|
-
1),v),m=l.next();while(!m.done)})};return e});n("Symbol.dispose",function(a){return a?a:Symbol("Symbol.dispose")});var ta=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var g=c++;return{value:b(g,a[g]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e};n("Array.prototype.keys",function(a){return a?a:function(){return ta(this,function(b){return b})}});
|
|
15
|
+
1),v),m=l.next();while(!m.done)})};return e});n("Symbol.dispose",function(a){return a?a:Symbol("Symbol.dispose")});var ta=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var g=c++;return{value:b(g,a[g]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e};n("Array.prototype.keys",function(a){return a?a:function(){return ta(this,function(b){return b})}});
|
|
16
16
|
n("WeakMap",function(a){function b(){}function c(m){var p=typeof m;return p==="object"&&m!==null||p==="function"}function d(m){if(!qa(m,g)){var p=new b;ba(m,g,{value:p})}}function e(m){var p=Object[m];p&&(Object[m]=function(v){if(v instanceof b)return v;Object.isExtensible(v)&&d(v);return p(v)})}if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),p=Object.seal({}),v=new a([[m,2],[p,3]]);if(v.get(m)!=2||v.get(p)!=3)return!1;v.delete(m);v.set(p,4);return!v.has(m)&&v.get(p)==4}catch(z){return!1}}())return a;
|
|
17
17
|
var g="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var f=0,l=function(m){this.ea=(f+=Math.random()+1).toString();if(m){m=r(m);for(var p;!(p=m.next()).done;)p=p.value,this.set(p[0],p[1])}};l.prototype.set=function(m,p){if(!c(m))throw Error("Invalid WeakMap key");d(m);if(!qa(m,g))throw Error("WeakMap key fail: "+m);m[g][this.ea]=p;return this};l.prototype.get=function(m){return c(m)&&qa(m,g)?m[g][this.ea]:void 0};l.prototype.has=function(m){return c(m)&&qa(m,g)&&qa(m[g],
|
|
18
18
|
this.ea)};l.prototype.delete=function(m){return c(m)&&qa(m,g)&&qa(m[g],this.ea)?delete m[g][this.ea]:!1};return l});
|
|
@@ -50,7 +50,7 @@ function jb(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in
|
|
|
50
50
|
SPDX-License-Identifier: Apache-2.0
|
|
51
51
|
*/
|
|
52
52
|
var kb={};function lb(){if(kb!==kb)throw Error("Bad secret");};var mb=globalThis.trustedTypes,nb;function ob(){var a=null;if(!mb)return a;try{var b=function(c){return c};a=mb.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){throw c;}return a};var pb=function(a){lb();this.fi=a};pb.prototype.toString=function(){return this.fi+""};function qb(a){nb===void 0&&(nb=ob());var b=nb;return new pb(b?b.createScriptURL(a):a)}function rb(a){if(a instanceof pb)return a.fi;throw Error("Unexpected type when unwrapping TrustedResourceUrl");};var sb=pa([""]),tb=oa(["\x00"],["\\0"]),ub=oa(["\n"],["\\n"]),vb=oa(["\x00"],["\\u0000"]),wb=pa([""]),xb=oa(["\x00"],["\\0"]),yb=oa(["\n"],["\\n"]),zb=oa(["\x00"],["\\u0000"]);function Ab(a){return Object.isFrozen(a)&&Object.isFrozen(a.raw)}function Bb(a){return a.toString().indexOf("`")===-1}var Cb=Bb(function(a){return a(sb)})||Bb(function(a){return a(tb)})||Bb(function(a){return a(ub)})||Bb(function(a){return a(vb)}),Db=Ab(wb)&&Ab(xb)&&Ab(yb)&&Ab(zb);var Eb=function(a){lb();this.gi=a};Eb.prototype.toString=function(){return this.gi};new Eb("about:blank");var Fb=new Eb("about:invalid#zClosurez");function Gb(a){if(a instanceof Eb)return a.gi;throw Error("Unexpected type when unwrapping SafeUrl, got '"+a+"' of type '"+typeof a+"'");};function Hb(a){if(typeof MediaSource!=="undefined"&&a instanceof MediaSource)return new Eb(URL.createObjectURL(a));var b=a.type.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i);if((b==null?void 0:b.length)!==2||!(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(b[1])||/^video\/(?:mpeg|mp4|ogg|webm|x-matroska|quicktime|x-ms-wmv)$/i.test(b[1])||/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(b[1])||/^font\/[\w-]+$/i.test(b[1])))throw Error("unsafe blob MIME type: "+
|
|
53
|
-
a.type);return new Eb(URL.createObjectURL(a))}var Jb=[],Kb=function(a){console.warn("A URL with content '"+a+"' was sanitized away.")};Jb.indexOf(Kb)===-1&&Jb.push(Kb);function Lb(a,b){a.src=rb(b);var c;b=a.ownerDocument;b=b===void 0?document:b;var d;b=(d=(c=
|
|
53
|
+
a.type);return new Eb(URL.createObjectURL(a))}var Jb=[],Kb=function(a){console.warn("A URL with content '"+a+"' was sanitized away.")};Jb.indexOf(Kb)===-1&&Jb.push(Kb);function Lb(a,b){a.src=rb(b);var c;b=a.ownerDocument;b=b===void 0?document:b;var d;b=(d=(c=b).querySelector)==null?void 0:d.call(c,"script[nonce]");(c=b==null?"":b.nonce||b.getAttribute("nonce")||"")&&a.setAttribute("nonce",c)};function Mb(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Mb);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)}y(Mb,Error);Mb.prototype.name="CustomError";var Nb;function Ob(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");Mb.call(this,c+a[d])}y(Ob,Mb);Ob.prototype.name="AssertionError";function Pb(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var g=d}else a&&(e+=": "+a,g=b);throw new Ob(""+e,g||[]);}
|
|
54
54
|
var E=function(a,b,c){a||Pb("",null,b,Array.prototype.slice.call(arguments,2))},Qb=function(a,b,c){a==null&&Pb("Expected to exist: %s.",[a],b,Array.prototype.slice.call(arguments,2));return a},Rb=function(a,b){throw new Ob("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},Sb=function(a,b,c){typeof a!=="number"&&Pb("Expected number but got %s: %s.",[wa(a),a],b,Array.prototype.slice.call(arguments,2));return a},Tb=function(a,b,c){typeof a!=="string"&&Pb("Expected string but got %s: %s.",
|
|
55
55
|
[wa(a),a],b,Array.prototype.slice.call(arguments,2))},Ub=function(a,b,c){typeof a!=="function"&&Pb("Expected function but got %s: %s.",[wa(a),a],b,Array.prototype.slice.call(arguments,2))},Vb=function(a,b,c){u(a)||Pb("Expected object but got %s: %s.",[wa(a),a],b,Array.prototype.slice.call(arguments,2));return a};var Wb=Array.prototype.indexOf?function(a,b){E(a.length!=null);return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Xb=Array.prototype.lastIndexOf?function(a,b){E(a.length!=null);return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;c<0&&(c=Math.max(0,a.length+c));if(typeof a==="string")return typeof b!=="string"||
|
|
56
56
|
b.length!=1?-1:a.lastIndexOf(b,c);for(;c>=0;c--)if(c in a&&a[c]===b)return c;return-1},Yb=Array.prototype.forEach?function(a,b){E(a.length!=null);Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=typeof a==="string"?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)},Zb=Array.prototype.filter?function(a,b){E(a.length!=null);return Array.prototype.filter.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=[],e=0,g=typeof a==="string"?a.split(""):a,f=0;f<c;f++)if(f in
|
|
@@ -454,7 +454,7 @@ Ma(p,f[m]))});return b?b(l):l};return this.callback?(dj(d,null,function(f,l){ret
|
|
|
454
454
|
ej.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=gj();d!=null&&c.push("Authorization: "+d);a=a.body?JSON.stringify(a.body):"";return[c.join("\r\n")+"\r\n\r\n"+a,b]};
|
|
455
455
|
var hj=function(a,b,c){a=r(b.split("--"+a.split("; boundary=")[1]));for(b=a.next();!b.done;b=a.next())if(b=b.value.split("\r\n\r\n"),!(b.length<3)){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"))}},bj=function(){var a=ij.replace(/\/api$/,"");return"window"in t&&!a.match(/^https?:\/\/content-/)?a.replace(/^(https?:\/\/)(.*\.googleapis\.com)$/,"$1content-$2"):a},kj=function(a,b,c){var d=[];a&&(d=d.concat(jj));
|
|
456
456
|
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 g=a[c++],f=u(g)?"o"+Ba(g):(typeof g).charAt(0)+g;Object.prototype.hasOwnProperty.call(e,f)||(e[f]=!0,a[b++]=g)}a.length=b;return d},rj=function(a,b,c){mj&&nj&&mj({client_id:String(nj),scope:oj.join(" "),plugin_name:"earthengine"},function(d){if(d.error=="immediate_failed"&&c)c();else if("window"in t)try{pj(function(){try{qj(a,b,d)}catch(e){b(e.toString())}})}catch(e){b(e.toString())}else qj(a,
|
|
457
|
-
b,d)})},gj=function(){sj&&Date.now()-sj>=0&&tj();return uj},tj=function(){sj=uj=null},Zi=function(a,b,c,d){a!=null?ij=a:vj||(ij="https://earthengine.googleapis.com/api");b!=null?wj=b:vj||(wj="https://earthengine.googleapis.com");c!==void 0&&(xj=c);Yi=d!=null?d:Yi||"earthengine-legacy";vj=!0},dj=function(a,b,c,d,e,g,f){Zi();var l=yj,m="application/x-www-form-urlencoded";e&&(m="application/json",d&&d.startsWith("multipart")&&(m=d,d="POST"));d=d||"POST";m={"Content-Type":m};var p="1.
|
|
457
|
+
b,d)})},gj=function(){sj&&Date.now()-sj>=0&&tj();return uj},tj=function(){sj=uj=null},Zi=function(a,b,c,d){a!=null?ij=a:vj||(ij="https://earthengine.googleapis.com/api");b!=null?wj=b:vj||(wj="https://earthengine.googleapis.com");c!==void 0&&(xj=c);Yi=d!=null?d:Yi||"earthengine-legacy";vj=!0},dj=function(a,b,c,d,e,g,f){Zi();var l=yj,m="application/x-www-form-urlencoded";e&&(m="application/json",d&&d.startsWith("multipart")&&(m=d,d="POST"));d=d||"POST";m={"Content-Type":m};var p="1.5.0";p==="1.5.0"&&
|
|
458
458
|
(p="latest");m["x-goog-api-client"]="ee-js/"+p;p=gj();if(p!=null)m.Authorization=p;else if(c&&mj&&nj)return rj(function(){zj(l,function(){dj(a,b,c,d)})}),null;b=b?b.clone():new Sc;Aj!=null&&b.add("key",Aj);l&&(m["X-Earth-Engine-Computation-Profiling"]="1");Yi&&Yi!=="earthengine-legacy"&&(m["X-Goog-User-Project"]=Yi);b=Bj(b,a);xj!=null&&(m["X-XSRF-Token"]=xj);Cj!=null&&(m["X-Earth-Engine-App-ID-Token"]=Cj);p=e||null;var v=b?b.toString():"";d==="POST"&&e===void 0?p=v:/^[\s\xa0]*$/.test(v)||(a+=a.indexOf("?")!=
|
|
459
459
|
-1?"&":"?",a+=v);e=a.startsWith("/")?ij+a:a;if(c)return Dj.push(Ej(e,c,d,p,m,g,f)),Fj.mf(),null;v=function(H,ea){this.setRequestHeader&&this.setRequestHeader(ea,H)};var z=0;for(g=g!=null?g:5;;){var B=new XMLHttpRequest;B.open(d,e,!1);Wa(m,v,B);B.send(p);if(B.status!=429||z>g)break;z++}return Gj(B.status,function(H){try{return B.getResponseHeader(H)}catch(ea){return null}},B.responseText,l,void 0,e,d,f)},Ej=function(a,b,c,d,e,g,f){var l=0,m={url:a,method:c,content:d,headers:e},p=yj,v=g!=null?g:10;
|
|
460
460
|
m.callback=function(z){z=z.target;if(z.getStatus()==429&&l<v)return l++,setTimeout(function(){Dj.push(m);Fj.mf()},Math.min(12E4,Math.pow(2,l)*1E3)),null;var B=Gj,H=z.getStatus(),ea=w(z.getResponseHeader,z);try{var W=z.s?z.s.responseText:""}catch(da){Cc(z.ha,"Can not get responseText: "+da.message),W=""}return B(H,ea,W,p,b,a,c,f)};return m},zj=function(a,b){var c=yj;try{yj=a,b.call(void 0)}finally{yj=c}},Gj=function(a,b,c,d,e,g,f,l){var m=d?b("X-Earth-Engine-Computation-Profile"):"";m&&d&&d(m);var p=
|
|
@@ -693,7 +693,7 @@ Zp.prototype.Kc=function(){try{var a=Hb(this.yi);this.Yc=Gb(a);var b=this.Yc!==F
|
|
|
693
693
|
var $p=function(a){a.la.appendChild(a.Rd)},aq=["load","abort","error"];var bq=function(a){for(var b=arguments[0],c=1;c<arguments.length;c++){var d=arguments[c];if(d.lastIndexOf("/",0)==0)b=d;else{var e;(e=b=="")||(e=b.length-1,e=e>=0&&b.indexOf("/",e)==e);b=e?b+d:b+("/"+d)}}return b};var cq=function(a,b,c,d){I.call(this);this.Pg=a;this.Yb=b;this.mg=d||"";this.Xd=c};q(cq,Rp);cq.prototype.Ff=function(a){if(a.zoom<=this.Xd)a.Ca=this.Md(a.qb,a.zoom);else{var b=a.zoom-this.Xd,c=Math.pow(2,b);c=new google.maps.Point(Math.floor(a.qb.x/c),Math.floor(a.qb.y/c));a.Ca=this.Md(c,a.zoom-b);a.de=Ea(dq,this.Xd)}var d=w(a.hd,a);a.hd=w(function(e){e&&(e.includes("The specified key does not exist.")||e.includes("AccessDenied"))?Op(a,"loaded"):d(e)},a);Pp(a)};
|
|
694
694
|
cq.prototype.getUniqueId=function(){return[this.Pg,this.Yb,this.Xd,this.mg].join("-")};cq.prototype.Md=function(a,b){a=bq("https://storage.googleapis.com",this.Pg,this.Yb,String(b),String(a.x),String(a.y));this.mg&&(a+=this.mg);return a};
|
|
695
695
|
var dq=function(a,b){if(!b.Rd)throw Error("Tile must have an image element to be rendered.");a=Math.pow(2,b.zoom-a);var c=b.tileSize.width,d=b.la.ownerDocument.createElement("canvas");d.setAttribute("width",c);d.setAttribute("height",c);b.la.appendChild(d);d=d.getContext("2d");d.imageSmoothingEnabled=!1;d.mozImageSmoothingEnabled=!1;d.webkitImageSmoothingEnabled=!1;d.drawImage(b.Rd,c/a*(b.qb.x%a),c/a*(b.qb.y%a),c/a,c/a,0,0,c,c)};x("ee.layers.CloudStorageTileSource",cq);function eq(){this.La=[];this.Qa=[]}h=eq.prototype;h.enqueue=function(a){this.Qa.push(a)};h.Ic=function(){this.La.length===0&&(this.La=this.Qa,this.La.reverse(),this.Qa=[]);return this.La.pop()};h.R=function(){return this.La.length+this.Qa.length};h.isEmpty=function(){return this.La.length===0&&this.Qa.length===0};h.clear=function(){this.La=[];this.Qa=[]};h.contains=function(a){return dc(this.La,a)||dc(this.Qa,a)};
|
|
696
|
-
h.remove=function(a){var b=this.La;var c=Xb(b,a);c>=0?(fc(b,c),b=!0):b=!1;return b||ec(this.Qa,a)};h.aa=function(){for(var a=[],b=this.La.length-1;b>=0;--b)a.push(this.La[b]);b=this.Qa.length;for(var c=0;c<b;++c)a.push(this.Qa[c]);return a};
|
|
696
|
+
h.remove=function(a){var b=this.La;var c=Xb(b,a);c>=0?(fc(b,c),b=!0):b=!1;return b||ec(this.Qa,a)};h.aa=function(){for(var a=[],b=this.La.length-1;b>=0;--b)a.push(this.La[b]);b=this.Qa.length;for(var c=0;c<b;++c)a.push(this.Qa[c]);return a};function fq(a,b){I.call(this);this.Qh=a||0;this.Wd=b||10;if(this.Qh>this.Wd)throw Error("[goog.structs.Pool] Min can not be greater than max");this.Sa=new eq;this.tb=new ae;this.delay=0;this.Df=null;this.sd()}y(fq,I);fq.prototype.Nc=function(){var a=Date.now();if(!(this.Df!=null&&a-this.Df<this.delay)){for(var b;this.Sa.R()>0&&(b=this.Sa.Ic(),!this.Pf(b));)this.sd();!b&&this.R()<this.Wd&&(b=this.Ye());b&&(this.Df=a,this.tb.add(b));return b}};
|
|
697
697
|
var gq=function(a,b){return a.tb.remove(b)?(a.Ke(b),!0):!1};h=fq.prototype;h.Ke=function(a){this.tb.remove(a);this.Pf(a)&&this.R()<this.Wd?this.Sa.enqueue(a):this.Dd(a)};h.sd=function(){for(var a=this.Sa;this.R()<this.Qh;)a.enqueue(this.Ye());for(;this.R()>this.Wd&&this.Sa.R()>0;)this.Dd(a.Ic())};h.Ye=function(){return{}};h.Dd=function(a){if(typeof a.dispose=="function")a.dispose();else for(var b in a)a[b]=null};h.Pf=function(a){return typeof a.Kk=="function"?a.Kk():!0};
|
|
698
698
|
h.contains=function(a){return this.Sa.contains(a)||this.tb.contains(a)};h.R=function(){return this.Sa.R()+this.tb.R()};h.isEmpty=function(){return this.Sa.isEmpty()&&this.tb.isEmpty()};h.J=function(){fq.L.J.call(this);if(this.tb.R()>0)throw Error("[goog.structs.Pool] Objects not released");delete this.tb;for(var a=this.Sa;!a.isEmpty();)this.Dd(a.Ic());delete this.Sa};function hq(a,b){this.Ih=a;this.te=b}hq.prototype.getKey=function(){return this.Ih};hq.prototype.clone=function(){return new hq(this.Ih,this.te)};var iq=function(a){this.Aa=[];if(a)a:{if(a instanceof iq){var b=a.sb();a=a.aa();if(this.R()<=0){for(var c=this.Aa,d=0;d<b.length;d++)c.push(new hq(b[d],a[d]));break a}}else b=ab(a),a=$a(a);for(c=0;c<b.length;c++)jq(this,b[c],a[c])}},jq=function(a,b,c){var d=a.Aa;d.push(new hq(b,c));b=d.length-1;a=a.Aa;for(c=a[b];b>0;)if(d=b-1>>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};h=iq.prototype;
|
|
699
699
|
h.remove=function(){var a=this.Aa,b=a.length,c=a[0];if(!(b<=0)){if(b==1)a.length=0;else{a[0]=a.pop();a=0;b=this.Aa;for(var d=b.length,e=b[a];a<d>>1;){var g=a*2+1,f=a*2+2;g=f<d&&b[f].getKey()<b[g].getKey()?f:g;if(b[g].getKey()>e.getKey())break;b[a]=b[g];a=g}b[a]=e}return c.te}};h.aa=function(){for(var a=this.Aa,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].te);return b};h.sb=function(){for(var a=this.Aa,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
|
|
@@ -707,18 +707,18 @@ h.ul=function(){if(!this.kc){var a=w(function(d){this.kc||(Wp(this.fa,this.ea,d)
|
|
|
707
707
|
h.Ji=null;h.Ja=null;h.hi=null;var uq=["load","abort","error"],vq=function(){I.call(this);this.Ea=!1};q(vq,I);vq.prototype.setActive=function(a){this.Ea=a};vq.prototype.isActive=function(){return this.Ea};var qq=function(a,b){lq.call(this,a,b)};q(qq,lq);qq.prototype.Ye=function(){return new vq};qq.prototype.Dd=function(a){a.dispose()};qq.prototype.Pf=function(a){return!a.Ra&&!a.isActive()};var wq=function(a,b,c,d,e){ge.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 ae;this.Qf=1;this.ua=e||null};q(wq,ge);h=wq.prototype;h.Le=function(a){return zd(this,"tileevent",a)};h.Yf=function(a){Hd(a)};
|
|
708
708
|
h.getTile=function(a,b,c){if(b<this.minZoom||a.y<0||a.y>=1<<b)return a=c.createElement("IMG"),a.style.width="0px",a.style.height="0px",a;b=he(this,a,b);a=[this.url,b].join("/")+"?token="+this.token;this.ua&&this.ua.isEnabled()&&(a+="&profiling=1");b=[b,this.wb,this.token].join("/");this.wb+=1;c=hi("DIV",{id:b});var d=(new Date).getTime()/1E3;this.yb.push(b);kl(rq).send(b,a,d,w(this.Tk,this,c,b));tp(this);return c};h.Mc=function(){return this.yb.length};
|
|
709
709
|
h.releaseTile=function(a){kl(rq).abort(a.id);if(a.firstElementChild!==void 0)var b=a.firstElementChild;else for(b=a.firstChild;b&&b.nodeType!=1;)b=b.nextSibling;this.tg.remove(b);a.id!==""&&(this.sg.remove(a.id),this.ua&&this.ua.ll(a.id))};h.setOpacity=function(a){this.Qf=a;var b=this.tg.Da();Sd(b,function(c){Ep(c,a)})};
|
|
710
|
-
h.Tk=function(a,b,c,d){c.type=="error"?(ec(this.yb,b),this.sg.add(b),this.dispatchEvent(c)):(ec(this.yb,b),c.target&&c.type=="load"&&(c=c.target,this.tg.add(c),this.Qf!=1&&Ep(c,this.Qf),a.appendChild(c)),tp(this));this.ua&&d!==null&&this.ua.Hk(b,d)};x("ee.MapLayerOverlay",wq);wq.prototype.removeTileCallback=wq.prototype.Yf;wq.prototype.addTileCallback=wq.prototype.Le;wq.prototype.getTile=wq.prototype.getTile;wq.prototype.setOpacity=wq.prototype.setOpacity;wq.prototype.releaseTile=wq.prototype.releaseTile;(function(){var a={},b="ee.ApiFunction._apply ee.ApiFunction.lookup ee.ApiFunction._call ee.batch.Export.
|
|
711
|
-
c=[["name","namedArgs"],["name"],["name","var_args"],"
|
|
712
|
-
"
|
|
713
|
-
"collection opt_description
|
|
714
|
-
"collection opt_description
|
|
715
|
-
["
|
|
716
|
-
"
|
|
717
|
-
|
|
718
|
-
["
|
|
719
|
-
"
|
|
720
|
-
|
|
721
|
-
"
|
|
722
|
-
["
|
|
723
|
-
O.prototype.
|
|
724
|
-
|
|
710
|
+
h.Tk=function(a,b,c,d){c.type=="error"?(ec(this.yb,b),this.sg.add(b),this.dispatchEvent(c)):(ec(this.yb,b),c.target&&c.type=="load"&&(c=c.target,this.tg.add(c),this.Qf!=1&&Ep(c,this.Qf),a.appendChild(c)),tp(this));this.ua&&d!==null&&this.ua.Hk(b,d)};x("ee.MapLayerOverlay",wq);wq.prototype.removeTileCallback=wq.prototype.Yf;wq.prototype.addTileCallback=wq.prototype.Le;wq.prototype.getTile=wq.prototype.getTile;wq.prototype.setOpacity=wq.prototype.setOpacity;wq.prototype.releaseTile=wq.prototype.releaseTile;(function(){var a={},b="ee.ApiFunction._apply ee.ApiFunction.lookup ee.ApiFunction._call ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.table.toBigQuery ee.batch.Export.image.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toFeatureView ee.batch.Export.video.toDrive ee.batch.Export.table.toDrive ee.batch.Export.image.toDrive ee.batch.Export.classifier.toAsset ee.batch.Export.table.toCloudStorage ee.batch.Export.table.toAsset ee.batch.Export.image.toAsset ee.batch.Export.map.toCloudStorage ee.Collection.prototype.limit ee.Collection.prototype.sort ee.Collection.prototype.filterMetadata ee.Collection.prototype.filterBounds ee.Collection.prototype.map ee.Collection.prototype.iterate ee.Collection.prototype.filterDate ee.Collection.prototype.filter ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.serialize ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.getInfo ee.data.resetWorkloadTag ee.data.getVideoThumbId ee.data.getTaskStatus ee.data.updateTask ee.data.getList ee.data.updateAsset ee.data.startIngestion ee.data.getFilmstripThumbId ee.data.startProcessing ee.data.createFolder ee.data.makeThumbUrl ee.data.authenticateViaOauth ee.data.setAssetAcl ee.data.renameAsset ee.data.listAssets ee.data.getMapId ee.data.getTaskList ee.data.setAssetProperties ee.data.getTableDownloadId ee.data.authenticate ee.data.copyAsset ee.data.getTileUrl ee.data.listBuckets ee.data.makeTableDownloadUrl ee.data.getTaskListWithLimit ee.data.startTableIngestion ee.data.listOperations ee.data.deleteAsset ee.data.getAssetRootQuota ee.data.getDownloadId ee.data.cancelOperation ee.data.authenticateViaPopup ee.data.makeDownloadUrl ee.data.listImages ee.data.getAssetAcl ee.data.getWorkloadTag ee.data.getFeatureViewTilesKey ee.data.listFeatures ee.data.getAsset ee.data.getAssetRoots ee.data.authenticateViaPrivateKey ee.data.getOperation ee.data.setWorkloadTag ee.data.createAssetHome ee.data.newTaskId ee.data.createAsset ee.data.getInfo ee.data.computeValue ee.data.cancelTask ee.data.setDefaultWorkloadTag ee.data.getThumbId ee.Date ee.Deserializer.fromJSON ee.Deserializer.fromCloudApiJSON ee.Deserializer.decodeCloudApi ee.Deserializer.decode ee.Dictionary ee.TILE_SIZE ee.call ee.reset ee.initialize ee.Algorithms ee.InitState ee.apply ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature.prototype.getInfo ee.Feature.prototype.getMapId ee.Feature.prototype.getMap ee.Feature ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.getMapId ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.select ee.Filter.eq ee.Filter.date ee.Filter.metadata ee.Filter.bounds ee.Filter.and ee.Filter.inList ee.Filter.gt ee.Filter.neq ee.Filter.lt ee.Filter.or ee.Filter.prototype.not ee.Filter.lte ee.Filter.gte ee.Filter ee.Function.prototype.call ee.Function.prototype.apply ee.Geometry.prototype.toGeoJSON ee.Geometry.MultiLineString ee.Geometry.LinearRing ee.Geometry.BBox ee.Geometry.prototype.toGeoJSONString ee.Geometry.MultiPoint ee.Geometry.LineString ee.Geometry.MultiPolygon ee.Geometry.Rectangle ee.Geometry ee.Geometry.Polygon ee.Geometry.prototype.serialize ee.Geometry.Point ee.Image.prototype.clip ee.Image.prototype.getMap ee.Image.rgb ee.Image.prototype.select ee.Image.prototype.getThumbId ee.Image.prototype.getMapId ee.Image.prototype.getThumbURL ee.Image.cat ee.Image.prototype.rename ee.Image.prototype.expression ee.Image.prototype.getDownloadURL ee.Image.prototype.getInfo ee.Image ee.ImageCollection.prototype.first ee.ImageCollection ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.select ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.getMapId ee.List ee.Number ee.Serializer.toJSON ee.Serializer.encodeCloudApi ee.Serializer.toCloudApiJSON ee.Serializer.toReadableJSON ee.Serializer.toReadableCloudApiJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.encode ee.String ee.Terrain".split(" "),
|
|
711
|
+
c=[["name","namedArgs"],["name"],["name","var_args"],"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 opt_priority".split(" "),"collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices opt_priority".split(" "),
|
|
712
|
+
"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 opt_priority".split(" "),"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "),"collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "),
|
|
713
|
+
"collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "),"collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".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 opt_priority".split(" "),
|
|
714
|
+
["classifier","opt_description","opt_assetId","opt_priority"],"collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "),["collection","opt_description","opt_assetId","opt_maxVertices","opt_priority"],"image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_priority".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 opt_priority".split(" "),
|
|
715
|
+
["max","opt_property","opt_ascending"],["property","opt_ascending"],["name","operator","value"],["geometry"],["algorithm","opt_dropNulls"],["algorithm","opt_first"],["start","opt_end"],["filter"],["func","var_args"],["legacy"],["callback"],["opt_callback"],["opt_resetDefault"],["params","opt_callback"],["taskId","opt_callback"],["taskId","action","opt_callback"],["params","opt_callback"],["assetId","asset","updateFields","opt_callback"],["taskId","request","opt_callback"],["params","opt_callback"],
|
|
716
|
+
["taskId","params","opt_callback"],["path","opt_force","opt_callback"],["id"],"clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "),["assetId","aclUpdate","opt_callback"],["sourceId","destinationId","opt_callback"],["parent","opt_params","opt_callback"],["params","opt_callback"],["opt_callback"],["assetId","properties","opt_callback"],["params","opt_callback"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],["sourceId",
|
|
717
|
+
"destinationId","opt_overwrite","opt_callback"],["id","x","y","z"],["project","opt_callback"],["id"],["opt_limit","opt_callback"],["taskId","request","opt_callback"],["opt_limit","opt_callback"],["assetId","opt_callback"],["rootId","opt_callback"],["params","opt_callback"],["operationName","opt_callback"],["opt_success","opt_error"],["id"],["parent","opt_params","opt_callback"],["assetId","opt_callback"],[],["params","opt_callback"],["asset","params","opt_callback"],["id","opt_callback"],["opt_callback"],
|
|
718
|
+
["privateKey","opt_success","opt_error","opt_extraScopes","opt_suppressDefaultScopes"],["operationName","opt_callback"],["tag"],["requestedId","opt_callback"],["opt_count","opt_callback"],["value","opt_path","opt_force","opt_properties","opt_callback"],["id","opt_callback"],["obj","opt_callback"],["taskId","opt_callback"],["tag"],["params","opt_callback"],["date","opt_tz"],["json"],["json"],["json"],["json"],["opt_dict"],[],["func","var_args"],[],"opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "),
|
|
719
|
+
[],[],["func","namedArgs"],["var_args"],[],["opt_callback"],["opt_visParams","opt_callback"],["opt_visParams","opt_callback"],["geometry","opt_properties"],["opt_visParams","opt_callback"],["opt_visParams","opt_callback"],["opt_format","opt_selectors","opt_filename","opt_callback"],["args","opt_column"],["opt_callback"],["propertySelectors","opt_newProperties","opt_retainGeometry"],["name","value"],["start","opt_end"],["name","operator","value"],["geometry","opt_errorMargin"],["var_args"],["opt_leftField",
|
|
720
|
+
"opt_rightValue","opt_rightField","opt_leftValue"],["name","value"],["name","value"],["name","value"],["var_args"],[],["name","value"],["name","value"],["opt_filter"],["var_args"],["namedArgs"],[],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj","opt_geodesic","opt_maxError"],["west","south","east","north"],[],["coords","opt_proj"],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["coords","opt_proj","opt_geodesic",
|
|
721
|
+
"opt_evenOdd"],["geoJson","opt_proj","opt_geodesic","opt_evenOdd"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["legacy"],["coords","opt_proj"],["geometry"],["opt_visParams","opt_callback"],["r","g","b"],["var_args"],["params","opt_callback"],["opt_visParams","opt_callback"],["params","opt_callback"],["var_args"],["var_args"],["expression","opt_map"],["params","opt_callback"],["opt_callback"],["opt_args"],[],["args"],["params","opt_callback"],["opt_callback"],["selectors","opt_names"],
|
|
722
|
+
["imageCollection","opt_linkedBands","opt_linkedProperties","opt_matchPropertyName"],["opt_visParams","opt_callback"],["params","opt_callback"],["opt_visParams","opt_callback"],["list"],["number"],["obj"],["obj"],["obj"],["obj"],["obj"],["obj"],["obj","opt_isCompound"],["string"],[]];[Om,Nm,Q,yo,vo,oo,wo,uo,xo,so,po,zo,ro,to,mo,qo,V.prototype.limit,V.prototype.sort,V.prototype.lf,V.prototype.sh,V.prototype.map,V.prototype.Hh,V.prototype.kf,V.prototype.filter,O.prototype.Dg,O.prototype.va,O.prototype.evaluate,
|
|
723
|
+
O.prototype.V,zm,zl,Kl,Ql,gm,sm,bm,Al,Yl,nm,Bl,ml,tm,om,hm,tl,Ml,um,Fl,nl,pm,ul,jm,Gl,Ll,dm,Nl,qm,vm,Dl,Ol,ll,El,im,rm,rl,vl,wl,em,km,ol,Pl,xm,lm,Hl,mm,em,xl,Rl,ym,yl,Qo,Uo,Zo,Vo,To,$o,256,np,lp,ip,kp,mp,op,S.prototype.set,Jj,X.prototype.V,X.prototype.S,X.prototype.getMap,X,Y.prototype.getMap,Y.prototype.S,Y.prototype.rb,Y,Y.prototype.V,Y.prototype.select,Bn,Jn,Mn,Ln,Hn,Kn,Fn,Cn,Dn,In,U.prototype.sc,Gn,En,U,Im.prototype.call,Im.prototype.apply,T.prototype.oe,rn,qn,mn,T.prototype.vg,kn,pn,tn,ln,T,
|
|
724
|
+
sn,T.prototype.va,gn,N.prototype.clip,N.prototype.getMap,Zn,N.prototype.select,N.prototype.Ld,N.prototype.S,N.prototype.uf,$n,N.prototype.mi,N.prototype.l,N.prototype.rb,N.prototype.V,N,Z.prototype.first,Z,Z.prototype.vf,Z.prototype.V,Z.prototype.select,Z.prototype.Ef,Z.prototype.getMap,Z.prototype.sf,Z.prototype.S,ao,Go,Gk,Lk,Qk,Ik,Rk,Pk,Fk,Jo,cp].forEach(function(d,e){d&&(a[d.toString()]={name:b[e],paramNames:c[e]})});t.EXPORTED_FN_INFO=a})();}).call(this);
|