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