mirror of
https://github.com/google/earthengine-api.git
synced 2025-12-08 19:26:12 +00:00
318 lines
163 KiB
JavaScript
318 lines
163 KiB
JavaScript
(function(){var h,aa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},ba=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}},ca="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},da="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,ea=function(a,b){if(b){var c=da;a=a.split(".");
|
|
for(var d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ca(c,a,{configurable:!0,writable:!0,value:b})}};ea("Array.prototype.find",function(a){return a?a:function(a,c){a:{var b=this;b instanceof String&&(b=String(b));for(var e=b.length,f=0;f<e;f++){var g=b[f];if(a.call(c,g,f,b)){a=g;break a}}a=void 0}return a}});var fa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
|
|
ea("Object.entries",function(a){return a?a:function(a){var b=[],d;for(d in a)fa(a,d)&&b.push([d,a[d]]);return b}});
|
|
var ha=function(){ha=function(){};da.Symbol||(da.Symbol=ia)},ia=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(),la=function(){ha();var a=da.Symbol.iterator;a||(a=da.Symbol.iterator=da.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&ca(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ja(aa(this))}});la=function(){}},ja=function(a){la();a={next:a};a[da.Symbol.iterator]=function(){return this};return a},ma=function(a,b){la();a instanceof String&&
|
|
(a+="");var c=0,d={next:function(){if(c<a.length){var e=c++;return{value:b(e,a[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d};ea("Array.prototype.values",function(a){return a?a:function(){return ma(this,function(a,c){return c})}});ea("Object.values",function(a){return a?a:function(a){var b=[],d;for(d in a)fa(a,d)&&b.push(a[d]);return b}});
|
|
ea("Promise",function(a){function b(){this.sa=null}function c(a){return a instanceof e?a:new e(function(b){b(a)})}if(a)return a;b.prototype.md=function(a){if(null==this.sa){this.sa=[];var b=this;this.nd(function(){b.Ee()})}this.sa.push(a)};var d=da.setTimeout;b.prototype.nd=function(a){d(a,0)};b.prototype.Ee=function(){for(;this.sa&&this.sa.length;){var a=this.sa;this.sa=[];for(var b=0;b<a.length;++b){var c=a[b];a[b]=null;try{c()}catch(F){this.ve(F)}}}this.sa=null};b.prototype.ve=function(a){this.nd(function(){throw a;
|
|
})};var e=function(a){this.B=0;this.T=void 0;this.Ya=[];var b=this.Cc();try{a(b.resolve,b.reject)}catch(v){b.reject(v)}};e.prototype.Cc=function(){function a(a){return function(d){c||(c=!0,a.call(b,d))}}var b=this,c=!1;return{resolve:a(this.bf),reject:a(this.$c)}};e.prototype.bf=function(a){if(a===this)this.$c(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof e)this.cf(a);else{a:switch(typeof a){case "object":var b=null!=a;break a;case "function":b=!0;break a;default:b=!1}b?
|
|
this.af(a):this.Hd(a)}};e.prototype.af=function(a){var b=void 0;try{b=a.then}catch(v){this.$c(v);return}"function"==typeof b?this.df(b,a):this.Hd(a)};e.prototype.$c=function(a){this.le(2,a)};e.prototype.Hd=function(a){this.le(1,a)};e.prototype.le=function(a,b){if(0!=this.B)throw Error("Cannot settle("+a+", "+b+"): Promise already settled in state"+this.B);this.B=a;this.T=b;this.Ge()};e.prototype.Ge=function(){if(null!=this.Ya){for(var a=0;a<this.Ya.length;++a)f.md(this.Ya[a]);this.Ya=null}};var f=
|
|
new b;e.prototype.cf=function(a){var b=this.Cc();a.Jb(b.resolve,b.reject)};e.prototype.df=function(a,b){var c=this.Cc();try{a.call(b,c.resolve,c.reject)}catch(F){c.reject(F)}};e.prototype.then=function(a,b){function c(a,b){return"function"==typeof a?function(b){try{d(a(b))}catch(W){f(W)}}:b}var d,f,g=new e(function(a,b){d=a;f=b});this.Jb(c(a,d),c(b,f));return g};e.prototype["catch"]=function(a){return this.then(void 0,a)};e.prototype.Jb=function(a,b){function c(){switch(d.B){case 1:a(d.T);break;case 2:b(d.T);
|
|
break;default:throw Error("Unexpected state: "+d.B);}}var d=this;null==this.Ya?f.md(c):this.Ya.push(c)};e.resolve=c;e.reject=function(a){return new e(function(b,c){c(a)})};e.race=function(a){return new e(function(b,d){for(var e=ba(a),f=e.next();!f.done;f=e.next())c(f.value).Jb(b,d)})};e.all=function(a){var b=ba(a),d=b.next();return d.done?c([]):new e(function(a,e){function f(b){return function(c){g[b]=c;l--;0==l&&a(g)}}var g=[],l=0;do g.push(void 0),l++,c(d.value).Jb(f(g.length-1),e),d=b.next();while(!d.done)})};
|
|
return e});var na="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)fa(d,e)&&(a[e]=d[e])}return a};ea("Object.assign",function(a){return a||na});ea("Object.is",function(a){return a?a:function(a,c){return a===c?0!==a||1/a===1/c:a!==a&&c!==c}});
|
|
ea("Array.prototype.includes",function(a){return a?a:function(a,c){var b=this;b instanceof String&&(b=String(b));var e=b.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=b[c];if(f===a||Object.is(f,a))return!0}return!1}});
|
|
ea("String.prototype.includes",function(a){return a?a:function(a,c){if(null==this)throw new TypeError("The 'this' value for String.prototype.includes must not be null or undefined");if(a instanceof RegExp)throw new TypeError("First argument to String.prototype.includes must not be a regular expression");return-1!==(this+"").indexOf(a,c||0)}});
|
|
ea("WeakMap",function(a){function b(){}function c(a){fa(a,e)||ca(a,e,{value:new b})}function d(a){var d=Object[a];d&&(Object[a]=function(a){if(a instanceof b)return a;c(a);return d(a)})}if(function(){if(!a||!Object.seal)return!1;try{var b=Object.seal({}),c=Object.seal({}),d=new a([[b,2],[c,3]]);if(2!=d.get(b)||3!=d.get(c))return!1;d["delete"](b);d.set(c,4);return!d.has(b)&&4==d.get(c)}catch(M){return!1}}())return a;var e="$jscomp_hidden_"+Math.random();d("freeze");d("preventExtensions");d("seal");
|
|
var f=0,g=function(a){this.J=(f+=Math.random()+1).toString();if(a){a=ba(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};g.prototype.set=function(a,b){c(a);if(!fa(a,e))throw Error("WeakMap key fail: "+a);a[e][this.J]=b;return this};g.prototype.get=function(a){return fa(a,e)?a[e][this.J]:void 0};g.prototype.has=function(a){return fa(a,e)&&fa(a[e],this.J)};g.prototype["delete"]=function(a){return fa(a,e)&&fa(a[e],this.J)?delete a[e][this.J]:!1};return g});
|
|
ea("Map",function(a){if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),c=new a(ba([[b,"s"]]));if("s"!=c.get(b)||1!=c.size||c.get({x:4})||c.set({x:4},"t")!=c||2!=c.size)return!1;var d=c.entries(),e=d.next();if(e.done||e.value[0]!=b||"s"!=e.value[1])return!1;e=d.next();return e.done||4!=e.value[0].x||"t"!=e.value[1]||!d.next().done?!1:!0}catch(ka){return!1}}())return a;la();var b=new WeakMap,c=function(a){this.jb={};
|
|
this.M=f();this.size=0;if(a){a=ba(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};c.prototype.set=function(a,b){a=0===a?0:a;var c=d(this,a);c.list||(c.list=this.jb[c.id]=[]);c.I?c.I.value=b:(c.I={next:this.M,pa:this.M.pa,head:this.M,key:a,value:b},c.list.push(c.I),this.M.pa.next=c.I,this.M.pa=c.I,this.size++);return this};c.prototype["delete"]=function(a){a=d(this,a);return a.I&&a.list?(a.list.splice(a.index,1),a.list.length||delete this.jb[a.id],a.I.pa.next=a.I.next,a.I.next.pa=
|
|
a.I.pa,a.I.head=null,this.size--,!0):!1};c.prototype.clear=function(){this.jb={};this.M=this.M.pa=f();this.size=0};c.prototype.has=function(a){return!!d(this,a).I};c.prototype.get=function(a){return(a=d(this,a).I)&&a.value};c.prototype.entries=function(){return e(this,function(a){return[a.key,a.value]})};c.prototype.keys=function(){return e(this,function(a){return a.key})};c.prototype.values=function(){return e(this,function(a){return a.value})};c.prototype.forEach=function(a,b){for(var c=this.entries(),
|
|
d;!(d=c.next()).done;)d=d.value,a.call(b,d[1],d[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(a,c){var d=c&&typeof c;"object"==d||"function"==d?b.has(c)?d=b.get(c):(d=""+ ++g,b.set(c,d)):d="p_"+c;var e=a.jb[d];if(e&&fa(a.jb,d))for(a=0;a<e.length;a++){var f=e[a];if(c!==c&&f.key!==f.key||c===f.key)return{id:d,list:e,index:a,I:f}}return{id:d,list:e,index:-1,I:void 0}},e=function(a,b){var c=a.M;return ja(function(){if(c){for(;c.head!=a.M;)c=c.pa;for(;c.next!=c.head;)return c=
|
|
c.next,{done:!1,value:b(c)};c=null}return{done:!0,value:void 0}})},f=function(){var a={};return a.pa=a.next=a.head=a},g=0;return c});
|
|
var oa=oa||{},k=this,m=function(a){return void 0!==a},n=function(a){return"string"==typeof a},pa=function(a){return"boolean"==typeof a},p=function(a){return"number"==typeof a},qa=/^[\w+/_-]+[=]{0,2}$/,ra=null,sa=function(a){a=a.split(".");for(var b=k,c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b},ta=function(){},ua=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==
|
|
c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},va=function(a){return null!=a},q=function(a){return"array"==ua(a)},wa=
|
|
function(a){var b=ua(a);return"array"==b||"object"==b&&"number"==typeof a.length},xa=function(a){return r(a)&&"function"==typeof a.getFullYear},t=function(a){return"function"==ua(a)},r=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},ya="closure_uid_"+(1E9*Math.random()>>>0),za=0,Aa=function(a,b,c){return a.call.apply(a.bind,arguments)},Ba=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);
|
|
Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},u=function(a,b,c){u=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?Aa:Ba;return u.apply(null,arguments)},Ca=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}},Da=Date.now||function(){return+new Date},w=function(a,b){a=a.split(".");var c=k;a[0]in c||"undefined"==typeof c.execScript||
|
|
c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&m(b)?c[d]=b:c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}},x=function(a,b){function c(){}c.prototype=b.prototype;a.f=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.rf=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};var y=function(){this.ea=this.ea;this.Yb=this.Yb};y.prototype.ea=!1;y.prototype.da=function(){this.ea||(this.ea=!0,this.h())};y.prototype.h=function(){if(this.Yb)for(;this.Yb.length;)this.Yb.shift()()};var Ea=function(a){a&&"function"==typeof a.da&&a.da()};var z=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.Ha=!1;this.ge=!0};z.prototype.stopPropagation=function(){this.Ha=!0};z.prototype.preventDefault=function(){this.defaultPrevented=!0;this.ge=!1};var Fa=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Fa);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};x(Fa,Error);Fa.prototype.name="CustomError";var Ga;var Ha=function(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");Fa.call(this,c+a[d])};x(Ha,Fa);Ha.prototype.name="AssertionError";
|
|
var Ia=function(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var f=d}else a&&(e+=": "+a,f=b);throw new Ha(""+e,f||[]);},A=function(a,b,c){a||Ia("",null,b,Array.prototype.slice.call(arguments,2));return a},Ja=function(a,b){throw new Ha("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},Ka=function(a,b,c){p(a)||Ia("Expected number but got %s: %s.",[ua(a),a],b,Array.prototype.slice.call(arguments,2));return a},La=function(a,b,c){n(a)||Ia("Expected string but got %s: %s.",[ua(a),
|
|
a],b,Array.prototype.slice.call(arguments,2))},Ma=function(a,b,c){t(a)||Ia("Expected function but got %s: %s.",[ua(a),a],b,Array.prototype.slice.call(arguments,2))},Na=function(a,b,c){r(a)||Ia("Expected object but got %s: %s.",[ua(a),a],b,Array.prototype.slice.call(arguments,2));return a};var Oa=Array.prototype.indexOf?function(a,b){A(null!=a.length);return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(n(a))return n(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Pa=Array.prototype.lastIndexOf?function(a,b){A(null!=a.length);return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;0>c&&(c=Math.max(0,a.length+c));if(n(a))return n(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in
|
|
a&&a[c]===b)return c;return-1},Qa=Array.prototype.forEach?function(a,b,c){A(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=n(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Ra=Array.prototype.filter?function(a,b){A(null!=a.length);return Array.prototype.filter.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=[],e=0,f=n(a)?a.split(""):a,g=0;g<c;g++)if(g in f){var l=f[g];b.call(void 0,l,g,a)&&(d[e++]=l)}return d},Sa=Array.prototype.map?function(a,
|
|
b,c){A(null!=a.length);return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=n(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Ta=Array.prototype.some?function(a,b){A(null!=a.length);return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=n(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1},Ua=Array.prototype.every?function(a,b,c){A(null!=a.length);return Array.prototype.every.call(a,
|
|
b,c)}:function(a,b,c){for(var d=a.length,e=n(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0},Va=function(a,b){var c=0;Qa(a,function(a,e,f){b.call(void 0,a,e,f)&&++c},void 0);return c},Xa=function(a){a:{var b=Wa;for(var c=a.length,d=n(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return 0>b?null:n(a)?a.charAt(b):a[b]},Ya=function(a,b){return 0<=Oa(a,b)},Za=function(a){if(!q(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},ab=
|
|
function(a,b){b=Oa(a,b);var c;(c=0<=b)&&$a(a,b);return c},$a=function(a,b){A(null!=a.length);Array.prototype.splice.call(a,b,1)},bb=function(a){return Array.prototype.concat.apply([],arguments)},cb=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},db=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(wa(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}},eb=function(a,b,c){A(null!=a.length);
|
|
return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},fb=function(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++];var f=e;f=r(f)?"o"+(f[ya]||(f[ya]=++za)):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};var gb=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")},hb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},pb=function(a){if(!ib.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(jb,"&"));-1!=a.indexOf("<")&&(a=a.replace(kb,"<"));-1!=a.indexOf(">")&&(a=a.replace(lb,">"));-1!=a.indexOf('"')&&(a=a.replace(mb,"""));-1!=
|
|
a.indexOf("'")&&(a=a.replace(nb,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(ob,"�"));return a},jb=/&/g,kb=/</g,lb=/>/g,mb=/"/g,nb=/'/g,ob=/\x00/g,ib=/[\x00&<>"']/,qb=function(a,b){return a<b?-1:a>b?1:0},rb=function(a){var b=1;a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};var sb;a:{var tb=k.navigator;if(tb){var ub=tb.userAgent;if(ub){sb=ub;break a}}sb=""}var vb=function(a){return-1!=sb.indexOf(a)};var wb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},xb=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},yb=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d},zb=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},Ab=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Bb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},Cb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},Eb=function(a){var b=
|
|
Db,c;for(c in b)if(a.call(void 0,b[c],c,b))return c},Fb=function(a){for(var b in a)return!1;return!0},Gb=function(a,b){b in a&&delete a[b]},Hb=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Ib=function(a){var b=ua(a);if("object"==b||"array"==b){if(t(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=Ib(a[c]);return b}return a},Jb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Kb=function(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<Jb.length;f++)c=Jb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Lb=function(a){Lb[" "](a);return a};Lb[" "]=ta;var Nb=function(a,b){var c=Mb;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var Ob=vb("Opera"),Pb=vb("Trident")||vb("MSIE"),Qb=vb("Edge"),Rb=vb("Gecko")&&!(-1!=sb.toLowerCase().indexOf("webkit")&&!vb("Edge"))&&!(vb("Trident")||vb("MSIE"))&&!vb("Edge"),Sb=-1!=sb.toLowerCase().indexOf("webkit")&&!vb("Edge"),Tb=function(){var a=k.document;return a?a.documentMode:void 0},Ub;
|
|
a:{var Vb="",Wb=function(){var a=sb;if(Rb)return/rv:([^\);]+)(\)|;)/.exec(a);if(Qb)return/Edge\/([\d\.]+)/.exec(a);if(Pb)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Sb)return/WebKit\/(\S+)/.exec(a);if(Ob)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Wb&&(Vb=Wb?Wb[1]:"");if(Pb){var Xb=Tb();if(null!=Xb&&Xb>parseFloat(Vb)){Ub=String(Xb);break a}}Ub=Vb}
|
|
var Yb=Ub,Mb={},Zb=function(a){return Nb(a,function(){for(var b=0,c=hb(String(Yb)).split("."),d=hb(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",l=d[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];if(0==g[0].length&&0==l[0].length)break;b=qb(0==g[1].length?0:parseInt(g[1],10),0==l[1].length?0:parseInt(l[1],10))||qb(0==g[2].length,0==l[2].length)||qb(g[2],l[2]);g=g[3];l=l[3]}while(0==b)}return 0<=b})},$b;var ac=k.document;
|
|
$b=ac&&Pb?Tb()||("CSS1Compat"==ac.compatMode?parseInt(Yb,10):5):void 0;var bc=Object.freeze||function(a){return a};var cc=!Pb||9<=Number($b),dc=Pb&&!Zb("9"),ec=function(){if(!k.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{k.addEventListener("test",ta,b),k.removeEventListener("test",ta,b)}catch(c){}return a}();var fc=function(a,b){z.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.$=null;a&&this.init(a,b)};x(fc,z);var gc=bc({2:"touch",3:"pen",4:"mouse"});
|
|
fc.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;if(b=a.relatedTarget){if(Rb){a:{try{Lb(b.nodeName);var e=!0;break a}catch(f){}e=!1}e||(b=null)}}else"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=
|
|
d.screenY||0):(this.offsetX=Sb||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=Sb||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=
|
|
a.pointerId||0;this.pointerType=n(a.pointerType)?a.pointerType:gc[a.pointerType]||"";this.state=a.state;this.$=a;a.defaultPrevented&&this.preventDefault()};fc.prototype.stopPropagation=function(){fc.f.stopPropagation.call(this);this.$.stopPropagation?this.$.stopPropagation():this.$.cancelBubble=!0};
|
|
fc.prototype.preventDefault=function(){fc.f.preventDefault.call(this);var a=this.$;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,dc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var hc="closure_listenable_"+(1E6*Math.random()|0),ic=function(a){return!(!a||!a[hc])},jc=0;var kc=function(a,b,c,d,e){this.listener=a;this.ac=null;this.src=b;this.type=c;this.capture=!!d;this.na=e;this.key=++jc;this.$a=this.Ib=!1},lc=function(a){a.$a=!0;a.listener=null;a.ac=null;a.src=null;a.na=null};var mc=function(a){this.src=a;this.G={};this.Eb=0};mc.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.G[f];a||(a=this.G[f]=[],this.Eb++);var g=nc(a,b,d,e);-1<g?(b=a[g],c||(b.Ib=!1)):(b=new kc(b,this.src,f,!!d,e),b.Ib=c,a.push(b));return b};mc.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.G))return!1;var e=this.G[a];b=nc(e,b,c,d);return-1<b?(lc(e[b]),$a(e,b),0==e.length&&(delete this.G[a],this.Eb--),!0):!1};
|
|
var oc=function(a,b){var c=b.type;c in a.G&&ab(a.G[c],b)&&(lc(b),0==a.G[c].length&&(delete a.G[c],a.Eb--))};mc.prototype.Ab=function(a){a=a&&a.toString();var b=0,c;for(c in this.G)if(!a||c==a){for(var d=this.G[c],e=0;e<d.length;e++)++b,lc(d[e]);delete this.G[c];this.Eb--}};mc.prototype.nb=function(a,b,c,d){a=this.G[a.toString()];var e=-1;a&&(e=nc(a,b,c,d));return-1<e?a[e]:null};
|
|
mc.prototype.hasListener=function(a,b){var c=m(a),d=c?a.toString():"",e=m(b);return zb(this.G,function(a){for(var f=0;f<a.length;++f)if(!(c&&a[f].type!=d||e&&a[f].capture!=b))return!0;return!1})};var nc=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.$a&&f.listener==b&&f.capture==!!c&&f.na==d)return e}return-1};var pc="closure_lm_"+(1E6*Math.random()|0),qc={},rc=0,tc=function(a,b,c,d,e){if(d&&d.once)return sc(a,b,c,d,e);if(q(b)){for(var f=0;f<b.length;f++)tc(a,b[f],c,d,e);return null}c=uc(c);return ic(a)?a.ga(b,c,r(d)?!!d.capture:!!d,e):vc(a,b,c,!1,d,e)},vc=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=r(e)?!!e.capture:!!e,l=wc(a);l||(a[pc]=l=new mc(a));c=l.add(b,c,d,g,f);if(c.ac)return c;d=xc();c.ac=d;d.src=a;d.listener=c;if(a.addEventListener)ec||(e=g),void 0===e&&(e=!1),a.addEventListener(b.toString(),
|
|
d,e);else if(a.attachEvent)a.attachEvent(yc(b.toString()),d);else if(a.addListener&&a.removeListener)A("change"===b,"MediaQueryList only has a change event"),a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");rc++;return c},xc=function(){var a=zc,b=cc?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b},sc=function(a,b,c,d,e){if(q(b)){for(var f=0;f<b.length;f++)sc(a,b[f],c,d,e);return null}c=uc(c);return ic(a)?
|
|
a.wb(b,c,r(d)?!!d.capture:!!d,e):vc(a,b,c,!0,d,e)},Ac=function(a,b,c,d,e){if(q(b))for(var f=0;f<b.length;f++)Ac(a,b[f],c,d,e);else d=r(d)?!!d.capture:!!d,c=uc(c),ic(a)?a.mc(b,c,d,e):a&&(a=wc(a))&&(b=a.nb(b,c,d,e))&&Bc(b)},Bc=function(a){if(!p(a)&&a&&!a.$a){var b=a.src;if(ic(b))oc(b.Z,a);else{var c=a.type,d=a.ac;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(yc(c),d):b.addListener&&b.removeListener&&b.removeListener(d);rc--;(c=wc(b))?(oc(c,a),0==c.Eb&&(c.src=
|
|
null,b[pc]=null)):lc(a)}}},yc=function(a){return a in qc?qc[a]:qc[a]="on"+a},Ec=function(a,b,c,d){var e=!0;if(a=wc(a))if(b=a.G[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.$a&&(f=Dc(f,d),e=e&&!1!==f)}return e},Dc=function(a,b){var c=a.listener,d=a.na||a.src;a.Ib&&Bc(a);return c.call(d,b)},zc=function(a,b){if(a.$a)return!0;if(!cc){var c=b||sa("window.event");b=new fc(c,this);var d=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var e=!1;if(0==c.keyCode)try{c.keyCode=
|
|
-1;break a}catch(g){e=!0}if(e||void 0==c.returnValue)c.returnValue=!0}c=[];for(e=b.currentTarget;e;e=e.parentNode)c.push(e);a=a.type;for(e=c.length-1;!b.Ha&&0<=e;e--){b.currentTarget=c[e];var f=Ec(c[e],a,!0,b);d=d&&f}for(e=0;!b.Ha&&e<c.length;e++)b.currentTarget=c[e],f=Ec(c[e],a,!1,b),d=d&&f}return d}return Dc(a,new fc(b,this))},wc=function(a){a=a[pc];return a instanceof mc?a:null},Fc="__closure_events_fn_"+(1E9*Math.random()>>>0),uc=function(a){A(a,"Listener can not be null.");if(t(a))return a;A(a.handleEvent,
|
|
"An object listener must have handleEvent method.");a[Fc]||(a[Fc]=function(b){return a.handleEvent(b)});return a[Fc]};var B=function(){y.call(this);this.Z=new mc(this);this.te=this;this.Yc=null};x(B,y);B.prototype[hc]=!0;h=B.prototype;h.addEventListener=function(a,b,c,d){tc(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){Ac(this,a,b,c,d)};
|
|
h.dispatchEvent=function(a){Gc(this);var b=this.Yc;if(b){var c=[];for(var d=1;b;b=b.Yc)c.push(b),A(1E3>++d,"infinite loop")}b=this.te;d=a.type||a;if(n(a))a=new z(a,b);else if(a instanceof z)a.target=a.target||b;else{var e=a;a=new z(d,b);Kb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.Ha&&0<=f;f--){var g=a.currentTarget=c[f];e=Hc(g,d,!0,a)&&e}a.Ha||(g=a.currentTarget=b,e=Hc(g,d,!0,a)&&e,a.Ha||(e=Hc(g,d,!1,a)&&e));if(c)for(f=0;!a.Ha&&f<c.length;f++)g=a.currentTarget=c[f],e=Hc(g,d,!1,a)&&e;return e};
|
|
h.h=function(){B.f.h.call(this);this.Z&&this.Z.Ab(void 0);this.Yc=null};h.ga=function(a,b,c,d){Gc(this);return this.Z.add(String(a),b,!1,c,d)};h.wb=function(a,b,c,d){return this.Z.add(String(a),b,!0,c,d)};h.mc=function(a,b,c,d){this.Z.remove(String(a),b,c,d)};var Hc=function(a,b,c,d){b=a.Z.G[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.$a&&g.capture==c){var l=g.listener,v=g.na||g.src;g.Ib&&oc(a.Z,g);e=!1!==l.call(v,d)&&e}}return e&&0!=d.ge};
|
|
B.prototype.nb=function(a,b,c,d){return this.Z.nb(String(a),b,c,d)};B.prototype.hasListener=function(a,b){return this.Z.hasListener(m(a)?String(a):void 0,b)};var Gc=function(a){A(a.Z,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var Ic=function(a){return a};var Jc="StopIteration"in k?k.StopIteration:{message:"StopIteration",stack:""},Kc=function(){};Kc.prototype.next=function(){throw Jc;};Kc.prototype.Oa=function(){return this};
|
|
var Lc=function(a){if(a instanceof Kc)return a;if("function"==typeof a.Oa)return a.Oa(!1);if(wa(a)){var b=0,c=new Kc;c.next=function(){for(;;){if(b>=a.length)throw Jc;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},Mc=function(a,b){if(wa(a))try{Qa(a,b,void 0)}catch(c){if(c!==Jc)throw c;}else{a=Lc(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==Jc)throw c;}}};var C=function(a,b){this.s={};this.j=[];this.Fb=this.l=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};h=C.prototype;h.m=function(){return this.l};h.w=function(){Nc(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.s[this.j[b]]);return a};h.ba=function(){Nc(this);return this.j.concat()};h.ta=function(a){return Oc(this.s,a)};
|
|
h.ib=function(a){for(var b=0;b<this.j.length;b++){var c=this.j[b];if(Oc(this.s,c)&&this.s[c]==a)return!0}return!1};h.equals=function(a,b){if(this===a)return!0;if(this.l!=a.m())return!1;b=b||Pc;Nc(this);for(var c,d=0;c=this.j[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};var Pc=function(a,b){return a===b};C.prototype.isEmpty=function(){return 0==this.l};C.prototype.clear=function(){this.s={};this.Fb=this.l=this.j.length=0};
|
|
C.prototype.remove=function(a){return Oc(this.s,a)?(delete this.s[a],this.l--,this.Fb++,this.j.length>2*this.l&&Nc(this),!0):!1};var Nc=function(a){if(a.l!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];Oc(a.s,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.l!=a.j.length){var e={};for(c=b=0;b<a.j.length;)d=a.j[b],Oc(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};h=C.prototype;h.get=function(a,b){return Oc(this.s,a)?this.s[a]:b};
|
|
h.set=function(a,b){Oc(this.s,a)||(this.l++,this.j.push(a),this.Fb++);this.s[a]=b};h.addAll=function(a){if(a instanceof C)for(var b=a.ba(),c=0;c<b.length;c++)this.set(b[c],a.get(b[c]));else for(b in a)this.set(b,a[b])};h.forEach=function(a,b){for(var c=this.ba(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};h.clone=function(){return new C(this)};
|
|
h.Oa=function(a){Nc(this);var b=0,c=this.Fb,d=this,e=new Kc;e.next=function(){if(c!=d.Fb)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)throw Jc;var e=d.j[b++];return a?e:d.s[e]};return e};var Oc=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Qc=function(a){if(a.m&&"function"==typeof a.m)a=a.m();else if(wa(a)||n(a))a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},Rc=function(a){if(a.w&&"function"==typeof a.w)return a.w();if(n(a))return a.split("");if(wa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ab(a)},Sc=function(a){if(a.ba&&"function"==typeof a.ba)return a.ba();if(!a.w||"function"!=typeof a.w){if(wa(a)||n(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Bb(a)}},Tc=function(a,b,
|
|
c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(wa(a)||n(a))Qa(a,b,c);else for(var d=Sc(a),e=Rc(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)},Uc=function(a,b){if("function"==typeof a.every)return a.every(b,void 0);if(wa(a)||n(a))return Ua(a,b,void 0);for(var c=Sc(a),d=Rc(a),e=d.length,f=0;f<e;f++)if(!b.call(void 0,d[f],c&&c[f],a))return!1;return!0};var D=function(a){this.s=new C;a&&this.addAll(a)},Vc=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[ya]||(a[ya]=++za)):b.substr(0,1)+a};h=D.prototype;h.m=function(){return this.s.m()};h.add=function(a){this.s.set(Vc(a),a)};h.addAll=function(a){a=Rc(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])};h.Ab=function(a){a=Rc(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};h.remove=function(a){return this.s.remove(Vc(a))};h.clear=function(){this.s.clear()};h.isEmpty=function(){return this.s.isEmpty()};
|
|
h.contains=function(a){return this.s.ta(Vc(a))};var Wc=function(a,b){var c=new D;b=Rc(b);for(var d=0;d<b.length;d++){var e=b[d];a.contains(e)&&c.add(e)}return c},Xc=function(a,b){a=a.clone();a.Ab(b);return a};D.prototype.w=function(){return this.s.w()};D.prototype.clone=function(){return new D(this)};D.prototype.equals=function(a){return this.m()==Qc(a)&&Yc(this,a)};
|
|
var Yc=function(a,b){var c=Qc(b);if(a.m()>c)return!1;!(b instanceof D)&&5<c&&(b=new D(b));return Uc(a,function(a){var c=b;return c.contains&&"function"==typeof c.contains?c.contains(a):c.ib&&"function"==typeof c.ib?c.ib(a):wa(c)||n(c)?Ya(c,a):Cb(c,a)})};D.prototype.Oa=function(){return this.s.Oa(!1)};var Zc=function(a,b,c){B.call(this);this.Re=b;this.token=c;this.za=[];this.hd=new D;this.xa=0;this.url=a};x(Zc,B);w("ee.AbstractOverlay",Zc);var $c=function(a,b,c){var d=1<<c,e=b.x%d;0>e&&(e+=d);return[a.Re,c,e,b.y].join("/")};Zc.prototype.Kc=function(){return this.za.length};var ad=function(a){z.call(this,"tileevent");this.count=a};x(ad,z);var bd={kind:"discovery#restDescription",name:"earthengine",version:"v1",rootUrl:"https://earthengine.googleapis.com/",servicePath:"",batchPath:"batch",id:"earthengine:v1",parameters:{"$.xgafv":{location:"query",required:!1},access_token:{location:"query",required:!1},alt:{location:"query",required:!1},callback:{location:"query",required:!1},fields:{location:"query",required:!1},key:{location:"query",required:!1},oauth_token:{location:"query",required:!1},prettyPrint:{location:"query",required:!1},
|
|
quotaUser:{location:"query",required:!1},uploadType:{location:"query",required:!1},upload_protocol:{location:"query",required:!1}},resources:{algorithms:{methods:{list:{id:"earthengine.algorithms.list",path:"v1/algorithms",httpMethod:"GET"}}},assets:{methods:{copy:{id:"earthengine.assets.copy",path:"v1/{+sourceName}:copy",httpMethod:"POST",request:{$ref:"CopyAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}},create:{id:"earthengine.assets.create",path:"v1/assets",httpMethod:"POST",
|
|
request:{$ref:"EarthEngineAsset"},parameters:{parent:{location:"query",required:!1},assetId:{location:"query",required:!1},overwrite:{location:"query",required:!1}}},"delete":{id:"earthengine.assets.delete",path:"v1/{+name}",httpMethod:"DELETE",parameters:{name:{location:"path",required:!0}}},get:{id:"earthengine.assets.get",path:"v1/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0},path:{location:"query",required:!1}}},getPixels:{id:"earthengine.assets.getPixels",path:"v1/{+name}:getPixels",
|
|
httpMethod:"POST",request:{$ref:"GetPixelsRequest"},parameters:{name:{location:"path",required:!0}}},ingestImage:{id:"earthengine.assets.ingestImage",path:"v1/assets:ingestImage",httpMethod:"POST",request:{$ref:"IngestImageRequest"}},ingestTable:{id:"earthengine.assets.ingestTable",path:"v1/assets:ingestTable",httpMethod:"POST",request:{$ref:"IngestTableRequest"}},list:{id:"earthengine.assets.list",path:"v1/{+name}:list",httpMethod:"GET",parameters:{name:{location:"path",required:!0},parentPath:{location:"query",
|
|
required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1}}},listFeatures:{id:"earthengine.assets.listFeatures",path:"v1/{+name}:listFeatures",httpMethod:"GET",parameters:{name:{location:"path",required:!0},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1},region:{location:"query",required:!1},filter:{location:"query",required:!1}}},listImages:{id:"earthengine.assets.listImages",path:"v1/{+name}:listImages",httpMethod:"GET",parameters:{name:{location:"path",
|
|
required:!0},parentPath:{location:"query",required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1},startTime:{location:"query",required:!1},endTime:{location:"query",required:!1},region:{location:"query",required:!1},filter:{location:"query",required:!1},view:{location:"query",required:!1}}},move:{id:"earthengine.assets.move",path:"v1/{+sourceName}:move",httpMethod:"POST",request:{$ref:"MoveAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}},
|
|
patch:{id:"earthengine.assets.patch",path:"v1/{+name}",httpMethod:"PATCH",request:{$ref:"UpdateAssetRequest"},parameters:{name:{location:"path",required:!0}}}}},filmstrips:{methods:{create:{id:"earthengine.filmstrips.create",path:"v1/filmstrips",httpMethod:"POST",request:{$ref:"Filmstrip"}},getPixels:{id:"earthengine.filmstrips.getPixels",path:"v1/{+name}:getPixels",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}}}},maps:{methods:{create:{id:"earthengine.maps.create",path:"v1/maps",
|
|
httpMethod:"POST",request:{$ref:"EarthEngineMap"}}},resources:{tiles:{methods:{get:{id:"earthengine.maps.tiles.get",path:"v1/{+parent}/tiles/{zoom}/{x}/{y}",httpMethod:"GET",parameters:{parent:{location:"path",required:!0},zoom:{location:"path",required:!0},x:{location:"path",required:!0},y:{location:"path",required:!0}}}}}}},operations:{methods:{cancel:{id:"earthengine.operations.cancel",path:"v1/{+name}:cancel",httpMethod:"POST",request:{$ref:"CancelOperationRequest"},parameters:{name:{location:"path",
|
|
required:!0}}},"delete":{id:"earthengine.operations.delete",path:"v1/{+name}",httpMethod:"DELETE",parameters:{name:{location:"path",required:!0}}},get:{id:"earthengine.operations.get",path:"v1/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}},list:{id:"earthengine.operations.list",path:"v1/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0},filter:{location:"query",required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1}}}}},
|
|
projects:{methods:{},resources:{assets:{methods:{copy:{id:"earthengine.projects.assets.copy",path:"v1/{+sourceName}:copy",httpMethod:"POST",request:{$ref:"CopyAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}},create:{id:"earthengine.projects.assets.create",path:"v1/{+parent}/assets",httpMethod:"POST",request:{$ref:"EarthEngineAsset"},parameters:{parent:{location:"path",required:!0},assetId:{location:"query",required:!1},overwrite:{location:"query",required:!1}}},"delete":{id:"earthengine.projects.assets.delete",
|
|
path:"v1/{+name}",httpMethod:"DELETE",parameters:{name:{location:"path",required:!0}}},get:{id:"earthengine.projects.assets.get",path:"v1/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0},path:{location:"query",required:!1}}},getIamPolicy:{id:"earthengine.projects.assets.getIamPolicy",path:"v1/{+resource}:getIamPolicy",httpMethod:"POST",request:{$ref:"GetIamPolicyRequest"},parameters:{resource:{location:"path",required:!0}}},getPixels:{id:"earthengine.projects.assets.getPixels",
|
|
path:"v1/{+name}:getPixels",httpMethod:"POST",request:{$ref:"GetPixelsRequest"},parameters:{name:{location:"path",required:!0}}},list:{id:"earthengine.projects.assets.list",path:"v1/{+name}:list",httpMethod:"GET",parameters:{name:{location:"path",required:!0},parentPath:{location:"query",required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1}}},listFeatures:{id:"earthengine.projects.assets.listFeatures",path:"v1/{+name}:listFeatures",httpMethod:"GET",parameters:{name:{location:"path",
|
|
required:!0},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1},region:{location:"query",required:!1},filter:{location:"query",required:!1}}},listImages:{id:"earthengine.projects.assets.listImages",path:"v1/{+name}:listImages",httpMethod:"GET",parameters:{name:{location:"path",required:!0},parentPath:{location:"query",required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1},startTime:{location:"query",required:!1},endTime:{location:"query",
|
|
required:!1},region:{location:"query",required:!1},filter:{location:"query",required:!1},view:{location:"query",required:!1}}},move:{id:"earthengine.projects.assets.move",path:"v1/{+sourceName}:move",httpMethod:"POST",request:{$ref:"MoveAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}},patch:{id:"earthengine.projects.assets.patch",path:"v1/{+name}",httpMethod:"PATCH",request:{$ref:"UpdateAssetRequest"},parameters:{name:{location:"path",required:!0}}},setIamPolicy:{id:"earthengine.projects.assets.setIamPolicy",
|
|
path:"v1/{+resource}:setIamPolicy",httpMethod:"POST",request:{$ref:"SetIamPolicyRequest"},parameters:{resource:{location:"path",required:!0}}},testIamPermissions:{id:"earthengine.projects.assets.testIamPermissions",path:"v1/{+resource}:testIamPermissions",httpMethod:"POST",request:{$ref:"TestIamPermissionsRequest"},parameters:{resource:{location:"path",required:!0}}}}}}},thumbnails:{methods:{create:{id:"earthengine.thumbnails.create",path:"v1/thumbnails",httpMethod:"POST",request:{$ref:"Thumbnail"}},
|
|
getPixels:{id:"earthengine.thumbnails.getPixels",path:"v1/{+name}:getPixels",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}}}},v1:{methods:{computeImage:{id:"earthengine.computeImage",path:"v1:computeImage",httpMethod:"POST",request:{$ref:"ComputeImageRequest"}},computeTable:{id:"earthengine.computeTable",path:"v1:computeTable",httpMethod:"POST",request:{$ref:"ComputeTableRequest"}},computeValue:{id:"earthengine.computeValue",path:"v1:computeValue",httpMethod:"POST",request:{$ref:"ComputeValueRequest"}},
|
|
exportImage:{id:"earthengine.exportImage",path:"v1:exportImage",httpMethod:"POST",request:{$ref:"ExportImageRequest"}},exportMap:{id:"earthengine.exportMap",path:"v1:exportMap",httpMethod:"POST",request:{$ref:"ExportMapRequest"}},exportTable:{id:"earthengine.exportTable",path:"v1:exportTable",httpMethod:"POST",request:{$ref:"ExportTableRequest"}},exportVideo:{id:"earthengine.exportVideo",path:"v1:exportVideo",httpMethod:"POST",request:{$ref:"ExportVideoRequest"}},exportVideoMap:{id:"earthengine.exportVideoMap",
|
|
path:"v1:exportVideoMap",httpMethod:"POST",request:{$ref:"ExportVideoMapRequest"}},ingestImage:{id:"earthengine.ingestImage",path:"v1:ingestImage",httpMethod:"POST",request:{$ref:"IngestImageRequest"}},ingestTable:{id:"earthengine.ingestTable",path:"v1:ingestTable",httpMethod:"POST",request:{$ref:"IngestTableRequest"}},listBuckets:{id:"earthengine.listBuckets",path:"v1:listBuckets",httpMethod:"GET"}}}},methods:{}};var cd=function(){},dd=function(a){return{constantValue:a}},ed=function(a){return{valueReference:a}},fd=function(a,b){return{functionInvocationValue:{functionName:a,arguments:b}}},gd=function(a,b){return{functionInvocationValue:{arguments:b,functionReference:a}}},hd=function(a,b){return{functionDefinitionValue:{argumentNames:a,body:b}}},id=function(a){if(!a)return"AUTO_PNG_JPEG";a=a.toUpperCase();return"JPG"===a?"JPEG":"AUTO"===a?"AUTO_PNG_JPEG":"GEOTIFF"===a?"GEO_TIFF":"TFRECORD"===a?"TF_RECORD_IMAGE":
|
|
a},jd=function(a){if(!a)return[];if(n(a))return a.split(",");if(q(a))return a;throw Error("Invalid band list "+a);},md=function(a){var b={};if("palette"in a){var c=a.palette;b.paletteColors=n(c)?c.split(","):c}c=[];if("gain"in a||"bias"in a){if("min"in a||"max"in a)throw Error("Gain and bias can't be specified with min and max");var d=b.paletteColors?b.paletteColors.length-1:255;c=kd(a,"bias","gain").map(function(a){var b=-a.bias/a.gain;return{min:b,max:d/a.gain+b}})}else if("min"in a||"max"in a)c=
|
|
kd(a,"min","max");0!==c.length&&(b.ranges=c);a=ld(a.gamma);if(1<a.length)throw Error("Only one gamma value is supported");1===a.length&&(b.gamma={value:a[0]});return Fb(b)?null:b},ld=function(a){return a?a.split(",").map(Number):[]},kd=function(a,b,c){var d=ld(a[b]),e=ld(a[c]);if(0===d.length)return e.map(function(a){var d={};return d[b]=0,d[c]=a,d});if(0===e.length)return d.map(function(a){var d={};return d[b]=a,d[c]=1,d});if(d.length!==e.length)throw Error("Length of "+b+" and "+c+" must match.");
|
|
return d.map(function(a,d){var f={};return f[b]=a,f[c]=e[d],f})};var nd=function(){this.ka=-1};var od=function(){this.ka=-1;this.ka=64;this.F=Array(4);this.we=Array(this.ka);this.kc=this.gb=0;this.reset()};x(od,nd);od.prototype.reset=function(){this.F[0]=1732584193;this.F[1]=4023233417;this.F[2]=2562383102;this.F[3]=271733878;this.kc=this.gb=0};
|
|
var pd=function(a,b,c){c||(c=0);var d=Array(16);if(n(b))for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.F[0];c=a.F[1];e=a.F[2];var f=a.F[3];var g=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&
|
|
(f^b))+d[3]+3250441966&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(g<<12&4294967295|g>>>20);g=
|
|
e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(g<<5&4294967295|
|
|
g>>>27);g=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=e+(g<<20&4294967295|
|
|
g>>>12);g=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[7]+1735328473&4294967295;e=f+(g<<14&4294967295|
|
|
g>>>18);g=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^
|
|
b^c)+d[7]+4139469664&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[12]+3873151461&4294967295;
|
|
f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[12]+1700485571&4294967295;b=c+
|
|
(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[13]+1309151649&4294967295;
|
|
c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.F[0]=a.F[0]+b&4294967295;a.F[1]=a.F[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;a.F[2]=a.F[2]+e&4294967295;a.F[3]=a.F[3]+f&4294967295};
|
|
od.prototype.update=function(a,b){m(b)||(b=a.length);for(var c=b-this.ka,d=this.we,e=this.gb,f=0;f<b;){if(0==e)for(;f<=c;)pd(this,a,f),f+=this.ka;if(n(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.ka){pd(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.ka){pd(this,d);e=0;break}}this.gb=e;this.kc+=b};
|
|
od.prototype.digest=function(){var a=Array((56>this.gb?this.ka:2*this.ka)-this.gb);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.kc;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.F[b]>>>d&255;return a};var rd=function(a){return(new qd(void 0)).D(a)},qd=function(a){this.cc=a};qd.prototype.D=function(a){var b=[];sd(this,a,b);return b.join("")};
|
|
var sd=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(q(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],sd(a,a.cc?a.cc.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),td(d,c),c.push(":"),sd(a,a.cc?a.cc.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":td(b,
|
|
c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}},ud={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},vd=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,td=function(a,b){b.push('"',a.replace(vd,function(a){var b=ud[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),
|
|
ud[a]=b);return b}),'"')};var wd=function(a){this.ra="__ee_hash__";this.Tb=!1!==a;this.ha=[];this.U={};this.fb=[]};w("ee.Serializer",wd);var xd=new qd,yd=new od,Ad=function(a,b){return zd(new wd(m(b)?b:!0),a)};w("ee.Serializer.encode",Ad);var Bd=function(a){return xd.D(Ad(a))};w("ee.Serializer.toJSON",Bd);var Dd=function(a){return Cd(Ad(a,!1))};w("ee.Serializer.toReadableJSON",Dd);
|
|
var Cd=function(a){return"JSON"in k?k.JSON.stringify(a,null," "):xd.D(a)},zd=function(a,b){b=a.Mb(b);a.Tb&&(b=r(b)&&"ValueRef"==b.type&&1==a.ha.length?a.ha[0][1]:{type:"CompoundValue",scope:a.ha,value:b},a.ha=[],Qa(a.fb,u(function(a){delete a[this.ra]},a)),a.fb=[],a.U={});return b};
|
|
wd.prototype.Mb=function(a){if(!m(a))throw Error("Can't encode an undefined value.");var b=r(a)?a[this.ra]:null;if(this.Tb&&null!=b&&this.U[b])return{type:"ValueRef",value:this.U[b]};if(null===a||pa(a)||p(a)||n(a))return a;if(xa(a))return{type:"Invocation",functionName:"Date",arguments:{value:Math.floor(a.getTime())}};if(a instanceof cd){var c=a.encode(u(this.Mb,this));if(!(q(c)||r(c)&&"ArgumentRef"!=c.type))return c}else if(q(a))c=Sa(a,function(a){return this.Mb(a)},this);else if(r(a)&&!t(a))c=yb(a,
|
|
function(a){if(!t(a))return this.Mb(a)},this),Gb(c,this.ra),c={type:"Dictionary",value:c};else throw Error("Can't encode object: "+a);if(this.Tb){b=Ed(c);if(this.U[b])var d=this.U[b];else d=String(this.ha.length),this.ha.push([d,c]),this.U[b]=d;a[this.ra]=b;this.fb.push(a);return{type:"ValueRef",value:d}}return c};var Ed=function(a){yd.reset();yd.update(xd.D(a));return yd.digest().toString()},Gd=function(a){return Fd(new wd(!0),a)};w("ee.Serializer.encodeCloudApi",Gd);
|
|
var Hd=function(a){a=Fd(new wd(!1),a);var b=a.values,c=function(a){if(!r(a))return a;var d=q(a)?[]:{};a=ba(Object.entries(a));for(var f=a.next();!f.done;f=a.next()){var g=ba(f.value);f=g.next().value;g=g.next().value;d[f]="functionDefinitionValue"===f&&null!=g.body?{argumentNames:g.argumentNames,body:c(b[g.body])}:"functionInvocationValue"===f&&null!=g.functionReference?{arguments:g.arguments.map(c),functionReference:c(b[g.functionReference])}:"constantValue"===f?g:c(g)}return d};return c(b[a.result])};
|
|
w("ee.Serializer.encodeCloudApiPretty",Hd);var Id=function(a){return Cd(Hd(a))};w("ee.Serializer.toReadableCloudApiJSON",Id);
|
|
var Fd=function(a,b){try{var c=Jd(a,b);return Kd(new Ld(c,a.ha,a.Tb))}finally{a.fb.forEach(function(b){return delete b[a.ra]}),a.fb=[],a.U={},a.ha=[]}},Jd=function(a,b){var c=function(c){var d=Ed(c);if(a.U[d])return a.U[d];var e=String(a.ha.length);a.ha.push([e,c]);a.U[d]=e;r(b)&&(b[a.ra]=d,a.fb.push(b));return e};if(r(b)&&a.U[b[a.ra]])return a.U[b[a.ra]];if(null===b||pa(b)||n(b)||p(b))return c(dd(b));if(xa(b))return c(fd("Date",{value:dd(Math.floor(b.getTime()))}));if(b instanceof cd)return c(b.P(function(b){return Jd(a,
|
|
b)}));if(q(b))return c({arrayValue:{values:b.map(function(b){return ed(Jd(a,b))})}});if(r(b)&&!t(b)){var d={};Object.keys(b).sort().forEach(function(c){d[c]=ed(Jd(a,b[c]))});return c({dictionaryValue:{values:d}})}throw Error("Can't encode object: "+b);},Ld=function(a,b,c){var d=this;this.he=a;this.values={};b.forEach(function(a){return d.values[a[0]]=a[1]});this.be=c?Md(this):null;this.$d={};this.Zc={};this.Ue=0},Kd=function(a){return{result:Nd(a,a.he),values:a.$d}},Nd=function(a,b){if(b in a.Zc)return a.Zc[b];
|
|
var c=String(a.Ue++);a.Zc[b]=c;a.$d[c]=Od(a,a.values[b]);return c},Od=function(a,b){var c=function(a){return void 0!==a.constantValue};if(c(b)||null!=b.integerValue||null!=b.bytesValue||null!=b.argumentReference)return b;if(null!=b.valueReference)return c=a.values[b.valueReference],null===a.be||1===a.be[b.valueReference]?Od(a,c):Pd(c)?c:ed(Nd(a,b.valueReference));if(null!=b.arrayValue){var d=b.arrayValue.values.map(function(b){return Od(a,b)});return d.every(c)?dd(d.map(function(a){return a.constantValue})):
|
|
{arrayValue:{values:d}}}if(null!=b.dictionaryValue){d={};var e={};b=ba(Object.entries(b.dictionaryValue.values||{}));for(var f=b.next();!f.done;f=b.next()){var g=ba(f.value);f=g.next().value;g=g.next().value;d[f]=Od(a,g);null!==e&&c(d[f])?e[f]=d[f].constantValue:e=null}return null!==e?dd(e):{dictionaryValue:{values:d}}}if(null!=b.functionDefinitionValue)return c=b.functionDefinitionValue,hd(c.argumentNames||[],Nd(a,c.body||""));if(null!=b.functionInvocationValue){c=b.functionInvocationValue;d={};
|
|
e=ba(Object.keys(c.arguments||{}));for(b=e.next();!b.done;b=e.next())b=b.value,d[b]=Od(a,c.arguments[b]);return c.functionName?fd(c.functionName,d):gd(Nd(a,c.functionReference||""),d)}throw Error("Can't optimize value: "+b);},Pd=function(a){a=a.constantValue;return void 0!==a&&(null===a||p(a)||pa(a))},Md=function(a){var b={},c=function(c){b[c]?b[c]++:(b[c]=1,d(a.values[c]))},d=function(a){null!=a.arrayValue?a.arrayValue.values.forEach(d):null!=a.dictionaryValue?Object.values(a.dictionaryValue.values).forEach(d):
|
|
null!=a.functionDefinitionValue?c(a.functionDefinitionValue.body):null!=a.functionInvocationValue?(a=a.functionInvocationValue,null!=a.functionReference&&c(a.functionReference),Object.values(a.arguments).forEach(d)):null!=a.valueReference&&c(a.valueReference)};c(a.he);return b};Object.freeze&&Object.freeze([]);var Qd=function(a,b){this.Oe=100;this.Ce=a;this.$e=b;this.Xb=0;this.M=null};Qd.prototype.get=function(){if(0<this.Xb){this.Xb--;var a=this.M;this.M=a.next;a.next=null}else a=this.Ce();return a};Qd.prototype.put=function(a){this.$e(a);this.Xb<this.Oe&&(this.Xb++,a.next=this.M,this.M=a)};var Rd=function(a){k.setTimeout(function(){throw a;},0)},Sd,Td=function(){var a=k.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!vb("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow;a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host;
|
|
a=u(function(a){if(("*"==d||a.origin==d)&&a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!vb("Trident")&&!vb("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(m(c.next)){c=c.next;var a=c.ud;c.ud=null;a()}};return function(a){d.next={ud:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?
|
|
function(a){var b=document.createElement("SCRIPT");b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){k.setTimeout(a,0)}};var Ud=function(){this.pc=this.Na=null},Wd=new Qd(function(){return new Vd},function(a){a.reset()});Ud.prototype.add=function(a,b){var c=Wd.get();c.set(a,b);this.pc?this.pc.next=c:(A(!this.Na),this.Na=c);this.pc=c};Ud.prototype.remove=function(){var a=null;this.Na&&(a=this.Na,this.Na=this.Na.next,this.Na||(this.pc=null),a.next=null);return a};var Vd=function(){this.next=this.scope=this.Jc=null};Vd.prototype.set=function(a,b){this.Jc=a;this.scope=b;this.next=null};
|
|
Vd.prototype.reset=function(){this.next=this.scope=this.Jc=null};var ae=function(a,b){Xd||Yd();Zd||(Xd(),Zd=!0);$d.add(a,b)},Xd,Yd=function(){if(k.Promise&&k.Promise.resolve){var a=k.Promise.resolve(void 0);Xd=function(){a.then(be)}}else Xd=function(){var a=be;!t(k.setImmediate)||k.Window&&k.Window.prototype&&!vb("Edge")&&k.Window.prototype.setImmediate==k.setImmediate?(Sd||(Sd=Td()),Sd(a)):k.setImmediate(a)}},Zd=!1,$d=new Ud,be=function(){for(var a;a=$d.remove();){try{a.Jc.call(a.scope)}catch(b){Rd(b)}Wd.put(a)}Zd=!1};var ce=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var ge=function(a){this.B=0;this.T=void 0;this.Qa=this.la=this.u=null;this.Pb=this.Fc=!1;if(a!=ta)try{var b=this;a.call(void 0,function(a){de(b,2,a)},function(a){if(!(a instanceof fe))try{if(a instanceof Error)throw a;throw Error("Promise rejected.");}catch(d){}de(b,3,a)})}catch(c){de(this,3,c)}},he=function(){this.next=this.context=this.Xa=this.Fa=this.Aa=null;this.Hb=!1};he.prototype.reset=function(){this.context=this.Xa=this.Fa=this.Aa=null;this.Hb=!1};
|
|
var ie=new Qd(function(){return new he},function(a){a.reset()}),je=function(a,b,c){var d=ie.get();d.Fa=a;d.Xa=b;d.context=c;return d};ge.prototype.then=function(a,b,c){null!=a&&Ma(a,"opt_onFulfilled should be a function.");null!=b&&Ma(b,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");return ke(this,t(a)?a:null,t(b)?b:null,c)};ge.prototype.$goog_Thenable=!0;
|
|
ge.prototype.cancel=function(a){0==this.B&&ae(function(){var b=new fe(a);le(this,b)},this)};
|
|
var le=function(a,b){if(0==a.B)if(a.u){var c=a.u;if(c.la){for(var d=0,e=null,f=null,g=c.la;g&&(g.Hb||(d++,g.Aa==a&&(e=g),!(e&&1<d)));g=g.next)e||(f=g);e&&(0==c.B&&1==d?le(c,b):(f?(d=f,A(c.la),A(null!=d),d.next==c.Qa&&(c.Qa=d),d.next=d.next.next):me(c),ne(c,e,3,b)))}a.u=null}else de(a,3,b)},pe=function(a,b){a.la||2!=a.B&&3!=a.B||oe(a);A(null!=b.Fa);a.Qa?a.Qa.next=b:a.la=b;a.Qa=b},ke=function(a,b,c,d){var e=je(null,null,null);e.Aa=new ge(function(a,g){e.Fa=b?function(c){try{var e=b.call(d,c);a(e)}catch(F){g(F)}}:
|
|
a;e.Xa=c?function(b){try{var e=c.call(d,b);!m(e)&&b instanceof fe?g(b):a(e)}catch(F){g(F)}}:g});e.Aa.u=a;pe(a,e);return e.Aa};ge.prototype.hf=function(a){A(1==this.B);this.B=0;de(this,2,a)};ge.prototype.jf=function(a){A(1==this.B);this.B=0;de(this,3,a)};
|
|
var de=function(a,b,c){if(0==a.B){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.B=1;a:{var d=c,e=a.hf,f=a.jf;if(d instanceof ge){null!=e&&Ma(e,"opt_onFulfilled should be a function.");null!=f&&Ma(f,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");pe(d,je(e||ta,f||null,a));var g=!0}else if(ce(d))d.then(e,f,a),g=!0;else{if(r(d))try{var l=d.then;if(t(l)){qe(d,l,e,f,a);g=!0;break a}}catch(v){f.call(a,v);g=!0;break a}g=!1}}g||
|
|
(a.T=c,a.B=b,a.u=null,oe(a),3!=b||c instanceof fe||re(a,c))}},qe=function(a,b,c,d,e){var f=!1,g=function(a){f||(f=!0,c.call(e,a))},l=function(a){f||(f=!0,d.call(e,a))};try{b.call(a,g,l)}catch(v){l(v)}},oe=function(a){a.Fc||(a.Fc=!0,ae(a.Fe,a))},me=function(a){var b=null;a.la&&(b=a.la,a.la=b.next,b.next=null);a.la||(a.Qa=null);null!=b&&A(null!=b.Fa);return b};ge.prototype.Fe=function(){for(var a;a=me(this);)ne(this,a,this.B,this.T);this.Fc=!1};
|
|
var ne=function(a,b,c,d){if(3==c&&b.Xa&&!b.Hb)for(;a&&a.Pb;a=a.u)a.Pb=!1;if(b.Aa)b.Aa.u=null,se(b,c,d);else try{b.Hb?b.Fa.call(b.context):se(b,c,d)}catch(e){te.call(null,e)}ie.put(b)},se=function(a,b,c){2==b?a.Fa.call(a.context,c):a.Xa&&a.Xa.call(a.context,c)},re=function(a,b){a.Pb=!0;ae(function(){a.Pb&&te.call(null,b)})},te=Rd,fe=function(a){Fa.call(this,a)};x(fe,Fa);fe.prototype.name="cancel";var ue=function(a,b,c){if(t(a))c&&(a=u(a,c));else if(a&&"function"==typeof a.handleEvent)a=u(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:k.setTimeout(a,b||0)};var ve=function(a,b,c){y.call(this);this.Pe=null!=c?u(a,c):a;this.Le=b;this.ye=u(this.We,this);this.vc=[]};x(ve,y);h=ve.prototype;h.cb=!1;h.zb=0;h.Ka=null;h.Ic=function(a){this.vc=arguments;this.Ka||this.zb?this.cb=!0:we(this)};h.stop=function(){this.Ka&&(k.clearTimeout(this.Ka),this.Ka=null,this.cb=!1,this.vc=[])};h.pause=function(){this.zb++};h.resume=function(){this.zb--;this.zb||!this.cb||this.Ka||(this.cb=!1,we(this))};h.h=function(){ve.f.h.call(this);this.stop()};
|
|
h.We=function(){this.Ka=null;this.cb&&!this.zb&&(this.cb=!1,we(this))};var we=function(a){a.Ka=ue(a.ye,a.Le);a.Pe.apply(null,a.vc)};var ze=function(a,b){this.ed=a===xe&&b||"";this.re=ye};ze.prototype.Pc=!0;ze.prototype.Mc=function(){return this.ed};ze.prototype.toString=function(){return"Const{"+this.ed+"}"};var Ae=function(a){if(a instanceof ze&&a.constructor===ze&&a.re===ye)return a.ed;Ja("expected object of type Const, got '"+a+"'");return"type_error:Const"},ye={},xe={};var Ce=function(){this.$b="";this.se=Be};Ce.prototype.Pc=!0;Ce.prototype.Mc=function(){return this.$b};Ce.prototype.toString=function(){return"TrustedResourceUrl{"+this.$b+"}"};
|
|
var De=function(a){if(a instanceof Ce&&a.constructor===Ce&&a.se===Be)return a.$b;Ja("expected object of type TrustedResourceUrl, got '"+a+"' of type "+ua(a));return"type_error:TrustedResourceUrl"},Ie=function(a){var b=Ae(Ee);if(!Fe.test(b))throw Error("Invalid TrustedResourceUrl format: "+b);var c=b.replace(Ge,function(c,e){if(!Object.prototype.hasOwnProperty.call(a,e))throw Error('Found marker, "'+e+'", in format string, "'+b+'", but no valid label mapping found in args: '+JSON.stringify(a));c=a[e];
|
|
return c instanceof ze?Ae(c):encodeURIComponent(String(c))});return He(c)},Ge=/%{(\w+)}/g,Fe=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Be={},He=function(a){var b=new Ce;b.$b=a;return b};var Je=!Pb||9<=Number($b),Ke=!Rb&&!Pb||Pb&&9<=Number($b)||Rb&&Zb("1.9.1");var Me=function(){this.Zb="";this.qe=Le};Me.prototype.Pc=!0;Me.prototype.Mc=function(){return this.Zb};Me.prototype.toString=function(){return"SafeUrl{"+this.Zb+"}"};
|
|
var Ne=function(a){if(a instanceof Me&&a.constructor===Me&&a.qe===Le)return a.Zb;Ja("expected object of type SafeUrl, got '"+a+"' of type "+ua(a));return"type_error:SafeUrl"},Oe=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime))$/i,Qe=function(a){if(Oe.test(a.type)){var b=m(k.URL)&&m(k.URL.createObjectURL)?k.URL:m(k.webkitURL)&&m(k.webkitURL.createObjectURL)?k.webkitURL:
|
|
m(k.createObjectURL)?k:null;if(null==b)throw Error("This browser doesn't seem to support blob URLs");a=b.createObjectURL(a)}else a="about:invalid#zClosurez";return Pe(a)},Le={},Pe=function(a){var b=new Me;b.Zb=a;return b};Pe("about:blank");var Re=function(a,b){var c=(c=a&&a.ownerDocument)&&(c.defaultView||c.parentWindow)||k;if("undefined"!=typeof c.HTMLScriptElement&&"undefined"!=typeof c.Location&&"undefined"!=typeof c.Element){c=a&&(a instanceof c.HTMLScriptElement||!(a instanceof c.Location||a instanceof c.Element));var d=r(a)?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):void 0===a?"undefined":null===a?"null":typeof a;A(c,"Argument is not a %s (or a non-Element, non-Location mock); got: %s","HTMLScriptElement",
|
|
d)}a.src=De(b);if(null===ra)b:{b=k.document;if((b=b.querySelector&&b.querySelector("script[nonce]"))&&(b=b.nonce||b.getAttribute("nonce"))&&qa.test(b)){ra=b;break b}ra=""}b=ra;b&&a.setAttribute("nonce",b)};var Te=function(a,b){wb(b,function(b,d){b&&"object"==typeof b&&b.Pc&&(b=b.Mc());"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:Se.hasOwnProperty(d)?a.setAttribute(Se[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})},Se={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",
|
|
width:"width"},Ve=function(a,b,c){return Ue(document,arguments)},Ue=function(a,b){var c=String(b[0]),d=b[1];if(!Je&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',pb(d.name),'"');if(d.type){c.push(' type="',pb(d.type),'"');var e={};Kb(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(n(d)?c.className=d:q(d)?c.className=d.join(" "):Te(c,d));2<b.length&&We(a,c,b,2);return c},We=function(a,b,c,d){function e(c){c&&b.appendChild(n(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=
|
|
c[d];!wa(f)||r(f)&&0<f.nodeType?e(f):Qa(Xe(f)?cb(f):f,e)}},Ye=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},Ze=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a},$e=function(a){A(a,"Node cannot be null or undefined.");return 9==a.nodeType?a:a.ownerDocument||a.document},Xe=function(a){if(a&&"number"==typeof a.length){if(r(a))return"function"==typeof a.item||"string"==typeof a.item;if(t(a))return"function"==typeof a.item}return!1},af=function(a){this.Lb=a||k.document||
|
|
document};h=af.prototype;h.getElementsByTagName=function(a,b){return(b||this.Lb).getElementsByTagName(String(a))};h.Be=function(a,b,c){return Ue(this.Lb,arguments)};h.createElement=function(a){return this.Lb.createElement(String(a))};h.createTextNode=function(a){return this.Lb.createTextNode(String(a))};h.appendChild=function(a,b){A(null!=a&&null!=b,"goog.dom.appendChild expects non-null arguments");a.appendChild(b)};h.append=function(a,b){We($e(a),a,arguments,1)};
|
|
h.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};h.removeNode=Ye;
|
|
h.Jd=function(){return Ke&&void 0!=(void 0).children?(void 0).children:Ra((void 0).childNodes,function(a){return 1==a.nodeType})};h.contains=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};/*
|
|
Portions of this code are from MochiKit, received by
|
|
The Closure Authors under the MIT license. All other code is Copyright
|
|
2005-2009 The Closure Authors. All Rights Reserved.
|
|
*/
|
|
var cf=function(a){var b=bf;this.ec=[];this.Wd=b;this.zd=a||null;this.qb=this.Ua=!1;this.T=void 0;this.cd=this.pd=this.wc=!1;this.lc=0;this.u=null;this.xc=0};cf.prototype.cancel=function(a){if(this.Ua)this.T instanceof cf&&this.T.cancel();else{if(this.u){var b=this.u;delete this.u;a?b.cancel(a):(b.xc--,0>=b.xc&&b.cancel())}this.Wd?this.Wd.call(this.zd,this):this.cd=!0;this.Ua||df(this,new ef(this))}};cf.prototype.vd=function(a,b){this.wc=!1;ff(this,a,b)};
|
|
var ff=function(a,b,c){a.Ua=!0;a.T=c;a.qb=!b;gf(a)},jf=function(a){if(a.Ua){if(!a.cd)throw new hf(a);a.cd=!1}};cf.prototype.callback=function(a){jf(this);kf(a);ff(this,!0,a)};var df=function(a,b){jf(a);kf(b);ff(a,!1,b)},kf=function(a){A(!(a instanceof cf),"An execution sequence may not be initiated with a blocking Deferred.")},lf=function(a,b,c){A(!a.pd,"Blocking Deferreds can not be re-used");a.ec.push([b,c,void 0]);a.Ua&&gf(a)};
|
|
cf.prototype.then=function(a,b,c){var d,e,f=new ge(function(a,b){d=a;e=b});lf(this,d,function(a){a instanceof ef?f.cancel():e(a)});return f.then(a,b,c)};cf.prototype.$goog_Thenable=!0;
|
|
var mf=function(a){return Ta(a.ec,function(a){return t(a[1])})},gf=function(a){if(a.lc&&a.Ua&&mf(a)){var b=a.lc,c=nf[b];c&&(k.clearTimeout(c.J),delete nf[b]);a.lc=0}a.u&&(a.u.xc--,delete a.u);b=a.T;for(var d=c=!1;a.ec.length&&!a.wc;){var e=a.ec.shift(),f=e[0],g=e[1];e=e[2];if(f=a.qb?g:f)try{var l=f.call(e||a.zd,b);m(l)&&(a.qb=a.qb&&(l==b||l instanceof Error),a.T=b=l);if(ce(b)||"function"===typeof k.Promise&&b instanceof k.Promise)d=!0,a.wc=!0}catch(v){b=v,a.qb=!0,mf(a)||(c=!0)}}a.T=b;d&&(l=u(a.vd,
|
|
a,!0),d=u(a.vd,a,!1),b instanceof cf?(lf(b,l,d),b.pd=!0):b.then(l,d));c&&(b=new of(b),nf[b.J]=b,a.lc=b.J)},hf=function(){Fa.call(this)};x(hf,Fa);hf.prototype.message="Deferred has already fired";hf.prototype.name="AlreadyCalledError";var ef=function(){Fa.call(this)};x(ef,Fa);ef.prototype.message="Deferred was canceled";ef.prototype.name="CanceledError";var of=function(a){this.J=k.setTimeout(u(this.gf,this),0);this.Nb=a};
|
|
of.prototype.gf=function(){A(nf[this.J],"Cannot throw an error that is not scheduled.");delete nf[this.J];throw this.Nb;};var nf={};var sf=function(a){var b={},c=b.document||document,d=De(a),e=document.createElement("SCRIPT"),f={ie:e,Db:void 0},g=new cf(f),l=null,v=null!=b.timeout?b.timeout:5E3;0<v&&(l=window.setTimeout(function(){pf(e,!0);df(g,new qf(1,"Timeout reached for loading script "+d))},v),f.Db=l);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(pf(e,b.sf||!1,l),g.callback(null))};e.onerror=function(){pf(e,!0,l);df(g,new qf(0,"Error while loading script "+d))};
|
|
f=b.attributes||{};Kb(f,{type:"text/javascript",charset:"UTF-8"});Te(e,f);Re(e,a);rf(c).appendChild(e)},rf=function(a){var b;return(b=(a||document).getElementsByTagName("HEAD"))&&0!=b.length?b[0]:a.documentElement},bf=function(){if(this&&this.ie){var a=this.ie;a&&"SCRIPT"==a.tagName&&pf(a,!0,this.Db)}},pf=function(a,b,c){null!=c&&k.clearTimeout(c);a.onload=ta;a.onerror=ta;a.onreadystatechange=ta;b&&window.setTimeout(function(){Ye(a)},0)},qf=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=
|
|
": "+b);Fa.call(this,c);this.code=a};x(qf,Fa);var tf=function(a,b,c){this.reset(a,b,c,void 0,void 0)};tf.prototype.Cd=null;var uf=0;tf.prototype.reset=function(a,b,c,d,e){"number"==typeof e||uf++;d||Da();this.ub=a;delete this.Cd};tf.prototype.ke=function(a){this.ub=a};var vf=function(a){this.Vd=a;this.Md=this.yc=this.ub=this.u=null},wf=function(a,b){this.name=a;this.value=b};wf.prototype.toString=function(){return this.name};var xf=new wf("SEVERE",1E3),yf=new wf("INFO",800),zf=new wf("CONFIG",700),Af=new wf("FINE",500);vf.prototype.getName=function(){return this.Vd};vf.prototype.getParent=function(){return this.u};vf.prototype.Jd=function(){this.yc||(this.yc={});return this.yc};vf.prototype.ke=function(a){this.ub=a};
|
|
var Bf=function(a){if(a.ub)return a.ub;if(a.u)return Bf(a.u);Ja("Root logger has no level set.");return null};vf.prototype.log=function(a,b,c){if(a.value>=Bf(this).value)for(t(b)&&(b=b()),a=new tf(a,String(b),this.Vd),c&&(a.Cd=c),c=this;c;){var d=c,e=a;if(d.Md)for(var f=0;b=d.Md[f];f++)b(e);c=c.getParent()}};vf.prototype.info=function(a,b){this.log(yf,a,b)};
|
|
var Cf={},Df=null,Ef=function(a){Df||(Df=new vf(""),Cf[""]=Df,Df.ke(zf));var b;if(!(b=Cf[a])){b=new vf(a);var c=a.lastIndexOf("."),d=a.substr(c+1);c=Ef(a.substr(0,c));c.Jd()[d]=b;b.u=c;Cf[a]=b}return b};var Ff=function(a,b){a&&a.log(Af,b,void 0)};var Gf=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Hf=function(){};Hf.prototype.td=null;Hf.prototype.pb=function(){var a;(a=this.td)||(a={},If(this)&&(a[0]=!0,a[1]=!0),a=this.td=a);return a};var Jf=function(a,b){this.lf=a;this.Xe=b};x(Jf,Hf);Jf.prototype.Ac=function(){return this.lf()};Jf.prototype.pb=function(){return this.Xe()};var Kf=function(){return Kf.Dd.Ac()};Kf.pe=!1;Kf.pb=function(){return Kf.Dd.pb()};Kf.tf=function(a,b){Kf.je(new Jf(A(a),A(b)))};Kf.je=function(a){Kf.Dd=a};var Lf=function(){};x(Lf,Hf);Lf.prototype.Ac=function(){var a=If(this);return a?new ActiveXObject(a):new XMLHttpRequest};
|
|
var If=function(a){if(Kf.pe)return"";if(!a.Nd&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.Nd=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.Nd};Kf.je(new Lf);var Mf=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Nf=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};var E=function(a){B.call(this);this.headers=new C;this.rc=a||null;this.Y=!1;this.qc=this.a=null;this.tb=this.Sd=this.Ub="";this.Ea=this.Qc=this.Sb=this.Ec=!1;this.eb=0;this.hc=null;this.bb="";this.nc=this.Ye=this.oe=!1};x(E,B);var Of=E.prototype,Pf=Ef("goog.net.XhrIo");Of.N=Pf;var Qf=/^https?$/i,Rf=["POST","PUT"],Sf=[];E.prototype.Ae=function(){this.da();ab(Sf,this)};
|
|
E.prototype.send=function(a,b,c,d){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Ub+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Ub=a;this.tb="";this.Sd=b;this.Ec=!1;this.Y=!0;this.a=this.rc?this.rc.Ac():Kf();this.qc=this.rc?this.rc.pb():Kf.pb();this.a.onreadystatechange=u(this.Zd,this);this.Ye&&"onprogress"in this.a&&(this.a.onprogress=u(function(a){this.Yd(a,!0)},this),this.a.upload&&(this.a.upload.onprogress=u(this.Yd,this)));try{Ff(this.N,Tf(this,"Opening Xhr")),
|
|
this.Qc=!0,this.a.open(b,String(a),!0),this.Qc=!1}catch(f){Ff(this.N,Tf(this,"Error opening Xhr: "+f.message));this.Nb(5,f);return}a=c||"";var e=this.headers.clone();d&&Tc(d,function(a,b){e.set(b,a)});d=Xa(e.ba());c=k.FormData&&a instanceof k.FormData;!Ya(Rf,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,b){this.a.setRequestHeader(b,a)},this);this.bb&&(this.a.responseType=this.bb);"withCredentials"in this.a&&this.a.withCredentials!==this.oe&&
|
|
(this.a.withCredentials=this.oe);try{Uf(this),0<this.eb&&(this.nc=Vf(this.a),Ff(this.N,Tf(this,"Will abort after "+this.eb+"ms if incomplete, xhr2 "+this.nc)),this.nc?(this.a.timeout=this.eb,this.a.ontimeout=u(this.Db,this)):this.hc=ue(this.Db,this.eb,this)),Ff(this.N,Tf(this,"Sending request")),this.Sb=!0,this.a.send(a),this.Sb=!1}catch(f){Ff(this.N,Tf(this,"Send error: "+f.message)),this.Nb(5,f)}};
|
|
var Vf=function(a){return Pb&&Zb(9)&&p(a.timeout)&&m(a.ontimeout)},Wa=function(a){return"content-type"==a.toLowerCase()};E.prototype.Db=function(){"undefined"!=typeof oa&&this.a&&(this.tb="Timed out after "+this.eb+"ms, aborting",Ff(this.N,Tf(this,this.tb)),this.dispatchEvent("timeout"),this.abort(8))};E.prototype.Nb=function(a,b){this.Y=!1;this.a&&(this.Ea=!0,this.a.abort(),this.Ea=!1);this.tb=b;Wf(this);Xf(this)};var Wf=function(a){a.Ec||(a.Ec=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
|
|
E.prototype.abort=function(){this.a&&this.Y&&(Ff(this.N,Tf(this,"Aborting")),this.Y=!1,this.Ea=!0,this.a.abort(),this.Ea=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Xf(this))};E.prototype.h=function(){this.a&&(this.Y&&(this.Y=!1,this.Ea=!0,this.a.abort(),this.Ea=!1),Xf(this,!0));E.f.h.call(this)};E.prototype.Zd=function(){this.ea||(this.Qc||this.Sb||this.Ea?Yf(this):this.Ve())};E.prototype.Ve=function(){Yf(this)};
|
|
var Yf=function(a){if(a.Y&&"undefined"!=typeof oa)if(a.qc[1]&&4==a.ua()&&2==a.getStatus())Ff(a.N,Tf(a,"Local request error detected and ignored"));else if(a.Sb&&4==a.ua())ue(a.Zd,0,a);else if(a.dispatchEvent("readystatechange"),4==a.ua()){Ff(a.N,Tf(a,"Request complete"));a.Y=!1;try{var b=a.getStatus(),c;if(!(c=Gf(b))){var d;if(d=0===b){var e=String(a.Ub).match(Mf)[1]||null;if(!e&&k.self&&k.self.location){var f=k.self.location.protocol;e=f.substr(0,f.length-1)}d=!Qf.test(e?e.toLowerCase():"")}c=d}if(c)a.dispatchEvent("complete"),
|
|
a.dispatchEvent("success");else{try{var g=2<a.ua()?a.a.statusText:""}catch(l){Ff(a.N,"Can not get status: "+l.message),g=""}a.tb=g+" ["+a.getStatus()+"]";Wf(a)}}finally{Xf(a)}}};E.prototype.Yd=function(a,b){A("progress"===a.type,"goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");this.dispatchEvent(Zf(a,"progress"));this.dispatchEvent(Zf(a,b?"downloadprogress":"uploadprogress"))};
|
|
var Zf=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}},Xf=function(a,b){if(a.a){Uf(a);var c=a.a,d=a.qc[0]?ta:null;a.a=null;a.qc=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){(a=a.N)&&a.log(xf,"Problem encountered resetting onreadystatechange: "+e.message,void 0)}}},Uf=function(a){a.a&&a.nc&&(a.a.ontimeout=null);a.hc&&(k.clearTimeout(a.hc),a.hc=null)};E.prototype.Pd=function(){return!!this.a};
|
|
E.prototype.ua=function(){return this.a?this.a.readyState:0};E.prototype.getStatus=function(){try{return 2<this.ua()?this.a.status:-1}catch(a){return-1}};
|
|
var $f=function(a){try{if(!a.a)return null;if("response"in a.a)return a.a.response;switch(a.bb){case "":case "text":return a.a.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.a)return a.a.mozResponseArrayBuffer}var b=a.N;b&&b.log(xf,"Response type "+a.bb+" is not supported on this browser",void 0);return null}catch(c){return Ff(a.N,"Can not get response: "+c.message),null}};
|
|
E.prototype.getResponseHeader=function(a){if(this.a&&4==this.ua())return a=this.a.getResponseHeader(a),null===a?void 0:a};E.prototype.getAllResponseHeaders=function(){return this.a&&4==this.ua()?this.a.getAllResponseHeaders()||"":""};
|
|
var ag=function(a){var b={};a=a.getAllResponseHeaders().split("\r\n");for(var c=0;c<a.length;c++)if(!/^[\s\xa0]*$/.test(a[c])){var d=rb(a[c]),e=d[0];d=d[1];if(n(d)){d=d.trim();var f=b[e]||[];b[e]=f;f.push(d)}}return yb(b,function(a){return a.join(", ")})},Tf=function(a,b){return b+" ["+a.Sd+" "+a.Ub+" "+a.getStatus()+"]"};var bg=function(a,b){this.ma=this.Ma=this.wa="";this.Za=null;this.Ba=this.oa="";this.V=this.Me=!1;if(a instanceof bg){this.V=m(b)?b:a.V;cg(this,a.wa);var c=a.Ma;dg(this);this.Ma=c;c=a.ma;dg(this);this.ma=c;eg(this,a.Za);this.setPath(a.getPath());fg(this,a.X.clone());a=a.Ba;dg(this);this.Ba=a}else a&&(c=String(a).match(Mf))?(this.V=!!b,cg(this,c[1]||"",!0),a=c[2]||"",dg(this),this.Ma=gg(a),a=c[3]||"",dg(this),this.ma=gg(a,!0),eg(this,c[4]),this.setPath(c[5]||"",!0),fg(this,c[6]||"",!0),a=c[7]||"",
|
|
dg(this),this.Ba=gg(a)):(this.V=!!b,this.X=new hg(null,this.V))};
|
|
bg.prototype.toString=function(){var a=[],b=this.wa;b&&a.push(ig(b,jg,!0),":");var c=this.ma;if(c||"file"==b)a.push("//"),(b=this.Ma)&&a.push(ig(b,jg,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.Za,null!=c&&a.push(":",String(c));if(c=this.getPath())this.ma&&"/"!=c.charAt(0)&&a.push("/"),a.push(ig(c,"/"==c.charAt(0)?kg:lg,!0));(c=this.X.toString())&&a.push("?",c);(c=this.Ba)&&a.push("#",ig(c,mg));return a.join("")};
|
|
bg.prototype.resolve=function(a){var b=this.clone(),c=!!a.wa;c?cg(b,a.wa):c=!!a.Ma;if(c){var d=a.Ma;dg(b);b.Ma=d}else c=!!a.ma;c?(d=a.ma,dg(b),b.ma=d):c=null!=a.Za;d=a.getPath();if(c)eg(b,a.Za);else if(c=!!a.oa){if("/"!=d.charAt(0))if(this.ma&&!this.oa)d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=0==e.lastIndexOf("/",0);e=e.split("/");for(var f=[],g=0;g<e.length;){var l=e[g++];
|
|
"."==l?d&&g==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&g==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.setPath(d):c=""!==a.X.toString();c?fg(b,a.X.clone()):c=!!a.Ba;c&&(a=a.Ba,dg(b),b.Ba=a);return b};bg.prototype.clone=function(){return new bg(this)};var cg=function(a,b,c){dg(a);a.wa=c?gg(b,!0):b;a.wa&&(a.wa=a.wa.replace(/:$/,""))},eg=function(a,b){dg(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Za=b}else a.Za=null};
|
|
bg.prototype.getPath=function(){return this.oa};bg.prototype.setPath=function(a,b){dg(this);this.oa=b?gg(a,!0):a;return this};var fg=function(a,b,c){dg(a);b instanceof hg?(a.X=b,a.X.bd(a.V)):(c||(b=ig(b,ng)),a.X=new hg(b,a.V))};bg.prototype.getQuery=function(){return this.X.toString()};bg.prototype.removeParameter=function(a){dg(this);this.X.remove(a);return this};var dg=function(a){if(a.Me)throw Error("Tried to modify a read-only Uri");};bg.prototype.bd=function(a){this.V=a;this.X&&this.X.bd(a)};
|
|
var og=function(a){return a instanceof bg?a.clone():new bg(a,void 0)},gg=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},ig=function(a,b,c){return n(a)?(a=encodeURI(a).replace(b,pg),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},pg=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},jg=/[#\/\?@]/g,lg=/[#\?:]/g,kg=/[#\?]/g,ng=/[#\?@]/g,mg=/#/g,hg=function(a,b){this.l=this.o=null;this.R=a||null;this.V=!!b},qg=function(a){a.o||
|
|
(a.o=new C,a.l=0,a.R&&Nf(a.R,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=hg.prototype;h.m=function(){qg(this);return this.l};h.add=function(a,b){qg(this);this.R=null;a=rg(this,a);var c=this.o.get(a);c||this.o.set(a,c=[]);c.push(b);this.l=Ka(this.l)+1;return this};h.remove=function(a){qg(this);a=rg(this,a);return this.o.ta(a)?(this.R=null,this.l=Ka(this.l)-this.o.get(a).length,this.o.remove(a)):!1};h.clear=function(){this.o=this.R=null;this.l=0};
|
|
h.isEmpty=function(){qg(this);return 0==this.l};h.ta=function(a){qg(this);a=rg(this,a);return this.o.ta(a)};h.ib=function(a){var b=this.w();return Ya(b,a)};h.forEach=function(a,b){qg(this);this.o.forEach(function(c,d){Qa(c,function(c){a.call(b,c,d,this)},this)},this)};h.ba=function(){qg(this);for(var a=this.o.w(),b=this.o.ba(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
|
|
h.w=function(a){qg(this);var b=[];if(n(a))this.ta(a)&&(b=bb(b,this.o.get(rg(this,a))));else{a=this.o.w();for(var c=0;c<a.length;c++)b=bb(b,a[c])}return b};h.set=function(a,b){qg(this);this.R=null;a=rg(this,a);this.ta(a)&&(this.l=Ka(this.l)-this.o.get(a).length);this.o.set(a,[b]);this.l=Ka(this.l)+1;return this};h.get=function(a,b){if(!a)return b;a=this.w(a);return 0<a.length?String(a[0]):b};
|
|
h.setValues=function(a,b){this.remove(a);0<b.length&&(this.R=null,this.o.set(rg(this,a),cb(b)),this.l=Ka(this.l)+b.length)};h.toString=function(){if(this.R)return this.R;if(!this.o)return"";for(var a=[],b=this.o.ba(),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.w(d);for(var f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}}return this.R=a.join("&")};
|
|
h.clone=function(){var a=new hg;a.R=this.R;this.o&&(a.o=this.o.clone(),a.l=this.l);return a};var rg=function(a,b){b=String(b);a.V&&(b=b.toLowerCase());return b};hg.prototype.bd=function(a){a&&!this.V&&(qg(this),this.R=null,this.o.forEach(function(a,c){var b=c.toLowerCase();c!=b&&(this.remove(c),this.setValues(b,a))},this));this.V=a};hg.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)Tc(arguments[b],function(a,b){this.add(b,a)},this)};var yg=function(a,b,c,d,e){var f=["https://www.googleapis.com/auth/earthengine"];d&&(db(f,d),fb(f));sg=a;tg=f;null===a?ug=null:vg(function(){wg(b,c,e||Ca(xg,b,c))})};w("ee.data.authenticateViaOauth",yg);var zg=function(a,b,c,d,e){yg(a,b,c,d,e)};w("ee.data.authenticate",zg);var xg=function(a,b){k.gapi.auth.authorize({client_id:sg,immediate:!1,scope:tg.join(" ")},Ca(Ag,a,b))};w("ee.data.authenticateViaPopup",xg);
|
|
var Cg=function(a,b,c,d){if("undefined"===typeof process)throw Error("Use of private key authentication in the browser is insecure. Consider using OAuth, instead.");var e=["https://www.googleapis.com/auth/earthengine","https://www.googleapis.com/auth/devstorage.read_write"];d&&(db(e,d),fb(e));sg=a.client_email;tg=e;var f=new googleapis.auth.JWT(a.client_email,null,a.private_key,e,null);Bg=function(a,b){f.authorize(function(a,c){a?b({error:a}):b({access_token:c.access_token,token_type:c.token_type,
|
|
expires_in:(c.expiry_date-Date.now())/1E3})})};wg(b,c)};w("ee.data.authenticateViaPrivateKey",Cg);var Eg=function(a){Dg=a};w("ee.data.setApiKey",Eg);var Gg=function(a){if(a&&!sa("gapi"))throw Error('Cloud API requires <script src="https://apis.google.com/js/api.js">');Fg=a};w("ee.data.setCloudApiEnabled",Gg);w("ee.data.getCloudApiEnabled",function(){return Fg});
|
|
var Hg=function(a,b,c,d,e,f,g){var l=["https://www.googleapis.com/auth/earthengine"];e&&(db(l,e),fb(l));sg=a;tg=l;var v={token_type:b,access_token:c,state:l.join(" "),expires_in:d};Ag(void 0,void 0,v);!1===g?f&&f():vg(function(){k.gapi.auth.setToken(v);f&&f()})};w("ee.data.setAuthToken",Hg);var wg=function(a,b,c){Bg&&sg&&Bg({client_id:String(sg),immediate:!0,scope:tg.join(" ")},function(d){"immediate_failed"==d.error&&c?c():Ag(a,b,d)})},Ig=function(a){Bg=a};w("ee.data.setAuthTokenRefresher",Ig);
|
|
var Lg=function(){Jg&&0<=Da()-Jg&&Kg();return ug};w("ee.data.getAuthToken",Lg);var Kg=function(){Jg=ug=null};w("ee.data.clearAuthToken",Kg);var Mg=function(){return sg};w("ee.data.getAuthClientId",Mg);var Ng=function(){return tg};w("ee.data.getAuthScopes",Ng);
|
|
var Ug=function(a,b,c){null!=a?Og=a:Pg||(Og="https://earthengine.googleapis.com/api");null!=b?Qg=b:Pg||(Qg="https://earthengine.googleapis.com");m(c)&&(Rg=c);!Fg||Sg&&null==a||(Sg=new Promise(function(a,b){gapi.load("client",{callback:function(){var b=Object.assign({},bd,{rootUrl:Og.replace(/\/api$/,"")});gapi.client.init({apiKey:Dg,discoveryDocs:[b]}).then(function(){Tg=!0;gapi.client.earthengine.v1=gapi.client.earthengine;a()})},onerror:b})}));Pg=!0},Xg=function(a,b,c){Ug();if(c){var d=function(a){return Vg(a.status,
|
|
function(b){return a.headers[b.toLowerCase()]},a.body,null,c,b)};Sg.then(function(){a().then(d,d)});return null}if(!Tg)throw Error("Cloud API not ready");return Wg(function(c){a().then(function(){return null},function(){return null});return Vg(c().status,function(a){try{return c().getResponseHeader(a)}catch(g){return null}},c().responseText,null,void 0,b)})},Wg=function(a){if(XMLHttpRequest.prototype.sc)throw Error("Cannot initialize synchronous request mode");var b=function(){this.ja=new this.sc;
|
|
XMLHttpRequest.Ne=this.ja};b.prototype.open=function(a,b,e,f,g){this.ja.open(a,b,!1,f,g)};b.prototype.send=function(a){this.ja.send(a)};b.prototype.abort=function(){this.ja.abort()};b.prototype.overrideMimeType=function(a){this.ja.overrideMimeType(a)};b.prototype.setRequestHeader=function(a,b){this.ja.setRequestHeader(a,b)};b.prototype.getResponseHeader=function(a){return this.ja.getResponseHeader(a)};b.prototype.getAllResponseHeaders=function(){return this.ja.getAllResponseHeaders()};"onabort onerror onload onloadstart onloadend onprogress onreadystatechange readyState responseText responseType responseXML status statusText upload withCredentials DONE UNSENT HEADERS_RECEIVED LOADING OPENED".split(" ").forEach(function(a){return Object.defineProperty(b.prototype,
|
|
a,{get:function(){return this.ja[a]},set:function(b){this.ja[a]=b}})});b.prototype.sc=XMLHttpRequest;XMLHttpRequest=b;try{return a(function(){return XMLHttpRequest.Ne})}finally{XMLHttpRequest=XMLHttpRequest.prototype.sc}},Zg=function(a){Yg=a};w("ee.data.setDeadline",Zg);w("ee.data.setParamAugmenter",function(a){$g=a||Ic});var ah=function(){return Og};w("ee.data.getApiBaseUrl",ah);var bh=function(){return Qg};w("ee.data.getTileBaseUrl",bh);var ch=function(){return Rg};w("ee.data.getXsrfToken",ch);
|
|
var dh=function(a){var b=G("/algorithms",null,a,"GET");return a?null:b},fh=function(a,b){if(Fg){if(n(a.image))throw Error("Image as JSON string not supported.");if(m(a.version))throw Error("Image version specification not supported.");var c={name:null,expression:Gd(a.image),fileFormat:id(a.format),bandIds:jd(a.bands),visualizationOptions:md(a)},d=["name"];return Xg(function(){return gapi.client.earthengine.maps.create({He:d},c)},function(a){return eh(a.name,"","/v1/{}/tiles",Dg?"?key="+Dg:"")},b)}a=
|
|
Hb(a);n(a.image)||(a.image=a.image.D());var e=function(a){return eh(a.mapid,a.token,"/map/{}","?token={}")};return b?(G("/mapid",H(a),function(a,c){return b(a&&e(a),c)}),null):e(G("/mapid",H(a)))};w("ee.data.getMapId",fh);var gh=function(a,b,c,d){return a.formatTileUrl(b,c,d)};w("ee.data.getTileUrl",gh);
|
|
var eh=function(a,b,c,d){c=Qg+c.replace("{}",a);d=d.replace("{}",b);return{mapid:a,token:b,formatTileUrl:function(a,b,g){var e=Math.pow(2,g);a%=e;0>a&&(a+=e);return[c,g,a,b].join("/")+d}}},hh=function(a,b){a=Hb(a);return G("/value",H(a),b)};w("ee.data.getValue",hh);
|
|
var ih=function(a,b){if(Fg){var c=Gd(a);return Xg(function(){return gapi.client.earthengine.v1.computeValue({expression:c})},function(a){return a.result},b)}a={json:Bd(a)};return G("/value",H(a),b)},jh=function(a,b){if(Fg){if(n(a.image))throw Error("Image as JSON string not supported.");if(m(a.version))throw Error("Image version specification not supported.");if(m(a.region))throw Error('"region" not supported in call to ee.data.getThumbId. Use ee.Image.getThumbURL.');var c={name:null,expression:Gd(a.image),
|
|
fileFormat:id(a.format),bandIds:jd(a.bands),visualizationOptions:md(a),grid:null},d=["name"];return Xg(function(){return gapi.client.earthengine.thumbnails.create({He:d},c)},function(a){return{thumbid:a.name,token:""}},b)}a=Hb(a);n(a.image)||(a.image=a.image.D());q(a.dimensions)&&(a.dimensions=a.dimensions.join("x"));a=H(a).add("getid","1");return G("/thumb",a,b)};w("ee.data.getThumbId",jh);
|
|
var kh=function(a){return Fg?Qg+"/v1/"+a.thumbid+":getPixels"+(Dg?"?key="+Dg:""):Qg+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token};w("ee.data.makeThumbUrl",kh);var lh=function(a,b){a=Hb(a);return G("/download",H(a),b)};w("ee.data.getDownloadId",lh);var mh=function(a){return Qg+"/api/download?docid="+a.docid+"&token="+a.token};w("ee.data.makeDownloadUrl",mh);var nh=function(a,b){a=Hb(a);return G("/table",H(a),b)};w("ee.data.getTableDownloadId",nh);
|
|
var oh=function(a){return Qg+"/api/table?docid="+a.docid+"&token="+a.token};w("ee.data.makeTableDownloadUrl",oh);var qh=function(a,b,c){var d=ph;try{return ph=a,b.call(c)}finally{ph=d}};w("ee.data.withProfiling",qh);var rh=function(a,b){var c={};p(a)&&(c.count=a);return G("/newtaskid",H(c),b)};w("ee.data.newTaskId",rh);
|
|
w("ee.data.getTaskStatus",function(a,b){if(n(a))a=[a];else if(!q(a))throw Error("Invalid taskId: expected a string or an array of strings.");return G("/taskstatus?q="+a.join(),null,b,"GET")});w("ee.data.getTaskList",function(a){return sh(void 0,a)});
|
|
var sh=function(a,b){function c(b){var c={pagesize:500};a&&(c.pagesize=Math.min(c.pagesize,a-e.tasks.length));b&&(c.pagetoken=b);return c}function d(b,f){G("/tasklist",H(c(f)),function(c,f){f?b(e,f):(db(e.tasks,c.tasks),!c.next_page_token||a&&e.tasks.length>=a?b(e):d(b,c.next_page_token))},"GET")}var e={tasks:[]};if(b)return d(b),null;for(b="";;){var f=G("/tasklist",H(c(b)),void 0,"GET");db(e.tasks,f.tasks);b=f.next_page_token;if(!f.next_page_token||a&&e.tasks.length>=a)break}return e};
|
|
w("ee.data.getTaskListWithLimit",sh);w("ee.data.cancelTask",function(a,b){return th(a,"CANCEL",b)});var th=function(a,b,c){if(n(a))a=[a];else if(!q(a))throw Error("Invalid taskId: expected a string or an array of strings.");if(!Cb(uh,b))throw Error("Invalid action: "+b);return G("/updatetask",H({id:a,action:b}),c,"POST")};w("ee.data.updateTask",th);var vh=function(a,b,c){b=Hb(b);b.id=a;return G("/processingrequest",H(b),c)};w("ee.data.startProcessing",vh);
|
|
w("ee.data.startIngestion",function(a,b,c){a={id:a,request:rd(b)};return G("/ingestionrequest",H(a),c)});w("ee.data.startTableIngestion",function(a,b,c){a={id:a,tableRequest:rd(b)};return G("/ingestionrequest",H(a),c)});var wh=function(a,b){return G("/info",(new hg).add("id",a),b)};w("ee.data.getInfo",wh);
|
|
var xh=function(a,b){if(Fg){var c="projects/earthengine-legacy/assets/"+a.id;return Xg(function(){return gapi.client.earthengine.assets.list({name:c})},function(a){return a.assets},b)}a=H(a);return G("/list",a,b)};w("ee.data.getList",xh);w("ee.data.getAssetRoots",function(a){return G("/buckets",null,a,"GET")});w("ee.data.createAssetHome",function(a,b){a=H({id:a});G("/createbucket",a,b)});
|
|
w("ee.data.createAsset",function(a,b,c,d,e){n(a)||(a=rd(a));a={value:a};void 0!==b&&(a.id=b);a.force=c||!1;void 0!=d&&(a.properties=rd(d));return G("/create",H(a),e)});w("ee.data.createFolder",function(a,b,c){return G("/createfolder",H({id:a,force:b||!1}),c)});w("ee.data.renameAsset",function(a,b,c){G("/rename",H({sourceId:a,destinationId:b}),c)});w("ee.data.copyAsset",function(a,b,c){G("/copy",H({sourceId:a,destinationId:b}),c)});w("ee.data.deleteAsset",function(a,b){G("/delete",H({id:a}),b)});
|
|
w("ee.data.getAssetAcl",function(a,b){return G("/getacl",H({id:a}),b,"GET")});w("ee.data.setAssetAcl",function(a,b,c){a={id:a,value:rd(b)};G("/setacl",H(a),c)});w("ee.data.setAssetProperties",function(a,b,c){a={id:a,properties:rd(b)};G("/setproperties",H(a),c)});w("ee.data.getAssetRootQuota",function(a,b){return G("/quota",H({id:a}),b,"GET")});
|
|
var uh={mf:"CANCEL",qf:"UPDATE"},G=function(a,b,c,d){Ug();var e=ph,f={"Content-Type":"application/x-www-form-urlencoded"},g=Lg();if(null!=g)f.Authorization=g;else if(c&&Bg&&sg)return wg(function(){qh(e,function(){G(a,b,c,d)})}),null;g=d||"POST";b=b?b.clone():new hg;e&&b.add("profiling","1");null!=Dg&&b.add("key",Dg);b=$g(b,a);null!=Rg&&(f["X-XSRF-Token"]=Rg);var l=b?b.toString():"";"GET"!=g||/^[\s\xa0]*$/.test(l)||(a+=-1!=a.indexOf("?")?"&":"?",a+=l,l=null);var v=Og+a;if(c)return yh.push(zh(v,c,g,
|
|
l,f)),Ah.Ic(),null;for(var F=function(a,b){this.setRequestHeader&&this.setRequestHeader(b,a)},M,ka=0;;){M=Kf();M.open(g,v,!1);wb(f,F,M);M.send(l);if(429!=M.status||5<ka)break;ka++}return Vg(M.status,function(a){try{return M.getResponseHeader(a)}catch(Cc){return null}},M.responseText,e)},zh=function(a,b,c,d,e){var f=0,g={url:a,method:c,content:d,headers:e},l=ph;g.callback=function(a){a=a.target;if(429==a.getStatus()&&10>f)return f++,setTimeout(function(){yh.push(g);Ah.Ic()},Math.min(12E4,1E3*Math.pow(2,
|
|
f))),null;var c=Vg,d=a.getStatus(),e=u(a.getResponseHeader,a);try{var v=a.a?a.a.responseText:""}catch(Cc){Ff(a.N,"Can not get responseText: "+Cc.message),v=""}return c(d,e,v,l,b)};return g},Vg=function(a,b,c,d,e,f){f=void 0===f?function(a){return a.data}:f;var g=b("X-Earth-Engine-Computation-Profile");g&&d&&d(g);b=(b=b("Content-Type"))?b.replace(/;.*/,""):"application/json";if("application/json"==b||"text/json"==b)try{var l=JSON.parse(c);var v=f(l)}catch(M){var F="Invalid JSON: "+c}else F="Response was unexpectedly not JSON, but "+
|
|
b;if(r(l))"error"in l&&"message"in l.error?F=l.error.message:void 0===v&&(F="Malformed response: "+c);else if(0===a)F="Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.";else if(200>a||300<=a)F="Server returned HTTP code: "+a;if(e)return e(v,F),null;if(!F)return v;throw Error(F);},vg=function(a){var b=function(){k.gapi.config.update("client/cors",!0);Bg||(Bg=k.gapi.auth.authorize);a()};if(r(k.gapi)&&r(k.gapi.auth)&&t(k.gapi.auth.authorize))b();
|
|
else{for(var c=Da().toString(36);c in k;)c+="_";k[c]=function(){delete k[c];b()};sf(Ie({onload:c}))}},Ag=function(a,b,c){if(c.access_token){b=c.token_type+" "+c.access_token;if(c.expires_in||0===c.expires_in)c=900*c.expires_in,setTimeout(wg,.9*c),Jg=Da()+c;ug=b;a&&a()}else b&&b(c.error||"Unknown error.")},H=function(a){var b=new hg;a=ba(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=ba(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}return b},yh=[],Ah=new ve(function(){var a=
|
|
yh.shift();if(a){var b=a.url,c=a.callback,d=a.method,e=a.content;a=a.headers;var f=Yg,g=new E;Sf.push(g);c&&g.ga("complete",c);g.wb("ready",g.Ae);f&&(g.eb=Math.max(0,f));g.send(b,d,e,a)}0==yh.length||Ah.Ic()},350),Og=null,Qg=null,Rg=null,$g=Ic,ug=null,Jg=null,sg=null,tg=[],Bg=null,Ee=new ze(xe,"https://apis.google.com/js/client.js?onload=%{onload}"),Dg=null,Fg=!1,Sg=null,Tg=!1,Pg=!1,Yg=0,ph=null;var I=function(a,b,c){if(!(this instanceof I))return Bh(I,arguments);if(c&&(a||b))throw Error('When "opt_varName" is specified, "func" and "args" must be null.');if(a&&!b)throw Error('When "func" is specified, "args" must not be null.');this.i=a;this.args=b;this.A=c||null};x(I,cd);w("ee.ComputedObject",I);I.prototype.evaluate=function(a){if(!a||!t(a))throw Error("evaluate() requires a callback function.");ih(this,a)};I.prototype.evaluate=I.prototype.evaluate;
|
|
I.prototype.C=function(a){return ih(this,a)};I.prototype.getInfo=I.prototype.C;I.prototype.encode=function(a){if(null===this.i&&null===this.args)return{type:"ArgumentRef",value:this.A};var b={},c;for(c in this.args)m(this.args[c])&&(b[c]=a(this.args[c]));b={type:"Invocation",arguments:b};a=a(this.i);b[n(a)?"functionName":"function"]=a;return b};
|
|
I.prototype.P=function(a){if(null===this.i&&null===this.args)return{argumentReference:this.A||"uninitializedVar"};var b={},c;for(c in this.args)m(this.args[c])&&(b[c]=ed(a(this.args[c])));return n(this.i)?fd(String(this.i),b):this.i.Dc(a,b)};I.prototype.D=function(){return Bd(this)};I.prototype.serialize=I.prototype.D;I.prototype.toString=function(){return"ee."+this.name()+"("+Dd(this)+")"};w("ee.ComputedObject.prototype.toString",I.prototype.toString);I.prototype.name=function(){return"ComputedObject"};
|
|
I.prototype.ld=function(a,b){var c=cb(arguments);c[0]=this;a.apply(k,c);return this};I.prototype.aside=I.prototype.ld;var Ch=function(a,b){if(b instanceof a.constructor)return b;var c=function(){};c.prototype=a.constructor.prototype;a=new c;a.i=b.i;a.args=b.args;a.A=b.A;return a},Bh=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var Dh={},Eh=function(a){return a.prototype instanceof I?a.prototype.name.call(null):a==Number?"Number":a==String?"String":a==Array?"Array":a==Date?"Date":"Object"},Fh=function(a,b){if(b==a)return!0;switch(a){case "Element":return"Element"==b||"Image"==b||"Feature"==b||"Collection"==b||"ImageCollection"==b||"FeatureCollection"==b;case "FeatureCollection":case "Collection":return"Collection"==b||"ImageCollection"==b||"FeatureCollection"==b;case "Object":return!0;default:return!1}},Gh=function(a){return p(a)||
|
|
a instanceof I&&"Number"==a.name()},Hh=function(a){return n(a)||a instanceof I&&"String"==a.name()},Ih=function(a){return r(a)&&!t(a)?(a=Object.getPrototypeOf(a),null!==a&&null===Object.getPrototypeOf(a)):!1};var J=function(){if(!(this instanceof J))return new J};x(J,cd);w("ee.Function",J);var Jh=Ic;J.prototype.call=function(a){return this.apply(Kh(this,Array.prototype.slice.call(arguments,0)))};J.prototype.call=J.prototype.call;J.prototype.apply=function(a){a=new I(this,Lh(this,a));return Jh(a,this.L().returns)};J.prototype.apply=J.prototype.apply;
|
|
var Mh=function(a,b,c){var d=m(b),e=a.L(),f=!1;if(1==c.length&&Ih(c[0])){var g=e.args;d&&(g=g.slice(1));g.length&&(f=!((1==g.length||g[1].optional)&&"Dictionary"==g[0].type))}if(f){if(c=Hb(c[0]),d){d=e.args[0].name;if(d in c)throw Error("Named args for "+e.name+" can't contain keyword "+d);c[d]=b}}else c=Kh(a,d?[b].concat(c):c);return a.apply(c)},Lh=function(a,b){for(var c=a.L().args,d={},e={},f=0;f<c.length;f++){var g=c[f].name;if(g in b&&m(b[g]))d[g]=Jh(b[g],c[f].type);else if(!c[f].optional)throw Error("Required argument ("+
|
|
g+") missing to function: "+a);e[g]=!0}c=[];for(var l in b)e[l]||c.push(l);if(0<c.length)throw Error("Unrecognized arguments ("+c+") to function: "+a);return d},Kh=function(a,b){var c=a.L().args;if(c.length<b.length)throw Error("Too many ("+b.length+") arguments to function: "+a);a={};for(var d=0;d<b.length;d++)a[c[d].name]=b[d];return a};
|
|
J.prototype.toString=function(a,b){var c=this.L(),d=[];d.push(a||c.name);d.push("(");d.push(Sa(c.args.slice(b?1:0),function(a){return a.name}).join(", "));d.push(")\n");d.push("\n");c.description?d.push(c.description):d.push("Undocumented.");d.push("\n");if(c.args.length)for(d.push("\nArgs:\n"),a=0;a<c.args.length;a++){b&&0==a?d.push(" this:"):d.push("\n ");var e=c.args[a];d.push(e.name);d.push(" (");d.push(e.type);e.optional&&d.push(", optional");d.push("): ");e.description?d.push(e.description):
|
|
d.push("Undocumented.")}return d.join("")};J.prototype.D=function(){return Bd(this)};var K=function(a,b){if(!m(b))return Nh(a);if(!(this instanceof K))return Bh(K,arguments);this.ia=Ib(b);this.ia.name=a};x(K,J);w("ee.ApiFunction",K);var L=function(a,b){return J.prototype.call.apply(Nh(a),Array.prototype.slice.call(arguments,1))};w("ee.ApiFunction._call",L);var Oh=function(a,b){return Nh(a).apply(b)};w("ee.ApiFunction._apply",Oh);K.prototype.encode=function(){return this.ia.name};K.prototype.Dc=function(a,b){return fd(this.ia.name,b)};K.prototype.L=function(){return this.ia};
|
|
var Ph=null,Qh={},Sh=function(){Rh();return yb(Ph,function(a){return a.L()})},Th=function(){Rh();return xb(Ph,function(a,b){return!Qh[b]})},Nh=function(a){var b=Uh(a);if(!b)throw Error("Unknown built-in function name: "+a);return b};w("ee.ApiFunction.lookup",Nh);
|
|
var Uh=function(a){Rh();return Ph[a]||null},Rh=function(a,b){if(Ph)a&&a();else{var c=function(c,e){e?b&&b(Error(e)):(Ph=yb(c,function(a,b){a.returns=a.returns.replace(/<.*>/,"");for(var c=0;c<a.args.length;c++)a.args[c].type=a.args[c].type.replace(/<.*>/,"");return new K(b,a)}),a&&a())};a?dh(c):c(dh())}},N=function(a,b,c,d){Rh();var e=d||"";wb(Ph,function(d,g){var f=g.split(".");if(2==f.length&&f[0]==b){f=e+f[1];var v=d.L();Qh[g]=!0;var F=!1;v.args.length&&(g=v.args[0].type,F="Object"!=g&&Fh(g,c));
|
|
g=F?a.prototype:a;f in g&&!g[f].signature||(g[f]=function(a){return Mh(d,F?this:void 0,Array.prototype.slice.call(arguments,0))},g[f].toString=u(d.toString,d,f,F),g[f].signature=v)}})},Vh=function(a){var b=function(a){for(var b in a)t(a[b])&&a[b].signature&&delete a[b]};b(a);b(a.prototype||{})};var O=function(a,b){var c=Wh(a),d=Sa(c,function(a){return a.replace(/^opt_/,"")});a=(a=k.EXPORTED_FN_INFO?k.EXPORTED_FN_INFO[a.toString()].name.split(".").pop()+"()":null)?" to function "+a:"";var e={},f=b[0],g=r(f)&&!t(f)&&!q(f)&&!(f instanceof I);if(1<b.length||!g){if(b.length>d.length)throw Error("Received too many arguments"+a+". Expected at most "+d.length+" but got "+b.length+".");for(f=0;f<b.length;f++)e[d[f]]=b[f]}else{g=new D(Bb(f));var l=new D(d);if(Wc(l,g).isEmpty())e[d[0]]=b[0];else{b=
|
|
Xc(g,l);if(!b.isEmpty())throw Error("Unexpected arguments"+a+": "+b.w().join(", "));e=Hb(f)}}b=new D(Bb(e));c=Xc(new D(Ra(c,function(a){return 0!=a.lastIndexOf("opt_",0)})),b);if(!c.isEmpty())throw Error("Missing required arguments"+a+": "+c.w().join(", "));return e},Wh=function(a){var b=Xh,c=[];k.EXPORTED_FN_INFO?(a=k.EXPORTED_FN_INFO[a.toString()],r(a)||Yh(),c=a.paramNames,q(c)||Yh()):(a=a.toString().replace(Zh,"").match(b),null===a&&Yh(),c=(a[1].split(",")||[]).map(function(a){return a.replace($h,
|
|
"")}));return c},Yh=function(){throw Error("Failed to locate function parameters.");},Zh=/((\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s))/mg,Xh=/^function[^\(]*\(([^\)]*)\)/m,$h=/=.*$/;var P=function(a,b,c){I.call(this,a,b,c);ai()};x(P,I);w("ee.Element",P);var bi=!1,ai=function(){bi||(N(P,"Element","Element"),bi=!0)};P.prototype.name=function(){return"Element"};
|
|
P.prototype.set=function(a){var b;if(1>=arguments.length){var c=arguments[0];if(b=Ih(c))a:{b=Bb(c);var d=["properties"];if(wa(b)&&wa(d)&&b.length==d.length){for(var e=b.length,f=0;f<e;f++)if(b[f]!==d[f]){b=!1;break a}b=!0}else b=!1}b&&r(c.properties)&&(c=c.properties);if(Ih(c)){b=this;for(var g in c)d=c[g],b=L("Element.set",b,g,d)}else if(c instanceof I&&Uh("Element.setMulti"))b=L("Element.setMulti",this,c);else throw Error("When Element.set() is passed one argument, it must be a dictionary.");}else{if(0!=
|
|
arguments.length%2)throw Error("When Element.set() is passed multiple arguments, there must be an even number of them.");b=this;for(c=0;c<arguments.length;c+=2)g=arguments[c],d=arguments[c+1],b=L("Element.set",b,g,d)}return Ch(this,b)};P.prototype.set=P.prototype.set;var Q=function(a,b,c,d){if(!(this instanceof Q))return Bh(Q,arguments);if(!("type"in a)){var e=O(Q,arguments);a=e.geoJson;b=e.proj;c=e.geodesic;d=e.evenOdd}ci();e=null!=b||null!=c||null!=d;if(a instanceof I&&!(a instanceof Q&&a.La)){if(e)throw Error("Setting the CRS, geodesic, or evenOdd flag on a computed Geometry is not supported. Use Geometry.transform().");I.call(this,a.i,a.args,a.A)}else{a instanceof Q&&(a=a.encode());if(!di(a))throw Error("Invalid GeoJSON geometry: "+JSON.stringify(a));I.call(this,
|
|
null,null);this.La=a.type;this.wd=null!=a.coordinates?Ib(a.coordinates):null;this.Id=a.geometries||null;if(null!=b)this.Ga=b;else if("crs"in a)if(r(a.crs)&&"name"==a.crs.type&&r(a.crs.properties)&&n(a.crs.properties.name))this.Ga=a.crs.properties.name;else throw Error("Invalid CRS declaration in GeoJSON: "+(new qd).D(a.crs));this.Va=c;!m(this.Va)&&"geodesic"in a&&(this.Va=!!a.geodesic);this.Ta=d;!m(this.Ta)&&"evenOdd"in a&&(this.Ta=!!a.evenOdd)}};x(Q,I);w("ee.Geometry",Q);
|
|
var ei=!1,ci=function(){ei||(N(Q,"Geometry","Geometry"),ei=!0)},fi=function(a,b){if(!(this instanceof fi))return gi(fi,arguments);var c=hi(fi,"Point",1,arguments);if(!(c instanceof I)){var d=c.coordinates;if(!q(d)||2!=d.length)throw Error("The Geometry.Point constructor requires 2 coordinates.");}Q.call(this,c)};x(fi,Q);Q.Point=fi;var ii=function(a,b){if(!(this instanceof ii))return gi(ii,arguments);Q.call(this,hi(ii,"MultiPoint",2,arguments))};x(ii,Q);Q.MultiPoint=ii;
|
|
var ji=function(a,b,c,d){if(!(this instanceof ji))return gi(ji,arguments);var e=hi(ji,"Rectangle",2,arguments);if(!(e instanceof I)){var f=e.coordinates;if(2!=f.length)throw Error("The Geometry.Rectangle constructor requires 2 points or 4 coordinates.");var g=f[0][0],l=f[0][1],v=f[1][0];f=f[1][1];e.coordinates=[[[g,f],[g,l],[v,l],[v,f]]];e.type="Polygon"}Q.call(this,e)};x(ji,Q);Q.Rectangle=ji;
|
|
var ki=function(a,b,c,d){if(!(this instanceof ki))return gi(ki,arguments);Q.call(this,hi(ki,"LineString",2,arguments))};x(ki,Q);Q.LineString=ki;var li=function(a,b,c,d){if(!(this instanceof li))return gi(li,arguments);Q.call(this,hi(li,"LinearRing",2,arguments))};x(li,Q);Q.LinearRing=li;var mi=function(a,b,c,d){if(!(this instanceof mi))return gi(mi,arguments);Q.call(this,hi(mi,"MultiLineString",3,arguments))};x(mi,Q);Q.MultiLineString=mi;
|
|
var ni=function(a,b,c,d,e){if(!(this instanceof ni))return gi(ni,arguments);Q.call(this,hi(ni,"Polygon",3,arguments))};x(ni,Q);Q.Polygon=ni;var oi=function(a,b,c,d,e){if(!(this instanceof oi))return gi(oi,arguments);Q.call(this,hi(oi,"MultiPolygon",4,arguments))};x(oi,Q);Q.MultiPolygon=oi;
|
|
Q.prototype.encode=function(a){if(!this.La){if(!a)throw Error("Must specify an encode function when encoding a computed geometry.");return I.prototype.encode.call(this,a)}a={type:this.La};"GeometryCollection"==this.La?a.geometries=this.Id:a.coordinates=this.wd;null!=this.Ga&&(a.crs={type:"name",properties:{name:this.Ga}});null!=this.Va&&(a.geodesic=this.Va);null!=this.Ta&&(a.evenOdd=this.Ta);return a};
|
|
Q.prototype.ic=function(){if(this.i)throw Error("Can't convert a computed Geometry to GeoJSON. Use getInfo() instead.");return this.encode()};Q.prototype.toGeoJSON=Q.prototype.ic;Q.prototype.kd=function(){if(this.i)throw Error("Can't convert a computed Geometry to GeoJSON. Use getInfo() instead.");return(new qd).D(this.ic())};Q.prototype.toGeoJSONString=Q.prototype.kd;Q.prototype.D=function(){return Bd(this)};Q.prototype.serialize=Q.prototype.D;
|
|
Q.prototype.toString=function(){return"ee.Geometry("+this.kd()+")"};Q.prototype.P=function(a){if(!this.La){if(!a)throw Error("Must specify an encode function when encoding a computed geometry.");return I.prototype.P.call(this,a)}var b="GeometryConstructors."+this.La,c={};"GeometryCollection"===this.La?c.geometries=this.Id:c.coordinates=this.wd;null!=this.Ga&&(c.crs=n(this.Ga)?(new K("Projection")).call(this.Ga):this.Ga);null!=this.Va&&(c.geodesic=this.Va);null!=this.Ta&&(c.evenOdd=this.Ta);return(new K(b)).apply(c).P(a)};
|
|
var di=function(a){var b=a.type;if("GeometryCollection"==b){b=a.geometries;if(!q(b))return!1;for(a=0;a<b.length;a++)if(!di(b[a]))return!1;return!0}a=a.coordinates;var c=pi(a);return"Point"==b&&1==c||"MultiPoint"==b&&(2==c||0==a.length)||"LineString"==b&&2==c||"LinearRing"==b&&2==c||"MultiLineString"==b&&(3==c||0==a.length)||"Polygon"==b&&3==c||"MultiPolygon"==b&&(4==c||0==a.length)},pi=function(a){if(!q(a))return-1;if(q(a[0])){for(var b=pi(a[0]),c=1;c<a.length;c++)if(pi(a[c])!=b)return-1;return b+
|
|
1}for(c=0;c<a.length;c++)if(!p(a[c]))return-1;return 0==a.length%2?1:-1},hi=function(a,b,c,d){Ua(d,Gh)?a={coordinates:cb(d)}:(a=O(a,d),a.coordinates=a.coords,delete a.coords,a.crs=a.proj,delete a.proj,a=xb(a,va));if(qi(a.coordinates)||null!=a.crs||null!=a.maxError)return(new K("GeometryConstructors."+b)).apply(a);a.type=b;d=a.coordinates;if(1>c||4<c)throw Error("Unexpected nesting level.");if(Ua(d,p)&&p(d[0])&&2!=d.length){if(0!=d.length%2)throw Error("Invalid number of coordinates: "+d.length);for(var e=
|
|
[],f=0;f<d.length;f+=2)e.push([d[f],d[f+1]]);d=e}e=d;for(f=0;q(e);)e=e[0],f++;for(;f<c;)d=[d],f++;if(pi(d)!=c)throw Error("Invalid geometry");for(e=d;q(e)&&1==e.length;)e=e[0];c=q(e)&&0==e.length?[]:d;a.coordinates=c;(b=Ya(["Polygon","Rectangle","MultiPolygon"],b))&&null==a.evenOdd&&(a.evenOdd=!0);if(b&&!1===a.geodesic&&!1===a.evenOdd)throw Error("Planar interiors must be even/odd.");return a},qi=function(a){return q(a)?Ta(a,qi):a instanceof I},gi=function(a,b){var c=function(){};c.prototype=a.prototype;
|
|
c=new c;a=a.apply(c,b);return void 0!==a?a:c};Q.prototype.name=function(){return"Geometry"};var S=function(a){if(!(this instanceof S))return Bh(S,arguments);if(a instanceof S)return a;ri();if(q(a)){if(0==a.length)throw Error("Empty list specified for ee.Filter().");if(1==a.length)return new S(a[0]);I.call(this,new K("Filter.and"),{filters:a})}else if(a instanceof I)I.call(this,a.i,a.args,a.A);else{if(m(a))throw Error("Invalid argument specified for ee.Filter(): "+a);I.call(this,null,null)}};x(S,I);w("ee.Filter",S);
|
|
var si=!1,ri=function(){si||(N(S,"Filter","Filter"),si=!0)},ti={equals:"equals",less_than:"lessThan",greater_than:"greaterThan",contains:"stringContains",starts_with:"stringStartsWith",ends_with:"stringEndsWith"};S.prototype.Wa=function(){return L("Filter.not",this)};S.prototype.not=S.prototype.Wa;var ui=function(a,b){var c=O(ui,arguments);return L("Filter.equals",c.name,c.value)};S.eq=ui;var vi=function(a,b){var c=O(vi,arguments);return ui(c.name,c.value).Wa()};S.neq=vi;
|
|
var wi=function(a,b){var c=O(wi,arguments);return L("Filter.lessThan",c.name,c.value)};S.lt=wi;var xi=function(a,b){var c=O(xi,arguments);return wi(c.name,c.value).Wa()};S.gte=xi;var yi=function(a,b){var c=O(yi,arguments);return L("Filter.greaterThan",c.name,c.value)};S.gt=yi;var zi=function(a,b){var c=O(zi,arguments);return yi(c.name,c.value).Wa()};S.lte=zi;var Ai=function(a){return L("Filter.and",Array.prototype.slice.call(arguments))};S.and=Ai;var Bi=function(a){return L("Filter.or",Array.prototype.slice.call(arguments))};
|
|
S.or=Bi;var Ci=function(a,b){var c=O(Ci,arguments);c=L("DateRange",c.start,c.end);return Oh("Filter.dateRangeContains",{leftValue:c,rightField:"system:time_start"})};S.date=Ci;var Di=function(a,b,c,d){var e=O(Di,arguments);return Oh("Filter.listContains",{leftField:e.rightField,rightValue:e.leftValue,rightField:e.leftField,leftValue:e.rightValue})};S.inList=Di;var Ei=function(a,b){return Oh("Filter.intersects",{leftField:".all",rightValue:L("Feature",a),maxError:b})};S.bounds=Ei;
|
|
S.prototype.name=function(){return"Filter"};var Fi=function(a,b,c){b=b.toLowerCase();var d=!1;0==b.lastIndexOf("not_",0)&&(d=!0,b=b.substring(4));if(!(b in ti))throw Error("Unknown filtering operator: "+b);a=L("Filter."+ti[b],a,c);return d?a.Wa():a};S.metadata=Fi;var T=function(a,b,c){P.call(this,a,b,c);Gi()};x(T,P);w("ee.Collection",T);var Hi=!1,Gi=function(){Hi||(N(T,"Collection","Collection"),N(T,"AggregateFeatureCollection","Collection","aggregate_"),Hi=!0)};T.prototype.filter=function(a){a=O(T.prototype.filter,arguments).filter;if(!a)throw Error("Empty filters.");return Ch(this,L("Collection.filter",this,a))};T.prototype.filter=T.prototype.filter;
|
|
T.prototype.Hc=function(a,b,c){var d=O(T.prototype.Hc,arguments);return this.filter(Fi(d.name,d.operator,d.value))};T.prototype.filterMetadata=T.prototype.Hc;T.prototype.Ed=function(a){return this.filter(Ei(a))};T.prototype.filterBounds=T.prototype.Ed;T.prototype.Gc=function(a,b){var c=O(T.prototype.Gc,arguments);return this.filter(Ci(c.start,c.end))};T.prototype.filterDate=T.prototype.Gc;
|
|
T.prototype.limit=function(a,b,c){var d=O(T.prototype.limit,arguments);return Ch(this,L("Collection.limit",this,d.max,d.property,d.ascending))};T.prototype.limit=T.prototype.limit;T.prototype.sort=function(a,b){var c=O(T.prototype.sort,arguments);return Ch(this,L("Collection.limit",this,void 0,c.property,c.ascending))};T.prototype.sort=T.prototype.sort;T.prototype.name=function(){return"Collection"};T.prototype.elementType=function(){return P};
|
|
T.prototype.map=function(a,b){var c=this.elementType();return Ch(this,L("Collection.map",this,function(b){return a(new c(b))},b))};T.prototype.map=T.prototype.map;T.prototype.Qd=function(a,b){b=m(b)?b:null;var c=this.elementType();return L("Collection.iterate",this,function(b,e){return a(new c(b),e)},b)};T.prototype.iterate=T.prototype.Qd;var U=function(a,b){if(!(this instanceof U))return Bh(U,arguments);if(a instanceof U){if(b)throw Error("Can't create Feature out of a Feature and properties.");return a}if(2<arguments.length)throw Error("The Feature constructor takes at most 2 arguments ("+arguments.length+" given)");Ii();if(a instanceof Q||null===a)P.call(this,new K("Feature"),{geometry:a,metadata:b||null});else if(a instanceof I)P.call(this,a.i,a.args,a.A);else if("Feature"==a.type){var c=a.properties||{};if("id"in a){if("system:index"in
|
|
c)throw Error('Can\'t specify both "id" and "system:index".');c=Hb(c);c["system:index"]=a.id}P.call(this,new K("Feature"),{geometry:new Q(a.geometry),metadata:c})}else P.call(this,new K("Feature"),{geometry:new Q(a),metadata:b||null})};x(U,P);w("ee.Feature",U);var Ji=!1,Ii=function(){Ji||(N(U,"Feature","Feature"),Ji=!0)};U.prototype.C=function(a){return U.f.C.call(this,a)};U.prototype.getInfo=U.prototype.C;
|
|
U.prototype.getMap=function(a,b){var c=O(U.prototype.getMap,arguments);return L("Collection",[this]).getMap(c.visParams,c.callback)};U.prototype.getMap=U.prototype.getMap;U.prototype.name=function(){return"Feature"};var V=function(a){if(!(this instanceof V))return Bh(V,arguments);if(a instanceof V)return a;Ki();var b=arguments.length;if(0==b||1==b&&!m(a))P.call(this,new K("Image.mask"),{image:new V(0),mask:new V(0)});else if(1==b)if(Gh(a))P.call(this,new K("Image.constant"),{value:a});else if(Hh(a))P.call(this,new K("Image.load"),{id:a});else{if(q(a))return Li(Sa(a,function(a){return new V(a)}));if(a instanceof I)"Array"==a.name()?P.call(this,new K("Image.constant"),{value:a}):P.call(this,a.i,a.args,a.A);else throw Error("Unrecognized argument type to convert to an Image: "+
|
|
a);}else if(2==b){b=arguments[0];var c=arguments[1];if(Hh(b)&&Gh(c))P.call(this,new K("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(V,P);w("ee.Image",V);var Mi=!1,Ki=function(){Mi||(N(V,"Image","Image"),N(V,"Window","Image","focal_"),Mi=!0)};V.prototype.C=function(a){return V.f.C.call(this,a)};V.prototype.getInfo=V.prototype.C;
|
|
V.prototype.getMap=function(a,b){var c=this,d=O(V.prototype.getMap,arguments),e=Ni(this,d.visParams);if(d.callback){var f=d.callback;fh(e,function(a,b){a=a?Object.assign(a,{image:c}):void 0;f(a,b)})}else return d=fh(e),d.image=this,d};V.prototype.getMap=V.prototype.getMap;
|
|
var Oi=function(a,b,c){var d={};wb(b,function(a,b){switch(b){case "dimensions":b=n(a)?a.split("x").map(Number):q(a)?a:p(a)?[a]:[];if(1===b.length)d.maxDimension=b[0];else if(2===b.length)d.width=b[0],d.height=b[1];else throw Error("Invalid dimensions "+a);break;case "region":a=n(a)?JSON.parse(a):a;d.geometry=new Q(a);break;case "scale":d.scale=a;default:c[b]=a}});Fb(d)||(d.input=a,a=Oh("Image.clipToBoundsAndScale",d));return a},Ni=function(a,b){var c="bands gain bias min max gamma palette opacity forceRgbOutput".split(" "),
|
|
d={},e={};wb(b,function(a,b){Ya(c,b)?e[b]=a:d[b]=a});Fb(e)||(e.image=a,a=Oh("Image.visualize",e));d.image=a;return d};V.prototype.Ca=function(a,b){var c=O(V.prototype.Ca,arguments),d=c.params?Hb(c.params):{};d.image=this.D();if(c.callback){var e=c.callback;lh(d,function(a,b){a?e(mh(a)):e(null,b)})}else return mh(lh(d))};V.prototype.getDownloadURL=V.prototype.Ca;
|
|
V.prototype.Lc=function(a,b){var c=O(V.prototype.Lc,arguments);if(Fg){var d={};var e=Oi(this,c.params,d);d=Ni(e,d)}else if(d=Ni(this,c.params),d.region)if(q(d.region)||Ih(d.region))d.region=rd(d.region);else if(!n(d.region))throw Error("The region parameter must be an array or a GeoJSON object.");if(c.callback)jh(d,function(a,b){var d="";if(!m(b))try{d=kh(a)}catch(v){b=String(v.message)}c.callback(d,b)});else return kh(jh(d))};V.prototype.getThumbURL=V.prototype.Lc;
|
|
var Pi=function(a,b,c){var d=O(Pi,arguments);return Li([d.r,d.g,d.b],["vis-red","vis-green","vis-blue"])};V.rgb=Pi;var Qi=function(a){return Li(Array.prototype.slice.call(arguments),null)};V.cat=Qi;var Li=function(a,b){if(0==a.length)return L("Image.constant",[]);for(var c=new V(a[0]),d=1;d<a.length;d++)c=L("Image.addBands",c,a[d]);b&&(c=c.select([".*"],b));return c};
|
|
V.prototype.select=function(a){var b=Array.prototype.slice.call(arguments),c={input:this,bandSelectors:b[0]||[]};if(2<b.length||Hh(b[0])||Gh(b[0])){for(var d=0;d<b.length;d++)if(!(Hh(b[d])||Gh(b[d])||b[d]instanceof I))throw Error("Illegal argument to select(): "+b[d]);c.bandSelectors=b}else b[1]&&(c.newNames=b[1]);return Oh("Image.select",c)};V.prototype.select=V.prototype.select;
|
|
V.prototype.expression=function(a,b){var c=O(V.prototype.expression,arguments),d=["DEFAULT_EXPRESSION_IMAGE"],e={DEFAULT_EXPRESSION_IMAGE:this};if(c.map){var f=c.map,g;for(g in f)d.push(g),e[g]=new V(f[g])}var l=L("Image.parseExpression",c.expression,"DEFAULT_EXPRESSION_IMAGE",d);c=new J;c.encode=function(a){return l.encode(a)};c.Dc=function(a,b){return gd(a(l),b)};c.L=function(){return{name:"",args:Sa(d,function(a){return{name:a,type:"Image",optional:!1}},this),returns:"Image"}};return c.apply(e)};
|
|
V.prototype.expression=V.prototype.expression;V.prototype.clip=function(a){try{a=new Q(a)}catch(b){}return L("Image.clip",this,a)};V.prototype.clip=V.prototype.clip;V.prototype.de=function(a){var b=1!=arguments.length||Hh(arguments[0])?cb(arguments):arguments[0];return L("Image.rename",this,b)};V.prototype.rename=V.prototype.de;V.prototype.name=function(){return"Image"};var Ri=function(a){if(this instanceof Ri){if(1<arguments.length)throw Error("ee.List() only accepts 1 argument.");if(a instanceof Ri)return a}else return Bh(Ri,arguments);Si();if(q(a))I.call(this,null,null),this.vb=a;else if(a instanceof I)I.call(this,a.i,a.args,a.A),this.vb=null;else throw Error("Invalid argument specified for ee.List(): "+a);};x(Ri,I);w("ee.List",Ri);var Ti=!1,Si=function(){Ti||(N(Ri,"List","List"),Ti=!0)};
|
|
Ri.prototype.encode=function(a){return q(this.vb)?Sa(this.vb,function(b){return a(b)}):Ri.f.encode.call(this,a)};Ri.prototype.P=function(a){return q(this.vb)?ed(a(this.vb)):Ri.f.P.call(this,a)};Ri.prototype.name=function(){return"List"};var X=function(a,b){if(!(this instanceof X))return Bh(X,arguments);if(a instanceof X)return a;if(2<arguments.length)throw Error("The FeatureCollection constructor takes at most 2 arguments ("+arguments.length+" given)");Ui();a instanceof Q&&(a=new U(a));a instanceof U&&(a=[a]);if(Hh(a)){var c={tableId:a};b&&(c.geometryColumn=b);T.call(this,new K("Collection.loadTable"),c)}else if(q(a))T.call(this,new K("Collection"),{features:Sa(a,function(a){return new U(a)})});else if(a instanceof Ri)T.call(this,
|
|
new K("Collection"),{features:a});else if(a instanceof I)T.call(this,a.i,a.args,a.A);else throw Error("Unrecognized argument type to convert to a FeatureCollection: "+a);};x(X,T);w("ee.FeatureCollection",X);var Vi=!1,Ui=function(){Vi||(N(X,"FeatureCollection","FeatureCollection"),Vi=!0)};X.prototype.getMap=function(a,b){var c=O(X.prototype.getMap,arguments),d=Oh("Collection.draw",{collection:this,color:(c.visParams||{}).color||"000000"});if(c.callback)d.getMap(void 0,c.callback);else return d.getMap()};
|
|
X.prototype.getMap=X.prototype.getMap;X.prototype.C=function(a){return X.f.C.call(this,a)};X.prototype.getInfo=X.prototype.C;X.prototype.Ca=function(a,b,c,d){var e=O(X.prototype.Ca,arguments),f={};f.table=this.D();e.format&&(f.format=e.format.toUpperCase());e.filename&&(f.filename=e.filename);if(e.selectors){var g=e.selectors;wa(g)&&(g=g.join(","));f.selectors=g}if(e.callback)nh(f,function(a,b){a?e.callback(oh(a)):e.callback(null,b)});else return oh(nh(f))};X.prototype.getDownloadURL=X.prototype.Ca;
|
|
X.prototype.select=function(a,b,c){if(Hh(a)){var d=Array.prototype.slice.call(arguments);return this.map(function(a){return a.select(d)})}var e=O(X.prototype.select,arguments);return this.map(function(a){return a.select(e)})};X.prototype.select=X.prototype.select;X.prototype.name=function(){return"FeatureCollection"};X.prototype.elementType=function(){return U};var Y=function(a){if(!(this instanceof Y))return Bh(Y,arguments);if(a instanceof Y)return a;if(1!=arguments.length)throw Error("The ImageCollection constructor takes exactly 1 argument ("+arguments.length+" given)");Wi();a instanceof V&&(a=[a]);if(Hh(a))T.call(this,new K("ImageCollection.load"),{id:a});else if(q(a))T.call(this,new K("ImageCollection.fromImages"),{images:Sa(a,function(a){return new V(a)})});else if(a instanceof Ri)T.call(this,new K("ImageCollection.fromImages"),{images:a});else if(a instanceof
|
|
I)T.call(this,a.i,a.args,a.A);else throw Error("Unrecognized argument type to convert to an ImageCollection: "+a);};x(Y,T);w("ee.ImageCollection",Y);var Xi=!1,Wi=function(){Xi||(N(Y,"ImageCollection","ImageCollection"),N(Y,"reduce","ImageCollection"),Xi=!0)};Y.prototype.getMap=function(a,b){var c=O(Y.prototype.getMap,arguments),d=L("ImageCollection.mosaic",this);if(c.callback)d.getMap(c.visParams,c.callback);else return d.getMap(c.visParams)};Y.prototype.getMap=Y.prototype.getMap;
|
|
Y.prototype.C=function(a){return Y.f.C.call(this,a)};Y.prototype.getInfo=Y.prototype.C;Y.prototype.select=function(a,b){var c=arguments;return this.map(function(a){return a.select.apply(a,c)})};Y.prototype.select=Y.prototype.select;Y.prototype.first=function(){return new V(L("Collection.first",this))};Y.prototype.first=Y.prototype.first;Y.prototype.name=function(){return"ImageCollection"};Y.prototype.elementType=function(){return V};var Zi=function(a){this.zc=a;this.id=null},aj=function(a,b){var c=function(b){return b in a},d=$i.find(c);A(1===Va($i,c));c=a[d];delete a[d];b={json:c.D(),type:b};Object.assign(b,a);b=xb(b,va);return new Zi(b)};
|
|
Zi.prototype.start=function(a,b){var c=this;A(this.zc,"Task config must be specified for tasks to be started.");if(a){var d=function(){La(c.id);vh(c.id,c.zc,function(c,d){d?b(d):a()})};this.id?d():rh(1,function(a){(a=a&&a[0])?(c.id=a,d()):b("Failed to obtain task ID.")})}else this.id=this.id||rh(1)[0],La(this.id,"Failed to obtain task ID."),vh(this.id,this.zc)};Zi.prototype.start=Zi.prototype.start;
|
|
var bj=function(a,b,c,d,e,f,g,l,v,F){var M=O(bj,arguments);M=cj(M,"ASSET");M.region=dj(M.region);return aj(M,"EXPORT_IMAGE")};w("ee.batch.Export.image.toAsset",bj);var ej=function(a,b,c,d,e,f,g,l,v,F,M,ka,R,Cc,Yi){var W=O(ej,arguments);W=cj(W,"GOOGLE_CLOUD_STORAGE");W=fj(W);W.region=dj(W.region);return aj(W,"EXPORT_IMAGE")};w("ee.batch.Export.image.toCloudStorage",ej);
|
|
var gj=function(a,b,c,d,e,f,g,l,v,F,M,ka,R,Cc,Yi){var W=O(gj,arguments);W=cj(W,"DRIVE");W=fj(W);W.region=dj(W.region);return aj(W,"EXPORT_IMAGE")};w("ee.batch.Export.image.toDrive",gj);var hj=function(a,b,c,d,e,f,g,l,v,F,M,ka){var R=O(hj,arguments);R=cj(R,"GOOGLE_CLOUD_STORAGE");R.region=dj(R.region);return aj(R,"EXPORT_TILES")};w("ee.batch.Export.map.toCloudStorage",hj);var ij=function(a,b,c,d,e,f){var g=O(ij,arguments);g=cj(g,"GOOGLE_CLOUD_STORAGE");return aj(g,"EXPORT_FEATURES")};
|
|
w("ee.batch.Export.table.toCloudStorage",ij);var jj=function(a,b,c,d,e,f){var g=O(jj,arguments);g=cj(g,"DRIVE");return aj(g,"EXPORT_FEATURES")};w("ee.batch.Export.table.toDrive",jj);var kj=function(a,b,c){var d=O(kj,arguments);d=cj(d,"ASSET");return aj(d,"EXPORT_FEATURES")};w("ee.batch.Export.table.toAsset",kj);var lj=function(a,b,c,d,e,f,g,l,v,F,M,ka){var R=O(lj,arguments);R=cj(R,"GOOGLE_CLOUD_STORAGE");R.region=dj(R.region);return aj(R,"EXPORT_VIDEO")};w("ee.batch.Export.video.toCloudStorage",lj);
|
|
var mj=function(a,b,c,d,e,f,g,l,v,F,M,ka){var R=O(mj,arguments);R=cj(R,"DRIVE");R.region=dj(R.region);return aj(R,"EXPORT_VIDEO")};w("ee.batch.Export.video.toDrive",mj);var nj=function(a,b,c,d,e,f,g,l,v,F,M){var ka=O(nj,arguments);ka=cj(ka,"GOOGLE_CLOUD_STORAGE");ka.region=dj(ka.region);return aj(ka,"EXPORT_VIDEO_MAP")};w("ee.batch.Export.videoMap.toCloudStorage",nj);
|
|
var dj=function(a){if(a instanceof Q)a=a.ic();else if(n(a))try{a=Na(JSON.parse(a))}catch(b){throw Error("Invalid format for region property. Region must be GeoJSON LinearRing or Polygon specified as actual coordinates or serialized as a string. See Export documentation.");}if(!(r(a)&&"type"in a))try{new ki(a)}catch(b){try{new ni(a)}catch(c){throw Error("Invalid format for region property. Region must be GeoJSON LinearRing or Polygon specified as actual coordinates or serialized as a string. See Export documentation.");
|
|
}}return rd(a)},cj=function(a,b){var c={};Object.assign(c,a);null!=c.crsTransform&&(c.crs_transform=c.crsTransform,delete c.crsTransform);"array"==ua(c.fileDimensions)&&(c.fileDimensions=c.fileDimensions.join());"array"==ua(c.selectors)&&(c.selectors=c.selectors.join());switch(b){case "GOOGLE_CLOUD_STORAGE":c.outputBucket=c.bucket||"";c.outputPrefix=c.fileNamePrefix||c.path||"";delete c.bucket;delete c.fileNamePrefix;break;case "ASSET":c.assetId=c.assetId||"";break;case "DRIVE":if(a=ua(c.folder),
|
|
!Ya(["string","undefined"],a))throw Error('Error: toDrive "folder" parameter must be a string, but is of type '+a+".");default:c.driveFolder=c.folder||"",c.driveFileNamePrefix=c.fileNamePrefix||"",delete c.folder,delete c.fileNamePrefix}return c},oj="tiffCloudOptimized tiffFileDimensions tfrecordPatchDimensions tfrecordKernelSize tfrecordCompressed tfrecordMaxFileSize tfrecordDefaultValue tfrecordTensorDepths tfrecordSequenceData tfrecordCollapseBands tfrecordMaskedThreshold".split(" "),pj={GEOTIFF:"tiff",
|
|
TFRECORD:"tfrecord"},fj=function(a){var b="GEOTIFF";null!=a.fileFormat&&(b=a.fileFormat.toUpperCase());if(!(b in pj))throw a=Object.keys(pj).join(", "),Error("Invalid file format. Supported formats are: "+a+".");var c=a;null!=a.formatOptions&&"object"==ua(a.formatOptions)&&(c=a.formatOptions,delete a.formatOptions,c=qj(a,c,b));a=c;null!=a.tiffFileDimensions&&(a.tiffFileDimensions=a.tiffFileDimensions.join());null!=a.tfrecordPatchDimensions&&(a.tfrecordPatchDimensions=a.tfrecordPatchDimensions.join());
|
|
null!=a.tfrecordKernelSize&&(a.tfrecordKernelSize=a.tfrecordKernelSize.join());null!=a.tfrecordTensorDepths&&(a.tfrecordTensorDepths=a.tfrecordTensorDepths.join());return a},qj=function(a,b,c){if(Object.keys(a).some(function(a){return a in b}))throw Error("Parameter specified at least twice: once in config, and once in config format options.");for(var d=pj[c],e=ba(Object.entries(b)),f=e.next();!f.done;f=e.next()){var g=ba(f.value);f=g.next().value;g=g.next().value;var l=d+f[0].toUpperCase()+f.slice(1);
|
|
if(!oj.includes(l))throw Error("'"+f+"' is not a valid option for '"+c+"'.");a[l]=g}return a},$i=["image","collection"];var rj=function(a){if(!(this instanceof rj))return Bh(rj,arguments);if(a instanceof rj)return a;sj();if(p(a))I.call(this,null,null),this.xb=a;else if(a instanceof I)I.call(this,a.i,a.args,a.A),this.xb=null;else throw Error("Invalid argument specified for ee.Number(): "+a);};x(rj,I);w("ee.Number",rj);var tj=!1,sj=function(){tj||(N(rj,"Number","Number"),tj=!0)};rj.prototype.encode=function(a){return p(this.xb)?this.xb:rj.f.encode.call(this,a)};
|
|
rj.prototype.P=function(a){return p(this.xb)?ed(a(this.xb)):rj.f.P.call(this,a)};rj.prototype.name=function(){return"Number"};var uj=function(a){if(!(this instanceof uj))return Bh(uj,arguments);if(a instanceof uj)return a;vj();if(n(a))I.call(this,null,null),this.Cb=a;else if(a instanceof I)this.Cb=null,a.i&&"String"==a.i.L().returns?I.call(this,a.i,a.args,a.A):I.call(this,new K("String"),{input:a},null);else throw Error("Invalid argument specified for ee.String(): "+a);};x(uj,I);w("ee.String",uj);var wj=!1,vj=function(){wj||(N(uj,"String","String"),wj=!0)};
|
|
uj.prototype.encode=function(a){return n(this.Cb)?this.Cb:uj.f.encode.call(this,a)};uj.prototype.P=function(a){return n(this.Cb)?ed(a(this.Cb)):uj.f.P.call(this,a)};uj.prototype.name=function(){return"String"};var xj=function(a,b){if(!(this instanceof xj))return Bh(xj,arguments);for(var c=[],d=a.args,e=0;e<d.length;e++){var f=d[e],g=f.type;c.push(yj(g in Dh?Dh[g]:null,f.name))}if(!m(b.apply(null,c)))throw Error("User-defined methods must return a value.");this.ia=zj(a,c,b);this.qd=b.apply(null,c)};x(xj,J);w("ee.CustomFunction",xj);xj.prototype.encode=function(a){return{type:"Function",argumentNames:Sa(this.ia.args,function(a){return a.name}),body:a(this.qd)}};
|
|
xj.prototype.P=function(a){return hd(this.ia.args.map(function(a){return a.name}),a(this.qd))};xj.prototype.Dc=function(a,b){return gd(a(this),b)};xj.prototype.L=function(){return this.ia};
|
|
var yj=function(a,b){a=a||Object;if(!(a.prototype instanceof I))if(a&&a!=Object)if(a==String)a=uj;else if(a==Number)a=rj;else if(a==Array)a=k.ee.List;else throw Error("Variables must be of an EE type, e.g. ee.Image or ee.Number.");else a=I;var c=function(a){this.args=this.i=null;this.A=a};c.prototype=a.prototype;return new c(b)},Aj=function(a,b){b=Sa(b,function(a){return{name:null,type:n(a)?a:Eh(a)}});b={name:"",returns:n("Object")?"Object":Eh("Object"),args:b};return new xj(b,a)},zj=function(a,b,
|
|
c){for(var d=[],e=0;e<b.length;e++)null===b[e].A&&d.push(e);if(0==d.length)return a;var f=function(a){var b=0;r(a)&&!t(a)&&("Function"==a.type&&b++,wb(a,function(a){b+=f(a)}));return b};e=Ad(c.apply(null,b));c="_MAPPING_VAR_"+f(e)+"_";for(e=0;e<d.length;e++){var g=d[e],l=c+e;b[g].A=l;a.args[g].name=l}return a};var Bj=function(a,b){if(!(this instanceof Bj))return Bh(Bj,arguments);if(a instanceof Bj)return a;Cj();var c=O(Bj,arguments);a=c.date;c=c.tz;var d=new K("Date"),e={},f=null;if(Hh(a)){if(e.value=a,c)if(Hh(c))e.timeZone=c;else throw Error("Invalid argument specified for ee.Date(..., opt_tz): "+c);}else if(Gh(a))e.value=a;else if(xa(a))e.value=Math.floor(a.getTime());else if(a instanceof I)a.i&&"Date"==a.i.L().returns?(d=a.i,e=a.args,f=a.A):e.value=a;else throw Error("Invalid argument specified for ee.Date(): "+
|
|
a);I.call(this,d,e,f)};x(Bj,I);w("ee.Date",Bj);var Dj=!1,Cj=function(){Dj||(N(Bj,"Date","Date"),Dj=!0)};Bj.prototype.name=function(){return"Date"};w("ee.Deserializer",function(){});var Fj=function(a){return Ej(JSON.parse(a))};w("ee.Deserializer.fromJSON",Fj);var Ej=function(a){var b={};if(r(a)&&"CompoundValue"==a.type){for(var c=a.scope,d=0;d<c.length;d++){var e=c[d][0],f=c[d][1];if(e in b)throw Error('Duplicate scope key "'+e+'" in scope #'+d+".");b[e]=Gj(f,b)}a=a.value}return Gj(a,b)};w("ee.Deserializer.decode",Ej);
|
|
var Gj=function(a,b){if(null===a||p(a)||pa(a)||n(a))return a;if(q(a))return Sa(a,function(a){return Gj(a,b)});if(!r(a)||t(a))throw Error("Cannot decode object: "+a);var c=a.type;switch(c){case "ValueRef":if(a.value in b)return b[a.value];throw Error("Unknown ValueRef: "+a);case "ArgumentRef":c=a.value;if(!n(c))throw Error("Invalid variable name: "+c);return yj(Object,c);case "Date":c=a.value;if(!p(c))throw Error("Invalid date value: "+c);return new Bj(c/1E3);case "Bytes":return c=new cd,c.encode=
|
|
function(){return a},c;case "Invocation":c="functionName"in a?Nh(a.functionName):Gj(a["function"],b);var d=yb(a.arguments,function(a){return Gj(a,b)});if(c instanceof J)return c.apply(d);if(c instanceof I)return new I(c,d);throw Error("Invalid function value: "+a["function"]);case "Dictionary":return yb(a.value,function(a){return Gj(a,b)});case "Function":var e=Gj(a.body,b);c={name:"",args:Sa(a.argumentNames,function(a){return{name:a,type:"Object",optional:!1}}),returns:"Object"};return new xj(c,
|
|
function(){return e});case "Point":case "MultiPoint":case "LineString":case "MultiLineString":case "Polygon":case "MultiPolygon":case "LinearRing":case "GeometryCollection":return new Q(a);case "CompoundValue":throw Error("Nested CompoundValues are disallowed.");default:throw Error("Unknown encoded object type: "+c);}};var Hj=function(a){if(!(this instanceof Hj))return Bh(Hj,arguments);if(a instanceof Hj)return a;Ij();Ih(a)?(I.call(this,null,null),this.lb=a):(a instanceof I&&a.i&&"Dictionary"==a.i.L().returns?I.call(this,a.i,a.args,a.A):I.call(this,new K("Dictionary"),{input:a},null),this.lb=null)};x(Hj,I);w("ee.Dictionary",Hj);var Jj=!1,Ij=function(){Jj||(N(Hj,"Dictionary","Dictionary"),Jj=!0)};Hj.prototype.encode=function(a){return null===this.lb?Hj.f.encode.call(this,a):a(this.lb)};
|
|
Hj.prototype.P=function(a){return null===this.lb?Hj.f.P.call(this,a):ed(a(this.lb))};Hj.prototype.name=function(){return"Dictionary"};var Kj={};w("ee.Terrain",Kj);Kj.Rc=!1;Kj.Ke=function(){Kj.Rc||(N(Kj,"Terrain","Terrain"),Kj.Rc=!0)};Kj.reset=function(){Vh(Kj);Kj.Rc=!1};var Qj=function(a,b,c,d,e){if("ready"!=Lj||a||b){var f=null!=c;if(d)if(f)Mj.push(d);else throw Error("Can't pass an error callback without a success callback.");if("loading"==Lj&&f)Nj.push(c);else if(Lj="loading",Ug(a,b,e),f)Nj.push(c),Rh(Oj,Pj);else try{Rh(),Oj()}catch(g){throw Pj(g),g;}}else c&&c()};w("ee.initialize",Qj);
|
|
var Tj=function(){Lj="not_ready";Sg=Rg=Qg=Og=null;Tg=!1;sa("gapi")&&gapi.client&&delete gapi.client.earthengine;Pg=!1;Ph=null;Qh={};Vh(Bj);Dj=!1;Vh(Hj);Jj=!1;Vh(P);bi=!1;Vh(V);Mi=!1;Vh(U);Ji=!1;Vh(T);Hi=!1;Vh(Y);Xi=!1;Vh(X);Vi=!1;Vh(S);si=!1;Vh(Q);ei=!1;Vh(Ri);Ti=!1;Vh(rj);tj=!1;Vh(uj);wj=!1;Kj.reset();for(var a=k.ee,b=0;b<Rj.length;b++){var c=Rj[b];Vh(a[c]);delete a[c]}Rj=[];Dh=a;a=Sj;for(var d in a)delete a[d]};w("ee.reset",Tj);var Uj={nf:"not_ready",LOADING:"loading",pf:"ready"};
|
|
w("ee.InitState",Uj);w("ee.InitState.NOT_READY","not_ready");w("ee.InitState.LOADING","loading");w("ee.InitState.READY","ready");var Lj="not_ready",Nj=[],Mj=[];w("ee.TILE_SIZE",256);var Rj=[],Sj={};w("ee.Algorithms",Sj);var Vj=function(a,b){n(a)&&(a=new K(a));return J.prototype.call.apply(a,Array.prototype.slice.call(arguments,1))};w("ee.call",Vj);var Wj=function(a,b){n(a)&&(a=new K(a));return a.apply(b)};w("ee.apply",Wj);
|
|
var Oj=function(){if("loading"==Lj){try{Cj();Ij();ai();Ki();Ii();Gi();Wi();Ui();ri();ci();Si();sj();vj();Kj.Ke();var a=Sh(),b={},c={},d;for(d in a){b[-1!=d.indexOf(".")?d.slice(0,d.indexOf(".")):d]=!0;var e=a[d].returns.replace(/<.*>/,"");c[e]=!0}var f=k.ee,g;for(g in b)g in c&&!(g in f)&&(f[g]=Xj(g),Rj.push(g),a[g]?(f[g].signature=a[g],f[g].signature.isConstructor=!0,Qh[g]=!0):f[g].signature={});Dh=f;Yj()}catch(l){Pj(l);return}Lj="ready";for(Mj=[];0<Nj.length;)Nj.shift()()}},Pj=function(a){if("loading"==
|
|
Lj)for(Lj="not_ready",Nj=[];0<Mj.length;)Mj.shift()(a)},Yj=function(){var a=Th();Bb(a).sort().forEach(function(b){var c=a[b],d=c.L();if(!d.hidden){b=b.split(".");var e=Sj;for(e.signature={};1<b.length;){var f=b[0];f in e||(e[f]={signature:{}});e=e[f];b=eb(b,1)}f=function(a){return Mh(c,void 0,Array.prototype.slice.call(arguments,0))};f.signature=d;f.toString=u(c.toString,c);e[b[0]]=f}})},Xj=function(a){var b=function(b){var c=k.ee[a],e=Array.prototype.slice.call(arguments),f=1==e.length;if(f&&e[0]instanceof
|
|
c)return e[0];if(!(this instanceof c))return Bh(c,e);c=Uh(a);var g=!(e[0]instanceof I),l=!1;c&&(f?g?l=!0:e[0].i!=c&&(l=!0):l=!0);if(l)I.call(this,c,Lh(c,Kh(c,e)));else{if(!f)throw Error("Too many arguments for ee."+a+"(): "+e);if(g)throw Error("Invalid argument for ee."+a+"(): "+e+". Must be a ComputedObject.");e=e[0];I.call(this,e.i,e.args,e.A)}};x(b,I);b.prototype.name=function(){return a};N(b,a,a);return b};
|
|
Jh=function(a,b){if(null===a)return null;if(m(a)){var c=k.ee;switch(b){case "Image":return new V(a);case "Feature":return a instanceof T?L("Feature",L("Collection.geometry",a)):new U(a);case "Element":if(a instanceof P)return a;if(a instanceof Q)return new U(a);if(a instanceof I)return new P(a.i,a.args,a.A);throw Error("Cannot convert "+a+" to Element.");case "Geometry":return a instanceof X?L("Collection.geometry",a):new Q(a);case "FeatureCollection":case "Collection":return a instanceof T?a:new X(a);
|
|
case "ImageCollection":return new Y(a);case "Filter":return new S(a);case "Algorithm":if(n(a))return new K(a);if(t(a)){b=a.length;c=[];for(var d=0;d<b;d++)c[d]="Object";return Aj(a,c)}if(a instanceof cd)return a;throw Error("Argument is not a function: "+a);case "String":return Hh(a)||a instanceof uj||a instanceof I?new uj(a):a;case "Dictionary":return Ih(a)?a:new Hj(a);case "List":return new Ri(a);case "Number":case "Float":case "Long":case "Integer":case "Short":case "Byte":return new rj(a);default:if(b in
|
|
c){d=Uh(b);if(a instanceof c[b])return a;if(d)return new c[b](a);if(n(a)){if(a in c[b])return c[b][a].call();throw Error("Unknown algorithm: "+b+"."+a);}return new c[b](a)}return a}}};var Zj=function(a,b,c){Zc.call(this,a,b,c);this.tileSize=new google.maps.Size(256,256);this.Gd=new C;this.Fd=new C};x(Zj,Zc);w("ee.FloatTileOverlay",Zj);Zj.prototype.getTile=function(a,b){var c=$c(this,a,b);b=[this.url,c].join("/")+"?token="+this.token;c=[c,this.xa,this.token].join("/");this.za.push(c);this.xa+=1;var d=Ve("DIV");ak(this,b,a,c,d);bk(this);return d};
|
|
var ak=function(a,b,c,d,e){var f=Kf();f.open("GET",b,!0);f.responseType="arraybuffer";f.onreadystatechange=u(function(){if(f.readyState===XMLHttpRequest.DONE&&200===f.status){var a=f.response;if(a)a=new Float32Array(a),this.Gd.set(c,a),this.Fd.set(c,e),ab(this.za,d),bk(this);else throw this.hd.add(d),Error("Unable to request floating point array buffers.");}},a);f.send()},bk=function(a){a.dispatchEvent(new ad(a.za.length))};Zj.prototype.h=function(){this.Fd=this.Gd=null;Zj.f.h.call(this)};var ck=function(){this.gc=new Map};ck.prototype.clear=function(){this.gc.clear()};var dk=function(a,b){a.gc.has(b)||a.gc.set(b,{throttleCount:0,errorCount:0,tileLatencies:[]});return a.gc.get(b)};var ek=function(a){y.call(this);this.Da=a;this.j={}};x(ek,y);var fk=[];ek.prototype.ga=function(a,b,c,d){q(b)||(b&&(fk[0]=b.toString()),b=fk);for(var e=0;e<b.length;e++){var f=tc(a,b[e],c||this.handleEvent,d||!1,this.Da||this);if(!f)break;this.j[f.key]=f}return this};ek.prototype.wb=function(a,b,c,d){return gk(this,a,b,c,d)};var gk=function(a,b,c,d,e,f){if(q(c))for(var g=0;g<c.length;g++)gk(a,b,c[g],d,e,f);else{b=sc(b,c,d||a.handleEvent,e,f||a.Da||a);if(!b)return a;a.j[b.key]=b}return a};
|
|
ek.prototype.mc=function(a,b,c,d,e){if(q(b))for(var f=0;f<b.length;f++)this.mc(a,b[f],c,d,e);else c=c||this.handleEvent,d=r(d)?!!d.capture:!!d,e=e||this.Da||this,c=uc(c),d=!!d,b=ic(a)?a.nb(b,c,d,e):a?(a=wc(a))?a.nb(b,c,d,e):null:null,b&&(Bc(b),delete this.j[b.key])};ek.prototype.Ab=function(){wb(this.j,function(a,b){this.j.hasOwnProperty(b)&&Bc(a)},this);this.j={}};ek.prototype.h=function(){ek.f.h.call(this);this.Ab()};
|
|
ek.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var ik=function(a,b){m(a.name)?(this.name=a.name,this.code=Db[a.name]):(this.code=Ka(a.code),this.name=hk(a.code));Fa.call(this,gb("%s %s",this.name,b))};x(ik,Fa);var hk=function(a){var b=Eb(function(b){return a==b});if(!m(b))throw Error("Invalid code: "+a);return b},Db={AbortError:3,EncodingError:5,InvalidModificationError:9,InvalidStateError:7,NotFoundError:1,NotReadableError:4,NoModificationAllowedError:6,PathExistsError:12,QuotaExceededError:10,SecurityError:2,SyntaxError:8,TypeMismatchError:11};var jk=function(a,b){z.call(this,a.type,b);this.$=a};x(jk,z);var kk=function(){B.call(this);this.H=new FileReader;this.H.onloadstart=u(this.Sa,this);this.H.onprogress=u(this.Sa,this);this.H.onload=u(this.Sa,this);this.H.onabort=u(this.Sa,this);this.H.onerror=u(this.Sa,this);this.H.onloadend=u(this.Sa,this)};x(kk,B);h=kk.prototype;h.abort=function(){try{this.H.abort()}catch(a){throw new ik(a,"aborting read");}};h.ua=function(){return this.H.readyState};h.getError=function(){return this.H.error&&new ik(this.H.error,"reading file")};
|
|
h.Sa=function(a){this.dispatchEvent(new jk(a,this))};h.h=function(){kk.f.h.call(this);delete this.H};h.readAsBinaryString=function(a){this.H.readAsBinaryString(a)};h.readAsArrayBuffer=function(a){this.H.readAsArrayBuffer(a)};h.readAsText=function(a,b){this.H.readAsText(a,b)};var lk=function(a,b){A(a);a=a.style;"opacity"in a?a.opacity=b:"MozOpacity"in a?a.MozOpacity=b:"filter"in a&&(a.filter=""===b?"":"alpha(opacity="+100*Number(b)+")")};var mk=function(a,b){B.call(this);b=b||{};this.minZoom=b.minZoom||0;this.maxZoom=b.maxZoom||20;if(!window.google||!window.google.maps)throw Error("Google Maps API hasn't been initialized.");this.tileSize=b.tileSize||new google.maps.Size(256,256);this.name=b.name;this.opacity="opacity"in b?b.opacity:1;this.fc=new ck;this.ya=new C;this.xa=0;this.gd=a;this.na=new ek(this);this.alt=this.radius=this.projection=void 0};x(mk,B);w("ee.layers.AbstractOverlay",mk);
|
|
mk.prototype.uc=function(a){return tc(this,"tile-load",a)};mk.prototype.addTileCallback=mk.prototype.uc;mk.prototype.ad=function(a){Bc(a)};mk.prototype.removeTileCallback=mk.prototype.ad;h=mk.prototype;h.Kc=function(){return nk(this,"throttled")+nk(this,"loading")+nk(this,"new")};h.setOpacity=function(a){this.opacity=a;this.ya.forEach(function(a){lk(a.O,this.opacity)},this)};h.getStats=function(){return this.fc};
|
|
h.getTile=function(a,b,c){var d=1<<b;if(b<this.minZoom||0>a.y||a.y>=d)return c.createElement("div");var e=a.x%d;0>e&&(e+=d);d=new google.maps.Point(e,a.y);a=[[a.x,a.y,b,this.xa++].join("-"),this.gd.Ld()].join("-");b=this.yd(d,b,c,a);b.tileSize=this.tileSize;lk(b.O,this.opacity);this.ya.set(a,b);ok(this,b);this.gd.Td(b,(new Date).getTime()/1E3);return b.O};h.releaseTile=function(a){var b=this.ya.get(a.id);this.ya.remove(a.id);b&&(b.abort(),Ea(b))};
|
|
var ok=function(a,b){a.na.ga(b,"status-changed",function(){switch(b.getStatus()){case "loaded":var a=b.Qe,d=(new Date).getTime();dk(this.fc,b.zoom).tileLatencies.push(d-a);this.dispatchEvent(new pk(this.Kc()));break;case "throttled":dk(this.fc,b.zoom).throttleCount++;this.dispatchEvent(new qk(b.Ja));break;case "failed":dk(this.fc,b.zoom).errorCount++,this.dispatchEvent(new rk(b.Ja,b.De))}})};
|
|
mk.prototype.h=function(){mk.f.h.call(this);this.ya.forEach(Ea);this.ya.clear();this.ya=null;Ea(this.na);this.gd=this.na=null};var nk=function(a,b){return Va(a.ya.w(),function(a){return a.getStatus()==b})},pk=function(){z.call(this,"tile-load")};x(pk,z);var qk=function(){z.call(this,"tile-throttle")};x(qk,z);var rk=function(a,b){z.call(this,"tile-fail");this.errorMessage=b};x(rk,z);
|
|
var sk=function(a,b,c,d){B.call(this);this.Ra=a;this.zoom=b;this.O=c.createElement("div");this.O.id=d;this.Se=5;this.bc=function(){};this.dd="new";this.fe=0;this.Tc=!1};x(sk,B);
|
|
var uk=function(a){if(!a.Tc&&"loading"==a.getStatus())throw Error("startLoad() can only be invoked once. Use retryLoad() after the first attempt.");tk(a,"loading");a.Qe=(new Date).getTime();a.qa=new E;a.qa.bb="blob";a.qa.ga("complete",function(){var a=$f(this.qa),c=this.qa.getStatus();429==c&&tk(this,"throttled");if(Gf(c)){var d={};wb(ag(this.qa),function(a,b){d[b.toLowerCase()]=a});this.ef=d;this.me=a;this.mb()}else if(a){var e=new kk;e.ga("loadend",function(){this.Bb(e.H.result)},void 0,this);e.readAsText(a)}else this.Bb("Failed to load tile.")},
|
|
!1,a);a.qa.wb("ready",Ca(Ea,a.qa));a.qa.send(a.Ja,"GET")};h=sk.prototype;h.mb=function(){this.bc(this);tk(this,"loaded")};h.hb=function(){Ea(this.qa)};h.Bb=function(a){var b=function(a){try{if(a=JSON.parse(a),a.error&&a.error.message)return a.error.message}catch(d){}return a};this.fe>=this.Se?(this.De=b(a),tk(this,"failed")):(this.hb(),setTimeout(u(function(){this.ea||(this.Tc=!0,uk(this),this.Tc=!1)},this),1E3*Math.pow(2,this.fe++)))};h.abort=function(){this.hb();tk(this,"aborted")};
|
|
h.getStatus=function(){return this.dd};var tk=function(a,b){a.dd=b;a.dispatchEvent("status-changed")},vk={aborted:!0,failed:!0,loaded:!0};sk.prototype.h=function(){sk.f.h.call(this);this.hb();this.O.remove();this.bc=null};var wk=function(){y.call(this)};x(wk,y);var xk=function(a,b){mk.call(this,a,b);this.sd=new C;this.Bd=new C};x(xk,mk);w("ee.layers.BinaryOverlay",xk);xk.prototype.yd=function(a,b,c,d){var e=new yk(a,b,c,d);this.na.ga(e,"status-changed",function(){"loaded"==e.getStatus()&&(this.sd.set(a,new Float32Array(e.xe)),this.Bd.set(a,e.O))});return e};xk.prototype.h=function(){xk.f.h.call(this);this.Bd=this.sd=null};var yk=function(a,b,c,d){sk.call(this,a,b,c,d)};x(yk,sk);
|
|
yk.prototype.mb=function(){var a=new kk;a.ga("loadend",function(){this.xe=a.H.result;sk.prototype.mb.call(this)},void 0,this);a.readAsArrayBuffer(this.me)};var zk=function(a){B.call(this);this.sb={};this.rb={};this.Da=new ek(this);this.u=a};x(zk,B);var Ak=[Pb&&!Zb("11")?"readystatechange":"load","abort","error"],Bk=function(a,b,c){(c=n(c)?c:c.src)&&(a.sb[b]={src:c,xd:m(void 0)?void 0:null})},Ck=function(a,b){delete a.sb[b];var c=a.rb[b];c&&(delete a.rb[b],a.Da.mc(c,Ak,a.Xd),Fb(a.rb)&&Fb(a.sb)&&a.dispatchEvent("complete"))};
|
|
zk.prototype.start=function(){var a=this.sb;Qa(Bb(a),function(b){var c=a[b];if(c&&(delete a[b],!this.ea)){if(this.u){var d=this.u;d=(d?new af($e(d)):Ga||(Ga=new af)).Be("IMG")}else d=new Image;c.xd&&(d.crossOrigin=c.xd);this.Da.ga(d,Ak,this.Xd);this.rb[b]=d;d.id=b;d.src=c.src}},this)};
|
|
zk.prototype.Xd=function(a){var b=a.currentTarget;if(b){if("readystatechange"==a.type)if("complete"==b.readyState)a.type="load";else return;"undefined"==typeof b.naturalWidth&&("load"==a.type?(b.naturalWidth=b.width,b.naturalHeight=b.height):(b.naturalWidth=0,b.naturalHeight=0));this.dispatchEvent({type:a.type,target:b});this.ea||Ck(this,b.id)}};zk.prototype.h=function(){delete this.sb;delete this.rb;Ea(this.Da);zk.f.h.call(this)};var Dk=function(a,b){mk.call(this,a,b)};x(Dk,mk);w("ee.layers.ImageOverlay",Dk);Dk.prototype.yd=function(a,b,c,d){return new Ek(a,b,c,d)};var Ek=function(a,b,c,d){sk.call(this,a,b,c,d);this.bc=Fk;this.Od=this.K=this.Rb=null;this.yb=""};x(Ek,sk);
|
|
Ek.prototype.mb=function(){try{var a=Qe(this.me);this.yb=Ne(a);var b="about:invalid#zClosurez"!==this.yb?this.yb:this.Ja}catch(c){b=this.Ja}this.K=new zk;Bk(this.K,this.O.id+"-image",b);this.Od=sc(this.K,Gk,function(a){"load"==a.type?(this.Rb=a.target,sk.prototype.mb.call(this)):this.Bb()},void 0,this);this.K.start()};Ek.prototype.hb=function(){Ek.f.hb.call(this);this.K&&(Bc(this.Od),Ea(this.K))};Ek.prototype.h=function(){Ek.f.h.call(this);this.yb&&URL.revokeObjectURL(this.yb)};
|
|
var Gk=["load","abort","error"],Fk=function(a){a.O.appendChild(a.Rb)};var Hk=function(a){for(var b=arguments[0],c=1;c<arguments.length;c++){var d=arguments[c];if(0==d.lastIndexOf("/",0))b=d;else{var e;(e=""==b)||(e=b.length-1,e=0<=e&&b.indexOf("/",e)==e);b=e?b+d:b+("/"+d)}}return b};var Ik=function(a,b,c,d){y.call(this);this.rd=a;this.oa=b;this.fd=d||"";this.Wb=c};x(Ik,wk);w("ee.layers.CloudStorageTileSource",Ik);Ik.prototype.Td=function(a){if(a.zoom<=this.Wb)a.Ja=this.Ob(a.Ra,a.zoom);else{var b=a.zoom-this.Wb,c=Math.pow(2,b);c=new google.maps.Point(Math.floor(a.Ra.x/c),Math.floor(a.Ra.y/c));a.Ja=this.Ob(c,a.zoom-b);a.bc=Ca(Jk,this.Wb)}var d=u(a.Bb,a);a.Bb=u(function(b){b&&(b.includes("The specified key does not exist.")||b.includes("AccessDenied"))?tk(a,"loaded"):d(b)},a);uk(a)};
|
|
Ik.prototype.Ld=function(){return[this.rd,this.oa,this.Wb,this.fd].join("-")};Ik.prototype.Ob=function(a,b){a=Hk("https://storage.googleapis.com",this.rd,this.oa,String(b),String(a.x),String(a.y));this.fd&&(a+=this.fd);return a};
|
|
var Jk=function(a,b){if(!b.Rb)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.O.ownerDocument.createElement("canvas");d.setAttribute("width",c);d.setAttribute("height",c);b.O.appendChild(d);d=d.getContext("2d");d.imageSmoothingEnabled=!1;d.mozImageSmoothingEnabled=!1;d.webkitImageSmoothingEnabled=!1;d.drawImage(b.Rb,c/a*(b.Ra.x%a),c/a*(b.Ra.y%a),c/a,c/a,0,0,c,c)};var Kk=function(){this.aa=[];this.ca=[]};h=Kk.prototype;h.enqueue=function(a){this.ca.push(a)};h.kb=function(){0==this.aa.length&&(this.aa=this.ca,this.aa.reverse(),this.ca=[]);return this.aa.pop()};h.m=function(){return this.aa.length+this.ca.length};h.isEmpty=function(){return 0==this.aa.length&&0==this.ca.length};h.clear=function(){this.aa=[];this.ca=[]};h.contains=function(a){return Ya(this.aa,a)||Ya(this.ca,a)};
|
|
h.remove=function(a){var b=this.aa;var c=Pa(b,a);0<=c?($a(b,c),b=!0):b=!1;return b||ab(this.ca,a)};h.w=function(){for(var a=[],b=this.aa.length-1;0<=b;--b)a.push(this.aa[b]);var c=this.ca.length;for(b=0;b<c;++b)a.push(this.ca[b]);return a};var Lk=function(a,b){y.call(this);this.Ud=a||0;this.Vb=b||10;if(this.Ud>this.Vb)throw Error("[goog.structs.Pool] Min can not be greater than max");this.fa=new Kk;this.va=new D;this.delay=0;this.Uc=null;this.Gb()};x(Lk,y);Lk.prototype.ob=function(){var a=Da();if(!(null!=this.Uc&&a-this.Uc<this.delay)){for(var b;0<this.fa.m()&&(b=this.fa.kb(),!this.Wc(b));)this.Gb();!b&&this.m()<this.Vb&&(b=this.Bc());b&&(this.Uc=a,this.va.add(b));return b}};var Mk=function(a,b){return a.va.remove(b)?(a.tc(b),!0):!1};
|
|
h=Lk.prototype;h.tc=function(a){this.va.remove(a);this.Wc(a)&&this.m()<this.Vb?this.fa.enqueue(a):this.Kb(a)};h.Gb=function(){for(var a=this.fa;this.m()<this.Ud;)a.enqueue(this.Bc());for(;this.m()>this.Vb&&0<this.fa.m();)this.Kb(a.kb())};h.Bc=function(){return{}};h.Kb=function(a){if("function"==typeof a.da)a.da();else for(var b in a)a[b]=null};h.Wc=function(a){return"function"==typeof a.ze?a.ze():!0};h.contains=function(a){return this.fa.contains(a)||this.va.contains(a)};
|
|
h.m=function(){return this.fa.m()+this.va.m()};h.isEmpty=function(){return this.fa.isEmpty()&&this.va.isEmpty()};h.h=function(){Lk.f.h.call(this);if(0<this.va.m())throw Error("[goog.structs.Pool] Objects not released");delete this.va;for(var a=this.fa;!a.isEmpty();)this.Kb(a.kb());delete this.fa};var Nk=function(a,b){this.Rd=a;this.oc=b};Nk.prototype.getKey=function(){return this.Rd};Nk.prototype.clone=function(){return new Nk(this.Rd,this.oc)};var Ok=function(a){this.W=[];if(a)a:{if(a instanceof Ok){var b=a.ba();a=a.w();if(0>=this.m()){for(var c=this.W,d=0;d<b.length;d++)c.push(new Nk(b[d],a[d]));break a}}else b=Bb(a),a=Ab(a);for(d=0;d<b.length;d++)Pk(this,b[d],a[d])}},Pk=function(a,b,c){var d=a.W;d.push(new Nk(b,c));b=d.length-1;a=a.W;for(c=a[b];0<b;)if(d=b-1>>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};h=Ok.prototype;
|
|
h.remove=function(){var a=this.W,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Za(a);else{a[0]=a.pop();a=0;b=this.W;for(var d=b.length,e=b[a];a<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.oc}};h.w=function(){for(var a=this.W,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].oc);return b};h.ba=function(){for(var a=this.W,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
|
|
h.ib=function(a){return Ta(this.W,function(b){return b.oc==a})};h.ta=function(a){return Ta(this.W,function(b){return b.getKey()==a})};h.clone=function(){return new Ok(this)};h.m=function(){return this.W.length};h.isEmpty=function(){return 0==this.W.length};h.clear=function(){Za(this.W)};var Qk=function(){Ok.call(this)};x(Qk,Ok);Qk.prototype.enqueue=function(a,b){Pk(this,a,b)};Qk.prototype.kb=function(){return this.remove()};var Rk=function(a,b){this.Ad=void 0;this.dc=new Qk;Lk.call(this,a,b)};x(Rk,Lk);h=Rk.prototype;h.ob=function(a,b){if(!a)return(a=Rk.f.ob.call(this))&&this.delay&&(this.Ad=k.setTimeout(u(this.Qb,this),this.delay)),a;this.dc.enqueue(m(b)?b:100,a);this.Qb()};h.Qb=function(){for(var a=this.dc;0<a.m();){var b=this.ob();if(b)a.kb().apply(this,[b]);else break}};h.tc=function(a){Rk.f.tc.call(this,a);this.Qb()};h.Gb=function(){Rk.f.Gb.call(this);this.Qb()};
|
|
h.h=function(){Rk.f.h.call(this);k.clearTimeout(this.Ad);this.dc.clear();this.dc=null};var Sk=function(a,b){y.call(this);this.Vc=a;this.S=b||null};x(Sk,wk);w("ee.layers.EarthEngineTileSource",Sk);Sk.prototype.Td=function(a,b){var c=tc(a,"status-changed",function(){switch(a.getStatus()){case "loaded":var b=a.ef["x-earth-engine-computation-profile"];this.S&&b&&this.S.ue(a.O.id,b);break;case "failed":case "aborted":this.S&&""!==a.O.id&&this.S.Ze(a.O.id),Bc(c)}},void 0,this);a.Ja=this.Ob(a.Ra,a.zoom);var d=u(this.Nc,this,a);Tk().ob(d,b)};
|
|
Sk.prototype.Ld=function(){return this.Vc.mapid+"-"+this.Vc.token};Sk.prototype.Nc=function(a,b){var c=Tk();if(a.ea||"aborted"==a.getStatus())Mk(c,b);else{var d=tc(a,"status-changed",function(){a.dd in vk&&(Bc(d),Mk(c,b))});uk(a)}};Sk.prototype.Ob=function(a,b){a=this.Vc.formatTileUrl(a.x,a.y,b);return this.S&&this.S.isEnabled()?a+"&profiling=1":a};var Tk=function(){Uk||(Uk=new Rk(0,4));return Uk},Uk=null;var Wk=function(){B.call(this);this.jc=new Vk(0,60);this.ab=new C};x(Wk,B);w("ee.MapTileManager",Wk);Wk.Sc=void 0;Wk.Kd=function(){return Wk.Sc?Wk.Sc:Wk.Sc=new Wk};Wk.prototype.send=function(a,b,c,d,e){if(this.ab.get(a))throw Error("[ee.MapTileManager] ID in use");b=new Xk(a,b,d,u(this.ce,this),m(e)?e:1);this.ab.set(a,b);a=u(this.Nc,this,b);this.jc.ob(a,c);return b};Wk.prototype.abort=function(a){if(a=this.ab.get(a))a.Pa||(a.Pa=!0,a.$=new z("abort")),this.ce(a)};
|
|
Wk.prototype.Nc=function(a,b){if(a.K||a.Pa)Yk(this,b);else if(a.setToken(b),b.setActive(!0),b=new zk,a.K=b,!Zk(a))throw Error("Cannot dispatch first request!");};Wk.prototype.ce=function(a){this.ab.remove(a.getId());a.K&&(Yk(this,a.getToken()),a.K.da());a.Oc&&a.Oc(a.$,a.ae)};var Yk=function(a,b){b.setActive(!1);if(!Mk(a.jc,b))throw Error("Object not released");};Wk.prototype.h=function(){Wk.f.h.call(this);this.jc.da();this.jc=null;var a=this.ab;Qa(a.w(),function(a){a.da()});a.clear();this.ab=null};
|
|
var Xk=function(a,b,c,d,e){y.call(this);this.J=a;this.kf=b;this.Te=m(e)?e:1;this.Oc=c;this.Ia=d};x(Xk,y);h=Xk.prototype;h.od=0;h.Pa=!1;h.K=null;h.ne=null;h.$=null;h.ae=null;var $k=["load","abort","error"];h=Xk.prototype;h.getToken=function(){return this.ne};h.setToken=function(a){this.ne=a};h.getId=function(){return this.J};h.getUrl=function(){return this.kf};
|
|
h.Je=function(a){if(this.Pa)this.Ia&&this.Ia(this);else switch(a.type){case "load":this.$=a;this.Ia&&this.Ia(this);break;case "error":case "abort":Zk(this)||(this.$=a,this.Ia&&this.Ia(this))}};h.h=function(){Xk.f.h.call(this);delete this.Oc;delete this.Ia};var Zk=function(a){if(a.od>a.Te)return!1;a.od++;Ck(a.K,a.J);setTimeout(u(a.ff,a),0);return!0};
|
|
Xk.prototype.ff=function(){if(!this.Pa){var a=u(function(a){this.Pa||(Bk(this.K,this.J,a),sc(this.K,$k,u(this.Je,this)),this.K.start())},this),b=this.getUrl();if(og(b).X.ta("profiling")){var c=new E;c.bb="blob";c.ga("complete",u(function(){this.ae=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;if(200<=c.getStatus()&&300>c.getStatus())try{var d=Ne(Qe($f(c)));var e="about:invalid#zClosurez"!==d}catch(f){}a(e?d:b)},this));c.wb("ready",u(c.da,c));c.send(b,"GET")}else a(b)}};
|
|
var al=function(){this.Y=!1};x(al,y);al.prototype.setActive=function(a){this.Y=a};al.prototype.Pd=function(){return this.Y};var Vk=function(a,b){Rk.call(this,a,b)};x(Vk,Rk);Vk.prototype.Bc=function(){return new al};Vk.prototype.Kb=function(a){a.da()};Vk.prototype.Wc=function(a){return!a.ea&&!a.Pd()};var Z=function(a,b,c,d,e){Zc.call(this,a,b,c,d,e);this.minZoom=d.minZoom||0;this.maxZoom=d.maxZoom||20;if(!window.google||!window.google.maps)throw Error("Google Maps API hasn't been initialized.");this.tileSize=d.tileSize||new google.maps.Size(256,256);this.name=d.name;this.jd=new D;this.Xc=1;this.S=e||null};x(Z,Zc);w("ee.MapLayerOverlay",Z);Z.prototype.uc=function(a){return tc(this,"tileevent",a)};Z.prototype.addTileCallback=Z.prototype.uc;Z.prototype.ad=function(a){Bc(a)};
|
|
Z.prototype.removeTileCallback=Z.prototype.ad;Z.prototype.getTile=function(a,b,c){if(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=$c(this,a,b);a=[this.url,b].join("/")+"?token="+this.token;this.S&&this.S.isEnabled()&&(a+="&profiling=1");b=[b,this.xa,this.token].join("/");this.xa+=1;c=Ve("DIV",{id:b});var d=(new Date).getTime()/1E3;this.za.push(b);Wk.Kd().send(b,a,d,u(this.Ie,this,c,b));bk(this);return c};Z.prototype.Kc=function(){return this.za.length};
|
|
Z.prototype.releaseTile=function(a){Wk.Kd().abort(a.id);this.jd.remove(m(a.firstElementChild)?a.firstElementChild:Ze(a.firstChild));""!==a.id&&(this.hd.remove(a.id),this.S&&this.S.Ze(a.id))};Z.prototype.setOpacity=function(a){this.Xc=a;var b=this.jd.Oa();Mc(b,function(b){lk(b,a)})};Z.prototype.getTile=Z.prototype.getTile;Z.prototype.setOpacity=Z.prototype.setOpacity;Z.prototype.releaseTile=Z.prototype.releaseTile;
|
|
Z.prototype.Ie=function(a,b,c,d){"error"==c.type?(ab(this.za,b),this.hd.add(b),this.dispatchEvent(c)):(ab(this.za,b),c.target&&"load"==c.type&&(c=c.target,this.jd.add(c),1!=this.Xc&&lk(c,this.Xc),a.appendChild(c)),bk(this));this.S&&null!==d&&this.S.ue(b,d)};var bl=function(a,b){if(!(this instanceof bl))return new bl(a,b);this.oa=a;this.ia=b};x(bl,J);w("ee.SavedFunction",bl);bl.prototype.encode=function(a){return L("LoadAlgorithmById",this.oa).encode(a)};bl.prototype.L=function(){return this.ia};(function(){var a={},b="ee.Function.prototype.apply ee.ApiFunction._call ee.Geometry.Rectangle ee.Serializer.toReadableCloudApiJSON ee.Filter.eq ee.Image.cat ee.data.authenticateViaOauth ee.batch.Export.video.toCloudStorage ee.data.clearAuthToken ee.Serializer.toJSON ee.ImageCollection.prototype.first ee.data.setCloudApiEnabled ee.Filter.lt ee.data.getAuthClientId ee.Filter.date ee.batch.Export.videoMap.toCloudStorage ee.Number ee.data.getThumbId ee.Image.rgb ee.Collection.prototype.limit ee.Geometry.MultiPoint ee.Serializer.encodeCloudApi ee.data.makeThumbUrl ee.Geometry.Polygon ee.Filter.or ee.ComputedObject.prototype.getInfo ee.Geometry.prototype.toGeoJSON ee.Filter.prototype.not ee.data.setAuthTokenRefresher ee.Image.prototype.expression ee.data.setAuthToken ee.String ee.Filter.gte ee.Filter.gt ee.data.authenticate ee.Geometry.MultiLineString ee.InitState ee.Filter.neq ee.Dictionary ee.batch.Export.image.toDrive ee.Collection.prototype.filter ee.ApiFunction.lookup ee.ApiFunction._apply ee.Element.prototype.set ee.Geometry ee.Image.prototype.getDownloadURL ee.data.makeTableDownloadUrl ee.ImageCollection.prototype.getMap ee.data.getAuthToken ee.Image.prototype.getThumbURL ee.Serializer.toReadableJSON ee.data.getDownloadId ee.Geometry.prototype.serialize ee.ImageCollection.prototype.getInfo ee.data.makeDownloadUrl ee.FeatureCollection.prototype.getDownloadURL ee.Geometry.MultiPolygon ee.Collection.prototype.filterBounds ee.reset ee.data.getAuthScopes ee.Function.prototype.call ee.data.getMapId ee.Image.prototype.select ee.Collection.prototype.sort ee.data.authenticateViaPrivateKey ee.data.getValue ee.data.getTileUrl ee.batch.Export.map.toCloudStorage ee.Feature ee.Serializer.encodeCloudApiPretty ee.batch.Export.image.toAsset ee.data.getInfo ee.Deserializer.fromJSON ee.call ee.Serializer.encode ee.Algorithms ee.Image.prototype.clip ee.Feature.prototype.getMap ee.data.getXsrfToken ee.Filter.metadata ee.Filter.bounds ee.batch.Export.table.toCloudStorage ee.Filter ee.Terrain ee.Image.prototype.getInfo ee.Image ee.Collection.prototype.map ee.batch.Export.video.toDrive ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.select ee.Feature.prototype.getInfo ee.Collection.prototype.filterMetadata ee.ComputedObject.prototype.serialize ee.Deserializer.decode ee.batch.Export.image.toCloudStorage ee.data.getList ee.Collection.prototype.iterate ee.data.getTileBaseUrl ee.Geometry.LineString ee.List ee.Geometry.LinearRing ee.batch.Export.table.toDrive ee.ComputedObject.prototype.evaluate ee.TILE_SIZE ee.Filter.lte ee.Date ee.Collection.prototype.filterDate ee.Image.prototype.getMap ee.Filter.and ee.FeatureCollection.prototype.getInfo ee.batch.Export.table.toAsset ee.Image.prototype.rename ee.data.setApiKey ee.ImageCollection ee.FeatureCollection ee.data.authenticateViaPopup ee.data.getApiBaseUrl ee.Geometry.prototype.toGeoJSONString ee.Geometry.Point ee.Filter.inList ee.apply ee.ImageCollection.prototype.select ee.initialize ee.data.setDeadline ee.data.getTableDownloadId ee.ComputedObject.prototype.aside".split(" "),
|
|
c=[["namedArgs"],["name","var_args"],["coords","opt_proj","opt_geodesic","opt_evenOdd"],["obj"],["name","value"],["var_args"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "),[],["obj"],[],["enable"],["name","value"],[],["start","opt_end"],"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles".split(" "),
|
|
["number"],["params","opt_callback"],["r","g","b"],["max","opt_property","opt_ascending"],["coords","opt_proj"],["obj"],["id"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["var_args"],["opt_callback"],[],[],["refresher"],["expression","opt_map"],"clientId tokenType accessToken expiresIn opt_extraScopes opt_callback opt_updateAuthLibrary".split(" "),["string"],["name","value"],["name","value"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],["coords",
|
|
"opt_proj","opt_geodesic","opt_maxError"],[],["name","value"],["opt_dict"],"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"],["name"],["name","namedArgs"],["var_args"],["geoJson","opt_proj","opt_geodesic","opt_evenOdd"],["params","opt_callback"],["id"],["opt_visParams","opt_callback"],[],["params","opt_callback"],
|
|
["obj"],["params","opt_callback"],[],["opt_callback"],["id"],["opt_format","opt_selectors","opt_filename","opt_callback"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["geometry"],[],[],["var_args"],["params","opt_callback"],["var_args"],["property","opt_ascending"],["privateKey","opt_success","opt_error","opt_extraScopes"],["params","opt_callback"],["mapid","x","y","z"],"image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey".split(" "),
|
|
["geometry","opt_properties"],["obj"],"image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels".split(" "),["id","opt_callback"],["json"],["func","var_args"],["obj","opt_isCompound"],[],["geometry"],["opt_visParams","opt_callback"],[],["name","operator","value"],["geometry","opt_errorMargin"],"collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors".split(" "),["opt_filter"],[],["opt_callback"],
|
|
["opt_args"],["algorithm","opt_dropNulls"],"collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "),["opt_visParams","opt_callback"],["propertySelectors","opt_newProperties","opt_retainGeometry"],["opt_callback"],["name","operator","value"],[],["json"],"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(" "),
|
|
["params","opt_callback"],["algorithm","opt_first"],[],["coords","opt_proj","opt_geodesic","opt_maxError"],["list"],["coords","opt_proj","opt_geodesic","opt_maxError"],"collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors".split(" "),["callback"],[],["name","value"],["date","opt_tz"],["start","opt_end"],["opt_visParams","opt_callback"],["var_args"],["opt_callback"],["collection","opt_description","opt_assetId"],["var_args"],["apiKey"],["args"],["args","opt_column"],
|
|
["opt_success","opt_error"],[],[],["coords","opt_proj"],["opt_leftField","opt_rightValue","opt_rightField","opt_leftValue"],["func","namedArgs"],["selectors","opt_names"],["opt_baseurl","opt_tileurl","opt_successCallback","opt_errorCallback","opt_xsrfToken"],["milliseconds"],["params","opt_callback"],["func","var_args"]];[J.prototype.apply,L,ji,Id,ui,Qi,yg,lj,Kg,Bd,Y.prototype.first,Gg,wi,Mg,Ci,nj,rj,jh,Pi,T.prototype.limit,ii,Gd,kh,ni,Bi,I.prototype.C,Q.prototype.ic,S.prototype.Wa,Ig,V.prototype.expression,
|
|
Hg,uj,xi,yi,zg,mi,Uj,vi,Hj,gj,T.prototype.filter,Nh,Oh,P.prototype.set,Q,V.prototype.Ca,oh,Y.prototype.getMap,Lg,V.prototype.Lc,Dd,lh,Q.prototype.D,Y.prototype.C,mh,X.prototype.Ca,oi,T.prototype.Ed,Tj,Ng,J.prototype.call,fh,V.prototype.select,T.prototype.sort,Cg,hh,gh,hj,U,Hd,bj,wh,Fj,Vj,Ad,Sj,V.prototype.clip,U.prototype.getMap,ch,Fi,Ei,ij,S,Kj,V.prototype.C,V,T.prototype.map,mj,X.prototype.getMap,X.prototype.select,U.prototype.C,T.prototype.Hc,I.prototype.D,Ej,ej,xh,T.prototype.Qd,bh,ki,Ri,li,jj,
|
|
I.prototype.evaluate,256,zi,Bj,T.prototype.Gc,V.prototype.getMap,Ai,X.prototype.C,kj,V.prototype.de,Eg,Y,X,xg,ah,Q.prototype.kd,fi,Di,Wj,Y.prototype.select,Qj,Zg,nh,I.prototype.ld].forEach(function(d,e){d&&(a[d.toString()]={name:b[e],paramNames:c[e]})});k.EXPORTED_FN_INFO=a})();}).call(this);
|