diff --git a/demos/export-to-drive/appengine_config.py b/demos/export-to-drive/appengine_config.py index 9668241e2..3c2b6a848 100644 --- a/demos/export-to-drive/appengine_config.py +++ b/demos/export-to-drive/appengine_config.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Loads third-party Python libraries. `appengine_config.py` is automatically loaded when Google App Engine diff --git a/demos/export-to-drive/config.py b/demos/export-to-drive/config.py index f59aa43b8..d74a06b65 100644 --- a/demos/export-to-drive/config.py +++ b/demos/export-to-drive/config.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Required credentials configuration.""" # See instructions in the README.md file for how to fill these in. diff --git a/demos/export-to-drive/drive.py b/demos/export-to-drive/drive.py index cccde5388..119d8db9b 100644 --- a/demos/export-to-drive/drive.py +++ b/demos/export-to-drive/drive.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Helpers for interfacing with Google Drive.""" import googleapiclient.discovery diff --git a/demos/export-to-drive/server.py b/demos/export-to-drive/server.py index ff09fd645..ad73e3365 100644 --- a/demos/export-to-drive/server.py +++ b/demos/export-to-drive/server.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Web server for the export-to-Google-Drive EE demo application. The code in this file runs on App Engine. It's called when the user loads the diff --git a/demos/interactive-classifier/config.py b/demos/interactive-classifier/config.py index e05cbd467..ba5921413 100644 --- a/demos/interactive-classifier/config.py +++ b/demos/interactive-classifier/config.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Handles Earth Engine service account configuration.""" import ee diff --git a/demos/interactive-classifier/server.py b/demos/interactive-classifier/server.py index edff0845a..fb84a8979 100644 --- a/demos/interactive-classifier/server.py +++ b/demos/interactive-classifier/server.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """An example application that allows interactive classification training.""" import json diff --git a/demos/server-auth-python/config.py b/demos/server-auth-python/config.py index c639f05c0..62bd10a8a 100644 --- a/demos/server-auth-python/config.py +++ b/demos/server-auth-python/config.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """An example config.py file.""" import ee diff --git a/demos/server-auth-python/server.py b/demos/server-auth-python/server.py index 99875eae7..dff96c691 100644 --- a/demos/server-auth-python/server.py +++ b/demos/server-auth-python/server.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """A simple example of connecting to Earth Engine using App Engine.""" diff --git a/demos/trendy-lights/config.py b/demos/trendy-lights/config.py index fa8449571..119a39645 100644 --- a/demos/trendy-lights/config.py +++ b/demos/trendy-lights/config.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Required credentials configuration.""" diff --git a/demos/trendy-lights/server.py b/demos/trendy-lights/server.py index 805187be2..8e392526f 100644 --- a/demos/trendy-lights/server.py +++ b/demos/trendy-lights/server.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Web server for the Trendy Lights application. The overall architecture looks like: diff --git a/demos/wmts/app.py b/demos/wmts/app.py index 7325c84ec..5d12c5745 100644 --- a/demos/wmts/app.py +++ b/demos/wmts/app.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Handle the routing for the application.""" import collections diff --git a/demos/wmts/appengine_config.py b/demos/wmts/appengine_config.py index eaddaf8e9..b9397805b 100644 --- a/demos/wmts/appengine_config.py +++ b/demos/wmts/appengine_config.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """App Engine config file, used for dependency management for the proxy.""" # appengine_config.py from google.appengine.ext import vendor diff --git a/demos/wmts/config.py b/demos/wmts/config.py index f0bddd69e..807a41c16 100644 --- a/demos/wmts/config.py +++ b/demos/wmts/config.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Configuration constants.""" import os diff --git a/javascript/build/ee_api_js.js b/javascript/build/ee_api_js.js index 0a22f5c16..767e2d8b9 100644 --- a/javascript/build/ee_api_js.js +++ b/javascript/build/ee_api_js.js @@ -11,12 +11,12 @@ var ea=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return Object.assign:function(a,b){for(var c=1;c>>0),xa=0,za=function(a,b,c){return a.call.apply(a.bind, arguments)},Aa=function(a,b,c){if(!a)throw Error();if(2c&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b|| 1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},Ra=Array.prototype.forEach?function(a,b){z(null!=a.length);Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;ea-0)return[];for(var c=0;c>>0),$b=function(a){z(a,"Listener can not be null.");if("function"===typeof a)return a;z(a.handleEvent,"An object listener must have handleEvent method.");a[hc]||(a[hc]=function(b){return a.handleEvent(b)}); -return a[hc]};var A=function(){y.call(this);this.Ha=new Sb(this);this.Ik=this;this.Mf=null};x(A,y);A.prototype[xb]=!0;h=A.prototype;h.addEventListener=function(a,b,c,d){Zb(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){fc(this,a,b,c,d)}; -h.dispatchEvent=function(a){ic(this);var b=this.Mf;if(b){var c=[];for(var d=1;b;b=b.Mf)c.push(b),z(1E3>++d,"infinite loop")}b=this.Ik;d=a.type||a;if("string"===typeof a)a=new Ea(a,b);else if(a instanceof Ea)a.target=a.target||b;else{var e=a;a=new Ea(d,b);Rb(a,e)}e=!0;if(c)for(var g=c.length-1;!a.Zc&&0<=g;g--){var f=a.currentTarget=c[g];e=jc(f,d,!0,a)&&e}a.Zc||(f=a.currentTarget=b,e=jc(f,d,!0,a)&&e,a.Zc||(e=jc(f,d,!1,a)&&e));if(c)for(g=0;!a.Zc&&g>>0),$b=function(a){z(a,"Listener can not be null.");if("function"===typeof a)return a;z(a.handleEvent,"An object listener must have handleEvent method.");a[hc]||(a[hc]=function(b){return a.handleEvent(b)}); +return a[hc]};var A=function(){y.call(this);this.Ha=new Sb(this);this.Ik=this;this.Nf=null};x(A,y);A.prototype[xb]=!0;h=A.prototype;h.addEventListener=function(a,b,c,d){Zb(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){fc(this,a,b,c,d)}; +h.dispatchEvent=function(a){ic(this);var b=this.Nf;if(b){var c=[];for(var d=1;b;b=b.Nf)c.push(b),z(1E3>++d,"infinite loop")}b=this.Ik;d=a.type||a;if("string"===typeof a)a=new Ea(a,b);else if(a instanceof Ea)a.target=a.target||b;else{var e=a;a=new Ea(d,b);Rb(a,e)}e=!0;if(c)for(var g=c.length-1;!a.Zc&&0<=g;g--){var f=a.currentTarget=c[g];e=jc(f,d,!0,a)&&e}a.Zc||(f=a.currentTarget=b,e=jc(f,d,!0,a)&&e,a.Zc||(e=jc(f,d,!1,a)&&e));if(c)for(g=0;!a.Zc&&g=a.length)return pc;if(b in a)return{value:a[b++],done:!1};b++}};return c}throw Error("Not implemented");},rc=function(a,b){if(ua(a))Ra(a,b);else for(a=qc(a);;){var c=a.next();if(c.done)break;b.call(void 0,c.value,void 0,a)}};var vc=function(a){if(a instanceof sc||a instanceof tc||a instanceof uc)return a;if("function"==typeof a.next)return new sc(function(){return a});if("function"==typeof a[Symbol.iterator])return new sc(function(){return a[Symbol.iterator]()});if("function"==typeof a.Ca)return new sc(function(){return a.Ca()});throw Error("Not an iterator or iterable.");},sc=function(a){this.mf=a};sc.prototype.Ca=function(){return new tc(this.mf())};sc.prototype[Symbol.iterator]=function(){return new uc(this.mf())}; -sc.prototype.rg=function(){return new uc(this.mf())};var tc=function(a){this.Pc=a};p(tc,oc);tc.prototype.next=function(){return this.Pc.next()};tc.prototype[Symbol.iterator]=function(){return new uc(this.Pc)};tc.prototype.rg=function(){return new uc(this.Pc)};var uc=function(a){sc.call(this,function(){return a});this.Pc=a};p(uc,sc);uc.prototype.next=function(){return this.Pc.next()};var wc=function(a,b){this.A={};this.K=[];this.jd=this.size=0;var c=arguments.length;if(1=a.length)return pc;if(b in a)return{value:a[b++],done:!1};b++}};return c}throw Error("Not implemented");},rc=function(a,b){if(ua(a))Ra(a,b);else for(a=qc(a);;){var c=a.next();if(c.done)break;b.call(void 0,c.value,void 0,a)}};var vc=function(a){if(a instanceof sc||a instanceof tc||a instanceof uc)return a;if("function"==typeof a.next)return new sc(function(){return a});if("function"==typeof a[Symbol.iterator])return new sc(function(){return a[Symbol.iterator]()});if("function"==typeof a.Ca)return new sc(function(){return a.Ca()});throw Error("Not an iterator or iterable.");},sc=function(a){this.nf=a};sc.prototype.Ca=function(){return new tc(this.nf())};sc.prototype[Symbol.iterator]=function(){return new uc(this.nf())}; +sc.prototype.sg=function(){return new uc(this.nf())};var tc=function(a){this.Pc=a};p(tc,oc);tc.prototype.next=function(){return this.Pc.next()};tc.prototype[Symbol.iterator]=function(){return new uc(this.Pc)};tc.prototype.sg=function(){return new uc(this.Pc)};var uc=function(a){sc.call(this,function(){return a});this.Pc=a};p(uc,sc);uc.prototype.next=function(){return this.Pc.next()};var wc=function(a,b){this.A={};this.K=[];this.jd=this.size=0;var c=arguments.length;if(12*this.size&&xc(this),!0):!1};var xc=function(a){if(a.size!=a.K.length){for(var b=0,c=0;b=d.K.length)return pc;var g=d.K[b++];return{value:a?g:d.A[g],done:!1}};return e};h.lb=function(a){this.size=a};var yc=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Ac=function(a){if(a.R&&"function"==typeof a.R)a=a.R();else if(ua(a)||"string"===typeof a)a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},Bc=function(a){if(a.Z&&"function"==typeof a.Z)return a.Z();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(ua(a)){for(var b=[],c=a.length,d=0;dc)return!1;!(b instanceof Fc)&&5e&&(e+=d);return[a.fl,c,e,b.y].join("/")};Kc.prototype.Kc=function(){return this.yb.length};var Mc=function(a){Ea.call(this,"tileevent");this.count=a};x(Mc,Ea);var Nc=function(){},Oc=new Nc;function Pc(a){return Object.assign({},{P:{},Gl:{},keys:[],La:{},s:{},J:{},nh:!1},a)}var C=function(){this.h={}},E=function(a,b){return a.h.hasOwnProperty(b)?a.h[b]:null},F=function(a,b){return null!=a.h[b]};function Qc(a,b){return E(b,a)}function Rc(a,b,c){b[a]=c}function Sc(){return{}}function Tc(a,b){var c=new a;return null==b?c:Uc(b,Vc,Wc,Xc,a)}function Vc(a,b){return b[a]}function Wc(a,b,c){b.h[a]=c} +Fc.prototype[Symbol.iterator]=function(){return this.values()};Fc.prototype.lb=function(a){this.size=a};var Kc=function(a,b,c){A.call(this);this.fl=b;this.token=c;this.yb=[];this.qg=new Fc;this.wb=0;this.url=a};x(Kc,A);w("ee.AbstractOverlay",Kc);var Lc=function(a,b,c){var d=1<e&&(e+=d);return[a.fl,c,e,b.y].join("/")};Kc.prototype.Kc=function(){return this.yb.length};var Mc=function(a){Ea.call(this,"tileevent");this.count=a};x(Mc,Ea);var Nc=function(){},Oc=new Nc;function Pc(a){return Object.assign({},{P:{},Gl:{},keys:[],La:{},s:{},J:{},nh:!1},a)}var C=function(){this.h={}},E=function(a,b){return a.h.hasOwnProperty(b)?a.h[b]:null},F=function(a,b){return null!=a.h[b]};function Qc(a,b){return E(b,a)}function Rc(a,b,c){b[a]=c}function Sc(){return{}}function Tc(a,b){var c=new a;return null==b?c:Uc(b,Vc,Wc,Xc,a)}function Vc(a,b){return b[a]}function Wc(a,b,c){b.h[a]=c} function Xc(a){if(null==a)throw Error("Cannot deserialize, target constructor was null.");return new a} function Uc(a,b,c,d,e){e=d(e);for(var g=Yc(a,e),f=g.P||{},l=g.s||{},m=g.La||{},q=n(g.keys||[]),v=q.next(),B={};!v.done;B={Tc:B.Tc},v=q.next()){v=v.value;var D=b(v,a);if(null!=D){var Q=void 0;if(f.hasOwnProperty(v)){if(g.nh&&0===D.length)continue;Q=Zc(D,b,c,d,!0,!0,f[v])}else if(l.hasOwnProperty(v))Q=Zc(D,b,c,d,!1,!0,l[v]);else if(m.hasOwnProperty(v))B.Tc=m[v],Q=B.Tc.oa?D.map(function(Y){return function(T){return $c(T,Y.Tc,b,c,d)}}(B)):$c(D,B.Tc,b,c,d);else if(Array.isArray(D)){if(g.nh&&0===D.length)continue; Q=Zc(D,b,c,d,!0,!1)}else Q=D instanceof Nc?null:D;c(v,e,Q)}}return e}function $c(a,b,c,d,e){for(var g={},f=n(Object.keys(a)),l=f.next();!l.done;l=f.next()){l=l.value;var m=a[l];null!=m&&(g[l]=Zc(m,c,d,e,b.qa,b.pa,b.ja))}return g} -function Zc(a,b,c,d,e,g,f){if(g&&null==f)throw Error("Cannot deserialize a reference object without a constructor.");return null==a?a:e&&g?a.map(function(l){return Uc(l,b,c,d,f)}):e&&!g?a.map(function(l){return l}):!e&&g?Uc(a,b,c,d,f):a instanceof Nc?null:"object"===typeof a?JSON.parse(JSON.stringify(a)):a}function Yc(a,b){if(b instanceof C)a=Pc(b.i());else if(a instanceof C)a=Pc(a.i());else throw Error("Cannot find ClassMetadata.");return a};var ad;var dd=function(a,b){this.ig=a===bd&&b||"";this.uk=cd};dd.prototype.pc=!0;dd.prototype.oc=function(){return this.ig};dd.prototype.toString=function(){return"Const{"+this.ig+"}"};var ed=function(a){if(a instanceof dd&&a.constructor===dd&&a.uk===cd)return a.ig;Ka("expected object of type Const, got '"+a+"'");return"type_error:Const"},cd={},bd={};var gd=function(a,b){if(b!==fd)throw Error("TrustedResourceUrl is not meant to be built directly");this.Of=a};gd.prototype.toString=function(){return this.Of+""};gd.prototype.pc=!0;gd.prototype.oc=function(){return this.Of.toString()}; -var hd=function(a){if(a instanceof gd&&a.constructor===gd)return a.Of;Ka("expected object of type TrustedResourceUrl, got '%s' of type %s",a,ta(a));return"type_error:TrustedResourceUrl"},md=function(a){var b=ed(id);if(!jd.test(b))throw Error("Invalid TrustedResourceUrl format: "+b);var c=b.replace(kd,function(d,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));d=a[e];return d instanceof -dd?ed(d):encodeURIComponent(String(d))});return ld(c)},kd=/%{(\w+)}/g,jd=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),fd={},ld=function(a){if(void 0===ad){var b=null;var c=r.trustedTypes;if(c&&c.createPolicy)try{b=c.createPolicy("goog#html",{createHTML:Ca,createScript:Ca,createScriptURL:Ca})}catch(d){r.console&&r.console.error(d.message)}ad=b}a=(b=ad)?b.createScriptURL(a):a;return new gd(a,fd)};var od=function(a,b){if(b!==nd)throw Error("SafeUrl is not meant to be built directly");this.Nf=a};od.prototype.toString=function(){return this.Nf.toString()};od.prototype.pc=!0;od.prototype.oc=function(){return this.Nf.toString()};var pd=function(a){if(a instanceof od&&a.constructor===od)return a.Nf;Ka("expected object of type SafeUrl, got '"+a+"' of type "+ta(a));return"type_error:SafeUrl"},nd={},qd=new od("about:invalid#zClosurez",nd);new od("about:blank",nd);var rd={},sd=function(){if(rd!==rd)throw Error("SafeStyle is not meant to be built directly");this.ii="";this.pc=!0};sd.prototype.oc=function(){return this.ii};sd.prototype.toString=function(){return this.ii.toString()};new sd;var td={},ud=function(){if(td!==td)throw Error("SafeStyleSheet is not meant to be built directly");this.hi="";this.pc=!0};ud.prototype.toString=function(){return this.hi.toString()};ud.prototype.oc=function(){return this.hi};new ud;var vd={},wd=function(){var a=r.trustedTypes&&r.trustedTypes.emptyHTML||"";if(vd!==vd)throw Error("SafeHtml is not meant to be built directly");this.gi=a;this.pc=!0};wd.prototype.oc=function(){return this.gi.toString()};wd.prototype.toString=function(){return this.gi.toString()};new wd;var yd=function(a,b){if(!t(a)||!t(a)||!t(a)||1!==a.nodeType||a.namespaceURI&&"http://www.w3.org/1999/xhtml"!==a.namespaceURI||a.tagName.toUpperCase()!=="SCRIPT".toString()){var c="SCRIPT".toString()+"; got: ";if(t(a))try{var d=a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a)}catch(e){d=""}else d=void 0===a?"undefined":null===a?"null":typeof a;Ka("Argument is not an HTML Element with tag name "+(c+d))}a:{c=(a.ownerDocument&&a.ownerDocument.defaultView|| +function Zc(a,b,c,d,e,g,f){if(g&&null==f)throw Error("Cannot deserialize a reference object without a constructor.");return null==a?a:e&&g?a.map(function(l){return Uc(l,b,c,d,f)}):e&&!g?a.map(function(l){return l}):!e&&g?Uc(a,b,c,d,f):a instanceof Nc?null:"object"===typeof a?JSON.parse(JSON.stringify(a)):a}function Yc(a,b){if(b instanceof C)a=Pc(b.i());else if(a instanceof C)a=Pc(a.i());else throw Error("Cannot find ClassMetadata.");return a};var ad;var dd=function(a,b){this.jg=a===bd&&b||"";this.uk=cd};dd.prototype.pc=!0;dd.prototype.oc=function(){return this.jg};dd.prototype.toString=function(){return"Const{"+this.jg+"}"};var ed=function(a){if(a instanceof dd&&a.constructor===dd&&a.uk===cd)return a.jg;Ka("expected object of type Const, got '"+a+"'");return"type_error:Const"},cd={},bd={};var gd=function(a,b){if(b!==fd)throw Error("TrustedResourceUrl is not meant to be built directly");this.Pf=a};gd.prototype.toString=function(){return this.Pf+""};gd.prototype.pc=!0;gd.prototype.oc=function(){return this.Pf.toString()}; +var hd=function(a){if(a instanceof gd&&a.constructor===gd)return a.Pf;Ka("expected object of type TrustedResourceUrl, got '%s' of type %s",a,ta(a));return"type_error:TrustedResourceUrl"},md=function(a){var b=ed(id);if(!jd.test(b))throw Error("Invalid TrustedResourceUrl format: "+b);var c=b.replace(kd,function(d,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));d=a[e];return d instanceof +dd?ed(d):encodeURIComponent(String(d))});return ld(c)},kd=/%{(\w+)}/g,jd=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),fd={},ld=function(a){if(void 0===ad){var b=null;var c=r.trustedTypes;if(c&&c.createPolicy)try{b=c.createPolicy("goog#html",{createHTML:Ca,createScript:Ca,createScriptURL:Ca})}catch(d){r.console&&r.console.error(d.message)}ad=b}a=(b=ad)?b.createScriptURL(a):a;return new gd(a,fd)};var od=function(a,b){if(b!==nd)throw Error("SafeUrl is not meant to be built directly");this.Of=a};od.prototype.toString=function(){return this.Of.toString()};od.prototype.pc=!0;od.prototype.oc=function(){return this.Of.toString()};var pd=function(a){if(a instanceof od&&a.constructor===od)return a.Of;Ka("expected object of type SafeUrl, got '"+a+"' of type "+ta(a));return"type_error:SafeUrl"},nd={},qd=new od("about:invalid#zClosurez",nd);new od("about:blank",nd);var rd={},sd=function(){if(rd!==rd)throw Error("SafeStyle is not meant to be built directly");this.ii="";this.pc=!0};sd.prototype.oc=function(){return this.ii};sd.prototype.toString=function(){return this.ii.toString()};new sd;var td={},ud=function(){if(td!==td)throw Error("SafeStyleSheet is not meant to be built directly");this.hi="";this.pc=!0};ud.prototype.toString=function(){return this.hi.toString()};ud.prototype.oc=function(){return this.hi};new ud;var vd={},wd=function(){var a=r.trustedTypes&&r.trustedTypes.emptyHTML||"";if(vd!==vd)throw Error("SafeHtml is not meant to be built directly");this.gi=a;this.pc=!0};wd.prototype.oc=function(){return this.gi.toString()};wd.prototype.toString=function(){return this.gi.toString()};new wd;var yd=function(a,b){if(!t(a)||!t(a)||!t(a)||1!==a.nodeType||a.namespaceURI&&"http://www.w3.org/1999/xhtml"!==a.namespaceURI||a.tagName.toUpperCase()!=="SCRIPT".toString()){var c="SCRIPT".toString()+"; got: ";if(t(a))try{var d=a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a)}catch(e){d=""}else d=void 0===a?"undefined":null===a?"null":typeof a;Ka("Argument is not an HTML Element with tag name "+(c+d))}a:{c=(a.ownerDocument&&a.ownerDocument.defaultView|| r).document;if(c.querySelector&&(c=c.querySelector("script[nonce]"))&&(c=c.nonce||c.getAttribute("nonce"))&&xd.test(c))break a;c=""}c&&a.setAttribute("nonce",c);a.src=hd(b)},xd=/^[\w+/_-]+[=]{0,2}$/;var zd=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1b)throw Error("Bad port number "+b);a.uc=b}else a.uc=null};Dd.prototype.getPath=function(){return this.Wb};Dd.prototype.setPath=function(a,b){Fd(this);this.Wb=b?Id(a,!0):a;return this};var Hd=function(a,b,c){Fd(a);b instanceof Jd?(a.Aa=b,a.Aa.bg(a.ya)):(c||(b=Kd(b,Pd)),a.Aa=new Jd(b,a.ya))};Dd.prototype.getQuery=function(){return this.Aa.toString()}; -Dd.prototype.removeParameter=function(a){Fd(this);this.Aa.remove(a);return this};var Fd=function(a){if(a.al)throw Error("Tried to modify a read-only Uri");};Dd.prototype.bg=function(a){this.ya=a;this.Aa&&this.Aa.bg(a)}; +var Ed=function(a,b,c){Fd(a);a.ub=c?Id(b,!0):b;a.ub&&(a.ub=a.ub.replace(/:$/,""))},Gd=function(a,b){Fd(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.uc=b}else a.uc=null};Dd.prototype.getPath=function(){return this.Wb};Dd.prototype.setPath=function(a,b){Fd(this);this.Wb=b?Id(a,!0):a;return this};var Hd=function(a,b,c){Fd(a);b instanceof Jd?(a.Aa=b,a.Aa.cg(a.ya)):(c||(b=Kd(b,Pd)),a.Aa=new Jd(b,a.ya))};Dd.prototype.getQuery=function(){return this.Aa.toString()}; +Dd.prototype.removeParameter=function(a){Fd(this);this.Aa.remove(a);return this};var Fd=function(a){if(a.al)throw Error("Tried to modify a read-only Uri");};Dd.prototype.cg=function(a){this.ya=a;this.Aa&&this.Aa.cg(a)}; var Qd=function(a){return a instanceof Dd?a.clone():new Dd(a)},Id=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Kd=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Rd),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Rd=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Ld=/[#\/\?@]/g,Nd=/[#\?:]/g,Md=/[#\?]/g,Pd=/[#\?@]/g,Od=/#/g,Jd=function(a,b){this.X=this.M=null;this.sa=a||null;this.ya=!!b},Sd= function(a){a.M||(a.M=new Map,a.X=0,a.sa&&Cd(a.sa,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=Jd.prototype;h.R=function(){Sd(this);return this.X};h.add=function(a,b){Sd(this);this.sa=null;a=Td(this,a);var c=this.M.get(a);c||this.M.set(a,c=[]);c.push(b);this.X=La(this.X)+1;return this};h.remove=function(a){Sd(this);a=Td(this,a);return this.M.has(a)?(this.sa=null,this.X=La(this.X)-this.M.get(a).length,this.M.delete(a)):!1};h.clear=function(){this.M=this.sa=null;this.X=0}; h.isEmpty=function(){Sd(this);return 0==this.X};h.Nb=function(a){Sd(this);a=Td(this,a);return this.M.has(a)};h.Fc=function(a){var b=this.Z();return Xa(b,a)};h.forEach=function(a,b){Sd(this);this.M.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};h.rb=function(){Sd(this);for(var a=Array.from(this.M.values()),b=Array.from(this.M.keys()),c=[],d=0;d