(function(){'use strict';var n,aa=typeof Object.create=="function"?Object.create:function(a){function b(){}b.prototype=a;return new b},ba=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a}; function ca(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b0;){var a=this.g.pop();if(a in this.i)return a}return null};sa.prototype.getNext=sa.prototype.h;function ta(a){this.g=new y;this.h=a}function ua(a,b){qa(a.g);var c=a.g.o;if(c)return va(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return wa(a)} function va(a,b,c,d){try{var e=b.call(a.g.o,c);pa(e);if(!e.done)return a.g.B=!1,e;var g=e.value}catch(f){return a.g.o=null,ra(a.g,f),wa(a)}a.g.o=null;d.call(a.g,g);return wa(a)}function wa(a){for(;a.g.h;)try{var b=a.h(a.g);if(b)return a.g.B=!1,{value:b.value,done:!1}}catch(c){a.g.i=void 0,ra(a.g,c)}a.g.B=!1;if(a.g.j){b=a.g.j;a.g.j=null;if(b.W)throw b.V;return{value:b.return,done:!0}}return{value:void 0,done:!0}} function xa(a){this.next=function(b){qa(a.g);a.g.o?b=va(a,a.g.o.next,b,a.g.C):(a.g.C(b),b=wa(a));return b};this.throw=function(b){qa(a.g);a.g.o?b=va(a,a.g.o["throw"],b,a.g.C):(ra(a.g,b),b=wa(a));return b};this.return=function(b){return ua(a,b)};this[Symbol.iterator]=function(){return this}}function ya(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function g(f){f.done?d(f.value):Promise.resolve(f.value).then(b,c).then(g,e)}g(a.next())})} function z(a){return ya(new xa(new ta(a)))}function za(){for(var a=Number(this),b=[],c=a;c>>0)+"_",e=0;return b}); q("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");ba(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return Aa(ka(this))}});return a});function Aa(a){a={next:a};a[Symbol.iterator]=function(){return this};return a} q("Promise",function(a){function b(f){this.g=0;this.i=void 0;this.h=[];this.o=!1;var h=this.j();try{f(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(f){return f instanceof b?f:new b(function(h){h(f)})}if(a)return a;c.prototype.h=function(f){if(this.g==null){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(f)};var e=p.setTimeout;c.prototype.i=function(f){e(f,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var f=this.g;this.g=[];for(var h=0;h=g}}); q("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=t(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return l==="object"&&k!==null||l==="function"}function e(k){if(!w(k,f)){var l=new c;ba(k,f,{value:l})}}function g(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}), m=new a([[k,2],[l,3]]);if(m.get(k)!=2||m.get(l)!=3)return!1;m.delete(k);m.set(l,4);return!m.has(k)&&m.get(l)==4}catch(u){return!1}}())return a;var f="$jscomp_hidden_"+Math.random();g("freeze");g("preventExtensions");g("seal");var h=0;b.prototype.set=function(k,l){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!w(k,f))throw Error("WeakMap key fail: "+k);k[f][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&w(k,f)?k[f][this.g]:void 0};b.prototype.has=function(k){return d(k)&&w(k, f)&&w(k[f],this.g)};b.prototype.delete=function(k){return d(k)&&w(k,f)&&w(k[f],this.g)?delete k[f][this.g]:!1};return b}); q("Map",function(a){function b(){var h={};return h.F=h.next=h.head=h}function c(h,k){var l=h[1];return Aa(function(){if(l){for(;l.head!=h[1];)l=l.F;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;l=="object"||l=="function"?g.has(k)?l=g.get(k):(l=""+ ++f,g.set(k,l)):l="p_"+k;var m=h[0][l];if(m&&w(h[0],l))for(h=0;h2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}function Ja(a,b,c){Ja=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Ha:Ia;return Ja.apply(null,arguments)} function Ka(a,b){function c(){}c.prototype=b.prototype;a.O=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.va=function(d,e,g){for(var f=Array(arguments.length-2),h=2;h=0)&&Array.prototype.splice.call(a,b,1);return c};/* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ var Pa=globalThis.trustedTypes,Qa;function Ra(){var a=null;if(!Pa)return a;try{var b=function(c){return c};a=Pa.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){}return a};function Sa(a){this.g=a}Sa.prototype.toString=function(){return this.g+""};function Ta(a){var b;Qa===void 0&&(Qa=Ra());a=(b=Qa)?b.createScriptURL(a):a;return new Sa(a)};var Ua=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;function Va(a,b){b=Ua.test(b)?b:void 0;b!==void 0&&a.open(b,void 0,void 0)}function Wa(a){a=a===void 0?document:a;var b,c;a=(c=(b=a).querySelector)==null?void 0:c.call(b,"script[nonce]");return a==null?"":a.nonce||a.getAttribute("nonce")||""};function Xa(a,b){if(b instanceof Sa)b=b.g;else throw Error("");a.src=b;(b=Wa(a.ownerDocument))&&a.setAttribute("nonce",b)};var Ya="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Za(a,b){for(var c,d,e=1;e=0){var g=a[c].substring(0,d);e=a[c].substring(d+1)}else g=a[c];b(g,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};function bb(a){this.h=this.o=this.j="";this.u=null;this.m=this.g="";this.l=!1;var b;a instanceof bb?(this.l=a.l,cb(this,a.j),this.o=a.o,this.h=a.h,db(this,a.u),this.g=a.g,eb(this,fb(a.i)),this.m=a.m):a&&(b=String(a).match($a))?(this.l=!1,cb(this,b[1]||"",!0),this.o=gb(b[2]||""),this.h=gb(b[3]||"",!0),db(this,b[4]),this.g=gb(b[5]||"",!0),eb(this,b[6]||"",!0),this.m=gb(b[7]||"")):(this.l=!1,this.i=new hb(null,this.l))} bb.prototype.toString=function(){var a=[],b=this.j;b&&a.push(ib(b,jb,!0),":");var c=this.h;if(c||b=="file")a.push("//"),(b=this.o)&&a.push(ib(b,jb,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.u,c!=null&&a.push(":",String(c));if(c=this.g)this.h&&c.charAt(0)!="/"&&a.push("/"),a.push(ib(c,c.charAt(0)=="/"?kb:lb,!0));(c=this.i.toString())&&a.push("?",c);(c=this.m)&&a.push("#",ib(c,mb));return a.join("")}; bb.prototype.resolve=function(a){var b=new bb(this),c=!!a.j;c?cb(b,a.j):c=!!a.o;c?b.o=a.o:c=!!a.h;c?b.h=a.h:c=a.u!=null;var d=a.g;if(c)db(b,a.u);else if(c=!!a.g){if(d.charAt(0)!="/")if(this.h&&!this.g)d="/"+d;else{var e=b.g.lastIndexOf("/");e!=-1&&(d=b.g.slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(e.indexOf("./")!=-1||e.indexOf("/.")!=-1){d=e.lastIndexOf("/",0)==0;e=e.split("/");for(var g=[],f=0;f1||g.length==1&& g[0]!="")&&g.pop(),d&&f==e.length&&g.push("")):(g.push(h),d=!0)}d=g.join("/")}else d=e}c?b.g=d:c=a.i.toString()!=="";c?eb(b,fb(a.i)):c=!!a.m;c&&(b.m=a.m);return b};function cb(a,b,c){a.j=c?gb(b,!0):b;a.j&&(a.j=a.j.replace(/:$/,""))}function db(a,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.u=b}else a.u=null}function eb(a,b,c){b instanceof hb?(a.i=b,nb(a.i,a.l)):(c||(b=ib(b,ob)),a.i=new hb(b,a.l))}function B(a,b,c){a.i.set(b,c);return a} function gb(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function ib(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,pb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function pb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var jb=/[#\/\?@]/g,lb=/[#\?:]/g,kb=/[#\?]/g,ob=/[#\?@]/g,mb=/#/g;function hb(a,b){this.h=this.g=null;this.i=a||null;this.j=!!b} function C(a){a.g||(a.g=new Map,a.h=0,a.i&&ab(a.i,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))}n=hb.prototype;n.add=function(a,b){C(this);this.i=null;a=qb(this,a);var c=this.g.get(a);c||this.g.set(a,c=[]);c.push(b);this.h+=1;return this};function rb(a,b){C(a);b=qb(a,b);a.g.has(b)&&(a.i=null,a.h-=a.g.get(b).length,a.g.delete(b))}n.clear=function(){this.g=this.i=null;this.h=0};function sb(a,b){C(a);b=qb(a,b);return a.g.has(b)} n.forEach=function(a,b){C(this);this.g.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};function tb(a,b){C(a);var c=[];if(typeof b==="string")sb(a,b)&&(c=c.concat(a.g.get(qb(a,b))));else for(a=Array.from(a.g.values()),b=0;b0?String(a[0]):b};n.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var a=[],b=Array.from(this.g.keys()),c=0;c0)){this.i=null;d=this.g;var g=d.set;e=qb(this,e);var f=c.length;if(f>0){for(var h=Array(f),k=0;kb.length)return!1;if(a.lengthe)return!1;if(d>>0:void 0}function dc(a){return a==null||typeof a==="string"?a:void 0}function ec(a,b,c,d){if(a!=null&&a[Ib]===Rb)return a;if(!Array.isArray(a))return c?d&2?((a=b[Gb])||(a=new b,Ob(a.g),a=b[Gb]=a),b=a):b=new b:b=void 0,b;c=a[D]|0;d=c|d&32|d&2;d!==c&&E(a,d);return new b(a)} function fc(a,b,c){if(b){if(typeof a!=="string")throw Error();return a}var d;return(d=dc(a))!=null?d:c?"":void 0};function hc(a){return a};var ic={},jc=function(){try{var a=function(){return da(Map,[],this.constructor)};r(a,Map);zb(new a);return!1}catch(b){return!0}}();function kc(){this.g=new Map}n=kc.prototype;n.get=function(a){return this.g.get(a)};n.set=function(a,b){this.g.set(a,b);this.size=this.g.size;return this};n.delete=function(a){a=this.g.delete(a);this.size=this.g.size;return a};n.clear=function(){this.g.clear();this.size=this.g.size};n.has=function(a){return this.g.has(a)};n.entries=function(){return this.g.entries()}; n.keys=function(){return this.g.keys()};n.values=function(){return this.g.values()};n.forEach=function(a,b){return this.g.forEach(a,b)};kc.prototype[Symbol.iterator]=function(){return this.entries()};var G=function(){function a(){return da(Map,[],this.constructor)}if(jc)return Object.setPrototypeOf(kc.prototype,Map.prototype),Object.defineProperties(kc.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),kc;r(a,Map);return a}();function lc(a){return a} function H(a,b,c,d){c=c===void 0?lc:c;d=d===void 0?lc:d;var e=G.call(this)||this;e.L=a[D]|0;e.J=b;e.T=c;e.Y=e.J?mc:d;for(var g=0;g=h){var x=e-m,J=void 0;((J=b)!=null?J:b={})[x]=v}else g[e]=v;if(u)for(var K in u)a=u[K],a!=null&&(a=c(a,d))!=null&&(f=+K,e=void 0,l&&!Number.isNaN(f)&& (e=f+m)=Yb&&a<=$b:a[0]==="-"?ac(a,Wb):ac(a,Zb))?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){var b=a[D]|0;return a.length===0&&b&1?void 0:tc(a,b,wc)}if(a!=null&&a[Ib]===Rb)return I(a);if(a instanceof H)return a=a.size!==0?oc(a,vc):void 0,a;return}return a}var uc;function I(a){a=a.g;return tc(a,a[D]|0,wc)};function L(a,b,c,d){d=d===void 0?0:d;if(a==null){var e=32;c?(a=[c],e|=128):a=[];b&&(e=e&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");e=a[D]|0;if(vb&&1&e)throw Error("rfarr");2048&e&&!(2&e)&&xc();if(e&256)throw Error("farr");if(e&64)return(e|d)!==e&&E(a,e|d),a;if(c&&(e|=128,c!==a[0]))throw Error("mid");a:{c=a;e|=64;var g=c.length;if(g){var f=g-1,h=c[f];if(h!=null&&typeof h==="object"&&h.constructor===Object){b=e&128?0:-1;f-=b;if(f>=1024)throw Error("pvtlmt");for(var k in h)g= +k,g1024)throw Error("spvt");e=e&-16760833|(k&1023)<<14}}}E(a,e|64|d);return a}function xc(){if(vb)throw Error("carr");if(Hb!=null){var a;var b=(a=Cb)!=null?a:Cb={};a=b[Hb]||0;a>=5||(b[Hb]=a+1,b=Error(),b.__closure__error__context__984382||(b.__closure__error__context__984382={}),b.__closure__error__context__984382.severity="incident",ub(b))}};function yc(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){var c=a[D]|0;return a.length===0&&c&1?void 0:zc(a,c,b)}if(a!=null&&a[Ib]===Rb)return Ac(a);if(a instanceof H){b=a.L;if(b&2)return a;if(a.size){c=Ob(oc(a));if(a.J)for(a=0;a=g){var f=a[g];if(f!=null&&typeof f==="object"&&f.constructor===Object){c=f[b];var h=!0}else if(e===g)c=f;else return}else c=a[e];if(d&&c!=null){d=d(c);if(d==null)return d;if(!Object.is(d,c))return h?f[b]=d:a[e]=d,d}return c}} function Jc(a,b,c,d){var e=c+-1,g=a.length-1;if(g>=0&&e>=g){var f=a[g];if(f!=null&&typeof f==="object"&&f.constructor===Object)return f[c]=d,b}if(e<=g)return a[e]=d,b;if(d!==void 0){var h;g=((h=b)!=null?h:b=a[D]|0)>>14&1023||536870912;c>=g?d!=null&&(e={},a[g+-1]=(e[c]=d,e)):a[e]=d}return b}function Kc(a){return!!(2&a)&&!!(4&a)||!!(256&a)} function Lc(a,b,c,d){!d&&Ec(a)&&(b=a.g,c=b[D]|0);var e=Ic(b,2);a=!1;if(e==null){if(d)return sc();e=[]}else if(e.constructor===H)if(e.L&2&&!d)e=oc(e);else return e;else Array.isArray(e)?a=!!((e[D]|0)&2):e=[];if(d){if(!e.length)return sc();a||(a=!0,Ob(e))}else if(a){a=!1;Pb(e);d=Array.prototype.slice.call(e);for(e=0;e-1?(b=a[f],c||(b.P=!1)):(b=new id(b,this.src,g,!!d,e),b.P=c,a.push(b));return b};function md(a,b){var c=b.type;c in a.g&&Oa(a.g[c],b)&&(jd(b),a.g[c].length==0&&(delete a.g[c],a.h--))}function ld(a,b,c,d){for(var e=0;e-1&&(jd(g[c]),Array.prototype.splice.call(g,c,1),g.length==0&&(delete a.g[b],a.h--)))):a&&(a=ud(a))&&(b=a.g[b.toString()],a=-1,b&&(a=ld(b,c,d,e)),(c=a>-1?b[a]:null)&&zd(c))} function zd(a){if(typeof a!=="number"&&a&&!a.N){var b=a.src;if(b&&b[gd])md(b.h,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(wd(c),d):b.addListener&&b.removeListener&&b.removeListener(d);pd--;(c=ud(b))?(md(c,a),c.h==0&&(c.src=null,b[nd]=null)):jd(a)}}}function wd(a){return a in od?od[a]:od[a]="on"+a}function xd(a,b){if(a.N)a=!0;else{b=new fd(b,this);var c=a.listener,d=a.S||a.src;a.P&&zd(a);a=c.call(d,b)}return a} function ud(a){a=a[nd];return a instanceof kd?a:null}var Ad="__closure_events_fn_"+(Math.random()*1E9>>>0);function sd(a){if(typeof a==="function")return a;a[Ad]||(a[Ad]=function(b){return a.handleEvent(b)});return a[Ad]};function Q(){cd.call(this);this.h=new kd(this);this.U=this;this.G=null}Ka(Q,cd);Q.prototype[gd]=!0;Q.prototype.addEventListener=function(a,b,c,d){qd(this,a,b,c,d)};Q.prototype.removeEventListener=function(a,b,c,d){yd(this,a,b,c,d)}; function R(a,b){var c,d=a.G;if(d)for(c=[];d;d=d.G)c.push(d);a=a.U;d=b.type||b;if(typeof b==="string")b=new dd(b,a);else if(b instanceof dd)b.target=b.target||a;else{var e=b;b=new dd(d,a);Za(b,e)}e=!0;var g;if(c)for(g=c.length-1;g>=0;g--){var f=b.g=c[g];e=Bd(f,d,!0,b)&&e}f=b.g=a;e=Bd(f,d,!0,b)&&e;e=Bd(f,d,!1,b)&&e;if(c)for(g=0;g0){this.h--;var a=this.g;this.g=a.next;a.next=null}else a=this.i();return a};function Ed(a,b){a.j(b);a.h<100&&(a.h++,b.next=a.g,a.g=b)};function Gd(){this.h=this.g=null}Gd.prototype.add=function(a,b){var c=Hd.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c};function Id(){var a=Jd,b=null;a.g&&(b=a.g,a.g=a.g.next,a.g||(a.h=null),b.next=null);return b}var Hd=new Dd(function(){return new Kd},function(a){return a.reset()});function Kd(){this.next=this.g=this.h=null}Kd.prototype.set=function(a,b){this.h=a;this.g=b;this.next=null};Kd.prototype.reset=function(){this.next=this.g=this.h=null};var Ld,Md=!1,Jd=new Gd;function Nd(a,b){Ld||Od();Md||(Ld(),Md=!0);Jd.add(a,b)}function Od(){var a=Promise.resolve(void 0);Ld=function(){a.then(Pd)}}function Pd(){for(var a;a=Id();){try{a.h.call(a.g)}catch(b){ub(b)}Ed(Hd,a)}Md=!1};function Qd(){};function S(a){this.g=0;this.o=void 0;this.j=this.h=this.i=null;this.l=this.m=!1;if(a!=Qd)try{var b=this;a.call(void 0,function(c){Rd(b,2,c)},function(c){Rd(b,3,c)})}catch(c){Rd(this,3,c)}}function Sd(){this.next=this.i=this.h=this.j=this.g=null;this.l=!1}Sd.prototype.reset=function(){this.i=this.h=this.j=this.g=null;this.l=!1};var Td=new Dd(function(){return new Sd},function(a){a.reset()});function Ud(a,b,c){var d=Td.get();d.j=a;d.h=b;d.i=c;return d} S.prototype.then=function(a,b,c){return Vd(this,Cd(typeof a==="function"?a:null),Cd(typeof b==="function"?b:null),c)};S.prototype.$goog_Thenable=!0;function Wd(a,b){return Vd(a,null,Cd(b))}S.prototype.cancel=function(a){if(this.g==0){var b=new Xd(a);Nd(function(){Yd(this,b)},this)}}; function Yd(a,b){if(a.g==0)if(a.i){var c=a.i;if(c.h){for(var d=0,e=null,g=null,f=c.h;f&&(f.l||(d++,f.g==a&&(e=f),!(e&&d>1)));f=f.next)e||(g=f);e&&(c.g==0&&d==1?Yd(c,b):(g?(d=g,d.next==c.j&&(c.j=d),d.next=d.next.next):Zd(c),$d(c,e,3,b)))}a.i=null}else Rd(a,3,b)}function ae(a,b){a.h||a.g!=2&&a.g!=3||be(a);a.j?a.j.next=b:a.h=b;a.j=b} function Vd(a,b,c,d){var e=Ud(null,null,null);e.g=new S(function(g,f){e.j=b?function(h){try{var k=b.call(d,h);g(k)}catch(l){f(l)}}:g;e.h=c?function(h){try{var k=c.call(d,h);k===void 0&&h instanceof Xd?f(h):g(k)}catch(l){f(l)}}:f});e.g.i=a;ae(a,e);return e.g}S.prototype.B=function(a){this.g=0;Rd(this,2,a)};S.prototype.C=function(a){this.g=0;Rd(this,3,a)}; function Rd(a,b,c){if(a.g==0){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.g=1;a:{var d=c,e=a.B,g=a.C;if(d instanceof S){ae(d,Ud(e||Qd,g||null,a));var f=!0}else{if(d)try{var h=!!d.$goog_Thenable}catch(l){h=!1}else h=!1;if(h)d.then(e,g,a),f=!0;else{if(Ga(d))try{var k=d.then;if(typeof k==="function"){ce(d,k,e,g,a);f=!0;break a}}catch(l){g.call(a,l);f=!0;break a}f=!1}}}f||(a.o=c,a.g=b,a.i=null,be(a),b!=3||c instanceof Xd||de(a,c))}} function ce(a,b,c,d,e){function g(k){h||(h=!0,d.call(e,k))}function f(k){h||(h=!0,c.call(e,k))}var h=!1;try{b.call(a,f,g)}catch(k){g(k)}}function be(a){a.m||(a.m=!0,Nd(a.u,a))}function Zd(a){var b=null;a.h&&(b=a.h,a.h=b.next,b.next=null);a.h||(a.j=null);return b}S.prototype.u=function(){for(var a;a=Zd(this);)$d(this,a,this.g,this.o);this.m=!1}; function $d(a,b,c,d){if(c==3&&b.h&&!b.l)for(;a&&a.l;a=a.i)a.l=!1;if(b.g)b.g.i=null,ee(b,c,d);else try{b.l?b.j.call(b.i):ee(b,c,d)}catch(e){fe.call(null,e)}Ed(Td,b)}function ee(a,b,c){b==2?a.j.call(a.i,c):a.h&&a.h.call(a.i,c)}function de(a,b){a.l=!0;Nd(function(){a.l&&fe.call(null,b)})}var fe=ub;function Xd(a){La.call(this,a)}Ka(Xd,La);Xd.prototype.name="cancel";function ge(a,b){if(typeof a!=="function")if(a&&typeof a.handleEvent=="function")a=Ja(a.handleEvent,a);else throw Error("Invalid listener argument");return Number(b)>2147483647?-1:A.setTimeout(a,b||0)}function he(a,b){var c=null;return Wd(new S(function(d,e){c=ge(function(){d(b)},a);c==-1&&e(Error("Failed to schedule timer."))}),function(d){A.clearTimeout(c);throw d;})};var ie=Ta("https://apis.google.com/js/client.js"),je=!1;function ke(){var a;return z(function(b){je||A.gapi||(a=ad(document),Xa(a,ie),a.type="text/javascript",a.async=!0,a.onerror=function(){a&&a.parentNode&&a.parentNode.removeChild(a);je=!1},document.body.appendChild(a),je=!0);return b.return(le())})} function le(){var a;return z(function(b){return b.h==1?(a=A.gapi)?b.g(new Promise(function(c,d){a.load("gapi.iframes",{callback:function(){c()},timeout:3E4,ontimeout:function(){d(Error("Timeout while trying to load GAPI frames library."))},onerror:function(e){d(Error(e?e.message:"Error while trying to load GAPI frames library."))}})}),0):b.g(he(100),4):b.return(le())})};function me(){this.g=new Map}me.prototype.register=function(a,b){if(this.g.has(a))throw Error("Handler for "+a+" already exists.");this.g.set(a,b);this.iframe&&this.iframe.register(a,b,gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)};me.prototype.unregister=function(a){this.g.delete(a);this.iframe&&this.iframe.unregister(a)};me.prototype.send=function(a,b,c){if(!this.iframe)throw Error("Iframe is not open. Tried to send '"+a+"'");this.iframe.send(a,b,c,gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}; function ne(a){if(!a.iframe)throw Error("Iframe is not ready");for(var b=t(a.g.keys()),c=b.next();!c.done;c=b.next())a.iframe.unregister(c.value)}function oe(a){this.g=new Map;this.h=a;this.i=!1}r(oe,me); oe.prototype.open=function(a){a=a===void 0?{}:a;var b=this;return z(function(c){if(c.h==1)return c.g(ke(),2);if(c.h!=3){if(b.isOpen)throw Error("App is already open.");b.i=!0;return c.g(gapi.iframes.getContext().open(Object.assign({},b.h,a)),3)}b.iframe=c.i;if(!b.iframe)throw Error("Iframe is not ready");for(var d=t(b.g),e=d.next();!e.done;e=d.next()){var g=t(e.value);e=g.next().value;g=g.next().value;b.iframe.register(e,g,gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}c.m()})}; oe.prototype.close=function(){var a=this;return z(function(b){if(!a.isOpen)throw Error("App is not open.");return b.return(new Promise(function(c,d){a.iframe?(ne(a),a.iframe.close({},function(){a.iframe=void 0;a.i=!1;c()})):d("Iframe is not open.")}))})};function pe(a){var b;return z(function(c){return a.iframe?c.g((b=a.iframe)==null?void 0:b.ping(),0):c.v(0)})}p.Object.defineProperties(oe.prototype,{isOpen:{configurable:!0,enumerable:!0,get:function(){return this.i}}}); function qe(a){this.g=new Map;this.iframe=a||void 0}var re;r(qe,me);function se(){var a,b,c;return z(function(d){switch(d.h){case 1:return re?d.return(re):d.g(ke(),2);case 2:a=gapi.iframes.getContext().getParentIframe();b=null;if(!a){d.v(3);break}return d.g(Promise.race([a.ping().then(function(){return a}),he(1E4,null)]),4);case 4:b=d.i;case 3:if(re)return d.return(re);c=new qe(b);b&&(re=c);return d.return(c)}})};function T(a){this.name=a}T.prototype.removeListener=function(){var a=this,b;return z(function(c){if(c.h==1)return c.g(se(),2);b=c.i;b.unregister(a.name);c.m()})};T.prototype.send=function(a,b){var c=this;return new Promise(function(d,e){try{a.iframe.send(c.name,b,function(g){g=t(g).next().value;d(g)})}catch(g){e(g)}})};function te(){this.h=ue;this.g=new T("cloud_shell_bounds_for_element")}te.prototype.removeListener=function(){var a=this;return z(function(b){return b.g(a.g.removeListener(),0)})}; te.prototype.send=function(a,b){var c=this,d;return z(function(e){if(e.h==1)return e.g(c.g.send(a,JSON.stringify(I(b))),2);d=e.i;return e.return(Uc(c.h,d))})};function U(a){this.name=a}function V(a,b,c){b.iframe.register(a.name,c)}U.prototype.removeListener=function(a){a.iframe.unregister(this.name)};U.prototype.send=function(a){var b=this,c;return z(function(d){if(d.h==1)return d.g(se(),2);c=d.i;return d.return(new Promise(function(e,g){try{c.send(b.name,a,function(f){f=t(f).next().value;e(f)})}catch(f){g(f)}}))})};function ve(){var a=we;this.name="cloud_shell_feedback_start";this.h=Yc;this.i=a;this.g=new U(this.name)} function xe(a,b){var c=ye;V(c.g,a,function(d){var e,g;return z(function(f){if(f.h==1)return e=Uc(c.h,d),f.g(b(e),2);g=f.i;return f.return(JSON.stringify(I(g)))})})}ve.prototype.removeListener=function(a){this.g.removeListener(a)};ve.prototype.send=function(a){var b=this,c;return z(function(d){if(d.h==1)return d.g(b.g.send(JSON.stringify(I(a))),2);c=d.i;return d.return(Uc(b.i,c))})};function W(a,b){this.name=a;this.j=b===void 0?!1:b;this.g=new U(this.name);this.i=new T(this.name)}W.prototype.removeListener=function(){var a=this;return z(function(b){return b.g(a.i.removeListener(),0)})};W.prototype.send=function(a){var b=this;return z(function(c){return c.return(b.g.send(a))})};function ze(a,b,c){return z(function(d){return d.h==1?!a.j||b.isOpen?d.v(2):d.g(b.open(),2):d.return(a.i.send(b,c))})}W.prototype.h=function(a,b){var c=this;V(this.g,a,function(d){return ze(c,b,d)})}; function X(a,b){this.i=b;this.g=new W(a,!1)}X.prototype.removeListener=function(){var a=this;return z(function(b){return b.g(a.g.removeListener(),0)})};X.prototype.send=function(a){var b=this,c;return z(function(d){if(d.h==1)return d.g(b.g.send(JSON.stringify(I(a))),2);c=d.i;return d.return(Uc(b.i,c))})};X.prototype.h=function(a,b){this.g.h(a,b)};function Ae(a){this.g=L(a,void 0,void 0,2048)}r(Ae,O);function Be(a,b){return Tc(a,b)};function Ce(a){this.g=L(a,void 0,void 0,2048)}r(Ce,O);function ue(a){this.g=L(a,void 0,void 0,2048)}r(ue,O); function De(a){var b=a.g,c=b,d=b[D]|0;b=void 0===Ub?2:4;var e=F(a,d),g=e?1:b;b=g===3;var f=!e;(g===2||f)&&Ec(a)&&(c=a.g,d=c[D]|0);a=Ic(c,1);e=Array.isArray(a)?a:Lb;var h=e===Lb?7:e[D]|0;a=h;2&d&&(a|=2);var k=a|1;if(a=!(4&k)){var l=e,m=d,u=!!(2&k);u&&(m|=2);for(var v=!u,x=!0,J=0,K=0;J=0)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=t(c);for(d=b.next();!d.done;d=b.next())c=t(d.value),d=c.next().value,c=c.next().value,this.g.setRequestHeader(d,c);this.K&&(this.g.responseType= this.K);"withCredentials"in this.g&&this.g.withCredentials!==this.I&&(this.g.withCredentials=this.I);try{this.l&&(clearTimeout(this.l),this.l=null),this.H>0&&(this.l=setTimeout(this.ia.bind(this),this.H)),this.o=!0,this.g.send(a),this.o=!1}catch(f){Df(this)}};n.ia=function(){typeof Da!="undefined"&&this.g&&(R(this,"timeout"),this.abort(8))};function Df(a){a.i=!1;a.g&&(a.j=!0,a.g.abort(),a.j=!1);Ef(a);Ff(a)}function Ef(a){a.B||(a.B=!0,R(a,"complete"),R(a,"error"))} n.abort=function(){this.g&&this.i&&(this.i=!1,this.j=!0,this.g.abort(),this.j=!1,R(this,"complete"),R(this,"abort"),Ff(this))};n.M=function(){this.g&&(this.i&&(this.i=!1,this.j=!0,this.g.abort(),this.j=!1),Ff(this,!0));yf.O.M.call(this)};n.X=function(){this.m||(this.C||this.o||this.j?Gf(this):this.ha())};n.ha=function(){Gf(this)}; function Gf(a){if(a.i&&typeof Da!="undefined")if(a.o&&(a.g?a.g.readyState:0)==4)setTimeout(a.X.bind(a),0);else if(R(a,"readystatechange"),(a.g?a.g.readyState:0)==4){a.i=!1;try{try{var b=(a.g?a.g.readyState:0)>2?a.g.status:-1}catch(f){b=-1}a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}var d;if(!(d=c)){var e;if(e=b===0){var g=String(a.D).match($a)[1]||null;!g&&A.self&&A.self.location&&(g=A.self.location.protocol.slice(0,-1));e=!zf.test(g?g.toLowerCase(): "")}d=e}d?(R(a,"complete"),R(a,"success")):Ef(a)}finally{Ff(a)}}}function Ff(a,b){if(a.g){a.l&&(clearTimeout(a.l),a.l=null);var c=a.g;a.g=null;b||R(a,"ready");try{c.onreadystatechange=null}catch(d){}}}n.isActive=function(){return!!this.g};function Hf(a,b){return z(function(c){return c.return(new Promise(function(d,e){Number.isInteger(Number(a))&&Number(a)>0?(e=If(b!=null?b:"")+"/aloha_form_properties?productId="+a,Cf(e,function(g){var f=g.target;g=null;try{var h=JSON,k=h.stringify;if(f.g){var l=f.g.responseText;l.indexOf(")]}'\n")==0&&(l=l.substring(5));b:{if(A.JSON)try{var m=A.JSON.parse(l);break b}catch(u){}m=xf(l)}}else m=void 0;g=Uc(ff,k.call(h,m))}catch(u){k=new ff,m=new ef,m=N(m,5,!0),m=N(m,2,!0),m=N(m,4,!1),m=N(m,8,!0),m=N(m, 9,!0),m=N(m,7,!0),m=N(m,10,!0),m=N(m,12,!0),m=N(m,13,!1),m=N(m,14,!0),m=N(m,15,!0),m=N(m,20,!1),m==null&&(m=void 0),g=m,Fc(k),h=k.g,Jc(h,h[D]|0,1,g),m&&!F(m)&&Gc(k.g),g=k}d(g)})):e(Error("Invalid product id: "+a))}))})}function If(a){return gf(a)?a:"https://www.google.com/tools/feedback"};function Jf(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||A,e=d.document,g=a.nonce||Wa(d.document);g&&!a.nonce&&(a.nonce=g);if(a.flow=="help"){var f=Fa("document.location.href",d);!a.helpCenterContext&&f&&(a.helpCenterContext=f.substring(0,1200));f=!0;if(b&&JSON&&JSON.stringify){var h=JSON.stringify(b);(f=h.length<=1200)&&(a.psdJson=h)}f||(b={invalidPsd:!0})}b=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.feedbackServerUri||"//www.google.com/tools/feedback";if(f=d.GOOGLE_FEEDBACK_START)f.apply(d, b);else{d=c+"/load.js?";for(var k in a)b=a[k],b==null||Ga(b)||(d+=encodeURIComponent(k)+"="+encodeURIComponent(b)+"&");a=e?new bd(e.nodeType==9?e:e.ownerDocument||e.document):Ma||(Ma=new bd);a=ad(a.g);g&&a.setAttribute("nonce",g);Xa(a,Ta(d));e.body.appendChild(a)}} function Kf(a,b,c,d){var e,g;return z(function(f){e=c||A;var h=a.serverEnvironment==="DEV",k=c||A;k=a.nonce||Wa(k.document);h={integrationKeys:{productId:a.productId,feedbackBucket:a.bucket,triggerId:a.triggerId},callbacks:{onClose:a.callback,onLoad:a.onLoadCallback},formContent:{locale:a.locale,disableScreenshot:a.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,za:void 0,defaultFormInputValues:void 0, defaultFormInputValuesString:void 0,abuseLink:a.abuseLink,additionalDataConsent:a.additionalDataConsent},initializationData:{isLocalServer:h,nonce:k,useNightlyRelease:h,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:a.feedbackServerUri,colorScheme:a.colorScheme},extraData:{productVersion:a.productVersion,authUser:a.authuser,configuratorId:a.configuratorId,customZIndex:a.customZIndex,tinyNoPointer:a.tinyNoPointer,allowNonLoggedInFeedback:a.allowNonLoggedInFeedback, enableAnonymousFeedback:a.enableAnonymousFeedback}};b&&(k=new Map(Object.entries(b)),h.extraData.productSpecificData=k);g=h;return f.g(wf(g,d,e),0)})} function Lf(a,b,c){try{if(a.flow==="help"){var d=a.helpCenterPath.replace(/^\//,"");Va(c||window,"https://support.google.com/"+d)}else a.flow==="submit"?Jf(a,b,c):Hf(a.productId,a.feedbackServerUri).then(function(e){e=Pc(e,ef);var g=!Bb||(e==null?void 0:e.getEnableMweb()),f=!a.tinyNoPointer||(e==null?void 0:e.getEnableTinyNoPointer());!e||e.getAlohaAutoGaRollout()&&g&&f?Kf(a,b,c,e).catch(function(h){!h||h instanceof nf||Jf(a,b,c)}):Jf(a,b,c)},function(e){!e||e instanceof nf||Jf(a,b,c)})}catch(e){Kf(a, b,c,null).catch(function(g){!g||g instanceof nf||Jf(a,b,c)})}}Ea("userfeedback.api.startFeedback",Lf);function Mf(a,b){var c={xa:b.location.href};Mc(a).forEach(function(d,e){c[e]=d});return c};function Nf(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}Nf.prototype.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};Nf.prototype.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; Nf.prototype.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Of(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}} function Pf(a,b){a:{var c=b.nodeType==9?b:b.ownerDocument||b.document;if(c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(b,null))){c=c.display||c.getPropertyValue("display")||"";break a}c=""}c||(c=b.currentStyle?b.currentStyle.display:null);if((c||b.style&&b.style.display)!="none")return a(b);c=b.style;var d=c.display,e=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=a(b);c.display=d;c.position=g;c.visibility=e;return a} function Qf(a){var b=a.offsetWidth,c=a.offsetHeight,d=Ab&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=Of(a),new P(a.right-a.left,a.bottom-a.top)):new P(b,c)};var Rf=[].concat(la(Object.values(af)),"jsmode disableOnBeforeUnload cloudshellsafemode mendelDebugInput disableCallouts embeddedAppsEnvironment withDebugLogs geminicli".split(" ")); function Y(a,b,c){var d=this;b=b===void 0?window:b;c=c===void 0?oe:c;this.g=a;this.j=b;this.m=c;this.iframe=new this.m({url:this.i.toString(),where:this.g.element,waitForOnload:!1,attributes:Object.assign({},{"class":"cloudshell-frame"},this.g.disableIframeTitle?{}:{title:"Cloud Shell Window"},{style:{height:"100%"},allow:"clipboard-read *; clipboard-write *;"})});var e,g;this.theme=((g=(e=this.g).theme)==null?void 0:g.call(e))||"system";V(Ee,this,function(){return d.close()});V(Ge,this,function(){return d.g.projectIdProvider? d.g.projectIdProvider():""});V(He,this,function(){return d.theme});V(Ie,this,function(f){d.g.resizer&&d.g.resizer(f)});V(Se,this,function(){var f;(f=d.g.maximization)==null||f.maximize()});V(Te,this,function(){var f;return!((f=d.g.maximization)==null||!f.isMaximized())});xe(this,function(f){var h=d.j;h=h===void 0?window:h;var k=Pc(f,Xc);f=Mf(f,h);k&&Lf({productId:Sc(k,1),locale:Sc(k,2),authuser:Sc(k,3),bucket:Sc(k,4),productVersion:Sc(k,5)},f);return new we});V(Pe,this,function(){Sf(d.g.onEditorLoad)}); V(Me,this,function(){var f;(f=d.o)==null||f.clearSpotlights()});V(Qe,this,function(){var f,h;(h=(f=d.g).onTerminalReady)==null||h.call(f)});a.parseQueryParams&&(this.h=new df(b),Tf(this),Uf(this)&&this.open())} function Z(a){var b,c,d,e;return z(function(g){switch(g.h){case 1:b=30,c=500,d=0;case 2:if(!(d65E3)throw Error("Invalid port specified. Please use a port between 2000 and 65000");return d.g(Z(b),2)}if(d.h!=3)return d.g(Re.send(b,a),3);c=d.i;return d.return(c)})};n.setProjectId=function(a){var b=this;return z(function(c){return c.h==1?c.g(Z(b),2):c.g(Ue.send(b,a),0)})}; n.setTheme=function(a){var b=this;return z(function(c){if(c.h==1)return c.g(Z(b),2);if(c.h!=3)return c.g(We.send(b,a).catch(function(){return""}),3);b.theme=a;c.m()})};function Uf(a){return a.g.parseQueryParams?a.h&&a.h.g?!0:Object.values(af).map(function(b){return a.l.get(b)}).some(function(b){return b}):!1} function Tf(a){var b=[].concat(la(Rf));a.g.authUser||b.push("authuser");a.g.language||b.push("hl");var c=a.i;b=t(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=a.l.get(d);e&&B(c,d,e)}a=a.iframe;a.h=Object.assign({},a.h,{url:c.toString()})} p.Object.defineProperties(Y.prototype,{i:{configurable:!0,enumerable:!0,get:function(){var a=new bb(this.g.mode==="EditorShell"?"https://shell.cloud.google.com/cloudshell/editor":"https://shell.cloud.google.com/embeddedcloudshell");this.g.language&&B(a,"hl",this.g.language);this.g.environmentDeployment&&B(a,"environment_deployment",this.g.environmentDeployment);var b;((b=this.g.experiments)==null?0:b.useEmptyWorkspace)||B(a,"cloudshell_workspace","~");B(a,"hostappurl",String(window.location));B(a, "embedded","true");b=new Vc;b=Tc(b,this.g.concordWindowId||"");b=N(b,2,!!this.g.maximization);b=N(b,3,!!this.g.hatsSurvey);B(a,"embedding_options",JSON.stringify(I(b)));B(a,"theme",this.theme);this.g.authUser&&B(a,"authuser",this.g.authUser);return a}},boundingBox:{configurable:!0,enumerable:!0,get:function(){var a=this.g.element;if(a.nodeType==1){var b=Of(a);b=new Zc(b.left,b.top)}else b=a.changedTouches?a.changedTouches[0]:a,b=new Zc(b.clientX,b.clientY);if(a.getBoundingClientRect){var c=Pf(Of, a);c=new P(c.right-c.left,c.bottom-c.top)}else c=null;a=c||Pf(Qf,a);return new Nf(b.x,b.y,a.width,a.height)}},isOpen:{configurable:!0,enumerable:!0,get:function(){return this.iframe.isOpen}},l:{configurable:!0,enumerable:!0,get:function(){return new hb(this.j.location.search.slice(1))}}});Y.prototype.close=Y.prototype.close;Y.prototype.open=Y.prototype.open;function Sf(a){try{(a===void 0?function(){}:a)()}catch(b){console.error(b)}} function Wf(a){cf(a).length===0||console.error("Cloud Shell options could not be validated"+cf(a).join("\n"));return new Y(a)}Ea("google.devops.tools.cloudshell.configure",Wf);Ea("google.devops.tools.cloudshell.createController",Wf);}).call(this);