(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var k,aa=function(a){var b=0;return function(){return b=e}}); ea("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=oa(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g=f}});ea("String.prototype.repeat",function(a){return a?a:function(b){var c=oa(this,null,"repeat");if(0>b||1342177279>>=1)c+=c;return d}}); var pa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},qa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;cc&&(c=Math.max(c+e,0));c>>0),Da=0,Fa=function(a,b,c){return a.call.apply(a.bind,arguments)},Ga=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},Ya=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="string"===typeof a?a.split(""):a,f=0;fb?null:"string"=== typeof a?a.charAt(b):a[b]},gb=function(a,b){return 0<=Wa(a,b)},hb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},jb=function(a,b){b=Wa(a,b);var c;(c=0<=b)&&ib(a,b);return c},ib=function(a,b){y(null!=a.length);Array.prototype.splice.call(a,b,1)},kb=function(a){return Array.prototype.concat.apply([],arguments)},lb=function(a){var b=a.length;if(0=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},ob=function(a){for(var b={},c=0,d=0;da-0)return[];for(var c=0;c/g,vb=/"/g,wb=/'/g,xb=/\x00/g,yb=/[\x00&<>"']/,zb=function(a,b){return ab?1:0};var Ab;a:{var Bb=r.navigator;if(Bb){var Cb=Bb.userAgent;if(Cb){Ab=Cb;break a}}Ab=""}var Db=function(a){return-1!=Ab.indexOf(a)};var Eb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Fb=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},Gb=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d},Hb=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},Jb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Kb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},Lb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},Nb=function(a){var b= Mb,c;for(c in b)if(a.call(void 0,b[c],c,b))return c},Ob=function(a){for(var b in a)return!1;return!0},Pb=function(a,b){b in a&&delete a[b]},Qb=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Rb=function(a){var b=xa(a);if("object"==b||"array"==b){if(Aa(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=Rb(a[c]);return b}return a},Sb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Tb=function(a,b){for(var c,d,e=1;e"}else f=void 0===a?"undefined":null===a?"null":typeof a;Ra("Argument is not a %s (or a non-Element, non-Location mock); got: %s", "HTMLScriptElement",f)}a.src=cc(b);(b=a.ownerDocument&&a.ownerDocument.defaultView)&&b!=r?b=va(b.document):(null===ua&&(ua=va(r.document)),b=ua);b&&a.setAttribute("nonce",b)};var rc=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1")&&(a=a.replace(ub,">")),-1!=a.indexOf('"')&&(a=a.replace(vb,""")),-1!=a.indexOf("'")&&(a=a.replace(wb,"'")),-1!=a.indexOf("\x00")&&(a=a.replace(xb,"�")));return a},tc=function(a){var b=1;a= a.split(":");for(var c=[];0parseFloat(Ec)){Dc=String(Gc);break a}}Dc=Ec} var Hc=Dc,vc={},Ic=function(a){return wc(a,function(){for(var b=0,c=rb(String(Hc)).split("."),d=rb(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f=a.keyCode)a.keyCode=-1}catch(b){}};var Sc="closure_listenable_"+(1E6*Math.random()|0),Tc=function(a){return!(!a||!a[Sc])},Uc=0;var Vc=function(a,b,c,d,e){this.listener=a;this.Nd=null;this.src=b;this.type=c;this.capture=!!d;this.kb=e;this.key=++Uc;this.sc=this.sd=!1},Wc=function(a){a.sc=!0;a.listener=null;a.Nd=null;a.src=null;a.kb=null};var Xc=function(a){this.src=a;this.$={};this.jd=0};Xc.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.$[f];a||(a=this.$[f]=[],this.jd++);var g=Yc(a,b,d,e);-1d.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.Xb&&0<=e;e--){b.currentTarget=d[e];var f=nd(d[e],a,!0,b);c=c&&f}for(e=0;!b.Xb&&e>>0),ed=function(a){y(a,"Listener can not be null.");if(Aa(a))return a;y(a.handleEvent,"An object listener must have handleEvent method.");a[od]||(a[od]=function(b){return a.handleEvent(b)});return a[od]};var z=function(){Ka.call(this);this.Ba=new Xc(this);this.vj=this;this.zf=null};x(z,Ka);z.prototype[Sc]=!0;k=z.prototype;k.addEventListener=function(a,b,c,d){dd(this,a,b,c,d)};k.removeEventListener=function(a,b,c,d){kd(this,a,b,c,d)}; k.dispatchEvent=function(a){pd(this);var b=this.zf;if(b){var c=[];for(var d=1;b;b=b.zf)c.push(b),y(1E3>++d,"infinite loop")}b=this.vj;d=a.type||a;if("string"===typeof a)a=new Ma(a,b);else if(a instanceof Ma)a.target=a.target||b;else{var e=a;a=new Ma(d,b);Tb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.Xb&&0<=f;f--){var g=a.currentTarget=c[f];e=qd(g,d,!0,a)&&e}a.Xb||(g=a.currentTarget=b,e=qd(g,d,!0,a)&&e,a.Xb||(e=qd(g,d,!1,a)&&e));if(c)for(f=0;!a.Xb&&f=a.length)throw rd;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},ud=function(a,b){if(ya(a))try{Ya(a,b,void 0)}catch(c){if(c!==rd)throw c;}else{a=td(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==rd)throw c;}}};var vd=function(a,b){this.l={};this.H=[];this.ld=this.I=0;var c=arguments.length;if(12*this.I&&wd(this),!0):!1};var wd=function(a){if(a.I!=a.H.length){for(var b=0,c=0;b=d.H.length)throw rd;var f=d.H[b++];return a?f:d.l[f]};return e};var xd=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var zd=function(a){if(a.M&&"function"==typeof a.M)a=a.M();else if(ya(a)||"string"===typeof a)a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},Ad=function(a){if(a.T&&"function"==typeof a.T)return a.T();if("string"===typeof a)return a.split("");if(ya(a)){for(var b=[],c=a.length,d=0;dc)return!1;!(b instanceof Ed)&&5e&&(e+=d);return[a.Rj,c,e,b.y].join("/")};Hd.prototype.Nc=function(){return this.yb.length};var Jd=function(a){Ma.call(this,"tileevent");this.count=a};x(Jd,Ma);var Kd=function(){},Ld=new Kd;function Md(a){return Object.assign({S:{},pk:{},keys:[],xa:{},s:{},K:{}},a)}var A=function(){this.a={}},C=function(a,b){return a.a.hasOwnProperty(b)?a.a[b]:null},D=function(a,b){return null!=a.a[b]};function Nd(a,b){return C(b,a)}function Od(a,b,c){b[a]=c}function Pd(){return{}}function Qd(a,b){var c=new a;return null==b?c:Rd(b,Sd,Td,Ud,a)}function Sd(a,b){return b[a]}function Td(a,b,c){b.a[a]=c} function Ud(a){if(null==a)throw Error("Cannot deserialize, target constructor was null.");return new a} function Rd(a,b,c,d,e){e=d(e);var f=Vd(a,e),g=f.S||{},h=f.s||{},m=f.xa||{},p={};f=n(f.keys||[]);for(var t=f.next();!t.done;p={Bc:p.Bc},t=f.next()){t=t.value;var B=b(t,a);if(null!=B){var E=void 0;g.hasOwnProperty(t)?E=Wd(B,b,c,d,!0,!0,g[t]):h.hasOwnProperty(t)?E=Wd(B,b,c,d,!1,!0,h[t]):m.hasOwnProperty(t)?(p.Bc=m[t],E=p.Bc.la?B.map(function(ba){return function(Ca){return Xd(Ca,ba.Bc,b,c,d)}}(p)):Xd(B,p.Bc,b,c,d)):E=Array.isArray(B)?Wd(B,b,c,d,!0,!1):B instanceof Kd?null:B;c(t,e,E)}}return e} function Xd(a,b,c,d,e){for(var f={},g=n(Object.keys(a)),h=g.next();!h.done;h=g.next()){h=h.value;var m=a[h];null!=m&&(f[h]=Wd(m,c,d,e,b.na,b.ma,b.fa))}return f}function Wd(a,b,c,d,e,f,g){if(f&&null==g)throw Error("Cannot deserialize a reference object without a constructor.");return null==a?a:e&&f?a.map(function(h){return Rd(h,b,c,d,g)}):e&&!f?a.map(function(h){return h}):!e&&f?Rd(a,b,c,d,g):a instanceof Kd?null:"object"===typeof a?JSON.parse(JSON.stringify(a)):a} function Vd(a,b){if(b instanceof A)a=Md(b.f());else if(a instanceof A)a=Md(a.f());else throw Error("Cannot find ClassMetadata.");return a};var Yd=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Zd=function(a,b){if(a){a=a.split("&");for(var c=0;cb)throw Error("Bad port number "+b);a.rc=b}else a.rc=null};$d.prototype.getPath=function(){return this.lb};$d.prototype.setPath=function(a,b){be(this);this.lb=b?fe(a,!0):a;return this};var de=function(a,b,c){be(a);b instanceof ge?(a.ya=b,a.ya.Pf(a.va)):(c||(b=he(b,me)),a.ya=new ge(b,a.va))};$d.prototype.getQuery=function(){return this.ya.toString()}; $d.prototype.removeParameter=function(a){be(this);this.ya.remove(a);return this};var be=function(a){if(a.Nj)throw Error("Tried to modify a read-only Uri");};$d.prototype.Pf=function(a){this.va=a;this.ya&&this.ya.Pf(a)}; var ne=function(a){return a instanceof $d?a.clone():new $d(a,void 0)},fe=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},he=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,oe),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},oe=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},ie=/[#\/\?@]/g,ke=/[#\?:]/g,je=/[#\?]/g,me=/[#\?@]/g,le=/#/g,ge=function(a,b){this.I=this.N=null;this.qa=a||null;this.va=!!b}, pe=function(a){a.N||(a.N=new vd,a.I=0,a.qa&&Zd(a.qa,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};k=ge.prototype;k.M=function(){pe(this);return this.I};k.add=function(a,b){pe(this);this.qa=null;a=qe(this,a);var c=this.N.get(a);c||this.N.set(a,c=[]);c.push(b);this.I=Sa(this.I)+1;return this};k.remove=function(a){pe(this);a=qe(this,a);return this.N.rb(a)?(this.qa=null,this.I=Sa(this.I)-this.N.get(a).length,this.N.remove(a)):!1};k.clear=function(){this.N=this.qa=null;this.I=0}; k.isEmpty=function(){pe(this);return 0==this.I};k.rb=function(a){pe(this);a=qe(this,a);return this.N.rb(a)};k.Gc=function(a){var b=this.T();return gb(b,a)};k.forEach=function(a,b){pe(this);this.N.forEach(function(c,d){Ya(c,function(e){a.call(b,e,d,this)},this)},this)};k.Ea=function(){pe(this);for(var a=this.N.T(),b=this.N.Ea(),c=[],d=0;d