(function(){/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var aa="//www.google.com/images/cleardot.gif",ba="Client failure. ",ca="Content-Type",da="Create session failed",ea="Creating session",fa="Error in protected function: ",ha="Invalid listener argument",ia="Not available",ja="POST",ka="SETUP",la="SETUP_ACK",ma="SETUP_ACK_NTPV2",na="Symbol.iterator",oa="Transient error",qa="Trying to send a request without a request sender for - ",ra="X-Goog-Upload-Status",sa="about:invalid#zClosurez",ta="arraybuffer",ua="base64",va="boolean",wa="complete",xa="crosswindowmessaging.channel",
ya="document",h="function",za="info_params",Aa="message",Ba="null",n="number",p="object",Ca="readystatechange",r="string",t="text",Da="tfe_changed",u;function Ea(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var Fa=typeof Object.defineProperties==h?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
function Ga(a){a=[p==typeof globalThis&&globalThis,a,p==typeof window&&window,p==typeof self&&self,p==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var Ha=Ga(this);function v(a,b){if(b)a:{var c=Ha;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&Fa(c,a,{configurable:!0,writable:!0,value:b})}}
v("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,g){this.g=f;Fa(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
v(na,function(a){if(a)return a;a=Symbol(na);for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=Ha[b[c]];typeof d===h&&typeof d.prototype[a]!=h&&Fa(d.prototype,a,{configurable:!0,writable:!0,value:function(){return Ia(Ea(this))}})}return a});function Ia(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
function w(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:Ea(a)}}function Ja(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c}function Ka(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var La=typeof Object.create==h?Object.create:function(a){function b(){}b.prototype=a;return new b},Ma;
if(typeof Object.setPrototypeOf==h)Ma=Object.setPrototypeOf;else{var Na;a:{var Oa={a:!0},Pa={};try{Pa.__proto__=Oa;Na=Pa.a;break a}catch(a){}Na=!1}Ma=Na?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var Qa=Ma;
function x(a,b){a.prototype=La(b.prototype);a.prototype.constructor=a;if(Qa)Qa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.P=b.prototype}function Ra(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
v("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,f=0;f<e;f++){var g=d[f];if(b.call(c,g,f,d)){b=g;break a}}b=void 0}return b}});
v("WeakMap",function(a){function b(l){this.g=(k+=Math.random()+1).toString();if(l){l=w(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}function c(){}function d(l){var m=typeof l;return m===p&&null!==l||m===h}function e(l){if(!Ka(l,g)){var m=new c;Fa(l,g,{value:m})}}function f(l){var m=Object[l];m&&(Object[l]=function(q){if(q instanceof c)return q;Object.isExtensible(q)&&e(q);return m(q)})}if(function(){if(!a||!Object.seal)return!1;try{var l=Object.seal({}),m=Object.seal({}),q=new a([[l,
2],[m,3]]);if(2!=q.get(l)||3!=q.get(m))return!1;q.delete(l);q.set(m,4);return!q.has(l)&&4==q.get(m)}catch(D){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var k=0;b.prototype.set=function(l,m){if(!d(l))throw Error("Invalid WeakMap key");e(l);if(!Ka(l,g))throw Error("WeakMap key fail: "+l);l[g][this.g]=m;return this};b.prototype.get=function(l){return d(l)&&Ka(l,g)?l[g][this.g]:void 0};b.prototype.has=function(l){return d(l)&&Ka(l,g)&&Ka(l[g],
this.g)};b.prototype.delete=function(l){return d(l)&&Ka(l,g)&&Ka(l[g],this.g)?delete l[g][this.g]:!1};return b});
v("Map",function(a){function b(){var k={};return k.oa=k.next=k.head=k}function c(k,l){var m=k.g;return Ia(function(){if(m){for(;m.head!=k.g;)m=m.oa;for(;m.next!=m.head;)return m=m.next,{done:!1,value:l(m)};m=null}return{done:!0,value:void 0}})}function d(k,l){var m=l&&typeof l;m==p||m==h?f.has(l)?m=f.get(l):(m=""+ ++g,f.set(l,m)):m="p_"+l;var q=k.h[m];if(q&&Ka(k.h,m))for(k=0;k<q.length;k++){var D=q[k];if(l!==l&&D.key!==D.key||l===D.key)return{id:m,list:q,index:k,R:D}}return{id:m,list:q,index:-1,R:void 0}}
function e(k){this.h={};this.g=b();this.size=0;if(k){k=w(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}if(function(){if(!a||typeof a!=h||!a.prototype.entries||typeof Object.seal!=h)return!1;try{var k=Object.seal({x:4}),l=new a(w([[k,"s"]]));if("s"!=l.get(k)||1!=l.size||l.get({x:4})||l.set({x:4},"t")!=l||2!=l.size)return!1;var m=l.entries(),q=m.next();if(q.done||q.value[0]!=k||"s"!=q.value[1])return!1;q=m.next();return q.done||4!=q.value[0].x||"t"!=q.value[1]||!m.next().done?!1:!0}catch(D){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(k,l){k=0===k?0:k;var m=d(this,k);m.list||(m.list=this.h[m.id]=[]);m.R?m.R.value=l:(m.R={next:this.g,oa:this.g.oa,head:this.g,key:k,value:l},m.list.push(m.R),this.g.oa.next=m.R,this.g.oa=m.R,this.size++);return this};e.prototype.delete=function(k){k=d(this,k);return k.R&&k.list?(k.list.splice(k.index,1),k.list.length||delete this.h[k.id],k.R.oa.next=k.R.next,k.R.next.oa=k.R.oa,k.R.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=
this.g.oa=b();this.size=0};e.prototype.has=function(k){return!!d(this,k).R};e.prototype.get=function(k){return(k=d(this,k).R)&&k.value};e.prototype.entries=function(){return c(this,function(k){return[k.key,k.value]})};e.prototype.keys=function(){return c(this,function(k){return k.key})};e.prototype.values=function(){return c(this,function(k){return k.value})};e.prototype.forEach=function(k,l){for(var m=this.entries(),q;!(q=m.next()).done;)q=q.value,k.call(l,q[1],q[0],this)};e.prototype[Symbol.iterator]=
e.prototype.entries;var g=0;return e});function Sa(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}
v("String.prototype.startsWith",function(a){return a?a:function(b,c){if(null==this)throw new TypeError("The 'this' value for String.prototype.startsWith must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype.startsWith must not be a regular expression");var d=this.length,e=b.length;c=Math.max(0,Math.min(c|0,this.length));for(var f=0;f<e&&c<d;)if(this[c++]!=b[f++])return!1;return f>=e}});
v("Number.isFinite",function(a){return a?a:function(b){return typeof b!==n?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});v("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(k){return k};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if(typeof f==h){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});
v("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});v("Array.prototype.values",function(a){return a?a:function(){return Sa(this,function(b,c){return c})}});v("Math.imul",function(a){return a?a:function(b,c){b=Number(b);c=Number(c);var d=b&65535,e=c&65535;return d*e+((b>>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}});v("Array.prototype.keys",function(a){return a?a:function(){return Sa(this,function(b){return b})}});
v("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ka(b,d)&&c.push(b[d]);return c}});var Ta=Ta||{},y=this||self;function Ua(a,b){a=a.split(".");b=b||y;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b}function Va(){}function Wa(a){var b=typeof a;return b!=p?b:a?Array.isArray(a)?"array":b:Ba}function Xa(a){var b=Wa(a);return"array"==b||b==p&&typeof a.length==n}function Ya(a){var b=typeof a;return b==p&&null!=a||b==h}
function Za(a){return Object.prototype.hasOwnProperty.call(a,$a)&&a[$a]||(a[$a]=++ab)}var $a="closure_uid_"+(1E9*Math.random()>>>0),ab=0;function bb(a,b,c){return a.call.apply(a.bind,arguments)}function cb(a,b,c){if(!a)throw Error();if(2<arguments.length){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 z(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?z=bb:z=cb;return z.apply(null,arguments)}function db(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}function eb(a){(0,eval)(a)}
function fb(a,b){var c=["crosswindowmessaging","channel"];b=b||y;c[0]in b||"undefined"==typeof b.execScript||b.execScript("var "+c[0]);for(var d;c.length&&(d=c.shift());)c.length||void 0===a?b[d]&&b[d]!==Object.prototype[d]?b=b[d]:b=b[d]={}:b[d]=a}function A(a,b){function c(){}c.prototype=b.prototype;a.P=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.xd=function(d,e,f){for(var g=Array(arguments.length-2),k=2;k<arguments.length;k++)g[k-2]=arguments[k];return b.prototype[e].apply(d,g)}}
function gb(a){return a};function B(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,B);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.Xa=b);this.g=!0}A(B,Error);B.prototype.name="CustomError";var hb;function ib(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};function jb(a){return/^[\s\xa0]*$/.test(a)}var kb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},lb=/&/g,mb=/</g,nb=/>/g,pb=/"/g,qb=/'/g,rb=/\x00/g,sb=/[\x00&<>"']/;function tb(a,b){return a<b?-1:a>b?1:0};function ub(){var a=y.navigator;return a&&(a=a.userAgent)?a:""}function C(a){return-1!=ub().indexOf(a)};var vb=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a===r)return typeof b!==r||1!=b.length?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},wb=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=typeof a===r?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1};
function xb(a,b){b=vb(a,b);var c;(c=0<=b)&&Array.prototype.splice.call(a,b,1);return c}function yb(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[]}function zb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(Xa(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)}};function Ab(a){Ab[" "](a);return a}Ab[" "]=Va;function Bb(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};var Cb=C("Opera"),E=C("Trident")||C("MSIE"),Db=C("Edge"),Eb=C("Gecko")&&!(-1!=ub().toLowerCase().indexOf("webkit")&&!C("Edge"))&&!(C("Trident")||C("MSIE"))&&!C("Edge"),Fb=-1!=ub().toLowerCase().indexOf("webkit")&&!C("Edge");function Gb(){var a=y.document;return a?a.documentMode:void 0}var Hb;
a:{var Ib="",Jb=function(){var a=ub();if(Eb)return/rv:([^\);]+)(\)|;)/.exec(a);if(Db)return/Edge\/([\d\.]+)/.exec(a);if(E)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Fb)return/WebKit\/(\S+)/.exec(a);if(Cb)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Jb&&(Ib=Jb?Jb[1]:"");if(E){var Kb=Gb();if(null!=Kb&&Kb>parseFloat(Ib)){Hb=String(Kb);break a}}Hb=Ib}var Lb=Hb,Mb={};
function Nb(a){return Bb(Mb,a,function(){for(var b=0,c=kb(String(Lb)).split("."),d=kb(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",k=d[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];if(0==g[0].length&&0==k[0].length)break;b=tb(0==g[1].length?0:parseInt(g[1],10),0==k[1].length?0:parseInt(k[1],10))||tb(0==g[2].length,0==k[2].length)||tb(g[2],k[2]);g=g[3];k=k[3]}while(0==b)}return 0<=b})}var Ob;
if(y.document&&E){var Pb=Gb();Ob=Pb?Pb:parseInt(Lb,10)||void 0}else Ob=void 0;var Qb=Ob;var Rb={},Sb=null;var Tb=typeof Uint8Array===h;var Ub=typeof Symbol===h&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;function Vb(a,b){Object.isFrozen(a)||(Ub?a[Ub]|=b:void 0!==a.nb?a.nb|=b:Object.defineProperties(a,{nb:{value:b,configurable:!0,writable:!0,enumerable:!1}}))}function Wb(a){var b;Ub?b=a[Ub]:b=a.nb;return null==b?0:b}function Xb(a){Vb(a,1);return a};function Yb(a){return null!==a&&typeof a===p&&!Array.isArray(a)&&a.constructor===Object}var Zb,$b=Object.freeze(Xb([])),ac="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;function bc(a){return{value:a,configurable:!1,writable:!1,enumerable:!1}};function F(a,b,c){return-1===b?null:b>=a.i?a.g?a.g[b]:void 0:(void 0===c?0:c)&&a.g&&(c=a.g[b],null!=c)?c:a.na[b+a.h]}function cc(a,b){a=F(a,b);return null==a?a:!!a}function dc(a,b,c){if(-1===c)return null;a.j||(a.j={});var d=a.j[c];if(d)return d;var e=F(a,c,!1);if(null==e)return d;b=new b(e);d=a.na;if(Array.isArray(d)&&Wb(d)&2){d=b.na;if(!Array.isArray(d))throw Error("cannot mark non-array as immutable");Vb(d,2)}return a.j[c]=b};function gc(a){switch(typeof a){case n:return isFinite(a)?a:String(a);case p:if(a&&!Array.isArray(a)&&Tb&&null!=a&&a instanceof Uint8Array){var b;void 0===b&&(b=0);if(!Sb){Sb={};for(var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),d=["+/=","+/","-_=","-_.","-_"],e=0;5>e;e++){var f=c.concat(d[e].split(""));Rb[e]=f;for(var g=0;g<f.length;g++){var k=f[g];void 0===Sb[k]&&(Sb[k]=g)}}}b=Rb[b];c=Array(Math.floor(a.length/3));d=b[64]||"";for(e=f=0;f<a.length-2;f+=3){var l=
a[f],m=a[f+1];k=a[f+2];g=b[l>>2];l=b[(l&3)<<4|m>>4];m=b[(m&15)<<2|k>>6];k=b[k&63];c[e++]=g+l+m+k}g=0;k=d;switch(a.length-f){case 2:g=a[f+1],k=b[(g&15)<<2]||d;case 1:a=a[f],c[e]=b[a>>2]+b[(a&3)<<4|g>>4]+k+d}return c.join("")}}return a};function hc(a){var b=ic;b=void 0===b?jc:b;return kc(a,b)}function lc(a,b){if(null!=a){if(Array.isArray(a))a=kc(a,b);else if(Yb(a)){var c={},d;for(d in a)c[d]=lc(a[d],b);a=c}else a=b(a);return a}}function kc(a,b){for(var c=a.slice(),d=0;d<c.length;d++)c[d]=lc(c[d],b);Array.isArray(a)&&Wb(a)&1&&Xb(c);return c}function ic(a){if(a&&typeof a==p&&a.toJSON)return a.toJSON();a=gc(a);return Array.isArray(a)?hc(a):a}function jc(a){return Tb&&null!=a&&a instanceof Uint8Array?new Uint8Array(a):a};function mc(a){y.setTimeout(function(){throw a;},0)};function nc(a,b,c){a||(a=oc);oc=null;var d=this.constructor.g;a||(a=d?[d]:[]);this.h=(d?0:-1)-(this.constructor.h||0);this.j=void 0;this.na=a;a:{d=this.na.length;a=d-1;if(d&&(d=this.na[a],Yb(d))){this.i=a-this.h;this.g=d;break a}void 0!==b&&-1<b?(this.i=Math.max(b,a+1-this.h),this.g=void 0):this.i=Number.MAX_VALUE}if(c)for(b=0;b<c.length;b++)if(a=c[b],a<this.i)a+=this.h,(d=this.na[a])?Array.isArray(d)&&Xb(d):this.na[a]=$b;else{d=this.g||(this.g=this.na[this.i+this.h]={});var e=d[a];e?Array.isArray(e)&&
Xb(e):d[a]=$b}}nc.prototype.toJSON=function(){var a=this.na;return Zb?a:hc(a)};function pc(a,b){return gc(b)}var oc;function qc(){nc.apply(this,arguments)}x(qc,nc);if(ac){var rc={};Object.defineProperties(qc,(rc[Symbol.hasInstance]=bc(function(){throw Error("Cannot perform instanceof checks for MutableMessage");}),rc))};function G(){qc.apply(this,arguments)}x(G,qc);if(ac){var sc={};Object.defineProperties(G,(sc[Symbol.hasInstance]=bc(Object[Symbol.hasInstance]),sc))};function tc(a){G.call(this,a)}x(tc,G);function uc(a){G.call(this,a)}x(uc,G);uc.g="tf";function vc(a){G.call(this,a)}x(vc,G);function wc(a){G.call(this,a)}x(wc,G);function xc(a){G.call(this,a)}x(xc,G);xc.g="er";function yc(a){G.call(this,a)}x(yc,G);yc.g="xsrf";function zc(a){return Bb(a.prototype,"$$generatedClassName",function(){return"Class$obf_"+{valueOf:function(){return++Ac}}})}var Ac=1E3;function Bc(a,b){this.i=a;this.j=b;this.h=0;this.g=null}Bc.prototype.get=function(){if(0<this.h){this.h--;var a=this.g;this.g=a.next;a.next=null}else a=this.i();return a};function Cc(a,b){a.j(b);100>a.h&&(a.h++,b.next=a.g,a.g=b)};var Dc=[],Ec=[],Fc=!1;function Gc(a){Dc[Dc.length]=a;if(Fc)for(var b=0;b<Ec.length;b++)a(z(Ec[b].g,Ec[b]))};try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){};function Hc(){return null}function Ic(){};function Jc(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Kc(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function H(a){var b={},c;for(c in a)b[c]=a[c];return b}var Lc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Mc(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<Lc.length;f++)c=Lc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Nc;function I(a,b){this.i=b===Oc?a:""}I.prototype.h=!0;I.prototype.g=function(){return this.i.toString()};I.prototype.toString=function(){return this.i.toString()};function Pc(a){return a instanceof I&&a.constructor===I?a.i:"type_error:SafeUrl"}var Qc=/^data:(.*);base64,[a-z0-9+\/]+=*$/i;function Rc(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");return a.match(Qc)?new I(a,Oc):null}var Sc=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Oc={},Tc=new I(sa,Oc);var Uc={};function Vc(a,b,c){this.i=c===Uc?a:"";this.h=!0}Vc.prototype.g=function(){return this.i.toString()};Vc.prototype.toString=function(){return this.i.toString()};function Wc(a){return a instanceof Vc&&a.constructor===Vc?a.i:"type_error:SafeHtml"}var Xc=new Vc(y.trustedTypes&&y.trustedTypes.emptyHTML||"",0,Uc);function Yc(a){if(void 0===Nc){var b=null;var c=y.trustedTypes;if(c&&c.createPolicy){try{b=c.createPolicy("goog#html",{createHTML:gb,createScript:gb,createScriptURL:gb})}catch(d){y.console&&y.console.error(d.message)}Nc=b}else Nc=b}a=(b=Nc)?b.createHTML(a):a;return new Vc(a,null,Uc)};var Zc=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=Wc(Xc);return!b.parentElement});function $c(a,b){if(Zc())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=Wc(b)}
function ad(a,b){if(b instanceof I)var c=b;else a:if(c=b,b=/^data:image\//i.test(b),!(c instanceof I)){c=typeof c==p&&c.h?c.g():String(c);if(b&&/^data:/i.test(c)&&(b=Rc(c)||Tc,b.g()==c)){c=b;break a}Sc.test(c)||(c=sa);c=new I(c,Oc)}a.src=Pc(c)};function bd(a){return decodeURIComponent(a.replace(/\+/g," "))}function cd(a){sb.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(lb,"&amp;")),-1!=a.indexOf("<")&&(a=a.replace(mb,"&lt;")),-1!=a.indexOf(">")&&(a=a.replace(nb,"&gt;")),-1!=a.indexOf('"')&&(a=a.replace(pb,"&quot;")),-1!=a.indexOf("'")&&(a=a.replace(qb,"&#39;")),-1!=a.indexOf("\x00")&&(a=a.replace(rb,"&#0;")));return a}
function dd(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var c=y.document.createElement("div");return a.replace(ed,function(d,e){var f=b[d];if(f)return f;"#"==e.charAt(0)&&(e=Number("0"+e.substr(1)),isNaN(e)||(f=String.fromCharCode(e)));f||(f=Yc(d+" "),$c(c,f),f=c.firstChild.nodeValue.slice(0,-1));return b[d]=f})}
function fd(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return"#"!=c.charAt(0)||(c=Number("0"+c.substr(1)),isNaN(c))?b:String.fromCharCode(c)}})}
var ed=/&([^;\s<&]+);?/g,gd={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},hd={"'":"\\'"},id=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};function jd(a,b){if(!Number.isFinite(a))return String(a);a=String(a);var c=a.indexOf(".");-1===c&&(c=a.length);var d="-"===a[0]?"-":"";d&&(a=a.substring(1));return d+id("0",Math.max(0,b-c))+a}function kd(a){return null==a?"":String(a)}
function ld(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)};function md(a){return a.parentWindow||a.defaultView}function nd(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)}function od(){this.g=y.document||document}od.prototype.createElement=function(a){return nd(this.g,a)};od.prototype.appendChild=function(a,b){a.appendChild(b)};var pd;
function qd(){var a=y.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!C("Presto")&&(a=function(){var e=nd(document,"IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var g="callImmediate"+Math.random(),k="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=z(function(l){if(("*"==k||l.origin==k)&&l.data==g)this.port1.onmessage()},this);
f.addEventListener(Aa,e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,k)}}});if("undefined"!==typeof a&&!C("Trident")&&!C("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.Zb;c.Zb=null;e()}};return function(e){d.next={Zb:e};d=d.next;b.port2.postMessage(0)}}return function(e){y.setTimeout(e,0)}}function rd(a){return a}Gc(function(a){rd=a});function sd(){this.h=this.g=null}sd.prototype.add=function(a,b){var c=td.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c};function ud(){var a=vd,b=null;a.g&&(b=a.g,a.g=a.g.next,a.g||(a.h=null),b.next=null);return b}var td=new Bc(function(){return new wd},function(a){return a.reset()});function wd(){this.next=this.scope=this.g=null}wd.prototype.set=function(a,b){this.g=a;this.scope=b;this.next=null};wd.prototype.reset=function(){this.next=this.scope=this.g=null};function xd(a,b){yd||zd();Ad||(yd(),Ad=!0);vd.add(a,b)}var yd;function zd(){if(y.Promise&&y.Promise.resolve){var a=y.Promise.resolve(void 0);yd=function(){a.then(Bd)}}else yd=function(){var b=Bd;b=rd(b);typeof y.setImmediate!==h||y.Window&&y.Window.prototype&&!C("Edge")&&y.Window.prototype.setImmediate==y.setImmediate?(pd||(pd=qd()),pd(b)):y.setImmediate(b)}}var Ad=!1,vd=new sd;function Bd(){for(var a;a=ud();){try{a.g.call(a.scope)}catch(b){mc(b)}Cc(td,a)}Ad=!1};function Cd(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function Dd(a){this.g=0;this.s=void 0;this.j=this.h=this.i=null;this.l=this.o=!1;if(a!=Va)try{var b=this;a.call(void 0,function(c){Ed(b,2,c)},function(c){Ed(b,3,c)})}catch(c){Ed(this,3,c)}}function Fd(){this.next=this.i=this.h=this.j=this.g=null;this.l=!1}Fd.prototype.reset=function(){this.i=this.h=this.j=this.g=null;this.l=!1};var Gd=new Bc(function(){return new Fd},function(a){a.reset()});function Hd(a,b,c){var d=Gd.get();d.j=a;d.h=b;d.i=c;return d}
Dd.prototype.then=function(a,b,c){return Id(this,typeof a===h?a:null,typeof b===h?b:null,c)};Dd.prototype.$goog_Thenable=!0;Dd.prototype.cancel=function(a){if(0==this.g){var b=new Jd(a);xd(function(){Kd(this,b)},this)}};function Kd(a,b){if(0==a.g)if(a.i){var c=a.i;if(c.h){for(var d=0,e=null,f=null,g=c.h;g&&(g.l||(d++,g.g==a&&(e=g),!(e&&1<d)));g=g.next)e||(f=g);e&&(0==c.g&&1==d?Kd(c,b):(f?(d=f,d.next==c.j&&(c.j=d),d.next=d.next.next):Ld(c),Md(c,e,3,b)))}a.i=null}else Ed(a,3,b)}
function Nd(a,b){a.h||2!=a.g&&3!=a.g||Od(a);a.j?a.j.next=b:a.h=b;a.j=b}function Id(a,b,c,d){var e=Hd(null,null,null);e.g=new Dd(function(f,g){e.j=b?function(k){try{var l=b.call(d,k);f(l)}catch(m){g(m)}}:f;e.h=c?function(k){try{var l=c.call(d,k);void 0===l&&k instanceof Jd?g(k):f(l)}catch(m){g(m)}}:g});e.g.i=a;Nd(a,e);return e.g}Dd.prototype.B=function(a){this.g=0;Ed(this,2,a)};Dd.prototype.C=function(a){this.g=0;Ed(this,3,a)};
function Ed(a,b,c){if(0==a.g){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.g=1;a:{var d=c,e=a.B,f=a.C;if(d instanceof Dd){Nd(d,Hd(e||Va,f||null,a));var g=!0}else if(Cd(d))d.then(e,f,a),g=!0;else{if(Ya(d))try{var k=d.then;if(typeof k===h){Pd(d,k,e,f,a);g=!0;break a}}catch(l){f.call(a,l);g=!0;break a}g=!1}}g||(a.s=c,a.g=b,a.i=null,Od(a),3!=b||c instanceof Jd||Qd(a,c))}}
function Pd(a,b,c,d,e){function f(l){k||(k=!0,d.call(e,l))}function g(l){k||(k=!0,c.call(e,l))}var k=!1;try{b.call(a,g,f)}catch(l){f(l)}}function Od(a){a.o||(a.o=!0,xd(a.v,a))}function Ld(a){var b=null;a.h&&(b=a.h,a.h=b.next,b.next=null);a.h||(a.j=null);return b}Dd.prototype.v=function(){for(var a;a=Ld(this);)Md(this,a,this.g,this.s);this.o=!1};
function Md(a,b,c,d){if(3==c&&b.h&&!b.l)for(;a&&a.l;a=a.i)a.l=!1;if(b.g)b.g.i=null,Rd(b,c,d);else try{b.l?b.j.call(b.i):Rd(b,c,d)}catch(e){Sd.call(null,e)}Cc(Gd,b)}function Rd(a,b,c){2==b?a.j.call(a.i,c):a.h&&a.h.call(a.i,c)}function Qd(a,b){a.l=!0;xd(function(){a.l&&Sd.call(null,b)})}var Sd=mc;function Jd(a){B.call(this,a);this.g=!1}A(Jd,B);Jd.prototype.name="cancel";/*

 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: MIT
*/
function J(){this.o=[];this.j=this.g=!1;this.i=void 0;this.B=this.C=this.v=!1;this.s=0;this.h=null;this.l=0}u=J.prototype;u.cancel=function(a){if(this.g)this.i instanceof J&&this.i.cancel();else{if(this.h){var b=this.h;delete this.h;a?b.cancel(a):(b.l--,0>=b.l&&b.cancel())}this.B=!0;this.g||this.hc(new Td(this))}};u.ec=function(a,b){this.v=!1;Ud(this,a,b)};function Ud(a,b,c){a.g=!0;a.i=c;a.j=!b;Vd(a)}function Wd(a){if(a.g){if(!a.B)throw new Xd(a);a.B=!1}}
u.callback=function(a){Wd(this);Ud(this,!0,a)};u.hc=function(a){Wd(this);Ud(this,!1,a)};function Yd(a,b,c){Zd(a,b,null,c)}function Zd(a,b,c,d){a.o.push([b,c,d]);a.g&&Vd(a)}u.then=function(a,b,c){var d,e,f=new Dd(function(g,k){e=g;d=k});Zd(this,e,function(g){g instanceof Td?f.cancel():d(g)});return f.then(a,b,c)};J.prototype.$goog_Thenable=!0;function $d(a,b){b instanceof J?Yd(a,z(b.D,b)):Yd(a,function(){return b})}
J.prototype.D=function(a){var b=new J;Zd(this,b.callback,b.hc,b);a&&(b.h=this,this.l++);return b};function ae(a){return wb(a.o,function(b){return typeof b[1]===h})}
function Vd(a){if(a.s&&a.g&&ae(a)){var b=a.s,c=be[b];c&&(y.clearTimeout(c.g),delete be[b]);a.s=0}a.h&&(a.h.l--,delete a.h);b=a.i;for(var d=c=!1;a.o.length&&!a.v;){var e=a.o.shift(),f=e[0],g=e[1];e=e[2];if(f=a.j?g:f)try{var k=f.call(e||null,b);void 0!==k&&(a.j=a.j&&(k==b||k instanceof Error),a.i=b=k);if(Cd(b)||typeof y.Promise===h&&b instanceof y.Promise)d=!0,a.v=!0}catch(l){b=l,a.j=!0,ae(a)||(c=!0)}}a.i=b;d&&(k=z(a.ec,a,!0),d=z(a.ec,a,!1),b instanceof J?(Zd(b,k,d),b.C=!0):b.then(k,d));c&&(b=new ce(b),
be[b.g]=b,a.s=b.g)}function Xd(){B.call(this)}A(Xd,B);Xd.prototype.message="Deferred has already fired";Xd.prototype.name="AlreadyCalledError";function Td(){B.call(this)}A(Td,B);Td.prototype.message="Deferred was canceled";Td.prototype.name="CanceledError";function ce(a){this.g=y.setTimeout(z(this.i,this),0);this.h=a}ce.prototype.i=function(){delete be[this.g];throw this.h;};var be={};function K(){}K.prototype.Ea=function(a){return de(this,a)};K.prototype.$a=function(){return ee(this)};K.prototype.toString=function(){return L(fe(ge(this.constructor)))+"@"+L((this.$a()>>>0).toString(16))};function he(){}x(he,K);function ie(a,b){je(a);a.j=b;ke(a)}he.prototype.h=function(a){this.g=a;le(this,a)};function ke(a){a.g instanceof Error&&(Error.captureStackTrace?Error.captureStackTrace(a.g):a.g.stack=Error().stack)}he.prototype.toString=function(){var a=fe(ge(this.constructor)),b=this.j;return null==b?a:L(a)+": "+L(b)};
function me(a){if(null!=a){var b=a.Sc;if(null!=b)return b}a instanceof TypeError?(b=new ne,ie(b,L(a)),oe(b),b.i=a,b.h(new TypeError(b)),a=b):(b=new pe,ie(b,L(a)),oe(b),b.i=a,b.h(Error(b)),a=b);return a}function je(a){a.o=qe([0],he,re,he.g)}function re(a){return a instanceof he}function le(a,b){if(b instanceof Object)try{b.Sc=a,Object.defineProperties(b,{Xa:{get:function(){return a.l&&a.l.g}}})}catch(c){}};function se(){}x(se,he);function te(){}x(te,se);function de(a,b){return Object.is(a,b)||null==a&&null==b};function ue(){}var ve;x(ue,K);function we(){}x(we,K);function xe(){}x(xe,te);function pe(){}x(pe,te);pe.prototype.h=function(a){te.prototype.h.call(this,"__noinit__"===this.i?a:this.i)};function oe(a){a.i="__noinit__"};function ne(){}x(ne,pe);function ye(a){switch(typeof a){case r:for(var b=0,c=0;c<a.length;c=c+1|0)b=(b<<5)-b+a.charCodeAt(c)|0;return b;case n:return ze(a);case va:return a?1231:1237;default:return null==a?0:ee(a)}}var Ae=0;function ee(a){return a.Ob||(Object.defineProperties(a,{Ob:{value:Ae=Ae+1|0,enumerable:!1}}),a.Ob)};function Be(){};function Ce(){}x(Ce,K);function De(a){var b=typeof a;if(b==n)return ge(Ee);if(b==va)return ge(we);if(b==r)return ge(Fe);if(Array.isArray(a))return(a=a.Jc)?ge(a.Jb,a.Fb):ge(K,1);if(a instanceof K)return ge(a.constructor);if(a)return ge(b==h?Be:Ce);throw new TypeError("null.getClass");};function Ge(){}x(Ge,K);Ge.prototype.toString=function(){return this.g};function He(a,b){return typeof a==r?a.charCodeAt(b):a.g.charCodeAt(b)};function Ie(){}x(Ie,Ge);function Je(){}x(Je,te);function Ke(a){return 56320<=a&&57343>=a};function Le(){}x(Le,Je);function Ee(){}x(Ee,ue);function ze(a){return Math.max(Math.min(a,2147483647),-2147483648)|0};function qe(a,b,c,d){return Me(a,d,{Jb:b,pc:c,Fb:a.length})}function Me(a,b,c){var d=a[0];if(null==d)return null;var e=[];c&&(e.Jc=c);if(1<a.length){a=a.slice(1);c=c&&{Jb:c.Jb,pc:c.pc,Fb:c.Fb-1};for(var f=0;f<d;f++)e[f]=Me(a,b,c)}else if(void 0!==b)for(a=0;a<d;a++)e[a]=b;else e.length=d;return e};var Ne;function Oe(){Oe=function(){};Ne=qe([256],Pe,Qe,Pe.g)};function Pe(){this.g=0}x(Pe,ue);function Re(a){if(-129<a&&128>a){Oe();var b=a+128|0,c=Ne[b];c||(c=Ne[b]=Se(a));a=c}else a=Se(a);return a}function Se(a){var b=new Pe;b.g=a;return b}Pe.prototype.Ea=function(a){return Qe(a)&&a.g==this.g};Pe.prototype.$a=function(){return this.g};Pe.prototype.toString=function(){return""+this.g};function Qe(a){return a instanceof Pe};function Fe(){}x(Fe,K);function L(a){return null==a?Ba:a.toString()}function Te(a,b){var c=a.length,d,e=He(a,(d=b,b=b+1|0,d)),f,g;55296<=e&&56319>=e&&b<c&&Ke(f=He(a,b))?g=65536+((e&1023)<<10)+(f&1023)|0:g=e;return g};function Ue(a,b){this.g=a;this.h=b}x(Ue,K);function fe(a){if(0!=a.h){for(var b="",c=0;c<a.h;c=c+1|0)b=L(b)+"[";a=L(b)+String("L"+L(zc(a.g))+";")}else a=zc(a.g);return a}Ue.prototype.toString=function(){return"class "+L(fe(this))};function ge(a,b){var c=b||0;return Bb(a.prototype,"$$class/"+c,function(){return new Ue(a,c)})};function Ve(){this.g=!1}x(Ve,K);u=Ve.prototype;u.dispose=function(){this.g||(this.g=!0,this.A())};u.isDisposed=function(){return this.g};u.I=function(a){a&&!a.isDisposed()&&(this.isDisposed()?a.dispose():(this.j||(this.j=[]),this.j.push(a)))};u.A=function(){if(this.j){var a=this.j;for(var b=0;b<a.length;b++)a[b].dispose();this.j.length=0}};u.toString=function(){return K.prototype.toString.call(this)||""};function We(a,b){a=L(a);if(b)for(var c=0;c<b.length;c=c+1|0){var d=b,e=c;var f=b[c];if(null==f)var g=Ba;else try{g=f.toString()}catch(l){if(l=me(l),l instanceof se)g=l,f=L(fe(De(f)))+String.fromCharCode(64)+L((ye(f)>>>0).toString(16)),g="<"+L(f)+" threw "+L(fe(De(g)))+">";else throw l.g;}d[e]=g}else b=["(Object[])null"];c=new Ie;c.g="";for(d=g=0;d<b.length;){e=void 0;f=a.indexOf("%s",g);if(-1==f)break;c.g=L(c.g)+L(L(a).substr(g,f-g|0));g=b[e=d,d=d+1|0,e];c.g=L(c.g)+L(g);g=f+2|0}c.g=L(c.g)+L(L(a).substr(g,
a.length-g|0));if(d<b.length){var k;c.g=L(c.g)+" [";a=b[k=d,d=d+1|0,k];for(c.g=L(c.g)+L(a);d<b.length;)k=void 0,c.g=L(c.g)+", ",a=b[k=d,d=d+1|0,k],c.g=L(c.g)+L(a);c.g=L(c.g)+String.fromCharCode(93)}return c.toString()};function Xe(a,b,c){a[b]=void 0!==c?c:null};function Ye(){var a=a?a:function(c){return ze(Math.floor(Math.random()*c))};var b=(a(2147483647)>>>0).toString(16);b=L(Ze("0",Math.max(0,8-b.length|0)))+L(b);a=(a(2147483647)>>>0).toString(16);return L(a)+L(b)};var Ze=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};function $e(a,b){return af(b)in a};function af(a){if(null==a)throw a=new ne,ie(a,"can't identity hash null"),oe(a),a.h(new TypeError(a)),a.g;return":"+ye(a)};function bf(){this.g=!1}x(bf,Ve);function cf(){this.g=!1;this.h={};this.i=null}x(cf,bf);cf.prototype.A=function(){bf.prototype.A.call(this);var a=this.h,b;for(b in a)delete a[b];this.i=null};cf.prototype.dispatchEvent=function(a){if(!this.i){var b=this.h;var c=[],d;for(d in b)c.push(b[d]);this.i=c}b=this.i;for(c=0;c<b.length;c=c+1|0)(0,b[c])(a)};var df;function ef(){var a;if(!df){var b=new ff(null);df=function(){return b}}return a=df,a()};function gf(){}x(gf,K);gf.prototype.get=function(){if(!this.g){var a=y._docs_flag_initialData;this.g=a?a:{}}return this.g};function ff(a){this.g=new gf;if(a)for(var b in a){var c=b,d=a[b],e=this.g.get();e[c]=Qe(d)?d.g:null!=d?d:null}}x(ff,K);ff.prototype.get=function(a){return this.g.get()[a]};function hf(a,b){a=a.g.get();return b in a}function jf(a,b){a=a.get(b);return typeof a==r?"true"==a||"1"==a:!!a}
function kf(a,b){if(!hf(a,b)||null==a.get(b))return NaN;try{var c=L(a.get(b));ve||(ve=RegExp("^\\s*[+-]?(NaN|Infinity|((\\d+\\.?\\d*)|(\\.\\d+))([eE][+-]?\\d+)?[dDfF]?)\\s*$"));if(!ve.test(c)){var d=new Le;ie(d,'For input string: "'+L(c)+'"');d.h(Error(d));throw d.g;}return parseFloat(c)}catch(e){e=me(e);if(e instanceof Le)return NaN;throw e.g;}}function lf(a,b){if(!hf(a,b))return"";a=a.get(b);return null==a?"":n===typeof a&&ze(a)==ze(a)?""+ze(a):L(a)};function mf(){this.Gb=lf(ef(),"gaia_session_id")}var nf;x(mf,K);function of(){}var pf,qf,rf,sf,tf;x(of,K);function uf(){uf=function(){};pf=new of;qf=new of;rf=new of;sf=new of;tf=new of};function vf(){this.g=0}var wf={},xf,yf,zf,Af,Bf,Cf,Df,Ef,Ff,Gf,Hf,If,Jf,Kf,Lf;x(vf,K);function M(a,b){var c=new vf;c.h=a;c.g=b;Xe(wf,a,c);return c}vf.prototype.toString=function(){return this.h};
function N(){N=function(){};Af=M("IDLE",1);Bf=M("BUSY",1);Cf=M("RECOVERING",2);Df=M("OFFLINE",3);Ef=M("SERVER_DOWN",3);yf=M("FORBIDDEN",4);zf=M("AUTH_REQUIRED",4);Ff=M("SESSION_LIMIT_EXCEEDED",5);Gf=M("LOCKED",5);Hf=M("INCOMPATIBLE_SERVER",5);If=M("CLIENT_ERROR",5);M("BATCH_CLIENT_ERROR",3);M("SAVE_ERROR",5);Jf=M("DOCUMENT_TOO_LARGE",5);M("BATCH_SAVE_ERROR",3);Kf=M("DOCS_EVERYWHERE_IMPORT_ERROR",5);xf=M("POST_LIMIT_EXCEEDED_ERROR",5);Lf=M("DOCS_QUOTA_EXCEEDED_ERROR",5)};var Mf;function Nf(){Nf=function(){};Mf=RegExp("^[^\\[\\{]+")};function Of(){this.i=this.h=this.g=!1;this.j=0}x(Of,K);function Pf(){this.i=this.h=this.g=!1;this.j=0}x(Pf,K);function Qf(a){var b={};Xe(b,"sid",a.l);var c=ef();jf(c,"docs-ecvca")&&Xe(b,"vc",a.g?"1":"0");Xe(b,"c",a.h?"1":"0");Xe(b,"w",a.i?"1":"0");Xe(b,"flr",""+ze(a.j));hf(c,"docs-smv")&&(a=""+ze(kf(c,"docs-smv")),Xe(b,"smv",a));return b};function Rf(){this.g=!1;this.i=new cf;this.o=new cf;this.l=new Sf((uf(),pf));this.h=(N(),Af);this.I(this.i);this.I(this.o);this.I(this.l)}x(Rf,Ve);function Tf(a,b,c,d){var e=a.h;if(!de(b,e)){a.h=b;var f=a.l;var g=b.Ea(yf)?(uf(),sf):b.Ea(zf)?(uf(),rf):5<=b.g?(uf(),tf):1!=b.g?(uf(),qf):(uf(),pf);if(!de(f.value,g)){var k=f.value;f.value=g;f.dispatchEvent(new Uf(k,g))}a.i.dispatchEvent(new Vf(e,b,c,d))}}Rf.prototype.getState=function(){return this.h};function Vf(a,b){this.h=a;this.g=b}x(Vf,K);function Wf(a){cf.call(this);this.value=a}x(Wf,cf);function Sf(a){Wf.call(this,a)}x(Sf,Wf);function Uf(a,b){this.oldValue=a;this.newValue=b}x(Uf,K);function Xf(a,b,c,d,e){this.l=a;this.i=b;this.j=c;this.h=d;this.g=e}x(Xf,K);Xf.prototype.toString=function(){var a="MalformedCharacterContext(unicodeChar: "+L(this.l)+", index: "+this.i+", textLength: "+this.j;null!=this.h&&(a=L(a)+(", prev: "+L(this.h)));null!=this.g&&(a=L(a)+(", next: "+L(this.g)));return L(a)+")"};Xf.prototype.Ea=function(a){return a instanceof Xf&&de(this.toString(),a.toString())};
Xf.prototype.$a=function(){for(var a=[this.l,Re(this.i),Re(this.j),this.h,this.g],b=1,c=0;c<a.length;c++){b=Math.imul(31,b);var d=a[c];null!=d?d=d.$a?d.$a():ye(d):d=0;b=b+d|0}return b};function Yf(a,b){return 0>b||b>=a.length?null:"\\u"+L((Te(a,b)>>>0).toString(16))};function Zf(){}x(Zf,K);function $f(){this.g=!1;this.h=[]}x($f,Ve);function ag(a,b,c){a=a.h;if(null==c)throw b=new ne,je(b),ke(b),oe(b),b.h(new TypeError(b)),b.g;if($e(b.h,c))throw b=We("Observer %s previously registered.",[c]),c=new xe,ie(c,b),c.h(Error(c)),c.g;Xe(b.h,af(c),c);b.i=null;var d=new Zf;d.g=b;d.h=c;a.push(d)}
$f.prototype.A=function(){for(var a=this.h.pop();a;){if($e(a.g.h,a.h)){var b=a.g,c=a=a.h;if(!$e(b.h,c))throw b=We("Trying to remove inexistant Observer %s.",[a]),a=new Je,ie(a,b),a.h(Error(a)),a.g;a=af(c);delete b.h[a];b.i=null}a=this.h.pop()}Ve.prototype.A.call(this)};function bg(a,b,c,d,e,f){this.l=a;this.h=cg(b);this.o=c;this.g=d;this.j=e;this.i=f}function cg(a){return a&&!jb(a)?kb(a.toLowerCase()):null}bg.prototype.Ea=function(a){return this.l==a.l&&this.h==a.h&&this.o==a.o&&this.g==a.g&&this.j==a.j&&this.i==a.i};function dg(){this.i=this.j=this.h=this.s=this.o=this.g=this.l=null};function O(a){a&&typeof a.dispose==h&&a.dispose()};function eg(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];Xa(d)?eg.apply(null,d):O(d)}};function P(){this.ia=this.ia;this.Fa=this.Fa}u=P.prototype;u.ia=!1;u.isDisposed=function(){return this.ia};u.dispose=function(){this.ia||(this.ia=!0,this.A())};u.I=function(a){a=db(O,a);this.ia?a():(this.Fa||(this.Fa=[]),this.Fa.push(a))};u.A=function(){if(this.Fa)for(;this.Fa.length;)this.Fa.shift()()};function Q(a,b){this.type=a;this.h=this.target=b;this.defaultPrevented=!1}Q.prototype.j=function(){this.defaultPrevented=!0};function fg(a){var b=y.onerror;y.onerror=function(c,d,e,f,g){b&&b(c,d,e,f,g);a({message:c,fileName:d,line:e,lineNumber:e,yd:f,error:g});return!1}}
function gg(a){var b=Ua("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if(typeof a===r)return{message:a,name:"Unknown error",lineNumber:ia,fileName:b,stack:ia};var c=!1;try{var d=a.lineNumber||a.line||ia}catch(f){d=ia,c=!0}try{var e=a.fileName||a.filename||a.sourceURL||y.$googDebugFname||b}catch(f){e=ia,c=!0}b=hg(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name))return c=a.message,null==c&&(c=a.constructor&&a.constructor instanceof Function?'Unknown Error of type "'+
(a.constructor.name?a.constructor.name:ig(a.constructor))+'"':"Unknown Error of unknown type",typeof a.toString===h&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())),{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||ia};a.stack=b;return{message:a.message,name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:a.stack}}
function hg(a,b){b||(b={});b[jg(a)]=!0;var c=a.stack||"";(a=a.Xa)&&!b[jg(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+=typeof a===r?a:a.message+"\n"),c+=hg(a,b));return c}function jg(a){var b="";typeof a.toString===h&&(b=""+a);return b+a.stack}function kg(a,b){a instanceof Error||(a=Error(a),Error.captureStackTrace&&Error.captureStackTrace(a,kg));a.stack||(a.stack=lg(kg));if(b){for(var c=0;a[Aa+c];)++c;a[Aa+c]=String(b)}return a}
function mg(a,b){a=kg(a);if(b)for(var c in b){var d=a,e=c,f=b[c];d.__closure__error__context__984382||(d.__closure__error__context__984382={});d.__closure__error__context__984382[e]=f}return a}function lg(a){var b=Error();if(Error.captureStackTrace)Error.captureStackTrace(b,a||lg),b=String(b.stack);else{try{throw b;}catch(c){b=c}b=(b=b.stack)?String(b):null}b||(b=ng(a||arguments.callee.caller,[]));return b}
function ng(a,b){var c=[];if(0<=vb(b,a))c.push("[...circular reference...]");else if(a&&50>b.length){c.push(ig(a)+"(");for(var d=a.arguments,e=0;d&&e<d.length;e++){0<e&&c.push(", ");var f=d[e];switch(typeof f){case p:f=f?p:Ba;break;case r:break;case n:f=String(f);break;case va:f=f?"true":"false";break;case h:f=(f=ig(f))?f:"[fn]";break;default:f=typeof f}40<f.length&&(f=f.substr(0,40)+"...");c.push(f)}b.push(a);c.push(")\n");try{c.push(ng(a.caller,b))}catch(g){c.push("[exception trying to get caller]\n")}}else a?
c.push("[...long stack...]"):c.push("[end]");return c.join("")}function ig(a){if(og[a])return og[a];a=String(a);if(!og[a]){var b=/function\s+([^\(]+)/m.exec(a);og[a]=b?b[1]:"[Anonymous]"}return og[a]}var og={};var pg=function(){if(!y.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{y.addEventListener("test",Va,b),y.removeEventListener("test",Va,b)}catch(c){}return a}();function qg(a,b){Q.call(this,a?a.type:"");this.relatedTarget=this.h=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.g=null;a&&this.init(a,b)}A(qg,Q);var rg={2:"touch",3:"pen",4:"mouse"};
qg.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.h=b;if(b=a.relatedTarget){if(Eb){a:{try{Ab(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;d?(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.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.button=a.button;this.key=a.key||"";this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=typeof a.pointerType===r?a.pointerType:rg[a.pointerType]||"";this.state=a.state;this.g=a;a.defaultPrevented&&qg.P.j.call(this)};
qg.prototype.j=function(){qg.P.j.call(this);var a=this.g;a.preventDefault?a.preventDefault():a.returnValue=!1};var sg="closure_listenable_"+(1E6*Math.random()|0);function tg(a){return!(!a||!a[sg])};var ug=0;function vg(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.lb=e;this.key=++ug;this.cb=this.Ma=!1}function wg(a){a.cb=!0;a.listener=null;a.proxy=null;a.src=null;a.lb=null};function xg(a){this.src=a;this.listeners={};this.g=0}xg.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.g++);var g=yg(a,b,d,e);-1<g?(b=a[g],c||(b.Ma=!1)):(b=new vg(b,this.src,f,!!d,e),b.Ma=c,a.push(b));return b};function zg(a,b){var c=b.type;c in a.listeners&&xb(a.listeners[c],b)&&(wg(b),0==a.listeners[c].length&&(delete a.listeners[c],a.g--))}
xg.prototype.Za=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=yg(a,b,c,d));return-1<e?a[e]:null};xg.prototype.hasListener=function(a,b){var c=void 0!==a,d=c?a.toString():"",e=void 0!==b;return Kc(this.listeners,function(f){for(var g=0;g<f.length;++g)if(!(c&&f[g].type!=d||e&&f[g].capture!=b))return!0;return!1})};function yg(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.cb&&f.listener==b&&f.capture==!!c&&f.lb==d)return e}return-1};var Ag="closure_lm_"+(1E6*Math.random()|0),Bg={},Cg=0;function Dg(a,b,c,d,e){if(d&&d.once)return Eg(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Dg(a,b[f],c,d,e);return null}c=Fg(c);return tg(a)?a.listen(b,c,Ya(d)?!!d.capture:!!d,e):Gg(a,b,c,!1,d,e)}
function Gg(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=Ya(e)?!!e.capture:!!e,k=Hg(a);k||(a[Ag]=k=new xg(a));c=k.add(b,c,d,g,f);if(c.proxy)return c;d=Ig();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)pg||(e=g),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Jg(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Cg++;return c}
function Ig(){function a(c){return b.call(a.src,a.listener,c)}var b=Kg;return a}function Eg(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Eg(a,b[f],c,d,e);return null}c=Fg(c);return tg(a)?a.xa(b,c,Ya(d)?!!d.capture:!!d,e):Gg(a,b,c,!0,d,e)}function Lg(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Lg(a,b[f],c,d,e);else d=Ya(d)?!!d.capture:!!d,c=Fg(c),tg(a)?a.tb(b,c,d,e):a&&(a=Hg(a))&&(b=a.Za(b,c,d,e))&&Mg(b)}
function Mg(a){if(typeof a!==n&&a&&!a.cb){var b=a.src;if(tg(b))zg(b.ja,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Jg(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Cg--;(c=Hg(b))?(zg(c,a),0==c.g&&(c.src=null,b[Ag]=null)):wg(a)}}}function Ng(a,b,c,d,e){c=Fg(c);d=!!d;return tg(a)?a.Za(b,c,d,e):a?(a=Hg(a))?a.Za(b,c,d,e):null:null}function Jg(a){return a in Bg?Bg[a]:Bg[a]="on"+a}
function Kg(a,b){if(a.cb)a=!0;else{b=new qg(b,this);var c=a.listener,d=a.lb||a.src;a.Ma&&Mg(a);a=c.call(d,b)}return a}function Hg(a){a=a[Ag];return a instanceof xg?a:null}var Og="__closure_events_fn_"+(1E9*Math.random()>>>0);function Fg(a){if(typeof a===h)return a;a[Og]||(a[Og]=function(b){return a.handleEvent(b)});return a[Og]}Gc(function(a){Kg=a(Kg)});function R(){P.call(this);this.ja=new xg(this);this.Tc=this;this.Lb=null}A(R,P);R.prototype[sg]=!0;u=R.prototype;u.addEventListener=function(a,b,c,d){Dg(this,a,b,c,d)};u.removeEventListener=function(a,b,c,d){Lg(this,a,b,c,d)};
u.dispatchEvent=function(a){var b=this.Lb;if(b){var c=[];for(var d=1;b;b=b.Lb)c.push(b),++d}b=this.Tc;d=a.type||a;if(typeof a===r)a=new Q(a,b);else if(a instanceof Q)a.target=a.target||b;else{var e=a;a=new Q(d,b);Mc(a,e)}e=!0;if(c)for(var f=c.length-1;0<=f;f--){var g=a.h=c[f];e=Pg(g,d,!0,a)&&e}g=a.h=b;e=Pg(g,d,!0,a)&&e;e=Pg(g,d,!1,a)&&e;if(c)for(f=0;f<c.length;f++)g=a.h=c[f],e=Pg(g,d,!1,a)&&e;return e};
u.A=function(){R.P.A.call(this);if(this.ja){var a=this.ja,b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,wg(d[e]);delete a.listeners[c];a.g--}}this.Lb=null};u.listen=function(a,b,c,d){return this.ja.add(String(a),b,!1,c,d)};u.xa=function(a,b,c,d){return this.ja.add(String(a),b,!0,c,d)};
u.tb=function(a,b,c,d){var e=this.ja;a=String(a).toString();if(a in e.listeners){var f=e.listeners[a];b=yg(f,b,c,d);-1<b&&(wg(f[b]),Array.prototype.splice.call(f,b,1),0==f.length&&(delete e.listeners[a],e.g--))}};function Pg(a,b,c,d){b=a.ja.listeners[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.cb&&g.capture==c){var k=g.listener,l=g.lb||g.src;g.Ma&&zg(a.ja,g);e=!1!==k.call(l,d)&&e}}return e&&!d.defaultPrevented}
u.Za=function(a,b,c,d){return this.ja.Za(String(a),b,c,d)};u.hasListener=function(a,b){return this.ja.hasListener(void 0!==a?String(a):void 0,b)};function Qg(a){R.call(this);this.C=this.l=this.h=this.v=null;this.i=!0;this.s=!1;this.B=this.g=this.j=this.o=null;var b=a.keyData;null==b||""==b?b=new vc:(b=JSON.parse(b),Array.isArray(b)||mc(Error("Expected to deserialize an Array but got "+Wa(b)+": "+b)),oc=b,b=new vc(b),oc=null);this.g=b;if(void 0===dc(this.g,tc,9))throw Error("Invalid or missing user.");b=dc(this.g,tc,9);var c=new dg;c.l=F(b,1);c.g=cg(F(b,8));c.o=F(b,2);c.s=F(b,3);c.h=F(b,4)||"";c.j=!!cc(b,5);c.i=!!cc(b,7);this.o=new bg(c.l,c.g,
c.o,c.h||"",c.j,c.i);this.i=!cc(this.g,20);this.h=F(this.g,11);this.s=!!cc(this.g,12);this.l=F(this.g,23);this.C=F(this.g,24);this.v=F(this.g,31);this.B=a.Bd||null;if(a=dc(this.g,uc,44))this.j=F(a,1);this.dispatchEvent("r")}x(Qg,R);function Rg(a,b){Q.call(this,a);this.payload=b||null}x(Rg,Q);function Sg(a){P.call(this);this.h=a}A(Sg,P);Sg.prototype.g=function(a){return Tg(this,a)};function Ug(a,b){return(b?"__wrapper_":"__protected_")+Za(a)+"__"}function Tg(a,b){var c=Ug(a,!0);b[c]||((b[c]=Vg(a,b))[Ug(a,!1)]=b);return b[c]}
function Vg(a,b){function c(){if(a.isDisposed())return b.apply(this,arguments);try{return b.apply(this,arguments)}catch(e){var d=e;if(!(d&&typeof d===p&&typeof d.message===r&&0==d.message.indexOf(fa)||typeof d===r&&0==d.indexOf(fa)))throw a.h(d),new Wg(d);}}c[Ug(a,!1)]=b;return c}
function Xg(a,b){var c=y.window,d=c[b];c[b]=function(e,f){typeof e===r&&(e=db(eb,e));arguments[0]=e=Tg(a,e);if(d.apply)return d.apply(this,arguments);var g=e;if(2<arguments.length){var k=Array.prototype.slice.call(arguments,2);g=function(){e.apply(this,k)}}return d(g,f)};c[b][Ug(a,!1)]=d}Sg.prototype.A=function(){var a=y.window;var b=a.setTimeout;b=b[Ug(this,!1)]||b;a.setTimeout=b;b=a.setInterval;b=b[Ug(this,!1)]||b;a.setInterval=b;Sg.P.A.call(this)};
function Wg(a){B.call(this,fa+(a&&a.message?String(a.message):String(a)),a);(a=a&&a.stack)&&typeof a===r&&(this.stack=a)}A(Wg,B);function Yg(a){var b=[];Zg(new $g,a,b);return b.join("")}function $g(){}
function Zg(a,b,c){if(null==b)c.push(Ba);else{if(typeof b==p){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),Zg(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],typeof f!=h&&(c.push(e),ah(d,c),c.push(":"),Zg(a,f,c),e=","));c.push("}");return}}switch(typeof b){case r:ah(b,c);break;case n:c.push(isFinite(b)&&!isNaN(b)?
String(b):Ba);break;case va:c.push(String(b));break;case h:c.push(Ba);break;default:throw Error("Unknown type: "+typeof b);}}}var bh={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},ch=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function ah(a,b){b.push('"',a.replace(ch,function(c){var d=bh[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),bh[c]=d);return d}),'"')};function dh(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};function eh(){}eh.prototype.g=null;function fh(a){var b;(b=a.g)||(b={},gh(a)&&(b[0]=!0,b[1]=!0),b=a.g=b);return b};var hh;function ih(){}A(ih,eh);function jh(a){return(a=gh(a))?new ActiveXObject(a):new XMLHttpRequest}function gh(a){if(!a.h&&"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.h=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.h}hh=new ih;function kh(a,b){R.call(this);this.h=a||1;this.g=b||y;this.i=z(this.wd,this);this.j=Date.now()}A(kh,R);u=kh.prototype;u.Ra=!1;u.ba=null;u.setInterval=function(a){this.h=a;this.ba&&this.Ra?(S(this),this.start()):this.ba&&S(this)};u.wd=function(){if(this.Ra){var a=Date.now()-this.j;0<a&&a<.8*this.h?this.ba=this.g.setTimeout(this.i,this.h-a):(this.ba&&(this.g.clearTimeout(this.ba),this.ba=null),this.dispatchEvent("tick"),this.Ra&&(S(this),this.start()))}};
u.start=function(){this.Ra=!0;this.ba||(this.ba=this.g.setTimeout(this.i,this.h),this.j=Date.now())};function S(a){a.Ra=!1;a.ba&&(a.g.clearTimeout(a.ba),a.ba=null)}u.A=function(){kh.P.A.call(this);S(this);delete this.g};function lh(a,b,c){if(typeof a===h)c&&(a=z(a,c));else if(a&&typeof a.handleEvent==h)a=z(a.handleEvent,a);else throw Error(ha);return 2147483647<Number(b)?-1:y.setTimeout(a,b||0)};function mh(a,b,c,d,e,f,g){var k="";a&&(k+=a+":");c&&(k+="//",b&&(k+=b+"@"),k+=c,d&&(k+=":"+d));e&&(k+=e);f&&(k+="?"+f);g&&(k+="#"+g);return k}var nh=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function oh(a,b){return a?b?decodeURI(a):decodeURIComponent(a):a}function ph(a){a=a.match(nh);return mh(a[1],a[2],a[3],a[4])}
function qh(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?bd(e):"")}}}function rh(a,b){if(!b)return a;var c=a.indexOf("#");0>c&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.substr(0,d),e,a.substr(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]}
function sh(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)sh(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+encodeURIComponent(String(b))))}function th(a,b){var c=[];for(b=b||0;b<a.length;b+=2)sh(a[b],a[b+1],c);return c.join("&")}function uh(a){var b=[],c;for(c in a)sh(c,a[c],b);return b.join("&")}function vh(a,b){var c=2==arguments.length?th(arguments[1],0):th(arguments,1);return rh(a,c)}function wh(a,b){b=uh(b);return rh(a,b)}
function xh(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1}var yh=/#|$/,zh=/[?&]($|#)/;function Ah(a,b){for(var c=a.search(yh),d=0,e,f=[];0<=(e=xh(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(zh,"$1")};function T(a){R.call(this);this.headers=new Map;this.C=a||null;this.h=!1;this.B=this.g=null;this.G="";this.j=0;this.i=this.F=this.o=this.D=!1;this.v=0;this.s=null;this.l="";this.H=this.Sa=!1}A(T,R);var Bh=/^https?$/i,Ch=[ja,"PUT"],Dh=[];u=T.prototype;u.Vc=function(){this.dispose();xb(Dh,this)};
u.send=function(a,b,c,d){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.G+"; newUri="+a);b=b?b.toUpperCase():"GET";this.G=a;this.j=0;this.D=!1;this.h=!0;this.g=this.Db();this.B=this.C?fh(this.C):fh(hh);this.g.onreadystatechange=z(this.sc,this);try{this.F=!0,this.g.open(b,String(a),!0),this.F=!1}catch(g){Eh(this);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,d[e]);else if(typeof d.keys===h&&typeof d.get===
h){e=w(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(g){return"content-type"==g.toLowerCase()});e=y.FormData&&a instanceof y.FormData;!(0<=vb(Ch,b))||d||e||c.set(ca,"application/x-www-form-urlencoded;charset=utf-8");b=w(c);for(d=b.next();!d.done;d=b.next())c=w(d.value),d=c.next().value,c=c.next().value,this.g.setRequestHeader(d,c);this.l&&(this.g.responseType=this.l);
"withCredentials"in this.g&&this.g.withCredentials!==this.Sa&&(this.g.withCredentials=this.Sa);try{Fh(this),0<this.v&&((this.H=Gh(this.g))?(this.g.timeout=this.v,this.g.ontimeout=z(this.Pb,this)):this.s=lh(this.Pb,this.v,this)),this.o=!0,this.g.send(a),this.o=!1}catch(g){Eh(this)}};function Gh(a){return E&&Nb(9)&&typeof a.timeout===n&&void 0!==a.ontimeout}u.Db=function(){return this.C?jh(this.C):jh(hh)};u.Pb=function(){"undefined"!=typeof Ta&&this.g&&(this.j=8,this.dispatchEvent("timeout"),this.abort(8))};
function Eh(a){a.h=!1;a.g&&(a.i=!0,a.g.abort(),a.i=!1);a.j=5;Hh(a);Ih(a)}function Hh(a){a.D||(a.D=!0,a.dispatchEvent(wa),a.dispatchEvent("error"))}u.abort=function(a){this.g&&this.h&&(this.h=!1,this.i=!0,this.g.abort(),this.i=!1,this.j=a||7,this.dispatchEvent(wa),this.dispatchEvent("abort"),Ih(this))};u.A=function(){this.g&&(this.h&&(this.h=!1,this.i=!0,this.g.abort(),this.i=!1),Ih(this,!0));T.P.A.call(this)};u.sc=function(){this.isDisposed()||(this.F||this.o||this.i?Jh(this):this.Kb())};u.Kb=function(){Jh(this)};
function Jh(a){if(a.h&&"undefined"!=typeof Ta&&(!a.B[1]||4!=Kh(a)||2!=a.da()))if(a.o&&4==Kh(a))lh(a.sc,0,a);else if(a.dispatchEvent(Ca),4==Kh(a)){a.h=!1;try{Lh(a)?(a.dispatchEvent(wa),a.dispatchEvent("success")):(a.j=6,Hh(a))}finally{Ih(a)}}}function Ih(a,b){if(a.g){Fh(a);var c=a.g,d=a.B[0]?Va:null;a.g=null;a.B=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}}function Fh(a){a.g&&a.H&&(a.g.ontimeout=null);a.s&&(y.clearTimeout(a.s),a.s=null)}
function Lh(a){var b=a.da(),c;if(!(c=dh(b))){if(b=0===b)a=String(a.G).match(nh)[1]||null,!a&&y.self&&y.self.location&&(a=y.self.location.protocol,a=a.substr(0,a.length-1)),b=!Bh.test(a?a.toLowerCase():"");c=b}return c}function Kh(a){return a.g?a.g.readyState:0}u.da=function(){try{return 2<Kh(this)?this.g.status:-1}catch(a){return-1}};u.O=function(){try{return this.g?this.g.responseText:""}catch(a){return""}};
function Mh(a){try{if(!a.g)return null;if("response"in a.g)return a.g.response;switch(a.l){case "":case t:return a.g.responseText;case ta:if("mozResponseArrayBuffer"in a.g)return a.g.mozResponseArrayBuffer}return null}catch(b){return null}}u.getAllResponseHeaders=function(){return this.g&&4==Kh(this)?this.g.getAllResponseHeaders()||"":""};Gc(function(a){T.prototype.Kb=a(T.prototype.Kb)});function Nh(a,b,c){R.call(this);this.i=b||null;this.h={};this.o=Oh;this.l=a;if(!c)if(this.g=null,E&&!Nb("10"))fg(z(this.j,this));else{this.g=new Sg(z(this.j,this));Xg(this.g,"setTimeout");Xg(this.g,"setInterval");a=this.g;b=y.window;c=["requestAnimationFrame","mozRequestAnimationFrame","webkitAnimationFrame","msRequestAnimationFrame"];for(var d=0;d<c.length;d++){var e=c[d];c[d]in b&&Xg(a,e)}a=this.g;Fc=!0;b=z(a.g,a);for(c=0;c<Dc.length;c++)Dc[c](b);Ec.push(a)}}A(Nh,R);
function Ph(a){Q.call(this,"a");this.error=a}A(Ph,Q);function Oh(a,b,c,d){if(d instanceof Map){var e={};d=w(d);for(var f=d.next();!f.done;f=d.next()){var g=w(f.value);f=g.next().value;g=g.next().value;e[f]=g}}else e=d;d=new T;Dh.push(d);d.xa("ready",d.Vc);d.send(a,b,c,e)}
Nh.prototype.j=function(a,b){a=a.error||a;b=b?H(b):{};a instanceof Error&&Mc(b,a.__closure__error__context__984382||{});var c=gg(a);if(this.i)try{this.i(c,b)}catch(m){}var d=c.message.substring(0,1900);if(!(a instanceof B)||a.g){a=c.stack;try{var e=vh(this.l,"script",c.fileName,"error",d,"line",c.lineNumber);a:{for(var f in this.h){var g=!1;break a}g=!0}g||(e=wh(e,this.h));g={};g.trace=a;if(b)for(var k in b)g["context."+k]=b[k];var l=uh(g);this.o(e,ja,l,this.s)}catch(m){}}try{this.dispatchEvent(new Ph(c,
b))}catch(m){}};Nh.prototype.A=function(){O(this.g);Nh.P.A.call(this)};function Qh(a,b,c){this.seq=Rh++;this.type=a;this.payload=b||null;this.rseq=c||0;this.httpMethodHeader=null}var Rh=1;function U(a){P.call(this);this.j=a;this.g={}}A(U,P);var Sh=[];u=U.prototype;u.listen=function(a,b,c,d){Array.isArray(b)||(b&&(Sh[0]=b.toString()),b=Sh);for(var e=0;e<b.length;e++){var f=Dg(a,b[e],c||this.handleEvent,d||!1,this.j||this);if(!f)break;this.g[f.key]=f}return this};u.xa=function(a,b,c,d){return Th(this,a,b,c,d)};function Th(a,b,c,d,e,f){if(Array.isArray(c))for(var g=0;g<c.length;g++)Th(a,b,c[g],d,e,f);else{b=Eg(b,c,d||a.handleEvent,e,f||a.j||a);if(!b)return a;a.g[b.key]=b}return a}
u.tb=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.tb(a,b[f],c,d,e);else if(a=Ng(a,b,c||this.handleEvent,Ya(d)?!!d.capture:!!d,e||this.j||this))Mg(a),delete this.g[a.key]};function Uh(a){Jc(a.g,function(b,c){this.g.hasOwnProperty(c)&&Mg(b)},a);a.g={}}u.A=function(){U.P.A.call(this);Uh(this)};u.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function Vh(a,b){U.call(this);var c=this;this.i=b;this.listen(this.i,["u","r","e","p"],this.o);this.h=a;this.h.Ia("send",function(d){return void Wh(c,d)},!0);this.h.Ia("connectBrowserChannel",function(d){var e=c.i;d="true"==d;if(!e.h||!e.s)throw Error("Cannot create browser channel without Docos config and session ID.");if(e.h.i)throw Error("Cannot control BrowserChannel if it is enabled in KeyData");e.g&&(Xh(e.g.j,"9",e.i),e.g.dispose(),e.g=null);d&&(d=new Yh(ef()),d.G=e.h.o.g,Zh(d,e.h.h,e.s,e.h.l),
e.g=d,$h(e.g,"9",e.i))});a=new Nh("jserror",void 0,void 0);if(!a)throw Error("ErrorReporter.install returned null - impossible!");this.l=a}x(Vh,U);Vh.prototype.o=function(a){this.h.send("recvEvt",new Qh(a.type,a.payload))};function Wh(a,b){var c=b.httpMethodHeader,d=b.payload;(d||"GET"==c)&&ai(a.i,{method:b.type,payload:d,td:function(e){return void a.h.send("recv",new Qh(b.type,e,b.seq))},httpMethodHeader:c})}
Vh.prototype.A=function(){U.prototype.A.call(this);O(this.l);delete this.h;delete this.l;delete this.i};function bi(){P.call(this);this.s={}}A(bi,P);u=bi.prototype;u.connect=function(a){a&&a()};u.isConnected=function(){return!0};u.Ia=function(a,b,c){this.s[a]={callback:b,qc:!!c}};u.bb=function(a){this.j=a};function ci(a,b,c){var d;if(d=(d=a.s[b])?d:a.j?{callback:db(a.j,b),qc:Ya(c)}:null)a=a.ib(b,c,d.qc),null!=a&&d.callback(a)}u.ib=function(a,b,c){if(c&&typeof b===r)try{return JSON.parse(b)}catch(d){return null}else if(!c&&typeof b!==r)return Yg(b);return b};
u.A=function(){bi.P.A.call(this);delete this.s;delete this.j};function di(a,b,c){bi.call(this);c&&(this.h=c.v(this.h));this.g=a;this.I(this.g);this.g.bb(z(this.h,this));this.i=b}x(di,bi);di.prototype.send=function(a,b){Ya(b)&&(b=Yg(b));this.g.send(a,{t:this.i,p:b})};di.prototype.h=function(a,b){ci(this,a,b)};di.prototype.ib=function(a,b,c){b=bi.prototype.ib.call(this,a,b,!0);if(!b)return null;var d=b.t;return d&&d==this.i?bi.prototype.ib.call(this,a,b.p,c):null};function ei(){R.apply(this,arguments)}x(ei,R);function fi(a,b,c){P.call(this);this.h=a;this.j=b||0;this.i=c;this.o=z(this.l,this)}A(fi,P);fi.prototype.g=0;fi.prototype.A=function(){fi.P.A.call(this);gi(this);delete this.h;delete this.i};fi.prototype.start=function(a){gi(this);this.g=lh(this.o,void 0!==a?a:this.j)};function gi(a){0!=a.g&&y.clearTimeout(a.g);a.g=0}fi.prototype.l=function(){this.g=0;this.h&&this.h.call(this.i)};function hi(a,b,c,d){P.call(this);this.i=null!=d?d:.15;this.l=a;this.j=b;this.s=c;this.g=new fi(this.v,void 0,this);this.o=Number.NEGATIVE_INFINITY;this.h=0}x(hi,P);hi.prototype.start=function(){ii(this,!1,!1)};function ii(a,b,c){b&&(gi(a.g),ji(a,a.j));0==a.g.g&&(b=Math.max(0,a.o+a.h-Date.now()),0==b&&(c?b=ji(a,a.j):a.h=0),a.g.start(b))}function ji(a,b){0<b&&0!=a.i&&(b=Math.floor(b*(1-a.i+Math.random()*a.i*2)));return a.h=b}
hi.prototype.v=function(){this.o=Date.now();ji(this,Math.min(Math.max(2*this.h,this.j),this.s));this.l()};hi.prototype.A=function(){this.g.dispose();delete this.g;delete this.l;P.prototype.A.call(this)};function ki(a,b,c,d,e,f){P.call(this);var g=this;this.h=new hi(z(this.o,this),d||5E3,e||45E3,f);this.j=new $f;this.I(this.j);this.l=a;this.s=b;if(this.g=c||null)ag(this.j,this.g.i(),function(){g.i&&ii(g.h,!0,!1)}),ag(this.j,this.g.h(),function(){gi(g.h.g)});this.I(this.h);this.i=!1}x(ki,P);ki.prototype.start=function(){this.i=!0;if(!this.g||this.g.g())this.s?ii(this.h,!1,!0):this.h.start()};ki.prototype.o=function(){!this.i||this.g&&!this.g.g()||(this.i=!1,this.l())};
ki.prototype.A=function(){delete this.l;delete this.h;delete this.g;P.prototype.A.call(this)};function li(){}li.prototype.stringify=function(a){return y.JSON.stringify(a,void 0)};li.prototype.parse=function(a){return y.JSON.parse(a,void 0)};function mi(a,b){if(typeof a!==h)throw Error("Fn must not be null and must be a function");return y.setTimeout(function(){a()},b)};function V(a){ni.dispatchEvent(new oi(ni,a))}var ni=new R;function oi(a){Q.call(this,"statevent",a)}x(oi,Q);function pi(a,b,c){P.call(this);this.l=null!=c?a.bind(c):a;this.j=b;this.h=null;this.i=!1;this.g=null}x(pi,P);pi.prototype.o=function(a){this.h=arguments;this.g?this.i=!0:qi(this)};pi.prototype.A=function(){P.prototype.A.call(this);this.g&&(y.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)};function qi(a){a.g=lh(function(){a.g=null;a.i&&(a.i=!1,qi(a))},a.j);var b=a.h;a.h=null;a.l.apply(null,b)};function ri(a,b,c,d){this.g=a;this.h=b;this.v=c;this.s=d||1;this.i=45E3;this.j=new U(this);this.o=new kh;this.o.setInterval(250)}u=ri.prototype;u.za=null;u.pa=!1;u.Qa=null;u.Nb=null;u.Oa=null;u.Pa=null;u.ta=null;u.ya=null;u.Ha=null;u.S=null;u.vb=0;u.fa=null;u.ub=null;u.qa=null;u.Ta=-1;u.xc=!0;u.Ba=!1;u.wb=0;u.qb=null;var si={},ti={};u=ri.prototype;u.setTimeout=function(a){this.i=a};function ui(a,b,c){a.Pa=1;a.ta=vi(W(b));a.Ha=c;a.l=!0;wi(a,null)}
function xi(a,b,c,d,e){a.Pa=1;a.ta=vi(W(b));a.Ha=null;a.l=c;e&&(a.xc=!1);wi(a,d)}function wi(a,b){a.Oa=Date.now();yi(a);a.ya=W(a.ta);zi(a.ya,"t",a.s);a.vb=0;a.S=a.g.Eb(a.g.fb()?b:null);0<a.wb&&(a.qb=new pi(z(a.Hc,a,a.S),a.wb));a.j.listen(a.S,Ca,a.pd);b=a.za?H(a.za):{};a.Ha?(a.ub=ja,b[ca]="application/x-www-form-urlencoded",a.S.send(a.ya,a.ub,a.Ha,b)):(a.ub="GET",a.xc&&!Fb&&(b.Connection="close"),a.S.send(a.ya,a.ub,null,b));a.g.ea(1)}u.pd=function(a){a=a.target;var b=this.qb;b&&3==Kh(a)?b.o():this.Hc(a)};
u.Hc=function(a){try{if(a==this.S)a:{var b=Kh(this.S),c=this.S.j,d=this.S.da();if(E&&!(10<=Number(Qb))||Fb&&!Nb("420+")){if(4>b)break a}else if(3>b||3==b&&!this.S.O())break a;this.Ba||4!=b||7==c||(8==c||0>=d?this.g.ea(3):this.g.ea(2));Ai(this);var e=this.S.da();this.Ta=e;var f=this.S.O();if(this.pa=200==e){4==b&&Bi(this);if(this.l){for(a=!0;!this.Ba&&this.vb<f.length;){var g=Ci(this,f);if(g==ti){4==b&&(this.qa=4,V(15),a=!1);break}else if(g==si){this.qa=4;V(16);a=!1;break}else Di(this,g)}4==b&&0==
f.length&&(this.qa=1,V(17),a=!1);this.pa=this.pa&&a;a||(Bi(this),Ei(this))}else Di(this,f);this.pa&&!this.Ba&&(4==b?this.g.pb(this):(this.pa=!1,yi(this)))}else 400==e&&0<f.indexOf("Unknown SID")?(this.qa=3,V(13)):(this.qa=0,V(14)),Bi(this),Ei(this)}}catch(k){}finally{}};function Ci(a,b){var c=a.vb,d=b.indexOf("\n",c);if(-1==d)return ti;c=Number(b.substring(c,d));if(isNaN(c))return si;d+=1;if(d+c>b.length)return ti;b=b.substr(d,c);a.vb=d+c;return b}
function Fi(a,b){a.Oa=Date.now();yi(a);var c=b?window.location.hostname:"";a.ya=W(a.ta);X(a.ya,"DOMAIN",c);X(a.ya,"t",a.s);try{a.fa=new ActiveXObject("htmlfile")}catch(l){Bi(a);a.qa=7;V(22);Ei(a);return}var d="<html><body>";if(b){var e="";for(b=0;b<c.length;b++){var f=c.charAt(b);if("<"==f)f=e+"\\x3c";else if(">"==f)f=e+"\\x3e";else{if(f in hd)f=hd[f];else if(f in gd)f=hd[f]=gd[f];else{var g=f.charCodeAt(0);if(31<g&&127>g)var k=f;else{if(256>g){if(k="\\x",16>g||256<g)k+="0"}else k="\\u",4096>g&&(k+=
"0");k+=g.toString(16).toUpperCase()}f=hd[f]=k}f=e+f}e=f}d+='<script>document.domain="'+e+'"\x3c/script>'}c=Yc(d+"</body></html>");a.fa.open();a.fa.write(Wc(c));a.fa.close();a.fa.parentWindow.m=z(a.kd,a);a.fa.parentWindow.d=z(a.wc,a,!0);a.fa.parentWindow.rpcClose=z(a.wc,a,!1);c=a.fa.createElement("DIV");a.fa.parentWindow.document.body.appendChild(c);d=a.ya.toString();d instanceof I||(d=typeof d==p&&d.h?d.g():String(d),d=Sc.test(d)?new I(d,Oc):Rc(d));d=cd(Pc(d||Tc));d=Yc('<iframe src="'+d+'"></iframe>');
$c(c,d);a.g.ea(1)}u.kd=function(a){mi(z(this.jd,this,a),0)};u.jd=function(a){this.Ba||(Ai(this),Di(this,a),yi(this))};u.wc=function(a){mi(z(this.hd,this,a),0)};u.hd=function(a){this.Ba||(Bi(this),this.pa=a,this.g.pb(this),this.g.ea(4))};u.cancel=function(){this.Ba=!0;Bi(this)};function yi(a){a.Nb=Date.now()+a.i;Gi(a,a.i)}function Gi(a,b){if(null!=a.Qa)throw Error("WatchDog timer not null");a.Qa=mi(z(a.od,a),b)}function Ai(a){a.Qa&&(y.clearTimeout(a.Qa),a.Qa=null)}
u.od=function(){this.Qa=null;var a=Date.now();0<=a-this.Nb?(2!=this.Pa&&this.g.ea(3),Bi(this),this.qa=2,V(18),Ei(this)):Gi(this,this.Nb-a)};function Ei(a){a.g.mc()||a.Ba||a.g.pb(a)}function Bi(a){Ai(a);O(a.qb);a.qb=null;S(a.o);Uh(a.j);if(a.S){var b=a.S;a.S=null;b.abort();b.dispose()}a.fa&&(a.fa=null)}function Di(a,b){try{a.g.tc(a,b),a.g.ea(4)}catch(c){}};function Hi(a,b){this.i=this.v=this.j="";this.s=null;this.o=this.g="";this.l=!1;var c;a instanceof Hi?(this.l=void 0!==b?b:a.l,Ii(this,a.j),this.v=a.v,Ji(this,a.i),Ki(this,a.s),this.g=a.g,Li(this,Mi(a.h)),this.o=a.o):a&&(c=String(a).match(nh))?(this.l=!!b,Ii(this,c[1]||"",!0),this.v=Ni(c[2]||""),Ji(this,c[3]||"",!0),Ki(this,c[4]),this.g=Ni(c[5]||"",!0),Li(this,c[6]||"",!0),this.o=Ni(c[7]||"")):(this.l=!!b,this.h=new Oi(null,this.l))}
Hi.prototype.toString=function(){var a=[],b=this.j;b&&a.push(Pi(b,Qi,!0),":");var c=this.i;if(c||"file"==b)a.push("//"),(b=this.v)&&a.push(Pi(b,Qi,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.s,null!=c&&a.push(":",String(c));if(c=this.g)this.i&&"/"!=c.charAt(0)&&a.push("/"),a.push(Pi(c,"/"==c.charAt(0)?Ri:Si,!0));(c=this.h.toString())&&a.push("?",c);(c=this.o)&&a.push("#",Pi(c,Ti));return a.join("")};
Hi.prototype.resolve=function(a){var b=W(this),c=!!a.j;c?Ii(b,a.j):c=!!a.v;c?b.v=a.v:c=!!a.i;c?Ji(b,a.i):c=null!=a.s;var d=a.g;if(c)Ki(b,a.s);else if(c=!!a.g){if("/"!=d.charAt(0))if(this.i&&!this.g)d="/"+d;else{var e=b.g.lastIndexOf("/");-1!=e&&(d=b.g.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 k=e[g++];"."==k?d&&g==e.length&&f.push(""):".."==k?((1<f.length||1==f.length&&""!=
f[0])&&f.pop(),d&&g==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?b.g=d:c=""!==a.h.toString();c?Li(b,Mi(a.h)):c=!!a.o;c&&(b.o=a.o);return b};function W(a){return new Hi(a)}function Ii(a,b,c){a.j=c?Ni(b,!0):b;a.j&&(a.j=a.j.replace(/:$/,""))}function Ji(a,b,c){a.i=c?Ni(b,!0):b}function Ki(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.s=b}else a.s=null}function Li(a,b,c){b instanceof Oi?(a.h=b,Ui(a.h,a.l)):(c||(b=Pi(b,Vi)),a.h=new Oi(b,a.l))}
function X(a,b,c){a.h.set(b,c)}function zi(a,b,c){Array.isArray(c)||(c=[String(c)]);Wi(a.h,b,c)}function vi(a){X(a,"zx",ld());return a}function Xi(a){return a instanceof Hi?W(a):new Hi(a,void 0)}function Yi(a,b,c,d){var e=new Hi(null,void 0);a&&Ii(e,a);b&&Ji(e,b);c&&Ki(e,c);d&&(e.g=d);return e}function Ni(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}
function Pi(a,b,c){return typeof a===r?(a=encodeURI(a).replace(b,Zi),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Zi(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Qi=/[#\/\?@]/g,Si=/[#\?:]/g,Ri=/[#\?]/g,Vi=/[#\?@]/g,Ti=/#/g;function Oi(a,b){this.h=this.g=null;this.i=a||null;this.j=!!b}function $i(a){a.g||(a.g=new Map,a.h=0,a.i&&qh(a.i,function(b,c){a.add(bd(b),c)}))}u=Oi.prototype;
u.add=function(a,b){$i(this);this.i=null;a=aj(this,a);var c=this.g.get(a);c||this.g.set(a,c=[]);c.push(b);this.h=this.h+1;return this};function bj(a,b){$i(a);b=aj(a,b);a.g.has(b)&&(a.i=null,a.h=a.h-a.g.get(b).length,a.g.delete(b))}function cj(a,b){$i(a);b=aj(a,b);return a.g.has(b)}u.forEach=function(a,b){$i(this);this.g.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
function dj(a,b){$i(a);var c=[];if(typeof b===r)cj(a,b)&&(c=c.concat(a.g.get(aj(a,b))));else for(a=Array.from(a.g.values()),b=0;b<a.length;b++)c=c.concat(a[b]);return c}u.set=function(a,b){$i(this);this.i=null;a=aj(this,a);cj(this,a)&&(this.h=this.h-this.g.get(a).length);this.g.set(a,[b]);this.h=this.h+1;return this};u.get=function(a,b){if(!a)return b;a=dj(this,a);return 0<a.length?String(a[0]):b};function Wi(a,b,c){bj(a,b);0<c.length&&(a.i=null,a.g.set(aj(a,b),yb(c)),a.h=a.h+c.length)}
u.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var a=[],b=Array.from(this.g.keys()),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=dj(this,d);for(var f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}}return this.i=a.join("&")};function Mi(a){var b=new Oi;b.i=a.i;a.g&&(b.g=new Map(a.g),b.h=a.h);return b}function aj(a,b){b=String(b);a.j&&(b=b.toLowerCase());return b}
function Ui(a,b){b&&!a.j&&($i(a),a.i=null,a.g.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(bj(this,d),Wi(this,e,c))},a));a.j=b};function ej(a,b,c,d,e){if(0==d)c(!1);else{var f=e||0;d--;fj(a,b,function(g){g?c(!0):y.setTimeout(function(){ej(a,b,c,d,f)},f)})}}function fj(a,b,c){var d=new Image;d.onload=function(){try{gj(d),c(!0)}catch(e){}};d.onerror=function(){try{gj(d),c(!1)}catch(e){}};d.onabort=function(){try{gj(d),c(!1)}catch(e){}};d.ontimeout=function(){try{gj(d),c(!1)}catch(e){}};y.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);ad(d,a)}
function gj(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function hj(a){this.g=a;this.h=new li}u=hj.prototype;u.xb=null;u.W=null;u.rb=!1;u.Ec=null;u.jb=null;u.Ib=null;u.yb=null;u.$=null;u.ka=-1;u.Ua=null;u.Wa=null;u.connect=function(a){this.yb=a;a=ij(this.g,null,this.yb);V(3);this.Ec=Date.now();var b=this.g.s;null!=b?(this.Ua=jj(this.g,b[0]),(this.Wa=b[1])?(this.$=1,kj(this)):(this.$=2,lj(this))):(zi(a,"MODE","init"),this.W=new ri(this,void 0,void 0,void 0),this.W.za=this.xb,xi(this.W,a,!1,null,!0),this.$=0)};
function kj(a){var b=ij(a.g,a.Wa,"/mail/images/cleardot.gif");vi(b);ej(b.toString(),5E3,z(a.Uc,a),3,2E3);a.ea(1)}u.Uc=function(a){if(a)this.$=2,lj(this);else{V(4);var b=this.g;b.ga=b.va.ka;Y(b,9)}a&&this.ea(2)};
function lj(a){var b=a.g.v;if(null!=b)V(5),b?(V(11),mj(a.g,a,!1)):(V(12),mj(a.g,a,!0));else if(a.W=new ri(a,void 0,void 0,void 0),a.W.za=a.xb,b=a.g,b=ij(b,b.fb()?a.Ua:null,a.yb),V(5),!E||10<=Number(Qb))zi(b,"TYPE","xmlhttp"),xi(a.W,b,!1,a.Ua,!1);else{zi(b,"TYPE","html");var c=a.W;a=!!a.Ua;c.Pa=3;c.ta=vi(W(b));Fi(c,a)}}u.Eb=function(a){return this.g.Eb(a)};u.abort=function(){this.W&&(this.W.cancel(),this.W=null);this.ka=-1};u.mc=function(){return!1};
u.tc=function(a,b){this.ka=a.Ta;if(0==this.$)if(b){try{var c=this.h.parse(b)}catch(d){a=this.g;a.ga=this.ka;Y(a,2);return}this.Ua=jj(this.g,c[0]);this.Wa=c[1]}else a=this.g,a.ga=this.ka,Y(a,2);else if(2==this.$)if(this.rb)V(7),this.Ib=Date.now();else if("11111"==b){if(V(6),this.rb=!0,this.jb=Date.now(),a=this.jb-this.Ec,!E||10<=Number(Qb)||500>a)this.ka=200,this.W.cancel(),V(12),mj(this.g,this,!0)}else V(8),this.jb=this.Ib=Date.now(),this.rb=!1};
u.pb=function(){this.ka=this.W.Ta;if(this.W.pa)0==this.$?this.Wa?(this.$=1,kj(this)):(this.$=2,lj(this)):2==this.$&&((!E||10<=Number(Qb)?!this.rb:200>this.Ib-this.jb)?(V(11),mj(this.g,this,!1)):(V(12),mj(this.g,this,!0)));else{0==this.$?V(9):2==this.$&&V(10);var a=this.g;a.ga=this.ka;Y(a,2)}};u.fb=function(){return this.g.fb()};u.ea=function(a){this.g.ea(a)};function nj(a,b){this.g=1;this.i=[];this.j=[];this.l=new li;this.s=a||null;this.v=null!=b?b:null}u=nj.prototype;u.Va=null;u.Ya=null;u.Z=null;u.L=null;u.zb=null;u.kb=null;u.Yb=null;u.hb=null;u.Qb=!0;u.ab=0;u.K=null;u.wa=null;u.ma=null;u.Da=null;u.va=null;u.Mb=null;u.ob=-1;u.oc=-1;u.ga=-1;u.Na=0;u.La=0;u.Rb=0;u.sb=!1;u.Ca=8;function oj(a,b){Q.call(this,"timingevent",a);this.size=b}A(oj,Q);function pj(a){Q.call(this,"serverreachability",a)}A(pj,Q);u=nj.prototype;
u.connect=function(a,b,c,d,e){V(0);this.zb=b;this.Ya=c||{};d&&void 0!==e&&(this.Ya.OSID=d,this.Ya.OAID=e);this.Wc(a)};function qj(a){rj(a);if(3==a.g){var b=a.ab++,c=W(a.kb);X(c,"SID",a.h);X(c,"RID",b);X(c,"TYPE","terminate");sj(a,c);b=new ri(a,a.h,b,void 0);b.Pa=2;b.ta=vi(W(c));ad(new Image,b.ta.toString());b.Oa=Date.now();yi(b)}tj(a)}u.Wc=function(a){uj(this)&&(this.va=new hj(this),this.va.xb=this.Va,this.va.h=this.l,this.va.connect(a))};
function rj(a){a.va&&(a.va.abort(),a.va=null);a.L&&(a.L.cancel(),a.L=null);a.ma&&(y.clearTimeout(a.ma),a.ma=null);vj(a);a.Z&&(a.Z.cancel(),a.Z=null);a.wa&&(y.clearTimeout(a.wa),a.wa=null)}u.mc=function(){return 0==this.g};u.getState=function(){return this.g};function wj(a){a.Z||a.wa||(a.wa=mi(z(a.vc,a),0),a.Na=0)}
u.vc=function(a){this.wa=null;if(uj(this))if(1==this.g){if(!a){this.ab=Math.floor(1E5*Math.random());a=this.ab++;var b=new ri(this,"",a,void 0);b.za=this.Va;var c=xj(this),d=W(this.kb);X(d,"RID",a);X(d,"CVER","1");sj(this,d);ui(b,d,c);this.Z=b;this.g=2}}else 3==this.g&&(a?yj(this,a):0==this.i.length||this.Z||yj(this))};
function yj(a,b){if(b)if(6<a.Ca){a.i=a.j.concat(a.i);a.j.length=0;var c=a.ab-1;b=xj(a)}else c=b.v,b=b.Ha;else c=a.ab++,b=xj(a);var d=W(a.kb);X(d,"SID",a.h);X(d,"RID",c);X(d,"AID",a.ob);sj(a,d);c=new ri(a,a.h,c,a.Na+1);c.za=a.Va;c.setTimeout(1E4+Math.round(1E4*Math.random()));a.Z=c;ui(c,d,b)}function sj(a,b){a.K&&(a=a.K.jc())&&Jc(a,function(c,d){X(b,d,c)})}
function xj(a){var b=Math.min(a.i.length,1E3),c=["count="+b];if(6<a.Ca&&0<b){var d=a.i[0].g;c.push("ofs="+d)}else d=0;for(var e={},f=0;f<b;e={Ja:e.Ja},f++){e.Ja=a.i[f].g;var g=a.i[f].map;e.Ja=6>=a.Ca?f:e.Ja-d;try{Jc(g,function(k){return function(l,m){c.push("req"+k.Ja+"_"+m+"="+encodeURIComponent(l))}}(e))}catch(k){c.push("req"+e.Ja+"_type="+encodeURIComponent("_badmap"))}}a.j=a.j.concat(a.i.splice(0,b));return c.join("&")}function zj(a){a.L||a.ma||(a.o=1,a.ma=mi(z(a.uc,a),0),a.La=0)}
function Aj(a){if(a.L||a.ma||3<=a.La)return!1;a.o++;a.ma=mi(z(a.uc,a),Bj(a,a.La));a.La++;return!0}u.uc=function(){this.ma=null;if(uj(this)){this.L=new ri(this,this.h,"rpc",this.o);this.L.za=this.Va;this.L.wb=this.Rb;var a=W(this.Yb);X(a,"RID","rpc");X(a,"SID",this.h);X(a,"CI",this.Mb?"0":"1");X(a,"AID",this.ob);sj(this,a);if(!E||10<=Number(Qb))X(a,"TYPE","xmlhttp"),xi(this.L,a,!0,this.hb,!1);else{X(a,"TYPE","html");var b=this.L,c=!!this.hb;b.Pa=3;b.ta=vi(W(a));Fi(b,c)}}};
function uj(a){if(a.K){var b=a.K.rc();if(0!=b)return Y(a,b),!1}return!0}function mj(a,b,c){a.Mb=c;a.ga=b.ka;a.Xc(1,0);a.kb=ij(a,null,a.zb);wj(a)}
u.tc=function(a,b){if(0!=this.g&&(this.L==a||this.Z==a))if(this.ga=a.Ta,this.Z==a&&3==this.g)if(7<this.Ca){try{var c=this.l.parse(b)}catch(d){c=null}if(Array.isArray(c)&&3==c.length)if(a=c,0==a[0])a:{if(!this.ma){if(this.L)if(this.L.Oa+3E3<this.Z.Oa)vj(this),this.L.cancel(),this.L=null;else break a;Aj(this);V(19)}}else this.oc=a[1],0<this.oc-this.ob&&37500>a[2]&&this.Mb&&0==this.La&&!this.Da&&(this.Da=mi(z(this.ad,this),6E3));else Y(this,11)}else"y2f%"!=b&&Y(this,11);else if(this.L==a&&vj(this),!jb(b))for(a=
this.l.parse(b),b=0;b<a.length;b++)c=a[b],this.ob=c[0],c=c[1],2==this.g?"c"==c[0]?(this.h=c[1],this.hb=jj(this,c[2]),c=c[3],null!=c?this.Ca=c:this.Ca=6,this.g=3,this.K&&this.K.cc(),this.Yb=ij(this,this.fb()?this.hb:null,this.zb),zj(this)):"stop"==c[0]&&Y(this,7):3==this.g&&("stop"==c[0]?Y(this,7):"noop"!=c[0]&&this.K&&this.K.bc(c),this.La=0)};function jj(a,b){return a.Qb?a.K?a.K.Sb(b):b:null}u.ad=function(){null!=this.Da&&(this.Da=null,this.L.cancel(),this.L=null,Aj(this),V(20))};
function vj(a){null!=a.Da&&(y.clearTimeout(a.Da),a.Da=null)}
u.pb=function(a){if(this.L==a){vj(this);this.L=null;var b=2}else if(this.Z==a)this.Z=null,b=1;else return;this.ga=a.Ta;if(0!=this.g)if(a.pa)1==b?(b=ni,b.dispatchEvent(new oj(b,a.Ha?a.Ha.length:0,Date.now()-a.Oa,this.Na)),wj(this),this.j.length=0):zj(this);else{var c=a.qa,d;if(!(d=3==c||7==c||0==c&&0<this.ga)){if(d=1==b)this.Z||this.wa||1==this.g||2<=this.Na?d=!1:(this.wa=mi(z(this.vc,this,a),Bj(this,this.Na)),this.Na++,d=!0);d=!(d||2==b&&Aj(this))}if(d)switch(c){case 1:Y(this,5);break;case 4:Y(this,
10);break;case 3:Y(this,6);break;case 7:Y(this,12);break;default:Y(this,2)}}};function Bj(a,b){var c=5E3+Math.floor(1E4*Math.random());a.K||(c*=2);return c*b}u.Xc=function(a){if(!(0<=vb(arguments,this.g)))throw Error("Unexpected channel state: "+this.g);};function Y(a,b){if(2==b||9==b){var c=null;a.K&&(c=a.K.kc());var d=z(a.vd,a);c||(c=new Hi(aa),vi(c));fj(c.toString(),1E4,d)}else V(2);Cj(a,b)}u.vd=function(a){a?V(2):(V(1),Cj(this,8))};function Cj(a,b){a.g=0;a.K&&a.K.ac(b);tj(a);rj(a)}
function tj(a){a.g=0;a.ga=-1;if(a.K){if(0!=a.j.length||0!=a.i.length)yb(a.j),yb(a.i),a.j.length=0,a.i.length=0;a.K.$b()}}function ij(a,b,c){var d=Xi(c);if(""!=d.i)b&&Ji(d,b+"."+d.i),Ki(d,d.s);else{var e=window.location;d=Yi(e.protocol,b?b+"."+e.hostname:e.hostname,+e.port,c)}a.Ya&&Jc(a.Ya,function(f,g){X(d,g,f)});X(d,"VER",a.Ca);sj(a,d);return d}u.Eb=function(a){if(a&&!this.sb)throw Error("Can't create secondary domain capable XhrIo object.");a=new T;a.Sa=this.sb;return a};
u.ea=function(a){var b=ni;b.dispatchEvent(new pj(b,a))};u.fb=function(){return this.sb||!(!E||10<=Number(Qb))};function Dj(){}u=Dj.prototype;u.rc=function(){return 0};u.cc=function(){};u.bc=function(){};u.ac=function(){};u.$b=function(){};u.jc=function(){return{}};u.kc=function(){return null};u.Sb=function(a){return a};function Ej(a){P.call(this);this.l=1;this.i=[];this.j=0;this.g=[];this.h={};this.s=!!a}A(Ej,P);function Xh(a,b,c){if(b=a.h[b]){var d=a.g;(b=b.find(function(e){return d[e+1]==c&&void 0==d[e+2]}))&&a.o(b)}}Ej.prototype.o=function(a){var b=this.g[a];b&&(b=this.h[b],0!=this.j?(this.i.push(a),this.g[a+1]=Va):(b&&xb(b,a),delete this.g[a],delete this.g[a+1],delete this.g[a+2]))};
Ej.prototype.v=function(a,b){var c=this.h[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.s)for(e=0;e<c.length;e++){var g=c[e];Fj(this.g[g+1],this.g[g+2],d)}else{this.j++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)g=c[e],this.g[g+1].apply(this.g[g+2],d)}finally{if(this.j--,0<this.i.length&&0==this.j)for(;c=this.i.pop();)this.o(c)}}}};function Fj(a,b,c){xd(function(){a.apply(b,c)})}
Ej.prototype.A=function(){Ej.P.A.call(this);this.g.length=0;this.h={};this.i.length=0};function Yh(a,b,c,d,e,f){var g=this;this.Aa=a;this.Pc=d||null;this.C=Ic;this.la=new U(this);this.B=this.h=this.H=null;this.Oc=Date.now();this.Ic=b||Gj;this.N=null;this.j=new Ej;this.Y=c;this.v=!1;this.F=null;this.ca=-1;this.s=this.X=this.U=!1;this.M=new $f;if(this.i=e||null)ag(this.M,this.i.i(),function(){return Hj(g)}),ag(this.M,this.i.h(),function(){return Hj(g)});this.D=new ki(z(this.qd,this),!0,this.i||void 0,7E3,45E3);this.V=-1;this.l=null;this.o={};this.Cb=!!f;this.T=-1;this.J=null;this.Rc=
jf(a,"docs-ar");this.sa=jf(a,"docs-dbctc");this.ia=!1;$h(this,"15",function(k){if(k=k.gaiaSessionIdentifier)(nf?nf:nf=new mf).Gb=k;else throw Error("GAIA session id should be a valid string. Received - "+k);});this.G=this.g=null}x(Yh,Dj);function $h(a,b,c){a=a.j;var d=a.h[b];d||(d=a.h[b]=[]);var e=a.l;a.g[e]=b;a.g[e+1]=c;a.g[e+2]=void 0;a.l=e+3;d.push(e)}u=Yh.prototype;u.Sb=function(a){return this.Pc||a};function Gj(a){return{type:a[0],Cc:a[1],data:a[2],Fc:a[3]||null}}
u.bc=function(a){a=this.Ic(a);if(a.Cc>this.V){this.V=a.Cc;if(this.N!=a.Fc){var b=a.Fc;this.N=b;Ij(this,Da,b)}Ij(this,String(a.type),a.data)}};function Ij(a,b,c){a.Qc&&a.Qc(b,c);a.j.v(b,c)}
u.jc=function(){var a=H(this.o);a.lsq=String(this.V);null!=this.G&&(a.u=this.G);jf(this.Aa,"docs-ecvca");a.flr=(0).toString();a.gsi=(nf?nf:nf=new mf).Gb;a.ssfi=Math.round((Date.now()-this.Oc)/1E3).toString();this.Rc&&-1!=this.T&&(a.ar=String(this.T),this.J&&(a.arat=this.J.g()),this.T=-1,this.J=null);a.cimpl="0";return a};u.rc=function(){if(this.ra)try{this.ra.g()}catch(a){throw mg(a,{"docs-origin-class":"docs.net.BrowserChannel"});}return 0};u.cc=function(){this.v=!0;this.s=!1;Hj(this,0)};
u.$b=function(){this.v=!1;this.s||421==this.ca||this.D.start()};function Zh(a,b,c,d){a.H=b||a.H;a.h=c||a.h;a.B=d||a.B||"";a.v||a.s||(a.X=!0,Jj(a))}function Jj(a){a.g&&(a.g.K=null,qj(a.g));var b=a.Y?a.Y():a.sa?new nj([],!1):new nj;b.Va={"X-Same-Domain":"1"};b.Qb=!0;b.sb=a.Cb;b.Rb=200;b.K=a;a.g=b;b={id:a.H};a.h&&(b.sid=a.h);if(a.o)for(var c in a.o)b[c]=a.o[c];a.g.connect(a.B+"/test",a.B+"/bind",b)}function Kj(a){a.l=null;a.F=null;a.ca=-1;a.X=!1;a.v&&(a.s=!1,qj(a.g))}
u.qd=function(){this.X&&!this.v&&(this.s=!0,Jj(this),this.D.start())};u.ac=function(a){Hj(this,a)};function Hj(a,b){if(null!=b)if(a.F=b,a.ca=Lj(a),a.U||6!=b)a.U=!1,2==b&&409==Lj(a)&&(a.N=null,Ij(a,Da,null));else{a.U=!0;Zh(a);return}b=a.i&&!a.i.g()?8:null!=a.F?a.F:0;b!=a.l&&(a.l=b,a.C.call(y,0==b))}function Mj(a){return null==a.l||0==a.l}function Lj(a){return a.g?a.g.ga:-1}u.kc=function(){return vi(new Hi(aa))};
u.dispose=function(){this.ia||(this.ia=!0,this.g&&(this.g.K=null,qj(this.g),delete this.g),O(this.la),O(this.M),O(this.D),O(this.j),delete this.la,delete this.D,delete this.i,delete this.j)};u.isDisposed=function(){return this.ia};function Nj(a,b,c,d,e,f,g){c=void 0===c?[]:c;ei.call(this);var k=this;this.g=null;this.o=a;this.v=c;this.l=e;this.j=new $f;this.I(this.j);ag(this.j,this.o.da().i,function(l){1!=l.h.g&&1==l.g.g?k.dispatchEvent(new Rg("r")):l.g.Ea(xf)?k.dispatchEvent(new Rg("p")):3<=l.g.g&&k.dispatchEvent(new Rg("e"))});this.i=function(l){l&&k.dispatchEvent(new Rg("u",l))};d&&(this.g=d,$h(this.g,"9",this.i));this.h=f;this.s=g;this.B=0;this.C=b}x(Nj,ei);
function ai(a,b){var c=b.method,d=b.payload,e=b.td,f=b.zd,g=b.ud,k=b.Cd,l=b.httpMethodHeader;b=b.Ad;var m=d?["p",Yg(d)]:[];d=["reqid",a.B++];m=m?th(m):void 0;c=Oj(Pj(a.o,"/docos/p/"+c),a.v.concat(d));0<m.length&&(c.g=m);if(a.C){if(!c.M)throw Error("Cannot add session data to request when session data not defined.");c.j=wh(c.j,Qf(c.M))}c.s=k?k:3;e&&Qj(c,function(q){return void e(Rj(q))});f&&Sj(c,f,g);l&&(c.G=l);null!=b&&(c.o=b);null!=a.l&&(c.la=a.l);Tj(c)}
Nj.prototype.A=function(){this.g&&(Xh(this.g.j,"9",this.i),this.g.dispose());ei.prototype.A.call(this)};function Uj(a,b,c){Q.call(this,a);this.i=this.Xa=null;this.l=b;this.g=c}x(Uj,Q);var Vj=/\/d\/([^\/]+)/,Wj=/\/r\/([^\/]+)/;function Xj(a){a=a.match(nh)[5]||null;return Vj.test(a)}function Yj(a,b){if(Xj(a)){Xj(a);a=a.match(nh);var c=a[5];c=c.replace(b,"");b=mh(a[1],a[2],a[3],a[4],c,a[6],a[7])}else b=a;return b};function Zj(a,b){null!=a&&this.g.apply(this,arguments)}Zj.prototype.h="";Zj.prototype.set=function(a){this.h=""+a};Zj.prototype.g=function(a,b,c){this.h+=String(a);if(null!=b)for(var d=1;d<arguments.length;d++)this.h+=arguments[d];return this};Zj.prototype.toString=function(){return this.h};function ak(a,b,c,d){this.Aa=b;this.j=a;this.X=c;this.M=d;this.i="";this.g=void 0;this.G=null;this.H=t;this.la=void 0;this.F={};this.s=3;this.U=!1;this.l=Ic;this.h=!1;this.D=Hc;this.o=!1;this.v=Ic;this.B=-1;this.V=this.C=this.N=!1}function Oj(a,b){var c=[a.j];zb(c,b);a.j=vh.apply(null,c);return a}function Sj(a,b,c){a.l=b;a.h=c||!1}function Qj(a,b){a.v=b}ak.prototype.setTimeout=function(a){this.B=a;return this};function Tj(a){var b=a.T();a.ca(b)}ak.prototype.validate=function(){};
function bk(a){return ck(a)+dk(a)}function dk(a){if(a.C){var b=Ah(a.j,"id");return a.V?Ah(b,"resourcekey"):b}return a.j}
function ek(a){if(Array.isArray(a.g)){var b=a.g;try{if(jf(a.X,"docs-net-cbfd")&&y.FormData){for(var c=new y.FormData,d=0;d<b.length;d+=2)c.append(b[d],b[d+1]);var e=c}else e=th(b);return e}catch(D){if(D instanceof URIError&&"URI malformed"==D.message){e=[];for(c=1;c<b.length;c+=2){d=""+b[c];for(var f=[],g=0;g<d.length;g=g+1|0){var k=Te(d,g),l=!1,m=d.charCodeAt(g),q=Ke(d.charCodeAt(g));55296<=m&&56319>=m?l=!(65536<=k&&1114111>=k):q&&(0<g?(l=Te(d,g-1|0),l=!(65536<=l&&1114111>=l)):l=!0);l&&(k="\\u"+
L((k>>>0).toString(16)),l=Yf(d,g-1|0),m=Yf(d,g+1|0),f.push(new Xf(k,g,d.length,l,m)))}e=e.concat(f)}b="{"+L(e.join("; "))+"}";a=bk(a).substr(0,100);throw mg(D,{illegal_request_content:b,request_uri:a});}throw mg(D,{"docs-origin-class":"docs.net.AbstractRequestBuilder"});}}return a.g}ak.prototype.ud=function(){return this.h};function fk(a){return typeof a.g===r||Array.isArray(a.g)}function ck(a){return a.C&&a.V?Yj(Yj(a.i,Wj),Vj):a.C?Yj(a.i,Vj):a.i};function gk(a){this.g=this.j=this.h=0;this.i=void 0===a?3E4:a;for(a=hk;a<this.i;)a*=2;this.l=a}function ik(a,b){if(jf(ef(),"docs-irbfes"))if(0===a.g||2===b)b=hk;else if(1===b)b=4>a.h?hk:a.g<a.i?2*a.g:a.l;else if(3===b)b=a.g<Math.max(a.i,18E4)?2*a.g:a.g;else throw Error("Invalid RetryType");else{var c=2!=b&&!(4>a.h);b=hk;c&&0!=a.g&&(b=a.g<a.i?2*a.g:a.g)}a.g=b;return Math.max(0,b-(Date.now()-a.j))}var hk=5E3*(.75+.5*Math.random());function jk(a){this.g=a?H(a):{};this.h=null}
function kk(){var a=ef(),b=a.get(za);typeof b===r?a=JSON.parse(b):(b={},hf(a,za)?(a=a.get(za),a=null!=a?a:b):a=b);b=a;var c=String;a={};for(var d in b)a[d]=c.call(void 0,b[d],d,b);if(d=y._docs_coldstart_url){c=d.indexOf("#");if(d=oh(0>c?null:d.substr(c+1))){d=d.split("&");c={};for(var e=0;e<d.length;++e){var f=d[e].split("=");2==f.length&&0<f[0].length&&0<f[1].length&&(c[bd(f[0])]=bd(f[1]))}d=c}else d={};d=d.resourcekey}else d=null;d?a.resourcekey=d:b.resourcekey&&(b=F(new wc(b.resourcekey),2),null!=
b&&(a.resourcekey=b));return new jk(a)};function lk(a,b,c){R.call(this);this.h={"X-Same-Domain":"1"};!1===c&&(this.h={});this.i="";this.g=b||kk();a=(a||y).location.href;b=a.search(yh);c=xh(a,0,"authkey",b);if(0>c)a=null;else{var d=a.indexOf("&",c);if(0>d||d>b)d=b;c+=8;a=bd(a.substr(c,d-c))}a&&mk(this,"authkey",a)}x(lk,R);function mk(a,b,c){var d=a.g;if(c){if(d.g[b]=c,d.h&&(b=d.g.token||null))d.h.callback(b),d.h=null}else delete d.g[b];a.dispatchEvent("h")}function nk(a,b){a.g.g.at&&mk(a,"at",b);mk(a,"token",b)};function ok(a,b){Q.call(this,"i",a);this.g=b}x(ok,Q);function pk(a,b,c,d,e,f,g,k,l,m,q,D,pa,ob,ec,fc){R.call(this);this.h=a;this.V=b;this.v=c;this.j=d;this.B=ob||(c?ja:"GET");this.F=q;this.s=e;this.G=f;this.C=g;this.T=k;this.M=l;this.J=m;this.U=pa;this.D=H(ec);this.o=new gk(fc)}x(pk,R);pk.prototype.send=function(a){var b=this.o,c=Date.now();b.h++;b.j=c;this.Tb(a)};function qk(a,b){a.reset();a.dispatchEvent(new ok(a,b))}function rk(a){return{ReqUri:a.h,ReqContent:a.v,ReqMethod:a.B}}pk.prototype.reset=function(){};
pk.prototype.A=function(){this.dispatchEvent("j");this.reset();delete this.C;delete this.G;delete this.s;R.prototype.A.call(this)};function sk(a){if(a.j==t&&null!=a.i&&0==(a.i||"").lastIndexOf(")]}'\n",0)){try{var b=Rj(a)}catch(c){return null}if(Array.isArray(b)&&(a=b[0],Array.isArray(a)&&a[0]==xc.g))return new xc(a)}return null}function tk(a){a=sk(a);if(!a)return null;a=F(a,4);return Array.isArray(a)&&a[0]==yc.g?new yc(a):null};function uk(a,b,c,d,e,f,g){this.i=a;this.j=b||t;this.l=jb(kd(c))?null:c;this.h=void 0!==d?d:200;this.o={};if(f)for(var k in f)this.o[k.toLowerCase()]=f[k];this.g=void 0!==e?e:0;this.v=g||{};this.s=void 0}
function Rj(a){if(void 0===a.s){var b=a.i||"";Nf();b=b.replace(Mf,"");if(b)if(b===Ba)var c=null;else{for(var d=b.length,e=0;e<d&&32>=b.charCodeAt(e);)e=e+1|0;for(var f=d;f>e&&32>=b.charCodeAt(f-1|0);)f=f-1|0;b=0<e||f<d?b.substr(e,f-e|0):b;try{c=JSON.parse(b)}catch(g){g=me(g);if(g instanceof te)throw a=g,c=new Je,b="Error parsing JSON: "+L(a.j),je(c),c.l=a,c.j=b,ke(c),c.h(Error(c)),c.g;throw g.g;}if(!(c instanceof Object))throw a=new xe,je(a),ke(a),a.h(Error(a)),a.g;}else c=null;a.s=c}return a.s}
function vk(a){var b=a.h,c=a.g,d=a.j,e=a.l;if(a.j==t){var f=a.i||"";f=-1!=f.indexOf("&")?ya in y?dd(f):fd(f):f;50<f.length&&(f=f.substring(0,47)+"...");f=cd(f);f+="   (truncated)"}else f="responseObject";b={RespStatus:b,RespErr:c,RespType:d,RespContentType:e,RespString:f};Mc(b,a.v);return b}
function wk(a){if("NOW"==a.o["x-restart"])return new Uj("g",a.g,a.h,function(){return Rj(a)});if(7==a.g)return null;var b=xk(a)?"d":yk(a)?"e":0==a.g?"c":"b";return new Uj(b,a.g,a.h,function(){return Rj(a)},6==a.g&&500==a.h?sk(a):null)}function xk(a){var b=a.g,c=a.h;return 0==a.g?0!=b||0!=c||a.j==t&&null!=a.i?!1:!0:8==b||5==b||6==b&&(0>=c||503==c||405==c)?!0:!1}
function yk(a){var b=a.h;return 6==a.g&&(202==b||401==b||403==b||409==b||429==b||433==b||500<=b&&599>=b&&503!=b&&512!=b&&550!=b)||400==b&&null!=tk(a)?!0:200==b?null==a.l||sk(a)?!0:zk(a):!1}function zk(a){if(200==a.h&&null!=a.l&&!sk(a)&&a.j==t){if(jb(kd(a.i)))return!0;if(0==(a.i||"").lastIndexOf(")]}'\n",0))try{return null==Rj(a)}catch(b){}}return!1};function Ak(a,b,c){void 0===c&&(c=a.size);return a.slice?a.slice(b,c):null};var Bk=new WeakMap;function Ck(a){function b(f){var g=w(f);f=g.next().value;g=Ja(g);return a.apply(f,g)}function c(f){f=w(f);f.next();f=Ja(f);return d(e,f)}var d=void 0===d?Dk:d;var e=Za(a);return function(){var f=Ra.apply(0,arguments),g=this||y,k=Bk.get(g);k||(k={},Bk.set(g,k));return Bb(k,[this].concat(f instanceof Array?f:Ja(w(f))),b,c)}}function Dk(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\v")};function Ek(a){var b={};a=a.replace(/\r/g,"").split("\n");for(var c=0;c<a.length;c++){var d=a[c],e=d.indexOf(":");0>e||(b[d.substring(0,e)]=d.substring(e+2,d.length))}return b}function Fk(a){var b="";Jc(a,function(c,d){b+=d+": "+c+"\r\n"});return b}
var Gk=Ck(function(){if(!y.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return 100!=b.size?!1:!0}),Hk=Ck(function(){if(!y.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return null===Ak(b,0,1)?!1:!0});function Ik(){R.call(this)}A(Ik,R);function Jk(a){Q.call(this,a)}A(Jk,Q);u=Ik.prototype;u.Ub=function(){return null};u.Vb=function(){return null};u.O=function(){return null};u.start=function(){};u.cancel=function(){};function Kk(){R.call(this)}A(Kk,Ik);Kk.prototype.Dc=function(){};function Lk(a,b){this.i=a;this.h=b;this.v=!0}Lk.prototype.j=function(){return null};Lk.prototype.g=function(){return!1};Lk.prototype.s=function(){return!1};Lk.prototype.o=function(){return!1};function Mk(a){R.call(this);this.h=a}A(Mk,R);function Nk(a){Q.call(this,a)}A(Nk,Q);function Ok(a,b){Q.call(this,a);this.nc=!!b}A(Ok,Nk);u=Mk.prototype;u.Ab=function(){return null};u.O=function(){return null};u.Bb=function(){return null};u.start=function(){};u.cancel=function(){};function Pk(a,b,c){R.call(this);Qk++;this.i="select";this.g=c;this.I(this.g);this.s="";this.o=ja;this.j={};this.l="";this.v=!1;this.h=new U(this);this.I(this.h)}x(Pk,R);Pk.prototype.getState=function(){return this.i};Pk.prototype.O=function(){return this.g.O()};
Pk.prototype.start=function(){var a=this;"select"==this.getState()||this.getState();this.h.listen(this.g,"o",function(){a.dispatchEvent(new Rk("t",a))});this.h.listen(this.g,"p",function(){a.i=wa;a.dispatchEvent(new Rk("u",a))});this.h.listen(this.g,"q",function(b){a.i="error";a.dispatchEvent(new Sk("v",a,b.nc))});this.g.start(this.s,this.o,this.j,this.l,this.v);this.i="start";this.dispatchEvent(new Rk("s",this))};
Pk.prototype.cancel=function(){this.getState();this.g.cancel();this.i="cancel";Uh(this.h);this.dispatchEvent(new Rk("w",this))};function Rk(a,b){Q.call(this,a);this.item=b}x(Rk,Q);function Sk(a,b,c){Rk.call(this,a,b);this.nc=!!c}x(Sk,Rk);var Qk=0;function Tk(){if(Ya(void 0)){var a=(void 0).getFullYear(),b=new Date(a,(void 0).getMonth(),(void 0).getDate());0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);this.g=b;Uk(this,(void 0).getDate())}else this.g=new Date(Date.now()),a=this.g.getDate(),this.g.setHours(0),this.g.setMinutes(0),this.g.setSeconds(0),this.g.setMilliseconds(0),Uk(this,a)}u=Tk.prototype;u.getFullYear=function(){return this.g.getFullYear()};u.getMonth=function(){return this.g.getMonth()};u.getDate=function(){return this.g.getDate()};
u.set=function(a){this.g=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
u.add=function(a){if(a.i||a.h){var b=this.getMonth()+a.h+12*a.i,c=this.getFullYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);a:{switch(b){case 1:var d=0!=c%4||0==c%100&&0!=c%400?28:29;break a;case 5:case 8:case 10:case 3:d=30;break a}d=31}d=Math.min(d,this.getDate());this.g.setDate(1);this.g.setFullYear(c);this.g.setMonth(b);this.g.setDate(d)}a.g&&(c=this.getFullYear(),b=0<=c&&99>=c?-1900:0,a=new Date((new Date(c,this.getMonth(),this.getDate(),12)).getTime()+864E5*a.g),this.g.setDate(1),this.g.setFullYear(a.getFullYear()+
b),this.g.setMonth(a.getMonth()),this.g.setDate(a.getDate()),Uk(this,a.getDate()))};function Vk(a){var b=a.getFullYear(),c=0>b?"-":1E4<=b?"+":"";return[c+jd(Math.abs(b),c?6:4),jd(a.getMonth()+1,2),jd(a.getDate(),2)].join("")}u.Ea=function(a){return!(!a||this.getFullYear()!=a.getFullYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};u.toString=function(){return Vk(this)};function Uk(a,b){a.getDate()!=b&&a.g.setUTCHours(a.g.getUTCHours()+(a.getDate()<b?1:-1))}u.valueOf=function(){return this.g.valueOf()};function Wk(a,b,c,d,e,f,g,k){R.call(this);this.H=a;this.l=b;this.F=c;this.B=d;this.s=e||null;this.j=f||null;this.D=g?H(g):{};this.G=!!k;this.v="";a=new Tk;this.h="scotty-"+ld()+"-"+Vk(a);this.g=null;this.i=0;this.o=null;this.C=new U(this);this.I(this.C)}x(Wk,Kk);u=Wk.prototype;u.Dc=function(a){this.v=a};u.Ub=function(){return this.g&&this.g.status||null};u.Vb=function(){return this.o};u.O=function(){return this.g&&this.g.responseText||null};
u.start=function(){var a=this;this.g=new XMLHttpRequest;this.g.upload&&(this.g.upload.onprogress=function(b){a.i=b.loaded;a.dispatchEvent(new Jk("k"))});this.g.onload=function(b){a.i=a.F;a.o=Ek(b.target.getAllResponseHeaders());a.dispatchEvent(new Jk("l"))};this.g.onerror=function(){a.dispatchEvent(new Jk("m"))};this.g.open(ja,this.H);Jc(this.D,function(b,c){a.g.setRequestHeader(c,b)});this.g.setRequestHeader(ca,"multipart/form-data; boundary="+this.h);this.g.withCredentials=this.G;this.g.send(Xk(this))};
u.cancel=function(){this.g&&this.g.abort()};function Xk(a){var b=["--",a.h,"\r\n",'Content-Disposition: form-data; name="metadata"\r\n\r\n'+a.v+"\r\n","--",a.h,"\r\n",'Content-Disposition: form-data; name="Filedata"'+(a.s?'; filename="'+a.s+'"':"")+"\r\n"+(a.j?"Content-Type: "+a.j+"\r\n":"")+"Content-Transfer-Encoding: "+a.B+"\r\n","\r\n",a.l,"\r\n","--",a.h,"--\r\n"];return typeof a.l===r?b.join(""):new Blob(b)};function Yk(a,b,c,d){var e=null;Gk()&&(e=d?new Blob([a],{type:d}):new Blob([a]));if(e)var f=e.size;else{f=[];for(var g=0,k=0;k<a.length;k++){var l=a.charCodeAt(k);128>l?f[g++]=l:(2048>l?f[g++]=l>>6|192:(55296==(l&64512)&&k+1<a.length&&56320==(a.charCodeAt(k+1)&64512)?(l=65536+((l&1023)<<10)+(a.charCodeAt(++k)&1023),f[g++]=l>>18|240,f[g++]=l>>12&63|128):f[g++]=l>>12|224,f[g++]=l>>6&63|128),f[g++]=l&63|128)}f=f.length}Lk.call(this,c,f);this.F=f;this.B=e;this.D=a;this.l=b;this.C=d||void 0}A(Yk,Lk);
Yk.prototype.j=function(){return this.B};Yk.prototype.g=function(){return this.l!=ua&&Hk()};Yk.prototype.s=function(){return this.l!=ua&&Gk()};Yk.prototype.o=function(){return!0};function Zk(a){Mk.call(this,a);this.g=null;this.i=new U(this);this.I(this.i)}x(Zk,Mk);u=Zk.prototype;u.Ab=function(){return this.g&&this.g.Ub()||null};u.O=function(){return this.g&&this.g.O()||null};u.Bb=function(){return this.g&&this.g.Vb()||null};
u.start=function(a,b,c,d,e){a=new Hi(a);X(a,"upload_protocol","multipart");a=a.toString();b=this.h;this.g=new Wk(a,b.B||b.D,b.F,b.l==ua?ua:"binary",b.i,b.C,c,e);this.g.Dc(d);this.i.listen(this.g,"k",this.Kc);this.i.listen(this.g,"l",this.gd);this.i.listen(this.g,["m","n"],this.fd);this.g.start()};u.cancel=function(){this.g&&this.g.cancel();this.dispatchEvent(new Nk("r"))};u.Kc=function(){this.dispatchEvent(new Nk("o"))};u.gd=function(){this.dispatchEvent(new Nk("p"))};u.fd=function(){this.dispatchEvent(new Nk("q"))};function $k(){};function al(){T.call(this)}x(al,T);al.prototype.Db=function(){var a=T.prototype.Db.call(this);a.upload&&(a.upload.onprogress=z(this.M,this));return a};al.prototype.M=function(a){this.dispatchEvent(a)};function bl(a,b){R.call(this);this.l=a;this.Hb=this.h=null;this.i=0;this.o=Infinity;this.s=b||5E6;this.g=null}A(bl,R);bl.prototype.hash=function(a){this.abort();this.l.reset();this.h=a;this.Hb=null;this.i=0;this.dispatchEvent("started");cl(this)};function dl(a,b){a.o=b;a.h&&!a.g&&cl(a)}bl.prototype.abort=function(){this.g&&(this.g.abort(),this.g=null);this.h&&(this.h=null,this.dispatchEvent("abort"))};
function cl(a){if(a.i<a.h.size)if(a.o<=a.i)a.dispatchEvent("throttled");else{a.g=new FileReader;a.g.onload=z(a.v,a);a.g.onerror=z(a.j,a);var b=Math.min(Math.min(a.o,a.h.size)-a.i,a.s),c=Ak(a.h,a.i,a.i+b);c&&c.size==b?a.g.readAsArrayBuffer?a.g.readAsArrayBuffer(c):a.g.readAsBinaryString?a.g.readAsBinaryString(c):a.j():a.j()}else{b=a.l;var d=Array((56>b.h?b.blockSize:2*b.blockSize)-b.h);d[0]=128;for(c=1;c<d.length-8;++c)d[c]=0;var e=8*b.i;for(c=d.length-8;c<d.length;++c)d[c]=e&255,e/=256;b.update(d);
d=Array(16);for(c=e=0;4>c;++c)for(var f=0;32>f;f+=8)d[e++]=b.g[c]>>>f&255;a.Hb=d;a.h=null;a.dispatchEvent(wa)}}bl.prototype.v=function(){var a=null;this.g.result instanceof Array||typeof this.g.result===r?a=this.g.result:y.ArrayBuffer&&y.Uint8Array&&this.g.result instanceof ArrayBuffer&&(a=new Uint8Array(this.g.result));a?(this.l.update(a),this.i+=a.length,this.g=null,this.dispatchEvent("progress"),cl(this)):this.j()};bl.prototype.j=function(){this.h=this.g=null;this.dispatchEvent("error")};function el(){this.blockSize=-1};function fl(){this.blockSize=-1;this.blockSize=64;this.g=Array(4);this.j=Array(this.blockSize);this.i=this.h=0;this.reset()}A(fl,el);fl.prototype.reset=function(){this.g[0]=1732584193;this.g[1]=4023233417;this.g[2]=2562383102;this.g[3]=271733878;this.i=this.h=0};
function gl(a,b,c){c||(c=0);var d=Array(16);if(typeof b===r)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.g[0];c=a.g[1];e=a.g[2];var f=a.g[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.g[0]=a.g[0]+b&4294967295;a.g[1]=a.g[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;a.g[2]=a.g[2]+e&4294967295;a.g[3]=a.g[3]+f&4294967295}
fl.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=this.j,e=this.h,f=0;f<b;){if(0==e)for(;f<=c;)gl(this,a,f),f+=this.blockSize;if(typeof a===r)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){gl(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){gl(this,d);e=0;break}}this.h=e;this.i+=b};function hl(a,b){a.g()||a.s();Mk.call(this,a);this.Aa=this.v=this.ra=this.sa=null;this.J=!1;this.U=this.G=null;this.C=a.h;this.s=0;this.T=null;this.X=this.ca=0;this.o="Ready";this.D=this.l=this.B=this.M=this.Y=this.la=null;this.j=new U(this);this.I(this.j);this.N=new U(this);this.I(this.N);this.i=0;this.g=this.V=this.F=null;this.H=b||Number.MAX_VALUE}A(hl,Mk);u=hl.prototype;u.Ab=function(){return this.la};u.O=function(){return this.Y};u.Bb=function(){return this.M};
u.start=function(a,b,c,d,e){this.sa=a;this.ra=b;this.v=H(c);this.Aa=d;this.J=!!e;this.o=ea;this.v["X-Goog-Upload-Protocol"]="resumable";this.v["X-Goog-Upload-Command"]="start";null!=this.h.h&&(this.v["X-Goog-Upload-Content-Length"]=this.h.h);null!=this.h.i&&/^[\040-\176]*$/.test(this.h.i)&&(this.v["X-Goog-Upload-File-Name"]=this.h.i);this.h.v&&il(this);this.Ac()};
u.cancel=function(){Uh(this.j);Uh(this.N);this.o==ea&&this.B&&this.B.abort();"Transferring"==this.o&&(this.l&&this.l.abort(),this.D&&this.D.abort(),this.F&&y.clearTimeout(this.F));this.g&&this.g.abort();(new T).send(this.U,"PUT","",{"X-Goog-Upload-Command":"cancel"});this.o="Cancelled";this.i=this.s=0;this.dispatchEvent(new Nk("r"))};function il(a){var b=a.h.j();b&&(a.g=new bl(new fl),a.N.listen(a.g,wa,function(c){this.V=ib(c.target.Hb);this.g=null}),dl(a.g,1048576),a.g.hash(b))}
u.Ac=function(){this.B=new al;Uh(this.j);this.j.listen(this.B,wa,this.dd);this.B.Sa=this.J;this.B.send(this.sa,this.ra,this.Aa,this.v)};
u.dd=function(a){var b=a.target.da(),c=a.target.O();a=Ek(a.target.getAllResponseHeaders());var d=jl(a,ra),e=jl(a,"X-Goog-Upload-URL");if("final"==d)this.la=b,this.M=a,this.Y=c,this.o="Complete",this.dispatchEvent(new Nk("p"));else if(200==b&&"active"==d&&e){this.G=e;this.U=jl(a,"X-Goog-Upload-Control-URL")||null;e=jl(a,"X-Goog-Upload-Chunk-Granularity")||null;d=1;if(e&&(d=parseInt(e,10),isNaN(d)||0>=d)){kl(this,da,"Invalid chunk granularity: "+e+". "+ll(b,a,c));return}b=this.h.h;this.C=Math.floor(b/
d)*d;this.T=Math.floor(1073741824/d)*d;this.h.g()||(this.T=b,this.C!=b&&(this.C=0));this.o="Transferring";this.i=0;this.Bc(0)}else 400<=b&&500>b?kl(this,da,ba+ll(b,a,c)):(ml(this,this.Ac),this.i++)};
u.Bc=function(a){var b=this.h,c=b.h;b.g()||a==c||(a=0);var d=a>=this.C,e=d?c:Math.min(this.C,this.T+a);this.ca=a;this.X=e;var f={"X-Goog-Upload-Command":"upload"+(d?", finalize":""),"X-Goog-Upload-Offset":a};d&&(this.V?f["X-Goog-Upload-Entity-MD5"]=this.V:this.g&&(this.g.abort(),this.g=null));this.l=new al;this.l.Sa=this.J;Uh(this.j);this.j.listen(this.l,"progress",this.Lc);this.j.listen(this.l,wa,this.ed);a==c?this.l.send(this.G,"PUT","",f):(c=this.h.j(),b.g()?this.l.send(this.G,"PUT",Ak(c,a,e),
f):this.l.send(this.G,"PUT",c,f))};u.Lc=function(a){this.s=this.ca+a.loaded;this.dispatchEvent(new Nk("o"));this.g&&dl(this.g,this.s+1048576)};u.ed=function(a){var b=a.target.da();if(void 0===b||-1==b)ml(this,this.yc),this.i++;else{var c=Ek(a.target.getAllResponseHeaders());a=a.target.O();this.s=this.X;nl(this,b,c,a,!0)}};u.yc=function(){this.D=new al;Uh(this.j);this.j.listen(this.D,wa,this.cd);this.D.send(this.U,"PUT","",{"X-Goog-Upload-Command":"query"})};
u.cd=function(a){a=a.target;var b=a.da(),c=Ek(a.getAllResponseHeaders());nl(this,b,c,a.O(),!1)};function nl(a,b,c,d,e){var f=jl(c,ra);if("final"==f)a.o="Complete",a.i=0,a.la=b,a.M=c,a.Y=d,a.dispatchEvent(new Nk("p"));else{var g=parseInt(jl(c,"X-Goog-Upload-Size-Received"),10);e&&isNaN(g)&&(g=a.X);200!=b||"active"!=f||isNaN(g)?(400<=b&&500>b&&kl(a,"Transfer failed",ba+ll(b,c,d)),ml(a,a.yc),a.i++):(a.s=g,g>a.ca&&(a.i=0),ml(a,z(a.Bc,a,g)))}}
function kl(a,b){a.o="Error";a.s=0;a.dispatchEvent(new Ok("q",b==oa))}function ml(a,b){var c=[0,5E3,1E4,15E3,3E4,6E4],d=0;d=a.i<c.length?c[a.i]:c[c.length-1];if(d>a.H)kl(a,oa);else{void 0!==a.H&&(d=Math.min(Math.max(d,0),a.H));var e=z(b,a);0<d?a.F=lh(function(){this.F=null;e()},d,a):e()}}function ll(a,b,c){return"Response code: "+a+"\nHeaders:\n"+Fk(b)+"\nBody:\n"+c}function jl(a,b){return a[b]||a[b.toLowerCase()]};function ol(a){this.g=a}x(ol,$k);function pl(a,b){if(b.g()&&b.o())return 2097152<b.h?new hl(b,a.g):new Zk(b);if(b.g())return new hl(b,a.g);if(b.o())return new Zk(b);if(b.s())return new hl(b,a.g);throw Error("Item supports no transfer types.");};function ql(){R.call(this)}x(ql,R);function rl(){Q.call(this,"x")}x(rl,Q);function sl(a){R.call(this);this.g=a}x(sl,ql);function tl(){this.g=new ol(void 0)};function ul(a,b,c,d,e,f,g,k,l,m,q,D,pa,ob,ec,fc){if(0>=q)throw Error("Please specify a progress timeout for the Scotty request. Received -"+q);pk.call(this,a,"",b,c,null,d,e,f,g,k,l,m,q,ja,ec,fc);this.H=D;this.X=pa;this.N=ob;this.g=null;this.i=new U(this);this.l=new fi(z(this.bd,this),q)}x(ul,pk);u=ul.prototype;
u.Tb=function(a){var b=this.X,c=this.v,d=c.length;c=new Yk(c,"raw","",void 0);c.v=!0;c=pl(b.g.g,c);d=new Pk("",d,c);b.dispatchEvent(new rl([d],null));this.g=d;b=(nf?nf:nf=new mf).Gb;b=jb(kd(b))?this.H:wh(this.H,{authuser:b});this.g.s=b;this.g.o=this.B;b={};Mc(b,this.D,H(a.h));this.g.j=H(b);b={};d=oh(this.h.match(nh)[5]||null,!0);b.httpaction=d;if(d=this.h.match(nh)[6]||null){d=new Oi(d);$i(d);var e=Array.from(d.g.values()),f=Array.from(d.g.keys());c=[];for(var g=0;g<f.length;g++)for(var k=e[g],l=
0;l<k.length;l++)c.push(f[g]);for(e=0;e<c.length;e++)f=c[e],b[f]=d.get(f)}Mc(b,a.g.g);a=this.N.stringify(b);this.g.l=a;this.g.v=!0;this.i.xa(this.g,"u",this.ld);this.i.xa(this.g,"v",this.md);this.i.listen(this.g,"t",this.nd);this.g.start();this.l.start()};u.ld=function(){if(this.g){var a=this.g.g.Ab(),b=this.g.g.Bb()||{},c={},d;for(d in b)c[d.toLowerCase()]=b[d];a=new uk(this.g.O(),t,c["content-type"]||null,a,dh(a)?0:6,c,rk(this));qk(this,a)}};
u.md=function(){if(this.g){var a=new uk("",t,null,0,5,{},rk(this));qk(this,a)}};u.nd=function(){vl(this)&&this.l.start()};u.bd=function(){if(vl(this)){var a=new uk("",t,null,0,8,{},rk(this));qk(this,a)}};function vl(a){return null!=a.g&&"start"==a.g.getState()}u.reset=function(){gi(this.l);this.g&&(vl(this)&&this.g.cancel(),O(this.g),this.g=null);Uh(this.i)};u.A=function(){eg(this.l,this.i);pk.prototype.A.call(this)};function wl(a,b,c,d,e,f){ak.call(this,b,c,d,e);this.Y=a;this.ra=f||lf(d,"docs-net-udur");this.sa=new sl(new tl);this.J=new li;this.Cb=kf(d,"docs-net-udpt")}x(wl,ak);
wl.prototype.T=function(){if(!this.N)throw Error("Scotty request cannot be built when upload is not allowed for a request.");var a=this.B;0>=a&&(a=this.Cb);if(!fk(this))throw Error("GetUploadContent() called when upload content is not available");if(typeof this.g===r)var b=this.g;else{b=this.J;for(var c=this.g,d=new Zj("{"),e=0;e<c.length;e+=2)0<e&&d.g(","),d.g(b.stringify(c[e])).g(":").g(b.stringify(c[e+1]));d.g("}");b=d.toString()}var f;typeof b===r&&(f=b);return new ul(dk(this),f,this.s,this.v,
this.l,this.h,this.D,this.o,this.H,this.U,a,this.ra,this.sa,this.J,this.F)};wl.prototype.ca=function(a){if(!this.Y)throw Error(qa+bk(this));this.Y.send(a)};function xl(a,b,c,d,e,f,g,k,l,m,q,D,pa,ob,ec,fc,hm){pk.call(this,a,b,c,d,e,f,g,k,l,m,q,D,pa,ob,ec,hm);this.N=fc;this.g=null;this.i=new U(this);this.l=0;this.H=!!e}x(xl,pk);
xl.prototype.Tb=function(a){var b=this;this.g=this.N();this.i.xa(this.g,wa,function(){var e=b.g;var f="";var g=null;try{if(""==e.l?f=e.O():f=Mh(e),e.g&&4==Kh(e)){var k=e.g.getResponseHeader(ca);g=null===k?void 0:k}else g=void 0}catch(ob){}k=yl(e.l);var l=e.da(),m=e.j,q={};e=e.getAllResponseHeaders().split("\r\n");for(var D=0;D<e.length;D++)if(!jb(kd(e[D]))){var pa=e[D].split(": ");2==pa.length&&(q[pa[0]]=pa[1])}f=new uk(f,k,g,l,m,q,rk(b));qk(b,f)});this.H&&this.i.listen(this.g,Ca,function(){if(3==
Kh(b.g)&&Lh(b.g)&&200==b.g.da()){var e=b.g.O();if(e.length>b.l){var f=e.substring(b.l);b.l=e.length;b.s&&b.s(f)}}});this.g.v=Math.max(0,this.U);this.F!=t&&(this.g.l=zl(this.F));var c=wh(this.V+this.h,a.g.g),d={};Mc(d,this.D,H(a.h));this.g.send(c,this.B,this.v,d)};xl.prototype.reset=function(){this.g&&(this.g.dispose(),this.g=null)};xl.prototype.A=function(){O(this.i);pk.prototype.A.call(this)};
function yl(a){switch(a){case ta:return ta;case "blob":return"blob";case ya:return ya;case t:return t;case "":return t;default:throw Error("Unsupported Xhr Response Type - "+a);}}function zl(a){switch(a){case ta:return ta;case "blob":return"blob";case ya:return ya;default:return""}};function Al(a,b,c,d,e,f){ak.call(this,b,c,d,e);this.J=a;this.Y=!!f}x(Al,ak);Al.prototype.T=function(){var a=this.B;0>a&&(a=this.Y?4E4:2E4);return new xl(dk(this),ck(this),ek(this),this.s,null,this.v,this.l,this.h,this.D,this.o,this.H,this.U,a,this.G,this.F,function(){return new T},this.la)};Al.prototype.ca=function(a){if(!this.J)throw Error(qa+bk(this));this.J.send(a)};function Bl(a,b,c,d,e,f){ak.call(this,b,c,d,e);this.J=a;this.sa=jf(d,"docs-net-usud");this.ra=kf(d,"docs-net-udmi");this.Y=f}x(Bl,ak);
Bl.prototype.T=function(){var a=null,b;if(b=this.sa&&this.N){if(!fk(this))throw Error("GetUploadContentLength() called when upload content is not available");if(Array.isArray(this.g)){b=0;for(var c=this.g,d=0;d<c.length;d++){var e=c[d];typeof e===r&&(b+=e.length)}}else b=this.g.length;b=b>this.ra}b&&(a=new wl(this.J,dk(this),this.Aa,this.X,this.M,this.Y));null==a&&(a=new Al(this.J,dk(this),this.Aa,this.X,this.M));b=a;b.i=this.i;b.C=this.C;b.V=this.V;b.g=this.g;b.G=this.G;b.H=this.H;b.s=this.s;b.U=
this.U;b.l=this.l;b.h=this.h;b.D=this.D;b.o=this.o;b.v=this.v;b.B=this.B;b.N=this.N;b.F=H(this.F);return a.T()};Bl.prototype.ca=function(a){if(!this.J)throw Error(qa+bk(this));this.J.send(a)};function Cl(){};function Dl(a,b){this.g=a;this.h=b}Dl.prototype.i=function(a){this.g&&(this.g.call(this.h||null,a),this.g=this.h=null)};Dl.prototype.abort=function(){this.h=this.g=null};Gc(function(a){Dl.prototype.i=a(Dl.prototype.i)});function El(a,b,c){Q.call(this,"A",a);this.i=b;this.g=c}x(El,Q);function Fl(a){R.call(this);var b=this;this.h=a;this.j=function(c){mk(b.h,"tfe",c)};this.g=null;this.i=new U(this);this.i.listen(this.h,"h",this.l)}x(Fl,R);Fl.prototype.l=function(){this.g&&(this.g.o=H(this.h.g.g))};Fl.prototype.o=function(a){this.dispatchEvent(new El(this,a,Lj(this.g)))};Fl.prototype.A=function(){this.g&&!this.g.isDisposed()&&(Xh(this.g.j,Da,this.j),Kj(this.g),this.g.C=Ic);this.g=null;O(this.i);R.prototype.A.call(this)};function Gl(a,b){P.call(this);this.h=[];this.l=a;(this.i=b||null)&&this.I(this.i);this.g=this.j=null;this.i&&(this.g=new kh(500),this.j=new U(this),this.j.listen(this.g,"tick",this.o))}x(Gl,P);Gl.prototype.reset=function(){this.h=[];this.g&&S(this.g)};Gl.prototype.o=function(){for(;0<this.h.length&&this.i.h();)this.i.g(),this.l(this.h.shift());0==this.h.length&&this.g&&S(this.g)};Gl.prototype.A=function(){O(this.j);O(this.g);P.prototype.A.call(this)};function Hl(){P.call(this);this.g={}}x(Hl,P);Hl.prototype.Ma=function(a,b,c){var d=this;if(typeof a===h)c&&(a=z(a,c));else if(a&&typeof a.handleEvent==h)a=z(a.handleEvent,a);else throw Error(ha);var e=new Il;b=lh(function(){var f=a,g=e.g;null!==g&&delete d.g[g];f()},b);this.g[b]=!0;return e.g=b};Hl.prototype.A=function(){for(var a in this.g){var b=Number(a);null!==b&&delete this.g[b];y.clearTimeout(b)}P.prototype.A.call(this)};function Il(){this.g=null};function Jl(a,b,c,d,e,f,g,k,l){R.call(this);var m=this;this.h=new lk(b,e,g);this.I(this.h);this.i=l||new Fl(this.h);this.I(this.i);this.l=new U(this);this.I(this.l);this.o=c||null;c&&this.l.listen(c,"y",this.Zc);this.g=d||new Rf;this.F=k||null;this.C=new Hl;this.I(this.C);this.j=[];this.B=[];this.v=new Gl(function(q){5<=m.g.getState().g||(m.g.getState()==(N(),Af)&&Tf(m.g,(N(),Bf)),m.l.xa(q,"i",m.lc),q.send(m.h))},f);this.I(this.v);this.s=(N(),If);this.D=new $f;this.I(this.D);this.l.listen(this.i,
"A",this.Yc)}x(Jl,R);function Pj(a,b){var c=ef();b=new Bl(a,b,a,c,a.F,void 0);b.i=a.h.i;return b}u=Jl.prototype;u.send=function(a){if(!a.isDisposed()){var b=this.j;0<=vb(b,a)||b.push(a);a:{b=this.v;if(b.i){if(!b.i.h()||0!=b.h.length){b.h.push(a);b.g.start();break a}b.i.g()}b.l(a)}this.l.xa(a,"j",this.$c)}};
u.lc=function(a){var b=a.target,c=a.g;"SOON"==c.o["x-restart"]&&this.g.o.dispatchEvent(null);this.o&&zk(c)&&1!=b.j&&(b.h.startsWith("/logImpressions")||b.h.startsWith("/naLogImpressions")||this.o.log(Error("blank JSON response"),vk(c)));if(a=wk(c)){var d=!0,e=!1;if("c"==a.type){try{b.G(c),Kl(this,b)}catch(g){a=new Uj("f",a.l,a.g,function(){return Rj(c)}),a.Xa=g,a.i="c",Kl(this,b,this.s)}b.dispose()}else if("d"==a.type||"e"==a.type)switch(Ll(this,a,b,c)){case 4:e=!0;a.i=a.type;a.type="b";break;case 1:a.i=
a.type;a.type="b";break;case 3:d=!1}else"g"==a.type&&(this.o&&this.o.info(Error("Incompatible server")),Kl(this,b,(N(),Hf)),d=!1);if("b"==a.type){try{if(b.C(a),0==!b.T&&(d=!1),b.J)Kl(this,b);else{var f=b.M(a)||(e?(N(),If):Ml(this,a.g));Kl(this,b,f)}}catch(g){a=new Uj("f",a.l,a.g,function(){return Rj(c)}),a.Xa=g,a.i="b",Kl(this,b,this.s)}b.dispose()}d&&this.dispatchEvent(a)}};
u.$c=function(a){a=a.target;if(0<=vb(this.v.h,a)){var b=this.v;xb(b.h,a);0==b.h.length&&b.g&&S(b.g)}else 0<=vb(this.j,a)&&(this.l.tb(a,"i",this.lc),Kl(this,a));xb(this.j,a);xb(this.B,a)};
function Kl(a,b,c){var d=a.g.getState(),e=d,f=c||(N(),Df);c=!c;xb(a.j,b);xb(a.B,b);N();if(!(5<=d.g))if(5<=f.g)Tf(a.g,f,b.h);else{var g=null!=a.i.g||wb(a.j,function(k){return 3==k.j});if(d==Bf)c||!g?0==a.j.length&&(e=Af):(Nl(a),e=f);else if(c)if(0<a.j.length)e=Cf,Ol(a);else{if(null==a.i.g||Mj(a.i.g))e=Af}else e=f;Tf(a.g,e,b.h)}}
function Ll(a,b,c,d){var e=!1;if(200==b.g){var f=sk(d);f&&"XSRF"==F(f,1)&&(nk(a.h,F(f,4)),e=!0)}400==b.g&&(d=tk(d))&&F(d,1)&&(nk(a.h,F(d,1)),e=!0);409==b.g&&mk(a.h,"tfe",null);d=5<=a.g.getState().g;f="e"==b.type;if(!d&&e&&1>=c.o.h)return Pl(a,c,2),3;var g=0===b.g?1:3;if(!d&&1!=c.j&&4>c.o.h)return Pl(a,c,g),3;if(3==c.j){if(d)return 2;null==a.i.g||f?Pl(a,c,g):a.B.push(c)}else return e?4:1;Nl(a);Tf(a.g,Ml(a,b.g),c.h);return 2}function Nl(a){null!=a.i.g&&1==a.g.getState().g&&(a=a.i,Kj(a.g),Zh(a.g))}
u.da=function(){return this.g};function Pl(a,b,c){c=ik(b.o,c);a.C.Ma(function(){return a.send(b)},c)}u.Yc=function(a){var b=this.g.getState();5<=b.g||(a.i?1!=b.g&&(0<this.j.length?(Tf(this.g,(N(),Cf)),Ol(this)):Tf(this.g,(N(),Af))):Tf(this.g,Ml(this,a.g),null,a.g))};function Ol(a){var b=a.B.shift();b&&a.send(b)}
function Ml(a,b){return 401==b?(N(),zf):403==b?(N(),yf):421==b?(N(),Ff):423==b?(N(),Gf):512==b||432==b?(N(),Kf):433==b?(N(),xf):434==b?(N(),Lf):202==b||405==b||409==b||429==b||500<=b&&599>=b&&550!=b?(N(),Ef):413==b?(N(),Jf):400<=b&&499>=b||550==b?a.s:(N(),Df)}u.Zc=function(){Tf(this.g,this.s)};u.A=function(){eg(this.j);R.prototype.A.call(this)};function Ql(a){P.call(this);this.h=a;this.g={};this.h.bb(z(this.i,this))}A(Ql,P);function Rl(a,b){if(-1!=b.indexOf(":"))throw Error('Virtual channel name "'+b+'" should not contain colons');if(b in a.g)throw Error('Virtual channel "'+b+'" was already created for this multichannel.');var c=new Sl(a,b);return a.g[b]=c}Ql.prototype.i=function(a,b){if(a=a.match(/^([^:]*):(.*)/)){var c=a[1];a=a[2];c in this.g&&(c=this.g[c])&&c.i&&c.i(a,b)}};
Ql.prototype.A=function(){Jc(this.g,function(a){O(a)});O(this.h);delete this.g;delete this.h};function Sl(a,b){P.call(this);this.g=a;this.h=b}A(Sl,P);u=Sl.prototype;u.connect=function(a){a&&a()};u.isConnected=function(){return!0};u.Ia=function(a,b,c){this.g.h.Ia(this.h+":"+a,z(this.fc,this,b),c)};u.bb=function(a){this.i=z(this.fc,this,a)};u.send=function(a,b){if(this.isDisposed())throw Error("#send called for disposed VirtualChannel.");this.g.h.send(this.h+":"+a,b)};
u.fc=function(a,b){this.isDisposed()||a.apply({},Array.prototype.slice.call(arguments,1))};u.A=function(){this.g=this.g.g[this.h]=null};function Tl(a,b){P.call(this);this.h=[];this.j=new Ql(a);this.i=Rl(this.j,"user");this.o=Rl(this.j,"control");this.g=new kh(b||50);this.g.start();Dg(this.g,"tick",this.zc,!1,this);this.o.Ia("setPeerReady_",z(this.sd,this))}A(Tl,P);u=Tl.prototype;u.connect=function(a){a&&a()};u.isConnected=function(){return!0};u.zc=function(){try{this.o.send("setPeerReady_",this.l?"1":"")}catch(a){throw S(this.g),a;}};u.Ia=function(a,b,c){this.i.Ia(a,b,c)};u.bb=function(a){this.i.bb(a)};
u.send=function(a,b){this.l?this.i.send(a,b):this.h.push({rd:a,payload:b})};u.sd=function(a){a?S(this.g):this.g.start();if(!this.l){this.l=!0;this.zc();for(a=0;a<this.h.length;a++){var b=this.h[a];this.i.send(b.rd,b.payload)}this.h=null}};u.A=function(){O(this.j);O(this.g);Tl.P.A.call(this)};var Ul=["pu","lru","pru","lpu","ppu"];function Vl(){for(var a=10,b=Wl,c=b.length,d="";0<a--;)d+=b.charAt(Math.floor(Math.random()*c));return d}var Wl="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";function Xl(a){P.call(this);this.l=a||hb||(hb=new od)}A(Xl,P);function Yl(a,b){Xl.call(this,b);this.g=a;this.C=new U(this);this.I(this.C);this.s=new kh(100,md(this.l.g));this.I(this.s);this.i=new J;this.j=new J;this.h=new J;this.B=Vl();this.v=null;this.o={};this.F=this.g.name;Zl(this.g,this.g.name+"_"+$l(this.g));this.D=!1;$d(this.h,this.i);$d(this.h,this.j);Yd(this.h,this.Mc,this);this.h.callback(!0);this.C.listen(this.s,"tick",this.Wb)}A(Yl,Xl);var am={};
function bm(a){var b=new cm(a.channelName,a.service,a.payload);a=b.g;var c=b.h;b=b.payload;var d=Z[a];if(d)return d.gb(c,b),!0;d=dm(b)[0];for(var e in Z){var f=Z[e];if(1==$l(f)&&!f.isConnected()&&"tp"==c&&d==ka)return Zl(f,a),f.gb(c,b),!0}return!1}u=Yl.prototype;u.Gc=function(a){a=dm(a);var b=a[1];switch(a[0]){case la:this.i.g||this.i.callback(!0);break;case ka:this.send("tp",la),this.j.g||this.j.callback(!0),null!=this.v&&this.v!=b&&this.send("tp","SETUP,"+this.B),this.v=b}};
u.connect=function(){var a=md(this.l.g);if(a){var b=Za(a);0==(am[b]||0)&&null==Ua(xa,a)&&fb(bm,a);am[b]++;this.D=!0;this.Wb()}};u.Wb=function(){this.g.isConnected()?S(this.s):(this.s.start(),this.send("tp","SETUP,"+this.B))};u.send=function(a,b){this.g.aa&&(a=new cm(this.F+"_"+(0==$l(this.g)?1:0),a,b),this.g.g.directSyncMode?this.ic(a):this.o[Za(a)]=lh(z(this.ic,this,a),0))};
u.ic=function(a){var b=Za(a);this.o[b]&&delete this.o[b];try{var c=Ua(xa,this.g.aa)}catch(d){return}if(null!==c)try{c({channelName:a.g,service:a.h,payload:a.payload})}catch(d){}};u.Mc=function(){em(this.g,0)};u.A=function(){if(this.D){var a=md(this.l.g),b=Za(a);1==--am[b]&&fb(null,a)}this.o&&(Jc(this.o,function(c){y.clearTimeout(c)}),this.o=null);this.i&&(this.i.cancel(),delete this.i);this.j&&(this.j.cancel(),delete this.j);this.h&&(this.h.cancel(),delete this.h);Yl.P.A.call(this)};
function dm(a){a=a.split(",");a[1]=a[1]||null;return a}function cm(a,b,c){this.g=a;this.h=b;this.payload=c};function fm(a,b,c,d,e){Xl.call(this,c);this.o=a;this.s=e||2;this.H=b||"*";this.C=new U(this);this.v=new kh(100,md(this.l.g));this.D=!!d;this.i=new J;this.j=new J;this.h=new J;this.G=Vl();this.B=null;this.D?1==$l(this.o)?$d(this.h,this.i):$d(this.h,this.j):($d(this.h,this.i),2==this.s&&$d(this.h,this.j));Yd(this.h,this.Nc,this);this.h.callback(!0);this.C.listen(this.v,"tick",this.Xb)}A(fm,Xl);fm.prototype.g=null;fm.prototype.F=!1;var gm={};u=fm.prototype;u.eb=0;
function im(a){var b=a.g.data;if(typeof b!==r)return!1;var c=b.indexOf("|"),d=b.indexOf(":");if(-1==c||-1==d)return!1;var e=b.substring(0,c);c=b.substring(c+1,d);b=b.substring(d+1);if(d=Z[e])return d.gb(c,b,a.g.origin),!0;d=jm(b)[0];for(var f in Z){var g=Z[f];if(1==$l(g)&&!g.isConnected()&&"tp"==c&&(d==ka||"SETUP_NTPV2"==d)&&km(g,a.g.origin))return Zl(g,e),g.gb(c,b),!0}return!1}
u.Gc=function(a){var b=jm(a);a=b[1];switch(b[0]){case la:lm(this,1);this.i.g||this.i.callback(!0);break;case ma:2==this.s&&(lm(this,2),this.i.g||this.i.callback(!0));break;case ka:lm(this,1);mm(this,1);break;case "SETUP_NTPV2":2==this.s&&(b=this.g,lm(this,2),mm(this,2),1!=b&&null==this.B||this.B==a||nm(this),this.B=a)}};function nm(a){2!=a.s||null!=a.g&&2!=a.g||a.send("tp","SETUP_NTPV2,"+a.G);null!=a.g&&1!=a.g||a.send("tp",ka)}
function mm(a,b){if(2!=a.s||null!=a.g&&2!=a.g||2!=b){if(null!=a.g&&1!=a.g||1!=b)return;a.send("tp",la)}else a.send("tp",ma);a.j.g||a.j.callback(!0)}function lm(a,b){b>a.g&&(a.g=b);1==a.g&&(a.j.g||a.D||a.j.callback(!0),a.B=null)}u.connect=function(){var a=md(this.l.g),b=Za(a),c=gm[b];typeof c!==n&&(c=0);0==c&&Dg(a.postMessage?a:a.document,Aa,im,!1,fm);gm[b]=c+1;this.F=!0;this.Xb()};u.Xb=function(){var a=0==$l(this.o);this.D&&a||this.o.isConnected()||this.isDisposed()?S(this.v):(this.v.start(),nm(this))};
u.send=function(a,b){var c=this.o.aa;c&&(this.send=function(d,e){var f=this,g=this.o.name;this.eb=lh(function(){f.eb=0;try{var k=c.postMessage?c:c.document;k.postMessage&&k.postMessage(g+"|"+d+":"+e,f.H)}catch(l){}},0)},this.send(a,b))};u.Nc=function(){em(this.o,1==this.s||1==this.g?200:void 0)};
u.A=function(){if(this.F){var a=md(this.l.g),b=Za(a),c=gm[b];gm[b]=c-1;1==c&&Lg(a.postMessage?a:a.document,Aa,im,!1,fm)}this.eb&&(y.clearTimeout(this.eb),this.eb=0);O(this.C);delete this.C;O(this.v);delete this.v;this.i.cancel();delete this.i;this.j.cancel();delete this.j;this.h.cancel();delete this.h;delete this.send;fm.P.A.call(this)};function jm(a){a=a.split(",");a[1]=a[1]||null;return a};function om(a,b){bi.call(this);for(var c=0,d;d=Ul[c];c++)if(d in a&&!/^https?:\/\//.test(a[d]))throw Error("URI "+a[d]+" is invalid for field "+d);this.g=a;this.name=this.g.cn||Vl();this.h=b||hb||(hb=new od);this.i=[];this.o=new U(this);a.lpu=a.lpu||ph(md(this.h.g).location.href)+"/robots.txt";a.ppu=a.ppu||ph(a.pu||"")+"/robots.txt";Z[this.name]=this;Ng(window,"unload",pm)||Eg(window,"unload",pm)}A(om,bi);var qm=RegExp("^%*tp$"),rm=RegExp("^%+tp$");u=om.prototype;u.ua=null;u.Ga=null;u.ha=null;
u.Ka=1;u.isConnected=function(){return 2==this.Ka};u.aa=null;u.mb=null;u.connect=function(a){this.l=a||Va;3==this.Ka&&(this.Ka=1);this.Ga?Yd(this.Ga,this.dc):this.dc()};
u.dc=function(){this.Ga=null;if(this.g.ifrid){var a=this.g.ifrid;this.mb=typeof a===r?this.h.g.getElementById(a):a}this.mb&&((a=this.mb.contentWindow)||(a=window.frames[this.g.ifrid]),this.aa=a);if(!this.aa){if(window==window.top)throw Error("CrossPageChannel: Can't connect, peer window-object not set.");this.aa=window.parent}if(!this.ha){this.g.tp||(this.g.tp=typeof document.postMessage===h||typeof window.postMessage===h||E&&window.postMessage?1:0);if(typeof this.g.tp===h)this.ha=new this.g.tp(this,
this.h);else switch(this.g.tp){case 1:this.ha=new fm(this,this.g.ph,this.h,!!this.g.osh,this.g.nativeProtocolVersion||2);break;case 2:if(a=this.aa)try{a=window.document.domain==this.aa.document.domain}catch(b){a=!1}a&&(this.ha=new Yl(this,this.h))}if(!this.ha)throw Error("CrossPageChannel: No suitable transport found! You may try injecting a Transport constructor directly via the channel config object.");}for(this.ha.connect();0<this.i.length;)this.i.shift()()};
u.close=function(){this.Ga&&(this.Ga.cancel(),this.Ga=null);this.i.length=0;Uh(this.o);this.Ka=3;O(this.ha);this.l=this.ha=null;O(this.ua);this.ua=null};function em(a,b){a.isConnected()||a.ua&&0!=a.ua.g||(a.Ka=2,O(a.ua),void 0!==b?(a.ua=new fi(a.l,b),a.ua.start()):(a.ua=null,a.l()))}u.send=function(a,b){if(this.isConnected()){try{var c=!!this.aa&&!this.aa.closed}catch(e){c=!1}if(c){Ya(b)&&(b=Yg(b));c=this.ha;var d=c.send;qm.test(a)&&(a="%"+a);a=a.replace(/[%:|]/g,encodeURIComponent);d.call(c,a,b)}else this.close()}};
u.gb=function(a,b,c){this.Ga?this.i.push(z(this.gb,this,a,b,c)):km(this,c)&&!this.isDisposed()&&3!=this.Ka&&(a&&"tp"!=a?this.isConnected()&&(a=a.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),a=rm.test(a)?a.substring(1):a,ci(this,a,b)):this.ha.Gc(b))};function $l(a){var b=a.g.role;return typeof b===n?b:window.parent==a.aa?1:0}function Zl(a,b){delete Z[a.name];a.name=b;Z[b]=a}function km(a,b){var c=a.g.ph;return jb(kd(b))||jb(kd(c))||b==a.g.ph}
u.A=function(){this.close();this.mb=this.aa=null;delete Z[this.name];O(this.o);delete this.o;om.P.A.call(this)};function pm(){for(var a in Z)O(Z[a])}var Z={};y._docosCreateHost=function(a){a:{a=new vc(a);Zb=!0;try{var b=JSON.stringify(a.toJSON(),pc);break a}finally{Zb=!1}b=void 0}b=new Qg({keyData:b});a=Ye();var c=new Cl,d=new jk,e=new Of;e.g=!1;e.h=!1;e.i=!1;e.j=0;e.l=a;var f=new Pf;f.l=e.l;f.g=e.g;f.h=e.h;f.i=e.i;f.j=e.j;c=new Jl(c,void 0,void 0,void 0,d,void 0,void 0,f);if(e=b.l)c.h.i=e;(d=b.C)&&nk(c.h,d);b.s&&mk(c.h,"anon","true");(d=b.v)&&mk(c.h,"invite",d);d=null;if(b.i){d=new Yh(ef());d.G=b.o.g;f=c.i;var g=d;f.g=g;var k=z(f.o,f);g.C=k;null!=g.l&&
g.C(Mj(g));$h(g,Da,f.j);f.l();Zh(d,b.h,a,e)}e=["id",b.h];f=kk();(f=b.B||f.g.resourcekey)&&e.push("resourcekey",f);b=new Nj(c,!0,e,d,null!=b.j?b.j:6E4,b,a);b.I(c);c=new Hi(window.location.href);a=c.h.get("ctoken");if(!a)throw Error("Channel token missing.");if(c=c.h.get("xpc"))return c=JSON.parse(c),c=new om(c),c.connect(),c=new Tl(c),c=new di(c,a),new Vh(c,b);throw Error("Remote endpoint not found.");};/*

 SPDX-License-Identifier: Apache-2.0
*/
/*
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
}).call(this);
