mirror of
https://github.com/google/earthengine-api.git
synced 2025-12-08 19:26:12 +00:00
266 lines
138 KiB
JavaScript
266 lines
138 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"==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||ha});
|
|
var ia=function(){ia=function(){};da.Symbol||(da.Symbol=ja)},ja=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(),la=function(){ia();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 ka(aa(this))}});la=function(){}},ka=function(a){la();a={next:a};a[da.Symbol.iterator]=function(){return this};return a};
|
|
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("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(P){return!1}}())return a;var e="$jscomp_hidden_"+Math.random();d("freeze");d("preventExtensions");d("seal");
|
|
var f=0,g=function(a){this.I=(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.I]=b;return this};g.prototype.get=function(a){return fa(a,e)?a[e][this.I]:void 0};g.prototype.has=function(a){return fa(a,e)&&fa(a[e],this.I)};g.prototype["delete"]=function(a){return fa(a,e)&&fa(a[e],this.I)?delete a[e][this.I]:!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(Y){return!1}}())return a;la();var b=new WeakMap,c=function(a){this.Za={};
|
|
this.L=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.Za[c.id]=[]);c.H?c.H.value=b:(c.H={next:this.L,ia:this.L.ia,head:this.L,key:a,value:b},c.list.push(c.H),this.L.ia.next=c.H,this.L.ia=c.H,this.size++);return this};c.prototype["delete"]=function(a){a=d(this,a);return a.H&&a.list?(a.list.splice(a.index,1),a.list.length||delete this.Za[a.id],a.H.ia.next=a.H.next,a.H.next.ia=
|
|
a.H.ia,a.H.head=null,this.size--,!0):!1};c.prototype.clear=function(){this.Za={};this.L=this.L.ia=f();this.size=0};c.prototype.has=function(a){return!!d(this,a).H};c.prototype.get=function(a){return(a=d(this,a).H)&&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.Za[d];if(e&&fa(a.Za,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,H:f}}return{id:d,list:e,index:-1,H:void 0}},e=function(a,b){var c=a.L;return ka(function(){if(c){for(;c.head!=a.L;)c=c.ia;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.ia=a.next=a.head=a},g=0;return c});
|
|
var ma=ma||{},k=this,m=function(a){return void 0!==a},n=function(a){return"string"==typeof a},na=function(a){return"number"==typeof a},oa=/^[\w+/_-]+[=]{0,2}$/,pa=null,qa=function(){},ra=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},ta=function(a){return null!=a},p=function(a){return"array"==ra(a)},va=function(a){var b=ra(a);return"array"==b||"object"==b&&"number"==typeof a.length},q=function(a){return"function"==ra(a)},r=function(a){var b=typeof a;
|
|
return"object"==b&&null!=a||"function"==b},wa="closure_uid_"+(1E9*Math.random()>>>0),xa=0,ya=function(a,b,c){return a.call.apply(a.bind,arguments)},za=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)}},t=function(a,b,c){t=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?
|
|
ya:za;return t.apply(null,arguments)},Aa=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)}},Ba=Date.now||function(){return+new Date},u=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]={}},w=function(a,b){function c(){}c.prototype=b.prototype;a.h=
|
|
b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Re=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 x=function(){this.ba=this.ba;this.Mb=this.Mb};x.prototype.ba=!1;x.prototype.aa=function(){this.ba||(this.ba=!0,this.f())};x.prototype.f=function(){if(this.Mb)for(;this.Mb.length;)this.Mb.shift()()};var Ca=function(a){a&&"function"==typeof a.aa&&a.aa()};var y=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.Aa=!1;this.Sd=!0};y.prototype.stopPropagation=function(){this.Aa=!0};y.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Sd=!1};var z=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,z);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};w(z,Error);z.prototype.name="CustomError";var Da;var Ea=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");z.call(this,c+a[d])};w(Ea,z);Ea.prototype.name="AssertionError";
|
|
var Fa=function(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var f=d}else a&&(e+=": "+a,f=b);throw new Ea(""+e,f||[]);},A=function(a,b,c){a||Fa("",null,b,Array.prototype.slice.call(arguments,2));return a},Ga=function(a,b){throw new Ea("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},Ha=function(a,b,c){na(a)||Fa("Expected number but got %s: %s.",[ra(a),a],b,Array.prototype.slice.call(arguments,2));return a},Ia=function(a,b,c){n(a)||Fa("Expected string but got %s: %s.",[ra(a),
|
|
a],b,Array.prototype.slice.call(arguments,2))},Ja=function(a,b,c){q(a)||Fa("Expected function but got %s: %s.",[ra(a),a],b,Array.prototype.slice.call(arguments,2))};var Ka=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},La=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},Ma=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)},Na=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},Oa=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},Pa=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},Qa=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},Ra=function(a,b){var c=0;Ma(a,function(a,e,f){b.call(void 0,a,e,f)&&++c},void 0);return c},Ta=function(a){a:{var b=Sa;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]},Ua=function(a,b){return 0<=Ka(a,b)},Va=function(a){if(!p(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},Xa=
|
|
function(a,b){b=Ka(a,b);var c;(c=0<=b)&&Wa(a,b);return c},Wa=function(a,b){A(null!=a.length);Array.prototype.splice.call(a,b,1)},Ya=function(a){return Array.prototype.concat.apply([],arguments)},Za=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[]},$a=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(va(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)}},ab=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)},bb=function(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++];var f=e;f=r(f)?"o"+(f[wa]||(f[wa]=++xa)):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};var cb=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")},db=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},lb=function(a){if(!eb.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(fb,"&"));-1!=a.indexOf("<")&&(a=a.replace(gb,"<"));-1!=a.indexOf(">")&&(a=a.replace(hb,">"));-1!=a.indexOf('"')&&(a=a.replace(ib,"""));-1!=
|
|
a.indexOf("'")&&(a=a.replace(jb,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(kb,"�"));return a},fb=/&/g,gb=/</g,hb=/>/g,ib=/"/g,jb=/'/g,kb=/\x00/g,eb=/[\x00&<>"']/,mb=function(a,b){return a<b?-1:a>b?1:0};var nb;a:{var ob=k.navigator;if(ob){var pb=ob.userAgent;if(pb){nb=pb;break a}}nb=""}var qb=function(a){return-1!=nb.indexOf(a)};var rb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},sb=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},tb=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d},ub=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},vb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},wb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},xb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},zb=function(a){var b=
|
|
yb,c;for(c in b)if(a.call(void 0,b[c],c,b))return c},Ab=function(a){for(var b in a)return!1;return!0},Bb=function(a,b){b in a&&delete a[b]},Cb=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Db=function(a){var b=ra(a);if("object"==b||"array"==b){if(q(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=Db(a[c]);return b}return a},Eb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Fb=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<Eb.length;f++)c=Eb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Gb=function(a){Gb[" "](a);return a};Gb[" "]=qa;var Ib=function(a,b){var c=Hb;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var Jb=qb("Opera"),Kb=qb("Trident")||qb("MSIE"),Lb=qb("Edge"),Mb=qb("Gecko")&&!(-1!=nb.toLowerCase().indexOf("webkit")&&!qb("Edge"))&&!(qb("Trident")||qb("MSIE"))&&!qb("Edge"),Nb=-1!=nb.toLowerCase().indexOf("webkit")&&!qb("Edge"),Ob=function(){var a=k.document;return a?a.documentMode:void 0},Pb;
|
|
a:{var Qb="",Rb=function(){var a=nb;if(Mb)return/rv:([^\);]+)(\)|;)/.exec(a);if(Lb)return/Edge\/([\d\.]+)/.exec(a);if(Kb)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Nb)return/WebKit\/(\S+)/.exec(a);if(Jb)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Rb&&(Qb=Rb?Rb[1]:"");if(Kb){var Sb=Ob();if(null!=Sb&&Sb>parseFloat(Qb)){Pb=String(Sb);break a}}Pb=Qb}
|
|
var Tb=Pb,Hb={},Ub=function(a){return Ib(a,function(){for(var b=0,c=db(String(Tb)).split("."),d=db(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=mb(0==g[1].length?0:parseInt(g[1],10),0==l[1].length?0:parseInt(l[1],10))||mb(0==g[2].length,0==l[2].length)||mb(g[2],l[2]);g=g[3];l=l[3]}while(0==b)}return 0<=b})},Vb;var Wb=k.document;
|
|
Vb=Wb&&Kb?Ob()||("CSS1Compat"==Wb.compatMode?parseInt(Tb,10):5):void 0;var Xb=Object.freeze||function(a){return a};var Yb=!Kb||9<=Number(Vb),Zb=Kb&&!Ub("9"),$b=function(){if(!k.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{k.addEventListener("test",qa,b),k.removeEventListener("test",qa,b)}catch(c){}return a}();var bc=function(a,b){y.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.X=null;if(a){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;if(b=a.relatedTarget){if(Mb){a:{try{Gb(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;null===d?(this.offsetX=Nb||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=Nb||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.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.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:ac[a.pointerType]||"";this.state=a.state;this.X=a;a.defaultPrevented&&this.preventDefault()}};w(bc,y);var ac=Xb({2:"touch",3:"pen",4:"mouse"});
|
|
bc.prototype.stopPropagation=function(){bc.h.stopPropagation.call(this);this.X.stopPropagation?this.X.stopPropagation():this.X.cancelBubble=!0};bc.prototype.preventDefault=function(){bc.h.preventDefault.call(this);var a=this.X;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Zb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var cc="closure_listenable_"+(1E6*Math.random()|0),dc=function(a){return!(!a||!a[cc])},ec=0;var fc=function(a,b,c,d,e){this.listener=a;this.Pb=null;this.src=b;this.type=c;this.capture=!!d;this.ga=e;this.key=++ec;this.Qa=this.wb=!1},gc=function(a){a.Qa=!0;a.listener=null;a.Pb=null;a.src=null;a.ga=null};var hc=function(a){this.src=a;this.F={};this.rb=0};hc.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.F[f];a||(a=this.F[f]=[],this.rb++);var g=ic(a,b,d,e);-1<g?(b=a[g],c||(b.wb=!1)):(b=new fc(b,this.src,f,!!d,e),b.wb=c,a.push(b));return b};hc.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.F))return!1;var e=this.F[a];b=ic(e,b,c,d);return-1<b?(gc(e[b]),Wa(e,b),0==e.length&&(delete this.F[a],this.rb--),!0):!1};
|
|
var jc=function(a,b){var c=b.type;c in a.F&&Xa(a.F[c],b)&&(gc(b),0==a.F[c].length&&(delete a.F[c],a.rb--))};hc.prototype.nb=function(a){a=a&&a.toString();var b=0,c;for(c in this.F)if(!a||c==a){for(var d=this.F[c],e=0;e<d.length;e++)++b,gc(d[e]);delete this.F[c];this.rb--}};hc.prototype.bb=function(a,b,c,d){a=this.F[a.toString()];var e=-1;a&&(e=ic(a,b,c,d));return-1<e?a[e]:null};
|
|
hc.prototype.hasListener=function(a,b){var c=m(a),d=c?a.toString():"",e=m(b);return ub(this.F,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 ic=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Qa&&f.listener==b&&f.capture==!!c&&f.ga==d)return e}return-1};var kc="closure_lm_"+(1E6*Math.random()|0),lc={},mc=0,oc=function(a,b,c,d,e){if(d&&d.once)return nc(a,b,c,d,e);if(p(b)){for(var f=0;f<b.length;f++)oc(a,b[f],c,d,e);return null}c=pc(c);return dc(a)?a.da(b,c,r(d)?!!d.capture:!!d,e):qc(a,b,c,!1,d,e)},qc=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=r(e)?!!e.capture:!!e,l=rc(a);l||(a[kc]=l=new hc(a));c=l.add(b,c,d,g,f);if(c.Pb)return c;d=sc();c.Pb=d;d.src=a;d.listener=c;if(a.addEventListener)$b||(e=g),void 0===e&&(e=!1),a.addEventListener(b.toString(),
|
|
d,e);else if(a.attachEvent)a.attachEvent(tc(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.");mc++;return c},sc=function(){var a=uc,b=Yb?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},nc=function(a,b,c,d,e){if(p(b)){for(var f=0;f<b.length;f++)nc(a,b[f],c,d,e);return null}c=pc(c);return dc(a)?
|
|
a.kb(b,c,r(d)?!!d.capture:!!d,e):qc(a,b,c,!0,d,e)},vc=function(a,b,c,d,e){if(p(b))for(var f=0;f<b.length;f++)vc(a,b[f],c,d,e);else d=r(d)?!!d.capture:!!d,c=pc(c),dc(a)?a.ac(b,c,d,e):a&&(a=rc(a))&&(b=a.bb(b,c,d,e))&&wc(b)},wc=function(a){if(!na(a)&&a&&!a.Qa){var b=a.src;if(dc(b))jc(b.W,a);else{var c=a.type,d=a.Pb;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(tc(c),d):b.addListener&&b.removeListener&&b.removeListener(d);mc--;(c=rc(b))?(jc(c,a),0==c.rb&&(c.src=
|
|
null,b[kc]=null)):gc(a)}}},tc=function(a){return a in lc?lc[a]:lc[a]="on"+a},yc=function(a,b,c,d){var e=!0;if(a=rc(a))if(b=a.F[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.Qa&&(f=xc(f,d),e=e&&!1!==f)}return e},xc=function(a,b){var c=a.listener,d=a.ga||a.src;a.wb&&wc(a);return c.call(d,b)},uc=function(a,b){if(a.Qa)return!0;if(!Yb){if(!b)a:{b=["window","event"];for(var c=k,d=0;d<b.length;d++)if(c=c[b[d]],null==c){b=null;break a}b=c}d=b;b=new bc(d,this);c=!0;if(!(0>
|
|
d.keyCode||void 0!=d.returnValue)){a:{var e=!1;if(0==d.keyCode)try{d.keyCode=-1;break a}catch(g){e=!0}if(e||void 0==d.returnValue)d.returnValue=!0}d=[];for(e=b.currentTarget;e;e=e.parentNode)d.push(e);a=a.type;for(e=d.length-1;!b.Aa&&0<=e;e--){b.currentTarget=d[e];var f=yc(d[e],a,!0,b);c=c&&f}for(e=0;!b.Aa&&e<d.length;e++)b.currentTarget=d[e],f=yc(d[e],a,!1,b),c=c&&f}return c}return xc(a,new bc(b,this))},rc=function(a){a=a[kc];return a instanceof hc?a:null},zc="__closure_events_fn_"+(1E9*Math.random()>>>
|
|
0),pc=function(a){A(a,"Listener can not be null.");if(q(a))return a;A(a.handleEvent,"An object listener must have handleEvent method.");a[zc]||(a[zc]=function(b){return a.handleEvent(b)});return a[zc]};var B=function(){x.call(this);this.W=new hc(this);this.be=this;this.Oc=null};w(B,x);B.prototype[cc]=!0;h=B.prototype;h.addEventListener=function(a,b,c,d){oc(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){vc(this,a,b,c,d)};
|
|
h.dispatchEvent=function(a){Ac(this);var b=this.Oc;if(b){var c=[];for(var d=1;b;b=b.Oc)c.push(b),A(1E3>++d,"infinite loop")}b=this.be;d=a.type||a;if(n(a))a=new y(a,b);else if(a instanceof y)a.target=a.target||b;else{var e=a;a=new y(d,b);Fb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.Aa&&0<=f;f--){var g=a.currentTarget=c[f];e=Bc(g,d,!0,a)&&e}a.Aa||(g=a.currentTarget=b,e=Bc(g,d,!0,a)&&e,a.Aa||(e=Bc(g,d,!1,a)&&e));if(c)for(f=0;!a.Aa&&f<c.length;f++)g=a.currentTarget=c[f],e=Bc(g,d,!1,a)&&e;return e};
|
|
h.f=function(){B.h.f.call(this);this.W&&this.W.nb(void 0);this.Oc=null};h.da=function(a,b,c,d){Ac(this);return this.W.add(String(a),b,!1,c,d)};h.kb=function(a,b,c,d){return this.W.add(String(a),b,!0,c,d)};h.ac=function(a,b,c,d){this.W.remove(String(a),b,c,d)};var Bc=function(a,b,c,d){b=a.W.F[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.Qa&&g.capture==c){var l=g.listener,v=g.ga||g.src;g.wb&&jc(a.W,g);e=!1!==l.call(v,d)&&e}}return e&&0!=d.Sd};
|
|
B.prototype.bb=function(a,b,c,d){return this.W.bb(String(a),b,c,d)};B.prototype.hasListener=function(a,b){return this.W.hasListener(m(a)?String(a):void 0,b)};var Ac=function(a){A(a.W,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var Cc=function(a){return a};var Dc="StopIteration"in k?k.StopIteration:{message:"StopIteration",stack:""},Ec=function(){};Ec.prototype.next=function(){throw Dc;};Ec.prototype.Ga=function(){return this};
|
|
var Fc=function(a){if(a instanceof Ec)return a;if("function"==typeof a.Ga)return a.Ga(!1);if(va(a)){var b=0,c=new Ec;c.next=function(){for(;;){if(b>=a.length)throw Dc;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},Gc=function(a,b){if(va(a))try{Ma(a,b,void 0)}catch(c){if(c!==Dc)throw c;}else{a=Fc(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==Dc)throw c;}}};var C=function(a,b){this.s={};this.i=[];this.sb=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(){Hc(this);for(var a=[],b=0;b<this.i.length;b++)a.push(this.s[this.i[b]]);return a};h.Z=function(){Hc(this);return this.i.concat()};h.ma=function(a){return Ic(this.s,a)};
|
|
h.Ya=function(a){for(var b=0;b<this.i.length;b++){var c=this.i[b];if(Ic(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||Jc;Hc(this);for(var c,d=0;c=this.i[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};var Jc=function(a,b){return a===b};C.prototype.isEmpty=function(){return 0==this.l};C.prototype.clear=function(){this.s={};this.sb=this.l=this.i.length=0};
|
|
C.prototype.remove=function(a){return Ic(this.s,a)?(delete this.s[a],this.l--,this.sb++,this.i.length>2*this.l&&Hc(this),!0):!1};var Hc=function(a){if(a.l!=a.i.length){for(var b=0,c=0;b<a.i.length;){var d=a.i[b];Ic(a.s,d)&&(a.i[c++]=d);b++}a.i.length=c}if(a.l!=a.i.length){var e={};for(c=b=0;b<a.i.length;)d=a.i[b],Ic(e,d)||(a.i[c++]=d,e[d]=1),b++;a.i.length=c}};h=C.prototype;h.get=function(a,b){return Ic(this.s,a)?this.s[a]:b};
|
|
h.set=function(a,b){Ic(this.s,a)||(this.l++,this.i.push(a),this.sb++);this.s[a]=b};h.addAll=function(a){if(a instanceof C)for(var b=a.Z(),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.Z(),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.Ga=function(a){Hc(this);var b=0,c=this.sb,d=this,e=new Ec;e.next=function(){if(c!=d.sb)throw Error("The map has changed since the iterator was created");if(b>=d.i.length)throw Dc;var e=d.i[b++];return a?e:d.s[e]};return e};var Ic=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Kc=function(a){if(a.m&&"function"==typeof a.m)a=a.m();else if(va(a)||n(a))a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},Lc=function(a){if(a.w&&"function"==typeof a.w)return a.w();if(n(a))return a.split("");if(va(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return vb(a)},Mc=function(a){if(a.Z&&"function"==typeof a.Z)return a.Z();if(!a.w||"function"!=typeof a.w){if(va(a)||n(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return wb(a)}},Nc=function(a,b,c){if(a.forEach&&
|
|
"function"==typeof a.forEach)a.forEach(b,c);else if(va(a)||n(a))Ma(a,b,c);else for(var d=Mc(a),e=Lc(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)},Oc=function(a,b){if("function"==typeof a.every)return a.every(b,void 0);if(va(a)||n(a))return Qa(a,b,void 0);for(var c=Mc(a),d=Lc(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)},Pc=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[wa]||(a[wa]=++xa)):b.substr(0,1)+a};h=D.prototype;h.m=function(){return this.s.m()};h.add=function(a){this.s.set(Pc(a),a)};h.addAll=function(a){a=Lc(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])};h.nb=function(a){a=Lc(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};h.remove=function(a){return this.s.remove(Pc(a))};h.clear=function(){this.s.clear()};h.isEmpty=function(){return this.s.isEmpty()};
|
|
h.contains=function(a){return this.s.ma(Pc(a))};var Qc=function(a,b){var c=new D;b=Lc(b);for(var d=0;d<b.length;d++){var e=b[d];a.contains(e)&&c.add(e)}return c},Rc=function(a,b){a=a.clone();a.nb(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()==Kc(a)&&Sc(this,a)};
|
|
var Sc=function(a,b){var c=Kc(b);if(a.m()>c)return!1;!(b instanceof D)&&5<c&&(b=new D(b));return Oc(a,function(a){var c=b;return c.contains&&"function"==typeof c.contains?c.contains(a):c.Ya&&"function"==typeof c.Ya?c.Ya(a):va(c)||n(c)?Ua(c,a):xb(c,a)})};D.prototype.Ga=function(){return this.s.Ga(!1)};var Tc=function(a,b,c){B.call(this);this.ye=b;this.token=c;this.ta=[];this.Yc=new D;this.ra=0;this.url=a};w(Tc,B);u("ee.AbstractOverlay",Tc);var Uc=function(a,b,c){var d=1<<c,e=b.x%d;0>e&&(e+=d);return[a.ye,c,e,b.y].join("/")};Tc.prototype.yc=function(){return this.ta.length};var Vc=function(a){y.call(this,"tileevent");this.count=a};w(Vc,y);var Wc=function(a,b){this.ve=100;this.me=a;this.Ge=b;this.Lb=0;this.L=null};Wc.prototype.get=function(){if(0<this.Lb){this.Lb--;var a=this.L;this.L=a.next;a.next=null}else a=this.me();return a};Wc.prototype.put=function(a){this.Ge(a);this.Lb<this.ve&&(this.Lb++,a.next=this.L,this.L=a)};var Xc=function(a){k.setTimeout(function(){throw a;},0)},Yc,Zc=function(){var a=k.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!qb("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=t(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&&!qb("Trident")&&!qb("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(m(c.next)){c=c.next;var a=c.kd;c.kd=null;a()}};return function(a){d.next={kd: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 $c=function(){this.dc=this.Fa=null},bd=new Wc(function(){return new ad},function(a){a.reset()});$c.prototype.add=function(a,b){var c=bd.get();c.set(a,b);this.dc?this.dc.next=c:(A(!this.Fa),this.Fa=c);this.dc=c};$c.prototype.remove=function(){var a=null;this.Fa&&(a=this.Fa,this.Fa=this.Fa.next,this.Fa||(this.dc=null),a.next=null);return a};var ad=function(){this.next=this.scope=this.xc=null};ad.prototype.set=function(a,b){this.xc=a;this.scope=b;this.next=null};
|
|
ad.prototype.reset=function(){this.next=this.scope=this.xc=null};var gd=function(a,b){cd||dd();ed||(cd(),ed=!0);fd.add(a,b)},cd,dd=function(){if(k.Promise&&k.Promise.resolve){var a=k.Promise.resolve(void 0);cd=function(){a.then(hd)}}else cd=function(){var a=hd;!q(k.setImmediate)||k.Window&&k.Window.prototype&&!qb("Edge")&&k.Window.prototype.setImmediate==k.setImmediate?(Yc||(Yc=Zc()),Yc(a)):k.setImmediate(a)}},ed=!1,fd=new $c,hd=function(){for(var a;a=fd.remove();){try{a.xc.call(a.scope)}catch(b){Xc(b)}bd.put(a)}ed=!1};var id=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0},jd=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var md=function(a,b){this.R=0;this.ja=void 0;this.Ia=this.ea=this.u=null;this.Eb=this.sc=!1;if(a!=qa)try{var c=this;a.call(b,function(a){kd(c,2,a)},function(a){if(!(a instanceof ld))try{if(a instanceof Error)throw a;throw Error("Promise rejected.");}catch(e){}kd(c,3,a)})}catch(d){kd(this,3,d)}},nd=function(){this.next=this.context=this.Oa=this.za=this.ua=null;this.vb=!1};nd.prototype.reset=function(){this.context=this.Oa=this.za=this.ua=null;this.vb=!1};
|
|
var od=new Wc(function(){return new nd},function(a){a.reset()}),pd=function(a,b,c){var d=od.get();d.za=a;d.Oa=b;d.context=c;return d};md.prototype.then=function(a,b,c){null!=a&&Ja(a,"opt_onFulfilled should be a function.");null!=b&&Ja(b,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");return qd(this,q(a)?a:null,q(b)?b:null,c)};id(md);md.prototype.cancel=function(a){0==this.R&&gd(function(){var b=new ld(a);rd(this,b)},this)};
|
|
var rd=function(a,b){if(0==a.R)if(a.u){var c=a.u;if(c.ea){for(var d=0,e=null,f=null,g=c.ea;g&&(g.vb||(d++,g.ua==a&&(e=g),!(e&&1<d)));g=g.next)e||(f=g);e&&(0==c.R&&1==d?rd(c,b):(f?(d=f,A(c.ea),A(null!=d),d.next==c.Ia&&(c.Ia=d),d.next=d.next.next):sd(c),td(c,e,3,b)))}a.u=null}else kd(a,3,b)},vd=function(a,b){a.ea||2!=a.R&&3!=a.R||ud(a);A(null!=b.za);a.Ia?a.Ia.next=b:a.ea=b;a.Ia=b},qd=function(a,b,c,d){var e=pd(null,null,null);e.ua=new md(function(a,g){e.za=b?function(c){try{var e=b.call(d,c);a(e)}catch(R){g(R)}}:
|
|
a;e.Oa=c?function(b){try{var e=c.call(d,b);!m(e)&&b instanceof ld?g(b):a(e)}catch(R){g(R)}}:g});e.ua.u=a;vd(a,e);return e.ua};md.prototype.Ke=function(a){A(1==this.R);this.R=0;kd(this,2,a)};md.prototype.Le=function(a){A(1==this.R);this.R=0;kd(this,3,a)};
|
|
var kd=function(a,b,c){if(0==a.R){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.R=1;a:{var d=c,e=a.Ke,f=a.Le;if(d instanceof md){null!=e&&Ja(e,"opt_onFulfilled should be a function.");null!=f&&Ja(f,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");vd(d,pd(e||qa,f||null,a));var g=!0}else if(jd(d))d.then(e,f,a),g=!0;else{if(r(d))try{var l=d.then;if(q(l)){wd(d,l,e,f,a);g=!0;break a}}catch(v){f.call(a,v);g=!0;break a}g=!1}}g||
|
|
(a.ja=c,a.R=b,a.u=null,ud(a),3!=b||c instanceof ld||xd(a,c))}},wd=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)}},ud=function(a){a.sc||(a.sc=!0,gd(a.oe,a))},sd=function(a){var b=null;a.ea&&(b=a.ea,a.ea=b.next,b.next=null);a.ea||(a.Ia=null);null!=b&&A(null!=b.za);return b};md.prototype.oe=function(){for(var a;a=sd(this);)td(this,a,this.R,this.ja);this.sc=!1};
|
|
var td=function(a,b,c,d){if(3==c&&b.Oa&&!b.vb)for(;a&&a.Eb;a=a.u)a.Eb=!1;if(b.ua)b.ua.u=null,yd(b,c,d);else try{b.vb?b.za.call(b.context):yd(b,c,d)}catch(e){zd.call(null,e)}od.put(b)},yd=function(a,b,c){2==b?a.za.call(a.context,c):a.Oa&&a.Oa.call(a.context,c)},xd=function(a,b){a.Eb=!0;gd(function(){a.Eb&&zd.call(null,b)})},zd=Xc,ld=function(a){z.call(this,a)};w(ld,z);ld.prototype.name="cancel";var Ad=function(a,b,c){if(q(a))c&&(a=t(a,c));else if(a&&"function"==typeof a.handleEvent)a=t(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:k.setTimeout(a,b||0)};var Bd=function(a,b,c){x.call(this);this.we=null!=c?t(a,c):a;this.te=b;this.he=t(this.Ce,this);this.ic=[]};w(Bd,x);h=Bd.prototype;h.Ua=!1;h.mb=0;h.Da=null;h.wc=function(a){this.ic=arguments;this.Da||this.mb?this.Ua=!0:Cd(this)};h.stop=function(){this.Da&&(k.clearTimeout(this.Da),this.Da=null,this.Ua=!1,this.ic=[])};h.pause=function(){this.mb++};h.resume=function(){this.mb--;this.mb||!this.Ua||this.Da||(this.Ua=!1,Cd(this))};h.f=function(){Bd.h.f.call(this);this.stop()};
|
|
h.Ce=function(){this.Da=null;this.Ua&&!this.mb&&(this.Ua=!1,Cd(this))};var Cd=function(a){a.Da=Ad(a.he,a.te);a.we.apply(null,a.ic)};var Fd=function(a,b){this.Uc=a===Dd&&b||"";this.$d=Ed};Fd.prototype.Dc=!0;Fd.prototype.Ac=function(){return this.Uc};Fd.prototype.toString=function(){return"Const{"+this.Uc+"}"};var Gd=function(a){if(a instanceof Fd&&a.constructor===Fd&&a.$d===Ed)return a.Uc;Ga("expected object of type Const, got '"+a+"'");return"type_error:Const"},Ed={},Dd={};var Id=function(){this.Ob="";this.ae=Hd};Id.prototype.Dc=!0;Id.prototype.Ac=function(){return this.Ob};Id.prototype.toString=function(){return"TrustedResourceUrl{"+this.Ob+"}"};
|
|
var Jd=function(a){if(a instanceof Id&&a.constructor===Id&&a.ae===Hd)return a.Ob;Ga("expected object of type TrustedResourceUrl, got '"+a+"' of type "+ra(a));return"type_error:TrustedResourceUrl"},Od=function(a){var b=Gd(Kd);if(!Ld.test(b))throw Error("Invalid TrustedResourceUrl format: "+b);var c=b.replace(Md,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 Fd?Gd(c):encodeURIComponent(String(c))});return Nd(c)},Md=/%{(\w+)}/g,Ld=/^(?:https:)?\/\/[0-9a-z.:[\]-]+\/|^\/[^\/\\]|^about:blank#/i,Hd={},Nd=function(a){var b=new Id;b.Ob=a;return b};var Qd=function(a){return(new Pd(void 0)).A(a)},Pd=function(a){this.Rb=a};Pd.prototype.A=function(a){var b=[];Rd(this,a,b);return b.join("")};
|
|
var Rd=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(p(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],Rd(a,a.Rb?a.Rb.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),Sd(d,c),c.push(":"),Rd(a,a.Rb?a.Rb.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":Sd(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);}}},Td={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Ud=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,Sd=function(a,b){b.push('"',a.replace(Ud,function(a){var b=Td[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),
|
|
Td[a]=b);return b}),'"')};var Vd=!Kb||9<=Number(Vb),Wd=!Mb&&!Kb||Kb&&9<=Number(Vb)||Mb&&Ub("1.9.1");var Yd=function(){this.Nb="";this.Zd=Xd};Yd.prototype.Dc=!0;Yd.prototype.Ac=function(){return this.Nb};Yd.prototype.toString=function(){return"SafeUrl{"+this.Nb+"}"};
|
|
var Zd=/^(?: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,ae=function(a){if(Zd.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 $d(a)},
|
|
Xd={},$d=function(a){var b=new Yd;b.Nb=a;return b};$d("about:blank");var be=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=Jd(b);if(null===pa){a:{b=k.document;if((b=b.querySelector&&b.querySelector("script[nonce]"))&&(b=b.nonce||b.getAttribute("nonce"))&&oa.test(b))break a;b=null}pa=b||""}(b=pa)&&a.setAttribute("nonce",b)};var de=function(a,b){rb(b,function(b,d){b&&"object"==typeof b&&b.Dc&&(b=b.Ac());"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:ce.hasOwnProperty(d)?a.setAttribute(ce[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})},ce={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"},ge=function(a,b,c){return fe(document,arguments)},fe=function(a,b){var c=String(b[0]),d=b[1];if(!Vd&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',lb(d.name),'"');if(d.type){c.push(' type="',lb(d.type),'"');var e={};Fb(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(n(d)?c.className=d:p(d)?c.className=d.join(" "):de(c,d));2<b.length&&he(a,c,b,2);return c},he=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];!va(f)||r(f)&&0<f.nodeType?e(f):Ma(ie(f)?Za(f):f,e)}},je=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},ke=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a},le=function(a){A(a,"Node cannot be null or undefined.");return 9==a.nodeType?a:a.ownerDocument||a.document},ie=function(a){if(a&&"number"==typeof a.length){if(r(a))return"function"==typeof a.item||"string"==typeof a.item;if(q(a))return"function"==typeof a.item}return!1},me=function(a){this.yb=a||k.document||
|
|
document};h=me.prototype;h.getElementsByTagName=function(a,b){return(b||this.yb).getElementsByTagName(String(a))};h.le=function(a,b,c){return fe(this.yb,arguments)};h.createElement=function(a){return this.yb.createElement(String(a))};h.createTextNode=function(a){return this.yb.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){he(le(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=je;
|
|
h.wd=function(){return Wd&&void 0!=(void 0).children?(void 0).children:Na((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 ne=function(a,b){this.Tb=[];this.Kd=a;this.od=b||null;this.fb=this.Ma=!1;this.ja=void 0;this.Sc=this.fd=this.jc=!1;this.$b=0;this.u=null;this.kc=0};ne.prototype.cancel=function(a){if(this.Ma)this.ja instanceof ne&&this.ja.cancel();else{if(this.u){var b=this.u;delete this.u;a?b.cancel(a):(b.kc--,0>=b.kc&&b.cancel())}this.Kd?this.Kd.call(this.od,this):this.Sc=!0;this.Ma||oe(this,new pe(this))}};ne.prototype.ld=function(a,b){this.jc=!1;qe(this,a,b)};
|
|
var qe=function(a,b,c){a.Ma=!0;a.ja=c;a.fb=!b;re(a)},te=function(a){if(a.Ma){if(!a.Sc)throw new se(a);a.Sc=!1}};ne.prototype.lc=function(a){te(this);ue(a);qe(this,!0,a)};var oe=function(a,b){te(a);ue(b);qe(a,!1,b)},ue=function(a){A(!(a instanceof ne),"An execution sequence may not be initiated with a blocking Deferred.")},ve=function(a,b,c){A(!a.fd,"Blocking Deferreds can not be re-used");a.Tb.push([b,c,void 0]);a.Ma&&re(a)};
|
|
ne.prototype.then=function(a,b,c){var d,e,f=new md(function(a,b){d=a;e=b});ve(this,d,function(a){a instanceof pe?f.cancel():e(a)});return f.then(a,b,c)};id(ne);
|
|
var we=function(a){return Pa(a.Tb,function(a){return q(a[1])})},re=function(a){if(a.$b&&a.Ma&&we(a)){var b=a.$b,c=xe[b];c&&(k.clearTimeout(c.I),delete xe[b]);a.$b=0}a.u&&(a.u.kc--,delete a.u);b=a.ja;for(var d=c=!1;a.Tb.length&&!a.jc;){var e=a.Tb.shift(),f=e[0],g=e[1];e=e[2];if(f=a.fb?g:f)try{var l=f.call(e||a.od,b);m(l)&&(a.fb=a.fb&&(l==b||l instanceof Error),a.ja=b=l);if(jd(b)||"function"===typeof k.Promise&&b instanceof k.Promise)d=!0,a.jc=!0}catch(v){b=v,a.fb=!0,we(a)||(c=!0)}}a.ja=b;d&&(l=t(a.ld,
|
|
a,!0),d=t(a.ld,a,!1),b instanceof ne?(ve(b,l,d),b.fd=!0):b.then(l,d));c&&(b=new ye(b),xe[b.I]=b,a.$b=b.I)},se=function(){z.call(this)};w(se,z);se.prototype.message="Deferred has already fired";se.prototype.name="AlreadyCalledError";var pe=function(){z.call(this)};w(pe,z);pe.prototype.message="Deferred was canceled";pe.prototype.name="CanceledError";var ye=function(a){this.I=k.setTimeout(t(this.Je,this),0);this.Ab=a};
|
|
ye.prototype.Je=function(){A(xe[this.I],"Cannot throw an error that is not scheduled.");delete xe[this.I];throw this.Ab;};var xe={};var De=function(a){var b={},c=b.document||document,d=Jd(a),e=document.createElement("SCRIPT"),f={Td:e,pb:void 0},g=new ne(ze,f),l=null,v=null!=b.timeout?b.timeout:5E3;0<v&&(l=window.setTimeout(function(){Ae(e,!0);oe(g,new Be(1,"Timeout reached for loading script "+d))},v),f.pb=l);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(Ae(e,b.Se||!1,l),g.lc(null))};e.onerror=function(){Ae(e,!0,l);oe(g,new Be(0,"Error while loading script "+d))};f=b.attributes||
|
|
{};Fb(f,{type:"text/javascript",charset:"UTF-8"});de(e,f);be(e,a);Ce(c).appendChild(e)},Ce=function(a){var b;return(b=(a||document).getElementsByTagName("HEAD"))&&0!=b.length?b[0]:a.documentElement},ze=function(){if(this&&this.Td){var a=this.Td;a&&"SCRIPT"==a.tagName&&Ae(a,!0,this.pb)}},Ae=function(a,b,c){null!=c&&k.clearTimeout(c);a.onload=qa;a.onerror=qa;a.onreadystatechange=qa;b&&window.setTimeout(function(){je(a)},0)},Be=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);z.call(this,
|
|
c);this.code=a};w(Be,z);var Ee=function(a,b,c){this.reset(a,b,c,void 0,void 0)};Ee.prototype.rd=null;var Fe=0;Ee.prototype.reset=function(a,b,c,d,e){"number"==typeof e||Fe++;d||Ba();this.jb=a;delete this.rd};Ee.prototype.Vd=function(a){this.jb=a};var Ge=function(a){this.Jd=a;this.zd=this.mc=this.jb=this.u=null},He=function(a,b){this.name=a;this.value=b};He.prototype.toString=function(){return this.name};var Ie=new He("SEVERE",1E3),Je=new He("INFO",800),Ke=new He("CONFIG",700),Le=new He("FINE",500);Ge.prototype.getName=function(){return this.Jd};Ge.prototype.getParent=function(){return this.u};Ge.prototype.wd=function(){this.mc||(this.mc={});return this.mc};Ge.prototype.Vd=function(a){this.jb=a};
|
|
var Me=function(a){if(a.jb)return a.jb;if(a.u)return Me(a.u);Ga("Root logger has no level set.");return null};Ge.prototype.log=function(a,b,c){if(a.value>=Me(this).value)for(q(b)&&(b=b()),a=new Ee(a,String(b),this.Jd),c&&(a.rd=c),c=this;c;){var d=c,e=a;if(d.zd)for(var f=0;b=d.zd[f];f++)b(e);c=c.getParent()}};Ge.prototype.info=function(a,b){this.log(Je,a,b)};
|
|
var Ne={},Oe=null,Pe=function(a){Oe||(Oe=new Ge(""),Ne[""]=Oe,Oe.Vd(Ke));var b;if(!(b=Ne[a])){b=new Ge(a);var c=a.lastIndexOf("."),d=a.substr(c+1);c=Pe(a.substr(0,c));c.wd()[d]=b;b.u=c;Ne[a]=b}return b};var Qe=function(a,b){a&&a.log(Le,b,void 0)};var Re=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Se=function(){};Se.prototype.jd=null;Se.prototype.eb=function(){var a;(a=this.jd)||(a={},Te(this)&&(a[0]=!0,a[1]=!0),a=this.jd=a);return a};var Ue=function(a,b){this.Me=a;this.De=b};w(Ue,Se);Ue.prototype.oc=function(){return this.Me()};Ue.prototype.eb=function(){return this.De()};var Ve=function(){return Ve.sd.oc()};Ve.Yd=!1;Ve.eb=function(){return Ve.sd.eb()};Ve.Te=function(a,b){Ve.Ud(new Ue(A(a),A(b)))};Ve.Ud=function(a){Ve.sd=a};var We=function(){};w(We,Se);We.prototype.oc=function(){var a=Te(this);return a?new ActiveXObject(a):new XMLHttpRequest};
|
|
var Te=function(a){if(Ve.Yd)return"";if(!a.Ad&&"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.Ad=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.Ad};Ve.Ud(new We);var Xe=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Ye=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.fc=a||null;this.V=!1;this.ec=this.a=null;this.ib=this.Fd=this.Ib="";this.ya=this.Ec=this.Hb=this.rc=!1;this.Va=0;this.Wb=null;this.Sa="";this.bc=this.Ee=this.Xd=!1};w(E,B);var Ze=E.prototype,$e=Pe("goog.net.XhrIo");Ze.M=$e;var af=/^https?$/i,bf=["POST","PUT"],cf=[];E.prototype.je=function(){this.aa();Xa(cf,this)};
|
|
E.prototype.send=function(a,b,c,d){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Ib+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Ib=a;this.ib="";this.Fd=b;this.rc=!1;this.V=!0;this.a=this.fc?this.fc.oc():Ve();this.ec=this.fc?this.fc.eb():Ve.eb();this.a.onreadystatechange=t(this.Nd,this);this.Ee&&"onprogress"in this.a&&(this.a.onprogress=t(function(a){this.Md(a,!0)},this),this.a.upload&&(this.a.upload.onprogress=t(this.Md,this)));try{Qe(this.M,df(this,"Opening Xhr")),
|
|
this.Ec=!0,this.a.open(b,String(a),!0),this.Ec=!1}catch(f){Qe(this.M,df(this,"Error opening Xhr: "+f.message));this.Ab(5,f);return}a=c||"";var e=this.headers.clone();d&&Nc(d,function(a,b){e.set(b,a)});d=Ta(e.Z());c=k.FormData&&a instanceof k.FormData;!Ua(bf,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.Sa&&(this.a.responseType=this.Sa);"withCredentials"in this.a&&this.a.withCredentials!==this.Xd&&
|
|
(this.a.withCredentials=this.Xd);try{ef(this),0<this.Va&&(this.bc=ff(this.a),Qe(this.M,df(this,"Will abort after "+this.Va+"ms if incomplete, xhr2 "+this.bc)),this.bc?(this.a.timeout=this.Va,this.a.ontimeout=t(this.pb,this)):this.Wb=Ad(this.pb,this.Va,this)),Qe(this.M,df(this,"Sending request")),this.Hb=!0,this.a.send(a),this.Hb=!1}catch(f){Qe(this.M,df(this,"Send error: "+f.message)),this.Ab(5,f)}};
|
|
var ff=function(a){return Kb&&Ub(9)&&na(a.timeout)&&m(a.ontimeout)},Sa=function(a){return"content-type"==a.toLowerCase()};E.prototype.pb=function(){"undefined"!=typeof ma&&this.a&&(this.ib="Timed out after "+this.Va+"ms, aborting",Qe(this.M,df(this,this.ib)),this.dispatchEvent("timeout"),this.abort(8))};E.prototype.Ab=function(a,b){this.V=!1;this.a&&(this.ya=!0,this.a.abort(),this.ya=!1);this.ib=b;gf(this);hf(this)};var gf=function(a){a.rc||(a.rc=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
|
|
E.prototype.abort=function(){this.a&&this.V&&(Qe(this.M,df(this,"Aborting")),this.V=!1,this.ya=!0,this.a.abort(),this.ya=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),hf(this))};E.prototype.f=function(){this.a&&(this.V&&(this.V=!1,this.ya=!0,this.a.abort(),this.ya=!1),hf(this,!0));E.h.f.call(this)};E.prototype.Nd=function(){this.ba||(this.Ec||this.Hb||this.ya?jf(this):this.Be())};E.prototype.Be=function(){jf(this)};
|
|
var jf=function(a){if(a.V&&"undefined"!=typeof ma)if(a.ec[1]&&4==a.na()&&2==a.getStatus())Qe(a.M,df(a,"Local request error detected and ignored"));else if(a.Hb&&4==a.na())Ad(a.Nd,0,a);else if(a.dispatchEvent("readystatechange"),4==a.na()){Qe(a.M,df(a,"Request complete"));a.V=!1;try{var b=a.getStatus(),c;if(!(c=Re(b))){var d;if(d=0===b){var e=String(a.Ib).match(Xe)[1]||null;if(!e&&k.self&&k.self.location){var f=k.self.location.protocol;e=f.substr(0,f.length-1)}d=!af.test(e?e.toLowerCase():"")}c=d}if(c)a.dispatchEvent("complete"),
|
|
a.dispatchEvent("success");else{try{var g=2<a.na()?a.a.statusText:""}catch(l){Qe(a.M,"Can not get status: "+l.message),g=""}a.ib=g+" ["+a.getStatus()+"]";gf(a)}}finally{hf(a)}}};E.prototype.Md=function(a,b){A("progress"===a.type,"goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");this.dispatchEvent(kf(a,"progress"));this.dispatchEvent(kf(a,b?"downloadprogress":"uploadprogress"))};
|
|
var kf=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}},hf=function(a,b){if(a.a){ef(a);var c=a.a,d=a.ec[0]?qa:null;a.a=null;a.ec=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){(a=a.M)&&a.log(Ie,"Problem encountered resetting onreadystatechange: "+e.message,void 0)}}},ef=function(a){a.a&&a.bc&&(a.a.ontimeout=null);a.Wb&&(k.clearTimeout(a.Wb),a.Wb=null)};E.prototype.Cd=function(){return!!this.a};
|
|
E.prototype.na=function(){return this.a?this.a.readyState:0};E.prototype.getStatus=function(){try{return 2<this.na()?this.a.status:-1}catch(a){return-1}};
|
|
var lf=function(a){try{if(!a.a)return null;if("response"in a.a)return a.a.response;switch(a.Sa){case "":case "text":return a.a.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.a)return a.a.mozResponseArrayBuffer}var b=a.M;b&&b.log(Ie,"Response type "+a.Sa+" is not supported on this browser",void 0);return null}catch(c){return Qe(a.M,"Can not get response: "+c.message),null}};
|
|
E.prototype.getResponseHeader=function(a){if(this.a&&4==this.na())return a=this.a.getResponseHeader(a),null===a?void 0:a};E.prototype.getAllResponseHeaders=function(){return this.a&&4==this.na()?this.a.getAllResponseHeaders()||"":""};
|
|
var mf=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=2;for(var e=a[c].split(": "),f=[];0<d&&e.length;)f.push(e.shift()),d--;e.length&&f.push(e.join(": "));d=f;b[d[0]]=b[d[0]]?b[d[0]]+(", "+d[1]):d[1]}return b},df=function(a,b){return b+" ["+a.Fd+" "+a.Ib+" "+a.getStatus()+"]"};var nf=function(a,b){this.fa=this.Ea=this.pa="";this.Pa=null;this.va=this.ha="";this.S=this.ue=!1;if(a instanceof nf){this.S=m(b)?b:a.S;of(this,a.pa);var c=a.Ea;pf(this);this.Ea=c;c=a.fa;pf(this);this.fa=c;qf(this,a.Pa);this.setPath(a.getPath());rf(this,a.U.clone());a=a.va;pf(this);this.va=a}else a&&(c=String(a).match(Xe))?(this.S=!!b,of(this,c[1]||"",!0),a=c[2]||"",pf(this),this.Ea=sf(a),a=c[3]||"",pf(this),this.fa=sf(a,!0),qf(this,c[4]),this.setPath(c[5]||"",!0),rf(this,c[6]||"",!0),a=c[7]||"",
|
|
pf(this),this.va=sf(a)):(this.S=!!b,this.U=new tf(null,this.S))};
|
|
nf.prototype.toString=function(){var a=[],b=this.pa;b&&a.push(uf(b,vf,!0),":");var c=this.fa;if(c||"file"==b)a.push("//"),(b=this.Ea)&&a.push(uf(b,vf,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.Pa,null!=c&&a.push(":",String(c));if(c=this.getPath())this.fa&&"/"!=c.charAt(0)&&a.push("/"),a.push(uf(c,"/"==c.charAt(0)?wf:xf,!0));(c=this.U.toString())&&a.push("?",c);(c=this.va)&&a.push("#",uf(c,yf));return a.join("")};
|
|
nf.prototype.resolve=function(a){var b=this.clone(),c=!!a.pa;c?of(b,a.pa):c=!!a.Ea;if(c){var d=a.Ea;pf(b);b.Ea=d}else c=!!a.fa;c?(d=a.fa,pf(b),b.fa=d):c=null!=a.Pa;d=a.getPath();if(c)qf(b,a.Pa);else if(c=!!a.ha){if("/"!=d.charAt(0))if(this.fa&&!this.ha)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.U.toString();c?rf(b,a.U.clone()):c=!!a.va;c&&(a=a.va,pf(b),b.va=a);return b};nf.prototype.clone=function(){return new nf(this)};var of=function(a,b,c){pf(a);a.pa=c?sf(b,!0):b;a.pa&&(a.pa=a.pa.replace(/:$/,""))},qf=function(a,b){pf(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Pa=b}else a.Pa=null};
|
|
nf.prototype.getPath=function(){return this.ha};nf.prototype.setPath=function(a,b){pf(this);this.ha=b?sf(a,!0):a;return this};var rf=function(a,b,c){pf(a);b instanceof tf?(a.U=b,a.U.Rc(a.S)):(c||(b=uf(b,zf)),a.U=new tf(b,a.S))};nf.prototype.getQuery=function(){return this.U.toString()};nf.prototype.removeParameter=function(a){pf(this);this.U.remove(a);return this};var pf=function(a){if(a.ue)throw Error("Tried to modify a read-only Uri");};nf.prototype.Rc=function(a){this.S=a;this.U&&this.U.Rc(a)};
|
|
var Af=function(a){return a instanceof nf?a.clone():new nf(a,void 0)},sf=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},uf=function(a,b,c){return n(a)?(a=encodeURI(a).replace(b,Bf),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Bf=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},vf=/[#\/\?@]/g,xf=/[#\?:]/g,wf=/[#\?]/g,zf=/[#\?@]/g,yf=/#/g,tf=function(a,b){this.l=this.o=null;this.O=a||null;this.S=!!b},Cf=function(a){a.o||
|
|
(a.o=new C,a.l=0,a.O&&Ye(a.O,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=tf.prototype;h.m=function(){Cf(this);return this.l};h.add=function(a,b){Cf(this);this.O=null;a=Df(this,a);var c=this.o.get(a);c||this.o.set(a,c=[]);c.push(b);this.l=Ha(this.l)+1;return this};h.remove=function(a){Cf(this);a=Df(this,a);return this.o.ma(a)?(this.O=null,this.l=Ha(this.l)-this.o.get(a).length,this.o.remove(a)):!1};h.clear=function(){this.o=this.O=null;this.l=0};
|
|
h.isEmpty=function(){Cf(this);return 0==this.l};h.ma=function(a){Cf(this);a=Df(this,a);return this.o.ma(a)};h.Ya=function(a){var b=this.w();return Ua(b,a)};h.forEach=function(a,b){Cf(this);this.o.forEach(function(c,d){Ma(c,function(c){a.call(b,c,d,this)},this)},this)};h.Z=function(){Cf(this);for(var a=this.o.w(),b=this.o.Z(),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){Cf(this);var b=[];if(n(a))this.ma(a)&&(b=Ya(b,this.o.get(Df(this,a))));else{a=this.o.w();for(var c=0;c<a.length;c++)b=Ya(b,a[c])}return b};h.set=function(a,b){Cf(this);this.O=null;a=Df(this,a);this.ma(a)&&(this.l=Ha(this.l)-this.o.get(a).length);this.o.set(a,[b]);this.l=Ha(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.O=null,this.o.set(Df(this,a),Za(b)),this.l=Ha(this.l)+b.length)};h.toString=function(){if(this.O)return this.O;if(!this.o)return"";for(var a=[],b=this.o.Z(),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.O=a.join("&")};
|
|
h.clone=function(){var a=new tf;a.O=this.O;this.o&&(a.o=this.o.clone(),a.l=this.l);return a};var Df=function(a,b){b=String(b);a.S&&(b=b.toLowerCase());return b};tf.prototype.Rc=function(a){a&&!this.S&&(Cf(this),this.O=null,this.o.forEach(function(a,c){var b=c.toLowerCase();c!=b&&(this.remove(c),this.setValues(b,a))},this));this.S=a};tf.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)Nc(arguments[b],function(a,b){this.add(b,a)},this)};var Kf=function(a,b,c,d,e){var f=["https://www.googleapis.com/auth/earthengine"];d&&($a(f,d),bb(f));Ef=a;Ff=f;null===a?Gf=null:Hf(function(){If(b,c,e||Aa(Jf,b,c))})};u("ee.data.authenticateViaOauth",Kf);var Lf=function(a,b,c,d,e){Kf(a,b,c,d,e)};u("ee.data.authenticate",Lf);var Jf=function(a,b){k.gapi.auth.authorize({client_id:Ef,immediate:!1,scope:Ff.join(" ")},Aa(Mf,a,b))};u("ee.data.authenticateViaPopup",Jf);
|
|
var Of=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&&($a(e,d),bb(e));Ef=a.client_email;Ff=e;var f=new googleapis.auth.JWT(a.client_email,null,a.private_key,e,null);Nf=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})})};If(b,c)};u("ee.data.authenticateViaPrivateKey",Of);var Qf=function(a){Pf=a};u("ee.data.setApiKey",Qf);var Rf=function(a,b,c,d,e,f,g){var l=["https://www.googleapis.com/auth/earthengine"];e&&($a(l,e),bb(l));Ef=a;Ff=l;var v={token_type:b,access_token:c,state:l.join(" "),expires_in:d};Mf(void 0,void 0,v);!1===g?f&&f():Hf(function(){k.gapi.auth.setToken(v);f&&f()})};u("ee.data.setAuthToken",Rf);
|
|
var If=function(a,b,c){Nf&&Ef&&Nf({client_id:String(Ef),immediate:!0,scope:Ff.join(" ")},function(d){"immediate_failed"==d.error&&c?c():Mf(a,b,d)})},Sf=function(a){Nf=a};u("ee.data.setAuthTokenRefresher",Sf);var Vf=function(){Tf&&0<=Ba()-Tf&&Uf();return Gf};u("ee.data.getAuthToken",Vf);var Uf=function(){Tf=Gf=null};u("ee.data.clearAuthToken",Uf);var Wf=function(){return Ef};u("ee.data.getAuthClientId",Wf);var Xf=function(){return Ff};u("ee.data.getAuthScopes",Xf);
|
|
var bg=function(a,b,c){null!=a?Yf=a:Zf||(Yf="https://earthengine.googleapis.com/api");null!=b?$f=b:Zf||($f="https://earthengine.googleapis.com");m(c)&&(ag=c);Zf=!0},dg=function(a){cg=a};u("ee.data.setDeadline",dg);u("ee.data.setParamAugmenter",function(a){eg=a||Cc});var fg=function(){return Yf};u("ee.data.getApiBaseUrl",fg);var gg=function(){return $f};u("ee.data.getTileBaseUrl",gg);var hg=function(){return ag};u("ee.data.getXsrfToken",hg);
|
|
var ig=function(a){var b=F("/algorithms",null,a,"GET");return a?null:b},jg=function(a,b){a=Cb(a);return F("/mapid",G(a),b)};u("ee.data.getMapId",jg);var kg=function(a,b,c,d){var e=Math.pow(2,d);b%=e;0>b&&(b+=e);return[$f,"map",a.mapid,d,b,c].join("/")+"?token="+a.token};u("ee.data.getTileUrl",kg);var lg=function(a,b){a=Cb(a);return F("/value",G(a),b)};u("ee.data.getValue",lg);
|
|
var mg=function(a,b){a=Cb(a);p(a.dimensions)&&(a.dimensions=a.dimensions.join("x"));a=G(a).add("getid","1");return F("/thumb",a,b)};u("ee.data.getThumbId",mg);var ng=function(a){return $f+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token};u("ee.data.makeThumbUrl",ng);var og=function(a,b){a=Cb(a);return F("/download",G(a),b)};u("ee.data.getDownloadId",og);var pg=function(a){return $f+"/api/download?docid="+a.docid+"&token="+a.token};u("ee.data.makeDownloadUrl",pg);
|
|
var qg=function(a,b){a=Cb(a);return F("/table",G(a),b)};u("ee.data.getTableDownloadId",qg);var rg=function(a){return $f+"/api/table?docid="+a.docid+"&token="+a.token};u("ee.data.makeTableDownloadUrl",rg);var tg=function(a,b,c){var d=sg;try{return sg=a,b.call(c)}finally{sg=d}};u("ee.data.withProfiling",tg);var ug=function(a,b){var c={};na(a)&&(c.count=a);return F("/newtaskid",G(c),b)};u("ee.data.newTaskId",ug);
|
|
u("ee.data.getTaskStatus",function(a,b){if(n(a))a=[a];else if(!p(a))throw Error("Invalid taskId: expected a string or an array of strings.");return F("/taskstatus?q="+a.join(),null,b,"GET")});u("ee.data.getTaskList",function(a){return vg(void 0,a)});
|
|
var vg=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){F("/tasklist",G(c(f)),function(c,f){f?b(e,f):($a(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=F("/tasklist",G(c(b)),void 0,"GET");$a(e.tasks,f.tasks);b=f.next_page_token;if(!f.next_page_token||a&&e.tasks.length>=a)break}return e};
|
|
u("ee.data.getTaskListWithLimit",vg);u("ee.data.cancelTask",function(a,b){return wg(a,"CANCEL",b)});var wg=function(a,b,c){if(n(a))a=[a];else if(!p(a))throw Error("Invalid taskId: expected a string or an array of strings.");if(!xb(xg,b))throw Error("Invalid action: "+b);return F("/updatetask",G({id:a,action:b}),c,"POST")};u("ee.data.updateTask",wg);var yg=function(a,b,c){b=Cb(b);b.id=a;return F("/processingrequest",G(b),c)};u("ee.data.startProcessing",yg);
|
|
u("ee.data.startIngestion",function(a,b,c){a={id:a,request:Qd(b)};return F("/ingestionrequest",G(a),c)});u("ee.data.startTableIngestion",function(a,b,c){a={id:a,tableRequest:Qd(b)};return F("/ingestionrequest",G(a),c)});var zg=function(a,b){return F("/info",(new tf).add("id",a),b)};u("ee.data.getInfo",zg);var Ag=function(a,b){a=G(a);return F("/list",a,b)};u("ee.data.getList",Ag);u("ee.data.getAssetRoots",function(a){return F("/buckets",null,a,"GET")});
|
|
u("ee.data.createAssetHome",function(a,b){a=G({id:a});F("/createbucket",a,b)});u("ee.data.createAsset",function(a,b,c,d,e){n(a)||(a=Qd(a));a={value:a};void 0!==b&&(a.id=b);a.force=c||!1;void 0!=d&&(a.properties=Qd(d));return F("/create",G(a),e)});u("ee.data.createFolder",function(a,b,c){return F("/createfolder",G({id:a,force:b||!1}),c)});u("ee.data.renameAsset",function(a,b,c){F("/rename",G({sourceId:a,destinationId:b}),c)});
|
|
u("ee.data.copyAsset",function(a,b,c){F("/copy",G({sourceId:a,destinationId:b}),c)});u("ee.data.deleteAsset",function(a,b){F("/delete",G({id:a}),b)});u("ee.data.getAssetAcl",function(a,b){return F("/getacl",G({id:a}),b,"GET")});u("ee.data.setAssetAcl",function(a,b,c){a={id:a,value:Qd(b)};F("/setacl",G(a),c)});u("ee.data.setAssetProperties",function(a,b,c){a={id:a,properties:Qd(b)};F("/setproperties",G(a),c)});u("ee.data.getAssetRootQuota",function(a,b){return F("/quota",G({id:a}),b,"GET")});
|
|
var xg={Ne:"CANCEL",Qe:"UPDATE"},F=function(a,b,c,d){bg();var e=sg,f={"Content-Type":"application/x-www-form-urlencoded"},g=Vf();if(null!=g)f.Authorization=g;else if(c&&Nf&&Ef)return If(function(){tg(e,function(){F(a,b,c,d)})}),null;g=d||"POST";b=b?b.clone():new tf;e&&b.add("profiling","1");null!=Pf&&b.add("key",Pf);b=eg(b,a);null!=ag&&(f["X-XSRF-Token"]=ag);var l=b?b.toString():"";"GET"!=g||/^[\s\xa0]*$/.test(l)||(a+=-1!=a.indexOf("?")?"&":"?",a+=l,l=null);var v=Yf+a;if(c)return Bg.push(Cg(v,c,g,
|
|
l,f)),Dg.wc(),null;for(var R=function(a,b){this.setRequestHeader&&this.setRequestHeader(b,a)},P,Y=0;;){P=Ve();P.open(g,v,!1);rb(f,R,P);P.send(l);if(429!=P.status||5<Y)break;Y++}return Eg(P.status,function(a){try{return P.getResponseHeader(a)}catch(uh){return null}},P.responseText,e)},Cg=function(a,b,c,d,e){var f=0,g={url:a,method:c,content:d,headers:e},l=sg;g.lc=function(a){a=a.target;if(429==a.getStatus()&&10>f)return f++,setTimeout(function(){Bg.push(g);Dg.wc()},Math.min(12E4,1E3*Math.pow(2,f))),
|
|
null;var c=a.getStatus(),d=t(a.getResponseHeader,a);try{var e=a.a?a.a.responseText:""}catch(sa){Qe(a.M,"Can not get responseText: "+sa.message),e=""}return Eg(c,d,e,l,b)};return g},Eg=function(a,b,c,d,e){var f=b("X-Earth-Engine-Computation-Profile");f&&d&&d(f);b=(b=b("Content-Type"))?b.replace(/;.*/,""):"application/json";if("application/json"==b||"text/json"==b)try{var g=JSON.parse(c);var l=g.data}catch(R){var v="Invalid JSON: "+c}else v="Response was unexpectedly not JSON, but "+b;if(r(g))"error"in
|
|
g&&"message"in g.error?v=g.error.message:"data"in g||(v="Malformed response: "+c);else if(0===a)v="Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.";else if(200>a||300<=a)v="Server returned HTTP code: "+a;if(e)return e(l,v),null;if(!v)return l;throw Error(v);},Hf=function(a){var b=function(){k.gapi.config.update("client/cors",!0);Nf||(Nf=k.gapi.auth.authorize);a()};if(r(k.gapi)&&r(k.gapi.auth)&&q(k.gapi.auth.authorize))b();else{for(var c=
|
|
Ba().toString(36);c in k;)c+="_";k[c]=function(){delete k[c];b()};De(Od({onload:c}))}},Mf=function(a,b,c){c.access_token?(b=c.token_type+" "+c.access_token,isFinite(c.expires_in)&&(c=900*c.expires_in,setTimeout(If,.9*c),Tf=Ba()+c),Gf=b,a&&a()):b&&b(c.error||"Unknown error.")},G=function(a){var b=new tf;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},Bg=[],Dg=new Bd(function(){var a=Bg.shift();if(a){var b=a.url,
|
|
c=a.lc,d=a.method,e=a.content;a=a.headers;var f=cg,g=new E;cf.push(g);c&&g.da("complete",c);g.kb("ready",g.je);f&&(g.Va=Math.max(0,f));g.send(b,d,e,a)}0==Bg.length||Dg.wc()},350),Yf=null,$f=null,ag=null,eg=Cc,Gf=null,Tf=null,Ef=null,Ff=[],Nf=null,Kd=new Fd(Dd,"https://apis.google.com/js/client.js?onload=%{onload}"),Pf=null,Zf=!1,cg=0,sg=null;var Fg=function(){};var Gg=function(){this.la=-1};var Hg=function(){this.la=64;this.D=Array(4);this.de=Array(this.la);this.Yb=this.Wa=0;this.reset()};w(Hg,Gg);Hg.prototype.reset=function(){this.D[0]=1732584193;this.D[1]=4023233417;this.D[2]=2562383102;this.D[3]=271733878;this.Yb=this.Wa=0};
|
|
var Ig=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.D[0];c=a.D[1];e=a.D[2];var f=a.D[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.D[0]=a.D[0]+b&4294967295;a.D[1]=a.D[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;a.D[2]=a.D[2]+e&4294967295;a.D[3]=a.D[3]+f&4294967295};
|
|
Hg.prototype.update=function(a,b){m(b)||(b=a.length);for(var c=b-this.la,d=this.de,e=this.Wa,f=0;f<b;){if(0==e)for(;f<=c;)Ig(this,a,f),f+=this.la;if(n(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.la){Ig(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.la){Ig(this,d);e=0;break}}this.Wa=e;this.Yb+=b};
|
|
Hg.prototype.digest=function(){var a=Array((56>this.Wa?this.la:2*this.la)-this.Wa);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.Yb;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.D[b]>>>d&255;return a};var Jg=function(a){this.tb="__ee_hash__";this.Hc=!1!==a;this.Ta=[];this.La={};this.cd=[]};u("ee.Serializer",Jg);var Kg=new Pd,Lg=new Hg,Ng=function(a,b){return Mg(new Jg(m(b)?b:!0),a)};u("ee.Serializer.encode",Ng);var Og=function(a){return Kg.A(Ng(a))};u("ee.Serializer.toJSON",Og);var Pg=function(a){a=Mg(new Jg(!1),a);return"JSON"in k?k.JSON.stringify(a,null," "):Kg.A(a)};u("ee.Serializer.toReadableJSON",Pg);
|
|
var Mg=function(a,b){b=a.zb(b);a.Hc&&(b=r(b)&&"ValueRef"==b.type&&1==a.Ta.length?a.Ta[0][1]:{type:"CompoundValue",scope:a.Ta,value:b},a.Ta=[],Ma(a.cd,t(function(a){delete a[this.tb]},a)),a.cd=[],a.La={});return b};
|
|
Jg.prototype.zb=function(a){if(!m(a))throw Error("Can't encode an undefined value.");var b=r(a)?a[this.tb]:null;if(this.Hc&&null!=b&&this.La[b])return{type:"ValueRef",value:this.La[b]};if(null===a||"boolean"==typeof a||na(a)||n(a))return a;if(r(a)&&"function"==typeof a.getFullYear)return{type:"Invocation",functionName:"Date",arguments:{value:Math.floor(a.getTime())}};if(a instanceof Fg){var c=a.encode(t(this.zb,this));if(!(p(c)||r(c)&&"ArgumentRef"!=c.type))return c}else if(p(a))c=Oa(a,function(a){return this.zb(a)},
|
|
this);else if(r(a)&&!q(a))c=tb(a,function(a){if(!q(a))return this.zb(a)},this),Bb(c,this.tb),c={type:"Dictionary",value:c};else throw Error("Can't encode object: "+a);if(this.Hc){Lg.reset();Lg.update(Kg.A(c));b=Lg.digest().toString();if(this.La[b])var d=this.La[b];else d=String(this.Ta.length),this.Ta.push([d,c]),this.La[b]=d;a[this.tb]=b;this.cd.push(a);return{type:"ValueRef",value:d}}return c};var H=function(a,b,c){if(!(this instanceof H))return Qg(H,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.j=a;this.args=b;this.B=c||null};w(H,Fg);u("ee.ComputedObject",H);H.prototype.evaluate=function(a){if(!a||!q(a))throw Error("evaluate() requires a callback function.");lg({json:this.A()},a)};H.prototype.evaluate=H.prototype.evaluate;
|
|
H.prototype.C=function(a){return lg({json:this.A()},a)};H.prototype.getInfo=H.prototype.C;H.prototype.encode=function(a){if(null===this.j&&null===this.args)return{type:"ArgumentRef",value:this.B};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.j);b[n(a)?"functionName":"function"]=a;return b};H.prototype.A=function(){return Og(this)};H.prototype.serialize=H.prototype.A;
|
|
H.prototype.toString=function(){return"ee."+this.name()+"("+Pg(this)+")"};u("ee.ComputedObject.prototype.toString",H.prototype.toString);H.prototype.name=function(){return"ComputedObject"};H.prototype.dd=function(a,b){var c=Za(arguments);c[0]=this;a.apply(k,c);return this};H.prototype.aside=H.prototype.dd;
|
|
var Rg=function(a,b){if(b instanceof a.constructor)return b;var c=function(){};c.prototype=a.constructor.prototype;a=new c;a.j=b.j;a.args=b.args;a.B=b.B;return a},Qg=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var Sg={},Tg=function(a){return a.prototype instanceof H?a.prototype.name.call(null):a==Number?"Number":a==String?"String":a==Array?"Array":a==Date?"Date":"Object"},Ug=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}},Vg=function(a){return na(a)||
|
|
a instanceof H&&"Number"==a.name()},Wg=function(a){return n(a)||a instanceof H&&"String"==a.name()},Xg=function(a){return r(a)&&!q(a)?(a=Object.getPrototypeOf(a),null!==a&&null===Object.getPrototypeOf(a)):!1};var I=function(){if(!(this instanceof I))return new I};w(I,Fg);u("ee.Function",I);var Yg=Cc;I.prototype.call=function(a){return this.apply(Zg(this,Array.prototype.slice.call(arguments,0)))};I.prototype.call=I.prototype.call;I.prototype.apply=function(a){a=new H(this,$g(this,a));return Yg(a,this.K().returns)};I.prototype.apply=I.prototype.apply;
|
|
var ah=function(a,b,c){var d=m(b),e=a.K(),f=!1;if(1==c.length&&Xg(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=Cb(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=Zg(a,d?[b].concat(c):c);return a.apply(c)},$g=function(a,b){for(var c=a.K().args,d={},e={},f=0;f<c.length;f++){var g=c[f].name;if(g in b&&m(b[g]))d[g]=Yg(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},Zg=function(a,b){var c=a.K().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};
|
|
I.prototype.toString=function(a,b){var c=this.K(),d=[];d.push(a||c.name);d.push("(");d.push(Oa(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("")};I.prototype.A=function(){return Og(this)};var J=function(a,b){if(!m(b))return bh(a);if(!(this instanceof J))return Qg(J,arguments);this.qa=Db(b);this.qa.name=a};w(J,I);u("ee.ApiFunction",J);var K=function(a,b){return I.prototype.call.apply(bh(a),Array.prototype.slice.call(arguments,1))};u("ee.ApiFunction._call",K);var ch=function(a,b){return bh(a).apply(b)};u("ee.ApiFunction._apply",ch);J.prototype.encode=function(){return this.qa.name};J.prototype.K=function(){return this.qa};
|
|
var dh=null,eh={},gh=function(){fh();return tb(dh,function(a){return a.K()})},hh=function(){fh();return sb(dh,function(a,b){return!eh[b]})},bh=function(a){var b=ih(a);if(!b)throw Error("Unknown built-in function name: "+a);return b};u("ee.ApiFunction.lookup",bh);
|
|
var ih=function(a){fh();return dh[a]||null},fh=function(a,b){if(dh)a&&a();else{var c=function(c,e){e?b&&b(Error(e)):(dh=tb(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 J(b,a)}),a&&a())};a?ig(c):c(ig())}},L=function(a,b,c,d){fh();var e=d||"";rb(dh,function(d,g){var f=g.split(".");if(2==f.length&&f[0]==b){f=e+f[1];var v=d.K();eh[g]=!0;var R=!1;v.args.length&&(g=v.args[0].type,R="Object"!=g&&Ug(g,c));
|
|
g=R?a.prototype:a;f in g&&!g[f].signature||(g[f]=function(a){return ah(d,R?this:void 0,Array.prototype.slice.call(arguments,0))},g[f].toString=t(d.toString,d,f,R),g[f].signature=v)}})},jh=function(a){var b=function(a){for(var b in a)q(a[b])&&a[b].signature&&delete a[b]};b(a);b(a.prototype)};var M=function(a,b){var c=kh(a),d=Oa(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)&&!q(f)&&!p(f)&&!(f instanceof H);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(wb(f));var l=new D(d);if(Qc(l,g).isEmpty())e[d[0]]=b[0];else{b=
|
|
Rc(g,l);if(!b.isEmpty())throw Error("Unexpected arguments"+a+": "+b.w().join(", "));e=Cb(f)}}b=new D(wb(e));c=Rc(new D(Na(c,function(a){return 0!=a.lastIndexOf("opt_",0)})),b);if(!c.isEmpty())throw Error("Missing required arguments"+a+": "+c.w().join(", "));return e},kh=function(a){var b=lh,c=[];k.EXPORTED_FN_INFO?(a=k.EXPORTED_FN_INFO[a.toString()],r(a)||mh(),c=a.paramNames,p(c)||mh()):(a=a.toString().replace(nh,"").match(b),null===a&&mh(),c=(a[1].split(",")||[]).map(function(a){return a.replace(oh,
|
|
"")}));return c},mh=function(){throw Error("Failed to locate function parameters.");},nh=/((\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s))/mg,lh=/^function[^\(]*\(([^\)]*)\)/m,oh=/=.*$/;var N=function(a,b,c){H.call(this,a,b,c);ph()};w(N,H);u("ee.Element",N);var qh=!1,ph=function(){qh||(L(N,"Element","Element"),qh=!0)};N.prototype.name=function(){return"Element"};
|
|
N.prototype.set=function(a){var b;if(1>=arguments.length){var c=arguments[0];if(b=Xg(c))a:{b=wb(c);var d=["properties"];if(va(b)&&va(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(Xg(c)){b=this;for(var g in c)d=c[g],b=K("Element.set",b,g,d)}else if(c instanceof H&&ih("Element.setMulti"))b=K("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=K("Element.set",b,g,d)}return Rg(this,b)};N.prototype.set=N.prototype.set;var O=function(a,b,c,d){if(!(this instanceof O))return Qg(O,arguments);if(!("type"in a)){var e=M(O,arguments);a=e.geoJson;b=e.proj;c=e.geodesic;d=e.evenOdd}rh();e=null!=b||null!=c||null!=d;if(a instanceof H&&!(a instanceof O&&a.Zb)){if(e)throw Error("Setting the CRS, geodesic, or evenOdd flag on a computed Geometry is not supported. Use Geometry.transform().");H.call(this,a.j,a.args,a.B)}else{a instanceof O&&(a=a.encode());if(!sh(a))throw Error("Invalid GeoJSON geometry: "+JSON.stringify(a));H.call(this,
|
|
null,null);this.Zb=a.type;this.ke=null!=a.coordinates?Db(a.coordinates):null;this.pe=a.geometries||null;if(null!=b)this.Pc=b;else if("crs"in a)if(r(a.crs)&&"name"==a.crs.type&&r(a.crs.properties)&&n(a.crs.properties.name))this.Pc=a.crs.properties.name;else throw Error("Invalid CRS declaration in GeoJSON: "+(new Pd).A(a.crs));this.Cb=c;!m(this.Cb)&&"geodesic"in a&&(this.Cb=!!a.geodesic);this.Bb=d;!m(this.Bb)&&"evenOdd"in a&&(this.Bb=!!a.evenOdd)}};w(O,H);u("ee.Geometry",O);
|
|
var th=!1,rh=function(){th||(L(O,"Geometry","Geometry"),th=!0)},vh=function(a,b){if(!(this instanceof vh))return wh(vh,arguments);var c=xh(vh,"Point",1,arguments);if(!(c instanceof H)){var d=c.coordinates;if(!p(d)||2!=d.length)throw Error("The Geometry.Point constructor requires 2 coordinates.");}O.call(this,c)};w(vh,O);O.Point=vh;var yh=function(a,b){if(!(this instanceof yh))return wh(yh,arguments);O.call(this,xh(yh,"MultiPoint",2,arguments))};w(yh,O);O.MultiPoint=yh;
|
|
var zh=function(a,b,c,d){if(!(this instanceof zh))return wh(zh,arguments);var e=xh(zh,"Rectangle",2,arguments);if(!(e instanceof H)){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"}O.call(this,e)};w(zh,O);O.Rectangle=zh;
|
|
var Ah=function(a,b,c,d){if(!(this instanceof Ah))return wh(Ah,arguments);O.call(this,xh(Ah,"LineString",2,arguments))};w(Ah,O);O.LineString=Ah;var Bh=function(a,b,c,d){if(!(this instanceof Bh))return wh(Bh,arguments);O.call(this,xh(Bh,"LinearRing",2,arguments))};w(Bh,O);O.LinearRing=Bh;var Ch=function(a,b,c,d){if(!(this instanceof Ch))return wh(Ch,arguments);O.call(this,xh(Ch,"MultiLineString",3,arguments))};w(Ch,O);O.MultiLineString=Ch;
|
|
var Dh=function(a,b,c,d,e){if(!(this instanceof Dh))return wh(Dh,arguments);O.call(this,xh(Dh,"Polygon",3,arguments))};w(Dh,O);O.Polygon=Dh;var Eh=function(a,b,c,d,e){if(!(this instanceof Eh))return wh(Eh,arguments);O.call(this,xh(Eh,"MultiPolygon",4,arguments))};w(Eh,O);O.MultiPolygon=Eh;
|
|
O.prototype.encode=function(a){if(!this.Zb){if(!a)throw Error("Must specify an encode function when encoding a computed geometry.");return H.prototype.encode.call(this,a)}a={type:this.Zb};"GeometryCollection"==this.Zb?a.geometries=this.pe:a.coordinates=this.ke;null!=this.Pc&&(a.crs={type:"name",properties:{name:this.Pc}});null!=this.Cb&&(a.geodesic=this.Cb);null!=this.Bb&&(a.evenOdd=this.Bb);return a};
|
|
O.prototype.$c=function(){if(this.j)throw Error("Can't convert a computed Geometry to GeoJSON. Use getInfo() instead.");return this.encode()};O.prototype.toGeoJSON=O.prototype.$c;O.prototype.ad=function(){if(this.j)throw Error("Can't convert a computed Geometry to GeoJSON. Use getInfo() instead.");return(new Pd).A(this.$c())};O.prototype.toGeoJSONString=O.prototype.ad;O.prototype.A=function(){return Og(this)};O.prototype.serialize=O.prototype.A;
|
|
O.prototype.toString=function(){return"ee.Geometry("+this.ad()+")"};
|
|
var sh=function(a){var b=a.type;if("GeometryCollection"==b){b=a.geometries;if(!p(b))return!1;for(a=0;a<b.length;a++)if(!sh(b[a]))return!1;return!0}a=a.coordinates;var c=Fh(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)},Fh=function(a){if(!p(a))return-1;if(p(a[0])){for(var b=Fh(a[0]),c=1;c<a.length;c++)if(Fh(a[c])!=b)return-1;return b+
|
|
1}for(c=0;c<a.length;c++)if(!na(a[c]))return-1;return 0==a.length%2?1:-1},xh=function(a,b,c,d){Qa(d,Vg)?a={coordinates:Za(d)}:(a=M(a,d),a.coordinates=a.coords,delete a.coords,a.crs=a.proj,delete a.proj,a=sb(a,ta));if(Gh(a.coordinates)||null!=a.crs||null!=a.maxError)return(new J("GeometryConstructors."+b)).apply(a);a.type=b;d=a.coordinates;if(1>c||4<c)throw Error("Unexpected nesting level.");if(Qa(d,na)&&na(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;p(e);)e=e[0],f++;for(;f<c;)d=[d],f++;if(Fh(d)!=c)throw Error("Invalid geometry");for(e=d;p(e)&&1==e.length;)e=e[0];c=p(e)&&0==e.length?[]:d;a.coordinates=c;(b=Ua(["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},Gh=function(a){return p(a)?Pa(a,Gh):a instanceof H},wh=function(a,b){var c=function(){};c.prototype=
|
|
a.prototype;c=new c;a=a.apply(c,b);return void 0!==a?a:c};O.prototype.name=function(){return"Geometry"};var Hh=function(a){this.nc=a;this.id=null},Jh=function(a,b){var c=function(b){return b in a},d=Ih.find(c);A(1===Ra(Ih,c));c=a[d];delete a[d];b={json:c.A(),type:b};Object.assign(b,a);b=sb(b,ta);return new Hh(b)};
|
|
Hh.prototype.start=function(a,b){var c=this;A(this.nc,"Task config must be specified for tasks to be started.");if(a){var d=function(){Ia(c.id);yg(c.id,c.nc,function(c,d){d?b(d):a()})};this.id?d():ug(1,function(a){(a=a&&a[0])?(c.id=a,d()):b("Failed to obtain task ID.")})}else this.id=this.id||ug(1)[0],Ia(this.id,"Failed to obtain task ID."),yg(this.id,this.nc)};Hh.prototype.start=Hh.prototype.start;var Kh=function(a,b,c,d,e,f,g,l,v,R){var P=M(Kh,arguments);P=Lh(P,"ASSET");return Jh(P,"EXPORT_IMAGE")};
|
|
u("ee.batch.Export.image.toAsset",Kh);var Mh=function(a,b,c,d,e,f,g,l,v,R,P,Y,sa,uh,Zj){var ua=M(Mh,arguments);ua=Lh(ua,"GOOGLE_CLOUD_STORAGE");ua=Nh(ua);return Jh(ua,"EXPORT_IMAGE")};u("ee.batch.Export.image.toCloudStorage",Mh);var Oh=function(a,b,c,d,e,f,g,l,v,R,P,Y,sa,uh,Zj){var ua=M(Oh,arguments);ua=Lh(ua,"DRIVE");ua=Nh(ua);return Jh(ua,"EXPORT_IMAGE")};u("ee.batch.Export.image.toDrive",Oh);
|
|
var Ph=function(a,b,c,d,e,f,g,l,v,R,P){var Y=M(Ph,arguments);Y=Lh(Y,"GOOGLE_CLOUD_STORAGE");return Jh(Y,"EXPORT_TILES")};u("ee.batch.Export.map.toCloudStorage",Ph);var Qh=function(a,b,c,d,e,f){var g=M(Qh,arguments);g=Lh(g,"GOOGLE_CLOUD_STORAGE");return Jh(g,"EXPORT_FEATURES")};u("ee.batch.Export.table.toCloudStorage",Qh);var Rh=function(a,b,c,d,e,f){var g=M(Rh,arguments);g=Lh(g,"DRIVE");return Jh(g,"EXPORT_FEATURES")};u("ee.batch.Export.table.toDrive",Rh);
|
|
var Sh=function(a,b,c){var d=M(Sh,arguments);d=Lh(d,"ASSET");return Jh(d,"EXPORT_FEATURES")};u("ee.batch.Export.table.toAsset",Sh);var Th=function(a,b,c,d,e,f,g,l,v,R,P,Y){var sa=M(Th,arguments);sa=Lh(sa,"GOOGLE_CLOUD_STORAGE");return Jh(sa,"EXPORT_VIDEO")};u("ee.batch.Export.video.toCloudStorage",Th);var Uh=function(a,b,c,d,e,f,g,l,v,R,P,Y){var sa=M(Uh,arguments);sa=Lh(sa,"DRIVE");return Jh(sa,"EXPORT_VIDEO")};u("ee.batch.Export.video.toDrive",Uh);
|
|
var Vh=function(a,b,c,d,e,f,g,l,v,R,P){var Y=M(Vh,arguments);Y=Lh(Y,"GOOGLE_CLOUD_STORAGE");return Jh(Y,"EXPORT_VIDEO_MAP")};u("ee.batch.Export.videoMap.toCloudStorage",Vh);
|
|
var Lh=function(a,b){var c={};Object.assign(c,a);null!=c.crsTransform&&(c.crs_transform=c.crsTransform,delete c.crsTransform);"array"==ra(c.fileDimensions)&&(c.fileDimensions=c.fileDimensions.join());"array"==ra(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=ra(c.folder),!Ua(["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},Wh="tiffCloudOptimized tiffFileDimensions tfrecordPatchDimensions tfrecordKernelSize tfrecordCompressed tfrecordMaxFileSize tfrecordDefaultValue tfrecordTensorDepths tfrecordSequenceData tfrecordCollapseBands tfrecordMaskedThreshold".split(" "),Xh={GEOTIFF:"tiff",TFRECORD:"tfrecord"},
|
|
Nh=function(a){var b="GEOTIFF";null!=a.fileFormat&&(b=a.fileFormat.toUpperCase());if(!(b in Xh))throw a=Object.keys(Xh).join(", "),Error("Invalid file format. Supported formats are: "+a+".");var c=a;null!=a.formatOptions&&"object"==ra(a.formatOptions)&&(c=a.formatOptions,delete a.formatOptions,c=Yh(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},Yh=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=Xh[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(!Wh.includes(l))throw Error("'"+
|
|
f+"' is not a valid option for '"+c+"'.");a[l]=g}return a},Ih=["image","collection"];var Q=function(a){if(!(this instanceof Q))return Qg(Q,arguments);if(a instanceof Q)return a;Zh();if(p(a)){if(0==a.length)throw Error("Empty list specified for ee.Filter().");if(1==a.length)return new Q(a[0]);H.call(this,new J("Filter.and"),{filters:a})}else if(a instanceof H)H.call(this,a.j,a.args,a.B);else{if(m(a))throw Error("Invalid argument specified for ee.Filter(): "+a);H.call(this,null,null)}};w(Q,H);u("ee.Filter",Q);
|
|
var $h=!1,Zh=function(){$h||(L(Q,"Filter","Filter"),$h=!0)},ai={equals:"equals",less_than:"lessThan",greater_than:"greaterThan",contains:"stringContains",starts_with:"stringStartsWith",ends_with:"stringEndsWith"};Q.prototype.Na=function(){return K("Filter.not",this)};Q.prototype.not=Q.prototype.Na;var bi=function(a,b){var c=M(bi,arguments);return K("Filter.equals",c.name,c.value)};Q.eq=bi;var ci=function(a,b){var c=M(ci,arguments);return bi(c.name,c.value).Na()};Q.neq=ci;
|
|
var di=function(a,b){var c=M(di,arguments);return K("Filter.lessThan",c.name,c.value)};Q.lt=di;var ei=function(a,b){var c=M(ei,arguments);return di(c.name,c.value).Na()};Q.gte=ei;var fi=function(a,b){var c=M(fi,arguments);return K("Filter.greaterThan",c.name,c.value)};Q.gt=fi;var gi=function(a,b){var c=M(gi,arguments);return fi(c.name,c.value).Na()};Q.lte=gi;var hi=function(a){return K("Filter.and",Array.prototype.slice.call(arguments))};Q.and=hi;var ii=function(a){return K("Filter.or",Array.prototype.slice.call(arguments))};
|
|
Q.or=ii;var ji=function(a,b){var c=M(ji,arguments);c=K("DateRange",c.start,c.end);return ch("Filter.dateRangeContains",{leftValue:c,rightField:"system:time_start"})};Q.date=ji;var ki=function(a,b,c,d){var e=M(ki,arguments);return ch("Filter.listContains",{leftField:e.rightField,rightValue:e.leftValue,rightField:e.leftField,leftValue:e.rightValue})};Q.inList=ki;var li=function(a,b){return ch("Filter.intersects",{leftField:".all",rightValue:K("Feature",a),maxError:b})};Q.bounds=li;
|
|
Q.prototype.name=function(){return"Filter"};var mi=function(a,b,c){b=b.toLowerCase();var d=!1;0==b.lastIndexOf("not_",0)&&(d=!0,b=b.substring(4));if(!(b in ai))throw Error("Unknown filtering operator: "+b);a=K("Filter."+ai[b],a,c);return d?a.Na():a};Q.metadata=mi;var S=function(a,b,c){N.call(this,a,b,c);ni()};w(S,N);u("ee.Collection",S);var oi=!1,ni=function(){oi||(L(S,"Collection","Collection"),L(S,"AggregateFeatureCollection","Collection","aggregate_"),oi=!0)};S.prototype.filter=function(a){a=M(S.prototype.filter,arguments).filter;if(!a)throw Error("Empty filters.");return Rg(this,K("Collection.filter",this,a))};S.prototype.filter=S.prototype.filter;
|
|
S.prototype.vc=function(a,b,c){var d=M(S.prototype.vc,arguments);return this.filter(mi(d.name,d.operator,d.value))};S.prototype.filterMetadata=S.prototype.vc;S.prototype.td=function(a){return this.filter(li(a))};S.prototype.filterBounds=S.prototype.td;S.prototype.uc=function(a,b){var c=M(S.prototype.uc,arguments);return this.filter(ji(c.start,c.end))};S.prototype.filterDate=S.prototype.uc;
|
|
S.prototype.limit=function(a,b,c){var d=M(S.prototype.limit,arguments);return Rg(this,K("Collection.limit",this,d.max,d.property,d.ascending))};S.prototype.limit=S.prototype.limit;S.prototype.sort=function(a,b){var c=M(S.prototype.sort,arguments);return Rg(this,K("Collection.limit",this,void 0,c.property,c.ascending))};S.prototype.sort=S.prototype.sort;S.prototype.name=function(){return"Collection"};S.prototype.elementType=function(){return N};
|
|
S.prototype.map=function(a,b){var c=this.elementType();return Rg(this,K("Collection.map",this,function(b){return a(new c(b))},b))};S.prototype.map=S.prototype.map;S.prototype.Dd=function(a,b){b=m(b)?b:null;var c=this.elementType();return K("Collection.iterate",this,function(b,e){return a(new c(b),e)},b)};S.prototype.iterate=S.prototype.Dd;var pi=function(a){if(!(this instanceof pi))return Qg(pi,arguments);if(a instanceof pi)return a;qi();if(na(a))H.call(this,null,null),this.Lc=a;else if(a instanceof H)H.call(this,a.j,a.args,a.B),this.Lc=null;else throw Error("Invalid argument specified for ee.Number(): "+a);};w(pi,H);u("ee.Number",pi);var ri=!1,qi=function(){ri||(L(pi,"Number","Number"),ri=!0)};pi.prototype.encode=function(a){return na(this.Lc)?this.Lc:pi.h.encode.call(this,a)};pi.prototype.name=function(){return"Number"};var si=function(a){if(!(this instanceof si))return Qg(si,arguments);if(a instanceof si)return a;ti();if(n(a))H.call(this,null,null),this.Vc=a;else if(a instanceof H)this.Vc=null,a.j&&"String"==a.j.K().returns?H.call(this,a.j,a.args,a.B):H.call(this,new J("String"),{input:a},null);else throw Error("Invalid argument specified for ee.String(): "+a);};w(si,H);u("ee.String",si);var ui=!1,ti=function(){ui||(L(si,"String","String"),ui=!0)};
|
|
si.prototype.encode=function(a){return n(this.Vc)?this.Vc:si.h.encode.call(this,a)};si.prototype.name=function(){return"String"};var vi=function(a,b){if(!(this instanceof vi))return Qg(vi,arguments);for(var c=[],d=a.args,e=0;e<d.length;e++){var f=d[e],g=f.type;c.push(wi(g in Sg?Sg[g]:null,f.name))}if(!m(b.apply(null,c)))throw Error("User-defined methods must return a value.");this.qa=xi(a,c,b);this.fe=b.apply(null,c)};w(vi,I);u("ee.CustomFunction",vi);vi.prototype.encode=function(a){return{type:"Function",argumentNames:Oa(this.qa.args,function(a){return a.name}),body:a(this.fe)}};vi.prototype.K=function(){return this.qa};
|
|
var wi=function(a,b){a=a||Object;if(!(a.prototype instanceof H))if(a&&a!=Object)if(a==String)a=si;else if(a==Number)a=pi;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=H;var c=function(){};c.prototype=a.prototype;a=new c;a.j=null;a.args=null;a.B=b;return a},yi=function(a,b){b=Oa(b,function(a){return{name:null,type:n(a)?a:Tg(a)}});b={name:"",returns:n("Object")?"Object":Tg("Object"),args:b};return new vi(b,a)},xi=function(a,b,c){for(var d=
|
|
[],e=0;e<b.length;e++)null===b[e].B&&d.push(e);if(0==d.length)return a;var f=function(a){var b=0;r(a)&&!q(a)&&("Function"==a.type&&b++,rb(a,function(a){b+=f(a)}));return b};e=Ng(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].B=l;a.args[g].name=l}return a};var zi=function(a,b){if(!(this instanceof zi))return Qg(zi,arguments);if(a instanceof zi)return a;Ai();var c=M(zi,arguments);a=c.date;c=c.tz;var d=new J("Date"),e={},f=null;if(Wg(a)){if(e.value=a,c)if(Wg(c))e.timeZone=c;else throw Error("Invalid argument specified for ee.Date(..., opt_tz): "+c);}else if(Vg(a))e.value=a;else if(r(a)&&"function"==typeof a.getFullYear)e.value=Math.floor(a.getTime());else if(a instanceof H)a.j&&"Date"==a.j.K().returns?(d=a.j,e=a.args,f=a.B):e.value=a;else throw Error("Invalid argument specified for ee.Date(): "+
|
|
a);H.call(this,d,e,f)};w(zi,H);u("ee.Date",zi);var Bi=!1,Ai=function(){Bi||(L(zi,"Date","Date"),Bi=!0)};zi.prototype.name=function(){return"Date"};u("ee.Deserializer",function(){});var Di=function(a){return Ci(JSON.parse(a))};u("ee.Deserializer.fromJSON",Di);var Ci=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]=Ei(f,b)}a=a.value}return Ei(a,b)};u("ee.Deserializer.decode",Ci);
|
|
var Ei=function(a,b){if(null===a||na(a)||"boolean"==typeof a||n(a))return a;if(p(a))return Oa(a,function(a){return Ei(a,b)});if(!r(a)||q(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 wi(Object,c);case "Date":c=a.value;if(!na(c))throw Error("Invalid date value: "+c);return new zi(c/1E3);case "Bytes":return c=
|
|
new Fg,c.encode=function(){return a},c;case "Invocation":c="functionName"in a?bh(a.functionName):Ei(a["function"],b);var d=tb(a.arguments,function(a){return Ei(a,b)});if(c instanceof I)return c.apply(d);if(c instanceof H)return new H(c,d);throw Error("Invalid function value: "+a["function"]);case "Dictionary":return tb(a.value,function(a){return Ei(a,b)});case "Function":var e=Ei(a.body,b);c={name:"",args:Oa(a.argumentNames,function(a){return{name:a,type:"Object",optional:!1}}),returns:"Object"};
|
|
return new vi(c,function(){return e});case "Point":case "MultiPoint":case "LineString":case "MultiLineString":case "Polygon":case "MultiPolygon":case "LinearRing":case "GeometryCollection":return new O(a);case "CompoundValue":throw Error("Nested CompoundValues are disallowed.");default:throw Error("Unknown encoded object type: "+c);}};var Fi=function(a){if(!(this instanceof Fi))return Qg(Fi,arguments);if(a instanceof Fi)return a;Gi();Xg(a)?(H.call(this,null,null),this.qc=a):(a instanceof H&&a.j&&"Dictionary"==a.j.K().returns?H.call(this,a.j,a.args,a.B):H.call(this,new J("Dictionary"),{input:a},null),this.qc=null)};w(Fi,H);u("ee.Dictionary",Fi);var Hi=!1,Gi=function(){Hi||(L(Fi,"Dictionary","Dictionary"),Hi=!0)};Fi.prototype.encode=function(a){return null===this.qc?Fi.h.encode.call(this,a):a(this.qc)};Fi.prototype.name=function(){return"Dictionary"};var T=function(a,b){if(!(this instanceof T))return Qg(T,arguments);if(a instanceof T){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 O||null===a)N.call(this,new J("Feature"),{geometry:a,metadata:b||null});else if(a instanceof H)N.call(this,a.j,a.args,a.B);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=Cb(c);c["system:index"]=a.id}N.call(this,new J("Feature"),{geometry:new O(a.geometry),metadata:c})}else N.call(this,new J("Feature"),{geometry:new O(a),metadata:b||null})};w(T,N);u("ee.Feature",T);var Ji=!1,Ii=function(){Ji||(L(T,"Feature","Feature"),Ji=!0)};T.prototype.C=function(a){return T.h.C.call(this,a)};T.prototype.getInfo=T.prototype.C;
|
|
T.prototype.getMap=function(a,b){var c=M(T.prototype.getMap,arguments);return K("Collection",[this]).getMap(c.visParams,c.callback)};T.prototype.getMap=T.prototype.getMap;T.prototype.name=function(){return"Feature"};var Ki=function(a){if(this instanceof Ki){if(1<arguments.length)throw Error("ee.List() only accepts 1 argument.");if(a instanceof Ki)return a}else return Qg(Ki,arguments);Li();if(p(a))H.call(this,null,null),this.Kc=a;else if(a instanceof H)H.call(this,a.j,a.args,a.B),this.Kc=null;else throw Error("Invalid argument specified for ee.List(): "+a);};w(Ki,H);u("ee.List",Ki);var Mi=!1,Li=function(){Mi||(L(Ki,"List","List"),Mi=!0)};
|
|
Ki.prototype.encode=function(a){return p(this.Kc)?Oa(this.Kc,function(b){return a(b)}):Ki.h.encode.call(this,a)};Ki.prototype.name=function(){return"List"};var U=function(a,b){if(!(this instanceof U))return Qg(U,arguments);if(a instanceof U)return a;if(2<arguments.length)throw Error("The FeatureCollection constructor takes at most 2 arguments ("+arguments.length+" given)");Ni();a instanceof O&&(a=new T(a));a instanceof T&&(a=[a]);if(Wg(a)){var c={tableId:a};b&&(c.geometryColumn=b);S.call(this,new J("Collection.loadTable"),c)}else if(p(a))S.call(this,new J("Collection"),{features:Oa(a,function(a){return new T(a)})});else if(a instanceof Ki)S.call(this,
|
|
new J("Collection"),{features:a});else if(a instanceof H)S.call(this,a.j,a.args,a.B);else throw Error("Unrecognized argument type to convert to a FeatureCollection: "+a);};w(U,S);u("ee.FeatureCollection",U);var Oi=!1,Ni=function(){Oi||(L(U,"FeatureCollection","FeatureCollection"),Oi=!0)};U.prototype.getMap=function(a,b){var c=M(U.prototype.getMap,arguments),d=ch("Collection.draw",{collection:this,color:(c.visParams||{}).color||"000000"});if(c.callback)d.getMap(null,c.callback);else return d.getMap()};
|
|
U.prototype.getMap=U.prototype.getMap;U.prototype.C=function(a){return U.h.C.call(this,a)};U.prototype.getInfo=U.prototype.C;U.prototype.wa=function(a,b,c,d){var e=M(U.prototype.wa,arguments),f={};f.table=this.A();e.format&&(f.format=e.format.toUpperCase());e.filename&&(f.filename=e.filename);if(e.selectors){var g=e.selectors;va(g)&&(g=g.join(","));f.selectors=g}if(e.callback)qg(f,function(a,b){a?e.callback(rg(a)):e.callback(null,b)});else return rg(qg(f))};U.prototype.getDownloadURL=U.prototype.wa;
|
|
U.prototype.select=function(a,b,c){if(Wg(a)){var d=Array.prototype.slice.call(arguments);return this.map(function(a){return a.select(d)})}var e=M(U.prototype.select,arguments);return this.map(function(a){return a.select(e)})};U.prototype.select=U.prototype.select;U.prototype.name=function(){return"FeatureCollection"};U.prototype.elementType=function(){return T};var V=function(a){if(!(this instanceof V))return Qg(V,arguments);if(a instanceof V)return a;Pi();var b=arguments.length;if(0==b||1==b&&!m(a))N.call(this,new J("Image.mask"),{image:new V(0),mask:new V(0)});else if(1==b)if(Vg(a))N.call(this,new J("Image.constant"),{value:a});else if(Wg(a))N.call(this,new J("Image.load"),{id:a});else{if(p(a))return Qi(Oa(a,function(a){return new V(a)}));if(a instanceof H)"Array"==a.name()?N.call(this,new J("Image.constant"),{value:a}):N.call(this,a.j,a.args,a.B);else throw Error("Unrecognized argument type to convert to an Image: "+
|
|
a);}else if(2==b){b=arguments[0];var c=arguments[1];if(Wg(b)&&Vg(c))N.call(this,new J("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)");};w(V,N);u("ee.Image",V);var Ri=!1,Pi=function(){Ri||(L(V,"Image","Image"),L(V,"Window","Image","focal_"),Ri=!0)};V.prototype.C=function(a){return V.h.C.call(this,a)};V.prototype.getInfo=V.prototype.C;
|
|
V.prototype.getMap=function(a,b){var c=this,d=M(V.prototype.getMap,arguments),e=Si(this,d.visParams);if(d.callback){var f=d.callback;jg(e,function(a,b){a=a?Object.assign(a,{image:c}):void 0;f(a,b)})}else return d=jg(e),d.image=this,d};V.prototype.getMap=V.prototype.getMap;var Si=function(a,b){var c="bands gain bias min max gamma palette opacity forceRgbOutput".split(" "),d={},e={};rb(b,function(a,b){Ua(c,b)?e[b]=a:d[b]=a});Ab(e)||(e.image=a,a=ch("Image.visualize",e));d.image=a.A();return d};
|
|
V.prototype.wa=function(a,b){var c=M(V.prototype.wa,arguments),d=c.params?Cb(c.params):{};d.image=this.A();if(c.callback){var e=c.callback;og(d,function(a,b){a?e(pg(a)):e(null,b)})}else return pg(og(d))};V.prototype.getDownloadURL=V.prototype.wa;
|
|
V.prototype.zc=function(a,b){var c=M(V.prototype.zc,arguments),d=Si(this,c.params);if(d.region)if(p(d.region)||Xg(d.region))d.region=Qd(d.region);else if(!n(d.region))throw Error("The region parameter must be an array or a GeoJSON object.");if(c.callback)mg(d,function(a,b){var d="";if(!m(b))try{d=ng(a)}catch(l){b=String(l.message)}c.callback(d,b)});else return ng(mg(d))};V.prototype.getThumbURL=V.prototype.zc;
|
|
var Ti=function(a,b,c){var d=M(Ti,arguments);return Qi([d.r,d.g,d.b],["vis-red","vis-green","vis-blue"])};V.rgb=Ti;var Ui=function(a){return Qi(Array.prototype.slice.call(arguments),null)};V.cat=Ui;var Qi=function(a,b){if(0==a.length)return K("Image.constant",[]);for(var c=new V(a[0]),d=1;d<a.length;d++)c=K("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||Wg(b[0])||Vg(b[0])){for(var d=0;d<b.length;d++)if(!(Wg(b[d])||Vg(b[d])||b[d]instanceof H))throw Error("Illegal argument to select(): "+b[d]);c.bandSelectors=b}else b[1]&&(c.newNames=b[1]);return ch("Image.select",c)};V.prototype.select=V.prototype.select;
|
|
V.prototype.tc=function(a,b){var c=M(V.prototype.tc,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=K("Image.parseExpression",c.expression,"DEFAULT_EXPRESSION_IMAGE",d);c=new I;c.encode=function(a){return l.encode(a)};c.K=function(){return{name:"",args:Oa(d,function(a){return{name:a,type:"Image",optional:!1}},this),returns:"Image"}};return c.apply(e)};V.prototype.expression=V.prototype.tc;
|
|
V.prototype.clip=function(a){try{a=new O(a)}catch(b){}return K("Image.clip",this,a)};V.prototype.clip=V.prototype.clip;V.prototype.Qd=function(a){var b=1!=arguments.length||Wg(arguments[0])?Za(arguments):arguments[0];return K("Image.rename",this,b)};V.prototype.rename=V.prototype.Qd;V.prototype.name=function(){return"Image"};var W=function(a){if(!(this instanceof W))return Qg(W,arguments);if(a instanceof W)return a;if(1!=arguments.length)throw Error("The ImageCollection constructor takes exactly 1 argument ("+arguments.length+" given)");Vi();a instanceof V&&(a=[a]);if(Wg(a))S.call(this,new J("ImageCollection.load"),{id:a});else if(p(a))S.call(this,new J("ImageCollection.fromImages"),{images:Oa(a,function(a){return new V(a)})});else if(a instanceof Ki)S.call(this,new J("ImageCollection.fromImages"),{images:a});else if(a instanceof
|
|
H)S.call(this,a.j,a.args,a.B);else throw Error("Unrecognized argument type to convert to an ImageCollection: "+a);};w(W,S);u("ee.ImageCollection",W);var Wi=!1,Vi=function(){Wi||(L(W,"ImageCollection","ImageCollection"),L(W,"reduce","ImageCollection"),Wi=!0)};W.prototype.getMap=function(a,b){var c=M(W.prototype.getMap,arguments),d=K("ImageCollection.mosaic",this);if(c.callback)d.getMap(c.visParams,c.callback);else return d.getMap(c.visParams)};W.prototype.getMap=W.prototype.getMap;
|
|
W.prototype.C=function(a){return W.h.C.call(this,a)};W.prototype.getInfo=W.prototype.C;W.prototype.select=function(a,b){var c=arguments;return this.map(function(a){return a.select.apply(a,c)})};W.prototype.select=W.prototype.select;W.prototype.first=function(){return new V(K("Collection.first",this))};W.prototype.first=W.prototype.first;W.prototype.name=function(){return"ImageCollection"};W.prototype.elementType=function(){return V};var Xi={};u("ee.Terrain",Xi);Xi.Fc=!1;Xi.se=function(){Xi.Fc||(L(Xi,"Terrain","Terrain"),Xi.Fc=!0)};Xi.reset=function(){jh(Xi);Xi.Fc=!1};var cj=function(a,b,c,d,e){if("ready"!=Yi||a||b){var f=null!=c;if(d)if(f)Zi.push(d);else throw Error("Can't pass an error callback without a success callback.");if("loading"==Yi&&f)$i.push(c);else if(Yi="loading",bg(a,b,e),f)$i.push(c),fh(aj,bj);else try{fh(),aj()}catch(g){throw bj(g),g;}}else c&&c()};u("ee.initialize",cj);
|
|
var fj=function(){Yi="not_ready";ag=$f=Yf=null;Zf=!1;dh=null;eh={};jh(zi);Bi=!1;jh(Fi);Hi=!1;jh(N);qh=!1;jh(V);Ri=!1;jh(T);Ji=!1;jh(S);oi=!1;jh(W);Wi=!1;jh(U);Oi=!1;jh(Q);$h=!1;jh(O);th=!1;jh(Ki);Mi=!1;jh(pi);ri=!1;jh(si);ui=!1;Xi.reset();for(var a=k.ee,b=0;b<dj.length;b++){var c=dj[b];jh(a[c]);delete a[c]}dj=[];Sg=a;a=ej;for(var d in a)delete a[d]};u("ee.reset",fj);var gj={Oe:"not_ready",LOADING:"loading",Pe:"ready"};u("ee.InitState",gj);u("ee.InitState.NOT_READY","not_ready");
|
|
u("ee.InitState.LOADING","loading");u("ee.InitState.READY","ready");var Yi="not_ready",$i=[],Zi=[];u("ee.TILE_SIZE",256);var dj=[],ej={};u("ee.Algorithms",ej);var hj=function(a,b){n(a)&&(a=new J(a));return I.prototype.call.apply(a,Array.prototype.slice.call(arguments,1))};u("ee.call",hj);var ij=function(a,b){n(a)&&(a=new J(a));return a.apply(b)};u("ee.apply",ij);
|
|
var aj=function(){if("loading"==Yi){try{Ai();Gi();ph();Pi();Ii();ni();Vi();Ni();Zh();rh();Li();qi();ti();Xi.se();var a=gh(),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]=jj(g),dj.push(g),a[g]?(f[g].signature=a[g],f[g].signature.isConstructor=!0,eh[g]=!0):f[g].signature={});Sg=f;kj()}catch(l){bj(l);return}Yi="ready";for(Zi=[];0<$i.length;)$i.shift()()}},bj=function(a){if("loading"==
|
|
Yi)for(Yi="not_ready",$i=[];0<Zi.length;)Zi.shift()(a)},kj=function(){var a=hh();wb(a).sort().forEach(function(b){var c=a[b],d=c.K();if(!d.hidden){b=b.split(".");var e=ej;for(e.signature={};1<b.length;){var f=b[0];f in e||(e[f]={signature:{}});e=e[f];b=ab(b,1)}f=function(a){return ah(c,void 0,Array.prototype.slice.call(arguments,0))};f.signature=d;f.toString=t(c.toString,c);e[b[0]]=f}})},jj=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 Qg(c,e);c=ih(a);var g=!(e[0]instanceof H),l=!1;c&&(f?g?l=!0:e[0].j!=c&&(l=!0):l=!0);if(l)H.call(this,c,$g(c,Zg(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];H.call(this,e.j,e.args,e.B)}};w(b,H);b.prototype.name=function(){return a};L(b,a,a);return b};
|
|
Yg=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 S?K("Feature",K("Collection.geometry",a)):new T(a);case "Element":if(a instanceof N)return a;if(a instanceof O)return new T(a);if(a instanceof H)return new N(a.j,a.args,a.B);throw Error("Cannot convert "+a+" to Element.");case "Geometry":return a instanceof U?K("Collection.geometry",a):new O(a);case "FeatureCollection":case "Collection":return a instanceof S?a:new U(a);
|
|
case "ImageCollection":return new W(a);case "Filter":return new Q(a);case "Algorithm":if(n(a))return new J(a);if(q(a)){b=a.length;c=[];for(var d=0;d<b;d++)c[d]="Object";return yi(a,c)}if(a instanceof Fg)return a;throw Error("Argument is not a function: "+a);case "String":return Wg(a)||a instanceof si||a instanceof H?new si(a):a;case "Dictionary":return Xg(a)?a:new Fi(a);case "List":return new Ki(a);case "Number":case "Float":case "Long":case "Integer":case "Short":case "Byte":return new pi(a);default:if(b in
|
|
c){d=ih(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 lj=function(a,b,c){Tc.call(this,a,b,c);this.tileSize=new google.maps.Size(256,256);this.vd=new C;this.ud=new C};w(lj,Tc);u("ee.FloatTileOverlay",lj);lj.prototype.getTile=function(a,b){var c=Uc(this,a,b);b=[this.url,c].join("/")+"?token="+this.token;c=[c,this.ra,this.token].join("/");this.ta.push(c);this.ra+=1;var d=ge("DIV");mj(this,b,a,c,d);nj(this);return d};
|
|
var mj=function(a,b,c,d,e){var f=Ve();f.open("GET",b,!0);f.responseType="arraybuffer";f.onreadystatechange=t(function(){if(f.readyState===XMLHttpRequest.DONE&&200===f.status){var a=f.response;if(a)a=new Float32Array(a),this.vd.set(c,a),this.ud.set(c,e),Xa(this.ta,d),nj(this);else throw this.Yc.add(d),Error("Unable to request floating point array buffers.");}},a);f.send()},nj=function(a){a.dispatchEvent(new Vc(a.ta.length))};lj.prototype.f=function(){this.ud=this.vd=null;lj.h.f.call(this)};var oj=function(){this.Vb=new Map};oj.prototype.clear=function(){this.Vb.clear()};var pj=function(a,b){a.Vb.has(b)||a.Vb.set(b,{throttleCount:0,errorCount:0,tileLatencies:[]});return a.Vb.get(b)};var qj=function(a){x.call(this);this.xa=a;this.i={}};w(qj,x);var rj=[];qj.prototype.da=function(a,b,c,d){p(b)||(b&&(rj[0]=b.toString()),b=rj);for(var e=0;e<b.length;e++){var f=oc(a,b[e],c||this.handleEvent,d||!1,this.xa||this);if(!f)break;this.i[f.key]=f}return this};qj.prototype.kb=function(a,b,c,d){return sj(this,a,b,c,d)};var sj=function(a,b,c,d,e,f){if(p(c))for(var g=0;g<c.length;g++)sj(a,b,c[g],d,e,f);else{b=nc(b,c,d||a.handleEvent,e,f||a.xa||a);if(!b)return a;a.i[b.key]=b}return a};
|
|
qj.prototype.ac=function(a,b,c,d,e){if(p(b))for(var f=0;f<b.length;f++)this.ac(a,b[f],c,d,e);else c=c||this.handleEvent,d=r(d)?!!d.capture:!!d,e=e||this.xa||this,c=pc(c),d=!!d,b=dc(a)?a.bb(b,c,d,e):a?(a=rc(a))?a.bb(b,c,d,e):null:null,b&&(wc(b),delete this.i[b.key])};qj.prototype.nb=function(){rb(this.i,function(a,b){this.i.hasOwnProperty(b)&&wc(a)},this);this.i={}};qj.prototype.f=function(){qj.h.f.call(this);this.nb()};
|
|
qj.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var uj=function(a,b){m(a.name)?(this.name=a.name,this.code=yb[a.name]):(this.code=Ha(a.code),this.name=tj(a.code));z.call(this,cb("%s %s",this.name,b))};w(uj,z);var tj=function(a){var b=zb(function(b){return a==b});if(!m(b))throw Error("Invalid code: "+a);return b},yb={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 vj=function(a,b){y.call(this,a.type,b);this.X=a};w(vj,y);var wj=function(){B.call(this);this.G=new FileReader;this.G.onloadstart=t(this.Ka,this);this.G.onprogress=t(this.Ka,this);this.G.onload=t(this.Ka,this);this.G.onabort=t(this.Ka,this);this.G.onerror=t(this.Ka,this);this.G.onloadend=t(this.Ka,this)};w(wj,B);h=wj.prototype;h.abort=function(){try{this.G.abort()}catch(a){throw new uj(a,"aborting read");}};h.na=function(){return this.G.readyState};h.getError=function(){return this.G.error&&new uj(this.G.error,"reading file")};
|
|
h.Ka=function(a){this.dispatchEvent(new vj(a,this))};h.f=function(){wj.h.f.call(this);delete this.G};h.readAsBinaryString=function(a){this.G.readAsBinaryString(a)};h.readAsArrayBuffer=function(a){this.G.readAsArrayBuffer(a)};h.readAsText=function(a,b){this.G.readAsText(a,b)};var xj=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 yj=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.Ub=new oj;this.sa=new C;this.ra=0;this.Xc=a;this.ga=new qj(this);this.alt=this.radius=this.projection=void 0};w(yj,B);u("ee.layers.AbstractOverlay",yj);
|
|
yj.prototype.hc=function(a){return oc(this,"tile-load",a)};yj.prototype.addTileCallback=yj.prototype.hc;yj.prototype.Qc=function(a){wc(a)};yj.prototype.removeTileCallback=yj.prototype.Qc;h=yj.prototype;h.yc=function(){return zj(this,"throttled")+zj(this,"loading")+zj(this,"new")};h.setOpacity=function(a){this.opacity=a;this.sa.forEach(function(a){xj(a.N,this.opacity)},this)};h.getStats=function(){return this.Ub};
|
|
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.ra++].join("-"),this.Xc.yd()].join("-");b=this.nd(d,b,c,a);b.tileSize=this.tileSize;xj(b.N,this.opacity);this.sa.set(a,b);Aj(this,b);this.Xc.Gd(b,(new Date).getTime()/1E3);return b.N};h.releaseTile=function(a){var b=this.sa.get(a.id);this.sa.remove(a.id);b&&(b.abort(),Ca(b))};
|
|
var Aj=function(a,b){a.ga.da(b,"status-changed",function(){switch(b.getStatus()){case "loaded":var a=b.xe,d=(new Date).getTime();pj(this.Ub,b.zoom).tileLatencies.push(d-a);this.dispatchEvent(new Bj(this.yc()));break;case "throttled":pj(this.Ub,b.zoom).throttleCount++;this.dispatchEvent(new Cj(b.Ca));break;case "failed":pj(this.Ub,b.zoom).errorCount++,this.dispatchEvent(new Dj(b.Ca,b.ne))}})};
|
|
yj.prototype.f=function(){yj.h.f.call(this);this.sa.forEach(Ca);this.sa.clear();this.sa=null;Ca(this.ga);this.Xc=this.ga=null};var zj=function(a,b){return Ra(a.sa.w(),function(a){return a.getStatus()==b})},Bj=function(){y.call(this,"tile-load")};w(Bj,y);var Cj=function(){y.call(this,"tile-throttle")};w(Cj,y);var Dj=function(a,b){y.call(this,"tile-fail");this.errorMessage=b};w(Dj,y);
|
|
var Ej=function(a,b,c,d){B.call(this);this.Ja=a;this.zoom=b;this.N=c.createElement("div");this.N.id=d;this.ze=5;this.Qb=function(){};this.Tc="new";this.Rd=0;this.Ic=!1};w(Ej,B);
|
|
var Gj=function(a){if(!a.Ic&&"loading"==a.getStatus())throw Error("startLoad() can only be invoked once. Use retryLoad() after the first attempt.");Fj(a,"loading");a.xe=(new Date).getTime();a.ka=new E;a.ka.Sa="blob";a.ka.da("complete",function(){var a=lf(this.ka),c=this.ka.getStatus();429==c&&Fj(this,"throttled");if(Re(c)){var d={};rb(mf(this.ka),function(a,b){d[b.toLowerCase()]=a});this.He=d;this.Wd=a;this.ab()}else if(a){var e=new wj;e.da("loadend",function(){this.ob(e.G.result)},void 0,this);e.readAsText(a)}else this.ob("Failed to load tile.")},
|
|
!1,a);a.ka.kb("ready",Aa(Ca,a.ka));a.ka.send(a.Ca,"GET")};h=Ej.prototype;h.ab=function(){this.Qb(this);Fj(this,"loaded")};h.Xa=function(){Ca(this.ka)};h.ob=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.Rd>=this.ze?(this.ne=b(a),Fj(this,"failed")):(this.Xa(),setTimeout(t(function(){this.ba||(this.Ic=!0,Gj(this),this.Ic=!1)},this),1E3*Math.pow(2,this.Rd++)))};h.abort=function(){this.Xa();Fj(this,"aborted")};
|
|
h.getStatus=function(){return this.Tc};var Fj=function(a,b){a.Tc=b;a.dispatchEvent("status-changed")},Hj={aborted:!0,failed:!0,loaded:!0};Ej.prototype.f=function(){Ej.h.f.call(this);this.Xa();this.N.remove();this.Qb=null};var Ij=function(){x.call(this)};w(Ij,x);var Jj=function(a,b){yj.call(this,a,b);this.hd=new C;this.qd=new C};w(Jj,yj);u("ee.layers.BinaryOverlay",Jj);Jj.prototype.nd=function(a,b,c,d){var e=new Kj(a,b,c,d);this.ga.da(e,"status-changed",function(){"loaded"==e.getStatus()&&(this.hd.set(a,new Float32Array(e.ge)),this.qd.set(a,e.N))});return e};Jj.prototype.f=function(){Jj.h.f.call(this);this.qd=this.hd=null};var Kj=function(a,b,c,d){Ej.call(this,a,b,c,d)};w(Kj,Ej);
|
|
Kj.prototype.ab=function(){var a=new wj;a.da("loadend",function(){this.ge=a.G.result;Ej.prototype.ab.call(this)},void 0,this);a.readAsArrayBuffer(this.Wd)};var Lj=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 Mj=function(a,b,c,d){x.call(this);this.gd=a;this.ha=b;this.Wc=d||"";this.Kb=c};w(Mj,Ij);u("ee.layers.CloudStorageTileSource",Mj);Mj.prototype.Gd=function(a){if(a.zoom<=this.Kb)a.Ca=this.Db(a.Ja,a.zoom);else{var b=a.zoom-this.Kb,c=Math.pow(2,b);c=new google.maps.Point(Math.floor(a.Ja.x/c),Math.floor(a.Ja.y/c));a.Ca=this.Db(c,a.zoom-b);a.Qb=Aa(Nj,this.Kb)}var d=t(a.ob,a);a.ob=t(function(b){b&&-1!=b.indexOf("The specified key does not exist.")?Fj(a,"loaded"):d(b)},a);Gj(a)};
|
|
Mj.prototype.yd=function(){return[this.gd,this.ha,this.Kb,this.Wc].join("-")};Mj.prototype.Db=function(a,b){a=Lj("https://storage.googleapis.com",this.gd,this.ha,String(b),String(a.x),String(a.y));this.Wc&&(a+=this.Wc);return a};
|
|
var Nj=function(a,b){if(!b.Gb)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.N.ownerDocument.createElement("canvas");d.setAttribute("width",c);d.setAttribute("height",c);b.N.appendChild(d);d=d.getContext("2d");d.imageSmoothingEnabled=!1;d.mozImageSmoothingEnabled=!1;d.webkitImageSmoothingEnabled=!1;d.drawImage(b.Gb,c/a*(b.Ja.x%a),c/a*(b.Ja.y%a),c/a,c/a,0,0,c,c)};var Oj=function(){this.Y=[];this.$=[]};h=Oj.prototype;h.enqueue=function(a){this.$.push(a)};h.$a=function(){0==this.Y.length&&(this.Y=this.$,this.Y.reverse(),this.$=[]);return this.Y.pop()};h.m=function(){return this.Y.length+this.$.length};h.isEmpty=function(){return 0==this.Y.length&&0==this.$.length};h.clear=function(){this.Y=[];this.$=[]};h.contains=function(a){return Ua(this.Y,a)||Ua(this.$,a)};h.remove=function(a){var b=this.Y;var c=La(b,a);0<=c?(Wa(b,c),b=!0):b=!1;return b||Xa(this.$,a)};
|
|
h.w=function(){for(var a=[],b=this.Y.length-1;0<=b;--b)a.push(this.Y[b]);var c=this.$.length;for(b=0;b<c;++b)a.push(this.$[b]);return a};var Pj=function(a,b){x.call(this);this.Id=a||0;this.Jb=b||10;if(this.Id>this.Jb)throw Error("[goog.structs.Pool] Min can not be greater than max");this.ca=new Oj;this.oa=new D;this.delay=0;this.Jc=null;this.ub()};w(Pj,x);Pj.prototype.cb=function(){var a=Ba();if(!(null!=this.Jc&&a-this.Jc<this.delay)){for(var b;0<this.ca.m()&&(b=this.ca.$a(),!this.Mc(b));)this.ub();!b&&this.m()<this.Jb&&(b=this.pc());b&&(this.Jc=a,this.oa.add(b));return b}};var Qj=function(a,b){return a.oa.remove(b)?(a.gc(b),!0):!1};
|
|
h=Pj.prototype;h.gc=function(a){this.oa.remove(a);this.Mc(a)&&this.m()<this.Jb?this.ca.enqueue(a):this.xb(a)};h.ub=function(){for(var a=this.ca;this.m()<this.Id;)a.enqueue(this.pc());for(;this.m()>this.Jb&&0<this.ca.m();)this.xb(a.$a())};h.pc=function(){return{}};h.xb=function(a){if("function"==typeof a.aa)a.aa();else for(var b in a)a[b]=null};h.Mc=function(a){return"function"==typeof a.ie?a.ie():!0};h.contains=function(a){return this.ca.contains(a)||this.oa.contains(a)};
|
|
h.m=function(){return this.ca.m()+this.oa.m()};h.isEmpty=function(){return this.ca.isEmpty()&&this.oa.isEmpty()};h.f=function(){Pj.h.f.call(this);if(0<this.oa.m())throw Error("[goog.structs.Pool] Objects not released");delete this.oa;for(var a=this.ca;!a.isEmpty();)this.xb(a.$a());delete this.ca};var Rj=function(a,b){this.Ed=a;this.cc=b};Rj.prototype.getKey=function(){return this.Ed};Rj.prototype.clone=function(){return new Rj(this.Ed,this.cc)};var Sj=function(a){this.T=[];if(a)a:{if(a instanceof Sj){var b=a.Z();a=a.w();if(0>=this.m()){for(var c=this.T,d=0;d<b.length;d++)c.push(new Rj(b[d],a[d]));break a}}else b=wb(a),a=vb(a);for(d=0;d<b.length;d++)Tj(this,b[d],a[d])}},Tj=function(a,b,c){var d=a.T;d.push(new Rj(b,c));b=d.length-1;a=a.T;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=Sj.prototype;
|
|
h.remove=function(){var a=this.T,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Va(a);else{a[0]=a.pop();a=0;b=this.T;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.cc}};h.w=function(){for(var a=this.T,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].cc);return b};h.Z=function(){for(var a=this.T,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
|
|
h.Ya=function(a){return Pa(this.T,function(b){return b.cc==a})};h.ma=function(a){return Pa(this.T,function(b){return b.getKey()==a})};h.clone=function(){return new Sj(this)};h.m=function(){return this.T.length};h.isEmpty=function(){return 0==this.T.length};h.clear=function(){Va(this.T)};var Uj=function(){Sj.call(this)};w(Uj,Sj);Uj.prototype.enqueue=function(a,b){Tj(this,a,b)};Uj.prototype.$a=function(){return this.remove()};var Vj=function(a,b){this.pd=void 0;this.Sb=new Uj;Pj.call(this,a,b)};w(Vj,Pj);h=Vj.prototype;h.cb=function(a,b){if(!a)return(a=Vj.h.cb.call(this))&&this.delay&&(this.pd=k.setTimeout(t(this.Fb,this),this.delay)),a;this.Sb.enqueue(m(b)?b:100,a);this.Fb()};h.Fb=function(){for(var a=this.Sb;0<a.m();){var b=this.cb();if(b)a.$a().apply(this,[b]);else break}};h.gc=function(a){Vj.h.gc.call(this,a);this.Fb()};h.ub=function(){Vj.h.ub.call(this);this.Fb()};
|
|
h.f=function(){Vj.h.f.call(this);k.clearTimeout(this.pd);this.Sb.clear();this.Sb=null};var Wj=function(a,b,c,d){x.call(this);this.bd=a;this.Hd=b;this.qb=c;this.P=d||null};w(Wj,Ij);u("ee.layers.EarthEngineTileSource",Wj);Wj.prototype.Gd=function(a,b){var c=oc(a,"status-changed",function(){switch(a.getStatus()){case "loaded":var b=a.He["x-earth-engine-computation-profile"];this.P&&b&&this.P.ce(a.N.id,b);break;case "failed":case "aborted":this.P&&""!==a.N.id&&this.P.Fe(a.N.id),wc(c)}},void 0,this);a.Ca=this.Db(a.Ja,a.zoom);var d=t(this.Bc,this,a);Xj().cb(d,b)};
|
|
Wj.prototype.yd=function(){return[this.Hd,this.qb].join("-")};Wj.prototype.Bc=function(a,b){var c=Xj();if(a.ba||"aborted"==a.getStatus())Qj(c,b);else{var d=oc(a,"status-changed",function(){a.Tc in Hj&&(wc(d),Qj(c,b))});Gj(a)}};Wj.prototype.Db=function(a,b){a=[this.bd,this.Hd,b,a.x,a.y].join("/");a+="?token="+this.qb;this.P&&this.P.isEnabled()&&(a+="&profiling=1");return a};var Xj=function(){Yj||(Yj=new Vj(0,4));return Yj},Yj=null;var ak=function(a){B.call(this);this.hb={};this.gb={};this.xa=new qj(this);this.u=a};w(ak,B);var bk=[Kb&&!Ub("11")?"readystatechange":"load","abort","error"],ck=function(a,b,c){(c=n(c)?c:c.src)&&(a.hb[b]={src:c,md:m(void 0)?void 0:null})},dk=function(a,b){delete a.hb[b];var c=a.gb[b];c&&(delete a.gb[b],a.xa.ac(c,bk,a.Ld),Ab(a.gb)&&Ab(a.hb)&&a.dispatchEvent("complete"))};
|
|
ak.prototype.start=function(){var a=this.hb;Ma(wb(a),function(b){var c=a[b];if(c&&(delete a[b],!this.ba)){if(this.u){var d=this.u;d=(d?new me(le(d)):Da||(Da=new me)).le("IMG")}else d=new Image;c.md&&(d.crossOrigin=c.md);this.xa.da(d,bk,this.Ld);this.gb[b]=d;d.id=b;d.src=c.src}},this)};
|
|
ak.prototype.Ld=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.ba||dk(this,b.id)}};ak.prototype.f=function(){delete this.hb;delete this.gb;Ca(this.xa);ak.h.f.call(this)};var ek=function(a,b){yj.call(this,a,b)};w(ek,yj);u("ee.layers.ImageOverlay",ek);ek.prototype.nd=function(a,b,c,d){return new fk(a,b,c,d)};var fk=function(a,b,c,d){Ej.call(this,a,b,c,d);this.Qb=gk;this.Bd=this.J=this.Gb=null;this.lb=""};w(fk,Ej);
|
|
fk.prototype.ab=function(){try{var a=ae(this.Wd);if(a instanceof Yd&&a.constructor===Yd&&a.Zd===Xd)var b=a.Nb;else Ga("expected object of type SafeUrl, got '"+a+"' of type "+ra(a)),b="type_error:SafeUrl";this.lb=b;var c="about:invalid#zClosurez"!==this.lb?this.lb:this.Ca}catch(d){c=this.Ca}this.J=new ak;ck(this.J,this.N.id+"-image",c);this.Bd=nc(this.J,hk,function(a){"load"==a.type?(this.Gb=a.target,Ej.prototype.ab.call(this)):this.ob()},void 0,this);this.J.start()};
|
|
fk.prototype.Xa=function(){fk.h.Xa.call(this);this.J&&(wc(this.Bd),Ca(this.J))};fk.prototype.f=function(){fk.h.f.call(this);this.lb&&URL.revokeObjectURL(this.lb)};var hk=["load","abort","error"],gk=function(a){a.N.appendChild(a.Gb)};var X=function(){B.call(this);this.Xb=new ik(0,60);this.Ra=new C};w(X,B);u("ee.MapTileManager",X);X.Gc=void 0;X.xd=function(){return X.Gc?X.Gc:X.Gc=new X};X.prototype.send=function(a,b,c,d,e){if(this.Ra.get(a))throw Error("[ee.MapTileManager] ID in use");b=new jk(a,b,d,t(this.Pd,this),m(e)?e:1);this.Ra.set(a,b);a=t(this.Bc,this,b);this.Xb.cb(a,c);return b};X.prototype.abort=function(a){if(a=this.Ra.get(a))a.Ha||(a.Ha=!0,a.X=new y("abort")),this.Pd(a)};
|
|
X.prototype.Bc=function(a,b){if(a.J||a.Ha)kk(this,b);else if(a.qb=b,b.setActive(!0),b=new ak,a.J=b,!lk(a))throw Error("Cannot dispatch first request!");};X.prototype.Pd=function(a){this.Ra.remove(a.getId());a.J&&(kk(this,a.qb),a.J.aa());a.Cc&&a.Cc(a.X,a.Od)};var kk=function(a,b){b.setActive(!1);if(!Qj(a.Xb,b))throw Error("Object not released");};X.prototype.f=function(){X.h.f.call(this);this.Xb.aa();this.Xb=null;var a=this.Ra;Ma(a.w(),function(a){a.aa()});a.clear();this.Ra=null};
|
|
var jk=function(a,b,c,d,e){x.call(this);this.I=a;this.bd=b;this.Ae=m(e)?e:1;this.Cc=c;this.Ba=d};w(jk,x);h=jk.prototype;h.ed=0;h.Ha=!1;h.J=null;h.qb=null;h.X=null;h.Od=null;var mk=["load","abort","error"];jk.prototype.getId=function(){return this.I};jk.prototype.getUrl=function(){return this.bd};jk.prototype.re=function(a){if(this.Ha)this.Ba&&this.Ba(this);else switch(a.type){case "load":this.X=a;this.Ba&&this.Ba(this);break;case "error":case "abort":lk(this)||(this.X=a,this.Ba&&this.Ba(this))}};
|
|
jk.prototype.f=function(){jk.h.f.call(this);delete this.Cc;delete this.Ba};var lk=function(a){if(a.ed>a.Ae)return!1;a.ed++;dk(a.J,a.I);setTimeout(t(a.Ie,a),0);return!0};
|
|
jk.prototype.Ie=function(){if(!this.Ha){var a=t(function(a){this.Ha||(ck(this.J,this.I,a),nc(this.J,mk,t(this.re,this)),this.J.start())},this),b=this.getUrl();if(Af(b).U.ma("profiling")){var c=new E;c.Sa="blob";c.da("complete",t(function(){this.Od=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;if(200<=c.getStatus()&&300>c.getStatus())try{var d=URL.createObjectURL(lf(c))}catch(e){}a(d||b)},this));c.kb("ready",t(c.aa,c));c.send(b,"GET")}else a(b)}};var nk=function(){this.V=!1};
|
|
w(nk,x);nk.prototype.setActive=function(a){this.V=a};nk.prototype.Cd=function(){return this.V};var ik=function(a,b){Vj.call(this,a,b)};w(ik,Vj);ik.prototype.pc=function(){return new nk};ik.prototype.xb=function(a){a.aa()};ik.prototype.Mc=function(a){return!a.ba&&!a.Cd()};var Z=function(a,b,c,d,e){Tc.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.Zc=new D;this.Nc=1;this.P=e||null};w(Z,Tc);u("ee.MapLayerOverlay",Z);Z.prototype.hc=function(a){return oc(this,"tileevent",a)};Z.prototype.addTileCallback=Z.prototype.hc;Z.prototype.Qc=function(a){wc(a)};
|
|
Z.prototype.removeTileCallback=Z.prototype.Qc;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=Uc(this,a,b);a=[this.url,b].join("/")+"?token="+this.token;this.P&&this.P.isEnabled()&&(a+="&profiling=1");b=[b,this.ra,this.token].join("/");this.ra+=1;c=ge("DIV",{id:b});var d=(new Date).getTime()/1E3;this.ta.push(b);X.xd().send(b,a,d,t(this.qe,this,c,b));nj(this);return c};Z.prototype.yc=function(){return this.ta.length};
|
|
Z.prototype.releaseTile=function(a){X.xd().abort(a.id);this.Zc.remove(m(a.firstElementChild)?a.firstElementChild:ke(a.firstChild));""!==a.id&&(this.Yc.remove(a.id),this.P&&this.P.Fe(a.id))};Z.prototype.setOpacity=function(a){this.Nc=a;var b=this.Zc.Ga();Gc(b,function(b){xj(b,a)})};Z.prototype.getTile=Z.prototype.getTile;Z.prototype.setOpacity=Z.prototype.setOpacity;Z.prototype.releaseTile=Z.prototype.releaseTile;
|
|
Z.prototype.qe=function(a,b,c,d){"error"==c.type?(Xa(this.ta,b),this.Yc.add(b),this.dispatchEvent(c)):(Xa(this.ta,b),c.target&&"load"==c.type&&(c=c.target,this.Zc.add(c),1!=this.Nc&&xj(c,this.Nc),a.appendChild(c)),nj(this));this.P&&null!==d&&this.P.ce(b,d)};var ok=function(a,b){if(!(this instanceof ok))return new ok(a,b);this.ha=a;this.qa=b};w(ok,I);u("ee.SavedFunction",ok);ok.prototype.encode=function(a){return K("LoadAlgorithmById",this.ha).encode(a)};ok.prototype.K=function(){return this.qa};(function(){var a={},b="ee.data.setAuthToken ee.Geometry.LinearRing ee.Deserializer.fromJSON ee.Geometry.MultiLineString ee.Filter.neq ee.Image.prototype.clip ee.Filter.prototype.not ee.batch.Export.table.toDrive ee.Image.prototype.getInfo ee.data.getAuthClientId ee.Feature.prototype.getInfo ee.List ee.Collection.prototype.filterBounds ee.Geometry.Polygon ee.data.setApiKey ee.Geometry.prototype.toGeoJSONString ee.ImageCollection.prototype.first ee.call ee.Number ee.Geometry.Rectangle ee.ApiFunction._call ee.batch.Export.video.toCloudStorage ee.reset ee.InitState ee.Collection.prototype.filterMetadata ee.data.authenticateViaPrivateKey ee.ImageCollection.prototype.getInfo ee.Filter.and ee.Date ee.Geometry.Point ee.batch.Export.image.toAsset ee.Collection.prototype.limit ee.Function.prototype.call ee.Geometry.LineString ee.data.getAuthScopes ee.Collection.prototype.iterate ee.data.getThumbId ee.Filter.date ee.ComputedObject.prototype.aside ee.Filter.gte ee.TILE_SIZE ee.ImageCollection ee.batch.Export.table.toAsset ee.Filter.metadata ee.Collection.prototype.sort ee.data.getApiBaseUrl ee.Filter.inList ee.initialize ee.Geometry.prototype.toGeoJSON ee.Filter.bounds ee.data.getTileBaseUrl ee.ComputedObject.prototype.serialize ee.Collection.prototype.filterDate ee.Image.cat ee.Feature ee.Serializer.toReadableJSON ee.Collection.prototype.map ee.Image.prototype.rename ee.Serializer.encode ee.data.getMapId ee.batch.Export.video.toDrive ee.batch.Export.image.toCloudStorage ee.data.getXsrfToken ee.Collection.prototype.filter ee.apply ee.data.authenticateViaPopup ee.FeatureCollection.prototype.getDownloadURL ee.ComputedObject.prototype.getInfo ee.Image.rgb ee.Geometry ee.Terrain ee.data.makeThumbUrl ee.Element.prototype.set ee.data.getValue ee.Filter.or ee.Image.prototype.getThumbURL ee.FeatureCollection.prototype.getMap ee.Deserializer.decode ee.batch.Export.image.toDrive ee.ApiFunction.lookup ee.ApiFunction._apply ee.data.getInfo ee.Image.prototype.getMap ee.ImageCollection.prototype.select ee.data.getAuthToken ee.Image.prototype.select ee.Filter.gt ee.data.authenticateViaOauth ee.data.authenticate ee.data.setAuthTokenRefresher ee.data.clearAuthToken ee.Geometry.prototype.serialize ee.data.getTableDownloadId ee.ImageCollection.prototype.getMap ee.FeatureCollection ee.batch.Export.table.toCloudStorage ee.String ee.Geometry.MultiPoint ee.data.makeDownloadUrl ee.Dictionary ee.Image.prototype.getDownloadURL ee.Algorithms ee.Feature.prototype.getMap ee.data.makeTableDownloadUrl ee.Serializer.toJSON ee.Function.prototype.apply ee.FeatureCollection.prototype.getInfo ee.batch.Export.map.toCloudStorage ee.Filter.lt ee.Filter ee.FeatureCollection.prototype.select ee.Image.prototype.expression ee.Geometry.MultiPolygon ee.data.getDownloadId ee.Image ee.data.getList ee.Filter.eq ee.data.setDeadline ee.ComputedObject.prototype.evaluate ee.data.getTileUrl ee.batch.Export.videoMap.toCloudStorage ee.Filter.lte".split(" "),
|
|
c=["clientId tokenType accessToken expiresIn opt_extraScopes opt_callback opt_updateAuthLibrary".split(" "),["coords","opt_proj","opt_geodesic","opt_maxError"],["json"],["coords","opt_proj","opt_geodesic","opt_maxError"],["name","value"],["geometry"],[],"collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors".split(" "),["opt_callback"],[],["opt_callback"],["list"],["geometry"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["apiKey"],[],[],["func",
|
|
"var_args"],["number"],["coords","opt_proj","opt_geodesic","opt_evenOdd"],["name","var_args"],"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "),[],[],["name","operator","value"],["privateKey","opt_success","opt_error","opt_extraScopes"],["opt_callback"],["var_args"],["date","opt_tz"],["coords","opt_proj"],"image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels".split(" "),
|
|
["max","opt_property","opt_ascending"],["var_args"],["coords","opt_proj","opt_geodesic","opt_maxError"],[],["algorithm","opt_first"],["params","opt_callback"],["start","opt_end"],["func","var_args"],["name","value"],[],["args"],["collection","opt_description","opt_assetId"],["name","operator","value"],["property","opt_ascending"],[],["opt_leftField","opt_rightValue","opt_rightField","opt_leftValue"],["opt_baseurl","opt_tileurl","opt_successCallback","opt_errorCallback","opt_xsrfToken"],[],["geometry",
|
|
"opt_errorMargin"],[],[],["start","opt_end"],["var_args"],["geometry","opt_properties"],["obj"],["algorithm","opt_dropNulls"],["var_args"],["obj","opt_isCompound"],["params","opt_callback"],"collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "),"image opt_description opt_bucket opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions".split(" "),
|
|
[],["filter"],["func","namedArgs"],["opt_success","opt_error"],["opt_format","opt_selectors","opt_filename","opt_callback"],["opt_callback"],["r","g","b"],["geoJson","opt_proj","opt_geodesic","opt_evenOdd"],[],["id"],["var_args"],["params","opt_callback"],["var_args"],["params","opt_callback"],["opt_visParams","opt_callback"],["json"],"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(" "),
|
|
["name"],["name","namedArgs"],["id","opt_callback"],["opt_visParams","opt_callback"],["selectors","opt_names"],[],["var_args"],["name","value"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],["refresher"],[],[],["params","opt_callback"],["opt_visParams","opt_callback"],["args","opt_column"],"collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors".split(" "),["string"],
|
|
["coords","opt_proj"],["id"],["opt_dict"],["params","opt_callback"],[],["opt_visParams","opt_callback"],["id"],["obj"],["namedArgs"],["opt_callback"],"image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles".split(" "),["name","value"],["opt_filter"],["propertySelectors","opt_newProperties","opt_retainGeometry"],["expression","opt_map"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["params",
|
|
"opt_callback"],["opt_args"],["params","opt_callback"],["name","value"],["milliseconds"],["callback"],["mapid","x","y","z"],"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles".split(" "),["name","value"]];[Rf,Bh,Di,Ch,ci,V.prototype.clip,Q.prototype.Na,Rh,V.prototype.C,Wf,T.prototype.C,Ki,S.prototype.td,Dh,Qf,O.prototype.ad,W.prototype.first,hj,pi,zh,K,Th,fj,gj,S.prototype.vc,Of,W.prototype.C,
|
|
hi,zi,vh,Kh,S.prototype.limit,I.prototype.call,Ah,Xf,S.prototype.Dd,mg,ji,H.prototype.dd,ei,256,W,Sh,mi,S.prototype.sort,fg,ki,cj,O.prototype.$c,li,gg,H.prototype.A,S.prototype.uc,Ui,T,Pg,S.prototype.map,V.prototype.Qd,Ng,jg,Uh,Mh,hg,S.prototype.filter,ij,Jf,U.prototype.wa,H.prototype.C,Ti,O,Xi,ng,N.prototype.set,lg,ii,V.prototype.zc,U.prototype.getMap,Ci,Oh,bh,ch,zg,V.prototype.getMap,W.prototype.select,Vf,V.prototype.select,fi,Kf,Lf,Sf,Uf,O.prototype.A,qg,W.prototype.getMap,U,Qh,si,yh,pg,Fi,V.prototype.wa,
|
|
ej,T.prototype.getMap,rg,Og,I.prototype.apply,U.prototype.C,Ph,di,Q,U.prototype.select,V.prototype.tc,Eh,og,V,Ag,bi,dg,H.prototype.evaluate,kg,Vh,gi].forEach(function(d,e){d&&(a[d.toString()]={name:b[e],paramNames:c[e]})});k.EXPORTED_FN_INFO=a})();}).call(this);
|