'use strict';/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
var Kz=function(a,b){this.s=[];this.H=a;this.K=b||null;this.m=this.j=!1;this.l=void 0;this.F=this.L=this.C=!1;this.D=0;this.h=null;this.o=0};Kz.prototype.cancel=function(a){if(this.j)this.l instanceof Kz&&this.l.cancel();else{if(this.h){var b=this.h;delete this.h;a?b.cancel(a):(b.o--,0>=b.o&&b.cancel())}this.H?this.H.call(this.K,this):this.F=!0;this.j||this.g(new Lz(this))}};Kz.prototype.G=function(a,b){this.C=!1;Mz(this,a,b)};
var Mz=function(a,b,c){a.j=!0;a.l=c;a.m=!b;Nz(a)},Pz=function(a){if(a.j){if(!a.F)throw new Oz(a);a.F=!1}};Kz.prototype.callback=function(a){Pz(this);Mz(this,!0,a)};Kz.prototype.g=function(a){Pz(this);Mz(this,!1,a)};var Rz=function(a,b,c){return Qz(a,b,null,c)},Sz=function(a,b){return Qz(a,null,b,void 0)},Qz=function(a,b,c,d){a.s.push([b,c,d]);a.j&&Nz(a);return a};
Kz.prototype.then=function(a,b,c){var d,e,f=new Qs(function(g,h){d=g;e=h});Qz(this,d,function(g){g instanceof Lz?f.cancel():e(g)});return f.then(a,b,c)};Ms(Kz);var Tz=function(a,b){b instanceof Kz?Rz(a,w(b.w,b)):Rz(a,function(){return b})};Kz.prototype.w=function(a){var b=new Kz;Qz(this,b.callback,b.g,b);a&&(b.h=this,this.o++);return b};Kz.prototype.isError=function(a){return a instanceof Error};
var Uz=function(a){return Ob(a.s,function(b){return Oa(b[1])})},Nz=function(a){if(a.D&&a.j&&Uz(a)){var b=a.D,c=Vz[b];c&&(Ea.clearTimeout(c.Qa),delete Vz[b]);a.D=0}a.h&&(a.h.o--,delete a.h);b=a.l;for(var d=c=!1;a.s.length&&!a.C;){var e=a.s.shift(),f=e[0],g=e[1];e=e[2];if(f=a.m?g:f)try{var h=f.call(e||a.K,b);void 0!==h&&(a.m=a.m&&(h==b||a.isError(h)),a.l=b=h);if(Ns(b)||"function"===typeof Ea.Promise&&b instanceof Ea.Promise)d=!0,a.C=!0}catch(l){b=l,a.m=!0,Uz(a)||(c=!0)}}a.l=b;d&&(h=w(a.G,a,!0),d=w(a.G,
a,!1),b instanceof Kz?(Qz(b,h,d),b.L=!0):b.then(h,d));c&&(b=new Wz(b),Vz[b.Qa]=b,a.D=b.Qa)},Yz=function(){var a=new Kz;a.callback(new Xz(200,""));return a},Zz=function(a){var b=new Kz;a.then(function(c){b.callback(c)},function(c){b.g(c)});return b},$z=function(a){var b=new Kz;b.g(a);return b},Oz=function(){Bb.call(this)};y(Oz,Bb);Oz.prototype.message="Deferred has already fired";Oz.prototype.name="AlreadyCalledError";var Lz=function(){Bb.call(this)};y(Lz,Bb);Lz.prototype.message="Deferred was canceled";
Lz.prototype.name="CanceledError";var Wz=function(a){this.Qa=Ea.setTimeout(w(this.h,this),0);this.g=a};Wz.prototype.h=function(){delete Vz[this.Qa];throw this.g;};var Vz={};var aA=function(){T.call(this)};y(aA,T);aA.prototype.u=Wf("fava.debug.ErrorReporter");aA.prototype.init=function(){};new aA;Wf("fava.debug.errorContext");/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var bA=function(a,b){T.call(this);this.j=null;this.l=b;this.g=[];if(a>this.l)throw Error("[goog.structs.SimplePool] Initial cannot be greater than max");for(b=0;b<a;b++)this.g.push(this.h())};y(bA,T);var cA=function(a,b){a.j=b},eA=function(a,b){a.g.length<a.l?a.g.push(b):dA(b)};bA.prototype.h=function(){return this.j?this.j():{}};var dA=function(a){if(Pa(a))if(Oa(a.dispose))a.dispose();else for(var b in a)delete a[b]};
bA.prototype.aa=function(){bA.Ab.aa.call(this);for(var a=this.g;a.length;)dA(a.pop());delete this.g};var hA=function(){this.g=[];this.h=new Hm;this.F=this.G=this.K=this.o=0;this.j=new Hm;this.w=this.C=0;this.H=1;this.l=new bA(0,4E3);this.l.h=function(){return new fA};this.D=new bA(0,50);this.D.h=function(){return new gA};var a=this;this.s=new bA(0,2E3);cA(this.s,function(){return a.H++});this.m={}};hA.prototype.u=Wf("goog.debug.Trace");var gA=function(){this.ml=this.time=this.count=0};
gA.prototype.toString=function(){var a=[];a.push(this.type," ",this.count," (",Math.round(10*this.time)/10," ms)");this.ml&&a.push(" [VarAlloc = ",this.ml,"]");return a.join("")};var fA=function(){},kA=function(a,b,c,d){var e=[];-1==c?e.push("    "):e.push(iA(a.eventTime-c));e.push(" ",jA(a.eventTime-b));0==a.eventType?e.push(" Start        "):1==a.eventType?(e.push(" Done "),e.push(iA(a.h-a.startTime)," ms ")):e.push(" Comment      ");e.push(d,a);0<a.g&&e.push("[VarAlloc ",a.g,"] ");return e.join("")};
fA.prototype.toString=function(){return null==this.type?this.comment:"["+this.type+"] "+this.comment};var lA={hL:!0};hA.prototype.Fk=function(){this.m={}};var mA=function(a){a.m.stop&&Dm(a.h,function(b){this.m.stop(b.id,lA)},a);a.h.clear()};
hA.prototype.reset=function(){mA(this);for(var a=0;a<this.g.length;a++){var b=this.g[a];b.id?Km(this.h,b.id)||(eA(this.s,b.id),eA(this.l,b)):eA(this.l,b)}this.g.length=0;this.o=Xa();this.w=this.C=this.F=this.G=this.K=0;a=this.j.Lb();for(b=0;b<a.length;b++){var c=this.j.get(a[b]);c.count=0;c.time=0;c.ml=0;eA(this.D,c)}this.j.clear()};
hA.prototype.toString=function(){for(var a=[],b=-1,c=[],d=0;d<this.g.length;d++){var e=this.g[d];1==e.eventType&&c.pop();a.push(" ",kA(e,this.o,b,c.join("")));b=e.eventTime;a.push("\n");0==e.eventType&&c.push("|  ")}if(0!=this.h.wa()){var f=Xa();a.push(" Unstopped timers:\n");Dm(this.h,function(g){a.push("  ",g," (",f-g.startTime," ms, started at ",jA(g.startTime),")\n")})}b=this.j.Lb();for(d=0;d<b.length;d++)c=this.j.get(b[d]),1<c.count&&a.push(" TOTAL ",c,"\n");a.push("Total tracers created ",this.C,
"\n","Total comments created ",this.w,"\n","Overhead start: ",this.K," ms\n","Overhead end: ",this.G," ms\n","Overhead comment: ",this.F," ms\n");return a.join("")};var iA=function(a){a=Math.round(a);var b="";1E3>a&&(b=" ");100>a&&(b="  ");10>a&&(b="   ");return b+a},jA=function(a){a=Math.round(a);return String(100+a/1E3%60).substring(1,3)+"."+String(1E3+a%1E3).substring(1,4)};new hA;Wf("goog.debug.ErrorReporter");var nA=function(a){this.h=0;this.j=a||100;this.g=[]};k=nA.prototype;k.add=function(a){var b=this.g[this.h];this.g[this.h]=a;this.h=(this.h+1)%this.j;return b};k.get=function(a){a=oA(this,a);return this.g[a]};k.set=function(a,b){a=oA(this,a);this.g[a]=b};k.wa=function(){return this.g.length};k.uc=function(){return 0==this.g.length};k.clear=function(){this.h=this.g.length=0};k.Ja=function(){return pA(this,this.wa())};var pA=function(a,b){var c=a.wa(),d=[];for(b=a.wa()-b;b<c;b++)d.push(a.get(b));return d};
nA.prototype.Lb=function(){for(var a=[],b=this.wa(),c=0;c<b;c++)a[c]=c;return a};nA.prototype.kf=function(a){for(var b=this.wa(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};var oA=function(a,b){if(b>=a.g.length)throw Error("Out of bounds exception");return a.g.length<a.j?b:(a.h+Number(b))%a.j};Xa();Wf("fava.debug.DebugService");var qA=function(a,b,c,d,e,f){var g=new FormData;g.append("prod",Oe?"Google_Talk_Plugin_Mac":Pe?"Google_Talk_Plugin":"Google_Talk_Plugin_Linux");g.append("ver",(f?f:"unknown")+"-calls");g.append("email",b);g.append("type","log");g.append("log",new Blob([a]),e);c&&g.append("participant_log_id",c);if(a=d)try{a=!!navigator.sendBeacon&&navigator.sendBeacon("https://clients2.google.com/cr/report",g)}catch(l){a=!1}if(a)return Yz();try{var h=new Kz;Lv("https://clients2.google.com/cr/report",function(l){l=
l.target;Vv(l)?h.callback(new Xz(l.Ia(),Xv(l))):(l=Error(l.s+" "+l.Ia()+" "+Xv(l)),h.g(l))},"POST",g);return h}catch(l){return $z(l)}},Xz=function(a,b){this.g=a;this.h=b};var rA=function(a,b){pv.call(this);this.F=a||4194304;this.H=b||10485760;this.g=this.l=this.j=this.s=this.G=null;this.h=this.o=0;this.m=[]};u(rA,pv);var sA=function(a){a.j||(a.j=new Uint8Array(a.F+a.H),a.l=a.j.subarray(0,a.F),a.g=a.j.subarray(a.F))};rA.prototype.open=function(a,b,c){if(!this.G){var d=bt();this.G=d.da;a=tA(a,b,!!c);b=uA(a);b=vA(this,b);wA(this,b,a).then(function(e){this.s=e;this.C();d.resolve()},w(d.reject,d),this)}return this.G};
var zA=function(a){return"undefined"!==typeof TextEncoder?(xA||(xA=new TextEncoder),xA.encode(a)):yA(bk(a))},yA=function(a){if(Uint8Array.__proto__&&Uint8Array.__proto__.from)return Uint8Array.from(a);a=Object(a);if(!a.length)return new Uint8Array(0);for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};rA.prototype.write=function(a){Hb(a,function(b){this.m.push(zA(b))},this);this.C()};rA.prototype.uc=function(){return 0==this.h&&0==this.m.length};
var AA=function(a){var b=0,c=[];if(a.j&&a.h>a.j.length){for(var d=a.l.length;d&&127<a.l[d-1];)d--;for(var e=a.g.length,f=a.o;e&&127<a.g[f];)f++,e--,f==a.g.length&&(f=0);c.push(a.l.subarray(0,d));b+=d;d=yA(bk("...\r\n\r\n##### LOG TRUNCATED - REMOVED "+(a.h-d-e)+" BYTES#####\r\n\r\n..."));c.push(d);b+=d.length;f+e<=a.g.length?c.push(a.g.subarray(f,f+e)):(c.push(a.g.subarray(f)),c.push(a.g.subarray(0,e-(a.g.length-f))));b+=e}else a.j&&a.h&&(b+=a.h,c.push(a.j.subarray(0,a.h)));a.m.length&&Hb(a.m,function(l){c.push(l);
b+=l.length});var g=new Uint8Array(b),h=0;Hb(c,function(l){g.set(l,h);h+=l.length});return g},tA=function(a,b,c){var d=bt();a.then(function(e){e.getFile(b,c?{}:{create:!0},w(d.resolve,d),w(d.reject,d))},w(d.reject,d));return d.da},uA=function(a){var b=bt();a.then(function(c){c.file(w(b.resolve,b),w(b.reject,b))},w(b.reject,b));return b.da},vA=function(a,b){var c=bt();b.then(function(d){sA(this);this.h=d.size;if(this.h>this.j.length){var e=bt(),f=new FileReader;f.onload=w(function(){this.l.set(new Uint8Array(f.result));
e.resolve()},this);f.readAsArrayBuffer(d.slice(0,this.l.length));var g=bt(),h=new FileReader;h.onload=w(function(){this.g.set(new Uint8Array(h.result));g.resolve()},this);h.readAsArrayBuffer(d.slice(d.size-this.g.length,d.size));c.resolve($s([e.da,g.da]))}else{var l=new FileReader;l.onload=w(function(){var p=new Uint8Array(l.result);this.j.set(p);this.h>this.l.length&&(this.o=(this.h-this.l.length)%this.g.length);c.resolve()},this);l.readAsArrayBuffer(d)}},w(c.reject,c),a);return c.da},wA=function(a,
b,c){var d=bt();Zs([b,c]).then(function(e){e[1].createWriter(w(function(f){f.seek(f.length);f.onwriteend=w(this.C,this);d.resolve(f)},this),w(d.reject,d))},w(d.reject,d),a);return d.da};
rA.prototype.C=function(){this.s&&this.s.readyState!=this.s.WRITING&&0<this.m.length&&(this.s.write(new Blob(this.m)),sA(this),Hb(this.m,function(a){var b=this.h;this.h+=a.length;if(b<this.j.length){var c=a.subarray(0,Math.min(this.j.length-b,a.length));this.j.set(c,b);a=a.subarray(c.length)}for(b=this.g.length-this.o;a.length;)c=a.subarray(0,Math.min(b,a.length)),this.g.set(c,this.o),a=a.subarray(c.length),this.o=c.length==b?0:this.o+c.length,b=this.g.length},this),this.m.length=0)};var xA=null;var CA=function(a){K(this,a,"cl:plu",-1,BA,null)};y(CA,J);var DA=function(a){K(this,a,0,-1,null,null)};y(DA,J);var BA=[1];CA.messageId="cl:plu";var EA=function(){};var FA=function(){};y(FA,EA);FA.prototype.wa=function(){var a=0;Dm(this.Pb(!0),function(){a++});return a};FA.prototype.clear=function(){var a=Fm(this.Pb(!0)),b=this;Hb(a,function(c){b.remove(c)})};var GA=function(a){this.g=a};y(GA,FA);k=GA.prototype;k.isAvailable=function(){if(!this.g)return!1;try{return this.g.setItem("__sak","1"),this.g.removeItem("__sak"),!0}catch(a){return!1}};k.set=function(a,b){try{this.g.setItem(a,b)}catch(c){if(0==this.g.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};k.get=function(a){a=this.g.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};k.remove=function(a){this.g.removeItem(a)};
k.wa=function(){return this.g.length};k.Pb=function(a){var b=0,c=this.g,d=new Bm;d.next=function(){if(b>=c.length)throw Am;var e=c.key(b++);if(a)return e;e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e};return d};k.clear=function(){this.g.clear()};k.key=function(a){return this.g.key(a)};var HA=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.g=a};y(HA,GA);var IA=function(){this.g=new HA;this.h=new Dn};La(IA);var JA=[31,37,41,43,47,53,61,67,71,73];IA.prototype.u=Wf("talk.media.webrtc.PendingLogUploadManager");
var KA=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}for(a=0;a<b.length;a++)b[a]^=JA[a%JA.length];return"wrplumplu-"+gk(b)},LA=function(a,b,c){var d=Xa()-432E6;b=a.g.get(KA(b));if(null!=b)try{var e=ws(b);if("cl:plu"==e[0]){var f=new CA(e),g=Jb(R(f,DA,1),function(h){return null!=L(h,1)&&null!=L(h,2)&&null!=L(h,3)&&0<L(h,1)&&L(h,3)>d&&L(h,2)!=c});wl(f,1,g);return f}}catch(h){C(a.u,"Invalid pending JS log upload storage: "+b,h)}return new CA};
IA.prototype.add=function(a,b,c){D(this.u,"Recording pending upload for session "+b+" for "+a);this.h.add(b);var d=LA(this,a,b),e=R(d,DA,1);var f=new DA;f=O(f,1,5);b=O(f,2,b);c=O(b,4,c);b=Xa();c=O(c,3,b);Wb(e,void 0,0,c);wl(d,1,e);this.g.set(KA(a),d.va())};IA.prototype.remove=function(a,b){D(this.u,"Removing record for session "+b+" for "+a);b=LA(this,a,b);this.g.set(KA(a),b.va())};
var MA=function(a,b){var c=LA(a,b),d=R(c,DA,1),e=Qb(d,function(p){p=L(p,2);return!this.h.contains(p)},a);if(0<=e){var f=d[e],g=L(f,2),h=L(f,4),l=L(f,1);l--;O(f,1,l);0>=l&&Yb(d,e);wl(c,1,d);a.g.set(KA(b),c.va());D(a.u,"Signaling session "+g+" for "+b+" to re-upload");a.h.add(g);return{sessionId:g,xc:h}}return null};var OA=function(){this.w="";this.F=0;this.C=null;this.s=new rA;this.g={};this.m=NA();ft(this.m,Ka);this.j=IA.Kb();this.o=this.h=null;this.K=window.requestIdleCallback||null;this.l=!1};La(OA);
var PA=function(a,b,c,d){var e=Xa();null==a.C&&(a.C=e);d=null!=d?d:8;if(!(d<a.F))if(c="["+((e-a.C)/1E3).toFixed(3)+"s]"+d+" "+c+"\n",null!=b)a=a.g[b],null!=a&&a.write([c]);else{for(b in a.g)a.g[b].write([c]);null==b&&a.s.write([c])}},RA=function(a,b,c,d){a.j.add(c,b,d);return QA(a,b,c,d)},QA=function(a,b,c,d){var e="hangouts-call-"+b+".log",f=a.g[b];if(null!=f)return a.l=!0,Sz(Rz(qA(AA(f),c,d,!0,e,a.w),w(a.G,a,b,c)),w(a.D,a,b,c));f=new rA;var g=new Kz;f.open(a.m,e,!0).then(function(){if(f.uc())PA(this,
this.h,"JS log for "+b+" has no content",9),g.callback(new Xz(null,"No log content for session "+b));else{var h=Sz(Rz(qA(AA(f),c,d,!1,void 0,this.w),w(this.G,this,b,c)),w(this.D,this,b,c));Qz(h,g.callback,g.g,g);this.l=!0}},function(h){this.D(b,c,h);g.g(h)},a);return g},NA=function(){var a=Ea.requestFileSystem||Ea.webkitRequestFileSystem;if(!a)return Vs("Filesystem API not accessible");var b=bt();a(window.TEMPORARY,0,function(c){c.root.getDirectory("log_v2",{create:!0},w(b.resolve,b),w(b.reject,b))},
w(b.reject,b));return b.da};OA.prototype.mb=function(a){var b=bt(),c=a.createReader(),d=[],e=0,f=function(){c.readEntries(function(g){g.length?(e++,d=d.concat(g),100<e?b.resolve(d):f()):b.resolve(d)},function(g){b.reject(g)})};f();return b.da};
OA.prototype.W=function(){var a=new Date(Xa()-432E6),b=bt();this.m.then(this.mb,null,this).then(function(c){var d={};Hb(c,function(e){d[e.name]=!0});Hb(c,function(e){var f=function(){delete d[e.name];Gc(d)&&b.resolve()};e.getMetadata(function(g){g.modificationTime<a?e.remove(f,f):f()},f)})},w(b.resolve,b));return b.da};
OA.prototype.G=function(a,b,c){200==c.g?(PA(this,this.h,"JS log upload for "+a+" successful: "+c.h),this.j.remove(b,a)):PA(this,this.h,"JS log upload for "+a+" failure "+c.g+": "+c.h,10);this.l=!1};OA.prototype.D=function(a,b,c){PA(this,this.h,"JS log upload for "+a+" failed: "+c,10);this.l=!1};var SA=function(a,b){return null==a.o?(a.o=new Kz,a.L(b,0),a.o):null};OA.prototype.L=function(a,b){sv(w(this.Z,this,a,b),13E3)};
OA.prototype.Z=function(a,b){Oa(this.K)?this.K.call(null,w(this.H,this,a,b)):this.H(a,b)};OA.prototype.H=function(a,b){var c=MA(this.j,a);if(null!=c){var d=c.sessionId;c=c.xc;PA(this,this.h,"Retrying JS log upload for "+d);Sz(Rz(QA(this,d,a,c),w(this.L,this,a,c,b+1)),w(this.R,this,a,b))}else this.R(b)};OA.prototype.R=function(a){this.o.callback(a);sv(this.W,13E3,this)};var UA=function(a){K(this,a,0,-1,TA,null)};y(UA,J);var VA=function(a){K(this,a,0,-1,null,null)};y(VA,J);var TA=[14];UA.prototype.qa=function(){return L(this,1)};UA.prototype.sc=function(){return L(this,4)};UA.prototype.pj=function(){return Q(this,VA,12)};var WA=function(a){K(this,a,0,-1,null,null)};y(WA,J);var XA=function(a,b){var c=L(a,1);null!=c&&H(b,1,c);c=L(a,2);null!=c&&null!=c&&Sk(b,2,c);c=L(a,3);null!=c&&null!=c&&Sk(b,3,c);c=L(a,4);null!=c&&null!=c&&Sk(b,4,c)};WA.prototype.dc=function(){return L(this,4)};var YA=function(a){K(this,a,0,-1,null,null)};y(YA,J);var ZA=function(a,b){var c=L(a,1);null!=c&&H(b,1,c);c=L(a,2);null!=c&&H(b,2,c);c=L(a,3);null!=c&&H(b,3,c);c=L(a,4);null!=c&&H(b,4,c)};var $A=function(a){K(this,a,0,-1,null,null)};y($A,J);var aB=function(a,b){var c=L(a,1);null!=c&&Tk(b,1,c);c=L(a,2);null!=c&&H(b,2,c)};var bB=function(a){K(this,a,0,-1,null,null)};y(bB,J);var cB=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&F(b,2,c);c=L(a,3);null!=c&&H(b,3,c);c=L(a,4);null!=c&&Tk(b,4,c);c=L(a,5);null!=c&&H(b,5,c);c=L(a,6);null!=c&&H(b,6,c);c=L(a,7);null!=c&&b.g(7,c)};bB.prototype.dc=function(){return L(this,4)};var dB=function(a){K(this,a,0,-1,null,null)};y(dB,J);var eB=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&F(b,2,c);c=L(a,3);null!=c&&F(b,3,c);c=L(a,4);null!=c&&F(b,4,c);c=L(a,5);null!=c&&F(b,5,c)};dB.prototype.getDevice=function(){return L(this,1)};var fB=function(a,b){return O(a,1,b)};var gB=function(a){K(this,a,0,-1,null,null)};y(gB,J);var hB=function(a,b){var c=Q(a,bB,1);null!=c&&I(b,1,c,cB);c=Q(a,YA,2);null!=c&&I(b,2,c,ZA);c=Q(a,$A,3);null!=c&&I(b,3,c,aB);c=L(a,4);null!=c&&H(b,4,c);c=L(a,5);null!=c&&E(b,5,c);c=L(a,6);null!=c&&b.m(6,c);c=Q(a,dB,7);null!=c&&I(b,7,c,eB);c=L(a,8);null!=c&&H(b,8,c);c=Q(a,WA,9);null!=c&&I(b,9,c,XA)};var iB=function(a){K(this,a,0,-1,null,null)};y(iB,J);var jB=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Fk(b);O(a,1,c);break;case 2:c=xk(b.g,ok);O(a,2,c);break;default:Ck(b)}return a};var kB=function(a){K(this,a,0,-1,null,null)};y(kB,J);var lB=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Fk(b);O(a,1,c);break;case 2:c=Gk(b);O(a,2,c);break;case 3:c=Gk(b);O(a,3,c);break;case 4:c=xk(b.g,rk);O(a,4,c);break;case 10:c=Gk(b);O(a,10,c);break;case 11:c=b.g.w();O(a,11,c);break;case 5:c=xk(b.g,ok);O(a,5,c);break;case 6:c=xk(b.g,ok);O(a,6,c);break;case 7:c=Gk(b);O(a,7,c);break;case 8:c=Gk(b);O(a,8,c);break;case 9:c=new iB;Dk(b,c,jB);S(a,9,c);break;default:Ck(b)}return a};
kB.prototype.Ia=function(){return L(this,1)};var mB=function(a){K(this,a,0,-1,null,null)};y(mB,J);mB.prototype.qa=function(){return L(this,1)};var nB=function(a){K(this,a,0,-1,null,null)};y(nB,J);var pB=function(a){K(this,a,0,-1,oB,null)};y(pB,J);var oB=[6];pB.prototype.qa=function(){return L(this,1)};pB.prototype.getTitle=function(){return L(this,9)};pB.prototype.setTitle=function(a){return O(this,9,a)};pB.prototype.gi=function(a){return O(this,10,a)};var qB={Sq:0,Ep:1,TIMEOUT:2,ERROR:3,yC:4,ty:5,UNKNOWN:6,xA:7,Bp:8,wp:9,pz:10,lG:11,SI:12,eF:13,Tw:14,lA:15,SB:16,CJ:17,ax:18,PB:19,pH:20,OD:21,iz:22,hA:23,qE:24,HH:25,yH:26,bq:27,Tp:28,zJ:29,kG:30,ZD:31,jy:32,vp:33,AJ:34,fq:35,eK:36,KJ:37,zB:38,yB:39,AB:40,QJ:41,hF:42,bA:43,iA:44,NJ:45,ox:46,cE:47,RE:48,aE:49,SE:50,KE:51,NE:52,ME:53,PE:54,OE:55,JH:56,wA:57,gK:58,BC:59,hC:60,px:61,Zw:62,My:63,oC:64,oB:65,mB:66,bC:67,pB:68,qx:69,OA:70,Gx:71,bE:72,Mz:73,wH:74,sF:75,TC:76,BH:77,tF:78,uF:79,ky:102,mC:103,
HJ:104,GJ:105,IJ:106,yI:107,Sw:108,IH:109,TB:110,oD:111,lC:112,pD:113,rD:114,qD:115,IE:116,HE:117,AH:118,rz:119,zH:120,nz:121,dz:122,MJ:123,Ny:124};var rB=function(a){K(this,a,0,-1,null,null)};y(rB,J);rB.prototype.getService=function(){return L(this,1)};rB.prototype.sf=function(){return null!=L(this,2)};var sB=function(a){K(this,a,0,-1,null,null)};y(sB,J);var tB=function(a,b){return O(a,1,b)};var vB=function(a){K(this,a,0,-1,uB,null)};y(vB,J);var uB=[15,26];k=vB.prototype;k.qa=function(){return L(this,1)};k.Tn=function(a){return O(this,1,a)};k.ia=function(){return L(this,14)};k.rc=function(){return Q(this,sB,17)};k.jd=function(a){return S(this,17,a)};k.xj=function(){return null!=L(this,17)};var xB=function(a){K(this,a,0,-1,wB,null)};y(xB,J);var wB=[4];xB.prototype.setRequestHeader=function(a){return S(this,1,a)};xB.prototype.ea=function(){return Q(this,El,3)};xB.prototype.O=function(a){return S(this,3,a)};xB.prototype.la=function(){return this.O(void 0)};var zB=function(a){K(this,a,0,-1,yB,null)};y(zB,J);var yB=[20,8,19,26];zB.prototype.qa=function(){return L(this,1)};zB.prototype.o=function(a){return O(this,1,a)};zB.prototype.Y=function(){return L(this,2)};zB.prototype.j=function(a){return O(this,2,a)};var BB=function(a){K(this,a,0,-1,AB,null)};y(BB,J);var AB=[6];BB.prototype.setRequestHeader=function(a){return S(this,1,a)};BB.prototype.ea=function(){return Q(this,El,5)};BB.prototype.O=function(a){return S(this,5,a)};BB.prototype.la=function(){return this.O(void 0)};var CB=function(a){K(this,a,0,-1,null,null)};y(CB,J);k=CB.prototype;k.setRequestHeader=function(a){return S(this,1,a)};k.qa=function(){return L(this,2)};k.ea=function(){return Q(this,El,3)};k.O=function(a){return S(this,3,a)};k.la=function(){return this.O(void 0)};var DB=function(a){K(this,a,0,-1,null,null)};y(DB,J);k=DB.prototype;k.setRequestHeader=function(a){return S(this,1,a)};k.qa=function(){return L(this,2)};k.ea=function(){return Q(this,El,3)};k.O=function(a){return S(this,3,a)};k.la=function(){return this.O(void 0)};var EB=function(a){K(this,a,0,-1,null,null)};y(EB,J);EB.prototype.getName=function(){return L(this,1)};var GB=function(a){K(this,a,0,-1,FB,null)};y(GB,J);var FB=[3];k=GB.prototype;k.setRequestHeader=function(a){return S(this,1,a)};k.ia=function(){return M(this,6,1)};k.ea=function(){return Q(this,El,8)};k.O=function(a){return S(this,8,a)};k.la=function(){return this.O(void 0)};var HB=function(a){K(this,a,0,-1,null,null)};y(HB,J);var IB=function(a){K(this,a,0,-1,null,null)};y(IB,J);var KB=function(a){K(this,a,0,-1,JB,null)};y(KB,J);var LB=function(a){K(this,a,0,-1,null,null)};y(LB,J);var JB=[8,10];LB.prototype.sf=function(){return null!=L(this,2)};KB.prototype.getName=function(){return L(this,2)};var MB=function(a,b){O(a,2,b)};KB.prototype.ia=function(){return L(this,3)};var NB=function(a,b){O(a,3,b)},OB=function(a,b){wl(a,8,b)};var PB=function(a){K(this,a,0,-1,null,null)};y(PB,J);var RB=function(a){K(this,a,0,-1,QB,null)};y(RB,J);var QB=[5];RB.prototype.sc=function(){return Q(this,IB,3)};var SB=function(a){K(this,a,0,-1,null,null)};y(SB,J);SB.prototype.ia=function(){return L(this,1)};var TB=function(a){K(this,a,0,-1,null,null)};y(TB,J);TB.prototype.getId=function(){return L(this,1)};TB.prototype.ia=function(){return L(this,3)};var UB=function(a){K(this,a,0,-1,null,null)};y(UB,J);UB.prototype.zb=function(){return L(this,4)};UB.prototype.ia=function(){return L(this,9)};var WB=function(a){K(this,a,0,-1,VB,null)};y(WB,J);var XB=function(a){K(this,a,0,-1,null,null)};y(XB,J);var VB=[3,6];var ZB=function(a){K(this,a,0,-1,YB,null)};y(ZB,J);var YB=[3,4,5,6];ZB.prototype.ia=function(){return M(this,1,4)};var $B=function(a){K(this,a,0,-1,null,null)};y($B,J);$B.prototype.getChannelId=function(){return L(this,1)};$B.prototype.ye=function(){return L(this,4)};var bC=function(a){K(this,a,0,-1,aC,null)};y(bC,J);var dC=function(a){K(this,a,0,-1,cC,null)};y(dC,J);var aC=[3,4,5,6,10,16],cC=[2];bC.prototype.j=function(){return L(this,1)};bC.prototype.o=function(a){return O(this,1,a)};var eC=function(a,b){wl(a,3,b)},fC=function(a,b){O(a,6,b||[])};bC.prototype.Kh=function(){return Q(this,dC,17)};var hC=function(a){K(this,a,0,-1,gC,null)};y(hC,J);var gC=[4];hC.prototype.setRequestHeader=function(a){return S(this,1,a)};hC.prototype.ea=function(){return Q(this,El,3)};hC.prototype.O=function(a){return S(this,3,a)};hC.prototype.la=function(){return this.O(void 0)};var iC=function(a){K(this,a,0,-1,null,null)};y(iC,J);iC.prototype.setRequestHeader=function(a){return S(this,1,a)};iC.prototype.ea=function(){return Q(this,El,3)};iC.prototype.O=function(a){return S(this,3,a)};iC.prototype.la=function(){return this.O(void 0)};var jC=function(a){K(this,a,0,-1,null,null)};y(jC,J);var kC=function(a){K(this,a,0,-1,null,null)};y(kC,J);var lC=function(a){K(this,a,0,-1,null,null)};y(lC,J);var nC=function(a){K(this,a,0,-1,mC,null)};y(nC,J);var oC=function(a){K(this,a,0,-1,null,null)};y(oC,J);var pC=function(a){K(this,a,0,-1,null,null)};y(pC,J);kC.prototype.lc=function(){return ml(this,1)};var mC=[3];k=jC.prototype;k.qa=function(){return L(this,1)};k.Un=function(a){return O(this,1,a)};k.Y=function(){return L(this,2)};
k.qk=function(a){return O(this,2,a)};k.za=function(){return L(this,3)};k.Vn=function(a){return O(this,3,a)};k.ia=function(){return L(this,4)};var rC=function(a){K(this,a,0,-1,qC,null)};y(rC,J);var qC=[4];rC.prototype.setRequestHeader=function(a){return S(this,1,a)};rC.prototype.ea=function(){return Q(this,El,3)};rC.prototype.O=function(a){return S(this,3,a)};rC.prototype.la=function(){return this.O(void 0)};var sC=function(a){K(this,a,0,-1,null,null)};y(sC,J);k=sC.prototype;k.setRequestHeader=function(a){return S(this,1,a)};k.qa=function(){return L(this,2)};k.Y=function(){return L(this,3)};k.ea=function(){return Q(this,El,4)};k.O=function(a){return S(this,4,a)};k.la=function(){return this.O(void 0)};var tC=function(a){K(this,a,0,-1,null,null)};y(tC,J);var vC=function(a){K(this,a,0,-1,uC,null)};y(vC,J);var xC=function(a){K(this,a,0,-1,wC,null)};y(xC,J);var yC=function(a){K(this,a,0,-1,null,null)};y(yC,J);var AC=function(a){K(this,a,0,-1,zC,null)};y(AC,J);var BC=function(a){K(this,a,0,-1,null,null)};y(BC,J);var CC=function(a){K(this,a,0,-1,null,null)};y(CC,J);var uC=[1,2,3],wC=[2],DC=function(a,b){O(a,1,b||[])};yC.prototype.lc=function(){return ml(this,1)};var zC=[1];
BC.prototype.setPaused=function(a){return O(this,1,a)};CC.prototype.setPaused=function(a){return O(this,1,a)};tC.prototype.o=function(){return L(this,1)};tC.prototype.j=function(a){return O(this,1,a)};tC.prototype.ia=function(){return L(this,2)};var EC=function(a,b){O(a,2,b)};k=tC.prototype;k.vu=function(){return L(this,3)};k.uk=function(a){return O(this,3,a)};k.ai=function(){return L(this,4)};k.vk=function(a){return O(this,4,a)};k.qa=function(){return L(this,5)};
k.tk=function(a){return O(this,5,a)};k.Y=function(){return L(this,6)};k.za=function(){return L(this,7)};var FC=function(a,b){S(a,13,b)};var HC=function(a){K(this,a,0,-1,GC,null)};y(HC,J);var GC=[4];HC.prototype.setRequestHeader=function(a){return S(this,1,a)};HC.prototype.ea=function(){return Q(this,El,3)};HC.prototype.O=function(a){return S(this,3,a)};HC.prototype.la=function(){return this.O(void 0)};var IC=function(a,b){return wl(a,4,b)};var JC=function(a){K(this,a,0,-1,null,null)};y(JC,J);JC.prototype.setRequestHeader=function(a){return S(this,1,a)};var KC=function(a,b){return O(a,2,b)},LC=function(a,b){return O(a,3,b)};JC.prototype.qa=function(){return L(this,4)};var MC=function(a,b){return O(a,4,b)};JC.prototype.ea=function(){return Q(this,El,5)};JC.prototype.O=function(a){return S(this,5,a)};JC.prototype.la=function(){return this.O(void 0)};var NC=function(a){K(this,a,0,-1,null,null)};y(NC,J);var OC=function(a,b){return S(a,3,b)},PC=function(a,b){return S(a,4,b)};var RC=function(a){K(this,a,0,-1,QC,null)};y(RC,J);var QC=[2];RC.prototype.setRequestHeader=function(a){return S(this,1,a)};var SC=function(a,b){wl(a,2,b)};RC.prototype.Kd=function(a){return xl(this,2,a,NC)};RC.prototype.ea=function(){return Q(this,El,3)};RC.prototype.O=function(a){return S(this,3,a)};RC.prototype.la=function(){return this.O(void 0)};var UC=function(a){K(this,a,"charp",-1,TC,null)};y(UC,J);var TC=[5];UC.messageId="charp";UC.prototype.getResponseHeader=function(){return Q(this,kB,1)};UC.prototype.ea=function(){return Q(this,El,3)};UC.prototype.O=function(a){return S(this,3,a)};UC.prototype.la=function(){return this.O(void 0)};var WC=function(a){K(this,a,"chparp",-1,VC,null)};y(WC,J);var VC=[5];WC.messageId="chparp";WC.prototype.getResponseHeader=function(){return Q(this,kB,1)};WC.prototype.ea=function(){return Q(this,El,3)};WC.prototype.O=function(a){return S(this,3,a)};WC.prototype.la=function(){return this.O(void 0)};var YC=function(a){K(this,a,"chpsrp",-1,XC,null)};y(YC,J);var XC=[2,4];YC.messageId="chpsrp";YC.prototype.getResponseHeader=function(){return Q(this,kB,1)};YC.prototype.ea=function(){return Q(this,El,3)};YC.prototype.O=function(a){return S(this,3,a)};YC.prototype.la=function(){return this.O(void 0)};var ZC=function(a){K(this,a,"chqrp",-1,null,null)};y(ZC,J);ZC.messageId="chqrp";ZC.prototype.getResponseHeader=function(){return Q(this,kB,1)};ZC.prototype.ea=function(){return Q(this,El,3)};ZC.prototype.O=function(a){return S(this,3,a)};ZC.prototype.la=function(){return this.O(void 0)};var $C=function(a){K(this,a,"chrrp",-1,null,null)};y($C,J);$C.messageId="chrrp";k=$C.prototype;k.getResponseHeader=function(){return Q(this,kB,1)};k.qa=function(){return L(this,2)};k.ea=function(){return Q(this,El,5)};k.O=function(a){return S(this,5,a)};k.la=function(){return this.O(void 0)};var aD=function(a){K(this,a,0,-1,null,null)};y(aD,J);aD.prototype.qa=function(){return L(this,7)};var cD=function(a){K(this,a,"chsearp",-1,bD,null)};y(cD,J);var bD=[4];cD.messageId="chsearp";cD.prototype.getResponseHeader=function(){return Q(this,kB,1)};cD.prototype.ea=function(){return Q(this,El,3)};cD.prototype.O=function(a){return S(this,3,a)};cD.prototype.la=function(){return this.O(void 0)};var dD=function(a){K(this,a,"chseqrp",-1,null,null)};y(dD,J);dD.messageId="chseqrp";dD.prototype.getResponseHeader=function(){return Q(this,kB,1)};dD.prototype.ea=function(){return Q(this,El,3)};dD.prototype.O=function(a){return S(this,3,a)};dD.prototype.la=function(){return this.O(void 0)};var fD=function(a){K(this,a,"chsoarp",-1,eD,null)};y(fD,J);var eD=[4];fD.messageId="chsoarp";fD.prototype.getResponseHeader=function(){return Q(this,kB,1)};fD.prototype.ea=function(){return Q(this,El,3)};fD.prototype.O=function(a){return S(this,3,a)};fD.prototype.la=function(){return this.O(void 0)};var hD=function(a){K(this,a,"chsosrp",-1,gD,null)};y(hD,J);var gD=[2];hD.messageId="chsosrp";hD.prototype.getResponseHeader=function(){return Q(this,kB,1)};hD.prototype.ea=function(){return Q(this,El,3)};hD.prototype.O=function(a){return S(this,3,a)};hD.prototype.la=function(){return this.O(void 0)};var jD=function(a){K(this,a,"chstarp",-1,iD,null)};y(jD,J);var iD=[4];jD.messageId="chstarp";jD.prototype.getResponseHeader=function(){return Q(this,kB,1)};jD.prototype.ea=function(){return Q(this,El,3)};jD.prototype.O=function(a){return S(this,3,a)};jD.prototype.la=function(){return this.O(void 0)};var lD=function(a){K(this,a,"chstsrp",-1,kD,null)};y(lD,J);var kD=[2];lD.messageId="chstsrp";lD.prototype.getResponseHeader=function(){return Q(this,kB,1)};lD.prototype.ea=function(){return Q(this,El,3)};lD.prototype.O=function(a){return S(this,3,a)};lD.prototype.la=function(){return this.O(void 0)};var mD=function(a){K(this,a,0,-1,null,null)};y(mD,J);var oD=function(a){K(this,a,"chbrp",-1,nD,null)};y(oD,J);var nD=[2];oD.messageId="chbrp";k=oD.prototype;k.getResponseHeader=function(){return Q(this,kB,1)};k.Kd=function(a){return xl(this,2,a,mD)};k.ea=function(){return Q(this,El,3)};k.O=function(a){return S(this,3,a)};k.la=function(){return this.O(void 0)};var qD=function(a){K(this,a,0,-1,pD,null)};y(qD,J);var pD=[4];qD.prototype.setRequestHeader=function(a){return S(this,1,a)};qD.prototype.ea=function(){return Q(this,El,3)};qD.prototype.O=function(a){return S(this,3,a)};qD.prototype.la=function(){return this.O(void 0)};var sD=function(a){K(this,a,"chmrp",-1,rD,null)};y(sD,J);var rD=[4];sD.messageId="chmrp";sD.prototype.getResponseHeader=function(){return Q(this,kB,1)};sD.prototype.ea=function(){return Q(this,El,3)};sD.prototype.O=function(a){return S(this,3,a)};sD.prototype.la=function(){return this.O(void 0)};var uD=function(a){K(this,a,0,-1,tD,null)};y(uD,J);var tD=[4];uD.prototype.setRequestHeader=function(a){return S(this,1,a)};uD.prototype.ea=function(){return Q(this,El,3)};uD.prototype.O=function(a){return S(this,3,a)};uD.prototype.la=function(){return this.O(void 0)};var wD=function(a){K(this,a,"chpmrp",-1,vD,null)};y(wD,J);var vD=[4];wD.messageId="chpmrp";wD.prototype.getResponseHeader=function(){return Q(this,kB,1)};wD.prototype.ea=function(){return Q(this,El,3)};wD.prototype.O=function(a){return S(this,3,a)};wD.prototype.la=function(){return this.O(void 0)};var xD=function(a){K(this,a,0,-1,null,null)};y(xD,J);k=xD.prototype;k.setRequestHeader=function(a){return S(this,1,a)};k.qa=function(){return L(this,2)};k.Y=function(){return L(this,3)};k.ea=function(){return Q(this,El,4)};k.O=function(a){return S(this,4,a)};k.la=function(){return this.O(void 0)};var yD=function(a){K(this,a,"chpqrp",-1,null,null)};y(yD,J);yD.messageId="chpqrp";yD.prototype.getResponseHeader=function(){return Q(this,kB,1)};yD.prototype.ea=function(){return Q(this,El,3)};yD.prototype.O=function(a){return S(this,3,a)};yD.prototype.la=function(){return this.O(void 0)};var zD=function(a){K(this,a,0,-1,null,null)};y(zD,J);zD.prototype.qa=function(){return L(this,1)};zD.prototype.j=function(a){return O(this,1,a)};zD.prototype.Y=function(){return L(this,2)};zD.prototype.o=function(a){return O(this,2,a)};var BD=function(a){K(this,a,0,-1,AD,null)};y(BD,J);var AD=[6,7];k=BD.prototype;k.setRequestHeader=function(a){return S(this,1,a)};k.qa=function(){return L(this,2)};k.Y=function(){return L(this,3)};k.ea=function(){return Q(this,El,4)};k.O=function(a){return S(this,4,a)};k.la=function(){return this.O(void 0)};var CD=function(a,b){return wl(a,7,b)};var DD=function(a){K(this,a,"chprrp",-1,null,null)};y(DD,J);DD.messageId="chprrp";DD.prototype.getResponseHeader=function(){return Q(this,kB,1)};DD.prototype.ea=function(){return Q(this,El,2)};DD.prototype.O=function(a){return S(this,2,a)};DD.prototype.la=function(){return this.O(void 0)};var ED=function(a){K(this,a,0,-1,null,null)};y(ED,J);k=ED.prototype;k.qa=function(){return L(this,1)};k.qu=function(a){return O(this,1,a)};k.Y=function(){return L(this,2)};k.ru=function(a){return O(this,2,a)};k.za=function(){return L(this,3)};k.su=function(a){return O(this,3,a)};var GD=function(a){K(this,a,0,-1,FD,null)};y(GD,J);var FD=[3];GD.prototype.qa=function(){return L(this,1)};var ID=function(a){K(this,a,0,-1,HD,null)};y(ID,J);var HD=[4];ID.prototype.setRequestHeader=function(a){return S(this,1,a)};ID.prototype.ea=function(){return Q(this,El,3)};ID.prototype.O=function(a){return S(this,3,a)};ID.prototype.la=function(){return this.O(void 0)};var KD=function(a){K(this,a,"chstmrp",-1,JD,null)};y(KD,J);var JD=[4];KD.messageId="chstmrp";KD.prototype.getResponseHeader=function(){return Q(this,kB,1)};KD.prototype.ea=function(){return Q(this,El,3)};KD.prototype.O=function(a){return S(this,3,a)};KD.prototype.la=function(){return this.O(void 0)};var LD=function(a){K(this,a,0,-1,null,null)};y(LD,J);var MD=function(a,b){var c=L(a,1);null!=c&&H(b,1,c);c=L(a,2);null!=c&&F(b,2,c);c=L(a,3);null!=c&&F(b,3,c);c=L(a,4);null!=c&&F(b,4,c)};LD.prototype.Na=function(){return L(this,2)};var ND=function(a){K(this,a,0,-1,null,null)};y(ND,J);var OD=function(a,b){var c=L(a,1);null!=c&&b.g(1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,5);null!=c&&b.g(5,c)};ND.prototype.wa=function(){return L(this,5)};var PD=function(a){K(this,a,0,-1,null,null)};y(PD,J);var QD=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&F(b,2,c);c=Q(a,ND,3);null!=c&&I(b,3,c,OD);c=Q(a,ND,4);null!=c&&I(b,4,c,OD);c=L(a,5);null!=c&&F(b,5,c);c=Q(a,ND,6);null!=c&&I(b,6,c,OD)};var RD=function(a){K(this,a,0,-1,null,null)};y(RD,J);var SD=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,5);null!=c&&Tk(b,5,c);c=L(a,6);null!=c&&Tk(b,6,c);c=L(a,9);null!=c&&Vk(b,9,c);c=L(a,10);null!=c&&Vk(b,10,c)};var UD=function(a){K(this,a,0,-1,TD,null)};y(UD,J);var TD=[1],VD=function(a,b){var c=L(a,1);0<c.length&&Xk(b,1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,5);null!=c&&b.g(5,c);c=L(a,6);null!=c&&b.g(6,c);c=L(a,7);null!=c&&b.g(7,c);c=L(a,8);null!=c&&b.g(8,c);c=L(a,9);null!=c&&b.g(9,c);c=L(a,10);null!=c&&Tk(b,10,c);c=L(a,11);null!=c&&Tk(b,11,c);c=L(a,12);null!=c&&Tk(b,12,c);c=L(a,13);null!=c&&Tk(b,13,c)};var XD=function(a){K(this,a,0,-1,WD,null)};y(XD,J);var WD=[2],YD=function(a,b){var c=L(a,1);null!=c&&b.g(1,c);c=L(a,2);0<c.length&&Xk(b,2,c)};var ZD=function(a){K(this,a,0,-1,null,null)};y(ZD,J);var $D=function(a,b){var c=a.getSeconds();0!==c&&Tk(b,1,c);c=M(a,2,0);0!==c&&b.g(2,c)};ZD.prototype.getSeconds=function(){return M(this,1,0)};ZD.prototype.setSeconds=function(a){return ql(this,1,a,0)};var aE=function(a){K(this,a,0,-1,null,null)};y(aE,J);var bE=function(a,b){var c=a.getSeconds();0!==c&&Tk(b,1,c);c=M(a,2,0);0!==c&&b.g(2,c)};aE.prototype.getSeconds=function(){return M(this,1,0)};aE.prototype.setSeconds=function(a){return ql(this,1,a,0)};var cE=function(a){K(this,a,0,-1,null,null)};y(cE,J);var dE=function(a,b){var c=L(a,1);null!=c&&b.g(1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,5);null!=c&&b.g(5,c);c=L(a,6);null!=c&&b.g(6,c)};var eE=function(a){K(this,a,0,-1,null,null)};y(eE,J);var fE=function(a,b){var c=L(a,1);null!=c&&b.g(1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,5);null!=c&&b.g(5,c);c=L(a,6);null!=c&&b.g(6,c);c=L(a,7);null!=c&&b.g(7,c)};var gE=function(a){K(this,a,0,-1,null,null)};y(gE,J);var hE=function(a,b){var c=Q(a,aE,1);null!=c&&I(b,1,c,bE);c=Q(a,aE,2);null!=c&&I(b,2,c,bE);c=L(a,3);null!=c&&Vk(b,3,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,5);null!=c&&b.g(5,c);c=L(a,6);null!=c&&Vk(b,6,c);c=L(a,7);null!=c&&Vk(b,7,c)};var jE=function(a){K(this,a,0,-1,iE,null)};y(jE,J);
var iE=[20],kE=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&Vk(b,2,c);c=L(a,3);null!=c&&Vk(b,3,c);c=L(a,4);null!=c&&Vk(b,4,c);c=L(a,5);null!=c&&Vk(b,5,c);c=L(a,6);null!=c&&Vk(b,6,c);c=Q(a,aE,7);null!=c&&I(b,7,c,bE);c=Q(a,aE,8);null!=c&&I(b,8,c,bE);c=L(a,9);null!=c&&Tk(b,9,c);c=L(a,10);null!=c&&Tk(b,10,c);c=L(a,11);if(null!=c&&null!=c){Ok(b,11,1);var d=b.h;nk(c);Mk(d,jk);Mk(d,kk)}c=L(a,12);null!=c&&b.g(12,c);c=Q(a,aE,13);null!=c&&I(b,13,c,bE);c=Q(a,aE,14);null!=c&&I(b,14,c,bE);c=
L(a,15);null!=c&&Vk(b,15,c);c=Q(a,cE,17);null!=c&&I(b,17,c,dE);c=Q(a,gE,18);null!=c&&I(b,18,c,hE);c=Q(a,eE,19);null!=c&&I(b,19,c,fE);c=nl(a,20);if(0<c.length&&null!=c)for(d=0;d<c.length;d++)Vk(b,20,c[d]);c=L(a,21);null!=c&&b.g(21,c);c=L(a,22);null!=c&&Tk(b,22,c);c=L(a,23);null!=c&&b.g(23,c);c=L(a,24);null!=c&&b.g(24,c)};var lE=function(a){K(this,a,0,-1,null,null)};y(lE,J);var mE=function(a,b){var c=L(a,1);null!=c&&H(b,1,c);c=L(a,2);null!=c&&H(b,2,c);c=L(a,3);null!=c&&b.g(3,c)};var nE=function(a){K(this,a,0,-1,null,null)};y(nE,J);var oE=function(a,b){var c=L(a,1);null!=c&&Tk(b,1,c);c=L(a,2);null!=c&&Tk(b,2,c);c=L(a,4);null!=c&&F(b,4,c);c=L(a,5);null!=c&&F(b,5,c);c=L(a,6);null!=c&&F(b,6,c);c=Q(a,aE,7);null!=c&&I(b,7,c,bE)};nE.prototype.getState=function(){return L(this,6)};var pE=function(a){K(this,a,0,-1,null,null)};y(pE,J);var qE=function(a,b){var c=L(a,1);if(null!=c&&null!=c){c=sk(c);Ok(b,1,2);Kk(b.h,c.length);var d=b.h.end();b.l.push(d);b.l.push(c);b.j+=d.length+c.length}c=L(a,2);null!=c&&b.m(2,c)};pE.prototype.Gc=function(){return L(this,1)};pE.prototype.zb=function(){return L(this,2)};var rE=function(a){K(this,a,0,-1,null,null)};y(rE,J);var sE=function(a,b){a=L(a,1);null!=a&&b.g(1,a)};var uE=function(a){K(this,a,0,-1,null,tE)};y(uE,J);var tE=[[6]],vE=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&Tk(b,3,c);c=Q(a,rE,6);null!=c&&I(b,6,c,sE)};var xE=function(a){K(this,a,0,-1,wE,null)};y(xE,J);var wE=[1],yE=function(a,b){var c=R(a,uE,1);0<c.length&&Zk(b,1,c,vE);c=Q(a,pE,2);null!=c&&I(b,2,c,qE);c=Q(a,pE,3);null!=c&&I(b,3,c,qE);c=L(a,4);null!=c&&F(b,4,c);c=Q(a,nE,5);null!=c&&I(b,5,c,oE)};var zE=function(a){K(this,a,0,-1,null,null)};y(zE,J);var AE=function(a,b){var c=L(a,1);null!=c&&b.m(1,c);c=L(a,6);null!=c&&b.g(6,c);c=L(a,2);null!=c&&Uk(b,2,c);a.g||(a.g={});c=3 in a.g?a.g[3]:(c=L(a,3))?a.g[3]=new el(c):void 0;if(c&&0<fl(c).length){var d=Nk.prototype.m,e=Nk.prototype.g,f=fl(c);f.sort();for(var g=0;g<f.length;g++){var h=c.g[f[g]];b.w.push(Pk(b,3));d.call(b,1,h.key);e.call(b,2,h.value);Qk(b,b.w.pop())}}c=L(a,4);null!=c&&b.g(4,c);c=Q(a,aE,5);null!=c&&I(b,5,c,bE)};var DE=function(a){K(this,a,0,-1,BE,CE)};y(DE,J);var BE=[6],CE=[[1,2]],EE=function(a,b){var c=Q(a,lE,1);null!=c&&I(b,1,c,mE);c=L(a,2);null!=c&&H(b,2,c);c=Q(a,ZD,3);null!=c&&I(b,3,c,$D);c=L(a,4);null!=c&&F(b,4,c);c=L(a,5);null!=c&&F(b,5,c);c=R(a,xE,6);0<c.length&&Zk(b,6,c,yE);c=Q(a,zE,7);null!=c&&I(b,7,c,AE);c=Q(a,jE,8);null!=c&&I(b,8,c,kE)};var GE=function(a){K(this,a,0,-1,FE,null)};y(GE,J);var IE=function(a){K(this,a,0,-1,HE,null)};y(IE,J);var KE=function(a){K(this,a,0,-1,JE,null)};y(KE,J);var LE=function(a){K(this,a,0,-1,null,null)};y(LE,J);var NE=function(a){K(this,a,0,-1,ME,null)};y(NE,J);var OE=function(a){K(this,a,0,-1,null,null)};y(OE,J);var QE=function(a){K(this,a,0,-1,PE,null)};y(QE,J);var RE=function(a){K(this,a,0,-1,null,null)};y(RE,J);var TE=function(a){K(this,a,0,-1,SE,null)};y(TE,J);
var VE=function(a){K(this,a,0,-1,UE,null)};y(VE,J);var WE=function(a){K(this,a,0,-1,null,null)};y(WE,J);var XE=function(a){K(this,a,0,-1,null,null)};y(XE,J);var YE=function(a){K(this,a,0,-1,null,null)};y(YE,J);var $E=function(a){K(this,a,0,-1,ZE,null)};y($E,J);var aF=function(a){K(this,a,0,-1,null,null)};y(aF,J);
var FE=[5,52,182],fF=function(a,b){var c=L(a,1);null!=c&&H(b,1,c);c=L(a,2);null!=c&&H(b,2,c);c=L(a,133);null!=c&&Tk(b,133,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,105);null!=c&&F(b,105,c);c=L(a,107);null!=c&&Tk(b,107,c);c=L(a,104);null!=c&&Tk(b,104,c);c=L(a,4);null!=c&&H(b,4,c);c=L(a,43);null!=c&&H(b,43,c);c=R(a,IE,5);0<c.length&&$k(b,5,c,bF);c=L(a,28);null!=c&&E(b,28,c);c=L(a,29);null!=c&&b.g(29,c);c=L(a,30);null!=c&&b.g(30,c);c=L(a,112);null!=c&&H(b,112,c);c=L(a,106);null!=c&&b.g(106,c);c=L(a,100);null!=
c&&H(b,100,c);c=L(a,68);null!=c&&b.g(68,c);c=Q(a,YE,69);null!=c&&I(b,69,c,cF);c=L(a,42);null!=c&&Tk(b,42,c);c=R(a,$E,52);0<c.length&&Zk(b,52,c,dF);c=Q(a,aF,135);null!=c&&I(b,135,c,eF);c=L(a,170);null!=c&&F(b,170,c);c=R(a,DE,182);0<c.length&&Zk(b,182,c,EE)},HE=[2,13,154,200],bF=function(a,b){var c=L(a,1);null!=c&&b.g(6,c);c=L(a,113);null!=c&&b.g(118,c);c=L(a,118);null!=c&&b.g(123,c);c=L(a,162);null!=c&&F(b,167,c);c=L(a,174);null!=c&&F(b,179,c);c=Q(a,XD,207);null!=c&&I(b,212,c,YD);c=Q(a,XD,208);null!=
c&&I(b,213,c,YD);c=Q(a,UD,221);null!=c&&I(b,226,c,VD);c=gF(a);0<c.length&&$k(b,7,c,hF);c=iF(a);0<c.length&&$k(b,18,c,jF);c=L(a,34);null!=c&&b.g(39,c);c=L(a,92);null!=c&&b.g(97,c);c=L(a,94);null!=c&&b.g(99,c);c=L(a,93);null!=c&&b.g(98,c);c=L(a,35);null!=c&&b.g(40,c);c=L(a,36);null!=c&&b.g(41,c);c=L(a,189);null!=c&&Vk(b,194,c);c=L(a,54);null!=c&&b.g(59,c);c=L(a,66);null!=c&&F(b,71,c);c=L(a,71);null!=c&&Vk(b,76,c);c=L(a,72);null!=c&&b.g(77,c);c=L(a,73);null!=c&&b.g(78,c);c=L(a,74);null!=c&&E(b,79,c);
c=L(a,75);null!=c&&b.g(80,c);c=Q(a,TE,129);null!=c&&I(b,134,c,kF);c=L(a,150);null!=c&&Tk(b,155,c);c=L(a,151);null!=c&&Tk(b,156,c);c=R(a,RD,154);0<c.length&&Zk(b,159,c,SD);c=Q(a,WE,183);null!=c&&I(b,188,c,lF);c=R(a,XE,200);0<c.length&&Zk(b,205,c,mF);c=L(a,211);null!=c&&b.g(216,c);c=L(a,212);null!=c&&Tk(b,217,c);c=L(a,213);null!=c&&Tk(b,218,c);c=L(a,214);null!=c&&Tk(b,219,c);c=L(a,217);null!=c&&Tk(b,222,c);c=L(a,218);null!=c&&Tk(b,223,c);c=L(a,219);null!=c&&Tk(b,224,c);c=L(a,220);null!=c&&Tk(b,225,
c)},JE=[169,178,153,214,53,136,54,174,176,157,208,158,190,135,141,142,150],hF=function(a,b){var c=L(a,1);null!=c&&F(b,8,c);c=L(a,169);0<c.length&&Yk(b,176,c);c=L(a,2);null!=c&&b.g(9,c);c=L(a,3);null!=c&&b.g(10,c);c=L(a,4);null!=c&&b.g(11,c);c=L(a,5);null!=c&&b.g(12,c);c=L(a,6);null!=c&&b.g(13,c);c=L(a,178);0<c.length&&al(b,185,c);c=L(a,7);null!=c&&Tk(b,14,c);c=L(a,8);null!=c&&b.g(15,c);c=L(a,9);null!=c&&Tk(b,16,c);c=L(a,10);null!=c&&b.g(17,c);c=L(a,24);null!=c&&F(b,31,c);c=L(a,184);null!=c&&F(b,191,
c);c=L(a,185);null!=c&&b.g(192,c);c=L(a,25);null!=c&&Uk(b,32,c);c=L(a,117);null!=c&&Vk(b,124,c);c=L(a,26);null!=c&&b.g(33,c);c=Q(a,ND,140);null!=c&&I(b,147,c,OD);c=L(a,188);null!=c&&Vk(b,195,c);c=Q(a,ND,189);null!=c&&I(b,196,c,OD);c=L(a,27);null!=c&&b.g(34,c);c=L(a,151);null!=c&&b.g(158,c);c=L(a,28);null!=c&&b.g(35,c);c=L(a,29);null!=c&&b.g(36,c);c=L(a,30);null!=c&&b.g(37,c);c=L(a,197);null!=c&&b.g(204,c);c=L(a,31);null!=c&&b.g(38,c);c=L(a,50);null!=c&&Vk(b,57,c);c=L(a,87);null!=c&&Vk(b,94,c);c=L(a,
51);null!=c&&Vk(b,58,c);c=L(a,88);null!=c&&Vk(b,95,c);c=L(a,37);null!=c&&b.g(44,c);c=L(a,38);null!=c&&b.g(45,c);c=L(a,39);null!=c&&b.g(46,c);c=L(a,40);null!=c&&b.g(47,c);c=L(a,41);null!=c&&b.g(48,c);c=L(a,42);null!=c&&b.g(49,c);c=L(a,43);null!=c&&b.g(50,c);c=L(a,124);null!=c&&b.g(131,c);c=L(a,125);null!=c&&b.g(132,c);c=L(a,96);null!=c&&b.g(103,c);c=L(a,80);null!=c&&b.g(87,c);c=L(a,44);null!=c&&H(b,51,c);c=L(a,94);null!=c&&H(b,101,c);c=L(a,143);null!=c&&H(b,150,c);c=L(a,46);null!=c&&b.g(53,c);c=L(a,
47);null!=c&&b.g(54,c);c=L(a,48);null!=c&&b.g(55,c);c=L(a,49);null!=c&&b.g(56,c);c=L(a,63);null!=c&&Vk(b,70,c);c=L(a,129);null!=c&&Vk(b,136,c);c=L(a,133);null!=c&&Vk(b,140,c);c=L(a,153);0<c.length&&al(b,160,c);c=L(a,154);null!=c&&b.g(161,c);c=L(a,155);null!=c&&Tk(b,162,c);c=L(a,213);null!=c&&b.g(220,c);c=nl(a,214);0<c.length&&bl(b,221,c);c=nF(a);0<c.length&&Xk(b,60,c);c=oF(a);0<c.length&&Zk(b,143,c,pF);c=R(a,NE,54);0<c.length&&$k(b,61,c,qF);c=L(a,174);0<c.length&&Yk(b,181,c);c=R(a,VE,176);0<c.length&&
Zk(b,183,c,rF);c=L(a,57);null!=c&&b.g(64,c);c=L(a,58);null!=c&&b.g(65,c);c=L(a,144);null!=c&&b.g(151,c);c=L(a,145);null!=c&&b.g(152,c);c=L(a,114);null!=c&&b.g(121,c);c=L(a,115);null!=c&&b.g(122,c);c=L(a,159);null!=c&&b.g(166,c);c=L(a,113);null!=c&&b.g(120,c);c=L(a,139);null!=c&&b.g(146,c);c=L(a,78);null!=c&&b.g(85,c);c=L(a,79);null!=c&&b.g(86,c);c=L(a,59);null!=c&&E(b,66,c);c=L(a,173);null!=c&&F(b,180,c);c=L(a,60);null!=c&&E(b,67,c);c=L(a,65);null!=c&&b.g(72,c);c=L(a,95);null!=c&&b.g(102,c);c=L(a,
194);null!=c&&b.g(201,c);c=Q(a,OE,196);null!=c&&I(b,203,c,sF);c=L(a,68);null!=c&&Vk(b,75,c);c=L(a,103);null!=c&&Vk(b,110,c);c=L(a,207);null!=c&&Vk(b,214,c);c=L(a,106);null!=c&&Vk(b,113,c);c=L(a,107);null!=c&&Vk(b,114,c);c=L(a,104);null!=c&&Vk(b,111,c);c=L(a,156);null!=c&&Vk(b,163,c);c=nl(a,157);0<c.length&&bl(b,164,c);c=nl(a,208);0<c.length&&bl(b,215,c);c=L(a,158);0<c.length&&al(b,165,c);c=nl(a,190);0<c.length&&bl(b,197,c);c=L(a,74);null!=c&&b.g(81,c);c=L(a,165);null!=c&&Tk(b,172,c);c=L(a,170);if(null!=
c&&null!=c){Ok(b,177,1);var d=b.h;nk(c);Mk(d,jk);Mk(d,kk)}c=L(a,171);null!=c&&Tk(b,178,c);c=L(a,166);null!=c&&Tk(b,173,c);c=L(a,167);null!=c&&Tk(b,174,c);c=L(a,168);null!=c&&Tk(b,175,c);c=L(a,75);null!=c&&b.g(82,c);c=L(a,76);null!=c&&b.g(83,c);c=L(a,77);null!=c&&b.g(84,c);c=L(a,81);null!=c&&b.g(88,c);c=L(a,82);null!=c&&b.g(89,c);c=L(a,83);null!=c&&b.g(90,c);c=L(a,84);null!=c&&b.g(91,c);c=L(a,85);null!=c&&b.g(92,c);c=L(a,86);null!=c&&b.g(93,c);c=L(a,134);null!=c&&b.g(141,c);c=L(a,89);null!=c&&b.g(96,
c);c=L(a,112);null!=c&&b.g(119,c);c=L(a,118);null!=c&&b.g(125,c);c=L(a,119);null!=c&&b.g(126,c);c=Q(a,ND,132);null!=c&&I(b,139,c,OD);c=Q(a,ND,120);null!=c&&I(b,127,c,OD);c=Q(a,ND,121);null!=c&&I(b,128,c,OD);c=Q(a,ND,146);null!=c&&I(b,153,c,OD);c=Q(a,ND,122);null!=c&&I(b,129,c,OD);c=Q(a,ND,123);null!=c&&I(b,130,c,OD);c=Q(a,ND,147);null!=c&&I(b,154,c,OD);c=L(a,138);null!=c&&b.g(145,c);c=Q(a,ND,137);null!=c&&I(b,144,c,OD);c=L(a,108);null!=c&&b.g(115,c);c=L(a,109);null!=c&&b.g(116,c);c=L(a,110);null!=
c&&b.g(117,c);c=L(a,130);null!=c&&Tk(b,137,c);c=L(a,131);null!=c&&Tk(b,138,c);c=L(a,182);null!=c&&b.g(189,c);c=L(a,183);null!=c&&b.g(190,c);c=L(a,191);null!=c&&b.g(198,c);c=L(a,192);null!=c&&b.g(199,c);c=L(a,193);null!=c&&b.g(200,c);c=L(a,135);0<c.length&&Wk(b,142,c);c=L(a,141);0<c.length&&Wk(b,148,c);c=L(a,142);0<c.length&&Wk(b,149,c);c=L(a,150);0<c.length&&Wk(b,157,c);c=Q(a,PD,180);null!=c&&I(b,187,c,QD);c=Q(a,ND,195);null!=c&&I(b,202,c,OD)},pF=function(a,b){var c=L(a,1);null!=c&&Tk(b,1,c);c=L(a,
2);null!=c&&Tk(b,2,c);c=L(a,3);null!=c&&Uk(b,3,c)},ME=[2],qF=function(a,b){var c=L(a,1);null!=c&&H(b,62,c);c=L(a,2);0<c.length&&Xk(b,63,c)},sF=function(a,b){a=L(a,1);null!=a&&b.g(1,a)},tF=function(a){return L(a,1)},uF=function(a,b){return O(a,2,b)},vF=function(a,b){O(a,5,b)},wF=function(a,b){O(a,6,b)};KE.prototype.G=function(a){return O(this,178,a||[])};var xF=function(a){return L(a,24)},yF=function(a,b){O(a,184,b)},zF=function(a){return L(a,25)},AF=function(a,b){O(a,26,b)};
KE.prototype.H=function(a){return S(this,140,a)};var BF=function(a,b){O(a,29,b)},CF=function(a,b){O(a,30,b)},DF=function(a,b){O(a,31,b)},EF=function(a,b){O(a,37,b)},FF=function(a,b){return O(a,42,b)},GF=function(a,b){return O(a,96,b)},nF=function(a){return L(a,53)},oF=function(a){return R(a,LE,136)};KE.prototype.C=function(a){return wl(this,136,a)};var HF=function(a,b){O(a,57,b)},IF=function(a,b){O(a,58,b)},JF=function(a,b){O(a,59,b)},KF=function(a,b){O(a,173,b)};k=KE.prototype;
k.hi=function(a){return O(this,68,a)};k.pi=function(a){return O(this,103,a)};k.Tv=function(a){return O(this,207,a)};k.mi=function(a){return O(this,106,a)};k.fi=function(a){return O(this,107,a)};k.ni=function(a){return O(this,104,a)};k.oi=function(a){return O(this,156,a)};k.hw=function(a){return O(this,157,a||[])};k.Uv=function(a){return O(this,208,a||[])};k.Xv=function(a){return O(this,158,a||[])};k.cw=function(a){return S(this,132,a)};k.Wv=function(a){return S(this,121,a)};
k.gw=function(a){return S(this,146,a)};k.Vv=function(a){return S(this,122,a)};k.dw=function(a){return S(this,147,a)};k.Yv=function(a){return S(this,137,a)};
var PE=[168,175],jF=function(a,b){var c=L(a,1);null!=c&&b.g(19,c);c=L(a,2);null!=c&&b.g(20,c);c=L(a,3);null!=c&&b.g(21,c);c=L(a,168);0<c.length&&al(b,186,c);c=L(a,4);null!=c&&Tk(b,22,c);c=L(a,5);null!=c&&b.g(23,c);c=L(a,90);null!=c&&b.g(108,c);c=L(a,91);null!=c&&b.g(109,c);c=L(a,6);null!=c&&Tk(b,24,c);c=L(a,7);null!=c&&b.g(25,c);c=L(a,150);null!=c&&b.g(168,c);c=L(a,151);null!=c&&b.g(169,c);c=L(a,188);null!=c&&Tk(b,206,c);c=L(a,189);null!=c&&Tk(b,207,c);c=L(a,192);null!=c&&Tk(b,210,c);c=L(a,193);null!=
c&&Tk(b,211,c);c=L(a,190);null!=c&&Vk(b,208,c);c=L(a,191);null!=c&&Vk(b,209,c);c=L(a,153);null!=c&&b.g(171,c);c=Q(a,LD,8,1);null!=c&&I(b,26,c,MD);c=Q(a,LD,9,1);null!=c&&I(b,27,c,MD);c=L(a,55);null!=c&&b.g(73,c);c=Q(a,RE,56);null!=c&&I(b,74,c,LF);c=R(a,VE,175);0<c.length&&Zk(b,193,c,rF)},LF=function(a,b){var c=L(a,1);null!=c&&b.g(1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&b.g(4,c)},MF=function(a,b){O(a,1,b)},NF=function(a,b){O(a,2,b)},OF=function(a,b){O(a,3,b)};
QE.prototype.j=function(a){return O(this,168,a||[])};
var SE=[3],kF=function(a,b){var c=L(a,1);null!=c&&b.g(1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);0<c.length&&Wk(b,3,c)},UE=[1],rF=function(a,b){var c=L(a,1);0<c.length&&Yk(b,1,c);c=L(a,2);null!=c&&H(b,2,c)},lF=function(a,b){a=L(a,1);null!=a&&E(b,1,a)},mF=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&b.g(3,c)},gF=function(a){return R(a,KE,2)},PF=function(a,b){wl(a,2,b)},iF=function(a){return R(a,QE,13)},cF=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,
2);null!=c&&Tk(b,2,c)},ZE=[3,4],dF=function(a,b){var c=L(a,1);null!=c&&H(b,1,c);c=L(a,2);null!=c&&H(b,2,c);c=L(a,3);0<c.length&&Xk(b,3,c);c=L(a,4);0<c.length&&Xk(b,4,c)},eF=function(a,b){var c=L(a,1);null!=c&&H(b,1,c);c=L(a,2);null!=c&&F(b,2,c)};var QF=function(a){K(this,a,0,-1,null,null)};y(QF,J);var RF=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&Tk(b,2,c)};var TF=function(a){K(this,a,0,-1,null,SF)};y(TF,J);var UF=function(a){K(this,a,0,-1,null,null)};y(UF,J);var VF=function(a){K(this,a,0,-1,null,null)};y(VF,J);var SF=[[1,2]],YF=function(a,b){var c=Q(a,UF,1);null!=c&&I(b,1,c,WF);c=Q(a,VF,2);null!=c&&I(b,2,c,XF)},WF=function(a,b){a=L(a,1);null!=a&&F(b,1,a)},XF=function(a,b){a=L(a,1);null!=a&&F(b,1,a)};var ZF=function(a){K(this,a,0,-1,null,null)};y(ZF,J);var $F=function(a){K(this,a,0,-1,null,null)};y($F,J);var bG=function(a,b){var c=Q(a,$F,1);null!=c&&I(b,1,c,aG);c=Q(a,$F,2);null!=c&&I(b,2,c,aG);c=L(a,3);null!=c&&F(b,3,c);c=Q(a,TF,4);null!=c&&I(b,4,c,YF);c=L(a,5);null!=c&&E(b,5,c)},aG=function(a,b){var c=L(a,1);null!=c&&H(b,1,c);c=L(a,2);null!=c&&H(b,2,c);c=L(a,3);null!=c&&H(b,3,c)};var cG=function(a){K(this,a,0,-1,null,null)};y(cG,J);var dG=function(a,b){var c=L(a,1);null!=c&&H(b,1,c);c=L(a,2);null!=c&&H(b,2,c);c=L(a,3);null!=c&&E(b,3,c);c=L(a,4);null!=c&&H(b,4,c);c=L(a,5);null!=c&&H(b,5,c);c=L(a,6);null!=c&&H(b,6,c);c=L(a,7);null!=c&&F(b,7,c)};cG.prototype.qa=function(){return L(this,6)};var eG=function(a){K(this,a,0,-1,null,null)};y(eG,J);var fG=function(a,b){var c=L(a,1);null!=c&&H(b,1,c);c=L(a,2);null!=c&&H(b,2,c);c=L(a,3);null!=c&&H(b,3,c);c=L(a,4);null!=c&&H(b,4,c);c=L(a,5);null!=c&&H(b,5,c)};var gG=function(a){K(this,a,0,-1,null,null)};y(gG,J);var hG=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=Q(a,cG,2);null!=c&&I(b,2,c,dG);c=Q(a,ZF,6);null!=c&&I(b,6,c,bG);c=L(a,3);null!=c&&H(b,3,c);c=L(a,11);null!=c&&H(b,11,c);c=L(a,4);null!=c&&H(b,4,c);c=L(a,5);null!=c&&b.g(5,c);c=L(a,7);null!=c&&Tk(b,7,c);c=L(a,8);null!=c&&H(b,8,c);c=Q(a,QF,12);null!=c&&I(b,12,c,RF);c=L(a,9);null!=c&&F(b,9,c);c=L(a,10);null!=c&&F(b,10,c);c=L(a,13);null!=c&&E(b,13,c);c=Q(a,eG,14);null!=c&&I(b,14,c,fG)};var jG=function(a){K(this,a,0,-1,iG,null)};y(jG,J);var kG=function(a){K(this,a,0,-1,null,null)};y(kG,J);var lG=function(a){K(this,a,0,-1,null,null)};y(lG,J);
var iG=[5,8,9],oG=function(a,b){var c=L(a,1);null!=c&&H(b,1,c);c=L(a,2);null!=c&&H(b,2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&b.g(4,c);c=R(a,kG,5);0<c.length&&$k(b,5,c,mG);c=R(a,lG,8);0<c.length&&Zk(b,8,c,nG);c=L(a,9);if(0<c.length&&(a=c,null!=a))for(c=0;c<a.length;c++)F(b,9,a[c])},mG=function(a,b){var c=L(a,1);null!=c&&H(b,6,c);c=L(a,2);null!=c&&H(b,7,c)},nG=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&H(b,2,c)};var qG=function(a){K(this,a,0,-1,pG,null)};y(qG,J);var sG=function(a){K(this,a,0,-1,rG,null)};y(sG,J);var tG=function(a){K(this,a,0,-1,null,null)};y(tG,J);
var pG=[1],vG=function(a,b){var c=R(a,sG,1);0<c.length&&$k(b,1,c,uG);c=L(a,15);null!=c&&F(b,15,c);c=L(a,16);null!=c&&b.g(16,c);c=L(a,17);null!=c&&b.g(17,c);c=Q(a,RE,18);null!=c&&I(b,18,c,LF)},rG=[8,9,10,11,12,13],uG=function(a,b){var c=L(a,1);null!=c&&H(b,2,c);c=L(a,2);null!=c&&H(b,3,c);c=L(a,3);null!=c&&H(b,4,c);c=L(a,4);null!=c&&H(b,5,c);c=L(a,5);null!=c&&H(b,6,c);c=L(a,6);null!=c&&F(b,7,c);c=L(a,7);null!=c&&F(b,8,c);c=R(a,tG,8);0<c.length&&Zk(b,9,c,wG);c=R(a,tG,9);0<c.length&&Zk(b,10,c,wG);c=R(a,
tG,10);0<c.length&&Zk(b,11,c,wG);c=R(a,tG,11);0<c.length&&Zk(b,12,c,wG);c=R(a,tG,12);0<c.length&&Zk(b,13,c,wG);c=R(a,tG,13);0<c.length&&Zk(b,14,c,wG)},wG=function(a,b){var c=L(a,1);null!=c&&b.g(1,c);c=L(a,2);null!=c&&b.g(2,c)};var xG=function(a){K(this,a,0,-1,null,null)};y(xG,J);var yG=function(a){K(this,a,0,-1,null,null)};y(yG,J);
var AG=function(a,b){var c=L(a,1);null!=c&&H(b,1,c);c=L(a,2);null!=c&&H(b,2,c);c=L(a,3);null!=c&&H(b,3,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,5);null!=c&&b.g(5,c);c=Q(a,yG,6);null!=c&&I(b,6,c,zG);c=L(a,7);null!=c&&H(b,7,c)},zG=function(a,b){var c=L(a,1);null!=c&&E(b,1,c);c=L(a,51);null!=c&&E(b,51,c);c=L(a,4);null!=c&&E(b,4,c);c=L(a,61);null!=c&&F(b,61,c);c=L(a,7);null!=c&&E(b,7,c);c=L(a,109);null!=c&&E(b,109,c);c=L(a,14);null!=c&&E(b,14,c);c=L(a,15);null!=c&&b.g(15,c);c=L(a,16);null!=c&&b.g(16,c);c=
L(a,31);null!=c&&b.g(31,c);c=L(a,33);null!=c&&E(b,33,c);c=L(a,35);null!=c&&E(b,35,c);c=L(a,36);null!=c&&E(b,36,c);c=L(a,37);null!=c&&E(b,37,c);c=L(a,38);null!=c&&E(b,38,c);c=L(a,43);null!=c&&E(b,43,c);c=L(a,44);null!=c&&E(b,44,c);c=L(a,45);null!=c&&E(b,45,c);c=L(a,46);null!=c&&E(b,46,c);c=L(a,47);null!=c&&E(b,47,c);c=L(a,48);null!=c&&E(b,48,c);c=L(a,49);null!=c&&E(b,49,c);c=L(a,50);null!=c&&E(b,50,c);c=L(a,88);null!=c&&E(b,88,c);c=L(a,56);null!=c&&E(b,56,c);c=L(a,57);null!=c&&b.g(57,c);c=L(a,58);
null!=c&&E(b,58,c);c=L(a,59);null!=c&&E(b,59,c);c=L(a,60);null!=c&&E(b,60,c);c=L(a,62);null!=c&&H(b,62,c);c=L(a,63);null!=c&&E(b,63,c);c=L(a,64);null!=c&&b.g(64,c);c=L(a,66);null!=c&&E(b,66,c);c=L(a,67);null!=c&&E(b,67,c);c=L(a,68);null!=c&&E(b,68,c);c=L(a,104);null!=c&&b.g(104,c);c=L(a,70);null!=c&&b.g(70,c);c=L(a,110);null!=c&&E(b,110,c);c=L(a,71);null!=c&&E(b,71,c);c=L(a,72);null!=c&&E(b,72,c);c=L(a,74);null!=c&&E(b,74,c);c=L(a,75);null!=c&&Vk(b,75,c);c=L(a,76);null!=c&&E(b,76,c);c=L(a,77);null!=
c&&b.g(77,c);c=L(a,78);null!=c&&E(b,78,c);c=L(a,79);null!=c&&E(b,79,c);c=L(a,80);null!=c&&E(b,80,c);c=L(a,81);null!=c&&E(b,81,c);c=L(a,82);null!=c&&E(b,82,c);c=L(a,84);null!=c&&E(b,84,c);c=L(a,85);null!=c&&E(b,85,c);c=L(a,86);null!=c&&E(b,86,c);c=L(a,87);null!=c&&E(b,87,c);c=L(a,99);null!=c&&E(b,99,c);c=L(a,89);null!=c&&E(b,89,c);c=L(a,112);null!=c&&b.g(112,c);c=L(a,90);null!=c&&b.g(90,c);c=L(a,97);null!=c&&b.g(97,c);c=L(a,91);null!=c&&E(b,91,c);c=L(a,92);null!=c&&E(b,92,c);c=L(a,93);null!=c&&E(b,
93,c);c=L(a,101);null!=c&&H(b,101,c)};yG.prototype.hj=function(){return ol(this,7,!1)};yG.prototype.uj=function(){return ol(this,46,!1)};yG.prototype.rf=function(){return ol(this,66,!1)};var BG=function(a){K(this,a,0,-1,null,null)};y(BG,J);var CG=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&F(b,2,c);c=L(a,3);null!=c&&H(b,3,c);c=L(a,4);null!=c&&H(b,4,c);c=L(a,5);null!=c&&Tk(b,5,c);c=L(a,6);null!=c&&Tk(b,6,c)},DG=function(a,b){return O(a,1,b)},EG=function(a,b){return O(a,3,b)},FG=function(a,b){return O(a,4,b)},GG=function(a,b){return O(a,5,b)};var HG=function(a){K(this,a,0,-1,null,null)};y(HG,J);var IG=function(a,b){var c=L(a,1);null!=c&&b.g(1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&Tk(b,3,c);c=L(a,4);null!=c&&Tk(b,4,c)};var JG=function(a){K(this,a,0,-1,null,null)};y(JG,J);var KG=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&H(b,2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,6);null!=c&&b.g(6,c);c=L(a,7);null!=c&&b.g(7,c);c=L(a,8);null!=c&&b.g(8,c);c=L(a,9);null!=c&&H(b,9,c);c=L(a,5);null!=c&&F(b,5,c)};JG.prototype.getName=function(){return L(this,2)};JG.prototype.getDeviceId=function(){return L(this,6)};var MG=function(a){K(this,a,0,-1,LG,null)};y(MG,J);var NG=function(a){K(this,a,0,-1,null,null)};y(NG,J);var PG=function(a){K(this,a,0,-1,OG,null)};y(PG,J);var QG=function(a){K(this,a,0,-1,null,null)};y(QG,J);
var LG=[24],TG=function(a,b){var c=L(a,1);null!=c&&H(b,1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,25);null!=c&&H(b,25,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,5);null!=c&&H(b,5,c);c=L(a,6);null!=c&&b.g(6,c);c=L(a,7);null!=c&&b.g(7,c);c=L(a,8);null!=c&&H(b,8,c);c=L(a,9);null!=c&&b.g(9,c);c=L(a,10);null!=c&&b.g(10,c);c=L(a,11);null!=c&&H(b,11,c);c=L(a,12);null!=c&&H(b,12,c);c=L(a,13);null!=c&&H(b,13,c);c=L(a,14);null!=c&&H(b,14,c);c=L(a,15);null!=c&&H(b,15,c);c=L(a,16);null!=c&&H(b,
16,c);c=L(a,17);null!=c&&b.g(17,c);c=L(a,18);null!=c&&b.g(18,c);c=L(a,19);null!=c&&H(b,19,c);c=L(a,26);null!=c&&H(b,26,c);c=L(a,20);null!=c&&H(b,20,c);c=Q(a,NG,21);null!=c&&I(b,21,c,RG);c=L(a,22);null!=c&&H(b,22,c);c=Q(a,PG,23);null!=c&&I(b,23,c,SG);c=R(a,JG,24);0<c.length&&Zk(b,24,c,KG)},RG=function(a,b){var c=L(a,1);null!=c&&E(b,1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,5);null!=c&&b.g(5,c)},OG=[3],SG=function(a,b){var c=L(a,1);null!=c&&b.g(1,c);
c=L(a,2);null!=c&&b.g(2,c);c=R(a,QG,3);0<c.length&&Zk(b,3,c,UG)},UG=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&F(b,2,c);c=L(a,4);null!=c&&F(b,4,c);c=L(a,3);null!=c&&F(b,3,c)};var WG=function(a){K(this,a,0,-1,VG,null)};y(WG,J);
var VG=[11],XG=function(a,b){var c=L(a,1);null!=c&&H(b,1,c);c=L(a,2);null!=c&&H(b,2,c);c=L(a,14);null!=c&&H(b,14,c);c=L(a,21);null!=c&&H(b,21,c);c=L(a,24);null!=c&&H(b,24,c);c=L(a,3);null!=c&&H(b,3,c);c=Q(a,GE,4);null!=c&&I(b,4,c,fF);c=Q(a,jG,5);null!=c&&I(b,5,c,oG);c=Q(a,qG,6);null!=c&&I(b,6,c,vG);c=Q(a,xG,7);null!=c&&I(b,7,c,AG);c=Q(a,MG,8);null!=c&&I(b,8,c,TG);c=Q(a,gG,10);null!=c&&I(b,10,c,hG);c=Q(a,HG,17);null!=c&&I(b,17,c,IG);c=Q(a,BG,15);null!=c&&I(b,15,c,CG);c=L(a,11);0<c.length&&Yk(b,11,
c);c=L(a,12);null!=c&&E(b,12,c);c=L(a,9);null!=c&&F(b,9,c);c=L(a,13);null!=c&&H(b,13,c);c=L(a,16);null!=c&&H(b,16,c);c=L(a,18);null!=c&&E(b,18,c);c=L(a,19);null!=c&&Tk(b,19,c);c=L(a,20);null!=c&&Tk(b,20,c);c=L(a,22);null!=c&&H(b,22,c);c=L(a,23);null!=c&&H(b,23,c)};WG.prototype.qa=function(){return L(this,2)};WG.prototype.qb=function(){return L(this,21)};WG.prototype.Y=function(){return L(this,3)};var YG=function(a){var b=new WG;return S(b,15,a)};WG.prototype.Mb=function(){return L(this,22)};var ZG=function(a){K(this,a,0,-1,null,null)};y(ZG,J);k=ZG.prototype;k.pu=function(){var a=new Nk;var b=Q(this,gB,1);null!=b&&I(a,1,b,hB);b=L(this,2);null!=b&&H(a,2,b);b=Q(this,WG,3);null!=b&&I(a,3,b,XG);b=this.ea();null!=b&&I(a,4,b,Kl);return Rk(a)};k.setRequestHeader=function(a){return S(this,1,a)};k.ea=function(){return Q(this,El,4)};k.O=function(a){return S(this,4,a)};k.la=function(){return this.O(void 0)};var $G=function(a){K(this,a,"chselrp",-1,null,null)};y($G,J);var aH=function(a){a=new zk(a);for(var b=new $G;Bk(a)&&!Ak(a);)switch(a.h){case 1:var c=new kB;Dk(a,c,lB);S(b,1,c);break;case 2:c=new El;Dk(a,c,Il);b.O(c);break;default:Ck(a)}return b};$G.messageId="chselrp";$G.prototype.getResponseHeader=function(){return Q(this,kB,1)};$G.prototype.ea=function(){return Q(this,El,2)};$G.prototype.O=function(a){return S(this,2,a)};$G.prototype.la=function(){return this.O(void 0)};var cH=function(a){K(this,a,0,-1,bH,null)};y(cH,J);var bH=[4];cH.prototype.setRequestHeader=function(a){return S(this,1,a)};cH.prototype.ea=function(){return Q(this,El,3)};cH.prototype.O=function(a){return S(this,3,a)};cH.prototype.la=function(){return this.O(void 0)};var eH=function(a){K(this,a,"chsemrp",-1,dH,null)};y(eH,J);var dH=[4];eH.messageId="chsemrp";eH.prototype.getResponseHeader=function(){return Q(this,kB,1)};eH.prototype.ea=function(){return Q(this,El,3)};eH.prototype.O=function(a){return S(this,3,a)};eH.prototype.la=function(){return this.O(void 0)};var gH=function(a){K(this,a,0,-1,fH,null)};y(gH,J);var fH=[4];gH.prototype.setRequestHeader=function(a){return S(this,1,a)};gH.prototype.ea=function(){return Q(this,El,3)};gH.prototype.O=function(a){return S(this,3,a)};gH.prototype.la=function(){return this.O(void 0)};var iH=function(a){K(this,a,"chsomrp",-1,hH,null)};y(iH,J);var hH=[4];iH.messageId="chsomrp";iH.prototype.getResponseHeader=function(){return Q(this,kB,1)};iH.prototype.ea=function(){return Q(this,El,3)};iH.prototype.O=function(a){return S(this,3,a)};iH.prototype.la=function(){return this.O(void 0)};var jH=function(a){K(this,a,0,-1,null,null)};y(jH,J);jH.prototype.setRequestHeader=function(a){return S(this,1,a)};jH.prototype.qa=function(){return L(this,2)};jH.prototype.Y=function(){return L(this,3)};jH.prototype.za=function(){return L(this,4)};var kH=function(a){K(this,a,"chsoqrp",-1,null,null)};y(kH,J);kH.messageId="chsoqrp";kH.prototype.getResponseHeader=function(){return Q(this,kB,1)};var lH=function(a){K(this,a,0,-1,null,null)};y(lH,J);lH.prototype.setRequestHeader=function(a){return S(this,1,a)};lH.prototype.qa=function(){return L(this,5)};var mH=function(a){K(this,a,"chstqrp",-1,null,null)};y(mH,J);mH.messageId="chstqrp";mH.prototype.getResponseHeader=function(){return Q(this,kB,1)};mH.prototype.Na=function(){return Q(this,tC,2)};var oH=function(a){K(this,a,0,-1,nH,null)};y(oH,J);var nH=[7];oH.prototype.setRequestHeader=function(a){return S(this,1,a)};var pH=function(a,b){return O(a,3,b)};oH.prototype.qa=function(){return L(this,5)};oH.prototype.ea=function(){return Q(this,El,6)};oH.prototype.O=function(a){return S(this,6,a)};oH.prototype.la=function(){return this.O(void 0)};var qH=function(a,b){return O(a,7,b||[])};var rH=function(a){K(this,a,"chstrrp",-1,null,null)};y(rH,J);rH.messageId="chstrrp";rH.prototype.getResponseHeader=function(){return Q(this,kB,1)};rH.prototype.ea=function(){return Q(this,El,2)};rH.prototype.O=function(a){return S(this,2,a)};rH.prototype.la=function(){return this.O(void 0)};var tH=function(a){K(this,a,0,-1,sH,null)};y(tH,J);var sH=[2,3];k=tH.prototype;k.ea=function(){return Q(this,El,1)};k.O=function(a){return S(this,1,a)};k.la=function(){return this.O(void 0)};k.kc=function(){return R(this,UA,2)};k.Tc=function(){return R(this,mB,3)};k.tc=function(){return Q(this,mB,4)};var uH=function(a){K(this,a,0,-1,null,null)};y(uH,J);uH.prototype.qa=function(){return L(this,1)};var wH=function(a){K(this,a,0,-1,vH,null)};y(wH,J);var vH=[2,3];k=wH.prototype;k.ea=function(){return Q(this,El,1)};k.O=function(a){return S(this,1,a)};k.la=function(){return this.O(void 0)};k.kc=function(){return R(this,pB,2)};k.Tc=function(){return R(this,uH,3)};k.tc=function(){return Q(this,uH,4)};var xH=function(a){K(this,a,0,-1,null,null)};y(xH,J);xH.prototype.ea=function(){return Q(this,El,1)};xH.prototype.O=function(a){return S(this,1,a)};xH.prototype.la=function(){return this.O(void 0)};var zH=function(a){K(this,a,0,-1,yH,null)};y(zH,J);var yH=[1];var AH=function(a){K(this,a,0,-1,null,null)};y(AH,J);var BH=function(a){K(this,a,0,-1,null,null)};y(BH,J);BH.prototype.qa=function(){return L(this,1)};BH.prototype.j=function(a){return O(this,1,a)};var DH=function(a){K(this,a,0,-1,CH,null)};y(DH,J);var CH=[2];k=DH.prototype;k.ea=function(){return Q(this,El,1)};k.O=function(a){return S(this,1,a)};k.la=function(){return this.O(void 0)};k.kc=function(){return R(this,aD,2)};k.tc=function(){return Q(this,BH,3)};var FH=function(a){K(this,a,0,-1,EH,null)};y(FH,J);var EH=[2,3];k=FH.prototype;k.ea=function(){return Q(this,El,1)};k.O=function(a){return S(this,1,a)};k.la=function(){return this.O(void 0)};k.kc=function(){return R(this,zB,2)};k.Tc=function(){return R(this,zD,3)};k.tc=function(){return Q(this,zD,5)};var HH=function(a){K(this,a,0,-1,GH,null)};y(HH,J);var GH=[2];HH.prototype.ea=function(){return Q(this,El,1)};HH.prototype.O=function(a){return S(this,1,a)};HH.prototype.la=function(){return this.O(void 0)};HH.prototype.kc=function(){return R(this,GD,2)};var JH=function(a){K(this,a,0,-1,IH,null)};y(JH,J);var IH=[2,3];k=JH.prototype;k.ea=function(){return Q(this,El,1)};k.O=function(a){return S(this,1,a)};k.la=function(){return this.O(void 0)};k.kc=function(){return R(this,vB,2)};k.Tc=function(){return R(this,BH,3)};k.tc=function(){return Q(this,BH,4)};var KH=function(a){K(this,a,0,-1,null,null)};y(KH,J);KH.prototype.j=function(){return L(this,1)};KH.prototype.o=function(a){return O(this,1,a)};var MH=function(a){K(this,a,0,-1,LH,null)};y(MH,J);var LH=[2,3];k=MH.prototype;k.ea=function(){return Q(this,El,1)};k.O=function(a){return S(this,1,a)};k.la=function(){return this.O(void 0)};k.kc=function(){return R(this,bC,2)};k.Tc=function(){return R(this,KH,3)};k.tc=function(){return Q(this,KH,4)};var OH=function(a){K(this,a,0,-1,NH,null)};y(OH,J);var NH=[2,3];k=OH.prototype;k.ea=function(){return Q(this,El,1)};k.O=function(a){return S(this,1,a)};k.la=function(){return this.O(void 0)};k.kc=function(){return R(this,jC,2)};k.Tc=function(){return R(this,ED,3)};k.tc=function(){return Q(this,ED,4)};var PH=function(a){K(this,a,0,-1,null,null)};y(PH,J);k=PH.prototype;k.qa=function(){return L(this,1)};k.Wn=function(a){return O(this,1,a)};k.Zh=function(){return L(this,2)};k.Xn=function(a){return O(this,2,a)};k.sk=function(){return L(this,3)};k.uu=function(a){return O(this,3,a)};k.rk=function(){return L(this,4)};k.tu=function(a){return O(this,4,a)};var RH=function(a){K(this,a,0,-1,QH,null)};y(RH,J);var QH=[2,3];k=RH.prototype;k.ea=function(){return Q(this,El,1)};k.O=function(a){return S(this,1,a)};k.la=function(){return this.O(void 0)};k.kc=function(){return R(this,tC,2)};k.Tc=function(){return R(this,PH,3)};k.tc=function(){return Q(this,PH,4)};var SH=function(a){K(this,a,0,-1,null,null)};y(SH,J);var TH=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=b;var d=c.g.l();c=c.g;if(0>d||c.g+d>c.h.length)c.o=!0,Eb("Invalid byte length!"),c=new Uint8Array(0);else{var e=c.h.subarray(c.g,c.g+d);c.g+=d;c=e}ql(a,2,c,"");break;default:Ck(b)}return a};var VH=function(a){K(this,a,0,-1,UH,null)};y(VH,J);var WH=function(a){K(this,a,0,-1,null,null)};y(WH,J);var XH=function(a){K(this,a,0,-1,null,null)};y(XH,J);var YH=function(a){K(this,a,0,-1,null,null)};y(YH,J);var ZH=function(a){K(this,a,0,-1,null,null)};y(ZH,J);var $H=function(a){K(this,a,0,-1,null,null)};y($H,J);var aI=function(a){K(this,a,0,-1,null,null)};y(aI,J);var bI=function(a){K(this,a,0,-1,null,null)};y(bI,J);
var UH=[7,13,16,17,18],dI=function(a){a=new zk(a);var b=new VH;return cI(b,a)},cI=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);a.j(c);break;case 2:c=Gk(b);P(a,2,c);break;case 29:c=Gk(b);P(a,29,c);break;case 24:c=new WH;Dk(b,c,eI);S(a,24,c);break;case 3:c=Gk(b);P(a,3,c);break;case 4:c=Fk(b);rl(a,4,c);break;case 5:c=Ek(b);ql(a,5,c,!1);break;case 28:c=Fk(b);rl(a,28,c);break;case 7:c=Gk(b);L(a,7).push(c);break;case 22:c=Gk(b);P(a,22,c);break;case 23:c=Gk(b);P(a,23,c);break;case 8:c=
Ek(b);ql(a,8,c,!1);break;case 9:c=Ek(b);ql(a,9,c,!1);break;case 10:c=Gk(b);P(a,10,c);break;case 11:c=Fk(b);rl(a,11,c);break;case 12:c=new XH;Dk(b,c,fI);gI(a,c);break;case 30:c=new XH;Dk(b,c,fI);S(a,30,c);break;case 27:c=new YH;Dk(b,c,hI);S(a,27,c);break;case 13:c=Hk(b,b.g.s);O(a,13,c||[]);break;case 14:c=new ZH;Dk(b,c,iI);S(a,14,c);break;case 15:c=Ek(b);ql(a,15,c,!1);break;case 16:c=new $H;Dk(b,c,jI);xl(a,16,c,$H);break;case 17:c=new aI;Dk(b,c,kI);xl(a,17,c,aI);break;case 18:c=Hk(b,b.g.s);O(a,18,
c||[]);break;case 19:c=Gk(b);P(a,19,c);break;case 20:c=new bI;Dk(b,c,lI);S(a,20,c);break;case 21:c=Gk(b);P(a,21,c);break;case 25:c=Fk(b);rl(a,25,c);break;case 26:c=Ek(b);ql(a,26,c,!1);break;default:Ck(b)}return a},uI=function(a,b){var c=a.cc();0<c.length&&H(b,1,c);c=M(a,2,"");0<c.length&&H(b,2,c);c=M(a,29,"");0<c.length&&H(b,29,c);c=Q(a,WH,24);null!=c&&I(b,24,c,mI);c=M(a,3,"");0<c.length&&H(b,3,c);c=nI(a);0!==c&&F(b,4,c);(c=ol(a,5,!1))&&E(b,5,c);c=M(a,28,0);0!==c&&F(b,28,c);c=L(a,7);0<c.length&&Yk(b,
7,c);c=M(a,22,"");0<c.length&&H(b,22,c);c=M(a,23,"");0<c.length&&H(b,23,c);(c=ol(a,8,!1))&&E(b,8,c);(c=ol(a,9,!1))&&E(b,9,c);c=M(a,10,"");0<c.length&&H(b,10,c);c=M(a,11,0);0!==c&&F(b,11,c);c=Q(a,XH,12);null!=c&&I(b,12,c,oI);c=Q(a,XH,30);null!=c&&I(b,30,c,oI);c=Q(a,YH,27);null!=c&&I(b,27,c,pI);c=L(a,13);0<c.length&&cl(b,13,c);c=Q(a,ZH,14);null!=c&&I(b,14,c,qI);(c=ol(a,15,!1))&&E(b,15,c);c=R(a,$H,16);0<c.length&&Zk(b,16,c,rI);c=R(a,aI,17);0<c.length&&Zk(b,17,c,sI);c=L(a,18);0<c.length&&cl(b,18,c);c=
M(a,19,"");0<c.length&&H(b,19,c);c=Q(a,bI,20);null!=c&&I(b,20,c,tI);c=M(a,21,"");0<c.length&&H(b,21,c);c=M(a,25,0);0!==c&&F(b,25,c);(c=ol(a,26,!1))&&E(b,26,c)},eI=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Fk(b);rl(a,1,c);break;default:Ck(b)}return a},mI=function(a,b){a=M(a,1,0);0!==a&&F(b,1,a)},fI=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;default:Ck(b)}return a},oI=function(a,b){a=M(a,1,"");0<a.length&&H(b,1,a)},hI=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=
Gk(b);P(a,1,c);break;default:Ck(b)}return a},pI=function(a,b){a=M(a,1,"");0<a.length&&H(b,1,a)},iI=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Fk(b);rl(a,2,c);break;case 3:c=Fk(b);rl(a,3,c);break;default:Ck(b)}return a},qI=function(a,b){var c=M(a,1,"");0<c.length&&H(b,1,c);c=M(a,2,0);0!==c&&F(b,2,c);c=M(a,3,0);0!==c&&F(b,3,c)},jI=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Fk(b);rl(a,2,c);break;case 3:c=Fk(b);
rl(a,3,c);break;case 4:c=Fk(b);rl(a,4,c);break;case 5:c=Ek(b);ql(a,5,c,!1);break;default:Ck(b)}return a},rI=function(a,b){var c=a.xd();0<c.length&&H(b,1,c);c=M(a,2,0);0!==c&&F(b,2,c);c=M(a,3,0);0!==c&&F(b,3,c);c=M(a,4,0);0!==c&&F(b,4,c);(c=ol(a,5,!1))&&E(b,5,c)};$H.prototype.xd=function(){return M(this,1,"")};
var kI=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Fk(b);rl(a,2,c);break;default:Ck(b)}return a},sI=function(a,b){var c=a.xd();0<c.length&&H(b,1,c);c=M(a,2,0);0!==c&&F(b,2,c)};aI.prototype.xd=function(){return M(this,1,"")};
var lI=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Fk(b);rl(a,2,c);break;case 3:c=Gk(b);P(a,3,c);break;case 4:c=Gk(b);P(a,4,c);break;default:Ck(b)}return a},tI=function(a,b){var c=M(a,1,"");0<c.length&&H(b,1,c);c=M(a,2,0);0!==c&&F(b,2,c);c=M(a,3,"");0<c.length&&H(b,3,c);c=M(a,4,"");0<c.length&&H(b,4,c)};VH.prototype.cc=function(){return M(this,1,"")};VH.prototype.j=function(a){return P(this,1,a)};
var nI=function(a){return M(a,4,0)},gI=function(a,b){S(a,12,b)};var vI=function(a){K(this,a,0,-1,null,null)};y(vI,J);vI.prototype.dc=function(){return M(this,1,0)};var xI=function(a){K(this,a,0,-1,wI,null)};y(xI,J);var wI=[2,3];k=xI.prototype;k.ea=function(){return Q(this,vI,1)};k.O=function(a){return S(this,1,a)};k.la=function(){return this.O(void 0)};k.kc=function(){return R(this,VH,2)};k.Tc=function(){return L(this,3)};k.tc=function(){return M(this,4,"")};var yI=function(a){K(this,a,0,-1,null,null)};y(yI,J);var AI=function(a){K(this,a,0,-1,zI,null)};y(AI,J);var zI=[2];k=AI.prototype;k.ea=function(){return Q(this,vI,1)};k.O=function(a){return S(this,1,a)};k.la=function(){return this.O(void 0)};k.kc=function(){return R(this,yI,2)};k.tc=function(){return M(this,3,"")};var BI=function(a){K(this,a,0,-1,null,null)};y(BI,J);BI.prototype.xd=function(){return M(this,1,"")};BI.prototype.getTitle=function(){return M(this,2,"")};BI.prototype.setTitle=function(a){return P(this,2,a)};BI.prototype.oj=function(){return M(this,13,0)};var DI=function(a){K(this,a,0,-1,CI,null)};y(DI,J);var CI=[2,3];k=DI.prototype;k.ea=function(){return Q(this,vI,1)};k.O=function(a){return S(this,1,a)};k.la=function(){return this.O(void 0)};k.kc=function(){return R(this,BI,2)};k.Tc=function(){return L(this,3)};k.tc=function(){return M(this,4,"")};var FI=function(a){K(this,a,0,-1,EI,null)};y(FI,J);var GI=function(a){K(this,a,0,-1,null,null)};y(GI,J);
var EI=[1],II=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=new GI;Dk(b,c,HI);xl(a,1,c,GI);break;case 2:c=Gk(b);P(a,2,c);break;case 3:c=Fk(b);rl(a,3,c);break;default:Ck(b)}return a},KI=function(a,b){var c=R(a,GI,1);0<c.length&&Zk(b,1,c,JI);c=M(a,2,"");0<c.length&&H(b,2,c);c=M(a,3,0);0!==c&&F(b,3,c)},HI=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;default:Ck(b)}return a},JI=function(a,b){a=M(a,1,"");0<a.length&&H(b,1,a)};var MI=function(a){K(this,a,0,-1,LI,null)};y(MI,J);var NI=function(a){K(this,a,0,-1,null,null)};y(NI,J);var OI=function(a){K(this,a,0,-1,null,null)};y(OI,J);var PI=function(a){K(this,a,0,-1,null,null)};y(PI,J);var QI=function(a){K(this,a,0,-1,null,null)};y(QI,J);var RI=function(a){K(this,a,0,-1,null,null)};y(RI,J);var SI=function(a){K(this,a,0,-1,null,null)};y(SI,J);var TI=function(a){K(this,a,0,-1,null,null)};y(TI,J);var VI=function(a){K(this,a,0,-1,UI,null)};y(VI,J);
var WI=function(a){K(this,a,0,-1,null,null)};y(WI,J);var XI=function(a){K(this,a,0,-1,null,null)};y(XI,J);
var LI=[5,11,13],cJ=function(a){a=new zk(a);for(var b=new MI;Bk(a)&&!Ak(a);)switch(a.h){case 1:var c=Gk(a);b.o(c);break;case 2:c=Gk(a);P(b,2,c);break;case 3:c=Gk(a);P(b,3,c);break;case 5:c=new NI;Dk(a,c,YI);xl(b,5,c,NI);break;case 8:c=new OI;Dk(a,c,ZI);S(b,8,c);break;case 6:c=new VI;Dk(a,c,$I);S(b,6,c);break;case 7:c=Gk(a);P(b,7,c);break;case 9:c=new WI;Dk(a,c,aJ);S(b,9,c);break;case 10:c=Gk(a);P(b,10,c);break;case 11:c=Hk(a,a.g.s);O(b,11,c||[]);break;case 12:c=new FI;Dk(a,c,II);S(b,12,c);break;case 13:c=
new XI;Dk(a,c,bJ);xl(b,13,c,XI);break;default:Ck(a)}return b},jJ=function(a,b){var c=a.j();0<c.length&&H(b,1,c);c=a.Mb();0<c.length&&H(b,2,c);c=M(a,3,"");0<c.length&&H(b,3,c);c=R(a,NI,5);0<c.length&&Zk(b,5,c,dJ);c=Q(a,OI,8);null!=c&&I(b,8,c,eJ);c=fJ(a);null!=c&&I(b,6,c,gJ);c=M(a,7,"");0<c.length&&H(b,7,c);c=Q(a,WI,9);null!=c&&I(b,9,c,hJ);c=M(a,10,"");0<c.length&&H(b,10,c);c=L(a,11);0<c.length&&cl(b,11,c);c=Q(a,FI,12);null!=c&&I(b,12,c,KI);c=R(a,XI,13);0<c.length&&Zk(b,13,c,iJ)},YI=function(a,b){for(;Bk(b)&&
!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Gk(b);P(a,2,c);break;case 3:c=Gk(b);P(a,3,c);break;case 4:c=Gk(b);P(a,4,c);break;default:Ck(b)}return a},dJ=function(a,b){var c=M(a,1,"");0<c.length&&H(b,1,c);c=M(a,2,"");0<c.length&&H(b,2,c);c=M(a,3,"");0<c.length&&H(b,3,c);c=M(a,4,"");0<c.length&&H(b,4,c)},ZI=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Gk(b);P(a,2,c);break;default:Ck(b)}return a},eJ=function(a,b){var c=M(a,1,"");0<c.length&&
H(b,1,c);c=M(a,2,"");0<c.length&&H(b,2,c)},kJ=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Gk(b);P(a,2,c);break;default:Ck(b)}return a},lJ=function(a,b){var c=M(a,1,"");0<c.length&&H(b,1,c);c=M(a,2,"");0<c.length&&H(b,2,c)},nJ=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Fk(b);rl(a,1,c);break;case 2:c=Gk(b);P(a,2,c);break;case 3:c=Gk(b);P(a,3,c);break;case 4:c=new RI;Dk(b,c,mJ);S(a,4,c);break;case 5:c=Gk(b);P(a,5,c);break;case 6:c=Fk(b);rl(a,
6,c);break;default:Ck(b)}return a},pJ=function(a,b){var c=a.pj();0!==c&&F(b,1,c);c=a.xd();0<c.length&&H(b,2,c);c=M(a,3,"");0<c.length&&H(b,3,c);c=Q(a,RI,4);null!=c&&I(b,4,c,oJ);c=a.tg();0<c.length&&H(b,5,c);c=a.oj();0!==c&&F(b,6,c)},mJ=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Fk(b);rl(a,2,c);break;default:Ck(b)}return a},oJ=function(a,b){var c=a.getDeviceId();0<c.length&&H(b,1,c);c=M(a,2,0);0!==c&&F(b,2,c)};
RI.prototype.getDeviceId=function(){return M(this,1,"")};QI.prototype.pj=function(){return M(this,1,0)};QI.prototype.xd=function(){return M(this,2,"")};QI.prototype.tg=function(){return M(this,5,"")};QI.prototype.oj=function(){return M(this,6,0)};
var rJ=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Fk(b);rl(a,1,c);break;case 2:c=Gk(b);P(a,2,c);break;case 3:c=Fk(b);rl(a,3,c);break;case 4:c=new TI;Dk(b,c,qJ);S(a,4,c);break;case 5:c=Gk(b);P(a,5,c);break;case 6:c=Fk(b);rl(a,6,c);break;case 7:c=Ek(b);ql(a,7,c,!1);break;default:Ck(b)}return a},tJ=function(a,b){var c=a.Ia();0!==c&&F(b,1,c);c=M(a,2,"");0<c.length&&H(b,2,c);c=M(a,3,0);0!==c&&F(b,3,c);c=Q(a,TI,4);null!=c&&I(b,4,c,sJ);c=a.tg();0<c.length&&H(b,5,c);c=M(a,6,0);0!==c&&F(b,
6,c);(c=ol(a,7,!1))&&E(b,7,c)},qJ=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Fk(b);rl(a,2,c);break;default:Ck(b)}return a},sJ=function(a,b){var c=a.getDeviceId();0<c.length&&H(b,1,c);c=M(a,2,0);0!==c&&F(b,2,c)};TI.prototype.getDeviceId=function(){return M(this,1,"")};SI.prototype.Ia=function(){return M(this,1,0)};SI.prototype.tg=function(){return M(this,5,"")};
var UI=[9],$I=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=new PI;Dk(b,c,kJ);a.jd(c);break;case 2:c=new QI;Dk(b,c,nJ);S(a,2,c);break;case 3:c=Gk(b);P(a,3,c);break;case 4:c=Gk(b);P(a,4,c);break;case 6:c=b.g.w();ql(a,6,c,0);break;case 8:c=Gk(b);P(a,8,c);break;case 9:c=new SI;Dk(b,c,rJ);xl(a,9,c,SI);break;default:Ck(b)}return a},gJ=function(a,b){var c=a.rc();null!=c&&I(b,1,c,lJ);c=Q(a,QI,2);null!=c&&I(b,2,c,pJ);c=M(a,3,"");0<c.length&&H(b,3,c);c=M(a,4,"");0<c.length&&H(b,4,c);c=M(a,6,0);
0!==c&&b.g(6,c);c=M(a,8,"");0<c.length&&H(b,8,c);c=R(a,SI,9);0<c.length&&Zk(b,9,c,tJ)};VI.prototype.rc=function(){return Q(this,PI,1)};VI.prototype.jd=function(a){return S(this,1,a)};VI.prototype.xj=function(){return null!=L(this,1)};var aJ=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 2:var c=Ek(b);a.setEnabled(c);break;default:Ck(b)}return a},hJ=function(a,b){(a=ol(a,2,!1))&&E(b,2,a)};WI.prototype.setEnabled=function(a){return ql(this,2,a,!1)};
var bJ=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Gk(b);P(a,2,c);break;default:Ck(b)}return a},iJ=function(a,b){var c=M(a,1,"");0<c.length&&H(b,1,c);c=M(a,2,"");0<c.length&&H(b,2,c)};MI.prototype.j=function(){return M(this,1,"")};MI.prototype.o=function(a){return P(this,1,a)};MI.prototype.Mb=function(){return M(this,2,"")};var fJ=function(a){return Q(a,VI,6)};var vJ=function(a){K(this,a,0,-1,uJ,null)};y(vJ,J);var uJ=[2];k=vJ.prototype;k.ea=function(){return Q(this,vI,1)};k.O=function(a){return S(this,1,a)};k.la=function(){return this.O(void 0)};k.kc=function(){return R(this,MI,2)};k.tc=function(){return M(this,3,"")};var wJ=function(a){K(this,a,0,-1,null,null)};y(wJ,J);wJ.prototype.j=function(){return Q(this,xI,1)};wJ.prototype.C=function(){return Q(this,vJ,2)};wJ.prototype.D=function(){return Q(this,DI,3)};wJ.prototype.o=function(){return Q(this,AI,4)};var xJ=function(a){K(this,a,0,-1,null,null)};y(xJ,J);k=xJ.prototype;k.Ur=function(){return Q(this,FH,1)};k.ps=function(){return Q(this,MH,2)};k.rs=function(){return Q(this,RH,3)};k.Lr=function(){return Q(this,xH,4)};k.qs=function(){return Q(this,OH,5)};k.Sr=function(){return Q(this,tH,7)};k.Vr=function(){return Q(this,JH,8)};k.Mr=function(){return Q(this,wH,9)};k.us=function(){return Q(this,HH,10)};k.ts=function(){return Q(this,wJ,13)};k.Tr=function(){return Q(this,DH,15)};var yJ=function(a){K(this,a,0,-1,null,null)};y(yJ,J);var AJ=function(a){K(this,a,"hcbu",-1,zJ,null)};y(AJ,J);var zJ=[1];AJ.messageId="hcbu";var CJ=function(a){K(this,a,0,-1,BJ,null)};y(CJ,J);var BJ=[2,6];var DJ=function(a){K(this,a,0,-1,null,null)};y(DJ,J);DJ.prototype.qa=function(){return L(this,3)};DJ.prototype.Y=function(){return L(this,4)};DJ.prototype.qb=function(){return L(this,10)};DJ.prototype.Mb=function(){return L(this,13)};var EJ=function(a){K(this,a,0,-1,null,null)};y(EJ,J);var GJ=function(a){K(this,a,0,-1,FJ,null)};y(GJ,J);var FJ=[3];var HJ=function(a){K(this,a,0,-1,null,null)};y(HJ,J);var IJ=function(a){K(this,a,0,-1,null,null)};y(IJ,J);HJ.prototype.jj=function(){return L(this,2)};var JJ=function(a){K(this,a,0,-1,null,null)};y(JJ,J);JJ.prototype.getId=function(){return L(this,1)};var KJ=function(a,b){return O(a,1,b)},LJ=function(a,b){return O(a,2,b)};var NJ=function(a){K(this,a,0,-1,MJ,null)};y(NJ,J);var MJ=[1,2,3],OJ=function(a){var b=new NJ;return wl(b,2,a)},PJ=function(a,b){return O(a,3,b||[])};var QJ=function(a){K(this,a,0,-1,null,null)};y(QJ,J);var RJ=function(a){K(this,a,0,-1,null,null)};y(RJ,J);var V={},SJ=(V[264]=4,V[275]=4,V[1579]=4,V[2360]=4,V[2359]=3,V[1781]=1,V[1169]=1,V[1167]=7,V[2053]=1,V[2054]=1,V[1168]=1,V[2052]=2,V[1177]=1,V[1199]=7,V[2245]=2,V[1175]=1,V[1176]=7,V[1172]=1,V[1173]=1,V[1174]=1,V[1184]=1,V[1183]=1,V[1182]=1,V[1181]=1,V[1180]=1,V[1179]=1,V[1178]=1,V[1827]=1,V[1171]=1,V[1170]=1,V[1387]=6,V[649]=6,V[640]=6,V[584]=6,V[2173]=4,V[1591]=6,V[574]=7,V[597]=3,V[2175]=3,V[1495]=4,V[588]=6,V[575]=4,V[587]=6,V[572]=7,V[598]=6,V[1580]=3,V[2754]=6,V[1260]=3,V[1584]=3,V[1871]=1,
V[2190]=1,V[2187]=1,V[2191]=1,V[2188]=1,V[2186]=1,V[288]=6,V[2962]=3,V[2840]=6,V[1080]=4,V[1081]=6,V[2055]=7,V[2056]=7,V[2494]=4,V[2496]=7,V[2679]=4,V[2495]=4,V[1518]=3,V[1079]=4,V[2686]=6,V[1528]=4,V[1595]=6,V[1541]=4,V[1520]=4,V[1519]=6,V[2687]=7,V[2788]=3,V[2789]=4,V[2970]=3,V[2971]=3,V[2972]=3,V[2796]=3,V[2797]=3,V[2960]=3,V[2794]=3,V[990]=4,V[1227]=6,V[2704]=4,V[2705]=6,V[2706]=6,V[2707]=7,V[2703]=4,V[783]=4,V[784]=4,V[782]=4,V[2805]=6,V[2806]=4,V[4708]=6,V[4711]=6,V[4749]=6,V[4163]=4,V[4578]=
6,V[4730]=6,V[2124]=6,V[2123]=6,V[2126]=6,V[2125]=6,V[4408]=6,V[4410]=6,V[3839]=6,V[4631]=6,V[4630]=1,V[41]=6,V[4411]=4,V[4589]=1,V[3341]=1,V[3342]=1,V[4664]=7,V[4609]=7,V[4030]=7,V[4782]=7,V[4031]=7,V[4610]=7,V[4286]=3,V[3906]=7,V[3908]=7,V[3682]=7,V[3907]=7,V[4263]=3,V[4417]=7,V[3948]=7,V[3950]=7,V[4419]=7,V[3939]=7,V[3941]=7,V[3940]=7,V[3942]=7,V[3949]=7,V[3945]=7,V[3947]=7,V[3946]=7,V[3943]=7,V[3944]=7,V[4418]=7,V[3951]=7,V[4633]=6,V[4632]=1,V[4590]=1,V[4592]=6,V[4591]=1,V[3854]=1,V[3853]=1,V[3855]=
1,V[3856]=1,V[3857]=1,V[315]=6,V[3215]=6,V[4161]=6,V[4588]=6,V[3220]=4,V[3221]=4,V[4080]=6,V[3053]=4,V[3055]=6,V[3054]=4,V[4355]=4,V[4384]=6,V[4387]=6,V[3799]=2,V[4599]=7,V[4335]=4,V[4336]=4,V[4183]=4,V[4242]=7,V[4579]=6,V[4580]=3,V[3918]=6,V[3916]=3,V[4212]=4,V[3917]=3,V[4680]=4,V[4359]=3,V[4358]=7,V[4204]=6,V[4205]=4,V[4516]=6,V[4682]=7,V[4759]=4,V[4760]=7,V[4761]=4,V[4292]=4,V[4293]=7,V[4294]=4,V[4289]=4,V[4290]=7,V[4291]=4,V[4628]=6,V[4629]=4,V[3746]=6,V[3762]=4,V[4472]=6,V[4350]=6,V[4351]=3,
V[4348]=6,V[4349]=3,V[4433]=6,V[4434]=3,V[4352]=6,V[4353]=3,V[4223]=3,V[4224]=3,V[4225]=3,V[4301]=1,V[4304]=1,V[4305]=1,V[4302]=1,V[4303]=1,V[4306]=1,V[4265]=1,V[4268]=1,V[4266]=1,V[4269]=1,V[4267]=1,V[3679]=7,V[3680]=3,V[3134]=3,V[3135]=3,V[3735]=3,V[3734]=3,V[4611]=4,V[4360]=3,V[3834]=4,V[3833]=6,V[4354]=7,V[4460]=6,V[4478]=6,V[4477]=6,V[4476]=6,V[4481]=6,V[4480]=6,V[4461]=6,V[4462]=6,V[4463]=7,V[4464]=6,V[4475]=6,V[4465]=6,V[4479]=7,V[4466]=6,V[4471]=6,V[4208]=6,V[4526]=6,V[4209]=4,V[4201]=6,V[4139]=
6,V[4167]=6,V[3958]=3,V[4005]=3,V[3956]=6,V[4211]=7,V[4210]=4,V[4236]=6,V[4179]=7,V[4788]=6,V[4435]=6,V[4202]=4,V[3911]=6,V[4216]=6,V[4235]=3,V[4126]=6,V[4127]=3,V[4213]=6,V[4214]=6,V[4215]=6,V[4164]=6,V[4558]=6,V[4555]=6,V[4604]=6,V[4165]=3,V[4559]=6,V[4556]=6,V[4605]=6,V[4557]=6,V[4554]=6,V[4603]=6,V[3763]=3,V[3651]=7,V[4513]=6,V[4681]=4,V[3748]=6,V[4118]=6,V[4119]=3,V[4116]=6,V[4117]=3,V[4431]=6,V[4432]=3,V[4120]=6,V[4121]=3,V[4381]=6,V[4379]=4,V[4734]=6,V[4737]=6,V[3511]=6,V[3510]=6,V[4128]=6,
V[3061]=7,V[3062]=4,V[3359]=6,V[4787]=6,V[3526]=7,V[4663]=7,V[3915]=7,V[3914]=7,V[3525]=7,V[4207]=2,V[4206]=7,V[3952]=7,V[3439]=7,V[3798]=4,V[3438]=4,V[3832]=7,V[3852]=4,V[3848]=7,V[3825]=6,V[3782]=4,V[3672]=6,V[3677]=7,V[3829]=6,V[4333]=6,V[4009]=6,V[4010]=4,V[3480]=6,V[4309]=6,V[4308]=6,V[4307]=6,V[3463]=5,V[3466]=5,V[3462]=5,V[3464]=5,V[3465]=5,V[3460]=5,V[3459]=5,V[3461]=5,V[3775]=6,V[3458]=7,V[4088]=6,V[4087]=6,V[4086]=6,V[3632]=3,V[3631]=3,V[4314]=6,V[3633]=4,V[3733]=6,V[3611]=3,V[3612]=6,V[3610]=
3,V[3613]=7,V[3619]=7,V[3549]=3,V[3550]=6,V[3808]=6,V[3809]=6,V[3803]=7,V[3804]=7,V[3802]=1,V[3800]=1,V[3812]=1,V[3960]=6,V[3801]=1,V[3810]=7,V[3811]=6,V[3961]=1,V[3927]=6,V[4102]=1,V[3806]=7,V[3807]=7,V[3805]=1,V[4137]=6,V[3725]=3,V[4103]=1,V[4101]=1,V[4849]=6,V[4094]=6,V[4096]=6,V[4100]=6,V[4098]=6,V[4568]=6,V[4399]=6,V[4400]=6,V[3473]=6,V[3470]=6,V[3496]=6,V[4011]=6,V[4012]=4,V[4688]=6,V[3688]=6,V[4547]=8,V[4013]=7,V[4619]=3,V[4553]=3,V[4582]=6,V[4618]=6,V[4552]=6,V[326]=6,V[3476]=3,V[4022]=3,
V[3475]=3,V[3625]=3,V[4021]=3,V[4020]=3,V[3474]=3,V[3626]=3,V[3553]=3,V[3693]=3,V[3692]=3,V[3628]=3,V[3629]=3,V[3930]=3,V[3690]=3,V[3932]=3,V[3931]=3,V[3691]=3,V[4499]=3,V[4501]=7,V[4500]=4,V[4487]=3,V[4502]=4,V[4509]=6,V[4485]=3,V[4484]=3,V[4489]=3,V[4491]=3,V[4490]=3,V[4488]=3,V[4492]=1,V[4495]=7,V[4496]=7,V[4494]=1,V[4493]=3,V[4498]=7,V[4497]=3,V[4731]=3,V[4486]=3,V[3929]=8,V[4019]=3,V[3928]=3,V[4537]=6,V[4026]=3,V[4538]=6,V[4542]=6,V[4025]=3,V[4023]=3,V[4545]=8,V[4549]=4,V[4551]=4,V[4550]=4,V[4027]=
3,V[4029]=3,V[4028]=3,V[4548]=8,V[4540]=8,V[4378]=6,V[4376]=4,V[4344]=6,V[4343]=3,V[4342]=6,V[4241]=6,V[4018]=3,V[4046]=6,V[4240]=6,V[4043]=3,V[4186]=1,V[4184]=6,V[4185]=1,V[4577]=1,V[4536]=4,V[4541]=4,V[4544]=8,V[4543]=4,V[4375]=8,V[4373]=3,V[4238]=6,V[4039]=3,V[4331]=8,V[4345]=7,V[4341]=8,V[4340]=3,V[4339]=6,V[4330]=8,V[4329]=3,V[4328]=6,V[4239]=8,V[4045]=3,V[4044]=6,V[4237]=6,V[4035]=3,V[4539]=8,V[4546]=8,V[4024]=3,V[3736]=7,V[3777]=6,V[3778]=4,V[5036]=3,V[5033]=3,V[5035]=3,V[5034]=3,V[5037]=3,
V[5032]=3,V[5540]=7,V[4962]=7,V[6177]=7,V[6176]=4,V[6175]=4,V[4899]=4,V[5437]=4,V[5466]=4,V[5436]=4,V[5438]=6,V[5439]=7,V[5277]=6,V[5514]=1,V[5515]=1,V[5403]=4,V[5268]=7,V[6111]=3,V[6112]=3,V[6113]=3,V[6010]=4,V[6011]=4,V[6107]=7,V[5964]=4,V[5965]=7,V[5963]=4,V[5867]=6,V[5722]=4,V[6032]=4,V[5404]=4,V[6216]=6,V[6215]=4,V[4824]=6,V[4936]=6,V[4947]=6,V[4946]=6,V[4945]=6,V[4950]=6,V[4949]=6,V[4937]=6,V[4938]=6,V[4939]=6,V[4940]=6,V[4944]=6,V[4941]=6,V[4948]=7,V[4942]=6,V[4943]=6,V[6601]=6,V[6602]=6,V[4983]=
4,V[4981]=4,V[4982]=4,V[5669]=6,V[5668]=6,V[5672]=6,V[5667]=6,V[5671]=6,V[5666]=6,V[5674]=6,V[5670]=6,V[5027]=6,V[5023]=6,V[5026]=6,V[4995]=6,V[4986]=4,V[4984]=4,V[4985]=4,V[6131]=6,V[6130]=6,V[6127]=6,V[5025]=6,V[5022]=6,V[5024]=6,V[4994]=6,V[4975]=1,V[4976]=4,V[4924]=3,V[5122]=4,V[5123]=4,V[5120]=4,V[5121]=4,V[5197]=4,V[5220]=6,V[5226]=6,V[4971]=4,V[5296]=6,V[5297]=6,V[4803]=6,V[5224]=6,V[5225]=6,V[5223]=6,V[5118]=4,V[5119]=4,V[5116]=4,V[5117]=4,V[4978]=4,V[4977]=4,V[5144]=4,V[5142]=4,V[5143]=4,
V[6389]=7,V[5442]=6,V[5441]=6,V[5440]=6,V[5818]=7,V[5382]=8,V[5639]=4,V[5638]=4,V[5640]=4,V[5626]=4,V[5721]=4,V[6121]=4,V[6371]=7,V[5099]=7,V[5097]=4,V[5111]=6,V[5059]=4,V[5102]=7,V[5105]=6,V[5108]=7,V[5190]=7,V[5138]=3,V[5139]=3,V[5028]=3,V[5029]=3,V[5031]=3,V[5030]=3,V[5378]=4,V[5374]=3,V[5376]=7,V[5377]=7,V[5375]=4,V[6055]=4,V[6057]=7,V[6056]=4,V[5137]=3,V[5870]=3,V[5869]=7,V[5872]=7,V[5868]=7,V[5871]=4,V[4810]=7,V[4809]=7,V[4806]=7,V[4805]=7,V[4808]=7,V[4807]=7,V[5002]=3,V[5004]=3,V[5003]=3,V[5001]=
3,V[5E3]=3,V[5005]=3,V[5006]=3,V[5009]=3,V[5007]=3,V[5008]=3,V[4847]=4,V[4848]=4,V[6549]=7,V[5149]=1,V[5150]=1,V[5147]=1,V[5148]=1,V[6266]=3,V[6323]=6,V[4802]=6,V[6063]=6,V[6320]=6,V[4867]=4,V[6465]=4,V[6464]=4,V[6463]=4,V[6461]=7,V[6462]=7,V[6466]=3,V[6468]=7,V[6467]=4,V[4798]=6,V[4796]=1,V[5803]=6,V[4797]=1,V[4801]=6,V[4799]=1,V[5802]=6,V[4800]=1,V[6126]=6,V[5517]=6,V[5518]=7,V[5298]=6,V[4952]=6,V[4815]=1,V[4813]=1,V[4821]=1,V[4819]=1,V[4820]=1,V[4814]=1,V[4818]=1,V[4816]=1,V[4817]=1,V[4970]=6,
V[5038]=4,V[5402]=4,V[5401]=4,V[5400]=4,V[5269]=4,V[5270]=4,V[5124]=6,V[5156]=6,V[5157]=6,V[5158]=6,V[5155]=6,V[4901]=4,V[6123]=6,V[4869]=6,V[4868]=6,V[6161]=4,V[5040]=4,V[5039]=4,V);var TJ=function(a,b){this.namespace_=a;this.h=b;this.constructor.Vl||(this.constructor.Vl={});this.constructor.Vl[this.toString()]=this};TJ.prototype.va=function(){return this.toString()};TJ.prototype.toString=function(){this.g||(this.g="fva:"+this.h);return this.g};var UJ=function(a,b){TJ.call(this,a,b)};y(UJ,TJ);var VJ=function(a,b,c){if(c)for(var d=0;d<c.length;d++);this.j=a;this.h=b||null;this.g=c||[]};VJ.prototype.toString=function(){return this.j};VJ.prototype.ij=function(){return this.g};var WJ=function(a){var b={},c={},d=[],e=[],f=function(p){if(!c[p]){var r=p instanceof VJ?p.ij():[];c[p]=cc(r);Hb(r,function(t){b[t]=b[t]||[];b[t].push(p)});r.length||d.push(p);Hb(r,f)}};for(Hb(a,f);d.length;){var g=d.shift();e.push(g);b[g]&&Hb(b[g],function(p){Zb(c[p],g);c[p].length||d.push(p)})}var h={},l=[];Hb(e,function(p){p instanceof VJ&&(p=p.h,null==p||h[p]||(h[p]=!0,l.push(p)))});return{services:e,It:l}};var XJ=new VJ("n73qwf");var YJ=new VJ("pVbxBc");var aK=function(a){T.call(this);this.id=ZJ++;this.H=[];this.h={};this.D={};this.o={};this.g={};this.j={};this.G={};this.m=a?a.m:new pv;this.L=!a;this.l=null;a?(this.l=a,this.o=a.o,this.g=a.g,this.D=a.D,this.j=a.j):Xa();a=$J(this);this!=a&&(a.s?a.s.push(this):a.s=[this])};y(aK,T);var ZJ=1,bK=.05>Math.random(),$J=function(a){for(;a.l;)a=a.l;return a},cK=function(a,b){for(;a;){if(a==b)return!0;a=a.l}return!1};
aK.prototype.get=function(a){var b=dK(this,a);null==b&&this.R&&(b={BOGUS:"Service "+a+" was not registered"});if(null==b)throw new eK(a);return b};
var fK=function(a,b){return!(!a.h[b]&&!a.o[b])},dK=function(a,b){for(var c=a;c;c=c.l){if(c.w())throw Error("AppContext is disposed, can not get "+b+".");if(c.h[b])return c.h[b][0];if(c.G[b])break}if(c=a.o[b]){c=c(a);if(null==c)throw Error("Factory method for service "+b+" returned null or undefined.");a.registerService(b,c);return c}return null},W=function(a,b,c){return gK(a,[b],c)[b]},gK=function(a,b,c){var d=hK(a),e=!c;c={};var f=[],g=[],h={},l={},p=dK(a,YJ),r={};b=n(b);for(var t=b.next();!t.done;r=
{Hb:r.Hb},t=b.next())if(r.Hb=t.value,t=dK(a,r.Hb)){var A=new Kz;c[r.Hb]=A;t.Li&&(Tz(A,t.Li()),Rz(A,Wa(function(z){return z},t)));A.callback(t)}else a.j[r.Hb]?(t=a.j[r.Hb].w(),Rz(t,function(z){return function(){return a.qj(z.Hb)}}(r)),c[r.Hb]=t):(t=void 0,r.Hb instanceof VJ?t=WJ([r.Hb]).It:(A=a.D[r.Hb])&&(t=[A]),!e||t&&t.length?(t&&(p&&r.Hb instanceof VJ&&p.cL()&&(bK&&(A=p.eL(iK),l[r.Hb]=A),p.PK(r.Hb)),f.push.apply(f,q(t)),h[r.Hb]=Fb(t)),g.push(r.Hb)):(t=new Kz,c[r.Hb]=t,t.g(new eK(r.Hb))));if(e){if(f.length){a.C&&
0<f.filter(function(z){return!jK(d,z)}).length&&a.C.push(new kK);r=n(g);for(e=r.next();!e.done;e=r.next())a.m.M(new lK("b",e.value));f=mK(hK(a),f,void 0);r={};g=n(g);for(e=g.next();!e.done;r={ke:r.ke},e=g.next())r.ke=e.value,e=h[r.ke],b=f[e],b=b instanceof Kz?b.w():Zz(b),c[r.ke]=b,l[r.ke]&&Rz(b,function(z){return function(){p.BK(l[z.ke])}}(r)),nK(a,b,r.ke,e)}}else for(f={},g=n(g),e=g.next();!e.done;f={od:f.od,Rf:f.Rf},e=g.next())f.od=e.value,f.Rf=h[f.od],e=new Kz(function(z){return function(G){var N=
z.od,Aa=a.g&&a.g[N];if(Aa){for(var Mb=0;Mb<Aa.length;++Mb)if(Aa[Mb].pa==a&&Aa[Mb].d==G){Yb(Aa,Mb);break}0==Aa.length&&delete a.g[N]}}}(f)),c[f.od]=e,(r=a.g[f.od])||(a.g[f.od]=r=[]),f.Rf&&oK(a,e,f.od,f.Rf),Rz(e,function(z){return function(){return a.rj(z.od,z.Rf)}}(f)),r.push({pa:a,d:e});return c},oK=function(a,b,c,d){Rz(b,function(){var e=hK(this);this.C&&this.C.push(new kK);return e.load(d)},a);Sz(b,w(a.Om,a,c,d))},nK=function(a,b,c,d){Rz(b,function(){this.m.M(new lK("c",c))},a);Sz(b,w(a.Om,a,c,
d));Rz(b,w(a.rj,a,c,d))};k=aK.prototype;k.rj=function(a,b){var c=dK(this,a);if(null==c){if(this.j[a]){var d=this.j[a].w();Rz(d,w(this.rj,this,a,b));return d}if(!b)throw Error("Module undefined but service or factory "+a+" not registered with app contexts.");throw new pK(a,b,"Module loaded but service or factory not registered with app contexts.");}return c.Li?(d=new Kz,Tz(d,c.Li()),d.callback(c),Rz(d,w(this.qj,this,a)),d):this.qj(a)};k.qj=function(a){this.j[a]&&delete this.j[a];return this.get(a)};
k.Om=function(a,b,c){return c instanceof Lz?c:new qK(a,b,c)};k.registerService=function(a,b,c){if(this.w())c||us(b);else{this.H.push(a);this.h[a]=[b,!c];c=rK(this,this,a);for(var d=0;d<c.length;d++)c[d].callback(null);delete this.D[a];return b}};k.unregisterService=function(a){if(!this.h[a])throw Error('Service for "'+a+'" is not registered');var b=this.h[a];delete this.h[a];b[1]&&us(b[0])};
var tK=function(a,b,c){a.o[b]=c;if(c=a.g[b]){if(1<c.length){for(var d=0;d<c.length;++d)c[d].index=d;c.sort(sK)}for(;c.length;)c.shift().d.callback(null);delete a.g[b]}},sK=function(a,b){if(a.pa!=b.pa){if(cK(a.pa,b.pa))return 1;if(cK(b.pa,a.pa))return-1}return a.index<b.index?-1:a.index==b.index?0:1},rK=function(a,b,c){var d=[],e=a.g[c];e&&(Ib(e,function(f){cK(f.pa,b)&&(d.push(f.d),Zb(e,f))}),0==e.length&&delete a.g[c]);return d},uK=function(a,b){a.g&&xc(a.g,function(c,d,e){Ib(c,function(f){f.pa==
b&&Zb(c,f)});0==c.length&&delete e[d]})};aK.prototype.aa=function(){if($J(this)==this){var a=this.s;if(a)for(;a.length;)a[0].dispose()}else{a=$J(this).s;for(var b=0;b<a.length;b++)if(a[b]==this){a.splice(b,1);break}}for(var c in this.h)a=this.h[c],a[1]&&a[0].dispose&&a[0].dispose();this.h=null;this.L&&this.m.dispose();uK(this,this);this.g=null;us(this.K);this.G=this.K=null;aK.Ab.aa.call(this)};
var hK=function(a){return a.F?a.F:a.l?hK(a.l):null},xK=function(a){!vK&&wK&&(vK=wK());a.F=vK},eK=function(a){Bb.call(this);this.id=a;this.message='Service for "'+a+'" is not registered'};y(eK,Bb);var qK=function(a,b,c){Bb.call(this);this.cause=c;this.message='Module "'+b+'" failed to load when requesting the service "'+a+'" [cause: '+c+"]";this.stack=c.stack+"\nWRAPPED BY:\n"+this.stack};y(qK,Bb);
var pK=function(a,b,c){Bb.call(this);this.message='Configuration error when loading the module "'+b+'" for the service "'+a+'": '+c};y(pK,Bb);var kK=function(){Af()},lK=function(a){U.call(this,a)};y(lK,U);var iK=new UJ(new function(){},1);var yK=new VJ("ySXoze","rrm");var zK=new VJ("b2QWee","hl"),AK=new VJ("e6ID2c","hl"),BK=new VJ("PvLNsc","hl"),CK=new VJ("VzLulf","rsr");var DK=new VJ("FolmWb","dlh"),EK=new VJ("QFLvic","ma"),FK=new VJ("TjR1Nb","ma",[XJ]),GK=new VJ("YZ7tye","ma"),HK=new VJ("T2hLvb","he"),IK=new VJ("jMMyYe","prs"),JK=new VJ("uZXhye","lu"),KK=new VJ("BrAT9e","hcp"),LK=new VJ("H0uGPe","mcp"),MK=new VJ("XUwG2d","mi"),NK=new VJ("ppdJGc","mcpr"),OK=new VJ("Ve2Nie","mcsi"),PK=new VJ("b8asf","hcm"),QK=new VJ("ZeF1te","mcm");var TK=function(a,b,c,d,e){d=void 0===d?RK:d;e=void 0===e?null:e;T.call(this);this.l=a;this.H=b;this.K=d;this.j=e;this.h=-1;this.D=bt();this.g=null;this.s=!1;this.F=0;this.G=this.C=void 0;this.Qa=++SK;this.R=c};u(TK,T);TK.prototype.L=function(a){this.h=a;UK(this);return!0};TK.prototype.o=function(){return this.D.da};TK.prototype.m=function(){return this.s};var VK=function(a){null==a.g&&(a.g=a.H(),UK(a));return a.g};k=TK.prototype;k.Xj=function(a){this.F=a};k.Xh=function(){return this.F};
k.Yg=function(a,b){void 0!==b&&(b=Math.max(a,b));this.C=a;this.G=b};k.Eg=function(){return this.C};k.Wj=function(){return this.G};var UK=function(a){if(a.g&&-1!=a.h){var b=a.g;Oa(b.O)?(a=Gl(new El,a.h),b.O(a)):Oa(b.la)&&b.la()}};TK.prototype.Sm=function(){return this.l};TK.prototype.Rm=function(){return VK(this).toString()};TK.prototype.toString=function(){return"[Operation id: "+this.Qa+": "+this.l+", version: "+this.h+"]"};function RK(){return[]}var SK=0,WK=function(){Bb.call(this)};u(WK,Bb);
WK.prototype.message="Operation has already been executed.";WK.prototype.name="AlreadyExecutedError";var XK=function(a){var b=a.Je,c=a.Ke,d=a.Re,e=a.Se,f=a.Oe,g=a.Me,h=a.Ne,l=a.Pe,p=a.Qe,r=a.to,t=a.Ot;this.g=a.Le;this.D=b;this.C=c;this.L=d;this.s=b.concat(d);this.R=c.concat(e);this.l=f;this.F=g;this.G=h;this.K=l;this.o=g.concat(l);this.H=h.concat(p);this.w=r||sc;this.m=t||Ka};XK.prototype.j=function(a){if(a instanceof this.g)var b=this.D;else if(a instanceof this.l)b=this.F;else return Eb("Passed in object did not match resource or identifier type"),[];return b.map(function(c){return c.call(a)})};
var YK=function(a,b){if(b instanceof a.g)a=a.L;else if(b instanceof a.l)a=a.K;else return Eb("Passed in object did not match resource or identifier type"),[];return a.map(function(c){return c.call(b)})};XK.prototype.h=function(a){if(a instanceof this.g)var b=this.s;else if(a instanceof this.l)b=this.o;else return Eb("Passed in object did not match resource or identifier type"),[];return b.map(function(c){return c.call(a)})};
XK.prototype.nb=function(a,b){var c=this.R;a.length!=c.length&&(b?a=a.concat(b):c=this.C);var d=new this.g;a.forEach(function(e,f){c[f].call(d,e)});return d};
var ZK=function(a,b){var c=a.H;b.length!=c.length&&(c=a.G);var d=new a.l;b.forEach(function(e,f){c[f].call(d,e)});return d},$K=function(a,b){if(b instanceof a.g)a=a.s;else if(b instanceof a.l)a=a.o;else return Eb("Passed in item did not match resource or identifier type"),!1;return a.every(function(c){return null!=c.call(b)})},bL=function(a,b,c){b=aL(a,b,a.h);a=aL(a,c,a.h);return mc(b,a)},aL=function(a,b,c){return b instanceof Array?b:c.call(a,b)};var cL=function(a){this.h=a};cL.prototype.tj=function(){return!0};cL.prototype.vd=function(){};cL.prototype.wd=function(){};cL.prototype.Nd=function(){};var dL=function(){cL.apply(this,arguments)};u(dL,cL);var eL=function(){dL.apply(this,arguments)};u(eL,dL);k=eL.prototype;k.vd=function(a){return new TK("hangouts/add",function(){var b=new xB;return wl(b,4,a)},UC,function(b){return R(b,vB,5)})};k.wd=function(a){return new TK("hangouts/modify",function(){var b=new qD;return wl(b,4,a)},sD,function(b){return R(b,vB,4)})};k.Nd=function(){return null};
k.Md=function(a){return new TK("hangouts/query",function(){var b=new DB,c=a.qa();return O(b,2,c)},ZC,function(b){return[Q(b,vB,2)]},{set:function(b,c){return S(b,8,c)},get:function(b){return Q(b,ZC,8)}})};k.re=function(a){return this.Md(a)};var fL=function(){dL.apply(this,arguments)};u(fL,dL);k=fL.prototype;k.vd=function(a){return new TK("hangout_participants/add",function(){var b=new BB;return wl(b,6,a)},WC,function(b){return R(b,zB,5)})};k.wd=function(a){return new TK("hangout_participants/modify",function(){var b=new uD;return wl(b,4,a)},wD,function(b){return R(b,zB,4)})};k.Nd=function(a,b){var c=b&&b.jYdIne||0;return new TK("hangout_participants/remove",function(){var d=CD(new BD,a);return O(d,5,c)},DD)};
k.Md=function(a){return new TK("hangout_participants/query",function(){var b=new xD;var c=a.qa();b=O(b,2,c);c=a.Y();return O(b,3,c)},yD,function(b){return[Q(b,zB,2)]})};k.re=function(a){return new TK("hangout_participants/search",function(){var b=new CB,c=a.qa();return O(b,2,c)},YC,function(b){return R(b,zB,2)},{set:function(b,c){return S(b,7,c)},get:function(b){return Q(b,YC,7)}})};var gL=function(){dL.apply(this,arguments)};u(gL,dL);k=gL.prototype;k.vd=function(a){return new TK("media_sources/add",function(){var b=new rC;return wl(b,4,a)},fD,function(b){return R(b,jC,4)})};k.wd=function(a){return new TK("media_sources/modify",function(){var b=new gH;return wl(b,4,a)},iH,function(b){return R(b,jC,4)})};k.Nd=function(){return null};
k.Md=function(a){return new TK("media_sources/query",function(){var b=new jH;var c=a.qa();b=O(b,2,c);c=a.Y();b=O(b,3,c);c=a.za();return O(b,4,c)},kH,function(b){return[Q(b,jC,2)]})};k.re=function(a){return new TK("media_sources/search",function(){var b=new sC,c=a.qa();return O(b,2,c)},hD,function(b){return R(b,jC,2)},{set:function(b,c){return S(b,6,c)},get:function(b){return Q(b,hD,6)}})};var hL=function(){return new XK({Le:zB,Je:[zB.prototype.qa],Ke:[zB.prototype.o],Re:[zB.prototype.Y],Se:[zB.prototype.j],Oe:zD,Me:[zD.prototype.qa],Ne:[zD.prototype.j],Pe:[zD.prototype.Y],Qe:[zD.prototype.o]})};var iL=function(a){this.j=W(a,AK,!0)};iL.prototype.g=function(a,b){this.j.then(function(c){return c.g(a,b)})};iL.prototype.h=function(a,b){this.j.then(function(c){return c.h(a,b)})};var jL=1,kL=1,lL=function(a){T.call(this);this.h=new Set;(this.g=a)&&a.N(this)};u(lL,T);lL.prototype.signal=function(){return mL(this,!1)};var nL=function(a){return mL(a,!0)};lL.prototype.V=function(a,b){return oL({signal:pL(this,a),data:b})};
var qL=function(a,b,c){c=void 0===c?function(e){return e}:c;var d=pL(a,b);return{V:function(e){return a.V(d,c(e))}}},mL=function(a,b){b=new rL(b);a.h.add(b);a.N(b);return b},pL=function(a,b){b.o||(b.o=sL(a,b)+"-"+kL++);return b},sL=function(a,b){return a.g?(a=Object.entries(a.g).find(function(c){c=n(c);c.next();return c.next().value==b}))&&a[0]||"ANONYMOUS":"OWNERLESS"},tL=function(a){this.h=a;this.g=[]};tL.prototype.add=function(a,b){this.g.push({signal:pL(this.h,a),data:b})};
tL.prototype.V=function(){var a=oL.apply(null,q(this.g));this.g.length=0;return a};var rL=function(a){T.call(this);this.g=new Map;this.h=new Set;this.l=a;this.j=!1};u(rL,T);rL.prototype.attach=function(a,b){var c=this,d=jL++;uL(function(){return vL(c,d,a,b)});return d};
var xL=function(a,b,c){var d=Oa(c),e=jL++,f=d?c:b;var g=d?g:c;uL(function(){a.j?(b(a.m),vL(a,e,f,g)):d?vL(a,e,wL(b,f),g):vL(a,e,f,g)});return e},vL=function(a,b,c,d){if(!a.w())if(d){if(!d.w()){var e=function(){return uL(function(){a.g.delete(b);var f=yL.get(d);f&&Zb(f,e)})};a.g.set(b,{slot:c,Xi:e});zL(d,e)}}else a.g.set(b,{slot:c,Xi:function(){return a.g.delete(b)}})};rL.prototype.detach=function(a){var b=this;uL(function(){var c=b.g.get(a);c&&c.Xi()})};
rL.prototype.value=function(a){return AL(this,!0,a)};rL.prototype.next=function(a){return AL(this,!1,a)};var AL=function(a,b,c){var d=bt();uL(function(){if(a.w())d.reject(new Ps("Signal disposed"));else if(c&&c.w())d.reject(new Ps("Owner disposed"));else if(b&&a.l&&a.j)d.resolve(a.m);else if(a.h.add(d),et(d.da,function(){a.h.delete(d)}),c){var e=function(){d.reject(new Ps("Owner disposed"))};et(d.da,function(){var f=yL.get(c);f&&Zb(f,e)});zL(c,e)}});return d.da};
rL.prototype.aa=function(){var a=this;T.prototype.aa.call(this);uL(function(){a.g.forEach(function(b){b=b.Xi;return b()});a.g.clear();a.h.forEach(function(b){return b.reject(new Ps("Signal disposed"))});a.h.clear()})};
var oL=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return 0==b.length?Promise.resolve():1==b.length?(b=b[0],BL(b.signal,b.data)):Promise.all(b.map(function(d){return BL(d.signal,d.data)}))},BL=function(a,b){return new Promise(function(c){uL(function(){a.g.forEach(function(d){d=d.slot;try{d(b)}catch(e){As(e)}});a.h.forEach(function(d){return d.resolve(b)});a.h.clear();a.l&&(a.m=b,a.j=!0);c()})})},CL=[],DL=!1,uL=function(a){CL.push(a);EL()},EL=function(){var a,b;Ca(function(c){switch(c.g){case 1:if(DL){c.bb(0);
break}ra(c,3,4);DL=!0;a=FL(0);case 6:if(!(a<CL.length)){c.bb(4);break}return v(c,Promise.resolve(),8);case 8:a=FL(a);c.bb(6);break;case 4:c.D=[c.j];c.w=0;c.l=0;CL.length=0;DL=!1;ua(c);break;case 3:b=ta(c),As(b),c.bb(4)}})},FL=function(a){for(var b=a+100;a<b&&a<CL.length;)try{CL[a++]()}catch(c){As(c)}return a},yL=new WeakMap,zL=function(a,b){if(a.w())b();else{var c=yL.get(a);if(c)c.push(b);else{var d=[b];yL.set(a,d);ts(a,function(){[].concat(q(d)).forEach(function(e){return e()});yL.delete(a)})}}},
wL=function(a,b){var c=!0;return function(d){c?(c=!1,a(d)):b(d)}};var GL=function(){T.call(this);this.l=new lL(this);this.j=this.l.signal()};u(GL,T);var HL=function(a){a.l.V(a.j,void 0)};var IL=function(a){K(this,a,0,-1,null,null)};y(IL,J);var KL=function(a){K(this,a,0,-1,JL,null)};y(KL,J);var LL=function(a){K(this,a,0,-1,null,null)};y(LL,J);var JL=[3];LL.prototype.getName=function(){return L(this,2)};var ML={Mp:["BC","AD"],Lp:["Before Christ","Anno Domini"],aq:"JFMAMJJASOND".split(""),Cq:"JFMAMJJASOND".split(""),Xp:"January February March April May June July August September October November December".split(" "),Bq:"January February March April May June July August September October November December".split(" "),yq:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Eq:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Yq:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
Gq:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Aq:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Fq:"Sun Mon Tue Wed Thu Fri Sat".split(" "),UD:"SMTWTFS".split(""),Dq:"SMTWTFS".split(""),zq:["Q1","Q2","Q3","Q4"],jq:["1st quarter","2nd quarter","3rd quarter","4th quarter"],tp:["AM","PM"],Qz:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],TI:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],Rz:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],vl:6,iK:[5,6],wl:5},NL=ML;
NL=ML;var OL=function(a,b,c,d,e){a=new Date(a,b,c);e=e||0;return a.valueOf()+864E5*(((void 0!==d?d:3)-e+7)%7-((a.getDay()+6)%7-e+7)%7)};var PL=function(){},RL=function(a){if("number"==typeof a){var b=new PL;b.h=a;var c=a;if(0==c)c="Etc/GMT";else{var d=["Etc/GMT",0>c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",te(c,2));c=d.join("")}b.l=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=QL(a);b.m=[c,c];b.g={bI:a,Ml:a};b.j=[];return b}b=new PL;b.l=a.id;b.h=-a.std_offset;b.m=a.names;b.g=a.names_ext;b.j=a.transitions;return b},QL=
function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(te(Math.floor(a/60)%100,2),":",te(a%60,2));return b.join("")},SL=function(a,b){b=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5;for(var c=0;c<a.j.length&&b>=a.j[c];)c+=2;return 0==c?0:a.j[c-1]};var VL=function(){this.h=[];this.g=NL;var a="HH:mm:ss";for(TL&&(a=a.replace(/\u200f/g,""));a;){for(var b=a,c=0;c<UL.length;++c){var d=a.match(UL[c]);if(d){var e=d[0];a=a.substring(e.length);0==c&&("''"==e?e="'":(e=e.substring(1,"'"==d[1]?e.length-1:e.length),e=e.replace(/''/g,"'")));this.h.push({text:e,type:c});break}}if(b===a)throw Error("Malformed pattern part: "+a);}},UL=[/^'(?:[^']|'')*('|$)/,/^(?:G+|y+|Y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyYMkSEahKHcLQdmsvVwzZ]+/],
WL=function(a){return a.getHours?a.getHours():0};
VL.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-(b.h-SL(b,a))):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(e=6E4*(d.getTimezoneOffset()-a.getTimezoneOffset()),d=new Date(d.getTime()+e),c+=0<c?-864E5:864E5,e=new Date(a.getTime()+c));c=[];for(var f=0;f<this.h.length;++f){var g=this.h[f].text;1==this.h[f].type?c.push(XL(this,g,a,d,e,b)):c.push(g)}return c.join("")};
var YL=function(a,b){b=String(b);a=a.g||NL;if(void 0!==a.Zq){for(var c=[],d=0;d<b.length;d++){var e=b.charCodeAt(d);c.push(48<=e&&57>=e?String.fromCharCode(a.Zq+e-48):b.charAt(d))}b=c.join("")}return b},TL=!1,ZL=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");},XL=function(a,b,c,d,e,f){var g=b.length;switch(b.charAt(0)){case "G":return c=0<d.getFullYear()?
1:0,4<=g?a.g.Lp[c]:a.g.Mp[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==g&&(c%=100),YL(a,te(c,g));case "Y":return c=(new Date(OL(d.getFullYear(),d.getMonth(),d.getDate(),a.g.wl,a.g.vl))).getFullYear(),0>c&&(c=-c),2==g&&(c%=100),YL(a,te(c,g));case "M":a:switch(c=d.getMonth(),g){case 5:g=a.g.aq[c];break a;case 4:g=a.g.Xp[c];break a;case 3:g=a.g.yq[c];break a;default:g=YL(a,te(c+1,g))}return g;case "k":return ZL(e),YL(a,te(WL(e)||24,g));case "S":return YL(a,(e.getMilliseconds()/1E3).toFixed(Math.min(3,
g)).substr(2)+(3<g?te(0,g-3):""));case "E":return c=d.getDay(),4<=g?a.g.Yq[c]:a.g.Aq[c];case "a":return ZL(e),g=WL(e),a.g.tp[12<=g&&24>g?1:0];case "h":return ZL(e),YL(a,te(WL(e)%12||12,g));case "K":return ZL(e),YL(a,te(WL(e)%12,g));case "H":return ZL(e),YL(a,te(WL(e),g));case "c":a:switch(c=d.getDay(),g){case 5:g=a.g.Dq[c];break a;case 4:g=a.g.Gq[c];break a;case 3:g=a.g.Fq[c];break a;default:g=YL(a,te(c,1))}return g;case "L":a:switch(c=d.getMonth(),g){case 5:g=a.g.Cq[c];break a;case 4:g=a.g.Bq[c];
break a;case 3:g=a.g.Eq[c];break a;default:g=YL(a,te(c+1,g))}return g;case "Q":return c=Math.floor(d.getMonth()/3),4>g?a.g.zq[c]:a.g.jq[c];case "d":return YL(a,te(d.getDate(),g));case "m":return ZL(e),YL(a,te(e.getMinutes(),g));case "s":return ZL(e),YL(a,te(e.getSeconds(),g));case "v":return g=f||RL(c.getTimezoneOffset()),g.l;case "V":return a=f||RL(c.getTimezoneOffset()),2>=g?a.l:0<SL(a,c)?void 0!==a.g.Gp?a.g.Gp:a.g.DST_GENERIC_LOCATION:void 0!==a.g.Ml?a.g.Ml:a.g.STD_GENERIC_LOCATION;case "w":return c=
OL(e.getFullYear(),e.getMonth(),e.getDate(),a.g.wl,a.g.vl),YL(a,te(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,g));case "z":return a=f||RL(c.getTimezoneOffset()),4>g?a.m[0<SL(a,c)?2:0]:a.m[0<SL(a,c)?3:1];case "Z":return b=f||RL(c.getTimezoneOffset()),4>g?(g=-(b.h-SL(b,c)),a=[0>g?"-":"+"],g=Math.abs(g),a.push(te(Math.floor(g/60)%100,2),te(g%60,2)),g=a.join("")):g=YL(a,QL(b.h-SL(b,c))),g;default:return""}};var $L=function(a){var b=Q(a,QJ,1)||new QJ;S(a,1,b);return b},aM=function(a){var b=Q(a,dB,5)||new dB;S(a,5,b)},bM=function(a){a=$L(a);var b=Q(a,DJ,1)||new DJ;S(a,1,b);return b},cM=function(a){var b=Q(a,IJ,3)||new IJ;S(a,3,b);return b};/*

 Copyright 2011 Google LLC.
 SPDX-License-Identifier: Apache-2.0
*/
/*

 Copyright 2013 Google LLC.
 SPDX-License-Identifier: Apache-2.0
*/
var dM=function(a,b,c,d){this.g=a;this.h=b;this.width=c;this.height=d};dM.prototype.clone=function(){return new dM(this.g,this.h,this.width,this.height)};dM.prototype.toString=function(){return"("+this.g+", "+this.h+" - "+this.width+"w x "+this.height+"h)"};var eM=function(a,b){return a==b?!0:a&&b?a.g==b.g&&a.width==b.width&&a.h==b.h&&a.height==b.height:!1};dM.prototype.contains=function(a){return this.g<=a.g&&this.g+this.width>=a.g+a.width&&this.h<=a.h&&this.h+this.height>=a.h+a.height};
dM.prototype.ceil=function(){this.g=Math.ceil(this.g);this.h=Math.ceil(this.h);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};dM.prototype.floor=function(){this.g=Math.floor(this.g);this.h=Math.floor(this.h);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};dM.prototype.round=function(){this.g=Math.round(this.g);this.h=Math.round(this.h);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var fM=function(a){this.g=a};fM.prototype.h=function(a){if(null==this.g){if(0==arguments.length){if("JyGAEc".includes("-"))throw Error("Data JyGAEc not defined. Most likely because you need to replace - with camelcase. More information http://go/wiz-errors#data-not-found");throw Error("Data JyGAEc not defined.");}return a}if("string"===typeof this.g)return this.g;throw new TypeError("Invalid string data <JyGAEc>: "+this.g+"-"+typeof this.g);};fM.prototype.isDefined=function(){return null!=this.g};
fM.prototype.toString=function(){return this.h()};var gM=wc(function(){var a=void 0===a?window:a;a=a.WIZ_global_data;a=new fM(a&&"JyGAEc"in a?a.JyGAEc:null);if(a.isDefined()){if(null==a.g)throw Error("Data JyGAEc not defined.");a=a.h();a=JSON.parse("["+a.substring(4));a=new dB(a)}else a=null;return a});function hM(a,b){b=void 0===b?!1:b;var c=gM();null!=c?b=c:(c=new dB,a=O(c,2,a),b=O(fB(a,iM(b)),3,1));return b}function iM(a){a=void 0===a?!1:a;var b=gM();return null!=b?b.getDevice():Re?Le?2:3:Se?4:Te?5:a?Zd("Linux")?17:18:1};var jM=function(a,b,c){this.g=a;this.h=b;this.j=c};var lM=function(a){K(this,a,"hc:cc",-1,kM,null)};y(lM,J);var mM=function(a){K(this,a,0,-1,null,null)};y(mM,J);var kM=[14,15];lM.messageId="hc:cc";var nM=function(a,b){O(a,4,b)};k=lM.prototype;k.bc=function(){return L(this,6)};k.bi=function(a){return O(this,6,a)};k.Lh=function(){return ml(this,18)};k.kj=function(){return L(this,20)};k.lj=function(){return L(this,21)};k.sj=function(){return ol(this,22,!1)};var oM=function(a,b,c,d){Bb.call(this);this.status=a;this.g=b;this.h=c;this.response=d};y(oM,Bb);oM.prototype.toString=function(){var a="["+this.status+"/"+this.g;null!=this.h&&(a+="/"+this.h);null!=this.response&&(a+=": ",a=Na(this.response)?a+Bn(this.response,this.j,this).join("; "):a+this.j(this.response));return a+"]"};
oM.prototype.j=function(a){if(null!=a&&null!=a.error){var b=a.error;a=b.message+" "+b.code;b=b.data||b.errors;null!=b&&(b=Bn(b,function(c){var d=c.domain+" - "+c.reason;null!=c.debugInfo&&(d+=" = "+xe(c.debugInfo,"\n",4).slice(0,3).join(" - "));return d}),zn(b)||(a+=": "+b.join(", ")));return a}return Na(a)&&0<a.length?String(a):"Unknown"};var pM=function(){this.G={}},qM=function(a,b){a.G=b||{};return a};var rM=function(a,b,c,d){this.l=a;this.m=b;this.j=this.g=a;this.w=c||0;this.o=d||2};rM.prototype.h=0;rM.prototype.reset=function(){this.j=this.g=this.l;this.h=0};var sM=function(a){a.j=Math.min(a.m,a.j*a.o);a.g=Math.min(a.m,a.j+(a.w?Math.round(a.w*(Math.random()-.5)*2*a.j):0));a.h++};var uM=function(){this.G={};this.g=new tM};y(uM,pM);k=uM.prototype;k.toString=function(){return"<# "+this.l+" to "+(this.j||"")+" for "+this.h+">"};k.Tk=function(a){this.j=a;return this};k.Dk=function(a){this.h=a;return this};k.Mk=function(){return this};k.Pk=function(){return this};k.Uk=function(){return this};k.gi=function(){return this};k.Hf=function(){};k.Vk=function(){return this};k.ug=function(){return this.g};k.Vo=function(){};k.Fo=function(){};k.cancel=function(){this.Hf("c")};var tM=function(){};
tM.prototype.Nk=function(a){this.g=a;return this};tM.prototype.Ok=function(){};tM.prototype.callback=function(a){this.g(a)};var vM=new VJ("FwiOSb");var wM=function(a,b,c,d){this.status=a;this.Yc=b;this.g=c;this.response=d};wM.prototype.toString=function(){var a="["+this.status+"/"+this.Yc;null!=this.g&&(a+="/"+this.g);null!=this.response&&null!=this.response.Cb&&(a+=": ",a=Na(this.response.Cb)?a+Bn(this.response.Cb,this.h,this).join("; "):a+this.h(this.response.Cb));return a+"]"};
wM.prototype.h=function(a){if(a&&(a.error||a.Cb&&a.Cb.error)){var b=a.error||a.Cb.error;a=b.message+" "+b.code;b=b.data||b.errors;null!=b&&(b=Bn(b,function(c){var d=c.domain+" - "+c.reason;null!=c.debugInfo&&(d+=" = "+xe(c.debugInfo,"\n",4).slice(0,3).join(" - "));return d}),zn(b)||(a+=": "+b.join(", ")));return a}return Na(a)&&0<a.length?a+"":JSON.stringify(a)};var yM=function(){this.G={};this.Z=new xM;this.C=new rM(1E3,36E4);this.g=new rM(6E4,6E4);this.R=!1;this.mb=[];this.o=[]};y(yM,pM);var zM=function(a){var b=Xa();a.w=b;return a};yM.prototype.Tk=function(a){this.s=a;return this};yM.prototype.Dk=function(a){this.m=a;return this};yM.prototype.Mk=function(a){this.ka=a;return this};var AM=function(a){return a.ka||a.m};k=yM.prototype;k.Pk=function(a){this.L=a;return this};k.Uk=function(a){this.W=a;return this};k.gi=function(a){this.K=a;return this};
k.Hf=function(a){this.l=a};k.Vk=function(a){this.D=a;return this};k.ug=function(){return this.Z};k.Vo=function(a){this.j=a};k.Fo=function(a){this.g=0>=a?null:new rM(a,a)};var BM=function(a){var b=a.C?a.C.g:0;b=Math.min(b,24E4);b=Math.round(.5*b)+Math.floor(Math.random()*b);a.C&&sM(a.C);a.j--;return b+0};yM.prototype.cancel=function(){this.R=!0;this.Hf("c")};yM.prototype.toString=function(){return"<Request to "+AM(this)+" with payload "+this.K+">"};var xM=function(){};
xM.prototype.Nk=function(a){this.g=a;return this};xM.prototype.Ok=function(a){this.h=a};xM.prototype.callback=function(a){this.g(a)};var CM=function(a,b){pv.call(this);this.l=!1;this.F=bt();this.m=a;this.m.h.da.then(function(){this.F.resolve(null);this.l=!0;this.M("e")},null,this);this.g=b;this.u=Wf("realtime.network.RetryClient");this.G=0;this.C=[];this.j=new Hm;this.h=new Hm};u(CM,pv);CM.prototype.aa=function(){pv.prototype.aa.call(this);var a=this.j.Lb();Hb(a,tv);a=this.h.Lb();Hb(a,tv)};var DM=function(a,b){Hb(a.C,function(c){c.g(b)},a)};
CM.prototype.request=function(a){if(!this.w()&&!a.R)if(this.l){var b=this.G++;a.h=b;this.g&&this.g.onRequest(a);try{D(this.u,"Sending request, path = "+a.m+", requestNum = "+a.h);a.Hf("p");var c=null!=EM?Mm(EM):null;DM(this,a);var d=this.m.sendRequest(zM(a),c);d.then(Wa(this.o,a),Wa(this.s,a),this);null!=(a.g?a.g.g:null)&&this.h.set(a.h,sv(w(this.H,this,a,d),(a.g?a.g.g:null)||void 0))}catch(e){Yf(this.u,"Failed to enqueue Apiary request: ",e),FM(this,a,new wM("fatal","request_queuing",null,null),
0)}}else C(this.u,"Apiary Client request while client is not ready")};CM.prototype.H=function(a,b){var c=new wM("retry","deadline_exceeded",null,null);b.cancel();FM(this,a,c,0)};
CM.prototype.o=function(a,b){GM(this,a);if(!this.w()&&"p"==a.l){var c="ok";a.Hf("o");a.ug().callback(b);if("o"!=a.l){var d="response_callback";switch(a.l){case "r":c="retry";break;case "d":c="fatal";break;default:Yf(this.u,"Received an unexpected response state: "+a.l)}}"ok"==c?(Zf(this.u,"Apiary response succeeded."),this.g&&this.g.C(a,b)):FM(this,a,new wM(c,d,b.ed,b),0)}HM(this,a)};
var GM=function(a,b){var c=a.j.get(b.h);null!=c&&(a.j.remove(b.h),tv(c))},HM=function(a,b){var c=a.h.get(b.h);null!=c&&(a.h.remove(b.h),tv(c))};
CM.prototype.s=function(a,b){if(!(b instanceof Ps)){GM(this,a);if(!this.w()&&"p"==a.l){var c=b.Yc,d=b.status,e=0;if("network_or_frontend"==b.Yc){switch(b.g){case -1:case 0:case 6:c="transport_unavailable";d="retry";break;case 8:c="deadline_exceeded";d="retry";break;case 400:c="bad_request";d="fatal";break;case 401:c="unauthorized";d="fatal";break;case 402:c="payment_required";d="fatal";break;case 403:c="forbidden";d="fatal";break;case 102:c="processing";break;case 500:c="internal_server_error";break;
case 503:c="service_unavailable"}b.status=d;b.Yc=c;if(null!=b.response.headers&&null!=b.response.headers["Retry-After"])try{e=1E3*parseInt(b.response.headers["Retry-After"],10),e=Math.min(Math.max(e,0),72E5)}catch(f){}}FM(this,a,b,e)}HM(this,a)}};
var FM=function(a,b,c,d){if(!a.w()&&("p"==b.l||"r"==b.l)){D(a.u,"Request failed: "+b.h+" to "+(b.s||"")+" for path "+b.m);a.g&&a.g.onError(b,c);var e=null!=b.j?b.j:0;"retry"==c.status&&0<e?(a.j.set(b.h,sv(w(a.request,a,b),Math.max(BM(b),d))),"deadline_exceeded"==c.Yc&&b.g&&sM(b.g)):(b.cancel(),b.ug().h(c))}},EM=null;var IM=function(a,b,c,d,e){var f=this;pv.call(this);this.m=b;this.o=c;this.s=null==e?"https://clients6.google.com":e;this.l=d;this.g=a;this.h=a instanceof CM;this.C=new Qs(function(g){f.g.l?g():iv(f.g,f.h?"e":"d",function(){return g()})})};y(IM,pv);
IM.prototype.request=function(a,b,c,d,e,f,g){this.C.then(function(){var h=(this.h?new yM:new uM).Tk(this.s).Mk(a).Dk("/"+this.m+"/"+this.o+"/"+a).Pk(b).Uk(c).Vk(void 0===g||g).gi(d),l=bt();l.da.then(e,f||Ka);h.ug().Nk(w(l.resolve,l)).Ok(w(l.reject,l));this.g.request(h)},null,this)};
IM.prototype.makeRequest=function(a,b,c,d,e,f,g,h){var l=id(ue(this.l))?{}:{key:this.l},p=qM((this.h?new yM:new uM).Tk(this.s).Mk(a).Dk("/"+this.m+"/"+this.o+"/"+a).Pk("POST").Uk(l).Vk(!0).gi(b),g);h&&p instanceof yM&&(p.F=h);null!=d&&(null!=f&&p instanceof yM&&f>d?p.g=0>=d?null:new rM(d,f):p.Fo(d));null!=e&&p.Vo(e);var r=bt();p.ug().Nk(w(function(t){var A=null;try{var z=this.h?t.Cb:t;A=z instanceof J?z:0<z.length?new c(z):null}catch(N){t=this.h?new wM("fatal","response_decoding",null,t):new oM("fatal",
"response_decoding",null,t);r.reject(t);return}var G=A;z=0;G&&Oa(G.getResponseHeader)&&(G=G.getResponseHeader())&&Oa(G.Ia)&&(z=G.Ia());1==z?r.resolve(A):!this.h||2!=z&&3!=z?(A=11===z,this.h?r.reject(new wM("fatal",A?"not_found":"backend",null,t)):r.reject(new oM("fatal",A?"not_found":"backend",null,t))):p.Hf("r")},this)).Ok(w(r.reject,r));this.C.then(w(this.g.request,this.g,p));return r.da};var JM=function(a,b,c){a=Tq(a,encodeURIComponent("$ct"),c);if(null==navigator.sendBeacon||!navigator.sendBeacon(a,b)){c=a;var d="POST",e=b;a=Tq(a,encodeURIComponent("$httpMethod"),"POST");a=Tq(a,encodeURIComponent("$req"),b);2048>a.length&&(c=a,d="GET",e=null);try{var f=Gv(Ev);f.open(d,c,!1);f.send(e)}catch(g){b=Wf("realtime.network.Beacon"),Yf(b,"Cannot fallback from sendBeacon",g)}}};var KM=function(a){return(a=a.ea())&&a.dc()},LM=function(a){a=a.getResponseHeader();return!!a&&1===a.Ia()},MM=function(a){a=(a=a[0]&&Q(a[0],BB,1))&&R(a,zB,6)||[];return 1==a.length?a[0].qa():null};var NM=function(a,b,c,d,e,f){IM.call(this,a,b,c,d,e);this.j=f||new Iw;this.G=new lL(this);this.F=this.G.signal()};u(NM,IM);NM.prototype.makeRequest=function(a,b,c,d,e,f,g,h){!0!==h&&OM(this,b);return IM.prototype.makeRequest.call(this,a,b,c,d,e,f,g,h&&h.va?h:null).then(this.H,null,this)};var OM=function(a,b){if(b&&a.j.g&&Oa(b.ea)&&Oa(b.O)){var c=b.ea()||new El;S(c,3,a.j.g);b.O(c)}};NM.prototype.H=function(a){Oa(a.getResponseHeader)&&LM(a)&&PM(this,a);return a};
var PM=function(a,b){(b=(b=Oa(b.ea)&&b.ea()||null)&&Q(b,Fl,3))&&Jw(a.j,b)};var QM=function(){pv.apply(this,arguments)};u(QM,pv);QM.prototype.pf=function(a,b,c){try{return pv.prototype.pf.call(this,a,b,c)}catch(d){return!1}};var RM=function(){QM.call(this);this.u=Wf("realtime.pushnotifications.Dispatcher")};u(RM,QM);RM.prototype.g=function(a){var b=Q(a,xJ,2),c;if(b)for(a=0;a<SM.length;a++){if(c=SM[a].Rb.call(b)){if("p"==SM[a].eventType)for(b=c,a=0;a<SM.length;a++){if(c=TM[a].Rb.call(b)){var d=TM[a].eventType;break}}else d=SM[a].eventType;break}}else(b=Q(a,AH,3))&&(c=Q(b,zH,1))&&(d="l");c?(D(this.u,"Received notification of type "+d),this.M(new UM(d,c))):C(this.u,"A batch notification is empty.")};
var SM=[{Rb:xJ.prototype.ps,eventType:"m"},{Rb:xJ.prototype.rs,eventType:"o"},{Rb:xJ.prototype.Vr,eventType:"i"},{Rb:xJ.prototype.Ur,eventType:"j"},{Rb:xJ.prototype.qs,eventType:"n"},{Rb:xJ.prototype.Lr,eventType:"f"},{Rb:xJ.prototype.Sr,eventType:"g"},{Rb:xJ.prototype.us,eventType:"v"},{Rb:xJ.prototype.Mr,eventType:"h"},{Rb:xJ.prototype.ts,eventType:"p"},{Rb:xJ.prototype.Tr,eventType:"k"}],TM=[{Rb:wJ.prototype.j,eventType:"q"},{Rb:wJ.prototype.o,eventType:"s"},{Rb:wJ.prototype.D,eventType:"t"},{Rb:wJ.prototype.C,
eventType:"u"}],UM=function(a,b){U.call(this,a);this.notification=b};u(UM,U);var WM=function(a,b){lM.call(this,b);a instanceof NM?(b=a,a=new IM(a.g,a.m,a.o,a.l,a.s)):a instanceof IM?b=new NM(a.g,a.m,a.o,a.l,a.s,new Iw):a=b=a;this.j=b;this.C=a;this.D=new VM;this.o=new RM;null==L(this,1)&&O(this,1,32);a=L(this,2)||"rmjs";O(this,2,a);a=L(this,3)||"Unknown";O(this,3,a);nM(this,L(this,4)||"0.0");null==M(this,5,0)&&O(this,5,0);this.bi(this.bc()||L(this,2)+we().toUpperCase());a=L(this,7)||this.bc()+"@fake.com";O(this,7,a);null==ll(this,9)&&O(this,9,.01);a=L(this,10)||null;O(this,
10,a);a=L(this,11)||"https://clients2.google.com/cr/report";O(this,11,a);a=L(this,12)||null;O(this,12,a);a=Q(this,IL,13)||new IL;S(this,13,a);null==ml(this,8)&&O(this,8,!1);null==ml(this,16)&&O(this,16,!1);a=L(this,14)||[];O(this,14,a||[]);a=Q(this,KL,17)||new KL;S(this,17,a);a=this.Lh()||null;O(this,18,a)};u(WM,lM);WM.prototype.register=function(a){a.registerService(XM,this);YM(this,a);return this};
var YM=function(a,b){W(b,zK).then(function(c){var d={Qg:function(e){var f=hM(M(a,5,0),ZM(a));S(e,5,f);var g=$L(e);f=Q(g,CJ,9)||new CJ;S(g,9,f);g=L(a,2);O(f,4,g);e=bM(e);f=L(a,7);e=O(e,8,f);f=a.bc();O(e,1,f)},Rg:function(){}};$M(c,d);ts(b,function(){Zb(c.j,d)})})};WM.prototype.bi=function(a,b){b=b?we().toUpperCase():"";return lM.prototype.bi.call(this,a+b)};
var aN=function(a){var b=new gB;var c=new bB;var d=L(a,1);c=O(c,1,d);b=S(b,1,c);c=new YA;d=a.bc();c=O(c,1,d);b=S(b,2,c);b=O(b,4,"en");a=hM(M(a,5,0),ZM(a));return S(b,7,a)},ZM=function(a){return L(a,7).endsWith("@hangouts-enterprise-devices.gserviceaccount.com")},XM=new VJ("CgjDUd"),VM=function(){};function bN(a,b){a=aN(a);var c=Q(a,YA,2);O(c,4,b);return a};var cN=new WeakMap,dN=function(a,b){GL.call(this);this.u=Wf("realtime.collections.apiary.OperationExecutor");this.h=a;this.o=b;this.g=[]};u(dN,GL);var eN=function(a,b){cN.has(a)||(b=new dN(b,function(){return W(a,BK).then(function(c){return c.h})}),cN.set(a,b));return cN.get(a)},fN=function(a){return a.o().then(function(b){return bN(a.h,b)})};dN.prototype.execute=function(a,b){if(a.m())throw new WK(a);void 0===b&&a.j?(this.g.push(a),1==this.g.length&&Ks(this.m,this)):gN(this,a,b)};
dN.prototype.m=function(){for(var a=0;a+5<this.g.length;)hN(this,this.g.slice(a,a+5)),a+=5;1==this.g.length-a?gN(this,this.g[a]):hN(this,this.g.slice(a));this.g.length=0};
var gN=function(a,b,c){c=void 0===c?b.Eg():c;var d=b.l,e=VK(b);fN(a).then(function(f){e.setRequestHeader(f);D(a.u,"Making request for operation: "+b+", jid: "+a.h.bc());f=b.Xh();var g=Math.max(c,b.Wj()||0);ft(a.h.j.makeRequest(d,e,b.R,c,f,g,{isCollectionOperation:!0}).then(function(h){return iN(a,b,h)}),function(h){return jN(a,b,h)})})},iN=function(a,b,c){var d=c.getResponseHeader();if(1==d.Ia())d=Oa(c.ea)&&null!=c.ea()?c.ea().dc():null,"string"===typeof d&&(d=parseInt(d,10)),d=null==d?-1:d,c=b.K(c),
c={version:d,data:c},D(a.u,"Apiary operation succeeded for "+b+", result: "+c),b.s=!0,b.D.resolve(c);else{var e=Error(L(d,8));e.stack=L(d,2)||"Missing Stack";Yf(a.u,"Apiary operation "+b+" failed with status "+d.Ia(),e);jN(a,b,new oM("fatal","backend",null,c))}},jN=function(a,b,c){b.s=!0;Yf(a.u,"Apiary operation failed for "+b+": "+c);b.D.reject(c)},hN=function(a,b){var c=new RC;fN(a).then(function(d){c.setRequestHeader(d);SC(c,b.map(function(f){return f.j.set(new NC,VK(f))}));D(a.u,"Making bulk request for "+
b.length+"operations , jid: "+a.h.bc());d=Math.max.apply(null,b.map(function(f){return f.Xh()}));var e=b.map(function(f){return f.Eg()}).filter(function(f){return void 0!==f});e=e.length?Math.min.apply(null,e):void 0;ft(a.h.j.makeRequest("hangouts/bulk",c,oD,e,d,void 0,{isCollectionOperation:!0}).then(function(f){return kN(a,b,f)}),function(f){return lN(a,b,f)})})},kN=function(a,b,c){PM(a.h.j,c);var d=R(c,mD,2);b.forEach(function(e,f){(f=e.j.get(d[f]))?(PM(a.h.j,f),iN(a,e,f)):jN(a,e,new oM("fatal",
"backend",null,c))})},lN=function(a,b,c){b.forEach(function(d){return jN(a,d,c)})};var mN=function(a,b,c){U.call(this,"w");this.Pc=b;this.vc=a;this.removed=c};u(mN,U);var nN=function(a,b){this.g=a;this.eventType=b};var oN=function(){pv.call(this)};u(oN,pv);La(oN);var X=function(a){T.call(this);this.Eb=a;this.R={}};y(X,T);var pN=[];X.prototype.listen=function(a,b,c,d){return qN(this,a,b,c,d)};
var qN=function(a,b,c,d,e,f){Array.isArray(c)||(c&&(pN[0]=c.toString()),c=pN);for(var g=0;g<c.length;g++){var h=bv(b,c[g],d||a.handleEvent,e||!1,f||a.Eb||a);if(!h)break;a.R[h.key]=h}return a},sN=function(a,b,c,d){rN(a,b,c,d,void 0)},rN=function(a,b,c,d,e,f){if(Array.isArray(c))for(var g=0;g<c.length;g++)rN(a,b,c[g],d,e,f);else(b=av(b,c,d||a.handleEvent,e,f||a.Eb||a))&&(a.R[b.key]=b)},tN=function(a,b,c,d,e,f){if(Array.isArray(c))for(var g=0;g<c.length;g++)tN(a,b,c[g],d,e,f);else d=d||a.handleEvent,
e=Pa(e)?!!e.capture:!!e,f=f||a.Eb||a,d=cv(d),e=!!e,c=Qu(b)?Xu(b.K,String(c),d,e,f):b?(b=ev(b))?Xu(b,c,d,e,f):null:null,c&&(kv(c),delete a.R[c.key]);return a};X.prototype.removeAll=function(){xc(this.R,function(a,b){this.R.hasOwnProperty(b)&&kv(a)},this);this.R={}};X.prototype.aa=function(){X.Ab.aa.call(this);this.removeAll()};X.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var wN=function(a,b,c,d,e){e=void 0===e?null:e;pv.call(this);var f=this;this.g=c;this.ra=d;this.l=ZK(this.g,b);this.Qa=++uN;this.T=Wf("Collection."+this.Qa);this.oa=d.h;this.Sa=e&&e.g;this.zc=e&&e.eventType;this.wb=d.tj();this.Wc=new X(this);this.N(this.Wc);this.data={};this.Wb=0;this.ob=[];this.kb={};this.h=-2;this.G=!0;this.s=bt();this.state="ha";this.config=Cl(a);oN.Kb();this.Z={};this.fc=qc;this.C=new lL(this);this.Da=this.C.signal();this.onChange=this.C.signal();this.Aa=function(g){f.g.m(g.data);
return new vN(g.version,g.data,[],"da")}};u(wN,pv);wN.prototype.toString=function(){return"[Collection #: "+this.Qa+", id: "+this.l+", data version: "+this.h+"]"};var xN=function(a,b){return new vN(b.version,[],a,"da")},yN=function(a){"ha"==a.state&&(a.state="fa",a.Sa&&a.Wc.listen(a.Sa,a.zc,a.Mc))};wN.prototype.start=function(a){a&&zN(this,a);"ha"==this.state&&yN(this);if("fa"!=this.state)return null;this.state="ga";AN(this);D(this.T,"Collection started: "+this.toString()+", "+this.m());return null};
wN.prototype.stop=function(){if("ga"==this.state||"fa"==this.state)this.flush(),this.Ya(),this.state="ha",D(this.T,"Collection stopped: "+this.toString()+": "+this.m())};var AN=function(a){a.G&&a.s&&(D(a.T,"Initial data available: "+a.toString()),a.s.resolve(a.ob),a.s=null)};wN.prototype.Ya=function(){this.Sa&&tN(this.Wc,this.Sa,this.zc,this.Mc)};var zN=function(a,b){b instanceof a.g.g&&(b=ZK(a.g,a.g.j(b)));a.l=BN(b)};
wN.prototype.nb=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];if(0==b.length)return this.g.nb(this.g.j(this.l));if(b[0]instanceof this.g.g)return this.g.nb(this.g.h(b[0]));b=Array.prototype.concat.apply(Array.prototype,b);return this.g.nb(this.g.j(this.l),b)};wN.prototype.F=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return this.kb[CN(this,Array.prototype.concat.apply(Array.prototype,b))]||null};var DN=function(a){return"ga"==a.state&&!0};
wN.prototype.aa=function(){this.flush();this.stop();this.s&&(C(this.T,"Never any data: "+this.toString()),this.s.da.cancel(),this.s=null);pv.prototype.aa.call(this)};wN.prototype.get=function(){return this.ob};var EN=function(a){return a.s?a.s.da:Us(a.get())};wN.prototype.flush=function(){do{FN(this);var a=this.R()}while(0<a)};var FN=function(a){xc(a.Z,function(b){for(;b&&1<=b.length&&b[0].g;)b.shift()})};wN.prototype.xa=function(){return Cc(this.data).map(function(a){return a.va()})};
wN.prototype.add=function(a,b){CN(this,a);if(GN(this,a)&&this.wb)return b=HN(this,"ja",a),Ks(this.R,this),b;a=this.ra.vd([a]);return IN(this,a,b,this.Aa)};var JN=function(a,b,c){CN(a,b);if(GN(a,b)&&a.wb)return c=HN(a,"ka",b),Ks(a.R,a),c;b=a.ra.wd([b]);return IN(a,b,c,a.Aa)};wN.prototype.remove=function(a,b,c){var d=KN(this,a);return GN(this,a)&&null==c&&this.wb?(a=HN(this,"la",d,b),Ks(this.R,this),a):IN(this,LN(this,[d],b),c,Wa(xN,[d]))};
var HN=function(a,b,c,d){var e=a.Eb(c).toString(),f=a.Z[e]||[];a.Z[e]=f;e=null;a=f.length;if(1<=a&&!f[a-1].g)if(a=f[a-1],"ja"==b){if("ja"==a.type||"ka"==a.type)e=a.yb,f.pop()}else if("ka"==b&&("ja"==a.type||"ka"==a.type)){b=a.resource;d=JSON.parse(b.va());c=JSON.parse(c.va());for(f=0;f<c.length;f++)null==c[f]||Al(d[f],c[f])||(d[f]=c[f]);c=new b.constructor(d);a.resource=c;return a.yb.da}e=e||bt();f.push(new MN(b,c,e,d));return e.da};
wN.prototype.R=function(){var a=0,b={};xc(this.Z,function(c){if(c&&1<=c.length&&(c=c[0],!c.g)){c.g=!0;if("la"==c.type&&c.h){var d=[c.resource];NN(this,LN(this,d,c.h),Wa(xN,d),[c.yb],d)}else d=b[c.type]||[],d.push(c),b[c.type]=d;a++}},this);xc(b,function(c,d){if(1<=c.length){var e=[],f=[];c.forEach(function(g){e.push(g.resource);f.push(g.yb)});switch(d){case "ja":NN(this,this.ra.vd(e),this.Aa,f,e);break;case "ka":NN(this,this.ra.wd(e),this.Aa,f,e);break;case "la":NN(this,LN(this,e),Wa(xN,e),f,e);break;
default:Eb("A request with type "+d+" was put in the queue.")}}},this);return a};var NN=function(a,b,c,d,e){null==b&&d.forEach(function(g){g.reject("Operation not available")});b.Xj(M(a.config,7,0));b.Yg(M(a.config,8,6E4),M(a.config,13,6E4));var f=e.map(a.Eb,a);e=b.o();et(e,function(){return ON(a,f)});ft(e.then(w(a.Lc,a,b,c,d,f)),function(g){PN(a,b,g);d.forEach(function(h){return h.reject(g)})});a.oa.execute(b)};wN.prototype.H=function(){return!0};
var LN=function(a,b,c){return a.ra.Nd(b.map(a.sa,a),c)},GN=function(a,b){return b instanceof QN?$K(a.g,a.sa(b)):$K(a.g,b)},KN=function(a,b){b=ZK(a.g,a.g.h(b));return new QN(a.g,b)},RN=function(a,b){var c=a.g;b=a.sa(b);a=aL(c,a.l,c.j);c=aL(c,b,c.j);return mc(a,c)},IN=function(a,b,c,d){if(null==b)return Vs("Operation not available");var e=bt();SN(a,b,d,e,c);Zf(a.T,"Executing operation: "+b);a.oa.execute(b);return e.da},SN=function(a,b,c,d,e){e=void 0===e?M(a.config,7,0):e;b.Xj(e);e=b.Eg()||M(a.config,
8,6E4);var f=b.Wj()||Math.max(e,M(a.config,13,6E4)||0);b.Yg(e,f);ft(b.o().then(w(a.Lc,a,b,c,[d],null)),function(g){PN(a,b,g);d.reject(g)})};
wN.prototype.Lc=function(a,b,c,d,e){var f=this;D(this.T,"Operation executed: "+a+", result:"+e);b&&(this.H(e.version)?(a=b(e))?this.La(a):D(this.T,"Operation resulted in no update"):DN(this)&&Eb("Result of an operation must have a valid version number, if the collection is active."));!d||null==e.data||1>=e.data.length?c[0].resolve(e.data):c.forEach(function(g,h){var l=d[h];h=e.data.filter(function(p){return f.Eb(p).equals(l)});0==h.length&&Yf(f.T,"Result data is empty after filtering for target resource id "+
l);g.resolve(h)})};
var PN=function(a,b,c){var d="Operation failed: "+c;Yf(a.T,d,c instanceof Error?c:Error(d));new TN(b.Sm(),b.Rm(),c);c.response&&c.response.getResponseHeader&&(b=c.response.getResponseHeader().Ia(),(c=UN.get(b))&&VN(a,c,"Collection apiary operation failed with response code "+b+" triggering endcause "+c))},ON=function(a,b){var c=!1;b.forEach(function(d){var e=a.Z[d.toString()];e&&1<=e.length?(e.shift(),c=c||1<=e.length):Yf(a.T,"A writing request with resource id "+d+" completed but it is not in the request queue.")});c&&
a.R()};wN.prototype.Mc=function(a){"ga"!=this.state&&"fa"!=this.state||this.pb(a)};
wN.prototype.pb=function(a){var b=this.hc(a);D(this.T,"Received push notification, version: "+b+", checking if any updates apply to this collection "+this.toString());var c=WN(this,a);a=XN(this,a);c.length||a.length?(D(this.T,"Notification applies to this collection: version: "+b+", add/modify: "+c.length+", remove:"+a.length),this.g.m(c),b=new vN(b,c,a,"ca"),Zf(this.T,"Created partial update for notification: "+b),Xf(this.T,Pf,"Add/modify: ["+b.Ye.join("|")+"], remove: ["+b.Mf.join("|")+"]"),this.La(b)):
D(this.T,"Notification does not apply to this collection, ignoring.")};wN.prototype.hc=function(){return-2};var WN=function(a,b){var c=[];b.notification.kc().forEach(function(d){var e=a.g;d=d instanceof e.g?d:new e.g(JSON.parse(d.va()));$K(a.g,d)?RN(a,KN(a,d))&&c.push(d):d.va()});return c},XN=function(a,b){if(!b.notification.Tc)return[];var c=[];b.notification.Tc().forEach(function(d){var e=a.g.w(d);$K(a.g,e)?(d=KN(a,e),RN(a,d)&&c.push(d)):d.va()});return c};
wN.prototype.La=function(a){Zf(this.T,"Begin processing update: "+a);a instanceof vN&&(Zf(this.T,"Applying partial update: "+a),YN(this,a));Zf(this.T,"Finish processing update: "+a+": "+this.m())};wN.prototype.m=function(){return"state: "+this.state+", local version: "+this.h+", snapshot size: "+this.Wb};
var YN=function(a,b){Zf(a.T,"Processing partial update: "+b);Xf(a.T,Pf,"Add/modify: ["+b.Ye.join("|")+"], remove: ["+b.Mf.join("|")+"]");b.Ye.forEach(function(d){$K(a.g,d)?a.data[CN(a,d)]=BN(d):d.va()});var c=[];b.Mf.forEach(function(d){var e=CN(a,d);a.data[e]?delete a.data[e]:c.push(d)});0<c.length&&xs(c);ZN(a)},ZN=function(a){var b={},c={};xc(a.data,function(g,h){this.fc(g)&&(b[h]=g,c[h]=g)},a);var d=[],e=[];xc(a.kb,function(g,h){var l=b[h];l?(delete c[h],g==l||g&&l&&g instanceof l.constructor&&
Al(g.Ac(),l.Ac())||e.push(l)):d.push(g)});var f=Cc(c);a.kb=b;a.ob=Cc(b);a.Wb=Ac(a.data);if(0<e.length||0<f.length||0<d.length)D(a.T,"Obtained update of the filtered view : modified: "+e.length+", added: "+f.length+", removed:"+d.length),Xf(a.T,Pf,"Modified: ["+e.join("|")+"], added: ["+f.join("|")+"], removed: ["+d.join("|")+"]"),a.C.V(a.onChange,{Pc:f,vc:e,removed:d}),a.M(new mN(e,f,d))},$N=function(a,b){a.fc=b;ZN(a)};wN.prototype.Eb=function(a){return null==a||a instanceof QN?a:KN(this,a)};
var CN=function(a,b){var c;Array.isArray(b)?c=b:c=b instanceof QN?YK(a.g,b.g):YK(a.g,b);return xs(c)},VN=function(a,b,c){"ia"!=a.state&&(a.Ya(),a.state="ia",Yf(a.T,"Collection failed: "+a.toString()+": "+a.m(),Error(c)),a.C.V(a.Da,{Ib:b,reason:c}))};wN.prototype.sa=function(a){return a.g};var bO=function(a){this.g=a;this.id=++aO},vN=function(a,b,c,d){bO.call(this,a);this.h=d;this.Ye=b;this.Mf=c};u(vN,bO);
vN.prototype.toString=function(){return"[Partial update id: "+this.id+", version: "+this.g+", add/modify: "+this.Ye.length+", remove: "+this.Mf.length+", type: "+this.h+"]"};function BN(a){return a instanceof J?Cl(a):a.clone()}var MN=function(a,b,c,d){this.type=a;this.resource=b;this.yb=c;this.h=void 0===d?null:d;this.g=!1},UN=(new Map).set(10,67),uN=0,aO=0,QN=function(a,b){this.h=a;this.g=b};QN.prototype.equals=function(a){return bL(this.h,this.g,a.g)};QN.prototype.toString=function(){return this.g.va()};
var TN=function(a,b,c){a=Error.call(this,"operation: "+a+", error = "+yf(c));this.message=a.message;"stack"in a&&(this.stack=a.stack);this.request=b;this.we=c};u(TN,Error);var cO=function(a,b,c){T.call(this);this.D=null!=c?w(a,c):a;this.s=b;this.o=w(this.xs,this);this.h=!1;this.j=0;this.l=this.g=null;this.m=[]};y(cO,T);k=cO.prototype;k.ws=function(a){this.m=arguments;this.h=!1;this.g?this.l=Xa()+this.s:this.g=sv(this.o,this.s)};k.stop=function(){this.g&&(tv(this.g),this.g=null);this.l=null;this.h=!1;this.m=[]};k.pause=function(){++this.j};k.resume=function(){this.j&&(--this.j,!this.j&&this.h&&(this.h=!1,this.D.apply(null,this.m)))};k.aa=function(){this.stop();cO.Ab.aa.call(this)};
k.xs=function(){this.l?(this.g=sv(this.o,this.l-Xa()),this.l=null):(this.g=null,this.j?this.h=!0:(this.h=!1,this.D.apply(null,this.m)))};var dO=function(a,b,c,d,e,f,g,h){h=void 0===h?null:h;wN.call(this,b,c,d,e,f,g);this.T=Wf("realtime.collections.SyncableCollection of "+h);this.Id=a instanceof aK?new iL(a):a;this.nd=h;this.xb=e;this.h=-1;this.G=!1;this.ka=null;this.Ha=-1;this.j=[];this.Ma=this.Ba=this.eb=this.L=null;this.W=!1;this.ic=0;this.ta=null;this.o=new rM(M(this.config,2,1E3),M(this.config,3,6E4));this.Bc=this.C.signal();this.rd=this.C.signal();this.Ob=new cO(this.Vb,0,this)};u(dO,wN);
var gO=function(a,b,c){a.L=Us().then(function(){a.g.m(c);a.La(new eO(b,c,"pa"));fO(a,!1)});return a.L};dO.prototype.start=function(a,b){var c=this;wN.prototype.start.call(this,a);if("ga"!=this.state)return null;null==this.ka&&(this.ka=this.oa.j.attach(function(){hO(c,"oa",!0)},this));iO(this,!0);if(b)return D(this.T,"Initializing collection with data."),gO(this,b.version,b.data);D(this.T,"Starting initial resync.");return hO(this,"pa",!0)};
dO.prototype.Ya=function(){wN.prototype.Ya.call(this);null!=this.ka&&(this.oa.j.detach(this.ka),this.ka=null);tv(this.Ma);this.Ma=null;this.o.reset();tv(this.eb);this.eb=null;tv(this.Ba);this.ta=this.Ba=null;this.G=!1};dO.prototype.query=function(a,b){a=KN(this,a);a=this.xb.Md(this.sa(a));return IN(this,a,b)};dO.prototype.search=function(a){return IN(this,this.xb.re(BN(this.l)),a)};
var mO=function(a,b){"oa"!=b&&0==a.o.h&&HL(a.oa);Zf(a.T,"Starting sync. Type: "+b);var c="qa"==b||"ra"==b,d=a.xb.re(BN(a.l)),e=-2;ol(a.config,11,!1)&&(9E4>Date.now()-a.ic&&d.L(a.h)?e=a.h:a.ic=Date.now());d=IN(a,d,void 0,function(f){iO(a,!0);return e!=f.version?(a.g.m(f.data),new eO(f.version,f.data,b)):null});ft(d.then(function(){return fO(a,c)}),function(f){var g=(c?"Poll":"Resync")+" error: "+f;Yf(a.T,g,f instanceof Error?f:Error(g));jO(a,!0);DN(a)?(sM(a.o),kO(a)):lO(a)});a.L=d;ft(a.L,Ka);return d};
dO.prototype.H=function(a){return 0<=a};var nO=function(a){return null!=hO(a,"sa",!0)||a.L?a.L:Vs("Collection not yet started, so cannot resync.")};dO.prototype.pb=function(a){var b=!1,c=a.notification.tc();c&&""!=c&&(b=this.g.w(c),b=KN(this,b),b=RN(this,b));b?nO(this):wN.prototype.pb.call(this,a)};dO.prototype.hc=function(a){var b;Oa(a.notification.ea)&&a.notification.ea()&&(b=a.notification.ea().dc());return b};
dO.prototype.La=function(a){Zf(this.T,"Begin processing update: "+a);var b=a.g==this.Ha;this.Ha=Math.max(this.Ha,a.g);iO(this,!1);if(a instanceof eO)oO(this,a);else{pO(this,a.Ye,a.Mf);if(this.H(this.h)&&a.g<=this.h){var c=!1;b&&(c=!0);100<this.h-a.g&&(c=!0);c&&hO(this,"ta",!0);Zf(this.T,"Ignoring update "+a+" below or equal to local version ("+this.h+")");return}b=this.j.find(function(d){return d.g<=a.g});if(null!=b&&a.g==b.g){C(this.T,"Duplicate update received, ignoring it.");return}Zf(this.T,"Queuing partial update: "+
a);Xb(this.j,a,b)}a instanceof eO?this.Vb():this.Ob.ws();Zf(this.T,"Finish processing update: "+a+": "+this.m())};
var pO=function(a,b,c){a.H(a.h)||(Zf(a.T,"Dispatch early notification: "),a.C.V(a.Bc,{Ye:b,Mf:c}))},hO=function(a,b,c){if(!DN(a)||a.W)return null;a.o.reset();var d=null;a.W=!0;c?d=mO(a,b):kO(a);return d},lO=function(a){a.W&&(D(a.T,"Ending resync"),a.W=!1,a.C.V(a.rd,void 0))},kO=function(a){var b=a.o.g;D(a.T,"Scheduling resync timer, backoff count: "+a.o.h+", backoff: "+b);a.Ma=sv(a.pd,b,a)};
dO.prototype.pd=function(){D(this.T,"Resync timer triggered, "+this.m());this.Ma=null;DN(this)?mO(this,"ta"):lO(this)};
var fO=function(a,b){D(a.T,(b?"Poll":"Resync")+" operation executed, "+a.m());jO(a,!1);if(a.G||!DN(a))lO(a);else{b=!1;var c=M(a.config,5,4);a.o.h>=c?(D(a.T,"Hard sync threshold reached ("+c+"), doing a hard resync"),b=!0):a.j.length>M(a.config,4,64)&&(Zf(a.T,"Number of queued updates is larger than the max ("+M(a.config,4,64)+"), clearing the queue"),b=!0);b?(Ub(a.j),a.o.reset(),mO(a,"ua")):(sM(a.o),kO(a))}};
dO.prototype.m=function(){return wN.prototype.m.call(this)+", is synced: "+this.G+", is resyncing: "+this.W+", queue size: "+this.j.length+", highest observed server version: "+this.Ha+(0<this.j.length?", smallest queued version: "+Fb(this.j).g+", largest queued version: "+this.j[0].g:"")};
dO.prototype.Vb=function(){this.Ob.stop();if(0!=this.j.length&&this.H(this.h)){Zf(this.T,"Trying to apply any queued updates, "+this.m());for(var a=0;0<this.j.length&&Fb(this.j).g<=this.h;){var b=this.j.pop();Zf(this.T,"Tossing queued update "+b+" below or equal to local version ("+this.h+")");a++}0<a&&Zf(this.T,"Tossed "+a+" queued old updates below or equal to local version ("+this.h+")");for(a=0;0<this.j.length;)if(b=Fb(this.j),b.g==this.h)this.j.pop(),a++;else if(b.g==this.h+1)this.h=b.g,YN(this,
b),this.j.pop(),a++;else{Zf(this.T,"Unable to incrementally apply next queued update,  lowest queue update version: "+b.g+", local version:"+this.h+", remaining queue length: "+this.j.length);break}Zf(this.T,"Applied "+a+" queued updates")}(this.G=0==this.j.length&&this.H(this.h))?AN(this):hO(this,"ta",!1)};dO.prototype.Nc=function(a){DN(this)&&(D(this.T,"Executing poll sync operation"),hO(this,a,!0),iO(this,!0))};
var iO=function(a,b){if(DN(a)){D(a.T,"Scheduling next poll for "+M(a.config,1,3E4)/1E3+" seconds from now");tv(a.eb);a.eb=sv(Wa(a.Nc,"qa"),M(a.config,1,3E4),a);var c=M(a.config,9,9E4);null==c&&(c=9E4);b&&0<c&&(tv(a.Ba),a.Ba=sv(Wa(a.Nc,"ra"),c,a))}},jO=function(a,b){if(b)if(null==a.ta)a.ta=Date.now(),C(a.T,"Sync operation failed, we will continue retrying for up to "+M(a.config,6,3E5)/1E3+" seconds before shutting down...");else{b=Date.now()-a.ta;var c="Sync operations failing for a period of "+b/
1E3+" seconds (limit configured to: "+M(a.config,6,3E5)/1E3+" seconds).";C(a.T,c);b>=M(a.config,6,3E5)&&VN(a,22,c)}else a.ta=null},oO=function(a,b){Zf(a.T,"Processing full update: "+b);Xf(a.T,Pf,"Snapshot: ["+b.data.join("|")+"]");if(a.h>=b.g&&100>a.h-b.g){var c=[];if(a.h==b.g){var d={};b.data.forEach(function(h){var l=CN(a,h);d[l]=!0;l=a.data[l]||null;if(null==l)c.push({local:null,server:h.va(),mismatch:"local_missing"});else{var p=l==h?null:l instanceof h.constructor?qO(JSON.parse(l.va()),JSON.parse(h.va())):
"_";null!=p&&c.push({local:l.va(),server:h.va(),mismatch:p})}});xc(a.data,function(h,l){d[l]||c.push({local:h.va(),server:null,mismatch:"server_missing"})})}if(0!=c.length)C(a.T,"Reapplying update with version that's the same, update: "+b.g+", local: "+a.h+", type: "+b.h),a.Id.g(1827,{Ub:a.nd+":"+c[0].mismatch});else{Zf(a.T,"Ignoring update with version not newer than local version, update: "+b.g+", local: "+a.h+", type: "+b.h);return}}var e=b.data.filter(function(h){if($K(a.g,h))return!0;h.va();
return!1}),f=[],g={};b.data.forEach(function(h){g[CN(a,h)]=!0});xc(a.data,function(h,l){g[l]||f.push(KN(a,h))});Zf(a.T,"Applying full update as partial and advancing version from "+a.h+" to "+b.g);a.h=b.g;YN(a,new vN(b.g,e,f,"ea"))},qO=function(a,b){if(Array.isArray(a)&&0===a.length||!1===a||0===a||""===a)a=null;if(Array.isArray(b)&&0===b.length||!1===b||0===b||""===b)b=null;if(a==b)return null;if(!Array.isArray(a)||!Array.isArray(b))return"";for(var c=0;c<Math.max(a.length,b.length);c++){var d=qO(a[c],
b[c]);if(null!=d)return c+(""===d?"":"."+d)}return null},eO=function(a,b,c){bO.call(this,a);this.data=b;this.h=c};u(eO,bO);eO.prototype.toString=function(){return"[Full update id: "+this.id+", version: "+this.g+", resource count: "+this.data.length+", sync type: "+this.h+"]"};var rO=function(){cL.apply(this,arguments)};u(rO,cL);rO.prototype.vd=function(a){return new TK("media_sessions/add",function(){var b=new hC;return wl(b,4,a)},cD,function(b){return R(b,bC,4)})};rO.prototype.wd=function(a){return new TK("media_sessions/modify",function(){var b=new cH;return wl(b,4,a)},eH,function(b){return R(b,bC,4)})};rO.prototype.Nd=function(){return null};var sO=function(){dL.apply(this,arguments)};u(sO,dL);k=sO.prototype;k.vd=function(a){return new TK("media_streams/add",function(){return IC(new HC,a)},jD,function(b){return R(b,tC,4)})};k.wd=function(a){return new TK("media_streams/modify",function(){var b=new ID;return wl(b,4,a)},KD,function(b){return R(b,tC,4)})};
k.Nd=function(a){if(!a.length)throw Error("Cannot create MediaStreamRemoveRequest with no stream identifiers.");return new TK("media_streams/remove",function(){return qH(O(pH(new oH,a[0].Zh()),2,2),a.map(function(b){return b.sk()}))},rH)};k.Md=function(a){return new TK("media_streams/query",function(){var b=new lH;var c=a.qa();b=O(b,5,c);c=a.rk();b=O(b,2,c);c=a.Zh();b=O(b,3,c);c=a.sk();return O(b,4,c)},mH,function(b){return[b.Na()]})};
k.re=function(a){return new TK("media_streams/search",function(){return KC(LC(MC(new JC,a.qa()),a.Zh()),a.rk())},lD,function(b){return R(b,tC,2)},{set:function(b,c){return PC(b,c)},get:function(b){return Q(b,lD,4)}})};var uO=new XK({Le:tC,Je:[tC.prototype.qa,tC.prototype.o,tC.prototype.vu],Ke:[tC.prototype.tk,tC.prototype.j,tC.prototype.uk],Re:[tC.prototype.ai],Se:[tC.prototype.vk],Oe:PH,Me:[PH.prototype.qa,PH.prototype.rk,PH.prototype.Zh],Ne:[PH.prototype.Wn,PH.prototype.tu,PH.prototype.Xn],Pe:[PH.prototype.sk],Qe:[PH.prototype.uu],Ot:tO});function tO(a){a.forEach(function(b){if(b=Q(b,vC,8))DC(b,L(b,1).map(vO)),R(b,xC,2).forEach(function(c){var d=L(c,2).map(vO);return O(c,2,d||[])})})}
var vO=function(a){return a>>>0};function wO(a,b,c,d,e,f,g){e=new e(eN(a,b));f=new nN(b.o,f);return new dO(new iL(a),Q(b,IL,13),c,d,e,f,b.D,g)};var xO=function(a,b,c){return wO(a,b,[c],new XK({Le:vB,Je:[vB.prototype.qa],Ke:[vB.prototype.Tn],Re:[],Se:[],Oe:BH,Me:[BH.prototype.qa],Ne:[BH.prototype.j],Pe:[],Qe:[]}),eL,"i","Hangout")},yO=function(a,b,c){return wO(a,b,[c],new XK({Le:jC,Je:[jC.prototype.qa],Ke:[jC.prototype.Un],Re:[jC.prototype.Y,jC.prototype.za],Se:[jC.prototype.qk,jC.prototype.Vn],Oe:ED,Me:[ED.prototype.qa],Ne:[ED.prototype.qu],Pe:[ED.prototype.Y,ED.prototype.za],Qe:[ED.prototype.ru,ED.prototype.su]}),gL,"n","MediaSources")};function zO(a,b,c){var d=xO(a,b,"");return d.add(c).then(function(e){zN(d,e[0]);return d},function(e){us(d);throw e;})}function AO(a,b,c,d){function e(h){if(1==h.getResponseHeader().Ia())return h=h.qa(),xO(a,b,h);throw new oM("fatal","backend",null,h);}function f(){return ft(BO(a,b,c).then(e),function(h){if(Xa()<g)return uv(5E3).then(f);throw h;})}var g=0;void 0!==d&&(c=Cl(c),O(c,5,!0),g=Xa()+d);return f()}
function BO(a,b,c){return W(a,BK).then(function(d){return d.h}).then(function(d){return b.j.makeRequest("hangouts/resolve",Cl(c).setRequestHeader(bN(b,d)),$C)})};var CO=function(a){this.g=a.g;this.xg=a.h};CO.prototype.ce=function(){return cc(this.g)};CO.prototype.toString=function(){return"RIDs(send="+this.xg+", rids="+this.ce()+")"};var DO=function(){this.g=[];this.h=!0};DO.prototype.ha=function(){return new CO(this)};var EO=function(a,b){a.g=cc(b);return a};var FO=function(a,b){this.g=a;this.h=cc(b)};FO.prototype.toString=function(){return"SsrcGroup(semantics="+this.g+", ssrcs="+this.h+")"};FO.prototype.fb=function(){return cc(this.h)};var IO=function(a,b,c,d,e,f,g){d=void 0===d?"un":d;e=void 0===e?"li":e;f=void 0===f?null:f;g=void 0===g?null:g;QM.call(this);this.j=a;this.Qa=b;this.Ga=c;this.g=d;this.h=e;this.l="sc"!==d;this.ld=null;GO(this,g);this.He=f;this.m=new lL(this);this.wc=nL(this.m);HO(this)};u(IO,QM);var HO=function(a){a.m.V(a.wc,{state:a.h,content:a.g})};IO.prototype.toString=function(){return"Source(id="+this.Qa+" type="+this.Ga+" content="+this.g+" state="+this.h+" participantId="+this.j+")"};IO.prototype.Y=function(){return this.j};
IO.prototype.getId=function(){return this.Qa};IO.prototype.getContent=function(){return this.g};var JO=function(a,b){a.g!=b&&(a.g=b,a.M("A"),HO(a))};IO.prototype.getState=function(){return this.h};var KO=function(a,b){a.h!=b&&(a.h=b,a.M("C"),HO(a))};IO.prototype.Wd=function(){return this.l};
var LO=function(a,b){a.l!=b&&(a.l=b,a.M("D"))},GO=function(a,b){var c=null!=a.ld&&0!=a.ld.length,d=null!=b&&0!=b.length;d?b=cc(b).sort(function(e,f){return e.g-f.g||e.h-f.h||e.width-f.width||e.height-f.height}):b=null;if(c=d!=c||d&&!mc(a.ld,b,eM))a.ld=b;return c};IO.prototype.M=function(a){return QM.prototype.M.call(this,a)};var MO=function(a){this.s=a.s;this.C=a.C;this.F=a.G;this.g=a.H;this.D=a.D;this.o=a.l;this.K=a.L;this.w=a.j;this.be=a.w;this.j=a.o;this.H=a.m;this.G=cc(a.h);this.h=a.F;this.m=cc(a.K);this.l=a.g};k=MO.prototype;
k.toString=function(){return"Stream(participantId="+this.C+", mediaType="+this.s+", sourceId="+this.F+", streamId="+this.g+", muted="+this.D+", downlinkPaused="+this.o+", uplinkPaused="+this.K+", croppable="+this.w+", mediaStreamId="+this.be+", mediaStreamTrackId="+this.j+", ssrcs="+this.G+", rids="+this.h+", ssrcGroups="+this.m+", adaptationFlags="+this.l+")"};k.ia=function(){return this.s};k.Y=function(){return this.C};k.za=function(){return this.F};k.lc=function(){return this.D};k.Wd=function(){return this.w};
k.fb=function(){return cc(this.G)};k.matches=function(a){return this.Y()==a.Y()&&this.ia()==a.ia()&&this.za()==a.za()&&this.g==a.g};var NO=function(a){this.s=(a=void 0===a?null:a)?a.s:null;this.C=a?a.C:"";this.G=a?a.F:null;this.H=a?a.g:null;this.D=a?a.D:!1;this.l=a?a.o:!1;this.L=a?a.K:!1;this.j=a?a.w:!0;this.w=a?a.be:null;this.o=a?a.j:null;this.m=a?a.H:null;this.h=a?cc(a.G):[];this.F=a?a.h:null;this.K=a?cc(a.m):[];this.g=a?a.l:0};NO.prototype.ha=function(){return new MO(this)};
var OO=function(a,b){a.s=b;return a},PO=function(a,b){a.C=b;return a},QO=function(a,b){a.G=b;return a},RO=function(a,b){a.H=b;return a},SO=function(a,b){a.D=b;return a},TO=function(a,b){a.l=b;return a},UO=function(a,b){a.L=b;return a},VO=function(a,b){a.j=b;return a},WO=function(a,b){a.w=b;return a},XO=function(a,b){a.o=b;return a},YO=function(a,b){a.m=b;return a},ZO=function(a,b){a.h=cc(b);return a},$O=function(a,b){a.h.push(b);return a};NO.prototype.fb=function(){return cc(this.h)};
var aP=function(a,b){a.F=b;return a},bP=function(a,b){a.K=cc(b);return a},cP=function(a,b){a.g=b;return a};var dP=function(a){QM.call(this);this.h=a;a.D=this;this.N(a);this.j="nr"};u(dP,QM);k=dP.prototype;k.xa=function(){return{config:this.yn(),muted:this.Nb(),state:eP(this)}};k.ia=function(){return this.h.Ga};k.Nb=function(){return"mu"==this.h.getState()};k.Fj=function(){return!1};k.yn=function(){return null};
var eP=function(a){switch(a.j){case "re":return chrome.i18n.getMessage("6950033741572394811");case "nr":return chrome.i18n.getMessage("8757444822404164848");case "nd":return chrome.i18n.getMessage("4782049665629043191");case "ad":return chrome.i18n.getMessage("2100823569845184829");case "fa":return chrome.i18n.getMessage("99290588561553105");case "st":return chrome.i18n.getMessage("7017840133230118615")}return""};
dP.prototype.C=function(a){if(a!==this.j){var b=this.Nb();this.j=a;this.M("I");b!==this.Nb()&&this.M("H")}};dP.prototype.eb=function(){};dP.prototype.Ba=function(){};var fP=function(a){this.g=a.g;this.h=a.h;this.j=a.j};fP.prototype.toString=function(){return"BandwidthConstraints(minBandwidthKbps="+(this.h+", maxBandwidthKbps=")+(this.g+", startBandwidthKbps=")+this.j};var gP=function(){this.j=this.h=this.g=-1};gP.prototype.ha=function(){return new fP(this)};var hP=function(a,b,c,d,e,f,g,h,l,p,r){this.g=a;this.o=b;this.h=c;this.w=d;this.l=e;this.m=f;this.s=g;this.j=h;this.D=l;this.C=void 0===p?null:p;this.F=void 0===r?null:r},iP=function(a,b){return a==b?!0:a&&b?a.g===b.g&&a.o===b.o&&a.h===b.h&&a.w===b.w&&a.l===b.l&&a.m===b.m&&a.s===b.s&&a.j===b.j&&a.D===b.D&&a.C===b.C&&a.F===b.F:!1};
hP.prototype.toString=function(){return"Candidate(component="+this.g+", priority="+this.o+", type="+(this.h+", protocol="+this.w+", ip="+this.l+", port=")+(this.m+", foundation="+this.s+", generation=")+(this.j+", network="+this.D+", relatedIp=")+(this.C+", relatedPort="+this.F+")")};hP.prototype.ja=function(){return new hP(this.g,this.o,this.h,this.w,this.l,this.m,this.s,this.j,this.D,this.C,this.F)};hP.prototype.zb=function(){return this.m};hP.prototype.wi=function(a){var b=this.ja();b.m=a;return b};var kP=function(a){this.Ig=a.w;this.Dd=a.s;this.Jg=a.o;this.Hg=a.m;this.yf=a.h;this.Be=a.g;this.g=a.l;this.Cd=Object.freeze(jP(a.j))};kP.prototype.toString=function(){return"Codec(name="+this.Jg+", mediaType="+this.Ig+", payloadType="+this.Dd+", bitrate="+this.Hg+", clockrate="+this.yf+", channels="+this.Be+", audioNack="+this.g+", params="+xs(this.Cd)+")"};kP.prototype.ia=function(){return this.Ig};kP.prototype.getName=function(){return this.Jg};var lP=function(a,b){return 0==kd(a.getName(),b)};
kP.prototype.clone=function(){return(new mP(this)).ha()};var mP=function(a){this.w=(a=void 0===a?null:a)&&a.Ig;this.s=a&&a.Dd;this.o=a&&a.Jg;this.m=a&&a.Hg;this.h=a&&a.yf;this.g=a&&a.Be;this.l=a&&a.g;this.j=jP(a?a.Cd:{})};mP.prototype.ha=function(){return new kP(this)};var nP=function(a){var b=new mP;b.w=a;return b},oP=function(a,b){a.s=b;return a};mP.prototype.bf=function(a){this.o=a;return this};var pP=function(a,b,c){a.j[b]=c;return a};
function jP(a){return Object.assign(Object.create(null),a)};var qP=function(a){this.Ce=a.j;this.Kg=a.g;this.Lg=a.h;this.zf=a.l};qP.prototype.toString=function(){return"Crypto(suite="+this.Ce+", keyParams=<redacted>, sessionParams_="+(null!=this.Lg?"<redacted>":null)+", tag="+this.zf+")"};var rP=function(){var a;this.j=(a=void 0===a?null:a)?a.Ce:null;this.g=a?a.Kg:null;this.h=a?a.Lg:null;this.l=a?a.zf:null};rP.prototype.ha=function(){return new qP(this)};var sP=function(a,b,c,d){this.h=a;this.l=b;this.g=c;this.j=d};sP.prototype.toString=function(){return"DataChannelDescriptor(label="+this.j+" id="+this.h+", SSRC="+(this.g+", format="+this.l+")")};sP.prototype.getChannelId=function(){return this.h};sP.prototype.ye=function(){return this.j};sP.prototype.equals=function(a){return null==a?!1:this.h==a.h&&this.j==a.j&&this.g==a.g};var tP=function(a,b,c){this.id=a;this.uri=b;this.mediaType=void 0===c?null:c};tP.prototype.toString=function(){return"RtpHeaderExtension(uri="+this.uri+", id="+this.id+", mediaType="+this.mediaType+")"};var uP=function(a){this.l=a.j;this.j=a.h;this.h=a.l;this.g=a.g};uP.prototype.xa=function(){return{port:this.zb(),name:this.getName(),messagesize:this.h,numstreams:this.g}};uP.prototype.zb=function(){return this.l};uP.prototype.getName=function(){return this.j};var vP=function(){var a;this.j=(a=void 0===a?null:a)?a.l:null;this.h=a?a.j:null;this.l=a?a.h:null;this.g=a?a.g:null};vP.prototype.ha=function(){return new uP(this)};vP.prototype.wi=function(a){this.j=a;return this};
vP.prototype.bf=function(a){this.h=a;return this};var wP=function(a,b){a.g=b;return a};var xP=function(a){this.o=a.l;this.D=a.o;this.w=a.j;this.g=a.g&&a.g.clone();this.j=a.h;this.h=a.m;this.s=a.w;this.m=a.C;this.C=a.s.slice();this.l=a.D};k=xP.prototype;k.toString=function(){return"StreamRequest(participantId: "+this.o+", sourceId: "+this.D+", mediaType: "+this.w+", resolution: "+(this.g&&this.g.width+"x"+this.g.height)+", frameRate: "+this.j+", adaptationReason: "+this.m+", send: "+this.h+", ssrcs: "+this.C+", streamId: "+this.l+")"};k.Y=function(){return this.o};k.ia=function(){return this.w};
k.za=function(){return this.D};k.sc=function(){return this.g&&this.g.clone()};k.fb=function(){return this.C};k.matches=function(a){return this.Y()==a.Y()&&yP(this,a)};var yP=function(a,b){return a.ia()==b.ia()&&a.za()==b.za()},zP=function(a){this.l=(a=void 0===a?null:a)?a.o:"";this.o=a?a.D:"";this.j=a&&a.w;this.g=a&&a.g&&a.g.clone();this.h=a&&a.j;this.m=null===a?!0:a.h;this.w=a&&a.s;this.C=a&&a.m||0;this.s=a&&a.C||[];this.D=a&&a.l||null};zP.prototype.ha=function(){return new xP(this)};
var AP=function(a,b){a.j=b;return a},BP=function(a,b){a.s=b;return a},CP=function(a,b){a.D=b;return a},DP=function(a,b){a.o=b;return a},EP=function(a,b){a.w=b;return a},FP=function(a,b){a.m=b;return a},GP=function(a,b){a.g=new ag(b.width,b.height);return a},HP=function(a,b){a.h=b;return a},IP=function(a){var b=new ag(0,0),c=Math.min;null!==a.g&&(b=new ag(c(a.g.width,b.width),c(a.g.height,b.height)));return GP(a,b)},JP=function(a){a.h=Math.min(a.h||Infinity,0);return a};var KP=function(a,b,c,d){this.h=a;this.w=b;this.C=c;this.bd=void 0===d?null:d;this.g=null;this.D=[];this.m="";this.Qd=[];this.o=this.s=!0;this.j=[];this.l=null},NP=function(a,b){return a===b?!0:a&&b?a.h===b.h&&mc(LP(a),LP(b),function(c,d){return c===d?!0:c&&d?c.Ig===d.Ig&&c.Dd===d.Dd&&c.Jg===d.Jg&&c.Hg===d.Hg&&c.yf===d.yf&&c.Be===d.Be:!1})&&mc(MP(a),MP(b),function(c,d){return c===d?!0:c&&d?c.uri===d.uri&&c.id===d.id&&c.mediaType===d.mediaType:!1}):!1};
KP.prototype.xa=function(){var a=this.g?this.g.xa():{};return{type:this.h,mediaId:OP(this),bandwidthConstraints:String(this.qc()),codecs:LP(this),streams:PP(this),sctpSettings:a,rtpHeaderExtensions:MP(this),defaultRequests:this.Sc().map(String),send:this.s,receive:this.o,virtualSsrcs:cc(this.j),loudestCsrc:this.l}};KP.prototype.ja=function(){var a=new KP(this.h,this.w,this.C,this.bd);a.g=this.g;a.D=this.D;a.m=this.m;a.Qd=this.Qd;a.s=this.s;a.o=this.o;a.j=this.j;a.l=this.l;return a};
var LP=function(a){return cc(a.w)},QP=function(a,b){a=a.ja();a.w=b;return a},RP=function(a,b){a=a.ja();a.g=b;return a},MP=function(a){return cc(a.C)},SP=function(a,b){a=a.ja();a.C=b;return a},PP=function(a){return cc(a.D)},TP=function(a,b){a=a.ja();a.D=b;return a},OP=function(a){if(a.m)return a.m;switch(a.h){case "a":return"audio";case "v":return"video";case "d":return"data";default:return Eb("No default media ID for unknown type: "+a.h),""}},UP=function(a,b){a=a.ja();a.m=b;return a};
KP.prototype.Sc=function(){return cc(this.Qd)};KP.prototype.Pf=function(a){var b=this.ja();b.Qd=a;return b};KP.prototype.vi=function(a){var b=this.ja();b.bd=a;return b};KP.prototype.qc=function(){return this.bd};
var VP=function(a,b){a=a.ja();a.s=b;return a},WP=function(a,b){a=a.ja();a.o=b;return a},XP=function(a,b){a=a.ja();a.j=b;return a},YP=function(a,b){a=a.ja();a.l=b;return a},ZP=function(a){return 0<a.j.length?a.j.map(function(b){return ZO(WO(RO(QO(OO(new NO,"a"),b.toString()),b.toString()),b.toString()),[b]).ha()}):PP(a)},aQ=function(a,b,c){var d=new Set(c.map($P));c=PP(a);ac(c,function(e){return d.has(e.g)});return TP(a,c.concat(b))},cQ=function(a){return bQ(a,function(b){return lP(b,"CN")})},bQ=function(a,
b){return QP(a,a.w.filter(vc(b)))},eQ=function(a,b){var c=void 0===c?sc:c;return dQ(a,function(d){return lP(d,b)},c)},dQ=function(a,b,c){c=void 0===c?sc:c;b=Qb(a.w,b);if(-1==b)return a;var d=LP(a);c=c(d[b]);Yb(d,b);Wb(d,0,0,c);return QP(a,d)},fQ=function(a,b){if(null===b)return a;var c=a.ja(),d=b.bd?b.bd.g:null;if(d){null==d&&(d=-1);c=c.ja();var e=new gP;e.g=d;c.bd=e.ha()}d=LP(b);0==d.length||(c=QP(c,d));(d=b.g)&&(c=RP(c,d));d=MP(b);0==d.length||(c=SP(c,d));d=b.Sc();0==d.length||(c=c.Pf(d));a=PP(a);
b=PP(b);d=$P;a=nc(a,d);Object.assign(a,nc(b,d));b=Object.values(a);return TP(c,b)},$P=function(a){return a.g};var gQ=function(a,b,c,d,e,f){e=void 0===e?[]:e;this.w=a;this.j=b;this.h=c;this.g=void 0===d?null:d;this.m=null;this.l=e;this.o=void 0===f?"full":f},hQ=function(a,b){return a===b?!0:a&&b?a.w===b.w&&a.j===b.j&&a.h===b.h&&a.g===b.g&&mc(cc(a.l),cc(b.l),function(c,d){return iP(c,d)}):!1};gQ.prototype.xa=function(){return{version:this.dc(),ufrag:this.j,pwd:this.h,fingerprint:this.g,dtlsRole:this.m,candidates:cc(this.l).toString(),mode:this.o}};
gQ.prototype.ja=function(){var a=new gQ(this.w,this.j,this.h,this.g,this.l,this.o);a.m=this.m;return a};gQ.prototype.dc=function(){return this.w};var iQ=function(a,b){a=a.ja();a.m=b;return a};var jQ=function(a,b,c,d,e,f,g){var h=this;f=void 0===f?null:f;g=void 0===g?null:g;this.ua=void 0===a?null:a;this.na=void 0===b?null:b;this.Va=void 0===c?null:c;this.j=void 0===d?null:d;this.l=new Map;((void 0===e?null:e)||[]).forEach(function(l){h.l.set(l.ye(),l)});this.g=f;this.h=g||[]},lQ=function(a,b){var c=a.na;if(!c)return a;b=LP(c).filter(b);var d=b.map(function(e){return e.Dd.toString()});b=b.filter(function(e){return!lP(e,"rtx")||d.includes("apt"in e.Cd?e.Cd.apt:null)});return kQ(a,QP(c,b))},
mQ=function(a,b){return a===b?!0:a&&b?NP(a.ua,b.ua)&&NP(a.na,b.na)&&hQ(a.g,b.g)&&mc(cc(a.h),cc(b.h),function(c,d){return c===d?!0:c&&d?c.Ce===d.Ce&&c.Kg===d.Kg&&c.Lg===d.Lg&&c.zf===d.zf:!1}):!1};jQ.prototype.xa=function(){return{sessionId:this.j,audio:this.ua&&this.ua.xa(),video:this.na&&this.na.xa(),data:this.Va&&this.Va.xa(),pushChannels:nQ(this)&&nQ(this).toString(),transport:this.g&&this.g.xa(),cryptos:cc(this.h)}};
jQ.prototype.ja=function(){var a=new jQ(this.ua,this.na,this.Va,this.j,[],this.g,this.h);a.l=new Map(this.l);return a};
var oQ=function(a,b){a=a.ja();a.ua=b;return a},kQ=function(a,b){a=a.ja();a.na=b;return a},pQ=function(a,b){a=a.ja();a.Va=b;return a},qQ=function(a,b){a=a.ja();a.g=b;return a},nQ=function(a){return[].concat(q(a.l.values()))},rQ=function(a,b){a=a.ja();a.h=b;return a},tQ=function(a,b,c){a=a.ja();a.ua=sQ(a.ua,b,c);a.na=sQ(a.na,b,c);a.Va=sQ(a.Va,b,c);return a},sQ=function(a,b,c){if(!a)return null;b=b.filter(function(d){return d.ia()==a.h});c=c.filter(function(d){return d.ia()==a.h});return aQ(a,b,c)};var uQ=Wf("realtime.media.mesi.MesiProtoConverter"),vQ=function(){};vQ.prototype.m=function(a){var b=new oC;O(b,1,a.g);O(b,2,a.h);O(b,3,a.width);O(b,4,a.height);return b};vQ.prototype.C=function(a){var b=ll(a,1),c=ll(a,2),d=ll(a,3);a=ll(a,4);return null==b||null==c||null==d||null==a?null:new dM(b,c,d,a)};
var yQ=function(a,b,c,d,e,f,g,h){d=void 0===d?null:d;g=void 0===g?!1:g;h=void 0===h?null:h;e=new bC;null!=b.j&&e.o(b.j);O(e,7,1);d=d||[];null!=c&&fC(e,[c]);d=d.concat(b.ua.Sc());c=b.na;null!=c&&(d=d.concat(c.Sc()));c=wQ([b.ua,b.na,b.Va]);a=xQ(a,c,d,b.g,cc(b.h));O(a,1,4);eC(e,[a]);b=nQ(b).map(function(l){var p=new $B,r=l.getChannelId();O(p,1,r);O(p,2,l.l);r=l.ye();O(p,4,r);switch(r){case "collections":O(p,5,1)}l=l.g;null!=l&&O(p,3,l);return p});wl(e,5,b);f&&O(e,14,1);g&&O(e,15,2);null!=h&&S(e,17,h);
return e},DQ=function(a,b){var c=null,d=null,e=null,f=null,g=[],h=b.j(),l=R(b,ZB,4);if(0<l.length){l=l[0];e=zQ(a,l);c=XP(AQ(e,"a"),L(b,10));L(b,12)&&0!==L(b,12)&&(c=YP(c,L(b,12)));d=AQ(e,"v");e=AQ(e,"d");var p=Q(l,WB,2);p&&(f=BQ(a,p));(l=R(l,PB,4))&&(g=CQ(l,a.lu,a)||[])}a=R(b,$B,5).map(function(r){return new sP(r.getChannelId(),L(r,2),L(r,3),r.ye())},a);return new jQ(c,d,e,null==h?void 0:h,a,f,g)},AQ=function(a,b){var c=LP(a).filter(function(f){return f.ia()==b}),d="d"==b?a.g:null;if(0==c.length&&
null==d)return null;var e=MP(a).filter(function(f){return f.mediaType==b});a=a.Sc().filter(function(f){return f.ia()==b});return RP((new KP(b,c,e)).Pf(a),d)},xQ=function(a,b,c,d,e){var f=new ZB,g=EQ(b.h)||void 0;O(f,1,g);g=LP(b).map(a.lr,a);wl(f,3,g);e=e.map(a.hm,a);wl(f,4,e);e=MP(b).map(a.mr,a);wl(f,5,e);if(null!=d){e=new WB;a:{g=d.dc();switch(g){case "GICE":g=1;break a;case "ICE":g=2;break a}C(uQ,"Unknown ICE version: "+g);g=void 0}O(e,1,g);O(e,4,d.j);O(e,5,d.h);g=cc(d.l).map(a.h,a);wl(e,6,g);var h=
d.g;h&&(g=new XB,h=h.split(" "),O(g,1,h[0]),O(g,2,h[1]),S(e,2,g));switch(d.m){case "actpass":var l=3;break;case "passive":l=2;break;case "active":l=1}l&&O(e,7,l);S(f,2,e)}b.g&&(d=b.g.getName(),O(f,8,d));if(b=b.qc())d=new HB,-1!=b.h&&O(d,1,b.h),-1!=b.g&&O(d,2,b.g),-1!==b.j&&O(d,3,b.j),S(f,7,d);a=c.map(a.j,a);wl(f,6,a);return f};
vQ.prototype.j=function(a){var b=new RB;O(b,2,a.h);var c=new IB;O(c,1,a.g&&a.g.height);O(c,2,a.g&&a.g.width);O(c,3,a.j);S(b,3,c);c=new SB;S(c,2,b);a=EQ(a.ia())||void 0;O(c,1,a);return c};
var wQ=function(a){for(var b=[],c=[],d=[],e=null,f=null,g=0;g<a.length;g++)null!=a[g]&&(b=b.concat(LP(a[g])),c=c.concat(MP(a[g])),d=d.concat(a[g].Sc()),!e&&a[g].g&&(e=a[g].g),!f&&a[g].qc()&&(f=a[g].qc()));return RP(SP(QP(a[0],b),c).Pf(d).vi(f),e)},zQ=function(a,b){var c=FQ(b.ia());if(null==c)return null;var d=CQ(R(b,KB,3),a.ku,a)||[],e=CQ(R(b,TB,5),w(function(g){var h=L(g,2)||"",l=g.getId(),p=FQ(g.ia(),c||void 0);null==h||null==l?(C(uQ,"Missing RTP header extension id or uri: "+g),g=null):g=new tP(l,
h,p);return g},a))||[],f=[];R(b,SB,6).forEach(function(g){var h=FQ(g.ia());null!=h&&(h=AP(new zP,h),g=GQ(h,Q(g,RB,2)),f.push(g))},a);a=null;(b=L(b,8))&&(a=wP((new vP).bf(b).wi(5E3),256).ha());return RP((new KP(c,d,e)).Pf(f),a)},EQ=function(a){switch(a){case "a":return 1;case "v":return 2;case "d":return 3}C(uQ,"Unknown media type: "+a)},FQ=function(a,b){b=void 0===b?null:b;switch(a){case 1:return"a";case 2:return"v";case 3:return"d";case 4:return"a"}C(uQ,"Unknown media type: "+a);return b};k=vQ.prototype;
k.lr=function(a){var b=new KB;NB(b,EQ(a.ia()));O(b,1,a.Dd);MB(b,a.getName());OB(b,Object.entries(a.Cd).map(function(d){var e=n(d);d=e.next().value;e=e.next().value;var f=new LB;O(f,1,d);O(f,2,e);return f}));var c=a.Hg;O(b,5,null==c?0:c);O(b,6,a.yf);O(b,7,a.Be);O(b,9,a.g);return b};
k.ku=function(a){var b=FQ(a.ia()),c=L(a,1),d=a.getName();if(null==b||null==c||null==d)return C(uQ,"Bad codec: "+a),null;var e=oP(nP(b),c).bf(d);b=L(a,5);null!=b&&(e.m=b);b=L(a,6);null!=b&&(e.h=b);b=L(a,7);null!=b&&(e.g=b);b=ml(a,9);null!=b&&(e.l=b);R(a,LB,8).forEach(function(f){var g=L(f,1)||"";f=L(f,2)||"";pP(e,g,f)});return e.ha()};
k.hm=function(a){a:{var b=a.Ce;switch(b){case "AES_CM_128_HMAC_SHA1_32":b=2;break a;case "AES_CM_128_HMAC_SHA1_80":b=1;break a}C(uQ,"Unknown crypto suite: "+b);b=null}if(null==b)return C(uQ,"Unknown crypto suite: "+a.Ce),null;var c=new PB;O(c,1,b);O(c,2,a.Kg);O(c,3,a.Lg||void 0);O(c,4,a.zf);return c};
k.lu=function(a){a:{var b=L(a,1);switch(b){case 2:b="AES_CM_128_HMAC_SHA1_32";break a;case 1:b="AES_CM_128_HMAC_SHA1_80";break a}C(uQ,"Unknown crypto suite: "+b);b=null}if(null==b)return C(uQ,"Unknown crypto suite: "+L(a,1)),null;var c=L(a,2),d=L(a,3),e=L(a,4);if(null==c||null==e)return C(uQ,"Bad crypto: "+a),null;a=new rP;a.j=b;a.g=c;a.l=e;d&&(a.h=d);return a.ha()};k.mr=function(a){var b=a.id,c=a.uri;a=a.mediaType;var d=new TB;c=O(d,2,c);b=O(c,1,b);a=EQ(a);return O(b,3,a)};
var BQ=function(a,b){a:{var c=L(b,1);switch(c){case 1:c="GICE";break a;case 2:c="ICE";break a}C(uQ,"Unknown ICE version: "+c);c=null}if(null==c)return null;var d="ICE"===c?"lite":"full",e=L(b,4)||"",f=L(b,5)||"",g=R(b,UB,6);a=CQ(g,a.w,a)||[];g=Q(b,XB,2);var h;g&&(h=L(g,1)+" "+L(g,2));h=new gQ(c,e,f,h,a,d);switch(L(b,7)){case 1:h=iQ(h,"active");break;case 2:h=iQ(h,"passive");break;case 3:Eb("Received unexpected ACTPASS dtls role.")}return h};
vQ.prototype.h=function(a){var b=new UB;a:{var c=a.g;switch(c){case 1:c=1;break a;case 2:c=2;break a}C(uQ,"Unknown ICE component: "+c);c=void 0}O(b,1,c);a:{c=a.w;switch(c){case "UDP":c=1;break a;case "TCP":c=2;break a;case "SSLTCP":c=3;break a}C(uQ,"Unknown candidate protocol: "+c);c=void 0}O(b,2,c);O(b,3,a.l);c=a.zb();O(b,4,c);c=HQ(a.h);O(b,5,c);O(b,6,a.o);O(b,7,a.D);O(b,8,a.j);return b};
vQ.prototype.w=function(a){a:{var b=L(a,1);switch(b){case 1:b=1;break a;case 2:b=2;break a}C(uQ,"Unknown ICE component: "+b);b=null}var c=L(a,6);null==c&&(c=0);var d=IQ(L(a,5)),e=JQ(L(a,2)),f=L(a,3),g=a.zb();if(!(b&&d&&e&&f&&g))return C(uQ,"Missing or unknown candidate parmeters: "+a),null;var h=c.toString(),l=L(a,7)||"";a=L(a,8)||0;return new hP(b,c,d,e,f,g,h,a,l)};
var JQ=function(a){switch(a){case 1:return"UDP";case 2:return"TCP";case 3:return"SSLTCP"}C(uQ,"Unknown candidate protocol: "+a);return null},HQ=function(a){switch(a){case "LOCAL":return 1;case "PEER_REFLEX":return 2;case "STUN":return 3;case "RELAY":return 4}C(uQ,"Unknown candidate type: "+a)},IQ=function(a){switch(a){case 1:return"LOCAL";case 2:return"PEER_REFLEX";case 3:return"STUN";case 4:return"RELAY"}C(uQ,"Unknown ICE type: "+a);return null},KQ=function(a,b,c,d){var e=new tC;e.j(2);null!=b&&
e.uk(b);e.tk(c);b=d.Y()||null;O(e,6,b);EC(e,EQ(d.ia()));b=d.za();O(e,7,b);e.vk(d.g);"v"==d.ia()&&O(e,11,d.Wd());b=new yC;c=d.lc();O(b,1,c);S(e,10,b);b=new BC;b.setPaused(d.o);S(e,14,b);b=new CC;b.setPaused(d.K);S(e,15,b);b=new vC;DC(b,d.fb());d.h&&(c=d.h.ce(),O(b,3,c||[]));a=cc(d.m).map(a.l,a);wl(b,2,a);S(e,8,b);return e},MQ=function(a){var b=LQ;return CQ(a,b.s,b)||[]};
vQ.prototype.s=function(a){var b=FQ(a.ia());if(null==b)return C(uQ,"Unknown stream media type: "+a),null;var c=a.Y(),d=a.za(),e=a.ai();if(null==c||null==d||null==e)return C(uQ,"Missing stream parmeters: "+a),null;var f=Q(a,yC,10);f=!(!f||!f.lc());var g=Q(a,BC,14);g=!(!g||!ml(g,1));var h=Q(a,CC,15);h=!(!h||!ml(h,1));var l=null!=L(a,11)?!!ml(a,11):!0,p=[],r=[],t=[],A=null,z=Q(a,vC,8);null!=z&&(p=CQ(L(z,1),this.g,this)||[],r=CQ(R(z,xC,2),this.o,this)||[],t=L(z,3),A=L(z,4));z=null;0<t.length&&(z=EO(new DO,
t).ha());var G=XO(WO(aP(bP(ZO(VO(UO(TO(SO(YO(RO(QO(PO(OO(new NO,b),c),d),e),A),f),g),h),l),p),r),z),e),e);a=Q(a,AC,13);(a&&L(a,1)||[]).forEach(function(N){if(N=NQ.get(N))G.g|=N});return G.ha()};vQ.prototype.g=function(a){return a>>>0};var OQ=function(a){return a>>>0};vQ.prototype.l=function(a){var b=new xC;b=O(b,1,a.g);a=a.fb();return O(b,2,a||[])};vQ.prototype.o=function(a){var b=CQ(L(a,2),this.g)||[],c=L(a,1);return null==c?(C(uQ,"Unknown ssrc group semantics: "+a),null):new FO(c,b)};
var PQ=function(a){var b=LQ;return CQ(a,b.D,b)||[]};vQ.prototype.D=function(a){var b=FQ(a.ia());if(null==b)return C(uQ,"Unknown stream request media type: "+a),null;var c=a.Y(),d=a.za();if(null==c||null==d)return C(uQ,"Missing stream request parmeters: "+a),null;var e=CP(new zP,a.ai());e.l=c;b=DP(AP(e,b),d);c=Q(a,vC,8);null!=c&&BP(b,CQ(L(c,1),this.g,this)||[]);return GQ(b,Q(a,RB,9))};
var GQ=function(a,b){if(b&&ml(b,2)){FP(a,!0);var c=L(b,5);c.length&&BP(a,c.map(OQ));if(b=b.sc())(c=L(b,3))&&HP(a,c),c=L(b,2),b=L(b,1),c&&b&&GP(a,new ag(c,b))}else FP(a,!1);return a.ha()},CQ=function(a,b,c){if(null==a||!Array.isArray(a))return null;for(var d=[],e=0;e<a.length;e++){var f=a[e];if(null==f)return C(uQ,"Failed to parse: "+a),null;var g=b.call(c,f);if(null==g)return C(uQ,"Failed to parse: "+f),null;d.push(g)}return d},NQ=new Map([[1,1],[2,2],[3,4],[4,8]]);var RQ=function(a){X.call(this);this.j=a;this.g=null;this.h=[];this.m=this.o=!1;this.F=new vQ;this.s=this.D=null;QQ(this)};u(RQ,X);RQ.prototype.aa=function(){this.h=[];this.g=null;X.prototype.aa.call(this)};var TQ=function(a){var b=a.g,c=a.h[a.h.length-1]||null;a.h.forEach(function(d){"sc"==d.h.getContent()&&(c=d)});b!=c&&(a.g=c,SQ(a))};RQ.prototype.C=function(a){var b=this.g;TQ(this);b&&b==this.g&&a.target==b.h&&SQ(this)};
var SQ=function(a){a.w()||null===a.s||(a.m?a.o=!0:(a.o=!1,a.m=!0,Zs([a.j.gb,a.j.fa,a.j.Ve]).then(function(b){var c=b[1],d=b[2];if(null!=this.g){var e=this.F;var f=b[0],g=this.g.h;b=new jC;b.Un(f);b.qk(g.Y());b.Vn(g.getId());f=EQ(g.Ga);O(b,4,f);f="mu"==g.getState();var h=new kC;S(b,5,h);h=Q(b,kC,5);O(h,1,f);if("a"==g.Ga)null!=g.He&&(e=new pC,O(e,2,g.He),g=g.Y(),O(e,1,g),S(b,8,e));else if("v"==g.Ga){f=new nC;S(b,7,f);f=Q(b,nC,7);a:{h=g.getContent();switch(h){case "ca":h=1;break a;case "sc":h=2;break a}C(uQ,
"Unknown media content: "+h);h=void 0}O(f,1,h);f=g.ld&&cc(g.ld);null!=f&&(g=Q(b,nC,7),e=f.map(e.m,e),wl(g,3,e))}this.D=e=b.qk(c)}else this.D&&(e=this.D,c=Q(e,kC,5),O(c,1,!0));e?d.add(e).then(this.l,this.l,this):this.l()},a.l,a)))},QQ=function(a){et(a.j.onConnect.then(),function(){a.j.gb.then(function(b){a.s!==b&&(a.s=b,SQ(a))})})};RQ.prototype.l=function(){this.m=!1;this.o&&SQ(this)};var UQ=function(a){a=void 0===a?!1:a;QM.call(this);this.m=a;this.g=new Set;this.h=new lL(this);this.l=nL(this.h);this.h.V(this.l,null);this.j=nL(this.h);this.h.V(this.j,null)};u(UQ,QM);UQ.prototype.add=function(a,b){b=void 0===b?!0:b;if(null!=VQ(this,a.Ga,a.getId(),a.Y()))return!1;this.g.add(a);b&&(a.D=this);this.M(new WQ("K",a));XQ(this,a.Ga);return!0};UQ.prototype.remove=function(a){return this.g.delete(a)?(a.D==this&&(a.D=null),this.M(new WQ("L",a)),XQ(this,a.Ga),!0):!1};
var VQ=function(a,b,c,d){for(var e=n(a.g),f=e.next();!f.done;f=e.next()){f=f.value;var g=f.Ga==b,h=null==c||f.getId()==c,l=null==d||a.m&&""===d||f.Y()==d;!l&&a.m&&""==f.Y()&&(Eb("Should never allow Source matching against empty participantId"),l=!0);if(g&&h&&l)return f}return null},XQ=function(a,b){var c="v"===b?a.l:"a"===b?a.j:null;if(c){for(var d=n(a.g),e=d.next();!e.done;e=d.next())if(e=e.value,e.Ga===b){a.h.V(c,e);return}a.h.V(c,null)}},WQ=function(a,b){U.call(this,a);this.source=b};u(WQ,U);var YQ=function(){QM.apply(this,arguments)};u(YQ,QM);var ZQ=function(a,b,c){U.call(this,a);this.fa=b;this.Zk=c};u(ZQ,U);var $Q=function(){YQ.apply(this,arguments)};u($Q,YQ);var aR=function(a){U.call(this,"T");this.cb=a};u(aR,U);var bR=function(a){U.call(this,"U");this.sessionId=a};u(bR,U);var cR=function(a){U.call(this,"O");this.id=a};u(cR,U);var dR=function(a){U.call(this,"P");this.sessionDescription=a};u(dR,U);var eR=function(a,b,c){c=void 0===c?null:c;U.call(this,"Z");this.Ul=a;this.ro=b;this.sessionId=c};u(eR,U);var fR=function(){U.call(this,"V")};u(fR,U);var gR=function(a,b){U.call(this,"S");this.g=a;this.sessionId=b};u(gR,U);
var hR=function(a){U.call(this,"Q");this.sessionId=a};u(hR,U);var iR=function(a,b,c,d){d=void 0===d?1:d;QM.call(this);this.s=a;this.C=b;this.h=c;this.l=d};u(iR,QM);iR.prototype.Y=function(){return this.s};iR.prototype.za=function(){return this.C};iR.prototype.getState=function(){return this.l};var jR=function(a,b){b!=a.l&&(a.l=b,a.M("$"))};iR.prototype.getInfo=function(){return this.h};var kR={QB:"INITIAL",VH:"STARTING",UH:"STARTED",WB:"INPROGRESS",PAUSED:"PAUSED",STOPPED:"STOPPED",FINISHED:"FINISHED"},lR=function(a,b,c){U.call(this,"aa");this.state=a;this.Ib=b;this.g=c};u(lR,U);var mR=Date.now,nR=performance&&performance.timeOrigin&&performance.now?function(){return Math.floor(performance.timeOrigin+performance.now())}:Date.now,oR=function(a){this.g=a},Y=function(){return new oR(mR!=Date.now?Date.now():nR())},pR=function(a,b){return new oR(a.g+b)},qR=function(a,b){return a.g-b.g};oR.prototype.toString=function(){return this.g+"ms"};var rR=new oR(-Infinity),sR=new oR(Infinity);var tR=function(a){a=void 0===a?null:a;this.g=new Map;this.h=a&&a.slice()},uR=function(a,b,c){c=void 0===c?Y().g:c;!a.g.has(b)&&0<c&&a.g.set(b,c)},vR=function(a){var b=[];a.g.forEach(function(c,d){return b.push(LJ(KJ(new JJ,d),c))});return PJ(OJ(b),a.h&&a.h.slice())};var wR=new Set;function xR(a){wR.add(a);return new yR(a)}var yR=function(a){this.key=a;this.value=null};yR.prototype.isDefined=function(){return null!==this.value};
var AR=function(a){if(!a.isDefined())return!1;var b=a.value.toLowerCase();return"true"!==b&&"false"!==b?(zR(a,"Expected true/false, but was "+a.value+"."),!1):"true"===b},BR=function(a,b){if(!a.isDefined())return b;var c=Number(a.value);return isNaN(c)||""===a.value?(zR(a,"Expected a number, but was "+c+"."),b):c},zR=function(a,b){CR?CR(a.key,b):(a="Flag "+a.key+": "+b,Eb(a),As(Error(a)))},CR=null;var DR={ZK:!0},ER=function(){throw Error("Do not instantiate directly");};ER.prototype.nm=null;ER.prototype.getContent=function(){return this.content};ER.prototype.toString=function(){return this.content};var FR=function(){ER.call(this)};y(FR,ER);FR.prototype.om=DR;var GR=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c,d){c=new b(String(c));void 0!==d&&(c.nm=d);return c}}(FR),HR={"\x00":"&#0;","\t":"&#9;","\n":"&#10;","\x0B":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;",'"':"&quot;","&":"&amp;","'":"&#39;","-":"&#45;","/":"&#47;","<":"&lt;","=":"&#61;",">":"&gt;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"},IR=function(a){return HR[a]},JR=/[\x00\x22\x27\x3c\x3e]/g,KR=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,
LR=/</g;var MR=function(){if("realtimeDevtoolsDevtoolsecoBadge".om===DR){var a="realtimeDevtoolsDevtoolsecoBadge".getContent();a=String(a).replace(KR,"").replace(LR,"&lt;");a=String(a).replace(JR,IR)}else a=re("realtimeDevtoolsDevtoolsecoBadge");return GR('<div class="'+a+'"><div>ECO MODE</div><div>TESTING ONLY</div></div>')};MR.g="realtime.devtools.templates.ecoBadge";var NR=/^<(body|caption|col|colgroup|head|html|tr|td|th|tbody|thead|tfoot)>/i;var QR=function(){var a=OR;a.g=document.createElement("div");document.body.appendChild(a.g);PR(a)},PR=function(a){if(a.g&&(a.l||a.m||a.w)){var b=MR();var c=cg();c=ig(c.g,"DIV");if(Pa(b))if(b instanceof ER){if(b.om!==DR)throw Error("Sanitized content was not of kind HTML.");b=je(b.toString(),b.nm||null)}else Eb("Soy template output is unsafe for use as HTML: "+b),b=ke("zSoyz");else b=ke(String(b));b.Uc().match(NR);oe(c,b);1==c.childNodes.length&&(b=c.firstChild,1==b.nodeType&&(c=b));a.g.appendChild(c)}},
OR=new function(){if(window&&window.location&&window.location.href){var a=(new Xq(window.location.href)).h;if(pr(a,"max_send_resolution")){var b=a.get("max_send_resolution");if(b){a:{var c=b.split("x");if(2===c.length&&(b=Number(c[0]),c=Number(c[1]),!isNaN(b)&&!isNaN(c))){b=new ag(b,c);break a}b=void 0}this.m=b}}pr(a,"max_send_fps")&&(b=Number(a.get("max_send_fps")),isNaN(b)||(this.l=b));pr(a,"present_mute_camera")&&(this.w=!0);pr(a,"disable_webrtc_cpu_based_adaptation")&&(this.h=!0);pr(a,"force_lens_vip")&&
(this.j=a.get("force_lens_vip"))}PR(this)};var RR=function(){this.u=Wf("realtime.diagnostics.DiagnosticDataService");this.j=new Map;this.g=new Map;this.h=new Map},TR=function(a,b){var c=RR.Kb(),d;for(d in b){var e=SR(c,d,b[d],void 0);ts(a,e)}},SR=function(a,b,c,d){d=void 0===d?!0:d;a.g.has(b)&&(C(a.u,"Already registered a diagnostics data callback for key '"+b+"'."),b=UR(a,b));a.h.delete(b);a.g.set(b,c);return function(){a.g.get(b)==c&&(a.g.delete(b),d&&a.h.set(b,c()))}};
RR.prototype.xa=function(){var a={};this.h.forEach(function(b,c){return a[c]=b});this.g.forEach(function(b,c){return a[c]=b()});return a};RR.prototype.reset=function(){this.j.clear();this.g.clear();this.h.clear()};var UR=function(a,b){for(var c=0;a.g.has(b+"("+c+")");)c++;return b+"("+c+")"};La(RR);var VR=function(a,b,c){this.u=Wf("realtime.media.apiary.Client");this.h=a;this.j=b;this.g=c},ZR=function(a,b,c){var d=new iC;d.setRequestHeader(a.g());O(d,2,b);null!==c&&(b=Gl(new El,c),d.O(b));return ft(WR(a,"media_sessions/query",d,dD,{Xe:3E3,xt:8}),function(e){if(e instanceof wM?"fatal"===e.status&&"not_found"===e.Yc:e instanceof oM&&"fatal"===e.status&&"not_found"===e.g)throw new YR("The requested resource was not found.",11);throw e;})},aS=function(a,b,c){b=$R(a,b,c);return ft(WR(a,"media_sessions/callperf",
b,$G,void 0,{va:ZG.prototype.pu,Dh:aH}),function(d){C(a.u,"Failed to upload log data: "+d);throw d;})},$R=function(a,b,c){b=Cl(b);O(b,13,a.j);var d=new ZG;d.setRequestHeader(a.g());c&&O(d,2,c);S(d,3,b);return d},WR=function(a,b,c,d,e,f){var g=void 0===e?{}:e;e=g.Xe;g=g.xt;f=void 0===f?null:f;return null==a.h?(d="Failed to "+b+" "+c+": no service",C(a.u,d),Vs(d)):a.h.makeRequest(b,c,d,e,g,void 0,void 0,f).then(function(h){if(null==h)throw new YR("Got empty response.");if(void 0!==h.getResponseHeader){var l=
h.getResponseHeader();if(null==l)throw new YR("Missing response header.");l=l.Ia();if(1!=l)throw new YR("Got bad status in response header.",l);}return h},function(h){C(a.u,"Failed to "+b+" "+c+": "+h);throw h;})},YR=function(a,b){b=void 0===b?0:b;Bb.call(this,a+" (status: "+b+")");this.desc=a;this.status=b;this.name="ClientError"};u(YR,Bb);var bS=function(a,b,c){U.call(this,"ba");this.state=b;this.sessionId=c};y(bS,U);var cS=function(a,b,c,d){if(null==a)return d=Wf("realtime.media.apiary.RpcEventDispatcher"),Yf(d,"Failed to report impression on RPC request because thenable is null for rpc "+b+"with sessionId "+c),Vs();a=a.then();d.M(new bS(b,"va",c));var e=sv(a.cancel,9E4,a),f=!1;ft(a,function(g){f=!0;return g}).then(function(g){tv(e);var h="wa";g instanceof Ps?h="ya":f&&(h="xa");id(ue(c))&&(1>g.length||!(g[0]instanceof bC)?c=null:(g=g[0],c=null==g?null:g.j()));this.M(new bS(b,h,c))},null,d);return a};var dS=new ag(320,180),eS=new ag(640,360),fS=new ag(1280,720);var gS={host:"LOCAL",srflx:"STUN",relay:"RELAY",prflx:"PEER_REFLEX"};var hS=function(a,b){this.g=a;this.h=b};da.Object.defineProperties(hS.prototype,{key:{configurable:!0,enumerable:!0,get:function(){return this.g}},value:{configurable:!0,enumerable:!0,get:function(){return this.h}}});var iS=function(a,b,c,d){this.j=a;this.g=b;this.h=c;this.l=d};da.Object.defineProperties(iS.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this.j}},port:{configurable:!0,enumerable:!0,get:function(){return this.g}},protocol:{configurable:!0,enumerable:!0,get:function(){return this.h}}});var jS=function(a,b){this.l=a;"string"===typeof b?(this.g=b,"m"===a?(a=b.split(" "),this.j=new iS(a[0],a[1],a[2],a.slice(3))):"a"===a&&(a=xe(b,":",1),b=a[0],this.h=1===a.length?new hS(b,null):new hS(b,a[1]))):b instanceof iS?(this.j=b,this.g=b.j+" "+b.g+" "+b.h+" "+b.l.join(" ")):b instanceof hS&&(this.h=b,this.g=b.h?b.g+":"+b.h:b.g)};jS.prototype.toString=function(){return this.Bg+"="+this.value};var kS=function(a){a=xe(a,"=",1);return new jS(a[0],a[1])};
da.Object.defineProperties(jS.prototype,{Bg:{configurable:!0,enumerable:!0,get:function(){return this.l}},value:{configurable:!0,enumerable:!0,get:function(){return this.g}},m:{configurable:!0,enumerable:!0,get:function(){return this.h}},w:{configurable:!0,enumerable:!0,get:function(){return this.j}}});var mS=function(a){this.h=a;this.g=new Map;lS(this)},lS=function(a){var b=new Map;a.h.forEach(function(c){if("a"===c.Bg){c=c.m;var d=c.key,e=b.get(d);e||(e=[],b.set(d,e));c.value?e.push(c.value):e.push("")}});b.forEach(function(c,d){a.g.set(d,new nS(d,c," ",!1))})};mS.prototype.get=function(a){return this.g.get(a)||new nS(a,[]," ",!0)};
var nS=function(a,b,c,d){d=void 0===d?!1:d;this.s=a;this.l=b;this.D=void 0===c?":":c;this.j=(this.o=d)?new Map:null;this.m=d?[]:null},oS=function(a,b){return a.h?a:b};nS.prototype.forEach=function(a){pS(this);this.j.forEach(a)};nS.prototype.get=function(a){pS(this);return this.j.get(a)||new nS(a,[],":",!0)};var pS=function(a){if(null===a.j){var b=new Map;a.l.forEach(function(c){c=xe(c,a.D,1);var d=c[0],e=b.get(d)||[];b.set(d,[].concat(q(e),[c[1]||""]))});a.j=qS(b);a.m=Array.from(a.j.keys())}};
da.Object.defineProperties(nS.prototype,{w:{configurable:!0,enumerable:!0,get:function(){return this.l}},g:{configurable:!0,enumerable:!0,get:function(){return this.o||0===this.l.length?null:this.l[0]}},h:{configurable:!0,enumerable:!0,get:function(){return!this.o}},key:{configurable:!0,enumerable:!0,get:function(){return this.s}},keys:{configurable:!0,enumerable:!0,get:function(){pS(this);return this.m}}});function qS(a){var b=new Map;a.forEach(function(c,d){b.set(d,new nS(d,c))});return b};var rS=function(a){this.g=a;this.m=this.w=this.l=null;this.F=this.K=!1;this.G=[];this.C=this.s=null;this.H=[];this.o=[];this.L=new Map;this.j=this.h=this.D=null},xS=function(a,b){b=new mS(b);var c=b.get("ice-ufrag").g;null!=c&&(a.w=c);c=b.get("ice-pwd").g;null!=c&&(a.m=c);c=b.get("fingerprint").g;null!=c&&(a.s=c);if(c=b.get("setup").g)a.C=c;sS(a,b);if(a.g){c=b.get("sendonly").h;var d=b.get("recvonly").h,e=b.get("sendrecv").h;if(c||e)a.K=!0;if(d||e)a.F=!0;a.l=b.get("mid").g;tS(a,b,a.g);a.h=b.get("rid").keys;
if(c=b.get("simulcast").g)if(d=n(xe(c.trim()," ",1)),c=d.next().value,d=d.next().value,"send"===c&&d&&(c=n(xe(d,"=",1)),c.next(),c=c.next().value))a.j=c.split(";");uS(a,b,a.g);vS(a,b,a.g);wS(a,b)}},sS=function(a,b){b.get("crypto").forEach(function(c,d){var e=n(xe(c.g," ",2));c=e.next().value;var f=e.next().value;e=e.next().value;var g=new rP;g.l=parseInt(d,10);g.j=c;g.g=f;g.h=e||"";d=g.ha();a.G.push(d)})},tS=function(a,b,c){b.get("extmap").forEach(function(d,e){d=d.g;e=n(xe(e,"/",2));var f=e.next().value;
e.next();a.H.push(new tP(parseInt(f,10),d,c))})},uS=function(a,b,c){var d=new Map;b.get("fmtp").forEach(function(e,f){var g={};e.g.split(";").forEach(function(h){h=xe(h,"=",1);2===h.length&&(g[h[0]]=h[1])});d.set(parseInt(f,10),g)});b.get("rtpmap").forEach(function(e,f){f=parseInt(f,10);var g=e.g.split("/"),h=g[0];e=parseInt(g[1],10);g=2<g.length?parseInt(g[2],10):1;h=oP(nP(c),f).bf(h);h.h=e;h.g=g;e=d.get(f)||{};h.j=jP(e);e=h.ha();d.delete(f);a.o.push(e)})},vS=function(a,b,c){var d=b.get("msid"),
e=a.L,f=new Set;b.get("ssrc").forEach(function(h,l){l=parseInt(l,10);var p=h.get("cname").g;h=oS(h.get("msid"),d);f.add(l);if(h.h){h=n(xe(h.g," ",1));var r=h.next().value,t=h.next().value;h=e.get(r);h||(h=new NO,YO(XO(RO(WO(OO(h,c),r),t),t),a.l),e.set(r,h));p&&QO(h,p);a.h&&0<a.h.length&&(p=[],a.j&&0<a.j.length?(a.j.forEach(function(A){return a.h.includes(A)}),p=a.j.reverse()):p=a.h,p=EO(new DO,p).ha(),aP(h,p));$O(h,l)}});b=b.get("ssrc-group").w.map(function(h){var l=h.split(" ");h=l[0];l=l.slice(1).map(function(p){return parseInt(p,
10)});l.forEach(function(p){return f.has(p)});return new FO(h,l)});var g=new Map;b.forEach(function(h){h.fb().forEach(function(l){return g.set(l,[].concat(q(g.get(l)||[]),[h]))})});e.forEach(function(h){var l=new Set;h.fb().forEach(function(p){(g.get(p)||[]).forEach(function(r){return l.add(r)})});bP(h,Array.from(l))})},wS=function(a,b){var c=wP(new vP,1024).bf("webrtc-datachannel"),d=!1;b.get("sctpmap").forEach(function(e,f){f=parseInt(f,10);var g=n(e.g.split(" "));e=g.next().value;g=g.next().value;
0!==f&&"rejected"!==e&&(g=parseInt(g,10),c=wP(c.wi(f).bf(e),g),d=!0)});b.get("sctp-port").forEach(function(e,f){c=c.wi(parseInt(f,10));d=!0});d&&(a.D=c.ha())},zS=function(a,b){var c=b.g||new gQ("ICE","","");if(a.w&&a.m){var d=a.w;c=c.ja();c.j=d;d=a.m;c=c.ja();c.h=d}a.s&&(d=a.s,c=c.ja(),c.g=d);a.C&&(c=iQ(c,a.C));b=rQ(qQ(b,c),[].concat(q(cc(b.h)),q(a.G)));if(a.g)switch(c=a.g,a=yS(a,c),c){case "a":b=oQ(b,a);break;case "v":b=kQ(b,a);break;case "d":b=pQ(b,a)}return b},yS=function(a,b){var c=Array.from(a.L.values()).map(function(d){return d.ha()});
b=TP(QP(WP(VP(new KP(b,a.o,a.H),a.K),a.F),a.o),c);a.l&&(b=UP(b,a.l));a.D&&(b=RP(b,a.D));return b};var AS=function(a){this.s=a;this.o=a[0];this.w=this.h=null};
da.Object.defineProperties(AS.prototype,{m:{configurable:!0,enumerable:!0,get:function(){return this.s}},l:{configurable:!0,enumerable:!0,get:function(){return this.o.w}},mediaType:{configurable:!0,enumerable:!0,get:function(){return this.l.type}},j:{configurable:!0,enumerable:!0,get:function(){if(!this.h){var a=this.g;a.get("sendonly").h?this.h="sendonly":a.get("recvonly").h?this.h="recvonly":a.get("inactive").h?this.h="inactive":this.h="sendrecv"}return this.h}},xg:{configurable:!0,enumerable:!0,
get:function(){return"sendrecv"===this.j||"sendonly"===this.j}},Ij:{configurable:!0,enumerable:!0,get:function(){return"sendrecv"===this.j||"recvonly"===this.j}},g:{configurable:!0,enumerable:!0,get:function(){this.w||(this.w=new mS(this.m));return this.w}}});var BS=function(a){this.sessionId=a};var CS=function(a){this.g=a;this.sessionId=a.filter(function(b){return"o"===b.Bg}).map(function(b){return(new BS(b.value.split(" ")[1])).sessionId})[0]};var DS=function(a,b){this.g=a;this.h=b},ES=function(a){return a.g.g.concat.apply(a.g.g,q(a.h.map(function(b){return b.m}))).map(function(b){return b.Bg+"="+b.value}).join("\r\n")+"\r\n"},FS=function(a){function b(){c?d.push(new AS(e)):c=new CS(e)}var c=null,d=[],e=[];a.split(/\r?\n/).forEach(function(f){id(f)||(f=kS(f),"m"===f.Bg&&(b(),e=[]),e.push(f))});b();return new DS(c,d)};
da.Object.defineProperties(DS.prototype,{session:{configurable:!0,enumerable:!0,get:function(){return this.g}},media:{configurable:!0,enumerable:!0,get:function(){return this.h}}});function GS(a){a=a.trim().split(" ");var b=a[0].split(":")[1],c=parseInt(a[1],10),d=a[2].toUpperCase(),e=parseInt(a[3],10),f=a[4],g=parseInt(a[5],10),h=gS[a[7]],l;a.forEach(function(A,z){"generation"===A&&(l=z+1)});switch(h){case "STUN":case "RELAY":case "PEER_REFLEX":var p=a[9];var r=parseInt(a[11],10)}var t=0;l&&(t=parseInt(a[l],10));return new hP(c,e,h,d,f,g,b,t,"",p,r)}
function HS(a){var b="string"===typeof a?FS(a):a;a=new jQ;var c=new rS(null);xS(c,b.session.g);a=zS(c,a);c=b.media.filter(function(e){return"audio"===e.l.type});var d=b.media.filter(function(e){return"video"===e.l.type});b=b.media.filter(function(e){return"data"===e.l.type||"application"===e.l.type});a=IS("a",c,a);a=IS("v",d,a);return a=IS("d",b,a)}function IS(a,b,c){var d=new rS(a);b.forEach(function(e){return xS(d,e.m)});return zS(d,c)};var JS=function(a,b,c){T.call(this);this.g=a;this.l=b||0;this.h=c;this.j=w(this.ys,this)};y(JS,T);k=JS.prototype;k.Qa=0;k.aa=function(){JS.Ab.aa.call(this);this.stop();delete this.g;delete this.h};k.start=function(a){this.stop();this.Qa=sv(this.j,void 0!==a?a:this.l)};k.stop=function(){0!=this.Qa&&tv(this.Qa);this.Qa=0};k.ys=function(){this.Qa=0;this.g&&this.g.call(this.h)};var KS=function(){},MS=function(a,b){a.Ab||y(a,KS);b.Rd=a;do b=LS(b);while(b!==Object&&!b.Rd);if(b!==Object&&b.Rd!==LS(a))throw Error("delegate base must derive from superclass delegate base");},PS=function(a){var b=a.Rd,c=function(l){c.Ab.constructor.call(this,l);var p=this.cd.length;this.g=[];for(var r=0;r<p;++r)this.cd[r].vK||(this.g[r]=new this.cd[r](l))};y(c,b);for(var d=[];a&&a!==Object;){if(b=a.Rd){b.cd&&(dc(d,b.cd),fc(d));var e=b.prototype,f;for(f in e)if(e.hasOwnProperty(f)&&Oa(e[f])&&e[f]!==
b){var g=!!e[f].tK,h=NS(f,e,d,g);(g=OS(f,e,h,g))&&(c.prototype[f]=g)}}a=LS(a)}c.prototype.cd=d;return c},LS=function(a){return a===Object?Object:Object.getPrototypeOf?Object.getPrototypeOf(a.prototype).constructor||Object:a.Ab&&a.Ab.constructor||Object},NS=function(a,b,c,d){for(var e=[],f=0;f<c.length&&(c[f].prototype[a]===b[a]||(e.push(f),!d));++f);return e},OS=function(a,b,c,d){var e;c.length?d?e=function(f){var g=this.g[c[0]];return g?g[a].apply(this.g[c[0]],arguments):this.cd[c[0]].prototype[a].apply(this,
arguments)}:b[a].qr?e=function(f){a:{var g=Array.prototype.slice.call(arguments,0);for(var h=0;h<c.length;++h){var l=this.g[c[h]];if(l=l?l[a].apply(l,g):this.cd[c[h]].prototype[a].apply(this,g)){g=l;break a}}g=!1}return g}:b[a].im?e=function(f){a:{var g=Array.prototype.slice.call(arguments,0);for(var h=0;h<c.length;++h){var l=this.g[c[h]];l=l?l[a].apply(l,g):this.cd[c[h]].prototype[a].apply(this,g);if(null!=l){g=l;break a}}g=void 0}return g}:b[a].Hn?e=function(f){for(var g=Array.prototype.slice.call(arguments,
0),h=0;h<c.length;++h){var l=this.g[c[h]];l?l[a].apply(l,g):this.cd[c[h]].prototype[a].apply(this,g)}}:e=function(f){for(var g=Array.prototype.slice.call(arguments,0),h=[],l=0;l<c.length;++l){var p=this.g[c[l]];h.push(p?p[a].apply(p,g):this.cd[c[l]].prototype[a].apply(this,g))}return h}:d||b[a].qr||b[a].im||b[a].Hn?e=null:e=QS;return e},QS=function(){return[]};KS.prototype.fj=function(a){if(this.g)for(var b=0;b<this.g.length;++b)if(this.g[b]instanceof a)return this.g[b];return null};
var RS=function(){var a=function(){};a.Hn=!0;return a};var TS=function(a){if(!a.nf){var b;for(b=a.constructor;b&&!b.Rd;)b=b.Ab&&b.Ab.constructor;b.Rd.um||(b.Rd.um=PS(b));b=new b.Rd.um(a);a.nf=b;a.fj||(a.fj=SS)}},SS=function(a){return this.nf.fj(a)};var US=function(){TS(this)};US.prototype.qc=function(){var a=this.nf.qc();a||(a=(new gP).ha());return a};var VS=function(){};y(VS,KS);MS(VS,US);VS.prototype.qc=function(a){a=a?a:function(){};a.im=!0;return a}();var XS=function(a){U.call(this,WS);this.message=a};u(XS,U);var WS=new Ju("ca");var YS=function(){this.j=this.h=this.l=this.o=this.g=null},ZS=function(a,b){a.g=b;return a};YS.prototype.Mb=function(){return this.h};YS.prototype.m=function(a){this.g&&O(a,14,this.g);this.l&&O(a,16,this.l);this.h&&O(a,22,this.h);this.j&&O(a,23,this.j)};YS.prototype.toString=function(){return"{ ParticipantLogId: "+(this.g||"")+", MucJid: "+(this.o||"")+", SyntheticId: "+(this.l||"")+", MeetingCode: "+(this.h||"")+", MeetingSpaceId: "+(this.j||"")+" }"};var $S=function(){pv.apply(this,arguments)};u($S,pv);k=$S.prototype;k.xa=function(){return{id:this.g,isInProgress:"INPROGRESS"==this.getState(),state:this.getState()}};k.pause=function(){};k.resume=function(){};k.Na=function(){throw Error("getStream not supported on RemoteSession");};k.Hm=function(){return Vs("Not implemented")};k.An=function(){};var aT=new Ju("da"),bT=new Ju("ea"),cT=function(a,b,c){U.call(this,aT);this.Pc=cc(a);this.vc=cc(b);this.removed=cc(c)};u(cT,U);
var dT=function(a){U.call(this,bT);this.g=cc(a)};u(dT,U);var eT=function(){QM.call(this);this.Wb="INITIAL";this.Vb=void 0};u(eT,QM);k=eT.prototype;k.xa=function(){var a=this.l;return{state:this.getState(),endCause:this.Vb,id:this.h.g,isInProgress:"INPROGRESS"==this.getState(),localId:this.qb(),localDescription:this.g.g.localDescription.xa(),localSession:this.g.xa(),options:this.j.xa(),remoteAudioCodecs:cc(this.oa).map(String),remoteSession:this.h.xa(),remoteSessionDescription:a&&a.xa(),useEarlyMedia:null!==this.j.Rc&&0<this.j.Sc().length}};k.getState=function(){return this.Wb};
k.vn=function(){throw Error("Unimplemented");};k.wn=function(){return 0};k.fn=function(){return!1};var fT=function(a,b,c,d){c=void 0===c?[]:c;this.modelName=void 0===a?"":a;this.h=(void 0===b?0:b)||Ja("navigator.hardwareConcurrency")||0;this.j=new Set(c);this.l=void 0===d?!1:d;this.g=null},hT=function(a){return gT.includes(a.modelName)?!1:0==a.h||4<=a.h?!0:a.j.has("sse4_1")},kT=function(a){return""==a.modelName||a.l&&iT.some(function(b){return b.test(a.modelName)})?!1:4<=a.h&&!jT(a)},jT=function(a){null==a.g&&(a.g=(a.modelName.startsWith("Intel")?lT:a.modelName.startsWith("AMD")?mT:nT).some(function(b){return b.test(a.modelName)}));
return a.g},mT=[/^AMD A(4|6|8|10|12)/,/^AMD Athlon\(tm\) 5[0-9]{3} APU/,/^AMD Athlon\(tm\) X4/,/^AMD E2-/,/^AMD FX-[0-9]{4}.*R(ADEON|adeon)/,/^AMD FX\(tm\)-4[0-9]{3} Quad-Core Processor/,/^AMD GX-/,/^AMD Opteron/,/^AMD PRO A(4|6|8|10|12)/,/^AMD Phenom\(tm\) 9/,/^AMD Processor model unknown/,/^AMD RX?-/,/^AMD Sempron/],lT=[/^Intel\(R\) (Pentium|Celeron)\(R\).*[NJ][0-9]{4} /,/^Intel\(R\) Atom\(TM\)/,/^Intel\(R\) Core\(TM\) ([im][357]|M)-[0-9]*Y[0-9]*/,/^Intel\(R\) Core\(TM\) i3-[23][0-9]{3}M/,/^Intel\(R\) Core\(TM\) i3-[3-7][0-9]+U/,
/^Intel\(R\) Core\(TM\) i[357] CPU +[MUQLX] [0-9]{3} /,/^Intel\(R\) Core\(TM\) i[57]-2[0-9]{3}M/,/^Intel\(R\) Core\(TM\) i[57]-[3-5][0-9]+U/,/^Intel\(R\) Core\(TM\)2/,/^Intel\(R\) Pentium\(R\) CPU [34][0-9]{3}[UY]/,/^Intel\(R\) Processor 5Y/],nT=[/^.+AMD Opteron/,/^Genuine Intel\(R\) CPU[ 0]+@/,/^HP Hexa-Core 2\.0GHz/,/^Quad-Core Processor \(up to 1.4GHz\)/,/^Rockchip \(Device Tree\)/,/^SAMSUNG EXYNOS/,/^Snapdragon/,/^Unknown x86 device/],iT=[/^Intel\(R\) Core\(TM\) i5-10210U CPU @ 1.60GHz/],gT=["AMD A6-9220C RADEON R5, 5 COMPUTE CORES 2C+3G"];var oT=function(){pv.call(this);this.gb=this.ra=null};u(oT,pv);k=oT.prototype;k.xa=function(){return{hangoutId:this.gb,isInProgress:"INPROGRESS"==this.getState(),remoteJid:this.ra,sessionId:this.h,state:this.getState()}};k.Na=function(){throw Error("getStream not supported on LocalSession");};k.qe=function(){};k.gk=function(){};k.so=function(){return!1};k.cl=function(){return!1};k.Go=function(){};k.Fm=function(){return null};k.Nm=function(){return null};k.zn=function(){return new fT};
var pT=function(a,b){U.call(this,"ga");this.g=a;this.j=b};u(pT,U);var qT=function(a){U.call(this,"ha");this.g=a};u(qT,U);var rT=function(a){U.call(this,"ja");this.cb=a};u(rT,U);var sT=function(a,b,c){U.call(this,"ia");this.j=a;this.Ib=b;this.g=c};u(sT,U);var tT=function(a,b,c){U.call(this,"fa");this.fa=a;this.label=b;this.payload=c};u(tT,U);var uT=function(a){U.call(this,"na");this.yg=a};u(uT,U);var vT=function(){this.w=null;this.D=!1;this.j=this.l=this.g=this.h=this.o=!0;this.G=!1;this.s=this.C=this.F=this.m=!0};vT.prototype.xa=function(){return{autoGainControl:this.g,echoCancellation:this.h,highPassFilter:this.j,inbandFec:this.F,dtx:this.C,noiseSuppression:this.l,preferredSendCodec:this.w,sendComfortNoise:this.o,sendOpus:this.s,sendStereo:this.D,stereoSwapping:this.G,transientSuppression:this.m}};
vT.prototype.ja=function(){var a=new vT;a.w=this.w;a.D=this.D;a.o=this.o;a.h=this.h;a.g=this.g;a.l=this.l;a.j=this.j;a.G=this.G;a.m=this.m;a.F=this.F;a.C=this.C;a.s=this.s;return a};var wT=function(){this.Nf=this.jl=this.kl=this.he=!0;this.Zi=!1;this.Wl=!0;this.Rc=null;this.Qd=[];this.Aw=!0;this.te=this.Pd=!1;this.Si=null;this.af=!0;this.kp=!1;this.Xm=[{urls:["stun:stun.l.google.com:19302","stun:stun1.l.google.com:19302","stun:stun2.l.google.com:19302","stun:stun3.l.google.com:19302","stun:stun4.l.google.com:19302"]}];this.Bw=!1;this.ow=!0;this.kg=new vT;this.hp=!0;this.Lk=this.qf=this.ei=this.Ki=this.Xl=!1;this.sr=void 0;this.dh=!1;this.ll=this.jp=!0;this.bd=null;this.zg=void 0;
this.Lj=1E4;this.If=!1;this.mp=!0;this.Hd=this.Ld=null;this.zw=this.Ji=this.Ii=this.yw=!0;this.Th=!1;this.jg=120;this.Mi=null;this.Cc=0;this.ti=!1;this.Df=1E3;this.Jh=!0;this.Yl=!1};
wT.prototype.xa=function(){return{useAudio:this.he,useVideo:this.kl,useData:this.jl,useVideoRtx:this.Nf,dumpRtpHeaders:this.Zi,allowEarlyMedia:this.Wl,earlyMediaHangoutId:this.Rc,defaultRequests:this.Qd,useStandardIce:this.Aw,debugLogUploadAllowed:this.Pd,debugLogUploadForced:this.te,clientResource:this.Si,useSimulcast:this.af,useP2P:this.kp,useTURN:this.Bw,startMuted:this.ow,useConferenceMode:this.hp,AudioDscp:this.Ld,VideoDscp:this.Hd,useVirtualAudioSSRCs:this.mp,allowH264:this.Xl,allowVp9:this.Ki,
sendVp9:this.ei,forceVp9:this.qf,useAdaptiveLayering_:this.dh,useWebrtcCpuAdaptation:this.ll,useBackendLoudestSpeaker:this.yw,bandwidthConstraints:this.bd,jmiIntervalMs:this.zg,jmiUploadIntervalMs:this.Lj,shouldHistogramData:this.If,allowOnlyRequestedVideo:this.Ji,isTestCall:this.Th,audioJitterBufferMinDelayMs:this.jg,audioProcessorConfig:this.Mi,audioLevelMode:this.Cc,usePassiveListener:this.ti,passiveModeDelayMillis:this.Df,excludeSelfStreams:this.Jh,allowSinglecast:this.Yl}};
wT.prototype.ja=function(){var a=new wT,b;for(b in this)a[b]=this[b];return a};var xT=function(a){a=a.ja();a.he=!1;return a},yT=function(a){a=a.ja();a.Nf=!1;return a};wT.prototype.uj=function(){return this.mp};wT.prototype.Lh=function(){return this.Zi};var zT=function(a,b){if(a.Pd&&a.te)return a;a=a.ja();a.Pd=b;return a},AT=function(a){a=a.ja();a.te=!0;return a},BT=function(a,b){a=a.ja();a.Rc=b;return a};wT.prototype.Sc=function(){return this.Qd};
wT.prototype.Pf=function(a){var b=this.ja();b.Qd=a;return b};wT.prototype.bc=function(){return this.Si};var CT=function(a,b){a=a.ja();a.kg=b;return a};wT.prototype.hj=function(){return this.Xl};wT.prototype.rf=function(){return this.Ki};var DT=function(a,b){a=a.ja();a.Ld=b;return a},ET=function(a,b){a=a.ja();a.Hd=b;return a};k=wT.prototype;k.vi=function(a){var b=this.ja();b.bd=a;return b};k.qc=function(){return this.bd};k.kj=function(){return this.zg};k.lj=function(){return this.Lj};k.sj=function(){return this.If};
k.Kh=function(){return this.Mi};var FT=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));a=a.substring(0,a.indexOf("://"));if("http"!==a&&"https"!==a&&"chrome-extension"!==a&&"file"!==a&&"android-app"!==a&&"chrome-search"!==a&&"chrome-untrusted"!==a&&"chrome"!==a&&"app"!==a)throw Error("Invalid URI scheme in origin: "+a);
c="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===a&&"80"!==e||"https"===a&&"443"!==e)c=":"+e}return a+"://"+b+c};var GT=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;r=p=0}function b(t){for(var A=g,z=0;64>z;z+=4)A[z/4]=t[z]<<24|t[z+1]<<16|t[z+2]<<8|t[z+3];for(z=16;80>z;z++)t=A[z-3]^A[z-8]^A[z-14]^A[z-16],A[z]=(t<<1|t>>>31)&4294967295;t=e[0];var G=e[1],N=e[2],Aa=e[3],Mb=e[4];for(z=0;80>z;z++){if(40>z)if(20>z){var Nb=Aa^G&(N^Aa);var Mj=1518500249}else Nb=G^N^Aa,Mj=1859775393;else 60>z?(Nb=G&N|Aa&(G|N),Mj=2400959708):(Nb=G^N^Aa,Mj=3395469782);Nb=((t<<5|t>>>
27)&4294967295)+Nb+Mb+Mj+A[z]&4294967295;Mb=Aa;Aa=N;N=(G<<30|G>>>2)&4294967295;G=t;t=Nb}e[0]=e[0]+t&4294967295;e[1]=e[1]+G&4294967295;e[2]=e[2]+N&4294967295;e[3]=e[3]+Aa&4294967295;e[4]=e[4]+Mb&4294967295}function c(t,A){if("string"===typeof t){t=unescape(encodeURIComponent(t));for(var z=[],G=0,N=t.length;G<N;++G)z.push(t.charCodeAt(G));t=z}A||(A=t.length);z=0;if(0==p)for(;z+64<A;)b(t.slice(z,z+64)),z+=64,r+=64;for(;z<A;)if(f[p++]=t[z++],r++,64==p)for(p=0,b(f);z+64<A;)b(t.slice(z,z+64)),z+=64,r+=
64}function d(){var t=[],A=8*r;56>p?c(h,56-p):c(h,64-(p-56));for(var z=63;56<=z;z--)f[z]=A&255,A>>>=8;b(f);for(z=A=0;5>z;z++)for(var G=24;0<=G;G-=8)t[A++]=e[z]>>G&255;return t}for(var e=[],f=[],g=[],h=[128],l=1;64>l;++l)h[l]=0;var p,r;a();return{reset:a,update:c,digest:d,digestString:function(){for(var t=d(),A="",z=0;z<t.length;z++)A+="0123456789ABCDEF".charAt(Math.floor(t[z]/16))+"0123456789ABCDEF".charAt(t[z]%16);return A}}};var IT=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],Hb(d,function(h){e.push(h)}),HT(e.join(" "));var f=[],g=[];Hb(c,function(h){g.push(h.key);f.push(h.value)});c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];Hb(d,function(h){e.push(h)});a=HT(e.join(" "));a=[c,a];0==g.length||a.push(g.join(""));return a.join("_")},HT=function(a){var b=GT();b.update(a);return b.digestString().toLowerCase()};var JT=function(){this.g=document||{cookie:""}};k=JT.prototype;k.isEnabled=function(){return navigator.cookieEnabled};
k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.YK;d=c.secure||!1;var f=c.domain||void 0;var g=c.path||void 0;var h=c.wt}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===h&&(h=-1);c=f?";domain="+f:"";g=g?";path="+g:"";d=d?";secure":"";h=0>h?"":0==h?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Xa()+1E3*h)).toUTCString();this.g.cookie=a+"="+b+c+g+h+d+(null!=e?";samesite="+e:
"")};k.get=function(a,b){for(var c=a+"=",d=(this.g.cookie||"").split(";"),e=0,f;e<d.length;e++){f=jd(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{wt:0,path:b,domain:c});return d};k.Lb=function(){return KT(this).keys};k.Ja=function(){return KT(this).values};k.uc=function(){return!this.g.cookie};k.wa=function(){return this.g.cookie?(this.g.cookie||"").split(";").length:0};
k.kf=function(a){for(var b=KT(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};k.clear=function(){for(var a=KT(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};var KT=function(a){a=(a.g.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=jd(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};var LT=function(a){var b=FT(String(Ea.location.href)),c;(c=Ea.__SAPISID||Ea.__APISID||Ea.__OVERRIDE_SID)?c=!0:(c=new JT,c=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID"),c=!!c);if(c&&(c=(b=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:"))?Ea.__SAPISID:Ea.__APISID,c||(c=new JT,c=c.get(b?"SAPISID":"APISID")||c.get("__Secure-3PAPISID")),c)){b=b?"SAPISIDHASH":"APISIDHASH";var d=String(Ea.location.href);return d&&c&&b?[b,IT(FT(d),c,a||null)].join(" "):null}return null};var MT=function(a,b,c){Lv(a.url,function(d){d=d.target;Vv(d)?b(Xv(d)):c(d.Ia())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};var NT=function(a){K(this,a,0,-1,null,null)};y(NT,J);var OT=function(a){K(this,a,0,-1,null,null)};y(OT,J);var QT=function(a){K(this,a,0,30,PT,null)};y(QT,J);var PT=[3,20,27],RT=function(a,b){return O(a,8,b)};var TT=function(a){K(this,a,0,17,ST,null)};y(TT,J);var ST=[3,5],UT=function(a){var b=Xa().toString();return O(a,4,b)},VT=function(a,b){return wl(a,3,b)},WT=function(a,b){return O(a,14,b)};var YT=function(a){K(this,a,0,6,XT,null)};y(YT,J);var XT=[5];var ZT=function(a){K(this,a,0,-1,null,null)};y(ZT,J);var $T=new function(){this.Od=ZT};var bU=function(a,b,c,d,e,f,g,h,l,p,r){pv.call(this);this.sa=a;this.ra=b||Ka;this.C=new TT;this.Aa=d;this.oa=r;this.h=[];this.Z="";this.Da=Wa(lf,0,1);this.l=e||null;this.L=c||null;this.F=g||!1;this.H=l||null;this.ka=this.R=-1;this.W=!1;this.u=Wf("playlog.clearcut.ClearcutBase");this.Ba=!h;this.o=null;this.G=0;this.Ha=1;this.ta=f||!1;a=new OT;a=O(a,1,1);f||(f=new NT,b=document.documentElement.getAttribute("lang"),f=O(f,5,b),S(a,11,f));S(this.C,1,a);O(this.C,2,this.sa);this.j=new rM(1E4,3E5,.1);this.g=
new qv(this.j.g);this.N(this.g);bv(this.g,"tick",uc(aU(this,p)),!1,this);this.s=new qv(6E5);this.N(this.s);bv(this.s,"tick",uc(aU(this,p)),!1,this);this.F||this.s.start();this.ta||(bv(hg(),"beforeunload",this.m,!1,this),bv(hg(),"unload",this.m,!1,this),bv(document,"pagehide",this.m,!1,this))};y(bU,pv);var aU=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};bU.prototype.aa=function(){this.m();bU.Ab.aa.call(this)};var cU=function(a,b){a.j=new rM(1>b?1:b,3E5,.1);rv(a.g,a.j.g)};
bU.prototype.log=function(a){a=Cl(a);var b=this.Ha++;O(a,21,b);L(a,1)||(b=Xa().toString(),O(a,1,b));for(;1E3<=this.h.length;)this.h.shift(),++this.G;this.h.push(a);this.M(new dU(a));this.F||this.g.enabled||this.g.start()};
bU.prototype.flush=function(a,b){var c=this;if(0==this.h.length)a&&a();else{var d=Xa();if(this.ka>d&&this.R<d)D(this.u,"Not flushing because server requested delay."),b&&b("throttled");else{var e=WT(VT(UT(Cl(this.C)),this.h),this.G);d={};var f=this.ra();f&&(d.Authorization=f);this.l||(this.l=.01>this.Da()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");var g=this.l;this.L&&(d["X-Goog-AuthUser"]=this.L,g=Tq(g,"authuser",this.L));this.H&&
(d["X-Goog-PageId"]=this.H,g=Tq(g,"pageId",this.H));if(f&&this.Z==f)D(this.u,"XHR with unauthorized request not retried"),b&&b("stale-auth-token");else{D(this.u,"Flushing log to clearcut.");this.h=[];this.g.enabled&&this.g.stop();this.G=0;var h=e.va(),l;this.o&&this.o.Yd(h.length)&&(l=this.o.g(h));var p={url:g,body:h,jr:1,requestHeaders:d,requestType:"POST",withCredentials:this.Ba,timeoutMillis:0},r=w(function(z){this.j.reset();rv(this.g,this.j.g);if(z){try{var G=JSON.parse(z.replace(")]}'\n",""));
var N=new YT(G)}catch(Aa){C(this.u,"Response parse failed: "+Aa)}N&&(z=M(N,1,"-1"),z=Number(z),0<z&&(this.R=Xa(),this.ka=this.R+z),jl(N),N.g||(N.g={}),$T.Od?(!N.g[175237375]&&N.l[175237375]&&(N.g[175237375]=new $T.Od(N.l[175237375])),N=N.g[175237375]):N=N.l[175237375],N&&(N=M(N,1,-1),-1!=N&&(this.W||cU(this,N))))}a&&a()},this),t=w(function(z){var G=R(e,QT,3);sM(this.j);rv(this.g,this.j.g);401==z&&f&&(this.Z=f);if(500<=z&&600>z||401==z||0==z)this.h=G.concat(this.h),this.F||this.g.enabled||this.g.start();
C(this.u,"Flush failed. Status code: "+z);b&&b("net-send-failed",z)},this),A=function(){c.oa?c.oa.send(p,r,t):c.Aa(p,r,t)};l?l.then(function(z){p.requestHeaders["Content-Encoding"]="gzip";p.requestHeaders["Content-Type"]="application/binary";p.body=z;p.jr=2;A()},function(){A()}):A()}}}};bU.prototype.m=function(){this.flush()};var dU=function(){this.type="event-logged"};y(dU,U);var eU=function(a,b,c,d,e,f,g){bU.call(this,a,LT,b,MT,c,d,e,void 0,f,g)};y(eU,bU);var fU=function(a){this.D=a;this.j=Date.now();this.g=this.h=this.l=this.m=this.w=this.s=this.o=0};fU.prototype.getStats=function(){var a=new RD;O(a,1,this.D);O(a,2,this.o);O(a,3,this.s);O(a,4,this.w);O(a,5,this.m);O(a,6,this.l);var b=Date.now(),c=-1,d=-1;if(-1!=this.j){var e=(b-this.j)/1E3;0<e&&(c=this.h/e,d=this.g/e)}O(a,9,c);O(a,10,d);this.g=this.h=0;this.j=b;return a};var gU=function(){this.g=new Map},hU=function(a){fK(a,CK)||tK(a,CK,function(){return new gU})};gU.prototype.reset=function(){this.g.clear()};var iU=function(a,b){if(a.g.has(b))return a.g.get(b);var c=new fU(b);a.g.set(b,c);return c};var jU=function(a,b){this.j=a;this.h=b};jU.prototype.toString=function(){for(var a=this.j,b=this.h,c="",d=0;d<a.length;d++)c+=a[d],d<b.length&&(c+=b[d]);return c};da.Object.defineProperties(jU.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return this.j}},values:{configurable:!0,enumerable:!0,get:function(){return this.h}}});
var kU=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=[];for(var e=[],f=0;f<a.length;f++)if(0<d.length?d[d.length-1]+=a[f]:d.push(a[f]),!(f>=c.length)){var g=c[f];g instanceof jU?0<g.g.length&&(d[d.length-1]+=g.g[0],d.push.apply(d,q(g.g.slice(1))),e.push.apply(e,q(g.values))):(e.push(g),d.push(""))}return new jU(d,e)};var lU=function(){};lU.prototype.Kd=function(a){var b=Wf(a.name),c=mU(a.level),d=a.message.toString();a.context&&(d="["+a.context.toString()+"] "+d);a.json&&(d+=" json="+JSON.stringify(a.json));Xf(b,c,d,a.error)};function mU(a){switch(a){case 0:return Of;case 1:return Mf;case 2:return Lf;case 3:return Kf;default:return Of}};var nU=function(){var a=this;this.h=new Set;this.g=[];setTimeout(function(){a.g=null},5E3)},oU=m(["",""]),qU=function(){var a=pU,b=new lU;if(null!==a.g)a.g.forEach(function(d){return b.Kd(d)});else if(null===a.g){var c={level:2,message:kU(oU,"A backend has been registered, but all catch-up entries have already been cleared. In order for a backend to receive catch-up entries, it must be registered within 5 seconds of the LogManager's creation."),name:"realtime.logging.internal.LogManager",context:null,
error:null,json:null,sessionId:null,timestamp:Date.now()};b.Kd(c)}a.h.add(b)};nU.prototype.Kd=function(a){null!==this.g&&this.g.push(a);for(var b=n(this.h),c=b.next();!c.done;c=b.next()){c=c.value;try{c.Kd(a)}catch(d){setTimeout(function(){throw d;},0)}}};var pU;var rU=function(a,b){void 0===b&&(pU||(pU=new nU,qU()),b=pU);this.s=a;this.w=b;this.C=this.o=this.D=this.j=this.m=this.l=null},sU=function(a){a.j=null;a.D=null;a.o=null;a.C=null},tU=function(a,b){a.j=b;return a},uU=function(a,b){a.o=b;return a};rU.prototype.h=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];vU(this,0,a,c)};rU.prototype.g=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];vU(this,1,a,c)};
rU.prototype.J=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];vU(this,2,a,c)};rU.prototype.Ra=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];vU(this,3,a,c)};
var wU=m(["CONTEXT FAILED"]),xU=m(["An error occurred generating context for log entry"]),vU=function(a,b,c,d){var e=a.s,f=a.j||a.l,g=a.D||a.m,h=a.o,l=a.C;c=new jU(c,d);sU(a);d=Date.now();var p=null;if(f)try{f(function(r,t){for(var A=[],z=1;z<arguments.length;++z)A[z-1]=arguments[z];p=new jU(r,A)})}catch(r){p=kU(wU),yU(a,d,g,kU(xU),r)}a.w.Kd({name:e,level:b,timestamp:d,sessionId:g,message:c,context:p,error:h,json:l})},yU=function(a,b,c,d,e){a.w.Kd({name:a.s,level:2,timestamp:b,sessionId:c,message:d,
context:null,json:null,error:e})},zU=function(a){var b=new rU(a.s,a.w);b.l=a.j||a.l;b.m=a.D||a.m;sU(a);return b};var AU=function(a,b,c){var d=a.h;iR.call(this,d.Y(),d.getId(),b,c);this.g=a};u(AU,iR);function BU(){}var CU=function(){T.call(this);this.s=new lL(this);this.j=this.s.signal()};u(CU,T);
var EU=function(a,b,c,d){c=void 0===c?BU:c;d=void 0===d?{vo:5,mm:40}:d;return new DU(a,b,c,d)},FU=m(["localSessionId=",""]),DU=function(a,b,c,d){CU.call(this);var e=this;this.g=new Set;this.C=b;this.u=zU(tU(new rU("realtime.media.session.ConnectionLostMonitor"),function(f){return f(FU,e.C.h)}));this.l=this.h=null;this.m=!1;this.D=new X(this);this.N(this.D);this.D.listen(this.C,"na",function(f){GU(e,"tu",!f.yg)});W(a,yK).then(function(f){f.m.attach(function(g){GU(e,"rfs",g>d.vo)})});this.o=c;this.F=
1E3*d.mm};u(DU,CU);var HU=m(["Connection lost alarm triggering: ",""]),IU=m(["Connection lost alarm not triggering: ",""]),GU=function(a,b,c){c?a.u.J(HU,b):a.u.g(IU,b);c?a.g.add(b):a.g.delete(b);a.g.size?null==a.h&&(a.h=sv(function(){a.o(6371,{Ub:Array.from(a.g).join(",")});a.m=!0;a.s.V(a.j,!0)},a.F),a.l=Y(),a.o(3061,{Ub:Array.from(a.g).join(",")})):null!=a.h&&(tv(a.h),a.h=null,a.m&&(a.m=!1,a.s.V(a.j,!1)),b=a.l?Math.round(qR(Y(),a.l)/1E3):-1,a.o(3062,{Fc:b}),a.l=null)};var JU=function(a,b,c){return EU(a,b,c)};var KU=function(a){QM.call(this);this.g=a;this.l=M(this.g,3,0);this.j=0;this.h=!1};u(KU,QM);
var MU=function(a,b){b=gF(b);if(null!=b){for(var c=n(b),d=c.next();!d.done;d=c.next())if(d=d.value,0==xF(d)&&2==tF(d)&&(0==L(d,57)||0==L(d,58))){a.l=M(a.g,3,0);return}b=n(b);for(d=b.next();!d.done;d=b.next())switch(c=d.value,xF(c)){case 2:d=a,0<d.l?--d.l:(L(c,40)||0)<M(d.g,1,6E4)?d.h||(++d.j,d.j>=M(d.g,2,1)&&(d.M(new LU(0)),d.h=!0)):(d.h&&(d.M(new LU(1)),d.h=!1),d.j=0)}}},LU=function(a){U.call(this,"qa");this.id=a};u(LU,U);var NU=function(){this.g=new Map};NU.prototype.register=function(a,b,c){var d=a.messageId;if("string"===typeof d){var e=this.g.get(d);e?(e.Do=e.Do||b,e.vm=e.vm||c):this.g.set(d,{Od:a,Do:b,vm:c})}};NU.prototype.Dh=function(a){var b=a[0],c=this.g.get(b);if(c)return new c.Od(a);throw Error("Unknown Message "+b);};var OU={},PU=new NU,QU=function(a,b){U.call(this,"ra");this.fa=a;this.data=b};u(QU,U);var RU=function(a){if(!a.g){a:{var b=a.data,c=b?b.indexOf(","):-1;if(-1!=c){var d=b.substring(0,c);if(d=d&&OU[d])try{var e=ik(b.substring(c+1));var f=d.Dh(e);break a}catch(h){}}try{var g=JSON.parse(b);if(Array.isArray(g)){f=PU.Dh(g);break a}}catch(h){}f=null}a.g=f}return a.g},SU=function(a){U.call(this,"sa");this.data=a};u(SU,U);var TU=function(a,b,c){U.call(this,"ta");this.sessionId=a;this.j=b;this.g=new Map(c)};u(TU,U);var UU=function(a){U.call(this,"ua");this.un=a};u(UU,U);var WU=function(){T.call(this);this.u=new rU("realtime.media.stats.BackendLoudestReportService");this.o=new X(this);this.N(this.o);this.h=new VU;this.g=new VU;this.j=new Map;this.l=null;this.m=new Map};u(WU,T);
var YU=function(a){fK(a,XU)||a.registerService(XU,new WU)},ZU=function(a,b){a.o.listen(b,"ua",function(c){null==a.l&&(a.l=c.un)})},aV=function(a,b){a.g.Bb!==b&&(a.g.Bb=b,a.g.g=Xa(),$U(a))},bV=function(a,b){a.h.Bb!==b&&(a.h.Bb=b,a.h.g=Xa(),$U(a))},cV=function(a,b){null!=a.l&&gF(b).forEach(function(c){if(1==tF(c)&&1==xF(c)){var d=[];oF(c).forEach(function(e){var f=L(e,3),g=L(e,2)||0;null!=f&&null!=L(e,1)&&null!=g&&((a.j.get(f)||[]).forEach(function(h){var l=h.Ni-(a.l||0);l>=(L(e,1)||0)&&l<=g&&d.push(h.client-
h.Ni)}),(!a.m.get(f)||g>a.m.get(f))&&a.m.set(f,g))});O(c,150,d||[])}})},dV=m(["Latencies for csrc "," reset before reporting"]),eV=function(a){null!=a.l?a.j.forEach(function(b,c){var d=a.m.get(c);b.filter(function(e){return!d||e.Ni-(a.l||0)>d});100<b.length&&(a.u.g(dV,c),b=[])}):a.j.clear()},$U=function(a){if(a.g.Bb&&a.g.Bb===a.h.Bb){if(2147483647>=Math.abs((a.h.g||0)-(a.g.g||0))){var b=a.g.Bb;a.j.has(b)||a.j.set(b,[]);a.j.get(b).push({Ni:a.g.g,client:a.h.g})}a.g.reset();a.h.reset()}},VU=function(){this.g=
this.Bb=null};VU.prototype.reset=function(){this.g=this.Bb=null};var XU=new VJ("kmRoq");var fV=function(){T.call(this);this.u=Wf("realtime.media.stats.HighResVideoTracker");this.h={};this.g={}};u(fV,T);var gV=function(a,b){gF(b).forEach(function(c){if(2==tF(c)&&1==xF(c)&&0<nF(c).length){var d=nF(c)[0];O(c,135,a.g[d]||[])}})};var hV=function(){ND.apply(this,arguments)};u(hV,ND);var jV=function(a){return 0<iV(a.wa())&&!a.h.some(function(b){return isNaN(b)})},iV=function(a){return null!=a?a:NaN};var kV=function(a){K(this,a,0,-1,null,null)};y(kV,J);var lV=function(){kV.apply(this,arguments)};u(lV,kV);var nV=function(a){for(var b=[],c=0;c<mV.length;c++){var d=LJ(KJ(new JJ,mV[c]),a.h[c+1]);b.push(d)}return OJ(b)},mV=[1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311];var oV=function(){KE.call(this);this.j=this.o=this.D=null};u(oV,KE);oV.prototype.F=function(){return this.j};var rV=function(){this.g=null;this.j=new pV(function(){return null},function(a,b){b=null!=b?b:NaN;a||(a=new hV);var c=iV(L(a,3));var d=iV(L(a,4));var e=iV(a.wa());if(isNaN(b))d={Tj:c,al:d,n:e};else if(isNaN(c)||isNaN(e)||1>e)d={Tj:b,al:NaN,n:1};else{e+=1;var f=b-c;c+=f/e;var g=NaN;1<e&&(g=Math.sqrt(((isNaN(d)?0:d*d)*(e-2)+f*(b-c))/(e-1)));d={Tj:c,al:g,n:e}}e=d.Tj;f=d.al;O(a,5,d.n);O(a,3,Math.round(e));O(a,4,Math.round(f));d=iV(L(a,1));e=iV(L(a,2));isNaN(b)?(O(a,1,d),O(a,2,e)):isNaN(d)?(O(a,1,b),O(a,
2,b)):(O(a,1,Math.min(b,d)),O(a,2,Math.max(b,e)));return a});this.l=new pV(function(){return new qV},function(a,b){a.update(b);return a});this.h=new pV(function(){return[]},function(a,b){if(null==b)return a;20<=a.length&&(a.length=0);a.push(b);return a})};rV.prototype.update=function(a){this.g=a;sV(this)};
var sV=function(a){iF(a.g).forEach(function(b){var c=L(b,1),d=L(b,2);b=L(b,3);var e=a.h;tV(e,e.h,c+"-"+d,uV,b)});gF(a.g).forEach(function(b){var c=nF(b)[0];if(c){var d=xF(b);vV(a,c,d,wV,L(b,2));vV(a,c,d,xV,L(b,113));vV(a,c,d,yV,L(b,96));vV(a,c,d,zV,L(b,42));switch(tF(b)){case 1:AV(a,c,d,BV,L(b,26));1==d?(vV(a,c,d,CV,ll(b,107)),vV(a,c,d,DV,ll(b,68)),vV(a,c,d,EV,ll(b,106)),vV(a,c,d,FV,ll(b,104)),vV(a,c,d,GV,ll(b,156)),vV(a,c,d,HV,ll(b,103)),vV(a,c,d,IV,ll(b,207)),JV(a,c,d,HV,ll(b,103)),JV(a,c,d,BV,
L(b,26)),JV(a,c,d,IV,ll(b,207)),(oF(b)||[]).forEach(function(e){JV(a,c,d,KV,e)})):0==d&&JV(a,c,d,uV,L(b,6));break;case 2:if(1==d){if(AV(a,c,d,LV,L(b,89)),0<(L(b,138)||0)&&(AV(a,c,d,MV,L(b,138)),b=b.o))AV(a,c,d,NV,(L(b,12)||0)-(L(b,11)||0)),AV(a,c,d,OV,(L(b,4)||0)-(L(b,3)||0)),AV(a,c,d,PV,(L(b,12)||0)-(L(b,9)||0)),AV(a,c,d,QV,(L(b,6)||0)-(L(b,2)||0))}else 0==d&&JV(a,c,d,uV,L(b,6))}}})},AV=function(a,b,c,d,e){a=a.j;tV(a,a.g,b+"-"+c,d,e)},vV=function(a,b,c,d,e){null!=e&&-1!=e&&(a=a.l,tV(a,a.g,b+"-"+
c,d,e))},JV=function(a,b,c,d,e){a=a.h;tV(a,a.g,b+"-"+c,d,e)},UV=function(a){if(!a.g)return null;iF(a.g).forEach(function(b){var c=b.j,d=uV,e=L(b,1),f=L(b,2);(d=a.h.h.get(e+"-"+f+"-"+d))&&c.call(b,d)});gF(a.g).forEach(function(b){var c=nF(b)[0],d=xF(b);c&&(RV(a,c,d,BV,b,b.H),RV(a,c,d,MV,b,b.Yv),RV(a,c,d,LV,b,b.cw),RV(a,c,d,NV,b,b.Vv),RV(a,c,d,OV,b,b.Wv),RV(a,c,d,PV,b,b.dw),RV(a,c,d,QV,b,b.gw),SV(a,c,d,CV,b,b.fi),SV(a,c,d,DV,b,b.hi),SV(a,c,d,EV,b,b.mi),SV(a,c,d,FV,b,b.ni),SV(a,c,d,GV,b,b.oi),SV(a,c,
d,HV,b,b.pi),SV(a,c,d,IV,b,b.Tv),SV(a,c,d,wV,b,function(e){return uF(b,Math.round(e))}),SV(a,c,d,xV,b,function(e){return O(b,113,Math.round(e))}),SV(a,c,d,yV,b,function(e){return GF(b,Math.round(e))}),SV(a,c,d,zV,b,function(e){return FF(b,Math.round(e))}),TV(a,c,d,HV,b,b.hw),TV(a,c,d,BV,b,b.Xv),TV(a,c,d,uV,b,b.G),TV(a,c,d,KV,b,b.C),TV(a,c,d,IV,b,b.Uv))});return a.g},RV=function(a,b,c,d,e,f){(a=a.j.g.get(b+"-"+c+"-"+d))&&jV(a)&&f.call(e,a)},SV=function(a,b,c,d,e,f){(a=a.l.g.get(b+"-"+c+"-"+d))&&!isNaN(a.g)&&
f.call(e,a.g)},TV=function(a,b,c,d,e,f){(a=a.h.g.get(b+"-"+c+"-"+d))&&f.call(e,a)};rV.prototype.reset=function(){this.g=null;this.j.reset();this.l.reset();this.h.reset()};var pV=function(a,b){this.j=a;this.l=b;this.g=new Map;this.h=new Map},tV=function(a,b,c,d,e){c=c+"-"+d;d=b.has(c)?b.get(c):a.j();a=a.l(d,e);b.set(c,a)};pV.prototype.reset=function(){this.g.clear();this.h.clear()};var VV=function(a){this.Qa=a};VV.prototype.toString=function(){return this.Qa};
var BV=new VV("XTvm9d"),MV=new VV("TdVfcf"),LV=new VV("eQTbEc"),NV=new VV("a4Yxj"),OV=new VV("nUWCZc"),PV=new VV("Nboi5"),QV=new VV("R5vmJf"),CV=new VV("gzdO6e"),DV=new VV("tXhbTd"),EV=new VV("KQMrwb"),FV=new VV("VV4zEf"),GV=new VV("JFlPof"),HV=new VV("BUnMQ"),IV=new VV("i5kSvf"),KV=new VV("bBLyge"),uV=new VV("Wau6Je"),wV=new VV("YoLTIb"),xV=new VV("A1VqNe"),yV=new VV("F2EIlf"),zV=new VV("DbrXbf"),qV=function(){this.g=NaN;this.h=0};
qV.prototype.update=function(a){this.h++;this.g=1===this.h?a:this.g+(a-this.g)/this.h};var XV=function(){T.call(this);var a=this;this.u=Wf("realtime.media.stats.SpeakerSwitchReportService");this.o=new Map;this.m=new Map;this.s=new Map;this.h=new X;this.N(this.h);this.l=function(b){WV(a,null,b.target)};this.j=new Map;this.g=0};u(XV,T);
var YV=function(a){fK(a,GK)||tK(a,GK,function(){return new XV})},ZV=function(a,b){var c=new X;a.N(c);c.listen(b,"ta",function(){}).listen(b,"ua",function(d){a.g||(a.g=d.un)})},$V=function(a,b){var c=b.Y();b=b?b.getInfo().fb():[];c&&0<b.length&&a.s.set(c,b[0])},aW=function(a,b){"a"==b.getInfo().ia()&&(a.h.listen(b,"$",a.l),$V(a,b))},WV=function(a,b,c){b&&(tN(a.h,b,"$",a.l),aW(a,c));if("a"==c.getInfo().ia()&&0<c.getInfo().fb().length){b=c.getInfo().fb()[0];var d=c.getInfo().lc(),e=0==c.getState();d||
e?(a.m.set(b,Xa()),a.o.clear()):a.m.delete(b);$V(a,c)}},bW=function(a,b){if("a"==b.getInfo().ia()){tN(a.h,b,"$",a.l);var c=b.getInfo().fb()[0]||null;c&&(a.m.delete(c),a.o.clear());a.s.delete(b.Y())}},cW=function(a,b){gF(b).forEach(function(c){if(1==tF(c)&&1==xF(c)&&0!=nF(c).length){var d=nF(c)[0],e=[];0!=oF(c).length&&a.g?oF(c).forEach(function(f){var g=L(f,3);null!=g&&null!=L(f,1)&&null!=L(f,2)&&(a.j.get(g)||[]).forEach(function(h){var l=h.fe-a.g;l>=(L(f,1)||0)&&l<=(L(f,2)||0)&&e.push(h.Td-h.fe)})}):
a.j.has(d)&&a.j.get(d).forEach(function(f){return e.push(f.Td-f.fe)});O(c,142,e||[])}})};var dW=function(){T.call(this);this.u=Wf("realtime.media.stats.VideoFeedTracker");this.h=new Map;this.g=new Map};u(dW,T);var eW=function(a,b){gF(b).forEach(function(c){if(2==tF(c)&&0<nF(c).length){var d=nF(c)[0];d=a.g.get(d)||[];O(c,141,d||[])}})};var fW=function(a,b,c){iR.call(this,b.Y(),b.za(),b,c);this.j=a;this.g=!1};u(fW,iR);fW.prototype.o=function(){return this.j};var gW=function(){QM.apply(this,arguments)};u(gW,QM);var hW=function(a){U.call(this,"wa");this.g=a.slice()};u(hW,U);var iW=m(["localSessionId=",""]),jW=m(["Creating a new session with options=","."]),oW=function(a,b,c,d,e){eT.call(this);var f=this;this.u=tU(new rU("realtime.media.session.SessionImpl"),function(g){return g(iW,f.qb())});this.ph=b;this.j=d;this.g=c;this.N(this.g);this.h=kW(b,a,d,e);this.N(this.h);this.G=lW(b,d,e);this.N(this.G);this.u.g(jW,xs(d.xa()));this.nh=W(a,AK);this.Vf=W(a,zK);this.oh=null;W(a,CK).then(function(g){f.oh=g});d=JU(a,c,function(g,h){return mW(f,g,h)});d.j.attach(function(g){g&&
f.stop(10)});this.N(d);this.Wf=!1;this.kb=EU(a,c,void 0,{vo:2,mm:5});this.kb.j.attach(function(g){f.Wf=g});this.N(this.kb);this.Aa=null;this.o=new X(this);this.N(this.o);this.o.listen(this.g,"fa",this.Gh).listen(this.g,"ha",this.qh).listen(this.g,"ga",this.Mj).listen(this.g,WS,this.gj).listen(this.g,"ja",this.Bj).listen(this.g,"ia",this.zj).listen(this.g,"ma",this.Kj).listen(this.g,"la",this.Oj).listen(this.g,"aa",this.Zf);this.Vf.then(function(g){sN(f.o,g,"oa",function(){f.j.Pd&&nW(f.g)})});this.o.listen(this.h,
"aa",this.bg).listen(this.h,"P",this.rh).listen(this.h,bT,this.Sj);this.o.listen(this.h,aT,this.sh,!0);this.ob=this.nd=!1;this.oa=[];this.ic=bt();this.fg=bt();this.Xf="";this.s={};this.l=this.Sa=this.ta=this.ra=null;this.fc=[];this.Ya=[];this.m=[];this.hc={};this.La=new nA(20);this.F=this.eb=null;this.Eb=this.xb=this.sa=Y();this.pd=this.Id=!1;this.Ba=!0;this.ka=this.gg=!1;this.rd=rR;this.pb=!1;b=(b=b.g)&&Q(b,mM,19)||new mM;this.Ob=void 0;this.Uf=Ka;this.If=this.j.sj();this.wb=new rV;this.Mc=new KU(b);
this.o.listen(this.Mc,"qa",this.vh);this.Ha=bt();this.H=[];this.Ma=null;(b=navigator.getBattery?navigator.getBattery():null)&&b.then&&b.then(function(g){return f.Ma=g});this.Da=new fV;this.Bc=new dW;this.C=null;W(a,GK,!0).then(function(g){return f.C=g});this.Z=null;W(a,XU,!0).then(function(g){f.Z=g});this.Nc="";this.W=new Map;this.me=new Map;this.eg=!1;this.L=this.R=null;this.Lc=this.ne=0};u(oW,eT);oW.prototype.vn=function(a){a=pW(this.g.g,a,{ordered:!0,maxRetransmits:10});return new qW(a)};
oW.prototype.wn=function(){var a=this.sa;return mR!=Date.now?a.g:a.g+(Date.now()-(mR!=Date.now?Date.now():nR()))};oW.prototype.fn=function(){return this.eg};oW.prototype.ej=function(a){var b=this;this.ob=!0;this.Ya.forEach(function(c){return rW(b,c)});this.Ya=[];return a};
var sW=m(["Starting session after already started."]),tW=m(["Preparation failed because local session failed to create an offer."]),uW=m(["Preparation failed because because local session failed to prepare."]),vW=m(["Request early media for hangout\n       ",""]),wW=m(["Failed to prepare session because remote session failed to prepare."]),HW=function(a){if("INITIAL"!=a.getState())return a.u.J(sW),!1;xW(a,"STARTING");if(!a.g.g.localDescription)return a.u.J(tW),!1;var b=a.g;if("INITIAL"!=b.l)b.j.J("Called prepare in a bad state."),
b=!1;else if(b.g.localDescription){var c=b.o,d=b.h;yW(c.g,"Starting logging for sessionId="+d);c.w.add(d);zW(c,3220);var e=OA.Kb();e.h=d;e.g[d]=e.s;e.s=new rA;e.g[d].open(e.m,"hangouts-call-"+d+".log");var f=new Date;PA(e,d,"### Start ["+f.toString()+"] ### "+d);PA(e,d,"Current time is "+f.toUTCString());PA(e,d,"Google Talk Plugin Version: "+e.w);PA(e,d,"User agent: "+Wd);c.m||(c.m=d,c.h?AW(c):BW(c));CW(b.g);DW(b,"STARTING");b=!0}else b.j.J("Prepare called before local offer has been generated."),
b=!1;if(!b)return a.u.J(uW),!1;b=a.g;c=a.j.Lh();yW(b.j,"enableRtpHeaderDump called with enable="+c+" for sessionId="+b.h);EW(b.o,b.h,c);a.j.Rc&&a.j.Sc().length&&a.u.g(vW,a.j.Rc);b=null!==a.j.Rc&&0<a.j.Sc().length?a.j.Rc:null;c=a.h;"INITIAL"!=c.o?b=!1:(c.kb=null!=b,FW(c,b||""),GW(c,"STARTING"),b=!0);return b?!0:(a.u.J(wW),!1)},IW=m(["Starting with remote description: ",""]),JW=m(["Received remote description without session id."]);
oW.prototype.start=function(a){this.nd=!0;if("INITIAL"==this.getState()&&!HW(this))return!1;this.Sa=a;this.u.g(IW,xs(a.xa()));var b=a.ua;null!=b&&(a=oQ(a,eQ(b,"opus")),this.oa=LP(b),this.M(new fR(this.oa)));a=KW(this,a);this.l=a=LW(this,a);b=a.j;if(null==b)return this.u.J(JW),mW(this,3948),this.stop(16,"Received remote description without session id."),!1;this.fc.forEach(function(c){a=tQ(a,c.Ul,c.ro)});Ub(this.fc);MW(this,b);this.h.start(b);this.g.start(a);NW(this.g,this.H);xW(this,"STARTED");b=OW(a);
0<b.length&&PW(this.g.g,b);QW(this);RW(this);this.ic.resolve();this.j.te&&this.j.Pd&&nW(this.g);return!0};
var TW=function(a){var b=SW(a.ph);if(!b)return null;var c=null!=L(b,7)?Q(b,xG,7):new xG,d=null!=L(c,6)?Q(c,yG,6):new yG;"high"==a.j.Ld&&O(d,84,!0);"high"==a.j.Hd?O(d,85,!0):"very-low"==a.j.Hd&&O(d,86,!0);S(c,6,d);S(b,7,c);return b},UW=m(["Connecting session to hangoutId=","."]),VW=m(["Uploaded logging data for ","."]),WW=m(["Uploading logging data for "," failed."]),XW=m(["No logging data to upload for ","."]);
oW.prototype.yh=function(a,b,c){var d=this,e=this.g.h;this.u.g(UW,a);this.Xf=b;this.g.gb=a;this.g.connect();c||(c=new YS);var f={gb:a,fa:b,Zc:c,nr:Y(),pr:Date.now()};this.h.yh(a,b,c);this.G.g=f;this.ic.da.then(function(){de()&&Ae()&&0<Ea.navigator.maxTouchPoints&&mW(d,6589);ft(YW(d.G,TW(d),e),function(g){uU(d.u,g).J("Upload log failed on connectToHangout.")})});(a=this.g.Nm())?ft(a.then(function(g){return YW(d.G,g,e)}).then(function(){d.u.g(VW,e);mW(d,5817)}),function(g){uU(d.u,g).J(WW,e);mW(d,5818)}):
(mW(this,5819),this.u.g(XW,e))};var ZW=m(["Attempting to pause session."]),$W=m(["Failed to pause session."]);oW.prototype.pause=function(){this.u.g(ZW);if("INPROGRESS"!=this.getState())return!1;this.m.forEach(function(a){"d"!=a.getInfo().ia()&&jR(a,0)});if(!this.g.pause())return this.u.Ra($W),!1;tv(this.F);this.F=null;xW(this,"PAUSED");return!0};var aX=m(["Attempting to resume session."]),bX=m(["Failed to resume session."]);
oW.prototype.resume=function(){this.u.g(aX);if("PAUSED"!=this.getState())return!1;if(!this.g.resume())return this.u.Ra(bX),!1;this.h.resume();this.m.forEach(function(a){"d"!=a.getInfo().ia()&&jR(a,1)});this.M("W");xW(this,"INPROGRESS");this.M(new eR([],[],this.qb()));QW(this);return!0};
var cX=m(["Ignoring call to stop with endCause: "," and debug information: ",", because it has already stopped."]),dX=m(["Stopping because stop called with endCause: ",".\n        Debug information (if any): ","\n        Stack trace:\n        ",""]);
oW.prototype.stop=function(a,b){if("STOPPED"==this.getState()||"FINISHED"==this.getState())return this.u.g(cX,a,b),!0;this.u.g(dX,a,b,Cf());b&&(this.Nc=b);tN(tN(tN(tN(this.o,this.g,"aa",this.Zf),this.h,"aa",this.bg),this.ra,"wa",this.cg),this.ta,"wa",this.dg);var c;if(c=this.j.Pd)a:switch(a){case 3:case 8:case 111:case 113:case 114:case 115:case 10:case 102:case 13:case 58:case 19:case 15:case 16:case 17:case 23:case 26:case 120:case 28:case 29:case 32:case 33:case 34:case 109:case 108:case 110:case 119:c=
!0;break a;default:c=!1}c&&nW(this.g);tv(this.F);this.F=null;this.g.stop(a,b);this.h.stop(a,b);xW(this,"STOPPED",a,b);et(uv(2E3),this.Ha.resolve,this.Ha);return!0};oW.prototype.aa=function(){this.stop(this.nd?6:72);et(this.Ha.da,QM.prototype.aa,this)};
var eX=m(["Adding stream after end."]),fX=m(["Successfully added capture: ",""]),rW=function(a,b){switch(a.getState()){case "STOPPED":case "FINISHED":return a.u.J(eX),!1}if(!a.ob)return a.Ya.push(b),!0;var c=b.h,d=a.s[gX(c)];if(d)return b="sc"!=c.getContent(),hX(d,b),!1;d=iX(a.g,b);if(null==d)return!1;var e=SO(new NO(d),b.Nb()).ha();"v"==c.Ga&&a.ic.da.then(function(){var f=HP(GP(CP(BP(EP(AP(DP(new zP,c.getId()),"v"),a.h.g),e.fb()),e.g),fS),30).ha();jX(a,[f])});kX(a.h,[e]);"v"==c.Ga&&a.o.listen(c,
"A",a.ag);d=lX(b,a.qb(),e);a.s[gX(c)]=d;a.M(new eR([d.getInfo()],[]));a.o.listen(b,"H",a.Yf);a.u.g(fX,xs(b.xa()));return!0},mX=m(["Removing stream after end."]);oW.prototype.ag=function(a){a=a.target;if("sc"==a.getContent())a=a.getId()+"ca",hX(this.s[a],!1),nX(this.h);else if("ca"==a.getContent()){var b=this.s[gX(a)];hX(b,!0);oX(this.h);pX(this.h,this.s[gX(a)].getInfo())}};
var qX=function(a,b){a.Uf=b},rX=m(["Now has these "," participant(s): ",""]),sX=function(a,b){a.u.g(rX,b.length,xs(b));a=a.h;a.sa=new Set(b);null!=a.l&&ZN(a.l)},tX=m(["Changed state from "," to ",""]),uX=m(["State change due to ",""]),xW=function(a,b,c,d){a.u.g(tX,a.getState(),b);d&&a.u.g(uX,d);a.Wb!=b&&(a.Wb=b,a.Vb=c,a.M(new lR(b,c,d)))},vX=m(["Changing stream requests after end."]),wX=m(["Received stream request for DOWN stream from UI: ",""]);
oW.prototype.qe=function(a){var b=this;switch(this.getState()){case "STOPPED":case "FINISHED":this.u.J(vX);return}this.j.Th||(a=a.filter(function(c){c=new IO(c.Y(),c.za(),c.ia());return null===xX(b,c)}));a.forEach(function(c){b.u.g(wX,c);var d=b.Da,e=c.Y(),f=c.za();c=c.sc();e+=f;c&&c.width*c.height>=fS.width*fS.height?d.h[e]||(d.h[e]=Xa()):delete d.h[e]});null!=this.ra?yX(this.ra,a):zX(this,a)};oW.prototype.cg=function(a){AX(this,a.g);zX(this,a.g)};
var zX=function(a,b){mW(a,5150);a.g.qe(b);a.h.qe(b);a.hc={};b.forEach(function(c){if(c.h){var d=c.Y();c=c.za();a.hc[d+c]=!0}});a.m.forEach(a.zc,a)};oW.prototype.zc=function(a){var b=a.Y(),c=a.za();b=this.hc[b+c]||!1;b!=a.g&&(a.g=b,a.M("va"))};
var AX=function(a,b){b=n(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.fb();if(null!=d){c=c.m;d=n(d);for(var e=d.next();!e.done;e=d.next())a.W.set(e.value,c)}}},BX=m(["Stream Requests for UP streams received from remote\n     side: ","."]),CX=m(["Audio Stream Requests for UP streams received unexpectedly from remote\n       side: ","."]),jX=function(a,b){a.u.g(BX,xs(b));DX(a,EX(a,b));if(null!==a.ta){if(b.filter(function(c){return"v"==c.ia()}).length){yX(a.ta,b);return}a.u.J(CX,xs(b))}FX(a,
b)},GX=m(["Muted unknown capture."]);oW.prototype.Yf=function(a){var b=a.target;a=b.Nb();b=b.h;var c=b.Ga;"a"==c?this.ne++:"v"==c&&this.Lc++;(b=this.s[gX(b)])?(a=SO(new NO(b.getInfo()),a).ha(),b.h=a,pX(this.h,a)):this.u.J(GX)};var hX=function(a,b){a&&(b=VO(new NO(a.getInfo()),b).ha(),a.h=b)};oW.prototype.dg=function(a){FX(this,a.g)};
var HX=m(["Sending stream requests for UP streams to local session:\n     ","."]),FX=function(a,b){var c=b.filter(function(e){e=e.s;return!(null!=e&&a.h.g!=e)});if(0!=c.length){AX(a,c);a.H=bc(a.H.filter(function(e){return!c.some(function(f){return yP(e,f)})}),c);var d=a.j.sr;void 0!=d&&(a.H=a.H.map(function(e){return(e.j||0)>d?HP(new zP(e),d).ha():e}));a.u.g(HX,xs(a.H));mW(a,5147);NW(a.g,a.H)}},EX=function(a,b){if(!jf||!Qp(59)||!a.j.dh)return!1;var c=null;b.forEach(function(d){!id(d.za())&&d.sc()&&
(null==c||d.sc().width>c.sc().width)&&(c=d)});if(null==c)return!1;a=c.sc();return a.height*a.width<fS.width*fS.height},DX=function(a,b){if(a.l&&a.pb!=b)if(a.pb=b)a.Aa=new tR,uR(a.Aa,834),a.R=Y(),a.L=null;else{var c=a.Aa;a.Aa=null;a.R=null;a.L=Y();uR(c,835);a.Vf.then(function(d){return IX(d,vR(c))})}};oW.prototype.Na=function(a){if(!this.j.Th){var b=xX(this,a);if(null!=b)return b}return Sb(this.m,function(c){c=c.getInfo();return c.Y()==a.Y()&&c.ia()==a.Ga&&c.za()==a.getId()})};
oW.prototype.xa=function(){var a=eT.prototype.xa.call(this),b=TW(this);Object.assign(a,{sessionOptions:this.j.xa(),audioOptions:this.j.kg.xa(),systemInfo:b?b.va():"Unavailable",sessionEndDebugInfo:this.Nc});return a};
var xX=function(a,b){if(b.Y()!=a.Xf&&""!=b.Y())return null;a=Object.values(a.s).filter(function(c){c=c.g.h;return b.getId()==c.getId()&&b.Ga==c.Ga});return 1<a.length?a.find(function(c){return"sc"==c.g.h.getContent()}):1==a.length?a[0]:null},gX=function(a){var b=a.getId();a=a.getContent();return b+a};oW.prototype.qb=function(){return this.g.h};var OW=function(a){return(a=a.g)?cc(a.l):[]},JX=m(["Received local candidates before starting."]),KX=m(["Received local candidates after stopped."]);
oW.prototype.qh=function(a){var b=this;switch(this.getState()){case "INITIAL":this.u.J(JX);return;case "STOPPED":case "FINISHED":this.u.J(KX);return}a.g.forEach(function(c){2!=c.g&&0>Qb(b.La.Ja(),function(d){return iP(d,c)})&&b.La.add(c)});null==this.eb&&(this.eb=sv(function(){b.fg.da.then(b.lk,null,b);b.eb=null},500))};var LX=m(["Sending local ICE candidates over to the other side:\n     ","."]);oW.prototype.lk=function(a){this.u.g(LX,xs(this.La.Ja()));this.M(new gR(this.La.Ja(),a))};
var NX=function(a,b){if(b=gF(b))for(var c=0;c<b.length;c++){var d=b[c];if(null!=d&&2==tF(d)){var e=L(d,65)||0;0==xF(d)&&a.pb&&(e|=4096);var f=zF(d);if(null!=f&&a.W.has(f))e|=a.W.get(f);else{f=n(nF(d));for(var g=f.next();!g.done;g=f.next())if(g=g.value,a.W.has(g)){e|=a.W.get(g);break}}0==xF(d)&&nF(d).some(function(h){return MX(a,h).some(function(l){return!!l.getInfo().l})})&&(e|=8192);O(d,65,e)}}},QX=function(a,b){(b=gF(b))&&b.forEach(function(c){var d=nF(c)[0];if(1==xF(c)&&null==L(c,59)){var e=2==
tF(c)&&Sb(a.m,function(f){return f.getInfo().g==d});e&&JF(c,!e.getInfo().Wd())}else 0==xF(c)&&(e=OX(a,d).map(function(f){return f.h}).filter(function(f){return"sc"==f.getContent()}),JF(c,0<e.length),KF(c,PX(e)))})},RX=function(a){var b=gF(a);if(b){var c=[],d=[];b=n(b);for(var e=b.next();!e.done;e=b.next())e=e.value,1==xF(e)&&2==tF(e)?(e=zF(e)||nF(e)[0]||0,c.push(e)):d.push(e);b=BR(xR("cPNXuf"),50);c.length>b&&(b=new XD,b=O(b,1,c.length),c=O(b,2,c||[]),S(a,207,c),PF(a,d))}},SX=function(a,b,c){var d=
gF(b);d&&PF(b,d.filter(function(e){if(1==xF(e)){var f=zF(e)||nF(e)[0]||0,g=a.me.get(f)||{},h=g.packets||0,l=g.kt||!1;e=L(e,10)||0;h=h==e;l=!l||!h;c&&(g.packets=e,g.kt=h,a.me.set(f,g));return l}return!0}))},TX=function(a,b){var c=a.R&&15E3<qR(Y(),a.R),d=a.L&&15E3<qR(Y(),a.L);if(c||d){var e=gF(b).filter(function(f){return f&&2==tF(f)&&0==xF(f)});b=c&&e.some(function(f){return(L(f,57)||0)>=fS.width});e=d&&e.every(function(f){return(L(f,57)||0)<=eS.width});b&&mW(a,4627);e&&mW(a,4875);c&&(a.R=null);d&&
(a.L=null)}},VX=function(a,b){gF(b).forEach(function(c){return UX(a,c)})},UX=function(a,b){var c=nF(b)[0];if(0==xF(b)){var d=OX(a,c);0<d.length&&yF(b,d.every(function(e){return e.Nb()})?1:2);2==tF(b)?O(b,185,a.Lc):1==tF(b)&&O(b,185,a.ne)}else 1==xF(b)&&2==tF(b)&&(a=Sb(a.m,function(e){return"v"==e.getInfo().ia()&&e.getInfo().fb()[0]==c}))&&yF(b,a.getInfo().lc()?1:2)};oW.prototype.vh=function(a){this.M(new cR(a.id))};
oW.prototype.Bj=function(a){if(null!=a.cb){VX(this,a.cb);NX(this,a.cb);WX(this,a.cb);gV(this.Da,a.cb);eW(this.Bc,a.cb);this.C&&cW(this.C,a.cb);this.Z&&cV(this.Z,a.cb);QX(this,a.cb);TX(this,a.cb);this.h.An(a.cb);this.Uf(a.cb);this.Ob=a.cb;this.If&&this.wb.update(a.cb);this.Ba||(this.Ba="PAUSED"!=this.getState());var b=this.Ba&&this.j.lj()<qR(Y(),this.rd);SX(this,a.cb,b);b&&(RX(a.cb),this.j.Ii&&(b=this.If&&UV(this.wb)||a.cb,XX(this.G,b,this.qb())),this.rd=Y(),this.Ob=void 0,this.wb.reset(),this.Da.g=
{},this.Bc.g.clear(),this.C&&this.C.j.clear(),this.Z&&eV(this.Z),this.Ba="PAUSED"!=this.getState());MU(this.Mc,a.cb);var c=!1;iF(a.cb).forEach(function(d){c=c||0<L(d,7)});this.eg=c;this.M(new aR(a.cb))}};var YX=m(["Logging finished before media stopped!"]),ZX=m(["Finalize log uploads failed."]);oW.prototype.zj=function(a){var b=this;$X(this.G,a.j,this.qb(),a.Ib,this.Ob,a.g).then(function(){"STOPPED"!=b.getState()?b.u.J(YX):(xW(b,"FINISHED"),b.Ha.resolve())},function(c){uU(b.u,c).J(ZX)})};
oW.prototype.Kj=function(a){var b=this.Da,c=a.fa,d=a.sourceId,e=a.ssrc,f=c+d;(a=a.g)&&a.width*a.height>=fS.width*fS.height&&(a=b.h[f])&&(a=Xa()-a,0<=a&&(b.g[e]=b.g[e]||[],b.g[e].push(a),delete b.h[f],Zf(b.u,"participantId: "+c+" sourceId: "+d+" ssrc: "+(e+" latency: "+a))))};
oW.prototype.Oj=function(a){var b=a.source?this.Na(a.source):null,c=b?b.getInfo().fb():[];b=this.Bc;a=a.id;c=0<c.length?c[0]:null;if(b.h.has(a)){var d=Xa()-b.h.get(a).fe,e=b.h.get(a).ssrc;0<=d&&2147483647>=d?(b.g.has(e)||b.g.set(e,[]),b.g.get(e).push(d),Zf(b.u,"Logged ssrc: "+e+" duration: "+d)):D(b.u,"Ignore invalid main feed ssrc: "+e+" duration: "+d)}else D(b.u,"Skip logging duration for id: "+a);c?b.h.set(a,{ssrc:c,fe:Xa()}):b.h.delete(a)};var aY=m(["Latency event: ","."]);
oW.prototype.gj=function(a){this.u.g(aY,a.message);"transport writable"==a.message?(this.gg=!0,this.ka||sv(this.mh,2E3,this),this.M(new eR([],[],this.qb())),RW(this)):"recv first video packet"==a.message?(this.ka=!0,RW(this)):"transport not writable"==a.message&&(a=this.h,bY(a.C),a.j&&nO(a.j),a.l&&nO(a.l))};oW.prototype.mh=function(){this.ka||(this.ka=!0,RW(this))};
var RW=function(a){"STARTED"==a.getState()&&a.gg&&a.ka&&(xW(a,"INPROGRESS"),a.M(new eR([],[],a.qb())))},cY=m(["Received data on the broadcast data channel. Data: ",""]);oW.prototype.Gh=function(a){switch(a.label){case "collections":this.M(new SU(a.payload));break;case "dataSendChannel":this.u.Ra(cY,a.payload);break;default:this.M(new QU(a.fa,a.payload))}};
var QW=function(a){a.F=sv(a.lh,5E3,a)},dY=m(["Session started receiving audio."]),eY=m(["Session stopped receiving audio!"]),fY=m(["Session started receiving video."]),gY=m(["Session stopped receiving video!"]);oW.prototype.Mj=function(a){if(null!=this.F){a.g!=this.Id&&(a.g?this.u.g(dY):this.u.J(eY),this.Id=a.g);a.j!=this.pd&&(a.j?this.u.g(fY):this.u.J(gY),this.pd=a.j);var b=Y();a.g&&(this.xb=b);a.j&&(this.Eb=b);if(a.g||a.j)tv(this.F),this.F=null,QW(this)}};
var hY=m(["Session has never received audio."]),iY=m(["Session has not received audio for "," seconds."]),jY=m(["Session has never received video."]),kY=m(["Session has not received video for "," seconds."]);oW.prototype.lh=function(){var a=Y(),b=qR(a,this.xb)/1E3;a=qR(a,this.Eb)/1E3;this.M(new bR(this.h.g,b,a));this.xb==this.sa?this.u.g(hY):5E3<b&&this.u.g(iY,b);this.Eb==this.sa?this.u.g(jY):5E3<a&&this.u.g(kY,a);QW(this)};
var lY=m(["Stopping session because local session stopped with endCause: ","."]),mY=m(["Local session stopped before starting."]),nY=m(["Local session stopped after already stopped."]);oW.prototype.Zf=function(a){if("STOPPED"==this.g.getState()){this.u.g(lY,a.Ib);switch(this.getState()){case "INITIAL":this.u.J(mY);xW(this,"STOPPED",a.Ib,a.g);return;case "STOPPED":this.u.J(nY);return}this.stop(a.Ib,a.g)}};var oY=m(["Remote session stopped before starting."]),pY=m(["Remote session stopped after already stopped."]);
oW.prototype.bg=function(a){if("STOPPED"==this.h.getState()){switch(this.getState()){case "INITIAL":this.u.J(oY);return;case "STOPPED":this.u.J(pY);return}this.stop(a.Ib,a.g)}};oW.prototype.rh=function(a){this.M(a)};
var qY=m(["Remote description changed before starting."]),rY=m(["Remote description changed after end."]),sY=m(["Received modified remote description: ","."]),tY=m(["Session IDs are now set: LocalSession ID: ",",\n       RemoteSession ID: ",". Note: Session\n       is not yet active."]),MW=function(a,b){null!=b&&null==a.h.g&&(uY(a.h,b),a.G.l=b,a.fg.resolve(b),a.u.g(tY,a.qb(),vY(a.h)))},wY=m(["Received remote streams before starting."]),xY=m(["Received remote streams after end."]),yY=m(["Queuing stream changes. addedStreams.length=",
",\n         removedStreams.length=",""]),zY=m(["Sending stream adds. addedStreams.length=",",\n         removedStreams.length=",""]);
oW.prototype.sh=function(a){var b=a.Pc,c=a.vc;a=a.removed;switch(this.getState()){case "INITIAL":this.u.J(wY);return;case "STOPPED":case "FINISHED":this.u.J(xY);return}if(0<b.length||0<a.length)"STARTING"==this.getState()?(this.u.g(yY,b.length,a.length),this.fc.push({Ul:b,ro:a})):(this.u.g(zY,b.length,a.length),this.l=tQ(this.l,b,a),this.g.update(this.l,a));Hb(a,this.jk,this);Hb(c,this.nk,this);Hb(b,this.kh,this);(0<a.length||0<c.length||0<b.length)&&this.M(new eR(bc(b,c),a))};
oW.prototype.kh=function(a){a=new fW(this.g.h,a);this.zc(a);this.m.push(a);this.C&&aW(this.C,a)};var AY=m(["Tried to update non-existent remote stream: ","."]);oW.prototype.nk=function(a){var b=this.m.findIndex(function(d){return d.getInfo().matches(a)});if(-1==b)this.u.J(AY,a);else{var c=new fW(this.g.h,a);this.zc(c);this.C&&WV(this.C,this.m[b],c);this.m[b]=c}};var aaa=m(["Tried to remove non-existent remote stream: ","."]);
oW.prototype.jk=function(a){var b=Qb(this.m,function(d){return d.getInfo().matches(a)});if(-1==b)this.u.J(aaa,a);else{var c=this.m[b];Yb(this.m,b);this.C&&bW(this.C,c);jR(c,0)}};var baa=m(["Received remote stream requests before starting."]),caa=m(["Received remote stream requests after end."]);oW.prototype.Sj=function(a){switch(this.getState()){case "INITIAL":this.u.J(baa);return;case "STOPPED":case "FINISHED":this.u.J(caa);return}mW(this,5148);jX(this,a.g)};
var daa=m(["Setting audio options to\n     ","."]),eaa=function(a,b){null!=b&&(a.u.g(daa,xs(b.xa())),a.j=CT(a.j,b),a.l=BY(a,a.l),b=a.l,null!=b.ua&&CY(a.g,b))},BY=function(a,b){var c=b.ua;a=a.j.kg;a.o||(c=cQ(c));var d=LP(c),e=Qb(d,function(h){return lP(h,"OPUS")});if(-1!=e){if(!a.s&&1<d.length)Yb(d,e);else{var f=a.C&&!(jf&&!Qp(48));f=pP(pP(pP(new mP(d[e]),"stereo",a.D?"1":"0"),"useinbandfec",a.F?"1":"0"),"usedtx",f?"1":"0");var g=BR(xR("E0Ul7"),-1);-1!=g&&pP(f,"ptime",g.toString());d[e]=f.ha()}c=QP(c,
d)}a=a.w;null!=a&&(c=eQ(c,a));return oQ(b,c)},KW=function(a,b){if(!b.na||0==LP(b.na).length)return b;a.j.hj()||(b=lQ(b,function(f){return!lP(f,"h264")}));a.j.rf()||(b=lQ(b,function(f){return!lP(f,"vp9")}));b=kQ(b,eQ(b.na,"vp8"));var c=kT(a.g.zn()),d=a.j.ei&&c||a.j.qf,e=LP(b.na).some(function(f){return lP(f,"vp9")});d&&e?b=kQ(b,eQ(b.na,"vp9")):a.j.rf()&&(e||mW(a,5772),c||mW(a,5771));Qb(LP(b.na),function(f){return lP(f,"h264")});return b},LW=function(a,b){if(b.ua&&OP(b.ua)!=OP(a.g.g.localDescription.ua)){var c=
OP(a.g.g.localDescription.ua);b=oQ(b,UP(b.ua,c))}b.na&&OP(b.na)!=OP(a.g.g.localDescription.na)&&(c=OP(a.g.g.localDescription.na),b=kQ(b,UP(b.na,c)));b.Va&&OP(b.Va)!=OP(a.g.g.localDescription.Va)&&(a=OP(a.g.g.localDescription.Va),b=pQ(b,UP(b.Va,a)));return b};oW.prototype.toString=function(){return"Session(Id="+this.h.g+" useAudio="+this.j.he+" useVideo="+this.j.kl+")"};
var WX=function(a,b){a.Ma&&(O(b,75,Math.round(100*a.Ma.level)),O(b,74,!a.Ma.charging))},mW=function(a,b,c){c=void 0===c?{}:c;a.nh.then(function(d){c.sessionId=a.h.g||void 0;d.g(b,c)})},OX=function(a,b){return Object.values(a.s).filter(function(c){return c.getInfo().fb()[0]===b}).map(function(c){return c.g})},MX=function(a,b){return Object.values(a.s).filter(function(c){return c.getInfo().fb()[0]===b})},PX=function(a){switch(a.find(function(){return!1})&&0){case 1:return 2;case 2:return 3;case 3:return 4;
case 4:return 5;default:return 0}};var DY=function(){QM.call(this);this.g=Xa();this.h=new qv(1E3);bv(this.h,"tick",w(this.j,this));this.h.start()};u(DY,QM);DY.prototype.j=function(){var a=Xa();6E4<a-this.g&&this.M("xa");this.g=a};La(DY);var EY=function(a){T.call(this);var b=this;this.u=new rU("realtime.media.stats.BandwidthLatencyReporter");this.o=a;this.g=new Map;this.l=bt();this.m=bt();this.h=new Map([["call connect",25],["bandwidth 500",10],["bandwidth 1000",11],["bandwidth 1500",12],["bandwidth 2500",26],["bandwidth 3150",27],["bandwidth HD",28]]);this.j=new Map;this.h.forEach(function(c){b.j.set(c,bt())});a=Array.from(this.j.values(),function(c){return c.da});a=$s(a);Ys([a,this.l.da,this.m.da]).then(function(){faa(b)})};
u(EY,T);var gaa=m(["Latency: "," Id: "," was marked at: ",""]),haa=function(a,b){if(a.h.has(b)){var c=a.h.get(b);if(!a.g.has(c)&&(25===c||a.g.has(25))){var d=Y();a.g.set(c,d);a.j.get(c).resolve();a.u.g(gaa,b,c,d);25===c&&uv(3E5).then(function(){a.m.resolve()})}}},iaa=m(["",""]),faa=function(a){if(0!==a.g.size){var b=new tR;a.g.forEach(function(d,e){uR(b,e,d.g)});var c=vR(b);a.u.g(iaa,c.va());a.o.then(function(d){return IX(d,c)});a.h.clear();a.g.clear()}};var jaa={SUCCESS:0,Ep:100,JE:101,NG:102,OG:103,Mw:200,Ww:221,wp:201,Ex:202,ly:203,RA:204,dB:205,ED:206,FD:207,JD:208,jE:209,bq:210,xE:211,gE:222,BJ:223,zE:212,jF:213,iF:214,qF:215,SG:216,ZG:217,yJ:218,USER_CANCELED:219,LJ:252,WJ:220,Xz:224,wE:225,uE:226,vJ:227,mz:228,rB:229,dF:230,vE:231,cC:232,pC:233,rC:234,oF:235,kE:236,Rw:237,Qw:238,Wz:239,oE:240,qC:241,gD:242,lz:243,UB:244,XG:245,WG:249,iD:246,qz:247,Lz:250,BB:248,Bp:251,MH:253,lE:254,nx:300,hy:301,Oy:302,Ry:332,Sy:333,Ty:334,Py:335,Uy:336,Xy:337,
Vy:338,Qy:350,iC:303,kC:304,YD:305,TG:306,sC:339,DH:307,Dz:308,NH:309,eC:310,Zz:311,QG:312,PG:313,jC:314,VB:315,Ez:316,nB:317,xy:318,Xw:319,tE:320,yE:321,wJ:322,aC:323,kD:324,fD:325,Yw:326,UG:327,YG:328,VG:329,jD:330,hD:331,py:340,qy:341,oy:342,xB:343,ZE:344,YE:345,SH:346,aA:347,RH:348,JJ:349,xH:351};var GY=function(a,b,c,d,e){QM.call(this);var f=this;this.u=Wf("realtime.media.session.SessionManager");this.L=a;this.Z=b;this.F=this.Z.g;this.g=FY(this.Z,"realtime.media.session.SessionManager");this.o=new X(this);this.N(this.o);this.Ob=e;new VR(this.F.j,L(this.F,2),function(){return bN(f.F,e)});this.Ba=this.Aa=this.h=null;this.G="INITIAL";this.R=null;this.m=new Map;xc(kR,function(g){f.m.set(g,new Set)});this.Ya=bt();this.l=new Set;this.ka=new Map;this.j=null;this.C=new wT;this.W=new vQ;this.ic=c;
this.wb=d;this.s=[];this.ra=null;this.eb=[];this.Ma=new US(this.L);TR(this,{sessionManagerState:function(){return f.getState()},sessions:function(){return Array.from(f.l,function(g){return g.xa()})}});this.La=bt();this.Ha=new Set;this.Da=this.oa=null;this.xb=W(a,AK);this.ta=W(a,zK);this.Sa=new EY(this.ta.then());this.H=new tR;this.kb=Ka;this.pb=new lL(this);this.Eb=this.pb.signal();this.ob=new lL(this);this.fc=nL(this.ob);this.sa=!1;this.Vb=AR(xR("nlZjzc"))};u(GY,QM);
GY.prototype.aa=function(){this.l.forEach(us);QM.prototype.aa.call(this)};GY.prototype.getState=function(){return this.G};var HY=function(a,b,c,d){b!=a.G&&(yW(a.g,"SessionManager changed state from "+a.G+" to "+b),a.G=b,a.M(new lR(b,c,d)))};
GY.prototype.connect=function(a,b,c){if("STARTING"!=this.getState()&&"INPROGRESS"!=this.getState())return!1;this.h=a;this.Aa=b;this.Ba=c;yW(this.g,"Connecting to hangoutId: "+a+", with participantId: "+b+" and sessionLogData: "+c);this.La.resolve(this.h);bc(IY(this),JY(this),KY(this)).forEach(function(d){d.yh(a,b,c)});return!0};
var kaa=function(a,b,c){c.bc()?(a=new sP("call/"+c.bc(),1,null,"collections"),b=b.ja(),b.l.set(a.ye(),a)):C(a.u,"Collections' push channel not added. ClientResource not available");return b},MY=function(a){var b=IY(a);if(0<b.length)return b;b=KY(a);return 0<b.length?b:LY(a)},laa=function(a){var b=[];MY(a).forEach(function(c){dc(b,Object.values(c.s))});return b},NY=function(a){var b=[];MY(a).forEach(function(c){dc(b,c.m)});return b},maa=function(a){var b=MY(a);b=0<b.length&&b.every(function(c){return c.Wf});
b!=a.sa&&a.pb.V(a.Eb,b);a.sa=b},naa=function(a,b){a.kb=b},OY=function(a,b){a.l.forEach(function(c){c.j.Pd||(c.j=zT(c.j,b),c.j.te&&nW(c.g))});a.C=zT(a.C,b)},PY=function(a){a.C.te||(a.l.forEach(function(b){b.j.te||(b.j=AT(b.j),b.j.Pd&&nW(b.g))}),a.C=AT(a.C))},paa=function(a,b){yW(a.g,"Adding capture: "+xs(b.xa()));var c=QY(a).map(function(d){return rW(d,b)}).every(function(d){return d})||"sc"==b.h.getContent();c?a.s.push(b):oaa(a,b);return c},oaa=function(a,b){QY(a).map(function(c){a:{switch(c.getState()){case "STOPPED":case "FINISHED":c.u.J(mX);
c=!1;break a}if(c.ob){var d=b.h;"sc"==d.getContent()?oX(c.h):"v"==d.Ga&&tN(c.o,d,"A",c.ag);tN(c.o,b,"H",c.Yf);var e=c.g;switch(e.l){case "STOPPED":e.j.J("Remove local stream called after stopped.")}var f=e.g;RY(f,"Removing capture="+b);var g=SY(b,f.g);f.Aa.delete(b);tN(f.j,b,"J",f.Um);f.Wb&&tN(f.j,b,"H",f.xn);if(f.Sa){var h=f.Sa;b===h.h&&null!==b&&tN(h,b,TY,h.m)}"d"!=b.ia()&&(UY(f,g),VY(f,null,b));b.Ba(e.h);e.s.delete(b);if(e=c.s[gX(d)])delete c.s[gX(d)],c.M(new eR([],[e.getInfo()])),qaa(c.h,e.getInfo());
c=!0}else c=Zb(c.Ya,b)}return c}).every(function(c){return c})&&Zb(a.s,b)},raa=function(a,b){a.ra=b&&b.size?new Map(b):null;a.l.forEach(function(c){return c.g.gk(a.ra)})},saa=function(a,b){a.oa=b;a.M("Z")};
GY.prototype.Na=function(a,b){var c=this.oa&&this.oa(a);if(c)return c;c=bc(IY(this),KY(this),LY(this));if(null!=b){for(var d,e=n(this.l),f=e.next();!f.done;f=e.next())if(f=f.value,f.qb()==b){d=f;break}d&&c.unshift(d)}if(0==c.length)return yW(this.g,"No active session to get stream from to render source: "+a),null;for(d=0;d<c.length;d++)if(e=c[d],b=e.Na(a),null!=b)return a="Using stream: "+b.getInfo()+" from "+e.qb()+" to render source: "+a,this.g.g.h(WY,a),b;this.g.J("Unable to find stream to use to render source: "+
a);return null};GY.prototype.qe=function(a){bc(LY(this),KY(this),IY(this)).forEach(function(b){b.qe(a)})};var taa=function(a,b){a.l.forEach(function(c){sX(c,b)});a.eb=b};GY.prototype.stop=function(a,b){yW(this.g,"Stopping video call because stop called with endCause: "+a);if("INITIAL"==this.getState()||"STOPPED"==this.getState()||"FINISHED"==this.getState())return!1;this.Sa.l.resolve();HY(this,"STOPPED",a,b);this.l.forEach(function(c){c.stop(a,b)});return!0};
var ZY=function(a){var b=OR&&OR.j?Us(OR.j):Us(null),c=a.C,d=c.Rc||a.h;c=null!=d&&c.Wl?BT(c,d):BT(c,null);var e=uaa(a,c);if(null==e)return a.g.J("Did not create cloud session."),null;vaa(e.g).then(e.ej,null,e).then(function(f){if(f){yW(a.g,"Local session initialize completed.");f=kaa(a,f,c);c.he||(f=oQ(f,f.ua.Pf([waa])));var g=yQ(a.W,f,c.Rc,c.Sc(),c.bc(),c.zw,c.Th,c.Kh());O(g,22,a.Vb);c.uj()&&e.g.cl()&&(XY(a,4355),O(g,9,!0),O(g,11,1));uR(a.H,878);a.ta.then(function(h){return IX(h,vR(a.H))});f=ft(b.then(function(h){h&&
O(g,19,h)}).then(function(){return a.R.add(g)}).then(function(h){D(a.u,"Session add response received.");if(1>h.length||!(h[0]instanceof bC))yW(a.g,"Stopping remote session due to receiving null session proto."),XY(a,3945),e.stop(16,"Received null session proto.");else{var l=h[0];null==l?(yW(a.g,"Stopping session due to type mismatch in session proto."),XY(a,3946),e.stop(16,"Type mismatch in session proto.")):(null!=L(l,17)&&null!=L(l,21)&&a.ob.V(a.fc,M(l.Kh(),1,0)===L(l,21)),l=DQ(a.W,l),null==l?
(yW(a.g,"Stopping session due to inability to parse session proto."),XY(a,3947),e.stop(16,"Error parsing session proto.")):YY(a,e,l))}return h}),function(h){var l="Failed to add session to collection. Error: "+h;a.g.J(l);XY(a,3949,{Ub:l});l.includes("Malformed RTCIceServer")&&XY(a,4264);e.stop("transport_unavailable"==h.Yc?108:16,l);throw h;});cS(f,"Aa",null,a)}else a.g.error("Local session initialize failed to create local offer."),XY(a,3942),e.stop(16,"Local session initialize failed to create local offer.")},
function(f){var g="Failed to initialize session. Error: "+yf(f);a.g.J(g);XY(a,3943,{sessionId:e.h.g||void 0,Ub:g});e.stop(109,"Failed to initialize session.");throw f;});e.g.so()&&(a.Ha.add(e),xaa(a));e.kb.j.attach(function(){maa(a)});return e},zaa=function(a,b){b.qc()||(b=b.vi(a.Ma.qc()));var c=a.F.kj();c&&(b=b.ja(),b.zg=c);if(c=a.F.lj()){var d=b.ja();b.zg&&(c=Math.max(b.zg,c));d.Lj=c;b=d}c=a.F.sj();b=b.ja();b.If=c;c=yaa(a.Z,a.L,b);c.gk(a.ra);return new oW(a.L,a.Z,c,b,a.Ob)},uaa=function(a,b){b=
zaa(a,b);if(null==b)return null;a.l.add(b);a.m.get(b.getState()).add(b);a.ka.set(b.qb(),b.getState());b.ra=a.wb;b.o.listen(b.ra,"wa",b.cg);b.ta=a.ic;b.o.listen(b.ta,"wa",b.dg);sX(b,a.eb);qX(b,function(c){return a.kb(c)});a.o.listen(b,["ra","sa","U","Z","T"],a.M);a.o.listen(b.g,WS,function(c){return a.M(c)});a.o.listen(b.h,aT,function(c){return a.M(c)});a.o.listen(b,"aa",a.Ht);a.o.listen(b,"S",a.Gt);a.o.listen(b,"P",a.Wb);a.o.listen(b,"R",a.Wt);a.o.listen(b.g,WS,a.gu);a.o.listen(b,"Q",a.Vt);return b},
Aaa=function(a,b,c){b.start(c);a.s.forEach(function(d){rW(b,d)})},QY=function(a){return bc(Array.from(a.m.get("INITIAL")),LY(a),KY(a),JY(a),IY(a))},JY=function(a){return Array.from(a.m.get("PAUSED"))},IY=function(a){return Array.from(a.m.get("INPROGRESS"))},KY=function(a){return Array.from(a.m.get("STARTED"))},LY=function(a){return Array.from(a.m.get("STARTING"))};GY.prototype.Wb=function(a){YY(this,a.h,a.sessionDescription)};
var YY=function(a,b,c){var d=b.getState(),e=0!=cc(c.h).length;var f=!1;var g=c.g;g&&null!=g.g&&(f=2==g.g.split(" ").length);f=e!=f;e=c.g;g=null!=e&&null!=e.j&&null!=e.h&&0<cc(e.l).length;e=f&&"INITIAL"==d;f=f&&g&&("INITIAL"==d||"STARTING"==d);d="INITIAL"!=d&&"STARTING"!=d;g=c.j;null!=g&&MW(b,g);e&&(yW(a.g,"Received remote description for session "+vY(b.h)+" with sufficient data to allow session preparation."),HW(b));if(f)yW(a.g,"Received remote description for session "+vY(b.h)+" with sufficient data to allow starting the session."),
Aaa(a,b,c);else if(d)a:{switch(b.getState()){case "INITIAL":case "STARTING":b.u.J(qY);break a;case "STOPPED":case "FINISHED":b.u.J(rY);break a}mQ(b.Sa,c)||(b.Sa.g.g!=c.g.g&&b.M(new hR(c.j)),b.Sa=pQ(c,c.Va),b.u.g(sY,xs(c.xa())),a=OW(c),0<a.length&&PW(b.g.g,a),c=BY(b,c),c=KW(b,c),b.l=rQ(qQ(b.l,c.g),cc(c.h)),a=b.l,(d=a.ua)?d=fQ(d,c.ua):d=c.ua,(e=a.na)?e=fQ(e,c.na):e=c.na,a=kQ(oQ(a,d),e),b.l=a,a=b.l.ua,null!=a&&(b.oa=LP(a),b.M(new fR(b.oa))),null==a&&null==b.l.na||b.g.update(b.l,[]))}};k=GY.prototype;
k.Wt=function(a){if("INPROGRESS"!=this.getState())C(this.u,"Ingress bandwidth updated before started.");else{var b=this.Ma.qc(),c=new HB;-1!=b.h&&O(c,1,b.h);-1!=b.g&&O(c,2,b.g);-1!==b.j&&O(c,3,b.j);b=new ZB;S(b,7,c);c=new bC;c.o(a.sessionId);a=this.h||this.C.Rc;null!==a&&fC(c,[a]);eC(c,[b]);JN(this.R,c)}};k.gu=function(a){haa(this.Sa,a.message)};k.Vt=function(){var a=this.j;$Y(this,a,a,7)};
k.Gt=function(a){var b=this;switch(this.getState()){case "INITIAL":C(this.u,"Received local candidates before starting.");return;case "STOPPED":case "FINISHED":C(this.u,"Received local candiates after end.");return}var c=a.target,d=a.g.map(function(g){g=b.W.h(g);O(g,9,void 0);return g});if(!(1>d.length)){var e=new WB;wl(e,6,d);if(d=c.g.g.localDescription.g)if(O(e,4,d.j),O(e,5,d.h),d.g){var f=new XB;O(f,1,d.g.split(" ")[0]);O(f,2,d.g.split(" ")[1]);S(e,2,f)}d=cc(c.g.g.localDescription.h).map(function(g){return b.W.hm(g)});
c=new ZB;O(c,1,4);S(c,2,e);wl(c,4,d);e=new bC;e.o(a.sessionId);eC(e,[c]);JN(this.R,e)}};
k.Ht=function(a){var b=a.target,c=this.ka.get(b.qb()),d=b.getState();if(c!=d){this.ka.set(b.qb(),d);this.m.get(c).delete(b);this.m.get(d).add(b);"INPROGRESS"==d&&this.Ya.resolve(b);switch(d){case "STARTED":Baa(this,b);break;case "INPROGRESS":Caa(this,b);break;case "STOPPED":Daa(this,b,a.Ib,a.g);break;case "FINISHED":this.m.get(b.getState()).delete(b),this.ka.delete(b.qb()),this.l.delete(b),this.Ha.delete(b),us(b),this.l.size==this.m.get("FINISHED").size&&("STOPPED"!=this.G?C(this.u,"Session Manager finished before stopping."):
HY(this,"FINISHED"))}this.M(a)}};
var Baa=function(a,b){null!=a.h&&null!=a.Aa&&null!=a.Ba&&(b.yh(a.h,a.Aa,a.Ba),IY(a).filter(function(c){return c!=b}).forEach(function(c){$Y(a,c,b)}))},Caa=function(a,b){if("INITIAL"==a.getState()||"STOPPED"==a.getState()||"FINISHED"==a.getState())Yf(a.u,"Should not have new active sessions now.");else{"STARTING"==a.getState()&&HY(a,"INPROGRESS");eaa(b,a.C.kg);var c=b.qb();IY(a).filter(function(d){return c!=d.qb()}).forEach(function(d){d.pause()})}},Daa=function(a,b,c,d){a.s.forEach(function(f){f.Ba(b.qb())});
if(26==c)c=a.j,a.j=ZY(a),c&&(a.j?$Y(a,c,a.j,6):a.g.error("Cloud session"+c.h.g+" to cloud handoff failed"));else{var e=a.m.get("STOPPED").size+a.m.get("FINISHED").size;a.l.size==e?"STOPPED"!=a.G&&(yW(a.g,"All sessions now stopped."),a.stop(c,d)):0==IY(a).length&&JY(a).forEach(function(f){f.resume();$Y(a,b,f)})}},$Y=function(a,b,c,d){d=void 0===d?6:d;var e=Y().g;c.g.Go();var f=c.g.Fm();if(f){var g=d;f.then(function(){var h=Y().g;7==d&&(uR(a.H,29,e),uR(a.H,30,h),a.ta.then(function(l){return IX(l,vR(a.H))}));
aZ(a,b,c,h-e,g)},function(){aZ(a,b,c,null,g)})}},aZ=function(a,b,c,d,e){var f=GG(FG(EG(O(DG(new BG,e),2,0),b.h.g),c.h.g),d);f=YG(f);ft(YW(b.G,f,b.qb()),function(g){a.g.J("Upload log failed during handoff: "+g)});6==e?(yW(a.g,"Cloud to cloud handoff took: "+d+" ms"),XY(a,null===d?4653:4652,{sessionId:c.h.g||void 0})):7==e&&(yW(a.g,"Cloud to cloud DTLS handoff took: "+d+" ms"),XY(a,null===d?5589:5588,{sessionId:c.h.g||void 0}))},xaa=function(a){a.Da||(a.Da=DY.Kb(),a.o.listen(a.Da,"xa",a.hc))};
GY.prototype.hc=function(){var a=this,b=new Set(this.Ha);0===b.size?D(this.u,"SleepWatcher suspend ignored. No effected sessions."):(yW(this.g,"SleepWatcher fired. Waiting 3 seconds to determine if media is live."),uv(3E3).then(function(){a.j.fn()?(yW(a.g,"SleepWatcher fired but session is still live. Not suspending."),XY(a,4588),a.M("X")):(a.g.J("Suspend triggered by SleepWatcher, effecting "+(b.size+" session(s).")),XY(a,2056),Eaa(a,b),a.M("Y"))}))};
var Eaa=function(a,b){var c=a.s.concat().filter(function(d){return"v"===d.h.Ga});D(a.u,"Muting "+c.length+" video capture(s).");c.forEach(function(d){return bZ(d)});uv(2E3).then(function(){b.forEach(function(d){switch(a.getState()){case "STOPPED":case "FINISHED":D(a.u,"Suspend ignored for finished/stopped session. "+d);return}D(a.u,"Ending session due to SleepWatcher trigger. "+d);a.stop(112,"JS was suspended for too long.")})})},Gaa=function(a,b){var c=a.j;c&&c.g.cl()&&b.uj()?W(a.L,EK).then(function(d){Faa(d);
XY(a,4899)},function(){return XY(a,4900)}):XY(a,4900)},XY=function(a,b,c){a.xb.then(function(d){return d.g(b,c)})};AP(new zP,"a").ha();var waa=FP(AP(new zP,"a"),!1).ha();HP(GP(AP(new zP,"v"),dS),30).ha();HP(GP(AP(new zP,"v"),fS),30).ha();var cZ=function(a,b,c,d,e){$Q.call(this);var f=this;this.G=new vQ;this.h=a;this.F=b;this.C=e;this.g=new Map;this.l=new UQ;this.l.D=this;this.s=new X(this);this.N(this.s);this.F.onChange.attach(function(){return f.m()},this);this.s.listen(this.C,["Z","aa"],this.m);d.forEach(this.j,this)};u(cZ,$Q);var Haa=function(a,b,c,d,e){return new cZ(a,b,c,d,e)};cZ.prototype.j=function(a){""==a.Y()&&(a.j=this.h);this.l.add(a)};cZ.prototype.ze=function(a){return a==this.h?this.l:this.g.get(a)||null};
cZ.prototype.o=function(a){var b=this,c=new Set;a.forEach(function(d){if(d!=b.h&&(c.add(d),!b.g.has(d))){var e=new UQ;e.D=b;b.g.set(d,e);b.M(new ZQ("M",d,e))}});this.g.forEach(function(d,e){c.has(e)||b.g.delete(e)&&b.M(new ZQ("N",e,d))});this.m()};
cZ.prototype.m=function(){var a=this,b=new Set;this.F.get().forEach(function(c){var d=c.Y();if(d&&(d=a.g.get(d))){var e=a.G,f=c.Y();var g=c.za();var h=FQ(c.ia()),l="un";if(null!=Q(c,nC,7)){a:{var p=L(Q(c,nC,7),1);switch(p){case 1:l="ca";break a;case 2:l="sc";break a}C(uQ,"Unknown capture type: "+p);l="un"}p=CQ(R(Q(c,nC,7),oC,3),e.C,e)||void 0}if(null!=Q(c,pC,8)){var r=ll(Q(c,pC,8),2);r="number"===typeof r?r:void 0}var t=Q(c,kC,5)&&Q(c,kC,5).lc()?"mu":"li";e=null;null!=f&&null!=g&&null!=h&&(e=new IO(f,
g,h,null!=l?l:void 0,t,r,p));null!=Q(c,kC,5)&&(f=Q(c,kC,5),L(f,2));null!=Q(c,lC,6)&&L(Q(c,lC,6),1);if(g=e)(f=VQ(d,g.Ga,g.getId(),g.Y()))?(JO(f,g.getContent()),d=g.He,f.He!=d&&(f.He=d,f.M("B")),KO(f,g.getState()),d=g.ld&&cc(g.ld),GO(f,d)&&f.M("D")):d.add(g)}b.add(dZ(c.Y(),c.za()))});NY(this.C).forEach(function(c){var d=c.Y(),e=c.za();if(d!=a.h&&!b.has(d+"/"+e)){c=c.getInfo().ia();var f=a.g.get(d);null==f||VQ(f,c,e,d)||f.add(new IO(d,e,c));b.add(d+"/"+e)}});this.g.forEach(function(c){Array.from(c.g).forEach(function(d){b.has(dZ(d.Y(),
d.getId()))||c.remove(d)})})};var dZ=function(a,b){return a+"/"+b};var Iaa={nE:0,gA:1,fA:2,aF:3,mI:4,lI:5,kI:6,SUCCESS:7},Jaa=[4,5,6,7];var eZ=function(a){this.m=a.m;this.C=a.C;this.s=a.s;this.w=a.w;this.o=a.o;this.G=a.K;this.D=a.D;this.F=a.G;this.K=a.H;this.h=a.h;this.l=a.l;this.g=a.g;this.j=a.j;this.H=a.F};
eZ.prototype.toString=function(){return"AudioConfig(deviceId="+this.g+", updateDeviceId="+(this.l+", useAecDelayCorrection=")+(this.m+", useInternalAgc=")+(this.C+", useDucking=")+(this.s+", useAec=")+(this.w+", useAgc=")+(this.o+", useNoiseSuppression=")+(this.G+", useHighpassFilter=")+(this.D+", useMirroring=")+(this.F+", useTransisentSuppression=")+(this.K+", disableWhitelistAec=")+(this.h+")treatAsScreencast=")+(this.j+")")};
eZ.prototype.equals=function(a){return this===a?!0:null===a?!1:this.m===a.m&&this.C===a.C&&this.s===a.s&&this.w===a.w&&this.o===a.o&&this.G===a.G&&this.D===a.D&&this.F===a.F&&this.K===a.K&&this.h===a.h&&this.l===a.l&&this.g===a.g&&this.j===a.j&&this.H==a.H};eZ.prototype.getDeviceId=function(){return this.g};var fZ=function(){this.j=!1;this.C=this.m=!0;this.s=!1;this.l=this.h=this.H=this.G=this.D=this.K=this.o=this.w=!0;this.F=this.g=null};fZ.prototype.ha=function(){return new eZ(this)};(new fZ).ha();var gZ=function(a){this.l=a.l;this.h=a.h;this.g=a.g;this.j=a.j};gZ.prototype.toString=function(){return"VideoConfig(deviceId="+this.h+", updateDeviceId="+(this.l+", croppable=")+(this.g+", treatAsScreencast=")+(this.j+")")};gZ.prototype.getDeviceId=function(){return this.h};gZ.prototype.Wd=function(){return this.g};var hZ=function(){this.j=!1;this.l=!0;this.h=null;this.g=!0};hZ.prototype.ha=function(){return new gZ(this)};(new hZ).ha();var iZ=function(a){this.id=a.Qa;this.displayName=a.g;this.groupId=a.m;this.g=a.h;this.isSelected=a.l};iZ.prototype.toJson=function(){return{id:this.id,displayName:this.displayName,groupId:this.groupId,fullName:this.g,isSelected:this.isSelected}};iZ.prototype.toString=function(){return"Device(id="+this.id+", displayName="+this.displayName+", groupId="+this.groupId+", fullName="+this.g+", isSelected="+this.isSelected+")"};var jZ=function(){this.Qa=null;this.h=this.m=this.g="";this.l=!1};
jZ.prototype.ha=function(){return new iZ(this)};var kZ=function(a){var b=new jZ;b.Qa=a;return b};jZ.prototype.j=function(a){this.m=a;return this};var lZ=kZ("__absent_device__");lZ.g="__absent_device__";var mZ=lZ.j("__absent_device__");mZ.h="__absent_device__";var Kaa=mZ.ha();var nZ=function(a,b,c,d,e,f){QM.call(this);this.W=a;this.H=b;this.F=c;this.L=d;this.G=e;this.R=f;this.l=this.g=this.h=null;this.C=new X(this);this.N(this.C);this.o=new X(this);this.N(this.o);this.m=new X(this);this.N(this.m);this.s=new X(this);this.N(this.s);this.j(new eR([],[]))};u(nZ,QM);nZ.prototype.Y=function(){return this.W};
var oZ=function(a,b){a.g===b?!a.g&&a.h&&a.o.listen(a.h,"K",a.j):(a.g&&tN(a.m,a.g,["C","A","B","D"]),(a.g=b)?(a.m.listen(b,"C",a.Z),a.m.listen(b,["A","B","D"],a.ka),a.s.listen(a.G,"Z",a.j)):a.s.removeAll(),a.M("Ca"),a.h&&a.o.listen(a.h,null!==b?"L":"K",a.j))};nZ.prototype.Na=function(){return this.l};
nZ.prototype.j=function(a){var b=this.L.ze(this.Y());this.h&&this.h===b||(this.C.removeAll(),this.h&&tN(this.o,this.h,["L","K"]),this.h=b,this.C.listen(this.L,null!==b?"N":"M",this.j));if(null==this.h)oZ(this,null);else{b=Array.from(this.h.g);for(var c=this.g,d=null,e=0;e<b.length&&(this.R!=b[e].Ga||null!=this.F&&this.F!=b[e].getContent()||null!=this.H&&this.H!=b[e].getId()||(d=b[e],d!=c));e++);oZ(this,d)}b=this.g;null!=b?(a=this.G.Na(b,a instanceof eR?a.sessionId:void 0),this.l!=a&&(this.l=a,this.M("Da")),
a instanceof AU&&oZ(this,a.g.h)):null!=this.l&&(this.l=null,this.M("Da"))};nZ.prototype.ka=function(a){this.M(a)};nZ.prototype.Z=function(a){this.j(a);this.M("Ea")};var pZ=function(a,b,c,d,e){nZ.call(this,a,b,c,d,e,"a")};u(pZ,nZ);pZ.prototype.matches=function(a,b,c){b=void 0===b?null:b;c=void 0===c?null:c;return this.Y()==a&&(this.g&&this.g.getId())==b&&(this.g&&this.g.getContent())==c};var qZ=function(a,b){QM.call(this);this.u=new rU("realtime.media.rendering.ParticipantRenderableManager");this.j=a;this.h=b;this.g=new X(this);this.N(this.g)};u(qZ,QM);var rZ=function(){QM.call(this);this.l=0;this.m=new lL(this);this.o=nL(this.m);this.g=null;this.h=new X(this);this.N(this.h);this.j=new X(this);this.N(this.j)};u(rZ,QM);rZ.prototype.aa=function(){us(this.g);QM.prototype.aa.call(this)};var Laa=function(a,b,c){null!=a.g&&a.g.matches(c,void 0,void 0)||(b=new pZ(c,null,null,b.j,b.h),a.g!=b&&(c=a.g,a.g=b,a.h.removeAll(),null!=a.g&&a.h.listen(a.g,"B",a.fu).listen(a.g,"Ea",a.zv).listen(a.g,"Ca",a.hu).listen(a.g,"Da",a.oo),a.oo(),a.M("Ia"),null!=c&&us(c)))};
k=rZ.prototype;k.fu=function(a){this.M(a)};k.zv=function(){this.M("Ja")};k.hu=function(){};k.oo=function(){this.j.removeAll();if(null!=this.g){var a=this.g.Na();null!=a&&this.j.listen(a,"$",this.po)}this.po()};k.po=function(){this.M("Ka")};var sZ=function(a,b){a.M("Ma");b=Math.floor(5*b)/5;a.l!=b&&(a.l=b,a.M("La"),a.m.V(a.o,{np:b}))};var tZ=function(a){pv.call(this);this.g=a||window;this.h=bv(this.g,"resize",this.l,!1,this);this.j=fg(this.g||window)};y(tZ,pv);tZ.prototype.aa=function(){tZ.Ab.aa.call(this);this.h&&(kv(this.h),this.h=null);this.j=this.g=null};tZ.prototype.l=function(){var a=fg(this.g||window),b=this.j;a==b||a&&b&&a.width==b.width&&a.height==b.height||(this.j=a,this.M("resize"))};var uZ=function(a){pv.call(this);this.g=a?gg(a.g):window;this.l=1.5<=this.g.devicePixelRatio?2:1;this.j=w(this.m,this);this.h=this.g.matchMedia?this.g.matchMedia("(min-resolution: 1.5dppx), (-webkit-min-device-pixel-ratio: 1.5)"):null};y(uZ,pv);uZ.prototype.start=function(){this.h&&this.h.addListener(this.j)};uZ.prototype.m=function(){var a=1.5<=this.g.devicePixelRatio?2:1;this.l!=a&&(this.l=a,this.M("Ra"))};uZ.prototype.aa=function(){this.h&&this.h.removeListener(this.j);uZ.Ab.aa.call(this)};var vZ=function(a,b){T.call(this);this.m=a;if(b){if(this.l)throw Error("[fava.component.DomServices] Owner document already initialized");this.l=b;this.g=cg(b);this.h=new tZ(hg(b));this.h.D=this.m.m;this.j=new uZ(this.g);this.j.start()}};y(vZ,T);var Maa=function(a){var b=new vZ(a,document);a.registerService(XJ,b)};vZ.prototype.aa=function(){this.g=this.l=null;this.h&&(this.h.dispose(),this.h=null);us(this.j);this.j=null};var wZ=fS.clone();wZ.width*=.75;wZ.height*=.75;var xZ=eS.clone();xZ.width*=.75;xZ.height*=.75;var yZ=function(){this.g=[]},Oaa=function(a){return Ff(zZ.g.map(function(b){return Naa(b,a)}))},Naa=function(a,b){b=void 0===b?function(c){return new c}:b;return a.Od?b(a.Od):a.instance},AZ=function(){yZ.apply(this,arguments)};u(AZ,yZ);var BZ=function(a){var b=zZ,c=a.priority,d=~gc(b.g,function(e){return e.priority<c?-1:1});b.g.splice(d,0,a)};var CZ=function(a){this.h=a;this.pa=a.pa},Paa=function(a){return Oaa(function(b){return new b(a)})};k=CZ.prototype;k.tn=function(){return null};k.Fg=function(){return null};k.sn=function(){return null};k.nn=function(){return null};k.rn=function(){return null};k.mn=function(){return null};k.qn=function(){return null};k.pm=function(){return null};k.pn=function(){return null};var zZ=new AZ;var DZ=function(a,b){a=n(a);for(var c=a.next();!c.done;c=a.next())if(c=b(c.value),null!=c)return c};var FZ=function(a){QM.call(this);var b=this;this.pa=a;this.g=this.l=null;this.C=W(this.pa,AK);this.m=W(a,XM,!0).then(function(c){b.g=c;EZ(b,6273);return c},function(c){EZ(b,6274);throw c;});this.o=0;this.s=bt();Zs([this.m,this.s.da]);this.j=null;this.h=Paa(this)};u(FZ,QM);
var Qaa=function(a){fK(a,FK)||tK(a,FK,function(b){return new FZ(b)})},Raa=function(a){null==a.j&&(a.j=Zs([DZ(a.h,function(b){return b.tn()})||7,a.m]).then(function(b){return b[0]}),a.j.then(function(b){b!=a.o&&"number"===typeof b&&Fc(Iaa,b)&&(a.o=b,a.M("ab"))},function(){return a.j=null}));return a.j},SW=function(a){return DZ(a.h,function(b){return b.sn()})||null},Saa=function(a){a.l||(a.l=DZ(a.h,function(b){return b.pm()}));return a.l},kW=function(a,b,c,d){return DZ(a.h,function(e){return e.rn(b,
c,d)})},yaa=function(a,b,c){var d="c"+Math.round(2147483648*Math.random())+Math.round(2147483648*Math.random())+"_NMS";return DZ(a.h,function(e){return e.mn(b,d,c)})},lW=function(a,b,c){return DZ(a.h,function(d){return d.nn(b,c)})},Taa=function(a){return DZ(a.h,function(b){return b.qn()})},FY=function(a,b){return DZ(a.h,function(c){return c.pn(b)})},EZ=function(a,b){a.C.then(function(c){c.g(b)})};var GZ;
GZ=Kc({EJ:0,OJ:1,zy:2,wy:25,tB:13,sB:3,wB:14,ND:4,sx:15,aD:16,ZC:5,qA:17,tA:6,mA:7,MG:8,LG:31,sA:9,yx:10,ux:11,vx:12,wx:26,xx:27,zx:28,YJ:18,XJ:19,KA:20,MA:21,LA:22,NA:23,yy:24,fz:29,ez:30,VE:100,TE:101,UE:102,GH:103,EH:104,FH:105,QH:106,OH:107,PH:108,jI:109,hI:110,iI:111,sy:112,my:113,ny:114,NC:200,QC:201,RC:202,OC:203,SC:204,PC:205,lx:300,kx:301,ZA:302,YA:303,oH:304,nH:305,MC:306,LC:307,Bx:308,Ax:309,zF:310,yF:311,GE:312,EE:313,FE:314,LD:315,KD:316,Oz:317,Nz:318,UA:319,TA:320,vH:321,sH:322,uH:323,
tH:324,eE:325,dE:326,DF:327,CF:328,mH:329,hH:330,iH:331,jH:332,kH:333,lH:334,zA:335,yA:336,uz:337,sz:338,yz:339,vz:340,JA:341,IA:342,pA:343,oA:344,nA:345,xz:346,wz:347,mx:348,iy:349,hz:350,dA:351,GB:352,aH:353,bH:354,nI:355,bB:356,aB:357,WA:358,VA:359,FB:360,DB:361,CB:362,EB:363,Ly:364,Jy:365,Ky:366,AD:400,zD:401,VJ:500,UJ:501,SJ:502,TJ:503,Kz:600,Iz:601,Jz:602,jG:603,hG:604,iG:605,Hz:606,Fz:607,Gz:608,nD:609,lD:610,mD:611,IG:700,KG:701,JG:702,HG:703,sG:704,rG:705,wG:706,vG:707,GG:708,xG:709,oG:710,
qG:711,pG:712,DG:713,CG:714,BG:715,AG:716,zG:717,yG:718,uG:719,tG:720,FG:721,EG:722,nG:723,mG:724,eD:801,ZB:884,vC:894,xC:802,tC:885,uC:886,wC:803,MB:887,OB:888,NB:889,LB:890,YB:804,fB:805,eB:806,vD:807,yD:891,uD:892,xD:893,wD:883,rA:808,uA:809,dD:810,WH:811,Ay:812,YH:813,CD:814,XH:815,YC:816,gG:817,tD:818,zz:819,sD:820,IF:821,JF:822,GF:823,HF:824,LF:825,NF:832,MF:833,KF:826,OF:827,QF:863,PF:864,RF:828,SF:829,ID:830,HD:831,Pw:834,Ow:835,fI:836,dI:837,cI:838,gI:839,bz:840,cz:841,Wy:842,az:843,Zy:844,
Yy:845,Mx:846,Lx:847,Tx:848,Hx:849,Jx:865,Ix:866,Kx:850,Px:851,Rx:867,Qx:868,Sx:852,Vx:853,Ux:854,Wx:855,gy:856,ay:869,Zx:870,ey:879,by:880,Xx:871,Yx:872,Ox:857,Nx:858,WE:859,XE:860,Vw:861,Uw:862,GC:873,DC:874,FC:875,EC:895,jx:876,ix:877,XC:878,vy:881,uy:882,vI:900,uI:901,xI:902,wI:903,tI:904,sI:905,JI:1E3,RI:1001,QI:1002,DI:1003,CI:1004,OI:1012,NI:1013,II:1005,MI:1006,KI:1007,HI:1008,GI:1009,FI:1010,EI:1011,lK:1100,nK:1101,mK:1102,kK:1103,jK:1104,TF:1200,VF:1201,UF:1202,UI:1300,YI:1301,XI:1302,eJ:1303,
dJ:1304,ZI:1305,aJ:1306,bJ:1307,cJ:1308,WI:1309,VI:1310,fJ:1311,qI:1400,oI:1401,pI:1402,jB:1500,iB:1501,kB:1502,lB:1503,hB:1504,gB:1505,ZJ:1600,bK:1601,aK:1602,cK:1603});function HZ(a){var b=(a.Vj?"\ud83d\udc4e":"\ud83d\udc4d")+" "+a.timestamp+" ";a=a.id;a=GZ?GZ[a]:te(a,4);return b+a};var IZ=Wf("realtime.analytics.MarkRecorder"),JZ=function(a,b){T.call(this);this.j=a;this.h=new lL(this);this.g=new Map;this.l=this.h.signal();b&&b.N(this)};u(JZ,T);k=JZ.prototype;k.attach=function(a,b){for(var c=n([].concat(q(this.g.values()))),d=c.next();!d.done;d=c.next())a(d.value);this.l.attach(a,b)};k.Gg=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];this.vt.apply(this,[void 0].concat(q(b)))};
k.vt=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];a=void 0===a?Y().g:a;c=n(c);for(d=c.next();!d.done;d=c.next())KZ(this,{id:d.value,timestamp:a,Vj:!1})};k.Vj=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];this.Dt.apply(this,[void 0].concat(q(b)))};k.Dt=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];a=void 0===a?Y().g:a;c=n(c);for(d=c.next();!d.done;d=c.next())KZ(this,{id:d.value,timestamp:a,Vj:!0})};
var KZ=function(a,b){if(a.w())Yf(IZ,HZ(b)+" from "+a.j+" when disposed");else{var c=!a.g.has(b.id);D(IZ,HZ(b)+" from "+a.j+" "+(c?"\u2714\ufe0f":"\u2716\ufe0f"));c&&(a.g.set(b.id,b),a.h.V(a.l,b))}};var LZ=function(){T.call(this);this.h=new lL(this);this.wc=this.h.signal()};u(LZ,T);LZ.prototype.Y=function(){return null};var MZ=function(a){LZ.call(this,a);this.g=new X(this);this.N(this.g)};u(MZ,LZ);MZ.prototype.Y=function(){return LZ.prototype.Y.call(this)};var Uaa=function(){this.g=new Set},Vaa=function(a,b){a.g.add(b)},Waa=function(a,b){a.g.forEach(function(c){return c(b)})};var NZ=function(){this.g=0;this.h=bt();this.j=null};NZ.prototype.then=function(a,b,c){return this.h.da.then(a,b,c)};var OZ=function(a,b){return et(a.h.da,b,void 0)};NZ.prototype.get=function(){return this.j};var PZ=function(a){return 2==a.g};Ms(NZ);var QZ=function(){this.g=new NZ};QZ.prototype.resolve=function(a){var b=this;0==this.g.g&&(this.g.h.resolve(a),Ns(a)?(a.then(function(c){return RZ(b,c)},function(){return RZ(b,null)}),this.g.g=1):RZ(this,a))};var RZ=function(a,b){a.g.g=2;a.g.j=b};
QZ.prototype.reject=function(a){0==this.g.g&&(this.g.g=2,this.g.h.reject(a))};var TZ=function(){T.call(this);var a=this;this.h=[];this.g=new SZ(function(b){return Xaa(a,b)});this.N(this.g)};u(TZ,T);var Xaa=function(a,b){return a.h.reduce(function(c,d){d=d.filter;return d(c)},b)},SZ=function(a){gW.call(this);this.l=a;this.h=[];this.g=!1};u(SZ,gW);var yX=function(a,b){a.h=cc(b);a.g||(a.g=!0,Ks(a.j,a))};SZ.prototype.j=function(){this.g=!1;var a=this.l(this.h);this.M(new hW(a))};var UZ=function(a,b){for(var c in a){var d=n(a[c]),e=d.next().value;d=d.next().value;if(e<b&&b<=d)return c}return null},VZ=function(a,b,c){this.w=Math.min(0,a);this.s=Math.max(0,a);this.l=this.m;this.o=void 0===b?1:b;this.g=void 0===c?2:c;this.j=new nA(this.g);this.h=0};VZ.prototype.add=function(a){var b=this.j.add(a);this.l(a)&&(this.h+=1);void 0!=b&&this.l(b)&&--this.h};VZ.prototype.m=function(a){return this.w<=a&&a<=this.s};
var WZ=function(a){return a.j.wa()<a.g?!1:a.h/a.g>=a.o},XZ=function(a){return a.j.wa()>=a.g},YZ=function(a){this.h=new nA(a);this.l=a;this.j=this.g=0};YZ.prototype.add=function(a){var b=this.h.add(a),c=this.h.wa();this.g+=a;b&&(this.g-=b);this.j=this.g/c};var Yaa=function(a){return a.h.wa()>=a.l};var $Z=function(a,b,c,d){T.call(this);var e=this;this.T=Wf(c);this.W=W(a,AK).then();this.o=new Map;this.H=new lL(this);this.h=this.H.signal();this.C=0;this.F=new nA(300);this.l=RR.Kb();this.G=[];d&&ZZ(this,d.name,function(){return d.ab.concat(Zaa(e))});b.attach(function(f){var g=f.Kc,h=f.data;f=f.sequenceNumber;1<f-e.C&&e.reset();h=e.Wa(h,g);null!==h&&(e.jn(h),e.C=f,e.rb(h),e.jb(h),e.si(h,g),e.H.V(e.h,h))},this)};u($Z,T);$Z.prototype.g=function(a,b){this.W.then(function(c){c.g(a,b)})};
var a_=function(a,b,c,d){c!==a.o.get(b)&&a.g(c,d);a.o.set(b,c)},b_=function(a,b,c){a_(a,"O0r3Gd",b,c)},c_=function(a){a.o.delete("O0r3Gd")},d_=function(a,b,c){a_(a,"jOfkMb",b,c)},e_=function(a){a.o.delete("jOfkMb")};k=$Z.prototype;k.jn=function(a){Zf(this.T,JSON.stringify(a))};k.reset=function(){};k.rb=function(){};k.si=function(a,b){0===this.C%10&&this.F.add({data:a,Kc:b})};k.jb=function(){};
var $aa=function(a){var b=Math.min(a.F.wa(),300);return pA(a.F,b)},Zaa=function(a){return $aa(a).map(function(b){return[b.Kc].concat(q(a.Xa(b.data)))})},ZZ=function(a,b,c){a.G.push(SR(a.l,b,c))};$Z.prototype.aa=function(){this.G.forEach(function(a){return a()});T.prototype.aa.call(this)};var f_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.BandwidthEstimateMonitor",{name:"recentAvailableSendBandwidth",ab:["Time Since Call Start","Required Send Bandwidth (kbps)","Available Send Bandwidth (kbps)"]});this.m=0;this.j=!1;this.s=Y()};u(f_,$Z);
f_.prototype.Wa=function(a,b){var c=L(a[0],124);c=Math.round(c/100)/10;a=L(a[0],40);a=Math.round(a/100)/10;if(0>=c||0>=a)return null;this.m=this.m?.65*this.m+.35*a:a;var d=!1,e=!1,f=!1,g=Y();15>b?b=this.s=g:(d=this.m<c,f=!this.j&&d,b=this.j!==d?g:this.s,e=2E3<qR(g,b));return{Kk:c,Ih:a,Rh:d,Za:b,ib:f,Ca:e}};f_.prototype.rb=function(a){var b=a.Rh,c=a.ib;(a.Ca||c)&&d_(this,b?3747:3763)};f_.prototype.jb=function(a){var b=a.Rh;a=a.Za;this.j!==b&&(this.j=b,this.s=a)};
f_.prototype.Xa=function(a){return[a.Kk,a.Ih]};var g_=function(a,b,c){T.call(this);var d=this;this.g=new lL(this);this.onChange=this.g.signal();this.l=nL(this.g);c?this.j=c:(this.j=new f_(a,b),this.N(this.j));this.h=!1;this.j.h.attach(function(e){var f=e.Rh,g=e.Ca,h=f&&!d.h;g=!f&&g&&d.h;e={Kk:e.Kk,Ih:e.Ih,Rh:f};d.g.V(d.onChange,e);(h||g)&&d.g.V(d.l,e);h?d.h=!0:g&&(d.h=!1)},this)};u(g_,T);var h_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.AnqMonitor",{name:"anqScores",ab:["Time Since Call Start","Average ANQ Score"]});this.m=new Map;this.j={gf:0,th:"XhYBrd",Kc:0};this.s=new lL(this);this.D=nL(this.s)};u(h_,$Z);
h_.prototype.Wa=function(a,b){var c=this,d=[];a.forEach(function(e){var f=ll(e,207);if(null!=f&&(d.push(f),e=1===oF(e).length?L(oF(e)[0],3):null,null!==e)){c.m.has(e)||c.m.set(e,{Dg:{active:!1,startTime:0},vg:{active:!1,startTime:0}});f=UZ(i_,f);e=c.m.get(e);var g="AGpuT"===f;f="ElqWd"===f||g;g!==e.vg.active&&(e.vg.active=g,e.vg.startTime=b);f!==e.Dg.active&&(e.Dg.active=f,e.Dg.startTime=b)}});aba(this,b);if(0===d.length)return null;a=Math.max.apply(Math,q(d));this.j.gf=0===this.j.Kc?a:.7*a+this.j.gf*
(1-.7);this.j.Kc=b;this.j.th=UZ(i_,this.j.gf);return{gf:this.j.gf,th:this.j.th,Kc:b}};h_.prototype.Xa=function(a){return[a.gf]};var aba=function(a,b){a.m.forEach(function(c,d){c.Dg.active&&60<b-c.Dg.startTime&&a.s.V(a.D,d);c.vg.active&&30<b-c.vg.startTime&&a.s.V(a.D,d)})},j_={},i_=(j_.XhYBrd=[-.1,.2],j_.ElqWd=[.2,.6],j_.AGpuT=[.6,1],j_);var k_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.RttMonitor",{name:"recentRTT",ab:["Time Since Call Start","Connection Round trip time (ms)","Audio Round trip time (ms)","Video Round trip time (ms)"]});this.j=new Map([[1,0],[2,0]])};u(k_,$Z);
k_.prototype.Wa=function(a){var b=this,c=iF(a).find(function(f){return!!(L(f,2)&1)}),d,e;gF(a).forEach(function(f){if(0==xF(f)){var g=tF(f),h=L(f,7);switch(g){case 1:h&&h==b.j.get(g)?d=-1:(d=L(f,6),b.j.set(g,h));break;case 2:h&&h==b.j.get(g)?e=-1:(e=L(f,6),b.j.set(g,h))}}});return{yr:c?L(c,3):-1,cm:d,Ew:e}};k_.prototype.Xa=function(a){return[a.yr,a.cm,a.Ew]};var m_=function(a,b,c,d){T.call(this);var e=this;this.F=W(a,AK).then();this.o=d;this.o.h.attach(function(f){var g=Math.round(f.Kc-e.D);e.D=f.Kc;if("AGpuT"===f.th){if(200>e.m){f=60<=e.g;e.g+=g;var h=60<=e.g;!f&&h&&l_(e,5966)}else 60<=e.g&&l_(e,5967),e.g=0;200<e.l?(f=60<=e.j,e.j+=g,h=60<=e.j,!f&&h&&l_(e,5971)):(60<=e.j&&l_(e,5972),e.j=0);200>e.m&&200<e.l?(f=30<=e.h,e.h+=g,g=30<=e.h,!f&&g&&l_(e,5973)):(30<=e.h&&l_(e,5974),e.h=0)}else 60<=e.g&&l_(e,5967),e.g=0,60<=e.j&&l_(e,5972),e.j=0,30<=e.h&&l_(e,
5974),e.h=0},this);this.o.D.attach(function(f){e.s.V(e.G,f)},this);this.C=b;this.C.onChange.attach(function(f){e.m=f.Ih},this);this.K=c;this.K.h.attach(function(f){e.l=f.cm},this);this.D=this.h=this.j=this.g=this.l=this.m=0;this.s=new lL(this);this.G=nL(this.s)};u(m_,T);var l_=function(a,b){a.F.then(function(c){c.g(b)})};var n_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.audioreceived.BitRateMonitor",{name:"recentMaxAudioRecvBitrate",ab:["Time Since Call Start","Max Audio Recv Bitrate"]});this.m=Y();this.s=sR;this.K=new Map;this.reset()};u(n_,$Z);k=n_.prototype;k.reset=function(){this.D="lcN5Wd";this.m=Y();this.j=!0;this.s=sR;c_(this)};
k.Wa=function(a){var b=this,c=0<a.length,d=a.filter(function(h){var l=zF(h)||nF(h)[0];null===l?h=!1:(l=b.K.get(l)||0,h=(L(h,9)||0)!==l);return h}),e=0,f=null;a=Y();var g=!1;0<d.length&&(d.forEach(function(h){var l=zF(h)||nF(h)[0];null!==l&&(h=L(h,9)||0,b.K.set(l,h))}),d=d.map(function(h){return L(h,96)||0}),e=Math.max.apply(Math,[].concat(q(d),[0])),f=UZ(bba,e));null!==f&&(f===this.D&&(a=this.m),g=1E4<qR(Y(),a));return{oc:e,en:c,status:f,tt:a,Ca:g}};
k.rb=function(a){a.en?this.j||b_(this,4619):0<qR(Y(),this.s)?b_(this,4707):b_(this,4618)};k.jb=function(a){var b=a.en,c=a.status;a=a.tt;null!==c&&(c!==this.D&&(this.D=c,this.m=a),b!==this.j&&(this.s=pR(Y(),b?Infinity:2E4),this.j=b))};k.Xa=function(a){return[a.oc]};var o_={},bba=(o_.x5ghY=[-Infinity,0],o_.MNynB=[0,2E3],o_.lcN5Wd=[2E3,Infinity],o_);var p_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.audioreceived.DelayMonitor",{name:"recentAudioPlayoutDelay",ab:["Time Since Call Start","Max Audio Playout Delay (ms)"]});this.j=!1};u(p_,$Z);p_.prototype.Wa=function(a){a=a.filter(function(c){return null!=L(c,26)&&5<L(c,26)}).reduce(function(c,d){return Math.max(c,L(d,39)||0)},-Infinity);a=-Infinity<a?a:null;var b=this.j;return{delay:a,Gj:null===a?b:500<=a,pp:b}};
p_.prototype.rb=function(a){var b=a.Gj;a=a.pp;!a&&b?this.g(4009):a&&!b&&this.g(4010)};p_.prototype.jb=function(a){var b=a.Gj;null!==a.delay&&(this.j=b)};p_.prototype.Xa=function(a){return[a.delay]};var q_=function(a,b,c,d){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.audioreceived.EnergyMonitor",{name:"recentMaxReceivedAudioEnergy",ab:["Time Since Call Start","Max Received Audio Energy"]});var e=this;this.R=d;this.j=Y();this.D=new VZ(2E3,.75,Math.round(6E4/c));ZZ(this,"energyLowBeforeSendingFeedback",function(){return WZ(e.D)});ZZ(this,"overallRecvLowEnergyPercent",function(){return Math.round(100*e.K/e.L)});this.s=new Map;this.K=this.L=0;this.reset()};u(q_,$Z);
q_.prototype.reset=function(){this.m="lcN5Wd";this.j=Y()};
q_.prototype.Wa=function(a){var b=this,c=a.filter(function(g){var h=zF(g)||nF(g)[0];null===h?g=!1:(h=b.s.get(h)||0,g=(L(g,9)||0)!==h);return g}),d=0,e=null;a=Y();var f=!1;0<c.length&&(c.forEach(function(g){var h=zF(g)||nF(g)[0];null!==h&&(g=L(g,9)||0,b.s.set(h,g))}),d=c.map(function(g){return L(g,26)||0}),d=Math.max.apply(Math,[].concat(q(d),[0])),e=UZ(cba,d));null!==e&&(e===this.m&&(a=this.j),f=qR(Y(),a),c=dba.get(e),f=f>c);return{Hh:d,status:e,Za:a,Ca:f}};
q_.prototype.jb=function(a){var b=a.Hh,c=a.status;a=a.Za;null!==c&&(c!==this.m&&(this.m=c,this.j=a),this.R()||(this.L++,2E3>b&&this.K++),this.D.add(b))};q_.prototype.Xa=function(a){return[a.Hh]};var r_={},cba=(r_.x5ghY=[-Infinity,0],r_.MNynB=[0,2E3],r_.lcN5Wd=[2E3,Infinity],r_),dba=new Map([["x5ghY",5E3],["MNynB",15E3],["lcN5Wd",15E3]]);var s_=function(a,b,c){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.audioreceived.FractionLostMonitor",{name:"recentMaxAudioRecvFractionLost",ab:["Time Since Call Start","Max Audio Recv Fraction Lost (%)"]});this.Z=3E4/c;this.D=new YZ(this.Z);this.R=6E4/c;this.s=new VZ(20,.6,this.R);this.m=this.K=!1;this.j=!0;this.L=new Map};u(s_,$Z);
s_.prototype.Wa=function(a){var b=this;a=a.filter(function(h){var l=zF(h)||nF(h)[0];null===l?h=!1:(l=b.L.get(l)||0,h=(L(h,9)||0)!==l);return h});if(0==a.length)return null;a.forEach(function(h){var l=zF(h)||nF(h)[0]||0;h=L(h,9)||0;b.L.set(l,h)});a=a.reduce(function(h,l){return Math.max(h,L(l,2))},0);this.D.add(a);this.s.add(a);var c=50<a,d=this.K,e=this.m;Yaa(this.D)&&(e=20<this.D.j);var f=this.m,g=this.j;XZ(this.s)&&(g=WZ(this.s));return{fractionLost:a,dn:c,Jw:d,cn:e,Iw:f,Zl:g,Kw:this.j}};
s_.prototype.rb=function(a){var b=a.dn,c=a.Jw,d=a.cn,e=a.Iw,f=a.Zl;a=a.Kw;b&&!c?this.g(4348):!b&&c&&this.g(4349);d&&!e?this.g(4350):!d&&e&&this.g(4351);f&&!a?this.g(4434):!f&&a&&this.g(4433)};s_.prototype.jb=function(a){var b=a.cn,c=a.Zl;this.K=a.dn;this.m=b;this.j=c};s_.prototype.Xa=function(a){return[a.fractionLost]};var t_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.audioreceived.JitterBufferSizeMonitor",{name:"recentMaxAudioRecvJitterBufferSize",ab:["Time Since Call Start","Max Audio Recv Jitter Buffer Size (ms)"]});this.j=new Map};u(t_,$Z);
t_.prototype.Wa=function(a){var b=this;a=a.filter(function(c){var d=zF(c)||nF(c)[0];null===d?c=!1:(d=b.j.get(d)||0,c=(L(c,9)||0)!==d);return c});if(0==a.length)return null;a.forEach(function(c){var d=zF(c)||nF(c)[0]||0;c=L(c,9)||0;b.j.set(d,c)});return{rt:a.reduce(function(c,d){return Math.max(c,L(d,37)||-1)},0)}};t_.prototype.Xa=function(a){return[a.rt]};var u_=function(a,b,c){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.audioreceived.SpeechExpandRateMonitor",{name:"recentMaxSpeechExpandRate",ab:["Time Since Call Start","Max Speech Expand Rate (%)"]});this.m=new VZ(20,.6,5E3/c);this.K=pR(Y(),6E4);this.s=this.j=0;this.D=new Map};u(u_,$Z);
u_.prototype.Wa=function(a){var b=this;a=a.filter(function(h){var l=zF(h)||nF(h)[0];null===l?h=!1:(l=b.D.get(l)||0,h=(L(h,9)||0)!==l);return h});if(0==a.length)return null;a.forEach(function(h){var l=zF(h)||nF(h)[0];null!==l&&(h=L(h,9)||0,b.D.set(l,h))});a=a.map(function(h){return ll(h,103)}).filter(function(h){return null!=h});a=Math.round(100*Math.max.apply(Math,[].concat(q(a),[0])));this.m.add(a);var c=Y(),d=this.K,e=null;0<qR(c,d)&&(d=pR(c,6E4),e=(this.j+a)/(this.s+1));c=40<a;var f=XZ(this.m),
g=WZ(this.m);return{Xo:a,em:e,Mt:d,ot:c,mt:f,lt:g}};u_.prototype.rb=function(a){var b=this,c=a.em,d=a.mt,e=a.lt;a.ot?a_(b,"BcmLRd",4116):a_(b,"BcmLRd",4117);d&&(e?a_(b,"vhhrIe",4432):a_(b,"vhhrIe",4431));null!==c&&(a=function(f){return a_(b,"YK82pb",f)},20<=c?a(4269):10<=c?a(4268):5<=c?a(4267):2<=c?a(4266):a(4265))};u_.prototype.jb=function(a){var b=a.Xo,c=a.Mt;null!==a.em?(this.s=this.j=0,this.K=c):(this.j+=b,this.s++)};u_.prototype.Xa=function(a){return[a.Xo]};var v_=function(a,b,c,d){T.call(this);var e=this;this.s=d;this.g=new lL(this);this.j=!0;this.F=this.g.signal();this.L=nL(this.g);this.G=this.g.signal();this.H=nL(this.g);this.K=nL(this.g);this.l=!0;this.R=this.g.signal();this.W=nL(this.g);this.m=new n_(a,b);this.N(this.m);this.m.h.attach(function(f){var g=f.oc,h=f.status;f=f.Ca;null!==h&&(g={oc:g,status:h},e.g.V(e.F,g),f!==e.j&&(f&&e.g.V(e.L,g),e.j=f))},this);this.o=new p_(a,b);this.N(this.o);this.o.h.attach(function(f){var g=f.pp,h=f.Gj;f={Ch:f.delay};
e.g.V(e.G,f);!g&&h?e.g.V(e.H,f):g&&!h&&e.g.V(e.K,f)},this);this.h=new q_(a,b,c,function(){return eba(e)});this.N(this.h);this.h.h.attach(function(f){var g=f.Hh,h=f.status;f=f.Ca;null!==h&&(g={Hh:g,status:h},e.g.V(e.R,g),f!==e.l&&(f&&e.g.V(e.W,g),e.l=f))},this);this.C=new s_(a,b,c);this.N(this.C);this.D=new t_(a,b);this.N(this.D);this.Z=new u_(a,b,c);this.N(this.Z)};u(v_,T);var eba=function(a){return a.s().every(function(b){b=b.getInfo();return"a"!==b.ia()||b.lc()})};var w_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.CpuUsageMonitor",{name:"recentSystemCpuUsage",ab:["Time Since Call Start","System","Process","Browser","GPU"]});this.D=this.s=0;this.j=this.m=!1};u(w_,$Z);
w_.prototype.Wa=function(a){var b=L(a,36)||0;if(0<b){var c=Math.round((L(a,35)||0)/b),d=Math.round((L(a,34)||0)/b),e=Math.round((L(a,92)||0)/b);a=Math.round((L(a,94)||0)/b);b=.65*this.s+.35*c;var f=.65*this.D+.35*(d+e+a);return{el:c,pk:d,Qi:e,wj:a,kw:b,lw:f,rp:this.m,op:this.j,Jj:90<=b,Ej:60<=b-f}}return null};w_.prototype.rb=function(a){var b=a.Jj,c=a.Ej,d=a.op;b!==a.rp&&this.g(b?3746:3762);c!==d&&this.g(c?4628:4629)};
w_.prototype.jb=function(a){var b=a.lw,c=a.Jj,d=a.Ej;this.s=a.kw;this.D=b;this.m=c;this.j=d};w_.prototype.Xa=function(a){return[a.el,a.pk,a.Qi,a.wj]};var x_=function(a,b){T.call(this);var c=this;this.g=new lL(this);this.onChange=this.g.signal();this.l=nL(this.g);this.j=nL(this.g);this.h=new w_(a,b);this.N(this.h);this.h.h.attach(function(d){var e=d.Jj,f=d.Ej,g=d.rp,h=d.op;d={el:d.el,pk:d.pk,Qi:d.Qi,wj:d.wj,JK:e,IK:f};c.g.V(c.onChange,d);e!==g&&c.g.V(c.l,d);f!==h&&c.g.V(c.j,d)},this)};u(x_,T);var y_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.LeakyBucketDelayMonitor",{name:"recentLeakyBucketDelay",ab:["Time Since Call Start","Leaky Bucket Delay (ms)"]});this.j="lcN5Wd";this.m=Y()};u(y_,$Z);
y_.prototype.Wa=function(a,b){if(15>b)return this.m=Y(),null;a=L(a[0],80);if(null===a)return null;b=UZ(z_,a);if(null===b){var c=Y();return{Ag:a,status:b,Za:c,ib:!1,Ca:!1,vb:!1}}c=z_[this.j][0]<z_[b][0];var d=b!==this.j?Y():this.m,e=2E3<qR(Y(),d);return{Ag:a,status:b,Za:d,ib:c,Ca:e,vb:3E3<a}};y_.prototype.rb=function(a){var b=a.status,c=a.ib,d=a.Ca;a=a.vb;if(d||c)"lcN5Wd"===b?d_(this,4379):"CNusmb"===b&&d_(this,4380);a?b_(this,4381):d&&c_(this)};
y_.prototype.jb=function(a){var b=a.status;a=a.Za;null!==b&&b!==this.j&&(this.j=b,this.m=a)};y_.prototype.Xa=function(a){return[a.Ag]};var A_={},z_=(A_.lcN5Wd=[-Infinity,3E3],A_.CNusmb=[3E3,Infinity],A_);var B_=function(a,b){T.call(this);var c=this;this.h=new lL(this);this.l=nL(this.h);this.j=new y_(a,b);this.N(this.j);this.g=!1;this.j.h.attach(function(d){var e=d.Ag,f=d.vb,g=d.Ca;d=f&&!c.g;g=!f&&g&&c.g;(d||g)&&c.h.V(c.l,{LK:e,nt:f});d?c.g=!0:g&&(c.g=!1)},this)};u(B_,T);var C_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.audioreceived.NeteqCallsMonitor",{name:"recentNeteqCalls",ab:["Time Since Call Start","Min Neteq Calls (%)"]});this.j=!1;this.m=new Map;this.s=new Map};u(C_,$Z);
C_.prototype.Wa=function(a,b){var c=this;a=a.filter(function(d){var e=zF(d)||nF(d)[0];null===e?d=!1:(e=c.m.get(e)||0,d=(L(d,9)||0)!==e);return d});if(0==a.length)return null;a.forEach(function(d){var e=zF(d)||nF(d)[0]||0;d=L(d,9)||0;c.m.set(e,d)});a=Math.min.apply(Math,[].concat(q(a.map(function(d){var e=nF(d)[0];if(d=L(d,82)){var f=100,g=c.s.get(e);if(g){var h=1E3*(b-g.Kc)/10;0!=h&&(g=d-g.Kt,g>h/10&&(f=Math.min(100,Math.round(g/h*100))))}c.s.set(e,{Kt:d,Kc:b});e=f}else e=100;return e})),[100]));
return{Lt:a,Sh:80>=a}};C_.prototype.rb=function(a){a=a.Sh;!a&&this.j?this.g(4127):a&&!this.j&&this.g(4126)};C_.prototype.jb=function(a){a=a.Sh;a!==this.j&&(this.j=a)};C_.prototype.Xa=function(a){return[a.Lt]};var D_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.audiosent.BitRateMonitor",{name:"statsAudioSentBitrate",ab:["Time Since Call Start","Audio Sent Bitrate (bps)"]});this.j="lcN5Wd"};u(D_,$Z);D_.prototype.Wa=function(a,b){if(5>b)return null;a=Math.min.apply(Math,q(a.map(function(c){return L(c,42)})));if(Infinity===a)return null;b=UZ(fba,a);return{oc:a,status:b}};D_.prototype.jb=function(a){a=a.status;null!==a&&a!==this.j&&(this.j=a)};D_.prototype.Xa=function(a){return[a.oc]};
var E_={},fba=(E_.MNynB=[-Infinity,500],E_.lcN5Wd=[500,Infinity],E_);var F_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.audiosent.EchoLikelihoodMonitor",{name:"statsAudioSentEchoLikelihoodRecentMax",ab:["Time Since Call Start","Max Audio Sent Residual Echo Likelihood"]});this.j=!1};u(F_,$Z);F_.prototype.Wa=function(a){a=Math.max.apply(Math,q(a.map(function(b){return ll(b,133)||0})));return-Infinity<a?(a=Math.round(1E3*a)/10,{Dr:a,Zm:55<=a}):null};F_.prototype.rb=function(a){a=a.Zm;var b=this.j;a&&!b?this.g(4472):!a&&b&&this.g(4473)};
F_.prototype.jb=function(a){this.j=a.Zm};F_.prototype.Xa=function(a){return[a.Dr]};var G_=function(a,b,c){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.audiosent.EnergyMonitor",{name:"statsAudioSentEnergy",ab:["Time Since Call Start","Sent Energy"]});var d=this;this.s=this.D=0;ts(this,SR(this.l,"overallSentEnergyLow",function(){return!!d.s&&80<d.D/d.s*100&&5<=d.s}));this.j=!1;ts(this,SR(this.l,"sentEnergyConsistentlyZero",function(){return d.j}));ts(this,function(){d.j&&d.g(5197)});this.K=!0;this.R=gba();this.m=null;xL(c,function(e){d.m=e});this.L=new VZ(100,.7,10)};
u(G_,$Z);G_.prototype.Wa=function(a){a=L(a[0],26);if("number"!==typeof a)return null;this.L.add(a);return{zm:a}};G_.prototype.jb=function(a){a=a.zm;!this.m||this.m.Nb()||this.m.Fj()||(this.K&&(this.j=a<=this.R?!0:this.K=!1),this.s++,100>a&&this.D++)};var gba=function(){var a=0;Zd("Windows")?a=1:Zd("CrOS")&&(a=2);return a};G_.prototype.Xa=function(a){return[a.zm]};var H_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.BatteryMonitor",{name:"recentBatteryLevel",ab:["Time Since Call Start","Battery level (%)"]});this.j=0};u(H_,$Z);H_.prototype.Wa=function(a){a=Math.round(100*M(a,75,-1));return a===this.j?null:{fm:a}};H_.prototype.jb=function(a){this.j=a.fm};H_.prototype.Xa=function(a){return[a.fm]};var I_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.ConnectionMonitor");var c=this;this.j=this.m=0;jf&&Qp(61)&&ts(this,SR(this.l,"connection",function(){return hba()}));ts(this,SR(this.l,"networkType",function(){return c.j+": "+iba[c.j]}));ts(this,SR(this.l,"transportProtocol",function(){a:switch(c.m){case 1:var d="UDP";break a;case 2:case 3:d="TCP";break a;default:d="Unknown"}return d}))};u(I_,$Z);
I_.prototype.Wa=function(a){var b=L(a,55);b=this.j=null!=b&&jba.includes(b)?b:0;a=this.m=L(Q(a,LD,8,1),4);return{network:b,protocol:a}};I_.prototype.rb=function(a){switch(a.protocol){case 1:d_(this,3778);break;case 2:case 3:d_(this,3777)}};I_.prototype.si=function(){};
var hba=function(){var a=Fe(),b={};["type","effectiveType","downlinkMax","downlink","rtt"].forEach(function(c){return b[c]=a.connection[c]||"unknown"});return b},jba=Cc({rJ:0,mJ:1,tJ:2,uJ:3,kJ:4,nJ:5,oJ:6,pJ:7,qJ:8,lJ:10,sJ:11}),J_={},iba=(J_[0]="Unknown",J_[1]="Ethernet",J_[2]="WiFi",J_[3]="Wimax",J_[4]="Bluetooth",J_[5]="Mobile",J_[6]="Mobile 2G",J_[7]="Ethernet",J_[8]="Mobile 3G",J_[10]="Dummy",J_[11]="VPN",J_);var K_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.NetworkMonitor");this.s=new Map;this.m=!1;this.j=Y();this.D=0};u(K_,$Z);k=K_.prototype;k.Wa=function(a){var b=this,c=0<a.length;a=a.reduce(function(g,h){var l=zF(h)||nF(h)[0]||0,p=b.s.get(l)||0;h=L(h,10)||0;b.s.set(l,h);return g+Math.max(h-p,0)},0);c=c&&!a;var d=this.m,e=this.j,f=this.D;!d&&c?e=Y():d&&!c&&(f=qR(Y(),this.j));return{Hj:c,qp:d,Fn:a,Pn:e,mk:f}};k.jn=function(){};
k.rb=function(a){var b=a.Hj,c=a.qp;a=a.mk;!c&&b?this.g(4552):c&&!b&&(1E4<a&&this.g(4582),this.g(4553))};k.jb=function(a){var b=a.Pn,c=a.mk;this.m=a.Hj;this.j=b;this.D=c};k.Xa=function(a){return[a.Fn]};var L_=function(a,b){T.call(this);var c=this;this.g=new lL(this);this.l=nL(this.g);this.j=nL(this.g);this.h=new K_(a,b);this.N(this.h);this.h.h.attach(function(d){var e=d.Hj,f=d.qp,g=d.Pn,h=d.mk;d=d.Fn;e&&!f&&c.g.V(c.l,{st:d,dL:g});!e&&f&&c.g.V(c.j,{st:d,xK:h})},this)};u(L_,T);var M_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharereceived.BitRateMonitor",{name:"recentScreenshareRecvBitrate",ab:["Time Since Call Start","Screenshare Recv Bitrate (kbps)"]});this.s=0;this.j="lcN5Wd";this.m=Y()};u(M_,$Z);k=M_.prototype;k.reset=function(){this.s=0;this.j="lcN5Wd";this.m=Y();c_(this);e_(this)};
k.Wa=function(a,b){if(5>b)return this.m=Y(),null;a=Math.min.apply(Math,q(a.map(function(h){return L(h,96)})));if(Infinity===a)return null;a=Math.round(a/100)/10;b=.65*this.s+.35*a;var c=UZ(N_,b),d=Y(),e=!1,f=!1,g=!1;null!==c&&(e=N_[this.j][0]>N_[c][0],c===this.j&&(d=this.m),f=5E3<qR(Y(),d),g=200>=b);return{oc:a,status:c,Za:d,ib:e,Ca:f,vb:g,Yk:b}};k.rb=function(a){var b=a.status,c=a.Ca,d=a.vb;if(a.ib||c)"lcN5Wd"===b?d_(this,4376):"MNynB"===b&&d_(this,4377);d?b_(this,4378):c&&c_(this)};
k.jb=function(a){var b=a.status,c=a.Za;this.s=a.Yk;null!==b&&b!==this.j&&(this.j=b,this.m=c)};k.Xa=function(a){return[a.oc]};var O_={},N_=(O_.MNynB=[-Infinity,200],O_.lcN5Wd=[200,Infinity],O_);var P_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharereceived.FpsDecodeMonitor",{name:"recentScreenshareRecvFpsDecode",ab:["Time Since Call Start","Screenshare Decoded FPS"]});this.j="lcN5Wd";this.m=Y()};u(P_,$Z);k=P_.prototype;k.reset=function(){this.j="lcN5Wd";this.m=Y();e_(this)};
k.Wa=function(a,b){if(10>b)return this.m=Y(),null;a=Math.min.apply(Math,q(a.map(function(f){return L(f,31)})));if(!(0<=a&&60>=a))return null;b=UZ(Q_,a);var c=Y(),d=!1,e=!1;null!==b&&(e=Q_[this.j][0]>Q_[b][0],b===this.j&&(c=this.m),d=5E3<qR(Y(),c));return{Uj:a,status:b,Za:c,ib:e,Ca:d}};k.rb=function(a){var b=a.status,c=a.ib;if(a.Ca||c)"lcN5Wd"===b?d_(this,4343):"x5ghY"===b&&d_(this,4342)};k.jb=function(a){var b=a.status;a=a.Za;null!==b&&b!==this.j&&(this.j=b,this.m=a)};k.Xa=function(a){return[a.Uj]};
var R_={},Q_=(R_.x5ghY=[-Infinity,0],R_.lcN5Wd=[0,Infinity],R_);var S_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharereceived.FpsRenderInputMonitor",{name:"recentScreenshareRecvFpsRenderInput",ab:["Time Since Call Start","Screenshare Render Input (FPS)"]});this.j="lcN5Wd";this.m=Y()};u(S_,$Z);k=S_.prototype;k.reset=function(){this.j="lcN5Wd";this.m=Y();e_(this)};
k.Wa=function(a,b){if(10>b)return this.m=Y(),null;a=Math.min.apply(Math,q(a.map(function(f){return ll(f,50)})));if(!(0<=a&&60>=a))return null;b=UZ(T_,a);var c=Y(),d=!1,e=!1;null!==b&&(e=T_[this.j][0]>T_[b][0],b===this.j&&(c=this.m),d=5E3<qR(Y(),c));return{Uj:a,status:b,Za:c,ib:e,Ca:d}};k.rb=function(a){var b=a.status,c=a.ib;if(a.Ca||c)"lcN5Wd"===b?d_(this,4018):"x5ghY"===b&&d_(this,4046)};k.jb=function(a){var b=a.status;a=a.Za;null!==b&&b!==this.j&&(this.j=b,this.m=a)};k.Xa=function(a){return[a.Uj]};
var U_={},T_=(U_.x5ghY=[-Infinity,0],U_.lcN5Wd=[0,Infinity],U_);var V_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharereceived.FractionLostMonitor",{name:"recentScreenshareRecvFractionLost",ab:["Time Since Call Start","Fraction Lost (%)"]});this.j=Y();this.reset()};u(V_,$Z);k=V_.prototype;k.reset=function(){this.m="lcN5Wd";this.s=0;this.j=Y();e_(this)};
k.Wa=function(a,b){if(10>b)return this.j=Y(),null;a=Math.max.apply(Math,q(a.map(function(g){return L(g,2)})));if(!(0<=a&&100>=a))return null;b=.65*this.s+.35*a;var c=UZ(W_,b),d=Y(),e=!1,f=!1;null!==c&&(f=W_[this.m][0]<W_[c][0],c===this.m&&(d=this.j),e=8E3<qR(Y(),d));return{fractionLost:a,Xk:b,status:c,Za:d,ib:f,Ca:e}};
k.rb=function(a){var b=a.status,c=a.ib;if(a.Ca||c)switch(b){case "lcN5Wd":d_(this,4043);break;case "QIiD3":d_(this,4040);break;case "ucYu5c":d_(this,4041);break;case "rBGRnf":d_(this,4042)}};k.jb=function(a){var b=a.status,c=a.Za;a=a.Xk;null!==b&&(this.s=a,b!==this.m&&(this.m=b,this.j=c))};k.Xa=function(a){return[a.fractionLost]};var X_={},W_=(X_.lcN5Wd=[-1,5],X_.QIiD3=[5,10],X_.ucYu5c=[10,20],X_.rBGRnf=[20,Infinity],X_);var Y_=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharereceived.FrameSpacingMonitor",{name:"recentScreenshareRecvFrameSpacing",ab:["Time Since Call Start","Max Frame Spacing (ms)"]});this.s=Y();this.m=new Map;this.reset()};u(Y_,$Z);Y_.prototype.reset=function(){this.j="lcN5Wd";this.D=-1;this.m.clear();this.s=Y();c_(this);e_(this)};
Y_.prototype.Wa=function(a){var b=this;a=a.filter(function(l){return(l.D||!1)&&!!l.j});if(0===a.length)return null;var c=a.map(function(l){var p=Z_(l),r=p.Jb;p=p.ssrc;0>=r&&(r=(r=b.m.get(p))?qR(Y(),r):Infinity);return{Jb:Math.min(r,l.j),ssrc:p}});a.forEach(function(l){l=Z_(l);var p=l.ssrc;0<l.Jb&&b.m.set(p,Y())});c=kba?lba(c):mba(c);if(!c)return null;a=c.Jb;c=c.ssrc;var d=UZ($_,a),e=Y(),f=!1,g=!1,h=!1;null!==d&&(h=$_[this.j][0]<$_[d][0],d===this.j&&(e=this.s),f=5E3<qR(Y(),e),g=5E3<a);return{Jb:a,
ssrc:c,status:d,Za:e,ib:h,Ca:f,vb:g}};var lba=function(a){a=a.reduce(function(c,d){return c.Jb<d.Jb?d:c},{Jb:-1,ssrc:0});var b=a.Jb;return-1===b?null:{Jb:b,ssrc:a.ssrc}};Y_.prototype.si=function(a,b){a.Jb===this.D&&$Z.prototype.si.call(this,a,b)};var mba=function(a){var b=a.reduce(function(c,d){return c.Jb<d.Jb?d:c},{Jb:-Infinity,ssrc:0});a=b.Jb;b=b.ssrc;return 0<=a&&12E4>=a?{Jb:a,ssrc:b}:null};
Y_.prototype.rb=function(a){var b=a.status,c=a.Ca,d=a.vb,e=a.ssrc;if(a.ib||c)switch(b){case "lcN5Wd":d_(this,4185,{Fc:e});break;case "peRWwb":d_(this,4186,{Fc:e});break;case "kJFEZb":d_(this,4187,{Fc:e});break;case "fcP1q":d_(this,4188,{Fc:e});break;case "ozt2pf":d_(this,4189,{Fc:e})}d?b_(this,4184,{Fc:e}):c&&c_(this)};Y_.prototype.jb=function(a){var b=a.Jb,c=a.status;a=a.Za;null!==c&&(this.D=b,c!==this.j&&(this.j=c,this.s=a))};Y_.prototype.Xa=function(a){return[a.Jb]};
var Z_=function(a){var b=zF(a)||nF(a)[0]||0;return{Jb:L(a,138)||0,ssrc:b}},kba=jf&&Qp(62),a0={},$_=(a0.lcN5Wd=[-Infinity,300],a0.peRWwb=[300,1500],a0.kJFEZb=[1500,5E3],a0.fcP1q=[5E3,2E4],a0.ozt2pf=[2E4,Infinity],a0);var b0=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharereceived.OneWayDelayMonitor",{name:"recentScreenshareRecvOneWayDelay",ab:["Time Since Call Start","One Way Delay (ms)"]});this.j=Y();this.reset()};u(b0,$Z);k=b0.prototype;k.reset=function(){this.m="lcN5Wd";this.s=0;this.j=Y();e_(this)};
k.Wa=function(a,b){if(10>b)return this.j=Y(),null;a=a.map(function(g){return{delay:L(g,89),qg:g.j}}).filter(function(g){var h=g.delay;g=!!g.qg;return"number"===typeof h&&0<h&&9E4>h&&g}).map(function(g){return Math.min(g.delay,g.qg)});a=Math.max.apply(Math,[].concat(q(a),[-1]));if(0>a)return null;b=.65*this.s+.35*a;var c=UZ(c0,b),d=Y(),e=!1,f=!1;null!==c&&(e=c0[this.m][0]<c0[c][0],c===this.m&&(d=this.j),f=1E4<qR(Y(),d));return{iu:a,mw:b,status:c,Za:d,ib:e,Ca:f}};
k.rb=function(a){var b=a.status,c=a.Ca;if(a.ib||c)switch(b){case "lcN5Wd":d_(this,4017);break;case "MNZVHe":d_(this,4014);break;case "CUJ8qd":d_(this,4015);break;case "ydPu5e":d_(this,4016)}};k.jb=function(a){var b=a.status,c=a.mw;a=a.Za;null!==b&&(this.s=c,b!==this.m&&(this.m=b,this.j=a))};k.Xa=function(a){return[a.iu]};var d0={},c0=(d0.lcN5Wd=[0,2E3],d0.MNZVHe=[2E3,3E3],d0.CUJ8qd=[3E3,5E3],d0.ydPu5e=[5E3,Infinity],d0);var e0=function(a,b){T.call(this);var c=this;this.j=new lL(this);this.D=nL(this.j);this.h=new M_(a,b);this.N(this.h);this.h.h.attach(function(d){var e=d.oc,f=d.vb,g=d.Ca;d=f&&!c.g;g=!f&&g&&c.g;(d||g)&&c.j.V(c.D,{oc:e,Sh:f});d?c.g=!0:g&&(c.g=!1)},this);this.g=!1;this.l=new P_(a,b);this.N(this.l);this.m=new S_(a,b);this.N(this.m);this.s=new V_(a,b);this.N(this.s);this.o=new Y_(a,b);this.N(this.o);this.C=new b0(a,b);this.N(this.C)};u(e0,T);var f0=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharesent.BitRateMonitor",{name:"recentScreenshareSentBitrate",ab:["Time Since Call Start","Screenshare Sent Bitrate (kbps)"]});this.s=0;this.j="lcN5Wd";this.m=Y()};u(f0,$Z);k=f0.prototype;k.reset=function(){this.s=0;this.j="lcN5Wd";this.m=Y();c_(this);e_(this)};
k.Wa=function(a){a=a.filter(function(h){return"number"===typeof L(h,29)&&0<L(h,29)&&"number"===typeof L(h,42)}).map(function(h){return L(h,42)});a=Math.min.apply(Math,q(a));if(Infinity===a)return null;a=Math.round(a/100)/10;var b=.65*this.s+.35*a,c=UZ(g0,b),d=Y(),e=!1,f=!1,g=!1;null!==c&&(e=g0[this.j][0]>g0[c][0],c===this.j&&(d=this.m),f=5E3<qR(Y(),d),g=200>=b);return{oc:a,status:c,Za:d,ib:e,Ca:f,vb:g,Yk:b}};
k.rb=function(a){var b=a.status,c=a.Ca,d=a.vb;if(a.ib||c)"lcN5Wd"===b?d_(this,4373):"MNynB"===b&&d_(this,4374);d&&b_(this,4375)};k.jb=function(a){var b=a.status,c=a.Za;this.s=a.Yk;null!==b&&b!==this.j&&(this.j=b,this.m=c)};k.Xa=function(a){return[a.oc]};var h0={},g0=(h0.MNynB=[-Infinity,200],h0.lcN5Wd=[200,Infinity],h0);var i0=function(a,b,c){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharesent.FpsCaptureMonitor",{name:"recentScreenshareSentFpsCapture",ab:["Time Since Call Start","Sent FPS (Capture)"]});this.s=new VZ(0,.6,1E4>c?10:2);this.j="lcN5Wd";this.m=Y()};u(i0,$Z);k=i0.prototype;k.reset=function(){this.j="lcN5Wd";this.m=Y();c_(this);e_(this)};
k.Wa=function(a,b){if(10>b)return this.m=Y(),null;a=Math.min.apply(Math,q(a.map(function(g){return L(g,29)})));if(0>a||60<a)return null;this.s.add(a);b=UZ(j0,a);var c=Y(),d=!1,e=!1,f=!1;null!==b&&(d=j0[this.j][0]>j0[b][0],b===this.j&&(c=this.m),e=5E3<qR(Y(),c),f=0>=a&&WZ(this.s));return{Cm:a,status:b,Za:c,ib:d,Ca:e,vb:f}};k.rb=function(a){var b=a.status,c=a.Ca,d=a.vb;if(a.ib||c)"lcN5Wd"===b?d_(this,4340):"x5ghY"===b&&d_(this,4339);d?b_(this,4341):c&&c_(this)};
k.jb=function(a){var b=a.status;a=a.Za;null!==b&&b!==this.j&&(this.j=b,this.m=a)};k.Xa=function(a){return[a.Cm]};var k0={},j0=(k0.x5ghY=[-Infinity,0],k0.lcN5Wd=[0,Infinity],k0);var l0=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharesent.FpsEncodeMonitor",{name:"recentScreenshareSentFpsEncode",ab:["Time Since Call Start","Sent FPS (Encode)"]});this.j="lcN5Wd";this.m=Y()};u(l0,$Z);k=l0.prototype;k.reset=function(){this.j="lcN5Wd";this.m=Y();c_(this);e_(this)};
k.Wa=function(a){a=a.filter(function(g){return"number"===typeof L(g,29)&&0<L(g,29)&&"number"===typeof L(g,30)});a=Math.min.apply(Math,q(a.map(function(g){return L(g,30)})));if(0>a||60<a)return null;var b=UZ(m0,a),c=Y(),d=!1,e=!1,f=!1;null!==b&&(d=m0[this.j][0]>m0[b][0],b===this.j&&(c=this.m),e=2E3<qR(Y(),c),f=0>=a);return{Dm:a,status:b,Za:c,ib:d,Ca:e,vb:f}};k.rb=function(a){var b=a.status,c=a.Ca,d=a.vb;if(a.ib||c)"lcN5Wd"===b?d_(this,4329):"x5ghY"===b&&d_(this,4328);d&&b_(this,4330)};
k.jb=function(a){var b=a.status;a=a.Za;null!==b&&b!==this.j&&(this.j=b,this.m=a)};k.Xa=function(a){return[a.Dm]};var n0={},m0=(n0.x5ghY=[-Infinity,0],n0.lcN5Wd=[0,Infinity],n0);var o0=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharesent.FractionLostMonitor",{name:"recentScreenshareSentFractionLost",ab:["Time Since Call Start","Fraction Lost (%)"]});this.j=Y();this.reset()};u(o0,$Z);k=o0.prototype;k.reset=function(){this.s=0;this.m="lcN5Wd";this.j=Y();c_(this);e_(this)};
k.Wa=function(a,b){var c=Y();if(10>b)return this.j=c,null;a=Math.max.apply(Math,q(a.map(function(l){return L(l,2)})));if(0>a||100<a)return null;b=.65*this.s+.35*a;var d=UZ(p0,b),e=c,f=!1,g=!1,h=!1;null!==d&&(f=p0[this.m][0]<p0[d][0],d===this.m&&(e=this.j),g=8E3<qR(c,e),h=20<=b);return{fractionLost:a,status:d,Za:e,ib:f,Ca:g,vb:h,Xk:b}};
k.rb=function(a){var b=a.status,c=a.Ca,d=a.vb;if(a.ib||c){a=void 0;switch(b){case "lcN5Wd":a=4035;break;case "QIiD3":a=4032;break;case "ucYu5c":a=4033;break;case "rBGRnf":a=4034}a&&d_(this,a)}d?b_(this,4237):c&&c_(this)};k.jb=function(a){var b=a.status,c=a.Za;this.s=a.Xk;null!==b&&b!==this.m&&(this.m=b,this.j=c)};k.Xa=function(a){return[a.fractionLost]};var q0={},p0=(q0.lcN5Wd=[-1,5],q0.QIiD3=[5,10],q0.ucYu5c=[10,20],q0.rBGRnf=[20,Infinity],q0);var r0=function(a,b,c){T.call(this);var d=this;this.g=new lL(this);this.F=nL(this.g);this.G=nL(this.g);this.K=nL(this.g);this.H=nL(this.g);this.l=this.j=this.h=this.m=!1;this.D=new f0(a,b);this.N(this.D);this.D.h.attach(function(e){var f=e.oc,g=e.vb,h=e.Ca;e=g&&!d.m;h=!g&&h&&d.m;(e||h)&&d.g.V(d.F,{oc:f,Sh:g});e?d.m=!0:h&&(d.m=!1)},this);this.o=new i0(a,b,c);this.N(this.o);this.o.h.attach(function(e){var f=e.Cm,g=e.vb,h=e.Ca;e=g&&!d.h;h=!g&&h&&d.h;(e||h)&&d.g.V(d.G,{Jr:f,EK:!g});e?d.h=!0:h&&(d.h=!1)},
this);this.s=new l0(a,b);this.N(this.s);this.s.h.attach(function(e){var f=e.Dm,g=e.vb,h=e.Ca;e=g&&!d.j;h=!g&&h&&d.j;(e||h)&&d.g.V(d.K,{Jr:f,HK:!g});e?d.j=!0:h&&(d.j=!1)},this);this.C=new o0(a,b);this.N(this.C);this.C.h.attach(function(e){var f=e.fractionLost,g=e.vb,h=e.Ca;e=g&&!d.l;h=!g&&h&&d.l;(e||h)&&d.g.V(d.H,{fractionLost:f,nt:g});e?d.l=!0:h&&(d.l=!1)},this)};u(r0,T);var s0=function(a,b){$Z.call(this,a,b,"realtime.media.stats.emitters.monitors.videoreceived.DelayMonitor",{name:"recentVideoDelay",ab:["Time Since Call Start","Max Video Delay (ms)"]});this.j=Y();this.reset()};u(s0,$Z);k=s0.prototype;k.reset=function(){this.m="lcN5Wd";this.j=Y();e_(this)};
k.Wa=function(a,b){var c=Y();if(15>b)return this.j=c,null;a=a.filter(function(h){return Oa(h.F)}).map(function(h){return{delay:L(h,89),qg:h.j}}).filter(function(h){var l=h.delay;h=!!h.qg;return"number"===typeof l&&0<l&&9E4>l&&h}).map(function(h){return Math.min(h.delay,h.qg)});a=Math.max.apply(Math,[].concat(q(a),[-1]));if(0>a)return null;b=UZ(t0,a);var d=c,e=!1,f=!1,g=!1;null!==b&&(e=t0[this.m][0]<t0[b][0],b===this.m&&(d=this.j),f=1E4<qR(c,d),g=1E3<a);return{Ch:a,status:b,Za:d,ib:e,Ca:f,vb:g}};
k.rb=function(a){var b=a.status,c=a.Ca;if(a.ib||c)"lcN5Wd"===b?d_(this,4012):"CNusmb"===b&&d_(this,4011)};k.jb=function(a){var b=a.status;a=a.Za;null!==b&&b!==this.m&&(this.m=b,this.j=a)};k.Xa=function(a){return[a.Ch]};var u0={},t0=(u0.lcN5Wd=[-Infinity,1E3],u0.CNusmb=[1E3,Infinity],u0);var v0=function(a,b){T.call(this);var c=this;this.g=new lL(this);this.l=this.g.signal();this.o=nL(this.g);this.m=nL(this.g);this.h=!1;this.j=new s0(a,b);this.N(this.j);this.j.h.attach(function(d){var e=d.vb,f=d.Ca;d={Ch:d.Ch};c.g.V(c.l,d);e&&!c.h?(c.g.V(c.o,d),c.h=!0):!e&&f&&c.h&&(c.g.V(c.m,d),c.h=!1)},this)};u(v0,T);var x0=function(a,b,c,d,e){T.call(this);this.g=new w0(b);this.o=new v_(a,this.g.j,1E3,function(){return e()});this.N(this.o);this.D=new F_(a,this.g.l);this.N(this.D);this.C=new G_(a,this.g.l,c);this.N(this.C);this.j=new g_(a,this.g.o);this.N(this.j);this.G=new x_(a,this.g.h);this.N(this.G);this.Ag=new B_(a,this.g.o);this.N(this.Ag);this.network=new L_(a,this.g.D);this.N(this.network);this.l=new k_(a,this.g.h);this.N(this.l);this.L=new e0(a,this.g.C);this.N(this.L);this.R=new r0(a,this.g.G,1E3);this.N(this.R);
this.W=new v0(a,this.g.F);this.N(this.W);this.h=new h_(a,this.g.j);this.N(this.h);this.m=new m_(a,this.j,this.l,this.h);this.N(this.m);this.s=new D_(a,this.g.l);this.N(this.s);this.K=new H_(a,this.g.h);this.N(this.K);this.F=new I_(a,this.g.s);this.N(this.F);this.H=new C_(a,this.g.j,1E3);this.N(this.H)};u(x0,T);
var w0=function(a){T.call(this);var b=this;this.g=new lL(this);this.m=0;this.h=this.g.signal();this.D=this.g.signal();this.o=this.g.signal();this.j=this.g.signal();this.C=this.g.signal();this.F=this.g.signal();this.l=this.g.signal();this.G=this.g.signal();this.L=this.g.signal();this.s=this.g.signal();this.H=Y();this.K=0;a.attach(function(c){c=c.cb;var d=Math.round(qR(Y(),b.H)/100)/10;b.K=d;b.m++;b.g.V(b.h,{data:c,Kc:d,sequenceNumber:b.m});d=nba(c);var e=d.ir,f=d.Av,g=d.Cv,h=d.Dv,l=d.Pv,p=d.Qv,r=d.Rv;
y0(b,b.D,d.Bv);y0(b,b.o,e);y0(b,b.j,f);y0(b,b.C,g);y0(b,b.F,h);y0(b,b.l,l);y0(b,b.G,p);y0(b,b.L,r);c=oba(c);null!==c&&y0(b,b.s,c)},this)};u(w0,T);
var y0=function(a,b,c){(!Array.isArray(c)||0<c.length)&&a.g.V(b,{data:c,Kc:a.K,sequenceNumber:a.m})},nba=function(a){var b=[],c=[],d=[],e=[],f=[],g=[],h=[],l=[];gF(a).forEach(function(p){switch(xF(p)){case 1:b.push(p);ml(p,59)?e.push(p):2==tF(p)?f.push(p):1==tF(p)&&d.push(p);break;case 0:ml(p,59)?h.push(p):2==tF(p)?l.push(p):1==tF(p)&&g.push(p);break;case 2:c.push(p)}});return{Bv:b,ir:c,Av:d,Cv:e,Dv:f,Pv:g,Qv:h,Rv:l}},oba=function(a){return iF(a).find(function(b){return 1==(L(b,2)&1)})||null};var z0=function(a,b){pv.call(this);this.l=b;this.g=new X(this);this.N(this.g);this.g.removeAll();this.g.listen(a,"sa",this.j)};u(z0,pv);z0.prototype.j=function(a){var b=this.l,c=JSON.parse(a.data);c=new AJ(c);c=R(c,yJ,1);D(b.u,"handlePushNotification invoked, batch size: "+c.length);c.forEach(b.g,b);a=JSON.parse(a.data);a=R(new AJ(a),yJ,1);0!=a.length&&1==a.length&&Hb(a,this.h,this)};
z0.prototype.h=function(a){var b=Q(a,nB,1);b&&L(b,3);a=Q(a,xJ,2);if(null!=a)for(var c=0;c<SM.length&&(b=SM[c].Rb.call(a),null==b);c++);};function A0(a){(a=void 0===a?"":a)&&(a+="_");return a+we()};var E0=function(a,b,c){X.call(this);var d=this;this.T=Wf("realtime.media.call.BaseCall");this.pa=a;this.ob=b;this.m=this.ob.g;this.oa=this.ta=this.contentType=null;this.tm.bind(this);this.getInfo=B0(this,this.qm.bind(this));this.rm.bind(this);this.getSelf=B0(this,this.Kv.bind(this));this.fc=new QZ;this.onConnect=this.fc.g;this.xb=void 0;this.Ha=bt();this.cg=new QZ;this.onDisconnect=this.cg.g;this.me=void 0;this.Ya=new QZ;this.eg=this.Ya.g;this.h=new QZ;this.gb=this.h.g;this.hc=new QZ;this.fa=this.hc.g;
this.eb=[];this.xc=c||A0(L(this.m,2));this.ka=new JZ("F75qrd",this);this.ka.Gg(2);this.j=new lL(this);this.zc=this.j.signal();this.lk=this.j.signal();this.wc=this.j.signal();this.Yf=this.j.signal();this.dg=this.j.signal();this.bg=nL(this.j);this.jh=nL(this.j);this.nk=nL(this.j);this.j.V(this.nk,{enabled:!1});this.zj=new x0(a,this.dg,this.bg,this.jh,function(){return NY(d.ya)});this.N(this.zj);this.Sj=this.j.signal();this.fg=this.j.signal();W(a,BK).then(function(e){var f=d.xc;f!==e.g&&(e.g?e.h=Us(f):
e.j.resolve(f),e.g=f,e.M(new C0(f)))});W(a,zK).then(function(e){var f={Qg:function(g){return d.Mc(g)},Rg:function(){}};$M(e,f);ts(d,function(){return OZ(d.onDisconnect,function(){Zb(e.j,f)})})});this.Zc=new D0(this);ZS(this.Zc,this.xc).o="jid";this.nd=new QZ;this.pb=this.nd.g;this.Bc=new QZ;this.kb=this.Bc.g;this.vh=new TZ;this.N(this.vh);this.ne=new TZ;this.N(this.ne);this.ya=new GY(a,b,this.vh.g,this.ne.g,this.xc);this.N(this.ya);this.gg=new QZ;this.ya.Ya.da.then(function(e){return e.h.Hm()}).then(function(){return d.gg.resolve(!0)});
this.rd=new Uaa;naa(this.ya,function(e){return Waa(d.rd,e)});this.L=new Map;saa(this.ya,function(e){var f=e.Y(),g=[].concat(q(d.L.keys())).find(function(h){return h.fa.get()==f});return g&&"v"==e.Ga&&(e=new IO("",e.getId(),e.Ga,e.getContent(),e.getState(),e.He,e.ld&&cc(e.ld)),g=g.ya.Na(e))?g:null});(new QZ).resolve(this.ya);this.Sa=0;this.listen(this.ya,WS,function(e){return d.j.V(d.Yf,{message:e.message})});this.listen(this.ya,"T",function(e){return d.j.V(d.dg,{cb:e.cb})});this.listen(this.ya,"ra",
function(e){return d.j.V(d.Sj,{fa:e.fa,data:e.data,KK:RU(e)})});this.listen(this.ya,aT,function(e){return d.j.V(d.fg,{Pc:e.Pc,vc:e.vc,removed:e.removed})});this.listen(this.ya,"aa",this.Kj);pba(this);this.qh=new QZ;this.sessionId=this.qh.g;W(a,DK).then(function(e){return qba(e,d)});this.wb=!1;this.Nc=this.Aa=this.Ba=-1;TR(this,this.sg());rba.forEach(function(e){return e(d)})};u(E0,X);
var sba=function(a){var b;return Ca(function(c){if(1==c.g)return a.oa?c.bb(2):v(c,a.Qm(),3);2!=c.g&&(b=c.h,a.oa||(a.oa=b(),a.N(a.oa)));return c.return(a.oa)})};E0.prototype.Kv=function(){var a=this,b,c,d;return Ca(function(e){switch(e.g){case 1:return v(e,sba(a),2);case 2:return b=e.h,v(e,a.fa,3);case 3:c=e.h;case 4:return(d=b.get(c))?e.return(d):v(e,b.h.next(a),4)}})};var B0=function(a,b){return wc(function(){var c;return Ca(function(d){if(1==d.g)return v(d,b(),2);c=d.h;a.N(c);return d.return(c)})})};
E0.prototype.ra=function(a){this.H=a instanceof wT?{Ui:a}:Object.assign({},a);Zf(this.T,"Starting the media session.");this.ka.Gg(16);a=this.H;var b=this.H.Ui;if(b.jl){var c=this.m.bc();b=b.ja();b.Si=c}c=this.m.Lh();null!=c&&(b=b.ja(),b.Zi=c);this.H.wg&&kf&&(c=b.ja(),c.af=!1,b=c);this.H.wK&&(c=b,b=b.kg.ja(),b.h=!1,b=b.ja(),b.g=!1,b=b.ja(),b.l=!1,b=b.ja(),b.j=!1,b=b.ja(),b.m=!1,b=CT(c,b));Object.assign({},this.H).qt&&(c=b.ja(),c.jp=!1,c=xT(c).ja(),c.Mi=null,b=c);a.Ui=b;a=this.ya;c=this.H.Ui;if("INITIAL"!=
a.getState())a=!1;else{b=c.rf()&&jf&&Qp(73)&&!AR(xR("Qb5Zab"));c=c.ja();c.Ki=b;b=c.ei&&c.rf()&&!AR(xR("b3GUjf"));c=c.ja();c.ei=b;b=c.qf||AR(xR("r2N8Gc"));c=c.ja();c.qf=b;b=c.Lk||AR(xR("Jd3rO"));c=c.ja();c.Lk=b;b=c.Ii&&!AR(xR("n0TZ4"));c=c.ja();c.Ii=b;b=jf&&Qp(75)?c.jg:0;c=c.ja();c.jg=b;b=BR(xR("tvRQLd"),-1);c=c.ja();c.ti=0<=b;c.ti&&(c=c.ja(),c.Df=b);c.Ld&&"low"!==c.Ld||c.Hd&&"low"!==c.Hd||!AR(xR("Yp6mEf"))||(c=ET(DT(c,"high"),"high"));c.qf&&XY(a,5455);OR&&(b=OR,void 0!==b.h&&(b=!b.h,c=c.ja(),c.ll=
b));b=a.F;var d=new XK({Le:bC,Je:[],Ke:[],Re:[bC.prototype.j],Se:[bC.prototype.o],Oe:KH,Me:[],Ne:[],Pe:[KH.prototype.j],Qe:[KH.prototype.o]}),e=new rO(eN(a.L,b)),f=new nN(b.o,"m");b=new wN(Q(b,IL,13),[],d,e,f,b.D);a.R=b;a.N(a.R);b=c;yW(a.g,"Updating default options to: "+xs(b.xa()));a.C=b;if(null==a.h||id(a.h))a.h=a.C.Rc;null==a.h||id(a.h)||a.La.resolve(a.h);a.j=ZY(a);null==a.j?(a.g.error("Failed to create the cloud session."),a.stop(16,"Failed to create cloud session."),a=!1):(Gaa(a,c),HY(a,"STARTING"),
a=!0)}a?this.Ya.resolve(null):this.Ya.reject("Failed to create session.")};
E0.prototype.sg=function(){var a=this,b=null;this.onDisconnect.then(function(c){return b=c});return{callDuration:function(){var c=void 0===a.xb?0:(a.me||Y().g)-a.xb;c=new Date(c);return te(c.getUTCHours(),2)+":"+te(c.getUTCMinutes(),2)+":"+te(c.getUTCSeconds(),2)},callState:function(){return a.getState()},endCause:function(){return b},hangoutId:function(){return a.gb.get()},pid:function(){return a.fa.get()},plid:function(){return a.xc},sessionId:function(){return F0(a)}}};
E0.prototype.aa=function(){Zf(this.T,"Disposing call.");this.disconnect(0);this.L.forEach(function(a){return us(a)});X.prototype.aa.call(this)};E0.prototype.getState=function(){return this.Sa};
var G0=function(a,b){b!=a.Sa&&(D(a.T,"Call state changed from "+a.Sa+" to "+b),a.Sa=b,a.j.V(a.wc,void 0))},F0=function(a){return a.ya.j&&a.ya.j.qb()},H0=function(a,b,c){PZ(a.fa)||(a.h.resolve(b),a.hc.resolve(c))},I0=function(a,b,c,d){D(a.T,"triggerConnected() called. HangoutId: "+c+" ParticipantId: "+d);H0(a,c,d);var e=a.sm();a.N(e);a.nd.resolve(e);a.listen(e,"B",a.ph);sN(a,e,"B",function(){return a.fg.attach(function(){return a.ph()},a)});e=new qZ(e,a.ya);a.Bc.resolve(e);a.N(e);a.xb=Y().g;b.resolve();
a.fc.resolve(null);G0(a,2);a.ka.Gg(25);a.ya.connect(c,d,a.Zc);a.N(new z0(a.ya,a.m.o,a.m.D));D(a.T,"Call connected")};E0.prototype.N=function(a){a=X.prototype.N.bind(this,a);PZ(this.onDisconnect)?a():this.onDisconnect.then(a,a)};var J0=function(a,b){a.eb=cc(b);taa(a.ya,a.eb);a.pb.then(function(c){c.o(a.eb)})};
E0.prototype.disconnect=function(a){if(3==this.getState()||4==this.getState())return D(this.T,"disconnect() skipped, already disconnecting."),this.onDisconnect;a=K0.has(a)&&this.ya.sa?K0.get(a):a;D(this.T,"disconnect() called. Endcause: "+a);this.me=Y().g;var b=2==this.getState();G0(this,3);this.ya.stop(a);this.bh(b,a);return this.onDisconnect};
E0.prototype.bh=function(a,b){D(this.T,"triggerDisconnected(). Endcause: "+b);a=new L0(b);this.h.reject(a);this.hc.reject(a);this.nd.reject(a);this.Bc.reject(a);this.fc.reject(a);this.Ya.reject(a);this.gg.reject(a);this.cg.resolve(b);G0(this,4)};E0.prototype.Yh=function(a){if(3==this.getState()||4==this.getState())return D(this.T,"addCapture() failed, because we are disconnecting"),!1;var b=paa(this.ya,a);if(b)switch(a.h.Ga){case "a":this.j.V(this.bg,a);break;case "v":this.j.V(this.jh,a)}return b};
var pba=function(a){Ca(function(b){a.Yf.attach(function(c){"render first video frame"===c.message&&a.ka.Gg(6,809)});b.g=0})};E0.prototype.Kj=function(a){a.target==this.ya?"STOPPED"==a.state?(D(this.T,"Disconnect received from session. Endcause: "+a.Ib),this.disconnect(a.Ib)):"INPROGRESS"==a.state&&(this.ka.Gg(5),this.j.V(this.lk,void 0)):"STARTING"==a.state&&(a=a.target.h.g,PZ(this.sessionId)?this.Gh(a):this.qh.resolve(a))};
E0.prototype.rc=function(){this.ta||(Object.assign({},this.H).qt||He||AR(xR("hnkCOb"))?this.ta=new LZ(this):this.ta=new MZ(this),this.N(this.ta));return this.ta};E0.prototype.ph=function(){var a=this;this.wb||(this.wb=!0,Ks(function(){a.wb=!1;var b=a.pb.get(),c=new Map;a.eb.forEach(function(d){(d=b.ze(d))&&Array.from(d.g).forEach(function(e){var f=e.He;"a"==e.Ga&&null!=f&&1!=f&&(e=a.ya.Na(e))&&c.set(e,f)})});raa(a.ya,c)}))};
E0.prototype.Mc=function(a){a=bM(a);var b=this.gb.get();null!=b&&O(a,3,b);b=this.fa.get();null!=b&&O(a,4,b);b=F0(this);null!=b&&O(a,10,b);b=this.ya.j&&this.ya.j.h.g;null!=b&&O(a,2,b)};
var tba=function(a,b){(b=iF(b).find(function(c){return!!(L(c,2)&1)}))?(a.Ba=L(b,5),a.Aa=L(b,7),a.Nc=L(b,3)):(a.Ba=-1,a.Aa=-1,a.Nc=-1)},uba=function(a,b){if(b=iF(b).find(function(f){return!!(L(f,2)&1)})){var c=L(b,5),d=L(b,7),e=L(b,3);[].concat(q(a.L.keys())).forEach(function(f){-1!=c&&-1!=f.Ba&&(c+=f.Ba);-1!=d&&-1!=f.Aa&&(d+=f.Aa);-1!=e&&(e=Math.max(e,f.Nc))});O(b,150,c);O(b,151,d);O(b,153,e)}};E0.prototype.g=function(a){W(this.pa,zK).then(function(b){return b.g(a)})};
var O0=function(a,b,c){return a.getState()!=b?(C(a.T,"Unexpected state while in "+c+": "+a.getState()+" != "+b),new M0(302,new N0(b,a.getState()))):null},vba=function(a){var b=aN(a.m),c=Q(b,YA,2);O(c,4,a.xc);S(b,2,c);return b},rba=[],N0=function(){var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack)};u(N0,Error);var L0=function(a){var b=Error.call(this,"DisconnectedError, EndCause = "+a);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.Ib=a};u(L0,Error);
var D0=function(a){YS.call(this);this.w=a};u(D0,YS);D0.prototype.m=function(a){var b=this;YS.prototype.m.call(this,a);var c=0<this.w.L.size?2:1;if(a=Q(a,GE,4))O(a,170,c),(R(a,IE,5)||[]).forEach(function(d){tba(b.w,d);0<b.w.L.size&&uba(b.w,d)})};var M0=function(a,b){var c=Error.call(this,"startupCode: "+a+", error = "+yf(b));this.message=c.message;"stack"in c&&(this.stack=c.stack);this.pw=a;this.we=b};u(M0,Error);var K0=new Map([[63,124],[0,123]]);var P0=function(a,b,c){$Q.call(this);this.h=a;this.m=c;this.g=new Map;this.l=new UQ(!0);this.l.D=this;this.s=new X(this);this.N(this.s);this.s.listen(this.m,["Z","aa"],this.C);b.forEach(this.j,this)};u(P0,$Q);var wba=function(a,b,c){return new P0(a,b,c)};P0.prototype.j=function(a){""==a.Y()&&(a.j=this.h);this.l.add(a)};P0.prototype.ze=function(a){return""==a||a==this.h?this.l:this.g.get(a)||null};
P0.prototype.o=function(a){var b=this,c=new Set;a.forEach(function(d){if(d!=b.h&&(c.add(d),!b.g.has(d))){var e=new UQ;e.D=b;b.g.set(d,e);b.M(new ZQ("M",d,e))}});this.g.forEach(function(d,e){c.has(e)||(b.g.delete(e),b.M(new ZQ("N",e,d)))});this.C()};
P0.prototype.C=function(){var a=this,b=new Map;this.m.j.m.concat(laa(this.m)).forEach(function(c){var d=c.Y()||a.h,e=c.za();e=d+"/"+e;b.has(e)?b.get(e).push(c):(b.set(e,[c]),c=a.ze(d),null==c&&(c=new UQ,a.g.set(d,c),a.M(new ZQ("M",d,c))))});b.forEach(function(c){var d=c.find(function(p){return!p.getInfo().lc()})||c[0],e=d.getInfo();c=e.ia();var f=d.za(),g=d.Y()||a.h,h=e.lc()?"mu":"li",l=a.ze(g);d=VQ(l,c,f,g);null==d?(d=new IO(g,f,c,void 0,h),l.add(d)):KO(d,h);e=e.Wd();"v"==c&&JO(d,e?"ca":"sc");LO(d,
e)});this.g.forEach(function(c){Array.from(c.g).forEach(function(d){b.has(xba(d.Y(),d.getId()))||c.remove(d)})})};var xba=function(a,b){return a+"/"+b};var Q0=function(a){K(this,a,0,-1,yba,null)};y(Q0,J);var R0=function(a){K(this,a,0,-1,null,null)};y(R0,J);var S0=function(a){K(this,a,0,-1,null,null)};y(S0,J);var yba=[5,7];k=Q0.prototype;k.ss=function(){return M(this,1,"")};k.bw=function(a){return O(this,1,a)};k.dt=function(){return null!=L(this,1)};k.Mb=function(){return M(this,2,"")};k.Eu=function(a){return O(this,2,a)};k.Au=function(){return null!=L(this,2)};k.yu=function(){return M(this,3,"")};k.Fu=function(a){return O(this,3,a)};
k.et=function(){return null!=L(this,3)};k.xu=function(){return M(this,4,"")};k.Du=function(a){return O(this,4,a)};k.ct=function(){return null!=L(this,4)};k.zu=function(){return Q(this,R0,6)};k.Gu=function(a){return S(this,6,a)};k.Bu=function(){return null!=L(this,6)};k.Rr=function(){return Q(this,S0,8)};k.Zv=function(a){return S(this,8,a)};k.Hs=function(){return null!=L(this,8)};k.wu=function(){return M(this,9,"")};k.Cu=function(a){return O(this,9,a)};k.Gs=function(){return null!=L(this,9)};var T0=function(a){this.g=a};T0.prototype.update=function(a,b,c){var d=!1;try{if(this.g.has.call(b)){var e=this.g.get.call(b);e!==this.g.get.call(a)&&(this.g.set.call(a,e),d=!0,c&&this.g.signal&&c.add(this.g.signal,e))}}catch(f){As(f)}return d};function U0(a,b,c,d){return c.reduce(function(e,f){return f.update(a,b,d)||e},!1)}function V0(a){return new T0(a)};var W0=Q0.prototype,X0=function(a){T.call(this);var b=this;this.h=new Q0;this.g=new lL(this);this.j=nL(this.g);this.o=nL(this.g);this.m=nL(this.g);this.l=[V0({has:W0.dt,get:W0.ss,set:W0.bw}),V0({has:W0.Au,get:W0.Mb,set:W0.Eu}),V0({has:W0.et,get:W0.yu,set:W0.Fu}),V0({has:W0.ct,get:W0.xu,set:W0.Du,signal:this.o}),V0({has:W0.Bu,get:W0.zu,set:W0.Gu}),V0({has:W0.Hs,get:W0.Rr,set:W0.Zv}),V0({has:W0.Gs,get:W0.wu,set:W0.Cu,signal:this.m})];this.g.V(this.j,this.h);a.ec.attach(function(c){var d=c.g,e=c.j,f=
new tL(b.g);c=U0(b.h,c.h,b.l,f);d&&(c=!0,O(b.h,7,d||[]));e&&(c=!0,wl(b.h,5,e));c&&f.add(b.j,b.h.clone());f.V()})};u(X0,T);var Y0=function(a){K(this,a,0,-1,null,null)};y(Y0,J);Y0.prototype.Ia=function(){return M(this,2,0)};Y0.prototype.tg=function(){return M(this,3,"")};var Z0=function(a){K(this,a,0,-1,zba,null)};y(Z0,J);var zba=[1];var $0=function(a,b,c){var d=a.signal();b.attach(function(e){c(e)&&a.V(d,e)})},a1=function(a,b,c,d){d=void 0===d?function(e){return e}:d;return c.attach(function(e){a.V(b,d(e))},a)},b1=function(a,b,c,d){d=void 0===d?function(e){return e}:d;xL(c,function(e){a.V(b,d(e))},a)};var c1=function(a){T.call(this);this.controller=a;this.g=new lL(this);this.Mg=nL(this.g);this.h=nL(this.g);this.g.V(this.Mg,new Z0);b1(this.g,this.Mg,this.controller.Mg);b1(this.g,this.h,this.Mg,Aba)};u(c1,T);c1.prototype.Tl=function(a){return this.controller.Tl(a)};function Bba(a){return 3===a.Ia()||2===a.Ia()}function Aba(a){return R(a,Y0,1).filter(Bba)};var e1=function(a,b,c,d){E0.call(this,a,b,d);var e=this;this.Ha.resolve(!1);this.C=!1;this.G=new QZ;this.l=this.G.g;this.Ma=null;this.Z=!1;this.W=new QZ;this.hb=this.W.g;this.hb.then(function(f){f.onChange.attach(function(){return d1(e,f)},e);d1(e,f)});this.sa=new QZ;this.Ve=this.sa.g;this.D={};this.Da=this.F=this.s=null;this.o={gb:"",fa:"",cookie:null};this.K=null;W(a,DK,!1).then(w(function(f){this.K=f},this));c&&this.ra(c)};u(e1,E0);
var d1=function(a,b){J0(a,b.get().map(function(d){return d.Y()}));var c=a.fa.get();c&&(b=!!b.get().find(function(d){return d.Y()===c}),a.Z&&!b?a.disconnect(21):!a.Z&&b&&(a.Z=!0))};
e1.prototype.mh=function(){var a=void 0===a?{}:a;var b=O0(this,0,"preJoin");if(b)return Vs(b);var c=a.name;a=a.mediaType;if(c){a=this.pa;b=this.m;if(id(c))c=[];else{var d=/([^/]*)\/(.*)/.exec(c);c=d?d.slice(1):[c]}d=c;if(0==d.length)c=new vB,a=zO(a,b,c);else if(1==d.length)a=Us(xO(a,b,d[0]));else{c=new GB;if(-1==d[0].indexOf(".")){var e=new rB;e=O(e,2,d[1]);d=O(e,1,d[0]);S(c,2,d)}else e=new EB,e=O(e,1,d[1]),d=O(e,2,d[0]),S(c,4,d);a=AO(a,b,c,6E5)}}else if(a)b=this.pa,c=this.m,d=new vB,d=O(d,2,7),a=
O(d,14,a),a=zO(b,c,a);else return Us();return this.Ma=a};
e1.prototype.connect=function(a,b){return this.eg.then(function(){D(this.T,"connect() was called");if(0!=this.getState())return C(this.T,"connect() failed. Not in INITIALIZED. State: "+this.getState()),Vs(new N0(0,this.getState()));var c=bt();G0(this,1);if("string"===typeof a){Zf(this.T,"Skipping Hangout resolution");var d=xO(this.pa,this.m,a);f1(this,c,d,b||null)}else a?Cba(this,c,a,b):c.reject(Error("Can only connect without params for secondary calls"));return c.da},void 0,this)};
var Dba=function(a){var b,c;return Ca(function(d){if(1==d.g)return v(d,a.Ma,2);b=d.h;c=BN(b.l).qa()||"";return d.return(Promise.resolve(wO(a.pa,a.m,[c],hL(),fL,"j","HangoutParticipant")))})},Cba=function(a,b,c,d){Zf(a.T,"Resolving Hangout");c.then(function(e){f1(this,b,e,d||null)},function(e){C(this.T,"Hangout resolve failed, reverting to INITIALIZED state");G0(this,0);b.reject(new M0(306,e))},a)},f1=function(a,b,c,d){var e=BN(c.l).qa();Zf(a.T,"connectToHangout(). HangoutId: "+e);1!=a.getState()?
(C(a.T,"connectToHangout() failed, not in CONNECTING state. State: "+a.getState()),b.reject(new M0(302,new N0(1,a.getState()))),us(c)):(a.o.gb=e,a.o.fa=d||"",a.F=av(hg(),"beforeunload",a.On,!1,a),a.Da=av(hg(),"unload",a.On,!1,a),a.La(e,d,b,c,0))};e1.prototype.Gh=function(){};
e1.prototype.La=function(a,b,c,d,e){this.sessionId.then(function(f){var g=wO(this.pa,this.m,[a],hL(),fL,"j","HangoutParticipant");Zf(this.T,"Adding participant");var h=g.nb();O(h,26,[f]);id(b||"")||h.j(b);Eba(this,h,c,d,g,e)},void 0,this)};
var Eba=function(a,b,c,d,e,f){e.add(b).then(function(g){var h={fr:g,NK:!1},l=h.fr[0],p=l.qa();g=l.Y();a.o.fa=g;var r=a.getState();if(1!=r){C(a.T,"add participant succeeded, but we are no longer CONNECTING. State: "+a.getState());h=302;if(63==a.s||3==r||4==r)h=219;c.reject(new M0(h,new N0(1,a.getState())));h=new zB;h.o(p);h.j(g);e.remove(h).then(a.Fh,null,a);us(d);us(e)}else D(a.T,"add participant succeeded"),10==M(l,17,0)?(D(a.T,"participant in knocking state"),30>f?(D(a.T,"will attempt again after delay"),
uv(1E3).then(w(a.La,a,p,g,c,d,f+1))):(D(a.T,"max knock attempt, failing join"),a.Nn(c,d,e,234))):(D(a.T,"success adding and not a knock result"),p=BN(d.l).qa(),a.G.resolve(d),a.W.resolve(e),a.N(d),a.N(e),a.Ob=h.Ve,I0(a,c,p,g),d.start(void 0,h.DK),e.start(void 0,h.hb))},w(a.Nn,a,c,d,e))};k=e1.prototype;
k.Nn=function(a,b,c,d){this.Fh();1==this.getState()?(C(this.T,"add participant failed, moving back to INITIALIZED state"),G0(this,0)):C(this.T,"add participant failed, but call already disconnected");us(b);us(c);a.reject(new M0(Fba(this,d),d))};k.sg=function(){var a=this;return Object.assign(E0.prototype.sg.call(this),{hangout:function(){return a.l.get()&&a.l.get().xa()},participants:function(){return a.hb.get()&&a.hb.get().xa()},mediaSources:function(){return a.Ve.get()&&a.Ve.get().xa()}})};
k.sm=function(){var a=this,b=yO(this.pa,this.m,this.gb.get());this.N(b);this.sa.resolve(b);b.start(void 0,this.Ob);b.onChange.attach(function(c){return Gba(a,c.vc)},this);return Haa(this.fa.get(),b,this.hb.get(),this.ya.s.concat().map(function(c){return c.h}),this.ya)};
k.bh=function(a,b){var c=this;this.s=b;this.o.cookie=this.m.j.j.g;var d=Us();if(a&&!this.C){D(this.T,"Removing participant on disconnect");d=new zB;d.o(this.gb.get());d.j(this.fa.get());var e={};e=(e.jYdIne=b,e);d=this.hb.get().remove(d,e,2).then(this.Fh,null,this)}et(d,function(){c.m.j.j.g=null;E0.prototype.bh.call(c,a,b)});xc(this.D,us);Hc(this.D);d=new L0(b);this.G.reject(d);this.W.reject(d);this.sa.reject(d);null!=this.l.get()&&this.l.get().stop();null!=this.hb.get()&&this.hb.get().stop();null!=
this.Ve.get()&&this.Ve.get().stop()};k.Yh=function(a){if(3==this.getState()||4==this.getState())return D(this.T,"addCapture() failed, because we are disconnecting"),!1;var b=this.D[a.h.getId()];if(b&&b.h.includes(a))return C(this.T,"HangoutCall.addCapture() failed because we already have this capture"),!1;b||(b=new RQ(this),this.D[a.h.getId()]=b);b.listen(a.h,["A","B","C","D"],b.C);b.h.push(a);TQ(b);return E0.prototype.Yh.call(this,a)};
k.Qm=function(){var a=this;return Ca(function(b){return b.return(W(a.pa,KK).then(function(c){return function(){return c(a)}}))})};k.tm=function(){var a=this,b;return Ca(function(c){b=new lL(a);return c.return(new c1({Mg:nL(b),Tl:function(){return Vs("unsupported")}}))})};k.qm=function(){var a=this,b;return Ca(function(c){b=new lL(a);return c.return(new X0({ec:nL(b)}))})};k.rm=function(){var a=this;return Ca(function(b){return b.return(W(a.pa,PK).then(function(c){return c(a)}))})};
k.Fh=function(){null!=this.F&&kv(this.F);null!=this.Da&&kv(this.Da)};
k.On=function(){this.Fh();var a=L(this.m,12),b=null!=this.s?this.s:63;if(null!=a){var c=new BD;O(c,5,b);var d=new zD;d.j(this.o.gb);id(this.o.fa)||d.o(this.o.fa);CD(c,[d]);c.setRequestHeader(vba(this));d=new El;S(d,3,this.o.cookie||this.m.j.j.g);c.O(d);c=c.va();d=(this.K?g1(this.K,this):[]).map(function(f){return f.va()});if(null!=navigator.sendBeacon){var e=new FormData;e.append("r",c);d.forEach(function(f){e.append("l",f)});this.C=navigator.sendBeacon(a,e)}this.C||(a=Tq(a,"r",c),a=Tq(a,"l",d),c=
Gv(Ev),c.open("GET",a,!1),c.send(null));this.C=!0}this.disconnect(b)};
var Fba=function(a,b){var c=null,d=null;try{c=b.response.Cb,d=c[0]}catch(f){}var e;"chparp"===d?(b=new WC(c),(c=b.getResponseHeader())&&(e=10==c.Ia()?Hba[L(b,4)]||209:Iba[c.Ia()])):"number"===typeof b&&(e=b);return void 0!==e?e:63==a.s||3==a.getState()||4==a.getState()?219:302},Gba=function(a,b){var c=a.fa.get(),d=b.filter(function(f){return f.Y()===c}),e=(b=a.ya.s.concat().find(function(f){return"a"===f.h.Ga}))&&b.h.getId();if(d=(d=e&&d.find(function(f){return f.za()===e}))&&Q(d,lC,6)&&L(Q(d,lC,
6),1))bZ(b),a.j.V(a.zc,{Jv:d}),a.g(990)},Hba={1:200,2:201,3:202,4:206,5:207,6:209,7:216,11:223,17:235,12:236,13:237,14:238,15:239,16:240},Iba={1:0,2:307,3:303,4:217,5:305,6:307,7:307,8:306,11:217};var i1=function(a,b,c){AU.call(this,a,c,1);var d=this;this.j=b;this.m=new X;this.N(this.m);this.m.listen(this.g,"J",function(){var e=d.g;var f=d.j;e=e.Ya?e.Na():SY(e,f);null!=e&&d.M(new h1(d.j,e))})};u(i1,AU);i1.prototype.o=function(){return this.j};var h1=function(a,b){U.call(this,"bb");this.sessionId=a;this.stream=b};u(h1,U);function Jba(){var a=Fe();return a&&a.mediaDevices&&a.mediaDevices.enumerateDevices?Us(a.mediaDevices.enumerateDevices()):Us([])}function Kba(a){var b=Fe();return b&&b.mediaDevices&&b.mediaDevices.getUserMedia?Us(b.mediaDevices.getUserMedia(a)):b&&b.webkitGetUserMedia?new Qs(function(c,d){b.webkitGetUserMedia(a,c,d)}):Vs("Missing getUserMedia API.")};var j1=function(a){this.deviceId=a.o;this.j=a.m;this.groupId=a.l;this.l=a.s;this.w=a.w};j1.prototype.equals=function(a){return a===this?!0:a&&this.deviceId===a.deviceId?ef?!0:"default"===this.deviceId||"communications"===this.deviceId?this.j===a.j&&this.groupId===a.groupId:!0:!1};j1.prototype.toString=function(){return"MediaSettings(deviceId="+this.deviceId+",deviceLabel="+this.j+",groupId="+this.groupId+")"};
j1.prototype.m=function(a){return void 0===a||a?{deviceId:{exact:this.deviceId}}:{mandatory:{sourceId:this.deviceId},optional:[]}};var k1=function(a){this.o=a?a.deviceId:null;this.m=a?a.j:null;this.l=a?a.groupId:null;this.s=a?a.l:null;this.w=a?a.w:0};k1.prototype.ha=function(){return new j1(this)};k1.prototype.j=function(a){this.l=a;return this};function Lba(a){a=a instanceof Error&&a.name;return"NotAllowedError"===a||"PermissionDeniedError"===a||"PermissionDismissedError"===a}function Mba(a){a=a instanceof Error&&a.name;return"NotReadableError"===a||"TrackStartError"===a}
function Nba(a){var b;if(b=Ae()){b=Wd;var c="";Zd("Windows")?(c=/Windows (?:NT|Phone) ([0-9.]+)/,c=(b=c.exec(b))?b[1]:"0.0"):ze()?(c=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,c=(b=c.exec(b))&&b[1].replace(/_/g,".")):Ae()?(c=/Mac OS X ([0-9_.]+)/,c=(b=c.exec(b))?b[1].replace(/_/g,"."):"10"):-1!=Wd.toLowerCase().indexOf("kaios")?(c=/(?:KaiOS)\/(\S+)/i,c=(b=c.exec(b))&&b[1]):Zd("Android")?(c=/Android\s+([^\);]+)(\)|;)/,c=(b=c.exec(b))&&b[1]):Zd("CrOS")&&(c=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,c=(b=
c.exec(b))&&b[1]);b=0<=vd(c||"",10.14)}if(!(b&&a&&a instanceof Error&&a.name))return!1;if(ce())if(0<=vd(fe(),73)){if("NotAllowedError"==a.name&&"Permission denied by system"==a.message)return!0}else{if("NotReadableError"==a.name)return!0}else if(be()&&"NotFoundError"==a.name)return!0;return!1};var l1=function(a){this.g=new rU(a)},Oba=m(["",""]);l1.prototype.error=function(a){this.g.Ra(Oba,a)};var Pba=m(["",""]);l1.prototype.J=function(a){this.g.J(Pba,a)};var Qba=m(["",""]),yW=function(a,b){a.g.g(Qba,b)},WY=m(["",""]);var m1=function(a,b,c){dP.call(this,b);this.ra=new l1("realtime.media.api.webrtc.Capture");this.Ma=new lL(this);this.pa=a;this.wb=W(a,AK).then();this.l=c;this.L=this.m=this.H=this.oa=null;this.s=new Set;this.W=new Map;this.G=this.ka=!1;this.ob=null;this.ta=this.Aa=!1;this.Da=this.La=this.Sa=this.R=null;this.Ha=!1;this.Eb=this.Ma.signal();this.Ya=AR(xR("nlZjzc"));this.Z=new Set;this.pb=[]};u(m1,dP);m1.prototype.aa=function(){this.stop();n1(this,null);this.s.clear();this.ob=null;dP.prototype.aa.call(this)};
m1.prototype.toString=function(){return"Capture(source="+this.h+" muted="+this.ka+" paused="+this.G+" deviceState="+this.j+" stream="+(this.m?this.m.id:null)+")"};m1.prototype.F=function(a){a&&(o1(this,"Stopping stream with id="+a.id),[].concat(q(a.getAudioTracks()),q(a.getVideoTracks())).forEach(function(b){lv(b);b.stop()}))};var p1=function(a){o1(a,"Starting media.");a.C("re");a.o().then(pc(a))};
m1.prototype.C=function(a){o1(this,"Updating device state to: "+a);var b=this.Nb();dP.prototype.C.call(this,a);"nd"===a&&n1(this,null);this.Nb()!==b&&(q1(this),this.Nb()?n1(this,null):this.o())};m1.prototype.getDeviceId=function(){return this.l.deviceId};m1.prototype.yn=function(){return this.ob};var SY=function(a,b){return a.m?a.W.get(b)||null:null};m1.prototype.Na=function(){return this.m};var lX=function(a,b,c){return new i1(a,b,c)};
m1.prototype.eb=function(a){o1(this,"Registering sessionId="+a+".");0===this.s.size&&this.resume();if(this.s.has(a))throw Error("Called registerSession() twice with the same sessionId='"+a+"'");this.s.add(a);this.m&&r1(this,a,this.m)};m1.prototype.Ba=function(a){o1(this,"Unregistering sessionId="+a+".");this.s.delete(a);var b=SY(this,a);this.F(b);this.W.delete(a);this.Z.delete(a);0>=this.s.size&&this.pause()};
m1.prototype.stop=function(){if("st"===this.j)return!1;o1(this,"Stopping.");n1(this,null);this.s.clear();this.C("st");return!0};var bZ=function(a){if("st"==a.j)return!1;s1(a,!0);return!0};m1.prototype.start=function(){p1(this)};m1.prototype.Nb=function(){switch(this.j){case "nd":case "ad":case "fa":return!0;default:return this.ka}};var s1=function(a,b){o1(a,"Setting mute state to mute="+b+".");var c=a.Nb();a.ka=b;c!=b&&(b?n1(a,null):a.o(),q1(a),a.M("H"))};
m1.prototype.pause=function(){this.G||"st"==this.j||(o1(this,"Pausing."),this.G=!0,n1(this,null))};m1.prototype.resume=function(){this.G&&"st"!=this.j&&(o1(this,"Resuming."),this.G=!1,this.o())};var q1=function(a){var b=a.h.getState(),c=a.Nb()?"mu":"li";b!==c&&(o1(a,"Update source state from "+b+" to "+c),KO(a.h,c))};
m1.prototype.o=function(a,b){var c=this;a=void 0===a?!0:a;b=void 0===b?!1:b;if(this.H)return ft(this.H,Ka).then(function(){return c.o(a,b)});var d=this.j;"fa"!=this.j&&"ad"!=this.j||this.C("re");if("re"!=this.j)return o1(this,"Skipping update usermedia while device in state="+this.j+"."),Us();if(this.G)return o1(this,"Skipping update usermedia because capture is paused."),Us();if("re"==d&&this.ka)return o1(this,"Skipping update usermedia because capture is muted."),Us();if(this.m&&this.oa&&this.oa.equals(this.l)&&
!this.Aa)return o1(this,"Skipping update usermedia because settings were unchanged and the track has not failed."),Us();if(this.l.l)return this.l.l==this.L?Us():t1(this,this.l.l);var e=Rba(this);if(!e)return this.ra.error("["+this+"] Attempting to update usermedia with null constraints."),Vs("Attempting to update usermedia with null constraints.");if(Gc(e))return o1(this,"Skipping update usermedia with empty constraints."),Us();var f=this.l;b&&n1(this,null);this.oa=f;var g=Sba++;o1(this,"Attempting to update usermedia with id="+
g+" settings="+this.l+" constraints="+Ea.JSON.stringify(e)+".");var h=this.h.Ga;"a"==h?this.g(4799):"v"==h&&this.g(4796);this.H=Kba(e).then(function(l){c.Da=null;c.Ha=!1;"a"==h?c.g(4800):"v"==h&&c.g(4797);u1(c);c.G||!c.l.equals(f)||"st"===c.j?(o1(c,"During update usermedia with id="+g+" capture settings changed to "+c.l+"."),c.F(l)):c.ka?(o1(c,"During update usermedia with id="+g+" capture was muted."),c.F(l)):(o1(c,"Update usermedia success with id="+g+"."),t1(c,l))},function(l){v1(c,"Error during update usermedia call with id="+
g+" constraints="+Ea.JSON.stringify(e)+": "+l+".");l&&(c.Da=l,Tba(c,h,l.name));Nba(l)?(u1(c),c.Ha=!0,"a"==h?c.g(5802):"v"==h&&c.g(5803),c.C("ad")):Lba(l)?(u1(c),c.C("ad")):Mba(l)&&a?null!==c.R?v1(c,"Ignore getUserMedia failure with id="+g+" as we are still in the failure delay period."):(v1(c,"Delaying transitioning capture to failure after unexpected getUserMedia failure with id="+(g+".")),c.oa=null,c.R=setTimeout(function(){c.R=null;v1(c,"getUserMedia still has not succeeded after delay. About to make one final explicit attempt.");
c.g(4578);c.o(!1,b)},2E3)):c.C("fa");throw l;});Uba(this,this.H);et(this.H,function(){o1(c,"Clearing pending getUserMedia request with id="+g+".");c.H=null});return this.H};
var Uba=function(a,b){var c=setTimeout(function(){a.Ma.V(a.Eb,void 0)},5E3);et(b,function(){clearTimeout(c)})},u1=function(a){null!==a.R&&(clearTimeout(a.R),a.R=null,o1(a,"Cancelling pending failure timer since getUserMedia eventually succeeded after delay."))},Rba=function(a){if(null==a.getDeviceId()||a.getDeviceId()===Kaa.id)return o1(a,"Return empty user media constraints with null deviceId."),{};var b={audio:!1,video:!1},c=a.h.Ga;switch(c){case "a":b.audio=a.l.m(!jf);break;case "v":b.video=a.l.m();
break;default:return a.ra.error("["+a+"] Invalid mediaType="+(c+".")),null}return b},t1=function(a,b){o1(a,"getUserMedia success for stream="+b.id+".");Xa();if(0==b.getAudioTracks().length&&0==b.getVideoTracks().length)return v1(a,"No media tracks for stream="+b.id+"."),Us();n1(a,null);[].concat(q(b.getAudioTracks()),q(b.getVideoTracks())).forEach(function(c){bv(c,"ended",a.xb,void 0,a);bv(c,["mute","unmute"],a.kb,void 0,a)});Vba(a);n1(a,b);a.kb();Wba(a,b);Xba(a,b);return Us()};m1.prototype.xb=function(){this.M("E")};
var Vba=function(a){!1!==a.Aa&&(a.Aa=!1,a.M("F"))};m1.prototype.kb=function(){var a=Yba(this);a!==this.ta&&(this.ta=a,this.M("G"))};var Yba=function(a){if(!a.L)return!1;a=[].concat(q(a.L.getAudioTracks()),q(a.L.getVideoTracks()));return 0!=a.length&&a.every(function(b){return b.muted})};m1.prototype.Fj=function(){return this.ta};
var Zba=function(a,b){var c=b.s;if(a.Ya&&c)if(b.h)a.Z.has(c)&&a.Na()&&(r1(a,c,a.Na()),a.Z.delete(c),a.M("J"));else if(b=SY(a,c))a.F(b),a.W.delete(c),a.Z.add(c)},o1=function(a,b){yW(a.ra,"["+a+"] "+b)},v1=function(a,b){a.ra.J("["+a+"] "+b)},n1=function(a,b){if(b!=a.L){var c=a.L;a.L=b;$ba(a,b?b.clone():null);a.F(c);a.pb.forEach(function(d){return a.F(d)});a.pb.length=0}},$ba=function(a,b){b!==a.m&&(a.W.forEach(a.F,a),a.W.clear(),a.Z.clear(),a.F(a.m),b&&a.s.forEach(function(c){r1(a,c,b)}),o1(a,"Stream changed with new stream="+
(b&&b.id)+"."),a.m=b,a.M("J"))},r1=function(a,b,c){c=c.clone();a.W.set(b,c)};m1.prototype.g=function(a){this.wb.then(function(b){b.g(a)})};
var Wba=function(a,b){b=b.getAudioTracks().map(function(c){return c.getSettings().echoCancellation}).filter(function(c){return"boolean"===typeof c});0!==b.length&&(b=b.some(function(c){return!c}),b!==a.Sa&&(a.Sa=b,a.g(b?4705:4706),o1(a,"echoCancellation="+!b)))},Xba=function(a,b){b=b.getAudioTracks();if(0!==b.length){var c=b.map(function(e){return e.getSettings().echoCancellationType}).filter(function(e){return e});if(0===c.length)a.g(5286),o1(a,"echoCancellationType=none (unknown)");else{b=jf&&Qp(74)?
new Map([["browser",5289],["system",5288]]):new Map([["browser",5287],["aec3",5289],["system",5288]]);var d=Array.from(b.keys());c=c.sort(function(e,f){return d.indexOf(f)-d.indexOf(e)})[0];a.La!=c&&(a.La=c,a.g(b.get(c)||5286),o1(a,"echoCancellationType="+c))}}},Tba=function(a,b,c){"a"==b?(a.g(4801),w1.has(c)?a.g(w1.get(c).audio):a.g(4471)):"v"==b&&(a.g(4798),w1.has(c)?a.g(w1.get(c).video):a.g(4943))},Sba=0,w1=new Map([["AbortError",{audio:4460,video:4936}],["NotAllowedError",{audio:4461,video:4937}],
["NotFoundError",{audio:4462,video:4938}],["NotReadableError",{audio:4463,video:4939}],["OverconstrainedError",{audio:4464,video:4940}],["SecurityError",{audio:4465,video:4941}],["TypeError",{audio:4466,video:4942}],["PermissionDeniedError",{audio:4475,video:4944}],["InvalidStateError",{audio:4476,video:4945}],["DevicesNotFoundError",{audio:4477,video:4946}],["ConstraintNotSatisfiedError",{audio:4478,video:4947}],["TrackStartError",{audio:4479,video:4948}],["MediaDeviceFailedDueToShutdown",{audio:4480,
video:4949}],["MediaDeviceKillSwitchOn",{audio:4481,video:4950}]]);var x1=function(a){this.width=a.j;this.height=a.h;this.frameRate=a.g};x1.prototype.toString=function(){return"VideoShape(width="+this.width+", height="+this.height+", frameRate="+(this.frameRate+")")};x1.prototype.toJson=function(){return{width:this.width,height:this.height,frameRate:this.frameRate}};x1.prototype.equals=function(a){return!!a&&this.width==a.width&&this.height==a.height&&this.frameRate==a.frameRate};var y1=function(){this.g=this.h=this.j=null};y1.prototype.ha=function(){return new x1(this)};
var z1=function(a,b){a.j=b;return a},A1=function(a,b){a.h=b;return a},B1=function(a,b){a.g=b;return a};var C1=function(a){j1.call(this,a);this.h=a.h;this.g=a.g};u(C1,j1);C1.prototype.equals=function(a){return j1.prototype.equals.call(this,a)&&a instanceof C1?this.h.equals(a.h)&&this.g.equals(a.g):!1};C1.prototype.toString=function(){return"VideoSettings(base="+j1.prototype.toString.call(this)+", minVideoShape="+(this.h+", maxVideoShape=")+(this.g+")")};
C1.prototype.m=function(){var a=j1.prototype.m.call(this);kf?(a.aspectRatio=16/9,a.height=this.g.height,a.width=this.g.width,a.frameRate=this.g.frameRate):a.advanced=[{frameRate:{min:this.h.frameRate}},{height:{min:this.h.height}},{width:{min:this.h.width}},{frameRate:{max:this.g.frameRate}},{width:{max:this.g.width}},{height:{max:this.g.height}},{aspectRatio:{exact:16/9}}];return a};var D1=function(a){k1.call(this,a);this.h=a?a.h:null;this.g=a?a.g:null};u(D1,k1);D1.prototype.ha=function(){return new C1(this)};var F1=function(a){K(this,a,0,-1,null,E1)};y(F1,J);var E1=[[1,2]];var G1=function(a){return(a=aca.exec(a))?a[1]:null},aca=/^(spaces\/[a-zA-Z0-9_-]+)\//;var H1=function(a){VH.call(this,a);this.o=this.D=null};u(H1,VH);H1.prototype.C=function(){return G1(this.cc())||this.D};H1.prototype.F=function(a){this.D=a;return this};var I1=function(a){K(this,a,0,-1,null,null)};y(I1,J);I1.prototype.j=function(){return L(this,1)};I1.prototype.D=function(a){return O(this,1,a)};I1.prototype.cc=function(){return L(this,2)};I1.prototype.o=function(a){return O(this,2,a)};var J1=function(a){K(this,a,0,-1,null,null)};y(J1,J);J1.prototype.j=function(){return L(this,1)};J1.prototype.o=function(a){return O(this,1,a)};/*

 Copyright (C) 2010 The Libphonenumber Authors.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/
var L1=function(a){X.call(this);var b=this;this.h=new lL(this);this.j=a;this.l=this.h.signal();this.D=this.h.signal();this.s=this.h.signal();this.m=this.h.signal();this.o=nL(this.h);this.j.then(function(c){b.listen(c,"w",function(){K1(b,c.F())})})};u(L1,X);L1.prototype.getId=function(){return this.g?this.g.j()||"":""};L1.prototype.Mb=function(){return this.g?this.g.Mb()||"":""};
L1.prototype.jd=function(a){var b=new PI;a&&P(b,1,a);var c=new VI;c.jd(b);return this.j.then(function(d){var e=d.nb();S(e,6,c);return JN(d,e)})};
var K1=function(a,b){var c=a.g;a.g=b;c=c&&fJ(c);var d=b&&fJ(b);b=new tL(a.h);var e=c&&M(c,3,"");d=d&&M(d,3,"");e!==d&&b.add(a.l,{sK:d});e=c&&R(c,SI,9)||[];d=(d=a.g&&fJ(a.g))&&R(d,SI,9)||[];mc(e,d)||b.add(a.D,{fL:d});e=c&&Q(c,QI,2);d=(d=a.g&&fJ(a.g))&&Q(d,QI,2);e!==d&&b.add(a.s,{XK:d});e=c&&M(c,8,"");d=(d=a.g&&fJ(a.g))&&M(d,8,"");e!==d&&b.add(a.m,{RK:d});c=(c=c&&c.rc())?M(c,1,"")||null:null;e=(e=(e=a.g&&fJ(a.g))&&e.rc())?M(e,1,"")||null:null;c!==e&&b.add(a.o,{WK:e});b.V()};var M1=function(a){K(this,a,0,-1,null,null)};y(M1,J);var bca=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=yk(b.g);ql(a,1,c,0);break;case 2:c=Gk(b);P(a,2,c);break;default:Ck(b)}return a};var N1=function(a){K(this,a,0,-1,cca,null)};y(N1,J);var cca=[7],dca=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=xk(b.g,pk);ql(a,2,c,0);break;case 3:c=b.g.w();ql(a,3,c,0);break;case 4:c=Ek(b);ql(a,4,c,!1);break;case 5:c=yk(b.g);ql(a,5,c,0);break;case 6:c=Gk(b);P(a,6,c);break;case 7:c=new M1;Dk(b,c,bca);xl(a,7,c,M1);break;default:Ck(b)}return a};N1.prototype.getDeviceId=function(){return M(this,1,"")};N1.prototype.dc=function(){return M(this,3,0)};var O1=function(a){K(this,a,0,-1,null,null)};y(O1,J);var eca=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Fk(b);rl(a,1,c);break;default:Ck(b)}return a};O1.prototype.getState=function(){return M(this,1,0)};var P1=function(a){K(this,a,0,-1,null,ul)};y(P1,J);var ul=[[1,2]];var S1=function(a){T.call(this);this.h=new lL(this);Q1(a);this.m=a.getDeviceId();M(a,2,0);this.j=a.dc();this.g=ol(a,4,!1);pl(a,5);R1(a);this.l=Y();this.onUpdated=this.h.signal()};u(S1,T);S1.prototype.update=function(a){var b=a.dc();return b>this.j?(this.j=b,this.g=ol(a,4,!1),R1(a),Y(),this.h.V(this.onUpdated,void 0),!0):!1};S1.prototype.getDeviceId=function(){return this.m};S1.prototype.isFinal=function(){return this.g};S1.prototype.getCreationTime=function(){return this.l};
var Q1=function(a){return a.getDeviceId()+"|"+M(a,2,0)},R1=function(a){R(a,M1,7).length?R(a,M1,7).map(function(b){return{text:M(b,2,""),confidence:pl(b,1)}}):M(a,6,"")&&(M(a,6,""),pl(a,5))};var T1=function(a,b){X.call(this);var c=this;this.h=new lL(this);this.D=this.h.signal();this.C=this.h.signal();this.o=this.h.signal();this.s=this.h.signal();this.j=new Map;this.m=a;this.l=!1;this.g=null;this.listen(this.m,"aa",this.dl);Vaa(b,function(d){if(!c.w()){var e=new WE;O(e,1,c.l);S(d,183,e)}})};u(T1,X);k=T1.prototype;k.aa=function(){U1(this);X.prototype.aa.call(this)};k.Yd=function(){return!He&&(!ef||Qp(71))};k.isEnabled=function(){return this.l};
k.setEnabled=function(a){this.w()||a===this.isEnabled()||(this.l=a,this.dl(),this.h.V(this.D,a))};k.dl=function(){var a=this.m.j,b=!!a&&fca.has(a.getState());!this.g||this.l&&b||U1(this);!this.g&&this.l&&b&&(this.g=gca(this,a))};
var gca=function(a,b){var c=b.vn("captions");c.m.attach(function(d){d=new zk(d.data);for(var e=new P1;Bk(d)&&!Ak(d);)switch(d.h){case 1:var f=new N1;Dk(d,f,dca);vl(e,1,f);break;case 2:f=new O1;Dk(d,f,eca);vl(e,2,f);break;default:Ck(d)}if(null!=L(e,1))if(d=Q(e,N1,1),e=Q1(d),f=a.j.get(e))f.update(d);else{d=new S1(d);for(a.j.set(e,d);100<a.j.size;)f=n(a.j.entries().next().value),e=f.next().value,f=f.next().value,a.j.delete(e),us(f);a.h.V(a.o,d)}else if(null!=L(e,2))d=Q(e,O1,2),2===d.getState()&&(a.setEnabled(!1),
a.h.V(a.C,!0)),a.h.V(a.s,d.getState());else throw Error("Received unknown data from MR");},a);et(c.h.da,function(){c===a.g&&(a.g=null,a.dl())});return c},U1=function(a){a.g&&(us(a.g),a.g=null,a.j.forEach(function(b){return us(b)}),a.j.clear())},fca=new Set(["STARTED","INPROGRESS","PAUSED"]);var V1=function(a){K(this,a,0,-1,null,null)};y(V1,J);V1.prototype.j=function(){var a=new Nk;var b=M(this,1,"");0<b.length&&H(a,1,b);b=Q(this,VH,2);null!=b&&I(a,2,b,uI);(b=ol(this,3,!1))&&E(a,3,b);return Rk(a)};var W1=function(a){K(this,a,0,-1,null,null)};y(W1,J);W1.prototype.j=function(){var a=new Nk;var b=this.getDeviceId();0<b.length&&H(a,1,b);return Rk(a)};W1.prototype.getDeviceId=function(){return M(this,1,"")};var X1=function(a){K(this,a,0,-1,null,null)};y(X1,J);X1.prototype.j=function(){var a=new Nk;var b=M(this,1,"");0<b.length&&H(a,1,b);return Rk(a)};var hca=function(a,b){return P(a,1,b)};var Y1=function(a){K(this,a,0,-1,ica,null)};y(Y1,J);var ica=[1];var Z1=function(a){K(this,a,0,-1,null,null)};y(Z1,J);Z1.prototype.j=function(){var a=new Nk;var b=Q(this,VH,1);null!=b&&I(a,1,b,uI);return Rk(a)};var jca={hd:"CreateMeetingDevice",de:V1.prototype.j,Sd:dI},kca={hd:"GetMeetingDevice",de:W1.prototype.j,Sd:dI},lca={hd:"ListMeetingDevices",de:X1.prototype.j,Sd:function(a){a=new zk(a);for(var b=new Y1;Bk(a)&&!Ak(a);)switch(a.h){case 1:var c=new VH;Dk(a,c,cI);xl(b,1,c,VH);break;default:Ck(a)}return b}},mca={hd:"UpdateMeetingDevice",de:Z1.prototype.j,Sd:dI};var $1=function(a){K(this,a,0,-1,null,null)};y($1,J);var a2=function(a,b){a=M(a,1,"");0<a.length&&H(b,1,a)};var b2=function(a){K(this,a,0,-1,null,null)};y(b2,J);b2.prototype.j=function(){var a=new Nk;var b=Q(this,MI,1);null!=b&&I(a,1,b,jJ);b=Q(this,$1,3);null!=b&&I(a,3,b,a2);b=M(this,4,"");0<b.length&&H(a,4,b);(b=ol(this,5,!1))&&E(a,5,b);return Rk(a)};var c2=function(a){K(this,a,0,-1,null,null)};y(c2,J);c2.prototype.j=function(){var a=new Nk;var b=M(this,1,"");0<b.length&&H(a,1,b);return Rk(a)};var d2=function(a){K(this,a,0,-1,null,null)};y(d2,J);var e2=function(a){K(this,a,0,-1,null,null)};y(e2,J);d2.prototype.j=function(){var a=new Nk;var b=this.Mb();0<b.length&&H(a,1,b);b=M(this,2,"");0<b.length&&H(a,2,b);b=Q(this,$1,3);null!=b&&I(a,3,b,a2);b=M(this,4,"");0<b.length&&H(a,4,b);b=Q(this,e2,5);null!=b&&I(a,5,b,nca);(b=ol(this,6,!1))&&E(a,6,b);return Rk(a)};var nca=function(a,b){var c=M(a,1,"");0<c.length&&H(b,1,c);c=a.getToken();0<c.length&&H(b,2,c)};
e2.prototype.getToken=function(){return M(this,2,"")};e2.prototype.setToken=function(a){return P(this,2,a)};d2.prototype.Mb=function(){return M(this,1,"")};var f2=function(a){K(this,a,0,-1,null,null)};y(f2,J);f2.prototype.j=function(){var a=new Nk;var b=Q(this,MI,1);null!=b&&I(a,1,b,jJ);return Rk(a)};var oca={hd:"CreateMeetingSpace",de:b2.prototype.j,Sd:cJ},pca={hd:"GetMeetingSpace",de:c2.prototype.j,Sd:cJ},qca={hd:"ResolveMeetingSpace",de:d2.prototype.j,Sd:cJ},rca={hd:"UpdateMeetingSpace",de:f2.prototype.j,Sd:cJ};var g2=function(a,b,c,d){var e=this;this.We=a;this.g={};xc(b,function(f,g){return e.g[g.toLowerCase()]=f});this.Gd=c;this.j=d};g2.prototype.dd=function(){return Ic(this.g)};g2.prototype.jj=function(){return this.j};var i2=function(a,b,c,d,e,f){var g=this;f=void 0===f?{}:f;this.w=a;this.m=b;this.g=c;this.j={};xc(d,function(h,l){return h2(g,l,h)});this.h=Jc(f);this.l=null;this.l=e?e.clone():null};i2.prototype.getContext=function(){return this.w};i2.prototype.dd=function(){var a={};xc(this.j,function(b,c){b=Oa(b)?b():b;null!=b&&(a[c]=b)});return a};var j2=function(a,b){a=a.j[b.toLowerCase()]||null;return Oa(a)?a():a},h2=function(a,b,c){b=b.toLowerCase();null==c?delete a.j[b]:a.j[b]=c};
i2.prototype.clone=function(){return new i2(this.w,this.m,this.g,this.j,this.l,this.h)};var k2=function(a){return{h:a}};var l2=function(a){K(this,a,0,-1,sca,null)};y(l2,J);var sca=[3],m2=function(a){a=new zk(a);for(var b=new l2;Bk(a)&&!Ak(a);)switch(a.h){case 1:var c=a.g.w();ql(b,1,c,0);break;case 2:c=Gk(a);P(b,2,c);break;case 3:c=new SH;Dk(a,c,TH);xl(b,3,c,SH);break;default:Ck(a)}return b};l2.prototype.getMessage=function(){return M(this,2,"")};var n2=function(a,b,c,d,e,f){d=void 0===d?{}:d;e=void 0===e?null:e;f=void 0===f?null:f;var g=c instanceof l2;g2.call(this,a,b,g?null:c,d);this.De=g?c:null;this.l=f;this.h=e};u(n2,g2);n2.prototype.getMessage=function(){return this.l};var tca=function(a){var b=null,c="validation failed";b=void 0===b?null:b;c=void 0===c?null:c;var d=a instanceof n2?a.De:null;return new n2(a.We,a.dd(),d||a.Gd,a.jj(),b,c)};var o2=function(a,b,c,d){d=void 0===d?{}:d;g2.call(this,a,b,c,d)};u(o2,g2);var p2=function(){},q2=function(){p2.Kb();return Ca(function(){throw Error("Worker not ready");})},r2=function(){p2.Kb();return!1};La(p2);var s2=function(){this.g=!1};s2.prototype.j=function(a){this.g=a;return this};
s2.prototype.h=function(a,b,c){var d=a.getContext();h2(a,"Content-Type","application/x-protobuf");h2(a,"X-Goog-Api-Key",t2(d)||null);h2(a,"X-Goog-Encode-Response-If-Executable","base64");var e=u2(d)+("/$rpc/"+a.m+"/"+a.g),f=bt(),g=new Hv;g.listen("complete",this.l.bind(this,f,c));iv(g,"ready",g.dispose);v2(d)&&(g.o=Math.max(0,v2(d)));g.F=!0;g.s="arraybuffer";var h=a.l,l=null,p=null;h?(l=(c=b.call(h))?c.length:null,this.g&&c&&1024<=c.length&&r2()?q2().then(function(r){h2(a,"Content-Encoding","gzip");
l=r.length;g.send(e,"POST",r,a.dd());p="gzip-on"},function(){g.send(e,"POST",b.call(h),a.dd());p="gzip-failed"}):(g.send(e,"POST",c,a.dd()),p="gzip-off")):(g.send(e,"POST",null,a.dd()),p="no-body");a.h.sendPath=p;a.h.bodySize=String(l||0);ft(f.da,function(r){r instanceof Ps&&g.abort()});return f.da};
s2.prototype.l=function(a,b,c){var d={Ng:0};try{var e=c.target,f=e.Ia(),g=$v(e),h=Zv(e);c=null;h&&(c=new Uint8Array(h),d={Ng:c.length||0});c&&zc(g,function(p,r){return"BASE64"==p.toUpperCase()&&"X-GOOG-SAFETY-ENCODING"==r.toUpperCase()})&&(c=ik(ck(c)));if(Vv(e))try{a.resolve(new o2(f,g,b?b(c):null,d))}catch(p){a.resolve(new n2(10002,g,null,d,p,"Failed to decode response"))}else{var l=uca(f,e.m);try{a.resolve(new n2(l,g,c?m2(c):null,d,Error("string"===typeof e.j?e.j:String(e.j))))}catch(p){a.resolve(new n2(l,
g,null,d,p,"Failed to decode status"))}}}catch(p){a.resolve(new n2(10005,{},null,d,p,"Failure in XHR result processing"))}};var uca=function(a,b){return 0!=a?a:6==b?10007:b+3E4};var vca=new s2,w2=function(a){this.g=void 0===a?null:a;this.s=this.l=this.C=this.j=this.o=this.D=null;this.w=[];this.h=[];this.m=[]};w2.prototype.F=function(){var a=new w2;a.setApiKey(t2(this));a.o=u2(this);a.j=v2(this);a.C=x2(this);a.l=y2(this);a.s=z2(this);Hb(A2(this),function(b){return B2(a,b)});Hb(C2(this),function(b){a.h.push(b)});Hb(D2(this),function(b){return E2(a,b)});return a};
var wca=function(a,b){b=void 0===b?function(){return!0}:b;var c=new w2(a.g);c.D=a.D;c.o=a.o;c.j=a.j;c.C=a.C;c.l=a.l;c.s=a.s;c.w.push.apply(c.w,q(a.w.filter(b)));c.h.push.apply(c.h,q(a.h.filter(b)));c.m.push.apply(c.m,q(a.m.filter(b)));return c},u2=function(a){return null!=a.o?a.o:a.g?u2(a.g):""};w2.prototype.setApiKey=function(a){this.D=a};
var t2=function(a){return null!=a.D?a.D:a.g?t2(a.g):""},v2=function(a){return null!=a.j?a.j:a.g?v2(a.g):6E4},x2=function(a){return null!=a.C?a.C:a.g?x2(a.g):3E5},xca=function(a,b){a.l=b},y2=function(a){return null!=a.l?a.l:a.g?y2(a.g):0},yca=function(a){var b=(Oa(window.fetch)?new F2:new s2).j(!1);a.s=b},z2=function(a){return a.s?a.s:a.g?z2(a.g):vca},B2=function(a,b){a.w.push(b)},A2=function(a){return a.g?a.w.concat(A2(a.g)):a.w.concat()},C2=function(a){return a.g?a.h.concat(C2(a.g)):a.h.concat()},
E2=function(a,b){a.m.push(b)},D2=function(a){return a.g?a.m.concat(D2(a.g)):a.m.concat()};var zca=function(a,b){if(window.AbortController){var c=new AbortController,d=null;b&&(d=uv(b),d.then(function(){return c.abort()}));ft(a,function(e){e instanceof Ps&&(c.abort(),d&&d.cancel())});return c.signal}},Aca=function(a,b){return fetch(a,b)},Bca=function(a){var b={};a=n(a.entries());for(var c=a.next();!c.done;c=a.next())c=c.value,b[c[0].toLowerCase()]=c[1];return b};var F2=function(){this.g=!1};F2.prototype.j=function(a){this.g=a;return this};
F2.prototype.h=function(a,b,c){var d=a.getContext();h2(a,"Content-Type","application/x-protobuf");h2(a,"X-Goog-Api-Key",t2(d)||null);h2(a,"X-Goog-Encode-Response-If-Executable","base64");var e=u2(d)+("/$rpc/"+a.m+"/"+a.g),f=Promise.resolve(),g=a.l;g&&(f=b.call(g),f=this.g&&f&&1024<=f.length&&r2()?q2().then(function(l){h2(a,"Content-Encoding","gzip");return l},function(){return b.call(g)}):Promise.resolve(f));var h=bt();f.then(function(l){Aca(e,{method:"POST",body:l,headers:new Headers(a.dd()),mode:"cors",
credentials:"include",signal:zca(h.da,v2(d))}).then(function(p){return Cca(c,p)}).then(function(p){return h.resolve(p)},function(p){p instanceof TypeError?h.resolve(new n2(10007,{},null,{Ng:0},p,"Failure in Fetch")):h.resolve(new n2(10005,{},null,{Ng:0},p,"Failure in Fetch"))});a.h.bodySize=String(l.length)});return h.da};
var Cca=function(a,b){var c=b.status,d=Bca(b.headers);return b.arrayBuffer().then(function(e){e=new Uint8Array(e);var f={Ng:e.length};e&&"BASE64"==(b.headers.get("X-Goog-Safety-Encoding")||"").toUpperCase()&&(e=ik(ck(e)));if(b.ok)try{return new o2(c,d,a?a(e):null,f)}catch(g){return new n2(10002,d,null,f,g,"Failed to decode response")}else try{return new n2(c,d,m2(e),f)}catch(g){return new n2(c,d,null,f,g,"Failed to decode status")}})};var Eca=function(){var a=this;this.g=new nA(100);this.h={onRequest:function(b,c){for(var d=[],e=1;e<arguments.length;++e)d[e-1]=arguments[e];a.g.add({name:d[0].Bh.g,initReq:G2(b),req:G2(d[0].Bh),resp:H2(d[0].response),attemptsHistory:Dca(d)})}}},Fca=function(a,b,c,d){b=void 0===b?"":b;c=void 0===c?100:c;d=void 0===d?!1:d;b=b.toLowerCase();a=a.g.Ja().filter(function(e){return-1!=e.name.toLowerCase().indexOf(b)&&(!d||400<=e.resp.code)});return a.slice(-Math.min(a.length,c))},J2=function(a,b){var c=
void 0===c?!1:c;return Fca(I2(),a,b,c)},Gca=function(a){var b=I2();E2(a,b.h)},I2=function(){K2||(K2=new Eca);return K2},K2=null,L2=function(a){if(a){if(a.va)return JSON.parse(a.va());if(Na(a))return Kb(a,function(b){return L2(b)})}return a},G2=function(a){return{name:a.m+"/"+a.g,body:xs(L2(a.l)),head:a.dd(),meta:a.h}},H2=function(a){var b={code:a.We,body:xs(L2(a.Gd)),head:a.dd()};a instanceof n2&&(b.status=xs(L2(a.De)),b.ex=a.h,b.msg=a.getMessage());return b},Dca=function(a){var b=[];Hb(a,function(c){var d=
G2(c.Bh),e=H2(c.response);b.push({Te:(new Date(c.Te)).toString(),Ef:(new Date(c.Ef)).toString(),Bh:d,response:e})});return b};x("grpc_lookup",function(a){return J2(a,1)[0]});x("grpc_dump",function(a,b){return J2(a,b)});var Hca=function(a,b,c){var d=this;this.w=new rM(1E3,36E4);this.g=a.getContext();this.s=a;a=v2(this.g);var e=x2(this.g);this.j=0<a?new rM(a,Math.max(a,e)):null;this.F=b;this.C=c;this.h=bt();this.D=0;this.l=this.o=!1;M2(this.h.da,function(){d.l=!0});this.m=[];N2(this)},N2=function(a){var b=Xa();Ica(a).then(function(c){a.m.unshift({Te:b,Ef:Xa(),Bh:c.request,response:c.response});2==c.Of&&a.D<y2(a.g)?Jca(a):Kca(a,c)})},Jca=function(a){a.D++;a.j&&(sM(a.j),a.g.j=a.j.g);var b=uv(a.w.g).then(function(){return N2(a)});
sM(a.w);M2(a.h.da,function(){return b.cancel()})},Kca=function(a,b){a.o||(0==b.Of?a.h.resolve(b.response):(b.response instanceof o2&&(b.response=tca(b.response)),a.h.reject(b.response)),a.o=!0,Hb(D2(a.g),function(c){return Ks(function(){return c.onRequest.apply(c,[a.s.clone()].concat(q(a.m)))})}))},Ica=function(a){var b=bt().da;M2(a.h.da,function(){return b.cancel()});var c=a.s.clone(),d=!1,e={Ng:0},f=[],g=Lca(a,b,c),h=g.then(function(r){return d?new n2(20002,{},null):Mca(a,b,r)}),l=Zs([g,h]).then(function(r){return d?
1:Nca(a,b,r[0],r[1])},function(){return 3});f.push($s([g,h,l]).then(function(r){return r[0].Vd?r[1].Vd?r[2].Vd?{request:r[0].value,response:r[1].value,Of:r[2].value}:{request:r[0].value,response:new n2(10006,r[1].value.dd(),r[1].value.Gd,r[1].value.jj(),r[2].reason),Of:3}:{request:r[0].value,response:new n2(10005,{},null,e,r[1].reason),Of:3}:{request:c.clone(),response:new n2(10004,{},null,e,r[0].reason),Of:3}}));if(a.j){var p=uv(a.j.g).then(function(){d=!0;return{request:c.clone(),response:new n2(10001,
{},null,e,null,"Client timed out"),Of:2}});M2(b,function(){return p.cancel()});f.push(p)}f=Ys(f);et(f,function(){return b.cancel()});return f},Lca=function(a,b,c){if(a.l)return Vs(new Ps);var d=Kb(A2(a.g),function(e){try{return e.h(c)||Us()}catch(f){return Vs(f)}});M2(b,function(){return Hb(d,function(e){return e.cancel()})});return Zs(d).then(function(){return c.clone()})},Mca=function(a,b,c){if(a.l)return Vs(new Ps);var d=z2(a.g).h(c,a.F,a.C);M2(b,function(){return d.cancel()});return d},Nca=function(a,
b,c,d){if(a.l)return Vs(new Ps);var e=Kb(C2(a.g),function(f){return f.validate(c,d)});M2(b,function(){return Hb(e,function(f){return f.cancel()})});return Zs(e).then(function(f){return Lb(f,function(g,h){return Math.max(g,h)},d instanceof o2?0:1)})},M2=function(a,b){ft(a,function(c){c instanceof Ps&&b()})};var O2=function(a,b){w2.call(this,void 0===b?null:b);this.G=a};u(O2,w2);O2.prototype.makeRequest=function(a,b,c,d){c=void 0===c?{}:c;d=void 0===d?{}:d;b=new i2(this.F(),this.G,a.hd,c,b,d);return(new Hca(b,a.de,a.Sd)).h.da};O2.prototype.F=function(){return new O2(this.G,w2.prototype.F.call(this))};var Oca=new Set([502,504,500,503]),Pca=new Set([0,-1,10007]),Qca={validate:function(a,b){return Us(Oca.has(b.We)?2:0)}},Rca={validate:function(a,b){return Us(Pca.has(b.We)?2:0)}};var Sca=["ResolveMeetingSpace","CreateMeetingSpace"],Tca=function(a){var b=Wq("https://meetings.clients6.google.com","/v1/${path}");a&&(b=Tq(b,"key",a));return b},Uca=function(a,b){a=new w2(a);b=new P2(b);B2(a,b);E2(a,b);return a},Q2=function(a){var b="",c=Mw();b=void 0===b?null:b;var d=null;if(a instanceof Q2){c="v1";var e=a.h;b=a.j;var f=wca(a.g,function(g){return!(g instanceof P2)});d=new P2(c);B2(f,d);E2(f,d);d=a.fk}else e=Tca(b),c=c||new Iw,b=Vca(this,a,b),f=Uca(b,c);this.h=e;this.l=c;this.j=
b;this.g=f;this.fk=d},Vca=function(a,b,c){var d=new w2;d.setApiKey(c);d.o="https://meetings.clients6.google.com";d.l=2;d.j=2E4;yca(d);d.h.push(Qca);d.h.push(Rca);d.h.push(Wca);B2(d,k2(function(e){if(!j2(e,"X-Goog-Meeting-Debugid")){var f=b.g;f&&h2(e,"X-Goog-Meeting-Debugid",f)}}));E2(d,{onRequest:function(e,f){for(var g=[],h=1;h<arguments.length;++h)g[h-1]=arguments[h];if(g=g[0].response.g["x-goog-meeting-debugid"]||null)a.fk=g}});Gca(d);return d},Wca={validate:function(a,b){return Us(400==b.We?2:
0)}},P2=function(a){this.g=a};P2.prototype.h=function(a){null!=j2(a,"X-Goog-Meeting-Token")||Tb(Sca,a.g)||h2(a,"X-Goog-Meeting-Token",Kw(this.g))};P2.prototype.onRequest=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if((c=c[0].response.g["x-goog-meeting-token"]||null)&&c){d=c.split(";");var e=Number(d[0]);if(!isNaN(e)){c=this.g;var f=new Fl;e=O(f,2,e);d=O(e,1,d[1]);Jw(c,d)}}};var R2=function(a,b,c){X.call(this);var d=this;this.u=Wf("realtime.meetings.call.PhoneAudioManager");W(a,vM);W(a,AK);this.m=b;this.j=new lL(this);this.o=this.j.signal();this.h="";this.g=!1;this.l=null;c.attach(function(e){d.l=e},this)};u(R2,X);var Xca=function(a,b){a.h!=b&&(a.h=b,a.j.V(a.o,b))},Yca=function(a,b){b!==a.g&&(a.g=b,Saa(a.m).g=b)};var S2=Wf("realtime.meetings.call.StreamingSessionUtil"),Zca=function(a,b){return 1==a?b:null},$ca=function(a,b){var c=(b=b&&fJ(b))&&R(b,SI,9);return(c=c&&(c.filter(function(d){return M(d,3,0)==a})[0]||null))?c:(b=Zca(a,b&&Q(b,QI,2)))&&new T2(b)},U2=function(a){var b=ada.map(function(c){return bda(c,a)});return Zs(b).then(function(c){c.some(function(d){return d})&&a.s.then(function(d){return nO(d)});return c.every(function(d){return d})})},bda=function(a,b){var c=b.C;if(!c)return Vs(Error("No spaces collection"));
var d=b.l;if(!d)return Vs(Error("No devices collection"));var e=V2(b);if(!e)return Vs(Error("No local device"));var f=a.ig,g=function(A){var z=new $H;P(z,1,A);rl(z,2,a.hg);rl(z,3,f);return z};c=c.F();var h=(c=$ca(f,c))&&c.Ia(),l=2===h||3===h?M(c,2,""):null,p=!1,r=!1,t=[];(R(e,$H,16)||[]).forEach(function(A){r=r||1===M(A,2,0);p=p||A.xd()===l;t.push(g(A.xd()))});l&&!p&&(r=!0,t.push(g(l)));return r?(e=d.nb(e.cc()),wl(e,16,t),b.g(W2.get(f).rpc),JN(d,e).then(function(){D(S2,"ack: Modified device");b.g(W2.get(f).bl);
return!0},function(A){D(S2,"ack: Failed to modify device: "+JSON.stringify(A));b.g(W2.get(f).dj);throw A;})):Us(!1)},cda=function(a){U2(a);var b=bv(a.C,"w",function(){return U2(a)});a.onDisconnect.then(function(){return kv(b)})},eda=function(a){dda(a,function(){return U2(a).then(function(b){if(!b)throw Error("Prerequisite not handled");})});a.onConnect.then(function(){return cda(a)})},ada=[{ig:1,hg:3},{ig:1,hg:6},{ig:4,hg:4},{ig:3,hg:3},{ig:4,hg:5}],W2=new Map([[1,{rpc:3852,bl:3831,dj:3832}],[4,{rpc:5097,
bl:5098,dj:5099}],[3,{rpc:3852,bl:3831,dj:3832}]]),fda=new Map([[0,0],[2,2],[3,3],[1,1]]),T2=function(a){SI.call(this);var b=fda.get(a.pj());rl(this,1,b);b=a.xd();P(this,2,b);b=a.oj();rl(this,3,b);b=Q(a,RI,4);S(this,4,b);a=a.tg();P(this,5,a)};u(T2,SI);var X2=function(a,b,c,d,e,f,g){e=void 0===e?null:e;f=void 0===f?null:f;g=void 0===g?[]:g;T.call(this);this.l=a;this.h=b;this.Z=c;this.s=null;this.ka=d;this.j=e;this.W=f;this.R=g;this.g=[this];this.H=0;this.D=bt();this.C=!1;this.K=this.F=this.G=void 0;this.Qa=++gda};u(X2,T);X2.prototype.merge=function(a){return a.h===this.h&&a.l===this.l&&this.j&&a.j&&a.j(Y2(this))?(this.g.push(a),!0):!1};X2.prototype.L=function(a){this.H=a;return!0};X2.prototype.o=function(){return this.D.da};X2.prototype.m=function(){return this.C};
var hda=function(a){var b={},c=null,d=new Set;a.g.forEach(function(e){c=c||e.W;e.R.forEach(function(f){return d.add(f)})});c&&(b["X-Goog-Meeting-Botguardid"]=c);return b},Y2=function(a){a.s||(a.s=a.Z(a));return a.s},Z2=function(a,b){a.g.forEach(function(c){c.C=!0;b instanceof o2?c.D.resolve(c.ka(b)):c.D.reject(b)})};k=X2.prototype;k.Xj=function(a){this.G=a};k.Yg=function(a,b){void 0!==b&&(b=Math.max(a,b));this.F=a;this.K=b};
k.Xh=function(){return this.g.reduce(function(a,b){return $2(a,b.G)},void 0)||0};k.Eg=function(){return this.g.reduce(function(a,b){return $2(a,b.F)},void 0)};k.Wj=function(){return this.g.reduce(function(a,b){return $2(a,b.K)},void 0)};k.Sm=function(){return this.h.hd};k.Rm=function(){return Y2(this).va()};k.toString=function(){return"[Operation id: "+this.Qa+": service: "+this.l+", call: "+this.h.hd+", version: "+this.H+"]"};
var a3=function(a){a=parseInt(a.g.etag||null,10);return isNaN(a)?-1:a},b3=function(){Bb.call(this);this.message="Operation has already been executed.";this.name="AlreadyExecutedError"};u(b3,Bb);var $2=function(a,b){return void 0==a?b:void 0==b?a:Math.min(a,b)},gda=0;var c3=new WeakMap,d3=function(a){GL.call(this);this.u=Wf("realtime.collections.oneplatform.OperationExecutor");this.h=W(a,vM);this.g=new Set};u(d3,GL);d3.prototype.execute=function(a,b){var c=this;if(a.m())throw new b3(a);a.j?[].concat(q(this.g)).find(function(d){return d.merge(a)})?"number"===typeof b&&a.Yg(b):(this.g.add(a),1==this.g.size&&HL(this),Ks(function(){c.g.delete(a);e3(c,a,b)})):e3(this,a,b)};
var e3=function(a,b,c){c=void 0===c?null:c;D(a.u,"Making request for operation: "+b);var d="number"===typeof c?c:b.Eg();a.h.then(function(e){e=new O2(b.l,e.g);"number"===typeof d&&(e.j=d);xca(e,b.Xh());ft(e.makeRequest(b.h,Y2(b),hda(b),{GK:!0}).then(function(f){Z2(b,f)}),function(f){return f3(a,b,f)})},function(e){return f3(a,b,e)})},f3=function(a,b,c){a=a.u;if(Pa(c))if("undefined"==typeof c)var d="undefined";else if(null==c)d="NULL";else{var e=[];for(d in c)if(!Oa(c[d])){var f=d+" = ";try{f+=c[d]}catch(g){f+=
"*** "+g+" ***"}e.push(f)}d=e.join("\n")}else d=c;Yf(a,"OnePlatform operation failed for "+(b+": "+d));Z2(b,c)};function ida(a){if("string"===typeof a){var b=G1(a);return(new I1).D(b).o(a)}return a};function jda(a){return"string"===typeof a?(new J1).o(a):a};var g3=function(a,b){dL.call(this,a);this.g=b};u(g3,dL);k=g3.prototype;k.tj=function(){return!1};k.vd=function(a){a=a[0];var b=new V1;var c=a.C();b=P(b,1,c);b=S(b,2,a);b=h3(jca,b,a.o);4==M(a,11,0)&&b.Yg(1E4);return b};k.wd=function(a){var b=new Z1;b=S(b,1,a[0]);return h3(mca,b,a[0].o)};k.Nd=function(){throw Error("Invalid Operation: Meeting Device Remove");};k.Md=function(a){var b=new W1;a=a.cc();b=P(b,1,a);return h3(kca,b)};
k.re=function(a){(a=a.j())||W(this.g,AK,!0).then(function(b){return b.g(5268)});return kda(a)};var kda=function(a){var b=hca(new X1,a);return new X2("google.rtc.meetings.v1.MeetingDeviceService",lca,function(){return b},function(c){return{data:i3(R(c.Gd,VH,1)),version:a3(c)}})},h3=function(a,b,c){return new X2("google.rtc.meetings.v1.MeetingDeviceService",a,function(){return b},function(d){return{data:i3([d.Gd]),version:a3(d)}},void 0,void 0===c?null:c)},i3=function(a){return a.map(function(b){return new H1(JSON.parse(b.va()))})};var j3=function(a){dL.call(this,a)};u(j3,dL);k=j3.prototype;k.tj=function(){return!1};k.vd=function(a){a=a[0];var b=new b2;a=S(b,1,a);return k3(oca,a)};k.wd=function(a){var b=new f2;a=S(b,1,a[0]);return k3(rca,a)};k.Nd=function(){throw Error("Invalid Operation: Meeting Space Remove");};k.Md=function(a){var b=new c2;a=a.j();b=P(b,1,a);return k3(pca,b)};k.re=function(a){return this.Md(a)};
var k3=function(a,b){return new X2("google.rtc.meetings.v1.MeetingSpaceService",a,function(){return b},function(c){return{data:[c.Gd],version:a3(c)}})};var l3=function(a,b,c,d,e,f,g){if(c3.has(a))var h=c3.get(a);else h=new d3(a),c3.set(a,h);e=new e(h,a);f=new nN(b.o,f);return new dO(new iL(a),Q(b,IL,13),c,d,e,f,b.D,g)};var lda=function(a,b,c){var d=void 0===d?{}:d;return W(a,vM).then(function(e){return m3(e,b,c,void 0,!0,d)})},m3=function(a,b,c,d,e,f){f=void 0===f?{}:f;b=mda(b,d,e);return nda(a,b,c,f).then(function(g){return g.Gd})};function nda(a,b,c,d){d=(void 0===d?{}:d).SK;var e={};c&&(e["X-Goog-Meeting-Botguardid"]=c);d&&(e["X-Goog-Meeting-Token"]=d);return(a instanceof O2?a:new O2("google.rtc.meetings.v1.MeetingSpaceService",a.g)).makeRequest(qca,b,e)}
function mda(a,b,c){var d=new d2;a=P(d,1,a);b&&P(a,4,b);c&&ql(a,6,c,!1);return a};var n3=function(a,b,c,d){E0.call(this,a,b,d);var e=this;this.Oj=this.j.signal();this.u=new rU("realtime.meetings.call.MeetingCall");this.Lc=new Set;this.D=c;this.sh=Us(W(a,vM));var f=bt();this.C=null;this.Xf=c=new QZ;this.F=c.g;this.F.then(function(g){EN(g).then(function(){return f.resolve()})});this.pd=new L1(this.F);this.l=null;this.Wb=new QZ;this.s=this.Wb.g;this.W=null;this.G=new QZ;this.Bj=this.G.g;this.Zf=new QZ;this.Wf=this.Zf.g;this.Mj=new QZ;this.Ob=!1;this.ej=new T1(this.ya,this.rd);this.N(this.ej);
this.Ma=this.j.signal();this.lh=new R2(a,b,this.Ma,this.Bj);this.Vb=bt();this.gj=this.Vb.da;this.K=this.nh=null;this.jv=new QZ;this.La=this.sa=null;this.ag=!1;this.ic=null;Rz(W(a,DK,!1),function(g){e.ic=g});this.kh=new nA(20);this.Id=this.o=null;this.Z=new qv(3E4);this.N(this.Z);this.listen(this.Z,"tick",this.yv);this.oh=function(){return Vs("No prerequisite handler")};this.Vf=this.Da=null;this.D&&this.Ha.resolve(!0);this.s.then(function(g){e.listen(g,"w",e.rh);e.rh()});OR&&QR()};u(n3,E0);
n3.prototype.Mb=function(){return this.W};n3.prototype.sg=function(){var a=this;return Object.assign(E0.prototype.sg.call(this),{joinState:function(){var b=V2(a);return b?nI(b):0},meetingSpace:function(){return a.F.get()&&a.F.get().xa()},meetingDevices:function(){return a.s.get()&&a.s.get().xa()},recentMeetingOperations:function(){return a.kh.Ja()},mediaBackendInfo:function(){var b=a.C&&a.C.F();return(b=b&&fJ(b))&&M(b,8,"")}})};var oda=m(["Removing meeting device on disconnect"]);
n3.prototype.bh=function(a,b){var c=this,d=Us(b);this.La=b;var e=Us();if(0==b||123==b){var f=o3(this);f&&(f=this.l.nb(f),rl(f,4,7),e=JN(this.l,f).then(function(){c.g(6096)}))}67==b&&this.o&&(d=this.l.search().then(function(g){return(g=g.find(function(h){return h.cc()==c.o}))&&7==nI(g)?43:b},function(){return b}));d.then(function(g){var h=Us();c.La=g;et(e,function(){if(!c.ag&&(a||c.o)){c.u.g(oda);var p=c.fa.get()||c.o;p=c.l.nb(p);rl(p,4,6);h=JN(c.l,p,2).then(function(){p3(c);c.o=null;c.j.V(c.Ma,null)})}c.Da&&
c.Da.cancel();et(h,function(){c.sh.then(function(r){c.Id=Kw(r.l);c.m.j.j.g=null;E0.prototype.bh.call(c,a,g)})})});var l=new L0(g);c.Xf.reject(l);c.Wb.reject(l);c.Vb.reject(l);c.F.get()&&c.F.get().stop();c.s.get()&&c.s.get().stop()})};var q3=function(a,b){a.Lc.add(b);et(b,function(){a.Lc.delete(b)});return b};
n3.prototype.resolve=function(a,b){var c=this;if(this.W)return Vs(r3("Meeting already resolved"));if(this.D&&!b)return Vs(r3("Missing required botguard id"));if(!this.D&&b)return Vs(r3("Botguard id not allowed when logged in"));var d=O0(this,0,"resolve");if(d)return Vs(d);b=lda(this.pa,a,b);return q3(this,b).then(function(e){c.W=e.Mb();c.Zc.h=c.W;var f=e.j();c.C=l3(c.pa,c.m,[f],new XK({Le:MI,Je:[MI.prototype.j],Ke:[MI.prototype.o],Re:[],Se:[],Oe:J1,Me:[J1.prototype.j],Ne:[J1.prototype.o],Pe:[],Qe:[],
to:jda}),j3,"u","MeetingSpaces");O(c.C.config,8,5E3);c.N(c.C);c.l=l3(c.pa,c.m,[f],new XK({Le:H1,Je:[H1.prototype.C],Ke:[H1.prototype.F],Re:[H1.prototype.cc],Se:[H1.prototype.j],Oe:I1,Me:[I1.prototype.j],Ne:[I1.prototype.D],Pe:[I1.prototype.cc],Qe:[I1.prototype.o],to:ida}),g3,"q","MeetingDevices");O(c.l.config,8,5E3);c.N(c.l);c.D&&c.Z.start();c.G.resolve(f);c.Zc.j=f;K1(c.pd,e);return c.pd},function(e){var f="Resolve code "+a;e instanceof wM?f+=", errorType: "+e.Yc:e instanceof n2?f+=", error message: "+
e.getMessage():"number"===typeof e&&(f+=", rpc status code: "+e);var g=306,h=s3(e);null!=h&&(g=pda[h]||g,c.D&&(g=t3[h]||g),f=f+(", statusCode: "+h)+(", "+u3(e)));c.kh.add(f);c.u.Ra(qda,f);if(e instanceof n2)a:{if(e.De)for(f=n(R(e.De,SH,3)),h=f.next();!h.done;h=f.next())if(h=h.value,"google.rtc.meetings.v1.ErrorDetails"==M(h,1,"")||"type.googleapis.com/google.rtc.meetings.v1.ErrorDetails"==M(h,1,"")){f=M(h,2,"");null==f||f instanceof Uint8Array||("string"===typeof f?f=ik(f):(Eb("Cannot coerce to Uint8Array: "+
Ma(f)),f=null));f=new zk(f);for(h=new F1;Bk(f)&&!Ak(f);)switch(f.h){case 1:var l=Fk(f);sl(h,1,E1[0],l);break;case 2:l=Fk(f);sl(h,2,E1[0],l);break;default:Ck(f)}f=h;break a}f=null}else f=null;f&&(f=M(f,2,0),g=rda[f]||g);e=new M0(g,e);c.G.reject(e);c.G=new QZ;throw e;})};var qda=m(["",""]);n3.prototype.ra=function(a){var b=this;this.D?this.G.g.then(function(){E0.prototype.ra.call(b,a)}):E0.prototype.ra.call(this,a)};var sda=m(["prejoin() was called"]);
n3.prototype.mh=function(){var a=this;this.u.g(sda);var b=O0(this,0,"preJoin");return b?Vs(b):Us().then(function(){if(a.D)return Us();if(a.K)return a.K.then(function(c){return v3(a,c)});a.K=w3(a,2).then(function(c){if(a.w())return c;v3(a,c);a.Ha.resolve(5==nI(c));a.jv.resolve(null);return c});return a.K})};var v3=function(a,b){2==nI(b)?(H0(a,a.Wf.get(),a.o),x3(a)):a.Z.start()},tda=m(["Modifying the meeting device as VIEWING"]),uda=m(["Unexpected view state: ",""]);
n3.prototype.view=function(){var a=this;return(this.K||this.mh()).then(function(){return a.sessionId.then(function(b){var c=O0(a,0,"view");if(c)throw c;a.sa||(a.u.g(tda),c=new H1,c.j(a.o),P(c,22,b),rl(c,4,12),a.sa=ft(JN(a.l,c).then(function(d){d=d[0];y3(a,d);var e=O0(a,0,"view");if(e)throw e;d=nI(d);if(12!=d)throw a.u.Ra(uda,d),new Bb("Unexpected join state: "+d);return d}),function(d){a.sa=null;throw d;}));return a.sa.then(function(d){12==d&&(a.l.stop(),a.Z.start());return d})})})};var vda=m(["connect() was called"]);
n3.prototype.connect=function(a,b){var c=this;a=void 0===a?null:a;b=void 0===b?null:b;return this.D&&!a?Vs(new M0(302,"Missing name for anonymous user")):this.D&&!b?Vs(new M0(302,"Missing botguard id for anonymous user")):this.eg.then(function(){c.u.g(vda);var d=O0(c,0,"connect");if(d)return Vs(d);G0(c,1);c.Z.stop();return c.K?Zs([c.K,c.sa]).then(function(){return z3(c)}):w3(c,1,a,b).then(function(e){c.Ha.resolve(3==nI(e));return A3(c,e,Xa())})})};
var wda=function(a){return a.ya.s.concat().find(function(b){return"a"==b.h.Ga})||null},xda=m(["Should not update the same session id."]),yda=m(["Modifying the session id: ",""]),zda=m(["Failed to update the session id: ",""]);n3.prototype.Gh=function(a){var b=this;if(this.sessionId.get()==a)this.u.Ra(xda);else{this.u.g(yda,a);var c=new H1;c.j(this.o);P(c,22,a);c=JN(this.l,c).then(function(d){return y3(b,d[0])},function(){b.u.Ra(zda,a)});q3(this,c)}};
n3.prototype.rh=function(){var a=this.s.get(),b=a.get(),c=b.filter(this.Uf).map(function(e){return e.cc()});J0(this,c);var d=this.fa.get();if(2==this.getState()&&(a=d?a.F(d):null))switch(nI(a)){case 7:this.g(3952);this.disconnect(43);break;case 8:this.disconnect(Ada(a));break;case 2:case 3:case 5:case 9:case 12:break;case 1:Bda(this,a);break;default:this.disconnect(34)}if(a=o3(this))d=M(Q(a,bI,20),1,""),Xca(this.lh,d);Yca(this.lh,!!a&&1===nI(a));D(this.T,b.length+" raw devices; "+c.length+" joined.")};
var o3=function(a){if(a.l)return a.l.get().find(function(b){return a.Uf(b)&&!!Q(b,bI,20)&&M(Q(b,bI,20),4,"")==a.fa.get()})};n3.prototype.Uf=function(a){return ol(a,5,!1)||10==nI(a)};
var Cda=m(["Failed to clear AudioMuteRequest"]),Bda=function(a,b){var c=Q(b,XH,12)&&M(Q(b,XH,12),1,"");if(c!=a.Vf){var d=c==b.cc();if(a.Vf=c){if(!d||!a.Ob){var e=wda(a);e&&!e.Nb()&&bZ(e)}b=a.l.nb(b);gI(b,new XH);ft(JN(a.l,b),function(){a.u.Ra(Cda)});d?a.Ob||(a.j.V(a.Oj,void 0),a.g(4203)):(a.j.V(a.zc,{Jv:c}),a.g(990))}}},w3=function(a,b,c,d){c=void 0===c?null:c;d=void 0===d?null:d;var e=new H1;return ft(Zs([a.G.g,a.sessionId]).then(function(){var f=a.G.g.get(),g=a.sessionId.get();e.F(f);rl(e,4,b);
P(e,22,g);f=a.contentType&&B3.get(a.contentType);1==b&&f&&rl(e,25,f);a.D&&(P(e,2,c),e.o=d);return a.sh}).then(function(f){var g=a.G.g.get();Dda(a,f,g);g=q3(a,a.l.add(e));g.then(function(){a.Zf.resolve(f.fk)});return g}).then(function(f){f=f[0];a.o=f.cc();a.j.V(a.Ma,a.o);var g=a.o.split("/")[3]||a.xc;a.D&&(a.Zc.l=g,a.Mj.resolve(g));y3(a,f);return f},a.jk,a),function(f){throw r3(f);})},Eda=m(["Device add operation has been cancelled."]),Fda=m(["Device add error: ",""]);
n3.prototype.jk=function(a){p3(this);C(this.T,"add device failed, moving back to INITIALIZED state");G0(this,0);this.K=null;var b=325,c=s3(a);a instanceof Ps?(b=219,this.u.Ra(Eda)):null!=c&&(b=C3(a,b),this.D&&(b=t3[c]||b),this.u.Ra(Fda,u3(a)));throw new M0(b,a);};
var Gda=m(["Modifying the meeting device as JOINED"]),Hda=m(["Device modify error: ",""]),z3=function(a){return ft(a.sessionId.then(function(b){a.u.g(Gda);var c=new H1;c.j(a.o);P(c,22,b);(b=a.contentType&&B3.get(a.contentType))&&rl(c,25,b);rl(c,4,1);return JN(a.l,c)}).then(function(b){y3(a,b[0]);return A3(a,b[0],Xa())},function(b){var c=303;null!=s3(b)&&(c=C3(b,c),a.u.Ra(Hda,u3(b)));throw new M0(c,b);}),function(b){return D3(a,r3(b))})},Ida=m(["Checking the join state"]),Jda=m(["Unexpected join state: ",
""]),A3=function(a,b,c){var d=O0(a,1,"checkJoinState");if(d)return D3(a,d);a.u.g(Ida);switch(nI(b)){case 1:return Kda(a);case 3:if(6E5<=Xa()-c)return D3(a,new M0(234));a.Da=uv(5E3).then(function(){return Lda(a,c)},function(){D3(a,new M0(252))});return a.Da;case 4:return D3(a,new M0(233));case 11:return D3(a,new M0(241));case 9:var e=0,f=function(){return D3(a,new M0(325))},g=function(){return(5>e++?a.oh(a.C,a.l,V2(a)):Vs()).then(function(){return ft(z3(a),function(){return g()})},f)};return g();default:return a.u.Ra(Jda,
nI(b)),D3(a,"Unexpected join state: "+nI(b))}},Lda=function(a,b){return a.l.search().then(function(c){c=c.find(function(d){return d.cc()==a.o});y3(a,c);return A3(a,c,b)},function(c){var d=303;null!=s3(c)&&(d=C3(c,d));return D3(a,new M0(d,c))})},Kda=function(a){x3(a);var b=bt();I0(a,b,a.Wf.get(),a.o);return b.da},x3=function(a){a.Xf.resolve(a.C);a.Wb.resolve(a.l);a.C.start();a.l.start()};n3.prototype.sm=function(){return wba(this.fa.get(),this.ya.s.concat().map(function(a){return a.h}),this.ya)};
var D3=function(a,b){C(a.T,"connect failed, moving back to DISCONNECTED state");G0(a,4);if(a.o){var c=new H1;c.j(a.o);rl(c,4,6);et(JN(a.l,c,2),function(){return p3(a)});a.o=null;a.j.V(a.Ma,null);a.K=null}return Vs(r3(b))},Dda=function(a,b,c){Mda(a,function(){p3(a);var d={meetingToken:Kw(b.l)||a.Id};JM(b.h.replace("${path}",c+"/devices:close"),xs(d),"application/json");a.ag=!0},function(){return Nda(a)})};
n3.prototype.Mc=function(a){E0.prototype.Mc.call(this,a);a=bM(a);this.W&&O(a,13,this.W);var b=this.G.g.get();b&&O(a,14,b)};var Nda=function(a){var b=function(){a.ic&&g1(a.ic,a).forEach(function(c){var d=a.m.j,e=Wq(d.s,"/"+d.m+"/"+d.o+"/media_sessions/callperf");d.l&&(e=Tq(e,"key",d.l));OM(d,c);JM(e,c.va(),"application/json+protobuf")})};a.disconnect(null!=a.La?a.La:63).then(b,b)};n3.prototype.yv=function(){this.D?this.C.search():this.l.search()};
var r3=function(a){return a instanceof M0||a instanceof Ps?a:new M0(302,a)},s3=function(a){return a instanceof wM?a.g:a instanceof n2?a.We:"number"===typeof a?Oda.get(a):null},Pda=function(a){var b="",c=a.h;c&&(b+=" exception name: "+c.name,b+=" exception message: "+c.message);a.De&&(b+=" status: "+a.De.va());a.Gd&&(a=a.Gd,Array.isArray(a)?(a=a.map(function(d){return d instanceof J?d.va():yf(d)}),b+=" response: "+xs(a)):b=a instanceof J?b+(" response: "+a.va()):b+(" response: "+yf(a)));return b},
u3=function(a){if(a instanceof wM&&a.response){a=a.response.xv||"";try{var b=JSON.parse(a).body;var c=b?xs(b):a}catch(d){c=a}}else c=a instanceof n2?Pda(a):yf(a);return c},C3=function(a,b){if(a instanceof n2&&403==a.We){var c=a.De;c=(c&&c.getMessage()||"").includes("Service is disabled")}else c=!1;if(c)return 239;a=s3(a);return null!=a?Qda[a]||b:b},dda=function(a,b){a.oh=b},y3=function(a,b){b&&(a.nh=b,a.Vb.resolve(!0))},V2=function(a){var b=null;a.l&&a.o&&(b=a.l.F(a.o));return b||a.nh};
n3.prototype.aa=function(){this.Lc.forEach(function(a){a.cancel()});E0.prototype.aa.call(this)};var Ada=function(a){a:switch(M(a,28,0)){case 2:a=121;break a;case 3:a=10;break a;default:a=null}return null!=a?a:Rda()},Rda=function(){var a=J2("ListMeetingDevices",1)[0]||J2("UpdateMeetingDevice",1)[0];switch(a&&a.resp.code){case 400:return 114;case 401:return 113;case 403:return 115;default:return 111}};n3.prototype.Qm=function(){var a=this;return Ca(function(b){return b.return(W(a.pa,LK).then(function(c){return function(){return c(a)}}))})};
n3.prototype.qm=function(){var a=this;return Ca(function(b){return b.return(W(a.pa,MK).then(function(c){return c(a)}))})};n3.prototype.tm=function(){var a=this;return Ca(function(b){return b.return(W(a.pa,OK).then(function(c){return c(a)}))})};n3.prototype.rm=function(){var a=this;return Ca(function(b){return b.return(W(a.pa,QK).then(function(c){return c(a)}))})};
var E3={},pda=(E3[404]=217,E3[401]=300,E3[400]=327,E3[403]=220,E3[10001]=328,E3[-1]=329,E3[0]=329,E3[10007]=249,E3),F3={},rda=(F3[4]=254,F3[3]=253,F3),G3={},Qda=(G3[400]=324,G3[403]=200,G3[429]=216,G3[10001]=330,G3[-1]=331,G3[0]=331,G3[10007]=331,G3),Oda=new Map([[0,200],[2,500],[3,400],[4,504],[5,404],[7,403],[16,401],[8,429],[9,400],[13,500]]),H3={},t3=(H3[403]=200,H3),I3=new Map,J3=function(){var a=[].concat(q(I3.values()));a.forEach(function(b){b=b.uw;return b()});a.forEach(function(b){b=b.kr;
return b()});I3.clear();jv(hg(),["beforeunload","unload"],J3)},Mda=function(a,b,c){0==I3.size&&bv(hg(),["beforeunload","unload"],J3);I3.set(a,{uw:b,kr:c})},p3=function(a){I3.delete(a);0==I3.size&&jv(hg(),["beforeunload","unload"],J3)},B3=new Map([["stqyie",1],["iaamBc",2],["vLwGKe",3],["hQbUN",4]]);var K3=function(a,b,c,d,e){T.call(this);this.u=ab("mr.mirror.hangouts.HangoutCallService");this.h=a;this.m=d;this.L=e;this.g=null;this.s=!1;this.C=new Ab;this.j=new Ab;this.F=!1;this.D=new Ab;this.o=this.l=null;this.G=!1;Sda(this,b,c)};u(K3,T);
var Wda=function(a,b){B(a.u,"Connecting to hangout");setTimeout(function(){a.j.reject(Error("Timed out before connecting"))},3E4);a.C.g.then(function(c){hb(a.u,"Call ready.");a.s=c.Bd;if(a.s)c=Tda(a,c);else{var d=c.gb,e=c.Xg;c=a.h.get(XM);if(e)hb(a.u,"Already resolved id: "+e),c=Us(xO(a.h,c,e));else{hb(a.u,"resolving hangout id: "+d);e=a.h;d=d.split("@");var f=new GB;O(f,5,!0);if(-1!=d[1].indexOf(".")){var g=new EB;O(g,1,d[0]);O(g,2,d[1]);S(f,4,g)}else g=new rB,O(g,1,d[1]),O(g,2,d[0]),S(f,2,g);c=
AO(e,c,f)}c=a.g.connect(c)}return c}).then(null,function(c){Uda(a,c);if(c.we){for(var d="",e=n(Object.entries(jaa)),f=e.next();!f.done;f=e.next()){var g=n(f.value);f=g.next().value;g=g.next().value;if(g==c.pw){d=f+"("+g+")";break}}a.u.error("Call connect error startupCode: "+d);c=c.we}d="SESSION_FAILURE";c.response&&Array.isArray(c.response)&&0<c.response.length&&"chrrp"==(new $C(c.response)).K&&(d="HANGOUT_INVALID");a.m(new Jj(d));a.j.reject(c);L3(a,16)});return a.j.g.then(function(){return a.g.fa}).then(function(c){M3(a,
b,c);if(a.s)return N3(a,c);O3(a,c);Vda(a,a.g.l.get())})},Xda=function(a,b){return new Promise(function(c,d){a.g.fa.then(function(e){M3(a,b,e);if(!a.G){if(a.s){N3(a,e).then(c,d);return}O3(a,e)}c()},d)})},Yda=function(a,b){a.g.ya.s.concat().forEach(function(c){"a"===c.ia()&&(b?bZ(c):"st"!=c.j&&s1(c,!1))})},Zda=function(a){return a.j.g.then(function(){PY(a.g.ya)}).catch(function(){if(a.g)PY(a.g.ya);else throw Error("call was never created");})};K3.prototype.stop=function(){L3(this,0);return this.D.g};
K3.prototype.aa=function(){var a=this;this.l&&this.l.dispose();this.o&&this.o.dispose();this.C.reject(Error("Disposed"));this.j.reject(Error("Disposed"));setTimeout(function(){a.D.reject(Error("Timed out before stopping"))},1E4);this.g&&this.g.dispose();T.prototype.aa.call(this)};
var Sda=function(a,b,c){a.m(new Jj("REFRESH_AUTH"));b.then(function(){return c}).then(function(d){hb(a.u,"Creating call for hangout id: "+d.gb+" resolvedId: "+d.Xg);var e=xT(new wT);a.g=$da(a,d,e);a.g.onConnect.then(a.K,null,a);a.g.onDisconnect.then(a.H,function(f){a.u.J("Error on disconnect: "+f)},a);a.C.resolve(d)})},$da=function(a,b,c){b.Bd?(b=new n3(a.h,a.h.get(FK),!1),b.Ob=!0,b.contentType="iaamBc",b.ra(c),b.s.then(a.R,null,a),eda(b)):(b=new e1(a.h,a.h.get(FK),c),b.hb.then(a.W,null,a));b.zc.attach(function(){a.m(new Jj("STATUS_RESPONSE",
{mute:!0}));a.L(!0)});return b},Tda=function(a,b){var c=a.g;return c.resolve(b.gb).then(function(){return c.connect()})},M3=function(a,b,c){if(0<b.getAudioTracks().length)if(a.l){var d=a.l;d.sa=b;d.o()}else a.l=new P3(a.h,new IO(c,"1","a","sc"),b),p1(a.l),a.g.Yh(a.l);a.o?(a=a.o,a.sa=b,a.o()):(c=new IO(c,"2","v","sc"),GO(c,[new dM(0,0,1,1)])&&c.M("D"),a.o=new P3(a.h,c,b),p1(a.o),a.g.Yh(a.o))},N3=function(a,b){var c=new PI;P(c,1,b);var d=a.g.F.get();a=new VI;a.jd(c);var e=d.nb();S(e,6,a);return new Promise(function(f,
g){JN(d,e).then(f,g)})},O3=function(a,b){var c=new sB;tB(c,b);b=new vB;b.jd(c);b.Tn(a.g.gb.get());JN(a.g.l.get(),b)},Vda=function(a,b){b.onChange.attach(function(){a.g.fa.then(function(c){a.G=b.get().some(function(d){return d.rc()&&L(d.rc(),1)==c})})},a)};K3.prototype.R=function(a){var b=this;a.onChange.attach(function(c){return aea(b,c.vc)},this)};var aea=function(a,b){b.forEach(function(c){c.cc()==a.g.fa.get()&&7==nI(c)&&L3(a,43)})};
K3.prototype.W=function(a){var b=this;a.onChange.attach(function(){return bea(b,a)},this);a.Da.attach(function(c){b.u.error("Failure in collection: "+c.reason);b.j.reject(c.reason);L3(b,c.Ib)},this)};var bea=function(a,b){hb(a.u,function(){return"Participants updated: "+b.get().filter(function(c){return ol(c,18,!1)}).map(function(c){return L(c,4)}).join(", ")});!a.F&&2>b.get().length&&(a.m(new Jj("HANGOUT_INACTIVE")),L3(a,61))};
K3.prototype.K=function(){B(this.u,"Call connected");this.m(new Jj("SESSION_START_SUCCESS"));this.j.resolve(void 0)};K3.prototype.H=function(a){this.m(new Jj("SESSION_END"));var b="",c;for(c in qB)if(qB[c]==a){b=c+"("+a+")";break}B(this.u,"Call ended with endcause: "+b);0!=a&&61!=a&&16!=a&&this.m(new Jj("SESSION_FAILURE"))};
var L3=function(a,b){B(a.u,"Stopping call with end Cause: "+b);a.F?B(a.u,"Ignore stop, already stopping."):(a.F=!0,a.g?a.g.disconnect(b).then(function(c){hb(a.u,"Call disconnected with endCause: "+c);a.D.resolve(void 0)}):a.D.resolve(void 0))},Uda=function(a,b){b instanceof Error?a.u.error("Connect error",b):Na(b)?a.u.error(function(){return"Connect error: "+JSON.stringify(b)}):Pa(b)?a.u.error("Connect error: "+JSON.stringify(b)):a.u.error("Connect error: "+b)},P3=function(a,b,c){m1.call(this,a,b,
cea);this.sa=c};u(P3,m1);P3.prototype.o=function(){var a=this.sa.clone();t1(this,a);a.getVideoTracks().forEach(function(b){"contentHint"in b&&(b.contentHint="detail")});return Us()};var Q3=new D1,dea=A1(z1(B1(new y1,30),320),180).ha();Q3.h=dea;var eea=A1(z1(B1(new y1,30),640),360).ha();Q3.g=eea;var cea=Q3.ha();var fea=new RegExp(/(?:hangouts\/_|present)/.source+"[/]"+/(?:[^\/]+\.[^\/]+)/.source+"[/]"+/([\w_\-]+)/.source+/[\?\/]?/.source);var R3=function(){var a=hg(),b=a,c=b.chrome&&b.chrome.runtime;try{do{try{b.location.origin==a.location.origin&&(c=b.chrome&&b.chrome.runtime||c)}catch(d){}if(b==b.parent)break;b=b.parent}while(null!=b)}catch(d){}return c},S3=function(){return"https:"==hg().location.protocol?"nkeimhogjdpnpccoofpliimaahmaaome":"hoblmflfjcnhdllclikeemgdcbbflkhi"},T3=function(a,b){this.status=void 0===a?99:a;this.value=b};
T3.prototype.toString=function(){return"ExtensionResult(status="+this.status+", value="+this.value+")"};
var gea=m(["",""]),U3=function(a,b){b=void 0===b?!0:b;var c=bt(),d=R3(),e=d&&d.sendMessage,f=a.method,g=new rU("realtime.hangoutsextension.extension");e?(g=hea(c,f,b),f=hg().location,a.origin=f.origin+"/",(b=Vq(f.href,"tabId"))&&(a.tabId=b),f=Vq(f.href,"winUrl")||Vq(f.href,"origin")||f.origin,a.winUrl=f,d.sendMessage(S3(),a,g)):(d?(d='chrome.runtime lacks "sendMessage" method',a=8):(d="chrome.runtime missing",a=5),d="Method: "+f+"; Type: "+d+"; Explanation: ",g.Ra(gea,d),c.reject(new T3(a,d)));return c.da},
iea=m(["Sending message: ",""]),V3=function(a){var b=new rU("realtime.hangoutsextension.extension");var c=xs(a);var d=void 0===d?"#REDACTED#":d;var e=fea.exec(c);c=e&&e[1]?c.replace(e[1],d):c;b.g(iea,c);return U3(a)},jea=m(["Opening port named ",""]),kea=function(){var a=R3(),b=new rU("realtime.hangoutsextension.extension");if(a&&null!=a.connect){b.g(jea,"processCpu");var c=a.connect(S3(),{name:"processCpu"}),d=function(){return c.disconnect()};bv(hg(),"unload",d);c.onDisconnect.addListener(function(){jv(window,
"unload",d)});return c}return null},lea=m(["Received response to ",": ",""]),mea=m(["",""]),hea=function(a,b,c){return function(d){var e=new rU("realtime.hangoutsextension.extension");if(null!=d){var f=d.error;if(null!=f)f="Extension reported: "+f.name+" - "+f.message+".";else{c&&(f=xs(d.value),e.h(lea,b,f));a.resolve(new T3(0,d.value));return}}else f="No response from extension.";d=null!=d?1:2;var g=R3();g?null!=g.lastError&&(f+=" chrome.runtime.lastError.message: "+g.lastError.message):(d=5,f+=
" No chrome.runtime to get chrome.runtime.lastError.message.");f="Method: "+b+"; Type: Hangout Component Extension Error; Explanation: "+(f||"");e.Ra(mea,f);a.reject(new T3(d,f))}},W3=!1;var X3=new Map([[1,4030],[2,4031],[3,4609],[4,4610],[5,4664],[8,4962]]);var Y3=function(a,b){var c=this;this.j=b;this.m=W(a,AK).then();this.l=null;this.h=function(d){var e=X3.get(d.status);if(e){var f=d.value;f="string"==typeof f?f:JSON.stringify(f);c.g(e,{Ub:f})}e=0==d.status;null!=c.l&&(!c.l&&e?c.g(4783):c.l&&!e&&c.g(4784));c.l=e;return d}},Z3=function(a){return a.j.Zj().then(a.h,a.h)};Y3.prototype.rg=function(){return this.j.rg()};
var nea=function(a){return a.j.ck().then(a.h,a.h)},oea=function(a,b,c){return a.j.dk(b,c).then(a.h,a.h)},$3=function(a,b){return a.j.Yj(b).then(a.h,a.h)},pea=function(a,b,c){return a.j.ek(b,c).then(a.h,a.h)};Y3.prototype.g=function(a,b){this.m.then(function(c){c.g(a,b)})};var a4=function(a){this.j=W(a,AK).then()};a4.prototype.g=function(a,b){this.j.then(function(c){c.g(a,b)})};var b4=function(a){a4.call(this,a);this.g(4865)};u(b4,a4);k=b4.prototype;k.Zj=function(){var a=bt();chrome.system.cpu.getInfo(function(b){a.resolve(new T3(0,b))});return a.da};
k.rg=function(){if(!chrome.processes)return null;var a=Ka,b,c=function(d){lj(10);if(void 0==b)cj("mr.mirror.hangouts.HangoutsService").then(function(r){if(r=r.g)r=r.h.mediaSource,-1!=r.indexOf(":tab:")&&(r=r.split(":"),chrome.processes.getProcessIdForTab(parseInt(r[r.length-1],10),function(t){chrome.runtime.lastError||(b=t)}))});else{var e=d[b];if(e){var f=0,g=0,h=0,l;for(l in d){var p=d[l];"browser"==p.type?g=p.cpu:"gpu"==p.type?h=p.cpu:"extension"==p.type&&p.title==chrome.runtime.getManifest().name&&
(f=p.cpu)}a({tabCpuUsage:e.cpu,browserCpuUsage:g,gpuCpuUsage:h,pluginCpuUsage:f})}}};return{onMessage:{addListener:function(d){a=d;chrome.processes.onUpdated.addListener(c)}},disconnect:function(){chrome.processes.onUpdated.removeListener(c);a=Ka}}};k.Yj=function(){return c4()};k.ck=function(){return c4()};k.dk=function(){return c4()};k.bk=function(){return c4()};k.ek=function(){return c4()};k.ak=function(){return c4()};var c4=function(){return Vs(new T3(7,"This method is not intended to be implemented."))};var qea={TAB:0,tl:1},d4=function(a){vb("MediaRouter.Hangouts.Start.Success",a,qea)};var e4=function(a,b,c){Dj.call(this,a);var d=this;this.R=b;this.L=c;this.u=ab("mr.mirror.hangouts.HangoutSession");this.G=Sw(a.id);this.w=new Ab;this.m=!1;this.o=this.C=null;this.s=new Ab;this.s.g.catch(function(e){d.u.error("Error in cloud provider",e)});this.D=this.H=null;rea(this);this.g=null};u(e4,Dj);
e4.prototype.start=function(a){var b=this;hb(this.u,"Starting new hangouts mirror session.");this.C=a;if(this.g)return Promise.reject(Error("Mirroring already started"));if(this.o)return Promise.reject(Error("Session permanently stopped"));this.H=new lb("MediaRouter.Hangouts.Session.Launch");this.g=new K3(this.R,this.L,this.s.g,this.l.bind(this),this.W.bind(this));Wda(this.g,this.C).then(function(){hb(b.u,"Call connected");b.l(new Jj("SESSION_START_SUCCESS"));b.H.end();b.H=null;b.D=new rb("MediaRouter.Hangouts.Session.Length");
b.w.resolve(b)},function(c){b.w.reject(c);b.stop()});return this.w.g};e4.prototype.ap=function(){return!0};e4.prototype.gp=function(a){var b=this;return new Promise(function(c,d){b.g?Xda(b.g,a).then(function(){b.C=a;c()},d):d(Error("Mirroring was never started"))})};
e4.prototype.stop=function(){var a=this;hb(this.u,"Stopping hangouts mirror session.");this.w.reject(Error("Session stop requested."));this.D&&(this.D.end(),this.D=null);if(!this.g)return Promise.resolve();if(this.o)return this.o;this.w.reject(Error("Stopped"));this.s.reject(Error("Stopped"));var b=function(){try{a.G.dispose()}catch(c){a.u.error("Error while disposing message port",c)}try{a.g.dispose()}catch(c){a.u.error("Error while disposing call service",c)}};return this.o=new Promise(function(c,
d){setTimeout(function(){b();d(Error("Timed out before stopping"))},1E4);a.g.stop().then(function(){b();c()}).catch(function(e){b();d(e)})})};
var rea=function(a){a.G.onMessage=function(b){if("string"===typeof b){b=JSON.parse(b);var c=b.clientId;if(c){"client_connect"==b.type?a.l({message:{sessionId:"castouts"},clientId:c,type:"new_session"}):"v2_message"==b.type&&"STOP"==b.message.type&&a.l({message:"castouts",clientId:c,type:"remove_session"});return}}if(!b.type)throw Error("Message has no type.");switch(b.type){case "AUTH_READY":b=b.data;hb(a.u,"received auth ready message");a.s.resolve(b);break;case "MUTE":b.data&&(a.m=!!b.data.mute,
a.g&&Yda(a.g,a.m));break;case "STATUS_RESPONSE":hb(a.u,"route status response message");b.data&&(a.m=!!b.data.mute);break;case "STATUS_REQUEST":hb(a.u,"route status request message");a.l(new Jj("STATUS_RESPONSE",{routeDescription:a.h.description,mute:a.m}));break;default:throw Error("Unknown message type: "+b.type);}}};e4.prototype.l=function(a){hb(this.u,function(){return"sending message to mrp: "+JSON.stringify(a)});this.G.sendMessage(a,sea)};e4.prototype.W=function(a){this.m=a};var sea={channelType:"mesi"};var f4=function(a){this.g=a};f4.prototype.onError=function(a,b){401==b.g&&this.g(new Jj("REFRESH_AUTH"))};f4.prototype.onRequest=Ka;f4.prototype.C=Ka;var uea=function(a,b){var c=a.K,d=a.F;c=c&&c instanceof J?d?d.va.call(c):c.va():c;var e=null==a.H?{}:a.H;d=null==a.W?{}:a.W;var f=null==a.oa?"application/json":a.oa;if(null==a.D||a.D)a.F?(d.alt="proto",f="application/x-protobuf",e["X-Goog-Encode-Response-If-Executable"]="base64"):(d.alt="protojson",f="application/json+protobuf");var g=a.mb;if(0<g.length){e["MIME-Version"]="1.0";var h="END_OF_PART_"+we();e["Content-Type"]='multipart/related; boundary="'+h+'"';c=tea(f,c,g,h)}else"application/x-www-form-urlencoded"==
f&&(c=Rq(d),d.key?d={key:d.key}:d={}),null!=c&&(e["Content-Type"]=f);e["Accept-Language"]=a.Oc||"en";null!=b&&xc(b,function(l,p){null==e[p]&&(e[p]=l)});b={method:a.L,path:a.m,params:d,headers:e,body:c};id(ue(a.s||""))||(b.root=a.s||"");return b},tea=function(a,b,c,d){var e="\r\n\r\n--"+d+"\r\n";d="\r\n\r\n--"+d+"--\r\n";var f=e+"Content-Type: "+a+"\r\n\r\n"+b;Hb(c,function(g){f+=e+"Content-Type: "+g.type+"\r\nContent-transfer-encoding: "+g.g+"\r\n\r\n"+g.data+"\r\n\r\n"});return f+=d};var g4=function(a,b){b=void 0===b?!1:b;T.call(this);var c=this;this.h=bt();this.g=!1;this.j=b;a.then(function(d){c.m={Sv:d};c.g=!0;c.h.resolve(null)},Ka);this.u=Wf("realtime.network.CorsApiaryTransport")};u(g4,T);
g4.prototype.sendRequest=function(a,b){var c=this,d=bt();if(!this.g)return Yf(this.u,"Attempted to use Apiary transport for "+AM(a)+" when not ready."),d.reject(new wM("fatal","transport_unavailable",null,null)),d.da;var e=uea(a,b),f=e.headers;b=f["Content-Type"];var g=e.body;g&&!b&&(b="application/json",f["Content-Type"]=b);"application/json"!=b||e.params.alt||(e.params.alt="json");!g||!Pa(g)||g instanceof Uint8Array||(g=xs(g));Ec(f,"Authorization")&&(f["X-Goog-AuthUser"]=this.m.Sv);b=Sq(e.path,
e.params);var h=Wq(e.root,b),l=function(){return Lv(h,w(c.o,c,d,a,g&&g.length||0),e.method,g,f,(a.g?a.g.g:null)||0,!0)};this.j&&Uint8Array&&g&&1024<=g.length&&r2()?(b=g instanceof Uint8Array?g:bk(g),(new Uint8Array(b.length)).set(b),q2().then(function(p){f["Content-Encoding"]="gzip";g=p;l()},function(){l()})):l();return d.da};
g4.prototype.o=function(a,b,c,d){d=d.target;var e=Xv(d),f={body:e,headers:$v(d),status:d.Ia(),statusText:Wv(d)};c={Iv:c,ju:e&&e.length||0};c={ed:d.Ia(),headers:$v(d),xv:xs(f),Cb:null,extraData:c};if(null!=e)try{var g=b.F;if(g){if(Vv(d)){if("base64"==d.getResponseHeader("X-Goog-Safety-Encoding"))var h=ik(e);else a:{try{if(d.g&&"responseBody"in d.g){h=d.g.responseBody;break a}}catch(l){Zf(d.u,"Can not get responseBody: "+l.message)}h=null}c.Cb=g.Dh(h)}}else c.Cb=JSON.parse(e)}catch(l){C(this.u,"Failed to parse response for "+
AM(b)+": "+e,l)}4==Uv(d)&&Vv(d)?null==c.Cb?a.reject(new wM("retry","response_decoding",c.ed,c)):null!=c.Cb&&null!=c.Cb.error?(c.ed=c.Cb.error.code,C(this.u,AM(b)+" request failed "+c.Cb.error.code+": "+c.Cb.error.message),a.reject(new wM("retry","network_or_frontend",c.ed,c))):(g=Wf("realtime.network.ApiaryTransportHelper"),h=c.Cb,(b=(null==b.D?!0:b.D)&&!b.F)&&!Na(h)||!b&&!Pa(h)?(C(g,"Apiary returned bad response type; expected "+(b?"Array":"Object")+", received "+Ma(h)),a.reject(new wM("retry","response_format",
c.ed,c))):a.resolve(c)):(0>=d.Ia()&&(C(this.u,"Request failed: A network error occurred and the "+AM(b)+" request could not be completed"),c.ed=0),a.reject(new wM("retry","network_or_frontend",c.ed||d.m,c)))};var h4=function(a){g4.call(this,Us(0));this.l=a};u(h4,g4);h4.prototype.sendRequest=function(a,b){var c=this;return new Qs(function(d,e){c.l.getAuthToken().then(function(f){null==b&&(b={});b.Authorization="Bearer "+f;d(g4.prototype.sendRequest.call(c,a,b))},e)})};/*

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.

 -----------------------------------------------------------------------------
 Ported from zlib, which is under the following license
 https://github.com/madler/zlib/blob/master/zlib.h

 zlib.h -- interface of the 'zlib' general purpose compression library
   version 1.2.8, April 28th, 2013
   Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
   This software is provided 'as-is', without any express or implied
   warranty.  In no event will the authors be held liable for any damages
   arising from the use of this software.
   Permission is granted to anyone to use this software for any purpose,
   including commercial applications, and to alter it and redistribute it
   freely, subject to the following restrictions:
   1. The origin of this software must not be misrepresented; you must not
      claim that you wrote the original software. If you use this software
      in a product, an acknowledgment in the product documentation would be
      appreciated but is not required.
   2. Altered source versions must be plainly marked as such, and must not be
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
   Jean-loup Gailly        Mark Adler
   jloup@gzip.org          madler@alumni.caltech.edu
   The data format used by the zlib library is described by RFCs (Request for
   Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
   (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
*/
var i4={},vea="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;i4.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!==typeof c)throw new TypeError(c+"must be non-object");for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}}return a};i4.Wk=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};
var wea={hf:function(a,b,c,d,e){if(b.subarray&&a.subarray)a.set(b.subarray(c,c+d),e);else for(var f=0;f<d;f++)a[e+f]=b[c+f]},Bm:function(a){var b,c;var d=c=0;for(b=a.length;d<b;d++)c+=a[d].length;var e=new Uint8Array(c);d=c=0;for(b=a.length;d<b;d++){var f=a[d];e.set(f,c);c+=f.length}return e}},xea={hf:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},Bm:function(a){return[].concat.apply([],a)}};
i4.iw=function(){vea?(i4.le=Uint8Array,i4.sd=Uint16Array,i4.Ap=Int32Array,i4.assign(i4,wea)):(i4.le=Array,i4.sd=Array,i4.Ap=Array,i4.assign(i4,xea))};i4.iw();for(var j4=new i4.le(256),k4=0;256>k4;k4++)j4[k4]=252<=k4?6:248<=k4?5:240<=k4?4:224<=k4?3:192<=k4?2:1;j4[254]=j4[254]=1;
var l4=function(a){var b,c,d=a.length,e=0;for(b=0;b<d;b++){var f=a.charCodeAt(b);if(55296===(f&64512)&&b+1<d){var g=a.charCodeAt(b+1);56320===(g&64512)&&(f=65536+(f-55296<<10)+(g-56320),b++)}e+=128>f?1:2048>f?2:65536>f?3:4}var h=new i4.le(e);for(b=c=0;c<e;b++)f=a.charCodeAt(b),55296===(f&64512)&&b+1<d&&(g=a.charCodeAt(b+1),56320===(g&64512)&&(f=65536+(f-55296<<10)+(g-56320),b++)),128>f?h[c++]=f:(2048>f?h[c++]=192|f>>>6:(65536>f?h[c++]=224|f>>>12:(h[c++]=240|f>>>18,h[c++]=128|f>>>12&63),h[c++]=128|
f>>>6&63),h[c++]=128|f&63);return h};var m4={};m4=function(a,b,c,d){var e=a&65535|0;a=a>>>16&65535|0;for(var f;0!==c;){f=2E3<c?2E3:c;c-=f;do e=e+b[d++]|0,a=a+e|0;while(--f);e%=65521;a%=65521}return e|a<<16|0};for(var n4={},o4,p4=[],q4=0;256>q4;q4++){o4=q4;for(var r4=0;8>r4;r4++)o4=o4&1?3988292384^o4>>>1:o4>>>1;p4[q4]=o4}n4=function(a,b,c,d){c=d+c;for(a^=-1;d<c;d++)a=a>>>8^p4[(a^b[d])&255];return a^-1};var s4={};s4={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function t4(a){for(var b=a.length;0<=--b;)a[b]=0}var u4=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],v4=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],yea=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],w4=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],x4=Array(576);t4(x4);var y4=Array(60);t4(y4);var z4=Array(512);t4(z4);var A4=Array(256);t4(A4);var B4=Array(29);t4(B4);var C4=Array(30);t4(C4);
function D4(a,b,c,d,e){this.Yo=a;this.Ir=b;this.Hr=c;this.Er=d;this.At=e;this.Wm=a&&a.length}var E4,F4,G4;function H4(a,b){this.xm=a;this.wf=0;this.ge=b}function I4(a,b){a.tb[a.pending++]=b&255;a.tb[a.pending++]=b>>>8&255}function J4(a,b,c){a.Qb>16-c?(a.Zb|=b<<a.Qb&65535,I4(a,a.Zb),a.Zb=b>>16-a.Qb,a.Qb+=c-16):(a.Zb|=b<<a.Qb&65535,a.Qb+=c)}function K4(a,b,c){J4(a,c[2*b],c[2*b+1])}function L4(a,b){var c=0;do c|=a&1,a>>>=1,c<<=1;while(0<--b);return c>>>1}
function M4(a,b,c){var d=Array(16),e=0,f;for(f=1;15>=f;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[2*c+1],0!==e&&(a[2*c]=L4(d[e]++,e))}function N4(a){var b;for(b=0;286>b;b++)a.jc[2*b]=0;for(b=0;30>b;b++)a.ve[2*b]=0;for(b=0;19>b;b++)a.Tb[2*b]=0;a.jc[512]=1;a.Ed=a.Jf=0;a.Hc=a.matches=0}function O4(a){8<a.Qb?I4(a,a.Zb):0<a.Qb&&(a.tb[a.pending++]=a.Zb);a.Zb=0;a.Qb=0}function P4(a,b,c){O4(a);I4(a,c);I4(a,~c);i4.hf(a.tb,a.window,b,c,a.pending);a.pending+=c}
function Q4(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]}function R4(a,b,c){for(var d=a.ub[c],e=c<<1;e<=a.Ad;){e<a.Ad&&Q4(b,a.ub[e+1],a.ub[e],a.depth)&&e++;if(Q4(b,d,a.ub[e],a.depth))break;a.ub[c]=a.ub[e];c=e;e<<=1}a.ub[c]=d}
function S4(a,b,c){var d=0;if(0!==a.Hc){do{var e=a.tb[a.mg+2*d]<<8|a.tb[a.mg+2*d+1];var f=a.tb[a.Nj+d];d++;if(0===e)K4(a,f,b);else{var g=A4[f];K4(a,g+256+1,b);var h=u4[g];0!==h&&(f-=B4[g],J4(a,f,h));e--;g=256>e?z4[e]:z4[256+(e>>>7)];K4(a,g,c);h=v4[g];0!==h&&(e-=C4[g],J4(a,e,h))}}while(d<a.Hc)}K4(a,256,b)}
function T4(a,b){var c=b.xm,d=b.ge.Yo,e=b.ge.Wm,f=b.ge.Er,g,h=-1;a.Ad=0;a.tf=573;for(g=0;g<f;g++)0!==c[2*g]?(a.ub[++a.Ad]=h=g,a.depth[g]=0):c[2*g+1]=0;for(;2>a.Ad;){var l=a.ub[++a.Ad]=2>h?++h:0;c[2*l]=1;a.depth[l]=0;a.Ed--;e&&(a.Jf-=d[2*l+1])}b.wf=h;for(g=a.Ad>>1;1<=g;g--)R4(a,c,g);l=f;do g=a.ub[1],a.ub[1]=a.ub[a.Ad--],R4(a,c,1),d=a.ub[1],a.ub[--a.tf]=g,a.ub[--a.tf]=d,c[2*l]=c[2*g]+c[2*d],a.depth[l]=(a.depth[g]>=a.depth[d]?a.depth[g]:a.depth[d])+1,c[2*g+1]=c[2*d+1]=l,a.ub[1]=l++,R4(a,c,1);while(2<=
a.Ad);a.ub[--a.tf]=a.ub[1];g=b.xm;l=b.wf;d=b.ge.Yo;e=b.ge.Wm;f=b.ge.Ir;var p=b.ge.Hr,r=b.ge.At,t,A=0;for(t=0;15>=t;t++)a.ud[t]=0;g[2*a.ub[a.tf]+1]=0;for(b=a.tf+1;573>b;b++){var z=a.ub[b];t=g[2*g[2*z+1]+1]+1;t>r&&(t=r,A++);g[2*z+1]=t;if(!(z>l)){a.ud[t]++;var G=0;z>=p&&(G=f[z-p]);var N=g[2*z];a.Ed+=N*(t+G);e&&(a.Jf+=N*(d[2*z+1]+G))}}if(0!==A){do{for(t=r-1;0===a.ud[t];)t--;a.ud[t]--;a.ud[t+1]+=2;a.ud[r]--;A-=2}while(0<A);for(t=r;0!==t;t--)for(z=a.ud[t];0!==z;)d=a.ub[--b],d>l||(g[2*d+1]!==t&&(a.Ed+=(t-
g[2*d+1])*g[2*d],g[2*d+1]=t),z--)}M4(c,h,a.ud)}function U4(a,b,c){var d,e=-1,f=b[1],g=0,h=7,l=4;0===f&&(h=138,l=3);b[2*(c+1)+1]=65535;for(d=0;d<=c;d++){var p=f;f=b[2*(d+1)+1];++g<h&&p===f||(g<l?a.Tb[2*p]+=g:0!==p?(p!==e&&a.Tb[2*p]++,a.Tb[32]++):10>=g?a.Tb[34]++:a.Tb[36]++,g=0,e=p,0===f?(h=138,l=3):p===f?(h=6,l=3):(h=7,l=4))}}
function V4(a,b,c){var d,e=-1,f=b[1],g=0,h=7,l=4;0===f&&(h=138,l=3);for(d=0;d<=c;d++){var p=f;f=b[2*(d+1)+1];if(!(++g<h&&p===f)){if(g<l){do K4(a,p,a.Tb);while(0!==--g)}else 0!==p?(p!==e&&(K4(a,p,a.Tb),g--),K4(a,16,a.Tb),J4(a,g-3,2)):10>=g?(K4(a,17,a.Tb),J4(a,g-3,3)):(K4(a,18,a.Tb),J4(a,g-11,7));g=0;e=p;0===f?(h=138,l=3):p===f?(h=6,l=3):(h=7,l=4)}}}
function zea(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.jc[2*c])return 0;if(0!==a.jc[18]||0!==a.jc[20]||0!==a.jc[26])return 1;for(c=32;256>c;c++)if(0!==a.jc[2*c])return 1;return 0}var W4=!1;function X4(a,b,c){a.tb[a.mg+2*a.Hc]=b>>>8&255;a.tb[a.mg+2*a.Hc+1]=b&255;a.tb[a.Nj+a.Hc]=c&255;a.Hc++;0===b?a.jc[2*c]++:(a.matches++,b--,a.jc[2*(A4[c]+256+1)]++,a.ve[2*(256>b?z4[b]:z4[256+(b>>>7)])]++);return a.Hc===a.Cg-1};function Y4(a,b){a.msg=s4[b];return b}function Z4(a){for(var b=a.length;0<=--b;)a[b]=0}function $4(a){var b=a.state,c=b.pending;c>a.Pa&&(c=a.Pa);0!==c&&(i4.hf(a.Ge,b.tb,b.Pg,c,a.Af),a.Af+=c,b.Pg+=c,a.il+=c,a.Pa-=c,b.pending-=c,0===b.pending&&(b.Pg=0))}
function a5(a,b){var c=0<=a.pc?a.pc:-1,d=a.ba-a.pc,e=0;if(0<a.level){2===a.Ka.Ti&&(a.Ka.Ti=zea(a));T4(a,a.Vh);T4(a,a.Ah);U4(a,a.jc,a.Vh.wf);U4(a,a.ve,a.Ah.wf);T4(a,a.gm);for(e=18;3<=e&&0===a.Tb[2*w4[e]+1];e--);a.Ed+=3*(e+1)+14;var f=a.Ed+3+7>>>3;var g=a.Jf+3+7>>>3;g<=f&&(f=g)}else f=g=d+5;if(d+4<=f&&-1!==c)J4(a,b?1:0,3),P4(a,c,d);else if(4===a.kd||g===f)J4(a,2+(b?1:0),3),S4(a,x4,y4);else{J4(a,4+(b?1:0),3);c=a.Vh.wf+1;d=a.Ah.wf+1;e+=1;J4(a,c-257,5);J4(a,d-1,5);J4(a,e-4,4);for(f=0;f<e;f++)J4(a,a.Tb[2*
w4[f]+1],3);V4(a,a.jc,c-1);V4(a,a.ve,d-1);S4(a,a.jc,a.ve)}N4(a);b&&O4(a);a.pc=a.ba;$4(a.Ka)}function b5(a,b){a.tb[a.pending++]=b}function c5(a,b){a.tb[a.pending++]=b>>>8&255;a.tb[a.pending++]=b&255}
function d5(a,b){var c=a.kn,d=a.ba,e=a.yc,f=a.Gn,g=a.ba>a.Xb-262?a.ba-(a.Xb-262):0,h=a.window,l=a.ie,p=a.gd,r=a.ba+258,t=h[d+e-1],A=h[d+e];a.yc>=a.Tm&&(c>>=2);f>a.ma&&(f=a.ma);do{var z=b;if(h[z+e]===A&&h[z+e-1]===t&&h[z]===h[d]&&h[++z]===h[d+1]){d+=2;for(z++;h[++d]===h[++z]&&h[++d]===h[++z]&&h[++d]===h[++z]&&h[++d]===h[++z]&&h[++d]===h[++z]&&h[++d]===h[++z]&&h[++d]===h[++z]&&h[++d]===h[++z]&&d<r;);z=258-(r-d);d=r-258;if(z>e){a.vf=b;e=z;if(z>=f)break;t=h[d+e-1];A=h[d+e]}}}while((b=p[b&l])>g&&0!==--c);
return e<=a.ma?e:a.ma}
function e5(a){var b=a.Xb,c;do{var d=a.sp-a.ma-a.ba;if(a.ba>=b+(b-262)){i4.hf(a.window,a.window,b,b,0);a.vf-=b;a.ba-=b;a.pc-=b;var e=c=a.Qh;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.gd[--e],a.gd[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.Ka.Yb)break;e=a.Ka;c=a.window;f=a.ba+a.ma;var g=e.Yb;g>d&&(g=d);0===g?c=0:(e.Yb-=g,i4.hf(c,e.input,e.Ee,g,f),1===e.state.wrap?e.Fa=m4(e.Fa,c,g,f):2===e.state.wrap&&(e.Fa=n4(e.Fa,c,g,f)),e.Ee+=g,e.Ze+=g,c=g);a.ma+=c;if(3<=a.ma+a.insert)for(d=a.ba-
a.insert,a.Oa=a.window[d],a.Oa=(a.Oa<<a.zd^a.window[d+1])&a.yd;a.insert&&!(a.Oa=(a.Oa<<a.zd^a.window[d+3-1])&a.yd,a.gd[d&a.ie]=a.head[a.Oa],a.head[a.Oa]=d,d++,a.insert--,3>a.ma+a.insert););}while(262>a.ma&&0!==a.Ka.Yb)}
function f5(a,b){for(var c;;){if(262>a.ma){e5(a);if(262>a.ma&&0===b)return 1;if(0===a.ma)break}c=0;3<=a.ma&&(a.Oa=(a.Oa<<a.zd^a.window[a.ba+3-1])&a.yd,c=a.gd[a.ba&a.ie]=a.head[a.Oa],a.head[a.Oa]=a.ba);0!==c&&a.ba-c<=a.Xb-262&&(a.Ua=d5(a,c));if(3<=a.Ua)if(c=X4(a,a.ba-a.vf,a.Ua-3),a.ma-=a.Ua,a.Ua<=a.Rj&&3<=a.ma){a.Ua--;do a.ba++,a.Oa=(a.Oa<<a.zd^a.window[a.ba+3-1])&a.yd,a.gd[a.ba&a.ie]=a.head[a.Oa],a.head[a.Oa]=a.ba;while(0!==--a.Ua);a.ba++}else a.ba+=a.Ua,a.Ua=0,a.Oa=a.window[a.ba],a.Oa=(a.Oa<<a.zd^
a.window[a.ba+1])&a.yd;else c=X4(a,0,a.window[a.ba]),a.ma--,a.ba++;if(c&&(a5(a,!1),0===a.Ka.Pa))return 1}a.insert=2>a.ba?a.ba:2;return 4===b?(a5(a,!0),0===a.Ka.Pa?3:4):a.Hc&&(a5(a,!1),0===a.Ka.Pa)?1:2}
function g5(a,b){for(var c,d;;){if(262>a.ma){e5(a);if(262>a.ma&&0===b)return 1;if(0===a.ma)break}c=0;3<=a.ma&&(a.Oa=(a.Oa<<a.zd^a.window[a.ba+3-1])&a.yd,c=a.gd[a.ba&a.ie]=a.head[a.Oa],a.head[a.Oa]=a.ba);a.yc=a.Ua;a.Sn=a.vf;a.Ua=2;0!==c&&a.yc<a.Rj&&a.ba-c<=a.Xb-262&&(a.Ua=d5(a,c),5>=a.Ua&&(1===a.kd||3===a.Ua&&4096<a.ba-a.vf)&&(a.Ua=2));if(3<=a.yc&&a.Ua<=a.yc){d=a.ba+a.ma-3;c=X4(a,a.ba-1-a.Sn,a.yc-3);a.ma-=a.yc-1;a.yc-=2;do++a.ba<=d&&(a.Oa=(a.Oa<<a.zd^a.window[a.ba+3-1])&a.yd,a.gd[a.ba&a.ie]=a.head[a.Oa],
a.head[a.Oa]=a.ba);while(0!==--a.yc);a.Ae=0;a.Ua=2;a.ba++;if(c&&(a5(a,!1),0===a.Ka.Pa))return 1}else if(a.Ae){if((c=X4(a,0,a.window[a.ba-1]))&&a5(a,!1),a.ba++,a.ma--,0===a.Ka.Pa)return 1}else a.Ae=1,a.ba++,a.ma--}a.Ae&&(X4(a,0,a.window[a.ba-1]),a.Ae=0);a.insert=2>a.ba?a.ba:2;return 4===b?(a5(a,!0),0===a.Ka.Pa?3:4):a.Hc&&(a5(a,!1),0===a.Ka.Pa)?1:2}
function Aea(a,b){for(var c,d,e,f=a.window;;){if(258>=a.ma){e5(a);if(258>=a.ma&&0===b)return 1;if(0===a.ma)break}a.Ua=0;if(3<=a.ma&&0<a.ba&&(d=a.ba-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.ba+258;c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&d<e;);a.Ua=258-(e-d);a.Ua>a.ma&&(a.Ua=a.ma)}3<=a.Ua?(c=X4(a,1,a.Ua-3),a.ma-=a.Ua,a.ba+=a.Ua,a.Ua=0):(c=X4(a,0,a.window[a.ba]),a.ma--,a.ba++);if(c&&(a5(a,!1),0===a.Ka.Pa))return 1}a.insert=0;return 4===
b?(a5(a,!0),0===a.Ka.Pa?3:4):a.Hc&&(a5(a,!1),0===a.Ka.Pa)?1:2}function Bea(a,b){for(var c;;){if(0===a.ma&&(e5(a),0===a.ma)){if(0===b)return 1;break}a.Ua=0;c=X4(a,0,a.window[a.ba]);a.ma--;a.ba++;if(c&&(a5(a,!1),0===a.Ka.Pa))return 1}a.insert=0;return 4===b?(a5(a,!0),0===a.Ka.Pa?3:4):a.Hc&&(a5(a,!1),0===a.Ka.Pa)?1:2}function h5(a,b,c,d,e){this.vs=a;this.zt=b;this.Nt=c;this.yt=d;this.Kr=e}var i5;
i5=[new h5(0,0,0,0,function(a,b){var c=65535;for(c>a.Jc-5&&(c=a.Jc-5);;){if(1>=a.ma){e5(a);if(0===a.ma&&0===b)return 1;if(0===a.ma)break}a.ba+=a.ma;a.ma=0;var d=a.pc+c;if(0===a.ba||a.ba>=d)if(a.ma=a.ba-d,a.ba=d,a5(a,!1),0===a.Ka.Pa)return 1;if(a.ba-a.pc>=a.Xb-262&&(a5(a,!1),0===a.Ka.Pa))return 1}a.insert=0;if(4===b)return a5(a,!0),0===a.Ka.Pa?3:4;a.ba>a.pc&&a5(a,!1);return 1}),new h5(4,4,8,4,f5),new h5(4,5,16,8,f5),new h5(4,6,32,32,f5),new h5(4,4,16,16,g5),new h5(8,16,32,32,g5),new h5(8,16,128,128,
g5),new h5(8,32,128,256,g5),new h5(32,128,258,1024,g5),new h5(32,258,258,4096,g5)];
function Cea(){this.Ka=null;this.status=0;this.tb=null;this.wrap=this.pending=this.Pg=this.Jc=0;this.Ea=null;this.Vc=0;this.method=8;this.uf=-1;this.ie=this.nl=this.Xb=0;this.window=null;this.sp=0;this.head=this.gd=null;this.Gn=this.Tm=this.kd=this.level=this.Rj=this.kn=this.yc=this.ma=this.vf=this.ba=this.Ae=this.Sn=this.Ua=this.pc=this.zd=this.yd=this.yj=this.Qh=this.Oa=0;this.jc=new i4.sd(1146);this.ve=new i4.sd(122);this.Tb=new i4.sd(78);Z4(this.jc);Z4(this.ve);Z4(this.Tb);this.gm=this.Ah=this.Vh=
null;this.ud=new i4.sd(16);this.ub=new i4.sd(573);Z4(this.ub);this.tf=this.Ad=0;this.depth=new i4.sd(573);Z4(this.depth);this.Qb=this.Zb=this.insert=this.matches=this.Jf=this.Ed=this.mg=this.Hc=this.Cg=this.Nj=0}
function Dea(a,b){if(!a||!a.state||5<b||0>b)return a?Y4(a,-2):-2;var c=a.state;if(!a.Ge||!a.input&&0!==a.Yb||666===c.status&&4!==b)return Y4(a,0===a.Pa?-5:-2);c.Ka=a;var d=c.uf;c.uf=b;if(42===c.status)if(2===c.wrap)a.Fa=0,b5(c,31),b5(c,139),b5(c,8),c.Ea?(b5(c,(c.Ea.text?1:0)+(c.Ea.Xd?2:0)+(c.Ea.Ud?4:0)+(c.Ea.name?8:0)+(c.Ea.comment?16:0)),b5(c,c.Ea.time&255),b5(c,c.Ea.time>>8&255),b5(c,c.Ea.time>>16&255),b5(c,c.Ea.time>>24&255),b5(c,9===c.level?2:2<=c.kd||2>c.level?4:0),b5(c,c.Ea.os&255),c.Ea.Ud&&
c.Ea.Ud.length&&(b5(c,c.Ea.Ud.length&255),b5(c,c.Ea.Ud.length>>8&255)),c.Ea.Xd&&(a.Fa=n4(a.Fa,c.tb,c.pending,0)),c.Vc=0,c.status=69):(b5(c,0),b5(c,0),b5(c,0),b5(c,0),b5(c,0),b5(c,9===c.level?2:2<=c.kd||2>c.level?4:0),b5(c,3),c.status=113);else{var e=8+(c.nl-8<<4)<<8;e|=(2<=c.kd||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.ba&&(e|=32);c.status=113;c5(c,e+(31-e%31));0!==c.ba&&(c5(c,a.Fa>>>16),c5(c,a.Fa&65535));a.Fa=1}if(69===c.status)if(c.Ea.Ud){for(e=c.pending;c.Vc<(c.Ea.Ud.length&65535)&&(c.pending!==
c.Jc||(c.Ea.Xd&&c.pending>e&&(a.Fa=n4(a.Fa,c.tb,c.pending-e,e)),$4(a),e=c.pending,c.pending!==c.Jc));)b5(c,c.Ea.Ud[c.Vc]&255),c.Vc++;c.Ea.Xd&&c.pending>e&&(a.Fa=n4(a.Fa,c.tb,c.pending-e,e));c.Vc===c.Ea.Ud.length&&(c.Vc=0,c.status=73)}else c.status=73;if(73===c.status)if(c.Ea.name){e=c.pending;do{if(c.pending===c.Jc&&(c.Ea.Xd&&c.pending>e&&(a.Fa=n4(a.Fa,c.tb,c.pending-e,e)),$4(a),e=c.pending,c.pending===c.Jc)){var f=1;break}f=c.Vc<c.Ea.name.length?c.Ea.name.charCodeAt(c.Vc++)&255:0;b5(c,f)}while(0!==
f);c.Ea.Xd&&c.pending>e&&(a.Fa=n4(a.Fa,c.tb,c.pending-e,e));0===f&&(c.Vc=0,c.status=91)}else c.status=91;if(91===c.status)if(c.Ea.comment){e=c.pending;do{if(c.pending===c.Jc&&(c.Ea.Xd&&c.pending>e&&(a.Fa=n4(a.Fa,c.tb,c.pending-e,e)),$4(a),e=c.pending,c.pending===c.Jc)){f=1;break}f=c.Vc<c.Ea.comment.length?c.Ea.comment.charCodeAt(c.Vc++)&255:0;b5(c,f)}while(0!==f);c.Ea.Xd&&c.pending>e&&(a.Fa=n4(a.Fa,c.tb,c.pending-e,e));0===f&&(c.status=103)}else c.status=103;103===c.status&&(c.Ea.Xd?(c.pending+2>
c.Jc&&$4(a),c.pending+2<=c.Jc&&(b5(c,a.Fa&255),b5(c,a.Fa>>8&255),a.Fa=0,c.status=113)):c.status=113);if(0!==c.pending){if($4(a),0===a.Pa)return c.uf=-1,0}else if(0===a.Yb&&(b<<1)-(4<b?9:0)<=(d<<1)-(4<d?9:0)&&4!==b)return Y4(a,-5);if(666===c.status&&0!==a.Yb)return Y4(a,-5);if(0!==a.Yb||0!==c.ma||0!==b&&666!==c.status){d=2===c.kd?Bea(c,b):3===c.kd?Aea(c,b):i5[c.level].Kr(c,b);if(3===d||4===d)c.status=666;if(1===d||3===d)return 0===a.Pa&&(c.uf=-1),0;if(2===d&&(1===b?(J4(c,2,3),K4(c,256,x4),16===c.Qb?
(I4(c,c.Zb),c.Zb=0,c.Qb=0):8<=c.Qb&&(c.tb[c.pending++]=c.Zb&255,c.Zb>>=8,c.Qb-=8)):5!==b&&(J4(c,0,3),P4(c,0,0),3===b&&(Z4(c.head),0===c.ma&&(c.ba=0,c.pc=0,c.insert=0))),$4(a),0===a.Pa))return c.uf=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(b5(c,a.Fa&255),b5(c,a.Fa>>8&255),b5(c,a.Fa>>16&255),b5(c,a.Fa>>24&255),b5(c,a.Ze&255),b5(c,a.Ze>>8&255),b5(c,a.Ze>>16&255),b5(c,a.Ze>>24&255)):(c5(c,a.Fa>>>16),c5(c,a.Fa&65535));$4(a);0<c.wrap&&(c.wrap=-c.wrap);return 0!==c.pending?0:1};var j5={};j5=function(){this.input=null;this.Ze=this.Yb=this.Ee=0;this.Ge=null;this.il=this.Pa=this.Af=0;this.msg="";this.state=null;this.Ti=2;this.Fa=0};var k5=Object.prototype.toString;
function l5(a){if(!(this instanceof l5))return new l5(a);a=this.options=i4.assign({level:-1,method:8,vr:16384,je:15,Ct:8,kd:0,cp:""},a||{});a.raw&&0<a.je?a.je=-a.je:a.As&&0<a.je&&16>a.je&&(a.je+=16);this.we=0;this.msg="";this.ended=!1;this.lg=[];this.Ka=new j5;this.Ka.Pa=0;var b=this.Ka;var c=a.level,d=a.method,e=a.je,f=a.Ct,g=a.kd;if(b){var h=1;-1===c&&(c=6);0>e?(h=0,e=-e):15<e&&(h=2,e-=16);if(1>f||9<f||8!==d||8>e||15<e||0>c||9<c||0>g||4<g)b=Y4(b,-2);else{8===e&&(e=9);var l=new Cea;b.state=l;l.Ka=
b;l.wrap=h;l.Ea=null;l.nl=e;l.Xb=1<<l.nl;l.ie=l.Xb-1;l.yj=f+7;l.Qh=1<<l.yj;l.yd=l.Qh-1;l.zd=~~((l.yj+3-1)/3);l.window=new i4.le(2*l.Xb);l.head=new i4.sd(l.Qh);l.gd=new i4.sd(l.Xb);l.Cg=1<<f+6;l.Jc=4*l.Cg;l.tb=new i4.le(l.Jc);l.mg=1*l.Cg;l.Nj=3*l.Cg;l.level=c;l.kd=g;l.method=d;if(b&&b.state){b.Ze=b.il=0;b.Ti=2;c=b.state;c.pending=0;c.Pg=0;0>c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.Fa=2===c.wrap?0:1;c.uf=0;if(!W4){d=Array(16);for(f=g=0;28>f;f++)for(B4[f]=g,e=0;e<1<<u4[f];e++)A4[g++]=f;A4[g-
1]=f;for(f=g=0;16>f;f++)for(C4[f]=g,e=0;e<1<<v4[f];e++)z4[g++]=f;for(g>>=7;30>f;f++)for(C4[f]=g<<7,e=0;e<1<<v4[f]-7;e++)z4[256+g++]=f;for(e=0;15>=e;e++)d[e]=0;for(e=0;143>=e;)x4[2*e+1]=8,e++,d[8]++;for(;255>=e;)x4[2*e+1]=9,e++,d[9]++;for(;279>=e;)x4[2*e+1]=7,e++,d[7]++;for(;287>=e;)x4[2*e+1]=8,e++,d[8]++;M4(x4,287,d);for(e=0;30>e;e++)y4[2*e+1]=5,y4[2*e]=L4(e,5);E4=new D4(x4,u4,257,286,15);F4=new D4(y4,v4,0,30,15);G4=new D4([],yea,0,19,7);W4=!0}c.Vh=new H4(c.jc,E4);c.Ah=new H4(c.ve,F4);c.gm=new H4(c.Tb,
G4);c.Zb=0;c.Qb=0;N4(c);c=0}else c=Y4(b,-2);0===c&&(b=b.state,b.sp=2*b.Xb,Z4(b.head),b.Rj=i5[b.level].zt,b.Tm=i5[b.level].vs,b.Gn=i5[b.level].Nt,b.kn=i5[b.level].yt,b.ba=0,b.pc=0,b.ma=0,b.insert=0,b.Ua=b.yc=2,b.Ae=0,b.Oa=0);b=c}}else b=-2;if(0!==b)throw Error(s4[b]);a.it&&(b=this.Ka)&&b.state&&2===b.state.wrap&&(b.state.Ea=a.it);if(a.ng){var p;"string"===typeof a.ng?p=l4(a.ng):"[object ArrayBuffer]"===k5.call(a.ng)?p=new Uint8Array(a.ng):p=a.ng;a=this.Ka;f=p;g=f.length;if(a&&a.state)if(p=a.state,
b=p.wrap,2===b||1===b&&42!==p.status||p.ma)b=-2;else{1===b&&(a.Fa=m4(a.Fa,f,g,0));p.wrap=0;g>=p.Xb&&(0===b&&(Z4(p.head),p.ba=0,p.pc=0,p.insert=0),c=new i4.le(p.Xb),i4.hf(c,f,g-p.Xb,p.Xb,0),f=c,g=p.Xb);c=a.Yb;d=a.Ee;e=a.input;a.Yb=g;a.Ee=0;a.input=f;for(e5(p);3<=p.ma;){f=p.ba;g=p.ma-2;do p.Oa=(p.Oa<<p.zd^p.window[f+3-1])&p.yd,p.gd[f&p.ie]=p.head[p.Oa],p.head[p.Oa]=f,f++;while(--g);p.ba=f;p.ma=2;e5(p)}p.ba+=p.ma;p.pc=p.ba;p.insert=p.ma;p.ma=0;p.Ua=p.yc=2;p.Ae=0;a.Ee=d;a.input=e;a.Yb=c;p.wrap=b;b=0}else b=
-2;if(0!==b)throw Error(s4[b]);this.pK=!0}}
l5.prototype.push=function(a,b){var c=this.Ka,d=this.options.vr;if(this.ended)return!1;var e=b===~~b?b:!0===b?4:0;"string"===typeof a?c.input=l4(a):"[object ArrayBuffer]"===k5.call(a)?c.input=new Uint8Array(a):c.input=a;c.Ee=0;c.Yb=c.input.length;do{0===c.Pa&&(c.Ge=new i4.le(d),c.Af=0,c.Pa=d);a=Dea(c,e);if(1!==a&&0!==a)return m5(this,a),this.ended=!0,!1;if(0===c.Pa||0===c.Yb&&(4===e||2===e))if("string"===this.options.cp){var f=i4.Wk(c.Ge,c.Af);b=f;f=f.length;if(65537>f&&(b.subarray||!b.subarray))b=
String.fromCharCode.apply(null,i4.Wk(b,f));else{for(var g="",h=0;h<f;h++)g+=String.fromCharCode(b[h]);b=g}this.lg.push(b)}else b=i4.Wk(c.Ge,c.Af),this.lg.push(b)}while((0<c.Yb||0===c.Pa)&&1!==a);if(4===e)return(c=this.Ka)&&c.state?(d=c.state.status,42!==d&&69!==d&&73!==d&&91!==d&&103!==d&&113!==d&&666!==d?a=Y4(c,-2):(c.state=null,a=113===d?Y4(c,-3):0)):a=-2,m5(this,a),this.ended=!0,0===a;2===e&&(m5(this,0),c.Pa=0);return!0};
var m5=function(a,b){0===b&&(a.result="string"===a.options.cp?a.lg.join(""):i4.Bm(a.lg));a.lg=[];a.we=b;a.msg=a.Ka.msg};function Eea(a){var b={};b=b||{};b.As=!0;b=new l5(b);b.push(a,!0);if(b.we)throw b.msg||s4[b.we];return b.result};var n5=function(){};n5.prototype.g=function(a){return Promise.resolve(Eea(Uint8Array.from(bk(a))))};n5.prototype.Yd=function(){try{return!!Uint8Array.from}catch(a){return!1}};var o5=function(){this.h=new n5};o5.prototype.g=function(a){1024<=4*a.length&&r2()?(Uint8Array.from(bk(a)),a=q2()):a=this.h.g(a);return a};o5.prototype.Yd=function(a){return 1024<=a&&r2()||this.h.Yd(a)};function p5(){}y(p5,KS);p5.prototype.init=RS();p5.prototype.Qg=RS();p5.prototype.Rg=RS();Wf("realtime.util.GlobalJspbRegistry");var Fea=new Set,Gea=new Set,q5=null,Hea=function(a){if(!q5){for(var b=n(Fea),c=b.next();!c.done;c=b.next())a(5959,c.value);b=n(Gea);for(c=b.next();!c.done;c=b.next())a(5960,c.value)}q5=a};var r5=function(a,b,c){pv.call(this);var d=this;this.m=new nA(300);this.s=new nA(300);this.o="";this.j=[];TR(this,{recentImpressions:function(){return d.m.Ja()},roboHippoImpressions:function(){return d.s.Ja()}});this.C=new Set;this.l=Iea(c);null!=b&&Jea(this,b);TS(this);this.nf.init(a)};u(r5,pv);
var Iea=function(a){var b=window.location.pathname,c=window.location.search;a||(b=(b=/\/u\/(\d+)\/?/.exec(b))&&b[1],a=(c=/[\?&]authuser=(\d+)/.exec(c))&&c[1]||b||"0");c=new eU(50,a);c.o=new o5;c.W=!0;cU(c,18E4);return c},Kea=function(a){var b=function(c,d){var e=new r5(c);Hea(function(f,g){e.g(f,{Ub:g})});c.registerService(d,e);return e};fK(a,zK)||tK(a,zK,function(c){return b(c,AK)});fK(a,AK)||tK(a,AK,function(c){return b(c,zK)})},s5=function(a){var b=new RJ;aM(b);fB(Q(b,dB,5),iM());O(Q(b,dB,5),3,
1);a.nf.Qg(b);a.j.forEach(function(c){return c.Qg(b)});return b},Jea=function(a,b){b.then(function(c){null!=c&&(this.l.l=c)},void 0,a)};
r5.prototype.g=function(a,b){b=void 0===b?{}:b;var c=s5(this);var d=new HJ;d=O(d,1,a);var e=$L(c);S(e,8,d);if(b.sessionId){var f=bM(c);O(f,2,b.sessionId)}b.xc&&(f=bM(c),O(f,5,b.xc));b.gb&&(f=bM(c),O(f,3,b.gb));b.Fc&&(f=cM(d),O(f,2,b.Fc));b.Ub&&(f=cM(d),O(f,1,b.Ub));b.hr&&S(e,16,b.hr);b.Hw&&S(e,18,b.Hw);b.Gw&&S(e,17,b.Gw);b.uo&&(d=cM(d),S(d,6,b.uo));b.Bt&&(d=bM(c),O(d,16,b.Bt));d=SJ[a];1!=d&&(e=Date.now(),e=new Date(e),e=(new VL).format(e),e==this.o?f=a+"@":(f=a+"@"+e,this.o=e),this.m.add(f),Lea.has(a)&&
this.s.add(f));t5(this,c,a,b.timestamp);8<=d&&this.M("oa")};r5.prototype.h=function(a,b){this.C.has(a)||(this.g(a,b),this.C.add(a))};var IX=function(a,b){var c=s5(a),d=$L(c);S(d,14,b);t5(a,c)},t5=function(a,b,c,d){a.nf.Rg(b);a.j.forEach(function(f){return f.Rg(b)});var e=RT(new QT,b.va());c&&O(e,11,c);d&&O(e,1,d.toString());a.l.log(e)},$M=function(a,b){a.j.includes(b)||a.j.push(b)};MS(p5,r5);var Lea=new Set([4179,4202,4208,4209,4213,4223,4354,4461,4463,4475,4479,4554,4557]);var u5=function(a){T.call(this);var b=this;this.s=new nA(10);this.o=a&&W(a,zK);this.D=a&&W(a,AK);this.j=new rU("realtime.analytics.networkmonitoring.RequestResponseMonitor");this.g=null;a&&W(a,CK).then(function(c){b.g=c});this.h=0;this.l=new lL(this);this.m=this.l.signal()};u(u5,T);var Mea=function(a){fK(a,yK)||tK(a,yK,function(b){return new u5(b)})},Nea=m("HTTP Request [;] ; ; (deadline=;ms, remainingRetries=;)".split(";"));
u5.prototype.onRequest=function(a){this.j.g(Nea,a.h,a.L,a.m,a.g?a.g.g:null,null!=a.j?a.j:0)};var Oea=m(["HTTP Response [","] ",""]);
u5.prototype.C=function(a,b){this.j.g(Oea,a.h,b.ed);var c={Te:a.w,Ef:Xa(),response:b};a.o.unshift(c);c=v5(a);w5(this,"VCichb",c);c=AM(a);var d=a.w,e=Xa();x5(this,c,840,d,841,e);c=AM(a);d=y5(a);e=Xa();x5(this,c,843,d,844,e);this.g&&(c=(c=b instanceof wM?b.response:b)&&c.extraData)&&(a=AM(a),a=z5[a]?z5[a]:a.includes("media_sessions")?3:a.includes("media_streams")?4:a.includes("hangouts/bulk")?5:9,d=c.Iv||0,e=iU(this.g,a),e.o++,e.m+=d,e.h+=d,b=!(b instanceof wM),c=c.ju||0,a=iU(this.g,a),b?a.s++:a.w++,
a.l+=c,a.g+=c);this.h&&(this.h=0,this.l.V(this.m,0))};var Pea=m(["HTTP Error [","] "," "," (httpStatusCode=",")"]);
u5.prototype.onError=function(a,b){this.j.Ra(Pea,a.h,b.status,b.Yc,b.g);var c={Te:a.w,Ef:Xa(),response:b};a.o.unshift(c);c=AM(a);var d=a.w,e=Xa();x5(this,c,840,d,842,e);if("retry"!=b.status||0==(null!=a.j?a.j:0))Qea.has(b.Yc),this.s.add({sendTimestamp:a.w,receiveTimestamp:Xa(),name:AM(a),req:Rea(a),resp:A5(b),attemptsHistory:Sea(a.o)}),b=v5(a),w5(this,"oZuDyc",b),b=AM(a),a=y5(a),c=Xa(),x5(this,b,843,a,845,c),this.h++,this.l.V(this.m,this.h)};
u5.prototype.search=function(a,b){b=void 0===b?10:b;b=0>b?10:b;var c=this.s.Ja().filter(function(d){return 0<=a.indexOf(d.resp.code)});return c.slice(-Math.min(c.length,b))};
var w5=function(a,b,c){a.D&&a.D.then(function(d){return d.g(Tea[b],{uo:c})})},x5=function(a,b,c,d,e,f){if(a.o){var g=new tR([Uea[b]||26]);uR(g,c,d);uR(g,e,f);a.o.then(function(h){return IX(h,vR(g))})}},y5=function(a){var b=a.o;return 0<b.length?b[b.length-1].Te:a.w},Rea=function(a){return{name:(a.s||"")+a.m,body:xs(B5(a.K)),head:null==a.H?{}:a.H,httpMethod:a.L,remainRetries:null!=a.j?a.j:0}},A5=function(a){var b=a instanceof wM?a.response:a;b={code:b&&b.ed,body:b&&xs(b.Cb),head:b&&b.headers};a instanceof
wM&&(b.code=a.g,b.status=a.status,b.errorType=a.Yc);return b},Sea=function(a){var b=[];Hb(a,function(c){var d=A5(c.response);b.push({Te:(new Date(c.Te)).toString(),Ef:(new Date(c.Ef)).toString(),response:d})});return b},B5=function(a){if(a){if("function"===typeof a.va)return JSON.parse(a.va());if(Na(a))return Kb(a,function(b){return B5(b)})}return a},v5=function(a){var b=new GJ,c=a.o;O(b,1,AM(a));O(b,2,c.length);var d=[];c.forEach(function(e){e=e.response instanceof wM?e.response.g:e.response.ed;
var f=new EJ;Fc(Cu,e)?O(f,1,e):O(f,2,Vea[e||-1]||1);d.push(f)});wl(b,3,d);return b},C5={},Tea=(C5.VCichb=4630,C5.oZuDyc=4631,C5),Uea={"hangouts/bulk":27,"hangouts/ping":28,"media_sessions/add":29,"media_sessions/query":30,"media_sessions/modify":31,"media_sessions/log":32,"media_sessions/callperf":33,"media_streams/search":34,"media_streams/add":35,"media_streams/modify":36},D5={},Vea=(D5[0]=0,D5[1]=2,D5[2]=3,D5[3]=4,D5[4]=5,D5[5]=6,D5[6]=7,D5[7]=8,D5[8]=9,D5[9]=10,D5),z5={"media_sessions/callperf":1,
"media_sessions/query":2},Qea=new Set("backend bad_request network_or_frontend request_queuing response_callback response_decoding response_format processing internal_server_error service_unavailable not_found".split(" "));var E5=function(){QM.call(this);this.g=null;this.j=bt();this.h=this.j.da};u(E5,QM);var Wea=function(a){fK(a,BK)||tK(a,BK,function(b){var c=new E5;W(b,zK).then(function(d){$M(d,new F5(c))});return c})},F5=function(a){this.g=a};F5.prototype.Qg=function(a){var b=this.g.g;null!=b&&(a=bM(a),O(a,5,b))};F5.prototype.Rg=function(){};var C0=function(a){U.call(this,"cb");this.xc=a};u(C0,U);var H5=function(){T.call(this);this.g=new G5};u(H5,T);var G5=function(){this.g=0;for(this.h=new nA(3);3>this.h.wa();)this.h.add(0)};G5.prototype.update=function(a){var b=this.h.add(a),c=this.h.wa();void 0!=b?(this.g+=(a-b)/c,this.g=0<=this.g?this.g:0):this.g=(this.g*(c-1)+a)/c;return this.g};G5.prototype.get=function(){return this.g};var K5=function(a){QM.call(this);var b=this;this.F=a;this.m=new Map;this.s=new Map;this.j=[];this.H=new Map;this.R=new Map;this.C=!1;this.g=new I5;this.l=new I5;this.G=new X;this.N(this.G);this.L=function(c){J5(b,c)};this.h=1;this.u=new rU("realtime.media.audio.service.AudioVolumeService");this.o=null};u(K5,QM);
var Xea=m(["Register participant ",""]),Yea=function(a,b){var c=J5(a,new U("",b));a.G.listen(b,["Ia","Ka"],a.L);a.u.g(Xea,c)},$ea=function(a,b){a.g.reset();a.l.reset();a.s.forEach(function(c,d){var e=b.has(c)?b.get(c).volume:0;if(a.h&1){var f=a.m.get(d).g.update(e);if(a.g.l<f){var g=a.g;g.j=d;g.l=f}}a.h&2&&(a.H.set(d,e),b.has(c)&&b.get(c).Wh&&(c=a.l,c.j=d,c.l=e))});Zea(a)},afa=m(["Use backend loudest info."]),Faa=function(a){a.h|=2;YU(a.F);W(a.F,XU).then(function(b){a.o=b});a.u.g(afa)},Zea=function(a){a.C||
(sv(a.W,0,a),a.C=!0)},bfa=m(["Stream updated: id: "," oldSsrc: "," newSsrc: ",""]),J5=function(a,b){b=b.target;var c=cfa(b);if(null!=c){a.h&1&&(a.m.has(c)||a.m.set(c,new H5));a.h&2&&a.H.set(c,0);var d=a.s.get(c)||null,e=dfa(b);null!=e&&a.s.set(c,e);e!==d&&a.u.h(bfa,c,d,e);d=a.j.find(function(f){return f.Cf===c});d||(d={Cf:c,Uh:Xa(),muted:!1,Zd:null},a.j.push(d));d.muted=efa(b)}return c};
K5.prototype.W=function(){this.C=!1;ffa(this);if(this.h&1){var a=this.g.g;a=a&&this.m.has(a)?this.m.get(a).g.get():null;(null==a||null===this.g.h||this.g.h!==this.g.j||.6<=this.g.l-a)&&L5(this,this.g)}this.h&2&&L5(this,this.l)};
var gfa=m(["Backend new speaking participant: ",""]),hfa=m(["Client new speaking participant: ",""]),L5=function(a,b){if(b.g!==b.h){b.g=b.h;var c=b.g?a.s.get(b.g)||null:null;a.h&2?b===a.l?(a.u.g(gfa,b.g),a.M(new M5(b.g)),a.o&&c&&aV(a.o,c)):a.o&&c&&bV(a.o,c):(a.u.g(hfa,b.g),a.M(new M5(b.g)));b.g&&(c=a.j.find(function(d){return d.Cf===b.g}),c.Zd=Xa(),a.R.set(c.Cf,c.Zd))}},cfa=function(a){return(a=a.g||null)?a.Y():null},dfa=function(a){a=(a=(a=a.g||null)&&a.Na()?a.Na().getInfo():null)?a.fb():[];return 0<
a.length?a[0]:null},efa=function(a){return(a=(a=a.g||null)&&a.Na()?a.Na().getInfo():null)?a.lc():!1},ffa=function(a){if(a.h&1){var b=a.g.j;0!==a.j.length&&a.j.every(function(d){return d.muted})&&(a.j.sort(N5),b=a.j[0].Cf);a.g.h=b}if(a.h&2){var c=a.l.j;0===a.j.length||c||(a.j.sort(N5),a.j.some(function(d){a.s.has(d.Cf)&&(c=d.Cf);return!!c}));a.l.h=c}},ifa=function(a){fK(a,EK)||tK(a,EK,function(b){return new K5(b)})},M5=function(a){U.call(this,"db");this.fa=a};u(M5,U);
var N5=function(a,b){return a.Zd&&b.Zd?-hc(a.Zd,b.Zd)||hc(a.Uh,b.Uh):a.Zd?-1:b.Zd?1:hc(a.Uh,b.Uh)},I5=function(){this.j=null;this.l=-1;this.g=this.h=null};I5.prototype.reset=function(){this.j=null;this.l=-1;this.h=null};var O5=function(a){K(this,a,0,-1,null,null)};y(O5,J);O5.prototype.Y=function(){return M(this,1,"")};var P5=function(a,b){return O(a,1,b)};k=O5.prototype;k.Pm=function(){return M(this,32,"")};k.li=function(a){return O(this,32,a)};k.gt=function(){return null!=L(this,32)};k.getName=function(){return M(this,29,"")};k.zk=function(a){return O(this,29,a)};k.Pu=function(){return null!=L(this,29)};k.Ju=function(){return M(this,38,"")};k.Zn=function(a){return O(this,38,a)};
k.Ou=function(){return null!=L(this,38)};k.Hu=function(){return M(this,2,"")};k.xk=function(a){return O(this,2,a)};k.Mu=function(){return null!=L(this,2)};k.Iu=function(){return M(this,3,0)};k.yk=function(a){return O(this,3,a)};k.Nu=function(){return null!=L(this,3)};k.Lu=function(){return M(this,28,0)};k.ci=function(a){return O(this,28,a)};k.ft=function(){return null!=L(this,28)};k.bs=function(){return ol(this,5,!1)};k.ji=function(a){return O(this,5,a)};k.Ms=function(){return null!=L(this,5)};
k.Im=function(){return ol(this,6,!1)};k.Ko=function(a){return O(this,6,a)};k.Ns=function(){return null!=L(this,6)};k.Wr=function(){return ol(this,33,!1)};k.Ho=function(a){return O(this,33,a)};k.Is=function(){return null!=L(this,33)};k.es=function(){return ol(this,17,!1)};k.Lo=function(a){return O(this,17,a)};k.Us=function(){return null!=L(this,17)};k.Xr=function(){return ol(this,34,!1)};k.Io=function(a){return O(this,34,a)};k.Js=function(){return null!=L(this,34)};
k.Zr=function(){return ol(this,4,!1)};k.ii=function(a){return O(this,4,a)};k.Ls=function(){return null!=L(this,4)};k.cs=function(){return ol(this,7,!1)};k.Qk=function(a){return O(this,7,a)};k.Os=function(){return null!=L(this,7)};k.Ku=function(){return ol(this,12,!1)};k.Sg=function(a){return O(this,12,a)};k.Vm=function(){return null!=L(this,12)};k.Jm=function(){return ol(this,13,!1)};k.Ue=function(a){return O(this,13,a)};k.Qs=function(){return null!=L(this,13)};k.ds=function(){return ol(this,10,!1)};
k.aw=function(a){return O(this,10,a)};k.Ps=function(){return null!=L(this,10)};k.Km=function(){return ol(this,14,!1)};k.Rk=function(a){return O(this,14,a)};k.Rs=function(){return null!=L(this,14)};k.Lm=function(){return ol(this,15,!1)};k.Gf=function(a){return O(this,15,a)};k.Ss=function(){return null!=L(this,15)};k.Mm=function(){return ol(this,16,!1)};k.ki=function(a){return O(this,16,a)};k.Ts=function(){return null!=L(this,16)};k.wk=function(){return pl(this,35)};
k.Wo=function(a){return O(this,35,a)};k.ht=function(){return null!=L(this,35)};k.fs=function(){return M(this,36,0)};k.Mo=function(a){return O(this,36,a)};k.Vs=function(){return null!=L(this,36)};k.Yr=function(){return ol(this,37,!1)};k.Jo=function(a){return O(this,37,a)};k.Ks=function(){return null!=L(this,37)};k.Yn=function(){return M(this,30,0)};k.Ak=function(a){return O(this,30,a)};k.Qu=function(){return null!=L(this,30)};var S5=function(a,b,c,d,e,f){X.call(this);var g=this;this.j=c;this.g=new Map;this.h=null;this.l=d;Promise.all([e,a,f]).then(function(h){h=n(h);var l=h.next().value,p=h.next().value,r=h.next().value;if(!g.w()){b.h.attach(function(A){A=A.fa;Q5(g,A,p.ze(A),l,r)});b.Xc.attach(function(A){A=A.fa;var z=g.g.get(A);z&&(us(z),g.g.delete(A))},g);h=n(b.getAll());for(var t=h.next();!t.done;t=h.next())t=t.value.fa,Q5(g,t,p.ze(t),l,r);g.listen(p,"M",function(A){var z=A.fa;A=A.Zk;b.get(z)&&Q5(g,z,A,l,r)});g.listen(p,
"N",function(A){A=A.fa;b.get(A)&&Q5(g,A,null,l,r)});g.listen(r,"db",function(A){A=A.fa;g.h!==A&&(R5(g,g.h,!1),g.h=A,R5(g,g.h,!0))})}})};u(S5,X);var R5=function(a,b,c){b&&a.g.get(b)&&a.j.V(P5(new O5,b).Jo(c))},Q5=function(a,b,c,d,e){var f=a.g.get(b);if(f){if(f.Zk===c)return;us(f);a.g.delete(b)}c&&(a.g.set(b,new T5(b,c,a.j,a.l,d,e)),a.h===b&&R5(a,b,!0))};S5.prototype.aa=function(){X.prototype.aa.call(this);for(var a=n(this.g.values()),b=a.next();!b.done;b=a.next())us(b.value);this.g.clear()};
var T5=function(a,b,c,d,e,f){T.call(this);this.Zk=b;U5(this,b.l,function(g,h){g=P5(new O5,a).Lo("li"!==g).Io("en"!==g);switch(h){case "ca":g.Sg(!1);break;case "sc":g.Sg(!0)}c.V(g)});U5(this,b.j,function(g){c.V(P5(new O5,a).Ko("li"!==g).ji("li"===g).Ho("en"!==g))});b=Taa(d);Laa(b,e,a);this.N(b);xL(b.o,function(g){g=g.np;c.V(P5(new O5,a).Wo(g))},this);Yea(f,b)};u(T5,T);
var U5=function(a,b,c){var d,e=null;xL(b,function(f){e!==f&&(e&&e.wc.detach(d),(e=f)?d=xL(e.wc,function(g){return c(g.state,g.content)},a):c("en","un"))},a)};var Z=O5.prototype,W5=function(a,b,c){T.call(this);var d=this;this.controller=c;this.h=new O5;this.g=new lL(this);this.m=nL(this.g);this.ec=this.g.signal();this.j=nL(this.g);this.Xc=nL(this.g);this.sa=nL(this.g);this.Z=nL(this.g);this.R=nL(this.g);this.W=nL(this.g);this.ta=nL(this.g);this.H=nL(this.g);this.L=nL(this.g);this.ka=nL(this.g);this.Aa=nL(this.g);this.oa=nL(this.g);this.ra=nL(this.g);this.s=nL(this.g);this.o=nL(this.g);this.K=nL(this.g);this.wc=nL(this.g);this.G=[V0({has:Z.gt,get:Z.Pm,set:Z.li}),
V0({has:Z.Ls,get:Z.Zr,set:Z.ii}),V0({has:Z.Os,get:Z.cs,set:Z.Qk}),V0({has:Z.Ps,get:Z.ds,set:Z.aw}),V0({has:Z.Rs,get:Z.Km,set:Z.Rk}),V0({has:Z.Ss,get:Z.Lm,set:Z.Gf}),V0({has:Z.Ts,get:Z.Mm,set:Z.ki}),V0({has:Z.Pu,get:Z.getName,set:Z.zk,signal:this.sa}),V0({has:Z.Ou,get:Z.Ju,set:Z.Zn,signal:this.Z}),V0({has:Z.Mu,get:Z.Hu,set:Z.xk,signal:this.R}),V0({has:Z.Nu,get:Z.Iu,set:Z.yk,signal:this.W}),V0({has:Z.ft,get:Z.Lu,set:Z.ci,signal:this.ta}),V0({has:Z.Ms,get:Z.bs,set:Z.ji,signal:this.H}),V0({has:Z.Ns,get:Z.Im,
set:Z.Ko,signal:this.L}),V0({has:Z.Is,get:Z.Wr,set:Z.Ho,signal:this.ka}),V0({has:Z.Us,get:Z.es,set:Z.Lo,signal:this.Aa}),V0({has:Z.Js,get:Z.Xr,set:Z.Io,signal:this.oa}),V0({has:Z.Vm,get:Z.Ku,set:Z.Sg,signal:this.ra}),V0({has:Z.Qs,get:Z.Jm,set:Z.Ue,signal:this.s}),V0({has:Z.Ks,get:Z.Yr,set:Z.Jo,signal:this.o}),V0({has:Z.ht,get:Z.wk,set:Z.Wo,signal:this.K}),V0({has:Z.Vs,get:Z.fs,set:Z.Mo}),V0({has:Z.Qu,get:Z.Yn,set:Z.Ak,signal:this.wc})];P5(this.h,a.Y());V5(this,a);b(function(e){return V5(d,e)})};
u(W5,T);W5.prototype.aa=function(){5===this.state&&this.g.V(this.j,void 0);this.g.V(this.Xc,void 0);T.prototype.aa.call(this)};var V5=function(a,b){var c=5===a.state,d=new tL(a.g),e=U0(a.h,b,a.G,d);O(a.h,8,a.F||a.l);0<b.wk()&&a.h.Mo(Date.now());b=5===a.state;c!==b&&d.add(b?a.m:a.j,void 0);e&&d.add(a.ec,void 0);d.V();return e};k=W5.prototype;k.Ik=function(){return this.controller.Ik(this.fa)};k.Jk=function(){return this.controller.Jk(this.fa)};k.bj=function(){return this.controller.bj(this.fa)};
k.accept=function(){return 6!==this.state?Promise.reject("Not a knocking participant."):this.controller.accept(this.fa)};k.Wi=function(){return 6!==this.state?Promise.reject("Not a knocking participant."):this.controller.Wi(this.fa)};
da.Object.defineProperties(W5.prototype,{fa:{configurable:!0,enumerable:!0,get:function(){return this.h.Y()}},Ba:{configurable:!0,enumerable:!0,get:function(){return this.h.Pm()||null}},isLocal:{configurable:!0,enumerable:!0,get:function(){return ol(this.h,8,!1)}},F:{configurable:!0,enumerable:!0,get:function(){return this.h.Lm()}},l:{configurable:!0,enumerable:!0,get:function(){return this.h.Mm()}},name:{configurable:!0,enumerable:!0,get:function(){return this.h.getName()||null}},D:{configurable:!0,
enumerable:!0,get:function(){return!!this.h.Im()}},C:{configurable:!0,enumerable:!0,get:function(){return this.h.Jm()}},state:{configurable:!0,enumerable:!0,get:function(){return this.h.Yn()}},np:{configurable:!0,enumerable:!0,get:function(){return this.h.wk()}}});var mfa=function(a){var b=this;this.hb=a;this.g=new nA(200);this.h=0;jfa(this);TR(a,{participantCountHistory:function(){return b.g.Ja()},participantCountMax:function(){return b.h},presenterParticipant:function(){return kfa(b)},remoteUserAllMuted:function(){return lfa(b)}})},jfa=function(a){var b=a.hb;b=n([b.h,b.l,b.ec,b.m,b.Xc]);for(var c=b.next();!c.done;c=b.next())c.value.attach(function(){var d=X5(a.hb).length;var e=a.g;e=0==e.wa()?null:e.get(e.wa()-1);e&&e[1]===d||(a.g.add([Y(),d]),a.h=Math.max(a.h,
d))})},kfa=function(a){return(a=a.hb.getAll().find(function(b){return b.C}))?a.fa:null},lfa=function(a){a=nfa(a.hb);return!!a.length&&a.every(function(b){return b.D})};var $5=function(a,b,c){T.call(this);var d=this;this.controller=b;this.G=c;this.g=new lL(this);this.hb=new Map;this.o=this.j=null;this.F=new JS(function(){d.g.V(d.D,d.j)},50);this.C=new JS(function(){d.g.V(d.s,d.o)},200);this.h=this.g.signal();this.l=this.g.signal();this.ec=this.g.signal();this.m=this.g.signal();this.Xc=this.g.signal();this.D=nL(this.g);this.s=nL(this.g);this.wc=this.g.signal();$0(this.g,this.wc,function(e){return 6===e.state});$0(this.g,this.wc,function(e){return 2===e.state});$0(this.g,
this.h,function(e){return!e.isLocal});$0(this.g,this.l,function(e){return!e.isLocal});$0(this.g,this.ec,function(e){return!e.isLocal});$0(this.g,this.m,function(e){return!e.isLocal});$0(this.g,this.Xc,function(e){return!e.isLocal});b.ec.attach(function(e){Y5(d,e)});b.Xc.attach(function(e){var f=e.Y(),g=d.hb.get(f);g&&(Y5(d,e),Z5(d,g.Og,!1),g.Og.dispose(),d.hb.delete(f))});a.forEach(function(e){Y5(d,e)});this.g.V(this.D,null);this.g.V(this.s,null);new mfa(this)};u($5,T);$5.prototype.getAll=function(){return[].concat(q(this.hb.values())).map(function(a){return a.Og})};
var X5=function(a){return a.getAll().filter(function(b){return 5===b.state})},nfa=function(a){return X5(a).filter(function(b){return!b.isLocal})};$5.prototype.get=function(a){return(a=this.hb.get(a))?a.Og:null};$5.prototype.aa=function(){var a=new tL(this.g);try{for(var b=n(this.hb.values()),c=b.next();!c.done;c=b.next()){var d=c.value.Og;d.dispose();a.add(this.Xc,d)}this.hb.clear()}finally{a.V()}T.prototype.aa.call(this)};
var Y5=function(a,b){var c=b.Y(),d=a.hb.get(c);if(d)d.vw(b);else{var e=null,f=new W5(b,function(g){e=g},a.controller,a.G);b1(a.g,a.l,f.m,function(){return f});b1(a.g,a.m,f.j,function(){return f});a1(a.g,a.ec,f.ec,function(){return f});b1(a.g,a.Xc,f.Xc,function(){return f});b1(a.g,a.wc,f.wc,function(){return f});xL(f.s,function(g){Z5(a,f,g)},a);xL(f.o,function(g){a.o=g?f:null;a.C.start()},a);e?(a.hb.set(c,{Og:f,vw:e}),a.g.V(a.h,f)):(f.dispose(),Eb("No participant callback set for new participant"))}},
Z5=function(a,b,c){if(c){if(a.j===b)return;a.j=b}else{if(a.j!==b)return;a.j=null}a.F.start()};var tfa=function(a){var b=new lL,c=b.signal(),d=b.signal(),e=a.hb.get();e=e?e.get().map(function(t){return a6(t)}):[];var f=new $5(e,{ec:c,Xc:d,Ik:function(t){return ofa(a,t)},Jk:function(){return Promise.resolve(!1)},bj:function(t){return pfa(a,t)},jd:function(t){return qfa(a,t)},accept:function(){return rfa()},Wi:function(){return sfa()}},a.kb.then());f.N(b);var g=null;a.l.then(function(t){var A=function(G){if(G!=g){if(g){var N=f.get(g);N&&(N=N.fa,b.V(c,P5(new O5,N).Ue(!1)))}G&&(N=f.get(G))&&(N=
N.fa,b.V(c,P5(new O5,N).Ue(!0)));g=G}},z=t.get()[0];A(z&&z.xj()&&L(z.rc(),1));t.onChange.attach(function(G){var N=G.vc,Aa=G.removed;[].concat(q(G.Pc),q(N)).forEach(function(Mb){return A(Mb.xj()&&L(Mb.rc(),1)||null)});Aa.forEach(function(){return A(null)})})});e=new S5(a.pb,f,qL(b,c,function(t){if(t.Vm()){var A=t.Y();if([].concat(q(a.L.keys())).some(function(z){return z.fa.get()===A}))return O(t.clone(),12,void 0)}return t}),a.ob,a.kb,W(a.pa,EK));f.N(e);var h,l=function(t){var A=a6(t),z=t.Y();h&&A.Gf(z===
h);[].concat(q(a.L.keys())).some(function(G){return G.fa.get()===z})&&(A.Sg(!0),A.ki(!0),A.Gf(!1),h&&A.li(h));A.Ue(z===g);b.V(c,A)},p=new Map,r=function(t){var A=new Map;t.forEach(function(z){l(z);A.set(z.Y(),z);p.delete(z.Y())});p.forEach(function(z){b.V(d,a6(z))});p=A};(function(){var t,A;return Ca(function(z){switch(z.g){case 1:return v(z,Dba(a),2);case 2:t=z.h;case 3:if(0!==a.getState()){z.bb(0);break}return v(z,t.search(),5);case 5:A=z.h;if(0!==a.getState())return z.return();r(A);return v(z,
uv(4E3),3)}})})();a.fa.then(function(t){h=t;a.hb.then(function(A){EN(A).then(function(z){r(z);f.getAll().forEach(function(G){var N=G.fa;G.l?b.V(c,P5((new O5).li(h),N)):b.V(c,P5(new O5,N).Gf(N==h))})});A.onChange.attach(function(z){var G=z.vc,N=z.removed;z.Pc.forEach(l);G.forEach(function(Aa){return b.V(c,a6(Aa))});N.forEach(function(Aa){return b.V(d,a6(Aa))})},f)})});return f},a6=function(a){var b=P5(new O5,a.Y()).ci(3).ji(!0);null!=L(a,4)&&b.zk(L(a,4));null!=L(a,10)&&b.Zn(L(a,10));null!=L(a,5)&&
b.xk(L(a,5));if(null!=L(a,13)){var c=5==M(a,13,1);b.Rk(c);b.yk(c?1:0)}null!=L(a,17)&&b.Ak(ufa(a));null!=L(a,3)?b.ii(!1):b.ii(!b.Km());null!=L(a,12)&&b.Qk(4==L(a,12));return b},ufa=function(a){switch(M(a,17,0)){case 1:return 5;case 10:return 6;case 11:return 2;case 12:return 1;case 2:case 20:case 21:case 22:return 9;default:return ol(a,18,!1)?5:0}},ofa=function(a,b){var c,d,e;return Ca(function(f){switch(f.g){case 1:return!PZ(a.onConnect)||PZ(a.onDisconnect)?f.return(!1):v(f,a.fa.then(),2);case 2:return c=
f.h,v(f,a.Ve.then(),3);case 3:return d=f.h,e=d.get().filter(function(g){return g.Y()==b&&1==g.ia()}),v(f,Promise.all(e.map(function(g){g=d.nb(g);var h=new lC;h=O(h,1,c);g=S(g,6,h);return JN(d,g)})),4);case 4:return f.return(!0)}})},pfa=function(a,b){var c,d,e;return Ca(function(f){if(1==f.g)return!PZ(a.onConnect)||PZ(a.onDisconnect)?f.return(Promise.resolve(!1)):v(f,a.hb.then(),2);if(3!=f.g)return c=f.h,d={},v(f,c.remove(c.nb(b),(d.jYdIne=43,d)),3);e=f.h;return f.return(1==e.length)})},qfa=function(a,
b){var c,d;return Ca(function(e){if(1==e.g)return!PZ(a.onConnect)||PZ(a.onDisconnect)?e.return(Promise.resolve(!1)):v(e,a.l,2);if(3!=e.g)return c=e.h,v(e,JN(c,c.nb().jd(tB(new sB,b))),3);d=e.h;return e.return(1==d.length)})},rfa=function(){return Ca(function(){throw Error("Not supported");})},sfa=function(){return Ca(function(){throw Error("Not supported");})};var b6=function(a){a4.call(this,a);this.h=new l1("realtime.media.api.webrtc.HangoutExtensionServiceImpl");this.g(4864)};u(b6,a4);b6.prototype.Zj=function(){var a={method:"cpu.getInfo"};W3?a=U3(a,!1):(W3=!0,a=V3(a));return a.then()};b6.prototype.rg=function(){return kea()};
var c6=function(a,b,c,d){d=void 0===d?!0:d;var e=V3({method:"logging.setMetadata",metaData:[{key:"client",value:"Hangouts"},{key:"sessionId",value:b},{key:"participantLogId",value:c},{key:"url",value:window.location.href}]}).then(function(){a.h.g.h(WY,"Extension logging setMetadata succeeded for "+b)},function(f){a.h.g.h(WY,"Extension loggings setMetadata failed for session: "+b+(", error: "+f.value))});return d?ft(e,function(){return c6(a,b,c,!1)}):e};b6.prototype.ck=function(){return d6(this)};
b6.prototype.dk=function(a,b){var c=this;return b?V3({method:"logging.stopAndUpload"}).then(function(d){yW(c.h,"logging.stopAndUpload succeeded with result="+JSON.stringify(d.value));return d},function(d){c.h.J("logging.stopAndUpload failed with error="+d.value);throw d;}):V3({method:"logging.stop"}).then(function(){yW(c.h,"logging.stop succeeded");return a?Qp(42)?V3({method:"logging.store",logId:a}):V3({method:"logging.stop"}):V3({method:"logging.discard"})},function(d){c.h.J("logging.stop failed with error="+
d)})};b6.prototype.Yj=function(a){var b=this;return a?V3({method:"logging.startRtpDump",incoming:!0,outgoing:!0}).then(function(c){yW(b.h,"logging.startRtpDump succeeded");return c},function(c){yW(b.h,"logging.startRtpDump failed with error="+c);throw c;}):V3({method:"logging.stopRtpDump",incoming:!0,outgoing:!0}).then(function(c){yW(b.h,"logging.stopRtpDump succeeded");return c},function(c){yW(b.h,"logging.stopRtpDump failed with error="+c);throw c;})};
var d6=function(a,b){b=void 0===b?!0:b;var c=Us(V3({method:"logging.start"}));return b?ft(c,function(){return d6(a,!1)}):c};b6.prototype.ek=function(a,b){return c6(this,a,b).then(function(){return V3({method:"logging.uploadOnRenderClose"})})};b6.prototype.bk=function(a){var b={method:"logging.startEventLogging",maxLogSizeBytes:4268032,webAppId:1};b[jf&&Qp(74)?"sessionId":"peerConnectionId"]=a;return V3(b).then()};b6.prototype.ak=function(){return V3({method:"getHardwarePlatformInfo"}).then()};var e6=function(a){a4.call(this,a);this.g(4866)};u(e6,a4);k=e6.prototype;k.Zj=function(){return f6(this,"cpu.getInfo")};k.rg=function(){return null};k.Yj=function(){return f6(this,"enableRtpHeaderDump")};k.ak=function(){return f6(this,"getHardwarePlatformInfo")};k.ck=function(){return f6(this,"logging.start")};k.dk=function(){return f6(this,"logging.stop")};k.ek=function(){return f6(this,"logging.uploadOnRenderClose")};k.bk=function(){return f6(this,"logging.startEventLogging")};
var f6=function(a,b){return Vs(new T3(6,a.constructor.name+":  Method: "+b+"; Type: expected failure; Explanation: Operation ignored, no Hangout Extension expected."))};var g6=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.g=a};y(g6,GA);var vfa=function(){if(Pe){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(Wd))?a[1]:"0"}return Oe?(a=/10[_.][0-9_.]+/,(a=a.exec(Wd))?a[0].replace(/_/g,"."):"10"):Re?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(Wd))?a[1]:""):Se||Te||Ue?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(Wd))?a[1].replace(/_/g,"."):""):""}();var i6=function(a){this.m=W(a,HK);this.o=W(a,AK);this.j=new HA;this.l=new g6;this.g={};this.h={};a=w(this.w,this);var b=null;if(this.j.isAvailable()){var c=this.j.get("scp"),d=null!=c;try{b=JSON.parse(c)}catch(e){d=!1}!d&&a&&(b=a())}else h6.error("Error in retrieving cpu info from local storage.");if(a=b)this.g=a;wfa(this);xfa(this)},k6=function(){var a="Other";Ge?a="Opera":He?a="Internet Explorer":ef?a="Firefox":Zd("Edg/")?a="Chromium-based Edge":jf?a=j6()?"Chromium-based":"Chrome":kf&&(a="Safari");
return a},j6=function(){if(null!=l6)return l6;var a=navigator.plugins,b;for(b in a)if("Chromium PDF Viewer"==a[b].name)return l6=!0;return l6=!1},m6=function(a){return a.m.then(function(b){return Z3(b)})},n6=function(a){return a.g.archName&&(gd(a.g.archName,"aarch")||gd(a.g.archName,"arm"))?!0:-1!=Me.indexOf("armv7l")},zfa=function(a){if(null==a)return h6.J("Cannot get cpuFlags from null."),-1;var b=a.features;return b?b.reduce(function(c,d){return c|(yfa.get(d)||0)},0):a.cpuHasSSE2?2:-1},wfa=function(a){m6(a).then(function(b){if(b=
b.value){a.g=b;a.j.isAvailable()?a.j.set("scp",xs(b)):h6.error("Error in saving scp to local storage.");b=RR.Kb();var c={archName:a.g.archName,features:a.g.features,modelName:a.g.modelName,numOfProcessors:a.g.numOfProcessors},d="cpuInfo";b.g.has(d)&&(C(b.u,"Already registered a diagnostics data callback for key '"+d+"'."),d=UR(b,d));b.h.set(d,c)}},function(b){return h6.error("Error in getting cpu info from extension "+b)})},xfa=function(a){o6(a)?yW(h6,"Got getHardwarePlatformInfo: "+JSON.stringify(a.h)):
a.m.then(function(b){return b.j.ak().then(function(c){o6(a)||(p6(a,c.value),q6(a,5548),yW(h6,"Got getHardwarePlatformInfo from extension: "+JSON.stringify(a.h)))},function(c){o6(a)||(p6(a,null),q6(a,5549,c.value),yW(h6,"Could not get getHardwarePlatformInfo from extension: "+c.value))})})},o6=function(a){var b=null;if(!a.l.isAvailable())return h6.error("Unable to access session storage."),!1;var c=a.l.get("hpi");if(!c)return!1;try{b=JSON.parse(c)}catch(d){return h6.error("HardwarePlatformInfo corrupt in session storage."),
!1}a.h=b;return!0},p6=function(a,b){a.h=b||{};a.l.isAvailable()?a.l.set("hpi",xs(a.h)):h6.error("Error in saving hardwarePlatformInfo to session storage.")};i6.prototype.w=function(){return n6(this)?{archName:"armv7l",modelName:"Unknown ARM device",numOfProcessors:2}:{archName:"x86",modelName:"Unknown x86 device",numOfProcessors:4}};
var q6=function(a,b,c){a.o.then(function(d){d.h(b,{Ub:c})})},h6=new l1("realtime.media.api.webrtc.Utils"),yfa=new Map([["neon",1],["sse2",2],["ssse3",4],["sse4_1",8],["sse4_2",16],["avx",32]]),l6=null;function r6(a,b){b=void 0===b?Afa:b;fK(a,HK)||tK(a,HK,function(){return new Y3(a,b(a))})}function Afa(a){return["Chrome","Chromium-based","Chromium-based Edge"].includes(k6())?new b6(a):new e6(a)};var Bfa=function(a,b){this.g=new VR(a.C,L(a,2),function(){return bN(a,b)})},s6=function(a,b){return new Bfa(a,b||A0(L(a,2)))};var t6=function(a){K(this,a,"hc:rc",-1,Cfa,null)};y(t6,J);var u6=function(a){K(this,a,0,-1,null,null)};y(u6,J);var Cfa=[7];t6.messageId="hc:rc";k=t6.prototype;k.getTime=function(){return L(this,1)};k.setTime=function(a){return O(this,1,a)};k.qa=function(){return L(this,3)};k.bc=function(){return L(this,11)};k.Mb=function(){return L(this,12)};var Dfa=function(){this.h=-1};var v6=function(){this.h=64;this.g=Array(4);this.m=Array(this.h);this.l=this.j=0;this.reset()};y(v6,Dfa);v6.prototype.reset=function(){this.g[0]=1732584193;this.g[1]=4023233417;this.g[2]=2562383102;this.g[3]=271733878;this.l=this.j=0};
var w6=function(a,b,c){c||(c=0);var d=Array(16);if("string"===typeof b)for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.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};
v6.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.h,d=this.m,e=this.j,f=0;f<b;){if(0==e)for(;f<=c;)w6(this,a,f),f+=this.h;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.h){w6(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.h){w6(this,d);e=0;break}}this.j=e;this.l+=b};
v6.prototype.digest=function(){var a=Array((56>this.j?this.h:2*this.h)-this.j);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.l;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.g[b]>>>d&255;return a};var y6=function(a,b,c,d,e){var f=new t6;O(f,3,b);b=Xa();f.setTime(b);b=x6(L(a,7),b);O(f,2,b);b=L(a,2);O(f,4,b);b=M(a,5,0);O(f,5,b);O(f,6,c.g);a=a.bc();O(f,11,a);wl(f,7,d);void 0!==e&&O(f,8,e);(d=c.l)&&O(f,10,d);(d=c.Mb())&&O(f,12,d);(c=c.j)&&O(f,13,c);return f},z6=function(a,b,c){var d=new GE,e=(new Date(L(b,4))).toString();O(d,2,e);e=L(b,4);O(d,133,e);e=null!=L(b,3)?L(b,3):L(a,8);O(d,30,e);O(d,3,-2);(e=L(b,1))&&O(d,1,e);e=new WG;S(e,4,d);d=a.qa();O(e,2,d);d=L(c,14);O(e,11,d||[]);b=L(b,2);O(e,21,
b);c=ml(c,8);O(e,12,c);c=L(a,6);O(e,14,c);c=L(a,10);O(e,16,c);c=a.Mb();O(e,22,c);a=L(a,13);O(e,23,a);return e},A6=function(a,b,c){var d=L(c,6),e=c.qa();a.then(function(f){f.g(b,{xc:d,gb:e})})},x6=function(a,b){a+=b;b=new v6;b.update(a,a.length);return String.fromCharCode.apply(String,b.digest())};var Efa=function(a){this.g=a},Ffa=function(a,b,c){var d=bt();B6(a,b,c,new rM(4E3,36E5,.25,4),d.resolve);return d.da},B6=function(a,b,c,d,e){var f=s6(b,L(c,6)),g=R(c,u6,7).map(function(h){var l=z6(c,h,b);h=L(h,1);return aS(f.g,l,h)});g=$s(g);A6(a.g,4159,c);g.then(function(h){h.every(function(l){return l.Vd})?(e(),A6(a.g,4160,c)):(sv(function(){B6(a,b,c,d,e)},d.g),sM(d),A6(a.g,4161,c))})};var C6=function(a){K(this,a,"hc:rcs",-1,Gfa,null)};y(C6,J);var Gfa=[2];C6.messageId="hc:rcs";var Hfa=function(a,b){var c=this;this.h=a;this.j=b;this.g=new HA;this.u=new rU("realtime.media.call.PersistentReportingService");a=window.requestIdleCallback;Oa(a)?a(function(){D6(c)}):sv(function(){D6(c)})},Ifa=function(a){fK(a,IK)||tK(a,IK,function(b){b=W(b,AK).then();return new Hfa(new Efa(b),b)})},G6=function(a,b,c,d,e,f){if(!E6(a,"Could not save RecentCallSummary because storage was unavailable")||0===e.length)return null;b=y6(b,c,d,e,f);d=new C6;S(d,1,b);c=F6(b);d=d.va();a.g.set(c,d);return b},
Jfa=function(a,b){if(!E6(a,"Could not get RecentCalls because storage was unavailable"))return[];for(var c=Xa()-6E4,d=[],e=0;e<a.g.wa();){var f=a.g.key(e++);if(null!==f&&gd(f,"rcsprs_")&&(f=H6(a,f),null!==f&&null!=L(f,1)&&!(Q(f,t6,1).getTime()<c))){var g=x6(b,Q(f,t6,1).getTime());L(Q(f,t6,1),2)===g&&d.push(Q(f,t6,1))}}return d},Kfa=m(["Failed to create RecentCallSummary."]),H6=function(a,b){if(E6(a,"Could not load RecentCallSummary because storage was unavailable")&&(b=a.g.get(b),null!==b))try{return new C6(b?
JSON.parse(b):null)}catch(c){uU(a.u,c).J(Kfa)}return null},Lfa=function(a,b,c){Ffa(a.h,b,c).then(function(){var d=F6(c),e=H6(a,d);if(null!==e&&-1===L(e,2).indexOf(1)){var f=L(e,2).concat([1]);O(e,2,f||[]);e=e.va();a.g.set(d,e)}})},Mfa=m(["",""]),E6=function(a,b){if(a.g.isAvailable())return!0;a.u.J(Mfa,b);return!1},D6=function(a){if(E6(a,"Could not delete old RecentCallSummaries because storage was unavailable")){for(var b=Xa()-3456E5,c=new Map,d="",e=0,f=0;f<a.g.wa();f++){var g=a.g.key(f);if(null!==
g&&gd(g,"rcsprs_")){var h=H6(a,g);if(null!==h&&null!=L(h,1)){var l=Q(h,t6,1);l.getTime()>e&&(d=g,e=l.getTime());(l.getTime()<b||-1!==L(h,2).indexOf(1))&&c.set(g,h)}else c.set(g,h)}}c.delete(d);c.forEach(function(p,r){a.g.remove(r);p&&null!=L(p,1)&&-1===L(p,2).indexOf(1)&&A6(a.j,4162,Q(p,t6,1))})}};function F6(a){return"rcsprs_"+L(a,6)+"_"+a.bc()};/*

 ## MIT

 Copyright (c) 2013?2015 Streams Standard Reference Implementation Authors

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.



 ## CC0

 To the extent possible under law, the authors have dedicated all copyright and
 related and neighboring rights to this software to the public domain worldwide.
 This software is distributed without any warranty.

 You should have received a copy of the CC0 Public Domain Dedication along with
 this software. If not, see https://creativecommons.org/publicdomain/zero/1.0/.

 Creative Commons Legal Code

 CC0 1.0 Universal

     CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
     LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
     ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
     INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
     REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
     PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
     THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
     HEREUNDER.

 Statement of Purpose

 The laws of most jurisdictions throughout the world automatically confer
 exclusive Copyright and Related Rights (defined below) upon the creator
 and subsequent owner(s) (each and all, an "owner") of an original work of
 authorship and/or a database (each, a "Work").

 Certain owners wish to permanently relinquish those rights to a Work for
 the purpose of contributing to a commons of creative, cultural and
 scientific works ("Commons") that the public can reliably and without fear
 of later claims of infringement build upon, modify, incorporate in other
 works, reuse and redistribute as freely as possible in any form whatsoever
 and for any purposes, including without limitation commercial purposes.
 These owners may contribute to the Commons to promote the ideal of a free
 culture and the further production of creative, cultural and scientific
 works, or to gain reputation or greater distribution for their Work in
 part through the use and efforts of others.

 For these and/or other purposes and motivations, and without any
 expectation of additional consideration or compensation, the person
 associating CC0 with a Work (the "Affirmer"), to the extent that he or she
 is an owner of Copyright and Related Rights in the Work, voluntarily
 elects to apply CC0 to the Work and publicly distribute the Work under its
 terms, with knowledge of his or her Copyright and Related Rights in the
 Work and the meaning and intended legal effect of CC0 on those rights.

 1. Copyright and Related Rights. A Work made available under CC0 may be
 protected by copyright and related or neighboring rights ("Copyright and
 Related Rights"). Copyright and Related Rights include, but are not
 limited to, the following:

   i. the right to reproduce, adapt, distribute, perform, display,
      communicate, and translate a Work;
  ii. moral rights retained by the original author(s) and/or performer(s);
 iii. publicity and privacy rights pertaining to a person's image or
      likeness depicted in a Work;
  iv. rights protecting against unfair competition in regards to a Work,
      subject to the limitations in paragraph 4(a), below;
   v. rights protecting the extraction, dissemination, use and reuse of data
      in a Work;
  vi. database rights (such as those arising under Directive 96/9/EC of the
      European Parliament and of the Council of 11 March 1996 on the legal
      protection of databases, and under any national implementation
      thereof, including any amended or successor version of such
      directive); and
 vii. other similar, equivalent or corresponding rights throughout the
      world based on applicable law or treaty, and any national
      implementations thereof.

 2. Waiver. To the greatest extent permitted by, but not in contravention
 of, applicable law, Affirmer hereby overtly, fully, permanently,
 irrevocably and unconditionally waives, abandons, and surrenders all of
 Affirmer's Copyright and Related Rights and associated claims and causes
 of action, whether now known or unknown (including existing as well as
 future claims and causes of action), in the Work (i) in all territories
 worldwide, (ii) for the maximum duration provided by applicable law or
 treaty (including future time extensions), (iii) in any current or future
 medium and for any number of copies, and (iv) for any purpose whatsoever,
 including without limitation commercial, advertising or promotional
 purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
 member of the public at large and to the detriment of Affirmer's heirs and
 successors, fully intending that such Waiver shall not be subject to
 revocation, rescission, cancellation, termination, or any other legal or
 equitable action to disrupt the quiet enjoyment of the Work by the public
 as contemplated by Affirmer's express Statement of Purpose.

 3. Public License Fallback. Should any part of the Waiver for any reason
 be judged legally invalid or ineffective under applicable law, then the
 Waiver shall be preserved to the maximum extent permitted taking into
 account Affirmer's express Statement of Purpose. In addition, to the
 extent the Waiver is so judged Affirmer hereby grants to each affected
 person a royalty-free, non transferable, non sublicensable, non exclusive,
 irrevocable and unconditional license to exercise Affirmer's Copyright and
 Related Rights in the Work (i) in all territories worldwide, (ii) for the
 maximum duration provided by applicable law or treaty (including future
 time extensions), (iii) in any current or future medium and for any number
 of copies, and (iv) for any purpose whatsoever, including without
 limitation commercial, advertising or promotional purposes (the
 "License"). The License shall be deemed effective as of the date CC0 was
 applied by Affirmer to the Work. Should any part of the License for any
 reason be judged legally invalid or ineffective under applicable law, such
 partial invalidity or ineffectiveness shall not invalidate the remainder
 of the License, and in such case Affirmer hereby affirms that he or she
 will not (i) exercise any of his or her remaining Copyright and Related
 Rights in the Work or (ii) assert any associated claims and causes of
 action with respect to the Work, in either case contrary to Affirmer's
 express Statement of Purpose.

 4. Limitations and Disclaimers.

  a. No trademark or patent rights held by Affirmer are waived, abandoned,
     surrendered, licensed or otherwise affected by this document.
  b. Affirmer offers the Work as-is and makes no representations or
     warranties of any kind concerning the Work, express, implied,
     statutory or otherwise, including without limitation warranties of
     title, merchantability, fitness for a particular purpose, non
     infringement, or the absence of latent or other defects, accuracy, or
     the present or absence of errors, whether or not discoverable, all to
     the greatest extent permissible under applicable law.
  c. Affirmer disclaims responsibility for clearing rights of other persons
     that may apply to the Work or any use thereof, including without
     limitation any person's Copyright and Related Rights in the Work.
     Further, Affirmer disclaims responsibility for obtaining any necessary
     consents, permissions or other rights required for any use of the
     Work.
  d. Affirmer understands and acknowledges that Creative Commons is not a
     party to this document and has no duty or obligation with respect to
     this CC0 or use of the Work.
*/
Wf("third_party.whatwgstreams");var I6=function(){var a=Ea.location;return a.origin||a.protocol+"//"+a.hostname+(a.port?":"+a.port:"")};var Nfa=function(a){return k2(function(b){return a().then(function(c){h2(b,"Authorization","Bearer "+c);c=u2(b.getContext());var d;if((d=He||Je)&&!(d=!c)){var e=c.match(Nq);c=e[1];d=e[3];e=e[4];var f="";c&&(f+=c+":");d&&(f=f+"//"+d,e&&(f+=":"+e));d=f===I6()}d&&h2(b,"X-Origin",I6())})})};var Ofa=new rU("realtime.media.logging.upload.uploader");bt();var Pfa=m(["Call has ended"]);var J6=function(a){QM.call(this);this.u=new rU("realtime.media.logging.upload.LogUploadService");this.j=a;this.g=!1;new X(this);this.h=null;Promise.resolve(W(this.j,AK))};u(J6,QM);var Qfa=m(["Log upload allowed. Starting upload."]),Rfa=m(["Log upload disallowed. Stopping upload."]),Sfa=function(a){fK(a,JK)||tK(a,JK,function(b){return new J6(b)})};var K6=function(a){var b=this;this.g=null;this.C=W(a,XM,!0).then(function(c){return b.g=c});this.h=null;this.H=W(a,IK).then().then(function(c){return b.h=c});this.s=null;W(a,FK).then(function(c){b.s=c});this.o=Us(W(a,JK));this.D=bt();this.F=this.D.da;this.l=null;this.j=!1;this.m=new Set;this.w=!1},Tfa=function(a){fK(a,DK)||tK(a,DK,function(b){return new K6(b)})},L6=function(a){return Array.from(a.ya.l).map(function(b){var c=new u6;c=O(c,1,b.h.g);var d=b.qb();c=O(c,2,d);c=O(c,3,b.Vb);b=b.wn();return O(c,
4,b)})},N6=function(a){a.w||M6(a);return a.l||!1},qba=function(a,b){a.g=a.g||b.m;a.s=a.s||b.ob;a.w||M6(a);OY(b.ya,N6(a));Math.random()<=(ll(a.g,9)||0)&&PY(b.ya);a.m.add(b);b.onConnect.then(function(){return Ufa(a,b)});OZ(b.onDisconnect,function(){return Vfa(a,b)});O6(a)},Wfa=function(a,b){a.g?b():a.C.then(b)},P6=function(a,b){a.h?b():a.H.then(b)},Ufa=function(a,b){P6(a,function(){var c=b.gb.get()||"";Xfa(a,c,L(b.m,7)||"");var d=b.Zc,e=L6(b);G6(a.h,b.m,c,d,e)})},Xfa=function(a,b,c){var d=void 0===
d?!1:d;a.F.then(function(){(N6(a)||d)&&Jfa(a.h,c).filter(function(e){return e.qa()===b}).forEach(function(e){R(e,u6,7).forEach(function(f){L(f,2);e.qa()})})})},Vfa=function(a,b){a.m.delete(b);O6(a);a.o.then(function(){Ofa.g(Pfa)});P6(a,function(){Zs([b.onConnect,b.onDisconnect]).then(function(c){c=n(c);c.next();var d=c.next().value;c=b.m;var e=b.gb.get()||"",f=b.Zc,g=L6(b),h=a.h;(d=G6(h,c,e,f,g,d))&&Lfa(h,c,d)},Ka)})},O6=function(a){a.o.then(function(){})},M6=function(a,b){Wfa(a,function(){a.w=!0;
a.j=null;var c=bt();c.da.then(w(a.K,a),w(a.G,a,b));var d=L(a.g,10);if(null!=d){null!=b&&(d=Tq(d,"set",String(b)));var e=Gv(Ev);e.open("GET",d,!0);e.onreadystatechange=function(){4==e.readyState&&(200==e.status?c.resolve(e.responseText):c.reject(null))};e.send(null)}else c.reject(null)})};K6.prototype.K=function(a){this.j="true"==a;Q6(this)};K6.prototype.G=function(a){this.j=void 0!==a?a:N6(this);Q6(this)};
var Q6=function(a){a.D.resolve();null===a.l&&(a.l=a.j,a.o.then(function(b){var c=N6(a);b.g=c;b.g?b.u.g(Qfa):b.u.g(Rfa)}),a.m.forEach(function(b){OY(b.ya,N6(a))}));a.j!=a.l&&M6(a,N6(a))},g1=function(a,b){var c=Yfa(b);if(null==L(c,4)||null==L(c,5)||null==L(c,6)||0==(R(c,u6,7)||[]).length)return[];var d=a.g,e=s6(d,L(c,6));return R(c,u6,7).map(function(f){var g=z6(c,f,d);f=L(f,1);return $R(e.g,g,f)})},Yfa=function(a){var b=a.m,c=a.gb.get(),d=a.Zc,e=L6(a);a=PZ(a.onDisconnect)?a.onDisconnect.get():void 0;
return y6(b,c,d,e,a)};var S6=function(a){if(!R6){var b=new fT;a=ft(W(a,HK).then(function(c){return Z3(c)}).then(function(c){return 0!=c.status||null==c.value?b:new fT(c.value.modelName||"",c.value.numOfProcessors||0,c.value.features||[],Zd("CrOS"))}),function(){return b});R6=Ys([a,uv(2E3,b)])}return R6},R6=null;var T6=function(a){T.call(this);this.l=a;this.j=new lL(this);this.onChange=this.j.signal()};u(T6,T);var U6=function(a,b){T6.call(this,0);this.h=b};u(U6,T6);U6.prototype.g=function(){var a=Zfa.get(3);this.h.g(a)};var Zfa=new Map([[3,5271],[2,5272],[1,5273]]);var V6=function(a){T6.call(this,2);var b=this,c=new X(this);this.N(c);c.listen(a,"eb",function(){b.j.V(b.onChange,b.l)})};u(V6,T6);var W6=function(a,b){T6.call(this,3);this.h=a;this.s=b;this.g=this.o=3;this.m=4};u(W6,T6);function $fa(a){a=a.g;return!!a&&ZM(a)};var X6=new VJ("dm3J4d","bm");var Y6=new VJ("DIptB","nWLYy",[FK,X6]);var Z6=function(){T6.call(this,1)};u(Z6,T6);fa();var $6=function(a){T.call(this);var b=this;this.l=a.get(FK);this.g=new Set;var c=new iL(a),d=$fa(this.l);this.j=new U6(d,c);this.g.add(this.j);this.m=new Z6;this.g.add(this.m);var e=a.get(X6);this.g.add(new V6(e));var f=new W6(d,c);S6(a).then(function(g){var h=!1,l=f.h||hT(g)?3:2;l!==f.o&&(f.o=l,h=!0);(l=f.h)||(l=hT(g)&&!jT(g));l=l?3:2;l!==f.g&&(f.g=l,h=!0);g=f.h||hT(g)?4:3;g!==f.m&&(f.m=g,h=!0);h&&f.j.V(f.onChange,f.l);3!==f.g&&f.s.g(5992)});this.g.add(f);this.h=new lL(this);this.onChange=this.h.signal();
this.g.forEach(function(g){return a1(b.h,b.onChange,g.onChange)})};u($6,T);var aga=function(a){fK(a,Y6)||tK(a,Y6,function(b){return new $6(b)})};var hga=function(a){var b=a.fa.get(),c=new lL,d=c.signal(),e=c.signal(),f=a.s.get();f=f?f.get().map(function(l){return a7(l,b)}):[];var g=new $5(f,{ec:d,Xc:e,Ik:function(l){return bga(a,l)},Jk:function(l){return cga(a,l)},bj:function(l){return dga(a,l)},jd:function(l){return ega(a,l)},accept:function(l){return fga(a,l)},Wi:function(l){return gga(a,l)}},a.kb.then());g.N(c);f=new S5(a.pb,g,qL(c,d,function(l){return O(l.clone(),12,void 0)}),a.ob,a.kb,W(a.pa,EK));g.N(f);var h=null;a.F.then(function(l){var p=
function(t){if(t!=h){if(h){var A=g.get(h);A&&(A=A.fa,c.V(d,P5(new O5,A).Ue(!1)))}t&&(A=g.get(t))&&(A=A.fa,c.V(d,P5(new O5,A).Ue(!0)));h=t}},r=l.get()[0];r=r&&fJ(r);p(r&&r.rc()&&M(r.rc(),1,""));l.onChange.attach(function(t){var A=t.vc,z=t.removed;[].concat(q(t.Pc),q(A)).forEach(function(G){G=G&&fJ(G);p(G&&G.rc()&&M(G.rc(),1,"")||null)});z.forEach(function(){return p(null)})})});a.s.then(function(l){(b=a.fa.get())||a.fa.then(function(r){b=r;g.getAll().forEach(function(t){var A=t.fa;t=t.Ba;c.V(d,P5(new O5,
A).Gf(A==b).ki(t==b))})});var p=function(r){var t=a7(r,b);r=r.cc();t.Ue(r===h);c.V(d,t)};l.onChange.attach(function(r){var t=r.vc,A=r.removed;r.Pc.forEach(p);t.forEach(function(z){return c.V(d,a7(z,b))});A.forEach(function(z){return c.V(e,a7(z,b))})},g);l.get().forEach(p)});return g},a7=function(a,b){var c=4==M(a,11,0),d=c?iga:jga,e=a.cc(),f=M(a,21,"");c=P5(new O5,e).li(f).Rk(c).yk(c?1:0).ci(3).ji(!0).Ak(kga(a)).ii(ol(a,15,!1)).Qk(ol(a,8,!1)).Sg(ol(a,26,!1)).zk(M(a,2,"")||d);b&&(c.Gf(e===b),c.ki(f===
b));M(a,3,"")&&c.xk(M(a,3,""));null!=L(a,14)&&c.ci(lga(M(Q(a,ZH,14),3,0)));return c},lga=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;default:return 0}},kga=function(a){switch(nI(a)){case 1:return 5;case 2:return 10;case 3:return 6;case 4:case 11:return 2;case 9:return 8;case 10:return 9;case 6:return 7;case 7:return 3;case 8:return 4;default:return ol(a,5,!1)?5:0}},bga=function(a,b){var c,d,e,f;return Ca(function(g){return 1==g.g?!PZ(a.onConnect)||PZ(a.onDisconnect)?g.return(!1):
v(g,a.fa.then(),2):3!=g.g?(c=g.h,d=new XH,P(d,1,c),e=a.s.get(),f=e.nb(b),gI(f,d),v(g,JN(e,f),3)):g.return(!0)})},cga=function(a,b){var c,d,e,f;return Ca(function(g){return 1==g.g?!PZ(a.onConnect)||PZ(a.onDisconnect)?g.return(!1):v(g,a.fa.then(),2):3!=g.g?(c=g.h,d=new YH,P(d,1,c),e=a.s.get(),f=e.nb(b),S(f,27,d),v(g,JN(e,f),3)):g.return(!0)})},dga=function(a,b){var c,d,e;return Ca(function(f){if(1==f.g){if(!PZ(a.onConnect)||PZ(a.onDisconnect))return f.return(Promise.resolve(!1));c=a.s.get();d=c.nb(b);
rl(d,4,7);return v(f,JN(c,d),2)}e=f.h;return f.return(1==e.length)})},ega=function(a,b){var c,d,e,f;return Ca(function(g){if(1==g.g)return!PZ(a.onConnect)||PZ(a.onDisconnect)?g.return(Promise.resolve(!1)):v(g,a.F,2);if(3!=g.g){c=g.h;d=new PI;b&&P(d,1,b);var h=c.nb(),l=(new VI).jd(d);e=S(h,6,l);return v(g,JN(c,e),3)}f=g.h;return g.return(1==f.length)})},fga=function(a,b){return Ca(function(c){return c.return(b7(!0,a,b))})},gga=function(a,b){return Ca(function(c){return c.return(b7(!1,a,b))})},b7=function(a,
b,c){var d,e,f,g;return Ca(function(h){if(1==h.g){if(!PZ(b.onConnect)||PZ(b.onDisconnect))return h.return(Promise.resolve(!1));d=b.s.get();e=d.nb(c);f=a?1:4;rl(e,4,f);return v(h,JN(d,e),2)}g=h.h;return h.return(1==g.length)})},jga=chrome.i18n.getMessage("2551467977781415455"),iga=chrome.i18n.getMessage("5734888811966502047");var c7=function(a){K(this,a,0,-1,null,null)};y(c7,J);k=c7.prototype;k.ao=function(){return ol(this,1,!1)};k.Bk=function(a){return O(this,1,a)};k.bo=function(){return null!=L(this,1)};k.Ru=function(){return ol(this,2,!1)};k.co=function(a){return O(this,2,a)};k.av=function(){return null!=L(this,2)};k.Su=function(){return ol(this,3,!1)};k.eo=function(a){return O(this,3,a)};k.bv=function(){return null!=L(this,3)};k.Uu=function(){return ol(this,4,!1)};k.ho=function(a){return O(this,4,a)};
k.dv=function(){return null!=L(this,4)};k.Vu=function(){return ol(this,5,!1)};k.io=function(a){return O(this,5,a)};k.ev=function(){return null!=L(this,5)};k.Wu=function(){return ol(this,6,!1)};k.jo=function(a){return O(this,6,a)};k.fv=function(){return null!=L(this,6)};k.Tu=function(){return ol(this,7,!1)};k.fo=function(a){return O(this,7,a)};k.cv=function(){return null!=L(this,7)};k.Yu=function(){return ol(this,9,!1)};k.lo=function(a){return O(this,9,a)};k.hv=function(){return null!=L(this,9)};
k.Zu=function(){return ol(this,10,!1)};k.mo=function(a){return O(this,10,a)};k.iv=function(){return null!=L(this,10)};k.ms=function(){return ol(this,11,!1)};k.Ro=function(a){return O(this,11,a)};k.at=function(){return null!=L(this,11)};k.ns=function(){return ol(this,12,!1)};k.So=function(a){return O(this,12,a)};k.bt=function(){return null!=L(this,12)};k.Xu=function(){return ol(this,13,!1)};k.ko=function(a){return O(this,13,a)};k.gv=function(){return null!=L(this,13)};
k.gs=function(){return ol(this,14,!1)};k.No=function(a){return O(this,14,a)};k.Ws=function(){return null!=L(this,14)};k.ks=function(){return ol(this,15,!1)};k.Po=function(a){return O(this,15,a)};k.Ys=function(){return null!=L(this,15)};k.ls=function(){return ol(this,16,!1)};k.Qo=function(a){return O(this,16,a)};k.Zs=function(){return null!=L(this,16)};k.hs=function(){return ol(this,17,!1)};k.Oo=function(a){return O(this,17,a)};k.Xs=function(){return null!=L(this,17)};var d7=c7.prototype,f7=function(a,b){T.call(this);var c=this;this.controller=b;this.j=new c7;this.g=new lL(this);this.ec=this.g.signal();this.h=[V0({has:d7.bo,get:d7.ao,set:d7.Bk}),V0({has:d7.av,get:d7.Ru,set:d7.co}),V0({has:d7.bv,get:d7.Su,set:d7.eo}),V0({has:d7.dv,get:d7.Uu,set:d7.ho}),V0({has:d7.ev,get:d7.Vu,set:d7.io}),V0({has:d7.fv,get:d7.Wu,set:d7.jo}),V0({has:d7.bo,get:d7.ao,set:d7.Bk}),V0({has:d7.cv,get:d7.Tu,set:d7.fo}),V0({has:d7.hv,get:d7.Yu,set:d7.lo}),V0({has:d7.iv,get:d7.Zu,set:d7.mo}),
V0({has:d7.at,get:d7.ms,set:d7.Ro}),V0({has:d7.bt,get:d7.ns,set:d7.So}),V0({has:d7.gv,get:d7.Xu,set:d7.ko}),V0({has:d7.Ws,get:d7.gs,set:d7.No}),V0({has:d7.Ys,get:d7.ks,set:d7.Po}),V0({has:d7.Zs,get:d7.ls,set:d7.Qo}),V0({has:d7.Xs,get:d7.hs,set:d7.Oo})];b.ec.attach(function(d){e7(c,d)});e7(this,a)};u(f7,T);var e7=function(a,b){U0(a.j,b,a.h)&&a.g.V(a.ec,void 0)};var mga=function(a){var b=new lL,c=b.signal(),d=a.s.get(),e=a.fa.get();d=e&&d?d.F(e):null;var f=new f7(g7(d),{ec:c});f.N(b);a.fa.then(function(g){a.gj.then(function(){var h=V2(a);h&&b.V(c,g7(h));a.s.then(function(l){b.V(c,g7(l.F(g)));l.onChange.attach(function(){b.V(c,g7(l.F(g)))},f)})})});return f},g7=function(a){return a?(a=new Set(L(a,13)),(new c7).Bk(!0).co(!0).eo(a.has(3)).ho(a.has(1)).io(a.has(8)).jo(a.has(9)).fo(a.has(5)).lo(!0).mo(a.has(2)).Ro(a.has(4)).So(a.has(7)).ko(a.has(10)).No(a.has(11)).Po(a.has(12)).Qo(a.has(14)).Oo(a.has(15))):
new c7};var h7=function(a){pv.call(this);var b=this;this.g=null;this.l=a;this.h=!1;TR(this,{shouldConserveBattery:function(){return b.h}});(a=navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.g=c;var d=new X(b);b.N(d);d.listen(c,["chargingchange","levelchange"],b.j);b.j()})};u(h7,pv);h7.prototype.j=function(){var a=!this.g.charging&&.1>this.g.level;this.h!=a&&(this.h=a,this.M("eb"),this.l.g(a?2805:2806))};var nga=function(a){fK(a,X6)||tK(a,X6,function(b){return new h7(new iL(b))})};var oga=function(a){var b=void 0===b?!1:b;Qaa(a);ifa(a);nga(a);Tfa(a);a.registerService(KK,tfa);Kea(a);aga(a);a.registerService(LK,hga);Wea(a);Ifa(a);a.registerService(NK,mga);Mea(a);hU(a);YV(a);Sfa(a);r6(a,b?function(c){return new e6(c)}:void 0)};var i7=function(a,b,c){T.call(this);this.o=a;this.h=b;this.m=c;this.g=this.l=null;this.j=[];this.s=BR(xR("DmKtxe"),1)};u(i7,T);
var YW=function(a,b,c){var d=a.l;if(null==d)return Vs(Error("Cannot upload LogData without a sessionId."));if(!a.g)return Vs(Error("Cannot upload LogData without hangout data."));null!=a.h&&O(b,1,a.h);j7(a,b);O(b,2,a.g.gb);O(b,3,a.g.fa);a.g.Zc.m(b);O(b,21,c);return aS(a.o,b,d)},XX=function(a,b,c){k7(a,c,b)},$X=function(a,b,c,d,e,f){return k7(a,c,e,b,d,f,!0)},k7=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=a.l;if(null==h)return Vs(Error("Cannot upload LogData without a sessionId."));if(!a.g)return Vs(Error("Cannot upload LogData without hangout data."));
if(null==c&&null==d)return Vs("Nothing to upload");null!=c&&a.j.push(c);if(!g&&a.j.length!=a.s)return Us();c=a.g;g=c.nr;var l=c.pr;c=new GE;O(c,2,(new Date(l)).toString());AR(xR("xKXfOb"))?O(c,133,l):O(c,133,g.g);l=-2;g&&(g=qR(Y(),g),l=Math.round(g/1E3));O(c,3,l);O(c,1,h);null!=d&&O(c,29,d);null!=e&&O(c,30,e);null==f||id(ue(f))||O(c,100,f);wl(c,5,a.j);a.j=[];d=new WG;S(d,4,c);O(d,2,a.g.gb);null!=a.g.fa&&(O(d,3,a.g.fa),O(d,24,a.g.fa));null!=a.h&&O(d,1,a.h);j7(a,d);e=a.g.Zc;e.o&&(f=Q(d,GE,4)||new GE,
O(f,4,e.o),S(d,4,f));e.m(d);O(d,21,b);return aS(a.o,d,h)},j7=function(a,b){O(b,11,a.m.g.slice()||[]);O(b,12,a.m.h);O(b,18,a.m.j)};var l7=function(a,b,c){c=c.Cw;QM.call(this);this.F=b;this.g=FY(a,"realtime.media.session.MediaSessionSyncer");a=a.g;this.R=M(Q(a,IL,13),1,3E4);this.s=a.o;this.o=new X(this);this.N(this.o);this.W=c;this.G=new vQ;this.h=this.j=null;this.l=-1;this.m=null};u(l7,QM);var n7=function(a){yW(a.g,"["+a.h+"] stopping session sync");m7(a);tN(a.o,a.s,"m",a.C);a.j=null},bY=function(a){null!=a.j&&(yW(a.g,"["+a.h+"] session resync requested"),m7(a),o7(a))};l7.prototype.aa=function(){n7(this);QM.prototype.aa.call(this)};
var o7=function(a){yW(a.g,"["+a.h+"] sending session query");var b=null;a.W&&-1!==a.l&&(b=a.l);ZR(a.F,a.j,b).then(a.L,a.H,a)},p7=function(a){m7(a);yW(a.g,"["+a.h+"] scheduling session query");a.m=sv(function(){a.m=null;o7(a)},a.R)},m7=function(a){null!=a.m&&(tv(a.m),a.m=null)},r7=function(a,b){b=DQ(a.G,b);a.M(new q7(b))};
l7.prototype.L=function(a){if(null!=this.j){var b=a.ea().dc();yW(this.g,"["+this.h+"] session query returned version "+(b+", have "+this.l));a=Q(a,bC,2);if(b>this.l)if(a)this.l=b,r7(this,a);else throw Error("Expected new session version to contain session data");p7(this)}};
l7.prototype.H=function(a){if(null!=this.j){var b=a instanceof YR?a:new YR(""+a);switch(b.status){case 4:case 5:case 7:case 11:this.g.error("["+this.h+"] stopping sync due to session query error: "+a);n7(this);this.M(new s7(b.status,b.desc));break;default:this.g.J("["+this.h+"] ignoring session query error: "+a),p7(this)}}};
l7.prototype.C=function(a){var b=this;if(null!=this.j)if(a=a.notification,a.Tc().some(function(e){return e.j()==b.j}))yW(this.g,"["+this.h+"] removed by session push"),n7(this),this.M(new s7(11,"session removed"));else{var c=a.ea();c=c&&c.dc();if(void 0===c)yW(this.g,"["+this.h+"] session push with no version, have "+this.l);else if(yW(this.g,"["+this.h+"] session push provided version "+(c+", have "+this.l)),!(c<=this.l)){var d=a.kc().find(function(e){return e.j()==b.j});null!=d&&(yW(this.g,"["+
this.h+"] modified by session push"),this.l=c,r7(this,d));null!=L(a,4)&&a.tc().j()==this.j&&(yW(this.g,"["+this.h+"] resync requested by session push"),bY(this))}}else yW(this.g,"["+this.h+"] not syncing. Ignoring session push.")};var s7=function(a,b){U.call(this,"fb");this.status=a;this.message=b};u(s7,U);var q7=function(a){U.call(this,"gb");this.sessionDescription=a};u(q7,U);var t7=function(a,b,c){T.call(this);var d=this;this.s=a;this.D=b;this.u=new rU("realtime.media.api.a.BulkJoinProcessor");this.j=c;this.g=null;this.h=new Promise(function(e){return d.C=e});this.o=new Promise(function(e){d.m=e});this.l=!1};u(t7,T);
var pga=m(["Connecting Bulk Join Handler for ",""]),qga=m(["Disconnecting Bulk Join Handler for ",""]),rga=m(["Set sessionId ",""]),tga=function(a,b){if(!a.g){a.u.g(pga,b);var c=a.s.F.attach(function(d){return sga(a,d)},a);a.o.finally(function(){a.u.g(qga,b);a.s.F.detach(c)})}a.u.g(rga,b);a.g=b},uga=m(["Ignoring bulk join request for "," since we already are handling one."]),vga=m(["Adding session "," to bulk join for ",""]),wga=m(["Failed to get down streams!"]),xga=m(["Appending "," MediaStreamAdds to bulk join for ",
""]),yga=m(["Failed to get down streams!"]),zga=m(["We bulk joined a different hangoutId! Session had "," and bulk join was for ",""]),Aga=m(["Bulk join complete. UpStreams: ",". DownStreams: ","."]),sga=function(a,b){var c=b.yK,d=b.qK,e,f,g,h,l,p,r;return Ca(function(t){switch(t.g){case 1:e=MM(c);if(!e)return t.return();f=e;if(a.l)return a.u.J(uga,f),t.return();a.u.g(vga,a.g,f);a.l=!0;g=d(PC(new NC,KC(MC(LC(new JC,a.g),f),1))).then(u7).catch(function(A){uU(a.u,v7(A)).Ra(wga)});h=new Promise(function(A){a.u.g(xga,
a.j.length,f);a.j.length?A(Bga(a,d,f)):A(d(PC(new NC,KC(MC(LC(new JC,a.g),f),2))).then(u7).catch(function(z){uU(a.u,v7(z)).Ra(yga)}))});return v(t,a.h,2);case 2:return l=t.h,f!==l?v(t,h,7):v(t,h,5);case 5:return p=t.h,v(t,g,6);case 6:r={ep:p,wm:t.h};a.u.g(Aga,w7(r.ep),w7(r.wm));a.m(r);t.bb(0);break;case 7:a.u.Ra(zga,l,f),a.m({}),t.g=0}})},Cga=m(["Failed to add streams! Pushing streams back ","."]),Bga=function(a,b,c){var d=a.j.concat(),e=d.map(function(f){f=KQ(a.D,a.g,c,f);O(f,6,void 0);return f});
a.j.length=0;return b(OC(new NC,IC(new HC,e))).then(function(f){var g,h,l;return Ca(function(p){if(1==p.g)return v(p,a.h,2);g=p.h;if(c!==g)throw Error("Added streams from another hangout");h=Q(f,jD,3);if(!h||!LM(h))throw Error("Failed to add streams");l=KM(h);return p.return({version:l,data:R(h,tC,4)||[]})})}).catch(function(f){uU(a.u,v7(f)).Ra(Cga,d.length);a.j.unshift.apply(a.j,q(d))})},Dga=m(["Set hangout id: ",""]),Ega=m(["Bulk never occurred before session finalization."]),Fga=function(a){return Ca(function(b){a.l||
(a.u.g(Ega),a.l=!0,a.m({}));return b.return(a.o)})},u7=function(a){a=Q(a,lD,4);if(!a)throw Error("Missing Search Response");if(!LM(a))throw Error("Early search failed");var b=KM(a);if(null!=b)return{version:b,data:R(a,tC,2)||[]};throw Error("No version found!");},w7=function(a){return a?a.data.length+" items ("+a.version+")":"NONE"},v7=function(a){return a instanceof Error?a:Error(""+a)};var LQ=new vQ,Gga=m(["sessionId=",""]),x7=function(a,b,c,d){d=d.Gr;$S.call(this);var e=this;this.u=Wf("realtime.media.api.apiary.RemoteSession");this.m=tU(new rU("realtime.media.api.apiary.RemoteSession"),function(f){return f(Gga,vY(e))});this.eb=a;this.ta=b;this.Da=this.Ba=this.h=this.Ha=this.g=null;this.Jh=d;this.G=new iL(a);this.l=this.j=null;this.Z=bt();this.ra=[];this.kb=!1;this.Aa=new X(this);this.N(this.Aa);this.C=c;this.N(this.C);this.o="INITIAL";this.sa=new Set;this.L=[];this.H=[];this.W=
new Map;this.s=new Map;this.Sa=new Map;this.F=new Map;this.oa=new Map;this.Ya=new Map;this.La=bt();this.ka=bt();this.Ma=new Set;this.xb=W(a,zK);this.R=new t7(this.ta.j,LQ,this.L);this.N(this.R);TR(this,{mediaSessionStartTime:function(){return(new Date(e.ob)).toString()},mediaUpStreams:function(){return e.j&&e.j.xa()},mediaDownStreams:function(){return e.l&&e.l.xa()}})};u(x7,$S);var Hga=m(["state changed "," -> ",""]),GW=function(a,b,c,d){a.o!=b&&(a.m.g(Hga,a.o,b),a.o=b,a.M(new lR(b,c,d)))};
x7.prototype.getState=function(){return this.o};x7.prototype.Hm=function(){return this.Z.da.then(function(a){return EN(a)})};
var Jga=function(a,b,c,d){null!=a.j?Yf(a.u,"Local streams collection already initiated"):(a.j=wO(a.eb,a.ta,[c,2,b],uO,sO,"o","MediaUpStream"),a.N(a.j),a.j.Da.attach(function(e){var f=e.Ib;a.m.Ra(y7,e.reason);a.stop(f)},a),a.j.start(void 0,d),a.j.onChange.attach(function(e){return Iga(a,e.Pc,e.vc,e.removed)},a))},FW=function(a,b){null!=a.l?Yf(a.u,"Remote streams collection already initiated"):(a.l=wO(a.eb,a.ta,[b,1,""],uO,sO,"o","MediaDownStream"),a.N(a.l),a.l.Da.attach(function(c){var d=c.Ib;a.m.Ra(y7,
c.reason);a.stop(d)},a),a.l.Bc.attach(function(c){c=c.Ye;Zf(a.u,"Received early streams push notification with "+c.length+" modified streams");if(a.kb&&0!=c.length)if("INPROGRESS"==a.o)z7(a,c);else if("STARTING"==a.o||"STARTED"==a.o)a.H=bc(a.H,c)},a),a.Z.resolve(a.l),yN(a.l),a.l.onChange.attach(function(c){var d=c.Pc,e=c.vc;c=c.removed;0<d.length&&z7(a,d);0<e.length&&Kga(a,e);0<c.length&&Lga(a,c)},a))},Mga=m(["Stopping due to down stream search failure: ",""]),Oga=function(a,b,c,d){c=BN(a.l.l).Xn(b).Wn(c);
d=a.l.start(c,d);Nga(a);ft(cS(d,"za",b,a),function(e){a.m.Ra(Mga,e);a.G.g(3950,{sessionId:a.g||void 0});a.stop(16,"Down stream search failure: "+e)})},Nga=function(a){null==a.sa?C(a.u,"Attempting to install collection filters with null participants. setParticipants() must be called prior to this call!"):$N(a.l,function(b){return a.sa.has(b.Y()||"")})};x7.prototype.start=function(a){var b=this;uY(this,a);GW(this,"STARTED");this.La.da.then(function(){Pga(b)});return!0};
var Qga=m(["Connecting to Hangout: ",""]);x7.prototype.yh=function(a,b,c){this.m.g(Qga,a);switch(this.o){case "INITIAL":C(this.u,"Connect to hangout called before starting.");return;case "STOPPED":case "FINISHED":C(this.u,"Connect to hangout called after end.");return}null!=this.h?Yf(this.u,"Multiple hangouts per RemoteSession not yet supported."):(this.h=a,this.Ba=b,this.Da=c,this.ob=Y().g,a=this.R,b=this.h,a.u.g(Dga,b),a.C(b),this.La.resolve())};
var Rga=m(["Finished connecting to Hangout: "," with participantId: "," and participantLogId: ",""]),Pga=function(a){var b,c;Ca(function(d){if(1==d.g)return b=a.Da&&a.Da.g||"",a.m.g(Rga,a.h,a.Ba,b),v(d,Fga(a.R),2);c=d.h;Jga(a,a.g,a.h,c.ep);A7(a,a.g,a.h,a.L);Ub(a.L);Oga(a,a.g,a.h,c.wm);0<a.H.length&&(z7(a,a.H),Ub(a.H));GW(a,"INPROGRESS");a.ka.resolve();B7(a);d.g=0})};x7.prototype.resume=function(){this.s=new Map};var Sga=m(["Stopping with endCause: ",""]);
x7.prototype.stop=function(a,b){this.m.g(Sga,a);if("STOPPED"==this.o)return!1;us(this.C);null==this.g||"STARTING"!=this.o&&"INPROGRESS"!=this.o||(us(this.j),this.j=null,us(this.l),this.l=null,this.Z.reject(a),this.Z=bt());GW(this,"STOPPED",a,b);return!0};x7.prototype.An=function(a){var b=this;if(a=gF(a)){var c=new Set;a.forEach(function(d){var e=nF(d)[0]>>>0;switch(xF(d)){case 1:Tga(b,e,d);break;case 0:c.add(e),Uga(b,e,d)}});c.size<this.F.size&&this.F.forEach(function(d,e){c.has(e)||b.F.delete(e)})}};
x7.prototype.pb=function(a){this.M(new dR(a.sessionDescription))};x7.prototype.wb=function(a){switch(a.status){case 11:var b=25;break;default:b=15}this.stop(b,"ClientResponseStatus: "+a.status+" with desc: "+a.message)};
var C7=function(a,b){var c;(c=a.h!=b.h||a.j!=b.j)||(a=a.sc(),b=b.sc(),c=null==a&&null==b?!1:null==a||null==b?!0:a.width!=b.width||a.height!=b.height);return c},Uga=function(a,b,c){if("INPROGRESS"==a.o){var d=Y().g,e=Vga(a,b),f=(L(c,65)||0)&Wga;e.kk<d&&e.hn!=f&&(b=Xga(a.j.get(),b))&&(e.kk=Infinity,c=a.j.nb(b),EC(c,b.ia()),FC(c,Yga(f)),et(JN(a.j,c).then(function(){e.hn=f}),function(){e.kk=d+1E4}))}},Tga=function(a,b,c){if(2===tF(c)){c instanceof oV||a.G.h(6642);var d=a.Ya.get(b)||0,e=L(c,10)||0;a.Ya.set(b,
e);var f=Math.max(e-d,0);d=a.oa.get(b);if(null!=d){e=Y().g;O(c,114,d.settings.width);O(c,115,d.settings.height);if(d.settings.framerate){O(c,159,Math.ceil(1E3/d.settings.framerate));Zf(a.u,"Set last request width/height/fps "+d.settings.width+"/"+d.settings.height+"/"+d.settings.framerate+" for ssrc "+b+" in jmidata");var g=L(c,65)||0;30>d.settings.framerate?g|=65536:(g&65536&&(g&=-65537),O(c,65,g))}else Zf(a.u,"Set last request width/height "+d.settings.width+"/"+d.settings.height+"/ for ssrc "+
b+" in jmidata");f=!D7(a,b)||0<f;b=!!ml(c,59);if(d.an!=f||d.wg!=b)d.an=f,d.wg=b,d.xe&&(d.xe=e);if(d.xe&&c instanceof oV&&(c.D=f,c.j=e-d.xe,d=c.o,b&&0<(L(c,138)||0)&&d&&ml(d,14))){a.G.g(4577);var h=nV(d);PJ(h,[25]);a.xb.then(function(l){IX(l,h)})}}}},Zga=m(["Attempting to add local streams before we have a sessionId."]),kX=function(a,b){switch(a.o){case "INITIAL":case "STARTING":case "STARTED":dc(a.L,b);return;case "STOPPED":case "FINISHED":C(a.u,"Add local streams called after end.");return}var c=
a.g,d=a.h;null==c?a.m.Ra(Zga):null==d?dc(a.L,b):A7(a,c,d,b)},$ga=m(["Ignore addLocalStream due to pending add for the same stream ",""]),aha=m(["Stopping due to addLocalStream failure: ",""]),A7=function(a,b,c,d){d.forEach(function(e){var f=KQ(LQ,b,c,e),g=uO.h(f);if(a.ra.some(function(l){return mc(g,l)}))a.m.J($ga,e);else{var h=a.j.get().some(function(l){return bL(uO,f,l)});h||"d"==e.ia()||a.ra.push(g);h=cS(h?JN(a.j,f):a.j.add(f),"Ba",b,a);"d"!=e.ia()&&ft(h,function(l){a.m.Ra(aha,l);a.G.g(3951,{sessionId:a.g||
void 0});a.stop(16,"addLocalStream failure: "+l)})}})},pX=function(a,b){a.ka.da.then(function(){var c=a.j.nb(b.g);EC(c,EQ(b.ia()));var d=new yC,e=b.lc();O(d,1,e);S(c,10,d);JN(a.j,c)})},qaa=function(a,b){"a"==b.ia()&&a.ka.da.then(function(){var c=a.j.nb(b.g);EC(c,EQ(b.ia()));var d=new yC;O(d,1,!0);S(c,10,d);JN(a.j,c)})},bha=m(["New session id: ",""]),uY=function(a,b){if(a.g!=b){a.m.g(bha,b||"{unset}");a.g=b;tga(a.R,b);a.Aa.listen(a.C,"gb",a.pb);a.Aa.listen(a.C,"fb",a.wb);var c=a.C;a=vY(a);a=void 0===
a?b:a;yW(c.g,"["+a+"] starting session sync");c.j=b;c.h=a;c.o.listen(c.s,"m",c.C);o7(c)}},vY=function(a){if(null==a.g)return"{unset}";null==a.Ha&&(a.Ha=a.g.substring(0,6)+"{#"+(a.g.length-7)+"}"+a.g.substring(a.g.length-1));return a.Ha},cha=m(["Attempting to signal screencast started, but no video stream found!"]),nX=function(a){if(null!=a.j){var b=a.j.get().find(function(d){return 2==d.ia()});if(null==b)a.m.J(cha);else{b=a.j.nb(b);EC(b,2);O(b,11,!1);var c=new yC;O(c,1,!1);S(b,10,c);JN(a.j,b)}}},
dha=m(["Attempting to signal screencast ended, but no video stream found!"]),oX=function(a){if(null!=a.j){var b=a.j.get().find(function(c){return 2==c.ia()});null==b?a.m.J(dha):(b=a.j.nb(b),EC(b,2),O(b,11,!0),JN(a.j,b))}};x7.prototype.qe=function(a){var b=this;this.W=new Map;a.forEach(function(c){var d=E7(c.Y(),c.za());b.W.set(d,c)});B7(this)};
var eha=m(["Ignoring changed stream requests because we don't have a sessionId."]),fha=m(["Ignoring changed stream requests because we don't have a hangoutId."]),B7=function(a){switch(a.o){case "INITIAL":case "STARTING":case "STOPPED":case "FINISHED":return}if(null==a.g)a.m.Ra(eha);else if(null==a.h)a.m.Ra(fha);else{var b=new Map,c=EQ("v");a.l.get().forEach(function(e){if(e.ia()==c){var f=E7(e.Y(),e.za());b.set(f,e)}});var d=[];a.W.forEach(function(e,f){if(b.has(f)){var g=a.s.get(f);if(!g||C7(g,e))a.s.set(f,
e),d.push(F7(a,b.get(f),e))}else D(a.u,"Skipping stream request for "+e.Y()+" (no matching stream was found).")});a.s.forEach(function(e,f){if(!a.W.has(f)){var g=FP(JP(IP(new zP(e))),!1).ha();C7(e,g)&&(a.s.delete(f),(e=b.get(f))?d.push(F7(a,e,g)):D(a.u,"Unable to turn off stream request for "+f+" (no matching stream was found)."))}});gha(a,d)}},hha=m(["Sending stream request: "," with streamId: ",""]),F7=function(a,b,c){a.Ma.has(c.Y())&&(c=DP(new zP(c),"").ha());var d=c.sc(),e=c.h;if(!d||0>=d.height||
0>=d.width||!c.j)e=!1;var f=b.ai(),g=a.g,h=a.h,l=c,p=e;e=new tC;e.vk(f);e.j(1);e.uk(g);e.tk(h);g=l.Y()||null;O(e,6,g);EC(e,EQ(l.ia()));g=l.za();O(e,7,g);g=new RB;O(g,2,p);p=l.sc();null!=p&&(h=new IB,O(h,1,p.height),O(h,2,p.width),O(h,3,l.j),S(g,3,h));S(e,9,g);a.m.g(hha,c,f);b=Q(b,vC,8);a.G.g(5149);S(e,8,b);d&&b&&L(b,1)&&(b=L(b,1)[0]>>>0,null!=b&&(f={width:d.width,height:d.height,framerate:c.j||void 0},(c=a.oa.get(b))?c.settings=f:(c={xe:0,an:!D7(a,b),wg:!1,settings:f},a.oa.set(b,c)),f=76800<f.width*
f.height,!c.xe&&f?c.xe=Y().g:f||(c.xe=0),Zf(a.u,"Building map: last request width/height "+d.width+"/"+d.height+" for ssrc "+b)));return e},gha=function(a,b){b=n(b);for(var c=b.next();!c.done;c=b.next())JN(a.l,c.value)},D7=function(a,b){a=a.Sa.get(b);return void 0!==a?a:!0},G7=function(a,b){var c=b.lc()||b.l&8;b.fb().forEach(function(d){a.Sa.set(d,!!c)})},E7=function(a,b){return(void 0===a?"":a)+"/"+(void 0===b?"":b)},iha=m(["Notified of new remote stream: ",""]),z7=function(a,b){H7(a,b,function(c){var d=
c;a.Jh&&(d=c.filter(function(e){return e.Y()!=a.Ba}));B7(a);d.forEach(function(e){a.m.g(iha,e);G7(a,e)});a.M(new cT(d,[],[]))})},jha=m(["Received modified remote stream: ",""]),Kga=function(a,b){H7(a,b,function(c){c.forEach(function(d){a.m.g(jha,d);G7(a,d)});a.M(new cT([],c,[]))})},kha=m(["Removing remote stream: ",""]),Lga=function(a,b){H7(a,b,function(c){c.forEach(function(d){a.m.g(kha,d);d.fb().forEach(function(e){a.Sa.delete(e)});d=E7(d.Y(),d.za());a.s.delete(d)});a.M(new cT([],[],c))})},H7=function(a,
b,c){var d=lha(a,b);null==d?C(a.u,"Failed to parse streamInfos: "+d):0==d.length?C(a.u,"Got empty streamInfos: "+b):c(d)},lha=function(a,b){return MQ(b).map(function(c){if(""==c.za()){var d=mha[c.ia()];c=QO(new NO(c),d).ha();a.Ma.add(c.Y())}return c})},nha=m(["Terminating to handle failover."]),Iga=function(a,b,c,d){0<b.length&&b.map(function(e){return uO.h(e)}).forEach(function(e){ac(a.ra,function(f){return mc(e,f)})});0<d.length?0==a.j.get().length&&(a.m.g(nha),GW(a,"STOPPED",26)):0<c.length&&(b=
PQ(c),null==b?C(a.u,"Failed to parse stream requests: "+JSON.stringify(c.map(function(e){return e.va()}))):0==b.length?C(a.u,"Got empty stream requests: "+JSON.stringify(c.map(function(e){return e.va()}))):a.M(new dT(b)))},y7=m(["Stopping due to stream collection failure: ",""]),Vga=function(a,b){var c=a.F.get(b);c||(c={kk:0,hn:0},a.F.set(b,c));return c},Xga=function(a,b){return a.find(function(c){c=Q(c,vC,8);return!!c&&void 0!=L(c,1).find(function(d){return d>>>0==b})})||null},Yga=function(a){var b=
new AC;I7.forEach(function(c,d){a&d&&L(b,1).push(c)});return b},J7={},mha=(J7.a="1",J7.v="2",J7.d="3",J7),I7=new Map([[1,1],[2,2],[8,3]]),Wga=Array.from(I7.keys()).reduce(function(a,b){return a|b},0);var K7=function(){CZ.apply(this,arguments)};u(K7,CZ);var L7=function(a,b){return new VR(a.j,L(a,2),function(){return bN(a,b)})};K7.prototype.nn=function(a,b){var c=this.h.g;b=L7(c,b);return new i7(b,c.bc(),new jM(L(c,14),ml(c,8)||!1,!!ml(c,16)),a)};K7.prototype.rn=function(a,b,c){var d=this.h.g,e=L7(d,c),f=AR(xR("M3bN6b"));e=new l7(this.h,e,{Cw:f});return new x7(a,d,e,{Gr:b.Jh,xc:c})};BZ({Od:K7,priority:1});var M7=function(a,b){U.call(this,"hb");this.sessionId=a;this.g=new Map(b)};u(M7,U);var N7=null,O7=null,P7=null;function Q7(){var a=N7;a&&"suspended"===a.state&&a.resume()}function R7(){N7||(N7=new (window.AudioContext||window.webkitAudioContext),O7=new qv(2E3),P7=new X,P7.listen(O7,"tick",function(){return Q7()}),Q7(),O7.start());return N7};var S7=function(a){if("string"===typeof a){var b=Number(a);a=0==b&&id(a)?NaN:b}return 1E3>a?a/2E3:2E3>a?(a-1E3)/2E3+.5:3E3>a?(a-2E3)/2E3+1:4E3>a?(a-3E3)/2E3+1.5:6E3>a?(a-4E3)/4E3+2:1E4>a?(a-6E3)/8E3+2.5:15E3>a?(a-1E4)/1E4+3:19E3>a?(a-15E3)/8E3+3.5:22E3>a?(a-19E3)/6E3+4:32767>=a?(a-22E3)/21534+4.5:5};var T7=function(a){T.call(this);this.g=null;var b=a;jf&&(b=this.g=a.clone(),b.getAudioTracks().forEach(function(c){return c.enabled=!0}));this.l=b};u(T7,T);T7.prototype.aa=function(){this.g&&([].concat(q(this.g.getAudioTracks()),q(this.g.getVideoTracks())).forEach(function(a){a.stop()}),this.g=null);T.prototype.aa.call(this)};T7.prototype.stream=function(){return this.l};var U7=function(a){T7.call(this,a);this.h=R7().createAnalyser();this.h.fftSize=2048;this.j=R7().createMediaStreamSource(this.stream());this.j.connect(this.h)};u(U7,T7);U7.prototype.aa=function(){this.j.disconnect();T7.prototype.aa.call(this)};var oha=function(a){var b=new Uint8Array(a.h.fftSize);a.h.getByteTimeDomainData(b);a=256*b.reduce(function(c,d){return Math.max(c,Math.abs(d-128))},0);return S7(a)};var pha=m(["",""]),V7=function(a,b,c,d){pv.call(this);var e=this;this.T=zU(tU(new rU("realtime.media.audio.AudioOutput"),function(f){return f(pha,e)}));this.s=d&&W(d,AK);0===a.getAudioTracks().length&&this.g(6549);this.C=a;this.l=new X(this);this.N(this.l);this.volume=0;this.m=b?new U7(a):null;this.N(this.m);this.F=c};u(V7,pv);V7.prototype.toString=function(){return"AudioOutput(stream="+this.C.id+", volume="+this.volume+")"};var qha=m(["Setting requested volume to ","."]);
V7.prototype.Sb=function(a){this.T.g(qha,a);this.volume=a};V7.prototype.Na=function(){return this.C};V7.prototype.aa=function(){this.Sb(0);pv.prototype.aa.call(this)};var rha=m(["Rebuilding."]);V7.prototype.o=function(){this.T.g(rha)};V7.prototype.g=function(a,b,c){this.s&&this.s.then(function(d){d.g(a,{Fc:b,Ub:c})})};var W7=function(a,b){U.call(this,"playing_error");this.code=a;this.message=b};u(W7,U);var X7=function(a,b,c,d,e){V7.call(this,b,c,d,e);this.j=a;this.h=[];a=BR(xR("AgRW1b"),0);this.H=Math.pow(10,-a/20);this.Sb(1)};u(X7,V7);X7.prototype.toString=function(){return"HtmlAudioOutput(stream="+this.Na().id+", volume="+this.volume+", elements.length="+this.h.length+")"};
X7.prototype.Sb=function(a){a*=this.H;V7.prototype.Sb.call(this,a);if(this.j){var b=Math.ceil(a)-this.h.length;if(0<b)this.G(b);else if(0>b){b=-b;this.T.g(sha,b);for(var c=0;c<b;++c){var d=this.h.pop();d.srcObject=null;this.j.zs(d)}}0<a&&(this.h[0].volume=a-(this.h.length-1))}};X7.prototype.o=function(){V7.prototype.o.call(this);var a=this.volume;this.Sb(0);this.Sb(a)};var tha=m(["Adding "," elements."]);
X7.prototype.G=function(a){this.T.g(tha,a);for(var b=[],c=0;c<a;++c){var d=ig(this.j.g,"AUDIO");d.srcObject=this.Na();b.push(d)}uha(this,b)};
var vha=m(["Failed to set sink IDs. Error: ",""]),wha=m(["Setting audio output device is not supported in browser."]),uha=function(a,b){var c=[];b.forEach(function(d){var e=bt(),f=!1;c.push(e.da);var g=d.play();g&&g.then(Ka,function(h){a.M(new W7(-1,h))});sv(function(){f||a.g(5298)},15E3);sN(a.l,d,"playing",function(){f=!0;e.resolve()});sN(a.l,d,"error",function(){return a.M(new W7(d.error.code,d.error.message))});a.h.push(d);a.j.appendChild(a.j.g.body,d)});Zs(c).then(function(){return a.M("playing")});
""!==a.F&&(jf?ft(xha(a,b),function(d){a.T.Ra(vha,d);throw d;}):a.T.g(wha))},sha=m(["Removing "," elements."]),xha=function(a,b){b=b.map(function(c){return Us().then(function(){var d=Date.now();a.g(5269);return c.setSinkId(a.F).then(function(){a.g(5270,Date.now()-d)},function(e){a.g(5124,Date.now()-d,""+e);e&&("TypeError"===e.name?a.g(5155,void 0,""+e):"AbortError"===e.name?a.g(5156,void 0,""+e):"NotFoundError"===e.name?a.g(5157,void 0,""+e):"SecurityError"===e.name&&a.g(5158,void 0,""+e));throw e;
})})});return Zs(b).then(function(){})};var Y7=function(){X.call(this);this.u=new rU("realtime.media.stats.OutputTracker");this.j=new Map;this.h=new Map;this.g=new Map;qN(this,document,"visibilitychange",this.l,!1,this)};u(Y7,X);
var yha=m(["recordBeforeAudioStop: No info found for ssrc ",""]),zha=m(["recordBeforeAudioStop: No matching element found for ssrc ",""]),Aha=function(a,b,c){var d=a.g.get(b);d?$b(d,function(e){return e.Ge==c})?0==d.length&&a.g.delete(b):a.u.J(zha,b):a.u.J(yha,b)},$7=function(a,b){var c=a.j.get(b);c&&c.forEach(function(e){return Z7(a,b,e)});var d=a.h.get(b);if(!d)return null;a.h.delete(b);c=Bha(d);d=Cha(d);return null!=c||null!=d?{Oh:c,Ph:d}:null},Dha=m(["Non-monotonic frame count: ",""]),Eha=m(["Negative fps! s:",
" e:",""]),Z7=function(a,b,c){c=c.h();c.end.g<c.start.g?a.u.J(Dha,c.end.g):(a.h.has(b)||a.h.set(b,[]),-1>c.h()&&a.u.J(Eha,c.start,c.end),a.h.get(b).push(c))};Y7.prototype.l=function(){var a=this;this.j.forEach(function(b,c){b.forEach(function(d){Z7(a,c,d)})})};
var Bha=function(a){var b=0,c=0;a.forEach(function(d){b+=d.end.g-d.start.g;c+=d.end.timestamp-d.start.timestamp});return 0==c?null:b/c},Cha=function(a){var b=[];a.forEach(function(g){g.j||(b.push({t:g.start.timestamp,c:1,i:g}),b.push({t:g.end.timestamp,c:-1,i:g}))});kc(b);var c=0,d=0,e=-Infinity,f=[];b.forEach(function(g){var h=g.t,l=h-e;0<f.length&&(c+=h-e,d+=L(f[0],29)*l);1==g.c?(Vb(f,g.i),ic(f,Fha)):Zb(f,g.i);e=h});return 0==c?null:d/c},Gha=function(a,b){a=a.j.get(b)||a.g.get(b);if(!a)return null;
var c=0,d=!1;a.forEach(function(e){e=e.g();null!=e&&(c=Math.max(e,c),d=!0)});return d?c:null},a8=function(a,b){return(a=a.j.get(b))?Lb(a,function(c,d){d=d.j();return null==c?d:null==d?c:Math.max(c,d)},null):null};Y7.prototype.aa=function(){this.j.clear();this.g.clear();this.h.clear();X.prototype.aa.call(this)};var b8=new WeakMap,Fha=function(a,b){var c=b.g-a.g;0==c&&(c=L(b,29)-L(a,29));return c},Hha=function(a){this.Ge=a};var d8=function(a,b,c,d){d=void 0===d?function(f,g,h,l,p){return new X7(f,g,h,l,p)}:d;pv.call(this);var e=this;this.u=new rU("realtime.media.audio.output.OutputManager");this.h=new X;this.N(this.h);this.o=a;this.j=b;this.s=c;this.m=d;this.g=new Map;this.l=!1;sN(this.h,gg(a.g),"click",function(){c8(e)});sN(this.h,gg(a.g),"keyup",function(){c8(e)})};u(d8,pv);
var Iha=m(["Creating audio output for stream (id=","), ssrc (","),\n     and output device (id=",")"]),Jha=m(["Stream (id=",") with no SSRC added."]),Kha=function(a,b,c,d){var e=b.id;a.u.g(Iha,e,c,"");b=a.m(a.o,b,d,"",a.s);a.g.set(e,{bm:b,ssrc:c});c?(a=a.j,a.g.has(c)||a.g.set(c,[]),a.g.get(c).push(new Hha(b))):a.u.J(Jha,e);return b},Lha=m(["Attempted to remove a non-existing or already removed audio\n       stream (id=",") in output manager."]),Mha=m(["Removing audio output for stream (id=","), ssrc (",
")."]),Nha=m(["Unusual removal of stream (id=",") which had no SSRC."]),e8=function(a,b){if(a.g.has(b)){var c=a.g.get(b),d=c.bm;c=c.ssrc;a.u.g(Mha,b,c);c?Aha(a.j,c,d):a.u.J(Nha,b);a.g.delete(b);us(d)}else a.u.J(Lha,b)},Oha=m(["Rebuilding audio output (streamId=",") to unblock playback."]),c8=function(a){a.l||(a.l=!0,a.g.forEach(function(b,c){b=b.bm;a.u.g(Oha,c);b.o()}))};var f8=function(){this.g=new Map};f8.prototype.smooth=function(a){for(var b=this,c=n(this.g.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.has(d)||this.g.delete(d);a.forEach(function(e,f){var g=b.g.get(f);void 0!==g&&(e.volume=.75*e.volume+.25*g);b.g.set(f,e.volume)})};var g8=function(a){this.g=a};g8.prototype.l=function(a){var b=this.g;if(b=b.w?Array.from(new Int32Array(b.g.HEAP32.buffer,b.g._GetEchoHistogram(),b.g._GetEchoHistogramSize())):null){a=n(gF(a));for(var c=a.next();!c.done;c=a.next())if(c=c.value,1===tF(c)&&0===xF(c)){var d=Array.from(b);O(c,153,d||[]);O(c,154,5);O(c,155,245201848)}}};var h8=function(a){this.g=0;this.h=new Map([[0,0],[1,4],[2,a?2:1],[3,1073741824],[4,1073741824]])};h8.prototype.l=function(a){a=n(gF(a));for(var b=a.next();!b.done;b=a.next())if(b=b.value,2===tF(b)&&0===xF(b)){var c=this.h.get(this.g),d=Q(b,OE,196)||new OE;c=O(d,1,c);S(b,196,c)}};var TY=["H","G"],i8=function(a,b){var c=void 0===b?{}:b;b=void 0===c.sw?1100:c.sw;var d=void 0===c.tw?400:c.tw,e=void 0===c.ww?500:c.ww,f=void 0===c.xw?300:c.xw,g=c.ar,h=c.mu;c=void 0===c.Ar?50:c.Ar;X.call(this);this.C=a;this.F=b;this.G=d;this.K=e;this.H=f;this.o=g;this.Df=h;this.D=c;this.u=new rU("realtime.media.api.webrtc.PassiveListener");this.g=!1;this.l=g;this.h=this.j=null};u(i8,X);i8.prototype.aa=function(){tv(this.j);X.prototype.aa.call(this)};var Pha=m([""," listener mode is enabled."]);
i8.prototype.m=function(){var a=this,b=this.h.Nb()||this.h.Fj();b!==this.g&&(this.g=b,tv(this.j),this.j=sv(function(){a.u.J(Pha,a.g?"Passive":"Active");a.s()},this.g?this.F:this.G))};var Qha=m(["Finish transition to\n          "," listener mode."]);i8.prototype.s=function(){var a=Math.min(Math.max(this.l+(this.g?1:-1)*this.D,this.o),this.Df);this.l=a;this.C(a);(this.g?this.l>=this.Df:this.l<=this.o)?(this.j=null,this.u.J(Qha,this.g?"passive":"active")):this.j=sv(this.s,this.g?this.K:this.H,this)};var j8={audio:"a",video:"v",data:"d",application:"d"};var k8=function(a,b){b=void 0===b?{}:b;this.l=a;this.j=b;this.w=[];this.F=new Set;this.s="ICE";this.o="full";this.m=null},l8=function(a){if(a.m)return a.m;var b=Math.pow(2,53)*Math.random(),c=[];c.push(new jS("v","0"));c.push(new jS("o","- "+b+" 2 IN IP4 127.0.0.1"));c.push(new jS("s","-"));c.push(new jS("t","0 0"));b=a.j.lp?Rha(a):Sha(a);0<a.w.length&&c.push(a.g.apply(a,["group","BUNDLE"].concat(q(a.w))));c.push(a.g("ice-options","trickle"));c.push.apply(c,q(Tha(a,a.s,a.o)));c.push(a.g("msid-semantic",
"WMS","*"));c=new CS(c);a.m=new DS(c,b);return a.m},Sha=function(a){return[a.l.ua,a.l.na,a.l.Va].filter(function(b){return null!=b}).map(function(b,c){var d=ZP(b),e=OP(b);a.h&&(e=a.h.media[c].g.get("mid").g);return m8(a,b.h,e,d,[],!0,!0)})},Rha=function(a){var b=a.h?a.h.media:[],c=a.j.ln||Uha(a),d=!!a.j.ln,e=!!a.j.ln,f=!1,g=[];c.forEach(function(h,l){var p=h.send,r=h.receive,t=h.type,A=h.stream;h=h.mid;var z=[];a.h||"a"!==t||d||(d=r=!0);a.h||"v"!==t||e||(e=r=!0,a.j.Qt&&z.push.apply(z,q(a.j.Qt)));
"d"!==t||f||(f=r=p=!0);if(b[l]&&b[l].xg){var G=b[l];r=!0;G.g.get("rid").forEach(function(N,Aa){"send"===N.g&&z.push(Aa)})}a.h?b[l]&&b[l].Ij&&(p=!0):p=p||!!A;A=A?[A]:[];h||a.h||(h="mid_"+l);g.push(m8(a,t,h,A,z,p,r))});return g},Uha=function(a){var b=Vha(a,a.l),c=a.C?a.C.media:[],d=[];c.forEach(function(r){var t=j8[r.mediaType];r=r.g.get("mid").g;d.push({type:t,mid:r,send:!1,receive:!1,stream:null})});var e=Wha(c),f=Xha(c,a.h);if(a.h){c=a.h;for(var g=0;g<c.media.length;g++){var h=c.media[g],l=h.g.get("mid").g;
if(g<d.length)d[g].mid=l;else{var p=j8[h.mediaType];d.push({type:p,mid:l,send:!1,receive:!1,stream:null});h.Ij&&(h=f.get(p)||[],f.set(p,[].concat(q(h),[g])))}}}b.forEach(function(r){var t=r.type,A=(r=r.stream)&&(r.j||r.be);if(A&&(A=e.get(A),void 0!==A)){d[A].stream=r;return}(A=f.get(t))&&0<A.length?(t=A.shift(),d[t].stream=r):a.h||d.push({type:t,stream:r,mid:null,send:!1,receive:!1})});return d},Vha=function(a,b){var c=[];b=[b.ua,b.na,b.Va];a=Math.max.apply(Math,[a.h?0:1].concat(q(b.map(function(e){return ZP(e).length}))));
for(var d={df:0};d.df<a;d={df:d.df},d.df++)b.forEach(function(e){return function(f){var g=ZP(f)[e.df];f=f.h;(g||0===e.df)&&c.push({type:f,stream:g})}}(d));return c},Yha=function(a,b){a=a.l;switch(b){case "a":return a.ua;case "v":return a.na;case "d":return a.Va;default:Eb()}},Zha=function(a,b,c){b=[new jS("m",new iS(Kc(j8)[b],"0","RTP/SAVPF",["0"])),new jS("c","IN IP6 ::"),a.g("inactive")];c&&b.push(a.g("mid",c));return new AS(b)},m8=function(a,b,c,d,e,f,g){var h=Yha(a,b),l=a.l.g,p=cc(a.l.h),r=!f&&
!g;ef&&r&&(c=null);c&&!a.w.includes(c)&&a.w.push(c);if(r)return Zha(a,b,c);r=[];var t=Kc(j8)[b],A=LP(h),z=h.g,G="RTP/SAVPF";l&&l.g&&(G=z?"DTLS/SCTP":"UDP/TLS/RTP/SAVPF");var N="DTLS/SCTP"===G?[z.zb()]:A.map(function(Aa){return Aa.Dd.toString()});r.push(new jS("m",new iS(t,"9",G,N)));t="inactive";f&&g?t="sendrecv":g?t="recvonly":f&&(t="sendonly");r.push.apply(r,q($ha(a,c,t)));r.push.apply(r,q(aia(a,l)));r.push.apply(r,q(bia(a,p)));r.push.apply(r,q(cia(a,h,g)));r.push.apply(r,q(dia(a,A,b,eia(MP(h)))));
(b=h.qc())&&r.push.apply(r,q(fia(b)));0<e.length&&r.push.apply(r,q(n8(a,"recv",e)));r.push.apply(r,q(z?[a.g("sctpmap",z.zb().toString(),z.getName(),z.g.toString())]:[]));r.push.apply(r,q(gia(a,d)));return new AS(r)};k8.prototype.g=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return new jS("a",new hS(a,c.join(" ")))};
var $ha=function(a,b,c){var d=[];d.push(new jS("c","IN IP6 ::"));d.push(a.g("rtcp","9","IN IP6 ::"));d.push(a.g("rtcp-mux"));b&&d.push(a.g("mid",b));d.push(a.g(c));a=Kb(a.j.Lw||[],function(e){return this.g("x-google-flag",e)},a);d.push.apply(d,q(a));return d},aia=function(a,b){var c=b&&b.h||"123456789012345678901234",d=[];d.push(a.g("ice-ufrag",b&&b.j||"1234567890123456"),a.g("ice-pwd",c));b&&(a.s=b.dc(),a.o=b.o);b&&b.g&&(d.push(a.g("fingerprint",b.g)),d.push(a.g("setup",a.h?b.m:"actpass")));return d},
Tha=function(a,b,c){if("ICE"==b){if("lite"==c)return[a.g("ice-lite")]}else Eb("google-ice is no longer supported.");return[]},bia=function(a,b){var c;0<b.length&&(c=b[0]);return null!=c?[a.g("crypto",c.zf.toString(),c.Ce,c.Kg)]:[]},cia=function(a,b,c){return MP(b).map(function(d){var e=d.id.toString();if(d.uri.includes("rtp-stream-id"))if(!a.h||c)e+="/recvonly";else return null;return a.g("extmap",e,d.uri)}).filter(function(d){return null!=d})},dia=function(a,b,c,d){var e=[];b.forEach(function(f){var g=
f.Dd.toString(),h=f.getName(),l=f.yf;if("v"===c||"d"===c)l=9E4;h=h+"/"+l;"a"===c&&1<(f.Be||0)&&(h+="/"+f.Be);e.push(a.g("rtpmap",g,h));h=f.Cd;if(void 0!==Bc(h)){var p=[];xc(h,function(r,t){t&&r&&p.push(t+"="+r)});h="";0<p.length&&(h=p.join("; "));e.push(a.g("fmtp",g,h))}"a"===c&&!a.h&&f.g&&e.push(a.g("rtcp-fb",g,"nack"));if(lP(f,"vp8")||lP(f,"vp9")||lP(f,"h264"))e.push(a.g("rtcp-fb",g,"ccm fir"),a.g("rtcp-fb",g,"nack"),a.g("rtcp-fb",g,"goog-remb")),d&&e.push(a.g("rtcp-fb",g,"transport-cc"));lP(f,
"opus")&&d&&e.push(a.g("rtcp-fb",g,"transport-cc"))});return e},fia=function(a){var b=[];a=a.g;-1!=a&&b.push(new jS("b","AS:"+a));return b},gia=function(a,b){var c=[];b.forEach(function(d){if(!id(ue(d.be))){var e=d.za(),f=d.be,g=d.j?d.j:f;a.j.lp&&c.push(a.g("msid",f+" "+g));a.F.add(f);var h=cc(d.m).map(function(p){return a.g.apply(a,["ssrc-group",p.g].concat(q(p.fb())))});c.push.apply(c,q(h));if(d.h&&0<d.h.ce().length){var l=d.h;h=l.xg?"send":"recv";l=l.ce().reverse();c.push.apply(c,q(n8(a,h,l)))}d.fb().forEach(function(p){c.push(a.g("ssrc",
p.toString(),"cname:"+e));c.push(a.g("ssrc",p.toString(),"msid:"+f+" "+g))})}});return c},n8=function(a,b,c){var d=c.map(function(f){return a.g("rid",f,b)}),e=!ef||!Qp(68);return 0<d.length?(c=a.g("simulcast",b,(e?"rid=":"")+c.join(";")),[].concat(q(d),[c])):[]};da.Object.defineProperties(k8.prototype,{D:{configurable:!0,enumerable:!0,set:function(a){this.C=a;this.m=null}},G:{configurable:!0,enumerable:!0,set:function(a){this.h=a;this.m=null}}});
function eia(a){return jf&&Qp(59)&&a.some(function(b){return b.uri.includes("http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions")})}function Wha(a){var b=new Map;a.forEach(function(c,d){c=c.g.get("msid");c.h&&(c=n(c.g.split(" ")),c.next(),c=c.next().value,b.set(c,d))});return b}function Xha(a,b){var c=new Map;a.forEach(function(d,e){if(!(d.g.get("msid").h||b&&b.media[e]&&!b.media[e].Ij)){d=j8[d.mediaType];var f=c.get(d)||[];c.set(d,[].concat(q(f),[e]))}});return c};function o8(a,b){var c=void 0===c?{}:c;a=new k8(a,c);a.D=void 0===b?null:b;return l8(a)}
function hia(a){var b=a.g,c=a.w,d=a.l,e=a.zb(),f=a.C,g=a.F,h=a.h,l=a.j;a=[a.s,b,c.toLowerCase(),a.o,d,e,"typ",Kc(gS)[h]];switch(h){case "LOCAL":"TCP"==c&&a.push("tcptyp","active");break;case "STUN":case "RELAY":case "PEER_REFLEX":f&&g&&a.push("raddr",f,"rport",g);break;default:Eb("Unexpected candidate type: "+h)}a.push("generation",l);return new RTCIceCandidate({sdpMLineIndex:0,candidate:"candidate:"+a.join(" ")})};var s8=function(a){pv.call(this);var b=this;this.j=iia(this,a);this.h=new l1("realtime.media.api.webrtc.PeerConnection");this.g=jia(this);this.m=bt();this.l=new Map;this.g.onicecandidate=this.s.bind(this);jf&&(this.g.onaddstream=function(c){(c=c.stream)&&b.M(new p8(c,c.id))},this.g.onremovestream=function(c){if(c=c.stream)b.M(new q8(c,c.id)),r8(c)});this.o=kia(this)};u(s8,pv);
s8.prototype.aa=function(){kf?this.g.getSenders().forEach(function(a){return a.track&&a.track.stop()}):this.g.getRemoteStreams().forEach(function(a){return r8(a)});this.close();pv.prototype.aa.call(this)};
var kia=function(a){var b,c;return Ca(function(d){if(jf)return d.return();a.g.addTransceiver("audio",{direction:"sendonly",streams:[new MediaStream]});b=a.g.addTransceiver("video",{direction:"sendonly",streams:[new MediaStream]});if(!a.j.af||kf||jf)return d.bb(0);c=[{rid:"f"},{rid:"h",scaleResolutionDownBy:2},{rid:"q",scaleResolutionDownBy:4}];return v(d,b.sender.setParameters({encodings:c}),0)})},jia=function(a){var b=a.j.Xm;ef&&0<b.length&&(b[0].urls=b[0].urls.slice(0,2));b={iceServers:b,bundlePolicy:"max-bundle"};
var c=RTCPeerConnection||webkitRTCPeerConnection;if(jf){var d={mandatory:{RtpDataChannels:!1,DtlsSrtpKeyAgreement:!0},optional:[{googHighStartBitrate:!0},{googHighBitrate:!0},{googPayloadPadding:!0},{googSkipEncodingUnusedStreams:!0},{googScreencastMinBitrate:100},{googVeryHighBitrate:!0}]};a.j.ll?(d.optional.push({googCpuOveruseDetection:!0}),d.optional.push({googCpuOveruseEncodeUsage:!0}),d.optional.push({googCpuUnderuseThreshold:55}),d.optional.push({googCpuOveruseThreshold:85})):d.optional.push({googCpuOveruseDetection:!1});
null==a.j.Ld&&null==a.j.Hd||d.optional.push({googDscp:!0});b.sdpSemantics=jf?"plan-b":"unified-plan";yW(a.h,"Creating new PeerConnection with config="+xs(b)+" constraints="+xs(d))}else yW(a.h,"Creating new PeerConnection with config="+xs(b));return new c(b,d)},iia=function(a,b){return"high"!=b.Ld&&"high"==b.Hd?(a.h.error("Misconfigured DSCP priorities: Video priority > Audio."),ET(DT(b,null),null)):b},u8=function(a,b,c){c||(c={});null==c.id&&(t8+=2,c.id=t8);return a.g.createDataChannel(b,c)};
s8.prototype.close=function(){"closed"!=this.g.signalingState&&this.g.close();lv(this.g);this.g.onicecandidate=null;this.g.oniceconnectionstatechange=null;this.g.onaddstream=null;this.g.onremovestream=null;this.g.ondatachannel=null};
var lia=function(a,b){var c,d;return Ca(function(e){if(jf)return a.g.addStream(b),e.bb(0);c=b.getTracks()[0];d=a.g.getTransceivers().find(function(f){return("sendonly"==f.direction||"sendrecv"==f.direction)&&f.receiver.track.kind==c.kind});return v(e,d.sender.replaceTrack(c),0)})},mia=function(a,b){if(jf)a.g.removeStream(b);else{var c=b.getTracks()[0];a.g.getTransceivers().find(function(d){return d.sender.track==c}).sender.replaceTrack(null)}},v8=function(a){return a.g.getReceivers?a.g.getReceivers():
[]},nia=function(a){return a.g.getSenders?a.g.getSenders():[]};s8.prototype.s=function(a){if(a=a.candidate)a.candidate?(a=GS(a.candidate),this.M(new w8(a))):this.h.J("RTCIceCandidate.candidate had no value.")};
var oia=function(a,b){var c,d,e;return Ca(function(f){switch(f.g){case 1:return v(f,a.o,2);case 2:return ra(f,3),v(f,a.g.createOffer(b),5);case 5:return c=f.h,d=FS(c.sdp),a.m.resolve(jf&&Qp(74)?d.session.sessionId:a.g.id),f.return(d);case 3:throw e=ta(f),a.h.error("createOffer Failed: "+e),e;}})};s8.prototype.getStats=function(){var a=this;return Ca(function(b){return 1==b.g?v(b,a.g.getStats(),2):b.return(b.h)})};
var pia=function(a){return Ca(function(b){return b.return(new Promise(function(c){return a.g.getStats(c)}))})},x8=function(a,b){b=hia(b);b=Us(a.g.addIceCandidate(b));ft(b,function(c){a.h.J("addIceCandidate Failed: "+c)});return b},y8=function(a,b){var c=new RTCSessionDescription({type:"offer",sdp:ES(b)});b=Us(a.g.setLocalDescription(c));ft(b,function(d){a.h.J("setLocalDescription Failed: "+d);a.h.J("The current signalingState is : "+a.g.signalingState);a.h.J("The offending SDP was: \n"+c.sdp)});return b.then(Ka)},
ria=function(a,b){var c=new RTCSessionDescription({type:"answer",sdp:ES(b)}),d=Us(a.g.setRemoteDescription(c));ft(d,function(e){a.h.J("setRemoteDescription Failed: "+e);a.h.J("The current signalingState is : "+a.g.signalingState);a.h.J("The offending SDP was: \n"+c.sdp);throw e;});d.then(function(){return qia(a,b)});return d.then(Ka)},qia=function(a,b){var c=new Map;b.media.forEach(function(e){var f=e.g.get("mid").g;f&&(e=e.g.get("msid"),e.h&&(e=n(e.g.split(" ")).next().value,c.set(f,e)))});var d=
new Map(a.l);a.g.getTransceivers().forEach(function(e){var f=e.mid;e=e.receiver.track;e.enabled&&f&&(f=c.get(f))&&(a.l.has(f)?d.delete(f):(e=new MediaStream([e]),a.l.set(f,e),a.M(new p8(e,f))))});d.forEach(function(e,f){a.l.delete(f);a.M(new q8(e,f))})},w8=function(a){U.call(this,"jb");this.candidate=a};u(w8,U);var p8=function(a,b){U.call(this,"kb");this.stream=a;this.g=b};u(p8,U);var q8=function(a,b){U.call(this,"lb");this.stream=a;this.g=b};u(q8,U);
var r8=function(a){return[].concat(q(a.getAudioTracks()),q(a.getVideoTracks())).forEach(function(b){return b.stop()})},t8=0;function z8(a){return a.af&&a.Yl};var A8=function(){this.h=new Set;var a=Math.max(void 0===a?2:a,2);var b=Math.min(void 0===b?4294967295:b,4294967295);a>b&&(a=2,b=4294967295);this.g=a;this.j=b},B8=function(a){for(var b=a.j-a.g+1,c=Math.floor(a.g+b*Math.random()),d=0;a.h.has(c);)if(c<a.j?++c:c=a.g,++d>=b)return null;a.h.add(c);return c};var C8=function(a,b,c){this.ga=a;this.g=b;this.C=c;this.u=new rU("realtime.media.api.webrtc.PeerNegotiator");this.j=this.se=null;this.F=0;this.s=this.Fd=this.mf=null;this.l=[];this.m=[];this.w=this.o=!1;this.h=[];this.D=!0},sia=m(["Negotiation (id=","): Starting."]),tia=m(["Negotiation (id=","): Successfully completed."]),via=function(a){var b,c,d,e,f;return Ca(function(g){switch(g.g){case 1:b=a.F++;c=a.D;a.D=!1;d=a.s;a.u.g(sia,b);e=!0;if(!c){g.bb(2);break}e=a.Fd;if(jf){g.bb(2);break}f=pQ(kQ(oQ(d,
XP(TP(d.ua,[]),[])),XP(TP(d.na,[]),[])),XP(TP(d.Va,[]),[]));return v(g,D8(a,b,f),4);case 4:e=!0;case 2:if(!e){g.bb(5);break}return v(g,uia(a,b,d),5);case 5:return v(g,D8(a,b,d),7);case 7:a.u.g(tia,b),g.g=0}})},uia=function(a,b,c){var d,e,f,g,h;return Ca(function(l){switch(l.g){case 1:d=a.ga;ra(l,2);e=null;f=a.w;a.w=!1;g=!jf||f;if(!g){l.bb(4);break}return v(l,wia(a,c,f),5);case 5:e=l.h;case 4:if(f){var p=HS(e);a.Fd=qQ(a.localDescription,p.g)}a.Fd&&(a.mf=a.Fd,a.Fd=null);e=jf?o8(a.mf,a.se):E8(a,e);F8(a);
return v(l,y8(d,e),6);case 6:a.se=e;sa(l,0);break;case 2:throw h=ta(l),G8(a,"Failed to create or set local offer.",b,h),h;}})},E8=function(a,b){!jf&&(kf||jf)&&a.g.af&&(b=xia(b));return b},xia=function(a){var b=new A8;a.media.forEach(function(c,d){if("video"==c.mediaType&&c.xg&&!c.g.get("ssrc-group").get("SIM").h){var e=c.g.get("ssrc-group").get("FID").g.split(" "),f=Array.from(c.m),g=[e[0],B8(b),B8(b)],h=[e[1],B8(b),B8(b)];f.push(kS("a=ssrc-group:SIM "+g.join(" ")));var l=c.g.get("ssrc").get(e[0]).w;
g.forEach(function(p,r){var t=h[r];0<r&&(f.push(kS("a=ssrc-group:FID "+p+" "+t)),l.forEach(function(A){f.push(kS("a=ssrc:"+p+" "+A))}),l.forEach(function(A){f.push(kS("a=ssrc:"+t+" "+A))}))});a.media[d]=new AS(f)}});return a},D8=function(a,b,c){var d,e,f,g,h;return Ca(function(l){if(1==l.g){ra(l,2);c=yia(a,c);d=a.j;f=(e=a.g.hp)?["conference"]:[];var p={Lw:f,lp:!jf||!1};p=void 0===p?{}:p;p=new k8(c,p);p.G=a.se;p.D=void 0===d?null:d;g=l8(p);return v(l,zia(a,g),4)}if(2!=l.g)return sa(l,0);h=ta(l);G8(a,
"Failed to create or set remote answer.",b,h);throw h;})},Aia=m(["Creating initial offer."]),Bia=m(["Initial offer successfully created."]),Dia=function(a,b){var c,d;return Ca(function(e){if(1==e.g)return a.u.g(Aia),v(e,H8(a,0,0,!1),2);if(3!=e.g){c=e.h;c=E8(a,c);a.u.g(Bia);d=Cia(a,c,b);if(jf)return a.Fd=d,e.bb(3);a.C.then(function(f){f.h(6161)});a.se=c;a.mf=d;F8(a);return v(e,y8(a.ga,c),3)}return e.return(d)})},Eia=m(["Queueing setting of the initial local description."]),Fia=m(["Generating initial local offer SDP."]),
Gia=m(["Setting initial local offer."]),Hia=m(["Initial local offer set successfully."]),Iia=function(a){if(!jf)return Promise.resolve();a.u.g(Eia);return I8(a,function(){var b,c,d,e;return Ca(function(f){switch(f.g){case 1:b=a.ga;c=a.localDescription;a.Fd=null;a.mf=c;a.u.g(Fia);if(jf){d=o8(c);f.bb(2);break}return v(f,H8(a,0,0,!1),3);case 3:d=f.h;case 2:return e=d,e=E8(a,e),a.se=e,a.u.g(Gia),F8(a),v(f,y8(b,e),4);case 4:a.u.g(Hia),f.g=0}})})},Jia=function(a,b){a.s=b;return J8(a)},Kia=function(a,b,
c){var d=a.localDescription;0<b.length&&(b=TP(d.ua,b),d=oQ(d,b));0<c.length&&(c=TP(d.na,c),d=kQ(d,c));a.Fd=d;return J8(a)},Lia=m(["Queueing negotiation."]),Mia=m(["Skipping negotiation since remote description has been set yet."]),J8=function(a){if(a.s)return a.u.g(Lia),I8(a,function(){return via(a)});a.u.g(Mia);return Promise.resolve()},Nia=function(a,b){var c=a.ga;c.g.remoteDescription&&c.g.remoteDescription.sdp?(F8(a),b.forEach(function(d){return x8(c,d)})):a.h.push.apply(a.h,q(b))},Oia=m(["Cancelling ",
" pending negotiation(s)."]);C8.prototype.cancel=function(){this.u.g(Oia,this.l.length);this.m.forEach(function(a){return a.reject(new Ps("Negotiations cancelled due to cancel() call."))});this.l.length=0;this.m.length=0};
var I8=function(a,b){var c;return Ca(function(d){c=bt();a.l.push(b);a.m.push(c);K8(a);return v(d,c.da,0)})},K8=function(a){var b,c,d;Ca(function(e){switch(e.g){case 1:if(0===a.l.length||a.o)return e.return();b=a.l.shift();c=a.m.shift();a.o=!0;ra(e,2,3);return v(e,b(),5);case 5:c.resolve();case 3:e.D=[e.j];e.w=0;e.l=0;a.o=!1;K8(a);ua(e);break;case 2:d=ta(e),c.reject(d),e.bb(3)}})},Pia=m(["Adding "," pending ICE candidates after setRemoteDescription."]),zia=function(a,b){return Ca(function(c){if(1==
c.g)return F8(a),v(c,ria(a.ga,b),2);a.j=b;0<a.h.length&&(a.u.g(Pia,a.h.length),F8(a),a.h.forEach(function(d){return x8(a.ga,d)}),a.h.length=0);c.g=0})},wia=function(a,b,c){var d,e,f;return Ca(function(g){return 1==g.g?(e=d=1,jf||(d=ZP(b.ua).length,e=ZP(b.na).length,f=new Set([].concat(q(ZP(b.ua)),q(ZP(b.na))).map(function(h){return h.be})),a.j.media.forEach(function(h){if("inactive"!==h.j){var l=h.g.get("msid");if(l.h){l=n(l.g.split(" "));var p=l.next().value;l.next();f.has(p)||("audio"===h.mediaType?
d++:"video"===h.mediaType&&e++)}}})),v(g,H8(a,d,e,c),2)):g.return(g.h)})},Qia=m(["Creating a local offer (isIceRestart=",")."]),H8=function(a,b,c,d){var e,f,g,h,l,p,r,t,A,z,G;return Ca(function(N){if(1==N.g){a.u.g(Qia,d);F8(a);e={};if(jf)e.offerToReceiveAudio=!0,e.offerToReceiveVideo=!0;else{f=a.ga.g;g=f.getTransceivers();h=b;l=c;p=n(g);for(r=p.next();!r.done;r=p.next())t=r.value,t.stopped||"sendrecv"!==t.direction&&"recvonly"!==t.direction||(A=t.receiver.track,"audio"===A.kind?h--:"video"===A.kind&&
l--);for(z=0;z<h;z++)f.addTransceiver("audio",{direction:"recvonly"});for(G=0;G<l;G++)f.addTransceiver("video",{direction:"recvonly"})}d&&(e.iceRestart=!0);return v(N,oia(a.ga,e),2)}return N.return(N.h)})},Ria=m(["Creating the initial local description from the offer SDP."]),Sia=m(["RTX is enabled, but offer does not contain RTX codec."]),Cia=function(a,b,c){a.u.g(Ria);b=HS(b);var d=a.g.qc();d&&(b=kQ(b,b.na.vi(d)));c=c(b);b=pQ(kQ(oQ(b,VP(TP(b.ua,PP(c.ua)),!0)),VP(TP(b.na,PP(c.na)),!0)),VP(TP(b.Va,
PP(c.Va)),!0));c=LP(b.na);c=Tia(c);var e=c.findIndex(function(f){return hd(f.getName(),"rtx")});a.g.Nf&&-1==e&&a.u.J(Sia);c=Uia(a,c);a.g.dh&&jf&&(c=c.map(function(f){return pP(new mP(f),"useadaptivelayering_v2","true").ha()}));z8(a.g)&&(c=c.map(function(f){return pP(new mP(f),"useadaptivelayering","true").ha()}));d&&0<c.length&&jf&&(e=c[0],d=d.h,-1!=d&&(e=pP(new mP(e),"x-google-min-bitrate",d.toString()).ha()),c[0]=e);b=kQ(b,QP(b.na,c));b=Via(b);a.g.kl||(b=kQ(b,null));a.g.jl||(b=pQ(b,null));return b},
Wia=m(["Altering remote description (",")."]),yia=function(a,b){a.u.g(Wia,"answer");var c=a.mf;b=b.Va.g?pQ(b,TP(b.Va,[])):Xia(b);if(b.g.g){var d=b.g.m;d||(d="passive");b=qQ(b,iQ(b.g,d))}d=b.na&&LP(b.na)||[];d=0<d.length&&lP(d[0],"vp9");c=PP(c.na).some(function(e){return!e.Wd()});d&&c&&!Yia(a)&&(b=kQ(b,eQ(b.na,"vp8")));return b},Via=function(a){if(!(jf&&Qp(59)||kf&&AR(xR("AepsRe")))){var b=a.ua,c=a.na;b=SP(b,MP(b).filter(function(d){return"http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01"!==
d.uri}));c=SP(c,MP(c).filter(function(d){return"http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01"!==d.uri}));a=oQ(a,b);a=kQ(a,c)}ef&&(b=a.na,b=SP(b,MP(b).filter(function(d){return"urn:ietf:params:rtp-hdrext:toffset"!==d.uri})),a=kQ(a,b));AR(xR("fpSHtb"))&&(b=a.na,b=SP(b,MP(b).filter(function(d){return"urn:3gpp:video-orientation"!==d.uri})),a=kQ(a,b));return a},L8=function(a){var b=function(c,d){return c.some(function(e){return e.Dd==d})};return a.filter(function(c,d,e){return!hd(c.getName(),
"rtx")||b(e,"apt"in c.Cd?c.Cd.apt:null)})},Tia=function(a){var b=function(c){return zc(c.Cd,function(d,e){return hd(e,"packetization-mode")&&"1"===d})};a=a.filter(function(c,d,e){var f=!0;e.forEach(function(g,h){h!=d&&g.getName()==c.getName()&&hd(c.getName(),"H264")&&(f=f&&b(c))});return f});return L8(a)},Uia=function(a,b){b=b.filter(function(c){return hd(c.getName(),"vp8")||hd(c.getName(),"h264-svc")||a.g.Nf&&hd(c.getName(),"rtx")||a.g.rf()&&hd(c.getName(),"vp9")||a.g.hj()&&hd(c.getName(),"h264")});
return L8(b)},Xia=function(a){var b=WO(ZO(RO(QO(OO(new NO,"d"),"dataSendChannel"),"dataSendChannel"),[0]),"dataSendChannel").ha(),c=PP(a.Va);c.push(b);return pQ(a,TP(a.Va,c))},Zia=m(["Rengotiation (id=",") FAILED: ",". Error=",""]),$ia=m(["Last local SDP was: ",""]),aja=m(["Last remote SDP was: ",""]),bja=m(["PeerConnection's current local SDP is: ",""]),cja=m(["PeerConnection's current remote SDP is: ",""]),G8=function(a,b,c,d){a.u.J(Zia,c,b,d);a.se&&a.u.J($ia,ES(a.se));a.j&&a.u.J(aja,ES(a.j));b=
a.ga.g;b.localDescription&&a.u.J(bja,b.localDescription.sdp);b.remoteDescription&&a.u.J(cja,b.remoteDescription.sdp)},F8=function(a){if("closed"==a.ga.g.signalingState)throw new M8("Negotiation cancelled due to the state of the peer.");},Yia=function(a){return a.g.Lk||a.g.qf?!0:(a.C.then(function(b){b.g(5770)}),!1)};da.Object.defineProperties(C8.prototype,{localDescription:{configurable:!0,enumerable:!0,get:function(){return this.Fd||this.mf}}});
var M8=function(a){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.name="NegotiationCancelledError"};u(M8,Error);var dja=new Set(["video/vp8"]);var eja=function(a,b){this.u=new rU("realtime.media.api.webrtc.SenderConfigurer");this.l=b;this.j=z8(b);this.h=b.dh&&AR(xR("lSsX3e"));this.w=this.j||this.h;this.o=b.Nf?2:1;this.g=new Map;this.m=a},fja=m(["Configuring video sender params, original: ",""]),gja=m(["Applying video sender params update: ",""]),ija=function(a,b,c,d){var e=d.wg;d=d.mimeType;var f=b.getParameters(),g=!1,h=function(){g||a.u.g(fja,"encodings="+JSON.stringify(f&&f.encodings,null,2));g=!0};if(f.encodings&&f.encodings.length){if(jf){var l=
a.l.Hd;Qp(72)&&null!=l&&f.encodings[0].networkPriority!=l&&(h(),f.encodings[0].networkPriority=l)}var p=hja(a,f.encodings,b.track,c,e,d);a.m.g=p.Mh();f.encodings.forEach(function(r,t){t=p.ri(r,t);r.active!==t&&(h(),r.active=t)});g&&(a.u.g(gja,"encodings="+JSON.stringify(f&&f.encodings,null,2)),b.setParameters(f))}},hja=function(a,b,c,d,e,f){return!e&&null!=f&&dja.has(f)&&3===b.length&&a.g.has(d)?a.g.get(d):e&&jf&&10>=c.getSettings().frameRate?jja:kja},N8=function(a,b,c){var d=b.getParameters();a=
a.l.Ld;if(d.encodings&&0<d.encodings.length){var e=d.encodings[0],f=!1;lja&&null!=a&&e.networkPriority!=a&&(e.networkPriority=a,f=!0);e.active!==c&&(e.active=c,f=!0);f&&b.setParameters(d)}},mja=function(a,b){return a.w?b.getStats().then(function(c){c=n(c.values());for(var d=c.next();!d.done;d=c.next())if(d=d.value,"codec"===d.type)return d.mimeType.toLowerCase();return null}):Promise.resolve(null)},lja=jf&&Qp(72);function O8(a){return a.width+"x"+a.height}
var kja={ri:function(){return!0},Mh:function(){return 2}},jja={ri:function(a,b){return 0===b},Mh:function(){return 3}},P8=function(a){var b=a.cj;this.h=a.rid;this.g=b};P8.prototype.ri=function(a,b){return a.rid?a.rid===this.h:b===this.g};P8.prototype.Mh=function(){return 1};var Q8=function(a){var b=a.Qj;this.h=new Set(a.ce);this.g=b};Q8.prototype.ri=function(a,b){return a.rid?this.h.has(String(a.rid)):b<=this.g};Q8.prototype.Mh=function(){return 2};
var nja=new Map([[O8(fS),new P8({rid:"f",cj:2})],[O8(eS),new P8({rid:"h",cj:1})],[O8(dS),new P8({rid:"q",cj:0})]]),oja=new Map([[O8(fS),new Q8({ce:["q","h","f"],Qj:2})],[O8(eS),new Q8({ce:["q","h"],Qj:1})],[O8(dS),new Q8({ce:["q"],Qj:0})]]);var R8=function(){this.h=this.l=null;this.F=this.j=this.H=this.C=this.G=0;this.K=1;this.g=this.s=this.o=this.w=this.m=this.D=this.L=0},S8=function(a,b){null==a.l&&(a.l=b);var c=Xa();null!=a.h&&a.C+b.getTime()<a.h.getTime()&&(a.C=a.h.getTime()+(c-a.G)-b.getTime());a.h=new Date(b.getTime()+a.C);a.G=c};
R8.prototype.toJson=function(){return{jmiVersion:3,numOfProcessors:this.K,totalCpuUsage:this.L,tabCpuUsage:this.g?this.D/this.g:null,browserCpuUsage:this.g?this.m/this.g:null,gpuCpuUsage:this.g?this.w/this.g:null,tabJsMemoryAllocated:this.g?this.o/this.g:null,tabJsMemoryUsed:this.g?this.s/this.g:null}};var pja=(new Date(0)).getTime()-(new Date("1900/01/01 00:00 GMT")).getTime(),qja=function(a,b,c){b&&(Ec(a,"googFrameWidthSent")&&(a.googFrameWidthSent=0),Ec(a,"googFrameHeightSent")&&(a.googFrameHeightSent=0));b=Number(a.ssrc);if(null!=b){var d=a.googCaptureStartNtpTimeMs;if(null!=d&&0<d){var e=Gha(c,b);null!=e&&(d=d-pja+1E3*e,a.oneWayDelayMs=Xa()-d)}null!=a.bytesReceived&&(d=$7(c,b),null!=d&&(null!=d.Oh&&(a.fpsGraphicsInput=d.Oh),null!=d.Ph&&(a.fpsGraphicsOutput=d.Ph)));d=0;e=a.googCpuLimitedResolution;
var f=a.googBandwidthLimitedResolution,g=a.googViewLimitedResolution;if(null!=e||null!=f||null!=g)"true"==e&&(d|=1),"true"==f&&(d|=2),"true"==g&&(d|=4),a.googAdaptationReason=d;if("number"!==typeof a.googInterframeDelayMax||isNaN(a.googInterframeDelayMax))c=a8(c,b),null!=c&&(a.googInterframeDelayMax=c)}};var U8=function(a,b,c){var d=T8;this.m=W(a,AK).then();this.h=b;this.l=c;this.j=d;this.g=new Set};U8.prototype.update=function(a,b){var c=this.j(b);b=this.l(b);var d="un";this.g.has(a)?c?(this.g.delete(a),d="r"):d="m":b&&(this.g.add(a),rja(this),d="m");return d};var rja=function(a){a.m.then(function(b){b.g(a.h)})};var V8=function(a){return"number"!==typeof a||isNaN(a)?-1:a},sja=function(a,b,c){c?("number"!==typeof a.aecDivergentFilterFraction||isNaN(a.aecDivergentFilterFraction)||O(b,117,a.aecDivergentFilterFraction),"number"!==typeof a.audioInputLevel||isNaN(a.audioInputLevel)||AF(b,Math.round(a.audioInputLevel)),"number"!==typeof a.googEchoCancellationEchoDelayMedian||isNaN(a.googEchoCancellationEchoDelayMedian)||O(b,46,Math.round(a.googEchoCancellationEchoDelayMedian)),"number"!==typeof a.googEchoCancellationEchoDelayStdDev||
isNaN(a.googEchoCancellationEchoDelayStdDev)||O(b,47,Math.round(a.googEchoCancellationEchoDelayStdDev)),"number"!==typeof a.googEchoCancellationReturnLoss||isNaN(a.googEchoCancellationReturnLoss)||O(b,48,Math.round(a.googEchoCancellationReturnLoss)),"number"!==typeof a.googEchoCancellationReturnLossEnhancement||isNaN(a.googEchoCancellationReturnLossEnhancement)||O(b,49,Math.round(a.googEchoCancellationReturnLossEnhancement)),"number"!==typeof a.googEchoCancellationQualityMin||isNaN(a.googEchoCancellationQualityMin)||
O(b,63,a.googEchoCancellationQualityMin),"number"!==typeof a.googResidualEchoLikelihood||isNaN(a.googResidualEchoLikelihood)||O(b,129,a.googResidualEchoLikelihood),"number"!==typeof a.googResidualEchoLikelihoodRecentMax||isNaN(a.googResidualEchoLikelihoodRecentMax)||O(b,133,a.googResidualEchoLikelihoodRecentMax)):("number"!==typeof a.audioOutputLevel||isNaN(a.audioOutputLevel)||AF(b,Math.round(a.audioOutputLevel)),"number"!==typeof a.googJitterBufferMs||isNaN(a.googJitterBufferMs)||EF(b,Math.round(a.googJitterBufferMs)),
"number"!==typeof a.googPreferredJitterBufferMs||isNaN(a.googPreferredJitterBufferMs)||O(b,38,Math.round(a.googPreferredJitterBufferMs)),"number"!==typeof a.googCurrentDelayMs||isNaN(a.googCurrentDelayMs)||O(b,39,Math.round(a.googCurrentDelayMs)),"number"!==typeof a.googExpandRate||isNaN(a.googExpandRate)||b.hi(a.googExpandRate),"number"!==typeof a.googSpeechExpandRate||isNaN(a.googSpeechExpandRate)||b.pi(a.googSpeechExpandRate),"number"!==typeof a.googPreemptiveExpandRate||isNaN(a.googPreemptiveExpandRate)||
b.mi(a.googPreemptiveExpandRate),"number"!==typeof a.googAccelerateRate||isNaN(a.googAccelerateRate)||b.fi(a.googAccelerateRate),"number"!==typeof a.googSecondaryDecodedRate||isNaN(a.googSecondaryDecodedRate)||b.ni(a.googSecondaryDecodedRate),"number"!==typeof a.googSecondaryDiscardedRate||isNaN(a.googSecondaryDiscardedRate)||b.oi(a.googSecondaryDiscardedRate),"number"!==typeof a.googDecodingCTSG||isNaN(a.googDecodingCTSG)||O(b,81,Math.round(a.googDecodingCTSG)),"number"!==typeof a.googDecodingCTN||
isNaN(a.googDecodingCTN)||O(b,82,Math.round(a.googDecodingCTN)),"number"!==typeof a.googDecodingNormal||isNaN(a.googDecodingNormal)||O(b,83,Math.round(a.googDecodingNormal)),"number"!==typeof a.googDecodingPLC||isNaN(a.googDecodingPLC)||O(b,84,Math.round(a.googDecodingPLC)),"number"!==typeof a.googDecodingCNG||isNaN(a.googDecodingCNG)||O(b,85,Math.round(a.googDecodingCNG)),"number"!==typeof a.googDecodingPLCCNG||isNaN(a.googDecodingPLCCNG)||O(b,86,Math.round(a.googDecodingPLCCNG)),"number"!==typeof a.googDecodingMuted||
isNaN(a.googDecodingMuted)||O(b,134,Math.round(a.googDecodingMuted)))};var tja={Sf:"bytesReceived",Tf:"bytesSent",JB:"id",IC:"localCandidateId",BF:"readable",XF:"remoteCandidateId",rH:"selected",oK:"writable"},uja={Nw:"googActiveConnection",Sf:"bytesReceived",Tf:"bytesSent",HC:"googLocalAddress",WF:"googRemoteAddress"},vja={Cx:"bitrateMean",Dx:"bitrateStdDev",DA:"framerateMean",EA:"framerateStdDev",xl:"framesDecoded",yl:"framesEncoded",GA:"framesReceived",HA:"framesSent",FA:"framesPerSecond",Sf:"bytesReceived",Tf:"bytesSent",CA:"fractionLost",vA:"firCount",dC:"isRemote",
fC:"jitter",nC:"kind",bD:"mediaType",SD:"nackCount",Dl:"packetsReceived",Bi:"packetsLost",El:"packetsSent",gF:"pliCount",xF:"qualityLimitationResolutionChanges",Ci:"qpSum",YF:"remoteId",JC:"localId",dH:"roundTripTime",Ll:"ssrc",jJ:"trackId",gz:"codecId",Az:"contentType",wF:"qualityLimitationReason"},wja={Sf:"bytesReceived",Tf:"bytesSent",xl:"framesDecoded",yl:"framesEncoded",Pp:"hugeFramesSent",Dl:"packetsReceived",Bi:"packetsLost",El:"packetsSent",Ci:"qpSum",Ll:"ssrc"};var W8=function(){this.j=new Map;this.h=new Map;this.g=new Map};W8.prototype.clear=function(){this.j.clear();this.h.clear();this.g.clear()};
var Z8=function(a,b,c,d,e){var f=(e=void 0===e?!0:e)?wja:vja,g=b[f.Ll];return null==g?null:d?X8(a.j,g,function(){return new Y8(d)}).update(c,b[f.Tf],b[f.El],e?b[f.Bi]:0,b[f.yl],b[f.Ci],b[f.Pp]):X8(a.h,g,function(){return new Y8(d)}).update(c,b[f.Sf],b[f.Dl],b[f.Bi],b[f.xl],b[f.Ci],null)},a9=function(a,b,c,d){d=void 0===d?!0:d;var e=b?d?"false"==b.googActiveConnection?null:b.googLocalAddress+b.googRemoteAddress:"false"==b.selected?null:b.id:null;if(!e)return null;d=d?uja:tja;return X8(a.g,e,function(){return new $8}).update(c,
b[d.Tf],b[d.Sf])},X8=function(a,b,c){var d=a.get(b);null==d&&(d=c(),a.set(b,d));return d},Y8=function(a){this.s=a;this.g=-1;this.j=this.l=this.h=this.w=this.o=this.m=0};
Y8.prototype.update=function(a,b,c,d,e,f,g){var h={bitrate:-1,Pj:-1,Ck:-1,Aj:-1};if("number"===typeof a&&"number"===typeof b&&"number"===typeof c&&"number"===typeof d){if(a>this.g){var l=c-this.o,p=Math.max(d-this.w,0);l=this.s?l:l+p;h.Pj=0<l?Math.round(100*p/l):-1;0<=this.g&&(p=a-this.g,l=b-this.m,h.bitrate=0<l?Math.round(8*l/p):0)}this.g=a;this.m=b;this.o=c;this.w=d}"number"===typeof e&&"number"===typeof f&&(a=e-this.h,h.Ck=0<a?Math.round((f-this.l)/a):-1,this.h=e,this.l=f);"number"===typeof g&&
(h.Aj=g-this.j,this.j=g);return h};var $8=function(){this.g=-1;this.h=this.j=0};$8.prototype.update=function(a,b,c){var d=null;if("number"===typeof a&&"number"===typeof b&&"number"===typeof c){if(0<=this.g&&a>this.g){d=a-this.g;var e=b-this.j,f=c-this.h;d={Co:0<e?Math.round(e/d):0,qo:0<f?Math.round(f/d):0}}this.g=a;this.j=b;this.h=c}return d};var zja=function(a,b){this.u=new rU("realtime.media.api.webrtc.JmiStatsParser");this.G=b;this.o=new W8;this.j=null;this.F=W(a,AK).then();this.h=-1;this.l=new Map;this.s=new Map;this.w=new Map;this.m=new Map;this.g=new Map;this.D=new U8(a,4549,xja);this.C=new U8(a,4550,yja);this.K=[this.D,this.C]},Aja=m(["Ignore report with stale timestamp "," from "," of ",""]),Eja=function(a,b,c,d,e,f){Bja(a,b,e);var g=new Map;b.forEach(function(h){if("localcandidate"===h.type){var l=h.stat("networkType");id(ue(h.id))||
id(ue(l))||g.set(h.id,Cja[l]||0)}});b.forEach(function(h){var l=h.timestamp&&h.timestamp.getTime()||0;if(l&&l==(a.w.get(h.id)||0))a.m.get(h.id)!=l&&(a.m.set(h.id,l),a.u.g(Aja,l,h.id,h.type));else switch(a.w.set(h.id,l),h.type){case "ssrc":Dja(a,b9(h),c,d,e,f);break;case "VideoBwe":h=b9(h);l=new KE;O(l,1,2);O(l,24,2);"number"!==typeof h.googAvailableSendBandwidth||isNaN(h.googAvailableSendBandwidth)||O(l,40,Math.round(h.googAvailableSendBandwidth));"number"!==typeof h.googAvailableReceiveBandwidth||
isNaN(h.googAvailableReceiveBandwidth)||O(l,41,Math.round(h.googAvailableReceiveBandwidth));"number"!==typeof h.googTransmitBitrate||isNaN(h.googTransmitBitrate)||FF(l,Math.round(h.googTransmitBitrate));"number"!==typeof h.googRetransmitBitrate||isNaN(h.googRetransmitBitrate)||O(l,43,Math.round(h.googRetransmitBitrate));"number"!==typeof h.googTargetEncBitrate||isNaN(h.googTargetEncBitrate)||O(l,124,Math.round(h.googTargetEncBitrate));"number"!==typeof h.googActualEncBitrate||isNaN(h.googActualEncBitrate)||
O(l,125,Math.round(h.googActualEncBitrate));"number"!==typeof h.googBucketDelay||isNaN(h.googBucketDelay)||O(l,80,Math.round(h.googBucketDelay));uF(l,-1);O(l,3,-1);O(l,4,-1);vF(l,-1);wF(l,-1);O(l,7,-1);O(l,8,-1);O(l,9,-1);O(l,10,-1);xl(e,2,l,KE);break;case "googCandidatePair":l=b9(h);h=new QE;OF(h,Math.round(V8(l.googRtt)));O(h,4,Math.round(V8(l.bytesSent)));"number"!==typeof l.packetsSent||isNaN(l.packetsSent)||O(h,90,Math.round(l.packetsSent));"number"!==typeof l.packetsDiscardedOnSend||isNaN(l.packetsDiscardedOnSend)||
O(h,91,Math.round(l.packetsDiscardedOnSend));O(h,6,Math.round(V8(l.bytesReceived)));var p=0;"true"===l.googActiveConnection&&(p|=1);"true"===l.googWritable&&(p|=2);"true"===l.googReadable&&(p|=4);NF(h,p);p=new LD;var r=new LD;O(p,1,l.googLocalAddress||"");O(r,1,l.googRemoteAddress||"");O(p,2,1);O(r,2,1);var t={local:1,stun:2,relay:3};O(p,3,t[l.googLocalCandidateType]||0);O(r,3,t[l.googRemoteCandidateType]||0);t={udp:1,tcp:2,ssltcp:3}[l.googTransportType]||0;O(p,4,t);O(r,4,t);S(h,8,p);S(h,9,r);MF(h,
p.Na());p=a9(a.o,l,a.h);O(h,5,p?p.Co:-1);O(h,7,p?p.qo:-1);l=l.localCandidateId;"string"===typeof l&&!id(ue(l))&&g.has(l)&&(l=g.get(l),O(h,55,l));xl(e,13,h,QE)}});a.g.clear()},Fja=m(["Elapsed time in jmidata decreased from "," to\n      ",""]),Bja=function(a,b,c){b=c9(b);a.j||(a.j=b);b=b?(b.getTime()-a.j.getTime())/1E3:-1;0>b||(b<=a.h&&a.u.J(Fja,a.h,b),O(c,1,Math.round(b)),a.h=b)},c9=function(a){var b=null;a.forEach(function(c){(c=d9(c.timestamp))&&0<c.getTime()&&(!b||b.getTime()<c.getTime())&&(b=
c)});return b},Gja=function(a){var b=new Map;a.forEach(function(c){var d=c.stat("ssrc");c=c.stat("audioOutputLevel");id(ue(d))||id(ue(c))||(d=parseInt(d,10),c=S7(c),b.set(d,c))});return b},Ija=function(a,b){b.forEach(function(c){if("ssrc"===c.type&&c.names().includes("googExpandRate")){for(var d=new Map,e=n(Hja),f=e.next();!f.done;f=e.next()){f=f.value;var g=c.stat(f);id(ue(g))||(g=Number(g),isNaN(g)||d.set(f,g))}c=parseInt(c.stat("ssrc"),10);a.g.has(c)||a.g.set(c,[]);a.g.get(c).push(d)}})},Jja=function(a,
b){var c={audio:!1,video:!1};b.forEach(function(d){if("ssrc"===d.type){var e=d.names();if(e.includes("packetsReceived")){var f=Number(d.stat("ssrc"));a.l.has(f)||a.l.set(f,0);d=Number(d.stat("packetsReceived"));0>=d-a.l.get(f)||(a.l.set(f,d),e.includes("audioOutputLevel")?c.audio=!0:e.includes("googFrameRateReceived")&&(c.video=!0))}}});return c},Kja=function(a){return a.reduce(function(b,c){var d=-1;"VideoBwe"===c.type&&(c=c.stat("googAvailableSendBandwidth"),id(ue(c))||(d=Math.round(Number(c))));
return Math.max(b,d)},-1)},Dja=function(a,b,c,d,e,f){qja(b,c,a.G);var g=!1;g="mediaType"in b?"audio"===b.mediaType:"audioInputLevel"in b||"audioOutputLevel"in b||"googExpandRate"in b;var h="bytesSent"in b;if(!(f&&g&&h)||d||Lja(a,b))if(!f||g||!h||!c||"screen"!==b.googContentType){var l=g?new KE:new oV;Mja(b,l,h,g);g?Nja(a,b,l,h):Oja(b,l,h);var p=zF(l);null!=p&&a.K.forEach(function(r){return r.update(p,l)});Pja(a,b,l,h);xl(e,2,l,KE)}},Mja=function(a,b,c,d){O(b,1,d?1:2);O(b,24,c?0:1);"number"===typeof a.ssrc&&
(O(b,25,a.ssrc),O(b,53,[a.ssrc]));uF(b,Math.round(V8(a.fractionLost)));O(b,3,Math.round(V8(a.packetsLost)));O(b,4,Math.round(V8(a.highestSequenceNumber)));vF(b,Math.round(V8(a.googJitterReceived)));wF(b,Math.round(V8(a.googRtt)));O(b,7,Math.round(V8(a.bytesSent)));O(b,8,Math.round(V8(a.packetsSent)));O(b,9,Math.round(V8(a.bytesReceived)));O(b,10,Math.round(V8(a.packetsReceived)));c?null!=a.googCodecName&&O(b,44,a.googCodecName):(null!=a.googCodecName&&O(b,94,a.googCodecName),"number"!==typeof a.oneWayDelayMs||
isNaN(a.oneWayDelayMs)||O(b,89,Math.round(a.oneWayDelayMs)),"number"!==typeof a.oneWayMaxDelayMs||isNaN(a.oneWayMaxDelayMs)||O(b,112,Math.round(a.oneWayMaxDelayMs)),"number"!==typeof a.oneWayStddevDelayMs||isNaN(a.oneWayStddevDelayMs)||O(b,118,Math.round(a.oneWayStddevDelayMs)),"number"!==typeof a.oneWayMinDelayMs||isNaN(a.oneWayMinDelayMs)||O(b,119,Math.round(a.oneWayMinDelayMs)))},e9=function(a,b,c){var d=0,e=0;b.forEach(function(f){f.has(a)&&(e+=f.get(a),d+=1)});0<d&&c(e/d)},Nja=function(a,b,c,
d){sja(b,c,d);!d&&a.g.has(b.ssrc)&&(a=a.g.get(b.ssrc),e9("googExpandRate",a,function(e){return c.hi(e)}),e9("googSpeechExpandRate",a,function(e){return c.pi(e)}),e9("googPreemptiveExpandRate",a,function(e){return c.mi(e)}),e9("googAccelerateRate",a,function(e){return c.fi(e)}),e9("googSecondaryDecodedRate",a,function(e){return c.ni(e)}),e9("googSecondaryDiscardedRate",a,function(e){return c.oi(e)}))},Pja=function(a,b,c,d){b=Z8(a.o,b,a.h,d);d?(FF(c,b.bitrate),0<b.Aj&&ml(c,59)&&Qja(a,{Fc:b.Aj})):GF(c,
b.bitrate);uF(c,b.Pj);O(c,113,b.Ck)},Oja=function(a,b,c){c?("number"!==typeof a.googFirsReceived||isNaN(a.googFirsReceived)||O(b,27,Math.round(a.googFirsReceived)),"number"!==typeof a.googPlisReceived||isNaN(a.googPlisReceived)||O(b,151,Math.round(a.googPlisReceived)),"number"!==typeof a.googNacksReceived||isNaN(a.googNacksReceived)||O(b,28,Math.round(a.googNacksReceived)),"number"!==typeof a.googFrameRateInput||isNaN(a.googFrameRateInput)||BF(b,Math.round(a.googFrameRateInput)),"number"!==typeof a.googFrameRateSent||
isNaN(a.googFrameRateSent)||CF(b,Math.round(a.googFrameRateSent)),null!=a.codecImplementationName&&O(b,143,a.codecImplementationName),"number"!==typeof a.googFrameWidthSent||isNaN(a.googFrameWidthSent)||HF(b,Math.round(a.googFrameWidthSent)),"number"!==typeof a.googFrameHeightSent||isNaN(a.googFrameHeightSent)||IF(b,Math.round(a.googFrameHeightSent)),"number"!==typeof a.googFrameWidthInput||isNaN(a.googFrameWidthInput)||O(b,144,Math.round(a.googFrameWidthInput)),"number"!==typeof a.googFrameHeightInput||
isNaN(a.googFrameHeightInput)||O(b,145,Math.round(a.googFrameHeightInput)),"number"!==typeof a.googQpSent||isNaN(a.googQpSent)||O(b,113,Math.round(a.googQpSent)),"number"!==typeof a.qpSum||isNaN(a.qpSum)||O(b,139,Math.round(a.qpSum)),"number"!==typeof a.googAdaptationChanges||isNaN(a.googAdaptationChanges)||O(b,95,Math.round(a.googAdaptationChanges)),"number"!==typeof a.qualityLimitationResolutionChanges||isNaN(a.qualityLimitationResolutionChanges)||O(b,194,Math.round(a.qualityLimitationResolutionChanges)),
"number"!==typeof a.googAvgEncodeMs||isNaN(a.googAvgEncodeMs)||O(b,75,Math.round(a.googAvgEncodeMs)),"number"!==typeof a.googEncodeUsagePercent||isNaN(a.googEncodeUsagePercent)||O(b,76,Math.round(a.googEncodeUsagePercent))):("number"!==typeof a.googFirsSent||isNaN(a.googFirsSent)||O(b,27,Math.round(a.googFirsSent)),"number"!==typeof a.googPlisSent||isNaN(a.googPlisSent)||O(b,151,Math.round(a.googPlisSent)),"number"!==typeof a.googNacksSent||isNaN(a.googNacksSent)||O(b,28,Math.round(a.googNacksSent)),
"number"!==typeof a.googFrameRateOutput||isNaN(a.googFrameRateOutput)||BF(b,Math.round(a.googFrameRateOutput)),"number"!==typeof a.googFrameRateReceived||isNaN(a.googFrameRateReceived)||CF(b,Math.round(a.googFrameRateReceived)),"number"!==typeof a.googFrameRateDecoded||isNaN(a.googFrameRateDecoded)||DF(b,Math.round(a.googFrameRateDecoded)),"number"!==typeof a.fpsGraphicsInput||isNaN(a.fpsGraphicsInput)||O(b,50,a.fpsGraphicsInput),"number"!==typeof a.fpsGraphicsOutput||isNaN(a.fpsGraphicsOutput)||
O(b,51,a.fpsGraphicsOutput),null!=a.codecImplementationName&&O(b,143,a.codecImplementationName),"number"!==typeof a.googFrameWidthReceived||isNaN(a.googFrameWidthReceived)||HF(b,Math.round(a.googFrameWidthReceived)),"number"!==typeof a.googFrameHeightReceived||isNaN(a.googFrameHeightReceived)||IF(b,Math.round(a.googFrameHeightReceived)),"number"!==typeof a.googQpReceived||isNaN(a.googQpReceived)||O(b,113,Math.round(a.googQpReceived)),"number"!==typeof a.qpSum||isNaN(a.qpSum)||O(b,139,Math.round(a.qpSum)),
"number"!==typeof a.googInterframeDelayMax||isNaN(a.googInterframeDelayMax)||O(b,138,Math.round(a.googInterframeDelayMax)));if(c){var d=a.googContentType;d&&JF(b,"screen"===d);d=L(b,65)||0;f9(a.googCpuLimitedResolution)&&(d|=1);f9(a.googBandwidthLimitedResolution)&&(d|=2);O(b,65,d)}else if(a=a.googTimingFrameInfo)try{a="["+a+"]",d=new lV(a?JSON.parse(a):null),b.o=d}catch(e){}},Lja=function(a,b){var c=Number(b.bytesSent);b=Number(b.ssrc);var d=a.s.get(b)||0;a.s.set(b,c);return c>d},b9=function(a){var b=
{};a.names().forEach(function(c){var d=a.stat(c);null!=d&&(isNaN(d)||"string"===typeof d&&id(d)||(d=Number(d)));b[c]=d});return b},Qja=function(a,b){a.F.then(function(c){c.g(4804,b)})};function xja(a){return 0===xF(a)&&!T8(a)&&0<(L(a,29)||0)}function yja(a){return 0===xF(a)&&!T8(a)&&0<(L(a,30)||0)}function T8(a){return!(ml(a,59)&&(L(a,58)||L(a,57)))}function f9(a){return"true"!==a&&"false"!==a?null:"true"===a}
var Cja={lan:1,vpn:11,wlan:2,wwan:5},Hja="googExpandRate googSpeechExpandRate googPreemptiveExpandRate googAccelerateRate googSecondaryDecodedRate googSecondaryDiscardedRate".split(" "),d9=function(a){return"number"===typeof a?new Date(a):a};var Rja=function(a){this.u=new rU("realtime.media.api.webrtc.RtcStatsParser");this.o=a;this.s=new W8;this.g=this.h=null;this.l=new Map;this.j=new Map;this.w=new Map;this.m=new Map},Sja=m(["No valid timestamp for the stats: ",""]),Tja=m(["Ignore report with timestamp prior to initial stats:\n      ",""]),Uja=m(["Ignore report with stale timestamp "," from "," of ",""]),Yja=function(a,b,c){var d=g9(b);if(d)if(h9(a,d),d=i9(a),0>d)a.u.J(Tja,j9(b));else{O(c,1,Math.round(d));d=n(b);for(var e=d.next();!e.done;e=
d.next()){e=n(e.value);var f=e.next().value;e=e.next().value;f=e.id||f;var g=e.timestamp;g="number"===typeof g?g:g?g.getTime():0;if(g&&g==(a.w.get(f)||0))a.m.get(f)!=g&&(a.m.set(f,g),a.u.g(Uja,g,f,e.type));else switch(a.w.set(f,g),k9[e.type]||e.type){case "candidate-pair":Vja(a,e,c,b);break;case "inbound-rtp":case "outbound-rtp":g=a;var h=c,l=b;if(!l9(e)){f=m9(e);if("video"===f){var p=new oV;O(p,1,2)}else p=new KE,O(p,1,"audio"===f?1:0);p=h=xl(h,2,p,KE);O(p,9,-1);O(p,7,-1);O(p,3,-1);uF(p,-1);vF(p,
-1);O(p,4,-1);O(p,10,-1);O(p,8,-1);wF(p,-1);(p="outbound-rtp"===(k9[e.type]||e.type))?Wja(g,e,h,l,f):Xja(g,e,h,l,f);l=h;e=Z8(g.s,e,i9(g),p,!1);if(p)null!=L(l,42)||FF(l,e.bitrate);else if(n9(L(l,2))||uF(l,e.Pj),n9(L(l,96))||GF(l,e.bitrate),!n9(L(l,138))&&"video"===f&&(f=zF(l)||nF(l)[0]||0,(p=a8(g.o,f))&&O(l,138,p),f=$7(g.o,f)))null!=f.Oh&&O(l,50,Math.round(f.Oh)),null!=f.Ph&&O(l,51,Math.round(f.Ph));O(l,113,e.Ck)}}}}else a.u.J(Sja,j9(b))},Zja=function(a,b,c){for(var d=new Map,e=n(b.values()),f=e.next();!f.done;f=
e.next()){var g=f.value;f=g;if("inbound-rtp"===(k9[g.type]||g.type)&&"audio"===f.kind&&b.get(g.trackId)){f=g;var h=b.get(f.trackId);g=Number(g.ssrc);var l=new KE;o9(a,f,h,l,"audio");d.set(g,l)}}a=n(gF(c));for(b=a.next();!b.done;b=a.next())b=b.value,null!=L(b,1)&&null!=L(b,24)&&null!=L(b,25)&&1===tF(b)&&1===xF(b)&&d.has(zF(b))&&(c=d.get(zF(b)),e=L(c,167)||0,O(b,167,e),e=ll(c,170)||0,O(b,170,e),e=L(c,171)||0,O(b,171,e),e=L(c,168)||0,O(b,168,e),e=L(c,165)||0,O(b,165,e),c=L(c,166)||0,O(b,166,c))},h9=
function(a,b){null===a.h&&(a.h=b);if(null===a.g||b.getTime()>a.g.getTime())a.g=b},p9=function(a,b,c,d){d=void 0===d?!1:d;var e=b&&b[c];if("number"!==typeof e)return{value:-1,sf:!1};b=b.id+"_"+c;c=!a.l.has(b);var f=a.l.get(b)||{Rn:0,Qn:0},g=f.Rn;f=f.Qn;var h=i9(a);(h>f||c)&&a.l.set(b,{Rn:e,Qn:h});return h>f&&!c?{value:d?Math.round((e-g)/(h-f)):e-g,sf:!0}:{value:-1,sf:!1}},i9=function(a){return a.g&&a.h?(a.g.getTime()-a.h.getTime())/1E3:-1},Vja=function(a,b,c,d){if(q9(b,d)){c=xl(c,13,void 0,QE);var e=
new LD,f=new LD;O(e,3,0);O(e,4,0);O(e,2,1);O(f,3,0);O(f,4,0);O(f,2,1);S(c,8,e);S(c,9,f);O(c,7,-1);O(c,5,-1);MF(c,e.Na());NF(c,0);OF(c,-1);O(c,6,-1);O(c,4,-1);var g=b.remoteCandidateId||"",h=d.get(b.localCandidateId||"");h&&r9(h,e);(g=d.get(g))&&r9(g,f);S(c,8,e);S(c,9,f);NF(c,$ja(b,d));MF(c,e.Na());O(c,6,s9(b.bytesReceived));O(c,4,s9(b.bytesSent));OF(c,s9(b.currentRoundTripTime,{Qc:function(l){return Math.round(1E3*l)}}));O(c,90,s9(b.packetsSent));O(c,91,s9(b.packetsDiscardedOnSend));if(a=a9(a.s,b,
i9(a),!1))O(c,5,a.Co),O(c,7,a.qo)}},r9=function(a,b){var c=a.ip||a.ipAddress||"",d=a.port||a.portNumber||0;!id(c)&&0<d&&(c=c.includes(":")?"["+c+"]:"+d:c+":"+d,O(b,1,c));O(b,3,aka[a.candidateType||""]||0);O(b,4,bka[a.protocol||a.transport||""]||0)},t9=function(a,b,c,d){var e=a.ssrc;"string"!==typeof e||id(e)||(e=Number(e));"number"===typeof e&&(O(b,25,e),O(b,53,[e]));(a=a.codecId)&&d.has(a)&&(d=d.get(a).mimeType,d=(a=cka[d.toLowerCase()])?a:d,c?O(b,44,d):O(b,94,d))},o9=function(a,b,c,d,e){"video"===
e?(HF(d,s9(c&&c.frameWidth,{default:-2})),IF(d,s9(c&&c.frameHeight,{default:-2})),CF(d,p9(a,c,"framesReceived",!0).value)):(AF(d,s9(c&&c.audioLevel,{Qc:function(f){return Math.round(32767*f)}})),O(d,167,s9(c&&c.concealedSamples)),O(d,168,s9(c&&c.totalSamplesReceived)),dka(b,c,d));EF(d,s9(c&&p9(a,c,"jitterBufferDelay").value));O(d,170,s9(c&&c.jitterBufferDelay));O(d,171,s9(c&&c.jitterBufferEmittedCount));O(d,165,s9(c&&c.jitterBufferFlushes));O(d,166,s9(c&&c.delayedPacketOutageSamples))},gka=function(a,
b,c,d,e){"video"===e?(HF(d,s9(c&&c.frameWidth,{default:-2})),IF(d,s9(c&&c.frameHeight,{default:-2})),CF(d,p9(a,c,"framesSent",!0).value),eka(b,c,d)):fka(b,c,d)},dka=function(a,b,c){c.hi(u9([b&&b.concealedSamples,v9(b&&b.totalSamplesReceived)],function(d){var e=n(d);d=e.next().value;e=e.next().value;return Math.round(d/e)}));c.pi(u9([b&&b.silentConcealedSamples,b&&b.concealedSamples,v9(b&&b.totalSamplesReceived)],function(d){var e=n(d);d=e.next().value;var f=e.next().value;e=e.next().value;return Math.round((f-
d)/e)}));c.mi(u9([b&&b.insertedSamplesForDeceleration,v9(b&&b.totalSamplesReceived)],function(d){var e=n(d);d=e.next().value;e=e.next().value;return Math.round(d/e)}));c.fi(u9([b&&b.removedSamplesForAcceleration],function(d){return n(d).next().value}));c.ni(u9([b&&b.fecPacketsReceived,b&&b.fecPacketsDiscarded,v9(a.packetsReceived)],function(d){var e=n(d);d=e.next().value;var f=e.next().value;e=e.next().value;return Math.round((d-f)/e)}));c.oi(u9([b&&b.fecPacketsDiscarded,v9(b&&a.packetsReceived)],
function(d){var e=n(d);d=e.next().value;e=e.next().value;return Math.round(d/e)}))},eka=function(a,b,c){a=b&&b.mediaSourceId&&a.get(b.mediaSourceId);BF(c,s9(a&&a.framesPerSecond,{Qc:function(d){return Math.round(d)}}))},fka=function(a,b,c){a=b&&b.mediaSourceId&&a.get(b.mediaSourceId);AF(c,s9(a&&a.audioLevel,{Qc:function(d){return Math.round(32767*d)}}))},Xja=function(a,b,c,d,e){O(c,24,1);t9(b,c,!1,d);"video"===e&&(O(c,27,s9(b.firCount)),O(c,151,s9(b.pliCount)),O(c,28,s9(b.nackCount)),O(c,139,s9(b.qpSum)));
o9(a,b,d.get(b.trackId),c,e);"video"===e&&(O(c,130,s9(b.framesDecoded)),GF(c,s9(b.bitrateMean,{Qc:function(f){return Math.round(f)}})));vF(c,s9(b.jitter,{Qc:function(f){return Math.round(1E3*f)}}));O(c,10,s9(b.packetsReceived));O(c,3,s9(b.packetsLost));O(c,9,s9(b.bytesReceived));uF(c,s9(b.fractionLost,{Qc:function(f){return Math.round(100*f)}}));O(c,143,b.decoderImplementation||"");hka(a,b,c);"video"===e&&DF(c,p9(a,b,"framesDecoded",!0).value)},Wja=function(a,b,c,d,e){O(c,24,0);t9(b,c,!0,d);"video"===
e&&(O(c,27,s9(b.firCount)),O(c,151,s9(b.pliCount)),O(c,28,s9(b.nackCount)),O(c,139,s9(b.qpSum)));gka(a,d,d.get(b.trackId),c,e);O(c,8,s9(b.packetsSent));O(c,7,s9(b.bytesSent));O(c,143,b.encoderImplementation||"");if(b.qualityLimitationReason){var f=L(c,65)||0;O(c,65,f|(b.qualityLimitationReason in w9?w9[b.qualityLimitationReason]:1073741824))}O(c,194,s9(b.qualityLimitationResolutionChanges));ika(b,c,d);"video"===e&&(FF(c,s9(b.bitrateMean,{Qc:function(g){return Math.round(g)}})),a=p9(a,b,"framesEncoded",
!0).value,O(c,197,a),jf||n9(L(c,29))||BF(c,a),O(c,130,s9(b.framesEncoded)))},ika=function(a,b,c){a=jka(c,a);c=!ef||Qp(67);wF(b,s9(c?a&&a.roundTripTime:void 0,{Qc:function(d){return Math.round(1E3*d)}}));vF(b,s9(c?a&&a.jitter:void 0,{Qc:function(d){return Math.round(1E3*d)}}));O(b,3,s9(a&&a.packetsLost))},hka=function(a,b,c){var d=b.fractionLost;"number"===typeof d?uF(c,Math.round(100*d)):(d=p9(a,b,"packetsLost"),a=p9(a,b,"packetsReceived"),d.sf&&a.sf?(b=Math.max(d.value,0),a=b+a.value,uF(c,0<a?Math.round(100*
b/a):0)):uF(c,-1))},j9=function(a){for(var b={},c=n(a.keys()),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.get(d);return Ea.JSON.stringify(b)},$ja=function(a,b){b=q9(a,b);var c=void 0!==a.writable?a.writable:b;a=void 0!==a.writable?a.writable:b;var d=0;b&&(d|=1);!0===c&&(d|=2);!0===a&&(d|=4);return d},g9=function(a){var b=null;a=n(a.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,!c.localId&&!l9(c)){b=c.timestamp;break}return"number"===typeof b?new Date(Math.round(b)):null};
function l9(a){a=a?a.isRemote:void 0;return"boolean"===typeof a&&!0===a}var k9={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},aka={host:1,serverreflexive:2,peerreflexive:2,relayed:3},bka={udp:1,tcp:2},w9={bandwidth:2,cpu:1,none:0},cka={"video/vp8":"VP8","video/vp9":"VP9","video/h264":"H264","audio/opus":"opus"};function n9(a){return null!=a&&-1!==a}
function u9(a,b){return a.every(function(c){return void 0!==c})?b(a):-1}function v9(a){return 0!==a?a:void 0}function s9(a,b){b=void 0===b?{}:b;return void 0===a?void 0!==b.default?b.default:-1:b.Qc?b.Qc(a):a}function m9(a){var b=["mediaType","kind"],c="";c=void 0===c?-1:c;if(a){b=n(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,typeof a[d]===typeof c)return a[d]}return c}
function jka(a,b){var c=b.remoteId;if(c=c&&a.get(c))return c;a=n(a.values());for(c=a.next();!c.done;c=a.next())if(c=c.value,c.localId===b.id)return c}function q9(a,b){return(b=b.get(a.transportId))&&b.selectedCandidatePairId?b.selectedCandidatePairId===a.id:a.selected};var kka=function(){var a=Fe();switch(a.connection&&a.connection.type){case "wifi":return 2;case "ethernet":return 1;default:return 0}};var x9=function(a,b){var c=jf&&!0;this.u=new rU("realtime.media.api.webrtc.StatsManager");this.l=new zja(a,b);this.g=null;this.w=!1;this.F=W(a,HK);this.G=new i6(a);this.h=new R8;this.m=new Rja(b);this.s=this.D=0;this.o=!1;this.j=c;this.C=[]},y9=function(a,b){a.C.push(b)};x9.prototype.start=function(){jf&&lka(this)};x9.prototype.stop=function(){jf&&(this.g&&(this.g.disconnect(),this.g=null),this.w=!0)};
var mka=function(a,b,c){var d=Xa();if(!(1E3>d-a.D)){a.D=d;if(a.j)a=Jja(a.l,b);else{a=a.m;d={audio:!1,video:!1};b=n(b.values());for(var e=b.next();!e.done;e=b.next())if(e=e.value,"inbound-rtp"==(k9[e.type]||e.type)&&!l9(e)){var f=Number(e.ssrc),g=e.packetsReceived;f&&"number"===typeof g&&(a.j.has(f)||a.j.set(f,0),0>=g-a.j.get(f)||(a.j.set(f,g),e=m9(e),"audio"===e&&(d.audio=!0),"video"===e&&(d.video=!0)))}a=d}c(a.audio,a.video)}},nka=function(a,b,c){var d=Xa();200>d-a.s||(a.s=d,a=a.j?Kja(b):-1,c(a))},
rka=function(a,b,c,d,e){var f=!jf||!1;f=void 0===f?!1:f;var g,h,l;return Ca(function(p){if(1==p.g)return g=new IE,h=null,b?(h=c9(b),Eja(a.l,b,d,e,g,f)):(h=g9(c),Yja(a.m,c,g)),jf?v(p,m6(a.G),3):p.bb(2);2!=p.g&&(l=p.h,oka(a,g,l,h));b&&c&&Zja(a.m,c,g);pka(g);qka(g);a.C.forEach(function(r){return r.l(g)});return p.return(g)})},lka=function(a){a.F.then(function(b){a.g||a.w||(a.g=b.rg(),a.g&&a.g.onMessage.addListener(function(c){var d=a.h;d.D+=c.tabCpuUsage;d.m+=c.browserCpuUsage;d.w+=c.gpuCpuUsage;d.o+=
c.tabJsMemoryAllocated;d.s+=c.tabJsMemoryUsed;d.g++}))})},oka=function(a,b,c,d){var e=a.h.toJson();"number"!==typeof e.tabCpuUsage||isNaN(e.tabCpuUsage)||O(b,34,Math.round(e.tabCpuUsage));"number"!==typeof e.browserCpuUsage||isNaN(e.browserCpuUsage)||O(b,92,Math.round(e.browserCpuUsage));"number"!==typeof e.gpuCpuUsage||isNaN(e.gpuCpuUsage)||O(b,94,Math.round(e.gpuCpuUsage));"number"!==typeof e.pluginCpuUsage||isNaN(e.pluginCpuUsage)||O(b,93,Math.round(e.pluginCpuUsage));"number"!==typeof e.totalCpuUsage||
isNaN(e.totalCpuUsage)||O(b,35,Math.round(e.totalCpuUsage));"number"!==typeof e.numOfProcessors||isNaN(e.numOfProcessors)||O(b,36,Math.round(e.numOfProcessors));"number"!==typeof e.tabJsMemoryAllocated||isNaN(e.tabJsMemoryAllocated)||O(b,150,Math.round(e.tabJsMemoryAllocated));"number"!==typeof e.tabJsMemoryUsed||isNaN(e.tabJsMemoryUsed)||O(b,151,Math.round(e.tabJsMemoryUsed));if(d){S8(a.h,d);d=a.h;var f=c.value;if(e=f&&f.numOfProcessors){var g=0,h=0;if(f=f.processors)for(var l=0;l<f.length;l++){var p=
f[l].usage;g+=p.user+p.kernel;h+=p.total}else g=d.F,h=d.j;f=h==d.j?d.H:100*e*(g-d.F)/(h-d.j);d.F=g;d.j=h;d.H=f;d.L=f;d.K=e}c.value&&c.value.temperatures&&c.value.temperatures[0]&&O(b,189,c.value.temperatures[0]);b=a.h;0>(null!=b.h&&null!=b.l?(b.h.getTime()-b.l.getTime())/1E3:-1)||(a=a.h,a.D=0,a.m=0,a.w=0,a.o=0,a.s=0,a.g=0)}},qka=function(a){PF(a,gF(a).filter(function(b){return 0<L(b,10)||1!=xF(b)}))},pka=function(a){var b=kka();0!==b&&iF(a).forEach(function(c){O(c,55,b)})};var z9=function(){this.j=0;this.g=new Map;this.h=new Map},tka=function(a,b){ska(a,b);a.g.forEach(function(c,d){var e=b.get(parseInt(d,10));e&&e.Bb==c.Bb?(d=e.timestamp-a.j,c.fe!=d&&(c.Td=d)):(c.Td&&(e=a.h.get(d)||[],e.push(c),a.h.set(d,e)),a.g.delete(d))});b.forEach(function(c,d){var e=a.g.get(d.toString());void 0==e&&(e={Bb:c.Bb,fe:c.timestamp-a.j,Td:null},a.g.set(d.toString(),e))})},ska=function(a,b){if(0===a.j){var c=Number.MAX_VALUE;b.forEach(function(d){d=d.timestamp;d<c&&(c=d)});c!==Number.MAX_VALUE&&
(a.j=c)}};z9.prototype.l=function(a){var b=this;gF(a).forEach(function(c){var d=oF(c),e=nF(c);if(!(1>e.length)&&(e=e[0].toString(),""!=e)){var f=b.h.get(e);f&&(f.forEach(function(g){g=A9(g);d.push(g)}),b.h.delete(e));(e=b.g.get(e))&&e.Td&&(f=A9(e),d.push(f),e.fe=e.Td,e.Td=null);0<d.length&&c.C(d)}})};var A9=function(a){var b=new LE;b=O(b,3,a.Bb);b=O(b,1,a.fe);return O(b,2,a.Td)};var wka=function(a){var b={wr:!0,timeout:3E4},c=b.document||document,d=cd(a).toString(),e=ig(document,"SCRIPT"),f={xo:e,ah:void 0},g=new Kz(uka,f),h=null,l=null!=b.timeout?b.timeout:5E3;0<l&&(h=window.setTimeout(function(){B9(e,!0);g.g(new C9(1,"Timeout reached for loading script "+d))},l),f.ah=h);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(B9(e,b.wr||!1,h),g.callback(null))};e.onerror=function(){B9(e,!0,h);g.g(new C9(0,"Error while loading script "+
d))};f=b.attributes||{};Mc(f,{type:"text/javascript",charset:"UTF-8"});eg(e,f);qe(e,a);vka(c).appendChild(e);return g},vka=function(a){var b;return(b=(a||document).getElementsByTagName("HEAD"))&&0!=b.length?b[0]:a.documentElement},uka=function(){if(this&&this.xo){var a=this.xo;a&&"SCRIPT"==a.tagName&&B9(a,!0,this.ah)}},B9=function(a,b,c){null!=c&&Ea.clearTimeout(c);a.onload=Ka;a.onerror=Ka;a.onreadystatechange=Ka;b&&window.setTimeout(function(){kg(a)},0)},C9=function(a,b){var c="Jsloader error (code #"+
a+")";b&&(c+=": "+b);Bb.call(this,c);this.code=a};y(C9,Bb);var xka=m(["EchoDetector constructor"]),yka=m(["EchoDetector module: ",""]),zka=m(["EchoDetector module: ",""]),Aka=m(["onAbort called - WebAssembly failure"]),Bka=m(["Loaded and initialized in ","ms"]),Cka=m(["Wasm module initialization failed."]),Dka=m(["Failed to create echoDetector."]),Eka=m(["Failed to load glue code."]),Hka=function(a){var b=this;this.u=new rU("realtime.media.audio.EchoDetector");this.u.g(xka);this.F=W(a,AK);this.h=R7();this.j=null;this.l=new Map;this.w=!1;this.g=this.D=this.s=
null;this.C=fd();this.m=this.h.createScriptProcessor(2048,1,1);this.o=this.h.createScriptProcessor(2048,1,1);a=this.h.createMediaStreamDestination();this.m.connect(a);this.o.connect(a);var c=Xa(),d={print:function(e){return b.u.g(yka,e)},printErr:function(e){return b.u.J(zka,e)},onAbort:function(){b.u.J(Aka);D9(b,5388,{Ub:"onAbort"})},onRuntimeInitialized:function(){try{var e=b.g._GetVersion();if(5!=e)throw Error("Version mismatch - expected 5, got "+e);b.g._Initialize(2048,b.h.sampleRate,1,2048,
b.h.sampleRate,1);b.u.g(Fka,e);b.s=new Float32Array(b.g.HEAP32.buffer,b.g._GetCaptureAudioBuffer(),2048);b.D=new Float32Array(b.g.HEAP32.buffer,b.g._GetRenderAudioBuffer(),2048);Gka(b);b.w=!0;var f=Xa()-c;b.u.g(Bka,f);D9(b,5389,{Fc:f})}catch(g){uU(b.u,g).J(Cka),D9(b,5388,{Ub:g.message})}}};wka(this.C).then(function(){try{window._createWasmEchoDetectorV2(d),b.g=d}catch(e){uU(b.u,e).J(Dka),D9(b,5388,{Ub:e.message})}},function(e){uU(b.u,e).J(Eka);D9(b,5387,{Ub:e.message})})},Fka=m(["Initialized - version ",
""]),Gka=function(a){a.o.onaudioprocess=function(b){a.w&&null!=a.j&&(a.s.set(b.inputBuffer.getChannelData(0)),a.g._AnalyzeCaptureAudio())};a.m.onaudioprocess=function(b){a.w&&0<a.l.size&&(a.D.set(b.inputBuffer.getChannelData(0)),a.g._AnalyzeRenderAudio())}},D9=function(a,b,c){a.F.then(function(d){d.g(b,c)})},Ika=m(["addRenderStream completed"]),Jka=function(a,b){var c=a.h.createMediaStreamSource(b);c.connect(a.m);a.l.set(b,c);a.u.g(Ika)},Kka=m(["removeRenderStream completed"]),Lka=m(["setCaptureStream completed"]),
Mka=function(a,b){a.j instanceof MediaStreamAudioSourceNode&&a.j.disconnect();a.j=a.h.createMediaStreamSource(b);a.j.connect(a.o);a.u.g(Lka)};var F9=function(a,b,c,d){pv.call(this);var e=this;this.g=b;this.Ob=c;jf||kf||(d=yT(d));this.s=d;b=new h8(d.dh);this.Ba=new eja(b,d);var f=null;d.ti&&(f=new i8(function(g){e.zc=g;E9(e)},{ar:d.jg,mu:d.Df}),this.N(f));this.Sa=f;this.W=d.jp&&d.he?new Hka(a):null;this.zc=d.jg;this.ta=new l1("realtime.media.api.webrtc.PeerController");this.ne=new A8;this.j=new X(this);this.N(this.j);this.ga=null;this.ic=!1;this.H=this.Vb=this.C=this.Bc=null;this.F=new x9(a,c.j);y9(this.F,b);this.W&&y9(this.F,new g8(this.W));
this.Nc=new z9;y9(this.F,this.Nc);this.Mc=new Map;this.xb=this.s.kj()||1E4;this.ra=Xa();this.Eb=!0;this.sa=1;this.G=new Map;this.o=null;this.wb=[];this.m=null;this.Z=new Map;this.pb=new Map;this.fc=new Map;this.Da=this.Ya=this.Ma=null;this.Aa=new Set;this.eb=new Set;this.L=this.R=null;this.La=!1;this.Ha=null;this.hc=!1;this.l=this.ka=this.ob=null;this.nd=new f8;this.kb=this.h=this.oa=null;W(a,EK).then(function(g){e.kb=g});this.Lc=W(a,AK).then();a=this.s.Cc;0==a&&(a=jf?1:2);this.Cc=a;this.Wb=AR(xR("JNxaef"))};
u(F9,pv);F9.prototype.toString=function(){return"PeerController(sessionId="+this.g+")"};
var E9=function(a){if(a.ga)for(var b=n(v8(a.ga)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.zc/1E3;c.playoutDelayHint=d;c.jitterBufferDelayHint=d}},RY=function(a,b){yW(a.ta,"["+a+"] "+b)},G9=function(a,b){a.ta.J("["+a+"] "+b)},H9=function(a,b){for(var c=[],d=0;d<b;d++)c.push(B8(a.ne));return c},I9=function(a,b){var c=H9(a,a.s.af?3:1),d=[];1<c.length&&a.s.af&&d.push(new FO("SIM",c));if(a.s.Nf)for(var e=H9(a,c.length),f=0;f<e.length;f++)c.push(e[f]),d.push(new FO("FID",[c[f],e[f]]));return bP(ZO(RO(QO(OO(new NO,
"v"),b),a.g+"/"+b),c),d).ha()},K9=function(a,b){a.Mc.has(b)||(a.Mc.set(b,!0),a.M(new J9(a.g,b)))};k=F9.prototype;
k.Et=function(a){var b=a.stream,c=a.g;a=b.getAudioTracks();var d=b.getVideoTracks();RY(this,"Remote stream added with id="+c+" audioTracks="+(a.length+" videoTracks="+d.length));E9(this);d=function(e){return e.be==c};PP(this.m.ua).some(d)||PP(this.m.na).some(d)||cc(this.m.ua.j).some(function(e){return e.toString()==c})?0<a.length?this.s.he?(a=L9(this,this.m,c),M9(this,5038),d=Kha(this.Ob,b,a,2==this.Cc),this.W&&Jka(this.W,b),N9(this,c,d),this.G.set(c,d),this.j.listen(d,"playing",this.Jn),this.j.listen(d,
"playing_error",this.St),a||G9(this,"Participant left before their audio was added")):(RY(this,"Ignoring incoming audio track as audio output is disabled."),a.forEach(function(e){return e.stop()})):(this.Z.has(c)||this.Z.set(c,{yb:bt(),Am:!1}),a=this.Z.get(c),a.yb.resolve(b),a.Am=!0):RY(this,"Ignoring incoming tracks with no matching msid.")};
k.Ft=function(a){var b=a.stream;a=a.g;var c=b.getAudioTracks(),d=b.getVideoTracks();RY(this,"Remote stream removed with id="+a+" audioTracks="+(c.length+" videoTracks="+d.length));this.G.has(a)&&(c=this.G.get(a),tN(this.j,c,"playing",this.Jn),e8(this.Ob,b.id),this.G.delete(a));this.W&&(c=this.W,c.l.has(b)&&(c.l.get(b).disconnect(c.m),c.l.delete(b),c.u.g(Kka)));this.Z.has(a)&&(b=this.Z.get(a),this.Z.delete(a),b.Am||G9(this,"Asked to remove stream that was never added."))};
k.Jn=function(a){M9(this,4901,a.target.Na().id);K9(this,"play first audio")};k.St=function(a){M9(this,4970,a.code+","+a.message)};k.Um=function(a){a=a.target;var b=SY(a,this.g);b&&O9(this,b,a)};k.xn=function(a){a=a.target;if(this.o&&this.o.za()===a.h.getId()){a=a.Nb();this.o=SO(new NO(this.o),a).ha();var b=P9(this,this.o);b&&N8(this.Ba,b,!a)}};
var Nka=function(a,b){switch(b){case "a":var c=PP(a.localDescription.ua)[0];break;case "v":c=PP(a.localDescription.na).find(function(d){return"2"==d.za()});break;case "d":c=PP(a.localDescription.Va)[0];break;default:Eb("Unknown media type: "+b)}return c},Q9=function(a,b){var c=b.h;if(!a.localDescription)return null;if("v"!=c.Ga)return Nka(a,c.Ga);var d=PP(a.localDescription.na).find(function(e){return e.za()==c.getId()});d||(d=I9(a,c.getId()));return cP(VO(new NO(d),c.Wd()),b.l.w).ha()},VY=function(a,
b,c){var d=c.h,e=d.Ga,f=c.Nb();c=Q9(a,c);var g=null,h=null;if(b){g=b.id;b="a"==e?b.getAudioTracks():b.getVideoTracks();if(0==b.length)return a.ta.error("["+a+"] Got MediaStream without associated tracks."),null;h=b[0].id}c=SO(XO(WO(new NO(c),g),h),f).ha();"a"==e?a.o=c:(e=PP(a.localDescription.na).filter(function(l){return l.za()!==d.getId()}),a.wb=[].concat(q(e),[c]));RY(a,"StreamInfo="+c+" updated.");Kia(a.C,a.o?[a.o]:[],a.wb).catch(function(l){G9(a,"Negotiating with updated local streams failed with error="+
l);R9(a,l)});return c},S9=function(a,b){return Ca(function(c){if(!b||a.Eb||!a.ga)return c.bb(0);a.eb.add(b);RY(a,"Adding stream with id="+b.id+" to peer");return v(c,lia(a.ga,b),0)})},UY=function(a,b){b&&a.ga&&a.eb.has(b)&&(a.eb.delete(b),RY(a,"Removing stream with id="+b.id+" to peer"),mia(a.ga,b))},O9=function(a,b,c){if(!a.localDescription)return null;S9(a,b).then(function(){jf&&!jf&&T9(a)});var d=VY(a,b,c);c=c.h;a.W&&"a"==c.Ga&&"sc"!=c.getContent()&&Mka(a.W,b);return d},Oka=function(a){a.s.he||
v8(a.ga).forEach(function(b){(b=b.track)&&"audio"==b.kind&&b.stop()})},T9=function(a){if(!jf||Qp(68))if(a.wb.forEach(function(c){var d=!c.Wd(),e=P9(a,c);e&&mja(a.Ba,e).then(function(f){ija(a.Ba,e,c.g,{wg:d,mimeType:f})})}),a.o){var b=P9(a,a.o);b&&N8(a.Ba,b,a.Wb?!a.o.lc():!0)}},P9=function(a,b){return nia(a.ga).find(function(c){return c.track&&c.track.id==b.j&&"live"==c.track.readyState})||null};
F9.prototype.stopSession=function(a,b){this.C&&this.C.cancel();us(this.ga);this.ga=null;this.H&&(this.H.close(),this.H=null);this.R&&(this.R.stop(),this.La=!1,this.ra=0,this.M(new U9(a,b)));this.L&&this.L.stop();this.F.stop();this.Z.clear();V9(this,0)};
var Tka=function(a){var b,c;return Ca(function(d){switch(d.g){case 1:return a.ga&&Eb("Attempted to recreate a peer connection."),K9(a,"send initiate"),RY(a,"Instantiating new peer"),Pka(a,a.s.Xm),a.ga=new s8(a.s),a.Vb=a.ga.g.signalingState,a.C=new C8(a.ga,a.s,a.Lc),E9(a),a.j.listen(a.ga.g,"signalingstatechange",a.me),AR(xR("lftkhd"))&&Qka(a),a.sa=1,a.j.listen(a.ga,"jb",a.Id),a.ga.g.oniceconnectionstatechange=function(e){return Rka(a,e)},a.j.listen(a.ga,"kb",a.Et),a.j.listen(a.ga,"lb",a.Ft),a.ga.g.ondatachannel=
function(e){return Ska(a,e.channel)},a.H=u8(a.ga,"dataSendChannel"),a.H.onopen=function(){return RY(a,"send datachannel is open.")},a.H.onclose=function(){return RY(a,"send datachannel is closed.")},a.H.onerror=function(e){return G9(a,"send datachannel error: "+e)},b=function(e){var f=new NO;if(0==PP(e.ua).length){var g=H9(a,1);f=ZO(OO(f,"a"),g)}else f=new NO(PP(e.ua)[0]);g=RO(QO(f,"1"),a.g+"/1").ha();var h=0==PP(e.na).length?I9(a,"2"):RO(QO(new NO(PP(e.na)[0]),"2"),a.g+"/2").ha();f=new NO;0==PP(e.Va).length?
(f=ZO(OO(f,"d"),H9(a,1)),!jf&&(f=YO(f,OP(e.Va)))):f=new NO(PP(e.Va)[0]);f=RO(QO(f,"3"),a.g+"/3");WO(f,"dataSendChannel");e=f.ha();return new jQ(TP(new KP("a",[],[]),[g]),TP(new KP("v",[],[]),[h]),TP(new KP("d",[],[]),[e]))},ra(d,2),v(d,Dia(a.C,b),4);case 4:sa(d,3);break;case 2:return c=ta(d),a.ta.error("["+a+"] Creating the initial local description failed: "+c),d.return(null);case 3:return RY(a,"Creating the initial local description succeeded"),d.return(a.localDescription)}})},CW=function(a){var b;
Ca(function(c){switch(c.g){case 1:K9(a,"recv local description");a.F.start();if(!a.R){var d=1==a.Cc||ef&&!0;a.R=new qv(a.s.he&&d?W9:Math.min(1E3,a.xb));a.j.listen(a.R,"tick",a.rd);a.R.start()}1==a.Cc||a.L||(a.L=new qv(W9),a.j.listen(a.L,"tick",a.pd),a.L.start());RY(a,"Calling initial setLocalDescription");ra(c,2);return v(c,Iia(a.C),4);case 4:sa(c,3);break;case 2:throw b=ta(c),RY(a,"Initial setLocalDescription offer failed with error="+b),R9(a,b),b;case 3:RY(a,"Initial setLocalDescription offer succeeded"),
c.g=0}})},pW=function(a,b,c){return u8(a.ga,b,c)};F9.prototype.rd=function(){this.R.enabled&&(1==this.Cc&&X9(this),this.La||(jf?0:1E3>Xa()-this.ra)||Uka(this))};F9.prototype.pd=function(){if(this.L.enabled)if(X9(this),2==this.Cc){for(var a=new Map,b=n(this.G.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.G.get(d);(d=L9(this,this.m,d))&&Y9(this,a,d,(c.m?oha(c.m):null)||0)}Z9(this,a);$9(this,a)}else 3==this.Cc&&$9(this,this.oa)};
var Uka=function(a){var b,c,d,e,f,g,h,l,p,r,t,A;Ca(function(z){switch(z.g){case 1:return a.La=!0,jf?v(z,pia(a.ga),5):v(z,a.ga.getStats(),4);case 4:b=z.h;z.bb(3);break;case 5:b=z.h.result();case 3:c=b;a.La=!1;Vka(a,c);Wka(a,c);1==a.Cc&&Xka(a,c);a.l&&tka(a.Nc,a.l);var G=a.F;if(!G.o){if(G.j){var N=G.l;for(var Aa=null,Mb=n(c),Nb=Mb.next();!Nb.done;Nb=Mb.next())(Nb=d9(Nb.value.timestamp))&&0<Nb.getTime()&&(!Aa||Nb.getTime()<Aa.getTime())&&(Aa=Nb);N=N.j=Aa}else N=G.m,(Aa=g9(c))&&h9(N,Aa),N=Aa;N&&(G.o=!0,
S8(G.h,N))}G=a.F;G.j&&Ija(G.l,c);d=Xa();if(!(d-a.ra>=a.xb)){z.bb(0);break}a.ra=0==a.ra?d:a.ra+a.xb;f=e=!1;g=n(a.Aa);for(h=g.next();!h.done;h=g.next())l=h.value,"v"!==l.ia()||l.Nb()?"a"===l.ia()&&(f=!0):e=!0;p=jf?c:null;if(!jf){r=c;z.bb(7);break}return v(z,a.ga.getStats(),8);case 8:r=z.h;case 7:return t=r,v(z,rka(a.F,p,t,!e,f),9);case 9:A=z.h,a.M(new a$(A)),z.g=0}})},Xka=function(a,b){b=a.F.j?Gja(b):new Map;var c=new Map;b.forEach(function(d,e){Y9(a,c,e,d)});Z9(a,c);$9(a,c)},X9=function(a){var b=a.l;
a.l=null;a.ka=null;a.oa=null;if(a.m&&0<a.m.ua.j.length){a.l=new Map;a.oa=new Map;for(var c=a.m.ua.l,d=0,e=n(v8(a.ga)),f=e.next();!f.done;f=e.next())if(f=f.value,"audio"==f.track.kind&&Oa(f.getContributingSources)){a.ob||(a.ob=Xa(),a.M(new b$(a.ob)));var g=f.getContributingSources();if(0!=g.length)if(f=Yka(f),null==f)G9(a,"Could not find SSRC for RTCRtpReceiver.");else{g.sort(function(r,t){var A=c$(r.timestamp);t=c$(t.timestamp);return A==t&&null!=c?r.source==c?1:-1:t-A});var h=null,l=null;g=n(g);
for(var p=g.next();!p.done;p=g.next()){p=p.value;if(null!=h&&(null==c||p.timestamp<=d))break;null!=c&&p.source==c?p.timestamp>d&&(d=p.timestamp,a.ka=l):(null==h&&(h=p),l=p.source)}null!=h&&(l=h.source,a.l.set(f,{Bb:l,timestamp:c$(h.timestamp)}),a.oa.set(l,{volume:S7(Math.min(3E5*(h.audioLevel||0),32768)),Wh:!1}))}}Z9(a,a.oa);3==a.Cc&&a.nd.smooth(a.oa)}Zka(a,b)},Y9=function(a,b,c,d){a.l&&(c=(c=a.l.get(c))?c.Bb:null);null!==c&&(1==a.Cc&&a.h&&(a=a.h.get(c),null!=a&&0!=a&&(d/=a)),b.set(c,{volume:d,Wh:!1}))},
Z9=function(a,b){a.ka&&(b.has(a.ka)?b.get(a.ka).Wh=!0:b.set(a.ka,{volume:0,Wh:!0}))},Vka=function(a,b){mka(a.F,b,function(c,d){c&&K9(a,"recv first audio packet");d&&K9(a,"recv first video packet");a.M(new d$(c,d))})},Wka=function(a,b){a.Ha&&nka(a.F,b,function(c){$ka.forEach(function(d,e){c>=e&&(K9(a,d),"bandwidth 3150"==d&&(a.Ha=!1))})})},L9=function(a,b,c){if(!b||!b.ua)return null;if(0<a.m.ua.j.length){if(b=cc(a.m.ua.j).find(function(d){return d.toString()==c}))return b;G9(a,"Received audio from non-virtual ssrc "+
c+"when only virtual ssrcs should be used");return null}if(a=PP(b.ua).find(function(d){return d.g==c}))if(a=a.fb(),0!=a.length)return a[0];return null},PW=function(a,b){b.forEach(function(){K9(a,"recv candidate ")});Nia(a.C,b)},bla=function(a){ala(a);null==a.Da&&1==a.sa&&(M9(a,2703),a.Ma=sv(function(){1==a.sa&&(G9(a,"Transport writable 1st timer timed out."),M9(a,2705))},2E4),a.Ya=sv(function(){1==a.sa&&(G9(a,"Transport writable 2nd timer timed out."),M9(a,2706))},3E4),a.Da=sv(function(){if(1==a.sa){G9(a,
"Transport writable timeout failed, aborting.");var b=27;M9(a,2707);a.hc||(M9(a,3736),b=24);a.M(new e$(b,a.g))}},55E3))},V9=function(a,b){null!=a.Ma&&(tv(a.Ma),a.Ma=null);null!=a.Ya&&(tv(a.Ya),a.Ya=null);null!=a.Da&&(tv(a.Da),a.Da=null);a.sa=b},Rka=function(a,b){var c,d;return Ca(function(e){switch(e.g){case 1:a.Bc=b;c=a.ga.g.iceConnectionState;RY(a,"ICE connection state changed to: "+c+", signaling state: "+a.ga.g.signalingState);"disconnected"==c?M9(a,5442):"failed"==c&&M9(a,5441);if("disconnected"!=
c){if("connected"==c||"completed"==c)V9(a,2),a.ic=!0,K9(a,"transport writable"),M9(a,2704),a.M(new f$(!0,"completed"==c));e.bb(0);break}e.bb(3);break;case 4:if(a.Bc!=b)return e.return();case 3:a.ic&&(K9(a,"transport not writable"),a.M(new f$(!1,!1)));if(ef)return e.return();RY(a,"Initiating ICE restart");M9(a,5440);ra(e,5);var f=a.C;f.w=!0;f=J8(f);return v(e,f,7);case 7:sa(e,0);break;case 5:throw d=ta(e),G9(a,"ICE restart failed with error="+d),R9(a,d),d;}})};
F9.prototype.Id=function(a){a=a.candidate;RY(this,"Got local ICE candidate: "+JSON.stringify(a));this.M(new g$(this.g,[a]));a=a.h;K9(this,"send candidate "+a);"STUN"!=a&&(this.hc=!0)};
var ala=function(a){K9(a,"call connect");null==a.Ha&&(a.Ha=!0,uv(3E5).then(function(){a.Ha=!1}))},cla=function(a,b){var c;return Ca(function(d){switch(d.g){case 1:return K9(a,"recv remote description"),a.m=b,a.fc=new Map(PP(b.Va).map(function(e){return[e.be||e.za(),e]})),ra(d,2),v(d,Jia(a.C,b),4);case 4:sa(d,3);break;case 2:throw c=ta(d),G9(a,"Negotiating with updated remote description failed with error="+c),R9(a,c),c;case 3:T9(a),Oka(a),d.g=0}})},dla=function(a){a.Aa.forEach(function(b){(b=SY(b,
a.g))&&UY(a,b)});a.Eb=!0},h$=function(a){a.Eb=!1;a.Aa.forEach(function(b){(b=SY(b,a.g))&&S9(a,b)})};F9.prototype.aa=function(){var a=this;us(this.R);us(this.L);this.G.forEach(function(b){return e8(a.Ob,b.Na().id)});this.G.clear();us(this.ga);this.ga=null;this.H&&(this.H.close(),this.H=null);pv.prototype.aa.call(this)};
var ela=function(a,b){K9(a,"recv view request");var c=a.Ba;c.g.clear();b=n(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;if("v"===e.ia()){d=e.l;var f=e.sc(),g=c;e=g.j&&e.fb().length===g.o?nja:g.h?oja:null;d&&f&&e&&(f=e.get(O8(f)))&&c.g.set(d,f)}}T9(a)},Ska=function(a,b){RY(a,"receive datachannel "+b.label+" created.");a.pb.set(b.label,b);b.onopen=function(){RY(a,"receive datachannel "+b.label+" is open.")};b.onclose=function(){RY(a,"receive datachannel "+b.label+" is closed.");a.pb.delete(b.label)};
b.onerror=function(c){G9(a,"receive datachannel "+b.label+" threw error: "+c);a.pb.delete(b.label)};b.onmessage=function(c){c=c.data;var d=a.fc.get(b.label);d=d?d.Y():b.label;RY(a,"dataReceived: participantId="+d+(" label="+b.label+" data="+c));null!=c&&a.M(new i$(a.g,d,b.label,c))}},Zka=function(a,b){a.h&&a.l&&a.l.forEach(function(c,d){var e=b&&b.get(d);c=c.Bb;e&&e.Bb==c||(d=a.G.get(d.toString()))&&d.Sb(a.h.has(c)?a.h.get(c):1)})},fla=function(a,b){if(b){var c=!a.h,d=new Map;b.forEach(function(e,
f){(f=f.getInfo())&&f.fb().forEach(function(g){d.set(g,e);c=c||e!==a.h.get(g)})});if(!c&&a.h.size==d.size)return;a.h=d}else{if(!a.h)return;a.h=null}a.G.forEach(function(e,f){return N9(a,f,e)})},N9=function(a,b,c){a.h?(b=L9(a,a.m,b),null!=b&&(a.l&&a.l.has(b)&&(b=a.l.get(b).Bb),c.Sb(a.h.has(b)?a.h.get(b):1))):c.Sb(1)},Qka=function(a){Ca(function(b){if(a.w())return b.bb(0);j$(a);return v(b,uv(1E3),1)})};F9.prototype.me=function(a){a.target==this.ga.g&&j$(this)};
var j$=function(a){a.Vb!=a.ga.g.signalingState&&(a.Vb=a.ga.g.signalingState,k$(a))},k$=function(a){a.w()||"closed"!=a.ga.g.signalingState||(M9(a,2055),a.M(new e$(4,a.g)))},$9=function(a,b){b=b||new Map;a.M(new M7(a.g,b));a.kb&&$ea(a.kb,b)},Pka=function(a,b){0==b.length&&a.ta.J("No ICE servers provided.");b.some(function(c){return!c.url&&!c.urls})&&(a.ta.J("Malformed Ice servers: "+JSON.stringify(b)),M9(a,4264))},R9=function(a,b){b instanceof M8?k$(a):a.M(new e$(19,a.g,b+""))},M9=function(a,b,c){a.Lc.then(function(d){d.g(b,
{sessionId:a.g,Ub:c})})},Yka=function(a){if(jf)return parseInt(a.track.id,10);if(!Oa(a.getSynchronizationSources))return null;a=a.getSynchronizationSources();return 0<a.length?a[0].source:null};da.Object.defineProperties(F9.prototype,{localDescription:{configurable:!0,enumerable:!0,get:function(){return this.C?this.C.localDescription:null}}});
var W9=jf&&!Qp(40)?200:100,$ka=new Map([[5E5,"bandwidth 500"],[1E6,"bandwidth 1000"],[15E5,"bandwidth 1500"],[25E5,"bandwidth 2500"],[315E4,"bandwidth 3150"]]),d$=function(a,b){U.call(this,"qb");this.g=a;this.j=b};u(d$,U);var a$=function(a){U.call(this,"ub");this.cb=a};u(a$,U);var U9=function(a,b){U.call(this,"vb");this.Ib=a;this.g=b};u(U9,U);var g$=function(a,b){U.call(this,"sb");this.sessionId=a;this.g=b};u(g$,U);var J9=function(a,b){U.call(this,"rb");this.sessionId=a;this.message=b};u(J9,U);
var f$=function(a,b){U.call(this,"xb");this.yg=a;this.jt=b};u(f$,U);var i$=function(a,b,c,d){U.call(this,"ob");this.sessionId=a;this.fa=b;this.label=c;this.payload=d};u(i$,U);var e$=function(a,b,c){U.call(this,"pb");this.Ib=a;this.sessionId=b;this.g=c};u(e$,U);var b$=function(a){U.call(this,"nb");this.g=a};u(b$,U);var c$=function(a){return"number"===typeof a?a:a?a.getTime():0};var l$=function(){QM.call(this);this.u=new rU("realtime.media.api.webrtc.AudioMonitor");this.j=this.g=null;this.l=new qv(100);this.N(this.l);var a=new X(this);this.N(a);a.listen(this.l,"tick",this.C);this.h=null;this.m=0};u(l$,QM);l$.prototype.aa=function(){this.g&&(this.u.g(gla,this.g),this.l.stop(),this.g=null,us(this.j),this.j=null);us(this.j);QM.prototype.aa.call(this)};
var hla=m(["Registering peer controller=","."]),ila=function(a,b){a.u.g(hla,b);var c=new X(a);a.N(c);c.listen(b,"hb",a.o).listen(b,"nb",a.s).listen(b,"vb",function(){return us(c)})},gla=m(["Unregistering audio capture=","."]),kla=function(a){if(a.h){var b=a.h;var c;(c=null!==b.g)&&(c=1E3<=qR(Y(),b.j))&&b.u.g(jla);c&&(b.g=null);b=b.g;if(null!==b)return b}return a.g?a.g.sa():0},m$=function(a,b,c){c=void 0===c?null:c;a.M(new TU(void 0===b?"amsid":b,kla(a),c||new Map))};
l$.prototype.C=function(){1E3<Xa()-this.m&&m$(this)};l$.prototype.o=function(a){this.m=Xa();m$(this,a.sessionId,a.g)};l$.prototype.s=function(a){this.M(new UU(a.g))};var n$=function(a){K(this,a,0,-1,null,null)};y(n$,J);var lla=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=b.g.w();ql(a,1,c,0);break;default:Ck(b)}return a};var o$=function(a){K(this,a,0,-1,null,null)};y(o$,J);var qW=function(a){T.call(this);var b=this;this.j=new lL(this);this.g=a;this.l=bt();this.h=bt();mla(this);this.o=this.j.signal();this.m=this.j.signal();ts(this,function(){return b.l.da.then(function(){return b.g.close()})})};u(qW,T);
var mla=function(a){a.g.binaryType="arraybuffer";a.g.onerror=function(b){a.l.reject(b);a.h.reject(b)};a.g.onopen=function(){a.l.resolve()};a.g.onclose=function(){a.h.resolve()};a.g.onmessage=function(b){b=b.data;b instanceof ArrayBuffer?a.j.V(a.m,{data:new Uint8Array(b)}):"string"===typeof b?a.j.V(a.o,{data:b}):Eb("Unsupported data type received on RTCDataChannel")}};qW.prototype.send=function(a){this.g.send(a)};qW.prototype.isOpen=function(){return"open"==this.g.readyState};
qW.prototype.onClose=function(){return this.h.da};var p$=function(a){X.call(this);var b=this;this.u=new rU("realtime.media.api.webrtc.AudioProcessorLevelMonitor");this.g=this.h=null;this.j=rR;var c=new X(this);this.N(c);c.listen(a,"xb",function(d){d.yg&&d.jt&&nla(b,a)})};u(p$,X);p$.prototype.aa=function(){q$(this);X.prototype.aa.call(this)};
var q$=function(a){us(a.h);a.h=null},ola=m(["Data Channel is opened"]),pla=m(["Data Channel is closed"]),nla=function(a,b){q$(a);var c=new qW(pW(b,"audioprocessor",{ordered:!1,maxRetransmits:0}));c.m.attach(function(d){d=new zk(d.data);for(var e=new o$;Bk(d)&&!Ak(d);)switch(d.h){case 1:var f=new n$;Dk(d,f,lla);S(e,1,f);break;default:Ck(d)}null!=L(e,1)?(d=M(Q(e,n$,1),1,0),0<=d&&5>=d&&(null===a.g&&a.u.g(qla,d),a.j=Y(),a.g=d)):a.u.J(rla)},a);c.l.da.then(function(){a.u.g(ola)});et(c.h.da,function(){c===
a.h&&(a.u.g(pla),q$(a))});a.h=c},jla=m(["Level is stale. Waiting for new data."]),qla=m(["Got an initial level: ",""]),rla=m(["Got unexpected message from Audio Processor Data Channel"]);var r$=function(){this.g=[]};r$.prototype.push=function(a){this.g.push(a)};r$.prototype.extend=function(a){this.g=[].concat(q(this.g),q(a.g))};r$.prototype.search=function(a,b){for(var c=n(this.g),d=c.next();!d.done;d=c.next())if(d=d.value,d.name.test(a)||d.h.test(b))return d.g;return B1(A1(z1(new y1,Infinity),Infinity),Infinity).ha()};r$.prototype.Yd=function(a){for(var b=n(this.g),c=b.next();!c.done;c=b.next())if(c=c.value,c.name.test(a)&&null!=c.Yd)return c.Yd;return!0};
var sla=function(a,b,c,d,e,f){this.name=s$(a);this.h=s$(b);this.Yd=f;this.g=B1(A1(z1(new y1,c?c:Infinity),d?d:Infinity),e?e:Infinity).ha()};function s$(a){return a?(a=String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08").replace(/\\\*/g,".*"),new RegExp("^"+a+"$","im")):/1^/};var tla=[["Feature disabled.",5519],["Unlimited size disallowed.",5886],["Max size too small.",5887],["Excessively large max log size.",5888],["Excessively large output period (ms).",5889],["Illegal web-app ID.",5890],["Unknown or inactive peer connection.",5891],["Already logging.",5892],["Unspecified error.",5893],["RPH already dead.",5903],["Could not create file.",5904],["Used history file path.",5905],["Used log file path.",5906],["Disabled for browser context.",5907],["No additional active logs allowed.",
5908]],ula=function(a){var b=this;this.g=new l1("realtime.media.api.webrtc.LoggingManager");this.L=W(a,AK).then();this.mb=W(a,BK,!0).then();this.G=this.mb.then(function(c){return c.h});this.j=OA.Kb();this.j.F=8;this.o=W(a,HK);this.C=null;this.R=new Set;this.W=new Map;this.w=new Set;this.H=new Map;this.D=new Set;this.h=!1;this.m=this.s=this.l=null;this.F=this.K=!1;bv(oN.Kb(),["x","y","z"],function(){b.j.l&&t$(b,5183);u$(b)})},vla=function(a,b){yW(a.g,"Logging manager initialized with userId: "+b);
a.C=b;a.j.w="11.0.0.0";if(b){var c=SA(a.j,b);null!=c&&Rz(c,function(d){0<d&&zW(a,2679)});zW(a,5184,R(LA(a.j.j,b),DA,1).length)}BW(a);Us(7)},EW=function(a,b,c){yW(a.g,"enableRtpHeaderDump called with sessionId="+b+(" and enable="+c));a.F==c?yW(a.g,"Ignoring enableRtpHeaderDump call for sessionId="+b+(" as header dump already in state with enable="+c)):a.h?a.o.then(function(d){$3(d,c).then(function(){yW(a.g,"RTP header dump succeeded for sessionId="+b+(" and enable="+c));a.F=c},function(e){a.g.J("Error setting RTP header dump for sessionId="+
b+(" and enable="+c+". Error="+e.value));throw e;})}):a.l?(yW(a.g,"Delaying rtp header dump request until native WebRTC logging has started."),a.l.then(function(){return EW(a,b,c)})):a.g.J("enableRtpHeaderDump called when native logging is not active or pending")},wla=function(a,b,c){Ca(function(d){yW(a.g,"Starting WebRTC event logging for sessionId="+b+", peerId="+c);a.H.set(b,c);return v(d,v$(a,b),0)})},xla=function(a,b){if(a.w.has(b)){yW(a.g,"Stopping logging for sessionId="+b);a.w.delete(b);zW(a,
3221);var c=a.D.has(b);a.D.delete(b);c?(yW(a.g,"Uploading logs for "+b),zW(a,2494),c=a.G.then(function(e){if(a.C)return yW(a.g,"################# Save #################"),RA(a.j,b,a.C,e).then(function(){zW(a,2495)},function(){zW(a,2496)});a.g.J("Failed to upload beacause of missing user identifier.")})):c=Us();var d=u$(a);et(Zs([c,d]),function(){var e=OA.Kb(),f=new Date;PA(e,b,"### Stop ["+f.toString()+"] ### "+b);PA(e,b,"Current time is "+f.toUTCString());delete e.g[b]})}else yW(a.g,"Skipping stopLogging call for sessionId="+
b+" as logging is not active for this session.")},yla=function(a,b){Ca(function(c){yW(a.g,"Log upload requested for sessionId="+b);a.D.add(b);a.G.then(function(d){a.C&&a.j.j.add(a.C,b,d)});AW(a);return v(c,v$(a,b),0)})},w$=function(a,b){var c=a.W.get(b);c||(c=bt(),a.W.set(b,c));return c},BW=function(a){a.h||a.l||(yW(a.g,"Requesting native WebRTC logging"),zW(a,4732),a.l=a.o.then(function(b){return et(nea(b).then(function(){a.h=!0;zW(a,4733);yW(a.g,"Native WebRTC logging started");AW(a)},function(c){var d=
c.value,e=X3.get(c.status);zW(a,4734);e&&(d=JSON.stringify(d),t$(a,e,d));a.g.J("Native WebRTC logging failed to start, error: "+c.value);throw c;}),function(){a.l=null})}))},v$=function(a,b){var c;return Ca(function(d){if(!a.D.has(b))return d.return();c=a.H.get(b);if(!c||a.R.has(b))return d.return();a.R.add(b);return v(d,zla(a,b,c),0)})},zla=function(a,b,c){var d,e,f,g,h,l,p,r,t,A,z;return Ca(function(G){switch(G.g){case 1:return yW(a.g,"WebRTC event logging requested for "+b+", peer id: "+c),v(G,
a.o,2);case 2:return d=G.h,ra(G,3),v(G,d.j.bk(c).then(d.h),5);case 5:e=G.h;f=e.value.logId;w$(a,b).resolve(f);zW(a,5520);yW(a.g,"WebRTC event logging started, logId: "+f);sa(G,0);break;case 3:g=ta(G);if(!(g instanceof T3))return zW(a,5518),a.g.error("WebRTC event logging failed unexpectedly, error: "+JSON.stringify(g)),G.return();if(3==g.status)return zW(a,5894),a.g.error("WebRTC event logging failed due to disabled extension."),G.return();h=g.value;l=n(tla);for(p=l.next();!p.done;p=l.next())if(r=
p.value,t=n(r),A=t.next().value,z=t.next().value,h.includes(A))return zW(a,z),yW(a.g,"WebRTC event logging start error: "+h),G.return();zW(a,5517);a.g.J("WebRTC event logging failed to start, error: "+JSON.stringify(g));G.g=0}})},u$=function(a){if(a.s)return a.s;if(a.l)return a.l.then(function(){u$(a)});if(!a.h)return Us();if(0==!a.w.size)return yW(a.g,"Ignoring native WebRTC logging stop request due to active session ids="+a.w.keys()),Us();yW(a.g,"Stopping native WebRTC logging.");a.s=a.o.then(function(b){a.F&&
$3(b,!1);return et(oea(b,a.m,a.K).then(function(){yW(a.g,"Request to stop native WebRTC logging succeeded")},function(c){a.g.J("Request to stop native WebRTC logging failed with error="+c.value);throw c;}),function(){a.h=!1;a.m=null;a.s=null})});return a.s},AW=function(a){if(!a.K&&a.h&&a.m&&a.D.has(a.m)){yW(a.g,"Requesting upload of the native WebRTC logs");a.K=!0;var b=a.m;zW(a,4735);a.G.then(function(c){return Ala(a,b,c)})}},Ala=function(a,b,c){a.o.then(function(d){pea(d,b,c).then(function(){zW(a,
4736);yW(a.g,"Native uploadLogOnRenderClose succeeded.")},function(e){zW(a,4737);a.g.J("Native uploadLogOnRenderClose failed witherror="+e.value);throw e;})})},zW=function(a,b,c){a.L.then(function(d){d.g(b,{Fc:c})})},t$=function(a,b,c){a.L.then(function(d){d.h(b,{Ub:c})})};var x$=function(a,b,c,d,e){oT.call(this);var f=this;this.j=new l1("realtime.media.api.webrtc.LocalSession");this.h=a;this.g=b;this.H=c;this.R=bt();this.o=e;w$(this.o,a).da.then(function(g){var h=new WG,l=new xG;O(l,7,g);S(h,7,l);f.R.resolve(h)});this.Z=new X(this);this.N(this.Z);this.Z.listen(this.g,"ob",this.Xt).listen(this.g,"pb",this.Yt).listen(this.g,"qb",this.Zt).listen(this.g,"rb",this.au).listen(this.g,"sb",this.bu).listen(this.g,"ub",this.du).listen(this.g,"vb",this.cu).listen(this.g,"xb",
this.eu);this.l="INITIAL";this.s=new Set;this.F=new Set;this.G=null;this.C=void 0;this.L=this.m=null;this.W=new fT;d.then(function(g){return f.W=g})};u(x$,oT);var DW=function(a,b,c,d){a.l!=b&&(a.l=b,"number"!==typeof a.C&&"number"===typeof c&&(a.C=c),a.M(new lR(a.l,a.C,d)))};x$.prototype.Nm=function(){return this.R.da};x$.prototype.zn=function(){return this.W};x$.prototype.getState=function(){return this.l};x$.prototype.Fm=function(){return this.m?this.m.da:null};
var vaa=function(a){return"INITIAL"!=a.l?(a.j.J("Called initialize in a bad state."),Vs()):Us(Tka(a.g))};k=x$.prototype;k.start=function(a){if("STARTING"!=this.l)return this.j.J("Called start in a bad state."),!1;yW(this.j,"sendLogComment: RemoteSessionId="+a.j);DW(this,"INPROGRESS");CY(this,a);return!0};k.connect=function(){var a=this;"PAUSED"!=this.getState()&&h$(this.g);bla(this.g);var b=AR(xR("MKhH1b"));jf&&Qp(72)&&!b&&this.g.ga.m.da.then(function(c){c?wla(a.o,a.h,c):a.j.error("Cannot start WebRTC event logging - peer connection id is not found.")})};
k.update=function(a){switch(this.l){case "INITIAL":return this.j.J("Update called before started."),Promise.reject(Error("Update called before started."));case "STOPPED":return this.j.J("Update called after stopped."),Promise.reject(Error("Update called after stopped."))}return CY(this,a)};k.stop=function(a,b){if("STOPPED"==this.l)return!1;DW(this,"STOPPED",a,b);this.g.stopSession(this.C,b);xla(this.o,this.h);return!0};
k.pause=function(){if("INPROGRESS"!=this.getState())return!1;dla(this.g);DW(this,"PAUSED");return!0};k.resume=function(){if("PAUSED"!=this.getState())return!1;h$(this.g);DW(this,"INPROGRESS");return!0};
var nW=function(a){yla(a.o,a.h)},iX=function(a,b){var c=b.h.Ga;switch(a.l){case "STOPPED":case "FINISHED":return a.j.J("Add local stream called after ended."),null}if(a.s.has(b))return a.j.error("Capture "+b+" has already been added."),null;b.eb(a.h);var d=a.g;RY(d,"Adding capture="+b);d.Aa.add(b);d.j.listen(b,"J",d.Um);"a"===b.ia()&&d.Wb&&d.j.listen(b,"H",d.xn);if(d.Sa){var e=d.Sa;if("a"===b.ia()){var f=e.h;f===e.h&&null!==f&&tN(e,f,TY,e.m);e.h=b;e.listen(b,TY,e.m)}}d=(e=SY(b,d.g))?O9(d,e,b):Q9(d,
b);if(null==d)return a.j.error("A stream for capture of type: "+c+", was not created."),null;a.s.add(b);return d};x$.prototype.qe=function(a){if(this.H.Ji){var b=new Set;a.filter(function(c){return"v"===c.ia()&&c.h&&c.l}).forEach(function(c){return b.add(c.l)});Bla(this,b)&&(this.F=b,this.G&&CY(this,this.G))}};
var NW=function(a,b){if("INPROGRESS"==a.l){for(var c={},d=n(a.s),e=d.next();!e.done;c={fh:c.fh},e=d.next())if(c.fh=e.value,e=b.find(function(f){return function(g){return g.ia()==f.fh.h.Ga}}(c)))e=EP(new zP(e),a.h).ha(),Zba(c.fh,e);b=b.filter(function(f){return f.h});ela(a.g,b)}};k=x$.prototype;k.gk=function(a){fla(this.g,a)};k.cl=function(){return!this.H.kp&&(!jf||Qp(59))};k.Zt=function(a){this.M(new pT(a.g,a.j))};k.so=function(){return!0};k.bu=function(a){a.sessionId==this.h&&this.M(new qT(a.g))};
k.au=function(a){a.sessionId==this.h&&this.M(new XS(a.message))};k.du=function(a){this.M(new rT(a.cb))};k.cu=function(a){this.M(new sT(0,a.Ib,a.g))};k.Yt=function(a){a.sessionId==this.h&&this.stop(a.Ib,a.g)};k.eu=function(a){this.m&&a.yg&&(tv(this.L),this.m.resolve(),this.m=null);this.M(new uT(a.yg))};k.Xt=function(a){this.h==a.sessionId&&this.M(new tT(a.fa,a.label,a.payload))};k.gL=function(){return!0};k.Go=function(){null==this.m&&(this.m=bt(),this.L=sv(this.ka,25E3,this))};
var CY=function(a,b){if(null!=(b.l.get("collections")||null)){var c=nQ(b).map(a.oa,a),d=b.Va;null==d&&(d=[oP(nP("d"),101).bf("google-data").ha()],d=new KP("d",d,[]));d=TP(d,PP(d).concat(c));b=pQ(b,d)}a.G=b;if(a.H.Ji&&b.na){c=[];d=n(PP(b.na));for(var e=d.next();!e.done;e=d.next())e=e.value,a.F.has(e.g)&&c.push(e);b=kQ(b,TP(b.na,c))}yW(a.j,"Session "+a.h+" setting remote descriptions: "+xs(b.xa()));return cla(a.g,b)};
x$.prototype.oa=function(a){var b=a.g,c=a.ye()||"local_push_channel",d=a.getChannelId()||"";return WO($O(RO(QO(PO(OO(new NO,"d"),d),c),b.toString()),b),a.ye()).ha()};var Bla=function(a,b){if(a.F.size!==b.size)return!0;a=n(a.F.values());for(var c=a.next();!c.done;c=a.next())if(!b.has(c.value))return!0;return!1};x$.prototype.ka=function(){this.m.reject(Error("Session handoff timed out."));this.m=null};var y$=function(a){rZ.call(this);this.N((new X(this)).listen(a,"ta",this.s))};u(y$,rZ);y$.prototype.s=function(a){if(this.g&&(this.g||null).Na()){var b=(this.g||null).Na();if(b instanceof i1)sZ(this,a.j/5);else if(b.o()==a.sessionId){b=n(b.getInfo().fb());for(var c=b.next();!c.done;c=b.next())if(c=c.value,a.g.has(c)){sZ(this,a.g.get(c).volume/5);return}sZ(this,0)}}else sZ(this,0)};var z$=function(){T.call(this);this.g=new Map};u(z$,T);var Cla=function(a,b){a.g.set(b.h,b);var c=new X(a);a.N(c);c.listen(b,"aa",function(d){"FINISHED"==d.state&&(this.g.delete(b.h),us(c))})};var A$=chrome.i18n.getMessage("4464119502738861996"),B$=kZ("__synthetic_default_speaker_device__");B$.g=A$;B$.h=A$;var C$=B$.j("__synthetic_default_speaker_device__");C$.l=!0;C$.ha();var D$=Wf("realtime.media.audio.output.DefaultAudioPlayer"),E$=function(a,b){this.j=a;this.l=b||null;(a=Ea.AudioContext||Ea.webkitAudioContext)&&new a;this.h=this.g=!1};E$.prototype.play=function(a){var b=this;return F$(this,{ym:function(){return G$(b,a)},loop:!1,lm:!0})};E$.prototype.loop=function(a){var b=this;return F$(this,{ym:function(){return G$(b,a)},loop:!0,lm:!0})};
var F$=function(a,b){var c=b.ym,d=b.loop,e=b.lm;if(a.g)return Us();var f=c();b=new Qs(function(g,h){f.loop=d;f.onended=function(){e&&(f.src="");g()};f.onerror=h;f.currentTime=0;a.l&&Oa(f.setSinkId);var l=f.play();l?l.then(function(){D(D$,"Playing "+f.src);a.h=!0},function(){C(D$,"Autoplay of "+f.src+" was prevented");h("Autoplay was prevented")}):C(D$,"Playing status of "+f.src+" is unknown")});ft(b,function(g){g instanceof Ps&&f.pause()});return b},G$=function(a,b){a=ig(a.j.g,"AUDIO");b=new Xq(b.prefix+
((a.canPlayType("audio/ogg")?b.UK:void 0)||b.TK||b.iL));b.ac||(Yq(b,"https"),b.ac="www.gstatic.com");a.src=b.toString();return a};var H$=function(a){CZ.call(this,a);new l1("realtime.media.api.webrtc.Delegate");this.l=new ula(this.pa);this.g=new l$;this.w=new r$;a=this.pa.get(XJ).g;var b=this.pa;b8.has(b)||b8.set(b,new Y7);b=b8.get(b);this.m=new d8(a,b,this.pa);this.o=new z$;this.j=0;this.s=W(this.pa,AK)};u(H$,CZ);var I$=function(a,b){a.s.then(function(c){c.g(b)})};
H$.prototype.tn=function(){var a=this;if(!J$())return null;I$(this,6270);var b=this.h.m.then(function(c){vla(a.l,L(c,7));c=Q(c,KL,17)?R(Q(c,KL,17),LL,3)||[]:[];a.w=Dla(c);return 7});I$(this,4163);W(this.pa,GK,!0).then(function(c){return ZV(c,a.g)});W(this.pa,XU,!0).then(function(c){return ZU(c,a.g)});b=[b,Ela()];return Zs(b).then(function(c){I$(a,6271);return Fla(a,c)},function(c){I$(a,6272);throw c;})};var Fla=function(a,b){(b=b.find(function(c){return 7!=c}))||(b=7);return a.j=b};
H$.prototype.Fg=function(){return J$()?Jaa.includes(this.j):null};var Ela=function(){return Jba().then(function(a){for(var b=0,c=!1,d=0,e=!1,f=0;f<a.length;f++)"audioinput"==a[f].kind?(b++,c=c||!id(ue(a[f].label))):"videoinput"==a[f].kind&&(d++,e=e||!id(ue(a[f].label)));c=c||0==b;e=e||0==d;if(c||e){if(!c)return 5;if(!e)return 4}else return 6;return 7})};k=H$.prototype;
k.sn=function(){if(J$()){var a=new i6(this.pa),b=new WG,c=new xG;O(c,1,"11.0.0.0");S(b,7,c);c=new MG;var d="other";Pe?d="windows":Oe?d=-1!=Me.indexOf("Intel")?"mac":"mac-ppc":0<=Wd.indexOf("CrOS")?d="cros":Qe&&(d="linux");O(c,1,d);O(c,14,vfa);d=k6();O(c,15,d);O(c,16,Pp);j6()&&q6(a,4749);n6(a)?O(c,5,"ARM"):(O(c,2,6),O(c,3,14),O(c,5,"GenuineIntel"),d=zfa(a.g),O(c,18,d));O(c,25,a.g.modelName);O(c,6,a.g.numOfProcessors);O(c,19,a.h.model);O(c,26,a.h.manufacturer);S(b,8,c);return b}return null};
k.mn=function(a,b,c){if(this.Fg()){a=new F9(a,b,this.m,c);ila(this.g,a);if(c.Kh()){var d=new p$(a),e=this.g;e.h=d;e.N(e.h)}b=new x$(b,a,c,S6(this.pa),this.l);b.N(a);Cla(this.o,b);return b}return null};k.qn=function(){return this.Fg()?new y$(this.g):null};k.pm=function(){if(this.Fg()){var a=this.pa.get(XJ).g;return new E$(a,this.m)}return null};k.pn=function(a){return this.Fg()?new l1(a):null};var J$=function(){var a=!(kf&&!Qp(13)&&Vq(window.location.href,"snwr"))&&!1;return jf||ef&&af(54)||a};
BZ({Od:H$,priority:6});var Dla=function(a){var b=new r$;a.forEach(function(c){id(ue(L(c,1)))&&id(ue(c.getName()))||b.push(new sla(c.getName(),L(c,1),L(c,3),L(c,4),L(c,5),ol(c,6,!0)))});return b};var K$=function(a,b){this.g=a;this.h=b};K$.prototype.execute=function(a){this.g&&(this.g.call(this.h||null,a),this.g=this.h=null)};K$.prototype.abort=function(){this.h=this.g=null};var L$=function(a,b){T.call(this);this.j=a;this.Qa=b;this.h=[];this.g=[];this.l=[]};y(L$,T);L$.prototype.ij=function(){return this.j};L$.prototype.getId=function(){return this.Qa};L$.prototype.C=function(a,b){this.h.push(new K$(a,b))};var Gla=function(a,b){a.g.push(new K$(b,void 0))};
L$.prototype.onError=function(a){for(var b=this.g,c=[],d=0;d<b.length;d++)try{b[d].execute(a)}catch(e){As(e),c.push(e)}b.length=0;(a=c.length?c:null)&&window.setTimeout(tc("Module errback failures: "+a),0);this.l.length=0;this.h.length=0};L$.prototype.aa=function(){L$.Ab.aa.call(this);us(null)};var M$=function(){};M$.prototype.G=function(){return!1};M$.prototype.H=function(){return!1};M$.prototype.C=function(){};var vK=null,wK=null;var N$=function(){this.l={};this.h=[];this.j=[];this.D=[];this.g=[];this.m=[];this.s={};this.W=new L$([],"");this.u=Wf("goog.module.ModuleManager");this.o=0;this.K=this.R=this.L=!1};y(N$,M$);N$.prototype.G=function(){return 0<this.h.length};N$.prototype.H=function(){return 0<this.m.length};
var P$=function(a){var b=a.G();b!=a.L&&(O$(a,b?"active":"idle"),a.L=b);b=a.H();b!=a.R&&(O$(a,b?"userActive":"userIdle"),a.R=b)},mK=function(a,b,c){var d=[];fc(b,d);b=[];for(var e={},f=0;f<d.length;f++){var g=d[f],h=a.l[g];if(!h)throw Error("Unknown module: "+g);var l=new Kz;e[g]=l;Hla(a,g,h,!!c,l);jK(a,g)||b.push(g)}0<b.length&&(0==a.h.length?a.F(b):(a.g.push(b),P$(a)));return e},Hla=function(a,b,c,d,e){c.C(e.callback,e);Gla(c,function(f){e.g(Error(f))});jK(a,b)?d&&(Zf(a.u,"User initiated module already loading: "+
b),Tb(a.m,b)||a.m.push(b),P$(a)):d?(Zf(a.u,"User initiated module load: "+b),Tb(a.m,b)||a.m.push(b)):Zf(a.u,"Initiating module load: "+b)};N$.prototype.F=function(a,b,c){b||(this.o=0);a=Ila(this,a);Zf(this.u,"Loading module(s): "+a);this.h=a;this.j=cc(a);P$(this);0!=a.length&&(this.D.push.apply(this.D,a),c=w(null.MK,null,cc(a),this.l,{CK:!!c,onError:w(this.mb,this,this.j,a),VK:w(this.Z,this)}),(a=5E3*Math.pow(this.o,2))?window.setTimeout(c,a):c())};
var Ila=function(a,b){b=Jb(b,function(){return!0});for(var c=[],d=0;d<b.length;d++)c=c.concat(Q$(a,b[d]));fc(c);return 1<c.length?(d=c.shift(),Zf(a.u,"Must load "+d+" module before "+b),a.g=Kb(c,function(e){return[e]}).concat(a.g),[d]):c},Q$=function(a,b){var c=Nc(a.D),d=[];c[b]||d.push(b);b=[b];for(var e=0;e<b.length;e++)for(var f=a.l[b[e]].ij(),g=f.length-1;0<=g;g--){var h=f[g];c[h]||(d.push(h),b.push(h))}d.reverse();fc(d);return d},jK=function(a,b){if(Tb(a.h,b))return!0;for(var c=0;c<a.g.length;c++)if(Tb(a.g[c],
b))return!0;return!1};N$.prototype.load=function(a,b){return mK(this,[a],b)[a]};N$.prototype.mb=function(a,b,c){this.o++;this.j=a;Hb(b,Wa(Zb,this.D),this);401==c?(D(this.u,"Module loading unauthorized"),R$(this,0),this.g.length=0):410==c?(S$(this,3),T$(this)):3<=this.o?(D(this.u,"Aborting after failure to load: "+this.h),S$(this,1),T$(this)):(D(this.u,"Retrying after failure to load: "+this.h),this.F(this.j,!0,8001==c))};
N$.prototype.Z=function(){D(this.u,"Aborting after timeout: "+this.h);S$(this,2);T$(this)};
var S$=function(a,b){1<a.j.length?a.g=Kb(a.j,function(c){return[c]}).concat(a.g):R$(a,b)},R$=function(a,b){var c=a.j;a.h.length=0;for(var d=[],e=0;e<a.g.length;e++){var f=Jb(a.g[e],function(l){var p=Q$(this,l);return Ob(c,function(r){return Tb(p,r)})},a);dc(d,f)}for(e=0;e<c.length;e++)Vb(d,c[e]);for(e=0;e<d.length;e++){for(f=0;f<a.g.length;f++)Zb(a.g[f],d[e]);Zb(a.m,d[e])}var g=a.s.error;if(g)for(e=0;e<g.length;e++){var h=g[e];for(f=0;f<d.length;f++)h("error",d[f],b)}for(e=0;e<c.length;e++)if(a.l[c[e]])a.l[c[e]].onError(b);
a.j.length=0;P$(a)},T$=function(a){for(;a.g.length;){var b=Jb(a.g.shift(),function(){return!0},a);if(0<b.length){a.F(b);return}}P$(a)};N$.prototype.C=function(a,b){Array.isArray(a)||(a=[a]);for(var c=0;c<a.length;c++){var d=a[c],e=b,f=this.s;f[d]||(f[d]=[]);f[d].push(e)}};var O$=function(a,b){a=a.s[b];for(var c=0;a&&c<a.length;c++)a[c](b)};N$.prototype.dispose=function(){vs(Cc(this.l),this.W);this.l={};this.h=[];this.j=[];this.m=[];this.g=[];this.s={};this.K=!0};N$.prototype.w=function(){return this.K};
wK=function(){return new N$};var U$=function(a){rj.call(this,a);this.pa=new aK;xK(this.pa);Maa(this.pa);r6(this.pa,function(b){return new b4(b)});oga(this.pa);this.l=this.D=this.w=this.s=null;this.G=Mw()};u(U$,rj);k=U$.prototype;k.pg=function(){Jla(this);dm(this)};k.Ta=function(){throw Error("not implemented");};k.Fb=function(){return[{lastSessionId:this.l}]};k.Db=function(){var a=am(this);a&&a.lastSessionId&&(this.l=a.lastSessionId)};
k.hk=function(){var a=this;return this.l||this.g?new Promise(function(b,c){setTimeout(c,5E3);var d=function(){a.w.then(function(){a.l?(a.l=null,b()):c(Error("No session to upload"))})},e=a.g;e?(e.g?Zda(e.g):Promise.reject(Error("no call in the session"))).then(function(){b()},d):a.l?d():c(Error("No session to upload"))}):Promise.reject(Error("No session to upload"))};k.Oi=function(a){a.g?(a=a.g,a=a.g?F0(a.g):null):a=null;this.l=a;return Promise.resolve()};
k.zh=function(a,b){a=new e4(b,this.pa,this.w);this.s=a.l.bind(a);return a};k.Wg=function(){d4(0)};k.Tg=function(){d4(1)};k.Ug=function(){ub("MediaRouter.Hangouts.Session.End")};k.Ff=function(a){vb("MediaRouter.Hangouts.Start.Failure",a,Ii)};k.Vg=function(){ub("MediaRouter.Hangouts.Stream.End")};k.Jt=function(a){this.s&&this.s(a)};k.Gm=function(){return"v1"};
var Jla=function(a){var b=new CM(new h4(Nw(Lw.Kb())),new f4(a.Jt.bind(a)));b=new NM(b,"hangouts",a.Gm(),"",.1>Math.random()?"https://preprod-hangouts-googleapis.sandbox.google.com":"https://hangouts.clients6.google.com",a.G);b=new WM(b);O(b,1,39);O(b,5,158);O(b,2,"castouts");O(b,3,"castouts");nM(b,chrome.runtime.id+chrome.runtime.getManifest().version);b.bi("castouts",!0);var c=.01;"google.com"==Et(Nw(Lw.Kb()))&&(c=1);O(b,9,c);O(b,10,"https://hangouts.google.com/hangouts/_/logpref");O(b,11,"https://clients2.google.com/cr/report");
b.register(a.pa);a.w=new Promise(function(d,e){a.D=a.pa.get(FK);Raa(a.D).then(d,e)})};var V$=function(){U$.call(this,"hangouts")};u(V$,U$);V$.prototype.Ta=function(){return"HangoutsService"};var Kla=new V$;ij("mr.mirror.hangouts.HangoutsService",Kla);var W$=function(){U$.call(this,"meetings");this.m=null};u(W$,U$);W$.prototype.Ta=function(){return"MeetingsService"};W$.prototype.Gm=function(){return"v1_meetings"};var X$=function(a){null==a.m&&(a.m=new Q2(a.pa.get(BK)),B2(a.m.j,Nfa(function(){return Us(Nw(Lw.Kb()).getAuthToken())})));return a.m};W$.prototype.Mb=function(a){return Promise.resolve(m3(X$(this),a.input).then(function(b){return b.Mb()}))};
W$.prototype.pg=function(){U$.prototype.pg.call(this);var a=X$(this);this.pa.registerService(vM,a)};var Lla=new W$;ij("mr.mirror.hangouts.MeetingsService",Lla);
